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/6234486/A.hs
let sortedPairs = sortBy (comparing head) . map sort $ pairs
let ans = solve groupA groupB (tail sortedPairs) where
[left, right] = head sortedPairs
groupA = Set.singleton left
groupB = Set.singleton right
solve _ _ [] = True
... | n <- readLn
pairs <- replicateM n $ words <$> getLine
let sortedPairs = sortBy (comparing head) . map sort $ pairs
let ans = solve groupA groupB (tail sortedPairs) where
[left, right] = head sortedPairs
groupA = Set.singleton left
groupB = Set.singleton right
s... | <|file_sep|>original/6234486/A.hs
let sortedPairs = sortBy (comparing head) . map sort $ pairs
let ans = solve groupA groupB (tail sortedPairs) where
[left, right] = head sortedPairs
groupA = Set.singleton left
groupB = Set.singleton right
solve _ _ [] = True
... | c5a9420265850c7f83896819e43f1b75a834a5d8 | 6234486/A.hs | 6234486/A.hs | Haskell |
<|file_sep|>packages/element-preact/src/index.ts.diff
original:
updated:
/** @jsx h */
<|file_sep|>original/packages/element-preact/src/index.ts
export default class extends Element {
disconnectedCallback() {
if (super.disconnectedCallback) {
super.disconnectedCallback();
}
render(null, this.rend... | }
renderer() {
const dom = mapDom.get(this);
mapDom.set(this, render(this.render(), this.renderRoot, dom));
}
}
export function h(name, props, ...chren) {
if (name.prototype instanceof HTMLElement) {
define(name);
name = getName(name);
}
return preactH(name, props, ...chren);
}
export decl... | <|file_sep|>packages/element-preact/src/index.ts.diff
original:
updated:
/** @jsx h */
<|file_sep|>original/packages/element-preact/src/index.ts
export default class extends Element {
disconnectedCallback() {
if (super.disconnectedCallback) {
super.disconnectedCallback();
}
render(null, this.rend... | f3e39fd6c76f3c47805fc371ed4c8b98640a34cc | packages/element-preact/src/index.ts | packages/element-preact/src/index.ts | TypeScript |
<|file_sep|>original/test/src/engine/BMAttackSurrenderTest.php
*/
public function testValidate_attack()
{
// $game = new TestDummyGame;
//
// $die1 = new BMDie;
// $die1->init(6);
// $die1->value = 6;
//
// $die2 = new BMDie;
// $die2->init(6);
// $die2->val... | */
public function testValidate_attack()
{
$game = new TestDummyGame;
$die1 = new BMDie;
$die1->init(6);
$die1->value = 6;
$die2 = new BMDie;
$die2->init(6);
$die2->value = 1;
// Basic error handling
$this->assertTrue($this->object-... | <|file_sep|>original/test/src/engine/BMAttackSurrenderTest.php
*/
public function testValidate_attack()
{
// $game = new TestDummyGame;
//
// $die1 = new BMDie;
// $die1->init(6);
// $die1->value = 6;
//
// $die2 = new BMDie;
// $die2->init(6);
// $die2->val... | 42147c247af64251eb2228be17394af4f594c445 | test/src/engine/BMAttackSurrenderTest.php | test/src/engine/BMAttackSurrenderTest.php | PHP |
<|file_sep|>.idea/runConfigurations/Generate_Parser.xml.diff
original:
<option name="scriptParameters" value="" />
updated:
<option name="scriptParameters" value=":generateRustLexer :generateRustParser" />
<|file_sep|>.idea/runConfigurations/Generate_Parser.xml.diff
original:
<list>
<optio... | <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate Parser" type="GradleRunConfiguration" factoryName="Gradle" singleton="true">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<optio... | <|file_sep|>.idea/runConfigurations/Generate_Parser.xml.diff
original:
<option name="scriptParameters" value="" />
updated:
<option name="scriptParameters" value=":generateRustLexer :generateRustParser" />
<|file_sep|>.idea/runConfigurations/Generate_Parser.xml.diff
original:
<list>
<optio... | 63a6d9f0008472102986b6753d52dc756567c022 | .idea/runConfigurations/Generate_Parser.xml | .idea/runConfigurations/Generate_Parser.xml | XML |
<|file_sep|>original/test/test-creation.js
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('basic project generator', function () {
beforeEach(function (done) {
helpers.run(path.join( __dirname, '../app'))
.inDir(path.join( __dirname, './tmp'))
.on('end', done);
... | var path = require('path');
var helpers = require('yeoman-generator').test;
describe('basic project generator', function () {
beforeEach(function (done) {
helpers.run(path.join( __dirname, '../app'))
.inDir(path.join( __dirname, './tmp'))
.on('end', done);
});
it('creates expected default files'... | <|file_sep|>original/test/test-creation.js
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('basic project generator', function () {
beforeEach(function (done) {
helpers.run(path.join( __dirname, '../app'))
.inDir(path.join( __dirname, './tmp'))
.on('end', done);
... | 55eb1b46de076d9e76fe767bc98b819ff6eb0d76 | test/test-creation.js | test/test-creation.js | JavaScript |
<|file_sep|>original/requirements.txt
click==6.7
configparser==3.5.0
Flask==1.0.2
Flask-JWT==0.3.2
flask-restplus==0.11.0
Flask-SQLAlchemy==2.3.2
idna==2.7
itsdangerous==0.24
Jinja2==2.10
jsonschema==2.6.0
MarkupSafe==1.0
mysqlclient==1.3.13
passlib==1.7.1
PyJWT==1.6.4
python-dateutil==2.7.3
pytz==2018.5
requests==2.19... | click==6.7
configparser==3.5.0
Flask==1.0.2
Flask-JWT==0.3.2
flask-restplus==0.11.0
Flask-SQLAlchemy==2.3.2
idna==2.7
itsdangerous==0.24
Jinja2==2.10
jsonschema==2.6.0
MarkupSafe==1.1.0
mysqlclient==1.3.13
passlib==1.7.1
PyJWT==1.6.4
python-dateutil==2.7.3
pytz==2018.5
requests==2.19.1
six==1.11.0
SQLAlchemy==1.2.12
ur... | <|file_sep|>original/requirements.txt
click==6.7
configparser==3.5.0
Flask==1.0.2
Flask-JWT==0.3.2
flask-restplus==0.11.0
Flask-SQLAlchemy==2.3.2
idna==2.7
itsdangerous==0.24
Jinja2==2.10
jsonschema==2.6.0
MarkupSafe==1.0
mysqlclient==1.3.13
passlib==1.7.1
PyJWT==1.6.4
python-dateutil==2.7.3
pytz==2018.5
requests==2.19... | f8855b4405ee078c6447c408a5ad440e61c855d5 | requirements.txt | requirements.txt | Text |
<|file_sep|>bin/apt-full.sh.diff
original:
apt-get update &&
updated:
apt update &&
<|file_sep|>bin/apt-full.sh.diff
original:
apt-get dist-upgrade -y &&
updated:
apt full-upgrade -y &&
<|file_sep|>original/bin/apt-full.sh
#!/usr/bin/env bash
# Exit if any errors or if any needed variables are unset
set -e
set -u
# U... | #!/usr/bin/env bash
# Exit if any errors or if any needed variables are unset
set -e
set -u
# Update the list of packages
apt update &&
# Check for broken dependencies
apt-get check &&
# Upgrade to new packages, with smart handling of changing dependencies
apt full-upgrade -y &&
# Purge unneeded dependencies
apt auto... | <|file_sep|>bin/apt-full.sh.diff
original:
apt-get update &&
updated:
apt update &&
<|file_sep|>bin/apt-full.sh.diff
original:
apt-get dist-upgrade -y &&
updated:
apt full-upgrade -y &&
<|file_sep|>original/bin/apt-full.sh
#!/usr/bin/env bash
# Exit if any errors or if any needed variables are unset
set -e
set -u
# U... | 972eee0bf665c9c22c181cfd9f07e72f95bd8357 | bin/apt-full.sh | bin/apt-full.sh | Shell |
<|file_sep|>powerline/config_files/themes/shell/default.json.diff
original:
"name": "branch",
"before": " "
},
{
updated:
<|file_sep|>original/powerline/config_files/themes/shell/default.json
{
"default_module": "powerline.segments.common",
"segments": {
"left": [
{
"name": "hostname",
"b... | "name": "hostname",
"before": " "
},
{
"name": "user"
},
{
"name": "cwd",
"args": {
"dir_limit_depth": 3
}
}
],
"right": [
{
"name": "branch",
"before": " "
}
]
}
} | <|file_sep|>powerline/config_files/themes/shell/default.json.diff
original:
"name": "branch",
"before": " "
},
{
updated:
<|file_sep|>original/powerline/config_files/themes/shell/default.json
{
"default_module": "powerline.segments.common",
"segments": {
"left": [
{
"name": "hostname",
"b... | cfe47adc966010b5a154bedb5e1995c0635ee42c | powerline/config_files/themes/shell/default.json | powerline/config_files/themes/shell/default.json | JSON |
<|file_sep|>construi.yml.diff
original:
volumes:
- /root/.local
updated:
<|file_sep|>original/construi.yml
package:
before:
- versiune
run:
- rm -rf dist
- python setup.py sdist
release:
before:
- package
environment:
- TWINE_USERNAME
- TWINE_PASSWOR... |
package:
before:
- versiune
run:
- rm -rf dist
- python setup.py sdist
release:
before:
- package
environment:
- TWINE_USERNAME
- TWINE_PASSWORD
run:
- /bin/sh -c "pip install twine && twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD"
flake... | <|file_sep|>construi.yml.diff
original:
volumes:
- /root/.local
updated:
<|file_sep|>original/construi.yml
package:
before:
- versiune
run:
- rm -rf dist
- python setup.py sdist
release:
before:
- package
environment:
- TWINE_USERNAME
- TWINE_PASSWOR... | 5c8690402b3a87798c9d474c5588c62b4c617485 | construi.yml | construi.yml | YAML |
<|file_sep|>original/src/components/RecipeModal/ReadModeModal/index.js
</Modal.Body>
<Modal.Footer>
<button onClick={() => props.switchModal(props.recipeId,'update')}>
Edit
</button>
<button onClick={() => props.switchModal(props.recipeId,'delete')}>
Delete
</button>
... | </button>
<button onClick={() => props.switchModal(props.recipeId,'delete')}>
Delete
</button>
<button onClick={props.onHide}>Close</button>
</Modal.Footer>
</div>
);
ReadModeModal.PropTypes = {
recipeId: PropTypes.number.isRequired,
recipe: PropTypes.shape({
name: PropTyp... | <|file_sep|>original/src/components/RecipeModal/ReadModeModal/index.js
</Modal.Body>
<Modal.Footer>
<button onClick={() => props.switchModal(props.recipeId,'update')}>
Edit
</button>
<button onClick={() => props.switchModal(props.recipeId,'delete')}>
Delete
</button>
... | f65229875c39b09eab54526b11738c8cc6097247 | src/components/RecipeModal/ReadModeModal/index.js | src/components/RecipeModal/ReadModeModal/index.js | JavaScript |
<|file_sep|>original/requirements/dev.txt
-r base.txt
flake8==2.6.2
flake8_docstrings==1.0.3
django-debug-toolbar==1.5
freezegun==0.3.7
isort==4.2.5
pytest-django==2.9.1
pytest-cov==2.2.1
pytest-factoryboy==1.1.6
fake-factory==0.6.0
transifex-client==0.12.2
<|file_sep|>current/requirements/dev.txt
-r base.txt
flake8==2... | -r base.txt
flake8==3.3.0
flake8_docstrings==1.0.3
django-debug-toolbar==1.5
freezegun==0.3.7
isort==4.2.5
pytest-django==2.9.1
pytest-cov==2.2.1
pytest-factoryboy==1.1.6
fake-factory==0.6.0
transifex-client==0.12.2 | <|file_sep|>original/requirements/dev.txt
-r base.txt
flake8==2.6.2
flake8_docstrings==1.0.3
django-debug-toolbar==1.5
freezegun==0.3.7
isort==4.2.5
pytest-django==2.9.1
pytest-cov==2.2.1
pytest-factoryboy==1.1.6
fake-factory==0.6.0
transifex-client==0.12.2
<|file_sep|>current/requirements/dev.txt
-r base.txt
flake8==2... | 5963db1f32a64e4cf355e5ba1f8407441531be15 | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/app/views/dashboard/_comments.html.haml
%br
%table#my_comments
%tr
%th Fil initiateur
%th Sujet du commentaire
%th Date
%th Note
%th <abbr title="Nb de réponses">Rép.</abbr>
%th Dernière réponse
- @comments.each do |comment|
- answer = comment.l... | %br
%table#my_comments
%tr
%th Fil initiateur
%th Sujet du commentaire
%th Date
%th Note
%th <abbr title="Nb de réponses">Rép.</abbr>
%th Dernière réponse
- @comments.each do |comment|
- next if comment.node.nil?
- answer = comment.last_answer
%tr
... | <|file_sep|>original/app/views/dashboard/_comments.html.haml
%br
%table#my_comments
%tr
%th Fil initiateur
%th Sujet du commentaire
%th Date
%th Note
%th <abbr title="Nb de réponses">Rép.</abbr>
%th Dernière réponse
- @comments.each do |comment|
- answer = comment.l... | 2090bcf8e6b96ac61aebff72b7696f0b03c11ff9 | app/views/dashboard/_comments.html.haml | app/views/dashboard/_comments.html.haml | Haml |
<|file_sep|>original/vim/syntax/ceos.vim
" Integer with - + or nothing in front
syn match ceosNumber '\d\+'
syn match ceosNumber '[-+]\d\+'
syn region ceosString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell extend
syn match ceosChar "'[^']'"
syn match ceosTypePrefix "\v:\s*" nextgroup=ceosTypes
syn match ceosT... | " Integer with - + or nothing in front
syn match ceosNumber '\d\+'
syn match ceosNumber '[-+]\d\+'
syn region ceosString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell extend
syn match ceosChar "'[^']'"
syn match ceosTypePrefix "\v:\s*" nextgroup=ceosTypes
syn match ceosTypes contained "\v[A-Za-z]+"
syn match ce... | <|file_sep|>original/vim/syntax/ceos.vim
" Integer with - + or nothing in front
syn match ceosNumber '\d\+'
syn match ceosNumber '[-+]\d\+'
syn region ceosString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell extend
syn match ceosChar "'[^']'"
syn match ceosTypePrefix "\v:\s*" nextgroup=ceosTypes
syn match ceosT... | 8f62a09988e5c365bf86aebae9486c1229a5f87e | vim/syntax/ceos.vim | vim/syntax/ceos.vim | VimL |
<|file_sep|>original/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py
<|file_sep|>current/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py
<|file_sep|>updated/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py | from __future__ import absolute_import, print_function
from django.conf import settings
from dimagi.utils.couch.cache import cache_core
from corehq.apps.reports.models import ReportConfig
from django.core.management import BaseCommand
class Command(BaseCommand):
def add_arguments(self, parser):
parser.a... | <|file_sep|>original/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py
<|file_sep|>current/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py
<|file_sep|>updated/corehq/apps/reports/management/commands/find_saved_reports_with_slug.py
from __future__ import absolute_import, p... | 00bf4796086fce1991578dc0db870cb7ce0e2011 | corehq/apps/reports/management/commands/find_saved_reports_with_slug.py | corehq/apps/reports/management/commands/find_saved_reports_with_slug.py | Python |
<|file_sep|>original/blueprints/ember-froala-editor/index.js
/*jshint node:true*/
var RSVP = require('rsvp');
module.exports = {
description: '',
afterInstall: function() {
return RSVP.all([
this.addBowerPackageToProject( 'froala-wysiwyg-editor', '~2.2.1' ),
this.addAddonToProject( 'ember-... | /*jshint node:true*/
var RSVP = require('rsvp');
module.exports = {
description: 'Add bower dependency for froala-wysiwyg-editor and also a project dep for ember-cli-font-awesome',
normalizeEntityName: function() {
// allows us to run ember -g ember-bootstrap-switch and not blow up
// because ember cli no... | <|file_sep|>original/blueprints/ember-froala-editor/index.js
/*jshint node:true*/
var RSVP = require('rsvp');
module.exports = {
description: '',
afterInstall: function() {
return RSVP.all([
this.addBowerPackageToProject( 'froala-wysiwyg-editor', '~2.2.1' ),
this.addAddonToProject( 'ember-... | eaf2692e0e69d10b6f9318380737756656f661eb | blueprints/ember-froala-editor/index.js | blueprints/ember-froala-editor/index.js | JavaScript |
<|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md | The MIT License (MIT)
=====================
Copyright (c) 2015 Joe Sweeney
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... | <|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md
The MIT License (MIT)
=====================
Copyright (c) 2015 Joe Sweeney
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), ... | ac228b1bd608a85c7a05ac37d1cf46712a4a3039 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/squadron/exthandlers/download.py
'password': {
'description': 'Password to use with BASIC Auth',
'type':'string'
}
},
'required': ['url']
}
def _download_file(url, handle, auth=None):
r = requests.get(url, auth=auth, stream=True)
for chunk i... | 'password': {
'description': 'Password to use with BASIC Auth',
'type':'string'
}
},
'required': ['url']
}
def _download_file(url, handle, auth=None):
r = requests.get(url, auth=auth, stream=True)
r.raise_for_status()
for chunk in r.iter_content(chunk_size=4... | <|file_sep|>original/squadron/exthandlers/download.py
'password': {
'description': 'Password to use with BASIC Auth',
'type':'string'
}
},
'required': ['url']
}
def _download_file(url, handle, auth=None):
r = requests.get(url, auth=auth, stream=True)
for chunk i... | 1b9622cedecef0c6c45c11a84bd178adcff752e2 | squadron/exthandlers/download.py | squadron/exthandlers/download.py | Python |
<|file_sep|>original/net/data/valgrind/net_unittests.gtest-tsan_mac.txt
# Former aspacem warnings on Valgrind.
# Tsan still tends to hang on these tests unexpectedly on Mac OS.
# (see https://bugs.kde.org/show_bug.cgi?id=192634 and
# http://code.google.com/p/data-race-test/issues/detail?id=11)
FtpNetworkTransactionTest... | # Former aspacem warnings on Valgrind.
# Tsan still tends to hang on these tests unexpectedly on Mac OS.
# (see https://bugs.kde.org/show_bug.cgi?id=192634 and
# http://code.google.com/p/data-race-test/issues/detail?id=11)
FtpNetworkTransactionTest.*
HttpNetworkLayerTest.GET
HttpNetworkLayerTest.SimpleGET
HttpNetworkTr... | <|file_sep|>original/net/data/valgrind/net_unittests.gtest-tsan_mac.txt
# Former aspacem warnings on Valgrind.
# Tsan still tends to hang on these tests unexpectedly on Mac OS.
# (see https://bugs.kde.org/show_bug.cgi?id=192634 and
# http://code.google.com/p/data-race-test/issues/detail?id=11)
FtpNetworkTransactionTest... | 5c98c1fa91b0a2526fe16d81c6a0a1528a23e926 | net/data/valgrind/net_unittests.gtest-tsan_mac.txt | net/data/valgrind/net_unittests.gtest-tsan_mac.txt | Text |
<|file_sep|>tox.ini.diff
original:
updated:
coverage
<|file_sep|>original/tox.ini
[tox]
envlist = py27, py36
[testenv]
deps =
pytest
mock>=2.0.0
-rrequirements.txt
commands =
pytest {posargs}
<|file_sep|>current/tox.ini
[tox]
envlist = py27, py36
[testenv]
deps =
pytest
coverage
mock>=2.0.0
-rrequirements.t... | [tox]
envlist = py27, py36
[testenv]
deps =
pytest
coverage
mock>=2.0.0
-rrequirements.txt
commands =
coverage erase
coverage run --source glyphsLib --omit "*tests/*" --branch -m pytest {posargs}
coverage report | <|file_sep|>tox.ini.diff
original:
updated:
coverage
<|file_sep|>original/tox.ini
[tox]
envlist = py27, py36
[testenv]
deps =
pytest
mock>=2.0.0
-rrequirements.txt
commands =
pytest {posargs}
<|file_sep|>current/tox.ini
[tox]
envlist = py27, py36
[testenv]
deps =
pytest
coverage
mock>=2.0.0
-rrequirements.t... | a0135db42030556a6081918806355200416e4d8e | tox.ini | tox.ini | INI |
<|file_sep|>original/.travis.yml
cache: bundler
rvm:
- 2.0
- 2.1
- 2.2
notifications:
recipients:
- jordon@envygeeks.io
branches:
only:
- master
<|file_sep|>current/.travis.yml
cache: bundler
rvm:
- 2.0
- 2.1
- 2.2
notifications:
recipients:
- jordon@envygeeks.io
branches:
only:
- ma... | cache: bundler
sudo: false
rvm:
- 2.0
- 2.1
- 2.2
notifications:
recipients:
- jordon@envygeeks.io
branches:
only:
- master | <|file_sep|>original/.travis.yml
cache: bundler
rvm:
- 2.0
- 2.1
- 2.2
notifications:
recipients:
- jordon@envygeeks.io
branches:
only:
- master
<|file_sep|>current/.travis.yml
cache: bundler
rvm:
- 2.0
- 2.1
- 2.2
notifications:
recipients:
- jordon@envygeeks.io
branches:
only:
- ma... | 9b73b589fbccd135f3608bfe8dbe93956e761791 | .travis.yml | .travis.yml | YAML |
<|file_sep|>spec/summary_generation_spec.rb.diff
original:
require 'spec_helper'
updated:
require "spec_helper"
require_relative "../lib/active_record_record/summary_generation"
<|file_sep|>spec/summary_generation_spec.rb.diff
original:
define ActiveRecordRecord::SummaryGeneration do
define "#clear_ar_counts" do
upda... | Thread.current[:do_counts] = false
Thread.current[:objects_key] = :silly_user_key
class StubClass
include ActiveRecordRecord::SummaryGeneration
end
StubClass.new.clear_ar_counts
end
it "will reset all thread current variables" do
expect(Thread.current[:request_start... | <|file_sep|>spec/summary_generation_spec.rb.diff
original:
require 'spec_helper'
updated:
require "spec_helper"
require_relative "../lib/active_record_record/summary_generation"
<|file_sep|>spec/summary_generation_spec.rb.diff
original:
define ActiveRecordRecord::SummaryGeneration do
define "#clear_ar_counts" do
upda... | 60afcad09ced22db7954f034f415b87336f04848 | spec/summary_generation_spec.rb | spec/summary_generation_spec.rb | Ruby |
<|file_sep|>original/tests/app_suite/strmem_tests.cpp
<|file_sep|>current/tests/app_suite/strmem_tests.cpp
<|file_sep|>updated/tests/app_suite/strmem_tests.cpp | /* **********************************************************
* Copyright (c) 2011 Google, Inc. All rights reserved.
* **********************************************************/
/* Dr. Memory: the memory debugger
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of th... | <|file_sep|>original/tests/app_suite/strmem_tests.cpp
<|file_sep|>current/tests/app_suite/strmem_tests.cpp
<|file_sep|>updated/tests/app_suite/strmem_tests.cpp
/* **********************************************************
* Copyright (c) 2011 Google, Inc. All rights reserved.
* ************************************... | bced299ff0077a6babbb2ca1184f330790270d95 | tests/app_suite/strmem_tests.cpp | tests/app_suite/strmem_tests.cpp | C++ |
<|file_sep|>original/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
A... | Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Ver... | <|file_sep|>original/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
A... | eb8512ba129d4993a8da7650192ff9001ae65dcb | metadata/com.dozingcatsoftware.bouncy.txt | metadata/com.dozingcatsoftware.bouncy.txt | Text |
<|file_sep|>original/.github/workflows/verify_examples.yml
<|file_sep|>current/.github/workflows/verify_examples.yml
<|file_sep|>updated/.github/workflows/verify_examples.yml | name: Verify Examples
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
jobs:
verify_examples:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2
wi... | <|file_sep|>original/.github/workflows/verify_examples.yml
<|file_sep|>current/.github/workflows/verify_examples.yml
<|file_sep|>updated/.github/workflows/verify_examples.yml
name: Verify Examples
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash
e... | 2478d2e4edc662bfc27d5b976b640fcdfc2b2249 | .github/workflows/verify_examples.yml | .github/workflows/verify_examples.yml | YAML |
<|file_sep|>original/.travis.yml
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
env:
- DJANGO_VERSION=master
- DJANGO_VERSION=1.8.x
- DJANGO_VERSION=1.7.x
- DJANGO_VERSION=1.6.x
- DJANGO_VERSION=1.5.x
install:
- pip install tox
script:
- tox -e "$TRAVIS_PYTHON_VERSION-$DJANGO_VERSION"
matrix:
exclud... | - "3.3"
- "3.4"
- "pypy"
env:
- DJANGO_VERSION=master
- DJANGO_VERSION=1.8.x
- DJANGO_VERSION=1.7.x
- DJANGO_VERSION=1.6.x
- DJANGO_VERSION=1.5.x
install:
- pip install tox
script:
- tox -e "$TRAVIS_PYTHON_VERSION-$DJANGO_VERSION"
matrix:
exclude:
- python: "2.6"
env: DJANGO_VERSION=master... | <|file_sep|>original/.travis.yml
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "pypy"
env:
- DJANGO_VERSION=master
- DJANGO_VERSION=1.8.x
- DJANGO_VERSION=1.7.x
- DJANGO_VERSION=1.6.x
- DJANGO_VERSION=1.5.x
install:
- pip install tox
script:
- tox -e "$TRAVIS_PYTHON_VERSION-$DJANGO_VERSION"
matrix:
exclud... | 551672ba01a195c5c73ad8a8a5bb840c3884fa53 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/package.json
"dependencies": {
"capitalize": "^2.0.0",
"chance": "^1.0.3",
"handlebars": "^4.0.3",
"ltx": "^2.3.0",
"moment": "^2.10.6",
"num2fraction": "^1.2.2",
"ramda": "^0.27.0",
"require-dir": "^1.0.0",
"tinycolor2": "^1.3.0"
},
"devDependencies": {
... | "dependencies": {
"capitalize": "^2.0.0",
"chance": "^1.0.3",
"handlebars": "^4.0.3",
"ltx": "^2.3.0",
"moment": "^2.10.6",
"num2fraction": "^1.2.2",
"ramda": "^0.27.0",
"require-dir": "^1.0.0",
"tinycolor2": "^1.3.0"
},
"devDependencies": {
"tap-spec": "5.0.0",
"tape":... | <|file_sep|>original/package.json
"dependencies": {
"capitalize": "^2.0.0",
"chance": "^1.0.3",
"handlebars": "^4.0.3",
"ltx": "^2.3.0",
"moment": "^2.10.6",
"num2fraction": "^1.2.2",
"ramda": "^0.27.0",
"require-dir": "^1.0.0",
"tinycolor2": "^1.3.0"
},
"devDependencies": {
... | 93395f3dcc743636e14a326253509cc2fc58889b | package.json | package.json | JSON |
<|file_sep|>original/Ruby/inspect_strings.rb
<|file_sep|>current/Ruby/inspect_strings.rb
<|file_sep|>updated/Ruby/inspect_strings.rb | project_path = File.expand_path('..', __dir__)
ruby_version = ARGV[0]
raise 'Missing version argument' if ruby_version.nil? || ruby_version.empty?
target_basepath = "Debug (#{ruby_version})"
bundle_name = 'SUEX_HelloWorld.bundle'
filepath = File.join(project_path, target_basepath, bundle_name)
puts filepath
data =... | <|file_sep|>original/Ruby/inspect_strings.rb
<|file_sep|>current/Ruby/inspect_strings.rb
<|file_sep|>updated/Ruby/inspect_strings.rb
project_path = File.expand_path('..', __dir__)
ruby_version = ARGV[0]
raise 'Missing version argument' if ruby_version.nil? || ruby_version.empty?
target_basepath = "Debug (#{ruby_ver... | 5f1320d6cac4c49439c8041e70da891f45e0bd4a | Ruby/inspect_strings.rb | Ruby/inspect_strings.rb | Ruby |
<|file_sep|>original/metadata/de.enaikoon.android.keypadmapper3.txt
* exports the recorded information
Note that although it's not mentioned anywhere except very deep in the help
page, this application collects and uploads GSM cell data. See
[https://f-droid.org/repository/issues/?do=view_issue&issue=421 here] for mor... | * exports the recorded information
Note that although it's not mentioned anywhere except very deep in the help
page, this application collects and uploads GSM cell data. See
[https://f-droid.org/repository/issues/?do=view_issue&issue=421 here] for more
information.
.
Repo Type:git
Repo:https://github.com/msemm/Keypad... | <|file_sep|>original/metadata/de.enaikoon.android.keypadmapper3.txt
* exports the recorded information
Note that although it's not mentioned anywhere except very deep in the help
page, this application collects and uploads GSM cell data. See
[https://f-droid.org/repository/issues/?do=view_issue&issue=421 here] for mor... | 83eba40378f96f191749f58f6f931a982b03042e | metadata/de.enaikoon.android.keypadmapper3.txt | metadata/de.enaikoon.android.keypadmapper3.txt | Text |
<|file_sep|>original/requirements/base.txt
# For user registration, either via email or social
# Well-built with regular release cycles!
django-allauth==0.19.1
# For the persistence stores
MySQL-python==1.2.5
# Unicode slugification
unicode-slugify==0.1.3
django-autoslug==1.7.2
# Useful things
django-avatar==2.0
# ... | # For user registration, either via email or social
# Well-built with regular release cycles!
django-allauth==0.19.1
# For the persistence stores
MySQL-python==1.2.5
# Unicode slugification
unicode-slugify==0.1.3
django-autoslug==1.7.2
# Useful things
django-avatar==2.0
# Time zones support
pytz==2015.2
# Your cus... | <|file_sep|>original/requirements/base.txt
# For user registration, either via email or social
# Well-built with regular release cycles!
django-allauth==0.19.1
# For the persistence stores
MySQL-python==1.2.5
# Unicode slugification
unicode-slugify==0.1.3
django-autoslug==1.7.2
# Useful things
django-avatar==2.0
# ... | e7254b42303f3524330326fe467e33e46343fcb1 | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>original/cookiecutter.json
{
"project_name": "project_name",
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_') }}",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"domain_name": "example.com",
... | {
"project_name": "project_name",
"repo_name": "{{ cookiecutter.project_name.lower()|replace(' ', '_')|replace('-', '_') }}",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"domain_name": "example.com",
"version": "0.1.0",
"timezo... | <|file_sep|>original/cookiecutter.json
{
"project_name": "project_name",
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_') }}",
"author_name": "Your Name",
"email": "Your email",
"description": "A short description of the project.",
"domain_name": "example.com",
... | dcf9509cbb58b6a67b0d04c7e53ce0b43916d023 | cookiecutter.json | cookiecutter.json | JSON |
<|file_sep|>original/INSTALL-centos.md
```
[geni]
name = GENI software repository
baseurl = http://www.gpolab.bbn.com/experiment-support/gposw/centos/$releasever/os/$basearch/
```
Another approach is to publish this data for download:
```
export URL_BASE='http://www.gpolab.bbn.com/experiment-support/gposw'
curl "${URL... |
Installing the GENI Clearinghouse package
-----------------------------------------
Once the server knows about the RPM repository, it is easy to
install the geni clearinghouse package:
```
yum install geni-chapi
```
Other installation notes
------------------------
# Install the EPEL repository
sudo yum install ... | <|file_sep|>original/INSTALL-centos.md
```
[geni]
name = GENI software repository
baseurl = http://www.gpolab.bbn.com/experiment-support/gposw/centos/$releasever/os/$basearch/
```
Another approach is to publish this data for download:
```
export URL_BASE='http://www.gpolab.bbn.com/experiment-support/gposw'
curl "${URL... | de9f84710ccab62d1668f75c2be9554db1cf4a05 | INSTALL-centos.md | INSTALL-centos.md | Markdown |
<|file_sep|>original/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml
@inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (lay... | @inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { continue; }
var data = layout.Data;
try
... | <|file_sep|>original/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml
@inherits UmbracoViewPage<BlockListModel>
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (lay... | cf418a8097fc00b3068ef7f81b494580ecf3e9e8 | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml | C# |
<|file_sep|>original/templates/2.1.0/release-vars.yml
solace_load_version: soltr_8.12.0.1007
bosh_stemcell: "ubuntu-trusty"
bosh_stemcell_version: "3586.26"
solace_service_broker_jar: solace-service-broker-0.0.1135.jar
<|file_sep|>current/templates/2.1.0/release-vars.yml
solace_load_version: soltr_8.12.0.1007
bosh_stem... | solace_load_version: soltr_8.12.0.1007
bosh_stemcell: "ubuntu-trusty"
bosh_stemcell_version: "3586.26"
solace_service_broker_jar: solace-service-broker-0.0.1135.jar
cf_mysql_version: "36.14.0" | <|file_sep|>original/templates/2.1.0/release-vars.yml
solace_load_version: soltr_8.12.0.1007
bosh_stemcell: "ubuntu-trusty"
bosh_stemcell_version: "3586.26"
solace_service_broker_jar: solace-service-broker-0.0.1135.jar
<|file_sep|>current/templates/2.1.0/release-vars.yml
solace_load_version: soltr_8.12.0.1007
bosh_stem... | e7b3b467c91c3197f946a215da766c22ecc670b3 | templates/2.1.0/release-vars.yml | templates/2.1.0/release-vars.yml | YAML |
<|file_sep|>original/composer.json
"minimum-stability": "dev",
"authors": [
{
"name": "Profideo",
"homepage": "http://profideo.com"
}
],
"repositories": [{
"type": "vcs",
"url": "https://github.com/profideo-ci/expression-language"
}],
"requ... | "minimum-stability": "dev",
"authors": [
{
"name": "Profideo",
"homepage": "http://profideo.com"
}
],
"repositories": [{
"type": "vcs",
"url": "https://github.com/profideo-ci/expression-language"
}],
"require": {
"php": ">=5.3.9",
... | <|file_sep|>original/composer.json
"minimum-stability": "dev",
"authors": [
{
"name": "Profideo",
"homepage": "http://profideo.com"
}
],
"repositories": [{
"type": "vcs",
"url": "https://github.com/profideo-ci/expression-language"
}],
"requ... | 9f0e25ed79b516561164a2164f2342c4c0c1f9be | composer.json | composer.json | JSON |
<|file_sep|>.github/workflows/elixir.yml.diff
original:
# Label used to access the service container
updated:
<|file_sep|>original/.github/workflows/elixir.yml
- uses: actions/setup-elixir@v1.0.0
with:
otp-version: "23.0.3"
elixir-version: "1.10.4"
- name: Install Dependencies
... | run: |
mix deps.get
mix compile
env:
MIX_ENV: test
- name: Verify application
run: |
mix format --check-formatted
mix compile --force --warnings-as-errors
mix credo
mix test
env:
MIX_ENV: test
- name: Repository Dispatch
... | <|file_sep|>.github/workflows/elixir.yml.diff
original:
# Label used to access the service container
updated:
<|file_sep|>original/.github/workflows/elixir.yml
- uses: actions/setup-elixir@v1.0.0
with:
otp-version: "23.0.3"
elixir-version: "1.10.4"
- name: Install Dependencies
... | dcc4c3844e1d3cb5a69c82a8e5a72bc7b45cbbf8 | .github/workflows/elixir.yml | .github/workflows/elixir.yml | YAML |
<|file_sep|>original/contract_sale_generation/models/abstract_contract.py
# Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractMod... | # Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractModel):
_inherit = "contract.abstract.contract"
sale_autoconfirm = f... | <|file_sep|>original/contract_sale_generation/models/abstract_contract.py
# Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractMod... | 20bd5c16d5850f988e92c39db3ff041c37c83b73 | contract_sale_generation/models/abstract_contract.py | contract_sale_generation/models/abstract_contract.py | Python |
<|file_sep|>README.md.diff
original:
component in your web projects via [Bower](http://bower.io). For more
information about installing this component, or to contribute issues or changes
to this component, please see the consolidated [Basic Web
updated:
component in your web projects via [Bower](http://bower.io).
For ... | This individual component repository is designed to let you include this
component in your web projects via [Bower](http://bower.io).
For more information about installing this component, or to contribute issues or
changes to this component, please see the consolidated [Basic Web
Components](https://github.com/basic-w... | <|file_sep|>README.md.diff
original:
component in your web projects via [Bower](http://bower.io). For more
information about installing this component, or to contribute issues or changes
to this component, please see the consolidated [Basic Web
updated:
component in your web projects via [Bower](http://bower.io).
For ... | 47916131965a3958af3cafac205a0cea6c6ce425 | README.md | README.md | Markdown |
<|file_sep|>original/setup.py
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_descriptio... | def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
auth... | <|file_sep|>original/setup.py
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_descriptio... | 54b33692ce7057a600f04397e796dca6061496db | setup.py | setup.py | Python |
<|file_sep|>original/circle.yml
machine:
node:
version: 6
dependencies:
pre:
- bundle config without development:production
cache_directories:
- "/node_modules/"
test:
pre:
- npm run build
override:
- npm run test
deployment:
npm:
tag: /release-.*/
owner: 18F
commands:
<|f... |
machine:
node:
version: 6
dependencies:
pre:
- bundle config without development:production
- npm rebuild node-sass
cache_directories:
- "/node_modules/"
test:
pre:
- npm run build
override:
- npm run test
deployment:
npm:
tag: /release-.*/
owner: 18F | <|file_sep|>original/circle.yml
machine:
node:
version: 6
dependencies:
pre:
- bundle config without development:production
cache_directories:
- "/node_modules/"
test:
pre:
- npm run build
override:
- npm run test
deployment:
npm:
tag: /release-.*/
owner: 18F
commands:
<|f... | 5002931ad2efa3b14de1f67296aa876e11519412 | circle.yml | circle.yml | YAML |
<|file_sep|>original/test/CodeGen/X86/pmovext.ll
; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
; rdar://11897677
;CHECK: intrin_pmov
;CHECK: pmovzxbw (%rsi), %xmm0
;CHECK-NEXT: movdqu
;CHECK-NEXT: ret
define void @intrin_pmov(i16* noalias %dest, i8* noalias %src) nounwind uwtable ssp {
%1 = bitcast i8*... | ; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
; rdar://11897677
;CHECK: intrin_pmov
;CHECK: pmovzxbw (%{{.*}}), %xmm0
;CHECK-NEXT: movdqu
;CHECK-NEXT: ret
define void @intrin_pmov(i16* noalias %dest, i8* noalias %src) nounwind uwtable ssp {
%1 = bitcast i8* %src to <2 x i64>*
%2 = load <2 x i64>* %1,... | <|file_sep|>original/test/CodeGen/X86/pmovext.ll
; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s
; rdar://11897677
;CHECK: intrin_pmov
;CHECK: pmovzxbw (%rsi), %xmm0
;CHECK-NEXT: movdqu
;CHECK-NEXT: ret
define void @intrin_pmov(i16* noalias %dest, i8* noalias %src) nounwind uwtable ssp {
%1 = bitcast i8*... | 6fc671ca637e83d53f47c913e9e0ac8e2cce3a51 | test/CodeGen/X86/pmovext.ll | test/CodeGen/X86/pmovext.ll | LLVM |
<|file_sep|>original/organizer/templates/organizer/startup_list.html
Create New Startup</a>
</div>
<ul>
{% for startup in startup_list %}
<li>
<a href="{{ startup.get_absolute_url }}">
{{ startup.name }}</a>
<ul>
<li>
<a href="{{ startup.... | Edit Startup</a></li>
<li>
<a href="{{ startup.get_delete_url }}">
Delete Startup</a></li>
</ul>
</li>
{% empty %}
<li><em>No Startups Available</em></li>
{% endfor %}
</ul>
{% if startup_list.has_other_pages %}
<ul... | <|file_sep|>original/organizer/templates/organizer/startup_list.html
Create New Startup</a>
</div>
<ul>
{% for startup in startup_list %}
<li>
<a href="{{ startup.get_absolute_url }}">
{{ startup.name }}</a>
<ul>
<li>
<a href="{{ startup.... | 73190831a4f8b6633f2142dbf79289774e301f99 | organizer/templates/organizer/startup_list.html | organizer/templates/organizer/startup_list.html | HTML |
<|file_sep|>original/tensorflow_model_optimization/g3doc/guide/get_started.md
## 2. Pre-optimized models
See if any existing
[TensorFlow Lite pre-optimized models](https://www.tensorflow.org/lite/models)
provide the efficiency required by your application.
## 3. Post-training tooling
If you cannot use a pre-trained... |
## 2. Pre-optimized models
See if any existing
[TensorFlow Lite pre-optimized models](https://www.tensorflow.org/lite/models)
provide the efficiency required by your application.
## 3. Post-training tooling
If you cannot use a pre-trained model for your application, try using
[TensorFlow Lite post-training quantiza... | <|file_sep|>original/tensorflow_model_optimization/g3doc/guide/get_started.md
## 2. Pre-optimized models
See if any existing
[TensorFlow Lite pre-optimized models](https://www.tensorflow.org/lite/models)
provide the efficiency required by your application.
## 3. Post-training tooling
If you cannot use a pre-trained... | fad9b21f6281b1201431a34daf28584b098be098 | tensorflow_model_optimization/g3doc/guide/get_started.md | tensorflow_model_optimization/g3doc/guide/get_started.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.070]
- d: dmd-2.069.2
env: [FRONTEND=2.069]
<|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.068]
<|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.067]
<|file_sep|>.travis.yml.diff
original:
... | env: [FRONTEND=2.067]
- d: dmd-2.066.1
env: [FRONTEND=2.066]
- d: dmd-2.065.0
env: [FRONTEND=2.065]
- d: dmd-2.064.2
env: [FRONTEND=2.064]
- d: ldc
- d: ldc-0.16.1
env: [FRONTEND=2.067]
- d: ldc-0.15.1
env: [FRONTEND=2.066]
- d: ldc-0.14.0
env: [FRON... | <|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.070]
- d: dmd-2.069.2
env: [FRONTEND=2.069]
<|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.068]
<|file_sep|>.travis.yml.diff
original:
updated:
env: [FRONTEND=2.067]
<|file_sep|>.travis.yml.diff
original:
... | 99bf9608836d3b273a61345779026fbc23143574 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/unicorn.rb
# config/unicorn.rb
worker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)
timeout Integer(ENV['WEB_TIMEOUT'] || 30)
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.k... | # config/unicorn.rb
worker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)
timeout Integer(ENV['WEB_TIMEOUT'] || 25)
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
define... | <|file_sep|>original/config/unicorn.rb
# config/unicorn.rb
worker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)
timeout Integer(ENV['WEB_TIMEOUT'] || 30)
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.k... | 55e5049d46239485d0ad1acd60ebb13610886d83 | config/unicorn.rb | config/unicorn.rb | Ruby |
<|file_sep|>src/test/ModulesParseTextBlockDeclarationTest.java.diff
original:
updated:
import java.lang.module.ModuleDescriptor.Version;
<|file_sep|>src/test/ModulesParseTextBlockDeclarationTest.java.diff
original:
module foo.bar { // 3.3-ALPHA
requires foo.bax; // @1.3
requires foo.bay/*34... | void parseDeclaration() {
var descriptor = Bach.Modules.parseDeclaration("""
module foo.bar {
requires foo.bax;
requires foo.bay/*1*/;
requires foo.baz /* 2.3-ea */;
}
""");
assertEquals("foo.bar", descriptor.name(), descriptor.toString());
assertEqua... | <|file_sep|>src/test/ModulesParseTextBlockDeclarationTest.java.diff
original:
updated:
import java.lang.module.ModuleDescriptor.Version;
<|file_sep|>src/test/ModulesParseTextBlockDeclarationTest.java.diff
original:
module foo.bar { // 3.3-ALPHA
requires foo.bax; // @1.3
requires foo.bay/*34... | 179f200cfde6dd66722cfd030224c393fb66e2da | src/test/ModulesParseTextBlockDeclarationTest.java | src/test/ModulesParseTextBlockDeclarationTest.java | Java |
<|file_sep|>src/zeit/brightcove/json/tests/test_update.py.diff
original:
import zope.testbrowser.testing
updated:
<|file_sep|>original/src/zeit/brightcove/json/tests/test_update.py
import zeit.brightcove.testing
import zeit.cms.testing
import zope.testbrowser.testing
class NotificationTest(zeit.cms.testing.BrowserTe... | import zeit.brightcove.testing
import zeit.cms.testing
class NotificationTest(zeit.cms.testing.BrowserTestCase):
layer = zeit.brightcove.testing.LAYER
def test_runs_import_as_system_user(self):
# View is available without authentication
b = zeit.cms.testing.Browser()
with mock.patch.... | <|file_sep|>src/zeit/brightcove/json/tests/test_update.py.diff
original:
import zope.testbrowser.testing
updated:
<|file_sep|>original/src/zeit/brightcove/json/tests/test_update.py
import zeit.brightcove.testing
import zeit.cms.testing
import zope.testbrowser.testing
class NotificationTest(zeit.cms.testing.BrowserTe... | 0392e4e26b5affee2de648084198fa3375a7bdd3 | src/zeit/brightcove/json/tests/test_update.py | src/zeit/brightcove/json/tests/test_update.py | Python |
<|file_sep|>src/index.html.diff
original:
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
updated:
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<|file_sep|>original/src/index.html
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.boo... | <!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- - - - JS - - - -->
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- Bootstrap JS -->
<script ... | <|file_sep|>src/index.html.diff
original:
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
updated:
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<|file_sep|>original/src/index.html
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.boo... | a7422b7ee86a5cb3f08dd92d58d5a1275b7c7720 | src/index.html | src/index.html | HTML |
<|file_sep|>original/system/_path.zsh
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
<|file_sep|>current/system/_path.zsh
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/... | export PATH="/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | <|file_sep|>original/system/_path.zsh
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
<|file_sep|>current/system/_path.zsh
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
export MANPATH="/usr/local/man:/... | 91043ca244f9b32c152a20247a5b9b4d4b1b12f9 | system/_path.zsh | system/_path.zsh | Shell |
<|file_sep|>original/shared/db/schemas/message.coffee
mongoose = require '../connection'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
MessageSchema = new Schema(
Name: String
Subject: String
Message: String
Date: Date
Phone: String
Country: String
Attachments: String
)
Message = mongoose.model('... | MessageSchema = new Schema(
Name: String
Subject: String
Message: String
Date: Date
Phone: String
Country: String
Attachments: String
)
MessageSchema.statics.byCount = (cb) ->
this.aggregate [
{
$group:
_id: '$Phone Number'
count: $sum: 1
}
... | <|file_sep|>original/shared/db/schemas/message.coffee
mongoose = require '../connection'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
MessageSchema = new Schema(
Name: String
Subject: String
Message: String
Date: Date
Phone: String
Country: String
Attachments: String
)
Message = mongoose.model('... | cdf92070a8f9c7e5af4ad4f2d418dba99855e713 | shared/db/schemas/message.coffee | shared/db/schemas/message.coffee | CoffeeScript |
<|file_sep|>appveyor.yml.diff
original:
version: 2.0.{build}.0
os: Visual Studio 2017
updated:
os: Visual Studio 2017
version: 2.0.0.{build}
<|file_sep|>appveyor.yml.diff
original:
CoverallsRepoToken:
secure: t/5ID5XZAyFKZNmgVJIrcs2Ah7Bn1Kr2cmAZcmEbvl/lGHHl6F4sxSLHK89z7I7E
updated:
CLI_VERSION: 1.0.1
DOTNET... | - ps: .\Build.ps1
artifacts:
- path: artifacts\*.nupkg
- path: artifacts\System.Data.SqlLocalDb.TestApp.*
nuget:
disable_publish_on_pr: true
skip_tags: false
test: off
deploy:
- provider: NuGet
api_key:
secure: OKbODD04RIoauopeXve4FsbtYb6wreSRms0k3SnH7b/Gj/6cQhVQHhu2xMjoSlQc
artifact: /.*\.... | <|file_sep|>appveyor.yml.diff
original:
version: 2.0.{build}.0
os: Visual Studio 2017
updated:
os: Visual Studio 2017
version: 2.0.0.{build}
<|file_sep|>appveyor.yml.diff
original:
CoverallsRepoToken:
secure: t/5ID5XZAyFKZNmgVJIrcs2Ah7Bn1Kr2cmAZcmEbvl/lGHHl6F4sxSLHK89z7I7E
updated:
CLI_VERSION: 1.0.1
DOTNET... | b4b72366afd096cb44e86bd55d3c63edc79f18ea | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/Readme.md
<|file_sep|>current/Readme.md
<|file_sep|>updated/Readme.md | # RowReorder
RowReorder adds the ability for rows in a DataTable to be reordered through user interaction with the table (click and drag / touch and drag). Integration with Editor's multi-row editing feature is also available to update rows immediately.
# Installation
To use RowReorder the best way to obtain the s... | <|file_sep|>original/Readme.md
<|file_sep|>current/Readme.md
<|file_sep|>updated/Readme.md
# RowReorder
RowReorder adds the ability for rows in a DataTable to be reordered through user interaction with the table (click and drag / touch and drag). Integration with Editor's multi-row editing feature is also available ... | a348184dff2db8fe03867f47f48f970a132aea96 | Readme.md | Readme.md | Markdown |
<|file_sep|>addon/components/sl-drop-option.js.diff
original:
/**
* @module components
* @class sl-drop-option
*/
updated:
/** @module sl-components/components/sl-drop-option */
<|file_sep|>addon/components/sl-drop-option.js.diff
original:
updated:
/**
* HTML tag name for the root element
*
* @p... | * @function actions.click
* @return {void}
*/
click: function() {
this.sendAction( 'action' );
}
},
/**
* Represents the type of option; "divider" if the label is undefined, or
* "presentation" otherwise
*
* @function optionType
... | <|file_sep|>addon/components/sl-drop-option.js.diff
original:
/**
* @module components
* @class sl-drop-option
*/
updated:
/** @module sl-components/components/sl-drop-option */
<|file_sep|>addon/components/sl-drop-option.js.diff
original:
updated:
/**
* HTML tag name for the root element
*
* @p... | 5a9863aedb9d998e28bd1870af4ed7962068d27a | addon/components/sl-drop-option.js | addon/components/sl-drop-option.js | JavaScript |
<|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<div class="well">
You are at the OpenEnergy... | <div class="list-group">
{% for schema, tables in schemas %}
<a href="view/{{schema}}" class="list-group-item">
{% include 'dataedit/tagged_field.html' with label=schema %}
<span class="badge">
{{tables}}
</span>
</a>
{% endfor %}
</div>
<div class="well">
The basic objec... | <|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<|file_sep|>dataedit/templates/dataedit/dataedit_schemalist.html.diff
original:
updated:
<div class="well">
You are at the OpenEnergy... | e9b9259d81cb3de0431aec24ced5b7bfff759190 | dataedit/templates/dataedit/dataedit_schemalist.html | dataedit/templates/dataedit/dataedit_schemalist.html | HTML |
<|file_sep|>original/tools/travis-scripts/build_prepare_linux.sh
#! /bin/bash
set -euo pipefail
echo "Setting ccache variables"
ccache -M 1G
ccache -s
echo "Installing dependencies"
sudo apt-get install libunwind8-dev libsdl2-dev libboost-locale-dev libboost-filesystem-dev libboost-program-options-dev libegl1-mesa-d... | #! /bin/bash
set -euo pipefail
echo "Setting ccache variables"
ccache -M 1G
ccache -s
echo "Installing dependencies"
sudo apt-get install libunwind8-dev libsdl2-dev libboost-locale-dev libboost-filesystem-dev libboost-program-options-dev libegl1-mesa-dev libgles2-mesa-dev qtbase5-dev -y
echo "Fetching minimal cd.is... | <|file_sep|>original/tools/travis-scripts/build_prepare_linux.sh
#! /bin/bash
set -euo pipefail
echo "Setting ccache variables"
ccache -M 1G
ccache -s
echo "Installing dependencies"
sudo apt-get install libunwind8-dev libsdl2-dev libboost-locale-dev libboost-filesystem-dev libboost-program-options-dev libegl1-mesa-d... | fc41c0a0f79b1624af43715d7929ba33577abc43 | tools/travis-scripts/build_prepare_linux.sh | tools/travis-scripts/build_prepare_linux.sh | Shell |
<|file_sep|>wechat.router.php.diff
original:
updated:
protected function textToProcess($postObj) {
return $postObj->Content;
}
<|file_sep|>wechat.router.php.diff
original:
updated:
class ClickHandler extends TextHandler {
protected function textToProcess($postObj) {
return $postObj->EventKey;
}
}
... |
protected function textToProcess($postObj) {
return $postObj->EventKey;
}
}
class EventHandler extends \yfwz100\wechat\Router {
function __construct() {
$this->handlers = array(
click=> new ClickHandler()
);
}
function __invoke($postObj) {
$eventType = strtolower($postObj->Event);
... | <|file_sep|>wechat.router.php.diff
original:
updated:
protected function textToProcess($postObj) {
return $postObj->Content;
}
<|file_sep|>wechat.router.php.diff
original:
updated:
class ClickHandler extends TextHandler {
protected function textToProcess($postObj) {
return $postObj->EventKey;
}
}
... | 0e6d742287a20f5ab4ee5d36c4f21c91789d3d3c | wechat.router.php | wechat.router.php | PHP |
<|file_sep|>.travis.yml.diff
original:
- 1.9.3
- 2.0.0
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.2.2
- 2.3.0
before_install: gem install bundler -v 1.10.6
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.2
- 2.3.0
before_install: gem install bundler -v 1... | language: ruby
rvm:
- 2.2.2
- 2.3.0
- 2.3.3
before_install: gem install bundler -v 1.10.6 | <|file_sep|>.travis.yml.diff
original:
- 1.9.3
- 2.0.0
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.2.2
- 2.3.0
before_install: gem install bundler -v 1.10.6
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.2
- 2.3.0
before_install: gem install bundler -v 1... | a8ca0c5f5a0e5e3d0bd1e72016672316a0c9220c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/examples/drawing/ego_graph.py
import networkx as nx
import matplotlib.pyplot as plt
if __name__ == '__main__':
# Create a BA model graph
n=1000
m=2
G=nx.generators.barabasi_albert_graph(n,m)
# find node with largest degree
node_and_degree=G.degree(with_labels=True)
(la... | import networkx as nx
import matplotlib.pyplot as plt
if __name__ == '__main__':
# Create a BA model graph
n=1000
m=2
G=nx.generators.barabasi_albert_graph(n,m)
# find node with largest degree
node_and_degree=G.degree(with_labels=True)
(largest_hub,degree)=sorted(node_and_degree.items(),ke... | <|file_sep|>original/examples/drawing/ego_graph.py
import networkx as nx
import matplotlib.pyplot as plt
if __name__ == '__main__':
# Create a BA model graph
n=1000
m=2
G=nx.generators.barabasi_albert_graph(n,m)
# find node with largest degree
node_and_degree=G.degree(with_labels=True)
(la... | 78351e785f413f44e07faa0b8a856639296a5591 | examples/drawing/ego_graph.py | examples/drawing/ego_graph.py | Python |
<|file_sep|>recipes/pytz/meta.yaml.diff
original:
{% set version="2016.7" %}
updated:
{% set version="2016.10" %}
<|file_sep|>original/recipes/pytz/meta.yaml
{% set version="2016.7" %}
package:
name: pytz
version: {{ version }}
source:
fn: pytz-{{ version }}.tar.bz2
url: https://pypi.io/packages/source/p/pytz... | {% set version="2016.10" %}
package:
name: pytz
version: {{ version }}
source:
fn: pytz-{{ version }}.tar.bz2
url: https://pypi.io/packages/source/p/pytz/pytz-{{ version }}.tar.bz2
sha256: 7016b2c4fa075c564b81c37a252a5fccf60d8964aa31b7f5eae59aeb594ae02b
build:
number: 0
script: python setup.py install ... | <|file_sep|>recipes/pytz/meta.yaml.diff
original:
{% set version="2016.7" %}
updated:
{% set version="2016.10" %}
<|file_sep|>original/recipes/pytz/meta.yaml
{% set version="2016.7" %}
package:
name: pytz
version: {{ version }}
source:
fn: pytz-{{ version }}.tar.bz2
url: https://pypi.io/packages/source/p/pytz... | 6e727871f4d4486f8a5ee6f7ae0593b02c50c73f | recipes/pytz/meta.yaml | recipes/pytz/meta.yaml | YAML |
<|file_sep|>_posts/2017-05-22-CARPE-DIEM.md.diff
original:
CARPE DIEM is a short pharse from Lingua Latīna, means seize the time.
updated:
'CARPE DIEM' is a short pharse from Lingua Latīna, means seize the time.
Each time I come to the crossroads of life, it raises from my deep side.
"CARPE DIEM, CARPE DIEM...".
<|file... | "Because we are food for worms
Because believe it or not, each and every one of us is one day going to stop breathing, turn cold and die
Same haircuts, full of hormones, just like you
Invincible, just like you feel
The world is their oyster
They believe they are destined for great things
Just like many of you
Th... | <|file_sep|>_posts/2017-05-22-CARPE-DIEM.md.diff
original:
CARPE DIEM is a short pharse from Lingua Latīna, means seize the time.
updated:
'CARPE DIEM' is a short pharse from Lingua Latīna, means seize the time.
Each time I come to the crossroads of life, it raises from my deep side.
"CARPE DIEM, CARPE DIEM...".
<|file... | 9d1812f7d5583dab4b22cdc84367795ea2506ed8 | _posts/2017-05-22-CARPE-DIEM.md | _posts/2017-05-22-CARPE-DIEM.md | Markdown |
<|file_sep|>original/server/simulatency.js
global.simulatency = {}
global.simulatency.timeout = 0
inject(Meteor.server.stream_server.server._events, 'connection', function (args, done) {
inject(args[0], 'write', function (args, done) {
setTimeout(done, global.simulatency.timeout)
})
done()
})
function http... | global.simulatency = {}
global.simulatency.timeout = 0
inject(Meteor.server.stream_server.server._events, 'connection', function (args, done) {
inject(args[0], 'write', function (args, done) {
setTimeout(done, global.simulatency.timeout)
})
inject(args[0], 'data', function (args, done) {
setTimeout(done... | <|file_sep|>original/server/simulatency.js
global.simulatency = {}
global.simulatency.timeout = 0
inject(Meteor.server.stream_server.server._events, 'connection', function (args, done) {
inject(args[0], 'write', function (args, done) {
setTimeout(done, global.simulatency.timeout)
})
done()
})
function http... | 61a982dd82fcd6c67d4bd65c548b5afbd66170df | server/simulatency.js | server/simulatency.js | JavaScript |
<|file_sep|>test/jenkins.groovy.diff
original:
def tests = [
test_ec2_k8s_basic,
test_noop
]
updated:
<|file_sep|>original/test/jenkins.groovy
// example application
// verify
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable:... | // delete cluster
}
}
}
def test_noop = {
node {
def job = hudson.model.Hudson.instance.getItem('container-networking-ansible')
println "{$id}"
}
}
def getTestMatrix() {
def tests = [
test_ec2_k8s_basic,
test_noop
]
return tests
}
return thi... | <|file_sep|>test/jenkins.groovy.diff
original:
def tests = [
test_ec2_k8s_basic,
test_noop
]
updated:
<|file_sep|>original/test/jenkins.groovy
// example application
// verify
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable:... | aacd9e38b2c5b2dcca5250da76aadc3cfc5a9490 | test/jenkins.groovy | test/jenkins.groovy | Groovy |
<|file_sep|>original/t/2-ffi-platypus.t
<|file_sep|>current/t/2-ffi-platypus.t
<|file_sep|>updated/t/2-ffi-platypus.t | use strict;
use warnings;
use Config;
use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";
use ATHX;
my %NVSIZE_TYPE = (
8 => "double",
16 => "longdouble",
);
if (!eval { require FFI::Platypus }) {
plan skip_all => "FFI::Platypus not available";
}
elsif (!defined $NVSIZE_TYPE{$Config{nvsize}}) {
... | <|file_sep|>original/t/2-ffi-platypus.t
<|file_sep|>current/t/2-ffi-platypus.t
<|file_sep|>updated/t/2-ffi-platypus.t
use strict;
use warnings;
use Config;
use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";
use ATHX;
my %NVSIZE_TYPE = (
8 => "double",
16 => "longdouble",
);
if (!eval { require FFI:... | 41cf22e9f86077340c82fb5a798f13108c7e6be1 | t/2-ffi-platypus.t | t/2-ffi-platypus.t | Perl |
<|file_sep|>original/resources/varnish_repo_redhat.rb
provides :varnish_repo, platform_family: ['rhel', 'fedora']
default_action :configure
property :major_version, kind_of: Float, equal_to: [2.1, 3.0, 4.0, 4.1], default: lazy { node['varnish']['major_version'] }
action :configure do
# packagecloud repos omit dot ... | provides :varnish_repo, platform_family: ['rhel', 'fedora']
default_action :configure
property :major_version, kind_of: Float, equal_to: [2.1, 3.0, 4.0, 4.1], default: lazy { node['varnish']['major_version'] }
action :configure do
# packagecloud repos omit dot from major version
major_version_no_dot = new_resour... | <|file_sep|>original/resources/varnish_repo_redhat.rb
provides :varnish_repo, platform_family: ['rhel', 'fedora']
default_action :configure
property :major_version, kind_of: Float, equal_to: [2.1, 3.0, 4.0, 4.1], default: lazy { node['varnish']['major_version'] }
action :configure do
# packagecloud repos omit dot ... | dc14dcb099844c776739287b80650c5314bb80ed | resources/varnish_repo_redhat.rb | resources/varnish_repo_redhat.rb | Ruby |
<|file_sep|>original/bootstrap.php
<?php
// Require the extension's composer autoload file. This will enable all of our
// classes in the src directory to be autoloaded.
require 'vendor/autoload.php';
// Register our service provider with the Flarum application. In here we can
// register bindings and execute code wh... | <?php
// Require the extension's composer autoload file. This will enable all of our
// classes in the src directory to be autoloaded.
require 'vendor/autoload.php';
// Register our service provider with the Flarum application. In here we can
// register bindings and execute code when the application boots.
return $a... | <|file_sep|>original/bootstrap.php
<?php
// Require the extension's composer autoload file. This will enable all of our
// classes in the src directory to be autoloaded.
require 'vendor/autoload.php';
// Register our service provider with the Flarum application. In here we can
// register bindings and execute code wh... | a3774da0b7debe82c651a4aa9c1619bf4702a5a9 | bootstrap.php | bootstrap.php | PHP |
<|file_sep|>original/tests/test_shutil.py
from monty.shutil import copy_r
class CopyRTest(unittest.TestCase):
def setUp(self):
os.mkdir("cpr_src")
with open(os.path.join("cpr_src", "test"), "w") as f:
f.write("what")
def test_recursive_copy(self):
copy_r(".", "cpr_dst")
... | from monty.shutil import copy_r
# class CopyRTest(unittest.TestCase):
#
# def setUp(self):
# os.mkdir("cpr_src")
# with open(os.path.join("cpr_src", "test"), "w") as f:
# f.write("what")
#
# def test_recursive_copy(self):
# copy_r(".", "cpr_dst")
# self.assertTrue(o... | <|file_sep|>original/tests/test_shutil.py
from monty.shutil import copy_r
class CopyRTest(unittest.TestCase):
def setUp(self):
os.mkdir("cpr_src")
with open(os.path.join("cpr_src", "test"), "w") as f:
f.write("what")
def test_recursive_copy(self):
copy_r(".", "cpr_dst")
... | ea2383175456257384e625bb1113d98536b78a92 | tests/test_shutil.py | tests/test_shutil.py | Python |
<|file_sep|>original/listOfFeaturesOfGreatOSBCs.md
## Extensive access to and communication with users
## Contributions acknowledged and rewarded
## Clear vision and mission
## Quick responses to bug fixes/feature requests
## High-quality interaction and interoperability with linked/similar projects
## Easy to con... | ## Contributions acknowledged and rewarded
## Clear vision and mission
## Quick responses to bug fixes/feature requests
## High-quality interaction and interoperability with linked/similar projects
## Easy to contribute to, with clear guidelines (e.g. in https://github.com/galaxyproject/galaxy/blob/dev/CONTRIBUTING... | <|file_sep|>original/listOfFeaturesOfGreatOSBCs.md
## Extensive access to and communication with users
## Contributions acknowledged and rewarded
## Clear vision and mission
## Quick responses to bug fixes/feature requests
## High-quality interaction and interoperability with linked/similar projects
## Easy to con... | 5384e0233782316311240eec7241b687cac34d71 | listOfFeaturesOfGreatOSBCs.md | listOfFeaturesOfGreatOSBCs.md | Markdown |
<|file_sep|>ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java.diff
original:
updated:
import java.util.ArrayList;
import java.util.List;
<|file_sep|>original/ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java
/**
*
* @author Aluno
*/
public class Categ... | import java.util.ArrayList;
import java.util.List;
/**
*
* @author Aluno
*/
public class Categoria {
String nome;
String descrição;
List<Artigo> artigos;
public Artigo getArtigo(Integer i){
return artigos.get(i);
}
public void addArtigo(Artigo artigo){
if(this.artigos == nu... | <|file_sep|>ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java.diff
original:
updated:
import java.util.ArrayList;
import java.util.List;
<|file_sep|>original/ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java
/**
*
* @author Aluno
*/
public class Categ... | 10e9b99cf30ad085be1dc3fdd7b087e5c1735607 | ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java | ProjetoExemplo/src/main/java/br/com/fasam/projetoexemplo/entidades/Categoria.java | Java |
<|file_sep|>original/examples/vector_gradientstyle.sh
<|file_sep|>current/examples/vector_gradientstyle.sh
<|file_sep|>updated/examples/vector_gradientstyle.sh | #!/bin/bash
geoc vector gradientstyle -i naturalearth.gpkg -l countries -f PEOPLE -n 6 -c greens > countries_gradient_green.sld
geoc map draw -f vector_gradient_greens.png -l "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \
-l "layertype=layer file=naturalearth.gpkg layername=countries st... | <|file_sep|>original/examples/vector_gradientstyle.sh
<|file_sep|>current/examples/vector_gradientstyle.sh
<|file_sep|>updated/examples/vector_gradientstyle.sh
#!/bin/bash
geoc vector gradientstyle -i naturalearth.gpkg -l countries -f PEOPLE -n 6 -c greens > countries_gradient_green.sld
geoc map draw -f vector_gradi... | f030776285a609949b32e0b2705248ee3a52639e | examples/vector_gradientstyle.sh | examples/vector_gradientstyle.sh | Shell |
<|file_sep|>original/app/assets/javascripts/app/collections/movies.js.coffee
#= require app/models/movie
class App.Collections.Movies extends Backbone.Collection
model: App.Models.Movie
url: '/movies'
<|file_sep|>current/app/assets/javascripts/app/collections/movies.js.coffee
#= require app/models/movie
class App... | #= require app/models/movie
class App.Collections.Movies extends Backbone.Collection
model: App.Models.Movie
url: '/movies'
comparator: (model) ->
- model.get('opening_weekend') | <|file_sep|>original/app/assets/javascripts/app/collections/movies.js.coffee
#= require app/models/movie
class App.Collections.Movies extends Backbone.Collection
model: App.Models.Movie
url: '/movies'
<|file_sep|>current/app/assets/javascripts/app/collections/movies.js.coffee
#= require app/models/movie
class App... | 3a49f60ff73bd8ed10c5b7611e068bf486e6d8a0 | app/assets/javascripts/app/collections/movies.js.coffee | app/assets/javascripts/app/collections/movies.js.coffee | CoffeeScript |
<|file_sep|>packages/po/polysemy-fskvstore.yaml.diff
original:
hash: c44344eba2b1e7a912c1252501ad351e81cd5f43d0c709c7d11e448f80a486d8
updated:
hash: 6c94cae778d5f7bfe3163065c0c5f1ac3fab74421ca520beb8eac11c7b7e9eb4
<|file_sep|>packages/po/polysemy-fskvstore.yaml.diff
original:
updated:
## v0.1.1.0
* Fix inlining.
... | basic-deps:
rio: '>=0.1.0.0 && <=0.2'
bytestring: '>=0.9 && <0.12'
unliftio-path: '>=0.0.2.0 && <0.1'
path: '>=0.7.0 && <0.10'
base: '>=4.7 && <5'
polysemy-kvstore: '>=0.1.2.0 && <0.2'
polysemy: '>=1.4.0.0 && <1.7'
all-versions:
- 0.1.0.0
- 0.1.1.0
author: Daniel Firth
latest: 0.1.1.0
description-type: ma... | <|file_sep|>packages/po/polysemy-fskvstore.yaml.diff
original:
hash: c44344eba2b1e7a912c1252501ad351e81cd5f43d0c709c7d11e448f80a486d8
updated:
hash: 6c94cae778d5f7bfe3163065c0c5f1ac3fab74421ca520beb8eac11c7b7e9eb4
<|file_sep|>packages/po/polysemy-fskvstore.yaml.diff
original:
updated:
## v0.1.1.0
* Fix inlining.
... | 573326f4ee05d91ff52541f97fdab3e3aeca5a77 | packages/po/polysemy-fskvstore.yaml | packages/po/polysemy-fskvstore.yaml | YAML |
<|file_sep|>original/api/src/SearchApi.py
# Call the search.list method to retrieve results matching the specified
# query term.
search_request = youtube.search().list(
part="id,snippet",
q=query,
type="video",
maxResults=maxResults,
safeSearch="moderate", #could also be strict
vide... | def youtubeSearch(query, maxResults=50):
youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,
developerKey=DEVELOPER_KEY)
# Call the search.list method to retrieve results matching the specified
# query term.
search_request = youtube.search().list(
part="id,snippet",
q=query,
... | <|file_sep|>original/api/src/SearchApi.py
# Call the search.list method to retrieve results matching the specified
# query term.
search_request = youtube.search().list(
part="id,snippet",
q=query,
type="video",
maxResults=maxResults,
safeSearch="moderate", #could also be strict
vide... | 4ba390219d58d1726773e14928428f2c9495f6de | api/src/SearchApi.py | api/src/SearchApi.py | Python |
<|file_sep|>original/src/authClient.js
})
.then(({ ttl, ...data }) => {
storage.save('lbtoken', data, ttl);
});
}
if (type === 'AUTH_LOGOUT') {
storage.remove('lbtoken');
return Promise.resolve();
}
... | })
.then(({ ttl, ...data }) => {
storage.save('lbtoken', data, ttl);
});
}
if (type === 'AUTH_LOGOUT') {
storage.remove('lbtoken');
return Promise.resolve();
}
if (type === 'AUTH_ERROR') {
... | <|file_sep|>original/src/authClient.js
})
.then(({ ttl, ...data }) => {
storage.save('lbtoken', data, ttl);
});
}
if (type === 'AUTH_LOGOUT') {
storage.remove('lbtoken');
return Promise.resolve();
}
... | 9dae6eb62c68c363b1c14b4ee4bb84f59d60169a | src/authClient.js | src/authClient.js | JavaScript |
<|file_sep|>original/README.md
# pycomicvine
A python wrapper for comicvine.com
<|file_sep|>current/README.md
# pycomicvine
A python wrapper for comicvine.com
<|file_sep|>updated/README.md | [](https://travis-ci.org/authmillenon/pycomicvine)
# pycomicvine
A python wrapper for comicvine.com | <|file_sep|>original/README.md
# pycomicvine
A python wrapper for comicvine.com
<|file_sep|>current/README.md
# pycomicvine
A python wrapper for comicvine.com
<|file_sep|>updated/README.md
[](https://travis-ci.org/authmillenon/pycomicvine)... | fc83be848cf2b6e286697162aa225e9fd4367390 | README.md | README.md | Markdown |
<|file_sep|>original/app/screens/timers_screen.rb
title "When did"
def on_load
set_nav_bar_button :right, system_icon: :add, action: :add_timer
start_counter
end
def table_data
[{
:cells => Timer.all.map do |timer|
{
:title => timer.name,
:subtitle => "#{(T... | title "When did"
def on_load
set_nav_bar_button :right, system_icon: :add, action: :add_timer
start_counter
end
def table_data
[{
:cells => Timer.sort_by(:happened_at, order: :descending).map do |timer|
{
:title => timer.name,
:subtitle => "#{(Time.now - ti... | <|file_sep|>original/app/screens/timers_screen.rb
title "When did"
def on_load
set_nav_bar_button :right, system_icon: :add, action: :add_timer
start_counter
end
def table_data
[{
:cells => Timer.all.map do |timer|
{
:title => timer.name,
:subtitle => "#{(T... | ddeea3e24f35e22e8778273912d6b4d15783f391 | app/screens/timers_screen.rb | app/screens/timers_screen.rb | Ruby |
<|file_sep|>original/lib/services/chef_project/chef_project_generator.rb
end
def start
create_project_folder
copy_base_files
end
def project_path
BASE_FOLDER.join(name)
end
private
def create_project_folder
FileUtils.mkdir_p project_path
end
def copy_base_files
FileUtils.cp_r ... | def start
create_project_folder
copy_base_files
end
def project_path
BASE_FOLDER.join(name)
end
private
def create_project_folder
%w(nodes roles).each do |dir|
FileUtils.mkdir_p project_path.join(dir)
end
end
def copy_base_files
FileUtils.cp_r Dir.glob("#{TEMPLATE_PATH}... | <|file_sep|>original/lib/services/chef_project/chef_project_generator.rb
end
def start
create_project_folder
copy_base_files
end
def project_path
BASE_FOLDER.join(name)
end
private
def create_project_folder
FileUtils.mkdir_p project_path
end
def copy_base_files
FileUtils.cp_r ... | c0e3ab9a6c1af93469a76648d52d4ac56d88cc05 | lib/services/chef_project/chef_project_generator.rb | lib/services/chef_project/chef_project_generator.rb | Ruby |
<|file_sep|>original/web/css/global.css
.top-selection{
padding-bottom:20px;
}
div.block{
padding:20px;
}
div#form_agent label,
div#form_nb label{
display:inline-block;
margin-right: 20px;
}
path.domain{
stroke:black;
fill:none;
}
line.tick{
stroke:black;
<|file_sep|>current/web/css/glo... | .top-selection{
padding-bottom:20px;
}
.table th.text-right,
.table td.text-right{
text-align:right;
}
div.block{
padding:20px;
}
div#form_agent label,
div#form_nb label{
display:inline-block;
margin-right: 20px;
}
path.domain{
stroke:black; | <|file_sep|>original/web/css/global.css
.top-selection{
padding-bottom:20px;
}
div.block{
padding:20px;
}
div#form_agent label,
div#form_nb label{
display:inline-block;
margin-right: 20px;
}
path.domain{
stroke:black;
fill:none;
}
line.tick{
stroke:black;
<|file_sep|>current/web/css/glo... | 1f00ca6eb9a5d7162a19bfd2915f1c504f60a2eb | web/css/global.css | web/css/global.css | CSS |
<|file_sep|>original/gocipher/vigenere_test.go
package gocipher
import (
"fmt"
"testing"
)
func TestVigenere(t *testing.T) {
text := "TKSYMWRJGHKBPTEIKCYRWXIELQUPSUTLLGYFIKYIAVFNRLQFKVVSMBMJOCZGILSEAPZRGCVVHTVQYKXJSHARVIPCOGHXGZCGLQNEEXLPDQVXWBLVKCTRSVXYWUORPNEJKVYBROGIQRABKZEGZAAJSMQRANLAGZCGLKVATZSUMEAFQICYSXLNP... | package gocipher
import (
"fmt"
"testing"
)
func TestVigenere(t *testing.T) {
text := "TKSYMWRJGHKBPTEIKCYRWXIELQUPSUTLLGYFIKYIAVFNRLQFKVVSMBMJOCZGILSEAPZRGCVVHTVQYKXJSHARVIPCOGHXGZCGLQNEEXLPDQVXWBLVKCTRSVXYWUORPNEJKVYBROGIQRABKZEGZAAJSMQRANLAGZCGLKVATZSUMEAFQICYSXLNPUSJLVORWIQVMULEMVXVJHHPIGIKGPLVWAITMTLJLQPVLJLB... | <|file_sep|>original/gocipher/vigenere_test.go
package gocipher
import (
"fmt"
"testing"
)
func TestVigenere(t *testing.T) {
text := "TKSYMWRJGHKBPTEIKCYRWXIELQUPSUTLLGYFIKYIAVFNRLQFKVVSMBMJOCZGILSEAPZRGCVVHTVQYKXJSHARVIPCOGHXGZCGLQNEEXLPDQVXWBLVKCTRSVXYWUORPNEJKVYBROGIQRABKZEGZAAJSMQRANLAGZCGLKVATZSUMEAFQICYSXLNP... | d5db3591c3c013b9fc575bb7e244bf3435527d6d | gocipher/vigenere_test.go | gocipher/vigenere_test.go | Go |
<|file_sep|>packages/sh/shimmer.yaml.diff
original:
hash: 6407fe048542a48db4d0ff55394abdfd17becdaf4d7398c2c36f9d4d1bc42f61
updated:
hash: 5f718e1d5ad3589c41cefa1a9113a3d097c39bceb5268d28877c44cec1afde4e
<|file_sep|>packages/sh/shimmer.yaml.diff
original:
updated:
- '0.1.2'
<|file_sep|>original/packages/sh/shimmer.yaml... | hash: 5f718e1d5ad3589c41cefa1a9113a3d097c39bceb5268d28877c44cec1afde4e
test-bench-deps: {}
maintainer: Ben Lippmeier <benl@ouroborus.net>
synopsis: The Reflective Lambda Machine
changelog: ''
basic-deps:
bytestring: ! '>=0.10 && <0.11'
haskeline: ! '>=0.7 && <0.8'
base: ! '>=4.10 && <4.11'
text: ! '>=1.2 && <1.... | <|file_sep|>packages/sh/shimmer.yaml.diff
original:
hash: 6407fe048542a48db4d0ff55394abdfd17becdaf4d7398c2c36f9d4d1bc42f61
updated:
hash: 5f718e1d5ad3589c41cefa1a9113a3d097c39bceb5268d28877c44cec1afde4e
<|file_sep|>packages/sh/shimmer.yaml.diff
original:
updated:
- '0.1.2'
<|file_sep|>original/packages/sh/shimmer.yaml... | 1e9e3192dcc4a447fc84999e9a23ea7ca8cd8e74 | packages/sh/shimmer.yaml | packages/sh/shimmer.yaml | YAML |
<|file_sep|>original/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py
<|file_sep|>current/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py
<|file_sep|>updated/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.gis.geos import Point
from django.db import models, migrations
from genericm2m.utils import monkey_patch
class Migration(migrations.Migration):
dependencies = [
('firestation', '0019_assign-station-number-2'),
('... | <|file_sep|>original/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py
<|file_sep|>current/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py
<|file_sep|>updated/firecares/firestation/migrations/0020_update_greeley_headquarters_location.py
# -*- coding: utf-8 -*-... | 7b5de280562f5984b04c63432de8f28e03b57cbd | firecares/firestation/migrations/0020_update_greeley_headquarters_location.py | firecares/firestation/migrations/0020_update_greeley_headquarters_location.py | Python |
<|file_sep|>backoff_test.go.diff
original:
import (
"testing"
"math/rand"
"time"
)
updated:
import "testing"
<|file_sep|>original/backoff_test.go
func TestBackoffWitDifferentNumberOfRetries(t *testing.T) {
const MAX_RETRIES = 10
randSrc := rand.NewSource(time.Now().UnixNano())
randGen := rand.New(randSrc)
for i... | package grpc
import "testing"
func TestBackoffConfigDefaults(t *testing.T) {
b := BackoffConfig{}
setDefaults(&b)
if b != DefaultBackoffConfig {
t.Fatalf("expected BackoffConfig to pickup default parameters: %v != %v", b, DefaultBackoffConfig)
}
} | <|file_sep|>backoff_test.go.diff
original:
import (
"testing"
"math/rand"
"time"
)
updated:
import "testing"
<|file_sep|>original/backoff_test.go
func TestBackoffWitDifferentNumberOfRetries(t *testing.T) {
const MAX_RETRIES = 10
randSrc := rand.NewSource(time.Now().UnixNano())
randGen := rand.New(randSrc)
for i... | 34d99ff2c2406eb420be2727f0045f0b673a7df6 | backoff_test.go | backoff_test.go | Go |
<|file_sep|>original/.buildscript/deploy_snapshot.sh
SLUG="kunny/android-CircleRefreshLayout"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
elif [ "$TRAVIS_JDK_VERSION" != "$JDK... | SLUG="kunny/android-CircleRefreshLayout"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then
echo "Skipping snapshot deployment: wrong... | <|file_sep|>original/.buildscript/deploy_snapshot.sh
SLUG="kunny/android-CircleRefreshLayout"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
elif [ "$TRAVIS_JDK_VERSION" != "$JDK... | 698c2a75a3a129ca9c27dc5416147206f9478cef | .buildscript/deploy_snapshot.sh | .buildscript/deploy_snapshot.sh | Shell |
<|file_sep|>original/preferences/models.py
from django.db import models
from django.contrib.auth.models import User
from opencivicdata.models.people_orgs import Person
class Preferences(models.Model):
user = models.OneToOneField(User, related_name='preferences')
address = models.CharField(max_length=100, blan... | from django.db import models
from django.contrib.auth.models import User
from opencivicdata.models.people_orgs import Person
class Preferences(models.Model):
user = models.OneToOneField(User, related_name='preferences')
address = models.CharField(max_length=100, blank=True, null=True)
lat = models.FloatFi... | <|file_sep|>original/preferences/models.py
from django.db import models
from django.contrib.auth.models import User
from opencivicdata.models.people_orgs import Person
class Preferences(models.Model):
user = models.OneToOneField(User, related_name='preferences')
address = models.CharField(max_length=100, blan... | c95d78378c7b3b234439e1d9a9bc41539b9080f5 | preferences/models.py | preferences/models.py | Python |
<|file_sep|>original/pyproject.toml
[tool.black]
line-length = 88
target-version = ['py36']
skip-string-normalization = true
exclude = '''
(
/(
\.eggs
| \.git
| \.tox
| \.venv
| build
| dist
)
)
'''
<|file_sep|>current/pyproject.toml
[tool.black]
line-length = 88
target-version = ['py36']
... | [tool.black]
line-length = 88
target-version = ['py37']
skip-string-normalization = true
exclude = '''
(
/(
\.eggs
| \.git
| \.tox
| \.venv
| build
| dist
)
)
''' | <|file_sep|>original/pyproject.toml
[tool.black]
line-length = 88
target-version = ['py36']
skip-string-normalization = true
exclude = '''
(
/(
\.eggs
| \.git
| \.tox
| \.venv
| build
| dist
)
)
'''
<|file_sep|>current/pyproject.toml
[tool.black]
line-length = 88
target-version = ['py36']
... | ffceac79df71c9db7add514e42214afaab6016ca | pyproject.toml | pyproject.toml | TOML |
<|file_sep|>original/lib/generators/adauth/config/templates/config.rb.erb
c.server = "127.0.0.1"
# The LDAP base of your domain/intended users
#
# For all users in your domain the base would be:
# dc=example, dc=com
# OUs can be prepeneded to restrict access to your app
c.base = "dc=example, dc=com"
# The p... | c.base = "dc=example, dc=com"
# The port isn't always needed as Adauth defaults to 389 the LDAP Port
#
# If your DC is on the other side of a firewall you may need to change the port
#c.port = 389
# Windows Security groups to allow
#
# Only allow members of set windows security groups to login
#
# Takes ... | <|file_sep|>original/lib/generators/adauth/config/templates/config.rb.erb
c.server = "127.0.0.1"
# The LDAP base of your domain/intended users
#
# For all users in your domain the base would be:
# dc=example, dc=com
# OUs can be prepeneded to restrict access to your app
c.base = "dc=example, dc=com"
# The p... | e6fc986afef1717fc1ce849894d17092545abedd | lib/generators/adauth/config/templates/config.rb.erb | lib/generators/adauth/config/templates/config.rb.erb | HTML+ERB |
<|file_sep|>original/composer.json
"license": "MIT",
"keywords": [
"phpunit",
"compatibility",
"adapter",
"phpunit5",
"phpunit4"
],
"require": {
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": ">=4.8.0 <5.3"
},
"autoload": {
"psr-4": {
"Procurios\\TDD\\Phpunit... | "license": "MIT",
"keywords": [
"phpunit",
"compatibility",
"adapter",
"phpunit5",
"phpunit4"
],
"require": {
"php": ">=5.3",
"phpunit/phpunit": ">=4.8.0 <5.3"
},
"autoload": {
"psr-4": {
"Procurios\\TDD\\PhpunitAdapter\\": "src/"
}
},
"autoload-dev": {
"psr... | <|file_sep|>original/composer.json
"license": "MIT",
"keywords": [
"phpunit",
"compatibility",
"adapter",
"phpunit5",
"phpunit4"
],
"require": {
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": ">=4.8.0 <5.3"
},
"autoload": {
"psr-4": {
"Procurios\\TDD\\Phpunit... | 0b88df9b4c916cc56d59156eabe021a9207223dc | composer.json | composer.json | JSON |
<|file_sep|>Sources/OCAObject.h.diff
original:
if ( ! (CONDITION) && (( [[NSAssertionHandler currentHandler] \
handleFailureInFunction: [NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
file: [NSString stringWithUTF8String:__FILE__] \
... |
#define OCAAssert(CONDITION, MESSAGE, ...) \
if ( ! (CONDITION) && (( [[NSAssertionHandler currentHandler] \
handleFailureInFunction: [NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
file: [NSString stringWithUTF8String:__FILE__] \
... | <|file_sep|>Sources/OCAObject.h.diff
original:
if ( ! (CONDITION) && (( [[NSAssertionHandler currentHandler] \
handleFailureInFunction: [NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
file: [NSString stringWithUTF8String:__FILE__] \
... | 77cd208abac5095c288ff103709a8ddd4d4e8b3d | Sources/OCAObject.h | Sources/OCAObject.h | C |
<|file_sep|>metadata/rs.ltt.android.yml.diff
original:
updated:
- versionName: 0.1.3
versionCode: 4
commit: 0.1.3
subdir: app
init:
- cd ../..
- mv rs.ltt.android rs.ltt.android_underlying
- mkdir rs.ltt.android
- disorderfs --sort-dirents=yes --reverse-dirents=no rs.ltt.andro... | gradle:
- yes
- versionName: 0.1.3
versionCode: 4
commit: 0.1.3
subdir: app
init:
- cd ../..
- mv rs.ltt.android rs.ltt.android_underlying
- mkdir rs.ltt.android
- disorderfs --sort-dirents=yes --reverse-dirents=no rs.ltt.android_underlying
rs.ltt.android
... | <|file_sep|>metadata/rs.ltt.android.yml.diff
original:
updated:
- versionName: 0.1.3
versionCode: 4
commit: 0.1.3
subdir: app
init:
- cd ../..
- mv rs.ltt.android rs.ltt.android_underlying
- mkdir rs.ltt.android
- disorderfs --sort-dirents=yes --reverse-dirents=no rs.ltt.andro... | 580dcd31b898be91b3ed8a5d54527c0e4d79956d | metadata/rs.ltt.android.yml | metadata/rs.ltt.android.yml | YAML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
before_install:
- travis_retry composer self-update
install:
<|file_sep|>current/.travis.yml
language: php
php:
- 5.4
- 5.5
-... | language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
before_install:
- travis_retry composer self-update
| <|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
before_install:
- travis_retry composer self-update
install:
<|file_sep|>current/.travis.yml
language: php
php:
- 5.4
- 5.5
-... | ca4154648d3d4348bce636a43a72df3f9cd9134c | .travis.yml | .travis.yml | YAML |
<|file_sep|>KSPAutomaticHeightCalculationTableCellView.podspec.diff
original:
spec.platform = :osx, "10.7"
updated:
spec.platform = :osx, "10.8"
<|file_sep|>original/KSPAutomaticHeightCalculationTableCellView.podspec
spec.authors = {'Konstantin Pavlikhin' => 'k.pavlikhin@gmail.com'}
spec.social_media_url = 'ht... | spec.authors = {'Konstantin Pavlikhin' => 'k.pavlikhin@gmail.com'}
spec.social_media_url = 'https://twitter.com/kpavlikhin'
spec.license = {:type => 'MIT', :file => 'License.md'}
spec.homepage = 'https://github.com/konstantinpavlikhin/KSPAutomaticHeightCalculationTableCellView'
spec.source = {:git => 'htt... | <|file_sep|>KSPAutomaticHeightCalculationTableCellView.podspec.diff
original:
spec.platform = :osx, "10.7"
updated:
spec.platform = :osx, "10.8"
<|file_sep|>original/KSPAutomaticHeightCalculationTableCellView.podspec
spec.authors = {'Konstantin Pavlikhin' => 'k.pavlikhin@gmail.com'}
spec.social_media_url = 'ht... | 12866e572296beb03ac61f882298556afa970444 | KSPAutomaticHeightCalculationTableCellView.podspec | KSPAutomaticHeightCalculationTableCellView.podspec | Ruby |
<|file_sep|>lib/gitlab/ci/pipeline/chain/create.rb.diff
original:
ensure
if pipeline.builds.where(stage_id: nil).any?
invalid_builds_counter.increment(node: hostname)
end
updated:
<|file_sep|>original/lib/gitlab/ci/pipeline/chain/create.rb
ensure
if... | ::Ci::Pipeline.transaction do
pipeline.save!
@command.seeds_block&.call(pipeline)
::Ci::CreatePipelineStagesService
.new(project, current_user)
.execute(pipeline)
end
rescue ActiveRecord::RecordInvalid => e
... | <|file_sep|>lib/gitlab/ci/pipeline/chain/create.rb.diff
original:
ensure
if pipeline.builds.where(stage_id: nil).any?
invalid_builds_counter.increment(node: hostname)
end
updated:
<|file_sep|>original/lib/gitlab/ci/pipeline/chain/create.rb
ensure
if... | 29d87db896a6f67f72679694c3d481eff4275a18 | lib/gitlab/ci/pipeline/chain/create.rb | lib/gitlab/ci/pipeline/chain/create.rb | Ruby |
<|file_sep|>original/plugins/campfire/index.coffee
NotificationPlugin = require "../../notification-plugin"
class Campfire extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
# Build the message
message = "#{event.trigger.message} in #{event.project.name}!"
if event.error
message... | NotificationPlugin = require "../../notification-plugin"
class Campfire extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
# Build the message
message = "#{event.trigger.message} in #{event.error.releaseStage} from #{event.project.name}!"
if event.error
message += " #{event.erro... | <|file_sep|>original/plugins/campfire/index.coffee
NotificationPlugin = require "../../notification-plugin"
class Campfire extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
# Build the message
message = "#{event.trigger.message} in #{event.project.name}!"
if event.error
message... | 0d831e38c0e97d69759b0e28e86ce5d72e364741 | plugins/campfire/index.coffee | plugins/campfire/index.coffee | CoffeeScript |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "5.6"
- "5.5"
- "5.4"
- "5.3"
- "5.2"
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change
on_failu... | language: node_js
node_js:
- "5.7"
- "5.6"
- "5.5"
- "5.4"
- "5.3"
- "5.2"
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "5.6"
- "5.5"
- "5.4"
- "5.3"
- "5.2"
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change
on_failu... | 764d56f42ae1f385d995c2423e4d3e48c0fa242a | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/tasks/assets.rake.diff
original:
updated:
raise "Cannot find a constant with the #{name} specified in the argument string" if klass.nil?
<|file_sep|>lib/tasks/assets.rake.diff
original:
updated:
versions = []
<|file_sep|>lib/tasks/assets.rake.diff
original:
versions = ENV['VERSIONS'].spl... | task reprocess: :environment do
name = (ENV['CLASS'] || ENV['class'] || 'Asset').to_s
klass = name.safe_constantize
raise "Cannot find a constant with the #{name} specified in the argument string" if klass.nil?
versions = []
if ENV['VERSIONS']
all_versions = klass.uploaders[:data].versions.... | <|file_sep|>lib/tasks/assets.rake.diff
original:
updated:
raise "Cannot find a constant with the #{name} specified in the argument string" if klass.nil?
<|file_sep|>lib/tasks/assets.rake.diff
original:
updated:
versions = []
<|file_sep|>lib/tasks/assets.rake.diff
original:
versions = ENV['VERSIONS'].spl... | 4835521e4ae1dd0f9c139e98e3a6dc7f1d7872a7 | lib/tasks/assets.rake | lib/tasks/assets.rake | Ruby |
<|file_sep|>original/workloads/data_caching/memcached/build.sh
#!/bin/bash
rm -rf memcached-1.4.25/build
mkdir memcached-1.4.25/build
pushd memcached-1.4.25/build
../configure && make
popd
pushd mutilate
scons
popd
<|file_sep|>current/workloads/data_caching/memcached/build.sh
#!/bin/bash
rm -rf memcached-1.4.25/build
... | #!/bin/bash
rm -rf memcached-1.4.25/build
mkdir memcached-1.4.25/build
pushd memcached-1.4.25/build
../configure && make
adduser mamcached
popd
pushd mutilate
scons
popd | <|file_sep|>original/workloads/data_caching/memcached/build.sh
#!/bin/bash
rm -rf memcached-1.4.25/build
mkdir memcached-1.4.25/build
pushd memcached-1.4.25/build
../configure && make
popd
pushd mutilate
scons
popd
<|file_sep|>current/workloads/data_caching/memcached/build.sh
#!/bin/bash
rm -rf memcached-1.4.25/build
... | 95397667cdfbeb76e5ff613926139b72393abed2 | workloads/data_caching/memcached/build.sh | workloads/data_caching/memcached/build.sh | Shell |
<|file_sep|>helpers/ansible/roles/deploy/tasks/sqid-scripts.yml.diff
original:
job: "/usr/bin/jsub -mem 2g -N sqid-update-statistics -once python3 ~/{{ scripts_dest }}/python/update-statistics.py > /dev/null 2>&1 || true"
updated:
job: "/usr/bin/jsub -mem 2g -N sqid-update-statistics -once python3 {{ scripts_de... | copy:
src: "{{ scripts_path }}"
dest: "{{ scripts_dest }}"
- name: Register sqid-update-statistics cron job
cron:
name: sqid-update-statistics
minute: "12"
job: "/usr/bin/jsub -mem 2g -N sqid-update-statistics -once python3 {{ scripts_dest }}/python/update-statistics.py > /dev/null 2>&1 || true... | <|file_sep|>helpers/ansible/roles/deploy/tasks/sqid-scripts.yml.diff
original:
job: "/usr/bin/jsub -mem 2g -N sqid-update-statistics -once python3 ~/{{ scripts_dest }}/python/update-statistics.py > /dev/null 2>&1 || true"
updated:
job: "/usr/bin/jsub -mem 2g -N sqid-update-statistics -once python3 {{ scripts_de... | b7329669e55a01eaf0a73d316ed8c686c9d82677 | helpers/ansible/roles/deploy/tasks/sqid-scripts.yml | helpers/ansible/roles/deploy/tasks/sqid-scripts.yml | YAML |
<|file_sep|>gatekeeper/nodered.py.diff
original:
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.running = True
updated:
<|file_sep|>original/gatekeeper/nodered.py
def __init__(self, intercom):
super(NodeRedDoorbellServerThread, self).__init__()
... | def __init__(self, intercom):
super(NodeRedDoorbellServerThread, self).__init__()
self.intercom = intercom
def run(self):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server_socket:
self.running = True
self.server_socket.bind(('', NODE_RED_SERVER_POR... | <|file_sep|>gatekeeper/nodered.py.diff
original:
self.server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.running = True
updated:
<|file_sep|>original/gatekeeper/nodered.py
def __init__(self, intercom):
super(NodeRedDoorbellServerThread, self).__init__()
... | 8d925147bf459021ca9735faec375608963d0269 | gatekeeper/nodered.py | gatekeeper/nodered.py | Python |
<|file_sep|>app/controllers/resources_controller.rb.diff
original:
redirect_to new_resource_path
updated:
render new_resource_path
<|file_sep|>app/controllers/resources_controller.rb.diff
original:
redirect_to edit_resource_path(@resource)
updated:
render :edit
<|file_sep|>original/app/controlle... | end
end
def destroy
@resource.destroy if correct_user
redirect_to root_path
end
private
def set_resource
@resource = Resource.find_by(id: params[:id])
end
def resource_params
params.require(:resource).permit(:title, :url, :description, :language_id,
:user_id, :favor... | <|file_sep|>app/controllers/resources_controller.rb.diff
original:
redirect_to new_resource_path
updated:
render new_resource_path
<|file_sep|>app/controllers/resources_controller.rb.diff
original:
redirect_to edit_resource_path(@resource)
updated:
render :edit
<|file_sep|>original/app/controlle... | 5ece6cd7eb5df439806b3f18b8ae5bf07691eb87 | app/controllers/resources_controller.rb | app/controllers/resources_controller.rb | Ruby |
<|file_sep|>original/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java
<|file_sep|>current/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java
<|file_sep|>updated/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java | /*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (C) 2016-2018 Barry DeZonia
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ret... | <|file_sep|>original/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java
<|file_sep|>current/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java
<|file_sep|>updated/src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java
/*
* Zorbage: an algebraic data hierarchy for use in... | 929ce9b457a82f7b6ac53cd26cd481633869bbb7 | src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java | src/test/java/nom/bdezonia/zorbage/algorithm/TestPointDistance.java | Java |
<|file_sep|>original/dashboard/dashboard/services/google_sheets_service.py
<|file_sep|>current/dashboard/dashboard/services/google_sheets_service.py
<|file_sep|>updated/dashboard/dashboard/services/google_sheets_service.py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""An interface to the Google Spreadsheets API.
API documentation: https://developers.google.com/sheets/api/reference/rest/
This service uses the default a... | <|file_sep|>original/dashboard/dashboard/services/google_sheets_service.py
<|file_sep|>current/dashboard/dashboard/services/google_sheets_service.py
<|file_sep|>updated/dashboard/dashboard/services/google_sheets_service.py
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is govern... | 95c33d94d5efa5157c45c96cb7f2279c655568a7 | dashboard/dashboard/services/google_sheets_service.py | dashboard/dashboard/services/google_sheets_service.py | Python |
<|file_sep|>exercises/01/README.md.diff
original:
updated:
Упражнение 1
============
<|file_sep|>exercises/01/README.md.diff
original:
- add
updated:
Задачи
------
<|file_sep|>exercises/01/README.md.diff
original:
- odd/even
updated:
1. Да се дефинира функция `add(x, y)`, която сумира `x` и `y`.
<|file_sep|>exercises/... | 1. Да се дефинира функция `add(x, y)`, която сумира `x` и `y`.
2. Да се дефинира предикат `even?(n)`, проверяващ дали `n` е четно и
предикат `odd?(n)`, проверяващ дали `n` е нечетно.
3. Да се дефинира функцията `signum(x)`, която връща -1, 0 или 1 в зависимост
от това, дали `x` е отрицателно, нула или положително.
4... | <|file_sep|>exercises/01/README.md.diff
original:
updated:
Упражнение 1
============
<|file_sep|>exercises/01/README.md.diff
original:
- add
updated:
Задачи
------
<|file_sep|>exercises/01/README.md.diff
original:
- odd/even
updated:
1. Да се дефинира функция `add(x, y)`, която сумира `x` и `y`.
<|file_sep|>exercises/... | 8c287ecfd333c6ba58092d8fe06b8b8238d56ac8 | exercises/01/README.md | exercises/01/README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.