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/fantasyStocks/stocks/templates/trade.html
{% extends "loggedIn.html" %}
{% block title %}Trade{% endblock %}
{% block head %}{{ form.media }}{% endblock %}
{% block content %}
<div class="tradeHolder">
<form action="" method="POST">
{% csrf_token %}
<table align="center">
... | {% extends "loggedIn.html" %}
{% block title %}Trade{% endblock %}
{% block head %}{{ form.media }}{% endblock %}
{% block content %}
<div class="tradeHolder">
<form action="" method="POST">
{% csrf_token %}
<table align="center">
<tr>
<td>
<input type... | <|file_sep|>original/fantasyStocks/stocks/templates/trade.html
{% extends "loggedIn.html" %}
{% block title %}Trade{% endblock %}
{% block head %}{{ form.media }}{% endblock %}
{% block content %}
<div class="tradeHolder">
<form action="" method="POST">
{% csrf_token %}
<table align="center">
... | ea6945f33920b856400b74b71eae1fb34cb2ee98 | fantasyStocks/stocks/templates/trade.html | fantasyStocks/stocks/templates/trade.html | HTML |
<|file_sep|>original/README.md
# [Cocoon](https://npmjs.org/package/cocoon)
[](https://david-dm.org/brentlintner/cocoon)
A small utility module for wrapping property getters within functions.
It is useful as a TDD helper for creating mockable/spyable ... | # [Cocoon](https://npmjs.org/package/cocoon)
[](http://badge.fury.io/js/cocoon)
[](https://david-dm.org/brentlintner/cocoon)
A small utility module for wrapping property getters within functions.
It ... | <|file_sep|>original/README.md
# [Cocoon](https://npmjs.org/package/cocoon)
[](https://david-dm.org/brentlintner/cocoon)
A small utility module for wrapping property getters within functions.
It is useful as a TDD helper for creating mockable/spyable ... | 8c11f94a2587d892db4ec435062d869625c286aa | README.md | README.md | Markdown |
<|file_sep|>original/requirements.txt
--index-url https://pypi.python.org/simple/
ipython==4.2.0
sphinx
sphinx-autobuild
sphinxcontrib-plantuml
recommonmark
sphinx-rtd-theme
pytest-bdd==3.4.0
pytest-cov
pytest-mock
pytest-capturelog
pytest-twisted
coverage
pytest-runner
pytest
jinja2
mock
-e .
<|file_sep|>current/requ... | --index-url https://pypi.python.org/simple/
ipython==4.2.0
sphinx
sphinx-autobuild
sphinxcontrib-plantuml
recommonmark
sphinx-rtd-theme
pytest-bdd<4.0.0
pytest-cov
pytest-mock
pytest-capturelog
pytest-twisted
coverage
pytest-runner
pytest
jinja2
mock
-e . | <|file_sep|>original/requirements.txt
--index-url https://pypi.python.org/simple/
ipython==4.2.0
sphinx
sphinx-autobuild
sphinxcontrib-plantuml
recommonmark
sphinx-rtd-theme
pytest-bdd==3.4.0
pytest-cov
pytest-mock
pytest-capturelog
pytest-twisted
coverage
pytest-runner
pytest
jinja2
mock
-e .
<|file_sep|>current/requ... | 4baed3b0b6afcec3d607a0e4950f92e936c18575 | requirements.txt | requirements.txt | Text |
<|file_sep|>src/app.yaml.diff
original:
# --timeout 10800
updated:
# --timeout=10800
<|file_sep|>original/src/app.yaml
# 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.
runtime: custom
env: f... | # 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.
runtime: custom
env: flex
# gunicorn options:
# --timeout=10800
# Use a 2.5 hour timeout, which is greater than the internal 2 hour deferre... | <|file_sep|>src/app.yaml.diff
original:
# --timeout 10800
updated:
# --timeout=10800
<|file_sep|>original/src/app.yaml
# 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.
runtime: custom
env: f... | 9ef789bb3985bede2fba7d68c73cbcef117b526d | src/app.yaml | src/app.yaml | YAML |
<|file_sep|>immutabillity/src/main.rs.diff
original:
let subject = "world";
updated:
let mut subject = "world";
<|file_sep|>original/immutabillity/src/main.rs
fn main() {
let subject = "world";
println!("Hello, {}!", subject);
println!("Goodbye, {}!", subject);
}
<|file_sep|>current/immutabillity/src/main.... | fn main() {
let mut subject = "world";
println!("Hello, {}!", subject);
println!("Goodbye, {}!", subject);
subject = "moon";
println!("Hello, {}!", subject);
println!("Goodbye, {}!", subject);
} | <|file_sep|>immutabillity/src/main.rs.diff
original:
let subject = "world";
updated:
let mut subject = "world";
<|file_sep|>original/immutabillity/src/main.rs
fn main() {
let subject = "world";
println!("Hello, {}!", subject);
println!("Goodbye, {}!", subject);
}
<|file_sep|>current/immutabillity/src/main.... | b7f32273b8b0cb1979e144058d27cb2d1fa1c912 | immutabillity/src/main.rs | immutabillity/src/main.rs | Rust |
<|file_sep|>original/stack.yaml
resolver: lts-5.7
packages:
- '.'
- location:
git: git@github.com:futurice/haskell-base64-bytestring-type.git
commit: 0a1176d16c71c219fe113bc3f130f64d8dda47bc
extra-deps:
- servant-0.5
- servant-server-0.5
- servant-client-0.5
- refined-0.1.2
<|file_sep|>current/s... | resolver: lts-5.7
packages:
- '.'
- location:
git: https://github.com/futurice/haskell-base64-bytestring-type.git
commit: 0a1176d16c71c219fe113bc3f130f64d8dda47bc
extra-deps:
- servant-0.5
- servant-server-0.5
- servant-client-0.5
- refined-0.1.2 | <|file_sep|>original/stack.yaml
resolver: lts-5.7
packages:
- '.'
- location:
git: git@github.com:futurice/haskell-base64-bytestring-type.git
commit: 0a1176d16c71c219fe113bc3f130f64d8dda47bc
extra-deps:
- servant-0.5
- servant-server-0.5
- servant-client-0.5
- refined-0.1.2
<|file_sep|>current/s... | 1fe3c766e57fffe6546d35f8ae26c1676a4af0fd | stack.yaml | stack.yaml | YAML |
<|file_sep|>cronos/templates/posts.html.diff
original:
<link rel="alternate" type="application/rss+xml" title="{{ title }} RSS"
updated:
<|file_sep|>cronos/templates/posts.html.diff
original:
href="/announcements/{{ user }}/feed"
updated:
<link rel="alternate" type="application/rss+xml" title="{{ t... | {% block title %}
{{ title }} |
{% endblock %}
{% block more %}
{% if title == "Ανακοινώσεις" %}
<link rel="alternate" type="application/rss+xml" title="{{ title }} RSS" href="/announcements/{{ user }}/feed" />
{% elif title == "Blog" %}
<link rel="alternate" type="application/rss+xml" tit... | <|file_sep|>cronos/templates/posts.html.diff
original:
<link rel="alternate" type="application/rss+xml" title="{{ title }} RSS"
updated:
<|file_sep|>cronos/templates/posts.html.diff
original:
href="/announcements/{{ user }}/feed"
updated:
<link rel="alternate" type="application/rss+xml" title="{{ t... | 1a1104541f7c70178e0f1f21ce8eee52ee06ca66 | cronos/templates/posts.html | cronos/templates/posts.html | HTML |
<|file_sep|>original/launch/gearman-load-logger.yml
run:
type: docker
env: []
dependencies:
- gearmand
team: eng-secure-sync
use_iam_roles: true
resources:
cpu: 0.0 # no CPU to improve resource usage (https://clever.atlassian.net/browse/INFRA-2120)
soft_mem_limit: 0.01
max_mem: 0.1
<|file_sep|>current/launch/g... | run:
type: docker
env: []
dependencies:
- gearmand
team: eng-secure-sync
aws:
managed:
clever:
- CloudWatchMetricsWriter
resources:
cpu: 0.0 # no CPU to improve resource usage (https://clever.atlassian.net/browse/INFRA-2120)
soft_mem_limit: 0.01
max_mem: 0.1 | <|file_sep|>original/launch/gearman-load-logger.yml
run:
type: docker
env: []
dependencies:
- gearmand
team: eng-secure-sync
use_iam_roles: true
resources:
cpu: 0.0 # no CPU to improve resource usage (https://clever.atlassian.net/browse/INFRA-2120)
soft_mem_limit: 0.01
max_mem: 0.1
<|file_sep|>current/launch/g... | 22bf5ef6afd43922100f7ade1b1fc62bf94c82a2 | launch/gearman-load-logger.yml | launch/gearman-load-logger.yml | YAML |
<|file_sep|>original/_posts/2017-08-26-boost-with-compiler-explorer.md
<|file_sep|>current/_posts/2017-08-26-boost-with-compiler-explorer.md
<|file_sep|>updated/_posts/2017-08-26-boost-with-compiler-explorer.md | ---
layout: post
title: Using Boost in Compiler Explorer
tags: [c++, compiler-explorer, boost, godbolt]
---
You can use Boost in the [Godbolt Compiler Explorer](https://godbolt.org/) by
adding the correct include path in to the compiler flags:
```
-I/opt/compiler-explorer/libs/boost_1_64_0
```
It's not clear where the... | <|file_sep|>original/_posts/2017-08-26-boost-with-compiler-explorer.md
<|file_sep|>current/_posts/2017-08-26-boost-with-compiler-explorer.md
<|file_sep|>updated/_posts/2017-08-26-boost-with-compiler-explorer.md
---
layout: post
title: Using Boost in Compiler Explorer
tags: [c++, compiler-explorer, boost, godbolt]
---... | d284438a89770771ea1b648a64de1321e0dd389e | _posts/2017-08-26-boost-with-compiler-explorer.md | _posts/2017-08-26-boost-with-compiler-explorer.md | Markdown |
<|file_sep|>original/kargtom/twodim/LongestChain/longestChain_002.py
<|file_sep|>current/kargtom/twodim/LongestChain/longestChain_002.py
<|file_sep|>updated/kargtom/twodim/LongestChain/longestChain_002.py | def longestChain(words):
lendict = {}
lenlist = []
# build the dictory where
# the key is the length of a word,
# and the value is the set of words with the length
for word in words:
l = len(word)
if len(word) in lendict:
lendict[l][word] = -1
else:
... | <|file_sep|>original/kargtom/twodim/LongestChain/longestChain_002.py
<|file_sep|>current/kargtom/twodim/LongestChain/longestChain_002.py
<|file_sep|>updated/kargtom/twodim/LongestChain/longestChain_002.py
def longestChain(words):
lendict = {}
lenlist = []
# build the dictory where
# the key is the le... | 6eca5cd06da3a195f226d2b864b8af41b62bda45 | kargtom/twodim/LongestChain/longestChain_002.py | kargtom/twodim/LongestChain/longestChain_002.py | Python |
<|file_sep|>original/tests/scripts/unit/wee-screen.js
<|file_sep|>current/tests/scripts/unit/wee-screen.js
<|file_sep|>updated/tests/scripts/unit/wee-screen.js | import $screen from 'wee-screen';
import { _html, _win } from 'core/variables';
function setScreenSize(size) {
_html.style.fontFamily = '"' + size + '"';
triggerEvent(_win, 'resize');
}
// TODO: Once merged, extract this helper and use in both
// TODO: events and screen
function triggerEvent(el, type) {
let e = do... | <|file_sep|>original/tests/scripts/unit/wee-screen.js
<|file_sep|>current/tests/scripts/unit/wee-screen.js
<|file_sep|>updated/tests/scripts/unit/wee-screen.js
import $screen from 'wee-screen';
import { _html, _win } from 'core/variables';
function setScreenSize(size) {
_html.style.fontFamily = '"' + size + '"';
t... | 2d2d9043857e61a0886afe5ac5a90e83d43f2081 | tests/scripts/unit/wee-screen.js | tests/scripts/unit/wee-screen.js | JavaScript |
<|file_sep|>spec/integration/uwdc_spec.rb.diff
original:
updated:
require 'uwdc'
<|file_sep|>original/spec/integration/uwdc_spec.rb
require 'spec_helper'
describe 'UWDC::Mets' do
before(:each) do
@id = '33QOBSVPJLWEM8S'
end
it "should return METS" do
expect(UWDC::Mets.new(@id)).to be_successful
end
e... | require 'spec_helper'
require 'uwdc'
describe 'UWDC::Mets' do
before(:each) do
@id = '33QOBSVPJLWEM8S'
end
context 'METS' do
xml = UWDC::Mets.new(@id).xml
it "should return a Nokogiri document" do
expect(xml).to be_an_instance_of(Nokogiri::XML::Document)
end
it 'should have mods' ... | <|file_sep|>spec/integration/uwdc_spec.rb.diff
original:
updated:
require 'uwdc'
<|file_sep|>original/spec/integration/uwdc_spec.rb
require 'spec_helper'
describe 'UWDC::Mets' do
before(:each) do
@id = '33QOBSVPJLWEM8S'
end
it "should return METS" do
expect(UWDC::Mets.new(@id)).to be_successful
end
e... | fd770e3e6339d369b0e7cf1115e74e3d6b24cf44 | spec/integration/uwdc_spec.rb | spec/integration/uwdc_spec.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
- 2.6
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
install:
- python setup.py install
script:
- export DJANGO_SETTINGS_MODULE=saleor.test_settings
- python setup.py test
notifications:
webhooks: https://webhooks.gitter.im/e/af18bf2d... | language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
install:
- python setup.py install
script:
- export DJANGO_SETTINGS_MODULE=saleor.test_settings
- python setup.py test
notifications:
webhooks: https://webhooks.gitter.im/e/af18bf2decb40329066b | <|file_sep|>.travis.yml.diff
original:
- 2.6
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
install:
- python setup.py install
script:
- export DJANGO_SETTINGS_MODULE=saleor.test_settings
- python setup.py test
notifications:
webhooks: https://webhooks.gitter.im/e/af18bf2d... | 44005960b2e068363a68427ea50cf7e8cf6f06dc | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/restulicious/attributes.rb
def attribute_names
@attribute_names
end
end
def initialize(attributes = {})
self.class.attribute_names.each do |attr_name|
instance_variable_set("@#{attr_name}", check_utf8(attributes[attr_name]))
end
super
... | def attribute_names
@attribute_names
end
end
def initialize(attributes = {})
self.class.attribute_names.each do |attr_name|
instance_variable_set("@#{attr_name}", check_utf8(attributes[attr_name]))
end
super()
end
private
def check_utf8(x)
retu... | <|file_sep|>original/lib/restulicious/attributes.rb
def attribute_names
@attribute_names
end
end
def initialize(attributes = {})
self.class.attribute_names.each do |attr_name|
instance_variable_set("@#{attr_name}", check_utf8(attributes[attr_name]))
end
super
... | 2e628f6e200d2b2c9d7107192c10597d866ace1b | lib/restulicious/attributes.rb | lib/restulicious/attributes.rb | Ruby |
<|file_sep|>original/doc/website/static/css/custom.css
.hljs-type {
color: rgb(66, 138, 141);
}
.hljs-string {
color: rgb(88, 184, 187);
}
#screencast {
max-width: 45em;
}
<|file_sep|>current/doc/website/static/css/custom.css
.hljs-type {
color: rgb(66, 138, 141);
}
.hljs-string {
color: rgb(88, 184, 187);... | .hljs-type {
color: rgb(66, 138, 141);
}
.hljs-string {
color: rgb(88, 184, 187);
}
#screencast {
width: 100%;
max-width: 45em;
} | <|file_sep|>original/doc/website/static/css/custom.css
.hljs-type {
color: rgb(66, 138, 141);
}
.hljs-string {
color: rgb(88, 184, 187);
}
#screencast {
max-width: 45em;
}
<|file_sep|>current/doc/website/static/css/custom.css
.hljs-type {
color: rgb(66, 138, 141);
}
.hljs-string {
color: rgb(88, 184, 187);... | 76a799497a25257c4c6beb21aea02d92f2ea7f9c | doc/website/static/css/custom.css | doc/website/static/css/custom.css | CSS |
<|file_sep|>original/CHANGELOG.txt
<|file_sep|>current/CHANGELOG.txt
<|file_sep|>updated/CHANGELOG.txt |
2.0.0 (2016-10-12)
Depending of the features used, this release might not be binary compatible
with previous releases. Recompilation of the client apps is adviced.
- More entities in the Activity model implements Serializable
- Activity model expanded to support more twitter features (140plus
characters, ... | <|file_sep|>original/CHANGELOG.txt
<|file_sep|>current/CHANGELOG.txt
<|file_sep|>updated/CHANGELOG.txt
2.0.0 (2016-10-12)
Depending of the features used, this release might not be binary compatible
with previous releases. Recompilation of the client apps is adviced.
- More entities in the Activity model impleme... | e72b15d1b560d110dbbb60a95be408ba92b557fb | CHANGELOG.txt | CHANGELOG.txt | Text |
<|file_sep|>original/integration-test/912-missing-building-part.py
<|file_sep|>current/integration-test/912-missing-building-part.py
<|file_sep|>updated/integration-test/912-missing-building-part.py | # http://www.openstreetmap.org/way/287494678
z = 18
x = 77193
y = 98529
while z >= 16:
assert_has_feature(
z, x, y, 'buildings',
{ 'kind': 'building',
'id': 287494678 })
z -= 1
x /= 2
y /= 2 | <|file_sep|>original/integration-test/912-missing-building-part.py
<|file_sep|>current/integration-test/912-missing-building-part.py
<|file_sep|>updated/integration-test/912-missing-building-part.py
# http://www.openstreetmap.org/way/287494678
z = 18
x = 77193
y = 98529
while z >= 16:
assert_has_feature(
... | f0ac1914790e69fe786d6d3182cf15fd09302c28 | integration-test/912-missing-building-part.py | integration-test/912-missing-building-part.py | Python |
<|file_sep|>original/lib/songkickr/result_set.rb
results_page = result_hash["resultsPage"]
if results_page
@status = results_page["status"] if results_page.include? "status"
@page = results_page["page"] if results_page.include? "page"
... | results_page = result_hash["resultsPage"]
if results_page
@status = results_page["status"] if results_page.include? "status"
@page = results_page["page"] if results_page.include? "page"
@per_page = results_page["per_page"] ... | <|file_sep|>original/lib/songkickr/result_set.rb
results_page = result_hash["resultsPage"]
if results_page
@status = results_page["status"] if results_page.include? "status"
@page = results_page["page"] if results_page.include? "page"
... | 6bdab7fe0eda900469c6be7489ae4070b7872ae7 | lib/songkickr/result_set.rb | lib/songkickr/result_set.rb | Ruby |
<|file_sep|>original/requirements.txt
Flask==0.10.1
Jinja2==2.7.3
Werkzeug==0.10.4
eventlet==0.17.3
gunicorn==19.3.0
requests==2.6.2
<|file_sep|>current/requirements.txt
Flask==0.10.1
Jinja2==2.7.3
Werkzeug==0.10.4
eventlet==0.17.3
gunicorn==19.3.0
requests==2.6.2
<|file_sep|>updated/requirements.txt | Flask==0.10.1
Jinja2==2.7.3
Werkzeug==0.10.4
eventlet==0.17.1
gunicorn==19.3.0
requests==2.6.2 | <|file_sep|>original/requirements.txt
Flask==0.10.1
Jinja2==2.7.3
Werkzeug==0.10.4
eventlet==0.17.3
gunicorn==19.3.0
requests==2.6.2
<|file_sep|>current/requirements.txt
Flask==0.10.1
Jinja2==2.7.3
Werkzeug==0.10.4
eventlet==0.17.3
gunicorn==19.3.0
requests==2.6.2
<|file_sep|>updated/requirements.txt
Flask==0.10.1
Jinj... | 69d61ec6fc6f26831c08a9cb933bf4bf269e3f2e | requirements.txt | requirements.txt | Text |
<|file_sep|>original/metadata.rb
name "drbd"
maintainer "Chef Software, Inc."
maintainer_email "cookbooks@chef.io"
license "Apache 2.0"
description "Installs/Configures drbd."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.9.1"
%w(ubun... | name "drbd"
maintainer "Chef Software, Inc."
maintainer_email "cookbooks@chef.io"
license "Apache 2.0"
description "Installs/Configures drbd."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.9.1"
%w(ubuntu debian redhat centos scientifi... | <|file_sep|>original/metadata.rb
name "drbd"
maintainer "Chef Software, Inc."
maintainer_email "cookbooks@chef.io"
license "Apache 2.0"
description "Installs/Configures drbd."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.9.1"
%w(ubun... | acbf72968ee2a97cea24d3b49f75dcfb7335cd28 | metadata.rb | metadata.rb | Ruby |
<|file_sep|>SoberConfig.cmake.in.diff
original:
find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH)
updated:
<|file_sep|>original/SoberConfig.cmake.in
# https://github.com/forexample/package-example
# See manual:
# * http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:CMakePackageConfigHel... | # https://github.com/forexample/package-example
# See manual:
# * http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:CMakePackageConfigHelpers
find_package(
CppNetlibUri CONFIG REQUIRED PATHS @CppNetlibUri_DIR@ NO_DEFAULT_PATH
)
find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH)
find... | <|file_sep|>SoberConfig.cmake.in.diff
original:
find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH)
updated:
<|file_sep|>original/SoberConfig.cmake.in
# https://github.com/forexample/package-example
# See manual:
# * http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:CMakePackageConfigHel... | 0a908bb71a5018e34039a8b5633b9f8262df060b | SoberConfig.cmake.in | SoberConfig.cmake.in | unknown |
<|file_sep|>original/client/Services/RoomService.js
this.createRoom(room, this.hasBeenAdded.bind(this), this.getThem.bind(this))
}
getThem(userid) {
this.getRooms(userid, this.gotthem.bind(this))
}
createRoom(interviewer, roomid, callback) {
axios.post('/api/Meeting', {
owner_id: interview... | this.createRoom(room, this.hasBeenAdded.bind(this), this.getThem.bind(this))
}
getThem(userid) {
this.getRooms(userid, this.gotthem.bind(this))
}
createRoom(interviewer, roomid, callback) {
axios.post('/api/Meeting', {
owner_id: interviewer,
job_position: 'janitor'
})
.then... | <|file_sep|>original/client/Services/RoomService.js
this.createRoom(room, this.hasBeenAdded.bind(this), this.getThem.bind(this))
}
getThem(userid) {
this.getRooms(userid, this.gotthem.bind(this))
}
createRoom(interviewer, roomid, callback) {
axios.post('/api/Meeting', {
owner_id: interview... | 51bdf80b5aa1d0f5f2c98800017ce11c067ede9d | client/Services/RoomService.js | client/Services/RoomService.js | JavaScript |
<|file_sep|>reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java.diff
original:
updated:
import kafka.consumer.Consumer;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.ConsumerIterator;
import kafka.consumer.KafkaStream;
import kafka.javaapi.consumer.ConsumerConnector;
import kafka.message.Messag... |
for(Map.Entry<Subscription, Subscriber<? super KeyValuePair<K, V>>> entry: subscribers.entrySet()) {
entry.getValue().onNext(kvp);
}
}
});
}
}
@Override
public void subscribe(Subscriber<? super KeyValuePair<K, V>> subscriber) {
this.subscribers.put(new Kaf... | <|file_sep|>reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java.diff
original:
updated:
import kafka.consumer.Consumer;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.ConsumerIterator;
import kafka.consumer.KafkaStream;
import kafka.javaapi.consumer.ConsumerConnector;
import kafka.message.Messag... | 90017332a560332176fa65a0bea0ae79e6e6d4cf | reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java | reactor-kafka/src/main/java/reactor/kafka/KafkaPublisher.java | Java |
<|file_sep|>original/app/views/maps/index.html.erb
<p id="demo">Click the button to get your position.</p>
<button onclick="getLocation()">Try It</button>
<div id="mapholder"></div>
<div id="googleMap" style="width:500px;height:380px;"></div>
<|file_sep|>current/app/views/maps/index.html.erb
<p id="demo">Click the bu... | <div id="googleMap" style="width:1024px;height:640px;"></div> | <|file_sep|>original/app/views/maps/index.html.erb
<p id="demo">Click the button to get your position.</p>
<button onclick="getLocation()">Try It</button>
<div id="mapholder"></div>
<div id="googleMap" style="width:500px;height:380px;"></div>
<|file_sep|>current/app/views/maps/index.html.erb
<p id="demo">Click the bu... | 8eb0c2b536f932d6ef0fc0cd06dea33d3b5084cb | app/views/maps/index.html.erb | app/views/maps/index.html.erb | HTML+ERB |
<|file_sep|>wtsclient/src/manifest.json.diff
original:
"name": "WTS Client",
updated:
"name": "Web Test Client",
<|file_sep|>original/wtsclient/src/manifest.json
{
"display": [
"fullscreen"
],
"icons": [{
"sizes": "512x512",
"src": "images/icon512.png"
}],
"na... | {
"display": [
"fullscreen"
],
"icons": [{
"sizes": "512x512",
"src": "images/icon512.png"
}],
"name": "Web Test Client",
"orientation": "any",
"start_url": "http://wts.crosswalk-project.org",
"xwalk_description": "Web Test Client Application",
"xwalk_... | <|file_sep|>wtsclient/src/manifest.json.diff
original:
"name": "WTS Client",
updated:
"name": "Web Test Client",
<|file_sep|>original/wtsclient/src/manifest.json
{
"display": [
"fullscreen"
],
"icons": [{
"sizes": "512x512",
"src": "images/icon512.png"
}],
"na... | e25f2c8b118e66caca8b6d5a1198c82461a32214 | wtsclient/src/manifest.json | wtsclient/src/manifest.json | JSON |
<|file_sep|>original/README.md
# episode-008
Where we introduce functions
## Setup
The following needs to be prepared
* A project with the name `functions`
* Repetition of printing `hello` and `goodbye` to two different subjects.
<|file_sep|>current/README.md
# episode-008
Where we introduce functions
## Setup
The f... | # episode-008
Where we introduce functions
## Setup
The following needs to be prepared
* A project with the name `functions`
* Repetition of printing `hello` and `goodbye` to two different subjects.
## Script
Look at the following code
```rust
let mut subject = "world";
println!("Hello, {}!", subject);
println!("G... | <|file_sep|>original/README.md
# episode-008
Where we introduce functions
## Setup
The following needs to be prepared
* A project with the name `functions`
* Repetition of printing `hello` and `goodbye` to two different subjects.
<|file_sep|>current/README.md
# episode-008
Where we introduce functions
## Setup
The f... | 7ce0517b3d2c3964467aa35f10394b4eb2f9e1cb | README.md | README.md | Markdown |
<|file_sep|>original/app/Http/Requests/UpdateMachineRequest.php
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'modality' => 'required|integer',
'description' => 'required|string|max:60',
... | * Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'modality' => 'required|integer',
'description' => 'required|string|max:60',
'manufacturer' => 'required|integer',
'model... | <|file_sep|>original/app/Http/Requests/UpdateMachineRequest.php
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'modality' => 'required|integer',
'description' => 'required|string|max:60',
... | 1fd1db777b03fbf46a37abf9f64ce2785b7a3f0f | app/Http/Requests/UpdateMachineRequest.php | app/Http/Requests/UpdateMachineRequest.php | PHP |
<|file_sep|>original/.travis.yml
env:
- PYTHONHASHSEED=0
install:
- make travis-setup
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# PyPy versions
- "pypy2"
- "pypy3"
script:
- make ci
jobs:
include:
- stage: coverage
python:
<|file_sep|>current/.travis.yml
env:
- PYTHO... | env:
- PYTHONHASHSEED=0
install:
- make travis-setup
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
# PyPy versions
- "pypy2"
- "pypy3"
script:
- make ci
jobs:
include:
- stage: coverage
python: | <|file_sep|>original/.travis.yml
env:
- PYTHONHASHSEED=0
install:
- make travis-setup
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# PyPy versions
- "pypy2"
- "pypy3"
script:
- make ci
jobs:
include:
- stage: coverage
python:
<|file_sep|>current/.travis.yml
env:
- PYTHO... | 96f3cf4889330c70980f3ad344c43f43e7d2f002 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
gemfile:
- Gemfile
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
matrix:
allow_failures:
- rvm: 2.2
gemfile: gemfiles/Gemfile-rails.3.2.x
notifications:
email: fa... | language: ruby
sudo: false
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
gemfile:
- Gemfile
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
matrix:
allow_failures:
- rvm: 2.2
gemfile: gemfiles/Gemfile-rails.3.2.x
notifications:
email: false
slack:
on_s... | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
gemfile:
- Gemfile
- gemfiles/Gemfile-rails.3.2.x
- gemfiles/Gemfile-rails.4.0.x
- gemfiles/Gemfile-rails.4.1.x
matrix:
allow_failures:
- rvm: 2.2
gemfile: gemfiles/Gemfile-rails.3.2.x
notifications:
email: fa... | 3362aef623ae81bf6c4a813106994e2218ed49ff | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test/helper.js
resetCache
} from '../src';
import User from './entity/UserSchema';
beforeEach(resetCache);
export const createConnection = () => {
const {TYPE, DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE} = process.env;
const driverOptions = {
type: TYPE,
port: 5432,
host: DB_... | resetCache
} from '../src';
import User from './entity/UserSchema';
beforeEach(resetCache);
export const createConnection = () => {
const {TYPE, DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE} = process.env;
const driverOptions = {
type: TYPE || 'postgres',
port: 5432,
host: DB_HOST,
username: DB... | <|file_sep|>original/test/helper.js
resetCache
} from '../src';
import User from './entity/UserSchema';
beforeEach(resetCache);
export const createConnection = () => {
const {TYPE, DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE} = process.env;
const driverOptions = {
type: TYPE,
port: 5432,
host: DB_... | 1e1f7688db40238a6f9980b639547e2bf4bda378 | test/helper.js | test/helper.js | JavaScript |
<|file_sep|>app/index.html.diff
original:
updated:
<title>wotf-cyoa</title
<|file_sep|>app/index.html.diff
original:
updated:
<meta name="description" content="Wizards of the Future: Craft Your Own Adventure">
<|file_sep|>original/app/index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<... | <!doctype html>
<html lang="en">
<head>
<title>wotf-cyoa</title
<meta charset="utf-8">
<meta name="description" content="Wizards of the Future: Craft Your Own Adventure">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-sc... | <|file_sep|>app/index.html.diff
original:
updated:
<title>wotf-cyoa</title
<|file_sep|>app/index.html.diff
original:
updated:
<meta name="description" content="Wizards of the Future: Craft Your Own Adventure">
<|file_sep|>original/app/index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<... | af2c220449155a5a2af608d0b81ddc9d2d53d1ee | app/index.html | app/index.html | HTML |
<|file_sep|>docs/conf.py.diff
original:
updated:
import datetime
<|file_sep|>docs/conf.py.diff
original:
copyright = "2016-2021, {:s}".format(author)
updated:
copyright = f"2016-{datetime.date.today().year}, {author}"
<|file_sep|>original/docs/conf.py
"sphinx.ext.viewcode"
]
source_suffix = ".rst"
master_doc = "i... | "sphinx.ext.viewcode"
]
source_suffix = ".rst"
master_doc = "index"
language = None
exclude_patterns = ["build", "*.egg*"]
# Output options
html_theme = "sphinx_rtd_theme"
html_show_sphinx = False
html_baseurl = "pymanopt.org"
htmlhelp_basename = "pymanoptdoc"
html_last_updated_fmt = ""
# autodoc
autodoc_default_... | <|file_sep|>docs/conf.py.diff
original:
updated:
import datetime
<|file_sep|>docs/conf.py.diff
original:
copyright = "2016-2021, {:s}".format(author)
updated:
copyright = f"2016-{datetime.date.today().year}, {author}"
<|file_sep|>original/docs/conf.py
"sphinx.ext.viewcode"
]
source_suffix = ".rst"
master_doc = "i... | c0daf6e2c549e2857f8acfc69ae97635705a5342 | docs/conf.py | docs/conf.py | Python |
<|file_sep|>original/zerver/migrations/0306_custom_profile_field_date_format.py
date values of custom profile fields. Correct them by adding the
missing leading zeros: 1909-03-05.
"""
dependencies = [
("zerver", "0305_realm_deactivated_redirect"),
]
operations = [
migrations.Ru... |
dependencies = [
("zerver", "0305_realm_deactivated_redirect"),
]
operations = [
migrations.RunSQL(
sql="""\
UPDATE zerver_customprofilefieldvalue
SET value = to_char(to_date(value, 'YYYY-MM-DD'), 'YYYY-MM-DD')
FROM zerver_customp... | <|file_sep|>original/zerver/migrations/0306_custom_profile_field_date_format.py
date values of custom profile fields. Correct them by adding the
missing leading zeros: 1909-03-05.
"""
dependencies = [
("zerver", "0305_realm_deactivated_redirect"),
]
operations = [
migrations.Ru... | 69890f36b1853b3845ff29ec15ccde11f7ac86f2 | zerver/migrations/0306_custom_profile_field_date_format.py | zerver/migrations/0306_custom_profile_field_date_format.py | Python |
<|file_sep|>setup.py.diff
original:
updated:
<|file_sep|>setup.py.diff
original:
updated:
include_package_data=True,
<|file_sep|>original/setup.py
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'knightos',
packages = ['knightos', 'knightos.commands'],
version = ver,
description = 'Kni... | stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'knightos',
packages = ['knightos', 'knightos.commands'],
version = ver,
description = 'KnightOS SDK',
author = 'Drew DeVault',
author_email = 'sir@cmpwn.com',
url = 'https://github.com/KnightOS/sdk',
install_requires = ['requests', 'py... | <|file_sep|>setup.py.diff
original:
updated:
<|file_sep|>setup.py.diff
original:
updated:
include_package_data=True,
<|file_sep|>original/setup.py
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'knightos',
packages = ['knightos', 'knightos.commands'],
version = ver,
description = 'Kni... | 0e82fba1c9769f71c162c8364fe783d2cc3cda17 | setup.py | setup.py | Python |
<|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.6'
- '7.0'
env:
matrix:
- XDEBUG_VERSION=2.4
- XDEBUG_VERSION=2.3
before_install:
- pecl install xdebug-$XDEBUG_VERSION
- phpenv config-add php.ini
- nvm install 4.1.1
- nvm use 4.1.1
- npm install -g typings
install:
- npm install
- t... | language: php
php:
- '5.4'
- '5.6'
- '7.0'
env:
matrix:
- XDEBUG_VERSION=stable
- XDEBUG_VERSION=2.3.3
before_install:
- pecl install xdebug-$XDEBUG_VERSION
- phpenv config-add php.ini
- nvm install 4.1.1
- nvm use 4.1.1
- npm install -g typings
install:
- npm install
- typings install
script:
- np... | <|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.6'
- '7.0'
env:
matrix:
- XDEBUG_VERSION=2.4
- XDEBUG_VERSION=2.3
before_install:
- pecl install xdebug-$XDEBUG_VERSION
- phpenv config-add php.ini
- nvm install 4.1.1
- nvm use 4.1.1
- npm install -g typings
install:
- npm install
- t... | 47ea2cb403f15f98ee5cc3063e538bbcd795bdb7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml
---
features:
- Introspection command got --wait flag to wait for introspection finish.
<|file_sep|>current/releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml
---
features:
- Introspection command got --wait flag to wait for i... | ---
upgrade:
- When setting IPMI credentials is requested, the introspection commands
prints a notice to stdout. This was not desired, and it is not printed
to stderr instead.
features:
- Introspection command got --wait flag to wait for introspection finish. | <|file_sep|>original/releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml
---
features:
- Introspection command got --wait flag to wait for introspection finish.
<|file_sep|>current/releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml
---
features:
- Introspection command got --wait flag to wait for i... | 1709ba6bd6a922eb87fa3b4e44fb69ae1b1e7e89 | releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml | releasenotes/notes/introspection-wait-a7e8fe832c3aaff9.yaml | YAML |
<|file_sep|>tests/phpunit.xml.dist.diff
original:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
updated:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
<|file_sep|>tests/phpunit.xml.dist.diff
original:
<filter>
<whitelist>
updated:
... | pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="false">
<include>
<directory suffix=".php">../</directory>
</include>
<exclude>
<directory>../.git</directory>
<directory>../.github</d... | <|file_sep|>tests/phpunit.xml.dist.diff
original:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
updated:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
<|file_sep|>tests/phpunit.xml.dist.diff
original:
<filter>
<whitelist>
updated:
... | 6a4b5679c74bd41d3e1d401dd5988f004508617c | tests/phpunit.xml.dist | tests/phpunit.xml.dist | unknown |
<|file_sep|>original/Sources/GraphicsCanvas.swift
import CoreGraphics
public class GraphicsCanvas: Canvas {
private var tortoiseCharmer = TortoiseCharmer(tortoiseCount: 0)
private let graphicsContext: GraphicsContext
public init(size: CGSize, context: CGContext) {
#if os(iOS)
let isUI... | import CoreGraphics
public class GraphicsCanvas: Canvas {
private var tortoiseCharmer = TortoiseCharmer()
private let graphicsContext: GraphicsContext
public init(size: CGSize, context: CGContext) {
#if os(iOS)
let isUIViewContext = true
#else
let isUIViewContext =... | <|file_sep|>original/Sources/GraphicsCanvas.swift
import CoreGraphics
public class GraphicsCanvas: Canvas {
private var tortoiseCharmer = TortoiseCharmer(tortoiseCount: 0)
private let graphicsContext: GraphicsContext
public init(size: CGSize, context: CGContext) {
#if os(iOS)
let isUI... | 4046c1ac32c92104d172832289727ce6bdcbf3fd | Sources/GraphicsCanvas.swift | Sources/GraphicsCanvas.swift | Swift |
<|file_sep|>original/package.json
"html"
],
"author": "Hyunje Alex Jun <me@noraesae.net> (http://noraesae.net/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/noraesae/react-render-html/issues"
},
"homepage": "https://github.com/noraesae/react-render-html#readme",
"devDependencies": {
... | "html"
],
"author": "Hyunje Alex Jun <me@noraesae.net> (http://noraesae.net/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/noraesae/react-render-html/issues"
},
"homepage": "https://github.com/noraesae/react-render-html#readme",
"devDependencies": {
"ava": "^0.15.2",
"react": "... | <|file_sep|>original/package.json
"html"
],
"author": "Hyunje Alex Jun <me@noraesae.net> (http://noraesae.net/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/noraesae/react-render-html/issues"
},
"homepage": "https://github.com/noraesae/react-render-html#readme",
"devDependencies": {
... | 407b3ca6e15622150aea7509fd9d7d3520206be8 | package.json | package.json | JSON |
<|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>original/src/PhpTabs/Component/Config.php
*
* @param string $key option name
* @param... | * @param string $key option name
* @param mixed $value optional option value
*/
public static function set($key, $value = null)
{
if (is_string($key))
{
self::$data[$key] = $value;
}
}
/**
* Gets all defined options
*
* @return array All defined options
*/
public stati... | <|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>src/PhpTabs/Component/Config.php.diff
original:
updated:
<|file_sep|>original/src/PhpTabs/Component/Config.php
*
* @param string $key option name
* @param... | 2f46e88e1a2857aebf8eb7111e7606f91d07fde0 | src/PhpTabs/Component/Config.php | src/PhpTabs/Component/Config.php | PHP |
<|file_sep|>original/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json
<|file_sep|>current/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json
<|file_sep|>updated/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json | {
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/messages",
"log_group_name": "/aws/ec2/amazonlinux2/var-log-message"
},
{
"file_path": "/var/log/secure",
"log_group_name": "/aws/ec2/amazonlinux2/var-log-secure"
},
{
"... | <|file_sep|>original/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json
<|file_sep|>current/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json
<|file_sep|>updated/Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json
{
"logs": {
"logs_co... | a7c63a649befde9601d8396e3f96fb541f1386d1 | Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json | Config_AmazonCloudWatchAgent/AmazonCloudWatchAgent_AmazonLinux-2-LTS-HVM.json | JSON |
<|file_sep|>assets/js/modules/optimize/index.js.diff
original:
updated:
import domReady from '@wordpress/dom-ready';
<|file_sep|>assets/js/modules/optimize/index.js.diff
original:
updated:
import Data from 'googlesitekit-data';
<|file_sep|>assets/js/modules/optimize/index.js.diff
original:
import { SettingsMain as Op... | import { fillFilterWithComponent } from '../../util';
import { STORE_NAME as CORE_MODULES } from '../../googlesitekit/modules/datastore/constants';
/**
* Add component to the setup wizard.
*/
addFilter(
'googlesitekit.ModuleSetup-optimize',
'googlesitekit.OptimizeModuleSetupWizard',
fillFilterWithComponent( Optim... | <|file_sep|>assets/js/modules/optimize/index.js.diff
original:
updated:
import domReady from '@wordpress/dom-ready';
<|file_sep|>assets/js/modules/optimize/index.js.diff
original:
updated:
import Data from 'googlesitekit-data';
<|file_sep|>assets/js/modules/optimize/index.js.diff
original:
import { SettingsMain as Op... | 99f1680999747da59ef4b90bafddb467a92c5e19 | assets/js/modules/optimize/index.js | assets/js/modules/optimize/index.js | JavaScript |
<|file_sep|>original/db/migrate/20150201182006_create_schools.rb
<|file_sep|>current/db/migrate/20150201182006_create_schools.rb
<|file_sep|>updated/db/migrate/20150201182006_create_schools.rb | class CreateSchools < ActiveRecord::Migration
def change
create_table :schools do |t|
t.string :ats_system_code
t.string :location_code
t.string :location_name
t.string :managed_by_name
t.string :location_type_description
t.string :location_category_description
t.string :grades
t.string :g... | <|file_sep|>original/db/migrate/20150201182006_create_schools.rb
<|file_sep|>current/db/migrate/20150201182006_create_schools.rb
<|file_sep|>updated/db/migrate/20150201182006_create_schools.rb
class CreateSchools < ActiveRecord::Migration
def change
create_table :schools do |t|
t.string :ats_system_code
t... | 833142ecfb773eca8e4008fd7003a36be174cb3e | db/migrate/20150201182006_create_schools.rb | db/migrate/20150201182006_create_schools.rb | Ruby |
<|file_sep|>original/install.sh
<|file_sep|>current/install.sh
<|file_sep|>updated/install.sh | #/usr/bin/env bash
git submodule update --init --recursive
mkdir application/cache
mkdir application/logs
mkdir httpdocs/assets/cache
sudo chmod -R 777 application/cache application/logs httpdocs/assets/cache | <|file_sep|>original/install.sh
<|file_sep|>current/install.sh
<|file_sep|>updated/install.sh
#/usr/bin/env bash
git submodule update --init --recursive
mkdir application/cache
mkdir application/logs
mkdir httpdocs/assets/cache
sudo chmod -R 777 application/cache application/logs httpdocs/assets/cache | cb7e558a4fc64cd0393653b5f34c86096c0a685b | install.sh | install.sh | Shell |
<|file_sep|>original/{{cookiecutter.role_project_name}}/tasks/main.yml
---
# tasks file for {{ cookiecutter.role_name }}
- name: Run tasks on current environment
include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml"
<|file_sep|>current/{{cookiecutter.role_project_name}}/tasks/main.yml
---
# tasks file for {{ cookiec... | ---
# tasks file for {{ cookiecutter.role_name }}
- name: Run specified tasks on current platform
include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml" | <|file_sep|>original/{{cookiecutter.role_project_name}}/tasks/main.yml
---
# tasks file for {{ cookiecutter.role_name }}
- name: Run tasks on current environment
include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml"
<|file_sep|>current/{{cookiecutter.role_project_name}}/tasks/main.yml
---
# tasks file for {{ cookiec... | 21398f4b5afec6bafa633315cbd17fbcfb35e683 | {{cookiecutter.role_project_name}}/tasks/main.yml | {{cookiecutter.role_project_name}}/tasks/main.yml | YAML |
<|file_sep|>original/.travis.yml
dist: trusty
sudo: required
language: rust
rust:
- nightly
- beta
- stable
env:
global:
- secure: DLtoi131hH5kOKHzpBB0ZoVDjCWwSiHmTeGaS86ZPx+IHYQzZ6Ll4x/e82SBDG8YGRoOiJUYfatju84ew7Tk9RLK/xvULPJ/WNhSwBK/p9pYWmAl1+QFoaYT3VvsnuIzmIoFjAz6jluBAxvZ5L+pgagayC0BM1Kw83dMS6Ef1LY=
befo... | dist: trusty
sudo: required
language: rust
rust:
- nightly
- beta
- stable
env:
global:
- secure: DLtoi131hH5kOKHzpBB0ZoVDjCWwSiHmTeGaS86ZPx+IHYQzZ6Ll4x/e82SBDG8YGRoOiJUYfatju84ew7Tk9RLK/xvULPJ/WNhSwBK/p9pYWmAl1+QFoaYT3VvsnuIzmIoFjAz6jluBAxvZ5L+pgagayC0BM1Kw83dMS6Ef1LY=
matrix:
- COMPRESSION=0
- C... | <|file_sep|>original/.travis.yml
dist: trusty
sudo: required
language: rust
rust:
- nightly
- beta
- stable
env:
global:
- secure: DLtoi131hH5kOKHzpBB0ZoVDjCWwSiHmTeGaS86ZPx+IHYQzZ6Ll4x/e82SBDG8YGRoOiJUYfatju84ew7Tk9RLK/xvULPJ/WNhSwBK/p9pYWmAl1+QFoaYT3VvsnuIzmIoFjAz6jluBAxvZ5L+pgagayC0BM1Kw83dMS6Ef1LY=
befo... | de42ad39ca396cf59071d2c766d9ff8120f6441d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } = Path.Get... | {
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
/// <summary... | <|file_sep|>original/Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } = Path.Get... | 2a5a3f5992663ce45a0e4080f03514eb4946ee5c | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | C# |
<|file_sep|>.travis.yml.diff
original:
updated:
before_install:
- gem update bundler
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.2
- 2.0.0
<|file_sep|>current/.travis.yml
language: ruby
before_install:
- gem update bundler
rvm:
- 2.1.2
- 2.0.0
<|file_sep|>updated/.travis.yml | language: ruby
before_install:
- gem update bundler
rvm:
- 2.2
- 2.1
- 2.0 | <|file_sep|>.travis.yml.diff
original:
updated:
before_install:
- gem update bundler
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.2
- 2.0.0
<|file_sep|>current/.travis.yml
language: ruby
before_install:
- gem update bundler
rvm:
- 2.1.2
- 2.0.0
<|file_sep|>updated/.travis.yml
language: ruby
b... | ee848a2e3efb9ad52d88c340b6c247f08416607c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.github/workflows/vuepress.yml
uses: actions/setup-node@v2
with:
node-version: '14.15.4'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
... | uses: actions/setup-node@v2
with:
node-version: '14.15.4'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-n... | <|file_sep|>original/.github/workflows/vuepress.yml
uses: actions/setup-node@v2
with:
node-version: '14.15.4'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
... | d9ee268d9484ff2448cfa4dac2f87c21196aff76 | .github/workflows/vuepress.yml | .github/workflows/vuepress.yml | YAML |
<|file_sep|>original/app/views/projects/_topbar_middle.html.haml
%ul.nav
%li.dropdown
= link_to @project.github_project_name, '#', :class => "dropdown-toggle"
%ul.dropdown-menu
%li
= link_to 'Edit project', github_project_edit_path(@project)
<|file_sep|>current/app/views/projects/_topbar_middle.... | %ul.nav
%li.dropdown
= link_to @project.github_project_name, '#', :class => "dropdown-toggle"
%ul.dropdown-menu
%li
= link_to 'See project', github_project_path(@project)
%li
= link_to 'Edit project', github_project_edit_path(@project) | <|file_sep|>original/app/views/projects/_topbar_middle.html.haml
%ul.nav
%li.dropdown
= link_to @project.github_project_name, '#', :class => "dropdown-toggle"
%ul.dropdown-menu
%li
= link_to 'Edit project', github_project_edit_path(@project)
<|file_sep|>current/app/views/projects/_topbar_middle.... | 0bf9e975721216c2564416c11928ebc217e9e944 | app/views/projects/_topbar_middle.html.haml | app/views/projects/_topbar_middle.html.haml | Haml |
<|file_sep|>xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java.diff
original:
pointer--;
updated:
stack[--pointer] = null;
<|file_sep|>original/xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java
}
stack[pointer++] = value;
return value;
}
... | }
stack[pointer++] = value;
return value;
}
public void popSilently() {
stack[--pointer] = null;
}
public Object pop() {
final Object result = stack[--pointer];
stack[pointer] = null;
return result;
}
public Object peek() {
ret... | <|file_sep|>xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java.diff
original:
pointer--;
updated:
stack[--pointer] = null;
<|file_sep|>original/xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java
}
stack[pointer++] = value;
return value;
}
... | 91631701f44c9aeb995708fdbe37f1687dba1b1f | xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java | xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java | Java |
<|file_sep|>setup.py.diff
original:
updated:
test_requirements = ['hypothesis>=3.6.0']
<|file_sep|>original/setup.py
# Read in unit tests
test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
... | test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
optionflags=doctest.ELLIPSIS))
return test_suite
setup(
name='nashpy',
version=__version__,
install_requires=requirem... | <|file_sep|>setup.py.diff
original:
updated:
test_requirements = ['hypothesis>=3.6.0']
<|file_sep|>original/setup.py
# Read in unit tests
test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
... | eee5008d5e8f7ae29405491962d3adb1af375e44 | setup.py | setup.py | Python |
<|file_sep|>bin/set_new_versions.sh.diff
original:
echo "### Setting versions of VimR"
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
updated:
readonly is_snapshot=${is_snapshot:?"true or false"}
marketing_version=${marketing_version:-""}
<|file_sep|>bin/set_new_versions.sh.diff
original:
readonly is_snapshot=... | pushd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null
local bundle_version
bundle_version="$(date "+%Y%m%d.%H%M%S")"
readonly bundle_version
if [[ "${is_snapshot}" == true ]]; then
marketing_version="SNAPSHOT-${bundle_version}"
fi
readonly marketing_version
pushd VimR >/dev/null
... | <|file_sep|>bin/set_new_versions.sh.diff
original:
echo "### Setting versions of VimR"
pushd "$( dirname "${BASH_SOURCE[0]}" )/.." > /dev/null
updated:
readonly is_snapshot=${is_snapshot:?"true or false"}
marketing_version=${marketing_version:-""}
<|file_sep|>bin/set_new_versions.sh.diff
original:
readonly is_snapshot=... | 7fd8bec15e3e0dacafe09c4a51b4128901e82143 | bin/set_new_versions.sh | bin/set_new_versions.sh | Shell |
<|file_sep|>original/composer.json
"keywords": [
"silverstripe",
"cms",
"tweaks",
"javascript",
"seo"
],
"license": "The MIT License (MIT)",
"authors": [
{
"name": "Ralph Slooten",
"homepage": "http://www.axllent.org/"
}
],
"support": {
"issues": "https://github.com/axllent/silverstripe-cms-... | "keywords": [
"silverstripe",
"cms",
"tweaks",
"javascript",
"seo"
],
"license": "The MIT License (MIT)",
"authors": [
{
"name": "Ralph Slooten",
"homepage": "http://www.axllent.org/"
}
],
"support": {
"issues": "https://github.com/axllent/silverstripe-cms-tweaks/issues"
},
"require": {
... | <|file_sep|>original/composer.json
"keywords": [
"silverstripe",
"cms",
"tweaks",
"javascript",
"seo"
],
"license": "The MIT License (MIT)",
"authors": [
{
"name": "Ralph Slooten",
"homepage": "http://www.axllent.org/"
}
],
"support": {
"issues": "https://github.com/axllent/silverstripe-cms-... | 47085eb1c1466b799804796e9ae89b589bd44fe2 | composer.json | composer.json | JSON |
<|file_sep|>pegasus/sites.v3/code.org/public/js/applab-docs.js.diff
original:
updated:
rewrite_urls();
<|file_sep|>original/pegasus/sites.v3/code.org/public/js/applab-docs.js
mode: 'javascript',
lineNumbers: !preElement.is('.inline'),
readOnly: true
});
});
$("a[href^='http']").attr("targe... | mode: 'javascript',
lineNumbers: !preElement.is('.inline'),
readOnly: true
});
});
$("a[href^='http']").attr("target", "_blank");
rewrite_urls();
});
/**
* Our x-frame-options require that any page that is embedded
* in an iframe include embedded as a query arg.
*/
function rewrite_urls... | <|file_sep|>pegasus/sites.v3/code.org/public/js/applab-docs.js.diff
original:
updated:
rewrite_urls();
<|file_sep|>original/pegasus/sites.v3/code.org/public/js/applab-docs.js
mode: 'javascript',
lineNumbers: !preElement.is('.inline'),
readOnly: true
});
});
$("a[href^='http']").attr("targe... | 1c7c553128fcc842f394c429dfc28dbce934fb86 | pegasus/sites.v3/code.org/public/js/applab-docs.js | pegasus/sites.v3/code.org/public/js/applab-docs.js | JavaScript |
<|file_sep|>original/app/views/spree/shared/_collections.html.erb
<% if collections.any? %>
<ul id="products" class="inline product-listing" data-hook>
<% collections.each do |collection| %>
<% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "-") %>
<% if collection.products.any? %>
<l... | <h1 style="border-top: 1px dashed #808080; border-bottom: 1px dashed #808080">Fabric Collections</h1>
<% if collections.any? %>
<ul id="products" class="inline product-listing" data-hook>
<% collections.each do |collection| %>
<% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "-") %>
<% ... | <|file_sep|>original/app/views/spree/shared/_collections.html.erb
<% if collections.any? %>
<ul id="products" class="inline product-listing" data-hook>
<% collections.each do |collection| %>
<% url = "t/fabric/collection/#{collection.name}".downcase.gsub(/\s+/, "-") %>
<% if collection.products.any? %>
<l... | 2519d7673aa174ecd2f38d16e296e90e98ec17b8 | app/views/spree/shared/_collections.html.erb | app/views/spree/shared/_collections.html.erb | HTML+ERB |
<|file_sep|>original/setup.py
qav is a Python library for console-based question and answering, with the
ability to validate input.
'''
from qav import __version__
setup(
name='qav',
version=__version__,
author='Derek Yarnell',
author_email='derek@umiacs.umd.edu',
packages=['qav'],
url='https:... |
long_description = \
'''
qav is a Python library for console-based question and answering, with the
ability to validate input.
'''
from qav import __version__
setup(
name='qav',
version=__version__,
author='Derek Yarnell',
author_email='derek@umiacs.umd.edu',
packages=['qav'],
url='https://gi... | <|file_sep|>original/setup.py
qav is a Python library for console-based question and answering, with the
ability to validate input.
'''
from qav import __version__
setup(
name='qav',
version=__version__,
author='Derek Yarnell',
author_email='derek@umiacs.umd.edu',
packages=['qav'],
url='https:... | c3c48bdeeb772a43491f73690215aede6d171516 | setup.py | setup.py | Python |
<|file_sep|>server.coffee.diff
original:
updated:
url = require 'url'
<|file_sep|>original/server.coffee
StreamServer = require './stream_server'
Bits = require './bits'
logger = require './logger'
Bits.set_warning_fatal true
logger.setLevel logger.LEVEL_INFO
streamServer = new StreamServer
process.on 'SIGINT', =>... | url = require 'url'
StreamServer = require './stream_server'
Bits = require './bits'
logger = require './logger'
Bits.set_warning_fatal true
logger.setLevel logger.LEVEL_INFO
streamServer = new StreamServer
streamServer.setLivePathConsumer (uri, callback) ->
pathname = url.parse(uri).pathname[1..]
isAuthorized ... | <|file_sep|>server.coffee.diff
original:
updated:
url = require 'url'
<|file_sep|>original/server.coffee
StreamServer = require './stream_server'
Bits = require './bits'
logger = require './logger'
Bits.set_warning_fatal true
logger.setLevel logger.LEVEL_INFO
streamServer = new StreamServer
process.on 'SIGINT', =>... | c2a42365b3767829b05a5fb321820ce0827a75fa | server.coffee | server.coffee | CoffeeScript |
<|file_sep|>bower.json.diff
original:
"version": "0.6.0-preview",
updated:
"version": "0.6.0",
<|file_sep|>original/bower.json
{
"name": "basic-swipe-direction",
"description": "Aspect which translates touch gestures (swipe left, swipe right) to direction semantics (goRight, goLeft).",
"version": "0.6.0-previ... | {
"name": "basic-swipe-direction",
"description": "Aspect which translates touch gestures (swipe left, swipe right) to direction semantics (goRight, goLeft).",
"version": "0.6.0",
"license": "MIT",
"main": "basic-swipe-direction.html",
"dependencies": {
"basic-aspect": "basic-web-components/basic-aspect... | <|file_sep|>bower.json.diff
original:
"version": "0.6.0-preview",
updated:
"version": "0.6.0",
<|file_sep|>original/bower.json
{
"name": "basic-swipe-direction",
"description": "Aspect which translates touch gestures (swipe left, swipe right) to direction semantics (goRight, goLeft).",
"version": "0.6.0-previ... | 9eb6b273a439073b6e6d15950f2874a7f2e108f2 | bower.json | bower.json | JSON |
<|file_sep|>original/package.json
"name": "eclairjs",
"version": "0.1.0",
"description": "Node.js API for Apache Spark with Remote Client",
"author": "EclairJS <eclairjs@us.ibm.com>",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "git://github.com/EclairJS/eclairjs-node.git"
},
... | "name": "eclairjs",
"version": "0.1.0",
"description": "Node.js API for Apache Spark with Remote Client",
"author": "EclairJS <eclairjs@us.ibm.com>",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "git://github.com/EclairJS/eclairjs-node.git"
},
"dependencies": {
"jupyter-js... | <|file_sep|>original/package.json
"name": "eclairjs",
"version": "0.1.0",
"description": "Node.js API for Apache Spark with Remote Client",
"author": "EclairJS <eclairjs@us.ibm.com>",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "git://github.com/EclairJS/eclairjs-node.git"
},
... | a45afb00091bbefb17fc95c232eb753f86491549 | package.json | package.json | JSON |
<|file_sep|>package.json.diff
original:
updated:
"coveralls": "npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
<|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "https://github.com/jimf/handlebars-helper-strict-equal"
... | "type": "git",
"url": "https://github.com/jimf/handlebars-helper-strict-equal"
},
"keywords": [
"handlebars",
"helper"
],
"author": "Jim Fitzpatrick",
"license": "MIT",
"bugs": {
"url": "https://github.com/jimf/handlebars-helper-strict-equal/issues"
},
"homepage": "https://github.com... | <|file_sep|>package.json.diff
original:
updated:
"coveralls": "npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
<|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "https://github.com/jimf/handlebars-helper-strict-equal"
... | c6387710199b19fdbc2fb68445ca2f6066b1c5a6 | package.json | package.json | JSON |
<|file_sep|>original/brains/orders/models.py
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)... | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)
# When we will strike
striketime = m... | <|file_sep|>original/brains/orders/models.py
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Order(models.Model):
user = models.ForeignKey(User)
# Last updated timestamp, used for sorting
date = models.DateTimeField(auto_now_add=True, auto_now=True)... | 683a3727fc5363c2a2a53fabfde555207e8bab66 | brains/orders/models.py | brains/orders/models.py | Python |
<|file_sep|>original/clean_txt_files.py
"""
Script to clean the txt generated files and kept only the 37 class: LICENSE-PLATE and set the number 0 to the class.
"""
import os
dataset_dir = "data/dataset/"
for filename in list(filter(lambda x: x[-3:] == "txt", os.listdir(dataset_dir))):
with open(dataset_dir + fil... | """
Script to clean the txt generated files and kept only the 37 class: LICENSE-PLATE and set the number 0 to the class.
"""
import os
dataset_dir = "data/dataset/"
for filename in list(filter(lambda x: x[-3:] == "txt", os.listdir(dataset_dir))):
with open(dataset_dir + filename, 'r') as f:
content = f.re... | <|file_sep|>original/clean_txt_files.py
"""
Script to clean the txt generated files and kept only the 37 class: LICENSE-PLATE and set the number 0 to the class.
"""
import os
dataset_dir = "data/dataset/"
for filename in list(filter(lambda x: x[-3:] == "txt", os.listdir(dataset_dir))):
with open(dataset_dir + fil... | caefc30377f45ecdb955fec86e7de681a5cb6522 | clean_txt_files.py | clean_txt_files.py | Python |
<|file_sep|>original/requirements.txt
FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.5
<|file_sep|>current/requirements.txt
FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.5
<|file_sep|>updated/requirements.txt | FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.6 | <|file_sep|>original/requirements.txt
FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.5
<|file_sep|>current/requirements.txt
FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.5
<|file_sep|>updated/requirements.txt
FontTools==3.24.1
ufoLib==2.1.1
fontMath==0.4.4
defcon==0.3.6 | bfe53b79e32b5888a2de2d391092bdd2ac6ab1c5 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/postgres-protocol/Cargo.toml
name = "postgres-protocol"
version = "0.5.0-alpha.2"
authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2018"
description = "Low level Postgres protocol APIs"
license = "MIT/Apache-2.0"
repository = "https://github.com/sfackler/rust-postgres-protocol"
readme =... | name = "postgres-protocol"
version = "0.5.0-alpha.2"
authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2018"
description = "Low level Postgres protocol APIs"
license = "MIT/Apache-2.0"
repository = "https://github.com/sfackler/rust-postgres-protocol"
readme = "../README.md"
[dependencies]
base64 = "0.10"
by... | <|file_sep|>original/postgres-protocol/Cargo.toml
name = "postgres-protocol"
version = "0.5.0-alpha.2"
authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2018"
description = "Low level Postgres protocol APIs"
license = "MIT/Apache-2.0"
repository = "https://github.com/sfackler/rust-postgres-protocol"
readme =... | 9b443da418c482bb3f4e0e265bb312ad59dea2c4 | postgres-protocol/Cargo.toml | postgres-protocol/Cargo.toml | TOML |
<|file_sep|>README.md.diff
original:
updated:
$ cp .deploy/dev/settings-template.json .deploy/dev/settings.json
<|file_sep|>README.md.diff
original:
$ meteor
updated:
$ meteor run --settings .deploy/dev/settings.json
<|file_sep|>original/README.md
# Implementation of Christopher Allen's btcr
```
$ npm install
$ mete... | # Implementation of Christopher Allen's btcr
```
$ cp .deploy/dev/settings-template.json .deploy/dev/settings.json
$ npm install
$ meteor run --settings .deploy/dev/settings.json
```
Tests:
```
$ bitcoind -regtest -rpcuser=foo -rpcpassword=bar -server -daemon
$ meteor test --setttings .deploy/dev/settings.json --dr... | <|file_sep|>README.md.diff
original:
updated:
$ cp .deploy/dev/settings-template.json .deploy/dev/settings.json
<|file_sep|>README.md.diff
original:
$ meteor
updated:
$ meteor run --settings .deploy/dev/settings.json
<|file_sep|>original/README.md
# Implementation of Christopher Allen's btcr
```
$ npm install
$ mete... | ed8236bd86e69764df25e8f23443075a74e2f290 | README.md | README.md | Markdown |
<|file_sep|>original/project.clj
(defproject org.onyxplatform/onyx-kafka "0.7.2.1-SNAPSHOT"
:description "Onyx plugin for Kafka"
:url "https://github.com/MichaelDrogalis/onyx-kafka"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure... | (defproject org.onyxplatform/onyx-kafka "0.7.2.1-SNAPSHOT"
:description "Onyx plugin for Kafka"
:url "https://github.com/MichaelDrogalis/onyx-kafka"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | <|file_sep|>original/project.clj
(defproject org.onyxplatform/onyx-kafka "0.7.2.1-SNAPSHOT"
:description "Onyx plugin for Kafka"
:url "https://github.com/MichaelDrogalis/onyx-kafka"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure... | 12fc9574d5bc84472f4f499c3520e13b212f3db8 | project.clj | project.clj | Clojure |
<|file_sep|>original/mysettings.py
from src.markdown.makrdown import jinja_aware_markdown
PREFERRED_URL_SCHEME = 'http'
SERVER_NAME = 'localhost:5000'
FLATPAGES_EXTENSION = '.md'
FLATPAGES_HTML_RENDERER = jinja_aware_markdown
FREEZER_IGNORE_404_NOT_FOUND = True
FLATPAGES_AUTO_RELOAD = True
GITHUB_URL = 'https://github... | from src.markdown.makrdown import jinja_aware_markdown
PREFERRED_URL_SCHEME = 'http'
SERVER_NAME = 'localhost:5000'
FLATPAGES_EXTENSION = '.md'
FLATPAGES_HTML_RENDERER = jinja_aware_markdown
FREEZER_IGNORE_404_NOT_FOUND = True
FLATPAGES_AUTO_RELOAD = True
FREEZER_STATIC_IGNORE = ["*"]
GITHUB_URL = 'https://github.com/... | <|file_sep|>original/mysettings.py
from src.markdown.makrdown import jinja_aware_markdown
PREFERRED_URL_SCHEME = 'http'
SERVER_NAME = 'localhost:5000'
FLATPAGES_EXTENSION = '.md'
FLATPAGES_HTML_RENDERER = jinja_aware_markdown
FREEZER_IGNORE_404_NOT_FOUND = True
FLATPAGES_AUTO_RELOAD = True
GITHUB_URL = 'https://github... | eaa17491581cbb52242fbe543dd09929f537a8bc | mysettings.py | mysettings.py | Python |
<|file_sep|>original/appveyor.yml
install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- appveyor DownloadFile https://github.com/nats-io/gnatsd/releases/download/v0.9.2/gnatsd-v0.9.2-windows-386.zip
- 7z e gnatsd-v0.9.2-windows-386.zip gnatsd.exe -r -oc:\projects\csharp-na... | install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- appveyor DownloadFile https://github.com/nats-io/gnatsd/releases/download/v0.9.6/gnatsd-v0.9.6-windows-386.zip
- 7z e gnatsd-v0.9.6-windows-386.zip gnatsd.exe -r -oc:\projects\csharp-nats\build
- cmd: set PATH=%PATH%;... | <|file_sep|>original/appveyor.yml
install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- appveyor DownloadFile https://github.com/nats-io/gnatsd/releases/download/v0.9.2/gnatsd-v0.9.2-windows-386.zip
- 7z e gnatsd-v0.9.2-windows-386.zip gnatsd.exe -r -oc:\projects\csharp-na... | 6e947ed739349c1a5c01ea4020ac5bc2196f3976 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/src/sample_xblocks/basic/test/test_view_counter.py
""" Simple test for the view counter that verifies that it is updating properly """
from collections import namedtuple
from mock import Mock
from xblock.runtime import KvsFieldData, DictKeyValueStore
from xblock.view_counter import ViewCounter
... | """ Simple test for the view counter that verifies that it is updating properly """
from collections import namedtuple
from mock import Mock
from xblock.runtime import KvsFieldData, DictKeyValueStore
from sample_xblocks.basic.view_counter import ViewCounter
from xblock.test.tools import assert_in, assert_equals
T... | <|file_sep|>original/src/sample_xblocks/basic/test/test_view_counter.py
""" Simple test for the view counter that verifies that it is updating properly """
from collections import namedtuple
from mock import Mock
from xblock.runtime import KvsFieldData, DictKeyValueStore
from xblock.view_counter import ViewCounter
... | 92759e9df89664ae515e51825982141750921ce3 | src/sample_xblocks/basic/test/test_view_counter.py | src/sample_xblocks/basic/test/test_view_counter.py | Python |
<|file_sep|>original/scripts/run.sh
echo "Run the RWD Docker container."
if [ -z "$RWD_REPO" ]; then
echo "Environment variable RWD_REPO not defined."
exit 1
fi
if [ -z "$RWD_DATA" ]; then
echo "Environment variable RWD_DATA not defined."
exit 1
fi
set -x
docker run \
-v $RWD_DATA:/opt/rwd-data \
-v... |
if [ -z "$RWD_REPO" ]; then
echo "Environment variable RWD_REPO not defined."
exit 1
fi
if [ -z "$RWD_DATA" ]; then
echo "Environment variable RWD_DATA not defined."
exit 1
fi
set -x
docker run \
-v $RWD_DATA:/opt/rwd-data \
-v $RWD_REPO:/opt/rwd \
-p 5000:5000 \
--rm \
$ARGS \
docker-rwd \
--reload | <|file_sep|>original/scripts/run.sh
echo "Run the RWD Docker container."
if [ -z "$RWD_REPO" ]; then
echo "Environment variable RWD_REPO not defined."
exit 1
fi
if [ -z "$RWD_DATA" ]; then
echo "Environment variable RWD_DATA not defined."
exit 1
fi
set -x
docker run \
-v $RWD_DATA:/opt/rwd-data \
-v... | 51495e3e86ec54b92d8f7858104d770694a9f2d1 | scripts/run.sh | scripts/run.sh | Shell |
<|file_sep|>README.md.diff
original:
updated:
[](http://badge.fury.io/js/ember-doc-engine)
[](https://travis-ci.org/ming-codes/ember-doc-engine)
[](http://badge.fury.io/js/ember-doc-engine)
[](https://travis-ci.org/ming-codes/ember-doc-engine)
[
updated:
this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true })
<|file_sep|>original/client/src/app/core/routing/redirect.service.ts
})
}
redirectT... | })
}
redirectToHomepage () {
console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE)
this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true })
.catch(() => {
console.error(
'Cannot navigate to %s, resetting default route to %s.',
Redir... | <|file_sep|>client/src/app/core/routing/redirect.service.ts.diff
original:
this.router.navigate([ RedirectService.DEFAULT_ROUTE ])
updated:
this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true })
<|file_sep|>original/client/src/app/core/routing/redirect.service.ts
})
}
redirectT... | 108a66f0dac7586f2f7871c6bb77f73cb924f2b3 | client/src/app/core/routing/redirect.service.ts | client/src/app/core/routing/redirect.service.ts | TypeScript |
<|file_sep|>original/.github/workflows/tests.yml
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:3.4.10
ports:
- 27017:27017
if: "!contains(github.event.head_commit.message, '[ski... | push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:5.0.5
ports:
- 27017:27017
if: "!contains(github.event.head_commit.message, '[skip tests]')"
steps:
- uses: actions/checkou... | <|file_sep|>original/.github/workflows/tests.yml
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:3.4.10
ports:
- 27017:27017
if: "!contains(github.event.head_commit.message, '[ski... | 4bfbe795e0628f8127b2b74e4a2e8a3a1cef70d6 | .github/workflows/tests.yml | .github/workflows/tests.yml | YAML |
<|file_sep|>packages/bo/boolector.yaml.diff
original:
hash: c141e1938e35090de9467db13b51c09ba12cf4c481f3c9bdb78948d4770c74da
updated:
hash: 59261fb9f492597b1e7d590e5ee6e245f9db84bea019b681612168eb986b666c
<|file_sep|>packages/bo/boolector.yaml.diff
original:
updated:
- '0.0.0.4'
<|file_sep|>original/packages/bo/boolec... | containers: -any
mtl: -any
temporary: -any
directory: -any
all-versions:
- '0.0.0.1'
- '0.0.0.2'
- '0.0.0.3'
- '0.0.0.4'
author: Dein Stefan, Johannes Waldmann, Armin Biere
latest: '0.0.0.4'
description-type: haddock
description: ! 'This library provides a high-level, monadic DSL for writing symbolic
computa... | <|file_sep|>packages/bo/boolector.yaml.diff
original:
hash: c141e1938e35090de9467db13b51c09ba12cf4c481f3c9bdb78948d4770c74da
updated:
hash: 59261fb9f492597b1e7d590e5ee6e245f9db84bea019b681612168eb986b666c
<|file_sep|>packages/bo/boolector.yaml.diff
original:
updated:
- '0.0.0.4'
<|file_sep|>original/packages/bo/boolec... | 167238fb726627c94ecdc6708c15c887413e718b | packages/bo/boolector.yaml | packages/bo/boolector.yaml | YAML |
<|file_sep|>original/requirements.txt
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.1
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rt... | hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0
sqlalchemy==1.4.20
tenacity... | <|file_sep|>original/requirements.txt
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.1
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rt... | 1314b31a7b430a5a39691d89ff096467fcae4043 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/app/reports/basic_report_row.rb
class BasicReportRow
attr_accessor :key, :count, :replacement_cost, :id_list
def initialize(key)
self.key = key
self.count = 0
self.replacement_cost = 0
self.id_list = []
end
def add(asset)
self.count += 1
self.replacement_co... | class BasicReportRow
attr_accessor :key, :count, :replacement_cost, :id_list
def initialize(key)
self.key = key
self.count = 0
self.replacement_cost = 0
self.id_list = []
end
def add(asset)
self.count += 1
self.replacement_cost += asset.replacement_cost unless asset.replacement... | <|file_sep|>original/app/reports/basic_report_row.rb
class BasicReportRow
attr_accessor :key, :count, :replacement_cost, :id_list
def initialize(key)
self.key = key
self.count = 0
self.replacement_cost = 0
self.id_list = []
end
def add(asset)
self.count += 1
self.replacement_co... | 64d723181d0c633533059bc6876ebe877171d103 | app/reports/basic_report_row.rb | app/reports/basic_report_row.rb | Ruby |
<|file_sep|>original/raycast/slack/build-slack.sh
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Build Slack
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon slack.png
# @raycast.currentDirectoryPath ~/dev/slack/slack-objc
# @raycast.packageName Slack
bazel build --c... | #!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Build Slack
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon slack.png
# @raycast.currentDirectoryPath ~/dev/slack/slack-objc
# @raycast.packageName Slack
bazel build -- //App:Slack | <|file_sep|>original/raycast/slack/build-slack.sh
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Build Slack
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.icon slack.png
# @raycast.currentDirectoryPath ~/dev/slack/slack-objc
# @raycast.packageName Slack
bazel build --c... | 31004440b3497d6d2194fa67399a879ad05eb983 | raycast/slack/build-slack.sh | raycast/slack/build-slack.sh | Shell |
<|file_sep|>ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java.diff
original:
updated:
static final LongWritable one = new LongWritable(1);
<|file_sep|>original/ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java
// Mapper for NCDC record count MapReduce job... |
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class NcdcRecordCountMapper
extends Mapper<LongWritable, Text, Text, LongWritable> {
static final LongWritable one = new LongWritable(1);
@Override
public ... | <|file_sep|>ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java.diff
original:
updated:
static final LongWritable one = new LongWritable(1);
<|file_sep|>original/ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java
// Mapper for NCDC record count MapReduce job... | 01140deea21cda2b7adfcbeea393780ebc402bb5 | ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java | ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java | Java |
<|file_sep|>original/test/CodeGen/X86/sse-fcopysign.ll
<|file_sep|>current/test/CodeGen/X86/sse-fcopysign.ll
<|file_sep|>updated/test/CodeGen/X86/sse-fcopysign.ll | ; RUN: llvm-as | llc -march=x86 -mattr=+sse2 &&
; RUN: llvm-as | llc -march=x86 -mattr=+sse2 | grep pslldq | wc -l | grep 1 &&
; RUN: llvm-as | llc -march=x86 -mattr=+sse2 | not getp test
define float %test1(float %a, float %b) {
%tmp = tail call float %copysignf( float %b, float %a )
ret float %tmp
}
define double... | <|file_sep|>original/test/CodeGen/X86/sse-fcopysign.ll
<|file_sep|>current/test/CodeGen/X86/sse-fcopysign.ll
<|file_sep|>updated/test/CodeGen/X86/sse-fcopysign.ll
; RUN: llvm-as | llc -march=x86 -mattr=+sse2 &&
; RUN: llvm-as | llc -march=x86 -mattr=+sse2 | grep pslldq | wc -l | grep 1 &&
; RUN: llvm-as | llc -march=... | 00c29703fe79d5da3d0a34133fac2af0c4326cd8 | test/CodeGen/X86/sse-fcopysign.ll | test/CodeGen/X86/sse-fcopysign.ll | LLVM |
<|file_sep|>_notes/tool/windows/wsl/x_server.md.diff
original:
updated:
| `-ac` | Disable access control restrictions. A must have for WSL2. |
<|file_sep|>original/_notes/tool/windows/wsl/x_server.md
## Setup (Linux)
Install dbus, terminal and some other basic tools:
```shell
sudo apt install dbus-x11 make git xfce... | ## Setup (Linux)
Install dbus, terminal and some other basic tools:
```shell
sudo apt install dbus-x11 make git xfce4-terminal fonts-emojione fonts-noto i3 zsh neovim nnn unzip
```
Then set these environment variables:
```shell
export DISPLAY=127.0.0.1:0 # WSL1
export DISPLAY=$(cat /etc/resolv.conf | grep nameserv... | <|file_sep|>_notes/tool/windows/wsl/x_server.md.diff
original:
updated:
| `-ac` | Disable access control restrictions. A must have for WSL2. |
<|file_sep|>original/_notes/tool/windows/wsl/x_server.md
## Setup (Linux)
Install dbus, terminal and some other basic tools:
```shell
sudo apt install dbus-x11 make git xfce... | 9ea6c3646f21be4cc3bde513002e6baf0e5f0a0a | _notes/tool/windows/wsl/x_server.md | _notes/tool/windows/wsl/x_server.md | Markdown |
<|file_sep|>original/README.md
});
The argument can be any css selector or reference to an HtmlImageElement. You should take care that the selector only matches img elements, behavior in other cases is untested.
Class: GrayscaleImages
----------------------
### Syntax
new GrayscaleImages([element, options]);
##... | });
The argument can be any css selector or reference to an HtmlImageElement. You should take care that the selector only matches img elements, behavior in other cases is untested.
Class: GrayscaleImages
----------------------
### Syntax
new GrayscaleImages([element, options]);
### Arguments
1. element: (*elem... | <|file_sep|>original/README.md
});
The argument can be any css selector or reference to an HtmlImageElement. You should take care that the selector only matches img elements, behavior in other cases is untested.
Class: GrayscaleImages
----------------------
### Syntax
new GrayscaleImages([element, options]);
##... | eccda71fce559e4f3c4297e8bf26aa982953d0c2 | README.md | README.md | Markdown |
<|file_sep|>original/requirements-testing.txt
codecov==2.0.15
pytest-django==3.3.2
pytest-cov==2.5.1
dj-database-url==0.5
gunicorn==19.8.1
psycopg2==2.7.5
whitenoise==3.3.1
django-storages==1.6.5
boto3>=1.5
Pillow==5.0.0
Markdown==2.6.11
cloudinary==1.10.0
requests==2.18.4
graphene-django==2.0.0
graphene==2.0.1
singlem... | codecov==2.0.15
pytest-django==3.3.2
pytest-cov==2.5.1
dj-database-url==0.5
gunicorn==19.8.1
psycopg2==2.7.5
whitenoise==3.3.1
django-storages==1.6.6
boto3>=1.5
Pillow==5.0.0
Markdown==2.6.11
cloudinary==1.10.0
requests==2.18.4
graphene-django==2.0.0
graphene==2.0.1
singlemodeladmin==0.8
boto
feedparser==5.2.1
authy==2... | <|file_sep|>original/requirements-testing.txt
codecov==2.0.15
pytest-django==3.3.2
pytest-cov==2.5.1
dj-database-url==0.5
gunicorn==19.8.1
psycopg2==2.7.5
whitenoise==3.3.1
django-storages==1.6.5
boto3>=1.5
Pillow==5.0.0
Markdown==2.6.11
cloudinary==1.10.0
requests==2.18.4
graphene-django==2.0.0
graphene==2.0.1
singlem... | 2d35401062dcd60140d30254eb13f50726d5de70 | requirements-testing.txt | requirements-testing.txt | Text |
<|file_sep|>setup.py.diff
original:
updated:
import os
<|file_sep|>setup.py.diff
original:
updated:
from distutils.command.install import INSTALL_SCHEMES
<|file_sep|>setup.py.diff
original:
updated:
# install data files where source files are installed
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = sc... |
setup(
name='django-tagging-autocomplete',
version='0.4.2',
description='Autocompletion for django-tagging',
long_description=long_description,
author='Ludwik Trammer',
author_email='ludwik@gmail.com',
url='https://github.com/ludwiktrammer/django-tagging-autocomplete/',
packages=['taggi... | <|file_sep|>setup.py.diff
original:
updated:
import os
<|file_sep|>setup.py.diff
original:
updated:
from distutils.command.install import INSTALL_SCHEMES
<|file_sep|>setup.py.diff
original:
updated:
# install data files where source files are installed
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = sc... | eda2686d7a59acf5fc7f6d72b710ccc8b20801a9 | setup.py | setup.py | Python |
<|file_sep|>original/Formula/star.rb
require 'formula'
class Star < Formula
url 'ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2'
homepage 'http://cdrecord.berlios.de/old/private/star.html'
md5 'f9a28f83702624c4c08ef1a343014c7a'
depends_on "smake"
def install
system "smake", "GMAKE_NOWARN=true", "INS_... | require 'formula'
class Star < Formula
url 'ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2'
homepage 'http://cdrecord.berlios.de/old/private/star.html'
md5 'f9a28f83702624c4c08ef1a343014c7a'
depends_on "smake"
def install
system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "MANDIR=share/man"
... | <|file_sep|>original/Formula/star.rb
require 'formula'
class Star < Formula
url 'ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2'
homepage 'http://cdrecord.berlios.de/old/private/star.html'
md5 'f9a28f83702624c4c08ef1a343014c7a'
depends_on "smake"
def install
system "smake", "GMAKE_NOWARN=true", "INS_... | 39a19ffe86d552b14dfa9ba19811c8476e1ae505 | Formula/star.rb | Formula/star.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- xcodebuild test -project Source/OCHamcrest.xcodeproj -scheme libochamcrest -sdk iphonesimulator7.0
<|file_sep|>original/.travis.yml
language: objective-c
before_install:
- sudo easy_install cpp-coveralls
script:
- xctool test -project Source/OCHamcrest.xcodepr... | language: objective-c
before_install:
- sudo easy_install cpp-coveralls
script:
- xcodebuild test -project Source/OCHamcrest.xcodeproj -scheme libochamcrest -sdk iphonesimulator7.0
- xctool test -project Source/OCHamcrest.xcodeproj -scheme OCHamcrest -sdk macosx10.9
after_success:
- ./coveralls.rb --exclude... | <|file_sep|>.travis.yml.diff
original:
updated:
- xcodebuild test -project Source/OCHamcrest.xcodeproj -scheme libochamcrest -sdk iphonesimulator7.0
<|file_sep|>original/.travis.yml
language: objective-c
before_install:
- sudo easy_install cpp-coveralls
script:
- xctool test -project Source/OCHamcrest.xcodepr... | 369b39659dac2c9da9dda30b373294be89361754 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/flow/__init__.py
from extractor import Node, Graph, Aggregator, NotEnoughData
from bytestream import ByteStream, ByteStreamFeature
from data import \
IdProvider, UuidProvider, UserSpecifiedIdProvider, KeyBuilder \
, StringDelimitedKeyBuilder, Database \
, FileSystemDatabase, InMemory... |
from bytestream import ByteStream, ByteStreamFeature
from data import \
IdProvider, UuidProvider, UserSpecifiedIdProvider, KeyBuilder \
, StringDelimitedKeyBuilder, Database \
, FileSystemDatabase, InMemoryDatabase
from datawriter import DataWriter
from nmpy import StreamingNumpyDecoder, NumpyMetaData
... | <|file_sep|>original/flow/__init__.py
from extractor import Node, Graph, Aggregator, NotEnoughData
from bytestream import ByteStream, ByteStreamFeature
from data import \
IdProvider, UuidProvider, UserSpecifiedIdProvider, KeyBuilder \
, StringDelimitedKeyBuilder, Database \
, FileSystemDatabase, InMemory... | 1a43628a42f249a69e0f8846ebbf88ef0af9bb9d | flow/__init__.py | flow/__init__.py | Python |
<|file_sep|>ephemeral-cluster.py.diff
original:
and images after command completion (regardless of success or failure.)
updated:
and associated volumes after command completion (regardless of success or \
failure.)
<|file_sep|>ephemeral-cluster.py.diff
original:
sys.stderr.write('Starting ephemeral cluster: {0}\n'.form... | Generally, this would be used with the ``run`` command to provide a clean room \
testing environment.
"""
if not sys.argv[1:]:
sys.stderr.write(usage)
sys.exit(1)
project = uuid.uuid1().hex
sys.stderr.write('Setting up ephemeral cluster ({0})...\n'.format(project))
try:
subprocess.check_call(['docker-c... | <|file_sep|>ephemeral-cluster.py.diff
original:
and images after command completion (regardless of success or failure.)
updated:
and associated volumes after command completion (regardless of success or \
failure.)
<|file_sep|>ephemeral-cluster.py.diff
original:
sys.stderr.write('Starting ephemeral cluster: {0}\n'.form... | a24b2b303c1cd5e9f43353d55cc6b9d07b37b7f4 | ephemeral-cluster.py | ephemeral-cluster.py | Python |
<|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
original:
updated:
private bool isUsing = false;
<|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
original:
updated:
isUsing = true;
<|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
... | }
}
}
}
void OnTriggerEnter2D (Collider2D other)
{
collidingWith = other.gameObject.GetComponent<UsableObjectCS> ();
if (null != collidingWith) {
Debug.Log ("Colliding with usable object.");
}
}
void OnTriggerExit2D (Collider2D other)
{
if ( isUsing && null != collidingWith) {
collidingWi... | <|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
original:
updated:
private bool isUsing = false;
<|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
original:
updated:
isUsing = true;
<|file_sep|>src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs.diff
... | f150554231e8d1167db8db9cb3420168050c9b6c | src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs | src/Assets/GameObjects/Aletheia/Scripts/UsageController.cs | C# |
<|file_sep|>original/WebApp/config/_development.js
import {argv} from "yargs"
export default (config) => ({
compiler_debug: argv.debug !== false,
compiler_public_path: '/'
})
<|file_sep|>current/WebApp/config/_development.js
import {argv} from "yargs"
export default (config) => ({
compiler_debug: argv.debug... | import {argv} from "yargs"
export default (config) => ({
compiler_debug: argv.debug !== false,
compiler_public_path: process.env.ROOT_PATH || '/'
}) | <|file_sep|>original/WebApp/config/_development.js
import {argv} from "yargs"
export default (config) => ({
compiler_debug: argv.debug !== false,
compiler_public_path: '/'
})
<|file_sep|>current/WebApp/config/_development.js
import {argv} from "yargs"
export default (config) => ({
compiler_debug: argv.debug... | 7966c5890fb16ce151a216d95ead71834c7b3357 | WebApp/config/_development.js | WebApp/config/_development.js | JavaScript |
<|file_sep|>original/static/js/flash-messages.js
function pybossaNotify(msg, category, fadeOut=false){
if (category === undefined) {
category = "info";
}
var html = $(`<div class="alert alert-${category} fade">`
+ `<a class="close" data-dismiss="alert" href="#">×</a>${msg}`
... | function pybossaNotify(msg, category, fadeOut=false){
if (category === undefined) {
category = "info";
}
msg = msg.replace(/"/g, "'");
let html = $(`<div class="alert alert-${category} fade">`
+ `<a class="close" data-dismiss="alert" href="#">×</a>${msg}`
... | <|file_sep|>original/static/js/flash-messages.js
function pybossaNotify(msg, category, fadeOut=false){
if (category === undefined) {
category = "info";
}
var html = $(`<div class="alert alert-${category} fade">`
+ `<a class="close" data-dismiss="alert" href="#">×</a>${msg}`
... | 47fa5253cbe0db3c37f294f573ca5346518add3e | static/js/flash-messages.js | static/js/flash-messages.js | JavaScript |
<|file_sep|>original/lib/quotes.rb
require "quotes/version"
# require all support files
Dir.glob('./lib/quotes/support/*.rb') { |f| require f }
require "quotes/entities"
require "quotes/services"
module Quotes
end
<|file_sep|>current/lib/quotes.rb
require "quotes/version"
# require all support files
Dir.glob('./li... | require "quotes/version"
# require all support files
Dir.glob('./lib/quotes/support/*.rb') { |f| require f }
require "quotes/entities"
require "quotes/services"
require "quotes/use_cases"
module Quotes
end | <|file_sep|>original/lib/quotes.rb
require "quotes/version"
# require all support files
Dir.glob('./lib/quotes/support/*.rb') { |f| require f }
require "quotes/entities"
require "quotes/services"
module Quotes
end
<|file_sep|>current/lib/quotes.rb
require "quotes/version"
# require all support files
Dir.glob('./li... | 3095d789e6e310f007e54fed05c08b44cd05d9ad | lib/quotes.rb | lib/quotes.rb | Ruby |
<|file_sep|>original/two-factor-authentication/verify-webhook/verify-webhook.5.x.php
<|file_sep|>current/two-factor-authentication/verify-webhook/verify-webhook.5.x.php
<|file_sep|>updated/two-factor-authentication/verify-webhook/verify-webhook.5.x.php | <?php
function verifyWebhook($apiKey) {
// Read the nonce from the request
$nonce = $_SERVER['x-authy-signature-nonce'];
$method = $_SERVER['REQUEST_METHOD'];
$proto = isset($_SERVER['HTTPS']) ? "https" : "http";
$url = "{$proto}://{$_SERVER[HTTP_HOST]}{$_SERVER[REQUEST_URI]}";
$params = implod... | <|file_sep|>original/two-factor-authentication/verify-webhook/verify-webhook.5.x.php
<|file_sep|>current/two-factor-authentication/verify-webhook/verify-webhook.5.x.php
<|file_sep|>updated/two-factor-authentication/verify-webhook/verify-webhook.5.x.php
<?php
function verifyWebhook($apiKey) {
// Read the nonce fr... | ad5a9da88ed764abfc04080b94cec24d46784dd3 | two-factor-authentication/verify-webhook/verify-webhook.5.x.php | two-factor-authentication/verify-webhook/verify-webhook.5.x.php | PHP |
<|file_sep|>circle.yml.diff
original:
- $(npm bin)/babel-node $(npm bin)/isparta cover --report text --report lcov --report cobertura --verbose --dir ${CIRCLE_ARTIFACTS}/coverage test/index.js
- REPORT_DIR=${CIRCLE_TEST_REPORTS} LOG_DIR=${CIRCLE_ARTIFACTS} npm run test:e2e -s
updated:
- $(npm bin)/babel-nod... | machine:
node:
version: v0.10.40
dependencies:
pre:
- npm update -g npm@3
test:
override:
- $(npm bin)/eslint --debug . --format tap | $(npm bin)/tap-xunit > ${CIRCLE_TEST_REPORTS}/lint.xml; test ${PIPESTATUS[0]} -eq 0
- $(npm bin)/babel-node $(npm bin)/isparta cover --report text --report lcov... | <|file_sep|>circle.yml.diff
original:
- $(npm bin)/babel-node $(npm bin)/isparta cover --report text --report lcov --report cobertura --verbose --dir ${CIRCLE_ARTIFACTS}/coverage test/index.js
- REPORT_DIR=${CIRCLE_TEST_REPORTS} LOG_DIR=${CIRCLE_ARTIFACTS} npm run test:e2e -s
updated:
- $(npm bin)/babel-nod... | 013c83aa90777f4314601ba6d68975b7542208d7 | circle.yml | circle.yml | YAML |
<|file_sep|>original/pages/tests/__init__.py
"""Django page CMS test suite module"""
import unittest
from pages.tests.test_functionnal import FunctionnalTestCase
from pages.tests.test_unit import UnitTestCase
from pages.tests.test_regression import RegressionTestCase
from pages.tests.test_pages_link import LinkTestCase... | """Django page CMS test suite module"""
import unittest
from pages.tests.test_functionnal import FunctionnalTestCase
from pages.tests.test_unit import UnitTestCase
from pages.tests.test_regression import RegressionTestCase
#from pages.tests.test_pages_link import LinkTestCase
from pages.tests.test_auto_render import Au... | <|file_sep|>original/pages/tests/__init__.py
"""Django page CMS test suite module"""
import unittest
from pages.tests.test_functionnal import FunctionnalTestCase
from pages.tests.test_unit import UnitTestCase
from pages.tests.test_regression import RegressionTestCase
from pages.tests.test_pages_link import LinkTestCase... | cd79c8054fc30525628046b34649572d297e13b1 | pages/tests/__init__.py | pages/tests/__init__.py | Python |
<|file_sep|>original/spec/helper.rb
$LOAD_PATH.unshift File.expand_path('..', __FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
if RUBY_VERSION >= '1.9'
require 'simplecov'
require 'coveralls'
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
Sim... | $LOAD_PATH.unshift File.expand_path('..', __FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
if RUBY_VERSION >= '1.9'
require 'simplecov'
require 'coveralls'
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
SimpleCov.start do
minimum_coverage... | <|file_sep|>original/spec/helper.rb
$LOAD_PATH.unshift File.expand_path('..', __FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
if RUBY_VERSION >= '1.9'
require 'simplecov'
require 'coveralls'
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
Sim... | 1a8b9ab717cf9e5447b7f3b6f807f9edb6b631c6 | spec/helper.rb | spec/helper.rb | Ruby |
<|file_sep|>src/AppBundle/Form/RegistrationFormType.php.diff
original:
updated:
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
<|file_sep|>src/AppBundle/Form/RegistrationFormType.php.diff
original:
updated:
use Symfony\Component\OptionsResolver\OptionsResolver;
<|file_sep|>original/src/AppBundle/Form/Regi... | use Symfony\Component\OptionsResolver\OptionsResolver;
class RegistrationFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('firstName')
->add('lastName');
}
public function getParent()
{
... | <|file_sep|>src/AppBundle/Form/RegistrationFormType.php.diff
original:
updated:
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
<|file_sep|>src/AppBundle/Form/RegistrationFormType.php.diff
original:
updated:
use Symfony\Component\OptionsResolver\OptionsResolver;
<|file_sep|>original/src/AppBundle/Form/Regi... | 8348637419c1e4a36c3805acf286900c1f81c5aa | src/AppBundle/Form/RegistrationFormType.php | src/AppBundle/Form/RegistrationFormType.php | PHP |
<|file_sep|>original/tests/FactoryTest.php
<|file_sep|>current/tests/FactoryTest.php
<|file_sep|>updated/tests/FactoryTest.php | <?php
declare(strict_types=1);
namespace ParagonIE\EasyDB\Tests;
use ParagonIE\EasyDB\{
EasyDB,
Factory
};
use PHPUnit\Framework\TestCase;
/**
* Class FactoryTest
* @package ParagonIE\EasyDB\Tests
*/
class FactoryTest extends TestCase
{
function testFactoryCreate()
{
$this->assertInstanceO... | <|file_sep|>original/tests/FactoryTest.php
<|file_sep|>current/tests/FactoryTest.php
<|file_sep|>updated/tests/FactoryTest.php
<?php
declare(strict_types=1);
namespace ParagonIE\EasyDB\Tests;
use ParagonIE\EasyDB\{
EasyDB,
Factory
};
use PHPUnit\Framework\TestCase;
/**
* Class FactoryTest
* @package Para... | 73504f62ba45a4c32405abefa94e33d243abbeda | tests/FactoryTest.php | tests/FactoryTest.php | PHP |
<|file_sep|>original/packet/resolv.tf
#Configure Resolve.conf
resource "null_resource" "resolv_conf" {
provisioner "local-exec" {
command = <<EOF
echo "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
EOF
}
}
resource "null_resource" "resolv_conf_kubeconfig" {
provis... | #Configure Resolve.conf
resource "null_resource" "resolv_conf" {
provisioner "local-exec" {
command = <<EOF
echo "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
EOF
}
}
resource "null_resource" "resolv_conf_kubeconfig" {
provisioner "local-exec" {
command = <<E... | <|file_sep|>original/packet/resolv.tf
#Configure Resolve.conf
resource "null_resource" "resolv_conf" {
provisioner "local-exec" {
command = <<EOF
echo "nameserver "${ module.master.nameserver }"\n$(cat /etc/resolv.conf)" > /etc/resolv.conf
EOF
}
}
resource "null_resource" "resolv_conf_kubeconfig" {
provis... | 6235fed3ce307eb57d453e5f6fbf7b8d25c27aea | packet/resolv.tf | packet/resolv.tf | HCL |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.