prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>app/design/frontend/base/default/template/solr/facets.phtml.diff
original:
<ul id="narrow-by-list">
updated:
<dl id="narrow-by-list">
<|file_sep|>app/design/frontend/base/default/template/solr/facets.phtml.diff
original:
<li>
updated:
<dt>
<|file_sep|>app/design/frontend/base/default/template/so... | <dt>
<?php echo $facet->getLabel() ?>
<!-- TODO move the following ul into a separate block -->
<dd>
<ol>
<?php foreach ($facet->getOptions() as $facetOption): ?>
<li>
<?php echo $facetOption->getLabel() ?>
<?php if ($this->shouldDisplayProductCount()): ?>
... | <|file_sep|>app/design/frontend/base/default/template/solr/facets.phtml.diff
original:
<ul id="narrow-by-list">
updated:
<dl id="narrow-by-list">
<|file_sep|>app/design/frontend/base/default/template/solr/facets.phtml.diff
original:
<li>
updated:
<dt>
<|file_sep|>app/design/frontend/base/default/template/so... | 09d6ab9f9e3a548d47024a78cf14bfd324eceb86 | app/design/frontend/base/default/template/solr/facets.phtml | app/design/frontend/base/default/template/solr/facets.phtml | HTML+PHP |
<|file_sep|>org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/XRobotImplicitlyImportedFeatures.xtend.diff
original:
updated:
/**
* Reduce inference time for binary operations by skipping some overloaded
* variants that will not be needed
*/
<|file_sep|>org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/... | ListExtensions,
LongExtensions,
MapExtensions,
ObjectExtensions,
ProcedureExtensions,
// ShortExtensions,
StringExtensions,
Math,
GeometryExtensions)
}
override protected getStaticImportClasses() {
val result = super.getStaticImportClasses
result += Math
result += Sample
result +=... | <|file_sep|>org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/XRobotImplicitlyImportedFeatures.xtend.diff
original:
updated:
/**
* Reduce inference time for binary operations by skipping some overloaded
* variants that will not be needed
*/
<|file_sep|>org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/... | 264455c87a0defe467ba66c314712165e2df0967 | org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/XRobotImplicitlyImportedFeatures.xtend | org.xtext.xrobot.dsl/src/org/xtext/xrobot/dsl/scoping/XRobotImplicitlyImportedFeatures.xtend | Xtend |
<|file_sep|>original/entrypoint.sh
#!/bin/bash -e
j2 /templates/nginx-default.conf.j2 > /etc/nginx/conf.d/default.conf
j2 /templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
j2 /templates/msmtprc.j2 > /etc/msmtprc
umask 002
chown -R www-data:www-data /var/www
exec "$@"
<|file_sep|>current/entry... | #!/bin/bash -e
j2 /templates/nginx-default.conf.j2 > /etc/nginx/conf.d/default.conf
j2 /templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
j2 /templates/msmtprc.j2 > /etc/msmtprc
umask 002
chown -R www-data:www-data /var/www
chmod -R g=u /var/www
exec "$@" | <|file_sep|>original/entrypoint.sh
#!/bin/bash -e
j2 /templates/nginx-default.conf.j2 > /etc/nginx/conf.d/default.conf
j2 /templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
j2 /templates/msmtprc.j2 > /etc/msmtprc
umask 002
chown -R www-data:www-data /var/www
exec "$@"
<|file_sep|>current/entry... | 85402bbe5c45c9581e1fd25cefd9b0eb799076cf | entrypoint.sh | entrypoint.sh | Shell |
<|file_sep|>original/src/globalStyles/authStyles.js
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2016
*/
import { BACKGROUND_COLOR, SUSSOL_ORANGE, WARMER_GREY } from './colors';
import { APP_FONT_FAMILY } from './fonts';
export const authStyles = {
authFormModal: {
position: 'absolute',
top: 0,
... | * mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2016
*/
import { BACKGROUND_COLOR, SUSSOL_ORANGE, WARMER_GREY } from './colors';
import { APP_FONT_FAMILY } from './fonts';
export const authStyles = {
authFormModal: {
flex: 1,
backgroundColor: BACKGROUND_COLOR,
justifyContent: 'flex-start',
},
... | <|file_sep|>original/src/globalStyles/authStyles.js
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2016
*/
import { BACKGROUND_COLOR, SUSSOL_ORANGE, WARMER_GREY } from './colors';
import { APP_FONT_FAMILY } from './fonts';
export const authStyles = {
authFormModal: {
position: 'absolute',
top: 0,
... | 3a47cca9ce1b58d2369ceeb1e4c94b254292574b | src/globalStyles/authStyles.js | src/globalStyles/authStyles.js | JavaScript |
<|file_sep|>original/bootstrap.sh
git pull origin master;
function doIt() {
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "getVimPlugins.sh" \
--exclude "brew.sh" \
--exclude "LICENSE-MIT.txt" \
... |
git pull origin master;
function doIt() {
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "getVimPlugins.sh" \
--exclude "brew.sh" \
--exclude "xcode" \
--exclude "vscode" \
--exclude "LI... | <|file_sep|>original/bootstrap.sh
git pull origin master;
function doIt() {
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "getVimPlugins.sh" \
--exclude "brew.sh" \
--exclude "LICENSE-MIT.txt" \
... | a2b92ea52bcc0e3b3e7edd65915ecac122dfb9b4 | bootstrap.sh | bootstrap.sh | Shell |
<|file_sep|>original/metadata.rb
name 'newrelic'
maintainer 'Escape Studios'
maintainer_email 'dev@escapestudios.com'
license 'MIT'
description 'Installs/Configures New Relic'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.7.2'
%w( debian ubuntu redhat centos fedora scientific amaz... | name 'newrelic'
maintainer 'Escape Studios'
maintainer_email 'dev@escapestudios.com'
license 'MIT'
description 'Installs/Configures New Relic'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.8.0'
%w( debian ubuntu redhat centos fedora scientific amazon windows smartos ).each do |os|... | <|file_sep|>original/metadata.rb
name 'newrelic'
maintainer 'Escape Studios'
maintainer_email 'dev@escapestudios.com'
license 'MIT'
description 'Installs/Configures New Relic'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.7.2'
%w( debian ubuntu redhat centos fedora scientific amaz... | 41a151f4f9645bbf448d751ff5bf91f782d93abe | metadata.rb | metadata.rb | Ruby |
<|file_sep|>original/client/templates/projects/project_item.html
<template name="projectItem">
<div class="project-item box-shadow">
<div class="project-item-content">
<h1>{{name}}</h1>
<span>{{description}}</span>
<a href="/user" class="project-item-username">{{owner.username}}</a>
</div>
... | <template name="projectItem">
<div class="project-item box-shadow">
<div class="project-item-content">
<h1>{{name}}</h1>
<span>{{description}}</span>
<a href="{{ pathFor 'userProfile' owner._id }}" class="project-item-username">{{owner.username}}</a>
</div>
</div>
</template> | <|file_sep|>original/client/templates/projects/project_item.html
<template name="projectItem">
<div class="project-item box-shadow">
<div class="project-item-content">
<h1>{{name}}</h1>
<span>{{description}}</span>
<a href="/user" class="project-item-username">{{owner.username}}</a>
</div>
... | 1be5babe82c1c9393386e876a1bd3cd978c65895 | client/templates/projects/project_item.html | client/templates/projects/project_item.html | HTML |
<|file_sep|>original/app/models/user_session.rb
require 'exlibris-aleph'
class UserSession < Authlogic::Session::Base
pds_url Settings.pds.login_url
redirect_logout_url Settings.pds.logout_url
aleph_url Exlibris::Aleph::Config.base_url
calling_system "getit"
institution_param_key "umlaut.institution"
# (Re... | require 'exlibris-aleph'
class UserSession < Authlogic::Session::Base
pds_url Settings.pds.login_url
redirect_logout_url Settings.pds.logout_url
aleph_url Exlibris::Aleph::Config.base_url
calling_system "getit"
institution_param_key "umlaut.institution"
def expiration_date
1.hour.ago
end
# (Re-)Se... | <|file_sep|>original/app/models/user_session.rb
require 'exlibris-aleph'
class UserSession < Authlogic::Session::Base
pds_url Settings.pds.login_url
redirect_logout_url Settings.pds.logout_url
aleph_url Exlibris::Aleph::Config.base_url
calling_system "getit"
institution_param_key "umlaut.institution"
# (Re... | 2eab50a387e5e0f778211e8cae8befc3e9021484 | app/models/user_session.rb | app/models/user_session.rb | Ruby |
<|file_sep|>original/doc/README.md
# Diego BBS API Docs
Diego's BBS is the central data store and orchestrator of a Diego cluster. It can be communicated with via protobuf-based RPC.
Consumers of Diego communicate with it via an ExternalClient, the golang interface for which can be found [here](https://godoc.org/gith... | # Diego BBS API Docs
Diego's BBS is the central data store and orchestrator of a Diego cluster. It can be communicated with via protobuf-based RPC.
Consumers of Diego communicate with it via an ExternalClient, the golang interface for which can be found [here](https://godoc.org/github.com/cloudfoundry-incubator/bbs#E... | <|file_sep|>original/doc/README.md
# Diego BBS API Docs
Diego's BBS is the central data store and orchestrator of a Diego cluster. It can be communicated with via protobuf-based RPC.
Consumers of Diego communicate with it via an ExternalClient, the golang interface for which can be found [here](https://godoc.org/gith... | 7a06f2d8a770b7e72574d0ed96540d7d9583d4c8 | doc/README.md | doc/README.md | Markdown |
<|file_sep|>original/requirements.txt
coverage==4.5.1
gunicorn==19.7.1
Django==1.11.11
django-pigeon==0.3.0
python-memcached==1.59
psycopg2==2.7.4
whitenoise==3.3.1
Pillow==5.1.0
django-classbasedsettings==1.5.0
dj-database-url==0.5.0
sorl-thumbnail==12.4.1
boto==2.48.0
django-storages==1.6.6
raven==6.6.0
<|file_sep|>c... | coverage==4.5.1
gunicorn==19.7.1
Django==1.11.11
django-pigeon==0.3.0
python-memcached==1.59
psycopg2==2.7.4
whitenoise==3.3.1
Pillow==5.1.0
django-classbasedsettings==1.5.0
dj-database-url==0.5.0
sorl-thumbnail==12.4.1
boto==2.48.0
django-storages==1.6.6
raven==6.7.0 | <|file_sep|>original/requirements.txt
coverage==4.5.1
gunicorn==19.7.1
Django==1.11.11
django-pigeon==0.3.0
python-memcached==1.59
psycopg2==2.7.4
whitenoise==3.3.1
Pillow==5.1.0
django-classbasedsettings==1.5.0
dj-database-url==0.5.0
sorl-thumbnail==12.4.1
boto==2.48.0
django-storages==1.6.6
raven==6.6.0
<|file_sep|>c... | 7c86c084cd0260b135b81aba5f7bfed25ef19b0a | requirements.txt | requirements.txt | Text |
<|file_sep|>src/schema/v1/fields/initials.ts.diff
original:
// FIXME: Expected 1 arguments, but got 2.
// @ts-ignore
const letters = take(string.match(/\b[A-Z]/g, ""), length)
updated:
const letters = take(string.match(/\b[A-Z]/g), length)
<|file_sep|>original/src/schema/v1/fields/initials.ts
import { GraphQLSt... | import { GraphQLString, GraphQLInt, GraphQLFieldConfig } from "graphql"
import { ResolverContext } from "types/graphql"
export function initials(string = "", length = 3) {
if (!string) return null
const letters = take(string.match(/\b[A-Z]/g), length)
if (letters.length >= 1) return letters.join("").toUpperCase... | <|file_sep|>src/schema/v1/fields/initials.ts.diff
original:
// FIXME: Expected 1 arguments, but got 2.
// @ts-ignore
const letters = take(string.match(/\b[A-Z]/g, ""), length)
updated:
const letters = take(string.match(/\b[A-Z]/g), length)
<|file_sep|>original/src/schema/v1/fields/initials.ts
import { GraphQLSt... | ce614cda3ba7eba26abb5f6afe5a9432a40a4e21 | src/schema/v1/fields/initials.ts | src/schema/v1/fields/initials.ts | TypeScript |
<|file_sep|>original/lib/restaurant.rb
class Restaurant
@@filepath = nil
def self.filepath=(path=nil)
@@filepath = File.join(APP_ROOT, path)
end
def self.file_exists?
# class should know if he restaurant file exists
end
def self.create_file
# create the restaurant file
end
def self.saved... | class Restaurant
@@filepath = nil
def self.filepath=(path=nil)
@@filepath = File.join(APP_ROOT, path)
end
def self.file_usable?
return false unless @@filepath
return false unless File.exists? @@filepath
return false unless File.readable? @@filepath
return false unless File.writable? @@file... | <|file_sep|>original/lib/restaurant.rb
class Restaurant
@@filepath = nil
def self.filepath=(path=nil)
@@filepath = File.join(APP_ROOT, path)
end
def self.file_exists?
# class should know if he restaurant file exists
end
def self.create_file
# create the restaurant file
end
def self.saved... | 86cb1558c6933cb16cc945511a2c7fa3ea6bdeb6 | lib/restaurant.rb | lib/restaurant.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
cache:
directories:
- "node_modules"
<|file_sep|>current/.travis.yml
language: node_js
cache:
directories:
- "node_modules"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "node"
cache:
directories:
- "node_modules" | <|file_sep|>original/.travis.yml
language: node_js
cache:
directories:
- "node_modules"
<|file_sep|>current/.travis.yml
language: node_js
cache:
directories:
- "node_modules"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "node"
cache:
directories:
- "node_modules" | 6136d5ddce58e90b36dbcfbe41d8a4d57ae7aea4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/controllers/users_controller.rb
@user = User.find(params[:id])
end
def new
@user = User.new
end
def create
@user = User.new(user_params)
if @user.save
# Handle successful save
else
render 'new'
end
end
private
def user_params
params.... | @user = User.find(params[:id])
end
def new
@user = User.new
end
def create
@user = User.new(user_params)
if @user.save
redirect_to @user
else
render 'new'
end
end
private
def user_params
params.require(:user).permit(:name,
... | <|file_sep|>original/app/controllers/users_controller.rb
@user = User.find(params[:id])
end
def new
@user = User.new
end
def create
@user = User.new(user_params)
if @user.save
# Handle successful save
else
render 'new'
end
end
private
def user_params
params.... | d4f245ba1f2bc7c774a6256a7eca94f8de457f2f | app/controllers/users_controller.rb | app/controllers/users_controller.rb | Ruby |
<|file_sep|>original/.github/dependabot.yml
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
<|file_sep|>current/.github/dependabot.yml
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-re... | version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily | <|file_sep|>original/.github/dependabot.yml
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
<|file_sep|>current/.github/dependabot.yml
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-re... | a386724782f1d04280d11aa124983aaed4139ed1 | .github/dependabot.yml | .github/dependabot.yml | YAML |
<|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Monopoly</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
... | <!DOCTYPE html>
<html>
<head>
<title>Monopoly</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= form_tag(nil, method: :get) do %>
<%= select_t... | <|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Monopoly</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
... | 236ed7abde51b22596bae4115b3ad066705533de | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | HTML+ERB |
<|file_sep|>.github/workflows/gradle-build.yml.diff
original:
updated:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
<|file_sep|>original/.github/workflows/gradle-build.yml
- name: Check out project
uses: actions/checkout@v2
- name: S... | - name: Set up JDK 6
uses: actions/setup-java@v1
with:
java-version: '6.0.119'
java-package: jdk
architecture: x64
- name: Set up JDK 8
uses: actions/setup-java@v1
with... | <|file_sep|>.github/workflows/gradle-build.yml.diff
original:
updated:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
<|file_sep|>original/.github/workflows/gradle-build.yml
- name: Check out project
uses: actions/checkout@v2
- name: S... | 1cfd7ee22c4070475a8ba586d2ea443a226dae73 | .github/workflows/gradle-build.yml | .github/workflows/gradle-build.yml | YAML |
<|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
<div class="def">
updated:
<del class="def">
<|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
</div>
updated:
</del>
<|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
<div class="quote high... | </div>
<div class="pos">
{{model.original.pos}}
</div>
<div class="info">
<div class="definition">
<del class="def">
{{model.original.def}}
</del>
</div>
{{#if model.original.example}}
<div class="quoteWrap">
<del class="quote highlight">
<span class="quotemark"> “ </span>
{{m... | <|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
<div class="def">
updated:
<del class="def">
<|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
</div>
updated:
</del>
<|file_sep|>app/templates/proposal/meaning-removal.hbs.diff
original:
<div class="quote high... | edb9a9e380d43bc251a4e57bb717e8010f7f5bab | app/templates/proposal/meaning-removal.hbs | app/templates/proposal/meaning-removal.hbs | Handlebars |
<|file_sep|>original/.travis.yml
addons:
chrome: beta
before_install: # Install ChromeDriver
- wget -N http://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo ... | addons:
chrome: beta
before_install: # Install ChromeDriver
- wget -N http://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromed... | <|file_sep|>original/.travis.yml
addons:
chrome: beta
before_install: # Install ChromeDriver
- wget -N http://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo ... | 5d0394d1a7ab25bcf2ac267c5448be627006d050 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.github/workflows/build.yml
<|file_sep|>current/.github/workflows/build.yml
<|file_sep|>updated/.github/workflows/build.yml | name: Build wheels and deploy
on:
workflow_dispatch:
inputs:
confirm_ref:
description: "Enter branch/tag name to deploy to PyPI, or leave blank to only build wheels."
default: ""
override_version:
description: "Override version number:"
default: ""
jobs:
deploy_can... | <|file_sep|>original/.github/workflows/build.yml
<|file_sep|>current/.github/workflows/build.yml
<|file_sep|>updated/.github/workflows/build.yml
name: Build wheels and deploy
on:
workflow_dispatch:
inputs:
confirm_ref:
description: "Enter branch/tag name to deploy to PyPI, or leave blank to only ... | 15ceedd539b9bdf7e40121362d95be0a9ea40589 | .github/workflows/build.yml | .github/workflows/build.yml | YAML |
<|file_sep|>registration/__init__.py.diff
original:
from django.utils.version import get_version as django_get_version
updated:
<|file_sep|>original/registration/__init__.py
from django.utils.version import get_version as django_get_version
VERSION = (0, 9, 0, 'beta', 1)
def get_version():
return django_get_... | VERSION = (0, 9, 0, 'beta', 1)
def get_version():
from django.utils.version import get_version as django_get_version
return django_get_version(VERSION) # pragma: no cover | <|file_sep|>registration/__init__.py.diff
original:
from django.utils.version import get_version as django_get_version
updated:
<|file_sep|>original/registration/__init__.py
from django.utils.version import get_version as django_get_version
VERSION = (0, 9, 0, 'beta', 1)
def get_version():
return django_get_... | 1abbca6200fa3da0a3216b18b1385f3575edb49a | registration/__init__.py | registration/__init__.py | Python |
<|file_sep|>original/etc/calico-gen-bird-conf.sh
EOF
[ $# -eq 3 ] || exit -1
# Name the arguments.
my_ip_address=$1
rr_ip_address=$2
as_number=$3
# Generate BIRD config file.
mkdir -p $(dirname $BIRD_CONF)
sed -e "
s/@MY_IP_ADDRESS@/$my_ip_address/;
s/@RR_IP_ADDRESS@/$rr_ip_address/;
s/@AS_NUMBER@/$as_number/;
" < $B... | mkdir -p $(dirname $BIRD_CONF)
sed -e "
s/@MY_IP_ADDRESS@/$my_ip_address/;
s/@RR_IP_ADDRESS@/$rr_ip_address/;
s/@AS_NUMBER@/$as_number/;
" < $BIRD_CONF_TEMPLATE > $BIRD_CONF
echo BIRD configuration generated at $BIRD_CONF
if [ -f /etc/redhat-release ]; then
# On a Red Hat system, we assume that BIRD is locally bu... | <|file_sep|>original/etc/calico-gen-bird-conf.sh
EOF
[ $# -eq 3 ] || exit -1
# Name the arguments.
my_ip_address=$1
rr_ip_address=$2
as_number=$3
# Generate BIRD config file.
mkdir -p $(dirname $BIRD_CONF)
sed -e "
s/@MY_IP_ADDRESS@/$my_ip_address/;
s/@RR_IP_ADDRESS@/$rr_ip_address/;
s/@AS_NUMBER@/$as_number/;
" < $B... | 190fd5a48aceaf94fd6e7617a273e721bf204496 | etc/calico-gen-bird-conf.sh | etc/calico-gen-bird-conf.sh | Shell |
<|file_sep|>original/.github/scripts/create_release.sh
owner="orbit"
repo="orbit"
version=$TAG_VERSION
GH_REPO="https://api.github.com/repos/$owner/$repo"
AUTH="Authorization: token $GITHUB_TOKEN"
echo Commit all changed work
git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.co... | owner="orbit"
repo="orbit"
version=$TAG_VERSION
GH_REPO="https://api.github.com/repos/$owner/$repo"
AUTH="Authorization: token $GITHUB_TOKEN"
echo Commit all changed work
git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.com>"
echo Create release notes from previous commit mes... | <|file_sep|>original/.github/scripts/create_release.sh
owner="orbit"
repo="orbit"
version=$TAG_VERSION
GH_REPO="https://api.github.com/repos/$owner/$repo"
AUTH="Authorization: token $GITHUB_TOKEN"
echo Commit all changed work
git commit -am "Release version $version and update docs" --author="orbit-tools <orbit@ea.co... | a46de60bed3cd25d4b51a3e14e500833d5d950e0 | .github/scripts/create_release.sh | .github/scripts/create_release.sh | Shell |
<|file_sep|>original/composer.json
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"require": {
"php": ">=5.3.3"
},
"autoload": {... | "email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"require": {
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Symfony\\Component\\Yaml": "" }
},
"target-dir... | <|file_sep|>original/composer.json
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"require": {
"php": ">=5.3.3"
},
"autoload": {... | f18e004fc975707bb4695df1dbbe9b0d8c8b7715 | composer.json | composer.json | JSON |
<|file_sep|>original/metadata/com.stevenschoen.putionew.txt
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
prebuild=sed -i 's@android {@android { lintOptions { abortOnError false }@' build.gradle
Maintainer... | Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
prebuild=sed -i 's@android {@android { lintOptions { abortOnError false }@' build.gradle
Maintainer Notes:
* lint is no happy / missing translation
* no licens... | <|file_sep|>original/metadata/com.stevenschoen.putionew.txt
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
prebuild=sed -i 's@android {@android { lintOptions { abortOnError false }@' build.gradle
Maintainer... | d25d2cef76ddf90bec1d11b2c5fdfbc854db08b3 | metadata/com.stevenschoen.putionew.txt | metadata/com.stevenschoen.putionew.txt | Text |
<|file_sep|>original/pathfinder.gemspec
# Maintain your gem's version:
require "pathfinder/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "pathfinder"
s.version = Pathfinder::VERSION
s.authors = ["TODO: Your name"]
s.email = ["TODO: Your ... | $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "pathfinder/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "pathfinder"
s.version = Pathfinder::VERSION
s.authors = ["Niels Buus"]
s.homepage = "http://www.l... | <|file_sep|>original/pathfinder.gemspec
# Maintain your gem's version:
require "pathfinder/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "pathfinder"
s.version = Pathfinder::VERSION
s.authors = ["TODO: Your name"]
s.email = ["TODO: Your ... | 9ea62c4fcf08c4acb4b29d65894894c10498e7bd | pathfinder.gemspec | pathfinder.gemspec | Ruby |
<|file_sep|>original/lib/vagrant-ebcommon/plugin.rb
A Vagrant plugin to handle various Eventbrite workflows.
DESC
# define configs
config 'ebcommon' do
require_relative 'config'
Config
end
# define hooks
action_hook 'setup_provision', 'machine_action_provision' do |hook|
... | A Vagrant plugin to handle various Eventbrite workflows.
DESC
# define configs
config 'ebcommon' do
require_relative 'config'
Config
end
# define hooks
action_hook 'setup', 'machine_action_up' do |hook|
require_relative 'actions/setup_provision'
hook.prepe... | <|file_sep|>original/lib/vagrant-ebcommon/plugin.rb
A Vagrant plugin to handle various Eventbrite workflows.
DESC
# define configs
config 'ebcommon' do
require_relative 'config'
Config
end
# define hooks
action_hook 'setup_provision', 'machine_action_provision' do |hook|
... | 2e3192e1730650a121e275f3c743d90ee73ae574 | lib/vagrant-ebcommon/plugin.rb | lib/vagrant-ebcommon/plugin.rb | Ruby |
<|file_sep|>original/pkgs/development/libraries/gobject-introspection/default.nix
v = "0.6.10";
in
stdenv.mkDerivation rec {
name = "${baseName}-${v}";
buildInputs = [ flex bison glib pkgconfig python cairo ];
propagatedBuildInputs = [ libffi ];
configureFlags = "--enable-gcov";
src = fetchurl {
url ... | v = "0.6.10";
in
stdenv.mkDerivation rec {
name = "${baseName}-${v}";
buildInputs = [ flex bison glib pkgconfig python cairo ];
propagatedBuildInputs = [ libffi ];
configureFlags = "--enable-gcov";
src = fetchurl {
url = "mirror://gnome/sources/${baseName}/0.6/${name}.tar.bz2";
sha256 = "0jwd7byb... | <|file_sep|>original/pkgs/development/libraries/gobject-introspection/default.nix
v = "0.6.10";
in
stdenv.mkDerivation rec {
name = "${baseName}-${v}";
buildInputs = [ flex bison glib pkgconfig python cairo ];
propagatedBuildInputs = [ libffi ];
configureFlags = "--enable-gcov";
src = fetchurl {
url ... | a309626c49ebf9f183089ae44cd1652f48afe49f | pkgs/development/libraries/gobject-introspection/default.nix | pkgs/development/libraries/gobject-introspection/default.nix | Nix |
<|file_sep|>original/app/presenters/publication_presenter.rb
end
PASS_THROUGH_KEYS = [
:title, :details, :web_url
]
PASS_THROUGH_DETAILS_KEYS = [
:body, :introduction, :expectations, :video_url, :alternative_title,
:overview, :name, :video_summary, :continuation_link, :licence_overview,
:link,... | end
PASS_THROUGH_KEYS = [
:title, :details, :web_url
]
PASS_THROUGH_DETAILS_KEYS = [
:body, :introduction, :expectations, :video_url, :alternative_title,
:overview, :name, :video_summary, :continuation_link, :licence_overview,
:link, :will_continue_on, :more_information, :minutes_to_complete,
... | <|file_sep|>original/app/presenters/publication_presenter.rb
end
PASS_THROUGH_KEYS = [
:title, :details, :web_url
]
PASS_THROUGH_DETAILS_KEYS = [
:body, :introduction, :expectations, :video_url, :alternative_title,
:overview, :name, :video_summary, :continuation_link, :licence_overview,
:link,... | 10e319239aa34a71e450b1c4a5373fcf86fef258 | app/presenters/publication_presenter.rb | app/presenters/publication_presenter.rb | Ruby |
<|file_sep|>original/_posts/2016-10-05-CSharp-Exercise2.md
<|file_sep|>current/_posts/2016-10-05-CSharp-Exercise2.md
<|file_sep|>updated/_posts/2016-10-05-CSharp-Exercise2.md | ---
layout: post
title: C# Exercise 2
comments: true
description: Example of sum two Multidimensional Arrays 3x3
published: true
categories:
- csharp
tags:
- csharp
- dotnet
---
Example of sum two Multidimensional Arrays 3x3.
This example basically requires to sum two Multidimensional Arrays 3x3 using two methods, on... | <|file_sep|>original/_posts/2016-10-05-CSharp-Exercise2.md
<|file_sep|>current/_posts/2016-10-05-CSharp-Exercise2.md
<|file_sep|>updated/_posts/2016-10-05-CSharp-Exercise2.md
---
layout: post
title: C# Exercise 2
comments: true
description: Example of sum two Multidimensional Arrays 3x3
published: true
categories:
- ... | d85e22b77924582df5e3676d691d4d91f549d914 | _posts/2016-10-05-CSharp-Exercise2.md | _posts/2016-10-05-CSharp-Exercise2.md | Markdown |
<|file_sep|>original/.travis.yml
sudo: false
language:
- python
python:
- "3.5"
env:
- NODE_VERSION="6.9"
before_install:
- nvm install $NODE_VERSION
- pip install codecov
install:
- make deps
script:
- make test
after_success:
- codecov
<|file_sep|>current/.travis.yml
sudo: false
language:
- python
p... | sudo: false
language:
- python
python:
- "3.5"
env:
- NODE_VERSION="6.9"
cache:
directories:
- node_modules
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
- nvm install $NODE_VERSION
- pip install codecov
install:
- make deps
script:
- make test
after_s... | <|file_sep|>original/.travis.yml
sudo: false
language:
- python
python:
- "3.5"
env:
- NODE_VERSION="6.9"
before_install:
- nvm install $NODE_VERSION
- pip install codecov
install:
- make deps
script:
- make test
after_success:
- codecov
<|file_sep|>current/.travis.yml
sudo: false
language:
- python
p... | 55253867aab60149534769cfb8f4e5820a93713e | .travis.yml | .travis.yml | YAML |
<|file_sep|>docs/en/how-to-write-docs.md.diff
original:
Link to another document using this syntax: `[link text](filename.md)`
updated:
Link to the readme:
`[readme](../../README.md)`
Link to contributing:
`[contributing](../../CONTRIBUTING.md)`
Link to another document
`[link text](filename.md)`
<|file_sep|>docs/... |
### Linking
Link to the readme:
`[readme](../../README.md)`
Link to contributing:
`[contributing](../../CONTRIBUTING.md)`
Link to another document
`[link text](filename.md)`
To link inside a document, use the `#` from the Slate URL.
`[go direct to json](filename.md#json-wire-protocol-server-extensions)`
Note ... | <|file_sep|>docs/en/how-to-write-docs.md.diff
original:
Link to another document using this syntax: `[link text](filename.md)`
updated:
Link to the readme:
`[readme](../../README.md)`
Link to contributing:
`[contributing](../../CONTRIBUTING.md)`
Link to another document
`[link text](filename.md)`
<|file_sep|>docs/... | d51b0577363001ab1883e2758f7a318899031769 | docs/en/how-to-write-docs.md | docs/en/how-to-write-docs.md | Markdown |
<|file_sep|>src/main/java/bench/pubsub/ZeroMQSequencer.java.diff
original:
public static void main (String[] args) throws Exception {
updated:
public static void main(String[] args) throws Exception {
<|file_sep|>src/main/java/bench/pubsub/ZeroMQSequencer.java.diff
original:
updated:
@Override
<|... | publisher.setAffinity(1);
publisher.setHWM(0);
publisher.bind("tcp://*:5556");
//publisher.bind("ipc://weather");
ZMQ.Socket incoming = context.socket(ZMQ.PULL);
incoming.setHWM(0);
incoming.setAffinity(2);
incoming.bind("t... | <|file_sep|>src/main/java/bench/pubsub/ZeroMQSequencer.java.diff
original:
public static void main (String[] args) throws Exception {
updated:
public static void main(String[] args) throws Exception {
<|file_sep|>src/main/java/bench/pubsub/ZeroMQSequencer.java.diff
original:
updated:
@Override
<|... | a613047f5489dff9e739bf91093bd4c4ab9fdd69 | src/main/java/bench/pubsub/ZeroMQSequencer.java | src/main/java/bench/pubsub/ZeroMQSequencer.java | Java |
<|file_sep|>original/.github/workflows/node.yml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.... | jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies... | <|file_sep|>original/.github/workflows/node.yml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.... | 582ab20e9da76a8dcd3eaa93744d889abb6d62f6 | .github/workflows/node.yml | .github/workflows/node.yml | YAML |
<|file_sep|>original/CONTRIBUTING.md
## Blank lines
Adding blank lines in between code adds clarity. Let's use the criteria that if two lines can be interchangeable, then
can be joined. Otherwise, let's separate with a blank line.
Let's use one blank line between methods, one blank line after class declaration, and on... |
Let's use one blank line between methods, one blank line after class declaration, and one blank line before
class-closing curly brackets.
### File endings
Do not add a blank line after the last line with content.
### Empty methods
Do not add a blank line in an empty method.
### Method endings
There won't be a blank... | <|file_sep|>original/CONTRIBUTING.md
## Blank lines
Adding blank lines in between code adds clarity. Let's use the criteria that if two lines can be interchangeable, then
can be joined. Otherwise, let's separate with a blank line.
Let's use one blank line between methods, one blank line after class declaration, and on... | 662dacaa6e802396a0f7bf6fe63b0f28ce8c7274 | CONTRIBUTING.md | CONTRIBUTING.md | Markdown |
<|file_sep|>share/spice/keybase/content.handlebars.diff
original:
<div>{{profile.full_name}}</div>
updated:
<h1 class="zci__header">{{profile.full_name}}</h1>
<|file_sep|>share/spice/keybase/content.handlebars.diff
original:
</div>
updated:
<|file_sep|>share/spice/keybase/content.handlebars.diff
original:
<d... | {{else}}
<img src="{{imageProxy 'https://keybase.io/images/no_photo.png'}}" class="circle keybase--image">
{{/if}}
</div>
<div class="keybase--misc">
<h1 class="zci__header">{{profile.full_name}}</h1>
<div class="keybase--more">
{{#if profile.location}}
<span class="keybase--user">... | <|file_sep|>share/spice/keybase/content.handlebars.diff
original:
<div>{{profile.full_name}}</div>
updated:
<h1 class="zci__header">{{profile.full_name}}</h1>
<|file_sep|>share/spice/keybase/content.handlebars.diff
original:
</div>
updated:
<|file_sep|>share/spice/keybase/content.handlebars.diff
original:
<d... | 7d96b8cc139b08f9d7bcaaad5ecea94931f7a0c2 | share/spice/keybase/content.handlebars | share/spice/keybase/content.handlebars | Handlebars |
<|file_sep|>original/d02/d02s04/src/main/java/net/safedata/springboot/training/d02/s04/exceptions/ExceptionHandlers.java
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* The most common exception handlers
*
* @author bogdan.solga
*/
@ControllerAdvice
public class ExceptionHandlers {
privat... | import org.springframework.web.bind.annotation.ResponseStatus;
/**
* The most common exception handlers
*
* @author bogdan.solga
*/
@ControllerAdvice
public class ExceptionHandlers {
private static final Logger LOGGER = LoggerFactory.getLogger(ExceptionHandlers.class);
@ExceptionHandler(NotFoundException... | <|file_sep|>original/d02/d02s04/src/main/java/net/safedata/springboot/training/d02/s04/exceptions/ExceptionHandlers.java
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* The most common exception handlers
*
* @author bogdan.solga
*/
@ControllerAdvice
public class ExceptionHandlers {
privat... | 8d50dbba17b305d8082f8906b150ea99488bc9c0 | d02/d02s04/src/main/java/net/safedata/springboot/training/d02/s04/exceptions/ExceptionHandlers.java | d02/d02s04/src/main/java/net/safedata/springboot/training/d02/s04/exceptions/ExceptionHandlers.java | Java |
<|file_sep|>tox.ini.diff
original:
envlist = e2e
updated:
envlist = e2e, flake8
<|file_sep|>original/tox.ini
[tox]
envlist = e2e
skipsdist = true
[testenv:e2e]
passenv = PYTEST_ADDOPTS
commands = py.test -n=auto {posargs} tests/e2e
deps =
beautifulsoup4==4.5.0
pytest==2.9.2
pytest-base-url==1.1.0
pytes... | [tox]
envlist = e2e, flake8
skipsdist = true
[testenv:e2e]
passenv = PYTEST_ADDOPTS
commands = py.test -n=auto {posargs} tests/e2e
deps =
beautifulsoup4==4.5.0
pytest==2.9.2
pytest-base-url==1.1.0
pytest-xdist==1.14
requests==2.10.0
[testenv:flake8]
basepython = python
deps = flake8
commands = fla... | <|file_sep|>tox.ini.diff
original:
envlist = e2e
updated:
envlist = e2e, flake8
<|file_sep|>original/tox.ini
[tox]
envlist = e2e
skipsdist = true
[testenv:e2e]
passenv = PYTEST_ADDOPTS
commands = py.test -n=auto {posargs} tests/e2e
deps =
beautifulsoup4==4.5.0
pytest==2.9.2
pytest-base-url==1.1.0
pytes... | 534a8493cc40f49c06110f51fb45118ed5a0ebd4 | tox.ini | tox.ini | INI |
<|file_sep|>original/files/default/tests/minitest/server_test.rb
describe 'postgresql::server' do
include Helpers::Postgresql
it 'installs the postgresql server packages' do
node['postgresql']['server']['packages'].each do |pkg|
package(pkg).must_be_installed
end
end
it 'runs the postgresql serv... | describe 'postgresql::server' do
include Helpers::Postgresql
it 'installs the postgresql server packages' do
node['postgresql']['server']['packages'].each do |pkg|
package(pkg).must_be_installed
end
end
it 'runs the postgresql service' do
service("postgresql").must_be_running
end
it 'ca... | <|file_sep|>original/files/default/tests/minitest/server_test.rb
describe 'postgresql::server' do
include Helpers::Postgresql
it 'installs the postgresql server packages' do
node['postgresql']['server']['packages'].each do |pkg|
package(pkg).must_be_installed
end
end
it 'runs the postgresql serv... | c775af3cd1d20aca047ac78aa69f1b67ce3abf2f | files/default/tests/minitest/server_test.rb | files/default/tests/minitest/server_test.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- 5.3
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
before_script:
- composer update
- mysql -e 'create database selective_test;'
script: phpunit --configuration phpunit.xml --coverage-clover ./build/logs/clover.xml
after_script: php vendo... | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
before_script:
- composer update
- mysql -e 'create database selective_test;'
script: phpunit --configuration phpunit.xml --coverage-clover ./build/logs/clover.xml
after_script: php vendor/bin/coveralls -v | <|file_sep|>.travis.yml.diff
original:
updated:
- 5.3
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
before_script:
- composer update
- mysql -e 'create database selective_test;'
script: phpunit --configuration phpunit.xml --coverage-clover ./build/logs/clover.xml
after_script: php vendo... | 4fc5296a65460385623fb8f9ff1d30f4c6cffb2a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/docs/rules/force-element-nesting.md
<|file_sep|>current/docs/rules/force-element-nesting.md
<|file_sep|>updated/docs/rules/force-element-nesting.md | # Force Element Nesting
Rule `force-element-nesting` will enforce the nesting of elements
## Examples
When enabled, the following are disallowed:
```scss
div p {
content: '';
}
.parent {
&__child h1 {
content: '';
}
}
a[target="_blank"] span {
content: ''; | <|file_sep|>original/docs/rules/force-element-nesting.md
<|file_sep|>current/docs/rules/force-element-nesting.md
<|file_sep|>updated/docs/rules/force-element-nesting.md
# Force Element Nesting
Rule `force-element-nesting` will enforce the nesting of elements
## Examples
When enabled, the following are disallowed:
... | 3ce2a5fd622054267f647b3010123bdd509439d3 | docs/rules/force-element-nesting.md | docs/rules/force-element-nesting.md | Markdown |
<|file_sep|>original/blueprints/flexberry-model/files/tests/unit/serializers/__test__.js
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {
// Specify the other units that are required for this test.
needs: [
'serializer:<%= name %>',
'tra... | import { moduleForModel, test } from 'ember-qunit';
moduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {
// Specify the other units that are required for this test.
needs: [
'serializer:<%= name %>',
'transform:file',
'transform:decimal',
'transform:guid',
<% if (!!needsAllEnums === t... | <|file_sep|>original/blueprints/flexberry-model/files/tests/unit/serializers/__test__.js
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {
// Specify the other units that are required for this test.
needs: [
'serializer:<%= name %>',
'tra... | 333ef6fdee70060662ee2da6ab092d323c9b269c | blueprints/flexberry-model/files/tests/unit/serializers/__test__.js | blueprints/flexberry-model/files/tests/unit/serializers/__test__.js | JavaScript |
<|file_sep|>original/bower.json
"main": "app.js",
"keywords": [
"opentok",
"webrtc",
"screenshare"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"opentok-angular": "~0.2.3",
"opentok-whiteboard": "... | "main": "app.js",
"keywords": [
"opentok",
"webrtc",
"screenshare"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"opentok-angular": "~0.2.3",
"opentok-whiteboard": "~0.1.1",
"ionicons": "~1.4.1... | <|file_sep|>original/bower.json
"main": "app.js",
"keywords": [
"opentok",
"webrtc",
"screenshare"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"opentok-angular": "~0.2.3",
"opentok-whiteboard": "... | b7b66b8ec3831c08e514f1c361cc5cebc6686093 | bower.json | bower.json | JSON |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.3"
- "3.4"
install:
- pip install coveralls
script:
coverage run -m unittest discover
after_success:
coveralls
<|file_sep|>current/.travis.yml
language: python
python:
- "3.3"
- "3.4"
install:
- pip install coveralls
script:
coverage run -... | language: python
python:
- "3.3"
- "3.4"
install:
- pip install coveralls
- pip install -r requirements.txt
script:
coverage run -m unittest discover
after_success:
coveralls | <|file_sep|>original/.travis.yml
language: python
python:
- "3.3"
- "3.4"
install:
- pip install coveralls
script:
coverage run -m unittest discover
after_success:
coveralls
<|file_sep|>current/.travis.yml
language: python
python:
- "3.3"
- "3.4"
install:
- pip install coveralls
script:
coverage run -... | 245b5d7dcceb279659c0895556a10d18e755a12e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/signing/codesignrequirement.txt
designated => (
certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */
or
certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */
and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */
and certificate leaf[subject.OU] = KUU2LM7U9K
)
and anch... | designated => (
certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */
or
(
certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */
and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */
and certificate leaf[subject.OU] = KUU2LM7U9K
)
)
and anchor apple generic
and identifier "uk.co.openc... | <|file_sep|>original/signing/codesignrequirement.txt
designated => (
certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */
or
certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */
and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */
and certificate leaf[subject.OU] = KUU2LM7U9K
)
and anch... | ebf986f34171a8622a5411ca8aaccbddb8ff8ff4 | signing/codesignrequirement.txt | signing/codesignrequirement.txt | Text |
<|file_sep|>src/Seguidor/Seguidor.jsx.diff
original:
import React, { Component } from 'react';
import { Link } from 'react-router';
import FetchingIndicator from '../Fetching/FetchingIndicator';
import SeguidorHeading from './SeguidorHeading';
import Carousel from './Carousel/Carousel';
import YearTabsMobile from './Ye... | materias={materias}
yearsPerTab={3}
updateFn={this.props.updateEstado}
/>
</MediaQuery>
<MediaQuery maxDeviceWidth={1224}>
<Carousel
materias={materias}
yearsPerTab={1}
updateFn={this.props.up... | <|file_sep|>src/Seguidor/Seguidor.jsx.diff
original:
import React, { Component } from 'react';
import { Link } from 'react-router';
import FetchingIndicator from '../Fetching/FetchingIndicator';
import SeguidorHeading from './SeguidorHeading';
import Carousel from './Carousel/Carousel';
import YearTabsMobile from './Ye... | 95e77f6e46c1d6e39752d13aa27fb4fe50927315 | src/Seguidor/Seguidor.jsx | src/Seguidor/Seguidor.jsx | JSX |
<|file_sep|>original/.github/Pull_request_template.md
<!--
Thank you for contributing to Moya! 🙌
Choosing a base branch:
master: bug fixes, non breaking API changes, documentation fixes
develop: breaking changes, features for the next version
If your pull request fixes an issue, please reference the issue.
Fo... | <!--
Thank you for contributing to Moya! 🙌
Choosing a base branch:
master: bug fixes, non breaking API changes, documentation fixes
development: breaking changes, features for the next version
If your pull request fixes an issue, please reference the issue.
For example, when your pull request fixes issue 10, ... | <|file_sep|>original/.github/Pull_request_template.md
<!--
Thank you for contributing to Moya! 🙌
Choosing a base branch:
master: bug fixes, non breaking API changes, documentation fixes
develop: breaking changes, features for the next version
If your pull request fixes an issue, please reference the issue.
Fo... | c04a08db4c8b6c64f20fd0b51613fab6f67add17 | .github/Pull_request_template.md | .github/Pull_request_template.md | Markdown |
<|file_sep|>original/v2/util.go
// Copyright 2013 Michael Yang. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package v2
func isBitSet(flag, index byte) bool {
return flag&(1<<index) == 1
}
<|file_sep|>current/v2/util.go
// Copyright 2013 ... | // Copyright 2013 Michael Yang. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package v2
func isBitSet(flag, index byte) bool {
return flag&(1<<index) != 0
} | <|file_sep|>original/v2/util.go
// Copyright 2013 Michael Yang. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package v2
func isBitSet(flag, index byte) bool {
return flag&(1<<index) == 1
}
<|file_sep|>current/v2/util.go
// Copyright 2013 ... | 03517118034de160a85b2b693c23089c491d8a3e | v2/util.go | v2/util.go | Go |
<|file_sep|>nodeconductor/quotas/handlers.py.diff
original:
updated:
from django.db.models import signals
<|file_sep|>original/nodeconductor/quotas/handlers.py
def add_quotas_to_scope(sender, instance, created=False, **kwargs):
if created:
from nodeconductor.quotas import models
for quota_name in... | from django.db.models import signals
def add_quotas_to_scope(sender, instance, created=False, **kwargs):
if created:
from nodeconductor.quotas import models
for quota_name in sender.QUOTAS_NAMES:
models.Quota.objects.create(name=quota_name, scope=instance)
def quantity_quota_handler_... | <|file_sep|>nodeconductor/quotas/handlers.py.diff
original:
updated:
from django.db.models import signals
<|file_sep|>original/nodeconductor/quotas/handlers.py
def add_quotas_to_scope(sender, instance, created=False, **kwargs):
if created:
from nodeconductor.quotas import models
for quota_name in... | 96b554c62fb9449760d423f7420ae75d78998269 | nodeconductor/quotas/handlers.py | nodeconductor/quotas/handlers.py | Python |
<|file_sep|>src/components/CountryMap.js.diff
original:
fetch(process.env.REACT_APP_ASSETS_URL + this.props.countrycode + ".svg")
updated:
fetch(
process.env.REACT_APP_ASSETS_URL +
"countries/fullname/" +
this.props.countrycode +
".svg?"
)
<|file_sep|>src/componen... | return response.text();
})
.then(function(SVGtext) {
component.setState({ SVG: SVGtext });
});
}
}
render() {
return this.props.countrycode
? <div className="case-map">
<div dangerouslySetInnerHTML={{ __html: this.state.SVG }} />
{this.p... | <|file_sep|>src/components/CountryMap.js.diff
original:
fetch(process.env.REACT_APP_ASSETS_URL + this.props.countrycode + ".svg")
updated:
fetch(
process.env.REACT_APP_ASSETS_URL +
"countries/fullname/" +
this.props.countrycode +
".svg?"
)
<|file_sep|>src/componen... | 3c36f977510a175e01ce0520bb62d7ae0d6e6d80 | src/components/CountryMap.js | src/components/CountryMap.js | JavaScript |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.2
- 1.3
- tip
before_install:
- go get github.com/c4milo/unzipit
- mkdir -p $HOME/gopath/src/github.com/cloudescape/govix; git clone https://github.com/cloudescape/govix.git $HOME/gopath/src/github.com/cloudescape/govix
- go get github.com/dustin/go-hu... | language: go
go:
- 1.2
- 1.3
- tip
before_install:
- go get github.com/c4milo/unzipit
- mkdir -p $HOME/gopath/src/github.com/cloudescape/govix; git clone https://github.com/cloudescape/govix.git $HOME/gopath/src/github.com/cloudescape/govix
- go get github.com/dustin/go-humanize
- mkdir -p $HOME/gopath/... | <|file_sep|>original/.travis.yml
language: go
go:
- 1.2
- 1.3
- tip
before_install:
- go get github.com/c4milo/unzipit
- mkdir -p $HOME/gopath/src/github.com/cloudescape/govix; git clone https://github.com/cloudescape/govix.git $HOME/gopath/src/github.com/cloudescape/govix
- go get github.com/dustin/go-hu... | da8013cf1306ce8284f7d0aef6716225b1871c76 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# XML Calabash image metadata extraction extension step
This repository contains an
[XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 extension
step that can extract metadata from images using
[MetadataExtractor](https://drewnoakes.com/code/exif/).
This step should work with ei... | # XML Calabash image metadata extraction extension step
[](https://travis-ci.org/ndw/xmlcalabash1-metadata-extractor.svg?branch=master)
This repository contains an
[XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 ext... | <|file_sep|>original/README.md
# XML Calabash image metadata extraction extension step
This repository contains an
[XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 extension
step that can extract metadata from images using
[MetadataExtractor](https://drewnoakes.com/code/exif/).
This step should work with ei... | 079476a8c5c81ba3393c6daed190d5bf7d652ba8 | README.md | README.md | Markdown |
<|file_sep|>makeApidoxLoop.sh.diff
original:
updated:
cd "`dirname "$0"`"
<|file_sep|>original/makeApidoxLoop.sh
#!/bin/sh
test -f .makeApidox.stamp || touch .makeApidox.stamp
while true; do
ls -l -t include/Vc/* doc/dox.h doc/examples.h common/*|head -n1 > .makeApidox.stamp.new
if ! diff -q .makeApidox.stamp.new ... | #!/bin/sh
cd "`dirname "$0"`"
test -f .makeApidox.stamp || touch .makeApidox.stamp
while true; do
ls -l -t Vc/* doc/dox.h doc/examples.h Vc/common/*|head -n1 > .makeApidox.stamp.new
if ! diff -q .makeApidox.stamp.new .makeApidox.stamp; then
./makeApidox.sh
mv -f .makeApidox.stamp.new .makeApidox.stamp
els... | <|file_sep|>makeApidoxLoop.sh.diff
original:
updated:
cd "`dirname "$0"`"
<|file_sep|>original/makeApidoxLoop.sh
#!/bin/sh
test -f .makeApidox.stamp || touch .makeApidox.stamp
while true; do
ls -l -t include/Vc/* doc/dox.h doc/examples.h common/*|head -n1 > .makeApidox.stamp.new
if ! diff -q .makeApidox.stamp.new ... | b725a903b54ae64364ec8bfee9d37e5fd033ae38 | makeApidoxLoop.sh | makeApidoxLoop.sh | Shell |
<|file_sep|>common/djangoapps/mitxmako/tests.py.diff
original:
@override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'about_edx'})
updated:
@override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'login'})
<|file_sep|>original/common/djangoapps/mitxmako/tests.py
from mock import patch
class ShortcutsTests(TestCase):
"""
... |
class ShortcutsTests(TestCase):
"""
Test the mitxmako shortcuts file
"""
@override_settings(MKTG_URLS={'ROOT': 'dummy-root', 'ABOUT': '/about-us'})
@override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'login'})
def test_marketing_link(self):
# test marketing site on
with patch.dict(... | <|file_sep|>common/djangoapps/mitxmako/tests.py.diff
original:
@override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'about_edx'})
updated:
@override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'login'})
<|file_sep|>original/common/djangoapps/mitxmako/tests.py
from mock import patch
class ShortcutsTests(TestCase):
"""
... | 15a5e6c1aca706330147475984848dfc33fd1a9d | common/djangoapps/mitxmako/tests.py | common/djangoapps/mitxmako/tests.py | Python |
<|file_sep|>original/ckanext/orgportals/templates/organization/snippets/pages_item.html
{% set url = h.url_for(controller='ckanext.orgportals.controllers.portals:OrgportalsController',
action='pages_edit',
org_name=c.group_dict.name,
page='/' + page.t... | {% set url = h.url_for(controller='ckanext.orgportals.controllers.portals:OrgportalsController',
action='pages_edit',
org_name=c.group_dict.name,
page='/' + page.name) %}
{% block item %}
<li class="media-item">
{% block item_inner %}
{% block i... | <|file_sep|>original/ckanext/orgportals/templates/organization/snippets/pages_item.html
{% set url = h.url_for(controller='ckanext.orgportals.controllers.portals:OrgportalsController',
action='pages_edit',
org_name=c.group_dict.name,
page='/' + page.t... | 5e12e73b943ba67082c5c619d011b149399699c6 | ckanext/orgportals/templates/organization/snippets/pages_item.html | ckanext/orgportals/templates/organization/snippets/pages_item.html | HTML |
<|file_sep|>lib/mongoid/enum_mapper/define_enum.rb.diff
original:
updated:
set_enum_mapping_constant(enum_field, enum_mapping)
<|file_sep|>lib/mongoid/enum_mapper/define_enum.rb.diff
original:
instance_variable_get(enum_value) || instance_variable_set(enum_value, enum_mapping.find { |_, value| value ... | enum_value = :"@#{enum_field}"
define_method(enum_field) do
instance_variable_get(enum_value) ||
instance_variable_set(enum_value, enum_mapping.find { |_, value| value == self[enum_field] }.try(:[], 0))
end
define_method(:"#{enum_field}=") do |key|
return ... | <|file_sep|>lib/mongoid/enum_mapper/define_enum.rb.diff
original:
updated:
set_enum_mapping_constant(enum_field, enum_mapping)
<|file_sep|>lib/mongoid/enum_mapper/define_enum.rb.diff
original:
instance_variable_get(enum_value) || instance_variable_set(enum_value, enum_mapping.find { |_, value| value ... | f15c784c059427f5d8a157f67fe374200d7d9aa9 | lib/mongoid/enum_mapper/define_enum.rb | lib/mongoid/enum_mapper/define_enum.rb | Ruby |
<|file_sep|>original/.travis.yml
- "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=... | - "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=1.10.1
- EMBER_TRY_SCENARIO=1.11.3
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
... | <|file_sep|>original/.travis.yml
- "0.12"
sudo: false
cache:
directories:
- node_modules
env:
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=... | 9f98cbe734f94f4ece8f0694d28a434fdd3b54fc | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/format-with-clang.sh
<|file_sep|>current/format-with-clang.sh
<|file_sep|>updated/format-with-clang.sh | #!/bin/bash
clang-format -style='{
BasedOnStyle: llvm,
IndentWidth: 4,
BreakBeforeBraces: Custom,
BraceWrapping: {
AfterFunction: true,
AfterClass: true,
AfterStruct: true,
AfterNamespace: true,
AfterUnion: true,
AfterEnum: true,
},
ColumnLimit... | <|file_sep|>original/format-with-clang.sh
<|file_sep|>current/format-with-clang.sh
<|file_sep|>updated/format-with-clang.sh
#!/bin/bash
clang-format -style='{
BasedOnStyle: llvm,
IndentWidth: 4,
BreakBeforeBraces: Custom,
BraceWrapping: {
AfterFunction: true,
AfterClass: true,
... | 5a0bd9945225f2d3ceda73a145b67a65ccb58a78 | format-with-clang.sh | format-with-clang.sh | Shell |
<|file_sep|>original/test/test_once.rb
@loop = nil
end
def test_1once
n = 0
@loop.add_once { n += 1 }
@loop.add_once(0.2) { @loop.quit }
@loop.run
assert_equal 1, n
end
def test_2once
n = 0
@loop.add_once { n += 1 }
@loop.add_once(0.1) {n += 1}
@loop.add_timeout(0.2) { ... |
def test_2once
n = 0
@loop.add_once { n += 1 }
@loop.add_once(0.1) {n += 1}
@loop.add_timeout(0.2) { @loop.quit }
@loop.run
assert_equal 2, n
end
def test_once_recursive
n = 0
@loop.add_once {
n += 1
@loop.add_once {
n += 1
@loop.add_once(0.1) {
... | <|file_sep|>original/test/test_once.rb
@loop = nil
end
def test_1once
n = 0
@loop.add_once { n += 1 }
@loop.add_once(0.2) { @loop.quit }
@loop.run
assert_equal 1, n
end
def test_2once
n = 0
@loop.add_once { n += 1 }
@loop.add_once(0.1) {n += 1}
@loop.add_timeout(0.2) { ... | 84aa6f55194f0075018bb61698b20cea196da7ee | test/test_once.rb | test/test_once.rb | Ruby |
<|file_sep|>www/_data/external.yml.diff
original:
name: lotus-shrine
url: https://github.com/katafrakt/lotus-shrine
updated:
name: hanami-shrine
url: https://github.com/katafrakt/hanami-shrine
<|file_sep|>original/www/_data/external.yml
name: shrine-gridfs
url: https://github.com/jan... | name: shrine-gridfs
url: https://github.com/janko-m/shrine-gridfs
-
name: shrine-imgix
url: https://github.com/janko-m/shrine-imgix
-
name: shrine-sql
url: https://github.com/janko-m/shrine-sql
-
title: Projects
items:
-
name: Roda example app (official)
... | <|file_sep|>www/_data/external.yml.diff
original:
name: lotus-shrine
url: https://github.com/katafrakt/lotus-shrine
updated:
name: hanami-shrine
url: https://github.com/katafrakt/hanami-shrine
<|file_sep|>original/www/_data/external.yml
name: shrine-gridfs
url: https://github.com/jan... | 7c281fc1fb35ab8325705101a258fa506397d5ef | www/_data/external.yml | www/_data/external.yml | YAML |
<|file_sep|>original/.travis.yml
# https://github.com/atom/ci
language: generic
os:
- linux
- osx
script: curl --silent https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh
<|file_sep|>current/.travis.yml
# https://github.com/atom/ci
language: generic
os:
- linux
- osx
script: curl --sil... | # https://github.com/atom/ci
language: generic
os:
- linux
- osx
script: curl --show-error --silent https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh | <|file_sep|>original/.travis.yml
# https://github.com/atom/ci
language: generic
os:
- linux
- osx
script: curl --silent https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh
<|file_sep|>current/.travis.yml
# https://github.com/atom/ci
language: generic
os:
- linux
- osx
script: curl --sil... | c5d665f7144af670cdffd982a8b0fea5d34bd625 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
notifications:
email: false
language: python
python:
- '3.6'
cache: pip
before_install:
- pip install poetry codecov
install:
- poetry install
script:
- poetry run coverage run -m pytest -v
after_success:
- codecov
deploy:
provider: script
script: poetry config pypi-toke... | notifications:
email: false
language: python
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
cache: pip
before_install:
- pip install poetry codecov
install:
- poetry install
script:
- poetry run coverage run -m pytest -v
after_success:
- codecov
deploy:
provider: script
script: poetry config pypi-token.p... | <|file_sep|>original/.travis.yml
notifications:
email: false
language: python
python:
- '3.6'
cache: pip
before_install:
- pip install poetry codecov
install:
- poetry install
script:
- poetry run coverage run -m pytest -v
after_success:
- codecov
deploy:
provider: script
script: poetry config pypi-toke... | e69c72b832488a0795a8a0282d98e324d17de629 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/developing.html
---
layout: page
title: Developing
description: "An archive of posts."
comments: false
---
{% for post in site.categories.developing %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapt... | ---
layout: page
title: Developing
description: "An archive of posts."
comments: false
permalink: /developing/
---
{% for post in site.categories.developing %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{... | <|file_sep|>original/developing.html
---
layout: page
title: Developing
description: "An archive of posts."
comments: false
---
{% for post in site.categories.developing %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapt... | 598d5a081a9cfcf777a36db9e628688ee3cafd9a | developing.html | developing.html | HTML |
<|file_sep|>environments/hyperconverged-ceph.yaml.diff
original:
updated:
- OS::TripleO::Services::Sshd
<|file_sep|>original/environments/hyperconverged-ceph.yaml
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::Time... | - OS::TripleO::Services::Timezone
- OS::TripleO::Services::Ntp
- OS::TripleO::Services::Snmp
- OS::TripleO::Services::Sshd
- OS::TripleO::Services::NovaCompute
- OS::TripleO::Services::NovaLibvirt
- OS::TripleO::Services::Kernel
- OS::TripleO::Services::ComputeNeutronCorePlugin
- OS:... | <|file_sep|>environments/hyperconverged-ceph.yaml.diff
original:
updated:
- OS::TripleO::Services::Sshd
<|file_sep|>original/environments/hyperconverged-ceph.yaml
- OS::TripleO::Services::CACerts
- OS::TripleO::Services::CephClient
- OS::TripleO::Services::CephExternal
- OS::TripleO::Services::Time... | 1a719a037df585a45e57316a2a20d6282fe5ba8b | environments/hyperconverged-ceph.yaml | environments/hyperconverged-ceph.yaml | YAML |
<|file_sep|>original/functions/gdc.fish
<|file_sep|>current/functions/gdc.fish
<|file_sep|>updated/functions/gdc.fish | function gdc --description="git diff cached files"
set -l arguments
set -l cmd "command git diff --cached --name-only"
if test (count $argv) -gt 0
set arguments (gish find -c $cmd $argv)
end
command git diff --cached -- $arguments
end | <|file_sep|>original/functions/gdc.fish
<|file_sep|>current/functions/gdc.fish
<|file_sep|>updated/functions/gdc.fish
function gdc --description="git diff cached files"
set -l arguments
set -l cmd "command git diff --cached --name-only"
if test (count $argv) -gt 0
set arguments (gish find -c $cmd $argv)
... | fc79cc975f571eb20501578b4d36701de594648b | functions/gdc.fish | functions/gdc.fish | fish |
<|file_sep|>original/ansible-role.sh
<|file_sep|>current/ansible-role.sh
<|file_sep|>updated/ansible-role.sh | #!/bin/bash -evx
# set role path in ansible.cfg or ANSIBLE_ROLES_PATH environment variable
role=$1
shift 1
cat > /tmp/play.yml <<PLAYBOOK
---
- hosts: all
roles:
- $role
PLAYBOOK
ansible-playbook /tmp/play.yml -i $1, -u pi | <|file_sep|>original/ansible-role.sh
<|file_sep|>current/ansible-role.sh
<|file_sep|>updated/ansible-role.sh
#!/bin/bash -evx
# set role path in ansible.cfg or ANSIBLE_ROLES_PATH environment variable
role=$1
shift 1
cat > /tmp/play.yml <<PLAYBOOK
---
- hosts: all
roles:
- $role
PLAYBOOK
ansible-playbook /tmp/... | a79eb643a38eeaee07e0c0f518d16a4bb0091e35 | ansible-role.sh | ansible-role.sh | Shell |
<|file_sep|>original/.zuul.yaml
- project:
templates:
- horizon-non-primary-django-jobs
- check-requirements
- openstack-python3-wallaby-jobs
<|file_sep|>current/.zuul.yaml
- project:
templates:
- horizon-non-primary-django-jobs
- check-requirements
- openstack-python3-wallab... | - project:
templates:
- horizon-non-primary-django-jobs
- check-requirements
- openstack-python3-xena-jobs | <|file_sep|>original/.zuul.yaml
- project:
templates:
- horizon-non-primary-django-jobs
- check-requirements
- openstack-python3-wallaby-jobs
<|file_sep|>current/.zuul.yaml
- project:
templates:
- horizon-non-primary-django-jobs
- check-requirements
- openstack-python3-wallab... | 6b73bda39ec6e8e5f7f7963659d859c9f6b90268 | .zuul.yaml | .zuul.yaml | YAML |
<|file_sep|>original/appveyor.yml
matrix:
# 64-bit MSVC builds currently hang when trying to run the coverage crate
# lib test. Suppressed this configuration for now to allow for the overall
# build to succeed
# - TARGET: x86_64-pc-windows-msvc
# BITS: 64
- TARGET: i686-pc-windows-msvc
BITS: 32
- T... | matrix:
# 64-bit MSVC builds currently hang when trying to run the coverage crate
# lib test. Suppressed this configuration for now to allow for the overall
# build to succeed
# - TARGET: x86_64-pc-windows-msvc
# BITS: 64
- TARGET: i686-pc-windows-msvc
BITS: 32
- TARGET: i686-pc-windows-gnu
BIT... | <|file_sep|>original/appveyor.yml
matrix:
# 64-bit MSVC builds currently hang when trying to run the coverage crate
# lib test. Suppressed this configuration for now to allow for the overall
# build to succeed
# - TARGET: x86_64-pc-windows-msvc
# BITS: 64
- TARGET: i686-pc-windows-msvc
BITS: 32
- T... | 2a89ad0ad76f631167afd909050a627cd9e08f2c | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md.diff
original:
updated:
How to find your themeparks version:
Linux: npm list --depth=0 | grep themeparks
Windows CMD: npm list | find "themeparks"
PowerShell: npm list | sls themeparks
<|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md.diff
original:
A clear and concise ... | ---
**Park**
Which park/resort has this issue?
**Context**
- themeparks version used:
- Operating System:
How to find your themeparks version:
Linux: npm list --depth=0 | grep themeparks
Windows CMD: npm list | find "themeparks"
PowerShell: npm list | sls themeparks
**Describe the bug**
A clear and concise descript... | <|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md.diff
original:
updated:
How to find your themeparks version:
Linux: npm list --depth=0 | grep themeparks
Windows CMD: npm list | find "themeparks"
PowerShell: npm list | sls themeparks
<|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md.diff
original:
A clear and concise ... | 6baab6b579b935bc7385fc096ca634008c53525c | .github/ISSUE_TEMPLATE/bug_report.md | .github/ISSUE_TEMPLATE/bug_report.md | Markdown |
<|file_sep|>app/views/koi/application/_twitter_feed.html.erb.diff
original:
<% if Translation.find_by_key('site.twitter.query') %>
updated:
<% twitter_username = Translation.find_by_key('site.twitter.username').try(:value) %>
<% twitter_query = Translation.find_by_key('site.twitter.query').try(:value) %>
<% if twit... | <% end %>
, loading_text : "searching twitter..."
}).bind ('empty', function ()
{
$ (this).append ('No matching tweets found.<br>Please set your twitter search query <%= link_to "here", translations_path %>')
})
})
</script>
<% end %>
... | <|file_sep|>app/views/koi/application/_twitter_feed.html.erb.diff
original:
<% if Translation.find_by_key('site.twitter.query') %>
updated:
<% twitter_username = Translation.find_by_key('site.twitter.username').try(:value) %>
<% twitter_query = Translation.find_by_key('site.twitter.query').try(:value) %>
<% if twit... | fb7eb8daad816e29ddf769a76316a926c2493ae1 | app/views/koi/application/_twitter_feed.html.erb | app/views/koi/application/_twitter_feed.html.erb | HTML+ERB |
<|file_sep|>_config.yml.diff
original:
markdown: maruku
updated:
markdown: kramdown
<|file_sep|>original/_config.yml
plugins: ./_plugins
future: true
lsi: false
pygments: false
markdown: maruku
permalink: none
maruku:
use_tex: false
use_divs: false
png_engine: blahtex
png_d... | plugins: ./_plugins
future: true
lsi: false
pygments: false
markdown: kramdown
permalink: none
rdiscount:
extensions: []
kramdown:
auto_ids: true,
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
use_coderay: false
coderay:
coderay_wrap: div
coderay_line_number... | <|file_sep|>_config.yml.diff
original:
markdown: maruku
updated:
markdown: kramdown
<|file_sep|>original/_config.yml
plugins: ./_plugins
future: true
lsi: false
pygments: false
markdown: maruku
permalink: none
maruku:
use_tex: false
use_divs: false
png_engine: blahtex
png_d... | d32efdcfe4e4878051348167b8049d83ae412242 | _config.yml | _config.yml | YAML |
<|file_sep|>package.json.diff
original:
"version": "0.1.3",
updated:
"version": "0.1.4",
<|file_sep|>original/package.json
{
"name": "unix_experience_search",
"version": "0.1.3",
"main": "server.js",
"author": "Loïc Blot",
"license": "BSD-2-Clause",
"repository": "https://github.com/nerzhul/searchserver.git",
... | {
"name": "unix_experience_search",
"version": "0.1.4",
"main": "server.js",
"author": "Loïc Blot",
"license": "BSD-2-Clause",
"repository": "https://github.com/nerzhul/searchserver.git",
"engines" : {
"node" : ">=4.2"
},
"dependencies": {
"body-parser": ">=1.14",
"elasticsearch": ">=10.0",
"express": ... | <|file_sep|>package.json.diff
original:
"version": "0.1.3",
updated:
"version": "0.1.4",
<|file_sep|>original/package.json
{
"name": "unix_experience_search",
"version": "0.1.3",
"main": "server.js",
"author": "Loïc Blot",
"license": "BSD-2-Clause",
"repository": "https://github.com/nerzhul/searchserver.git",
... | 2ef641e4406fb5214def9b059e641606d3c0c432 | package.json | package.json | JSON |
<|file_sep|>original/ansible/playbooks/apt.yml
- hosts: all
name: APT
tasks:
- name: Refresh APT repo
# Only run "update_cache=yes" if the last one is more than 3600 seconds ago
apt: update_cache=yes cache_valid_time=3600
sudo: yes
<|file_sep|>current/ansible/playbooks/apt.yml
- hosts: all
... | - hosts: all
name: APT
tasks:
- name: Refresh APT repo
# Only run "update_cache=yes" if the last one is more than 3600 seconds ago
apt: update_cache=yes cache_valid_time=3600
sudo: yes
- name: Install VIM
apt: pkg={{ item }} state=installed update_cache=true install_recommends=yes... | <|file_sep|>original/ansible/playbooks/apt.yml
- hosts: all
name: APT
tasks:
- name: Refresh APT repo
# Only run "update_cache=yes" if the last one is more than 3600 seconds ago
apt: update_cache=yes cache_valid_time=3600
sudo: yes
<|file_sep|>current/ansible/playbooks/apt.yml
- hosts: all
... | d0f5ad06602a35cdf28e4f47e4dcf749801d02fe | ansible/playbooks/apt.yml | ansible/playbooks/apt.yml | YAML |
<|file_sep|>original/.travis.yml
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
- 'if [ $TEST_SUITE = "kitchen... | directories:
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
- 'if [ $TEST_SUITE = "kitchensink" ]; then task... | <|file_sep|>original/.travis.yml
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
- 'if [ $TEST_SUITE = "kitchen... | 1c5c6654d7767ce151ccb0e04d07512c01116131 | .travis.yml | .travis.yml | YAML |
<|file_sep|>css/main.css.diff
original:
body {
updated:
html {
<|file_sep|>original/css/main.css
/* Tumblr Boilerplate by Joe Joiner | MIT License | git.io/yvzrLg */
body {
font-size: 1em;
line-height: 1.5;
color: {color:Body Text};
}
audio,
img,
video {
vertical-align: middle;
}
blockquote {
quo... | /* Tumblr Boilerplate by Joe Joiner | MIT License | git.io/yvzrLg */
html {
font-size: 1em;
line-height: 1.5;
}
body {
color: {color:Body Text};
}
audio,
img,
video {
vertical-align: middle;
}
blockquote {
quotes: '\201C' '\201D' '\2018' '\2019';
}
| <|file_sep|>css/main.css.diff
original:
body {
updated:
html {
<|file_sep|>original/css/main.css
/* Tumblr Boilerplate by Joe Joiner | MIT License | git.io/yvzrLg */
body {
font-size: 1em;
line-height: 1.5;
color: {color:Body Text};
}
audio,
img,
video {
vertical-align: middle;
}
blockquote {
quo... | c511224791263f814d34b378eec5ed920e6cb8c6 | css/main.css | css/main.css | CSS |
<|file_sep|>backend/app/assets/javascripts/spree/backend/number_field_updater.coffee.diff
original:
toggleButtonVisibility('trash', id, show)
updated:
toggleButtonVisibility('remove', id, show)
<|file_sep|>backend/app/assets/javascripts/spree/backend/number_field_updater.coffee.diff
original:
toggleButtonVi... | toggleButtonVisibility('edit', id, show)
toggleButtonVisibility('remove', id, show)
cssDisplay = if show then 'block' else 'none'
$("#number-update-#{id} span").css('display', cssDisplay)
toggleForm = (id, show) ->
toggleButtonVisibility('cancel', id, show)
toggleButtonVisibility('save', id, ... | <|file_sep|>backend/app/assets/javascripts/spree/backend/number_field_updater.coffee.diff
original:
toggleButtonVisibility('trash', id, show)
updated:
toggleButtonVisibility('remove', id, show)
<|file_sep|>backend/app/assets/javascripts/spree/backend/number_field_updater.coffee.diff
original:
toggleButtonVi... | 28f713e6983fc690d6d83ae90669578d6e926ce7 | backend/app/assets/javascripts/spree/backend/number_field_updater.coffee | backend/app/assets/javascripts/spree/backend/number_field_updater.coffee | CoffeeScript |
<|file_sep|>hooks/post-asdf.sh.diff
original:
asdf plugin add java
updated:
asdf plugin add java || true
<|file_sep|>hooks/post-asdf.sh.diff
original:
asdf install java adoptopenjdk-8.0.265+1
updated:
asdf install java adoptopenjdk-8.0.265+1 || true
<|file_sep|>hooks/post-asdf.sh.diff
original:
asdf install java adopto... |
# Install ASDF Java plugin
asdf plugin add java || true
# Install Java 8
asdf install java adoptopenjdk-8.0.265+1 || true
# Install Java 11 and set it globally as default
asdf install java adoptopenjdk-11.0.8+10 || true
asdf global java adoptopenjdk-11.0.8+10 || true
# Install Java 15
asdf install java adoptopenjdk... | <|file_sep|>hooks/post-asdf.sh.diff
original:
asdf plugin add java
updated:
asdf plugin add java || true
<|file_sep|>hooks/post-asdf.sh.diff
original:
asdf install java adoptopenjdk-8.0.265+1
updated:
asdf install java adoptopenjdk-8.0.265+1 || true
<|file_sep|>hooks/post-asdf.sh.diff
original:
asdf install java adopto... | 9092342b7098d03c441972104b372c4806e96dfb | hooks/post-asdf.sh | hooks/post-asdf.sh | Shell |
<|file_sep|>original/framework/form/renderers/fieldSetRenderer.class.php
<?php
class FieldSetRenderer extends Renderer
{
use RenderableFields;
public function render()
{
return $this->getParam("tag") ?
$this->tag(
"fieldset",
$this->renderLegend() .
$this->renderErrors($this) .
$t... | <?php
class FieldSetRenderer extends Renderer
{
use RenderableFields;
public function __construct($field, $parent = null, $params = array())
{
parent::__construct($field, $parent, $params);
$this->setParam("row", false);
}
public function render()
{
return $this->getParam("tag") ?
... | <|file_sep|>original/framework/form/renderers/fieldSetRenderer.class.php
<?php
class FieldSetRenderer extends Renderer
{
use RenderableFields;
public function render()
{
return $this->getParam("tag") ?
$this->tag(
"fieldset",
$this->renderLegend() .
$this->renderErrors($this) .
$t... | 34682efb7f151a40d0d8e7b70fbbd67a068d16f0 | framework/form/renderers/fieldSetRenderer.class.php | framework/form/renderers/fieldSetRenderer.class.php | PHP |
<|file_sep|>src/Database/CachableQueryServiceProvider.php.diff
original:
updated:
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
<|file_sep|>original/src/Database/CachableQueryServiceProvider.php
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Query\Builder as QueryBuilder;
class Cachabl... | public function register()
{
$app = $this->app;
QueryBuilder::macro('remember', function ($duration, $key = null) use ($app) {
return (new CacheDecorator($this, $app->make('cache.store')))->remember($duration, $key);
});
QueryBuilder::macro('rememberForever', functi... | <|file_sep|>src/Database/CachableQueryServiceProvider.php.diff
original:
updated:
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
<|file_sep|>original/src/Database/CachableQueryServiceProvider.php
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Query\Builder as QueryBuilder;
class Cachabl... | 9ad66f43a4b1a4e35827fdaccdaeb67d430fea97 | src/Database/CachableQueryServiceProvider.php | src/Database/CachableQueryServiceProvider.php | PHP |
<|file_sep|>original/app/controllers/ajo_register/registrations_controller.rb
super
end
def create
if verify_recaptcha
super
else
build_resource
clean_up_passwords(resource)
resource.errors.add(:recaptcha, 'Incorrect. Please try again!')
render :new
end
end
def ed... | else
build_resource
clean_up_passwords(resource)
resource.errors.add(:recaptcha, 'Incorrect. Please try again!')
render :new
end
end
def edit
super
end
def thank_you
end
protected
def after_update_path_for(resource)
Rails.logger.info "CALLED"
user_path(resour... | <|file_sep|>original/app/controllers/ajo_register/registrations_controller.rb
super
end
def create
if verify_recaptcha
super
else
build_resource
clean_up_passwords(resource)
resource.errors.add(:recaptcha, 'Incorrect. Please try again!')
render :new
end
end
def ed... | 5b307c2294da0ca09cfe46e7827550e57902cd8e | app/controllers/ajo_register/registrations_controller.rb | app/controllers/ajo_register/registrations_controller.rb | Ruby |
<|file_sep|>original/class_annotation.rb
<|file_sep|>current/class_annotation.rb
<|file_sep|>updated/class_annotation.rb | #
# Let's assume we have a BookSearch class. The initialize method takes a Hash of
# parameters.
class BookSearch
def initialize(hash)
@author_name = hash[:author_name]
@isbn = hash[:isbn]
end
end
#
# Now, let's assume we want the initialize method to dynamically handle any list
# of key-values.
class Book... | <|file_sep|>original/class_annotation.rb
<|file_sep|>current/class_annotation.rb
<|file_sep|>updated/class_annotation.rb
#
# Let's assume we have a BookSearch class. The initialize method takes a Hash of
# parameters.
class BookSearch
def initialize(hash)
@author_name = hash[:author_name]
@isbn = hash[:isbn... | 055858ae7aebf18a9e7f5effc1cd38927a4f19c6 | class_annotation.rb | class_annotation.rb | Ruby |
<|file_sep|>tests/commands/test_test.py.diff
original:
from platformio.commands.test import cli as cli_test
updated:
import pytest
from platformio import util
<|file_sep|>tests/commands/test_test.py.diff
original:
def test_local_env(clirunner, validate_cliresult):
result = clirunner.invoke(
cli_test,
... | # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fro... | <|file_sep|>tests/commands/test_test.py.diff
original:
from platformio.commands.test import cli as cli_test
updated:
import pytest
from platformio import util
<|file_sep|>tests/commands/test_test.py.diff
original:
def test_local_env(clirunner, validate_cliresult):
result = clirunner.invoke(
cli_test,
... | 9b2999d64b02cc65dc62434a29d0fe841b3d1886 | tests/commands/test_test.py | tests/commands/test_test.py | Python |
<|file_sep|>original/requirements/production.txt
# Pro-tip: Try not to put anything here. Avoid dependencies in
# production that aren't in development.
-r base.txt
# WSGI Handler
# ------------------------------------------------
gevent==1.1.1
gunicorn==19.6.0
# Static and Media Storage
# -------------------------... | # Pro-tip: Try not to put anything here. Avoid dependencies in
# production that aren't in development.
-r base.txt
# WSGI Handler
# ------------------------------------------------
gevent==1.2.0
gunicorn==19.6.0
# Static and Media Storage
# ------------------------------------------------
boto==2.45.0
django-stora... | <|file_sep|>original/requirements/production.txt
# Pro-tip: Try not to put anything here. Avoid dependencies in
# production that aren't in development.
-r base.txt
# WSGI Handler
# ------------------------------------------------
gevent==1.1.1
gunicorn==19.6.0
# Static and Media Storage
# -------------------------... | ba2ed4517e2ec9c70cdb282ac45d6aa9f9ec87bd | requirements/production.txt | requirements/production.txt | Text |
<|file_sep|>parsl/tests/configs/local_threads_globus.py.diff
original:
storage_access=GlobusScheme(
updated:
storage_access=[GlobusScheme(
<|file_sep|>original/parsl/tests/configs/local_threads_globus.py
# If you are a developer running tests, make sure to update parsl/tests/configs/user_opts.p... |
# If you are a developer running tests, make sure to update parsl/tests/configs/user_opts.py
# If you are a user copying-and-pasting this as an example, make sure to either
# 1) create a local `user_opts.py`, or
# 2) delete the user_opts import below and replace all appearances of `user_opts` with the lite... | <|file_sep|>parsl/tests/configs/local_threads_globus.py.diff
original:
storage_access=GlobusScheme(
updated:
storage_access=[GlobusScheme(
<|file_sep|>original/parsl/tests/configs/local_threads_globus.py
# If you are a developer running tests, make sure to update parsl/tests/configs/user_opts.p... | d2f3ff32e6d0a8c03a76f93669bb1f37d28ae124 | parsl/tests/configs/local_threads_globus.py | parsl/tests/configs/local_threads_globus.py | Python |
<|file_sep|>app/views/projects/_list.html.haml.diff
original:
%th.new-task= t_title(:new, Activity)
updated:
<|file_sep|>original/app/views/projects/_list.html.haml
%table.list{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"}
%thead
%tr
- @attributes.each do |field|
%... | - @attributes ||= collection.first.attribute_names - ['id', 'created_at', 'updated_at']
%table.list{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"}
%thead
%tr
- @attributes.each do |field|
%th= t_attr field, collection.first.class
%th.action-links
- @attributes = @... | <|file_sep|>app/views/projects/_list.html.haml.diff
original:
%th.new-task= t_title(:new, Activity)
updated:
<|file_sep|>original/app/views/projects/_list.html.haml
%table.list{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"}
%thead
%tr
- @attributes.each do |field|
%... | 91a7320b13109655fe9a0dac63ff6db603601f5a | app/views/projects/_list.html.haml | app/views/projects/_list.html.haml | Haml |
<|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==1.9
PyYAML==3.12
pytest==3.1.3
pytz==2017.2
coveralls==1.1
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watch... | pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==1.9
PyYAML==3.12
pytest==3.1.3
pytz==2017.2
coveralls==1.2.0 | <|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==1.9
PyYAML==3.12
pytest==3.1.3
pytz==2017.2
coveralls==1.1
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watch... | 6f5ad93e70c5c0c18889df2485c9a2975f783511 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/lib/Headers/cpuid.h
/*===---- stddef.h - Basic type definitions --------------------------------===
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrict... | /*===---- cpuid.h - Basic type definitions ---------------------------------===
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... | <|file_sep|>original/lib/Headers/cpuid.h
/*===---- stddef.h - Basic type definitions --------------------------------===
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrict... | 7f16d7067e11d2684b644c8af7c21cdc77b32723 | lib/Headers/cpuid.h | lib/Headers/cpuid.h | C |
<|file_sep|>original/_includes/workshop_footer.html
{% comment %}
Footer for a standard workshop.
{% endcomment %}
<footer>
<div class="row">
<div class="col-md-6" align="left">
<h4>
Copyright © 2016
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
... | {% comment %}
Footer for a standard workshop.
{% endcomment %}
<footer>
<div class="row">
<div class="col-md-6" align="left">
<h4>
Copyright © 2016–{{ 'now' | date: "%Y" }}
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
{% elsif site.carpentry == ... | <|file_sep|>original/_includes/workshop_footer.html
{% comment %}
Footer for a standard workshop.
{% endcomment %}
<footer>
<div class="row">
<div class="col-md-6" align="left">
<h4>
Copyright © 2016
{% if site.carpentry == "swc" %}
<a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
... | accf26a0c7a258e08057846778979b13e2d3220a | _includes/workshop_footer.html | _includes/workshop_footer.html | HTML |
<|file_sep|>original/lisp/init-locales.el
"Return whether locale string V relates to a UTF-8 locale."
(and v (string-match "UTF-8" v)))
(defun locale-is-utf8-p ()
"Return t iff the \"locale\" command or environment variables prefer UTF-8."
(or (sanityinc/utf8-locale-p (and (executable-find "locale") (shell-com... | (defun sanityinc/utf8-locale-p (v)
"Return whether locale string V relates to a UTF-8 locale."
(and v (string-match "UTF-8" v)))
(defun locale-is-utf8-p ()
"Return t iff the \"locale\" command or environment variables prefer UTF-8."
(or (sanityinc/utf8-locale-p (and (executable-find "locale") (shell-command-to... | <|file_sep|>original/lisp/init-locales.el
"Return whether locale string V relates to a UTF-8 locale."
(and v (string-match "UTF-8" v)))
(defun locale-is-utf8-p ()
"Return t iff the \"locale\" command or environment variables prefer UTF-8."
(or (sanityinc/utf8-locale-p (and (executable-find "locale") (shell-com... | 1550ec2cd5d30d42889d11ebd0a897392e4bd3b1 | lisp/init-locales.el | lisp/init-locales.el | Emacs Lisp |
<|file_sep|>.travis.yml.diff
original:
- 7.0
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- 7.2
- 7.3
<|file_sep|>.travis.yml.diff
original:
- php: 7.0
updated:
<|file_sep|>original/.travis.yml
php:
- 5.6
- 7.0
- 7.1
matrix:
allow_failures:
- php: 7.0
- php: 7.1
env:
global... |
php:
- 5.6
- 7.1
- 7.2
- 7.3
matrix:
allow_failures:
- php: 7.1
- php: 7.2
- php: 7.3
env:
global:
- SYMFONY_ENV=test
cache:
directories:
- ~/.composer
| <|file_sep|>.travis.yml.diff
original:
- 7.0
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- 7.2
- 7.3
<|file_sep|>.travis.yml.diff
original:
- php: 7.0
updated:
<|file_sep|>original/.travis.yml
php:
- 5.6
- 7.0
- 7.1
matrix:
allow_failures:
- php: 7.0
- php: 7.1
env:
global... | 368696c5a871d35c10d0d3d2d45cd5b70ec40c78 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/composer.json
"email": "markredeman@gmail.com"
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "~5.0 || ~4.0",
"php-tmdb/api": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"symfony/event-dispatcher": "~2.... | "email": "markredeman@gmail.com"
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "~5.0 || ~4.0",
"php-tmdb/api": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"symfony/event-dispatcher": "~2.8|~3.0",
"illuminate/events... | <|file_sep|>original/composer.json
"email": "markredeman@gmail.com"
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "~5.0 || ~4.0",
"php-tmdb/api": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"symfony/event-dispatcher": "~2.... | bfd3662f2f92731fdecb177fb794a7d29762ae1f | composer.json | composer.json | JSON |
<|file_sep|>startup.sh.diff
original:
if [ -z "$URL" ]; then
updated:
if [ -z "${URL}" ]; then
<|file_sep|>startup.sh.diff
original:
if [ -z "$INTERVAL_TIME" ]; then
updated:
if [ -z "${INTERVAL_TIME}" ]; then
<|file_sep|>original/startup.sh
#!/bin/sh
# Check if URL is set
if [ -z "$URL" ]; then
exit 1
fi
# Check i... | #!/bin/sh
# Check if URL is set
if [ -z "${URL}" ]; then
exit 1
fi
# Check if INTERVAL_TIME is set
if [ -z "${INTERVAL_TIME}" ]; then
INTERVAL_TIME=300
fi
# Infinite loop
while :
do
curl ${CURL_PARAM} ${URL}
sleep ${INTERVAL_TIME}
done | <|file_sep|>startup.sh.diff
original:
if [ -z "$URL" ]; then
updated:
if [ -z "${URL}" ]; then
<|file_sep|>startup.sh.diff
original:
if [ -z "$INTERVAL_TIME" ]; then
updated:
if [ -z "${INTERVAL_TIME}" ]; then
<|file_sep|>original/startup.sh
#!/bin/sh
# Check if URL is set
if [ -z "$URL" ]; then
exit 1
fi
# Check i... | f4e9522c98629ef0718361b304ff63497cff31e1 | startup.sh | startup.sh | Shell |
<|file_sep|>Models/Post.php.diff
original:
updated:
namespace Volcano\Models;
use Volcano\Volcano;
<|file_sep|>Models/Post.php.diff
original:
updated:
public function meta(string $type): string;
<|file_sep|>Models/Post.php.diff
original:
* Class Post
updated:
* Class Post 📧
<|file_sep|>Models/Post.php.diff
o... | /**
* Generate a post link.
* Removes the POSTS directory path and file extension.
* @return string
*/
public function link(): string
{
$noDirectoryName = explode('/', str_replace($this->getPath('posts'), '', $this->filepath));
return str_replace('.md', '', str_replace('\... | <|file_sep|>Models/Post.php.diff
original:
updated:
namespace Volcano\Models;
use Volcano\Volcano;
<|file_sep|>Models/Post.php.diff
original:
updated:
public function meta(string $type): string;
<|file_sep|>Models/Post.php.diff
original:
* Class Post
updated:
* Class Post 📧
<|file_sep|>Models/Post.php.diff
o... | d14194aacd63b366d2c40ebee447effa8d2e50d9 | Models/Post.php | Models/Post.php | PHP |
<|file_sep|>packages/core/src/compileInBrowser.ts.diff
original:
updated:
var Babel = window["Babel"];
delete window["__core-js_shared__"]; // Added by babel standalone, but breaks some lodash tests
<|file_sep|>original/packages/core/src/compileInBrowser.ts
import babelPlugin from "./babelPlugin";
import handleEvalSc... | import babelPlugin from "./babelPlugin";
import handleEvalScript from "./handleEvalScript";
import getBabelOptions, { getAndResetLocs } from "./getBabelOptions";
var Babel = window["Babel"];
delete window["__core-js_shared__"]; // Added by babel standalone, but breaks some lodash tests
window["__fromJSEval"] = functi... | <|file_sep|>packages/core/src/compileInBrowser.ts.diff
original:
updated:
var Babel = window["Babel"];
delete window["__core-js_shared__"]; // Added by babel standalone, but breaks some lodash tests
<|file_sep|>original/packages/core/src/compileInBrowser.ts
import babelPlugin from "./babelPlugin";
import handleEvalSc... | d398bbdcb0cac623a4a0a84603d719aade418470 | packages/core/src/compileInBrowser.ts | packages/core/src/compileInBrowser.ts | TypeScript |
<|file_sep|>renderer-process/native-ui/ex-links-file-manager/file-manager.js.diff
original:
updated:
var os = require('os');
<|file_sep|>original/renderer-process/native-ui/ex-links-file-manager/file-manager.js
var fileMangerBtn = document.getElementById('open-file-manager');
var shell = require('electron').shell;
fi... | var fileMangerBtn = document.getElementById('open-file-manager');
var shell = require('electron').shell;
var os = require('os');
fileMangerBtn.addEventListener('click', function (event) {
shell.showItemInFolder(os.homedir());
}); | <|file_sep|>renderer-process/native-ui/ex-links-file-manager/file-manager.js.diff
original:
updated:
var os = require('os');
<|file_sep|>original/renderer-process/native-ui/ex-links-file-manager/file-manager.js
var fileMangerBtn = document.getElementById('open-file-manager');
var shell = require('electron').shell;
fi... | 199c5d38b28adf44f5216e5aeb77b61e57ce7a2e | renderer-process/native-ui/ex-links-file-manager/file-manager.js | renderer-process/native-ui/ex-links-file-manager/file-manager.js | JavaScript |
<|file_sep|>viewer_examples/viewers/collection_viewer.py.diff
original:
updated:
from skimage.transform import build_gaussian_pyramid
<|file_sep|>original/viewer_examples/viewers/collection_viewer.py
You can scroll through images with the slider, or you can interact with the
viewer using your keyboard:
left/right ar... |
left/right arrows
Previous/next image in collection.
number keys, 0--9
0% to 90% of collection. For example, "5" goes to the image in the
middle (i.e. 50%) of the collection.
home/end keys
First/last image in collection.
"""
import numpy as np
from skimage import data
from skimage.viewer import Collec... | <|file_sep|>viewer_examples/viewers/collection_viewer.py.diff
original:
updated:
from skimage.transform import build_gaussian_pyramid
<|file_sep|>original/viewer_examples/viewers/collection_viewer.py
You can scroll through images with the slider, or you can interact with the
viewer using your keyboard:
left/right ar... | 43afda1fa0ae2d0011d6b87b5c05e3eb1fe13a21 | viewer_examples/viewers/collection_viewer.py | viewer_examples/viewers/collection_viewer.py | Python |
<|file_sep|>original/lib/rom-session.rb
require 'backports'
require 'adamantium'
require 'equalizer'
require 'abstract_type'
require 'concord'
# Namespace module
module ROM
# Session namespace
class Session
# Error raised on illegal state
class StateError < RuntimeError; end
# Error raised when sess... | require 'backports'
require 'adamantium'
require 'equalizer'
require 'abstract_type'
require 'concord'
require 'rom-relation'
require 'rom-mapper'
# Namespace module
module ROM
# Session namespace
class Session
# Error raised on illegal state
class StateError < RuntimeError; end
# Error raised when... | <|file_sep|>original/lib/rom-session.rb
require 'backports'
require 'adamantium'
require 'equalizer'
require 'abstract_type'
require 'concord'
# Namespace module
module ROM
# Session namespace
class Session
# Error raised on illegal state
class StateError < RuntimeError; end
# Error raised when sess... | 3856583eaf038e2e9bca67669daa9b0b7617b6c9 | lib/rom-session.rb | lib/rom-session.rb | Ruby |
<|file_sep|>original/setup.py
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'To... | 'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP ::... | <|file_sep|>original/setup.py
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'To... | 055d9e2b74e997d6f744c15fe1b1e19bcd3203d4 | setup.py | setup.py | Python |
<|file_sep|>original/README.md
make-wiring
===========
A copy of Arduino's wiring library with makefiles for easy building without the Arduino IDE
<|file_sep|>current/README.md
make-wiring
===========
A copy of Arduino's wiring library with makefiles for easy building without the Arduino IDE
<|file_sep|>updated/READM... | make-wiring
===========
A copy of Arduino's wiring library with makefiles for easy building without the Arduino IDE
## Building
Go into the arduino folder to build the core Wiring library. I have everything configured for the popular atmega328p. You may need to adjust parameters in the makefile for different MCUs.
... | <|file_sep|>original/README.md
make-wiring
===========
A copy of Arduino's wiring library with makefiles for easy building without the Arduino IDE
<|file_sep|>current/README.md
make-wiring
===========
A copy of Arduino's wiring library with makefiles for easy building without the Arduino IDE
<|file_sep|>updated/READM... | ce8f2e934ded102657e8e550e5d4fc08a8834591 | README.md | README.md | Markdown |
<|file_sep|>original/index.js
var through = require('through2'),
gutil = require('gulp-util'),
Rollup = require('rollup');
var PluginError = gutil.PluginError;
module.exports = function(options) {
var stream = through.obj(function(file, encoding, callback) {
if (file.isNull()) {
return callback();
... |
var through = require('through2'),
gutil = require('gulp-util'),
Rollup = require('rollup');
var PluginError = gutil.PluginError;
module.exports = function(options) {
if (options.rollup) {
Rollup = options.rollup;
delete options.rollup;
}
var stream = through.obj(function(file, encoding, call... | <|file_sep|>original/index.js
var through = require('through2'),
gutil = require('gulp-util'),
Rollup = require('rollup');
var PluginError = gutil.PluginError;
module.exports = function(options) {
var stream = through.obj(function(file, encoding, callback) {
if (file.isNull()) {
return callback();
... | 53c5a30ec3edc38e89f46610fad85399841d914f | index.js | index.js | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.