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|>original/python/day11.py
<|file_sep|>current/python/day11.py
<|file_sep|>updated/python/day11.py | #!/usr/local/bin/python3
puzzle_input = 'vzbxkghb'
def validate_password(password):
pass
def test_validate_password():
assert not validate_password('hijklmmn')
assert not validate_password('abbceffg')
assert not validate_password('abbcegjk') | <|file_sep|>original/python/day11.py
<|file_sep|>current/python/day11.py
<|file_sep|>updated/python/day11.py
#!/usr/local/bin/python3
puzzle_input = 'vzbxkghb'
def validate_password(password):
pass
def test_validate_password():
assert not validate_password('hijklmmn')
assert not validate_password('a... | 7068258e692872b2fb7bbdade55dadaecff2ffb5 | python/day11.py | python/day11.py | Python |
<|file_sep|>salt/pwm-server/init.sls.diff
original:
pwm-server-virtualenv:
updated:
pwm-server:
<|file_sep|>salt/pwm-server/init.sls.diff
original:
pwm-server:
updated:
<|file_sep|>salt/pwm-server/init.sls.diff
original:
- virtualenv: pwm-server-virtualenv
updated:
- virtualenv: pwm-server
<|f... | - upgrade: True
- bin_env: /srv/pwm-server/venv
- require:
- virtualenv: pwm-server
- pkg: python-dev
file.managed:
- name: /srv/pwm-server/config.py
- source: salt://pwm-server/config.py
service.running:
- watch:
- pip: pwm-s... | <|file_sep|>salt/pwm-server/init.sls.diff
original:
pwm-server-virtualenv:
updated:
pwm-server:
<|file_sep|>salt/pwm-server/init.sls.diff
original:
pwm-server:
updated:
<|file_sep|>salt/pwm-server/init.sls.diff
original:
- virtualenv: pwm-server-virtualenv
updated:
- virtualenv: pwm-server
<|f... | d5336283f76581c4cba71247a88c8adea4fb6077 | salt/pwm-server/init.sls | salt/pwm-server/init.sls | SaltStack |
<|file_sep|>original/_config.yml
#url: "http://yourdomain.com" # the base hostname & protocol for your site
#twitter_username: jekyllrb
#github_username: jekyll
# Build settings
markdown: kramdown
# Permalinks
#
# Use of `relative_permalinks` ensures post links from the index work properly.
permalink: none
... | #url: "http://yourdomain.com" # the base hostname & protocol for your site
#twitter_username: jekyllrb
#github_username: jekyll
# Build settings
markdown: kramdown
# Permalinks
#
# Use of `relative_permalinks` ensures post links from the index work properly.
permalink: none
#relative_permalinks: true
# Set... | <|file_sep|>original/_config.yml
#url: "http://yourdomain.com" # the base hostname & protocol for your site
#twitter_username: jekyllrb
#github_username: jekyll
# Build settings
markdown: kramdown
# Permalinks
#
# Use of `relative_permalinks` ensures post links from the index work properly.
permalink: none
... | 3f16855f1ae89b1fbcbbe0c1693e700c4f2d70e5 | _config.yml | _config.yml | YAML |
<|file_sep|>original/common/csv_test.go
Fields: []string{"f1", "f2"},
Rows: [][]string{
[]string{"11", "12"},
[]string{"21", "22"},
},
Output: "f1,f2\n11,12\n21,22\n",
},
io{
Fields: []string{"f1", "f2"},
Rows: [][]string{
[]string{"11"},
[]string{"21", "22", "23"},
},
Output... | Output: "f1,f2\n11,12\n21,22\n",
},
io{
Fields: []string{"f1", "f2"},
Rows: [][]string{
[]string{"11"},
[]string{"21", "22", "23"},
},
Output: "f1,f2\n11\n21,22,23\n",
},
io{
Fields: []string{"f\n\n1", "f\n2"},
Rows: [][]string{
[]string{"11"},
[]string{"2\r\n1", "2\r\n2", "... | <|file_sep|>original/common/csv_test.go
Fields: []string{"f1", "f2"},
Rows: [][]string{
[]string{"11", "12"},
[]string{"21", "22"},
},
Output: "f1,f2\n11,12\n21,22\n",
},
io{
Fields: []string{"f1", "f2"},
Rows: [][]string{
[]string{"11"},
[]string{"21", "22", "23"},
},
Output... | c0f9835ae3e48ee703395248fdfd118f8fd66304 | common/csv_test.go | common/csv_test.go | Go |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.11"
before_script:
- npm install -g grunt-cli
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.11"
before_script:
- npm install -g grunt-cli
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
before_script:
- npm install -g grunt-cli | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.11"
before_script:
- npm install -g grunt-cli
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.11"
before_script:
- npm install -g grunt-cli
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "0.10"... | 7da768174656ab3b9d56b79abb7b7f5b6eb560ac | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
- env: PIP_ANSIBLE_VERSION='>=2.0'
fast_finish: true
env:
global:
- TEST_ANSIBLE_HOSTNAME: localhost
TEST_ANSIBLE_CONNECTION: local
matrix:
- PIP_ANSIBLE_VERSION: "'>=1.9,<2.0'"
- PIP_ANSIBLE_VERSION: "'>=2.0'"
install:
- pip install --upgrade pip
-... | - env: PIP_ANSIBLE_VERSION='>=2.0'
fast_finish: true
env:
global:
- TEST_ANSIBLE_HOSTNAME: localhost
TEST_ANSIBLE_CONNECTION: local
matrix:
- PIP_ANSIBLE_VERSION: "'>=1.9,<2.0'"
- PIP_ANSIBLE_VERSION: "'>=2.0'"
install:
- pip install --upgrade pip
- pip install -r requirements.txt
... | <|file_sep|>original/.travis.yml
- env: PIP_ANSIBLE_VERSION='>=2.0'
fast_finish: true
env:
global:
- TEST_ANSIBLE_HOSTNAME: localhost
TEST_ANSIBLE_CONNECTION: local
matrix:
- PIP_ANSIBLE_VERSION: "'>=1.9,<2.0'"
- PIP_ANSIBLE_VERSION: "'>=2.0'"
install:
- pip install --upgrade pip
-... | b965286df03ef15fee4bee239188d914074a6d3a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2
env:
global:
- secure: V8yG0G03Dsabc5mK4ubx3wSd0FyW0tazC/4DsJrvQTXSNytab1tXpwQbaN1XUyWTGnOj58mSZAPk/36n/5sGEwq3HIYCvPbJrqrCRODTDzmYy5uA1N+/Mo2uA55lPBjCbfcEvO1oy9tQIcH3I3R29nqiTsIRXax8XoFXHlJdP7I=
- secure: MghViLairF+zNTbCoH/ibECjud2Wf+6K3qKDIbo1dkxqzU4xI... | language: ruby
rvm:
- 2.2.2
env:
global:
- secure: V8yG0G03Dsabc5mK4ubx3wSd0FyW0tazC/4DsJrvQTXSNytab1tXpwQbaN1XUyWTGnOj58mSZAPk/36n/5sGEwq3HIYCvPbJrqrCRODTDzmYy5uA1N+/Mo2uA55lPBjCbfcEvO1oy9tQIcH3I3R29nqiTsIRXax8XoFXHlJdP7I=
- secure: MghViLairF+zNTbCoH/ibECjud2Wf+6K3qKDIbo1dkxqzU4xIILDtODUmlLTQh0Da/IbAmTIc0XV5Ggn... | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2
env:
global:
- secure: V8yG0G03Dsabc5mK4ubx3wSd0FyW0tazC/4DsJrvQTXSNytab1tXpwQbaN1XUyWTGnOj58mSZAPk/36n/5sGEwq3HIYCvPbJrqrCRODTDzmYy5uA1N+/Mo2uA55lPBjCbfcEvO1oy9tQIcH3I3R29nqiTsIRXax8XoFXHlJdP7I=
- secure: MghViLairF+zNTbCoH/ibECjud2Wf+6K3qKDIbo1dkxqzU4xI... | 29146ac67c4d355a00769df6bf6d20437cceda0c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ansible/roles/docker-compose/tasks/main.yml
- name: Executable is present
get_url:
url: https://github.com/docker/compose/releases/download/1.7.1/docker-compose-Linux-x86_64
checksum: "sha256:3166bb74bc648e68c3154bc704fddf6bccf59f03a0c90fc48aefac034535e4ae"
dest: /usr/local/bin/docker... | - name: docker-compose is present
become: yes
pip:
name: docker-compose
version: 1.9
state: present | <|file_sep|>original/ansible/roles/docker-compose/tasks/main.yml
- name: Executable is present
get_url:
url: https://github.com/docker/compose/releases/download/1.7.1/docker-compose-Linux-x86_64
checksum: "sha256:3166bb74bc648e68c3154bc704fddf6bccf59f03a0c90fc48aefac034535e4ae"
dest: /usr/local/bin/docker... | 162ad00d8581e338cc081c4aa583be75a55029d7 | ansible/roles/docker-compose/tasks/main.yml | ansible/roles/docker-compose/tasks/main.yml | YAML |
<|file_sep|>original/chapter08/wb_chapter08_ex03.pl
<|file_sep|>current/chapter08/wb_chapter08_ex03.pl
<|file_sep|>updated/chapter08/wb_chapter08_ex03.pl | #!C:\strawberry\perl\bin\perl.exe
# match non-empty string that doesn't have 'a', 'b' or 'x' at the beginning/end
use 5.020;
use warnings;
while (<>) { # take one input line at a time
chomp;
# if (/\A[^abx]/) { # at beginning
if (/[^abx]\z/) { # at end
print "Matched: |$`<$&>$'|\n"; # t... | <|file_sep|>original/chapter08/wb_chapter08_ex03.pl
<|file_sep|>current/chapter08/wb_chapter08_ex03.pl
<|file_sep|>updated/chapter08/wb_chapter08_ex03.pl
#!C:\strawberry\perl\bin\perl.exe
# match non-empty string that doesn't have 'a', 'b' or 'x' at the beginning/end
use 5.020;
use warnings;
while (<>) { # take... | 0712ae846ddcce1ce4dea0116bf87850a019134d | chapter08/wb_chapter08_ex03.pl | chapter08/wb_chapter08_ex03.pl | Perl |
<|file_sep|>original/zsh/config.zsh
setopt NO_BG_NICE # don't nice background tasks
setopt NO_HUP
setopt NO_LIST_BEEP
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
setopt HIST_VERIFY
setopt SHARE_HISTORY # share history between sessions ???
setopt ... | setopt NO_HUP
setopt NO_LIST_BEEP
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
setopt HIST_VERIFY
setopt SHARE_HISTORY # share history between sessions ???
setopt EXTENDED_HISTORY # add timestamps to history
setopt PROMPT_SUBST
setopt CORRECT
seto... | <|file_sep|>original/zsh/config.zsh
setopt NO_BG_NICE # don't nice background tasks
setopt NO_HUP
setopt NO_LIST_BEEP
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
setopt HIST_VERIFY
setopt SHARE_HISTORY # share history between sessions ???
setopt ... | 8625020cc4bc5ba26ae324c947a9964f0495d3b3 | zsh/config.zsh | zsh/config.zsh | Shell |
<|file_sep|>src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java.diff
original:
updated:
import java.util.Random;
<|file_sep|>src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java.diff
original:
return 1;
updated:
return new Random()... | package by.triumgroup.recourse.supplier.entity.model;
import by.triumgroup.recourse.entity.model.BaseEntity;
import org.springframework.data.util.Pair;
import java.util.Random;
public interface EntityIntegerPKSupplier<E extends BaseEntity<Integer>> extends EntitySupplier<E, Integer>{
@Override
default Intege... | <|file_sep|>src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java.diff
original:
updated:
import java.util.Random;
<|file_sep|>src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java.diff
original:
return 1;
updated:
return new Random()... | 399e1090967d8ecfa59da2119f83ed23b413f50d | src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java | src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java | Java |
<|file_sep|>original/chapter15/wb_chapter15_ex03.pl
<|file_sep|>current/chapter15/wb_chapter15_ex03.pl
<|file_sep|>updated/chapter15/wb_chapter15_ex03.pl | #!C:\strawberry\perl\bin\perl.exe
# Prompt for regex pattern and report if any element in an array math that
# pattern
use 5.020;
use warnings;
no warnings 'experimental::smartmatch';
my @array = qw( Fred Wilma Barney Betty Larry Pebbles Bamm-Bamm );
say "The elements are (@array)";
say "Enter a pattern:";
chomp( m... | <|file_sep|>original/chapter15/wb_chapter15_ex03.pl
<|file_sep|>current/chapter15/wb_chapter15_ex03.pl
<|file_sep|>updated/chapter15/wb_chapter15_ex03.pl
#!C:\strawberry\perl\bin\perl.exe
# Prompt for regex pattern and report if any element in an array math that
# pattern
use 5.020;
use warnings;
no warnings 'exper... | e1f91c07e3ab7e5a51cfa9e02e85787283e9acaf | chapter15/wb_chapter15_ex03.pl | chapter15/wb_chapter15_ex03.pl | Perl |
<|file_sep|>original/README.md
# Parrot
WIP - Project localization system built with Go (backend) and Angular 2 (frontend).
TODO:
Backend:
- Add snapshots feature
- Add API retrieve snapshots groupped by locale or key
- Move docker compose into sub folder
- Add support for client access token and role
- Refactor main... | # Parrot
Project localization system built with Go and Angular 2.
Currently in heavy development, breaking changes guaranteed :)
TODO:
Backend:
- Add snapshots feature
- Add API retrieve snapshots groupped by locale or key
- Move docker compose into sub folder
- Add support for client access token and role
- Refactor... | <|file_sep|>original/README.md
# Parrot
WIP - Project localization system built with Go (backend) and Angular 2 (frontend).
TODO:
Backend:
- Add snapshots feature
- Add API retrieve snapshots groupped by locale or key
- Move docker compose into sub folder
- Add support for client access token and role
- Refactor main... | 557c8acf6876c9fd0e440da2deb5d731c174514c | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: android
jdk: openjdk7
notifications:
email:
- sebastian.kacprzak@byoutline.com
env:
matrix:
- ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64 JAVA7_HOME=/usr/lib/jvm/java-7-openjdk-amd64 JAVA8_HOME=/usr/lib/jvm/jav... | language: android
jdk: openjdk8
notifications:
email:
- sebastian.kacprzak@byoutline.com
env:
matrix:
- ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64 JAVA7_HOME=/usr/lib/jvm/java-7-openjdk-amd64 JAVA8_HOME=/usr/lib/jvm/java-8-openjdk-amd64 TERM=dumb
-... | <|file_sep|>original/.travis.yml
language: android
jdk: openjdk7
notifications:
email:
- sebastian.kacprzak@byoutline.com
env:
matrix:
- ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64 JAVA7_HOME=/usr/lib/jvm/java-7-openjdk-amd64 JAVA8_HOME=/usr/lib/jvm/jav... | 8ceb561f441acfc4415bf4b3c78072f22b566b04 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/docker_phpsv_entrypoint.sh
#!/bin/sh
set -e
# Make sure /tmp/subs exists and is writable by everyone
mkdir -p /tmp/subs/doctrine
mkdir -p /tmp/subs/twig
chmod 777 -R /tmp/subs
php composer.phar install # Install dependencies, if needed
./app/console app:twig:clear-cache # Clear the Twig ca... | set -e
# Make sure /tmp/subs exists and is writable by everyone
mkdir -p /tmp/subs/doctrine
mkdir -p /tmp/subs/twig
chmod 777 -R /tmp/subs
php composer.phar install # Install dependencies, if needed
./app/console app:twig:clear-cache # Clear the Twig cache
if [ ! -f /var/run/mysqld/mysqld.sock ]; then
# Wait unt... | <|file_sep|>original/config/docker_phpsv_entrypoint.sh
#!/bin/sh
set -e
# Make sure /tmp/subs exists and is writable by everyone
mkdir -p /tmp/subs/doctrine
mkdir -p /tmp/subs/twig
chmod 777 -R /tmp/subs
php composer.phar install # Install dependencies, if needed
./app/console app:twig:clear-cache # Clear the Twig ca... | b4cf199a72ce92d1fb2e7ebf9b93808c35f79940 | config/docker_phpsv_entrypoint.sh | config/docker_phpsv_entrypoint.sh | Shell |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
script:
- npm run coverage:upload
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
script:
- npm run coverage:upload
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- node
script:
- 'npm run coverage:upload'
dist: xenial
services:
- xvfb | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
script:
- npm run coverage:upload
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
script:
- npm run coverage:upload
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- node
script:
- 'npm run coverage:upload'
dist:... | 4848f2a2df7db68f0b6f9dd47a65610b447ddd86 | .travis.yml | .travis.yml | YAML |
<|file_sep|>config/seneca-options.js.diff
original:
function log () {
// seneca custom log handlers
if (process.env.LOGENTRIES_ENABLED === 'true') {
assert.ok(process.env.LOGENTRIES_DEBUG_TOKEN, 'No LOGENTRIES_DEBUG_TOKEN set');
var led = new LogEntries({
token: process.env.LOGENTRIES_DEBUG_TOKEN,
... | 'use strict';
var assert = require('assert');
var LogEntries = require('le_node');
var senecaOptions = {
transport: {
type: 'web',
web: {
timeout: 120000,
port: 10305
}
},
apiBaseUrl: process.env.BADGEKIT_API_BASE_URL || 'http://localhost:8080',
apiSecret: process.env.BADGEKIT_API_SECRE... | <|file_sep|>config/seneca-options.js.diff
original:
function log () {
// seneca custom log handlers
if (process.env.LOGENTRIES_ENABLED === 'true') {
assert.ok(process.env.LOGENTRIES_DEBUG_TOKEN, 'No LOGENTRIES_DEBUG_TOKEN set');
var led = new LogEntries({
token: process.env.LOGENTRIES_DEBUG_TOKEN,
... | 6c93d19484c542e3449d6a726ec52f74030bcaf2 | config/seneca-options.js | config/seneca-options.js | JavaScript |
<|file_sep|>original/_posts/2016-03-29-speaking-at-developers-paradise-2016.md
---
layout: post
title: "Speaking at Developers Paradise 2016"
date: 2016-03-29 20:00:00
category: Presenting
---
This April 26 I'll be speaking at the Developers Paradise conference in Opatija, Croatia. The talk will be at 13:30, and it'... | ---
layout: post
title: "Speaking at Developers Paradise 2016"
date: 2016-03-29 20:00:00
category: Presenting
---
This April 26 I'll be speaking at the Developers Paradise conference in Opatija, Croatia. The talk will be at 13:30, and it's named "[Driving your domain by examples](http://www.developers-paradise.com/s... | <|file_sep|>original/_posts/2016-03-29-speaking-at-developers-paradise-2016.md
---
layout: post
title: "Speaking at Developers Paradise 2016"
date: 2016-03-29 20:00:00
category: Presenting
---
This April 26 I'll be speaking at the Developers Paradise conference in Opatija, Croatia. The talk will be at 13:30, and it'... | 84c84b04d97a71b879530708e56bbee9c0b6e108 | _posts/2016-03-29-speaking-at-developers-paradise-2016.md | _posts/2016-03-29-speaking-at-developers-paradise-2016.md | Markdown |
<|file_sep|>components/divider/index.tsx.diff
original:
updated:
export interface DividerProps {
prefixCls?: string;
type?: 'horizontal' | 'vertical';
className?: string;
children?: React.ReactNode;
dashed?: boolean;
}
<|file_sep|>original/components/divider/index.tsx
import classNames from 'classnames';
... |
}
export default function Divider({
prefixCls = 'ant',
type = 'horizontal',
className,
children,
dashed,
...restProps,
}: DividerProps) {
const classString = classNames(
className, `${prefixCls}-divider`, `${prefixCls}-divider-${type}`, {
[`${prefixCls}-divider-with-text`]: children,
[`${pre... | <|file_sep|>components/divider/index.tsx.diff
original:
updated:
export interface DividerProps {
prefixCls?: string;
type?: 'horizontal' | 'vertical';
className?: string;
children?: React.ReactNode;
dashed?: boolean;
}
<|file_sep|>original/components/divider/index.tsx
import classNames from 'classnames';
... | 93fcbdf334c2ed718614ba20e38e72c79450f3aa | components/divider/index.tsx | components/divider/index.tsx | TypeScript |
<|file_sep|>original/largest-series-product/largest_series_product_tests.erl
-module( largest_series_product_tests ).
-include_lib("eunit/include/eunit.hrl").
three_test() -> ?assert( 504 =:= largest_series_product:from_string("0123456789", 3) ).
five_test() -> ?assert( 15120 =:= largest_series_product:from_string("0... | -module( largest_series_product_tests ).
-include_lib("eunit/include/eunit.hrl").
three_test() -> ?assert( 504 =:= largest_series_product:from_string("0123456789", 3) ).
five_test() -> ?assert( 15120 =:= largest_series_product:from_string("0123456789", 5) ).
six_test() -> ?assert( 23520 =:= largest_series_product:fr... | <|file_sep|>original/largest-series-product/largest_series_product_tests.erl
-module( largest_series_product_tests ).
-include_lib("eunit/include/eunit.hrl").
three_test() -> ?assert( 504 =:= largest_series_product:from_string("0123456789", 3) ).
five_test() -> ?assert( 15120 =:= largest_series_product:from_string("0... | 8c11e11912c1168153820e811af7a00132b7bf59 | largest-series-product/largest_series_product_tests.erl | largest-series-product/largest_series_product_tests.erl | Erlang |
<|file_sep|>original/setup.py
# coding: utf8
from setuptools import setup
setup(
name='pyshorteners',
version='0.1',
license='MIT',
description='A simple URL shortening Python Lib, implementing the most famous shorteners.',
long_description=open('README.md').read(),
author=u'Ellison Leão',
... | # coding: utf8
from setuptools import setup
setup(
name='pyshorteners',
version='0.1',
license='MIT',
description='A simple URL shortening Python Lib, implementing the most famous shorteners.',
long_description=open('README.rst').read(),
author=u'Ellison Leão',
author_email='ellisonleao@gm... | <|file_sep|>original/setup.py
# coding: utf8
from setuptools import setup
setup(
name='pyshorteners',
version='0.1',
license='MIT',
description='A simple URL shortening Python Lib, implementing the most famous shorteners.',
long_description=open('README.md').read(),
author=u'Ellison Leão',
... | 7bf5d1d5fe05b6a676c8b2db5b9ac1ff4cae6d21 | setup.py | setup.py | Python |
<|file_sep|>original/src/coffee/run.coffee
fs = require 'fs'
package_json = require '../package.json'
StockXmlImport = require('../main').StockXmlImport
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile file --timeout timeout')
.default('timeout', 300000)
... | fs = require 'fs'
package_json = require '../package.json'
StockXmlImport = require('../main').StockXmlImport
argv = require('optimist')
.usage('Usage: $0 --projectKey [key] --clientId [id] --clientSecret [secret] --xmlfile [file] --timeout [timeout]')
.default('timeout', 300000)
.describe('projectKey', 'your SPH... | <|file_sep|>original/src/coffee/run.coffee
fs = require 'fs'
package_json = require '../package.json'
StockXmlImport = require('../main').StockXmlImport
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile file --timeout timeout')
.default('timeout', 300000)
... | b893db96047998f6f57d061ba69390415ebd1d4c | src/coffee/run.coffee | src/coffee/run.coffee | CoffeeScript |
<|file_sep|>original/requirements/dev.txt
-r common.txt
pip==10.0.1
bumpversion==0.5.3
wheel==0.31.1
watchdog==0.8.3
flake8==3.5.0
coverage==4.5.1
Sphinx==1.7.5
cryptography==2.2.2
<|file_sep|>current/requirements/dev.txt
-r common.txt
pip==10.0.1
bumpversion==0.5.3
wheel==0.31.1
watchdog==0.8.3
flake8==3.5.0
coverage=... | -r common.txt
pip==10.0.1
bumpversion==0.5.3
wheel==0.31.1
watchdog==0.8.3
flake8==3.5.0
coverage==4.5.1
Sphinx==1.7.6
cryptography==2.2.2 | <|file_sep|>original/requirements/dev.txt
-r common.txt
pip==10.0.1
bumpversion==0.5.3
wheel==0.31.1
watchdog==0.8.3
flake8==3.5.0
coverage==4.5.1
Sphinx==1.7.5
cryptography==2.2.2
<|file_sep|>current/requirements/dev.txt
-r common.txt
pip==10.0.1
bumpversion==0.5.3
wheel==0.31.1
watchdog==0.8.3
flake8==3.5.0
coverage=... | 090012d7c94f67d2f65e56d66ce702217f9c5b1f | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/.travis.yml
# skip testing thrift on py3 and pypy
- python: "pypy"
env: TEST_ES_CONNECTION=ThriftConnection
- python: "3.3"
env: TEST_ES_CONNECTION=ThriftConnection
install:
- mkdir /tmp/elasticsearch
- wget -O - http://s3-us-west-2.amazonaws.com/build.elasticsearch.org... | # skip testing thrift on py3 and pypy
- python: "pypy"
env: TEST_ES_CONNECTION=ThriftConnection
- python: "3.3"
env: TEST_ES_CONNECTION=ThriftConnection
install:
- mkdir /tmp/elasticsearch
- wget -O - http://s3-us-west-2.amazonaws.com/build.elasticsearch.org/origin/master/nightly/JDK6/elast... | <|file_sep|>original/.travis.yml
# skip testing thrift on py3 and pypy
- python: "pypy"
env: TEST_ES_CONNECTION=ThriftConnection
- python: "3.3"
env: TEST_ES_CONNECTION=ThriftConnection
install:
- mkdir /tmp/elasticsearch
- wget -O - http://s3-us-west-2.amazonaws.com/build.elasticsearch.org... | b560993c4e3b1192047367d5e0300f20bf0cbee0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/roles/nodejs/tasks/main.yml
- name: Add repository deb.nodesource.com/node_4.x
become: yes
become_user: root
apt_repository:
repo: deb https://deb.nodesource.com/node_4.x trusty main
state: present
update_cache: yes
tags: [nodejs]
- name: Install nodejs packages
become: yes
... | - name: Add apt key for deb.nodesource.com/node_4.x
become: yes
become_user: root
apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
state: present
tags: [nodejs]
- name: Add repository deb.nodesource.com/node_4.x
become: yes
become_user: root
apt_repository:
repo: deb https:/... | <|file_sep|>original/roles/nodejs/tasks/main.yml
- name: Add repository deb.nodesource.com/node_4.x
become: yes
become_user: root
apt_repository:
repo: deb https://deb.nodesource.com/node_4.x trusty main
state: present
update_cache: yes
tags: [nodejs]
- name: Install nodejs packages
become: yes
... | 196ae84f0defc41786a9faa8ff2b7c83db12cf3a | roles/nodejs/tasks/main.yml | roles/nodejs/tasks/main.yml | YAML |
<|file_sep|>src/CMakeLists.txt.diff
original:
learner.cpp)
updated:
learner.cpp
)
<|file_sep|>original/src/CMakeLists.txt
cmake_minimum_required(VERSION 3.4)
project(paxos)
set(SOURCES
acceptor.cpp
proposer.cpp
learner.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(paxos SHARED ... | cmake_minimum_required(VERSION 3.4)
project(paxos)
set(SOURCES
acceptor.cpp
proposer.cpp
learner.cpp
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(paxos SHARED ${SOURCES})
set_property(TARGET paxos PROPERTY CXX_STANDARD 11) | <|file_sep|>src/CMakeLists.txt.diff
original:
learner.cpp)
updated:
learner.cpp
)
<|file_sep|>original/src/CMakeLists.txt
cmake_minimum_required(VERSION 3.4)
project(paxos)
set(SOURCES
acceptor.cpp
proposer.cpp
learner.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(paxos SHARED ... | dc03715471cb7fa744647a70d96ce0f0694804e1 | src/CMakeLists.txt | src/CMakeLists.txt | Text |
<|file_sep|>tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java.diff
original:
updated:
import java.util.Locale;
<|file_sep|>original/tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java
public class TestDatefieldYear extends TestBase {
@Override
protected String getDescri... |
@Override
protected String getDescription() {
return "A popup with resolution year or month should update the textfield when browsing. The value displayed in the textfield should always be the same as the popup shows.";
}
@Override
protected Integer getTicketNumber() {
return 2813;... | <|file_sep|>tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java.diff
original:
updated:
import java.util.Locale;
<|file_sep|>original/tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java
public class TestDatefieldYear extends TestBase {
@Override
protected String getDescri... | 2676333ed846cfea09cd93cb956b37c9c175f338 | tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java | tests/src/com/vaadin/tests/components/datefield/TestDatefieldYear.java | Java |
<|file_sep|>original/public/holy-grid/index.html
body {
margin: 0;
display: grid;
grid-template-areas:
"header header"
"main aside"
"footer footer";
grid-template-columns:
1fr 30vw;
grid-template-rows: 10vh 80vh 10vh;
}
/* body > main, body > aside { flex: 1 } */
body > header { grid-area... |
body {
margin: 0;
display: grid;
grid-template-areas:
"header header"
"main aside"
"footer footer";
grid-template-columns: 1fr 30vw;
grid-template-rows: 10vh 80vh 10vh;
}
/* body > main, body > aside { flex: 1 } */
body > header { grid-area: header }
body > footer { grid-area: footer }
</st... | <|file_sep|>original/public/holy-grid/index.html
body {
margin: 0;
display: grid;
grid-template-areas:
"header header"
"main aside"
"footer footer";
grid-template-columns:
1fr 30vw;
grid-template-rows: 10vh 80vh 10vh;
}
/* body > main, body > aside { flex: 1 } */
body > header { grid-area... | ebf587127b204de62bdb6182f49a03e05291afbc | public/holy-grid/index.html | public/holy-grid/index.html | HTML |
<|file_sep|>.travis.yml.diff
original:
- openjdk7
updated:
#- openjdk7
<|file_sep|>original/.travis.yml
language: groovy
sudo: false
dist: precise
jdk:
- openjdk7
- oraclejdk8
env:
global:
- JAVA_OPTS="-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
- GRADLE_OPTS="-Xmx1024m"
script:
- ./gradlew check upload... | language: groovy
sudo: false
dist: precise
jdk:
#- openjdk7
- oraclejdk8
env:
global:
- GRADLE_OPTS="-Xmx1024m"
script:
- ./gradlew check uploadArchives --full-stacktrace
- cd samples/example && ./gradlew clean webResourceCompile --full-stacktrace && cd ../../
after_success:
- ./gradlew coveralls --fu... | <|file_sep|>.travis.yml.diff
original:
- openjdk7
updated:
#- openjdk7
<|file_sep|>original/.travis.yml
language: groovy
sudo: false
dist: precise
jdk:
- openjdk7
- oraclejdk8
env:
global:
- JAVA_OPTS="-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
- GRADLE_OPTS="-Xmx1024m"
script:
- ./gradlew check upload... | 3b917930ae7f63427b142d1fcdb76084fab912d4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php
<|file_sep|>current/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php
<|file_sep|>updated/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php | <?php
namespace spec\Laracasts\TestDummy;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Laracasts\TestDummy\TestDummyException;
class FactoriesLoaderSpec extends ObjectBehavior {
function it_gets_pissed_if_the_given_factories_directory_path_does_not_exist()
{
$this->shouldThrow(TestDummyExc... | <|file_sep|>original/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php
<|file_sep|>current/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php
<|file_sep|>updated/spec/Laracasts/TestDummy/FactoriesLoaderSpec.php
<?php
namespace spec\Laracasts\TestDummy;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Laracasts\T... | c6e1617ff64677fd5d2ca63b45dce30153af253b | spec/Laracasts/TestDummy/FactoriesLoaderSpec.php | spec/Laracasts/TestDummy/FactoriesLoaderSpec.php | PHP |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.12"
- "4"
services: mongodb
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ]; then curl -v -X POST -H ''api_key: fdb9e03f-f843-4bea-9d02-43ab619dd289'' http://162.243.219.172/deploys/openhim-core/preprod; fi'
sudo: false
# for libxmljs
env:
... | language: node_js
node_js:
- "4"
services: mongodb
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ]; then curl -v -X POST -H ''api_key: fdb9e03f-f843-4bea-9d02-43ab619dd289'' http://162.243.219.172/deploys/openhim-core/preprod; fi'
sudo: false
# for libxmljs
env:
- CXX=g++-4.8
addons:
apt:
sources:
... | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.12"
- "4"
services: mongodb
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ]; then curl -v -X POST -H ''api_key: fdb9e03f-f843-4bea-9d02-43ab619dd289'' http://162.243.219.172/deploys/openhim-core/preprod; fi'
sudo: false
# for libxmljs
env:
... | dece1e9664917eefb5f0a6c6cf77d95b91cb7eae | .travis.yml | .travis.yml | YAML |
<|file_sep|>README.md.diff
original:
updated:
## Technical things
<|file_sep|>README.md.diff
original:
* [electron-builder](https://github.com/electron-userland/electron-builder) by electron's community
updated:
* [electron-builder](https://github.com/electron-userland/electron-builder) by Electron's community
<|file... | **[Download it here.](https://github.com/thomaslule/emojis-everywhere/raw/master/dist/Emojis%20Everywhere%20Setup%201.0.1.exe)**
## Technical things
I made this app by throwing some nice libraries together then watching the magic happen:
* [emojione-picker](https://github.com/tommoor/emojione-picker) by Tom Moor
* [... | <|file_sep|>README.md.diff
original:
updated:
## Technical things
<|file_sep|>README.md.diff
original:
* [electron-builder](https://github.com/electron-userland/electron-builder) by electron's community
updated:
* [electron-builder](https://github.com/electron-userland/electron-builder) by Electron's community
<|file... | 902f64b0b6883d0c48b0ef75d85e88b23820c108 | README.md | README.md | Markdown |
<|file_sep|>original/lib/jsdom/living/aborting/AbortSignal-impl.js
_signalAbort() {
if (this.aborted) {
return;
}
this.aborted = true;
for (const algorithm of this.abortAlgorithms) {
algorithm();
}
this.abortAlgorithms.clear();
this._dispatch(Event.createImpl(["abort"]), false... | _signalAbort() {
if (this.aborted) {
return;
}
this.aborted = true;
for (const algorithm of this.abortAlgorithms) {
algorithm();
}
this.abortAlgorithms.clear();
this._dispatch(Event.createImpl(
[
"abort",
{ bubbles: false, cancelable: false }
],
... | <|file_sep|>original/lib/jsdom/living/aborting/AbortSignal-impl.js
_signalAbort() {
if (this.aborted) {
return;
}
this.aborted = true;
for (const algorithm of this.abortAlgorithms) {
algorithm();
}
this.abortAlgorithms.clear();
this._dispatch(Event.createImpl(["abort"]), false... | d80648f8854a168d33eec16bbac453ebbf0b4820 | lib/jsdom/living/aborting/AbortSignal-impl.js | lib/jsdom/living/aborting/AbortSignal-impl.js | JavaScript |
<|file_sep|>fabfile/tasks/ntp.py.diff
original:
updated:
@parallel
<|file_sep|>fabfile/tasks/ntp.py.diff
original:
print result
all_time = [int(date_in_millisec) for date, date_in_millisec in result.values()]
updated:
all_time = []
for dates in result.values():
try:
(date, date_in_m... |
@task
@parallel
@roles('build')
def verify_time_all():
result = execute('get_all_time')
all_time = []
for dates in result.values():
try:
(date, date_in_millisec) = dates
all_time.append(int(date_in_millisec))
except ValueError:
print "ERROR: %s" % dates
... | <|file_sep|>fabfile/tasks/ntp.py.diff
original:
updated:
@parallel
<|file_sep|>fabfile/tasks/ntp.py.diff
original:
print result
all_time = [int(date_in_millisec) for date, date_in_millisec in result.values()]
updated:
all_time = []
for dates in result.values():
try:
(date, date_in_m... | bd761accdc38b4ed71f94048c3d9ceae05859925 | fabfile/tasks/ntp.py | fabfile/tasks/ntp.py | Python |
<|file_sep|>original/sli/dashboard/src/test/resources/mock_data/cgray/educational_organization.json
"stateOrganizationId":"IL-DAYBREAK",
"nameOfInstitution":"Daybreak School District 4529"
},
{
"id": "IL-SUNSET",
"organizationCategories":[
"Local_Education_Agency"
],
... | "stateOrganizationId":"IL-DAYBREAK",
"nameOfInstitution":"Daybreak School District 4529"
},
{
"id": "IL-SUNSET",
"organizationCategories":[
"Local_Education_Agency"
],
"address":[],
"stateOrganizationId":"IL-SUNSET",
"nameOfInstitution":"Sunset School Dist... | <|file_sep|>original/sli/dashboard/src/test/resources/mock_data/cgray/educational_organization.json
"stateOrganizationId":"IL-DAYBREAK",
"nameOfInstitution":"Daybreak School District 4529"
},
{
"id": "IL-SUNSET",
"organizationCategories":[
"Local_Education_Agency"
],
... | 17ecef39441e0ce41d080373d103cf6473cf7223 | sli/dashboard/src/test/resources/mock_data/cgray/educational_organization.json | sli/dashboard/src/test/resources/mock_data/cgray/educational_organization.json | JSON |
<|file_sep|>applier.go.diff
original:
updated:
"time"
"github.com/coreos/etcd/raft"
<|file_sep|>applier.go.diff
original:
updated:
// Commit is used to send to the cluster to save either a snapshot or log entries.
type Commit struct {
State RaftState
Entries []raftpb.Entry
Snapshot raftpb.Snapshot
Message... | Snapshot raftpb.Snapshot
Messages []raftpb.Message
Context context.Context
}
// RaftState describes the state of the Raft cluster for each commit
type RaftState struct {
CommitID uint64
Vote uint64
Term uint64
Lead uint64
LastLeadElectionTime time.Ti... | <|file_sep|>applier.go.diff
original:
updated:
"time"
"github.com/coreos/etcd/raft"
<|file_sep|>applier.go.diff
original:
updated:
// Commit is used to send to the cluster to save either a snapshot or log entries.
type Commit struct {
State RaftState
Entries []raftpb.Entry
Snapshot raftpb.Snapshot
Message... | 7569c6b2ef7fbf64605494e8acafb95b66d07f50 | applier.go | applier.go | Go |
<|file_sep|>original/src/main/java/seedu/task/alerts/TransferTaskAlert.java
import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
//@@author A0142360U
public class TransferTaskAlert extends Alert {
public static final String CHANGE_DIRECTORY_COMMAND_TITLE = "Chang... |
import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
//@@author A0142360U
public class TransferTaskAlert extends Alert {
public static final String CHANGE_DIRECTORY_COMMAND_TITLE = "Change of Task Storage Directory";
public static final String CHANGE_DIRECTOR... | <|file_sep|>original/src/main/java/seedu/task/alerts/TransferTaskAlert.java
import java.util.Optional;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
//@@author A0142360U
public class TransferTaskAlert extends Alert {
public static final String CHANGE_DIRECTORY_COMMAND_TITLE = "Chang... | e886f86e7f16c5c40d540e0f11fdd71a9dde9a78 | src/main/java/seedu/task/alerts/TransferTaskAlert.java | src/main/java/seedu/task/alerts/TransferTaskAlert.java | Java |
<|file_sep|>README.md.diff
original:
updated:
Now, you have to create the environment variables with the absolute path to the `api.py` and the config file.
```
export FLASK_APP=$(pwd)/wcontrol/src/api.py
export WCONTROL_CONF=wcontrol.conf.config
```
<|file_sep|>README.md.diff
original:
`$ ./db_create.py`
updated:
`$... | WEIGHT_CONTROL_OAUTH_GOOGLE_SECRET
WEIGHT_CONTROL_OAUTH_FACEBOOK_ID
WEIGHT_CONTROL_OAUTH_FACEBOOK_SECRET
```
Running
-------
To run the app you have to activate the virtual environment and then execute:
`$ python -m flask run --host=0.0.0.0 --debugger`
Run the app with Docker
-----------------------
To run the a... | <|file_sep|>README.md.diff
original:
updated:
Now, you have to create the environment variables with the absolute path to the `api.py` and the config file.
```
export FLASK_APP=$(pwd)/wcontrol/src/api.py
export WCONTROL_CONF=wcontrol.conf.config
```
<|file_sep|>README.md.diff
original:
`$ ./db_create.py`
updated:
`$... | a083b48dbc73360250f22124bc837a83e2359a6c | README.md | README.md | Markdown |
<|file_sep|>original/deploy.cfg
[buildout]
parts = wsgi_application scripts
newest = false
download-cache = ../buildout/downloads
eggs-directory = ../buildout/eggs
[wsgi_application]
recipe = tangled.web:wsgi_application
eggs = tangled.website
settings-file = production.ini
[scripts]
recipe = zc.recipe.egg
eggs = tan... | [buildout]
parts = wsgi_application scripts
newest = false
download-cache = ../buildout/downloads
eggs-directory = ../buildout/eggs
develop = ../src/tangled.site
../src/tangled.website
[wsgi_application]
recipe = tangled.web:wsgi_application
eggs = tangled.website
settings-file = production.ini
[scripts]
re... | <|file_sep|>original/deploy.cfg
[buildout]
parts = wsgi_application scripts
newest = false
download-cache = ../buildout/downloads
eggs-directory = ../buildout/eggs
[wsgi_application]
recipe = tangled.web:wsgi_application
eggs = tangled.website
settings-file = production.ini
[scripts]
recipe = zc.recipe.egg
eggs = tan... | c6fcd4fe454f519e6d8c4fa4950fb77b7294df4f | deploy.cfg | deploy.cfg | INI |
<|file_sep|>lib/expando/project_template.rb.diff
original:
updated:
config_file_contents = <<-CONFIG_FILE
# API.AI credentials - add the credentials for your agent below
:client_access_token: REPLACE_WITH_TOKEN
:developer_access_token: REPLACE_WITH_TOKEN
CONFIG_FILE
mkfile '.expando.rc.yaml',... | def mkdir(directory)
full_path = File.join(Dir.pwd, directory)
if Dir.exist?(full_path)
puts '•'.colorize(:blue) + " #{directory} directory exists (skipping)"
else
Dir.mkdir(full_path)
puts '✓'.colorize(:green) + " #{directory} directory created"
end
... | <|file_sep|>lib/expando/project_template.rb.diff
original:
updated:
config_file_contents = <<-CONFIG_FILE
# API.AI credentials - add the credentials for your agent below
:client_access_token: REPLACE_WITH_TOKEN
:developer_access_token: REPLACE_WITH_TOKEN
CONFIG_FILE
mkfile '.expando.rc.yaml',... | e860407e1416c8f8f1e3ff1f4a27aae2b00c3896 | lib/expando/project_template.rb | lib/expando/project_template.rb | Ruby |
<|file_sep|>lib/modules/settings.js.diff
original:
updated:
const chalk = require('chalk');
<|file_sep|>lib/modules/settings.js.diff
original:
const settingsFilePath = 'settingsData.json'
updated:
const settingsFilePath = 'settingsData.json';
<|file_sep|>lib/modules/settings.js.diff
original:
updated:
<|file_sep|>li... |
let settingsJSON = JSON.stringify(settingsDataUpdate);
if (settingsData.timezone !== settingsDataUpdate.timezone) {
return fs.writeFile(settingsFilePath, settingsJSON, (error) => {
if (error) {
return helpers.printError(error.message);
}
let message = chalk.bgGreen('Success!') + ' ' ... | <|file_sep|>lib/modules/settings.js.diff
original:
updated:
const chalk = require('chalk');
<|file_sep|>lib/modules/settings.js.diff
original:
const settingsFilePath = 'settingsData.json'
updated:
const settingsFilePath = 'settingsData.json';
<|file_sep|>lib/modules/settings.js.diff
original:
updated:
<|file_sep|>li... | 1f8b0e59064365b7222530435c80cd13549b94c9 | lib/modules/settings.js | lib/modules/settings.js | JavaScript |
<|file_sep|>original/FrontEnd/src/FrontEnd/appsettings.json
{
"Constants": {
"VersionUrl": "/api/version",
"ApiPathKey": "/api",
"WebFileFolder": "C:\\HETS\\wwwClient"
},
"ApiProxyServer": {
"Scheme": "http",
"Host": "localhost",
"Port": "8080"
},
"Logging": {
"IncludeScopes": fals... | {
"Constants": {
"VersionUrl": "/api/version",
"ApiPathKey": "/api",
"WebFileFolder": "/opt/app-root/dist"
},
"ApiProxyServer": {
"Scheme": "http",
"Host": "localhost",
"Port": "8080"
},
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Information",
"S... | <|file_sep|>original/FrontEnd/src/FrontEnd/appsettings.json
{
"Constants": {
"VersionUrl": "/api/version",
"ApiPathKey": "/api",
"WebFileFolder": "C:\\HETS\\wwwClient"
},
"ApiProxyServer": {
"Scheme": "http",
"Host": "localhost",
"Port": "8080"
},
"Logging": {
"IncludeScopes": fals... | bb7523fff46dce5140de22947f9fb502606a3f21 | FrontEnd/src/FrontEnd/appsettings.json | FrontEnd/src/FrontEnd/appsettings.json | JSON |
<|file_sep|>original/static/js/download.js
var x = n.userAgent.match(/x86_64|Win64|WOW64/) ||
n.cpuClass === 'x64' ? 'x64' : 'x86';
var db = d.getElementById('home-downloadbutton');
if (!db) { return; }
var version = db.dataset.version;
var dlLocal = db.dataset.dlLocal;
switch (os && os[1]) {
case '... | n.cpuClass === 'x64' ? 'x64' : 'x86';
var db = d.getElementById('home-downloadbutton');
if (!db) { return; }
var version = db.dataset.version;
var dlLocal = db.dataset.dlLocal;
switch (os && os[1]) {
case 'Mac':
db.href += 'node-' + version + '.pkg';
db.innerText = dlLocal + ' OS X (x64)';... | <|file_sep|>original/static/js/download.js
var x = n.userAgent.match(/x86_64|Win64|WOW64/) ||
n.cpuClass === 'x64' ? 'x64' : 'x86';
var db = d.getElementById('home-downloadbutton');
if (!db) { return; }
var version = db.dataset.version;
var dlLocal = db.dataset.dlLocal;
switch (os && os[1]) {
case '... | 045fae21bde6fb90900e1e0c04f17601c0fc9fcd | static/js/download.js | static/js/download.js | JavaScript |
<|file_sep|>original/lib/mspec/runner/exception.rb
class ExceptionState
attr_reader :description, :describe, :it, :exception
def initialize(state, location, exception)
@exception = exception
@description = location ? "An exception occurred during: #{location}" : ""
if state
@description += "\n" ... | # Initialize $MSPEC_DEBUG
$MSPEC_DEBUG = false unless defined?($MSPEC_DEBUG)
class ExceptionState
attr_reader :description, :describe, :it, :exception
def initialize(state, location, exception)
@exception = exception
@description = location ? "An exception occurred during: #{location}" : ""
if state
... | <|file_sep|>original/lib/mspec/runner/exception.rb
class ExceptionState
attr_reader :description, :describe, :it, :exception
def initialize(state, location, exception)
@exception = exception
@description = location ? "An exception occurred during: #{location}" : ""
if state
@description += "\n" ... | 0e7f7673d3d91b564cd41811f964fb7ee493989a | lib/mspec/runner/exception.rb | lib/mspec/runner/exception.rb | Ruby |
<|file_sep|>original/CakeMail.RestClient/Properties/AssemblyInfo.cs
[assembly: AssemblyDescription("CakeMail.RestClient is a .NET wrapper for the CakeMail API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Jeremie Desautels")]
[assembly: AssemblyProduct("CakeMail.RestClient")]
[assembly: AssemblyC... | [assembly: AssemblyDescription("CakeMail.RestClient is a .NET wrapper for the CakeMail API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Jeremie Desautels")]
[assembly: AssemblyProduct("CakeMail.RestClient")]
[assembly: AssemblyCopyright("Copyright Jeremie Desautels © 2015")]
[assembly: AssemblyT... | <|file_sep|>original/CakeMail.RestClient/Properties/AssemblyInfo.cs
[assembly: AssemblyDescription("CakeMail.RestClient is a .NET wrapper for the CakeMail API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Jeremie Desautels")]
[assembly: AssemblyProduct("CakeMail.RestClient")]
[assembly: AssemblyC... | 54f33523c161803d0d421d0b651814204df02b79 | CakeMail.RestClient/Properties/AssemblyInfo.cs | CakeMail.RestClient/Properties/AssemblyInfo.cs | C# |
<|file_sep|>original/examples/oauth/jupyterhub_config.py
# Configuration file for Jupyter Hub
c = get_config()
# spawn with Docker
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
# The docker instances need access to the Hub, so the default loopback port doesn't work:
from IPython.utils.localinterfaces im... | # Configuration file for Jupyter Hub
c = get_config()
# spawn with Docker
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
# The docker instances need access to the Hub, so the default loopback port doesn't work:
from jupyter_client.localinterfaces import public_ips
c.JupyterHub.hub_ip = public_ips()[0]
#... | <|file_sep|>original/examples/oauth/jupyterhub_config.py
# Configuration file for Jupyter Hub
c = get_config()
# spawn with Docker
c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
# The docker instances need access to the Hub, so the default loopback port doesn't work:
from IPython.utils.localinterfaces im... | ededa7c9c616ac97dd6ce8638c6b959a0c51663c | examples/oauth/jupyterhub_config.py | examples/oauth/jupyterhub_config.py | Python |
<|file_sep|>original/pac_alike.html
<html>
<head>
<meta charset="UTF-8"/>
<link href="./pac_styling.css" rel="stylesheet" type="text/css"/>
<script src="./matrix.js"></script>
<script src="./pac_constants.js"></script>
<script src="./audio_channel.js"></script>
<script src="./board.js"></script>
<scrip... | <html>
<head>
<meta charset="UTF-8"/>
<link href="./pac_styling.css" rel="stylesheet" type="text/css"/>
<script src="./matrix.js"></script>
<script src="./pac_constants.js"></script>
<script src="./audio_channel.js"></script>
<script src="./theme_song.js"></script>
<script src="./board.js"></script>
... | <|file_sep|>original/pac_alike.html
<html>
<head>
<meta charset="UTF-8"/>
<link href="./pac_styling.css" rel="stylesheet" type="text/css"/>
<script src="./matrix.js"></script>
<script src="./pac_constants.js"></script>
<script src="./audio_channel.js"></script>
<script src="./board.js"></script>
<scrip... | 8c0cdcbc7bed47322fa39e6afc5cc16b5b7c5195 | pac_alike.html | pac_alike.html | HTML |
<|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\\Process": "" }
},
"target-... | <|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": {... | ce83a652ec30e8dc4ef3ddbf722928899630df56 | composer.json | composer.json | JSON |
<|file_sep|>original/demo/json/getData.js
// MAGIC ALERT: if the api path ends in a / the framework appends :id (req.params.id) from the route
apiCalls: [
{path: '/api/getdata/'},
],
preProcessor: function(req, res) {
this.debug('preProcessor called');
// business logic before API ca... | // MAGIC ALERT: if the api path ends in a / the framework appends :id (req.params.id) from the route
apiCalls: [
{path: '/api/getdata/'},
],
preProcessor: function(req, res) {
this.debug('preProcessor called');
// business logic before API calls are made
this.apiCalls[0].param... | <|file_sep|>original/demo/json/getData.js
// MAGIC ALERT: if the api path ends in a / the framework appends :id (req.params.id) from the route
apiCalls: [
{path: '/api/getdata/'},
],
preProcessor: function(req, res) {
this.debug('preProcessor called');
// business logic before API ca... | 68cf4e5865ac2f9f48428abff29e28aa9fcf0128 | demo/json/getData.js | demo/json/getData.js | JavaScript |
<|file_sep|>original/Santa/Tests/Common/TourTest.cs
public void Init()
{
testee = new Tour();
testee.AddGift(new Gift(1, 500, 0, 0));
testee.AddGift(new Gift(2, 500, 4, 2));
}
[Test]
public void TestValidTourWeight()
{
Asse... | public void TestValidTourWeight()
{
Assert.IsTrue(testee.IsValid());
}
[Test]
public void TestInvalidTourWeight()
{
testee.AddGift(new Gift(3, 0.001, 5, 5));
Assert.IsFalse(testee.IsValid());
}
[Test]
public vo... | <|file_sep|>original/Santa/Tests/Common/TourTest.cs
public void Init()
{
testee = new Tour();
testee.AddGift(new Gift(1, 500, 0, 0));
testee.AddGift(new Gift(2, 500, 4, 2));
}
[Test]
public void TestValidTourWeight()
{
Asse... | 94b490b2b4e585abf4857166af9f534546bb5467 | Santa/Tests/Common/TourTest.cs | Santa/Tests/Common/TourTest.cs | C# |
<|file_sep|>original/config/new_relic_agent.yml
# Cloud Foundry Java Buildpack
# Copyright (c) 2013 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... | # Cloud Foundry Java Buildpack
# Copyright (c) 2013 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | <|file_sep|>original/config/new_relic_agent.yml
# Cloud Foundry Java Buildpack
# Copyright (c) 2013 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... | 05b169dc20eb28ecac43bfe8fe1306e21347ade8 | config/new_relic_agent.yml | config/new_relic_agent.yml | YAML |
<|file_sep|>original/examples/cowntdown_respawn.rb
@timer.add_observer self
end
def update(options)
@time_remaining = options[:time_remaining]
@respawn = true if options[:time_remaining] == 0
end
def forever
timer
@timer.add_observer self
Thread.new {
@timer.start
}
while... | @timer.add_observer self
end
def update(options)
@time_remaining = options[:time_remaining]
@respawn = true if options[:time_remaining] == 0
end
def forever
timer
Thread.new {
@timer.start
}
while true
puts "."
puts "remaining: #{@time_remaining}"
sleep(0.3)... | <|file_sep|>original/examples/cowntdown_respawn.rb
@timer.add_observer self
end
def update(options)
@time_remaining = options[:time_remaining]
@respawn = true if options[:time_remaining] == 0
end
def forever
timer
@timer.add_observer self
Thread.new {
@timer.start
}
while... | a2373aa842d3bc2a56fafa3ae395cc81b02ee408 | examples/cowntdown_respawn.rb | examples/cowntdown_respawn.rb | Ruby |
<|file_sep|>toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt.diff
original:
updated:
import org.rust.ide.intentions.RsElementBaseIntentionAction
<|file_sep|>toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt.diff
original:
import org.toml.ide.intentions.T... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.ide.intentions.RsElementBaseIntentionActi... | <|file_sep|>toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt.diff
original:
updated:
import org.rust.ide.intentions.RsElementBaseIntentionAction
<|file_sep|>toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt.diff
original:
import org.toml.ide.intentions.T... | 5153409bcc2c251ad82b5667299f224bc8477d51 | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | Kotlin |
<|file_sep|>original/core/exception/interrupt_spec.rb
require File.expand_path('../../../spec_helper', __FILE__)
describe "Interrupt.new" do
it "returns an instance of interrupt with no message given" do
e = Interrupt.new
e.signo.should == Signal.list["INT"]
e.signm.should == "Interrupt"
end
it "tak... | require File.expand_path('../../../spec_helper', __FILE__)
describe "Interrupt" do
it "is a subclass of SignalException" do
Interrupt.superclass.should == SignalException
end
end
describe "Interrupt.new" do
it "returns an instance of interrupt with no message given" do
e = Interrupt.new
e.signo.shou... | <|file_sep|>original/core/exception/interrupt_spec.rb
require File.expand_path('../../../spec_helper', __FILE__)
describe "Interrupt.new" do
it "returns an instance of interrupt with no message given" do
e = Interrupt.new
e.signo.should == Signal.list["INT"]
e.signm.should == "Interrupt"
end
it "tak... | 8efd3ef7b0bd0a46c7a79adb39206d97fda6e653 | core/exception/interrupt_spec.rb | core/exception/interrupt_spec.rb | Ruby |
<|file_sep|>config/software/fluentd.rb.diff
original:
default_version '9fea4bd69420daf86411937addc6000dfcc6043b'
updated:
default_version '1014de1476b353f4b9f5758bb144f972ee035c0c'
<|file_sep|>config/software/fluentd.rb.diff
original:
env = {
#"PATH" => "#{install_dir}/embedded/bin:#{ENV["PATH"]}"
}
updated:
<|file... | name "fluentd"
default_version '1014de1476b353f4b9f5758bb144f972ee035c0c'
dependency "ruby"
#dependency "bundler"
source :git => 'https://github.com/fluent/fluentd.git'
relative_path "fluentd"
build do
Dir.glob(File.expand_path(File.join(project_root, 'core_gems', '*.gem'))).sort.each { |gem_path|
gem "install... | <|file_sep|>config/software/fluentd.rb.diff
original:
default_version '9fea4bd69420daf86411937addc6000dfcc6043b'
updated:
default_version '1014de1476b353f4b9f5758bb144f972ee035c0c'
<|file_sep|>config/software/fluentd.rb.diff
original:
env = {
#"PATH" => "#{install_dir}/embedded/bin:#{ENV["PATH"]}"
}
updated:
<|file... | 1a43eeb1c0fdfdd72bb460c52c4af62a7e9c23a3 | config/software/fluentd.rb | config/software/fluentd.rb | Ruby |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.5
- 1.4
- 1.3
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- $HOME/gopath/bin/goveralls -service=travis-c... | language: go
sudo: false
go:
- 1.5
- 1.4
- 1.3
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
| <|file_sep|>original/.travis.yml
language: go
go:
- 1.5
- 1.4
- 1.3
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- $HOME/gopath/bin/goveralls -service=travis-c... | f416f6e5843cad14a6857a32d4b2059185c11638 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/examples/checkbox/package.json
{
"name": "example",
"version": "0.0.0",
"private": true,
"author": "Andre Staltz",
"license": "MIT",
"dependencies": {
"@cycle/core": "6.0.0-rc2",
"@cycle/dom": "8.0.0-rc2"
},
"devDependencies": {
"browserify": "11.0.1",
"babel": "5.6.... | {
"name": "example",
"version": "0.0.0",
"private": true,
"author": "Andre Staltz",
"license": "MIT",
"dependencies": {
"@cycle/core": "6.0.0-rc2",
"@cycle/dom": "8.0.0-rc2",
"rx": "4.0.6"
},
"devDependencies": {
"browserify": "11.0.1",
"babel": "5.6.x",
"babelify": "6.1.x",
... | <|file_sep|>original/examples/checkbox/package.json
{
"name": "example",
"version": "0.0.0",
"private": true,
"author": "Andre Staltz",
"license": "MIT",
"dependencies": {
"@cycle/core": "6.0.0-rc2",
"@cycle/dom": "8.0.0-rc2"
},
"devDependencies": {
"browserify": "11.0.1",
"babel": "5.6.... | 22ea9f566b1490cba3fcb523c32caf71e7c0a6da | examples/checkbox/package.json | examples/checkbox/package.json | JSON |
<|file_sep|>original/.pyup.yml
schedule: "every month"
search: False
requirements:
- requirements/default.txt:
update: all
pin: true
- docs/requirements.txt
update: all
pin: true
<|file_sep|>current/.pyup.yml
schedule: "every month"
search: False
requirements:
- requirements/default.txt:
... | schedule: "every month"
search: False
requirements:
- requirements/default.txt:
update: all
pin: true
- docs/requirements.txt:
update: all
pin: true | <|file_sep|>original/.pyup.yml
schedule: "every month"
search: False
requirements:
- requirements/default.txt:
update: all
pin: true
- docs/requirements.txt
update: all
pin: true
<|file_sep|>current/.pyup.yml
schedule: "every month"
search: False
requirements:
- requirements/default.txt:
... | 53e2a24dc09362c0ef7167ba5e67dada34e52f1a | .pyup.yml | .pyup.yml | YAML |
<|file_sep|>original/configs/talos_config.json
{
"applabel": "['worker3']",
"durable": "true",
"sources": {
"talos-jobs": {
"exchange": "exchange/build/normalized",
"topic": "build.#.#"
}
}
}
<|file_sep|>current/configs/talos_config.json
{
"applabel": "['worke... | {
"applabel": "worker3",
"durable": "true",
"sources": {
"talos-jobs": {
"exchange": "exchange/build/normalized",
"topic": "build.#.#"
}
}
} | <|file_sep|>original/configs/talos_config.json
{
"applabel": "['worker3']",
"durable": "true",
"sources": {
"talos-jobs": {
"exchange": "exchange/build/normalized",
"topic": "build.#.#"
}
}
}
<|file_sep|>current/configs/talos_config.json
{
"applabel": "['worke... | b27b2f0b44fc30b5cd65e9e711fb7fac4ad0de9e | configs/talos_config.json | configs/talos_config.json | JSON |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 1.9.2
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
notifications:
irc: "irc.freenode.org#mongrel2-ruby"
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.... | language: ruby
rvm:
- 1.9.3
- 1.9.2
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
notifications:
irc: "irc.freenode.org#mongrel2-ruby"
before_install:
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:paw... | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 1.9.2
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
notifications:
irc: "irc.freenode.org#mongrel2-ruby"
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.... | 28ba0aa733e598dbbd4f52b208068dbac4feffe3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/docs/app/index.html
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Julz</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link rel="stylesheet" href="{{rootURL}}assets/ven... | <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Julz</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link rel="stylesheet" href... | <|file_sep|>original/docs/app/index.html
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Julz</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link rel="stylesheet" href="{{rootURL}}assets/ven... | 27ad0a2831243da34f5f370936203bca6fb006d1 | docs/app/index.html | docs/app/index.html | HTML |
<|file_sep|>original/tests/client/unit/s.Spec.js
expect(s).to.have.property('config');
expect(s).to.have.property('init');
});
it('should contains ship properties', function () {
expect(s.config.ship).to.be.an('object');
expect(s).to.have.deep.property('config.ship.hull');
expect(s).to.have... | describe('Satellite game', function () {
it('should exists', function () {
expect(s).to.be.an('object');
expect(s).to.have.property('config');
expect(s).to.have.property('init');
});
it('should contains ship properties', function () {
expect(s.config.ship).to.be.an('object');
expect(s).... | <|file_sep|>original/tests/client/unit/s.Spec.js
expect(s).to.have.property('config');
expect(s).to.have.property('init');
});
it('should contains ship properties', function () {
expect(s.config.ship).to.be.an('object');
expect(s).to.have.deep.property('config.ship.hull');
expect(s).to.have... | b880a6b86ac57efd47c50bae352393583e0934a7 | tests/client/unit/s.Spec.js | tests/client/unit/s.Spec.js | JavaScript |
<|file_sep|>original/README.md
# grunt-graphviz
> Compile DOT files
## Getting Started
This plugin requires Grunt `~0.4.1`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://g... | # grunt-graphviz
> Compile DOT files
## Dependencies
* Graphviz
### Install
Linux Gentoo
```shell
emerge -av media-gfx/graphviz
```
## Getting Started
This plugin requires Grunt `~0.4.1`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting... | <|file_sep|>original/README.md
# grunt-graphviz
> Compile DOT files
## Getting Started
This plugin requires Grunt `~0.4.1`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://g... | 946a41ce1cce97c42e72a9f8ead6e6dd7596249b | README.md | README.md | Markdown |
<|file_sep|>original/src/Kappa/FileSystem/FileSystem.php
\Nette\Utils\FileSystem::delete($object->getInfo()->getPathname());
}
/**
* @param File|Directory $object
* @param string $newName
* @param bool $overwrite
* @return Directory|File
* @throws InvalidArgumentException
*/
public static function ren... | \Nette\Utils\FileSystem::delete($object->getInfo()->getPathname());
}
/**
* @param File|Directory $object
* @param string $newName
* @param bool $overwrite
* @return Directory|File
* @throws InvalidArgumentException
*/
public static function rename($object, $newName, $overwrite = true)
{
if (!$obje... | <|file_sep|>original/src/Kappa/FileSystem/FileSystem.php
\Nette\Utils\FileSystem::delete($object->getInfo()->getPathname());
}
/**
* @param File|Directory $object
* @param string $newName
* @param bool $overwrite
* @return Directory|File
* @throws InvalidArgumentException
*/
public static function ren... | 3570714bd8d9afc6dc6fd70cdb42c6c2139cb881 | src/Kappa/FileSystem/FileSystem.php | src/Kappa/FileSystem/FileSystem.php | PHP |
<|file_sep|>original/www/_include.php
<?php
$path_extra = dirname(dirname(__FILE__)) . '/lib';
$path = ini_get('include_path');
$path = $path_extra . PATH_SEPARATOR . $path;
ini_set('include_path', $path);
require_once('SimpleSAML/Configuration.php');
SimpleSAML_Configuration::init(dirname(dirname(__FILE__)) . '/... | <?php
/* Remove magic quotes. */
if(get_magic_quotes_gpc()) {
foreach(array('_GET', '_POST', '_COOKIE', '_REQUEST') as $a) {
foreach($$a as &$v) {
/* We don't use array-parameters anywhere.
* Ignore any that may appear.
*/
if(is_array($v)) {
continue;
}
/* Unescape the string. */
$v = s... | <|file_sep|>original/www/_include.php
<?php
$path_extra = dirname(dirname(__FILE__)) . '/lib';
$path = ini_get('include_path');
$path = $path_extra . PATH_SEPARATOR . $path;
ini_set('include_path', $path);
require_once('SimpleSAML/Configuration.php');
SimpleSAML_Configuration::init(dirname(dirname(__FILE__)) . '/... | 762f558fa44d25e6035a95d4d0bec266cb86d7fd | www/_include.php | www/_include.php | PHP |
<|file_sep|>original/build.properties
mc_version=1.10.2
forge_version=12.18.1.2095
mappings=snapshot_20160518
ccl_version=2.5.0.+
ccc_version=2.4.0.+
mod_version=2.2.0
<|file_sep|>current/build.properties
mc_version=1.10.2
forge_version=12.18.1.2095
mappings=snapshot_20160518
ccl_version=2.5.0.+
ccc_version=2.4.0.+
mod... | mc_version=1.10.2
forge_version=12.18.1.2095
mappings=snapshot_20161111
ccl_version=2.5.0.+
ccc_version=2.4.0.+
mod_version=2.2.0 | <|file_sep|>original/build.properties
mc_version=1.10.2
forge_version=12.18.1.2095
mappings=snapshot_20160518
ccl_version=2.5.0.+
ccc_version=2.4.0.+
mod_version=2.2.0
<|file_sep|>current/build.properties
mc_version=1.10.2
forge_version=12.18.1.2095
mappings=snapshot_20160518
ccl_version=2.5.0.+
ccc_version=2.4.0.+
mod... | 5c28df1cb6d8681e412fca4cf18bc14487b4a0d5 | build.properties | build.properties | INI |
<|file_sep|>.travis.yml.diff
original:
- nightly
updated:
- nightly # ignore errors, see below
- hhvm # ignore errors, see below
<|file_sep|>.travis.yml.diff
original:
dist: precise
updated:
dist: trusty
<|file_sep|>.travis.yml.diff
original:
# also test against HHVM, but require "trusty" and ignore errors
update... | - 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly # ignore errors, see below
- hhvm # ignore errors, see below
# lock distro so new future defaults will not break the build
dist: trusty
matrix:
allow_failures:
- php: nightly
- php: hhvm
before_script:
- composer install
script:
- vendor/bin/phpu... | <|file_sep|>.travis.yml.diff
original:
- nightly
updated:
- nightly # ignore errors, see below
- hhvm # ignore errors, see below
<|file_sep|>.travis.yml.diff
original:
dist: precise
updated:
dist: trusty
<|file_sep|>.travis.yml.diff
original:
# also test against HHVM, but require "trusty" and ignore errors
update... | 01027add5d74cd4b3b035c8fc5822cce8065fa1c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/tests/test_commands.py
def test_assert_calls(self):
initial_path = os.environ['PATH']
with assert_calls('foobar'):
call(['foobar'])
with self.assertRaises(AssertionError):
with assert_calls('foo'):
pass
... | pass
# The context manager should clean up $PATH again
self.assertEqual(os.environ['PATH'], initial_path)
def test_assert_calls_with_args(self):
with assert_calls('foo', ['bar', 'baz']):
call(['foo', 'bar', 'baz'])
with self.assertRa... | <|file_sep|>original/tests/test_commands.py
def test_assert_calls(self):
initial_path = os.environ['PATH']
with assert_calls('foobar'):
call(['foobar'])
with self.assertRaises(AssertionError):
with assert_calls('foo'):
pass
... | d610e03ef113d37d516bd9432bd3f43f3d443563 | tests/test_commands.py | tests/test_commands.py | Python |
<|file_sep|>partner_firstname/exceptions.py.diff
original:
class PartnerNameError(exceptions.ValidationError):
def __init__(self, record, value=None):
updated:
class EmptyNames(exceptions.ValidationError):
def __init__(self, record, value=_("No name is set.")):
<|file_sep|>original/partner_firstname/exceptions.... | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be usefu... | <|file_sep|>partner_firstname/exceptions.py.diff
original:
class PartnerNameError(exceptions.ValidationError):
def __init__(self, record, value=None):
updated:
class EmptyNames(exceptions.ValidationError):
def __init__(self, record, value=_("No name is set.")):
<|file_sep|>original/partner_firstname/exceptions.... | 1dbb1e0f8751f37271178665a727c4eefc49a88c | partner_firstname/exceptions.py | partner_firstname/exceptions.py | Python |
<|file_sep|>Pure/Error.pm.diff
original:
# Ignore die signal.
$SIG{__DIE__} = 'IGNORE';
updated:
<|file_sep|>original/Pure/Error.pm
#------------------------------------------------------------------------------
sub err(@) {
#------------------------------------------------------------------------------
# Process er... | my $errors = Error::Pure::_err($msg);
# Finalize in main on last err.
my $stack = $errors->[-1]->{'stack'};
if ($stack->[-1]->{'class'} eq 'main'
&& ! grep({ $_ eq 'eval {...}' || $_ =~ /^eval '/}
map { $_->{'sub'} } @{$stack})) {
CORE::die Error::Pure::Output::Text::err_pretty($errors);
# Die for eval.
... | <|file_sep|>Pure/Error.pm.diff
original:
# Ignore die signal.
$SIG{__DIE__} = 'IGNORE';
updated:
<|file_sep|>original/Pure/Error.pm
#------------------------------------------------------------------------------
sub err(@) {
#------------------------------------------------------------------------------
# Process er... | 6c97130b1325a8cf169ddd3a1ab571ca9a2ca033 | Pure/Error.pm | Pure/Error.pm | Perl |
<|file_sep|>.travis.yml.diff
original:
- npm install --depth 0 --silent
updated:
- npm install --depth 0
<|file_sep|>original/.travis.yml
language: dart
dart:
- stable
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb ... |
language: dart
dart:
- stable
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
- dart --version
- node --version
- npm --version
install:
- npm install --depth 0
script:
- npm run ... | <|file_sep|>.travis.yml.diff
original:
- npm install --depth 0 --silent
updated:
- npm install --depth 0
<|file_sep|>original/.travis.yml
language: dart
dart:
- stable
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb ... | 71e8ce22a963c4e3ec91bc320babb02e0de9d0bc | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/generators/mangopay/install_generator.rb.diff
original:
source_root File.expand_path('../templates', __FILE__)
updated:
source_root File.expand_path('../../templates', __FILE__)
<|file_sep|>original/lib/generators/mangopay/install_generator.rb
require 'rails/generators/base'
require 'mangopa... | require 'rails/generators/base'
require 'mangopay'
module Mangopay
module Generators
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../../templates', __FILE__)
argument :client_id, type: :string,
desc: 'The id you want to use to query the MangoPay API (must mat... | <|file_sep|>lib/generators/mangopay/install_generator.rb.diff
original:
source_root File.expand_path('../templates', __FILE__)
updated:
source_root File.expand_path('../../templates', __FILE__)
<|file_sep|>original/lib/generators/mangopay/install_generator.rb
require 'rails/generators/base'
require 'mangopa... | f05d1f70820e0ccde6030b3a836a1aa72bb6ca0e | lib/generators/mangopay/install_generator.rb | lib/generators/mangopay/install_generator.rb | Ruby |
<|file_sep|>README.md.diff
original:
Installation
updated:
<img src="https://docs.checkout.com/img/Logo-black.png" alt="Checkout.com" width="380"/>
## Installation 
S... |
## Installation 
See the [installation guide](https://github.com/checkout/checkout-woocommerce-plugin/wiki/Installation) on our [Wiki](https://github.com/checkout/chec... | <|file_sep|>README.md.diff
original:
Installation
updated:
<img src="https://docs.checkout.com/img/Logo-black.png" alt="Checkout.com" width="380"/>
## Installation 
S... | 3d12dc562a4b4020298d64b288f10602a1afaf16 | README.md | README.md | Markdown |
<|file_sep|>src/http-configurable.js.diff
original:
httpConfigurable.thenApply = function(onFulfilled, onRejected, onProgress) {
updated:
httpConfigurable.then = function(onFulfilled, onRejected, onProgress) {
<|file_sep|>original/src/http-configurable.js
httpConfigurable.accept = function(mimeType) {
return this.hea... | };
httpConfigurable.then = function(onFulfilled, onRejected, onProgress) {
var applies = {
onFulfilled: onFulfilled,
onRejected: onRejected,
onProgress: onProgress
};
this.thenApplies.push(applies);
return this;
};
httpConfigurable.thenApply = httpConfigurable.then;
httpConfigurable.mergeThenApp... | <|file_sep|>src/http-configurable.js.diff
original:
httpConfigurable.thenApply = function(onFulfilled, onRejected, onProgress) {
updated:
httpConfigurable.then = function(onFulfilled, onRejected, onProgress) {
<|file_sep|>original/src/http-configurable.js
httpConfigurable.accept = function(mimeType) {
return this.hea... | bc414ecb41fce5ace259166ed366763f007f88b4 | src/http-configurable.js | src/http-configurable.js | JavaScript |
<|file_sep|>original/ISSUE_TEMPLATE.md
When you open an issue, it would be super helpful if you could include the following information, if relevant: :100:
- [ ] What browser are you using? (Or are you using the Mac App?)
- [ ] What OS are you using?
- [ ] What version of Metabase are you using?
- [ ] What database are... | When you open an issue, please fill in the blanks, if relevant:
* I am using the _____ browser.
* My computer's OS is _____.
* My database is _____.
* My Metabase version is _____. | <|file_sep|>original/ISSUE_TEMPLATE.md
When you open an issue, it would be super helpful if you could include the following information, if relevant: :100:
- [ ] What browser are you using? (Or are you using the Mac App?)
- [ ] What OS are you using?
- [ ] What version of Metabase are you using?
- [ ] What database are... | c725f8bb0ce2225b6fc4c20f7c503fe74cdf5d46 | ISSUE_TEMPLATE.md | ISSUE_TEMPLATE.md | Markdown |
<|file_sep|>src/sentry/api/serializers/models/grouptagvalue.py.diff
original:
from sentry.models import GroupTagValue
updated:
from sentry.models import GroupTagValue, TagValue
<|file_sep|>src/sentry/api/serializers/models/grouptagvalue.py.diff
original:
updated:
def get_attrs(self, item_list, user):
asser... | value__in=[i.value for i in item_list]
)
)
result = {}
for item in item_list:
result[item] = {
'name': tagvalues[item.value].get_label(),
}
return result
def serialize(self, obj, attrs, user):
d = {
... | <|file_sep|>src/sentry/api/serializers/models/grouptagvalue.py.diff
original:
from sentry.models import GroupTagValue
updated:
from sentry.models import GroupTagValue, TagValue
<|file_sep|>src/sentry/api/serializers/models/grouptagvalue.py.diff
original:
updated:
def get_attrs(self, item_list, user):
asser... | 8433fe04ad1230329de2c209a8625cd4b36b63f8 | src/sentry/api/serializers/models/grouptagvalue.py | src/sentry/api/serializers/models/grouptagvalue.py | Python |
<|file_sep|>original/container/wordpress/wordpress_run.sh
<|file_sep|>current/container/wordpress/wordpress_run.sh
<|file_sep|>updated/container/wordpress/wordpress_run.sh | #!/bin/bash
t=1
while ! nc -z localhost 80
do
sleep 1
t=$((t+1))
done
echo "Waiting time for Apache to start (secs): $t"
echo -en "GET / HTTP/1.0\n\n\n"|nc localhost 80 | <|file_sep|>original/container/wordpress/wordpress_run.sh
<|file_sep|>current/container/wordpress/wordpress_run.sh
<|file_sep|>updated/container/wordpress/wordpress_run.sh
#!/bin/bash
t=1
while ! nc -z localhost 80
do
sleep 1
t=$((t+1))
done
echo "Waiting time for Apache to start (secs): $t"
echo -en "GET / HTT... | b7649aac4f6959ffc7c6a69d6c93a834895eff23 | container/wordpress/wordpress_run.sh | container/wordpress/wordpress_run.sh | Shell |
<|file_sep|>original/src/foam/nanos/http/WebAgentServlet.java
public class WebAgentServlet
extends HttpServlet
implements ContextAware
{
protected WebAgent agent_;
protected X x_;
public WebAgentServlet(WebAgent agent) {
agent_ = agent;
}
public X getX() { return x_; }
public void ... | implements ContextAware
{
protected WebAgent agent_;
protected X x_;
public WebAgentServlet(WebAgent agent) {
agent_ = agent;
}
public X getX() { return x_; }
public void setX(X x) { x_ = x; }
@Override
public void service(HttpServletRequest req, HttpServletResponse resp)
throw... | <|file_sep|>original/src/foam/nanos/http/WebAgentServlet.java
public class WebAgentServlet
extends HttpServlet
implements ContextAware
{
protected WebAgent agent_;
protected X x_;
public WebAgentServlet(WebAgent agent) {
agent_ = agent;
}
public X getX() { return x_; }
public void ... | 20eaaf53b2a618a73b1627de577b2568ff1ae504 | src/foam/nanos/http/WebAgentServlet.java | src/foam/nanos/http/WebAgentServlet.java | Java |
<|file_sep|>original/spec/integration-real/interactors/group_spec.rb
<|file_sep|>current/spec/integration-real/interactors/group_spec.rb
<|file_sep|>updated/spec/integration-real/interactors/group_spec.rb | require 'spec_helper'
describe Interactors::Groups do
include PavlovSupport
describe 'Created groups appear in list' do
it 'filters out invalid activities' do
user = create :user, admin: true
as(user) do |pavlov|
groups0 = pavlov.interactor :'groups/list'
expect(groups0.size).to eq... | <|file_sep|>original/spec/integration-real/interactors/group_spec.rb
<|file_sep|>current/spec/integration-real/interactors/group_spec.rb
<|file_sep|>updated/spec/integration-real/interactors/group_spec.rb
require 'spec_helper'
describe Interactors::Groups do
include PavlovSupport
describe 'Created groups appear... | 78c17130e62ed0d3005bffa1fe23eec727c24102 | spec/integration-real/interactors/group_spec.rb | spec/integration-real/interactors/group_spec.rb | Ruby |
<|file_sep|>original/application/libraries/core/class.output.inc.php
}
else
{
echo "[failed]\n";
}
}
/**
* Print given message immediatly
* @param String $msg Message to print
* @return void
*/
public static function cli_println($msg)
{
... | * Print given message immediatly
* @param String $msg Message to print
* @return void
*/
public static function cli_println($msg)
{
require_once("class.m2datetime.inc.php");
echo M2DateTime::get_datetime() . ": " . $msg . "\n";
}
/**
* Trigger a PHP error
*... | <|file_sep|>original/application/libraries/core/class.output.inc.php
}
else
{
echo "[failed]\n";
}
}
/**
* Print given message immediatly
* @param String $msg Message to print
* @return void
*/
public static function cli_println($msg)
{
... | c64450ecd54ae952261ce1dc10b72238394d0566 | application/libraries/core/class.output.inc.php | application/libraries/core/class.output.inc.php | PHP |
<|file_sep|>original/.github/release-drafter.yml
categories:
- title: '⚠️ Breaking Changes'
labels:
- 'breaking'
- title: '🚀 Enhancements'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🗑 Removals'
labels:
- 'removed'
- title: '📖 Documentat... | categories:
- title: '⚠️ Breaking Changes'
labels:
- 'breaking'
- title: '🚨 Deprecated'
labels:
- 'deprecated'
- title: '🚀 Enhancements'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🗑 Removals'
labels:
- 'removed'
- title: '📖... | <|file_sep|>original/.github/release-drafter.yml
categories:
- title: '⚠️ Breaking Changes'
labels:
- 'breaking'
- title: '🚀 Enhancements'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🗑 Removals'
labels:
- 'removed'
- title: '📖 Documentat... | 509c6463f6f9d6a1505c0524d5301d4660ce03ac | .github/release-drafter.yml | .github/release-drafter.yml | YAML |
<|file_sep|>original/drake/CPPLINT.cfg
# C++11 specification (and so might not be well-supported). In the
# case of Drake, our supported minimum platforms are new enough that
# this warning is irrelevant.
filter=-build/c++11
# Disable header_guard warning (see Drake issue #2104).
filter=-build/header_guard
# It's no... | # case of Drake, our supported minimum platforms are new enough that
# this warning is irrelevant.
filter=-build/c++11
# Disable header_guard warning (see Drake issue #2104).
filter=-build/header_guard
# It's not worth lint-gardening the documentation.
exclude_files=doc
# These disabled because they don't pass yet, ... | <|file_sep|>original/drake/CPPLINT.cfg
# C++11 specification (and so might not be well-supported). In the
# case of Drake, our supported minimum platforms are new enough that
# this warning is irrelevant.
filter=-build/c++11
# Disable header_guard warning (see Drake issue #2104).
filter=-build/header_guard
# It's no... | ed1ff3f9ba0b54601ded7a84c88ef44ec965f16a | drake/CPPLINT.cfg | drake/CPPLINT.cfg | INI |
<|file_sep|>original/.github/workflows/main.yml
name: build
on:
push:
schedule:
- cron: '* 0 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
package:
- mutagen-git
- python-httpie-oauth
- keyfinder-cli-git
- homebridge-git
... | name: build
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
package:
- mutagen-git
- python-httpie-oauth
- keyfinder-cli-git
- homebridge-git
- waitress-git
- oggfwd
- do... | <|file_sep|>original/.github/workflows/main.yml
name: build
on:
push:
schedule:
- cron: '* 0 * * *'
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
package:
- mutagen-git
- python-httpie-oauth
- keyfinder-cli-git
- homebridge-git
... | 56369f2362e9317eb48b83e17edad06bc08b2f95 | .github/workflows/main.yml | .github/workflows/main.yml | YAML |
<|file_sep|>original/lib/generators/runner_helper/templates/unit.service.erb
[Unit]
Description=<%= class_name %>
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
ExecStart=/bin/bash -lc 'rails runner -e production "<%= class_name %>Runner.new.servi... | [Unit]
Description=<%= class_name %>
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
ExecStart=/bin/bash -lc 'bundle exec rails runner -e production "<%= class_name %>Runner.new.service"'
User=<%= username %>
Group=<%= username %>
UMask=0002
Resta... | <|file_sep|>original/lib/generators/runner_helper/templates/unit.service.erb
[Unit]
Description=<%= class_name %>
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
ExecStart=/bin/bash -lc 'rails runner -e production "<%= class_name %>Runner.new.servi... | 76a211b01104ff1a4b3f44764c527f46a26b3a89 | lib/generators/runner_helper/templates/unit.service.erb | lib/generators/runner_helper/templates/unit.service.erb | HTML+ERB |
<|file_sep|>original/requirements-dev.txt
ipdb==0.10.1
pytest==3.0.5
pytest-cov==2.4.0
coverage==4.2
flake8==3.2.1
-e .
aiohttp-jinja2==0.13.0
aiohttp-mako==0.3.0
docutils==0.13.1
pygments==2.1.3
aiohttp==1.2.0
yarl==0.8.1
multidict==2.1.4
pytest-aiohttp
<|file_sep|>current/requirements-dev.txt
ipdb==0.10.1
pytest==3.0... | ipdb==0.10.1
pytest==3.0.5
pytest-cov==2.4.0
coverage==4.3
flake8==3.2.1
-e .
aiohttp-jinja2==0.13.0
aiohttp-mako==0.3.0
docutils==0.13.1
pygments==2.1.3
aiohttp==1.2.0
yarl==0.8.1
multidict==2.1.4
pytest-aiohttp | <|file_sep|>original/requirements-dev.txt
ipdb==0.10.1
pytest==3.0.5
pytest-cov==2.4.0
coverage==4.2
flake8==3.2.1
-e .
aiohttp-jinja2==0.13.0
aiohttp-mako==0.3.0
docutils==0.13.1
pygments==2.1.3
aiohttp==1.2.0
yarl==0.8.1
multidict==2.1.4
pytest-aiohttp
<|file_sep|>current/requirements-dev.txt
ipdb==0.10.1
pytest==3.0... | 8051a1e619a00e428d7a22362f66da4ebf513931 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/test/stack-test.js
*
* @license MIT
*/
'use strict';
var assert = require('assert');
var run = require('./fixture/run');
describe('stack', function () {
this.timeout(3000);
it('does not screw up xunit', function (done) {
run('passes', ['-R', 'xunit'], function (code, stdout) {
... | *
* @license MIT
*/
'use strict';
var assert = require('assert');
var run = require('./fixture/run');
describe('stack', function () {
this.timeout(5000);
it('does not screw up xunit', function (done) {
run('passes', ['-R', 'xunit'], function (code, stdout) {
var lines = stdout.split('\n');
... | <|file_sep|>original/test/stack-test.js
*
* @license MIT
*/
'use strict';
var assert = require('assert');
var run = require('./fixture/run');
describe('stack', function () {
this.timeout(3000);
it('does not screw up xunit', function (done) {
run('passes', ['-R', 'xunit'], function (code, stdout) {
... | 41161f46120e0e024a32e5cb062c2e5586bf57ce | test/stack-test.js | test/stack-test.js | JavaScript |
<|file_sep|>original/projects/OG-Bloomberg/build.properties
projects.dir = ${basedir}/..
wkspace.dir = ${projects.dir}/..
common.dir = ${wkspace.dir}/common
config.dir = ${basedir}/config
install.dir = ${basedir}/install
temp.dir = ${basedir}/temp
testng = true
tests.testng.includedgroups = "unit, unitdb"
tests.testng.... | projects.dir = ${basedir}/..
wkspace.dir = ${projects.dir}/..
common.dir = ${wkspace.dir}/common
config.dir = ${basedir}/config
install.dir = ${basedir}/install
temp.dir = ${basedir}/temp
testng = true
tests.testng.threads = 1
tests.testng.includedgroups = "unit, unitdb"
tests.testng.exludedgroups = "integration, units... | <|file_sep|>original/projects/OG-Bloomberg/build.properties
projects.dir = ${basedir}/..
wkspace.dir = ${projects.dir}/..
common.dir = ${wkspace.dir}/common
config.dir = ${basedir}/config
install.dir = ${basedir}/install
temp.dir = ${basedir}/temp
testng = true
tests.testng.includedgroups = "unit, unitdb"
tests.testng.... | 66b25e1f1b46503468c29038baece05c4ad2be8b | projects/OG-Bloomberg/build.properties | projects/OG-Bloomberg/build.properties | INI |
<|file_sep|>Tests/AroundTheTableTests/Models/CodableExtensionsTests.swift.diff
original:
let expected = try JSONEncoder().encode([
updated:
let resultAsDictionary = try JSONDecoder().decode([String: Int].self, from: result)
let expected = [
<|file_sep|>original/Tests/AroundTheTableTests/Models/C... |
/* CountableClosedRange */
func testEncodeCountableClosedRange() throws {
let input = 2...4
let result = try JSONEncoder().encode(input)
let resultAsDictionary = try JSONDecoder().decode([String: Int].self, from: result)
let expected = [
"lowerBound": 2,
... | <|file_sep|>Tests/AroundTheTableTests/Models/CodableExtensionsTests.swift.diff
original:
let expected = try JSONEncoder().encode([
updated:
let resultAsDictionary = try JSONDecoder().decode([String: Int].self, from: result)
let expected = [
<|file_sep|>original/Tests/AroundTheTableTests/Models/C... | 4dbc2c0a5767455e58f694218b6abee94c50403f | Tests/AroundTheTableTests/Models/CodableExtensionsTests.swift | Tests/AroundTheTableTests/Models/CodableExtensionsTests.swift | Swift |
<|file_sep|>original/README.md
FitbitAnalysisTools
===================
My tools for analyzing fitbit data.
<|file_sep|>current/README.md
FitbitAnalysisTools
===================
My tools for analyzing fitbit data.
<|file_sep|>updated/README.md | FitbitAnalysisTools
===================
My tools for analyzing fitbit data.
## FitbitDataFetch
A very simple Java programming using Clay Gregory's marvellous [jFitbit](https://github.com/claygregory/jfitbit) to grab a Fitbit account's intraday time-series data.
Produces a file called FitbitData which has timestam... | <|file_sep|>original/README.md
FitbitAnalysisTools
===================
My tools for analyzing fitbit data.
<|file_sep|>current/README.md
FitbitAnalysisTools
===================
My tools for analyzing fitbit data.
<|file_sep|>updated/README.md
FitbitAnalysisTools
===================
My tools for analyzing fitbit da... | a21e548a28538cee88ef3117cb1e3350b30cd87a | README.md | README.md | Markdown |
<|file_sep|>original/test/modules/version/program.js
define(function (require) {
var a = require('./a.js?v=1.0');
var a2 = require('./a.js?v=2.0');
var test = require('../../test');
test.assert(a.foo === 1, 'module version.');
test.assert(a.foo === a2.foo, 'module version.');
test.done();
});
<|file_sep... | define(function (require) {
var a = require('./a.js?v=1.0');
var a2 = require('./a.js?v=2.0');
var test = require('../../test');
test.assert(a.foo === 1, a.foo);
test.assert(a.foo === a2.foo, a2.foo);
test.done();
}); | <|file_sep|>original/test/modules/version/program.js
define(function (require) {
var a = require('./a.js?v=1.0');
var a2 = require('./a.js?v=2.0');
var test = require('../../test');
test.assert(a.foo === 1, 'module version.');
test.assert(a.foo === a2.foo, 'module version.');
test.done();
});
<|file_sep... | 399a94ec926e48935a9a2d7139c1ef477125bd25 | test/modules/version/program.js | test/modules/version/program.js | JavaScript |
<|file_sep|>original/packages/da/data-constructors.yaml
<|file_sep|>current/packages/da/data-constructors.yaml
<|file_sep|>updated/packages/da/data-constructors.yaml | homepage: https://github.com/daig/data-constructors#readme
changelog-type: ''
hash: 6f854e967ded9be058569121ffe2abcc88ffca6d9538b88c8d9492f42042477b
test-bench-deps:
base: -any
criterion: -any
deepseq: -any
QuickCheck: -any
data-constructors: -any
maintainer: daig@sodality.cc
synopsis: Generically compare dat... | <|file_sep|>original/packages/da/data-constructors.yaml
<|file_sep|>current/packages/da/data-constructors.yaml
<|file_sep|>updated/packages/da/data-constructors.yaml
homepage: https://github.com/daig/data-constructors#readme
changelog-type: ''
hash: 6f854e967ded9be058569121ffe2abcc88ffca6d9538b88c8d9492f42042477b
tes... | bb6083cd4f39094a077b247f6bc787a00c111fdd | packages/da/data-constructors.yaml | packages/da/data-constructors.yaml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
install:
- pip install -r test-requirements.txt
- pip install -e .
script:
- nosetests -q --with-coverage --cover-package=pycron
sudo: false
after_success:
- coveralls
<|file_sep|>current/.travis.yml
lan... | language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
install:
- pip install -r test-requirements.txt
- pip install -e .
script:
- nosetests -q --with-coverage --cover-package=pycron
sudo: false
after_success:
- coveralls | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
install:
- pip install -r test-requirements.txt
- pip install -e .
script:
- nosetests -q --with-coverage --cover-package=pycron
sudo: false
after_success:
- coveralls
<|file_sep|>current/.travis.yml
lan... | b0ee60d2594d94a2b4c9d5faeefa93fb002a5cf1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/www/robots.txt
User-agent: *
Disallow: osdial
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow: ivr
Disallow: reports
Disallow: recordings
Disallow: completed
<|file_sep|>current/www/robots.txt
User-agent: *
Disallow: osdial
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow: ... | User-agent: Wget
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow: reports
Disallow: recordings
Disallow: completed
User-agent: *
Disallow: osdial
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow... | <|file_sep|>original/www/robots.txt
User-agent: *
Disallow: osdial
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow: ivr
Disallow: reports
Disallow: recordings
Disallow: completed
<|file_sep|>current/www/robots.txt
User-agent: *
Disallow: osdial
Disallow: index.php
Disallow: agent
Disallow: admin
Disallow: ... | d6c38ad5da7b55cdca79e282977a8add2beb1dbf | www/robots.txt | www/robots.txt | Text |
<|file_sep|>project/Versions.scala.diff
original:
val project = "0.4.0"
updated:
val project = "0.4.1-SNAPSHOT"
<|file_sep|>project/Versions.scala.diff
original:
val spring = "4.0.9.RELEASE"
updated:
val spring = "4.1.6.RELEASE"
<|file_sep|>original/project/Versions.scala
val junit = "4.11"
val kafka = "0.... | val junit = "4.11"
val kafka = "0.8.2.1"
val mockito = "1.10.19"
val mongoDb = "3.0.1"
val spring = "4.1.6.RELEASE"
val springSecurity = "4.0.1.RELEASE"
val springSecurityOauth = "2.0.7.RELEASE"
val dustjs = "2.6.1"
val httpComponents = "4.4.1"
val webjarsLocator = "0.23"
val zookeeper =... | <|file_sep|>project/Versions.scala.diff
original:
val project = "0.4.0"
updated:
val project = "0.4.1-SNAPSHOT"
<|file_sep|>project/Versions.scala.diff
original:
val spring = "4.0.9.RELEASE"
updated:
val spring = "4.1.6.RELEASE"
<|file_sep|>original/project/Versions.scala
val junit = "4.11"
val kafka = "0.... | ff0d3d2686ca1c64b695bab2f797d63b0d0c5229 | project/Versions.scala | project/Versions.scala | Scala |
<|file_sep|>original/AMPopTip.podspec
Pod::Spec.new do |s|
s.name = "AMPopTip"
s.version = "4.2.0"
s.summary = "Animated popover, great for subtle UI tips and onboarding."
s.description = <<-DESC
Animated popover that pops out of a frame. You can specify the
... | s.name = "AMPopTip"
s.version = "4.2.0"
s.summary = "Animated popover, great for subtle UI tips and onboarding."
s.description = <<-DESC
Animated popover that pops out of a frame. You can specify the
direction of the popover and the arrow that poi... | <|file_sep|>original/AMPopTip.podspec
Pod::Spec.new do |s|
s.name = "AMPopTip"
s.version = "4.2.0"
s.summary = "Animated popover, great for subtle UI tips and onboarding."
s.description = <<-DESC
Animated popover that pops out of a frame. You can specify the
... | b013d2f3f5693ac703c7c46f7c0eaa28d5e9ca0d | AMPopTip.podspec | AMPopTip.podspec | Ruby |
<|file_sep|>original/raygun_client.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.0'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidiane... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.1'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s.homepage = 'https://github... | <|file_sep|>original/raygun_client.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.0'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidiane... | 20ff52ef0726382db3533b836a4321af94fd7721 | raygun_client.gemspec | raygun_client.gemspec | Ruby |
<|file_sep|>original/src/Bull/Render/Buffer/VertexArrayObject.cpp
#include <Bull/Render/Buffer/VertexArrayObject.hpp>
#include <Bull/Render/OpenGL.hpp>
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!gl::isVertexArray(m_vao))
... | #include <Bull/Render/Buffer/VertexArrayObject.hpp>
#include <Bull/Render/OpenGL.hpp>
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!m_vao)
{
throw RuntimeError("Failed to create VAO");
}
}
V... | <|file_sep|>original/src/Bull/Render/Buffer/VertexArrayObject.cpp
#include <Bull/Render/Buffer/VertexArrayObject.hpp>
#include <Bull/Render/OpenGL.hpp>
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!gl::isVertexArray(m_vao))
... | 4dabbcc70d3966c071c9e24b07a77d6ef40664b7 | src/Bull/Render/Buffer/VertexArrayObject.cpp | src/Bull/Render/Buffer/VertexArrayObject.cpp | C++ |
<|file_sep|>original/tests/test_exception_wrapping.py
<|file_sep|>current/tests/test_exception_wrapping.py
<|file_sep|>updated/tests/test_exception_wrapping.py | import safe
def test_simple_exception():
class MockReponse(object):
def json(self):
return {'status': False,
'method': 'synchronize',
'module': 'cluster',
'error': {'message': 'Example error'}}
exception = safe.library.raise_from... | <|file_sep|>original/tests/test_exception_wrapping.py
<|file_sep|>current/tests/test_exception_wrapping.py
<|file_sep|>updated/tests/test_exception_wrapping.py
import safe
def test_simple_exception():
class MockReponse(object):
def json(self):
return {'status': False,
'me... | 9a811ffcd7bb743b4c739667187d31f32429338a | tests/test_exception_wrapping.py | tests/test_exception_wrapping.py | Python |
<|file_sep|>original/package.json
"name": "Lee Smith",
"email": "notwink@gmail.com"
}
],
"directories": {
"lib": "."
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"install": "node-gyp configure --arch=ia32 build",
"test": "cd test && node run-tests.js"
},
"dependencie... | "name": "Lee Smith",
"email": "notwink@gmail.com"
}
],
"directories": {
"lib": "."
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"install": "node-gyp configure --arch=ia32 build",
"test": "cd test && node run-tests.js"
},
"dependencies": {
"bindings": "^1.2.1",
... | <|file_sep|>original/package.json
"name": "Lee Smith",
"email": "notwink@gmail.com"
}
],
"directories": {
"lib": "."
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"install": "node-gyp configure --arch=ia32 build",
"test": "cd test && node run-tests.js"
},
"dependencie... | 1bcf2f35f9764ba971352284a118081de4e7bcb3 | package.json | package.json | JSON |
<|file_sep|>original/app/config/parameters.yml
host:
username:
password:
port: 587
mandrill:
api_key:
template_name:
template_content: []
global_merge_vars:
COMPANY: myCompany
SENDERMAIL: sender@company.com
swift_mailer:
charset: utf-8
smtp_auth: true
host:
... | username:
password:
port: 587
mandrill:
api_key:
template_name:
template_content: []
global_merge_vars:
COMPANY: myCompany
SENDERMAIL: sender@company.com
swift_mailer:
charset: utf-8
smtp_auth: true
host:
username:
password:
port: 587
security: tls... | <|file_sep|>original/app/config/parameters.yml
host:
username:
password:
port: 587
mandrill:
api_key:
template_name:
template_content: []
global_merge_vars:
COMPANY: myCompany
SENDERMAIL: sender@company.com
swift_mailer:
charset: utf-8
smtp_auth: true
host:
... | 5db6c39b9250421ac9af11757f513969cb94442d | app/config/parameters.yml | app/config/parameters.yml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.