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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ccb774b58ab7dbe704abfb7df3fa29915fad8f8f | examples/memnn/download.py | examples/memnn/download.py |
from six.moves.urllib import request
def main():
opener = request.FancyURLopener()
opener.addheaders = [('User-Agent', '')]
opener.retrieve(
'http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz',
'tasks_1-20_v1-2.tar.gz')
if __name__ == '__main__':
main()
|
from six.moves.urllib import request
def main():
request.urlretrieve(
'http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz',
'tasks_1-20_v1-2.tar.gz')
if __name__ == '__main__':
main()
| Replace deprecated URLopener in `donwload.py` | Replace deprecated URLopener in `donwload.py`
| Python | mit | niboshi/chainer,keisuke-umezawa/chainer,wkentaro/chainer,wkentaro/chainer,pfnet/chainer,keisuke-umezawa/chainer,wkentaro/chainer,niboshi/chainer,niboshi/chainer,okuta/chainer,okuta/chainer,chainer/chainer,hvy/chainer,chainer/chainer,keisuke-umezawa/chainer,wkentaro/chainer,okuta/chainer,keisuke-umezawa/chainer,hvy/chai... | python | ## Code Before:
from six.moves.urllib import request
def main():
opener = request.FancyURLopener()
opener.addheaders = [('User-Agent', '')]
opener.retrieve(
'http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz',
'tasks_1-20_v1-2.tar.gz')
if __name__ == '__main__':
ma... |
c868d416d90c448be733056505b48e339da582e0 | CHANGELOG.md | CHANGELOG.md | Multi User Test Runner
======================
# 0.3.0
## Breaking changes
* `SpringMultiUserTestClassRunner` is in its own artifact: spring-test-class-runner
* Default TestUsers runner is changed from `SpringMultiUserTestClassRunner` to `BlockMultiUserTestClassRunner`
* Runner configuration is done via `MultiUserTes... | Multi User Test Runner
======================
# 0.3.0
## Breaking changes
* `SpringMultiUserTestClassRunner` is in its own artifact: spring-test-class-runner
* Default TestUsers runner is changed from `SpringMultiUserTestClassRunner` to `BlockMultiUserTestClassRunner`
* Runner configuration is done via `MultiUserTes... | Add breaking change note about logInAs(Creator) call | Add breaking change note about logInAs(Creator) call
| Markdown | apache-2.0 | Vincit/multi-user-test-runner,Vincit/multi-user-test-runner,Vincit/multi-user-test-runner | markdown | ## Code Before:
Multi User Test Runner
======================
# 0.3.0
## Breaking changes
* `SpringMultiUserTestClassRunner` is in its own artifact: spring-test-class-runner
* Default TestUsers runner is changed from `SpringMultiUserTestClassRunner` to `BlockMultiUserTestClassRunner`
* Runner configuration is done v... |
4640afc8ea101090c4205f0300cfa5c7c10d9960 | roles/dd-agent/tasks/main.yml | roles/dd-agent/tasks/main.yml | ---
- name: install dd repo key
apt_key:
id: C7A7DA52
keyserver: keyserver.ubuntu.com
- name: install dd repo
apt_repository:
repo: "deb https://apt.datadoghq.com/ stable main"
update_cache: yes
- name: install dependency packages
apt:
name: "{{ item }}"
state: installed
with_items:
... | ---
- name: install dd repo key
apt_key:
id: C7A7DA52
keyserver: keyserver.ubuntu.com
- name: install dd repo
apt_repository:
repo: "deb https://apt.datadoghq.com/ stable main"
update_cache: yes
- name: install dependency packages
apt:
name: "{{ item }}"
state: installed
with_items:
... | Stop install pip datadog to /opt/datadog | Stop install pip datadog to /opt/datadog
I think this is a remnant of some earlier attempt at ansible datadog
integration, however ansible gets installed into /opt/ansible and there
is no other reference to this directory I can find in hoist.
I don't think it's required any more.
Signed-off-by: Jamie Lennox <1b9801e... | YAML | apache-2.0 | jamielennox/hoist,jamielennox/hoist,SpamapS/hoist,BonnyCI/hoist,SpamapS/hoist,BonnyCI/hoist | yaml | ## Code Before:
---
- name: install dd repo key
apt_key:
id: C7A7DA52
keyserver: keyserver.ubuntu.com
- name: install dd repo
apt_repository:
repo: "deb https://apt.datadoghq.com/ stable main"
update_cache: yes
- name: install dependency packages
apt:
name: "{{ item }}"
state: installed
... |
abfc91a687b33dda2659025af254bc9f50c077b5 | publishers/migrations/0008_fix_name_indices.py | publishers/migrations/0008_fix_name_indices.py |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publishers', '0007_publisher_romeo_parent_id'),
]
operations = [
migrations.AlterField(
model_name='journal',
name='title',
field=models.CharField(max_l... |
from django.db import migrations, models
class Migration(migrations.Migration):
atomic = False
dependencies = [
('publishers', '0007_publisher_romeo_parent_id'),
]
operations = [
migrations.AlterField(
model_name='journal',
name='title',
field=mod... | Mark index migration as non atomic | Mark index migration as non atomic
| Python | agpl-3.0 | dissemin/dissemin,wetneb/dissemin,wetneb/dissemin,dissemin/dissemin,dissemin/dissemin,dissemin/dissemin,wetneb/dissemin,dissemin/dissemin,wetneb/dissemin | python | ## Code Before:
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publishers', '0007_publisher_romeo_parent_id'),
]
operations = [
migrations.AlterField(
model_name='journal',
name='title',
field=models... |
77223cb9cc13961c2762bec24a348c72e63a6217 | source/init/constants.ts | source/init/constants.ts | import {setVersionInfo, setAppName, setTimezone} from '@frogpond/constants'
export const SENTRY_DSN =
'https://6f70285364b7417181e17db8bcf4de11@sentry.frogpond.tech/2'
import {version, name} from '../../package.json'
setVersionInfo(version)
setAppName(name)
setTimezone('America/Chicago')
| import {setVersionInfo, setAppName, setTimezone} from '@frogpond/constants'
export const SENTRY_DSN =
'https://7f68e814c5c24c32a582f2ddc3d42b4c@o524787.ingest.sentry.io/5637838'
import {version, name} from '../../package.json'
setVersionInfo(version)
setAppName(name)
setTimezone('America/Chicago')
| Switch DSN over to hosted sentry url | sentry: Switch DSN over to hosted sentry url
Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
| TypeScript | agpl-3.0 | StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native | typescript | ## Code Before:
import {setVersionInfo, setAppName, setTimezone} from '@frogpond/constants'
export const SENTRY_DSN =
'https://6f70285364b7417181e17db8bcf4de11@sentry.frogpond.tech/2'
import {version, name} from '../../package.json'
setVersionInfo(version)
setAppName(name)
setTimezone('America/Chicago')
## Instruc... |
f64f9dacf3f8370edd02c45bf577f40100fb9846 | composer.json | composer.json | {
"name": "unisharp/laravel-settings",
"description": "Persistent settings manager for laravel 5",
"authors": [
{
"name": "Unisharp Ltd.",
"email": "service@unisharp.com"
}
],
"require": {
"php": ">=5.5.0",
"illuminate/support": ">=5.0.0"
},
"autoload": {
"psr-4": {
"... | {
"name": "unisharp/laravel-settings",
"description": "Persistent settings manager for laravel 5",
"type": "library",
"keywords": [ "key-value", "storage", "settings", "persistent", "laravel"],
"license": "MIT",
"authors": [
{
"name": "Unisharp Ltd.",
"email": "service@unisharp.com"
}
... | Add license, keywords and type | Add license, keywords and type
| JSON | mit | UniSharp/laravel-settings | json | ## Code Before:
{
"name": "unisharp/laravel-settings",
"description": "Persistent settings manager for laravel 5",
"authors": [
{
"name": "Unisharp Ltd.",
"email": "service@unisharp.com"
}
],
"require": {
"php": ">=5.5.0",
"illuminate/support": ">=5.0.0"
},
"autoload": {
"p... |
538e4b799675744d72ce47b067673f4b2f3700ea | test/fs-walk-parallel-test.js | test/fs-walk-parallel-test.js | "use strict";
var fsWalkParallel = require("../lib/fs-walk-parallel");
var mockFs = require("mock-fs");
var test = require("tape");
function setup(t, fakeFs) {
mockFs.restore();
mockFs(fakeFs);
}
test("nonexistant folder should return error", function(t) {
setup(t, {});
t.plan(1);
fsWalkParallel("doesntExist", ... | "use strict";
var fsWalkParallel = require("../lib/fs-walk-parallel");
var mockFs = require("mock-fs");
var test = require("tape");
function setup(t, fakeFs) {
mockFs.restore();
mockFs(fakeFs);
}
test("nonexistant folder should return error", function(t) {
setup(t, {});
t.plan(1);
fsWalkParallel("doesntExist", ... | Add test for two files | Add test for two files
| JavaScript | mit | ericlathrop/node-fs-walk-breadth-first | javascript | ## Code Before:
"use strict";
var fsWalkParallel = require("../lib/fs-walk-parallel");
var mockFs = require("mock-fs");
var test = require("tape");
function setup(t, fakeFs) {
mockFs.restore();
mockFs(fakeFs);
}
test("nonexistant folder should return error", function(t) {
setup(t, {});
t.plan(1);
fsWalkParallel... |
f1351bc1e34801dd26a84c37cf10449428d7a4ff | RubyTest.rb | RubyTest.rb | puts "Enter your name:"
name = gets.chomp
puts "Your name is #{name}!"
name.reverse!
puts "Your name backwards is #{name}"
name.upcase!
puts "Your name backwards and upcase is #{name}!" | puts "Enter your name:"
name = gets.chomp
puts "Your name is #{name}!"
name.reverse!
puts "Your name backwards is #{name}"
name.upcase!
puts "Your name backwards and upcase is #{name}!"
puts "Enter your last name:"
lastname = gets.chomp
name.reverse!
name.capitalize!
puts "Your name is #{name} #{lastname}" | Add last name functionality for double the fun...ctionality | Add last name functionality for double the fun...ctionality
| Ruby | mit | jnicholea/phase-1 | ruby | ## Code Before:
puts "Enter your name:"
name = gets.chomp
puts "Your name is #{name}!"
name.reverse!
puts "Your name backwards is #{name}"
name.upcase!
puts "Your name backwards and upcase is #{name}!"
## Instruction:
Add last name functionality for double the fun...ctionality
## Code After:
puts "Enter your name:"
na... |
74748c58c01f441a2a910f250a8d9736c25ea233 | .travis.yml | .travis.yml | language: generic
os: osx
osx_image: xcode9.2
branches:
only:
- master
before_install:
- export XCODEBUILD_PATH=$(which xcodebuild)
- export PATH=$PATH:$XCODEBUILD_PATH
- export PATH=$PATH:~/bin
- brew update
- gem env
- gem install xcpretty --no-rdoc --no-ri --user-install -n~/bin
- gem install fastlane --no-rdo... | language: generic
os: osx
osx_image: xcode9.2
branches:
only:
- master
before_install:
- export XCODEBUILD_PATH=$(which xcodebuild)
- export PATH=$PATH:$XCODEBUILD_PATH
- export PATH=$PATH:~/bin
- brew update
- gem install xcpretty --no-rdoc --no-ri --user-install -n~/bin
- gem install fastlane --no-rdoc --no-ri --... | Remove diagnostic gem env print statement from Travis config | Remove diagnostic gem env print statement from Travis config
| YAML | apache-2.0 | jwfriese/Fleet,jwfriese/Fleet,jwfriese/Fleet,jwfriese/Fleet | yaml | ## Code Before:
language: generic
os: osx
osx_image: xcode9.2
branches:
only:
- master
before_install:
- export XCODEBUILD_PATH=$(which xcodebuild)
- export PATH=$PATH:$XCODEBUILD_PATH
- export PATH=$PATH:~/bin
- brew update
- gem env
- gem install xcpretty --no-rdoc --no-ri --user-install -n~/bin
- gem install f... |
f5ebd2f805663ed2520d268d1cda97a27e038890 | lib/generators/ambry_generator.rb | lib/generators/ambry_generator.rb | require 'rails/generators'
require 'rails/generators/actions'
# This generator adds an initializer and default empty database to your Rails
# application. It can be invoked on the command line like:
#
# rails generate ambry
#
class AmbryGenerator < Rails::Generators::Base
# Create the initializer and empty data... | require 'rails/generators'
require 'rails/generators/actions'
# This generator adds an initializer and default empty database to your Rails
# application. It can be invoked on the command line like:
#
# rails generate ambry
#
class AmbryGenerator < Rails::Generators::Base
# Create the initializer and empty data... | Remove main adapter by default | Remove main adapter by default
The default behavior on Rails should probably not be to raise an error.
Resolves issue #12
| Ruby | mit | norman/ambry | ruby | ## Code Before:
require 'rails/generators'
require 'rails/generators/actions'
# This generator adds an initializer and default empty database to your Rails
# application. It can be invoked on the command line like:
#
# rails generate ambry
#
class AmbryGenerator < Rails::Generators::Base
# Create the initialize... |
968fdefc7d48e7877f3729fd7d4b2fa2658144d2 | config/routes.rb | config/routes.rb | Qunit::Rails::Engine.routes.draw do
root to: 'test#index'
end
Rails.application.routes.draw do
mount Qunit::Rails::Engine => '/qunit'
end
| Qunit::Rails::Engine.routes.draw do
root to: 'test#index'
match ':action', controller: 'test'
end
Rails.application.routes.draw do
mount Qunit::Rails::Engine => '/qunit'
end
| Allow for arbitrary test suites | Allow for arbitrary test suites
| Ruby | unlicense | frodsan/qunit-rails,frodsan/qunit-rails | ruby | ## Code Before:
Qunit::Rails::Engine.routes.draw do
root to: 'test#index'
end
Rails.application.routes.draw do
mount Qunit::Rails::Engine => '/qunit'
end
## Instruction:
Allow for arbitrary test suites
## Code After:
Qunit::Rails::Engine.routes.draw do
root to: 'test#index'
match ':action', controller: 'test... |
b9cb2db713bba95597fa2bfdd1748a03e695b80f | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
devise_for :users
get 'welcome/index'
root 'welcome#index'
resources :docs
end
| Rails.application.routes.draw do
devise_for :users
get 'welcome/index'
resources :docs
authenticated :user do
root "docs#index", as: "authenticated_root"
end
root 'welcome#index'
end
| Change root of application for authenticated user | Change root of application for authenticated user
| Ruby | mit | hugoangeles025/cabinet,hugoangeles025/cabinet,hugoangeles025/cabinet | ruby | ## Code Before:
Rails.application.routes.draw do
devise_for :users
get 'welcome/index'
root 'welcome#index'
resources :docs
end
## Instruction:
Change root of application for authenticated user
## Code After:
Rails.application.routes.draw do
devise_for :users
get 'welcome/index'
resources :docs
auth... |
4a950e67c2a16962c403b73a807d59c60b9d8ac5 | packages/basemap/requirements-doc.txt | packages/basemap/requirements-doc.txt | six >= 1.10, < 1.16; python_version >= "3.5"
sphinx >= 3.0, < 3.4; python_version >= "3.5"
| sphinx >= 3.0, < 3.4; python_version >= "3.5"
| Remove six also from doc requirements | Remove six also from doc requirements
| Text | mit | matplotlib/basemap,guziy/basemap,matplotlib/basemap,guziy/basemap | text | ## Code Before:
six >= 1.10, < 1.16; python_version >= "3.5"
sphinx >= 3.0, < 3.4; python_version >= "3.5"
## Instruction:
Remove six also from doc requirements
## Code After:
sphinx >= 3.0, < 3.4; python_version >= "3.5"
|
1201c6806bac6db17dde4bf5e98e55a7cb81c087 | manifests/bits-service-webdav-certs.yml | manifests/bits-service-webdav-certs.yml | properties:
bits-service:
buildpacks:
webdav_config:
ca_cert: (( file "standalone-blobstore-certs/server-ca.crt" ))
droplets:
webdav_config:
ca_cert: (( file "standalone-blobstore-certs/server-ca.crt" ))
packages:
webdav_config:
ca_cert: (( file "standalone-blobst... | - type: replace
path: /properties?/bits-service/buildpacks/webdav_config/ca_cert
value: ((blobstore_ssl.ca))
- type: replace
path: /properties?/bits-service/droplets/webdav_config/ca_cert
value: ((blobstore_ssl.ca))
- type: replace
path: /properties?/bits-service/packages/webdav_config/ca_cert
value: ((blob... | Fix certificates for bits-service standalone deployment | Fix certificates for bits-service standalone deployment
We never noticed that these certificates were broken, because the Ruby implementation does not validate them. Bitsgo does.
| YAML | apache-2.0 | cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci | yaml | ## Code Before:
properties:
bits-service:
buildpacks:
webdav_config:
ca_cert: (( file "standalone-blobstore-certs/server-ca.crt" ))
droplets:
webdav_config:
ca_cert: (( file "standalone-blobstore-certs/server-ca.crt" ))
packages:
webdav_config:
ca_cert: (( file "s... |
ebf64c605c034d892275be70771f96be3b62ae28 | src/cosy/loader/lua.lua | src/cosy/loader/lua.lua | if #setmetatable ({}, { __len = function () return 1 end }) ~= 1
then
error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run."
end
return function (t)
t = t or {}
local loader = {}
local modules = setmetatable ({}, { __mode = "kv" })
loader.hotswap = t.hotswap
or require "... | if #setmetatable ({}, { __len = function () return 1 end }) ~= 1
then
error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run."
end
return function (t)
t = t or {}
local loader = {}
local modules = setmetatable ({}, { __mode = "kv" })
loader.hotswap = t.hotswap
or require "... | Fix require in the loader. | Fix require in the loader.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library | lua | ## Code Before:
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1
then
error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run."
end
return function (t)
t = t or {}
local loader = {}
local modules = setmetatable ({}, { __mode = "kv" })
loader.hotswap = t.hotswap
... |
f6cfbfde296ca7839a91c55fc04ccfaeafeeed5a | eg_rest.psgi | eg_rest.psgi | use strict;
use warnings;
use Plack::Builder;
use EnsEMBL::REST;
use Config;
use Plack::Util;
use File::Basename;
use File::Spec;
my $app = EnsEMBL::REST->psgi_app;
builder {
my $dirname = dirname(__FILE__);
my $rootdir = File::Spec->rel2abs(File::Spec->catdir($dirname, File::Spec->updir(), File::Spec->updir()));
... | use strict;
use warnings;
use Plack::Builder;
use EnsEMBL::REST;
use Config;
use Plack::Util;
use File::Basename;
use File::Spec;
my $app = EnsEMBL::REST->psgi_app;
builder {
my $dirname = dirname(__FILE__);
my $rootdir = File::Spec->rel2abs(File::Spec->catdir($dirname, File::Spec->updir(), File::Spec->updir()));
... | Change configuration for maximum starman worker process memory size | Change configuration for maximum starman worker process memory size
Previously this was 300MB. But the virtual and resident sizes for a single
worker process are both significantly larger. Because we were checking it
every 10 requests, the worker processes were restarted after serving 10
requests.
Change it to 1300MB... | Perl | apache-2.0 | EnsemblGenomes/eg-rest,EnsemblGenomes/eg-rest | perl | ## Code Before:
use strict;
use warnings;
use Plack::Builder;
use EnsEMBL::REST;
use Config;
use Plack::Util;
use File::Basename;
use File::Spec;
my $app = EnsEMBL::REST->psgi_app;
builder {
my $dirname = dirname(__FILE__);
my $rootdir = File::Spec->rel2abs(File::Spec->catdir($dirname, File::Spec->updir(), File::S... |
1a5df01638a71b8ecaba2b311f08e2bcad1710b7 | views/identify.erb | views/identify.erb | <%
user_agent = UserAgent.parse(request.user_agent)
$id_vars[:os] = user_agent.os
$id_vars[:platform] = user_agent.platform
$id_vars[:browser] = user_agent.browser
$id_vars[:version] = user_agent.version
$id_vars[:build] = user_agent.build
$id_vars[:localization] = user_agent.localization
id_json =$id_vars.to_json
id... | <%
user_agent = UserAgent.parse(request.user_agent)
$id_vars[:os] = user_agent.os
$id_vars[:platform] = user_agent.platform
$id_vars[:browser] = user_agent.browser
$id_vars[:version] = user_agent.version
$id_vars[:build] = user_agent.build
$id_vars[:localization] = user_agent.localization
id_json =$id_vars.to_json
id... | Add 'About', remove debug output | Add 'About', remove debug output
| HTML+ERB | agpl-3.0 | p8952/open-panopticlick | html+erb | ## Code Before:
<%
user_agent = UserAgent.parse(request.user_agent)
$id_vars[:os] = user_agent.os
$id_vars[:platform] = user_agent.platform
$id_vars[:browser] = user_agent.browser
$id_vars[:version] = user_agent.version
$id_vars[:build] = user_agent.build
$id_vars[:localization] = user_agent.localization
id_json =$id... |
e49fd692e1281f91164d216708befd81a1a3c102 | test/simple.js | test/simple.js | var test = require("tape")
var crypto = require('crypto')
var cryptoB = require('../')
var assert = require('assert')
function assertSame (fn) {
test(fn.name, function (t) {
fn(crypto, function (err, expected) {
fn(cryptoB, function (err, actual) {
t.equal(actual, expected)
t.end()
}... | var test = require("tape")
var crypto = require('crypto')
var cryptoB = require('../')
function assertSame (fn) {
test(fn.name, function (t) {
t.plan(1)
fn(crypto, function (err, expected) {
fn(cryptoB, function (err, actual) {
t.equal(actual, expected)
t.end()
})
})
})
}
... | Use tape for asserts to better detect callbacks not being fired | Use tape for asserts to better detect callbacks not being fired | JavaScript | mit | crypto-browserify/crypto-browserify,crypto-browserify/crypto-browserify | javascript | ## Code Before:
var test = require("tape")
var crypto = require('crypto')
var cryptoB = require('../')
var assert = require('assert')
function assertSame (fn) {
test(fn.name, function (t) {
fn(crypto, function (err, expected) {
fn(cryptoB, function (err, actual) {
t.equal(actual, expected)
... |
e2cf64cc8bba62a718e26bdd9c8e60aa8ce7fa98 | README.md | README.md | PairUp app
==========
General notes
-------------
All dependencies have been kept local, so there are minimal assumptions about the machine upon which this application is installed.
The repository has been called PairUp just as a working title, and this may change.
Installation instructions
------------------------... | PairUp app
==========
General notes
-------------
All dependencies have been kept local, so there are minimal assumptions about the machine upon which this application is installed.
The repository has been called PairUp just as a working title, and this may change.
Installation instructions
------------------------... | Add a couple of things to get Laravel working | Add a couple of things to get Laravel working
| Markdown | mit | Lets-Build-Something/PairUp,khoparzi/PairUp,Lets-Build-Something/PairUp,khoparzi/PairUp | markdown | ## Code Before:
PairUp app
==========
General notes
-------------
All dependencies have been kept local, so there are minimal assumptions about the machine upon which this application is installed.
The repository has been called PairUp just as a working title, and this may change.
Installation instructions
--------... |
c9e2c70e05ade220e5aa6a4790ee2a9b720cc46e | sorting_test.py | sorting_test.py | import mergesort.merge_sort
import quicksort.quicksort
import sys
import time
from random import randint
def main(max_len):
for n in [2**(n+1) for n in range(max_len)]:
print 'Array size: %d' % n
arr = [randint(0, 2**max_len) for n in range(n)]
current_time = time.time()
quicksort.quicksort.check(mergesor... | import mergesort.merge_sort
import quicksort.quicksort
import sys
import time
from random import randint
def multi_size(max_len):
for n in [2**(n+1) for n in range(max_len)]:
print 'Array size: %d' % n
arr = [randint(0, 2**max_len) for n in range(n)]
current_time = time.time()
quicksort.quicksort.check(me... | Allow comparison within a fixed time period | Allow comparison within a fixed time period
To get an idea of average run-time, I wanted to be able to test
mergesort and quicksort with the same inputs many times over;
now by specifying a time limit and array length, the script will
run each algorithm on as many times as possible on random arrays
and report how many... | Python | mit | timpel/stanford-algs,timpel/stanford-algs | python | ## Code Before:
import mergesort.merge_sort
import quicksort.quicksort
import sys
import time
from random import randint
def main(max_len):
for n in [2**(n+1) for n in range(max_len)]:
print 'Array size: %d' % n
arr = [randint(0, 2**max_len) for n in range(n)]
current_time = time.time()
quicksort.quicksor... |
10fbce820f580d058bdfb1ab89cf01a027da3161 | gitst.c | gitst.c |
int
main(int argc, char **argv)
{
int pid, ret;
int pipes[2];
char gitbuff[GITBUF];
size_t gitlen;
char b;
char *br;
int childst;
if(pipe(pipes) != 0)
{
perror("Error creating pipes");
exit(1);
}
if((pid = fork()) == -1)
{
perror("Error forking git");
exit(1);
}
if(pid ==... |
int
main(int argc, char **argv)
{
int pid, ret;
int pipes[2];
char gitbuff[GITBUF];
size_t gitlen;
char b;
char *br;
int childst;
if(pipe(pipes) != 0)
{
perror("Error creating pipes");
exit(1);
}
if((pid = fork()) == -1)
{
perror("Error forking git");
exit(1);
}
if(pid ==... | Convert to `git branch` for performance | Convert to `git branch` for performance
- Using `git status` is eificient to get only the current branch but in
a repo with a large number of untracked files it can stall for a long
time getting the status of a repository. Git Branch is much better in
these cases.
| C | bsd-3-clause | wnh/prompt_utils | c | ## Code Before:
int
main(int argc, char **argv)
{
int pid, ret;
int pipes[2];
char gitbuff[GITBUF];
size_t gitlen;
char b;
char *br;
int childst;
if(pipe(pipes) != 0)
{
perror("Error creating pipes");
exit(1);
}
if((pid = fork()) == -1)
{
perror("Error forking git");
exit(1);
... |
75611b5d82438d20f6a959778712bfa335c1ed0e | source/css/sass/_layouts.sass | source/css/sass/_layouts.sass | // Master layouts file - import all needed layout styles here
@import layouts/navbar
@import layouts/header
@import layouts/footer
| // Master layouts file - import all needed layout styles here
@import layouts/navbar
@import layouts/header
@import layouts/footer
@import layouts/l-container
@import layouts/l-content
| Add l-content and l-container to layouts | Add l-content and l-container to layouts
| Sass | mit | pcvonz/pattern_lab_playground,pcvonz/pattern_lab_playground,pcvonz/pattern_lab_playground | sass | ## Code Before:
// Master layouts file - import all needed layout styles here
@import layouts/navbar
@import layouts/header
@import layouts/footer
## Instruction:
Add l-content and l-container to layouts
## Code After:
// Master layouts file - import all needed layout styles here
@import layouts/navbar
@import layout... |
ea85a1586617816974232ca5374919e37b2b490c | .github/mergify.yml | .github/mergify.yml | pull_request_rules:
- name: Integration with @gradle-bot
conditions:
- check-success=Bot Says OK
- check-success=Quick Feedback - Linux Only (Trigger) (Check)
actions:
merge:
method: merge
strict_method: rebase
strict: true
- name: Trigger mergify on TestAndMerge co... | pull_request_rules:
- name: Integration with @gradle-bot
conditions:
- check-success=Bot Says OK
- check-success=Quick Feedback - Linux Only (Trigger) (Check)
actions:
merge:
method: merge
strict: true
- name: Trigger mergify on TestAndMerge command
conditions:
- ... | Use merge method for now | Use merge method for now
See https://github.com/Mergifyio/mergify-engine/issues/1529
Mergify engine may have issues with "rebase" strict_method,
so we fallback to "merge" for now.
| YAML | apache-2.0 | gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,grad... | yaml | ## Code Before:
pull_request_rules:
- name: Integration with @gradle-bot
conditions:
- check-success=Bot Says OK
- check-success=Quick Feedback - Linux Only (Trigger) (Check)
actions:
merge:
method: merge
strict_method: rebase
strict: true
- name: Trigger mergify on... |
24006c946b8a6634a4116422acf912a820c7f238 | src/middlewares/logger.ts | src/middlewares/logger.ts | import { Store, Dispatch, Action } from "redux";
const crashReporter = (store: Store) => (next: Dispatch) => (
action: Action
) => {
const { getState } = store;
const beforeActionState = getState();
const result = next(action);
const afterActionState = getState();
console.info(
"action",
action,
... | import { Store, Dispatch, Action } from "redux";
const logger = (store: Store) => (next: Dispatch) => (action: Action) => {
const { getState } = store;
const beforeActionState = getState();
const result = next(action);
const afterActionState = getState();
console.info(
"action",
action,
"beforeSt... | Change name to match middlware behavior | Change name to match middlware behavior
| TypeScript | bsd-3-clause | wakatime/desktop,wakatime/wakatime-desktop,wakatime/wakatime-desktop,wakatime/desktop,wakatime/desktop | typescript | ## Code Before:
import { Store, Dispatch, Action } from "redux";
const crashReporter = (store: Store) => (next: Dispatch) => (
action: Action
) => {
const { getState } = store;
const beforeActionState = getState();
const result = next(action);
const afterActionState = getState();
console.info(
"action"... |
7a206bc1e76afea90139a5a2683f00cbc4e2a5d1 | src/turbolinks/error_renderer.coffee | src/turbolinks/error_renderer.coffee |
class Turbolinks.ErrorRenderer extends Turbolinks.Renderer
constructor: (@html) ->
render: (callback) ->
@renderView =>
@replaceDocumentHTML()
@activateBodyScriptElements()
callback()
replaceDocumentHTML: ->
document.documentElement.innerHTML = @html
activateBodyScriptElements: ->
... |
class Turbolinks.ErrorRenderer extends Turbolinks.Renderer
constructor: (html) ->
htmlElement = document.createElement("html")
htmlElement.innerHTML = html
@newHead = htmlElement.querySelector("head")
@newBody = htmlElement.querySelector("body")
render: (callback) ->
@renderView =>
@repl... | Set newBody property when rendering errors | Set newBody property when rendering errors
It's expected by the Turbolinks.Renderer super class
| CoffeeScript | mit | turbolinks/turbolinks,turbolinks/turbolinks,turbolinks/turbolinks | coffeescript | ## Code Before:
class Turbolinks.ErrorRenderer extends Turbolinks.Renderer
constructor: (@html) ->
render: (callback) ->
@renderView =>
@replaceDocumentHTML()
@activateBodyScriptElements()
callback()
replaceDocumentHTML: ->
document.documentElement.innerHTML = @html
activateBodyScr... |
65cb681a26530e038c7f45ac26dbd2009d6c0e3b | components/media-bar/media-bar.html | components/media-bar/media-bar.html | <app-scroll-scroller
overlay
horizontal
class="section fill-darker media-bar"
:class="{
'-is-loading': !mediaItems || !mediaItems.length,
}"
>
<div class="-items">
<div class="-loading-container" v-if="!mediaItems || !mediaItems.length">
<app-loading centered no-color stationary hide-label />
</div>
... | <app-scroll-scroller overlay horizontal>
<div
class="section fill-darker media-bar"
:class="{
'-is-loading': !mediaItems || !mediaItems.length,
}"
>
<div class="-items">
<div class="-loading-container" v-if="!mediaItems || !mediaItems.length">
<app-loading centered no-color stationary hide-label /... | Fix media bar with overlay scroll on chrome | Fix media bar with overlay scroll on chrome
| HTML | mit | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | html | ## Code Before:
<app-scroll-scroller
overlay
horizontal
class="section fill-darker media-bar"
:class="{
'-is-loading': !mediaItems || !mediaItems.length,
}"
>
<div class="-items">
<div class="-loading-container" v-if="!mediaItems || !mediaItems.length">
<app-loading centered no-color stationary hide-labe... |
1aa65a9da9c73cc212244e9fee7e9e18699c5972 | app/views/partials/foyer/ressources/montants.html | app/views/partials/foyer/ressources/montants.html | <div class="frame-foyer">
<h1>{{ pageTitle }}</h1>
<p>
Indiquez toutes vos ressources <strong>nettes</strong> perçues en France comme à l'étranger.
</p>
<form method="post" name="form" novalidate ng-submit="submit(form)">
<div class="ressources-individu">
<div class="clearfix"></div>
<div cl... | <div class="frame-foyer">
<h1>{{ pageTitle }}</h1>
<p>
Indiquez toutes vos ressources <strong>nettes</strong> perçues en France comme à l'étranger.
</p>
<form method="post" name="form" novalidate ng-submit="submit(form)">
<div class="ressources-individu">
<div class="clearfix"></div>
<div cl... | Move and make ressources back button more discrete | Move and make ressources back button more discrete
| HTML | agpl-3.0 | sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui | html | ## Code Before:
<div class="frame-foyer">
<h1>{{ pageTitle }}</h1>
<p>
Indiquez toutes vos ressources <strong>nettes</strong> perçues en France comme à l'étranger.
</p>
<form method="post" name="form" novalidate ng-submit="submit(form)">
<div class="ressources-individu">
<div class="clearfix"></di... |
4ebac589cfcddcfcef4b4e5160a07c5f67d999f6 | .github/ISSUE_TEMPLATE/feature_request.md | .github/ISSUE_TEMPLATE/feature_request.md | ---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want t... | ---
name: Feature request
about: Suggest an idea for this project
---
**Current Problem**
Is your feature request related to a problem? Please provide a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Proposed Solution**
A clear and concise description of what you want to... | Update feature request issue template | Update feature request issue template | Markdown | apache-2.0 | dwavesystems/dimod,dwavesystems/dimod | markdown | ## Code Before:
---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of... |
ef62582ea460420ffb877a53682a2fb25df3fdd8 | CHANGELOG.md | CHANGELOG.md | 3.2.0
=====
* Added `gluggi_dummy()` for dummy content. Currently supported is only `gluggi_dummy("content")`.
* Allow Symfony 5.
| 3.2.0
=====
* Implement new layout.
* Added `gluggi_dummy()` for dummy content. Currently supported is only `gluggi_dummy("content")`.
* Allow Symfony 5.
| Add changelog entry about new layout | Add changelog entry about new layout
| Markdown | bsd-3-clause | Becklyn/GluggiBundle,Becklyn/GluggiBundle,Becklyn/GluggiBundle | markdown | ## Code Before:
3.2.0
=====
* Added `gluggi_dummy()` for dummy content. Currently supported is only `gluggi_dummy("content")`.
* Allow Symfony 5.
## Instruction:
Add changelog entry about new layout
## Code After:
3.2.0
=====
* Implement new layout.
* Added `gluggi_dummy()` for dummy content. Currently supp... |
11ac7a9fdecf5bd9082eb358bc4c2e2e98821ed6 | nubis/builder/artifacts/AMIs.json | nubis/builder/artifacts/AMIs.json | {
"builds": [
{
"name": "amazon-ebs-ubuntu",
"builder_type": "amazon-ebs",
"build_time": 1491922866,
"files": null,
"artifact_id": "ap-northeast-1:ami-ef7f5d88,ap-northeast-2:ami-47c61429,ap-southeast-1:ami-7448f617,ap-southeast-2:ami-59808e3a,eu-central-1:ami-7f8a5810,eu-west-1:ami-... | {
"builds": [
{
"name": "amazon-ebs-ubuntu",
"builder_type": "amazon-ebs",
"build_time": 1491928656,
"files": null,
"artifact_id": "ap-northeast-1:ami-db4a68bc,ap-northeast-2:ami-85c113eb,ap-southeast-1:ami-3642fc55,ap-southeast-2:ami-bd9b95de,eu-central-1:ami-3a845655,eu-west-1:ami-... | Update builder artifacts for v1.5.0-dev release | Update builder artifacts for v1.5.0-dev release [skip ci]
| JSON | mpl-2.0 | gozer/nubis-dpaste,Nubisproject/nubis-dpaste,limed/nubis-dpaste,gozer/nubis-dpaste,tinnightcap/nubis-dpaste,gozer/nubis-dpaste,Nubisproject/nubis-dpaste,tinnightcap/nubis-dpaste,limed/nubis-dpaste | json | ## Code Before:
{
"builds": [
{
"name": "amazon-ebs-ubuntu",
"builder_type": "amazon-ebs",
"build_time": 1491922866,
"files": null,
"artifact_id": "ap-northeast-1:ami-ef7f5d88,ap-northeast-2:ami-47c61429,ap-southeast-1:ami-7448f617,ap-southeast-2:ami-59808e3a,eu-central-1:ami-7f8a581... |
89e9b3bae2060f47b92a6ff1e3613a8f7d4a602a | lib/console-vmc-plugin/plugin.rb | lib/console-vmc-plugin/plugin.rb | require "vmc/plugin"
require "console-vmc-plugin/console"
module VMCConsole
class Console < VMC::CLI
desc "Open a console connected to your app"
group :apps, :manage
input :app, :argument => :required, :from_given => by_name("app"),
:desc => "App to connect to"
input :port, :default => 10000
... | require "vmc/plugin"
require "console-vmc-plugin/console"
module VMCConsole
class Console < VMC::CLI
desc "Open a console connected to your app"
group :apps, :manage
input :app, :argument => :required, :from_given => by_name("app"),
:desc => "App to connect to"
input :port, :default => 10000
... | Provision console port for buildpack framework | Provision console port for buildpack framework
Change-Id: I7572a97f328cfe60791ac89dd41650774a2afdfd
| Ruby | apache-2.0 | cloudfoundry-attic/console-vmc-plugin,cloudfoundry-attic/console-vmc-plugin | ruby | ## Code Before:
require "vmc/plugin"
require "console-vmc-plugin/console"
module VMCConsole
class Console < VMC::CLI
desc "Open a console connected to your app"
group :apps, :manage
input :app, :argument => :required, :from_given => by_name("app"),
:desc => "App to connect to"
input :port, :def... |
36c922d6e2b662eee8c2dc10cb53855a80c6db14 | lib/serum/util.ex | lib/serum/util.ex | defmodule Serum.Util do
@moduledoc """
This module provides some frequently used shortcut functions. These functions
are inlined by the compiler.
"""
@doc "Prints a warning message to stderr."
@spec warn(binary) :: Macro.t()
defmacro warn(str) do
quote do
IO.puts(:stderr, "\x1b[33m * #{unquote... | defmodule Serum.Util do
@moduledoc """
This module provides some frequently used shortcut functions. These functions
are inlined by the compiler.
"""
@doc "Prints a warning message to stderr."
@spec warn(binary) :: Macro.t()
defmacro warn(str) do
quote do
IO.puts(:stderr, "\x1b[33m * #{unquote(... | Remove unused macros from Serum.Util | Remove unused macros from Serum.Util
| Elixir | mit | Dalgona/Serum | elixir | ## Code Before:
defmodule Serum.Util do
@moduledoc """
This module provides some frequently used shortcut functions. These functions
are inlined by the compiler.
"""
@doc "Prints a warning message to stderr."
@spec warn(binary) :: Macro.t()
defmacro warn(str) do
quote do
IO.puts(:stderr, "\x1b... |
cee8c5cd8b3502f677e05f11641c90436862a08f | test/index.js | test/index.js | require('dotenv/config');
const request = require('then-request');
let server = null;
let url = null;
switch (process.argv[2]) {
case 'local':
url = 'http://localhost:3000';
server = require('../server');
process.env.PIPERMAIL_SOURCE = 'https://mail.mozilla.org/pipermail/es-discuss/';
break;
case ... | require('dotenv/config');
const request = require('then-request');
let server = null;
let url = null;
switch (process.argv[2]) {
case 'local':
url = 'http://localhost:3000';
server = require('../server');
process.env.PIPERMAIL_SOURCE = 'https://mail.mozilla.org/pipermail/es-discuss/';
break;
case ... | Reduce test timeout to 5 minutes | Reduce test timeout to 5 minutes | JavaScript | mit | esdiscuss/bot,esdiscuss/bot | javascript | ## Code Before:
require('dotenv/config');
const request = require('then-request');
let server = null;
let url = null;
switch (process.argv[2]) {
case 'local':
url = 'http://localhost:3000';
server = require('../server');
process.env.PIPERMAIL_SOURCE = 'https://mail.mozilla.org/pipermail/es-discuss/';
... |
9dfe4a4ad31dd8f13c8c54b172652a8af8983975 | .github/workflows/docker-release.yml | .github/workflows/docker-release.yml | name: Docker build and push
on:
push:
branches:
- master
jobs:
Publish-to-docker:
runs-on: ubuntu-latest
env:
DOCKER_TAG: latest-multi
steps:
-
name: Checkout
uses: actions/checkout@v1
-
name: Set up Docker Buildx
id: buildx
uses: cra... | name: Docker build and push
on:
push:
branches:
- master
jobs:
Publish-to-docker:
runs-on: ubuntu-latest
env:
DOCKER_TAG: latest-multi
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
id: buildx
uses: cra... | Disable build for other users | chore: Disable build for other users
| YAML | mit | bnfinet/lasso,bnfinet/lasso | yaml | ## Code Before:
name: Docker build and push
on:
push:
branches:
- master
jobs:
Publish-to-docker:
runs-on: ubuntu-latest
env:
DOCKER_TAG: latest-multi
steps:
-
name: Checkout
uses: actions/checkout@v1
-
name: Set up Docker Buildx
id: buildx
... |
43ef6bc110a28670a7a97a433373222acc990944 | readme.md | readme.md |
[Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint).
## Install
```
npm install grunt-sass-lint --save-dev
```
## Examples
```js
grunt.initConfig({
sasslint: {
options: {
configFile: 'config/.sass-lint.yml',
},
target: ['location/*.scss']
}
});
```
## Options
See ... |
[Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint).
## Install
```
npm install grunt-sass-lint --save-dev
```
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```
grunt.loadNpmTasks('grunt-sass-lint');
```
## Example... | Document how to enable grunt-sass-lint in Gruntfile. | Document how to enable grunt-sass-lint in Gruntfile.
For easy copy + paste. | Markdown | mit | sasstools/grunt-sass-lint | markdown | ## Code Before:
[Grunt](http://gruntjs.com/) plugin for [Sass Lint](https://github.com/sasstools/sass-lint).
## Install
```
npm install grunt-sass-lint --save-dev
```
## Examples
```js
grunt.initConfig({
sasslint: {
options: {
configFile: 'config/.sass-lint.yml',
},
target: ['location/*.scss']
}
});
```
... |
fcd9aa3292727ac6c442caff74dc1cde747e0462 | README.md | README.md | Australian Virtual Herbarium Hub (avh-hub)
=======
Grails application that provides UI and customisations to the [ALA Biocache](https://github.com/AtlasOfLivingAustralia/biocache-hubs)
(Grails plugin) for [http://avh.ala.org.au/](http://avh.ala.org.au/).
|
Australian Virtual Herbarium Hub (avh-hub)
==========================================
Grails application that provides UI and customisations to the [ALA Biocache](https://github.com/AtlasOfLivingAustralia/biocache-hubs)
(Grails plugin) for [http://avh.ala.org.au/](http://avh.ala.org.au/).
Deploying AVH
=============... | Add command line instructions for deploying AVH | Add command line instructions for deploying AVH | Markdown | mpl-2.0 | AtlasOfLivingAustralia/avh-hub,AtlasOfLivingAustralia/avh-hub | markdown | ## Code Before:
Australian Virtual Herbarium Hub (avh-hub)
=======
Grails application that provides UI and customisations to the [ALA Biocache](https://github.com/AtlasOfLivingAustralia/biocache-hubs)
(Grails plugin) for [http://avh.ala.org.au/](http://avh.ala.org.au/).
## Instruction:
Add command line instructions f... |
800706f5835293ee20dd9505d1d11c28eb38bbb2 | tests/shipane_sdk/matchers/dataframe_matchers.py | tests/shipane_sdk/matchers/dataframe_matchers.py |
import re
from hamcrest.core.base_matcher import BaseMatcher
class HasColumn(BaseMatcher):
def __init__(self, column):
self._column = column
def _matches(self, df):
return self._column in df.columns
def describe_to(self, description):
description.append_text(u'Dataframe doesn\'... |
import re
from hamcrest.core.base_matcher import BaseMatcher
class HasColumn(BaseMatcher):
def __init__(self, column):
self._column = column
def _matches(self, df):
return self._column in df.columns
def describe_to(self, description):
description.append_text(u'Dataframe doesn\'... | Fix HasColumn matcher for dataframe with duplicated columns | Fix HasColumn matcher for dataframe with duplicated columns
| Python | mit | sinall/ShiPanE-Python-SDK,sinall/ShiPanE-Python-SDK | python | ## Code Before:
import re
from hamcrest.core.base_matcher import BaseMatcher
class HasColumn(BaseMatcher):
def __init__(self, column):
self._column = column
def _matches(self, df):
return self._column in df.columns
def describe_to(self, description):
description.append_text(u'D... |
3bb371f5b2671f35a1563c46b58980796c59bf17 | .travis.yml | .travis.yml | language: scala
jdk:
- oraclejdk8
sudo: required
dist: trusty
scala:
- 2.10.6
- 2.11.8
env:
- CASSANDRA_VERSION=2.1.15
- CASSANDRA_VERSION=3.6
script:
- "sbt ++$TRAVIS_SCALA_VERSION -Dtest.cassandra.version=$CASSANDRA_VERSION -Dtravis=true -Dtravis=true it:test" #Integration Suite
- "sbt ++$TRAVIS_SCAL... | language: scala
jdk:
- oraclejdk8
sudo: required
dist: trusty
scala:
- 2.11.8
env:
- CASSANDRA_VERSION=2.1.15
- CASSANDRA_VERSION=3.6
script:
- "sbt ++$TRAVIS_SCALA_VERSION -Dtest.cassandra.version=$CASSANDRA_VERSION -Dtravis=true -Dtravis=true it:test" #Integration Suite
- "sbt ++$TRAVIS_SCALA_VERSION -... | Disable 2.10 Scala Testing in Travis | Disable 2.10 Scala Testing in Travis
Since 2.3 no longer supports Scala 2.10 we are removing it from
the travis test matrix.
| YAML | apache-2.0 | datastax/spark-cassandra-connector,datastax/spark-cassandra-connector | yaml | ## Code Before:
language: scala
jdk:
- oraclejdk8
sudo: required
dist: trusty
scala:
- 2.10.6
- 2.11.8
env:
- CASSANDRA_VERSION=2.1.15
- CASSANDRA_VERSION=3.6
script:
- "sbt ++$TRAVIS_SCALA_VERSION -Dtest.cassandra.version=$CASSANDRA_VERSION -Dtravis=true -Dtravis=true it:test" #Integration Suite
- "sb... |
d95cefe45a48ab5427a2cca03f80fb1169a36e0d | lib/yumlcmd.rb | lib/yumlcmd.rb | require "net/http"
require "optparse"
class YumlCmd
def YumlCmd.generate(args)
ext = "png"
input = ""
type = "/scruffy"
opts = OptionParser.new do |o|
o.banner = "Usage: #{File.basename($0)} [options]"
o.on('-f', '--file FILENAME', 'File containing yuml.me diagram.') do |filename|
... | require "net/http"
require "optparse"
class YumlCmd
def YumlCmd.generate(args)
ext = "png"
input = ""
type = "/scruffy"
opts = OptionParser.new do |o|
o.banner = "Usage: #{File.basename($0)} [options]"
o.on('-f', '--file FILENAME', 'File containing yuml.me diagram.') do |filename|
... | Use input filename as base for output filename | Use input filename as base for output filename
| Ruby | mit | atog/yumlcmd | ruby | ## Code Before:
require "net/http"
require "optparse"
class YumlCmd
def YumlCmd.generate(args)
ext = "png"
input = ""
type = "/scruffy"
opts = OptionParser.new do |o|
o.banner = "Usage: #{File.basename($0)} [options]"
o.on('-f', '--file FILENAME', 'File containing yuml.me diagram.') do... |
1a6f45011f653a4039fd2ae847d3de65ff216c57 | providers/soundcloud.yml | providers/soundcloud.yml | ---
- provider_name: SoundCloud
provider_url: http://soundcloud.com/
endpoints:
- schemes:
- http://soundcloud.com/*
url: https://soundcloud.com/oembed
example_urls:
- https://soundcloud.com/oembed?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fflickermood
- https://soundcloud.com/oembed?url=https... | ---
- provider_name: SoundCloud
provider_url: http://soundcloud.com/
endpoints:
- schemes:
- http://soundcloud.com/*
- https://soundcloud.com/*
url: https://soundcloud.com/oembed
example_urls:
- https://soundcloud.com/oembed?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fflickermood
- https://... | Add https scheme for SoundCloud | Add https scheme for SoundCloud
no issue
- SoundCloud is by default https so https://soundcloud/* URLs should be recognised | YAML | mit | iamcal/oembed,iamcal/oembed,iamcal/oembed,iamcal/oembed | yaml | ## Code Before:
---
- provider_name: SoundCloud
provider_url: http://soundcloud.com/
endpoints:
- schemes:
- http://soundcloud.com/*
url: https://soundcloud.com/oembed
example_urls:
- https://soundcloud.com/oembed?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fflickermood
- https://soundcloud.com/... |
b4167b3315e16e279c34d1624de0de604072b0cd | Resources/views/Form/fields.html.twig | Resources/views/Form/fields.html.twig | {% block file_row %}
{% spaceless %}
{% if panda_uploader %}
{{ block("panda_uploader_widget") }}
{% else %}
<div>
{{ form_label(form) }}
{{ form_errors(form) }}
{{ form_widget(form) }}
</div>
{% endif %}
... | {% block file_row -%}
{%- if panda_uploader -%}
{{- block("panda_uploader_widget") -}}
{%- else -%}
<div>
{{- form_label(form) -}}
{{- form_errors(form) -}}
{{- form_widget(form) -}}
</div>
{%- endif -%}
{%- endblock %}
{% block panda_uploader_wid... | Migrate from spaceless to whitespace control in form theme | Migrate from spaceless to whitespace control in form theme
| Twig | mit | xabbuh/PandaBundle,xabbuh/PandaBundle | twig | ## Code Before:
{% block file_row %}
{% spaceless %}
{% if panda_uploader %}
{{ block("panda_uploader_widget") }}
{% else %}
<div>
{{ form_label(form) }}
{{ form_errors(form) }}
{{ form_widget(form) }}
</div>
... |
1e9dc2c02a8aa21195d1e487ec389fc7a7f5a5f9 | src/main.rs | src/main.rs | extern crate rand;
use rand::thread_rng;
use rand::distributions::Range;
use individual::Individual;
mod individual;
fn main() {
let mut rng = thread_rng();
let range = Range::new(-512.03_f64, 511.97); // range for Schwefel problem
// initialize population
let mut population: Vec<_> = (0..128).map(|... | extern crate rand;
use rand::{Rng, thread_rng};
use rand::distributions::Range;
use individual::Individual;
mod individual;
fn select<'a, R: Rng>(population: &'a Vec<Individual>, rng: &mut R)
-> &'a Individual {
let population: Vec<_> = (0..4).map(|_| rng.choose(population)).collect();
... | Implement tournament selection to obtain some convergence | Implement tournament selection to obtain some convergence
| Rust | agpl-3.0 | andschwa/rust-genetic-algorithm | rust | ## Code Before:
extern crate rand;
use rand::thread_rng;
use rand::distributions::Range;
use individual::Individual;
mod individual;
fn main() {
let mut rng = thread_rng();
let range = Range::new(-512.03_f64, 511.97); // range for Schwefel problem
// initialize population
let mut population: Vec<_> ... |
afd2e2635bf73ce8b4dbe229ae0148a73060287b | app/views/films/show.html.erb | app/views/films/show.html.erb | <h1><%= film.title %></h1>
<% @films.ratings.each do |film| %>
<h4><%= film.average_score %></h4>
<p><%= render @film.reviews %></p>
<% end %>
| <h1><%= film.title %></h1>
<h4><%= film.average_score %></h4>
<p><%= render @film.reviews %></p>
| Fix average score display on a film | Fix average score display on a film
| HTML+ERB | mit | JacobCrofts/wintergarten,JacobCrofts/wintergarten,JacobCrofts/wintergarten | html+erb | ## Code Before:
<h1><%= film.title %></h1>
<% @films.ratings.each do |film| %>
<h4><%= film.average_score %></h4>
<p><%= render @film.reviews %></p>
<% end %>
## Instruction:
Fix average score display on a film
## Code After:
<h1><%= film.title %></h1>
<h4><%= film.average_score %></h4>
<p><%= ren... |
98339c030b63a5befcee41d5d2a26642f93fed40 | unsplash/resources/js/Unsplash_Script.js | unsplash/resources/js/Unsplash_Script.js | jQuery(document).ready(function($) {
var container = $('#splashing_images');
$.LoadingOverlaySetup({
color : "rgba(241,241,241,0.8)",
maxSize : "80px",
minSize : "20px",
resizeInterval : 0,
size : "30%"
});
$('a.upload').clic... | jQuery(document).ready(function($) {
var container = $('#splashing_images');
$.LoadingOverlaySetup({
color : "rgba(241,241,241,0.8)",
maxSize : "80px",
minSize : "20px",
resizeInterval : 0,
size : "30%"
});
$('a.upload').clic... | Hide overlay on ajax error | Hide overlay on ajax error
| JavaScript | mit | studioespresso/craft-unsplash,studioespresso/craft-unsplash,studioespresso/craft-unsplash | javascript | ## Code Before:
jQuery(document).ready(function($) {
var container = $('#splashing_images');
$.LoadingOverlaySetup({
color : "rgba(241,241,241,0.8)",
maxSize : "80px",
minSize : "20px",
resizeInterval : 0,
size : "30%"
});
$(... |
0ef129be9341f9668bba8e8cfdef06c7dfde5983 | link/config/nvim/plugin/mapleader.vim | link/config/nvim/plugin/mapleader.vim | " Change mapleader
let mapleader=","
" Save session for restoring later with 'vim -S' (,ss)
map <leader>ss :mksession<CR>
" Save a file as root (,sr)
map <leader>sr :w !sudo tee % > /dev/null<CR>
" Use ',t' to toggle absolute and relative line numbers
map <leader>t :call ToggleNumber()<CR>
" Open ag.vim with '\'
ma... | " Change mapleader
let mapleader=","
" Save a file as root (,sr)
map <leader>sr :w !sudo tee % > /dev/null<CR>
" Use ',t' to toggle absolute and relative line numbers
map <leader>t :call ToggleNumber()<CR>
" Pasting from clipboard into vim is formatted correctly (,p)
map <silent> <leader>p :set paste<CR>"*p:set nopa... | Remove unused nvim leader shortcuts, add new one | Remove unused nvim leader shortcuts, add new one
| VimL | mit | tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles,tjtrabue/dotfiles | viml | ## Code Before:
" Change mapleader
let mapleader=","
" Save session for restoring later with 'vim -S' (,ss)
map <leader>ss :mksession<CR>
" Save a file as root (,sr)
map <leader>sr :w !sudo tee % > /dev/null<CR>
" Use ',t' to toggle absolute and relative line numbers
map <leader>t :call ToggleNumber()<CR>
" Open ag... |
4e49556ec45db5dbfa1383065f802f84b0ab4ce3 | lib/greek_string/container.rb | lib/greek_string/container.rb | class GreekString
class Container
require 'forwardable'
extend Forwardable
def_delegators :@container, :[], :<<, :each, :map
def initialize
@container = []
end
def letters
@container.flat_map(&:letters)
end
def to_a
@container
end
def to_s(type)
@co... | class GreekString
class Container
require 'forwardable'
extend Forwardable
def_delegators :@container, :[], :<<, :each, :map, :flat_map
def initialize
@container = []
end
def to_a
@container
end
def to_s(type)
@container.flat_map(&type)
end
end
end
| Delete letters method, add flat_map delegator | Delete letters method, add flat_map delegator
| Ruby | mit | latin-language-toolkit/greek_string | ruby | ## Code Before:
class GreekString
class Container
require 'forwardable'
extend Forwardable
def_delegators :@container, :[], :<<, :each, :map
def initialize
@container = []
end
def letters
@container.flat_map(&:letters)
end
def to_a
@container
end
def to_s... |
fd3bf885acc4cc222378fbb9d29b12bf2632eef6 | app/components/class-field-description.js | app/components/class-field-description.js | import { inject as service } from '@ember/service';
import Component from '@ember/component';
import { tracked } from '@glimmer/tracking';
class Field {
@tracked name;
@tracked class;
}
export default class ClassFieldDescription extends Component {
@service
legacyModuleMappings;
field = new Field();
get... | import { inject as service } from '@ember/service';
import Component from '@ember/component';
export default class ClassFieldDescription extends Component {
@service
legacyModuleMappings;
get hasImportExample() {
return this.legacyModuleMappings.hasFunctionMapping(
this.args.field.name,
this.arg... | Remove @tracked as it is not used | Remove @tracked as it is not used
| JavaScript | mit | ember-learn/ember-api-docs,ember-learn/ember-api-docs | javascript | ## Code Before:
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import { tracked } from '@glimmer/tracking';
class Field {
@tracked name;
@tracked class;
}
export default class ClassFieldDescription extends Component {
@service
legacyModuleMappings;
field = new... |
8ea1ff90e4b5071e3e99970cb20368551a72d259 | src/PortNumber.php | src/PortNumber.php | <?php
namespace Krixon\URL;
class PortNumber
{
private $number;
/**
* @param int $value
*
* @throws \InvalidArgumentException
*/
public function __construct($value)
{
$options = [
'options' => [
'min_range' => 0,
'max_ra... | <?php
namespace Krixon\URL;
class PortNumber
{
private $number;
/**
* @param int $value
*
* @throws \InvalidArgumentException
*/
public function __construct($value)
{
$options = [
'options' => [
'min_range' => 0,
'max_ra... | Make sure port number is stored correctly | Make sure port number is stored correctly
| PHP | mit | krixon/url | php | ## Code Before:
<?php
namespace Krixon\URL;
class PortNumber
{
private $number;
/**
* @param int $value
*
* @throws \InvalidArgumentException
*/
public function __construct($value)
{
$options = [
'options' => [
'min_range' => 0,
... |
79d4615df86e915113b13835b0f806f8927b8ec8 | metadata/com.wesaphzt.privatelocation.yml | metadata/com.wesaphzt.privatelocation.yml | Categories:
- Development
- Navigation
- System
License: GPL-3.0-or-later
SourceCode: https://github.com/wesaphzt/privatelocation
IssueTracker: https://github.com/wesaphzt/privatelocation/issues
Bitcoin: 1GCkvAg9oG79niQTbh6EH9rPALQDXKyHKK
Litecoin: LV687s3wVdhmLZyJMFxomJHdHFXeFAKT5R
AutoName: Private Location
De... | Categories:
- Development
- Navigation
- System
License: GPL-3.0-or-later
SourceCode: https://github.com/wesaphzt/privatelocation
IssueTracker: https://github.com/wesaphzt/privatelocation/issues
Bitcoin: 1GCkvAg9oG79niQTbh6EH9rPALQDXKyHKK
Litecoin: LV687s3wVdhmLZyJMFxomJHdHFXeFAKT5R
AutoName: Private Location
De... | Update Private Location to 1.1 (2) | Update Private Location to 1.1 (2)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Development
- Navigation
- System
License: GPL-3.0-or-later
SourceCode: https://github.com/wesaphzt/privatelocation
IssueTracker: https://github.com/wesaphzt/privatelocation/issues
Bitcoin: 1GCkvAg9oG79niQTbh6EH9rPALQDXKyHKK
Litecoin: LV687s3wVdhmLZyJMFxomJHdHFXeFAKT5R
AutoName: Pri... |
352afe3f55179b60e0cecdf3076742bb5ccb77ff | src/Http/Middleware/ForgetLocaleRouteParameter.php | src/Http/Middleware/ForgetLocaleRouteParameter.php | <?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
class ForgetLocaleRouteParameter
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public fu... | <?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
class ForgetLocaleRouteParameter
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public fu... | Check config option before forgetting route parameters | Check config option before forgetting route parameters
| PHP | mit | rinvex/cortex-foundation | php | ## Code Before:
<?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
class ForgetLocaleRouteParameter
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
... |
7842919b2af368c640363b4e4e05144049b111ba | ovp_core/emails.py | ovp_core/emails.py | from django.core.mail import EmailMultiAlternatives
from django.template import Context, Template
from django.template.loader import get_template
from django.conf import settings
import threading
class EmailThread(threading.Thread):
def __init__(self, msg):
self.msg = msg
threading.Thread.__init__(sel... | from django.core.mail import EmailMultiAlternatives
from django.template import Context, Template
from django.template.loader import get_template
from django.conf import settings
import threading
class EmailThread(threading.Thread):
def __init__(self, msg):
self.msg = msg
threading.Thread.__init__(sel... | Remove BaseMail dependency on User object | Remove BaseMail dependency on User object
| Python | agpl-3.0 | OpenVolunteeringPlatform/django-ovp-core,OpenVolunteeringPlatform/django-ovp-core | python | ## Code Before:
from django.core.mail import EmailMultiAlternatives
from django.template import Context, Template
from django.template.loader import get_template
from django.conf import settings
import threading
class EmailThread(threading.Thread):
def __init__(self, msg):
self.msg = msg
threading.Thr... |
ec8b3381a9529bc76062014730ed626f73f97e55 | config/admin_users.yml | config/admin_users.yml | ---
- email: "alex.tomlins@digital.cabinet-office.gov.uk"
origin: "google"
- email: "andras.ferencz-szabo@digital.cabinet-office.gov.uk"
origin: "google"
- email: "chris.farmiloe@digital.cabinet-office.gov.uk"
origin: "google"
- email: "lee.porte@digital.cabinet-office.gov.uk"
origin: "google"
- email: "michael... | ---
- email: "alex.tomlins@digital.cabinet-office.gov.uk"
origin: "google"
- email: "andras.ferencz-szabo@digital.cabinet-office.gov.uk"
origin: "google"
- email: "chris.farmiloe@digital.cabinet-office.gov.uk"
origin: "google"
- email: "lee.porte@digital.cabinet-office.gov.uk"
origin: "google"
- email: "michael... | Add Russell to the list of CF admin users. | Add Russell to the list of CF admin users.
| YAML | mit | alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf | yaml | ## Code Before:
---
- email: "alex.tomlins@digital.cabinet-office.gov.uk"
origin: "google"
- email: "andras.ferencz-szabo@digital.cabinet-office.gov.uk"
origin: "google"
- email: "chris.farmiloe@digital.cabinet-office.gov.uk"
origin: "google"
- email: "lee.porte@digital.cabinet-office.gov.uk"
origin: "google"
-... |
68eceecffb4ea457fe92d623f5722fd25c09e718 | src/js/routers/app-router.js | src/js/routers/app-router.js | import * as Backbone from 'backbone';
import Items from '../collections/items';
import SearchBoxView from '../views/searchBox-view';
import SearchResultsView from '../views/searchResults-view';
import AppView from '../views/app-view';
import DocumentSet from '../helpers/search';
import dispatcher from '../helpers/dispa... | import * as Backbone from 'backbone';
import Items from '../collections/items';
import SearchBoxView from '../views/searchBox-view';
import SearchResultsView from '../views/searchResults-view';
import AppView from '../views/app-view';
import Events from '../helpers/backbone-events';
import DocumentSet from '../helpers/... | Use Events instead of custom dispatcher (more) | Use Events instead of custom dispatcher (more)
| JavaScript | mit | trevormunoz/katherine-anne,trevormunoz/katherine-anne,trevormunoz/katherine-anne | javascript | ## Code Before:
import * as Backbone from 'backbone';
import Items from '../collections/items';
import SearchBoxView from '../views/searchBox-view';
import SearchResultsView from '../views/searchResults-view';
import AppView from '../views/app-view';
import DocumentSet from '../helpers/search';
import dispatcher from '... |
386d74d660c347e2f3ae70b11caf51c1a63d1ebf | appveyor.yml | appveyor.yml | version: '1.0.{build}'
configuration:
- Release
platform: Any CPU
branches:
only:
- master
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- appveyor-retry dotnet... | version: '1.0.{build}'
configuration:
- Release
platform: Any CPU
branches:
only:
- master
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- appveyor-retry dotnet... | Fix - Run powershell script. | Fix - Run powershell script.
| YAML | apache-2.0 | springcomp/dotnet-make | yaml | ## Code Before:
version: '1.0.{build}'
configuration:
- Release
platform: Any CPU
branches:
only:
- master
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
before_build:
- appveyor-retry dotnet re... |
4dabda647bdd6180c724594953306cc4dc2d8c84 | _plugins/asset_img_size.rb | _plugins/asset_img_size.rb | module Jekyll
module Filter
def asset_img_size(input)
file = input.to_s.split('/').last.split('.').first
if file.include? '_'
file = file.split('_').last
if file.include? 'x'
file = file.to_s.split('x')
file.map! { |i| if i == '' then '100%' else i + 'px' end ... | module Jekyll
module Filter
def asset_img_size(input)
file = input.to_s.split('/').last.split('.').first
if file.include? '_'
file = file.split('_').last
if file.include? 'x'
file = file.to_s.split('x')
file.map! { |i| if i == '' then '100%' else i + 'px' end ... | Fix return point issue when widthx syntax | Fix return point issue when widthx syntax
| Ruby | mit | rosa89n20/jekyll-asset_img_size | ruby | ## Code Before:
module Jekyll
module Filter
def asset_img_size(input)
file = input.to_s.split('/').last.split('.').first
if file.include? '_'
file = file.split('_').last
if file.include? 'x'
file = file.to_s.split('x')
file.map! { |i| if i == '' then '100%' el... |
6af4563d934fa55ab102fa1b9c3cea1b434771ab | src/less/print.less | src/less/print.less | @media print {
.header h3, nav, footer {
display: none;
}
nav > div {
display: none;
}
.navbar-header {
display: none;
}
body {
font: 12pt Georgia, "Times New Roman", Times, serif;
line-height: 1.3;
}
h1 {
font-size: 24pt;
}
h... | @media print {
nav, footer {
display: none;
}
nav > div {
display: none;
}
.navbar-header {
display: none;
}
.action-btn {
display: none;
}
span > button {
display: none;
}
body {
font: 12pt Georgia, "Times New Roman", Times, s... | Check pointing adding rpint stylesheet for facility detailed view | Check pointing adding rpint stylesheet for facility detailed view
| Less | mit | MasterFacilityList/mfl_web,urandu/mfl_web,urandu/mfl_web,MasterFacilityList/mfl_web,MasterFacilityList/mfl_web,MasterFacilityList/mfl_web | less | ## Code Before:
@media print {
.header h3, nav, footer {
display: none;
}
nav > div {
display: none;
}
.navbar-header {
display: none;
}
body {
font: 12pt Georgia, "Times New Roman", Times, serif;
line-height: 1.3;
}
h1 {
font-size: 24... |
b5b35ffa5169946958f25f31aa040d8e3d8291de | cico_do_build_che.sh | cico_do_build_che.sh |
. config
mvnche() {
which scl 2>/dev/null
if [ $? -eq 0 ]
then
if [ `scl -l 2> /dev/null | grep rh-maven33` != "" ]
then
scl enable rh-maven33 rh-nodejs4 "mvn $*"
else
mvn $*
fi
else
mvn $*
fi
}
mkdir $NPM_CONFIG_PREFIX 2>/dev/null
mvnche -B $* install -U
if [ $? -ne 0 ]; ... |
. config
mvnche() {
which scl 2>/dev/null
if [ $? -eq 0 ]
then
if [ `scl -l 2> /dev/null | grep rh-maven33` != "" ]
then
# gulp-cli is needed to build the dashboard
scl enable rh-nodejs4 "npm install --global gulp-cli"
scl enable rh-maven33 rh-nodejs4 "mvn $*"
else
mvn $*
... | Fix build error because gulp could not be found | Fix build error because gulp could not be found | Shell | epl-1.0 | sunix/rh-che,sunix/rh-che,sunix/rh-che,sunix/rh-che | shell | ## Code Before:
. config
mvnche() {
which scl 2>/dev/null
if [ $? -eq 0 ]
then
if [ `scl -l 2> /dev/null | grep rh-maven33` != "" ]
then
scl enable rh-maven33 rh-nodejs4 "mvn $*"
else
mvn $*
fi
else
mvn $*
fi
}
mkdir $NPM_CONFIG_PREFIX 2>/dev/null
mvnche -B $* install -U
i... |
1d870bb6dee02f98a84836f5f989c84dfec6dbb3 | .travis.yml | .travis.yml | language: csharp
solution: ./src/FluentValidation.Validators.UnitTestExtension.sln
script:
- xbuild /p:Configuration=Release ./src/FluentValidation.Validators.UnitTestExtension.sln
- mono ./src/packages/xunit.runner.console.*/tools/xunit.console.exe ./src/FluentValidation.Validators.UnitTestExtension.Tests/bin/Rele... | language: csharp
solution: ./src/FluentValidation.Validators.UnitTestExtension.sln
script:
- xbuild /p:Configuration=Release ./src/FluentValidation.Validators.UnitTestExtension.sln
- mono ./src/packages/xunit.runner.console.*/tools/xunit.console.exe ./src/FluentValidation.Validators.UnitTestExtension.Tests/bin/Rele... | Change build script - added NuGet dll tests | Change build script - added NuGet dll tests
| YAML | mit | MichalJankowskii/FluentValidation.Validators.UnitTestExtension | yaml | ## Code Before:
language: csharp
solution: ./src/FluentValidation.Validators.UnitTestExtension.sln
script:
- xbuild /p:Configuration=Release ./src/FluentValidation.Validators.UnitTestExtension.sln
- mono ./src/packages/xunit.runner.console.*/tools/xunit.console.exe ./src/FluentValidation.Validators.UnitTestExtensio... |
3e7fb60e9a22ad03f70bde63b43ecf5c661295c7 | src/client/app/components/toasts/toasts.template.js | src/client/app/components/toasts/toasts.template.js | import { Util } from "../../util.js";
export class ToastsTemplate {
static update(render, { message = "" } = {}) {
const now = Util.formatDate(new Date());
if (message) {
setTimeout(() => {
render`<span class="bg-yellow">${now} ${message}.</span>`;
setTi... | import { Util } from "../../util.js";
export class ToastsTemplate {
static update(render, { message = "" } = {}) {
if (!message) {
return;
}
const toasts = ToastsTemplate.toasts;
toasts.push(message);
if (ToastsTemplate.isRunnning) {
return;
... | Add queue to the toasts. | Add queue to the toasts.
| JavaScript | mit | albertosantini/node-conpa,albertosantini/node-conpa | javascript | ## Code Before:
import { Util } from "../../util.js";
export class ToastsTemplate {
static update(render, { message = "" } = {}) {
const now = Util.formatDate(new Date());
if (message) {
setTimeout(() => {
render`<span class="bg-yellow">${now} ${message}.</span>`;
... |
1f3164f95f0ce40bac38ac384bf5fdd181ab5fa1 | importlib_metadata/__init__.py | importlib_metadata/__init__.py | from .api import (
Distribution, PackageNotFoundError, distribution, distributions,
entry_points, files, metadata, requires, version)
# Import for installation side-effects.
from . import _hooks # noqa: F401
__all__ = [
'Distribution',
'PackageNotFoundError',
'distribution',
'distributions',... | from .api import (
Distribution, PackageNotFoundError, distribution, distributions,
entry_points, files, metadata, requires, version)
# Import for installation side-effects.
__import__('importlib_metadata._hooks')
__all__ = [
'Distribution',
'PackageNotFoundError',
'distribution',
'distributi... | Use imperative import to avoid lint (import order) and as a good convention when side-effects is the intention. | Use imperative import to avoid lint (import order) and as a good convention when side-effects is the intention.
| Python | apache-2.0 | python/importlib_metadata | python | ## Code Before:
from .api import (
Distribution, PackageNotFoundError, distribution, distributions,
entry_points, files, metadata, requires, version)
# Import for installation side-effects.
from . import _hooks # noqa: F401
__all__ = [
'Distribution',
'PackageNotFoundError',
'distribution',
... |
6dd975a1ac18788efd21d6b546dd90ef001f4bc7 | .travis.yml | .travis.yml | notifications:
email: false
language: node_js
node_js:
- "6"
script:
- "NODE_ENV=test npm run-script unit-tests"
- "npm run-script style"
cache:
- apt: true
- directories:
- "$HOME/.npm"
- "$HOME/.electron"
- "/Library/Caches/Homebrew"
addons:
apt:
packages:
- xvfb
before_install:
- "npm confi... | notifications:
email: false
language: node_js
node_js:
- "6"
script:
- "NODE_ENV=test npm run-script unit-tests"
- "npm run-script style"
cache:
- apt: true
- directories:
- "$HOME/.npm"
- "$HOME/.electron"
- "/Library/Caches/Homebrew"
env:
- CC=clang CXX=clang++ npm_config_clang=1
addons:
apt:
pack... | Update Travis config for keytar | Update Travis config for keytar
| YAML | mit | cheshire137/gh-notifications-snoozer,cheshire137/gh-notifications-snoozer | yaml | ## Code Before:
notifications:
email: false
language: node_js
node_js:
- "6"
script:
- "NODE_ENV=test npm run-script unit-tests"
- "npm run-script style"
cache:
- apt: true
- directories:
- "$HOME/.npm"
- "$HOME/.electron"
- "/Library/Caches/Homebrew"
addons:
apt:
packages:
- xvfb
before_install... |
8e0d9ed317239a880f77bdd5ed6c2e45ed862f39 | server/APIv1/follows/getUserFollowState.sql | server/APIv1/follows/getUserFollowState.sql | /**
* input
* follower: user_id<Number>
* target: user_id<Number>
*
* returns:
* | followcount | togglefollow |
* |-------------|--------------|
* | number | boolean |
*/
WITH user_of_interest AS (
SELECT
follower
FROM
followers_users_users
WHERE
target = ${target}
)
SELECT
count(*)... | /**
* input
* targetID: user_id<Number>
* userID: user_id<Number>
*
* returns:
* | followcount | togglefollow |
* |-------------|--------------|
* | number | boolean |
*/
WITH user_of_interest AS (
SELECT
follower
FROM
followers_users_users
WHERE
target = ${targetID}
)
SELECT
count(... | Update sql query for removing a user follow | Update sql query for removing a user follow
| SQL | mit | forkful/forkful,rompingstalactite/rompingstalactite,forkful/forkful,forkful/forkful,rompingstalactite/rompingstalactite,rompingstalactite/rompingstalactite | sql | ## Code Before:
/**
* input
* follower: user_id<Number>
* target: user_id<Number>
*
* returns:
* | followcount | togglefollow |
* |-------------|--------------|
* | number | boolean |
*/
WITH user_of_interest AS (
SELECT
follower
FROM
followers_users_users
WHERE
target = ${target}
)
S... |
e979d4a5deeac020477d565b97d68ff4b07c1aca | spec/receiver/pop3_spec.rb | spec/receiver/pop3_spec.rb | require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))
describe 'POP3 receiver' do
before do
@connection = mock('POP3 Connection')
@connection.stub!(:start).and_return(true)
@receiver_options = { :username => 'user',
:password => 'pass',
... | require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))
describe 'POP3 receiver' do
before do
@receiver_options = { :username => 'user',
:password => 'pass',
:connection => MockPOP3.new }
@receiver = Mailman::Receiver::POP3.new(@r... | Change how POP3 spec mocks | Change how POP3 spec mocks
| Ruby | mit | sr-education/mailman,mailman/mailman | ruby | ## Code Before:
require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))
describe 'POP3 receiver' do
before do
@connection = mock('POP3 Connection')
@connection.stub!(:start).and_return(true)
@receiver_options = { :username => 'user',
:password => 'pass... |
097fdf38dbd59c3c29b86cbc1b4f1415f45b9a92 | docs/configuration-directives/WSGIRestrictEmbedded.rst | docs/configuration-directives/WSGIRestrictEmbedded.rst | ====================
WSGIRestrictEmbedded
====================
:Description: Enable restrictions on use of embedded mode.
:Syntax: ``WSGIRestrictEmbedded On|Off``
:Default: ``WSGIRestrictEmbedded Off``
:Context: server config
The WSGIRestrictEmbedded directive determines whether mod_wsgi embedded
mode is enabled or n... | ====================
WSGIRestrictEmbedded
====================
:Description: Enable restrictions on use of embedded mode.
:Syntax: ``WSGIRestrictEmbedded On|Off``
:Default: ``WSGIRestrictEmbedded Off``
:Context: server config
The WSGIRestrictEmbedded directive determines whether mod_wsgi embedded
mode is enabled or n... | Improve warning on restricting use of embedded mode. | Improve warning on restricting use of embedded mode.
| reStructuredText | apache-2.0 | GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi | restructuredtext | ## Code Before:
====================
WSGIRestrictEmbedded
====================
:Description: Enable restrictions on use of embedded mode.
:Syntax: ``WSGIRestrictEmbedded On|Off``
:Default: ``WSGIRestrictEmbedded Off``
:Context: server config
The WSGIRestrictEmbedded directive determines whether mod_wsgi embedded
mode... |
abf499e6cb1cb1636693600af68c45ce05ae14cd | code/folder/MicroPostActivityFilter.php | code/folder/MicroPostActivityFilter.php | <?php
/**
*
*
* @author <marcus@silverstripe.com.au>
* @license BSD License http://www.silverstripe.org/bsd-license
*/
class MicroPostActivityFilter implements RequestFilter {
/**
* @var MicroBlogService
*/
public $microBlogService;
public function postRequest(\SS_HTTPRequest $request, \SS_HTTPRespons... | <?php
/**
*
*
* @author <marcus@silverstripe.com.au>
* @license BSD License http://www.silverstripe.org/bsd-license
*/
class MicroPostActivityFilter implements RequestFilter {
/**
* @var MicroBlogService
*/
public $microBlogService;
public function postRequest(\SS_HTTPRequest $request, \SS_HTTPRespons... | FIX Only update member actions that have occurred for member objects that exist in the DB | FIX Only update member actions that have occurred for member objects that exist in the DB
| PHP | bsd-3-clause | nyeholt/silverstripe-microblog,nyeholt/silverstripe-microblog,nyeholt/silverstripe-microblog,nyeholt/silverstripe-microblog,nyeholt/silverstripe-microblog,Neumes/silverstripe-microblog,Neumes/silverstripe-microblog | php | ## Code Before:
<?php
/**
*
*
* @author <marcus@silverstripe.com.au>
* @license BSD License http://www.silverstripe.org/bsd-license
*/
class MicroPostActivityFilter implements RequestFilter {
/**
* @var MicroBlogService
*/
public $microBlogService;
public function postRequest(\SS_HTTPRequest $request,... |
2529b01321abbf0810387e68fa3080f8b814ac08 | custom.html | custom.html | <!DOCTYPE html>
<html>
<head>
<title>Guitar Customization</title>
</head>
<body>
<h1>Post your custom Fenders, Gibsons, Ibanez, etc.</h1>
<p><i>The blog forum is upcoming!</i></p>
<footer><a href="index.html">Home</a></footer>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<title>Guitar Customization</title>
</head>
<body>
<img src="images/slash-lespaul.jpg" alt="Slash Les Paul" />
<p>Photo by: Flickr user <a href="https://www.flickr.com/photos/55111293@N08/5105487032/in/photolist-8M9Xqu-4SDEks-8YLMwv-4o8XSG-chyz5m-4SDBCA-4SDAKf-7wJx4z-4Szm94-apz2Q... | Add images and links to page | Add images and links to page
| HTML | mit | jmarsh433/jmarsh433.github.io | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>Guitar Customization</title>
</head>
<body>
<h1>Post your custom Fenders, Gibsons, Ibanez, etc.</h1>
<p><i>The blog forum is upcoming!</i></p>
<footer><a href="index.html">Home</a></footer>
</body>
</html>
## Instruction:
Add images and links to page
## Code Afte... |
09ce2e218fb34ec0ad182e3d378614257fdb22e6 | subsys/random/rand32_entropy_device.c | subsys/random/rand32_entropy_device.c | /*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <atomic.h>
#include <kernel.h>
#include <entropy.h>
static atomic_t entropy_driver;
u32_t sys_rand32_get(void)
{
struct device *dev = (struct device *)atomic_get(&entropy_driver);
u32_t random_num;
int ret;
if (unl... | /*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <atomic.h>
#include <kernel.h>
#include <entropy.h>
static atomic_t entropy_driver;
u32_t sys_rand32_get(void)
{
struct device *dev = (struct device *)atomic_get(&entropy_driver);
u32_t random_num;
int ret;
if (unl... | Add _ASSERT() test on returned device_get_binding | subsys/random: Add _ASSERT() test on returned device_get_binding
If there is a build setup problem where a device driver has not been
setup for the entropy driver then the call to device_get_binding()
will return a NULL value and the code will continue to use this NULL
value. The result is a hard fault later in code e... | C | apache-2.0 | mbolivar/zephyr,mbolivar/zephyr,Vudentz/zephyr,finikorg/zephyr,kraj/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,nashif/zephyr,galak/zephyr,galak/zephyr,ldts/zephyr,zephyriot/zephyr,explora26/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,mbolivar/zephyr,ldts/zephyr,punitvara/zephyr,GiulianoFranchetto/zephy... | c | ## Code Before:
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <atomic.h>
#include <kernel.h>
#include <entropy.h>
static atomic_t entropy_driver;
u32_t sys_rand32_get(void)
{
struct device *dev = (struct device *)atomic_get(&entropy_driver);
u32_t random_num;
in... |
0a67db3bef58c2032368fa3b4bec32a6a8b69995 | README.md | README.md |
Thumbnails for Django, Flask and other Python projects.
|
Thumbnails for Django, Flask and other Python projects.
## Install
```
pip install -e https://github.com/relekang/python-thumbnails.git#egg=python-thumbnails
```
## Usage
```python
from thumbnails import get_thumbnail
get_thumbnail('path/to/image.png', '300x300', 'center')
```
----------------------
MIT © Rolf ... | Add installation and usage in readme | Add installation and usage in readme
| Markdown | mit | relekang/python-thumbnails,python-thumbnails/python-thumbnails | markdown | ## Code Before:
Thumbnails for Django, Flask and other Python projects.
## Instruction:
Add installation and usage in readme
## Code After:
Thumbnails for Django, Flask and other Python projects.
## Install
```
pip install -e https://github.com/relekang/python-thumbnails.git#egg=python-thumbnails
```
## Usage
``... |
628ff819e0e8632823bd8092543d0a58a469f9b6 | server/package.yaml | server/package.yaml | name: tempgres-server
version: "2.0.0"
synopsis: REST service for creating temporary PostgreSQL databases.
description: >
REST service for conveniently creating temporary PostgreSQL databases
for use in tests.
.
See <https://github.com/ClockworkConsulting/tempgres-server/blob/master/README.md README.md>... | name: tempgres-server
version: "2.0.0"
synopsis: REST service for creating temporary PostgreSQL databases.
description: >
REST service for conveniently creating temporary PostgreSQL databases
for use in tests.
.
See <https://github.com/ClockworkConsulting/tempgres-server/blob/master/README.md README.md>... | Add '-Wmissing-fields' and '-threaded' GHC options | Add '-Wmissing-fields' and '-threaded' GHC options
| YAML | agpl-3.0 | ClockworkConsulting/tempgres-server | yaml | ## Code Before:
name: tempgres-server
version: "2.0.0"
synopsis: REST service for creating temporary PostgreSQL databases.
description: >
REST service for conveniently creating temporary PostgreSQL databases
for use in tests.
.
See <https://github.com/ClockworkConsulting/tempgres-server/blob/master/READ... |
cb09cb74a4dea6ddb73915f592ea629ece3572f4 | .travis.yml | .travis.yml | language: php
services: mongodb
sudo: false
php:
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- yes "" | pecl install mongodb
- ./composer.phar install
script: vendor/bin/phpunit
| language: php
services: mongodb
sudo: false
php:
- 5.6
- 7.0
- hhvm-3.11
- hhvm-3.12
before_script:
- yes "" | pecl install mongodb
- ./composer.phar install
script: vendor/bin/phpunit
| Drop php5.5, try hhvm 3.11 and 3.12 | Drop php5.5, try hhvm 3.11 and 3.12
| YAML | mit | netom/mandango,netom/mandango,netom/mandango | yaml | ## Code Before:
language: php
services: mongodb
sudo: false
php:
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- yes "" | pecl install mongodb
- ./composer.phar install
script: vendor/bin/phpunit
## Instruction:
Drop php5.5, try hhvm 3.11 and 3.12
## Code After:
language: php
services: mongodb
sudo: fal... |
a27c15024c200132f5ce6ef86dd5dd9e077c3ce9 | README.md | README.md | package.json files are central for node.js/npm projects. Beyond just valid json, there are required fields to follow the Packages [1.0](http://wiki.commonjs.org/wiki/Packages/1.0)/[1.1](http://wiki.commonjs.org/wiki/Packages/1.0) specifications.
This tool verifies the package.json against the spec, letting you know ab... | package.json files are central for node.js/npm projects. Beyond just valid json, there are required fields to follow the Packages [1.0](http://wiki.commonjs.org/wiki/Packages/1.0)/[1.1](http://wiki.commonjs.org/wiki/Packages/1.0) specifications.
This tool verifies the package.json against the spec, letting you know ab... | Update readme with future ideas | Update readme with future ideas
| Markdown | mit | gorillamania/package.json-validator,gtanner/package.json-validator,gorillamania/package.json-validator,gorillamania/package.json-validator,gtanner/package.json-validator | markdown | ## Code Before:
package.json files are central for node.js/npm projects. Beyond just valid json, there are required fields to follow the Packages [1.0](http://wiki.commonjs.org/wiki/Packages/1.0)/[1.1](http://wiki.commonjs.org/wiki/Packages/1.0) specifications.
This tool verifies the package.json against the spec, let... |
432f831b3b8bdf20df7f8eab55653e434aa492cf | app/views/organizations/index.html.erb | app/views/organizations/index.html.erb | <% content_for :title, "Organizations" %>
<% content_for :content do %>
<% if current_user.can_create_organization? %>
<div class="row input-row">
<div class="col-xs-12">
<div class="pull-right">
<%= link_to "New Organization", new_organization_path, class: "btn btn-primary" %>
</... | <% content_for :title, "Organizations" %>
<% content_for :content do %>
<% if current_user.can_create_organization? %>
<div class="row input-row">
<div class="col-xs-12">
<div class="pull-right">
<%= link_to "New Organization", new_organization_path, class: "btn btn-primary" %>
</... | Update organization index to use first address for display | Update organization index to use first address for display
| HTML+ERB | mit | on-site/StockAid,on-site/StockAid,on-site/StockAid | html+erb | ## Code Before:
<% content_for :title, "Organizations" %>
<% content_for :content do %>
<% if current_user.can_create_organization? %>
<div class="row input-row">
<div class="col-xs-12">
<div class="pull-right">
<%= link_to "New Organization", new_organization_path, class: "btn btn-primar... |
062740cc255ab3fabb61e81a5d0662379681ceab | operations/backup-and-restore/enable-backup-restore.yml | operations/backup-and-restore/enable-backup-restore.yml | - type: replace
path: /releases/-
value:
name: backup-and-restore-sdk
sha1: 71a7659e5aac18031ece278e0f4793c8b5282c8b
url: https://bosh.io/d/github.com/cloudfoundry-incubator/backup-and-restore-sdk-release?v=1.17.0
version: 1.17.0
- type: replace
path: /instance_groups/-
value:
azs:
- z1
... | - type: replace
path: /releases/-
value:
name: backup-and-restore-sdk
sha1: 71a7659e5aac18031ece278e0f4793c8b5282c8b
url: https://bosh.io/d/github.com/cloudfoundry-incubator/backup-and-restore-sdk-release?v=1.17.0
version: 1.17.0
- type: replace
path: /instance_groups/-
value:
azs:
- z1
... | Fix UAA BBR release_level_backup property | Fix UAA BBR release_level_backup property
- it now needs to be specified on the bbr-uaadb job, instead of the uaa
job
[#167748864](https://www.pivotaltracker.com/story/show/167748864)
| YAML | apache-2.0 | cloudfoundry/cf-deployment,cloudfoundry/cf-deployment | yaml | ## Code Before:
- type: replace
path: /releases/-
value:
name: backup-and-restore-sdk
sha1: 71a7659e5aac18031ece278e0f4793c8b5282c8b
url: https://bosh.io/d/github.com/cloudfoundry-incubator/backup-and-restore-sdk-release?v=1.17.0
version: 1.17.0
- type: replace
path: /instance_groups/-
value:
... |
1d20367a4704816c9138e6389487fb9e317aa317 | README.md | README.md |
A list of ambitious web applications built using [ember.js](http://emberjs.com/).
This project was inspired by a Google Drive spreadsheet that was shared on Twitter sometime ago. We thought that it might be a good idea to have a site listing all the cool projects built using ember.js so we made it.
### Submissions
W... |
A list of ambitious web applications built using [ember.js](http://emberjs.com/).
This project was inspired by a Google Drive spreadsheet that was shared on Twitter sometime ago. We thought that it might be a good idea to have a site listing all the cool projects built using ember.js so we made it.
### Submissions
W... | Add running instructions to readme | Add running instructions to readme
| Markdown | mit | nicolaschenet/built-with-ember,jpadilla/built-with-ember,kellysutton/built-with-ember,kellysutton/built-with-ember,GetBlimp/built-with-ember,1024inc/built-with-ember,GetBlimp/built-with-ember,toddjordan/built-with-ember,toddjordan/built-with-ember,jpadilla/built-with-ember,nicolaschenet/built-with-ember | markdown | ## Code Before:
A list of ambitious web applications built using [ember.js](http://emberjs.com/).
This project was inspired by a Google Drive spreadsheet that was shared on Twitter sometime ago. We thought that it might be a good idea to have a site listing all the cool projects built using ember.js so we made it.
#... |
e56b5a5256dcb7f791ad3d68703fe51123ce3513 | tools/seec-trace-view/Annotations.cpp | tools/seec-trace-view/Annotations.cpp | //===- tools/seec-trace-view/Annotations.cpp ------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | //===- tools/seec-trace-view/Annotations.cpp ------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | Check that annotations.xml documents match our expectations. | Check that annotations.xml documents match our expectations.
| C++ | mit | mheinsen/seec,seec-team/seec,mheinsen/seec,seec-team/seec,seec-team/seec,seec-team/seec,mheinsen/seec,seec-team/seec,mheinsen/seec,mheinsen/seec | c++ | ## Code Before:
//===- tools/seec-trace-view/Annotations.cpp ------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
/... |
4200157057dcf5b520308ae7391f94e48c025331 | montecarlo/pythia6/CMakeLists.txt | montecarlo/pythia6/CMakeLists.txt |
ROOT_USE_PACKAGE(montecarlo/eg)
ROOT_USE_PACKAGE(montecarlo/vmc)
ROOT_USE_PACKAGE(math/physics)
ROOT_GENERATE_DICTIONARY(G__Pythia6 *.h LINKDEF LinkDef.h)
ROOT_GENERATE_ROOTMAP(EGPythia6 LINKDEF LinkDef.h DEPENDENCIES EG Graf VMC Physics )
if(pythia6_nolink)
string(REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARE... |
ROOT_USE_PACKAGE(montecarlo/eg)
ROOT_USE_PACKAGE(montecarlo/vmc)
ROOT_USE_PACKAGE(math/physics)
ROOT_GENERATE_DICTIONARY(G__Pythia6 *.h LINKDEF LinkDef.h)
ROOT_GENERATE_ROOTMAP(EGPythia6 LINKDEF LinkDef.h DEPENDENCIES EG Graf VMC Physics )
if(pythia6_nolink)
string(REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARE... | Fix compilation error on Windows | Fix compilation error on Windows
| Text | lgpl-2.1 | tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot | text | ## Code Before:
ROOT_USE_PACKAGE(montecarlo/eg)
ROOT_USE_PACKAGE(montecarlo/vmc)
ROOT_USE_PACKAGE(math/physics)
ROOT_GENERATE_DICTIONARY(G__Pythia6 *.h LINKDEF LinkDef.h)
ROOT_GENERATE_ROOTMAP(EGPythia6 LINKDEF LinkDef.h DEPENDENCIES EG Graf VMC Physics )
if(pythia6_nolink)
string(REGEX REPLACE "-Wl,--no-undefined... |
94dc41159a503f3be907442f1fbe8f922683de05 | bin/run.sh | bin/run.sh |
set -o errexit
out=$(mktemp)
trap "rm -f $out" EXIT
java -jar "$1" - > $out
printf '\377' # 255 in octal
cat $out
|
set -o errexit
out=$(mktemp)
trap "rm -f $out" EXIT
# Only lets programs run for 30 seconds
timeout 30 java -jar "$1" - > $out
printf '\377' # 255 in octal
cat $out
| Add a timeout, as the user may hang it. | Add a timeout, as the user may hang it.
| Shell | mit | cogumbreiro/sepi-playpen,drlagos/mpisessions-playpen,drlagos/unify-playpen,cogumbreiro/sepi-playpen,drlagos/mpisessions-playpen,drlagos/unify-playpen | shell | ## Code Before:
set -o errexit
out=$(mktemp)
trap "rm -f $out" EXIT
java -jar "$1" - > $out
printf '\377' # 255 in octal
cat $out
## Instruction:
Add a timeout, as the user may hang it.
## Code After:
set -o errexit
out=$(mktemp)
trap "rm -f $out" EXIT
# Only lets programs run for 30 seconds
timeout 30 java -jar "... |
6932233d8ce0619fd6abb42efd4acf6f564cc056 | docs/content/lockfile.md | docs/content/lockfile.md | What is the Lockfile?
=====================
Consider the following [Packages file](packages_file.html):
source "http://nuget.org/api/v2"
nuget "Castle.Windsor-log4net" "~> 3.2"
nuget "Rx-Main" "~> 2.0"
In this case we specify dependencies to `Castle.Windsor-log4net` and `Rx-Main`.
Both packages have dep... | What is the Lockfile?
=====================
Consider the following [Packages file](packages_file.html):
source "http://nuget.org/api/v2"
nuget "Castle.Windsor-log4net" "~> 3.2"
nuget "Rx-Main" "~> 2.0"
In this case we specify dependencies to `Castle.Windsor-log4net` and `Rx-Main`.
Both packages have dep... | Use the correct dependency resolution in the docs | Use the correct dependency resolution in the docs
| Markdown | mit | baronfel/Paket,vasily-kirichenko/Paket,matthid/Paket,0x53A/Paket,matthid/Paket,dedale/Paket,simonhdickson/Paket,mrinaldi/Paket,inosik/Paket,colinbull/Paket,betgenius/Paket,robertpi/Paket,snowcrazed/Paket,jonathankarsh/Paket,Stift/Paket,0x53A/Paket,vasily-kirichenko/Paket,Stift/Paket,thinkbeforecoding/Paket,ascjones/Pak... | markdown | ## Code Before:
What is the Lockfile?
=====================
Consider the following [Packages file](packages_file.html):
source "http://nuget.org/api/v2"
nuget "Castle.Windsor-log4net" "~> 3.2"
nuget "Rx-Main" "~> 2.0"
In this case we specify dependencies to `Castle.Windsor-log4net` and `Rx-Main`.
Both p... |
fbc8c87a1b4cfa1f5de5f38b326216889e55a89f | 2013/thought_sauce/hkid_checksum/lib/Hkid.rb | 2013/thought_sauce/hkid_checksum/lib/Hkid.rb |
class Hkid
def check_digit(hkid)
sum = 0
leading_char = []
hkid.downcase.reverse.split(//).each_with_index do |char, index|
if index < 6
sum += char.to_i * (index + 2)
else
sum += (char.ord - 96) * (index + 2)
end
end
checksum = 11 - sum % 11
if checksum <... |
class Hkid
def check_digit(hkid)
sum = 0
leading_char = []
hkid.downcase.reverse.split(//).each_with_index do |char, index|
if index < 6
sum += char.to_i * (index + 2)
else
sum += (char.ord - 96) * (index + 2)
end
end
(11 - sum % 11).to_s(11).upcase
end
end
| Fix code to pass check digit is “A” | Fix code to pass check digit is “A”
| Ruby | mit | linc01n/interview | ruby | ## Code Before:
class Hkid
def check_digit(hkid)
sum = 0
leading_char = []
hkid.downcase.reverse.split(//).each_with_index do |char, index|
if index < 6
sum += char.to_i * (index + 2)
else
sum += (char.ord - 96) * (index + 2)
end
end
checksum = 11 - sum % 11
... |
b91102ed6f6b8bff0d012485f54e103a0f9a2ddf | scripts/get-release-version.sh | scripts/get-release-version.sh | caf_version=`grep "define CAF_VERSION" libcaf_core/caf/config.hpp | awk '{ printf "%d.%d.%d", int($3 / 10000), int($3 / 100) % 100, $3 % 100 }'`
# Get SHA from Git.
git_sha=`git log --pretty=format:%h -n 1`
# Check whether the current SHA is a tag.
if git describe --tags --contains $git_sha 1>release.txt 2>/dev/null
... | caf_version=`grep "define CAF_VERSION" libcaf_core/caf/config.hpp | awk '{ printf "%d.%d.%d", int($3 / 10000), int($3 / 100) % 100, $3 % 100 }'`
# Get SHA from Git.
git_sha=`git log --pretty=format:%h -n 1`
# Check whether the current SHA is a tag.
if git describe --tags --contains $git_sha 1>release.txt 2>/dev/null
... | Print build when getting release version | Print build when getting release version
| Shell | bsd-3-clause | DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework | shell | ## Code Before:
caf_version=`grep "define CAF_VERSION" libcaf_core/caf/config.hpp | awk '{ printf "%d.%d.%d", int($3 / 10000), int($3 / 100) % 100, $3 % 100 }'`
# Get SHA from Git.
git_sha=`git log --pretty=format:%h -n 1`
# Check whether the current SHA is a tag.
if git describe --tags --contains $git_sha 1>release.... |
c275dfe386fc8430a87e0cd5649239af966a8c62 | keymaps/autocomplete-plus.cson | keymaps/autocomplete-plus.cson | ".autocomplete-plus input.hidden-input":
"tab": "autocomplete-plus:confirm"
"down": "autocomplete-plus:select-next"
"up": "autocomplete-plus:select-previous"
"escape": "autocomplete-plus:cancel"
".editor":
"ctrl-shift-space": "autocomplete-plus:activate"
| ".autocomplete-plus input.hidden-input":
"tab": "autocomplete-plus:confirm"
"down": "autocomplete-plus:select-next"
"ctrl-n": "autocomplete-plus:select-next"
"up": "autocomplete-plus:select-previous"
"ctrl-p": "autocomplete-plus:select-previous"
"escape": "autocomplete-plus:cancel"
".editor":
"ctrl-shift... | Add ctrl-n,p emacs bindings for next, previous | Add ctrl-n,p emacs bindings for next, previous
Emacs binds are supported through most of the rest of Atom. Plus it's rough having to drop down to the arrow keys in the midst of typing :) | CoffeeScript | mit | Lyleo/autocomplete-plus,atom/autocomplete-plus,lestat220255/autocomplete-plus,brntbeer/autocomplete-plus,atom-community/autocomplete-plus,kevinsawicki/autocomplete-plus,wakermahmud/autocomplete-plus,kevinsawicki/autocomplete-plus | coffeescript | ## Code Before:
".autocomplete-plus input.hidden-input":
"tab": "autocomplete-plus:confirm"
"down": "autocomplete-plus:select-next"
"up": "autocomplete-plus:select-previous"
"escape": "autocomplete-plus:cancel"
".editor":
"ctrl-shift-space": "autocomplete-plus:activate"
## Instruction:
Add ctrl-n,p emacs bi... |
d82580647ea3c85fc14dbcc3db470867ef7499a6 | ql/test/qlpack.yml | ql/test/qlpack.yml | name: codeql/go-tests
version: 0.0.2
dependencies:
codeql/go-queries: ^0.0.2
codeql/go-all: ^0.0.2
extractor: go
| name: codeql/go-tests
version: 0.0.2
dependencies:
codeql/go-queries: ^0.0.2
codeql/go-all: ^0.0.2
codeql/go-examples: ^0.0.2
extractor: go
| Add reference to `codeql/go-examples` pack from test pack | Add reference to `codeql/go-examples` pack from test pack
| YAML | mit | github/codeql,github/codeql,github/codeql-go,github/codeql,github/codeql,github/codeql,github/codeql-go,github/codeql,github/codeql,github/codeql-go,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql-go | yaml | ## Code Before:
name: codeql/go-tests
version: 0.0.2
dependencies:
codeql/go-queries: ^0.0.2
codeql/go-all: ^0.0.2
extractor: go
## Instruction:
Add reference to `codeql/go-examples` pack from test pack
## Code After:
name: codeql/go-tests
version: 0.0.2
dependencies:
codeql/go-queries: ^0.0.2
codeql/... |
d6dcdf1c6b804d1f8e3b0a147b712e2ed9d45431 | ConfigureChecks.cmake | ConfigureChecks.cmake | INCLUDE(CheckIncludeFile)
INCLUDE(CheckLibraryExists)
# Only build statically on Windows.
IF(WIN32)
SET(CMAKE_EXE_LINKER_FLAGS "-static")
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
ELSE(WIN32)
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
ENDIF(WIN32)
# Ig... | INCLUDE(CheckIncludeFile)
INCLUDE(CheckLibraryExists)
# Only build statically on Windows.
IF(WIN32)
SET(CMAKE_EXE_LINKER_FLAGS "-static")
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
ELSE(WIN32)
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
ENDIF(WIN32)
# Ig... | Add libpng as a required package for CMake. | Add libpng as a required package for CMake.
| CMake | apache-2.0 | nol888/0x40hues,nol888/0x40hues,nol888/0x40hues | cmake | ## Code Before:
INCLUDE(CheckIncludeFile)
INCLUDE(CheckLibraryExists)
# Only build statically on Windows.
IF(WIN32)
SET(CMAKE_EXE_LINKER_FLAGS "-static")
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
ELSE(WIN32)
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
EN... |
8f60692f34da1ad83e5f39d62de8c35aac257308 | spec/lib/core/parser_spec.rb | spec/lib/core/parser_spec.rb | require 'spec_helper'
describe Parser do
class ParseTestCommand < Command
syntax "testing_good_command"
end
context '.parse_and_execute' do
it "handles a bad command" do
expect_any_instance_of(UnknownCommand).to receive(:execute)
subject.parse_and_execute(1, "DEFINITELY_NEVER_GOING_TO_BE_A_... | require 'spec_helper'
describe Parser do
class ParseTestCommand < Command
syntax "testing_good_command"
end
let (:connection) { double(Connection).as_null_object }
context '.parse_and_execute' do
it "handles a bad command" do
expect_any_instance_of(UnknownCommand).to receive(:execute)
su... | Fix parser spec to not explode | Fix parser spec to not explode
| Ruby | mit | tkrajcar/carbonmu,1337807/carbonmu | ruby | ## Code Before:
require 'spec_helper'
describe Parser do
class ParseTestCommand < Command
syntax "testing_good_command"
end
context '.parse_and_execute' do
it "handles a bad command" do
expect_any_instance_of(UnknownCommand).to receive(:execute)
subject.parse_and_execute(1, "DEFINITELY_NEVE... |
c9861ef2d8f76d622c6ea558e9007a746388c2a3 | src/main.ts | src/main.ts | import * as rtl from 'rtl-css-js';
export interface JssRTLOptions {
enabled?: boolean;
opt?: 'in' | 'out';
}
export default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) {
return {
onProcessStyle(style: any, _: any, sheet: any) {
if (!enabled) {
if (typeof style.flip ===... | import * as rtl from 'rtl-css-js';
const convert = rtl['default'] || rtl;
export interface JssRTLOptions {
enabled?: boolean;
opt?: 'in' | 'out';
}
export default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) {
return {
onProcessStyle(style: any, _: any, sheet: any) {
if (!enab... | Fix for cases where esm version of rtl-css-js is hit | Fix for cases where esm version of rtl-css-js is hit
| TypeScript | mit | alitaheri/jss-rtl | typescript | ## Code Before:
import * as rtl from 'rtl-css-js';
export interface JssRTLOptions {
enabled?: boolean;
opt?: 'in' | 'out';
}
export default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) {
return {
onProcessStyle(style: any, _: any, sheet: any) {
if (!enabled) {
if (typeo... |
ca4feae4515df8796aa13dac7379117fa2b79728 | frontend/README.md | frontend/README.md |
- `$ gulp` to build an optimized version of your application in folder dist
- `$ gulp serve` to start BrowserSync server on your source files with live reload
- `$ gulp serve:dist` to start BrowserSync server on your optimized application without live reload
- `$ gulp test` to run your unit tests with Karma
- `$ gulp ... |
Install dependencies
npm install
bower install
Develop
- `gulp serve` to start BrowserSync server on your source files with live reload
Test
- `gulp test` to run your unit tests with Karma
- `gulp test:auto` to run your unit tests with Karma in watch mode
- `gulp protractor` to launch your e2e tests with ... | Update readme with common commands | Update readme with common commands
| Markdown | mit | Vilsepi/after,Vilsepi/after,Vilsepi/after,Vilsepi/after,Vilsepi/after | markdown | ## Code Before:
- `$ gulp` to build an optimized version of your application in folder dist
- `$ gulp serve` to start BrowserSync server on your source files with live reload
- `$ gulp serve:dist` to start BrowserSync server on your optimized application without live reload
- `$ gulp test` to run your unit tests with ... |
317a5f93b212c0ec9fc566ee3d6887c57da555ed | spec/session_spec.rb | spec/session_spec.rb | require_relative "spec_helper"
describe "session handling" do
include CookieJar
it "should give a warning if session variable is not available" do
app do |r|
begin
session
rescue Exception => e
e.message
end
end
body.must_match("You're missing a session handler, try ... | require_relative "spec_helper"
describe "session handling" do
include CookieJar
it "should give a warning if session variable is not available" do
app do |r|
begin
session
rescue Exception => e
e.message
end
end
body.must_match("You're missing a session handler, try ... | Use roda session middleware instead of rack session middleware in session spec on Ruby 2+ | Use roda session middleware instead of rack session middleware in session spec on Ruby 2+
This works around the issue that Rack::Session::Cookie isn't
available in Rack starting in Rack 3+.
| Ruby | mit | jeremyevans/roda,jeremyevans/roda,jeremyevans/roda | ruby | ## Code Before:
require_relative "spec_helper"
describe "session handling" do
include CookieJar
it "should give a warning if session variable is not available" do
app do |r|
begin
session
rescue Exception => e
e.message
end
end
body.must_match("You're missing a sessi... |
5ef1d115dfed0314dd2787a76f1edea64b36ebb1 | .travis.yml | .travis.yml | language: ruby
before_install:
- gem install bundler -v '= 1.5.1'
rvm:
- 1.9.3
- 2.0
- 2.1
env:
- rails=3.1.8
- rails=3.2.8
- rails=3.2.16
- rails=4.0.2
- rails=4.1.0.beta1
- orm=mongoid2
- orm=mongoid3
- orm=mongoid4
- orm=mongo_mapper
- table_name_prefix=h_
- table_name_suffix=_h
service... | language: ruby
before_install:
- gem install bundler -v '= 1.5.1'
rvm:
- 1.9.3
- 2.0
- 2.1
env:
- rails=3.1.12
- rails=3.2.18
- rails=4.0.5
- rails=4.1.1
- orm=mongoid2
- orm=mongoid3
- orm=mongoid4
- orm=mongo_mapper
- table_name_prefix=h_
- table_name_suffix=_h
services:
- mongodb
| Move to latest Rails releases for 3.1.x - 4.1.x | Move to latest Rails releases for 3.1.x - 4.1.x
| YAML | mit | AICIDNN/doorkeeper,GeekOnCoffee/doorkeeper,Uysim/doorkeeper,nbulaj/doorkeeper,identification-io/doorkeeper,kolorahl/doorkeeper,pmdeazeta/doorkeeper,telekomatrix/doorkeeper,shivakumaarmgs/doorkeeper,dollarshaveclub/doorkeeper,lalithr95/doorkeeper,jasl/doorkeeper,outstand/doorkeeper,ValMilkevich/doorkeeper,doorkeeper-gem... | yaml | ## Code Before:
language: ruby
before_install:
- gem install bundler -v '= 1.5.1'
rvm:
- 1.9.3
- 2.0
- 2.1
env:
- rails=3.1.8
- rails=3.2.8
- rails=3.2.16
- rails=4.0.2
- rails=4.1.0.beta1
- orm=mongoid2
- orm=mongoid3
- orm=mongoid4
- orm=mongo_mapper
- table_name_prefix=h_
- table_name_s... |
49153e142eacb556d7564033b270bd47b3aa0d18 | mbinfo/mbinfo.go | mbinfo/mbinfo.go | /* Read from /sys/devices/virtual/dmi/id/board_{name,serial,vendor} */
package mbinfo
import (
"fmt"
"os/exec"
)
const MB_NAME_FILE = "/sys/devices/virtual/dmi/id/board_name"
const MB_SERIAL_FILE = "/sys/devices/virtual/dmi/id/board_serial"
const MB_VENDOR_FILE = "/sys/devices/virtual/dmi/id/board_vendor"
type MBs... | /* Read from /sys/devices/virtual/dmi/id/board_{name,serial,vendor} */
package mbinfo
import (
"fmt"
"os/exec"
"strings"
)
const MB_NAME_FILE = "/sys/devices/virtual/dmi/id/board_name"
const MB_SERIAL_FILE = "/sys/devices/virtual/dmi/id/board_serial"
const MB_VENDOR_FILE = "/sys/devices/virtual/dmi/id/board_vendor... | Remove '\n' character in Motherboard's Model/Serial | Remove '\n' character in Motherboard's Model/Serial
| Go | mit | PiScale/hwinfo-lib | go | ## Code Before:
/* Read from /sys/devices/virtual/dmi/id/board_{name,serial,vendor} */
package mbinfo
import (
"fmt"
"os/exec"
)
const MB_NAME_FILE = "/sys/devices/virtual/dmi/id/board_name"
const MB_SERIAL_FILE = "/sys/devices/virtual/dmi/id/board_serial"
const MB_VENDOR_FILE = "/sys/devices/virtual/dmi/id/board_v... |
c43eca9d029740d877a2e6d3ba7ce7813878e86a | test/representers/api/musical_work_representer_test.rb | test/representers/api/musical_work_representer_test.rb |
require 'test_helper'
require 'musical_work' if !defined?(AudioFile)
describe Api::MusicalWorkRepresenter do
let(:musical_work) { FactoryGirl.create(:musical_work) }
let(:representer) { Api::MusicalWorkRepresenter.new(musical_work) }
let(:json) { JSON.parse(representer.to_json) }
it 'create rep... |
require 'test_helper'
require 'musical_work' if !defined?(AudioFile)
describe Api::MusicalWorkRepresenter do
let(:musical_work) { FactoryGirl.create(:musical_work) }
let(:representer) { Api::MusicalWorkRepresenter.new(musical_work) }
let(:json) { JSON.parse(representer.to_json) }
it 'create repr... | Add testing for musical work duration | Add testing for musical work duration
| Ruby | agpl-3.0 | PRX/cms.prx.org,PRX/cms.prx.org,PRX/cms.prx.org,PRX/cms.prx.org | ruby | ## Code Before:
require 'test_helper'
require 'musical_work' if !defined?(AudioFile)
describe Api::MusicalWorkRepresenter do
let(:musical_work) { FactoryGirl.create(:musical_work) }
let(:representer) { Api::MusicalWorkRepresenter.new(musical_work) }
let(:json) { JSON.parse(representer.to_json) }
... |
76c3947b6033d812bf02d9d1d2445460e888f427 | _includes/header.html | _includes/header.html | <nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{{ site.baseurl }}">Hautahi Kingi</a>
</div>
<div id="navbar">
<ul class="nav navbar-nav navbar-right">
<li><a {% if page.url == '/' %} class="active"{% endif %} href="{{ si... | <nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{{ site.baseurl }}">Hautahi Kingi</a>
</div>
<div id="navbar" class="hidden-xs">
<ul class="nav navbar-nav navbar-right">
<li><a {% if page.url == '/' %} class="active"{% en... | Fix menu for small screen. | Fix menu for small screen.
| HTML | mit | hautahi/hautahi.github.io,hautahi/hautahi.github.io | html | ## Code Before:
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{{ site.baseurl }}">Hautahi Kingi</a>
</div>
<div id="navbar">
<ul class="nav navbar-nav navbar-right">
<li><a {% if page.url == '/' %} class="active"{% endif... |
6e96905b97bbb3c154a15e90b3dc3d118db7c96e | src/OI.h | src/OI.h |
class OI
{
private:
Joystick joystick;
public:
OI();
inline float GetXplusY(){
float val;
val = FractionOmitted(joystick.GetY() + joystick.GetX());
if(val > 1.2) val = 1.2;
if(val < -1.2) val = -1.2;
return val;
}
inline float GetXminusY(){
float val;
val = FractionOmitted(joystick.GetY() - joystic... |
class OI
{
private:
Joystick joystick;
public:
OI();
inline float GetXplusY(){
float val;
val = FractionOmitted(joystick.GetY() + joystick.GetX());
if(val > 1.2) val = 1.2;
if(val < -1.2) val = -1.2;
return val;
}
inline float GetXminusY(){
float val;
val = FractionOmitted(joystick.GetY() - joystic... | Create RightStick X and Y value get Function | Create RightStick X and Y value get Function | C | epl-1.0 | tokyotechnicalsamurai/shougun | c | ## Code Before:
class OI
{
private:
Joystick joystick;
public:
OI();
inline float GetXplusY(){
float val;
val = FractionOmitted(joystick.GetY() + joystick.GetX());
if(val > 1.2) val = 1.2;
if(val < -1.2) val = -1.2;
return val;
}
inline float GetXminusY(){
float val;
val = FractionOmitted(joystick.... |
5c954f2c750c0e391b0fea1444d288bb2048cd38 | config/mongoid.yml | config/mongoid.yml | <%= IO.read("/etc/db_config/database.yml") %>
development:
<<: *developer_mongodb_development
test:
<<: *developer_mongodb_test
staging_int:
<<: *developer_mongodb_staging_int
staging:
<<: *developer_mongodb_staging
production:
<<: *developer_mongodb_production
| <%= IO.read("/etc/db_config/database.yml") %>
development:
<<: *developer_mongodb_development
test:
<<: *developer_mongodb_test
staging_int:
<<: *developer_mongodb_staging_int
production:
<<: *developer_mongodb_production
| Remove our dummy two staging servers, since we're all internal for now. | Remove our dummy two staging servers, since we're all internal for now.
| YAML | mit | johan--/api-umbrella-web,NREL/api-umbrella,NREL/api-umbrella-web,NREL/api-umbrella,NREL/api-umbrella-web,NREL/api-umbrella,apinf/api-umbrella,johan--/api-umbrella-web,apinf/api-umbrella,apinf/api-umbrella,cmc333333/api-umbrella-web,johan--/api-umbrella-web,johan--/api-umbrella-web,apinf/api-umbrella,NREL/api-umbrella-w... | yaml | ## Code Before:
<%= IO.read("/etc/db_config/database.yml") %>
development:
<<: *developer_mongodb_development
test:
<<: *developer_mongodb_test
staging_int:
<<: *developer_mongodb_staging_int
staging:
<<: *developer_mongodb_staging
production:
<<: *developer_mongodb_production
## Instruction:
Remove our... |
bfd7f8864c584f7c17ca55630cb41f576724e15f | polling_stations/apps/nus_wales/templates/nus_wales/base.html | polling_stations/apps/nus_wales/templates/nus_wales/base.html | {% extends "dc_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block body_base %}
<body class="embed">
<header style="background-color:#00677f;padding:2em;color:#FFF;margin:2em 0;">
<div class="row">
<div class="columns large-12">
<h2>Find your polling station</h2>
</div>
... | {% extends "dc_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block body_base %}
<body class="embed">
<header style="background-color:#00677f;padding:2em;color:#FFF;margin:2em 0;">
<div class="row">
<div class="columns large-12">
<h2>{% trans "Find your polling station" %}</h2>
... | Add trans tag to NUS theme | Add trans tag to NUS theme
| HTML | bsd-3-clause | DemocracyClub/UK-Polling-Stations,andylolz/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,chris48s/UK-Polling-Stations,chris48s/UK-Polling-Stations,chris48s/UK-Polling-Stations,andylolz/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,andylolz/UK-Polling-Stations | html | ## Code Before:
{% extends "dc_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block body_base %}
<body class="embed">
<header style="background-color:#00677f;padding:2em;color:#FFF;margin:2em 0;">
<div class="row">
<div class="columns large-12">
<h2>Find your polling station</h2>
... |
6a243d4072603cf0a06ee497a8a3424e5709612e | _data/posters.yml | _data/posters.yml | - year: 2016
posters:
- authors: "Heywood P, Richmond P, Maddock S, Jung M"
date: "2016-04-04"
event: "GPU Technology Conference 2016"
event_url: "http://www.gputechconf.com/"
title: "Accelerated Transport System Simulation using CUDA"
note: "Poster P6203"
pdf: "http://on-deman... | - year: 2017
posters:
- authors: "Heywood P, Richmond P, Maddock S, Bradley R, Wright I, Swain D, Mawson M, Fletcher G, Guichard R, Himlin R"
date: "2017-05-08"
event: "GPU Technology Conference 2017"
event_url: "http://www.gputechconf.com/"
title: "Shortest Path Calculations for Low-Densi... | Add GTC 2017 poster details | Add GTC 2017 poster details
| YAML | mit | ptheywood/ptheywood.github.io,ptheywood/ptheywood.github.io,ptheywood/ptheywood.github.io | yaml | ## Code Before:
- year: 2016
posters:
- authors: "Heywood P, Richmond P, Maddock S, Jung M"
date: "2016-04-04"
event: "GPU Technology Conference 2016"
event_url: "http://www.gputechconf.com/"
title: "Accelerated Transport System Simulation using CUDA"
note: "Poster P6203"
pdf: ... |
5e70a05c26a54e7e6dd5c8bb88e92ea966e36430 | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-mocha-test");
grunt.loadNpmTasks("grunt-mocha-istanbul");
var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output";
var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts";
grunt.initConfig({
moc... | module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-mocha-test");
grunt.loadNpmTasks("grunt-mocha-istanbul");
var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output";
var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts";
grunt.initConfig({
moc... | Check function and branch coverage | Check function and branch coverage
| JavaScript | mit | MantasSutula/todo-grad-project,stevenjob/todo-grad-project,RMcNeillSL/todo-grad-project,thullSL/todo-grad-project,seanworkcode/todo-grad-impl,MantasSutula/todo-grad-project,JMVHill/todo-grad-project,jdhodges431/todo-grad-project,seanworkcode/todo-grad-project,WPFerg/todo-grad-project,seanworkcode/todo-grad-impl,jdhodge... | javascript | ## Code Before:
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-mocha-test");
grunt.loadNpmTasks("grunt-mocha-istanbul");
var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output";
var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts";
grunt.initConf... |
fc95348177a60f40313f7ece442ac67f981f2ad7 | service/security/authentication/api/src/main/java/org/eclipse/kapua/service/authentication/credential/CredentialFactory.java | service/security/authentication/api/src/main/java/org/eclipse/kapua/service/authentication/credential/CredentialFactory.java | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... | Fix warnings and apply code style | Fix warnings and apply code style | Java | epl-1.0 | stzilli/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,stzilli/kapua,stzilli/kapua,LeoNerdoG/kapua,stzilli/kapua,stzilli/kapua,LeoNerdoG/kapua | java | ## Code Before:
/*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which ... |
23c73808ac87bb5701d77ba0aa3717decdeb33ac | pkgs/os-specific/linux/procps/default.nix | pkgs/os-specific/linux/procps/default.nix | { stdenv, fetchurl, ncurses }:
stdenv.mkDerivation {
name = "procps-ng-3.3.10";
src = fetchurl {
url = "mirror://sourceforge/procps-ng/Production/${name}.tar.xz";
sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
};
buildInputs = [ ncurses ];
makeFlags = "DESTDIR=$(out)";
cross... | { stdenv, fetchurl, ncurses }:
stdenv.mkDerivation {
name = "procps-3.2.8";
src = fetchurl {
url = http://procps.sourceforge.net/procps-3.2.8.tar.gz;
sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
};
patches =
[ ./makefile.patch
./procps-build.patch
./gnumake3.82... | Revert "procps: 3.2.8 -> 3.3.10" | Revert "procps: 3.2.8 -> 3.3.10"
This reverts commit 63675e8c2775932851cdccf2917c1bc11d157145.
This should be the old version.
| Nix | mit | NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/ni... | nix | ## Code Before:
{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation {
name = "procps-ng-3.3.10";
src = fetchurl {
url = "mirror://sourceforge/procps-ng/Production/${name}.tar.xz";
sha256 = "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i";
};
buildInputs = [ ncurses ];
makeFlags = "DESTDIR=$... |
815b1b0a589d59b6fde4406b55bca78bec11caa8 | .travis.yml | .travis.yml | language: python
python: 3.5 # 3.5 requires manual download, so it needs to be selected
install: pip install tox
script: tox
env:
# Github deployment key
- secure: "d6xg3/CKxF2SDhkBNb94s7KbQPlCKwrO0jIJhS59djtyHApY/0tE594LXzrdQR9/yz998Zm/aCy+mQ4JbGToUZd4jKImelJguHCTOVXzjVEZqIH2dakpiYtLzWkyphQkqqWvIIBL8DuxX3BbVbrwq... | language: python
python: 3.5 # 3.5 requires manual download, so it needs to be selected
install: pip install tox
script: tox
env:
# Github deployment key
- secure: "d6xg3/CKxF2SDhkBNb94s7KbQPlCKwrO0jIJhS59djtyHApY/0tE594LXzrdQR9/yz998Zm/aCy+mQ4JbGToUZd4jKImelJguHCTOVXzjVEZqIH2dakpiYtLzWkyphQkqqWvIIBL8DuxX3BbVbrwq... | Disable e-mails on Travis success | Disable e-mails on Travis success
Fixes #12.
| YAML | mit | cdown/srt | yaml | ## Code Before:
language: python
python: 3.5 # 3.5 requires manual download, so it needs to be selected
install: pip install tox
script: tox
env:
# Github deployment key
- secure: "d6xg3/CKxF2SDhkBNb94s7KbQPlCKwrO0jIJhS59djtyHApY/0tE594LXzrdQR9/yz998Zm/aCy+mQ4JbGToUZd4jKImelJguHCTOVXzjVEZqIH2dakpiYtLzWkyphQkqqWvI... |
151503bab3972bdd07f644b5a94225dda05d82d4 | client/views/forgotPassword/forgotPassword.html | client/views/forgotPassword/forgotPassword.html | <template name='entryForgotPassword'>
<div class="{{containerCSSClass}}">
<div class="{{rowCSSClass}}">
{{#if logo}}
<div class="entry-logo">
<a href="/"><img src="{{logo}}" alt="logo"></a>
</div>
{{/if}}
<div class="entry col-md-4 col-md-offset-4">
{{#if erro... | <template name='entryForgotPassword'>
<div class="sign-in-page forgot-password-page">
<div class="{{containerCSSClass}}">
<div class="{{rowCSSClass}}">
{{#if logo}}
<div class="entry-logo">
<a href="/"><img src="{{logo}}" alt="logo"></a>
</div>
{{/if}}
... | Update html code for forgot-password page | Update html code for forgot-password page
| HTML | mit | maxkferg/accounts-entry,vhmh2005/accounts-entry,maxkferg/accounts-entry,vhmh2005/accounts-entry | html | ## Code Before:
<template name='entryForgotPassword'>
<div class="{{containerCSSClass}}">
<div class="{{rowCSSClass}}">
{{#if logo}}
<div class="entry-logo">
<a href="/"><img src="{{logo}}" alt="logo"></a>
</div>
{{/if}}
<div class="entry col-md-4 col-md-offset-4">
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.