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
9bc1231e06e0a3a4099bf0643996da0c71d430a3
README.md
README.md
BatchBundle =========== Batch architecture bundle inspired by Spring Batch [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/akeneo/BatchBundle/badges/quality-score.png?s=c191e29ba7ff6838205b395eeae3f2d9a027b8d7)](https://scrutinizer-ci.com/g/akeneo/BatchBundle/) [![Code Coverage](https://scrutinizer-ci.com/...
BatchBundle =========== Batch architecture bundle inspired by Spring Batch. See http://docs.spring.io/spring-batch/reference/html/domain.html for an explanation of the Domain Language objects you will find in this BatchBundle. [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/akeneo/BatchBundle/badges/quali...
Add a note on Spring Batch inspiration
Add a note on Spring Batch inspiration
Markdown
mit
rseliberty/BatchBundle,trustify/BatchBundle,rseliberty/BatchBundle,trustify/BatchBundle
markdown
## Code Before: BatchBundle =========== Batch architecture bundle inspired by Spring Batch [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/akeneo/BatchBundle/badges/quality-score.png?s=c191e29ba7ff6838205b395eeae3f2d9a027b8d7)](https://scrutinizer-ci.com/g/akeneo/BatchBundle/) [![Code Coverage](https://scr...
BatchBundle =========== - Batch architecture bundle inspired by Spring Batch + Batch architecture bundle inspired by Spring Batch. ? + - [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/akeneo/BatchBundle/badges/quality-score.png?s=c191e29ba7ff68382...
7
1.166667
5
2
104ba7a089eeb303499ea5739ab3789c2b8080b5
docs/source/developing.rst
docs/source/developing.rst
Developing kardboard ===================== Quickstart ------------ To get a local version of kardboard up and running suitable for developing against, you can follow this quickstart guide. .. code-block:: bash # Install python, virtualenv and mongodb using your favorite system package manager here. # aptit...
Developing kardboard ===================== Quickstart ------------ To get a local version of kardboard up and running suitable for developing against, you can follow this quickstart guide. .. code-block:: bash # Install python, virtualenv and mongodb using your favorite system package manager here. # aptit...
Update getting started docs re: module path setup.
Update getting started docs re: module path setup.
reStructuredText
mit
cmheisel/kardboard,cmheisel/kardboard,cmheisel/kardboard,cmheisel/kardboard
restructuredtext
## Code Before: Developing kardboard ===================== Quickstart ------------ To get a local version of kardboard up and running suitable for developing against, you can follow this quickstart guide. .. code-block:: bash # Install python, virtualenv and mongodb using your favorite system package manager h...
Developing kardboard ===================== Quickstart ------------ To get a local version of kardboard up and running suitable for developing against, you can follow this quickstart guide. .. code-block:: bash # Install python, virtualenv and mongodb using your favorite system package m...
4
0.090909
4
0
ddec6067054cc4408ac174e3ea4ffeca2a962201
regulations/views/notice_home.py
regulations/views/notice_home.py
from __future__ import unicode_literals from operator import itemgetter import logging from django.http import Http404 from django.template.response import TemplateResponse from django.views.generic.base import View from regulations.generator.api_reader import ApiReader from regulations.views.preamble import ( ...
from __future__ import unicode_literals from operator import itemgetter import logging from django.http import Http404 from django.template.response import TemplateResponse from django.views.generic.base import View from regulations.generator.api_reader import ApiReader from regulations.views.preamble import ( ...
Remove unnecessary assert from view for Notice home.
Remove unnecessary assert from view for Notice home.
Python
cc0-1.0
18F/regulations-site,18F/regulations-site,eregs/regulations-site,tadhg-ohiggins/regulations-site,tadhg-ohiggins/regulations-site,tadhg-ohiggins/regulations-site,eregs/regulations-site,eregs/regulations-site,eregs/regulations-site,tadhg-ohiggins/regulations-site,18F/regulations-site,18F/regulations-site
python
## Code Before: from __future__ import unicode_literals from operator import itemgetter import logging from django.http import Http404 from django.template.response import TemplateResponse from django.views.generic.base import View from regulations.generator.api_reader import ApiReader from regulations.views.pream...
from __future__ import unicode_literals from operator import itemgetter import logging from django.http import Http404 from django.template.response import TemplateResponse from django.views.generic.base import View from regulations.generator.api_reader import ApiReader from regulations.v...
1
0.02
0
1
9004e0e41a58b5af376d169bf91d320ce6705b36
adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h
adapters/Vungle/Public/Headers/VungleAdNetworkExtras.h
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Add video orientation to play ad option
Add video orientation to play ad option
C
apache-2.0
googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation,googleads/googleads-mobile-ios-mediation
c
## Code Before: // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
2
0.05
2
0
7a8092db0d6eef16756666779fcf3691f3f0185d
troposphere/static/js/components/projects/detail/tableData/volume/Status.react.js
troposphere/static/js/components/projects/detail/tableData/volume/Status.react.js
/** @jsx React.DOM */ define( [ 'react', 'backbone' ], function (React, Backbone) { return React.createClass({ propTypes: { volume: React.PropTypes.instanceOf(Backbone.Model).isRequired, instances: React.PropTypes.instanceOf(Backbone.Collection).isRequired }, rend...
/** @jsx React.DOM */ define( [ 'react', 'backbone' ], function (React, Backbone) { return React.createClass({ propTypes: { volume: React.PropTypes.instanceOf(Backbone.Model).isRequired, instances: React.PropTypes.instanceOf(Backbone.Collection).isRequired }, rend...
Add message when volume attached to instance outside project
Add message when volume attached to instance outside project
JavaScript
apache-2.0
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
javascript
## Code Before: /** @jsx React.DOM */ define( [ 'react', 'backbone' ], function (React, Backbone) { return React.createClass({ propTypes: { volume: React.PropTypes.instanceOf(Backbone.Model).isRequired, instances: React.PropTypes.instanceOf(Backbone.Collection).isRequired ...
/** @jsx React.DOM */ define( [ 'react', 'backbone' ], function (React, Backbone) { return React.createClass({ propTypes: { volume: React.PropTypes.instanceOf(Backbone.Model).isRequired, instances: React.PropTypes.instanceOf(Backbone.Collection).isR...
6
0.157895
5
1
d8afb3509f893f10cf6570d17573cd991e07a1f1
spec/payload/message_parser_spec.rb
spec/payload/message_parser_spec.rb
require 'spec_helper' describe Magnum::Payload::MessageParser do let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end } let(:subject) { klass.new } describe '#skip_message?' do it 'returns true when message contains "ci-skip"' do subject.stub(:message).and_return('Commit message [c...
require "spec_helper" describe Magnum::Payload::MessageParser do let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end } let(:subject) { klass.new } describe "#skip_message?" do it "returns true when message contains "ci-skip"" do subject.stub(:message).and_return("Commit message [c...
Use double quotes in message spec
Use double quotes in message spec
Ruby
mit
magnumci/magnum-payload
ruby
## Code Before: require 'spec_helper' describe Magnum::Payload::MessageParser do let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end } let(:subject) { klass.new } describe '#skip_message?' do it 'returns true when message contains "ci-skip"' do subject.stub(:message).and_return('C...
- require 'spec_helper' ? ^ ^ + require "spec_helper" ? ^ ^ describe Magnum::Payload::MessageParser do let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end } let(:subject) { klass.new } - describe '#skip_message?' do ? ^ ...
30
0.666667
15
15
aa16f98ba5fb48c21d9ecef4b6e9045a47e7cdcc
data/transition-sites/ea_publications.yml
data/transition-sites/ea_publications.yml
--- site: ea_publications whitehall_slug: environment-agency title: Environment Agency redirection_date: 1st April 2014 homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20130903163836 host: publications.environment-agency.gov.uk furl: www.gov.uk/environment-agency options: --query...
--- site: ea_publications whitehall_slug: environment-agency title: Environment Agency redirection_date: 1st April 2014 homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20130903163836 host: publications.environment-agency.gov.uk furl: www.gov.uk/environment-agency options: --query...
Add alias to EA publications library config
Add alias to EA publications library config
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: ea_publications whitehall_slug: environment-agency title: Environment Agency redirection_date: 1st April 2014 homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20130903163836 host: publications.environment-agency.gov.uk furl: www.gov.uk/environment-agency ...
--- site: ea_publications whitehall_slug: environment-agency title: Environment Agency redirection_date: 1st April 2014 homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20130903163836 host: publications.environment-agency.gov.uk furl: www.gov.uk/environment-agenc...
2
0.2
2
0
ae8a053e6a532d2f4f456462653e827f0f46a25f
server/server.js
server/server.js
Meteor.startup(function () { // Reset Database only in environment dev if (process.env.NODE_ENV === 'development') { KSessions.remove({}); Books.remove({}); datas = Fixtures; // Specific datas for dev environment } else if (process.env.NODE_ENV === 'production') { datas = Datas; // Specific data...
Meteor.startup(function () { // Reset Database only in environment dev if (process.env.NODE_ENV === 'development') { KSessions.remove({}); Books.remove({}); // Specific insert for Books Fixtures.books.forEach(function(rec) { if (Books.findOne(rec._id)) { Books.update(rec._id, rec); ...
Disable data change in prod and pre-prod environment
Disable data change in prod and pre-prod environment
JavaScript
mit
claudeaubry/klub,claudeaubry/klub,claudeaubry/klub
javascript
## Code Before: Meteor.startup(function () { // Reset Database only in environment dev if (process.env.NODE_ENV === 'development') { KSessions.remove({}); Books.remove({}); datas = Fixtures; // Specific datas for dev environment } else if (process.env.NODE_ENV === 'production') { datas = Datas; ...
Meteor.startup(function () { // Reset Database only in environment dev if (process.env.NODE_ENV === 'development') { KSessions.remove({}); Books.remove({}); - datas = Fixtures; // Specific datas for dev environment + + // Specific insert for Books + Fixtures.books.forEach(function(rec...
75
1.630435
36
39
7214d765437ffc7b980ec2d6682aaa0e705a5b60
app/serializers/effort_serializer.rb
app/serializers/effort_serializer.rb
class EffortSerializer < BaseSerializer attributes :id, :event_id, :person_id, :bib_number, :first_name, :last_name, :full_name, :gender, :age, :city, :state_code, :country_code, :beacon_url, :photo_url, :report_url, :start_offset link(:self) { api_v1_effort_path(object) } has_many :split_times, if:...
class EffortSerializer < BaseSerializer attributes :id, :event_id, :person_id, :participant_id, :bib_number, :first_name, :last_name, :full_name, :gender, :age, :city, :state_code, :country_code, :beacon_url, :photo_url, :report_url, :start_offset link(:self) { api_v1_effort_path(object) } has_many ...
Include participant_id (along with person_id) in EffortSerializer to avoid problems during transition. The participant_id attribute is now merely an alias for person_id.
Include participant_id (along with person_id) in EffortSerializer to avoid problems during transition. The participant_id attribute is now merely an alias for person_id.
Ruby
mit
SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime
ruby
## Code Before: class EffortSerializer < BaseSerializer attributes :id, :event_id, :person_id, :bib_number, :first_name, :last_name, :full_name, :gender, :age, :city, :state_code, :country_code, :beacon_url, :photo_url, :report_url, :start_offset link(:self) { api_v1_effort_path(object) } has_many :...
class EffortSerializer < BaseSerializer - attributes :id, :event_id, :person_id, :bib_number, :first_name, :last_name, :full_name, :gender, + attributes :id, :event_id, :person_id, :participant_id, :bib_number, :first_name, :last_name, :full_name, :gender, ? +++++++++++++++++ ...
2
0.181818
1
1
a2f8ec576e97f2118e4d72713fd956913ff5428a
src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala
src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala
package org.scalatest.tools import org.scalatest.Spec import org.scalatest.matchers.ShouldMatchers class SbtCommandParserSpec extends Spec with ShouldMatchers { describe("the cmd terminal?") { it("should parse 'st'") { val parser = new SbtCommandParser val result = parser.parseResult("""st""") ...
package org.scalatest.tools import org.scalatest.Spec import org.scalatest.matchers.ShouldMatchers class SbtCommandParserSpec extends Spec with ShouldMatchers { val parser = new SbtCommandParser def canParsePhrase(s: String) { val result = parser.parseResult(s) result match { case ns: parse...
Reduce code dup in test.
Reduce code dup in test. git-svn-id: a9cb476116504f49bf91a09a9abbac08fcf3bbcc@3076 fd1274fd-080f-5963-8033-43ee40fcd1de
Scala
apache-2.0
svn2github/scalatest,svn2github/scalatest,svn2github/scalatest
scala
## Code Before: package org.scalatest.tools import org.scalatest.Spec import org.scalatest.matchers.ShouldMatchers class SbtCommandParserSpec extends Spec with ShouldMatchers { describe("the cmd terminal?") { it("should parse 'st'") { val parser = new SbtCommandParser val result = parser.parseRes...
package org.scalatest.tools import org.scalatest.Spec import org.scalatest.matchers.ShouldMatchers class SbtCommandParserSpec extends Spec with ShouldMatchers { + val parser = new SbtCommandParser + + def canParsePhrase(s: String) { + val result = parser.parseResult(s) + result matc...
36
1.2
20
16
acb9c44e21e9f24610190afaacd87aee4570dff5
articles/integrations/aws-api-gateway-2/part-3.md
articles/integrations/aws-api-gateway-2/part-3.md
--- description: How to set your API methods to use your custom authorizer --- # AWS Part 3: Secure the API Using Custom Authorizers In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the custom authorizer ...
--- description: How to set your API methods to use your custom authorizer --- # AWS Part 3: Secure the API Using Custom Authorizers In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the custom authorizer ...
Add second part of part 3
Add second part of part 3
Markdown
mit
auth0/docs,auth0/docs,jeffreylees/docs,yvonnewilson/docs,yvonnewilson/docs,yvonnewilson/docs,auth0/docs,jeffreylees/docs,jeffreylees/docs
markdown
## Code Before: --- description: How to set your API methods to use your custom authorizer --- # AWS Part 3: Secure the API Using Custom Authorizers In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the cu...
--- description: How to set your API methods to use your custom authorizer --- # AWS Part 3: Secure the API Using Custom Authorizers In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the cust...
26
3.714286
26
0
e0285116d673b3098822727e1b394006f9468c96
composer.json
composer.json
{ "name": "pubsubhubbub/publisher", "type": "library", "description": "pubsubhubbub implementation of publisher.", "keywords": ["pubsubhubbub", "publishers", "data", "feeds"], "homepage": "https://github.com/pubsubhubbub/php-publisher", "license": "Apache-2.0", "authors": [ { ...
{ "name": "pubsubhubbub/publisher", "type": "library", "description": "pubsubhubbub implementation of publisher.", "keywords": ["pubsubhubbub", "publishers", "data", "feeds", "websub"], "homepage": "https://github.com/pubsubhubbub/php-publisher", "license": "Apache-2.0", "authors": [ ...
Add websub as a keyword
Add websub as a keyword This will let the library show up on Packagist when users search for websub
JSON
apache-2.0
pubsubhubbub/php-publisher
json
## Code Before: { "name": "pubsubhubbub/publisher", "type": "library", "description": "pubsubhubbub implementation of publisher.", "keywords": ["pubsubhubbub", "publishers", "data", "feeds"], "homepage": "https://github.com/pubsubhubbub/php-publisher", "license": "Apache-2.0", "authors": [ ...
{ "name": "pubsubhubbub/publisher", "type": "library", "description": "pubsubhubbub implementation of publisher.", - "keywords": ["pubsubhubbub", "publishers", "data", "feeds"], + "keywords": ["pubsubhubbub", "publishers", "data", "feeds", "websub"], ? ...
2
0.095238
1
1
a8d4aa1ba0ba609650613a29dfb1dcc99257496c
spec/calculate_spec.rb
spec/calculate_spec.rb
require 'spec_helper' describe 'Calculating the ETSource datasets' do datasets = Atlas::Dataset.all.select do |dataset| dataset.enabled && dataset.enabled[:etengine] end before(:all) do @graph = Atlas::GraphBuilder.build end datasets.each do |dataset| it "calculates the #{ dataset.key } dataset...
require 'spec_helper' describe 'Calculating the ETSource datasets' do datasets = Atlas::Dataset.all.select do |dataset| dataset.enabled && dataset.enabled[:etengine] end datasets.each do |dataset| it "calculates the #{ dataset.key } dataset" do Atlas::Runner.new(dataset).calculate end end en...
Remove unused graph param from calculation specs
Remove unused graph param from calculation specs Adjustment for new Atlas version
Ruby
mit
quintel/etsource
ruby
## Code Before: require 'spec_helper' describe 'Calculating the ETSource datasets' do datasets = Atlas::Dataset.all.select do |dataset| dataset.enabled && dataset.enabled[:etengine] end before(:all) do @graph = Atlas::GraphBuilder.build end datasets.each do |dataset| it "calculates the #{ datas...
require 'spec_helper' describe 'Calculating the ETSource datasets' do datasets = Atlas::Dataset.all.select do |dataset| dataset.enabled && dataset.enabled[:etengine] end - before(:all) do - @graph = Atlas::GraphBuilder.build - end - datasets.each do |dataset| it "calculates th...
6
0.352941
1
5
b7e6f8e2eb93ce1c57c49208fc5c006c51807c8b
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" before_install: - npm install -g gulp bower - bower install -f
language: node_js node_js: - "6" before_install: - npm install -g yarn install: - yarn script: yarn test
Update Travis for Yarn and Node 6
Update Travis for Yarn and Node 6
YAML
mit
Snugug/eq.js,Snugug/eq.js
yaml
## Code Before: language: node_js node_js: - "0.10" before_install: - npm install -g gulp bower - bower install -f ## Instruction: Update Travis for Yarn and Node 6 ## Code After: language: node_js node_js: - "6" before_install: - npm install -g yarn install: - yarn script: yarn test
language: node_js node_js: - - "0.10" + - "6" before_install: - - npm install -g gulp bower ? ^^^^^^^^^ + - npm install -g yarn ? ^^ + - - bower install -f + install: + - yarn + script: yarn test
8
1.333333
5
3
ec92b47c48be93182a63c5f900f68638be603ffd
tests/BaseTestCase.php
tests/BaseTestCase.php
<?php declare(strict_types = 1); namespace Churn\Tests; use PHPUnit\Framework\TestCase; abstract class BaseTestCase extends TestCase { }
<?php declare(strict_types = 1); namespace Churn\Tests; use Mockery as m; use PHPUnit\Framework\TestCase; abstract class BaseTestCase extends TestCase { /** * @see https://github.com/phpspec/prophecy/issues/366#issuecomment-359587114 */ protected function tearDown() { $this->addToAssert...
Add to assertion count from Mockery
Fix: Add to assertion count from Mockery
PHP
mit
bmitch/churn-php
php
## Code Before: <?php declare(strict_types = 1); namespace Churn\Tests; use PHPUnit\Framework\TestCase; abstract class BaseTestCase extends TestCase { } ## Instruction: Fix: Add to assertion count from Mockery ## Code After: <?php declare(strict_types = 1); namespace Churn\Tests; use Mockery as m; use PHPUnit\F...
<?php declare(strict_types = 1); namespace Churn\Tests; + use Mockery as m; use PHPUnit\Framework\TestCase; abstract class BaseTestCase extends TestCase { - + /** + * @see https://github.com/phpspec/prophecy/issues/366#issuecomment-359587114 + */ + protected function tearDown() + ...
9
0.9
8
1
c6da745652b89f8d68242f30a834917429a970fd
ci_environment/kerl/attributes/source.rb
ci_environment/kerl/attributes/source.rb
default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B R16B01 R16B02 R16B03 R16B03-1 17.0-rc1 17.0-rc2) default[:kerl][:path] = "/usr/local/bin/kerl"
default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B R16B01 R16B02 R16B03 R16B03-1 17.0) default[:kerl][:path] = "/usr/local/bin/kerl"
Support Erlang 17.0 with kerl
Support Erlang 17.0 with kerl Also drop support for the previous Erlang 17.0 release candidates.
Ruby
mit
ljharb/travis-cookbooks,spurti-chopra/travis-cookbooks,tianon/travis-cookbooks,tianon/travis-cookbooks,Acidburn0zzz/travis-cookbooks,bd808/travis-cookbooks,vinaykaradia/travis-cookbook-cloned,Zarthus/travis-cookbooks,dracos/travis-cookbooks,ljharb/travis-cookbooks,tianon/travis-cookbooks,Zarthus/travis-cookbooks,vinayk...
ruby
## Code Before: default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B R16B01 R16B02 R16B03 R16B03-1 17.0-rc1 17.0-rc2) default[:kerl][:path] = "/usr/local/bin/kerl" ## Instruction: Support Erlang 17.0 with kerl Also drop support for the previous Erlang 17.0 release candidates. ## Code...
- default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B R16B01 R16B02 R16B03 R16B03-1 17.0-rc1 17.0-rc2) ? ------------- + default[:kerl][:releases] = %w(R14B02 R14B03 R14B0...
2
1
1
1
6e984b602e4f4c6f13a8a956eac03f214b6ccef1
README.md
README.md
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git) # installation 1. Download pyseeta(https://github.com/TuXiaokang/pyseeta.git) 2. `git submodule update --init --recursive` 3. Build `SeetaFaceEngine` dynamic library. on unix ```bash cd SeetaFaceEngine/ mkdir Release; cd R...
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git) # installation 1. Download pyseeta(https://github.com/TuXiaokang/pyseeta.git) 2. `git submodule update --init --recursive` 3. Build `SeetaFaceEngine` dynamic library. on unix ```bash cd SeetaFaceEngine/ mkdir Release; cd R...
Modify install command on linux
Modify install command on linux
Markdown
mit
TuXiaokang/pyseeta
markdown
## Code Before: python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git) # installation 1. Download pyseeta(https://github.com/TuXiaokang/pyseeta.git) 2. `git submodule update --init --recursive` 3. Build `SeetaFaceEngine` dynamic library. on unix ```bash cd SeetaFaceEngine/ mkd...
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git) # installation 1. Download pyseeta(https://github.com/TuXiaokang/pyseeta.git) 2. `git submodule update --init --recursive` 3. Build `SeetaFaceEngine` dynamic library. on unix ```bash cd SeetaFaceEngine/ ...
14
0.451613
10
4
c37468f14ca65b16874f4fa135b3b764724159f3
openstack/kubernikus/templates/seed.yaml
openstack/kubernikus/templates/seed.yaml
apiVersion: openstack.stable.sap.cc/v1 kind: OpenstackSeed metadata: name: kubernikus-seed spec: requires: - monsoon3/keystone-seed - monsoon3/domain-ccadmin-seed - monsoon3/domain-default-seed domains: - name: Default users: - name: kubernikus-terraform description: "Kubernikus Terraform ...
apiVersion: openstack.stable.sap.cc/v1 kind: OpenstackSeed metadata: name: kubernikus-seed spec: requires: - monsoon3/keystone-seed - monsoon3/domain-ccadmin-seed - monsoon3/domain-default-seed domains: - name: Default users: - name: kubernikus-terraform description: "Kubernikus Terraform ...
Allow kubernikus-terraform to have the domain admin role
Allow kubernikus-terraform to have the domain admin role
YAML
apache-2.0
sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts
yaml
## Code Before: apiVersion: openstack.stable.sap.cc/v1 kind: OpenstackSeed metadata: name: kubernikus-seed spec: requires: - monsoon3/keystone-seed - monsoon3/domain-ccadmin-seed - monsoon3/domain-default-seed domains: - name: Default users: - name: kubernikus-terraform description: "Kuber...
apiVersion: openstack.stable.sap.cc/v1 kind: OpenstackSeed metadata: name: kubernikus-seed spec: requires: - monsoon3/keystone-seed - monsoon3/domain-ccadmin-seed - monsoon3/domain-default-seed domains: - name: Default users: - name: kubernikus-terraform des...
2
0.071429
2
0
08fab995cccffd35a7f6618c539394a38c3eb0d8
test/specs/scenarios.js
test/specs/scenarios.js
const expect = require('expect'); const { run, createProject } = require('../cli'); describe('Child Entries', () => { beforeEach(createProject); it('should be able to delete a child entry with a new configuration', function* () { const firstConfig = { parent: { entry: 'entryToDelete' }, ...
const expect = require('expect'); const { run, createProject } = require('../cli'); describe('Scenarios', () => { beforeEach(createProject); describe('Child Entries', () => { it('should be able to delete a child entry with a new configuration', function* () { const firstConfig = { ...
Make the issue appear in the tests
Make the issue appear in the tests
JavaScript
mit
marmelab/comfygure
javascript
## Code Before: const expect = require('expect'); const { run, createProject } = require('../cli'); describe('Child Entries', () => { beforeEach(createProject); it('should be able to delete a child entry with a new configuration', function* () { const firstConfig = { parent: { entry: 'entr...
const expect = require('expect'); const { run, createProject } = require('../cli'); - describe('Child Entries', () => { ? ^^^^^^^ ^ ^ + describe('Scenarios', () => { ? ^^^ ^ ^ beforeEach(createProject); + describe('Child Entries', () => { - it('should be able to delete a ...
48
1.655172
31
17
3a1615238d4500f0fa7b9eea9ee2bfe460bc21f9
cax/tasks/purity.py
cax/tasks/purity.py
from sympy.parsing.sympy_parser import parse_expr from pax import units from cax import config from cax.task import Task class AddElectronLifetime(Task): "Add electron lifetime to dataset" def __init__(self): self.collection_purity = config.mongo_collection('purity') Task.__init__(self) ...
from sympy.parsing.sympy_parser import parse_expr from pax import units from cax import config from cax.task import Task class AddElectronLifetime(Task): "Add electron lifetime to dataset" def __init__(self): self.collection_purity = config.mongo_collection('purity') Task.__init__(self) ...
Convert lifetime to float instead of sympy type.
Convert lifetime to float instead of sympy type.
Python
isc
XENON1T/cax,XENON1T/cax
python
## Code Before: from sympy.parsing.sympy_parser import parse_expr from pax import units from cax import config from cax.task import Task class AddElectronLifetime(Task): "Add electron lifetime to dataset" def __init__(self): self.collection_purity = config.mongo_collection('purity') Task.__...
from sympy.parsing.sympy_parser import parse_expr from pax import units from cax import config from cax.task import Task class AddElectronLifetime(Task): "Add electron lifetime to dataset" def __init__(self): self.collection_purity = config.mongo_collection('purity') ...
1
0.025
1
0
fc136b02dff09c56297a694fd25a68137f4c74f6
README.md
README.md
[![Build Status](https://travis-ci.org/venmo/feature_ramp.svg?branch=master)](https://travis-ci.org/venmo/feature_ramp) Supports toggling and ramping features via a lightweight Redis backend.
[![Build Status](https://travis-ci.org/venmo/feature_ramp.svg?branch=master)](https://travis-ci.org/venmo/feature_ramp) Supports [feature toggling](http://martinfowler.com/bliki/FeatureToggle.html) and ramping features via a lightweight Redis backend. Installation ------------------ Feature ramp requires requires a r...
Add installationa and get started sections.
Add installationa and get started sections.
Markdown
mit
venmo/feature_ramp
markdown
## Code Before: [![Build Status](https://travis-ci.org/venmo/feature_ramp.svg?branch=master)](https://travis-ci.org/venmo/feature_ramp) Supports toggling and ramping features via a lightweight Redis backend. ## Instruction: Add installationa and get started sections. ## Code After: [![Build Status](https://travis-ci...
[![Build Status](https://travis-ci.org/venmo/feature_ramp.svg?branch=master)](https://travis-ci.org/venmo/feature_ramp) - Supports toggling and ramping features via a lightweight Redis backend. + Supports [feature toggling](http://martinfowler.com/bliki/FeatureToggle.html) and ramping features via a lightweight Re...
21
7
20
1
ef73f2500caa1d0f193d951446aa938705978afc
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.6) project (pstack) add_executable(pstack dead.cc dump.cc dwarf.cc elf.cc live.cc process.cc proc_service.cc pstack.cc reader.cc ) add_executable(t t.cc) if(NOT ELF_BITS) if(CMAKE_SIZEOF_VOID_P EQUAL 8) SET(ELF_BITS 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SIZEOF_VOID_P EQUA...
cmake_minimum_required(VERSION 2.6) project (pstack) add_executable(pstack dead.cc dump.cc dwarf.cc elf.cc live.cc process.cc proc_service.cc pstack.cc reader.cc ) add_executable(t t.cc) if(NOT ELF_BITS) if(CMAKE_SIZEOF_VOID_P EQUAL 8) SET(ELF_BITS 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SIZEOF_VOID_P EQUA...
Add flags for 32-bit builds.
Add flags for 32-bit builds.
Text
bsd-2-clause
peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack
text
## Code Before: cmake_minimum_required(VERSION 2.6) project (pstack) add_executable(pstack dead.cc dump.cc dwarf.cc elf.cc live.cc process.cc proc_service.cc pstack.cc reader.cc ) add_executable(t t.cc) if(NOT ELF_BITS) if(CMAKE_SIZEOF_VOID_P EQUAL 8) SET(ELF_BITS 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SI...
cmake_minimum_required(VERSION 2.6) project (pstack) add_executable(pstack dead.cc dump.cc dwarf.cc elf.cc live.cc process.cc proc_service.cc pstack.cc reader.cc ) add_executable(t t.cc) if(NOT ELF_BITS) if(CMAKE_SIZEOF_VOID_P EQUAL 8) SET(ELF_BITS 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAK...
6
0.206897
6
0
75b1fdc9f290c85b4d469cdce5e5d1154aed4881
indra/tests/test_util.py
indra/tests/test_util.py
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import xml.etree.ElementTree as ET from indra.util import UnicodeXMLTreeBuilder as UTB from indra.util import unicode_strs from io import BytesIO def test_unicode_tree_builder(): xml = u'<html><bar>asdf</bar></h...
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import json import xml.etree.ElementTree as ET from indra.util import UnicodeXMLTreeBuilder as UTB, kappy_json_to_graph from indra.util import unicode_strs from io import BytesIO def test_unicode_tree_builder(): ...
Implement test for basic graph.
Implement test for basic graph.
Python
bsd-2-clause
pvtodorov/indra,johnbachman/indra,sorgerlab/belpy,pvtodorov/indra,sorgerlab/indra,sorgerlab/indra,pvtodorov/indra,bgyori/indra,sorgerlab/indra,sorgerlab/belpy,johnbachman/indra,pvtodorov/indra,bgyori/indra,johnbachman/belpy,johnbachman/belpy,sorgerlab/belpy,johnbachman/belpy,bgyori/indra,johnbachman/indra
python
## Code Before: from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import xml.etree.ElementTree as ET from indra.util import UnicodeXMLTreeBuilder as UTB from indra.util import unicode_strs from io import BytesIO def test_unicode_tree_builder(): xml = u'<html><b...
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str + + import json import xml.etree.ElementTree as ET - from indra.util import UnicodeXMLTreeBuilder as UTB + from indra.util import UnicodeXMLTreeBuilder as UTB, kappy_json_to_graph ? ...
18
1.285714
17
1
947d14955244ddd134c339143a3a0c8fc70b56bf
lib/hooloo/show.rb
lib/hooloo/show.rb
class Hooloo::Show < Hooloo::MozartHash def self.popular_today(args={limit: 10, position: 0}) args.merge!({sort: 'popular_today'}) Hooloo.request('shows', args)['data'].map { |x| new x['show'] } end def initialize(id) super if id.is_a? Fixnum @obj = Hooloo.request("shows/#{id}")['data'][0]['...
class Hooloo::Show < Hooloo::MozartHash def self.popular_today(args={}) Hooloo.paginated_request('shows', { sort: 'popular_today' }.merge(args)) { |g, x| g << Hooloo::Show.new(x['show']) } end def initialize(id) super if id.is_a? Fixnum @obj = Hooloo.request("shows/#{id}")['data'][0]['...
Switch Hooloo::Show.popular_today to return enumerator
Switch Hooloo::Show.popular_today to return enumerator
Ruby
mit
NuckChorris/hooloo
ruby
## Code Before: class Hooloo::Show < Hooloo::MozartHash def self.popular_today(args={limit: 10, position: 0}) args.merge!({sort: 'popular_today'}) Hooloo.request('shows', args)['data'].map { |x| new x['show'] } end def initialize(id) super if id.is_a? Fixnum @obj = Hooloo.request("shows/#{id...
class Hooloo::Show < Hooloo::MozartHash - def self.popular_today(args={limit: 10, position: 0}) ? ---------------------- + def self.popular_today(args={}) - args.merge!({sort: 'popular_today'}) - Hooloo.request('shows', args)['data'].map { |x| new x['show'] } + Hooloo.p...
7
0.304348
4
3
e3878267851061f30a3692f80d51d152bac89db7
lib/elasticsearch/bulk_index_worker.rb
lib/elasticsearch/bulk_index_worker.rb
require "sidekiq" require "config" require "sidekiq_json_encoding_patch" require "failed_job_worker" module Elasticsearch class BulkIndexWorker include Sidekiq::Worker sidekiq_options :retry => 5 # Logger is defined on the class for use inthe `sidekiq_retries_exhausted` # block, and as an instance m...
require "sidekiq" require "sidekiq_json_encoding_patch" require "failed_job_worker" module Elasticsearch # This class requires the `config.rb` file to be loaded, since it requires # access to the `search_config` setting, but including it here can cause a # circular require dependency, from: # # SearchConfi...
Resolve a circular dependency in indexing worker.
Resolve a circular dependency in indexing worker.
Ruby
mit
alphagov/rummager,theodi/rummager,alphagov/rummager,theodi/rummager
ruby
## Code Before: require "sidekiq" require "config" require "sidekiq_json_encoding_patch" require "failed_job_worker" module Elasticsearch class BulkIndexWorker include Sidekiq::Worker sidekiq_options :retry => 5 # Logger is defined on the class for use inthe `sidekiq_retries_exhausted` # block, and ...
require "sidekiq" - require "config" require "sidekiq_json_encoding_patch" require "failed_job_worker" module Elasticsearch + # This class requires the `config.rb` file to be loaded, since it requires + # access to the `search_config` setting, but including it here can cause a + # circular require depe...
7
0.175
6
1
6b1ce991282be24d4a112cd5a20a0ed476a834c1
stats/stats.go
stats/stats.go
package stats type SingleStat struct { TotalGB float32 UsedGB float32 AvailableGB float32 UsagePercentage float32 } type MultipleStat struct { AverageUsagePercentage float32 UsagePercentagePerCore []float32 }
package stats type SingleStat struct { TotalGB float32 `json:"totalGB"` UsedGB float32 `json:"usedGB"` AvailableGB float32 `json:"availableGB"` UsagePercentage float32 `json:"usagePercentage"` } type MultipleStat struct { AverageUsagePercentage float32 `json:"averageUsagePercentage"` Usag...
Define JSON data structure serialization.
Define JSON data structure serialization.
Go
mit
julianespinel/mbu
go
## Code Before: package stats type SingleStat struct { TotalGB float32 UsedGB float32 AvailableGB float32 UsagePercentage float32 } type MultipleStat struct { AverageUsagePercentage float32 UsagePercentagePerCore []float32 } ## Instruction: Define JSON data structure serialization. ## Code After: package stat...
package stats type SingleStat struct { - TotalGB float32 - UsedGB float32 - AvailableGB float32 - UsagePercentage float32 + TotalGB float32 `json:"totalGB"` + UsedGB float32 `json:"usedGB"` + AvailableGB float32 `json:"availableGB"` + UsagePercentage float32 `json:"usagePercentage"` ...
18
1.384615
12
6
a0adfab8c2fdac2f2b8bad8b1f036bd35b27a06c
setup.py
setup.py
import re import setuptools import sys if not sys.version_info >= (3, 5): exit("Sorry, Python must be later than 3.5.") setuptools.setup( name="tensorflow-qnd", version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n', open("qnd/__init__.py").read()).group(1), descri...
import re import setuptools import sys if not sys.version_info >= (3, 5): exit("Sorry, Python must be later than 3.5.") setuptools.setup( name="tensorflow-qnd", version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n', open("qnd/__init__.py").read()).group(1), descri...
Add Python 3.6 to topics
Add Python 3.6 to topics
Python
unlicense
raviqqe/tensorflow-qnd,raviqqe/tensorflow-qnd
python
## Code Before: import re import setuptools import sys if not sys.version_info >= (3, 5): exit("Sorry, Python must be later than 3.5.") setuptools.setup( name="tensorflow-qnd", version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n', open("qnd/__init__.py").read()).grou...
import re import setuptools import sys if not sys.version_info >= (3, 5): exit("Sorry, Python must be later than 3.5.") setuptools.setup( name="tensorflow-qnd", version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n', open("qnd/__init__.py").re...
1
0.033333
1
0
73ee6d3d5804a8c037b7f8959177e68227bcf071
tests/RegressionAlgorithm/LinearLeastSquaresTest.php
tests/RegressionAlgorithm/LinearLeastSquaresTest.php
<?php use mcordingley\Regression\RegressionAlgorithm\LinearLeastSquares; class LinearLeastSquaresTest extends PHPUnit_Framework_TestCase { protected $strategy; public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); ...
<?php use mcordingley\Regression\RegressionAlgorithm\LinearLeastSquares; class LinearLeastSquaresTest extends PHPUnit_Framework_TestCase { protected $strategy; public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); ...
Remove tests that targeted removed code paths in LinearLeastSquares.
Remove tests that targeted removed code paths in LinearLeastSquares.
PHP
mit
dbirchak/Regression,mcordingley/Regression
php
## Code Before: <?php use mcordingley\Regression\RegressionAlgorithm\LinearLeastSquares; class LinearLeastSquaresTest extends PHPUnit_Framework_TestCase { protected $strategy; public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data,...
<?php use mcordingley\Regression\RegressionAlgorithm\LinearLeastSquares; class LinearLeastSquaresTest extends PHPUnit_Framework_TestCase { protected $strategy; public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name...
24
0.461538
1
23
1cf5a0fe163a7769a83abc3cf5b14b91089a5f28
lib/s3.js
lib/s3.js
var assert = require('assert') var AWS = require('aws-sdk') /** * Create s3 client * @param {Object} config AWS configuration * @returns {Object} s3 client and helpers */ module.exports = function s3Loader (config) { assert(config, 's3Loader requires config') var client = new AWS.S3(config) client.endpoint ...
const assert = require('assert') const AWS = require('aws-sdk') /** * Create s3 client * @param {Object} config AWS configuration * @returns {Object} s3 client and helpers */ module.exports = function s3Loader (config) { assert(config, 's3Loader requires config') const client = new AWS.S3(config) return { ...
Use const and remove useless lines
Use const and remove useless lines
JavaScript
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
javascript
## Code Before: var assert = require('assert') var AWS = require('aws-sdk') /** * Create s3 client * @param {Object} config AWS configuration * @returns {Object} s3 client and helpers */ module.exports = function s3Loader (config) { assert(config, 's3Loader requires config') var client = new AWS.S3(config) ...
- var assert = require('assert') ? ^^^ + const assert = require('assert') ? ^^^^^ - var AWS = require('aws-sdk') ? ^^^ + const AWS = require('aws-sdk') ? ^^^^^ /** * Create s3 client * @param {Object} config AWS configuration * @returns {Object} s3 client and helpers */ module.exports = function ...
8
0.25
3
5
6a8c8bc0e407327e5c0e4cae3d4d6ace179a6940
webserver/codemanagement/serializers.py
webserver/codemanagement/serializers.py
from rest_framework import serializers from greta.models import Repository from competition.models import Team from .models import TeamClient, TeamSubmission class TeamSerializer(serializers.ModelSerializer): class Meta: model = Team fields = ('id', 'name', 'slug') class RepoSerializer(seriali...
from rest_framework import serializers from greta.models import Repository from competition.models import Team from .models import TeamClient, TeamSubmission class TeamSerializer(serializers.ModelSerializer): class Meta: model = Team fields = ('id', 'name', 'slug', 'eligible_to_win') class Rep...
Add team eligibility to API
Add team eligibility to API
Python
bsd-3-clause
siggame/webserver,siggame/webserver,siggame/webserver
python
## Code Before: from rest_framework import serializers from greta.models import Repository from competition.models import Team from .models import TeamClient, TeamSubmission class TeamSerializer(serializers.ModelSerializer): class Meta: model = Team fields = ('id', 'name', 'slug') class RepoSe...
from rest_framework import serializers from greta.models import Repository from competition.models import Team from .models import TeamClient, TeamSubmission class TeamSerializer(serializers.ModelSerializer): class Meta: model = Team - fields = ('id', 'name', 'slug') + ...
2
0.033898
1
1
b8ae4f90424eca35575f23ecd013d4e6abb4c649
app/views/outpost/resource/edit.html.erb
app/views/outpost/resource/edit.html.erb
<% add_to_page_title "Editing: #{@record.to_title}" %> <%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %> <%= render 'errors', f: f %> <%= render 'form_fields', record: @record, f: f %> <%= render 'extra_fields', f: f %> <%= render "/outpost/shared/submit_row", record: @recor...
<% add_to_page_title "Editing: #{@record.to_title}" %> <%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %> <%= render 'errors', f: f %> <%= render 'form_fields', record: @record, f: f %> <%= render 'extra_fields', f: f %> <%= render "/outpost/shared/submit_row", record: @recor...
Add some more stuff to the sidebar by default
Add some more stuff to the sidebar by default
HTML+ERB
mit
SCPR/outpost,Ravenstine/outpost,Ravenstine/outpost,SCPR/outpost,SCPR/outpost,Ravenstine/outpost,bricker/outpost,bricker/outpost
html+erb
## Code Before: <% add_to_page_title "Editing: #{@record.to_title}" %> <%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %> <%= render 'errors', f: f %> <%= render 'form_fields', record: @record, f: f %> <%= render 'extra_fields', f: f %> <%= render "/outpost/shared/submit_row"...
<% add_to_page_title "Editing: #{@record.to_title}" %> <%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %> <%= render 'errors', f: f %> <%= render 'form_fields', record: @record, f: f %> <%= render 'extra_fields', f: f %> <%= render "/outpost/shared/submit_row", ...
14
0.466667
14
0
43c48cdbc5cf5793ad6f0f46cde5ca91ad2b8756
core/metautils/src/vectorLinkdef.h
core/metautils/src/vectorLinkdef.h
using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pragma create TClass vector<unsigned int>; #pragma cre...
using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pragma create TClass vector<unsigned int>; #pragma cre...
Add missing TClass creation for vector<Long64_t> and vector<ULong64_t>
Add missing TClass creation for vector<Long64_t> and vector<ULong64_t> git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@38659 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT
c
## Code Before: using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pragma create TClass vector<unsigned i...
using namespace std; #endif #pragma create TClass vector<bool>; #pragma create TClass vector<char>; #pragma create TClass vector<short>; #pragma create TClass vector<long>; #pragma create TClass vector<unsigned char>; #pragma create TClass vector<unsigned short>; #pragma create TClass vector<unsign...
2
0.095238
2
0
ae5f24564b2fb8c155332db8d19d7171f592e50b
test-requirements.txt
test-requirements.txt
hacking>=0.5.6,<0.8 # Optional backend: SQL pysqlite # Optional backend: Memcache python-memcached # Optional backend: LDAP # authenticate against an existing LDAP server python-ldap==2.3.13 # Testing # computes code coverage percentages coverage>=3.6 # fixture stubbing fixtures>=0.3.14 # mock object framework mock...
hacking>=0.5.6,<0.8 # Optional backend: SQL pysqlite # Optional backend: Memcache python-memcached # Optional backend: LDAP # authenticate against an existing LDAP server python-ldap==2.3.13 # Testing # computes code coverage percentages coverage>=3.6 # fixture stubbing fixtures>=0.3.14 # mock object framework mock...
Add pycrypto as a test-requirement
Add pycrypto as a test-requirement Adding pycrypto as a test-requirement to allow for testing the optional KVS encryption support (ENCRYPT and HMAC validation of values). bp: dogpile-kvs-backends Change-Id: I2e9184dc66393cf805b18abd3822668a6f3792fa
Text
apache-2.0
himanshu-setia/keystone,jumpstarter-io/keystone,jonnary/keystone,jonnary/keystone,openstack/keystone,derekchiang/keystone,mahak/keystone,UTSA-ICS/keystone-kerberos,openstack/keystone,rodrigods/keystone,ging/keystone,mahak/keystone,klmitch/keystone,rajalokan/keystone,dstanek/keystone,derekchiang/keystone,promptworks/key...
text
## Code Before: hacking>=0.5.6,<0.8 # Optional backend: SQL pysqlite # Optional backend: Memcache python-memcached # Optional backend: LDAP # authenticate against an existing LDAP server python-ldap==2.3.13 # Testing # computes code coverage percentages coverage>=3.6 # fixture stubbing fixtures>=0.3.14 # mock objec...
hacking>=0.5.6,<0.8 # Optional backend: SQL pysqlite # Optional backend: Memcache python-memcached # Optional backend: LDAP # authenticate against an existing LDAP server python-ldap==2.3.13 # Testing # computes code coverage percentages coverage>=3.6 # fixture stubbing fixtures>=0...
2
0.047619
2
0
44884df8170fff0ad367df479b937ea6d3e588df
deploy.sh
deploy.sh
git update-ref HEAD master git checkout master mvn release:prepare -B mvn release:perform --settings deploy-settings.xml
git update-ref HEAD refs/heads/master git checkout master mvn release:prepare -B mvn release:perform --settings deploy-settings.xml
Update to update-ref to fix maven release plugin
Update to update-ref to fix maven release plugin
Shell
mit
modernmaster/katas,modernmaster/katas,modernmaster/katas,modernmaster/katas
shell
## Code Before: git update-ref HEAD master git checkout master mvn release:prepare -B mvn release:perform --settings deploy-settings.xml ## Instruction: Update to update-ref to fix maven release plugin ## Code After: git update-ref HEAD refs/heads/master git checkout master mvn release:prepare -B mvn release:perform -...
- git update-ref HEAD master + git update-ref HEAD refs/heads/master ? +++++++++++ git checkout master mvn release:prepare -B mvn release:perform --settings deploy-settings.xml
2
0.5
1
1
45dcdaf4eb7fa26413345f5920999a5f317afdeb
lib/refills/import_generator.rb
lib/refills/import_generator.rb
require 'rails/generators' module Refills class ImportGenerator < Rails::Generators::Base desc 'Copy refills' source_root File.expand_path("../../../source", __FILE__) argument :snippet, type: :string, required: true def copy_html copy_file "_#{snippet}.html.erb", "app/views/refills/_#{snippet...
require 'rails/generators' module Refills class ImportGenerator < Rails::Generators::Base desc 'Copy refills' source_root File.expand_path("../../../source", __FILE__) argument :snippet, type: :string, required: true def copy_html copy_file view_name(snippet), view_destination end def...
Use Rails naming conventions for partials
Use Rails naming conventions for partials
Ruby
mit
dydx/refills,smithdamen/refills,mehdroid/refills,greyhwndz/refills,DropsOfSerenity/refills,thoughtbot/refills,mehdroid/refills,thoughtbot/refills,cllns/refills,hlogmans/refills,smithdamen/refills,greyhwndz/refills,tranc99/refills,tranc99/refills,cllns/refills,dydx/refills,mehdroid/refills,thoughtbot/refills,thoughtbot/...
ruby
## Code Before: require 'rails/generators' module Refills class ImportGenerator < Rails::Generators::Base desc 'Copy refills' source_root File.expand_path("../../../source", __FILE__) argument :snippet, type: :string, required: true def copy_html copy_file "_#{snippet}.html.erb", "app/views/re...
require 'rails/generators' module Refills class ImportGenerator < Rails::Generators::Base desc 'Copy refills' source_root File.expand_path("../../../source", __FILE__) argument :snippet, type: :string, required: true def copy_html - copy_file "_#{snippet}.html.erb", "app/view...
30
1.428571
28
2
fa1a08aed5bc6659304097d5ad7e653c553c1b11
cactus/utils/file.py
cactus/utils/file.py
import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" ...
import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a give...
Use terminal md5 for perf
Use terminal md5 for perf
Python
bsd-3-clause
koenbok/Cactus,danielmorosan/Cactus,juvham/Cactus,dreadatour/Cactus,Bluetide/Cactus,chaudum/Cactus,koobs/Cactus,chaudum/Cactus,PegasusWang/Cactus,juvham/Cactus,eudicots/Cactus,Knownly/Cactus,danielmorosan/Cactus,page-io/Cactus,juvham/Cactus,fjxhkj/Cactus,koobs/Cactus,ibarria0/Cactus,PegasusWang/Cactus,danielmorosan/Cac...
python
## Code Before: import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given ...
import os import cStringIO import gzip import hashlib + import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def c...
8
0.173913
6
2
b9b6985905c2146d3612104a1e21272dc77d8133
app/views/pages/show.blade.php
app/views/pages/show.blade.php
@extends('layout') @section('content') <div class="wrapper"> <h1 class="highlighted">{{{ $page->title }}}</h1> {{ $page->content_html }} </div> @stop @section('actions') <li>{{ link_to_route('pages.edit', 'Edit Page', [$page->slug], ['class' => 'btn secondary']) }}</li> @stop
@extends('layout') @section('content') <div class="wrapper"> <h1>{{{ $page->title }}}</h1> {{ $page->content_html }} </div> @stop @section('actions') <li>{{ link_to_route('pages.edit', 'Edit Page', [$page->slug], ['class' => 'btn secondary']) }}</li> @stop
Remove highlighted title on page so it doesn't conflict with nav.
Remove highlighted title on page so it doesn't conflict with nav.
PHP
mit
DoSomething/voting-app,axton21/voting-app,DoSomething/voting-app,axton21/voting-app,DoSomething/voting-app,axton21/voting-app,DoSomething/voting-app
php
## Code Before: @extends('layout') @section('content') <div class="wrapper"> <h1 class="highlighted">{{{ $page->title }}}</h1> {{ $page->content_html }} </div> @stop @section('actions') <li>{{ link_to_route('pages.edit', 'Edit Page', [$page->slug], ['class' => 'btn secondary']) }}</li> @stop ## Instru...
@extends('layout') @section('content') <div class="wrapper"> - <h1 class="highlighted">{{{ $page->title }}}</h1> ? -------------------- + <h1>{{{ $page->title }}}</h1> {{ $page->content_html }} </div> @stop @section('actions') <li>{{ link_to_route('pages.edit', 'Edit P...
2
0.153846
1
1
a3d4149b667f00bc44401292b7ed95f705e1b2e2
source/class/test/Mammalian.js
source/class/test/Mammalian.js
/** * This is a generic Interface for Mammalian Animals * * Those class of Animals have different things in * common - compared to other animal classes like * {api.test.Fish}. */ core.Interface('api.test.Mammalian', { properties: { /** * All Mammalians have a fur! */ fur: { type: 'Object', fire...
/** * This is a generic Interface for Mammalian Animals * * Those class of Animals have different things in * common - compared to other animal classes like * {api.test.Fish}. */ core.Interface('api.test.Mammalian', { properties: { /** * All Mammalians have a fur! */ fur: { type: 'Object', fire...
Make no sense to have apply routines in interface as it is not visible from the outside
Make no sense to have apply routines in interface as it is not visible from the outside
JavaScript
mit
zynga/apibrowser,zynga/apibrowser
javascript
## Code Before: /** * This is a generic Interface for Mammalian Animals * * Those class of Animals have different things in * common - compared to other animal classes like * {api.test.Fish}. */ core.Interface('api.test.Mammalian', { properties: { /** * All Mammalians have a fur! */ fur: { type: '...
/** * This is a generic Interface for Mammalian Animals * * Those class of Animals have different things in * common - compared to other animal classes like * {api.test.Fish}. */ core.Interface('api.test.Mammalian', { properties: { /** * All Mammalians have a fur! */ fur...
12
0.266667
3
9
baddcb2cf40946ddf1eb5c11f2bffdb7136da926
README.md
README.md
Jekyll support for Capistrano 3.x. ## Installation Add this line to your application's Gemfile: ```ruby gem 'capistrano-jekyll' ``` And then execute: $ bundle Or install it yourself as: $ gem install capistrano-jekyll ## Usage Require in *Capfile* to use the default task: ```ruby require 'capistrano/...
Jekyll support for Capistrano 3.x. ## Installation Add this line to your application's Gemfile: ```ruby gem 'capistrano-jekyll' ``` And then execute: $ bundle Or install it yourself as: $ gem install capistrano-jekyll ## Usage Require in *Capfile* to use the default task: ```ruby require 'capistrano/...
Add list of tasks to readme
Add list of tasks to readme
Markdown
mit
ne1ro/capistrano-jekyll
markdown
## Code Before: Jekyll support for Capistrano 3.x. ## Installation Add this line to your application's Gemfile: ```ruby gem 'capistrano-jekyll' ``` And then execute: $ bundle Or install it yourself as: $ gem install capistrano-jekyll ## Usage Require in *Capfile* to use the default task: ```ruby requ...
Jekyll support for Capistrano 3.x. ## Installation Add this line to your application's Gemfile: ```ruby gem 'capistrano-jekyll' ``` And then execute: $ bundle Or install it yourself as: $ gem install capistrano-jekyll ## Usage Require in *Capfile* to use the...
5
0.142857
5
0
312f4ceebb9019dbd9b8ead27d9d386324b89064
README.md
README.md
[![Build status](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate.svg?branch=master)](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate) Migration file requirements * initial_<ver1> * <ver1>_<ver2>_<whatever> ##How to run the tests Execute: 1. `dev/setup_venv.sh` 2. `unit-tests.sh`
[![Build status](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate.svg?branch=master)](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate) ![Python versions supported](https://img.shields.io/badge/supports%20python-2.7%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue.svg) Migration file req...
Add badge with python versions supported
[DOC] Add badge with python versions supported
Markdown
mit
aleasoluciones/simpledatamigrate,aleasoluciones/simpledatamigrate
markdown
## Code Before: [![Build status](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate.svg?branch=master)](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate) Migration file requirements * initial_<ver1> * <ver1>_<ver2>_<whatever> ##How to run the tests Execute: 1. `dev/setup_venv.sh` 2. `un...
- [![Build status](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate.svg?branch=master)](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate) + [![Build status](https://secure.travis-ci.org/aleasoluciones/simpledatamigrate.svg?branch=master)](https://secure.travis-ci.org/aleasoluciones/simpleda...
2
0.153846
1
1
2fede26d3b65642f9fa39fd682414ed55a03ef31
mybower-test.js
mybower-test.js
var bower = require('bower'); var mybowerConfig = require('./mybower.json'); for (var module in mybowerConfig) { if (mybowerConfig[module].local === true) continue; bower.commands.install([mybowerConfig[module].url], {}, {"directory": mybowerConfig[module].directory}) } //console.log(bower.commands.install(['j...
var bower = require('bower'); var mybowerConfig = require('./mybower.json'); for (var module in mybowerConfig) { if (mybowerConfig[module].local === true) continue; bower.commands.install([module + "=" + mybowerConfig[module].url], {}, {"directory": mybowerConfig[module].directory}) }
Install into directory that has the module name.
Install into directory that has the module name.
JavaScript
mit
anisdjer/mybower-test,anisdjer/mybower
javascript
## Code Before: var bower = require('bower'); var mybowerConfig = require('./mybower.json'); for (var module in mybowerConfig) { if (mybowerConfig[module].local === true) continue; bower.commands.install([mybowerConfig[module].url], {}, {"directory": mybowerConfig[module].directory}) } //console.log(bower.comm...
var bower = require('bower'); var mybowerConfig = require('./mybower.json'); for (var module in mybowerConfig) { if (mybowerConfig[module].local === true) continue; - bower.commands.install([mybowerConfig[module].url], {}, {"directory": mybowerConfig[module].directory}) + bower.commands.install([...
3
0.375
1
2
03142c00a6c116206c38509ea1b1990a6a2c0b27
bin/sync-npm.sh
bin/sync-npm.sh
set -e cd "`dirname $0`/.." # Install dependencies. pip install -e . pip install ijson==2.3.0 curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5 cmake.tgz' \ | sha256sum -c /dev/stdin --status tar zxf cmake.tgz PA...
set -e cd "`dirname $0`/.." # Install dependencies. pip install -e . pip install ijson==2.3.0 curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5 cmake.tgz' \ | sha256sum -c /dev/stdin --status tar zxf cmake.tgz PA...
Put libyajl where we can find it
Put libyajl where we can find it This location is already in LD_LIBRARY_PATH.
Shell
mit
gratipay/gratipay.com,gratipay/gratipay.com,gratipay/gratipay.com,gratipay/gratipay.com
shell
## Code Before: set -e cd "`dirname $0`/.." # Install dependencies. pip install -e . pip install ijson==2.3.0 curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5 cmake.tgz' \ | sha256sum -c /dev/stdin --status tar ...
set -e cd "`dirname $0`/.." # Install dependencies. pip install -e . pip install ijson==2.3.0 curl https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz > cmake.tgz echo '5df4b69d9e85093ae78b1070d5cb9f824ce0bdd02528948c3f6a740e240083e5 cmake.tgz' \ | sha256sum -c /dev/stdin --statu...
4
0.16
2
2
35aa107f343546cbd0435de4d8cf5f5e841f094d
src/index.html.jade
src/index.html.jade
doctype html html(lang='en-us') head meta(http-equiv='Content-Type', content='text/html; charset=utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') meta(name='viewport', content='width=device-width, initial-scale=1.0') title Drink Machine | Try your luck for a morning beverage! ...
doctype html html(lang='en-us') head meta(http-equiv='Content-Type', content='text/html; charset=utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') meta(name='viewport', content='width=device-width, initial-scale=1.0') title Drink Machine | Try your luck for a morning beverage! ...
Add Reel modules classes to markup
Add Reel modules classes to markup
Jade
isc
bitfyre/drinkmachine
jade
## Code Before: doctype html html(lang='en-us') head meta(http-equiv='Content-Type', content='text/html; charset=utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') meta(name='viewport', content='width=device-width, initial-scale=1.0') title Drink Machine | Try your luck for a morni...
doctype html html(lang='en-us') head meta(http-equiv='Content-Type', content='text/html; charset=utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') meta(name='viewport', content='width=device-width, initial-scale=1.0') title Drink Machine | Try your luck for a morning...
8
0.470588
4
4
7d0480aa31d393bb026f2ff51a83625a1d8f792f
spec/lib/mr_darcy_spec.rb
spec/lib/mr_darcy_spec.rb
require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } describe '#promise' do When 'no driver is specified' do subject { MrDarcy.promise {} } it 'uses whichever driver is the default' do expect(MrDarcy).to receive(...
require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } # This spec doesn't pass on CI. I can't figure out why. # describe '#promise' do # When 'no driver is specified' do # subject { MrDarcy.promise {} } # it 'uses which...
Disable failing spec on CI.
Disable failing spec on CI.
Ruby
mit
jamesotron/MrDarcy
ruby
## Code Before: require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } describe '#promise' do When 'no driver is specified' do subject { MrDarcy.promise {} } it 'uses whichever driver is the default' do expect(MrDa...
require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } + # This spec doesn't pass on CI. I can't figure out why. - describe '#promise' do + # describe '#promise' do ? ++ - When 'no driver is specified' do + # Wh...
19
1.055556
10
9
d3457c409049ad5dd2789b345a452dd7d844fbaa
lib/db.js
lib/db.js
exports.get = function getMany(model, params) { } exports.add = function add(model, data) { } exports.update = function update(model, id, data) { } exports.delete = function delete(model, id, params) { }
function get(model, params, cb) { } function add(model, data, cb) { } function update(model, id, data, cb) { } function del(model, id, params, cb) { } function getNameFromModel(model) { return new model().tableName; } exports.get = get; exports.add = add; exports.update = update; exports.delete = del; exports.g...
Add function to get table name from model
Add function to get table name from model
JavaScript
mit
ganemone/bookshelf-restful
javascript
## Code Before: exports.get = function getMany(model, params) { } exports.add = function add(model, data) { } exports.update = function update(model, id, data) { } exports.delete = function delete(model, id, params) { } ## Instruction: Add function to get table name from model ## Code After: function get(model, p...
- exports.get = function getMany(model, params) { + function get(model, params, cb) { } - exports.add = function add(model, data) { ? -------------- + function add(model, data, cb) { ? ++++ } - exports.update = function update(model, id, data) { ? ----------------- + function upd...
18
1.5
14
4
1b9d453f6fe0d2128849f98922f082d6ccfbee69
channelfilter.py
channelfilter.py
import os import yaml class ChannelFilter(object): def __init__(self, path=None): if path is None: path = os.path.join(os.path.dirname(__file__), 'channels.yaml') with open(path) as f: self.config = yaml.load(f) print(self.config) @property def firehose_c...
import os import yaml class ChannelFilter(object): def __init__(self, path=None): if path is None: path = os.path.join(os.path.dirname(__file__), 'channels.yaml') with open(path) as f: self.config = yaml.load(f) print(self.config) @property def firehose_c...
Fix channel filtering to work properly
Fix channel filtering to work properly
Python
mit
wikimedia/labs-tools-wikibugs2,wikimedia/labs-tools-wikibugs2
python
## Code Before: import os import yaml class ChannelFilter(object): def __init__(self, path=None): if path is None: path = os.path.join(os.path.dirname(__file__), 'channels.yaml') with open(path) as f: self.config = yaml.load(f) print(self.config) @property ...
import os import yaml class ChannelFilter(object): def __init__(self, path=None): if path is None: path = os.path.join(os.path.dirname(__file__), 'channels.yaml') with open(path) as f: self.config = yaml.load(f) print(self.config) ...
14
0.341463
7
7
09ebeb873c83d51053ef6aa2d7c6ce47b4be5070
ckanext/archiver/helpers.py
ckanext/archiver/helpers.py
from ckan.plugins import toolkit as tk def archiver_resource_show(resource_id): data_dict = {'id': resource_id} return tk.get_action('archiver_resource_show')(data_dict) def archiver_is_resource_broken_html(resource): archival = resource.get('archiver') if not archival: return '<!-- No archi...
from ckan.plugins import toolkit as tk def archiver_resource_show(resource_id): data_dict = {'id': resource_id} return tk.get_action('archiver_resource_show')(data_dict) def archiver_is_resource_broken_html(resource): archival = resource.get('archiver') if not archival: return tk.literal('<!...
Hide comments meant as unseen
Hide comments meant as unseen
Python
mit
ckan/ckanext-archiver,datagovuk/ckanext-archiver,datagovuk/ckanext-archiver,ckan/ckanext-archiver,datagovuk/ckanext-archiver,ckan/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver
python
## Code Before: from ckan.plugins import toolkit as tk def archiver_resource_show(resource_id): data_dict = {'id': resource_id} return tk.get_action('archiver_resource_show')(data_dict) def archiver_is_resource_broken_html(resource): archival = resource.get('archiver') if not archival: retur...
from ckan.plugins import toolkit as tk def archiver_resource_show(resource_id): data_dict = {'id': resource_id} return tk.get_action('archiver_resource_show')(data_dict) def archiver_is_resource_broken_html(resource): archival = resource.get('archiver') if not archival: - ...
4
0.105263
2
2
036347b2eb779f87f88b44c34b8ed537786f9c90
src/mixins/_clearfix.scss
src/mixins/_clearfix.scss
/// Clears floats in IE 8+ /// @group Main /// @link http://nicolasgallagher.com/micro-clearfix-hack/ /// @link https://css-tricks.com/snippets/css/clear-fix/ @mixin fs-clearfix { &:after { clear: both; content: ''; display: table; } }
/// Clears floats in IE 8+ /// @group Main /// @link http://nicolasgallagher.com/micro-clearfix-hack/ /// @link https://css-tricks.com/snippets/css/clear-fix/ /// @ignore Consider replacing with “display: flow-root” once support is broad enough. /// @ignore https://caniuse.com/#feat=flow-root @mixin fs-clearfix { &:a...
Add comment to clearfix mixin
Add comment to clearfix mixin
SCSS
mit
Threespot/frontline-sass
scss
## Code Before: /// Clears floats in IE 8+ /// @group Main /// @link http://nicolasgallagher.com/micro-clearfix-hack/ /// @link https://css-tricks.com/snippets/css/clear-fix/ @mixin fs-clearfix { &:after { clear: both; content: ''; display: table; } } ## Instruction: Add comment to clearfix mixin ## C...
/// Clears floats in IE 8+ /// @group Main /// @link http://nicolasgallagher.com/micro-clearfix-hack/ /// @link https://css-tricks.com/snippets/css/clear-fix/ + /// @ignore Consider replacing with “display: flow-root” once support is broad enough. + /// @ignore https://caniuse.com/#feat=flow-root @mixin fs-cl...
2
0.181818
2
0
47c4d6337e4471c3b0aed40272117a7483bc3fbc
README.md
README.md
BidWire notifies you when it finds new bids.
BidWire notifies you when it finds new bids on https://www.commbuys.com/bso/ Public Pivotal Tracker with planned work: https://www.pivotaltracker.com/n/projects/1996883
Add link to Tracker project.
Add link to Tracker project.
Markdown
mit
RagtagOpen/bidwire,RagtagOpen/bidwire,RagtagOpen/bidwire
markdown
## Code Before: BidWire notifies you when it finds new bids. ## Instruction: Add link to Tracker project. ## Code After: BidWire notifies you when it finds new bids on https://www.commbuys.com/bso/ Public Pivotal Tracker with planned work: https://www.pivotaltracker.com/n/projects/1996883
- BidWire notifies you when it finds new bids. + BidWire notifies you when it finds new bids on https://www.commbuys.com/bso/ + + Public Pivotal Tracker with planned work: https://www.pivotaltracker.com/n/projects/1996883
4
4
3
1
5ac11988155b796e5ace9e2b6ae4ecd09f779344
copy/opt/core/bin/ssl-selfsigned.sh
copy/opt/core/bin/ssl-selfsigned.sh
CN=$(hostname) FILENAME='server' # Help function function help() { echo "${0} -d <DESTINATION> [-c common name] [-f filename]" exit 1 } # Option parameters if (( ${#} < 1 )); then help; fi while getopts ":d:c:f:" opt; do case "${opt}" in d) DESTINATION=${OPTARG} ;; c) CN=${OPTARG} ;; f) FILENAME=${OPTARG} ;...
CN=$(hostname) FILENAME='server' # Help function function help() { echo "${0} -d <DESTINATION> [-c common name] [-f filename]" exit 1 } # Option parameters if (( ${#} < 1 )); then help; fi while getopts ":d:c:f:" opt; do case "${opt}" in d) DESTINATION=${OPTARG} ;; c) CN=${OPTARG} ;; f) FILENAME=${OPTARG} ;...
Remove support for one PEM file which contains cert and key
Remove support for one PEM file which contains cert and key
Shell
mit
skylime/mi-core-base
shell
## Code Before: CN=$(hostname) FILENAME='server' # Help function function help() { echo "${0} -d <DESTINATION> [-c common name] [-f filename]" exit 1 } # Option parameters if (( ${#} < 1 )); then help; fi while getopts ":d:c:f:" opt; do case "${opt}" in d) DESTINATION=${OPTARG} ;; c) CN=${OPTARG} ;; f) FILE...
CN=$(hostname) FILENAME='server' # Help function function help() { echo "${0} -d <DESTINATION> [-c common name] [-f filename]" exit 1 } # Option parameters if (( ${#} < 1 )); then help; fi while getopts ":d:c:f:" opt; do case "${opt}" in d) DESTINATION=${OPTARG} ;; c) CN=${OPTA...
3
0.078947
0
3
96ba5d539892ed3436cf667d396b10458f95b6d0
library/etc/nprocessors_spec.rb
library/etc/nprocessors_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) require 'etc' describe "Etc.nprocessors" do it "returns the number of online processors" do Etc.nprocessors.should be_kind_of(Integer) Etc.nprocessors.should >= 1 end end
require File.expand_path('../../../spec_helper', __FILE__) require 'etc' ruby_version_is "2.2" do describe "Etc.nprocessors" do it "returns the number of online processors" do Etc.nprocessors.should be_kind_of(Integer) Etc.nprocessors.should >= 1 end end end
Add 2.2 guard for Etc.nprocessors, 2.1 is not yet removed from CI
Add 2.2 guard for Etc.nprocessors, 2.1 is not yet removed from CI
Ruby
mit
nobu/rubyspec,eregon/rubyspec,nobu/rubyspec,sgarciac/spec,sgarciac/spec,eregon/rubyspec,eregon/rubyspec,nobu/rubyspec,ruby/rubyspec,sgarciac/spec,ruby/spec,ruby/spec,ruby/spec,ruby/rubyspec
ruby
## Code Before: require File.expand_path('../../../spec_helper', __FILE__) require 'etc' describe "Etc.nprocessors" do it "returns the number of online processors" do Etc.nprocessors.should be_kind_of(Integer) Etc.nprocessors.should >= 1 end end ## Instruction: Add 2.2 guard for Etc.nprocessors, 2.1 is no...
require File.expand_path('../../../spec_helper', __FILE__) require 'etc' + ruby_version_is "2.2" do - describe "Etc.nprocessors" do + describe "Etc.nprocessors" do ? ++ - it "returns the number of online processors" do + it "returns the number of online processors" do ? ++ - Etc.nprocessors.should ...
10
1.111111
6
4
fd71cf3cf18c33d80db9c95431e140ee0a8533ea
scripts/reset_db.sh
scripts/reset_db.sh
sudo -u postgres dropdb pytask sudo -u postgres createdb -O pytask pytask ./bin/django syncdb ./bin/django migrate profile ./bin/django migrate taskapp ./bin/django loaddata sites_fixture.json
sudo -u postgres dropdb pytask sudo -u postgres createdb -O pytask pytask rm -r pytask/profile/migrations/ rm -r pytask/taskapp/migrations/ ./bin/django schemamigration profile --initial ./bin/django schemamigration taskapp --initial ./bin/django syncdb ./bin/django migrate profile ./bin/django migrate taskapp ./bin/d...
Remove initial south migrations also during reset of the database.
Remove initial south migrations also during reset of the database.
Shell
agpl-3.0
madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask
shell
## Code Before: sudo -u postgres dropdb pytask sudo -u postgres createdb -O pytask pytask ./bin/django syncdb ./bin/django migrate profile ./bin/django migrate taskapp ./bin/django loaddata sites_fixture.json ## Instruction: Remove initial south migrations also during reset of the database. ## Code After: sudo -u...
sudo -u postgres dropdb pytask sudo -u postgres createdb -O pytask pytask + rm -r pytask/profile/migrations/ + rm -r pytask/taskapp/migrations/ + ./bin/django schemamigration profile --initial + ./bin/django schemamigration taskapp --initial ./bin/django syncdb ./bin/django migrate profile ./bin/django mig...
4
0.5
4
0
c8d02a61b06b5ade9976b3bac006be6b2545f619
tox.ini
tox.ini
[tox] envlist = py27,py35,py36,py37,py38,py39, flake [testenv] basepython = py27: {env:TOX_PY27_BASEPYTHON:python2.7} py35: {env:TOX_PY35_BASEPYTHON:python3.5} py36: {env:TOX_PY36_BASEPYTHON:python3.6} py37: {env:TOX_PY37_BASEPYTHON:python3.7} py38: {env:TOX_PY38_BASEPYTHON:python3.8} p...
[tox] envlist = py27,py35,py36,py37,py38,py39, flake [testenv] deps=pytest commands=pytest [testenv:flake8] basepython=python extras=lint deps=flake8 commands=flake8 {toxinidir}
Remove reading basepython from env
Remove reading basepython from env
INI
bsd-3-clause
Perlence/rpp
ini
## Code Before: [tox] envlist = py27,py35,py36,py37,py38,py39, flake [testenv] basepython = py27: {env:TOX_PY27_BASEPYTHON:python2.7} py35: {env:TOX_PY35_BASEPYTHON:python3.5} py36: {env:TOX_PY36_BASEPYTHON:python3.6} py37: {env:TOX_PY37_BASEPYTHON:python3.7} py38: {env:TOX_PY38_BASEPYTHON:...
[tox] envlist = py27,py35,py36,py37,py38,py39, flake [testenv] - basepython = - py27: {env:TOX_PY27_BASEPYTHON:python2.7} - py35: {env:TOX_PY35_BASEPYTHON:python3.5} - py36: {env:TOX_PY36_BASEPYTHON:python3.6} - py37: {env:TOX_PY37_BASEPYTHON:python3.7} - py38: {env:TOX_PY38_BAS...
7
0.333333
0
7
1e07e9424a1ac69e1e660e6a6f1e58bba15472c1
make_spectra.py
make_spectra.py
import halospectra as hs import randspectra as rs import sys snapnum=sys.argv[1] sim=sys.argv[2] #base="/n/hernquistfs1/mvogelsberger/projects/GFM/Production/Cosmo/Cosmo"+str(sim)+"_V6/L25n512/output/" #savedir="/n/home11/spb/scratch/Cosmo/Cosmo"+str(sim)+"_V6_512/snapdir_"+str(snapnum).rjust(3,'0') base="/home/spb/da...
import halospectra as hs import randspectra as rs import sys snapnum=sys.argv[1] sim=sys.argv[2] #base="/n/hernquistfs1/mvogelsberger/projects/GFM/Production/Cosmo/Cosmo"+str(sim)+"_V6/L25n512/output/" #savedir="/n/home11/spb/scratch/Cosmo/Cosmo"+str(sim)+"_V6_512/snapdir_"+str(snapnum).rjust(3,'0') base="/home/spb/da...
Implement saving and loading the observer tau
Implement saving and loading the observer tau
Python
mit
sbird/vw_spectra
python
## Code Before: import halospectra as hs import randspectra as rs import sys snapnum=sys.argv[1] sim=sys.argv[2] #base="/n/hernquistfs1/mvogelsberger/projects/GFM/Production/Cosmo/Cosmo"+str(sim)+"_V6/L25n512/output/" #savedir="/n/home11/spb/scratch/Cosmo/Cosmo"+str(sim)+"_V6_512/snapdir_"+str(snapnum).rjust(3,'0') ba...
import halospectra as hs import randspectra as rs import sys snapnum=sys.argv[1] sim=sys.argv[2] #base="/n/hernquistfs1/mvogelsberger/projects/GFM/Production/Cosmo/Cosmo"+str(sim)+"_V6/L25n512/output/" #savedir="/n/home11/spb/scratch/Cosmo/Cosmo"+str(sim)+"_V6_512/snapdir_"+str(snapnum).rjust(3,'0') ...
8
0.444444
4
4
d8502569f0e4c562294415242f096eefdf361ca0
pyonep/__init__.py
pyonep/__init__.py
__version__ = '0.12.4'
"""An API library with Python bindings for Exosite One Platform APIs.""" __version__ = '0.12.4' from .onep import OnepV1, DeferredRequests from .provision import Provision
Add docstring and imports to package.
Add docstring and imports to package.
Python
bsd-3-clause
gavinsunde/pyonep,exosite-labs/pyonep,asolz/pyonep,asolz/pyonep,gavinsunde/pyonep,exosite-labs/pyonep
python
## Code Before: __version__ = '0.12.4' ## Instruction: Add docstring and imports to package. ## Code After: """An API library with Python bindings for Exosite One Platform APIs.""" __version__ = '0.12.4' from .onep import OnepV1, DeferredRequests from .provision import Provision
+ """An API library with Python bindings for Exosite One Platform APIs.""" + __version__ = '0.12.4' + + from .onep import OnepV1, DeferredRequests + from .provision import Provision
5
5
5
0
ae30ec80f775b27fd7b1c669c9aaa076e2ec7fdb
control-users/src/main/java/fi/nls/oskari/control/users/UserController.java
control-users/src/main/java/fi/nls/oskari/control/users/UserController.java
package fi.nls.oskari.control.users; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import fi.nls.oskari.log.LogFactory; import fi.nls.oskari.log.Logger...
package fi.nls.oskari.control.users; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import fi.nls.oskari.log.LogFactory; import fi.nls.oskari.log.Logger...
Return view is set to 'resetPassword'.
Return view is set to 'resetPassword'.
Java
mit
nls-oskari/oskari-server,nls-oskari/oskari-server,nls-oskari/oskari-server
java
## Code Before: package fi.nls.oskari.control.users; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import fi.nls.oskari.log.LogFactory; import fi.nls.o...
package fi.nls.oskari.control.users; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import fi.nls.oskari.log.LogFactory; import fi.nls...
18
0.6
13
5
ff3d7a46e5146d73d145d08e73069944e2b7c5cb
tests/strophe.html
tests/strophe.html
<!DOCTYPE html> <html> <head> <script> <!-- // remove Function.prototype.bind so we can test Strophe's Function.prototype.bind = undefined; // --> </script> <script src="http://code.jquery.com/jquery-latest.js"></script> <link rel="stylesheet" href="https...
<!DOCTYPE html> <html> <head> <script> <!-- // remove Function.prototype.bind so we can test Strophe's Function.prototype.bind = undefined; // --> </script> <script src="http://code.jquery.com/jquery-latest.js"></script> <link rel="stylesheet" href="http:...
Use jquery's CDN for hotlinking qunit JS/CSS instead of Github.
Use jquery's CDN for hotlinking qunit JS/CSS instead of Github. Github now sends everything with mime type of text/plain, which means hotlinking CSS no longer works.
HTML
mit
strophe/strophejs,damencho/strophejs,processone/strophejs,diegocr/strophejs,Rom4eg/strophejs,teambox/strophejs,Rom4eg/strophejs,adozenlines/strophejs,gabrielfalcao/strophejs,m800-limited/strophejs,adozenlines/strophejs,strophe/strophejs,ggozad/strophejs,sualko/strophejs,teambox/strophejs,m800-limited/strophejs,minddist...
html
## Code Before: <!DOCTYPE html> <html> <head> <script> <!-- // remove Function.prototype.bind so we can test Strophe's Function.prototype.bind = undefined; // --> </script> <script src="http://code.jquery.com/jquery-latest.js"></script> <link rel="stylesheet" ...
<!DOCTYPE html> <html> <head> <script> <!-- // remove Function.prototype.bind so we can test Strophe's Function.prototype.bind = undefined; // --> </script> <script src="http://code.jquery.com/jquery-latest.js"></script> <link rel="styleshee...
4
0.133333
2
2
425c3f8269b9cf07d709dfc2602f938aed7b4df3
.travis.yml
.travis.yml
language: node_js node_js: - "0.12" - "4.1" install: npm install script: - npm run lint - npm test - npm run build notifications: email: on_success: never on_failure: change slack: rooms: - 'uwdub:Ry6mwlUX1aZevqiqmYLiA3N1' on_success: never on_failure: change
language: node_js node_js: - "0.12" - "4.1" install: npm install script: - npm run lint - npm test - npm run clean && npm run build && npm run schema:only notifications: email: on_success: never on_failure: change slack: rooms: - 'uwdub:Ry6mwlUX1aZevqiqmYLiA3N1' on_success: never ...
Test building schema as well
Test building schema as well
YAML
bsd-3-clause
vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite
yaml
## Code Before: language: node_js node_js: - "0.12" - "4.1" install: npm install script: - npm run lint - npm test - npm run build notifications: email: on_success: never on_failure: change slack: rooms: - 'uwdub:Ry6mwlUX1aZevqiqmYLiA3N1' on_success: never on_failure: change ## ...
language: node_js node_js: - "0.12" - "4.1" install: npm install script: - npm run lint - npm test - - npm run build + - npm run clean && npm run build && npm run schema:only notifications: email: on_success: never on_failure: change slack: rooms: - 'uwdub...
2
0.111111
1
1
ed97a1f811f04693203f6d1c0e9b64649a3da152
coney/exceptions.py
coney/exceptions.py
class ConeyException(Exception): def __repr__(self): return 'An unspecified error has occurred' class CallTimeoutException(ConeyException): def __repr__(self): return 'An RPC call did not return before the time out period' class MalformedRequestException(ConeyException): def __init__(s...
class ConeyException(Exception): def __repr__(self): return 'An unspecified error has occurred' class CallTimeoutException(ConeyException): def __repr__(self): return 'An RPC call did not return before the time out period' class MalformedRequestException(ConeyException): def __init__(s...
Add a new exception to handle a non-callable handler.
Add a new exception to handle a non-callable handler.
Python
mit
cbigler/jackrabbit
python
## Code Before: class ConeyException(Exception): def __repr__(self): return 'An unspecified error has occurred' class CallTimeoutException(ConeyException): def __repr__(self): return 'An RPC call did not return before the time out period' class MalformedRequestException(ConeyException): ...
class ConeyException(Exception): def __repr__(self): return 'An unspecified error has occurred' class CallTimeoutException(ConeyException): def __repr__(self): return 'An RPC call did not return before the time out period' class MalformedRequestException(ConeyExce...
5
0.096154
5
0
5b1db6c408d0386f3c6926b0b65e16d3aae274e0
images/bazel/variants.yaml
images/bazel/variants.yaml
variants: kubernetes: CONFIG: kubernetes-master # Used by the kubernetes repo master branch NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 test-infra: CONFIG: test-infra # Used by test-infra repo NEW_VERSION: 3.0.0 OLD_VERSION: 2.2.0
variants: kubernetes: CONFIG: kubernetes-master # Used by the kubernetes repo master branch NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 org: CONFIG: org # Used by org repo NEW_VERSION: 3.0.0 OLD_VERSION: 0.29.1 test-infra: CONFIG: test-infra # Used by test-infra repo NEW_VERSION: 3.0.0 ...
Create an org variant of the bazel image.
Create an org variant of the bazel image. This will install the two versions needed by this repo.
YAML
apache-2.0
cblecker/test-infra,BenTheElder/test-infra,brahmaroutu/test-infra,fejta/test-infra,michelle192837/test-infra,monopole/test-infra,pwittrock/test-infra,BenTheElder/test-infra,dims/test-infra,pwittrock/test-infra,fejta/test-infra,monopole/test-infra,jessfraz/test-infra,jessfraz/test-infra,dims/test-infra,cblecker/test-inf...
yaml
## Code Before: variants: kubernetes: CONFIG: kubernetes-master # Used by the kubernetes repo master branch NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 test-infra: CONFIG: test-infra # Used by test-infra repo NEW_VERSION: 3.0.0 OLD_VERSION: 2.2.0 ## Instruction: Create an org variant of the baze...
variants: kubernetes: CONFIG: kubernetes-master # Used by the kubernetes repo master branch NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 + org: + CONFIG: org # Used by org repo + NEW_VERSION: 3.0.0 + OLD_VERSION: 0.29.1 test-infra: CONFIG: test-infra # Used by test-infra repo ...
4
0.444444
4
0
ce75ba9a99e5fc3012822d6159beac34f6fbb86d
generators/app/steps/install.js
generators/app/steps/install.js
/** * Step 7 * Where installation are run (npm, bower) */ module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { this.log(chalk.yellow("Start installing npm dependenci...
/** * Step 7 * Where installation are run (npm, bower) */ var chalk = require('chalk'); module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { this.log(chalk.yellow("...
Fix bug with chalk undefined
Fix bug with chalk undefined
JavaScript
mit
ghaiklor/generator-sails-rest-api,konstantinzolotarev/generator-trails,jaumard/generator-trails,synergycns/generator-sails-rest-api,italoag/generator-sails-rest-api,italoag/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,tnunes/generator-trails,eithewliter5518/generator-sails-rest-api,mhipo1364/generator-sai...
javascript
## Code Before: /** * Step 7 * Where installation are run (npm, bower) */ module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { this.log(chalk.yellow("Start installin...
/** * Step 7 * Where installation are run (npm, bower) */ + + var chalk = require('chalk'); module.exports = { /** * Install npm dependencies */ installNpmDependencies: function () { if (!(this.options['skip-project-install'] || this.options["skip-all"])) { ...
2
0.125
2
0
bdfd53b26cbebee65472d0de83d41410c593f867
README.md
README.md
_This is not the documentation you are looking for... it is a pointer to the real documentation._ ## Looking for Crowbar Resources? [The Crowbar website](https://crowbar.github.io) has links to all information and is our recommended starting place. ## Specific Crowbar Documentation We track Crowbar documentation w...
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) _This is not the documentation you are looking for... it is a pointer to the real documentation._ ## Looking for Crowbar Resources? [The Crowbar website](https://crowbar.github.io) has links to all information and...
Add a "Reviewed by Hound" badge
Add a "Reviewed by Hound" badge What do you think about adding a Hound badge?
Markdown
apache-2.0
rsalevsky/crowbar,crowbar/crowbar,dirkmueller/crowbar,dirkmueller/crowbar,crowbar/crowbar,rsalevsky/crowbar
markdown
## Code Before: _This is not the documentation you are looking for... it is a pointer to the real documentation._ ## Looking for Crowbar Resources? [The Crowbar website](https://crowbar.github.io) has links to all information and is our recommended starting place. ## Specific Crowbar Documentation We track Crowbar...
+ + [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) _This is not the documentation you are looking for... it is a pointer to the real documentation._ ## Looking for Crowbar Resources? [The Crowbar website](https://crowbar.github.io) has links to all...
2
0.090909
2
0
208ea975a4896e2377fb491c5339722b1bb0179e
config/config-defaults.json
config/config-defaults.json
{ "http_port": 2000, "server_address": "localhost", "upstream_host": "registry.npmjs.org", "upstream_port": 80, "cache_dir": "/tmp/npm-lazy", "cache_mem": 200 }
{ "http_port": 2000, "server_address": "localhost", "upstream_host": "registry.npmjs.org", "upstream_port": 443, "upstream_use_https": true, "upstream_verify_ssl": true, "cache_dir": "/tmp/npm-lazy", "cache_mem": 200 }
Set default access to registry server in https
Set default access to registry server in https
JSON
mit
hpcloud/npm-lazy-mirror,ActiveState/npm-lazy-mirror,hpcloud/npm-lazy-mirror,ActiveState/npm-lazy-mirror
json
## Code Before: { "http_port": 2000, "server_address": "localhost", "upstream_host": "registry.npmjs.org", "upstream_port": 80, "cache_dir": "/tmp/npm-lazy", "cache_mem": 200 } ## Instruction: Set default access to registry server in https ## Code After: { "http_port": 2000, "server_...
{ "http_port": 2000, "server_address": "localhost", "upstream_host": "registry.npmjs.org", - "upstream_port": 80, ? ^^ + "upstream_port": 443, ? ^^^ + "upstream_use_https": true, + "upstream_verify_ssl": true, "cache_dir": "/tmp...
4
0.363636
3
1
c316a016db74779d3c473df23e2992c56a30266d
static/js/highlight.js
static/js/highlight.js
$(function () { var highlight = null; var match = /#line\-(\d+)/g.exec(window.location.hash); if (match) { highlight = parseInt(match[1], 10); } SyntaxHighlighter.all({toolbar: false, highlight:highlight}); setTimeout(function () { $('.gutter .line').each(function () { var d...
function addLineLinks() { var lines = $('.gutter .line'); if (!lines.length) { return false; } lines.each(function () { var div = $(this); if (div.hasClass('highlighted')) { scrollTo(div); } var text = div.text(); var id = 'line-' + text; ...
Use an interval rather than a timeout to add the line number links
Use an interval rather than a timeout to add the line number links
JavaScript
apache-2.0
rainycape/gondolaweb,rainycape/gondolaweb,rainycape/gondolaweb,rainycape/gondolaweb
javascript
## Code Before: $(function () { var highlight = null; var match = /#line\-(\d+)/g.exec(window.location.hash); if (match) { highlight = parseInt(match[1], 10); } SyntaxHighlighter.all({toolbar: false, highlight:highlight}); setTimeout(function () { $('.gutter .line').each(function ()...
+ function addLineLinks() { + var lines = $('.gutter .line'); + if (!lines.length) { + return false; - $(function () { - var highlight = null; - var match = /#line\-(\d+)/g.exec(window.location.hash); - if (match) { - highlight = parseInt(match[1], 10); } - SyntaxHighlight...
29
0.966667
20
9
a57adad2bbe30d7bc8b236a579f7fa7e620e4a2b
manifest.json
manifest.json
{ "manifest_version": 2, "name": "Purge Old History", "version": "1.0.1", "description": "Removes history entries older than a specified age.", "applications": { "gecko": { "id":"purge-old-hist@monochrome101.addons.mozilla.org", "strict_min_version": "49.*" } ...
{ "manifest_version": 2, "name": "Purge Old History", "version": "1.0.2", "description": "Periodically removes history entries older than a specified age.", "applications": { "gecko": { "id":"purge-old-hist@monochrome101.addons.mozilla.org", "strict_min_version": "49.0a2...
Update description, min. FF version, and overall version bump
Update description, min. FF version, and overall version bump
JSON
mit
DmitriK/ff-purge-old-history,DmitriK/ff-purge-old-history
json
## Code Before: { "manifest_version": 2, "name": "Purge Old History", "version": "1.0.1", "description": "Removes history entries older than a specified age.", "applications": { "gecko": { "id":"purge-old-hist@monochrome101.addons.mozilla.org", "strict_min_version": "49....
{ "manifest_version": 2, "name": "Purge Old History", - "version": "1.0.1", ? ^ + "version": "1.0.2", ? ^ - "description": "Removes history entries older than a specified age.", ? ^ + "description": "Periodically removes histor...
6
0.25
3
3
632bccba2075272e00da55f30342fa3944f22f49
gulpfile.js
gulpfile.js
const gulp = require('gulp'), rename = require('gulp-rename'), less = require('gulp-less'), pug = require('gulp-pug') argv = require('yargs').argv /** * Compile less to css and minify */ gulp.task('less', function () { gulp.src('./src/less/**/*.less') .pipe(less({ compress:t...
const gulp = require('gulp'), rename = require('gulp-rename'), less = require('gulp-less'), pug = require('gulp-pug') argv = require('yargs').argv /** * Compile less to css and minify */ gulp.task('less', function () { gulp.src('./src/less/**/*.less') .pipe(less({ compress:t...
Update gulp export support pretty
Update gulp export support pretty
JavaScript
mit
nitpum/blogger-template-builder,nitpum/blogger-template-builder
javascript
## Code Before: const gulp = require('gulp'), rename = require('gulp-rename'), less = require('gulp-less'), pug = require('gulp-pug') argv = require('yargs').argv /** * Compile less to css and minify */ gulp.task('less', function () { gulp.src('./src/less/**/*.less') .pipe(less({ ...
const gulp = require('gulp'), rename = require('gulp-rename'), less = require('gulp-less'), pug = require('gulp-pug') argv = require('yargs').argv /** * Compile less to css and minify */ gulp.task('less', function () { gulp.src('./src/less/**/*.less') .pipe(l...
22
0.564103
15
7
0da19042c74d2a85ef4652b36186a1ee6c4fc247
tilequeue/format/mvt.py
tilequeue/format/mvt.py
from mapbox_vector_tile.encoder import on_invalid_geometry_make_valid from mapbox_vector_tile import encode as mvt_encode def encode(fp, feature_layers, coord, bounds_merc): tile = mvt_encode(feature_layers, quantize_bounds=bounds_merc, on_invalid_geometry=on_invalid_geometry_make_valid) ...
from mapbox_vector_tile.encoder import on_invalid_geometry_make_valid from mapbox_vector_tile import encode as mvt_encode def encode(fp, feature_layers, coord, bounds_merc): tile = mvt_encode( feature_layers, quantize_bounds=bounds_merc, on_invalid_geometry=on_invalid_geometry_make_valid, ...
Use round_fn to specify built-in round function
Use round_fn to specify built-in round function
Python
mit
mapzen/tilequeue,tilezen/tilequeue
python
## Code Before: from mapbox_vector_tile.encoder import on_invalid_geometry_make_valid from mapbox_vector_tile import encode as mvt_encode def encode(fp, feature_layers, coord, bounds_merc): tile = mvt_encode(feature_layers, quantize_bounds=bounds_merc, on_invalid_geometry=on_invalid_geometry...
from mapbox_vector_tile.encoder import on_invalid_geometry_make_valid from mapbox_vector_tile import encode as mvt_encode def encode(fp, feature_layers, coord, bounds_merc): - tile = mvt_encode(feature_layers, quantize_bounds=bounds_merc, + tile = mvt_encode( + feature_layers, + quan...
8
1
6
2
f38d6ed5142c4e0d964882bc4cc63e10cf9395a5
doc/requirements/README.md
doc/requirements/README.md
Currently just Twinkles 1. Parts of this will be included into a DC1 requirements document, assembled by the SSim working group. As a result, of this, and in anticipation of Twinkles 2, the Twinkles 1 source files are stored in their own sub-directory, and compiled into a master document called `TwinklesRQ.tex`. ##...
Currently just Twinkles 1. Parts of this will be included into a DC1 requirements document, assembled by the SSim working group. As a result, of this, and in anticipation of Twinkles 2, the Twinkles 1 source files are stored in their own sub-directory, and compiled into a master document called `TwinklesRQ.tex`. ##...
Add bash instructions for setting SRM_DIR
Add bash instructions for setting SRM_DIR
Markdown
mit
DarkEnergyScienceCollaboration/Twinkles,rbiswas4/Twinkles,DarkEnergyScienceCollaboration/Twinkles,rbiswas4/Twinkles,LSSTDESC/Twinkles,LSSTDESC/Twinkles
markdown
## Code Before: Currently just Twinkles 1. Parts of this will be included into a DC1 requirements document, assembled by the SSim working group. As a result, of this, and in anticipation of Twinkles 2, the Twinkles 1 source files are stored in their own sub-directory, and compiled into a master document called `Twin...
Currently just Twinkles 1. Parts of this will be included into a DC1 requirements document, assembled by the SSim working group. As a result, of this, and in anticipation of Twinkles 2, the Twinkles 1 source files are stored in their own sub-directory, and compiled into a master document called `Twinkl...
10
0.588235
9
1
c10b5348f2e5fdde22bb99f2afa48435a5445f03
.travis.yml
.travis.yml
--- language: ruby sudo: false rvm: - 1.9.3 - 2.0 - 2.1 - 2.2 notifications: email: false env: - PUPPET_GEM_VERSION="~> 3.7.0" - PUPPET_GEM_VERSION="~> 3.8.0" - PUPPET_GEM_VERSION="~> 4.1.0" - PUPPET_GEM_VERSION="~> 4.2.0" script: - puppet --version - bundle exec rake validate lint spec matrix: ...
--- language: ruby sudo: false rvm: - 1.9.3 - 2.0 - 2.1 - 2.2 notifications: email: false env: - PUPPET_GEM_VERSION="~> 3.7.0" - PUPPET_GEM_VERSION="~> 3.8.0" - PUPPET_GEM_VERSION="~> 4.1.0" - PUPPET_GEM_VERSION="~> 4.2.0" script: - puppet --version - bundle exec rake validate lint spec matrix: ...
Drop support for ruby 1.8.7
Drop support for ruby 1.8.7 rake (11.0.1) does not working with ruby-versions older than 1.9.3.
YAML
apache-2.0
gnubila-france/puppet-check_mk,gnubila-france/puppet-check_mk
yaml
## Code Before: --- language: ruby sudo: false rvm: - 1.9.3 - 2.0 - 2.1 - 2.2 notifications: email: false env: - PUPPET_GEM_VERSION="~> 3.7.0" - PUPPET_GEM_VERSION="~> 3.8.0" - PUPPET_GEM_VERSION="~> 4.1.0" - PUPPET_GEM_VERSION="~> 4.2.0" script: - puppet --version - bundle exec rake validate lint...
--- language: ruby sudo: false rvm: - 1.9.3 - 2.0 - 2.1 - 2.2 notifications: email: false env: - PUPPET_GEM_VERSION="~> 3.7.0" - PUPPET_GEM_VERSION="~> 3.8.0" - PUPPET_GEM_VERSION="~> 4.1.0" - PUPPET_GEM_VERSION="~> 4.2.0" script: - puppet --version - bundle exe...
5
0.172414
0
5
ac23b4b1f15df46aaf3127e51b88ae2c85acdd36
lib/npmrc-switcher.js
lib/npmrc-switcher.js
'use strict'; var findup = require('findup-sync'); var fs = require('fs'); var shell = require('child_process').execFile; // Only check the value once var baseDirectory = process.env.HOME; var baseFile = baseDirectory + '/.npmrc'; var baseBackup = baseDirectory + '/.npmrc.bak'; var nearestFile; function isAl...
'use strict'; var findup = require('findup-sync'); var fs = require('fs'); var shell = require('child_process').execFile; // Only check the value once var baseDirectory = process.env.HOME; var baseFile = baseDirectory + '/.npmrc'; var defaultFile = baseDirectory + '/.npmrc.default'; var nearestFile; function...
Use a default file if it exists, otherwise fallback to nom's default
Use a default file if it exists, otherwise fallback to nom's default
JavaScript
apache-2.0
BBC-News/npmrc-switcher,BBC-News/npmrc-switcher
javascript
## Code Before: 'use strict'; var findup = require('findup-sync'); var fs = require('fs'); var shell = require('child_process').execFile; // Only check the value once var baseDirectory = process.env.HOME; var baseFile = baseDirectory + '/.npmrc'; var baseBackup = baseDirectory + '/.npmrc.bak'; var nearestFile...
'use strict'; var findup = require('findup-sync'); var fs = require('fs'); var shell = require('child_process').execFile; // Only check the value once var baseDirectory = process.env.HOME; var baseFile = baseDirectory + '/.npmrc'; - var baseBackup = baseDirectory + '/.npmrc.bak'; + var def...
19
0.327586
12
7
f592a1b47fcb407d2ae4543a3e06609252e90a42
config/initializers/raven.rb
config/initializers/raven.rb
require 'raven' Raven.configure do |config| config.dsn = 'https://c22240edb1ba4972bf5007bd1cbf1aa3:707c4fc8872046738fa86eeaf60d5938@app.getsentry.com/11938' end
require 'raven' Raven.configure do |config| config.dsn = ENV["SENTRY_DSN"] end
Store Sentry API key in ENV var
Store Sentry API key in ENV var
Ruby
bsd-3-clause
smcgov/ohana-api-smc,smcgov/ohana-api-smc,smcgov/ohana-api-smc,smcgov/ohana-api-smc
ruby
## Code Before: require 'raven' Raven.configure do |config| config.dsn = 'https://c22240edb1ba4972bf5007bd1cbf1aa3:707c4fc8872046738fa86eeaf60d5938@app.getsentry.com/11938' end ## Instruction: Store Sentry API key in ENV var ## Code After: require 'raven' Raven.configure do |config| config.dsn = ENV["SENTRY_DSN"...
require 'raven' Raven.configure do |config| - config.dsn = 'https://c22240edb1ba4972bf5007bd1cbf1aa3:707c4fc8872046738fa86eeaf60d5938@app.getsentry.com/11938' + config.dsn = ENV["SENTRY_DSN"] end
2
0.4
1
1
6cf484c9a3ce5aa141363ae67c58fa94d055a105
app/assets/javascripts/app/views/bookmarklet_view.js
app/assets/javascripts/app/views/bookmarklet_view.js
app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess,...
app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', this._postSuccess,...
Make sure publisher is totally hidden in bookmarklet after post success
Make sure publisher is totally hidden in bookmarklet after post success
JavaScript
agpl-3.0
geraspora/diaspora,jhass/diaspora,Flaburgan/diaspora,diaspora/diaspora,Amadren/diaspora,diaspora/diaspora,geraspora/diaspora,despora/diaspora,Amadren/diaspora,Amadren/diaspora,Muhannes/diaspora,SuperTux88/diaspora,jhass/diaspora,KentShikama/diaspora,spixi/diaspora,jhass/diaspora,SuperTux88/diaspora,SuperTux88/diaspora,...
javascript
## Code Before: app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', th...
app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', initialize: function(opts) { // init a standalone publisher app.publisher = new app.views.Publisher({standalone: true}); app.publisher.on('publisher:add', this._postSubmit, this); app.publisher.on('publisher:sync', ...
1
0.022727
1
0
82d08ac8d443374f1f22bcdc7313d09b8ca6a3e3
srv/assistants/onCredentialsChangedAssistant.js
srv/assistants/onCredentialsChangedAssistant.js
var onCredentialsChangedAssistant = function (future) {}; onCredentialsChangedAssistant.prototype.run = function (outerFuture) { log("============== onCredentialsChangedAssistant"); log("Params: " + JSON.stringify(this.controller.args)); //may contain password. log("Future: " + JSON.stringify(outerFuture.re...
var onCredentialsChangedAssistant = function (future) {}; onCredentialsChangedAssistant.prototype.run = function (outerFuture) { log("============== onCredentialsChangedAssistant"); log("Params: " + JSON.stringify(this.controller.args)); //may contain password. log("Future: " + JSON.stringify(outerFuture.re...
Change was necessary to allow modifyAccount calls in storeAccounts to return. We don't really use the webOS stored credentials anyway... no idea how to read them.
Change was necessary to allow modifyAccount calls in storeAccounts to return. We don't really use the webOS stored credentials anyway... no idea how to read them.
JavaScript
mit
Garfonso/SyncML,Garfonso/SyncML
javascript
## Code Before: var onCredentialsChangedAssistant = function (future) {}; onCredentialsChangedAssistant.prototype.run = function (outerFuture) { log("============== onCredentialsChangedAssistant"); log("Params: " + JSON.stringify(this.controller.args)); //may contain password. log("Future: " + JSON.stringify(out...
var onCredentialsChangedAssistant = function (future) {}; onCredentialsChangedAssistant.prototype.run = function (outerFuture) { log("============== onCredentialsChangedAssistant"); log("Params: " + JSON.stringify(this.controller.args)); //may contain password. log("Future: " + JSON.stringify(outerFu...
16
0.842105
8
8
f450382be489559431876ae3fad9ae8b7cf1820b
models/events.js
models/events.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var eventSchema = new Schema({ title: String, description: String, startDate: Date, endDate: Date, deadline: Date, duration: String, participants: [String] }); module.exports = mongoose.model('events', eventSchema);
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var slotSchema = new Schema({ startDate: { type: String, required: true }, startTime: { type: String, required: true }, duration: { type: String, required: true } }); var participantSchema = new Schema({ name: { type: String, required: t...
Change the schema of model.
Change the schema of model. An example is given below: var data = { title: 'event 1', description: 'the first event', startDate: '2014-01-02', endDate: '2014-01-05', deadline: '2014-01-01', duration: '2', participants: [ { name: 'John', facebookId: '234236367634',...
JavaScript
mit
Cobra-Kao/synckr,Cobra-Kao/synckr
javascript
## Code Before: var mongoose = require('mongoose'); var Schema = mongoose.Schema; var eventSchema = new Schema({ title: String, description: String, startDate: Date, endDate: Date, deadline: Date, duration: String, participants: [String] }); module.exports = mongoose.model('events', eventS...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; + var slotSchema = new Schema({ + startDate: { type: String, required: true }, + startTime: { type: String, required: true }, + duration: { type: String, required: true } + }); + + var participantSchema = new Schema({ + name: { typ...
26
1.857143
19
7
933f4a2a74e92d72ccf1b11f87d43e66eb829694
README.rst
README.rst
pytest-dependency - Manage dependencies of tests ================================================ This pytest plugin manages dependencies of tests. It allows to mark some tests as dependent from other tests. These tests will then be skipped if any of the dependencies did fail or has been skipped. System requiremen...
.. note:: This is the ``tests`` branch of the code. It is an attempt to implement Issue `#1`__. .. __: https://github.com/RKrahl/pytest-dependency/issues/1 pytest-dependency - Manage dependencies of tests ================================================ This pytest plugin manages dependencies of tests. I...
Add a note on the status of the branch.
Add a note on the status of the branch.
reStructuredText
apache-2.0
RKrahl/pytest-dependency
restructuredtext
## Code Before: pytest-dependency - Manage dependencies of tests ================================================ This pytest plugin manages dependencies of tests. It allows to mark some tests as dependent from other tests. These tests will then be skipped if any of the dependencies did fail or has been skipped. S...
+ .. note:: This is the ``tests`` branch of the code. + It is an attempt to implement Issue `#1`__. + + .. __: https://github.com/RKrahl/pytest-dependency/issues/1 + + pytest-dependency - Manage dependencies of tests ================================================ This pytest plugin manages depen...
6
0.166667
6
0
a61c597d13f6adb08860b4a24b8f4045de5451b5
app/models/obs_factory/distribution_strategy_opensuse.rb
app/models/obs_factory/distribution_strategy_opensuse.rb
module ObsFactory # this class tracks the differences between Factory and the upcoming release class DistributionStrategyOpenSUSE < DistributionStrategyFactory def opensuse_version # Remove the "openSUSE:" part project.name[9..-1] end def opensuse_leap_version # Remove the "openSUSE:...
module ObsFactory # this class tracks the differences between Factory and the upcoming release class DistributionStrategyOpenSUSE < DistributionStrategyFactory def opensuse_version # Remove the "openSUSE:" part project.name[9..-1] end def opensuse_leap_version # Remove the "openSUSE:...
Fix published_version return nil for Leap
Fix published_version return nil for Leap Build name in 42.3 is openSUSE-42.3-x86_64-Build0144 what matchdata regex will return nil for matchdata[1]. Update regex for Leap.
Ruby
mit
openSUSE-Team/obs_factory,openSUSE-Team/obs_factory,openSUSE-Team/obs_factory
ruby
## Code Before: module ObsFactory # this class tracks the differences between Factory and the upcoming release class DistributionStrategyOpenSUSE < DistributionStrategyFactory def opensuse_version # Remove the "openSUSE:" part project.name[9..-1] end def opensuse_leap_version # Remov...
module ObsFactory # this class tracks the differences between Factory and the upcoming release class DistributionStrategyOpenSUSE < DistributionStrategyFactory def opensuse_version # Remove the "openSUSE:" part project.name[9..-1] end def opensuse_leap_version #...
17
0.414634
17
0
c260570c49fedb77b30b9948b798ac0e5046b63d
homebrew/chruby.rb
homebrew/chruby.rb
require 'formula' class Chruby < Formula homepage 'https://github.com/postmodern/chruby#readme' url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz' sha1 '64365226210f82b58092ed01a3fb57d379b99c80' head 'https://github.com/postmodern/chruby.git' def install system 'make', 'install', "PREFIX=...
require 'formula' class Chruby < Formula homepage 'https://github.com/postmodern/chruby#readme' url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz' sha1 '64365226210f82b58092ed01a3fb57d379b99c80' head 'https://github.com/postmodern/chruby.git' def install system 'make', 'install', "PREFIX=...
Update brew formula opt shortcut.
Update brew formula opt shortcut.
Ruby
mit
ngpestelos/chruby,kbrock/chruby,ilikepi/chruby,regularfry/chruby,ilikepi/chruby,postmodern/chruby,ngpestelos/chruby,kbrock/chruby,postmodern/chruby,regularfry/chruby
ruby
## Code Before: require 'formula' class Chruby < Formula homepage 'https://github.com/postmodern/chruby#readme' url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz' sha1 '64365226210f82b58092ed01a3fb57d379b99c80' head 'https://github.com/postmodern/chruby.git' def install system 'make', 'in...
require 'formula' class Chruby < Formula homepage 'https://github.com/postmodern/chruby#readme' url 'https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz' sha1 '64365226210f82b58092ed01a3fb57d379b99c80' head 'https://github.com/postmodern/chruby.git' def install system 'make...
4
0.1
2
2
5487664f1f8f47355e406b60ad1a6cb89c85e55c
tests/parse.js
tests/parse.js
const parse = require('../lib/parse'); const cases = require('postcss-parser-tests'); const expect = require('chai').expect; describe('parse', () => { cases.each((name, css, json) => { it('should parse ' + name, () => { let parsed = cases.jsonify(parse(css, { from: name })); expect(parsed).to.equal(json); ...
const parse = require('../lib/parse'); const cases = require('postcss-parser-tests'); const expect = require('chai').expect; describe('parse', () => { cases.each((name, css, json) => { it('should parse ' + name, () => { let parsed = cases.jsonify(parse(css, { from: name })); expect(parsed).to.equal(json); ...
Add tests for basic mixin syntax
Add tests for basic mixin syntax
JavaScript
mit
weepower/postcss-wee-syntax
javascript
## Code Before: const parse = require('../lib/parse'); const cases = require('postcss-parser-tests'); const expect = require('chai').expect; describe('parse', () => { cases.each((name, css, json) => { it('should parse ' + name, () => { let parsed = cases.jsonify(parse(css, { from: name })); expect(parsed).to...
const parse = require('../lib/parse'); const cases = require('postcss-parser-tests'); const expect = require('chai').expect; describe('parse', () => { cases.each((name, css, json) => { it('should parse ' + name, () => { let parsed = cases.jsonify(parse(css, { from: name })); expect(parsed...
24
1.846154
24
0
f4baf713c5c9f8b03f5a76ec4650f6b13b0d632a
README.md
README.md
[![Go Report Card](https://goreportcard.com/badge/github.com/monder/route53-etcd)](https://goreportcard.com/report/github.com/monder/route53-etcd) [![license](https://img.shields.io/github/license/monder/route53-etcd.svg?maxAge=2592000&style=flat-square)]() [![GitHub tag](https://img.shields.io/github/tag/monder/route...
[![Go Report Card](https://goreportcard.com/badge/github.com/monder/route53-etcd)](https://goreportcard.com/report/github.com/monder/route53-etcd) [![license](https://img.shields.io/github/license/monder/route53-etcd.svg?maxAge=2592000&style=flat-square)]() [![GitHub tag](https://img.shields.io/github/tag/monder/route...
Update readme with rkt usage
Update readme with rkt usage
Markdown
mit
monder/route53-etcd,monder/route53-etcd
markdown
## Code Before: [![Go Report Card](https://goreportcard.com/badge/github.com/monder/route53-etcd)](https://goreportcard.com/report/github.com/monder/route53-etcd) [![license](https://img.shields.io/github/license/monder/route53-etcd.svg?maxAge=2592000&style=flat-square)]() [![GitHub tag](https://img.shields.io/github/...
[![Go Report Card](https://goreportcard.com/badge/github.com/monder/route53-etcd)](https://goreportcard.com/report/github.com/monder/route53-etcd) [![license](https://img.shields.io/github/license/monder/route53-etcd.svg?maxAge=2592000&style=flat-square)]() [![GitHub tag](https://img.shields.io/github/tag/mond...
6
0.25
5
1
5c373c9baf6a0abfab09025d35d4b2deeb37baca
src/app/utilities/download-helper.ts
src/app/utilities/download-helper.ts
/** * Copyright 2017 - 2018 The Hyve B.V. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as sanitize from 'sanitize-filename'; export class Downl...
/** * Copyright 2017 - 2018 The Hyve B.V. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as sanitize from 'sanitize-filename'; import {saveAs} fro...
Fix cohort download in Edge.
Fix cohort download in Edge.
TypeScript
mpl-2.0
thehyve/glowing-bear,thehyve/glowing-bear,thehyve/glowing-bear,thehyve/glowing-bear
typescript
## Code Before: /** * Copyright 2017 - 2018 The Hyve B.V. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as sanitize from 'sanitize-filename'; ex...
/** * Copyright 2017 - 2018 The Hyve B.V. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as sanitize from 'sanitize-filename'; +...
11
0.323529
3
8
45e5264bed1ae6490f07cbff0b537fd9a9fe42fb
app/models/renalware/letters/letter_query.rb
app/models/renalware/letters/letter_query.rb
module Renalware module Letters class LetterQuery def initialize(q: nil) @q = q || {} @q[:s] ||= ["patient_family_name, patient_given_name"] end def call search.result end def search @search ||= QueryableLetter.search(@q) end class Query...
module Renalware module Letters class LetterQuery def initialize(q: nil) @q = q || {} @q[:s] ||= ["issued_on desc"] end def call search.result end def search @search ||= QueryableLetter.search(@q) end class QueryableLetter < ActiveType::...
Sort by issued_on date instead of name
Sort by issued_on date instead of name
Ruby
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
ruby
## Code Before: module Renalware module Letters class LetterQuery def initialize(q: nil) @q = q || {} @q[:s] ||= ["patient_family_name, patient_given_name"] end def call search.result end def search @search ||= QueryableLetter.search(@q) end ...
module Renalware module Letters class LetterQuery def initialize(q: nil) @q = q || {} - @q[:s] ||= ["patient_family_name, patient_given_name"] + @q[:s] ||= ["issued_on desc"] end def call search.result end def search ...
2
0.066667
1
1
d2f0ab2529594c1b248f10c5a1871611616bfcf5
slave/run_slave.bat
slave/run_slave.bat
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools echo Did you read the instructions carefully?? goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% :: Running it once will make sure svn and python were downloaded. ...
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools echo Did you read the instructions carefully?? goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% cd /d %~dp0 :: Running it once will make sure svn and python were ...
Fix auto-sync on start for Windows.
Fix auto-sync on start for Windows. Otherwise it is run from the script's shortcut directory. A good example is when a shortcut is used in the Startup Menu. So "gclient sync" fails. R=nsylvain@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10783034 git-svn-id: 239fca9b83025a0b6f823aeeca0...
Batchfile
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
batchfile
## Code Before: @echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools echo Did you read the instructions carefully?? goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% :: Running it once will make sure svn and python were downlo...
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools echo Did you read the instructions carefully?? goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% + cd /d %~dp0 :: Running it once will make sure svn and ...
1
0.076923
1
0
1c2373ed82555bf5b705e2d6d0f5db452cfb8846
recipes/default.rb
recipes/default.rb
include_recipe "homebrew::default" # Install Homebrew Cask tap include_recipe "homebrew::cask" #Install formulae/packages (list is defined in attributes) include_recipe "homebrew::install_formulas" #Install Casks (list is defined in attributes) include_recipe "homebrew::install_casks"
include_recipe "homebrew::default" # Install Homebrew Cask tap include_recipe "homebrew::cask" # Install Homebrew Cask Versions tap homebrew_tap 'caskroom/versions' #Install formulae/packages (list is defined in attributes) include_recipe "homebrew::install_formulas" #Install Casks (list is defined in attributes) i...
Add Homebrew Cask Versions tap
Add Homebrew Cask Versions tap The Versions tap has casks for some newer software (e.g. Sublime Text 3). Install this so we have access to these versions.
Ruby
mit
mikemoate/mac_bootstrap,mikemoate/mac_bootstrap
ruby
## Code Before: include_recipe "homebrew::default" # Install Homebrew Cask tap include_recipe "homebrew::cask" #Install formulae/packages (list is defined in attributes) include_recipe "homebrew::install_formulas" #Install Casks (list is defined in attributes) include_recipe "homebrew::install_casks" ## Instruction...
include_recipe "homebrew::default" # Install Homebrew Cask tap include_recipe "homebrew::cask" + + # Install Homebrew Cask Versions tap + homebrew_tap 'caskroom/versions' #Install formulae/packages (list is defined in attributes) include_recipe "homebrew::install_formulas" #Install Casks (list is ...
3
0.3
3
0
97d3b3cf2a7b220c34f7b467129fe9de8558e2be
utils/metatag.c
utils/metatag.c
/* metatag.c: Program for adding metadata to a file * By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap, * Connie Yu * * 2014/06/06 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv){ char* buffer; int fd, i, len; if(argc < 3){ ...
/* metatag.c: Program for adding metadata to a file * By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap, * Connie Yu * * 2014/06/06 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_LEN 1024 int main(int argc, char** argv){ char* buffer; int fd, i, len; i...
Add max length error check
Add max length error check
C
mit
dmtaylor/cmps111-proj4,dmtaylor/cmps111-proj4
c
## Code Before: /* metatag.c: Program for adding metadata to a file * By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap, * Connie Yu * * 2014/06/06 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv){ char* buffer; int fd, i, len; if(arg...
/* metatag.c: Program for adding metadata to a file * By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap, * Connie Yu * * 2014/06/06 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> + #define MAX_LEN 1024 int main(int argc, char** argv){ char* buffer; ...
5
0.138889
5
0
45315d2a4e5136a52867b06ba846d0bbec292952
README.md
README.md
[//] # (This is comment for github markdown) My Config ============================================== ##How to install? git clone https://github.com/BellScurry/config ~/config/install.sh ##This repository consists of * Shell Settings * .profile * .bashrc * Vim Settings * .vimrc * .vim * Git Settings * ...
<!-- This is comment for github markdown. --> My Config ============================================== ##How to install? git clone https://github.com/BellScurry/config ~/config/install.sh ##This repository consists of * Shell Settings * .profile * .bashrc * Vim Settings * .vimrc * .vim * Git Settings ...
Test github markdown comment (2nd)
Test github markdown comment (2nd)
Markdown
mit
BellScurry/config
markdown
## Code Before: [//] # (This is comment for github markdown) My Config ============================================== ##How to install? git clone https://github.com/BellScurry/config ~/config/install.sh ##This repository consists of * Shell Settings * .profile * .bashrc * Vim Settings * .vimrc * .vim * Gi...
- [//] # (This is comment for github markdown) ? ^^^^ - ^ ^ + <!-- This is comment for github markdown. --> ? ^^^^ ^^ ^^^^^ My Config ============================================== ##How to install? git clone https://github.com/BellScurry...
2
0.074074
1
1
50f0a4e56d6aa01b9ca75acf6a74711d481d2490
tzinfo.gemspec
tzinfo.gemspec
Gem::Specification.new do |s| s.name = 'tzinfo' s.version = '1.0.0.pre1' s.summary = 'Daylight-savings aware timezone library' s.description = 'TZInfo is a Ruby library that provides daylight savings aware transformations between times in different time zones.' s.author = 'Philip Ross' s.email = 'phil.ros...
Gem::Specification.new do |s| s.name = 'tzinfo' s.version = '1.0.0.pre1' s.summary = 'Daylight-savings aware timezone library' s.description = 'TZInfo is a Ruby library that provides daylight savings aware transformations between times in different time zones.' s.author = 'Philip Ross' s.email = 'phil.ros...
Add a post_install_message to the gem to inform users that the Ruby data modules have been moved.
Add a post_install_message to the gem to inform users that the Ruby data modules have been moved.
Ruby
mit
tzinfo/tzinfo,eadz/tzinfo
ruby
## Code Before: Gem::Specification.new do |s| s.name = 'tzinfo' s.version = '1.0.0.pre1' s.summary = 'Daylight-savings aware timezone library' s.description = 'TZInfo is a Ruby library that provides daylight savings aware transformations between times in different time zones.' s.author = 'Philip Ross' s.e...
Gem::Specification.new do |s| s.name = 'tzinfo' s.version = '1.0.0.pre1' s.summary = 'Daylight-savings aware timezone library' s.description = 'TZInfo is a Ruby library that provides daylight savings aware transformations between times in different time zones.' s.author = 'Philip Ross' s.ema...
23
1.352941
23
0
b0e19929d06af6ea0f71a6cf40ac83bf43c9e061
docs/contributing.rst
docs/contributing.rst
************ Contributing ************ Thanks for your interest in contributing to the Python Record Linkage Toolkit. There is a lot of work to do. The workflow for contributing: - clone https://github.com/J535D165/recordlinkage.git - Make a branch with your modifications/contributions - Write tests - Run all tests -...
************ Contributing ************ Thanks for your interest in contributing to the Python Record Linkage Toolkit. There is a lot of work to do. See `Github <https://github.com/J535D165/recordlinkage/graphs/contributors>`_ for the contributors to this package. The workflow for contributing is as follows: - clon...
Add link to contributors to docs
Add link to contributors to docs
reStructuredText
bsd-3-clause
J535D165/recordlinkage,J535D165/recordlinkage
restructuredtext
## Code Before: ************ Contributing ************ Thanks for your interest in contributing to the Python Record Linkage Toolkit. There is a lot of work to do. The workflow for contributing: - clone https://github.com/J535D165/recordlinkage.git - Make a branch with your modifications/contributions - Write tests -...
************ Contributing ************ Thanks for your interest in contributing to the Python Record Linkage Toolkit. - There is a lot of work to do. The workflow for contributing: + There is a lot of work to do. See `Github <https://github.com/J535D165/recordlinkage/graphs/contributors>`_ + for the contrib...
5
0.083333
4
1
ee4a3eaaa4b80f4a5957f2fdbc9f58fb4065bad1
README.md
README.md
> Strategy driven, segmented feature toggles for Javascript
> Strategy driven, segmented feature toggles for Javascript This is a companion javascript project to the main PHP library: https://github.com/zumba/swivel
Add a link to the PHP repo
Add a link to the PHP repo closes #9
Markdown
mit
zumba/swiveljs
markdown
## Code Before: > Strategy driven, segmented feature toggles for Javascript ## Instruction: Add a link to the PHP repo closes #9 ## Code After: > Strategy driven, segmented feature toggles for Javascript This is a companion javascript project to the main PHP library: https://github.com/zumba/swivel
> Strategy driven, segmented feature toggles for Javascript + + This is a companion javascript project to the main PHP library: https://github.com/zumba/swivel
2
1
2
0
5e04250723437f4e765c207472b47ae92ee59d02
bin/install-stunnel.sh
bin/install-stunnel.sh
set -o errexit set -o nounset STUNNEL_VERSION="5.36" STUNNEL_SHA1SUM="60f7c761214f1959f7d52f0164f77d8d2a9328e6" STUNNEL_NAME="stunnel-${STUNNEL_VERSION}" STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz" STUNNEL_URL="https://www.stunnel.org/downloads/${STUNNEL_ARCHIVE}" STUNNEL_BUILD_DEPS=(build-base linux-headers wget opens...
set -o errexit set -o nounset STUNNEL_VERSION="5.37" STUNNEL_SHA1SUM="9ec0c64838b3013b38e2cac8e4500219a027831c" STUNNEL_NAME="stunnel-${STUNNEL_VERSION}" STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz" STUNNEL_URL="https://s3.amazonaws.com/aptible-source-archives/${STUNNEL_ARCHIVE}" STUNNEL_BUILD_DEPS=(build-base linux-hea...
Use Aptible mirror of stunnel
Use Aptible mirror of stunnel stunnel doesn't keep old archives up on their site, so let's use our own mirror for this.
Shell
mit
aptible/docker-redis,aptible/docker-redis,aptible/docker-redis
shell
## Code Before: set -o errexit set -o nounset STUNNEL_VERSION="5.36" STUNNEL_SHA1SUM="60f7c761214f1959f7d52f0164f77d8d2a9328e6" STUNNEL_NAME="stunnel-${STUNNEL_VERSION}" STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz" STUNNEL_URL="https://www.stunnel.org/downloads/${STUNNEL_ARCHIVE}" STUNNEL_BUILD_DEPS=(build-base linux-he...
set -o errexit set -o nounset - STUNNEL_VERSION="5.36" ? ^ + STUNNEL_VERSION="5.37" ? ^ - STUNNEL_SHA1SUM="60f7c761214f1959f7d52f0164f77d8d2a9328e6" + STUNNEL_SHA1SUM="9ec0c64838b3013b38e2cac8e4500219a027831c" STUNNEL_NAME="stunnel-${STUNNEL_VERSION}" STUNNEL_ARCH...
6
0.206897
3
3
011c3cc28b63a220308f00ac2a061eded5b346f5
.travis.yml
.travis.yml
language: ruby script: bundle exec rake test rvm: - 2.2.1 - 2.2.0 - 2.1.0 - 2.0.0 - 1.9.3 - 1.8.7 notifications: slack: secure: GVD9d+kwR5hzab5ZnWugbCkp9QSYyheSrABWkD+LmpMcWcx7jijajSn4LLvDi/zHYn1MdOBcPe08hSygmpm7ViUApp0EJcSzE4BLU/5oAs+ANV0Qq6jsssMlyo3v8eRAqHNiLxAiAsz+lc0EZWfQnSW8kHzzbO3NeYq1NRL5CgQ...
language: ruby script: bundle exec rake test rvm: - 2.2.1 - 2.2.0 - 2.1.0 - 2.0.0 - 1.9.3 - 1.8.7 notifications: slack: secure: CUYqzHxxls0Kc+s/MiKtjJvxQltXu/BpJYKooxQ3dGYKB3USnQCdOx0roE4rjUlClJwicZJxd4nBeiG66zRnVfoOC317qt9Y9vcFuxTjEzG/Okzez4RdfB6UGsqqiJifu7bf/GJMHIQYcgc59508SngCWDYcceKhr962Gz+M/ls=
Add an updated slack notification
Add an updated slack notification
YAML
mit
tmtmtmtm/csv_to_popolo
yaml
## Code Before: language: ruby script: bundle exec rake test rvm: - 2.2.1 - 2.2.0 - 2.1.0 - 2.0.0 - 1.9.3 - 1.8.7 notifications: slack: secure: GVD9d+kwR5hzab5ZnWugbCkp9QSYyheSrABWkD+LmpMcWcx7jijajSn4LLvDi/zHYn1MdOBcPe08hSygmpm7ViUApp0EJcSzE4BLU/5oAs+ANV0Qq6jsssMlyo3v8eRAqHNiLxAiAsz+lc0EZWfQnSW8kHz...
language: ruby - script: bundle exec rake test rvm: - 2.2.1 - 2.2.0 - 2.1.0 - 2.0.0 - 1.9.3 - 1.8.7 - notifications: slack: - secure: GVD9d+kwR5hzab5ZnWugbCkp9QSYyheSrABWkD+LmpMcWcx7jijajSn4LLvDi/zHYn1MdOBcPe08hSygmpm7ViUApp0EJcSzE4BLU/5oAs+ANV0Qq6jsssMlyo3v8eRAqHNiLxAiAsz+l...
4
0.266667
1
3
642743f6f4e687da99e4ac1a23fa8ff2bdc9dd37
scripts/ruby-install.sh
scripts/ruby-install.sh
echo "Installing chruby" cd ~ wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz tar -xzvf chruby-0.3.9.tar.gz cd chruby-0.3.9/ sudo make install echo "Installing ruby-installer" cd ~ wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz ...
echo "Updating packages" sudo apt-get -y update # Fetches the list of available updates sudo apt-get -y upgrade # Strictly upgrades the current packages sudo apt-get -y dist-upgrade # Installs updates (new ones) sudo apt-get install make sudo apt-get -y update # Fetches the list of available updat...
Update to install missing packages
Update to install missing packages
Shell
mit
allcentury/dotfiles,allcentury/dotfiles
shell
## Code Before: echo "Installing chruby" cd ~ wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz tar -xzvf chruby-0.3.9.tar.gz cd chruby-0.3.9/ sudo make install echo "Installing ruby-installer" cd ~ wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archiv...
+ + echo "Updating packages" + sudo apt-get -y update # Fetches the list of available updates + sudo apt-get -y upgrade # Strictly upgrades the current packages + sudo apt-get -y dist-upgrade # Installs updates (new ones) + sudo apt-get install make + sudo apt-get -y update # Fetches the list of a...
20
0.909091
20
0
bdbd9fdd71556e5d46497b9295c18e8be4b99f02
modules/transactions/src/main/resources/arjuna-properties.xml
modules/transactions/src/main/resources/arjuna-properties.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="CoreEnvironmentBean.nodeIdentifier">1</entry> </properties>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="CoordinatorEnvironmentBean.commitOnePhase">YES</entry> <entry key="ObjectStoreEnvironmentBean.objectStoreDir">PutObjectStoreDirHere</entry> <entry key="ObjectStoreEnvironment...
Use a properties file that is functionally equivalent to the default.
Use a properties file that is functionally equivalent to the default.
XML
apache-2.0
projectodd/wunderboss,projectodd/wunderboss-release,projectodd/wunderboss,projectodd/wunderboss,projectodd/wunderboss-release,projectodd/wunderboss-release
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="CoreEnvironmentBean.nodeIdentifier">1</entry> </properties> ## Instruction: Use a properties file that is functionally equivalent to the default. ## Code After: <?x...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> + <entry key="CoordinatorEnvironmentBean.commitOnePhase">YES</entry> + <entry key="ObjectStoreEnvironmentBean.objectStoreDir">PutObjectStoreDirHere</entry> + <entry key="ObjectStor...
22
4.4
22
0
458b683a66b98ae454eac27e87a0d3951ffa9a44
src/redux/action-types.js
src/redux/action-types.js
export const RUNNING = 'RUNNING'; export const START_LOAD_RUNTIME = 'START_LOAD_RUNTIME'; export const FINISH_LOAD_RUNTIME = 'FINISH_LOAD_RUNTIME'; export const FAIL_LOAD_RUNTIME = 'FAIL_LOAD_RUNTIME';
export const START_LOAD_RUNTIME = 'START_LOAD_RUNTIME'; export const FINISH_LOAD_RUNTIME = 'FINISH_LOAD_RUNTIME'; export const FAIL_LOAD_RUNTIME = 'FAIL_LOAD_RUNTIME'; export const START_PARSE = 'START_PARSE'; export const FINISH_PARSE = 'FINISH_PARSE'; export const FAIL_PARSE = 'FAIL_PARSE'; export const START_COMPI...
Add action types for running code
Add action types for running code
JavaScript
apache-2.0
pcardune/pyret-ide,pcardune/pyret-ide
javascript
## Code Before: export const RUNNING = 'RUNNING'; export const START_LOAD_RUNTIME = 'START_LOAD_RUNTIME'; export const FINISH_LOAD_RUNTIME = 'FINISH_LOAD_RUNTIME'; export const FAIL_LOAD_RUNTIME = 'FAIL_LOAD_RUNTIME'; ## Instruction: Add action types for running code ## Code After: export const START_LOAD_RUNTIME = ...
- export const RUNNING = 'RUNNING'; - export const START_LOAD_RUNTIME = 'START_LOAD_RUNTIME'; export const FINISH_LOAD_RUNTIME = 'FINISH_LOAD_RUNTIME'; export const FAIL_LOAD_RUNTIME = 'FAIL_LOAD_RUNTIME'; + + export const START_PARSE = 'START_PARSE'; + export const FINISH_PARSE = 'FINISH_PARSE'; + export const...
19
3.8
17
2
b9dfbb17512b270103444d972af17c43ddbba26b
ibmcnx/doc/DataSources.py
ibmcnx/doc/DataSources.py
import ibmcnx.functions cell = AdminControl.getCell() cellname = "/Cell:" + cell + "/" # Get a list of all databases except DefaultEJBTimerDataSource and OTiSDataSource dbs = AdminConfig.list('DataSource',AdminConfig.getid(cellname)).splitlines() dsidlist = [] # remove unwanted databases for db in dbs: dbname = ...
import ibmcnx.functions cell = AdminControl.getCell() cellname = "/Cell:" + cell + "/" # Get a list of all databases except DefaultEJBTimerDataSource and OTiSDataSource dbs = AdminConfig.list('DataSource',AdminConfig.getid(cellname)).splitlines() dsidlist = [] # remove unwanted databases for db in dbs: dbname = ...
Create documentation of DataSource Settings
8: Create documentation of DataSource Settings Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
python
## Code Before: import ibmcnx.functions cell = AdminControl.getCell() cellname = "/Cell:" + cell + "/" # Get a list of all databases except DefaultEJBTimerDataSource and OTiSDataSource dbs = AdminConfig.list('DataSource',AdminConfig.getid(cellname)).splitlines() dsidlist = [] # remove unwanted databases for db in db...
import ibmcnx.functions cell = AdminControl.getCell() cellname = "/Cell:" + cell + "/" # Get a list of all databases except DefaultEJBTimerDataSource and OTiSDataSource dbs = AdminConfig.list('DataSource',AdminConfig.getid(cellname)).splitlines() dsidlist = [] # remove unwanted databases for db...
1
0.041667
1
0
e531cb6b4b9938d2dabf2c803bab0234d995807f
functions.php
functions.php
<?php /** * Load admin dependencies. */ $tempdir = get_template_directory(); require_once($tempdir.'/admin/init.php'); /** * Theme set up settings. */ add_action('after_setup_theme', function() { // Configure WP 2.9+ Thumbnails. add_theme_support('post-thumbnails'); set_post_thumbnail_size(50, 50, true); add_...
<?php /** * Load admin dependencies. */ $tempdir = get_template_directory(); require_once($tempdir.'/admin/init.php'); /** * Theme set up settings. */ add_action('after_setup_theme', function() { // Configure WP 2.9+ Thumbnails. add_theme_support('post-thumbnails'); set_post_thumbnail_size(50, 50, true); add_...
Change wp_trim_excerpt to excerpt_more and update return.
Change wp_trim_excerpt to excerpt_more and update return.
PHP
mit
fieleman/wordplate,mikaelmattsson/wordplate,fieleman/wordplate
php
## Code Before: <?php /** * Load admin dependencies. */ $tempdir = get_template_directory(); require_once($tempdir.'/admin/init.php'); /** * Theme set up settings. */ add_action('after_setup_theme', function() { // Configure WP 2.9+ Thumbnails. add_theme_support('post-thumbnails'); set_post_thumbnail_size(50, ...
<?php /** * Load admin dependencies. */ $tempdir = get_template_directory(); require_once($tempdir.'/admin/init.php'); /** * Theme set up settings. */ add_action('after_setup_theme', function() { // Configure WP 2.9+ Thumbnails. add_theme_support('post-thumbnails'); set_post_thu...
4
0.08
2
2
4913a056cf2d677fdf7c2e3e50793e749130bddc
src/Http/Request.php
src/Http/Request.php
<?php namespace Laravel\Lumen\Http; use Illuminate\Support\Arr; use Illuminate\Http\Request as BaseRequest; class Request extends BaseRequest { /** * Get the route handling the request. * * @param string|null $param * @param mixed $default * * @return array|string */ pu...
<?php namespace Laravel\Lumen\Http; use RuntimeException; use Illuminate\Support\Arr; use Illuminate\Http\Request as BaseRequest; class Request extends BaseRequest { /** * Get the route handling the request. * * @param string|null $param * @param mixed $default * * @return array...
Make the fingerprint method compatible with Lumen.
Make the fingerprint method compatible with Lumen.
PHP
mit
orchestral/lumen,laravel/lumen-framework,crynobone/lumen-framework
php
## Code Before: <?php namespace Laravel\Lumen\Http; use Illuminate\Support\Arr; use Illuminate\Http\Request as BaseRequest; class Request extends BaseRequest { /** * Get the route handling the request. * * @param string|null $param * @param mixed $default * * @return array|strin...
<?php namespace Laravel\Lumen\Http; + use RuntimeException; use Illuminate\Support\Arr; use Illuminate\Http\Request as BaseRequest; class Request extends BaseRequest { /** * Get the route handling the request. * * @param string|null $param * @param mixed $defau...
19
0.678571
19
0
a3b47d5bb732e920cba5f7bcddf3f15eab60c337
src/api-components/Sort.js
src/api-components/Sort.js
import React from 'react'; import { sort } from 'sajari'; import Base from './Base.js'; import Components from '../constants/QueryComponentConstants.js'; const Sort = props => { const { field, order, ...others } = props; return ( <Base {...others} runDefault='update' componentName={Component...
import React from 'react'; import { sort } from 'sajari'; import Base from './Base.js'; import Components from '../constants/QueryComponentConstants.js'; const Sort = props => { const { field, order, ...others } = props; return ( <Base {...others} runDefault='update' componentName={Component...
Remove order prop from sort
Remove order prop from sort
JavaScript
mit
sajari/sajari-sdk-react,sajari/sajari-sdk-react
javascript
## Code Before: import React from 'react'; import { sort } from 'sajari'; import Base from './Base.js'; import Components from '../constants/QueryComponentConstants.js'; const Sort = props => { const { field, order, ...others } = props; return ( <Base {...others} runDefault='update' componen...
import React from 'react'; import { sort } from 'sajari'; import Base from './Base.js'; import Components from '../constants/QueryComponentConstants.js'; const Sort = props => { const { field, order, ...others } = props; return ( <Base {...others} runDefault='update' ...
3
0.125
1
2
1a79fb6032f5a6638b97772124ffaf233fd6e44c
docker/rally/extend_start.sh
docker/rally/extend_start.sh
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then rally-manage db create || rally-manage db upgrade exit 0 fi if [[ ! -d "/var/log/kolla/rally" ]]; then mkdir -p /var/log/kolla/rally fi if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then chmod 755 /var/log/kolla/rally fi
if [[ ! -d "/var/log/kolla/rally" ]]; then mkdir -p /var/log/kolla/rally fi if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then chmod 755 /var/log/kolla/rally fi # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty....
Create /var/log/kolla/rally before running rally-manage db create/upgrade
Create /var/log/kolla/rally before running rally-manage db create/upgrade Change-Id: I6f88a4ecb4ba980836b4778252bb49731463f4eb Closes-bug: #1630377
Shell
apache-2.0
dardelean/kolla-ansible,GalenMa/kolla,intel-onp/kolla,rahulunair/kolla,openstack/kolla,mrangana/kolla,intel-onp/kolla,mrangana/kolla,coolsvap/kolla,stackforge/kolla,mandre/kolla,openstack/kolla,mandre/kolla,dardelean/kolla-ansible,GalenMa/kolla,stackforge/kolla,mandre/kolla,coolsvap/kolla,rahulunair/kolla,dardelean/kol...
shell
## Code Before: if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then rally-manage db create || rally-manage db upgrade exit 0 fi if [[ ! -d "/var/log/kolla/rally" ]]; then mkdir -p /var/log/kolla/rally fi if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then chmod 755 /var/log/kolla/rally fi ## Instruction: C...
- if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then - rally-manage db create || rally-manage db upgrade - exit 0 - fi if [[ ! -d "/var/log/kolla/rally" ]]; then mkdir -p /var/log/kolla/rally fi if [[ $(stat -c %a /var/log/kolla/rally) != "755" ]]; then chmod 755 /var/log/kolla/rally fi + + # Boots...
11
1
7
4
6ca27fba516ddc63ad6bae98b20e5f9a42b37451
examples/plotting/file/image.py
examples/plotting/file/image.py
import numpy as np from bokeh.plotting import * from bokeh.objects import Range1d N = 1000 x = np.linspace(0, 10, N) y = np.linspace(0, 10, N) xx, yy = np.meshgrid(x, y) d = np.sin(xx)*np.cos(yy) output_file("image.html", title="image.py example") image( image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spe...
import numpy as np from bokeh.plotting import * N = 1000 x = np.linspace(0, 10, N) y = np.linspace(0, 10, N) xx, yy = np.meshgrid(x, y) d = np.sin(xx)*np.cos(yy) output_file("image.html", title="image.py example") image( image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=["Spectral-11"], x_range=[0, 10], y...
Fix example and remove extraneous import.
Fix example and remove extraneous import.
Python
bsd-3-clause
birdsarah/bokeh,srinathv/bokeh,justacec/bokeh,eteq/bokeh,saifrahmed/bokeh,eteq/bokeh,rothnic/bokeh,dennisobrien/bokeh,deeplook/bokeh,draperjames/bokeh,tacaswell/bokeh,daodaoliang/bokeh,abele/bokeh,abele/bokeh,phobson/bokeh,Karel-van-de-Plassche/bokeh,percyfal/bokeh,ericdill/bokeh,timsnyder/bokeh,CrazyGuo/bokeh,ptitjano...
python
## Code Before: import numpy as np from bokeh.plotting import * from bokeh.objects import Range1d N = 1000 x = np.linspace(0, 10, N) y = np.linspace(0, 10, N) xx, yy = np.meshgrid(x, y) d = np.sin(xx)*np.cos(yy) output_file("image.html", title="image.py example") image( image=[d], x=[0], y=[0], dw=[10], dh=[10...
import numpy as np from bokeh.plotting import * - from bokeh.objects import Range1d N = 1000 x = np.linspace(0, 10, N) y = np.linspace(0, 10, N) xx, yy = np.meshgrid(x, y) d = np.sin(xx)*np.cos(yy) output_file("image.html", title="image.py example") image( image=[d], x=[0], y=[0],...
3
0.130435
0
3
c554bd76e8caa659b9fc5684925bf8bb52c45c1f
app/views/bank_accounts/_form.html.haml
app/views/bank_accounts/_form.html.haml
= simple_form_for @bank_account do |f| = f.input :code = f.input :pc_id = f.input :esr_id = f.input :title = f.association :account_type, :label_method => :title = f.association :bank, :as => :combobox .form-actions = f.button :submit
= simple_form_for @bank_account do |f| .row-fluid .span12= f.input :title .row-fluid .span6= f.input :code .span6= f.association :account_type, :label_method => :title .row-fluid .span12= f.input :tag_list, :input_html => {:class => 'select2-tags span', 'data-tags' => Account.tag_collection.to_jso...
Use proper bootstrap markup for bank account forms.
Use proper bootstrap markup for bank account forms.
Haml
agpl-3.0
hauledev/bookyt,silvermind/bookyt,silvermind/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,hauledev/bookyt,gaapt/bookyt,gaapt/bookyt,xuewenfei/bookyt,huerlisi/bookyt,hauledev/bookyt,gaapt/bookyt,wtag/bookyt,silvermind/bookyt,huerlisi/bookyt,silvermind/bookyt,xuewenfei/bookyt,wtag/book...
haml
## Code Before: = simple_form_for @bank_account do |f| = f.input :code = f.input :pc_id = f.input :esr_id = f.input :title = f.association :account_type, :label_method => :title = f.association :bank, :as => :combobox .form-actions = f.button :submit ## Instruction: Use proper bootstrap markup for b...
= simple_form_for @bank_account do |f| + .row-fluid + .span12= f.input :title + .row-fluid - = f.input :code + .span6= f.input :code ? ++++++++ - = f.input :pc_id - = f.input :esr_id - = f.input :title - = f.association :account_type, :label_method => :title + .span6= f.association :accou...
18
1.8
12
6