commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
cd26c3bb7fd74fbfb5ed1fb5dd902239f85d426a
spec/fixtures/factories.rb
spec/fixtures/factories.rb
FactoryGirl.define do factory :user do sequence(:uid) { |n| "uid-#{n}"} sequence(:name) { |n| "Joe Bloggs #{n}" } sequence(:email) { |n| "joe#{n}@bloggs.com" } if defined?(GDS::SSO::Config) # Grant permission to signin to the app using the gem permissions { ["signin"] } end end facto...
FactoryGirl.define do factory :user do sequence(:uid) { |n| "uid-#{n}"} sequence(:name) { |n| "Joe Bloggs #{n}" } sequence(:email) { |n| "joe#{n}@bloggs.com" } if defined?(GDS::SSO::Config) # Grant permission to signin to the app using the gem permissions { ["signin"] } end end facto...
Add factory for gds_editor User
Add factory for gds_editor User
Ruby
mit
alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher,alphagov/specialist-publisher,alphagov/specialist-publisher,alphagov/specialist-publisher-rebuild
ruby
## Code Before: FactoryGirl.define do factory :user do sequence(:uid) { |n| "uid-#{n}"} sequence(:name) { |n| "Joe Bloggs #{n}" } sequence(:email) { |n| "joe#{n}@bloggs.com" } if defined?(GDS::SSO::Config) # Grant permission to signin to the app using the gem permissions { ["signin"] } en...
ce86f13553e97e3e86f8c07bf09228895aacd3c5
scripts/master/factory/syzygy_commands.py
scripts/master/factory/syzygy_commands.py
from buildbot.steps import shell from master.factory import commands class SyzygyCommands(commands.FactoryCommands): """Encapsulates methods to add Syzygy commands to a buildbot factory.""" def __init__(self, factory=None, target=None, build_dir=None, target_platform=None, target_arch=None): ...
from buildbot.steps import shell from master.factory import commands class SyzygyCommands(commands.FactoryCommands): """Encapsulates methods to add Syzygy commands to a buildbot factory.""" def __init__(self, factory=None, target=None, build_dir=None, target_platform=None, target_arch=None): ...
Fix typos and paths broken in previous CL.
Fix typos and paths broken in previous CL. Review URL: http://codereview.chromium.org/7085037 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@87249 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
python
## Code Before: from buildbot.steps import shell from master.factory import commands class SyzygyCommands(commands.FactoryCommands): """Encapsulates methods to add Syzygy commands to a buildbot factory.""" def __init__(self, factory=None, target=None, build_dir=None, target_platform=None, target...
6c929f04559698a5988aaa3b03d42a03c091fc57
pyes/tests/pyestest.py
pyes/tests/pyestest.py
import unittest from pyes import ES, file_to_attachment from pyes.exceptions import NotFoundException from pprint import pprint import os class ESTestCase(unittest.TestCase): def setUp(self): self.conn = ES('127.0.0.1:9200') try: self.conn.delete_index("test-index") except NotF...
import unittest from pyes import ES, file_to_attachment from pyes.exceptions import NotFoundException from pprint import pprint import os class ESTestCase(unittest.TestCase): def setUp(self): self.conn = ES('127.0.0.1:9200') try: self.conn.delete_index("test-index") except NotF...
Add a checkRaises method to check that an exception is raised, but also return it for futher tests.
Add a checkRaises method to check that an exception is raised, but also return it for futher tests.
Python
bsd-3-clause
mouadino/pyes,Fiedzia/pyes,haiwen/pyes,HackLinux/pyes,haiwen/pyes,Fiedzia/pyes,Fiedzia/pyes,aparo/pyes,aparo/pyes,haiwen/pyes,rookdev/pyes,HackLinux/pyes,jayzeng/pyes,HackLinux/pyes,mavarick/pyes,mavarick/pyes,rookdev/pyes,mavarick/pyes,jayzeng/pyes,mouadino/pyes,aparo/pyes,jayzeng/pyes
python
## Code Before: import unittest from pyes import ES, file_to_attachment from pyes.exceptions import NotFoundException from pprint import pprint import os class ESTestCase(unittest.TestCase): def setUp(self): self.conn = ES('127.0.0.1:9200') try: self.conn.delete_index("test-index") ...
379c0d3e6624481b81f3ec369e052cfb25838159
src/patch/replace-child.js
src/patch/replace-child.js
import dom from '../vdom/dom'; import realNode from '../util/real-node'; export default function (src, dst) { const realNodeSrc = realNode(src); realNodeSrc.parentNode.replaceChild(dom(dst), realNodeSrc); }
import dom from '../vdom/dom'; import realNode from '../util/real-node'; export default function (src, dst) { const realNodeSrc = realNode(src); realNodeSrc.parentNode && realNodeSrc.parentNode.replaceChild(dom(dst), realNodeSrc); }
Fix issue where a parent was null, possibly from a node that was already patched.
Fix issue where a parent was null, possibly from a node that was already patched.
JavaScript
mit
skatejs/dom-diff
javascript
## Code Before: import dom from '../vdom/dom'; import realNode from '../util/real-node'; export default function (src, dst) { const realNodeSrc = realNode(src); realNodeSrc.parentNode.replaceChild(dom(dst), realNodeSrc); } ## Instruction: Fix issue where a parent was null, possibly from a node that was already pa...
2ba5433c4cd144506c821627f575f11e77c73800
src/components/widgets/PeopleAvatar.vue
src/components/widgets/PeopleAvatar.vue
<template> <span class="avatar has-text-centered" :style="{ background: getAvatarColor(person), width: (size || 40) +'px', height: (size || 40) + 'px', 'font-size': (fontSize || 18) + 'px' }"> <span> {{ generateAvatar(person) }} </span> </span> </template> <script> import colors fr...
<template> <span class="avatar has-text-centered" :style="{ background: person.color, width: (size || 40) +'px', height: (size || 40) + 'px', 'font-size': (fontSize || 18) + 'px' }"> <span> {{ person.initials }} </span> </span> </template> <script> export default { name: 'person-...
Use precomputed data to generate person avatars
Use precomputed data to generate person avatars
Vue
agpl-3.0
cgwire/kitsu,cgwire/kitsu
vue
## Code Before: <template> <span class="avatar has-text-centered" :style="{ background: getAvatarColor(person), width: (size || 40) +'px', height: (size || 40) + 'px', 'font-size': (fontSize || 18) + 'px' }"> <span> {{ generateAvatar(person) }} </span> </span> </template> <script> ...
0db4a1f464545c68aa835cb6fe5a164f25033ab1
commands/eval.js
commands/eval.js
const now = require('performance-now'); module.exports = { help: { name: 'eval', desc: 'Runs a JavaScript snippet', usage: '<js snippet>', aliases: ['e'] }, exec: (client, msg, params) => { let time = now(); let input = params.join(' '); try { let message = msg; let outp...
const now = require('performance-now'); module.exports = { help: { name: 'eval', desc: 'Runs a JavaScript snippet', usage: '<js snippet>', aliases: ['e'] }, exec: (client, msg, params) => { let time = now(); let input = params.join(' '); try { let message = msg, self = client,...
Add removal of email address
Add removal of email address
JavaScript
mit
vzwGrey/discord-selfbot
javascript
## Code Before: const now = require('performance-now'); module.exports = { help: { name: 'eval', desc: 'Runs a JavaScript snippet', usage: '<js snippet>', aliases: ['e'] }, exec: (client, msg, params) => { let time = now(); let input = params.join(' '); try { let message = msg...
f6c86e2a5eb3da32cffe5170f22d5dbaea52a314
app/models/people_identifier.rb
app/models/people_identifier.rb
class PeopleIdentifier attr_accessor :params, :people def initialize(params) @params = params end def people @people ||= if params[:email] # annoying that you can't do case insensitive without a regex Person.where(email: regexp_for(params[:email])) e...
class PeopleIdentifier attr_accessor :params, :people def initialize(params) @params = params end def people @people ||= if params[:email] # annoying that you can't do case insensitive without a regex Person.where(email: regexp_for(params[:email])) e...
Add handling of name search across cities
Add handling of name search across cities Closes #356
Ruby
agpl-3.0
opengovernment/askthem,mapineda/askthem,opengovernment/askthem,opengovernment/askthem,mapineda/askthem,opengovernment/askthem,mapineda/askthem,mapineda/askthem
ruby
## Code Before: class PeopleIdentifier attr_accessor :params, :people def initialize(params) @params = params end def people @people ||= if params[:email] # annoying that you can't do case insensitive without a regex Person.where(email: regexp_for(params[:email])) ...
439f8f25fd6b256ca099ffb419bfb449f5fe38ed
octokit/statuses.go
octokit/statuses.go
package octokit import ( "fmt" "time" ) type Status struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` State string `json:"state"` TargetUrl string `json:"target_url"` Description string `json:"description"` Id int `json:"id"` Url ...
package octokit import ( "fmt" "time" ) type Status struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` State string `json:"state"` TargetUrl string `json:"target_url"` Description string `json:"description"` Id int ...
Add Creator to Status API
Add Creator to Status API
Go
mit
dev4mobile/hub,rlugojr/hub,nmfzone/hub,terry2000/hub,codydaig/hub,jingweno/hub,codydaig/hub,naru0504/hub,isundaylee/hub,aspiers/hub,dongjoon-hyun/hub,dongjoon-hyun/hub,ASidlinskiy/hub,cpick/hub,sbp/hub,github/hub,xantage/hub,boris-rea/hub,hopil/hub,ASidlinskiy/hub,pankona/hub,AndBicScadMedia/hub,isundaylee/hub,rlugojr/...
go
## Code Before: package octokit import ( "fmt" "time" ) type Status struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` State string `json:"state"` TargetUrl string `json:"target_url"` Description string `json:"description"` Id int `json...
6346bb8c2e7534ae0de5e9495018f611d99f56f1
lib/welcome.md
lib/welcome.md
You are one of the first people to use GitHub's new text editor! Here is what you need to know. 1. If you only remember one thing make it `cmd-shift-P`. This keystroke toggles the command palette, which lists every Atom command. Yes, you can try it now! Press `cmd-shift-P`, type `markdown` and press enter. It will tr...
You are one of the first people to use GitHub's new text editor! Here is what you need to know. 1. If you only remember one thing make it `cmd-shift-P`. This keystroke toggles the command palette, which lists every Atom command. Yes, you can try it now! Press `cmd-shift-P`, type `markdown` and press enter. It will tr...
Add link to Atom IRC channel
Add link to Atom IRC channel
Markdown
mit
atom/welcome
markdown
## Code Before: You are one of the first people to use GitHub's new text editor! Here is what you need to know. 1. If you only remember one thing make it `cmd-shift-P`. This keystroke toggles the command palette, which lists every Atom command. Yes, you can try it now! Press `cmd-shift-P`, type `markdown` and press e...
45f01526ef99608f897e2482c645876862a8d9df
playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml
playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml
--- ############################################################################### # Pre upgrade checks for known data problems, if this playbook fails you should # contact support. If you're not supported contact users@lists.openshift.com ###############################################################################...
--- ############################################################################### # Pre upgrade checks for known data problems, if this playbook fails you should # contact support. If you're not supported contact users@lists.openshift.com ###############################################################################...
Fix preupgrade authorization objects are in sync
Fix preupgrade authorization objects are in sync Currently, this task is executed based on openshift_version. openshift_version is based on the upgrade target, thus not the currently install versions. This commit ensures that the task executes as intended. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1508301
YAML
apache-2.0
akram/openshift-ansible,abutcher/openshift-ansible,twiest/openshift-ansible,markllama/openshift-ansible,akubicharm/openshift-ansible,nak3/openshift-ansible,maxamillion/openshift-ansible,sosiouxme/openshift-ansible,twiest/openshift-ansible,sosiouxme/openshift-ansible,zhiwliu/openshift-ansible,maxamillion/openshift-ansib...
yaml
## Code Before: --- ############################################################################### # Pre upgrade checks for known data problems, if this playbook fails you should # contact support. If you're not supported contact users@lists.openshift.com ###############################################################...
78bf9b0929fabe082aff2d69ffafae50396b3882
resources/views/components/field/wysiwyg/value.blade.php
resources/views/components/field/wysiwyg/value.blade.php
<div class="dms-display-html" data-value="{{ $value }}"> <button class="dms-view-more-button btn btn-info"> View More <i class="fa fa-plus"></i> </button> <iframe class="dms-display-iframe"> </iframe> </div>
<div class="dms-display-html" data-value="{!! htmlspecialchars($value, ENT_QUOTES) !!}"> <button class="dms-view-more-button btn btn-info"> View More <i class="fa fa-plus"></i> </button> <iframe class="dms-display-iframe"> </iframe> </div>
Fix HTML escaping issue on html display fields
Fix HTML escaping issue on html display fields
PHP
mit
dms-org/web.laravel,dms-org/web.laravel,dms-org/web.laravel
php
## Code Before: <div class="dms-display-html" data-value="{{ $value }}"> <button class="dms-view-more-button btn btn-info"> View More <i class="fa fa-plus"></i> </button> <iframe class="dms-display-iframe"> </iframe> </div> ## Instruction: Fix HTML escaping issue on html display fields ## Code...
682304e135777747d6bc67edc253f618b241dae1
src/Portal.js
src/Portal.js
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import { canUseDOM } from './utils'; class Portal extends React.Component { componentWillUnmount() { if (this.defaultNode) { document.body.removeChild(this.defaultNode); } this.defaultNode = nul...
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { canUseDOM } from './utils'; class Portal extends React.Component { componentWillUnmount() { if (this.defaultNode) { document.body.removeChild(this.defaultNode); } this.defaultNode = null; } ...
Fix portal import from react-dom
Fix portal import from react-dom
JavaScript
mit
tajo/react-portal
javascript
## Code Before: import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import { canUseDOM } from './utils'; class Portal extends React.Component { componentWillUnmount() { if (this.defaultNode) { document.body.removeChild(this.defaultNode); } this.d...
b59b19a33a103e4844a8d02b7096e580aaa915f0
gulpfile.js
gulpfile.js
'use strict'; require('dotenv').load(); var pkg = require('./package.json'), path = require('path'); var gulp = require('gulp'), gutil = require('gulp-util'), inject = require('gulp-inject'), plumber = require('gulp-plumber'), pgbuild = require('gulp-phonegap-build'), bowerFiles = require('ma...
'use strict'; require('dotenv').load(); var pkg = require('./package.json'), path = require('path'); var gulp = require('gulp'), gutil = require('gulp-util'), inject = require('gulp-inject'), plumber = require('gulp-plumber'), pgbuild = require('gulp-phonegap-build'), bowerFiles = require('ma...
Add Inject to default task.
Add Inject to default task.
JavaScript
isc
INTEC-2015-Mobile-Group-6/onesquare,INTEC-2015-Mobile-Group-6/onesquare
javascript
## Code Before: 'use strict'; require('dotenv').load(); var pkg = require('./package.json'), path = require('path'); var gulp = require('gulp'), gutil = require('gulp-util'), inject = require('gulp-inject'), plumber = require('gulp-plumber'), pgbuild = require('gulp-phonegap-build'), bowerFil...
d2b4c45a781eb57ccae1813ff20468c4b6770333
config/ldap.yml
config/ldap.yml
authorizations: &AUTHORIZATIONS allow_unauthenticated_bind: false # group_base: ou=groups,dc=test,dc=com ## Requires config.ldap_check_group_membership in devise.rb be true # Can have multiple values, must match all to be authorized # required_groups: # # If only a group name is given, membership will be ...
authorizations: &AUTHORIZATIONS allow_unauthenticated_bind: false # group_base: ou=groups,dc=test,dc=com ## Requires config.ldap_check_group_membership in devise.rb be true # Can have multiple values, must match all to be authorized # required_groups: # # If only a group name is given, membership will be ...
Use more general variable names for LDAP config
Use more general variable names for LDAP config + Right now the ENV config keys are hardcoded with a "SOMERVILLE_" prefix, doesn't make much sense for us to use when setting up New Bedford's LDAP integration
YAML
mit
studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights
yaml
## Code Before: authorizations: &AUTHORIZATIONS allow_unauthenticated_bind: false # group_base: ou=groups,dc=test,dc=com ## Requires config.ldap_check_group_membership in devise.rb be true # Can have multiple values, must match all to be authorized # required_groups: # # If only a group name is given, mem...
355ec91fe37d78433715c652eee71f2ac14e91cc
README.md
README.md
[![StyleCI](https://styleci.io/repos/75443611/shield?branch=development&style=flat)](https://styleci.io/repos/75443611) [![Code Climate](https://codeclimate.com/github/VATSIM-UK/core/badges/gpa.svg)](https://codeclimate.com/github/VATSIM-UK/core) [![Build Status](https://travis-ci.org/VATSIM-UK/core.svg?branch=producti...
[![StyleCI](https://styleci.io/repos/75443611/shield?branch=development&style=flat)](https://styleci.io/repos/75443611) [![Code Climate](https://codeclimate.com/github/VATSIM-UK/core/badges/gpa.svg)](https://codeclimate.com/github/VATSIM-UK/core) [![Build Status](https://travis-ci.org/VATSIM-UK/core.svg?branch=producti...
Add importing airports to deployment notes
Add importing airports to deployment notes
Markdown
mit
atoff/core,enlim/core,atoff/core,enlim/core,enlim/core
markdown
## Code Before: [![StyleCI](https://styleci.io/repos/75443611/shield?branch=development&style=flat)](https://styleci.io/repos/75443611) [![Code Climate](https://codeclimate.com/github/VATSIM-UK/core/badges/gpa.svg)](https://codeclimate.com/github/VATSIM-UK/core) [![Build Status](https://travis-ci.org/VATSIM-UK/core.svg...
2eaf5b4d236e7d90ca88bab1e41fb280d5b21fc3
spicedham/gottaimportthemall.py
spicedham/gottaimportthemall.py
import spicedham.bayes import spicedham.digitdestroyer import spicedham.nonsensefilter from spicedham.sqlalchemywrapper import SqlAlchemyWrapper
import spicedham.bayes import spicedham.digitdestroyer import spicedham.nonsensefilter try: from spicedham.sqlalchemywrapper import SqlAlchemyWrapper except ImportError: pass
Fix ImportError if sqlalchemy not installed
Fix ImportError if sqlalchemy not installed If sqlalchemy isn't installed, this would try to import the sqlalchemy wrapper and then kick up an ImportError. This changes it so that if there's an ImportError, it gets ignored.
Python
mpl-2.0
mozilla/spicedham,mozilla/spicedham
python
## Code Before: import spicedham.bayes import spicedham.digitdestroyer import spicedham.nonsensefilter from spicedham.sqlalchemywrapper import SqlAlchemyWrapper ## Instruction: Fix ImportError if sqlalchemy not installed If sqlalchemy isn't installed, this would try to import the sqlalchemy wrapper and then kick up a...
9ef096bb067d062ece8bf4310c11759c90e60202
triggers/makewaves.py
triggers/makewaves.py
wavelist = [] for p in range(48): for s in range(24): wave = {'method': 'PUT', 'url': 'http://localhost:3520/scenes/_current'} wave['name'] = 'P{0:02}-S{1:02}'.format(p + 1, s + 1) wave['data'] = {'id': p * 24 + s} wavelist.append(wave) import json import struct for wave in waveli...
import struct wavelist = [] for s in range(12): wave = {'method': 'POST'} wave['url'] = 'http://localhost:3520/scenes/{0}/_load'.format(s + 1) wave['name'] = 'Scene {0:02}'.format(s + 1) wave['data'] = '' wavelist.append(wave) for wave in wavelist: reqdata = '\n'.join((wave['method'], wav...
Update format of wave file generator.
Update format of wave file generator.
Python
apache-2.0
lordjabez/light-maestro,lordjabez/light-maestro,lordjabez/light-maestro,lordjabez/light-maestro
python
## Code Before: wavelist = [] for p in range(48): for s in range(24): wave = {'method': 'PUT', 'url': 'http://localhost:3520/scenes/_current'} wave['name'] = 'P{0:02}-S{1:02}'.format(p + 1, s + 1) wave['data'] = {'id': p * 24 + s} wavelist.append(wave) import json import struct fo...
05c04a24a2131ad591352910bd71b8fd0acb958e
_config.yml
_config.yml
title: loustler 블로그 email: dev.loustler@gmail.com description: | 아직은 모르는 것이 많고 부족한 주니어 개발자 모르는 것이 많기에 항상 학구열에 불타는 개발자 baseurl: "" # the subpath of your site, e.g. /blog url: "http://loustler.io" # the base hostname & protocol for your site timezone: Asia/Seoul repository: loustler/loustler.github.io permalink: /:...
title: loustler 블로그 email: dev.loustler@gmail.com description: | 아직은 모르는 것이 많고 부족한 주니어 개발자 모르는 것이 많기에 항상 학구열에 불타는 개발자 baseurl: "" # the subpath of your site, e.g. /blog url: http://loustler.io # the base hostname & protocol for your site timezone: Asia/Seoul repository: loustler/loustler.github.io permalink: /:ca...
Remove quote and change permalink on configuration.
Remove quote and change permalink on configuration.
YAML
apache-2.0
loustler/loustler.github.io,loustler/loustler.github.io,loustler/loustler.github.io
yaml
## Code Before: title: loustler 블로그 email: dev.loustler@gmail.com description: | 아직은 모르는 것이 많고 부족한 주니어 개발자 모르는 것이 많기에 항상 학구열에 불타는 개발자 baseurl: "" # the subpath of your site, e.g. /blog url: "http://loustler.io" # the base hostname & protocol for your site timezone: Asia/Seoul repository: loustler/loustler.github.i...
d91d0002bf70abde959f29151368c48ca357cc77
src/commands/setup_extraterm_fish.fish
src/commands/setup_extraterm_fish.fish
if test -n "$EXTRATERM_COOKIE" echo "Setting up Extraterm support." # Put our enhanced commands at the start of the PATH. set -l filedir (dirname (status -f)) set -x PATH $PWD/$filedir $PATH function extraterm_preexec -e fish_preexec echo -n -e -s "\033&" $EXTRATERM_COOKIE ";2;fish\007"...
if test -n "$EXTRATERM_COOKIE" echo "Setting up Extraterm support." # Put our enhanced commands at the start of the PATH. set -l filedir (dirname (status -f)) set -x PATH (realpath $filedir) $PATH function extraterm_preexec -e fish_preexec echo -n -e -s "\033&" $EXTRATERM_COOKIE ";2;fis...
Fix for the fish shell integration and the path setting. The problem only affected fish on cygwin.
Fix for the fish shell integration and the path setting. The problem only affected fish on cygwin.
fish
mit
sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm
fish
## Code Before: if test -n "$EXTRATERM_COOKIE" echo "Setting up Extraterm support." # Put our enhanced commands at the start of the PATH. set -l filedir (dirname (status -f)) set -x PATH $PWD/$filedir $PATH function extraterm_preexec -e fish_preexec echo -n -e -s "\033&" $EXTRATERM_COOK...
a97463f6c90434039bcd550ae2c103993c376561
files/accounting/quota.awk
files/accounting/quota.awk
function dbstr(s) { if (s) { return "'" s "'" } else { return "NULL" } } function dbi(i) { if (i >= 0) { return i } else { return "NULL" } } BEGIN { FS="[ \t/]+" print "INSERT INTO measure (name) VALUES ('quota');"; } { used=$1 user=$4 print "INSERT INTO quota (id_measure, user, used) VALUES (last_insert_i...
function dbstr(s) { if (s) { return "'" s "'" } else { return "NULL" } } function dbi(i) { if (i >= 0) { return i } else { return "NULL" } } BEGIN { FS="[ \t/]+" print "INSERT INTO measure (name) VALUES ('quota');"; } /^[0-9]+[ ]+[0-9]+[ ]+\/.*/ { used=$1 user=$4 print "INSERT INTO quota (id_measure, use...
Support also different version of Hadoop (=Fedora).
Support also different version of Hadoop (=Fedora).
Awk
mit
MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop,MetaCenterCloudPuppet/cesnet-site_hadoop
awk
## Code Before: function dbstr(s) { if (s) { return "'" s "'" } else { return "NULL" } } function dbi(i) { if (i >= 0) { return i } else { return "NULL" } } BEGIN { FS="[ \t/]+" print "INSERT INTO measure (name) VALUES ('quota');"; } { used=$1 user=$4 print "INSERT INTO quota (id_measure, user, used) VALUE...
2404a79ac56d9633cf134fd2dd69d748883fbedc
code/extensions/SiteTreeChangeRecordable.php
code/extensions/SiteTreeChangeRecordable.php
<?php /** * Add to Pages you want changes recorded for * * @author stephen@silverstripe.com.au * @license BSD License http://silverstripe.org/bsd-license/ */ class SiteTreeChangeRecordable extends ChangeRecordable { public function onAfterPublish(&$original) { $this->dataChangeTrackService->track($this->owner...
<?php /** * Add to Pages you want changes recorded for * * @author stephen@silverstripe.com.au * @license BSD License http://silverstripe.org/bsd-license/ */ class SiteTreeChangeRecordable extends ChangeRecordable { public function onAfterPublish(&$original) { $this->dataChangeTrackService->track($this->owner...
FIX Ensure only those with perms to datachanges can view published state
FIX Ensure only those with perms to datachanges can view published state
PHP
bsd-3-clause
silverstripe-australia/datachange-tracker,silverstripe-australia/silverstripe-datachange-tracker
php
## Code Before: <?php /** * Add to Pages you want changes recorded for * * @author stephen@silverstripe.com.au * @license BSD License http://silverstripe.org/bsd-license/ */ class SiteTreeChangeRecordable extends ChangeRecordable { public function onAfterPublish(&$original) { $this->dataChangeTrackService->tr...
35fb2c9d84bd4372b5201a5b3d80741118761780
app/mixins/sl-tooltip-enabled.js
app/mixins/sl-tooltip-enabled.js
import Ember from 'ember'; export default Ember.Mixin.create({ /** * Attribute bindings for mixin's component element * @property {array} attributeBindings */ attributeBindings: [ 'title' ], /** * Enables the tooltip functionality, based on a passed-in `title` attribute * @method...
import Ember from 'ember'; export default Ember.Mixin.create({ /** * Enables the tooltip functionality, based on component's `title` attribute * @method enableTooltip */ enableTooltip: function () { var popoverContent = this.get( 'popover' ); var title = this.get( 'title' ); ...
Enable dynamic update/recreation of sl-tooltip
Enable dynamic update/recreation of sl-tooltip
JavaScript
mit
Suven/sl-ember-components,notmessenger/sl-ember-components,azizpunjani/sl-ember-components,notmessenger/sl-ember-components,SpikedKira/sl-ember-components,juwara0/sl-ember-components,alxyuu/sl-ember-components,erangeles/sl-ember-components,azizpunjani/sl-ember-components,theoshu/sl-ember-components,jonathandavidson/sl-...
javascript
## Code Before: import Ember from 'ember'; export default Ember.Mixin.create({ /** * Attribute bindings for mixin's component element * @property {array} attributeBindings */ attributeBindings: [ 'title' ], /** * Enables the tooltip functionality, based on a passed-in `title` attribut...
903f4f026c96bfc3b9f6a05f18edc0f5a899725f
alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/model/instances/NodeInstance.java
alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/model/instances/NodeInstance.java
package org.alien4cloud.tosca.model.instances; import com.google.common.collect.Maps; import lombok.Getter; import lombok.Setter; import org.alien4cloud.tosca.model.CSARDependency; import org.alien4cloud.tosca.model.templates.NodeTemplate; import org.elasticsearch.annotation.NestedObject; import org.elasticsearch.anno...
package org.alien4cloud.tosca.model.instances; import com.google.common.collect.Maps; import lombok.Getter; import lombok.Setter; import org.alien4cloud.tosca.model.CSARDependency; import org.alien4cloud.tosca.model.templates.NodeTemplate; import org.elasticsearch.annotation.NestedObject; import org.elasticsearch.anno...
Correct service attributes mapping to ES
[ALIEN-3636] Correct service attributes mapping to ES
Java
apache-2.0
alien4cloud/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud
java
## Code Before: package org.alien4cloud.tosca.model.instances; import com.google.common.collect.Maps; import lombok.Getter; import lombok.Setter; import org.alien4cloud.tosca.model.CSARDependency; import org.alien4cloud.tosca.model.templates.NodeTemplate; import org.elasticsearch.annotation.NestedObject; import org.el...
fd5ee5b257ef44549c870abc620527dda9d4a358
src/mm-action/mm-action.js
src/mm-action/mm-action.js
/** * @license * Copyright (c) 2015 MediaMath Inc. All rights reserved. * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt */ Polymer({ is: "mm-action", behaviors: [ StrandTraits.Stylable ], properties: { ver:{ type:String, value:"<<versio...
/** * @license * Copyright (c) 2015 MediaMath Inc. All rights reserved. * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt */ (function (scope) { scope.Action = Polymer({ is: "mm-action", behaviors: [ StrandTraits.Stylable ], properties: { ...
Add correct IIF and scope
Add correct IIF and scope
JavaScript
bsd-3-clause
sassomedia/strand,anthonykoerber/strand,shuwen/strand,dlasky/strand,shuwen/strand,sassomedia/strand,anthonykoerber/strand,dlasky/strand
javascript
## Code Before: /** * @license * Copyright (c) 2015 MediaMath Inc. All rights reserved. * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt */ Polymer({ is: "mm-action", behaviors: [ StrandTraits.Stylable ], properties: { ver:{ type:String, ...
1567914f7c93fb493d22f60858f2b16ef1521380
app/views/projects/tree/_tree_commit_column.html.haml
app/views/projects/tree/_tree_commit_column.html.haml
%span.str-truncated %span.tree_author= commit_author_link(commit, avatar: true, size: 16) = link_to_gfm commit.title, namespace_project_commit_path(@project.namespace, @project, commit.id), class: "tree-commit-link"
%span.str-truncated = link_to_gfm commit.title, namespace_project_commit_path(@project.namespace, @project, commit.id), class: "tree-commit-link"
Drop the user name from tree row to improve readability of commit messages
Drop the user name from tree row to improve readability of commit messages Signed-off-by: Sven Strickroth <a88b7dcd1a9e3e17770bbaa6d7515b31a2d7e85d@cs-ware.de>
Haml
mit
michaKFromParis/gitlabhqold,SVArago/gitlabhq,martinma4/gitlabhq,gopeter/gitlabhq,jrjang/gitlabhq,duduribeiro/gitlabhq,mrb/gitlabhq,theonlydoo/gitlabhq,copystudy/gitlabhq,pulkit21/gitlabhq,rebecamendez/gitlabhq,wangcan2014/gitlabhq,hacsoc/gitlabhq,OlegGirko/gitlab-ce,allistera/gitlabhq,martinma4/gitlabhq,k4zzk/gitlabhq,...
haml
## Code Before: %span.str-truncated %span.tree_author= commit_author_link(commit, avatar: true, size: 16) = link_to_gfm commit.title, namespace_project_commit_path(@project.namespace, @project, commit.id), class: "tree-commit-link" ## Instruction: Drop the user name from tree row to improve readability of commit m...
09e22e74fabf0b2a6093be648c9e4fdccd92cbc3
composer.json
composer.json
{ "name": "bravesheep/crudify-bundle", "description": "Symfony bundle that provides a simple CRUD interface", "license": "MIT", "authors": [ { "name": "Marlon Baeten", "email": "marlon@bravesheep.nl" }, { "name": "Ruben Nijveld", "email": "ruben@bravesheep.nl" } ], "r...
{ "name": "bravesheep/crudify-bundle", "description": "Symfony bundle that provides a simple CRUD interface", "license": "MIT", "authors": [ { "name": "Marlon Baeten", "email": "marlon@bravesheep.nl" }, { "name": "Ruben Nijveld", "email": "ruben@bravesheep.nl" } ], "r...
Remove dependency on symfony/symfony, use framework-bundle instead
Remove dependency on symfony/symfony, use framework-bundle instead
JSON
mit
bravesheep/crudify-bundle,bravesheep/crudify-bundle
json
## Code Before: { "name": "bravesheep/crudify-bundle", "description": "Symfony bundle that provides a simple CRUD interface", "license": "MIT", "authors": [ { "name": "Marlon Baeten", "email": "marlon@bravesheep.nl" }, { "name": "Ruben Nijveld", "email": "ruben@bravesheep.nl"...
7fa366f16e95bf9aacf71399a80462e488f2b5af
src/FrontendApp.js
src/FrontendApp.js
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { init } from './redux/page'; import Page from './components/Page'; class FrontendApp extends Component { componentWillMount() { const path = window.location.pathname; const options = { mode: 'no-cors' }; ...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { init } from './redux/page'; import Page from './components/Page'; class FrontendApp extends Component { componentWillMount() { const path = window.location.pathname .replace(/^\//, '') .replace(/\...
Fix fetching content for paths without dashes
Fix fetching content for paths without dashes
JavaScript
agpl-3.0
bfncs/linopress,bfncs/linopress
javascript
## Code Before: import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { init } from './redux/page'; import Page from './components/Page'; class FrontendApp extends Component { componentWillMount() { const path = window.location.pathname; const options = { mode: 'n...
9a59d6e0df981124edd1be8222f7b2efd41af6f7
Tests/ObjectiveRocksTests-iOS-Bridging-Header.h
Tests/ObjectiveRocksTests-iOS-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <ObjectiveRocks/RocksDB.h> #import <ObjectiveRocks/RocksDBColumnFamily.h> #import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h> #import <ObjectiveRocks/RocksDBIterator.h> #import <ObjectiveRocks/RocksDBP...
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <ObjectiveRocks/RocksDB.h> #import <ObjectiveRocks/RocksDBColumnFamily.h> #import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h> #import <ObjectiveRocks/RocksDBIterator.h> #import <ObjectiveRocks/RocksDBP...
Fix bridging header for iOS Swift tests
Fix bridging header for iOS Swift tests
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
c
## Code Before: // // Use this file to import your target's public headers that you would like to expose to Swift. // #import <ObjectiveRocks/RocksDB.h> #import <ObjectiveRocks/RocksDBColumnFamily.h> #import <ObjectiveRocks/RocksDBColumnFamilyDescriptor.h> #import <ObjectiveRocks/RocksDBIterator.h> #import <Objecti...
be87da264583de39344d5e53565c11969ee5b520
.travis.yml
.travis.yml
before_install: - yes | sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main" - yes | sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" - yes | sudo add-apt-repository ppa:hansjorg/rust - sudo apt-get update install: - sudo ...
before_install: - yes | sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main" - yes | sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" - yes | sudo add-apt-repository ppa:hansjorg/rust - yes | sudo add-apt-repository ppa:cmrx...
Set Travis CI to use Cargo
Set Travis CI to use Cargo
YAML
bsd-3-clause
tempbottle/rust-bindgen,michaelwu/rust-bindgen,jdub/rust-bindgen,catdesk/rust-bindgen,RAOF/rust-bindgen,erickt/rust-bindgen,evadnoob/rust-bindgen,emilio/rust-bindgen,alexander255/rust-bindgen,Twinklebear/rust-bindgen,alexander255/rust-bindgen,erezny/rust-bindgen,alexander255/rust-bindgen,catdesk/rust-bindgen,jdub/rust-...
yaml
## Code Before: before_install: - yes | sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main" - yes | sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" - yes | sudo add-apt-repository ppa:hansjorg/rust - sudo apt-get update in...
e4ae4c4066d9ca25e9d708b68a474734bd35e773
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: branches: ignore: - master docker: - image: circleci/node:7.10 working_directory: ~/repo steps: - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} - v1-dependencies- - run: npm in...
version: 2 jobs: build: branches: ignore: - master docker: - image: circleci/node:7.10 working_directory: ~/repo steps: - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} - v1-dependencies- - run: npm in...
Add service name as environment variable
Add service name as environment variable
YAML
mit
cornerstonejs/cornerstoneTools,chafey/cornerstoneTools,cornerstonejs/cornerstoneTools,cornerstonejs/cornerstoneTools
yaml
## Code Before: version: 2 jobs: build: branches: ignore: - master docker: - image: circleci/node:7.10 working_directory: ~/repo steps: - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} - v1-dependencies- ...
8ca94718dcb0afff9a403db675692fee6ea77681
core/src/test/java/net/tomp2p/utils/TestUtils.java
core/src/test/java/net/tomp2p/utils/TestUtils.java
package net.tomp2p.utils; import java.util.ArrayList; import java.util.Collection; import junit.framework.Assert; import org.junit.Test; public class TestUtils { @SuppressWarnings("unchecked") @Test public void testDifference1() { Collection<String> collection1 = new ArrayList<String>(); ...
package net.tomp2p.utils; import java.util.ArrayList; import java.util.Collection; import org.junit.Assert; import org.junit.Test; public class TestUtils { @Test public void testDifference1() { Collection<String> collection1 = new ArrayList<String>(); Collection<String> result = new ArrayList...
Fix warning in core test
Fix warning in core test
Java
apache-2.0
tomp2p/TomP2P,thirdy/TomP2P,tomp2p/TomP2P,jonaswagner/TomP2P,thirdy/TomP2P,jonaswagner/TomP2P,jonaswagner/TomP2P,jonaswagner/TomP2P,jonaswagner/TomP2P,jonaswagner/TomP2P
java
## Code Before: package net.tomp2p.utils; import java.util.ArrayList; import java.util.Collection; import junit.framework.Assert; import org.junit.Test; public class TestUtils { @SuppressWarnings("unchecked") @Test public void testDifference1() { Collection<String> collection1 = new ArrayList<St...
b640da7d24035de9ff2ddfbb176d14432fae762a
src/reports.rs
src/reports.rs
use nom::{Err, Needed}; pub fn report_error(err: Err<&[u8], u32>) { match err { Err::Code(_) => { println!("Parsing error: Unknown origin"); } Err::Node(_, n) => { println!("Parsing error: Unknown origin"); for e in n { report_error(e); ...
use nom::{Err, Needed}; pub fn report_error(err: Err<&[u8], u32>) { match err { Err::Code(_) => { println!("Parsing error: Unknown origin"); } Err::Node(_, n) => { println!("Parsing error: Unknown origin"); for e in n { report_error(e); ...
Switch reporters to using display format
Switch reporters to using display format
Rust
mit
snewt/bnf
rust
## Code Before: use nom::{Err, Needed}; pub fn report_error(err: Err<&[u8], u32>) { match err { Err::Code(_) => { println!("Parsing error: Unknown origin"); } Err::Node(_, n) => { println!("Parsing error: Unknown origin"); for e in n { re...
4f10d8f6b3369a20ca695534b9adb47845cf0bc2
README.md
README.md
Sample project using Spring Boot with Kotlin and Gradle.
Sample project using Spring Boot with Kotlin and Gradle. ### run app gradlew bootRun ### deploy to bluemix cf push kot -m 128M -p build/libs/kot-0.0.1-SNAPSHOT.jar
Add run and deploy info
Add run and deploy info
Markdown
mit
amichal2/kot,amichal2/kot
markdown
## Code Before: Sample project using Spring Boot with Kotlin and Gradle. ## Instruction: Add run and deploy info ## Code After: Sample project using Spring Boot with Kotlin and Gradle. ### run app gradlew bootRun ### deploy to bluemix cf push kot -m 128M -p build/libs/kot-0.0.1-SNAPSHOT.jar
27e8b2e9bffc50d59db7df8ec1988630babf379d
docs/source/developer/website_design.rst
docs/source/developer/website_design.rst
Website Design (HTML templates/CSS) ############################################################################## This page covers the HTML templates and CSS styling used for the CS Unplugged website.
Website Design (HTML templates/CSS) ############################################################################## This page covers the HTML templates and CSS styling used for the CS Unplugged website. .. warning:: The current design of the website is a work in progress. Expect **everything** to change. In sum...
Add basic details to design docs
Add basic details to design docs
reStructuredText
mit
uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged
restructuredtext
## Code Before: Website Design (HTML templates/CSS) ############################################################################## This page covers the HTML templates and CSS styling used for the CS Unplugged website. ## Instruction: Add basic details to design docs ## Code After: Website Design (HTML templates/CSS)...
b11a3fc69ccef3a95efa06e2620a33a92a82abc8
frontend/app/views/comable/orders/confirm.slim
frontend/app/views/comable/orders/confirm.slim
h1 注文情報確認 .order .bill_address h2 | Billing address = render 'comable/shared/address', address: @order.bill_address .ship_address h2 | Shipping address = render 'comable/shared/address', address: @order.ship_address .details h2 | Order details - @order.order_deliveries...
h1 注文情報確認 .order .bill_address h2 | Billing address = render 'comable/shared/address', address: @order.bill_address if @order.bill_address .ship_address h2 | Shipping address = render 'comable/shared/address', address: @order.ship_address if @order.ship_address .details h2 ...
Add the interim condition to avoid the error
frontend: Add the interim condition to avoid the error
Slim
mit
hyoshida/comable,hyoshida/comable,appirits/comable,appirits/comable,appirits/comable,hyoshida/comable
slim
## Code Before: h1 注文情報確認 .order .bill_address h2 | Billing address = render 'comable/shared/address', address: @order.bill_address .ship_address h2 | Shipping address = render 'comable/shared/address', address: @order.ship_address .details h2 | Order details - @order....
eb0d42c9ab4c06530665eb3836d9f72e417ed620
templates/component/ErrorMessage.html
templates/component/ErrorMessage.html
{% if error is not none %} <span>{{ error }}</span> {% endif %}
{% if error is not none %} <center> <div class="alert alert-danger" role="alert"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <span class="sr-only">Error:</span> {{ error }} </div> </center> {% endif %}
Update error message to look nicer
Update error message to look nicer
HTML
mit
lcdi/Inventory,lcdi/Inventory,lcdi/Inventory,lcdi/Inventory
html
## Code Before: {% if error is not none %} <span>{{ error }}</span> {% endif %} ## Instruction: Update error message to look nicer ## Code After: {% if error is not none %} <center> <div class="alert alert-danger" role="alert"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <sp...
4b39f281fa9e9b09eec9e84c1317af9d0cde0a2c
README.md
README.md
* Open your terminal, write apm install dynapp-atom * Create an empty directory and open it with atom. * In the menu, press `packages`, then `dynapp-atom`, then `create config file` (or press ctrl + alt + c) * Open the new file 'dynappconfig.json' and enter your credentials. * Press `packages` -> `dynapp-atom` -> `dow...
* Ensure you have atom of version >= 1.26.0 * Open your terminal, write apm install dynapp-atom * Create an empty directory and open it with atom. * In the menu, press `packages`, then `dynapp-atom`, then `create config file` (or press ctrl + alt + c) * Open the new file 'dynappconfig.json' and enter your credentials....
Add instruction to readme of atom version.
Add instruction to readme of atom version.
Markdown
mit
wip-opensource/dynapp-atom
markdown
## Code Before: * Open your terminal, write apm install dynapp-atom * Create an empty directory and open it with atom. * In the menu, press `packages`, then `dynapp-atom`, then `create config file` (or press ctrl + alt + c) * Open the new file 'dynappconfig.json' and enter your credentials. * Press `packages` -> `dyna...
f6c6c024ccf93a58aee1f1873c95d59e134ba3e3
roles/repos/rdo/tasks/main.yml
roles/repos/rdo/tasks/main.yml
--- - name: Install rdo repository configuration package: name: centos-release-openstack-{{rdo_release}} state: present when: manage_repos|default(false) and ansible_distribution == 'CentOS'
--- - name: Install rdo repository configuration package: name: centos-release-openstack-{{rdo_release}} state: present when: manage_repos|default(false) and ansible_distribution == 'CentOS' # workaround for centos-qemu-ev and centos-release issue # - name: update centos-release rpm yum: name: centos...
Fix qemu-kvm-ev repo access until ...
Fix qemu-kvm-ev repo access until ... new centos-release rpm is included in base images Change-Id: I9f5c9f7dbed0dc4968f7f602c0c44108dc95747d
YAML
apache-2.0
centos-opstools/opstools-ansible,centos-opstools/opstools-ansible
yaml
## Code Before: --- - name: Install rdo repository configuration package: name: centos-release-openstack-{{rdo_release}} state: present when: manage_repos|default(false) and ansible_distribution == 'CentOS' ## Instruction: Fix qemu-kvm-ev repo access until ... new centos-release rpm is included in base im...
46de02b77c25c633b254dc81ed35da2443b287a9
lighty/wsgi/__init__.py
lighty/wsgi/__init__.py
import functools from .handler import handler from .urls import load_urls, resolve def WSGIApplication(app_settings): '''Create main application handler ''' class Application(object): settings = app_settings urls = load_urls(settings.urls) resolve_url = functools.partial(resolve,...
import functools import os from ..templates.loaders import FSLoader from .handler import handler from .urls import load_urls, resolve class BaseApplication(object): '''Base application class contains obly settings, urls and resolve_url method ''' def __init__(self, settings): self.settings ...
Add ComplexApplication class for WSGI apps that uses not only urls resolving.
Add ComplexApplication class for WSGI apps that uses not only urls resolving.
Python
bsd-3-clause
GrAndSE/lighty
python
## Code Before: import functools from .handler import handler from .urls import load_urls, resolve def WSGIApplication(app_settings): '''Create main application handler ''' class Application(object): settings = app_settings urls = load_urls(settings.urls) resolve_url = functools....
99ef624044ae8513e131f71fb8790ca165b2328b
static/js/utils.js
static/js/utils.js
(function (load, morgen, __morgen) { 'use strict'; morgen.uid = function () { return __morgen.uid++; }; morgen.run = function (options) { load('__morgen_broadcast'); load('__morgen_history'); load('__morgen_data_events'); if (options.watch) load('__...
(function (load, morgen, __morgen) { 'use strict'; function encodeData (data) { var query = []; for (var key in data) query.push(encodeURIComponent(key) + '=' + encodeURIComponent(data[key])); return query.join('&'); } morgen.uid = function () { return __mo...
Add simple support for ajax
Add simple support for ajax
JavaScript
mit
vrde/morgenjs,vrde/morgenjs
javascript
## Code Before: (function (load, morgen, __morgen) { 'use strict'; morgen.uid = function () { return __morgen.uid++; }; morgen.run = function (options) { load('__morgen_broadcast'); load('__morgen_history'); load('__morgen_data_events'); if (options.watch) ...
e866e643f50bfaadb70847f38ee58ddd3ab62300
src/Shell/Shell.php
src/Shell/Shell.php
<?php namespace Studio\Shell; use RuntimeException; use Symfony\Component\Process\Process; class Shell { public static function run($task, $directory = null) { $process = new Process("$task", $directory); $process->setTimeout(3600); $process->run(); if (! $process->isSuccess...
<?php namespace Studio\Shell; use ReflectionClass; use RuntimeException; use Symfony\Component\Process\Process; class Shell { public static function run($task, $directory = null) { $process = static::makeProcess($task, $directory); $process->setTimeout(3600); $process->run(); ...
Add support for Symfony 5 to process runner
Add support for Symfony 5 to process runner Brought up in #98.
PHP
mit
franzliedke/studio
php
## Code Before: <?php namespace Studio\Shell; use RuntimeException; use Symfony\Component\Process\Process; class Shell { public static function run($task, $directory = null) { $process = new Process("$task", $directory); $process->setTimeout(3600); $process->run(); if (! $pr...
5aa041493103e181f277dc57d9a02805c9050cb0
index.js
index.js
var isString = require('./lib/isstring') module.exports = function frameguard (options) { options = options || {} var domain = options.domain var action = options.action var directive if (action === undefined) { directive = 'SAMEORIGIN' } else if (isString(action)) { directive = action.toUpperCas...
var isString = require('./lib/isstring') module.exports = function frameguard (options) { options = options || {} var domain = options.domain var action = options.action var directive if (action === undefined) { directive = 'SAMEORIGIN' } else if (isString(action)) { directive = action.toUpperCas...
Update error messages to be more descriptive and correct
Update error messages to be more descriptive and correct
JavaScript
mit
helmetjs/frameguard
javascript
## Code Before: var isString = require('./lib/isstring') module.exports = function frameguard (options) { options = options || {} var domain = options.domain var action = options.action var directive if (action === undefined) { directive = 'SAMEORIGIN' } else if (isString(action)) { directive = a...
89aa3813432083bc4bc192a27167f7a48d3a482f
index.js
index.js
module.exports = reviewersEditionCompare var ordinal = require('number-to-words').toWordsOrdinal var parse = require('reviewers-edition-parse') var numbers = require('reviewers-edition-parse/numbers') function reviewersEditionCompare (edition) { var parsed = parse(edition) if (parsed) { return ( (parsed...
var ordinal = require('number-to-words').toWordsOrdinal var parse = require('reviewers-edition-parse') var numbers = require('reviewers-edition-parse/numbers') module.exports = function reviewersEditionCompare (edition) { var parsed = parse(edition) if (parsed) { return ( (parsed.draft ? (ordinal(parsed....
Put module.exports and function on same line
Put module.exports and function on same line
JavaScript
mit
kemitchell/reviewers-edition-spell.js
javascript
## Code Before: module.exports = reviewersEditionCompare var ordinal = require('number-to-words').toWordsOrdinal var parse = require('reviewers-edition-parse') var numbers = require('reviewers-edition-parse/numbers') function reviewersEditionCompare (edition) { var parsed = parse(edition) if (parsed) { return...
d1d94e1a82968fd297a28ea8fa80e86c0bdc18c2
README.md
README.md
This simple shell script makes the GNOME Shell Apps Dashboard sort the apps into their respective categories based on the [FreeDesktop standard](https://standards.freedesktop.org/menu-spec/latest/apa.html). ## Results A nicely sorted Apps Dashboard! ![Screenshot](http://i.imgur.com/2o2yIib.png) _App icons are propert...
This simple shell script makes the GNOME Shell Apps Dashboard sort the apps into their respective categories based on the [FreeDesktop standard](https://standards.freedesktop.org/menu-spec/latest/apa.html). ## Results A nicely sorted Apps Dashboard! ![Screenshot](http://i.imgur.com/2o2yIib.png) _App icons are propert...
Update usage instructions for interactive.
Update usage instructions for interactive.
Markdown
mit
BenJetson/gnome-dash-fix,BenJetson/gnome-dash-fix
markdown
## Code Before: This simple shell script makes the GNOME Shell Apps Dashboard sort the apps into their respective categories based on the [FreeDesktop standard](https://standards.freedesktop.org/menu-spec/latest/apa.html). ## Results A nicely sorted Apps Dashboard! ![Screenshot](http://i.imgur.com/2o2yIib.png) _App i...
0e7409970d663854d97ec94f27b9b231ac661210
app/models/notification_subscription.rb
app/models/notification_subscription.rb
class NotificationSubscription < ActiveRecord::Base attr_protected belongs_to :property # validations (email) validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i validates :email, uniqueness: { case_sensitive: false, scope: :property_id, message: "You've already sub...
class NotificationSubscription < ActiveRecord::Base attr_protected belongs_to :property # validations (email) validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i validates :email, uniqueness: { case_sensitive: false, scope: :property_id, message: "You've already sub...
Add method to NotificationSubscription that allows overriding the last_email_sent_at attribute
Add method to NotificationSubscription that allows overriding the last_email_sent_at attribute
Ruby
mit
codeforgso/cityvoice,daguar/cityvoice,daguar/cityvoice,codeforamerica/cityvoice,codeforamerica/cityvoice,codeforgso/cityvoice,ajb/cityvoice,codeforgso/cityvoice,ajb/cityvoice,ajb/cityvoice,daguar/cityvoice,daguar/cityvoice,codeforamerica/cityvoice,ajb/cityvoice,codeforgso/cityvoice,codeforamerica/cityvoice
ruby
## Code Before: class NotificationSubscription < ActiveRecord::Base attr_protected belongs_to :property # validations (email) validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i validates :email, uniqueness: { case_sensitive: false, scope: :property_id, message: "Yo...
caf31eda6e9cc62c47c833b69e7e1fe45d2284f6
plugins/chrome.pushMessaging/README.md
plugins/chrome.pushMessaging/README.md
This plugin allows apps to receive push messages. ## Caveats * chrome.pushMessaging.getChannelId returns an object containing both a channelId to be used for sending push messagings to instances of the app running on desktop, as well as a registrationId to be used for sending push messages to instances of the app ru...
This plugin allows apps to receive push messages. ## Caveats * chrome.pushMessaging.getChannelId returns an object containing both a channelId to be used for sending push messagings to instances of the app running on desktop, as well as a registrationId to be used for sending push messages to instances of the app ru...
Remove Android CORS caveat from pushMessaging
Remove Android CORS caveat from pushMessaging
Markdown
bsd-3-clause
hgl888/mobile-chrome-apps,chirilo/mobile-chrome-apps,MobileChromeApps/mobile-chrome-apps,wudkj/mobile-chrome-apps,liqingzhu/mobile-chrome-apps,liqingzhu/mobile-chrome-apps,MobileChromeApps/mobile-chrome-apps,hgl888/mobile-chrome-apps,chirilo/mobile-chrome-apps,wudkj/mobile-chrome-apps,MobileChromeApps/mobile-chrome-app...
markdown
## Code Before: This plugin allows apps to receive push messages. ## Caveats * chrome.pushMessaging.getChannelId returns an object containing both a channelId to be used for sending push messagings to instances of the app running on desktop, as well as a registrationId to be used for sending push messages to instanc...
71d3eddc886ba95b5d4ab160f76d58f805d99055
app/controllers/users_controller.rb
app/controllers/users_controller.rb
class UsersController < ApplicationController include Concerns::Pageable PER_PAGE = 50 before_filter :validate_page_param, only: :index def index @users = User.not_organization.starred_first.page(params[:page]) end def show @user = User.find_by!(login: params[:login]) @repositories = @user.r...
class UsersController < ApplicationController include Concerns::Pageable PER_PAGE = 50 before_filter :validate_page_param, only: :index def index @users = User.not_organization.starred_first.page(params[:page]) end def show @user = User.find_by!(login: params[:login]) @repositories = @user.r...
Migrate from Sidekiq to Java worker
Migrate from Sidekiq to Java worker
Ruby
mit
k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking
ruby
## Code Before: class UsersController < ApplicationController include Concerns::Pageable PER_PAGE = 50 before_filter :validate_page_param, only: :index def index @users = User.not_organization.starred_first.page(params[:page]) end def show @user = User.find_by!(login: params[:login]) @reposi...
4228caadd9aaa38eed1500477d4564c4091aad02
templates/vote/option_fragment.html
templates/vote/option_fragment.html
{% load markdown %} <div data-option-id="{{ option.id }}" class="vote-option panel panel-default" style="cursor: pointer;"> <div class="panel-body"> <span class="pull-right glyphicon glyphicon-ok"></span> {% if option.picture_url %} <img class="pull-left" width=48px height=64px src="{{ option.picture_ur...
{% load markdown %} <div data-option-id="{{ option.id }}" class="vote-option panel panel-default" style="cursor: pointer;"> <div class="panel-body"> <span class="pull-right glyphicon glyphicon-ok"></span> {% if option.picture_url %} <img class="pull-left" width=48px height=64px src="{{ option.picture_ur...
Add vote number to option fragment for results display
Add vote number to option fragment for results display
HTML
mit
OpenJUB/jay,kuboschek/jay,OpenJUB/jay,kuboschek/jay,kuboschek/jay,OpenJUB/jay
html
## Code Before: {% load markdown %} <div data-option-id="{{ option.id }}" class="vote-option panel panel-default" style="cursor: pointer;"> <div class="panel-body"> <span class="pull-right glyphicon glyphicon-ok"></span> {% if option.picture_url %} <img class="pull-left" width=48px height=64px src="{{ o...
8345a95246587ed2ebf40480c555d3cb4a357e1a
docs/index.rst
docs/index.rst
Welcome to pymt's documentation! ====================================== .. toctree:: :maxdepth: 2 :caption: Contents: readme installation usage modules contributing authors history Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`
.. image:: _static/pymt-logo-header.png :align: center :scale: 50% :alt: Python Modeling Tool :target: https://pymt.readthedocs.org/ PyMT is the "Python Modeling Toolkit". It is an Open Source Python package, developed by the Community Surface Dynamics Modeling System, that provides the necessary tools...
Add a brief overview of pymt with example and logo.
Add a brief overview of pymt with example and logo.
reStructuredText
mit
csdms/pymt,csdms/coupling,csdms/coupling
restructuredtext
## Code Before: Welcome to pymt's documentation! ====================================== .. toctree:: :maxdepth: 2 :caption: Contents: readme installation usage modules contributing authors history Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` ##...
145499bc7d04b6ecedc0131ec1d4be97707b8d20
tests/Integration/Auth/CustomTokenViaGoogleIamTest.php
tests/Integration/Auth/CustomTokenViaGoogleIamTest.php
<?php declare(strict_types=1); namespace Kreait\Firebase\Tests\Integration\Auth; use Kreait\Firebase\Auth; use Kreait\Firebase\Auth\CustomTokenViaGoogleIam; use Kreait\Firebase\Tests\IntegrationTestCase; use Kreait\Firebase\Util\JSON; /** * @internal */ class CustomTokenViaGoogleIamTest extends IntegrationTestCas...
<?php declare(strict_types=1); namespace Kreait\Firebase\Tests\Integration\Auth; use Kreait\Firebase\Auth\CustomTokenViaGoogleIam; use Kreait\Firebase\Exception\AuthException; use Kreait\Firebase\Tests\IntegrationTestCase; use PHPUnit\Framework\AssertionFailedError; use Throwable; /** * @internal */ class CustomT...
Simplify tests for custom tokens via IAM
Simplify tests for custom tokens via IAM
PHP
mit
kreait/firebase-php
php
## Code Before: <?php declare(strict_types=1); namespace Kreait\Firebase\Tests\Integration\Auth; use Kreait\Firebase\Auth; use Kreait\Firebase\Auth\CustomTokenViaGoogleIam; use Kreait\Firebase\Tests\IntegrationTestCase; use Kreait\Firebase\Util\JSON; /** * @internal */ class CustomTokenViaGoogleIamTest extends In...
0772f7dc7c30f827862a67d1fd73c374846aa77d
build.yaml
build.yaml
repositories: remote: - http://repo.fire.dse.vic.gov.au/content/groups/fisg - http://repo1.maven.org/maven2 artifacts: spice_cli: spice:spice-cli:jar:1.0 postgresql: postgresql:postgresql:jar:9.1-901.jdbc4 jtds: net.sourceforge.jtds:jtds:jar:1.2.7 json: org.json:json:jar:20090211
repositories: remote: - http://repo1.maven.org/maven2 artifacts: spice_cli: spice:spice-cli:jar:1.0 postgresql: postgresql:postgresql:jar:9.1-901.jdbc4 jtds: net.sourceforge.jtds:jtds:jar:1.2.7 json: org.json:json:jar:20090211
Remove reference to internal repo
Remove reference to internal repo
YAML
apache-2.0
realityforge/sqlshell,realityforge/sqlshell
yaml
## Code Before: repositories: remote: - http://repo.fire.dse.vic.gov.au/content/groups/fisg - http://repo1.maven.org/maven2 artifacts: spice_cli: spice:spice-cli:jar:1.0 postgresql: postgresql:postgresql:jar:9.1-901.jdbc4 jtds: net.sourceforge.jtds:jtds:jar:1.2.7 json: org.json:json:jar:20090211 ## In...
9e7f0a6b1109cc7bde367fa993f93de73e436adc
app/views/common/_jenkins_js_headers.html.haml
app/views/common/_jenkins_js_headers.html.haml
- content_for :header_tags do = redmine_bootstrap_kit_load(:redmine_bootstrap_kit) = redmine_bootstrap_kit_load(:bootstrap_label) = redmine_bootstrap_kit_load(:bootstrap_modals) = redmine_bootstrap_kit_load(:bootstrap_pagination) = redmine_bootstrap_kit_load(:bootstrap_switch) = redmine_bootstrap_kit_load(:...
- content_for :header_tags do = bootstrap_load_base = bootstrap_load_module(:label) = bootstrap_load_module(:modals) = bootstrap_load_module(:pagination) = bootstrap_load_module(:switch) = bootstrap_load_module(:tables) = bootstrap_load_module(:font_awesome) = stylesheet_link_tag 'application', plugin:...
Use new assets loader method
Use new assets loader method
Haml
mit
jbox-web/redmine_jenkins,jbox-web/redmine_jenkins,jbox-web/redmine_jenkins
haml
## Code Before: - content_for :header_tags do = redmine_bootstrap_kit_load(:redmine_bootstrap_kit) = redmine_bootstrap_kit_load(:bootstrap_label) = redmine_bootstrap_kit_load(:bootstrap_modals) = redmine_bootstrap_kit_load(:bootstrap_pagination) = redmine_bootstrap_kit_load(:bootstrap_switch) = redmine_boot...
453cf75dfb20fcd03c1d16e54b8d062dd1af0737
opal/clearwater/application.rb
opal/clearwater/application.rb
require 'clearwater/store' require 'clearwater/router' require 'clearwater/controller' require 'clearwater/view' module Clearwater class Application attr_reader :store, :router, :controller def initialize options={} @store = options.fetch(:store) { Store.new } @router = options.fet...
require 'clearwater/store' require 'clearwater/router' require 'clearwater/controller' require 'clearwater/view' module Clearwater class Application attr_reader :store, :router, :controller def initialize options={} @store = options.fetch(:store) { Store.new } @router = options.fet...
Clarify why we don't handle some clicks
Clarify why we don't handle some clicks
Ruby
mit
clearwater-rb/clearwater,elia/clearwater,elia/clearwater,clearwater-rb/clearwater
ruby
## Code Before: require 'clearwater/store' require 'clearwater/router' require 'clearwater/controller' require 'clearwater/view' module Clearwater class Application attr_reader :store, :router, :controller def initialize options={} @store = options.fetch(:store) { Store.new } @router ...
cbb0ed5ed66571feba22413472a5fe1a20824dbd
shared_export.py
shared_export.py
import bpy def find_seqs(scene, select_marker): sequences = {} sequence_flags = {} for marker in scene.timeline_markers: if ":" not in marker.name or (select_marker and not marker.select): continue name, what = marker.name.rsplit(":", 1) if name not in sequences: ...
import bpy def find_seqs(scene, select_marker): sequences = {} sequence_flags = {} for marker in scene.timeline_markers: if ":" not in marker.name or (select_marker and not marker.select): continue name, what = marker.name.rsplit(":", 1) what = what.lower() if...
Make sequence marker types (:type) case insensitive
Make sequence marker types (:type) case insensitive
Python
mit
qoh/io_scene_dts,portify/io_scene_dts
python
## Code Before: import bpy def find_seqs(scene, select_marker): sequences = {} sequence_flags = {} for marker in scene.timeline_markers: if ":" not in marker.name or (select_marker and not marker.select): continue name, what = marker.name.rsplit(":", 1) if name not in...
5580c502d5f9f9a1c81536bed0c5e36806e6aeea
.travis.yml
.travis.yml
language: go before_install: - sudo apt-get install -y lm-sensors - go get github.com/modocache/gover - go get github.com/axnion/hrdwr script: - go vet github.com/axnion/hrdwr - go test -v ./... - go test -race -coverprofile=coverage.txt -covermode=atomic after_success: - bash <(curl -s https://codecov.i...
language: go dist: trusty sudo: required before_install: - sudo apt-get install -y lm-sensors - go get github.com/modocache/gover - go get github.com/axnion/hrdwr script: - go vet github.com/axnion/hrdwr - go test -v ./... - go test -race -coverprofile=coverage.txt -covermode=atomic after_success: - bash...
Change build environment on TravicCI to Ubuntu 14.04
Change build environment on TravicCI to Ubuntu 14.04
YAML
mit
axnion/hrdwr,axnion/hrdwr
yaml
## Code Before: language: go before_install: - sudo apt-get install -y lm-sensors - go get github.com/modocache/gover - go get github.com/axnion/hrdwr script: - go vet github.com/axnion/hrdwr - go test -v ./... - go test -race -coverprofile=coverage.txt -covermode=atomic after_success: - bash <(curl -s h...
b0096035813b70817921342e92bfe2ef4c415b53
app/views/alternate_names/show.html.haml
app/views/alternate_names/show.html.haml
%p#notice= notice %p %b Alternate name: = @alternate_name.name %p %b Crop: = link_to @alternate_name.crop - if can? :edit, @alternate_name = link_to 'Edit', edit_alternate_name_path(@alternate_name), :class => 'btn btn-default btn-xs' \| = link_to 'Back', alternate_names_path
%p#notice= notice %p %b Alternate name: = @alternate_name.name %p %b Crop: = link_to @alternate_name.crop, @alternate_name.crop - if can? :edit, @alternate_name = link_to 'Edit', edit_alternate_name_path(@alternate_name), :class => 'btn btn-default btn-xs' \| = link_to 'Back', alternate_names_path
Fix link to crop on alternate name page
Fix link to crop on alternate name page
Haml
agpl-3.0
yez/growstuff,cesy/growstuff,dv2/growstuff,jdanielnd/growstuff,Br3nda/growstuff,oshiho3/growstuff,CarsonBills/GrowStuffCMB,pozorvlak/growstuff,dv2/growstuff,gustavor-souza/growstuff,pozorvlak/growstuff,yez/growstuff,josefdaly/growstuff,GabrielSandoval/growstuff,sksavant/growstuff,josefdaly/growstuff,josefdaly/growstuff...
haml
## Code Before: %p#notice= notice %p %b Alternate name: = @alternate_name.name %p %b Crop: = link_to @alternate_name.crop - if can? :edit, @alternate_name = link_to 'Edit', edit_alternate_name_path(@alternate_name), :class => 'btn btn-default btn-xs' \| = link_to 'Back', alternate_names_path ## Instruction...
16a64a47c2a30143c3f1d2d4f69e7044bca1f18b
README.md
README.md
Asimba Single Sign On solution.
gluu-Asimba Single Sign On solution. gluu-Asimba provides an open source Single Signon solution, that offers enterprise level functionality without enterprise level complexities. This project website will be the place to follow and participate in the activity. gluu-Asimba is an application for managing access, suppo...
Rename the project to gluu-Asimba.
Rename the project to gluu-Asimba.
Markdown
agpl-3.0
GluuFederation/Asimba,GluuFederation/gluu-Asimba
markdown
## Code Before: Asimba Single Sign On solution. ## Instruction: Rename the project to gluu-Asimba. ## Code After: gluu-Asimba Single Sign On solution. gluu-Asimba provides an open source Single Signon solution, that offers enterprise level functionality without enterprise level complexities. This project website wi...
cc08018218d9060bf20b40df0a893ceb9f7a7ad8
app/views/members/_badge.html.erb
app/views/members/_badge.html.erb
<!-- BEGIN ODI MEMBER BADGE --> <div class="odi-member <%= @size %>"> <%= stylesheet_link_tag "badge.css" %> <%= link_to image_tag("#{@size || "standard"}-badge.png"), member_url(@member) %> <ul class="details"> <li>Open Data Institute Partner</li> <li>Active since <%= @member.created_at.to_date %></li> ...
<!-- BEGIN ODI MEMBER BADGE --> <div class="odi-member <%= @size %>"> <%= stylesheet_link_tag "badge.css" %> <%= link_to image_tag("badge/#{@member.product_name}/#{@size || "standard"}-badge.png", alt: "Open Data Institute #{@member.product_name.titleize}"), member_url(@member) %> <ul class="details"> <li>Ope...
Add membership level to badge
Add membership level to badge
HTML+ERB
mit
theodi/member-directory,theodi/member-directory,theodi/member-directory
html+erb
## Code Before: <!-- BEGIN ODI MEMBER BADGE --> <div class="odi-member <%= @size %>"> <%= stylesheet_link_tag "badge.css" %> <%= link_to image_tag("#{@size || "standard"}-badge.png"), member_url(@member) %> <ul class="details"> <li>Open Data Institute Partner</li> <li>Active since <%= @member.created_at.t...
643f075101d1f31652c2156cc84e071f3ae4f275
utils/upload-bike.js
utils/upload-bike.js
const assert = require('assert') const fs = require('fs') /** * Upload bike to s3 * @param {Object} s3 Client for s3 * @param {Object} config * @param {String} config.BikeId Bike UUID * @param {String} config.BikeshedId Bikeshed UUID * @param {String} config.file Image location * @returns {Promise} Upload bike ...
const assert = require('assert') const fs = require('fs') /** * Upload bike to s3 * @param {Object} s3 Client instance of s3 * @param {Object} config * @param {string} config.BikeId Bike UUID * @param {string} config.BikeshedId Bikeshed UUID * @param {string} config.file Image location * @returns {Promise} Uplo...
Update upload bike docs to use lower case primitives
Update upload bike docs to use lower case primitives
JavaScript
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
javascript
## Code Before: const assert = require('assert') const fs = require('fs') /** * Upload bike to s3 * @param {Object} s3 Client for s3 * @param {Object} config * @param {String} config.BikeId Bike UUID * @param {String} config.BikeshedId Bikeshed UUID * @param {String} config.file Image location * @returns {Promi...
7513968732441a2bd3ecd720d821e12a1311a38b
installer/js/setup/repositories/RepositoryList.js
installer/js/setup/repositories/RepositoryList.js
import React, { Component, PropTypes } from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow } from 'material-ui/Table'; import { getRepositories } from '../../installer/github'; import Repository from './Repository'; import Pagination from './Pagination'; const accessToken = window.local...
import React, { Component, PropTypes } from 'react'; import Progress from 'material-ui/CircularProgress'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow } from 'material-ui/Table'; import { getRepositories } from '../../installer/github'; import Repository from './Repository'; import Pagination f...
Add a loader while loading repositories
Add a loader while loading repositories
JavaScript
mit
marmelab/sedbot.js
javascript
## Code Before: import React, { Component, PropTypes } from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow } from 'material-ui/Table'; import { getRepositories } from '../../installer/github'; import Repository from './Repository'; import Pagination from './Pagination'; const accessToke...
3a21926a5932cccfb9dddf2e841c0ded865c88ef
modules/govuk_jenkins/templates/jobs/smokey_deploy.yaml.erb
modules/govuk_jenkins/templates/jobs/smokey_deploy.yaml.erb
--- - scm: name: smokey_Smokey_Deploy scm: - git: url: git@github.com:alphagov/smokey.git branches: - master - job: name: Smokey_Deploy display-name: Smokey_Deploy project-type: freestyle properties: - github: url: https://github...
--- - scm: name: smokey_Smokey_Deploy scm: - git: url: git@github.com:alphagov/smokey.git branches: - master - job: name: Smokey_Deploy display-name: Smokey_Deploy project-type: freestyle properties: - github: url: https://github...
Update Smokey deploy job for AWS
Update Smokey deploy job for AWS In AWS we need to find the monitoring box to deploy to as the hostname is not hardcoded.
HTML+ERB
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
html+erb
## Code Before: --- - scm: name: smokey_Smokey_Deploy scm: - git: url: git@github.com:alphagov/smokey.git branches: - master - job: name: Smokey_Deploy display-name: Smokey_Deploy project-type: freestyle properties: - github: url...
0df500f4498d4b9b99a33244090288e049c759e1
.travis.yml
.travis.yml
language: go go: - 1.4 - tip before_install: - mkdir -p $HOME/gopath/src/sourcegraph.com/sourcegraph - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/sourcegraph.com/sourcegraph/go-sourcegraph - export TRAVIS_BUILD_DIR=$HOME/gopath/src/sourcegraph.com/sourcegraph/go-sourcegraph install: - go get -t -d -v ./... &&...
language: go go: - 1.5 - tip matrix: allow_failures: - go: tip fast_finish: true before_install: - mkdir -p $HOME/gopath/src/sourcegraph.com/sourcegraph - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/sourcegraph.com/sourcegraph/go-sourcegraph - export TRAVIS_BUILD_DIR=$HOME/gopath/src/sourcegraph.com/sour...
Use Go 1.5; make tip allowed failure with fast finish.
Travis: Use Go 1.5; make tip allowed failure with fast finish. Move build step into script; keep downloading dependencies as an install step. This means if a dependency fails to be installed, the build will be classified as an build error. But if building the library itself fails, that's classified as a build failure.
YAML
mit
sourcegraph/go-sourcegraph
yaml
## Code Before: language: go go: - 1.4 - tip before_install: - mkdir -p $HOME/gopath/src/sourcegraph.com/sourcegraph - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/sourcegraph.com/sourcegraph/go-sourcegraph - export TRAVIS_BUILD_DIR=$HOME/gopath/src/sourcegraph.com/sourcegraph/go-sourcegraph install: - go get -...
43c3b71aa4fc805683b5cad59e8d7b3984eafdcf
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build-remote: docker: - image: ubuntu:18.04 steps: - run: apt-get update && apt-get install -y curl git - run: bash -c "$(curl -fsSL https://bit.ly/dfdotfiles)" && source ~/.bashrc build-local: docker: - image: ubuntu:18.04 steps: - checkout - run...
version: 2 jobs: build-remote: environment: SHELL: /bin/bash docker: - image: ubuntu:18.04 steps: - run: apt-get update && apt-get install -y curl git - run: bash -c "$(curl -fsSL https://bit.ly/dfdotfiles)" && source ~/.bashrc build-local: environment: SHELL: /bin/bash...
Set SHELL var for CircleCi 2.0
Set SHELL var for CircleCi 2.0
YAML
mit
dueyfinster/dotfiles
yaml
## Code Before: version: 2 jobs: build-remote: docker: - image: ubuntu:18.04 steps: - run: apt-get update && apt-get install -y curl git - run: bash -c "$(curl -fsSL https://bit.ly/dfdotfiles)" && source ~/.bashrc build-local: docker: - image: ubuntu:18.04 steps: - chec...
39fae60c1916666641d70457b32e4fbae862e7c4
.circleci/config.yml
.circleci/config.yml
version: 2.1 jobs: build: docker: - image: circleci/ruby:2.5-node - image: circleci/mysql:5.7.22 environment: MYSQL_ROOT_HOST: '%' MYSQL_USER: 'root' MYSQL_ROOT_PASSWORD: 'root' MYSQL_DATABASE: 'qpixel_test' working_directory: ~/qpixel steps: ...
version: 2.1 jobs: build: docker: - image: circleci/ruby:2.5-node - image: circleci/mysql:5.7.22 environment: MYSQL_ROOT_HOST: '%' MYSQL_USER: 'root' MYSQL_ROOT_PASSWORD: 'root' MYSQL_DATABASE: 'qpixel_test' - image: circleci/redis:6.0.0 worki...
Add redis to Circle bundle
Add redis to Circle bundle
YAML
agpl-3.0
ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel
yaml
## Code Before: version: 2.1 jobs: build: docker: - image: circleci/ruby:2.5-node - image: circleci/mysql:5.7.22 environment: MYSQL_ROOT_HOST: '%' MYSQL_USER: 'root' MYSQL_ROOT_PASSWORD: 'root' MYSQL_DATABASE: 'qpixel_test' working_directory: ~/qpix...
cd9e1bc8f5ac78732e249c8eb2cd35eac79c8935
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: machine: true steps: - add_ssh_keys: fingerprints: - "50:b7:1d:44:fd:c4:f4:06:9a:4c:0f:16:0c:e1:3b:91" - checkout - run: name: Install Docker client command: | set -x VER="17.03.0-ce" curl -...
version: 2 jobs: build: machine: true working_directory: /home/circleci/project steps: - add_ssh_keys: fingerprints: - "50:b7:1d:44:fd:c4:f4:06:9a:4c:0f:16:0c:e1:3b:91" - checkout - run: name: Install Docker Compose command: | pip ins...
Remove docker install and use pip for docker-compose
Remove docker install and use pip for docker-compose
YAML
apache-2.0
girder/girder_worker,girder/girder_worker,girder/girder_worker
yaml
## Code Before: version: 2 jobs: build: machine: true steps: - add_ssh_keys: fingerprints: - "50:b7:1d:44:fd:c4:f4:06:9a:4c:0f:16:0c:e1:3b:91" - checkout - run: name: Install Docker client command: | set -x VER="17.03.0-ce" ...
6435b1daa004c046d34954a7269f0a2b179a4681
tests/test_mem_leaks.sh
tests/test_mem_leaks.sh
UNIT_TEST=./check_mem_leaks VALGRIND_LOG_FILE=${UNIT_TEST}.valgrind LEAK_MESSAGE="are definitely lost" # This test runs valgrind against the check_mem_leaks unit test # program, looking for memory leaks. If any are found, "exit 1" # is invoked, and one must look through the resulting valgrind log # file for details o...
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")" if test -z "${1}"; then UNIT_TEST="${SCRIPT_PATH}/check_mem_leaks" else UNIT_TEST="${1}" fi VALGRIND_LOG_FILE=${UNIT_TEST}.valgrind LEAK_MESSAGE="are definitely lost" # This test runs valgrind against the check_mem_leaks unit test # program, looking for memory le...
Fix script to work from any path and to take argument
Fix script to work from any path and to take argument Signed-off-by: Mikko Koivunalho <b1070ee6d40473e0bf54e1be38982cfcedc3436a@iki.fi>
Shell
lgpl-2.1
libcheck/check,libcheck/check,libcheck/check,libcheck/check,libcheck/check
shell
## Code Before: UNIT_TEST=./check_mem_leaks VALGRIND_LOG_FILE=${UNIT_TEST}.valgrind LEAK_MESSAGE="are definitely lost" # This test runs valgrind against the check_mem_leaks unit test # program, looking for memory leaks. If any are found, "exit 1" # is invoked, and one must look through the resulting valgrind log # fi...
2f39dfe8be4c19a2353208f31052400ae2bb4bf2
docs/book/plugins/index.rst
docs/book/plugins/index.rst
Sylius Plugins ============== Sylius as a platform has a lot of space for various customizations and extensions. It aims to provide a simple schema for developing plugins. Anything you can imagine can be implemented and added to the Sylius framework as a plugin. What are the plugins for? ------------------------- Th...
Sylius Plugins ============== Sylius as a platform has a lot of space for various customizations and extensions. It aims to provide a simple schema for developing plugins. Anything you can imagine can be implemented and added to the Sylius framework as a plugin. What are the plugins for? ------------------------- Th...
Fix link to plugin list
[README] Fix link to plugin list
reStructuredText
mit
SyliusBot/Sylius,antonioperic/Sylius,antonioperic/Sylius,lchrusciel/Sylius,loic425/Sylius,Zales0123/Sylius,GSadee/Sylius,pamil/Sylius,Arminek/Sylius,Arminek/Sylius,lchrusciel/Sylius,pamil/Sylius,Sylius/Sylius,loic425/Sylius,101medialab/Sylius,SyliusBot/Sylius,diimpp/Sylius,diimpp/Sylius,SyliusBot/Sylius,pamil/Sylius,lc...
restructuredtext
## Code Before: Sylius Plugins ============== Sylius as a platform has a lot of space for various customizations and extensions. It aims to provide a simple schema for developing plugins. Anything you can imagine can be implemented and added to the Sylius framework as a plugin. What are the plugins for? -------------...
749e046d8acca84ed1b809b7615f55477a04ac08
tox.ini
tox.ini
[tox] envlist = py26,py27,py33,py34,py35,pypy,pypy3 [testenv] commands = {envpython} setup.py test --quiet
[tox] envlist = py26,py27,py33,py34,py35,py36,py37,pypy,pypy3 [testenv] commands = {envpython} setup.py test --quiet
Build with more modern Pythons
Build with more modern Pythons
INI
isc
rbu/valueobject
ini
## Code Before: [tox] envlist = py26,py27,py33,py34,py35,pypy,pypy3 [testenv] commands = {envpython} setup.py test --quiet ## Instruction: Build with more modern Pythons ## Code After: [tox] envlist = py26,py27,py33,py34,py35,py36,py37,pypy,pypy3 [testenv] commands = {envpython} setup.py test --quiet
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 !!}
dae8629cff132d3abd5ae83852380b568fbf654a
src/utils/CommonParams.h
src/utils/CommonParams.h
struct CommonParams{ int nx,ny,nz; int NX,NY,NZ; int rank; int np; int xOff; int iskip; int jskip; int kskip; int nstep; int numOutputs; double dx,dy,dz; double LX,LY,LZ; double dt; }; # endif // COMMONPARAMS_H
struct CommonParams{ int nx,ny,nz; int NX,NY,NZ; int rank; int np; int nbrL; int nbrR; int xOff; int iskip; int jskip; int kskip; int nstep; int numOutputs; double dx,dy,dz; double LX,LY,LZ; double dt; }; # endif // COMMONPARAMS_H
Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
C
mit
paulmillett/meso
c
## Code Before: struct CommonParams{ int nx,ny,nz; int NX,NY,NZ; int rank; int np; int xOff; int iskip; int jskip; int kskip; int nstep; int numOutputs; double dx,dy,dz; double LX,LY,LZ; double dt; }; # endif // COMMONPARAMS_H ## Instruction: Add SfieldFD class and TIPS3 and...
ee0a0699a9804c485e464f521e5c95d506d0fa29
app/components/audit_log/Export.js
app/components/audit_log/Export.js
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; const exampleQuery = (slug) => `query { organization(slug: "${slug}") { auditEvents(first: 500) { edges { node { type occurredAt actor { name }...
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; const exampleQuery = (slug) => `query { organization(slug: "${slug}") { auditEvents(first: 500) { edges { node { type occurredAt actor { name }...
Tweak layout of export component
Tweak layout of export component
JavaScript
mit
buildkite/frontend,fotinakis/buildkite-frontend,buildkite/frontend,fotinakis/buildkite-frontend
javascript
## Code Before: import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; const exampleQuery = (slug) => `query { organization(slug: "${slug}") { auditEvents(first: 500) { edges { node { type occurredAt actor { ...
bd8c1901380769e71ed343cfc26d90aa0ef7a1c3
profiles/jenkins/installJenkins.sh
profiles/jenkins/installJenkins.sh
sudo apt-get -y install jenkins
sudo apt-get -y install jenkins sudo sed -i 's/HTTP_PORT=8080/HTTP_PORT=8081/g' /etc/default/jenkins sudo service jenkins restart
Move jenkins to port 8081.
Move jenkins to port 8081.
Shell
mit
panopset/foundations
shell
## Code Before: sudo apt-get -y install jenkins ## Instruction: Move jenkins to port 8081. ## Code After: sudo apt-get -y install jenkins sudo sed -i 's/HTTP_PORT=8080/HTTP_PORT=8081/g' /etc/default/jenkins sudo service jenkins restart
44110a305b5a23609c5f6366da9d746244807dbb
power/__init__.py
power/__init__.py
from sys import platform from power.common import * from power.version import VERSION __version__ = VERSION try: if platform.startswith('darwin'): from power.darwin import PowerManagement elif platform.startswith('freebsd'): from power.freebsd import PowerManagement elif platform.startswi...
from sys import platform from power.common import * from power.version import VERSION __version__ = VERSION try: if platform.startswith('darwin'): from power.darwin import PowerManagement elif platform.startswith('freebsd'): from power.freebsd import PowerManagement elif platform.startswi...
Use PowerManagementNoop on import errors
Use PowerManagementNoop on import errors Platform implementation can fail to import its dependencies.
Python
mit
Kentzo/Power
python
## Code Before: from sys import platform from power.common import * from power.version import VERSION __version__ = VERSION try: if platform.startswith('darwin'): from power.darwin import PowerManagement elif platform.startswith('freebsd'): from power.freebsd import PowerManagement elif p...
0657ed8c8ee639fa8cb1a2a73a64bda952fd66d3
shell.nix
shell.nix
with import <nixpkgs> { }; let hsPkgs = haskell.packages.ghc801; in haskell.lib.buildStackProject { name = "cardano-sl"; ghc = hsPkgs.ghc; buildInputs = [ zlib glib git cabal-install openssh autoreconfHook stack openssl sshpass gmp ]; }
with import <nixpkgs> { }; let hsPkgs = haskell.packages.ghc801; in haskell.lib.buildStackProject { name = "cardano-sl"; ghc = hsPkgs.ghc; buildInputs = [ zlib glib git cabal-install openssh autoreconfHook stack openssl sshpass gmp ]; LANG = "en_US.UTF-8"; }
Add haddock fix for nix
Add haddock fix for nix
Nix
apache-2.0
input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/cardano-sl
nix
## Code Before: with import <nixpkgs> { }; let hsPkgs = haskell.packages.ghc801; in haskell.lib.buildStackProject { name = "cardano-sl"; ghc = hsPkgs.ghc; buildInputs = [ zlib glib git cabal-install openssh autoreconfHook stack openssl sshpass gmp ]; } ## Instruction: Add haddock f...
47e53a6590391642be7dfef266771f096971c6d8
client/app/js/task_card.jsx
client/app/js/task_card.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import {Card, CardTitle, CardText} from 'material-ui/Card'; export default class Column extends React.Component { constructor(props) { super(props); this.state={}; } render () { return <Card className="task"> <CardTitle title={this.p...
import React from 'react'; import ReactDOM from 'react-dom'; import {Card, CardTitle, CardActions, CardText} from 'material-ui/Card'; import IconButton from 'material-ui/IconButton'; import EditIcon from 'material-ui/svg-icons/editor/mode-edit'; import PrevIcon from 'material-ui/svg-icons/navigation/chevron-left'; impo...
Add edit and nav buttons on task card
Add edit and nav buttons on task card
JSX
mit
mafigit/Komorebi,mafigit/Komorebi,mafigit/Komorebi,mbbh/Komorebi,kmerz/Komorebi,kmerz/Komorebi,mbbh/Komorebi,mbbh/Komorebi,kmerz/Komorebi,mafigit/Komorebi,mbbh/Komorebi,kmerz/Komorebi
jsx
## Code Before: import React from 'react'; import ReactDOM from 'react-dom'; import {Card, CardTitle, CardText} from 'material-ui/Card'; export default class Column extends React.Component { constructor(props) { super(props); this.state={}; } render () { return <Card className="task"> <CardTit...
f055a493ce95c9897fe18487a630423f150a09b7
test/unit/lookups/yandex_test.rb
test/unit/lookups/yandex_test.rb
$: << File.join(File.dirname(__FILE__), "..", "..") require 'test_helper' class YandexTest < GeocoderTestCase def setup Geocoder.configure(lookup: :yandex) end def test_yandex_viewport result = Geocoder.search('Кремль, Moscow, Russia').first assert_equal [55.733361, 37.584182, 55.770517, 37.650064]...
$: << File.join(File.dirname(__FILE__), "..", "..") require 'test_helper' class YandexTest < GeocoderTestCase def setup Geocoder.configure(lookup: :yandex) end def test_yandex_viewport result = Geocoder.search('Кремль, Moscow, Russia').first assert_equal [55.733361, 37.584182, 55.770517, 37.650064]...
Rename test case when there is no country in the yandex results
Rename test case when there is no country in the yandex results
Ruby
mit
aceunreal/geocoder,brian-ewell/geocoder,tiramizoo/geocoder,ankane/geocoder,rdlugosz/geocoder,Devetzis/geocoder,donbobka/geocoder,TrangPham/geocoder,alexreisner/geocoder
ruby
## Code Before: $: << File.join(File.dirname(__FILE__), "..", "..") require 'test_helper' class YandexTest < GeocoderTestCase def setup Geocoder.configure(lookup: :yandex) end def test_yandex_viewport result = Geocoder.search('Кремль, Moscow, Russia').first assert_equal [55.733361, 37.584182, 55.77...
ac1203521b104d5db572b7451c10b3367c1d314e
shard.yml
shard.yml
name: kemal version: 0.7.0 dependencies: radix: github: f/radix author: - Serdar Dogruyol <dogruyolserdar@gmail.com>
name: kemal version: 0.7.0 dependencies: radix: github: luislavena/radix author: - Serdar Dogruyol <dogruyolserdar@gmail.com>
Change radix to @luislavena's original version
Change radix to @luislavena's original version
YAML
mit
kemalcr/kemal,MGerrior/kemal,MGerrior/kemal,sdogruyol/kemal,sdogruyol/kemal
yaml
## Code Before: name: kemal version: 0.7.0 dependencies: radix: github: f/radix author: - Serdar Dogruyol <dogruyolserdar@gmail.com> ## Instruction: Change radix to @luislavena's original version ## Code After: name: kemal version: 0.7.0 dependencies: radix: github: luislavena/radix author: - Serda...
7249234061e8791ccbee5d0e3b8578d8595e43f8
tests/unit/classes/ModuleLoader.js
tests/unit/classes/ModuleLoader.js
var utils = require('utils') , env = utils.bootstrapEnv() , moduleLdr = env.moduleLoader , injector = require('injector') , ncp = require('ncp') , path = require('path') , async = require('async'); describe('ModuleLoader', function() { before(function(done) { ...
var utils = require('utils') , env = utils.bootstrapEnv() , moduleLdr = env.moduleLoader , injector = require('injector') , ncp = require('ncp') , path = require('path') , async = require('async'); describe('ModuleLoader', function() { it('should load modules', fu...
Remove old code for copying test-module
chore(cleanup): Remove old code for copying test-module
JavaScript
mit
CleverStack/node-seed
javascript
## Code Before: var utils = require('utils') , env = utils.bootstrapEnv() , moduleLdr = env.moduleLoader , injector = require('injector') , ncp = require('ncp') , path = require('path') , async = require('async'); describe('ModuleLoader', function() { before(funct...
0b7464aeb027a0bf61baf56241b47cd17111ccd0
README.rst
README.rst
Sanic-Sentry ============ Sanic-Sentry -- Sentry integration to sanic web server. Requirements ------------ - python >= 3.5 Installation ------------ **Sanic-Sentry** should be installed using pip: :: pip install sanic-sentry Usage ----- **SENTRY_DSN** - Sentry DSN for your application To begin we'll set...
Sanic-Sentry ============ Sanic-Sentry -- Sentry integration to sanic web server. Requirements ------------ - python >= 3.5 Installation ------------ **Sanic-Sentry** should be installed using pip: :: pip install sanic-sentry Usage ----- **SENTRY_DSN** - Sentry DSN for your application To begin we'll set...
Fix readme usage for init_app.
Fix readme usage for init_app.
reStructuredText
mit
serathius/sanic-sentry
restructuredtext
## Code Before: Sanic-Sentry ============ Sanic-Sentry -- Sentry integration to sanic web server. Requirements ------------ - python >= 3.5 Installation ------------ **Sanic-Sentry** should be installed using pip: :: pip install sanic-sentry Usage ----- **SENTRY_DSN** - Sentry DSN for your application To...
66c2f23764952784ce212c2e57ff8b0250a5d2b5
resources/views/settings.blade.php
resources/views/settings.blade.php
<form method="POST" action="{{ action('SettingsController@update') }}"> <input type="hidden" name="_method" value="PATCH" /> {!! csrf_field() !!} @if(version_compare($version, '5.3.0') < 0) @include('geniusts_preferences::settings_5_2') @else @include('geniusts_preferences::settings_5_3...
<form method="POST" action="{{ action('SettingsController@update') }}"> @if($errors->count()) <div class="alert alert-danger alert-dismissible fade in"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <ul> @foreach($errors->all(...
Add errors to the form
Add errors to the form
PHP
mit
GeniusTS/preferences,GeniusTS/preferences
php
## Code Before: <form method="POST" action="{{ action('SettingsController@update') }}"> <input type="hidden" name="_method" value="PATCH" /> {!! csrf_field() !!} @if(version_compare($version, '5.3.0') < 0) @include('geniusts_preferences::settings_5_2') @else @include('geniusts_preferenc...
f67aac0d5d6c65c15a6c9247794efea0ab5d0d05
README.md
README.md
node-modbot =========== ModBot API interface module for Node.JS
node-modbot =========== ModBot API interface module for Node.JS API === The API is rather simple, once you require the modbot API like this, `var modbot = require('./modbot')` You can use the following functions Note: All functions return an array or an object with an error in it, check test for result.error befo...
Update Readme with details about the API
Update Readme with details about the API
Markdown
mit
nevercast/node-modbot
markdown
## Code Before: node-modbot =========== ModBot API interface module for Node.JS ## Instruction: Update Readme with details about the API ## Code After: node-modbot =========== ModBot API interface module for Node.JS API === The API is rather simple, once you require the modbot API like this, `var modbot = requir...
ed6e2e0006dd91cab52b8aeef742b45a44690801
README.md
README.md
goweb-msgpack ============= A plugin of goweb, it provides an implementation of msgpack formatter.
goweb-msgpack ============= A plugin of goweb, it provides an implementation of msgpack formatter. How to install ------------- go get github.com/tenntenn/goweb-msgpack How to use ------------- This plugin provide implementations of goweb.Formatter and goweb.RequestDecoder. You can use MsgpackFormatter as foll...
Add description of instlation and usage.
Add description of instlation and usage.
Markdown
bsd-3-clause
tenntenn/goweb-msgpack
markdown
## Code Before: goweb-msgpack ============= A plugin of goweb, it provides an implementation of msgpack formatter. ## Instruction: Add description of instlation and usage. ## Code After: goweb-msgpack ============= A plugin of goweb, it provides an implementation of msgpack formatter. How to install ------------- ...
3b3d7c1b87fff6ca8a9fc47b8ce2ed0d777efe12
addon-test-support/@ember/test-helpers/dom/wait-for.js
addon-test-support/@ember/test-helpers/dom/wait-for.js
import waitUntil from '../wait-until'; import { getContext } from '../setup-context'; import getElement from './-get-element'; /** @method waitFor @param {string|Element} target @param {Object} [options] @param {number} [options.timeout=1000] @param {number} [options.count=1] */ export default function waitF...
import waitUntil from '../wait-until'; import { getContext } from '../setup-context'; import getElement from './-get-element'; function toArray(nodelist) { let array = new Array(nodelist.length); for (let i = 0; i < nodelist.length; i++) { array[i] = nodelist[i]; } return array; } /** @method waitFor ...
Return an array of elements for `waitFor` with `count`.
Return an array of elements for `waitFor` with `count`.
JavaScript
apache-2.0
switchfly/ember-test-helpers,switchfly/ember-test-helpers
javascript
## Code Before: import waitUntil from '../wait-until'; import { getContext } from '../setup-context'; import getElement from './-get-element'; /** @method waitFor @param {string|Element} target @param {Object} [options] @param {number} [options.timeout=1000] @param {number} [options.count=1] */ export defaul...
bded4cf6bc76f9efa7a7d575963f1f8b49da5b38
winlogbeat/README.md
winlogbeat/README.md
Notice: *This is an experimental proof of concept project.* # Winlogbeat *You know, for windows event logs* Winlogbeat is an open-source log collector that ships Windows Event Logs to Elasticsearch or Logstash. It installs as a Windows service on all versions since Windows XP. ## Contributions We love contribution...
*You know, for windows event logs* Winlogbeat is an open-source log collector that ships Windows Event Logs to Elasticsearch or Logstash. It installs as a Windows service on all versions since Windows XP. ## Contributions We love contributions from our community! Please read the [CONTRIBUTING.md](../CONTRIBUTING.md...
Remove experimental label from Winlogbeat
Remove experimental label from Winlogbeat
Markdown
mit
yapdns/yapdnsbeat,yapdns/yapdnsbeat
markdown
## Code Before: Notice: *This is an experimental proof of concept project.* # Winlogbeat *You know, for windows event logs* Winlogbeat is an open-source log collector that ships Windows Event Logs to Elasticsearch or Logstash. It installs as a Windows service on all versions since Windows XP. ## Contributions We l...
1931ef378f0abc32181150be1ca31110c0e98459
setup.py
setup.py
import os from setuptools import setup, find_packages from vtimshow import defaults def read(fname): """ Utility function to read a file. """ return open(fname, "r").read().strip() setup( name = "vtimshow", version = read(os.path.join(os.path.dirname(__file__), "VERSION")), packages = f...
import os from setuptools import setup, find_packages from vtimshow import defaults def read(fname): """ Utility function to read a file. """ return open(fname, "r").read().strip() setup( name = "vtimshow", version = read(os.path.join(os.path.dirname(__file__), "VERSION")), packages = f...
Add dependency and correct name
Add dependency and correct name
Python
mit
kprussing/vtimshow
python
## Code Before: import os from setuptools import setup, find_packages from vtimshow import defaults def read(fname): """ Utility function to read a file. """ return open(fname, "r").read().strip() setup( name = "vtimshow", version = read(os.path.join(os.path.dirname(__file__), "VERSION")), ...
563316ca4df666ada6e2b0c6a224a159b06884d0
tests.py
tests.py
import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(self, mock_datareader): mock_data...
import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(self, mock_datareader): start = d...
Remove unnecessary call to mock_datareader().
Remove unnecessary call to mock_datareader().
Python
agpl-3.0
scraperwiki/stock-tool,scraperwiki/stock-tool
python
## Code Before: import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(self, mock_datareader): ...
45a60859aeb18ed9f1ddc6e7e2c5826ab241222b
smoketest.sh
smoketest.sh
PWD=`pwd` export CGO_LDFLAGS="-L$PWD" cd sample go build ./sample cd ..
PWD=`pwd` export CGO_LDFLAGS="-L$PWD" export CGO_CFLAGS="-I$PWD" cd sample go build ./sample cd ..
Fix the include path to build with cgo
Fix the include path to build with cgo
Shell
apache-2.0
tetsuok/kytea-go,tetsuok/kytea-go
shell
## Code Before: PWD=`pwd` export CGO_LDFLAGS="-L$PWD" cd sample go build ./sample cd .. ## Instruction: Fix the include path to build with cgo ## Code After: PWD=`pwd` export CGO_LDFLAGS="-L$PWD" export CGO_CFLAGS="-I$PWD" cd sample go build ./sample cd ..
111b4e16c4517cb608b28d5761722bfcd3a8526a
web/helpers/validation.ex
web/helpers/validation.ex
defmodule Appointments.Validators do import Ecto.Changeset def validate_uri(changeset, column) do error_message = "Please enter a valid URL, e.g. http://www.cnn.com." value = get_field(changeset, column) case value do nil -> changeset _ -> case is_valid?(value) do false -...
defmodule Appointments.Validators do import Ecto.Changeset def validate_uri(changeset, column) do error_message = "Please enter a valid URL, e.g. http://www.cnn.com." value = get_field(changeset, column) if value != nil && !is_valid?(value) do add_error(changeset, column, error_message) else...
Increase readability + fix credo issue
Increase readability + fix credo issue
Elixir
mit
sveittir-finnar/book-me,sveittir-finnar/book-me,sveittu-finnarnir/book-me,sveittu-finnarnir/book-me
elixir
## Code Before: defmodule Appointments.Validators do import Ecto.Changeset def validate_uri(changeset, column) do error_message = "Please enter a valid URL, e.g. http://www.cnn.com." value = get_field(changeset, column) case value do nil -> changeset _ -> case is_valid?(value) do ...
09a58298b194c9fe15e7e636556ba72c0ba95488
_config.yml
_config.yml
data_dir: . exclude: - README.md - CHANGELOG.md - ISSUE_TEMPLATE.md - LICENSE - node_modules - bin - sandbox - stash
data_dir: . include: - _redirects exclude: - README.md - CHANGELOG.md - ISSUE_TEMPLATE.md - LICENSE - node_modules - bin - sandbox - stash
Include _redirects in _site directory
Include _redirects in _site directory
YAML
mit
colebemis/feather,colebemis/feather
yaml
## Code Before: data_dir: . exclude: - README.md - CHANGELOG.md - ISSUE_TEMPLATE.md - LICENSE - node_modules - bin - sandbox - stash ## Instruction: Include _redirects in _site directory ## Code After: data_dir: . include: - _redirects exclude: - README.md - CHANGELOG.md - ISSUE_TEMPLATE.md ...
056d82002c133736a800b08bd071b71c9f5615f8
ci/generate_pipeline_yml.py
ci/generate_pipeline_yml.py
import os from jinja2 import Template clusters = ['2_7_lts', '2_9', '2_10', '2_11_lts2'] # Commenting out this as we only have one example and it breaks tiles = [] # [d for d in os.listdir('../examples') if os.path.isdir(os.path.join('../examples', d))] with open('pipeline.yml.jinja2', 'r') as f: t = Template(f.re...
import os from jinja2 import Template clusters = ['2_7_lts', '2_11_lts2', '2_12', '2_13'] # Commenting out this as we only have one example and it breaks tiles = [] # [d for d in os.listdir('../examples') if os.path.isdir(os.path.join('../examples', d))] with open('pipeline.yml.jinja2', 'r') as f: t = Template(f.r...
Update TAS versions we test against
Update TAS versions we test against
Python
apache-2.0
cf-platform-eng/tile-generator,cf-platform-eng/tile-generator,cf-platform-eng/tile-generator,cf-platform-eng/tile-generator
python
## Code Before: import os from jinja2 import Template clusters = ['2_7_lts', '2_9', '2_10', '2_11_lts2'] # Commenting out this as we only have one example and it breaks tiles = [] # [d for d in os.listdir('../examples') if os.path.isdir(os.path.join('../examples', d))] with open('pipeline.yml.jinja2', 'r') as f: t...
623a7241a824a8d6bcb13a3d788e22249e12b90e
.travis.yml
.travis.yml
env: global: - BINSTAR_USER: menpo matrix: - PYTHON_VERSION: 2.7 install: - wget https://raw.githubusercontent.com/jabooth/condaci/v0.2.0/condaci.py -O condaci.py - python condaci.py setup $PYTHON_VERSION --channel $BINSTAR_USER - export PATH=$HOME/miniconda/bin:$PATH script: - python condaci.py auto ./co...
env: global: - BINSTAR_USER: menpo matrix: - PYTHON_VERSION: 2.7 install: - wget https://raw.githubusercontent.com/jabooth/condaci/v0.2.1/condaci.py -O condaci.py - python condaci.py setup $PYTHON_VERSION --channel $BINSTAR_USER - export PATH=$HOME/miniconda/bin:$PATH script: - python condaci.py auto ./co...
Move to condaci 0.2.1, quieter CI notifications
Move to condaci 0.2.1, quieter CI notifications
YAML
bsd-3-clause
menpo/conda-enum
yaml
## Code Before: env: global: - BINSTAR_USER: menpo matrix: - PYTHON_VERSION: 2.7 install: - wget https://raw.githubusercontent.com/jabooth/condaci/v0.2.0/condaci.py -O condaci.py - python condaci.py setup $PYTHON_VERSION --channel $BINSTAR_USER - export PATH=$HOME/miniconda/bin:$PATH script: - python cond...
48a512b0c638b03033a7202533aef52825435cd5
requirements.yml
requirements.yml
- src: https://github.com/alphagov/openldap_server.git version: b6e32f3c049f9607dcbbbc743e92baf7e8a6a7d5 name: bennojoy.openldap_server - src: https://github.com/jnv/ansible-role-ldap-auth-client.git version: a5b17a5c3851207fe90fb496da4e4653d857a770 name: jnv.ldap-auth-client
- src: https://github.com/alphagov/openldap_server.git version: 9cbbb9957e99f9930028962dff451115ed195612 name: bennojoy.openldap_server - src: https://github.com/jnv/ansible-role-ldap-auth-client.git version: a5b17a5c3851207fe90fb496da4e4653d857a770 name: jnv.ldap-auth-client
Update commit ref for openldap_server role
Update commit ref for openldap_server role Changes to the openldap_server role mean that we need to update the version used inside this ldap-server-ansible repo requirements.yml
YAML
mit
alphagov/ldap-server-ansible,alphagov/ldap-server-ansible,gds-attic/paas-ldap-server-ansible,gds-attic/paas-ldap-server-ansible
yaml
## Code Before: - src: https://github.com/alphagov/openldap_server.git version: b6e32f3c049f9607dcbbbc743e92baf7e8a6a7d5 name: bennojoy.openldap_server - src: https://github.com/jnv/ansible-role-ldap-auth-client.git version: a5b17a5c3851207fe90fb496da4e4653d857a770 name: jnv.ldap-auth-client ## Instruction: U...
58a2824f3034e544f2161bd1df93547311285b31
app/models/renalware/renal/aki_alert.rb
app/models/renalware/renal/aki_alert.rb
require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } belongs_to :patient, class_name: "Renal::Patient", touch: true belongs_to :action, ...
require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } belongs_to :patient, class_name: "Renal::Patient", touch: true belongs_to :action, ...
Use created_at for the AKIAlert today scope
Use created_at for the AKIAlert today scope
Ruby
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
ruby
## Code Before: require_dependency "renalware/renal" module Renalware module Renal class AKIAlert < ApplicationRecord include Accountable include PatientsRansackHelper scope :ordered, ->{ order(created_at: :desc) } belongs_to :patient, class_name: "Renal::Patient", touch: true belo...
ddc7ee01b357512bcd169c75f5d30be7366d06ad
lib/date_support.coffee
lib/date_support.coffee
class DateSupport @stripSeconds: (date) -> date.setSeconds 0 date module.exports = DateSupport
class DateSupport @stripSeconds: (date) -> date.setSeconds 0 date.setMilliseconds 0 date module.exports = DateSupport
Reset milliseconds as well when resetting seconds
Reset milliseconds as well when resetting seconds
CoffeeScript
apache-2.0
binarymarbles/sherlock
coffeescript
## Code Before: class DateSupport @stripSeconds: (date) -> date.setSeconds 0 date module.exports = DateSupport ## Instruction: Reset milliseconds as well when resetting seconds ## Code After: class DateSupport @stripSeconds: (date) -> date.setSeconds 0 date.setMilliseconds 0 date module.ex...
fcac46ba669483c6d837bed66d811893eee9cd32
client/client.js
client/client.js
// counter starts at 0 Meteor.subscribe('isslocation'); Session.setDefault('counter', 0); Template.home.helpers({ counter: function () { return Session.get('counter'); } }); Template.home.events({ 'click button': function () { // increment the counter when button is clicked Session.set('counter', S...
// counter starts at 0 Meteor.subscribe('isslocation'); Template.lightstreamer.helpers({ isslocations: function() { return isslocation.find(); }, iss_latest_x_position: function() { return isslocation.findOne({type: 'positionx'},{sort: {time : -1}}); }, iss_latest_y_position: function()...
Remove button code and duplicate About link
Remove button code and duplicate About link
JavaScript
mit
slashrocket/stationstream,slashrocket/stationstream
javascript
## Code Before: // counter starts at 0 Meteor.subscribe('isslocation'); Session.setDefault('counter', 0); Template.home.helpers({ counter: function () { return Session.get('counter'); } }); Template.home.events({ 'click button': function () { // increment the counter when button is clicked Session....
139d8f2cb1b758c86502acd10995b25038f9ed5a
css/base/_typography.css
css/base/_typography.css
/** * Basic typography style for copy text */ body { color: $text-color; font-family: $text-font-stack; font-kerning: normal; font-variant-ligatures: common-ligatures, contextual; font-feature-settings: "kern", "liga", "clig", "calt"; } p { font-family: Georgia, sans-serif; line-height: 1.5em; } ul { ...
/** * Basic typography style for copy text */ body { color: $text-color; font-family: $text-font-stack; font-kerning: normal; font-variant-ligatures: common-ligatures, contextual; font-feature-settings: "kern", "liga", "clig", "calt"; } p { font-family: Georgia, sans-serif; line-height: 1.5em; } ul { ...
Add stlying for inline code blocks
Add stlying for inline code blocks
CSS
mit
mxstbr/login-flow,mxstbr/login-flow,OktavianRS/react-boilerplate,beiciye/login-flow,OktavianRS/react-boilerplate,beiciye/login-flow
css
## Code Before: /** * Basic typography style for copy text */ body { color: $text-color; font-family: $text-font-stack; font-kerning: normal; font-variant-ligatures: common-ligatures, contextual; font-feature-settings: "kern", "liga", "clig", "calt"; } p { font-family: Georgia, sans-serif; line-height:...
8c7bd833cf9ddec1e03bc9da5abae149574333c1
CHANGELOG.md
CHANGELOG.md
**PAME stats** * Show 'Not Reported' instead of year when the year for a PAME evaluation is 0 ### 2.0.1 **Search results:** * Fixed search results to correctly display the PA coverage total percentage (land and marine)
**PAME stats** * Show 'Not Reported' instead of year when the year for a PAME evaluation is 0 ### 2.1.0 **PAME stats** * Adds PAME statistics to Country and Protected Area page * Adds importer for PAME statistics * Adds support for PAME Evaluations * Adds importer for PAME Evaluations ### 2.0.1 **Search results:...
Update changelog with previous version info
Update changelog with previous version info
Markdown
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
markdown
## Code Before: **PAME stats** * Show 'Not Reported' instead of year when the year for a PAME evaluation is 0 ### 2.0.1 **Search results:** * Fixed search results to correctly display the PA coverage total percentage (land and marine) ## Instruction: Update changelog with previous version info ## Code After: **...
85c67673a21d73a09d7db778707b845e0431205c
collections/rh-nodejs4-rh/include.sh
collections/rh-nodejs4-rh/include.sh
export INSTALL_SCLS=rh-nodejs4 export ENABLE_SCLS=rh-nodejs4
export INSTALL_SCLS=rh-nodejs4 export INSTALL_PKGS="rh-nodejs4 rh-nodejs4-npm rh-nodejs4-nodejs" export ENABLE_SCLS=rh-nodejs4
Install some specific pkgs for nodejs
Install some specific pkgs for nodejs
Shell
bsd-3-clause
sclorg/sclo-ci-tests,sclorg/sclo-ci-tests,khardix/sclo-ci-tests,khardix/sclo-ci-tests
shell
## Code Before: export INSTALL_SCLS=rh-nodejs4 export ENABLE_SCLS=rh-nodejs4 ## Instruction: Install some specific pkgs for nodejs ## Code After: export INSTALL_SCLS=rh-nodejs4 export INSTALL_PKGS="rh-nodejs4 rh-nodejs4-npm rh-nodejs4-nodejs" export ENABLE_SCLS=rh-nodejs4
9fd2f37e62f31fb9c6c01407c040e6cf6fc41581
.travis.yml
.travis.yml
language: objective-c os: osx osx_image: xcode8 env: matrix: - TEST_TYPE=iOS - TEST_TYPE=macOS - TEST_TYPE=tvOS script: - | if [ "$TEST_TYPE" = iOS ]; then set -o pipefail xcodebuild clean test -workspace Kingfisher.xcworkspace -scheme Kingfisher -destination "platform=iOS Simulator,name...
language: objective-c os: osx osx_image: xcode8 env: matrix: - TEST_TYPE=iOS - TEST_TYPE=macOS - TEST_TYPE=tvOS -before_install: - | gem install xcpretty -N --no-ri --no-rdoc script: - | if [ "$TEST_TYPE" = iOS ]; then set -o pipefail xcodebuild clean test -workspace Kingfisher.xcw...
Revert xcpretty and longer sleep
Revert xcpretty and longer sleep
YAML
mit
farice/VennCache,pNre/Kingfisher,Ashok28/Kingfisher,onevcat/Kingfisher,tomaskraina/Kingfisher,tomaskraina/Kingfisher,farice/VennCache,Ashok28/Kingfisher,Ashok28/Kingfisher,farice/VennCache,tomaskraina/Kingfisher,onevcat/Kingfisher,pNre/Kingfisher,pNre/Kingfisher
yaml
## Code Before: language: objective-c os: osx osx_image: xcode8 env: matrix: - TEST_TYPE=iOS - TEST_TYPE=macOS - TEST_TYPE=tvOS script: - | if [ "$TEST_TYPE" = iOS ]; then set -o pipefail xcodebuild clean test -workspace Kingfisher.xcworkspace -scheme Kingfisher -destination "platform=iO...
fcdccff46beacec0b37271d75f1ced3093a773e2
perl_mongo.h
perl_mongo.h
extern "C" { #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #define PERL_MONGO_CALL_BOOT(name) perl_mongo_call_xs (aTHX_ name, cv, mark) void perl_mongo_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *cv), CV *cv, SV **mark); SV *perl_mongo_call_reader (SV *self, const char *reader); void perl_mongo_attach_ptr_...
extern "C" { #define PERL_GCC_BRACE_GROUPS_FORBIDDEN #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #define PERL_MONGO_CALL_BOOT(name) perl_mongo_call_xs (aTHX_ name, cv, mark) void perl_mongo_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *cv), CV *cv, SV **mark); SV *perl_mongo_call_reader (SV *self, const c...
Stop the headers of debugging perls to generate gcc brace groups.
Stop the headers of debugging perls to generate gcc brace groups. Those don't work with g++ easily.
C
apache-2.0
xdg/mongo-perl-driver,kainwinterheart/mongo-perl-driver,kainwinterheart/mongo-perl-driver,rahuldhodapkar/mongo-perl-driver,kainwinterheart/mongo-perl-driver,gormanb/mongo-perl-driver,dagolden/mongo-perl-driver,gormanb/mongo-perl-driver,jorol/mongo-perl-driver,mongodb/mongo-perl-driver,mongodb/mongo-perl-driver,gormanb/...
c
## Code Before: extern "C" { #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #define PERL_MONGO_CALL_BOOT(name) perl_mongo_call_xs (aTHX_ name, cv, mark) void perl_mongo_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *cv), CV *cv, SV **mark); SV *perl_mongo_call_reader (SV *self, const char *reader); void perl_m...