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/polling_stations/templates/fragments/register_to_vote.html
{% load i18n %}
<div class="card">
{% blocktrans %}
<h3>
<span aria-hidden="true">π</span>
You need to be registered in order to vote
</h3>
<p>
If you aren't registered ... | {% load i18n %}
<div class="card">
{% blocktrans %}
<h3>
<span aria-hidden="true">π</span>
You need to be registered in order to vote
</h3>
<p>
If you aren't registered to vote visit
<a href="https://www.gov.uk/register-to-vote" target="_t... | <|file_sep|>original/polling_stations/templates/fragments/register_to_vote.html
{% load i18n %}
<div class="card">
{% blocktrans %}
<h3>
<span aria-hidden="true">π</span>
You need to be registered in order to vote
</h3>
<p>
If you aren't registered ... | ef216536cf31fb8e96e2e55f364d778cac5acb9d | polling_stations/templates/fragments/register_to_vote.html | polling_stations/templates/fragments/register_to_vote.html | HTML |
<|file_sep|>original/package.json
"keywords": [
"avahi",
"generator",
"sails",
"generate",
"plugin",
"dbus"
],
"author": "Michael Fladischer <michael@fladi.at>",
"license": "MIT",
"dependencies": {
"dbus-native": "^0.1.2",
"enum": "^1.1.0"
},
"devDependencies": {
"sails... | "keywords": [
"avahi",
"generator",
"sails",
"generate",
"plugin",
"dbus"
],
"author": "Michael Fladischer <michael@fladi.at>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/fladi/sails-generate-avahi"
},
"bugs": {
"url": "https://github.co... | <|file_sep|>original/package.json
"keywords": [
"avahi",
"generator",
"sails",
"generate",
"plugin",
"dbus"
],
"author": "Michael Fladischer <michael@fladi.at>",
"license": "MIT",
"dependencies": {
"dbus-native": "^0.1.2",
"enum": "^1.1.0"
},
"devDependencies": {
"sails... | cbd3bccc2b06b903e8ae971efd09cc5a865e22b1 | package.json | package.json | JSON |
<|file_sep|>tests/integration/modules/test_win_dns_client.py.diff
original:
updated:
# Get a list of interfaces on the system
interfaces = self.run_function('network.interfaces_names')
skipIf(interfaces.count == 0, 'This test requires a network interface')
interface = interfaces[0]
<|f... | def test_add_remove_dns(self):
'''
Test add and removing a dns server
'''
# Get a list of interfaces on the system
interfaces = self.run_function('network.interfaces_names')
skipIf(interfaces.count == 0, 'This test requires a network interface')
interface = i... | <|file_sep|>tests/integration/modules/test_win_dns_client.py.diff
original:
updated:
# Get a list of interfaces on the system
interfaces = self.run_function('network.interfaces_names')
skipIf(interfaces.count == 0, 'This test requires a network interface')
interface = interfaces[0]
<|f... | 9c9e564d51d44fb27101249d57d769828f14e97e | tests/integration/modules/test_win_dns_client.py | tests/integration/modules/test_win_dns_client.py | Python |
<|file_sep|>src/stdlib/Array.js.diff
original:
updated:
const CompletionRecord = require('../CompletionRecord');
<|file_sep|>original/src/stdlib/Array.js
'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../val... | 'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../values/ArrayValue');
const CompletionRecord = require('../CompletionRecord');
class ArrayObject extends EasyObjectValue {
*call(thiz, args, s) {
if ( args... | <|file_sep|>src/stdlib/Array.js.diff
original:
updated:
const CompletionRecord = require('../CompletionRecord');
<|file_sep|>original/src/stdlib/Array.js
'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../val... | 795d87333e81d47b4bfa6d809db539ba7a70898a | src/stdlib/Array.js | src/stdlib/Array.js | JavaScript |
<|file_sep|>README.md.diff
original:
Download
--------
Add a Maven dependency to Nassau:
<dependency>
<groupId>org.jvirtanen.nassau</groupId>
<artifactId>nassau</artifactId>
<version><!-- latest version --></version>
</dependency>
updated:
<|file_sep|>original/README.md
<artifactId>... |
Besides the library, Nassau contains the following applications:
- [**SoupBinTCP Performance Test**](nassau-soupbintcp-perf-test) is a simple
latency benchmark for the SoupBinTCP implementation.
- [**BinaryFILE Performance Test**](nassau-binaryfile-perf-test) is a simple
throughput benchmark for the Bina... | <|file_sep|>README.md.diff
original:
Download
--------
Add a Maven dependency to Nassau:
<dependency>
<groupId>org.jvirtanen.nassau</groupId>
<artifactId>nassau</artifactId>
<version><!-- latest version --></version>
</dependency>
updated:
<|file_sep|>original/README.md
<artifactId>... | 3d1a2c3a10c278ab5e6167149ac0bbe15e4f5c60 | README.md | README.md | Markdown |
<|file_sep|>test_extensions/media_sharing/CMakeLists.txt.diff
original:
../../test_common/harness/errorHelpers.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/testHarness.c
../../test_common/harness/rounding_mode.c
../../test_common/harness/typeWrappers.cpp
... | utils.cpp
test_create_context.cpp
test_functions_api.cpp
test_functions_kernel.cpp
test_get_device_ids.cpp
test_interop_sync.cpp
test_memory_access.cpp
test_other_data_types.cpp
)
add_executable(conformance_test_media_surface_sharing
${MEDIA_S... | <|file_sep|>test_extensions/media_sharing/CMakeLists.txt.diff
original:
../../test_common/harness/errorHelpers.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/testHarness.c
../../test_common/harness/rounding_mode.c
../../test_common/harness/typeWrappers.cpp
... | f15178ca9170a46a08737f8f3dfe551bc78919dc | test_extensions/media_sharing/CMakeLists.txt | test_extensions/media_sharing/CMakeLists.txt | Text |
<|file_sep|>templates/modules/alerts.php.diff
original:
updated:
<div style="display:table-header-group;">
<h2 style="<?= $panel_content_style ?>">
<a style="<?= $link_style ?>" href="<?= $base_url ?>/search/<?= $search['id'] ?>"><?= Util::escape($search['name']) ?></a>
<small style="<?= $sub_style ... | <p style="<?= $panel_content_style ?>">
<?= nl2br(Util::escape($search['description'])) ?>
<?php if($search->isTimeBased()): ?>
<br>
<br>
<b>Time range: </b><?= $search['range'] ?> minute(s)
<?php endif ?>
</p>
</div>
<div style="<?= $table_container_style ?>">
... | <|file_sep|>templates/modules/alerts.php.diff
original:
updated:
<div style="display:table-header-group;">
<h2 style="<?= $panel_content_style ?>">
<a style="<?= $link_style ?>" href="<?= $base_url ?>/search/<?= $search['id'] ?>"><?= Util::escape($search['name']) ?></a>
<small style="<?= $sub_style ... | 7a9d8a4c958fae979f4aa944c13a58df892e831b | templates/modules/alerts.php | templates/modules/alerts.php | PHP |
<|file_sep|>original/Wikidump-Parser/database/create-page_id_categories_view.sql
<|file_sep|>current/Wikidump-Parser/database/create-page_id_categories_view.sql
<|file_sep|>updated/Wikidump-Parser/database/create-page_id_categories_view.sql | CREATE VIEW `page_id_categories` AS (
SELECT p.page_id, c.id, c.name
FROM pages_categories p
LEFT JOIN categories c
ON p.category_id = c.id
); | <|file_sep|>original/Wikidump-Parser/database/create-page_id_categories_view.sql
<|file_sep|>current/Wikidump-Parser/database/create-page_id_categories_view.sql
<|file_sep|>updated/Wikidump-Parser/database/create-page_id_categories_view.sql
CREATE VIEW `page_id_categories` AS (
SELECT p.page_id, c.id, c.name
FROM pag... | e1ce593919b31065873acd5388c5cece812eb2de | Wikidump-Parser/database/create-page_id_categories_view.sql | Wikidump-Parser/database/create-page_id_categories_view.sql | SQL |
<|file_sep|>lib/hermes.rb.diff
original:
updated:
require 'hermes/deploy'
<|file_sep|>lib/hermes.rb.diff
original:
updated:
<|file_sep|>lib/hermes.rb.diff
original:
puts "building using the file #{job}"
updated:
puts "building using the file #{plist}"
<|file_sep|>original/lib/hermes.rb
desc "c... | desc "check", "will check if everything necessary for building easily is present"
def check
puts "checking. Missing tools will be installed, if possible."
end
desc "build JOB", "will build the job"
def build(plist)
puts "building using the file #{plist}"
deplo... | <|file_sep|>lib/hermes.rb.diff
original:
updated:
require 'hermes/deploy'
<|file_sep|>lib/hermes.rb.diff
original:
updated:
<|file_sep|>lib/hermes.rb.diff
original:
puts "building using the file #{job}"
updated:
puts "building using the file #{plist}"
<|file_sep|>original/lib/hermes.rb
desc "c... | 95a2689a6b6bdc4d244c607ff3ad74c9b8c869c1 | lib/hermes.rb | lib/hermes.rb | Ruby |
<|file_sep|>original/drivers/scsi/qla4xxx/ql4_version.h
/*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k4"
<|file_sep|>current/drivers/scsi/qla4xxx/ql4_version.h
/*
* QLogic iSCSI H... | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k5" | <|file_sep|>original/drivers/scsi/qla4xxx/ql4_version.h
/*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.03.00-k4"
<|file_sep|>current/drivers/scsi/qla4xxx/ql4_version.h
/*
* QLogic iSCSI H... | 38a4089a9ef17f3185cb6ec4506f0734b53eabea | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | C |
<|file_sep|>lib/numbers_and_words/wrappers/float.rb.diff
original:
end
def exponential?
number.to_s =~ /[eE]{1}\+/
updated:
<|file_sep|>original/lib/numbers_and_words/wrappers/float.rb
integral_part.to_i.to_words options.merge(integral_options)
end
def fractional_part_with opt... | integral_part.to_i.to_words options.merge(integral_options)
end
def fractional_part_with options
fractional_part.to_i.to_words options.merge(fractional_options)
end
def integral_options
{:integral => {}}
end
def fractional_options
{:fractional => {:... | <|file_sep|>lib/numbers_and_words/wrappers/float.rb.diff
original:
end
def exponential?
number.to_s =~ /[eE]{1}\+/
updated:
<|file_sep|>original/lib/numbers_and_words/wrappers/float.rb
integral_part.to_i.to_words options.merge(integral_options)
end
def fractional_part_with opt... | 37370b0a8ea4414fa2ed27507985b59fb8fa4846 | lib/numbers_and_words/wrappers/float.rb | lib/numbers_and_words/wrappers/float.rb | Ruby |
<|file_sep|>docker-compose-prod.yml.diff
original:
updated:
restart: always
<|file_sep|>original/docker-compose-prod.yml
dev:
build: .
env_file: .env.prod
working_dir: /usr/src/app
links:
- redis
environment:
- CRON_INTERVAL=0 0 */1 * * *
- NODE_ENV=production
redis:
... | dev:
build: .
env_file: .env.prod
working_dir: /usr/src/app
links:
- redis
environment:
- CRON_INTERVAL=0 0 */1 * * *
- NODE_ENV=production
restart: always
redis:
image: redis
restart: always | <|file_sep|>docker-compose-prod.yml.diff
original:
updated:
restart: always
<|file_sep|>original/docker-compose-prod.yml
dev:
build: .
env_file: .env.prod
working_dir: /usr/src/app
links:
- redis
environment:
- CRON_INTERVAL=0 0 */1 * * *
- NODE_ENV=production
redis:
... | f40cc5e6f6da5e2e2447b9c626671d3d61864ea1 | docker-compose-prod.yml | docker-compose-prod.yml | YAML |
<|file_sep|>original/app/src/utils/object.coffee
<|file_sep|>current/app/src/utils/object.coffee
<|file_sep|>updated/app/src/utils/object.coffee |
_.mixin
# Tests if the instance of an object is a subtype of a given class. (Note that this only works for coffeescript classes)
# @param [Object] An instance of an object
# @param [Function] The class to test
# @return [Boolean] true if the object is a subtype of class otherwise false
isKindOf: (object, cl... | <|file_sep|>original/app/src/utils/object.coffee
<|file_sep|>current/app/src/utils/object.coffee
<|file_sep|>updated/app/src/utils/object.coffee
_.mixin
# Tests if the instance of an object is a subtype of a given class. (Note that this only works for coffeescript classes)
# @param [Object] An instance of an ob... | f7e643b8c3d870a5f2c34afba8b469bf812c1020 | app/src/utils/object.coffee | app/src/utils/object.coffee | CoffeeScript |
<|file_sep|>original/spec/fixtures/lang/english.yml
---
volume:
sound: loud
liquid: sloshing
hair: "because I'm worth it"
<|file_sep|>current/spec/fixtures/lang/english.yml
---
volume:
sound: loud
liquid: sloshing
hair: "because I'm worth it"
<|file_sep|>updated/spec/fixtures/lang/english.yml | ---
volume:
sound: loud
liquid: sloshing
hair: because I'm worth it | <|file_sep|>original/spec/fixtures/lang/english.yml
---
volume:
sound: loud
liquid: sloshing
hair: "because I'm worth it"
<|file_sep|>current/spec/fixtures/lang/english.yml
---
volume:
sound: loud
liquid: sloshing
hair: "because I'm worth it"
<|file_sep|>updated/spec/fixtures/lang/english.yml
---
volume:
... | 885b7da399a79314c08ace33ebb1d5370da85cf6 | spec/fixtures/lang/english.yml | spec/fixtures/lang/english.yml | YAML |
<|file_sep|>original/requirements_for_test.txt
-r requirements.txt
pycodestyle==2.3.1
pytest==3.1.3
pytest-mock==1.6.0
pytest-cov==2.5.1
requests-mock==1.2.0
freezegun==0.3.8
<|file_sep|>current/requirements_for_test.txt
-r requirements.txt
pycodestyle==2.3.1
pytest==3.1.3
pytest-mock==1.6.0
pytest-cov==2.5.1
requests-... | -r requirements.txt
pycodestyle==2.3.1
pytest==3.1.3
pytest-mock==1.6.0
pytest-cov==2.5.1
requests-mock==1.3.0
freezegun==0.3.8 | <|file_sep|>original/requirements_for_test.txt
-r requirements.txt
pycodestyle==2.3.1
pytest==3.1.3
pytest-mock==1.6.0
pytest-cov==2.5.1
requests-mock==1.2.0
freezegun==0.3.8
<|file_sep|>current/requirements_for_test.txt
-r requirements.txt
pycodestyle==2.3.1
pytest==3.1.3
pytest-mock==1.6.0
pytest-cov==2.5.1
requests-... | fe17662f16ca5608f703cc9a25eb257a4b66587b | requirements_for_test.txt | requirements_for_test.txt | Text |
<|file_sep|>original/.scss-lint.yml
<|file_sep|>current/.scss-lint.yml
<|file_sep|>updated/.scss-lint.yml | linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false
BorderZero:
enabled: true
ColorKeyword:
enabled: false
Comment:
enabled: false
DebugStatement:
enabled: true
DeclarationOrder:
enabled: true | <|file_sep|>original/.scss-lint.yml
<|file_sep|>current/.scss-lint.yml
<|file_sep|>updated/.scss-lint.yml
linters:
BangFormat:
enabled: true
space_before_bang: true
space_after_bang: false
BorderZero:
enabled: true
ColorKeyword:
enabled: false
Comment:
enabled: false
DebugStatem... | a57452d4dd7f0395b1842a4292c27163c25a4a25 | .scss-lint.yml | .scss-lint.yml | YAML |
<|file_sep|>original/compiler_source/3_runtime_perl/template-segment-start-object-code-begin.txt
#!/usr/bin/perl <new_line>
<new_line>
# no-space dashes-long-line <new_line>
# Dashrep compiler output <new_line>
<new_line>
# object-code-copyright-notice <new_line>
<new_line>
<new_line>
# no-space dashes-long-line ... | #!/usr/bin/perl <new_line>
<new_line>
# no-space dashes-long-line <new_line>
# Dashrep compiler output <new_line>
<new_line>
# object-code-copyright-notice <new_line>
<new_line>
<new_line>
# no-space dashes-long-line <new_line>
# Copyright notice within phrase "source<character_hyphen>code<character_hyphen>copy... | <|file_sep|>original/compiler_source/3_runtime_perl/template-segment-start-object-code-begin.txt
#!/usr/bin/perl <new_line>
<new_line>
# no-space dashes-long-line <new_line>
# Dashrep compiler output <new_line>
<new_line>
# object-code-copyright-notice <new_line>
<new_line>
<new_line>
# no-space dashes-long-line ... | eac8c5619ebfa919345137f8b91ca791c26444e7 | compiler_source/3_runtime_perl/template-segment-start-object-code-begin.txt | compiler_source/3_runtime_perl/template-segment-start-object-code-begin.txt | Text |
<|file_sep|>plugins/unifiedvideoinertialtracker/org_osvr_unifiedvideoinertial.json.diff
original:
"postrotate": {
"axis": "z",
"degrees": 0
},
"child": {
"changeBasis": {
"x": "x",
... | "interfaces": {
"tracker": {
"position": true,
"orientation": true,
"count": 1
}
},
"semantic": {
"hmd": {
"$target": {
"translate": [0.0, 0.0, 0.04141],
"child": "tracker/0"
}
}
}... | <|file_sep|>plugins/unifiedvideoinertialtracker/org_osvr_unifiedvideoinertial.json.diff
original:
"postrotate": {
"axis": "z",
"degrees": 0
},
"child": {
"changeBasis": {
"x": "x",
... | 2923ff994614dbdb8a62c1f162c98ca82ae46f79 | plugins/unifiedvideoinertialtracker/org_osvr_unifiedvideoinertial.json | plugins/unifiedvideoinertialtracker/org_osvr_unifiedvideoinertial.json | JSON |
<|file_sep|>_posts/2016-02-24-VBoxManage-cmd.md.diff
original:
updated:
<|file_sep|>_posts/2016-02-24-VBoxManage-cmd.md.diff
original:
updated:
<|file_sep|>original/_posts/2016-02-24-VBoxManage-cmd.md
```
VBoxManage list vms
VBoxManage clonevm ubuntu_15.05 --name new_vm_name --register
VBoxManage showvminfo ac_jira... | VBoxManage clonevm ubuntu_15.05 --name new_vm_name --register
VBoxManage showvminfo ac_jira
VBoxManage export ubuntu_15.04 -o ubuntu_15.04_base.ova
VBoxManage import ubuntu_15.04_base.ova
VBoxManage clonevm ubuntu_15.04 --name ac_jira --register
VBoxManage unregistervm ubuntu_15.04_jira --delete
VBoxManage modifyvm "Wi... | <|file_sep|>_posts/2016-02-24-VBoxManage-cmd.md.diff
original:
updated:
<|file_sep|>_posts/2016-02-24-VBoxManage-cmd.md.diff
original:
updated:
<|file_sep|>original/_posts/2016-02-24-VBoxManage-cmd.md
```
VBoxManage list vms
VBoxManage clonevm ubuntu_15.05 --name new_vm_name --register
VBoxManage showvminfo ac_jira... | 14705a4e838c1d030b107f41c2ce2615a5968975 | _posts/2016-02-24-VBoxManage-cmd.md | _posts/2016-02-24-VBoxManage-cmd.md | Markdown |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.5"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- exp... | language: python
python:
- "2.7"
- "3.5"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PA... | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.5"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- exp... | 8e05672f4b13c8f3ce65092405a4b2b4dd50356e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/dom/automation/how-to-use-new.txt
* If it finds a bug, it will place a file in a wtmp*/ directory, and try to reduce it with Lithium.
objdir must be a Firefox object directory built with --enable-tests, and its parent must be a Firefox source directory.
Crashes:
* It's probably best if you compil... | * If it finds a bug, it will place a file in a wtmp*/ directory, and try to reduce it with Lithium.
objdir must be a Firefox object directory built with --enable-tests, and its parent must be a Firefox source directory.
Crashes:
* It's probably best if you compiled Firefox with --enable-breakpad and you have minidump... | <|file_sep|>original/dom/automation/how-to-use-new.txt
* If it finds a bug, it will place a file in a wtmp*/ directory, and try to reduce it with Lithium.
objdir must be a Firefox object directory built with --enable-tests, and its parent must be a Firefox source directory.
Crashes:
* It's probably best if you compil... | 59a6ac7eb8aa12a913414dab45f0351ccf93852e | dom/automation/how-to-use-new.txt | dom/automation/how-to-use-new.txt | Text |
<|file_sep|>original/config/deploy/production.rb
role :app, %w(deploy@localhost)
role :web, %w(deploy@localhost)
role :db, %w(deploy@localhost)
server 'localhost', user: 'deploy', roles: %w(web app)
set :rails_env, 'production'
set :linked_files, %w{config/database.yml}
<|file_sep|>current/config/deploy/production.rb
... | role :app, %w(deploy@localhost)
role :web, %w(deploy@localhost)
role :db, %w(deploy@localhost)
server 'localhost', user: 'deploy', roles: %w(web app)
set :rails_env, 'production'
set :linked_files, %w{config/database.yml config/secrets.yml} | <|file_sep|>original/config/deploy/production.rb
role :app, %w(deploy@localhost)
role :web, %w(deploy@localhost)
role :db, %w(deploy@localhost)
server 'localhost', user: 'deploy', roles: %w(web app)
set :rails_env, 'production'
set :linked_files, %w{config/database.yml}
<|file_sep|>current/config/deploy/production.rb
... | 2aecf5dd32711fb3791eab6988e1de00054b16f3 | config/deploy/production.rb | config/deploy/production.rb | Ruby |
<|file_sep|>original/packages/si/sitepipe.yaml
<|file_sep|>current/packages/si/sitepipe.yaml
<|file_sep|>updated/packages/si/sitepipe.yaml | homepage: https://github.com/ChrisPenner/sitepipe#readme
changelog-type: ''
hash: 6b02b1986c18dabca042e43bde85b8b161300544d842aa44301fbc8530f28569
test-bench-deps:
base: -any
sitepipe: -any
maintainer: christopher.penner@gmail.com
synopsis: A simple to understand static site generator
changelog: ''
basic-deps:
Mi... | <|file_sep|>original/packages/si/sitepipe.yaml
<|file_sep|>current/packages/si/sitepipe.yaml
<|file_sep|>updated/packages/si/sitepipe.yaml
homepage: https://github.com/ChrisPenner/sitepipe#readme
changelog-type: ''
hash: 6b02b1986c18dabca042e43bde85b8b161300544d842aa44301fbc8530f28569
test-bench-deps:
base: -any
... | d8f6d11293510acc6ce68677fc209f3f6e7536bb | packages/si/sitepipe.yaml | packages/si/sitepipe.yaml | YAML |
<|file_sep|>packer/linux/scripts/install-lifecycled.sh.diff
original:
https://github.com/lox/lifecycled/releases/download/${LIFECYCLED_VERSION}/lifecycled-linux-${ARCH}
updated:
https://github.com/buildkite/lifecycled/releases/download/${LIFECYCLED_VERSION}/lifecycled-linux-${ARCH}
<|file_sep|>original/packer/linux/s... | set -eu -o pipefail
LIFECYCLED_VERSION=v3.2.0
MACHINE=$(uname -m)
case "${MACHINE}" in
x86_64) ARCH=amd64;;
aarch64) ARCH=arm64;;
*) ARCH=unknown;;
esac
echo "Installing lifecycled ${LIFECYCLED_VERSION}..."
sudo touch /etc/lifecycled
sudo curl -Lf -o /usr/bin/lifecycled \
https://github.com/buildk... | <|file_sep|>packer/linux/scripts/install-lifecycled.sh.diff
original:
https://github.com/lox/lifecycled/releases/download/${LIFECYCLED_VERSION}/lifecycled-linux-${ARCH}
updated:
https://github.com/buildkite/lifecycled/releases/download/${LIFECYCLED_VERSION}/lifecycled-linux-${ARCH}
<|file_sep|>original/packer/linux/s... | 0388a19706fe7f7c4de4d3ee59a86979f2782e7c | packer/linux/scripts/install-lifecycled.sh | packer/linux/scripts/install-lifecycled.sh | Shell |
<|file_sep|>angular/core/components/thread_page/activity_card/stance_created.haml.diff
original:
.thread-item__header.media
updated:
.thread-item__header.media.lmo-flex{layout: "row"}
<|file_sep|>original/angular/core/components/thread_page/activity_card/stance_created.haml
.thread-item{ng-controller: "StanceCreate... | .thread-item{ng-controller: "StanceCreatedItemController"}
.thread-item__header.media.lmo-flex{layout: "row"}
.media-left
%user_avatar{user: "stance.participant()", size: "small"}
.media-body.lmo-flex{layout: "column"}
%h3.thread-item__title{id: "event-{{event.id}}", translate: "poll_thread_item.{... | <|file_sep|>angular/core/components/thread_page/activity_card/stance_created.haml.diff
original:
.thread-item__header.media
updated:
.thread-item__header.media.lmo-flex{layout: "row"}
<|file_sep|>original/angular/core/components/thread_page/activity_card/stance_created.haml
.thread-item{ng-controller: "StanceCreate... | c3b169fe630ee498cb7ed1196015a0acc7f1ce76 | angular/core/components/thread_page/activity_card/stance_created.haml | angular/core/components/thread_page/activity_card/stance_created.haml | Haml |
<|file_sep|>original/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy
* limitations under the License.
*/
package org.gradle.integtests.fixtures.executer
import org.gradle.instantexecution.SystemProperties
import org.gradle.test.fixture... | * limitations under the License.
*/
package org.gradle.integtests.fixtures.executer
import org.gradle.instantexecution.SystemProperties
import org.gradle.test.fixtures.file.TestDirectoryProvider
import org.gradle.util.GradleVersion
class InstantExecutionGradleExecuter extends DaemonGradleExecuter {
InstantEx... | <|file_sep|>original/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy
* limitations under the License.
*/
package org.gradle.integtests.fixtures.executer
import org.gradle.instantexecution.SystemProperties
import org.gradle.test.fixture... | 56495fe830fd5b66ed506ca30864f83f9188b383 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy | Groovy |
<|file_sep|>original/requirements.txt
botocore==1.5.40
boto3==1.4.4
docutils>=0.12
durationpy==0.4
future==0.16.0
futures==3.1.1
hjson==2.0.7
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.16.1
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests>=2.10.0
six==1.10.0
toml==0.9.2
tqdm==4.14.0
troposphere>=... | botocore==1.5.40
boto3==1.4.4
docutils>=0.12
durationpy==0.4
future==0.16.0
futures==3.1.1
hjson==2.0.7
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.16.1
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests>=2.10.0
six==1.10.0
toml==0.9.2
tqdm==4.15.0
troposphere>=1.9.0
Werkzeug==0.12
wheel==0.29.0
wsg... | <|file_sep|>original/requirements.txt
botocore==1.5.40
boto3==1.4.4
docutils>=0.12
durationpy==0.4
future==0.16.0
futures==3.1.1
hjson==2.0.7
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.16.1
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests>=2.10.0
six==1.10.0
toml==0.9.2
tqdm==4.14.0
troposphere>=... | 73e300627613d80f413875e75a70de996c5740ac | requirements.txt | requirements.txt | Text |
<|file_sep|>original/content/issues/18.markdown
---
title: Issue 18
published: 2016-09-01
---
- [cabal new-build is a package manager](http://blog.ezyang.com/2016/08/cabal-new-build-is-a-package-manager/)
> An old article I occasionally see cited today is Repeat after me: "Cabal is not a Package Manager". Many of t... | ---
title: Issue 18
published: 2016-09-01
---
- [cabal new-build is a package manager](http://blog.ezyang.com/2016/08/cabal-new-build-is-a-package-manager/)
> An old article I occasionally see cited today is Repeat after me: "Cabal is not a Package Manager". Many of the complaints don't apply to cabal-install 1.24'... | <|file_sep|>original/content/issues/18.markdown
---
title: Issue 18
published: 2016-09-01
---
- [cabal new-build is a package manager](http://blog.ezyang.com/2016/08/cabal-new-build-is-a-package-manager/)
> An old article I occasionally see cited today is Repeat after me: "Cabal is not a Package Manager". Many of t... | 2eb334d86483ca89ea8c8fc82f702821bc17760a | content/issues/18.markdown | content/issues/18.markdown | Markdown |
<|file_sep|>original/puppet/modules/applicationserver/files/setenv.sh
<|file_sep|>current/puppet/modules/applicationserver/files/setenv.sh
<|file_sep|>updated/puppet/modules/applicationserver/files/setenv.sh | export JENKINS_HOME=/u01/app/jenkins
export CATALINA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=512M -XX:NewSize=128M -XX:MaxNewSize=512M" | <|file_sep|>original/puppet/modules/applicationserver/files/setenv.sh
<|file_sep|>current/puppet/modules/applicationserver/files/setenv.sh
<|file_sep|>updated/puppet/modules/applicationserver/files/setenv.sh
export JENKINS_HOME=/u01/app/jenkins
export CATALINA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSiz... | f4cd3fb1d967d58cdf2b94d97158ffb2514932c0 | puppet/modules/applicationserver/files/setenv.sh | puppet/modules/applicationserver/files/setenv.sh | Shell |
<|file_sep|>original/.travis.yml
language: php
services:
- mysql
php:
- 5.6
- 7.0
- 7.3
install:
- composer self-update
- composer global require "fxp/composer-asset-plugin"
- travis_retry composer install --no-interaction --prefer-source
before_script:
- travis_retry mysql -e "CREATE DATABASE sched... | language: php
services:
- mysql
php:
- 5.6
- 7.0
install:
- composer self-update
- composer global require "fxp/composer-asset-plugin"
- travis_retry composer install --no-interaction --prefer-source
before_script:
- travis_retry mysql -e "CREATE DATABASE scheduler_test;"
- php tests/_app/yii migrat... | <|file_sep|>original/.travis.yml
language: php
services:
- mysql
php:
- 5.6
- 7.0
- 7.3
install:
- composer self-update
- composer global require "fxp/composer-asset-plugin"
- travis_retry composer install --no-interaction --prefer-source
before_script:
- travis_retry mysql -e "CREATE DATABASE sched... | db2f0cf1eaeb38de142e29ae8455a2b21b99b019 | .travis.yml | .travis.yml | YAML |
<|file_sep|>setup.py.diff
original:
from setuptools import setup
updated:
from setuptools import find_packages, setup
<|file_sep|>original/setup.py
from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_ema... | from setuptools import find_packages, setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_email='manish.tomar@rackspace.com',
license='Apache 2.0',
packages=find_packages(),
install_requires=['twisted==13.2.0', 'ka... | <|file_sep|>setup.py.diff
original:
from setuptools import setup
updated:
from setuptools import find_packages, setup
<|file_sep|>original/setup.py
from setuptools import setup
setup(
name='txkazoo',
version='0.0.4',
description='Twisted binding for Kazoo',
maintainer='Manish Tomar',
maintainer_ema... | dc17543e55759267bd10ece8b572643d1231dd31 | setup.py | setup.py | Python |
<|file_sep|>original/byceps/blueprints/user/email_address/templates/user/email_address/request_confirmation_email_form.html
{% extends 'layout/base.html' %}
{% from 'macros/forms.html' import form_buttons, form_field, form_fieldset %}
{% set current_page = 'user_email_address.request_confirmation_email' %}
{% set title... | {% extends 'layout/base_auto.html' %}
{% from 'macros/forms.html' import form_buttons, form_field, form_fieldset %}
{% set current_page = 'user_email_address.request_confirmation_email' %}
{% set title = 'BestΓ€tigungs-E-Mail erneut anfordern' %}
{% block body %}
<h1>{{ title }}</h1>
<form action="{{ url_for('.re... | <|file_sep|>original/byceps/blueprints/user/email_address/templates/user/email_address/request_confirmation_email_form.html
{% extends 'layout/base.html' %}
{% from 'macros/forms.html' import form_buttons, form_field, form_fieldset %}
{% set current_page = 'user_email_address.request_confirmation_email' %}
{% set title... | 2506e848372030d84ea985b93d70701a557f03ad | byceps/blueprints/user/email_address/templates/user/email_address/request_confirmation_email_form.html | byceps/blueprints/user/email_address/templates/user/email_address/request_confirmation_email_form.html | HTML |
<|file_sep|>original/.travis.yml
language: java
script: "mvn clean verify"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- openjdk6
<|file_sep|>current/.travis.yml
language: java
script: "mvn clean verify"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- openjdk6
<|file_sep|>updated/.travis.yml | language: java
script: "mvn clean verify"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7 | <|file_sep|>original/.travis.yml
language: java
script: "mvn clean verify"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- openjdk6
<|file_sep|>current/.travis.yml
language: java
script: "mvn clean verify"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- openjdk6
<|file_sep|>updated/.travis.yml
language: jav... | 0eb7bf4ee09071400669b185e6ce25f19c27664b | .travis.yml | .travis.yml | YAML |
<|file_sep|>google/cai.go.diff
original:
Name string
updated:
Name string `json:"name"`
<|file_sep|>google/cai.go.diff
original:
Type string
Resource *AssetResource
IAMPolicy *IAMPolicy
updated:
Type string `json:"asset_type"`
Resource *AssetResource `json:"resource,omitempty"`
IAMPolicy *IA... | Version string `json:"version"`
// URI including scheme for the discovery doc - assembled from
// product name and version.
DiscoveryDocumentURI string `json:"discovery_document_uri"`
// Resource name.
DiscoveryName string `json:"discovery_name"`
// Actual resource state as per Terraform. Note that this does
/... | <|file_sep|>google/cai.go.diff
original:
Name string
updated:
Name string `json:"name"`
<|file_sep|>google/cai.go.diff
original:
Type string
Resource *AssetResource
IAMPolicy *IAMPolicy
updated:
Type string `json:"asset_type"`
Resource *AssetResource `json:"resource,omitempty"`
IAMPolicy *IA... | b2e4eb0673de9fab36c5e9e472e1079878426d1f | google/cai.go | google/cai.go | Go |
<|file_sep|>recipes/markdown-kernel/meta.yaml.diff
original:
- jupyter
updated:
- jupyter_client
- ipykernel
<|file_sep|>original/recipes/markdown-kernel/meta.yaml
requirements:
host:
- pip
- python
- jupyter
run:
- python
- markdown
- ipykernel
test:
imports:
- markdown_... |
requirements:
host:
- pip
- python
- jupyter_client
- ipykernel
run:
- python
- markdown
- jupyter_client
- ipykernel
test:
imports:
- markdown_kernel
commands:
- jupyter kernelspec list | grep markdown
about:
home: https://github.com/vatlab/markdown-kernel | <|file_sep|>recipes/markdown-kernel/meta.yaml.diff
original:
- jupyter
updated:
- jupyter_client
- ipykernel
<|file_sep|>original/recipes/markdown-kernel/meta.yaml
requirements:
host:
- pip
- python
- jupyter
run:
- python
- markdown
- ipykernel
test:
imports:
- markdown_... | 581e2c0acd8fda55459d96d5cf394c53e042f3bf | recipes/markdown-kernel/meta.yaml | recipes/markdown-kernel/meta.yaml | YAML |
<|file_sep|>original/lib/materialize-sass.rb
require "materialize-sass/version"
module Materialize
module Sass
class Engine < ::Rails::Engine
end
end
end
<|file_sep|>current/lib/materialize-sass.rb
require "materialize-sass/version"
module Materialize
module Sass
class Engine < ::Rails::Engine
e... | require "materialize-sass/version"
module Materialize
module Sass
class Engine < ::Rails::Engine
initializer 'bootstrap-sass.assets.precompile' do |app|
%w(stylesheets javascripts fonts images).each do |sub|
app.config.assets.paths << root.join('assets', sub).to_s
end
app.... | <|file_sep|>original/lib/materialize-sass.rb
require "materialize-sass/version"
module Materialize
module Sass
class Engine < ::Rails::Engine
end
end
end
<|file_sep|>current/lib/materialize-sass.rb
require "materialize-sass/version"
module Materialize
module Sass
class Engine < ::Rails::Engine
e... | 11fd5c4215bd4dbd8d25d5f29e845f0cbf692bd7 | lib/materialize-sass.rb | lib/materialize-sass.rb | Ruby |
<|file_sep|>original/run_me.json
<|file_sep|>current/run_me.json
<|file_sep|>updated/run_me.json | {
"grid" : { "nx" : 100, "ny" : 1, "nz" : 100 },
"variables" : ["pressure_0", "pressure_1", "velocity"],
"output" : [ {"type" : "CheckVariables",
"rhythm" : 1000},
{"type" : "OutputVariables",
"rhythm" : 1000,
"format": "binary",
... | <|file_sep|>original/run_me.json
<|file_sep|>current/run_me.json
<|file_sep|>updated/run_me.json
{
"grid" : { "nx" : 100, "ny" : 1, "nz" : 100 },
"variables" : ["pressure_0", "pressure_1", "velocity"],
"output" : [ {"type" : "CheckVariables",
"rhythm" : 1000},
{"type" ... | fea003c8c1a0c4d6e6acbb0f6ad0e7182581520e | run_me.json | run_me.json | JSON |
<|file_sep|>original/MAINTAINERS.md
To become a maintainer, open a pull request to this list.
## Lieutenant
* [Adam Jacob](https://github.com/adamhjk)
## Maintainers
* [Seth Chisamore](https://github.com/schisamo)
* [Elliott Davis](https://github.com/elliott-davis)
* [Mike Fiedler](https://github.com/miketheman)
* ... |
## Lieutenant
* [Adam Jacob](https://github.com/adamhjk)
## Maintainers
* [Seth Chisamore](https://github.com/schisamo)
* [Elliott Davis](https://github.com/elliott-davis)
* [Mike Fiedler](https://github.com/miketheman)
* [Scott Macfarlane](https://github.com/smacfarlane)
* [Fletcher Nichol](https://github.com/fnic... | <|file_sep|>original/MAINTAINERS.md
To become a maintainer, open a pull request to this list.
## Lieutenant
* [Adam Jacob](https://github.com/adamhjk)
## Maintainers
* [Seth Chisamore](https://github.com/schisamo)
* [Elliott Davis](https://github.com/elliott-davis)
* [Mike Fiedler](https://github.com/miketheman)
* ... | 8b5b524ff770f0cb78f9198c2f7b22ea9068168c | MAINTAINERS.md | MAINTAINERS.md | Markdown |
<|file_sep|>original/unittests/Symbol/CMakeLists.txt
LocateSymbolFileTest.cpp
PostfixExpressionTest.cpp
TestClangASTContext.cpp
TestDWARFCallFrameInfo.cpp
TestType.cpp
LINK_LIBS
lldbHost
lldbSymbol
lldbUtilityHelpers
lldbPluginObjectFileELF
lldbPluginObjectFileMachO
lldbPluginSymbol... | add_lldb_unittest(SymbolTests
LocateSymbolFileTest.cpp
PostfixExpressionTest.cpp
TestClangASTContext.cpp
TestDWARFCallFrameInfo.cpp
TestType.cpp
LINK_LIBS
lldbHost
lldbSymbol
lldbUtilityHelpers
lldbPluginObjectFileELF
lldbPluginObjectFileMachO
lldbPluginSymbolFileDWARF
LLVMTesti... | <|file_sep|>original/unittests/Symbol/CMakeLists.txt
LocateSymbolFileTest.cpp
PostfixExpressionTest.cpp
TestClangASTContext.cpp
TestDWARFCallFrameInfo.cpp
TestType.cpp
LINK_LIBS
lldbHost
lldbSymbol
lldbUtilityHelpers
lldbPluginObjectFileELF
lldbPluginObjectFileMachO
lldbPluginSymbol... | 4470f1ca5351a029bee1e890aa7e796b91c4ea42 | unittests/Symbol/CMakeLists.txt | unittests/Symbol/CMakeLists.txt | Text |
<|file_sep|>test/validation_test.js.diff
original:
updated:
// Tests that records for which no `name` property is defined are marked invalid
// and return a validation fallback message:
<|file_sep|>test/validation_test.js.diff
original:
updated:
// Tests that records for which the `name` property is less than ... | // Tests that records for which the `name` property is less than three (3) characters
// in length are marked invalid and return a validation fallback message:
it ('should require an event\'s name to be at least 3 characters long', () => {
const validationEvt = new Event({ name: 'ab' }),
validation... | <|file_sep|>test/validation_test.js.diff
original:
updated:
// Tests that records for which no `name` property is defined are marked invalid
// and return a validation fallback message:
<|file_sep|>test/validation_test.js.diff
original:
updated:
// Tests that records for which the `name` property is less than ... | 28aed7e4779ad302b0b25b2d321a975179a24602 | test/validation_test.js | test/validation_test.js | JavaScript |
<|file_sep|>src/net/ssehub/kernel_haven/code_model/ast/Function.java.diff
original:
updated:
private @NonNull String name;
<|file_sep|>src/net/ssehub/kernel_haven/code_model/ast/Function.java.diff
original:
public Function(@NonNull Formula presenceCondition, @NonNull SyntaxElement header) {
updated:
p... | }
public @NonNull SyntaxElement getHeader() {
return header;
}
public @NonNull String getName() {
return name;
}
@Override
protected @NonNull String elementToString(@NonNull String indentation) {
return "Function " + name + "\n" + header.toString(indentatio... | <|file_sep|>src/net/ssehub/kernel_haven/code_model/ast/Function.java.diff
original:
updated:
private @NonNull String name;
<|file_sep|>src/net/ssehub/kernel_haven/code_model/ast/Function.java.diff
original:
public Function(@NonNull Formula presenceCondition, @NonNull SyntaxElement header) {
updated:
p... | 3a78f712709f95838729a5ee092fdea40820231a | src/net/ssehub/kernel_haven/code_model/ast/Function.java | src/net/ssehub/kernel_haven/code_model/ast/Function.java | Java |
<|file_sep|>original/metadata.rb
name 'zookeeper'
maintainer 'Simple Finance Technology Corp.'
maintainer_email 'ops@simple.com'
license 'Apache v2.0'
description 'Installs/Configures zookeeper'
version '5.0.0'
issues_url 'https://github.com/evertrue/zookeeper-cookbook/issues' ... | name 'zookeeper'
maintainer 'Simple Finance Technology Corp.'
maintainer_email 'ops@simple.com'
license 'Apache v2.0'
description 'Installs/Configures zookeeper'
version '5.0.0'
issues_url 'https://github.com/evertrue/zookeeper-cookbook/issues' if respond_to?(:issues_url)
sourc... | <|file_sep|>original/metadata.rb
name 'zookeeper'
maintainer 'Simple Finance Technology Corp.'
maintainer_email 'ops@simple.com'
license 'Apache v2.0'
description 'Installs/Configures zookeeper'
version '5.0.0'
issues_url 'https://github.com/evertrue/zookeeper-cookbook/issues' ... | 43e1482994c90fba14646366aeb442783bc1c8b0 | metadata.rb | metadata.rb | Ruby |
<|file_sep|>original/bower.json
"version": "0.15.0-pre",
"main": "support/amber.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"/external",
"/internal",
"/my",
"config.js",
"/test_runner.js",
"test",
"tests"
],
"dependencies": {
"jquery": ">=1.7.0"
... | "version": "0.15.0-pre",
"main": "support/amber.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"/external",
"/internal",
"/my",
"config.js",
"/test_runner.js",
"test",
"tests"
],
"dependencies": {
"jquery": ">=1.7.0"
},
"devDependencies": {
"j... | <|file_sep|>original/bower.json
"version": "0.15.0-pre",
"main": "support/amber.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"/external",
"/internal",
"/my",
"config.js",
"/test_runner.js",
"test",
"tests"
],
"dependencies": {
"jquery": ">=1.7.0"
... | 9a181c33a1c906ef9313f1a76e44cbb471249fa1 | bower.json | bower.json | JSON |
<|file_sep|>original/atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java
public static final String API_KEY_QUERY_PARAMETER = "key";
private final ApplicationStore reader;
public ApiKeySourcesFetcher(ApplicationStore reader) {
this.reader = checkNotNull(reader);
... | public static final String API_KEY_QUERY_PARAMETER = "key";
private final ApplicationStore reader;
public ApiKeySourcesFetcher(ApplicationStore reader) {
this.reader = checkNotNull(reader);
}
@Override
public ImmutableSet<String> getParameterNames() {
return ImmutableS... | <|file_sep|>original/atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java
public static final String API_KEY_QUERY_PARAMETER = "key";
private final ApplicationStore reader;
public ApiKeySourcesFetcher(ApplicationStore reader) {
this.reader = checkNotNull(reader);
... | d258bcec04a528c30271bd56d113884d38276ed6 | atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java | atlas-api/src/main/java/org/atlasapi/application/auth/ApiKeySourcesFetcher.java | Java |
<|file_sep|>lib/scheduler.py.diff
original:
def add(self, task, ttl_skew=0.8):
updated:
def add(self, task, ttl_skew=0.5):
<|file_sep|>original/lib/scheduler.py
class TaskSchedule():
def __init__(self):
self.tasks = []
log.debug("TaskSchedule created")
def add(self, task, ttl_skew=0.8):
offset = ((ttl_skew *... | class TaskSchedule():
def __init__(self):
self.tasks = []
log.debug("TaskSchedule created")
def add(self, task, ttl_skew=0.5):
offset = ((ttl_skew * task.ttl) - task.skew())
log.info("Scheduling '%s' for %ss from now" % (task.name, offset))
if task.skew() > (task.ttl * ttl_skew):
log.warning("Task ske... | <|file_sep|>lib/scheduler.py.diff
original:
def add(self, task, ttl_skew=0.8):
updated:
def add(self, task, ttl_skew=0.5):
<|file_sep|>original/lib/scheduler.py
class TaskSchedule():
def __init__(self):
self.tasks = []
log.debug("TaskSchedule created")
def add(self, task, ttl_skew=0.8):
offset = ((ttl_skew *... | a805d414557a14a8588b6e34a9fbb93cc87651df | lib/scheduler.py | lib/scheduler.py | Python |
<|file_sep|>.travis.yml.diff
original:
# 10.11 (see https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version)
osx_image: xcode7.3
updated:
osx_image: xcode8.2
<|file_sep|>.travis.yml.diff
original:
updated:
# Use system ruby
- rvm system
<|file_sep|>.travis.yml.diff
original:
# Check that playbook runs ... | # Install dependencies
- ansible-galaxy install -r requirements.yml -p ..
script:
# Basic role syntax check
- ansible-playbook tests/test.yml --syntax-check
# Run the playbook
- ansible-playbook tests/test.yml
# Check that launchd was loaded
- sudo launchctl list com.github.gollum
# Test idempoten... | <|file_sep|>.travis.yml.diff
original:
# 10.11 (see https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version)
osx_image: xcode7.3
updated:
osx_image: xcode8.2
<|file_sep|>.travis.yml.diff
original:
updated:
# Use system ruby
- rvm system
<|file_sep|>.travis.yml.diff
original:
# Check that playbook runs ... | 3b37548d039a5bdc7525bf30f97765030e4fe6bc | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/provider.js.diff
original:
import { Kinvey as CoreKinvey } from 'kinvey-javascript-sdk-core';
updated:
import { Kinvey } from 'kinvey-phonegap-sdk';
<|file_sep|>src/provider.js.diff
original:
import { KinveyHttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http';
updated:
import { Ht... | import { Kinvey } from 'kinvey-phonegap-sdk';
import { NetworkRack } from 'kinvey-javascript-sdk-core/es5/rack/rack';
import { HttpMiddleware as KinveyHttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http';
import { HttpMiddleware } from './http';
// Add the Http Middleware to the network rack
con... | <|file_sep|>src/provider.js.diff
original:
import { Kinvey as CoreKinvey } from 'kinvey-javascript-sdk-core';
updated:
import { Kinvey } from 'kinvey-phonegap-sdk';
<|file_sep|>src/provider.js.diff
original:
import { KinveyHttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http';
updated:
import { Ht... | 4a550507844d2ed38a7a2e14aaf9f8cc33ccd567 | src/provider.js | src/provider.js | JavaScript |
<|file_sep|>original/Casks/transporter-desktop.rb
cask :v1 => 'transporter-desktop' do
version '2.8.1_16078'
sha256 '43d0f47993d233fee6209b040b77f42e1b909cfedcbe873b7fb4700782af4c75'
url "https://secure.connecteddata.com/mac/2.5/software/Transporter_Desktop_#{version}.dmg"
homepage 'http://www.filetransporter.... | cask :v1 => 'transporter-desktop' do
version '3.0.15_16791'
sha256 'a30e41afe1be4c0a3b10b2a61a059aee36da173d021ea25e3d73ba3a39d85d25'
url "https://secure.connecteddata.com/mac/2.5/software/Transporter_Desktop_#{version}.dmg"
homepage 'http://www.filetransporter.com/'
license :unknown
app 'Transporter Desk... | <|file_sep|>original/Casks/transporter-desktop.rb
cask :v1 => 'transporter-desktop' do
version '2.8.1_16078'
sha256 '43d0f47993d233fee6209b040b77f42e1b909cfedcbe873b7fb4700782af4c75'
url "https://secure.connecteddata.com/mac/2.5/software/Transporter_Desktop_#{version}.dmg"
homepage 'http://www.filetransporter.... | 579ba52456e2741a6c56562fe0c1207a19ed861c | Casks/transporter-desktop.rb | Casks/transporter-desktop.rb | Ruby |
<|file_sep|>original/package.json
"type": "git",
"url": "git+https://github.com/larvit/larvitamsync.git"
},
"author": "lillem4n <lilleman@larvit.se>",
"license": "ISC",
"bugs": {
"url": "https://github.com/larvit/larvitamsync/issues"
},
"homepage": "https://github.com/larvit/larvitamsync#readme"... | "type": "git",
"url": "git+https://github.com/larvit/larvitamsync.git"
},
"author": "lillem4n <lilleman@larvit.se>",
"license": "ISC",
"bugs": {
"url": "https://github.com/larvit/larvitamsync/issues"
},
"homepage": "https://github.com/larvit/larvitamsync#readme",
"devDependencies": {
"loda... | <|file_sep|>original/package.json
"type": "git",
"url": "git+https://github.com/larvit/larvitamsync.git"
},
"author": "lillem4n <lilleman@larvit.se>",
"license": "ISC",
"bugs": {
"url": "https://github.com/larvit/larvitamsync/issues"
},
"homepage": "https://github.com/larvit/larvitamsync#readme"... | 57f3bf77dc0de6e7cbdc2a273ad3e4cf6c0a1d12 | package.json | package.json | JSON |
<|file_sep|>docker-compose.yml.diff
original:
- ./data/mongodb/db:/data/db
updated:
- data-volume:/data/db
<|file_sep|>original/docker-compose.yml
version: "2"
services:
frontend:
build: client
ports:
- "80:80"
links:
- backend
backend:
build: server
restart: always
p... | frontend:
build: client
ports:
- "80:80"
links:
- backend
backend:
build: server
restart: always
ports:
- "3333:3333"
links:
- mongo
mongo:
image: mongo:3.4
volumes:
- data-volume:/data/db
ports:
- "27017:27017"
volumes:
data-volume: | <|file_sep|>docker-compose.yml.diff
original:
- ./data/mongodb/db:/data/db
updated:
- data-volume:/data/db
<|file_sep|>original/docker-compose.yml
version: "2"
services:
frontend:
build: client
ports:
- "80:80"
links:
- backend
backend:
build: server
restart: always
p... | fa6204a712ce5300b6779aff50710b42294fe754 | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>original/build.sbt
import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-lint"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.24"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe... | import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-lint"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.25"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.1"... | <|file_sep|>original/build.sbt
import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-lint"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.24"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe... | eea8101ac97d5178fdd2099b00c05f489d4b6556 | build.sbt | build.sbt | Scala |
<|file_sep|>js/count.js.diff
original:
httpGetAsync("http://www.aracki.me:7777/count", function (res) {
alert(res);
updated:
getRequest("localhost:7777/count", function (request) {
var response = request.currentTarget.response || request.target.responseText;
console.log(response);
<|file... | document.addEventListener("DOMContentLoaded", function (event) {
// redirect to 7777 port
// ping golang counter
getRequest("localhost:7777/count", function (request) {
var response = request.currentTarget.response || request.target.responseText;
console.log(response);
})
});
function g... | <|file_sep|>js/count.js.diff
original:
httpGetAsync("http://www.aracki.me:7777/count", function (res) {
alert(res);
updated:
getRequest("localhost:7777/count", function (request) {
var response = request.currentTarget.response || request.target.responseText;
console.log(response);
<|file... | 4d84f4549135fce864890b00deedfb81eed3ad23 | js/count.js | js/count.js | JavaScript |
<|file_sep|>original/app/assets/javascripts/models/commit.js.coffee
).property('remoteId')
isRejected: (()->
['rejected', 'auto_rejected'].contains(@get('state'))
).property('state')
isPassed: (()->
@get('state') == 'passed'
).property('state')
isFixed: (()->
@get('state') == 'fixed'
).prop... | ).property('remoteId')
isRejected: (()->
['rejected', 'auto_rejected'].contains(@get('state'))
).property('state')
isPassed: (()->
@get('state') == 'passed'
).property('state')
isFixed: (()->
@get('state') == 'fixed'
).property('state')
isAccepted: (()->
@get('state') == 'accepted'
... | <|file_sep|>original/app/assets/javascripts/models/commit.js.coffee
).property('remoteId')
isRejected: (()->
['rejected', 'auto_rejected'].contains(@get('state'))
).property('state')
isPassed: (()->
@get('state') == 'passed'
).property('state')
isFixed: (()->
@get('state') == 'fixed'
).prop... | 7287cffd34e62acef0f9e945a795ccabe4b88bdf | app/assets/javascripts/models/commit.js.coffee | app/assets/javascripts/models/commit.js.coffee | CoffeeScript |
<|file_sep|>src/main/scala/contrib/Clusltal.scala.diff
original:
updated:
val threads = Math.min(1, Runtime.getRuntime().availableProcessors() - 3)
<|file_sep|>src/main/scala/contrib/Clusltal.scala.diff
original:
config β execute(s"${config.clustalo} -i $input -o $alignment --distmat-out=$distmat --percent-id ... | val devNull = "/dev/null".toPath
val threads = Math.min(1, Runtime.getRuntime().availableProcessors() - 3)
def distanceMatrix(input: Path, alignment: Path, distmat: Path): ConfiguredT[IOThrowable, String] =
ConfiguredT {
config β execute(s"${config.clustalo} -i $input -o $alignment --distmat-out=$distm... | <|file_sep|>src/main/scala/contrib/Clusltal.scala.diff
original:
updated:
val threads = Math.min(1, Runtime.getRuntime().availableProcessors() - 3)
<|file_sep|>src/main/scala/contrib/Clusltal.scala.diff
original:
config β execute(s"${config.clustalo} -i $input -o $alignment --distmat-out=$distmat --percent-id ... | 3fc28fef176e30da984255908c0ace5fcfaac0b4 | src/main/scala/contrib/Clusltal.scala | src/main/scala/contrib/Clusltal.scala | Scala |
<|file_sep|>src/ImboClientCli/Version.php.diff
original:
* This file is part of the Imbo package
updated:
* This file is part of the ImboClientCli package
<|file_sep|>src/ImboClientCli/Version.php.diff
original:
* This string will be replaced by the actual version when installed via pear
*
updated:
<|file_... | *
* For the full copyright and license information, please view the LICENSE file that was
* distributed with this source code.
*/
namespace ImboClientCli;
/**
* Version class
*
* @package Application
* @author Christer Edvartsen <cogo@starzinger.net>
*/
class Version {
/**
* The current version
... | <|file_sep|>src/ImboClientCli/Version.php.diff
original:
* This file is part of the Imbo package
updated:
* This file is part of the ImboClientCli package
<|file_sep|>src/ImboClientCli/Version.php.diff
original:
* This string will be replaced by the actual version when installed via pear
*
updated:
<|file_... | 44380ec6b782455a610af64aa0ee2c5cc7f5da0d | src/ImboClientCli/Version.php | src/ImboClientCli/Version.php | PHP |
<|file_sep|>original/pyconcz_2016/settings_dev.py
from .settings import *
DEBUG = True
SECRET_KEY = 42
INTERNAL_IPS = ['127.0.0.1']
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
WEBPACK_LO... | DEBUG = True
SECRET_KEY = 42
INTERNAL_IPS = ['127.0.0.1']
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
WEBPACK_STATS = os.path.join(BASE_DIR, 'static_build', 'webpack-stats-dev.json')
if ... | <|file_sep|>original/pyconcz_2016/settings_dev.py
from .settings import *
DEBUG = True
SECRET_KEY = 42
INTERNAL_IPS = ['127.0.0.1']
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
WEBPACK_LO... | e12e40ea368dc9027e63474c45b43da42accaf67 | pyconcz_2016/settings_dev.py | pyconcz_2016/settings_dev.py | Python |
<|file_sep|>original/.circleci/config.yml
version: 2
jobs:
build:
docker:
- image: mcr.microsoft.com/dotnet/core/sdk:2.1
steps:
- checkout
- run:
name: Build
command: dotnet build
- run:
name: Unit tests
command: |
dotnet test Kentic... | version: 2
jobs:
build:
docker:
- image: mcr.microsoft.com/dotnet/core/sdk:2.1
steps:
- checkout
- run:
name: Build
command: dotnet build
- run:
name: Unit tests
command: |
dotnet test KenticoKontent.Delivery.Tests
dotnet... | <|file_sep|>original/.circleci/config.yml
version: 2
jobs:
build:
docker:
- image: mcr.microsoft.com/dotnet/core/sdk:2.1
steps:
- checkout
- run:
name: Build
command: dotnet build
- run:
name: Unit tests
command: |
dotnet test Kentic... | 22f4021eddc4b23457e2d2f6f933bba58368f268 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/example/templates/admin/testtags/change_list.html
{% extends "admin/change_list.html" %}
{% load admin_list alphafilter %}
{% block extrastyle %}
{{block.super}}
<style type="text/css" media="screen">
.change-list ul.alphabetfilter li {
width: 0.7em;
}
.inactive {
color: #999;
}
.selected... | {% extends "alphafilter/change_list.html" %} | <|file_sep|>original/example/templates/admin/testtags/change_list.html
{% extends "admin/change_list.html" %}
{% load admin_list alphafilter %}
{% block extrastyle %}
{{block.super}}
<style type="text/css" media="screen">
.change-list ul.alphabetfilter li {
width: 0.7em;
}
.inactive {
color: #999;
}
.selected... | a410157e460692924b2309596c8eb047d17ab698 | example/templates/admin/testtags/change_list.html | example/templates/admin/testtags/change_list.html | HTML |
<|file_sep|>appveyor.yml.diff
original:
updated:
### Project specific config ###
environment:
APM_TEST_PACKAGES:
ATOM_LINT_WITH_BUNDLED_NODE: "true"
matrix:
- ATOM_CHANNEL: stable
- ATOM_CHANNEL: beta
### Generic setup follows ###
build_script:
- ps: iex ((new-object net.webclient).DownloadString('https:... | APM_TEST_PACKAGES:
ATOM_LINT_WITH_BUNDLED_NODE: "true"
matrix:
- ATOM_CHANNEL: stable
- ATOM_CHANNEL: beta
### Generic setup follows ###
build_script:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1'))
branches:
only:
- master... | <|file_sep|>appveyor.yml.diff
original:
updated:
### Project specific config ###
environment:
APM_TEST_PACKAGES:
ATOM_LINT_WITH_BUNDLED_NODE: "true"
matrix:
- ATOM_CHANNEL: stable
- ATOM_CHANNEL: beta
### Generic setup follows ###
build_script:
- ps: iex ((new-object net.webclient).DownloadString('https:... | 3014767ec6d2f1f98dd7bd00cfd25860fabdbf0c | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/test-requirements.txt
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=3.0,<3.1.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
oslote... | # The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=3.0.1,<3.1.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
coverage!=4.4,>=4.... | <|file_sep|>original/test-requirements.txt
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=3.0,<3.1.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
oslote... | 720230d9ddbcf12b29c5edb91591f3d2cb2c41fb | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>original/lib/garufa/cuba/authentication.rb
require 'signature'
require 'garufa/config'
class Cuba
module Authentication
def authenticate
request = Signature::Request.new(req.request_method, env['REQUEST_PATH'], req.params)
request.authenticate { |key| Signature::Token.new(key, Garufa::Con... | require 'signature'
require 'garufa/config'
class Cuba
module Authentication
def authenticate
request = Signature::Request.new(req.request_method, req.path, req.params)
request.authenticate { |key| Signature::Token.new(key, Garufa::Config[:secret]) }
rescue Signature::AuthenticationError
h... | <|file_sep|>original/lib/garufa/cuba/authentication.rb
require 'signature'
require 'garufa/config'
class Cuba
module Authentication
def authenticate
request = Signature::Request.new(req.request_method, env['REQUEST_PATH'], req.params)
request.authenticate { |key| Signature::Token.new(key, Garufa::Con... | a598fd96381d0f8acaa58b9706d9fdc54b064ab9 | lib/garufa/cuba/authentication.rb | lib/garufa/cuba/authentication.rb | Ruby |
<|file_sep|>README.adoc.diff
original:
updated:
= Humanization libraries for Java
<|file_sep|>README.adoc.diff
original:
= Humanization libraries for Java
updated:
<|file_sep|>original/README.adoc
image:https://img.shields.io/github/release/heruan/humanize.svg[link=https://github.com/heruan/humanize/releases,title=L... | = Humanization libraries for Java
image:https://img.shields.io/github/release/heruan/humanize.svg[link=https://github.com/heruan/humanize/releases,title=Latest release]
image:https://img.shields.io/github/downloads/heruan/humanize/total.svg[link=https://github.com/heruan/humanize/archive/master.zip,title=GitHub]
image:... | <|file_sep|>README.adoc.diff
original:
updated:
= Humanization libraries for Java
<|file_sep|>README.adoc.diff
original:
= Humanization libraries for Java
updated:
<|file_sep|>original/README.adoc
image:https://img.shields.io/github/release/heruan/humanize.svg[link=https://github.com/heruan/humanize/releases,title=L... | 7ce252ac7446ac355fa4ddc62d0c1ac84cdd2020 | README.adoc | README.adoc | AsciiDoc |
<|file_sep|>original/build.sbt
enablePlugins(JavaOnlySettings)
name := "ivy-s3-resolver"
organization := "ohnosequences"
bucketSuffix := "era7.com"
javaVersion := "1.7"
javacOptions ++= Seq(
"-Xlint:deprecation"
)
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.197",
"org.apache.ivy" ... | enablePlugins(JavaOnlySettings)
name := "ivy-s3-resolver"
organization := "ohnosequences"
bucketSuffix := "era7.com"
javaVersion := "1.8"
javacOptions ++= Seq(
"-Xlint:deprecation"
)
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.197",
"org.apache.ivy" % "ivy" % "2.4.0"
)
bintrayRel... | <|file_sep|>original/build.sbt
enablePlugins(JavaOnlySettings)
name := "ivy-s3-resolver"
organization := "ohnosequences"
bucketSuffix := "era7.com"
javaVersion := "1.7"
javacOptions ++= Seq(
"-Xlint:deprecation"
)
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.197",
"org.apache.ivy" ... | 171373a6448be80a77cf8fccd3cdfb42ac2f317a | build.sbt | build.sbt | Scala |
<|file_sep|>original/README.md
[](https://chat.zulip.org)
Desktop client for Zulip. Available for Mac, Linux, and Windows.
<img src="http://i.imgur.com/ChzTq4F.png"/>
# Download
Please see the [installation guide](https://zulipchat.com/help... | [](https://chat.zulip.org)
Desktop client for Zulip. Available for Mac, Linux, and Windows.
<img src="http://i.imgur.com/ChzTq4F.png"/>
# Download
Please see the [installation guide](https://zulipchat.com/help/desktop-app-install-guide).
#... | <|file_sep|>original/README.md
[](https://chat.zulip.org)
Desktop client for Zulip. Available for Mac, Linux, and Windows.
<img src="http://i.imgur.com/ChzTq4F.png"/>
# Download
Please see the [installation guide](https://zulipchat.com/help... | 71aa7e28bae2d92ad07bf02c2bd5f6aae038132b | README.md | README.md | Markdown |
<|file_sep|>original/app/views/elements/header/_header.html.slim
= render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/l... | = render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/language' if I18n.available_locales.length > 1
= render ... | <|file_sep|>original/app/views/elements/header/_header.html.slim
= render 'elements/ribbon' if Rails.env.development? || Rails.env.staging?
header.header-site
- if @search_module.enabled? || I18n.available_locales.length > 1
.upper-header
.row
.small-12.columns
= render 'elements/header/l... | 27ee2ce2bcf750210b6f704fa435176f4e3d8889 | app/views/elements/header/_header.html.slim | app/views/elements/header/_header.html.slim | Slim |
<|file_sep|>original/MySQL/HelloWorld/src/mysql-c-api.c
<|file_sep|>current/MySQL/HelloWorld/src/mysql-c-api.c
<|file_sep|>updated/MySQL/HelloWorld/src/mysql-c-api.c | /* http://zetcode.com/db/mysqlc/ */
/* http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html */
#include <mysql.h>
#include <stdio.h>
main(){
MYSQL *conn;
MYSQL_RES *res;
MYSQL_ROW row;
char *server = "localhost";
char *user = "sa";
char *password = "developsa"; /* set me first ... | <|file_sep|>original/MySQL/HelloWorld/src/mysql-c-api.c
<|file_sep|>current/MySQL/HelloWorld/src/mysql-c-api.c
<|file_sep|>updated/MySQL/HelloWorld/src/mysql-c-api.c
/* http://zetcode.com/db/mysqlc/ */
/* http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html */
#include <mysql.h>
#include <stdio.... | edef395077a75fd7137031a3ab83f8d1118dbb51 | MySQL/HelloWorld/src/mysql-c-api.c | MySQL/HelloWorld/src/mysql-c-api.c | C |
<|file_sep|>lessons/python/snakemake_elephant_demo/Readme.rst.diff
original:
The main part of the tutorial is present in form of a jupyer notebook.
updated:
The main part of the tutorial is present in form of a jupyter notebook.
<|file_sep|>lessons/python/snakemake_elephant_demo/Readme.rst.diff
original:
.. _jupyter no... | The main part of the tutorial is present in form of a jupyter notebook.
You can run it locally or online using binder_ by following (|notebook1|).
.. _binder: https://mybinder.org/
.. _jupyter notebooks: https://jupyter.org/
.. |notebook1| image:: https://mybinder.org/badge.svg
:target: https://mybinder.org/v2/gh/... | <|file_sep|>lessons/python/snakemake_elephant_demo/Readme.rst.diff
original:
The main part of the tutorial is present in form of a jupyer notebook.
updated:
The main part of the tutorial is present in form of a jupyter notebook.
<|file_sep|>lessons/python/snakemake_elephant_demo/Readme.rst.diff
original:
.. _jupyter no... | 427c03a871e21c229adfc74f9726a928358b1cef | lessons/python/snakemake_elephant_demo/Readme.rst | lessons/python/snakemake_elephant_demo/Readme.rst | reStructuredText |
<|file_sep|>original/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java
<|file_sep|>current/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java
<|file_sep|>updated/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java | package gr.iti.mklab.simmo.core.annotations;
import gr.iti.mklab.simmo.core.Annotation;
public class SummaryScore implements Annotation {
/** The prior of the item */
private double popularityScore = 0;
/** The prior of the item */
private double priorScore = 0;
/** The divRank score of the i... | <|file_sep|>original/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java
<|file_sep|>current/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java
<|file_sep|>updated/src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java
package gr.iti.mklab.simmo.core.annotations;
import ... | 1ec9c0015c36ddbeaa4c9c5407c91eacc9fdc23e | src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java | src/main/java/gr/iti/mklab/simmo/core/annotations/SummaryScore.java | Java |
<|file_sep|>tests/run-pass/concurrency/tls_lib_drop.rs.diff
original:
//!
//! FIXME: We should have a similar test for thread-local statics (statics
//! annotated with `#[thread_local]`) once they support destructors.
#![feature(thread_local_internals)]
updated:
<|file_sep|>original/tests/run-pass/concurrency/tls_lib... | impl Drop for TestCell {
fn drop(&mut self) {
println!("Dropping: {}", self.value.borrow())
}
}
thread_local! {
static A: TestCell = TestCell { value: RefCell::new(0) };
}
fn main() {
thread::spawn(|| {
A.with(|f| {
assert_eq!(*f.value.borrow(), 0);
*f.value.bor... | <|file_sep|>tests/run-pass/concurrency/tls_lib_drop.rs.diff
original:
//!
//! FIXME: We should have a similar test for thread-local statics (statics
//! annotated with `#[thread_local]`) once they support destructors.
#![feature(thread_local_internals)]
updated:
<|file_sep|>original/tests/run-pass/concurrency/tls_lib... | 8240ed26a97a6d1642546e56144870305ff4676c | tests/run-pass/concurrency/tls_lib_drop.rs | tests/run-pass/concurrency/tls_lib_drop.rs | Rust |
<|file_sep|>original/flex.go
* Teehee.
*/
package lxd
import (
"bufio"
"os"
"path/filepath"
)
var Version = "0.0.1"
/*
* Please increment the api compat number every time you change the API.
*
* Version 1.0: ping
*/
var APICompat = 1
var APIVersion = "1.0"
// VarPath returns the provided path elements join... | * Teehee.
*/
package lxd
import (
"bufio"
"os"
"path/filepath"
)
var Version = "0.0"
/*
* Please increment the api compat number every time you change the API.
*
* Version 1.0: ping
*/
var APICompat = 1
var APIVersion = "1.0"
// VarPath returns the provided path elements joined by a slash and | <|file_sep|>original/flex.go
* Teehee.
*/
package lxd
import (
"bufio"
"os"
"path/filepath"
)
var Version = "0.0.1"
/*
* Please increment the api compat number every time you change the API.
*
* Version 1.0: ping
*/
var APICompat = 1
var APIVersion = "1.0"
// VarPath returns the provided path elements join... | 7877a39a708de1a0b40e8f98b5bcffd625c259ff | flex.go | flex.go | Go |
<|file_sep|>test/torrent_reader_writer_test.rb.diff
original:
torrent_file_io = TorrentFileIO.new(metainfo)
updated:
file_name = "test_file_read_write"
torrent_file_io = TorrentFileIO.new(metainfo, file_name)
<|file_sep|>original/test/torrent_reader_writer_test.rb
require_relative '../lib/kademlia/messages'... | it "can write to a file and read back what it wrote" do
payload = PieceMessage.get_payload(0, 0, "HelloWorld")
piece_msg_in = PieceMessage.new(payload)
metainfo = Metainfo.default
file_name = "test_file_read_write"
torrent_file_io = TorrentFileIO.new(metainfo, file_name)
length = torrent_fil... | <|file_sep|>test/torrent_reader_writer_test.rb.diff
original:
torrent_file_io = TorrentFileIO.new(metainfo)
updated:
file_name = "test_file_read_write"
torrent_file_io = TorrentFileIO.new(metainfo, file_name)
<|file_sep|>original/test/torrent_reader_writer_test.rb
require_relative '../lib/kademlia/messages'... | 76478d839baeb300b5938d07c5a7a1e8d5eee7b4 | test/torrent_reader_writer_test.rb | test/torrent_reader_writer_test.rb | Ruby |
<|file_sep|>metadata/com.bijoysingh.quicknote.txt.diff
original:
updated:
Build:3.7.1,27
commit=v3.7.1
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.bijoysingh.quicknote.txt
Repo:https://github.com/BijoySingh/Material-Notes-Android-App
Build:3.2.0,18
commit=v3.2.0
subdir=app
gradle=... | gradle=yes
Build:3.5.0,22
commit=v3.5.0
subdir=app
gradle=yes
Build:3.6.0,23
commit=v3.6.0
subdir=app
gradle=yes
Build:3.7.1,27
commit=v3.7.1
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:3.7.1
Current Version Code:27 | <|file_sep|>metadata/com.bijoysingh.quicknote.txt.diff
original:
updated:
Build:3.7.1,27
commit=v3.7.1
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.bijoysingh.quicknote.txt
Repo:https://github.com/BijoySingh/Material-Notes-Android-App
Build:3.2.0,18
commit=v3.2.0
subdir=app
gradle=... | 36aae6bdff7d4a0de1ddd9cd689023e549be2178 | metadata/com.bijoysingh.quicknote.txt | metadata/com.bijoysingh.quicknote.txt | Text |
<|file_sep|>original/index.hbs
<nav class="art-list">
<ul class="art-list-body">
{{#foreach posts }}
<li class="art-list-item">
<div class="art-list-item-title-and-time">
<h2 class="art-list-title"><a href="{{ @blog.url }}{{ url }}">{{ title ... | <ul class="art-list-body">
{{#foreach posts }}
<li class="art-list-item">
<div class="art-list-item-title-and-time">
<h2 class="art-list-title"><a href="{{ @blog.url }}{{ url }}">{{ title }}</a></h2>
<div class="art-list-time">{{d... | <|file_sep|>original/index.hbs
<nav class="art-list">
<ul class="art-list-body">
{{#foreach posts }}
<li class="art-list-item">
<div class="art-list-item-title-and-time">
<h2 class="art-list-title"><a href="{{ @blog.url }}{{ url }}">{{ title ... | 4dcf77c205df056f0e827ee728878b37a994f069 | index.hbs | index.hbs | Handlebars |
<|file_sep|>original/.travis.yml
language: ruby
script: bundle exec rake spec
rvm:
- 2.0.0
- 2.1
- 2.2.4
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.0.beta1
sudo: false
... | language: ruby
script: bundle exec rake spec
rvm:
- 2.0.0
- 2.1
- 2.2.4
- 2.3.0
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.0.beta1
sudo: false
matrix:
exclude: | <|file_sep|>original/.travis.yml
language: ruby
script: bundle exec rake spec
rvm:
- 2.0.0
- 2.1
- 2.2.4
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.0.beta1
sudo: false
... | 7097281211dd545b3b289c88721490ab90e71dbd | .travis.yml | .travis.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
- 3.7-dev
updated:
<|file_sep|>original/.travis.yml
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7-dev
- pypy
- pypy3
- nightly
matrix:
fast_finish: true
allow_failures:
- python: 3.7-dev
- env: TOXENV=pre-commit-pep257
- env: TOXENV=pre-commit-flake8
include:
- python: 3.6
env:... | - 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
- nightly
matrix:
fast_finish: true
allow_failures:
- env: TOXENV=pre-commit-pep257
- env: TOXENV=pre-commit-flake8
include:
- python: 3.6
env: TOXENV=pre-commit
- python: 3.6
env: TOXENV=pre-commit-pep257
- python: 3.6
env: TOXENV=pre-commit-flake8
cac... | <|file_sep|>.travis.yml.diff
original:
- 3.7-dev
updated:
<|file_sep|>original/.travis.yml
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7-dev
- pypy
- pypy3
- nightly
matrix:
fast_finish: true
allow_failures:
- python: 3.7-dev
- env: TOXENV=pre-commit-pep257
- env: TOXENV=pre-commit-flake8
include:
- python: 3.6
env:... | 31e4a9da4ee4ddbcef22746e699b0e93dafe1ef9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/controllers/denuncias_controller.rb
class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'H... | class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
DenunciaMailer.resultado(@denuncia.id).deliver_later
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'Hub... | <|file_sep|>original/app/controllers/denuncias_controller.rb
class DenunciasController < ApplicationController
def create
@denuncia = Denuncia.new(denuncia_params)
@denuncia.ip = request.remote_ip
if @denuncia.save
redirect_to denuncia_path(@denuncia)
else
redirect_to root_path, error: 'H... | b6a43578a383c4ab78068f5dc18a4b9f1d193939 | app/controllers/denuncias_controller.rb | app/controllers/denuncias_controller.rb | Ruby |
<|file_sep|>metadata/com.serwylo.beatgame.yml.diff
original:
updated:
- versionName: 0.4.0
versionCode: 4
commit: v0.4.0
subdir: android
gradle:
- yes
<|file_sep|>original/metadata/com.serwylo.beatgame.yml
gradle:
- yes
- versionName: 0.2.0
versionCode: 2
commit: v0.2.0
... | gradle:
- yes
- versionName: 0.3.0
versionCode: 3
commit: v0.3.0
subdir: android
gradle:
- yes
- versionName: 0.4.0
versionCode: 4
commit: v0.4.0
subdir: android
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.4.0
CurrentVers... | <|file_sep|>metadata/com.serwylo.beatgame.yml.diff
original:
updated:
- versionName: 0.4.0
versionCode: 4
commit: v0.4.0
subdir: android
gradle:
- yes
<|file_sep|>original/metadata/com.serwylo.beatgame.yml
gradle:
- yes
- versionName: 0.2.0
versionCode: 2
commit: v0.2.0
... | e6fea364b4a011a9ab832271b15c2b0f69b1b3e6 | metadata/com.serwylo.beatgame.yml | metadata/com.serwylo.beatgame.yml | YAML |
<|file_sep|>package.json.diff
original:
"test": "ava"
updated:
"test": "ava",
"test:watch": "ava --watch"
<|file_sep|>original/package.json
"firebase-admin": "^4.0.4",
"mz": "^2.6.0",
"request": "^2.79.0",
"request-promise": "^4.1.1"
},
"devDependencies": {
"ava": "^0.17.0",
"bab... | "devDependencies": {
"ava": "^0.17.0",
"babel-eslint": "6",
"eslint": "^3.13.1"
},
"scripts": {
"start": "node index.js",
"lint": "eslint index.js \"**/*.js\"",
"test": "ava",
"test:watch": "ava --watch"
},
"ava": {
"files": [
"tests/*.js"
],
"source": [
"lib/*.js",
... | <|file_sep|>package.json.diff
original:
"test": "ava"
updated:
"test": "ava",
"test:watch": "ava --watch"
<|file_sep|>original/package.json
"firebase-admin": "^4.0.4",
"mz": "^2.6.0",
"request": "^2.79.0",
"request-promise": "^4.1.1"
},
"devDependencies": {
"ava": "^0.17.0",
"bab... | aec965f5711c386d87339db536b18b6563258442 | package.json | package.json | JSON |
<|file_sep|>viewer/front/components/SignIn.js.diff
original:
export default () => {
const handleSignIn = async () => {
updated:
export default class SignIn extends React.Component {
async handleSignIn() {
<|file_sep|>original/viewer/front/components/SignIn.js
import React from 'react';
import firebase from 'firebas... | import React from 'react';
import firebase from 'firebase';
export default class SignIn extends React.Component {
async handleSignIn() {
const provider = new firebase.auth.GoogleAuthProvider();
try {
await firebase.auth().signInWithPopup(provider);
} catch (error) {
console.error(error);
... | <|file_sep|>viewer/front/components/SignIn.js.diff
original:
export default () => {
const handleSignIn = async () => {
updated:
export default class SignIn extends React.Component {
async handleSignIn() {
<|file_sep|>original/viewer/front/components/SignIn.js
import React from 'react';
import firebase from 'firebas... | 2bd02a37c1813b6521b086760658fcbd087bc682 | viewer/front/components/SignIn.js | viewer/front/components/SignIn.js | JavaScript |
<|file_sep|>original/lib/stack_master/prompter.rb
module StackMaster
module Prompter
def ask?(question)
answer = if StackMaster.interactive?
StackMaster.stdout.print question
if StackMaster.stdin.tty? && StackMaster.stdout.tty?
StackMaster.stdin.getch.chomp
else
S... | module StackMaster
module Prompter
def ask?(question)
answer = if StackMaster.interactive?
StackMaster.stdout.print question
if StackMaster.stdin.tty? && StackMaster.stdout.tty?
StackMaster.stdin.getch.chomp
else
StackMaster.stdout.puts
StackMaster.stdou... | <|file_sep|>original/lib/stack_master/prompter.rb
module StackMaster
module Prompter
def ask?(question)
answer = if StackMaster.interactive?
StackMaster.stdout.print question
if StackMaster.stdin.tty? && StackMaster.stdout.tty?
StackMaster.stdin.getch.chomp
else
S... | 4868c68430199fd9d29d512be04ee185f4951fa9 | lib/stack_master/prompter.rb | lib/stack_master/prompter.rb | Ruby |
<|file_sep|>original/awx/ui/client/src/access/addPermissions/roleSelect.directive.js
*************************************************/
/* jshint unused: vars */
export default
[
'CreateSelect2',
function(CreateSelect2) {
return {
restrict: 'E',
scope: f... | *************************************************/
/* jshint unused: vars */
export default
[
'CreateSelect2',
function(CreateSelect2) {
return {
restrict: 'E',
scope: false,
template: '<select ng-cloak class="AddPermissions-selectHide ro... | <|file_sep|>original/awx/ui/client/src/access/addPermissions/roleSelect.directive.js
*************************************************/
/* jshint unused: vars */
export default
[
'CreateSelect2',
function(CreateSelect2) {
return {
restrict: 'E',
scope: f... | d43cb9fc9f70c311564697ac160d874486a4f643 | awx/ui/client/src/access/addPermissions/roleSelect.directive.js | awx/ui/client/src/access/addPermissions/roleSelect.directive.js | JavaScript |
<|file_sep|>original/src/EventListener/AccessToken/SHA256.php
<|file_sep|>current/src/EventListener/AccessToken/SHA256.php
<|file_sep|>updated/src/EventListener/AccessToken/SHA256.php | <?php
/**
* This file is part of the Imbo package
*
* (c) Christer Edvartsen <cogo@starzinger.net>
*
* For the full copyright and license information, please view the LICENSE file that was
* distributed with this source code.
*/
namespace Imbo\EventListener\AccessToken;
/**
* Implementation of the default SHA... | <|file_sep|>original/src/EventListener/AccessToken/SHA256.php
<|file_sep|>current/src/EventListener/AccessToken/SHA256.php
<|file_sep|>updated/src/EventListener/AccessToken/SHA256.php
<?php
/**
* This file is part of the Imbo package
*
* (c) Christer Edvartsen <cogo@starzinger.net>
*
* For the full copyright and... | 387f456a474d8873dd5e5eeed27b52c3fd93efec | src/EventListener/AccessToken/SHA256.php | src/EventListener/AccessToken/SHA256.php | PHP |
<|file_sep|>setup.py.diff
original:
requirements = []
with open('requirements.txt', 'r') as f:
for line in f:
requirements.append(str(line.strip()))
updated:
<|file_sep|>original/setup.py
from distutils.core import setup
requirements = []
with open('requirements.txt', 'r') as f:
for line in f:
... | from distutils.core import setup
setup(
name='pp_api',
version='0.1dev',
packages=['pp_api', 'pp_api.server_data'],
license='MIT',
requires=open('requirements.txt', 'r').read().split()
) | <|file_sep|>setup.py.diff
original:
requirements = []
with open('requirements.txt', 'r') as f:
for line in f:
requirements.append(str(line.strip()))
updated:
<|file_sep|>original/setup.py
from distutils.core import setup
requirements = []
with open('requirements.txt', 'r') as f:
for line in f:
... | 082dd34f8c9090f8bcb48b460e8ccc0e80aa205c | setup.py | setup.py | Python |
<|file_sep|>original/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyBioghistElement.xml.php
<?php if (0 < count($creators)): ?>
<?php foreach($events as $date): ?>
<?php $creator = QubitActor::getById($date->actorId); ?>
<?php if (($value = $creator->getHistory(array('cultureFallback' => ... |
<?php if (0 < count($creators)): ?>
<?php foreach($events as $date): ?>
<?php $creator = QubitActor::getById($date->actorId); ?>
<?php if (($value = $creator->getHistory(array('cultureFallback' => true))) || $creator->datesOfExistence): ?>
<bioghist id="<?php echo 'md5-' . md5(url_for(array($creator, ... | <|file_sep|>original/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyBioghistElement.xml.php
<?php if (0 < count($creators)): ?>
<?php foreach($events as $date): ?>
<?php $creator = QubitActor::getById($date->actorId); ?>
<?php if (($value = $creator->getHistory(array('cultureFallback' => ... | a8bb6a3bd3b4522f8ae92cd83ffed354b77a64dc | plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyBioghistElement.xml.php | plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBodyBioghistElement.xml.php | PHP |
<|file_sep|>original/.travis.yml
before_install: sudo apt-get install lighttpd libfcgi-dev libmemcache-dev memcached
install:
- gem env version | grep '^\(2\|1.\(8\|9\|[0-9][0-9]\)\)' || gem update --system
- bundle
script: bundle exec rake ci
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-he... | before_install: sudo apt-get install lighttpd libfcgi-dev libmemcache-dev memcached
install:
- gem env version | grep '^\(2\|1.\(8\|9\|[0-9][0-9]\)\)' || gem update --system
- bundle install --jobs=3 --retry=3
script: bundle exec rake ci
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-head
-... | <|file_sep|>original/.travis.yml
before_install: sudo apt-get install lighttpd libfcgi-dev libmemcache-dev memcached
install:
- gem env version | grep '^\(2\|1.\(8\|9\|[0-9][0-9]\)\)' || gem update --system
- bundle
script: bundle exec rake ci
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-he... | 5ed17cc3ae78462f4e7eccd910b9fc07c51ce89a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '8'
- '6'
- '4'
install:
- npm run yarn
script:
- npm test
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '8'
- '6'
- '4'
install:
- npm run yarn
script:
- npm test
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- '8'
- '6'
install:
- npm run yarn
script:
- npm test | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '8'
- '6'
- '4'
install:
- npm run yarn
script:
- npm test
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '8'
- '6'
- '4'
install:
- npm run yarn
script:
- npm test
<|file_sep|>updated/.travis.yml
language: node_js
no... | e69a6e245b2a86302f91bfbfe2370de8e059a255 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/fish/config.fish
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fis... |
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path
end
i... | <|file_sep|>original/fish/config.fish
set --global --export PROFILE (status --current-filename)
set --global --export SCRIPT_DIR (dirname (dirname $PROFILE))
set --global --export SOURCE_DIR (dirname $SCRIPT_DIR)
if not contains $SCRIPT_DIR/fish/functions $fish_function_path
set fish_function_path $SCRIPT_DIR/fis... | 876ca6a9a22d7f135501dcbde5924755d383301b | fish/config.fish | fish/config.fish | fish |
<|file_sep|>src/stackdriver-nozzle/README.md.diff
original:
* Install dependencies (using [Glide](https://glide.sh/))
updated:
* Install dependencies (using [govendor](https://github.com/kardianos/govendor))
<|file_sep|>original/src/stackdriver-nozzle/README.md
## Stackdriver nozzle
### Getting started
* Install d... |
## Stackdriver nozzle
### Getting started
* Install dependencies (using [govendor](https://github.com/kardianos/govendor))
```
govendor fetch +missing
```
* Nozzle Configuration:
* Copy `.envrc.template` to `.envrc` & fill in values (uses [direnv](http://direnv.net/))
* Or export variables represented in... | <|file_sep|>src/stackdriver-nozzle/README.md.diff
original:
* Install dependencies (using [Glide](https://glide.sh/))
updated:
* Install dependencies (using [govendor](https://github.com/kardianos/govendor))
<|file_sep|>original/src/stackdriver-nozzle/README.md
## Stackdriver nozzle
### Getting started
* Install d... | e74dadcabdecdc7b7a7327d92462b6aa636150a0 | src/stackdriver-nozzle/README.md | src/stackdriver-nozzle/README.md | Markdown |
<|file_sep|>original/README.md
[](http://issuestats.com/github/fsprojects/FSharpx.Collections)
[](http://issuestats.com/github/fsprojects/FSharpx.Col... | [](http://issuestats.com/github/fsprojects/FSharpx.Collections)
# FSharpx.Collections [](https://www.nuget.org/packages/FSharpx.Collections/)
**FSharpx.C... | <|file_sep|>original/README.md
[](http://issuestats.com/github/fsprojects/FSharpx.Collections)
[](http://issuestats.com/github/fsprojects/FSharpx.Col... | f86bc40fbc753e0e9e27405d697eaee4d768c7e1 | README.md | README.md | Markdown |
<|file_sep|>original/lib/capistrano.rb
require 'rake'
require 'sshkit'
require 'capistrano/version'
require 'capistrano/i18n'
require 'capistrano/dsl'
require 'capistrano/application'
require 'capistrano/configuration'
module Capistrano
end
<|file_sep|>current/lib/capistrano.rb
require 'rake'
require 'sshkit'
requir... | require 'rake'
require 'sshkit'
Rake.application.options.trace = true
require 'capistrano/version'
require 'capistrano/i18n'
require 'capistrano/dsl'
require 'capistrano/application'
require 'capistrano/configuration'
module Capistrano
end | <|file_sep|>original/lib/capistrano.rb
require 'rake'
require 'sshkit'
require 'capistrano/version'
require 'capistrano/i18n'
require 'capistrano/dsl'
require 'capistrano/application'
require 'capistrano/configuration'
module Capistrano
end
<|file_sep|>current/lib/capistrano.rb
require 'rake'
require 'sshkit'
requir... | 016c9d12970bf138fb3f8ee577adb6e580bc63d9 | lib/capistrano.rb | lib/capistrano.rb | Ruby |
<|file_sep|>original/model/entry.go
package model
type File struct {
ID string
Filename string
Content []byte
}
type Entry struct {
ID string `json:"id"`
Title string `json:"title"`
Timestamp int64 `json:"timestamp"`
Markdown string // the entry contents
}
<|file_sep|>current/model/entry.go... | package model
type File struct {
ID string
Filename string
Content []byte
}
type Entry struct {
ID string `json:"id"`
Title string `json:"title"`
Timestamp int64 `json:"timestamp"`
Markdown string `json:"-"` // the entry contents
} | <|file_sep|>original/model/entry.go
package model
type File struct {
ID string
Filename string
Content []byte
}
type Entry struct {
ID string `json:"id"`
Title string `json:"title"`
Timestamp int64 `json:"timestamp"`
Markdown string // the entry contents
}
<|file_sep|>current/model/entry.go... | f51c211b9d3648d41c37334071669fb2099fa227 | model/entry.go | model/entry.go | Go |
<|file_sep|>original/hack/build/run-lint-checks.sh
ec=1
fi
for p in "${LINTABLE[@]}"; do
echo "running golint on directory: ${p}"
out="$(golint ${p}/...)"
if [[ ${out} ]]; then
echo "FAIL: following golint errors found:"
echo "${out}"
ec=1
fi
done
#echo "running golint on the pkg directory (gol... | source hack/build/common.sh
LINTABLE=(pkg cmd tests tools)
ec=0
out="$(gofmt -l -s ${SOURCE_DIRS} | grep ".*\.go")"
if [[ ${out} ]]; then
echo "FAIL: Format errors found in the following files:"
echo "${out}"
ec=1
fi
for p in "${LINTABLE[@]}"; do
echo "running golint on directory: ${p}"
out="$(golint $... | <|file_sep|>original/hack/build/run-lint-checks.sh
ec=1
fi
for p in "${LINTABLE[@]}"; do
echo "running golint on directory: ${p}"
out="$(golint ${p}/...)"
if [[ ${out} ]]; then
echo "FAIL: following golint errors found:"
echo "${out}"
ec=1
fi
done
#echo "running golint on the pkg directory (gol... | 0ec27ea57910fe171b2546c4f7ac407796152d38 | hack/build/run-lint-checks.sh | hack/build/run-lint-checks.sh | Shell |
<|file_sep|>original/app/models/email_decider.rb
else
raise "Unknown case: #{frequency}"
end
end
private
def frequency_of_send_rate
case @last_clicked_days_ago
when 0..3
:daily
when 7..14
:twice_a_week
when 14..30
:once_a_week
when 31..Float::... | else
raise "Unknown case: #{frequency}"
end
end
private
def frequency_of_send_rate
case @last_clicked_days_ago
when 0..3
:daily
when 7..13
:twice_a_week
when 14..30
:once_a_week
when 31..Float::INFINITY
:once_a_month
else
... | <|file_sep|>original/app/models/email_decider.rb
else
raise "Unknown case: #{frequency}"
end
end
private
def frequency_of_send_rate
case @last_clicked_days_ago
when 0..3
:daily
when 7..14
:twice_a_week
when 14..30
:once_a_week
when 31..Float::... | 52521c001a2000dd7d7fe2b22ae1ba1abd6ce799 | app/models/email_decider.rb | app/models/email_decider.rb | Ruby |
<|file_sep|>original/salt/vector/install.sls
update_apt_sources_list:
pkgrepo.managed:
- humanname: Vector
- name: deb https://repositories.timber.io/public/vector/deb/debian {{ salt.grains.get('oscodename', 'stable') }} main
- refresh_db: True
ensure_vector_package_state:
pkg.installed:
- name: ve... | update_apt_sources_list:
pkgrepo.managed:
- humanname: Vector
- name: deb https://repositories.timber.io/public/vector/deb/debian {{ salt.grains.get('oscodename', 'stable') }} main
- refresh_db: True
ensure_vector_package_state:
pkg.installed:
- name: vector
- refresh: True
- require:
... | <|file_sep|>original/salt/vector/install.sls
update_apt_sources_list:
pkgrepo.managed:
- humanname: Vector
- name: deb https://repositories.timber.io/public/vector/deb/debian {{ salt.grains.get('oscodename', 'stable') }} main
- refresh_db: True
ensure_vector_package_state:
pkg.installed:
- name: ve... | 6910bbfaf84209bd831b51d4855772e9129f77a6 | salt/vector/install.sls | salt/vector/install.sls | SaltStack |
<|file_sep|>original/documentation/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="d... | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excer... | <|file_sep|>original/documentation/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="d... | 446e42aaabf447609f04343ac42b124a2b02bbc8 | documentation/_includes/head.html | documentation/_includes/head.html | HTML |
<|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml | language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install ."
- "pip install pytest pytest-cov pytest-pep8 coveralls"
script: "py.test"
after_success: "coveralls"
branches:
only:
- master | <|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "pypy"
install:
- "pip install ."
- "pip install pytest pytest-cov pytest-pep8 coveralls"
script: "py.test"
after_success: "coveralls"
branches:
only:
-... | 6e461154a46347eaed761ca805761c7f7e57794d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/tags/show.html.erb
<ul>
<% @tag.questions.each do |question| %>
<%= render partial: "questions/question", locals: {question: question} %>
<% end %>
</ul>
<|file_sep|>current/app/views/tags/show.html.erb
<ul>
<% @tag.questions.each do |question| %>
<%= render partial: "questions/qu... | <h4>Posts tagged with <%=@tag.name%>:</h4>
<ul>
<% @tag.questions.each do |question| %>
<%= render partial: "questions/question", locals: {question: question} %>
<% end %>
</ul> | <|file_sep|>original/app/views/tags/show.html.erb
<ul>
<% @tag.questions.each do |question| %>
<%= render partial: "questions/question", locals: {question: question} %>
<% end %>
</ul>
<|file_sep|>current/app/views/tags/show.html.erb
<ul>
<% @tag.questions.each do |question| %>
<%= render partial: "questions/qu... | 7170ec450f94ea29960404dd34a3e4ed1c2416f1 | app/views/tags/show.html.erb | app/views/tags/show.html.erb | HTML+ERB |
<|file_sep|>original/code_of_conduct.rst
<|file_sep|>current/code_of_conduct.rst
<|file_sep|>updated/code_of_conduct.rst | # Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating documentation,
submitting pull requests or patches, and other activities.
We are committed to making participation in this project ... | <|file_sep|>original/code_of_conduct.rst
<|file_sep|>current/code_of_conduct.rst
<|file_sep|>updated/code_of_conduct.rst
# Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating documenta... | 72676eca1a7609b9c503a342aa5cbcb0092cff3c | code_of_conduct.rst | code_of_conduct.rst | reStructuredText |
<|file_sep|>tests/test_exceptions.py.diff
original:
updated:
from jinja2.exceptions import UndefinedError
<|file_sep|>original/tests/test_exceptions.py
# -*- coding: utf-8 -*-
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(... | # -*- coding: utf-8 -*-
from jinja2.exceptions import UndefinedError
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(
'Beautiful is better than ugly',
UndefinedError('Errors should never pass silently'),
... | <|file_sep|>tests/test_exceptions.py.diff
original:
updated:
from jinja2.exceptions import UndefinedError
<|file_sep|>original/tests/test_exceptions.py
# -*- coding: utf-8 -*-
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(... | fb8fb61303dd567038ca812a61e6702b8b3f4edc | tests/test_exceptions.py | tests/test_exceptions.py | Python |
<|file_sep|>app/classifier/restart-button.jsx.diff
original:
updated:
const {className, style} = this.props;
<|file_sep|>app/classifier/restart-button.jsx.diff
original:
<button type="button" {...this.props} onClick={onClick}>
updated:
<button type="button" className={className} style={style} onCli... | RestartButton.defaultProps = {
workflow: null,
project: null,
user: null,
dialog: null,
className: null,
style: null
};
RestartButton.propTypes = {
workflow: React.PropTypes.object,
project: React.PropTypes.object,
user: React.PropTypes.object,
children: React.PropTypes.node,
Dialog: React.PropTy... | <|file_sep|>app/classifier/restart-button.jsx.diff
original:
updated:
const {className, style} = this.props;
<|file_sep|>app/classifier/restart-button.jsx.diff
original:
<button type="button" {...this.props} onClick={onClick}>
updated:
<button type="button" className={className} style={style} onCli... | d54d5f5d299533b4a456a4a07ef0ae00a4a52dfc | app/classifier/restart-button.jsx | app/classifier/restart-button.jsx | JSX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.