commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
3e717a2a77dcf18f9a281e68462b5809010e1835
setup.py
setup.py
from setuptools import setup setup(name='pyW215', version='0.4', description='Interface for d-link W215 Smart Plugs.', url='https://github.com/linuxchristian/pyW215', author='Christian Juncker Brædstrup', author_email='christian@fredborg-braedstrup.dk', ...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup(name='pyW215', version='0.4', description='Interface for d-li...
Prepare for publication on pypi
Prepare for publication on pypi
Python
mit
LinuxChristian/pyW215
python
## Code Before: from setuptools import setup setup(name='pyW215', version='0.4', description='Interface for d-link W215 Smart Plugs.', url='https://github.com/linuxchristian/pyW215', author='Christian Juncker Brædstrup', author_email='christian@fredborg-braed...
from setuptools import setup + from os import path + + here = path.abspath(path.dirname(__file__)) + + # Get the long description from the README file + with open(path.join(here, 'README.rst'), encoding='utf-8') as f: + long_description = f.read() setup(name='pyW215', - version='0.4', ? ------ ...
27
2.25
18
9
250d9289cd85068cd9c624c9ec878725e05ff839
lib/license_finder.rb
lib/license_finder.rb
require 'pathname' require 'yaml' module LicenseFinder ROOT_PATH = Pathname.new(__FILE__).dirname class Configuration attr_reader :whitelist, :ignore_groups, :dependencies_dir def initialize config = {} if File.exists?('./config/license_finder.yml') yaml = File.open('./config/license...
require 'pathname' require 'yaml' module LicenseFinder ROOT_PATH = Pathname.new(__FILE__).dirname class Configuration attr_reader :whitelist, :ignore_groups, :dependencies_dir def initialize config = {} if File.exists?('./config/license_finder.yml') yaml = File.open('./config/license...
Use File.join for great justice
Use File.join for great justice
Ruby
mit
JasonMSwrve/LicenseFinder,sschuberth/LicenseFinder,pivotal/LicenseFinder,Swrve/LicenseFinder,SimantovYousoufov/LicenseFinder,chef/LicenseFinder,tinfoil/LicenseFinder,bdshroyer/LicenseFinder,alexderz/LicenseFinder,SimantovYousoufov/LicenseFinder,sschuberth/LicenseFinder,bspeck/LicenseFinder,LukeWinikates/LicenseFinder,s...
ruby
## Code Before: require 'pathname' require 'yaml' module LicenseFinder ROOT_PATH = Pathname.new(__FILE__).dirname class Configuration attr_reader :whitelist, :ignore_groups, :dependencies_dir def initialize config = {} if File.exists?('./config/license_finder.yml') yaml = File.open('...
require 'pathname' require 'yaml' module LicenseFinder ROOT_PATH = Pathname.new(__FILE__).dirname class Configuration attr_reader :whitelist, :ignore_groups, :dependencies_dir def initialize config = {} if File.exists?('./config/license_finder.yml') yaml =...
4
0.090909
2
2
afb30ec567b6ea7fb6e80400bf9db17c8c546845
pay/lib/src/widgets/google_pay_button_widget.dart
pay/lib/src/widgets/google_pay_button_widget.dart
part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButtonWidget._( Key key, ...
part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButtonWidget._( Key key, ...
Remove sizing opinion on the widget
Remove sizing opinion on the widget
Dart
apache-2.0
google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin
dart
## Code Before: part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButtonWidget._...
part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButton...
5
0.076923
1
4
4832fca577a12578e739a778eaed476964d3754b
stagecraft/apps/datasets/tests/fixtures/backdrop_users_import_testdata.json
stagecraft/apps/datasets/tests/fixtures/backdrop_users_import_testdata.json
[{ "_id" : "someemail@mailtime.com", "data_sets" : [ "evl_ceg_data", "evl_services_volumetrics", "evl_services_failures", "evl_channel_volumetrics", "evl_customer_satisfaction", "evl_volumetrics" ], "email" : "someemail@mailtime.com" }, { "_id" : "ange...
[{ "_id" : "someemail@mailtime.com", "data_sets" : [ "evl_ceg_data", "evl_customer_satisfaction" ], "email" : "someemail@mailtime.com" }, { "_id" : "angela.merkel@deutschland.de", "data_sets" : [ "lpa_volumes" ], "email" : "angela.merkel@deutschland.de" }, { "...
Reduce the number of data-sets
Reduce the number of data-sets - Drastically reduces the amount of hand coded fixutre information we'll need to write to test dataset lookups in the backdrop user import script tests
JSON
mit
alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft
json
## Code Before: [{ "_id" : "someemail@mailtime.com", "data_sets" : [ "evl_ceg_data", "evl_services_volumetrics", "evl_services_failures", "evl_channel_volumetrics", "evl_customer_satisfaction", "evl_volumetrics" ], "email" : "someemail@mailtime.com" }, { ...
[{ "_id" : "someemail@mailtime.com", "data_sets" : [ "evl_ceg_data", - "evl_services_volumetrics", - "evl_services_failures", - "evl_channel_volumetrics", - "evl_customer_satisfaction", ? - + "evl_customer_satisfaction" ...
8
0.307692
2
6
a39ba14b6b7cb0ffd66131c2418c21c3e43f7c5a
recipes/default.rb
recipes/default.rb
include_recipe "apache2" if node['platform_family'] == "rhel" include_recipe "yum-epel" end # Install relevant package pkg = value_for_platform( [ "centos", "fedora", "redhat" ] => { "default" => "mod_evasive" }, [ "debian", "ubuntu" ] => { "default" => "libapache2-mod-evasive" } ) package pkg do ...
include_recipe "apache2" if node['platform_family'] == "rhel" include_recipe "yum-epel" end # Install relevant package pkg = value_for_platform( [ "centos", "fedora", "redhat" ] => { "default" => "mod_evasive" }, [ "debian", "ubuntu" ] => { "default" => "libapache2-mod-evasive" } ) package pkg do ...
Remove symlinks created by apt-get
Remove symlinks created by apt-get
Ruby
apache-2.0
azteknative/chef-mod_evasive,azteknative/chef-mod_evasive
ruby
## Code Before: include_recipe "apache2" if node['platform_family'] == "rhel" include_recipe "yum-epel" end # Install relevant package pkg = value_for_platform( [ "centos", "fedora", "redhat" ] => { "default" => "mod_evasive" }, [ "debian", "ubuntu" ] => { "default" => "libapache2-mod-evasive" } ) ...
include_recipe "apache2" if node['platform_family'] == "rhel" include_recipe "yum-epel" end # Install relevant package pkg = value_for_platform( [ "centos", "fedora", "redhat" ] => { "default" => "mod_evasive" }, [ "debian", "ubuntu" ] => { "default" => "libapache2-mod-eva...
11
0.268293
10
1
1ec4c8a3d8153af9f7e2063136a09b5b84f83668
README.md
README.md
Drupal User Registry - a Codeception module for managing test users === A Codeception module for managing test users on Drupal sites. ## Install with Composer { "repositories": [ { "type": "vcs", "url": "https://github.com/pfaocle/codeception-module-drupal-user...
Drupal User Registry - a Codeception module for managing test users === A Codeception module for managing test users on Drupal sites. ## Install with Composer This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer: ...
Remove VCS declaration: module now available on Packagist.
Remove VCS declaration: module now available on Packagist.
Markdown
mit
ixis/codeception-module-drupal-user-registry,chriscohen/codeception-module-drupal-user-registry,pfaocle/codeception-module-drupal-user-registry
markdown
## Code Before: Drupal User Registry - a Codeception module for managing test users === A Codeception module for managing test users on Drupal sites. ## Install with Composer { "repositories": [ { "type": "vcs", "url": "https://github.com/pfaocle/codeception-mo...
Drupal User Registry - a Codeception module for managing test users === A Codeception module for managing test users on Drupal sites. ## Install with Composer + This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed w...
8
0.186047
2
6
47949a496fa752910f8b6af1525141fa832850ab
test/unit/testEvent.js
test/unit/testEvent.js
'use strict'; var jf = require('../../'), expect = require('chai').expect, fs = require('fs'), path = require('path'); const obj1 = { msg: 'This is 1' }; const obj2 = { msg: 'This is 2' }; const objToIgnore = { msg: 'ignored' }; describe('Event executer ', function () { it('works without error', fun...
'use strict'; var jf = require('../../'), expect = require('chai').expect, fs = require('fs'), path = require('path'); const obj1 = { msg: 'This is 1' }; const obj2 = { msg: 'This is 2' }; const objToIgnore = { msg: 'ignored' }; describe('Event executer ', function () { it('works without error', fun...
Add code to write collected JSON. This code does not affect current test result but tester get chance to see output
Add code to write collected JSON. This code does not affect current test result but tester get chance to see output
JavaScript
bsd-3-clause
7k8m/json.filed,7k8m/json.filed
javascript
## Code Before: 'use strict'; var jf = require('../../'), expect = require('chai').expect, fs = require('fs'), path = require('path'); const obj1 = { msg: 'This is 1' }; const obj2 = { msg: 'This is 2' }; const objToIgnore = { msg: 'ignored' }; describe('Event executer ', function () { it('works wit...
'use strict'; var jf = require('../../'), expect = require('chai').expect, fs = require('fs'), path = require('path'); const obj1 = { msg: 'This is 1' }; const obj2 = { msg: 'This is 2' }; const objToIgnore = { msg: 'ignored' }; describe('Event executer ', function () { it(...
3
0.0625
3
0
6c3a4589f56d0aaf00827b2c9b5771f7a9fe755b
docs/README.md
docs/README.md
This documentation is designed to help you get your own hubot up and running. ### Deploying You can deploy hubot to Heroku, which is the officially supported method. Additionally you are able to deploy hubot to a UNIX-like system or Windows. Please note the support for deploying to Windows isn't officially supported...
This documentation is designed to help you get your own hubot up and running. ### Deploying You can deploy hubot to Heroku, which is the officially supported method. Additionally you are able to deploy hubot to a UNIX-like system or Windows. Please note the support for deploying to Windows isn't officially supported...
Remove adapters section already in adapters.md
Remove adapters section already in adapters.md
Markdown
mit
blackwellops/hubot,msound/hubot,craig5/hubot,doudoupower/hubot,github/hubot,ajayanandgit/hubot,github/hubot,mauricionr/hubot,nandub/hubot,yujiroarai/hws-hubot,davidkassa/hubot,vkhang55/hubot,hubotio/hubot,keyvanakbary/hubot,scboucher/hubot,brodul/hubot,PropertyUX/nubot,minted/hubot,scboucher/hubot,fstehle/hubot,marksto...
markdown
## Code Before: This documentation is designed to help you get your own hubot up and running. ### Deploying You can deploy hubot to Heroku, which is the officially supported method. Additionally you are able to deploy hubot to a UNIX-like system or Windows. Please note the support for deploying to Windows isn't offi...
This documentation is designed to help you get your own hubot up and running. ### Deploying You can deploy hubot to Heroku, which is the officially supported method. Additionally you are able to deploy hubot to a UNIX-like system or Windows. Please note the support for deploying to Windows isn't offi...
31
0.72093
0
31
d270dda908b0bb94acdf26d2780996b1639244fa
app/assets/stylesheets/components/search/_search-main.scss
app/assets/stylesheets/components/search/_search-main.scss
//-------------------------------------------------- // class - main //-------------------------------------------------- &--main { position: relative; .search { &__pane { width: 100%; &.popout { @include responsive(width, calc(100vw - 2*#{$gutter-small}), rem-calc(600), rem-calc(60...
//-------------------------------------------------- // class - main //-------------------------------------------------- &--main { position: relative; .search { &__pane { width: 100%; &.popout { background-color: $white; height: 100vh; display: none; positi...
Update styling of the search on mobile
Update styling of the search on mobile
SCSS
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
scss
## Code Before: //-------------------------------------------------- // class - main //-------------------------------------------------- &--main { position: relative; .search { &__pane { width: 100%; &.popout { @include responsive(width, calc(100vw - 2*#{$gutter-small}), rem-calc(6...
//-------------------------------------------------- // class - main //-------------------------------------------------- &--main { position: relative; .search { &__pane { width: 100%; &.popout { - @include responsive(width, calc(100vw - 2*#{$gutter-small}), re...
43
0.796296
36
7
438326cc3aa285a4d05fa8830381e6d3716262b2
noetikon/files/templates/files/directory_list.html
noetikon/files/templates/files/directory_list.html
{% extends "base.html" %} {% block content %} <h2>Directories:</h2> <table class="inventory-table"> <tr> <th>Name:</th> <th>Size:</th> <th>Last modified:</th> </tr> {% for directory in object_list %} <td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}<...
{% extends "base.html" %} {% block content %} <h2>Directories:</h2> <table class="inventory-table"> <tr> <th>Name:</th> <th>Size:</th> <th>Last modified:</th> </tr> {% for directory in object_list %} <tr> <td><a href="{% url 'directory-detail' directory.slug %}">{{ direc...
Add missing tr tag in directory-list
Add missing tr tag in directory-list
HTML
mit
webkom/noetikon,webkom/noetikon
html
## Code Before: {% extends "base.html" %} {% block content %} <h2>Directories:</h2> <table class="inventory-table"> <tr> <th>Name:</th> <th>Size:</th> <th>Last modified:</th> </tr> {% for directory in object_list %} <td><a href="{% url 'directory-detail' directory.slug %}">{{ di...
{% extends "base.html" %} {% block content %} <h2>Directories:</h2> <table class="inventory-table"> <tr> <th>Name:</th> <th>Size:</th> <th>Last modified:</th> </tr> {% for directory in object_list %} + <tr> - <td><a href="{% url 'directory-detail' dir...
8
0.470588
5
3
e98d0592047b35fd92b0fc8873ee806d22b7591a
ci/pipelines/dockerfile.yml
ci/pipelines/dockerfile.yml
resources: - name: LicenseFinder type: git source: uri: https://github.com/pivotal/LicenseFinder branch: master - name: image type: docker-image source: repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDockerUserName)) password: ((Lic...
resources: - name: LicenseFinder type: git source: uri: https://github.com/pivotal/LicenseFinder branch: master - name: image type: docker-image source: repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDockerUserName)) password: ((Lic...
Remove unneccesary no-cache build arg
Remove unneccesary no-cache build arg
YAML
mit
bdshroyer/LicenseFinder,pivotal/LicenseFinder,bdshroyer/LicenseFinder,sschuberth/LicenseFinder,sschuberth/LicenseFinder,bdshroyer/LicenseFinder,sschuberth/LicenseFinder,bdshroyer/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,sschuberth/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,pivotal/Licens...
yaml
## Code Before: resources: - name: LicenseFinder type: git source: uri: https://github.com/pivotal/LicenseFinder branch: master - name: image type: docker-image source: repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDockerUserName)) ...
resources: - name: LicenseFinder type: git source: uri: https://github.com/pivotal/LicenseFinder branch: master - name: image type: docker-image source: repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDockerUser...
3
0.12
0
3
2270f50628218d160aed112f8f90cb3fde9a6028
releasenotes/source/ocata.rst
releasenotes/source/ocata.rst
=========================== Next release: Ocata release =========================== * The documentation sites ``developer.openstack.org`` and ``docs.openstack.org`` are now set up with ``https`` and links to pages have been changed to use ``https`` by default. Command-Line Interface Reference ~~~~~~~~~~~~~~~~~~~~...
=========================== Next release: Ocata release =========================== * The documentation sites ``developer.openstack.org`` and ``docs.openstack.org`` are now set up with ``https`` and links to pages have been changed to use ``https`` by default. Command-Line Interface Reference ~~~~~~~~~~~~~~~~~~~~...
Add Configuration Reference release notes for Ocata
Add Configuration Reference release notes for Ocata Change-Id: Id5edfaff2c3cb53fabe313ed73360ca86cd4e830
reStructuredText
apache-2.0
openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals
restructuredtext
## Code Before: =========================== Next release: Ocata release =========================== * The documentation sites ``developer.openstack.org`` and ``docs.openstack.org`` are now set up with ``https`` and links to pages have been changed to use ``https`` by default. Command-Line Interface Reference ~~~~...
=========================== Next release: Ocata release =========================== * The documentation sites ``developer.openstack.org`` and ``docs.openstack.org`` are now set up with ``https`` and links to pages have been changed to use ``https`` by default. Command-Line Interface Reference ...
7
0.583333
7
0
5186e59df09b6dc01f18c0536bca085120a2d828
circle.yml
circle.yml
machine: node: version: 6.1 test: override: - npm run build - npm run link - danger post: - npm run flow - npm run lint
machine: node: version: 6.1 test: override: - npm run build - npm run link - danger post: - npm run lint
Remove flow from CircleCI build config
Remove flow from CircleCI build config
YAML
mit
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
yaml
## Code Before: machine: node: version: 6.1 test: override: - npm run build - npm run link - danger post: - npm run flow - npm run lint ## Instruction: Remove flow from CircleCI build config ## Code After: machine: node: version: 6.1 test: override: - npm run build - np...
machine: node: version: 6.1 test: override: - npm run build - npm run link - danger post: - - npm run flow - npm run lint
1
0.083333
0
1
0aee10e7d450d8d0b697f35fdf4cea49867e279f
cmd/dep/testdata/harness_tests/init/glide/case4/final/Gopkg.toml
cmd/dep/testdata/harness_tests/init/glide/case4/final/Gopkg.toml
[[constraint]] name = "github.com/sdboyer/deptestdos" version = "2.0.0"
[[constraint]] name = "github.com/sdboyer/deptestdos" version = "2.0.0" [prune] go-tests = true unused-packages = true
Fix broken test from prune init
dep: Fix broken test from prune init
TOML
bsd-3-clause
golang/dep,golang/dep,golang/dep
toml
## Code Before: [[constraint]] name = "github.com/sdboyer/deptestdos" version = "2.0.0" ## Instruction: dep: Fix broken test from prune init ## Code After: [[constraint]] name = "github.com/sdboyer/deptestdos" version = "2.0.0" [prune] go-tests = true unused-packages = true
[[constraint]] name = "github.com/sdboyer/deptestdos" version = "2.0.0" + + [prune] + go-tests = true + unused-packages = true
4
1
4
0
f100327053dd9cf8a328418c030f6ceb5d3e4b4e
spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
test('User visits the admin page.', function() { visit('/'); andThen(function() { // List of posts equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.'); equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post...
test('User visits the admin page.', function() { visit('/'); andThen(function() { // List of posts equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.'); equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post...
Fix test for visiting admin page
Fix test for visiting admin page
JavaScript
mit
codelation/blogelator,codelation/blogelator,codelation/blogelator
javascript
## Code Before: test('User visits the admin page.', function() { visit('/'); andThen(function() { // List of posts equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.'); equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be display...
test('User visits the admin page.', function() { visit('/'); andThen(function() { // List of posts equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.'); equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed f...
2
0.166667
1
1
5c9912f509e00c238e61f67ed3b14a4b12850eb9
app/models/railgun/asset.rb
app/models/railgun/asset.rb
class Railgun::Asset < ActiveRecord::Base mount_uploader :image, ImageUploader attr_accessible :caption, :image validates :caption, :image, :presence => true before_validation :guess_caption def to_s caption end private def guess_caption self.caption = self.caption.presence self.caption...
class Railgun::Asset < ActiveRecord::Base mount_uploader :image, ImageUploader attr_accessible :caption, :image validates :caption, :image, :presence => true before_validation :guess_caption def to_s caption end private def guess_caption self.caption = self.caption.presence self.caption...
Handle nil image path when guessing caption
Handle nil image path when guessing caption
Ruby
mit
lateralstudios/railgun_content,lateralstudios/railgun_content,lateralstudios/railgun_content
ruby
## Code Before: class Railgun::Asset < ActiveRecord::Base mount_uploader :image, ImageUploader attr_accessible :caption, :image validates :caption, :image, :presence => true before_validation :guess_caption def to_s caption end private def guess_caption self.caption = self.caption.presence ...
class Railgun::Asset < ActiveRecord::Base mount_uploader :image, ImageUploader attr_accessible :caption, :image validates :caption, :image, :presence => true before_validation :guess_caption def to_s caption end private def guess_caption self.caption = se...
2
0.090909
1
1
32c57c1595268b7e91dc26185e040603563ea7fe
src/config/firebase-admin.js
src/config/firebase-admin.js
import admin from 'firebase-admin'; const serviceAccount = require('./firebase-admin-key.json'); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: 'https://bolg-d1098.firebaseio.com', storageBucket: 'bolg-d1098.appspot.com', }); export default admin;
import admin from 'firebase-admin'; const serviceAccount = require('./firebase-admin-key.json'); if (!admin.apps.length) { admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: 'https://bolg-d1098.firebaseio.com', storageBucket: 'bolg-d1098.appspot.com', }); } export d...
Check if app is already initialized
Check if app is already initialized
JavaScript
mit
tuelsch/bolg,tuelsch/bolg
javascript
## Code Before: import admin from 'firebase-admin'; const serviceAccount = require('./firebase-admin-key.json'); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: 'https://bolg-d1098.firebaseio.com', storageBucket: 'bolg-d1098.appspot.com', }); export default admin; ## Inst...
import admin from 'firebase-admin'; const serviceAccount = require('./firebase-admin-key.json'); + if (!admin.apps.length) { - admin.initializeApp({ + admin.initializeApp({ ? ++ - credential: admin.credential.cert(serviceAccount), + credential: admin.credential.cert(serviceAccount), ? ++ - databas...
12
1.090909
7
5
7f340a814b3843f572bc7e21f8a9748172828bed
app/views/projects/protected_tags/_create_protected_tag.html.haml
app/views/projects/protected_tags/_create_protected_tag.html.haml
- content_for :create_access_levels do .create_access_levels-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-create wide', dropdown_class: 'dropdown-menu-selectable', data: { field_name: 'protected_tag[create_access_levels_attribu...
- content_for :create_access_levels do .create_access_levels-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-create wide', dropdown_class: 'dropdown-menu-selectable capitalize-header', data: { field_name: 'protected_tag[create_acc...
Add missing CSS class to capitalize the protectec tag header dropdown
Add missing CSS class to capitalize the protectec tag header dropdown
Haml
mit
jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,mmkassem/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,iiet/iiet-git,dreampet/gitlab,stoplightio/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,iiet/iie...
haml
## Code Before: - content_for :create_access_levels do .create_access_levels-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-create wide', dropdown_class: 'dropdown-menu-selectable', data: { field_name: 'protected_tag[create_acces...
- content_for :create_access_levels do .create_access_levels-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-create wide', - dropdown_class: 'dropdown-menu-selectable', + dropdown_class: 'dropdown-menu-selectable capitaliz...
2
0.25
1
1
d3ccc13f20f04b640ad77c6b997b2142ee69fe71
composer.json
composer.json
{ "name": "typo3-themes/theme-bootstrap4", "type": "typo3-cms-extension", "description": "TYPO3 THEMES Base-theme using Bootstrap 4", "homepage": "http://typo3-themes.org", "license": [ "GPL-2.0+" ], "keywords": [ "TYPO3 CMS", "TYPO3 THEMES", "THEMES", "BOOTSTRAP", "FLUID", "CU...
{ "name": "typo3-themes/theme-bootstrap4", "type": "typo3-cms-extension", "description": "TYPO3 THEMES Base-theme using Bootstrap 4", "homepage": "http://typo3-themes.org", "license": [ "GPL-2.0+" ], "keywords": [ "TYPO3 CMS", "TYPO3 THEMES", "THEMES", "BOOTSTRAP", "FLUID", "CU...
Change requirements to make master branch installable with TYPO3 9
[TASK] Change requirements to make master branch installable with TYPO3 9
JSON
mit
typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4
json
## Code Before: { "name": "typo3-themes/theme-bootstrap4", "type": "typo3-cms-extension", "description": "TYPO3 THEMES Base-theme using Bootstrap 4", "homepage": "http://typo3-themes.org", "license": [ "GPL-2.0+" ], "keywords": [ "TYPO3 CMS", "TYPO3 THEMES", "THEMES", "BOOTSTRAP", ...
{ "name": "typo3-themes/theme-bootstrap4", "type": "typo3-cms-extension", "description": "TYPO3 THEMES Base-theme using Bootstrap 4", "homepage": "http://typo3-themes.org", "license": [ "GPL-2.0+" ], "keywords": [ "TYPO3 CMS", "TYPO3 THEMES", "THEMES", "BOOTST...
6
0.206897
3
3
57103d1f7e4eee6f4405de13c9650663395b0007
src/storage-queue/index.js
src/storage-queue/index.js
var azure = require("azure-storage"); // var nconf = require("nconf"); nconf.env() .file({ file: "config.json", search: true }); var storageName = nconf.get("StorageName"); var storageKey = nconf.get("StorageKey"); var dev = nconf.get("NODE_ENV");
var azure = require("azure-storage"); // var nconf = require("nconf"); nconf.env() .file({ file: "config.json", search: true }); var QueueName = "my-queue"; var storageName = nconf.get("StorageName"); var storageKey = nconf.get("StorageKey"); var dev = nconf.get("NODE_ENV"); // var retryOperations = new azu...
Add couple of simple queue access methods
Add couple of simple queue access methods
JavaScript
mit
peterblazejewicz/azure-aspnet5-examples,peterblazejewicz/azure-aspnet5-examples
javascript
## Code Before: var azure = require("azure-storage"); // var nconf = require("nconf"); nconf.env() .file({ file: "config.json", search: true }); var storageName = nconf.get("StorageName"); var storageKey = nconf.get("StorageKey"); var dev = nconf.get("NODE_ENV"); ## Instruction: Add couple of simple queue ...
var azure = require("azure-storage"); // var nconf = require("nconf"); nconf.env() .file({ file: "config.json", search: true }); + var QueueName = "my-queue"; var storageName = nconf.get("StorageName"); var storageKey = nconf.get("StorageKey"); var dev = nconf.get("NODE_ENV"); + // + v...
37
3.363636
37
0
c8cac3d3d55a1fa97bbc2ba6d2698b3f82aefe8f
metadata/com.stevenschoen.putionew.txt
metadata/com.stevenschoen.putionew.txt
Categories:Internet License:Apache2 Web Site:https://github.com/DSteve595/Put.io Source Code:https://github.com/DSteve595/Put.io Issue Tracker:https://github.com/DSteve595/Put.io/issues Auto Name:Put.io Summary:Client for the Put.io online download service Description: Manage your Put.io download queue. . Repo Type...
Disabled:Relies on non-free libraries AntiFeatures:UpstreamNonFree Categories:Internet License:Apache2 Web Site:https://github.com/DSteve595/Put.io Source Code:https://github.com/DSteve595/Put.io Issue Tracker:https://github.com/DSteve595/Put.io/issues Auto Name:Put.io Summary:Client for the Put.io online download ser...
Disable until upstream is free
Put.io: Disable until upstream is free
Text
agpl-3.0
f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata
text
## Code Before: Categories:Internet License:Apache2 Web Site:https://github.com/DSteve595/Put.io Source Code:https://github.com/DSteve595/Put.io Issue Tracker:https://github.com/DSteve595/Put.io/issues Auto Name:Put.io Summary:Client for the Put.io online download service Description: Manage your Put.io download queue...
+ Disabled:Relies on non-free libraries + AntiFeatures:UpstreamNonFree Categories:Internet License:Apache2 Web Site:https://github.com/DSteve595/Put.io Source Code:https://github.com/DSteve595/Put.io Issue Tracker:https://github.com/DSteve595/Put.io/issues Auto Name:Put.io Summary:Client for the Put.io...
8
0.235294
7
1
d5010db1ddf59158991fc001333d1f857fb9ff58
packages/hw/hw-int.yaml
packages/hw/hw-int.yaml
homepage: http://github.com/haskell-works/hw-int#readme changelog-type: '' hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482 test-bench-deps: {} maintainer: newhoggy@gmail.com synopsis: Integers changelog: '' basic-deps: base: ! '>=4 && <5' all-versions: - '0.0.0.1' author: John Ky latest: '0.0.0...
homepage: http://github.com/haskell-works/hw-int#readme changelog-type: '' hash: 620e5aac29cc4233955352b0ef77bd8d24a1afe351aa27a6492c4d5bb9d18911 test-bench-deps: {} maintainer: newhoggy@gmail.com synopsis: Integers changelog: '' basic-deps: base: ! '>=4 && <5' all-versions: - '0.0.0.1' - '0.0.0.3' author: John Ky la...
Update from Hackage at 2017-08-26T13:53:40Z
Update from Hackage at 2017-08-26T13:53:40Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/haskell-works/hw-int#readme changelog-type: '' hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482 test-bench-deps: {} maintainer: newhoggy@gmail.com synopsis: Integers changelog: '' basic-deps: base: ! '>=4 && <5' all-versions: - '0.0.0.1' author: John K...
homepage: http://github.com/haskell-works/hw-int#readme changelog-type: '' - hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482 + hash: 620e5aac29cc4233955352b0ef77bd8d24a1afe351aa27a6492c4d5bb9d18911 test-bench-deps: {} maintainer: newhoggy@gmail.com synopsis: Integers changelog: '' b...
5
0.25
3
2
1435bb6fd5d907f4d3fa09b7e73498c6c48cabf5
templates/print/types/invoice/labor.tex
templates/print/types/invoice/labor.tex
<% groups = [] groups.push( { title: 'Labor', lines: @invoice.lines.time_entry, footer: 'inv_lines_labor_group_footer.tex' } ) if @invoice.lines.time_entry.any? groups.push( { title: 'Non Labor', lines: @invoice.lines.product } ) if @invoice.lines.product.any? -%> \begin{document} <%= partial( 'lhead.tex', { :l...
<% groups = [] groups.push( { title: 'Labor', lines: @invoice.lines.time_entry, footer: 'inv_lines_labor_group_footer.tex' } ) if @invoice.lines.time_entry.any? groups.push( { title: 'Non Labor', lines: @invoice.lines.product } ) if @invoice.lines.product.any? -%> \setlength{\LTpre}{0pt} \begin{document} <%= pa...
Adjust LTpre vs negative adjustment
Adjust LTpre vs negative adjustment
TeX
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
tex
## Code Before: <% groups = [] groups.push( { title: 'Labor', lines: @invoice.lines.time_entry, footer: 'inv_lines_labor_group_footer.tex' } ) if @invoice.lines.time_entry.any? groups.push( { title: 'Non Labor', lines: @invoice.lines.product } ) if @invoice.lines.product.any? -%> \begin{document} <%= partial( '...
<% groups = [] groups.push( { title: 'Labor', lines: @invoice.lines.time_entry, footer: 'inv_lines_labor_group_footer.tex' } ) if @invoice.lines.time_entry.any? groups.push( { title: 'Non Labor', lines: @invoice.lines.product } ) if @invoice.lines.product.any? -%> + \setlength{\LTpre}{0pt} ...
2
0.08
1
1
b4dcffde18c018ef44cef6112ce724bbf7b5ffac
README.md
README.md
[![Build Status](https://travis-ci.org/jleclanche/fireplace.svg)](https://travis-ci.org/jleclanche/fireplace) A Hearthstone simulator and implementation, written in Python. ### Requirements * Python 3.4+ ### IRC Join us on `#hearthsim` on [Freenode](https://freenode.net)
[![Build Status](https://travis-ci.org/jleclanche/fireplace.svg)](https://travis-ci.org/jleclanche/fireplace) A Hearthstone simulator and implementation, written in Python. ### Requirements * Python 3.4+ ### Documentation The [Fireplace Wiki](https://github.com/jleclanche/fireplace/wiki) is the best source of docu...
Add a note about the wiki and the license
Add a note about the wiki and the license
Markdown
agpl-3.0
oftc-ftw/fireplace,Ragowit/fireplace,smallnamespace/fireplace,Meerkov/fireplace,amw2104/fireplace,oftc-ftw/fireplace,liujimj/fireplace,Meerkov/fireplace,Ragowit/fireplace,amw2104/fireplace,NightKev/fireplace,butozerca/fireplace,smallnamespace/fireplace,liujimj/fireplace,butozerca/fireplace,jleclanche/fireplace,beheh/fi...
markdown
## Code Before: [![Build Status](https://travis-ci.org/jleclanche/fireplace.svg)](https://travis-ci.org/jleclanche/fireplace) A Hearthstone simulator and implementation, written in Python. ### Requirements * Python 3.4+ ### IRC Join us on `#hearthsim` on [Freenode](https://freenode.net) ## Instruction: Add a note...
[![Build Status](https://travis-ci.org/jleclanche/fireplace.svg)](https://travis-ci.org/jleclanche/fireplace) A Hearthstone simulator and implementation, written in Python. ### Requirements * Python 3.4+ + ### Documentation + + The [Fireplace Wiki](https://github.com/jleclanche/fireplace/wiki) is t...
9
0.818182
9
0
89f489bc95abf1a4f5442d0150c8adbccab24956
src/main/webapp/WEB-INF/web.xml
src/main/webapp/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5"> <context-param> <param-name>context...
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <context-pa...
Fix schema URLs to new Oracle locations.
Fix schema URLs to new Oracle locations.
XML
mit
mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test
xml
## Code Before: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5"> <context-param> <pa...
<?xml version="1.0" encoding="ISO-8859-1"?> - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" + <web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xm...
4
0.142857
2
2
28f504dccd02046604761e997f929015a285dffd
pyQuantuccia/tests/test_get_holiday_date.py
pyQuantuccia/tests/test_get_holiday_date.py
from datetime import date import calendar print(calendar.__dir__()) print(calendar.__dict__) def test_united_kingdom_is_business_day(): """ Check a single day to see that we can identify holidays. """ assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False)
from datetime import date import calendar def test_foo(): assert(calendar.__dir__() == "") def test_dummy(): assert(calendar.__dict__ == "") def test_united_kingdom_is_business_day(): """ Check a single day to see that we can identify holidays. """ assert(calendar.united_kingdom_is_busine...
Add some bogus tests to try and get this info.
Add some bogus tests to try and get this info.
Python
bsd-3-clause
jwg4/pyQuantuccia,jwg4/pyQuantuccia
python
## Code Before: from datetime import date import calendar print(calendar.__dir__()) print(calendar.__dict__) def test_united_kingdom_is_business_day(): """ Check a single day to see that we can identify holidays. """ assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False) ## Ins...
from datetime import date import calendar - print(calendar.__dir__()) - print(calendar.__dict__) + + def test_foo(): + assert(calendar.__dir__() == "") + + + def test_dummy(): + assert(calendar.__dict__ == "") def test_united_kingdom_is_business_day(): """ Check a single day to see th...
9
0.692308
7
2
6f4fedcd20aa38a6275e5396557d6871cea6753d
src/transpile-if-ts.ts
src/transpile-if-ts.ts
import * as tsc from 'typescript'; import { getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.transpileModule(contents, { compilerOptions: getTSConfig(config || { __TS_CONFIG__:...
import * as tsc from 'typescript'; import { getTSConfigOptionFromConfig, getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.transpileModule(contents, { compilerOptions: getTSConf...
Add new schema for config
Add new schema for config
TypeScript
mit
kulshekhar/ts-jest,kulshekhar/ts-jest
typescript
## Code Before: import * as tsc from 'typescript'; import { getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.transpileModule(contents, { compilerOptions: getTSConfig(config || ...
import * as tsc from 'typescript'; - import { getTSConfig } from './utils'; + import { getTSConfigOptionFromConfig, getTSConfig } from './utils'; export function transpileIfTypescript(path, contents, config?) { if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) { let transpiled = tsc.trans...
4
0.266667
2
2
d53fe82947953a5fefe40a0d8e239846c810796a
Rocket.Chat/API/Clients/AuthClient.swift
Rocket.Chat/API/Clients/AuthClient.swift
// // AuthClient.swift // Rocket.Chat // // Created by Matheus Cardoso on 5/5/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import RealmSwift struct AuthClient: APIClient { let api: AnyAPIFetcher func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) { ...
// // AuthClient.swift // Rocket.Chat // // Created by Matheus Cardoso on 5/5/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import RealmSwift struct AuthClient: APIClient { let api: AnyAPIFetcher func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) { ...
Stop setting websocket connection as authenticated on LoginRequest callback because it doesn't authenticate the websocket connection
Stop setting websocket connection as authenticated on LoginRequest callback because it doesn't authenticate the websocket connection
Swift
mit
RocketChat/Rocket.Chat.iOS,RocketChat/Rocket.Chat.iOS,RocketChat/Rocket.Chat.iOS
swift
## Code Before: // // AuthClient.swift // Rocket.Chat // // Created by Matheus Cardoso on 5/5/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import RealmSwift struct AuthClient: APIClient { let api: AnyAPIFetcher func login(params: LoginParams, completion: @escaping (APIResponse<LoginResour...
// // AuthClient.swift // Rocket.Chat // // Created by Matheus Cardoso on 5/5/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import RealmSwift struct AuthClient: APIClient { let api: AnyAPIFetcher func login(params: LoginParams, completion: @escaping (APIResponse...
1
0.019608
0
1
d0563e724bff1cf2cdd3899abde46225a06d47e6
index.html
index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Modalon | Ultra simple and light</title> <link rel="stylesheet" href="modalon.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300"> <style> body { font-family: 'La...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Modalon | Ultra simple and light</title> <link rel="stylesheet" href="modalon.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300"> <style> body { font-family: 'Lato'; } h4, p { marg...
Use 2 spaces for indentation
Use 2 spaces for indentation
HTML
mit
drihup/modalon,drihup/modalon
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Modalon | Ultra simple and light</title> <link rel="stylesheet" href="modalon.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300"> <style> body { ...
<!DOCTYPE html> <html> - <head> ? -- + <head> - <meta charset="utf-8"> ? ---- + <meta charset="utf-8"> - <title>Modalon | Ultra simple and light</title> ? ---- + <title>Modalon | Ultra simple and light</title> - <link rel="stylesheet" href="modalon.css"> ? ---- + <link ...
71
1.690476
35
36
b85a4f97f58e10f521e5591fec65ef1006616d14
src/routes/index.js
src/routes/index.js
let express = require('express'); let router = express.Router(); const spacyNLP = require('spacy-nlp'); const nlp = spacyNLP.nlp; router.get('/', (req, res) => { res.send({title: 'SpaCy JSON service'}); }); router.post('/', (req, res, next) => { let body = req.body; if (body && body.input) { nlp....
let express = require('express'); let router = express.Router(); const spacyNLP = require('spacy-nlp'); const nlp = spacyNLP.nlp; let fs = require('fs'); router.get('/', (req, res, next) => { try { fs.readFile('/etc/spacy_info', 'utf8', function (err, fileContents) { if (err) { ...
Implement returning SpaCy info when calling the root with GET
Implement returning SpaCy info when calling the root with GET
JavaScript
mit
jlundan/spacy-nodejs-alpine,jlundan/spacy-nodejs-alpine
javascript
## Code Before: let express = require('express'); let router = express.Router(); const spacyNLP = require('spacy-nlp'); const nlp = spacyNLP.nlp; router.get('/', (req, res) => { res.send({title: 'SpaCy JSON service'}); }); router.post('/', (req, res, next) => { let body = req.body; if (body && body.input...
let express = require('express'); let router = express.Router(); const spacyNLP = require('spacy-nlp'); const nlp = spacyNLP.nlp; + let fs = require('fs'); - router.get('/', (req, res) => { + router.get('/', (req, res, next) => { ? ++++++ - res.send({title: 'SpaCy JSON service'}...
35
1.346154
32
3
36d7c61c7d6f7c6dc4e9bb9191f20890ab148e8c
lib/support/browser_script.js
lib/support/browser_script.js
'use strict'; let fs = require('fs'), path = require('path'), Promise = require('bluebird'), filters = require('./filters'); Promise.promisifyAll(fs); /* Find and parse any browser scripts in rootFolder. Returns a Promise that resolves to an array of scripts. Each script is represented by an object with the...
'use strict'; let fs = require('fs'), path = require('path'), Promise = require('bluebird'), filters = require('./filters'); Promise.promisifyAll(fs); /* Find and parse any browser scripts in rootFolder. Returns a Promise that resolves to an array of scripts. Each script is represented by an object with the...
Configure Bluebird before first use of Promise.
Configure Bluebird before first use of Promise. Turn browser_scripts#defaultScripts into a get property, so it's not executed when the file is being required. This to avoid: Error: cannot enable long stack traces after promises have been created
JavaScript
apache-2.0
sitespeedio/browsertime,tobli/browsertime,sitespeedio/browsertime,sitespeedio/browsertime,sitespeedio/browsertime
javascript
## Code Before: 'use strict'; let fs = require('fs'), path = require('path'), Promise = require('bluebird'), filters = require('./filters'); Promise.promisifyAll(fs); /* Find and parse any browser scripts in rootFolder. Returns a Promise that resolves to an array of scripts. Each script is represented by an...
'use strict'; let fs = require('fs'), path = require('path'), Promise = require('bluebird'), filters = require('./filters'); Promise.promisifyAll(fs); /* Find and parse any browser scripts in rootFolder. Returns a Promise that resolves to an array of scripts. Each script is represe...
4
0.090909
3
1
a21a646af2231224ee6ec5a4d2363edeb776754c
src/Cryptol/Prelude.hs
src/Cryptol/Prelude.hs
-- | -- Module : $Header$ -- Copyright : (c) 2015 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable -- -- Include the prelude when building with -fself-contained {-# LANGUAGE CPP #-} {-# LANGUAGE QuasiQuotes #-} module Cryptol.Pr...
-- | -- Module : $Header$ -- Copyright : (c) 2015 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable -- -- Include the prelude when building with -fself-contained {-# LANGUAGE CPP #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE Overl...
Enable OverloadedStrings to fix a build error
Enable OverloadedStrings to fix a build error
Haskell
bsd-3-clause
GaloisInc/cryptol,GaloisInc/cryptol,GaloisInc/cryptol
haskell
## Code Before: -- | -- Module : $Header$ -- Copyright : (c) 2015 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable -- -- Include the prelude when building with -fself-contained {-# LANGUAGE CPP #-} {-# LANGUAGE QuasiQuotes #-} m...
-- | -- Module : $Header$ -- Copyright : (c) 2015 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable -- -- Include the prelude when building with -fself-contained {-# LANGUAGE CPP #-} {-# LANGUAGE QuasiQuote...
1
0.022222
1
0
5f0f0a75b380392b6e15acfcf46b30853dd2fb7b
setup.py
setup.py
from setuptools import setup version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learning data analysis...
from setuptools import setup, find_packages version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learnin...
Include subdirectories when building the package.
Include subdirectories when building the package.
Python
mit
kvh/ramp
python
## Code Before: from setuptools import setup version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learni...
- from setuptools import setup + from setuptools import setup, find_packages ? +++++++++++++++ version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifie...
4
0.166667
2
2
03cd62ab772b2b91d1b67446501d1fcb40a1bd97
app/controllers/comments_controller.rb
app/controllers/comments_controller.rb
class CommentsController < ApplicationController def new @comment = Comment.new end end
class CommentsController < ApplicationController def new @resource = Resource.find_by(id: params[:resource_id]) @comment = @resource.comments.build end end
Build comment off of resource in new comments action.
Build comment off of resource in new comments action.
Ruby
mit
abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/sorter
ruby
## Code Before: class CommentsController < ApplicationController def new @comment = Comment.new end end ## Instruction: Build comment off of resource in new comments action. ## Code After: class CommentsController < ApplicationController def new @resource = Resource.find_by(id: params[:resource_id]) ...
class CommentsController < ApplicationController def new - @comment = Comment.new + @resource = Resource.find_by(id: params[:resource_id]) + @comment = @resource.comments.build end end
3
0.428571
2
1
0ce2e8ccf016c559653363fa94c3b82bcc76a153
src/views/authPage/AuthInputField.js
src/views/authPage/AuthInputField.js
import React, { PropTypes } from 'react'; import styles from './AuthPage.css'; function AuthInputField(props) { const { input, type, placeholder, className, meta, } = props; const { touched, error, } = meta; return ( <div> <div> <input {...input} type={type} ...
import React, { PropTypes } from 'react'; import styles from './AuthPage.css'; function AuthInputField(props) { const { input, type, placeholder, className, meta, } = props; const { dirty, error, } = meta; return ( <div> <div> <input {...input} type={type} ...
Fix blur issue with auth form validation
Fix blur issue with auth form validation
JavaScript
mit
VirtualClub/vclub,VirtualClub/vclub,BudIT/vclub,BudIT/vclub
javascript
## Code Before: import React, { PropTypes } from 'react'; import styles from './AuthPage.css'; function AuthInputField(props) { const { input, type, placeholder, className, meta, } = props; const { touched, error, } = meta; return ( <div> <div> <input {...input} ...
import React, { PropTypes } from 'react'; import styles from './AuthPage.css'; function AuthInputField(props) { const { input, type, placeholder, className, meta, } = props; const { - touched, error, + dirty, error, } = meta; return ( <div> <div> ...
6
0.146341
3
3
8836efb5be3839ce92445cadde4a0cf769018001
static/css/styles.css
static/css/styles.css
/* Base styles */ body { background-color: #FFF; color: #222; padding-top: 50px; } #map { height: 300px; margin-bottom: 20px; } .measurement div .description { margin-top: 10px; font-size: 1.8em; } .measurement div .value { padding-top: 10px; font-size: 3em; font-weight: bold; } .meas...
/* Base styles */ body { background-color: #FFF; color: #222; padding-top: 50px; } #map { height: 300px; margin-bottom: 20px; } .measurement div .description { margin-top: 10px; font-size: 1.8em; } .measurement div .value { padding-top: 10px; font-size: 3em; font-weight: bold; } .meas...
Make chart a little narrower to fit on 1 screen.
Make chart a little narrower to fit on 1 screen.
CSS
bsd-3-clause
openxc/web-logging-example,openxc/web-logging-example
css
## Code Before: /* Base styles */ body { background-color: #FFF; color: #222; padding-top: 50px; } #map { height: 300px; margin-bottom: 20px; } .measurement div .description { margin-top: 10px; font-size: 1.8em; } .measurement div .value { padding-top: 10px; font-size: 3em; font-weight...
/* Base styles */ body { background-color: #FFF; color: #222; padding-top: 50px; } #map { height: 300px; margin-bottom: 20px; } .measurement div .description { margin-top: 10px; font-size: 1.8em; } .measurement div .value { padding-top: 10px; font-...
4
0.148148
4
0
e2a1658ab311e4db5c26d758869c923ba4d6f056
static/email-frame.less
static/email-frame.less
@import 'variables/ui-variables'; @import 'ui-variables'; .ignore-in-parent-frame { html, body { font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif; font-size: 16px; line-height: 1.5; color: @text-color; background-color: transparent !important; border: 0; margin: 0...
@import 'variables/ui-variables'; @import 'ui-variables'; .ignore-in-parent-frame { html, body { font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif; font-size: 16px; line-height: 1.5; color: @text-color; background-color: transparent !important; border: 0; margin: 0...
Remove img height:auto; causing images to stretch based on their intrinsic size
fix(email-styles): Remove img height:auto; causing images to stretch based on their intrinsic size We constrain images to a max-width of 600px. We have logic to change width and height attributes of inline attachments when both specified (and larger than 600px). This `height:auto` flag causes the image below to render...
Less
mit
nirmit/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nirmit/ny...
less
## Code Before: @import 'variables/ui-variables'; @import 'ui-variables'; .ignore-in-parent-frame { html, body { font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif; font-size: 16px; line-height: 1.5; color: @text-color; background-color: transparent !important; border: ...
@import 'variables/ui-variables'; @import 'ui-variables'; .ignore-in-parent-frame { html, body { font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif; font-size: 16px; line-height: 1.5; color: @text-color; background-color: transparent !important; ...
1
0.014925
0
1
c45c602e9cae985fae3c62f3021e1d74bbe77ffb
systemjs.config.js
systemjs.config.js
(function(global) { config.map['papaparse'] = '@node/papaparse'; System.config(config); })(this);
(function(global) { if(typeof process != 'object') { console.log('Running in browser, disabling NodeJS functionality.'); config.map['fs'] = '@empty'; config.map['electron'] = '@empty'; config.map['express'] = '@empty'; config.map['express-pouchdb'] = '@empty'; } else { ...
Revert "remove obsolete browser electron distinction"
Revert "remove obsolete browser electron distinction" This reverts commit 1709ee9ea51c1838cac5b13c803c186ff0f26c4e.
JavaScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
javascript
## Code Before: (function(global) { config.map['papaparse'] = '@node/papaparse'; System.config(config); })(this); ## Instruction: Revert "remove obsolete browser electron distinction" This reverts commit 1709ee9ea51c1838cac5b13c803c186ff0f26c4e. ## Code After: (function(global) { if(typeof process != 'ob...
(function(global) { + + if(typeof process != 'object') { + console.log('Running in browser, disabling NodeJS functionality.'); + config.map['fs'] = '@empty'; + config.map['electron'] = '@empty'; + config.map['express'] = '@empty'; + config.map['express-pouchdb'] = '@empty'...
18
4.5
17
1
2cb220ea6e877b18324816dfcc9bac4e00ef0d67
README.md
README.md
v0.1 by Evan Coury ## Introduction Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2 module. ## License Sslurp is released under the BSD license. See the included LICENSE file.
v0.1 by Evan Coury ## Introduction Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2 module. ### CLI Root CA Bundle Updater [update-ca-bundle.php](https://github.com/EvanDotPro/Sslurp/blob/master/bin/update-c...
Update readme to explain update-ca-bundle.php
Update readme to explain update-ca-bundle.php
Markdown
bsd-2-clause
EvanDotPro/Sslurp,EvanDotPro/Sslurp
markdown
## Code Before: v0.1 by Evan Coury ## Introduction Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2 module. ## License Sslurp is released under the BSD license. See the included LICENSE file. ## Instruction:...
v0.1 by Evan Coury ## Introduction Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2 module. + + ### CLI Root CA Bundle Updater + + [update-ca-bundle.php](https://github.com/EvanDotPro/Sslur...
27
2.25
27
0
a6604e0ed18042bb729ba726199fb21d7eb816ec
src/TableRow/System/PageDetailsTableRow.php
src/TableRow/System/PageDetailsTableRow.php
<?php //---------------------------------------------------------------------------------------------------------------------- namespace SetBased\Abc\Core\TableRow\System; use SetBased\Abc\Core\Page\System\PageDetailsPage; use SetBased\Abc\Helper\Html; use SetBased\Abc\Table\DetailTable; //---------------------------...
<?php //---------------------------------------------------------------------------------------------------------------------- namespace SetBased\Abc\Core\TableRow\System; use SetBased\Abc\Core\Page\System\PageDetailsPage; use SetBased\Abc\Helper\Html; use SetBased\Abc\Table\DetailTable; //---------------------------...
Align with changes in abc-table-detail.
Align with changes in abc-table-detail.
PHP
mit
SetBased/php-abc-core,SetBased/php-abc-core
php
## Code Before: <?php //---------------------------------------------------------------------------------------------------------------------- namespace SetBased\Abc\Core\TableRow\System; use SetBased\Abc\Core\Page\System\PageDetailsPage; use SetBased\Abc\Helper\Html; use SetBased\Abc\Table\DetailTable; //-----------...
<?php //---------------------------------------------------------------------------------------------------------------------- namespace SetBased\Abc\Core\TableRow\System; use SetBased\Abc\Core\Page\System\PageDetailsPage; use SetBased\Abc\Helper\Html; use SetBased\Abc\Table\DetailTable; //---------...
12
0.307692
3
9
586e0b014ad587289b0b4dde22332601bd4c55bc
.travis.yml
.travis.yml
sudo: false language: node_js node_js: - "4.0" - "4.1" - "5.0" - "5.1" after_script: - npm run coveralls
sudo: false language: node_js node_js: - 4.0 - 5.0 - stable after_script: - npm run coveralls
Test against the latest stable node
Test against the latest stable node
YAML
mit
chriso/validator.js
yaml
## Code Before: sudo: false language: node_js node_js: - "4.0" - "4.1" - "5.0" - "5.1" after_script: - npm run coveralls ## Instruction: Test against the latest stable node ## Code After: sudo: false language: node_js node_js: - 4.0 - 5.0 - stable after_script: - npm run coveralls
sudo: false language: node_js node_js: - - "4.0" ? - - + - 4.0 - - "4.1" - - "5.0" ? - - + - 5.0 - - "5.1" + - stable after_script: - npm run coveralls
7
0.777778
3
4
cf2d6f21940d13cc20aeffeb64d817ccdae37e74
.appveyor.yml
.appveyor.yml
branches: except: - circleci - travisci - gh-pages - build_linux_64 - build_osx_64 install: - ps: choco install -y -r swig --version 3.0.9 - ps: choco install -y -r lua - ps: refreshenv before_build: - cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_EN...
branches: except: - circleci - travisci - gh-pages - build_linux_64 - build_osx_64 environment: matrix: - COMPILER: mingw GENERATOR: MinGW Makefiles PLATFORM: Win32 - COMPILER: mingw-w64 GENERATOR: MinGW Makefiles PLATFORM: x64 - COMPILER: msvc GENERA...
Build with msvc and mingw for 32 and 64 bit.
Build with msvc and mingw for 32 and 64 bit.
YAML
mit
msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline
yaml
## Code Before: branches: except: - circleci - travisci - gh-pages - build_linux_64 - build_osx_64 install: - ps: choco install -y -r swig --version 3.0.9 - ps: choco install -y -r lua - ps: refreshenv before_build: - cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_ENABLE_CSHARP=TRUE...
branches: except: - circleci - travisci - gh-pages - build_linux_64 - build_osx_64 + environment: + matrix: + - COMPILER: mingw + GENERATOR: MinGW Makefiles + PLATFORM: Win32 + + - COMPILER: mingw-w64 + GENERATOR: MinGW Makefiles + PLATFORM: x64 ...
32
1.777778
27
5
cd084fced40beb429474fabf33dff675e9ccb522
syncplay/__init__.py
syncplay/__init__.py
version = '1.6.7' revision = '' milestone = 'Yoitsu' release_number = '94' projectURL = 'https://syncplay.pl/'
version = '1.6.8' revision = ' development' milestone = 'Yoitsu' release_number = '95' projectURL = 'https://syncplay.pl/'
Mark as 1.6.8 dev (build 95)
Mark as 1.6.8 dev (build 95)
Python
apache-2.0
alby128/syncplay,alby128/syncplay,Syncplay/syncplay,Syncplay/syncplay
python
## Code Before: version = '1.6.7' revision = '' milestone = 'Yoitsu' release_number = '94' projectURL = 'https://syncplay.pl/' ## Instruction: Mark as 1.6.8 dev (build 95) ## Code After: version = '1.6.8' revision = ' development' milestone = 'Yoitsu' release_number = '95' projectURL = 'https://syncplay.pl/'
- version = '1.6.7' ? ^ + version = '1.6.8' ? ^ - revision = '' + revision = ' development' milestone = 'Yoitsu' - release_number = '94' ? ^ + release_number = '95' ? ^ projectURL = 'https://syncplay.pl/'
6
1.2
3
3
6d1626327f3577a86cdd3c54e5732b65e59a3402
test2.py
test2.py
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index, item in enumer...
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index, item in enumer...
Add an additional layer for the for loop
Add an additional layer for the for loop
Python
mit
zhang96/JSONWithPython
python
## Code Before: import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index...
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variabl...
17
0.472222
9
8
e29bf8087a9f0dbd63cc979ff70de15cd390fe3d
etc/config/gcc-explorer.amazon-rust.properties
etc/config/gcc-explorer.amazon-rust.properties
port=10242 compileTimeoutMs=5000 compilers=r100:nightly defaultCompiler=r100 compiler.r100.exe=/opt/rust-1.0.0/bin/rustc compiler.r100.name=rustc 1.0.0 compiler.nightly.exe=/opt/rust-nightly/bin/rustc compiler.nightly.name=rustc nightly (version varies) compileFilename=example.rs compileToAsm=--emit asm --crate-type st...
port=10242 compileTimeoutMs=5000 compilers=r100:nightly defaultCompiler=r100 compiler.r100.exe=/opt/rust-1.0.0/bin/rustc compiler.r100.name=rustc 1.0.0 compiler.r100.intelAsm=-Cllvm-args=--x86-asm-syntax=intel compiler.nightly.exe=/opt/rust-nightly/bin/rustc compiler.nightly.name=rustc nightly (version varies) compiler...
Enable intel asm for rust
Enable intel asm for rust
INI
bsd-2-clause
ibuclaw/gcc-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,zengyuleo/gcc-explorer,dkm/gcc-explorer,ibuclaw/gcc-explorer,mcanthony/gcc-explorer,mattgodbolt/gcc-explorer,mattgodbolt/gcc-explorer,olajep/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compil...
ini
## Code Before: port=10242 compileTimeoutMs=5000 compilers=r100:nightly defaultCompiler=r100 compiler.r100.exe=/opt/rust-1.0.0/bin/rustc compiler.r100.name=rustc 1.0.0 compiler.nightly.exe=/opt/rust-nightly/bin/rustc compiler.nightly.name=rustc nightly (version varies) compileFilename=example.rs compileToAsm=--emit asm...
port=10242 compileTimeoutMs=5000 compilers=r100:nightly defaultCompiler=r100 compiler.r100.exe=/opt/rust-1.0.0/bin/rustc compiler.r100.name=rustc 1.0.0 + compiler.r100.intelAsm=-Cllvm-args=--x86-asm-syntax=intel compiler.nightly.exe=/opt/rust-nightly/bin/rustc compiler.nightly.name=rustc nightly (versio...
2
0.125
2
0
8b00eb57cb848742ce6329e9a690ff5ab16245e4
lib/pathto.js
lib/pathto.js
/* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; // The `pathTo()` function is written in ES3 so it's serializable and able to // run in all JavaScript environments. module.exports = function pathTo(rou...
/* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; // The `pathTo()` function is written in ES3 so it's serializable and able to // run in all JavaScript environments. module.exports = function pathTo(rou...
Fix TMN specific site param
Fix TMN specific site param
JavaScript
bsd-3-clause
brian-ledbetter/express-map
javascript
## Code Before: /* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; // The `pathTo()` function is written in ES3 so it's serializable and able to // run in all JavaScript environments. module.exports = fun...
/* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; // The `pathTo()` function is written in ES3 so it's serializable and able to // run in all JavaScript environments. module.exports...
15
0.384615
13
2
5b195f691fb81ace7d25c61edacc1425682830b1
spec/support/runnables_link_matcher.rb
spec/support/runnables_link_matcher.rb
module RunnablesLinkMatcher class BeLinkLike def initialize(href, css_class, image, link_text) @href, @css_class, @image, @link_text = href, css_class, image, link_text end def matches?(target) @target = target @target.should =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_te...
module RunnablesLinkMatcher extend RSpec::Matchers::DSL matcher :be_link_like do |href, css_class, image, link_text| match do |actual| actual =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i end failure_message_for_should { 'Expected a properly formed link.' } failure...
Rewrite be_link_like matcher for rspec 3.x
Rewrite be_link_like matcher for rspec 3.x
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: module RunnablesLinkMatcher class BeLinkLike def initialize(href, css_class, image, link_text) @href, @css_class, @image, @link_text = href, css_class, image, link_text end def matches?(target) @target = target @target.should =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image...
+ module RunnablesLinkMatcher - class BeLinkLike - def initialize(href, css_class, image, link_text) - @href, @css_class, @image, @link_text = href, css_class, image, link_text + extend RSpec::Matchers::DSL + + matcher :be_link_like do |href, css_class, image, link_text| + match do |actual| + ...
28
1.166667
8
20
f6e92991a12265797fe7e5d5a74076bbcb4be79a
modules/clients/server/models/client.server.model.js
modules/clients/server/models/client.server.model.js
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Client Schema */ var ClientSchema = new Schema({ clientID: { type: String, trim: true }, clientName: { type: String, trim: true }, clientSecret: { type: String, trim:...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Client Schema */ var ClientSchema = new Schema({ created: { type: Date, default: Date.now }, clientID: { type: String, trim: true }, clientName: { type: String, trim:...
Add field 'created' to Client collection
Add field 'created' to Client collection
JavaScript
agpl-3.0
BuggleInc/PLM-accounts,BuggleInc/PLM-accounts,MatthieuNICOLAS/PLMAccounts,MatthieuNICOLAS/PLMAccounts,MatthieuNICOLAS/PLMAccounts,BuggleInc/PLM-accounts
javascript
## Code Before: 'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Client Schema */ var ClientSchema = new Schema({ clientID: { type: String, trim: true }, clientName: { type: String, trim: true }, clientSecret: { type: S...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Client Schema */ var ClientSchema = new Schema({ + created: { + type: Date, + default: Date.now + }, clientID: { type: String, trim: true }, ...
4
0.114286
4
0
20d63ba3fa1a9780d4a13c5119ae97a772efb502
teardown_tests.py
teardown_tests.py
import os import shutil import sys if not os.environ.get("TEST_NOTEBOOKS"): sys.exit(0) for each in list(sys.argv[1:]) + [ "reg.h5", "reg_sub.h5", "reg_f_f0.h5", "reg_wt.h5", "reg_norm.h5", "reg_dict.h5", "reg_post.h5", "reg_traces.h5", "reg_rois.h5", "reg_proj.h5", ...
import os import shutil import sys if not os.environ.get("TEST_NOTEBOOKS"): sys.exit(0) for each in list(sys.argv[1:]) + [ "reg.h5", "reg_sub.h5", "reg_f_f0.h5", "reg_wt.h5", "reg_norm.h5", "reg_dict.h5", "reg_post.h5", "reg_traces.h5", "reg_rois.h5", "reg_proj.h5", ...
Remove test Zarr files after completion.
Remove test Zarr files after completion.
Python
apache-2.0
nanshe-org/nanshe_workflow,DudLab/nanshe_workflow
python
## Code Before: import os import shutil import sys if not os.environ.get("TEST_NOTEBOOKS"): sys.exit(0) for each in list(sys.argv[1:]) + [ "reg.h5", "reg_sub.h5", "reg_f_f0.h5", "reg_wt.h5", "reg_norm.h5", "reg_dict.h5", "reg_post.h5", "reg_traces.h5", "reg_rois.h5", "re...
import os import shutil import sys if not os.environ.get("TEST_NOTEBOOKS"): sys.exit(0) for each in list(sys.argv[1:]) + [ "reg.h5", "reg_sub.h5", "reg_f_f0.h5", "reg_wt.h5", "reg_norm.h5", "reg_dict.h5", "reg_post.h5", "reg_traces.h5", ...
10
0.384615
10
0
3396a1fd483909794ac12651b6f04541581ae680
util/logger.go
util/logger.go
package util import ( "fmt" "io" "log" "os" ) // Create a logger with the given prefix func CreateLogger(prefix string) *log.Logger { return CreateLoggerWithWriter(os.Stderr, prefix) // return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags) } // CreateLoggerWithWriter Create a lgogger...
package util import ( "fmt" "io" "log" "os" ) // Create a logger with the given prefix func CreateLogger(prefix string) *log.Logger { return CreateLoggerWithWriter(os.Stderr, prefix) } // CreateLoggerWithWriter Create a lgogger around the given output stream and prefix func CreateLoggerWithWriter(writer io.Writ...
Remove commented out old logic
Remove commented out old logic
Go
mit
gruntwork-io/terragrunt,gruntwork-io/terragrunt,tamsky/terragrunt,tamsky/terragrunt
go
## Code Before: package util import ( "fmt" "io" "log" "os" ) // Create a logger with the given prefix func CreateLogger(prefix string) *log.Logger { return CreateLoggerWithWriter(os.Stderr, prefix) // return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags) } // CreateLoggerWithWriter ...
package util import ( "fmt" "io" "log" "os" ) // Create a logger with the given prefix func CreateLogger(prefix string) *log.Logger { return CreateLoggerWithWriter(os.Stderr, prefix) - // return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags) } // CreateL...
1
0.045455
0
1
bfa9189bd22d1e1e5dd5642110ed7f05bfff5803
config/routes.rb
config/routes.rb
Rails.application.routes.draw do mount GovukPublishingComponents::Engine, at: "/component-guide" scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do get "/:prefix/:manual_id", to: "manuals#index" get "/:prefix/:manual_id/updates", to: "manuals#updates" get "/:prefix/:ma...
Rails.application.routes.draw do mount GovukPublishingComponents::Engine, at: "/component-guide" scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do get "/:prefix/:manual_id", to: "manuals#index" get "/:prefix/:manual_id/updates", to: "manuals#updates" get "/:prefix/:ma...
Add RFC 141 healthcheck endpoints
Add RFC 141 healthcheck endpoints Once govuk-puppet has been updated, the old endpoint can be removed. See the RFC for more details.
Ruby
mit
alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend
ruby
## Code Before: Rails.application.routes.draw do mount GovukPublishingComponents::Engine, at: "/component-guide" scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do get "/:prefix/:manual_id", to: "manuals#index" get "/:prefix/:manual_id/updates", to: "manuals#updates" g...
Rails.application.routes.draw do mount GovukPublishingComponents::Engine, at: "/component-guide" scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do get "/:prefix/:manual_id", to: "manuals#index" get "/:prefix/:manual_id/updates", to: "manuals#updates" get...
3
0.230769
3
0
f3a586870c7c8c9dc510645e8b195a5d04e4e606
src/Hydrator/Strategy/WebEntitiesStrategy.php
src/Hydrator/Strategy/WebEntitiesStrategy.php
<?php namespace Vision\Hydrator\Strategy; use Vision\Annotation\Property; use Vision\Annotation\WebEntity; use Zend\Hydrator\Strategy\StrategyInterface; class WebEntitiesStrategy implements StrategyInterface { /** * @param WebEntity[] $value * @return array */ public function extract($value) ...
<?php namespace Vision\Hydrator\Strategy; use Vision\Annotation\Property; use Vision\Annotation\WebEntity; use Zend\Hydrator\Strategy\StrategyInterface; class WebEntitiesStrategy implements StrategyInterface { /** * @param WebEntity[] $value * @return array */ public function extract($value) ...
Allow description to be null
Allow description to be null
PHP
mit
jordi12100/Php-Google-Vision-Api,jordikroon/Php-Google-Vision-Api
php
## Code Before: <?php namespace Vision\Hydrator\Strategy; use Vision\Annotation\Property; use Vision\Annotation\WebEntity; use Zend\Hydrator\Strategy\StrategyInterface; class WebEntitiesStrategy implements StrategyInterface { /** * @param WebEntity[] $value * @return array */ public function e...
<?php namespace Vision\Hydrator\Strategy; use Vision\Annotation\Property; use Vision\Annotation\WebEntity; use Zend\Hydrator\Strategy\StrategyInterface; class WebEntitiesStrategy implements StrategyInterface { /** * @param WebEntity[] $value * @return array */ pub...
6
0.15
5
1
980f9abc5b95c9f9ed089b13e9538173bcac0952
app/user_administration/urls.py
app/user_administration/urls.py
from django.conf.urls import url from .views import HomePage urlpatterns = [ url(r'^', HomePage.as_view(), name='HomePage'), ]
from django.conf.urls import url from .views import HomePage, LoginPage from django.contrib.auth.views import logout_then_login urlpatterns = [ url(r'^$', HomePage.as_view(), name='HomePage'), url(r'^login/', LoginPage.as_view(), name='LoginPage'), url(r'^logout/', logout_then_login, name='LoginPage'), ]
Add Login & Logout Routing
Add Login & Logout Routing
Python
mit
rexhepberlajolli/RHChallenge,rexhepberlajolli/RHChallenge
python
## Code Before: from django.conf.urls import url from .views import HomePage urlpatterns = [ url(r'^', HomePage.as_view(), name='HomePage'), ] ## Instruction: Add Login & Logout Routing ## Code After: from django.conf.urls import url from .views import HomePage, LoginPage from django.contrib.auth.views import lo...
from django.conf.urls import url - from .views import HomePage + from .views import HomePage, LoginPage ? +++++++++++ + from django.contrib.auth.views import logout_then_login urlpatterns = [ - url(r'^', HomePage.as_view(), name='HomePage'), + url(r'^$', HomePage.as_view(), na...
7
1.166667
5
2
5521951957a55680f3a42107195d3e59e32916c5
app/assets/javascripts/charts/intervention_plot_band.js
app/assets/javascripts/charts/intervention_plot_band.js
(function(root) { var InterventionPlotBand = function initializeInterventionPlotBand (intervention) { this.name = intervention.name; this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date); this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date); } InterventionPlotB...
(function(root) { var InterventionPlotBand = function initializeInterventionPlotBand (intervention) { this.name = intervention.name; this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date); this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date); } InterventionPlotB...
Add alpha to interventions block
Add alpha to interventions block In the Profile on the graph #234
JavaScript
mit
studentinsights/studentinsights,erose/studentinsights,erose/studentinsights,hunterowens/somerville-teacher-tool,jhilde/studentinsights,codeforamerica/somerville-teacher-tool,jhilde/studentinsights,codeforamerica/somerville-teacher-tool,hunterowens/somerville-teacher-tool,studentinsights/studentinsights,codeforamerica/s...
javascript
## Code Before: (function(root) { var InterventionPlotBand = function initializeInterventionPlotBand (intervention) { this.name = intervention.name; this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date); this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date); } I...
(function(root) { var InterventionPlotBand = function initializeInterventionPlotBand (intervention) { this.name = intervention.name; this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date); this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date); } ...
8
0.216216
1
7
17ebdcfb9d6b494260aa6bcb9d285a603938cfab
README.md
README.md
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to a channel to the Minecraft chat, and vise versa. ## Installation Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the following exampl...
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to a channel to the Minecraft chat, and vise versa. ## Installation Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the following exampl...
Update readme with language information
Update readme with language information
Markdown
mit
jkcgs/DiscordChat
markdown
## Code Before: This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to a channel to the Minecraft chat, and vise versa. ## Installation Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the ...
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to a channel to the Minecraft chat, and vise versa. ## Installation Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the ...
6
0.206897
6
0
d8cc9b3470b905d5557ebfae11ebc770337bdf0d
Assets/Plugins/iOS/FrispSocial/FrispSocial.mm
Assets/Plugins/iOS/FrispSocial/FrispSocial.mm
@implementation FrispSocial static FrispSocial * _instance = [[FrispSocial alloc] init]; + (id) instance { return _instance; } - (void) share:(NSString *)text media:(NSString *)media { UIActivityViewController *socialViewController; // Create image from image data NSData *imageData = [[NSData alloc] in...
@implementation FrispSocial static FrispSocial * _instance = [[FrispSocial alloc] init]; + (id) instance { return _instance; } - (void) share:(NSString *)text media:(NSString *)media { UIActivityViewController *socialViewController; // Create image from image data NSData *imageData = [[NSData alloc] in...
Support iPad for iOS8 +
Support iPad for iOS8 +
Objective-C++
mit
frispgames/frisp-social-unity-asset
objective-c++
## Code Before: @implementation FrispSocial static FrispSocial * _instance = [[FrispSocial alloc] init]; + (id) instance { return _instance; } - (void) share:(NSString *)text media:(NSString *)media { UIActivityViewController *socialViewController; // Create image from image data NSData *imageData = [[...
@implementation FrispSocial static FrispSocial * _instance = [[FrispSocial alloc] init]; + (id) instance { return _instance; } - (void) share:(NSString *)text media:(NSString *)media { UIActivityViewController *socialViewController; // Create image from image data NSData *im...
12
0.363636
9
3
adbd258f52886d01c7ccf253f4bae01f4bf23b4f
app/views/teams/_invitation.html.erb
app/views/teams/_invitation.html.erb
<h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4> <%= form_tag do |f| %> <div class="actions"> <%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %> <%= submit_tag "Decline", name: 'decline', :class => 'button--invited', ...
<h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4> <%= form_tag do |f| %> <div class="actions"> <%= submit_tag "Accept", name: 'accept', :class => 'button--discrete', :id => 'success' %> <%= submit_tag "Decline", name: 'decline', :class => 'button--discrete...
Modify invitation partial to use more generalized id's
Modify invitation partial to use more generalized id's
HTML+ERB
mit
codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app
html+erb
## Code Before: <h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4> <%= form_tag do |f| %> <div class="actions"> <%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %> <%= submit_tag "Decline", name: 'decline', :class => 'bu...
<h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4> <%= form_tag do |f| %> <div class="actions"> - <%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %> ? ...
4
0.4
2
2
01df39487a15003dd9b8c3d868ca6016014d5576
app/assets/stylesheets/application.scss
app/assets/stylesheets/application.scss
$govuk-compatibility-govuktemplate: true; $govuk-use-legacy-palette: false; @import 'govuk_publishing_components/govuk_frontend_support'; @import 'govuk_publishing_components/component_support'; @import 'govuk_publishing_components/components/breadcrumbs'; @import 'govuk_publishing_components/components/contextual-sid...
$govuk-compatibility-govuktemplate: true; $govuk-use-legacy-palette: false; @import 'govuk_publishing_components/govuk_frontend_support'; @import 'govuk_publishing_components/component_support'; @import 'govuk_publishing_components/components/breadcrumbs'; @import 'govuk_publishing_components/components/button'; // no...
Add button sass to calendars
Add button sass to calendars - buttons aren't used in the application, but they do appear in the cookie banner, and are presently unstyled - we might need a better fix for this as buttons don't appear in the suggested sass for this application, so there is a risk they could be removed accidentally, but I've added a co...
SCSS
mit
alphagov/calendars,alphagov/calendars,alphagov/calendars,alphagov/calendars
scss
## Code Before: $govuk-compatibility-govuktemplate: true; $govuk-use-legacy-palette: false; @import 'govuk_publishing_components/govuk_frontend_support'; @import 'govuk_publishing_components/component_support'; @import 'govuk_publishing_components/components/breadcrumbs'; @import 'govuk_publishing_components/component...
$govuk-compatibility-govuktemplate: true; $govuk-use-legacy-palette: false; @import 'govuk_publishing_components/govuk_frontend_support'; @import 'govuk_publishing_components/component_support'; @import 'govuk_publishing_components/components/breadcrumbs'; + @import 'govuk_publishing_components/components/...
1
0.041667
1
0
c1aa8d11fe2f8f3f077d58c98fdac4251794e324
lib/rusen/middleware/rusen_rack.rb
lib/rusen/middleware/rusen_rack.rb
require 'rusen/settings' require 'rusen/notifier' require 'rusen/notification' module Rusen module Middleware class RusenRack def initialize(app, settings = {}) @app = app @rusen_settings = Settings.new @rusen_settings.outputs = settings[:outputs] @rusen_settings.section...
require 'rusen/settings' require 'rusen/notifier' require 'rusen/notification' module Rusen module Middleware class RusenRack def initialize(app, settings = {}) @app = app if settings.is_a?(::Rusen::Settings) @rusen_settings = settings else @rusen_settings = S...
Allow sending an instance of Rusen::Settings to the middleware
Allow sending an instance of Rusen::Settings to the middleware
Ruby
mit
Moove-it/rusen,Moove-it/rusen,elpic/rusen,elpic/rusen
ruby
## Code Before: require 'rusen/settings' require 'rusen/notifier' require 'rusen/notification' module Rusen module Middleware class RusenRack def initialize(app, settings = {}) @app = app @rusen_settings = Settings.new @rusen_settings.outputs = settings[:outputs] @rusen_...
require 'rusen/settings' require 'rusen/notifier' require 'rusen/notification' module Rusen module Middleware class RusenRack def initialize(app, settings = {}) @app = app + if settings.is_a?(::Rusen::Settings) + @rusen_settings = settings + else...
20
0.47619
12
8
e2ecc6968eb4108a3c15d16898e60e0962eba9f8
invocations/checks.py
invocations/checks.py
from __future__ import unicode_literals from invoke import task @task(name='blacken', iterable=['folder']) def blacken(c, line_length=79, folder=None): """Run black on the current source""" default_folders = ["."] configured_folders = c.config.get("blacken", {}).get("folders", default_folders) folde...
from __future__ import unicode_literals from invoke import task @task(name="blacken", iterable=["folder"]) def blacken(c, line_length=79, folder=None, check=False): """Run black on the current source""" default_folders = ["."] configured_folders = c.config.get("blacken", {}).get( "folders", def...
Add --check support to the invocations.blacken task
Add --check support to the invocations.blacken task
Python
bsd-2-clause
pyinvoke/invocations
python
## Code Before: from __future__ import unicode_literals from invoke import task @task(name='blacken', iterable=['folder']) def blacken(c, line_length=79, folder=None): """Run black on the current source""" default_folders = ["."] configured_folders = c.config.get("blacken", {}).get("folders", default_fo...
from __future__ import unicode_literals from invoke import task + - @task(name='blacken', iterable=['folder']) ? ^ ^ ^ ^ + @task(name="blacken", iterable=["folder"]) ? ^ ^ ^ ^ - def blacken(c, line_length=79, folder=None): + def blacken(c...
12
0.666667
9
3
58dc21fc45023660d4f4103ed0e40892514f8f90
201-encrypt-create-new-vm-gallery-image/README.md
201-encrypt-create-new-vm-gallery-image/README.md
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank"> <img src="http://azuredeploy.net/deploybutton.png"/> </a> This template creates a ne...
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank"> <img src="http://azuredeploy.net/deploybutton.png"/> </a> This template creates a ne...
Update based upon Kay's feedback
Update based upon Kay's feedback
Markdown
mit
satyarapelly/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,lizzha/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,CharlPels/azure-quickstart-templates,arroyc/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,johndowns/azure-quickstart-templates,arsenvlad/azu...
markdown
## Code Before: <a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank"> <img src="http://azuredeploy.net/deploybutton.png"/> </a> This templ...
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank"> <img src="http://azuredeploy.net/deploybutton.png"/> </a> - This template ...
2
0.333333
1
1
e35c32aa14681689c905ab62a4fdc390f4d14c00
vim/config/languages/javascript.vim
vim/config/languages/javascript.vim
au FileType javascript set tabstop=2
au FileType javascript set shiftwidth=2 au FileType javascript set softtabstop=2 au FileType javascript set tabstop=2 au FileType javascript set expandtab
Fix tabstop / shiftwidth for JavaScript
Fix tabstop / shiftwidth for JavaScript
VimL
mit
sebdah/vim-ide
viml
## Code Before: au FileType javascript set tabstop=2 ## Instruction: Fix tabstop / shiftwidth for JavaScript ## Code After: au FileType javascript set shiftwidth=2 au FileType javascript set softtabstop=2 au FileType javascript set tabstop=2 au FileType javascript set expandtab
+ au FileType javascript set shiftwidth=2 + au FileType javascript set softtabstop=2 au FileType javascript set tabstop=2 + au FileType javascript set expandtab
3
3
3
0
b0a1e47a4bc4391da711ea230f6577d3d7e9ccff
project.clj
project.clj
(defproject ring "1.8.0" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[ring/ring-core "1.8.0"] [ring/ring-devel "1.8.0"] [ri...
(defproject ring "1.8.0" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[ring/ring-core "1.8.0"] [ring/ring-devel "1.8.0"] [ri...
Add aliases for testing and benchmarking
Add aliases for testing and benchmarking
Clojure
mit
ring-clojure/ring,ring-clojure/ring
clojure
## Code Before: (defproject ring "1.8.0" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[ring/ring-core "1.8.0"] [ring/ring-devel "1.8.0"] ...
(defproject ring "1.8.0" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[ring/ring-core "1.8.0"] [ring/ring-devel "1.8.0"] ...
7
0.333333
5
2
72d96423109937690f6189aa912cfbbfb472fd1e
frontend/vite.config.ts
frontend/vite.config.ts
import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } } })
import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, server: { watch: { ...
Use polling for HMR because SSHFS does not send iNotify events
Use polling for HMR because SSHFS does not send iNotify events Signed-off-by: Aurélien Bompard <bceb368e7f2cb351af47298f32034f0587bbe4a6@bompard.org>
TypeScript
lgpl-2.1
fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn
typescript
## Code Before: import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } } }) ## Instr...
import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } + }, +...
5
0.357143
5
0
02f987243d5493188091b38a040ef10d1ba6ab06
config/nvim/config/fuzzy.vim
config/nvim/config/fuzzy.vim
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)$', \ 'file': '\v\.(exe|so|dll)$', \ } if executable('rg') set grepprg=rg\ --color...
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_extensions = ['tag', 'buffertag'] let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)$', \ 'file': '\v\.(exe|so|dll)$', \ }...
Enable tag search using leader-space
Enable tag search using leader-space
VimL
mit
owickstrom/dotfiles
viml
## Code Before: set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)$', \ 'file': '\v\.(exe|so|dll)$', \ } if executable('rg') set gre...
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows + + let g:ctrlp_extensions = ['tag', 'buffertag'] let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn)$', \ 'file': '\v\.(ex...
4
0.285714
4
0
a049ef306a4728b32a2b46de0d6d9939e4c9456c
packages/hs/hspec2.yaml
packages/hs/hspec2.yaml
homepage: http://hspec.github.io/ changelog-type: '' hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f test-bench-deps: {} maintainer: Simon Hengel <sol@typeful.net> synopsis: Alpha version of Hspec 2.0 changelog: '' basic-deps: base: ==4.* hspec: ==2.* hspec-discover: ==2.* all-versions: - 0...
homepage: http://hspec.github.io/ changelog-type: '' hash: 7200bea6db0946b6e101646426710aa22e4a2998c2b128d340f0c4f95ee017e0 test-bench-deps: {} maintainer: Simon Hengel <sol@typeful.net> synopsis: Alpha version of Hspec 2.0 changelog: '' basic-deps: base: ==4.* hspec: ! '>=2 && <2.6' hspec-discover: ==2.* all-ver...
Update from Hackage at 2019-05-20T20:46:49Z
Update from Hackage at 2019-05-20T20:46:49Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://hspec.github.io/ changelog-type: '' hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f test-bench-deps: {} maintainer: Simon Hengel <sol@typeful.net> synopsis: Alpha version of Hspec 2.0 changelog: '' basic-deps: base: ==4.* hspec: ==2.* hspec-discover: ==2.* a...
homepage: http://hspec.github.io/ changelog-type: '' - hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f + hash: 7200bea6db0946b6e101646426710aa22e4a2998c2b128d340f0c4f95ee017e0 test-bench-deps: {} maintainer: Simon Hengel <sol@typeful.net> synopsis: Alpha version of Hspec 2.0 changelog...
11
0.282051
5
6
f26c253480973261f7506f705078be7d89c1fada
spec/spec_helper.rb
spec/spec_helper.rb
require 'cassandra/mapper' TEST_KEYSPACE = 'test_mapper' # create testing keyspace if needed cassandra = Cassandra.new('system') unless cassandra.keyspaces.include? TEST_KEYSPACE cassandra.add_keyspace Cassandra::Keyspace.new \ name: TEST_KEYSPACE, strategy_options: { 'replication_factor' => '1' }, cf_d...
require 'cassandra/mapper' TEST_KEYSPACE = 'test_mapper' # create testing keyspace if needed cassandra = Cassandra.new('system') unless cassandra.keyspaces.include? TEST_KEYSPACE cassandra.add_keyspace Cassandra::Keyspace.new \ name: TEST_KEYSPACE, strategy_class: 'SimpleStrategy', strategy_options: { '...
Add missing declaration to create testing keyspace
Add missing declaration to create testing keyspace
Ruby
mit
brainopia/cassandra-mapper
ruby
## Code Before: require 'cassandra/mapper' TEST_KEYSPACE = 'test_mapper' # create testing keyspace if needed cassandra = Cassandra.new('system') unless cassandra.keyspaces.include? TEST_KEYSPACE cassandra.add_keyspace Cassandra::Keyspace.new \ name: TEST_KEYSPACE, strategy_options: { 'replication_factor' =>...
require 'cassandra/mapper' TEST_KEYSPACE = 'test_mapper' # create testing keyspace if needed cassandra = Cassandra.new('system') unless cassandra.keyspaces.include? TEST_KEYSPACE cassandra.add_keyspace Cassandra::Keyspace.new \ name: TEST_KEYSPACE, + strategy_class: 'SimpleStrategy', ...
1
0.083333
1
0
793cecbc26f5f68c47b2a69aea4c769eb151881b
README.md
README.md
ECoG_preproc ============ Wagner Lab preprocessing pipeline for ECoG data. Requirements --------------------------- - Matlab - cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
katja ============ Wagner Lab preprocessing pipeline for ECoG data. Requirements --------------------------- - Matlab - cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
Update readme title to repo name
Update readme title to repo name
Markdown
bsd-3-clause
sgagnon/katja
markdown
## Code Before: ECoG_preproc ============ Wagner Lab preprocessing pipeline for ECoG data. Requirements --------------------------- - Matlab - cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima) ## Instruction: Update readme title to repo name ## Code After: katja ============ Wagner Lab prepro...
- ECoG_preproc + katja ============ Wagner Lab preprocessing pipeline for ECoG data. Requirements --------------------------- - Matlab - cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
2
0.222222
1
1
5970b784543cfedc8aa09dd405ab79d50e327bdb
index.js
index.js
'use strict'; var commentMarker = require('mdast-comment-marker'); module.exports = commentconfig; /* Modify `processor` to read configuration from comments. */ function commentconfig() { var Parser = this.Parser; var Compiler = this.Compiler; var block = Parser && Parser.prototype.blockTokenizers; var inlin...
'use strict'; var commentMarker = require('mdast-comment-marker'); module.exports = commentconfig; /* Modify `processor` to read configuration from comments. */ function commentconfig() { var proto = this.Parser && this.Parser.prototype; var Compiler = this.Compiler; var block = proto && proto.blockTokenizers;...
Fix for non-remark parsers or compilers
Fix for non-remark parsers or compilers
JavaScript
mit
wooorm/mdast-comment-config,wooorm/remark-comment-config
javascript
## Code Before: 'use strict'; var commentMarker = require('mdast-comment-marker'); module.exports = commentconfig; /* Modify `processor` to read configuration from comments. */ function commentconfig() { var Parser = this.Parser; var Compiler = this.Compiler; var block = Parser && Parser.prototype.blockTokeniz...
'use strict'; var commentMarker = require('mdast-comment-marker'); module.exports = commentconfig; /* Modify `processor` to read configuration from comments. */ function commentconfig() { - var Parser = this.Parser; + var proto = this.Parser && this.Parser.prototype; var Compiler = this.Compi...
8
0.16
4
4
818af599e9fa538fa629e24d1a49b659243e00cc
app/src/main/java/com/github/pockethub/android/ui/item/news/MemberEventItem.kt
app/src/main/java/com/github/pockethub/android/ui/item/news/MemberEventItem.kt
package com.github.pockethub.android.ui.item.news import android.view.View import androidx.core.text.bold import androidx.core.text.buildSpannedString import com.github.pockethub.android.ui.view.OcticonTextView import com.github.pockethub.android.util.AvatarLoader import com.meisolsson.githubsdk.model.GitHubEvent impo...
package com.github.pockethub.android.ui.item.news import android.view.View import androidx.core.text.buildSpannedString import com.github.pockethub.android.ui.view.OcticonTextView import com.github.pockethub.android.util.AvatarLoader import com.meisolsson.githubsdk.model.GitHubEvent import com.meisolsson.githubsdk.mod...
Make person made collaborator in news title clickable
Make person made collaborator in news title clickable
Kotlin
apache-2.0
PKRoma/PocketHub,pockethub/PocketHub,pockethub/PocketHub,PKRoma/PocketHub,pockethub/PocketHub,Meisolsson/PocketHub,PKRoma/github-android,PKRoma/PocketHub,Meisolsson/PocketHub,pockethub/PocketHub,forkhubs/android,forkhubs/android,PKRoma/github-android,Meisolsson/PocketHub,PKRoma/github-android,forkhubs/android,Meisolsso...
kotlin
## Code Before: package com.github.pockethub.android.ui.item.news import android.view.View import androidx.core.text.bold import androidx.core.text.buildSpannedString import com.github.pockethub.android.ui.view.OcticonTextView import com.github.pockethub.android.util.AvatarLoader import com.meisolsson.githubsdk.model....
package com.github.pockethub.android.ui.item.news import android.view.View - import androidx.core.text.bold import androidx.core.text.buildSpannedString import com.github.pockethub.android.ui.view.OcticonTextView import com.github.pockethub.android.util.AvatarLoader import com.meisolsson.githubsdk.model....
5
0.147059
1
4
7660b601d068652487cc97a704ae54acc33c6889
setup.py
setup.py
from distutils.core import setup setup(name='hermes-gui', version='0.1', packages=[ 'acme', 'acme.acmelab', 'acme.core', 'acme.core.views', ], package_data={ 'acme.acmelab': ['images/*'], 'acme.core': ['images/*.png'], } ...
from distutils.core import setup setup(name='hermes-gui', version='0.1', packages=[ 'acme', 'acme.acmelab', 'acme.core', 'acme.core.views', ], package_data={ 'acme.acmelab': ['images/*'], 'acme.core': ['images/*.png'], }, ...
Install the hermes-gui.py executable too
Install the hermes-gui.py executable too
Python
bsd-3-clause
certik/hermes-gui
python
## Code Before: from distutils.core import setup setup(name='hermes-gui', version='0.1', packages=[ 'acme', 'acme.acmelab', 'acme.core', 'acme.core.views', ], package_data={ 'acme.acmelab': ['images/*'], 'acme.core': ['images/*.png'...
from distutils.core import setup setup(name='hermes-gui', version='0.1', packages=[ 'acme', 'acme.acmelab', 'acme.core', 'acme.core.views', ], package_data={ 'acme.acmelab': ['images/*'], 'acme.core': ['image...
3
0.214286
2
1
3cc1cb9894fdb1b88a84ad8315669ad2f0858fdb
cloud_logging.py
cloud_logging.py
import google.cloud.logging as glog import logging import contextlib import io import sys import os LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '') def configure(project=LOGGING_PROJECT): if not project: print('!! Error: The $LOGGING_PROJECT enviroment ' 'variable is required in ord...
import google.cloud.logging as glog import logging import contextlib import io import sys import os LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '') def configure(project=LOGGING_PROJECT): if not project: sys.stderr.write('!! Error: The $LOGGING_PROJECT enviroment ' 'variable is requ...
Change some errors to go to stderr.
Change some errors to go to stderr. These non-fatal errors violated GTP protocol.
Python
apache-2.0
tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo
python
## Code Before: import google.cloud.logging as glog import logging import contextlib import io import sys import os LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '') def configure(project=LOGGING_PROJECT): if not project: print('!! Error: The $LOGGING_PROJECT enviroment ' 'variable is...
import google.cloud.logging as glog import logging import contextlib import io import sys import os LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '') def configure(project=LOGGING_PROJECT): if not project: - print('!! Error: The $LOGGING_PROJECT enviroment ' ? ^ - ...
6
0.24
3
3
b9897060092575a43baedb12ddc5f0d8a684b152
app/views/people/new.html.erb
app/views/people/new.html.erb
<% content_for :sidebar do %><% end %> <h2><%= t('people.new_person') %></h2> <%= error_messages_for(@person) %> <%= render partial: 'form' %>
<% content_for :sidebar do %><!-- placeholder --><% end %> <h2><%= t('people.new_person') %></h2> <%= error_messages_for(@person) %> <%= render partial: 'form' %>
Put something in the sidebar to make it show.
Put something in the sidebar to make it show.
HTML+ERB
agpl-3.0
nerdnorth/remote-workers-app,pgmcgee/onebody,cessien/onebody,brunoocasali/onebody,hooray4me/onebody,AVee/onebody,davidleach/onebody,tochman/onebody,calsaviour/onebody,tmecklem/onebody,ferdinandrosario/onebody,brunoocasali/onebody,nerdnorth/remote-workers-app,kevinjqiu/onebody,Capriatto/onebody,dorman/onebody,seethemhig...
html+erb
## Code Before: <% content_for :sidebar do %><% end %> <h2><%= t('people.new_person') %></h2> <%= error_messages_for(@person) %> <%= render partial: 'form' %> ## Instruction: Put something in the sidebar to make it show. ## Code After: <% content_for :sidebar do %><!-- placeholder --><% end %> <h2><%= t('people.ne...
- <% content_for :sidebar do %><% end %> + <% content_for :sidebar do %><!-- placeholder --><% end %> ? ++++++++++++++++++++ <h2><%= t('people.new_person') %></h2> <%= error_messages_for(@person) %> <%= render partial: 'form' %>
2
0.333333
1
1
7a50f7385465757b933241b491599b0208eeb472
_drafts/clojure-app-engine.md
_drafts/clojure-app-engine.md
guide: http://lambda-startup.com/developing-clojure-on-app-engine/ errors: Compilation failed: No method in multimethod 'print-dup' for dispatch value: class org.sonatype.aether.repository.RemoteRepository upgrade lein-ring to 0.9.7 No API environment is registered for this thread don't use datastor...
guide: http://lambda-startup.com/developing-clojure-on-app-engine/ errors: Compilation failed: No method in multimethod 'print-dup' for dispatch value: class org.sonatype.aether.repository.RemoteRepository upgrade lein-ring to 0.9.7 No API environment is registered for this thread don't use datastor...
Document dev profile with uberwars
Document dev profile with uberwars
Markdown
mit
jeaye/jeaye.github.io,jeaye/jeaye.github.io
markdown
## Code Before: guide: http://lambda-startup.com/developing-clojure-on-app-engine/ errors: Compilation failed: No method in multimethod 'print-dup' for dispatch value: class org.sonatype.aether.repository.RemoteRepository upgrade lein-ring to 0.9.7 No API environment is registered for this thread do...
guide: http://lambda-startup.com/developing-clojure-on-app-engine/ errors: Compilation failed: No method in multimethod 'print-dup' for dispatch value: class org.sonatype.aether.repository.RemoteRepository upgrade lein-ring to 0.9.7 No API environment is registered for this thread ...
4
0.333333
4
0
2406abdc7ee5087a752fe9e1d3657fdbbe9f29af
app/controllers/admin/github_repositories_controller.rb
app/controllers/admin/github_repositories_controller.rb
class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) redirect_to github_r...
class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) @github_repository.u...
Update github repos after being edited in the admin
Update github repos after being edited in the admin
Ruby
agpl-3.0
samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,samjacobclift/libraries.io,abrophy/libraries.io
ruby
## Code Before: class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) redi...
class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) + @g...
1
0.035714
1
0
5d971a1589b1efa143944d0b922c4eea1fc5bc64
samples/react-search-refiners/src/webparts/searchResults/components/Layouts/SearchResultsTemplate.scss
samples/react-search-refiners/src/webparts/searchResults/components/Layouts/SearchResultsTemplate.scss
.template_root { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; .template_defaultList { .template...
.searchWp { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; @import '~@microsoft/sp-office-ui-fabric-core/d...
Include SPFx ouif styles as they render the correct colors. Moved import to root of wp as template styles can change.
Include SPFx ouif styles as they render the correct colors. Moved import to root of wp as template styles can change.
SCSS
mit
SharePoint/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,rgarita/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,rgarita/sp-dev-fx-webparts,vman/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,SharePoint/sp-dev-fx-webparts,vman/sp-dev-fx-webparts
scss
## Code Before: .template_root { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; .template_defaultList { ...
- .template_root { + .searchWp { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; + @import '~@micro...
12
0.218182
3
9
78d3b8eb8f08e8bf5090db6545e70b680e847bea
src/styles/base.css
src/styles/base.css
p { margin: 0; } button { background-color: transparent; border: 0 none; padding: 0; } button:focus, button:active { outline: 0 none; }
:root { overflow-x: hidden; } p { margin: 0; } button { background-color: transparent; border: 0 none; padding: 0; } button:focus, button:active { outline: 0 none; }
Fix sidebar causing overflow on root element
Fix sidebar causing overflow on root element
CSS
mit
quiaro/chunches,quiaro/chunches
css
## Code Before: p { margin: 0; } button { background-color: transparent; border: 0 none; padding: 0; } button:focus, button:active { outline: 0 none; } ## Instruction: Fix sidebar causing overflow on root element ## Code After: :root { overflow-x: hidden; } p { margin: 0; } button { background-col...
+ :root { + overflow-x: hidden; + } + p { margin: 0; } button { background-color: transparent; border: 0 none; padding: 0; } button:focus, button:active { outline: 0 none; }
4
0.307692
4
0
8b9e6db7d537419e7b3e2036e0e197d6f4e8cd4e
src/Laravel4ServiceProvider.php
src/Laravel4ServiceProvider.php
<?php namespace Michaeljennings\Carpenter; class Laravel4ServiceProvider extends CarpenterServiceProvider { /** * Bootstrap the application events. * * @return void * @codeCoverageIgnore */ public function boot() { $this->package('michaeljennings/carpenter', 'carpenter', r...
<?php namespace Michaeljennings\Carpenter; class Laravel4ServiceProvider extends CarpenterServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application events. * * @return void ...
Update the laravel 4 service provider so it is not deferred
Update the laravel 4 service provider so it is not deferred This fixes issues with the config not loading correctly for laravel 4.
PHP
mit
michaeljennings/carpenter,michaeljennings/carpenter,michaeljennings/carpenter
php
## Code Before: <?php namespace Michaeljennings\Carpenter; class Laravel4ServiceProvider extends CarpenterServiceProvider { /** * Bootstrap the application events. * * @return void * @codeCoverageIgnore */ public function boot() { $this->package('michaeljennings/carpenter'...
<?php namespace Michaeljennings\Carpenter; class Laravel4ServiceProvider extends CarpenterServiceProvider { + /** + * Indicates if loading of the provider is deferred. + * + * @var bool + */ + protected $defer = false; + /** * Bootstrap the application events....
7
0.194444
7
0
22f3d6d6fdc3e5f07ead782828b406c9a27d0199
UDPSender.py
UDPSender.py
from can import Listener import socket class UDPSender(Listener): dataConvert = {"0x600": {"String":"RPM:", "Slot":0, "Conversion":1}, "0x601": {"String":"OIL:", "Slot":2, "Convers...
from can import Listener from socket import socket class UDPSender(Listener): dataConvert = {"0x600": {"String":"RPM:", "Slot":0, "Conversion":1}, "0x601": {"String":"OIL:", "Slot":2, ...
Change of import of libraries.
Change of import of libraries. Tried to fix issue displayed below. [root@alarm BeagleDash]# python3.3 CANtoUDP.py Traceback (most recent call last): File "CANtoUDP.py", line 10, in <module> listeners = [csv, UDPSender()] TypeError: 'module' object is not callable Exception AttributeError: "'super' object has no attri...
Python
mit
TAURacing/BeagleDash
python
## Code Before: from can import Listener import socket class UDPSender(Listener): dataConvert = {"0x600": {"String":"RPM:", "Slot":0, "Conversion":1}, "0x601": {"String":"OIL:", "Slot":2, ...
from can import Listener - import socket + from socket import socket class UDPSender(Listener): dataConvert = {"0x600": {"String":"RPM:", "Slot":0, "Conversion":1}, "0x601": {"String":"OIL:", "...
2
0.057143
1
1
bfb0a7d0cb257bec940f9725e26a744c927fc40a
libravatar/templates/public/home.html
libravatar/templates/public/home.html
{% extends 'base.html' %} {% block title %}Libravatar{% endblock title %} {% block content %} <p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p> <p>You are most likely looking for one of these pages:</p> <ul> {% if not user.is_authenticated %} <li><a href="{% url djang...
{% extends 'base.html' %} {% block title %}Libravatar{% endblock title %} {% block content %} <p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p> <p>You are most likely looking for one of these pages:</p> <ul> {% if not user.is_authenticated %} <li><a href="{% url djang...
Check tool now available publicly.
Check tool now available publicly.
HTML
agpl-3.0
libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar
html
## Code Before: {% extends 'base.html' %} {% block title %}Libravatar{% endblock title %} {% block content %} <p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p> <p>You are most likely looking for one of these pages:</p> <ul> {% if not user.is_authenticated %} <li><a hr...
{% extends 'base.html' %} {% block title %}Libravatar{% endblock title %} {% block content %} <p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p> <p>You are most likely looking for one of these pages:</p> <ul> {% if not user.is_authenticated %} <li...
2
0.1
1
1
6cd2f4f1f2f4a4dca74fcfd6484278cc90e6f77a
tests/test_security_object.py
tests/test_security_object.py
from unittest import TestCase from zipline.assets._securities import Security class TestSecurityRichCmp(TestCase): def test_lt(self): self.assertTrue(Security(3) < Security(4)) self.assertFalse(Security(4) < Security(4)) self.assertFalse(Security(5) < Security(4)) def test_le(self): ...
import sys from unittest import TestCase from zipline.assets._securities import Security class TestSecurityRichCmp(TestCase): def test_lt(self): self.assertTrue(Security(3) < Security(4)) self.assertFalse(Security(4) < Security(4)) self.assertFalse(Security(5) < Security(4)) def test_...
Update Security class unit tests for Python3 compatibility
TEST: Update Security class unit tests for Python3 compatibility
Python
apache-2.0
sketchytechky/zipline,stkubr/zipline,wubr2000/zipline,michaeljohnbennett/zipline,jimgoo/zipline-fork,kmather73/zipline,morrisonwudi/zipline,cmorgan/zipline,keir-rex/zipline,grundgruen/zipline,umuzungu/zipline,zhoulingjun/zipline,jordancheah/zipline,florentchandelier/zipline,nborggren/zipline,joequant/zipline,ronalcc/zi...
python
## Code Before: from unittest import TestCase from zipline.assets._securities import Security class TestSecurityRichCmp(TestCase): def test_lt(self): self.assertTrue(Security(3) < Security(4)) self.assertFalse(Security(4) < Security(4)) self.assertFalse(Security(5) < Security(4)) def ...
+ import sys from unittest import TestCase from zipline.assets._securities import Security class TestSecurityRichCmp(TestCase): def test_lt(self): self.assertTrue(Security(3) < Security(4)) self.assertFalse(Security(4) < Security(4)) self.assertFalse(Security(5) < Securit...
11
0.333333
9
2
ea180a007c1a5bfaeb56e6b223610876b0619e63
webmaster_verification/views.py
webmaster_verification/views.py
import logging logger = logging.getLogger(__name__) from django.http import Http404 from django.views.generic import TemplateView import settings class VerificationView(TemplateView): """ This simply adds the verification key to the view context and makes sure we return a 404 if the key wasn't set for t...
import logging logger = logging.getLogger(__name__) from django.http import Http404 from django.views.generic import TemplateView import settings class VerificationView(TemplateView): """ This simply adds the verification key to the view context and makes sure we return a 404 if the key wasn't set for t...
Use proper content-type for all files
Use proper content-type for all files
Python
bsd-3-clause
nkuttler/django-webmaster-verification,nkuttler/django-webmaster-verification
python
## Code Before: import logging logger = logging.getLogger(__name__) from django.http import Http404 from django.views.generic import TemplateView import settings class VerificationView(TemplateView): """ This simply adds the verification key to the view context and makes sure we return a 404 if the key ...
import logging logger = logging.getLogger(__name__) from django.http import Http404 from django.views.generic import TemplateView import settings class VerificationView(TemplateView): """ This simply adds the verification key to the view context and makes sure we return a 404 i...
27
0.692308
25
2
454bcd3c6b943a127607d396f15791ee808c8e00
mingle.srv/resolve.js
mingle.srv/resolve.js
var cadence = require('cadence') var logger = require('prolific.logger').createLogger('mingle.srv') var sprintf = require('sprintf-js').sprintf module.exports = cadence(function (async, dns, name, format) { async([function () { dns.resolve(name, 'SRV', async()) }, function (error) { logger.erro...
var cadence = require('cadence') var logger = require('prolific.logger').createLogger('mingle.srv') var sprintf = require('sprintf-js').sprintf module.exports = cadence(function (async, dns, name, format) { async([function () { dns.resolve(name, 'SRV', async()) }, function (error) { logger.erro...
Fix break caused by Cadence changes.
Fix break caused by Cadence changes.
JavaScript
mit
bigeasy/mingle
javascript
## Code Before: var cadence = require('cadence') var logger = require('prolific.logger').createLogger('mingle.srv') var sprintf = require('sprintf-js').sprintf module.exports = cadence(function (async, dns, name, format) { async([function () { dns.resolve(name, 'SRV', async()) }, function (error) { ...
var cadence = require('cadence') var logger = require('prolific.logger').createLogger('mingle.srv') var sprintf = require('sprintf-js').sprintf module.exports = cadence(function (async, dns, name, format) { async([function () { dns.resolve(name, 'SRV', async()) }, function (error) { ...
8
0.32
4
4
09908c1a343d235171d36794c2e3d5868b4d1305
Casks/truecrypt.rb
Casks/truecrypt.rb
class Truecrypt < Cask url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg' homepage 'http://truecrypt.org/' version '7.2' sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e' install 'TrueCrypt 7.2.mpkg' caveats do files_in_usr_local <<-EOS.un...
class Truecrypt < Cask url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg' homepage 'http://truecrypt.org/' version '7.2' sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e' install 'TrueCrypt 7.2.mpkg' caveats do files_in_usr_local <<-EOS.un...
Add uninstall stanza for TrueCrypt
Add uninstall stanza for TrueCrypt
Ruby
bsd-2-clause
markhuber/homebrew-cask,puffdad/homebrew-cask,leipert/homebrew-cask,sgnh/homebrew-cask,fwiesel/homebrew-cask,d/homebrew-cask,stephenwade/homebrew-cask,joshka/homebrew-cask,paour/homebrew-cask,AnastasiaSulyagina/homebrew-cask,fwiesel/homebrew-cask,christophermanning/homebrew-cask,jspahrsummers/homebrew-cask,haha1903/hom...
ruby
## Code Before: class Truecrypt < Cask url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg' homepage 'http://truecrypt.org/' version '7.2' sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e' install 'TrueCrypt 7.2.mpkg' caveats do files_in_usr_loc...
class Truecrypt < Cask url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg' homepage 'http://truecrypt.org/' version '7.2' sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e' install 'TrueCrypt 7.2.mpkg' caveats do files_in_usr_loc...
1
0.071429
1
0
c072cb901965b82b1e0fbfcb85d74d471ebe4cad
test/Ulrichsg/Getopt/ArgumentTest.php
test/Ulrichsg/Getopt/ArgumentTest.php
<?php namespace Ulrichsg\Getopt; class ArgumentTest extends \PHPUnit_Framework_TestCase { public function testConstructor() { $argument1 = new Argument(); $argument2 = new Argument(10); $this->assertFalse($argument1->hasDefaultValue()); $this->assertEquals(10, $argument2->getDe...
<?php namespace Ulrichsg\Getopt; class ArgumentTest extends \PHPUnit_Framework_TestCase { public function testConstructor() { $argument1 = new Argument(); $argument2 = new Argument(10); $this->assertFalse($argument1->hasDefaultValue()); $this->assertEquals(10, $argument2->getDe...
Fix compatibility with PHP 5.3
Fix compatibility with PHP 5.3 Using inside of anonymous functions is not supported in PHP 5.3 -> Injected reference to test object into anonymous function (testValidates)
PHP
mit
mbaynton/getopt-php,xinc-develop/xinc-getopt,ulrichsg/getopt-php,getopt-php/getopt-php
php
## Code Before: <?php namespace Ulrichsg\Getopt; class ArgumentTest extends \PHPUnit_Framework_TestCase { public function testConstructor() { $argument1 = new Argument(); $argument2 = new Argument(10); $this->assertFalse($argument1->hasDefaultValue()); $this->assertEquals(10, $...
<?php namespace Ulrichsg\Getopt; class ArgumentTest extends \PHPUnit_Framework_TestCase { public function testConstructor() { $argument1 = new Argument(); $argument2 = new Argument(10); $this->assertFalse($argument1->hasDefaultValue()); $this->assertEqua...
3
0.065217
2
1
eccea853092cb1d42fdb98d439dd97674ad8a2b0
pip-dep/requirements.txt
pip-dep/requirements.txt
openmined.threepio==0.2.0 aiortc==0.9.28 dill~=0.3.1 flask_socketio~=4.2.1 Flask~=1.1.1 git+https://github.com/facebookresearch/CrypTen.git#egg=crypten importlib-resources~=1.5.0 lz4~=3.0.2 msgpack~=1.0.0 numpy~=1.18.1 phe~=1.4.0 Pillow~=6.2.2 psutil==5.7.0 requests~=2.22.0 RestrictedPython~=5.0 requests-toolbelt==0.9....
openmined.threepio==0.2.0 aiortc==0.9.28 dill~=0.3.1 flask_socketio~=4.2.1 Flask~=1.1.1 git+https://github.com/facebookresearch/CrypTen.git@cdecc8de1514d7f36a5268a50c714caba5e57318#egg=crypten importlib-resources~=1.5.0 lz4~=3.0.2 msgpack~=1.0.0 numpy~=1.18.1 phe~=1.4.0 Pillow~=6.2.2 psutil==5.7.0 requests~=2.22.0 Rest...
Fix Crypten to latest commit
Fix Crypten to latest commit
Text
apache-2.0
OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft
text
## Code Before: openmined.threepio==0.2.0 aiortc==0.9.28 dill~=0.3.1 flask_socketio~=4.2.1 Flask~=1.1.1 git+https://github.com/facebookresearch/CrypTen.git#egg=crypten importlib-resources~=1.5.0 lz4~=3.0.2 msgpack~=1.0.0 numpy~=1.18.1 phe~=1.4.0 Pillow~=6.2.2 psutil==5.7.0 requests~=2.22.0 RestrictedPython~=5.0 request...
openmined.threepio==0.2.0 aiortc==0.9.28 dill~=0.3.1 flask_socketio~=4.2.1 Flask~=1.1.1 - git+https://github.com/facebookresearch/CrypTen.git#egg=crypten + git+https://github.com/facebookresearch/CrypTen.git@cdecc8de1514d7f36a5268a50c714caba5e57318#egg=crypten ? ...
2
0.08
1
1
cbee7a559e4f8870638a4d78798aa1a1dbd023ec
.travis.yml
.travis.yml
language: php php: - '7.0' before_script: - composer install script: - mkdir -p build/logs - vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml - vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional after_success: - travis_retry php bin/coveralls
language: php php: - '7.0' - '7.1' - '7.2' before_script: - composer install script: - mkdir -p build/logs - vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml - vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional after_success: - travis_retry php...
Add PHP 7.1 and 7.2 to Travis config
Add PHP 7.1 and 7.2 to Travis config
YAML
mit
fintem/MQNotificationBundle
yaml
## Code Before: language: php php: - '7.0' before_script: - composer install script: - mkdir -p build/logs - vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml - vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional after_success: - travis_retry php bin/cov...
language: php php: - '7.0' + - '7.1' + - '7.2' before_script: - composer install script: - mkdir -p build/logs - vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml - vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional after_succe...
2
0.181818
2
0
87bb8305e7c02abf26d2155e499afa25a17ae975
lib/github_cli/commands/forks.rb
lib/github_cli/commands/forks.rb
module GithubCLI class Commands::Forks < Command namespace :fork desc 'list <user> <repo>', 'Lists forks' long_desc <<-DESC List repository forks Parameters sort - newest, oldest, watchers, default: newest DESC method_option :sort, :type => :string, :aliases => ["-s"], ...
module GithubCLI class Commands::Forks < Command namespace :fork option :sort, :type => :string, :aliases => ["-s"], :banner => '<sort-category>', :desc => 'Sort by newest, oldest or watchers' desc 'list <user> <repo>', 'Lists forks' long_desc <<-DESC List repository for...
Update fork commands to take options.
Update fork commands to take options.
Ruby
mit
pjump/github_cli,piotrmurach/github_cli,ecliptik/github_cli,peter-murach/github_cli,pjump/github_cli,ecliptik/github_cli,peter-murach/github_cli
ruby
## Code Before: module GithubCLI class Commands::Forks < Command namespace :fork desc 'list <user> <repo>', 'Lists forks' long_desc <<-DESC List repository forks Parameters sort - newest, oldest, watchers, default: newest DESC method_option :sort, :type => :string, :aliases ...
module GithubCLI class Commands::Forks < Command namespace :fork + option :sort, :type => :string, :aliases => ["-s"], + :banner => '<sort-category>', + :desc => 'Sort by newest, oldest or watchers' desc 'list <user> <repo>', 'Lists forks' long_desc <<-DESC ...
26
0.722222
13
13
4f6297d67521fc3037066517681224b92ac0250b
static/fonts/stylesheet.css
static/fonts/stylesheet.css
@font-face { font-family: 'Linux Biolinum'; src: url('linbiolinum_r.woff') format('woff'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Linux Biolinum'; src: url('linbiolinum_rb.woff') format('woff'); font-weight: bold; font-style: normal; } @font-face { fo...
@font-face { font-family: 'Linux Biolinum'; src: local('Linux Biolinum') url('linbiolinum_r.woff') format('woff'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Linux Biolinum'; src: local('Linux Biolinum') url('linbiolinum_rb.woff') format('woff'); font-weight: bold...
Use local fonts if available.
Use local fonts if available.
CSS
agpl-3.0
wffurr/osmium,copyliu/osmium,osmium-org/osmium,osmium-org/osmium,wffurr/osmium,copyliu/osmium,copyliu/osmium,osmium-org/osmium,wffurr/osmium,osmium-org/osmium,wffurr/osmium
css
## Code Before: @font-face { font-family: 'Linux Biolinum'; src: url('linbiolinum_r.woff') format('woff'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Linux Biolinum'; src: url('linbiolinum_rb.woff') format('woff'); font-weight: bold; font-style: normal; } @fo...
@font-face { font-family: 'Linux Biolinum'; - src: url('linbiolinum_r.woff') format('woff'); + src: local('Linux Biolinum') url('linbiolinum_r.woff') format('woff'); ? ++++++++++++++++++++++++ font-weight: normal; font-style: normal; } @font-face { font-family: 'Linux B...
6
0.3
3
3
6e0682250f75c056722e4e176e2909b4a41b100d
MsgPackSerialization.podspec
MsgPackSerialization.podspec
Pod::Spec.new do |s| s.name = 'MsgPackSerialization' s.version = '0.0.1' s.license = 'MIT' s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.' s.homepage = 'https://github.com/mattt/MsgPackSerialization' s.social_media_url = 'https://twitter.com/mattt' s.authors = { 'Mattt T...
Pod::Spec.new do |s| s.name = 'MsgPackSerialization' s.version = '0.0.1' s.license = 'MIT' s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.' s.homepage = 'https://github.com/mattt/MsgPackSerialization' s.social_media_url = 'https://twitter.com/mattt' s.authors = { 'Mattt T...
Add msgpack_src to pod source files.
Add msgpack_src to pod source files.
Ruby
mit
mattt/MsgPackSerialization,mattt/MsgPackSerialization,mattt/MsgPackSerialization
ruby
## Code Before: Pod::Spec.new do |s| s.name = 'MsgPackSerialization' s.version = '0.0.1' s.license = 'MIT' s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.' s.homepage = 'https://github.com/mattt/MsgPackSerialization' s.social_media_url = 'https://twitter.com/mattt' s.autho...
Pod::Spec.new do |s| s.name = 'MsgPackSerialization' s.version = '0.0.1' s.license = 'MIT' s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.' s.homepage = 'https://github.com/mattt/MsgPackSerialization' s.social_media_url = 'https://twitter.com/mattt' s.autho...
2
0.133333
1
1
7ece85d1ab3d789ee1f91ce77d1934927339ae16
react/frontpage/components/PromoBanner.scss
react/frontpage/components/PromoBanner.scss
// Banner @import '../common'; .promoBanner { margin-bottom: 20pt; cursor: pointer; } .promoBanner .overlay { width: 100%; height: 100%; top: 0; left: 0; position: absolute; } .promoBanner:hover .overlay { background-color: $link-image-active-color; }
// Banner @import '../common'; .promoBanner { margin-bottom: 20pt; } .promoBanner .overlay { width: 100%; height: 100%; top: 0; left: 0; position: absolute; cursor: pointer; z-index: 1; // So overlay is on top of all other promo banner divs (need this to trigger :hover) &:hover { background-co...
Fix some hover weirdness in the promo banner
Fix some hover weirdness in the promo banner
SCSS
agpl-3.0
uclaradio/uclaradio,uclaradio/uclaradio,uclaradio/uclaradio
scss
## Code Before: // Banner @import '../common'; .promoBanner { margin-bottom: 20pt; cursor: pointer; } .promoBanner .overlay { width: 100%; height: 100%; top: 0; left: 0; position: absolute; } .promoBanner:hover .overlay { background-color: $link-image-active-color; } ## Instruction: Fix some hover w...
// Banner @import '../common'; .promoBanner { margin-bottom: 20pt; - cursor: pointer; } .promoBanner .overlay { width: 100%; height: 100%; top: 0; left: 0; position: absolute; + cursor: pointer; + z-index: 1; // So overlay is on top of all other promo banner divs (need this...
11
0.578947
6
5
3844d05d0d96f55076a1bad53784c3da4e81ce39
recipes-kernel/linux/config/xilinx-base/bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.cfg
recipes-kernel/linux/config/xilinx-base/bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.cfg
CONFIG_XILINX_DMA_ENGINES=y CONFIG_XILINX_DPDMA=y CONFIG_XILINX_ZYNQMP_DMA=y # NAND CONFIG_MTD_NAND_ARASAN=y # PCIe CONFIG_PCI_MSI=y CONFIG_PCI_XILINX_NWL=y # CONFIG_ARM_MALI is not set
CONFIG_DMADEVICES=y CONFIG_XILINX_DMA_ENGINES=y CONFIG_XILINX_DPDMA=y CONFIG_XILINX_ZYNQMP_DMA=y # NAND CONFIG_MTD_NAND_ARASAN=y # PCIe CONFIG_PCI=y CONFIG_PCI_MSI=y CONFIG_PCI_XILINX_NWL=y # CONFIG_ARM_MALI is not set
Add dependent configs for linux-xlnx ZynqMP features
linux/config: Add dependent configs for linux-xlnx ZynqMP features Enable config dependencies for DMA and PCI which are required for ZynqMP drivers/features. Signed-off-by: Nathan Rossi <2e8aa918660411855c6d44d5bb2da677aa033255@nathanrossi.com>
INI
mit
nathanrossi/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx
ini
## Code Before: CONFIG_XILINX_DMA_ENGINES=y CONFIG_XILINX_DPDMA=y CONFIG_XILINX_ZYNQMP_DMA=y # NAND CONFIG_MTD_NAND_ARASAN=y # PCIe CONFIG_PCI_MSI=y CONFIG_PCI_XILINX_NWL=y # CONFIG_ARM_MALI is not set ## Instruction: linux/config: Add dependent configs for linux-xlnx ZynqMP features Enable config dependencies for...
+ CONFIG_DMADEVICES=y CONFIG_XILINX_DMA_ENGINES=y CONFIG_XILINX_DPDMA=y CONFIG_XILINX_ZYNQMP_DMA=y # NAND CONFIG_MTD_NAND_ARASAN=y # PCIe + CONFIG_PCI=y CONFIG_PCI_MSI=y CONFIG_PCI_XILINX_NWL=y # CONFIG_ARM_MALI is not set
2
0.166667
2
0
802e01cc032b38cff0faa08d0ede7ebf2be3f7c3
docs/implementation/selectors.rst
docs/implementation/selectors.rst
.. _implementation-selectors: Selector classes ================ :ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content...
.. _implementation-selectors: Selector classes ================ :ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content...
Add base selector class in docs
Add base selector class in docs
reStructuredText
mit
scrappleapp/scrapple,AlexMathew/scrapple,AlexMathew/scrapple,scrappleapp/scrapple,AlexMathew/scrapple
restructuredtext
## Code Before: .. _implementation-selectors: Selector classes ================ :ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract n...
.. _implementation-selectors: Selector classes ================ :ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract neces...
5
0.192308
5
0
1d5054b6a89f910223682fa38406e8080e8ed550
config/rubocop.yml
config/rubocop.yml
AllCops: Includes: - '**/*.rake' - 'Gemfile' - 'Gemfile.devtools' Excludes: - '**/vendor/**' - '**/benchmarks/**' # Avoid parameter lists longer than five parameters. ParameterLists: Max: 3 CountKeywordArgs: true # Avoid more than `Max` levels of nesting. BlockNesting: Max: 3 # Align wi...
AllCops: Includes: - '**/*.rake' - 'Gemfile' - 'Gemfile.devtools' Excludes: - '**/vendor/**' - '**/benchmarks/**' # Avoid parameter lists longer than five parameters. ParameterLists: Max: 3 CountKeywordArgs: true # Avoid more than `Max` levels of nesting. BlockNesting: Max: 3 # Align wi...
Change some Rubocop settings for my personal taste
Change some Rubocop settings for my personal taste
YAML
mit
L2G/guard-xmllint
yaml
## Code Before: AllCops: Includes: - '**/*.rake' - 'Gemfile' - 'Gemfile.devtools' Excludes: - '**/vendor/**' - '**/benchmarks/**' # Avoid parameter lists longer than five parameters. ParameterLists: Max: 3 CountKeywordArgs: true # Avoid more than `Max` levels of nesting. BlockNesting: Ma...
AllCops: Includes: - '**/*.rake' - 'Gemfile' - 'Gemfile.devtools' Excludes: - '**/vendor/**' - '**/benchmarks/**' # Avoid parameter lists longer than five parameters. ParameterLists: Max: 3 CountKeywordArgs: true # Avoid more than `Max` levels of nesting. Bl...
13
0.224138
4
9
04416cd9652a9fdc3ab58664ab4b96cbaff3f698
simuvex/s_event.py
simuvex/s_event.py
import itertools event_id_count = itertools.count() class SimEvent(object): #def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None): def __init__(self, state, event_type, **kwargs): self.id = event_id_count.next() self.type = event_type self.ins_ad...
import itertools event_id_count = itertools.count() class SimEvent(object): #def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None): def __init__(self, state, event_type, **kwargs): self.id = event_id_count.next() self.type = event_type self.ins_ad...
Set None instead of NoneType to SimEvent.sim_procedure to make pickle happy.
Set None instead of NoneType to SimEvent.sim_procedure to make pickle happy.
Python
bsd-2-clause
axt/angr,schieb/angr,angr/angr,tyb0807/angr,f-prettyland/angr,tyb0807/angr,chubbymaggie/angr,chubbymaggie/angr,f-prettyland/angr,angr/angr,axt/angr,tyb0807/angr,iamahuman/angr,iamahuman/angr,chubbymaggie/angr,angr/simuvex,schieb/angr,iamahuman/angr,axt/angr,angr/angr,f-prettyland/angr,schieb/angr
python
## Code Before: import itertools event_id_count = itertools.count() class SimEvent(object): #def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None): def __init__(self, state, event_type, **kwargs): self.id = event_id_count.next() self.type = event_type ...
import itertools event_id_count = itertools.count() class SimEvent(object): #def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None): def __init__(self, state, event_type, **kwargs): self.id = event_id_count.next() self.type = event_type ...
2
0.074074
1
1
94072012bf8fd92cbce08d025b3909d79719d94d
src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy
src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy
package dev.kkorolyov.sqlob.integration import com.mysql.cj.jdbc.MysqlDataSource import javax.sql.DataSource class MysqlSessionInt extends SessionInt { protected DataSource buildDataSource() { MysqlDataSource ds = new MysqlDataSource() ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false&serverTi...
package dev.kkorolyov.sqlob.integration import com.mysql.cj.jdbc.MysqlDataSource import javax.sql.DataSource class MysqlSessionInt extends SessionInt { protected DataSource buildDataSource() { MysqlDataSource ds = new MysqlDataSource() ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false") ds.s...
Handle collections: Remove mysql serverTimezone property
Handle collections: Remove mysql serverTimezone property
Groovy
bsd-3-clause
kkorolyov/SQLOb
groovy
## Code Before: package dev.kkorolyov.sqlob.integration import com.mysql.cj.jdbc.MysqlDataSource import javax.sql.DataSource class MysqlSessionInt extends SessionInt { protected DataSource buildDataSource() { MysqlDataSource ds = new MysqlDataSource() ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCod...
package dev.kkorolyov.sqlob.integration import com.mysql.cj.jdbc.MysqlDataSource import javax.sql.DataSource class MysqlSessionInt extends SessionInt { protected DataSource buildDataSource() { MysqlDataSource ds = new MysqlDataSource() - ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetim...
2
0.133333
1
1
74a9cd24616b843877e2dc4f7dd65b11d3a7f176
content/en/user-manual/publishing/mobile/index.md
content/en/user-manual/publishing/mobile/index.md
--- title: Mobile template: usermanual-page.tmpl.html position: 2 --- PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Goo...
--- title: Mobile template: usermanual-page.tmpl.html position: 2 --- PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Goo...
Remove link to iOS project download page for now.
Remove link to iOS project download page for now.
Markdown
mit
playcanvas/developer.playcanvas.com,playcanvas/developer.playcanvas.com
markdown
## Code Before: --- title: Mobile template: usermanual-page.tmpl.html position: 2 --- PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app s...
--- title: Mobile template: usermanual-page.tmpl.html position: 2 --- PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app sto...
2
0.117647
0
2
48bf10bc07e58eec83a2b8318d4cddb6a2cbdc83
test/mongo_test_hash.json
test/mongo_test_hash.json
{ "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000...
{ "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000...
Update user for test data
Update user for test data
JSON
agpl-3.0
jasinner/victims-web,jasinner/victims-web,victims/victims-web,victims/victims-web
json
## Code Before: { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "0000000000000000000000000000000000000000000000000000...
- { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "000000000000000000000000000000000000000000000000000000000000000000...
2
2
1
1
12f4f47d0f9a4a24d37e16fb1afc0841399ccadf
setup.py
setup.py
try: from setuptools import setup kw = { 'test_suite': 'tests', 'tests_require': ['astunparse'], } except ImportError: from distutils.core import setup kw = {} setup(name='gast', # gast, daou naer! version='0.2.0', packages=['gast'], description='Python AST that a...
try: from setuptools import setup kw = { 'test_suite': 'tests', 'tests_require': ['astunparse'], } except ImportError: from distutils.core import setup kw = {} setup(name='gast', # gast, daou naer! version='0.2.0', packages=['gast'], description='Python AST that a...
Add python_requires to help pip, and Trove classifiers
Add python_requires to help pip, and Trove classifiers
Python
bsd-3-clause
serge-sans-paille/gast
python
## Code Before: try: from setuptools import setup kw = { 'test_suite': 'tests', 'tests_require': ['astunparse'], } except ImportError: from distutils.core import setup kw = {} setup(name='gast', # gast, daou naer! version='0.2.0', packages=['gast'], description='P...
try: from setuptools import setup kw = { 'test_suite': 'tests', 'tests_require': ['astunparse'], } except ImportError: from distutils.core import setup kw = {} setup(name='gast', # gast, daou naer! version='0.2.0', packages=['gast'], de...
8
0.258065
7
1
3c9ee788a70eabc4af838e8e911795b0dc781c54
server/config/config.json
server/config/config.json
{ "development": { "username": "fleviankanaiza", "password": null, "database": "database_development", "host": "127.0.0.1", "port": 5432, "dialect": "postgres", "loggig": false }, "test": { "username": "fleviankanaiza", "password": null, "database": "database_test", "ho...
{ "development": { "username": "postgres", "password": null, "database": "database_development", "host": "127.0.0.1", "port": 5432, "dialect": "postgres", "loggig": false }, "test": { "username": "fleviankanaiza", "password": null, "database": "database_test", "host": "...
Change development db user from fleviankanaiza to postgres
Change development db user from fleviankanaiza to postgres
JSON
mit
FlevianK/cp2-document-management-system,FlevianK/cp2-document-management-system
json
## Code Before: { "development": { "username": "fleviankanaiza", "password": null, "database": "database_development", "host": "127.0.0.1", "port": 5432, "dialect": "postgres", "loggig": false }, "test": { "username": "fleviankanaiza", "password": null, "database": "databas...
{ "development": { - "username": "fleviankanaiza", + "username": "postgres", "password": null, "database": "database_development", "host": "127.0.0.1", "port": 5432, "dialect": "postgres", "loggig": false }, "test": { "username": "fleviankanaiza", "p...
2
0.064516
1
1