commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
9406ca3a69d228cb57ac08162b35e1e19dca3b33
app/styles/modules/search/search-filter.scss
app/styles/modules/search/search-filter.scss
.search-filter { ul { border-bottom: 3px solid $gray-light; display: flex; padding-bottom: .5rem; } li { margin-right: 1rem; } a { @extend %large; @extend %title; opacity: .2; &:hover { color: $blackish; opacity:...
.search-filter { ul { border-bottom: 3px solid $gray-light; display: flex; padding-bottom: .5rem; } li { margin-right: 1rem; } a { @extend %large; @extend %title; opacity: .2; &:hover { color: $gray; opacity: 1; ...
Edit color to keep consistency across taiga
Edit color to keep consistency across taiga
SCSS
agpl-3.0
Rademade/taiga-front,taigaio/taiga-front,taigaio/taiga-front,joshisa/taiga-front,artlepool/taiga-front,Comi9/taiga-front,bartuspan/taiga-front,CoolCloud/taiga-front,obimod/taiga-front,pfac/taiga-front,obimod/taiga-front,yufish/taiga-front,trimolesi/taiga-front,CMLL/taiga-front,yufish/taiga-front,pfac/taiga-front,seanch...
scss
## Code Before: .search-filter { ul { border-bottom: 3px solid $gray-light; display: flex; padding-bottom: .5rem; } li { margin-right: 1rem; } a { @extend %large; @extend %title; opacity: .2; &:hover { color: $blackish; ...
3b494431cb2c1b7d4fbba16d7df8e9e7dd1d4b81
package.json
package.json
{ "name": "erb-plus", "displayName": "erb-plus", "description": "ERB syntax with tag helper and snippets", "version": "0.0.1", "publisher": "vortizhe", "engines": { "vscode": "^1.5.0" }, "categories": [ "Other" ], "activationEvents": [ "onCommand:extension.sayHello" ], "main": "./ext...
{ "name": "erb-plus", "displayName": "erb-plus", "description": "ERB syntax with tag helper and snippets", "version": "0.0.1", "publisher": "vortizhe", "engines": { "vscode": "^1.5.0" }, "categories": [ "Languages" ], "activationEvents": [ "onCommand:extension.sayHello" ], "main": "....
Add repo and update plugin category
Add repo and update plugin category
JSON
mit
vortizhe/vscode-ruby-erb
json
## Code Before: { "name": "erb-plus", "displayName": "erb-plus", "description": "ERB syntax with tag helper and snippets", "version": "0.0.1", "publisher": "vortizhe", "engines": { "vscode": "^1.5.0" }, "categories": [ "Other" ], "activationEvents": [ "onCommand:extension.sayHello" ], ...
bd89f90a3d77f3a2694c5b179177cdac914070c5
src/infer/inferTitle.js
src/infer/inferTitle.js
import axios from 'axios'; import cheerio from 'cheerio'; const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36'; function inferTitle(url) { const options = { method: 'get', url, headers: { // fake a user agent...
import axios from 'axios'; import cheerio from 'cheerio'; const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36'; function inferTitle(url) { const options = { method: 'get', url, headers: { // fake a user agent...
Remove workaround for slashes in page title
Remove workaround for slashes in page title This was reported in #22 and has been fixed upstream in electron-userland/electron-packager#308
JavaScript
bsd-2-clause
skewedlines/Nativefier,skewedlines/Nativefier,jiahaog/Nativefier,jiahaog/Nativefier,skewedlines/Nativefier,gfpacheco/Nativefier,gfpacheco/Nativefier,jiahaog/Nativefier,gfpacheco/Nativefier
javascript
## Code Before: import axios from 'axios'; import cheerio from 'cheerio'; const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36'; function inferTitle(url) { const options = { method: 'get', url, headers: { // f...
285abec25cba485a463e6dfaa30c1844736e899b
mltsp/tests/frontend/index.js
mltsp/tests/frontend/index.js
casper.test.begin('index loads', 1, function suite(test) { casper.start('http://localhost:5000', function() { test.assertTextExists('MLTSP', 'successfully loaded index page'); }); casper.run(function() { test.done(); }); });
casper.test.begin('index loads', 1, function suite(test) { casper.start('http://localhost:5000', function() { test.assertTextExists('Sign in with your Google Account', 'Authentication displayed on index page'); }); casper.run(function() { test.done(); }); }...
Add valid test for front page
Add valid test for front page
JavaScript
bsd-3-clause
bnaul/mltsp,mltsp/mltsp,bnaul/mltsp,mltsp/mltsp,bnaul/mltsp,mltsp/mltsp,acrellin/mltsp,mltsp/mltsp,acrellin/mltsp,acrellin/mltsp,acrellin/mltsp,bnaul/mltsp,acrellin/mltsp,mltsp/mltsp,bnaul/mltsp,acrellin/mltsp,bnaul/mltsp,mltsp/mltsp
javascript
## Code Before: casper.test.begin('index loads', 1, function suite(test) { casper.start('http://localhost:5000', function() { test.assertTextExists('MLTSP', 'successfully loaded index page'); }); casper.run(function() { test.done(); }); }); ## Instruction: Add valid test for front page...
67807f2bc32c713805a223574abf645a44545f99
recipes-containers/runc/runc-opencontainers_git.bb
recipes-containers/runc/runc-opencontainers_git.bb
include runc.inc SRCREV = "fce58ab2d5c488bc573d02712db476a6daa9a60c" SRC_URI = " \ git://github.com/opencontainers/runc;branch=master \ file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \ " RUNC_VERSION = "1.0.0-rc93" CVE_PRODUCT = "runc" # use BFD when ld-is-gold is used to work aro...
include runc.inc SRCREV = "fce58ab2d5c488bc573d02712db476a6daa9a60c" SRC_URI = " \ git://github.com/opencontainers/runc;branch=master \ file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \ " RUNC_VERSION = "1.0.0-rc93" CVE_PRODUCT = "runc"
Revert "runc-opencontainers: use bfd even with ld-is-gold"
Revert "runc-opencontainers: use bfd even with ld-is-gold" This reverts commit dda5ae36b44c61e61439341ea3153e6be5cb015e. binutils gold linker was fixed with: https://git.openembedded.org/openembedded-core/commit/?id=d07d4d739ae17787017f771dd2068fda0e836722 Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c...
BitBake
mit
lgirdk/meta-virtualization,lgirdk/meta-virtualization,lgirdk/meta-virtualization,lgirdk/meta-virtualization,lgirdk/meta-virtualization
bitbake
## Code Before: include runc.inc SRCREV = "fce58ab2d5c488bc573d02712db476a6daa9a60c" SRC_URI = " \ git://github.com/opencontainers/runc;branch=master \ file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \ " RUNC_VERSION = "1.0.0-rc93" CVE_PRODUCT = "runc" # use BFD when ld-is-gold is ...
3319fca3ad42be4d948c04d868dc419441a0e9e6
bio/sources/fasta/project.properties
bio/sources/fasta/project.properties
compile.dependencies = intermine/objectstore/main, bio/sources/fasta/main
compile.dependencies = intermine/objectstore/main, bio/sources/fasta/main have.file.custom = true
Set have.file.custom in the fasta source.
Set have.file.custom in the fasta source.
INI
lgpl-2.1
elsiklab/intermine,JoeCarlson/intermine,JoeCarlson/intermine,JoeCarlson/intermine,elsiklab/intermine,JoeCarlson/intermine,zebrafishmine/intermine,Arabidopsis-Information-Portal/intermine,Arabidopsis-Information-Portal/intermine,zebrafishmine/intermine,Arabidopsis-Information-Portal/intermine,joshkh/intermine,JoeCarlson...
ini
## Code Before: compile.dependencies = intermine/objectstore/main, bio/sources/fasta/main ## Instruction: Set have.file.custom in the fasta source. ## Code After: compile.dependencies = intermine/objectstore/main, bio/sources/fasta/main have.file.custom = true
7ed5ed31a4d9372f06214e0f29bdb5d80e34deec
app/src/main/res/values/donottranslate.xml
app/src/main/res/values/donottranslate.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- Design time placeholders --> <string name="lorem_ipsum"> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et acc...
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- Design time placeholders --> <string name="lorem_ipsum" translatable="false"> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptu...
Set dummy text as not translatable
Set dummy text as not translatable just to prevent android studio's translation editor from marking it as missing - purely cosmetical
XML
apache-2.0
canerbasaran/criticalmaps-android,criticalmaps/criticalmaps-android,cbalster/criticalmaps-android,johnjohndoe/criticalmaps-android,stephanlindauer/criticalmaps-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Design time placeholders --> <string name="lorem_ipsum"> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At...
3a72fc8cd1e5bf3b647b5fa03c45f28266be7e21
js/post_list.js
js/post_list.js
$(function() { var api_uri = 'http://amateras.wsd.kutc.kansai-u.ac.jp/~otsuka/michishiki_api_server/select.py?order_by=created_at&order=descend'; $.getJSON(api_uri, function(json) { for (var i = 0; i < json.length; i++) { var $li = createListItem(json[i].title, json[i].comment, json[i].posted_by); $(...
$(document).on('pageshow', '#post-list', function() { initPostList(); }); function initPostList() { var api_uri = 'http://amateras.wsd.kutc.kansai-u.ac.jp/~otsuka/michishiki_api_server/select.py?order_by=created_at&order=descend'; $.getJSON(api_uri, function(json) { for (var i = 0; i < json.length; i++) {...
Initialize post list when showing post list page
Initialize post list when showing post list page
JavaScript
mit
otknoy/michishiki
javascript
## Code Before: $(function() { var api_uri = 'http://amateras.wsd.kutc.kansai-u.ac.jp/~otsuka/michishiki_api_server/select.py?order_by=created_at&order=descend'; $.getJSON(api_uri, function(json) { for (var i = 0; i < json.length; i++) { var $li = createListItem(json[i].title, json[i].comment, json[i].pos...
fe0f17f0a87fb710b51ab007a297f07659282a3c
spec/kinetosis_spec.rb
spec/kinetosis_spec.rb
require 'minitest/pride' require 'minitest/autorun' require 'minitest/spec' require File.dirname(__FILE__) + '/../lib/kinetosis' describe Kinetosis do before do @object = Object.new @object.extend(Kinetosis) end describe "when asked for xyz" do it "should respond with an array with three values" do...
require 'minitest/pride' require 'minitest/autorun' require 'minitest/spec' require File.dirname(__FILE__) + '/../lib/kinetosis' describe Kinetosis do before do @mbp = Object.new.extend(Kinetosis) end describe "when asked for xyz" do it "should respond with an array consisting of three fixnums" do ...
Check that x and y respond with a signed integer between -255 and 255. Renamed @object -> @mbp
Check that x and y respond with a signed integer between -255 and 255. Renamed @object -> @mbp
Ruby
mit
peterhellberg/kinetosis,peterhellberg/kinetosis
ruby
## Code Before: require 'minitest/pride' require 'minitest/autorun' require 'minitest/spec' require File.dirname(__FILE__) + '/../lib/kinetosis' describe Kinetosis do before do @object = Object.new @object.extend(Kinetosis) end describe "when asked for xyz" do it "should respond with an array with ...
8f6a920eed8a1dc8b086a94fbfa6b38e3df12dfa
lib/findrepos/cli.rb
lib/findrepos/cli.rb
require 'thor' require 'pathname' module Findrepos # The command line interface for the findrepos executable. class CLI < Thor desc 'list [DIRECTORY]', 'lists all Git repositories in the given directory' option :recursive, desc: 'finds Git repositories in subdirectories recursively', ...
require 'thor' require 'pathname' module Findrepos # The command line interface for the findrepos executable. class CLI < Thor desc 'list [DIRECTORY]', 'lists all Git repositories in the given directory' option :recursive, desc: 'finds Git repositories in subdirectories recursively', ...
Add and use a say_git_status helper
Add and use a say_git_status helper
Ruby
mit
nicolasmccurdy/repos,nicolasmccurdy/repos
ruby
## Code Before: require 'thor' require 'pathname' module Findrepos # The command line interface for the findrepos executable. class CLI < Thor desc 'list [DIRECTORY]', 'lists all Git repositories in the given directory' option :recursive, desc: 'finds Git repositories in subdirectories recursive...
b561ddae1f95775fadb9bbfb9d14e672463e55c2
manifests/ops-files/misc/local-config-server.yml
manifests/ops-files/misc/local-config-server.yml
- type: remove path: /variables/name=tls-kubelet/options/organization - type: remove path: /variables/name=tls-kubelet-client/options/organization - type: remove path: /variables/name=tls-kubernetes/options/organization
- type: remove path: /variables/name=tls-kubelet/options/organization - type: remove path: /variables/name=tls-kubelet-client/options/organization - type: remove path: /variables/name=tls-kubernetes/options/organization - type: remove path: /variables/name=tls-kube-controller-manager/options/key_usage
Remove key_usage for unit tests
Remove key_usage for unit tests * bosh CLI does not support it
YAML
apache-2.0
jaimegag/kubo-deployment,pivotal-cf-experimental/kubo-deployment,jaimegag/kubo-deployment,pivotal-cf-experimental/kubo-deployment
yaml
## Code Before: - type: remove path: /variables/name=tls-kubelet/options/organization - type: remove path: /variables/name=tls-kubelet-client/options/organization - type: remove path: /variables/name=tls-kubernetes/options/organization ## Instruction: Remove key_usage for unit tests * bosh CLI does not support ...
b149ede14c1f30c370329485938b3e9e5df328f2
app/views/layouts/comfy/admin/cms/_footer_js.html.haml
app/views/layouts/comfy/admin/cms/_footer_js.html.haml
= javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') } = yield :footer_js
= javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') } = javascript_include_tag 'modernizr/modernizr' = yield :footer_js
Add Modernizr to the pages
Add Modernizr to the pages * This commit fix "Uncaught ReferenceError: Modernizr is not defined"
Haml
mit
moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms
haml
## Code Before: = javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') } = yield :footer_js ## Instruction: Add Modernizr to the pages * This commit fix "Uncaught ReferenceError: Modernizr is not defined" ## Code After: = javascript_include_tag 'requirejs/require', data: { main: j...
888be10355272948040965d70f2c727575b4b22b
.goreleaser.yaml
.goreleaser.yaml
before: hooks: - go mod tidy - go generate ./... builds: - env: - CGO_ENABLED=0 goos: - linux - windows goarch: - 386 - amd64 binary: "mdt{{ .Version }}.{{ .Os }}-{{ .Arch }}" no_unique_dist_dir: true archives: - format_overrides: - goos: windows for...
before: hooks: - go mod tidy - go generate ./... builds: - env: - CGO_ENABLED=0 goos: - linux - windows goarch: - 386 - amd64 binary: "{{.ProjectName}}{{ .Version }}.{{ .Os }}-{{ .Arch }}" no_unique_dist_dir: true archives: - format_overrides: - goos: wind...
Make archive template the same as the build one
Make archive template the same as the build one
YAML
mit
nstratos/mdt
yaml
## Code Before: before: hooks: - go mod tidy - go generate ./... builds: - env: - CGO_ENABLED=0 goos: - linux - windows goarch: - 386 - amd64 binary: "mdt{{ .Version }}.{{ .Os }}-{{ .Arch }}" no_unique_dist_dir: true archives: - format_overrides: - goos: w...
d9be7a33a8255847f6643efe26fd9d808b348097
stylesheets/konstructs.css
stylesheets/konstructs.css
html { position: relative; min-height: 100%; } body { padding-top: 80px; padding-bottom: 60px; } p { font-size: 120%; font-family: 'Arimo', sans-serif; } h1 { font-family: 'Arimo', sans-serif !important; } img { width: 100%; height: auto; box-shadow: 2px 2px 10px #aaa; } iframe { box-shadow: ...
html { position: relative; min-height: 100%; } body { padding-top: 80px; padding-bottom: 60px; } p { font-size: 120%; font-family: 'Arimo', sans-serif; } h1 { font-family: 'Arimo', sans-serif !important; } img { width: 100%; height: auto; box-shadow: 2px 2px 10px #aaa; } iframe { box-shadow: ...
Add a little more margin on jumbotron.
Add a little more margin on jumbotron.
CSS
apache-2.0
konstructs/konstructs.github.io,konstructs/konstructs.github.io,konstructs/konstructs.github.io
css
## Code Before: html { position: relative; min-height: 100%; } body { padding-top: 80px; padding-bottom: 60px; } p { font-size: 120%; font-family: 'Arimo', sans-serif; } h1 { font-family: 'Arimo', sans-serif !important; } img { width: 100%; height: auto; box-shadow: 2px 2px 10px #aaa; } iframe ...
7cc17062b1d28496f0482eacb6fae151b9385ddd
source/DataFormatters/CMakeLists.txt
source/DataFormatters/CMakeLists.txt
set(LLVM_NO_RTTI 1) add_lldb_library(lldbDataFormatters CF.cpp Cocoa.cpp CXXFormatterFunctions.cpp DataVisualization.cpp FormatCache.cpp FormatClasses.cpp FormatManager.cpp LibCxx.cpp LibCxxList.cpp LibCxxMap.cpp LibCxxUnorderedMap.cpp LibStdcpp.cpp NSArray.cpp NSDictionary.cpp NSIndexPat...
set(LLVM_NO_RTTI 1) add_lldb_library(lldbDataFormatters CF.cpp Cocoa.cpp CXXFormatterFunctions.cpp DataVisualization.cpp FormatCache.cpp FormatClasses.cpp FormatManager.cpp LibCxx.cpp LibCxxInitializerList.cpp LibCxxList.cpp LibCxxMap.cpp LibCxxUnorderedMap.cpp LibCxxVector.cpp LibStdcpp.cp...
Fix CMake build broken after r220421.
Fix CMake build broken after r220421. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220430 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
text
## Code Before: set(LLVM_NO_RTTI 1) add_lldb_library(lldbDataFormatters CF.cpp Cocoa.cpp CXXFormatterFunctions.cpp DataVisualization.cpp FormatCache.cpp FormatClasses.cpp FormatManager.cpp LibCxx.cpp LibCxxList.cpp LibCxxMap.cpp LibCxxUnorderedMap.cpp LibStdcpp.cpp NSArray.cpp NSDictionary....
9a9dfddb9e9f047ccb615777b737e4aff4ae7359
interfaces/TranslatableObjectInterface.php
interfaces/TranslatableObjectInterface.php
<?php /* * @author Mirel Nicu Mitache <mirel.mitache@gmail.com> * @package MPF Framework * @link http://www.mpfframework.com * @category core package * @version 1.0 * @since MPF Framework Version 1.0 * @copyright Copyright &copy; 2011 Mirel Mitache * @license http://www.mpfframework.com/licence * * Thi...
<?php /* * @author Mirel Nicu Mitache <mirel.mitache@gmail.com> * @package MPF Framework * @link http://www.mpfframework.com * @category core package * @version 1.0 * @since MPF Framework Version 1.0 * @copyright Copyright &copy; 2011 Mirel Mitache * @license http://www.mpfframework.com/licence * * Thi...
Change php version to 7
Change php version to 7
PHP
apache-2.0
mpf-soft/mpf,mpf-soft/mpf,mpf-soft/mpf
php
## Code Before: <?php /* * @author Mirel Nicu Mitache <mirel.mitache@gmail.com> * @package MPF Framework * @link http://www.mpfframework.com * @category core package * @version 1.0 * @since MPF Framework Version 1.0 * @copyright Copyright &copy; 2011 Mirel Mitache * @license http://www.mpfframework.com/li...
9c1728416cf6773e510fc8c8843055189e1b03a4
public/java/test/org/broadinstitute/sting/gatk/walkers/CNV/SymbolicAllelesIntegrationTest.java
public/java/test/org/broadinstitute/sting/gatk/walkers/CNV/SymbolicAllelesIntegrationTest.java
package org.broadinstitute.sting.gatk.walkers.CNV; import org.broadinstitute.sting.WalkerTest; import org.testng.annotations.Test; import java.util.Arrays; public class SymbolicAllelesIntegrationTest extends WalkerTest { public static String baseTestString(String reference, String VCF) { return "-T Comb...
package org.broadinstitute.sting.gatk.walkers.CNV; import org.broadinstitute.sting.WalkerTest; import org.testng.annotations.Test; import java.util.Arrays; public class SymbolicAllelesIntegrationTest extends WalkerTest { public static String baseTestString(String reference, String VCF) { return "-T Comb...
Revert "Updating md5 for fixed file" because this was fixed properly in unstable (but will break SnpEff if put into Stable).
Revert "Updating md5 for fixed file" because this was fixed properly in unstable (but will break SnpEff if put into Stable). This reverts commit 6b4182c6ab3e214da4c73bc6f3687ac6d1c0b72c.
Java
mit
iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller-stable,iontorrent/Torrent-Variant-Caller...
java
## Code Before: package org.broadinstitute.sting.gatk.walkers.CNV; import org.broadinstitute.sting.WalkerTest; import org.testng.annotations.Test; import java.util.Arrays; public class SymbolicAllelesIntegrationTest extends WalkerTest { public static String baseTestString(String reference, String VCF) { ...
f2169f3fb642b306ba6b5133de1b6b3bb263beff
app/models/trade_code.rb
app/models/trade_code.rb
class TradeCode < Sapi::Base validates :code, :presence => true, :uniqueness => { :scope => :type } def self.search(query) if query.present? where("UPPER(code) LIKE UPPER(:query) OR UPPER(name_en) LIKE UPPER(:query) OR UPPER(name_fr) LIKE UPPER(:query) OR UPPER(name_es...
class TradeCode < Sapi::Base validates :code, :presence => true, :uniqueness => { :scope => :type } def self.search(query) if query.present? where("UPPER(code) LIKE UPPER(:query) OR UPPER(name_en) LIKE UPPER(:query) OR UPPER(name_fr) LIKE UPPER(:query) OR UPPER(name_es...
Add name method to fetch name with locale without globalize gem
Add name method to fetch name with locale without globalize gem
Ruby
mit
unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool
ruby
## Code Before: class TradeCode < Sapi::Base validates :code, :presence => true, :uniqueness => { :scope => :type } def self.search(query) if query.present? where("UPPER(code) LIKE UPPER(:query) OR UPPER(name_en) LIKE UPPER(:query) OR UPPER(name_fr) LIKE UPPER(:query) ...
191e62a2547c4d3d013cb4c68fed60f1619fe82c
pyheufybot/modules/say.py
pyheufybot/modules/say.py
from pyheufybot.module_interface import Module, ModulePriority, ModuleType class ModuleSpawner(Module): def __init__(self, bot): self.bot = bot self.name = "Say" self.trigger = "say" self.moduleType = ModuleType.COMMAND self.modulePriotity = ModulePriority.NORMAL sel...
from pyheufybot.module_interface import Module, ModulePriority, ModuleType class ModuleSpawner(Module): def __init__(self, bot): self.bot = bot self.name = "Say" self.trigger = "say|sayremote" self.moduleType = ModuleType.COMMAND self.modulePriority = ModulePriority.NORMAL ...
Add a remote option to Say
Add a remote option to Say
Python
mit
Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot
python
## Code Before: from pyheufybot.module_interface import Module, ModulePriority, ModuleType class ModuleSpawner(Module): def __init__(self, bot): self.bot = bot self.name = "Say" self.trigger = "say" self.moduleType = ModuleType.COMMAND self.modulePriotity = ModulePriority.NO...
b65f1735eaf5a533d30c72f3c88dab4a6caaaaae
spec/dummy/app/controllers/orders_controller.rb
spec/dummy/app/controllers/orders_controller.rb
class OrdersController < ApplicationController include Rules::FormsHelper helper_method :rules_for def show @order = Order.last || Order.create! end def create end end
class OrdersController < ApplicationController def show @order = Order.last || Order.create! end def create end end
Remove some references to deleted forms helpers
Remove some references to deleted forms helpers
Ruby
mit
azach/rules,azach/rules,azach/rules
ruby
## Code Before: class OrdersController < ApplicationController include Rules::FormsHelper helper_method :rules_for def show @order = Order.last || Order.create! end def create end end ## Instruction: Remove some references to deleted forms helpers ## Code After: class OrdersController < Application...
d4dbf1c828dd07ad07936d2e214f55e4839e2bfe
fish/cdf.fish
fish/cdf.fish
function cdf --description="If on OSX, `cd` to the directory the front Finder window is open to." set --local target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)') if test -n target echo "Changing directory to: $target" ...
function cdf --description="If on OSX, `cd` to the directory the front Finder window is open to." # first we check if we're on OSX if not test (uname -s) = "Darwin" echo "We are not on OSX." >&2 return 3 end set --local target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get...
Add a check for operating system.
Add a check for operating system. As this function is being added to my dotfiles repository, a check was added to avoid awkward errors if unintentionally used on another system.
fish
mit
deoxys314/deoxys314_dotfiles
fish
## Code Before: function cdf --description="If on OSX, `cd` to the directory the front Finder window is open to." set --local target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)') if test -n target echo "Changing director...
c4cb42c72a7a661916885b06b9c1146bd9a5a63e
packages/vega2-extension/README.md
packages/vega2-extension/README.md
A mime-renderer extension for JupyterLab that provides support for rendering Vega and Vega-lite documents and mimebundles.
A mime-renderer extension for JupyterLab that provides support for rendering Vega and Vega-lite documents and mimebundles. Example in Python: ```python from IPython.display import display display({ "application/vnd.vegalite.v1+json": { "$schema": "https://vega.github.io/schema/vega-lite/v1.json", ...
Add a Python example to vega2 readme
Add a Python example to vega2 readme
Markdown
bsd-3-clause
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
markdown
## Code Before: A mime-renderer extension for JupyterLab that provides support for rendering Vega and Vega-lite documents and mimebundles. ## Instruction: Add a Python example to vega2 readme ## Code After: A mime-renderer extension for JupyterLab that provides support for rendering Vega and Vega-lite documents and...
eb75016461f698c9202c3e5a4da16ef248f7b882
src/main/java/com/elmakers/mine/bukkit/protection/MultiverseManager.java
src/main/java/com/elmakers/mine/bukkit/protection/MultiverseManager.java
package com.elmakers.mine.bukkit.protection; import com.onarandombox.MultiverseCore.MultiverseCore; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; public class MultiverseManager implements PVPManager { private boolean enabled = false; pr...
package com.elmakers.mine.bukkit.protection; import com.onarandombox.MultiverseCore.MultiverseCore; import com.onarandombox.MultiverseCore.api.MVWorldManager; import com.onarandombox.MultiverseCore.api.MultiverseWorld; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Player; import org.buk...
Add some protection against a failed load of Multiverse
Add some protection against a failed load of Multiverse
Java
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
java
## Code Before: package com.elmakers.mine.bukkit.protection; import com.onarandombox.MultiverseCore.MultiverseCore; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; public class MultiverseManager implements PVPManager { private boolean enabled...
4d61f1cc070766560b3ae089370743d29075ddb8
public/scripts/Sidebar.html
public/scripts/Sidebar.html
<div class="list-group"> <div class="list-group-item"> {{t('sidebar.count')}} <span class="badge">{{clicks}}</span> </div> <a href="/" class="list-group-item"> <i class="fa fa-fw fa-home"></i>{{t('sidebar.home')}} </a> <a href="about" class="list-group-item"> <i class="fa fa-fw fa-info-circle"...
<div class="list-group"> <div class="list-group-item"> [[t('sidebar.count')]] <span class="badge">{{clicks}}</span> </div> <a href="/" class="list-group-item"> <i class="fa fa-fw fa-home"></i>[[t('sidebar.home')]] </a> <a href="about" class="list-group-item"> <i class="fa fa-fw fa-info-circle"...
Use static mustache for sidebar i18n text
Use static mustache for sidebar i18n text
HTML
mit
bestguy/ractive-webpack-boilerplate,bestguy/ractive-webpack-boilerplate
html
## Code Before: <div class="list-group"> <div class="list-group-item"> {{t('sidebar.count')}} <span class="badge">{{clicks}}</span> </div> <a href="/" class="list-group-item"> <i class="fa fa-fw fa-home"></i>{{t('sidebar.home')}} </a> <a href="about" class="list-group-item"> <i class="fa fa-fw...
a706fd97c999182eee2569d456775d3ca8cab1e3
src/ForkCMS/Bundle/CoreBundle/Tests/Validator/UrlValidatorTest.php
src/ForkCMS/Bundle/CoreBundle/Tests/Validator/UrlValidatorTest.php
<?php namespace ForkCMS\Bundle\CoreBundle\Tests\Validator; use ForkCMS\Bundle\CoreBundle\Validator\UrlValidator; use PHPUnit\Framework\TestCase; class UrlValidatorTest extends TestCase { public function testExternalUrlValidation() { $urlValidator = new UrlValidator(); $urls = [ '...
<?php namespace ForkCMS\Bundle\CoreBundle\Tests\Validator; use ForkCMS\Bundle\CoreBundle\Validator\UrlValidator; use PHPUnit\Framework\TestCase; class UrlValidatorTest extends TestCase { public function testValidExternalUrlValidation() { $urlValidator = new UrlValidator(); $urls = [ ...
Split up the external url validation in a valid and an invalid test
Split up the external url validation in a valid and an invalid test
PHP
mit
carakas/forkcms,carakas/forkcms,carakas/forkcms,jeroendesloovere/forkcms,bartdc/forkcms,riadvice/forkcms,bartdc/forkcms,Katrienvh/forkcms,jonasdekeukelaere/forkcms,sumocoders/forkcms,riadvice/forkcms,mathiashelin/forkcms,forkcms/forkcms,jessedobbelaere/forkcms,tommyvdv/forkcms,jacob-v-dam/forkcms,jessedobbelaere/forkcm...
php
## Code Before: <?php namespace ForkCMS\Bundle\CoreBundle\Tests\Validator; use ForkCMS\Bundle\CoreBundle\Validator\UrlValidator; use PHPUnit\Framework\TestCase; class UrlValidatorTest extends TestCase { public function testExternalUrlValidation() { $urlValidator = new UrlValidator(); $urls =...
662ea1b76ad467c9576f90ae69b7ea4ba23a051b
src/Command/DrushCommand.php
src/Command/DrushCommand.php
<?php /** * @file * Contains \Drupal\Console\Command\DrushCommand. */ namespace Drupal\Console\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DrushCommand extends ContainerAwareCommand { ...
<?php /** * @file * Contains \Drupal\Console\Command\DrushCommand. */ namespace Drupal\Console\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Drupal\Console\Command\Command; class DrushComma...
Improve drush command, make stand alone command
[drush] Improve drush command, make stand alone command
PHP
mit
AniRai/DrupalConsole,Cottser/DrupalConsole,longloop/DrupalConsole,karmazzin/DrupalConsole,revagomes/DrupalConsole,revagomes/DrupalConsole,AniRai/DrupalConsole,alxvallejo/DrupalConsole,frega/DrupalConsole,AniRai/DrupalConsole,reszli/DrupalConsole,frega/DrupalConsole,frega/DrupalConsole,karmazzin/DrupalConsole,longloop/D...
php
## Code Before: <?php /** * @file * Contains \Drupal\Console\Command\DrushCommand. */ namespace Drupal\Console\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DrushCommand extends Container...
7fe874390a2340aaef816626f0e55c75ce23e587
chronicle-demo/src/main/java/vanilla/java/echo/QueueServerMain.java
chronicle-demo/src/main/java/vanilla/java/echo/QueueServerMain.java
package vanilla.java.echo; import net.openhft.affinity.AffinityLock; import net.openhft.chronicle.Chronicle; import net.openhft.chronicle.ChronicleQueueBuilder; import net.openhft.chronicle.ExcerptAppender; import net.openhft.chronicle.ExcerptTailer; import java.io.IOException; public class QueueServerMain { pub...
package vanilla.java.echo; import net.openhft.affinity.AffinityLock; import net.openhft.chronicle.Chronicle; import net.openhft.chronicle.ChronicleQueueBuilder; import net.openhft.chronicle.ExcerptAppender; import net.openhft.chronicle.ExcerptTailer; import java.io.IOException; public class QueueServerMain { pub...
Add test for round tripping via chronicle indexed.
Add test for round tripping via chronicle indexed.
Java
apache-2.0
OpenHFT/Chronicle-Queue,fengshao0907/Chronicle-Queue,OpenHFT/Chronicle-Queue
java
## Code Before: package vanilla.java.echo; import net.openhft.affinity.AffinityLock; import net.openhft.chronicle.Chronicle; import net.openhft.chronicle.ChronicleQueueBuilder; import net.openhft.chronicle.ExcerptAppender; import net.openhft.chronicle.ExcerptTailer; import java.io.IOException; public class QueueServ...
a33d7c90968d469d6259ff706b3a10e0344ad251
imports/ui/main-nav-bar.jsx
imports/ui/main-nav-bar.jsx
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; export default class MainNavBar extends React.Component { constructor(props, context) { super(props, context); this.isActive = this.isActive.bind(this); } isActive(view) { return this.context.router.isActive(view); ...
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; export default class MainNavBar extends React.Component { constructor(props, context) { super(props, context); this.isActive = this.isActive.bind(this); } isActive(view) { return this.context.router.isActive(view); ...
Add scale icon to measure view link in nav bar
Add scale icon to measure view link in nav bar
JSX
mit
minden/data-furnace,minden/data-furnace
jsx
## Code Before: import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; export default class MainNavBar extends React.Component { constructor(props, context) { super(props, context); this.isActive = this.isActive.bind(this); } isActive(view) { return this.context.router.is...
6d214b9972a22e8b7e2ca574fbb7ce30907a3667
lib/draper/active_model_support.rb
lib/draper/active_model_support.rb
module Draper::ActiveModelSupport module Proxies def self.extended(base) # These methods (as keys) will be created only if the correspondent # model descends from a specific class (as value) proxies = {} proxies[:to_param] = ActiveModel::Conversion if defined?(ActiveModel::Conversion) ...
module Draper::ActiveModelSupport module Proxies def self.extended(base) # These methods (as keys) will be created only if the correspondent # model descends from a specific class (as value) proxies = {} proxies[:to_param] = ActiveModel::Conversion if defined?(ActiveModel::Conversion) ...
Remove automatic delegation of to_model.
Remove automatic delegation of to_model. We don't always want this behavior, so I'm not comfortable with it by default. Closes #196, and also affects #180.
Ruby
mit
baberthal/draper,turingschool/draper,SpencerCDixon/draper,chuck-john/draper,totzyuta/draper,mallikarjunayaddala/draper,yui-knk/draper,totzyuta/draper,liwangbest/draper,estum/draper,drapergem/draper,sideci-sample/sideci-sample-draper,jianyuan/draper,mallikarjunayaddala/draper,outstand/draper,Bastes/draper,jianyuan/drape...
ruby
## Code Before: module Draper::ActiveModelSupport module Proxies def self.extended(base) # These methods (as keys) will be created only if the correspondent # model descends from a specific class (as value) proxies = {} proxies[:to_param] = ActiveModel::Conversion if defined?(ActiveModel::...
e0245910642500b1f525587b8f6ecd742a3de85e
app/models/project_file.rb
app/models/project_file.rb
class ProjectFile < ActiveRecord::Base belongs_to :project belongs_to :uploader, class_name: "User" after_destroy :delete_s3_file private def delete_s3_file s3 = Fog::Storage.new(provider: "AWS", aws_access_key_id: S3DirectUpload.config.access_key_id, aws_secret_access_key: S3DirectUpload.config.secre...
class ProjectFile < ActiveRecord::Base belongs_to :project belongs_to :uploader, class_name: "User" after_destroy :delete_s3_file def filepath=(filepath) write_attribute :filepath, CGI.unescape(filepath) end def url=(url) write_attribute :url, CGI.unescape(url) end private def delete...
Fix weird escaping coming from JS plugin
Fix weird escaping coming from JS plugin
Ruby
mit
nbudin/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,nbudin/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library
ruby
## Code Before: class ProjectFile < ActiveRecord::Base belongs_to :project belongs_to :uploader, class_name: "User" after_destroy :delete_s3_file private def delete_s3_file s3 = Fog::Storage.new(provider: "AWS", aws_access_key_id: S3DirectUpload.config.access_key_id, aws_secret_access_key: S3DirectUpl...
accb0296cf259a6a9764ecc79f76bef28a87d486
app/controllers/node_types_controller.rb
app/controllers/node_types_controller.rb
class NodeTypesController < ApplicationController inherit_resources actions :show def index @node_types = NodeType.all respond_to do |format| format.json { render json: { node_types: @node_types.as_api_response(:ember) } } end end def show show! do |...
class NodeTypesController < ApplicationController def index @node_types = NodeType.all respond_to do |format| format.json { render json: { node_types: @node_types.as_api_response(:ember) } } end end def show @node_type = NodeType.find(params[:id]) resp...
Convert show action to not use inherited_resources
Convert show action to not use inherited_resources
Ruby
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
ruby
## Code Before: class NodeTypesController < ApplicationController inherit_resources actions :show def index @node_types = NodeType.all respond_to do |format| format.json { render json: { node_types: @node_types.as_api_response(:ember) } } end end def sho...
313aa3a957156452cce4f8940f327450d87c03cd
src/Main.hs
src/Main.hs
import System.Environment (getArgs) import Control.Monad (forM_) import Text.ParserCombinators.Parsec (spaces, char, chainl1, runParser) import Text.ParserCombinators.Parsec.Number (int) infixOp = do spaces char '+' spaces return (+) expr = chainl1 int infixOp runExpr = runParser expr 0 "<input>" showResult...
import System.Environment (getArgs) import Control.Monad (forM_) import Text.ParserCombinators.Parsec (spaces, char, chainl1, runParser) import Text.ParserCombinators.Parsec.Number (int) infixOp = do spaces char '+' spaces return (+) expr = chainl1 int infixOp runExpr = runParser expr 0 "<input>" showResult...
Split out the IO and non-IO bits. HT @mauke
Split out the IO and non-IO bits. HT @mauke
Haskell
isc
steshaw/huttons-razor
haskell
## Code Before: import System.Environment (getArgs) import Control.Monad (forM_) import Text.ParserCombinators.Parsec (spaces, char, chainl1, runParser) import Text.ParserCombinators.Parsec.Number (int) infixOp = do spaces char '+' spaces return (+) expr = chainl1 int infixOp runExpr = runParser expr 0 "<inp...
7f679d4acb33f38edcbc9c31688d90329824cb80
snippets/layout-relative-position/layout-relative-position.js
snippets/layout-relative-position/layout-relative-position.js
var page = tabris.create("Page", { title: "Layout - Relative Positioning", topLevel: true }); var composite1 = tabris.create("Composite", { layoutData: {left: 0, top: 0, width: 100, height: 100}, background: "red" }).appendTo(page); tabris.create("Composite", { layoutData: {left: [composite1, 10], top: [com...
var page = tabris.create("Page", { title: "Layout - Relative Positioning", topLevel: true }).open(); var redbox = tabris.create("Composite", { layoutData: {left: 10, top: 10, width: 100, height: 100}, background: "red" }).appendTo(page); // you can refer to a sibling widget by reference ... tabris.create("Co...
Add example for "prev()" reference to snippet
Add example for "prev()" reference to snippet Change-Id: I1b9fb2f97ca0e9aee1ba21e58a71527024d26538
JavaScript
bsd-3-clause
eclipsesource/tabris-js,pimaxdev/tabris,moham3d/tabris-js,eclipsesource/tabris-js,mkostikov/tabris-js,eclipsesource/tabris-js,moham3d/tabris-js,pimaxdev/tabris,mkostikov/tabris-js
javascript
## Code Before: var page = tabris.create("Page", { title: "Layout - Relative Positioning", topLevel: true }); var composite1 = tabris.create("Composite", { layoutData: {left: 0, top: 0, width: 100, height: 100}, background: "red" }).appendTo(page); tabris.create("Composite", { layoutData: {left: [composite1...
4d7755841b8f73d087696f76784acecf0d22626e
db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb
db/migrate/20110902203823_add_allowed_children_cache_to_pages.rb
class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :text, default: '' Page.reset_column_information Page.find_each do |page| page.save # update the allowed_children_cache end end def self.down remove_column :pages, :all...
class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :text Page.reset_column_information Page.find_each do |page| page.save # update the allowed_children_cache end end def self.down remove_column :pages, :allowed_children...
Remove default because MYSQL blows up
Remove default because MYSQL blows up
Ruby
mit
radiant/radiant,radiant/radiant,radiant/radiant,radiant/radiant
ruby
## Code Before: class AddAllowedChildrenCacheToPages < ActiveRecord::Migration def self.up add_column :pages, :allowed_children_cache, :text, default: '' Page.reset_column_information Page.find_each do |page| page.save # update the allowed_children_cache end end def self.down remove_col...
a9a9f75146074b41cf6b73de1ef19037521bee56
src/bindings/javascript/logger.cpp
src/bindings/javascript/logger.cpp
using namespace emscripten; EMSCRIPTEN_BINDINGS(libcellml_logger) { class_<libcellml::Logger>("Logger") .function("addIssue", &libcellml::Logger::addIssue) .function("removeAllIssues", &libcellml::Logger::removeAllIssues) .function("error", &libcellml::Logger::error) .function("w...
using namespace emscripten; EMSCRIPTEN_BINDINGS(libcellml_logger) { class_<libcellml::Logger>("Logger") .function("addIssue", &libcellml::Logger::addIssue) .function("removeAllIssues", &libcellml::Logger::removeAllIssues) .function("error", &libcellml::Logger::error) .function("w...
Add missing API from Javascript bindings Logger class.
Add missing API from Javascript bindings Logger class.
C++
apache-2.0
hsorby/libcellml,cellml/libcellml,nickerso/libcellml,cellml/libcellml,cellml/libcellml,hsorby/libcellml,nickerso/libcellml,nickerso/libcellml,nickerso/libcellml,hsorby/libcellml,hsorby/libcellml,cellml/libcellml
c++
## Code Before: using namespace emscripten; EMSCRIPTEN_BINDINGS(libcellml_logger) { class_<libcellml::Logger>("Logger") .function("addIssue", &libcellml::Logger::addIssue) .function("removeAllIssues", &libcellml::Logger::removeAllIssues) .function("error", &libcellml::Logger::error) ...
45873300c102fc65fb8bd3b1aac6701bdf19987d
README.md
README.md
Infra ======= DevOps course, GCP practice 6. Project has scripts for manual setup: - install Ruby `install_ruby.sh` - install MongoDB `install_mongodb.sh` - deploy application 'reddit' from Artemmkin `deploy.sh` Project has scripts to make automatic setup at the time startup new instance: - startup script `star...
Infra ======= DevOps course, GCP practice 6. Project has scripts for manual setup: - install Ruby `install_ruby.sh` - install MongoDB `install_mongodb.sh` - deploy application 'reddit' from Artemmkin `deploy.sh` Project has scripts to make automatic setup at the time startup new instance: - startup script `star...
Add a description for creating an instance from a custom image
Add a description for creating an instance from a custom image
Markdown
mit
DmitriySh/infra,DmitriySh/infra,DmitriySh/infra
markdown
## Code Before: Infra ======= DevOps course, GCP practice 6. Project has scripts for manual setup: - install Ruby `install_ruby.sh` - install MongoDB `install_mongodb.sh` - deploy application 'reddit' from Artemmkin `deploy.sh` Project has scripts to make automatic setup at the time startup new instance: - star...
4001a94fc2ba021a791b6125430b3c65cce69ca0
lib/analyze_staff_table.rb
lib/analyze_staff_table.rb
require 'csv' class AnalyzeStaffTable < Struct.new(:path) def contents encoding_options = { invalid: :replace, undef: :replace, replace: '' } @file ||= File.read(path).encode('UTF-8', 'binary', encoding_options) .gsub(/\\\\/, '') ...
require 'csv' class AnalyzeStaffTable < Struct.new(:path) def contents encoding_options = { invalid: :replace, undef: :replace, replace: '' } @file ||= File.read(path).encode('UTF-8', 'binary', encoding_options) .gsub(/\\\\/, '') ...
Print names of all educators in X2 w/o local ID
Print names of all educators in X2 w/o local ID + #6
Ruby
mit
jhilde/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,erose/studentinsights,erose/studentinsights,jhilde/studentinsights,erose/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,erose/studentinsights,studentinsights/studentinsights
ruby
## Code Before: require 'csv' class AnalyzeStaffTable < Struct.new(:path) def contents encoding_options = { invalid: :replace, undef: :replace, replace: '' } @file ||= File.read(path).encode('UTF-8', 'binary', encoding_options) .gsub(/\\\\/, '') ...
60447c80583f52e88ded52eddc8a51e94260c230
hands-on00.yml
hands-on00.yml
--- - hosts: webservers become: yes become_user: root tasks: - name: yum install opstools yum: pkg={{ item }} state=installed with_items: - epel-release - telnet - wget - rsync - tree - tcpdump - sysstat - dstat - vim-enhanced...
--- - hosts: webservers become: yes become_user: root tasks: - name: yum install opstools yum: pkg={{ item }} state=installed with_items: - epel-release - telnet - wget - rsync - tree - tcpdump - sysstat - dstat - vim-enhanced...
Move task installing htop to hands-on03.
Move task installing htop to hands-on03.
YAML
mit
uorat/ansible-handson,uorat/ansible-handson
yaml
## Code Before: --- - hosts: webservers become: yes become_user: root tasks: - name: yum install opstools yum: pkg={{ item }} state=installed with_items: - epel-release - telnet - wget - rsync - tree - tcpdump - sysstat - dstat ...
4836cd2b4b7c344c69a0c50c22354858f6220062
app/assets/javascripts/show_hide_checkboxes.coffee
app/assets/javascripts/show_hide_checkboxes.coffee
root = exports ? this ShowHideCheckboxesModule = expandOnLoad: -> $('input.show-hide-checkbox:checkbox').each -> if $(this).is(':checked') $('#' + $(this).data('section') + '-only').toggle('hide') bindToCheckboxes: -> $('input.show-hide-checkbox:checkbox').on 'change', -> $('#' + $(th...
root = exports ? this ShowHideCheckboxesModule = expandOnLoad: -> $('input.show-hide-checkbox:checkbox').each -> $(this).parents('label').toggleClass('selected', $(this).is(':checked')); if $(this).is(':checked') $('#' + $(this).data('section') + '-only').toggle('hide') bindToCheckboxes: ...
Add selected to checkbox labels
Add selected to checkbox labels
CoffeeScript
mit
ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp
coffeescript
## Code Before: root = exports ? this ShowHideCheckboxesModule = expandOnLoad: -> $('input.show-hide-checkbox:checkbox').each -> if $(this).is(':checked') $('#' + $(this).data('section') + '-only').toggle('hide') bindToCheckboxes: -> $('input.show-hide-checkbox:checkbox').on 'change', -> ...
b1bb08a8ee246774b43e521e8f754cdcc88c418b
gasistafelice/gas/management.py
gasistafelice/gas/management.py
from django.db.models.signals import post_syncdb from gasistafelice.gas.workflow_data import workflow_dict def init_workflows(app, created_models, verbosity, **kwargs): app_label = app.__name__.split('.')[-2] if app_label == 'workflows' and created_models: # `worklows` app was syncronized for the first time ...
from django.db.models.signals import post_syncdb from gasistafelice.gas.workflow_data import workflow_dict def init_workflows(app, created_models, verbosity, **kwargs): app_label = app.__name__.split('.')[-2] if app_label == 'workflows' and "Workflow" in created_models: # `worklows` app was syncronized for th...
Fix in post_syncdb workflow registration
Fix in post_syncdb workflow registration
Python
agpl-3.0
michelesr/gasistafelice,befair/gasistafelice,matteo88/gasistafelice,matteo88/gasistafelice,OrlyMar/gasistafelice,kobe25/gasistafelice,michelesr/gasistafelice,kobe25/gasistafelice,befair/gasistafelice,michelesr/gasistafelice,matteo88/gasistafelice,kobe25/gasistafelice,feroda/gasistafelice,OrlyMar/gasistafelice,michelesr...
python
## Code Before: from django.db.models.signals import post_syncdb from gasistafelice.gas.workflow_data import workflow_dict def init_workflows(app, created_models, verbosity, **kwargs): app_label = app.__name__.split('.')[-2] if app_label == 'workflows' and created_models: # `worklows` app was syncronized for ...
9db440e31afcd877d5b3f586ccffc52ff20f56b7
tmuxinator/survey_tool_elixir.yml
tmuxinator/survey_tool_elixir.yml
name: survey_tool_elixir root: ~/elixir/survey_tool_elixir # Runs before everything. Use it to start daemons etc. pre: # - brew services start postgresql # - brew services start redis # - mailcatcher # Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions...
name: survey_tool_elixir root: ~/elixir/survey_tool_elixir # Runs before everything. Use it to start daemons etc. pre: # - brew services start postgresql # - brew services start redis # - mailcatcher # Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions...
Add grip to survey elixir project
Add grip to survey elixir project
YAML
mit
paulfioravanti/dotfiles,paulfioravanti/dotfiles,paulfioravanti/dotfiles
yaml
## Code Before: name: survey_tool_elixir root: ~/elixir/survey_tool_elixir # Runs before everything. Use it to start daemons etc. pre: # - brew services start postgresql # - brew services start redis # - mailcatcher # Runs in each window and pane before window/pane specific commands. Useful for setting up inte...
fdefb568697322d4e1f8e19f8fdba90a7959e080
src/main/resources/resources/vocabulary/sql/getMappedSourcecodes.sql
src/main/resources/resources/vocabulary/sql/getMappedSourcecodes.sql
select CONCEPT_ID, CONCEPT_NAME, ISNULL(STANDARD_CONCEPT,'N') STANDARD_CONCEPT, ISNULL(c.INVALID_REASON,'V') INVALID_REASON, CONCEPT_CODE, CONCEPT_CLASS_ID, DOMAIN_ID, VOCABULARY_ID from @CDM_schema.concept_relationship cr join @CDM_schema.concept c on c.concept_id = cr.concept_id_1 where cr.concept_id_2 in (@identifie...
select CONCEPT_ID, CONCEPT_NAME, ISNULL(STANDARD_CONCEPT,'N') STANDARD_CONCEPT, ISNULL(c.INVALID_REASON,'V') INVALID_REASON, CONCEPT_CODE, CONCEPT_CLASS_ID, DOMAIN_ID, VOCABULARY_ID from @CDM_schema.concept_relationship cr join @CDM_schema.concept c on c.concept_id = cr.concept_id_1 where cr.concept_id_2 in (@identifie...
Remove invalid concept relationships when looking up mapped concepts.
Remove invalid concept relationships when looking up mapped concepts. Fixes #85
SQL
apache-2.0
leeevans/WebAPI,rkboyce/WebAPI,OHDSI/WebAPI,OHDSI/WebAPI,OHDSI/WebAPI
sql
## Code Before: select CONCEPT_ID, CONCEPT_NAME, ISNULL(STANDARD_CONCEPT,'N') STANDARD_CONCEPT, ISNULL(c.INVALID_REASON,'V') INVALID_REASON, CONCEPT_CODE, CONCEPT_CLASS_ID, DOMAIN_ID, VOCABULARY_ID from @CDM_schema.concept_relationship cr join @CDM_schema.concept c on c.concept_id = cr.concept_id_1 where cr.concept_id_...
a4eb4066fe02a83c5281381f9577fafca9d4f37c
spec/factories/transactions.rb
spec/factories/transactions.rb
FactoryGirl.define do factory :transaction do sender receiver activity balance image amount 100 end end
FactoryGirl.define do factory :transaction do sender receiver activity balance image File.new(Rails.root + 'spec/fixtures/images/rails.png') amount 100 end end
Create new file in FactoryGirl image to fix tests
Create new file in FactoryGirl image to fix tests
Ruby
mit
kabisa/kudo-o-matic,kabisa/kudo-o-matic,kabisa/kudo-o-matic
ruby
## Code Before: FactoryGirl.define do factory :transaction do sender receiver activity balance image amount 100 end end ## Instruction: Create new file in FactoryGirl image to fix tests ## Code After: FactoryGirl.define do factory :transaction do sender receiver activity ...
65f069c82beea8e96bce780add4f6c3637a0d549
challenge_3/python/ning/challenge_3.py
challenge_3/python/ning/challenge_3.py
def find_majority(sequence): item_counter = dict() for item in sequence: if item not in item_counter: item_counter[item] = 1 else: item_counter[item] += 1 for item, item_count in item_counter.items(): if item_count > len(sequence) / 2: return ite...
def find_majority(sequence): item_counter = dict() for item in sequence: if item not in item_counter: item_counter[item] = 1 else: item_counter[item] += 1 if item_counter[item] > len(sequence) / 2: return item test_sequence_list = [2,2,3,7,5,...
Include check majority in first loop rather than separate loop
Include check majority in first loop rather than separate loop
Python
mit
mindm/2017Challenges,DakRomo/2017Challenges,DakRomo/2017Challenges,DakRomo/2017Challenges,erocs/2017Challenges,erocs/2017Challenges,erocs/2017Challenges,erocs/2017Challenges,erocs/2017Challenges,DakRomo/2017Challenges,erocs/2017Challenges,popcornanachronism/2017Challenges,popcornanachronism/2017Challenges,popcornanachr...
python
## Code Before: def find_majority(sequence): item_counter = dict() for item in sequence: if item not in item_counter: item_counter[item] = 1 else: item_counter[item] += 1 for item, item_count in item_counter.items(): if item_count > len(sequence) / 2: ...
fd5674a1b36498e5d3a597203c180ded8c57d058
morph_proxy.py
morph_proxy.py
def request(context, flow): # print out all the basic information to determine what request is being made # coming from which container # print flow.request.method # print flow.request.host # print flow.request.path # print flow.request.scheme # print flow.request.client_conn.address[0] # print "***" ...
def response(context, flow): text = flow.request.method + " " + flow.request.scheme + "://" + flow.request.host + flow.request.path + " FROM " + flow.request.client_conn.address[0] + " REQUEST SIZE " + str(len(flow.request.content)) + " RESPONSE SIZE " + str(len(flow.response.content)) print text
Add request and response size
Add request and response size
Python
agpl-3.0
otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,OpenAddressesUK/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,OpenAddressesUK/morph,openaustralia/morph,OpenAddressesUK/morph,openaustralia/morph,openaustralia/morph,OpenAddr...
python
## Code Before: def request(context, flow): # print out all the basic information to determine what request is being made # coming from which container # print flow.request.method # print flow.request.host # print flow.request.path # print flow.request.scheme # print flow.request.client_conn.address[0] ...
c42b8cf5fef2ed392bbc5bde73dfca6d482ba198
website/about/python-about.tpl.php
website/about/python-about.tpl.php
<?=$Version;?> <p>Home Page: <a href="http://www.python.org/">http://www.python.org/</a></p> <p>Download: <a href="http://www.python.org/download/">http://www.python.org/download/</a></p>
<?=$Version;?> <p>Paul Grahm's <a href="http://paulgraham.com/pypar.html">Essay</a></p> <p>Home Page: <a href="http://www.python.org/">http://www.python.org/</a></p> <p>Download: <a href="http://www.python.org/download/">http://www.python.org/download/</a></p>
Add a Paul Graham's note about Python.
Add a Paul Graham's note about Python.
PHP
bsd-3-clause
kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout,kragen/shootout
php
## Code Before: <?=$Version;?> <p>Home Page: <a href="http://www.python.org/">http://www.python.org/</a></p> <p>Download: <a href="http://www.python.org/download/">http://www.python.org/download/</a></p> ## Instruction: Add a Paul Graham's note about Python. ## Code After: <?=$Version;?> <p>Paul Grahm's <a href="http...
8fe291d7b8b28b7e9ff06a55d322055a23989145
spec/models/model_spec.rb
spec/models/model_spec.rb
describe Model do before(:each) do Webtrends::Event.stub(:track) end context 'successfull load' do context 'after validation' do it 'should respond to track event' do subject.some_attribute = 'cupcake' expect(subject).to receive(:track_event) subject.save end end ...
describe Model do context 'successfull load' do context 'after validation' do it 'should respond to track event' do subject.some_attribute = 'cupcake' expect_any_instance_of(Webtrends::Event).to receive(:track) subject.save end end end context 'usuccessfull load' do ...
Change expect to use expect_any_instance_of
Change expect to use expect_any_instance_of * Remove stub track to use expect_any_instance_of
Ruby
mit
amaabca/webtrends-rails
ruby
## Code Before: describe Model do before(:each) do Webtrends::Event.stub(:track) end context 'successfull load' do context 'after validation' do it 'should respond to track event' do subject.some_attribute = 'cupcake' expect(subject).to receive(:track_event) subject.save ...
0a12d964049c4a83695bb334a627c98edaee3b9c
src/package.json
src/package.json
{ "name": "dash-ci", "version": "1.0.0", "description": "Dashboard for continuous integration", "main": "index.html", "author": "Marcos Junior <junalmeida@gmail.com>", "license": "MIT", "dependencies": { "angular": "1.6.9", "angular-animate": "1.6.9", "angular-material": "1.1.7", "angular-...
{ "name": "dash-ci", "version": "1.0.0", "description": "Dashboard for continuous integration", "main": "index.html", "author": "Marcos Junior <junalmeida@gmail.com>", "license": "MIT", "dependencies": { "angular": "1.6.9", "angular-animate": "1.6.9", "angular-material": "1.1.7", "angular-...
Add npm script to build TypeScript with source map
Add npm script to build TypeScript with source map
JSON
mit
junalmeida/dash-ci,junalmeida/dash-ci,junalmeida/dash-ci,junalmeida/dash-ci
json
## Code Before: { "name": "dash-ci", "version": "1.0.0", "description": "Dashboard for continuous integration", "main": "index.html", "author": "Marcos Junior <junalmeida@gmail.com>", "license": "MIT", "dependencies": { "angular": "1.6.9", "angular-animate": "1.6.9", "angular-material": "1.1.7...
bc7ed292d2ab30a56442bb8f4ee7bc0e54ce48ff
server/server.go
server/server.go
package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("../ui/"))) http.ListenAndServe(":8080", nil) }
package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("../ui/"))) http.HandleFunc("/edit", EditPageHandler) http.HandleFunc("/save", SavePageHandler) http.HandleFunc("/delete", DeletePageHandler) http.ListenAndServe(":8080", nil) } func EditPageHandler(rw http.ResponseWrite...
Add stubs for various request handlers
Add stubs for various request handlers
Go
bsd-2-clause
ambidextrousTx/RWiki,ambidextrousTx/RWiki
go
## Code Before: package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("../ui/"))) http.ListenAndServe(":8080", nil) } ## Instruction: Add stubs for various request handlers ## Code After: package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(ht...
b96084fea6fb5feddffed89fa323baffe4e2ea97
README.md
README.md
Javascript library for managing Web Access Control ACLs / permissions. ## Usage ```js var acl = require('solid-permissions') ```
[![](https://img.shields.io/badge/project-Solid-7C4DFF.svg?style=flat)](https://github.com/solid/solid) [![NPM Version](https://img.shields.io/npm/v/solid-permissions.svg?style=flat)](https://npm.im/solid-permissions) [![Build Status](https://travis-ci.org/solid/solid-permissions.svg?branch=master)](https://travis-ci....
Add nmp and travis badges
Add nmp and travis badges
Markdown
mit
solid/solid-permissions
markdown
## Code Before: Javascript library for managing Web Access Control ACLs / permissions. ## Usage ```js var acl = require('solid-permissions') ``` ## Instruction: Add nmp and travis badges ## Code After: [![](https://img.shields.io/badge/project-Solid-7C4DFF.svg?style=flat)](https://github.com/solid/solid) [![NPM ...
090a7c5f053b9350966bf364b8c14b1fe0e100d8
web/controllers/auth_controller.ex
web/controllers/auth_controller.ex
defmodule RemoteRetro.AuthController do use RemoteRetro.Web, :controller alias RemoteRetro.OAuth.Google alias RemoteRetro.User def index(conn, _params) do redirect conn, external: authorize_url!() end def callback(conn, %{"code" => code}) do user_info = Google.get_user_info!(code) user = Repo....
defmodule RemoteRetro.AuthController do use RemoteRetro.Web, :controller alias RemoteRetro.OAuth.Google alias RemoteRetro.User def index(conn, _params) do redirect conn, external: authorize_url!() end def callback(conn, %{"code" => code}) do user_info = Google.get_user_info!(code) user_params ...
Modify AuthController to use insert_or_update
Modify AuthController to use insert_or_update Work on #136
Elixir
mit
stride-nyc/remote_retro,samdec11/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro
elixir
## Code Before: defmodule RemoteRetro.AuthController do use RemoteRetro.Web, :controller alias RemoteRetro.OAuth.Google alias RemoteRetro.User def index(conn, _params) do redirect conn, external: authorize_url!() end def callback(conn, %{"code" => code}) do user_info = Google.get_user_info!(code) ...
d18fd99dce6660014612da0dcb3f2dfab2895e9e
ruby-sun-times.gemspec
ruby-sun-times.gemspec
$LOAD_PATH << File.expand_path('lib', File.dirname(__FILE__)) require 'sun_times/version' Gem::Specification.new do |s| s.name = 'ruby-sun-times' s.summary = 'Calculate sunrise and sunset times for a given time and place' s.version = SunTimes::VERSION::STRING s.homepage ...
$LOAD_PATH << File.expand_path('lib', File.dirname(__FILE__)) require 'sun_times/version' Gem::Specification.new do |spec| spec.name = 'ruby-sun-times' spec.summary = 'Calculate sunrise and sunset times for a given time and place' spec.version = SunTimes::VERSION::STRING spec.ho...
Use a more descriptive variable name
Use a more descriptive variable name
Ruby
mit
joeyates/ruby-sun-times
ruby
## Code Before: $LOAD_PATH << File.expand_path('lib', File.dirname(__FILE__)) require 'sun_times/version' Gem::Specification.new do |s| s.name = 'ruby-sun-times' s.summary = 'Calculate sunrise and sunset times for a given time and place' s.version = SunTimes::VERSION::STRING s.h...
8b5f58b245a8752cf1e5738edd993367363c9753
.lgtm.yml
.lgtm.yml
path_classifiers: library: - app/private - vagrant/shake.js queries: - exclude: js/missing-token-validation
path_classifiers: library: - frontend/src/assets/private queries: - exclude: js/missing-token-validation
Update ignored code for LGTM analysis
Update ignored code for LGTM analysis
YAML
mit
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
yaml
## Code Before: path_classifiers: library: - app/private - vagrant/shake.js queries: - exclude: js/missing-token-validation ## Instruction: Update ignored code for LGTM analysis ## Code After: path_classifiers: library: - frontend/src/assets/private queries: - exclude: js/missing-token-vali...
386bd63f8d21fde74018815d410179758f5241cf
server/store/requests.js
server/store/requests.js
const redis = require('./redis'); const config = require('./config'); const getRequest = async (requestId) => { // Set TTL for request redis.expire(`requests:${requestId}`, config('requests_ttl')); return await redis.hgetallAsync(`requests:${requestId}`); }; const createRequest = async (requestDetails) => { /...
const redis = require('./redis'); const config = require('../config/index.js'); const getRequest = async (requestId) => { // Set TTL for request redis.expire(`requests:${requestId}`, config('requests_ttl')); return await redis.hgetallAsync(`requests:${requestId}`); }; const createRequest = async (requestDetails...
Fix dependency inclusion for require statement
Fix dependency inclusion for require statement
JavaScript
mit
DAVFoundation/missioncontrol,DAVFoundation/missioncontrol,DAVFoundation/missioncontrol
javascript
## Code Before: const redis = require('./redis'); const config = require('./config'); const getRequest = async (requestId) => { // Set TTL for request redis.expire(`requests:${requestId}`, config('requests_ttl')); return await redis.hgetallAsync(`requests:${requestId}`); }; const createRequest = async (requestD...
a7993f97013314ae1f2f6802252659d4960d6270
Kiwi/Config.hs
Kiwi/Config.hs
{-# LANGUAGE DeriveDataTypeable #-} module Kiwi.Config where import System.Console.CmdArgs (cmdArgs, Data, Typeable) data Args = Args { wikidir :: FilePath , port :: Int , host :: String } deriving (Show, Data, Typeable) defaultArgs :: Args defaultArgs = Args { wikidir = "./wiki" ...
{-# LANGUAGE DeriveDataTypeable #-} module Kiwi.Config where import System.Environment import System.Console.CmdArgs ((&=), cmdArgs, Data, details, help, program, summary, Typeable) data Args = Args { wikidir :: FilePath , port :: Int , host :: String } deriving (Sho...
Add more information on command line arguments
Add more information on command line arguments
Haskell
bsd-3-clause
acieroid/kiwi
haskell
## Code Before: {-# LANGUAGE DeriveDataTypeable #-} module Kiwi.Config where import System.Console.CmdArgs (cmdArgs, Data, Typeable) data Args = Args { wikidir :: FilePath , port :: Int , host :: String } deriving (Show, Data, Typeable) defaultArgs :: Args defaultArgs = Args { wikid...
2e1216e70acc23fcd68888d8c7f0bb4bc39bb630
lib/core_ext/patch-remove_commit_search_from_form.rb
lib/core_ext/patch-remove_commit_search_from_form.rb
module ActionView module Helpers module TagHelper # submit_tag "Search" generates a submit tag that adds "commit=Search" to the URL, # which is ugly and unnecessary. Override TagHelper#tag and remove this globally. alias_method :orig_tag, :tag def tag(name, options = nil, open = false, es...
module ActionView module Helpers module TagHelper # submit_tag "Search" generates a submit tag that adds "commit=Search" to the URL, # which is ugly and unnecessary. Override TagHelper#tag and remove this globally. def tag_with_remove_commit_search(name, options = nil, open = false, escape = tr...
Use method chaining instead of orig_ prefix.
Use method chaining instead of orig_ prefix.
Ruby
isc
moebooru/moebooru,moebooru/moebooru,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,euank/moebooru-thin,nanaya/moebooru,nanaya/moebooru,euank/moebooru-thin,euank/moebooru-thin,nanaya/moebooru,euank/moebooru-thin,moebooru/moebooru,euank/moebooru-thin,moebooru/moebooru
ruby
## Code Before: module ActionView module Helpers module TagHelper # submit_tag "Search" generates a submit tag that adds "commit=Search" to the URL, # which is ugly and unnecessary. Override TagHelper#tag and remove this globally. alias_method :orig_tag, :tag def tag(name, options = nil, ...
606f186c67f4e56b988e0dc43180fbc63a8cd512
subclass-error.js
subclass-error.js
/*global define*/ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([], factory) } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support modu...
/*global define*/ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([], factory) } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support modu...
Allow `message` to be inherited from prototype
Allow `message` to be inherited from prototype
JavaScript
mit
dasilvacontin/subclass-error
javascript
## Code Before: /*global define*/ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([], factory) } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments t...
570b04a2a5e299089830a43cf0f3a7d1ca392a89
lib/tests/module.js
lib/tests/module.js
var Mocha = require('mocha'), _ = require('underscore'); module.exports = function (browser, module, suite, config, tests) { suite = Mocha.Suite.create(suite, module.slug); tests = _.extend({ exists: function () { return browser .$('#' + module.slug).isDisplayed() .should.eventual...
var Mocha = require('mocha'), _ = require('underscore'); module.exports = function (browser, module, suite, config, tests) { suite = Mocha.Suite.create(suite, module.slug); tests = _.extend({ exists: function () { return browser .$('#' + module.slug).isDisplayed() .should.eventual...
Add tests for the non-existence of error messages
Add tests for the non-existence of error messages
JavaScript
mit
alphagov/cheapseats
javascript
## Code Before: var Mocha = require('mocha'), _ = require('underscore'); module.exports = function (browser, module, suite, config, tests) { suite = Mocha.Suite.create(suite, module.slug); tests = _.extend({ exists: function () { return browser .$('#' + module.slug).isDisplayed() ...
082a50129ba598fd2f5e7f0d9fafd0113415e8b0
courses/paa/projects/papini-bani/README.md
courses/paa/projects/papini-bani/README.md
This is the folder that contains project ideas and proposal for students Papini and Bani, in order to pass their PAA exam. The proposal can be read [here]. Their work is versioned at [GitHub], where there's a work-in-progress [notebook]. Event log: - **December 2015, 22**: make a proposal for the project: a study ...
This is the folder that contains project ideas and proposal for students Papini and Bani, in order to pass their PAA exam. The proposal can be read [here]. Their work is versioned at [GitHub], where there's a work-in-progress [notebook]. Event log: - **December 2015, 22**: make a proposal for the project: a study ...
Change the reference to the notebook since they changed its name.
Change the reference to the notebook since they changed its name.
Markdown
apache-2.0
massimo-nocentini/PhD,massimo-nocentini/recurrences-unfolding
markdown
## Code Before: This is the folder that contains project ideas and proposal for students Papini and Bani, in order to pass their PAA exam. The proposal can be read [here]. Their work is versioned at [GitHub], where there's a work-in-progress [notebook]. Event log: - **December 2015, 22**: make a proposal for the p...
c08eac787349ed9b89c972dda81c3a14c8db1ad6
prospector.yml
prospector.yml
strictness: low test-warnings: false doc-warnings: true uses: - django - celery ignore-paths: - projects - builds - docs ignore-patterns: - /migrations/ pep8: full: true options: max-line-length: 100 pylint: max-line-length: 100 mccabe: run: false pep257: run: false
strictness: low test-warnings: false doc-warnings: true uses: - django - celery ignore-paths: - projects - builds - docs ignore-patterns: - /migrations/ pep8: full: true options: max-line-length: 100 pylint: max-line-length: 100 disable: - logging-format-interpolation mccabe...
Disable pylint check for logging-format-interpolation
Disable pylint check for logging-format-interpolation Otherwise pylint will raise a warning if this is used: logger.debug('Logging value: {value}'.format(value=123)) And recommends using: logger.debug('Logging value: %(value)s', value=123)
YAML
mit
pombredanne/readthedocs.org,royalwang/readthedocs.org,wijerasa/readthedocs.org,stevepiercy/readthedocs.org,istresearch/readthedocs.org,Tazer/readthedocs.org,soulshake/readthedocs.org,rtfd/readthedocs.org,espdev/readthedocs.org,titiushko/readthedocs.org,fujita-shintaro/readthedocs.org,michaelmcandrew/readthedocs.org,lap...
yaml
## Code Before: strictness: low test-warnings: false doc-warnings: true uses: - django - celery ignore-paths: - projects - builds - docs ignore-patterns: - /migrations/ pep8: full: true options: max-line-length: 100 pylint: max-line-length: 100 mccabe: run: false pep257: run: f...
494e303419cab0ff1b0f58265b190d306a100f50
src/transform/curry.ml
src/transform/curry.ml
open Ident open Term open Decl open Theory open Task let rec curry t = match t.t_node with | Tbinop (Timplies, lhs, rhs) -> expand t lhs (curry rhs) | _ -> t_map curry t and expand orig l r = match l.t_node with | Tbinop (Tand, a, b) -> expand orig a (expand orig b r) | _ -> t_label_copy orig (t_implies (cu...
open Term open Decl let rec curry t = match t.t_node with | Tbinop (Timplies, lhs, rhs) -> expand t lhs (curry rhs) | _ -> t_map curry t and expand orig l r = match l.t_node with | Tbinop (Tand, a, b) -> expand orig a (expand orig b r) | _ -> t_label_copy orig (t_implies (curry l) r) let curry = Trans.goa...
Fix warning from OCaml compiler
Fix warning from OCaml compiler
OCaml
lgpl-2.1
ssaavedra/why3,ssaavedra/why3,ssaavedra/why3
ocaml
## Code Before: open Ident open Term open Decl open Theory open Task let rec curry t = match t.t_node with | Tbinop (Timplies, lhs, rhs) -> expand t lhs (curry rhs) | _ -> t_map curry t and expand orig l r = match l.t_node with | Tbinop (Tand, a, b) -> expand orig a (expand orig b r) | _ -> t_label_copy ori...
90017332a560332176fa65a0bea0ae79e6e6d4cf
reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java
reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java
package reactor.kafka; import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; public class KafkaPublisher<T> implements Publisher<T> { @Override public void subscribe(Subscriber<? super T> subscriber) { } }
package reactor.kafka; import kafka.consumer.Consumer; import kafka.consumer.ConsumerConfig; import kafka.consumer.ConsumerIterator; import kafka.consumer.KafkaStream; import kafka.javaapi.consumer.ConsumerConnector; import kafka.message.MessageAndMetadata; import kafka.serializer.Decoder; import org.reactivestreams.P...
Implement kafka publisher on top of reactive streams
Implement kafka publisher on top of reactive streams
Java
apache-2.0
reactor/reactor-incubator,jbrisbin/reactor-extensions
java
## Code Before: package reactor.kafka; import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; public class KafkaPublisher<T> implements Publisher<T> { @Override public void subscribe(Subscriber<? super T> subscriber) { } } ## Instruction: Implement kafka publisher on top of reactive str...
caf161894a0c5e648bebe9a2bbf66435e0edb79f
test/post.js
test/post.js
var st = require('../lib/stocktwits'); var token = 'YOUR_ACCESS_TOKEN'; describe('POST', function () { it('should make a POST request', function (done) { st.post('messages/create', {access_token:token}, {body:'message'}, function (err, res) { if (err) return done(err); res.body.r...
var st = require('../lib/stocktwits'); var token = 'YOUR_ACCESS_TOKEN'; describe('POST', function () { it('should make a POST request', function (done) { if (token == 'YOUR_ACCESS_TOKEN') return done(new Error('Access token required')); st.post('messages/create', {access_token:token}, {body:'me...
Return error on missing access token
Return error on missing access token
JavaScript
mit
simov/stocktwits
javascript
## Code Before: var st = require('../lib/stocktwits'); var token = 'YOUR_ACCESS_TOKEN'; describe('POST', function () { it('should make a POST request', function (done) { st.post('messages/create', {access_token:token}, {body:'message'}, function (err, res) { if (err) return done(err); ...
d404236e286366cf2f9e4c81ff5e6d3fb9fa0456
app/src/alquimia/index.js
app/src/alquimia/index.js
/** * @ngdoc overview * @name alquimia * @author Mauro Constantinescu <mauro.constantinescu@gmail.com> * @copyright © 2015 White, Red & Green Digital S.r.l. * * @description * The `alquimia` module provides utility objects for using the Alquimia framework as efficiently as possible. * The main goal...
/** * @ngdoc overview * @name alquimia * @author Mauro Constantinescu <mauro.constantinescu@gmail.com> * @copyright © 2015 White, Red & Green Digital S.r.l. * * @description * The `alquimia` module provides utility objects for using the Alquimia framework as efficiently as possible. * The main goal...
Set alquimia "a" directive to be executed only on localhost
Set alquimia "a" directive to be executed only on localhost
JavaScript
mit
AlquimiaWRG/alquimia-wa,AlquimiaWRG/alquimia-wa,AlquimiaWRG/alquimia-wa
javascript
## Code Before: /** * @ngdoc overview * @name alquimia * @author Mauro Constantinescu <mauro.constantinescu@gmail.com> * @copyright © 2015 White, Red & Green Digital S.r.l. * * @description * The `alquimia` module provides utility objects for using the Alquimia framework as efficiently as possible. ...
e6d1af0e9bcbf996bb835e9774976f08a58a1ca8
README.md
README.md
Troposphere =========== ```bash cp troposphere/troposphere.cfg.dist troposphere/troposphere.cfg ``` Edit `troposphere.cfg` with your own settings. ```bash pip install -r requirements.txt python troposphere/__init__.py ```
Troposphere =========== ```bash cp troposphere/troposphere.cfg.dist troposphere/troposphere.cfg ``` Edit `troposphere.cfg` with your own settings. You'll have to generate a new SSL keypair from Groupy for the Troposphere application. The configuration variable `OAUTH_PRIVATE_KEY` should refer to the absolute path of ...
Add groupy instructions to readme
Add groupy instructions to readme
Markdown
apache-2.0
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
markdown
## Code Before: Troposphere =========== ```bash cp troposphere/troposphere.cfg.dist troposphere/troposphere.cfg ``` Edit `troposphere.cfg` with your own settings. ```bash pip install -r requirements.txt python troposphere/__init__.py ``` ## Instruction: Add groupy instructions to readme ## Code After: Troposphere ...
50b621fb3279b81a4c1411dc7508789629dd2c59
cmake/modules/GetRE2C.cmake
cmake/modules/GetRE2C.cmake
include(DownloadProject) macro(getRE2C) if (CMAKE_VERSION VERSION_LESS 3.2) set(UPDATE_DISCONNECTED_IF_AVAILABLE "") else() set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1") endif() download_project( PROJ re2c GIT_REPOSITORY http...
include(DownloadProject) macro(getRE2C) if (CMAKE_VERSION VERSION_LESS 3.2) set(UPDATE_DISCONNECTED_IF_AVAILABLE "") else() set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1") endif() download_project( PROJ re2c GIT_REPOSITORY http...
Revert "update re2c to 1.2" due to build error in some environment like Mac or openSUSE tumbleweed
Revert "update re2c to 1.2" due to build error in some environment like Mac or openSUSE tumbleweed This reverts commit f8e43c07682f2e8a13294d89aa1d28186dbd8620.
CMake
apache-2.0
sekiguchi-nagisa/ydsh,sekiguchi-nagisa/ydsh,sekiguchi-nagisa/ydsh
cmake
## Code Before: include(DownloadProject) macro(getRE2C) if (CMAKE_VERSION VERSION_LESS 3.2) set(UPDATE_DISCONNECTED_IF_AVAILABLE "") else() set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1") endif() download_project( PROJ re2c GIT_REPO...
542ac0d373116adb9ef36a6fa0c958f9a45140f4
apps/hard_hat/lib/hard_hat/users.ex
apps/hard_hat/lib/hard_hat/users.ex
defmodule HardHat.Users do @moduledoc """ A wrapper for the Users entity. <https://docs.travis-ci.com/api/#users> """ import HardHat alias HardHat.Client @doc """ Show the authenticated user. ## Examples HardHat.Users.whoami(client) """ @spec whoami(Client.t) :: HardHat.response def w...
defmodule HardHat.Users do @moduledoc """ A wrapper for the Users entity. <https://docs.travis-ci.com/api/#users> """ import HardHat, except: [get: 2] alias HardHat.Client @doc """ Show the authenticated user. ## Examples HardHat.Users.whoami(client) """ @spec whoami(Client.t) :: HardHa...
Use the verb "get" for consistency
Use the verb "get" for consistency Rather that use the inconsistent verbs that are in place in the upstream API documentation, I think it makes sense to standardize on using "get" for pure GET requests, which also is familiar to other usages of the term throughout Elixir as a language. The verbs "fetch" and "show" eit...
Elixir
isc
gullintanni/gullintanni,gullintanni/gullintanni
elixir
## Code Before: defmodule HardHat.Users do @moduledoc """ A wrapper for the Users entity. <https://docs.travis-ci.com/api/#users> """ import HardHat alias HardHat.Client @doc """ Show the authenticated user. ## Examples HardHat.Users.whoami(client) """ @spec whoami(Client.t) :: HardHat....
d6f92b85f62db9a6aa6e12f701467cb4eaf3d933
src/doc/components/DocCommentParser.php
src/doc/components/DocCommentParser.php
<?php /** * Created by PhpStorm. * User: alex * Date: 20/10/2016 * Time: 23:36 */ namespace vr\api\doc\components; use yii\base\BaseObject; /** * Class DocCommentParser * @package vr\api\doc\components * @property string $description */ class DocCommentParser extends BaseObject { /** * @var */...
<?php /** * Created by PhpStorm. * User: alex * Date: 20/10/2016 * Time: 23:36 */ namespace vr\api\doc\components; use yii\base\BaseObject; /** * Class DocCommentParser * @package vr\api\doc\components * @property string $description */ class DocCommentParser extends BaseObject { /** * @var */...
Change the parsing doc comments algorithm to show full method documentation but not just the first string
Change the parsing doc comments algorithm to show full method documentation but not just the first string
PHP
mit
voodoo-mobile/yii2-api,voodoo-mobile/yii2-api,voodoo-mobile/yii2-api,voodoo-rocks/yii2-api,voodoo-rocks/yii2-api
php
## Code Before: <?php /** * Created by PhpStorm. * User: alex * Date: 20/10/2016 * Time: 23:36 */ namespace vr\api\doc\components; use yii\base\BaseObject; /** * Class DocCommentParser * @package vr\api\doc\components * @property string $description */ class DocCommentParser extends BaseObject { /** ...
00ba5f6f0b3eb79180fea2f6559d41c9b95e509d
ui/templates/organizationView.html
ui/templates/organizationView.html
{{define "main"}} <div class="col-md-9"> <div class="row"> <div class="col-md-2"> <a class="btn btn-block btn-primary" href="/organizations/{{.Organization.ID.Hex}}/projects/new">New project</a> </div> </div> <br> <div class="panel panel-default"> <div class="panel-heading"> <div class="panel-...
{{define "main"}} <div class="col-md-9"> {{if eq .Organization.OwnerID .Context.Account.ID}} <div class="row"> <div class="col-md-2"> <a class="btn btn-block btn-primary" href="/organizations/{{.Organization.ID.Hex}}/projects/new">New project</a> </div> </div> {{end}} <br> <div class="panel ...
Hide new document button from invited organizations
Hide new document button from invited organizations
HTML
bsd-3-clause
FurqanSoftware/papyrus,FurqanSoftware/papyrus,FurqanSoftware/papyrus
html
## Code Before: {{define "main"}} <div class="col-md-9"> <div class="row"> <div class="col-md-2"> <a class="btn btn-block btn-primary" href="/organizations/{{.Organization.ID.Hex}}/projects/new">New project</a> </div> </div> <br> <div class="panel panel-default"> <div class="panel-heading"> <d...
9cd6a20525e417e166fd82437fbf5a04216f5559
contrib/src/ebml/rules.mak
contrib/src/ebml/rules.mak
EBML_VERSION := 1.2.2 EBML_URL := http://dl.matroska.org/downloads/libebml/libebml-$(EBML_VERSION).tar.bz2 #EBML_URL := $(CONTRIB_VIDEOLAN)/libebml-$(EBML_VERSION).tar.bz2 $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2: $(call download,$(EBML_URL)) .sum-ebml: libebml-$(EBML_VERSION).tar.bz2 libebml: libebml-$(EBML_VE...
EBML_VERSION := 1.2.2 EBML_URL := http://dl.matroska.org/downloads/libebml/libebml-$(EBML_VERSION).tar.bz2 #EBML_URL := $(CONTRIB_VIDEOLAN)/libebml-$(EBML_VERSION).tar.bz2 $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2: $(call download,$(EBML_URL)) .sum-ebml: libebml-$(EBML_VERSION).tar.bz2 libebml: libebml-$(EBML_VE...
Allow libebml build on Android x86
contrib: Allow libebml build on Android x86 This package needs exceptions. Signed-off-by: Rafaël Carré <29a40ef51885229607cd1e19e467be5d13190cad@videolan.org>
Makefile
lgpl-2.1
vlc-mirror/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,krichter722/vlc,xkfz007/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,krichter722/vlc,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc,xkfz007/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc...
makefile
## Code Before: EBML_VERSION := 1.2.2 EBML_URL := http://dl.matroska.org/downloads/libebml/libebml-$(EBML_VERSION).tar.bz2 #EBML_URL := $(CONTRIB_VIDEOLAN)/libebml-$(EBML_VERSION).tar.bz2 $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2: $(call download,$(EBML_URL)) .sum-ebml: libebml-$(EBML_VERSION).tar.bz2 libebml: l...
80b1eb778022213f09785ccc6fe8136117f7efdf
src/om_forms/core.clj
src/om_forms/core.clj
(ns om-forms.core) (defmacro with-options [options & body] `(binding [om-forms.core/*options* (cljs.core/merge om-forms.core/*options* ~options)] ~@body))
(ns om-forms.core) (defmacro with-options [options & body] `(binding [om-forms.core/*options* (cljs.core/merge-with (cljs.core/fn [old# new#] (cljs.core/cond (cljs.core/map? old#) (cljs.core/merge old# new#) :else new#)) ...
Add support for nested options to `with-options`.
Add support for nested options to `with-options`.
Clojure
epl-1.0
bilus/reforms
clojure
## Code Before: (ns om-forms.core) (defmacro with-options [options & body] `(binding [om-forms.core/*options* (cljs.core/merge om-forms.core/*options* ~options)] ~@body)) ## Instruction: Add support for nested options to `with-options`. ## Code After: (ns om-forms.core) (defmacro with-options [options & bo...
624a69251febdb164d57082fdbec2a9d96b8aa9c
docs/api/index.rst
docs/api/index.rst
.. _api-ref: ************* API reference ************* .. note:: What is public? Only APIs documented here are public and open for use by Mopidy extensions. .. toctree:: :glob: concepts models backends core audio mixer frontends commands ext config zeroconf ...
.. _api-ref: ************* API reference ************* .. note:: What is public? Only APIs documented here are public and open for use by Mopidy extensions. .. toctree:: :glob: concepts models core backends audio mixer frontends commands ext config zeroconf ...
Move Backend API docs to after Core API
docs: Move Backend API docs to after Core API
reStructuredText
apache-2.0
SuperStarPL/mopidy,mopidy/mopidy,kingosticks/mopidy,bacontext/mopidy,adamcik/mopidy,jmarsik/mopidy,kingosticks/mopidy,pacificIT/mopidy,dbrgn/mopidy,jcass77/mopidy,bacontext/mopidy,pacificIT/mopidy,glogiotatidis/mopidy,mokieyue/mopidy,jmarsik/mopidy,rawdlite/mopidy,swak/mopidy,dbrgn/mopidy,SuperStarPL/mopidy,mopidy/mopi...
restructuredtext
## Code Before: .. _api-ref: ************* API reference ************* .. note:: What is public? Only APIs documented here are public and open for use by Mopidy extensions. .. toctree:: :glob: concepts models backends core audio mixer frontends commands ext conf...
218d79072f4c4d569790f819e84bea9f26f2340d
spec/lib/hours_spec.rb
spec/lib/hours_spec.rb
describe Hours do context "helpful_enabled" do it "returns false when there's no account or url" do allow(Hours).to receive(:helpful_account).and_return false allow(Hours).to receive(:helpful_url).and_return false expect(Hours.helpful_enabled?).to eq(false) end it "raises an error when ...
describe Hours do context "helpful_enabled" do it "returns false when there's no account or url" do allow(Hours).to receive(:helpful_account).and_return false allow(Hours).to receive(:helpful_url).and_return false expect(Hours.helpful_enabled?).to eq(false) end it "raises an error when ...
Fix using bare raise_error matcher
Fix using bare raise_error matcher This is due to receiving a deprecation warning: ```sh WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match -- snip -- ```
Ruby
mit
DefactoSoftware/Hours,michalsz/Hours,DefactoSoftware/Hours,DefactoSoftware/Hours,michalsz/Hours,DefactoSoftware/Hours,michalsz/Hours,michalsz/Hours
ruby
## Code Before: describe Hours do context "helpful_enabled" do it "returns false when there's no account or url" do allow(Hours).to receive(:helpful_account).and_return false allow(Hours).to receive(:helpful_url).and_return false expect(Hours.helpful_enabled?).to eq(false) end it "raise...
ad70a7ec6543d64ec185eb2d52ccfa291a1dfad6
servicerating/views.py
servicerating/views.py
import csv from django.http import HttpResponse from servicerating.models import Response def report_responses(request): qs = Response.objects.raw("SELECT servicerating_response.*, servicerating_extra.value AS clinic_code from servicerating_response INNER JOIN servicerating_extra ON servicerating_response.contact...
import csv from django.http import HttpResponse from servicerating.models import Response def report_responses(request): qs = Response.objects.raw("SELECT servicerating_response.*, servicerating_extra.value AS clinic_code from servicerating_response INNER JOIN servicerating_extra ON servicerating_response.contact...
Remove FK's from CSV export for massive speed boost
Remove FK's from CSV export for massive speed boost
Python
bsd-3-clause
praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control
python
## Code Before: import csv from django.http import HttpResponse from servicerating.models import Response def report_responses(request): qs = Response.objects.raw("SELECT servicerating_response.*, servicerating_extra.value AS clinic_code from servicerating_response INNER JOIN servicerating_extra ON servicerating_...
32cb7b862399ec9a7e297316cf3e7a781229b086
src/Model/UrlInterface.php
src/Model/UrlInterface.php
<?php declare(strict_types=1); namespace SitemapPlugin\Model; use DateTimeInterface; use Doctrine\Common\Collections\Collection; interface UrlInterface { public function getLocation(): string; public function setLocation(string $location): void; public function getLastModification(): ?DateTimeInterfac...
<?php declare(strict_types=1); namespace SitemapPlugin\Model; use DateTimeInterface; use Doctrine\Common\Collections\Collection; interface UrlInterface { public function getLocation(): string; public function setLocation(string $location): void; public function getLastModification(): ?DateTimeInterfac...
Fix variable name in interface
Fix variable name in interface
PHP
mit
stefandoorn/sitemap-plugin,stefandoorn/sitemap-plugin,stefandoorn/sitemap-plugin
php
## Code Before: <?php declare(strict_types=1); namespace SitemapPlugin\Model; use DateTimeInterface; use Doctrine\Common\Collections\Collection; interface UrlInterface { public function getLocation(): string; public function setLocation(string $location): void; public function getLastModification(): ?...
a3924e6f13a1edd37fedc78791f3f9f506fcfaaa
views/faq.jade
views/faq.jade
extends layout block content #content h1= title .spacer .left h3 ROSEDu Challenge Cookbook p Glad you joined our challenge! To get started you should join the ROSEdu Challenge, go to Home page and click "Start". p As you can see you have many projects from which you can choose ...
extends layout block content #content h1= title .spacer .left h3 ROSEDu Challenge Cookbook p Glad you joined our challenge! To get started you should join the ROSEdu Challenge, go to Home page and click "Start". p As you can see you have many projects from which you can choose ...
Add help sections in FAQ
Add help sections in FAQ
Jade
mit
catalin-oancea/challenge,catalin-oancea/challenge,rosedu/challenge,rosedu/challenge
jade
## Code Before: extends layout block content #content h1= title .spacer .left h3 ROSEDu Challenge Cookbook p Glad you joined our challenge! To get started you should join the ROSEdu Challenge, go to Home page and click "Start". p As you can see you have many projects from which...
a9ff19c2ab5432bf3be53fe2ea70e1a729778244
gem/templates/springster/patterns/basics/languages/sp_variations/language-list-center_fixed.html
gem/templates/springster/patterns/basics/languages/sp_variations/language-list-center_fixed.html
{% load i18n %} {% if languages|length > 1 %} <div class="languages languages--fixed-header"> <ul class="language-list language-list--standard-center"> {% for language in languages %} <li class="language-list__item language-list__item--standard-center"> <a href="{% url 'locale_set' language.locale %}?next...
{% load i18n %} {% if languages|length > 1 %} <div class="languages languages--fixed-header"> <ul class="language-list language-list--standard-center"> {% for language in languages %} <li class="language-list__item language-list__item--standard-center"> <a href="{% url 'locale_set' language.locale %}?next...
Fix locale links for springster templates
Fix locale links for springster templates
HTML
bsd-2-clause
praekelt/molo-gem,praekelt/molo-gem,praekelt/molo-gem
html
## Code Before: {% load i18n %} {% if languages|length > 1 %} <div class="languages languages--fixed-header"> <ul class="language-list language-list--standard-center"> {% for language in languages %} <li class="language-list__item language-list__item--standard-center"> <a href="{% url 'locale_set' languag...
4a876f1d3d7916f903b66eaa94b34b09b3c9e681
src/main/scala/cpup/mc/lib/util/GUIUtil.scala
src/main/scala/cpup/mc/lib/util/GUIUtil.scala
package cpup.mc.lib.util import net.minecraft.util.{IIcon, ResourceLocation} import cpw.mods.fml.relauncher.{Side, SideOnly} import org.lwjgl.opengl.GL11 import net.minecraft.client.Minecraft import net.minecraft.client.renderer.Tessellator @SideOnly(Side.CLIENT) object GUIUtil { val itemsIcon = new ResourceLocation...
package cpup.mc.lib.util import net.minecraft.util.{IIcon, ResourceLocation} import cpw.mods.fml.relauncher.{Side, SideOnly} import org.lwjgl.opengl.GL11 import net.minecraft.client.Minecraft import net.minecraft.client.renderer.Tessellator @SideOnly(Side.CLIENT) object GUIUtil { val itemsIcon = new ResourceLocation...
Use doubles instead of ints
Use doubles instead of ints
Scala
mit
CoderPuppy/cpup-mc
scala
## Code Before: package cpup.mc.lib.util import net.minecraft.util.{IIcon, ResourceLocation} import cpw.mods.fml.relauncher.{Side, SideOnly} import org.lwjgl.opengl.GL11 import net.minecraft.client.Minecraft import net.minecraft.client.renderer.Tessellator @SideOnly(Side.CLIENT) object GUIUtil { val itemsIcon = new ...
b53ec4cd4dcdfedcd07fd4040da70a83e74602c8
ssh/README.md
ssh/README.md
SSH === SSH comes with a big privacy hole by default. To fix that * Edit `~/.ssh/config` * Include the following ``` Host github.com PubkeyAuthentication yes IdentityFile ~/.ssh/id_rsa # Or whatever you named your key Host * UseRoaming no PubkeyAuthentication no IdentitiesOnl...
SSH === SSH comes with a big privacy hole by default. To fix that * Edit `~/.ssh/config` * Include the following ``` Host github.com PubkeyAuthentication yes IdentityFile ~/.ssh/id_rsa # Or whatever you named your key Host * UseRoaming no PubkeyAuthentication no IdentitiesOnl...
Add missing link for ssh guide
Add missing link for ssh guide
Markdown
mit
ndarville/style,ndarville/style
markdown
## Code Before: SSH === SSH comes with a big privacy hole by default. To fix that * Edit `~/.ssh/config` * Include the following ``` Host github.com PubkeyAuthentication yes IdentityFile ~/.ssh/id_rsa # Or whatever you named your key Host * UseRoaming no PubkeyAuthentication no ...
b05c2c05d46f0283f68cc6a3278538b185f15abc
app/views/pages/scaled.html.haml
app/views/pages/scaled.html.haml
= form_for root_path, html: { id: 'new_scaled_scenario' } do |f| .row .field = render "pages/root_page/country_select" .field = render "pages/root_page/year_select" .row .field %p Scaling attribute %select(name="scaling_attribute") %option(value="number_of_residences") N...
= form_tag root_path, id: 'new_scaled_scenario' do .row .field = render "pages/root_page/country_select" .field = render "pages/root_page/year_select" .row .field %p Scaling attribute %select(name="scaling_attribute") %option(value="number_of_residences") Number of resid...
Fix submission of scaled scenario form
Fix submission of scaled scenario form
Haml
mit
quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel
haml
## Code Before: = form_for root_path, html: { id: 'new_scaled_scenario' } do |f| .row .field = render "pages/root_page/country_select" .field = render "pages/root_page/year_select" .row .field %p Scaling attribute %select(name="scaling_attribute") %option(value="number_o...
9fa045649e847cf5994baa0e8a0d67fb0f313e3b
config/routes.php
config/routes.php
<?php /** * Which method in which MVC set will be executed * for each defined action in this array. */ $actions = array( 'index' => \Ragnaroq\App\Runner::mvcAction('home', 'index'), 'welcome' => \Ragnaroq\App\Runner::mvcAction('example', 'greet'), ); /** * Which of the previously defined actions will * be...
<?php /** * Which method in which MVC set will be executed * for each defined action in this array. */ $actions = array( 'index' => \Ragnaroq\App\Runner::mvcAction('home', 'index'), 'welcome' => \Ragnaroq\App\Runner::mvcAction('example', 'greet'), 'authorize' => \Ragnaroq\App\Runner::mvcAction('oauth2', ...
Add route for OAuth2 callback
Add route for OAuth2 callback
PHP
mit
spasquier/sv-egg-giver,spasquier/sv-egg-giver
php
## Code Before: <?php /** * Which method in which MVC set will be executed * for each defined action in this array. */ $actions = array( 'index' => \Ragnaroq\App\Runner::mvcAction('home', 'index'), 'welcome' => \Ragnaroq\App\Runner::mvcAction('example', 'greet'), ); /** * Which of the previously defined ac...
3bed7e08bab74f7e0b0b4c07abeb48709c78c218
README.md
README.md
A website that tries to help the Computer Science and Media students from our university with the hassle of remembering all the different links for their courses by eliminating that necessity. ## To Do / Problems - Lack of order. The current implementation knows no order of the list items, so after reverting a filte...
A website that tries to help the Computer Science and Media students from our university with the hassle of remembering all the different links for their courses by eliminating that necessity. ## To Do / Problems - Lack of order. The current implementation knows no order of the list items, so after reverting a filte...
Add some to do entries
Add some to do entries
Markdown
mit
kleinfreund/vlau.me,kleinfreund/vlau.me,kleinfreund/hyperlink.cool,kleinfreund/hyperlink.cool
markdown
## Code Before: A website that tries to help the Computer Science and Media students from our university with the hassle of remembering all the different links for their courses by eliminating that necessity. ## To Do / Problems - Lack of order. The current implementation knows no order of the list items, so after r...
d011be956948f5a3a6f50ded1d8b6e93b8a80e8b
README.md
README.md
[![Code Climate](https://codeclimate.com/github/innosoft-pro/label-them/badges/gpa.svg)](https://codeclimate.com/github/innosoft-pro/label-them) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/735a6f0a94844ce686d680a0d4474789)](https://www.codacy.com/app/LabelThem/label-them?utm_source=github.com&amp;utm_m...
[![Code Climate](https://codeclimate.com/github/innosoft-pro/label-them/badges/gpa.svg)](https://codeclimate.com/github/innosoft-pro/label-them) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/735a6f0a94844ce686d680a0d4474789)](https://www.codacy.com/app/LabelThem/label-them?utm_source=github.com&amp;utm_m...
Write instruction for the building generation (Grunt).
[MF] Write instruction for the building generation (Grunt).
Markdown
mit
AlNedorezov/label-them,innosoft-pro/label-them,innosoft-pro/label-them,AlNedorezov/label-them,innosoft-pro/label-them,innosoft-pro/label-them,AlNedorezov/label-them
markdown
## Code Before: [![Code Climate](https://codeclimate.com/github/innosoft-pro/label-them/badges/gpa.svg)](https://codeclimate.com/github/innosoft-pro/label-them) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/735a6f0a94844ce686d680a0d4474789)](https://www.codacy.com/app/LabelThem/label-them?utm_source=gith...
3f84446082351a015cb36311dfb55ca0486ea62a
lib/stacks/proxy_server.rb
lib/stacks/proxy_server.rb
require 'stacks/namespace' class Stacks::ProxyServer < Stacks::MachineDef attr_reader :virtual_service def initialize(virtual_service, index) super(virtual_service.name + "-" + index) @virtual_service = virtual_service end def bind_to(environment) super(environment) end def to_enc servic...
require 'stacks/namespace' class Stacks::ProxyServer < Stacks::MachineDef attr_reader :virtual_service, :disable_enc def initialize(virtual_service, index) super(virtual_service.name + "-" + index) @virtual_service = virtual_service @disable_enc = false end def bind_to(environment) super(envi...
Add temporary hack to disable enc data output for proxy servers. This is going to be coming from puppet for the shared proxy.
rpearce: Add temporary hack to disable enc data output for proxy servers. This is going to be coming from puppet for the shared proxy.
Ruby
mit
tim-group/stackbuilder,tim-group/stackbuilder
ruby
## Code Before: require 'stacks/namespace' class Stacks::ProxyServer < Stacks::MachineDef attr_reader :virtual_service def initialize(virtual_service, index) super(virtual_service.name + "-" + index) @virtual_service = virtual_service end def bind_to(environment) super(environment) end def t...
1a4f8de838f9ba4fc1b5d01e4f8c4ba0557ff87b
src/popup/components/BlacklistConfirm.css
src/popup/components/BlacklistConfirm.css
.container { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px; height: 200px; } .header { font-size: 1.5em; text-align: center; } .content { font-size: 1.1em; text-align: center; } .btnBar { display: flex; flex-d...
.container { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px; height: 200px; } .header { font-size: 1.5em; text-align: center; } .content { font-size: 1.1em; text-align: center; } .btnBar { display: flex; flex-d...
Put a little border around blacklist confirm buttons
Put a little border around blacklist confirm buttons
CSS
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
css
## Code Before: .container { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px; height: 200px; } .header { font-size: 1.5em; text-align: center; } .content { font-size: 1.1em; text-align: center; } .btnBar { display: ...
8be5f534f42691942e74ed98f5eaa327df684fe6
js/main.js
js/main.js
function openCourse(Course) { var i, x; x = document.getElementsByClassName("schedule"); for(i=0;i<x.length;i++){ x[i].style.display = 'none'; } document.getElementById(Course).style.display = "block"; }
function openCourse(Course) { var i, x, y; x = document.getElementsByClassName("schedule"); y = document.getElementById(Course); for(i=0;i<x.length;i++){ x[i].style.display = 'none'; } y.style.display = "block"; y.className = y.className + ' ' + Course.toLowerCase(); }
Add change of tab color on click to schedule
Add change of tab color on click to schedule
JavaScript
cc0-1.0
FatecSorocaba/semana-da-tecnologia,FatecSorocaba/semana-da-tecnologia
javascript
## Code Before: function openCourse(Course) { var i, x; x = document.getElementsByClassName("schedule"); for(i=0;i<x.length;i++){ x[i].style.display = 'none'; } document.getElementById(Course).style.display = "block"; } ## Instruction: Add change of tab color on click to schedule ## Code A...
743755b24cb40999c00b6aae84fa605850d7ccde
app/views/advocates/claims/index.html.haml
app/views/advocates/claims/index.html.haml
- if current_user.persona.admin? = render 'nav_tabs' %header.page-title %h1 = t('.claims') = link_to t('link.add_claim'), new_advocates_claim_path, class: 'button' #summary = render partial: 'financial_summary', locals: { financial_summary: @financial_summary } #search-options = render partial: 'search...
%header.page-title %h1 = t('.claims') = link_to t('link.add_claim'), new_advocates_claim_path, class: 'button' #summary = render partial: 'financial_summary', locals: { financial_summary: @financial_summary } #search-options = render partial: 'search_form' #search-summary - if params[:search].present? ...
Remove tabs from the advocate admin users home page
Remove tabs from the advocate admin users home page
Haml
mit
ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments
haml
## Code Before: - if current_user.persona.admin? = render 'nav_tabs' %header.page-title %h1 = t('.claims') = link_to t('link.add_claim'), new_advocates_claim_path, class: 'button' #summary = render partial: 'financial_summary', locals: { financial_summary: @financial_summary } #search-options = render ...
33f17b7a829f596f6f4cf8a4aa56964dc729aa30
Cargo.toml
Cargo.toml
[package] name = "mio-serial" version = "3.1.0" authors = ["Zac Berkowitz <zac.berkowitz@gmail.com>"] description = "A serial port implementation for mio" license = "MIT" homepage = "https://github.com/berkowski/mio-serial" repository = "https://github.com/berkowski/mio-serial" documentation = "http://docs.rs/mio-seria...
[package] name = "mio-serial" version = "3.1.0" authors = ["Zac Berkowitz <zac.berkowitz@gmail.com>"] description = "A serial port implementation for mio" license = "MIT" homepage = "https://github.com/berkowski/mio-serial" repository = "https://github.com/berkowski/mio-serial" documentation = "http://docs.rs/mio-seria...
Fix feature flag to not mandatory require libudev
Fix feature flag to not mandatory require libudev Before, the serialport/default feature wasn't turned off even if the default feature of the mio-serial was off. We need to deselect the serialport/default explicitly, and turn it on by the default of the mio-serial.
TOML
mit
berkowski/mio-serial
toml
## Code Before: [package] name = "mio-serial" version = "3.1.0" authors = ["Zac Berkowitz <zac.berkowitz@gmail.com>"] description = "A serial port implementation for mio" license = "MIT" homepage = "https://github.com/berkowski/mio-serial" repository = "https://github.com/berkowski/mio-serial" documentation = "http://d...
f3419f9fb93c181ce7f1cc56de19cc50d32b94ae
kolibri/plugins/style_guide/assets/src/views/shell/table-of-contents.vue
kolibri/plugins/style_guide/assets/src/views/shell/table-of-contents.vue
<template> <ul> <li v-for="anchor in anchors"> <a :href="route" @click="goToAnchor(anchor.hash)"> {{ anchor.label }} </a> </li> </ul> </template> <script> /** * A component for auto-generating a table of contents for a page. All * elements with an [id] attribute defined will...
<template> <ul> <li v-for="anchor in anchors"> <a :href="route" @click="goToAnchor(anchor.hash)"> {{ anchor.label }} </a> </li> </ul> </template> <script> /** * A component for auto-generating a table of contents for a page. All * elements with an [id] attribute defined will...
Add comments for the 'route' data
Add comments for the 'route' data
Vue
mit
benjaoming/kolibri,learningequality/kolibri,jonboiser/kolibri,DXCanas/kolibri,christianmemije/kolibri,indirectlylit/kolibri,DXCanas/kolibri,lyw07/kolibri,mrpau/kolibri,benjaoming/kolibri,lyw07/kolibri,mrpau/kolibri,indirectlylit/kolibri,benjaoming/kolibri,learningequality/kolibri,learningequality/kolibri,lyw07/kolibri,...
vue
## Code Before: <template> <ul> <li v-for="anchor in anchors"> <a :href="route" @click="goToAnchor(anchor.hash)"> {{ anchor.label }} </a> </li> </ul> </template> <script> /** * A component for auto-generating a table of contents for a page. All * elements with an [id] attrib...
7d60b0e20d4e93336cadb941e121fa2716194445
.travis.yml
.travis.yml
language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travis_ci_test;' -U p...
language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travis_ci_test;' -U p...
Load and prepare DB before test
Load and prepare DB before test The bin/rake db:migrate task runs the migrations and then dumps the structure of the database to a file called db/schema.rb. This structure allows you to restore your database using the bin/rake db:schema:load task if you wish, which is better than running all the migrations on a large ...
YAML
mit
itsmrwave/annotator_store-gem,itsmrwave/annotator_store-gem
yaml
## Code Before: language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travi...
0dccd00330602537099595dc2cb419f71a113025
scouts.html
scouts.html
--- bg: "moon_stick.jpg" layout: page permalink: /scouts/ tab_text: "Krewe Du Moon Sailor Scouts" title: "Sailor Scouts" summary: "Krewe Du Moon Sailor Scouts" active: scouts --- {% for post in site.posts limit: 5 %} {% if post.categories contains "scout" %} <article class="index-page"> <h2><a href="{{ post...
--- bg: "girl_gang.jpg" layout: page permalink: /scouts/ tab_text: "Krewe Du Moon Sailor Scouts" title: "Sailor Scouts" summary: "Krewe Du Moon Sailor Scouts" active: scouts --- {% for post in site.posts limit: 5 %} {% if post.categories contains "scout" %} <article class="index-page"> <h2><a href="{{ post....
Update Phpto Scout Bio Page
Update Phpto Scout Bio Page
HTML
mit
SpaceOtterInSpace/krewedumoon,krewedumoon/krewedumoon,SpaceOtterInSpace/krewedumoon,krewedumoon/krewedumoon
html
## Code Before: --- bg: "moon_stick.jpg" layout: page permalink: /scouts/ tab_text: "Krewe Du Moon Sailor Scouts" title: "Sailor Scouts" summary: "Krewe Du Moon Sailor Scouts" active: scouts --- {% for post in site.posts limit: 5 %} {% if post.categories contains "scout" %} <article class="index-page"> <h2>...
c9735ce9ea330737cf47474ef420303c56a32873
apps/demos/admin.py
apps/demos/admin.py
from django.contrib import admin from .models import Submission class SubmissionAdmin(admin.ModelAdmin): list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', ) admin.site.register(Submission, SubmissionAdmin)
from django.contrib import admin from .models import Submission class SubmissionAdmin(admin.ModelAdmin): list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', ) list_editable = ( 'featured', 'hidden' ) admin.site.register(Submission, SubmissionAdmin)
Make featured and hidden flags editable from demo listing
Make featured and hidden flags editable from demo listing
Python
mpl-2.0
bluemini/kuma,openjck/kuma,hoosteeno/kuma,Elchi3/kuma,davehunt/kuma,anaran/kuma,robhudson/kuma,davidyezsetz/kuma,darkwing/kuma,anaran/kuma,chirilo/kuma,jezdez/kuma,yfdyh000/kuma,nhenezi/kuma,Elchi3/kuma,ronakkhunt/kuma,a2sheppy/kuma,groovecoder/kuma,SphinxKnight/kuma,escattone/kuma,jezdez/kuma,tximikel/kuma,a2sheppy/ku...
python
## Code Before: from django.contrib import admin from .models import Submission class SubmissionAdmin(admin.ModelAdmin): list_display = ( 'title', 'creator', 'featured', 'hidden', 'tags', 'modified', ) admin.site.register(Submission, SubmissionAdmin) ## Instruction: Make featured and hidden flags editable fro...
e573900f38071317a6d076b331b3d9a500864de8
src/widgets/widget.xml.tpl
src/widgets/widget.xml.tpl
<?xml version="1.0" encoding="UTF-8" ?> <!-- generated on <%= grunt.template.today() %> --> <Module> <ModulePrefs title="<%= meta.title %>" description="<%= meta.description %>" author="<%= grunt.config('pkg.author.name') %>" author_email="<%= grunt.config('pkg.author.email') %>" width="<%= meta.w...
<?xml version="1.0" encoding="UTF-8" ?> <!-- generated on <%= grunt.template.today() %> --> <Module> <ModulePrefs title="<%= meta.title %>" description="<%= meta.description %>" author="<%= grunt.config('pkg.author.name') %>" author_email="<%= grunt.config('pkg.author.email') %>" width="<%= meta.w...
Revert "Removed the pop ups hack for authorization"
Revert "Removed the pop ups hack for authorization" This reverts commit 3a431fd11fa4e7614455cc6d34c5a075a7000831.
Smarty
bsd-3-clause
Mortymus/syncmeta,Mortymus/syncmeta,Mari0/syncmeta,Mari0/syncmeta
smarty
## Code Before: <?xml version="1.0" encoding="UTF-8" ?> <!-- generated on <%= grunt.template.today() %> --> <Module> <ModulePrefs title="<%= meta.title %>" description="<%= meta.description %>" author="<%= grunt.config('pkg.author.name') %>" author_email="<%= grunt.config('pkg.author.email') %>" w...
8a6ef1a837929cd1b64550c0a4e8eb8b5cf3f688
source/jquery.singlemask.js
source/jquery.singlemask.js
/* Character mask for jQuery. https://github.com/sobrinho/jquery.singlemask Copyright (c) 2011-2013 Gabriel Sobrinho (http://gabrielsobrinho.com/). Released under the MIT license */ (function ($) { function getPasteEvent() { var el = document.createElement('input'), name = 'onpaste'; el.setAttri...
/* Character mask for jQuery. https://github.com/sobrinho/jquery.singlemask Copyright (c) 2011-2013 Gabriel Sobrinho (http://gabrielsobrinho.com/). Released under the MIT license */ (function ($) { function getPasteEvent() { var el = document.createElement('input'), name = 'onpaste'; el.setAttri...
Fix problem when using the numpad
Fix problem when using the numpad The numpad numbers' code are different from the standard numbers. The code number starts in 96 (number 0) and ends in 105 (number 9). The problem is in the String.fromCharCode function because it doesn't recognize the numpad code numbers. To fix that this commit was made to calculat...
JavaScript
mit
sobrinho/jquery.singlemask
javascript
## Code Before: /* Character mask for jQuery. https://github.com/sobrinho/jquery.singlemask Copyright (c) 2011-2013 Gabriel Sobrinho (http://gabrielsobrinho.com/). Released under the MIT license */ (function ($) { function getPasteEvent() { var el = document.createElement('input'), name = 'onpaste';...
70475e60e0948271d7171cd5c61353f384fcaa91
less/availity-modal.less
less/availity-modal.less
.modal-header { padding: @modal-title-padding @availity-modal-padding; background-color: @availity-modal-header-bg-color; .border-top-radius(@availity-modal-input-border-radius); } .modal-footer { border-top: 0; background-color: @availity-modal-footer-bg-color; .border-bottom-radius(@availity-modal-input-...
.modal-header { padding: @modal-title-padding @availity-modal-padding; background-color: @availity-modal-header-bg-color; .border-top-radius(@availity-modal-input-border-radius); } .modal-footer { border-top: 0; padding: @modal-title-padding @availity-modal-padding; background-color: @availity-modal-footer...
Apply same padding to modal-footer and modal-header
Apply same padding to modal-footer and modal-header
Less
mit
Availity/availity-uikit,Availity/availity-uikit
less
## Code Before: .modal-header { padding: @modal-title-padding @availity-modal-padding; background-color: @availity-modal-header-bg-color; .border-top-radius(@availity-modal-input-border-radius); } .modal-footer { border-top: 0; background-color: @availity-modal-footer-bg-color; .border-bottom-radius(@avail...
204c0e57f6ac885793f6ef0d392f5884f04c66d2
.travis.yml
.travis.yml
language: perl6 perl6: - latest install: - rakudobrew build-panda - panda --notests installdeps . script: - prove -e 'perl6 -Ilib' -rv t/ sudo: false
language: perl6 perl6: - latest install: - rakudobrew build-zef - zef install --/test --depsonly . script: - zef test . sudo: false
Use zef instead of panda
Use zef instead of panda
YAML
artistic-2.0
moznion/p6-IO-Blob
yaml
## Code Before: language: perl6 perl6: - latest install: - rakudobrew build-panda - panda --notests installdeps . script: - prove -e 'perl6 -Ilib' -rv t/ sudo: false ## Instruction: Use zef instead of panda ## Code After: language: perl6 perl6: - latest install: - rakudobrew build-zef - zef install --/...
dc03172d76fd9cc690da3f3ff1ebd5abe43b4d2e
recreate_database.sh
recreate_database.sh
mysqladmin -u root -p drop recipieces_development mysqladmin -u root -p create recipieces_development rake db:migrate rake db:seed
rake db:reset rake db:seed
Use db:reset instead of calling mysql directly.
Use db:reset instead of calling mysql directly.
Shell
mit
quattro004/scratches,quattro004/scratches,quattro004/scratches
shell
## Code Before: mysqladmin -u root -p drop recipieces_development mysqladmin -u root -p create recipieces_development rake db:migrate rake db:seed ## Instruction: Use db:reset instead of calling mysql directly. ## Code After: rake db:reset rake db:seed
c2f1178e4174b170185815c43e01f68ec54dc539
lib/views/page_presentation.html
lib/views/page_presentation.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> ...
Load runtime.js in the presentation page
Load runtime.js in the presentation page
HTML
mit
crowi/crowi,crowi/crowi,crowi/crowi
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, use...
c176213c87b1e63da4e79f10b95c5b34a5ec3fce
OpenIPSL/NonElectrical/Logical/LV_GATE.mo
OpenIPSL/NonElectrical/Logical/LV_GATE.mo
within OpenIPSL.NonElectrical.Logical; block LV_GATE "Passes through the lower value of the two inputs" extends Modelica.Blocks.Math.Min; equation connect(y, y) annotation (Line(points={{110,0},{110,0}}, color={0,0,127})); annotation (Icon(graphics={Polygon( points={{-100,100},{40,100},{100,0},{40,-100}...
within OpenIPSL.NonElectrical.Logical; block LV_GATE "Passes through the lower value of the two inputs" extends Modelica.Blocks.Math.Min; annotation (Icon(graphics={Polygon( points={{-100,100},{40,100},{100,0},{40,-100},{-100,-100},{-100,100}}, lineColor={28,108,200}, fillColor={255,25...
Remove dummy erroneous self connection.
Remove dummy erroneous self connection.
Modelica
bsd-3-clause
SmarTS-Lab/OpenIPSL,SmarTS-Lab/OpenIPSL,OpenIPSL/OpenIPSL
modelica
## Code Before: within OpenIPSL.NonElectrical.Logical; block LV_GATE "Passes through the lower value of the two inputs" extends Modelica.Blocks.Math.Min; equation connect(y, y) annotation (Line(points={{110,0},{110,0}}, color={0,0,127})); annotation (Icon(graphics={Polygon( points={{-100,100},{40,100},{...
ebee68811693969ca779004ffb6328a445e02ff4
src/React3/lib/descriptors/Material/PointsMaterialDescriptor.js
src/React3/lib/descriptors/Material/PointsMaterialDescriptor.js
import THREE from 'three'; import MaterialDescriptorBase from './MaterialDescriptorBase'; class PointsMaterialDescriptor extends MaterialDescriptorBase { constructor(react3RendererInstance) { super(react3RendererInstance); this.hasColor(); } construct(props) { const materialDescription = {}; i...
import THREE from 'three'; import MaterialDescriptorBase from './MaterialDescriptorBase'; class PointsMaterialDescriptor extends MaterialDescriptorBase { constructor(react3RendererInstance) { super(react3RendererInstance); this.hasColor(); } construct(props) { const materialDescription = this.getMa...
Use base getMaterialDescription for PointsMaterial
Use base getMaterialDescription for PointsMaterial
JavaScript
mit
toxicFork/react-three-renderer
javascript
## Code Before: import THREE from 'three'; import MaterialDescriptorBase from './MaterialDescriptorBase'; class PointsMaterialDescriptor extends MaterialDescriptorBase { constructor(react3RendererInstance) { super(react3RendererInstance); this.hasColor(); } construct(props) { const materialDescript...