commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
8f45810947c0229764fd397b349a1db4dc7f3c5f
Psr4Autoloader.php
Psr4Autoloader.php
<?php /** * @file * @version 0.1 * @copyright 2017 CN-Consult GmbH * @author Yannick Lapp <yannick.lapp@cn-consult.eu> */ /** * Class Psr4Autoloader */ class Psr4Autoloader { private $prefixes = array(); /** * register all prefixes that are saved in the object */ public function register...
<?php /** * @file * @version 0.1 * @copyright 2017 CN-Consult GmbH * @author Yannick Lapp <yannick.lapp@cn-consult.eu> */ /** * Class Psr4Autoloader */ class Psr4Autoloader { private $prefixes = array(); /** * register all prefixes that are saved in the object */ public function register...
Remove unnecessary code from autloader
Remove unnecessary code from autloader Removed unnecessary code.
PHP
mit
ylapp1/GameOfLife
php
## Code Before: <?php /** * @file * @version 0.1 * @copyright 2017 CN-Consult GmbH * @author Yannick Lapp <yannick.lapp@cn-consult.eu> */ /** * Class Psr4Autoloader */ class Psr4Autoloader { private $prefixes = array(); /** * register all prefixes that are saved in the object */ public f...
dd50600c767db0f0e730884f3c4e7e29b04b63b5
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" - "3.3" branches: only: - master - devel - release - py3 # Note: conda is not available for anything but python 2.7. So below we try to install # conda in 2.7 and use conda to install dependencies in the virtualenv for version x.y install: # Install ...
language: python python: - "2.6" - "2.7" - "3.3" branches: only: - master - devel - release - py3 # Note: conda is not available for anything but python 2.7. So below we try to install # conda in 2.7 and use conda to install dependencies in the virtualenv for version x.y install: # Install ...
Add unittest2 to the pip list
Add unittest2 to the pip list
YAML
bsd-3-clause
FrancescAlted/blaze,caseyclements/blaze,aterrel/blaze,FrancescAlted/blaze,xlhtc007/blaze,mwiebe/blaze,aterrel/blaze,caseyclements/blaze,nkhuyu/blaze,mwiebe/blaze,xlhtc007/blaze,LiaoPan/blaze,cpcloud/blaze,ChinaQuants/blaze,dwillmer/blaze,mwiebe/blaze,dwillmer/blaze,maxalbert/blaze,LiaoPan/blaze,scls19fr/blaze,cpcloud/b...
yaml
## Code Before: language: python python: - "2.6" - "2.7" - "3.3" branches: only: - master - devel - release - py3 # Note: conda is not available for anything but python 2.7. So below we try to install # conda in 2.7 and use conda to install dependencies in the virtualenv for version x.y insta...
50bc322ca9fd34a28a03feee80a6192982eef264
lib/omega/generators/templates/project/mongoid.yml.erb
lib/omega/generators/templates/project/mongoid.yml.erb
development: sessions: default: hosts: - localhost:27017 database: <%= dbname %>-development options: allow_dynamic_fields: false identity_map_enabled: true include_root_in_json: false include_type_for_serialization: true preload_models: false scope_overwrite_exceptio...
development: sessions: default: hosts: - localhost:27017 database: <%= dbname %>-development options: allow_dynamic_fields: false identity_map_enabled: false include_root_in_json: false include_type_for_serialization: true preload_models: false scope_overwrite_excepti...
Disable identity map by default.
Disable identity map by default.
HTML+ERB
mit
dcu/omega
html+erb
## Code Before: development: sessions: default: hosts: - localhost:27017 database: <%= dbname %>-development options: allow_dynamic_fields: false identity_map_enabled: true include_root_in_json: false include_type_for_serialization: true preload_models: false scope_ov...
5eb829c17a70ac16e9f1504c0992fdabee27d270
.travis.yml
.travis.yml
language: ruby rvm: - jruby-9.0.4.0 - jruby-9.0.5.0 - jruby-head - 2.1.9 - 2.2.5 - 2.3.1 - ruby-head before_install: gem install bundler -v 1.11.2
language: ruby rvm: - jruby-head - jruby-9.0.5.0 - jruby-9.0.4.0 - 2.3.1 - 2.2.5 - 2.1.8 - ruby-head before_install: gem install bundler -v 1.11.2
Revert to testing MRI 2.1.8 since RVM does not recognize 2.1.9 yet.
Revert to testing MRI 2.1.8 since RVM does not recognize 2.1.9 yet.
YAML
mit
donv/capybara-screenshot-diff,donv/capybara-screenshot-diff
yaml
## Code Before: language: ruby rvm: - jruby-9.0.4.0 - jruby-9.0.5.0 - jruby-head - 2.1.9 - 2.2.5 - 2.3.1 - ruby-head before_install: gem install bundler -v 1.11.2 ## Instruction: Revert to testing MRI 2.1.8 since RVM does not recognize 2.1.9 yet. ## Code After: language: ruby rvm: - jruby-head - jru...
1cbffa343c59ce1a4dd480bf35056363dbd50c4e
views/users/showall.jade
views/users/showall.jade
mixin userCard(curr_user, card_user) include ../partials/userCard extends ../layout block content include ../partials/newrequest input#csrf_token(type='hidden', name='_csrf', value=_csrf) .row.filter-options .col-xs-4.service-type.selected(name=RequestType.LEARN) I want help with .col-xs-4.service-type...
mixin userCard(curr_user, card_user) include ../partials/userCard extends ../layout block content .community-page include ../partials/newrequest input#csrf_token(type='hidden', name='_csrf', value=_csrf) .row.filter-options .col-xs-4.service-type.selected(name=RequestType.LEARN) I want help with ...
Add wrapper CSS class to community page
Add wrapper CSS class to community page
Jade
mit
shareonbazaar/bazaar,shareonbazaar/bazaar,shareonbazaar/bazaar
jade
## Code Before: mixin userCard(curr_user, card_user) include ../partials/userCard extends ../layout block content include ../partials/newrequest input#csrf_token(type='hidden', name='_csrf', value=_csrf) .row.filter-options .col-xs-4.service-type.selected(name=RequestType.LEARN) I want help with .col-x...
dfda6d896f2ef313eb0520018f520950151145e8
sw/templates/base/auth_bar_signedout.html
sw/templates/base/auth_bar_signedout.html
<span><a href="{% url account_signup %}">Sign Up</a></span> <span><a href="{% url account_login %}">Sign In</a></span>
<span><a href="{% url account_login %}">Volunteer sign in / sign up</a></span>
Unify the sign-in/sign-up link to go to the login page.
Unify the sign-in/sign-up link to go to the login page.
HTML
apache-2.0
snswa/swsites,snswa/swsites,snswa/swsites
html
## Code Before: <span><a href="{% url account_signup %}">Sign Up</a></span> <span><a href="{% url account_login %}">Sign In</a></span> ## Instruction: Unify the sign-in/sign-up link to go to the login page. ## Code After: <span><a href="{% url account_login %}">Volunteer sign in / sign up</a></span>
e440b18687598fddf810c3fa90e9689bf5549de2
.travis.yml
.travis.yml
language: python python: - "2.7" notifications: email: false install: - pip install -r requirements/local.txt - pip install coveralls - pip install celery==3.1.17 - pip install django-celery==3.1.16 script: - export PYTHONPATH=$PYTHONPATH:$(pwd)/src - coverage run --source=. fabric_bolt/...
language: python python: - "2.7" services: - postgresql env: - DATABASE_URL='postgres://postgres:@localhost:5432/fabric_bolt_test' SECRET_KEY='tT\xd7\xb06\xf7\x9b\xff\x0fZL\xca\xca\x11\xefM\xacr\xfb\xdf\xca\x9b' notifications: email: false addons: postgresql: "9.3" install: - pip install -r requirements/loc...
Work on getting postgres running for unit tests
Work on getting postgres running for unit tests
YAML
mit
lethe3000/fabric-bolt,jproffitt/fabric-bolt,damoguyan8844/fabric-bolt,worthwhile/fabric-bolt,maximon93/fabric-bolt,paperreduction/fabric-bolt,brajput24/fabric-bolt,jproffitt/fabric-bolt,leominov/fabric-bolt,leominov/fabric-bolt,fabric-bolt/fabric-bolt,brajput24/fabric-bolt,qdqmedia/fabric-bolt,npardington/fabric-bolt,w...
yaml
## Code Before: language: python python: - "2.7" notifications: email: false install: - pip install -r requirements/local.txt - pip install coveralls - pip install celery==3.1.17 - pip install django-celery==3.1.16 script: - export PYTHONPATH=$PYTHONPATH:$(pwd)/src - coverage run --sourc...
f3118373bd8376d3364b38bab0c7f17ce6ca2d9d
ansible/playbook.yml
ansible/playbook.yml
--- - hosts: vagrant sudo: yes tasks: - name: install essential Python packages apt: pkg=$item state=present with_items: - python-pip - python-virtualenv - python-software-properties - name: add Java PPA apt_repository: repo=ppa:webupd8team/java state=present - ...
--- - hosts: vagrant sudo: yes tasks: - name: install essential Python packages apt: pkg=$item state=present with_items: - python-pip - python-virtualenv - python-software-properties - name: add Java PPA apt_repository: repo=ppa:webupd8team/java state=present - ...
Fix loopback IP as HBase prefers.
Fix loopback IP as HBase prefers.
YAML
mit
zsiciarz/vagrant-hbase,zsiciarz/vagrant-hbase,zsiciarz/vagrant-hbase
yaml
## Code Before: --- - hosts: vagrant sudo: yes tasks: - name: install essential Python packages apt: pkg=$item state=present with_items: - python-pip - python-virtualenv - python-software-properties - name: add Java PPA apt_repository: repo=ppa:webupd8team/java stat...
dbaf04286acd2d7b65cd322f601abc12a6fb2960
packages/strapi-provider-upload-local/README.md
packages/strapi-provider-upload-local/README.md
Your configuration is passed down to the cloudinary configuration. (e.g: `cloudinary.config(config)`). You can see the complete list of options [here](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters) **Example** `./extensions/upload/config/settings.json` ```json { "provider": "cloudi...
This provider has only one parameter: `sizeLimit`. **Example** `./extensions/upload/config/settings.json` ```json { "provider": "local", "providerOptions": { "sizeLimit": 100000 } } ``` The `sizeLimit` parameter must be a number. Be aware that the unit is in bytes, and the default is 1000000. When settin...
Fix local upload provider docs
Fix local upload provider docs
Markdown
mit
wistityhq/strapi,wistityhq/strapi
markdown
## Code Before: Your configuration is passed down to the cloudinary configuration. (e.g: `cloudinary.config(config)`). You can see the complete list of options [here](https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters) **Example** `./extensions/upload/config/settings.json` ```json { "pr...
c8a7a53f09f72d9dbe44b1bcb5b85c8ee5ba2c2c
services/migrations/0012_unit_data_source.py
services/migrations/0012_unit_data_source.py
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0011_unit_extensions'), ] operations = [ migrations.AddField( model_name='unit', name='data_source', ...
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0011_unit_extensions'), ] operations = [ migrations.AddField( model_name='unit', name='data_source', ...
Add default to data_source migration.
Add default to data_source migration.
Python
agpl-3.0
City-of-Helsinki/smbackend,City-of-Helsinki/smbackend
python
## Code Before: from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0011_unit_extensions'), ] operations = [ migrations.AddField( model_name='unit', name='data_sour...
bbb3b23a87528d712dedca406dbe7f9488906661
Cargo.toml
Cargo.toml
[package] name = "ppapi" version = "0.0.1" authors = ["Richard Diamond <wichard@vitalitystudios.com>"] links = "helper" build = "src/build.rs" description = "Rust idiomatic bindings to parts of the Pepper API" repository = "https://github.com/DiamondLovesYou/rust-ppapi.git" documentation = "http://diamondlovesyou.githu...
[package] name = "ppapi" version = "0.0.1" authors = ["Richard Diamond <wichard@vitalitystudios.com>"] links = "helper" build = "src/build.rs" description = "Rust idiomatic bindings to parts of the Pepper API" repository = "https://github.com/DiamondLovesYou/rust-ppapi.git" documentation = "http://diamondlovesyou.githu...
Fix incorrect ref for rust-openssl.
Fix incorrect ref for rust-openssl.
TOML
mpl-2.0
DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi,DiamondLovesYou/rust-ppapi
toml
## Code Before: [package] name = "ppapi" version = "0.0.1" authors = ["Richard Diamond <wichard@vitalitystudios.com>"] links = "helper" build = "src/build.rs" description = "Rust idiomatic bindings to parts of the Pepper API" repository = "https://github.com/DiamondLovesYou/rust-ppapi.git" documentation = "http://diamo...
60c3ca8a55bf33ad733661166bd8e6f2595e4d4f
framework/src/build-link/src/main/java/play/core/server/ServerWithStop.java
framework/src/build-link/src/main/java/play/core/server/ServerWithStop.java
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.core.server; /** * A server that can be stopped. */ public interface ServerWithStop { /** * Stop the server. */ public void stop(); /** * Get the address of the server. * * @return The address o...
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.core.server; /** * A server that can be stopped. */ public interface ServerWithStop { /** * Stop the server. */ public void stop(); /** * Get the address of the server. * * @return The address of the server....
Replace tabs/spaces with only spaces
Replace tabs/spaces with only spaces
Java
apache-2.0
Shenker93/playframework,benmccann/playframework,rajeshpg/playframework,rajeshpg/playframework,benmccann/playframework,richdougherty/playframework,richdougherty/playframework,zaneli/playframework,ktoso/playframework,hagl/playframework,mkurz/playframework,richdougherty/playframework,aradchykov/playframework,playframework...
java
## Code Before: /* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.core.server; /** * A server that can be stopped. */ public interface ServerWithStop { /** * Stop the server. */ public void stop(); /** * Get the address of the server. * * @retu...
211f6970e24cd9f1c576bd41b6e77b672c05b429
composer.json
composer.json
{ "name": "zerifas/pushover", "description": "Pushover Notifications", "authors": [ { "name": "Mat Gadd", "email": "mat@zerifas.com" } ], "autoload": { "psr-4": { "Zerifas\\Pushover\\": "src/Pushover/" } }, "require": { ...
{ "name": "zerifas/pushover", "description": "Pushover Notifications", "authors": [ { "name": "Mat Gadd", "email": "mat@zerifas.com" } ], "autoload": { "psr-4": { "Zerifas\\Pushover\\": "src/Pushover/" } }, "require": { ...
Add ext-curl as a requirement.
Add ext-curl as a requirement.
JSON
mit
Drarok/Pushover
json
## Code Before: { "name": "zerifas/pushover", "description": "Pushover Notifications", "authors": [ { "name": "Mat Gadd", "email": "mat@zerifas.com" } ], "autoload": { "psr-4": { "Zerifas\\Pushover\\": "src/Pushover/" } }, "...
82d72ecf0878047b22510fa626ca03e6cf9383b9
test/models/user_test.rb
test/models/user_test.rb
require 'test_helper' class UserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
require 'test_helper' class UserTest < ActiveSupport::TestCase test "should not save user without a name" do user = User.new( username: "jennabear", email: "jenna@gmail.com", password: "1234567", longitude: 122.0, latitude: 37.0, about_me: "Hello, I am a programmer...
Add test for user models
Add test for user models
Ruby
mit
euniceschoi/AccountaBuddy,euniceschoi/AccountaBuddy,euniceschoi/AccountaBuddy
ruby
## Code Before: require 'test_helper' class UserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end ## Instruction: Add test for user models ## Code After: require 'test_helper' class UserTest < ActiveSupport::TestCase test "should not save user without a name" do user = User....
e41e0cbe0607fd147d40fff6fe3c907cdc6d8f0b
Formula/bartycrouch.rb
Formula/bartycrouch.rb
class Bartycrouch < Formula desc "Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files." homepage "https://github.com/Flinesoft/BartyCrouch" url "https://github.com/Flinesoft/BartyCrouch.git", :tag => "4.0.0-alpha.2", :revision => "7edc4cfdcdf934a8...
class Bartycrouch < Formula desc "Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files." homepage "https://github.com/Flinesoft/BartyCrouch" url "https://github.com/Flinesoft/BartyCrouch.git", :tag => "4.0.0", :revision => "3afdce4b875b6e8a573eaa30...
Update formula to version 4.0.0
Update formula to version 4.0.0
Ruby
mit
Flinesoft/BartyCrouch,Flinesoft/BartyCrouch,Flinesoft/BartyCrouch,Flinesoft/BartyCrouch
ruby
## Code Before: class Bartycrouch < Formula desc "Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files." homepage "https://github.com/Flinesoft/BartyCrouch" url "https://github.com/Flinesoft/BartyCrouch.git", :tag => "4.0.0-alpha.2", :revision => "...
cf19e0eb51b5d8d191b252e8b91f424867f54820
3/all.do
3/all.do
export PATH=$PATH:$(pwd)/bin redo-ifchange bin/a redo-ifchange bin/bspl.fs redo-ifchange bin/e redo-ifchange roms/mlm redo-ifchange roms/ngaro echo "Be sure to add bin/ to your \$PATH if you haven't already." >&2 echo " export PATH=\$PATH:$(pwd)/bin" >&2
export PATH=$PATH:$(pwd)/bin redo-ifchange bin/a redo-ifchange bin/bspl.fs redo-ifchange bin/e redo-ifchange roms/mlm redo-ifchange roms/ngaro redo-ifchange roms/sdtest echo "Be sure to add bin/ to your \$PATH if you haven't already." >&2 echo " export PATH=\$PATH:$(pwd)/bin" >&2
Include sdtest as ROM image.
Include sdtest as ROM image.
Stata
mpl-2.0
KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel
stata
## Code Before: export PATH=$PATH:$(pwd)/bin redo-ifchange bin/a redo-ifchange bin/bspl.fs redo-ifchange bin/e redo-ifchange roms/mlm redo-ifchange roms/ngaro echo "Be sure to add bin/ to your \$PATH if you haven't already." >&2 echo " export PATH=\$PATH:$(pwd)/bin" >&2 ## Instruction: Include sdtest as ROM image....
dfd8d6c178f7bbb67e7468d762eae8857c1172e5
bin/ci/before_build.sh
bin/ci/before_build.sh
${RABBITMQCTL:="sudo rabbitmqctl"} ${RABBITMQ_PLUGINS:="sudo rabbitmq-plugins"} # guest:guest has full access to / $RABBITMQCTL add_vhost / $RABBITMQCTL add_user guest guest $RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*" $RABBITMQCTL add_vhost "rabbit/hole" $RABBITMQCTL set_permissions -p "rabbit/hole" gue...
${RABBITHOLE_RABBITMQCTL:="sudo rabbitmqctl"} # guest:guest has full access to / $RABBITHOLE_RABBITMQCTL add_vhost / $RABBITHOLE_RABBITMQCTL add_user guest guest $RABBITHOLE_RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*" $RABBITHOLE_RABBITMQCTL add_vhost "rabbit/hole" $RABBITHOLE_RABBITMQCTL set_permissions...
Use RABBITHOLE_RABBITMQCTL instead of RABBITMQCTL
Use RABBITHOLE_RABBITMQCTL instead of RABBITMQCTL Overriding RABBITMQCTL system-wide has certain effect on RabbitMQ when running it from source.
Shell
bsd-2-clause
michaelklishin/rabbit-hole,loafoe/rabbit-hole,loafoe/rabbit-hole,michaelklishin/rabbit-hole
shell
## Code Before: ${RABBITMQCTL:="sudo rabbitmqctl"} ${RABBITMQ_PLUGINS:="sudo rabbitmq-plugins"} # guest:guest has full access to / $RABBITMQCTL add_vhost / $RABBITMQCTL add_user guest guest $RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*" $RABBITMQCTL add_vhost "rabbit/hole" $RABBITMQCTL set_permissions -p "...
31d2572b2756b8f33ef76f9654d08d37da0fed9a
demo/SpikesNgComponentsDemo/src/app/spikes-timeline-demo/spikes-timeline-demo.component.ts
demo/SpikesNgComponentsDemo/src/app/spikes-timeline-demo/spikes-timeline-demo.component.ts
import { Component, OnInit } from '@angular/core'; import * as tl from 'spikes-ng2-components'; @Component({ selector: 'app-spikes-timeline-demo', templateUrl: './spikes-timeline-demo.component.html', styleUrls: ['./spikes-timeline-demo.component.css'] }) export class SpikesTimelineDemoComponent implements OnIn...
import { Component, OnInit } from '@angular/core'; import * as tl from 'spikes-ng2-components'; @Component({ selector: 'app-spikes-timeline-demo', templateUrl: './spikes-timeline-demo.component.html', styleUrls: ['./spikes-timeline-demo.component.css'] }) export class SpikesTimelineDemoComponent implements OnIn...
Test new items in timeline
Test new items in timeline
TypeScript
mit
SpikesBE/AngularComponents,SpikesBE/AngularComponents
typescript
## Code Before: import { Component, OnInit } from '@angular/core'; import * as tl from 'spikes-ng2-components'; @Component({ selector: 'app-spikes-timeline-demo', templateUrl: './spikes-timeline-demo.component.html', styleUrls: ['./spikes-timeline-demo.component.css'] }) export class SpikesTimelineDemoComponent...
008acd1f915ba0718f6d0b2180f2ed021d5689bd
lib/travis/logs/existence.rb
lib/travis/logs/existence.rb
require 'redis' module Travis module Logs class Existence attr_reader :redis def initialize @redis = Redis.new(url: Logs.config.redis.url) end def occupied!(channel_name) redis.set(key(channel_name), true) end def occupied?(channel_name) redis.get(k...
require 'redis' module Travis module Logs class Existence attr_reader :redis def initialize @redis = Redis.new(url: Logs.config.redis.url) end def occupied!(channel_name) redis.set(key(channel_name), true) end def occupied?(channel_name) redis.get(k...
Make redis key less obscure
Make redis key less obscure
Ruby
mit
final-ci/travis-logs,final-ci/travis-logs,travis-ci/travis-logs,travis-ci/travis-logs
ruby
## Code Before: require 'redis' module Travis module Logs class Existence attr_reader :redis def initialize @redis = Redis.new(url: Logs.config.redis.url) end def occupied!(channel_name) redis.set(key(channel_name), true) end def occupied?(channel_name) ...
a52039c139e0d5b1c5fedb1dfb160e2c9b9387b3
teuthology/task/tests/test_locking.py
teuthology/task/tests/test_locking.py
import pytest class TestLocking(object): def test_correct_os_type(self, ctx, config): os_type = ctx.config.get("os_type") if os_type is None: pytest.skip('os_type was not defined') for remote in ctx.cluster.remotes.iterkeys(): assert remote.os.name == os_type ...
import pytest class TestLocking(object): def test_correct_os_type(self, ctx, config): os_type = ctx.config.get("os_type") if os_type is None: pytest.skip('os_type was not defined') for remote in ctx.cluster.remotes.iterkeys(): assert remote.os.name == os_type ...
Make an exception for debian in tests.test_correct_os_version
Make an exception for debian in tests.test_correct_os_version This is because of a known issue where downburst gives us 7.1 when we ask for 7.0. We're ok with this behavior for now. See: issue #10878 Signed-off-by: Andrew Schoen <1bb641dc23c3a93cce4eee683bcf4b2bea7903a3@redhat.com>
Python
mit
SUSE/teuthology,yghannam/teuthology,dmick/teuthology,caibo2014/teuthology,dreamhost/teuthology,caibo2014/teuthology,t-miyamae/teuthology,ivotron/teuthology,SUSE/teuthology,ceph/teuthology,ivotron/teuthology,ktdreyer/teuthology,SUSE/teuthology,dmick/teuthology,t-miyamae/teuthology,robbat2/teuthology,zhouyuan/teuthology,...
python
## Code Before: import pytest class TestLocking(object): def test_correct_os_type(self, ctx, config): os_type = ctx.config.get("os_type") if os_type is None: pytest.skip('os_type was not defined') for remote in ctx.cluster.remotes.iterkeys(): assert remote.os.name ...
a49ca0d9da492fd90b1dcf7a6880a6a435291b4c
README.md
README.md
iOS app for the badparking project
iOS app for the badparking project ## Written in Swift 3! Should be compiled in XCode 8 (currently in beta) For dependency management Carthage is used. Install Carthage > brew install carthage Switch to XCode 8 beta compiler (if you have installed it along with older Xcode 7) > sudo xcode-select -s /Applications/Xc...
Update Readme with run instruction
Update Readme with run instruction
Markdown
apache-2.0
badparking/badparking-ios,badparking/badparking-ios
markdown
## Code Before: iOS app for the badparking project ## Instruction: Update Readme with run instruction ## Code After: iOS app for the badparking project ## Written in Swift 3! Should be compiled in XCode 8 (currently in beta) For dependency management Carthage is used. Install Carthage > brew install carthage Switc...
7b9ee78646514bb11cdfe590b170f0b334891451
.github/workflows/main.yml
.github/workflows/main.yml
name: Build on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 with: submodules: true token: ${{ secrets.PAT }} - name: Install Pipenv uses: dschep/install-pipenv-action@v1 - name: Install Python dependencies run: cd scripts; pip...
name: Build on: [push] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout source uses: actions/checkout@v1 with: submodules: true token: ${{ secrets.PAT }} - name: Install Pipenv uses: dschep/install-pipenv-action@v1 - name: Install Python dependencie...
Improve naming of the different build stages.
Improve naming of the different build stages.
YAML
mit
jbmorley/gameplay,jbmorley/gameplay,jbmorley/gameplay
yaml
## Code Before: name: Build on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 with: submodules: true token: ${{ secrets.PAT }} - name: Install Pipenv uses: dschep/install-pipenv-action@v1 - name: Install Python dependencies run:...
03ef793a629df689998d25e19d979f7bf9e071dd
manifest.json
manifest.json
{ "name": "Okta Verify Auto Send", "version": "1.1.0", "manifest_version": 2, "author": "Mike Kenyon", "description": "Automatically send an Okta Verify push notification or SMS.", "homepage_url": "https://github.com/mkenyon/okta-verify-auto-send", "icons": { }, "permissions": [ "https://*.okta....
{ "name": "Okta Verify Auto Send", "version": "1.1.0", "manifest_version": 2, "author": "Mike Kenyon", "description": "Automatically send an Okta Verify push notification or SMS.", "homepage_url": "https://github.com/mkenyon/okta-verify-auto-send", "icons": { }, "permissions": [ "https://*.okta....
Add base "*.okta.com/" as a matching URL
Add base "*.okta.com/" as a matching URL At some point, Okta modified their URL redirection system. When I first created this extension, if you navigated to: https://YOUR_COMPANY.okta.com then you were redirected to: https://YOUR_COMPANY.okta.com/login/login.htm However, that is no longer the case. As a result, my ...
JSON
isc
mkenyon/okta-verify-auto-send
json
## Code Before: { "name": "Okta Verify Auto Send", "version": "1.1.0", "manifest_version": 2, "author": "Mike Kenyon", "description": "Automatically send an Okta Verify push notification or SMS.", "homepage_url": "https://github.com/mkenyon/okta-verify-auto-send", "icons": { }, "permissions": [ ...
52a4d67ea38a67605728effdbe137f26b035fde8
README.rst
README.rst
Getting stuff merged ==================== If you have a pull request you want merged, shout at me on Twitter [at]kuramanga or via email kura[at]kura[dot]io Installation ============ Debian/Ubuntu ------------- .. code:: bash sudo wget https://github.com/kura/vagrant-bash-completion/raw/master/vagrant -O /etc/...
Getting stuff merged ==================== If you have a pull request you want merged, shout at me on Twitter [at]kuramanga or via email kura[at]kura[dot]io Installation ============ Debian/Ubuntu ------------- .. code:: bash sudo wget https://raw.github.com/kura/vagrant-bash-completion/master/etc/bash_complet...
Fix url in installation instructions.
Fix url in installation instructions. * Correct the path to https://raw.github.com/kura/vagrant-bash-completion/master/etc/bash_completion.d/vagrant
reStructuredText
mit
kura/vagrant-bash-completion,Tatsh/vagrant-bash-completion,brbsix/vagrant-bash-completion
restructuredtext
## Code Before: Getting stuff merged ==================== If you have a pull request you want merged, shout at me on Twitter [at]kuramanga or via email kura[at]kura[dot]io Installation ============ Debian/Ubuntu ------------- .. code:: bash sudo wget https://github.com/kura/vagrant-bash-completion/raw/master/...
4590c5c44c3bfcfe50b251e16b6bc7bb4e5acf88
.vscode/settings.json
.vscode/settings.json
{ "files.exclude": { "build": true, "dingus/build": true, "docs/build": true, "typings": true, "node_modules": true }, "editor.wrappingColumn": 80, "editor.tabSize": 2 }
{ "files.exclude": { "build": true, "dingus/build": true, "docs/build": true, "typings": true, "node_modules": true }, "editor.wordWrap": "bounded", "editor.wordWrapColumn": 80, "editor.tabSize": 2 }
Update deprecated VSCode config option
Update deprecated VSCode config option
JSON
mit
cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid
json
## Code Before: { "files.exclude": { "build": true, "dingus/build": true, "docs/build": true, "typings": true, "node_modules": true }, "editor.wrappingColumn": 80, "editor.tabSize": 2 } ## Instruction: Update deprecated VSCode config option ## Code After: { "files.exclude": { ...
3746a9949e694910eaeeecf2e05e0a58f3076c34
Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx
Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx
package unreal; extern class UGameplayStatics_Extra { @:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation") static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, VolumeMultiplier...
package unreal; extern class UGameplayStatics_Extra { #if proletariat @:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation") static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, ...
Update to latest perforce change Change 16157 by waneck@wnk-razer on 2018/02/27 22:43:35
[CL-16157] Update to latest perforce change Change 16157 by waneck@wnk-razer on 2018/02/27 22:43:35 [unreal.hx] Isolate proletariat-specific changes
Haxe
mit
proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx
haxe
## Code Before: package unreal; extern class UGameplayStatics_Extra { @:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation") static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, ...
6a1397544429961597719fccf3d6ceb4809eb1f6
src/js/exporter.js
src/js/exporter.js
import PubSub from "./event/pubSub.js"; import Events from "./event/events.js"; class Exporter { constructor() { PubSub.subscribe(Events.SAVE_REQUESTED, type => { let parser = this[type]; if (typeof(parser) != "undefined") { PubSub.publish(Events.PARSE_AND_SAVE, parser); } else { console.error("Pa...
import PubSub from "./event/pubSub.js"; import Events from "./event/events.js"; class Exporter { constructor() { PubSub.subscribe(Events.SAVE_REQUESTED, type => { let parser = this[type]; if (typeof(parser) != "undefined") { PubSub.publish(Events.PARSE_AND_SAVE, parser); } else { console.error("Pa...
Make export follow DTile JSON file spec
Make export follow DTile JSON file spec
JavaScript
unknown
theMagnon/DTile,theMagnon/DTile,MagnonGames/DTile,theMagnon/DTile,MagnonGames/DTile,MagnonGames/DTile
javascript
## Code Before: import PubSub from "./event/pubSub.js"; import Events from "./event/events.js"; class Exporter { constructor() { PubSub.subscribe(Events.SAVE_REQUESTED, type => { let parser = this[type]; if (typeof(parser) != "undefined") { PubSub.publish(Events.PARSE_AND_SAVE, parser); } else { c...
8f375eaf4e3453fee3c41907ef0016de3c11d636
server/main.js
server/main.js
makeThumbNail = function (fileBuffer, extenstion, callback) { var gmImageRessource = gm(fileBuffer, 'image.' + extenstion) , newImage = { side: 400 } , syncSize = function (gmRessource, callback) { gmRessource.size(callback) } , imageSize = Meteor.wrapAsync(syncSize)(gmImageRessource) , imageRatio = { ...
makeThumbNail = function (fileBuffer, extenstion, callback) { var gmImageRessource = gm(fileBuffer, 'image.' + extenstion) , newImage = { side: 400 } function syncSize (gmRessource, callback) { gmRessource.size(callback) } var imageSize = Meteor.wrapAsync(syncSize)(gmImageRessource) newGmImageRess...
Refactor makeThumbNail to produce images with min400 x min400
Refactor makeThumbNail to produce images with min400 x min400
JavaScript
mit
Kriegslustig/meteor-gallery
javascript
## Code Before: makeThumbNail = function (fileBuffer, extenstion, callback) { var gmImageRessource = gm(fileBuffer, 'image.' + extenstion) , newImage = { side: 400 } , syncSize = function (gmRessource, callback) { gmRessource.size(callback) } , imageSize = Meteor.wrapAsync(syncSize)(gmImageRessource) , im...
b6de7b132a0733737658b7ba5d1262f825ad9ca4
src/test/java/com/clxcommunications/xms/ApiErrorTest.java
src/test/java/com/clxcommunications/xms/ApiErrorTest.java
package com.clxcommunications.xms; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.junit.Test; public class ApiErrorTest { private final ApiObjectMapper json = new...
package com.clxcommunications.xms; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.apache.commons.lang3.StringEscapeUtils; import org.junit.runner.RunWith; import com.pholser.junit.quickcheck.Property; import com.pholser.junit.quickcheck.runner.JUnitQuickcheck; @Run...
Use JUnit QuickCheck in ApiError test
Use JUnit QuickCheck in ApiError test
Java
apache-2.0
clxcommunications/sdk-xms-java
java
## Code Before: package com.clxcommunications.xms; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.junit.Test; public class ApiErrorTest { private final ApiObjectM...
d55e2fe3eca27722713a61c70ecb04848c60c41a
control_center.gemspec
control_center.gemspec
$:.push File.expand_path("../lib", __FILE__) require "control_center/version" Gem::Specification.new do |s| s.name = "control_center" s.version = ControlCenter::VERSION s.platform = Gem::Platform::RUBY s.author = "Steve Randy Tantra" s.email = "mail@steverandytantra.com" s.homepage = "http://steverand...
$:.push File.expand_path("../lib", __FILE__) require "control_center/version" Gem::Specification.new do |s| s.name = "control_center" s.version = ControlCenter::VERSION s.platform = Gem::Platform::RUBY s.author = "Steve Randy Tantra" s.email = "mail@steverandytantra.com" s.homepage = "http://steverand...
Update haml version, so it doesn’t include Sass anymore.
Update haml version, so it doesn’t include Sass anymore.
Ruby
mit
steverandy/concen,steverandy/concen
ruby
## Code Before: $:.push File.expand_path("../lib", __FILE__) require "control_center/version" Gem::Specification.new do |s| s.name = "control_center" s.version = ControlCenter::VERSION s.platform = Gem::Platform::RUBY s.author = "Steve Randy Tantra" s.email = "mail@steverandytantra.com" s.homepage = "...
0be67d85e1d203b41d1dddded41f8d634e01a44f
packages/truffle-contract/statuserror.js
packages/truffle-contract/statuserror.js
var TruffleError = require("truffle-error"); var inherits = require("util").inherits; var defaultGas = 90000; var web3 = require("web3"); inherits(StatusError, TruffleError); function StatusError(args, tx, receipt) { var message; var gasLimit = parseInt(args.gas) || defaultGas; if(receipt.gasUsed === gasLimit)...
var TruffleError = require("truffle-error"); var inherits = require("util").inherits; var web3 = require("web3"); inherits(StatusError, TruffleError); var defaultGas = 90000; function StatusError(args, tx, receipt) { var message; var gasLimit = parseInt(args.gas) || defaultGas; if(receipt.gasUsed === gasLimit...
Move errant variable away from require block
Move errant variable away from require block
JavaScript
mit
ConsenSys/truffle
javascript
## Code Before: var TruffleError = require("truffle-error"); var inherits = require("util").inherits; var defaultGas = 90000; var web3 = require("web3"); inherits(StatusError, TruffleError); function StatusError(args, tx, receipt) { var message; var gasLimit = parseInt(args.gas) || defaultGas; if(receipt.gasUs...
4b79b670a426818993b55ec15e35d0deb9e4b7f9
app/Http/Resources/Game.php
app/Http/Resources/Game.php
<?php namespace Zeropingheroes\Lanager\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class Game extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) ...
<?php namespace Zeropingheroes\Lanager\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class Game extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) ...
Add provider field for future use
Add provider field for future use
PHP
agpl-3.0
zeropingheroes/lanager,zeropingheroes/lanager
php
## Code Before: <?php namespace Zeropingheroes\Lanager\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class Game extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArr...
1dd863336641b3e9172c9a08018386bb133960bf
whitenoise/__init__.py
whitenoise/__init__.py
from .base import WhiteNoise __version__ = '2.0.6' __all__ = ['WhiteNoise']
from .base import WhiteNoise __version__ = 'development' __all__ = ['WhiteNoise']
Change version until ready for release
Change version until ready for release
Python
mit
evansd/whitenoise,evansd/whitenoise,evansd/whitenoise
python
## Code Before: from .base import WhiteNoise __version__ = '2.0.6' __all__ = ['WhiteNoise'] ## Instruction: Change version until ready for release ## Code After: from .base import WhiteNoise __version__ = 'development' __all__ = ['WhiteNoise']
3d1392fb3efd0cd37451ea701b3597f3cd8ab258
languages/zh-TW.yml
languages/zh-TW.yml
categories: 分類 search: 搜尋 tags: 標籤 tagcloud: 標籤雲 tweets: 推文 prev: 上一頁 next: 下一頁 comment: 留言 archive_a: 彙整 archive_b: 彙整:%s page: 第 %d 頁 recent_posts: 最新文章
categories: '分類' search: '搜尋' tags: '標籤' tagcloud: '標籤雲' tweets: '推文' prev: '上一頁' next: '下一頁' comment: '留言' archive_a: '彙整' archive_b: '彙整:%s' page: '第 %d 頁' recent_posts: '最新文章'
Fix yml: Add quotes to translation text
Fix yml: Add quotes to translation text
YAML
mit
daisygao/hexo-themes-cover,daisygao/hexo-themes-cover
yaml
## Code Before: categories: 分類 search: 搜尋 tags: 標籤 tagcloud: 標籤雲 tweets: 推文 prev: 上一頁 next: 下一頁 comment: 留言 archive_a: 彙整 archive_b: 彙整:%s page: 第 %d 頁 recent_posts: 最新文章 ## Instruction: Fix yml: Add quotes to translation text ## Code After: categories: '分類' search: '搜尋' tags: '標籤' tagcloud: '標籤雲' tweets: '推文' prev: '上...
d49ea0f01f87925da2c7c4d615a4a58811fa966d
.travis.yml
.travis.yml
language: python python: - "2.7" - "2.6" jdk: oraclejdk7 env: - TOX_ENV=cdh - TOX_ENV=hdp install: - pip install virtualenv - pip install tox script: python setup.py test --tox-args="-e $TOX_ENV"
language: python python: - "2.7" - "2.6" jdk: oraclejdk7 env: - TOX_ENV=cdh - TOX_ENV=hdp sudo: false install: - pip install virtualenv - pip install tox script: python setup.py test --tox-args="-e $TOX_ENV"
Use the new build env on Travis
Use the new build env on Travis faster vms, more ram, more cpu, faster boot times, docs coming soon
YAML
apache-2.0
walkers-mv/luigi,Dawny33/luigi,ZhenxingWu/luigi,Magnetic/luigi,hellais/luigi,altaf-ali/luigi,jamesmcm/luigi,aeron15/luigi,Magnetic/luigi,moandcompany/luigi,rayrrr/luigi,LamCiuLoeng/luigi,fabriziodemaria/luigi,samepage-labs/luigi,republic-analytics/luigi,vine/luigi,casey-green/luigi,theoryno3/luigi,rizzatti/luigi,edx/lu...
yaml
## Code Before: language: python python: - "2.7" - "2.6" jdk: oraclejdk7 env: - TOX_ENV=cdh - TOX_ENV=hdp install: - pip install virtualenv - pip install tox script: python setup.py test --tox-args="-e $TOX_ENV" ## Instruction: Use the new build env on Travis faster vms, more ram, more cpu, faster boot ti...
fbdf78f40db9a29e796484df3b4de4dcda86ce97
app/models/address.rb
app/models/address.rb
class Address < ActiveRecord::Base validates :line_1, :city, :province, :postal_code, :country, presence: true belongs_to :address_card def url_for_address "/addresses/#{id}" end def drop_down_display_value lines = [drop_down_line_1, drop_down_line_2] html_string = "" lines.each do |line| ...
class Address < ActiveRecord::Base validates :line_1, :city, :province, :postal_code, :country, presence: true belongs_to :address_card has_and_belongs_to_many :shipping_carrier_services def url_for_address "/addresses/#{id}" end def drop_down_display_value lines = [drop_down_line_1, drop_down_lin...
Add shipping_carrier_services assosication to this gem untill this ass backwards approach to a feature can be resolved
Add shipping_carrier_services assosication to this gem untill this ass backwards approach to a feature can be resolved
Ruby
mit
Tukaiz/address_book,Tukaiz/address_book
ruby
## Code Before: class Address < ActiveRecord::Base validates :line_1, :city, :province, :postal_code, :country, presence: true belongs_to :address_card def url_for_address "/addresses/#{id}" end def drop_down_display_value lines = [drop_down_line_1, drop_down_line_2] html_string = "" lines.e...
376ee556e8e3bd63a434f0852ee6b907d06eeb05
qiproject.xml
qiproject.xml
<project name="urbi"> <depends buildtime="true" runtime="true" names="libport libqijpeg" /> <!-- Add your project dependencies here --> <!-- <depends buildtime="true" runtime="true" names="foo" /> --> </project>
<project name="urbi"> <depends buildtime="true" names="libport libqijpeg" runtime="true" /> <maintainer email="mnottale@aldebaran-robotics.com">Matthieu Nottale</maintainer> </project>
Add Matthieu Nottale as maintainer
Add Matthieu Nottale as maintainer Change-Id: I7082d3e2b1840c735da9b9565ca4686fa7af91fb Reviewed-on: http://gerrit.aldebaran.lan:8080/16278 Reviewed-by: mnottale <e3ccf1b6558404e921a21fa09cebb1153b50ec36@aldebaran-robotics.com> Tested-by: ncornu <13ba26b8f12d26c819f48749c65f2f7f5c1d13db@aldebaran-robotics.com>
XML
bsd-3-clause
urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi
xml
## Code Before: <project name="urbi"> <depends buildtime="true" runtime="true" names="libport libqijpeg" /> <!-- Add your project dependencies here --> <!-- <depends buildtime="true" runtime="true" names="foo" /> --> </project> ## Instruction: Add Matthieu Nottale as maintainer Change-Id: I7082d3e2b1840c735...
72a7d96f6141b98cfae3c72551ff35659ff27607
scripts/plugins/jquery.popline.justify.js
scripts/plugins/jquery.popline.justify.js
/* jquery.popline.justify.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { $.popline.addButton({ justify: { iconClass: "fa fa-align-justify", mode: "edit", buttons: { justifyLeft: { iconClass: "fa fa-align-left", ...
/* jquery.popline.justify.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { var removeRedundantParagraphTag = function(popline, align) { if ($.popline.utils.browser.ie) { $paragraphs = popline.target.find("p[align=" + align + "]"); $paragraphs....
Remove redundant empty paragraph tag under IE family.
Remove redundant empty paragraph tag under IE family.
JavaScript
mit
ztx1491/popline,ztx1491/popline,kenshin54/popline,roryok/popline,kenshin54/popline,roryok/popline
javascript
## Code Before: /* jquery.popline.justify.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { $.popline.addButton({ justify: { iconClass: "fa fa-align-justify", mode: "edit", buttons: { justifyLeft: { iconClass: "fa fa-alig...
0e4c2df1e105871f3afa9503043a22489822110e
lib/assets/javascripts/channel.js.coffee
lib/assets/javascripts/channel.js.coffee
class @Cable.Channel constructor: (params = {}) -> @channelName ?= @underscore @constructor.name params['channel'] = @channelName @channelIdentifier = JSON.stringify params cable.subscribe(@channelIdentifier, { onConnect: @connected onDisconnect: @disconnected onReceiveData: @recei...
class @Cable.Channel constructor: (params = {}) -> @channelName ?= @underscore @constructor.name params['channel'] = @channelName @channelIdentifier = JSON.stringify params cable.subscribe(@channelIdentifier, { onConnect: @connected onDisconnect: @disconnected onReceiveData: @recei...
Add new convention method for performing channel actions
Add new convention method for performing channel actions
CoffeeScript
mit
MSP-Greg/rails,kmayer/rails,kirs/rails-1,slipstreamstudio/actioncable,bolek/rails,kachick/rails,BlakeWilliams/rails,notapatch/rails,kirs/rails-1,assain/rails,askl56/actioncable,gfvcastro/rails,starknx/rails,flanger001/rails,tjschuck/rails,bradleypriest/rails,matrinox/rails,illacceptanything/illacceptanything,shioyama/r...
coffeescript
## Code Before: class @Cable.Channel constructor: (params = {}) -> @channelName ?= @underscore @constructor.name params['channel'] = @channelName @channelIdentifier = JSON.stringify params cable.subscribe(@channelIdentifier, { onConnect: @connected onDisconnect: @disconnected onRec...
1eddb285b2bea3df9aadfb78f3143dceb31aaaa5
.travis.yml
.travis.yml
language: python python: - "3.3" install: - pip install coverage - pip install git+git://github.com/TangledWeb/tangled.git#egg=tangled - pip install -e . script: - tangled test
language: python python: - "3.3" install: - pip install coverage - pip install git+git://github.com/TangledWeb/tangled.git#egg=tangled - pip install git+git://github.com/TangledWeb/tangled.web.git#egg=tangled.web - pip install -e . script: - tangled test
Add missing tangled.web dep to Travis CI config
Add missing tangled.web dep to Travis CI config
YAML
mit
TangledWeb/tangled.mako
yaml
## Code Before: language: python python: - "3.3" install: - pip install coverage - pip install git+git://github.com/TangledWeb/tangled.git#egg=tangled - pip install -e . script: - tangled test ## Instruction: Add missing tangled.web dep to Travis CI config ## Code After: language: python python: - "3.3" i...
4c36e5d8cad406400cba2d12fa449e188ea0e39f
doc/source/advection.rst
doc/source/advection.rst
.. _pysteps.advection: Advection-based extrapolation (:mod:`pysteps.advection`) ******************************************************** pysteps\.advection\.interface ----------------------------- .. automodule:: pysteps.advection.interface :members: pysteps\.advection\.semilagrangian ---------------- .. autom...
.. _pysteps.advection: Advection-based extrapolation (:mod:`pysteps.advection`) ******************************************************** pysteps\.advection\.interface ----------------------------- .. automodule:: pysteps.advection.interface :members: pysteps\.advection\.semilagrangian --------------------------...
Fix too short title underline
Fix too short title underline
reStructuredText
bsd-3-clause
pySTEPS/pysteps
restructuredtext
## Code Before: .. _pysteps.advection: Advection-based extrapolation (:mod:`pysteps.advection`) ******************************************************** pysteps\.advection\.interface ----------------------------- .. automodule:: pysteps.advection.interface :members: pysteps\.advection\.semilagrangian ----------...
e6e20151fb892e8244a25b537fedb81101a6f348
roles/web/tasks/setup_openbr.yml
roles/web/tasks/setup_openbr.yml
--- - name: Install OpenBR/OpenCV Headers, Libraries copy: src=files/openbr/usr/ dest=/usr - name: Install OpenBR Python Wrapper copy: src=files/openbr/brpy dest=/webapps/vida/local/lib/python2.7/site-packages
--- - name: Install OpenBR/OpenCV Headers, Libraries copy: src=files/openbr/usr/ dest=/usr mode=a+rx - name: Install OpenBR Python Wrapper copy: src=files/openbr/brpy dest=/webapps/vida/local/lib/python2.7/site-packages
Set execute file permissions on openbr files
Set execute file permissions on openbr files
YAML
mit
ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible
yaml
## Code Before: --- - name: Install OpenBR/OpenCV Headers, Libraries copy: src=files/openbr/usr/ dest=/usr - name: Install OpenBR Python Wrapper copy: src=files/openbr/brpy dest=/webapps/vida/local/lib/python2.7/site-packages ## Instruction: Set execute file permissions on openbr files ## Code After: --- - nam...
35099f02fce57482b676add934c853764d60015a
src/compiler/util.cpp
src/compiler/util.cpp
// // Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include <math.h> #include <stdlib.h> #include "util.h" #ifdef _MSC_VER #include <locale.h> #else #include <sstream> #endif doub...
// // Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include <math.h> #include <stdlib.h> #include "util.h" #ifdef _MSC_VER #include <locale.h> #else #include <sstream> #endif doub...
Fix memory leak in float literal parsing Issue=93
Fix memory leak in float literal parsing Issue=93 Contributed by Benoit Jacob
C++
bsd-3-clause
csulmone/angle,csulmone/angle,csulmone/angle,csulmone/angle
c++
## Code Before: // // Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include <math.h> #include <stdlib.h> #include "util.h" #ifdef _MSC_VER #include <locale.h> #else #include <sstre...
4b5caa131c3beb73dc4e18fe30f885a2ffb2b1c3
worker.js
worker.js
var Toolbelt = require('./lib/toolbelt').Toolbelt; var entry = require('./lib/entry'); exports.init = function (config, job, jobContext, callback) { callback(null, { env: {}, path: [], deploy: function (phaseContext, cb) { var toolbelt = new Toolbelt(config, job, jobContext, phaseContext); ...
var Toolbelt = require('strider-deconst-common').Toolbelt; var entry = require('./lib/entry'); exports.init = function (config, job, jobContext, callback) { callback(null, { env: {}, path: [], deploy: function (phaseContext, cb) { var toolbelt = new Toolbelt(config, job, jobContext, phaseContext);...
Use the common package's Toolbelt.
Use the common package's Toolbelt.
JavaScript
mit
deconst/strider-deconst-control,deconst/strider-deconst-control
javascript
## Code Before: var Toolbelt = require('./lib/toolbelt').Toolbelt; var entry = require('./lib/entry'); exports.init = function (config, job, jobContext, callback) { callback(null, { env: {}, path: [], deploy: function (phaseContext, cb) { var toolbelt = new Toolbelt(config, job, jobContext, phaseC...
f50579da8373d168bc151f7fe4f9ae8854dc9dd1
composer.json
composer.json
{ "name": "markup/needle-bundle", "description": "A Symfony2 bundle for search. Defines a standard search query builder (including filters and faceting), and integrates with different backends (currently Solr/Solarium).", "keywords": ["search", "faceting", "solr"], "type": "symfony-bundle", "license...
{ "name": "markup/needle-bundle", "description": "A Symfony2 bundle for search. Defines a standard search query builder (including filters and faceting), and integrates with different backends (currently Solr/Solarium).", "keywords": ["search", "faceting", "solr"], "type": "symfony-bundle", "license...
Add bin/ folder to allow for tests to be ran with the phpunit version stated
Add bin/ folder to allow for tests to be ran with the phpunit version stated
JSON
mit
usemarkup/NeedleBundle
json
## Code Before: { "name": "markup/needle-bundle", "description": "A Symfony2 bundle for search. Defines a standard search query builder (including filters and faceting), and integrates with different backends (currently Solr/Solarium).", "keywords": ["search", "faceting", "solr"], "type": "symfony-bundl...
38669acc445dc4376968bf1bb885b8b205688a6e
syncplay/ui/sound.py
syncplay/ui/sound.py
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound(buzzPath, winso...
Fix for exception due to missing buzzer.wav
Fix for exception due to missing buzzer.wav
Python
apache-2.0
NeverDecaf/syncplay,alby128/syncplay,Syncplay/syncplay,alby128/syncplay,NeverDecaf/syncplay,Syncplay/syncplay
python
## Code Before: try: import winsound except ImportError: winsound = None try: import alsaaudio import wave except ImportError: alsaaudio = None from syncplay import utils def doBuzz(): if(winsound): buzzPath = utils.findWorkingDir() + "\\resources\\buzzer.wav" winsound.PlaySound...
c0736c01e8f2299e36c67931d3e98eca5986c836
app/views/timeboxes/new.html.erb
app/views/timeboxes/new.html.erb
<div class = "header-spacer"></div> <div class = "timer-container"> <div id = "timer-block"> <div class="center-text">Create a new Timebox!</div> <%= form_for @timebox, :html => {:id => 'timer-selector' } do |f| %> <%= f.label "Work block time:" %> <%= f.select :work_block_time, [5, 10, 15 , 20] %><br> ...
<div class = "header-spacer"></div> <div class = "timer-container"> <div id = "timer-block"> <div class="center-text">Create a new Timebox!</div> <%= form_for @timebox, :html => {:id => 'timer-selector' } do |f| %> <%= f.label "Work block time:" %> <%= f.select :work_block_time, [5, 10, 15 , 20] %><br> ...
Remove shardcoded activity select from timebox form
Remove shardcoded activity select from timebox form
HTML+ERB
mit
thepintar/breaktimerails,thepintar/breaktimerails,thepintar/breaktimerails
html+erb
## Code Before: <div class = "header-spacer"></div> <div class = "timer-container"> <div id = "timer-block"> <div class="center-text">Create a new Timebox!</div> <%= form_for @timebox, :html => {:id => 'timer-selector' } do |f| %> <%= f.label "Work block time:" %> <%= f.select :work_block_time, [5, 10, 15...
41dc7cd54c990de78dc843e4bc2c320023528fc4
test/index.html
test/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>QUnit Example</title> <link rel="stylesheet" href="qunit.css"> <script src="/oasis.js.html"></script> <script src="qunit.js"></script> <script src="vendor/jquery-1.9.1.js"></script> <script src="test_helpers.js"></script> <script src="tests.js"...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>QUnit Example</title> <link rel="stylesheet" href="qunit.css"> <script src="/oasis.js.html"></script> <script src="qunit.js"></script> <script src="vendor/jquery-1.9.1.js"></script> <script src="test_helpers.js"></script> <script src="tests.js"...
Hide passed tests by default.
Hide passed tests by default. Even in IE8.
HTML
mit
ef4/oasis.js,tildeio/oasis.js,yapplabs/oasis.js,ef4/oasis.js
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>QUnit Example</title> <link rel="stylesheet" href="qunit.css"> <script src="/oasis.js.html"></script> <script src="qunit.js"></script> <script src="vendor/jquery-1.9.1.js"></script> <script src="test_helpers.js"></script> <scrip...
0eee55b7994d72ea6b5f625d4dfae633e2b8236b
rc.d/2.dhcpd.sh.in
rc.d/2.dhcpd.sh.in
case "$1" in start) # limit to control network cnetif= if [ -x @prefix@/sbin/findif ]; then cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@` fi if [ -x @prefix@/sbin/daemon_wrapper ]; then echo -n " dhcpd wrapper" @prefix@/sbin/daemon_wrapper \ /usr/local/sbin/dhcpd -f $cnetif fi ;; stop)...
elabinelab="@ELABINELAB@" case "$1" in start) # limit to control network cnetif= if [ $elabinelab != "1" -a -x @prefix@/sbin/findif ]; then cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@` fi if [ -x @prefix@/sbin/daemon_wrapper ]; then echo -n " dhcpd wrapper" @prefix@/sbin/daemon_wrapper \ /...
Adjust previous fix to compensate for elabinelab (which must continue to listen on the "real" control net).
Adjust previous fix to compensate for elabinelab (which must continue to listen on the "real" control net).
unknown
agpl-3.0
nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome
unknown
## Code Before: case "$1" in start) # limit to control network cnetif= if [ -x @prefix@/sbin/findif ]; then cnetif=`@prefix@/sbin/findif -i @BOSSNODE_IP@` fi if [ -x @prefix@/sbin/daemon_wrapper ]; then echo -n " dhcpd wrapper" @prefix@/sbin/daemon_wrapper \ /usr/local/sbin/dhcpd -f $cnetif ...
0af7a12197e281879aa2ba3ec732e3b352a84acf
templates/zerver/api/construct-narrow.md
templates/zerver/api/construct-narrow.md
A **narrow** is a set of filters for Zulip messages, that can be based on many different factors (like sender, stream, topic, search keywords, etc.). the Zulip API (espec in the API for fetching messages). It is simplest top explain the algorithm for encoding a search as a narrow using a single example. Consider th...
A **narrow** is a set of filters for Zulip messages, that can be based on many different factors (like sender, stream, topic, search keywords, etc.). Narrows are used in various places in the the Zulip API (most importantly, in the API for fetching messages). It is simplest to explain the algorithm for encoding a se...
Fix typos in doc on constructing narrows.
api: Fix typos in doc on constructing narrows.
Markdown
apache-2.0
punchagan/zulip,synicalsyntax/zulip,jackrzhang/zulip,punchagan/zulip,punchagan/zulip,eeshangarg/zulip,jackrzhang/zulip,shubhamdhama/zulip,kou/zulip,andersk/zulip,zulip/zulip,synicalsyntax/zulip,rishig/zulip,shubhamdhama/zulip,rishig/zulip,shubhamdhama/zulip,tommyip/zulip,jackrzhang/zulip,zulip/zulip,rishig/zulip,puncha...
markdown
## Code Before: A **narrow** is a set of filters for Zulip messages, that can be based on many different factors (like sender, stream, topic, search keywords, etc.). the Zulip API (espec in the API for fetching messages). It is simplest top explain the algorithm for encoding a search as a narrow using a single examp...
17a1e2bb93976cb2fbf5237f98f2836607064db5
app/views/expenses/index.html.erb
app/views/expenses/index.html.erb
<div id="content"> <h2>Recent Expenses</h2> <% @expenses.each do |group, expenses| %> <h3><%= group %></h3> <ul class="expenses"> <% expenses.each do |expense| -%> <li><strong><%= number_to_currency expense.cost %></strong> on <span><%= h expense.item %></span>.</li> <% end %> </ul...
<div id="content"> <h2>Recent Expenses</h2> <% if @expenses.length > 0 %> <% @expenses.each do |group, expenses| %> <h3><%= group %></h3> <ul class="expenses"> <% expenses.each do |expense| -%> <li><strong><%= number_to_currency expense.cost %></strong> on <span><%= h expense.ite...
Add a message for users with no expenses.
Add a message for users with no expenses.
HTML+ERB
mit
Stackato-Apps/expense,Stackato-Apps/expense,tristandunn/expense
html+erb
## Code Before: <div id="content"> <h2>Recent Expenses</h2> <% @expenses.each do |group, expenses| %> <h3><%= group %></h3> <ul class="expenses"> <% expenses.each do |expense| -%> <li><strong><%= number_to_currency expense.cost %></strong> on <span><%= h expense.item %></span>.</li> <%...
024037dd89e2cc92f53138322d976fa0586fdf2a
us_portland.html
us_portland.html
--- layout: base title: Computer Anonymous - Portland --- <h1>Computer Anonymous — Portland, ME</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h3>The Meetings</h3> <p>Our first meeting on November 7 was a great success! We're busy planning our Dec...
--- layout: base title: Computer Anonymous - Portland --- <h1>Computer Anonymous — Portland, ME</h1> <p>Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. <h3>The Meetings</h3> <p>Our first meeting was a great success! We're tentatively planning to have our December me...
Update meeting page with tentative december date and time
Update meeting page with tentative december date and time per issue #1
HTML
cc0-1.0
patrickod/computer,ComputerAnonymousSeattle/computer,patrickod/computer,ComputerAnonymousSeattle/computer,tdfischer/computer,tdfischer/computer
html
## Code Before: --- layout: base title: Computer Anonymous - Portland --- <h1>Computer Anonymous — Portland, ME</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h3>The Meetings</h3> <p>Our first meeting on November 7 was a great success! We're busy ...
3f0dcb511779cc083cf3e63985a4ec42465a2663
app/partials/question-list.html
app/partials/question-list.html
<div ng-controller="QuestionListCtrl"> <div class="row-fluid" ng-repeat="question in questions"> <div class="span2 offset1 muted text-center"> <bold>{{question.votes}}</bold> <p>votes</p> <bold>{{question.answers}}</bold> <p>answers</p>...
<div ng-controller="QuestionListCtrl"> <div class="row-fluid" ng-repeat="question in questions"> <div class="span2 offset1 muted text-center"> <bold>{{question.votes}}</bold> <p>votes</p> <bold>{{question.number_of_answers}}</bold> <p>a...
Update client for new JSON spec.
Update client for new JSON spec.
HTML
agpl-3.0
tatsuhirosatou/p2p-app-backend,tatsuhirosatou/p2p-app-backend
html
## Code Before: <div ng-controller="QuestionListCtrl"> <div class="row-fluid" ng-repeat="question in questions"> <div class="span2 offset1 muted text-center"> <bold>{{question.votes}}</bold> <p>votes</p> <bold>{{question.answers}}</bold> ...
981d61c73fe093571564b293007061baf461f390
app/javascript/styles/_signups.scss
app/javascript/styles/_signups.scss
$signup-state-color-confirmed: lighten($green, 45%); $signup-state-color-waitlisted: lighten($yellow, 25%); $signup-state-color-withdrawn: lighten($red, 35%); $signup-state-colors: () !default; $signup-state-colors: map-merge( ( 'signup-state-color-confirmed': $signup-state-color-confirmed, 'signup-state-col...
$signup-state-color-confirmed: $green; $signup-state-color-waitlisted: $yellow; $signup-state-color-withdrawn: $red; $signup-state-colors: () !default; $signup-state-colors: map-merge( ( 'signup-state-color-confirmed': $signup-state-color-confirmed, 'signup-state-color-waitlisted': $signup-state-color-waitli...
Update signup state colors for BS5 defaults
Update signup state colors for BS5 defaults
SCSS
mit
neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode
scss
## Code Before: $signup-state-color-confirmed: lighten($green, 45%); $signup-state-color-waitlisted: lighten($yellow, 25%); $signup-state-color-withdrawn: lighten($red, 35%); $signup-state-colors: () !default; $signup-state-colors: map-merge( ( 'signup-state-color-confirmed': $signup-state-color-confirmed, '...
7e1fb9d49766eba1cea53adbd4f1524ff773bd6f
Gruntfile.js
Gruntfile.js
"use strict"; module.exports = function (grunt) { grunt.initConfig({ eslint: { options: { config: ".eslintrc" }, src: [ "Gruntfile.js", "bin/argo-trading-plugin-seed" ] } }); grunt.loadNpmTasks...
"use strict"; module.exports = function (grunt) { grunt.initConfig({ eslint: { options: { config: ".eslintrc" }, src: [ "Gruntfile.js", "bin/argo-trading-plugin-seed", "scripts/**/*.js", "lib...
Add scripts and libs folders to the linting task.
Add scripts and libs folders to the linting task.
JavaScript
mit
albertosantini/argo-trading-plugin-seed
javascript
## Code Before: "use strict"; module.exports = function (grunt) { grunt.initConfig({ eslint: { options: { config: ".eslintrc" }, src: [ "Gruntfile.js", "bin/argo-trading-plugin-seed" ] } }); gr...
dbc8555d72f8090efeb5b0562a1cb53ee4ce7db6
uworkers/source/uworkers/core/endpoint/ParametrizedRequest.java
uworkers/source/uworkers/core/endpoint/ParametrizedRequest.java
package uworkers.core.endpoint; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.TextMessage; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public class ParametrizedRequest { final TextMessage message; final MessageProducer producer; public ParametrizedRequest...
package uworkers.core.endpoint; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.TextMessage; import lombok.Getter; import lombok.NonNull; import lombok.RequiredArgsConstructor; import lombok.Setter; @Getter @Setter @RequiredArgsConstructor public class ParametrizedRequest { @NonNu...
Allow developers to inspect sent JMS message
Allow developers to inspect sent JMS message
Java
apache-2.0
Skullabs/uWorkers,Skullabs/uWorkers
java
## Code Before: package uworkers.core.endpoint; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.TextMessage; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public class ParametrizedRequest { final TextMessage message; final MessageProducer producer; public Par...
eb671cf894a66c64dfb9de74f82d42801a5a3e8e
CakesROPSpider/README.md
CakesROPSpider/README.md
CakesSpiderROP ======== Installs the mset rop using spider. Usage ======== ## Basic usage Copy code.bin to the root of your sdcard and point your spider to : * On 4.x firm : http://dukesrg.no-ip.org/3ds/rop/?LoadCode4.dat ![qr](https://chart.googleapis.com/chart?cht=qr&chs=220x220&chl=http://dukesrg.no-ip.or...
CakesSpiderROP ======== Installs the mset rop using spider. ## NOTE On **4.x firm** this will install the ROP for **mset 4.x**. Otherwise on **9.0 firm** this installs the ROP for **mset 6.x**. Usage ======== ## Basic usage Copy code.bin to the root of your sdcard and point your spider to : * On 4.x firm : http...
Make it clear which mset ROP is installed for the supported firms
Make it clear which mset ROP is installed for the supported firms
Markdown
bsd-2-clause
mid-kid/CakesROP,Shadowtrance/CakesROP,soarqin/CakesROP,Shadowtrance/CakesROP,soarqin/CakesROP,mid-kid/CakesROP
markdown
## Code Before: CakesSpiderROP ======== Installs the mset rop using spider. Usage ======== ## Basic usage Copy code.bin to the root of your sdcard and point your spider to : * On 4.x firm : http://dukesrg.no-ip.org/3ds/rop/?LoadCode4.dat ![qr](https://chart.googleapis.com/chart?cht=qr&chs=220x220&chl=http://...
0931007d6b3f64de3f8dd7e2bff1ff73d28c2294
src/Foreign/Marshall.elm
src/Foreign/Marshall.elm
module Foreign.Marshall where import Foreign.Types exposing (JSRaw) import Native.Foreign unsafeNull : a unsafeNull = Native.Foreign.unsafeNull unsafeRequire : String -> a unsafeRequire = Native.Foreign.unsafeRequire unsafeGetGlobalConstant : String -> a unsafeGetGlobalConstant = Native.Foreign.unsafeGetGlobalConst...
module Foreign.Marshall where import Json.Decode as Json import Foreign.Types exposing (JSRaw) import Native.Foreign unsafeNull : a unsafeNull = Native.Foreign.unsafeNull unsafeRequire : String -> a unsafeRequire = Native.Foreign.unsafeRequire unsafeGetGlobalConstant : String -> a unsafeGetGlobalConstant = Native.F...
Use Json.Value over anything else
Use Json.Value over anything else
Elm
mit
Fresheyeball/elm-node
elm
## Code Before: module Foreign.Marshall where import Foreign.Types exposing (JSRaw) import Native.Foreign unsafeNull : a unsafeNull = Native.Foreign.unsafeNull unsafeRequire : String -> a unsafeRequire = Native.Foreign.unsafeRequire unsafeGetGlobalConstant : String -> a unsafeGetGlobalConstant = Native.Foreign.unsa...
84e6e0baf07f227c52c3d7138ce46e8bb1fce6a7
tests/app/bootstrap.php
tests/app/bootstrap.php
<?php /** * Arvici App Bootstrap. * * @author Tom Valk <tomvalk@lt-box.info> * @copyright 2016 Tom Valk */ /** * Define the base directory containing the 'App' folder. */ defined('BASEPATH') || define('BASEPATH', __DIR__ . DS); /** * Define all the paths in the base. */ defined('APPPATH') || define('APP...
<?php /** * Arvici App Bootstrap. * * @author Tom Valk <tomvalk@lt-box.info> * @copyright 2016 Tom Valk */ use Arvici\Heart\Config\Configuration; /** * Define the base directory containing the 'App' folder. */ defined('BASEPATH') || define('BASEPATH', __DIR__ . DS); /** * Define all the paths in the base...
Set default timezone according to the configuration.
Set default timezone according to the configuration.
PHP
mit
arvici/framework,arvici/framework
php
## Code Before: <?php /** * Arvici App Bootstrap. * * @author Tom Valk <tomvalk@lt-box.info> * @copyright 2016 Tom Valk */ /** * Define the base directory containing the 'App' folder. */ defined('BASEPATH') || define('BASEPATH', __DIR__ . DS); /** * Define all the paths in the base. */ defined('APPPATH'...
adf0e5cbec09396510baf593bb1197abf87d5fc6
faye/config.ru
faye/config.ru
require 'faye' Faye::WebSocket.load_adapter('thin') bayeux = Faye::RackAdapter.new(:mount => 'faye', :timeout => 50) run bayeux
require 'faye' Faye::WebSocket.load_adapter('thin') bayeux = Faye::RackAdapter.new(:mount => 'faye', :timeout => 50) class ServerAuth def incoming(message, callback) unless message["channel"] == '/meta/subcribe' return callback.call(message) end subscription = message["subscription"] msg_token = m...
Add the extension for faye.
Add the extension for faye.
Ruby
mit
yiyangyi/cc98-rails,yiyangyi/cc98-rails,yiyangyi/cc98-rails
ruby
## Code Before: require 'faye' Faye::WebSocket.load_adapter('thin') bayeux = Faye::RackAdapter.new(:mount => 'faye', :timeout => 50) run bayeux ## Instruction: Add the extension for faye. ## Code After: require 'faye' Faye::WebSocket.load_adapter('thin') bayeux = Faye::RackAdapter.new(:mount => 'faye', :timeout =...
3c95e770810132d11a4e418cec4c8eea64bdb8b5
core/src/main/java/io/undertow/server/handlers/HttpTraceHandler.java
core/src/main/java/io/undertow/server/handlers/HttpTraceHandler.java
package io.undertow.server.handlers; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; import io.undertow.util.HeaderValues; import io.undertow.util.Headers; import io.undertow.util.Methods; /** * A handler that handles HTTP trace requests * * @author Stuart Douglas */ public cl...
package io.undertow.server.handlers; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; import io.undertow.util.HeaderValues; import io.undertow.util.Headers; import io.undertow.util.Methods; /** * A handler that handles HTTP trace requests * * @author Stuart Douglas */ public cl...
Fix bug in trace handler
Fix bug in trace handler
Java
apache-2.0
baranowb/undertow,wildfly-security-incubator/undertow,darranl/undertow,Karm/undertow,TomasHofman/undertow,rhusar/undertow,aradchykov/undertow,ctomc/undertow,pedroigor/undertow,amannm/undertow,grassjedi/undertow,n1hility/undertow,jstourac/undertow,nkhuyu/undertow,golovnin/undertow,nkhuyu/undertow,TomasHofman/undertow,ct...
java
## Code Before: package io.undertow.server.handlers; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; import io.undertow.util.HeaderValues; import io.undertow.util.Headers; import io.undertow.util.Methods; /** * A handler that handles HTTP trace requests * * @author Stuart Dougl...
d0da729a423ff31c2551138686e09afea4eb212f
data/colors.sql
data/colors.sql
INSERT INTO color (wikidata_id, color) VALUES ('blue', 'Q1088'), ('brown', 'Q47071'), ('cyan', 'Q180778'), ('green', 'Q3133'), ('magenta', 'Q3276756'), ('orange', 'Q39338'), ('purple', 'Q3257809'), ('red', 'Q3142'), ('white', 'Q23444'), ('yellow', 'Q943');
INSERT INTO color (wikidata_id, color) VALUES ('Q1088', 'blue'), ('Q47071', 'brown'), ('Q180778', 'cyan'), ('Q3133', 'green'), ('Q3276756', 'magenta'), ('Q39338', 'orange'), ('Q3257809', 'purple'), ('Q3142', 'red'), ('Q23444', 'white'), ('Q943', 'yellow');
Swap columns in color sql
Swap columns in color sql
SQL
mit
iimog/wikidata-game-flower-color,iimog/wikidata-game-flower-color
sql
## Code Before: INSERT INTO color (wikidata_id, color) VALUES ('blue', 'Q1088'), ('brown', 'Q47071'), ('cyan', 'Q180778'), ('green', 'Q3133'), ('magenta', 'Q3276756'), ('orange', 'Q39338'), ('purple', 'Q3257809'), ('red', 'Q3142'), ('white', 'Q23444'), ('yellow', 'Q943'); ## Instruction: Swap columns in colo...
f77f4e4ad9927ca99a7b702b7914da257df77e22
README.md
README.md
Rock Packages ============= Rock RPM packages. ## Supported Distributions * CentOS / RHEL: 6 Runtimes * Node: 0.4, 0.6, 0.8 * Perl: 5.16 * Python: 2.7 * Ruby: 1.8, 1.9 ## License This work is licensed under the MIT License (see the LICENSE file).
Rock Packages ============= Rock RPM packages. ## Supported Distributions * CentOS / RHEL: 6 Runtimes * Node: 0.4, 0.6, 0.8 * Perl: 5.16 * PHP: 5.4 * Python: 2.7 * Ruby: 1.8, 1.9 ## License This work is licensed under the MIT License (see the LICENSE file).
Add PHP 5.4 to readme
Add PHP 5.4 to readme
Markdown
mit
ewaters/packages,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,ewaters/packages,ewaters/packages
markdown
## Code Before: Rock Packages ============= Rock RPM packages. ## Supported Distributions * CentOS / RHEL: 6 Runtimes * Node: 0.4, 0.6, 0.8 * Perl: 5.16 * Python: 2.7 * Ruby: 1.8, 1.9 ## License This work is licensed under the MIT License (see the LICENSE file). ## Instruction: Add PHP 5.4 to readme ...
d0da7e3caac7b0f20b5c1625ed5f958bb7a27c68
config/initializers/rufus-scheduler.rb
config/initializers/rufus-scheduler.rb
return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == 'rake' s = Rufus::Scheduler.singleton s.every '1m' do Rails.logger.info "hello, it's #{Time.now}" Rails.logger.flush end
return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == "rake" s = Rufus::Scheduler.singleton s.every "1h" do Rails.logger.info "Update characters" Rails.logger.flush UpdateCharactersJob.perform_later end
Update characters info each hour
Update characters info each hour
Ruby
mit
biow0lf/evemonk,biow0lf/evemonk,biow0lf/evemonk
ruby
## Code Before: return if defined?(Rails::Console) || Rails.env.test? || File.split($0).last == 'rake' s = Rufus::Scheduler.singleton s.every '1m' do Rails.logger.info "hello, it's #{Time.now}" Rails.logger.flush end ## Instruction: Update characters info each hour ## Code After: return if defined?(Rails::Con...
5f314ffc1f7ff3f3754344541a151e78c3391420
src/CMakeLists.txt
src/CMakeLists.txt
add_subdirectory( common ) add_subdirectory( image_annotator ) add_subdirectory( video_annotator ) add_subdirectory( video_slicer ) add_subdirectory( db_uploader ) # Add install target for OpenCV shared libs if( WIN32 ) install( FILES ${OpenCV_SHARED_LIBS} DESTINATION . ) endif()
add_subdirectory( common ) add_subdirectory( image_annotator ) add_subdirectory( video_annotator ) add_subdirectory( video_slicer ) add_subdirectory( db_uploader ) # Add install target for OpenCV shared libs if( WIN32 ) install( FILES ${OpenCV_SHARED_LIBS} DESTINATION . ) file( GLOB FFMPEG_DLLS ${FFMPEG_LIBRARY_DI...
Add ffmpeg shared libs to build
Add ffmpeg shared libs to build
Text
mit
BGWoodward/FishDetector
text
## Code Before: add_subdirectory( common ) add_subdirectory( image_annotator ) add_subdirectory( video_annotator ) add_subdirectory( video_slicer ) add_subdirectory( db_uploader ) # Add install target for OpenCV shared libs if( WIN32 ) install( FILES ${OpenCV_SHARED_LIBS} DESTINATION . ) endif() ## Instruction: Add...
fcde58bf33700d099bcd63342cd6048657f2843f
lib/changelogger.rb
lib/changelogger.rb
require 'grit' require 'changelogger/commit_formatter' require 'changelogger/commit_filter' class ChangeLogger def initialize(repo_dir) @repo = Grit::Repo.new(repo_dir) end def changelog(formatter = CommitFormatter.new, filter = CommitFilter.new) tags = @repo.tags changelog = "" @repo.commits(@...
require 'grit' require 'changelogger/commit_formatter' require 'changelogger/commit_filter' class ChangeLogger def initialize(repo_dir, is_bare = false) @repo = Grit::Repo.new(repo_dir, :is_bare => is_bare) end def changelog(formatter = CommitFormatter.new, filter = CommitFilter.new) tags = @repo.tags ...
Add 'is_bare' option to ChangeLogger constructor.
Add 'is_bare' option to ChangeLogger constructor.
Ruby
mit
jcazevedo/changelogger
ruby
## Code Before: require 'grit' require 'changelogger/commit_formatter' require 'changelogger/commit_filter' class ChangeLogger def initialize(repo_dir) @repo = Grit::Repo.new(repo_dir) end def changelog(formatter = CommitFormatter.new, filter = CommitFilter.new) tags = @repo.tags changelog = "" ...
8a6454a0df25d8a3c0185da33ddc27ea7609024b
docs/installation.md
docs/installation.md
--- title: Installation --- It is strongly recommended that you use a released version of dep. While tip is never purposefully broken, its stability is not guaranteed. ## Binary Installation Pre-compiled binaries are available on the [releases](https://github.com/golang/dep/releases) page. ## MacOS Install or upg...
--- title: Installation --- It is strongly recommended that you use a released version of dep. While tip is never purposefully broken, its stability is not guaranteed. ## Binary Installation Pre-compiled binaries are available on the [releases](https://github.com/golang/dep/releases) page. ## MacOS Install or upg...
Document how to install dep from source
Document how to install dep from source
Markdown
bsd-3-clause
golang/dep,golang/dep,golang/dep
markdown
## Code Before: --- title: Installation --- It is strongly recommended that you use a released version of dep. While tip is never purposefully broken, its stability is not guaranteed. ## Binary Installation Pre-compiled binaries are available on the [releases](https://github.com/golang/dep/releases) page. ## MacOS...
22be6bb3593f948893ab3f797d34e20e66fff841
example.py
example.py
import discord import asyncio client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): if message.content.startswith('!test'): counter = 0 tmp = aw...
import discord import asyncio import os #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): if message....
Use env value for client token
Use env value for client token
Python
mit
gryffon/SusumuTakuan,gryffon/SusumuTakuan
python
## Code Before: import discord import asyncio client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): if message.content.startswith('!test'): counter = 0 ...
ecc41638e28f52b9814bffba2ab8f166b989ea1b
lib/linkage/comparators/within.rb
lib/linkage/comparators/within.rb
module Linkage module Comparators class Within < Comparator def initialize(field_1, field_2, value) if field_1.ruby_type != field_2.ruby_type raise "fields must have the same type" end @name_1 = field_1.name @name_2 = field_2.name @value = value end ...
module Linkage module Comparators # Within is a integer comparator. It checks if two values are within a # specified range. Score is either 0 to 1. # # To use Within, you must specify one field for each record to use in # the comparison, along with a range value. # # Consider the following...
Add documentation for Within comparator
Add documentation for Within comparator
Ruby
mit
coupler/linkage
ruby
## Code Before: module Linkage module Comparators class Within < Comparator def initialize(field_1, field_2, value) if field_1.ruby_type != field_2.ruby_type raise "fields must have the same type" end @name_1 = field_1.name @name_2 = field_2.name @value = v...
8a2f5f189295a4c128382606fc2f430da145d500
ADOPTERS.md
ADOPTERS.md
Below is a non-exhaustive list of CRI-O adopters in production environments: * [Red Hat's Openshift Container Platform](https://www.openshift.com/) uses CRI-O as the only supported CRI implementation starting with the release of OpenShift 4. CRI-O was chosen because it provides a lean, stable, simple and complete con...
Below is a non-exhaustive list of CRI-O adopters in production environments: * [Red Hat's Openshift Container Platform](https://www.openshift.com/) uses CRI-O as the only supported CRI implementation starting with the release of OpenShift 4. CRI-O was chosen because it provides a lean, stable, simple and complete con...
Add SUSE CaaS Platform and openSUSE Kubic to adopters
Add SUSE CaaS Platform and openSUSE Kubic to adopters Signed-off-by: Sascha Grunert <70ab469ddb2ac3e35f32ed7c2fd1cca514b2e879@suse.com>
Markdown
apache-2.0
nalind/cri-o,nalind/cri-o,kubernetes-incubator/cri-o,kubernetes-incubator/cri-o,kubernetes-incubator/ocid,nalind/cri-o,kubernetes-incubator/cri-o,kubernetes-incubator/cri-o,kubernetes-incubator/ocid,kubernetes-incubator/ocid
markdown
## Code Before: Below is a non-exhaustive list of CRI-O adopters in production environments: * [Red Hat's Openshift Container Platform](https://www.openshift.com/) uses CRI-O as the only supported CRI implementation starting with the release of OpenShift 4. CRI-O was chosen because it provides a lean, stable, simple ...
4b82982299e34ee2eb57022aa23d2407d55de22e
frontend/app/views/results.scala.html
frontend/app/views/results.scala.html
@(page:Page[org.fedoraproject.javadeptools.ClassEntry])(implicit request:play.api.mvc.RequestHeader) <div>Showing results from @page.from to @page.to of total @page.totalCount</div> @defining(request.getQueryString("q").getOrElse("")) { q => <ul class="pagination"> <li @if(page.currentPage == 1){class="disabled"}> ...
@(page:Page[org.fedoraproject.javadeptools.ClassEntry])(implicit request:play.api.mvc.RequestHeader) <div>Showing results from @page.from to @page.to of total @page.totalCount</div> @defining(request.getQueryString("q").getOrElse("")) { q => <ul class="pagination"> @if(page.currentPage == 1) { <...
Make disabled pagination links really disabled
Make disabled pagination links really disabled
HTML
apache-2.0
msimacek/java-deptools,msimacek/java-deptools,msimacek/java-deptools,msimacek/java-deptools
html
## Code Before: @(page:Page[org.fedoraproject.javadeptools.ClassEntry])(implicit request:play.api.mvc.RequestHeader) <div>Showing results from @page.from to @page.to of total @page.totalCount</div> @defining(request.getQueryString("q").getOrElse("")) { q => <ul class="pagination"> <li @if(page.currentPage == 1){cla...
61e2f51f9234ce2bbfba45b435b97aff160d6825
package.json
package.json
{ "name": "mlck", "version": "0.1.5", "description": "miniLock CLI", "author": { "name": "Manish Jethani", "email": "manish.jethani@gmail.com", "url": "http://manishjethani.com/" }, "main": "main.js", "bin": { "mlck": "./mlck" }, "keywords": [ "encryption" ], "preferGlobal": tr...
{ "name": "mlck", "version": "0.1.5", "description": "miniLock CLI", "author": { "name": "Manish Jethani", "email": "manish.jethani@gmail.com", "url": "http://manishjethani.com/" }, "main": "main.js", "bin": { "mlck": "./mlck" }, "keywords": [ "encryption" ], "preferGlobal": tr...
Add nacl-stream as a dependency
Add nacl-stream as a dependency
JSON
isc
mjethani/miniLock-cli
json
## Code Before: { "name": "mlck", "version": "0.1.5", "description": "miniLock CLI", "author": { "name": "Manish Jethani", "email": "manish.jethani@gmail.com", "url": "http://manishjethani.com/" }, "main": "main.js", "bin": { "mlck": "./mlck" }, "keywords": [ "encryption" ], "p...
50d53c476f7063520e5726849a2079f634f43921
plaster.asd
plaster.asd
This file is a part of Purplish (c) 2016 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:cl-user) (asdf:defsystem #:plaster :defsystem-depends-on (:radiance) :class "radiance:virtual-module" :components ((:file "module") (:file "objec...
This file is a part of Purplish (c) 2016 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (asdf:defsystem #:plaster :defsystem-depends-on (:radiance) :class "radiance:virtual-module" :components ((:file "module") (:file "objects") (:...
Remove in-package from ASD file.
Remove in-package from ASD file.
Common Lisp
artistic-2.0
Shirakumo/plaster,Shirakumo/plaster
common-lisp
## Code Before: This file is a part of Purplish (c) 2016 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:cl-user) (asdf:defsystem #:plaster :defsystem-depends-on (:radiance) :class "radiance:virtual-module" :components ((:file "module") ...
e4509c1695d806f29819a22df28288496fc72ea3
public/app/components/app.js
public/app/components/app.js
// Module // Language support: Use https://github.com/angular-translate/angular-translate/blob/master/demo/ex1_basic_usage.htm var client28App = angular.module("client28App", ['ngRoute', 'ngResource', 'pascalprecht.translate']) .config(['$routeProvider', '$translateProvider', function ($routeProvider, $translateP...
// Module // Language support: Use https://github.com/angular-translate/angular-translate/blob/master/demo/ex1_basic_usage.htm var client28App = angular.module("client28App", ['ngRoute', 'ngResource', 'pascalprecht.translate']) .config(['$routeProvider', '$translateProvider', function ($routeProvider, $translateP...
Remove old personal language support.
Remove old personal language support.
JavaScript
mit
a-lavoie/client1,a-lavoie/client1,a-lavoie/client1
javascript
## Code Before: // Module // Language support: Use https://github.com/angular-translate/angular-translate/blob/master/demo/ex1_basic_usage.htm var client28App = angular.module("client28App", ['ngRoute', 'ngResource', 'pascalprecht.translate']) .config(['$routeProvider', '$translateProvider', function ($routeProvi...
e52f47f150ada1e533914e7e7081e963e13f6a20
Resources/doc/Locking.md
Resources/doc/Locking.md
The KunstmaanNodeBundle implements the [Symfony CMF](http://cmf.symfony.com/) [RoutingExtra](https://github.com/symfony-cmf/RoutingExtraBundle) bundle. ## Lock? When you edit a node, and at the same time someone else edits the node, the node of the user who does the last save will be kept. With this new feature a m...
The KunstmaanNodeBundle implements the [Symfony CMF](http://cmf.symfony.com/) [RoutingExtra](https://github.com/symfony-cmf/RoutingExtraBundle) bundle. ## Lock? When you edit a node, and at the same time someone else edits the node, the node of the user who does the last save will be kept. With this new feature a me...
Fix incorrect step in documentation
[NodeBundle] Fix incorrect step in documentation
Markdown
mit
Kunstmaan/KunstmaanNodeBundle
markdown
## Code Before: The KunstmaanNodeBundle implements the [Symfony CMF](http://cmf.symfony.com/) [RoutingExtra](https://github.com/symfony-cmf/RoutingExtraBundle) bundle. ## Lock? When you edit a node, and at the same time someone else edits the node, the node of the user who does the last save will be kept. With this...
5367331250368ada068c02c3027369e1d7a59ee7
tests/auto/blackbox/testdata-qt/qtscxml/qtscxml.qbs
tests/auto/blackbox/testdata-qt/qtscxml/qtscxml.qbs
import qbs.Environment import qbs.FileInfo Project { QtApplication { name: "app" Depends { name: "Qt.scxml"; required: false } Properties { condition: Qt.scxml.present cpp.defines: ["HAS_QTSCXML"] } Qt.scxml.className: "QbsStateMachine" Qt.s...
import qbs.Environment import qbs.FileInfo import qbs.Utilities Project { QtApplication { name: "app" Depends { name: "Qt.scxml"; required: false } Properties { condition: Qt.scxml.present && Utilities.versionCompare(Qt.core.version, "5.13.0") != 0 cpp.defines: ["HA...
Work around compression bug in 5.13.0
Autotests: Work around compression bug in 5.13.0 Our QtScxml test ran into QTBUG-76521. Change-Id: Id667846acd165d5b79dd6acc9cb8c790f6e228a2 Reviewed-by: Jörg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@qt.io>
QML
lgpl-2.1
qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs
qml
## Code Before: import qbs.Environment import qbs.FileInfo Project { QtApplication { name: "app" Depends { name: "Qt.scxml"; required: false } Properties { condition: Qt.scxml.present cpp.defines: ["HAS_QTSCXML"] } Qt.scxml.className: "QbsStateMachi...
14bb50831545deb79885ce46d45bf17c8fe8ae93
lib/shield/model.rb
lib/shield/model.rb
module Shield module Model def authenticate(username, password) user = fetch(username) if user and is_valid_password?(user, password) return user end end def fetch(login) raise FetchMissing end def is_valid_password?(user, password) Shield::Password.check(p...
module Shield module Model def authenticate(username, password) user = fetch(username) if user and is_valid_password?(user, password) return user end end def fetch(login) raise FetchMissing end def is_valid_password?(user, password) Shield::Password.check(p...
Fix typos in exception message.
Fix typos in exception message.
Ruby
mit
cyx/shield
ruby
## Code Before: module Shield module Model def authenticate(username, password) user = fetch(username) if user and is_valid_password?(user, password) return user end end def fetch(login) raise FetchMissing end def is_valid_password?(user, password) Shield::...
2672555bb4604302405617c6ce16428bc04a7b02
_plugins/mathjax.rb
_plugins/mathjax.rb
module Jekyll class MathJaxBlock < Liquid::Block include Liquid::StandardFilters # Detect if we need to use block display style SYNTAX = /(display)?/ def initialize(tag_name, markup,tokens) super if markup =~ SYNTAX if defined? $1 @inline = false else ...
module Jekyll class MathJaxBlock < Liquid::Block include Liquid::StandardFilters # Detect if we need to use block display style SYNTAX = /(display)?/ def initialize(tag_name, markup, tokens) super if markup =~ SYNTAX if defined? $1 @inline = false else ...
Use explicit alignment for block-style formulas
Use explicit alignment for block-style formulas
Ruby
bsd-3-clause
rfc1459/blog
ruby
## Code Before: module Jekyll class MathJaxBlock < Liquid::Block include Liquid::StandardFilters # Detect if we need to use block display style SYNTAX = /(display)?/ def initialize(tag_name, markup,tokens) super if markup =~ SYNTAX if defined? $1 @inline = false ...
7ae13f712bb81fc94f422e5833af4aa55b3a0cd8
src/Parsing/Inline/Tokenization/Brackets.ts
src/Parsing/Inline/Tokenization/Brackets.ts
import { Bracket } from './Bracket' // Many of our conventions incorporate brackets. These are the ones we recognize. export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), new Bracket('{', '}') ]
import { Bracket } from './Bracket' // Many of our conventions incorporate brackets. These are the ones we recognize. export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), ]
Stop supporting curly brackets; fail many tests
Stop supporting curly brackets; fail many tests
TypeScript
mit
start/up,start/up
typescript
## Code Before: import { Bracket } from './Bracket' // Many of our conventions incorporate brackets. These are the ones we recognize. export const BRACKETS = [ new Bracket('(', ')'), new Bracket('[', ']'), new Bracket('{', '}') ] ## Instruction: Stop supporting curly brackets; fail many tests ## Code After: i...
522cf0f4de3ff0e4cbdd219ff017993a66f5cda7
brain/app.rb
brain/app.rb
$stdout.sync = true # Do not buffer stdout require 'bundler/setup' Bundler.require require_relative 'lib/amqp_handler' require_relative 'lib/humanity_neuron' brain = Brain.new brain.add_neuron HumanityNeuron.new EM.run do AMQP.connect "amqp://#{ENV['ADAM_BRAIN_AMQP_USERNAME']}:#{ENV['ADAM_BRAIN_AMQP_PASSWORD']...
$stdout.sync = true # Do not buffer stdout require 'bundler/setup' Bundler.require require_relative 'lib/amqp_handler' require_relative 'lib/humanity_neuron' require_relative 'lib/translator_neuron' brain = Brain.new brain.add_neuron HumanityNeuron.new brain.add_neuron TranslatorNeuron.new EM.run do AMQP.conne...
Make sure translator neuron is enabled
[BRAIN] Make sure translator neuron is enabled
Ruby
agpl-3.0
mojolingo/Adam.Snark.Rabbit,mojolingo/Adam.Snark.Rabbit,mojolingo/Adam.Snark.Rabbit,mojolingo/Adam.Snark.Rabbit
ruby
## Code Before: $stdout.sync = true # Do not buffer stdout require 'bundler/setup' Bundler.require require_relative 'lib/amqp_handler' require_relative 'lib/humanity_neuron' brain = Brain.new brain.add_neuron HumanityNeuron.new EM.run do AMQP.connect "amqp://#{ENV['ADAM_BRAIN_AMQP_USERNAME']}:#{ENV['ADAM_BRAIN...
1e56b3bd4a47141646d4326be554392a8421e9d1
src/components/TestArea/TestArea.jsx
src/components/TestArea/TestArea.jsx
import React, { Component } from 'react'; import { testArea, } from './styles'; export default class TestArea extends Component { constructor (props) { super(props); this.handleKeyDown = this.handleKeyDown.bind(this); this.handleKeyPress = this.handleKeyPress.bind(this); this.handleKeyUp = this.handleKeyUp....
import React, { Component } from 'react'; import { testArea, } from './styles'; export default class TestArea extends Component { constructor (props) { super(props); this.handleKeyDown = this.handleKeyDown.bind(this); this.handleKeyPress = this.handleKeyPress.bind(this); this.handleKeyUp = this.handleKeyUp....
Add placeholder to test area component
Add placeholder to test area component
JSX
mit
j-/keyboard,j-/keyboard
jsx
## Code Before: import React, { Component } from 'react'; import { testArea, } from './styles'; export default class TestArea extends Component { constructor (props) { super(props); this.handleKeyDown = this.handleKeyDown.bind(this); this.handleKeyPress = this.handleKeyPress.bind(this); this.handleKeyUp = t...
e82893b44589e4be81567a1b873d78022132c1d5
recipes-debian/chrpath/chrpath_debian.bb
recipes-debian/chrpath/chrpath_debian.bb
PR = "r0" inherit debian-package LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SRC_URI += " \ file://standarddoc.patch \ " inherit autotools DEBIAN_PATCH_TYPE = "nopatch" # We don't have a staged chrpath-native for ensuring our binary is # relocatable, so use the one ...
PR = "r0" inherit debian-package LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SRC_URI += " \ file://standarddoc.patch \ " inherit autotools # There is no debian patch DEBIAN_PATCH_TYPE = "nopatch" # We don't have a staged chrpath-native for ensuring our binary is # r...
Update recipe for chrpath package
Update recipe for chrpath package Signed-off-by: Tran Thi Van Dung <4602a2150458a8fc79ca562d1ec5fffebd9f9638@toshiba-tsdv.com>
BitBake
mit
nghiaht-tsdv/meta-debian,meta-debian/meta-debian,nghiaht-tsdv/meta-debian,tienlee/meta-debian,rofehr/meta-debian,meta-debian/meta-debian,tienlee/meta-debian,meta-debian/meta-debian,tienlee/meta-debian,tienlee/meta-debian,congnt-tsdv/meta-debian,rofehr/meta-debian,rofehr/meta-debian,congnt-tsdv/meta-debian,congnt-tsdv/m...
bitbake
## Code Before: PR = "r0" inherit debian-package LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SRC_URI += " \ file://standarddoc.patch \ " inherit autotools DEBIAN_PATCH_TYPE = "nopatch" # We don't have a staged chrpath-native for ensuring our binary is # relocatable,...
73c07c0481b0216f82825840360dcd8f857625d3
client/resources/stylesheets/layouts/lateralbar.less
client/resources/stylesheets/layouts/lateralbar.less
position: absolute; top: 0px; left: 0px; bottom: 0px; width: @codeboxMenubarWidth+@codeboxLateralbarWidth; background: @codeboxLateralbarBackground; box-shadow: inset -8px 0px 9px -9px #000000; color: @codeboxLateralbarColor; .lateral-menu { position: absolute; left: 0px; width: @codeboxMenubarWidth; ...
position: absolute; top: 0px; left: 0px; bottom: 0px; width: @codeboxMenubarWidth+@codeboxLateralbarWidth; background: @codeboxLateralbarBackground; box-shadow: inset -8px 0px 9px -9px #000000; color: @codeboxLateralbarColor; .lateral-menu { position: absolute; left: 0px; width: @codeboxMenubarWidth; ...
Correct display of search bar
Correct display of search bar
Less
apache-2.0
quietdog/codebox,rodrigues-daniel/codebox,etopian/codebox,ahmadassaf/Codebox,LogeshEswar/codebox,fly19890211/codebox,kustomzone/codebox,nobutakaoshiro/codebox,rajthilakmca/codebox,ronoaldo/codebox,CodeboxIDE/codebox,fly19890211/codebox,listepo/codebox,etopian/codebox,Ckai1991/codebox,smallbal/codebox,indykish/codebox,i...
less
## Code Before: position: absolute; top: 0px; left: 0px; bottom: 0px; width: @codeboxMenubarWidth+@codeboxLateralbarWidth; background: @codeboxLateralbarBackground; box-shadow: inset -8px 0px 9px -9px #000000; color: @codeboxLateralbarColor; .lateral-menu { position: absolute; left: 0px; width: @codebox...
6d852ff6fd1b91a825f32bc429b031bf5d56cc9e
src/Worker/RemoveContact.php
src/Worker/RemoveContact.php
<?php /** * @file src/Worker/RemoveContact.php * @brief Removes orphaned data from deleted contacts */ namespace Friendica\Worker; use Friendica\Database\DBA; require_once 'include/dba.php'; class RemoveContact { public static function execute($id) { // Only delete if the contact is archived $condition = ['...
<?php /** * @file src/Worker/RemoveContact.php * @brief Removes orphaned data from deleted contacts */ namespace Friendica\Worker; use Friendica\Database\DBA; use Friendica\Core\Protocol; require_once 'include/dba.php'; class RemoveContact { public static function execute($id) { // Only delete if the contact ...
Fix a fatal error when removing contacts
Fix a fatal error when removing contacts
PHP
agpl-3.0
fabrixxm/friendica,fabrixxm/friendica,annando/friendica,friendica/friendica,annando/friendica,fabrixxm/friendica,tobiasd/friendica,fabrixxm/friendica,fabrixxm/friendica,friendica/friendica,annando/friendica,tobiasd/friendica,annando/friendica,tobiasd/friendica,friendica/friendica,tobiasd/friendica,friendica/friendica,f...
php
## Code Before: <?php /** * @file src/Worker/RemoveContact.php * @brief Removes orphaned data from deleted contacts */ namespace Friendica\Worker; use Friendica\Database\DBA; require_once 'include/dba.php'; class RemoveContact { public static function execute($id) { // Only delete if the contact is archived ...
81c1c6a444184bee02c2700a1b7eb9c1dbdbc9e5
.travis.yml
.travis.yml
language: python env: global: - VERSION='3.5-dev-python-org' - ALIAS='3.5.0-dev' - INSTALL_DEST=/opt/python - PACKAGES='pip numpy nose pytest mock wheel' install: - true script: - pushd $HOME - sudo env PYTHON_BUILD_ROOT=$TRAVIS_BUILD_DIR python-build $VERSION $INSTALL_DEST/$ALIAS - sudo ln...
language: python env: global: - VERSION='3.5-dev-python-org' - ALIAS='3.5.0-dev' - INSTALL_DEST=/opt/python - PACKAGES='pip numpy nose pytest mock wheel' install: - true script: - pushd $HOME - sudo env PYTHON_BUILD_DEFINITIONS=$TRAVIS_BUILD_DIR python-build $VERSION $INSTALL_DEST/$ALIAS - ...
Set PYTHON_BUILD_DEFINITIONS to locate custom def file
Set PYTHON_BUILD_DEFINITIONS to locate custom def file
YAML
mit
travis-ci/cpython-builder
yaml
## Code Before: language: python env: global: - VERSION='3.5-dev-python-org' - ALIAS='3.5.0-dev' - INSTALL_DEST=/opt/python - PACKAGES='pip numpy nose pytest mock wheel' install: - true script: - pushd $HOME - sudo env PYTHON_BUILD_ROOT=$TRAVIS_BUILD_DIR python-build $VERSION $INSTALL_DEST/$A...
fa8e30c2b41e8078ca87a73cc90c2652c46b1ee0
corvus/console.py
corvus/console.py
import sys from corvus.client import Corvus def main(): corvus = Corvus() corvus.init_drive() total_sectors = corvus.get_drive_capacity(1) with open("image.bin", "wb") as f: for i in range(total_sectors): orig_data = corvus.read_sector_512(1, i) corvus.write_sector_512(1...
import sys from corvus.client import Corvus def backup(corvus, filename): total_sectors = corvus.get_drive_capacity(1) with open(filename, "wb") as f: for i in range(total_sectors): data = corvus.read_sector_512(1, i) f.write(''.join([ chr(d) for d in data ])) sys.st...
Add backup and restore functions
Add backup and restore functions
Python
bsd-3-clause
mnaberez/corvus
python
## Code Before: import sys from corvus.client import Corvus def main(): corvus = Corvus() corvus.init_drive() total_sectors = corvus.get_drive_capacity(1) with open("image.bin", "wb") as f: for i in range(total_sectors): orig_data = corvus.read_sector_512(1, i) corvus.wr...
bbc000d4112917e5d6f0a8ebe856c93b05261b2f
themes/geniverse/views/user_mailer/signup_notification.html.erb
themes/geniverse/views/user_mailer/signup_notification.html.erb
<p>Dear <%= @user.name %>,</p> <p>Thank you for registering on the Geniverse Portal! Please click the link below to confirm your registration. There will be additional instructions on the Portal to help you set up and manage your classes.</p> <p><%= link_to 'Confirm my account', confirmation_url(@user, :confirmation...
<p>Dear <%= @user.name %>,</p> <p>Thank you for registering on the Geniverse Portal! <b>Your username is <%= @user.login %>.</b></p> <p>Please click the link below to confirm your registration. There will be additional instructions on the Portal to help you set up and manage your classes.</p> <p><%= link_to 'Confir...
Update Geniverse theme registration email
Update Geniverse theme registration email
HTML+ERB
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
html+erb
## Code Before: <p>Dear <%= @user.name %>,</p> <p>Thank you for registering on the Geniverse Portal! Please click the link below to confirm your registration. There will be additional instructions on the Portal to help you set up and manage your classes.</p> <p><%= link_to 'Confirm my account', confirmation_url(@use...
a9ae4d4e5a3a50994d6071343178768d00804a73
spec/support/login_macros.rb
spec/support/login_macros.rb
module LoginMacros def sign_in_as_new_user(user = nil) user ||= create :user, :with_inactive_fields sign_in_with_github(user) user end def sign_in_as_active_user(user = nil) user ||= create :user sign_in_with_github(user) user end def oauth_params(user) params = {} params['p...
module LoginMacros def sign_in_as_new_user(user = nil) user ||= create :user, :with_inactive_fields sign_in_with_github(user) user end def sign_in_as_active_user(user = nil) user ||= create :user sign_in_with_github(user) user end def oauth_params(user) params = {} params['p...
Make test login macro more readable
Make test login macro more readable
Ruby
mit
rubyist-connect/rubyist-connect,rubyist-connect/rubyist-connect,rubyist-connect/rubyist-connect
ruby
## Code Before: module LoginMacros def sign_in_as_new_user(user = nil) user ||= create :user, :with_inactive_fields sign_in_with_github(user) user end def sign_in_as_active_user(user = nil) user ||= create :user sign_in_with_github(user) user end def oauth_params(user) params = ...
4cf912a4e912ca0a8cb60ef9293da6f8357ecc32
app/views/listings/show.html.erb
app/views/listings/show.html.erb
<h1><%= listing.title %></h1> <P>Location: <%= listing.location %></p> <P>Price: $ <%= listing.price %></p> <P><%= listing.content %></p> <P>Contact: <%= listing.owner_email %></p>
<h1><%= listing.title %></h1> <p>belongs to <%= listing.category.title %></p> <P>Location: <%= listing.location %></p> <P>Price: $ <%= listing.price %></p> <P><%= listing.content %></p> <P>Contact: <%= listing.owner_email %></p>
Add category in a single listing view.
Add category in a single listing view.
HTML+ERB
mit
haileyR/Craigslist-Sr.,haileyR/Craigslist-Sr.
html+erb
## Code Before: <h1><%= listing.title %></h1> <P>Location: <%= listing.location %></p> <P>Price: $ <%= listing.price %></p> <P><%= listing.content %></p> <P>Contact: <%= listing.owner_email %></p> ## Instruction: Add category in a single listing view. ## Code After: <h1><%= listing.title %></h1> <p>belongs to <%= li...
b7080ab7abfa93d501eb7fa7e33f8c383558d934
java/src/main/java/bool/Evaluator.java
java/src/main/java/bool/Evaluator.java
package bool; import java.util.List; public class Evaluator implements Visitor<Boolean, List<String>> { @Override public Boolean visit(Var node, List<String> vars) { return vars.contains(node.token.getValue()); } @Override public Boolean visit(And node, List<String> vars) { return...
package bool; import java.util.Collection; public class Evaluator implements Visitor<Boolean, Collection<String>> { @Override public Boolean visit(Var node, Collection<String> vars) { return vars.contains(node.token.getValue()); } @Override public Boolean visit(And node, Collection<String...
Use collection instead of List
Use collection instead of List
Java
mit
cucumber/bool,cucumber/bool,cucumber/bool,cucumber/bool,cucumber/bool,cucumber/bool
java
## Code Before: package bool; import java.util.List; public class Evaluator implements Visitor<Boolean, List<String>> { @Override public Boolean visit(Var node, List<String> vars) { return vars.contains(node.token.getValue()); } @Override public Boolean visit(And node, List<String> vars) ...
d937a80656cc91fe53f47d005046cda83fc8da8d
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.1 notifications: email: false before_install: - brew update - brew outdated xctool || brew upgrade xctool - brew outdated carthage || brew upgrade carthage before_script: - carthage bootstrap --platform ios script: - xctool -project SmartDeviceLink-iOS/SmartDevice...
language: objective-c osx_image: xcode7.1 notifications: email: false before_install: - brew update - brew outdated xctool || brew upgrade xctool - curl -OlL "https://github.com/Carthage/Carthage/releases/download/0.11/Carthage.pkg" - sudo installer -pkg "Carthage.pkg" -target / - rm "Carthage.pkg" befor...
Fix Carthage not installing to Travis CI
Fix Carthage not installing to Travis CI
YAML
bsd-3-clause
kshala-ford/sdl_ios,APCVSRepo/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,davidswi/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,davidswi/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,davidswi/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,davidswi/sdl_...
yaml
## Code Before: language: objective-c osx_image: xcode7.1 notifications: email: false before_install: - brew update - brew outdated xctool || brew upgrade xctool - brew outdated carthage || brew upgrade carthage before_script: - carthage bootstrap --platform ios script: - xctool -project SmartDeviceLink...
bba1af0014a6f57882414e96c6de79091e81d2d4
src/components/time/Time.js
src/components/time/Time.js
import moment from 'moment'; import TextFieldComponent from '../textfield/TextField'; export default class TimeComponent extends TextFieldComponent { static schema(...extend) { return TextFieldComponent.schema({ type: 'time', label: 'Time', key: 'time', inputType: 'time', format: 'H...
import moment from 'moment'; import TextFieldComponent from '../textfield/TextField'; export default class TimeComponent extends TextFieldComponent { static schema(...extend) { return TextFieldComponent.schema({ type: 'time', label: 'Time', key: 'time', inputType: 'time', format: 'H...
Make sure that an empty time component does not trigger infinite onChange events.
Make sure that an empty time component does not trigger infinite onChange events.
JavaScript
mit
formio/formio.js,formio/formio.js,formio/formio.js
javascript
## Code Before: import moment from 'moment'; import TextFieldComponent from '../textfield/TextField'; export default class TimeComponent extends TextFieldComponent { static schema(...extend) { return TextFieldComponent.schema({ type: 'time', label: 'Time', key: 'time', inputType: 'time', ...
555e7129e6a29c8a141d669ea756032384438b90
src/main/java/com/microsoft/graph/models/extensions/PlannerAppliedCategories.java
src/main/java/com/microsoft/graph/models/extensions/PlannerAppliedCategories.java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
Add Planner Applied Categories extension
Add Planner Applied Categories extension
Java
mit
microsoftgraph/msgraph-sdk-java
java
## Code Before: // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------...
9f7d4a529e190195ebb7f23238d3942616ff68b6
components/core/src/os/system/linux.rs
components/core/src/os/system/linux.rs
use crate::{error::{Error, Result}, os::system::Uname}; use errno::errno; use libc; use std::{ffi::CStr, mem}; pub fn uname() -> Result<Uname> { unsafe { uname_libc() } } unsafe fn uname_libc() -> Result<Uname> { let mut utsname: libc::utsname = mem::MaybeUninit::uninit()...
use crate::{error::{Error, Result}, os::system::Uname}; use errno::errno; use libc; use std::{ffi::CStr, mem}; pub fn uname() -> Result<Uname> { unsafe { uname_libc() } } unsafe fn uname_libc() -> Result<Uname> { let mut utsname = mem::MaybeUninit::uninit(); let rv = ...
Make the MaybeUninit usage safer
Make the MaybeUninit usage safer Signed-off-by: Josh Black <2831680e59d3b8be5b278b69b4e783c575edf378@gmail.com>
Rust
apache-2.0
rsertelon/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,rsertelon/habitat,habitat-sh/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat,habitat-sh/habitat,habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat
rust
## Code Before: use crate::{error::{Error, Result}, os::system::Uname}; use errno::errno; use libc; use std::{ffi::CStr, mem}; pub fn uname() -> Result<Uname> { unsafe { uname_libc() } } unsafe fn uname_libc() -> Result<Uname> { let mut utsname: libc::utsname = mem::Maybe...
6844c6df565054623aa0af8204017a8fa31b77b8
roles/common/tasks/main.yml
roles/common/tasks/main.yml
- name: set timezone to UTC lineinfile: dest=/etc/timezone state=present insertbefore=BOF regexp="^Etc/UTC" line="Etc/UTC" register: timezone - name: reconfigure tzdata shell: dpkg-reconfigure -f noninteractive tzdata when: timezone.changed - name: add postgres apt signing key apt_key: url=htt...
- name: set timezone to UTC lineinfile: dest=/etc/timezone state=present insertbefore=BOF regexp="^Etc/UTC" line="Etc/UTC" register: timezone - name: reconfigure tzdata shell: dpkg-reconfigure -f noninteractive tzdata when: timezone.changed - name: add postgres apt signing key apt_key: url=htt...
Add libxml2-utils package for xmllint.
Add libxml2-utils package for xmllint.
YAML
apache-2.0
hummingbird-me/ansible-deploy
yaml
## Code Before: - name: set timezone to UTC lineinfile: dest=/etc/timezone state=present insertbefore=BOF regexp="^Etc/UTC" line="Etc/UTC" register: timezone - name: reconfigure tzdata shell: dpkg-reconfigure -f noninteractive tzdata when: timezone.changed - name: add postgres apt signing key ...
f948afd26e717b915f6c33b3829cd47f0927e8fc
ide/app/lib/git/utils.dart
ide/app/lib/git/utils.dart
// Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details. // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. library git.utils; import 'dart:core'; /** * Convertes [sha] string to sha bytes. */ List<int> shaToBytes(String s...
// Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details. // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. library git.utils; import 'dart:core'; /** * Convertes [sha] string to sha bytes. */ List<int> shaToBytes(String s...
Fix bug in sha / bytes conversion.
Fix bug in sha / bytes conversion.
Dart
bsd-3-clause
beaufortfrancois/chromedeveditor,valmzetvn/chromedeveditor,b0dh1sattva/chromedeveditor,yikaraman/chromedeveditor,b0dh1sattva/chromedeveditor,googlearchive/chromedeveditor,vivalaralstin/chromedeveditor,googlearchive/chromedeveditor,b0dh1sattva/chromedeveditor,hxddh/chromedeveditor,hxddh/chromedeveditor,vivalaralstin/chr...
dart
## Code Before: // Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details. // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. library git.utils; import 'dart:core'; /** * Convertes [sha] string to sha bytes. */ List<int> sha...
df1948b2412fbef887856df41d7025adb299d1be
app/controllers/chat/rooms/messages_controller.rb
app/controllers/chat/rooms/messages_controller.rb
class Chat::Rooms::MessagesController < ApplicationController include ActionView::Helpers::AssetTagHelper def controller;self;end;private(:controller) before_filter do @cloud = Cloud.where('chat._id' => BSON::ObjectId(params[:room_id])).first @room = @cloud.chat end def index @messages = ...
class Chat::Rooms::MessagesController < ApplicationController include ActionView::Helpers::AssetTagHelper def controller;self;end;private(:controller) before_filter do @cloud = Cloud.where('chat._id' => BSON::ObjectId(params[:room_id])).first @room = @cloud.chat end def index @messages = ...
Revert "Use mongo to sort messages instead of ruby"
Revert "Use mongo to sort messages instead of ruby" This reverts commit b47c0e4469c124258b8a3f3fb5bd9850f6e23950.
Ruby
mit
cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web
ruby
## Code Before: class Chat::Rooms::MessagesController < ApplicationController include ActionView::Helpers::AssetTagHelper def controller;self;end;private(:controller) before_filter do @cloud = Cloud.where('chat._id' => BSON::ObjectId(params[:room_id])).first @room = @cloud.chat end def index ...
d26d17b06796b0fe24495bc6b16aa776055d9a80
.travis.yml
.travis.yml
language: php php: - 5.5 - 5.5.9 - 5.6 - 7.0 - hhvm matrix: allow_failures: - php: 7.0 - php: hhvm before_install: - cd .. - git clone https://github.com/neos/flow-development-distribution.git - cd flow-development-distribution - git checkout 2.0.0 - composer update - composer require co...
language: php php: - 5.5 - 5.5.9 - 5.6 - 7.0 - hhvm matrix: allow_failures: - php: 7.0 - php: hhvm before_install: - cd .. - git clone https://github.com/neos/flow-base-distribution.git - cd flow-base-distribution - git checkout 2.0.0 - composer update - composer require codeclimate/php-...
Choose the wrong flow-development package set AGAIN
[FIXED] Choose the wrong flow-development package set AGAIN
YAML
mit
rfyio/JWT
yaml
## Code Before: language: php php: - 5.5 - 5.5.9 - 5.6 - 7.0 - hhvm matrix: allow_failures: - php: 7.0 - php: hhvm before_install: - cd .. - git clone https://github.com/neos/flow-development-distribution.git - cd flow-development-distribution - git checkout 2.0.0 - composer update - com...
f3c99c37ee6705f48647258d2364900e0932c956
anserv/templates/grade_distribution/grade_distribution_container.html
anserv/templates/grade_distribution/grade_distribution_container.html
<div class="csv_link"> <a href="{{csv_link}}">Download data in csv format</a> </div> {{chart_content|safe}}
<div class="csv_link"> <a class="btn" href="{{csv_link}}"><i class="icon-download-alt"></i>Download data in csv format</a> </div> {{chart_content|safe}}
Make csv download into a button
Make csv download into a button
HTML
agpl-3.0
edx/edxanalytics,edx/insights,edx/insights,edx/edxanalytics,edx/edxanalytics,edx/edxanalytics
html
## Code Before: <div class="csv_link"> <a href="{{csv_link}}">Download data in csv format</a> </div> {{chart_content|safe}} ## Instruction: Make csv download into a button ## Code After: <div class="csv_link"> <a class="btn" href="{{csv_link}}"><i class="icon-download-alt"></i>Download data in csv format</a> ...
dc8f1a59d6413d42bee8ae9bd6dd07447bbd3f85
.travis.yml
.travis.yml
language: ruby cache: bundler rvm: - 1.9.3 - 2.1.0 - ruby-head - 2.0.0 env: - DB=sqlite script: - RAILS_ENV=test bundle exec rake db:migrate --trace - bundle exec rake db:test:prepare - bundle exec rake test - bundle exec rails s after_success: - coveralls
language: ruby cache: bundler rvm: - 1.9.3 - 2.1.0 - ruby-head - 2.0.0 env: - DB=sqlite script: - RAILS_ENV=test bundle exec rake db:migrate --trace - bundle exec rake db:test:prepare - bundle exec rake test after_success: - coveralls
Stop rails server to pass build
Stop rails server to pass build
YAML
unlicense
jatindhankhar/housing_app,jatindhankhar/housing_app,jatindhankhar/housing_app
yaml
## Code Before: language: ruby cache: bundler rvm: - 1.9.3 - 2.1.0 - ruby-head - 2.0.0 env: - DB=sqlite script: - RAILS_ENV=test bundle exec rake db:migrate --trace - bundle exec rake db:test:prepare - bundle exec rake test - bundle exec rails s after_success: - coveralls ## Instruction: Stop rails...