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/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js
element: 'rev_chart',
data: JSON.parse($("#rev-data").html()),
xkey: 'date',
ykeys: ['revenue'],
labels: [gettext('Total revenue')],
smooth: false,
resize: true,
... | element: 'rev_chart',
data: JSON.parse($("#rev-data").html()),
xkey: 'date',
ykeys: ['revenue'],
labels: [gettext('Total revenue')],
smooth: false,
resize: true,
fillOpacity: 0.3,
preUnits: $.trim($("#currency").html()) + ' '
});
new Morris... | <|file_sep|>original/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js
element: 'rev_chart',
data: JSON.parse($("#rev-data").html()),
xkey: 'date',
ykeys: ['revenue'],
labels: [gettext('Total revenue')],
smooth: false,
resize: true,
... | bcfd1dcf3b4854c867ab0db3b5f34a9d6a7f13c5 | src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js | src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js | JavaScript |
<|file_sep|>original/linkprojects.py
<|file_sep|>current/linkprojects.py
<|file_sep|>updated/linkprojects.py | import os
rootdir = '/Users/work/development/repositories/pet-projects'
languageDirectories = next(os.walk(rootdir))[1]
if not os.path.islink("all"):
os.symlink(rootdir, "all")
else:
print "Link to ", "all", "exists already"
for directory in languageDirectories:
if(directory.startswith(".")):
continue;
projec... | <|file_sep|>original/linkprojects.py
<|file_sep|>current/linkprojects.py
<|file_sep|>updated/linkprojects.py
import os
rootdir = '/Users/work/development/repositories/pet-projects'
languageDirectories = next(os.walk(rootdir))[1]
if not os.path.islink("all"):
os.symlink(rootdir, "all")
else:
print "Link to ", "all... | de52670eebc4d78aee94cdbabdcb31fcaad31fc3 | linkprojects.py | linkprojects.py | Python |
<|file_sep|>rails-i18n.gemspec.diff
original:
s.version = '0.3.0.beta'
updated:
s.version = '0.3.0.beta2'
<|file_sep|>original/rails-i18n.gemspec
# encoding: utf-8
Gem::Specification.new do |s|
s.name = "rails-i18n"
s.version = '0.3.0.beta'
s.authors = ["Rails I18n Group"]
s.ema... | # encoding: utf-8
Gem::Specification.new do |s|
s.name = "rails-i18n"
s.version = '0.3.0.beta2'
s.authors = ["Rails I18n Group"]
s.email = "rails-i18n@googlegroups.com"
s.homepage = "http://github.com/svenfuchs/rails-i18n"
s.summary = "Common locale data and translations f... | <|file_sep|>rails-i18n.gemspec.diff
original:
s.version = '0.3.0.beta'
updated:
s.version = '0.3.0.beta2'
<|file_sep|>original/rails-i18n.gemspec
# encoding: utf-8
Gem::Specification.new do |s|
s.name = "rails-i18n"
s.version = '0.3.0.beta'
s.authors = ["Rails I18n Group"]
s.ema... | 886283d5036a3f9e3de71c58f0c633d64c304e93 | rails-i18n.gemspec | rails-i18n.gemspec | Ruby |
<|file_sep|>original/app/views/proposals/_comments.html.erb
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@proposal), @comment_tree.comments, @comment_tree.comment_authors, @proposal.comments_count, @comment_flags] do %>
<section class="row-full comments">
<div class="row">
<div id... | <% cache [locale_and_user_status, @current_order, commentable_cache_key(@proposal), @comment_tree.comments, @comment_tree.comment_authors, @proposal.comments_count, @comment_flags, @proposal.closed?] do %>
<section class="row-full comments">
<div class="row">
<div id="comments" class="small-12 column">
... | <|file_sep|>original/app/views/proposals/_comments.html.erb
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@proposal), @comment_tree.comments, @comment_tree.comment_authors, @proposal.comments_count, @comment_flags] do %>
<section class="row-full comments">
<div class="row">
<div id... | 423d131d1ffd07e6132474dab952e7a9ccf2b028 | app/views/proposals/_comments.html.erb | app/views/proposals/_comments.html.erb | HTML+ERB |
<|file_sep|>original/scripts/select_gamma.py
<|file_sep|>current/scripts/select_gamma.py
<|file_sep|>updated/scripts/select_gamma.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 18 10:13:48 2013
@author: amnon
### 80 char max please
Look at all the gammaproteobacteria and select candidate contamination sequence
OTUs
output: a list of sorted gammaproteobacteria (or other) otuids, according to
mean frequency
"""
import... | <|file_sep|>original/scripts/select_gamma.py
<|file_sep|>current/scripts/select_gamma.py
<|file_sep|>updated/scripts/select_gamma.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 18 10:13:48 2013
@author: amnon
### 80 char max please
Look at all the gammaproteobacteria and select candidate conta... | 14aba0695514866439164f48fe1f66390719431f | scripts/select_gamma.py | scripts/select_gamma.py | Python |
<|file_sep|>original/.zuul.yaml
- project:
templates:
- openstack-cover-jobs
- openstack-lower-constraints-jobs
- openstack-python3-wallaby-jobs
- check-requirements
- release-notes-jobs-python3
- publish-openstack-docs-pti
- openstackclient-plugin-jobs
check:
job... | - project:
templates:
- openstack-cover-jobs
- openstack-lower-constraints-jobs
- openstack-python3-xena-jobs
- check-requirements
- release-notes-jobs-python3
- publish-openstack-docs-pti
- openstackclient-plugin-jobs
check:
jobs:
- muranoclient-functiona... | <|file_sep|>original/.zuul.yaml
- project:
templates:
- openstack-cover-jobs
- openstack-lower-constraints-jobs
- openstack-python3-wallaby-jobs
- check-requirements
- release-notes-jobs-python3
- publish-openstack-docs-pti
- openstackclient-plugin-jobs
check:
job... | 1145c4766196a1d5bd884474767f529a55b67e42 | .zuul.yaml | .zuul.yaml | YAML |
<|file_sep|>original/app/views/pages/env.html.slim
doctype html
html
head
title Server Environment
meta(http-equiv='Content-Type' content='text/html; charset=UTF-8')
body
h1 Environment Variables
table
thead
tr
td Name
td Value
tbody
- @environment.eac... | doctype html
html
head
title Server Environment
meta(http-equiv='Content-Type' content='text/html; charset=UTF-8')
body
h1 Rails Info
div = raw Rails::Info.to_html
h1 Environment Variables
table
thead
tr
td Name
td Value
tbody
- @environment.ea... | <|file_sep|>original/app/views/pages/env.html.slim
doctype html
html
head
title Server Environment
meta(http-equiv='Content-Type' content='text/html; charset=UTF-8')
body
h1 Environment Variables
table
thead
tr
td Name
td Value
tbody
- @environment.eac... | 31c01d22c748b945367dc5d534d0f64840aa554a | app/views/pages/env.html.slim | app/views/pages/env.html.slim | Slim |
<|file_sep|>spec/system/school_alert_subscription_events_spec.rb.diff
original:
let!(:user) { create(:user, school: school, role: :school_admin) }
updated:
let!(:user) { create(:user, role: :admin) }
<|file_sep|>spec/system/school_alert_subscription_events_spec.rb.diff
original:
updated:
click_on(school.na... | end
it 'should show a helpful message if no events' do
click_on(school.name)
click_on('Alert subscription events')
expect(page.has_content?('There are no alert subscription events')).to be true
end
it 'allows the user to send all pending emails' do
service.perform
click_on(school.name)
... | <|file_sep|>spec/system/school_alert_subscription_events_spec.rb.diff
original:
let!(:user) { create(:user, school: school, role: :school_admin) }
updated:
let!(:user) { create(:user, role: :admin) }
<|file_sep|>spec/system/school_alert_subscription_events_spec.rb.diff
original:
updated:
click_on(school.na... | da3c93bebcaa085df3640b50a1db42f10fe48121 | spec/system/school_alert_subscription_events_spec.rb | spec/system/school_alert_subscription_events_spec.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- ruby-head
<|file_sep|>original/.travis.yml
only:
- master
install:
- "bundle install --retry 3 --jobs 8"
gemfile:
- gemfiles/rails3.2.gemfile
- gemfiles/rails4.1.gemfile
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.0.gemfile
matrix:
fast_finish: tr... | - master
install:
- "bundle install --retry 3 --jobs 8"
gemfile:
- gemfiles/rails3.2.gemfile
- gemfiles/rails4.1.gemfile
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.0.gemfile
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
- rvm: 2.1
gemfile: gemfiles/rails5.0.gemfile
# ... | <|file_sep|>.travis.yml.diff
original:
updated:
- ruby-head
<|file_sep|>original/.travis.yml
only:
- master
install:
- "bundle install --retry 3 --jobs 8"
gemfile:
- gemfiles/rails3.2.gemfile
- gemfiles/rails4.1.gemfile
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.0.gemfile
matrix:
fast_finish: tr... | 79b232434c2382f9f131c7f1a159964387eb9721 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/main/groovy/org/kepennar/aproc/complicatebusiness/ComplicateBusinessService.java.diff
original:
return new Task(sort2(t.getName()), sort2(t.getDescription()));
updated:
return new Task(sort(t.getName()), sort(t.getDescription()));
<|file_sep|>original/src/main/groovy/org/kepennar/aproc/complicat... | @Inject
public ComplicateBusinessService(TaskRepository taskRepository) {
this.taskRepository = taskRepository;
}
public List<Task> getAllTransformedTasks() {
return taskRepository.findAll().parallelStream()
.map(t -> {
return new Task(sort(t.getName()), sort(t.getDescription()));
})
.collect(toL... | <|file_sep|>src/main/groovy/org/kepennar/aproc/complicatebusiness/ComplicateBusinessService.java.diff
original:
return new Task(sort2(t.getName()), sort2(t.getDescription()));
updated:
return new Task(sort(t.getName()), sort(t.getDescription()));
<|file_sep|>original/src/main/groovy/org/kepennar/aproc/complicat... | 261a49a609cf3498c725b07ab94650dd30a1a7e5 | src/main/groovy/org/kepennar/aproc/complicatebusiness/ComplicateBusinessService.java | src/main/groovy/org/kepennar/aproc/complicatebusiness/ComplicateBusinessService.java | Java |
<|file_sep|>original/.elasticbeanstalk/config.yml
branch-defaults:
aws-eb-master:
environment: prod-2-10-1
aws-eb-test:
environment: test-2-9-6
group_suffix: null
global:
application_name: energy-sparks
branch: null
default_ec2_keyname: EnergySparksTestEC2
default_platform: Ruby 2.5 (Puma)
def... | branch-defaults:
aws-eb-master:
environment: prod-2-10-1
aws-eb-test:
environment: test-2-11-1
group_suffix: null
global:
application_name: energy-sparks
branch: null
default_ec2_keyname: EnergySparksTestEC2
default_platform: Ruby 2.5 (Puma)
default_region: eu-west-2
include_git_submodules: ... | <|file_sep|>original/.elasticbeanstalk/config.yml
branch-defaults:
aws-eb-master:
environment: prod-2-10-1
aws-eb-test:
environment: test-2-9-6
group_suffix: null
global:
application_name: energy-sparks
branch: null
default_ec2_keyname: EnergySparksTestEC2
default_platform: Ruby 2.5 (Puma)
def... | bef4f8434eb0aa20dd04d5bcfab55d8b7fe08364 | .elasticbeanstalk/config.yml | .elasticbeanstalk/config.yml | YAML |
<|file_sep|>original/bin/worker.js
#!/usr/bin/gjs
// Runs a task in a separate process.
const path = /^.*?@(.*):/.exec(new Error().stack)[1];
const dirname = imports.gi.Gio.File.new_for_path(path).get_parent().get_parent().get_path();
imports.searchPath.push(dirname);
new imports.src.app.Gjs.Require.Require().require(... | #!/usr/bin/gjs
// Runs a task in a separate process.
const path = /^.*?@(.*):/.exec(new Error().stack)[1];
const modules = imports.gi.Gio.File.new_for_path(path).get_parent().get_parent().get_parent().get_path();
imports.searchPath.push(modules);
const dirname = imports.gi.Gio.File.new_for_path(path).get_parent().get_... | <|file_sep|>original/bin/worker.js
#!/usr/bin/gjs
// Runs a task in a separate process.
const path = /^.*?@(.*):/.exec(new Error().stack)[1];
const dirname = imports.gi.Gio.File.new_for_path(path).get_parent().get_parent().get_path();
imports.searchPath.push(dirname);
new imports.src.app.Gjs.Require.Require().require(... | b2b03e5bad945a9f08a3b75a34460a9f94c12ab9 | bin/worker.js | bin/worker.js | JavaScript |
<|file_sep|>original/ckanext/doi/theme/templates/doi/snippets/resource_citation.html
{% block citation %}
<section class="module additional-info">
<div class="module-content citation">
<h3>{{ _('Cite this as') }}</h3>
<div id="citation-string" class="citation-string">
... |
{% block citation %}
<section class="module additional-info">
<div class="module-content citation">
<h3>{{ _('Cite this as') }}</h3>
<div id="citation-string" class="citation-string">
{% block default_citation_string %}
{{ pkg_dict['author'] }} ({{ h... | <|file_sep|>original/ckanext/doi/theme/templates/doi/snippets/resource_citation.html
{% block citation %}
<section class="module additional-info">
<div class="module-content citation">
<h3>{{ _('Cite this as') }}</h3>
<div id="citation-string" class="citation-string">
... | 098537e422af0dc350508cad2f1cd0b12e3aff8f | ckanext/doi/theme/templates/doi/snippets/resource_citation.html | ckanext/doi/theme/templates/doi/snippets/resource_citation.html | HTML |
<|file_sep|>original/requirements/doc.txt
-r ./base.txt
docutils==0.14
sphinx==1.7.3
alagitpull==0.0.20
releases==1.4.1
aafigure==0.6
sphinxcontrib-napoleon==0.6.1
<|file_sep|>current/requirements/doc.txt
-r ./base.txt
docutils==0.14
sphinx==1.7.3
alagitpull==0.0.20
releases==1.4.1
aafigure==0.6
sphinxcontrib-napoleon=... | -r ./base.txt
docutils==0.14
sphinx==1.7.4
alagitpull==0.0.20
releases==1.4.1
aafigure==0.6
sphinxcontrib-napoleon==0.6.1 | <|file_sep|>original/requirements/doc.txt
-r ./base.txt
docutils==0.14
sphinx==1.7.3
alagitpull==0.0.20
releases==1.4.1
aafigure==0.6
sphinxcontrib-napoleon==0.6.1
<|file_sep|>current/requirements/doc.txt
-r ./base.txt
docutils==0.14
sphinx==1.7.3
alagitpull==0.0.20
releases==1.4.1
aafigure==0.6
sphinxcontrib-napoleon=... | 7a81104b5e91bfed9b7d35a2b3987805cb5b870b | requirements/doc.txt | requirements/doc.txt | Text |
<|file_sep|>original/ghost/job-manager/package.json
"lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@sinonjs/fake-timers": "6.0.1",
"date-fns": "2.17.0",
"delay": "5.0.0",
"mocha": "8.3.2",
"should": "13.2.3",
"sinon": "9.2.4"
},
"dependencies": {
... | "lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@sinonjs/fake-timers": "6.0.1",
"date-fns": "2.17.0",
"delay": "5.0.0",
"mocha": "8.3.2",
"should": "13.2.3",
"sinon": "9.2.4"
},
"dependencies": {
"@breejs/later": "4.0.2",
"bree": "6.2.0",
"... | <|file_sep|>original/ghost/job-manager/package.json
"lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@sinonjs/fake-timers": "6.0.1",
"date-fns": "2.17.0",
"delay": "5.0.0",
"mocha": "8.3.2",
"should": "13.2.3",
"sinon": "9.2.4"
},
"dependencies": {
... | 8075074e9ab6e38151846e6da906d2f7d27c0aa1 | ghost/job-manager/package.json | ghost/job-manager/package.json | JSON |
<|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.5.0 # Python linting
mypy==0.580 # Static typing
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.5.0 ... | # Testing
coverage==4.5.1 # Test coverage
flake8==3.5.0 # Python linting
mypy==0.600 # Static typing | <|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.5.0 # Python linting
mypy==0.580 # Static typing
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.5.0 ... | e8f0049491a1efcac28e9fbaa471f19033536d3e | requirements-test.txt | requirements-test.txt | Text |
<|file_sep|>lib/Target/AVR/LLVMBuild.txt.diff
original:
required_libraries = AsmPrinter CodeGen Core MC AVRInfo SelectionDAG Support Target
updated:
required_libraries = AsmPrinter CodeGen Core MC AVRAsmPrinter AVRDesc AVRInfo SelectionDAG Support Target
<|file_sep|>original/lib/Target/AVR/LLVMBuild.txt
;
; http://ll... | ; http://llvm.org/docs/LLVMBuild.html
;
;===------------------------------------------------------------------------===;
[common]
subdirectories = AsmParser InstPrinter MCTargetDesc TargetInfo
[component_0]
type = TargetGroup
name = AVR
parent = Target
has_asmprinter = 1
has_asmparser = 1
[component_1]
type = Libr... | <|file_sep|>lib/Target/AVR/LLVMBuild.txt.diff
original:
required_libraries = AsmPrinter CodeGen Core MC AVRInfo SelectionDAG Support Target
updated:
required_libraries = AsmPrinter CodeGen Core MC AVRAsmPrinter AVRDesc AVRInfo SelectionDAG Support Target
<|file_sep|>original/lib/Target/AVR/LLVMBuild.txt
;
; http://ll... | 713cee592ec9a28028708895b5e62715294d094d | lib/Target/AVR/LLVMBuild.txt | lib/Target/AVR/LLVMBuild.txt | Text |
<|file_sep|>original/synapse/storage/schema/delta/18/server_keys_bigger_ints.sql
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CREATE TABLE IF NOT EXISTS new_server_keys_json (
server_name TEXT NOT NULL, -- Server name.
key_id TEXT NOT NULL, -- Re... | * See the License for the specific language governing permissions and
* limitations under the License.
*/
CREATE TABLE IF NOT EXISTS new_server_keys_json (
server_name TEXT NOT NULL, -- Server name.
key_id TEXT NOT NULL, -- Requested key id.
from_server TEXT NOT NULL, -- Which server the keys were fetc... | <|file_sep|>original/synapse/storage/schema/delta/18/server_keys_bigger_ints.sql
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CREATE TABLE IF NOT EXISTS new_server_keys_json (
server_name TEXT NOT NULL, -- Server name.
key_id TEXT NOT NULL, -- Re... | 1c7912751ea53e115722bb81383734f06d2aa69d | synapse/storage/schema/delta/18/server_keys_bigger_ints.sql | synapse/storage/schema/delta/18/server_keys_bigger_ints.sql | SQL |
<|file_sep|>original/tox.ini
django{17,18}-py{27,32,33,34},
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
commands = {toxinidir}/manage.py test
deps =
-e{toxinidir}
-r{toxinidir}/requirements.txt
django17: djan... |
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
commands = {toxinidir}/manage.py test
deps =
-e{toxinidir}
-r{toxinidir}/requirements.txt
django17: django>=1.7,<1.8
django18: django>=1.8,<1.9
psycopg2
py3... | <|file_sep|>original/tox.ini
django{17,18}-py{27,32,33,34},
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
commands = {toxinidir}/manage.py test
deps =
-e{toxinidir}
-r{toxinidir}/requirements.txt
django17: djan... | a413206e56f09dc8b0a89e420506fc050013c9db | tox.ini | tox.ini | INI |
<|file_sep|>original/tests/requirements.txt
black==19.3b0
coverage==4.5.3
docutils==0.15
flake8==3.7.8
isort==4.3.21
pycodestyle==2.5.0
pyflakes==2.1.1
pytest==5.0.1
pytest-aiohttp==0.3.0
pytest-cov==2.7.1
pytest-mock==1.10.4
pytest-sugar==0.9.2
pytest-toolbox==0.4
pytest-xdist==1.29.0
<|file_sep|>current/tests/require... | black==19.3b0
coverage==4.5.3
docutils==0.15.2
flake8==3.7.8
isort==4.3.21
pycodestyle==2.5.0
pyflakes==2.1.1
pytest==5.0.1
pytest-aiohttp==0.3.0
pytest-cov==2.7.1
pytest-mock==1.10.4
pytest-sugar==0.9.2
pytest-toolbox==0.4
pytest-xdist==1.29.0 | <|file_sep|>original/tests/requirements.txt
black==19.3b0
coverage==4.5.3
docutils==0.15
flake8==3.7.8
isort==4.3.21
pycodestyle==2.5.0
pyflakes==2.1.1
pytest==5.0.1
pytest-aiohttp==0.3.0
pytest-cov==2.7.1
pytest-mock==1.10.4
pytest-sugar==0.9.2
pytest-toolbox==0.4
pytest-xdist==1.29.0
<|file_sep|>current/tests/require... | 00033affc81f104095ab36a72a677e2ec03c8d09 | tests/requirements.txt | tests/requirements.txt | Text |
<|file_sep|>original/dev-requirements.txt
coverage==4.4.2
jedi==0.11.1
mypy==0.560
pylint==1.8.2
pytest==3.3.2
pytest-cov==2.5.1
sphinx==1.6.6
sphinx-rtd-theme==0.2.4
tox==2.9.1
<|file_sep|>current/dev-requirements.txt
coverage==4.4.2
jedi==0.11.1
mypy==0.560
pylint==1.8.2
pytest==3.3.2
pytest-cov==2.5.1
sphinx==1.6.6
... | coverage==4.4.2
jedi==0.11.1
mypy==0.560
pylint==1.8.2
pytest==3.4.0
pytest-cov==2.5.1
sphinx==1.6.6
sphinx-rtd-theme==0.2.4
tox==2.9.1 | <|file_sep|>original/dev-requirements.txt
coverage==4.4.2
jedi==0.11.1
mypy==0.560
pylint==1.8.2
pytest==3.3.2
pytest-cov==2.5.1
sphinx==1.6.6
sphinx-rtd-theme==0.2.4
tox==2.9.1
<|file_sep|>current/dev-requirements.txt
coverage==4.4.2
jedi==0.11.1
mypy==0.560
pylint==1.8.2
pytest==3.3.2
pytest-cov==2.5.1
sphinx==1.6.6
... | b63f9e365bd9258d2d5efdbdf796b7cc26bc813f | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>src/Dots.js.diff
original:
width: 10,
height: 10,
updated:
width: 8,
height: 8,
<|file_sep|>original/src/Dots.js
import React, { Component, PropTypes } from 'react'
import { Paper } from 'material-ui'
const styles = {
dot: {
width: 10,
height: 10,
background: '#fff',
margi... | import React, { Component, PropTypes } from 'react'
import { Paper } from 'material-ui'
const styles = {
dot: {
width: 8,
height: 8,
background: '#fff',
margin: '0 4px',
float: 'left',
transition: 'all 400ms cubic-bezier(0.4, 0.0, 0.2, 1)'
}
}
export function Dots ({ count, index, style = ... | <|file_sep|>src/Dots.js.diff
original:
width: 10,
height: 10,
updated:
width: 8,
height: 8,
<|file_sep|>original/src/Dots.js
import React, { Component, PropTypes } from 'react'
import { Paper } from 'material-ui'
const styles = {
dot: {
width: 10,
height: 10,
background: '#fff',
margi... | 8fc17bba7d60eabba254101183b7a6b8531af0e0 | src/Dots.js | src/Dots.js | JavaScript |
<|file_sep|>go/cmd/rulesctl/cmd/list.go.diff
original:
out = rules.Find(listOptName)
if listOptNamesOnly && out != nil {
updated:
rule := rules.Find(listOptName)
if listOptNamesOnly && rule != nil {
<|file_sep|>original/go/cmd/rulesctl/cmd/list.go
out = []string{}
for _, r := range rules.CopyUnderly... | out = append(out.([]string), r.Name)
}
} else {
out = rules
}
} else {
rule := rules.Find(listOptName)
if listOptNamesOnly && rule != nil {
out = listOptName
} else if listOptNamesOnly {
out = ""
} else {
out = rule
}
}
common.MustPrintJSON(out)
}
return listCmd
} | <|file_sep|>go/cmd/rulesctl/cmd/list.go.diff
original:
out = rules.Find(listOptName)
if listOptNamesOnly && out != nil {
updated:
rule := rules.Find(listOptName)
if listOptNamesOnly && rule != nil {
<|file_sep|>original/go/cmd/rulesctl/cmd/list.go
out = []string{}
for _, r := range rules.CopyUnderly... | f15e7a6c1626b77462f266ea7e6f94384ce5ef9b | go/cmd/rulesctl/cmd/list.go | go/cmd/rulesctl/cmd/list.go | Go |
<|file_sep|>original/src/bd/settings/VmSettings.java
DYNAMIC_METRICS = s.dynamicMetricsEnabled();
}
private static Settings getSettings() {
String className = System.getProperty("bd.settings");
if (className == null) {
return new AllDisabled();
}
try {
Class<?> clazz = VmSettings.c... | DYNAMIC_METRICS = s.dynamicMetricsEnabled();
}
private static Settings getSettings() {
String className = System.getProperty("bd.settings");
if (className == null) {
return new AllDisabled();
}
try {
Class<?> clazz = Class.forName(className);
return (Settings) clazz.newInstan... | <|file_sep|>original/src/bd/settings/VmSettings.java
DYNAMIC_METRICS = s.dynamicMetricsEnabled();
}
private static Settings getSettings() {
String className = System.getProperty("bd.settings");
if (className == null) {
return new AllDisabled();
}
try {
Class<?> clazz = VmSettings.c... | a7409f648898d312f7ef7c61ffd85df5a66165d2 | src/bd/settings/VmSettings.java | src/bd/settings/VmSettings.java | Java |
<|file_sep|>original/public/bootstrap.php
<?php
require_once __DIR__ . '/../vendor/PopPHPFramework/src/Pop/Loader/Autoloader.php';
use Pop\Loader\Autoloader;
// Instantiate the autoloader object.
$autoloader = Autoloader::factory();
$autoloader->splAutoloadRegister();
/*
* Add any optional custom loader features he... | <?php
require_once __DIR__ . '/../vendor/PopPHPFramework/src/Pop/Loader/Autoloader.php';
use Pop\Loader\Autoloader;
// Instantiate the autoloader object.
$autoloader = Autoloader::factory();
$autoloader->splAutoloadRegister();
/*
* Add any optional custom loader features here, such as,
* registering a vendor libra... | <|file_sep|>original/public/bootstrap.php
<?php
require_once __DIR__ . '/../vendor/PopPHPFramework/src/Pop/Loader/Autoloader.php';
use Pop\Loader\Autoloader;
// Instantiate the autoloader object.
$autoloader = Autoloader::factory();
$autoloader->splAutoloadRegister();
/*
* Add any optional custom loader features he... | 37e5d8efa455e45b803e4e35a5b9177948e98271 | public/bootstrap.php | public/bootstrap.php | PHP |
<|file_sep|>original/config/deploy.rb
# Deploy your application to TextDrive with...
# cap deploy
#
# Or rollback with...
# cap rollback
role :app, 'teamsquad.com'
role :web, 'teamsquad.com'
role :db, 'teamsquad.com'
set :application, 'teamsquad'
set :repository,"http://teamsquad.com/svn/projects/#{application}/tr... | # Deploy your application to TextDrive with...
# cap deploy
#
# Or rollback with...
# cap rollback
role :app, 'teamsquad.com', :primary => true
role :web, 'teamsquad.com', :primary => true
role :db, 'teamsquad.com', :primary => true
set :application, 'teamsquad'
set :repository,"http://teamsquad.com/svn/projects/#... | <|file_sep|>original/config/deploy.rb
# Deploy your application to TextDrive with...
# cap deploy
#
# Or rollback with...
# cap rollback
role :app, 'teamsquad.com'
role :web, 'teamsquad.com'
role :db, 'teamsquad.com'
set :application, 'teamsquad'
set :repository,"http://teamsquad.com/svn/projects/#{application}/tr... | 5c8d2441a2230a27434104e549e227e32053a787 | config/deploy.rb | config/deploy.rb | Ruby |
<|file_sep|>original/tests/helpers/acceptance.coffee
`import startApp from '../helpers/start-app';`
acceptance = (suiteName) ->
App = null
suite "Acceptance: #{suiteName}",
setup: -> App = startApp()
teardown: -> Ember.run(App, 'destroy')
`export default acceptance;`
<|file_sep|>current/tests/helpers/acc... | `import startApp from './start-app';`
acceptance = (suiteName) ->
App = null
suite "Acceptance: #{suiteName}",
setup: -> App = startApp()
teardown: -> Ember.run(App, 'destroy')
`export default acceptance;` | <|file_sep|>original/tests/helpers/acceptance.coffee
`import startApp from '../helpers/start-app';`
acceptance = (suiteName) ->
App = null
suite "Acceptance: #{suiteName}",
setup: -> App = startApp()
teardown: -> Ember.run(App, 'destroy')
`export default acceptance;`
<|file_sep|>current/tests/helpers/acc... | b94a74d99752bf4c7916cd0ca23be101350fe922 | tests/helpers/acceptance.coffee | tests/helpers/acceptance.coffee | CoffeeScript |
<|file_sep|>original/README.md
# beer-tinder-app
Lets you select beers like tinder <br/>
/statistics shows how often you have voted in favor or against a beer!
# Setup
gem install sinatra <br/>
ruby beer-tinder-app.rb
# TODO
1.) Add two post request in public/js/script.js to update likes/dislikes in db <br/>
2.) Impl... | # beer-tinder-app
Lets Markus evaluate beers in tinder style <br/>
Soon deployed at www.markus-trinkt.de <br/>
www.markus-trinkt.de/statistics shows how often he has voted in favor or against a beer!
# Setup
gem install sinatra <br/>
ruby beer-tinder-app.rb
# TODO
1.) Add two post request in public/js/script.js to up... | <|file_sep|>original/README.md
# beer-tinder-app
Lets you select beers like tinder <br/>
/statistics shows how often you have voted in favor or against a beer!
# Setup
gem install sinatra <br/>
ruby beer-tinder-app.rb
# TODO
1.) Add two post request in public/js/script.js to update likes/dislikes in db <br/>
2.) Impl... | b156b430f648706ce143f5850382bf6ef1054541 | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "unicodeveloper",
"email": "prosperotemuyiwa@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.2.*",
"sinergi/browser-detector": "6.0.... | "license": "MIT",
"authors": [
{
"name": "unicodeveloper",
"email": "prosperotemuyiwa@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.2 - 5.3",
"sinergi/browser-detector": "6.0.*"
},
"require-dev": {
... | <|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "unicodeveloper",
"email": "prosperotemuyiwa@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.2.*",
"sinergi/browser-detector": "6.0.... | e59fd26f3af6ef8e327c0d830ef18f33ddf618fd | composer.json | composer.json | JSON |
<|file_sep|>original/src/Models/OpportunityContact/Base.js
entityName: 'OpportunityContact',
entityDisplayName: resource.entityDisplayName,
entityDisplayNamePlural: resource.entityDisplayNamePlural,
iconClass: 'fa fa-user fa-lg',
resourceKind: 'opportunityContacts',
modelName: MODEL_NAMES.OPPORTUNITYCONTACT... | entityName: 'OpportunityContact',
entityDisplayName: resource.entityDisplayName,
entityDisplayNamePlural: resource.entityDisplayNamePlural,
iconClass: 'fa fa-user fa-lg',
resourceKind: 'opportunityContacts',
modelName: MODEL_NAMES.OPPORTUNITYCONTACT,
security: 'Entities/Contact/View',
createPicklists: ... | <|file_sep|>original/src/Models/OpportunityContact/Base.js
entityName: 'OpportunityContact',
entityDisplayName: resource.entityDisplayName,
entityDisplayNamePlural: resource.entityDisplayNamePlural,
iconClass: 'fa fa-user fa-lg',
resourceKind: 'opportunityContacts',
modelName: MODEL_NAMES.OPPORTUNITYCONTACT... | ce59feddb4e858c0c430484de7628d6ec98fff1e | src/Models/OpportunityContact/Base.js | src/Models/OpportunityContact/Base.js | JavaScript |
<|file_sep|>original/Neos.Http.Factories/composer.json
"name": "neos/http-factories",
"type": "neos-framework",
"description": "PSR-17 HTTP Factories",
"homepage": "http://flow.neos.io",
"license": [
"MIT"
],
"require": {
"php": "^7.1 || ^8.0",
"psr/http-factory": "^1... | "name": "neos/http-factories",
"type": "neos-framework",
"description": "PSR-17 HTTP Factories",
"homepage": "http://flow.neos.io",
"license": [
"MIT"
],
"require": {
"php": "^7.1 || ^8.0",
"psr/http-factory": "^1.0",
"guzzlehttp/psr7": "^1.7, !=1.8.0"
},
... | <|file_sep|>original/Neos.Http.Factories/composer.json
"name": "neos/http-factories",
"type": "neos-framework",
"description": "PSR-17 HTTP Factories",
"homepage": "http://flow.neos.io",
"license": [
"MIT"
],
"require": {
"php": "^7.1 || ^8.0",
"psr/http-factory": "^1... | 5f938c74efe42938136be7a3cd7b835f0bf6ff00 | Neos.Http.Factories/composer.json | Neos.Http.Factories/composer.json | JSON |
<|file_sep|>original/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java
<|file_sep|>current/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java
<|file_sep|>updated/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java | package io.github.xxyy.quietcord.filter;
import org.junit.Test;
import java.util.logging.Filter;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class PropagatingFilterT... | <|file_sep|>original/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java
<|file_sep|>current/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java
<|file_sep|>updated/src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java
package io.github.xxyy.quietcord.filte... | 609d01b2d128ca825632b445f2def2f2a96e3b1b | src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java | src/test/java/io/github/xxyy/quietcord/filter/PropagatingFilterTest.java | Java |
<|file_sep|>trex/parsers.py.diff
original:
from io import TextIOWrapper
updated:
from io import TextIOWrapper, BytesIO
from django.core.handlers.wsgi import WSGIRequest
<|file_sep|>original/trex/parsers.py
class PlainTextParser(BaseParser):
media_type = "text/plain"
def parse(self, stream, media_type=None, p... |
class PlainTextParser(BaseParser):
media_type = "text/plain"
def parse(self, stream, media_type=None, parser_context=None):
print "Running PlainTextParser"
charset = self.get_charset(media_type)
if charset:
if isinstance(stream, WSGIRequest):
stream = Byt... | <|file_sep|>trex/parsers.py.diff
original:
from io import TextIOWrapper
updated:
from io import TextIOWrapper, BytesIO
from django.core.handlers.wsgi import WSGIRequest
<|file_sep|>original/trex/parsers.py
class PlainTextParser(BaseParser):
media_type = "text/plain"
def parse(self, stream, media_type=None, p... | 4c1c902010096d6d87d93b865d9c68794da51414 | trex/parsers.py | trex/parsers.py | Python |
<|file_sep|>original/docs/requirements.txt
sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.1
-e .
<|file_sep|>current/docs/requirements.txt
sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.1
-e .
<|file_sep|>updated/docs/requirements.txt | sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.2
-e . | <|file_sep|>original/docs/requirements.txt
sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.1
-e .
<|file_sep|>current/docs/requirements.txt
sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.1
-e .
<|file_sep|>updated/docs/requirements.txt
sphinx>=1.3
sphinx-rtd-theme==0.2.4
Django==1.11.2
-e . | 56cc7f56c1195d359cd2f734b55c86d0efc64728 | docs/requirements.txt | docs/requirements.txt | Text |
<|file_sep|>original/backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws ... | }
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
chain.doFilter(request, response);
addSameSiteCookieAttribute((HttpServletResponse) response);
addAuthorizatinAttribute((HttpServletResponse) response);
... | <|file_sep|>original/backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws ... | 3c7cc7a27511760884e675afb28f717641267bbe | backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java | backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java | Java |
<|file_sep|>WCF/Shared/Implementation/WcfExtensions.cs.diff
original:
if ( operation.HasIncomingMessageProperty(HttpRequestMessageProperty.Name) )
updated:
try
<|file_sep|>WCF/Shared/Implementation/WcfExtensions.cs.diff
original:
return (HttpRequestMessageProperty)operation.GetIn... | } catch ( ObjectDisposedException )
{
// WCF message is already disposed, just avoid it
}
return null;
}
public static HttpResponseMessageProperty GetHttpResponseHeaders(this IOperationContext operation)
{
try
... | <|file_sep|>WCF/Shared/Implementation/WcfExtensions.cs.diff
original:
if ( operation.HasIncomingMessageProperty(HttpRequestMessageProperty.Name) )
updated:
try
<|file_sep|>WCF/Shared/Implementation/WcfExtensions.cs.diff
original:
return (HttpRequestMessageProperty)operation.GetIn... | 0034c7a8eef8928961a70c3cf219a99a78167267 | WCF/Shared/Implementation/WcfExtensions.cs | WCF/Shared/Implementation/WcfExtensions.cs | C# |
<|file_sep|>features/step_definitions/setup_steps.rb.diff
original:
# Using smackaho.st to give us automatic resolution to localhost
updated:
# Using ocolocalhost.com to give us automatic resolution to localhost
<|file_sep|>original/features/step_definitions/setup_steps.rb
Given /^the application is set up$/ do
#... | Given /^the application is set up$/ do
# Using ocolocalhost.com to give us automatic resolution to localhost
# N.B. This means some Cucumber scenarios will fail if your machine
# isn't connected to the internet. We shoud probably fix this.
#
# Port needs to be saved for Selenium tests (because our app code c... | <|file_sep|>features/step_definitions/setup_steps.rb.diff
original:
# Using smackaho.st to give us automatic resolution to localhost
updated:
# Using ocolocalhost.com to give us automatic resolution to localhost
<|file_sep|>original/features/step_definitions/setup_steps.rb
Given /^the application is set up$/ do
#... | d432bfaaa07094fed4c021116fe5dc4c67239007 | features/step_definitions/setup_steps.rb | features/step_definitions/setup_steps.rb | Ruby |
<|file_sep|>Readme.md.diff
original:
updated:
[](https://buildkite.com/new)
<|file_sep|>original/Readme.md
# Buildkite Bash Example
Welcome! This is an example project you can use to get your first green build running on [Buildkite](https://buildkite.com/).
It co... | # Buildkite Bash Example
[](https://buildkite.com/new)
Welcome! This is an example project you can use to get your first green build running on [Buildkite](https://buildkite.com/).
It contains an example bash script, [example_script.sh](example_script.sh), which s... | <|file_sep|>Readme.md.diff
original:
updated:
[](https://buildkite.com/new)
<|file_sep|>original/Readme.md
# Buildkite Bash Example
Welcome! This is an example project you can use to get your first green build running on [Buildkite](https://buildkite.com/).
It co... | 01943ddb9c99454386f135369892b65d6b18ec51 | Readme.md | Readme.md | Markdown |
<|file_sep|>original/MGen/configs/settings.pl
# Settings of MGen
# This file is loaded on MGen startup and automatically saved on every setting change
Algorithm = 2001 # Id of the currently selected algorithm
Config = Test # Name of configuration file for selected algorithm
MIDI_OUT = [DISABLE PLAYBACK] # Name of MIDI... | # Settings of MGen
# This file is loaded on MGen startup and automatically saved on every setting change
Algorithm = 121 # Id of the currently selected algorithm
Config = Test # Name of configuration file for selected algorithm
MIDI_OUT = [DISABLE PLAYBACK] # Name of MIDI device used for playing notes
Horizontal_zoom ... | <|file_sep|>original/MGen/configs/settings.pl
# Settings of MGen
# This file is loaded on MGen startup and automatically saved on every setting change
Algorithm = 2001 # Id of the currently selected algorithm
Config = Test # Name of configuration file for selected algorithm
MIDI_OUT = [DISABLE PLAYBACK] # Name of MIDI... | 67dfa49898b5ea967de8d4017079a64e255a3c22 | MGen/configs/settings.pl | MGen/configs/settings.pl | Perl |
<|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md | # fb-events-widget
An embeddable widget to display a feed of upcoming Facebook events. This project
is built with [Silex][1].
## Setup
### Submodule Initialization
$ git submodule update --init --recursive
### Configuration
The `src/` directory includes a `parameters.ini.dist` file, which should be
copied to ... | <|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md
# fb-events-widget
An embeddable widget to display a feed of upcoming Facebook events. This project
is built with [Silex][1].
## Setup
### Submodule Initialization
$ git submodule update --init --recursive
### Configur... | faccfabccd5795dc69ceb84c03b453fc4870faea | README.md | README.md | Markdown |
<|file_sep|>original/lib/convection/model/template/resource/aws_rds_event_subscription.rb
<|file_sep|>current/lib/convection/model/template/resource/aws_rds_event_subscription.rb
<|file_sep|>updated/lib/convection/model/template/resource/aws_rds_event_subscription.rb | require_relative '../resource'
module Convection
module Model
class Template
class Resource
##
# AWS::RDS::EventSubscription
##
class RDSEventSubscription < Resource
type 'AWS::RDS::EventSubscription', :rds_instance
property :enabled, 'Enabled'
... | <|file_sep|>original/lib/convection/model/template/resource/aws_rds_event_subscription.rb
<|file_sep|>current/lib/convection/model/template/resource/aws_rds_event_subscription.rb
<|file_sep|>updated/lib/convection/model/template/resource/aws_rds_event_subscription.rb
require_relative '../resource'
module Convection
... | 5f20f26c170799944da831230b262b6deca56a3d | lib/convection/model/template/resource/aws_rds_event_subscription.rb | lib/convection/model/template/resource/aws_rds_event_subscription.rb | Ruby |
<|file_sep|>requirements.txt.diff
original:
hbmqtt>=0.7,<0.8
updated:
hbmqtt>=0.8,<0.9
<|file_sep|>original/requirements.txt
aiohttp>=1.1,<1.2
hbmqtt>=0.7,<0.8
jsonschema>=2.5,<2.6
motor>=0.6,<0.7
pijon>=0.1,<0.2
# pycares-2.0.0 breaks errno.ECONNRESET
pycares==1.0.0
slixmpp>=1.1,<1.2
tukio>=0.10,<0.11
websockets>=3.2,... | aiohttp>=1.1,<1.2
hbmqtt>=0.8,<0.9
jsonschema>=2.5,<2.6
motor>=1.0,<1.1
pijon>=0.1,<0.2
# pycares-2.0.0 breaks errno.ECONNRESET
pycares==1.0.0
slixmpp>=1.1,<1.2
tukio>=0.10,<0.11
websockets>=3.2,<3.3 | <|file_sep|>requirements.txt.diff
original:
hbmqtt>=0.7,<0.8
updated:
hbmqtt>=0.8,<0.9
<|file_sep|>original/requirements.txt
aiohttp>=1.1,<1.2
hbmqtt>=0.7,<0.8
jsonschema>=2.5,<2.6
motor>=0.6,<0.7
pijon>=0.1,<0.2
# pycares-2.0.0 breaks errno.ECONNRESET
pycares==1.0.0
slixmpp>=1.1,<1.2
tukio>=0.10,<0.11
websockets>=3.2,... | 4f12577871f2abb540a3ec34e17f941aa40f2c87 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/qubs_data_centre/urls.py
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^api/', include('api.urls')),
url(r'^admin/', admin.site.urls),
]
<|file_sep|>current/qubs_data_centre/urls.py
from django.conf.urls import url, include
from django.con... | from django.conf.urls import url, include
from django.contrib import admin
admin.site.site_header = 'QUBS Data Centre Admin'
urlpatterns = [
url(r'^api/', include('api.urls')),
url(r'^admin/', admin.site.urls),
] | <|file_sep|>original/qubs_data_centre/urls.py
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^api/', include('api.urls')),
url(r'^admin/', admin.site.urls),
]
<|file_sep|>current/qubs_data_centre/urls.py
from django.conf.urls import url, include
from django.con... | d1be7f345529594ba25ed5d0f22e544735a64404 | qubs_data_centre/urls.py | qubs_data_centre/urls.py | Python |
<|file_sep|>config/initializers/custom_initializer.rb.diff
original:
unless ENV['RAILS_ENV'] == 'development'
updated:
unless ENV['RACK_ENV'] == 'development'
<|file_sep|>config/initializers/custom_initializer.rb.diff
original:
updated:
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partitio... | errors.entries.map(&:first).select do |field|
!except.include?(field.to_sym)
end
else
errors.entries.map(&:first)
end
fields_to_merge = [fields_to_merge] unless fields_to_merge.is_a?(Array)
fields_to_merge.map!(&:to_sym)
errors.entries.each do |field, msg... | <|file_sep|>config/initializers/custom_initializer.rb.diff
original:
unless ENV['RAILS_ENV'] == 'development'
updated:
unless ENV['RACK_ENV'] == 'development'
<|file_sep|>config/initializers/custom_initializer.rb.diff
original:
updated:
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partitio... | 0610dfa5c76ea998f242e07e60e0f99aaa258c97 | config/initializers/custom_initializer.rb | config/initializers/custom_initializer.rb | Ruby |
<|file_sep|>original/demo/_external/users/users.dev.yaml
- id: 100
name: Alice
labels:
description: Dev. She can make changes to 'twitter-stats' service and test them (only in stage)
short-description: Dev
org: dev
- id: 101
name: Bob
labels:
description: Dev. He can test his own changes to 'tw... | - id: 100
name: Alice
labels:
description: Dev. She can make changes to 'twitter-stats' service and test them (only in stage)
short-description: Dev
org: dev
- id: 101
name: Bob
labels:
description: Dev. He can test his own changes to 'twitter-stats' service (only in stage)
short-descriptio... | <|file_sep|>original/demo/_external/users/users.dev.yaml
- id: 100
name: Alice
labels:
description: Dev. She can make changes to 'twitter-stats' service and test them (only in stage)
short-description: Dev
org: dev
- id: 101
name: Bob
labels:
description: Dev. He can test his own changes to 'tw... | e9995b223467af71773064744b2cbcc16093da3d | demo/_external/users/users.dev.yaml | demo/_external/users/users.dev.yaml | YAML |
<|file_sep|>packages/le/lens-regex.yaml.diff
original:
hash: af008c9678d3044b38db915206c81e4a1b518cdccbd99cc56852f70c664b0c5d
updated:
hash: a8873b0547a2519327a1d4cfe3c630de0754f5d0fa955bb25cfb069354a535fc
<|file_sep|>packages/le/lens-regex.yaml.diff
original:
changelog: ! '## 0.1.0
updated:
changelog: |
## 0.1.1
<|f... |
## 0.1.0
* Initial release
basic-deps:
base: ! '>=4.5 && <5'
array: -any
lens: ! '>=4 && <5'
regex-base: -any
template-haskell: -any
all-versions:
- 0.1.0
- 0.1.1
author: Takahiro HIMURA
latest: 0.1.1
description-type: markdown
description: |
# lens-regex: Lens powered regular expression #
[![Build... | <|file_sep|>packages/le/lens-regex.yaml.diff
original:
hash: af008c9678d3044b38db915206c81e4a1b518cdccbd99cc56852f70c664b0c5d
updated:
hash: a8873b0547a2519327a1d4cfe3c630de0754f5d0fa955bb25cfb069354a535fc
<|file_sep|>packages/le/lens-regex.yaml.diff
original:
changelog: ! '## 0.1.0
updated:
changelog: |
## 0.1.1
<|f... | e483913659b1debf3d10daaf8acbd0ab2875bae4 | packages/le/lens-regex.yaml | packages/le/lens-regex.yaml | YAML |
<|file_sep|>original/setup.py
from distutils.core import setup
setup(
name='PyAuParser',
version='0.53',
author="Esun Kim",
author_email='veblush+git_at_gmail.com',
url='https://github.com/veblush/PyAuParser',
description="New python engine for GOLD Parser",
license='MIT',
packages=['py... | from distutils.core import setup
setup(
name='PyAuParser',
version='0.53.1',
author="Esun Kim",
author_email='veblush+git_at_gmail.com',
url='https://github.com/veblush/PyAuParser',
description="New python engine for GOLD Parser",
license='MIT',
packages=['pyauparser', 'pyauparser.test'... | <|file_sep|>original/setup.py
from distutils.core import setup
setup(
name='PyAuParser',
version='0.53',
author="Esun Kim",
author_email='veblush+git_at_gmail.com',
url='https://github.com/veblush/PyAuParser',
description="New python engine for GOLD Parser",
license='MIT',
packages=['py... | b316988f45fed26f0694836cf9b5860b7441bc3d | setup.py | setup.py | Python |
<|file_sep|>original/omf_ec/lib/omf_ec/backward/core_ext/array.rb
class Array
def startApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
self.each { |g| g.startApplications }
end
end
def stopApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
... | class Array
def startApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
self.each { |g| g.startApplications }
end
end
def stopApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
self.each { |g| g.stopApplications }
end
end
def exec(nam... | <|file_sep|>original/omf_ec/lib/omf_ec/backward/core_ext/array.rb
class Array
def startApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
self.each { |g| g.startApplications }
end
end
def stopApplications
if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
... | 3fc580977d7ab5b1c810c0f4a240d2ab1f533a5a | omf_ec/lib/omf_ec/backward/core_ext/array.rb | omf_ec/lib/omf_ec/backward/core_ext/array.rb | Ruby |
<|file_sep|>original/setup.cfg
[isort]
multi_line_output=3
include_trailing_comma=true
lines_after_imports=2
known_first_party=dependencies,helpers,django_project
known_third_party=django,django_filters
<|file_sep|>current/setup.cfg
[isort]
multi_line_output=3
include_trailing_comma=true
lines_after_imports=2
known_fir... | [isort]
multi_line_output=3
include_trailing_comma=true
line_length=88
lines_after_imports=2
known_first_party=dependencies,helpers,django_project
known_third_party=django,django_filters | <|file_sep|>original/setup.cfg
[isort]
multi_line_output=3
include_trailing_comma=true
lines_after_imports=2
known_first_party=dependencies,helpers,django_project
known_third_party=django,django_filters
<|file_sep|>current/setup.cfg
[isort]
multi_line_output=3
include_trailing_comma=true
lines_after_imports=2
known_fir... | e89fbea5fc930d555d3e6ce0bf1a1fb7ca63d9f3 | setup.cfg | setup.cfg | INI |
<|file_sep|>original/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift
<|file_sep|>current/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift
<|file_sep|>updated/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift | // RUN: not %target-swift-frontend %s -typecheck
struct Foo: Strideable {
// typealias Stride = Int
let x: Int
func distance(to other: Foo) -> Foo.Stride { return abs(other.x - x) }
func advanced(by n: Foo.Stride) -> Foo { return Foo(x: x + n) }
} | <|file_sep|>original/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift
<|file_sep|>current/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift
<|file_sep|>updated/validation-test/compiler_crashers_2_fixed/0140-sr6746.swift
// RUN: not %target-swift-frontend %s -typecheck
struct Foo: Strideable {
... | 3806d56fb7ee7ef8b010a208bc3c10275a8d5c47 | validation-test/compiler_crashers_2_fixed/0140-sr6746.swift | validation-test/compiler_crashers_2_fixed/0140-sr6746.swift | Swift |
<|file_sep|>original/spec/unit/generator/section_spec.rb
<|file_sep|>current/spec/unit/generator/section_spec.rb
<|file_sep|>updated/spec/unit/generator/section_spec.rb | # frozen_string_literal: true
module GitHubChangelogGenerator
RSpec.describe Section do
let(:options) { {} }
subject(:section) { described_class.new(options) }
describe "#encapsulate_string" do
let(:string) { "" }
context "with the empty string" do
it "returns the string" do
... | <|file_sep|>original/spec/unit/generator/section_spec.rb
<|file_sep|>current/spec/unit/generator/section_spec.rb
<|file_sep|>updated/spec/unit/generator/section_spec.rb
# frozen_string_literal: true
module GitHubChangelogGenerator
RSpec.describe Section do
let(:options) { {} }
subject(:section) { described... | 311ca0355892c0704eae98de0c46be3d393727f0 | spec/unit/generator/section_spec.rb | spec/unit/generator/section_spec.rb | Ruby |
<|file_sep|>original/app/controllers/riews/columns_controller.rb
require_dependency "riews/application_controller"
module Riews
class ColumnsController < ApplicationController
load_and_authorize_resource :view
before_action :set_column, only: [:show, :edit, :update, :destroy]
# GET /columns
def inde... | require_dependency "riews/application_controller"
module Riews
class ColumnsController < ApplicationController
load_and_authorize_resource :view
before_action :set_column, only: [:show, :edit, :update, :destroy]
# GET /columns
def index
@columns = @view.columns
end
# GET /columns/1
... | <|file_sep|>original/app/controllers/riews/columns_controller.rb
require_dependency "riews/application_controller"
module Riews
class ColumnsController < ApplicationController
load_and_authorize_resource :view
before_action :set_column, only: [:show, :edit, :update, :destroy]
# GET /columns
def inde... | cf3d7a33737ec5144685f989c75f81dce40e2e35 | app/controllers/riews/columns_controller.rb | app/controllers/riews/columns_controller.rb | Ruby |
<|file_sep|>package.json.diff
original:
"version": "0.0.1",
updated:
"version": "0.0.2",
<|file_sep|>original/package.json
"make": "./node_modules/.bin/browserify index.js --s maximize_canvas > lib/maximize_canvas.js"
},
"keywords": [
"canvas",
"resize",
"maximize",
"fullscreen",
"fit",
... | "make": "./node_modules/.bin/browserify index.js --s maximize_canvas > lib/maximize_canvas.js"
},
"keywords": [
"canvas",
"resize",
"maximize",
"fullscreen",
"fit",
"screen"
],
"repository" :
{
"type" : "git",
"url" : "https://github.com/sergebat/maximize-canvas.git"
},
... | <|file_sep|>package.json.diff
original:
"version": "0.0.1",
updated:
"version": "0.0.2",
<|file_sep|>original/package.json
"make": "./node_modules/.bin/browserify index.js --s maximize_canvas > lib/maximize_canvas.js"
},
"keywords": [
"canvas",
"resize",
"maximize",
"fullscreen",
"fit",
... | 1f410013cbb6020e70e8c9b31b008b8fe4ac6007 | package.json | package.json | JSON |
<|file_sep|>circle.yml.diff
original:
updated:
machine:
node:
version: 0.12.0
<|file_sep|>original/circle.yml
- |
if [ ! -f ~/rethinkdb/*.deb ] ; then
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.lis... | - |
if [ ! -f ~/rethinkdb/*.deb ] ; then
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
... | <|file_sep|>circle.yml.diff
original:
updated:
machine:
node:
version: 0.12.0
<|file_sep|>original/circle.yml
- |
if [ ! -f ~/rethinkdb/*.deb ] ; then
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.lis... | aea115c7f9935fd75c96fae66b05796213a3f675 | circle.yml | circle.yml | YAML |
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/dev.txt
-r base.txt
django-debug-toolbar==1.6
django-extensions==1.7.4
git+https://github.com/alsoicode/django-medusa
django-sendfile==0.3.11
livereload==2.4.1
selenium==3.0.1
<|file_sep|>current/{{cookiecutter.project_slug}}/requirements/dev.txt
-r bas... | -r base.txt
django-debug-toolbar==1.6
django-extensions==1.7.4
git+https://github.com/alsoicode/django-medusa
django-sendfile==0.3.11
livereload==2.4.1
selenium==3.0.2 | <|file_sep|>original/{{cookiecutter.project_slug}}/requirements/dev.txt
-r base.txt
django-debug-toolbar==1.6
django-extensions==1.7.4
git+https://github.com/alsoicode/django-medusa
django-sendfile==0.3.11
livereload==2.4.1
selenium==3.0.1
<|file_sep|>current/{{cookiecutter.project_slug}}/requirements/dev.txt
-r bas... | a951b34cc87e5974cdbb38aba348a817a7b76d03 | {{cookiecutter.project_slug}}/requirements/dev.txt | {{cookiecutter.project_slug}}/requirements/dev.txt | Text |
<|file_sep|>examples/tests/test_examples.py.diff
original:
updated:
# Copyright 2016 Andrich van Wyk
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | # See the License for the specific language governing permissions and
# limitations under the License.
""" Tests ensuring examples execute
"""
import pytest
from examples.gbest_pso import main as gbest
from examples.gc_pso import main as gc
from examples.lbest_pso import main as lbest
from examples.pso_optimizer impo... | <|file_sep|>examples/tests/test_examples.py.diff
original:
updated:
# Copyright 2016 Andrich van Wyk
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | 79996420e775994b53d88f5b7c9ad21106a77831 | examples/tests/test_examples.py | examples/tests/test_examples.py | Python |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
branches:
only:
- master
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '... | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
- '6'
branches:
only:
- master
before_install:
- npm install
- npm install istanbul coveralls | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
branches:
only:
- master
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '... | a5c5e74aeac84e8cccc83fd53c3396ec1bb0e876 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/rax-parted-lvm.yml
<|file_sep|>current/rax-parted-lvm.yml
<|file_sep|>updated/rax-parted-lvm.yml | - hosts: local
gather_facts: False
tasks:
- name: Server build requests
local_action:
module: rax
credentials: ~/.raxpub
name: lvm
flavor: 4
image: ubuntu-1204-lts-precise-pangolin
region: IAD
state: present
disk_config: manual
wait: ... | <|file_sep|>original/rax-parted-lvm.yml
<|file_sep|>current/rax-parted-lvm.yml
<|file_sep|>updated/rax-parted-lvm.yml
- hosts: local
gather_facts: False
tasks:
- name: Server build requests
local_action:
module: rax
credentials: ~/.raxpub
name: lvm
flavor: 4
image... | 38bed19027d65466271b9fdbdaf8c8f37ccf7619 | rax-parted-lvm.yml | rax-parted-lvm.yml | YAML |
<|file_sep|>original/README.md
This is code developed by BBN to support the
2017 TAC KBP Event Argument and Linking Shared Task
The 2017 task uses the same output formats as the 2016 task. Please refer to
README.2016.md for more details.
<|file_sep|>current/README.md
This is code developed by BBN to support the
2017 T... | This is code developed by BBN to support the
2017 TAC KBP Event Argument and Linking Shared Task
The 2017 task uses the same output formats as the 2016 task. Please refer to
README.2016.md for more details.
<sub>**Legal notes**</sub>
This work was funded by DARPA/AFRL Contract FA8750-13-C-0008.
The views, opinions,... | <|file_sep|>original/README.md
This is code developed by BBN to support the
2017 TAC KBP Event Argument and Linking Shared Task
The 2017 task uses the same output formats as the 2016 task. Please refer to
README.2016.md for more details.
<|file_sep|>current/README.md
This is code developed by BBN to support the
2017 T... | 51cec617adda5bb0c2d55ab2723b658e1d119f4c | README.md | README.md | Markdown |
<|file_sep|>original/dci/alembic/versions/980e18983453_sync_database.py
<|file_sep|>current/dci/alembic/versions/980e18983453_sync_database.py
<|file_sep|>updated/dci/alembic/versions/980e18983453_sync_database.py | #
# Copyright (C) 2022 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | <|file_sep|>original/dci/alembic/versions/980e18983453_sync_database.py
<|file_sep|>current/dci/alembic/versions/980e18983453_sync_database.py
<|file_sep|>updated/dci/alembic/versions/980e18983453_sync_database.py
#
# Copyright (C) 2022 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); ... | ba814b1f519d1a1ceb19e5fe88c6fe11737a07be | dci/alembic/versions/980e18983453_sync_database.py | dci/alembic/versions/980e18983453_sync_database.py | Python |
<|file_sep|>original/doc/requirements.txt
# This is required for the docs build jobs
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
# This is required for the releasenotes build jobs
reno>=3.1.0 # Apache-2.0
<|file_sep|>current/doc/requirements.txt
# This is required for the docs build jobs
sphinx>... | # This is required for the docs build jobs
sphinx>=3.5.1 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
# This is required for the releasenotes build jobs
reno>=3.1.0 # Apache-2.0 | <|file_sep|>original/doc/requirements.txt
# This is required for the docs build jobs
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
# This is required for the releasenotes build jobs
reno>=3.1.0 # Apache-2.0
<|file_sep|>current/doc/requirements.txt
# This is required for the docs build jobs
sphinx>... | 0077e6bb76b4aae6ae8fed8a5a223464ac8bb0ec | doc/requirements.txt | doc/requirements.txt | Text |
<|file_sep|>original/index.js
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, s... | * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES... | <|file_sep|>original/index.js
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, s... | e07ed8b6f0c16c8803ba1c0872b902ec2bde7b03 | index.js | index.js | JavaScript |
<|file_sep|>original/showcase/java/src/main/java/playn/showcase/java/ShowcaseJava.java
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* Licens... | * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.... | <|file_sep|>original/showcase/java/src/main/java/playn/showcase/java/ShowcaseJava.java
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* Licens... | b5ca294be57077dfb9566662d089bd88b1a345f4 | showcase/java/src/main/java/playn/showcase/java/ShowcaseJava.java | showcase/java/src/main/java/playn/showcase/java/ShowcaseJava.java | Java |
<|file_sep|>original/techvideos/tests/TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}
<|file_sep|>current/techvideos/tests/TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testi... | <?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected function disableExceptionHandling()
{
$this->app->instance(ExceptionHandler::class, new class extends Handler {
public function __construct()
... | <|file_sep|>original/techvideos/tests/TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}
<|file_sep|>current/techvideos/tests/TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testi... | 38b6bc46ebdb42bac6dce16aceacd264d889fc1d | techvideos/tests/TestCase.php | techvideos/tests/TestCase.php | PHP |
<|file_sep|>original/circle.yml
<|file_sep|>current/circle.yml
<|file_sep|>updated/circle.yml | machine:
java:
version: openjdk8
dependencies:
pre:
- echo y | android -s update sdk -u -a -t "tools"
- mkdir -p $ANDROID_HOME/licenses
- echo -e "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
- echo -e "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDRO... | <|file_sep|>original/circle.yml
<|file_sep|>current/circle.yml
<|file_sep|>updated/circle.yml
machine:
java:
version: openjdk8
dependencies:
pre:
- echo y | android -s update sdk -u -a -t "tools"
- mkdir -p $ANDROID_HOME/licenses
- echo -e "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOM... | 73e88b8bd98664e6f2fac1cd2029df191bb19b85 | circle.yml | circle.yml | YAML |
<|file_sep|>original/usr.sbin/pw/Makefile
# $FreeBSD$
.include <bsd.own.mk>
PROG= pw
MAN= pw.conf.5 pw.8
SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
grupd.c pwupd.c fileupd.c psdate.c \
bitmap.c cpdir.c rm_r.c
WARNS?= 3
DPADD= ${LIBCRYPT} ${LIBUTIL}
LDADD= -lcrypt -lutil
.if ${MK_TESTS... | # $FreeBSD$
.include <bsd.own.mk>
PROG= pw
MAN= pw.conf.5 pw.8
SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
grupd.c pwupd.c fileupd.c psdate.c \
bitmap.c cpdir.c rm_r.c
WARNS?= 2
DPADD= ${LIBCRYPT} ${LIBUTIL}
LDADD= -lcrypt -lutil
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include ... | <|file_sep|>original/usr.sbin/pw/Makefile
# $FreeBSD$
.include <bsd.own.mk>
PROG= pw
MAN= pw.conf.5 pw.8
SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
grupd.c pwupd.c fileupd.c psdate.c \
bitmap.c cpdir.c rm_r.c
WARNS?= 3
DPADD= ${LIBCRYPT} ${LIBUTIL}
LDADD= -lcrypt -lutil
.if ${MK_TESTS... | eddd11598c6eec82a72713283ff4236f47bf1b30 | usr.sbin/pw/Makefile | usr.sbin/pw/Makefile | unknown |
<|file_sep|>original/polymer-cordova-keyboard.html
hideKeyboardAccessoryBar: {
type: Boolean,
notify: false,
observer: '_changeHideKeyboardAccessoryBar'
}
},
ready: function() {
// Avoid race condition if Polymer is initialized before Cordova
document.addEventListener("deviceready", funct... | hideKeyboardAccessoryBar: {
type: Boolean,
notify: false,
observer: '_changeHideKeyboardAccessoryBar'
}
},
ready: function() {
// Avoid race condition if Polymer is initialized before Cordova
document.addEventListener("deviceready", function() {
this._setHideKeyboardAccessoryBar(this.... | <|file_sep|>original/polymer-cordova-keyboard.html
hideKeyboardAccessoryBar: {
type: Boolean,
notify: false,
observer: '_changeHideKeyboardAccessoryBar'
}
},
ready: function() {
// Avoid race condition if Polymer is initialized before Cordova
document.addEventListener("deviceready", funct... | 2c77f2a51147ddbf4d312aaf2a5077135e28e90d | polymer-cordova-keyboard.html | polymer-cordova-keyboard.html | HTML |
<|file_sep|>original/setup.cfg
[egg_info]
tag_build = dev
tag_svn_revision = 1
<|file_sep|>current/setup.cfg
[egg_info]
tag_build = dev
tag_svn_revision = 1
<|file_sep|>updated/setup.cfg | [egg_info]
tag_build = dev
tag_svn_revision = 1
[metadata]
license_file = LICENSE.txt | <|file_sep|>original/setup.cfg
[egg_info]
tag_build = dev
tag_svn_revision = 1
<|file_sep|>current/setup.cfg
[egg_info]
tag_build = dev
tag_svn_revision = 1
<|file_sep|>updated/setup.cfg
[egg_info]
tag_build = dev
tag_svn_revision = 1
[metadata]
license_file = LICENSE.txt | 7461198daee89bc41bc37f853a9a5cc843c65f18 | setup.cfg | setup.cfg | INI |
<|file_sep|>original/.github/workflows/ci.yml
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: true
matrix:
ruby: [2.4, 2.5, 2.6, 2.7]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby ver... | jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: true
matrix:
ruby: [2.4, 2.5, 2.6, 2.7]
services:
mysql:
image: iwata/centos6-mysql56-q4m-hs
ports:
- 3306:3306
steps:
- uses: actions/checkout@v2
- name: Set... | <|file_sep|>original/.github/workflows/ci.yml
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: true
matrix:
ruby: [2.4, 2.5, 2.6, 2.7]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby ver... | d257a5c589a3c92283c697e321e54549ffafb0ad | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/product_feed.py
<|file_sep|>current/product_feed.py
<|file_sep|>updated/product_feed.py | products = [
'AN4EF3',
'AE93CR',
'A9Q4MK',
'AC97HP',
'AK967J',
'AB2S93',
'AB2JT9',
'AN67HP',
'AK54VQ',
'AD53ZH'] | <|file_sep|>original/product_feed.py
<|file_sep|>current/product_feed.py
<|file_sep|>updated/product_feed.py
products = [
'AN4EF3',
'AE93CR',
'A9Q4MK',
'AC97HP',
'AK967J',
'AB2S93',
'AB2JT9',
'AN67HP',
'AK54VQ',
'AD53ZH'] | a8c97f609f2477ddc59cd0ec0f1eb7e3604468f4 | product_feed.py | product_feed.py | Python |
<|file_sep|>src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig.diff
original:
updated:
{% if entityConfig.listFilters | length > 0 %}
<|file_sep|>original/src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig
{{ filter.name }}
</option>
... | </option>
{% endfor %}
</select>
<div class="filter__options">
{% for filter in entityConfig.listFilters %}
{% set isCurrent = (app.request.get('filterBy') == filter.field) or
(app.request.get('filterBy') == '' and loop.index0 == 0) %}
... | <|file_sep|>src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig.diff
original:
updated:
{% if entityConfig.listFilters | length > 0 %}
<|file_sep|>original/src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig
{{ filter.name }}
</option>
... | ee0d0d3effe14329aeddb1f2e7b228ab8583dbee | src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig | src/LIN3S/AdminBundle/Resources/views/Admin/partials/list_filters.html.twig | Twig |
<|file_sep|>original/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown
<|file_sep|>current/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown
<|file_sep|>updated/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown | ---
layout: post
title: "Performance Testing for Rust?"
categories: rust,programming,ideas
---
Here's a quick thought that could potentially be a future research topic. I've previously discussed my [experiences](notebook/rust,programming/2015/01/20/first-steps-in-rust/) learning Mozilla's [Rust](http://www.rust-lang.... | <|file_sep|>original/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown
<|file_sep|>current/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown
<|file_sep|>updated/notebook/_posts/2015-01-29-performance-testing-for-rust.markdown
---
layout: post
title: "Performance Testing for Rust?"
categ... | 3e1b34d9441c3a69fae5793e732abc872de446de | notebook/_posts/2015-01-29-performance-testing-for-rust.markdown | notebook/_posts/2015-01-29-performance-testing-for-rust.markdown | Markdown |
<|file_sep|>config/locales/en/brexit_checker/email_signup.yml.diff
original:
title: "How to get ready for new rules in 2021"
updated:
title: "Get email alerts about your Brexit checker results"
<|file_sep|>original/config/locales/en/brexit_checker/email_signup.yml
en:
brexit_checker:
email_signup:
... | en:
brexit_checker:
email_signup:
title: "Get email alerts about your Brexit checker results"
sign_up_heading: "Get email alerts about your results"
sign_up_message: |
<p class="govuk-body">You're signing up for email updates about changes to your results.</p>
<p class="govuk-bod... | <|file_sep|>config/locales/en/brexit_checker/email_signup.yml.diff
original:
title: "How to get ready for new rules in 2021"
updated:
title: "Get email alerts about your Brexit checker results"
<|file_sep|>original/config/locales/en/brexit_checker/email_signup.yml
en:
brexit_checker:
email_signup:
... | c3b37f81d4c8c3edf2568a5edf79f2444a4f9304 | config/locales/en/brexit_checker/email_signup.yml | config/locales/en/brexit_checker/email_signup.yml | YAML |
<|file_sep|>original/link/emacs/plugin-notebook/my-symbol-overlay.org
<|file_sep|>current/link/emacs/plugin-notebook/my-symbol-overlay.org
<|file_sep|>updated/link/emacs/plugin-notebook/my-symbol-overlay.org | #+title: Symbol Overlay: Highlight and Operate on Symbols Quickly
#+author: Thomas Trabue
#+email: tom.trabue@gmail.com
#+date: 2022:03:18
#+tags: highlight symbol overlay
#+STARTUP: fold
Symbol Overlay allows Emacs users to highlight symbols in any major mode and
then operate on those symbols, such as go t... | <|file_sep|>original/link/emacs/plugin-notebook/my-symbol-overlay.org
<|file_sep|>current/link/emacs/plugin-notebook/my-symbol-overlay.org
<|file_sep|>updated/link/emacs/plugin-notebook/my-symbol-overlay.org
#+title: Symbol Overlay: Highlight and Operate on Symbols Quickly
#+author: Thomas Trabue
#+email: tom.tr... | 8a56a69dc461aa658f3f4be294a7bd23b3679546 | link/emacs/plugin-notebook/my-symbol-overlay.org | link/emacs/plugin-notebook/my-symbol-overlay.org | Org |
<|file_sep|>original/director/assets/js/snapshot-filebrowser.js
active: false
}
},
template: '' +
'<div class="dropdown item-actions-dropdown" @click="toggle()" :class="{ \'is-active\':active }">' +
' <div class="dropdown-trigger">' +
' <a aria-haspopup="true" :aria-controls="\'item-action... | active: false
}
},
template: '' +
'<div class="dropdown item-actions-dropdown" @click="toggle()" :class="{ \'is-active\':active }">' +
' <div class="dropdown-trigger">' +
' <a aria-haspopup="true" :aria-controls="\'item-actions-menu-\' + index"><i class="fa fa-ellipsis-h"></i></a>' +
'... | <|file_sep|>original/director/assets/js/snapshot-filebrowser.js
active: false
}
},
template: '' +
'<div class="dropdown item-actions-dropdown" @click="toggle()" :class="{ \'is-active\':active }">' +
' <div class="dropdown-trigger">' +
' <a aria-haspopup="true" :aria-controls="\'item-action... | 0f83dafbf01f57129587667303183d432c5161fe | director/assets/js/snapshot-filebrowser.js | director/assets/js/snapshot-filebrowser.js | JavaScript |
<|file_sep|>original/options.js
function initSettings() {
var globalSettings = getGlobalSettings();
if (globalSettings['hw_accel']) {
$('hw_accel').value = globalSettings['hw_accel'];
}
}
function onForget() {
resetSiteSchemes();
loadSettingsDisplay();
update();
}
// Open all links in new tabs.
functi... | function initSettings() {
var globalSettings = getGlobalSettings();
if (globalSettings['hw_accel']) {
$('hw_accel').value = globalSettings['hw_accel'];
}
}
function onForget() {
resetSiteSchemes();
loadSettingsDisplay();
}
// Open all links in new tabs.
function onLinkClick() {
var links = document.ge... | <|file_sep|>original/options.js
function initSettings() {
var globalSettings = getGlobalSettings();
if (globalSettings['hw_accel']) {
$('hw_accel').value = globalSettings['hw_accel'];
}
}
function onForget() {
resetSiteSchemes();
loadSettingsDisplay();
update();
}
// Open all links in new tabs.
functi... | 9573aa16fad08be19eb0ed138d45a20af0ea3787 | options.js | options.js | JavaScript |
<|file_sep|>original/simple-stack-example-kotlin/src/main/kotlin/com/zhuinden/simplestackexamplekotlin/DashboardKey.kt
package com.zhuinden.simplestackexamplekotlin
import android.os.Parcelable
import paperparcel.PaperParcel
/**
* Created by Owner on 2017.11.13.
*/
@PaperParcel
data class DashboardKey(val tag: Str... | package com.zhuinden.simplestackexamplekotlin
import android.os.Parcelable
import paperparcel.PaperParcel
/**
* Created by Owner on 2017.11.13.
*/
@PaperParcel
data class DashboardKey(val tag: String = DashboardKey::class.java.name) : BaseKey() {
// using data class makes you not need to implement hashCode/equ... | <|file_sep|>original/simple-stack-example-kotlin/src/main/kotlin/com/zhuinden/simplestackexamplekotlin/DashboardKey.kt
package com.zhuinden.simplestackexamplekotlin
import android.os.Parcelable
import paperparcel.PaperParcel
/**
* Created by Owner on 2017.11.13.
*/
@PaperParcel
data class DashboardKey(val tag: Str... | 9bed3f207522d6ec38ec6885a658607e39942933 | simple-stack-example-kotlin/src/main/kotlin/com/zhuinden/simplestackexamplekotlin/DashboardKey.kt | simple-stack-example-kotlin/src/main/kotlin/com/zhuinden/simplestackexamplekotlin/DashboardKey.kt | Kotlin |
<|file_sep|>original/README.md
A fantasy deathcrawl in Rust
Work in progress.
To run, with Rust compiler and Cargo package manager installed:
$ cargo run --release
When building on Windows, you may need to have MinGW gcc installed
and in PATH for cargo to be able to build all the necessary
dependencies.
Screenshot... | A fantasy deathcrawl in Rust
Work in progress.
To run, with Rust compiler and Cargo package manager installed:
cargo run --release
When building on Windows, you may need to have MinGW gcc installed
and in PATH for cargo to be able to build all the necessary
dependencies.
Screenshots
-----------
From October 2... | <|file_sep|>original/README.md
A fantasy deathcrawl in Rust
Work in progress.
To run, with Rust compiler and Cargo package manager installed:
$ cargo run --release
When building on Windows, you may need to have MinGW gcc installed
and in PATH for cargo to be able to build all the necessary
dependencies.
Screenshot... | c0880962b286ae75392662c7b79955b46ff1f0c6 | README.md | README.md | Markdown |
<|file_sep|>original/src/meinberlin/meinberlin/static/stylesheets/scss/components/_forms_theme.scss
form {
//FIXME : this will be related to moving columns when we have it
background-color: $color-background-base-introvert;
padding: 1em;
}
input[type="text"],
input[type="url"],
input[type="password"],
inpu... | //FIXME : this will be related to moving columns when we have it
background-color: $color-background-base-introvert;
padding: 1em;
}
input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
borde... | <|file_sep|>original/src/meinberlin/meinberlin/static/stylesheets/scss/components/_forms_theme.scss
form {
//FIXME : this will be related to moving columns when we have it
background-color: $color-background-base-introvert;
padding: 1em;
}
input[type="text"],
input[type="url"],
input[type="password"],
inpu... | 258269828ce57cce25e3923ae8938136ad437169 | src/meinberlin/meinberlin/static/stylesheets/scss/components/_forms_theme.scss | src/meinberlin/meinberlin/static/stylesheets/scss/components/_forms_theme.scss | SCSS |
<|file_sep|>original/Raygun/Client.php
<?php
namespace Onceit\RaygunBundle\Raygun;
use Raygun4php\RaygunClient;
class Client extends RaygunClient
{
/**
* {@inheritDoc}
*/
public function Send($message)
{
if (empty($this->apiKey)) {
return;
}
return call_user... | <?php
namespace Onceit\RaygunBundle\Raygun;
use Raygun4php\RaygunClient;
class Client extends RaygunClient
{
/**
* {@inheritDoc}
*/
public function Send($message)
{
if (empty($this->apiKey)) {
return;
}
return parent::Send($message);
}
} | <|file_sep|>original/Raygun/Client.php
<?php
namespace Onceit\RaygunBundle\Raygun;
use Raygun4php\RaygunClient;
class Client extends RaygunClient
{
/**
* {@inheritDoc}
*/
public function Send($message)
{
if (empty($this->apiKey)) {
return;
}
return call_user... | f921a7a93fe3882c2de4d278598ab4a841e31b94 | Raygun/Client.php | Raygun/Client.php | PHP |
<|file_sep|>app/js/components/service_status_interactions.js.diff
original:
privacyQuestionsStatusContainer.find('input[type="radio"]').prop('disabled', false);
updated:
privacyQuestionsStatusContainer.parent().show(200);
<|file_sep|>original/app/js/components/service_status_interactions.js
'use strict'... | 'use strict';
function togglePrivacyQuestionsAnsweredStatusField(){
let privacyQuestionsStatusContainer = $('.privacy-questions-container');
let privacyQuestionsEnabledCheckbox = $(".privacy-questions-toggle");
if (privacyQuestionsEnabledCheckbox.is(':checked')) {
privacyQuestionsStatusContainer.p... | <|file_sep|>app/js/components/service_status_interactions.js.diff
original:
privacyQuestionsStatusContainer.find('input[type="radio"]').prop('disabled', false);
updated:
privacyQuestionsStatusContainer.parent().show(200);
<|file_sep|>original/app/js/components/service_status_interactions.js
'use strict'... | e35c180bb2ad53b75424fb64cb8245da00f88f83 | app/js/components/service_status_interactions.js | app/js/components/service_status_interactions.js | JavaScript |
<|file_sep|>original/skyfield/tests/test_strs_and_reprs.py
<|file_sep|>current/skyfield/tests/test_strs_and_reprs.py
<|file_sep|>updated/skyfield/tests/test_strs_and_reprs.py | import textwrap
from ..api import Topos, load
from ..sgp4lib import EarthSatellite
def dedent(s):
return textwrap.dedent(s.rstrip())
def eph():
yield load('de421.bsp')
def test_jpl_segment(eph):
e = eph['mercury barycenter']
expected = dedent("""\
Segment 'de421.bsp' 0 SOLAR SYSTEM BARYCENTER... | <|file_sep|>original/skyfield/tests/test_strs_and_reprs.py
<|file_sep|>current/skyfield/tests/test_strs_and_reprs.py
<|file_sep|>updated/skyfield/tests/test_strs_and_reprs.py
import textwrap
from ..api import Topos, load
from ..sgp4lib import EarthSatellite
def dedent(s):
return textwrap.dedent(s.rstrip())
def ... | e7534c6d5fd5c7d76c56d48be12302b596b35d29 | skyfield/tests/test_strs_and_reprs.py | skyfield/tests/test_strs_and_reprs.py | Python |
<|file_sep|>composer.json.diff
original:
"php": ">=5.4",
"doctrine/orm": "~2.4",
"doctrine/doctrine-bundle": "~1.2",
"symfony/framework-bundle": "~2.6 || ~3.0 || ~4.0",
"symfony/stopwatch": "~2.6 || ~3.0 || ~4.0"
updated:
"php": ">=7.1",
"doctrine/orm": "~2.5",
... | "description": "PIXERS Doctrine profiler bundle",
"license": "BSD-3-Clause",
"require": {
"php": ">=7.1",
"doctrine/orm": "~2.5",
"doctrine/doctrine-bundle": "~1.6",
"symfony/framework-bundle": "~2.8 || ~3.4 || ~4.1",
"symfony/stopwatch": "~2.8 || ~3.4 || ~4.1"
},... | <|file_sep|>composer.json.diff
original:
"php": ">=5.4",
"doctrine/orm": "~2.4",
"doctrine/doctrine-bundle": "~1.2",
"symfony/framework-bundle": "~2.6 || ~3.0 || ~4.0",
"symfony/stopwatch": "~2.6 || ~3.0 || ~4.0"
updated:
"php": ">=7.1",
"doctrine/orm": "~2.5",
... | 2e108e305983fae9927db66d6a72224ee98fc77e | composer.json | composer.json | JSON |
<|file_sep|>Engine/Rules/Entities/Rule.cs.diff
original:
updated:
using Engine.Rules.Matcher;
using Engine.Rules.ValueDistribution;
<|file_sep|>original/Engine/Rules/Entities/Rule.cs
namespace Engine
{
public class Rule
{
public string Matcher;
public string ValuesDisturbtion;
}
}
<|file_s... | using Engine.Rules.Matcher;
using Engine.Rules.ValueDistribution;
namespace Engine
{
public class Rule
{
public Matcher Matcher;
public ValueDistributor ValuesDisturbtion;
}
} | <|file_sep|>Engine/Rules/Entities/Rule.cs.diff
original:
updated:
using Engine.Rules.Matcher;
using Engine.Rules.ValueDistribution;
<|file_sep|>original/Engine/Rules/Entities/Rule.cs
namespace Engine
{
public class Rule
{
public string Matcher;
public string ValuesDisturbtion;
}
}
<|file_s... | 815a708ab9abdb8080b9c14b90147b609340464d | Engine/Rules/Entities/Rule.cs | Engine/Rules/Entities/Rule.cs | C# |
<|file_sep|>css/app.scss.diff
original:
updated:
@import "partials/buttons";
<|file_sep|>original/css/app.scss
h1, p {
color: lighten($color-red, 10%);
line-height: $font-line-height;
text-shadow: 0px 1px 0px $color-black;
}
p {
margin: 0 auto;
}
}
#flashcard {
background: $color-red;
width... | }
}
#flashcard {
background: $color-red;
width: 20em;
height: 20em;
border-radius: $border-radius;
margin: 1.2em auto;
h2 {
color: $color-white;
line-height: 12.8em;
margin: 0;
}
}
[type="button"] {
@include button();
}
[type="button"]:hover {
color: $color-white;
background: $color-bl... | <|file_sep|>css/app.scss.diff
original:
updated:
@import "partials/buttons";
<|file_sep|>original/css/app.scss
h1, p {
color: lighten($color-red, 10%);
line-height: $font-line-height;
text-shadow: 0px 1px 0px $color-black;
}
p {
margin: 0 auto;
}
}
#flashcard {
background: $color-red;
width... | 2fa1d92e987697a34a2973274f48a82d97d83f41 | css/app.scss | css/app.scss | SCSS |
<|file_sep|>original/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift
<|file_sep|>current/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift
<|file_sep|>updated/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift | // RUN: not --crash %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
protocol a{struct B<e{let a{protocol a{func a<T:s#^A^# | <|file_sep|>original/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift
<|file_sep|>current/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift
<|file_sep|>updated/validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift... | 567b8926d5b5a3eb4c1b871aa72f4beaa50ab597 | validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift | validation-test/IDE/crashers/020-swift-typechecker-validategenericfuncsignature.swift | Swift |
<|file_sep|>src/Native/Global.js.diff
original:
// radix values integer from 2-36
updated:
// NOTE radix can be any integer from 2-36
<|file_sep|>original/src/Native/Global.js
const _elm_node$core$Native_Global = function () {
const Err = _elm_lang$core$Result$Err
const Ok = _elm_lang$co... | const _elm_node$core$Native_Global = function () {
const Err = _elm_lang$core$Result$Err
const Ok = _elm_lang$core$Result$Ok
// parseInt : Int -> String -> Result Decode.Value Int
const parseInt = F2((radix, string) => {
try {
// NOTE radix can be any integer from 2-36
... | <|file_sep|>src/Native/Global.js.diff
original:
// radix values integer from 2-36
updated:
// NOTE radix can be any integer from 2-36
<|file_sep|>original/src/Native/Global.js
const _elm_node$core$Native_Global = function () {
const Err = _elm_lang$core$Result$Err
const Ok = _elm_lang$co... | 13e72c4b5b4b5f57ef517baefbc28f019e00d026 | src/Native/Global.js | src/Native/Global.js | JavaScript |
<|file_sep|>original/frontend/app/controllers/spree/home_controller.rb
module Spree
class HomeController < Spree::StoreController
helper 'spree/products'
respond_to :html
def index
@searcher = build_searcher(params)
@products = @searcher.retrieve_products
@taxonomies = Spree::Taxonomy.i... | module Spree
class HomeController < Spree::StoreController
helper 'spree/products'
respond_to :html
def index
@searcher = build_searcher(params)
@products = @searcher.retrieve_products
@taxonomies = Spree::Taxonomy.includes(root: :children)
end
end
end | <|file_sep|>original/frontend/app/controllers/spree/home_controller.rb
module Spree
class HomeController < Spree::StoreController
helper 'spree/products'
respond_to :html
def index
@searcher = build_searcher(params)
@products = @searcher.retrieve_products
@taxonomies = Spree::Taxonomy.i... | c98fbf3339f824faf81a1f1ecf1780f636f3e496 | frontend/app/controllers/spree/home_controller.rb | frontend/app/controllers/spree/home_controller.rb | Ruby |
<|file_sep|>original/cms/templates/cms/layout/nav_header.html
</div>
<ul class="nav navbar-nav navbar-right">
<li class="navbar-button-container">
<a class="navbar-button" href="/">
{% fontawesome_icon 'institution' color='white' large=True %}
Learning System
... | </div>
<ul class="nav navbar-nav navbar-right">
<li class="navbar-button-container">
<a class="navbar-button" href="/">
{% fontawesome_icon 'institution' color='white' large=True %}
Learning System
</a>
</li>
<li class="navbar-button-contain... | <|file_sep|>original/cms/templates/cms/layout/nav_header.html
</div>
<ul class="nav navbar-nav navbar-right">
<li class="navbar-button-container">
<a class="navbar-button" href="/">
{% fontawesome_icon 'institution' color='white' large=True %}
Learning System
... | 42b644b96a774b4b7bb9765e39d667fdd798c66d | cms/templates/cms/layout/nav_header.html | cms/templates/cms/layout/nav_header.html | HTML |
<|file_sep|>app/src/main/AndroidManifest.xml.diff
original:
updated:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:... |
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activi... | <|file_sep|>app/src/main/AndroidManifest.xml.diff
original:
updated:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:... | a7ebba77a1bfaf58e4cd757c22c5b9e30af9cdc1 | app/src/main/AndroidManifest.xml | app/src/main/AndroidManifest.xml | XML |
<|file_sep|>original/week-06.md
url: "https://typografier.web-dev.tools/"
- title: "Typografier cheat sheet"
url: typografier-cheat-sheet
highlight: true
group_activities:
- title: "Sketching websites"
url: sketching-websites
type: pencil
pair: true
tasks:
- title: "Grid Genius"
url:... | url: "https://typografier.web-dev.tools/"
- title: "Typografier cheat sheet"
url: typografier-cheat-sheet
highlight: true
group_activities:
- title: "Sketching websites"
url: sketching-websites
type: pencil
pair: true
no-solution: true
tasks:
- title: "Grid Genius"
url: "https://... | <|file_sep|>original/week-06.md
url: "https://typografier.web-dev.tools/"
- title: "Typografier cheat sheet"
url: typografier-cheat-sheet
highlight: true
group_activities:
- title: "Sketching websites"
url: sketching-websites
type: pencil
pair: true
tasks:
- title: "Grid Genius"
url:... | 3a83d25c5adddbb65b34bed959fc8a18cc53ad66 | week-06.md | week-06.md | Markdown |
<|file_sep|>include/libvarnish.h.diff
original:
updated:
#ifndef NULL
#define NULL ((void*)0)
#endif
<|file_sep|>include/libvarnish.h.diff
original:
updated:
/*
* assert(), AN() and AZ() are static checks that should not happen.
* xxxassert(), XXXAN() and XXXAZ() are markers for missing code.
*/
<|file_sep|>inc... | #else /* WITH_ASSERTS */
#define assert(e) \
do { \
if (!(e)) \
lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0)
#endif
#define xxxassert(e) \
do { \
if (!(e)) \
lbv_assert("XXX:" __func__, __FILE__, __LINE__, #e, errno); \
} while (0)
void lbv_assert(... | <|file_sep|>include/libvarnish.h.diff
original:
updated:
#ifndef NULL
#define NULL ((void*)0)
#endif
<|file_sep|>include/libvarnish.h.diff
original:
updated:
/*
* assert(), AN() and AZ() are static checks that should not happen.
* xxxassert(), XXXAN() and XXXAZ() are markers for missing code.
*/
<|file_sep|>inc... | ade05c3a2896b49b876e910c94e292a77ddd7ac7 | include/libvarnish.h | include/libvarnish.h | C |
<|file_sep|>original/Cargo.toml
[package]
name = "dht"
version = "0.1.0"
authors = ["Dmitry Tantsur <divius.inside@gmail.com>"]
[lib]
name = "dht"
path = "src/lib.rs"
<|file_sep|>current/Cargo.toml
[package]
name = "dht"
version = "0.1.0"
authors = ["Dmitry Tantsur <divius.inside@gmail.com>"]
[lib]
name = "dht"
p... | [package]
name = "dht"
version = "0.1.0"
authors = ["Dmitry Tantsur <divius.inside@gmail.com>"]
[dependencies.num]
git = "https://github.com/rust-lang/num"
[lib]
name = "dht"
path = "src/lib.rs" | <|file_sep|>original/Cargo.toml
[package]
name = "dht"
version = "0.1.0"
authors = ["Dmitry Tantsur <divius.inside@gmail.com>"]
[lib]
name = "dht"
path = "src/lib.rs"
<|file_sep|>current/Cargo.toml
[package]
name = "dht"
version = "0.1.0"
authors = ["Dmitry Tantsur <divius.inside@gmail.com>"]
[lib]
name = "dht"
p... | f971fa6c688274d9474df3fd92e54108c9d6d133 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/topology-machine/example-hltopo.json
<|file_sep|>current/topology-machine/example-hltopo.json
<|file_sep|>updated/topology-machine/example-hltopo.json | {
"routers": {
"ams-core-1": { "id": 1, "type": "xrv", "version": "5.1.1.54U" },
"ams-core-2": { "id": 2, "type": "xrv", "version": "5.1.1.54U" },
"fra-core-1": { "id": 3, "type": "vmx", "version": "16.1R1.7" },
"fra-core-2": { "id": 4, "type": "vmx", "version": "16.1R1.7" },
"par-core-1": { "id": 5, "type":... | <|file_sep|>original/topology-machine/example-hltopo.json
<|file_sep|>current/topology-machine/example-hltopo.json
<|file_sep|>updated/topology-machine/example-hltopo.json
{
"routers": {
"ams-core-1": { "id": 1, "type": "xrv", "version": "5.1.1.54U" },
"ams-core-2": { "id": 2, "type": "xrv", "version": "5.1.1.54... | f8d250d605e5cd82c4267e59200fc5c4e6bc8dbd | topology-machine/example-hltopo.json | topology-machine/example-hltopo.json | JSON |
<|file_sep|>original/Callisto/UserDefaults+LaunchParameters.swift
<|file_sep|>current/Callisto/UserDefaults+LaunchParameters.swift
<|file_sep|>updated/Callisto/UserDefaults+LaunchParameters.swift | //
// UserDefaults+LaunchParameters.swift
// Callisto
//
// Created by Patrick Kladek on 02.08.19.
// Copyright © 2019 IdeasOnCanvas. All rights reserved.
//
import Foundation
extension UserDefaults {
enum Action: String, CaseIterable {
case summarize
case upload
case unknown
}
... | <|file_sep|>original/Callisto/UserDefaults+LaunchParameters.swift
<|file_sep|>current/Callisto/UserDefaults+LaunchParameters.swift
<|file_sep|>updated/Callisto/UserDefaults+LaunchParameters.swift
//
// UserDefaults+LaunchParameters.swift
// Callisto
//
// Created by Patrick Kladek on 02.08.19.
// Copyright © 2019... | e62c50d06d52ca6e4d1f605a741708d4f4db68d1 | Callisto/UserDefaults+LaunchParameters.swift | Callisto/UserDefaults+LaunchParameters.swift | Swift |
<|file_sep|>lib/rubocop/cop/lint/useless_comparison.rb.diff
original:
updated:
<|file_sep|>lib/rubocop/cop/lint/useless_comparison.rb.diff
original:
updated:
def_node_matcher :comparison?, "(send $_ {:#{OPS.join(' :')}} $_)"
<|file_sep|>original/lib/rubocop/cop/lint/useless_comparison.rb
#
# x.... | module Lint
# This cop checks for comparison of something with itself.
#
# @example
#
# x.top >= x.top
class UselessComparison < Cop
MSG = 'Comparison of something with itself detected.'.freeze
OPS = %w(== === != < > <= >= <=>).freeze
def_node_matcher :c... | <|file_sep|>lib/rubocop/cop/lint/useless_comparison.rb.diff
original:
updated:
<|file_sep|>lib/rubocop/cop/lint/useless_comparison.rb.diff
original:
updated:
def_node_matcher :comparison?, "(send $_ {:#{OPS.join(' :')}} $_)"
<|file_sep|>original/lib/rubocop/cop/lint/useless_comparison.rb
#
# x.... | d4cfe7dfa06551ea2ccb9da64025272b9338dfaa | lib/rubocop/cop/lint/useless_comparison.rb | lib/rubocop/cop/lint/useless_comparison.rb | Ruby |
<|file_sep|>original/setup.py
url='https://github.com/dirn/Simon',
packages=['simon'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
install_requires=['pymongo>=2.4'],
tests_require=['coverage', 'mock', 'nose'],
license=open('LICENSE').read(),
classifiers=[
... | packages=['simon'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
install_requires=['pymongo>=2.4'],
tests_require=['coverage', 'mock', 'nose'],
license=open('LICENSE').read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: D... | <|file_sep|>original/setup.py
url='https://github.com/dirn/Simon',
packages=['simon'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
install_requires=['pymongo>=2.4'],
tests_require=['coverage', 'mock', 'nose'],
license=open('LICENSE').read(),
classifiers=[
... | 597854eeaacaae71832833d41eea260ad5ef7279 | setup.py | setup.py | Python |
<|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
tox==2.6.0
coverage==4.3.4
Sphinx==1.5.2
cryptography==1.7.1
PyYAML==3.12
pytest==3.0.6
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
t... | pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.6.0
coverage==4.3.4
Sphinx==1.5.2
cryptography==1.7.1
PyYAML==3.12
pytest==3.0.6 | <|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
tox==2.6.0
coverage==4.3.4
Sphinx==1.5.2
cryptography==1.7.1
PyYAML==3.12
pytest==3.0.6
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
t... | 9182ba13c02e38dc9688461d67d13897f2c7e0cc | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/composer.json
"mockery/mockery": "^0.9.4",
"phpunit/phpunit": "^4.7.6"
},
"autoload": {
"psr-4": {
"GrahamCampbell\\Parse\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GrahamCampbell\\Tests\\Parse\\": "tests/"
}... | "autoload": {
"psr-4": {
"GrahamCampbell\\Parse\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GrahamCampbell\\Tests\\Parse\\": "tests/"
}
},
"config": {
"preferred-install": "dist"
},
"extra": {
"branch-alias": {
... | <|file_sep|>original/composer.json
"mockery/mockery": "^0.9.4",
"phpunit/phpunit": "^4.7.6"
},
"autoload": {
"psr-4": {
"GrahamCampbell\\Parse\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"GrahamCampbell\\Tests\\Parse\\": "tests/"
}... | 758ffdd730b316577680c15b433fbac525222b98 | composer.json | composer.json | JSON |
<|file_sep|>original/test_requirements.txt
# Python requirements for unit tests
unittest2
# Web test
webtest
# Use py.test as test-runner
pytest
pytest-cov
# Let coverage use the most recent version
coverage
# Report coverage results to coveralls.io
coveralls
# Static code analysis libraries
pylint
pycodestyle
pep257
#... | # Python requirements for unit tests
unittest2
# uWsgi Web server
uwsgi
# Web test
webtest
# Use py.test as test-runner
pytest
pytest-cov
# Let coverage use the most recent version
coverage
# Report coverage results to coveralls.io
coveralls
# Static code analysis libraries
pylint
pycodestyle
pep257
# alignak (most rec... | <|file_sep|>original/test_requirements.txt
# Python requirements for unit tests
unittest2
# Web test
webtest
# Use py.test as test-runner
pytest
pytest-cov
# Let coverage use the most recent version
coverage
# Report coverage results to coveralls.io
coveralls
# Static code analysis libraries
pylint
pycodestyle
pep257
#... | 37ac8848e5568ca794d06fc5aa7df2d0005c2ca9 | test_requirements.txt | test_requirements.txt | Text |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.