commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
73c1d735a2582c2c46ad19fcf9d543f6497b0108
config/initializers/mime_types.rb
config/initializers/mime_types.rb
Mime::Type.register_alias "text/html", :full Mime::Type.register_alias "text/html", :mobile Mime::Type.register_alias "text/javascript", :jsmobile
Mime::Type.register "font/truetype", :ttf Mime::Type.register "font/opentype", :otf Mime::Type.register "application/vnd.ms-fontobject", :eot Mime::Type.register "application/x-font-woff", :woff Mime::Type.register_alias "text/html", :full Mime::Type.register_alias "text/html", :mobile Mime::Type.register_alias "text/...
Add mime types for fonts
Add mime types for fonts
Ruby
agpl-3.0
suec78/vish_storyrobin,ging/vish,suec78/vish_storyrobin,rogervaas/vish,ging/vish_orange,suec78/vish_storyrobin,ging/vish,agordillo/vish,agordillo/vish,ging/vish_orange,rogervaas/vish,ging/vish_orange,agordillo/vish,suec78/vish_storyrobin,ging/vish_orange,rogervaas/vish,ging/vish,nathanV38/vishTst,ging/vish,agordillo/vi...
ruby
## Code Before: Mime::Type.register_alias "text/html", :full Mime::Type.register_alias "text/html", :mobile Mime::Type.register_alias "text/javascript", :jsmobile ## Instruction: Add mime types for fonts ## Code After: Mime::Type.register "font/truetype", :ttf Mime::Type.register "font/opentype", :otf Mime::Type.regi...
+ Mime::Type.register "font/truetype", :ttf + Mime::Type.register "font/opentype", :otf + Mime::Type.register "application/vnd.ms-fontobject", :eot + Mime::Type.register "application/x-font-woff", :woff + Mime::Type.register_alias "text/html", :full Mime::Type.register_alias "text/html", :mobile Mime::Type.regis...
5
1.666667
5
0
95278a78ff02ade1c5cc2a3003dd20dd51a10289
translations/ru.json
translations/ru.json
{ "LOADING": "Загрузка …", "TODAY": "Сегодня", "TOMORROW": "Завтра", "DAYAFTERTOMORROW": "Послезавтра", "RUNNING": "Заканчивается через", "EMPTY": "Нет предстоящих событий", "N": "С", "NNE": "ССВ", "NE": "СВ", "ENE": "ВСВ", "E": "В", "ESE": "ВЮВ", "SE": "ЮВ", "SSE": "ЮЮВ", "S": "Ю", "SSW": "ЮЮЗ...
{ "LOADING": "Загрузка …", "TODAY": "Сегодня", "TOMORROW": "Завтра", "DAYAFTERTOMORROW": "Послезавтра", "RUNNING": "Заканчивается через", "EMPTY": "Нет предстоящих событий", "WEEK": "Неделя", "N": "С", "NNE": "ССВ", "NE": "СВ", "ENE": "ВСВ", "E": "В", "ESE": "ВЮВ", "SE": "ЮВ", "SSE": "ЮЮВ", "S...
Add Russian translation for week
Add Russian translation for week
JSON
mit
Leniox/MagicMirror,vyazadji/MagicMirror,vyazadji/MagicMirror,MichMich/MagicMirror,thobach/MagicMirror,wszgxa/magic-mirror,roramirez/MagicMirror,Leniox/MagicMirror,n8many/MagicMirror,morozgrafix/MagicMirror,ShivamShrivastava/Smart-Mirror,morozgrafix/MagicMirror,heyheyhexi/MagicMirror,heyheyhexi/MagicMirror,mbalfour/Magi...
json
## Code Before: { "LOADING": "Загрузка …", "TODAY": "Сегодня", "TOMORROW": "Завтра", "DAYAFTERTOMORROW": "Послезавтра", "RUNNING": "Заканчивается через", "EMPTY": "Нет предстоящих событий", "N": "С", "NNE": "ССВ", "NE": "СВ", "ENE": "ВСВ", "E": "В", "ESE": "ВЮВ", "SE": "ЮВ", "SSE": "ЮЮВ", "S": "...
{ "LOADING": "Загрузка …", "TODAY": "Сегодня", "TOMORROW": "Завтра", "DAYAFTERTOMORROW": "Послезавтра", "RUNNING": "Заканчивается через", "EMPTY": "Нет предстоящих событий", + + "WEEK": "Неделя", "N": "С", "NNE": "ССВ", "NE": "СВ", "ENE": "ВСВ", "E": "В", "ESE": "ВЮВ...
2
0.066667
2
0
46a473407c1c5a663cf37c79c851f4347f0f8506
.travis.yml
.travis.yml
language: node_js cache: directories: - $HOME/.npm - $HOME/.yarn-cache - node_modules - js-given/node_modules - documentation/node_modules - examples/jest-es2015/node_modules node_js: - "4.8.3" - "6.10.3" - "7.10.0" before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb s...
language: node_js cache: directories: - $HOME/.npm - $HOME/.yarn-cache - node_modules - js-given/node_modules - documentation/node_modules - examples/jest-es2015/node_modules node_js: - "4.8.3" - "6.10.3" - "7.10.0" before_install: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb s...
Remove sleep in xvfb start
Remove sleep in xvfb start
YAML
mit
jsGiven/jsGiven
yaml
## Code Before: language: node_js cache: directories: - $HOME/.npm - $HOME/.yarn-cache - node_modules - js-given/node_modules - documentation/node_modules - examples/jest-es2015/node_modules node_js: - "4.8.3" - "6.10.3" - "7.10.0" before_install: - "export DISPLAY=:99.0" - "sh -e /e...
language: node_js cache: directories: - $HOME/.npm - $HOME/.yarn-cache - node_modules - js-given/node_modules - documentation/node_modules - examples/jest-es2015/node_modules node_js: - "4.8.3" - "6.10.3" - "7.10.0" before_install: - "export DISPLAY=:99.0"...
1
0.052632
0
1
2f7adfb482a3929d0b753ed81250159cdee63eb7
Manifold/Module+Vector.swift
Manifold/Module+Vector.swift
// Copyright © 2015 Rob Rix. All rights reserved. extension Module { public static var vector: Module { let Natural: Recur = "Natural" let Vector: Recur = "Vector" let vector = Declaration("Vector", type: .Type --> Natural --> .Type, value: (.Type, Natural, .Type) => { A, n, B in n[.Type, B --> B, Natura...
// Copyright © 2015 Rob Rix. All rights reserved. extension Module { public static var vector: Module { let Natural: Recur = "Natural" let Vector: Recur = "Vector" let vector = Declaration("Vector", type: .Type --> Natural --> .Type, value: (.Type, Natural, .Type) => { A, n, B in n[.Type, B --> B, Natura...
Correct the definition of `Vector.nil`.
Correct the definition of `Vector.nil`.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright © 2015 Rob Rix. All rights reserved. extension Module { public static var vector: Module { let Natural: Recur = "Natural" let Vector: Recur = "Vector" let vector = Declaration("Vector", type: .Type --> Natural --> .Type, value: (.Type, Natural, .Type) => { A, n, B in n[.Type,...
// Copyright © 2015 Rob Rix. All rights reserved. extension Module { public static var vector: Module { let Natural: Recur = "Natural" let Vector: Recur = "Vector" let vector = Declaration("Vector", type: .Type --> Natural --> .Type, value: (.Type, Natural, .Type) => { A, n, B in n[.Typ...
5
0.217391
4
1
da96ace72f3e46966f4b9d156ce3972d7cde31d9
spec/views/meetings/show.html.erb_spec.rb
spec/views/meetings/show.html.erb_spec.rb
require 'rails_helper' RSpec.describe "meetings/show", type: :view do before(:each) do @meeting = assign(:meeting, FactoryGirl.create(:meeting)) end it "renders attributes in <p>" do render end end
require 'rails_helper' RSpec.describe "meetings/show", type: :view do before(:each) do @meeting = assign(:meeting, FactoryGirl.create(:meeting)) end it "renders the div" do skip('Gives me hell about current_user') render assert_select('div.show-meeting') end end
Mark spec as pending because it was giving me hell for no apparent reason pertaining to bcrypt
Mark spec as pending because it was giving me hell for no apparent reason pertaining to bcrypt
Ruby
unlicense
danascheider/testrubypdx,danascheider/testrubypdx,danascheider/testrubypdx
ruby
## Code Before: require 'rails_helper' RSpec.describe "meetings/show", type: :view do before(:each) do @meeting = assign(:meeting, FactoryGirl.create(:meeting)) end it "renders attributes in <p>" do render end end ## Instruction: Mark spec as pending because it was giving me hell for no apparent reas...
require 'rails_helper' RSpec.describe "meetings/show", type: :view do before(:each) do @meeting = assign(:meeting, FactoryGirl.create(:meeting)) end - it "renders attributes in <p>" do + it "renders the div" do + skip('Gives me hell about current_user') render + + assert_selec...
5
0.454545
4
1
fda6d0e4fad79691aa0398ea307ec6758d6827dd
src/components/semantic-ui/ui-dropdown.js
src/components/semantic-ui/ui-dropdown.js
import { inject, bindable, bindingMode, containerless } from 'aurelia-framework'; @inject(Element) export class UiDropdownCustomElement { @bindable({ defaultBindingMode: bindingMode.twoWay }) value; @bindable placeholder; @bindable required; constructor(element) { this.element = element; }...
import { inject, bindable, bindingMode, containerless } from 'aurelia-framework'; @inject(Element) export class UiDropdownCustomElement { @bindable({ defaultBindingMode: bindingMode.twoWay }) value; @bindable placeholder; @bindable required; constructor(element) { this.element = element; }...
Fix dropdown not being cleared when no value set
Fix dropdown not being cleared when no value set
JavaScript
mit
GETLIMS/LIMS-Frontend,GETLIMS/LIMS-Frontend
javascript
## Code Before: import { inject, bindable, bindingMode, containerless } from 'aurelia-framework'; @inject(Element) export class UiDropdownCustomElement { @bindable({ defaultBindingMode: bindingMode.twoWay }) value; @bindable placeholder; @bindable required; constructor(element) { this.element ...
import { inject, bindable, bindingMode, containerless } from 'aurelia-framework'; @inject(Element) export class UiDropdownCustomElement { @bindable({ defaultBindingMode: bindingMode.twoWay }) value; @bindable placeholder; @bindable required; constructor(element) { this.elem...
3
0.085714
3
0
7437163c20dd5d52b5fe1400667863f2f7d2652c
tox.ini
tox.ini
[tox] envlist = py26 [testenv] changedir=tests deps=pytest commands=py.test --junitxml=junit-{envname}.xml
[tox] envlist = py267,py271 [testenv] changedir=tests deps=pytest commands=py.test --junitxml=junit-{envname}.xml [testenv:py271] basepython=/var/lib/jenkins/.pythonbrew/pythons/Python-2.7.1/ [testenv:py267] basepython=/var/lib/jenkins/.pythonbrew/pythons/Python-2.6.7/
Use pybrew for jenkins user
Use pybrew for jenkins user
INI
bsd-3-clause
myint/yolk,myint/yolk
ini
## Code Before: [tox] envlist = py26 [testenv] changedir=tests deps=pytest commands=py.test --junitxml=junit-{envname}.xml ## Instruction: Use pybrew for jenkins user ## Code After: [tox] envlist = py267,py271 [testenv] changedir=tests deps=pytest commands=py.test --junitxml=junit-{envname}.xml [testenv:py271] bas...
[tox] - envlist = py26 + envlist = py267,py271 ? +++++++ [testenv] changedir=tests deps=pytest commands=py.test --junitxml=junit-{envname}.xml + [testenv:py271] + basepython=/var/lib/jenkins/.pythonbrew/pythons/Python-2.7.1/ + [testenv:py267] + basepython=/var/lib/jenkins/.pythonbrew/pyth...
8
1
7
1
5b1fb7de6a87fb66393d784f71f020f2d8a097e7
.travis.yml
.travis.yml
language: android jdk: oraclejdk7 android: components: - build-tools-22.0.1 - android-22 - extra-android-m2repository - sys-img-armeabi-v7a-android-19 before_script: - echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a - emulator -avd test -no-skin -no-audio -no-wind...
language: android jdk: oraclejdk7 android: components: - build-tools-22.0.1 - android-22 - extra-android-m2repository script: - echo "twitterConsumerKey=$TWITTER_CONSUMER_KEY" >> samples/app/fabric.properties - echo "twitterConsumerSecret=$TWITTER_CONSUMER_SECRET" >> samples/app/fabric.properties...
Remove parallel and connectedCheck from Travis builds
Remove parallel and connectedCheck from Travis builds Change-Id: Ibb20e719141bf3b41a83f1e2fa34c0587caafa64
YAML
apache-2.0
afeiluo/twitter-kit-android,twitter/twitter-kit-android,t9nf/twitter-kit-android,rcastro78/twitter-kit-android,afeiluo/twitter-kit-android
yaml
## Code Before: language: android jdk: oraclejdk7 android: components: - build-tools-22.0.1 - android-22 - extra-android-m2repository - sys-img-armeabi-v7a-android-19 before_script: - echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a - emulator -avd test -no-skin -n...
language: android jdk: oraclejdk7 android: components: - build-tools-22.0.1 - android-22 - extra-android-m2repository - - sys-img-armeabi-v7a-android-19 - - before_script: - - echo no | android create avd --force -n test -t android-19 --abi armeabi-v7a - - emulator -avd test -no...
9
0.428571
1
8
97a178995f3c5bc89da4fb6a90bf53b39c81156a
app/modules/redis/InsertLogPubSub.js
app/modules/redis/InsertLogPubSub.js
'use strict'; exports.on = function(logs) { var redis = mainevent.requireModule('redis').createInstance(); redis.connect(); redis.client.publish('InsertLog', JSON.stringify(logs), function() { redis.client.end(); }); };
'use strict'; var redis = mainevent.requireModule('redis').createInstance(); redis.connect(); exports.on = function(logs) { redis.client.publish('InsertLog', JSON.stringify(logs)); };
Fix attempt: stop creating new clients for each message
Fix attempt: stop creating new clients for each message
JavaScript
mit
codeactual/mainevent
javascript
## Code Before: 'use strict'; exports.on = function(logs) { var redis = mainevent.requireModule('redis').createInstance(); redis.connect(); redis.client.publish('InsertLog', JSON.stringify(logs), function() { redis.client.end(); }); }; ## Instruction: Fix attempt: stop creating new clients for each messag...
'use strict'; + var redis = mainevent.requireModule('redis').createInstance(); + redis.connect(); + exports.on = function(logs) { - var redis = mainevent.requireModule('redis').createInstance(); - redis.connect(); - redis.client.publish('InsertLog', JSON.stringify(logs), function() { ? ...
9
1
4
5
15edf1a4aad40d284afd224056ac84645cb20fd7
CONTRIBUTING.md
CONTRIBUTING.md
See the [Developer / Contributor Guide](http://docs.cilium.io/en/stable/contributing/contributing/) for detailed information on how to contribute, get started and find good first issues.
See the [Developer / Contributor Guide](https://docs.cilium.io/en/stable/contributing/development/contributing_guide/) for detailed information on how to contribute, get started and find good first issues.
Update link to the guide
Update link to the guide The link was outdated and pointing nowhere Signed-off-by: Manuel Buil <e425ad3a02d493517ddd7945e45944816381397e@suse.com>
Markdown
apache-2.0
tklauser/cilium,michi-covalent/cilium,michi-covalent/cilium,tklauser/cilium,cilium/cilium,tgraf/cilium,cilium/cilium,tklauser/cilium,michi-covalent/cilium,tgraf/cilium,michi-covalent/cilium,cilium/cilium,tgraf/cilium,tgraf/cilium,tklauser/cilium,cilium-team/cilium,cilium/cilium,tgraf/cilium,michi-covalent/cilium,tgraf/...
markdown
## Code Before: See the [Developer / Contributor Guide](http://docs.cilium.io/en/stable/contributing/contributing/) for detailed information on how to contribute, get started and find good first issues. ## Instruction: Update link to the guide The link was outdated and pointing nowhere Signed-off-by: Manuel Buil <e...
See the [Developer / Contributor - Guide](http://docs.cilium.io/en/stable/contributing/contributing/) for detailed information on + Guide](https://docs.cilium.io/en/stable/contributing/development/contributing_guide/) for detailed information on ? + ++++++++++++ ...
2
0.5
1
1
43bdea60b9dcd23167f84a0684fcfa02d629516a
templates/jvm-guy-spring-boot-project/gradle/wrapper/gradle-wrapper.properties
templates/jvm-guy-spring-boot-project/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists #distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip distributionUrl=http\://192.168.1.229:8081/artifactory/gradle-releases/gradle-2.12-all.zip
Use Artifactory for Gradle downloads
Use Artifactory for Gradle downloads
INI
apache-2.0
kurron/lazybones-experiment,kurron/lazybones-experiment,kurron/lazybones-experiment,kurron/lazybones-experiment
ini
## Code Before: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip ## Instruction: Use Artifactory for Gradle downloads ## Code After: distributionBase=GRADLE_USER_HOME...
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists - distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip + #distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip ? + + distributionUrl=http...
3
0.6
2
1
c8b3ceaf1927fdbe4c4cb0417958121e8823ab30
src/routes/Morph/Help/index.js
src/routes/Morph/Help/index.js
import React from 'react' import PropTypes from 'prop-types' import { siteTitle } from '../../../App' import Help from '../../../components/Help' import Notice from '../../../components/Notice' import { morphInfo } from '../' const MorphHelp = props => ( <Help toolInfo={morphInfo}> <Notice>This tool is still i...
import React from 'react' import PropTypes from 'prop-types' import { siteTitle } from '../../../App' import Help from '../../../components/Help' import Notice from '../../../components/Notice' import { morphInfo } from '../' const MorphHelp = props => ( <Help toolInfo={morphInfo}> <Notice>This tool is still i...
Move SCA2 outside of link in acknowledgment
Move SCA2 outside of link in acknowledgment
JavaScript
agpl-3.0
nai888/langua,nai888/langua
javascript
## Code Before: import React from 'react' import PropTypes from 'prop-types' import { siteTitle } from '../../../App' import Help from '../../../components/Help' import Notice from '../../../components/Notice' import { morphInfo } from '../' const MorphHelp = props => ( <Help toolInfo={morphInfo}> <Notice>This...
import React from 'react' import PropTypes from 'prop-types' import { siteTitle } from '../../../App' import Help from '../../../components/Help' import Notice from '../../../components/Notice' import { morphInfo } from '../' const MorphHelp = props => ( <Help toolInfo={morphInfo}> <Not...
9
0.225
5
4
38428c80124afc0200972868f528a8655def00c6
bin/dp.js
bin/dp.js
'use strict'; const program = require('commander'); const pkg = require('../package.json'); program .version(pkg.version) .command('diff <left> <right>', 'compare the given routes') .command('show <id>', 'show a diff of the given id') .command('run', 'run the diff suite', { isDefault: true }) .parse(proc...
'use strict'; const program = require('commander'); const pkg = require('../package.json'); program .version(pkg.version) .allowUnknownOption() .command('diff <left> <right>', 'compare the given routes') .command('show <id>', 'show a diff of the given id') .command('run', 'run the diff suite', { isDefaul...
Allow unknown options on "root level"
Allow unknown options on "root level"
JavaScript
mit
maxdome/dumpinator,maxdome/dumpinator
javascript
## Code Before: 'use strict'; const program = require('commander'); const pkg = require('../package.json'); program .version(pkg.version) .command('diff <left> <right>', 'compare the given routes') .command('show <id>', 'show a diff of the given id') .command('run', 'run the diff suite', { isDefault: true }...
'use strict'; const program = require('commander'); const pkg = require('../package.json'); program .version(pkg.version) + .allowUnknownOption() + .command('diff <left> <right>', 'compare the given routes') .command('show <id>', 'show a diff of the given id') .command('run', 'run...
2
0.142857
2
0
74739018fcbb127050f5c6577b9f7dc50b1f13aa
lib/model/user.coffee
lib/model/user.coffee
root = exports ? this root.User = class User @findOne: (idOrName) -> data = Meteor.users.findOne(idOrName) if not data data = Meteor.users.findOne({'profile.name': new RegExp('^' + idOrName + '$', 'i')}) new User(data) @current: -> Meteor.userId() and new User(Meteor.user()) constructor: ...
root = exports ? this root.User = class User @findOne: (idOrName) -> data = Meteor.users.findOne(idOrName) if not data data = Meteor.users.findOne({'profile.name': new RegExp('^' + idOrName + '$', 'i')}) new User(data) @current: -> Meteor.userId() and new User(Meteor.user()) constructor: ...
Fix facebook images to make sure they are squares
Fix facebook images to make sure they are squares
CoffeeScript
apache-2.0
rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015
coffeescript
## Code Before: root = exports ? this root.User = class User @findOne: (idOrName) -> data = Meteor.users.findOne(idOrName) if not data data = Meteor.users.findOne({'profile.name': new RegExp('^' + idOrName + '$', 'i')}) new User(data) @current: -> Meteor.userId() and new User(Meteor.user()) ...
root = exports ? this root.User = class User @findOne: (idOrName) -> data = Meteor.users.findOne(idOrName) if not data data = Meteor.users.findOne({'profile.name': new RegExp('^' + idOrName + '$', 'i')}) new User(data) @current: -> Meteor.userId() and new User(Meteor.us...
2
0.051282
1
1
18e5fe55934899ba1e4454e1383ef49c5068dafb
ember-cli-build.js
ember-cli-build.js
/* eslint-env node */ /* global require, module */ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon') module.exports = function (defaults) { var app = new EmberAddon(defaults, { babel: { optional: ['es7.decorators'] }, 'ember-cli-babel': { includePolyfill: true }, 'ember...
/* eslint-env node */ /* global require, module */ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon') module.exports = function (defaults) { var app = new EmberAddon(defaults, { babel: { optional: ['es7.decorators'] }, 'ember-cli-babel': { includePolyfill: true }, sassOp...
Remove useLintTree ember-cli-mocha build configuration
Remove useLintTree ember-cli-mocha build configuration
JavaScript
mit
EWhite613/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,EWhite613/ember-frost-core,EWhite613/ember-frost-core
javascript
## Code Before: /* eslint-env node */ /* global require, module */ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon') module.exports = function (defaults) { var app = new EmberAddon(defaults, { babel: { optional: ['es7.decorators'] }, 'ember-cli-babel': { includePolyfill: true ...
/* eslint-env node */ /* global require, module */ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon') module.exports = function (defaults) { var app = new EmberAddon(defaults, { babel: { optional: ['es7.decorators'] }, 'ember-cli-babel': { includePolyfill: ...
3
0.088235
0
3
abfb87284cdeb8cdbd30187cf9ab833d6c68c54f
.travis.yml
.travis.yml
sudo: false language: java jdk: - oraclejdk8 - openjdk7 before_install: - wget https://github.com/google/protobuf/releases/download/v3.0.0-beta-3/protoc-3.0.0-beta-3-linux-x86_64.zip - unzip protoc-3.0.0-beta-3-linux-x86_64.zip - export PROTOC_COMPILER="$(pwd)/protoc" os: - linux
sudo: false language: java jdk: - oraclejdk8 before_install: - wget https://github.com/google/protobuf/releases/download/v3.0.0-beta-3/protoc-3.0.0-beta-3-linux-x86_64.zip - unzip protoc-3.0.0-beta-3-linux-x86_64.zip - export PROTOC_COMPILER="$(pwd)/protoc" os: - linux
Remove java7 build constraints. Api Compiler is moving to java8 only for open source build.
Remove java7 build constraints. Api Compiler is moving to java8 only for open source build.
YAML
apache-2.0
googleapis/api-compiler,googleapis/api-compiler
yaml
## Code Before: sudo: false language: java jdk: - oraclejdk8 - openjdk7 before_install: - wget https://github.com/google/protobuf/releases/download/v3.0.0-beta-3/protoc-3.0.0-beta-3-linux-x86_64.zip - unzip protoc-3.0.0-beta-3-linux-x86_64.zip - export PROTOC_COMPILER="$(pwd)/protoc" os: - linux ## Inst...
sudo: false language: java jdk: - oraclejdk8 - - openjdk7 before_install: - wget https://github.com/google/protobuf/releases/download/v3.0.0-beta-3/protoc-3.0.0-beta-3-linux-x86_64.zip - unzip protoc-3.0.0-beta-3-linux-x86_64.zip - export PROTOC_COMPILER="$(pwd)/protoc" os: - linux...
1
0.071429
0
1
1bb1fc7e0b7bf4c9a0a655ed502cf922bea38286
README.md
README.md
Maya plugin with tools that operate on meshes using symmetry tables calculated by topology. #### Description See the [Wiki](https://github.com/yantor3d/polySymmetry/wiki) for full details.
Maya plugin with tools that operate on meshes using symmetry tables calculated by topology. Requires Maya 2016 or later version. #### Description See the [Wiki](https://github.com/yantor3d/polySymmetry/wiki) for full details.
Update Readme with Maya version restriction.
Update Readme with Maya version restriction.
Markdown
mit
yantor3d/polySymmetry,yantor3d/polySymmetry
markdown
## Code Before: Maya plugin with tools that operate on meshes using symmetry tables calculated by topology. #### Description See the [Wiki](https://github.com/yantor3d/polySymmetry/wiki) for full details. ## Instruction: Update Readme with Maya version restriction. ## Code After: Maya plugin with tools that operate o...
- Maya plugin with tools that operate on meshes using symmetry tables calculated by topology. + Maya plugin with tools that operate on meshes using symmetry tables calculated by topology. Requires Maya 2016 or later version. ? ++...
2
0.5
1
1
247fa8e27849df44cbe0c922d9fd9469d6eca7b4
src/Core/User.php
src/Core/User.php
<?php namespace Vela\Core; use \Sabre\HTTP\Request; Class User { private $request; public function __construct(Request $request) { $this->request = $request; } public function getUserAgent() { return $this->request->getRawServerValue('HTTP_USER_AGENT'); } public function getUserIp()...
<?php namespace Vela\Core; use \Sabre\HTTP\Request; Class User { private $request; public function __construct(Request $request) { $this->request = $request; } public function getUserAgent() { return $this->request->getRawServerValue('HTTP_USER_AGENT'); } public function getUserIp()...
Move robot check code to USer class
Move robot check code to USer class
PHP
mit
acidvertigo/vela-commerce
php
## Code Before: <?php namespace Vela\Core; use \Sabre\HTTP\Request; Class User { private $request; public function __construct(Request $request) { $this->request = $request; } public function getUserAgent() { return $this->request->getRawServerValue('HTTP_USER_AGENT'); } public func...
<?php namespace Vela\Core; use \Sabre\HTTP\Request; Class User { private $request; public function __construct(Request $request) { $this->request = $request; } public function getUserAgent() { return $this->request->getRawServerValue('HTTP_USER_AGENT'); ...
16
0.390244
16
0
8cb072590831370ee51de42aa308d81b5cd522c6
src/main/java/com/alexrnl/request/shows/ShowArchive.java
src/main/java/com/alexrnl/request/shows/ShowArchive.java
package com.alexrnl.request.shows; import java.util.HashMap; import java.util.Map; import com.alexrnl.request.Request; import com.alexrnl.request.Verb; /** * Archive a show in the logged member account.<br /> * @author Alex */ public class ShowArchive extends Request { /** Address of the method */ private sta...
package com.alexrnl.request.shows; import java.util.HashMap; import java.util.Map; import com.alexrnl.request.Request; import com.alexrnl.request.Verb; /** * Archive a show in the logged member account.<br /> * @author Alex */ public class ShowArchive extends Request { /** Address of the method */ private sta...
Make the id of the show an Integer
Make the id of the show an Integer
Java
bsd-3-clause
AlexRNL/jSeries
java
## Code Before: package com.alexrnl.request.shows; import java.util.HashMap; import java.util.Map; import com.alexrnl.request.Request; import com.alexrnl.request.Verb; /** * Archive a show in the logged member account.<br /> * @author Alex */ public class ShowArchive extends Request { /** Address of the method...
package com.alexrnl.request.shows; import java.util.HashMap; import java.util.Map; import com.alexrnl.request.Request; import com.alexrnl.request.Verb; /** * Archive a show in the logged member account.<br /> * @author Alex */ public class ShowArchive extends Request { /** Address...
10
0.208333
5
5
d069fe16cc151d69a040cbe0d1ba266a48e831a8
client/Library/Listing.ts
client/Library/Listing.ts
import { Listable, ServerListing } from "../../common/Listable"; import { Store } from "../Utility/Store"; export type ListingOrigin = "server" | "account" | "localStorage"; export class Listing<T extends Listable> implements ServerListing { constructor( public Id: string, public Name: string, ...
import { Listable, ServerListing } from "../../common/Listable"; import { Store } from "../Utility/Store"; export type ListingOrigin = "server" | "account" | "localStorage"; export class Listing<T extends Listable> implements ServerListing { constructor( public Id: string, public Name: string, ...
Update item Id when getting from server
Update item Id when getting from server
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
typescript
## Code Before: import { Listable, ServerListing } from "../../common/Listable"; import { Store } from "../Utility/Store"; export type ListingOrigin = "server" | "account" | "localStorage"; export class Listing<T extends Listable> implements ServerListing { constructor( public Id: string, public N...
import { Listable, ServerListing } from "../../common/Listable"; import { Store } from "../Utility/Store"; export type ListingOrigin = "server" | "account" | "localStorage"; export class Listing<T extends Listable> implements ServerListing { constructor( public Id: string, public...
1
0.018519
1
0
60533ab4d1d0b1b049b98f206445ac5dbc437913
lib/anticuado/ios/carthage.rb
lib/anticuado/ios/carthage.rb
module Anticuado module IOS class Carthage < Anticuado::Base # @param [String] project Path to project directory. # @return [String] The result of command `carthage outdated`. def self.outdated(project = nil) return puts "have no carthage command" if `which carthage`.empty? if p...
module Anticuado module IOS class Carthage < Anticuado::Base # @param [String] project Path to project directory. # @return [String] The result of command `carthage outdated`. def self.outdated(project = nil) return puts "have no carthage command" if `which carthage`.empty? if p...
Support newer syntax of Carthage
Support newer syntax of Carthage
Ruby
mit
KazuCocoa/anticuado,KazuCocoa/anticuado
ruby
## Code Before: module Anticuado module IOS class Carthage < Anticuado::Base # @param [String] project Path to project directory. # @return [String] The result of command `carthage outdated`. def self.outdated(project = nil) return puts "have no carthage command" if `which carthage`.empt...
module Anticuado module IOS class Carthage < Anticuado::Base # @param [String] project Path to project directory. # @return [String] The result of command `carthage outdated`. def self.outdated(project = nil) return puts "have no carthage command" if `which carthage`.empty?...
17
0.459459
14
3
1c6557bf527f4d26aa81965324b99ba3aa97dc5d
_data/events_gdcr2019/pune.json
_data/events_gdcr2019/pune.json
{ "title": "Global Day of Coderetreat 2019 @ Equal Experts", "url": "https://www.meetup.com/expert-talks-Pune/events/264152214/", "moderators": [], "sponsors": [ { "name": "Equal Experts, Pune", "url": "https://github.com/EqualExperts" } ], "date": { "start": "2019-11-16T09:00:00+05:...
{ "title": "Global Day of Coderetreat 2019 @ Equal Experts", "url": "https://www.meetup.com/expert-talks-Pune/events/264152214/", "moderators": [ { "name": "Aashish Ghogre", "url": "https://github.com/ashishghogre" }, { "name": "Sagar Mate", "url": "https://www.linkedin.com/in/...
Add facilitators for Equal Experts, Pune
Add facilitators for Equal Experts, Pune
JSON
mit
coderetreat/coderetreat.github.io,coderetreat/coderetreat.github.io,coderetreat/coderetreat.github.io,coderetreat/coderetreat.github.io
json
## Code Before: { "title": "Global Day of Coderetreat 2019 @ Equal Experts", "url": "https://www.meetup.com/expert-talks-Pune/events/264152214/", "moderators": [], "sponsors": [ { "name": "Equal Experts, Pune", "url": "https://github.com/EqualExperts" } ], "date": { "start": "2019-11...
{ "title": "Global Day of Coderetreat 2019 @ Equal Experts", "url": "https://www.meetup.com/expert-talks-Pune/events/264152214/", - "moderators": [], ? -- + "moderators": [ + { + "name": "Aashish Ghogre", + "url": "https://github.com/ashishghogre" + }, + { + ...
11
0.458333
10
1
4027ee5ab468e8688551234875562e280809e40a
tasks/storage.yml
tasks/storage.yml
--- - name: Create filesystem on storage block device filesystem: dev: "{{ docker_storage_block_device }}" fstype: "{{ docker_storage_filesystem }}" force: "{{ docker_storage_force }}" become: true ignore_errors: true - name: Create docker directory file: path: /var/lib/docker state: direct...
--- - name: Create filesystem on storage block device filesystem: dev: "{{ docker_storage_block_device }}" fstype: "{{ docker_storage_filesystem }}" force: "{{ docker_storage_force }}" become: true ignore_errors: true - name: Create docker directory file: path: /var/lib/docker state: direct...
Use path instead of name
Use path instead of name
YAML
apache-2.0
betacloud/ansible-docker,betacloud/ansible-docker
yaml
## Code Before: --- - name: Create filesystem on storage block device filesystem: dev: "{{ docker_storage_block_device }}" fstype: "{{ docker_storage_filesystem }}" force: "{{ docker_storage_force }}" become: true ignore_errors: true - name: Create docker directory file: path: /var/lib/docker ...
--- - name: Create filesystem on storage block device filesystem: dev: "{{ docker_storage_block_device }}" fstype: "{{ docker_storage_filesystem }}" force: "{{ docker_storage_force }}" become: true ignore_errors: true - name: Create docker directory file: path: /var/lib/...
3
0.107143
1
2
2c36f2ef7ca925b97659324ace77b40541fb7553
.nodeset.yml
.nodeset.yml
default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64'
default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' 'debian-70rc1-x64': nodes: "main": prefab: 'debian-70rc1-x64'
Add debian wheezy node for rspec-system
Add debian wheezy node for rspec-system
YAML
apache-2.0
MelanieGault/puppet-wget,blackcobra1973/puppet-wget,maestrodev/puppet-wget,azcender/puppet-wget,DSI-Ville-Noumea/puppet-wget,seanscottking/puppet-wget,PierrickI3/puppet-wget
yaml
## Code Before: default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' ## Instruction: Add debian wheezy node for rspec-system ## Code After: default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-...
default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' + 'debian-70rc1-x64': + nodes: + "main": + prefab: 'debian-70rc1-x64'
4
0.666667
4
0
326022e902902cc05ed10a656b9cccc3c78590ea
app/models/houston/itsm/issue.rb
app/models/houston/itsm/issue.rb
require "ntlm/http" module Houston module Itsm class Issue < Struct.new(:summary, :url, :assigned_to_email, :assigned_to_user) def self.open http = Net::HTTP.start("ecphhelper", 80) req = Net::HTTP::Get.new("/ITSM.asmx/GetOpenCallsEmergingProducts") req.ntlm_auth("Hous...
require "ntlm/http" module Houston module Itsm class Issue < Struct.new(:key, :summary, :url, :assigned_to_email, :assigned_to_user) def self.open http = Net::HTTP.start("ecphhelper", 80) req = Net::HTTP::Get.new("/ITSM.asmx/GetOpenCallsEmergingProducts") req.ntlm_auth...
Add `key` to Issue (2m)
[refactor] Add `key` to Issue (2m)
Ruby
mit
cph/houston-dashboards,concordia-publishing-house/houston-dashboards,cph/houston-dashboards,concordia-publishing-house/houston-dashboards,concordia-publishing-house/houston-dashboards,cph/houston-dashboards
ruby
## Code Before: require "ntlm/http" module Houston module Itsm class Issue < Struct.new(:summary, :url, :assigned_to_email, :assigned_to_user) def self.open http = Net::HTTP.start("ecphhelper", 80) req = Net::HTTP::Get.new("/ITSM.asmx/GetOpenCallsEmergingProducts") req...
require "ntlm/http" module Houston module Itsm - class Issue < Struct.new(:summary, :url, :assigned_to_email, :assigned_to_user) + class Issue < Struct.new(:key, :summary, :url, :assigned_to_email, :assigned_to_user) ? ++++++ def self.open ...
13
0.382353
10
3
699c43e5bf71fc09c3c7cd3820ae1034ab0830f8
credentials/remove-newlines.sh
credentials/remove-newlines.sh
TMPFILE="$(mktemp)" for f in "$(dirname "$0")/"*".txt"; do cat "$f" | tr -d '\n' > "$TMPFILE" mv "$TMPFILE" "$f" done rm "$TMPFILE"
TMPFILE="$(mktemp)" for f in "$(dirname "$0")/"*".txt"; do cat "$f" | tr -d '\n' > "$TMPFILE" mv "$TMPFILE" "$f" done [ -e "$TMPFILE" ] && rm "$TMPFILE"
Remove temp file only if it exists
Remove temp file only if it exists
Shell
agpl-3.0
lcorbasson/progicilia-watch,lcorbasson/progicilia-hack,lcorbasson/progicilia-watch,lcorbasson/progicilia-hack
shell
## Code Before: TMPFILE="$(mktemp)" for f in "$(dirname "$0")/"*".txt"; do cat "$f" | tr -d '\n' > "$TMPFILE" mv "$TMPFILE" "$f" done rm "$TMPFILE" ## Instruction: Remove temp file only if it exists ## Code After: TMPFILE="$(mktemp)" for f in "$(dirname "$0")/"*".txt"; do cat "$f" | tr -d '\n' > "$TMPFILE" mv "$...
TMPFILE="$(mktemp)" for f in "$(dirname "$0")/"*".txt"; do cat "$f" | tr -d '\n' > "$TMPFILE" mv "$TMPFILE" "$f" done - rm "$TMPFILE" + [ -e "$TMPFILE" ] && rm "$TMPFILE"
2
0.285714
1
1
5bbd2968530821b2f3a3b265dcb30178a45e4444
y86_machine.7
y86_machine.7
.\" .\" Copyright (c) 2020 Scott Bennett <scottb@fastmail.com> .\" .Dd March 21, 2020 .Dt Y86_MACHINE 7 .Os .Sh NAME .Nm Y86 Machine Reference .Sh DESCRIPTION The Y86 .Pq Dq YES machine is a theoretical processor based on a subset of x86 concepts. Being a teaching processor, Y86 embodies elements of both RISC and CISC ...
.\" .\" Copyright (c) 2020 Scott Bennett <scottb@fastmail.com> .\" .Dd March 21, 2020 .Dt Y86_MACHINE 7 .Os .Sh NAME .Nm Y86 Machine Reference .Sh DESCRIPTION The Y86 .Pq Dq YES machine is a theoretical processor based on a subset of x86 concepts. Being a teaching processor, Y86 embodies elements of both RISC and CISC ...
Make a table of address relationships
Make a table of address relationships
Groff
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
groff
## Code Before: .\" .\" Copyright (c) 2020 Scott Bennett <scottb@fastmail.com> .\" .Dd March 21, 2020 .Dt Y86_MACHINE 7 .Os .Sh NAME .Nm Y86 Machine Reference .Sh DESCRIPTION The Y86 .Pq Dq YES machine is a theoretical processor based on a subset of x86 concepts. Being a teaching processor, Y86 embodies elements of bot...
.\" .\" Copyright (c) 2020 Scott Bennett <scottb@fastmail.com> .\" .Dd March 21, 2020 .Dt Y86_MACHINE 7 .Os .Sh NAME .Nm Y86 Machine Reference .Sh DESCRIPTION The Y86 .Pq Dq YES machine is a theoretical processor based on a subset of x86 concepts. Being a teaching processor, Y86 embodies eleme...
16
0.8
16
0
cfdbfa2200aa500af3a80e78ad2e673c8446113e
README.md
README.md
[language-colors](http://language-colors.herokuapp.com) =============== A simple web app and service for viewing GitHub's language colors. You may access the simple API at [`/index.json`](http://language-colors.herokuapp.com/index.json).
[language-colors](http://language-colors.herokuapp.com) =============== [![Build Status](https://travis-ci.org/nicolasmccurdy/language-colors.svg?branch=master)](https://travis-ci.org/nicolasmccurdy/language-colors) A simple web app and service for viewing GitHub's language colors. You may access the simple API at [`...
Add a Travis badge to the readme
Add a Travis badge to the readme
Markdown
mit
nicolasmccurdy/language-colors,nicolasmccurdy/language-colors
markdown
## Code Before: [language-colors](http://language-colors.herokuapp.com) =============== A simple web app and service for viewing GitHub's language colors. You may access the simple API at [`/index.json`](http://language-colors.herokuapp.com/index.json). ## Instruction: Add a Travis badge to the readme ## Code After: ...
[language-colors](http://language-colors.herokuapp.com) =============== + [![Build Status](https://travis-ci.org/nicolasmccurdy/language-colors.svg?branch=master)](https://travis-ci.org/nicolasmccurdy/language-colors) + A simple web app and service for viewing GitHub's language colors. You may access the si...
2
0.333333
2
0
ebaa046ea915dc8e1e1abf0b079f4cb081a7f674
Kwc/Basic/LinkTag/FirstChildPage/Data.php
Kwc/Basic/LinkTag/FirstChildPage/Data.php
<?php class Kwc_Basic_LinkTag_FirstChildPage_Data extends Kwf_Component_Data { private $_pageCache = false; public function __get($var) { if ($var == 'url') { $page = $this->_getFirstChildPage(); return $page ? $page->url : ''; } else if ($var == 'rel') { ...
<?php class Kwc_Basic_LinkTag_FirstChildPage_Data extends Kwf_Component_Data { private $_pageCache = false; public function __get($var) { if ($var == 'url') { $page = $this->_getFirstChildPage(); return $page ? $page->url : ''; } else if ($var == 'rel') { ...
Fix FirstChildPage if child page doesn't exist
Fix FirstChildPage if child page doesn't exist
PHP
bsd-2-clause
koala-framework/koala-framework,kaufmo/koala-framework,koala-framework/koala-framework,kaufmo/koala-framework,kaufmo/koala-framework
php
## Code Before: <?php class Kwc_Basic_LinkTag_FirstChildPage_Data extends Kwf_Component_Data { private $_pageCache = false; public function __get($var) { if ($var == 'url') { $page = $this->_getFirstChildPage(); return $page ? $page->url : ''; } else if ($var == 'rel'...
<?php class Kwc_Basic_LinkTag_FirstChildPage_Data extends Kwf_Component_Data { private $_pageCache = false; public function __get($var) { if ($var == 'url') { $page = $this->_getFirstChildPage(); return $page ? $page->url : ''; } else if ($var == '...
6
0.133333
4
2
d147da405c4e9726b53195e63d9c7621c3c88edf
zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java
zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java
package com.unidev.zerostorage; import com.unidev.zerostorage.index.IndexStorage; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; /** * Storage index tests */ public class TestIndexStorage { @Rule public TemporaryFolder folder= new TemporaryFolder...
package com.unidev.zerostorage; import com.unidev.zerostorage.index.IndexStorage; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; /** * Storage index tests */ public class ...
Test loading of blank index file
Test loading of blank index file
Java
apache-2.0
universal-development/zulu-storage
java
## Code Before: package com.unidev.zerostorage; import com.unidev.zerostorage.index.IndexStorage; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; /** * Storage index tests */ public class TestIndexStorage { @Rule public TemporaryFolder folder= new...
package com.unidev.zerostorage; import com.unidev.zerostorage.index.IndexStorage; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; + import java.io.IOException; + import java.io.InputStream; + import java.nio.file.Files; /** * Storage i...
16
0.333333
16
0
1cc1bff2ca38d0d8fca50c562c88424e70ff0cc8
app/commands/put_publish_intent.rb
app/commands/put_publish_intent.rb
module Commands class PutPublishIntent < BaseCommand def call PathReservation.reserve_base_path!(base_path, payload[:publishing_app]) if downstream payload = Presenters::DownstreamPresenter::V1.present(publish_intent, transmitted_at: false) Adapters::ContentStore.put_publish_intent(ba...
module Commands class PutPublishIntent < BaseCommand def call PathReservation.reserve_base_path!(base_path, payload[:publishing_app]) if downstream payload = Presenters::DownstreamPresenter::V1.present(publish_intent, payload_version: false) Adapters::ContentStore.put_publish_intent(b...
Update `PutPublishIntent` command to omit `payload_version`
Update `PutPublishIntent` command to omit `payload_version`
Ruby
mit
alphagov/publishing-api,alphagov/publishing-api
ruby
## Code Before: module Commands class PutPublishIntent < BaseCommand def call PathReservation.reserve_base_path!(base_path, payload[:publishing_app]) if downstream payload = Presenters::DownstreamPresenter::V1.present(publish_intent, transmitted_at: false) Adapters::ContentStore.put_p...
module Commands class PutPublishIntent < BaseCommand def call PathReservation.reserve_base_path!(base_path, payload[:publishing_app]) if downstream - payload = Presenters::DownstreamPresenter::V1.present(publish_intent, transmitted_at: false) ? ...
2
0.083333
1
1
349b9ab3e72f188c50b5f84f3ce5ee2fddcfbf80
roles/ceph-common/tasks/generate_ceph_conf.yml
roles/ceph-common/tasks/generate_ceph_conf.yml
--- - name: create ceph conf directory file: path: /etc/ceph state: directory owner: "ceph" group: "ceph" mode: "0755" - name: "generate ceph configuration file: {{ cluster }}.conf" action: config_template args: src: ceph.conf.j2 dest: /etc/ceph/{{ cluster }}.conf owner: "ceph" ...
--- - name: create ceph conf directory and assemble directory file: path: "{{ item }}" state: directory owner: "ceph" group: "ceph" mode: "0755" with_items: - /etc/ceph/ - /etc/ceph/ceph.d/ - name: "generate ceph configuration file: {{ cluster }}.conf" action: config_template args: ...
Make ceph-common aware off osd config fragments
Make ceph-common aware off osd config fragments This removes the implicit order requirement when using OSD fragments. When you use OSD fragments and ceph-osd role is not the last one, the fragments get removed from ceph.conf by ceph-common. It is not nice to have this code at two locations, but this is necessary to p...
YAML
apache-2.0
jtaleric/ceph-ansible,font/ceph-ansible,ceph/ceph-ansible,WingkaiHo/ceph-ansible,WingkaiHo/ceph-ansible,fgal/ceph-ansible,albertomurillo/ceph-ansible,bengland2/ceph-ansible,albertomurillo/ceph-ansible,travmi/ceph-ansible,bengland2/ceph-ansible,jtaleric/ceph-ansible,font/ceph-ansible,WingkaiHo/ceph-ansible,ceph/ceph-ans...
yaml
## Code Before: --- - name: create ceph conf directory file: path: /etc/ceph state: directory owner: "ceph" group: "ceph" mode: "0755" - name: "generate ceph configuration file: {{ cluster }}.conf" action: config_template args: src: ceph.conf.j2 dest: /etc/ceph/{{ cluster }}.conf ...
--- - - name: create ceph conf directory + - name: create ceph conf directory and assemble directory file: - path: /etc/ceph + path: "{{ item }}" state: directory owner: "ceph" group: "ceph" mode: "0755" + with_items: + - /etc/ceph/ + - /etc/ceph/ceph.d/ - name: "gen...
17
0.68
14
3
5b25b2ce8237a64f843daa8088a5b2eba0a30f1f
custom/gnome-terminal.zsh
custom/gnome-terminal.zsh
bindkey '\e[A' up-line-or-search bindkey '\e[B' down-line-or-search # Delete bindkey '[3~' delete-char # Home/End bindkey 'OH' beginning-of-line bindkey 'OF' end-of-line # Ctrl Left/Right (^[[1;5D & ^[[1;5C) bindkey '' backward-word bindkey '' forward-word
bindkey '\e[A' up-line-or-search bindkey '\e[B' down-line-or-search # Delete bindkey '[3~' delete-char # Home/End bindkey 'OH' beginning-of-line bindkey 'OF' end-of-line bindkey '[1~' beginning-of-line bindkey '[4~' end-of-line # Ctrl Left/Right (^[[1;5D & ^[[1;5C) bindkey '' backward-word bindkey '...
Add more bindings for home/end/ctrl-left/right
Add more bindings for home/end/ctrl-left/right
Shell
mit
jreese/oh-my-zsh,jreese/oh-my-zsh,jreese/oh-my-zsh
shell
## Code Before: bindkey '\e[A' up-line-or-search bindkey '\e[B' down-line-or-search # Delete bindkey '[3~' delete-char # Home/End bindkey 'OH' beginning-of-line bindkey 'OF' end-of-line # Ctrl Left/Right (^[[1;5D & ^[[1;5C) bindkey '' backward-word bindkey '' forward-word ## Instruction: Add more b...
bindkey '\e[A' up-line-or-search bindkey '\e[B' down-line-or-search # Delete bindkey '[3~' delete-char # Home/End bindkey 'OH' beginning-of-line bindkey 'OF' end-of-line + bindkey '[1~' beginning-of-line + bindkey '[4~' end-of-line # Ctrl Left/Right (^[[1;5D & ^[[1;5C) bindkey '' b...
4
0.266667
4
0
f2832134f676e6a291987c47f398707f1954bf53
sample-config/server-multi-port.json
sample-config/server-multi-port.json
{ "port_password": { "8387": "foobar", "8388": "barfoo" }, "timeout": 60, "cache_enctable": true }
{ "port_password": { "8387": "foobar", "8388": "barfoo" }, "timeout": 600, }
Delete removed option in multi port config sample.
Delete removed option in multi port config sample.
JSON
apache-2.0
joejang/shadowsocks-go,silentred/shadowsocks-go,dearplain/fast-shadowsocks,sjzhao/shadowsocks-go,heihei1252/shadowsocks-go,cappiewu/shadowsocks-go,aOJzQTORG/shadowsocks-go,shines77/shadowsocks-go,sunclx/shadowsocks-go,mervin0502/shadowsocks-go,boolstudio/shadowsocks-go,xvweirong/shadowsocks-go,bigeagle/shadowsocks-go,b...
json
## Code Before: { "port_password": { "8387": "foobar", "8388": "barfoo" }, "timeout": 60, "cache_enctable": true } ## Instruction: Delete removed option in multi port config sample. ## Code After: { "port_password": { "8387": "foobar", "8388": "barfoo" }, "timeout": 600, }
{ "port_password": { "8387": "foobar", "8388": "barfoo" }, - "timeout": 60, + "timeout": 600, ? + - "cache_enctable": true }
3
0.375
1
2
34ab7f1090d878bf8328f25f0fa4be4e575e7f43
numba/sigutils.py
numba/sigutils.py
from __future__ import print_function, division, absolute_import from numba import types, typing def is_signature(sig): """ Return whether *sig* is a potentially valid signature specification (for user-facing APIs). """ return isinstance(sig, (str, tuple, typing.Signature)) def _parse_signature...
from __future__ import print_function, division, absolute_import from numba import types, typing def is_signature(sig): """ Return whether *sig* is a potentially valid signature specification (for user-facing APIs). """ return isinstance(sig, (str, tuple, typing.Signature)) def _parse_signature...
Update return value order in normalize_signature docstring
Update return value order in normalize_signature docstring [skip ci]
Python
bsd-2-clause
IntelLabs/numba,gmarkall/numba,jriehl/numba,jriehl/numba,seibert/numba,numba/numba,IntelLabs/numba,stonebig/numba,stonebig/numba,stonebig/numba,stonebig/numba,sklam/numba,stuartarchibald/numba,seibert/numba,stuartarchibald/numba,jriehl/numba,seibert/numba,cpcloud/numba,cpcloud/numba,cpcloud/numba,numba/numba,IntelLabs/...
python
## Code Before: from __future__ import print_function, division, absolute_import from numba import types, typing def is_signature(sig): """ Return whether *sig* is a potentially valid signature specification (for user-facing APIs). """ return isinstance(sig, (str, tuple, typing.Signature)) def ...
from __future__ import print_function, division, absolute_import from numba import types, typing def is_signature(sig): """ Return whether *sig* is a potentially valid signature specification (for user-facing APIs). """ return isinstance(sig, (str, tuple, typing.Signature)) ...
2
0.04
1
1
2c736b7885fefbb8622e6b8572ff09a4506b8dd0
Sources/DoubleLayout.swift
Sources/DoubleLayout.swift
// // DoubleLayout.swift // PhotoCollectionView // // Created by luan on 9/2/17. // // import UIKit class DoubleLayout: PhotoLayoutProtocol { var contentSize: CGSize = CGSize.zero var maxPhoto: Int { return 2 } func frame(at index: Int, in photoCollectionView: PhotoCollectionView)...
// // DoubleLayout.swift // PhotoCollectionView // // Created by luan on 9/2/17. // // import UIKit class DoubleLayout: PhotoLayoutProtocol { var contentSize: CGSize = CGSize.zero var itemSize: CGSize = CGSize.zero var maxPhoto: Int { return 2 } func frame(at index: Int, in ph...
Add item size and fix content size for double layout
Add item size and fix content size for double layout
Swift
mit
noblakit01/PhotoCollectionView,noblakit01/PhotoCollectionView
swift
## Code Before: // // DoubleLayout.swift // PhotoCollectionView // // Created by luan on 9/2/17. // // import UIKit class DoubleLayout: PhotoLayoutProtocol { var contentSize: CGSize = CGSize.zero var maxPhoto: Int { return 2 } func frame(at index: Int, in photoCollectionView: Phot...
// // DoubleLayout.swift // PhotoCollectionView // // Created by luan on 9/2/17. // // import UIKit class DoubleLayout: PhotoLayoutProtocol { var contentSize: CGSize = CGSize.zero + var itemSize: CGSize = CGSize.zero var maxPhoto: Int { return 2 } ...
4
0.105263
3
1
ac27e0a945895038e1ab3f97b7595cbaf259512a
henrste/utils/set_sysctl_tcp_mem.sh
henrste/utils/set_sysctl_tcp_mem.sh
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608' sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608' # default on DARASK-X250: # rmem: 4096 87380 6291456 # wmem: 4096 16384 4194304
if [ -f /testbed-is-docker ]; then echo "Don't run this inside Docker" exit 1 fi if [ -n "$1" ]; then max_window=$1 sysctl -w net.ipv4.tcp_rmem="4096 87380 $(($max_window * 1448 * 2))" sysctl -w net.ipv4.tcp_wmem="4096 16384 $(($max_window * 1448 * 3))" else # no argument will reset to "defaul...
Improve script for setting tcp_mem sysctl settings
Improve script for setting tcp_mem sysctl settings
Shell
mit
henrist/aqmt,henrist/aqmt,henrist/aqmt,henrist/aqmt
shell
## Code Before: sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608' sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608' # default on DARASK-X250: # rmem: 4096 87380 6291456 # wmem: 4096 16384 4194304 ## Instruction: Improve script for setting tcp_mem sysctl settings ## Code After: if [ -f /testbed-is-docker ]; ...
- sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608' - sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608' - # default on DARASK-X250: - # rmem: 4096 87380 6291456 - # wmem: 4096 16384 4194304 + if [ -f /testbed-is-docker ]; then + echo "Don't run this inside Docker" + exit 1 + fi + + if [ -n "$1" ]; t...
25
4.166667
20
5
760ce74fca8fa9a640167eabb4af83e31e902500
openedx/core/djangoapps/api_admin/utils.py
openedx/core/djangoapps/api_admin/utils.py
""" Course Discovery API Service. """ from django.conf import settings from edx_rest_api_client.client import EdxRestApiClient from openedx.core.djangoapps.theming import helpers from openedx.core.lib.token_utils import get_id_token from provider.oauth2.models import Client CLIENT_NAME = 'course-discovery' def cour...
""" Course Discovery API Service. """ import datetime from django.conf import settings from edx_rest_api_client.client import EdxRestApiClient import jwt from openedx.core.djangoapps.theming import helpers from provider.oauth2.models import Client from student.models import UserProfile, anonymous_id_for_user CLIENT_...
Use correct JWT audience when connecting to course discovery.
Use correct JWT audience when connecting to course discovery.
Python
agpl-3.0
cecep-edu/edx-platform,ahmedaljazzar/edx-platform,fintech-circle/edx-platform,waheedahmed/edx-platform,proversity-org/edx-platform,pabloborrego93/edx-platform,mbareta/edx-platform-ft,ESOedX/edx-platform,longmen21/edx-platform,pepeportela/edx-platform,chrisndodge/edx-platform,procangroup/edx-platform,ampax/edx-platform,...
python
## Code Before: """ Course Discovery API Service. """ from django.conf import settings from edx_rest_api_client.client import EdxRestApiClient from openedx.core.djangoapps.theming import helpers from openedx.core.lib.token_utils import get_id_token from provider.oauth2.models import Client CLIENT_NAME = 'course-disco...
""" Course Discovery API Service. """ + import datetime + from django.conf import settings + from edx_rest_api_client.client import EdxRestApiClient + import jwt - from edx_rest_api_client.client import EdxRestApiClient from openedx.core.djangoapps.theming import helpers - from openedx.core.lib.token_utils im...
48
2.526316
41
7
eedefe208fcd01e20a4cc86b1838e95f81cbb628
npm/package.json
npm/package.json
{ "name": "parserlib", "version": "@VERSION@", "description": "CSSLint", "author": "Nicholas C. Zakas", "contributors": [ ], "engines": { "node" : ">=0.2.0" }, "directories": { "lib" : "lib" }, "main": "./lib/node-parserlib.js", "licenses":[ { ...
{ "name": "parserlib", "version": "@VERSION@", "description": "CSSLint", "author": "Nicholas C. Zakas", "description": "CSS3 SAX-inspired parser", "keywords": [ "parser", "css", "css3", "sax", "style", "stylesheet" ], "contributors": [ ], "engines": { "node" : ">=0.2.0" }...
Test hooks & keyword data for npm
Test hooks & keyword data for npm
JSON
mit
malept/parser-lib,medikoo/parser-lib,ash1982ok/parser-lib,cscott/parser-lib,malept/parser-lib,ovanderzee/parser-lib,medikoo/parser-lib,ideadapt/parser-lib,ovanderzee/parser-lib,cscott/parser-lib,ash1982ok/parser-lib,ideadapt/parser-lib
json
## Code Before: { "name": "parserlib", "version": "@VERSION@", "description": "CSSLint", "author": "Nicholas C. Zakas", "contributors": [ ], "engines": { "node" : ">=0.2.0" }, "directories": { "lib" : "lib" }, "main": "./lib/node-parserlib.js", "licenses":...
{ "name": "parserlib", "version": "@VERSION@", "description": "CSSLint", "author": "Nicholas C. Zakas", + "description": "CSS3 SAX-inspired parser", + "keywords": [ "parser", "css", "css3", "sax", "style", "stylesheet" ], "contributors": [ ], "engines": { "n...
6
0.24
6
0
8aff666c35c61b49ed6b04d3576bfeb4b7224874
index.js
index.js
const Koa = require('koa'); const fetch = require('node-fetch'); const app = new Koa(); const port = process.env.PORT || 3000; app.use(async (ctx, next) => { var response = await fetch('http://inspirobot.me/api?generate=true'); var url = await response.text(); ctx.body = url; }); if (!module.pa...
const Koa = require('koa'); const fetch = require('node-fetch'); const app = new Koa(); const port = process.env.PORT || 3000; app.use(async (ctx, next) => { const response = await fetch('http://inspirobot.me/api?generate=true'); const url = await response.text(); const result = { parse: ...
Format response to slack json
Format response to slack json
JavaScript
mit
Shtian/inspireme
javascript
## Code Before: const Koa = require('koa'); const fetch = require('node-fetch'); const app = new Koa(); const port = process.env.PORT || 3000; app.use(async (ctx, next) => { var response = await fetch('http://inspirobot.me/api?generate=true'); var url = await response.text(); ctx.body = url; }); if (!modu...
const Koa = require('koa'); const fetch = require('node-fetch'); const app = new Koa(); const port = process.env.PORT || 3000; app.use(async (ctx, next) => { - var response = await fetch('http://inspirobot.me/api?generate=true'); ? ^^^ + const response = await fetch('http://inspirobot.me/api?g...
15
1.25
12
3
fb67dd5793ba6163e66f325fa3adcb12c4fc8038
gulpfile.js
gulpfile.js
var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; // composite gulp tasks gulp.task('default', ['test']); gulp.task('dist', ['']); gulp.task('test', ['lint', 'mocha']); // gulp.task('db:setup', ['db:ensure-created', 'db:migrate'...
var Stex = require("stex"); var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; paths.root = __dirname; //HACK: can't think of a better way to expose the app root prior to stex init gulp.task('default', ['test']); gulp.task('dist', ...
Move app/db tasks into stex-dev
Move app/db tasks into stex-dev
JavaScript
isc
Payshare/stellar-wallet,stellar/stellar-wallet,stellar/stellar-wallet,Payshare/stellar-wallet
javascript
## Code Before: var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; // composite gulp tasks gulp.task('default', ['test']); gulp.task('dist', ['']); gulp.task('test', ['lint', 'mocha']); // gulp.task('db:setup', ['db:ensure-create...
+ var Stex = require("stex"); var stexDev = require("stex-dev"); var gulp = stexDev.gulp(); var plugins = stexDev.gulpPlugins(); var paths = stexDev.paths; + paths.root = __dirname; //HACK: can't think of a better way to expose the app root prior to stex init - // composite gulp tasks gulp.task(...
48
0.842105
3
45
de3aa8fc5e6b525f06794086900331ece437b08a
app/controllers/admin/events_controller.rb
app/controllers/admin/events_controller.rb
class Admin::EventsController < Admin::BaseController before_filter :authenticate_user! skip_authorization_check # XXX because I'm using the BaseController for auth def index @events = Event.all @num_competitors = Registrant.where({:competitor => true}).count @num_non_competitors = Registrant.where({...
class Admin::EventsController < Admin::BaseController before_filter :authenticate_user! load_and_authorize_resource def index @num_competitors = Registrant.where({:competitor => true}).count @num_non_competitors = Registrant.where({:competitor => false}).count @num_registrants = @num_competitors + @n...
Fix authorization check on the /admin/events page
Fix authorization check on the /admin/events page
Ruby
mit
rdunlop/unicycling-registration,rdunlop/unicycling-registration,scotthue/unicycling-registration,rdunlop/unicycling-registration,scotthue/unicycling-registration,scotthue/unicycling-registration,rdunlop/unicycling-registration
ruby
## Code Before: class Admin::EventsController < Admin::BaseController before_filter :authenticate_user! skip_authorization_check # XXX because I'm using the BaseController for auth def index @events = Event.all @num_competitors = Registrant.where({:competitor => true}).count @num_non_competitors = Re...
class Admin::EventsController < Admin::BaseController before_filter :authenticate_user! - skip_authorization_check # XXX because I'm using the BaseController for auth + load_and_authorize_resource def index - @events = Event.all @num_competitors = Registrant.where({:competitor => true}).count...
4
0.266667
1
3
cc6ebf12d4ad415a61363f84fd84364591224760
docs/vault.md
docs/vault.md
Vault is a tool for managing secrets, such as API keys and other credentials. In the context of builder, these credentials are mostly necessary to access or modify infrastructure. ## User scenario builder assumes a logged-in Vault client, probably running on the master server. Run the following command to log in: ...
Vault is a tool for managing secrets, such as API keys and other credentials. In the context of builder, these credentials are mostly necessary to access or modify infrastructure. ## User scenario builder assumes a logged-in Vault client, probably running on the master server. Run the following command to log in: ...
Store commands for reading and writing secrets from Vault
Store commands for reading and writing secrets from Vault
Markdown
mit
elifesciences/builder,elifesciences/builder
markdown
## Code Before: Vault is a tool for managing secrets, such as API keys and other credentials. In the context of builder, these credentials are mostly necessary to access or modify infrastructure. ## User scenario builder assumes a logged-in Vault client, probably running on the master server. Run the following comm...
Vault is a tool for managing secrets, such as API keys and other credentials. In the context of builder, these credentials are mostly necessary to access or modify infrastructure. ## User scenario builder assumes a logged-in Vault client, probably running on the master server. Run the following comm...
19
0.558824
19
0
34ea5331f8e05dacf356096dfc1b63682fa78654
Wikipedia/Code/BITHockeyManager+WMFExtensions.h
Wikipedia/Code/BITHockeyManager+WMFExtensions.h
@interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate> /** * Configure and startup in one line. * This will call the methods below as part of the configuration process. * This method will use the current bundle id of the app */ - (void)wmf_setupAndStart; /** * Configure the alert to be displ...
@import HockeySDK; @interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate> /** * Configure and startup in one line. * This will call the methods below as part of the configuration process. * This method will use the current bundle id of the app */ - (void)wmf_setupAndStart; /** * Configure th...
Revert "use old import syntax for HockeySDK"
Revert "use old import syntax for HockeySDK" This reverts commit 0babdd70b3ab330f032790521002f2e171fcf3e6.
C
mit
wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,j...
c
## Code Before: @interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate> /** * Configure and startup in one line. * This will call the methods below as part of the configuration process. * This method will use the current bundle id of the app */ - (void)wmf_setupAndStart; /** * Configure the a...
+ @import HockeySDK; @interface BITHockeyManager (WMFExtensions) <BITHockeyManagerDelegate> /** * Configure and startup in one line. * This will call the methods below as part of the configuration process. * This method will use the current bundle id of the app */ - (void)wmf_setupAndStart; ...
1
0.0625
1
0
14ff798a0795fa39ee762fedbd832f19463a2190
assets/desktop/common/noty/layouts.js
assets/desktop/common/noty/layouts.js
/*global window, jQuery*/ ;(function($) { 'use strict'; $.noty.layouts.progress = { name: 'progress', options: {}, // overrides options container: { object: '<div id="notice-progress-container" />', selector: 'div#notice-progress-container', style: $.noop, }, parent: {...
/*global window, jQuery*/ ;(function($) { 'use strict'; $.noty.layouts.progress = { name: 'progress', options: {}, // overrides options container: { object: '<div id="notice-progress-container" />', selector: 'div#notice-progress-container', style: $.noop, }, parent: {...
Revert "Cleanup notification notice layout"
Revert "Cleanup notification notice layout" This reverts commit d1f46897609f900bd1e8f79745751bc3789e8ef8.
JavaScript
mit
nodeca/nodeca.core,nodeca/nodeca.core
javascript
## Code Before: /*global window, jQuery*/ ;(function($) { 'use strict'; $.noty.layouts.progress = { name: 'progress', options: {}, // overrides options container: { object: '<div id="notice-progress-container" />', selector: 'div#notice-progress-container', style: $.noop, ...
/*global window, jQuery*/ ;(function($) { 'use strict'; $.noty.layouts.progress = { name: 'progress', options: {}, // overrides options container: { object: '<div id="notice-progress-container" />', selector: 'div#notice-progress-container', style: ...
30
0.612245
24
6
97cd7a8adb9b9a675a2f7a470d33d0ee754d6ce0
README.rst
README.rst
osbridge-volunteer ================== Open Source Bridge volunteer management app
osbridge-volunteer ================== Open Source Bridge volunteer management app Install Requirements ==================== Create a virtualenvironment based on Python 3.4 virtualenv --python=/usr/bin/python3.4 virtualenv or virtualenv --python=/usr/bin/python3.4 virtualenv
Save 3.4 installation command for the virtualenv
Save 3.4 installation command for the virtualenv
reStructuredText
mit
ChrisFreeman/osbridge-volunteer,ChrisFreeman/osbridge-volunteer,ChrisFreeman/osbridge-volunteer
restructuredtext
## Code Before: osbridge-volunteer ================== Open Source Bridge volunteer management app ## Instruction: Save 3.4 installation command for the virtualenv ## Code After: osbridge-volunteer ================== Open Source Bridge volunteer management app Install Requirements ==================== Create a vir...
osbridge-volunteer ================== Open Source Bridge volunteer management app + + Install Requirements + ==================== + + Create a virtualenvironment based on Python 3.4 + virtualenv --python=/usr/bin/python3.4 virtualenv + or + virtualenv --python=/usr/bin/python3.4 virtualenv
8
2
8
0
ee8395b757f7f30d2967eff1699a542dd4e72fb0
fizzbuzz/clojure/fizzbuzz/test/fizzbuzz/core_test.clj
fizzbuzz/clojure/fizzbuzz/test/fizzbuzz/core_test.clj
(ns fizzbuzz.core-test (:require [clojure.test :refer :all] [fizzbuzz.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
(ns fizzbuzz.core-test (:require [clojure.test :refer :all] [fizzbuzz.core :refer :all])) (deftest fizzbuzz-val-test (testing "Returns fizz for multiple of 3" (is (= "fizz" (fizzbuzz-val 9)))) (testing "Returns buzz for multiple of 5" (is (= "buzz" (fizzbuzz-val 10)))) (testing "Returns fiz...
Update the clojure fizzbuzz tests.
Update the clojure fizzbuzz tests.
Clojure
mit
jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world
clojure
## Code Before: (ns fizzbuzz.core-test (:require [clojure.test :refer :all] [fizzbuzz.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1)))) ## Instruction: Update the clojure fizzbuzz tests. ## Code After: (ns fizzbuzz.core-test (:require [clojure.test :refer :all] ...
(ns fizzbuzz.core-test (:require [clojure.test :refer :all] [fizzbuzz.core :refer :all])) + (deftest fizzbuzz-val-test + (testing "Returns fizz for multiple of 3" + (is (= "fizz" (fizzbuzz-val 9)))) + (testing "Returns buzz for multiple of 5" + (is (= "buzz" (fizzbuzz-val 10)))) + (...
21
3
18
3
20036b79e7730f76e77e5ad989bc4e0084bf49c1
.travis.yml
.travis.yml
sudo: false dist: xenial language: python cache: pip python: - "2.7" - "3.5" - "3.5" - "3.6" - "3.7" - "nightly" install: - pip install -r dev-requirements.txt - pip install -e . - pip freeze script: - coverage erase - coverage run --source pykwalify -p -m py.test -v - py.test - python set...
sudo: false dist: xenial language: python cache: pip python: - "2.7" - "3.5" - "3.5" - "3.6" - "3.7" - "nightly" install: - pip install -r dev-requirements.txt - pip install -e . - pip freeze script: - coverage erase - coverage run --source pykwalify -p -m py.test -v - py.test - python set...
Add envrionment variables for testing pycodestyle
Add envrionment variables for testing pycodestyle
YAML
mit
grokzen/pykwalify
yaml
## Code Before: sudo: false dist: xenial language: python cache: pip python: - "2.7" - "3.5" - "3.5" - "3.6" - "3.7" - "nightly" install: - pip install -r dev-requirements.txt - pip install -e . - pip freeze script: - coverage erase - coverage run --source pykwalify -p -m py.test -v - py.tes...
sudo: false dist: xenial language: python cache: pip python: - "2.7" - "3.5" - "3.5" - "3.6" - "3.7" - "nightly" install: - pip install -r dev-requirements.txt - pip install -e . - pip freeze script: - coverage erase - coverage run --source pykwalify -...
4
0.125
4
0
bf7341afca3ac5b9418ad2e73d05bed14ddd9293
README.md
README.md
[![Build Status](https://travis-ci.org/cparram/ap-networking-proxy-cache.svg?branch=staging)](https://travis-ci.org/cparram/ap-networking-proxy-cache) # ap-networking-proxy-cache Projecto with Academic Purpose about Proxy cache implementation. ## Usage ### Build * `$ ./gradlew buildClientJar`: Creates a jar for clien...
[![Build Status](https://travis-ci.org/cparram/ap-networking-proxy-cache.svg?branch=staging)](https://travis-ci.org/cparram/ap-networking-proxy-cache) # ap-networking-proxy-cache Projecto with Academic Purpose about Proxy cache implementation. ## Usage ### Build * `$ ./gradlew buildClientJar`: Creates a jar for clien...
Add a new assumption on readme
Add a new assumption on readme
Markdown
mit
cparram/ap-networking-proxy-cache,cparram/ap-networking-proxy-cache,cparram/ap-networking-proxy-cache
markdown
## Code Before: [![Build Status](https://travis-ci.org/cparram/ap-networking-proxy-cache.svg?branch=staging)](https://travis-ci.org/cparram/ap-networking-proxy-cache) # ap-networking-proxy-cache Projecto with Academic Purpose about Proxy cache implementation. ## Usage ### Build * `$ ./gradlew buildClientJar`: Creates...
[![Build Status](https://travis-ci.org/cparram/ap-networking-proxy-cache.svg?branch=staging)](https://travis-ci.org/cparram/ap-networking-proxy-cache) # ap-networking-proxy-cache Projecto with Academic Purpose about Proxy cache implementation. ## Usage ### Build * `$ ./gradlew buildClientJar`: Creates...
1
0.032258
1
0
0a09554a503394fd1fe8555100049f59e6aa7ddb
src/client/react/user/components/Results/HideResults.js
src/client/react/user/components/Results/HideResults.js
import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { NonIdealState, Button, Intent } from '@blueprintjs/core'; import LoadingSpinner from '../../../components/LoadingSpinner'; @autobind class HideResults extends React.Component { refreshPage() { location.reload(); } render() {...
import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { NonIdealState, Button, Intent } from '@blueprintjs/core'; import LoadingSpinner from '../../../components/LoadingSpinner'; @autobind class HideResults extends React.Component { refreshPage() { location.reload(); } render() {...
Improve pending results screen text
[FIX] Improve pending results screen text
JavaScript
mit
bwyap/ptc-amazing-g-race,bwyap/ptc-amazing-g-race
javascript
## Code Before: import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { NonIdealState, Button, Intent } from '@blueprintjs/core'; import LoadingSpinner from '../../../components/LoadingSpinner'; @autobind class HideResults extends React.Component { refreshPage() { location.reload();...
import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { NonIdealState, Button, Intent } from '@blueprintjs/core'; import LoadingSpinner from '../../../components/LoadingSpinner'; @autobind class HideResults extends React.Component { refreshPage() { location.reloa...
3
0.111111
2
1
b36dabefa3e70c07e622fa4dcc54bdc7c1eca59f
app/src/main/res/layout/adapter_videos.xml
app/src/main/res/layout/adapter_videos.xml
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="240dp" android:layout_height="180dp"> <ImageView android:id="@+id/image" android...
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="240dp" android:layout_height="180dp"> <ImageView android:id="@+id/image" android...
Change layout for Adapter Videos
[UPDATE] Change layout for Adapter Videos
XML
apache-2.0
Skalaw/Video-Training-App
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="240dp" android:layout_height="180dp"> <ImageView android:id="@+id/image"...
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="240dp" android:layout_height="180dp"> <ImageView android:id="@+id/image"...
41
1.322581
25
16
55336f22bd7d2b406bc3846acc91d622c7b3ba03
src/components/pool/resource-index.js
src/components/pool/resource-index.js
import lunr from 'lunr'; export default lunr(function index() { this.field('name', { boost: 100 }); this.field('location', { boost: 10 }); this.field('website'); this.ref('key'); });
import elasticlunr from 'elasticlunr'; elasticlunr.clearStopWords(); export const index = elasticlunr(function index() { this.addField('name'); this.addField('location'); this.addField('website'); this.setRef('key'); }); export const booster = { fields: { name: { boost: 3 }, location: { boost: 2 },...
Update index from lunr to elasticlunr
Update index from lunr to elasticlunr
JavaScript
mit
tuelsch/poolparty,tuelsch/poolparty
javascript
## Code Before: import lunr from 'lunr'; export default lunr(function index() { this.field('name', { boost: 100 }); this.field('location', { boost: 10 }); this.field('website'); this.ref('key'); }); ## Instruction: Update index from lunr to elasticlunr ## Code After: import elasticlunr from 'elasticlunr'; ...
- import lunr from 'lunr'; + import elasticlunr from 'elasticlunr'; ? +++++++ +++++++ + elasticlunr.clearStopWords(); + - export default lunr(function index() { ? ^ ^^ ^ + export const index = elasticlunr(function index() { ? ++++++++ ^^^^^^ ^ ^^ - this.field('name', { boost: ...
23
2.875
17
6
4c3ed3ca379257ce8bacfffa69978669cb80b1e7
lib/letter_opener.rb
lib/letter_opener.rb
require "fileutils" require "digest/sha1" require "cgi" require "letter_opener/message" require "letter_opener/delivery_method" require "letter_opener/railtie" if defined? Rails
require "fileutils" require "digest/sha1" require "cgi" require "launchy" require "letter_opener/message" require "letter_opener/delivery_method" require "letter_opener/railtie" if defined? Rails
Add a require on launchy
Add a require on launchy
Ruby
mit
ryanb/letter_opener,fheisler/letter_opener,e-accent/letter_opener,arxpoetica/letter_opener_single_tab,arxpoetica/letter_opener_single_tab,e-accent/letter_opener,ryanb/letter_opener,fheisler/letter_opener
ruby
## Code Before: require "fileutils" require "digest/sha1" require "cgi" require "letter_opener/message" require "letter_opener/delivery_method" require "letter_opener/railtie" if defined? Rails ## Instruction: Add a require on launchy ## Code After: require "fileutils" require "digest/sha1" require "cgi" require "la...
require "fileutils" require "digest/sha1" require "cgi" + require "launchy" require "letter_opener/message" require "letter_opener/delivery_method" require "letter_opener/railtie" if defined? Rails
1
0.142857
1
0
34507b5e3631f67b38f5c22902d995053437302a
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" require "openssl/ssl/context" require "./mappings/*" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" API_BASE = "https://discordapp.com/api/v6" d...
require "http/client" require "openssl/ssl/context" require "./mappings/*" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" API_BASE = "https://discordapp.com/api/v6" d...
Add a method for the get channel endpoint
Add a method for the get channel endpoint
Crystal
mit
meew0/discordcr
crystal
## Code Before: require "http/client" require "openssl/ssl/context" require "./mappings/*" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" API_BASE = "https://discordapp.co...
require "http/client" require "openssl/ssl/context" require "./mappings/*" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" API_BASE = "https://discord...
12
0.272727
12
0
6fa003f5f67b3055180f66775eef1384d6de6534
supervisord-monitor/README.md
supervisord-monitor/README.md
https://github.com/mlazarov/supervisord-monitor # repo https://github.com/banjocat/docker-devops-examples/tree/master/supervisord-monitor ## Required Environmental variables | Variable | Syntax |What it does| |----------|--------|------| |SERVERS|server1=127.0.0.1,server2=localhost| List of servers by display_name=url...
https://github.com/mlazarov/supervisord-monitor # repo https://github.com/banjocat/docker-devops-examples/tree/master/supervisord-monitor ## Required Environmental variables | Variable | Syntax |What it does| |----------|--------|------| |SERVERS|server1=127.0.0.1,server2=localhost| List of servers by display_name=url...
Update readme with better example
Update readme with better example
Markdown
mit
banjocat/docker-devops-examples,banjocat/docker-devops-examples,banjocat/docker-devops-examples
markdown
## Code Before: https://github.com/mlazarov/supervisord-monitor # repo https://github.com/banjocat/docker-devops-examples/tree/master/supervisord-monitor ## Required Environmental variables | Variable | Syntax |What it does| |----------|--------|------| |SERVERS|server1=127.0.0.1,server2=localhost| List of servers by ...
ERROR: type should be string, got " https://github.com/mlazarov/supervisord-monitor\n # repo\n https://github.com/banjocat/docker-devops-examples/tree/master/supervisord-monitor\n \n ## Required Environmental variables\n | Variable | Syntax |What it does|\n |----------|--------|------|\n |SERVERS|server1=127.0.0.1,server2=localhost| List of servers by display_name=url|\n |USERNAME|admin|username to login remove supervisord|\n |PASSWORD|admin|password to login\n \n ## Optional Environmental variables\n | Variable | Default |What it does|\n |----------|--------|------|\n |PORT| 9001 | Port to access supervisord|\n \n \n \n ## Example\n \n- docker run -e URL=www.google.com banjocat/wrk\n+ docker run -e SERVERS=\"server1=localhost\",USERNAME=admin,PASSWORD=admin banjocat/supervisord-monitor"
2
0.095238
1
1
f590db8181f2a0bc2ff0c634b1e453dd052ea4d9
Casks/font-anonymous-pro.rb
Casks/font-anonymous-pro.rb
class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha1 '87651de93312fdd3f27e50741d2a0630a41ec30d' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf' font 'AnonymousPro-1.0...
class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha256 '86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf...
Update Anonymous Pro to sha256 checksums
Update Anonymous Pro to sha256 checksums
Ruby
bsd-2-clause
bkudria/homebrew-fonts,andrewsardone/homebrew-fonts,bkudria/homebrew-fonts,andrewsardone/homebrew-fonts,sscotth/homebrew-fonts,mtakayuki/homebrew-fonts,herblover/homebrew-fonts,mtakayuki/homebrew-fonts,zorosteven/homebrew-fonts,elmariofredo/homebrew-fonts,kkung/homebrew-fonts,victorpopkov/homebrew-fonts,caskroom/homebr...
ruby
## Code Before: class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha1 '87651de93312fdd3f27e50741d2a0630a41ec30d' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf' font '...
class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' - sha1 '87651de93312fdd3f27e50741d2a0630a41ec30d' + sha256 '86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f6...
2
0.2
1
1
ef42bbd15d3bba0571810451ed2d6062218a2f29
module/User/src/User/Form/UserForm.php
module/User/src/User/Form/UserForm.php
<?php namespace User\Form; use Zend\Form\Form; class UserForm extends Form { public function __construct($name = null) { parent::__construct('user'); $this->setAttribute('method', 'post'); $this->add(array( 'name' => 'id', 'type' => 'Hidden', )); ...
<?php namespace User\Form; use Zend\Form\Form; class UserForm extends Form { public function __construct($name = null) { parent::__construct('user'); $this->setAttribute('method', 'post'); $this->add(array( 'name' => 'id', 'type' => 'Hidden', )); ...
Add field `confirm_password` and `remember_me` to form
Add field `confirm_password` and `remember_me` to form
PHP
bsd-3-clause
BichPhuongUITTeam/shop-ban-do-go,BichPhuongUITTeam/shop-ban-do-go
php
## Code Before: <?php namespace User\Form; use Zend\Form\Form; class UserForm extends Form { public function __construct($name = null) { parent::__construct('user'); $this->setAttribute('method', 'post'); $this->add(array( 'name' => 'id', 'type' => 'Hidden', ...
<?php namespace User\Form; use Zend\Form\Form; class UserForm extends Form { public function __construct($name = null) { parent::__construct('user'); $this->setAttribute('method', 'post'); $this->add(array( 'name' => 'id', 'type...
13
0.213115
13
0
91fe307bd362b02e88c59e5d7543e792d4cc447a
system/aliases.zsh
system/aliases.zsh
alias grep="grep --color=auto" alias pgrep='ps aux | grep -v grep | grep' alias ss="open -a 'screen sharing'" alias ls='ls -GF' alias rm='nocorrect rm' alias rvmnew='rvm --create --ruby-version' alias rvmc='rvm current' # ======================================================= # Override the basic aliases if we have G...
alias grep="grep --color=auto" alias pgrep='ps aux | grep -v grep | grep' alias ss="open -a 'screen sharing'" alias ls='ls -GF' alias rm='nocorrect rm' alias rvmnew='rvm --create --ruby-version' alias rvmc='rvm current' alias rvmempty='rvm --force gemset empty' # =======================================================...
Add alias rvmempty to flush a gemset.
Add alias rvmempty to flush a gemset.
Shell
mit
dpilone/dotfiles,dpilone/dotfiles
shell
## Code Before: alias grep="grep --color=auto" alias pgrep='ps aux | grep -v grep | grep' alias ss="open -a 'screen sharing'" alias ls='ls -GF' alias rm='nocorrect rm' alias rvmnew='rvm --create --ruby-version' alias rvmc='rvm current' # ======================================================= # Override the basic alia...
alias grep="grep --color=auto" alias pgrep='ps aux | grep -v grep | grep' alias ss="open -a 'screen sharing'" alias ls='ls -GF' alias rm='nocorrect rm' alias rvmnew='rvm --create --ruby-version' alias rvmc='rvm current' + alias rvmempty='rvm --force gemset empty' # ===================================...
1
0.027027
1
0
15e5ba4b535b4d9f0a83fe00cb5775d86c0301ff
entity-services/src/test/resources/model-units/instance-0.0.2.xml
entity-services/src/test/resources/model-units/instance-0.0.2.xml
<?xml version="1.0"?> <x xmlns:es="http://marklogic.com/entity-services"> <es:instance> <ETOne> <pk>http://example.org/some-iri/1</pk> <p1>1</p1> <p2>3</p2> <p3 datatype="array">32</p3> <p4 datatype="array">333</p4> <p5>12</p5> <p6>4</p6> </ETOne> </es:instance> <es:instance> <ET...
<x xmlns:es="http://marklogic.com/entity-services"> <es:instance> <ETOne> <pk>http://example.org/some-iri/1</pk> <p1>1</p1> <p2>3</p2> <p3 datatype="array">32</p3> <p4 datatype="array">333</p4> <p5>12</p5> <p6>4</p6> </ETOne> </es:instance> <es:instance> <ETTw...
Fix key in version translator
Fix key in version translator
XML
lgpl-2.1
bsrikan/entity-services,bsrikan/entity-services,rashiatmarklogic/entity-services,grechaw/entity-services,grechaw/entity-services
xml
## Code Before: <?xml version="1.0"?> <x xmlns:es="http://marklogic.com/entity-services"> <es:instance> <ETOne> <pk>http://example.org/some-iri/1</pk> <p1>1</p1> <p2>3</p2> <p3 datatype="array">32</p3> <p4 datatype="array">333</p4> <p5>12</p5> <p6>4</p6> </ETOne> </es:instance> <es...
- <?xml version="1.0"?> <x xmlns:es="http://marklogic.com/entity-services"> <es:instance> - <ETOne> + <ETOne> ? ++ - <pk>http://example.org/some-iri/1</pk> + <pk>http://example.org/some-iri/1</pk> ? ++ - <p1>1</p1> + <p1>1</p1> ? ++ - <p2>3</p2> + <p2>3</p2> ? ++ - <p3 ...
46
1.533333
23
23
2c2004859bfb38fde111d3a5f1c0d4df3d501c07
x/validator/types/proposed_disable_validator.go
x/validator/types/proposed_disable_validator.go
package types import sdk "github.com/cosmos/cosmos-sdk/types" func (disabledValidator ProposedDisableValidator) HasApprovalFrom(address sdk.AccAddress) bool { addrStr := address.String() for _, approval := range disabledValidator.Approvals { if approval.Address == addrStr { return true } } return false }
package types import sdk "github.com/cosmos/cosmos-sdk/types" func (disabledValidator ProposedDisableValidator) HasApprovalFrom(address sdk.AccAddress) bool { addrStr := address.String() for _, approval := range disabledValidator.Approvals { if approval.Address == addrStr { return true } } return false } ...
Add function for checking has reject disable from some account
Add function for checking has reject disable from some account
Go
apache-2.0
zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger
go
## Code Before: package types import sdk "github.com/cosmos/cosmos-sdk/types" func (disabledValidator ProposedDisableValidator) HasApprovalFrom(address sdk.AccAddress) bool { addrStr := address.String() for _, approval := range disabledValidator.Approvals { if approval.Address == addrStr { return true } } ...
package types import sdk "github.com/cosmos/cosmos-sdk/types" func (disabledValidator ProposedDisableValidator) HasApprovalFrom(address sdk.AccAddress) bool { addrStr := address.String() for _, approval := range disabledValidator.Approvals { if approval.Address == addrStr { return true } ...
11
0.785714
11
0
1de238dc7bf8902f1d210df841eed6426b0928b5
bench_map_key_lookup_string_from_bytes_test.go
bench_map_key_lookup_string_from_bytes_test.go
package main import ( "fmt" "testing" ) func BenchmarkMapLookupKeyStringFromBytes(b *testing.B) { entries := 4096 lookup := make(map[string]int, entries) for i := 0; i < entries; i++ { lookup[fmt.Sprintf("foo.%d", i)] = -1 } find := []byte("foo.0") b.ResetTimer() for i := 0; i < b.N; i++ { // lookup[s...
package main /* Results -- $ go test -v -bench BenchmarkMap -benchmem testing: warning: no tests to run BenchmarkMapLookupKeyStringFromBytes-4 100000000 19.6 ns/op 0 B/op 0 allocs/op BenchmarkMapSetKeyStringFromBytes-4 20000000 73.8 ns/op ...
Add results for BenchmarkMapLookupKeyStringFromBytes and BenchmarkMapSetKeyStringFromBytes
Add results for BenchmarkMapLookupKeyStringFromBytes and BenchmarkMapSetKeyStringFromBytes
Go
mit
robskillington/benchmarks-go
go
## Code Before: package main import ( "fmt" "testing" ) func BenchmarkMapLookupKeyStringFromBytes(b *testing.B) { entries := 4096 lookup := make(map[string]int, entries) for i := 0; i < entries; i++ { lookup[fmt.Sprintf("foo.%d", i)] = -1 } find := []byte("foo.0") b.ResetTimer() for i := 0; i < b.N; i++...
package main + + /* + Results + -- + $ go test -v -bench BenchmarkMap -benchmem + testing: warning: no tests to run + BenchmarkMapLookupKeyStringFromBytes-4 100000000 19.6 ns/op 0 B/op 0 allocs/op + BenchmarkMapSetKeyStringFromBytes-4 20000000 73...
12
0.292683
11
1
2d87d34d97d92ee8cfa6e731ac60518cde180959
src/Accordion/accordion.js
src/Accordion/accordion.js
// @flow import React, { Component, type Node } from 'react'; import { Provider } from 'mobx-react'; import { createAccordionStore } from '../accordionStore/accordionStore'; type AccordionProps = { accordion: boolean, children: Node, // activeItems: Array<string | number>, className: string, onCha...
// @flow import React, { Component, type Node } from 'react'; import { Provider } from 'mobx-react'; import { createAccordionStore } from '../accordionStore/accordionStore'; type AccordionProps = { accordion: boolean, children: Node, // activeItems: Array<string | number>, className: string, onCha...
Set defaultProp for Accordion's children
Set defaultProp for Accordion's children
JavaScript
mit
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
javascript
## Code Before: // @flow import React, { Component, type Node } from 'react'; import { Provider } from 'mobx-react'; import { createAccordionStore } from '../accordionStore/accordionStore'; type AccordionProps = { accordion: boolean, children: Node, // activeItems: Array<string | number>, className: s...
// @flow import React, { Component, type Node } from 'react'; import { Provider } from 'mobx-react'; import { createAccordionStore } from '../accordionStore/accordionStore'; type AccordionProps = { accordion: boolean, children: Node, // activeItems: Array<string | number>, classN...
1
0.02381
1
0
f3337c870645cd2c48f2a22da5590f9ad281982d
src/test-common/java/org/thymeleaf/engine/domselector/DOMSelectorTest.java
src/test-common/java/org/thymeleaf/engine/domselector/DOMSelectorTest.java
/* * ============================================================================= * * Copyright (c) 2011-2013, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
/* * ============================================================================= * * Copyright (c) 2011-2013, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
Remove unneeded specific test method
Remove unneeded specific test method
Java
apache-2.0
thymeleaf/thymeleaf-tests,thymeleaf/thymeleaf-tests,thymeleaf/thymeleaf-tests
java
## Code Before: /* * ============================================================================= * * Copyright (c) 2011-2013, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
/* * ============================================================================= * * Copyright (c) 2011-2013, The THYMELEAF team (http://www.thymeleaf.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
10
0.172414
0
10
9c6530203d08853c8a5f0061f9691b335c012e3d
.travis.yml
.travis.yml
language: node_js node_js: - "0.12" script: - "node tools/build.js -t node" - "npm test" sudo: false # Use container-based architecture
language: node_js node_js: - "0.12" - "iojs" script: - "node tools/build.js -t node" - "npm test" sudo: false # Use container-based architecture
Add iojs to engines being tested
Add iojs to engines being tested
YAML
bsd-3-clause
highlightjs/highlight.js,delebash/highlight.js,ysbaddaden/highlight.js,martijnrusschen/highlight.js,abhishekgahlot/highlight.js,zachaysan/highlight.js,Delermando/highlight.js,axter/highlight.js,snegovick/highlight.js,adam-lynch/highlight.js,lizhil/highlight.js,MakeNowJust/highlight.js,jean/highlight.js,ehornbostel/high...
yaml
## Code Before: language: node_js node_js: - "0.12" script: - "node tools/build.js -t node" - "npm test" sudo: false # Use container-based architecture ## Instruction: Add iojs to engines being tested ## Code After: language: node_js node_js: - "0.12" - "iojs" script: - "node tools/build.js -t node" -...
language: node_js node_js: - "0.12" + - "iojs" script: - "node tools/build.js -t node" - "npm test" sudo: false # Use container-based architecture
1
0.125
1
0
6bf80a675bdce13f44a8d4bb56b12af065ec14d2
Source/View/Connecting/VConnectingPinListCell.swift
Source/View/Connecting/VConnectingPinListCell.swift
import UIKit class VConnectingPinListCell:UICollectionViewCell { override init(frame:CGRect) { super.init(frame:frame) } required init?(coder:NSCoder) { return nil } }
import UIKit class VConnectingPinListCell:UICollectionViewCell { private let kCornerRadius:CGFloat = 6 override init(frame:CGRect) { super.init(frame:frame) isUserInteractionEnabled = false let background:UIView = UIView() background.isUserInteractionEnabled = ...
Add background view to cell
Add background view to cell
Swift
mit
devpunk/velvet_room,devpunk/velvet_room
swift
## Code Before: import UIKit class VConnectingPinListCell:UICollectionViewCell { override init(frame:CGRect) { super.init(frame:frame) } required init?(coder:NSCoder) { return nil } } ## Instruction: Add background view to cell ## Code After: import UIKit class VConnecti...
import UIKit class VConnectingPinListCell:UICollectionViewCell { + private let kCornerRadius:CGFloat = 6 + override init(frame:CGRect) { super.init(frame:frame) + isUserInteractionEnabled = false + + let background:UIView = UIView() + background.i...
15
1.071429
15
0
491072136ab5709a8dc48a34af2e91c320c0b772
.travis.yml
.travis.yml
language: python sudo: false cache: - pip python: - "2.7" - "3.5" env: - DJANGO_VERSION=1.10 - DJANGO_VERSION=1.11rc1 install: - pip install -r requirements.txt - pip uninstall -y Django - pip install -q Django==$DJANGO_VERSION before_script: - psql -c 'create database access_mo_django;' -U postgre...
language: python sudo: false cache: - pip python: - "2.7" - "3.5" env: - DJANGO_VERSION=1.10 DATABASE_SETTINGS='settings_local.py' - DJANGO_VERSION=1.11rc1 DATABASE_SETTINGS='settings_local.py' install: - pip install -r requirements.txt - pip uninstall -y Django - pip install -q Django==$DJANGO_VERSIO...
Add database settings to ci tests
Add database settings to ci tests
YAML
bsd-2-clause
access-missouri/am-django-project,access-missouri/am-django-project,access-missouri/am-django-project,access-missouri/am-django-project
yaml
## Code Before: language: python sudo: false cache: - pip python: - "2.7" - "3.5" env: - DJANGO_VERSION=1.10 - DJANGO_VERSION=1.11rc1 install: - pip install -r requirements.txt - pip uninstall -y Django - pip install -q Django==$DJANGO_VERSION before_script: - psql -c 'create database access_mo_dja...
language: python sudo: false cache: - pip python: - "2.7" - "3.5" env: - - DJANGO_VERSION=1.10 - - DJANGO_VERSION=1.11rc1 + - DJANGO_VERSION=1.10 DATABASE_SETTINGS='settings_local.py' + - DJANGO_VERSION=1.11rc1 DATABASE_SETTINGS='settings_local.py' install: - pip instal...
4
0.114286
2
2
caa7f042cd333599ce75b9eb36927bdc44011628
src/cheats/hll-compiler.pir
src/cheats/hll-compiler.pir
.namespace ['HLL';'Compiler'] .sub '' :anon :init :load load_bytecode 'PCT.pbc' .local pmc p6meta p6meta = get_hll_global 'P6metaclass' p6meta.'new_class'('HLL::Compiler', 'parent'=>'PCT::HLLCompiler') .end .sub 'parse' :method .param pmc source .param pmc options :slurpy :named ...
.namespace ['HLL';'Compiler'] .sub '' :anon :init :load load_bytecode 'PCT.pbc' .local pmc p6meta p6meta = get_hll_global 'P6metaclass' p6meta.'new_class'('HLL::Compiler', 'parent'=>'PCT::HLLCompiler') .end .sub 'parse' :method .param pmc source .param pmc options :slurpy :named ...
Remove obsolete emulation of old grammar+action setup.
[hll]: Remove obsolete emulation of old grammar+action setup.
Parrot Internal Representation
artistic-2.0
cygx/nqp,cygx/nqp,perl6/nqp-rx,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,perl6/nqp-rx
parrot-internal-representation
## Code Before: .namespace ['HLL';'Compiler'] .sub '' :anon :init :load load_bytecode 'PCT.pbc' .local pmc p6meta p6meta = get_hll_global 'P6metaclass' p6meta.'new_class'('HLL::Compiler', 'parent'=>'PCT::HLLCompiler') .end .sub 'parse' :method .param pmc source .param pmc options ...
.namespace ['HLL';'Compiler'] .sub '' :anon :init :load load_bytecode 'PCT.pbc' .local pmc p6meta p6meta = get_hll_global 'P6metaclass' p6meta.'new_class'('HLL::Compiler', 'parent'=>'PCT::HLLCompiler') .end .sub 'parse' :method .param pmc source .param pmc o...
26
0.530612
5
21
3f17def59779608c455f00c1fcea3ceaf23fd60e
test/fixture.sh
test/fixture.sh
TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git commit -m "Dummy" --allow-empty git checkout -b featur...
TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git commit -m "Dummy" --allow-empty git checkout -b featur...
Set default configuration before running tests
Set default configuration before running tests
Shell
mit
san650/git-switch,san650/git-switch
shell
## Code Before: TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git commit -m "Dummy" --allow-empty git ch...
TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp # Recreate tmp folder rm -rf "$TMP" mkdir -p "$TMP" cd "$TMP" # Create repository and master branch git init # Make fixture git commit -m "Dummy" --allow-empty git checkout -b feature_one 2> /dev/null git commit -m "Dummy" --allow-...
4
0.2
4
0
cb798ae8f7f6e810a87137a56cd04be76596a2dd
photutils/tests/test_psfs.py
photutils/tests/test_psfs.py
from __future__ import division import numpy as np from astropy.tests.helper import pytest from photutils.psf import GaussianPSF try: from scipy import optimize HAS_SCIPY = True except ImportError: HAS_SCIPY = False widths = [0.001, 0.01, 0.1, 1] @pytest.mark.skipif('not HAS_SCIPY') @pytest.mark.para...
from __future__ import division import numpy as np from astropy.tests.helper import pytest from ..psf import GaussianPSF try: from scipy import optimize HAS_SCIPY = True except ImportError: HAS_SCIPY = False widths = [0.001, 0.01, 0.1, 1] @pytest.mark.skipif('not HAS_SCIPY') @pytest.mark.parametrize(('w...
Use relative imports for consistency; pep8
Use relative imports for consistency; pep8
Python
bsd-3-clause
larrybradley/photutils,astropy/photutils
python
## Code Before: from __future__ import division import numpy as np from astropy.tests.helper import pytest from photutils.psf import GaussianPSF try: from scipy import optimize HAS_SCIPY = True except ImportError: HAS_SCIPY = False widths = [0.001, 0.01, 0.1, 1] @pytest.mark.skipif('not HAS_SCIPY') @...
from __future__ import division - import numpy as np - from astropy.tests.helper import pytest - from photutils.psf import GaussianPSF ? ^^^^^^^^^ - + from ..psf import GaussianPSF ? ^ - try: from scipy import optimize HAS_SCIPY = True except ImportError: HAS_SCIPY...
15
0.416667
6
9
49fd555ed9e25e437916166783c7d5a1778c1372
lisp/init-projectile.el
lisp/init-projectile.el
(when (maybe-require-package 'projectile) (add-hook 'after-init-hook 'projectile-mode) (after-load 'projectile (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map) ;; Shorter modeline (setq-default projectile-mode-line-lighter " Proj")) (maybe-require-package 'ibuffer-projectile...
(when (maybe-require-package 'projectile) (add-hook 'after-init-hook 'projectile-mode) ;; Shorter modeline (setq-default projectile-mode-line-lighter " Proj") (after-load 'projectile (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map)) (maybe-require-package 'ibuffer-projectile)) ...
Set shorter projectile modeline correctly
Set shorter projectile modeline correctly
Emacs Lisp
bsd-2-clause
benkha/emacs.d,cjqw/emacs.d,blueabysm/emacs.d,qianwan/emacs.d,emuio/emacs.d,krzysz00/emacs.d,purcell/emacs.d,braveoyster/emacs.d,me020523/emacs.d,baohaojun/emacs.d,kindoblue/emacs.d,gsmlg/emacs.d,svenyurgensson/emacs.d,blueseason/emacs.d,kongfy/emacs.d,dcorking/emacs.d,arthurl/emacs.d,wegatron/emacs.d,mmqmzk/emacs.d,lu...
emacs-lisp
## Code Before: (when (maybe-require-package 'projectile) (add-hook 'after-init-hook 'projectile-mode) (after-load 'projectile (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map) ;; Shorter modeline (setq-default projectile-mode-line-lighter " Proj")) (maybe-require-package 'ib...
(when (maybe-require-package 'projectile) (add-hook 'after-init-hook 'projectile-mode) + ;; Shorter modeline + (setq-default projectile-mode-line-lighter " Proj") + (after-load 'projectile - (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map) + (define-key projectile-mode-...
8
0.615385
4
4
cb41c14fdbca0f385449ca143f9594dc1a8c5b3a
install-win.ps1
install-win.ps1
if (Test-Path $PROFILE) { $file = Get-Item $PROFILE -Force -ea 0 $symlink = $file.Attributes -band [IO.FileAttributes]::ReparsePoint if (-Not $symlink) { Remove-Item $PROFILE cmd /c mklink "$PROFILE" "$($args[0])" } } else { $profilePath = Split-Path $PROFILE if (!(Test-Path -Pat...
if (Test-Path $PROFILE) { $file = Get-Item $PROFILE -Force -ea 0 $symlink = $file.Attributes -band [IO.FileAttributes]::ReparsePoint if (-Not $symlink) { Remove-Item $PROFILE cmd /c mklink "$PROFILE" "$($args[0])" } } else { $profilePath = Split-Path $PROFILE if (!(Test-Path -Pat...
Update scoop and concfg in install script
Update scoop and concfg in install script
PowerShell
mit
ArloL/dotfiles,ArloL/dotfiles
powershell
## Code Before: if (Test-Path $PROFILE) { $file = Get-Item $PROFILE -Force -ea 0 $symlink = $file.Attributes -band [IO.FileAttributes]::ReparsePoint if (-Not $symlink) { Remove-Item $PROFILE cmd /c mklink "$PROFILE" "$($args[0])" } } else { $profilePath = Split-Path $PROFILE if (...
if (Test-Path $PROFILE) { $file = Get-Item $PROFILE -Force -ea 0 $symlink = $file.Attributes -band [IO.FileAttributes]::ReparsePoint if (-Not $symlink) { Remove-Item $PROFILE cmd /c mklink "$PROFILE" "$($args[0])" } } else { $profilePath = Split-Path $PROFILE ...
2
0.095238
2
0
bb922e3b9e93e481e20d77589892dc520b862007
docker-resources/init-minerva-db-and-instance.sh
docker-resources/init-minerva-db-and-instance.sh
export MINERVA_DB_NAME=minerva export PGDATABASE=$MINERVA_DB_NAME export PGUSER=postgres export ADD_PGTAB_EXTENSION=true export PYTHONUNBUFFERED=1 create-minerva-database minerva initialize -i /instance
export MINERVA_DB_NAME=minerva export PGDATABASE=$MINERVA_DB_NAME export PGUSER=postgres export ADD_PGTAB_EXTENSION=true export PYTHONUNBUFFERED=1 create-minerva-database if [[ ! -z "$LOAD_SAMPLE_DATA" ]] then minerva initialize -i /instance --load-sample-data else minerva initialize -i /instance fi
Add support for environment variable LOAD_SAMPLE_DATA
Add support for environment variable LOAD_SAMPLE_DATA
Shell
agpl-3.0
hendrikx-itc/minerva,hendrikx-itc/minerva
shell
## Code Before: export MINERVA_DB_NAME=minerva export PGDATABASE=$MINERVA_DB_NAME export PGUSER=postgres export ADD_PGTAB_EXTENSION=true export PYTHONUNBUFFERED=1 create-minerva-database minerva initialize -i /instance ## Instruction: Add support for environment variable LOAD_SAMPLE_DATA ## Code After: export MINER...
export MINERVA_DB_NAME=minerva export PGDATABASE=$MINERVA_DB_NAME export PGUSER=postgres export ADD_PGTAB_EXTENSION=true export PYTHONUNBUFFERED=1 create-minerva-database + if [[ ! -z "$LOAD_SAMPLE_DATA" ]] + then + minerva initialize -i /instance --load-sample-data + else - minerva initialize -i ...
8
0.888889
7
1
416972f118431d1bd8794e9f55cab7edd82fc884
lib/rp_capistrano/resque.rb
lib/rp_capistrano/resque.rb
module RPCapistrano module Resque def self.load_into(configuration) configuration.load do after 'deploy:restart', 'rp:resque:load_god_config' after 'rp:resque:load_god_config', 'rp:resque:kill_processes' namespace :rp do namespace :resque do desc "Load god conf...
module RPCapistrano module Resque def self.load_into(configuration) configuration.load do after 'deploy:restart', 'rp:resque:load_god_config' after 'rp:resque:load_god_config', 'rp:resque:restart_god_workers' namespace :rp do namespace :resque do desc "Load god...
Add a task to gracefully restart workers using god
Add a task to gracefully restart workers using god
Ruby
mit
RevolutionPrep/rp_capistrano
ruby
## Code Before: module RPCapistrano module Resque def self.load_into(configuration) configuration.load do after 'deploy:restart', 'rp:resque:load_god_config' after 'rp:resque:load_god_config', 'rp:resque:kill_processes' namespace :rp do namespace :resque do des...
module RPCapistrano module Resque def self.load_into(configuration) configuration.load do after 'deploy:restart', 'rp:resque:load_god_config' - after 'rp:resque:load_god_config', 'rp:resque:kill_processes' ? ------ -- ^ + ...
10
0.3125
9
1
dd0bbab7f31ac5e71dfdaf097f6c2aa5abf66982
tensorflow_datasets/community-datasets.toml
tensorflow_datasets/community-datasets.toml
[Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" robotics = "gs://gresearch/robotics"
[Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" kubric = "gs://kubric-public/tfds" robotics = "gs://gresearch/robotics"
Add Kubric to community datasets
Add Kubric to community datasets PiperOrigin-RevId: 436724480
TOML
apache-2.0
tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets
toml
## Code Before: [Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" robotics = "gs://gresearch/robotics" ## Instruction: Add Kubric to community da...
[Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" + kubric = "gs://kubric-public/tfds" robotics = "gs://gresearch/robotics"
1
0.2
1
0
993b472d93a0d3d5c4309af3a0685fd80db62499
packages/co/constructible.yaml
packages/co/constructible.yaml
homepage: http://andersk.mit.edu/haskell/constructible/ changelog-type: '' hash: 0795284c06b54dd8f7594a4263f594ae4088525fbc4122ff5db72cf40480b0c0 test-bench-deps: {} maintainer: Anders Kaseorg <andersk@mit.edu> synopsis: Exact computation with constructible real numbers changelog: '' basic-deps: binary-search: ! '>=0...
homepage: http://andersk.mit.edu/haskell/constructible/ changelog-type: '' hash: 8deb5610cc26c648194edba30ce734a9097b5eb43a1ea27b157cb2273968ef8a test-bench-deps: {} maintainer: Anders Kaseorg <andersk@mit.edu> synopsis: Exact computation with constructible real numbers changelog: '' basic-deps: binary-search: ! '>=0...
Update from Hackage at 2020-02-09T13:49:24Z
Update from Hackage at 2020-02-09T13:49:24Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://andersk.mit.edu/haskell/constructible/ changelog-type: '' hash: 0795284c06b54dd8f7594a4263f594ae4088525fbc4122ff5db72cf40480b0c0 test-bench-deps: {} maintainer: Anders Kaseorg <andersk@mit.edu> synopsis: Exact computation with constructible real numbers changelog: '' basic-deps: binar...
homepage: http://andersk.mit.edu/haskell/constructible/ changelog-type: '' - hash: 0795284c06b54dd8f7594a4263f594ae4088525fbc4122ff5db72cf40480b0c0 + hash: 8deb5610cc26c648194edba30ce734a9097b5eb43a1ea27b157cb2273968ef8a test-bench-deps: {} maintainer: Anders Kaseorg <andersk@mit.edu> synopsis: Exact computat...
15
0.576923
7
8
922d7db1b9c8ae53c123ac4bb4e1a6a2d07bd664
Tools/package.ps1
Tools/package.ps1
$ErrorActionPreference = "Stop" $rootFolder = ".." $sourceFolder = "$rootFolder\Source" $buildFolder = "$rootFolder\build" $packageFolder = "$rootFolder\package" function cleanup_package_folder() { if (Test-Path $packageFolder) { Remove-Item $packageFolder -Recurse -Force } New-Item $packageFo...
$ErrorActionPreference = "Stop" $rootFolder = ".." $sourceFolder = "$rootFolder\Source" $buildFolder = "$rootFolder\build" $packageFolder = "$rootFolder\package" $nuspecFile = "FasterTests.nuspec" function cleanup_package_folder() { if (Test-Path $packageFolder) { Remove-Item $packageFolder -Recurse -...
Package script modified to generate proper ZIP file name
Package script modified to generate proper ZIP file name
PowerShell
bsd-3-clause
devoyster/FasterTests
powershell
## Code Before: $ErrorActionPreference = "Stop" $rootFolder = ".." $sourceFolder = "$rootFolder\Source" $buildFolder = "$rootFolder\build" $packageFolder = "$rootFolder\package" function cleanup_package_folder() { if (Test-Path $packageFolder) { Remove-Item $packageFolder -Recurse -Force } New...
$ErrorActionPreference = "Stop" $rootFolder = ".." $sourceFolder = "$rootFolder\Source" $buildFolder = "$rootFolder\build" $packageFolder = "$rootFolder\package" + $nuspecFile = "FasterTests.nuspec" function cleanup_package_folder() { if (Test-Path $packageFolder) { Remove-Item...
8
0.181818
6
2
5fffb9f49cd7b1237a0bfed0faebf16ef5cdeec1
lib/sanitizer_common/sanitizer_platform_interceptors.h
lib/sanitizer_common/sanitizer_platform_interceptors.h
//===-- sanitizer_platform_interceptors.h -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- sanitizer_platform_interceptors.h -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Disable scanf interceptor on windows.
[sanitizer] Disable scanf interceptor on windows. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@173037 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
c
## Code Before: //===-- sanitizer_platform_interceptors.h -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------...
//===-- sanitizer_platform_interceptors.h -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------...
2
0.052632
1
1
3a67d50d5858806f090833cf81da46c1780b0814
lib/numbering.rb
lib/numbering.rb
module Numbering extend ActiveSupport::Concern included do before_create :generate_number end module ClassMethods def numbering_parent_column(column_name) @numbering_parent_column = column_name end end def generate_number column = self.class.instance_variable_get(:'@numbering_parent...
module Numbering extend ActiveSupport::Concern included do before_create :generate_number end module ClassMethods def numbering_parent_column(column_name) @numbering_parent_column = column_name end end def generate_number column = self.class.instance_variable_get(:'@numbering_parent...
Use Rails methods for max number retrieval.
Use Rails methods for max number retrieval.
Ruby
agpl-3.0
ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub
ruby
## Code Before: module Numbering extend ActiveSupport::Concern included do before_create :generate_number end module ClassMethods def numbering_parent_column(column_name) @numbering_parent_column = column_name end end def generate_number column = self.class.instance_variable_get(:'@...
module Numbering extend ActiveSupport::Concern included do before_create :generate_number end module ClassMethods def numbering_parent_column(column_name) @numbering_parent_column = column_name end end def generate_number column = self.class.instance_va...
8
0.347826
2
6
8a70626a042d220047fdc6d5c911c495b24a151e
_posts/2000-01-03-details.md
_posts/2000-01-03-details.md
--- title: "setup details" bg: '#27ae60' color: black fa-icon: cog style: center --- # Add the Docker Alias You can run coala inside docker on your source code with just one command. We recommend setting an alias in your `.bashrc` or `.zshrc`: ### `alias coala="docker run -ti -v $(pwd):/app --workdir=/app coala/base...
--- title: "setup details" bg: '#27ae60' color: black fa-icon: cog style: center --- # Add the Docker Alias You can run coala inside docker on your source code with just one command. We recommend setting an alias in your `.bashrc` or `.zshrc`: ### `alias coala="docker run -ti -v $(pwd):/app --workdir=/app coala/base...
Add link to install docs
Add link to install docs
Markdown
mit
coala-analyzer/website,coala-analyzer/website
markdown
## Code Before: --- title: "setup details" bg: '#27ae60' color: black fa-icon: cog style: center --- # Add the Docker Alias You can run coala inside docker on your source code with just one command. We recommend setting an alias in your `.bashrc` or `.zshrc`: ### `alias coala="docker run -ti -v $(pwd):/app --workdir...
--- title: "setup details" bg: '#27ae60' color: black fa-icon: cog style: center --- # Add the Docker Alias You can run coala inside docker on your source code with just one command. We recommend setting an alias in your `.bashrc` or `.zshrc`: ### `alias coala="docker run -ti -v $(pwd):/app...
2
0.054054
2
0
d698c3d88f9a93f72254a1b2a63c0c8e1258b286
lib/delayed/plugins/honeybadger.rb
lib/delayed/plugins/honeybadger.rb
module Delayed module Plugins class Honeybadger < Plugin module Notify def error(job, error) ::Honeybadger.notify_or_ignore( :error_class => error.class.name, :error_message => "#{ error.class.name }: #{ error.message }", :backtrace => error.backtrace,...
module Delayed module Plugins class Honeybadger < Plugin callbacks do |lifecycle| lifecycle.around(:invoke_job) do |job, *args, &block| begin block.call(job, *args) rescue Exception => error ::Honeybadger.notify_or_ignore( :error_class => e...
Fix segfault running in Ruby 2.1.0
Fix segfault running in Ruby 2.1.0
Ruby
mit
honeybadger-io/delayed_job_honeybadger
ruby
## Code Before: module Delayed module Plugins class Honeybadger < Plugin module Notify def error(job, error) ::Honeybadger.notify_or_ignore( :error_class => error.class.name, :error_message => "#{ error.class.name }: #{ error.message }", :backtrace => ...
module Delayed module Plugins class Honeybadger < Plugin - module Notify - def error(job, error) - ::Honeybadger.notify_or_ignore( - :error_class => error.class.name, - :error_message => "#{ error.class.name }: #{ error.message }", - :backtrace =...
42
1.076923
16
26
62aa1dd73a41392218713bb9c7353ea72d14e8ba
spec/providers/service_runit_spec.rb
spec/providers/service_runit_spec.rb
require 'spec_helper' describe 'service_runit provider' do let(:runner) do ChefSpec::Runner.new(step_into: ['graphite_service']) do |node| node.automatic["platform_family"] = "debian" end end let(:node) { runner.node } let(:chef_run) { runner.converge("graphite_fixtures::graphite_service_runit_en...
require 'spec_helper' describe 'service_runit provider' do let(:runner) do ChefSpec::Runner.new( platform: "ubuntu", version: "12.04", step_into: ['graphite_service'] ) end let(:node) { runner.node } let(:chef_run) { runner.converge("graphite_fixtures::graphite_service_runit_enable") ...
Refactor graphite_service_runit provider spec to use fauxhai data.
Refactor graphite_service_runit provider spec to use fauxhai data.
Ruby
apache-2.0
mbabic/graphite,bitmonk/chef-graphite,bitmonk/chef-graphite,tas50/graphite,diegobill/graphite,mbabic/graphite,hw-cookbooks/graphite,tas50/graphite,hw-cookbooks/graphite,diegobill/graphite,hw-cookbooks/graphite,diegobill/graphite,tas50/graphite,bitmonk/chef-graphite,mbabic/graphite
ruby
## Code Before: require 'spec_helper' describe 'service_runit provider' do let(:runner) do ChefSpec::Runner.new(step_into: ['graphite_service']) do |node| node.automatic["platform_family"] = "debian" end end let(:node) { runner.node } let(:chef_run) { runner.converge("graphite_fixtures::graphite_...
require 'spec_helper' describe 'service_runit provider' do let(:runner) do - ChefSpec::Runner.new(step_into: ['graphite_service']) do |node| - node.automatic["platform_family"] = "debian" - end + ChefSpec::Runner.new( + platform: "ubuntu", + version: "12.04", + step_into: ...
8
0.266667
5
3
7e81919e27bf5a4e8c3a31cafbdbfadbe1923b93
samples/build-scan/build.gradle.kts
samples/build-scan/build.gradle.kts
plugins { id("com.gradle.build-scan") version "1.8" } buildScan { setLicenseAgreementUrl("https://gradle.com/terms-of-service") setLicenseAgree("yes") }
plugins { `build-scan` } buildScan { setLicenseAgreementUrl("https://gradle.com/terms-of-service") setLicenseAgree("yes") }
Update the build-scan sample to use the `build-scan` plugin accessor
Update the build-scan sample to use the `build-scan` plugin accessor See #404
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/g...
kotlin
## Code Before: plugins { id("com.gradle.build-scan") version "1.8" } buildScan { setLicenseAgreementUrl("https://gradle.com/terms-of-service") setLicenseAgree("yes") } ## Instruction: Update the build-scan sample to use the `build-scan` plugin accessor See #404 ## Code After: plugins { `build-scan`...
plugins { - id("com.gradle.build-scan") version "1.8" + `build-scan` } buildScan { setLicenseAgreementUrl("https://gradle.com/terms-of-service") setLicenseAgree("yes") }
2
0.25
1
1
030c1d7457407c4f27e02d11f6e5aa8e9d6b161f
.travis.yml
.travis.yml
before_install: - sudo chmod 755 ./vendor/bin/youtube-dl - sudo apt-get update -qq rvm: - 1.9.3 # EOL, but still supporting - 2.0.0 # Oldest stable - 2.2.3 # Current stable - jruby-head # JRuby - rbx-2 # Rubinius cache: bundler matrix: allow_failures: - rvm: jruby-head notifications: slack: layer8x:cvixULdjCI...
before_install: - sudo chmod 755 ./vendor/bin/youtube-dl - sudo apt-get update -qq rvm: - 1.9.3 # EOL, but still supporting - 2.0.0 # Oldest stable - 2.2.3 # Current stable - jruby-head # JRuby - rbx-2 # Rubinius cache: bundler matrix: allow_failures: - rvm: jruby-head notifications: slack: layer8x:cvixULdjCI...
Stop Travis CI from emailing me all the fucking time
Stop Travis CI from emailing me all the fucking time
YAML
mit
layer8x/youtube-dl.rb
yaml
## Code Before: before_install: - sudo chmod 755 ./vendor/bin/youtube-dl - sudo apt-get update -qq rvm: - 1.9.3 # EOL, but still supporting - 2.0.0 # Oldest stable - 2.2.3 # Current stable - jruby-head # JRuby - rbx-2 # Rubinius cache: bundler matrix: allow_failures: - rvm: jruby-head notifications: slack: la...
before_install: - sudo chmod 755 ./vendor/bin/youtube-dl - sudo apt-get update -qq rvm: - 1.9.3 # EOL, but still supporting - 2.0.0 # Oldest stable - 2.2.3 # Current stable - jruby-head # JRuby - rbx-2 # Rubinius cache: bundler matrix: allow_failures: - rvm: jruby-head notifi...
1
0.052632
1
0
f4230952eb59d1fe4065bbf51245737dbbf71701
.travis.yml
.travis.yml
sudo: false language: java cache: directories: - $HOME/.m2 install: mvn clean install -q -Dmaven.test.failure.ignore=true branches: only: - develop #jdk: # - openjdk8
sudo: false language: java cache: directories: - $HOME/.m2 install: mvn clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=warn -Dmaven.test.failure.ignore=true branches: only: - develop #jdk: # - openjdk8
Adjust log level to warning
Adjust log level to warning
YAML
apache-2.0
orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb
yaml
## Code Before: sudo: false language: java cache: directories: - $HOME/.m2 install: mvn clean install -q -Dmaven.test.failure.ignore=true branches: only: - develop #jdk: # - openjdk8 ## Instruction: Adjust log level to warning ## Code After: sudo: false language: java cache: directories: - $HOME/.m2 insta...
sudo: false language: java cache: directories: - $HOME/.m2 - install: mvn clean install -q -Dmaven.test.failure.ignore=true + install: mvn clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=warn -Dmaven.test.failure.ignore=true branches: only: - develop #jdk: # - openjdk8
2
0.181818
1
1
33309df85823bde19fcdd2b21b73db9f1da131ab
requests_oauthlib/compliance_fixes/facebook.py
requests_oauthlib/compliance_fixes/facebook.py
from json import dumps from oauthlib.common import urldecode from urlparse import parse_qsl def facebook_compliance_fix(session): def _compliance_fix(r): # if Facebook claims to be sending us json, let's trust them. if 'application/json' in r.headers['content-type']: return r ...
from json import dumps try: from urlparse import parse_qsl except ImportError: from urllib.parse import parse_qsl def facebook_compliance_fix(session): def _compliance_fix(r): # if Facebook claims to be sending us json, let's trust them. if 'application/json' in r.headers['content-type']:...
Remove unused import. Facebook compliance support python3
Remove unused import. Facebook compliance support python3
Python
isc
abhi931375/requests-oauthlib,gras100/asks-oauthlib,requests/requests-oauthlib,singingwolfboy/requests-oauthlib,jayvdb/requests-oauthlib,lucidbard/requests-oauthlib,dongguangming/requests-oauthlib,jsfan/requests-oauthlib,jayvdb/requests-oauthlib,sigmavirus24/requests-oauthlib,elafarge/requests-oauthlib
python
## Code Before: from json import dumps from oauthlib.common import urldecode from urlparse import parse_qsl def facebook_compliance_fix(session): def _compliance_fix(r): # if Facebook claims to be sending us json, let's trust them. if 'application/json' in r.headers['content-type']: r...
from json import dumps - from oauthlib.common import urldecode + try: - from urlparse import parse_qsl + from urlparse import parse_qsl ? ++++ + except ImportError: + from urllib.parse import parse_qsl def facebook_compliance_fix(session): def _compliance_fix(r): # if Facebook clai...
6
0.206897
4
2
854d3e53635542ae62e9c1dccc13fcd322647b49
docs/_config.yml
docs/_config.yml
theme: jekyll-theme-hacker
theme: jekyll-theme-hacker title: OpenKh description: This is a project centralizes all the technical knowledge of Kingdom Hearts series in one place, providing documentation, tools, code libraries and the foundation for modding the commercial games. google_analytics: UA-56422469-2
Update homepage with title, description and analytics
Update homepage with title, description and analytics
YAML
mit
Xeeynamo/KingdomHearts
yaml
## Code Before: theme: jekyll-theme-hacker ## Instruction: Update homepage with title, description and analytics ## Code After: theme: jekyll-theme-hacker title: OpenKh description: This is a project centralizes all the technical knowledge of Kingdom Hearts series in one place, providing documentation, tools, code lib...
theme: jekyll-theme-hacker + title: OpenKh + description: This is a project centralizes all the technical knowledge of Kingdom Hearts series in one place, providing documentation, tools, code libraries and the foundation for modding the commercial games. + google_analytics: UA-56422469-2
3
3
3
0
28b29665a72930917eeb16554e001737d65def34
requirements.txt
requirements.txt
--editable git+https://github.com/openfisca/openfisca-core.git#egg=OpenFisca-Core --editable .
--editable git+https://github.com/benjello/openfisca-core.git@baremes-ipp#egg=OpenFisca-Core --editable .
Modify requirement.txt to use openfisca-core baremes-ipp branch
Modify requirement.txt to use openfisca-core baremes-ipp branch
Text
agpl-3.0
antoinearnoud/openfisca-france,antoinearnoud/openfisca-france,sgmap/openfisca-france,sgmap/openfisca-france
text
## Code Before: --editable git+https://github.com/openfisca/openfisca-core.git#egg=OpenFisca-Core --editable . ## Instruction: Modify requirement.txt to use openfisca-core baremes-ipp branch ## Code After: --editable git+https://github.com/benjello/openfisca-core.git@baremes-ipp#egg=OpenFisca-Core --editable .
- --editable git+https://github.com/openfisca/openfisca-core.git#egg=OpenFisca-Core ? ^^ ^^^^^ + --editable git+https://github.com/benjello/openfisca-core.git@baremes-ipp#egg=OpenFisca-Core ? ^ ^^^^^ ++++++++++++ --editable .
2
1
1
1
e6b7ddb16d6d3e55c6f096a0559ae8e89a1e90c0
README.md
README.md
Useful functions gathered in one DLL
Useful functions gathered in one DLL # Build Status TeamCity: master: Travis: master: AppVeyor:
Update READ me file to add buil status
Update READ me file to add buil status
Markdown
mit
fredatgithub/UsefulFunctions
markdown
## Code Before: Useful functions gathered in one DLL ## Instruction: Update READ me file to add buil status ## Code After: Useful functions gathered in one DLL # Build Status TeamCity: master: Travis: master: AppVeyor:
Useful functions gathered in one DLL + + # Build Status + TeamCity: master: + Travis: master: + AppVeyor:
5
5
5
0
be9c37b2e80c883e2381cc492be2b560240b6196
README.md
README.md
vmu.js =========== Parsing vmu files on the browser Test it on http://reicast.github.io/vmujs
vmu.js =========== Parsing vmu files on the browser Test it on [http://reicast.github.io/vmujs](http://reicast.github.io/vmujs/#?u=https%3A%2F%2Fdl.dropboxusercontent.com%2Fs%2Fzln799lp4hrygej%2Fvmu-test.bin)
Test url w/ dropbox test file
Test url w/ dropbox test file
Markdown
mit
reicast/vmujs
markdown
## Code Before: vmu.js =========== Parsing vmu files on the browser Test it on http://reicast.github.io/vmujs ## Instruction: Test url w/ dropbox test file ## Code After: vmu.js =========== Parsing vmu files on the browser Test it on [http://reicast.github.io/vmujs](http://reicast.github.io/vmujs/#?u=https%3A%2F%2...
vmu.js =========== Parsing vmu files on the browser - Test it on http://reicast.github.io/vmujs + Test it on [http://reicast.github.io/vmujs](http://reicast.github.io/vmujs/#?u=https%3A%2F%2Fdl.dropboxusercontent.com%2Fs%2Fzln799lp4hrygej%2Fvmu-test.bin)
2
0.333333
1
1
87ad807e10e808ec706eca212932915c7619ddb7
frontend/src/backendQuery.js
frontend/src/backendQuery.js
'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { var response = JSON.parse...
'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { var response = JSON.parse...
Improve error message when the subject's events are not scheduled
Improve error message when the subject's events are not scheduled
JavaScript
mit
IAmWave/samorozvrh,IAmWave/samorozvrh,IAmWave/samorozvrh,IAmWave/samorozvrh
javascript
## Code Before: 'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { var respo...
'use strict' var util = require('./util') export function createSchedule (queryArray, callback) { var onResponse = function (responseString, error) { if (error) { callback(null, error) } else if (!responseString) { callback(null, 'Server neodpovídá.') } else { v...
6
0.15
5
1
f2fc4c7e1c6a2ef3b15914a693df17681ef23460
ansible.cfg
ansible.cfg
[ssh_connection] ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s
[default] remote_tmp = /tmp/.ansible-${USER}/tmp [ssh_connection] ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s
Change remote_tmp to avoid stuff in home
Change remote_tmp to avoid stuff in home
INI
mit
henrik-farre/ansible,henrik-farre/ansible,henrik-farre/ansible
ini
## Code Before: [ssh_connection] ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s ## Instruction: Change remote_tmp to avoid stuff in home ## Code After: [default] remote_tmp = /tmp/.ansible-${USER}/tmp [ssh_connection] ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s
+ [default] + remote_tmp = /tmp/.ansible-${USER}/tmp + [ssh_connection] ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s
3
1.5
3
0
1aa33733bc121308d15c2e8667f01156cd94ebfe
app/views/application/_content_header.html.haml
app/views/application/_content_header.html.haml
%header.content-header .content-header__main %a.content-header__button.content-header__button--menu.yyy(data-sidebar='left') menu %p.content-header__title = link_to current_site.home_url.presence || root_url, class: 'content-header__logo' do = image_tag current_site.logo_image_url || current_si...
%header.content-header .content-header__main %div.content-header__menu %a.content-header__button.content-header__button--menu(data-sidebar='left') %span.yyy menu %p.content-header__title = link_to current_site.home_url.presence || root_url, class: 'content-header__logo' do = image...
Apply style for header menu button
Apply style for header menu button
Haml
mit
bm-sms/daimon-news,bm-sms/daimon-news,bm-sms/daimon-news
haml
## Code Before: %header.content-header .content-header__main %a.content-header__button.content-header__button--menu.yyy(data-sidebar='left') menu %p.content-header__title = link_to current_site.home_url.presence || root_url, class: 'content-header__logo' do = image_tag current_site.logo_image_u...
%header.content-header .content-header__main + %div.content-header__menu - %a.content-header__button.content-header__button--menu.yyy(data-sidebar='left') menu ? ---- ----- + %a.content-header__button.content-header__butt...
4
0.285714
3
1
0cd4b05e45d0e3660c83960ca458471fbcf9c6e2
bin/console.php
bin/console.php
<?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2015 Matthew Weier O'Phinney (https://mwop.net) */ require __DIR__ . '/../vendor/autoload.php'; use Zend\Console\Console; use ZF\Console\Application; use ZF\Console\Dispatcher; $version = '0.0.1'; $applicat...
<?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2015 Matthew Weier O'Phinney (https://mwop.net) */ require __DIR__ . '/../vendor/autoload.php'; use Zend\Console\Console; use ZF\Console\Application; use ZF\Console\Dispatcher; $version = '@package_version@'...
Use git version for package version
Use git version for package version
PHP
bsd-3-clause
zendframework/zend-component-installer,weierophinney/component-installer,weierophinney/component-installer
php
## Code Before: <?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2015 Matthew Weier O'Phinney (https://mwop.net) */ require __DIR__ . '/../vendor/autoload.php'; use Zend\Console\Console; use ZF\Console\Application; use ZF\Console\Dispatcher; $version = '0....
<?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2015 Matthew Weier O'Phinney (https://mwop.net) */ require __DIR__ . '/../vendor/autoload.php'; use Zend\Console\Console; use ZF\Console\Application; use ZF\Console\Dispatcher; - $ver...
2
0.083333
1
1
721703801654af88e8b5064d1bc65569ce1555cf
thumbnails/engines/__init__.py
thumbnails/engines/__init__.py
def get_current_engine(): return None
from thumbnails.engines.pillow import PillowEngine def get_current_engine(): return PillowEngine()
Set pillow engine as default
Set pillow engine as default
Python
mit
python-thumbnails/python-thumbnails,relekang/python-thumbnails
python
## Code Before: def get_current_engine(): return None ## Instruction: Set pillow engine as default ## Code After: from thumbnails.engines.pillow import PillowEngine def get_current_engine(): return PillowEngine()
+ from thumbnails.engines.pillow import PillowEngine def get_current_engine(): - return None + return PillowEngine()
3
0.75
2
1
fd5d03cf3d96354b69adedb6cd9adaf5675adcc9
src/index.ts
src/index.ts
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DeviceDetectorService } from './device-detector.service'; @NgModule({ imports: [ CommonModule ] }) export class DeviceDetectorModule { static forRoot(): ModuleWithProviders { return { ...
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DeviceDetectorService } from './device-detector.service'; @NgModule({ imports: [ CommonModule ] }) export class DeviceDetectorModule { static forRoot(): ModuleWithProviders<DeviceDetectorMo...
Use generic version for ModuleWithProviders
Use generic version for ModuleWithProviders This should add some level of Angular 9 compatibility and fix #144
TypeScript
mit
KoderLabs/ng2-device-detector,KoderLabs/ng2-device-detector
typescript
## Code Before: import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DeviceDetectorService } from './device-detector.service'; @NgModule({ imports: [ CommonModule ] }) export class DeviceDetectorModule { static forRoot(): ModuleWithProviders ...
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DeviceDetectorService } from './device-detector.service'; @NgModule({ imports: [ CommonModule ] }) export class DeviceDetectorModule { - static forRoot(): ModuleWithProv...
2
0.090909
1
1
6bec90c8b084308cc7d542349dcfa044b05d8295
cmd/tchaik/ui/static/sass/components/retro.scss
cmd/tchaik/ui/static/sass/components/retro.scss
@import '../variables.scss'; @import '../mixins.scss'; div.retro { position:relative; width: 100%; height: 100%; div.blur { position: fixed; left: 0; top: 0; height: 100%; width: 100%; background-size: cover; z-index: 0; height: 20%; width: 20%; /* Using Glen Maddern's trick /v...
@import '../variables.scss'; @import '../mixins.scss'; div.retro { position:relative; width: 100%; height: 100%; div.blur { position: fixed; left: 0; top: 0; height: 100%; width: 100%; background-size: cover; z-index: 0; height: 20%; width: 20%; /* Using Glen Maddern's trick /v...
Fix the current playing artwork to the top right
[Retro] Fix the current playing artwork to the top right
SCSS
bsd-2-clause
tchaik/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik,tchaik/tchaik
scss
## Code Before: @import '../variables.scss'; @import '../mixins.scss'; div.retro { position:relative; width: 100%; height: 100%; div.blur { position: fixed; left: 0; top: 0; height: 100%; width: 100%; background-size: cover; z-index: 0; height: 20%; width: 20%; /* Using Glen Ma...
@import '../variables.scss'; @import '../mixins.scss'; div.retro { position:relative; width: 100%; height: 100%; div.blur { position: fixed; left: 0; top: 0; height: 100%; width: 100%; background-size: cover; z-index: 0; height: 20%; width: 20%...
4
0.081633
2
2
7ea6f649a748cd99922eb63de67864cc6ecf355a
.travis.yml
.travis.yml
language: python sudo: false env: - PYTHON_VERSION=2.7 - PYTHON_VERSION=3.4 before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH # Update conda itself -...
language: python sudo: false env: - PYTHON_VERSION=2.7 - PYTHON_VERSION=3.4 before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH # Update conda itself -...
Install qiita client from master
Install qiita client from master
YAML
bsd-3-clause
qiita-spots/qtp-biom
yaml
## Code Before: language: python sudo: false env: - PYTHON_VERSION=2.7 - PYTHON_VERSION=3.4 before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH # Update ...
language: python sudo: false env: - PYTHON_VERSION=2.7 - PYTHON_VERSION=3.4 before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH # U...
1
0.047619
1
0
5ee15158c31190fc7fb58d9a2016b0e74f268490
.travis.yml
.travis.yml
language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 gemfile: - test/gemfiles/1.0 - test/gemfiles/1.1 - test/gemfiles/1.2 - test/gemfiles/1.3 - test/gemfiles/1.4 - test/gemfiles/1.5 - test/gemfiles/1.6 - test/gemfiles/1.7
language: ruby rvm: - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 gemfile: - test/gemfiles/1.0 - test/gemfiles/1.1 - test/gemfiles/1.2 - test/gemfiles/1.3 - test/gemfiles/1.4 - test/gemfiles/1.5 - test/gemfiles/1.6 - test/gemfiles/1.7
Remove 1.8.7 from text matrix
Remove 1.8.7 from text matrix ExecJS 2.0 will only support 1.9.3 and above
YAML
mit
rails/ruby-coffee-script,rails/ruby-coffee-script,mavenlink/ruby-coffee-script,eileencodes/ruby-coffee-script,josh/ruby-coffee-script,eileencodes/ruby-coffee-script,HubSpot/ruby-coffee-script-multi,mavenlink/ruby-coffee-script
yaml
## Code Before: language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 gemfile: - test/gemfiles/1.0 - test/gemfiles/1.1 - test/gemfiles/1.2 - test/gemfiles/1.3 - test/gemfiles/1.4 - test/gemfiles/1.5 - test/gemfiles/1.6 - test/gemfiles/1.7 ## Instruction: Remove 1.8.7 from text matrix ...
language: ruby rvm: - - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 - 2.1.0 gemfile: - test/gemfiles/1.0 - test/gemfiles/1.1 - test/gemfiles/1.2 - test/gemfiles/1.3 - test/gemfiles/1.4 - test/gemfiles/1.5 - test/gemfiles/1.6 - test/gemfiles/1.7
1
0.055556
0
1
86666d4c79109608aa735db1e80c40abca31a78d
README.md
README.md
Following the [DHH Rails 5: Action Cable Demo](https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e) or [Railscast](http://railscasts-china.com/episodes/action-cable-rails-5) but confirm works at Windows! Need Rails 5.0.0.beta3. Thanks @maclover7 [PR to enable using PG as storage](https://github.com/rails/...
Following the [DHH Rails 5: Action Cable Demo](https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e) or [Railscast](http://railscasts-china.com/episodes/action-cable-rails-5) but confirm works at Windows! Need Rails 5.0.0.beta3. Thanks @maclover7 [PR to enable using PG as storage](https://github.com/rails/...
Add notes about deploy heroku
Add notes about deploy heroku
Markdown
unlicense
Eric-Guo/pgac_demo,Eric-Guo/pgac_demo,Eric-Guo/pgac_demo
markdown
## Code Before: Following the [DHH Rails 5: Action Cable Demo](https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e) or [Railscast](http://railscasts-china.com/episodes/action-cable-rails-5) but confirm works at Windows! Need Rails 5.0.0.beta3. Thanks @maclover7 [PR to enable using PG as storage](https://g...
Following the [DHH Rails 5: Action Cable Demo](https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e) or [Railscast](http://railscasts-china.com/episodes/action-cable-rails-5) but confirm works at Windows! Need Rails 5.0.0.beta3. Thanks @maclover7 [PR to enable using PG as storage](https://githu...
9
0.428571
9
0
609c8e37b082dd3c91fadb3cb11130ba345527f8
readme.md
readme.md
> Email input component for virtual-dom ## Install ``` $ npm install --save email-input ``` ## Usage ```js var EmailInput = require('email-input') var emailInput = EmailInput() function render (state) { var vtree = EmailInput.render(state) //=> use virtual-dom to patch vtree into real DOM } emailInput(rend...
> Email input component for virtual-dom ## Install ``` $ npm install --save email-input ``` ## Usage ```js var EmailInput = require('email-input') var emailInput = EmailInput() function render (state) { var vtree = EmailInput.render(state) //=> use virtual-dom to patch vtree into real DOM } emailInput(rend...
Document new options + removal of placeholder
Document new options + removal of placeholder
Markdown
mit
bendrucker/email-input
markdown
## Code Before: > Email input component for virtual-dom ## Install ``` $ npm install --save email-input ``` ## Usage ```js var EmailInput = require('email-input') var emailInput = EmailInput() function render (state) { var vtree = EmailInput.render(state) //=> use virtual-dom to patch vtree into real DOM } ...
> Email input component for virtual-dom ## Install ``` $ npm install --save email-input ``` ## Usage ```js var EmailInput = require('email-input') var emailInput = EmailInput() function render (state) { var vtree = EmailInput.render(state) //=> use virtual-dom to patc...
10
0.16129
2
8