commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f34f758fdd7657b381579266d482d04b75aecf33 | junit/src/test/java/cucumber/runtime/junit/TestPickleBuilder.java | junit/src/test/java/cucumber/runtime/junit/TestPickleBuilder.java | package cucumber.runtime.junit;
import cucumber.runtime.io.Resource;
import cucumber.runtime.model.CucumberFeature;
import cucumber.runtime.model.FeatureParser;
import gherkin.events.PickleEvent;
import gherkin.pickles.Compiler;
import gherkin.pickles.Pickle;
import java.io.ByteArrayInputStream;
import java.io.InputS... | package cucumber.runtime.junit;
import cucumber.runtime.io.Resource;
import cucumber.runtime.model.CucumberFeature;
import cucumber.runtime.model.FeatureParser;
import gherkin.events.PickleEvent;
import gherkin.pickles.Compiler;
import gherkin.pickles.Pickle;
import java.io.ByteArrayInputStream;
import java.io.InputS... | Use explicit encoding when getting bytes from String | [JUnit] Use explicit encoding when getting bytes from String
| Java | mit | cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm | java | ## Code Before:
package cucumber.runtime.junit;
import cucumber.runtime.io.Resource;
import cucumber.runtime.model.CucumberFeature;
import cucumber.runtime.model.FeatureParser;
import gherkin.events.PickleEvent;
import gherkin.pickles.Compiler;
import gherkin.pickles.Pickle;
import java.io.ByteArrayInputStream;
impor... | package cucumber.runtime.junit;
import cucumber.runtime.io.Resource;
import cucumber.runtime.model.CucumberFeature;
import cucumber.runtime.model.FeatureParser;
import gherkin.events.PickleEvent;
import gherkin.pickles.Compiler;
import gherkin.pickles.Pickle;
import java.io.ByteArrayInputStream;
... | 3 | 0.058824 | 2 | 1 |
028d6af13f5581f3bebb2772c6c5c163ec9fd0ea | README.md | README.md |
[](https://quay.io/repository/aptible/ubuntu)
Ubuntu base image with custom Aptible patches and Dockerfile building tools.
## Installation and Usage
docker pull quay.io/aptible/ubuntu
docker run -i -t quay.io/aptible/ubuntu
##... |
[](https://quay.io/repository/aptible/ubuntu)
Ubuntu base image with custom Aptible patches and Dockerfile building tools.
## Installation and Usage
docker pull quay.io/aptible/ubuntu
docker run -i -t quay.io/aptible/ubuntu
##... | Remove official support for 12.10 and add note about LTS updates | Remove official support for 12.10 and add note about LTS updates
| Markdown | mit | aptible/docker-ubuntu,aptible/docker-ubuntu | markdown | ## Code Before:
[](https://quay.io/repository/aptible/ubuntu)
Ubuntu base image with custom Aptible patches and Dockerfile building tools.
## Installation and Usage
docker pull quay.io/aptible/ubuntu
docker run -i -t quay.io/ap... |
[](https://quay.io/repository/aptible/ubuntu)
Ubuntu base image with custom Aptible patches and Dockerfile building tools.
## Installation and Usage
docker pull quay.io/aptible/ubuntu
docker run -i -t quay.io/... | 2 | 0.052632 | 1 | 1 |
6ae829a88c2354a3bbf0c05d7909b37f1f0077ca | packages/do/dom-parser.yaml | packages/do/dom-parser.yaml | homepage: ''
changelog-type: markdown
hash: 9e3184d7892afb6ed51f7e27f562e47b446dc5082c8808c1ac8d893bb0cee996
test-bench-deps:
shakespeare: -any
dom-parser: -any
xml-conduit: -any
base: -any
hspec: -any
text: -any
data-default: -any
semigroups: -any
lens: -any
maintainer: makeit@typeable.io
synopsis: S... | homepage: ''
changelog-type: markdown
hash: 981bb1101657f8643235ec32c5c31ca705183d91fb7e14eccb1ca62bbea5f2ef
test-bench-deps:
shakespeare: -any
dom-parser: -any
xml-conduit: -any
base: -any
hspec: -any
text: -any
data-default: -any
semigroups: -any
lens: -any
maintainer: makeit@typeable.io
synopsis: S... | Update from Hackage at 2016-11-21T19:08:14Z | Update from Hackage at 2016-11-21T19:08:14Z | YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: markdown
hash: 9e3184d7892afb6ed51f7e27f562e47b446dc5082c8808c1ac8d893bb0cee996
test-bench-deps:
shakespeare: -any
dom-parser: -any
xml-conduit: -any
base: -any
hspec: -any
text: -any
data-default: -any
semigroups: -any
lens: -any
maintainer: makeit@typeabl... | homepage: ''
changelog-type: markdown
- hash: 9e3184d7892afb6ed51f7e27f562e47b446dc5082c8808c1ac8d893bb0cee996
+ hash: 981bb1101657f8643235ec32c5c31ca705183d91fb7e14eccb1ca62bbea5f2ef
test-bench-deps:
shakespeare: -any
dom-parser: -any
xml-conduit: -any
base: -any
hspec: -any
text: -any
... | 9 | 0.209302 | 5 | 4 |
50d6d7730c21b320f3f62474d00f5dc41c8819c3 | spec/factories/subjects.rb | spec/factories/subjects.rb | FactoryGirl.define do
factory :subject do
project
association :uploader, factory: :user
sequence(:zooniverse_id) { |n| "TES#{n.to_s(26).rjust(8, '0')}" }
metadata({distance_from_earth: "42 light years",
brightness: -20,
loudness: 11})
trait :with_mediums do
afte... | FactoryGirl.define do
factory :subject do
project
association :uploader, factory: :user
sequence(:zooniverse_id) { |n| "TES#{n.to_s(26).rjust(8, '0')}" }
metadata({distance_from_earth: "42 light years",
brightness: -20,
loudness: 11})
trait :with_mediums do
afte... | Create subject sets all for the same project | Create subject sets all for the same project
| Ruby | apache-2.0 | srallen/Panoptes,edpaget/Panoptes,zooniverse/Panoptes,srallen/Panoptes,srallen/Panoptes,zooniverse/Panoptes,parrish/Panoptes,astopy/Panoptes,astopy/Panoptes,camallen/Panoptes,edpaget/Panoptes,camallen/Panoptes,astopy/Panoptes,parrish/Panoptes,zooniverse/Panoptes,camallen/Panoptes,zooniverse/Panoptes,astopy/Panoptes,edp... | ruby | ## Code Before:
FactoryGirl.define do
factory :subject do
project
association :uploader, factory: :user
sequence(:zooniverse_id) { |n| "TES#{n.to_s(26).rjust(8, '0')}" }
metadata({distance_from_earth: "42 light years",
brightness: -20,
loudness: 11})
trait :with_mediu... | FactoryGirl.define do
factory :subject do
project
association :uploader, factory: :user
sequence(:zooniverse_id) { |n| "TES#{n.to_s(26).rjust(8, '0')}" }
metadata({distance_from_earth: "42 light years",
brightness: -20,
loudness: 11})
trait :with... | 4 | 0.137931 | 3 | 1 |
8b41b21a15c00f2ca60843c118a77e0404167765 | meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb | meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb | SUMMARY = "Diagnostic tool for TI K3 processors"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"
PV = "0.2+git${SRCPV}"
COMPATIBLE_MACHINE = "k3"
BRANCH ?= "master"
SRCREV = "79f007cd462384ce22e750e9002b714878f56892"
SRC_URI = "git://... | SUMMARY = "Diagnostic tool for TI K3 processors"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"
PV = "0.2+git${SRCPV}"
COMPATIBLE_MACHINE = "k3"
BRANCH ?= "master"
SRCREV = "966a5695b73bc53039ca60d196b77de0640088d4"
SRC_URI = "git://... | Update SRCREV to pick AM62x support | k3conf: Update SRCREV to pick AM62x support
Update the k3conf to the latest SHA.
This adds AM62x support.
Signed-off-by: Praneeth Bajjuri <5cbfdb29322859ed5c637fdb11a8f23fddd8e511@ti.com>
Signed-off-by: Ryan Eatmon <c832a3efa8dfb59911a35349a6eeba0397feadf1@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87... | BitBake | mit | rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti | bitbake | ## Code Before:
SUMMARY = "Diagnostic tool for TI K3 processors"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"
PV = "0.2+git${SRCPV}"
COMPATIBLE_MACHINE = "k3"
BRANCH ?= "master"
SRCREV = "79f007cd462384ce22e750e9002b714878f56892"
S... | SUMMARY = "Diagnostic tool for TI K3 processors"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"
PV = "0.2+git${SRCPV}"
COMPATIBLE_MACHINE = "k3"
BRANCH ?= "master"
- SRCREV = "79f007cd462384ce22e750e9002b714878f568... | 2 | 0.083333 | 1 | 1 |
1684197404c712a1a350870b234d8eb861ef330d | src/com/blazeloader/api/api/general/ApiGeneral.java | src/com/blazeloader/api/api/general/ApiGeneral.java | package com.blazeloader.api.api.general;
import com.blazeloader.api.main.BLMain;
import java.io.File;
/**
* General API functions
*/
public class ApiGeneral {
/**
* Location of Minecraft's working directory (.minecraft).
*/
public static File mainDir = new File("./");
/**
* Location of ... | package com.blazeloader.api.api.general;
import com.blazeloader.api.main.BLMain;
import java.io.File;
/**
* General API functions
*/
public class ApiGeneral {
/**
* Location of Minecraft's working directory (.minecraft).
*/
public static File mainDir = new File("./");
/**
* Shuts down t... | Remove unneeded fields from APIGeneral | Remove unneeded fields from APIGeneral
| Java | bsd-2-clause | Sollace/BlazeLoader,BlazeLoader/BlazeLoader,warriordog/BlazeLoader,Sollace/BlazeLoader,BlazeLoader/BlazeLoader,warriordog/BlazeLoader,BlazeLoader/BlazeLoader | java | ## Code Before:
package com.blazeloader.api.api.general;
import com.blazeloader.api.main.BLMain;
import java.io.File;
/**
* General API functions
*/
public class ApiGeneral {
/**
* Location of Minecraft's working directory (.minecraft).
*/
public static File mainDir = new File("./");
/**
... | package com.blazeloader.api.api.general;
import com.blazeloader.api.main.BLMain;
import java.io.File;
/**
* General API functions
*/
public class ApiGeneral {
/**
* Location of Minecraft's working directory (.minecraft).
*/
public static File mainDir = new File("./");
... | 10 | 0.294118 | 0 | 10 |
39a58432b74739ff79c2ffb78df656e66726de72 | docs/Development_Setup.md | docs/Development_Setup.md |
[Homebrew](http://brew.sh) is the easiest way to install everything on Mac.
1. Install Xcode
1. Install Homebrew
1. Install Rust and Cargo
1. Install ImageMagick
```
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install rust
$ brew install... |
[Homebrew](http://brew.sh) is the easiest way to install everything on Mac.
1. Install Xcode
1. Install Homebrew
1. Install Rust and Cargo
1. Install ImageMagick
```
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install rust
$ brew install... | Include note about LIBCLANG_PATH envar for Linux | Include note about LIBCLANG_PATH envar for Linux
| Markdown | apache-2.0 | nlfiedler/magick-rust | markdown | ## Code Before:
[Homebrew](http://brew.sh) is the easiest way to install everything on Mac.
1. Install Xcode
1. Install Homebrew
1. Install Rust and Cargo
1. Install ImageMagick
```
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install rus... |
[Homebrew](http://brew.sh) is the easiest way to install everything on Mac.
1. Install Xcode
1. Install Homebrew
1. Install Rust and Cargo
1. Install ImageMagick
```
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew ins... | 2 | 0.054054 | 1 | 1 |
ff14d9b78cd64c01c0031be07ab35153c3c481bb | Casks/nndd.rb | Casks/nndd.rb | cask :v1 => 'nndd' do
version '2.4.3'
sha256 '6a73dcad2e73d877ad1503ed1162cae1a1c84f21d1abaa6aaf9b31bb2fbca531'
url 'http://dl.sourceforge.jp/nndd/62201/NNDD_v2_4_3.dmg'
name 'NNDD'
homepage 'http://sourceforge.jp/projects/nndd/'
license :x11
preflight do
system_command staged_path.join('Install NND... | cask :v1 => 'nndd' do
version '2.4.3'
sha256 '6a73dcad2e73d877ad1503ed1162cae1a1c84f21d1abaa6aaf9b31bb2fbca531'
url 'http://dl.osdn.jp/nndd/62201/NNDD_v2_4_3.dmg'
name 'NNDD'
homepage 'http://osdn.jp/projects/nndd/'
license :x11
preflight do
system_command staged_path.join('Install NNDD.app/Contents... | Change hosting service name in NNDD.app Cask | Change hosting service name in NNDD.app Cask
| Ruby | bsd-2-clause | christer155/homebrew-cask,tan9/homebrew-cask,nathansgreen/homebrew-cask,sosedoff/homebrew-cask,albertico/homebrew-cask,slnovak/homebrew-cask,christophermanning/homebrew-cask,hvisage/homebrew-cask,mokagio/homebrew-cask,kryhear/homebrew-cask,dspeckhard/homebrew-cask,blogabe/homebrew-cask,wickles/homebrew-cask,feigaochn/h... | ruby | ## Code Before:
cask :v1 => 'nndd' do
version '2.4.3'
sha256 '6a73dcad2e73d877ad1503ed1162cae1a1c84f21d1abaa6aaf9b31bb2fbca531'
url 'http://dl.sourceforge.jp/nndd/62201/NNDD_v2_4_3.dmg'
name 'NNDD'
homepage 'http://sourceforge.jp/projects/nndd/'
license :x11
preflight do
system_command staged_path.j... | cask :v1 => 'nndd' do
version '2.4.3'
sha256 '6a73dcad2e73d877ad1503ed1162cae1a1c84f21d1abaa6aaf9b31bb2fbca531'
- url 'http://dl.sourceforge.jp/nndd/62201/NNDD_v2_4_3.dmg'
? ^^^^^^^^^^
+ url 'http://dl.osdn.jp/nndd/62201/NNDD_v2_4_3.dmg'
? + ^^
name 'NNDD'
- h... | 4 | 0.235294 | 2 | 2 |
867686580ae5d00b33efbbde567371d431c20c5c | package.json | package.json | {
"name": "postcss-assets",
"version": "4.0.0",
"description": "PostCSS plugin to manage assets",
"keywords": [
"assets",
"base64",
"css",
"image",
"path",
"postcss",
"postcss-plugin",
"size",
"url"
],
"license": "MIT",
"author": "Vadym Borodin <borodean@gmail.com>",
... | {
"name": "postcss-assets",
"version": "4.0.0",
"description": "PostCSS plugin to manage assets",
"keywords": [
"assets",
"base64",
"css",
"image",
"path",
"postcss",
"postcss-plugin",
"size",
"url"
],
"license": "MIT",
"author": "Vadym Borodin <borodean@gmail.com>",
... | Add the list of contributors | Add the list of contributors
| JSON | mit | assetsjs/postcss-assets,borodean/postcss-assets | json | ## Code Before:
{
"name": "postcss-assets",
"version": "4.0.0",
"description": "PostCSS plugin to manage assets",
"keywords": [
"assets",
"base64",
"css",
"image",
"path",
"postcss",
"postcss-plugin",
"size",
"url"
],
"license": "MIT",
"author": "Vadym Borodin <borodean... | {
"name": "postcss-assets",
"version": "4.0.0",
"description": "PostCSS plugin to manage assets",
"keywords": [
"assets",
"base64",
"css",
"image",
"path",
"postcss",
"postcss-plugin",
"size",
"url"
],
"license": "MIT",
"author": "Vadym... | 7 | 0.212121 | 7 | 0 |
f969a9b919fb9765c8f955ab2c68284c41abb097 | aes.c | aes.c |
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned char *out, const AES_KEY *key)
{
if (u... |
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned char *out, const AES_KEY *key)
{
stati... | Use a static variable to track whether to use AES-NI | Use a static variable to track whether to use AES-NI
| C | bsd-2-clause | seankelly/aesni,seankelly/aesni | c | ## Code Before:
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned char *out, const AES_KE... |
static void aes_encrypt_block_openssl(const unsigned char *, unsigned char *, const AES_KEY *);
static void aes_encrypt_block_aesni(const unsigned char *, unsigned char *, const AES_KEY *);
int
use_aesni()
{
return 0;
}
void
aes_encrypt_block(const unsigned char *in, unsigned char *out, cons... | 9 | 0.264706 | 8 | 1 |
3d7601095c39de4ed485c464f8f02551c72f3e8c | spec/features/admin/products/search_for_product_spec.rb | spec/features/admin/products/search_for_product_spec.rb | require 'rails_helper'
feature 'Search for product' do
let!(:product) { FactoryGirl.create(:product, name: 'Organic Cotton Romper') }
background do
FactoryGirl.create(:website)
sign_in_as_admin
end
scenario 'Search for and navigate to product', js: true do
given_i_am_on_the_product_index
and_... | require 'rails_helper'
feature 'Search for product' do
let!(:product) { FactoryGirl.create(:product, name: 'Organic Cotton Romper') }
background do
FactoryGirl.create(:website)
sign_in_as_admin
end
scenario 'Search for and navigate to product', js: true do
given_i_am_on_the_product_index
and_... | Remove debugging code in failing spec | Remove debugging code in failing spec
| Ruby | mit | ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey | ruby | ## Code Before:
require 'rails_helper'
feature 'Search for product' do
let!(:product) { FactoryGirl.create(:product, name: 'Organic Cotton Romper') }
background do
FactoryGirl.create(:website)
sign_in_as_admin
end
scenario 'Search for and navigate to product', js: true do
given_i_am_on_the_produc... | require 'rails_helper'
feature 'Search for product' do
let!(:product) { FactoryGirl.create(:product, name: 'Organic Cotton Romper') }
background do
FactoryGirl.create(:website)
sign_in_as_admin
end
scenario 'Search for and navigate to product', js: true do
given_i_am_on_th... | 1 | 0.027027 | 0 | 1 |
578138ec68a7481c29c11c15a0ff978b3ff1a2bb | EduChainApp/js/tabs/tasks/TaskListContainer.js | EduChainApp/js/tabs/tasks/TaskListContainer.js | /**
*
* @flow
*/
'use strict';
import React from 'react';
import TaskListView from './TaskListView';
import type {Task} from '../../reducers/tasks';
import ENV from '../../common/Environment';
export default class TaskListContainer extends React.Component {
state: {
tasks: Array<Task>
};
const... | /**
*
* @flow
*/
'use strict';
import React from 'react';
import TaskListView from './TaskListView';
import type {Task} from '../../reducers/tasks';
import ENV from '../../common/Environment';
export default class TaskListContainer extends React.Component {
state: {
tasks: Array<Task>
};
const... | Remove test row generator. Adds `onRefresh` & `setTasks` methods. | Remove test row generator. Adds `onRefresh` & `setTasks` methods.
| JavaScript | mit | bkrem/educhain,bkrem/educhain,bkrem/educhain,bkrem/educhain | javascript | ## Code Before:
/**
*
* @flow
*/
'use strict';
import React from 'react';
import TaskListView from './TaskListView';
import type {Task} from '../../reducers/tasks';
import ENV from '../../common/Environment';
export default class TaskListContainer extends React.Component {
state: {
tasks: Array<Task>
... | /**
*
* @flow
*/
'use strict';
import React from 'react';
import TaskListView from './TaskListView';
import type {Task} from '../../reducers/tasks';
import ENV from '../../common/Environment';
export default class TaskListContainer extends React.Component {
state: {
tasks: A... | 38 | 0.567164 | 14 | 24 |
3a9a92186f0c241eaeb8b531e607a6f62cb623be | spec/models/user_spec.rb | spec/models/user_spec.rb | require 'spec_helper'
describe User do
it "should return login on User.login" do
user = User.create!(:email => 'icesik@altlinux.org',
:password => 'password',
:password_confirmation => 'password')
user.confirmed_at = Time.zone.now
user.save!
user.login.... | require 'spec_helper'
describe User do
it "should return login on User.login" do
user = User.create!(:email => 'icesik@altlinux.org',
:password => 'password',
:password_confirmation => 'password')
user.confirmed_at = Time.zone.now
user.save!
user.login.... | Add more specs for User model | Add more specs for User model
| Ruby | mit | biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0 | ruby | ## Code Before:
require 'spec_helper'
describe User do
it "should return login on User.login" do
user = User.create!(:email => 'icesik@altlinux.org',
:password => 'password',
:password_confirmation => 'password')
user.confirmed_at = Time.zone.now
user.save!... | require 'spec_helper'
describe User do
it "should return login on User.login" do
user = User.create!(:email => 'icesik@altlinux.org',
:password => 'password',
:password_confirmation => 'password')
user.confirmed_at = Time.zone.now
user.sav... | 11 | 0.275 | 10 | 1 |
4e84f307bf9df8a2667016d545428f86ea1b8aa1 | client/templates/layout/appLayout.html | client/templates/layout/appLayout.html | <head>
<title>Mandrill</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/ManDfav.png">
<script src="/countdown.min.js"></script>
<script src="/moment-countdown.min.js"></script>
</head>
<template name="appLayout">
{{#i... | <head>
<title>Mandrill</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/ManDfav.png">
<script src="/countdown.min.js"></script>
<script src="/moment-countdown.min.js"></script>
</head>
<template name="appLayout">
{{#i... | Revert "Clickable version info in the footer." | Revert "Clickable version info in the footer."
This reverts commit 7268d5686edbc0476b19fd62f0e9506b193042d5.
| HTML | apache-2.0 | wollardj/Mandrill | html | ## Code Before:
<head>
<title>Mandrill</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/ManDfav.png">
<script src="/countdown.min.js"></script>
<script src="/moment-countdown.min.js"></script>
</head>
<template name="a... | <head>
<title>Mandrill</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/ManDfav.png">
<script src="/countdown.min.js"></script>
<script src="/moment-countdown.min.js"></script>
</head>
<template nam... | 6 | 0.181818 | 1 | 5 |
9c901d5bcbd6088b28e7bbac7013b85d465bf5bb | README.md | README.md | MKCommons-Android
=================
Utility library for Android
| MKCommons-Android
=================
While I don't mind sharing the code, this is mostly a private collecton of random stuff that I pretty often. You won't find much documentation or an overview here, and lots of the stuff is also pretty old.
I want to extract the code that I need frequently into separate libraries, ... | Add short explanation about the repo | Add short explanation about the repo | Markdown | bsd-3-clause | mikumi/MKCommons-Android | markdown | ## Code Before:
MKCommons-Android
=================
Utility library for Android
## Instruction:
Add short explanation about the repo
## Code After:
MKCommons-Android
=================
While I don't mind sharing the code, this is mostly a private collecton of random stuff that I pretty often. You won't find much docu... | MKCommons-Android
=================
- Utility library for Android
+ While I don't mind sharing the code, this is mostly a private collecton of random stuff that I pretty often. You won't find much documentation or an overview here, and lots of the stuff is also pretty old.
+
+ I want to extract the code that I... | 4 | 1 | 3 | 1 |
ebe25ecbc9028051d346f89da1357dd199949c31 | lib/generators/templates/carpetbomb.rb | lib/generators/templates/carpetbomb.rb | require 'redcarpet'
Carpetbomb.configure do |config|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
:autolink => true,
:space_after_headers => true,
:fenced_code_blocks => true)
config.rend... | require 'redcarpet'
Carpetbomb.configure do |config|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
:autolink => true,
:tables => true,
:footnotes => true,
... | Enable tables and footnotes options in redcarpet | Enable tables and footnotes options in redcarpet | Ruby | mit | albertogg/carpetbomb | ruby | ## Code Before:
require 'redcarpet'
Carpetbomb.configure do |config|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
:autolink => true,
:space_after_headers => true,
:fenced_code_blocks => true... | require 'redcarpet'
Carpetbomb.configure do |config|
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
:autolink => true,
+ :tables => true,
+ :footnotes => true,
... | 2 | 0.142857 | 2 | 0 |
5b6f4b84119000d45c084455bb57b43e8b76d775 | include/pre_config.php | include/pre_config.php | <?php
// Setup I18N
require_once "../src/Core/I18N.php";
require_once "setup_i18n.php"; | <?php
// Setup I18N before autoload to prevent Laravel helpers from overriding translation function __()
// These two lines must be before autoload.php
require_once (__DIR__."../src/Core/I18N.php");
require_once (__DIR__."setup_i18n.php"); | Fix require path to i18n | Fix require path to i18n
| PHP | apache-2.0 | tsugiproject/tsugi-php,csev/tsugi-php,csev/tsugi-php,tsugiproject/tsugi-php,tsugiproject/tsugi-php | php | ## Code Before:
<?php
// Setup I18N
require_once "../src/Core/I18N.php";
require_once "setup_i18n.php";
## Instruction:
Fix require path to i18n
## Code After:
<?php
// Setup I18N before autoload to prevent Laravel helpers from overriding translation function __()
// These two lines must be before autoload.php
requi... | <?php
- // Setup I18N
+ // Setup I18N before autoload to prevent Laravel helpers from overriding translation function __()
+ // These two lines must be before autoload.php
- require_once "../src/Core/I18N.php";
+ require_once (__DIR__."../src/Core/I18N.php");
? +++++++++ +
- requ... | 7 | 1.4 | 4 | 3 |
99d92791f997fba8bb1a07464cfb146badc28ff1 | config/template_openstack.yml.erb | config/template_openstack.yml.erb | name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
domain_name: default
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor::Config.packer.op... | name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor::Config.packer.openstack_flavor_name).... | Delete domain_name variable to support Openstack Liberty | Delete domain_name variable to support Openstack Liberty
| HTML+ERB | apache-2.0 | cloudconductor/cloud_conductor,cloudconductor/cloud_conductor,cloudconductor/cloud_conductor | html+erb | ## Code Before:
name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
domain_name: default
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor::... | name: <%= name %>----{{user `image_name`}}
type: openstack
username: <%= cloud.key %>
password: <%= cloud.secret %>
tenant_name: <%= cloud.tenant_name %>
identity_endpoint: <%= cloud.entry_point %>v2.0/tokens
- domain_name: default
region: RegionOne
flavor: <%= cloud.client.adapter.flavor(CloudConductor... | 1 | 0.071429 | 0 | 1 |
51660291b043b88eab599c59d8c1ef7ae9dc74d7 | src/core/models.py | src/core/models.py | from django.db import models
from django.contrib.auth.models import User
from util.session import get_or_generate_session_name
class Session(models.Model):
name = models.CharField(max_length=255)
user = models.ForeignKey(User, blank=True, null=True)
started_at = models.DateTimeField('started at', auto_now... | from django.db import models
from django.contrib.auth.models import User
from util.session import get_or_generate_session_name
from util.session import DEFAULT_SESSION_NAME_PREFIX
class Session(models.Model):
name = models.CharField(max_length=255)
user = models.ForeignKey(User, blank=True, null=True)
sta... | Use the existing default name. | Use the existing default name. | Python | mit | uxebu/tddbin-backend,uxebu/tddbin-backend | python | ## Code Before:
from django.db import models
from django.contrib.auth.models import User
from util.session import get_or_generate_session_name
class Session(models.Model):
name = models.CharField(max_length=255)
user = models.ForeignKey(User, blank=True, null=True)
started_at = models.DateTimeField('start... | from django.db import models
from django.contrib.auth.models import User
from util.session import get_or_generate_session_name
+ from util.session import DEFAULT_SESSION_NAME_PREFIX
class Session(models.Model):
name = models.CharField(max_length=255)
user = models.ForeignKey(User, blank=True, ... | 3 | 0.103448 | 2 | 1 |
27ee2ce2bcf750210b6f704fa435176f4e3d8889 | app/views/elements/header/_header.html.slim | app/views/elements/header/_header.html.slim | = render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/language' if I18n.available_locales.length > 1
= render ... | = render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/language' if I18n.available_locales.length > 1
= render ... | Remove clearfix div between header and breadcrumb | Remove clearfix div between header and breadcrumb
| Slim | mit | lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter | slim | ## Code Before:
= render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/language' if I18n.available_locales.length > 1
... | = render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/language' if I18n.available_locales.length > 1
... | 2 | 0.095238 | 0 | 2 |
f5a59fea56b0389801ce39b00bbfe5918dc01ec2 | lib/kanaveral/output.rb | lib/kanaveral/output.rb | module Kanaveral
module Output
def self.password remote
ask "Password for #{remote} : "
password = STDIN.noecho(&:gets).chop
cr
password
end
def self.cmd_output text
text ||= ''
cr
text = ' '.freeze + text
print Rainbow(text).cyan
cr
end
... | module Kanaveral
module Output
def self.password remote
ask "Password for #{remote} : "
password = STDIN.noecho(&:gets).chop
cr
password
end
def self.cmd_output text
text ||= ''
cr
print Rainbow(text).cyan
cr
end
def self.ask text
... | Remove leading space of command stdout | Remove leading space of command stdout | Ruby | mit | anoiaque/kanaveral,anoiaque/kanaveral | ruby | ## Code Before:
module Kanaveral
module Output
def self.password remote
ask "Password for #{remote} : "
password = STDIN.noecho(&:gets).chop
cr
password
end
def self.cmd_output text
text ||= ''
cr
text = ' '.freeze + text
print Rainbow(text).cyan
... | module Kanaveral
module Output
def self.password remote
ask "Password for #{remote} : "
password = STDIN.noecho(&:gets).chop
cr
password
end
def self.cmd_output text
text ||= ''
cr
- text = ' '.freeze + text
print Rainbo... | 1 | 0.018519 | 0 | 1 |
226c8e089a834b4bbe28f61105d6c6c666e71a28 | requirements.txt | requirements.txt | Django==1.5.9
requests==2.4.1
python-dateutil==1.4
# Production server
gunicorn==0.17.2
# Riemann client
bernhard==0.1.1
# Mock python objects for testing
mock==1.0.1
# Memcache client
pylibmc==1.2.3
# Gevent requests
# grequests==0.2.0
git+https://github.com/microcosm-cc/grequests.git@85884230bff825063e2f05e7b5de... | Django==1.5.9
requests==1.1.0
python-dateutil==1.4
# Production server
gunicorn==0.17.2
# Riemann client
bernhard==0.1.1
# Mock python objects for testing
mock==1.0.1
# Memcache client
pylibmc==1.2.3
# Gevent requests
grequests==0.2.0
newrelic==2.16.0.12
| Revert "Update requests to latest and use a Microcosm fork of grequests" | Revert "Update requests to latest and use a Microcosm fork of grequests"
This reverts commit 85df88ac9454992740efd1ef796f4d7e3d427a67.
| Text | agpl-3.0 | microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb,microcosm-cc/microweb | text | ## Code Before:
Django==1.5.9
requests==2.4.1
python-dateutil==1.4
# Production server
gunicorn==0.17.2
# Riemann client
bernhard==0.1.1
# Mock python objects for testing
mock==1.0.1
# Memcache client
pylibmc==1.2.3
# Gevent requests
# grequests==0.2.0
git+https://github.com/microcosm-cc/grequests.git@85884230bff8... | Django==1.5.9
- requests==2.4.1
? ^^^
+ requests==1.1.0
? ^ ++
python-dateutil==1.4
# Production server
gunicorn==0.17.2
# Riemann client
bernhard==0.1.1
# Mock python objects for testing
mock==1.0.1
# Memcache client
pylibmc==1.2.3
# Gevent requests
- # grequ... | 5 | 0.238095 | 2 | 3 |
f4df3fffe8702be8506e10ecf901c9988988b5de | Sources/TSCUtility/CMakeLists.txt | Sources/TSCUtility/CMakeLists.txt |
add_library(TSCUtility
Archiver.swift
ArgumentParser.swift
ArgumentParserShellCompletion.swift
BuildFlags.swift
CollectionExtensions.swift
Diagnostics.swift
dlopen.swift
Downloader.swift
FloatingPointExtensions.swift
FSWatch.swift
Git.swift
IndexStore.swift
InterruptHandler.swift
JSONMessag... |
add_library(TSCUtility
Archiver.swift
ArgumentParser.swift
ArgumentParserShellCompletion.swift
BuildFlags.swift
CollectionExtensions.swift
Diagnostics.swift
Downloader.swift
FSWatch.swift
FloatingPointExtensions.swift
Git.swift
IndexStore.swift
InterruptHandler.swift
JSONMessageStreamingParse... | Add some new files to cmake | Add some new files to cmake
| Text | apache-2.0 | apple/swift-tools-support-core,apple/swift-tools-support-core,apple/swift-tools-support-core,apple/swift-tools-support-core | text | ## Code Before:
add_library(TSCUtility
Archiver.swift
ArgumentParser.swift
ArgumentParserShellCompletion.swift
BuildFlags.swift
CollectionExtensions.swift
Diagnostics.swift
dlopen.swift
Downloader.swift
FloatingPointExtensions.swift
FSWatch.swift
Git.swift
IndexStore.swift
InterruptHandler.sw... |
add_library(TSCUtility
Archiver.swift
ArgumentParser.swift
ArgumentParserShellCompletion.swift
BuildFlags.swift
CollectionExtensions.swift
Diagnostics.swift
- dlopen.swift
Downloader.swift
+ FSWatch.swift
FloatingPointExtensions.swift
- FSWatch.swift
Git.swift
IndexSto... | 8 | 0.195122 | 5 | 3 |
11b0608f2cab4f9c804d5a2e67edfc4270448b71 | ectoken.py | ectoken.py | from ctypes import CDLL, create_string_buffer, byref
import pkg_resources
bf = CDLL(pkg_resources.resource_filename(__name__, '_ecblowfish.so'))
def ectoken_generate(key, string):
if isinstance(string, unicode):
string = string.encode('utf-8')
string = 'ec_secure=%03d&%s' % (len(string) + 14, string)... | from ctypes import CDLL, create_string_buffer, byref
import pkg_resources
bf = CDLL(pkg_resources.resource_filename(__name__, '_ecblowfish.so'))
def ectoken_generate(key, string):
if len(string) > 512:
raise ValueError(
'%r exceeds maximum length of 512 characters' % string)
if isinstance... | Add check for maximum length (taken from the original Edgecast ec_encrypt.c example) | Add check for maximum length (taken from the original Edgecast ec_encrypt.c example)
| Python | bsd-3-clause | sebest/ectoken-py,sebest/ectoken-py | python | ## Code Before:
from ctypes import CDLL, create_string_buffer, byref
import pkg_resources
bf = CDLL(pkg_resources.resource_filename(__name__, '_ecblowfish.so'))
def ectoken_generate(key, string):
if isinstance(string, unicode):
string = string.encode('utf-8')
string = 'ec_secure=%03d&%s' % (len(strin... | from ctypes import CDLL, create_string_buffer, byref
import pkg_resources
bf = CDLL(pkg_resources.resource_filename(__name__, '_ecblowfish.so'))
def ectoken_generate(key, string):
+ if len(string) > 512:
+ raise ValueError(
+ '%r exceeds maximum length of 512 characters' % strin... | 3 | 0.214286 | 3 | 0 |
1e0fc561b98895ac2c7eae34670783997863504f | src/mex_compile.sh | src/mex_compile.sh | mex -g rosbag_wrapper.cpp parser.cpp \
./librosbag.a \
./librosconsole.a \
./libroscpp_serialization.a \
./libros.a \
./librostime.a \
./liblog4cxx.a \
./libaprutil-1.a \
./libapr-1.a \
./libexpat.a \
../lib_boost/libboost_filesystem.a \
../lib_boost/libboost_system.a \
../lib_boost/libboost_si... | mex -g rosbag_wrapper.cpp parser.cpp \
../lib/librosbag.a \
../lib/librosconsole.a \
../lib/libroscpp_serialization.a \
../lib/libros.a \
../lib/librostime.a \
../lib/liblog4cxx.a \
../lib/libaprutil-1.a \
../lib/libapr-1.a \
../lib/libexpat.a \
../lib/libboost_filesystem.a \
../lib/libboost_syst... | Change archive location for mex compile script | Change archive location for mex compile script
| Shell | bsd-3-clause | zheng-rong/matlab_rosbag,zheng-rong/matlab_rosbag,bcharrow/matlab_rosbag,bcharrow/matlab_rosbag,bcharrow/matlab_rosbag,zheng-rong/matlab_rosbag | shell | ## Code Before:
mex -g rosbag_wrapper.cpp parser.cpp \
./librosbag.a \
./librosconsole.a \
./libroscpp_serialization.a \
./libros.a \
./librostime.a \
./liblog4cxx.a \
./libaprutil-1.a \
./libapr-1.a \
./libexpat.a \
../lib_boost/libboost_filesystem.a \
../lib_boost/libboost_system.a \
../lib_b... | mex -g rosbag_wrapper.cpp parser.cpp \
- ./librosbag.a \
+ ../lib/librosbag.a \
? +++++
- ./librosconsole.a \
+ ../lib/librosconsole.a \
? +++++
- ./libroscpp_serialization.a \
+ ../lib/libroscpp_serialization.a \
? +++++
- ./libros.a \
+ ../lib/libros.a \
? +++++
- ./librostime.a \... | 30 | 1.2 | 15 | 15 |
be7b413beca25a47e9b1d60717fe9c1a7342bdb1 | fml/patches/common/net/minecraft/src/EntityVillager.java.patch | fml/patches/common/net/minecraft/src/EntityVillager.java.patch | --- ../src-base/common/net/minecraft/src/EntityVillager.java
+++ ../src-work/common/net/minecraft/src/EntityVillager.java
@@ -2,6 +2,8 @@
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
+import cpw.mods.fml.common.registry.VillagerRegistry;
+
import java.util.Collections;
import java.uti... | --- ../src-base/common/net/minecraft/src/EntityVillager.java
+++ ../src-work/common/net/minecraft/src/EntityVillager.java
@@ -2,6 +2,8 @@
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
+import cpw.mods.fml.common.registry.VillagerRegistry;
+
import java.util.Collections;
import java.uti... | Move villager trading hook up a bit. thanks sengir. | Move villager trading hook up a bit. thanks sengir.
| Diff | lgpl-2.1 | RainWarrior/MinecraftForge,shadekiller666/MinecraftForge,brubo1/MinecraftForge,mickkay/MinecraftForge,karlthepagan/MinecraftForge,Vorquel/MinecraftForge,fcjailybo/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,Mathe172/MinecraftForge,Zaggy1024/MinecraftForge,Ghostlyr/MinecraftForge,blay09/MinecraftForge,bonii-xx/Minec... | diff | ## Code Before:
--- ../src-base/common/net/minecraft/src/EntityVillager.java
+++ ../src-work/common/net/minecraft/src/EntityVillager.java
@@ -2,6 +2,8 @@
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
+import cpw.mods.fml.common.registry.VillagerRegistry;
+
import java.util.Collections;
... | --- ../src-base/common/net/minecraft/src/EntityVillager.java
+++ ../src-work/common/net/minecraft/src/EntityVillager.java
@@ -2,6 +2,8 @@
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
+import cpw.mods.fml.common.registry.VillagerRegistry;
+
import java.util.Collections... | 8 | 0.275862 | 4 | 4 |
bf0356d2574bdc50a809246ec444b21abbbf1ab0 | functions/weather.fetch.fish | functions/weather.fetch.fish | function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (echo $argv[1] | md5sum | cut -d " " -f 1)
if not find /tmp/$md5.url -mmin +30 ^ /dev/null
curl -s $argv[1] > /tmp/$md5.url
or return 1
end
cat /tmp/$md5.url
end
| function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (__md5 "$argv")
if test (count $argv) -gt 1
for param in $argv[2..-1]
set flags $flags --data-urlencode $param
end
end
if not find /tmp/$md5.url -mmin +$weather_cache_age > /dev/null ^ /dev/null
curl -Gs $flags $ar... | Add GET parameters and more md5 providers | Add GET parameters and more md5 providers
| fish | mit | oh-my-fish/plugin-weather | fish | ## Code Before:
function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (echo $argv[1] | md5sum | cut -d " " -f 1)
if not find /tmp/$md5.url -mmin +30 ^ /dev/null
curl -s $argv[1] > /tmp/$md5.url
or return 1
end
cat /tmp/$md5.url
end
## Instruction:
Add GET parameters and more... | function weather.fetch -d "Fetches data from a URL backed by a cache"
- set md5 (echo $argv[1] | md5sum | cut -d " " -f 1)
+ set md5 (__md5 "$argv")
- if not find /tmp/$md5.url -mmin +30 ^ /dev/null
+ if test (count $argv) -gt 1
+ for param in $argv[2..-1]
+ set flags $flags --data-urlencode $par... | 31 | 3.1 | 28 | 3 |
9b5977599011d00d962b469d26851459cc365ad0 | Platforms/PythonApp/Resources/ResourceReader.txt | Platforms/PythonApp/Resources/ResourceReader.txt |
_UNICODE_BOM = '\xef\xbb\xbf'
def ResourceReader_readTextFile(path):
path = path.replace('/', os.sep)
c = open(path, 'rt')
text = c.read()
c.close()
if text[:3] == _UNICODE_BOM:
text = text[3:]
return text
def ResourceReader_readImageFile(path):
path = path.replace('/', os.sep)
retur... |
def ResourceReader_readTextFile(path):
path = path.replace('/', os.sep)
c = open(path, 'rt')
text = c.read()
c.close()
# Trim the unicode BOM
if text[:3] == '\xef\xbb\xbf':
text = text[3:]
elif text[:1] == '\ufeff':
text = text[1:]
return text
def ResourceReader_readImageFile... | Fix unicode BOM trimming in Python 3 for text resources. | Fix unicode BOM trimming in Python 3 for text resources.
| Text | mit | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | text | ## Code Before:
_UNICODE_BOM = '\xef\xbb\xbf'
def ResourceReader_readTextFile(path):
path = path.replace('/', os.sep)
c = open(path, 'rt')
text = c.read()
c.close()
if text[:3] == _UNICODE_BOM:
text = text[3:]
return text
def ResourceReader_readImageFile(path):
path = path.replace('/', os.sep)
re... |
- _UNICODE_BOM = '\xef\xbb\xbf'
def ResourceReader_readTextFile(path):
path = path.replace('/', os.sep)
c = open(path, 'rt')
text = c.read()
c.close()
- if text[:3] == _UNICODE_BOM:
+
+ # Trim the unicode BOM
+ if text[:3] == '\xef\xbb\xbf':
text = text[3:]
+ elif text[:1] == '\ufef... | 8 | 0.571429 | 6 | 2 |
2e62004624102f8111a6dcb53449d70fe8819ea8 | _posts/2021-12-17-national-park-typeface.markdown | _posts/2021-12-17-national-park-typeface.markdown | ---
layout: post
title: "National Park Typeface"
date: 2021-12-17 15:03:22 -0800
external-url: https://nationalparktypeface.com/
---
A handful of designers decided to create a typeface which mimics the signs
seen on trails and such at National Parks which are carved by router bits.
It's a playful round sans serif type... | ---
layout: post
title: "National Park Typeface"
date: 2021-12-17 15:03:22 -0800
external-url: https://nationalparktypeface.com/
---
A handful of designers decided to create a typeface which mimics the signs
seen on trails and such at National Parks which are carved by router bits.
It's a playful round sans serif type... | Remove link to national park typeface license that no longer exists | Remove link to national park typeface license that no longer exists
| Markdown | mit | parkr/stuff,parkr/stuff,parkr/stuff,parkr/stuff,parkr/stuff,parkr/stuff | markdown | ## Code Before:
---
layout: post
title: "National Park Typeface"
date: 2021-12-17 15:03:22 -0800
external-url: https://nationalparktypeface.com/
---
A handful of designers decided to create a typeface which mimics the signs
seen on trails and such at National Parks which are carved by router bits.
It's a playful round... | ---
layout: post
title: "National Park Typeface"
date: 2021-12-17 15:03:22 -0800
external-url: https://nationalparktypeface.com/
---
A handful of designers decided to create a typeface which mimics the signs
seen on trails and such at National Parks which are carved by router bits.
It's a playful r... | 2 | 0.133333 | 1 | 1 |
40f2a72ade192efcfc49f4967882eb7718ae4ed5 | wp-app/wp-content/themes/hiid/assets/images/hid-about-faculty-philosophy-bg.svg | wp-app/wp-content/themes/hiid/assets/images/hid-about-faculty-philosophy-bg.svg | <svg xmlns="http://www.w3.org/2000/svg" width="720" height="1155"><path fill="#0047BA" fill-rule="evenodd" d="M720 1108H159.97L0 991.9238V0h719.932L720 1108zm-.068 0l.068 47-73-47h72.932z"/></svg>
| <svg xmlns="http://www.w3.org/2000/svg" width="720" height="1155" preserveAspectRatio="xMinYMin none"><path fill="#0047BA" fill-rule="evenodd" d="M720 1108H159.97L0 991.9238V0h719.932L720 1108zm-.068 0l.068 47-73-47h72.932z"/></svg>
| Fix background sprite SVG option | Fix background sprite SVG option
| SVG | apache-2.0 | HongikID/hongikid.ac.kr,HongikID/hongikid.ac.kr | svg | ## Code Before:
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1155"><path fill="#0047BA" fill-rule="evenodd" d="M720 1108H159.97L0 991.9238V0h719.932L720 1108zm-.068 0l.068 47-73-47h72.932z"/></svg>
## Instruction:
Fix background sprite SVG option
## Code After:
<svg xmlns="http://www.w3.org/2000/svg" w... | - <svg xmlns="http://www.w3.org/2000/svg" width="720" height="1155"><path fill="#0047BA" fill-rule="evenodd" d="M720 1108H159.97L0 991.9238V0h719.932L720 1108zm-.068 0l.068 47-73-47h72.932z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" width="720" height="1155" preserveAspectRatio="xMinYMin none"><path fill="#0047... | 2 | 2 | 1 | 1 |
e8523654f85df6218d7067c28e72d68bf2511121 | .travis.yml | .travis.yml | language: node_js
sudo: false
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
node_js: 4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-sta... | language: node_js
sudo: required
dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
node_js: 4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- g... | Upgrade Travis CI to Ubuntu Trusty to fix Chrome usage in testing | Upgrade Travis CI to Ubuntu Trusty to fix Chrome usage in testing | YAML | mit | Juicy/imported-template,Juicy/imported-template | yaml | ## Code Before:
language: node_js
sudo: false
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
node_js: 4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- g... | language: node_js
- sudo: false
+ sudo: required
+ dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
node_js: 4
addons:
firefox: latest
apt:
sources:... | 3 | 0.142857 | 2 | 1 |
0610dfa5c76ea998f242e07e60e0f99aaa258c97 | config/initializers/custom_initializer.rb | config/initializers/custom_initializer.rb | require 'random_gen'
require 'ok_redis'
require 'paperclip_helper.rb'
require 'two_legged_oauth'
module ActiveModel
class Errors
def merge!(errors, options={})
fields_to_merge = if only=options[:only]
only
elsif except=options[:except]
except = [except] unless except.is_a?(Array)
... | require 'random_gen'
require 'ok_redis'
require 'paperclip_helper.rb'
require 'two_legged_oauth'
module ActiveModel
class Errors
def merge!(errors, options={})
fields_to_merge = if only=options[:only]
only
elsif except=options[:except]
except = [except] unless except.is_a?(Array)
... | Use RACK_ENV to check for environment, so thin works | Use RACK_ENV to check for environment, so thin works
| Ruby | agpl-3.0 | nagyistoce/openkit-server,nagyistoce/openkit-server,nagyistoce/openkit-server,nagyistoce/openkit-server | ruby | ## Code Before:
require 'random_gen'
require 'ok_redis'
require 'paperclip_helper.rb'
require 'two_legged_oauth'
module ActiveModel
class Errors
def merge!(errors, options={})
fields_to_merge = if only=options[:only]
only
elsif except=options[:except]
except = [except] unless except.... | require 'random_gen'
require 'ok_redis'
require 'paperclip_helper.rb'
require 'two_legged_oauth'
module ActiveModel
class Errors
def merge!(errors, options={})
fields_to_merge = if only=options[:only]
only
elsif except=options[:except]
except = [except] unle... | 4 | 0.114286 | 2 | 2 |
0e7409970d663854d97ec94f27b9b231ac661210 | app/models/notification_subscription.rb | app/models/notification_subscription.rb | class NotificationSubscription < ActiveRecord::Base
attr_protected
belongs_to :property
# validations (email)
validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
validates :email, uniqueness: {
case_sensitive: false,
scope: :property_id,
message: "You've already sub... | class NotificationSubscription < ActiveRecord::Base
attr_protected
belongs_to :property
# validations (email)
validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
validates :email, uniqueness: {
case_sensitive: false,
scope: :property_id,
message: "You've already sub... | Add method to NotificationSubscription that allows overriding the last_email_sent_at attribute | Add method to NotificationSubscription that allows overriding the last_email_sent_at attribute
| Ruby | mit | codeforgso/cityvoice,daguar/cityvoice,daguar/cityvoice,codeforamerica/cityvoice,codeforamerica/cityvoice,codeforgso/cityvoice,ajb/cityvoice,codeforgso/cityvoice,ajb/cityvoice,ajb/cityvoice,daguar/cityvoice,daguar/cityvoice,codeforamerica/cityvoice,ajb/cityvoice,codeforgso/cityvoice,codeforamerica/cityvoice | ruby | ## Code Before:
class NotificationSubscription < ActiveRecord::Base
attr_protected
belongs_to :property
# validations (email)
validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
validates :email, uniqueness: {
case_sensitive: false,
scope: :property_id,
message: "Yo... | class NotificationSubscription < ActiveRecord::Base
attr_protected
belongs_to :property
# validations (email)
validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
validates :email, uniqueness: {
case_sensitive: false,
scope: :property_id,
message:... | 4 | 0.090909 | 4 | 0 |
c6575b9442e9741856dfcc58ca01de74c1036608 | application.rb | application.rb | require 'config/application'
# It's good to decide how tools we shall use!
# This is my opinion:
#
# ORM: Datamapper
# Database: PostgreSQL
# Views: Erb
#
# I put this choices in Gemfile.
# Let's decide together and modified if is really necessary.
# Persist the videos?
# I don't know for sure, but let's start wi... | current_dir = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift(current_dir) unless $LOAD_PATH.include?(current_dir)
require 'config/application'
# It's good to decide how tools we shall use!
# This is my opinion:
#
# ORM: Datamapper
# Database: PostgreSQL
# Views: Erb
#
# I put this choices in Gemfile. ... | Add post proposta, need help please | Add post proposta, need help please
| Ruby | bsd-3-clause | tomas-stefano/rubycasts,tomas-stefano/rubycasts,tomas-stefano/rubycasts | ruby | ## Code Before:
require 'config/application'
# It's good to decide how tools we shall use!
# This is my opinion:
#
# ORM: Datamapper
# Database: PostgreSQL
# Views: Erb
#
# I put this choices in Gemfile.
# Let's decide together and modified if is really necessary.
# Persist the videos?
# I don't know for sure, bu... | + current_dir = File.expand_path(File.dirname(__FILE__))
+ $LOAD_PATH.unshift(current_dir) unless $LOAD_PATH.include?(current_dir)
+
require 'config/application'
# It's good to decide how tools we shall use!
# This is my opinion:
#
# ORM: Datamapper
# Database: PostgreSQL
# Views: Erb
#
# I... | 16 | 0.301887 | 16 | 0 |
c1e6d14ee6e4c46b92fa326c81e3644e4626cacf | doc/AboutUs.md | doc/AboutUs.md |
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader
2. Documentation
#### Yi Hang
1. Code Quality
2. Integration
#### Rong Hua
1. Test
2. Intern
#### Charlton
1. Scheduling and ... |
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader - In charge of overall project coordination.
2. Documentation - Ensures that project documentations are in order.
#### Yi Hang
1.... | Add responsibilities in About Us | Add responsibilities in About Us
| Markdown | mit | CS2103AUG2016-W11-C1/main | markdown | ## Code Before:
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
1. Team Leader
2. Documentation
#### Yi Hang
1. Code Quality
2. Integration
#### Rong Hua
1. Test
2. Intern
#### Charlton
1.... |
* [Role](#role)
* [Kai Ling](#kai-ling)
* [Yi Hang](#yi-hang)
* [Rong Hua](#rong-hua)
* [Charlton](#charlton)
* [Contact](#contact)
## Role
#### Kai Ling
- 1. Team Leader
- 2. Documentation
+ 1. Team Leader - In charge of overall project coordination.
+ 2. Documentation - Ens... | 18 | 0.5 | 10 | 8 |
2a615c43db64959594b6e7a612a54de27e9a851d | lib/flipper/feature.rb | lib/flipper/feature.rb | require 'flipper/adapter'
require 'flipper/errors'
require 'flipper/type'
require 'flipper/toggle'
require 'flipper/gate'
module Flipper
class Feature
attr_reader :name
attr_reader :adapter
def initialize(name, adapter)
@name = name
@adapter = Adapter.wrap(adapter)
end
def enable(th... | require 'flipper/adapter'
require 'flipper/errors'
require 'flipper/type'
require 'flipper/toggle'
require 'flipper/gate'
module Flipper
class Feature
attr_reader :name
attr_reader :adapter
def initialize(name, adapter)
@name = name
@adapter = Adapter.wrap(adapter)
end
def enable(th... | Split up gate_for and finding of gate. | Split up gate_for and finding of gate.
Publicized gate_for for internal use. Finding the gate is still private.
| Ruby | mit | gdavison/flipper,carlthuringer/flipper,jnunemaker/flipper,gdavison/flipper,alabeduarte/flipper,jnunemaker/flipper,carlthuringer/flipper,gdavison/flipper,jnunemaker/flipper,carlthuringer/flipper,gdavison/flipper,alabeduarte/flipper,carlthuringer/flipper,alabeduarte/flipper,jnunemaker/flipper,alabeduarte/flipper | ruby | ## Code Before:
require 'flipper/adapter'
require 'flipper/errors'
require 'flipper/type'
require 'flipper/toggle'
require 'flipper/gate'
module Flipper
class Feature
attr_reader :name
attr_reader :adapter
def initialize(name, adapter)
@name = name
@adapter = Adapter.wrap(adapter)
end
... | require 'flipper/adapter'
require 'flipper/errors'
require 'flipper/type'
require 'flipper/toggle'
require 'flipper/gate'
module Flipper
class Feature
attr_reader :name
attr_reader :adapter
def initialize(name, adapter)
@name = name
@adapter = Adapter.wrap(adapter... | 9 | 0.169811 | 6 | 3 |
a55b9e88b5e3cf0a9eeded84b15c115acfdf38b8 | deployment/group_vars/all/main.yml | deployment/group_vars/all/main.yml | ---
ploy_hostname: "{{_ploy_instance.id}}"
devpi_proto: https
devpi_base_url: pypi.senic.com/
devpi_index: senic/dev
devpi_auth_user: deploy
devpi_index_url: "{{devpi_proto}}://{{devpi_auth_user}}:{{devpi_auth_password}}@{{devpi_base_url}}{{devpi_index}}/+simple/"
build_user: senic
run_user: nuimo
| ---
ploy_hostname: "{{_ploy_instance.id}}"
devpi_proto: https
devpi_base_url: pypi.senic.com/
devpi_index: senic/dev
devpi_auth_user: deploy
devpi_index_url: "{{devpi_proto}}://{{devpi_base_url}}{{devpi_index}}/+simple/"
build_user: senic
run_user: nuimo
| Adjust to new devpi setup without basic auth | Adjust to new devpi setup without basic auth
| YAML | mit | grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/senic-hub,grunskis/senic-hub,getsenic/senic-hub,getsenic/senic-hub,grunskis/nuimo-hub-backend,grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/senic-hub,grunskis/senic-hub,grunskis/nuimo-hub-backend,grunskis/nuimo-hub-backend | yaml | ## Code Before:
---
ploy_hostname: "{{_ploy_instance.id}}"
devpi_proto: https
devpi_base_url: pypi.senic.com/
devpi_index: senic/dev
devpi_auth_user: deploy
devpi_index_url: "{{devpi_proto}}://{{devpi_auth_user}}:{{devpi_auth_password}}@{{devpi_base_url}}{{devpi_index}}/+simple/"
build_user: senic
run_user: nuimo
## I... | ---
ploy_hostname: "{{_ploy_instance.id}}"
devpi_proto: https
devpi_base_url: pypi.senic.com/
devpi_index: senic/dev
devpi_auth_user: deploy
- devpi_index_url: "{{devpi_proto}}://{{devpi_auth_user}}:{{devpi_auth_password}}@{{devpi_base_url}}{{devpi_index}}/+simple/"
? ... | 2 | 0.222222 | 1 | 1 |
219e9c510a92741634b2c59ad2de446ca811ce4f | recipes/locarna/meta.yaml | recipes/locarna/meta.yaml | package:
name: locarna
version: "1.8.7"
build:
number: 0
source:
fn: locarna-1.8.7.tar.gz
url: "http://www.bioinf.uni-freiburg.de/Software/LocARNA/Releases/locarna-1.8.7.tar.gz"
sha1: 602a0d5a5652f3e5577099859c6ccfaaed5c6fa1
requirements:
build:
- viennarna <=2.1.9
run:
- viennarna <=2.1.9
... | package:
name: locarna
version: "1.8.7"
about:
home: http://www.bioinf.uni-freiburg.de/Software/LocARNA/
license: GPL
license_file: COPYING
summary: Multiple alignment of RNAs
build:
number: 1
skip: True # [osx]
source:
fn: locarna-1.8.7.tar.gz
url: "http://www.bioinf.uni-freiburg.de/Software/Loc... | Update locarna recipe (skip osx build) | Update locarna recipe (skip osx build)
| YAML | mit | lpantano/recipes,bioconda/bioconda-recipes,joachimwolff/bioconda-recipes,mcornwell1957/bioconda-recipes,matthdsm/bioconda-recipes,guowei-he/bioconda-recipes,matthdsm/bioconda-recipes,ivirshup/bioconda-recipes,ostrokach/bioconda-recipes,BIMSBbioinfo/bioconda-recipes,phac-nml/bioconda-recipes,colinbrislawn/bioconda-recip... | yaml | ## Code Before:
package:
name: locarna
version: "1.8.7"
build:
number: 0
source:
fn: locarna-1.8.7.tar.gz
url: "http://www.bioinf.uni-freiburg.de/Software/LocARNA/Releases/locarna-1.8.7.tar.gz"
sha1: 602a0d5a5652f3e5577099859c6ccfaaed5c6fa1
requirements:
build:
- viennarna <=2.1.9
run:
- vi... | package:
name: locarna
version: "1.8.7"
+ about:
+ home: http://www.bioinf.uni-freiburg.de/Software/LocARNA/
+ license: GPL
+ license_file: COPYING
+ summary: Multiple alignment of RNAs
+
build:
- number: 0
? ^
+ number: 1
? ^
+ skip: True # [osx]
source:
fn:... | 23 | 0.741935 | 12 | 11 |
412ace9941410b177ee5739aab9a18c63ac6bdaf | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx_2022.1.bb | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx_2022.1.bb | UBOOT_VERSION = "v2021.01"
UBRANCH ?= "xlnx_rebase_v2022.01"
SRCREV = "c50d6c48f4e1368cd38699278e35563cb4b0e444"
include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"
# u-boot-xlnx has support for th... | UBOOT_VERSION = "v2021.01"
UBRANCH ?= "xlnx_rebase_v2022.01_2022.1_update"
SRCREV = "a807cf8f6ce03ef1441c246a90aefbc8b6ea4c43"
include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"
# u-boot-xlnx has ... | Update branch and SRCREV for update release | u-boot-xlnx: Update branch and SRCREV for update release
Update the u-boot branch and commit ID for the 2022.1_update1 release.
Signed-off-by: Christian Kohn <cddab1f837c400ff9c3b002761e2cb74669ec6d1@xilinx.com>
| BitBake | mit | Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx | bitbake | ## Code Before:
UBOOT_VERSION = "v2021.01"
UBRANCH ?= "xlnx_rebase_v2022.01"
SRCREV = "c50d6c48f4e1368cd38699278e35563cb4b0e444"
include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"
# u-boot-xlnx ha... | UBOOT_VERSION = "v2021.01"
- UBRANCH ?= "xlnx_rebase_v2022.01"
+ UBRANCH ?= "xlnx_rebase_v2022.01_2022.1_update"
? ++++++++++++++
- SRCREV = "c50d6c48f4e1368cd38699278e35563cb4b0e444"
+ SRCREV = "a807cf8f6ce03ef1441c246a90aefbc8b6ea4c43"
include u-boot-xlnx.inc
include u-... | 4 | 0.210526 | 2 | 2 |
1558beef907436874204cd0e6806d27045971f0c | .travis.yml | .travis.yml | sudo: false
language: ruby
rvm:
- 2.2.0
- 2.4.0
before_install: gem install bundler -v 1.15.1
| sudo: false
language: ruby
rvm:
- 2.2.0
- 2.4.0
before_install: gem install bundler -v 1.15.1
deploy:
provider: rubygems
api_key:
secure: F5vH20pJfj7beutCPvr0qJQ4An46+GqF4IimizAkcpWPyVnbwiLN0Ngph0ifjBRzx3vByHEzvEqg2abS8tlm8ZZJoSOywHKAtXM8X1UcAJnvTf6VOjGTWMHZcUmp6cuGLYbqvV5hf0Cfji2R+Co1x1pDRnT/C9J9Ew7TSQ2/cF... | Use Travis to deploy gem | Use Travis to deploy gem
| YAML | mit | hinamiyagk/kcna.rb | yaml | ## Code Before:
sudo: false
language: ruby
rvm:
- 2.2.0
- 2.4.0
before_install: gem install bundler -v 1.15.1
## Instruction:
Use Travis to deploy gem
## Code After:
sudo: false
language: ruby
rvm:
- 2.2.0
- 2.4.0
before_install: gem install bundler -v 1.15.1
deploy:
provider: rubygems
api_key:
secure... | sudo: false
language: ruby
rvm:
- 2.2.0
- 2.4.0
before_install: gem install bundler -v 1.15.1
+ deploy:
+ provider: rubygems
+ api_key:
+ secure: F5vH20pJfj7beutCPvr0qJQ4An46+GqF4IimizAkcpWPyVnbwiLN0Ngph0ifjBRzx3vByHEzvEqg2abS8tlm8ZZJoSOywHKAtXM8X1UcAJnvTf6VOjGTWMHZcUmp6cuGLYbqvV5hf0Cfji2R+Co1x1... | 7 | 1.166667 | 7 | 0 |
101caa0a7bff0a84b1d67ebc22060bd8a604a618 | sql/speakeasy/donations.sql | sql/speakeasy/donations.sql | -- Donations count
INSERT INTO speakeasy_petition_metrics (campaign_id, activity, npeople)
SELECT
campaign_id, 'donation', count(id) donations_count
FROM civicrm_contribution
WHERE contribution_status_id = 1 AND is_test = 0 AND campaign_id IS NOT NULL
GROUP BY campaign_id;
-- Donations amount
INSERT INTO s... | -- Donations count
INSERT INTO speakeasy_petition_metrics (activity, campaign_id, status, npeople)
SELECT
'donation', campaign_id, currency, count(id) donations_count
FROM civicrm_contribution
WHERE contribution_status_id = 1 AND is_test = 0 AND campaign_id IS NOT NULL
GROUP BY campaign_id, currency;
-- Do... | Add currency to donation metrics | Add currency to donation metrics
| SQL | agpl-3.0 | WeMoveEU/bsd_api | sql | ## Code Before:
-- Donations count
INSERT INTO speakeasy_petition_metrics (campaign_id, activity, npeople)
SELECT
campaign_id, 'donation', count(id) donations_count
FROM civicrm_contribution
WHERE contribution_status_id = 1 AND is_test = 0 AND campaign_id IS NOT NULL
GROUP BY campaign_id;
-- Donations amou... | -- Donations count
- INSERT INTO speakeasy_petition_metrics (campaign_id, activity, npeople)
? - ^^^^^
+ INSERT INTO speakeasy_petition_metrics (activity, campaign_id, status, npeople)
? ++++++++++ ++ ^^
S... | 12 | 0.8 | 6 | 6 |
05b238c8c7db2b78562994efcb5fde08c9558b76 | features/step_definitions/call_steps.rb | features/step_definitions/call_steps.rb | Then %r/^I should see call for application '([^']*)'(?: with description '([^']*)':)?$/ do |*args|
name, description, table = args
check_details '.call-details', name, description, table
end
def check_personal_details(container_selector, person_attributes)
check_that_contains_values container_selector, person_at... | Then %r/^I should see call for application '([^']*)'(?: with description '([^']*)':)?$/ do |*args|
name, description, table = args
check_details '.call-details', name, description, table
end
def check_personal_details(container_selector, person_attributes)
check_that_contains_values container_selector, person_at... | Fix step to find the applicant card | Fix step to find the applicant card | Ruby | mit | experq/hhj,experq/hhj,experq/hhj,ayystudentunion/hhj,ayystudentunion/hhj,ayystudentunion/hhj,ayystudentunion/hhj,experq/hhj | ruby | ## Code Before:
Then %r/^I should see call for application '([^']*)'(?: with description '([^']*)':)?$/ do |*args|
name, description, table = args
check_details '.call-details', name, description, table
end
def check_personal_details(container_selector, person_attributes)
check_that_contains_values container_sel... | Then %r/^I should see call for application '([^']*)'(?: with description '([^']*)':)?$/ do |*args|
name, description, table = args
check_details '.call-details', name, description, table
end
def check_personal_details(container_selector, person_attributes)
check_that_contains_values container_selec... | 6 | 0.2 | 3 | 3 |
fe7117c7e0b6e812535713f997fdc666686c7e04 | src/ringo-server.js | src/ringo-server.js |
var config = {
server_port: 5000,
server_opts: {}
};
var server = require('http').Server();
var serverio = require('socket.io').listen(server, config.server_opts);
server.listen(config.server_port);
var players = [];
var data = require('../data/apples.json');
var red = data.red,
green = data.green;
serverio.... |
var config = {
server_port: 5000,
server_opts: {}
};
var server = require('http').Server();
var serverio = require('socket.io').listen(server, config.server_opts);
server.listen(config.server_port);
var _ = require('_');
var players = [];
var data = require('../data/apples.json');
var red = data.red,
green = ... | Add players to server on connect | Add players to server on connect
| JavaScript | mit | Alphadelta14/ringo-ni-ringo | javascript | ## Code Before:
var config = {
server_port: 5000,
server_opts: {}
};
var server = require('http').Server();
var serverio = require('socket.io').listen(server, config.server_opts);
server.listen(config.server_port);
var players = [];
var data = require('../data/apples.json');
var red = data.red,
green = data.g... |
var config = {
server_port: 5000,
server_opts: {}
};
var server = require('http').Server();
var serverio = require('socket.io').listen(server, config.server_opts);
server.listen(config.server_port);
+ var _ = require('_');
var players = [];
var data = require('../data/apples.json');
... | 7 | 0.259259 | 4 | 3 |
b5188aa96e87c0f41cf2071b27d55b7ff55c77ad | README.rst | README.rst | ==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and html5.
| ==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and html5.
Quick Sta... | Add quick start instructions, in case anyone else is interested. | Add quick start instructions, in case anyone else is interested.
| reStructuredText | agpl-3.0 | nejucomo/sgg,nejucomo/sgg,nejucomo/sgg | restructuredtext | ## Code Before:
==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web apps, and h... | ==================
Spiral Galaxy Game
==================
Spiral Galaxy Game - an open source semi-massively multiplayer turn
based space strategy game! (-with a rather generic title.)
Status
======
This codebase is currently exploratory as I'm learning a lot about
PostgresQL, twisted web app... | 25 | 2.083333 | 25 | 0 |
645f05f7c110052a5631964a2a59c0f696f407de | ansible/roles/apiserver/defaults/main.yml | ansible/roles/apiserver/defaults/main.yml | server_version: 1.2.0
server_url: https://github.com/credentials/irma_api_server/releases/download/v{{ server_version }}/irma_api_server.zip
conf_path: /etc/irma_api_server
base_install_path: /opt
install_path: /opt/irma_api_server
http_port: 8081
https_port: 8444
irma_configuration: "https://github.com/credentials/ir... | server_version: 1.3.1
server_url: https://github.com/credentials/irma_api_server/releases/download/v{{ server_version }}/irma_api_server.zip
conf_path: /etc/irma_api_server
base_install_path: /opt
install_path: /opt/irma_api_server
http_port: 8081
https_port: 8444
irma_configuration: "https://github.com/credentials/ir... | Update ansible script to v1.3.1 | Update ansible script to v1.3.1
| YAML | bsd-3-clause | credentials/irma_verification_server,credentials/irma_verification_server | yaml | ## Code Before:
server_version: 1.2.0
server_url: https://github.com/credentials/irma_api_server/releases/download/v{{ server_version }}/irma_api_server.zip
conf_path: /etc/irma_api_server
base_install_path: /opt
install_path: /opt/irma_api_server
http_port: 8081
https_port: 8444
irma_configuration: "https://github.co... | - server_version: 1.2.0
? ^ ^
+ server_version: 1.3.1
? ^ ^
server_url: https://github.com/credentials/irma_api_server/releases/download/v{{ server_version }}/irma_api_server.zip
conf_path: /etc/irma_api_server
base_install_path: /opt
install_path: /opt/irma_api_server
ht... | 10 | 0.344828 | 5 | 5 |
fa0a01b1310932a8482f6e2017e8a0373b45fdb6 | views/layout.haml | views/layout.haml | !!!
%html{:lang => 'en'}
%head
%title TreeStats
%link{:rel => "stylesheet", :type => "text/css", :href => "/styles.css" }
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", :rel => "stylesheet", :type => 'text/css'}
%body
%table
%tbody
%tr
... | !!!
%html{:lang => 'en'}
%head
%title TreeStats
%link{:rel => "stylesheet", :type => "text/css", :href => "/styles.css" }
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", :rel => "stylesheet", :type => 'text/css'}
%body
%table
%tbody
%tr
... | Add URL to my GH account in the footer | Add URL to my GH account in the footer
| Haml | mit | amoeba/treestats.net,amoeba/treestats.net,amoeba/treestats.net | haml | ## Code Before:
!!!
%html{:lang => 'en'}
%head
%title TreeStats
%link{:rel => "stylesheet", :type => "text/css", :href => "/styles.css" }
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", :rel => "stylesheet", :type => 'text/css'}
%body
%table
%tbo... | !!!
%html{:lang => 'en'}
%head
%title TreeStats
%link{:rel => "stylesheet", :type => "text/css", :href => "/styles.css" }
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", :rel => "stylesheet", :type => 'text/css'}
%body
%table
%t... | 1 | 0.028571 | 0 | 1 |
c0e7060a95e877564979a0d860985c583a044498 | pr_consistency/pr_checks.sh | pr_consistency/pr_checks.sh | if [[ -z $PR_PACKAGE ]]; then
package=astropy/astropy
else
package=${PR_PACKAGE}
fi
if [[ -z $CHANGELOG ]]; then
changelog=CHANGES.rst
else
changelog=${CHANGELOG}
fi
python 1.get_merged_prs.py ${package}
python 2.find_pr_branches.py ${package}
python 3.find_pr_changelog_section.py ${package} ${changel... | if [[ -z $PR_PACKAGE ]]; then
package=astropy/astropy
else
package=${PR_PACKAGE}
fi
if [[ -z $CHANGELOG ]]; then
changelog=CHANGES.rst
else
changelog=${CHANGELOG}
fi
if [[ -z $PYEXEC ]]; then
pyexec=python
else
pyexec=${PYEXEC}
fi
pyexec 1.get_merged_prs.py ${package}
pyexec 2.find_pr_branche... | Add option for alternate Python executable | Add option for alternate Python executable | Shell | bsd-3-clause | astropy/astropy-tools,astropy/astropy-tools | shell | ## Code Before:
if [[ -z $PR_PACKAGE ]]; then
package=astropy/astropy
else
package=${PR_PACKAGE}
fi
if [[ -z $CHANGELOG ]]; then
changelog=CHANGES.rst
else
changelog=${CHANGELOG}
fi
python 1.get_merged_prs.py ${package}
python 2.find_pr_branches.py ${package}
python 3.find_pr_changelog_section.py ${pa... | if [[ -z $PR_PACKAGE ]]; then
package=astropy/astropy
else
package=${PR_PACKAGE}
fi
if [[ -z $CHANGELOG ]]; then
changelog=CHANGES.rst
else
changelog=${CHANGELOG}
fi
+ if [[ -z $PYEXEC ]]; then
+ pyexec=python
+ else
+ pyexec=${PYEXEC}
+ fi
+
- python 1.get_merged_prs.... | 14 | 0.875 | 10 | 4 |
98ffd9d0aeadf895be50d102de28d380185cf696 | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 2.8)
project(CppAnalyze)
find_package(LLVM)
if( NOT LLVM_FOUND )
message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
add_definitions(${LLVM_DEFINITIONS} -fno-rtti)
include_directories( ${LLVM_INCLUDE_DIRS} )
lin... | cmake_minimum_required(VERSION 2.8)
project(CppAnalyze)
find_package(LLVM)
if( NOT LLVM_FOUND )
message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
add_definitions(${LLVM_DEFINITIONS} -fno-rtti)
include_directories( ${LLVM_INCLUDE_DIRS} )
lin... | Add header to the cmake project | Add header to the cmake project
| Text | mit | achauve/cppanalyze,achauve/cppanalyze,achauve/cppanalyze | text | ## Code Before:
cmake_minimum_required(VERSION 2.8)
project(CppAnalyze)
find_package(LLVM)
if( NOT LLVM_FOUND )
message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
add_definitions(${LLVM_DEFINITIONS} -fno-rtti)
include_directories( ${LLVM_INC... | cmake_minimum_required(VERSION 2.8)
project(CppAnalyze)
find_package(LLVM)
if( NOT LLVM_FOUND )
message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
add_definitions(${LLVM_DEFINITIONS} -fno-rtti)
include_directories( ${... | 13 | 0.333333 | 12 | 1 |
b25a454133455060ee49c329037ea5f685ba0370 | server/models/group.js | server/models/group.js | module.exports = (sequelize, DataTypes) => {
const Group = sequelize.define('Group', {
name: {
type: DataTypes.STRING,
allowNull: false,
},
description: {
type: DataTypes.STRING,
allowNull: false,
}
}, {
classMethods: {
associate: (models) => {
Group.hasMany... | module.exports = (sequelize, DataTypes) => {
const Group = sequelize.define('Group', {
name: {
type: DataTypes.STRING,
allowNull: false,
},
description: {
type: DataTypes.STRING,
allowNull: false,
}
});
Group.associate = (models) => {
Group.hasMany(models.Message, {
... | Refactor code using latest syntax | Refactor code using latest syntax
| JavaScript | mit | 3m3kalionel/PostIt,3m3kalionel/PostIt | javascript | ## Code Before:
module.exports = (sequelize, DataTypes) => {
const Group = sequelize.define('Group', {
name: {
type: DataTypes.STRING,
allowNull: false,
},
description: {
type: DataTypes.STRING,
allowNull: false,
}
}, {
classMethods: {
associate: (models) => {
... | module.exports = (sequelize, DataTypes) => {
const Group = sequelize.define('Group', {
name: {
type: DataTypes.STRING,
allowNull: false,
},
description: {
type: DataTypes.STRING,
allowNull: false,
}
- }, {
- classMethods: {
- associate: (models) ... | 25 | 0.925926 | 11 | 14 |
8ca09fda641f314f6507560addab6a544a2c3a0e | scripts/ensure-compatible-npm.sh | scripts/ensure-compatible-npm.sh |
set -o nounset
set -o errexit
npm install semver
if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then
npm install -g npm@'>= 1.3.7'
fi
npm uninstall semver
|
set -o nounset
set -o errexit
npm install semver
if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then
npm install -g npm@2
npm install -g npm
fi
npm uninstall semver
| Fix node 0.8 blowing up upgrading npm 1 -> 3 | Fix node 0.8 blowing up upgrading npm 1 -> 3
Relevant: https://github.com/npm/npm/issues/9668 | Shell | mit | GerHobbelt/mocha,aaroncrows/mocha,Khan/mocha,santiagoaguiar/mocha,GerHobbelt/mocha,pumpupapp/mocha,moander/mocha,nexdrew/mocha,ryanshawty/mocha,beatfactor/mocha,sul4bh/mocha,hashcube/mocha,jasonkarns/mocha,igwejk/mocha,beatfactor/mocha,Hacker0x01/mocha,rlugojr/mocha,santiagoaguiar/mocha,sul4bh/mocha,hoverduck/mocha,hov... | shell | ## Code Before:
set -o nounset
set -o errexit
npm install semver
if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then
npm install -g npm@'>= 1.3.7'
fi
npm uninstall semver
## Instruction:
Fix node 0.8 blowing up upgrading npm 1 -> 3
Relevant: https://github.com/npm/npm... |
set -o nounset
set -o errexit
npm install semver
if node -e "process.exit(require('semver').lt(process.argv[1], '1.3.7') ? 0 : 1)" $(npm -v); then
- npm install -g npm@'>= 1.3.7'
? ^^^^^^^^^^
+ npm install -g npm@2
? ^
+ npm install -g npm
fi
npm unins... | 3 | 0.333333 | 2 | 1 |
19458f9bab3d5e303f074a7bd641ef90491795e6 | src/sortablejs-options.ts | src/sortablejs-options.ts | export interface SortablejsOptions {
group?: string | {
name?: string;
pull?: boolean | 'clone' | Function;
put?: boolean | string[] | Function;
revertClone?: boolean;
};
sort?: boolean;
delay?: number;
disabled?: boolean;
store?: {
get: (sortable: any) => any[];
set: (sortable: any)... | export interface SortablejsOptions {
group?: string | {
name?: string;
pull?: boolean | 'clone' | Function;
put?: boolean | string[] | Function;
revertClone?: boolean;
};
sort?: boolean;
delay?: number;
disabled?: boolean;
store?: {
get: (sortable: any) => any[];
set: (sortable: any)... | Add onUnchoose method to options interface. | Add onUnchoose method to options interface.
Related PR: https://github.com/RubaXa/Sortable/pull/1033 | TypeScript | mit | SortableJS/angular-sortablejs | typescript | ## Code Before:
export interface SortablejsOptions {
group?: string | {
name?: string;
pull?: boolean | 'clone' | Function;
put?: boolean | string[] | Function;
revertClone?: boolean;
};
sort?: boolean;
delay?: number;
disabled?: boolean;
store?: {
get: (sortable: any) => any[];
set:... | export interface SortablejsOptions {
group?: string | {
name?: string;
pull?: boolean | 'clone' | Function;
put?: boolean | string[] | Function;
revertClone?: boolean;
};
sort?: boolean;
delay?: number;
disabled?: boolean;
store?: {
get: (sortable: any) => any[];
... | 1 | 0.022727 | 1 | 0 |
022a4e4efa6326a35539a5a7d1225d539ca4fd04 | README.md | README.md |
iOS App for group project
|
iOS App for group project
## User stories
The following user stories are non-negotiable
- [-] Users can upload and browse their clothes (metadata could include color, event type, hot/warm/cool/cold usage, collar, sleeve length, etc.)
- [-] App suggests what to wear based on coordination of color/pattern, warm/cold,... | Update to add user stories | Update to add user stories
| Markdown | apache-2.0 | cpoutfitters/cpoutfitters,cpoutfitters/cpoutfitters | markdown | ## Code Before:
iOS App for group project
## Instruction:
Update to add user stories
## Code After:
iOS App for group project
## User stories
The following user stories are non-negotiable
- [-] Users can upload and browse their clothes (metadata could include color, event type, hot/warm/cool/cold usage, collar, ... |
iOS App for group project
+
+
+ ## User stories
+
+ The following user stories are non-negotiable
+ - [-] Users can upload and browse their clothes (metadata could include color, event type, hot/warm/cool/cold usage, collar, sleeve length, etc.)
+ - [-] App suggests what to wear based on coordination of color/p... | 34 | 17 | 34 | 0 |
e0f83b2df9efd6cce17374f4681def98b0d31704 | package.json | package.json | {
"name": "es6-js-helper-functions",
"version": "1.0.0",
"description": "Helper classes and functions to provide functionality for common operations written in ES6",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel-core/register test/*.js",
"build": "eslint src/*.js test/*.js && mo... | {
"name": "es6-js-helper-functions",
"version": "1.0.0",
"description": "Helper classes and functions to provide functionality for common operations written in ES6",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel-core/register",
"build": "eslint src/*.js test/*.js && mocha --comp... | Update npm test command to omit unnecessary directory path | Update npm test command to omit unnecessary directory path
| JSON | mit | keenanamigos/es6-js-helper-functions | json | ## Code Before:
{
"name": "es6-js-helper-functions",
"version": "1.0.0",
"description": "Helper classes and functions to provide functionality for common operations written in ES6",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel-core/register test/*.js",
"build": "eslint src/*.js... | {
"name": "es6-js-helper-functions",
"version": "1.0.0",
"description": "Helper classes and functions to provide functionality for common operations written in ES6",
"main": "index.js",
"scripts": {
- "test": "mocha --compilers js:babel-core/register test/*.js",
? ... | 4 | 0.133333 | 2 | 2 |
4ddaa88b3a90ead90a74251660af27f33c1ffdc6 | package.json | package.json | {
"name": "@watson-virtual-agent/client-sdk",
"version": "1.0.2",
"description": "JS Client SDK for IBM Watson Virtual Agents",
"main": "index.js",
"scripts": {
"build": "jsdoc2md \"src/sdk.js\" > docs/JSDOCS.md && npm run build-web && npm run build-node",
"build-web": "webpack --config ./config/web.j... | {
"name": "@watson-virtual-agent/client-sdk",
"version": "1.0.2",
"description": "JS Client SDK for IBM Watson Virtual Agents",
"main": "index.js",
"scripts": {
"build": "jsdoc2md \"src/sdk.js\" > docs/JSDOCS.md && npm run build-web && npm run build-node",
"build-web": "webpack --config ./config/web.j... | Use prepublish script to build correctly. | Use prepublish script to build correctly.
| JSON | apache-2.0 | watson-virtual-agents/client-sdk | json | ## Code Before:
{
"name": "@watson-virtual-agent/client-sdk",
"version": "1.0.2",
"description": "JS Client SDK for IBM Watson Virtual Agents",
"main": "index.js",
"scripts": {
"build": "jsdoc2md \"src/sdk.js\" > docs/JSDOCS.md && npm run build-web && npm run build-node",
"build-web": "webpack --confi... | {
"name": "@watson-virtual-agent/client-sdk",
"version": "1.0.2",
"description": "JS Client SDK for IBM Watson Virtual Agents",
"main": "index.js",
"scripts": {
"build": "jsdoc2md \"src/sdk.js\" > docs/JSDOCS.md && npm run build-web && npm run build-node",
"build-web": "webpack --confi... | 2 | 0.057143 | 1 | 1 |
e06b714bce89f2ba2f389cc07699fcc3e9f58524 | metal-sys/src/protocols/mtl_command_buffer.rs | metal-sys/src/protocols/mtl_command_buffer.rs | use cocoa::base::id;
pub trait MTLCommandBuffer {
}
impl MTLCommandBuffer for id {
}
| use cocoa::base::id;
pub trait MTLCommandBuffer {
fn renderCommandEncoderWithDescriptor(self, renderPassDescriptor: id) -> id;
}
impl MTLCommandBuffer for id {
}
| Add MTLCommandBuffer::renderCommandEncoderWithDescriptor to MTLCommandBuffer trait def | Add MTLCommandBuffer::renderCommandEncoderWithDescriptor to MTLCommandBuffer trait def
| Rust | apache-2.0 | burtonageo/metl | rust | ## Code Before:
use cocoa::base::id;
pub trait MTLCommandBuffer {
}
impl MTLCommandBuffer for id {
}
## Instruction:
Add MTLCommandBuffer::renderCommandEncoderWithDescriptor to MTLCommandBuffer trait def
## Code After:
use cocoa::base::id;
pub trait MTLCommandBuffer {
fn renderCommandEncoderWithDescriptor(se... | use cocoa::base::id;
pub trait MTLCommandBuffer {
-
+ fn renderCommandEncoderWithDescriptor(self, renderPassDescriptor: id) -> id;
}
impl MTLCommandBuffer for id {
} | 2 | 0.222222 | 1 | 1 |
e0de6546fb58af113d18cf7e836407e3f8a1a985 | contrib/bosco/bosco-cluster-remote-hosts.py | contrib/bosco/bosco-cluster-remote-hosts.py |
import os
import subprocess
import sys
try:
import classad
import htcondor
except ImportError:
sys.exit("ERROR: Could not load HTCondor Python bindings. "
"Ensure the 'htcondor' and 'classad' are in PYTHONPATH")
jre = classad.parseAds('JOB_ROUTER_ENTRIES')
grs = ( x["GridResource"] for... |
import os
import subprocess
import sys
try:
import classad
except ImportError:
sys.exit("ERROR: Could not load HTCondor Python bindings. "
"Ensure the 'htcondor' and 'classad' are in PYTHONPATH")
jre = classad.parseAds('JOB_ROUTER_ENTRIES')
grs = ( x["GridResource"] for x in jre )
rhosts =... | Delete unused import htcondor (SOFTWARE-4687) | Delete unused import htcondor (SOFTWARE-4687)
| Python | apache-2.0 | brianhlin/htcondor-ce,matyasselmeci/htcondor-ce,matyasselmeci/htcondor-ce,brianhlin/htcondor-ce,matyasselmeci/htcondor-ce,brianhlin/htcondor-ce | python | ## Code Before:
import os
import subprocess
import sys
try:
import classad
import htcondor
except ImportError:
sys.exit("ERROR: Could not load HTCondor Python bindings. "
"Ensure the 'htcondor' and 'classad' are in PYTHONPATH")
jre = classad.parseAds('JOB_ROUTER_ENTRIES')
grs = ( x["Gr... |
import os
import subprocess
import sys
try:
import classad
- import htcondor
except ImportError:
sys.exit("ERROR: Could not load HTCondor Python bindings. "
"Ensure the 'htcondor' and 'classad' are in PYTHONPATH")
jre = classad.parseAds('JOB_ROUTER_ENTRIES')
grs ... | 1 | 0.05 | 0 | 1 |
0012fdc1c445fbfe4f7c4b25d06359357a8bb89b | server/src/main/java/de/fau/amos/virtualledger/server/banking/adorsys/api/BankingApiConfiguration.java | server/src/main/java/de/fau/amos/virtualledger/server/banking/adorsys/api/BankingApiConfiguration.java | package de.fau.amos.virtualledger.server.banking.adorsys.api;
import org.springframework.stereotype.Component;
/**
* Class that holds all configuration required for the banking api access
* examples: URL of the banking api, dummy configuration, ...
*/
@Component
public class BankingApiConfiguration {
privat... | package de.fau.amos.virtualledger.server.banking.adorsys.api;
import org.springframework.stereotype.Component;
/**
* Class that holds all configuration required for the banking api access
* examples: URL of the banking api, dummy configuration, ...
*/
@Component
public class BankingApiConfiguration {
privat... | Remove old user from adorsys url paths | Remove old user from adorsys url paths
| Java | apache-2.0 | BankingBoys/amos-ss17-proj7,BankingBoys/amos-ss17-proj7 | java | ## Code Before:
package de.fau.amos.virtualledger.server.banking.adorsys.api;
import org.springframework.stereotype.Component;
/**
* Class that holds all configuration required for the banking api access
* examples: URL of the banking api, dummy configuration, ...
*/
@Component
public class BankingApiConfiguratio... | package de.fau.amos.virtualledger.server.banking.adorsys.api;
import org.springframework.stereotype.Component;
/**
* Class that holds all configuration required for the banking api access
* examples: URL of the banking api, dummy configuration, ...
*/
@Component
public class BankingApiConfig... | 6 | 0.130435 | 3 | 3 |
0c39d969e2508f8c94c73121d51890cb1ed7b3bf | website/pages/introduction.md | website/pages/introduction.md | Introduction
============
## About
Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designed for developers... | Introduction
============
## About
Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designed for developers... | Add link to GitHub on project homepage. | Add link to GitHub on project homepage.
| Markdown | mit | thephpleague/plates,localheinz/plates,vlakoff/plates,samsonasik/plates,okaprinarjaya/plates | markdown | ## Code Before:
Introduction
============
## About
Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designe... | Introduction
============
## About
Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designed fo... | 7 | 0.333333 | 6 | 1 |
dda3d14fd1d39201302524ab4f59231a8e025d14 | src/app/common/tpls/content.tpl.html | src/app/common/tpls/content.tpl.html | <pre>
<span class="comment">// Copyright 2015 Denis Karanja. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// Find the code <a href="https://github.com/yoda-yoda/yoda-face.git" HERE </span>
<span class="keyword">package<... | <pre>
<span class="comment">// Copyright 2015 Denis Karanja. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// Find the code <a href="https://github.com/yoda-yoda/yoda-face.git" target="_blank">HERE</a> </span>
<span clas... | Change package name to deebeat | Change package name to deebeat
| HTML | mit | yoda-yoda/yoda-face,yoda-yoda/yoda-face | html | ## Code Before:
<pre>
<span class="comment">// Copyright 2015 Denis Karanja. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// Find the code <a href="https://github.com/yoda-yoda/yoda-face.git" HERE </span>
<span class="k... | <pre>
<span class="comment">// Copyright 2015 Denis Karanja. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
- // Find the code <a href="https://github.com/yoda-yoda/yoda-face.git" HERE </span>
+ // Find the code <a... | 2 | 0.1 | 1 | 1 |
0fa74bb8480d2b46fcd4e38ffbe28c2b6e97e0ca | install_elpa.el | install_elpa.el | (setq user-init-file "/tmp/.emacs")
;; Marmalade: http://marmalade-repo.org/
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(package-refresh-contents)
(package-install 'color-theme)
(package-install 'gh)
(package-install 'gist)... | (setq user-init-file "/tmp/.emacs")
;; Marmalade: http://marmalade-repo.org/
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(package-refresh-contents)
(package-install 'color-theme)
(package-install 'gh)
(package-install 'gist)... | Add pkg-info package (depended on by nrepl.el) | Emacs: Add pkg-info package (depended on by nrepl.el)
| Emacs Lisp | mit | Moocar/dotfiles | emacs-lisp | ## Code Before:
(setq user-init-file "/tmp/.emacs")
;; Marmalade: http://marmalade-repo.org/
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(package-refresh-contents)
(package-install 'color-theme)
(package-install 'gh)
(packag... | (setq user-init-file "/tmp/.emacs")
;; Marmalade: http://marmalade-repo.org/
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
(package-refresh-contents)
(package-install 'color-theme)
(package-install 'g... | 1 | 0.052632 | 1 | 0 |
f719e78bad91f62f9f9affad186d7deec031f6ca | features/support/env.rb | features/support/env.rb | require 'vim-flavor'
class FakeUserEnvironment
def create_file virtual_path, content
File.open(expand(virtual_path), 'w') do |f|
f.write(content)
end
end
def expand(virtual_path)
virtual_path.gsub(/\$([a-z_]+)/) {
variable_table[$1]
}
end
def make_flavor_path(vimfiles_path, repo... | require 'fileutils'
require 'vim-flavor'
class FakeUserEnvironment
def create_file virtual_path, content
File.open(expand(virtual_path), 'w') do |f|
f.write(content)
end
end
def delete_path path
FileUtils.remove_entry_secure(path)
end
def expand(virtual_path)
virtual_path.gsub(/\$([a-... | Add a helper method - delete_path | Add a helper method - delete_path
| Ruby | mit | ngtk/vim-flavor,kana/vim-flavor | ruby | ## Code Before:
require 'vim-flavor'
class FakeUserEnvironment
def create_file virtual_path, content
File.open(expand(virtual_path), 'w') do |f|
f.write(content)
end
end
def expand(virtual_path)
virtual_path.gsub(/\$([a-z_]+)/) {
variable_table[$1]
}
end
def make_flavor_path(vim... | + require 'fileutils'
require 'vim-flavor'
class FakeUserEnvironment
def create_file virtual_path, content
File.open(expand(virtual_path), 'w') do |f|
f.write(content)
end
+ end
+
+ def delete_path path
+ FileUtils.remove_entry_secure(path)
end
def expand(virtual_path)... | 5 | 0.142857 | 5 | 0 |
d0e8ecf5eafff47eacbe2cb0c604885ccca98e46 | index.js | index.js | const readTask = require('./src/read-task');
const taskToGeoJSON = require('./src/task-to-geojson');
const viewGeoJSON = require('./src/view-geojson');
let task = readTask(`${__dirname}/fixtures/2017-07-15-lev/task.tsk`);
let json = taskToGeoJSON(task);
viewGeoJSON(json);
| const turf = require('@turf/turf');
const readTask = require('./src/read-task');
const taskToGeoJSON = require('./src/task-to-geojson');
const readFlight = require('./src/read-flight');
const viewGeoJSON = require('./src/view-geojson');
let task = readTask(`${__dirname}/fixtures/2017-07-15-lev/task.tsk`);
let flight ... | Add flight to GeoJSON view | Add flight to GeoJSON view
| JavaScript | mit | Turbo87/aeroscore,Turbo87/aeroscore | javascript | ## Code Before:
const readTask = require('./src/read-task');
const taskToGeoJSON = require('./src/task-to-geojson');
const viewGeoJSON = require('./src/view-geojson');
let task = readTask(`${__dirname}/fixtures/2017-07-15-lev/task.tsk`);
let json = taskToGeoJSON(task);
viewGeoJSON(json);
## Instruction:
Add flight t... | + const turf = require('@turf/turf');
+
const readTask = require('./src/read-task');
const taskToGeoJSON = require('./src/task-to-geojson');
+ const readFlight = require('./src/read-flight');
const viewGeoJSON = require('./src/view-geojson');
let task = readTask(`${__dirname}/fixtures/2017-07-15-lev/task.ts... | 6 | 0.75 | 6 | 0 |
ee3a76b380e5902cc9f6b40c8a267eabcf6d3fa6 | src/main/sh/publish_docs.sh | src/main/sh/publish_docs.sh |
site_dir=$1
tmp_dir=$2
version=$3
git clone git@github.com:wildfly-swarm/wildfly-swarm.git $tmp_dir
cd $tmp_dir
git checkout gh-pages
rsync -avz $site_dir/ $tmp_dir
git add $version
git commit -m "CI generated API documentation for $version"
git push origin gh-pages
|
site_dir=$1
tmp_dir=$2
version=$3
git clone git@github.com:wildfly-swarm/wildfly-swarm.git $tmp_dir
cd $tmp_dir
git checkout gh-pages
rsync -avz $site_dir/ $tmp_dir
git add $version
if grep -q $version _data/versions.yml; then
echo "$version exists in _data/versions.yml"
else
echo -e "\n- $version" >> _data/... | Add the version to versions.yml when building javadocs | Add the version to versions.yml when building javadocs [SWARM-10]
We use jekyll to build an index page for the javadocs, and it needs to
know the versions to link, so we add the currently built version to the
version list (if it isn't there already).
| Shell | apache-2.0 | heiko-braun/wildfly-swarm-1,jamesnetherton/wildfly-swarm,christian-posta/wildfly-swarm,christian-posta/wildfly-swarm,christian-posta/wildfly-swarm,emag/wildfly-swarm,juangon/wildfly-swarm,kenfinnigan/wildfly-swarm,jamezp/wildfly-swarm,jamesnetherton/wildfly-swarm,jamesnetherton/wildfly-swarm,wildfly-swarm/wildfly-swarm... | shell | ## Code Before:
site_dir=$1
tmp_dir=$2
version=$3
git clone git@github.com:wildfly-swarm/wildfly-swarm.git $tmp_dir
cd $tmp_dir
git checkout gh-pages
rsync -avz $site_dir/ $tmp_dir
git add $version
git commit -m "CI generated API documentation for $version"
git push origin gh-pages
## Instruction:
Add the version to... |
site_dir=$1
tmp_dir=$2
version=$3
git clone git@github.com:wildfly-swarm/wildfly-swarm.git $tmp_dir
cd $tmp_dir
git checkout gh-pages
rsync -avz $site_dir/ $tmp_dir
git add $version
+
+ if grep -q $version _data/versions.yml; then
+ echo "$version exists in _data/versions.yml"
+ else
+ ec... | 8 | 0.666667 | 8 | 0 |
b9e8e0bdf8a83889cac8e16c962e74dd57f50e4e | .travis.yml | .travis.yml | language: go
go:
- 1.5.1
sudo: false
script: make test
| language: go
go:
- 1.5.1
sudo: false
install:
- go get github.com/tools/godep
- godep restore
script: make unit-tests
| Update testing config for Travis CI | Update testing config for Travis CI
| YAML | apache-2.0 | mrkschan/nginxbeat,mrkschan/nginxbeat,mrkschan/nginxbeat | yaml | ## Code Before:
language: go
go:
- 1.5.1
sudo: false
script: make test
## Instruction:
Update testing config for Travis CI
## Code After:
language: go
go:
- 1.5.1
sudo: false
install:
- go get github.com/tools/godep
- godep restore
script: make unit-tests
| language: go
go:
- 1.5.1
sudo: false
+ install:
+ - go get github.com/tools/godep
+ - godep restore
+
- script: make test
+ script: make unit-tests
? +++++ +
| 6 | 0.75 | 5 | 1 |
28692d7df9a9b7f1049789baf0e04a270c0ec3a6 | proj.android_studio/ee-x-unity-ads/src/main/AndroidManifest.xml | proj.android_studio/ee-x-unity-ads/src/main/AndroidManifest.xml | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ee.unityads">
</manifest>
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ee.unityads">
<!-- Register permissions and activities for ironSource mediation -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />... | Fix unity ad not displayed if ironsource mediation is enabled. | Fix unity ad not displayed if ironsource mediation is enabled.
| XML | mit | Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x | xml | ## Code Before:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ee.unityads">
</manifest>
## Instruction:
Fix unity ad not displayed if ironsource mediation is enabled.
## Code After:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ee.unityad... | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ee.unityads">
+
+ <!-- Register permissions and activities for ironSource mediation -->
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.... | 27 | 9 | 27 | 0 |
1d651204175139868a25548c5c3e2e070a0763d2 | README.md | README.md |
Run the Zeud Gem as a daemon
[](http://badge.fury.io/rb/zeusd) [](https://travis-ci.org/veloper/zeusd) [](https://codeclimate.com/git... |
Run the Zeud Gem as a daemon
[](http://badge.fury.io/rb/zeusd) [](https://travis-ci.org/veloper/zeusd) [](https://coveralls.io/r... | ADD ALL THE BADGES haha | ADD ALL THE BADGES haha
| Markdown | bsd-3-clause | veloper/zeusd,veloper/zeusd | markdown | ## Code Before:
Run the Zeud Gem as a daemon
[](http://badge.fury.io/rb/zeusd) [](https://travis-ci.org/veloper/zeusd) [](https://cod... |
Run the Zeud Gem as a daemon
- [](http://badge.fury.io/rb/zeusd) [](https://travis-ci.org/veloper/zeusd) [](https://codeclimate... | 2 | 0.042553 | 1 | 1 |
e437ca6f6d1bba319345d8018882262f3f16dc36 | pull_request_template.md | pull_request_template.md |
- **Thank you for your contribution to Looker Components!**
- To ensure a successful review, please double check our checklist of requirements below.
- Also including a short description of changes and relevant screenshots will help us more quickly understand the ultimate goal of your work (🗑 replace this introducti... |
- **Thank you for your contribution to Looker Components!**
- To ensure a successful review, please double check our checklist of requirements below.
- Also including a short description of changes and relevant screenshots will help us more quickly understand the ultimate goal of your work (🗑 replace this introductio... | Update PR template a smidge | Update PR template a smidge
| Markdown | mit | looker-open-source/components,looker-open-source/components,looker-open-source/components,looker-open-source/components | markdown | ## Code Before:
- **Thank you for your contribution to Looker Components!**
- To ensure a successful review, please double check our checklist of requirements below.
- Also including a short description of changes and relevant screenshots will help us more quickly understand the ultimate goal of your work (🗑 replace... |
- **Thank you for your contribution to Looker Components!**
- - To ensure a successful review, please double check our checklist of requirements below.
? -
+ - To ensure a successful review, please double check our checklist... | 11 | 0.846154 | 7 | 4 |
f55542e5fd038139042a32dc86aeb643a14e88f5 | src/definitions/skills.coffee | src/definitions/skills.coffee | _ = require 'lodash'
game = require '../game'
log = require '../log'
prompts = game.prompts
direction = require '../direction'
vectorMath = require '../vector-math'
calc = require '../calc'
Skill = class exports.Skill
name: 'skill'
# symbol: 'skill' # allow symbols for skills (to show in list maybe)
class exports... | _ = require 'lodash'
Promise = require 'bluebird'
game = require '../game'
log = require '../log'
prompts = game.prompts
direction = require '../direction'
vectorMath = require '../vector-math'
calc = require '../calc'
Skill = class exports.Skill
name: 'skill'
# symbol: 'skill' # allow symbols for skills (to show ... | Tweak askParams of TentacleWhip skill | Tweak askParams of TentacleWhip skill
| CoffeeScript | mit | raymond-h/krogue | coffeescript | ## Code Before:
_ = require 'lodash'
game = require '../game'
log = require '../log'
prompts = game.prompts
direction = require '../direction'
vectorMath = require '../vector-math'
calc = require '../calc'
Skill = class exports.Skill
name: 'skill'
# symbol: 'skill' # allow symbols for skills (to show in list maybe... | _ = require 'lodash'
+ Promise = require 'bluebird'
game = require '../game'
log = require '../log'
prompts = game.prompts
direction = require '../direction'
vectorMath = require '../vector-math'
calc = require '../calc'
Skill = class exports.Skill
name: 'skill'
# symbol: 'skill' # allow ... | 10 | 0.263158 | 5 | 5 |
e8494d9a04ff85d7d758c9d76692d4b8098d70f8 | hieradata/node/fr.lan/c7d01.yaml | hieradata/node/fr.lan/c7d01.yaml | ---
profile::base::linux::network::interfaces:
ens192:
ipaddress: '10.1.1.53'
netmask: '255.255.255.0'
gateway: '10.1.1.1'
dns_nameservers: '10.1.1.1'
dns_search: 'fr.lan' | ---
profile::base::linux::network::interfaces:
ens192:
ipaddress: '10.1.1.55'
netmask: '255.255.255.0'
gateway: '10.1.1.1'
dns1: '10.1.1.1'
dns_search: 'fr.lan' | Update test system network intefaces. | Update test system network intefaces.
| YAML | apache-2.0 | cdrobey/puppet-repo,cdrobey/puppet-repo | yaml | ## Code Before:
---
profile::base::linux::network::interfaces:
ens192:
ipaddress: '10.1.1.53'
netmask: '255.255.255.0'
gateway: '10.1.1.1'
dns_nameservers: '10.1.1.1'
dns_search: 'fr.lan'
## Instruction:
Update test system network intefaces.
## Code After:
---
profile::base::linux::network::inter... | ---
profile::base::linux::network::interfaces:
ens192:
- ipaddress: '10.1.1.53'
? ^
+ ipaddress: '10.1.1.55'
? ^
netmask: '255.255.255.0'
gateway: '10.1.1.1'
- dns_nameservers: '10.1.1.1'
+ dns1: '10.1.1.1'
dns_search: 'fr.lan' | 4 | 0.5 | 2 | 2 |
c570a4e9468112d3251b6b9cc371de98ee4c788d | docker-images/setup-kubelet-volumes.sh | docker-images/setup-kubelet-volumes.sh |
if [[ $(docker inspect --format='{{.State.Status}}' kubelet-volumes) = 'exited' ]]
then
exit
else
docker_root=/var/lib/docker
kubelet_root=/var/lib/kubelet
if [ -d /rootfs/etc ] && [ -f /rootfs/etc/os-release ]
then
case "$(eval `cat /rootfs/etc/os-release` ; echo $ID)" in
boot2docker)
do... |
if [[ $(docker inspect --format='{{.State.Status}}' kubelet-volumes) = 'exited' ]]
then
exit
else
def_docker_root="/var/lib/docker"
def_kubelet_root="/var/lib/kubelet"
if [ -d /rootfs/etc ] && [ -f /rootfs/etc/os-release ]
then
case "$(eval `cat /rootfs/etc/os-release` ; echo $ID)" in
boot2docker... | Fix and refactor volume setup helper | Fix and refactor volume setup helper
| Shell | apache-2.0 | rohitjogvmw/kubernetes-anywhere,weaveworks/kubernetes-anywhere,mikedanese/kubernetes-anywhere,weaveworks/weave-kubernetes-anywhere,errordeveloper/kubernetes-anywhere | shell | ## Code Before:
if [[ $(docker inspect --format='{{.State.Status}}' kubelet-volumes) = 'exited' ]]
then
exit
else
docker_root=/var/lib/docker
kubelet_root=/var/lib/kubelet
if [ -d /rootfs/etc ] && [ -f /rootfs/etc/os-release ]
then
case "$(eval `cat /rootfs/etc/os-release` ; echo $ID)" in
boot2do... |
if [[ $(docker inspect --format='{{.State.Status}}' kubelet-volumes) = 'exited' ]]
then
exit
else
- docker_root=/var/lib/docker
+ def_docker_root="/var/lib/docker"
? ++++ + +
- kubelet_root=/var/lib/kubelet
+ def_kubelet_root="/var/lib/kubelet"
? ++++ + ... | 33 | 0.916667 | 23 | 10 |
b69f528b0251817b8a4349b7ddccdf9bf29adb39 | source/Button.js | source/Button.js | /**
_moon.Button_ is an <a href="#enyo.Button">enyo.Button</a> with Moonstone
styling applied. The color of the button may be customized by specifying a
background color.
For more information, see the documentation on
<a href='https://github.com/enyojs/enyo/wiki/Buttons'>Buttons</a> in the
Enyo Developer Guide.
... | /**
_moon.Button_ is an <a href="#enyo.Button">enyo.Button</a> with Moonstone
styling applied. The color of the button may be customized by specifying a
background color.
For more information, see the documentation on
<a href='https://github.com/enyojs/enyo/wiki/Buttons'>Buttons</a> in the
Enyo Developer Guide.
... | Add a call for changed method in create time | GF-5039: Add a call for changed method in create time
Enyo-DCO-1.1-Signed-off-by: David Um <david.um@lge.com>
| JavaScript | apache-2.0 | mcanthony/moonstone,enyojs/moonstone,mcanthony/moonstone,mcanthony/moonstone | javascript | ## Code Before:
/**
_moon.Button_ is an <a href="#enyo.Button">enyo.Button</a> with Moonstone
styling applied. The color of the button may be customized by specifying a
background color.
For more information, see the documentation on
<a href='https://github.com/enyojs/enyo/wiki/Buttons'>Buttons</a> in the
Enyo D... | /**
_moon.Button_ is an <a href="#enyo.Button">enyo.Button</a> with Moonstone
styling applied. The color of the button may be customized by specifying a
background color.
For more information, see the documentation on
<a href='https://github.com/enyojs/enyo/wiki/Buttons'>Buttons</a> in the
Enyo D... | 7 | 0.162791 | 6 | 1 |
74c792d5783e6c3939bc4eb25bc14ef5a0705737 | vendor-bin/behat/composer.json | vendor-bin/behat/composer.json | {
"require": {
"behat/behat": "^3.6",
"behat/mink": "1.7.1",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.4",
"jarnaiz/behat-junit-formatter": "^1.3",
"rdx/behat-variables": "^1.2",
"sensiolabs/... | {
"require": {
"behat/behat": "^3.7",
"behat/mink": "1.7.1",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.4",
"jarnaiz/behat-junit-formatter": "^1.3",
"rdx/behat-variables": "^1.2",
"sensiolabs/... | Use laminas-ldap in acceptance tests | Use laminas-ldap in acceptance tests
| JSON | agpl-3.0 | phil-davis/core,owncloud/core,owncloud/core,owncloud/core,owncloud/core,owncloud/core | json | ## Code Before:
{
"require": {
"behat/behat": "^3.6",
"behat/mink": "1.7.1",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.4",
"jarnaiz/behat-junit-formatter": "^1.3",
"rdx/behat-variables": "^1.2",
... | {
"require": {
- "behat/behat": "^3.6",
? ^
+ "behat/behat": "^3.7",
? ^
"behat/mink": "1.7.1",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "^1.4... | 4 | 0.235294 | 2 | 2 |
e45fff968f37f558a49cf82b582d1f514a97b5af | tests/test_pool.py | tests/test_pool.py | import random
import unittest
from aioes.pool import RandomSelector, RoundRobinSelector
class TestRandomSelector(unittest.TestCase):
def setUp(self):
random.seed(123456)
def tearDown(self):
random.seed(None)
def test_select(self):
s = RandomSelector()
r = s.select([1, 2... | import asyncio
import random
import unittest
from aioes.pool import RandomSelector, RoundRobinSelector, ConnectionPool
from aioes.transport import Endpoint
from aioes.connection import Connection
class TestRandomSelector(unittest.TestCase):
def setUp(self):
random.seed(123456)
def tearDown(self):
... | Add more tests for pool | Add more tests for pool
| Python | apache-2.0 | aio-libs/aioes | python | ## Code Before:
import random
import unittest
from aioes.pool import RandomSelector, RoundRobinSelector
class TestRandomSelector(unittest.TestCase):
def setUp(self):
random.seed(123456)
def tearDown(self):
random.seed(None)
def test_select(self):
s = RandomSelector()
r ... | + import asyncio
import random
import unittest
- from aioes.pool import RandomSelector, RoundRobinSelector
+ from aioes.pool import RandomSelector, RoundRobinSelector, ConnectionPool
? ++++++++++++++++
+ from aioes.transport import Endpoint
+ from aioes.c... | 26 | 0.8125 | 25 | 1 |
a9c143ef4311bc9c3f19add7812ae5750ccbf51a | src/delir-core/src/project/timelane.ts | src/delir-core/src/project/timelane.ts | // @flow
import * as _ from 'lodash'
import Layer from './layer'
import {TimelaneScheme} from './scheme/timelane'
export default class TimeLane
{
static deserialize(timelaneJson: TimelaneScheme)
{
const timelane = new TimeLane
const config = _.pick(timelaneJson.config, ['name']) as TimelaneSche... | // @flow
import * as _ from 'lodash'
import Clip from './clip'
import {TimelaneScheme} from './scheme/timelane'
export default class TimeLane
{
static deserialize(timelaneJson: TimelaneScheme)
{
const timelane = new TimeLane
const config = _.pick(timelaneJson.config, ['name']) as TimelaneScheme... | Replace reference to clip on Timelane | Replace reference to clip on Timelane
| TypeScript | mit | Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir | typescript | ## Code Before:
// @flow
import * as _ from 'lodash'
import Layer from './layer'
import {TimelaneScheme} from './scheme/timelane'
export default class TimeLane
{
static deserialize(timelaneJson: TimelaneScheme)
{
const timelane = new TimeLane
const config = _.pick(timelaneJson.config, ['name'])... | // @flow
import * as _ from 'lodash'
- import Layer from './layer'
+ import Clip from './clip'
import {TimelaneScheme} from './scheme/timelane'
export default class TimeLane
{
static deserialize(timelaneJson: TimelaneScheme)
{
const timelane = new TimeLane
const config = _.p... | 8 | 0.145455 | 4 | 4 |
1d48882f832cb6fcc60a4ffcc2c8e0a063a9caee | templates/blocks/layout-base.php | templates/blocks/layout-base.php | <?php
$classes = 'block-' . get_row_layout();
?>
<section class="block-wrap <?=$classes?>">
<div class="block">
<?php cfb_template('blocks/parts/block', 'title'); ?>
<?php cfb_template('blocks/layout', get_row_layout()); ?>
</div> <!-- /block -->
</section> <!-- /block-wrap --> | <?php
$classes = 'block-' . get_row_layout();
$image = get_sub_field('background_image');
$styles = (get_sub_field('background_image')) ? 'background-image: url(' . $image['url'] . ');' : '';
$styles .= (get_sub_field('background_color')) ? 'background-color: ' . get_sub_field('background... | Implement background images and colors | Implement background images and colors
| PHP | mit | MWDelaney/acf-flexible-content-blocks,MWDelaney/acf-flexible-content-blocks | php | ## Code Before:
<?php
$classes = 'block-' . get_row_layout();
?>
<section class="block-wrap <?=$classes?>">
<div class="block">
<?php cfb_template('blocks/parts/block', 'title'); ?>
<?php cfb_template('blocks/layout', get_row_layout()); ?>
</div> <!-- /block -->
</section> <!-- /bl... | <?php
+
- $classes = 'block-' . get_row_layout();
+ $classes = 'block-' . get_row_layout();
? +++
+
+ $image = get_sub_field('background_image');
+
+ $styles = (get_sub_field('background_image')) ? 'background-image: url(' . $image['url'] . ');' : '';
+ $styles .= (get_... | 11 | 1 | 9 | 2 |
5cb47021ac15f00e54151de0c7aefa03461a980c | bencode/misc.go | bencode/misc.go | package bencode
import (
"reflect"
"unsafe"
)
// Wow Go is retarded.
var marshalerType = reflect.TypeOf(func() *Marshaler {
var m Marshaler
return &m
}()).Elem()
// Wow Go is retarded.
var unmarshalerType = reflect.TypeOf(func() *Unmarshaler {
var i Unmarshaler
return &i
}()).Elem()
func bytesAsString(b []byt... | package bencode
import (
"reflect"
"unsafe"
)
// Wow Go is retarded.
var marshalerType = reflect.TypeOf(func() *Marshaler {
var m Marshaler
return &m
}()).Elem()
// Wow Go is retarded.
var unmarshalerType = reflect.TypeOf(func() *Unmarshaler {
var i Unmarshaler
return &i
}()).Elem()
func bytesAsString(b []byt... | Fix possible misuse of reflect.StringHeader | Fix possible misuse of reflect.StringHeader
| Go | mpl-2.0 | anacrolix/torrent,anacrolix/torrent | go | ## Code Before:
package bencode
import (
"reflect"
"unsafe"
)
// Wow Go is retarded.
var marshalerType = reflect.TypeOf(func() *Marshaler {
var m Marshaler
return &m
}()).Elem()
// Wow Go is retarded.
var unmarshalerType = reflect.TypeOf(func() *Unmarshaler {
var i Unmarshaler
return &i
}()).Elem()
func bytes... | package bencode
import (
"reflect"
"unsafe"
)
// Wow Go is retarded.
var marshalerType = reflect.TypeOf(func() *Marshaler {
var m Marshaler
return &m
}()).Elem()
// Wow Go is retarded.
var unmarshalerType = reflect.TypeOf(func() *Unmarshaler {
var i Unmarshaler
return &i
}()... | 10 | 0.357143 | 6 | 4 |
d4a935802c90533a51053ead6f935bbc41a87214 | ui/build/bundle/systemjs.js | ui/build/bundle/systemjs.js | 'use strict'
const sourcemaps = require('gulp-sourcemaps')
const concat = require('gulp-concat')
const footer = require('gulp-footer')
const uglify = require('gulp-uglify')
const flatten = require('gulp-flatten')
const rev = require('gulp-rev')
const util = require('gulp-util')
const path = require('path')
const filen... | 'use strict'
const sourcemaps = require('gulp-sourcemaps')
const concat = require('gulp-concat')
const footer = require('gulp-footer')
const uglify = require('gulp-uglify')
const flatten = require('gulp-flatten')
const rev = require('gulp-rev')
const util = require('gulp-util')
const filenames = require('gulp-filename... | Use slash instead of path.sep to have identical behavior in windows. | Use slash instead of path.sep to have identical behavior in windows.
| JavaScript | mit | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | javascript | ## Code Before:
'use strict'
const sourcemaps = require('gulp-sourcemaps')
const concat = require('gulp-concat')
const footer = require('gulp-footer')
const uglify = require('gulp-uglify')
const flatten = require('gulp-flatten')
const rev = require('gulp-rev')
const util = require('gulp-util')
const path = require('pa... | 'use strict'
const sourcemaps = require('gulp-sourcemaps')
const concat = require('gulp-concat')
const footer = require('gulp-footer')
const uglify = require('gulp-uglify')
const flatten = require('gulp-flatten')
const rev = require('gulp-rev')
const util = require('gulp-util')
- const path = require... | 3 | 0.09375 | 1 | 2 |
d3f058e112a15849b6109f7961979ae9b332dd81 | metlog-vault/src-server/metlog_vault/scheduler.clj | metlog-vault/src-server/metlog_vault/scheduler.clj | (ns metlog-vault.scheduler
(:use metlog-common.core)
(:require [clojure.tools.logging :as log]))
(defn start [ ]
(doto (it.sauronsoftware.cron4j.Scheduler.)
(.setDaemon true)
(.start)))
(defn schedule-job [ scheduler desc cron job-fn ]
(do
(log/info "Background job scheduled (cron:" cron "):" des... | (ns metlog-vault.scheduler
(:use metlog-common.core)
(:require [clojure.tools.logging :as log]))
(defn start [ ]
(doto (it.sauronsoftware.cron4j.Scheduler.)
(.setDaemon true)
(.start)))
(defn schedule-job [ scheduler desc cron job-fn ]
(let [ job-fn (exception-barrier job-fn (str "scheduled job:" desc... | Correct a bug that prevented scheduled jobs fromw orking at all. | Correct a bug that prevented scheduled jobs fromw orking at all.
| Clojure | epl-1.0 | mschaef/metlog | clojure | ## Code Before:
(ns metlog-vault.scheduler
(:use metlog-common.core)
(:require [clojure.tools.logging :as log]))
(defn start [ ]
(doto (it.sauronsoftware.cron4j.Scheduler.)
(.setDaemon true)
(.start)))
(defn schedule-job [ scheduler desc cron job-fn ]
(do
(log/info "Background job scheduled (cron:... | (ns metlog-vault.scheduler
(:use metlog-common.core)
(:require [clojure.tools.logging :as log]))
(defn start [ ]
(doto (it.sauronsoftware.cron4j.Scheduler.)
(.setDaemon true)
(.start)))
(defn schedule-job [ scheduler desc cron job-fn ]
- (do
+ (let [ job-fn (exception-barrier job... | 4 | 0.235294 | 2 | 2 |
f7838042f1f316c5d48c843696d27b384b467d07 | plugins/reply/reply.go | plugins/reply/reply.go | package reply
import (
"regexp"
"github.com/tucnak/telebot"
"github.com/asdine/storm"
"github.com/focusshifter/muxgoob/registry"
)
type ReplyPlugin struct {
}
var db *storm.DB
func init() {
registry.RegisterPlugin(&ReplyPlugin{})
}
func (p *ReplyPlugin) Start(sharedDb *storm.DB) {
db = sharedDb
}
func (p ... | package reply
import (
"regexp"
"math/rand"
"time"
"github.com/tucnak/telebot"
"github.com/asdine/storm"
"github.com/focusshifter/muxgoob/registry"
)
type ReplyPlugin struct {
}
var db *storm.DB
var rng *rand.Rand
func init() {
registry.RegisterPlugin(&ReplyPlugin{})
}
func (p *ReplyPlugin) Start(sharedDb... | Allow to react to the questions and printing 'chat specs' | Allow to react to the questions and printing 'chat specs'
| Go | mit | focusshifter/muxgoob | go | ## Code Before:
package reply
import (
"regexp"
"github.com/tucnak/telebot"
"github.com/asdine/storm"
"github.com/focusshifter/muxgoob/registry"
)
type ReplyPlugin struct {
}
var db *storm.DB
func init() {
registry.RegisterPlugin(&ReplyPlugin{})
}
func (p *ReplyPlugin) Start(sharedDb *storm.DB) {
db = shar... | package reply
import (
"regexp"
+ "math/rand"
+ "time"
"github.com/tucnak/telebot"
"github.com/asdine/storm"
"github.com/focusshifter/muxgoob/registry"
)
type ReplyPlugin struct {
}
var db *storm.DB
+ var rng *rand.Rand
func init() {
registry.RegisterPlugin(&ReplyPlugin{... | 34 | 0.944444 | 31 | 3 |
48cd473c79811d04012b188978b9f007f0830d88 | api/api_test.go | api/api_test.go | package api
import (
"testing"
"github.com/chromium/hstspreload.appspot.com/database"
)
func TestCheckConnection(t *testing.T) {
ms := database.MockState{}
a := API{database.Mock{State: &ms}}
if err := a.CheckConnection(); err != nil {
t.Errorf("%s", err)
}
ms.FailCalls = true
if err := a.CheckConnection(... | package api
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"github.com/chromium/hstspreload.appspot.com/database"
)
func TestCheckConnection(t *testing.T) {
ms := database.MockState{}
a := API{database.Mock{State: &ms}}
if err := a.CheckConnection(); err != nil {
t.Errorf("%s", ... | Implement a test for api.Status(). | Implement a test for api.Status().
| Go | bsd-3-clause | chromium/hstspreload.org,chromium/hstspreload.org,chromium/hstspreload.org,chromium/hstspreload.org | go | ## Code Before:
package api
import (
"testing"
"github.com/chromium/hstspreload.appspot.com/database"
)
func TestCheckConnection(t *testing.T) {
ms := database.MockState{}
a := API{database.Mock{State: &ms}}
if err := a.CheckConnection(); err != nil {
t.Errorf("%s", err)
}
ms.FailCalls = true
if err := a.... | package api
import (
+ "bytes"
+ "encoding/json"
+ "net/http"
+ "net/http/httptest"
"testing"
"github.com/chromium/hstspreload.appspot.com/database"
)
func TestCheckConnection(t *testing.T) {
ms := database.MockState{}
a := API{database.Mock{State: &ms}}
if err := a.CheckConnection()... | 36 | 1.8 | 35 | 1 |
ada4bb463b09917fe0749e1e32025654e5879a18 | .travis.yml | .travis.yml | sudo: required
language: go
go:
- "1.10.x"
- 1.x
- tip
matrix:
allow_failures:
- go: tip
env:
- GO111MODULE=on
addons:
ssh_known_hosts: github.com
apt:
update: true
packages:
- docker-ce
services:
- docker
before_install:
- sudo sysctl -w vm.max_map_count=262144
# - docker run -d --rm -p 9200:9200 ... | sudo: required
language: go
go:
- "1.10.x"
- 1.x
- tip
matrix:
allow_failures:
- go: tip
env:
- GO111MODULE=on
addons:
ssh_known_hosts: github.com
apt:
update: true
packages:
- docker-ce
services:
- docker
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which nc) ]] ; then sudo apt-g... | Optimize Travis waiting for ES | ci: Optimize Travis waiting for ES
| YAML | mit | guilherme-santos/elastic,olivere/elastic,olivere/elastic,guilherme-santos/elastic | yaml | ## Code Before:
sudo: required
language: go
go:
- "1.10.x"
- 1.x
- tip
matrix:
allow_failures:
- go: tip
env:
- GO111MODULE=on
addons:
ssh_known_hosts: github.com
apt:
update: true
packages:
- docker-ce
services:
- docker
before_install:
- sudo sysctl -w vm.max_map_count=262144
# - docker run -d --r... | sudo: required
language: go
go:
- "1.10.x"
- 1.x
- tip
matrix:
allow_failures:
- go: tip
env:
- GO111MODULE=on
addons:
ssh_known_hosts: github.com
apt:
update: true
packages:
- docker-ce
services:
- docker
before_install:
+ - if [[ "$TRAVIS_OS_NAME" == "linux"... | 4 | 0.133333 | 3 | 1 |
4a63168155599c4a97ec76a24f054d68394c6361 | lib/tasks/go.rake | lib/tasks/go.rake | desc "Run the exercise specs"
task :go => "spec:exercises"
| desc "Run the exercise specs"
RSpec::Core::RakeTask.new(:go => "spec:prepare") do |t|
t.pattern = "./exercises/**/*_spec.rb"
t.rspec_opts = "--fail-fast --format documentation"
end | Make Rspec fail on first error (--fail-fast) so as to not overwhelm gym members | Make Rspec fail on first error (--fail-fast) so as to not overwhelm gym members
| Ruby | mit | eliotsykes/rails-activerecord-aerobics,eliotsykes/rails-activerecord-aerobics | ruby | ## Code Before:
desc "Run the exercise specs"
task :go => "spec:exercises"
## Instruction:
Make Rspec fail on first error (--fail-fast) so as to not overwhelm gym members
## Code After:
desc "Run the exercise specs"
RSpec::Core::RakeTask.new(:go => "spec:prepare") do |t|
t.pattern = "./exercises/**/*_spec.rb"
t.r... | desc "Run the exercise specs"
- task :go => "spec:exercises"
+ RSpec::Core::RakeTask.new(:go => "spec:prepare") do |t|
+ t.pattern = "./exercises/**/*_spec.rb"
+ t.rspec_opts = "--fail-fast --format documentation"
+ end | 5 | 2.5 | 4 | 1 |
715db68e01b0aa8fd12857b5c3aec9f70f5e488f | app/views/students/index.html.erb | app/views/students/index.html.erb | <div class="container">
<h1>Students overview</h1><br /><br />
<div class="row-fluid">
<div class="span8">
<ul>
<% @students.each do |student| %>
<li>
<div>
<p><%= link_to student.full_name, student_path(student) %></p>
<p><%= link_to student.group... | <div class="container">
<h1>Students overview</h1><br /><br />
<div class="row-fluid">
<div class="span8">
<ul>
<% @students.each do |student| %>
<li>
<div>
<p><%= link_to student.full_name, student_path(student) %></p>
<p><%= link_to student.group... | Add conditions for student index | Add conditions for student index
Before there was an error if you wanted to go to the students index site if there weren't any groups yet. | HTML+ERB | agpl-3.0 | dondonz/rorganize.it,dondonz/rorganize.it,dondonz/rorganize.it,rubycorns/rorganize.it,rubycorns/rorganize.it,rubycorns/rorganize.it,dondonz/rorganize.it,rubycorns/rorganize.it | html+erb | ## Code Before:
<div class="container">
<h1>Students overview</h1><br /><br />
<div class="row-fluid">
<div class="span8">
<ul>
<% @students.each do |student| %>
<li>
<div>
<p><%= link_to student.full_name, student_path(student) %></p>
<p><%= link_... | <div class="container">
<h1>Students overview</h1><br /><br />
<div class="row-fluid">
<div class="span8">
<ul>
<% @students.each do |student| %>
<li>
<div>
<p><%= link_to student.full_name, student_path(student) %></p>
- <p><%= l... | 2 | 0.095238 | 1 | 1 |
c2da929ad40ba264745ec9c1a3002e50280dec3f | plasmoid/contents/ui/helpers/SingleShot.qml | plasmoid/contents/ui/helpers/SingleShot.qml | import QtQuick 2.0
Item {
Component {
id: compCaller
Timer {}
}
function queueCall() {
if (!arguments)
return
// first param fn, then just run it with args if any
if (typeof arguments[0] === 'function') {
var fn = arguments[0]
va... | import QtQuick 2.0
Item {
Component {
id: compCaller
Timer {}
}
function queueCall() {
if (!arguments)
return
const len = arguments.length
// check first param fn, run it with args if any
if (typeof arguments[0] === 'function') {
va... | Clean up; add warning for invalid call args | Clean up; add warning for invalid call args
| QML | mit | noee/mcwsplasmoid | qml | ## Code Before:
import QtQuick 2.0
Item {
Component {
id: compCaller
Timer {}
}
function queueCall() {
if (!arguments)
return
// first param fn, then just run it with args if any
if (typeof arguments[0] === 'function') {
var fn = arguments[0... | import QtQuick 2.0
Item {
Component {
id: compCaller
Timer {}
}
function queueCall() {
if (!arguments)
return
+ const len = arguments.length
+
- // first param fn, then just run it with args if any
? --... | 35 | 0.897436 | 20 | 15 |
df4197475e175e4885699a6ec561541c13e49f75 | client/ide/fs/fsfolder.coffee | client/ide/fs/fsfolder.coffee | class FSFolder extends FSFile
fetchContents:(callback, dontWatch=yes)->
{ treeController } = @getOptions()
@emit "fs.job.started"
@vmController.run
method : 'fs.readDirectory'
vmName : @vmName
withArgs :
onChange : if dontWatch then null else (change)=>
FSHe... | class FSFolder extends FSFile
fetchContents:(callback, dontWatch=yes)->
{ treeController } = @getOptions()
@emit "fs.job.started"
@vmController.run
method : 'fs.readDirectory'
vmName : @vmName
withArgs :
onChange : if dontWatch then null else (change)=>
FSHe... | Use treeController's delegate as FinderController since there is no more FinderController singleton | FSFolder: Use treeController's delegate as FinderController since there is no more FinderController singleton
| CoffeeScript | agpl-3.0 | acbodine/koding,koding/koding,mertaytore/koding,kwagdy/koding-1,jack89129/koding,cihangir/koding,szkl/koding,mertaytore/koding,mertaytore/koding,usirin/koding,jack89129/koding,rjeczalik/koding,usirin/koding,koding/koding,andrewjcasal/koding,jack89129/koding,rjeczalik/koding,drewsetski/koding,alex-ionochkin/koding,gokme... | coffeescript | ## Code Before:
class FSFolder extends FSFile
fetchContents:(callback, dontWatch=yes)->
{ treeController } = @getOptions()
@emit "fs.job.started"
@vmController.run
method : 'fs.readDirectory'
vmName : @vmName
withArgs :
onChange : if dontWatch then null else (change)=... | class FSFolder extends FSFile
fetchContents:(callback, dontWatch=yes)->
{ treeController } = @getOptions()
@emit "fs.job.started"
@vmController.run
method : 'fs.readDirectory'
vmName : @vmName
withArgs :
onChange : if dontWatch then null else (ch... | 9 | 0.169811 | 4 | 5 |
8379e1299f01057c069747db8d641a6fbf9755fd | server/controllers/list.controller.js | server/controllers/list.controller.js | 'use strict';
var db = require('../config/neo4j').db;
var List = require('../models/List.model');
exports.show = function(req, res) {
List.show(req.params.id, function(err, data) {
if (err) {
return handleError(res, err);
}
res.status(200).json(data);
})
}
// Use this to handle errors
var handl... | 'use strict';
var db = require('../config/neo4j').db;
var List = require('../models/List.model');
exports.show = function(req, res) {
List.show(req.params.id, function(err, data) {
if (err) {
return handleError(res, err);
}
res.status(200).json({itemArray: data});
})
}
// Use this to handle err... | Refactor result data from list API route | Refactor result data from list API route
| JavaScript | mit | Plateful/plateful-mobile,Plateful/plateful-mobile | javascript | ## Code Before:
'use strict';
var db = require('../config/neo4j').db;
var List = require('../models/List.model');
exports.show = function(req, res) {
List.show(req.params.id, function(err, data) {
if (err) {
return handleError(res, err);
}
res.status(200).json(data);
})
}
// Use this to handle ... | 'use strict';
var db = require('../config/neo4j').db;
var List = require('../models/List.model');
exports.show = function(req, res) {
List.show(req.params.id, function(err, data) {
if (err) {
return handleError(res, err);
}
- res.status(200).json(data);
+ res.status(200).js... | 2 | 0.111111 | 1 | 1 |
ddeabd76c4277c35d1e583d1a2034ba2c047d128 | spacy/__init__.py | spacy/__init__.py | import pathlib
from .util import set_lang_class, get_lang_class
from . import en
from . import de
from . import zh
try:
basestring
except NameError:
basestring = str
set_lang_class(en.English.lang, en.English)
set_lang_class(de.German.lang, de.German)
set_lang_class(zh.Chinese.lang, zh.Chinese)
def loa... | import pathlib
from .util import set_lang_class, get_lang_class
from . import en
from . import de
from . import zh
try:
basestring
except NameError:
basestring = str
set_lang_class(en.English.lang, en.English)
set_lang_class(de.German.lang, de.German)
set_lang_class(zh.Chinese.lang, zh.Chinese)
def loa... | Fix mistake loading GloVe vectors. GloVe vectors now loaded by default if present, as promised. | Fix mistake loading GloVe vectors. GloVe vectors now loaded by default if present, as promised.
| Python | mit | spacy-io/spaCy,raphael0202/spaCy,raphael0202/spaCy,explosion/spaCy,Gregory-Howard/spaCy,spacy-io/spaCy,oroszgy/spaCy.hu,honnibal/spaCy,banglakit/spaCy,recognai/spaCy,raphael0202/spaCy,oroszgy/spaCy.hu,spacy-io/spaCy,oroszgy/spaCy.hu,spacy-io/spaCy,banglakit/spaCy,explosion/spaCy,Gregory-Howard/spaCy,recognai/spaCy,bang... | python | ## Code Before:
import pathlib
from .util import set_lang_class, get_lang_class
from . import en
from . import de
from . import zh
try:
basestring
except NameError:
basestring = str
set_lang_class(en.English.lang, en.English)
set_lang_class(de.German.lang, de.German)
set_lang_class(zh.Chinese.lang, zh.Ch... | import pathlib
from .util import set_lang_class, get_lang_class
from . import en
from . import de
from . import zh
try:
basestring
except NameError:
basestring = str
set_lang_class(en.English.lang, en.English)
set_lang_class(de.German.lang, de.German)
set_lang_class(... | 4 | 0.129032 | 3 | 1 |
b545ebcd2b604bf293bfbbb1af5a9ab2ba6965c7 | wayback3/wayback3.py | wayback3/wayback3.py |
import datetime
import requests
FORMAT_STRING = "%Y%m%d%H%M%S" # Looks like "20130919044612"
AVAILABILITY_URL = "http://archive.org/wayback/available?url=%s"
def availability(url):
response = requests.get(AVAILABILITY_URL % (url))
print(response)
print(response.text)
response_j = response.json()
... |
import datetime
import requests
FORMAT_STRING = "%Y%m%d%H%M%S" # Looks like "20130919044612"
AVAILABILITY_URL = "http://archive.org/wayback/available?url=%s"
WAYBACK_URL_ROOT = "http://web.archive.org"
def availability(url):
response = requests.get(AVAILABILITY_URL % (url))
print(response)
print(respon... | Add a constant for WB root URL | Add a constant for WB root URL
| Python | agpl-3.0 | OpenSSR/openssr-parser,OpenSSR/openssr-parser | python | ## Code Before:
import datetime
import requests
FORMAT_STRING = "%Y%m%d%H%M%S" # Looks like "20130919044612"
AVAILABILITY_URL = "http://archive.org/wayback/available?url=%s"
def availability(url):
response = requests.get(AVAILABILITY_URL % (url))
print(response)
print(response.text)
response_j = re... |
import datetime
import requests
FORMAT_STRING = "%Y%m%d%H%M%S" # Looks like "20130919044612"
AVAILABILITY_URL = "http://archive.org/wayback/available?url=%s"
+ WAYBACK_URL_ROOT = "http://web.archive.org"
def availability(url):
response = requests.get(AVAILABILITY_URL % (url))
print(re... | 1 | 0.043478 | 1 | 0 |
d22b54e3032f4efb2b6b06e79e25e7b7d38235a5 | README.md | README.md |
In order to install Spryker Demoshop on your machine, you can follow the instructions described in the link below:
* [Installation - http://spryker.github.io/getting-started/installation/guide/](http://spryker.github.io/getting-started/installation/guide/)
If you encounter any issues during or after installation, y... | [](https://github.com/spryker/demoshop/)
In order to install Spryker Demoshop on your machine, you can follow the instructions described in the link below:
* [Installation - http://spryker.github.io/getting-started/installation/guide/](http://spryk... | Add first (license) badge to readme for clarification | Add first (license) badge to readme for clarification | Markdown | mit | spryker/demoshop,spryker/demoshop,spryker/demoshop,spryker/demoshop | markdown | ## Code Before:
In order to install Spryker Demoshop on your machine, you can follow the instructions described in the link below:
* [Installation - http://spryker.github.io/getting-started/installation/guide/](http://spryker.github.io/getting-started/installation/guide/)
If you encounter any issues during or after... | + [](https://github.com/spryker/demoshop/)
In order to install Spryker Demoshop on your machine, you can follow the instructions described in the link below:
* [Installation - http://spryker.github.io/getting-started/installation/guide/](ht... | 1 | 0.111111 | 1 | 0 |
4f6257d9ffb5302ffb515a9b16247f0159fa5410 | scripts/jenkins-slave.sh | scripts/jenkins-slave.sh | set -x
set -e
add-apt-repository cloud-archive:liberty
apt-get -qq -y update
apt-get -qq -y install openjdk-7-jdk rake ruby-puppetlabs-spec-helper puppet-lint git bundler python-dev libssl-dev libxml2-dev libxslt-dev python-tox python-pip build-essential libmysqlclient-dev libfreetype6-dev libpng12-dev git-buildpacka... | set -x
set -e
add-apt-repository cloud-archive:liberty
apt-get -qq -y update
apt-get -qq -y install openjdk-7-jdk rake ruby-puppetlabs-spec-helper puppet-lint git bundler python-dev libssl-dev libxml2-dev libxslt-dev python-tox python-pip build-essential libmysqlclient-dev libfreetype6-dev libpng12-dev git-buildpacka... | Remove hivemind install from jenkins buildslave for now | Remove hivemind install from jenkins buildslave for now
Change-Id: Id9b8447ebb5f213a9b59a32d13e522b417393514
| Shell | apache-2.0 | NeCTAR-RC/nectar-images,NeCTAR-RC/nectar-images | shell | ## Code Before:
set -x
set -e
add-apt-repository cloud-archive:liberty
apt-get -qq -y update
apt-get -qq -y install openjdk-7-jdk rake ruby-puppetlabs-spec-helper puppet-lint git bundler python-dev libssl-dev libxml2-dev libxslt-dev python-tox python-pip build-essential libmysqlclient-dev libfreetype6-dev libpng12-de... | set -x
set -e
add-apt-repository cloud-archive:liberty
apt-get -qq -y update
apt-get -qq -y install openjdk-7-jdk rake ruby-puppetlabs-spec-helper puppet-lint git bundler python-dev libssl-dev libxml2-dev libxslt-dev python-tox python-pip build-essential libmysqlclient-dev libfreetype6-dev libpng12-dev ... | 1 | 0.058824 | 0 | 1 |
a255eca94c3aa462ad62f7a42f34438452d2cabc | Emacs/emacs-custom.el | Emacs/emacs-custom.el | (custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(apropos-sort-by-scores t)
'(backup-directory-alist `((".*" \, temporary... | (custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(apropos-sort-by-scores t)
'(backup-directory-alist `((".*" \, temporary... | Set default tab-width to 4 in Emacs | Set default tab-width to 4 in Emacs
| Emacs Lisp | mit | Gosin/Vim4Gosin | emacs-lisp | ## Code Before:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(apropos-sort-by-scores t)
'(backup-directory-alist `(("... | (custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(apropos-sort-by-scores t)
'(backup-directory-alist `((".*... | 3 | 0.103448 | 2 | 1 |
feb133bc280e69fc9544be16c6952f7c4dbf86cd | ui/app/styles/components/error-container.scss | ui/app/styles/components/error-container.scss | .error-container {
width: 100%;
height: 100%;
padding-top: 25vh;
display: flex;
justify-content: center;
background: $grey-lighter;
.error-message {
max-width: 600px;
.title,
.subtitle {
text-align: center;
}
}
.error-stack-trace {
border: 1px solid $grey-light;
border... | .error-container {
width: 100%;
height: 100%;
padding-top: 25vh;
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
background: $grey-lighter;
.error-message {
max-width: 600px;
.title,
.subtitle {
text-align: center;
}
}
.error-stack-trace... | Add support for link in error containers | Add support for link in error containers
| SCSS | mpl-2.0 | burdandrei/nomad,nak3/nomad,nak3/nomad,nak3/nomad,dvusboy/nomad,dvusboy/nomad,hashicorp/nomad,hashicorp/nomad,burdandrei/nomad,nak3/nomad,dvusboy/nomad,dvusboy/nomad,burdandrei/nomad,nak3/nomad,dvusboy/nomad,burdandrei/nomad,nak3/nomad,burdandrei/nomad,burdandrei/nomad,burdandrei/nomad,hashicorp/nomad,nak3/nomad,hashic... | scss | ## Code Before:
.error-container {
width: 100%;
height: 100%;
padding-top: 25vh;
display: flex;
justify-content: center;
background: $grey-lighter;
.error-message {
max-width: 600px;
.title,
.subtitle {
text-align: center;
}
}
.error-stack-trace {
border: 1px solid $grey-l... | .error-container {
width: 100%;
height: 100%;
padding-top: 25vh;
display: flex;
+ flex-direction: column;
- justify-content: center;
? ^^^ ^
+ justify-content: start;
? ^ ^ +
+ align-items: center;
background: $grey-lighter;
.error-message {
... | 12 | 0.545455 | 11 | 1 |
8433fe04ad1230329de2c209a8625cd4b36b63f8 | src/sentry/api/serializers/models/grouptagvalue.py | src/sentry/api/serializers/models/grouptagvalue.py | from __future__ import absolute_import
from sentry.api.serializers import Serializer, register
from sentry.models import GroupTagValue
@register(GroupTagValue)
class GroupTagValueSerializer(Serializer):
def serialize(self, obj, attrs, user):
d = {
'key': obj.key,
'value': obj.valu... | from __future__ import absolute_import
from sentry.api.serializers import Serializer, register
from sentry.models import GroupTagValue, TagValue
@register(GroupTagValue)
class GroupTagValueSerializer(Serializer):
def get_attrs(self, item_list, user):
assert len(set(i.key for i in item_list)) < 2
... | Implement labels on group tag values | Implement labels on group tag values
| Python | bsd-3-clause | gencer/sentry,drcapulet/sentry,vperron/sentry,pauloschilling/sentry,kevinlondon/sentry,ifduyue/sentry,zenefits/sentry,JamesMura/sentry,jean/sentry,fotinakis/sentry,gencer/sentry,ngonzalvez/sentry,gg7/sentry,mvaled/sentry,JTCunning/sentry,alexm92/sentry,hongliang5623/sentry,Kryz/sentry,JackDanger/sentry,gg7/sentry,TedaL... | python | ## Code Before:
from __future__ import absolute_import
from sentry.api.serializers import Serializer, register
from sentry.models import GroupTagValue
@register(GroupTagValue)
class GroupTagValueSerializer(Serializer):
def serialize(self, obj, attrs, user):
d = {
'key': obj.key,
'... | from __future__ import absolute_import
from sentry.api.serializers import Serializer, register
- from sentry.models import GroupTagValue
+ from sentry.models import GroupTagValue, TagValue
? ++++++++++
@register(GroupTagValue)
class GroupTagValueSerializer(Serial... | 22 | 1.294118 | 21 | 1 |
0551b298d023da21b5ee8c2b0765439a28d4d3d1 | definitions/logs.json | definitions/logs.json | {
"logs": [{
"id": "current",
"categories": [
{"name":"agent"},
{"name":"apache-error"},
{"name":"auth"},
{"name":"dmesg"},
{"name":"dpkg"},
{"name":"kern"},
{"name":"libvirt"},
{"name":"libvirtshutdown"},
{"name":"monit"},
{"name":"monit_startup"},
... | {
"logs": [{
"id": "current",
"categories": [
{"name":"action"},
{"name":"agent"},
{"name":"apache-error"},
{"name":"auth"},
{"name":"dmesg"},
{"name":"dpkg"},
{"name":"kern"},
{"name":"libvirt"},
{"name":"libvirtshutdown"},
{"name":"monit"},
{... | Fix for next step in EPSD100235988, "1.0.0.887 - event log tracking who did what when to what and what was affected - CB event log as an example". | Fix for next step in EPSD100235988, "1.0.0.887 - event log tracking who did what when to what and what was affected - CB event log as an example".
This change adds a log category called actions. Any sam type log that contains
the string "ACTION: " at the beginning of the log message is changed from the
sam category to... | JSON | apache-2.0 | vine77/saa-ui,vine77/saa-ui,vine77/saa-ui | json | ## Code Before:
{
"logs": [{
"id": "current",
"categories": [
{"name":"agent"},
{"name":"apache-error"},
{"name":"auth"},
{"name":"dmesg"},
{"name":"dpkg"},
{"name":"kern"},
{"name":"libvirt"},
{"name":"libvirtshutdown"},
{"name":"monit"},
{"name":"m... | {
"logs": [{
"id": "current",
"categories": [
+ {"name":"action"},
{"name":"agent"},
{"name":"apache-error"},
{"name":"auth"},
{"name":"dmesg"},
{"name":"dpkg"},
{"name":"kern"},
{"name":"libvirt"},
{"name":"libvirtshutdown"},
... | 1 | 0.02439 | 1 | 0 |
e237dac5c933032cf34b6ba82ff232e42b2e363c | code/api/deploy.sh | code/api/deploy.sh |
apt-get -y -qq update; apt-get -y -qq upgrade
apt-get -y -qq install python-pip git nginx
echo "source /root/api_env.rc" >> /root/.profile
echo "source /root/db_env.rc" >> /root/.profile
echo "source /root/os_env.rc" >> /root/.profile
source /root/.profile
git clone https://github.com/everett-toews/app-on-openstack.... |
apt-get -y -qq update; apt-get -y -qq upgrade
apt-get -y -qq install python-dev python-pip git nginx
echo "source /root/api_env.rc" >> /root/.profile
echo "source /root/db_env.rc" >> /root/.profile
echo "source /root/os_env.rc" >> /root/.profile
source /root/.profile
git clone https://github.com/everett-toews/app-on... | Add python-dev package for the sdk | Add python-dev package for the sdk
| Shell | mit | eglute/app-on-openstack,everett-toews/app-on-openstack,eglute/app-on-openstack,everett-toews/app-on-openstack,eglute/app-on-openstack,danabauer/app-on-openstack,everett-toews/app-on-openstack,danabauer/app-on-openstack,eglute/app-on-openstack,everett-toews/app-on-openstack,danabauer/app-on-openstack,danabauer/app-on-op... | shell | ## Code Before:
apt-get -y -qq update; apt-get -y -qq upgrade
apt-get -y -qq install python-pip git nginx
echo "source /root/api_env.rc" >> /root/.profile
echo "source /root/db_env.rc" >> /root/.profile
echo "source /root/os_env.rc" >> /root/.profile
source /root/.profile
git clone https://github.com/everett-toews/a... |
apt-get -y -qq update; apt-get -y -qq upgrade
- apt-get -y -qq install python-pip git nginx
+ apt-get -y -qq install python-dev python-pip git nginx
? +++++++++++
echo "source /root/api_env.rc" >> /root/.profile
echo "source /root/db_env.rc" >> /root/.profile
echo "source /r... | 2 | 0.095238 | 1 | 1 |
d97976df190ba41f2cddb8fd7394770f616d8b78 | script/ci/install.sh | script/ci/install.sh | set -e
if [ -n "${WINDIR}" ]; then
# Give preference to all MSYS64 binaries. This solves issues with mkdir and
# other commands not working properly.
export PATH="/usr/bin:${PATH}"
export PYTHON="/c/Python27/python"
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
# MacOS still needs zeromq and yarn installed.
bre... | set -e
if [ -n "${WINDIR}" ]; then
# Give preference to all MSYS64 binaries. This solves issues with mkdir and
# other commands not working properly.
export PATH="/usr/bin:${PATH}"
export PYTHON="/c/Python27/python"
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
# MacOS still needs a few things to be installed.
... | Use timeout on Mac OS. | Use timeout on Mac OS.
| Shell | mit | rolftimmermans/zeromq-ng,rolftimmermans/zeromq-ng | shell | ## Code Before:
set -e
if [ -n "${WINDIR}" ]; then
# Give preference to all MSYS64 binaries. This solves issues with mkdir and
# other commands not working properly.
export PATH="/usr/bin:${PATH}"
export PYTHON="/c/Python27/python"
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
# MacOS still needs zeromq and yarn ... | set -e
if [ -n "${WINDIR}" ]; then
# Give preference to all MSYS64 binaries. This solves issues with mkdir and
# other commands not working properly.
export PATH="/usr/bin:${PATH}"
export PYTHON="/c/Python27/python"
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
- # MacOS still needs zeromq and yar... | 5 | 0.147059 | 3 | 2 |
0715d32435410d4d88f9e781591b05a73a5692a8 | gradle.properties | gradle.properties | kotlinVersion=1.4.30
kotlinLanguageLevel=1.4
jvmTarget=1.8
shadowJarVersion=5.2.0
kotlinxSerializationVersion=1.0.1
ktlintVersion=9.4.1
junitVersion=5.6.2
slf4jVersion=1.7.30
khttpVersion=1.0.0
baseVersion=0.8.3
projectRepoUrl=https://github.com/Kotlin/kotlin-jupyter
bintray_user_org=ileasile
bintray_repo=kotlin-da... | kotlinVersion=1.4.30
kotlinLanguageLevel=1.4
jvmTarget=1.8
shadowJarVersion=5.2.0
kotlinxSerializationVersion=1.0.1
ktlintVersion=9.4.1
junitVersion=5.6.2
slf4jVersion=1.7.30
khttpVersion=1.0.0
baseVersion=0.8.3
projectRepoUrl=https://github.com/Kotlin/kotlin-jupyter
bintray_user_org=ileasile
bintray_repo=kotlin-da... | Add workaround for dokka issue | Add workaround for dokka issue
| INI | apache-2.0 | ligee/kotlin-jupyter | ini | ## Code Before:
kotlinVersion=1.4.30
kotlinLanguageLevel=1.4
jvmTarget=1.8
shadowJarVersion=5.2.0
kotlinxSerializationVersion=1.0.1
ktlintVersion=9.4.1
junitVersion=5.6.2
slf4jVersion=1.7.30
khttpVersion=1.0.0
baseVersion=0.8.3
projectRepoUrl=https://github.com/Kotlin/kotlin-jupyter
bintray_user_org=ileasile
bintra... | kotlinVersion=1.4.30
kotlinLanguageLevel=1.4
jvmTarget=1.8
shadowJarVersion=5.2.0
kotlinxSerializationVersion=1.0.1
ktlintVersion=9.4.1
junitVersion=5.6.2
slf4jVersion=1.7.30
khttpVersion=1.0.0
baseVersion=0.8.3
projectRepoUrl=https://github.com/Kotlin/kotlin-jupyter
bintray_user_org... | 3 | 0.176471 | 3 | 0 |
59dba9ca4fce496bcd7cd220af37a3ff3f27dfc0 | .github/workflows/ci-pipeline.yml | .github/workflows/ci-pipeline.yml | name: user-registration-application-pipeline
on: [push]
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup java
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Install application
run: ./mvnw -pl ... | name: user-registration-application-pipeline
on: [push]
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup java
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Install application
run: ./mvnw -pl ... | Fix YAML syntax for CI build | Fix YAML syntax for CI build
| YAML | apache-2.0 | ewolff/user-registration-V2,ewolff/user-registration-V2,ewolff/user-registration-V2,ewolff/user-registration-V2,ewolff/user-registration-V2 | yaml | ## Code Before:
name: user-registration-application-pipeline
on: [push]
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup java
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Install application
... | name: user-registration-application-pipeline
on: [push]
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup java
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Instal... | 4 | 0.074074 | 2 | 2 |
6894bd3cfc010c371478e7ae9e5e0b3ba108e165 | plugins/configuration/configurationtype/configuration_registrar.py | plugins/configuration/configurationtype/configuration_registrar.py |
import luna.plugins
_configurations = {}
"""
The configuration classes that have been registered here so far, keyed by their
identities.
"""
def register(identity, metadata):
"""
Registers a new configuration plug-in to track configuration with.
This expects the metadata to already be verified as configuration's... |
import luna.plugins
_configurations = {}
"""
The configuration classes that have been registered here so far, keyed by their
identities.
"""
def register(identity, metadata):
"""
Registers a new configuration plug-in to track configuration with.
This expects the metadata to already be verified as configuration's... | Implement unregistration of configuration plug-ins | Implement unregistration of configuration plug-ins
Perhaps we should not give a warning, but instead an exception, when registering or unregistering fails?
| Python | cc0-1.0 | Ghostkeeper/Luna | python | ## Code Before:
import luna.plugins
_configurations = {}
"""
The configuration classes that have been registered here so far, keyed by their
identities.
"""
def register(identity, metadata):
"""
Registers a new configuration plug-in to track configuration with.
This expects the metadata to already be verified as... |
import luna.plugins
_configurations = {}
"""
The configuration classes that have been registered here so far, keyed by their
identities.
"""
def register(identity, metadata):
"""
Registers a new configuration plug-in to track configuration with.
This expects the metadata to already be... | 13 | 0.448276 | 12 | 1 |
efa90202a0586f15575af11ef299b122de413b30 | duralex/AddGitHubIssueVisitor.py | duralex/AddGitHubIssueVisitor.py |
from AbstractVisitor import AbstractVisitor
from duralex.alinea_parser import *
from github import Github
class AddGitHubIssueVisitor(AbstractVisitor):
def __init__(self, args):
self.github = Github(args.github_token)
self.repo = self.github.get_repo(args.github_repository)
self.issues =... |
from AbstractVisitor import AbstractVisitor
from duralex.alinea_parser import *
from github import Github
class AddGitHubIssueVisitor(AbstractVisitor):
def __init__(self, args):
self.github = Github(args.github_token)
self.repo = self.github.get_repo(args.github_repository)
self.issues =... | Add the GitHub issue number as a new line in the commitMessage field. | Add the GitHub issue number as a new line in the commitMessage field.
| Python | mit | Legilibre/duralex | python | ## Code Before:
from AbstractVisitor import AbstractVisitor
from duralex.alinea_parser import *
from github import Github
class AddGitHubIssueVisitor(AbstractVisitor):
def __init__(self, args):
self.github = Github(args.github_token)
self.repo = self.github.get_repo(args.github_repository)
... |
from AbstractVisitor import AbstractVisitor
from duralex.alinea_parser import *
from github import Github
class AddGitHubIssueVisitor(AbstractVisitor):
def __init__(self, args):
self.github = Github(args.github_token)
self.repo = self.github.get_repo(args.github_repository)... | 2 | 0.046512 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.