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
ea12c92da2b449caa0ee5a9fe5202657df1bfa5f
composer.json
composer.json
{ "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email": "pwhelan@mixxx....
{ "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email": "pwhelan@mixxx.o...
Allow usage of illuminate v5 components
[TASK] Allow usage of illuminate v5 components
JSON
mit
pwhelan/datachore
json
## Code Before: { "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email":...
{ "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", - + "authors": [ { "name": "Phillip Whelan", ...
12
0.352941
6
6
c62d4123ef06c8eac2c57ee4a7336156d80214f5
app/views/spree/products/recently_viewed.html.erb
app/views/spree/products/recently_viewed.html.erb
<% if cached_recently_viewed_products.any? %> <div id="recently_viewed" data-hook> <h3 class="product-section-title"><%= Spree.t(:recently_viewed_products) %></h3> <ul id="recently_viewed_products" class="list-group"> <% cached_recently_viewed_products.each do |product| %> <li class="list-group...
<% if cached_recently_viewed_products.any? %> <div id="recently_viewed" class="mt-4" data-hook> <h3 class="product-section-title"><%= Spree.t(:recently_viewed_products) %></h3> <ul id="recently_viewed_products" class="list-group"> <% cached_recently_viewed_products.each do |product| %> <li clas...
Update classes to use bootstrap-4
Update classes to use bootstrap-4
HTML+ERB
bsd-3-clause
spree-contrib/spree_recently_viewed,spree-contrib/spree_recently_viewed,spree-contrib/spree_recently_viewed
html+erb
## Code Before: <% if cached_recently_viewed_products.any? %> <div id="recently_viewed" data-hook> <h3 class="product-section-title"><%= Spree.t(:recently_viewed_products) %></h3> <ul id="recently_viewed_products" class="list-group"> <% cached_recently_viewed_products.each do |product| %> <li c...
<% if cached_recently_viewed_products.any? %> - <div id="recently_viewed" data-hook> + <div id="recently_viewed" class="mt-4" data-hook> ? +++++++++++++ <h3 class="product-section-title"><%= Spree.t(:recently_viewed_products) %></h3> <ul id="recently_viewed_products" cl...
2
0.181818
1
1
a9bcc1388143c86f8ac6d5afcfe0b8cb376b8de7
src/main/webapp/resources/dev/js/singleUser.js
src/main/webapp/resources/dev/js/singleUser.js
/** * Author: Josh Adam <josh.adam@phac-aspc.gc.ca> * Date: 2013-04-17 * Time: 9:41 AM */ var username = $('#username').text(); function Project (data) { "use strict"; this.name = data.name; } function UserViewModel () { "use strict"; self.projects = ko.observableArray([]); function getUserProjec...
/** * Author: Josh Adam <josh.adam@phac-aspc.gc.ca> * Date: 2013-04-17 * Time: 9:41 AM */ var username = $('#username').text(); function Project (data) { "use strict"; this.name = data.name; } function UserViewModel () { "use strict"; self.projects = ko.observableArray([]); function getUserProjec...
Change the expected JSON format for user projects.
Change the expected JSON format for user projects.
JavaScript
apache-2.0
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
javascript
## Code Before: /** * Author: Josh Adam <josh.adam@phac-aspc.gc.ca> * Date: 2013-04-17 * Time: 9:41 AM */ var username = $('#username').text(); function Project (data) { "use strict"; this.name = data.name; } function UserViewModel () { "use strict"; self.projects = ko.observableArray([]); functi...
/** * Author: Josh Adam <josh.adam@phac-aspc.gc.ca> * Date: 2013-04-17 * Time: 9:41 AM */ var username = $('#username').text(); function Project (data) { "use strict"; this.name = data.name; } function UserViewModel () { "use strict"; self.projects = ko.observableArra...
2
0.060606
1
1
c2747312789de3008c36ab656eb9b22c6db7d697
.travis.yml
.travis.yml
language: ruby sudo: false cache: bundler rvm: - 2.0.0 - 2.1 - 2.2 env: matrix: - SPROCKETS_VERSION="~> 3.3.0" - SPROCKETS_VERSION="~> 3.4.0" - SPROCKETS_VERSION="~> 3.5.0"
language: ruby sudo: false cache: bundler rvm: - 2.0.0 - 2.1 - 2.2.4 - 2.3.0 env: matrix: - SPROCKETS_VERSION="~> 3.3.0" - SPROCKETS_VERSION="~> 3.4.0" - SPROCKETS_VERSION="~> 3.5.0"
Test against Ruby 2.3.0 on Travis CI
Test against Ruby 2.3.0 on Travis CI
YAML
mit
tricknotes/ember-handlebars-template,tricknotes/ember-handlebars-template
yaml
## Code Before: language: ruby sudo: false cache: bundler rvm: - 2.0.0 - 2.1 - 2.2 env: matrix: - SPROCKETS_VERSION="~> 3.3.0" - SPROCKETS_VERSION="~> 3.4.0" - SPROCKETS_VERSION="~> 3.5.0" ## Instruction: Test against Ruby 2.3.0 on Travis CI ## Code After: language: ruby sudo: false cache: bundler...
language: ruby sudo: false cache: bundler rvm: - 2.0.0 - 2.1 - - 2.2 + - 2.2.4 ? ++ + - 2.3.0 env: matrix: - SPROCKETS_VERSION="~> 3.3.0" - SPROCKETS_VERSION="~> 3.4.0" - SPROCKETS_VERSION="~> 3.5.0"
3
0.25
2
1
1cb63523ac8294182c425df7bf3d239b2be7c8c5
src/scroll-top.css
src/scroll-top.css
.scroll-up { position: fixed; bottom: 1rem; right: 2rem; display: inline-block; width: 3.75rem; height: 3.75rem; border-radius: 50%; overflow: hidden; } .scroll-up:before { content: "\25B2"; display: block; color: white; position: absolute; font-size: 2.2rem; wid...
.scroll-up { font-family: arial, verdana, sans-serif; position: fixed; bottom: 1rem; right: 2rem; display: inline-block; width: 3.75rem; height: 3.75rem; border-radius: 50%; overflow: hidden; } .scroll-up:before { content: "\25B2"; display: block; color: white; posit...
Update css to work better with Firefox
Update css to work better with Firefox The widget css was a bit off with firefox (compared to chrome). Problem was the line height and the default font that was set. This is fixed by specifying a font family (seems that both arial & verdana are cross-platform) and use e relative line height instead of a rem unit.
CSS
mit
betaweb-be/scroll-top-widget,betaweb-be/scroll-top-widget
css
## Code Before: .scroll-up { position: fixed; bottom: 1rem; right: 2rem; display: inline-block; width: 3.75rem; height: 3.75rem; border-radius: 50%; overflow: hidden; } .scroll-up:before { content: "\25B2"; display: block; color: white; position: absolute; font-size:...
.scroll-up { + font-family: arial, verdana, sans-serif; position: fixed; bottom: 1rem; right: 2rem; display: inline-block; width: 3.75rem; height: 3.75rem; border-radius: 50%; overflow: hidden; } .scroll-up:before { content: "\25B2"; display: bloc...
3
0.111111
2
1
a5a99e61083ecb09905b4eade143c222a702b7ce
src/Cacheable.php
src/Cacheable.php
<?php namespace Laracasts\Matryoshka; trait Cacheable { /** * Calculate a unique cache key for the model instance. */ public function getCacheKey() { return sprintf("%s/%s-%s", get_class($this), $this->id, $this->updated_at->timestamp ); }...
<?php namespace Laracasts\Matryoshka; trait Cacheable { /** * Calculate a unique cache key for the model instance. */ public function getCacheKey() { return sprintf("%s/%s-%s", get_class($this), $this->getKey(), $this->updated_at->timestamp ); ...
Use more safer getKey() method instead of assumption that key is named id
Use more safer getKey() method instead of assumption that key is named id
PHP
mit
laracasts/matryoshka
php
## Code Before: <?php namespace Laracasts\Matryoshka; trait Cacheable { /** * Calculate a unique cache key for the model instance. */ public function getCacheKey() { return sprintf("%s/%s-%s", get_class($this), $this->id, $this->updated_at->timestamp ...
<?php namespace Laracasts\Matryoshka; trait Cacheable { /** * Calculate a unique cache key for the model instance. */ public function getCacheKey() { - return sprintf("%s/%s-%s", ? - + return sprintf("%s/%s-%s", ...
5
0.263158
2
3
5cc217b853eb0c65e74127b33ba38c52eb93b688
api/services/Cron.js
api/services/Cron.js
// Cron.js - in api/services "use strict"; const CronJob = require('cron').CronJob; const _ = require('lodash'); const crons = []; module.exports = { start: () => { sails.config.scientilla.crons.forEach(cron => crons.push(new CronJob(cron.time, async cron => { if (!cron.enable...
// Cron.js - in api/services "use strict"; const CronJob = require('cron').CronJob; const _ = require('lodash'); const crons = []; module.exports = { start: () => { sails.config.scientilla.crons.forEach(cron => { crons.push(new CronJob(cron.time, onTick(cron), null, false, 'Europe/Rome')) ...
Change onTick function cron jobs
Change onTick function cron jobs
JavaScript
mit
scientilla/scientilla,scientilla/scientilla,scientilla/scientilla
javascript
## Code Before: // Cron.js - in api/services "use strict"; const CronJob = require('cron').CronJob; const _ = require('lodash'); const crons = []; module.exports = { start: () => { sails.config.scientilla.crons.forEach(cron => crons.push(new CronJob(cron.time, async cron => { ...
// Cron.js - in api/services "use strict"; const CronJob = require('cron').CronJob; const _ = require('lodash'); const crons = []; module.exports = { start: () => { - sails.config.scientilla.crons.forEach(cron => + sails.config.scientilla.crons.forEach(cron => { ? ...
30
1.034483
17
13
1ce2ed61a8840c00525d4974399c49e803e5b752
.travis.yml
.travis.yml
language: php php: - 5.6 - 7 mysql: database: activecollab_database_object_test username: root encoding: utf8mb4 before_install: # INSTALL MYSQL 5.6 # (https://github.com/piwik/piwik/commit/20bd2e1c24e5d673dce3feb256204ad48c29f160) # TODO: Remove when mysql 5.6 is provided by travis. # Otherwise, our ...
dist: trusty sudo: required language: php php: - 5.6 - 7 addons: apt: packages: - mysql-server-5.6 - mysql-client-core-5.6 - mysql-client-5.6 mysql: database: activecollab_database_object_test username: root encoding: utf8mb4 before_install: - composer self-update install: composer install...
Use recommended way to get MySQL 5.6 on Travis
Use recommended way to get MySQL 5.6 on Travis
YAML
mit
activecollab/databaseobject
yaml
## Code Before: language: php php: - 5.6 - 7 mysql: database: activecollab_database_object_test username: root encoding: utf8mb4 before_install: # INSTALL MYSQL 5.6 # (https://github.com/piwik/piwik/commit/20bd2e1c24e5d673dce3feb256204ad48c29f160) # TODO: Remove when mysql 5.6 is provided by travis. #...
+ dist: trusty + sudo: required language: php php: - 5.6 - 7 + addons: + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 mysql: database: activecollab_database_object_test username: root encoding: utf8mb4 before_install: - # INSTALL MY...
28
0.875
9
19
1a07a4abbc433fac7a0822c96f4f39a68665286c
README.md
README.md
basearch ======== Base architecture for bootstrapping simple Java web apps Uses: Spring MVC, Spring Security, EclipseLink, Thymeleaf Built with Gradle Run the test cases with "gradlew test" or start with "gradlew classes run" and hit "http://localhost:8080/index.page" on a browser [![Build Status](https://travis-c...
basearch ======== Base architecture for bootstrapping simple Java web apps Uses: Spring MVC, Spring Security, EclipseLink, Thymeleaf Built with Gradle Run the test cases with "gradlew test" or start with "gradlew classes run" and hit "http://localhost:8080/index.page" on a browser [![Build Status](https://travis-c...
Update travis-ci path to reflect project name change
Update travis-ci path to reflect project name change [ci skip]
Markdown
mit
hectorlf/basearch-current,hectorlf/basearch-current,hectorlf/basearch,hectorlf/basearch
markdown
## Code Before: basearch ======== Base architecture for bootstrapping simple Java web apps Uses: Spring MVC, Spring Security, EclipseLink, Thymeleaf Built with Gradle Run the test cases with "gradlew test" or start with "gradlew classes run" and hit "http://localhost:8080/index.page" on a browser [![Build Status](...
basearch ======== Base architecture for bootstrapping simple Java web apps Uses: Spring MVC, Spring Security, EclipseLink, Thymeleaf Built with Gradle Run the test cases with "gradlew test" or start with "gradlew classes run" and hit "http://localhost:8080/index.page" on a browser - [![Build ...
2
0.166667
1
1
1c10dd7e5ebdc3434ccb6bb2b42ab46325b1e991
lib/shared/addon/helpers/maybe-t.js
lib/shared/addon/helpers/maybe-t.js
import { inject as service } from '@ember/service'; import { get } from '@ember/object'; import Helper from '@ember/component/helper'; export default Helper.extend({ intl: service(), compute(params) { const key = params[0]; const fallback = params[1]; const intl = get(this, 'intl'); if ( key && ...
import { inject as service } from '@ember/service'; import { get, observer } from '@ember/object'; import Helper from '@ember/component/helper'; export default Helper.extend({ intl: service(), compute(params) { const key = params[0]; const fallback = params[1]; const intl = get(this, 'intl'); if...
Fix default locale is lost
Fix default locale is lost https://github.com/rancher/rancher/issues/20790
JavaScript
apache-2.0
vincent99/ui,rancherio/ui,rancher/ui,lvuch/ui,westlywright/ui,rancher/ui,lvuch/ui,westlywright/ui,vincent99/ui,rancher/ui,lvuch/ui,rancherio/ui,westlywright/ui,vincent99/ui,rancherio/ui
javascript
## Code Before: import { inject as service } from '@ember/service'; import { get } from '@ember/object'; import Helper from '@ember/component/helper'; export default Helper.extend({ intl: service(), compute(params) { const key = params[0]; const fallback = params[1]; const intl = get(this, 'intl'); ...
import { inject as service } from '@ember/service'; - import { get } from '@ember/object'; + import { get, observer } from '@ember/object'; ? ++++++++++ import Helper from '@ember/component/helper'; export default Helper.extend({ intl: service(), compute(params) { const key = para...
10
0.454545
7
3
2d836425e9a2057c71f81cd91ca0da5ca01cd815
router/index.js
router/index.js
var render = require('../application/render'); var Backbone = require('backbone'); module.exports = Backbone.Router.extend({ /** * Render the compoennt into the page content. */ _pageContent(component, options){ return render(component, '[data-focus="page-content"]', options); } });
var render = require('../application/render'); var Backbone = require('backbone'); var ArgumentNullException = require('../exception/ArgumentNullException'); var message = require('../message'); var userHelper = require('../user'); module.exports = Backbone.Router.extend({ noRoleRoute: 'home', route(route, name, ca...
Add error messages when the route is unknown
[router] Add error messages when the route is unknown
JavaScript
mit
Jerom138/focus,Jerom138/focus,Jerom138/focus,KleeGroup/focus-core
javascript
## Code Before: var render = require('../application/render'); var Backbone = require('backbone'); module.exports = Backbone.Router.extend({ /** * Render the compoennt into the page content. */ _pageContent(component, options){ return render(component, '[data-focus="page-content"]', options); } }); ## ...
var render = require('../application/render'); var Backbone = require('backbone'); + var ArgumentNullException = require('../exception/ArgumentNullException'); + var message = require('../message'); + var userHelper = require('../user'); module.exports = Backbone.Router.extend({ + noRoleRoute: 'home', + route...
33
3.3
33
0
da11663e76f638c346a7b4c5a6131a7f8c4e4b9b
lib/smartdown/api/previous_question.rb
lib/smartdown/api/previous_question.rb
module Smartdown module Api class PreviousQuestion extend Forwardable def_delegators :@question, :title, :options attr_reader :response def initialize(elements, response) @response = response if elements.find{|element| element.is_a? Smartdown::Model::Element::Question::M...
module Smartdown module Api class PreviousQuestion extend Forwardable def_delegators :@question, :title, :options attr_reader :response, :question def initialize(elements, response) @response = response if elements.find{|element| element.is_a? Smartdown::Model::Element::...
Make question available on previousquestion
Make question available on previousquestion
Ruby
mit
ministryofjustice/smartdown,alphagov/smartdown,alphagov/smartdown,ministryofjustice/smartdown
ruby
## Code Before: module Smartdown module Api class PreviousQuestion extend Forwardable def_delegators :@question, :title, :options attr_reader :response def initialize(elements, response) @response = response if elements.find{|element| element.is_a? Smartdown::Model::Elem...
module Smartdown module Api class PreviousQuestion extend Forwardable def_delegators :@question, :title, :options - attr_reader :response + attr_reader :response, :question ? +++++++++++ def initialize(elements, response) @re...
2
0.095238
1
1
23cbc09b4dd047a93e81be6185d41eb8118c5ad4
.zuul.yaml
.zuul.yaml
- job: name: vitrage-dashboard-integration-tests parent: horizon-integration-tests required-projects: - name: openstack/horizon - name: openstack/vitrage - name: openstack/python-vitrageclient - name: openstack/vitrage-dashboard roles: - zuul: openstack-infra/devstack ...
- job: name: vitrage-dashboard-integration-tests parent: horizon-integration-tests required-projects: - name: openstack/horizon - name: openstack/vitrage - name: openstack/python-vitrageclient - name: openstack/vitrage-dashboard roles: - zuul: openstack-infra/devstack ...
Add Python 3 Train unit tests
Add Python 3 Train unit tests See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Change-Id: Ic509bdfc23d95d709db8b534827ab141e3d2a0b0
YAML
apache-2.0
openstack/vitrage-dashboard,openstack/vitrage-dashboard,openstack/vitrage-dashboard,openstack/vitrage-dashboard
yaml
## Code Before: - job: name: vitrage-dashboard-integration-tests parent: horizon-integration-tests required-projects: - name: openstack/horizon - name: openstack/vitrage - name: openstack/python-vitrageclient - name: openstack/vitrage-dashboard roles: - zuul: openstack-infr...
- job: name: vitrage-dashboard-integration-tests parent: horizon-integration-tests required-projects: - name: openstack/horizon - name: openstack/vitrage - name: openstack/python-vitrageclient - name: openstack/vitrage-dashboard roles: - zuul: openstack-...
3
0.081081
1
2
62047ea08b22e5f6e957d963c982885d74f7f65a
omf/init.fish
omf/init.fish
set -gx BROWSER open set -gx EDITOR vim set -gx PAGER less set -gx MANPAGER $PAGER # fish greeting set -gx fish_greeting "" ## ALIASES # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." # ls alias l "ls -F" alias la "ls -AF" alias ll "ls -lF" alias lla "ls -AlF" alias lal lla # apps...
set -gx BROWSER open set -gx EDITOR vim set -gx PAGER less set -gx MANPAGER $PAGER # fish greeting set -gx fish_greeting "" ## ALIASES # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." # ls alias l "ls -F" alias la "ls -AF" alias ll "ls -lF" alias lla "ls -AlF" alias lal lla # apps...
Add atom alias and remove npm and node
Add atom alias and remove npm and node
fish
mit
chuckeles/dotfiles
fish
## Code Before: set -gx BROWSER open set -gx EDITOR vim set -gx PAGER less set -gx MANPAGER $PAGER # fish greeting set -gx fish_greeting "" ## ALIASES # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." # ls alias l "ls -F" alias la "ls -AF" alias ll "ls -lF" alias lla "ls -AlF" alias...
set -gx BROWSER open set -gx EDITOR vim set -gx PAGER less set -gx MANPAGER $PAGER # fish greeting set -gx fish_greeting "" ## ALIASES # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." # ls alias l "ls -F" alias la "ls -AF" alias ll "ls -lF" a...
3
0.083333
1
2
e8111b5f255fe140d88d0e2fe3e56eece6fff4b1
resources/views/tea-party/datatables/club.blade.php
resources/views/tea-party/datatables/club.blade.php
@if($teaParty->club) <a href="{{ route('clubs.show', $teaParty->club) }}"> {!! $teaParty->club->display_name !!} </a> @endif
{!! $teaParty->club->display_name !!}
Remove club link in TeaParty list to prevent misclick
Remove club link in TeaParty list to prevent misclick
PHP
mit
HackerSir/CheckIn2017,HackerSir/CheckIn2017,HackerSir/CheckIn,HackerSir/CheckIn,HackerSir/CheckIn2017
php
## Code Before: @if($teaParty->club) <a href="{{ route('clubs.show', $teaParty->club) }}"> {!! $teaParty->club->display_name !!} </a> @endif ## Instruction: Remove club link in TeaParty list to prevent misclick ## Code After: {!! $teaParty->club->display_name !!}
- @if($teaParty->club) - <a href="{{ route('clubs.show', $teaParty->club) }}"> - {!! $teaParty->club->display_name !!} ? -------- + {!! $teaParty->club->display_name !!} - </a> - @endif
6
1.2
1
5
a598b6c77747dcc881b83e3c628ffde8edfd0846
plugin/src/core/task/restart/RestartAppTask.java
plugin/src/core/task/restart/RestartAppTask.java
package core.task.restart; import core.command.CommandExecutor; import core.message.DeployMessage; import core.message.RestartAppMessage; import core.task.Task; import core.task.TaskPurpose; import core.telemetry.Telemetry; public class RestartAppTask implements Task<DeployMessage, RestartAppMessage> { private f...
package core.task.restart; import core.command.CommandExecutor; import core.message.DeployMessage; import core.message.RestartAppMessage; import core.task.Task; import core.task.TaskPurpose; import core.telemetry.Telemetry; public class RestartAppTask implements Task<DeployMessage, RestartAppMessage> { private f...
Fix for running adb tool.
Fix for running adb tool.
Java
apache-2.0
andreyfomenkov/green-cat,andreyfomenkov/green-cat
java
## Code Before: package core.task.restart; import core.command.CommandExecutor; import core.message.DeployMessage; import core.message.RestartAppMessage; import core.task.Task; import core.task.TaskPurpose; import core.telemetry.Telemetry; public class RestartAppTask implements Task<DeployMessage, RestartAppMessage> ...
package core.task.restart; import core.command.CommandExecutor; import core.message.DeployMessage; import core.message.RestartAppMessage; import core.task.Task; import core.task.TaskPurpose; import core.telemetry.Telemetry; public class RestartAppTask implements Task<DeployMessage, RestartAppMessa...
7
0.179487
5
2
f74b305006c8698e50a79024919274927b67f938
README.md
README.md
![Delorean](http://i.giphy.com/ZbErMnK1VShsQ.gif) Great scott! Delorean(tm) is the hottest time travel rideshare startup in town. However, its engineers are suffering a serious case of the blues with this bad boy of a monolith. All hope is not lost, though! With the powers of Domain Driven Design, we're going to wor...
Be sure to watch my Railsconf 2017 talk (https://www.youtube.com/watch?v=52qChRS4M0Y) on DDD and Rails, then come back to this repository to see some of those ideas in action. --- ![Delorean](http://i.giphy.com/ZbErMnK1VShsQ.gif) Great scott! Delorean(tm) is the hottest time travel rideshare startup in town. Howeve...
Update readme with Railsconf video
Update readme with Railsconf video
Markdown
mit
andrewhao/delorean,andrewhao/delorean,andrewhao/delorean,andrewhao/delorean
markdown
## Code Before: ![Delorean](http://i.giphy.com/ZbErMnK1VShsQ.gif) Great scott! Delorean(tm) is the hottest time travel rideshare startup in town. However, its engineers are suffering a serious case of the blues with this bad boy of a monolith. All hope is not lost, though! With the powers of Domain Driven Design, we...
+ + Be sure to watch my Railsconf 2017 talk (https://www.youtube.com/watch?v=52qChRS4M0Y) on DDD and Rails, then come back to this repository to see some of those ideas in action. + + --- ![Delorean](http://i.giphy.com/ZbErMnK1VShsQ.gif) Great scott! Delorean(tm) is the hottest time travel rideshare startup...
4
0.153846
4
0
daab05c323f20cc1ed8e047d1947d1fafdc45b2c
src/Support/Traits/Versionable.php
src/Support/Traits/Versionable.php
<?php namespace ProAI\Datamapper\Support\Traits; use ProAI\Datamapper\Annotations as ORM; trait Versionable { /** * @ORM\Column(type="integer", unsigned=true) */ protected $latestVersion; /** * @ORM\Column(type="integer", unsigned=true, primary=true) * @ORM\Versioned */ prot...
<?php namespace ProAI\Datamapper\Support\Traits; use ProAI\Datamapper\Annotations as ORM; trait Versionable { /** * @ORM\Column(type="integer", unsigned=true) */ protected $latestVersion; /** * @ORM\Id * @ORM\Column(type="integer", unsigned=true, primary=true) * @ORM\Versioned ...
Fix primary key for version column
Fix primary key for version column
PHP
mit
ProAI/laravel-datamapper
php
## Code Before: <?php namespace ProAI\Datamapper\Support\Traits; use ProAI\Datamapper\Annotations as ORM; trait Versionable { /** * @ORM\Column(type="integer", unsigned=true) */ protected $latestVersion; /** * @ORM\Column(type="integer", unsigned=true, primary=true) * @ORM\Versioned ...
<?php namespace ProAI\Datamapper\Support\Traits; use ProAI\Datamapper\Annotations as ORM; trait Versionable { /** * @ORM\Column(type="integer", unsigned=true) */ protected $latestVersion; /** + * @ORM\Id * @ORM\Column(type="integer", unsigned=true, prima...
17
0.894737
17
0
945041d60a1773f0dda8931d6561143eb5b9cae5
INSTALL.txt
INSTALL.txt
Thanks for downloading django-currencies. To install it, run the following command inside this directory: python setup.py install If you have the Python ``easy_install`` utility available, you can also type the following to download and install in one step:: easy_install django-currencies Or if you're using...
Thanks for downloading django-currencies. To install it, run the following command inside this directory: python setup.py install If you have the Python ``easy_install`` utility available, you can also type the following to download and install in one step:: easy_install django-currencies Or if you're using...
Remove git install instructions as they don't point to the right repo
Remove git install instructions as they don't point to the right repo
Text
bsd-3-clause
mysociety/django-currencies,marcosalcazar/django-currencies,mysociety/django-currencies,marcosalcazar/django-currencies
text
## Code Before: Thanks for downloading django-currencies. To install it, run the following command inside this directory: python setup.py install If you have the Python ``easy_install`` utility available, you can also type the following to download and install in one step:: easy_install django-currencies Or...
Thanks for downloading django-currencies. To install it, run the following command inside this directory: python setup.py install If you have the Python ``easy_install`` utility available, you can also type the following to download and install in one step:: easy_install django-currencies...
4
0.142857
0
4
5415af3528b9c90508fbac0c572dd70d0947b1b7
core/float/shared/to_i.rb
core/float/shared/to_i.rb
describe :float_to_i, shared: true do it "returns self truncated to an Integer" do -> { (0.0 / 0.0).send(@method) }.should raise_error(FloatDomainError) 899.2.send(@method).should eql(899) -1.122256e-45.send(@method).should eql(0) 5_213_451.9201.send(@method).should eql(5213451) 1.233450999123389e...
describe :float_to_i, shared: true do it "returns self truncated to an Integer" do 899.2.send(@method).should eql(899) -1.122256e-45.send(@method).should eql(0) 5_213_451.9201.send(@method).should eql(5213451) 1.233450999123389e+12.send(@method).should eql(1233450999123) -9223372036854775808.1.sen...
Move case to its own example and use nan_value helper
Move case to its own example and use nan_value helper
Ruby
mit
ruby/spec,ruby/spec,ruby/spec
ruby
## Code Before: describe :float_to_i, shared: true do it "returns self truncated to an Integer" do -> { (0.0 / 0.0).send(@method) }.should raise_error(FloatDomainError) 899.2.send(@method).should eql(899) -1.122256e-45.send(@method).should eql(0) 5_213_451.9201.send(@method).should eql(5213451) 1....
describe :float_to_i, shared: true do it "returns self truncated to an Integer" do - -> { (0.0 / 0.0).send(@method) }.should raise_error(FloatDomainError) 899.2.send(@method).should eql(899) -1.122256e-45.send(@method).should eql(0) 5_213_451.9201.send(@method).should eql(5213451) 1.23...
5
0.454545
4
1
08247c2d4cb3cf1879b568697d7888728ebb1c3b
parse_rest/role.py
parse_rest/role.py
from parse_rest.connection import API_ROOT from parse_rest.datatypes import ParseResource from parse_rest.query import QueryManager class Role(ParseResource): ''' A Role is like a regular Parse object (can be modified and saved) but it requires additional methods and functionality ''' ENDPOINT_R...
from parse_rest.connection import API_ROOT from parse_rest.datatypes import ParseResource from parse_rest.query import QueryManager class Role(ParseResource): ''' A Role is like a regular Parse object (can be modified and saved) but it requires additional methods and functionality ''' ENDPOINT_R...
Handle adding and removing relations from Roles.
Handle adding and removing relations from Roles. This adds addRelation and removeRelation capabilities to Role, making it possible to add users to the users column and roles to the roles column in a Role object, for example. This prevents the error of Role not having the attribute addRelation or removeRelation when tr...
Python
mit
alacroix/ParsePy,milesrichardson/ParsePy,milesrichardson/ParsePy,alacroix/ParsePy
python
## Code Before: from parse_rest.connection import API_ROOT from parse_rest.datatypes import ParseResource from parse_rest.query import QueryManager class Role(ParseResource): ''' A Role is like a regular Parse object (can be modified and saved) but it requires additional methods and functionality ''...
from parse_rest.connection import API_ROOT from parse_rest.datatypes import ParseResource from parse_rest.query import QueryManager class Role(ParseResource): ''' A Role is like a regular Parse object (can be modified and saved) but it requires additional methods and functionality ...
22
0.956522
22
0
2c974663728c09ed94bac1ec1de64572b70e6ee4
.travis.yml
.travis.yml
language: python matrix: include: - sudo: required services: - docker env: - RELEASE=trusty - sudo: required env: - RELEASE=precise env: global: - VERSION='3.6-dev' - ALIAS='nightly' install: - pushd /opt/pyenv/ - sudo git checkout master - sudo git...
language: python matrix: include: - sudo: required services: - docker env: - RELEASE=trusty - sudo: required env: - RELEASE=precise env: global: - VERSION='3.6-dev' - ALIAS='nightly' install: - pushd /opt/pyenv/ - sudo git checkout master - sudo git...
Set upload target with OS_NAME and ARCH
Set upload target with OS_NAME and ARCH
YAML
mit
travis-ci/cpython-builder
yaml
## Code Before: language: python matrix: include: - sudo: required services: - docker env: - RELEASE=trusty - sudo: required env: - RELEASE=precise env: global: - VERSION='3.6-dev' - ALIAS='nightly' install: - pushd /opt/pyenv/ - sudo git checkout mas...
language: python matrix: include: - sudo: required services: - docker env: - RELEASE=trusty - sudo: required env: - RELEASE=precise env: global: - VERSION='3.6-dev' - ALIAS='nightly' install: - pushd /opt/pyenv/ ...
6
0.142857
4
2
49c5ed40c883656bbc701c4ff23ce4e690b02952
.travis.yml
.travis.yml
language: node_js sudo: required dist: trusty node_js: stable before_install: - export CHROME_BIN=/usr/bin/google-chrome - sudo apt-get update - sudo apt-get install -y libappindicator1 fonts-liberation - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i google-chro...
language: node_js sudo: required dist: trusty node_js: stable before_install: - export CHROME_BIN=/usr/bin/google-chrome - sudo apt-get update - sudo apt-get install -y libappindicator1 fonts-liberation - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i google-chro...
Fix error on deploy script.
Fix error on deploy script.
YAML
mit
cheonhyangzhang/paper-typeahead-input,cheonhyangzhang/paper-typeahead-input
yaml
## Code Before: language: node_js sudo: required dist: trusty node_js: stable before_install: - export CHROME_BIN=/usr/bin/google-chrome - sudo apt-get update - sudo apt-get install -y libappindicator1 fonts-liberation - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpk...
language: node_js sudo: required dist: trusty node_js: stable before_install: - export CHROME_BIN=/usr/bin/google-chrome - sudo apt-get update - sudo apt-get install -y libappindicator1 fonts-liberation - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo...
1
0.045455
1
0
fcd77ed52798f4adcfcfd59daddba9d36f867982
.travis.yml
.travis.yml
language: ruby rvm: - 2.0.0 deploy: provider: heroku api_key: secure: fl9mdZJFd/9jRgmQCSc5lq3LkaeG6x3mdXVnw2TLmshilllCYy1XndD8FzFGZQoOsnsmOLO6/qPODOwlWfQk33u3ne5DWDrOkcKM8vyV4WnP/G5o3LfLLhIS4tzYAyVOi/CM+E/iwn5ygFBLqtrBUMX9rpZpbj3atMba1kcuWx0= app: contribution-checker on: branch: master rvm: 2.0.0
language: ruby rvm: - 2.0.0 deploy: provider: heroku api_key: secure: OByBG19LgnEGWBniNIobw5yic0znqRgrbEVSMzkGqqmbNUuA9WyFxv+zWTDGwbGqjJct+JiBPOOAWOUwUGeU23iHU9iOyiWVbe9/OxcYgGyIUMczRR4mA6HReCvC3PSO169Z9R3JhIIcAe+zRC0urgdPBEiTkaZNXTNSyLdT8ZM= app: contribution-checker on: branch: master rvm: 2.0.0
Update and encrypt Heroku key
Update and encrypt Heroku key
YAML
mit
jdennes/contribution-checker-app,jdennes/contribution-checker-app,jdennes/contribution-checker-app
yaml
## Code Before: language: ruby rvm: - 2.0.0 deploy: provider: heroku api_key: secure: fl9mdZJFd/9jRgmQCSc5lq3LkaeG6x3mdXVnw2TLmshilllCYy1XndD8FzFGZQoOsnsmOLO6/qPODOwlWfQk33u3ne5DWDrOkcKM8vyV4WnP/G5o3LfLLhIS4tzYAyVOi/CM+E/iwn5ygFBLqtrBUMX9rpZpbj3atMba1kcuWx0= app: contribution-checker on: branch: master ...
language: ruby rvm: - 2.0.0 deploy: provider: heroku api_key: - secure: fl9mdZJFd/9jRgmQCSc5lq3LkaeG6x3mdXVnw2TLmshilllCYy1XndD8FzFGZQoOsnsmOLO6/qPODOwlWfQk33u3ne5DWDrOkcKM8vyV4WnP/G5o3LfLLhIS4tzYAyVOi/CM+E/iwn5ygFBLqtrBUMX9rpZpbj3atMba1kcuWx0= + secure: OByBG19LgnEGWBniNIobw5yic0znqRgrbEVSMzkGq...
2
0.181818
1
1
b72198c1ed6d9bbcaf8ba0eb9988b7fa7e9dc66c
docs/converting-existing-cloudformation-stacks-to-iidy.md
docs/converting-existing-cloudformation-stacks-to-iidy.md
Converting current stacks to `iidy` can be done through the `iidy convert-stack-to-iidy` command, which accepts two parameters: the stack name of the project that you'd want to convert and a path where the output will be stored. For example: ```shell iidy convert-stack-to-iidy my-cloudformation-stack-1 . # this will...
Converting current stacks to `iidy` can be done through the `iidy convert-stack-to-iidy` command, which accepts two parameters: the stack name of the project that you'd want to convert and a path where the output will be stored. For example: ```shell iidy convert-stack-to-iidy my-cloudformation-stack-1 . ``` this wi...
Clean up converting stacks docs
Clean up converting stacks docs
Markdown
mit
unbounce/iidy,unbounce/iidy
markdown
## Code Before: Converting current stacks to `iidy` can be done through the `iidy convert-stack-to-iidy` command, which accepts two parameters: the stack name of the project that you'd want to convert and a path where the output will be stored. For example: ```shell iidy convert-stack-to-iidy my-cloudformation-stack-...
Converting current stacks to `iidy` can be done through the `iidy convert-stack-to-iidy` command, which accepts two parameters: the stack name of the project that you'd want to convert and a path where the output will be stored. For example: ```shell iidy convert-stack-to-iidy my-cloudformation-stack-...
12
0.857143
7
5
fb3508a81f101d1c376deff610d7f93af5d426ba
ghpages/js/stationary-track.js
ghpages/js/stationary-track.js
var playlist = WaveformPlaylist.init({ samplesPerPixel: 3000, mono: true, waveHeight: 100, container: document.getElementById("playlist"), state: 'cursor', waveOutlineColor: '#E0EFF1', colors: { waveOutlineColor: '#E0EFF1', timeColor: 'grey', fadeColor: 'black' }, controls: { sho...
var playlist = WaveformPlaylist.init({ samplesPerPixel: 3000, zoomLevels: [500, 1000, 3000, 5000], mono: true, waveHeight: 100, container: document.getElementById("playlist"), state: 'cursor', waveOutlineColor: '#E0EFF1', colors: { waveOutlineColor: '#E0EFF1', timeColor: 'grey', fadeCo...
Fix zoom levels for example.
Fix zoom levels for example.
JavaScript
mit
naomiaro/waveform-playlist,naomiaro/waveform-playlist
javascript
## Code Before: var playlist = WaveformPlaylist.init({ samplesPerPixel: 3000, mono: true, waveHeight: 100, container: document.getElementById("playlist"), state: 'cursor', waveOutlineColor: '#E0EFF1', colors: { waveOutlineColor: '#E0EFF1', timeColor: 'grey', fadeColor: 'black' }, con...
var playlist = WaveformPlaylist.init({ samplesPerPixel: 3000, + zoomLevels: [500, 1000, 3000, 5000], mono: true, waveHeight: 100, container: document.getElementById("playlist"), state: 'cursor', waveOutlineColor: '#E0EFF1', colors: { waveOutlineColor: '#E0EFF1', timeColor...
1
0.029412
1
0
d12f99258248b06ec3b614e5860c6ad4fdd379a3
app/controllers/mail_conversations_controller.rb
app/controllers/mail_conversations_controller.rb
class MailConversationsController < ApplicationController def index @mailbox_conversations = current_user.mailbox.conversations end def new @recipients = Guide.where.not("id = ?", current_user.id) end def create recipient = Guide.find(params[:guide_id]) receipt = current_user.send_message(r...
class MailConversationsController < ApplicationController def index @mailbox_conversations = current_user.mailbox.conversations end def inbox end def outbox end def trashcan end def new @recipients = Guide.where.not("id = ?", current_user.id) end def create recipient = Guide.find...
Create inbox,outbox, and trashcan routes.
Create inbox,outbox, and trashcan routes.
Ruby
mit
erinc35/GuideMe,erinc35/GuideMe,erinc35/GuideMe
ruby
## Code Before: class MailConversationsController < ApplicationController def index @mailbox_conversations = current_user.mailbox.conversations end def new @recipients = Guide.where.not("id = ?", current_user.id) end def create recipient = Guide.find(params[:guide_id]) receipt = current_use...
class MailConversationsController < ApplicationController def index @mailbox_conversations = current_user.mailbox.conversations + end + + def inbox + end + + def outbox + end + + def trashcan end def new @recipients = Guide.where.not("id = ?", current_user.id) end ...
9
0.28125
9
0
44c9b29102fb97a631443e38599facb2f305d238
Readme.md
Readme.md
Provides a high-level table storage service abstraction similar to Amazon DynamoDB or Google DataStore, with a Cassandra backend. See [the design docs](https://github.com/gwicke/restbase-cassandra/tree/master/doc) for details and background. This is the default table storage backend for [RESTBase](https://github.com/...
Provides a high-level table storage service abstraction similar to Amazon DynamoDB or Google DataStore, with a Cassandra backend. See [the design docs](https://github.com/gwicke/restbase-cassandra/tree/master/doc) for details and background. This is the default table storage backend for [RESTBase](https://github.com/...
Tweak next steps in README some more
Tweak next steps in README some more
Markdown
apache-2.0
gwicke/restbase-mod-table-cassandra,eevans/restbase-mod-table-cassandra
markdown
## Code Before: Provides a high-level table storage service abstraction similar to Amazon DynamoDB or Google DataStore, with a Cassandra backend. See [the design docs](https://github.com/gwicke/restbase-cassandra/tree/master/doc) for details and background. This is the default table storage backend for [RESTBase](htt...
Provides a high-level table storage service abstraction similar to Amazon DynamoDB or Google DataStore, with a Cassandra backend. See [the design docs](https://github.com/gwicke/restbase-cassandra/tree/master/doc) for details and background. This is the default table storage backend for [RESTBase](htt...
10
0.3125
7
3
4c3e64055ee596568ae32c7f36737889d1dc09a3
README.md
README.md
This project provides utility classes to work with the [Eclipse BPEL Data Model](http://www.eclipse.org/bpel/developers/model.php) of the [Eclipse BPEL Project](http://www.eclipse.org/bpel/).
This project provides utility classes to work with the [Eclipse BPEL Data Model](http://www.eclipse.org/bpel/developers/model.php) of the [Eclipse BPEL Project](http://www.eclipse.org/bpel/). Example helper methods: - `dumpSet` pretty prints a set of ExtensibleElements (activity and process elements) - `dumpEE` prett...
Add hintso on available methods
Add hintso on available methods
Markdown
apache-2.0
IAAS/BPEL-model-utilities
markdown
## Code Before: This project provides utility classes to work with the [Eclipse BPEL Data Model](http://www.eclipse.org/bpel/developers/model.php) of the [Eclipse BPEL Project](http://www.eclipse.org/bpel/). ## Instruction: Add hintso on available methods ## Code After: This project provides utility classes to work wi...
This project provides utility classes to work with the [Eclipse BPEL Data Model](http://www.eclipse.org/bpel/developers/model.php) of the [Eclipse BPEL Project](http://www.eclipse.org/bpel/). + + Example helper methods: + + - `dumpSet` pretty prints a set of ExtensibleElements (activity and process elements) + - `d...
5
5
5
0
f9ef79d338af92ece43faa4380d9b6713f00159c
.travis.yml
.travis.yml
sudo: false language: node_js install: - npm install before_script: node_js: - "6" - "node" notifications: email: false
sudo: false language: node_js install: - npm install before_script: node_js: - "6" - "7" - "node" notifications: email: false
Enable node v7 for TravisCI
Enable node v7 for TravisCI Node v7 is not LTS version, so we would not like to support it positively and we efforts to move to v8 from v7. However, our internal repositories still use v7. We enable v7 in TravisCI for them.
YAML
mit
voyagegroup/tslint-config-fluct
yaml
## Code Before: sudo: false language: node_js install: - npm install before_script: node_js: - "6" - "node" notifications: email: false ## Instruction: Enable node v7 for TravisCI Node v7 is not LTS version, so we would not like to support it positively and we efforts to move to v8 from v7. Howe...
sudo: false language: node_js install: - npm install before_script: node_js: - "6" + - "7" - "node" notifications: email: false
1
0.066667
1
0
345b836eacfc73dc026215e37f45fd7457d81650
spec/pronto/message_spec.rb
spec/pronto/message_spec.rb
require 'spec_helper' module Pronto describe Message do describe '.new' do subject { Message.new(path, line, level, msg, '8cda581') } let(:path) { 'README.md' } let(:line) { Rugged::Diff::Line.new } let(:msg) { 'message' } Message::LEVELS.each do |message_level| context "se...
require 'spec_helper' module Pronto describe Message do let(:message) { Message.new(path, line, level, msg, '8cda581') } let(:path) { 'README.md' } let(:line) { Git::Line.new } let(:msg) { 'message' } let(:level) { :warning } describe '.new' do subject { message } Message::LEVE...
Add more specs for Pronto::Message
Add more specs for Pronto::Message
Ruby
mit
prontolabs/pronto,mvz/pronto,jhass/pronto,aergonaut/pronto,gussan/pronto,treble37/pronto,Zauberstuhl/pronto,HaiTo/pronto,mmozuras/pronto
ruby
## Code Before: require 'spec_helper' module Pronto describe Message do describe '.new' do subject { Message.new(path, line, level, msg, '8cda581') } let(:path) { 'README.md' } let(:line) { Rugged::Diff::Line.new } let(:msg) { 'message' } Message::LEVELS.each do |message_level| ...
require 'spec_helper' module Pronto describe Message do + let(:message) { Message.new(path, line, level, msg, '8cda581') } + + let(:path) { 'README.md' } + let(:line) { Git::Line.new } + let(:msg) { 'message' } + let(:level) { :warning } + describe '.new' do + subject { mess...
37
1.947368
33
4
41c31ca694b54d6cf6302613d2f9a597f6357e33
src/scripts/ci/setup_appveyor.bat
src/scripts/ci/setup_appveyor.bat
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFil...
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFil...
Use jom via botan-ci-tools repo
Use jom via botan-ci-tools repo download.qt.io seems to be down ...
Batchfile
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randomb...
batchfile
## Code Before: echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 c...
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call ...
4
0.333333
2
2
a1deb842c5843bb86d05deece5ef7577f5905cd2
Zero/Sources/Services/ServiceProvider.swift
Zero/Sources/Services/ServiceProvider.swift
// // ServiceProvider.swift // Zero // // Created by Jairo Eli de Leon on 5/8/17. // Copyright © 2017 Jairo Eli de León. All rights reserved. // protocol ServiceProviderType: class {} final class ServiceProvider: ServiceProviderType {}
// // ServiceProvider.swift // Zero // // Created by Jairo Eli de Leon on 5/8/17. // Copyright © 2017 Jairo Eli de León. All rights reserved. // protocol ServiceProviderType: class { var userDefaultsService: UserDefaultsServiceType { get } var taskService: TaskServiceType { get } } final class ServiceProvider...
Add Task and UserDefaults to Service Provider
Add Task and UserDefaults to Service Provider
Swift
mit
jairoeli/Habit,jairoeli/Habit
swift
## Code Before: // // ServiceProvider.swift // Zero // // Created by Jairo Eli de Leon on 5/8/17. // Copyright © 2017 Jairo Eli de León. All rights reserved. // protocol ServiceProviderType: class {} final class ServiceProvider: ServiceProviderType {} ## Instruction: Add Task and UserDefaults to Service Provider...
// // ServiceProvider.swift // Zero // // Created by Jairo Eli de Leon on 5/8/17. // Copyright © 2017 Jairo Eli de León. All rights reserved. // - protocol ServiceProviderType: class {} ? - + protocol ServiceProviderType: class { + var userDefaultsService: Us...
10
0.909091
8
2
49c491ac9e92afd12d610f3f57409c3dd724b860
lib/installation_ex.js
lib/installation_ex.js
"use strict" var NCMBInstallationEx = module.exports = (function() { var validKeys = [ 'applicationName' , 'appVersion' , 'badge' , 'channels' , 'deviceToken' , 'deviceType' , 'sdkVersion' , 'timeZone' , 'acl' ]; function NCMBInstallationEx(ncmb) { this.__proto__.ncmb = ncmb; this.__proto__.cl...
"use strict" var NCMBInstallationEx = module.exports = (function() { var invalidKeys = [ 'objectId' , 'createDate' , 'updateDate' ]; function NCMBInstallationEx(ncmb) { this.__proto__.ncmb = ncmb; this.__proto__.className = '/installations'; } NCMBInstallationEx.prototype.register = functio...
Change to invalid keys policy.
Change to invalid keys policy.
JavaScript
apache-2.0
NCMBMania/parse2ncmb,koyhoge/parse2ncmb
javascript
## Code Before: "use strict" var NCMBInstallationEx = module.exports = (function() { var validKeys = [ 'applicationName' , 'appVersion' , 'badge' , 'channels' , 'deviceToken' , 'deviceType' , 'sdkVersion' , 'timeZone' , 'acl' ]; function NCMBInstallationEx(ncmb) { this.__proto__.ncmb = ncmb; t...
"use strict" var NCMBInstallationEx = module.exports = (function() { - var validKeys = [ + var invalidKeys = [ ? ++ + 'objectId' + , 'createDate' + , 'updateDate' - 'applicationName' - , 'appVersion' - , 'badge' - , 'channels' - , 'deviceToken' - , 'deviceType' - , 'sdkVersion' - ,...
16
0.296296
5
11
edebe37458da391723e3206c63102cbb69606c5b
ideascube/conf/idb_irq_bardarash.py
ideascube/conf/idb_irq_bardarash.py
"""Bardarash in Kurdistan, Iraq""" from .idb_jor_azraq import * # pragma: no flakes from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gender', 'country_o...
"""Bardarash in Kurdistan, Iraq""" from .idb_jor_azraq import * # pragma: no flakes from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gender', 'country_o...
Remove Kalite until Arabic language is available
Remove Kalite until Arabic language is available
Python
agpl-3.0
ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube
python
## Code Before: """Bardarash in Kurdistan, Iraq""" from .idb_jor_azraq import * # pragma: no flakes from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gen...
"""Bardarash in Kurdistan, Iraq""" from .idb_jor_azraq import * # pragma: no flakes from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gen...
13
0.8125
13
0
28aa29d953c0217563e9372695e6d4a8b91d83bf
README.md
README.md
This Project is part of my bachelor thesis. ## Goal ### Building a web based 3D composition tool. Build a web based 3D scene composition tool for the Project `Roundtrip3D` using current web technologies. The Tool should provide following views and features - A 3D View to visualize and edit 3D scenes in the X3DOM fo...
This Project is part of my bachelor thesis. ## CI Status [![Build Status](https://travis-ci.org/despairblue/scegratoo3.png?branch=master)](https://travis-ci.org/despairblue/scegratoo3) ## Goal ### Building a web based 3D composition tool. Build a web based 3D scene composition tool for the Project `Roundtrip3D` us...
Add ci status to readme
Add ci status to readme
Markdown
apache-2.0
despairblue/scegratoo3,despairblue/scegratoo3,despairblue/scegratoo3
markdown
## Code Before: This Project is part of my bachelor thesis. ## Goal ### Building a web based 3D composition tool. Build a web based 3D scene composition tool for the Project `Roundtrip3D` using current web technologies. The Tool should provide following views and features - A 3D View to visualize and edit 3D scenes...
This Project is part of my bachelor thesis. + + ## CI Status + [![Build Status](https://travis-ci.org/despairblue/scegratoo3.png?branch=master)](https://travis-ci.org/despairblue/scegratoo3) ## Goal ### Building a web based 3D composition tool. Build a web based 3D scene composition tool for the Pr...
3
0.12
3
0
6d21040bcf818e280c8462d9be103a63d0248fad
.travis.yml
.travis.yml
language: go go: - 1.4.2 - 1.5.2 install: - go get github.com/tools/godep - go get github.com/golang/lint/golint - go get github.com/GeertJohan/fgt script: fgt golint ./... && godep go test ./...
language: go go: - 1.5.2 - 1.5.3 - 1.6 install: - go get github.com/golang/lint/golint - go get github.com/GeertJohan/fgt script: make test
Use `make test` and deprecate Go1.4, add go1.6
Use `make test` and deprecate Go1.4, add go1.6
YAML
mit
facesea/banshee,facesea/banshee,eleme/banshee,eleme/banshee,facesea/banshee,facesea/banshee,eleme/banshee,eleme/banshee,eleme/banshee
yaml
## Code Before: language: go go: - 1.4.2 - 1.5.2 install: - go get github.com/tools/godep - go get github.com/golang/lint/golint - go get github.com/GeertJohan/fgt script: fgt golint ./... && godep go test ./... ## Instruction: Use `make test` and deprecate Go1.4, add go1.6 ## Code After: language:...
language: go go: - - 1.4.2 - 1.5.2 + - 1.5.3 + - 1.6 install: - - go get github.com/tools/godep - go get github.com/golang/lint/golint - go get github.com/GeertJohan/fgt - script: fgt golint ./... && godep go test ./... + script: make test
6
0.5
3
3
e12dba66782f21f57efbeca34ad05ca6a1cef56b
src/ggrc/assets/mustache/base_templates/people_list.mustache
src/ggrc/assets/mustache/base_templates/people_list.mustache
{{! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com }} <div class="side-content"> <ul class="label-list"> <li> ...
{{! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com }} <div class="side-content"> <ul class="label-list"> <li> ...
Fix hiding the optional Verifier(s) form field
Fix hiding the optional Verifier(s) form field
HTML+Django
apache-2.0
edofic/ggrc-core,josthkko/ggrc-core,j0gurt/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,j0gurt/ggrc-core,AleksNeStu/ggrc-core,edofic/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,selahssea/ggrc-core,kr41/ggrc-core,josthkko/ggrc-core,jmakov/ggrc-core,edofic/ggrc-core,plamut/ggrc-core,plamut/ggrc-core,prasannav7/ggrc-cor...
html+django
## Code Before: {{! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com }} <div class="side-content"> <ul class="label-lis...
{{! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: ivan@reciprocitylabs.com Maintained By: ivan@reciprocitylabs.com }} <div class="side-content"> <ul class="label-l...
2
0.105263
1
1
47548e64312b2b749b7bbbe93acdb4c3aabff565
spec/url_referenceable_spec.rb
spec/url_referenceable_spec.rb
require 'spec_helper' require 'compo' # Mock implementation of UrlReferenceable. class MockUrlReferenceable include Compo::UrlReferenceable end describe MockUrlReferenceable do before(:each) { allow(subject).to receive(:parent).and_return(parent) } describe '#url' do context 'when the UrlReferenceable has ...
require 'spec_helper' require 'compo' # Mock implementation of UrlReferenceable. class MockUrlReferenceable include Compo::UrlReferenceable end describe MockUrlReferenceable do before(:each) { allow(subject).to receive(:parent).and_return(parent) } describe '#url' do context 'when the UrlReferenceable has ...
Add parent_url no parent test.
Add parent_url no parent test.
Ruby
mit
CaptainHayashi/compo
ruby
## Code Before: require 'spec_helper' require 'compo' # Mock implementation of UrlReferenceable. class MockUrlReferenceable include Compo::UrlReferenceable end describe MockUrlReferenceable do before(:each) { allow(subject).to receive(:parent).and_return(parent) } describe '#url' do context 'when the UrlRe...
require 'spec_helper' require 'compo' # Mock implementation of UrlReferenceable. class MockUrlReferenceable include Compo::UrlReferenceable end describe MockUrlReferenceable do before(:each) { allow(subject).to receive(:parent).and_return(parent) } describe '#url' do context 'when...
2
0.057143
2
0
4e691594e6ed13949400f5957f6bd48c8f53427a
run.sh
run.sh
: =${RABBITMQ_USER:='guest'} : =${RABBITMQ_PASSWORD:='guest'} sed -i 's|%%RABBITMQ_USER%%|'"$RABBITMQ_USER"'|g; s|%%RABBITMQ_PASSWORD%%|'"$RABBITMQ_PASSWORD"'|g' /etc/rabbitmq/rabbitmq.config # Enable rabbitmq management web interface rabbitmq-plugins enable rabbitmq_management # start rabbitmq-server rabbitmq-serve...
export HOME=$HOME # Set username and password in config : =${RABBITMQ_USER:='guest'} : =${RABBITMQ_PASSWORD:='guest'} sed -i 's|%%RABBITMQ_USER%%|'"$RABBITMQ_USER"'|g; s|%%RABBITMQ_PASSWORD%%|'"$RABBITMQ_PASSWORD"'|g' /etc/rabbitmq/rabbitmq.config # Enable rabbitmq management web interface rabbitmq-plugins enable r...
Make sure the HOME variable is exported and available before rabbitmq starts.
Make sure the HOME variable is exported and available before rabbitmq starts.
Shell
mit
pitrho/docker-precise-rabbitmq
shell
## Code Before: : =${RABBITMQ_USER:='guest'} : =${RABBITMQ_PASSWORD:='guest'} sed -i 's|%%RABBITMQ_USER%%|'"$RABBITMQ_USER"'|g; s|%%RABBITMQ_PASSWORD%%|'"$RABBITMQ_PASSWORD"'|g' /etc/rabbitmq/rabbitmq.config # Enable rabbitmq management web interface rabbitmq-plugins enable rabbitmq_management # start rabbitmq-serve...
+ + export HOME=$HOME + + # Set username and password in config : =${RABBITMQ_USER:='guest'} : =${RABBITMQ_PASSWORD:='guest'} sed -i 's|%%RABBITMQ_USER%%|'"$RABBITMQ_USER"'|g; s|%%RABBITMQ_PASSWORD%%|'"$RABBITMQ_PASSWORD"'|g' /etc/rabbitmq/rabbitmq.config # Enable rabbitmq management web interface rab...
4
0.4
4
0
aa5b252786f5bbf00962da29b36cfc08b563de53
layers/+vim/evil-snipe/packages.el
layers/+vim/evil-snipe/packages.el
(setq evil-snipe-packages '(evil-snipe)) (defun evil-snipe/init-evil-snipe () (use-package evil-snipe :diminish evil-snipe-local-mode :init (setq evil-snipe-scope 'whole-buffer evil-snipe-enable-highlight t evil-snipe-enable-incremental-highlight t evil-snipe-auto-disable-su...
(setq evil-snipe-packages '(evil-snipe)) (defun evil-snipe/init-evil-snipe () (use-package evil-snipe :diminish evil-snipe-local-mode :init (setq evil-snipe-scope 'whole-buffer evil-snipe-enable-highlight t evil-snipe-enable-incremental-highlight t evil-snipe-auto-disable-su...
Use separate hooks for override mode
evil-snipe: Use separate hooks for override mode
Emacs Lisp
mit
tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs
emacs-lisp
## Code Before: (setq evil-snipe-packages '(evil-snipe)) (defun evil-snipe/init-evil-snipe () (use-package evil-snipe :diminish evil-snipe-local-mode :init (setq evil-snipe-scope 'whole-buffer evil-snipe-enable-highlight t evil-snipe-enable-incremental-highlight t evil-snipe...
(setq evil-snipe-packages '(evil-snipe)) (defun evil-snipe/init-evil-snipe () (use-package evil-snipe :diminish evil-snipe-local-mode :init (setq evil-snipe-scope 'whole-buffer evil-snipe-enable-highlight t evil-snipe-enable-incremental-highlight t evil-s...
17
0.772727
10
7
a07794c80dfaf6c26f0776f3d918d07582453823
articles/quickstart/spa/_includes/_install_auth0js.md
articles/quickstart/spa/_includes/_install_auth0js.md
You need the auth0.js library to integrate Auth0 into your application. Install auth0.js using npm or yarn. ```bash # installation with npm npm install --save auth0-js # installation with yarn yarn add auth0-js ``` Once you install auth0.js, add it to your build system or bring it in to your project with a script ...
You need the auth0.js library to integrate Auth0 into your application. You can either install the library locally in your application or load it from CDN. ### Loading via dependencies Install auth0.js using npm or yarn. ```bash # installation with npm npm install --save auth0-js # installation with yarn yarn add ...
Make instructions to bring in auth0.js via dependencies or CDN more explicit
Make instructions to bring in auth0.js via dependencies or CDN more explicit
Markdown
mit
jeffreylees/docs,jeffreylees/docs,yvonnewilson/docs,yvonnewilson/docs,auth0/docs,auth0/docs,yvonnewilson/docs,jeffreylees/docs,auth0/docs
markdown
## Code Before: You need the auth0.js library to integrate Auth0 into your application. Install auth0.js using npm or yarn. ```bash # installation with npm npm install --save auth0-js # installation with yarn yarn add auth0-js ``` Once you install auth0.js, add it to your build system or bring it in to your projec...
You need the auth0.js library to integrate Auth0 into your application. + You can either install the library locally in your application or load it from CDN. + + ### Loading via dependencies Install auth0.js using npm or yarn. ```bash # installation with npm npm install --save auth0-js # instal...
5
0.208333
5
0
a882990c9d05497540efca385ebb55c200e01e76
MUON/mapping/AliMpStationType.h
MUON/mapping/AliMpStationType.h
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for refering to a MUON stati...
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for refering to a MUON stati...
Fix warning from gcc4 (Laurent)
Fix warning from gcc4 (Laurent)
C
bsd-3-clause
ALICEHLT/AliRoot,shahor02/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,mkrzewic/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,miranov25/AliRoot,mkrzewic/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,ALICEHLT/AliRoot,mkrzewic/AliRoot,...
c
## Code Before: /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for refering...
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $ /// \ingroup basic /// \enum AliMpStationType /// Enumeration for referi...
3
0.06
2
1
6fe85ccfa38c095b61be19f23a662cb6c5e519cf
src/helpers.php
src/helpers.php
<?php if (!function_exists('cfg')) { /** * EasyCfg Helper. * * @param mixed $key * @param mixed $configurable * @param mixed $configurable_id * @return mixed */ function cfg($key = null, $configurable = null, $configurable_id = null) { if ($key === null) { ...
<?php if (!function_exists('cfg')) { /** * EasyCfg Helper. * * @param mixed $key * @param mixed $configurable * @param mixed $configurable_id * @return mixed */ function cfg($key = null, $configurable = null, $configurable_id = null) { if ($key === null) { ...
Make helper independent from Facade
Make helper independent from Facade
PHP
mit
CupOfTea696/EasyCFG
php
## Code Before: <?php if (!function_exists('cfg')) { /** * EasyCfg Helper. * * @param mixed $key * @param mixed $configurable * @param mixed $configurable_id * @return mixed */ function cfg($key = null, $configurable = null, $configurable_id = null) { if ($k...
<?php if (!function_exists('cfg')) { /** * EasyCfg Helper. * * @param mixed $key * @param mixed $configurable * @param mixed $configurable_id * @return mixed */ function cfg($key = null, $configurable = null, $configurable_id = null) { ...
4
0.2
2
2
683d6f576e4bcf4b07a31d617bf5330bd456c108
tests/all.html
tests/all.html
<!doctype html> <html> <head> <meta charset="utf-8"> <!--Test Infrastructure--> <link href="dependencies/QUnit/qunit.css" rel="stylesheet" /> <script src="dependencies/QUnit/qunit.js" type="text/javascript"></script> <link href="dependencies/QUnit/qunit-composite.css" rel="stylesheet" /> <scri...
<!doctype html> <html> <head> <meta charset="utf-8"> <!--Test Infrastructure--> <link href="dependencies/QUnit/qunit.css" rel="stylesheet" /> <script src="dependencies/QUnit/qunit.js" type="text/javascript"></script> <link href="dependencies/QUnit/qunit-composite.css" rel="stylesheet" /> <scri...
Add more versions of jQuery to test
Add more versions of jQuery to test
HTML
apache-2.0
vistaprint/ArteJS,vistaprint/ArteJS
html
## Code Before: <!doctype html> <html> <head> <meta charset="utf-8"> <!--Test Infrastructure--> <link href="dependencies/QUnit/qunit.css" rel="stylesheet" /> <script src="dependencies/QUnit/qunit.js" type="text/javascript"></script> <link href="dependencies/QUnit/qunit-composite.css" rel="styleshe...
<!doctype html> <html> <head> <meta charset="utf-8"> <!--Test Infrastructure--> <link href="dependencies/QUnit/qunit.css" rel="stylesheet" /> <script src="dependencies/QUnit/qunit.js" type="text/javascript"></script> <link href="dependencies/QUnit/qunit-composite.css" rel="styl...
9
0.375
8
1
ec1f7db3f1bd637807b4b9d69a0b702af36fbef1
morenines/ignores.py
morenines/ignores.py
import os from fnmatch import fnmatchcase import click class Ignores(object): @classmethod def read(cls, path): ignores = cls() if path: with click.open_file(path, 'r') as stream: ignores.patterns = [line.strip() for line in stream] return ignores ...
import os from fnmatch import fnmatchcase import click from morenines.util import find_file class Ignores(object): @classmethod def read(cls, path): if not path: path = find_file('.mnignore') ignores = cls() if path: with click.open_file(path, 'r') as stream:...
Make Ignores try to find '.mnignore'
Make Ignores try to find '.mnignore' If it doesn't find it, that's okay, and no action is required.
Python
mit
mcgid/morenines,mcgid/morenines
python
## Code Before: import os from fnmatch import fnmatchcase import click class Ignores(object): @classmethod def read(cls, path): ignores = cls() if path: with click.open_file(path, 'r') as stream: ignores.patterns = [line.strip() for line in stream] return i...
import os from fnmatch import fnmatchcase import click + from morenines.util import find_file + + class Ignores(object): @classmethod def read(cls, path): + if not path: + path = find_file('.mnignore') + ignores = cls() if path: with cli...
6
0.24
6
0
d8570d29e58a376655f1d61f379158bede0fa3dc
app/controllers/people_controller.rb
app/controllers/people_controller.rb
class PeopleController < ApplicationController before_filter :require_editor, except: [:index, :show] def index @people = Person.all.select{|p| p.can_see(current_user)}.paginate(:page => params[:page], :per_page => 15) end def new @person = Person.new end def creat...
class PeopleController < ApplicationController before_filter :require_editor, except: [:index, :show] def index @people = Person.all.select{|p| p.can_see(current_user)}.paginate(:page => params[:page], :per_page => 15) end def new @person = Person.new end def creat...
Revert "take this out and see if it sticks"
Revert "take this out and see if it sticks" This reverts commit a8073149416bb511bac5a7f4c444f1e1f4fd6a91.
Ruby
mit
mrysav/familiar,mrysav/familiar,mrysav/familiar
ruby
## Code Before: class PeopleController < ApplicationController before_filter :require_editor, except: [:index, :show] def index @people = Person.all.select{|p| p.can_see(current_user)}.paginate(:page => params[:page], :per_page => 15) end def new @person = Person.new end ...
class PeopleController < ApplicationController before_filter :require_editor, except: [:index, :show] def index @people = Person.all.select{|p| p.can_see(current_user)}.paginate(:page => params[:page], :per_page => 15) end def new @person = Person.new en...
1
0.019608
1
0
bc9446ef51645f24a79c01e2b71c936d5186f8ff
styles/templates/generic/_typography.scss
styles/templates/generic/_typography.scss
// @import "compass/typography" or some other vertical rhythm functions //usage in settings file: font-family: (_ref: 'typography:::sansFont'), @include add_settings(( typography: ( sansFont: "IBM Plex Sans", sansFontLight: "IBM Plex Sans Light", sansFontMedium: "IBM Plex Sans Medium", baseFont: "IB...
// @import "compass/typography" or some other vertical rhythm functions //usage in settings file: font-family: (_ref: 'typography:::sansFont'), /* stylelint-disable-next-line meowtec/no-px */ @include add_settings(( typography: ( sansFont: "IBM Plex Sans", sansFontLight: "IBM Plex Sans Light", sansFontM...
Allow px on root element settings in generic
Allow px on root element settings in generic
SCSS
lgpl-2.1
Connexions/cnx-rulesets,Connexions/cnx-recipes,Connexions/cnx-rulesets,Connexions/cte,Connexions/cnx-rulesets,Connexions/cnx-recipes,Connexions/cnx-recipes,Connexions/cte,Connexions/cnx-recipes,Connexions/cnx-rulesets,Connexions/cnx-recipes
scss
## Code Before: // @import "compass/typography" or some other vertical rhythm functions //usage in settings file: font-family: (_ref: 'typography:::sansFont'), @include add_settings(( typography: ( sansFont: "IBM Plex Sans", sansFontLight: "IBM Plex Sans Light", sansFontMedium: "IBM Plex Sans Medium", ...
// @import "compass/typography" or some other vertical rhythm functions //usage in settings file: font-family: (_ref: 'typography:::sansFont'), + /* stylelint-disable-next-line meowtec/no-px */ @include add_settings(( typography: ( sansFont: "IBM Plex Sans", sansFontLight: "IBM Plex Sans Lig...
1
0.055556
1
0
a5d2751be278356e2a03fe07f5a1d0aef11b401f
ch07/enrich_airlines.py
ch07/enrich_airlines.py
on_time_dataframe = sqlContext.read.parquet('../data/on_time_performance.parquet') wikidata = sqlContext.read.json('../data/wikidata-20160404-all.json.bz2')
on_time_dataframe = sqlContext.read.parquet('data/on_time_performance.parquet') # The first step is easily expressed as SQL: get all unique tail numbers for each airline on_time_dataframe.registerTempTable("on_time_performance") carrier_codes = sqlContext.sql( "SELECT DISTINCT Carrier FROM on_time_performance" ) c...
Work on chapter 7 enriching airlines with the name of the carrier from the openflights airline data
Work on chapter 7 enriching airlines with the name of the carrier from the openflights airline data
Python
mit
rjurney/Agile_Data_Code_2,naoyak/Agile_Data_Code_2,rjurney/Agile_Data_Code_2,rjurney/Agile_Data_Code_2,naoyak/Agile_Data_Code_2,rjurney/Agile_Data_Code_2,naoyak/Agile_Data_Code_2,naoyak/Agile_Data_Code_2
python
## Code Before: on_time_dataframe = sqlContext.read.parquet('../data/on_time_performance.parquet') wikidata = sqlContext.read.json('../data/wikidata-20160404-all.json.bz2') ## Instruction: Work on chapter 7 enriching airlines with the name of the carrier from the openflights airline data ## Code After: on_time_dataf...
- on_time_dataframe = sqlContext.read.parquet('../data/on_time_performance.parquet') ? --- + on_time_dataframe = sqlContext.read.parquet('data/on_time_performance.parquet') + # The first step is easily expressed as SQL: get all unique tail numbers for each airline + on_t...
31
10.333333
29
2
e506b8cb9dbfd5b37e81cc5319c9be40e4e48fb3
tests/unit/RunnerTest.php
tests/unit/RunnerTest.php
<?php class RunnerTest extends \Codeception\TestCase\Test { /** * @var \Robo\Runner */ private $runner; public function _before() { $this->runner = new \Robo\Runner(); } public function testHandleError() { $tmpLevel = error_reporting(); $this->assertFal...
<?php class RunnerTest extends \Codeception\TestCase\Test { /** * @var \Robo\Runner */ private $runner; public function _before() { $this->runner = new \Robo\Runner(); } public function testHandleError() { $tmpLevel = error_reporting(); $this->assertFal...
Make testErrorIsHandled unit test pass.
Make testErrorIsHandled unit test pass.
PHP
mit
duxet/Robo,iMi-digital/iRobo,iMi-digital/iRobo,Korikulum/Robo,davidrjonas/Robo,Codegyre/Robo,boedah/Robo,duxet/Robo,iMi-digital/iRobo
php
## Code Before: <?php class RunnerTest extends \Codeception\TestCase\Test { /** * @var \Robo\Runner */ private $runner; public function _before() { $this->runner = new \Robo\Runner(); } public function testHandleError() { $tmpLevel = error_reporting(); ...
<?php class RunnerTest extends \Codeception\TestCase\Test { /** * @var \Robo\Runner */ private $runner; public function _before() { $this->runner = new \Robo\Runner(); } public function testHandleError() { $tmpLevel = error_re...
25
0.581395
22
3
451209103db742a7b1f61d7cf50540210034f4a3
packages/co/control-dsl.yaml
packages/co/control-dsl.yaml
homepage: https://github.com/Atry/Control.Dsl#readme changelog-type: markdown hash: 2a7ae5ae1de458cd8f4939164cb341fb67a110f43c5fb75baa7c517ed0b53a54 test-bench-deps: base: ! '>=4.8 && <5' doctest: ! '>=0.16.0.1 && <0.17' control-dsl: -any containers: ! '>=0.5.11.0 && <0.6' doctest-discover: ! '>=0.1.0.9 && <0...
homepage: https://github.com/Atry/Control.Dsl#readme changelog-type: markdown hash: bc635841575fe5c57f8ad300d900b3ce935b52130ba59e24e69202b7ae33423f test-bench-deps: base: ! '>=4.8 && <5' doctest: -any control-dsl: -any containers: -any doctest-discover: -any temporary: -any maintainer: pop.atry@gmail.com s...
Update from Hackage at 2018-10-05T06:37:44Z
Update from Hackage at 2018-10-05T06:37:44Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/Atry/Control.Dsl#readme changelog-type: markdown hash: 2a7ae5ae1de458cd8f4939164cb341fb67a110f43c5fb75baa7c517ed0b53a54 test-bench-deps: base: ! '>=4.8 && <5' doctest: ! '>=0.16.0.1 && <0.17' control-dsl: -any containers: ! '>=0.5.11.0 && <0.6' doctest-discover: ! ...
homepage: https://github.com/Atry/Control.Dsl#readme changelog-type: markdown - hash: 2a7ae5ae1de458cd8f4939164cb341fb67a110f43c5fb75baa7c517ed0b53a54 + hash: bc635841575fe5c57f8ad300d900b3ce935b52130ba59e24e69202b7ae33423f test-bench-deps: base: ! '>=4.8 && <5' - doctest: ! '>=0.16.0.1 && <0.17' + doctes...
23
0.522727
11
12
12bb2b553091581f73e4fae7c747ff9cb07a682b
app/controllers/confirmations_controller.rb
app/controllers/confirmations_controller.rb
class ConfirmationsController < Devise::ConfirmationsController def show user = User.find_by_confirmation_token params[:confirmation_token] # assign defaults unless user.blank? user.description = Settings.users[:default_description] if user.description.blank? user.icon = Settings.users...
class ConfirmationsController < Devise::ConfirmationsController def new super end def create if params[:user] and params[:user][:email] and (user = User.where(:email => params[:user][:email]).first).blank? flash[:alert] = "Email is not in the system" elsif user.confirmed? flash[:alert] = ...
Update Confirmations Controller for Resend
Update Confirmations Controller for Resend Update the Confirmations Controller to handle custom resend of confirmation instructions.
Ruby
mit
jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply
ruby
## Code Before: class ConfirmationsController < Devise::ConfirmationsController def show user = User.find_by_confirmation_token params[:confirmation_token] # assign defaults unless user.blank? user.description = Settings.users[:default_description] if user.description.blank? user.icon ...
class ConfirmationsController < Devise::ConfirmationsController + def new + super + end + + def create + if params[:user] and params[:user][:email] and (user = User.where(:email => params[:user][:email]).first).blank? + flash[:alert] = "Email is not in the system" + elsif user.confirmed? + ...
20
0.833333
20
0
4c055e24c94d576d7b32c015f81c0686d4d34b53
app/views/shared/_flash.html.erb
app/views/shared/_flash.html.erb
<div class="max-w-7xl mx-auto relative flex flex-col items-end space-y-4"> <div class="fixed z-40 mr-8"> <% flash.each do |type, message| %> <%= render Alerts::FlashComponent.new(type: type, message: message) %> <% end %> </div> </div>
<div class="relative flex flex-col items-end space-y-4"> <div class="fixed z-40 mr-8"> <% flash.each do |type, message| %> <%= render Alerts::FlashComponent.new(type: type, message: message) %> <% end %> </div> </div>
Move alerts closer to view port right edge
Feature: Move alerts closer to view port right edge Because: * It looks more natural as an alert notification when not constrained to the page container.
HTML+ERB
mit
TheOdinProject/theodinproject,TheOdinProject/theodinproject,TheOdinProject/theodinproject,TheOdinProject/theodinproject
html+erb
## Code Before: <div class="max-w-7xl mx-auto relative flex flex-col items-end space-y-4"> <div class="fixed z-40 mr-8"> <% flash.each do |type, message| %> <%= render Alerts::FlashComponent.new(type: type, message: message) %> <% end %> </div> </div> ## Instruction: Feature: Move alerts closer to vi...
- <div class="max-w-7xl mx-auto relative flex flex-col items-end space-y-4"> ? ------------------ + <div class="relative flex flex-col items-end space-y-4"> <div class="fixed z-40 mr-8"> <% flash.each do |type, message| %> <%= render Alerts::FlashComponent.new(type: type, message: message...
2
0.285714
1
1
cba6f359128792b90ca66fe04d86f9b36bfaa5d0
scripts/check-examples.sh
scripts/check-examples.sh
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json then echo "Output examples vega specs are outdated." exit 1 elif ! git diff --word-diff=color --exit-code HEAD -- ./examples/specs/normalized/*.vl.json then echo "Output normalized examples vega-lite specs are outdated." exit 1 el...
if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/vega_version then echo "Output examples were generated using an older version of Vega." exit 1 elif ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json then echo "Output examples vega specs are outdated." exit 1 e...
Make test fails if examples do not use latest version of Vega
Make test fails if examples do not use latest version of Vega
Shell
bsd-3-clause
uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite
shell
## Code Before: if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json then echo "Output examples vega specs are outdated." exit 1 elif ! git diff --word-diff=color --exit-code HEAD -- ./examples/specs/normalized/*.vl.json then echo "Output normalized examples vega-lite specs are outdat...
+ if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/vega_version + then + echo "Output examples were generated using an older version of Vega." + exit 1 - if ! git diff --word-diff=color --exit-code HEAD -- ./examples/compiled/*.vg.json + elif ! git diff --word-diff=color --exit-code HEAD -- ....
6
0.545455
5
1
29e01ab226f5451e22ba3291e81bbaff13ce1867
greenmine/settings/__init__.py
greenmine/settings/__init__.py
from __future__ import absolute_import import os try: print "Trying import local.py settings..." from .local import * except ImportError: print "Trying import development.py settings..." from .development import *
from __future__ import ( absolute_import, print_function ) import os, sys try: print("Trying import local.py settings...", file=sys.stderr) from .local import * except ImportError: print("Trying import development.py settings...", file=sys.stderr) from .development import *
Send more print message to sys.stderr
Smallfix: Send more print message to sys.stderr
Python
agpl-3.0
Zaneh-/bearded-tribble-back,astagi/taiga-back,astronaut1712/taiga-back,dayatz/taiga-back,bdang2012/taiga-back-casting,jeffdwyatt/taiga-back,crr0004/taiga-back,seanchen/taiga-back,coopsource/taiga-back,EvgeneOskin/taiga-back,frt-arch/taiga-back,Rademade/taiga-back,obimod/taiga-back,dycodedev/taiga-back,Tigerwhit4/taiga-...
python
## Code Before: from __future__ import absolute_import import os try: print "Trying import local.py settings..." from .local import * except ImportError: print "Trying import development.py settings..." from .development import * ## Instruction: Smallfix: Send more print message to sys.stderr ## Cod...
- - from __future__ import absolute_import + from __future__ import ( + absolute_import, + print_function + ) - import os + import os, sys ? +++++ try: - print "Trying import local.py settings..." ? ^ + print("Trying import local.py settings...", file=sys.stderr) ? ^ ...
12
1.2
7
5
ea63ba28e0fa584f590d26c09cf53c0d803745b9
.eslintrc.yml
.eslintrc.yml
--- parser: babel-eslint parserOptions: ecmaVersion: 2017 sourceType: module ecmaFeatures: jsx: true experimentalObjectRestSpread: true env: browser: true node: true commonjs: true plugins: - react extends: - eslint:recommended - plugin:react/recommended rules: no-template-curly-in-string: w...
--- parser: babel-eslint parserOptions: ecmaVersion: 2017 sourceType: module ecmaFeatures: jsx: true experimentalObjectRestSpread: true env: browser: true node: true commonjs: true plugins: - react extends: - eslint:recommended - plugin:react/recommended rules: no-template-curly-in-string: w...
Add linebreak rules to eslint
Add linebreak rules to eslint
YAML
mit
jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend
yaml
## Code Before: --- parser: babel-eslint parserOptions: ecmaVersion: 2017 sourceType: module ecmaFeatures: jsx: true experimentalObjectRestSpread: true env: browser: true node: true commonjs: true plugins: - react extends: - eslint:recommended - plugin:react/recommended rules: no-template-cu...
--- parser: babel-eslint parserOptions: ecmaVersion: 2017 sourceType: module ecmaFeatures: jsx: true experimentalObjectRestSpread: true env: browser: true node: true commonjs: true plugins: - react extends: - eslint:recommended - plugin:react/recommended ...
2
0.028169
2
0
ddb95e56adcb1e6f83660679523e66a88430d622
src/uk/org/cinquin/mutinack/misc_util/NamedPoolThreadFactory.java
src/uk/org/cinquin/mutinack/misc_util/NamedPoolThreadFactory.java
package uk.org.cinquin.mutinack.misc_util; import java.util.concurrent.ThreadFactory; public class NamedPoolThreadFactory implements ThreadFactory { private int counter = 0; final String name; public NamedPoolThreadFactory(String name) { this.name = name; } @Override public Thread newThread(Runnable r) { ...
package uk.org.cinquin.mutinack.misc_util; import java.util.concurrent.ThreadFactory; public class NamedPoolThreadFactory implements ThreadFactory { private int counter = 0; final String name; public NamedPoolThreadFactory(String name) { this.name = name; } @Override public Thread newThread(Runnable r) { ...
Mark pool threads as daemon.
Mark pool threads as daemon. Signed-off-by: Olivier Cinquin <65f36a1df3704fccc062437169cf2fbbed716a11@uci.edu>
Java
agpl-3.0
cinquin/mutinack,cinquin/mutinack,cinquin/mutinack,cinquin/mutinack,cinquin/mutinack
java
## Code Before: package uk.org.cinquin.mutinack.misc_util; import java.util.concurrent.ThreadFactory; public class NamedPoolThreadFactory implements ThreadFactory { private int counter = 0; final String name; public NamedPoolThreadFactory(String name) { this.name = name; } @Override public Thread newThread(...
package uk.org.cinquin.mutinack.misc_util; import java.util.concurrent.ThreadFactory; public class NamedPoolThreadFactory implements ThreadFactory { private int counter = 0; final String name; public NamedPoolThreadFactory(String name) { this.name = name; } @Override public Thread ...
1
0.052632
1
0
c642acd29a013c25fab420961109a0a1ebe3c195
open511/views.py
open511/views.py
from open511.models import RoadEvent from open511.utils.views import JSONView class RoadEventListView(JSONView): def get(self, request): return [ rdev.to_json_structure() for rdev in RoadEvent.objects.all() ] list_roadevents = RoadEventListView.as_view()
from open511.models import RoadEvent from open511.utils.views import JSONView class RoadEventListView(JSONView): allow_jsonp = True def get(self, request): return [ rdev.to_json_structure() for rdev in RoadEvent.objects.all() ] list_roadevents = RoadEventListView.as_view()
Allow JSONP requests to the roadevents API
Allow JSONP requests to the roadevents API
Python
mit
Open511/open511-server,Open511/open511-server,Open511/open511-server
python
## Code Before: from open511.models import RoadEvent from open511.utils.views import JSONView class RoadEventListView(JSONView): def get(self, request): return [ rdev.to_json_structure() for rdev in RoadEvent.objects.all() ] list_roadevents = RoadEventListView.as_view() ## Instructi...
from open511.models import RoadEvent from open511.utils.views import JSONView class RoadEventListView(JSONView): + + allow_jsonp = True def get(self, request): return [ rdev.to_json_structure() for rdev in RoadEvent.objects.all() ] list_roadevents = RoadEven...
2
0.166667
2
0
7bd25e3e9ee1cd45427b943b5b1c4a014d8e9a35
database/migrations/20180515205626_change_messages_primary_key.php
database/migrations/20180515205626_change_messages_primary_key.php
<?php use Movim\Migration; use Illuminate\Database\Schema\Blueprint; class ChangeMessagesPrimaryKey extends Migration { public function up() { $this->disableForeignKeyCheck(); $this->schema->table('messages', function(Blueprint $table) { $table->dropPrimary('messages_pkey'); ...
<?php use Movim\Migration; use Illuminate\Database\Schema\Blueprint; class ChangeMessagesPrimaryKey extends Migration { public function up() { $this->schema->table('messages', function(Blueprint $table) { $table->dropForeign(['user_id']); $table->dropPrimary('messages_pkey'); ...
Fix last migration for some MySQL servers
Fix last migration for some MySQL servers
PHP
agpl-3.0
edhelas/movim,edhelas/movim,movim/movim,edhelas/movim,movim/movim,edhelas/movim,movim/movim
php
## Code Before: <?php use Movim\Migration; use Illuminate\Database\Schema\Blueprint; class ChangeMessagesPrimaryKey extends Migration { public function up() { $this->disableForeignKeyCheck(); $this->schema->table('messages', function(Blueprint $table) { $table->dropPrimary('messag...
<?php use Movim\Migration; use Illuminate\Database\Schema\Blueprint; class ChangeMessagesPrimaryKey extends Migration { public function up() { - $this->disableForeignKeyCheck(); - $this->schema->table('messages', function(Blueprint $table) { + $table->dropForei...
16
0.516129
8
8
01e88cb439c5b53bb4f114ddf58d0d9ff0c55d17
routes/index.js
routes/index.js
var express = require('express') var router = express.Router() router.get('/', function (req, res, next) { console.log('Cookies: ', req.cookies) if (Object.keys(req.cookies).indexOf('username') !== -1) { return res.redirect('/studies') } else { res.render('index', { title: 'Choose a new username / Enter ...
var express = require('express') var router = express.Router() router.get('/', function (req, res, next) { console.log('Cookies: ', req.cookies) if (Object.keys(req.cookies).indexOf('username') !== -1) { return res.redirect('/studies') } else { res.render('index', { title: 'Choose a new username / Enter ...
Handle xpress deprecate warning regarding req.param()
Handle xpress deprecate warning regarding req.param()
JavaScript
mit
sleutho/HstWebApp,sleutho/HstWebApp
javascript
## Code Before: var express = require('express') var router = express.Router() router.get('/', function (req, res, next) { console.log('Cookies: ', req.cookies) if (Object.keys(req.cookies).indexOf('username') !== -1) { return res.redirect('/studies') } else { res.render('index', { title: 'Choose a new u...
var express = require('express') var router = express.Router() router.get('/', function (req, res, next) { console.log('Cookies: ', req.cookies) if (Object.keys(req.cookies).indexOf('username') !== -1) { return res.redirect('/studies') } else { res.render('index', { title: 'Choose a new...
4
0.148148
2
2
3223d64053b0d7d4b2ab60bc08e3d0c083509d45
generators/sage_controller/sage_controller_generator.rb
generators/sage_controller/sage_controller_generator.rb
class SageControllerGenerator < Rails::Generator::Base attr_accessor :controller_name, :controller_file_name, :password def initialize(runtime_args, runtime_options = {}) super @controller_url = (args.shift || 'sage').underscore @controller_name = @controller_url.camelize + 'Controller' @contr...
class SageControllerGenerator < Rails::Generator::Base attr_accessor :controller_name, :controller_file_name, :password def initialize(runtime_args, runtime_options = {}) super @controller_url = (args.shift || 'sage').underscore @controller_name = @controller_url.camelize + 'Controller' @contr...
Create proper passwords in sage_controller generator
Create proper passwords in sage_controller generator
Ruby
mit
jebw/connect_to_sage
ruby
## Code Before: class SageControllerGenerator < Rails::Generator::Base attr_accessor :controller_name, :controller_file_name, :password def initialize(runtime_args, runtime_options = {}) super @controller_url = (args.shift || 'sage').underscore @controller_name = @controller_url.camelize + 'Contro...
class SageControllerGenerator < Rails::Generator::Base attr_accessor :controller_name, :controller_file_name, :password def initialize(runtime_args, runtime_options = {}) super @controller_url = (args.shift || 'sage').underscore @controller_name = @controller_url.camelize + 'Contro...
7
0.155556
5
2
44573a6d52b4eb3ca6a88c870b14c082cf793798
tools/README.md
tools/README.md
The following procedure will regenerate the binary star data: 1. Install protoc from https://developers.google.com/protocol-buffers/docs/downloads 1. Regenerate the Java protocol buffer with `./compile_proto.sh`. This step and the one above can be skipped if no changes to the app's source.proto file have been ma...
The following procedure will regenerate the binary star data: 1. Install protoc from https://developers.google.com/protocol-buffers/docs/downloads 1. Regenerate the Java protocol buffer with `./compile_proto.sh`. This step and the one above can be skipped if no changes to the app's source.proto file have been ma...
Reword the data regeneration instructions.
Reword the data regeneration instructions.
Markdown
apache-2.0
sky-map-team/stardroid,srtanzim/Cosmic-Iris,jaydeetay/stardroid,heychirag/stardroid,sky-map-team/stardroid,heychirag/stardroid,barbeau/stardroid,jaydeetay/stardroid,barbeau/stardroid,sky-map-team/stardroid,srtanzim/Cosmic-Iris,sky-map-team/stardroid,heychirag/stardroid,jaydeetay/stardroid,srtanzim/Cosmic-Iris,barbeau/s...
markdown
## Code Before: The following procedure will regenerate the binary star data: 1. Install protoc from https://developers.google.com/protocol-buffers/docs/downloads 1. Regenerate the Java protocol buffer with `./compile_proto.sh`. This step and the one above can be skipped if no changes to the app's source.proto f...
The following procedure will regenerate the binary star data: 1. Install protoc from https://developers.google.com/protocol-buffers/docs/downloads 1. Regenerate the Java protocol buffer with `./compile_proto.sh`. This step and the one above can be skipped if no changes to the app's source.proto file have b...
6
0.75
3
3
7e9c9c1e593d6628e8f6b00d8b98214475a19a5c
CONTRIBUTING.md
CONTRIBUTING.md
Before submitting a new issue, do the following: - Verify you're runing the latest version by running `pem -v` and compare it with the [project page on GitHub](https://github.com/KrauseFx/PEM). - Verify you have Xcode tools installed by running `xcode-select --install`. - Make sure to read through the [README](https:...
Before submitting a new issue, do the following: - Verify you're runing the latest version by running `pem -v` and compare it with the [project page on GitHub](https://github.com/KrauseFx/PEM). - Verify you have Xcode tools installed by running `xcode-select --install`. - Make sure to read through the [README](https:...
Add test instructions to contribution guidelines
Add test instructions to contribution guidelines
Markdown
mit
lyndsey-ferguson/fastlane,tmtrademarked/fastlane,adamcohenrose/fastlane,powtac/fastlane,mbogh/fastlane,dral3x/fastlane,javibm/fastlane,daveanderson/fastlane,bassrock/fastlane,RishabhTayal/fastlane,futuretap/fastlane,vronin/fastlane,fcy/fastlane,luongm/fastlane,sinoru/fastlane,farkasseb/fastlane,bassrock/fastlane,enozer...
markdown
## Code Before: Before submitting a new issue, do the following: - Verify you're runing the latest version by running `pem -v` and compare it with the [project page on GitHub](https://github.com/KrauseFx/PEM). - Verify you have Xcode tools installed by running `xcode-select --install`. - Make sure to read through the...
Before submitting a new issue, do the following: - Verify you're runing the latest version by running `pem -v` and compare it with the [project page on GitHub](https://github.com/KrauseFx/PEM). - Verify you have Xcode tools installed by running `xcode-select --install`. - Make sure to read through the [RE...
1
0.045455
1
0
be61828baf63a181a8685c253847682695ec9583
spec/spec_helper.rb
spec/spec_helper.rb
ENV["RAILS_ENV"] = 'test' require_relative 'spec_helper_common' require_relative 'spec_helper_pundit'
ENV["RAILS_ENV"] = 'test' require_relative 'spec_helper_common' require_relative 'spec_helper_pundit' def klass_name described_class.name.underscore end def subject_class klass_name.to_sym end def subject_class_factory klass_name.split('/').last.to_sym end def factory Factory.build(subject_class_factory) e...
Add support for new specs
Add support for new specs
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: ENV["RAILS_ENV"] = 'test' require_relative 'spec_helper_common' require_relative 'spec_helper_pundit' ## Instruction: Add support for new specs ## Code After: ENV["RAILS_ENV"] = 'test' require_relative 'spec_helper_common' require_relative 'spec_helper_pundit' def klass_name described_class.name....
ENV["RAILS_ENV"] = 'test' require_relative 'spec_helper_common' require_relative 'spec_helper_pundit' + + def klass_name + described_class.name.underscore + end + + def subject_class + klass_name.to_sym + end + + def subject_class_factory + klass_name.split('/').last.to_sym + end + + def factory + ...
24
6
24
0
bbf06ce9370df4805de6512a40b06bffec82e197
src/main/config/configuration.properties
src/main/config/configuration.properties
default.cascade = merge temp-file-name-scheme = org.dita.dost.module.reader.DefaultTempFileScheme #filter-attributes = #flag-attributes = cli.color = true # Integration plugindirs = plugins;demo plugin.ignores = plugin.order = org.dita.base org.oasis-open.dita.v1_3 org.oasis-open.dita.v1_2 registry = https://plugins.d...
default.cascade = merge temp-file-name-scheme = org.dita.dost.module.reader.DefaultTempFileScheme #filter-attributes = #flag-attributes = cli.color = true default.coderef-charset=UTF-8 # Integration plugindirs = plugins;demo plugin.ignores = plugin.order = org.dita.base org.oasis-open.dita.v1_3 org.oasis-open.dita.v1_...
Change default encoding for coderefs to UTF-8
Change default encoding for coderefs to UTF-8 Signed-off-by: Jarno Elovirta <0f1ab0ac7dffd9db21aa539af2fd4bb04abc3ad4@elovirta.com>
INI
apache-2.0
dita-ot/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,infotexture/dita-ot,infotexture/dita-ot
ini
## Code Before: default.cascade = merge temp-file-name-scheme = org.dita.dost.module.reader.DefaultTempFileScheme #filter-attributes = #flag-attributes = cli.color = true # Integration plugindirs = plugins;demo plugin.ignores = plugin.order = org.dita.base org.oasis-open.dita.v1_3 org.oasis-open.dita.v1_2 registry = h...
default.cascade = merge temp-file-name-scheme = org.dita.dost.module.reader.DefaultTempFileScheme #filter-attributes = #flag-attributes = cli.color = true + default.coderef-charset=UTF-8 # Integration plugindirs = plugins;demo plugin.ignores = plugin.order = org.dita.base org.oasis-open.dita.v1_3 o...
1
0.071429
1
0
8c71ddd51c62b34d89c29095cd27d97f64a465cf
my-packages.txt
my-packages.txt
atom-beautify atom-macros atom-material-ui clipboard-plus code-links coffee-compile coffee-links column-select emmet file-icons flex-tool-bar git-projects language-javascript-semantic linter linter-coffeelint linter-pylint minimap minimap-git-diff minimap-linter preview project-manager script shrink-whitespace slickedi...
atom-beautify atom-macros atom-material-ui clipboard-plus code-links coffee-compile coffee-links column-select django-templates file-icons flex-tool-bar git-projects language-javascript-semantic linter linter-coffeelint linter-pylint minimap minimap-git-diff minimap-linter preview project-manager script shrink-whitespa...
Remove emmet (lousy keybindings), add django-templates
Remove emmet (lousy keybindings), add django-templates
Text
agpl-3.0
alflanagan/atom_configuration,alflanagan/atom_configuration,alflanagan/atom_configuration
text
## Code Before: atom-beautify atom-macros atom-material-ui clipboard-plus code-links coffee-compile coffee-links column-select emmet file-icons flex-tool-bar git-projects language-javascript-semantic linter linter-coffeelint linter-pylint minimap minimap-git-diff minimap-linter preview project-manager script shrink-whi...
atom-beautify atom-macros atom-material-ui clipboard-plus code-links coffee-compile coffee-links column-select - emmet + django-templates file-icons flex-tool-bar git-projects language-javascript-semantic linter linter-coffeelint linter-pylint minimap minimap-git-diff minimap-linter ...
2
0.074074
1
1
d1bfc0f395fe15ae4f36438bb88b51c074aef62a
server/index.js
server/index.js
'use strict'; const throng = require('throng'); const app = require('./app'); const WORKERS = process.env.WEB_CONCURRENCY || 1; throng(app, { workers: WORKERS, lifetime: Infinity });
'use strict'; const throng = require('throng'); const app = require('./app'); const WORKERS = process.env.WEB_CONCURRENCY || 1; throng({ workers: WORKERS, lifetime: Infinity, start: app });
Update server to support throng 4.x
Update server to support throng 4.x
JavaScript
mit
jmeas/finance-app,jmeas/finance-app,jmeas/moolah,jmeas/moolah
javascript
## Code Before: 'use strict'; const throng = require('throng'); const app = require('./app'); const WORKERS = process.env.WEB_CONCURRENCY || 1; throng(app, { workers: WORKERS, lifetime: Infinity }); ## Instruction: Update server to support throng 4.x ## Code After: 'use strict'; const throng = require('thron...
'use strict'; const throng = require('throng'); const app = require('./app'); const WORKERS = process.env.WEB_CONCURRENCY || 1; - throng(app, { ? ----- + throng({ workers: WORKERS, - lifetime: Infinity + lifetime: Infinity, ? + + start: app });
5
0.416667
3
2
deb89e2191301c40a58fb67ab02331d9859300fe
dp/fibonacci/go/fibonacci_test.go
dp/fibonacci/go/fibonacci_test.go
package main import "testing" func TestFibonacci(t *testing.T) { tcs := map[string]struct { n int expected int }{ "n = 1": {1, 1}, "n = 2": {2, 1}, "n = 50": {50, 12586269025}, "n = 200": {200, 280571172992510140037611932413038677189525}, } for name, tc := range tcs { t.Run(name, func(t...
package main import ( "math/big" "testing" ) func TestFibonacci(t *testing.T) { tcs := map[string]struct { n int expected string //Use string to allow for values that overflow an int64 }{ "n = 0": {0, "0"}, "n = 1": {1, "1"}, "n = 2": {2, "1"}, "n = 50": {50, "12586269025"}, "n = 100":...
Change expected value in test cases to string to allow for values that don't fit in an int64
Change expected value in test cases to string to allow for values that don't fit in an int64
Go
cc0-1.0
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
go
## Code Before: package main import "testing" func TestFibonacci(t *testing.T) { tcs := map[string]struct { n int expected int }{ "n = 1": {1, 1}, "n = 2": {2, 1}, "n = 50": {50, 12586269025}, "n = 200": {200, 280571172992510140037611932413038677189525}, } for name, tc := range tcs { t....
package main - import "testing" + import ( + "math/big" + "testing" + ) func TestFibonacci(t *testing.T) { tcs := map[string]struct { n int - expected int + expected string //Use string to allow for values that overflow an int64 }{ + "n = 0": {0, "0"}, - "n = 1": {1, 1}, + "n ...
23
0.958333
16
7
ad231f2d49a04add1f7b857eee0267fdc7a8001a
README.md
README.md
[![Build Status](https://travis-ci.org/lromerio/cothority-mobile.svg?branch=master)](https://travis-ci.org/lromerio/cothority-mobile) # CothorityMobile A mobile application to perform distributed tasks using the [cothority-framework][cothority]. [cothority]: https://github.com/dedis/cothority
[![Build Status](https://travis-ci.org/lromerio/cothority-mobile.svg?branch=master)](https://travis-ci.org/lromerio/cothority-mobile) [![Coverage Status](https://coveralls.io/repos/github/lromerio/cothority-mobile/badge.svg?branch=master)](https://coveralls.io/github/lromerio/cothority-mobile?branch=master) # Cothorit...
Update readme to show coverage status
Update readme to show coverage status
Markdown
agpl-3.0
lromerio/cothority-mobile,lromerio/cothority-mobile
markdown
## Code Before: [![Build Status](https://travis-ci.org/lromerio/cothority-mobile.svg?branch=master)](https://travis-ci.org/lromerio/cothority-mobile) # CothorityMobile A mobile application to perform distributed tasks using the [cothority-framework][cothority]. [cothority]: https://github.com/dedis/cothority ## Ins...
- [![Build Status](https://travis-ci.org/lromerio/cothority-mobile.svg?branch=master)](https://travis-ci.org/lromerio/cothority-mobile) + [![Build Status](https://travis-ci.org/lromerio/cothority-mobile.svg?branch=master)](https://travis-ci.org/lromerio/cothority-mobile) [![Coverage Status](https://coveralls.io/repos/g...
2
0.285714
1
1
43a4dd3d0971331dcbda5c74f2636fd3e2486d0a
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.6) project(mwm) find_package(PkgConfig REQUIRED) pkg_check_modules(XCB REQUIRED xcb) pkg_check_modules(XCB-ATOM REQUIRED xcb-atom) pkg_check_modules(XCB-ICCCM REQUIRED xcb-icccm) add_executable(mwm mwm.c window.c layout.c hook.c tag.c bar.c ) target_link_li...
cmake_minimum_required(VERSION 2.6) project(mwm) find_package(PkgConfig REQUIRED) pkg_check_modules(XCB REQUIRED xcb xcb-atom xcb-icccm xcb-keysyms) add_executable(mwm mwm.c window.c layout.c hook.c tag.c bar.c ) target_link_libraries(mwm ${XCB_LIBRARIES}) install(TARGETS mwm DESTINATION ...
Use simpler xcb module checking
Use simpler xcb module checking
Text
mit
michaelforney/velox
text
## Code Before: cmake_minimum_required(VERSION 2.6) project(mwm) find_package(PkgConfig REQUIRED) pkg_check_modules(XCB REQUIRED xcb) pkg_check_modules(XCB-ATOM REQUIRED xcb-atom) pkg_check_modules(XCB-ICCCM REQUIRED xcb-icccm) add_executable(mwm mwm.c window.c layout.c hook.c tag.c bar.c )...
cmake_minimum_required(VERSION 2.6) project(mwm) find_package(PkgConfig REQUIRED) + pkg_check_modules(XCB REQUIRED xcb xcb-atom xcb-icccm xcb-keysyms) - pkg_check_modules(XCB REQUIRED xcb) - pkg_check_modules(XCB-ATOM REQUIRED xcb-atom) - pkg_check_modules(XCB-ICCCM REQUIRED xcb-icccm) add_execut...
6
0.25
2
4
10fe388e54f097346ae88a1a8ac6925cc6054cf5
.travis.yml
.travis.yml
os: - osx - linux sudo: required language: go go: 1.4 install: - ./tasks/general/ci/install.sh github.com/limetext/lime-backend/lib - ./tasks/local/ci/install.sh script: - ./tasks/general/ci/run_tests.sh lib - ./tasks/local/ci/check_gen.sh - ./tasks/general/ci/check_fmt.sh notifications: webhooks:...
os: - osx - linux sudo: required language: go go: 1.4 install: - ./tasks/general/ci/install.sh github.com/limetext/lime-backend/lib script: - ./tasks/general/ci/run_tests.sh lib - ./tasks/local/ci/check_gen.sh - ./tasks/general/ci/check_fmt.sh notifications: webhooks: urls: - https://webho...
Remove the local install script again.
Remove the local install script again.
YAML
bsd-2-clause
codex8/lime-backend,ch1bo/lime-backend,bj7/lime-backend,ch1bo/lime-backend,bj7/lime-backend,codex8/lime-backend,codex8/lime-backend,bj7/lime-backend,bj7/lime-backend,limetext/lime-backend,codex8/lime-backend,ch1bo/lime-backend,limetext/lime-backend,limetext/lime-backend,limetext/lime-backend,limetext/backend,ch1bo/lime...
yaml
## Code Before: os: - osx - linux sudo: required language: go go: 1.4 install: - ./tasks/general/ci/install.sh github.com/limetext/lime-backend/lib - ./tasks/local/ci/install.sh script: - ./tasks/general/ci/run_tests.sh lib - ./tasks/local/ci/check_gen.sh - ./tasks/general/ci/check_fmt.sh notificati...
os: - osx - linux sudo: required language: go go: 1.4 install: - ./tasks/general/ci/install.sh github.com/limetext/lime-backend/lib - - ./tasks/local/ci/install.sh script: - ./tasks/general/ci/run_tests.sh lib - ./tasks/local/ci/check_gen.sh - ./tasks/general/ci/chec...
1
0.038462
0
1
148206803b9be055c5a697f69f4b3146363ef3e1
pyepr/meta.yaml
pyepr/meta.yaml
package: name: pyepr version: 0.8.1 source: fn: pyepr-0.8.1.tar.gz url: https://pypi.python.org/packages/source/p/pyepr/pyepr-0.8.1.tar.gz md5: c83ed5bbb8f8a58f22990a0758902f71 requirements: build: - python - numpy - cython run: - python - numpy test: imports: - epr about: ...
package: name: pyepr version: 0.8.1 source: fn: pyepr-0.8.1.tar.gz url: https://pypi.python.org/packages/source/p/pyepr/pyepr-0.8.1.tar.gz md5: c83ed5bbb8f8a58f22990a0758902f71 requirements: build: - python - numpy - cython run: - python - numpy build: number: 1 test: imports: ...
Add summary description to pyepr
Add summary description to pyepr
YAML
mit
avalentino/conda-recipes
yaml
## Code Before: package: name: pyepr version: 0.8.1 source: fn: pyepr-0.8.1.tar.gz url: https://pypi.python.org/packages/source/p/pyepr/pyepr-0.8.1.tar.gz md5: c83ed5bbb8f8a58f22990a0758902f71 requirements: build: - python - numpy - cython run: - python - numpy test: imports: ...
package: name: pyepr version: 0.8.1 source: fn: pyepr-0.8.1.tar.gz url: https://pypi.python.org/packages/source/p/pyepr/pyepr-0.8.1.tar.gz md5: c83ed5bbb8f8a58f22990a0758902f71 requirements: build: - python - numpy - cython run: - python - numpy +...
4
0.16
4
0
f3ac7c52395e358b4f637727cc823f2f295e5418
README.md
README.md
[![Build Status](https://travis-ci.org/fluxw42/this-to-that.svg?branch=master)](https://travis-ci.org/fluxw42/this-to-that) # This-to-That This-to-That is a tool that converts files in batch from a watched or given input folder.
[![Build Status](https://travis-ci.org/fluxw42/this-to-that.svg?branch=master)](https://travis-ci.org/fluxw42/this-to-that) [![Coverage Status](https://coveralls.io/repos/github/fluxw42/this-to-that/badge.svg?branch=master)](https://coveralls.io/github/fluxw42/this-to-that?branch=master) # This-to-That This-to-That i...
Add coverage badge to readme
Add coverage badge to readme
Markdown
mit
fluxw42/this-to-that
markdown
## Code Before: [![Build Status](https://travis-ci.org/fluxw42/this-to-that.svg?branch=master)](https://travis-ci.org/fluxw42/this-to-that) # This-to-That This-to-That is a tool that converts files in batch from a watched or given input folder. ## Instruction: Add coverage badge to readme ## Code After: [![Build S...
- [![Build Status](https://travis-ci.org/fluxw42/this-to-that.svg?branch=master)](https://travis-ci.org/fluxw42/this-to-that) + [![Build Status](https://travis-ci.org/fluxw42/this-to-that.svg?branch=master)](https://travis-ci.org/fluxw42/this-to-that) [![Coverage Status](https://coveralls.io/repos/github/fluxw42/this-t...
2
0.333333
1
1
114382ff9b6dad3c9ba621014dd7cd63ad49bef6
django/santropolFeast/meal/models.py
django/santropolFeast/meal/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ class Meal(models.Model): class Meta: verbose_name_plural = _('meals') # Meal information nom = models.CharField(max_length=50, verbose_name=_('name')) description = models.TextField(verbose_name=_('descript...
from django.db import models from django.utils.translation import ugettext_lazy as _ class Meal(models.Model): class Meta: verbose_name_plural = _('meals') # Meal information nom = models.CharField(max_length=50, verbose_name=_('name')) description = models.TextField(verbose_name=_('descript...
Use string representation for objects
Use string representation for objects
Python
agpl-3.0
savoirfairelinux/santropol-feast,savoirfairelinux/sous-chef,savoirfairelinux/santropol-feast,savoirfairelinux/sous-chef,madmath/sous-chef,savoirfairelinux/sous-chef,madmath/sous-chef,savoirfairelinux/santropol-feast,madmath/sous-chef
python
## Code Before: from django.db import models from django.utils.translation import ugettext_lazy as _ class Meal(models.Model): class Meta: verbose_name_plural = _('meals') # Meal information nom = models.CharField(max_length=50, verbose_name=_('name')) description = models.TextField(verbose_...
from django.db import models from django.utils.translation import ugettext_lazy as _ class Meal(models.Model): class Meta: verbose_name_plural = _('meals') # Meal information nom = models.CharField(max_length=50, verbose_name=_('name')) description = models.TextField(...
8
0.205128
8
0
21fe3174410756b25281bed5a446516f2c053016
node_modules/hotCoreErrorProtocol/lib/hotCoreErrorProtocol.js
node_modules/hotCoreErrorProtocol/lib/hotCoreErrorProtocol.js
"use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status < 300) || // allow any 2XX error c...
"use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status < 300) || // allow any 2XX error c...
Update to latest Express API
Update to latest Express API
JavaScript
mit
shelsonjava/hotplate,mercmobily/hotplate,mercmobily/hotplate,shelsonjava/hotplate
javascript
## Code Before: "use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status < 300) || // allow...
"use strict"; var dummy , hotplate = require('hotplate') , path = require('path') ; // exports.sendResponse = function(method, res, obj){ exports.sendResponse = function(res, obj, status){ var status; var isOK; status = status || 200; isOK = (status >= 200 && status ...
4
0.078431
2
2
55d795f8fbb1d51c9b91c9d56a352fd56becf529
index.js
index.js
module.exports = function stringReplaceAsync( string, searchValue, replaceValue ) { try { if (typeof replaceValue === "function") { // Step 1: Call native `replace` one time to acquire arguments for // `replaceValue` function // Step 2: Collect all return values in an array // Step 3...
module.exports = function stringReplaceAsync( string, searchValue, replaceValue ) { try { if (typeof replaceValue === "function") { // 1. Run fake pass of `replace`, collect values from `replaceValue` calls // 2. Resolve them with `Promise.all` // 3. Run `replace` with resolved values ...
Clarify the code a bit
Clarify the code a bit
JavaScript
mit
dsblv/string-replace-async
javascript
## Code Before: module.exports = function stringReplaceAsync( string, searchValue, replaceValue ) { try { if (typeof replaceValue === "function") { // Step 1: Call native `replace` one time to acquire arguments for // `replaceValue` function // Step 2: Collect all return values in an array...
module.exports = function stringReplaceAsync( string, searchValue, replaceValue ) { try { if (typeof replaceValue === "function") { + // 1. Run fake pass of `replace`, collect values from `replaceValue` calls + // 2. Resolve them with `Promise.all` + // 3. Run `replace` with ...
17
0.53125
7
10
bc569c55b1f71995e8ff7094bfaf41fda38255e6
Gruntfile.coffee
Gruntfile.coffee
shell = require 'shelljs' 'use strict' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON 'package.json' cucumberjs: src: './features' coffeelint: lib: ['lib/**/*.coffee'] tests: ['specs/**/*.coffee'] # grunt.registerTask 'default', ['build_parser', '...
shell = require 'shelljs' 'use strict' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON 'package.json' cucumberjs: src: './features' coffeelint: lib: ['lib/**/*.coffee'] tests: ['specs/**/*.coffee'] # grunt.registerTask 'default', ['build_parser', '...
Allow system, attribute and heading as grammar start rules.
Allow system, attribute and heading as grammar start rules.
CoffeeScript
mit
llambeau/finitio.js,llambeau/finitio.js
coffeescript
## Code Before: shell = require 'shelljs' 'use strict' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON 'package.json' cucumberjs: src: './features' coffeelint: lib: ['lib/**/*.coffee'] tests: ['specs/**/*.coffee'] # grunt.registerTask 'default', ['...
shell = require 'shelljs' 'use strict' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON 'package.json' cucumberjs: src: './features' coffeelint: lib: ['lib/**/*.coffee'] tests: ['specs/**/*.coffee'] # grunt.registerT...
2
0.066667
1
1
819108cb476329dcd79fe3de253cbb44839cd5a4
lib/utils/post-build.coffee
lib/utils/post-build.coffee
path = require 'path' glob = require('glob') fs = require 'fs-extra' async = require 'async' parsePath = require 'parse-filepath' _ = require 'underscore' globPages = require './glob-pages' module.exports = (program, cb) -> {relativeDirectory, directory} = program globPages directory, (err, pages) -> # Asyn...
path = require 'path' glob = require('glob') fs = require 'fs-extra' async = require 'async' parsePath = require 'parse-filepath' _ = require 'underscore' globPages = require './glob-pages' module.exports = (program, cb) -> {relativeDirectory, directory} = program globPages directory, (err, pages) -> # Asyn...
Add more static file types to be copied to public folder
Add more static file types to be copied to public folder
CoffeeScript
mit
bzero/gatsby,gesposito/gatsby,mickeyreiss/gatsby,ChristopherBiscardi/gatsby,gesposito/gatsby,rothfels/gatsby,ChristopherBiscardi/gatsby,aliswodeck/gatsby,lanastasov/gatsby,MoOx/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,alihalabyah/gatsby,chiedo/gatsby,Khaledgarbaya/gatsby,okcoker/gatsby,fabrictech/gatsby,Marius...
coffeescript
## Code Before: path = require 'path' glob = require('glob') fs = require 'fs-extra' async = require 'async' parsePath = require 'parse-filepath' _ = require 'underscore' globPages = require './glob-pages' module.exports = (program, cb) -> {relativeDirectory, directory} = program globPages directory, (err, pages...
path = require 'path' glob = require('glob') fs = require 'fs-extra' async = require 'async' parsePath = require 'parse-filepath' _ = require 'underscore' globPages = require './glob-pages' module.exports = (program, cb) -> {relativeDirectory, directory} = program globPages directory, (...
2
0.045455
1
1
f47d3b95f5829b3b0e701ab44f13614d1adff07a
js/widget.js
js/widget.js
(function ($) { $(window).load(function(){ window.hologram(document.getElementsByClassName('hologram-area')[0], { uploadUrl: Drupal.settings.Hologram.uploadUrl, onComplete: function(result){ var response = result['response']; console.log(result['response'].text); ...
(function ($) { $(window).load(function(){ window.hologram(document.getElementsByClassName('hologram-area')[0], { uploadUrl: Drupal.settings.Hologram.uploadUrl, onComplete: function(result){ var response = result['response']; var json = JSON.stringify(result['file...
Fix varriable name of json
Fix varriable name of json
JavaScript
mit
dollars0427/hologram-widget
javascript
## Code Before: (function ($) { $(window).load(function(){ window.hologram(document.getElementsByClassName('hologram-area')[0], { uploadUrl: Drupal.settings.Hologram.uploadUrl, onComplete: function(result){ var response = result['response']; console.log(result['re...
(function ($) { $(window).load(function(){ window.hologram(document.getElementsByClassName('hologram-area')[0], { uploadUrl: Drupal.settings.Hologram.uploadUrl, onComplete: function(result){ var response = result['response']; - console.log(result['resp...
3
0.125
1
2
10509c4d166527bbf53628548d2a317204b432a4
lib/Bio/EnsEMBL/Hive/RunnableDB/RNAcentral/GetFiles.pm
lib/Bio/EnsEMBL/Hive/RunnableDB/RNAcentral/GetFiles.pm
=pod =head1 DESCRIPTION Recursively get a list of files with a specified extension. =cut package Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles; use strict; use Bio::RNAcentral::InputFiles; use base ('Bio::EnsEMBL::Hive::Process'); =head2 param_defaults Description : =cut sub param_defaults {...
=pod =head1 DESCRIPTION Recursively get a list of files with a specified extension. =cut package Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles; use strict; use Bio::RNAcentral::InputFiles; use base ('Bio::EnsEMBL::Hive::Process'); =head2 param_defaults Description : =cut sub param_defaults {...
Use recursive folder listing for local (non-ftp) import mode
Use recursive folder listing for local (non-ftp) import mode
Perl
apache-2.0
RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline
perl
## Code Before: =pod =head1 DESCRIPTION Recursively get a list of files with a specified extension. =cut package Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles; use strict; use Bio::RNAcentral::InputFiles; use base ('Bio::EnsEMBL::Hive::Process'); =head2 param_defaults Description : =cut sub ...
=pod =head1 DESCRIPTION Recursively get a list of files with a specified extension. =cut package Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles; use strict; use Bio::RNAcentral::InputFiles; use base ('Bio::EnsEMBL::Hive::Process'); =head2 param_defaults ...
2
0.024691
1
1
8f458471e60d630f67e9cd5941f0764fa299cbd0
templates/replication.config.erb
templates/replication.config.erb
[gerrit] defaultForceUpdate = <%= @replication_force_update %> <% @replication.each do |replication| -%> [remote "<%= replication['name'] %>"] url = <%= replication['url'] %>${name}.git <% if replication['replicationDelay'] != nil -%> replicationDelay = <%= replication['replicationDelay'] %> <% end -%> <% if replic...
[gerrit] defaultForceUpdate = <%= @replication_force_update %> <% @replication.each do |replication| -%> [remote "<%= replication['name'] %>"] url = <%= replication['url'] %>${name}.git <% if replication['replicationDelay'] != nil -%> replicationDelay = <%= replication['replicationDelay'] %> <% end -%> <% if replic...
Add support for 'projects' keyword
Add support for 'projects' keyword To replicate only specific projects, the 'projects' keyword can be used (multiple times if needed) in each remote section of the replication.config. Change-Id: I0f66120a7c9c8f849c03c87e621ae1c46a343297 Co-Authored-By: Spencer Krum <9f0bf2adee05513e15363471857cce616f4c4b2c@spencerkru...
HTML+ERB
apache-2.0
dhiana/puppet-gerrit,dhiana/puppet-gerrit,dhiana/puppet-gerrit
html+erb
## Code Before: [gerrit] defaultForceUpdate = <%= @replication_force_update %> <% @replication.each do |replication| -%> [remote "<%= replication['name'] %>"] url = <%= replication['url'] %>${name}.git <% if replication['replicationDelay'] != nil -%> replicationDelay = <%= replication['replicationDelay'] %> <% end ...
[gerrit] defaultForceUpdate = <%= @replication_force_update %> <% @replication.each do |replication| -%> [remote "<%= replication['name'] %>"] url = <%= replication['url'] %>${name}.git <% if replication['replicationDelay'] != nil -%> replicationDelay = <%= replication['replicationDelay'] %> <% ...
5
0.217391
5
0
644608a942cc6374237808fce0715d08a7c74e27
app/css/style.scss
app/css/style.scss
html { body { /* márgenes para barras superior e inferior */ padding-top: 60px; padding-bottom: 60px; .card-body {padding:5px 5px 0 5px;} .form-group {margin-bottom:5px;} #components { .bg-info {background-color: #b7caff !important; cursor: pointer;} ...
html { body { /* márgenes para barras superior e inferior */ padding-top: 60px; padding-bottom: 60px; .card-body {padding:5px 5px 0 5px;} .form-group {margin-bottom:5px;} #components { .bg-info {background-color: #b7caff !important; cursor: pointer;} ...
Reduce algo los márgenes de la tabla de componentes
Reduce algo los márgenes de la tabla de componentes
SCSS
mit
pachi/epbdpanel,pachi/epbdpanel
scss
## Code Before: html { body { /* márgenes para barras superior e inferior */ padding-top: 60px; padding-bottom: 60px; .card-body {padding:5px 5px 0 5px;} .form-group {margin-bottom:5px;} #components { .bg-info {background-color: #b7caff !important; cursor: ...
html { body { /* márgenes para barras superior e inferior */ padding-top: 60px; padding-bottom: 60px; .card-body {padding:5px 5px 0 5px;} .form-group {margin-bottom:5px;} #components { .bg-info {background-color: #b7caff !important; cursor...
1
0.035714
1
0
75ea14061485456441ce80ec5c4bd3604ced4e23
src/svg/components/Spinner.ts
src/svg/components/Spinner.ts
import Config from '../../Config'; import Component from './Component'; class Spinner extends Component { constructor() { super(); } public render(): void { let width: number = this.config.get('imageWidth'), height: number = this.config.get('imageHeight'), marginLef...
import Config from '../../Config'; import Component from './Component'; class Spinner extends Component { constructor() { super(); } public render(): void { let width: number = this.config.get('imageWidth'), height: number = this.config.get('imageHeight'), marginLef...
Solve issue that spinner doesn't show on firefox
Solve issue that spinner doesn't show on firefox
TypeScript
apache-2.0
proteus-h2020/proteic,proteus-h2020/proteus-charts,proteus-h2020/proteic,proteus-h2020/proteic
typescript
## Code Before: import Config from '../../Config'; import Component from './Component'; class Spinner extends Component { constructor() { super(); } public render(): void { let width: number = this.config.get('imageWidth'), height: number = this.config.get('imageHeight'), ...
import Config from '../../Config'; import Component from './Component'; class Spinner extends Component { constructor() { super(); } public render(): void { let width: number = this.config.get('imageWidth'), height: number = this.config.get('imageHeight'),...
2
0.0625
2
0
516c2ffd44f172aa1c1d763a52a6bbfb75660687
app/controllers/sources_controller.rb
app/controllers/sources_controller.rb
class SourcesController < ApplicationController expose(:sources) { Source.order(:name) } expose(:source) expose(:ordered_sources) do { email_rank: Source.order(:email_rank), location_rank: Source.order(:location_rank), organization_name_rank: Source.order(:organization_name_rank), pho...
class SourcesController < ApplicationController expose(:sources) { Source.order(:name) } expose(:source) expose(:ordered_sources) do { email_rank: Source.order(:email_rank), location_rank: Source.order(:location_rank), organization_name_rank: Source.order(:organization_name_rank), pho...
Use the return of the SourceResolver
Use the return of the SourceResolver
Ruby
mit
artsy/bearden,artsy/bearden,artsy/bearden,artsy/bearden
ruby
## Code Before: class SourcesController < ApplicationController expose(:sources) { Source.order(:name) } expose(:source) expose(:ordered_sources) do { email_rank: Source.order(:email_rank), location_rank: Source.order(:location_rank), organization_name_rank: Source.order(:organization_name_...
class SourcesController < ApplicationController expose(:sources) { Source.order(:name) } expose(:source) expose(:ordered_sources) do { email_rank: Source.order(:email_rank), location_rank: Source.order(:location_rank), organization_name_rank: Source.order(:organization_nam...
4
0.108108
1
3
8102b9a4d853c4e29219b4b1a0f07a70ab37630d
provisioning/vagrant/bootstrap_freebsd.sh
provisioning/vagrant/bootstrap_freebsd.sh
UNZIP=`which unzip` TAR=`which tar` fail_and_exit() { echo "Provisioning failed" exit 1 } # Install some dependencies pkg_add -r gmake -F && \ pkg_add -r python -F && \ pkg_add -r bash -F && \ ln -sf /usr/local/bin/python /usr/bin/python && \ pip install PyYAML Jinja2 || fail_and_exit cd /root # E...
UNZIP=`which unzip` TAR=`which tar` fail_and_exit() { echo "Provisioning failed" exit 1 } # Install some dependencies pkg_add -r gmake -F && \ pkg_add -r python27 -F && \ pkg_add -r bash -F && \ pkg_add -r py27-pip -F && \ ln -sf /usr/local/bin/python /usr/bin/python && \ pip install PyYAML Jinja2 ||...
Install pip before trying to use it
Install pip before trying to use it
Shell
mit
unscramble/jidoteki-os-templates
shell
## Code Before: UNZIP=`which unzip` TAR=`which tar` fail_and_exit() { echo "Provisioning failed" exit 1 } # Install some dependencies pkg_add -r gmake -F && \ pkg_add -r python -F && \ pkg_add -r bash -F && \ ln -sf /usr/local/bin/python /usr/bin/python && \ pip install PyYAML Jinja2 || fail_and_exit...
UNZIP=`which unzip` TAR=`which tar` fail_and_exit() { echo "Provisioning failed" exit 1 } # Install some dependencies pkg_add -r gmake -F && \ - pkg_add -r python -F && \ + pkg_add -r python27 -F && \ ? ++ pkg_add -r bash -F && \ + pkg_add -r py27-pip -F && \...
3
0.083333
2
1
7a83c884fabbde488314a586b600b58dcfce4ce6
scss/components/_dropdown-menu.scss
scss/components/_dropdown-menu.scss
.dropdown.menu-bar { .has-submenu { position: relative; } //Chris's amendments ******* .submenu { //for left aligned menus only display: none; position: absolute; top: 0; left: 100%; width: auto; white-space: nowrap; // border: thin solid blue; background: $body-background;...
.dropdown.menu-bar { .has-submenu { position: relative; } //Chris's amendments ******* .submenu { //for left aligned menus only display: none; position: absolute; top: 0; left: 100%; width: auto; white-space: nowrap; // border: thin solid blue; background: $body-background;...
Add background color to dropdown submenus
Add background color to dropdown submenus
SCSS
mit
yohio/foundation-sites-6,sethkane/foundation-sites,PassKitInc/foundation-sites,abdullahsalem/foundation-sites,colin-marshall/foundation-sites,karland/foundation-sites,sethkane/foundation-sites,designerno1/foundation-sites,atmmarketing/foundation-sites,designerno1/foundation-sites,zurb/foundation,jamesstoneco/foundation...
scss
## Code Before: .dropdown.menu-bar { .has-submenu { position: relative; } //Chris's amendments ******* .submenu { //for left aligned menus only display: none; position: absolute; top: 0; left: 100%; width: auto; white-space: nowrap; // border: thin solid blue; background: $...
.dropdown.menu-bar { .has-submenu { position: relative; } //Chris's amendments ******* .submenu { //for left aligned menus only display: none; position: absolute; top: 0; left: 100%; width: auto; white-space: nowrap; // border: thin solid blue; ...
1
0.014286
1
0
2a7a53813e1c05057e9953f5005f00a4c4ad7a4d
hnakamur.zsh/defaults/main.yml
hnakamur.zsh/defaults/main.yml
--- zsh_rc_dir: ~/.zshrc.d zsh_rc_files: - git.zsh - git_completion.zsh - git-prompt.sh - prompt.zsh zsh_rc_templates: - history.zsh zsh_path_directories: - "$HOME/bin" - "$HOME/go/bin" - /usr/local/ruby/bin - /usr/local/node/bin - /usr/local/bin zsh_envs: - name: GOPATH value: "{{ go_gopath }}" zsh_my_bin_files: - m...
--- zsh_rc_dir: ~/.zshrc.d zsh_rc_files: - git.zsh - git_completion.zsh - git-prompt.sh - prompt.zsh zsh_rc_templates: - history.zsh zsh_path_directories: - "$HOME/bin" - "$HOME/go/bin" - /usr/local/ruby/bin - /usr/local/node/bin - /usr/local/sbin - /usr/local/bin zsh_envs: - name: GOPATH value: "{{ go_gopath }}" zsh...
Add Homebrew's sbin /usr/local/sbin to PATH
Add Homebrew's sbin /usr/local/sbin to PATH
YAML
mit
hnakamur/macbook_setup,hnakamur/macbook_setup,hnakamur/macbook_setup
yaml
## Code Before: --- zsh_rc_dir: ~/.zshrc.d zsh_rc_files: - git.zsh - git_completion.zsh - git-prompt.sh - prompt.zsh zsh_rc_templates: - history.zsh zsh_path_directories: - "$HOME/bin" - "$HOME/go/bin" - /usr/local/ruby/bin - /usr/local/node/bin - /usr/local/bin zsh_envs: - name: GOPATH value: "{{ go_gopath }}" zsh_m...
--- zsh_rc_dir: ~/.zshrc.d zsh_rc_files: - git.zsh - git_completion.zsh - git-prompt.sh - prompt.zsh zsh_rc_templates: - history.zsh zsh_path_directories: - "$HOME/bin" - "$HOME/go/bin" - /usr/local/ruby/bin - /usr/local/node/bin + - /usr/local/sbin - /usr/local/bin zsh_envs: - name: G...
1
0.035714
1
0
2c792b5f1828b4a2ba7b393e05f179769ea5a7d2
packages/widget-chat/test/test-component.js
packages/widget-chat/test/test-component.js
import React, {Component, PropTypes} from 'react'; import {Provider, connect} from 'react-redux'; import injectSpark from '../src/modules/redux-spark/inject-spark'; function TestWidget(props) { return <div>TestWidget</div>; } function mapStateToProps(state, ownProps) { return Object.assign({}, state.spark, { ...
import React from 'react'; import {connect} from 'react-redux'; import injectSpark from '../src/modules/redux-spark/inject-spark'; function TestWidget() { return <div>TestWidget</div>; } function mapStateToProps(state, ownProps) { return Object.assign({}, state.spark, { spark: ownProps.spark }); } export d...
Fix CI build failures because of linting
fix(widget-chat): Fix CI build failures because of linting
JavaScript
mit
CiscoHRIT/spark-js-sdk,mwegman/spark-js-sdk,urbenlegend/spark-js-sdk,tran2/spark-js-sdk,bbender/spark-js-sdk,nickclar/spark-js-sdk,CiscoHRIT/spark-js-sdk,ciscospark/spark-js-sdk,adamweeks/spark-js-sdk,tran2/spark-js-sdk,ianwremmel/spark-js-sdk,aimeex3/spark-js-sdk,nickclar/spark-js-sdk,ciscospark/spark-js-sdk,mwegman/s...
javascript
## Code Before: import React, {Component, PropTypes} from 'react'; import {Provider, connect} from 'react-redux'; import injectSpark from '../src/modules/redux-spark/inject-spark'; function TestWidget(props) { return <div>TestWidget</div>; } function mapStateToProps(state, ownProps) { return Object.assign({}, sta...
- import React, {Component, PropTypes} from 'react'; + import React from 'react'; - import {Provider, connect} from 'react-redux'; ? ---------- + import {connect} from 'react-redux'; import injectSpark from '../src/modules/redux-spark/inject-spark'; - function TestWidget(props) { ? ---...
6
0.352941
3
3
0c5ca0a44b9309aafdc24ca9c5c980784af43b83
README.md
README.md
A react component that makes <input type='range' /> compatible across all browsers with an optional material design style (cross-browser as well). Demo: [https://Mapker.github.io/react-range-input](https://Mapker.github.io/react-range-input) # Why? It is a [known issue](https://github.com/facebook/react/issues/55...
A react component that makes <input type='range' /> compatible across all browsers with an optional material design style (cross-browser as well). Demo: [https://Mapker.github.io/react-range-input](https://Mapker.github.io/react-range-input) Install via npm: `npm install range-input` # Why? It is a [known is...
Add the npm install command to the readme
Add the npm install command to the readme
Markdown
mit
Mapker/react-range-input,Mapker/react-range-input
markdown
## Code Before: A react component that makes <input type='range' /> compatible across all browsers with an optional material design style (cross-browser as well). Demo: [https://Mapker.github.io/react-range-input](https://Mapker.github.io/react-range-input) # Why? It is a [known issue](https://github.com/facebook...
A react component that makes <input type='range' /> compatible across all browsers with an optional material design style (cross-browser as well). Demo: [https://Mapker.github.io/react-range-input](https://Mapker.github.io/react-range-input) + + Install via npm: + `npm install range-input` # Why? ...
3
0.136364
3
0
43bbafa2ebc49d30ec3fb113df150e22ab631881
hieradata/nodes/donut.dwnet.yaml
hieradata/nodes/donut.dwnet.yaml
droidwiki::default::isnfsserver: true redis::bind: '0.0.0.0' nginx::tls::fullchain: /etc/letsencrypt/live/droidwiki.de-0001/fullchain.pem nginx::tls::privkey: /etc/letsencrypt/live/droidwiki.de-0001/privkey.pem
droidwiki::default::isnfsserver: true redis::bind: '0.0.0.0' nginx::tls::fullchain: /etc/letsencrypt/live/www.droidwiki.org/fullchain.pem nginx::tls::privkey: /etc/letsencrypt/live/www.droidwiki.org/privkey.pem
Change cert location to new one
Change cert location to new one
YAML
mit
droidwiki/operations-puppet,droidwiki/operations-puppet,droidwiki/operations-puppet,droidwiki/operations-puppet
yaml
## Code Before: droidwiki::default::isnfsserver: true redis::bind: '0.0.0.0' nginx::tls::fullchain: /etc/letsencrypt/live/droidwiki.de-0001/fullchain.pem nginx::tls::privkey: /etc/letsencrypt/live/droidwiki.de-0001/privkey.pem ## Instruction: Change cert location to new one ## Code After: droidwiki::default::isnfsse...
droidwiki::default::isnfsserver: true redis::bind: '0.0.0.0' - nginx::tls::fullchain: /etc/letsencrypt/live/droidwiki.de-0001/fullchain.pem ? ^^^^^^^ + nginx::tls::fullchain: /etc/letsencrypt/live/www.droidwiki.org/fullchain.pem ? ...
4
0.8
2
2
b71d39861cc32d6f6b156915fa9e1be24389842f
.travis.yml
.travis.yml
sudo: false language: rust rust: - nightly - beta - stable env: - - NO_STD=1 matrix: exclude: - rust: beta env: NO_STD=1 - rust: stable env: NO_STD=1 script: - ./ci/build.sh - ./ci/test.sh
sudo: false language: rust rust: - nightly - beta - stable env: - - NO_STD=1 matrix: allow_failures: - rust: nightly exclude: - rust: beta env: NO_STD=1 - rust: stable env: NO_STD=1 script: - ./ci/build.sh - ./ci/test.sh
Allow CI failure on nightly.
Allow CI failure on nightly.
YAML
apache-2.0
sebcrozet/alga,sebcrozet/alga
yaml
## Code Before: sudo: false language: rust rust: - nightly - beta - stable env: - - NO_STD=1 matrix: exclude: - rust: beta env: NO_STD=1 - rust: stable env: NO_STD=1 script: - ./ci/build.sh - ./ci/test.sh ## Instruction: Allow CI failure on nightly. ## Code After: sudo: ...
sudo: false language: rust rust: - nightly - beta - stable env: - - NO_STD=1 matrix: + allow_failures: + - rust: nightly exclude: - rust: beta env: NO_STD=1 - rust: stable env: NO_STD=1 script: - ./ci/build.sh - ./ci/test.sh...
2
0.086957
2
0
625a22f9f4bed19a3959317a228c037bfd261fbc
obdalib/obdalib-core/src/main/java/org/obda/query/domain/Function.java
obdalib/obdalib-core/src/main/java/org/obda/query/domain/Function.java
package org.obda.query.domain; /** * This class defines a type of {@link Term} in which it expresses a relation * to one or more other variables in terms of which it may be expressed or on * which its value depends. */ public interface Function extends Term { }
package org.obda.query.domain; import java.util.List; /** * This class defines a type of {@link Term} in which it denotes a mapping of * one or more elements in a set (called the domain of the function) into a * unique element of another set (the range of the function). * <p> * A function expression is a functio...
Add new abstract methods: getTerms() and getArity(). Also, there is a bit modification to the class description.
Add new abstract methods: getTerms() and getArity(). Also, there is a bit modification to the class description.
Java
apache-2.0
clarkparsia/ontop,ConstantB/ontop-spatial,ConstantB/ontop-spatial,eschwert/ontop,ConstantB/ontop-spatial,ontop/ontop,ontop/ontop,eschwert/ontop,clarkparsia/ontop,ontop/ontop,ghxiao/ontop-spatial,ghxiao/ontop-spatial,clarkparsia/ontop,srapisarda/ontop,ghxiao/ontop-spatial,srapisarda/ontop,ontop/ontop,eschwert/ontop,srap...
java
## Code Before: package org.obda.query.domain; /** * This class defines a type of {@link Term} in which it expresses a relation * to one or more other variables in terms of which it may be expressed or on * which its value depends. */ public interface Function extends Term { } ## Instruction: Add new abstract me...
package org.obda.query.domain; + import java.util.List; + /** - * This class defines a type of {@link Term} in which it expresses a relation ? ^^^^^^ ^^^ ^ ^ + * This class defines a type of {@link Term} in which it denotes a mapping of ? ...
34
3.4
31
3
e64337f2ca2e5f1eaff4b97bf736511c7da27022
app/routes/rule-sets/edit.js
app/routes/rule-sets/edit.js
import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.findRecord('rule-set', params.rule_set_id); }, actions: { createSkill() { const skill = this.store.createRecord('skill-definition'); skill.set('ruleSet', this.currentModel); this.currentM...
import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.findRecord('rule-set', params.rule_set_id); }, actions: { createSkill() { const skill = this.store.createRecord('skill-definition'); skill.set('ruleSet', this.currentModel); this.currentM...
Save the rule set after adding a skill
Save the rule set after adding a skill
JavaScript
mit
erbridge/odin,erbridge/odin
javascript
## Code Before: import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.findRecord('rule-set', params.rule_set_id); }, actions: { createSkill() { const skill = this.store.createRecord('skill-definition'); skill.set('ruleSet', this.currentModel); ...
import Ember from 'ember'; export default Ember.Route.extend({ model(params) { return this.store.findRecord('rule-set', params.rule_set_id); }, actions: { createSkill() { const skill = this.store.createRecord('skill-definition'); skill.set('ruleSet', this.currentMode...
1
0.052632
1
0
8d80d817dd45cc620a248683ecb2e857936c6b82
setup.cfg
setup.cfg
[metadata] name = Markups version = attr: markups.__version__ description = A wrapper around various text markups long_description = file: README.rst author = Dmitry Shachnev author_email = mitya57@gmail.com url = https://github.com/retext-project/pymarkups license = BSD 3-Clause License classifiers = Development S...
[metadata] name = Markups version = attr: markups.__version__ description = A wrapper around various text markups long_description = file: README.rst author = Dmitry Shachnev author_email = mitya57@gmail.com url = https://github.com/retext-project/pymarkups license = BSD 3-Clause License classifiers = Development S...
Stop marking the wheel as universal, we no longer support Python 2
Stop marking the wheel as universal, we no longer support Python 2
INI
bsd-3-clause
mitya57/pymarkups,retext-project/pymarkups
ini
## Code Before: [metadata] name = Markups version = attr: markups.__version__ description = A wrapper around various text markups long_description = file: README.rst author = Dmitry Shachnev author_email = mitya57@gmail.com url = https://github.com/retext-project/pymarkups license = BSD 3-Clause License classifiers = ...
[metadata] name = Markups version = attr: markups.__version__ description = A wrapper around various text markups long_description = file: README.rst author = Dmitry Shachnev author_email = mitya57@gmail.com url = https://github.com/retext-project/pymarkups license = BSD 3-Clause License classifiers...
3
0.066667
0
3
87730289ea9115f76b1ab70eb4530c5b688edadf
CHANGELOG.md
CHANGELOG.md
v0.2.0 ------ - use Kubernetes 1.8 libraries - update Service Catalog to v0.1.0-rc2 - add `pprof-address` flag to enable pprof on the address v0.1.3 ------ - fix `service-catalog-insecure` flag not working v0.1.2 ------ - workaround glog mess v0.1.1 ------ - `disable-service-catalog` and `service-catalog-insecure` f...
v0.2.1 ------ - informers respect namespace set on smith command line v0.2.0 ------ - use Kubernetes 1.8 libraries - update Service Catalog to v0.1.0-rc2 - add `pprof-address` flag to enable pprof on the address v0.1.3 ------ - fix `service-catalog-insecure` flag not working v0.1.2 ------ - workaround glog mess v0....
Update changelog for v0.2.1 release
Update changelog for v0.2.1 release
Markdown
apache-2.0
atlassian/smith,atlassian/smith,atlassian/smith
markdown
## Code Before: v0.2.0 ------ - use Kubernetes 1.8 libraries - update Service Catalog to v0.1.0-rc2 - add `pprof-address` flag to enable pprof on the address v0.1.3 ------ - fix `service-catalog-insecure` flag not working v0.1.2 ------ - workaround glog mess v0.1.1 ------ - `disable-service-catalog` and `service-cat...
+ v0.2.1 + ------ + - informers respect namespace set on smith command line + v0.2.0 ------ - use Kubernetes 1.8 libraries - update Service Catalog to v0.1.0-rc2 - add `pprof-address` flag to enable pprof on the address v0.1.3 ------ - fix `service-catalog-insecure` flag not working v0.1.2 --...
4
0.190476
4
0
e85e94d901560cd176883b3522cf0a961759732c
db/Db.py
db/Db.py
import abc import sqlite3 import Config class Db(object): __metaclass__ = abc.ABCMeta def __init__(self): self._connection = self.connect() @abc.abstractmethod def connect(self, config_file = None): raise NotImplementedError("Called method is not implemented") @abc.abstrac...
import abc import sqlite3 from ebroker.Config import Config def getDb(config_file = None): return SQLiteDb(config_file) class Db(object): __metaclass__ = abc.ABCMeta def __init__(self, config_file = None): self._config_file = config_file self._connection = None # make sure attribute ...
Fix various small issues in DB support
Fix various small issues in DB support
Python
mit
vjuranek/e-broker-client
python
## Code Before: import abc import sqlite3 import Config class Db(object): __metaclass__ = abc.ABCMeta def __init__(self): self._connection = self.connect() @abc.abstractmethod def connect(self, config_file = None): raise NotImplementedError("Called method is not implemented") ...
import abc import sqlite3 - import Config + from ebroker.Config import Config + + + def getDb(config_file = None): + return SQLiteDb(config_file) + class Db(object): __metaclass__ = abc.ABCMeta - def __init__(self): - self._connection = self.connect() + def __init__(sel...
41
0.911111
34
7
07ca8ccb4786c9c616c12992a4a13f4cd11b5e35
crowdin.yml
crowdin.yml
files: - source: /languages/YourLanguage.ts translation: /languages/%language%.ts - source: /crash-reporter/languages/YourLanguage.ts translation: /crash-reporter/languages/%language%.ts
files: - source: /src/languages/YourLanguage.ts translation: /src/languages/%language%.ts - source: /src/crash-reporter/languages/YourLanguage.ts translation: /src/crash-reporter/languages/%language%.ts
Update Crowdin settings following reorg
Update Crowdin settings following reorg
YAML
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
yaml
## Code Before: files: - source: /languages/YourLanguage.ts translation: /languages/%language%.ts - source: /crash-reporter/languages/YourLanguage.ts translation: /crash-reporter/languages/%language%.ts ## Instruction: Update Crowdin settings following reorg ## Code After: files: - source: /src/language...
files: - - source: /languages/YourLanguage.ts + - source: /src/languages/YourLanguage.ts ? ++++ - translation: /languages/%language%.ts + translation: /src/languages/%language%.ts ? ++++ - - source: /crash-reporter/languages/YourLanguage.ts + - source: /src/crash-reporte...
8
1.6
4
4
f6611db1d59bbf5fb7d5cfbcccc629b6916d06a3
src/test/run-pass/const-int-sign.rs
src/test/run-pass/const-int-sign.rs
const NEGATIVE_A: bool = (-10i32).is_negative(); const NEGATIVE_B: bool = 10i32.is_negative(); const POSITIVE_A: bool= (-10i32).is_positive(); const POSITIVE_B: bool= 10i32.is_positive(); fn main() { assert!(NEGATIVE_A); assert!(!NEGATIVE_B); assert!(!POSITIVE_A); assert!(POSITIVE_B); }
const NEGATIVE_A: bool = (-10i32).is_negative(); const NEGATIVE_B: bool = 10i32.is_negative(); const POSITIVE_A: bool = (-10i32).is_positive(); const POSITIVE_B: bool = 10i32.is_positive(); const SIGNUM_POS: i32 = 10i32.signum(); const SIGNUM_NIL: i32 = 0i32.signum(); const SIGNUM_NEG: i32 = (-42i32).signum(); fn ma...
Add `const`-ness tests for `i32::signum`
Add `const`-ness tests for `i32::signum`
Rust
apache-2.0
graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,graydon/rust
rust
## Code Before: const NEGATIVE_A: bool = (-10i32).is_negative(); const NEGATIVE_B: bool = 10i32.is_negative(); const POSITIVE_A: bool= (-10i32).is_positive(); const POSITIVE_B: bool= 10i32.is_positive(); fn main() { assert!(NEGATIVE_A); assert!(!NEGATIVE_B); assert!(!POSITIVE_A); assert!(POSITIVE_B); }...
+ const NEGATIVE_A: bool = (-10i32).is_negative(); const NEGATIVE_B: bool = 10i32.is_negative(); - const POSITIVE_A: bool= (-10i32).is_positive(); + const POSITIVE_A: bool = (-10i32).is_positive(); ? + - const POSITIVE_B: bool= 10i32.is_positive(); + const POSITIVE_B: bool = 10i32.is_positiv...
13
1.181818
11
2
9d4f0ee09fb9c73d12263f928d2ea5d06148fcda
example/testagent/test/runtests.sh
example/testagent/test/runtests.sh
set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out echo "Run testagent to convert $input into $output" # Remove lines with timestamps fr...
set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out output_tmp="$name-${LIBOFP_DEFAULT_PORT}.out" echo "Run testagent to convert $input i...
Make sure multiple tests can run in parallel.
Make sure multiple tests can run in parallel.
Shell
mit
byllyfish/oftr,byllyfish/oftr,byllyfish/libofp,byllyfish/libofp,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr
shell
## Code Before: set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out echo "Run testagent to convert $input into $output" # Remove lines wi...
set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out + output_tmp="$name-${LIBOFP_DEFAULT_PORT}.out" echo "Run...
5
0.238095
3
2
aee358642015f5453dcca6831bc3f3a6c6df22e7
atom/browser/api/atom_api_menu_views.h
atom/browser/api/atom_api_menu_views.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom_api_menu.h" #include ...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom_api_menu.h" #include ...
Fix missing PopupAt overrides on windows/linux
Fix missing PopupAt overrides on windows/linux Auditors: 47e4a4954d6a66edd1210b9b46e0a144c1078e87@bsclifton
C
mit
brave/electron,brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron
c
## Code Before: // Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom_api_m...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #define ATOM_BROWSER_API_ATOM_API_MENU_VIEWS_H_ #include <map> #include <memory> #include "atom/browser/api/atom...
3
0.071429
2
1