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/bumpversion.sh
#!/bin/sh
set -e
VERSION="1.0.$(date +%Y%m%d)"
if ! grep --quiet "$VERSION" CHANGELOG.rst
then
echo "$VERSION not found in CHANGELOG.rst"
exit 1
fi
set -x
sed -i -e "s/__version__ =.*/__version__ = \"$VERSION\"/" fh_fablib/__init__.py
sed -i -e 's/fl.require(".*")/fl.requi... | #!/bin/sh
set -e
VERSION="1.0.$(date +%Y%m%d)"
VERSION="${1:-$VERSION}"
if ! grep --quiet "$VERSION" CHANGELOG.rst
then
echo "$VERSION not found in CHANGELOG.rst"
exit 1
fi
set -x
sed -i -e "s/__version__ =.*/__version__ = \"$VERSION\"/" fh_fablib/__init__.py
sed -i -e 's/fl.require(".*")/fl.require("'$VERS... | <|file_sep|>original/bumpversion.sh
#!/bin/sh
set -e
VERSION="1.0.$(date +%Y%m%d)"
if ! grep --quiet "$VERSION" CHANGELOG.rst
then
echo "$VERSION not found in CHANGELOG.rst"
exit 1
fi
set -x
sed -i -e "s/__version__ =.*/__version__ = \"$VERSION\"/" fh_fablib/__init__.py
sed -i -e 's/fl.require(".*")/fl.requi... | 1602bfb66bae331f0e9c791b70e6874ab54c4b69 | bumpversion.sh | bumpversion.sh | Shell |
<|file_sep|>original/.github/workflows/main.yml
name: CI
on: [push, pull_request]
jobs:
job:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-20.04, platform: x64, cxx... | name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-20.04, platform: x64, cxx: g++-7, cc: gcc-7 }
- { os: macos-1... | <|file_sep|>original/.github/workflows/main.yml
name: CI
on: [push, pull_request]
jobs:
job:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-20.04, platform: x64, cxx... | 3e8bf0c29611c55f985a6ffa99c80649226feb4d | .github/workflows/main.yml | .github/workflows/main.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- 1.11
- 1.10.x
<|file_sep|>.travis.yml.diff
original:
- go get -u -t ./...
- go get -u gopkg.in/alecthomas/gometalinter.v1
updated:
- GO111MODULE=on go get -u -t ./...
- GO111MODULE=on go get -u gopkg.in/alecthomas/gometalinter.v1
<|file_sep|>original/.travi... | language: go
sudo: false
go:
- 1.11
- 1.10.x
- 1.9
- 1.8
before_install:
- GO111MODULE=on go get -u -t ./...
- GO111MODULE=on go get -u gopkg.in/alecthomas/gometalinter.v1
- gometalinter.v1 --install
script:
- gometalinter.v1 --config metalinter.json ./...
- GO111MODULE=on ./test.sh
after_success:
... | <|file_sep|>.travis.yml.diff
original:
updated:
- 1.11
- 1.10.x
<|file_sep|>.travis.yml.diff
original:
- go get -u -t ./...
- go get -u gopkg.in/alecthomas/gometalinter.v1
updated:
- GO111MODULE=on go get -u -t ./...
- GO111MODULE=on go get -u gopkg.in/alecthomas/gometalinter.v1
<|file_sep|>original/.travi... | f8e8106b9d8842bb4f7f42ebba46e273312d67d3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/data_bags/nagios_services/wt_static_tag_host_http_check.json
{
"command_line": "$USER1$/check_nrpe -H $HOSTADDRESS$ -t 45 -c wt_check_http -a '-H localhost'",
"hostgroup_name": "wt_static_tag_host",
"id": "s_tag_http_check"
}
<|file_sep|>current/data_bags/nagios_services/wt_static_tag... | {
"command_line": "$USER1$/check_nrpe -H $HOSTADDRESS$ -t 45 -c wt_check_http -a '-H localhost'",
"hostgroup_name": "wt_static_tag_host",
"id": "wt_static_tag_host_http_check"
} | <|file_sep|>original/data_bags/nagios_services/wt_static_tag_host_http_check.json
{
"command_line": "$USER1$/check_nrpe -H $HOSTADDRESS$ -t 45 -c wt_check_http -a '-H localhost'",
"hostgroup_name": "wt_static_tag_host",
"id": "s_tag_http_check"
}
<|file_sep|>current/data_bags/nagios_services/wt_static_tag... | 28d9199f5c11db6af26d35ed7ffe7a01440b32a9 | data_bags/nagios_services/wt_static_tag_host_http_check.json | data_bags/nagios_services/wt_static_tag_host_http_check.json | JSON |
<|file_sep|>testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/appclient/basic/wildfly-config.xml.diff
original:
<rules>
<rule>
updated:
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-con... | ~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<configuration>
<authentication-client xmlns="urn:elytr... | <|file_sep|>testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/appclient/basic/wildfly-config.xml.diff
original:
<rules>
<rule>
updated:
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-con... | 1239e47833b2bccc351287a9090ea021dc1730b9 | testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/appclient/basic/wildfly-config.xml | testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/appclient/basic/wildfly-config.xml | XML |
<|file_sep|>original/src/assets/css.js
const { readFileSync } = require('fs');
const { join, isAbsolute } = require('path');
const LAYOUTS_DIR = join(__dirname, '..', 'layouts');
const THEMES_DIR = join(__dirname, '..', 'themes');
module.exports = function (options) {
const { layout, theme, css } = options;
const... | const { readFileSync } = require('fs');
const { join, isAbsolute } = require('path');
const LAYOUTS_DIR = join(__dirname, '..', 'layouts');
const THEMES_DIR = join(__dirname, '..', 'themes');
module.exports = function (options) {
const { layout, theme, css } = options;
const pathPrefix = css && isAbsolute(css) ? ... | <|file_sep|>original/src/assets/css.js
const { readFileSync } = require('fs');
const { join, isAbsolute } = require('path');
const LAYOUTS_DIR = join(__dirname, '..', 'layouts');
const THEMES_DIR = join(__dirname, '..', 'themes');
module.exports = function (options) {
const { layout, theme, css } = options;
const... | 97f663501655e2c807481120ebda4d0704796db4 | src/assets/css.js | src/assets/css.js | JavaScript |
<|file_sep|>original/hackerrank/linked-list/position-from-tail.py
<|file_sep|>current/hackerrank/linked-list/position-from-tail.py
<|file_sep|>updated/hackerrank/linked-list/position-from-tail.py | # https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/forum
def GetNode(head, position):
curr = head
tail = head
for i in range(position):
tail = tail.next
while tail.next is not None:
curr = curr.next
tail = tail.next
return ... | <|file_sep|>original/hackerrank/linked-list/position-from-tail.py
<|file_sep|>current/hackerrank/linked-list/position-from-tail.py
<|file_sep|>updated/hackerrank/linked-list/position-from-tail.py
# https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/forum
def GetNode(... | 91b99d08892e8fc758c21a2ddec13ba6f83f4f8b | hackerrank/linked-list/position-from-tail.py | hackerrank/linked-list/position-from-tail.py | Python |
<|file_sep|>original/maps/api/urls.py
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^question_set/', views.http_list_question_sets),
url(r'^answer_set/', views.http_create_answer_set),
url(r'^answer/', views.create_answer),
url(r'^question/', views.get_question),
url(r'... | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^question_set_list/', views.http_list_question_sets),
url(r'^answer_set/', views.http_create_answer_set),
url(r'^answer/', views.create_answer),
url(r'^question/', views.get_question),
url(r'^contour_tile/(?P<question_id>\d+... | <|file_sep|>original/maps/api/urls.py
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^question_set/', views.http_list_question_sets),
url(r'^answer_set/', views.http_create_answer_set),
url(r'^answer/', views.create_answer),
url(r'^question/', views.get_question),
url(r'... | 832d59557dcf2b73797159b4acb96e727492d8fb | maps/api/urls.py | maps/api/urls.py | Python |
<|file_sep|>original/test-requirements.txt
coverage
mock<=1.0.1
nose
six
unittest2 ; python_version < '2.7'
winkerberos>=0.7.0 ; platform_system=="Windows"
kerberos>=1.3.0; platform_system != "Windows"
<|file_sep|>current/test-requirements.txt
coverage
mock<=1.0.1
nose
six
unittest2 ; python_version < '2.7'
winkerberos... | coverage
mock
nose
six
unittest2 ; python_version < '2.7'
winkerberos>=0.7.0 ; platform_system=="Windows"
kerberos>=1.3.0; platform_system != "Windows" | <|file_sep|>original/test-requirements.txt
coverage
mock<=1.0.1
nose
six
unittest2 ; python_version < '2.7'
winkerberos>=0.7.0 ; platform_system=="Windows"
kerberos>=1.3.0; platform_system != "Windows"
<|file_sep|>current/test-requirements.txt
coverage
mock<=1.0.1
nose
six
unittest2 ; python_version < '2.7'
winkerberos... | 3507f97036c745002f75427479a7cbf0565e1c5d | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>original/interpreter/apply.h
/*
* tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de>
*/
#ifndef TRE_APPLY_H
#define TRE_APPLY_H
extern treptr function_arguments (treptr);
extern treptr trefuncall (treptr func, treptr args);
extern treptr trebuiltin_call_compiled (void * fun, tr... | /*
* tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de>
*/
#ifndef TRE_APPLY_H
#define TRE_APPLY_H
extern treptr function_arguments (treptr);
extern treptr trefuncall (treptr func, treptr args);
extern treptr trebuiltin_call_compiled (void * fun, treptr args);
extern bool trebuiltin_is_... | <|file_sep|>original/interpreter/apply.h
/*
* tré – Copyright (c) 2005–2007,2009,2012 Sven Michael Klose <pixel@copei.de>
*/
#ifndef TRE_APPLY_H
#define TRE_APPLY_H
extern treptr function_arguments (treptr);
extern treptr trefuncall (treptr func, treptr args);
extern treptr trebuiltin_call_compiled (void * fun, tr... | 07d9b6ad059cc77b1e892cc6d992f9556a451362 | interpreter/apply.h | interpreter/apply.h | C |
<|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- "7.1"
- "7.0"
- "5.6"
- "5.5"
- "5.4"
- "hhvm"
install:
- composer install
script:
- composer test
notifications:
irc:
channels:
- "chat.freenode.net#wikimedia-dev"
template:
- "%{repository}#%{build_number} (%{branc... | sudo: false
dist: trusty
language: php
php:
- "7.1"
- "7.0"
- "5.6"
- "5.5"
- "5.4"
- "hhvm"
install:
- composer install
script:
- composer test
notifications:
irc:
channels:
- "chat.freenode.net#wikimedia-dev"
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} %{aut... | <|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- "7.1"
- "7.0"
- "5.6"
- "5.5"
- "5.4"
- "hhvm"
install:
- composer install
script:
- composer test
notifications:
irc:
channels:
- "chat.freenode.net#wikimedia-dev"
template:
- "%{repository}#%{build_number} (%{branc... | 31890bd7c50fad490eb35be8cf28f2c4715af49e | .travis.yml | .travis.yml | YAML |
<|file_sep|>spec/helpers/specialist_documents_helper_spec.rb.diff
original:
@time = Time.now.getutc.to_s
updated:
@time = Time.new(2013, 03, 11, 2, 2, 2, "+00:00").to_s
<|file_sep|>original/spec/helpers/specialist_documents_helper_spec.rb
before :all do
@time = Time.now.getutc.to_s
end
it... | before :all do
@time = Time.new(2013, 03, 11, 2, 2, 2, "+00:00").to_s
end
it 'should return a string with <time> tags' do
html = helper.nice_date_format(@time)
assert(html) =~ /<time.*?>.*?<\/time>/
end
it 'should return <time> tag that includes a datetime attribute which is the ... | <|file_sep|>spec/helpers/specialist_documents_helper_spec.rb.diff
original:
@time = Time.now.getutc.to_s
updated:
@time = Time.new(2013, 03, 11, 2, 2, 2, "+00:00").to_s
<|file_sep|>original/spec/helpers/specialist_documents_helper_spec.rb
before :all do
@time = Time.now.getutc.to_s
end
it... | d6259070c7907e062c5062bd37249d05248a87e3 | spec/helpers/specialist_documents_helper_spec.rb | spec/helpers/specialist_documents_helper_spec.rb | Ruby |
<|file_sep|>original/requirements.txt
numpy==1.13.1
scipy==0.19.1
scikit-image==0.13.0
dlib==19.4.0
flask==0.12.2
Flask-Cors==3.0.3
imutils==0.4.3
pillow==8.1.1
pytesseract==0.1.7
fuzzywuzzy==0.15.1
python-levenshtein==0.12.0
colorlog==3.0.1
Sphinx==1.6.3
sphinx-rtd-theme==0.2.4
<|file_sep|>current/requirements.txt
num... | numpy==1.13.1
scipy==0.19.1
scikit-image==0.13.0
dlib==19.4.0
flask==1.0
Flask-Cors==3.0.3
imutils==0.4.3
pillow==8.1.1
pytesseract==0.1.7
fuzzywuzzy==0.15.1
python-levenshtein==0.12.0
colorlog==3.0.1
Sphinx==1.6.3
sphinx-rtd-theme==0.2.4 | <|file_sep|>original/requirements.txt
numpy==1.13.1
scipy==0.19.1
scikit-image==0.13.0
dlib==19.4.0
flask==0.12.2
Flask-Cors==3.0.3
imutils==0.4.3
pillow==8.1.1
pytesseract==0.1.7
fuzzywuzzy==0.15.1
python-levenshtein==0.12.0
colorlog==3.0.1
Sphinx==1.6.3
sphinx-rtd-theme==0.2.4
<|file_sep|>current/requirements.txt
num... | eb1052e5aebbb5f5aac2f7e2426507e18a83b3ae | requirements.txt | requirements.txt | Text |
<|file_sep|>original/package.json
{
"name": "lte-earfcn-calculator",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qvil/lte-earfcn-calculator.git"
... | {
"name": "lte-earfcn-calculator",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qvil/lte-earfcn-calculator.git"
},
"author": "Taesu Hyeon <qvil1... | <|file_sep|>original/package.json
{
"name": "lte-earfcn-calculator",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qvil/lte-earfcn-calculator.git"
... | addd38724b7225fe8010ea0b40e3cc2b82f71ebd | package.json | package.json | JSON |
<|file_sep|>.travis.yml.diff
original:
# - "2.5"
# - "2.6"
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
# Build inside docker containers instead of virtual machines. These are
# faster, start quicker and support caching. Only downside: sudo is not
# supported.
sudo: false
# Dependencies can be inst... | addons:
apt:
packages:
- python-gobject
- python3-gi
- libkeyutils-dev
# Inherit system site packages for use in virtualenv:
virtualenv:
system_site_packages: true
# Setup (performed within virtualenv)
install:
# Check that package can be installed from source distribution:
- pip install keyut... | <|file_sep|>.travis.yml.diff
original:
# - "2.5"
# - "2.6"
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
# Build inside docker containers instead of virtual machines. These are
# faster, start quicker and support caching. Only downside: sudo is not
# supported.
sudo: false
# Dependencies can be inst... | 1359ed7533f2f788d5339c5fd995054742982ce2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/adapters/generic.js
module.exports = function(language){
return {
attach: function (/* options */){
var languageConfig = engineConfig[language] || {};
/**
* If there is a specified engine for this language then use it,
* otherwise just use the provided name:
... | module.exports = function(language){
return {
attach: function (/* options */){
var languageConfig = engineConfig[language] || {};
/**
* If there is a specified engine for this language then use it,
* otherwise just use the provided name:
*/
var engine = require(languageCo... | <|file_sep|>original/adapters/generic.js
module.exports = function(language){
return {
attach: function (/* options */){
var languageConfig = engineConfig[language] || {};
/**
* If there is a specified engine for this language then use it,
* otherwise just use the provided name:
... | 82f07f32b79db3321419854ebfebcf4977f9e0f0 | adapters/generic.js | adapters/generic.js | JavaScript |
<|file_sep|>original/README.md
## Installation
Add this line to your application's Gemfile:
gem 'migration_opener'
And then execute:
$ bundle
## Usage
By default migration_opener opens migration with `$EDITOR` variable, but you can change it using special `$MIGRATION_EDITOR` variable:
`export MIGRATION_E... | ## Installation
Add this line to your application's Gemfile:
gem 'migration_opener'
And then execute:
$ bundle
To prevent enabling gem behavior for all project's developers, add to Gemfile:
gem 'migration_opener', require: ENV.key?('AUTOOPEN_MIGRATIONS')
This will autoopen migrations only for those, ... | <|file_sep|>original/README.md
## Installation
Add this line to your application's Gemfile:
gem 'migration_opener'
And then execute:
$ bundle
## Usage
By default migration_opener opens migration with `$EDITOR` variable, but you can change it using special `$MIGRATION_EDITOR` variable:
`export MIGRATION_E... | 69e9f9304f51e7a28178151d39fd0ead3f78107c | README.md | README.md | Markdown |
<|file_sep|>composer.json.diff
original:
"php": ">=5.4.0",
updated:
"php": ">=5.5.0",
<|file_sep|>original/composer.json
"description": "Laravel-forecast provides a service provider and a facade around the Forecast-php wrapper",
"keywords": ["forecast", "weather", "laravel"],
"license": "MIT... | "description": "Laravel-forecast provides a service provider and a facade around the Forecast-php wrapper",
"keywords": ["forecast", "weather", "laravel"],
"license": "MIT",
"authors": [
{
"name": "Nicolas Widart",
"email": "n.widart@gmail.com"
}
],
"requi... | <|file_sep|>composer.json.diff
original:
"php": ">=5.4.0",
updated:
"php": ">=5.5.0",
<|file_sep|>original/composer.json
"description": "Laravel-forecast provides a service provider and a facade around the Forecast-php wrapper",
"keywords": ["forecast", "weather", "laravel"],
"license": "MIT... | 77e465dad76f5a655a0d92cf4489974f5642b0c4 | composer.json | composer.json | JSON |
<|file_sep|>original/py/fbx_write.py
for sysarg in sys.argv:
print(sysarg)
py_args = sys.argv[sys.argv.index('--') + 1]
py_args = py_args.split(' ')
for arg in py_args:
if (arg.startswith('basedir:')):
basedir = arg.split('basedir:')[1]
else:
# can supply filename(s) with or without extens... | print(sysarg)
py_args = sys.argv[sys.argv.index('--') + 1]
py_args = py_args.split(' ')
for arg in py_args:
if (arg.startswith('basedir:')):
basedir = arg.split('basedir:')[1]
else:
# can supply filename(s) with or without extension
pdb_code = os.path.splitext(arg)[0]
abs_f... | <|file_sep|>original/py/fbx_write.py
for sysarg in sys.argv:
print(sysarg)
py_args = sys.argv[sys.argv.index('--') + 1]
py_args = py_args.split(' ')
for arg in py_args:
if (arg.startswith('basedir:')):
basedir = arg.split('basedir:')[1]
else:
# can supply filename(s) with or without extens... | efc1988d704a7a1231046dea8af65dcdba7897fd | py/fbx_write.py | py/fbx_write.py | Python |
<|file_sep|>bootstrap/map.jinja.diff
original:
'meta_package': 'linux-generic-lts-trusty',
'version': '3.13.0.43.37'
updated:
'meta_package': 'linux-image-generic-lts-trusty',
'version': '3.13.0.55.48'
<|file_sep|>original/bootstrap/map.jinja
'kernel': {
'meta_package... | 'kernel': {
'meta_package': 'linux-image-generic-lts-trusty',
'version': '3.13.0.55.48'
}
},
'Ubuntu-14.04': {
'upgrade_grub': True,
'grub_install_device': '/dev/sda',
'kernel': {
'meta_package': 'linux-image-generic',
'version': '3.13.0.55... | <|file_sep|>bootstrap/map.jinja.diff
original:
'meta_package': 'linux-generic-lts-trusty',
'version': '3.13.0.43.37'
updated:
'meta_package': 'linux-image-generic-lts-trusty',
'version': '3.13.0.55.48'
<|file_sep|>original/bootstrap/map.jinja
'kernel': {
'meta_package... | 4bf530ee6647c859943b0ed6a5507b0e92951e7e | bootstrap/map.jinja | bootstrap/map.jinja | HTML+Django |
<|file_sep|>original/runtests.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import sys
import numba
sys.exit(0 if numba.test(sys.argv[1:]) == 0 else 1)
<|file_sep|>current/runtests.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ impo... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import sys
import numba
# TODO: Use argparse
if '--loop' in sys.argv:
whitelist = [arg for arg in sys.argv[1:] if arg != '--loop']
while True:
exit_status = numba.test(whitelist)
if e... | <|file_sep|>original/runtests.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import sys
import numba
sys.exit(0 if numba.test(sys.argv[1:]) == 0 else 1)
<|file_sep|>current/runtests.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ impo... | ac40e8a936f35757a43769f00fdef84a40919829 | runtests.py | runtests.py | Python |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "iojs"
- "0.12"
- "0.11"
- "0.10" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "iojs"
- "0.12"
- "0.11"
- "0.10" | a773b480ac305d981f2094733363cf259f7bd6bb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- "pip install -r deps/core.txt"
- "pip install -r deps/test.txt"
script:
- "flake8 pylease"
- "flake8 tests"
- "nosetests"
after_success:
- "coveralls"
branches:
only:
- master
- dev
<|file_sep|>current/.travis.yml
lang... | language: python
python:
- "2.7"
install:
- "pip install -r deps/core.txt"
- "pip install -r deps/test.txt"
script:
- "nosetests"
after_success:
- "coveralls"
branches:
only:
- master
- dev | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- "pip install -r deps/core.txt"
- "pip install -r deps/test.txt"
script:
- "flake8 pylease"
- "flake8 tests"
- "nosetests"
after_success:
- "coveralls"
branches:
only:
- master
- dev
<|file_sep|>current/.travis.yml
lang... | e7a5a41bf89585df72447396485957ec18ca2022 | .travis.yml | .travis.yml | YAML |
<|file_sep|>spec/bastet/base_spec.rb.diff
original:
updated:
describe "complex criteria" do
before do
@group = Bastet::Group.new("20_percent") { |entity| (entity.id % 10) < (20 / 10) }
@bastet.activate(:secret_feature, @group)
end
it "should be true for the user" do
user... |
describe "deactivate" do
it "should deactive :banana for the group" do
group = Bastet::Group.new("admins") { |entity| entity.admin? }
user = mock('user', admin?: true)
@bastet.activate(:banana, group)
@bastet.active?(:banana, user).should be_true
@bastet.deactivate(:banana, group)... | <|file_sep|>spec/bastet/base_spec.rb.diff
original:
updated:
describe "complex criteria" do
before do
@group = Bastet::Group.new("20_percent") { |entity| (entity.id % 10) < (20 / 10) }
@bastet.activate(:secret_feature, @group)
end
it "should be true for the user" do
user... | 0e2c50f66e7e042fdd5530467153b29f6e924f51 | spec/bastet/base_spec.rb | spec/bastet/base_spec.rb | Ruby |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
after_success:
- ./gradlew jacocoTestReport
<|file_sep|>current/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
after_success:
- ./gradlew jacocoTestReport
<|file_sep|>upd... | language: java
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
after_success:
- ./gradlew jacocoTestReport
after_failure:
- cat build/test-results/*.xml | <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
after_success:
- ./gradlew jacocoTestReport
<|file_sep|>current/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- chmod +x gradlew
after_success:
- ./gradlew jacocoTestReport
<|file_sep|>upd... | 559f4041f76f4e76d3efa5f2366df24b4a3d17f0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/projects/_form.html.erb
<h2 class="sr-only">Project Form</h2>
<%= form_for @project, multipart: true do |f| %>
<%= render "shared/errors", object: @project %>
<%= f.label :name, "Name:" %>
<%= f.text_field :name, class: "form-control" %>
<%= f.label :technology,... | <h2 class="sr-only">Project Form</h2>
<%= form_for @project, html: { role: "form" } do |f| %>
<%= render "shared/errors", object: @project %>
<%= f.label :name, "Name:" %>
<%= f.text_field :name, class: "form-control" %>
<%= f.label :technology, "Technology:" %>
<%= f.text_field :technolo... | <|file_sep|>original/app/views/projects/_form.html.erb
<h2 class="sr-only">Project Form</h2>
<%= form_for @project, multipart: true do |f| %>
<%= render "shared/errors", object: @project %>
<%= f.label :name, "Name:" %>
<%= f.text_field :name, class: "form-control" %>
<%= f.label :technology,... | d97307695ff156341457d10a03e77643e6685f84 | app/views/projects/_form.html.erb | app/views/projects/_form.html.erb | HTML+ERB |
<|file_sep|>original/versions/v2/components/Debugger/styles.css
.debugger {
display: flex;
flex-direction: column;
height: 100%;
font-family: "Helvetica Neue";
color: #333;
background-color: #FAFAFA;
}
.toolbar {
flex: 0 0 40px;
display: flex;
}
.content {
flex: 1;
display: flex;
}
.loading {
t... | .debugger {
display: flex;
flex-direction: column;
height: 100%;
font-family: "Helvetica Neue", Arial;
color: #333;
background-color: #FAFAFA;
}
.toolbar {
flex: 0 0 40px;
display: flex;
}
.content {
flex: 1;
display: flex;
}
.loading {
text-align: center; | <|file_sep|>original/versions/v2/components/Debugger/styles.css
.debugger {
display: flex;
flex-direction: column;
height: 100%;
font-family: "Helvetica Neue";
color: #333;
background-color: #FAFAFA;
}
.toolbar {
flex: 0 0 40px;
display: flex;
}
.content {
flex: 1;
display: flex;
}
.loading {
t... | d5560285936accaaeae1595d642ed8b89fbcf276 | versions/v2/components/Debugger/styles.css | versions/v2/components/Debugger/styles.css | CSS |
<|file_sep|>original/package.json
"name": "awful-tokens",
"description": "Authtoken Server",
"version": "0.1.0",
"private": true,
"author": "FHV",
"dependencies": {
"body-parser": "latest",
"express": "latest",
"lodash": "latest",
"node-redis": "latest",
"node-schedul... | "name": "awful-tokens",
"description": "Authtoken Server",
"version": "0.1.0",
"private": true,
"author": "FHV",
"dependencies": {
"body-parser": "latest",
"express": "latest",
"lodash": "latest",
"node-redis": "latest",
"node-schedule": "latest",
"tweetnacl": "latest",
"blake2s-... | <|file_sep|>original/package.json
"name": "awful-tokens",
"description": "Authtoken Server",
"version": "0.1.0",
"private": true,
"author": "FHV",
"dependencies": {
"body-parser": "latest",
"express": "latest",
"lodash": "latest",
"node-redis": "latest",
"node-schedul... | 2691d7cb12e56cb22aa8611c1a4a6474c674f353 | package.json | package.json | JSON |
<|file_sep|>WalletWasabi/Extensions/MemoryExtensions.cs.diff
original:
updated:
using System.Linq;
<|file_sep|>WalletWasabi/Extensions/MemoryExtensions.cs.diff
original:
updated:
<|file_sep|>original/WalletWasabi/Extensions/MemoryExtensions.cs
if (cache.TryGetValue(key, out TItem value))
{
return value;
... | public static async Task<TItem> AtomicGetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory)
{
if (cache.TryGetValue(key, out TItem value))
{
return value;
}
AsyncLock asyncLock;
lock (AsyncLocksLock)
{
// Cleanup the evicted asynclocks first.... | <|file_sep|>WalletWasabi/Extensions/MemoryExtensions.cs.diff
original:
updated:
using System.Linq;
<|file_sep|>WalletWasabi/Extensions/MemoryExtensions.cs.diff
original:
updated:
<|file_sep|>original/WalletWasabi/Extensions/MemoryExtensions.cs
if (cache.TryGetValue(key, out TItem value))
{
return value;
... | c66c36b53727bbafedfe9fe6472c5a8db88dd6b4 | WalletWasabi/Extensions/MemoryExtensions.cs | WalletWasabi/Extensions/MemoryExtensions.cs | C# |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3-rc-2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.pro... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-20190311000052+0000-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3-rc-2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.pro... | 2c150567d8a117b17f6f2351e46e27573dc85e99 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>app/views/user_mailer/feedback_complete.html.erb.diff
original:
<%
updated:
<%
<|file_sep|>app/views/user_mailer/feedback_complete.html.erb.diff
original:
recipient_name = @user.name(false)
updated:
recipient_name = @user.name(false)
<|file_sep|>original/app/views/user_mailer/feedback_complete.html.er... | <%
requestor = @requestor.name(false)
recipient_name = @user.name(false)
plan_name = @plan.title
tool_name = Rails.configuration.branding[:application][:name]
%>
<p><%= _('Hello %{recipient_name}') % { recipient_name: recipient_name } %></p>
<p>
<%= _("%{commenter} has finished providing feedback on the pla... | <|file_sep|>app/views/user_mailer/feedback_complete.html.erb.diff
original:
<%
updated:
<%
<|file_sep|>app/views/user_mailer/feedback_complete.html.erb.diff
original:
recipient_name = @user.name(false)
updated:
recipient_name = @user.name(false)
<|file_sep|>original/app/views/user_mailer/feedback_complete.html.er... | c252a1d31ae640a17ec79b0237fcd565134c4f01 | app/views/user_mailer/feedback_complete.html.erb | app/views/user_mailer/feedback_complete.html.erb | HTML+ERB |
<|file_sep|>original/website/requirements.txt
avasdk==1.0.3
django==1.11.5
django_compressor==2.2
django-contrib-comments==1.8.0
django-debug-toolbar==1.8
django-mail-templated==2.6.5
django-model-utils==3.0.0
django-nose==1.4.5
django-stdimage==2.4.2
django-taggit==0.22.1
docutils==0.14
gunicorn==19.7.1
markdown==2.6.... | avasdk==1.0.3
django==1.11.5
django_compressor==2.2
django-contrib-comments==1.8.0
django-debug-toolbar==1.8
django-mail-templated==2.6.5
django-model-utils==3.0.0
django-nose==1.4.5
django-stdimage==2.4.2
django-taggit==0.22.1
docutils==0.14
gunicorn==19.7.1
markdown==2.6.9
mock==2.0.0
psycopg2==2.7.3.1
pyinotify==0.9... | <|file_sep|>original/website/requirements.txt
avasdk==1.0.3
django==1.11.5
django_compressor==2.2
django-contrib-comments==1.8.0
django-debug-toolbar==1.8
django-mail-templated==2.6.5
django-model-utils==3.0.0
django-nose==1.4.5
django-stdimage==2.4.2
django-taggit==0.22.1
docutils==0.14
gunicorn==19.7.1
markdown==2.6.... | 49967288457fca8ee7feab34a517eb1a308e0214 | website/requirements.txt | website/requirements.txt | Text |
<|file_sep|>original/bluebottle/homepage/models.py
"""
def get(self, language):
self.id = language
self.quotes = Quote.objects.published().filter(language=language)
self.slides = Slide.objects.published().filter(language=language)
self.statistics = Statistic.objects.filter(active... | """
def get(self, language):
self.id = language
self.quotes = Quote.objects.published().filter(language=language)
self.slides = Slide.objects.published().filter(language=language)
self.statistics = Statistic.objects.filter(active=True, language=language).all()
projects =... | <|file_sep|>original/bluebottle/homepage/models.py
"""
def get(self, language):
self.id = language
self.quotes = Quote.objects.published().filter(language=language)
self.slides = Slide.objects.published().filter(language=language)
self.statistics = Statistic.objects.filter(active... | 0fd7b771823b97cb5fb7789c981d4ab3befcd28e | bluebottle/homepage/models.py | bluebottle/homepage/models.py | Python |
<|file_sep|>original/snippets/api-auth/rs256/java.md
---
title: Java
---
```java
java
```
<|file_sep|>current/snippets/api-auth/rs256/java.md
---
title: Java
---
```java
java
```
<|file_sep|>updated/snippets/api-auth/rs256/java.md | ---
title: Java
---
```java
final PublicKey publicKey = readPublicKey(PEM_FILENAME);
final JwtVerifier jwtVerifier = new JwtVerifier(publicKey);
final Map<String, Object> verifiedClaims = jwtVerifier.verify(token);
``` | <|file_sep|>original/snippets/api-auth/rs256/java.md
---
title: Java
---
```java
java
```
<|file_sep|>current/snippets/api-auth/rs256/java.md
---
title: Java
---
```java
java
```
<|file_sep|>updated/snippets/api-auth/rs256/java.md
---
title: Java
---
```java
final PublicKey publicKey = readPublicKey(PEM_FILENAME);
f... | 7d26f7997c3029ca5d3712d48cf0a865c3784fe6 | snippets/api-auth/rs256/java.md | snippets/api-auth/rs256/java.md | Markdown |
<|file_sep|>Documentation/cmd-set-head.txt.diff
original:
'ssh' -p <port> <host> 'gerrit set-head'
--project <NAME> | -p <NAME>
updated:
'ssh' -p <port> <host> 'gerrit set-head' <NAME>
<|file_sep|>original/Documentation/cmd-set-head.txt
The command is argument-safe, that is, if no argument is given the
previous sett... | The command is argument-safe, that is, if no argument is given the
previous settings are kept intact.
== ACCESS
Caller must be an owner of the given project.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<NAME>::
Required; name of the project to change the HEAD. If name ends
with `.... | <|file_sep|>Documentation/cmd-set-head.txt.diff
original:
'ssh' -p <port> <host> 'gerrit set-head'
--project <NAME> | -p <NAME>
updated:
'ssh' -p <port> <host> 'gerrit set-head' <NAME>
<|file_sep|>original/Documentation/cmd-set-head.txt
The command is argument-safe, that is, if no argument is given the
previous sett... | 1e00bebf354cd775fe411d4e23dbbe650d01967b | Documentation/cmd-set-head.txt | Documentation/cmd-set-head.txt | Text |
<|file_sep|>metadata/de.storchp.fdroidbuildstatus.yml.diff
original:
updated:
- versionName: '1.6'
versionCode: 7
commit: '1.6'
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/de.storchp.fdroidbuildstatus.yml
gradle:
- yes
- versionName: '1.4'
versionCode: 5
commit... | gradle:
- yes
- versionName: '1.5'
versionCode: 6
commit: '1.5'
subdir: app
gradle:
- yes
- versionName: '1.6'
versionCode: 7
commit: '1.6'
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: '1.6'
CurrentVersionCode: 7 | <|file_sep|>metadata/de.storchp.fdroidbuildstatus.yml.diff
original:
updated:
- versionName: '1.6'
versionCode: 7
commit: '1.6'
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/de.storchp.fdroidbuildstatus.yml
gradle:
- yes
- versionName: '1.4'
versionCode: 5
commit... | 0c453f66bf313704c4f58a97a9dc2c8793839662 | metadata/de.storchp.fdroidbuildstatus.yml | metadata/de.storchp.fdroidbuildstatus.yml | YAML |
<|file_sep|>setup.py.diff
original:
classifiers=(
updated:
classifiers=[
<|file_sep|>original/setup.py
setup(
name='django-user-deletion',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Management commands to notify and delete inactive ... |
setup(
name='django-user-deletion',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Management commands to notify and delete inactive django users',
classifiers=[
'Development Status :: 1 - Planning',
'Framework :: Django',
... | <|file_sep|>setup.py.diff
original:
classifiers=(
updated:
classifiers=[
<|file_sep|>original/setup.py
setup(
name='django-user-deletion',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Management commands to notify and delete inactive ... | 439b8eea574a9bfa154cbce069367d26faa94368 | setup.py | setup.py | Python |
<|file_sep|>README.md.diff
original:
handling with Express and Koa.
updated:
handling and reporting with Express 3/4 and Koa. Also compatible with other
connect-style frameworks.
## Overview
The library exposes middleware specific to both Express as well as Koa.
Express middleware:
* `oops.wrapRequests`: Binds all ... | var oops = require('oops.js')();
if (app.settings.env === 'development') {
app.use(oops.express);
}
```
Using a redis client to track errors among multiple node instances, as well
as using the wrapRequests and expressDashboard middleware.
```
var redis = require('redis');
var client = redis.createClient();
var oo... | <|file_sep|>README.md.diff
original:
handling with Express and Koa.
updated:
handling and reporting with Express 3/4 and Koa. Also compatible with other
connect-style frameworks.
## Overview
The library exposes middleware specific to both Express as well as Koa.
Express middleware:
* `oops.wrapRequests`: Binds all ... | 014b0ccdbdf63faf3507f041d130933a2aef63a4 | README.md | README.md | Markdown |
<|file_sep|>original/djangospam/templates/djangospam/cookieform.html
<div id="{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}">
<form method="post" action="{% url djangospam.cookie.views.spammer_view %}">
<label for="honeypot">Honeypot</label>
<input id="honeypot" type="text" name="honeypot"></in... | <div id="{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}">
<form method="post" action="{% url "djangospam.cookie.views.spammer_view" %}">
<label for="honeypot">Honeypot</label>
<input id="honeypot" type="text" name="honeypot"></input>
<label for="name">Name</label>
<input id="name" ty... | <|file_sep|>original/djangospam/templates/djangospam/cookieform.html
<div id="{% if dsformid %}{{ dsformid }}{% else %}dsform{% endif %}">
<form method="post" action="{% url djangospam.cookie.views.spammer_view %}">
<label for="honeypot">Honeypot</label>
<input id="honeypot" type="text" name="honeypot"></in... | 6d70c062c1a37ecb773e7b337e686ce94fa095fe | djangospam/templates/djangospam/cookieform.html | djangospam/templates/djangospam/cookieform.html | HTML |
<|file_sep|>documentation/manual/working/commonGuide/build/code/dependencies.sbt.diff
original:
libraryDependencies += "org.apache.derby" % "derby" % "10.15.1.3"
updated:
libraryDependencies += "org.apache.derby" % "derby" % "10.14.2.03"
<|file_sep|>documentation/manual/working/commonGuide/build/code/dependencies.sbt.d... | //#single-dep
libraryDependencies += "org.apache.derby" % "derby" % "10.14.2.03"
//#single-dep
//#single-dep-test
libraryDependencies += "org.apache.derby" % "derby" % "10.14.2.03" % "test"
//#single-dep-test
//#multi-deps
libraryDependencies ++= Seq(
"org.apache.derby" % "derby" % "10.14.2.0",
"org.hibe... | <|file_sep|>documentation/manual/working/commonGuide/build/code/dependencies.sbt.diff
original:
libraryDependencies += "org.apache.derby" % "derby" % "10.15.1.3"
updated:
libraryDependencies += "org.apache.derby" % "derby" % "10.14.2.03"
<|file_sep|>documentation/manual/working/commonGuide/build/code/dependencies.sbt.d... | aca55c0603400db12ffc593ec2a84e7465f63a10 | documentation/manual/working/commonGuide/build/code/dependencies.sbt | documentation/manual/working/commonGuide/build/code/dependencies.sbt | Scala |
<|file_sep|>scripts/release.sh.diff
original:
updated:
SCRIPTDIR=`dirname "$0"`
pushd $SCRIPTDIR/../src/
<|file_sep|>original/scripts/release.sh
# stop at first command failure
set -e
read -p "Do you really want to deploy to maven central repository (yes/no)? "
# check if prompted to continue
if [[ ! $REPLY =~ ^[... | if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
# check if the input parameter RELEASE_VERSION is valid
RELEASE_VERSION="$1"
if [[ ! $RELEASE_VERSION =~ ^([0-9]+\.[0-9]+\.[0-9])(\-SNAPSHOT){0,1}$ ]]; then
echo "Error: RELEASE_VERSION must be in X.Y.Z(-SNAPSHOT) format, but was $RELEASE_VERSION"
exit 1
fi
SCRI... | <|file_sep|>scripts/release.sh.diff
original:
updated:
SCRIPTDIR=`dirname "$0"`
pushd $SCRIPTDIR/../src/
<|file_sep|>original/scripts/release.sh
# stop at first command failure
set -e
read -p "Do you really want to deploy to maven central repository (yes/no)? "
# check if prompted to continue
if [[ ! $REPLY =~ ^[... | c6c24a1b06dfda2c2e6b60f86618d88358e01268 | scripts/release.sh | scripts/release.sh | Shell |
<|file_sep|>original/exception_notification.gemspec
Gem::Specification.new do |s|
s.name = 'exception_notification'
s.version = '2.5.1'
s.authors = ["Jamis Buck", "Josh Peek"]
s.date = %q{2011-08-29}
s.summary = "Exception notification by email for Rails apps"
s.email = "smartinez87@gmail.com"
s.files = ... | Gem::Specification.new do |s|
s.name = 'exception_notification'
s.version = '2.5.1'
s.authors = ["Jamis Buck", "Josh Peek"]
s.date = %q{2011-08-29}
s.summary = "Exception notification by email for Rails apps"
s.email = "smartinez87@gmail.com"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-... | <|file_sep|>original/exception_notification.gemspec
Gem::Specification.new do |s|
s.name = 'exception_notification'
s.version = '2.5.1'
s.authors = ["Jamis Buck", "Josh Peek"]
s.date = %q{2011-08-29}
s.summary = "Exception notification by email for Rails apps"
s.email = "smartinez87@gmail.com"
s.files = ... | 5f21b4725ffbdf65a12b4e8748f7163275a75525 | exception_notification.gemspec | exception_notification.gemspec | Ruby |
<|file_sep|>original/Formula/gqview.rb
<|file_sep|>current/Formula/gqview.rb
<|file_sep|>updated/Formula/gqview.rb | require 'formula'
class Gqview <Formula
url 'http://downloads.sourceforge.net/project/gqview/gqview/2.0.4/gqview-2.0.4.tar.gz'
homepage 'http://gqview.sourceforge.net'
md5 '7196deab04db94cec2167637cddc02f9'
depends_on 'gtk+'
def install
system "./configure", "--disable-debug", "--disable-dependency-tra... | <|file_sep|>original/Formula/gqview.rb
<|file_sep|>current/Formula/gqview.rb
<|file_sep|>updated/Formula/gqview.rb
require 'formula'
class Gqview <Formula
url 'http://downloads.sourceforge.net/project/gqview/gqview/2.0.4/gqview-2.0.4.tar.gz'
homepage 'http://gqview.sourceforge.net'
md5 '7196deab04db94cec216763... | 94090393ec035a752621e2ee53efa4c5b96a048b | Formula/gqview.rb | Formula/gqview.rb | Ruby |
<|file_sep|>original/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
end
<|file_sep|>current/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
end
<|file_sep|>updated/app/jobs/application_job.rb | class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked
# Most jobs are safe to ignore if the underlying records are no longer available
# discard_on ActiveJob::DeserializationError
end | <|file_sep|>original/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
end
<|file_sep|>current/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
end
<|file_sep|>updated/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a de... | 14592760151fee7b02a6814dc8bdbc1e38ab6bb8 | app/jobs/application_job.rb | app/jobs/application_job.rb | Ruby |
<|file_sep|>original/api/classes/API.js
'use strict'
class API {
static createQueryFromRequest (request) {
delete request.rats
delete delete request.CMDRs
let limit = parseInt(request.limit) || 25
delete request.limit
let offset = (parseInt(request.page) - 1) * limit || parseInt(request.offset)... | 'use strict'
class API {
static createQueryFromRequest (request) {
delete request.rats
delete request.CMDRs
let limit = parseInt(request.limit) || 25
delete request.limit
let offset = (parseInt(request.page) - 1) * limit || parseInt(request.offset) || 0
delete request.offset
delete requ... | <|file_sep|>original/api/classes/API.js
'use strict'
class API {
static createQueryFromRequest (request) {
delete request.rats
delete delete request.CMDRs
let limit = parseInt(request.limit) || 25
delete request.limit
let offset = (parseInt(request.page) - 1) * limit || parseInt(request.offset)... | ebfdad637471438b518ec0605fabd07c75d35b54 | api/classes/API.js | api/classes/API.js | JavaScript |
<|file_sep|>original/.github/workflows/main.yml
<|file_sep|>current/.github/workflows/main.yml
<|file_sep|>updated/.github/workflows/main.yml | name: Deploy Kitsu to staging environment
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: $... | <|file_sep|>original/.github/workflows/main.yml
<|file_sep|>current/.github/workflows/main.yml
<|file_sep|>updated/.github/workflows/main.yml
name: Deploy Kitsu to staging environment
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using pas... | c7f10df34030489a13d951419d9d3665430627d1 | .github/workflows/main.yml | .github/workflows/main.yml | YAML |
<|file_sep|>scripts/aws/back_usr.sh.diff
original:
# Change permissions for scripts
updated:
# Change permissions and ownership for scripts
<|file_sep|>scripts/aws/back_usr.sh.diff
original:
# Change ownership for scripts
updated:
<|file_sep|>original/scripts/aws/back_usr.sh
# Fix hostname issue so sudo doesn't compl... | alias curl-check="curl --write-out '%{http_code}\n' -s -o /dev/null"
EOF
# Fix hostname issue so sudo doesn't complain & write a back.txt file to admin home directory
echo "127.0.0.1\t$(hostname)" | tee --append /etc/hosts
echo "Welcome to the Back Host." | tee /home/admin/back.txt
echo "Hostname: $(hostname)" | tee -... | <|file_sep|>scripts/aws/back_usr.sh.diff
original:
# Change permissions for scripts
updated:
# Change permissions and ownership for scripts
<|file_sep|>scripts/aws/back_usr.sh.diff
original:
# Change ownership for scripts
updated:
<|file_sep|>original/scripts/aws/back_usr.sh
# Fix hostname issue so sudo doesn't compl... | 2f39f1ebc26d23088edb7e8aafc6da57e49fe42a | scripts/aws/back_usr.sh | scripts/aws/back_usr.sh | Shell |
<|file_sep|>test/create-timer.test.js.diff
original:
let timer = createTimer('test')
let time = timer()
updated:
var timer = createTimer('test')
var time = timer()
<|file_sep|>test/create-timer.test.js.diff
original:
let timer = createTimer('host')
let time = timer()
updated:
var timer = createTimer('host... | var createTimer = require('../create-timer')
it('starts events from zero', function () {
var timer = createTimer('test')
var time = timer()
expect(time[2]).toBe(0)
})
it('saves host name', function () {
var timer = createTimer('host')
var time = timer()
expect(time[2]).toBe(0)
})
it('generates unique tim... | <|file_sep|>test/create-timer.test.js.diff
original:
let timer = createTimer('test')
let time = timer()
updated:
var timer = createTimer('test')
var time = timer()
<|file_sep|>test/create-timer.test.js.diff
original:
let timer = createTimer('host')
let time = timer()
updated:
var timer = createTimer('host... | 3298f9b9df76811e6facf5f7c641ec33b68db93a | test/create-timer.test.js | test/create-timer.test.js | JavaScript |
<|file_sep|>original/_protected/app/system/modules/admin123/views/base/tpl/main/index.tpl
{if $show_get_started_section}
{manual_include 'get_started_intro.inc.tpl'}
{/if}
{manual_include 'stat.tpl'}
{if $is_news_feed}
<br /><hr /><br />
{manual_include 'news.inc.tpl'}
{/if}
<|file_sep|>current/_protected/app/... | {if $show_get_started_section}
{manual_include 'get_started_intro.inc.tpl'}
{/if}
{manual_include 'stat.tpl'}
{if $is_news_feed}
<br /><hr /><br />
{manual_include 'news.inc.tpl'}
{/if} | <|file_sep|>original/_protected/app/system/modules/admin123/views/base/tpl/main/index.tpl
{if $show_get_started_section}
{manual_include 'get_started_intro.inc.tpl'}
{/if}
{manual_include 'stat.tpl'}
{if $is_news_feed}
<br /><hr /><br />
{manual_include 'news.inc.tpl'}
{/if}
<|file_sep|>current/_protected/app/... | d260194b95e242d02bd60d031d68b3bbbc924789 | _protected/app/system/modules/admin123/views/base/tpl/main/index.tpl | _protected/app/system/modules/admin123/views/base/tpl/main/index.tpl | Smarty |
<|file_sep|>original/numpy/core/src/multiarray/convert_datatype.h
#ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
#endif
<|file_sep|>current/numpy/core/src/multiarray/convert_datatype.h
#ifnde... | #ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
NPY_NO_EXPORT int
PyArray_CastTo(PyArrayObject *out, PyArrayObject *mp);
NPY_NO_EXPORT PyArray_VectorUnaryFunc *
PyArray_GetCastFunc(PyArray_De... | <|file_sep|>original/numpy/core/src/multiarray/convert_datatype.h
#ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
NPY_NO_EXPORT PyObject *
PyArray_CastToType(PyArrayObject *mp, PyArray_Descr *at, int fortran);
#endif
<|file_sep|>current/numpy/core/src/multiarray/convert_datatype.h
#ifnde... | 4fe769ebf1a4a71fb90ac7e37a747aadc07052ea | numpy/core/src/multiarray/convert_datatype.h | numpy/core/src/multiarray/convert_datatype.h | C |
<|file_sep|>original/src/coffee/client.coffee
<|file_sep|>current/src/coffee/client.coffee
<|file_sep|>updated/src/coffee/client.coffee | fs = require 'fs'
Q = require 'q'
knox = require 'knox'
_ = require('underscore')._
class Client
constructor: (key, secret, bucket) ->
@client = knox.createClient
key: key
secret: secret
bucket: bucket
list: (args) ->
Q.ninvoke @client, 'list', args
getFile: (file) ->
Q.ninvoke @c... | <|file_sep|>original/src/coffee/client.coffee
<|file_sep|>current/src/coffee/client.coffee
<|file_sep|>updated/src/coffee/client.coffee
fs = require 'fs'
Q = require 'q'
knox = require 'knox'
_ = require('underscore')._
class Client
constructor: (key, secret, bucket) ->
@client = knox.createClient
key: k... | 06cb052f7fc911eaa822557298506951c9f78956 | src/coffee/client.coffee | src/coffee/client.coffee | CoffeeScript |
<|file_sep|>original/test/LichessDatabasePackerTest.scala
"lichess database packer" should {
"pack a single game" in {
val ref = GameRef("ref00000", Some(Color.White), SpeedGroup.Bullet, 1999)
val entry = Entry.fromGameRef(ref)
unpack(pack(entry)).selectAll.topGames mustEqual List(ref)
}
... | }
"pack two games" in {
val g1 = GameRef("g0000001", Some(Color.Black), SpeedGroup.Classical, 2300)
val g2 = GameRef("g0000002", None, SpeedGroup.Classical, 2455)
val entry = Entry.fromGameRef(g1).withGameRef(g2)
unpack(pack(entry)).selectAll.topGames.toSet mustEqual Set(g1, g2)
}
... | <|file_sep|>original/test/LichessDatabasePackerTest.scala
"lichess database packer" should {
"pack a single game" in {
val ref = GameRef("ref00000", Some(Color.White), SpeedGroup.Bullet, 1999)
val entry = Entry.fromGameRef(ref)
unpack(pack(entry)).selectAll.topGames mustEqual List(ref)
}
... | ad6019ee5a597a5d4db6dcceb2c5019b612eeb23 | test/LichessDatabasePackerTest.scala | test/LichessDatabasePackerTest.scala | Scala |
<|file_sep|>original/lib/mercure/git.rb
# end
if tags.include?("#{tag_name}\n") == false
puts "Le tag #{tag_name} n'existe pas."
puts "Nous allons le créer pour pointer vers le commit actuel (#{current_commit})"
create_tag = `git tag #{tag_name}`
end
puts "On checkout le tag #{tag_name}"
co... | # end
if tags.include?("#{tag_name}\n") == false
puts "Le tag #{tag_name} n'existe pas."
puts "Nous allons le créer pour pointer vers le commit actuel (#{current_commit})"
create_tag = `git tag #{tag_name}`
end
puts "On checkout le tag #{tag_name}"
end
def tagGit (settings)
tag_name ... | <|file_sep|>original/lib/mercure/git.rb
# end
if tags.include?("#{tag_name}\n") == false
puts "Le tag #{tag_name} n'existe pas."
puts "Nous allons le créer pour pointer vers le commit actuel (#{current_commit})"
create_tag = `git tag #{tag_name}`
end
puts "On checkout le tag #{tag_name}"
co... | 3201f3f0d503b03566e7aa2d41d56233aff72298 | lib/mercure/git.rb | lib/mercure/git.rb | Ruby |
<|file_sep|>original/views/layout.jade
doctype 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content
<|file_sep|>current/views/layout.jade
doctype 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content... | doctype 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
script(type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js')
script(type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js')... | <|file_sep|>original/views/layout.jade
doctype 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content
<|file_sep|>current/views/layout.jade
doctype 5
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content... | aa0c588342f2170a28f01d8c69523c8783e31c25 | views/layout.jade | views/layout.jade | Jade |
<|file_sep|>original/mike_rowe/db/migrate/20160125220811_create_teachers.rb
class CreateTeachers < ActiveRecord::Migration
def change
create_table :teachers do |t|
t.string :name
t.string :email
t.string :password_digest
t.boolean :admin
t.timestamps null: false
end
end
end
<|... | class CreateTeachers < ActiveRecord::Migration
def change
create_table :teachers do |t|
t.string :name
t.string :email
t.string :password_digest
t.boolean :admin, default: false
t.timestamps null: false
end
end
end | <|file_sep|>original/mike_rowe/db/migrate/20160125220811_create_teachers.rb
class CreateTeachers < ActiveRecord::Migration
def change
create_table :teachers do |t|
t.string :name
t.string :email
t.string :password_digest
t.boolean :admin
t.timestamps null: false
end
end
end
<|... | d9dfa771b33e84c3f4b75535a7b917f588a806b5 | mike_rowe/db/migrate/20160125220811_create_teachers.rb | mike_rowe/db/migrate/20160125220811_create_teachers.rb | Ruby |
<|file_sep|>original/nova/conf/cache.py
# needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronau... | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2016 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | <|file_sep|>original/nova/conf/cache.py
# needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronau... | 48f9b32bfe8a222cbe8afdb1e4f0d63bc2ac9a68 | nova/conf/cache.py | nova/conf/cache.py | Python |
<|file_sep|>original/index.js
url: url
}
return 'https://plus.google.com/share?' + qs.stringify(share)
},
pinterest: function (url, opts) {
var share = {
url: url
}
if (opts.media) share.media = opts.media
if (opts.description) share.description = opts.description
return 'htt... | return 'https://plus.google.com/share?' + qs.stringify(share)
},
pinterest: function (url, opts) {
var share = {
url: url
}
if (opts.media) share.media = opts.media
if (opts.description) share.description = opts.description
return 'http://pinterest.com/pin/create/button/?' + qs.stringi... | <|file_sep|>original/index.js
url: url
}
return 'https://plus.google.com/share?' + qs.stringify(share)
},
pinterest: function (url, opts) {
var share = {
url: url
}
if (opts.media) share.media = opts.media
if (opts.description) share.description = opts.description
return 'htt... | 74f1842a096c184982a94d4fc5a95c1a90d18a63 | index.js | index.js | JavaScript |
<|file_sep|>original/app.json
},
{
"url": "https://github.com/heroku/heroku-buildpack-google-chrome"
}
],
"env": {
"WD_CHROME_PATH": "/app/.apt/usr/bin/google-chrome-stable"
},
"formation": {
"test": {
"quantity": 1,
"size": "... | },
{
"url": "https://github.com/heroku/heroku-buildpack-google-chrome"
}
],
"env": {
"WD_CHROME_PATH": "/app/.apt/usr/bin/google-chrome-stable"
},
"formation": {
"test": {
"quantity": 1,
"size": "performance-l"
}
... | <|file_sep|>original/app.json
},
{
"url": "https://github.com/heroku/heroku-buildpack-google-chrome"
}
],
"env": {
"WD_CHROME_PATH": "/app/.apt/usr/bin/google-chrome-stable"
},
"formation": {
"test": {
"quantity": 1,
"size": "... | f9057f6f56169a0163f757b8b4c09ab489a9fca3 | app.json | app.json | JSON |
<|file_sep|>original/polyfills/console-minimal.js
/*
* Minimal console.log() polyfill
*/
if (typeof console === 'undefined') {
Object.defineProperty(this, 'console', {
value: {}, writable: true, enumerable: false, configurable: true
});
}
if (typeof console.log === 'undefined') {
Object.definePr... | /*
* Minimal console.log() polyfill
*/
if (typeof console === 'undefined') {
Object.defineProperty(this, 'console', {
value: {}, writable: true, enumerable: false, configurable: true
});
}
if (typeof console.log === 'undefined') {
(function () {
var origPrint = print; // capture in clos... | <|file_sep|>original/polyfills/console-minimal.js
/*
* Minimal console.log() polyfill
*/
if (typeof console === 'undefined') {
Object.defineProperty(this, 'console', {
value: {}, writable: true, enumerable: false, configurable: true
});
}
if (typeof console.log === 'undefined') {
Object.definePr... | eced78384c7424e5cb2195aaf645f03959bc9bc2 | polyfills/console-minimal.js | polyfills/console-minimal.js | JavaScript |
<|file_sep|>original/index.js
var rules = require('./rules');
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
},
rules: rules,
plugins: ['react'],
};
<|file_sep|>current/ind... |
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
},
settings: {
react: {
version: "16.0"
}
},
rules: rules,
plugins: ['react'],
}; | <|file_sep|>original/index.js
var rules = require('./rules');
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
},
rules: rules,
plugins: ['react'],
};
<|file_sep|>current/ind... | 2510abae2d5fde17ca1553478fb4dc2b6bd3e916 | index.js | index.js | JavaScript |
<|file_sep|>original/docker-compose.yml
ports:
- 5672:5672
web:
build: web
restart: always
ports:
- 80:5000
depends_on:
- mongo
environment:
- FLASK_APP=server.py
- FLASK_DEBUG=1
- MONGO_DATABASE=whistleblower
- MONGO_URL=mongodb://mongo:27017/
wor... | ports:
- 5672:5672
web:
build: web
restart: always
ports:
- 80:5000
depends_on:
- mongo
env_file:
- .env
environment:
- FLASK_APP=server.py
- FLASK_DEBUG=1
- MONGO_DATABASE=whistleblower
- MONGO_URL=mongodb://mongo:27017/
worker:
buil... | <|file_sep|>original/docker-compose.yml
ports:
- 5672:5672
web:
build: web
restart: always
ports:
- 80:5000
depends_on:
- mongo
environment:
- FLASK_APP=server.py
- FLASK_DEBUG=1
- MONGO_DATABASE=whistleblower
- MONGO_URL=mongodb://mongo:27017/
wor... | f88d35ea157664c3595afb04fae32c73e70e5f5c | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>composer.json.diff
original:
"homepage": "https://brianfaust.de",
"role": "Developer"
updated:
"homepage": "https://brianfaust.de"
<|file_sep|>original/composer.json
"name": "faustbrian/laravel-geoip2",
"description": "A Laravel 5 package for MaxMind GeoIP2 support.",
"ke... | "name": "faustbrian/laravel-geoip2",
"description": "A Laravel 5 package for MaxMind GeoIP2 support.",
"keywords": ["laravel", "framework", "Laravel-GeoIP2", "Laravel GeoIP2", "Brian Faust", "faustbrian"],
"license": "MIT",
"authors": [{
"name": "Brian Faust",
"email": "hello@brianfa... | <|file_sep|>composer.json.diff
original:
"homepage": "https://brianfaust.de",
"role": "Developer"
updated:
"homepage": "https://brianfaust.de"
<|file_sep|>original/composer.json
"name": "faustbrian/laravel-geoip2",
"description": "A Laravel 5 package for MaxMind GeoIP2 support.",
"ke... | deb09dedd45e3bb2137241abeac4d305c46aaae2 | composer.json | composer.json | JSON |
<|file_sep|>original/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c
<|file_sep|>current/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c
<|file_sep|>updated/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c | // PARAM: --set ana.activated[+] var_eq --set ana.activated[+] symb_locks --set ana.activated[+] region --enable ana.sv-comp.enabled --set ana.specification "CHECK( init(main()), LTL(G ! call(reach_error())) )"
// creduced from ldv-linux-4.2-rc1/linux-4.2-rc1.tar.xz-43_2a-drivers--scsi--qla4xxx--qla4xxx.ko-entry_point... | <|file_sep|>original/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c
<|file_sep|>current/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c
<|file_sep|>updated/tests/regression/29-svcomp/27-td3-front-via-destab-infl.c
// PARAM: --set ana.activated[+] var_eq --set ana.activated[+] symb_locks --set ana... | b3761005e1bcdcc11051bf45e90a00b1f33cb82e | tests/regression/29-svcomp/27-td3-front-via-destab-infl.c | tests/regression/29-svcomp/27-td3-front-via-destab-infl.c | C |
<|file_sep|>python/grizzly/grizzly/lazy_op.py.diff
original:
def evaluate(self, verbose=True, decode=True):
updated:
def evaluate(self, verbose=True, decode=True, passes=None):
<|file_sep|>original/python/grizzly/grizzly/lazy_op.py
self.weld_type = weld_type
self.dim = dim
def evaluate(self... | self.dim = dim
def evaluate(self, verbose=True, decode=True, passes=None):
"""Summary
Args:
verbose (bool, optional): Description
decode (bool, optional): Description
Returns:
TYPE: Description
"""
if isinstance(self.expr, WeldOb... | <|file_sep|>python/grizzly/grizzly/lazy_op.py.diff
original:
def evaluate(self, verbose=True, decode=True):
updated:
def evaluate(self, verbose=True, decode=True, passes=None):
<|file_sep|>original/python/grizzly/grizzly/lazy_op.py
self.weld_type = weld_type
self.dim = dim
def evaluate(self... | bf1bafbbebeab86a213e4c4bed0be6f1b18404c6 | python/grizzly/grizzly/lazy_op.py | python/grizzly/grizzly/lazy_op.py | Python |
<|file_sep|>original/.codeclimate.yml
checks:
E111:
enabled: false
E501:
enabled: false
markdownlint:
enabled: true
checks:
MD004:
enabled: false
MD013:
enabled: false
MD026:
enabled: false
MD029:
enabled: false
MD03... | checks:
E111:
enabled: false
E501:
enabled: false
markdownlint:
enabled: true
checks:
MD004:
enabled: false
MD007:
enabled: false
MD013:
enabled: false
MD026:
enabled: false
MD029:
enabled: false
MD033:... | <|file_sep|>original/.codeclimate.yml
checks:
E111:
enabled: false
E501:
enabled: false
markdownlint:
enabled: true
checks:
MD004:
enabled: false
MD013:
enabled: false
MD026:
enabled: false
MD029:
enabled: false
MD03... | d104aa05a68eeb222b1c0617e69be95d8c99c6e5 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>main.go.diff
original:
updated:
var version = "0.1.0"
var helpMsg = `NAME:
ext - An interface for command extensions
USAGE:
ext commands...
`
<|file_sep|>original/main.go
)
func main() {
extArgs, err := LookupExtCmd(os.Args[1:])
if err != nil {
fmt.Println(err)
}
extCmd := exec.Command(ex... | )
var version = "0.1.0"
var helpMsg = `NAME:
ext - An interface for command extensions
USAGE:
ext commands...
`
func main() {
if len(os.Args) < 2 {
fmt.Println(helpMsg)
os.Exit(1)
}
switch os.Args[1] {
case "-h", "--help":
fmt.Println(helpMsg)
os.Exit(0)
case "-v", "--version":
fmt.Println(ver... | <|file_sep|>main.go.diff
original:
updated:
var version = "0.1.0"
var helpMsg = `NAME:
ext - An interface for command extensions
USAGE:
ext commands...
`
<|file_sep|>original/main.go
)
func main() {
extArgs, err := LookupExtCmd(os.Args[1:])
if err != nil {
fmt.Println(err)
}
extCmd := exec.Command(ex... | a71884087fbfebe148542030ff6e6ab4bff40d5d | main.go | main.go | Go |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libmagic-dev
install:
- python setup.py build --enable-magic --enable-dotnet
- python setup.py install
script:
... | language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libmagic-dev
install:
- python setup.py build --enable-magic --enable-dotnet
- python setup.py install
script: | <|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libmagic-dev
install:
- python setup.py build --enable-magic --enable-dotnet
- python setup.py install
script:
... | 0092232776de2b751b72dccc04e1e4863c5fcd64 | .travis.yml | .travis.yml | YAML |
<|file_sep|>package.json.diff
original:
"url": "git://github.com/eightyeight/with-env.git"
updated:
"url": "git://github.com/eightyeight/envade.git"
<|file_sep|>package.json.diff
original:
"url": "https://github.com/eightyeight/with-env/issues"
updated:
"url": "https://github.com/eightyeight/envade/issu... | "description": "Cross-platform environment var helper",
"bin": {
"envade": "index.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/eightyeight/envade.git"
},
"author": "Daniel Buckmaster",
"license": "M... | <|file_sep|>package.json.diff
original:
"url": "git://github.com/eightyeight/with-env.git"
updated:
"url": "git://github.com/eightyeight/envade.git"
<|file_sep|>package.json.diff
original:
"url": "https://github.com/eightyeight/with-env/issues"
updated:
"url": "https://github.com/eightyeight/envade/issu... | 7f946094ef586e12d80d809b486c3f3903e4aa55 | package.json | package.json | JSON |
<|file_sep|>original/app/controllers/imports_controller.rb
end
gz = Zlib::GzipReader.new(params[:animelist])
xml = gz.read
gz.close
current_user.update_column :mal_import_in_progress, true
MyAnimeListImportApplyWorker.perform_async(current_user.id, xml)
mixpanel... | end
gz = Zlib::GzipReader.new(params[:animelist])
xml = gz.read
gz.close
current_user.update_column :mal_import_in_progress, true
MyAnimeListImportApplyWorker.perform_async(current_user.id, xml)
mixpanel.track "Imported from MyAnimeList", {email: current_user.em... | <|file_sep|>original/app/controllers/imports_controller.rb
end
gz = Zlib::GzipReader.new(params[:animelist])
xml = gz.read
gz.close
current_user.update_column :mal_import_in_progress, true
MyAnimeListImportApplyWorker.perform_async(current_user.id, xml)
mixpanel... | 0872c4777caea64d326202f000202010055ece94 | app/controllers/imports_controller.rb | app/controllers/imports_controller.rb | Ruby |
<|file_sep|>original/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb
<|file_sep|>current/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb
<|file_sep|>updated/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb | class RenameUsagesOfAccountsRemovedInNomenclature < ActiveRecord::Migration
REMOVED_USAGES = %w{others_taxes interests_expenses tax_depreciation_revenues}
def change
reversible do |d|
d.up do
REMOVED_USAGES.each do |usage|
execute <<-SQL
UPDATE accounts AS ac
SET ... | <|file_sep|>original/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb
<|file_sep|>current/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb
<|file_sep|>updated/db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb
class RenameUsagesOf... | 1fdccfe5ae6084da8b48cd3b2e85e1c104aa864f | db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb | db/migrate/20180711133214_rename_usages_of_accounts_removed_in_nomenclature.rb | Ruby |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml | # Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger:
- master
pool:
vmImage: ubuntu-latest
strat... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# ... | 158a4a8e0168bff4893bcac7e195e6b7f9ef4ae8 | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>original/packages/glimmer-syntax/package.json
{
"name": "glimmer-syntax",
"version": "0.5.1",
"main": "dist/commonjs/index.js",
"module": "dist/modules/index.js",
"jsnext:main": "dist/modules/index.js",
"typings": "dist/commonjs/index.d.ts",
"scripts": {
"build": "build/build.js",
"pre... | "name": "glimmer-syntax",
"version": "0.5.1",
"main": "dist/commonjs/index.js",
"module": "dist/modules/index.js",
"jsnext:main": "dist/modules/index.js",
"typings": "dist/commonjs/index.d.ts",
"scripts": {
"build": "build/build.js",
"prepublish": "npm run build",
"test": "node -e 'require(\".... | <|file_sep|>original/packages/glimmer-syntax/package.json
{
"name": "glimmer-syntax",
"version": "0.5.1",
"main": "dist/commonjs/index.js",
"module": "dist/modules/index.js",
"jsnext:main": "dist/modules/index.js",
"typings": "dist/commonjs/index.d.ts",
"scripts": {
"build": "build/build.js",
"pre... | fdfa96fef1ac60f74ac0bb07493aba2f6d14a8b4 | packages/glimmer-syntax/package.json | packages/glimmer-syntax/package.json | JSON |
<|file_sep|>SPTDataLoader.podspec.diff
original:
s.version = "1.0.0"
updated:
s.version = "1.0.1"
<|file_sep|>original/SPTDataLoader.podspec
s.name = "SPTDataLoader"
s.version = "1.0.0"
s.summary = "SPTDataLoader is Spotify's HTTP library for Objective-C"
s.descripti... | s.name = "SPTDataLoader"
s.version = "1.0.1"
s.summary = "SPTDataLoader is Spotify's HTTP library for Objective-C"
s.description = <<-DESC
Authentication and back-off logic is a pain, let's do it
once and forget about it! This is a libr... | <|file_sep|>SPTDataLoader.podspec.diff
original:
s.version = "1.0.0"
updated:
s.version = "1.0.1"
<|file_sep|>original/SPTDataLoader.podspec
s.name = "SPTDataLoader"
s.version = "1.0.0"
s.summary = "SPTDataLoader is Spotify's HTTP library for Objective-C"
s.descripti... | 531caced28af47e71310817f86621f0cbe75502c | SPTDataLoader.podspec | SPTDataLoader.podspec | Ruby |
<|file_sep|>original/pegasus/gtfar/templates/footer.html
<footer id="footer" class="text-center text-middle topBuffer">
<nav class="hidden-xs">
<a href="http://pegasus.isi.edu"><img src="{{ url_for ('static', filename='images/footer/pegasus.jpg') }}"
alt="Pegasu... | <footer id="footer" class="text-center text-middle topBuffer">
<nav class="hidden-xs">
<a href="http://pegasus.isi.edu"><img src="{{ url_for ('static', filename='images/footer/pegasus.jpg') }}"
alt="Pegasus Workflow Management System"/></a>
<a href="http... | <|file_sep|>original/pegasus/gtfar/templates/footer.html
<footer id="footer" class="text-center text-middle topBuffer">
<nav class="hidden-xs">
<a href="http://pegasus.isi.edu"><img src="{{ url_for ('static', filename='images/footer/pegasus.jpg') }}"
alt="Pegasu... | e41ab8fb272db7f310ec1694ae2b9fa20955e62e | pegasus/gtfar/templates/footer.html | pegasus/gtfar/templates/footer.html | HTML |
<|file_sep|>original/src/tools/OASIS-i18n.sh
# #
# This library is free software; you can redistribute it and/or modify it #
# under the terms of the GNU Lesser General Public License as published by #
# the Free Software Foundation;... | # #
# This library is free software; you can redistribute it and/or modify it #
# under the terms of the GNU Lesser General Public License as published by #
# the Free Software Foundation; either version 2.1 of the License, or (at ... | <|file_sep|>original/src/tools/OASIS-i18n.sh
# #
# This library is free software; you can redistribute it and/or modify it #
# under the terms of the GNU Lesser General Public License as published by #
# the Free Software Foundation;... | ca49790c769b913a2c9744f5688a3b5813277ee3 | src/tools/OASIS-i18n.sh | src/tools/OASIS-i18n.sh | Shell |
<|file_sep|>kik/index.js.diff
original:
this.outgoing = function(message) {
updated:
this.outgoing = function(object) {
<|file_sep|>kik/index.js.diff
original:
conversation_distinct_id: message.chatId,
updated:
conversation_distinct_id: object.chatId,
<|file_sep|>kik/index.js.diff
original:
... | return Dialog.track(apiToken, botId, payload);
},
this.outgoing = function(object) {
var payload = {
message: {
conversation_distinct_id: object.chatId,
distinct_id: uuid.v4(),
platform: 'kik',
provider: 'kik',
mtype: object.type,
sent_at: new Date().ge... | <|file_sep|>kik/index.js.diff
original:
this.outgoing = function(message) {
updated:
this.outgoing = function(object) {
<|file_sep|>kik/index.js.diff
original:
conversation_distinct_id: message.chatId,
updated:
conversation_distinct_id: object.chatId,
<|file_sep|>kik/index.js.diff
original:
... | 20fde2618388b751a420d429abc2bac3eb5a55f9 | kik/index.js | kik/index.js | JavaScript |
<|file_sep|>original/build-racket.sh
#!/bin/sh
set -uex
root=$(pwd)
cd /tmp
curl -L10 -O https://github.com/plt/racket/archive/master.tar.gz
tar -zxf master.tar.gz
cd racket-master/src
./configure --prefix=/app/vendor
make -sj30
make -sj30 install
mv /app/vendor $root/
<|file_sep|>current/build-racket.sh
#!/bin/sh
s... | #!/bin/sh
set -uex
root=$(pwd)
cd /tmp
curl -L10 -O https://github.com/plt/racket/archive/master.tar.gz
tar -zxf master.tar.gz
cd racket-master/src
./configure --prefix=/app/vendor --disable-docs
make -sj30
make -sj30 install
mv /app/vendor $root/ | <|file_sep|>original/build-racket.sh
#!/bin/sh
set -uex
root=$(pwd)
cd /tmp
curl -L10 -O https://github.com/plt/racket/archive/master.tar.gz
tar -zxf master.tar.gz
cd racket-master/src
./configure --prefix=/app/vendor
make -sj30
make -sj30 install
mv /app/vendor $root/
<|file_sep|>current/build-racket.sh
#!/bin/sh
s... | 387383275b93ec8c7fa3c05568198e2888fadce7 | build-racket.sh | build-racket.sh | Shell |
<|file_sep|>original/.travis.yml
- gemfile: test/gemfiles/activerecord51.gemfile
env: ELASTICSEARCH_VERSION=6.0.0
- gemfile: test/gemfiles/activerecord50.gemfile
env: ELASTICSEARCH_VERSION=5.6.10
- gemfile: test/gemfiles/activerecord42.gemfile
env: ELASTICSEARCH_VERSION=5.0.1
- gemfile... | - gemfile: test/gemfiles/activerecord50.gemfile
env: ELASTICSEARCH_VERSION=5.6.10
- gemfile: test/gemfiles/activerecord42.gemfile
env: ELASTICSEARCH_VERSION=5.0.1
- gemfile: test/gemfiles/mongoid6.gemfile
services:
- mongodb
- redis-server
- gemfile: test/gemfiles/mongo... | <|file_sep|>original/.travis.yml
- gemfile: test/gemfiles/activerecord51.gemfile
env: ELASTICSEARCH_VERSION=6.0.0
- gemfile: test/gemfiles/activerecord50.gemfile
env: ELASTICSEARCH_VERSION=5.6.10
- gemfile: test/gemfiles/activerecord42.gemfile
env: ELASTICSEARCH_VERSION=5.0.1
- gemfile... | 36e96d79f2cf841cb0798fbbf1d42b3d3b48e49d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/addon-events/events-kube-kafka.yml
maxSurge: 1
template:
metadata:
labels:
app: events
from: kube
to: kafka
spec:
containers:
- name: kafkacat-curl
image: solsson/kafkacat-curl@sha256:26b81296ba1d2c6b2cbce81c644b3b780ab5beab57bebbbb1... | maxSurge: 1
template:
metadata:
labels:
app: events
from: kube
to: kafka
spec:
containers:
- name: kafkacat-curl
image: solsson/kafkacat-curl@sha256:6ad61f2e6343359c3972d7a86815568c0a1d0560068134c5d702a152eb5123a0
command:
- /bin/bash
... | <|file_sep|>original/addon-events/events-kube-kafka.yml
maxSurge: 1
template:
metadata:
labels:
app: events
from: kube
to: kafka
spec:
containers:
- name: kafkacat-curl
image: solsson/kafkacat-curl@sha256:26b81296ba1d2c6b2cbce81c644b3b780ab5beab57bebbbb1... | 8d0d99302b80e960b592d1d8779b3c502815fc19 | addon-events/events-kube-kafka.yml | addon-events/events-kube-kafka.yml | YAML |
<|file_sep|>original/cpt/__init__.py
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return ... |
__version__ = '0.35.0-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... | <|file_sep|>original/cpt/__init__.py
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return ... | 776861eeed4244185592f8bda6dea4cb5540423d | cpt/__init__.py | cpt/__init__.py | Python |
<|file_sep|>original/packages/sbt.sh
<|file_sep|>current/packages/sbt.sh
<|file_sep|>updated/packages/sbt.sh | #!/bin/sh
# Install SBT, a build tool for Scale - http://www.scala-sbt.org/
# manual installation taken from http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
#
# You can either add this here, or configure the version on the environment tab
# of your project settings.
SBT_VERSION="0.13.8"
set -e
mkdir -p... | <|file_sep|>original/packages/sbt.sh
<|file_sep|>current/packages/sbt.sh
<|file_sep|>updated/packages/sbt.sh
#!/bin/sh
# Install SBT, a build tool for Scale - http://www.scala-sbt.org/
# manual installation taken from http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
#
# You can either add this here, or... | d283b672f178bcecdc2a3b9da9f710b05d09b480 | packages/sbt.sh | packages/sbt.sh | Shell |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby | 9e1f663588d0394fe691a8e3af9f860c82d91275 | .travis.yml | .travis.yml | YAML |
<|file_sep|>package.json.diff
original:
"version": "1.0.3",
updated:
"version": "1.0.4",
<|file_sep|>original/package.json
{
"name": "mlgproxy",
"version": "1.0.3",
"description": "A proxy to make your code look mlg",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test":... | {
"name": "mlgproxy",
"version": "1.0.4",
"description": "A proxy to make your code look mlg",
"runKitExampleFilename": "./tests/example.js",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "node ./examples/example.js"
},
"repository": {
"type": "git",
"u... | <|file_sep|>package.json.diff
original:
"version": "1.0.3",
updated:
"version": "1.0.4",
<|file_sep|>original/package.json
{
"name": "mlgproxy",
"version": "1.0.3",
"description": "A proxy to make your code look mlg",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test":... | 6d1c604a771b8b0b975223724bf5dac4d5d6e472 | package.json | package.json | JSON |
<|file_sep|>original/src/web/templates/history.hbs
<div class="body-content">
<table class="history-table">
<tr class="table-header">
<th>Date</th>
<th>Root Node</th>
<th>Pages</th>
</tr>
{{#each collection}}
<tr class="table-row">
<td>{{#parseDate}}{{id}}{{/parseDate}}</td>
... | <div class="body-content">
<table class="history-table">
<tr class="table-header">
<th>Date</th>
<th>Root Node</th>
<th>Pages</th>
</tr>
{{#each collection}}
<tr class="table-row" sessionId="{{id}}">
<td>{{#parseDate}}{{id}}{{/parseDate}}</td>
<td>{{tree.name}}</td>
... | <|file_sep|>original/src/web/templates/history.hbs
<div class="body-content">
<table class="history-table">
<tr class="table-header">
<th>Date</th>
<th>Root Node</th>
<th>Pages</th>
</tr>
{{#each collection}}
<tr class="table-row">
<td>{{#parseDate}}{{id}}{{/parseDate}}</td>
... | 5411722f17f9ef26244a47badab8c1c953c3a298 | src/web/templates/history.hbs | src/web/templates/history.hbs | Handlebars |
<|file_sep|>packages/fo/Folly.yaml.diff
original:
hash: b0c5222012d7e11f62e0aacf4bff7030a53d0f22ee2ca36e6aedfd5d15977bcc
updated:
hash: d0c5a539305629648036e8dd0b803d3e93e498e4d233d43454f5b1cee820036a
<|file_sep|>packages/fo/Folly.yaml.diff
original:
updated:
- '0.1.4.2'
- '0.1.4.3'
<|file_sep|>original/packages/fo/Fo... | all-versions:
- '0.1.0.0'
- '0.1.1.0'
- '0.1.2.0'
- '0.1.3.0'
- '0.1.4.0'
- '0.1.4.1'
- '0.1.4.2'
- '0.1.4.3'
author: Dillon Huff
latest: '0.1.4.3'
description-type: haddock
description: ! 'An implementation of first order logic in Haskell that
includes a library of modules for incorporating first
order logic int... | <|file_sep|>packages/fo/Folly.yaml.diff
original:
hash: b0c5222012d7e11f62e0aacf4bff7030a53d0f22ee2ca36e6aedfd5d15977bcc
updated:
hash: d0c5a539305629648036e8dd0b803d3e93e498e4d233d43454f5b1cee820036a
<|file_sep|>packages/fo/Folly.yaml.diff
original:
updated:
- '0.1.4.2'
- '0.1.4.3'
<|file_sep|>original/packages/fo/Fo... | afc53d83d761b02c6b49c64066c692f859a53735 | packages/fo/Folly.yaml | packages/fo/Folly.yaml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0-rc1
branches:
only:
- master
script: rake
env:
- DB=mysql
- DB=postgresql
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0-rc1
branches:
only:
- master
script: rake
env:
- DB=mysql
- D... | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
branches:
only:
- master
script: rake
env:
- DB=mysql
- DB=postgresql | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0-rc1
branches:
only:
- master
script: rake
env:
- DB=mysql
- DB=postgresql
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0-rc1
branches:
only:
- master
script: rake
env:
- DB=mysql
- D... | be73ee84a5dd4aebfb8ea61165353b0a8a73c239 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/ProvincesServiceProvider.php
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__.'/Config/thprovinces.php' => config_path('thprovinces.php'),
], 'config');
}
/**
... | {
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__.'/Config/thprovinces.php' => config_path('thprovinces.php'),
], 'thprovinces');
}
/**
* Register the application services.
*
... | <|file_sep|>original/src/ProvincesServiceProvider.php
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__.'/Config/thprovinces.php' => config_path('thprovinces.php'),
], 'config');
}
/**
... | 188ffa6ea09e87520b20eb3ef207f5271a1333ee | src/ProvincesServiceProvider.php | src/ProvincesServiceProvider.php | PHP |
<|file_sep|>original/.circleci/config.yml
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
general:
branches:
ignore:
- gh-pages
jobs:
test:
docker:
- image: circleci/node:8.9.4
steps:
- check... | - gh-pages
jobs:
test:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run: npm install
- run: npm test
build:
docker:
- image: circleci/node:8.9.4
steps:
- checkout
- run: npm run lint
workflows:
version: 2
test_build:
jobs: | <|file_sep|>original/.circleci/config.yml
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
general:
branches:
ignore:
- gh-pages
jobs:
test:
docker:
- image: circleci/node:8.9.4
steps:
- check... | 7fa461f4e55c7c427969bdd5494403094191c3ac | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
sudo: false
<|file_sep|>original/.travis.yml
language: ruby
cache: bundler
rvm:
- jruby-9.1.8.0
jdk:
- openjdk8
matrix:
include:
- os: linux
dist: trusty
sudo: false
- os: osx
osx_image: xcode8.3
install: bin/setup
script: ... | dist: trusty
sudo: false
language: ruby
cache: bundler
rvm:
- jruby-9.1.8.0
jdk:
- openjdk8
install: bin/setup
script: jruby -G -S rake | <|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
sudo: false
<|file_sep|>original/.travis.yml
language: ruby
cache: bundler
rvm:
- jruby-9.1.8.0
jdk:
- openjdk8
matrix:
include:
- os: linux
dist: trusty
sudo: false
- os: osx
osx_image: xcode8.3
install: bin/setup
script: ... | f2e13ece8204df9b25132336eaafe5501da3973c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
before_install:
- sudo apt-get install -y build-essential
- sh .ci/cross-tool.sh
install:
# /usr/bin/{gcc,clang} points to an older compiler on Ubuntu Linux.
- if [ "$CXX" = "g++" ]; then export CXX="g++-10" CC="gcc-10"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang... |
before_install:
- sudo apt-get install -y build-essential
- sh .ci/cross-tool.sh
install:
# /usr/bin/{gcc,clang} points to an older compiler on Ubuntu Linux.
- if [ "$CXX" = "g++" ]; then export CXX="g++-10" CC="gcc-10"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-10" CC="clang-10"; fi
script:... | <|file_sep|>original/.travis.yml
before_install:
- sudo apt-get install -y build-essential
- sh .ci/cross-tool.sh
install:
# /usr/bin/{gcc,clang} points to an older compiler on Ubuntu Linux.
- if [ "$CXX" = "g++" ]; then export CXX="g++-10" CC="gcc-10"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang... | b924c0080826a7f55abc14bba37007be9fe2727c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/smoke_test/mail_lookup.rb
<|file_sep|>current/smoke_test/mail_lookup.rb
<|file_sep|>updated/smoke_test/mail_lookup.rb | require 'mail'
require 'net/imap'
module SmokeTest
class MailLookup < Struct.new(:since_date)
SMOKE_TEST_EMAIL_ADDRESS = ENV.fetch 'SMOKE_TEST_EMAIL_ADDRESS'
SMOKE_TEST_EMAIL_PASSWORD = ENV.fetch 'SMOKE_TEST_EMAIL_PASSWORD'
def last_email_matching(expected_subject)
client.login SMOKE_TEST_EMAIL_A... | <|file_sep|>original/smoke_test/mail_lookup.rb
<|file_sep|>current/smoke_test/mail_lookup.rb
<|file_sep|>updated/smoke_test/mail_lookup.rb
require 'mail'
require 'net/imap'
module SmokeTest
class MailLookup < Struct.new(:since_date)
SMOKE_TEST_EMAIL_ADDRESS = ENV.fetch 'SMOKE_TEST_EMAIL_ADDRESS'
SMOKE_TES... | 267a9870e83f0f75d8a3f6ccbb4eb687c213e080 | smoke_test/mail_lookup.rb | smoke_test/mail_lookup.rb | Ruby |
<|file_sep|>original/tests/Model/EmailValidation/ParseTest.php
<|file_sep|>current/tests/Model/EmailValidation/ParseTest.php
<|file_sep|>updated/tests/Model/EmailValidation/ParseTest.php | <?php
namespace Mailgun\Tests\Model\EmailValidation;
use Mailgun\Model\EmailValidation\Parse;
class ParseTest extends \PHPUnit_Framework_TestCase
{
public function testParseConstructorWithValidData()
{
$data = [
'parsed' => ['parsed data'],
'unparseable' => ['unparseable data'... | <|file_sep|>original/tests/Model/EmailValidation/ParseTest.php
<|file_sep|>current/tests/Model/EmailValidation/ParseTest.php
<|file_sep|>updated/tests/Model/EmailValidation/ParseTest.php
<?php
namespace Mailgun\Tests\Model\EmailValidation;
use Mailgun\Model\EmailValidation\Parse;
class ParseTest extends \PHPUnit_F... | df7043343e873dbd92ae8d9e6b27548ee5a1b8ab | tests/Model/EmailValidation/ParseTest.php | tests/Model/EmailValidation/ParseTest.php | PHP |
<|file_sep|>original/tests/test-corpus.json
<|file_sep|>current/tests/test-corpus.json
<|file_sep|>updated/tests/test-corpus.json | {
"positive" : [
["the", 5],
["it", 3],
["good", 2],
["great", 1]
],
"negative" : [
["the", 5],
["it", 4],
["bad", 2],
["awful", 2]
]
} | <|file_sep|>original/tests/test-corpus.json
<|file_sep|>current/tests/test-corpus.json
<|file_sep|>updated/tests/test-corpus.json
{
"positive" : [
["the", 5],
["it", 3],
["good", 2],
["great", 1]
],
"negative" : [
["the", 5],
["it", 4],
["bad", 2],
... | 01c2909c11146163896674cc5943c53c881c68c5 | tests/test-corpus.json | tests/test-corpus.json | JSON |
<|file_sep|>original/README.md
# Purescript plugin for the IntelliJ Platform
[](https://travis-ci.org/intellij-purescript/intellij-purescript)
[](htt... | # Purescript plugin for the IntelliJ Platform
[](https://travis-ci.org/intellij-purescript/intellij-purescript)
[](https://opensource.o... | <|file_sep|>original/README.md
# Purescript plugin for the IntelliJ Platform
[](https://travis-ci.org/intellij-purescript/intellij-purescript)
[](htt... | d0d079fef008aca627265736115ef8841f3e9e77 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "8.5"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "8.5"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "8.5"
script:
- "npm run test"
- "npm run lint" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "8.5"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "8.5"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "8.5"
script:
- "npm run test"
- "npm run lint" | d12000f5e87102e9f0ba20bfd087118a21d81e43 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lita-xkcd.gemspec.diff
original:
spec.version = "0.0.4"
updated:
spec.version = "0.0.5"
<|file_sep|>lita-xkcd.gemspec.diff
original:
spec.add_runtime_dependency "lita", "~> 2.2"
updated:
spec.add_runtime_dependency "lita", ">= 2.2"
<|file_sep|>original/lita-xkcd.gemspec
spec.descriptio... | spec.email = ["mrdempsey@gmail.com"]
spec.description = %q{Adds a Lita handler to provide access to xkcd comics.}
spec.summary = %q{Adds a Lita handler to provide access to xkcd comics.}
spec.homepage = "https://github.com/webdestroya/lita-xkcd"
spec.license = "MIT"
spec.files ... | <|file_sep|>lita-xkcd.gemspec.diff
original:
spec.version = "0.0.4"
updated:
spec.version = "0.0.5"
<|file_sep|>lita-xkcd.gemspec.diff
original:
spec.add_runtime_dependency "lita", "~> 2.2"
updated:
spec.add_runtime_dependency "lita", ">= 2.2"
<|file_sep|>original/lita-xkcd.gemspec
spec.descriptio... | 5e37636aa10c99c87b1d1cbecfa2b3a32017ca23 | lita-xkcd.gemspec | lita-xkcd.gemspec | Ruby |
<|file_sep|>original/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
DEFAULT_HOST = "http://127.0.0.1"
def host!(host)
super
Capybara.app_host = host
end
def before_setup
host! DEFAULT_HOST
super
end
... |
def host!(host)
super
Capybara.app_host = host
end
def before_setup
host! DEFAULT_HOST
super
end
def after_teardown
take_failed_screenshot
Capybara.reset_sessions!
ensure
super
end
end
... | <|file_sep|>original/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
DEFAULT_HOST = "http://127.0.0.1"
def host!(host)
super
Capybara.app_host = host
end
def before_setup
host! DEFAULT_HOST
super
end
... | 5c4e1338e264ada11a8d5c8b7ebd71c534d98c2d | actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb | actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb | Ruby |
<|file_sep|>docs/gettingstarted/dev-tools.rst.diff
original:
#. Install packages from requirements_dev.txt:
.. code-block:: console
$ python -m pip install -r requirements_dev.txt
updated:
<|file_sep|>original/docs/gettingstarted/dev-tools.rst
Django debug toolbar
--------------------
`Django Debug Toolbar ... |
Django debug toolbar
--------------------
`Django Debug Toolbar <https://github.com/jazzband/django-debug-toolbar>`_ is turned on if Django is running in debug mode.
Silk
----
Silk's presence can be controled via environmental variable
``ENABLE_SILK``
Controls `django-silk <https://github.com/jazzband/django-sil... | <|file_sep|>docs/gettingstarted/dev-tools.rst.diff
original:
#. Install packages from requirements_dev.txt:
.. code-block:: console
$ python -m pip install -r requirements_dev.txt
updated:
<|file_sep|>original/docs/gettingstarted/dev-tools.rst
Django debug toolbar
--------------------
`Django Debug Toolbar ... | 53f0d8a60b728fc09a2bfa57135b6409cddad392 | docs/gettingstarted/dev-tools.rst | docs/gettingstarted/dev-tools.rst | reStructuredText |
<|file_sep|>original/.codeclimate.yml
<|file_sep|>current/.codeclimate.yml
<|file_sep|>updated/.codeclimate.yml | ---
engines:
brakeman:
enabled: true
checks:
dangerous_attr_accessible:
enabled: false
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
eslint:
enabled: true
fixme:
enabled: true
rubocop:
enabled: true
ratings: | <|file_sep|>original/.codeclimate.yml
<|file_sep|>current/.codeclimate.yml
<|file_sep|>updated/.codeclimate.yml
---
engines:
brakeman:
enabled: true
checks:
dangerous_attr_accessible:
enabled: false
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages... | 8cb88acc6c5cdb976b320f1821947122de4b45c9 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>original/osf/management/commands/update_preprint_share_dates.py
<|file_sep|>current/osf/management/commands/update_preprint_share_dates.py
<|file_sep|>updated/osf/management/commands/update_preprint_share_dates.py | from __future__ import unicode_literals
import logging
from django.core.management.base import BaseCommand
from scripts import utils as script_utils
from osf.models import PreprintService
from website.preprints.tasks import on_preprint_updated
logger = logging.getLogger(__name__)
def update_share_preprint_modified_... | <|file_sep|>original/osf/management/commands/update_preprint_share_dates.py
<|file_sep|>current/osf/management/commands/update_preprint_share_dates.py
<|file_sep|>updated/osf/management/commands/update_preprint_share_dates.py
from __future__ import unicode_literals
import logging
from django.core.management.base imp... | 07d2742da2b75d1c23451b76447acf5ec03f41b0 | osf/management/commands/update_preprint_share_dates.py | osf/management/commands/update_preprint_share_dates.py | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.