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/projects/random-quotes/src/stylesheet.css
body {
max-width: 100%;
height: 570px;
background-size: cover;
background-image: url('http://img11.deviantart.net/d12c/i/2011/204/7/f/rain_over_window_by_kurodot-d41dh9d.jpg');
background-attachment: fixed;
}
body {
margin: 0;
padding: 0;
}
... | body {
max-width: 100%;
height: 570px;
background-size: cover;
background-image: url('rain_over_window.jpg');
background-attachment: fixed;
}
body {
margin: 0;
padding: 0;
}
.home h1 {
color: #001f3f;
font-size: 50px;
font-weight: bold;
font-family: Indie Flower;
text-align: center;
}
| <|file_sep|>original/projects/random-quotes/src/stylesheet.css
body {
max-width: 100%;
height: 570px;
background-size: cover;
background-image: url('http://img11.deviantart.net/d12c/i/2011/204/7/f/rain_over_window_by_kurodot-d41dh9d.jpg');
background-attachment: fixed;
}
body {
margin: 0;
padding: 0;
}
... | 89ca9839ade6e75275a89d6ac6dad1dd0b1cec82 | projects/random-quotes/src/stylesheet.css | projects/random-quotes/src/stylesheet.css | CSS |
<|file_sep|>original/rtd_requirements.txt
sphinx_rtd_theme
networkx >= 1.11
pandas >=0.20.3, <=0.20.3
pypsa >=0.10.0, <=0.10.0
pyproj >=1.9.5.1, <=1.9.5.1
matplotlib >=1.5.3, <=1.5.3
geopy >=1.11.0, <=1.11.0
-e git+https://github.com/openego/ego.io.git@b9d3153f02845110cc76a30f1a634e20ddeefef4#egg=ego.io
oemof.db >=0.0.... | sphinx_rtd_theme
networkx >= 1.11
pandas >=0.20.3, <=0.20.3
pypsa >=0.10.0, <=0.10.0
pyproj >=1.9.5.1, <=1.9.5.1
matplotlib >=1.5.3, <=1.5.3
geopy >=1.11.0, <=1.11.0
-e git+https://github.com/openego/ego.io.git@b9d3153f02845110cc76a30f1a634e20ddeefef4#egg=ego.io
oemof.db >=0.0.4, <=0.0.4
workalendar
demandlib
oedialect | <|file_sep|>original/rtd_requirements.txt
sphinx_rtd_theme
networkx >= 1.11
pandas >=0.20.3, <=0.20.3
pypsa >=0.10.0, <=0.10.0
pyproj >=1.9.5.1, <=1.9.5.1
matplotlib >=1.5.3, <=1.5.3
geopy >=1.11.0, <=1.11.0
-e git+https://github.com/openego/ego.io.git@b9d3153f02845110cc76a30f1a634e20ddeefef4#egg=ego.io
oemof.db >=0.0.... | 415e5468ffd989c0212e0acd8f580f65805a8d0a | rtd_requirements.txt | rtd_requirements.txt | Text |
<|file_sep|>original/src/lib.rs
#[derive(Debug, Eq, PartialEq)]
pub enum ExpressionError {
/// In case of division by zero.
DivByZero,
/// In case an invalid variable in references from the expression.
InvalidVariable,
/// In case of an invalid operation.
InvalidOperation,
}
pub trait ElementTy... | #[derive(Debug, Eq, PartialEq)]
pub enum ExpressionError {
/// In case of division by zero.
DivByZero,
/// In case an invalid variable in references from the expression.
InvalidVariable,
/// In case of an invalid operation.
InvalidOperation,
}
pub trait ElementType: Debug + Copy + Clone + Parti... | <|file_sep|>original/src/lib.rs
#[derive(Debug, Eq, PartialEq)]
pub enum ExpressionError {
/// In case of division by zero.
DivByZero,
/// In case an invalid variable in references from the expression.
InvalidVariable,
/// In case of an invalid operation.
InvalidOperation,
}
pub trait ElementTy... | db23b9ec7387b6b5e7caf880e5ef95eb49789a45 | src/lib.rs | src/lib.rs | Rust |
<|file_sep|>original/resources/assets/less/bem/beatmapset-discussion-message.less
*/
.beatmapset-discussion-message {
@_top: beatmapset-discussion-message;
display: inline;
color: white;
// TODO: remove once default link style becomes... default
a {
.link-default();
}
// extra specificity here to ... | */
.beatmapset-discussion-message {
@_top: beatmapset-discussion-message;
display: inline;
color: white;
&__timestamp {
.link-plain();
border-radius: @border-radius-large;
padding: 1px 5px;
background-color: @osu-colour-b6;
font-weight: 600;
font-size: 85%;
color: @osu-colour-f1;... | <|file_sep|>original/resources/assets/less/bem/beatmapset-discussion-message.less
*/
.beatmapset-discussion-message {
@_top: beatmapset-discussion-message;
display: inline;
color: white;
// TODO: remove once default link style becomes... default
a {
.link-default();
}
// extra specificity here to ... | f61c723ad75665295c4a28bed8e68617567c9641 | resources/assets/less/bem/beatmapset-discussion-message.less | resources/assets/less/bem/beatmapset-discussion-message.less | Less |
<|file_sep|>original/core/spec/javascripts-konacha/views/conversations/start_conversation_view_spec.coffee
#= require application
#= require frontend
describe 'StartConversationView', ->
it 'initial state', ->
view = new window.StartConversationView
view.render()
content = view.$('.js-message-textarea').... | #= require application
#= require frontend
describe 'StartConversationView', ->
it 'initial state', ->
view = new window.StartConversationView
view.render()
content = view.$('.js-message-textarea').val()
content.should.equal "Check out this Factlink!" | <|file_sep|>original/core/spec/javascripts-konacha/views/conversations/start_conversation_view_spec.coffee
#= require application
#= require frontend
describe 'StartConversationView', ->
it 'initial state', ->
view = new window.StartConversationView
view.render()
content = view.$('.js-message-textarea').... | 0a0b8c1ad8f42f5a5e2ab83676ac876ff9e5cdb6 | core/spec/javascripts-konacha/views/conversations/start_conversation_view_spec.coffee | core/spec/javascripts-konacha/views/conversations/start_conversation_view_spec.coffee | CoffeeScript |
<|file_sep|>original/index.js
var dependencies = resolver.resolveDependencies(content, file.path);
if (!firstRun) {
for (var i = 0; i < dependencies.length; i++) {
var dependency = dependencies[i];
var dependencyFile = vinylFile.readSync(dependency, {
cwd: file.cwd,
base: file.base
});
... | var dependencies = resolver.resolveDependencies(content, file.path);
if (!firstRun) {
for (var i = 0; i < dependencies.length; i++) {
var dependency = dependencies[i];
var dependencyFile = vinylFile.readSync(dependency, {
cwd: file.cwd,
base: file.base
});
this.push(dependencyFile);
... | <|file_sep|>original/index.js
var dependencies = resolver.resolveDependencies(content, file.path);
if (!firstRun) {
for (var i = 0; i < dependencies.length; i++) {
var dependency = dependencies[i];
var dependencyFile = vinylFile.readSync(dependency, {
cwd: file.cwd,
base: file.base
});
... | 17903d3ce35f2deae2fe52c0eb2877bae5e94c58 | index.js | index.js | JavaScript |
<|file_sep|>original/setup.py
setup(
name='pycc',
version='0.0.1',
url='https://github.com/kevinconway/pycc',
license=license,
description='Python code optimizer..',
author='Kevin Conway',
author_email='kevinjacobconway@gmail.com',
long_description=readme,
classifiers=[],
packag... |
setup(
name='pycc',
version='0.0.1',
url='https://github.com/kevinconway/pycc',
license=license,
description='Python code optimizer..',
author='Kevin Conway',
author_email='kevinjacobconway@gmail.com',
long_description=readme,
classifiers=[],
packages=find_packages(exclude=['tes... | <|file_sep|>original/setup.py
setup(
name='pycc',
version='0.0.1',
url='https://github.com/kevinconway/pycc',
license=license,
description='Python code optimizer..',
author='Kevin Conway',
author_email='kevinjacobconway@gmail.com',
long_description=readme,
classifiers=[],
packag... | 73e3cee19d0330154f36157b762cd1a69e055b19 | setup.py | setup.py | Python |
<|file_sep|>misc/vim/ftplugin/go.vim.diff
original:
updated:
setlocal formatoptions-=t
<|file_sep|>original/misc/vim/ftplugin/go.vim
" Copyright 2013 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
"
" go.vim: Vim filetype plug... | " Copyright 2013 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
"
" go.vim: Vim filetype plugin for Go.
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
setlocal formatoptions-=t
setlocal comments=s1:/*,mb:... | <|file_sep|>misc/vim/ftplugin/go.vim.diff
original:
updated:
setlocal formatoptions-=t
<|file_sep|>original/misc/vim/ftplugin/go.vim
" Copyright 2013 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
"
" go.vim: Vim filetype plug... | 3eb591ff76c9edb8a9ed6466712be425269f8739 | misc/vim/ftplugin/go.vim | misc/vim/ftplugin/go.vim | VimL |
<|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- "1.9.3"
- jruby-19mode # JRuby in 1.9 mode
- rbx-19mode
# uncomment this line if your project needs to run something other than `rake`:
# # script: bundle exec rspec spec | <|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- "1.9.3"
- jruby-19mode # JRuby in 1.9 mode
- rbx-19mode
# uncomment this line if your project needs to run something other than `rake`:
# # script: bundle exec rspec spec | 681c95ed304644bbf75a838b3cca84e86ffaab4b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# elephantpump
A rust program which takes a logical decoding stream from postgresql and outputs
it in a pluggable and safe way. Requires Rust stable 1.1 or greater.
[](https://travis-ci.org/posix4e/elephantpum... | # elephantpump
A rust program which takes a logical decoding stream from postgresql and outputs
it in a pluggable and safe way. Requires Rust stable 1.1 or greater. You can bug posix4e(or posix4e_) on
freenode if you want to get involved. Tasks to work on should be available on:
[](https://travis-ci.org/posix4e/elephantpum... | 43e1a1ddda7fadf60930edb9fb43c94becc057a7 | README.md | README.md | Markdown |
<|file_sep|>original/tomviz/python/BinaryOpen.json
{
"name" : "BinaryOpen",
"label" : "Binary Open",
"description" : "Perform morphological opening on segmented objects with a\ngiven label by a spherically symmetricstructuring element of a given radius.",
"parameters" : [
{
"name" : "structuring_eleme... | {
"name" : "BinaryOpen",
"label" : "Binary Open",
"description" : "Perform morphological opening on segmented objects with a\ngiven label by a spherically symmetric\nstructuring element of a given radius.",
"parameters" : [
{
"name" : "structuring_element_id",
"label" : "Structuring Element",
... | <|file_sep|>original/tomviz/python/BinaryOpen.json
{
"name" : "BinaryOpen",
"label" : "Binary Open",
"description" : "Perform morphological opening on segmented objects with a\ngiven label by a spherically symmetricstructuring element of a given radius.",
"parameters" : [
{
"name" : "structuring_eleme... | efcf87cf36885e671bc31df422296657398d1cd3 | tomviz/python/BinaryOpen.json | tomviz/python/BinaryOpen.json | JSON |
<|file_sep|>original/README.md
# adventofcode2016
My solutions for adventofcode.com (2016)
- Language: Python
<|file_sep|>current/README.md
# adventofcode2016
My solutions for adventofcode.com (2016)
- Language: Python
<|file_sep|>updated/README.md | # adventofcode2016
My solutions for [adventofcode.com (2016)](http://adventofcode.com/2016) with Python.
## My base classes
### Solution
- Solution for a day can calculate part 1 and 2
- Input is loaded from file input.txt inside the folder of the day
- Solutions of a day have to define their own calculate method
###... | <|file_sep|>original/README.md
# adventofcode2016
My solutions for adventofcode.com (2016)
- Language: Python
<|file_sep|>current/README.md
# adventofcode2016
My solutions for adventofcode.com (2016)
- Language: Python
<|file_sep|>updated/README.md
# adventofcode2016
My solutions for [adventofcode.com (2016)](http://ad... | 7e4961916deaa2c6e83cc7688ae53c03c0490d02 | README.md | README.md | Markdown |
<|file_sep|>original/config/locales/short.yml
short:
datetime:
distance_in_words:
x_seconds: '%{count}s'
x_minutes: '%{count}m'
about_x_hours: '%{count}h'
x_hours: '%{count}h'
x_days: '%{count}d'
x_weeks: '%{count}w'
x_months: '%{count}mo'
x_years: '%{count}y'
<|fil... | short:
datetime:
distance_in_words:
x_seconds: '%{count}s'
x_minutes: '%{count}m'
about_x_hours: '%{count}h'
x_hours: '%{count}h'
x_days: '%{count}d'
x_weeks: '%{count}w'
about_x_months: '%{count}mo'
x_months: '%{count}mo'
x_years: '%{count}y' | <|file_sep|>original/config/locales/short.yml
short:
datetime:
distance_in_words:
x_seconds: '%{count}s'
x_minutes: '%{count}m'
about_x_hours: '%{count}h'
x_hours: '%{count}h'
x_days: '%{count}d'
x_weeks: '%{count}w'
x_months: '%{count}mo'
x_years: '%{count}y'
<|fil... | d137b5b403ab4cc6b30f65696a47475d1bb61714 | config/locales/short.yml | config/locales/short.yml | YAML |
<|file_sep|>original/go/src/test_service/test_serviced/main.go
"log"
"veyron.io/veyron/veyron/lib/signals"
_ "veyron.io/veyron/veyron/profiles"
"veyron.io/veyron/veyron2/rt"
)
func main() {
// Create the runtime
r := rt.Init()
defer r.Cleanup()
s, endpoint, err := StartServer(r)
if err != nil {
log.Fatal(... | "log"
"veyron.io/veyron/veyron/lib/signals"
_ "veyron.io/veyron/veyron/profiles"
"veyron.io/veyron/veyron2/rt"
)
func main() {
// Create the runtime
r := rt.Init()
defer r.Cleanup()
s, endpoint, err := StartServer(r)
if err != nil {
log.Fatal("", err)
}
defer s.Stop()
fmt.Printf("Listening at: %v\n", ... | <|file_sep|>original/go/src/test_service/test_serviced/main.go
"log"
"veyron.io/veyron/veyron/lib/signals"
_ "veyron.io/veyron/veyron/profiles"
"veyron.io/veyron/veyron2/rt"
)
func main() {
// Create the runtime
r := rt.Init()
defer r.Cleanup()
s, endpoint, err := StartServer(r)
if err != nil {
log.Fatal(... | b63f2273d15509238a4665db0acb1f2c76f8b24f | go/src/test_service/test_serviced/main.go | go/src/test_service/test_serviced/main.go | Go |
<|file_sep|>ninja/files.py.diff
original:
from typing import Any, Callable, Iterable, Optional, Type
updated:
from typing import Any, Callable, Dict, Iterable, Optional, Type
<|file_sep|>original/ninja/files.py
from django.core.files.uploadedfile import UploadedFile as DjangoUploadedFile
from pydantic.fields import Mo... |
from django.core.files.uploadedfile import UploadedFile as DjangoUploadedFile
from pydantic.fields import ModelField
__all__ = ["UploadedFile"]
class UploadedFile(DjangoUploadedFile):
@classmethod
def __get_validators__(cls: Type["UploadedFile"]) -> Iterable[Callable[..., Any]]:
yield cls._validate
... | <|file_sep|>ninja/files.py.diff
original:
from typing import Any, Callable, Iterable, Optional, Type
updated:
from typing import Any, Callable, Dict, Iterable, Optional, Type
<|file_sep|>original/ninja/files.py
from django.core.files.uploadedfile import UploadedFile as DjangoUploadedFile
from pydantic.fields import Mo... | 9c83b5b064a50b6813bb3819927c9d268f89aaa1 | ninja/files.py | ninja/files.py | Python |
<|file_sep|>original/tests/test_special_tokens.py
<|file_sep|>current/tests/test_special_tokens.py
<|file_sep|>updated/tests/test_special_tokens.py | from tests import TestCase
class SignedIntegerTokenTestCase(TestCase):
def setup_method(self, method):
TestCase.setup_method(self, method)
self.session.add(
self.TextItem(name=u'index', content=u'some 12-14')
)
self.session.commit()
class TestSignedIntegersWithRemoveH... | <|file_sep|>original/tests/test_special_tokens.py
<|file_sep|>current/tests/test_special_tokens.py
<|file_sep|>updated/tests/test_special_tokens.py
from tests import TestCase
class SignedIntegerTokenTestCase(TestCase):
def setup_method(self, method):
TestCase.setup_method(self, method)
self.sess... | e9d5143b8751bee1d74a5cfebeca848225426d68 | tests/test_special_tokens.py | tests/test_special_tokens.py | Python |
<|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md | # CDKitt
CDKitt is [my](http://aron.cedercrantz.com/) kit of shared Objective-C macros, functions and classes. There’s extensions to _Foundation_, _Cocoa Touch_ and regular _Cocoa_.
## Usage
1. Add CDKitt as a git submodule and bootstrap it.
1. `git submodule add https://github.com/rastersize/CDKitt.git External/CDKi... | <|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md
# CDKitt
CDKitt is [my](http://aron.cedercrantz.com/) kit of shared Objective-C macros, functions and classes. There’s extensions to _Foundation_, _Cocoa Touch_ and regular _Cocoa_.
## Usage
1. Add CDKitt as a git submodule an... | dc53afc5b96f0f2293c9ec1e723c805b19e45438 | README.md | README.md | Markdown |
<|file_sep|>original/src/Laravel/LaragramServiceProvider.php
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->singleton('Williamson\Laragram\TgCommands', function () {
try {
$tg = new TgCommands('un... |
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->singleton('Williamson\Laragram\TgCommands', function () {
try {
$tg = new TgCommands(Config::get('services.telegram.socket'));
} catch (C... | <|file_sep|>original/src/Laravel/LaragramServiceProvider.php
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->singleton('Williamson\Laragram\TgCommands', function () {
try {
$tg = new TgCommands('un... | 1aa35b40793cc7b9282f3708abad018be0854429 | src/Laravel/LaragramServiceProvider.php | src/Laravel/LaragramServiceProvider.php | PHP |
<|file_sep|>original/Cargo.toml
[profile.dev]
panic = "abort"
# The release profile, used for `cargo build --release`.
[profile.release]
panic = "abort"
debug = true
lto = true
[dependencies]
r0 = "0.1.0"
cortex-m = "0.1.5"
volatile-register = "0.1.2"
lm4f120 = "0.2.0"
embedded-serial = "0.3.0"
alloc-cortex-m = "0.2.... | # The development profile, used for `cargo build`.
[profile.dev]
panic = "abort"
# The release profile, used for `cargo build --release`.
[profile.release]
panic = "abort"
debug = true
lto = true
[dependencies]
r0 = "0.1.0"
cortex-m = "0.1.5"
volatile-register = "0.1.2"
lm4f120 = "0.2.0"
embedded-serial = "0.3.0"
all... | <|file_sep|>original/Cargo.toml
[profile.dev]
panic = "abort"
# The release profile, used for `cargo build --release`.
[profile.release]
panic = "abort"
debug = true
lto = true
[dependencies]
r0 = "0.1.0"
cortex-m = "0.1.5"
volatile-register = "0.1.2"
lm4f120 = "0.2.0"
embedded-serial = "0.3.0"
alloc-cortex-m = "0.2.... | f2ff01c2d19645f7af460daa467cbd5d6c520fc0 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/playbook/include/postgres.inc.yml
- name: "Flush handlers"
meta: flush_handlers
- name: "Create home directory for PostgreSQL"
file:
path: "{{ item }}"
state: directory
mode: "0755"
owner: postgres
group: postgres
with_items:
- /var/db/postgres
- /var/db/postgres/... | - name: "Flush handlers"
meta: flush_handlers
- name: "Create home directory for PostgreSQL"
file:
path: "{{ item }}"
state: directory
mode: "0755"
owner: postgres
group: postgres
with_items:
- /var/db/postgres
- /var/db/postgres/.ssh
- name: "Create ssh identity for PostgreSQL"
op... | <|file_sep|>original/playbook/include/postgres.inc.yml
- name: "Flush handlers"
meta: flush_handlers
- name: "Create home directory for PostgreSQL"
file:
path: "{{ item }}"
state: directory
mode: "0755"
owner: postgres
group: postgres
with_items:
- /var/db/postgres
- /var/db/postgres/... | 690e7cd18f4fa7d0f3f8b17db1e2fd9a6caab9ff | playbook/include/postgres.inc.yml | playbook/include/postgres.inc.yml | YAML |
<|file_sep|>original/requirements_dev.txt
wheel==0.36.2
watchdog==1.0.2
pip==21.0
flake8==3.8.4
Sphinx==3.4.3
tox==3.21.2
coverage==5.4
PyYAML==5.4.1
pytest==6.2.2
<|file_sep|>current/requirements_dev.txt
wheel==0.36.2
watchdog==1.0.2
pip==21.0
flake8==3.8.4
Sphinx==3.4.3
tox==3.21.2
coverage==5.4
PyYAML==5.4.1
pytest=... | wheel==0.36.2
watchdog==1.0.2
pip==21.0
flake8==3.8.4
Sphinx==3.4.3
tox==3.21.3
coverage==5.4
PyYAML==5.4.1
pytest==6.2.2 | <|file_sep|>original/requirements_dev.txt
wheel==0.36.2
watchdog==1.0.2
pip==21.0
flake8==3.8.4
Sphinx==3.4.3
tox==3.21.2
coverage==5.4
PyYAML==5.4.1
pytest==6.2.2
<|file_sep|>current/requirements_dev.txt
wheel==0.36.2
watchdog==1.0.2
pip==21.0
flake8==3.8.4
Sphinx==3.4.3
tox==3.21.2
coverage==5.4
PyYAML==5.4.1
pytest=... | bb839140ea0f27f0090cac9238fbe804e77830af | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/build_qemu.sh
<|file_sep|>current/build_qemu.sh
<|file_sep|>updated/build_qemu.sh | #!/bin/sh
# make a directory for our modified qemu
mkdir driller_qemu
# require qemu 2.3.0
QEMU_GIT="git://git.qemu.org/qemu.git"
git clone $QEMU_GIT
cd qemu
git checkout tags/v2.3.0
# apply the driller patch
git apply ../patches/driller-qemu.patch
./driller-config
make -j
X64_DEST="x86_64-linux-user/qemu-x86_64"... | <|file_sep|>original/build_qemu.sh
<|file_sep|>current/build_qemu.sh
<|file_sep|>updated/build_qemu.sh
#!/bin/sh
# make a directory for our modified qemu
mkdir driller_qemu
# require qemu 2.3.0
QEMU_GIT="git://git.qemu.org/qemu.git"
git clone $QEMU_GIT
cd qemu
git checkout tags/v2.3.0
# apply the driller patch
gi... | d67f04bf8c3afaa815e2ea6153363156f2280e56 | build_qemu.sh | build_qemu.sh | Shell |
<|file_sep|>original/roles/etcd_ca/tasks/main.yml
dest: "{{ etcd_ca_dir }}/openssl.cnf"
- command: touch index.txt
args:
chdir: "{{ etcd_ca_dir }}"
creates: "{{ etcd_ca_dir }}/index.txt"
- copy:
dest: "{{ etcd_ca_dir }}/serial"
content: "01"
force: no
- command: >
openssl req -config op... |
- command: touch index.txt
args:
chdir: "{{ etcd_ca_dir }}"
creates: "{{ etcd_ca_dir }}/index.txt"
- copy:
dest: "{{ etcd_ca_dir }}/serial"
content: "01"
force: no
- command: >
openssl req -config openssl.cnf -newkey rsa:4096
-keyout ca.key -new -out ca.crt -x509 -extensions etcd_v3_ca_... | <|file_sep|>original/roles/etcd_ca/tasks/main.yml
dest: "{{ etcd_ca_dir }}/openssl.cnf"
- command: touch index.txt
args:
chdir: "{{ etcd_ca_dir }}"
creates: "{{ etcd_ca_dir }}/index.txt"
- copy:
dest: "{{ etcd_ca_dir }}/serial"
content: "01"
force: no
- command: >
openssl req -config op... | b07822c575cb876f9af5389e1353acce7e19ce00 | roles/etcd_ca/tasks/main.yml | roles/etcd_ca/tasks/main.yml | YAML |
<|file_sep|>original/examples/options.js
"use strict";
const fs = require('fs');
const cursor = require('kittik-cursor').create().resetTTY();
const shape = require('../lib/Image').create({
image: './examples/nodejs.png',
x: 'center',
y: 'middle',
width: '40%',
height: '20%',
preserveAspectRatio: true
});
... | "use strict";
const fs = require('fs');
const cursor = require('kittik-cursor').create().resetTTY();
const shape = require('../lib/Image').create({
image: './examples/nodejs.png',
x: 'center',
y: 'middle',
width: 10,
height: 5,
preserveAspectRatio: false
});
shape.render(cursor);
cursor.flush(); | <|file_sep|>original/examples/options.js
"use strict";
const fs = require('fs');
const cursor = require('kittik-cursor').create().resetTTY();
const shape = require('../lib/Image').create({
image: './examples/nodejs.png',
x: 'center',
y: 'middle',
width: '40%',
height: '20%',
preserveAspectRatio: true
});
... | 2d98572dcf43fa1f0ea92277ce3d44e8d9a4e6e8 | examples/options.js | examples/options.js | JavaScript |
<|file_sep|>original/README.md
# usbmux
A client library to communicate with usbmuxd (USB multiplexer daemon)
## Resources And Implementations
* https://www.theiphonewiki.com/wiki/Usbmux
* https://github.com/libimobiledevice/ - collection of tools and libraries
* https://github.com/rcg4u/iphonessh - python
* http... | # usbmux
A client library to communicate with usbmuxd (USB multiplexer daemon)
## Resources And Implementations
* https://www.theiphonewiki.com/wiki/Usbmux
* https://github.com/libimobiledevice/ - collection of tools and libraries
* https://github.com/rcg4u/iphonessh - python
* https://github.com/DeMille/node-usb... | <|file_sep|>original/README.md
# usbmux
A client library to communicate with usbmuxd (USB multiplexer daemon)
## Resources And Implementations
* https://www.theiphonewiki.com/wiki/Usbmux
* https://github.com/libimobiledevice/ - collection of tools and libraries
* https://github.com/rcg4u/iphonessh - python
* http... | 4a9aae9463175ed7864b412f3d8c7aa1d5f10ff2 | README.md | README.md | Markdown |
<|file_sep|>test/test_pocket_parser.py.diff
original:
updated:
import shutil
<|file_sep|>test/test_pocket_parser.py.diff
original:
sys.path.append(os.path.join(TOPDIR, 'lib'))
updated:
utils.set_search_paths(TOPDIR)
<|file_sep|>original/test/test_pocket_parser.py
import os
import sys
import re
import subprocess
TOPDI... | class Tests(unittest.TestCase):
def test_get_cnc(self):
"""Test get_cnc() function"""
res = cryptosite.pocket_parser.get_cnc(os.path.join(TOPDIR, 'test',
'input', 'test.pdb'),
None)
self.ass... | <|file_sep|>test/test_pocket_parser.py.diff
original:
updated:
import shutil
<|file_sep|>test/test_pocket_parser.py.diff
original:
sys.path.append(os.path.join(TOPDIR, 'lib'))
updated:
utils.set_search_paths(TOPDIR)
<|file_sep|>original/test/test_pocket_parser.py
import os
import sys
import re
import subprocess
TOPDI... | 850f6af90b99756e572b06803e40f55efd6734e6 | test/test_pocket_parser.py | test/test_pocket_parser.py | Python |
<|file_sep|>web/help/population.html.diff
original:
whole map. That population can decrease because of <a href=war.html>wars</a>,
and will increase up to the population cap at every turn (unless the population
is past that cap).
updated:
whole map. That population is always higher than or equal to the population cap.
I... | Each camp's population is the number of folks that are part of that camp on the
whole map. That population is always higher than or equal to the population cap.
It can be higher thanks to surrendering enemies, and will usually decrease
because of <a href=war.html>wars</a>,
</p>
<p>
The population cap is directly equal ... | <|file_sep|>web/help/population.html.diff
original:
whole map. That population can decrease because of <a href=war.html>wars</a>,
and will increase up to the population cap at every turn (unless the population
is past that cap).
updated:
whole map. That population is always higher than or equal to the population cap.
I... | 51f52a8c920f6b980d4297d5d7f6e697aeec85c8 | web/help/population.html | web/help/population.html | HTML |
<|file_sep|>original/requirements.txt
codeclimate-test-reporter==0.2.0
coverage==4.3.4
extras==1.0.0
fixtures==3.0.0
linecache2==1.0.0
mkdocs==0.16.1
mox3==0.20.0
pbr==1.10.0
py==1.4.32
pyfakefs==3.1
pytest==3.0.6
pytest-cov==2.4.0
pytest-runner==2.11.1
python-mimeparse==1.6.0
PyYAML==3.12
requests==2.13.0
six==1.10.0
... | codeclimate-test-reporter==0.2.0
coverage==4.3.4
extras==1.0.0
fixtures==3.0.0
linecache2==1.0.0
mkdocs==0.16.2
mox3==0.20.0
pbr==1.10.0
py==1.4.32
pyfakefs==3.1
pytest==3.0.6
pytest-cov==2.4.0
pytest-runner==2.11.1
python-mimeparse==1.6.0
PyYAML==3.12
requests==2.13.0
six==1.10.0
testtools==2.2.0
traceback2==1.4.0
uni... | <|file_sep|>original/requirements.txt
codeclimate-test-reporter==0.2.0
coverage==4.3.4
extras==1.0.0
fixtures==3.0.0
linecache2==1.0.0
mkdocs==0.16.1
mox3==0.20.0
pbr==1.10.0
py==1.4.32
pyfakefs==3.1
pytest==3.0.6
pytest-cov==2.4.0
pytest-runner==2.11.1
python-mimeparse==1.6.0
PyYAML==3.12
requests==2.13.0
six==1.10.0
... | e8acdab28c05030e51fe55b7a63588bdc8949856 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/bottles_of_beer.rb
bottles = 99
until bottles == 0
puts "#{bottles} bottles of beer on the wall!"
puts "#{bottles} bottles of beer!"
puts "You take one down, pass it around..."
bottles -= 1
puts "#{bottles} bottles of beer on the wall"
puts ""
end
if bottles == 0
puts ... | bottles = 15 #or 99, if you want 100 verses of the song
until bottles == 0
puts "#{bottles} bottles of beer on the wall!"
puts "#{bottles} bottles of beer!"
puts "You take one down, pass it around..."
bottles -= 1
puts "#{bottles} bottles of beer on the wall"
puts ""
end
if bottles == 0
pu... | <|file_sep|>original/bottles_of_beer.rb
bottles = 99
until bottles == 0
puts "#{bottles} bottles of beer on the wall!"
puts "#{bottles} bottles of beer!"
puts "You take one down, pass it around..."
bottles -= 1
puts "#{bottles} bottles of beer on the wall"
puts ""
end
if bottles == 0
puts ... | 27c0a4b654512be8b5dd4d1d852ed6a6840083ba | bottles_of_beer.rb | bottles_of_beer.rb | Ruby |
<|file_sep|>t/nqp/61-mixin.t.diff
original:
plan(6);
updated:
plan(7);
<|file_sep|>original/t/nqp/61-mixin.t
}
class Example {
method override_me() { "class method" }
}
my $obj := Example.new();
my $obj_m := Example.new();
ok($obj.override_me() eq "class method", "sanity (1)");
ok($obj_m.override_me() eq "class ... | class Example {
method override_me() { "class method" }
}
my $obj := Example.new();
my $obj_m := Example.new();
ok($obj.override_me() eq "class method", "sanity (1)");
ok($obj_m.override_me() eq "class method", "sanity (2)");
$obj_m.HOW.mixin($obj_m, TheRole);
ok(nqp::istype($obj_m, TheRole),"after mixing in a ... | <|file_sep|>t/nqp/61-mixin.t.diff
original:
plan(6);
updated:
plan(7);
<|file_sep|>original/t/nqp/61-mixin.t
}
class Example {
method override_me() { "class method" }
}
my $obj := Example.new();
my $obj_m := Example.new();
ok($obj.override_me() eq "class method", "sanity (1)");
ok($obj_m.override_me() eq "class ... | 56ce7c4a8f936a621461e932f7db16383947a61c | t/nqp/61-mixin.t | t/nqp/61-mixin.t | Perl |
<|file_sep|>original/.travis.yml
- 2.12.10
- 2.13.1
jdk:
- openjdk11
stages:
- validations
- test
jobs:
include:
- stage: validations
script: scripts/validate-code check
name: "Code validations for source formatting"
- stage: test
script: sbt clean coverage test
name: "Run... | scala:
- 2.12.10
- 2.13.1
jdk:
- openjdk11
stages:
- validations
- test
jobs:
include:
- stage: validations
script: scripts/validate-code check
name: "Code validations for source formatting"
- stage: test
script: sbt clean coverage test
name: "Run coverage tests"
aft... | <|file_sep|>original/.travis.yml
- 2.12.10
- 2.13.1
jdk:
- openjdk11
stages:
- validations
- test
jobs:
include:
- stage: validations
script: scripts/validate-code check
name: "Code validations for source formatting"
- stage: test
script: sbt clean coverage test
name: "Run... | 4d5b2db142e893cf3e0a054a5a87b5c4e2645091 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/IPython/html/widgets/__init__.py
from .widget_selection import RadioButtons, ToggleButtons, Dropdown, Select
from .widget_selectioncontainer import Tab, Accordion
from .widget_string import HTML, Latex, Text, Textarea
from .interaction import interact, interactive, fixed, interact_manual
from .widg... | from .widget_output import Output
from .widget_selection import RadioButtons, ToggleButtons, Dropdown, Select
from .widget_selectioncontainer import Tab, Accordion
from .widget_string import HTML, Latex, Text, Textarea
from .interaction import interact, interactive, fixed, interact_manual
from .widget_link import Link,... | <|file_sep|>original/IPython/html/widgets/__init__.py
from .widget_selection import RadioButtons, ToggleButtons, Dropdown, Select
from .widget_selectioncontainer import Tab, Accordion
from .widget_string import HTML, Latex, Text, Textarea
from .interaction import interact, interactive, fixed, interact_manual
from .widg... | 9653f3d4d3bd859d592542fc011ad7b81a866052 | IPython/html/widgets/__init__.py | IPython/html/widgets/__init__.py | Python |
<|file_sep|>original/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb
<|file_sep|>current/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb
<|file_sep|>updated/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb | DESCRIPTION = "This package contains ROS driver for mmWave TI sensor."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://docs/TI_mmWave_ROS_Driver_manifest.pdf;md5=6ee5d8ff5204a889d79a1ffd1812b3c1"
SRC_URI[base.md5sum] = "f48fe4a1e654f359382fc617667f33c0"
SRC_URI[base.sha256sum] = "72b424a1c7568b04f1b583ef4... | <|file_sep|>original/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb
<|file_sep|>current/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb
<|file_sep|>updated/recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb
DESCRIPTION = "This package contains ROS driver for mmWave TI sensor."
SECTION = "devel"
LICENS... | 1cf5d33820273a4245d06b36acb97994d00a6137 | recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb | recipes-ros/ros-mmwave/mmwave-ros-pkg-master_0.1.0.bb | BitBake |
<|file_sep|>original/app/mailers/team_user_mailer.rb
class TeamUserMailer < ApplicationMailer
layout nil
def request_to_join(team, requestor, origin)
if team && requestor
@team = team
@requestor = requestor
@url = URI.join(origin, "/members")
@handle = requestor.provider.blank? ? reques... | class TeamUserMailer < ApplicationMailer
layout nil
def request_to_join(team, requestor, origin)
if team && requestor
@team = team
@requestor = requestor
@url = URI.join(origin, "/members")
@handle = requestor.provider.blank? ? requestor.email : "#{requestor.login} at #{requestor.provid... | <|file_sep|>original/app/mailers/team_user_mailer.rb
class TeamUserMailer < ApplicationMailer
layout nil
def request_to_join(team, requestor, origin)
if team && requestor
@team = team
@requestor = requestor
@url = URI.join(origin, "/members")
@handle = requestor.provider.blank? ? reques... | b8cce9471ce71e9d6eb6a0016286d48331a9d782 | app/mailers/team_user_mailer.rb | app/mailers/team_user_mailer.rb | Ruby |
<|file_sep|>src/Leeroy/Program.cs.diff
original:
using System.Collections.Generic;
updated:
<|file_sep|>src/Leeroy/Program.cs.diff
original:
updated:
using System.Runtime.InteropServices;
<|file_sep|>src/Leeroy/Program.cs.diff
original:
using System.Text;
updated:
<|file_sep|>src/Leeroy/Program.cs.diff
original:
up... | task.Wait();
}
catch (AggregateException)
{
// TODO: verify this contains a single OperationCanceledException
}
// shut down
task.Dispose();
tokenSource.Dispose();
}
else
{
ServiceBase.Run(new ServiceBase[] { new Service() });
}
}
[DllImport("user32.dll", Char... | <|file_sep|>src/Leeroy/Program.cs.diff
original:
using System.Collections.Generic;
updated:
<|file_sep|>src/Leeroy/Program.cs.diff
original:
updated:
using System.Runtime.InteropServices;
<|file_sep|>src/Leeroy/Program.cs.diff
original:
using System.Text;
updated:
<|file_sep|>src/Leeroy/Program.cs.diff
original:
up... | de968c1842027d55da5d639782cad31b90fae2c7 | src/Leeroy/Program.cs | src/Leeroy/Program.cs | C# |
<|file_sep|>original/cs251tk/common/check_submit_date.py
by comparing first commits for all files in the spec
and returning the earliest """
basedir = os.path.join(basedir, 'students', username, spec_id)
dates = []
with chdir(basedir):
for file in spec['files']:
# Run ... | by comparing first commits for all files in the spec
and returning the earliest """
basedir = os.path.join(basedir, 'students', username, spec_id)
dates = []
with chdir(basedir):
for file in spec['files']:
# Run a git log on each file with earliest commits listed first... | <|file_sep|>original/cs251tk/common/check_submit_date.py
by comparing first commits for all files in the spec
and returning the earliest """
basedir = os.path.join(basedir, 'students', username, spec_id)
dates = []
with chdir(basedir):
for file in spec['files']:
# Run ... | 374981fd60c0116e861d598eec763cc2b8165189 | cs251tk/common/check_submit_date.py | cs251tk/common/check_submit_date.py | Python |
<|file_sep|>.travis.yml.diff
original:
- sudo deb http://ppa.launchpad.net/chris-lea/protobuf/ubuntu precise main
- sudo deb-src http://ppa.launchpad.net/chris-lea/protobuf/ubuntu precise main
updated:
- sudo add-apt-repository ppa:chris-lea/protobuf -y
<|file_sep|>original/.travis.yml
language: java
jdk:
- ope... | language: java
jdk:
- openjdk7
before_install:
- sudo add-apt-repository ppa:chris-lea/protobuf -y
- sudo apt-get update
- sudo apt-get install protobuf-compiler=2.5.0-1chl1~precise1 -y
- ./src/main/sh/generate_toolchains.sh
- mvn --toolchains toolchains.xml --file plugin/pom.xml install
install: mvn --too... | <|file_sep|>.travis.yml.diff
original:
- sudo deb http://ppa.launchpad.net/chris-lea/protobuf/ubuntu precise main
- sudo deb-src http://ppa.launchpad.net/chris-lea/protobuf/ubuntu precise main
updated:
- sudo add-apt-repository ppa:chris-lea/protobuf -y
<|file_sep|>original/.travis.yml
language: java
jdk:
- ope... | ed3c9295dd74a50786bd1b1978ad45e99900b6a4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "git://github.com/flexui/portal.git"
},
"bugs": {
"url": "https://github.com/flexui/portal/issues",
"email": "nuintun@qq.com"
},
"license": "MIT",
"keywords": ["html", "tmpl", "render", "engine", "portal", "compile", "te... | "repository": {
"type": "git",
"url": "git://github.com/flexui/portal.git"
},
"bugs": {
"url": "https://github.com/flexui/portal/issues",
"email": "nuintun@qq.com"
},
"license": "MIT",
"keywords": ["html", "tmpl", "render", "engine", "portal", "compile", "template"],
"jsnext:main": "src/po... | <|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "git://github.com/flexui/portal.git"
},
"bugs": {
"url": "https://github.com/flexui/portal/issues",
"email": "nuintun@qq.com"
},
"license": "MIT",
"keywords": ["html", "tmpl", "render", "engine", "portal", "compile", "te... | f69004957c4d5ac94536e4ba15a9edd60dc3df2c | package.json | package.json | JSON |
<|file_sep|>original/app/assets/stylesheets/new_dashboard/change-privacy-list.css.scss
padding: $sMargin-element;
border: 1px solid $cStructure-mainLine;
border-radius: $sCard-borderRadius;
background-color: $cStructure-mainBkg;
width: 25%; // Assumes that there are exatly 4 items
}
.ChangePrivacyList-item.is... | border-radius: $sCard-borderRadius;
background-color: $cStructure-mainBkg;
width: 25%; // Assumes that there are exatly 4 items
}
.ChangePrivacyList-item.is-disabled {
background-color: $cStructure-grayBkg;
}
.ChangePrivacyList-item.is-selected {
border-color: $cCard-selectedBorder;
}
.ChangePrivacyList-item:... | <|file_sep|>original/app/assets/stylesheets/new_dashboard/change-privacy-list.css.scss
padding: $sMargin-element;
border: 1px solid $cStructure-mainLine;
border-radius: $sCard-borderRadius;
background-color: $cStructure-mainBkg;
width: 25%; // Assumes that there are exatly 4 items
}
.ChangePrivacyList-item.is... | ee959686406c516fe233ed11dfa54853347fa161 | app/assets/stylesheets/new_dashboard/change-privacy-list.css.scss | app/assets/stylesheets/new_dashboard/change-privacy-list.css.scss | SCSS |
<|file_sep|>original/package.json
{
"name": "nodejs-docker-example",
"scripts": {
"test": "mocha ./test.js"
},
"devDependencies": {
"mocha": "9.1.2"
}
}
<|file_sep|>current/package.json
{
"name": "nodejs-docker-example",
"scripts": {
"test": "mocha ./test.js"
},
"devDependencies": {
"m... | {
"name": "nodejs-docker-example",
"scripts": {
"test": "mocha ./test.js"
},
"devDependencies": {
"mocha": "9.1.3"
}
} | <|file_sep|>original/package.json
{
"name": "nodejs-docker-example",
"scripts": {
"test": "mocha ./test.js"
},
"devDependencies": {
"mocha": "9.1.2"
}
}
<|file_sep|>current/package.json
{
"name": "nodejs-docker-example",
"scripts": {
"test": "mocha ./test.js"
},
"devDependencies": {
"m... | 80c16f8448065cc5705ea8b5fb004fcdd152d28b | package.json | package.json | JSON |
<|file_sep|>original/core/app/controllers/opinionators_controller.rb
render json: votes
end
def create
@fact = Fact[fact_id]
authorize! :opinionate, @fact
type = params[:type]
@fact.add_opinion(type, current_user.graph_user)
Activity.create user: current_user.graph_user, action: type, sub... | render json: votes
end
def create
@fact = Fact[fact_id]
authorize! :opinionate, @fact
type = params[:type]
@fact.add_opinion(type, current_user.graph_user)
render json: {}
end
alias :update :create
def destroy
@fact = Fact[fact_id]
authorize! :opinionate, @fact
@fact.... | <|file_sep|>original/core/app/controllers/opinionators_controller.rb
render json: votes
end
def create
@fact = Fact[fact_id]
authorize! :opinionate, @fact
type = params[:type]
@fact.add_opinion(type, current_user.graph_user)
Activity.create user: current_user.graph_user, action: type, sub... | 3cf259a76c92fa16035b00c3224955d5943d29dd | core/app/controllers/opinionators_controller.rb | core/app/controllers/opinionators_controller.rb | Ruby |
<|file_sep|>original/spec/redditkit/comment_spec.rb
require 'spec_helper'
describe RedditKit::Comment, :vcr do
it "should return replies" do
comments = RedditKit.comments '1n002d'
comment = comments.first
expect(comment.replies?).to be true
end
it "should be deleted if both author and comment attr... | require 'spec_helper'
describe RedditKit::Comment, :vcr do
# it "should return replies" do
# comments = RedditKit.comments '1n002d'
# comment = comments.first
#
# expect(comment.replies?).to be true
# end
it "should be deleted if both author and comment attributes are set to '[deleted]'" do
a... | <|file_sep|>original/spec/redditkit/comment_spec.rb
require 'spec_helper'
describe RedditKit::Comment, :vcr do
it "should return replies" do
comments = RedditKit.comments '1n002d'
comment = comments.first
expect(comment.replies?).to be true
end
it "should be deleted if both author and comment attr... | ca7241739bcaa0c4d80df15427993bf363f9340d | spec/redditkit/comment_spec.rb | spec/redditkit/comment_spec.rb | Ruby |
<|file_sep|>original/modules/en/source/appium/01_native_ios_automation/01_getting_started_with_appium/01_introduction.md
# Getting started with appium
[introduction](/common/introduction.md)
In this chapter, we'll be preparing to automate a native iOS application.
<|file_sep|>current/modules/en/source/appium/01_nativ... | # Native iOS Automation
This tutorial covers automating native iOS apps in Ruby and Java. To select the
active language, click `Ruby` or `Java` on the left hand side. Code samples and
content will change based on the selected language.
# Getting started with appium
[introduction](/common/introduction.md)
In this ch... | <|file_sep|>original/modules/en/source/appium/01_native_ios_automation/01_getting_started_with_appium/01_introduction.md
# Getting started with appium
[introduction](/common/introduction.md)
In this chapter, we'll be preparing to automate a native iOS application.
<|file_sep|>current/modules/en/source/appium/01_nativ... | c8ee6a8b42e23c87a0f7d67b61d954228e3b9458 | modules/en/source/appium/01_native_ios_automation/01_getting_started_with_appium/01_introduction.md | modules/en/source/appium/01_native_ios_automation/01_getting_started_with_appium/01_introduction.md | Markdown |
<|file_sep|>app.js.diff
original:
updated:
var logHandler = require('./routes/log');
<|file_sep|>original/app.js
winston.remove(winston.transports.Console);
winston.add(winston.transports.Console, { level: 'info' });
var statusHandler = require('./routes/status');
var telegramHandler = require('./routes/telegram');
... | winston.add(winston.transports.Console, { level: 'info' });
var statusHandler = require('./routes/status');
var logHandler = require('./routes/log');
var telegramHandler = require('./routes/telegram');
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.get('/sta... | <|file_sep|>app.js.diff
original:
updated:
var logHandler = require('./routes/log');
<|file_sep|>original/app.js
winston.remove(winston.transports.Console);
winston.add(winston.transports.Console, { level: 'info' });
var statusHandler = require('./routes/status');
var telegramHandler = require('./routes/telegram');
... | 2a6d614b453c545bce4c8a8b0ef9d7548554c74b | app.js | app.js | JavaScript |
<|file_sep|>original/tools/release_win.bat
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
<|file_sep|>current/tools/release_win.bat
P... | PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd .. | <|file_sep|>original/tools/release_win.bat
PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
<|file_sep|>current/tools/release_win.bat
P... | a276dc1a1df15b744fb4e8a21ad13e43365c4e22 | tools/release_win.bat | tools/release_win.bat | Batchfile |
<|file_sep|>packages/me/merge.yaml.diff
original:
hash: a45ffdb4e00df928fdfcce87d76fb2f70333fa37cdfa060dd7880a755edda1ac
updated:
hash: 01d16f25d967395864cbead21310d0dc77c78a2903bf6fdc791685549d47b44b
<|file_sep|>packages/me/merge.yaml.diff
original:
updated:
- 0.2.0.0
<|file_sep|>original/packages/me/merge.yaml
## ... | ## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsuspecting world.
basic-deps:
base: '>=4.6 && <5'
profunctors: '>=5.6 && <6'
all-versions:
- 0.1.0.0
- 0.2.0.0
author: Samuel Schlesinger
latest: 0.2.0.0
description-type: markdown
description: |
# Merge
```haskell
data User = User
{ name ::... | <|file_sep|>packages/me/merge.yaml.diff
original:
hash: a45ffdb4e00df928fdfcce87d76fb2f70333fa37cdfa060dd7880a755edda1ac
updated:
hash: 01d16f25d967395864cbead21310d0dc77c78a2903bf6fdc791685549d47b44b
<|file_sep|>packages/me/merge.yaml.diff
original:
updated:
- 0.2.0.0
<|file_sep|>original/packages/me/merge.yaml
## ... | aa2a13834188801d9af8b168b0d1168dd5d11f5a | packages/me/merge.yaml | packages/me/merge.yaml | YAML |
<|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- 7.0
- 7.1
- nightly
matrix:
allow_failures:
- php: nightly
fast_finish: true
install:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
- composer update -n --prefer-dist --ignore-platform-reqs... | sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
matrix:
allow_failures:
- php: nightly
fast_finish: true
install:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
- composer update -n --prefer-dist --ignore-platform-reqs
- composer require sat... | <|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- 7.0
- 7.1
- nightly
matrix:
allow_failures:
- php: nightly
fast_finish: true
install:
# --ignore-platform-reqs, because https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722
- composer update -n --prefer-dist --ignore-platform-reqs... | a42619d18ebb74cf44b0cd5116ff012789ebffb7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- php: 5.6
env: SYMFONY_VERSION=2.8.*@dev
<|file_sep|>original/.travis.yml
env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.5.*
- php: 5.6
env... | env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.5.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*@dev
- php: 5.6
env: SYMFONY_VERSION=2.8.*@dev
allow_failures:
- php: hhvm
- env: SYMFONY_VERSION=2.7.*@dev
- env: SYMFONY_VERSION=2.8.*@dev
- php: nightly
before_... | <|file_sep|>.travis.yml.diff
original:
updated:
- php: 5.6
env: SYMFONY_VERSION=2.8.*@dev
<|file_sep|>original/.travis.yml
env: SYMFONY_VERSION=2.3.* COMPOSER_FLAGS="--prefer-lowest"
- php: 5.6
env: SYMFONY_VERSION=2.3.*
- php: 5.6
env: SYMFONY_VERSION=2.5.*
- php: 5.6
env... | 1675eef26081c3bbd994199da1e2139cdf6c6b0a | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/DrawingManager.js.diff
original:
updated:
var lowerLayer = [];
<|file_sep|>src/DrawingManager.js.diff
original:
console.log('Added ' + drawing);
drawings.unshift(drawing);
updated:
if (drawing.pulse.layer) {
lowerLayer.unshift(drawing);
} else {
console.log('Added ' + drawing);
draw... | DrawingManager.prototype.add = function (drawing) {
if (drawing.pulse.layer) {
lowerLayer.unshift(drawing);
} else {
console.log('Added ' + drawing);
drawings.unshift(drawing);
}
}
DrawingManager.prototype.drawAll = function () {
for (var i = lowerLayer.length - 1; i >= 0; i--) {
lowerLayer[i].... | <|file_sep|>src/DrawingManager.js.diff
original:
updated:
var lowerLayer = [];
<|file_sep|>src/DrawingManager.js.diff
original:
console.log('Added ' + drawing);
drawings.unshift(drawing);
updated:
if (drawing.pulse.layer) {
lowerLayer.unshift(drawing);
} else {
console.log('Added ' + drawing);
draw... | 3158eb1bbd06d8a7fb8bc9c60e9fed423f3971a4 | src/DrawingManager.js | src/DrawingManager.js | JavaScript |
<|file_sep|>original/.gitlab-ci.yml
- build
- deploy
# Job: Build
# Installs npm packages, transpiles ES6 -> ES5
# Passes package.json node_modules/ and build/ onto next steps using artifacts
build:
image: node:8.4.0
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- p... | - build
- deploy
# Job: Build
# Installs npm packages, transpiles ES6 -> ES5
# Passes package.json node_modules/ and build/ onto next steps using artifacts
build:
image: node:8.4.0
stage: build
script:
- npm install -g yarn
- yarn install
- yarn run build
artifacts:
paths:
- package.j... | <|file_sep|>original/.gitlab-ci.yml
- build
- deploy
# Job: Build
# Installs npm packages, transpiles ES6 -> ES5
# Passes package.json node_modules/ and build/ onto next steps using artifacts
build:
image: node:8.4.0
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- p... | b6500f3cf904464666d15a82c9b050e9131c32a9 | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>original/.travis.yml
sudo: required
language: ruby
rvm:
- 2.4.0
addons:
apt:
packages:
- language-pack-en
- language-pack-en-base
- libcrack2
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
# `cache` is only available for private projects
c... | sudo: required
language: ruby
rvm:
- 2.4.0
addons:
apt:
packages:
- language-pack-en
- language-pack-en-base
- libcrack2
- cracklib-runtime
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
# `cache` is only available for private projects
cache: bu... | <|file_sep|>original/.travis.yml
sudo: required
language: ruby
rvm:
- 2.4.0
addons:
apt:
packages:
- language-pack-en
- language-pack-en-base
- libcrack2
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
# `cache` is only available for private projects
c... | 7a1d05b7069e56c20493daf78574b9c83dcca51e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/dnx-on-ubuntu/azuredeploy.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VM admin password": {
"value": "PASSw0rd"
},
"VM admin username": {
"value": "serve... | {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VM admin password": {
"value": "PASSw0rd"
},
"VM admin username": {
"value": "serveradmin"
},
"VM name": {
"value": "ubuntu-box"... | <|file_sep|>original/dnx-on-ubuntu/azuredeploy.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VM admin password": {
"value": "PASSw0rd"
},
"VM admin username": {
"value": "serve... | 15037db4b6f01c844a32279ab084a1feebc2da14 | dnx-on-ubuntu/azuredeploy.parameters.json | dnx-on-ubuntu/azuredeploy.parameters.json | JSON |
<|file_sep|>exercises/rna-transcription/.meta/generator/rna_transcription_case.rb.diff
original:
if expects_error?
assert_raises(ArgumentError) { test_case }
else
assert_equal { test_case }
end
end
private
def test_case
updated:
<|file_sep|>original/exercises/rna-transcription/.meta/gen... | require 'generator/exercise_case'
class RnaTranscriptionCase < Generator::ExerciseCase
def workload
"assert_equal '#{expected}', Complement.of_dna('#{dna}')"
end
end | <|file_sep|>exercises/rna-transcription/.meta/generator/rna_transcription_case.rb.diff
original:
if expects_error?
assert_raises(ArgumentError) { test_case }
else
assert_equal { test_case }
end
end
private
def test_case
updated:
<|file_sep|>original/exercises/rna-transcription/.meta/gen... | 0fbbd1af13b562bd9e744452524f55d6e47ae54d | exercises/rna-transcription/.meta/generator/rna_transcription_case.rb | exercises/rna-transcription/.meta/generator/rna_transcription_case.rb | Ruby |
<|file_sep|>original/package.json
{
"name": "swagger-model-validator",
"version": "1.2.0",
"description": "Validate incoming objects against Swagger Models.",
"keywords": [ "Swagger", "Validation" ],
"licence": "MIT",
"author": "Brody Dunn",
"bugs": {
"url": "https://github.com/atlan... | {
"name": "swagger-model-validator",
"version": "1.2.1",
"description": "Validate incoming objects against Swagger Models.",
"keywords": [ "Swagger", "Validation" ],
"licence": "MIT",
"author": "Brody Dunn",
"bugs": {
"url": "https://github.com/atlantishealthcare/swagger-model-valida... | <|file_sep|>original/package.json
{
"name": "swagger-model-validator",
"version": "1.2.0",
"description": "Validate incoming objects against Swagger Models.",
"keywords": [ "Swagger", "Validation" ],
"licence": "MIT",
"author": "Brody Dunn",
"bugs": {
"url": "https://github.com/atlan... | cdd3544bf7ad000b430c6ec861ee616526a632d1 | package.json | package.json | JSON |
<|file_sep|>plugins/n98-magerun/n98-magerun.plugin.zsh.diff
original:
n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^\s+[a-z]+/ { print $1 }'
updated:
n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
<|file_sep|>plugins/n98-magerun/n98-magerun.plugi... | # ------------------------------------------------------------------------------
# n98-magerun basic command completion
_n98_magerun_get_command_list () {
n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
}
_n98_magerun () {
compadd `_n98_magerun_get_command_list`
}
c... | <|file_sep|>plugins/n98-magerun/n98-magerun.plugin.zsh.diff
original:
n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^\s+[a-z]+/ { print $1 }'
updated:
n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
<|file_sep|>plugins/n98-magerun/n98-magerun.plugi... | 363ee4320e073c21cbe7baf2d218ce1a56fe6bd8 | plugins/n98-magerun/n98-magerun.plugin.zsh | plugins/n98-magerun/n98-magerun.plugin.zsh | Shell |
<|file_sep|>original/resources/views/Checkout/Components/AcceptGtcCheck.twig
<script type="x/template" id="vue-accept-gtc-check">
<label class="form-check-label" for="gtc-accept" v-bind:class="{ 'error': this.checkoutValidation.gtc.showError }">
<input class="form-check-input" type="checkbox" value="" id="g... | <script type="x/template" id="vue-accept-gtc-check">
<label class="form-check-label" for="gtc-accept" v-bind:class="{ 'error': this.checkoutValidation.gtc.showError }">
<input class="form-check-input" type="checkbox" value="" id="gtc-accept" v-model="isChecked">
{% autoescape false %}
{%... | <|file_sep|>original/resources/views/Checkout/Components/AcceptGtcCheck.twig
<script type="x/template" id="vue-accept-gtc-check">
<label class="form-check-label" for="gtc-accept" v-bind:class="{ 'error': this.checkoutValidation.gtc.showError }">
<input class="form-check-input" type="checkbox" value="" id="g... | 3599c0bd239f11f4f7df497bbe52de00b4784dde | resources/views/Checkout/Components/AcceptGtcCheck.twig | resources/views/Checkout/Components/AcceptGtcCheck.twig | Twig |
<|file_sep|>setup.py.diff
original:
from distutils.command import install
updated:
<|file_sep|>setup.py.diff
original:
for scheme in install.INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
updated:
<|file_sep|>original/setup.py
try:
from setuptools import setup
except:
from distutils.core im... | try:
from setuptools import setup
except:
from distutils.core import setup
import forms
setup(
name='forms',
version=forms.version,
description='HTML forms framework for Nevow',
author='Matt Goodall',
author_email='matt@pollenation.net',
packages=['forms', 'forms.test'],
package_da... | <|file_sep|>setup.py.diff
original:
from distutils.command import install
updated:
<|file_sep|>setup.py.diff
original:
for scheme in install.INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
updated:
<|file_sep|>original/setup.py
try:
from setuptools import setup
except:
from distutils.core im... | 126b9d4e49bfdba7305d727f13eb2f97b0051069 | setup.py | setup.py | Python |
<|file_sep|>original/client/view/layout.html
<template name='layout'>
<div id="wrap">
<div id='main' class="container bg">
<div class="header">
<div class='row'>
<div class='clearfix'>
<a href='{{pathFor "home"}}' class="reversim-logo pull-left" title='Reversim Summit 2015'></a>
... | <template name='layout'>
<div id="wrap">
<div id='main' class="container bg">
<div class="header">
<div class='row'>
<div class='clearfix'>
<a href='{{pathFor "home"}}' class="reversim-logo pull-left" title='Reversim Summit 2015'></a>
<h4 class='pull-left' style='margin... | <|file_sep|>original/client/view/layout.html
<template name='layout'>
<div id="wrap">
<div id='main' class="container bg">
<div class="header">
<div class='row'>
<div class='clearfix'>
<a href='{{pathFor "home"}}' class="reversim-logo pull-left" title='Reversim Summit 2015'></a>
... | 8d70e2904d7714f1287ae5ba6408d41c4a6b25b3 | client/view/layout.html | client/view/layout.html | HTML |
<|file_sep|>original/package.json
"url": "https://github.com/anders94/blockchain-demo/issues"
},
"license": "MIT",
"dependencies": {
"async": "^1.4.2",
"express": "^4.13.4",
"serve-favicon": "^2.3.0",
"morgan": "^1.7.0",
"cookie-parser": "^1.4.3",
"body-parser": "~1.15.2",
"debug":... | "url": "https://github.com/anders94/blockchain-demo/issues"
},
"license": "MIT",
"dependencies": {
"async": "^1.4.2",
"express": "^4.13.4",
"serve-favicon": "^2.3.0",
"morgan": "^1.7.0",
"cookie-parser": "^1.4.3",
"body-parser": "~1.15.2",
"debug": ">=2.6.9",
"jade": "~1.11.0",... | <|file_sep|>original/package.json
"url": "https://github.com/anders94/blockchain-demo/issues"
},
"license": "MIT",
"dependencies": {
"async": "^1.4.2",
"express": "^4.13.4",
"serve-favicon": "^2.3.0",
"morgan": "^1.7.0",
"cookie-parser": "^1.4.3",
"body-parser": "~1.15.2",
"debug":... | 48171d0d814c20a3057938cf43161d35cd917fa5 | package.json | package.json | JSON |
<|file_sep|>src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs.diff
original:
string path = Directory.GetCurrentDirectory();
string fullFilePath = Path.Combine(path, configFileName);
updated:
string fullFilePath = Path.Combine(AppDomain.CurrentD... |
return instance;
}
}
private void LoadConfigFile()
{
string fullFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, configFileName);
if (!File.Exists(fullFilePath))
{
instance = null;
thr... | <|file_sep|>src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs.diff
original:
string path = Directory.GetCurrentDirectory();
string fullFilePath = Path.Combine(path, configFileName);
updated:
string fullFilePath = Path.Combine(AppDomain.CurrentD... | 9f3793bd2db01fd46b48b877536c434a342c03c4 | src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs | src/ResourceManager/DataMigration/Commands.DataMigration.Test/DataMigrationAppSettings.cs | C# |
<|file_sep|>original/ansible/main.yml
---
- hosts: all
vars:
cf_cli_version: "6.25.0"
maven_version: "3.5.0"
maven_checksum: "516923b3955b6035ba6b0a5b031fbd8b"
sbt_version: "0.13.13"
intellij_version: "2017.1"
sts_version: "3.8.4"
eclipse_version: "4.6.3"
docker_compose_version: "1.12.... | ---
- hosts: all
vars:
cf_cli_version: "6.25.0"
maven_version: "3.5.0"
maven_checksum: "35c39251d2af99b6624d40d801f6ff02"
sbt_version: "0.13.13"
intellij_version: "2017.1"
sts_version: "3.8.4"
eclipse_version: "4.6.3"
docker_compose_version: "1.12.0"
atom_version: "1.15.0"
grad... | <|file_sep|>original/ansible/main.yml
---
- hosts: all
vars:
cf_cli_version: "6.25.0"
maven_version: "3.5.0"
maven_checksum: "516923b3955b6035ba6b0a5b031fbd8b"
sbt_version: "0.13.13"
intellij_version: "2017.1"
sts_version: "3.8.4"
eclipse_version: "4.6.3"
docker_compose_version: "1.12.... | d7790236a87155bfdbf2cda8eafa7f4d8114a8f5 | ansible/main.yml | ansible/main.yml | YAML |
<|file_sep|>ext/hiredis_ext/extconf.rb.diff
original:
hiredis_dir = File.expand_path(File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis}))
updated:
hiredis_dir = File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis})
<|file_sep|>original/ext/hiredis_ext/extconf.rb
unless File.directory?(hiredis_dir)
STDER... | exit 1
end
RbConfig::CONFIG['configure_args'] =~ /with-make-prog\=(\w+)/
make_program = $1 || ENV['make']
unless make_program then
make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
end
# Make sure hiredis is built...
Dir.chdir(hiredis_dir) do
success = system("#{make_program} static")
raise "Buildi... | <|file_sep|>ext/hiredis_ext/extconf.rb.diff
original:
hiredis_dir = File.expand_path(File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis}))
updated:
hiredis_dir = File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis})
<|file_sep|>original/ext/hiredis_ext/extconf.rb
unless File.directory?(hiredis_dir)
STDER... | 0841f588bf744ee6682649a2cf1f93d59f5cce02 | ext/hiredis_ext/extconf.rb | ext/hiredis_ext/extconf.rb | Ruby |
<|file_sep|>original/lib/ExecutionEngine/Interpreter/CMakeLists.txt
# Make sure that the path to libffi headers is on the command
# line. That path can be a compiler's non-default path even when
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for i... | # Make sure that the path to libffi headers is on the command
# line. That path can be a compiler's non-default path even when
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for instance):
if( FFI_INCLUDE_PATH )
include_directories( ${FFI_INCLUD... | <|file_sep|>original/lib/ExecutionEngine/Interpreter/CMakeLists.txt
# Make sure that the path to libffi headers is on the command
# line. That path can be a compiler's non-default path even when
# FFI_INCLUDE_DIR was not used, because cmake has its own paths for
# searching for headers (CMAKE_SYSTEM_INCLUDE_PATH, for i... | d3a511ec07d6e35158547125bf36b068193bed4a | lib/ExecutionEngine/Interpreter/CMakeLists.txt | lib/ExecutionEngine/Interpreter/CMakeLists.txt | Text |
<|file_sep|>original/composer.json
"homepage": "https://github.com/silverstripe/silverstripe-translatable/",
"authors": [
{
"name": "Ingo Schommer",
"homepage": "http://chillu.com",
"email" : "ingo@silverstripe.com"
}
],
"require": {
"php": ">=5.3.2",
"silverstripe/framework": "~3.2",
"silverstri... | "homepage": "https://github.com/silverstripe/silverstripe-translatable/",
"authors": [
{
"name": "Ingo Schommer",
"homepage": "http://chillu.com",
"email" : "ingo@silverstripe.com"
}
],
"require": {
"php": ">=5.3.2",
"silverstripe/framework": "~4.0",
"silverstripe/cms": "~4.0"
},
"require-dev":... | <|file_sep|>original/composer.json
"homepage": "https://github.com/silverstripe/silverstripe-translatable/",
"authors": [
{
"name": "Ingo Schommer",
"homepage": "http://chillu.com",
"email" : "ingo@silverstripe.com"
}
],
"require": {
"php": ">=5.3.2",
"silverstripe/framework": "~3.2",
"silverstri... | 5beb57e0bc31b65b6668ab70a533748f5ea711bb | composer.json | composer.json | JSON |
<|file_sep|>original/iis/recipes/install.rb
Web-Http-Errors,
Web-Static-Content,
Web-Http-Redirect,
Web-Health,
Web-Http-Logging,
Web-Log-Libraries,
Web-Request-Monitor,
Web-Http-Tracing,
Web-Performance,
Web-Stat-Compression,
Web-Security,
Web-Filtering,
Web-Basic-Auth,
Web-Windows-Auth,
... | powershell_script 'Install IIS' do
code <<- EOH
Add-WindowsFeature Web-Server, Web-WebServer, Web-Common-Http, Web-Default-Doc, Web-Dir-Browsing, Web-Http-Errors, Web-Static-Content, Web-Http-Redirect, Web-Health, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Performance, Web-Stat-... | <|file_sep|>original/iis/recipes/install.rb
Web-Http-Errors,
Web-Static-Content,
Web-Http-Redirect,
Web-Health,
Web-Http-Logging,
Web-Log-Libraries,
Web-Request-Monitor,
Web-Http-Tracing,
Web-Performance,
Web-Stat-Compression,
Web-Security,
Web-Filtering,
Web-Basic-Auth,
Web-Windows-Auth,
... | a2f75db29f7448eb9d964a280d7bb7be578ba068 | iis/recipes/install.rb | iis/recipes/install.rb | Ruby |
<|file_sep|>original/sum-of-multiples/sum_of_multiples.py
def sum_of_multiples(limit, factors):
return sum(filter(lambda n: n < limit,
{f*i for i in range(1, limit) for f in factors}))
<|file_sep|>current/sum-of-multiples/sum_of_multiples.py
def sum_of_multiples(limit, factors):
return sum... | def sum_of_multiples(limit, factors):
return sum({n for f in factors for n in range(f, limit, f)}) | <|file_sep|>original/sum-of-multiples/sum_of_multiples.py
def sum_of_multiples(limit, factors):
return sum(filter(lambda n: n < limit,
{f*i for i in range(1, limit) for f in factors}))
<|file_sep|>current/sum-of-multiples/sum_of_multiples.py
def sum_of_multiples(limit, factors):
return sum... | bd6b969b85a1c8df7cf8d6da7b93f5c94cf8a180 | sum-of-multiples/sum_of_multiples.py | sum-of-multiples/sum_of_multiples.py | Python |
<|file_sep|>original/app/controllers/profiles_controller.rb
respond_to do |format|
if @profile.update(profile_params)
format.html { redirect_to user_profile_path(@profile.user), notice: 'Profile was successfully updated.' }
format.json { render :show, status: :ok, location: @profile }
el... | end
end
private
def set_profile
@profile = Profile.find(params[:id])
end
def profile_params
params
.require(:profile)
.permit(
:avatar,
:bio,
:rate,
:work_company,
:work_title,
:location,
:twitter_username
) | <|file_sep|>original/app/controllers/profiles_controller.rb
respond_to do |format|
if @profile.update(profile_params)
format.html { redirect_to user_profile_path(@profile.user), notice: 'Profile was successfully updated.' }
format.json { render :show, status: :ok, location: @profile }
el... | b5675429ce4fa5f447d9542367c64782a2a8672d | app/controllers/profiles_controller.rb | app/controllers/profiles_controller.rb | Ruby |
<|file_sep|>original/project/Dependencies.scala
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
object Dependencies {
lazy val jaxbApi = "javax.xml.bind" % "jaxb-api" % "2.3.1" % "test"
lazy val jodaTime = Seq(
"joda-time" % "joda-time" % "2.10.14",
"org.joda" % "joda-convert" % "... | import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
object Dependencies {
lazy val jaxbApi = "javax.xml.bind" % "jaxb-api" % "2.3.1" % "test"
lazy val jodaTime = Seq(
"joda-time" % "joda-time" % "2.10.14",
"org.joda" % "joda-convert" % "2.2.2"
)
lazy val jackson = Seq(
"com.fa... | <|file_sep|>original/project/Dependencies.scala
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
object Dependencies {
lazy val jaxbApi = "javax.xml.bind" % "jaxb-api" % "2.3.1" % "test"
lazy val jodaTime = Seq(
"joda-time" % "joda-time" % "2.10.14",
"org.joda" % "joda-convert" % "... | 10d3d2c1ff6f954e342bff98f4c75196023b4801 | project/Dependencies.scala | project/Dependencies.scala | Scala |
<|file_sep|>aero/adapters/brew.py.diff
original:
'\n'.join(map(
lambda k: k[0] if len(k) < 2 else k[0] + ': ' + k[1],
self.search_info(line)
))
updated:
self.search_info(self.package_name(line))
<|file_sep|>original/aero/adapters/br... | self.package_name(line),
self.search_info(self.package_name(line))
) for line in response.splitlines() if line])
return {}
def search_info(self, query):
response = self._execute_command('aero', ['info', query], False)[0]
from re import split
... | <|file_sep|>aero/adapters/brew.py.diff
original:
'\n'.join(map(
lambda k: k[0] if len(k) < 2 else k[0] + ': ' + k[1],
self.search_info(line)
))
updated:
self.search_info(self.package_name(line))
<|file_sep|>original/aero/adapters/br... | ad934e49a43a8340af9d52bbac86bede45d0e84d | aero/adapters/brew.py | aero/adapters/brew.py | Python |
<|file_sep|>original/app/templates/wifidog/portal.html
{% if voucher %}
<script>
Zepto(function($) {
var time_left = {{ voucher.time_left }};
if(time_left > 0) {
setInterval(function() {
time_left--;
$('#time_left').html(time_left);
}, 60000);
}
if(time_left > 5... | setInterval(function() {
time_left--;
$('#time_left').html(time_left);
}, 60000);
}
if(time_left > 5) {
setTimeout(function() {
new Notification('Your session is about to expire. You have 5 minutes left.');
}, (time_left - 5) * 60000);
}
... | <|file_sep|>original/app/templates/wifidog/portal.html
{% if voucher %}
<script>
Zepto(function($) {
var time_left = {{ voucher.time_left }};
if(time_left > 0) {
setInterval(function() {
time_left--;
$('#time_left').html(time_left);
}, 60000);
}
if(time_left > 5... | 9da2c7ce1c6207476ed917937bf6a571415322d3 | app/templates/wifidog/portal.html | app/templates/wifidog/portal.html | HTML |
<|file_sep|>original/connectivity/drivers/ble/FEATURE_BLE/TARGET_Ambiq_Micro/CMakeLists.txt
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("Apollo3" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Apollo3)
endif()
target_include_directories(mbed-ble
INTERFA... | # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("Apollo3" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Apollo3)
endif()
target_include_directories(mbed-ble
INTERFACE
hal/apollo3
)
target_sources(mbed-ble
INTERFACE
hal/apollo3/hci_drv_... | <|file_sep|>original/connectivity/drivers/ble/FEATURE_BLE/TARGET_Ambiq_Micro/CMakeLists.txt
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("Apollo3" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Apollo3)
endif()
target_include_directories(mbed-ble
INTERFA... | a1e80925af070864e0723244c06a938c8167f780 | connectivity/drivers/ble/FEATURE_BLE/TARGET_Ambiq_Micro/CMakeLists.txt | connectivity/drivers/ble/FEATURE_BLE/TARGET_Ambiq_Micro/CMakeLists.txt | Text |
<|file_sep|>services/dataretriever.js.diff
original:
updated:
this.noTradesCount = 0;
<|file_sep|>original/services/dataretriever.js
var Util = require('util');
var EventEmitter = require('events').EventEmitter;
Util.inherits(downloader, EventEmitter);
//---EventEmitter Setup
downloader.prototype.processTrades = fu... | //---EventEmitter Setup
var Util = require('util');
var EventEmitter = require('events').EventEmitter;
Util.inherits(downloader, EventEmitter);
//---EventEmitter Setup
downloader.prototype.processTrades = function(err, trades) {
if(!err) {
if(trades.length === 0) {
this.noTradesCount += 1;
} else {
... | <|file_sep|>services/dataretriever.js.diff
original:
updated:
this.noTradesCount = 0;
<|file_sep|>original/services/dataretriever.js
var Util = require('util');
var EventEmitter = require('events').EventEmitter;
Util.inherits(downloader, EventEmitter);
//---EventEmitter Setup
downloader.prototype.processTrades = fu... | ee41e43cd480787a3bdb3814ebd3c84a21258bef | services/dataretriever.js | services/dataretriever.js | JavaScript |
<|file_sep|>original/profiling/EQ/main.cpp
int main(int argc, char** argv)
{
ATK::SimpleSinusGeneratorFilter<double> generator;
generator.set_output_sampling_rate(1024 * 64);
generator.set_amplitude(1);
generator.set_frequency(1000);
ATK::IIRFilter<ATK::BesselLowPassCoefficients<double> > filter;
filter.s... |
int main(int argc, char** argv)
{
ATK::SimpleSinusGeneratorFilter<double> generator;
generator.set_output_sampling_rate(1024 * 64);
generator.set_amplitude(1);
generator.set_frequency(1000);
ATK::IIRFilter<ATK::BesselLowPassCoefficients<double> > filter;
filter.set_input_sampling_rate(1024 * 64);
filter... | <|file_sep|>original/profiling/EQ/main.cpp
int main(int argc, char** argv)
{
ATK::SimpleSinusGeneratorFilter<double> generator;
generator.set_output_sampling_rate(1024 * 64);
generator.set_amplitude(1);
generator.set_frequency(1000);
ATK::IIRFilter<ATK::BesselLowPassCoefficients<double> > filter;
filter.s... | 5a8e179da990ad13d3d10958229fc0bfc6eb7d1e | profiling/EQ/main.cpp | profiling/EQ/main.cpp | C++ |
<|file_sep|>original/deploy.sh
#!/bin/bash -e
set -o pipefail
if [ "$TRAVIS_BRANCH" = "master" ]
then
cd dist
git init .
git add *
git commit -m "Deployment commit"
# We redirect any output to /dev/null to hide
# any sensitive credential data that might otherwise be exposed.
git push --force --quiet "htt... | #!/bin/bash -e
set -o pipefail
if [ "$TRAVIS_BRANCH" = "master" ]
then
cd dist
git init .
git add *
git commit -m "Deployment commit" --author="Travis CI <noreply@travis-ci.org>"
# We redirect any output to /dev/null to hide
# any sensitive credential data that might otherwise be exposed.
git push --forc... | <|file_sep|>original/deploy.sh
#!/bin/bash -e
set -o pipefail
if [ "$TRAVIS_BRANCH" = "master" ]
then
cd dist
git init .
git add *
git commit -m "Deployment commit"
# We redirect any output to /dev/null to hide
# any sensitive credential data that might otherwise be exposed.
git push --force --quiet "htt... | da28d9c126f19bf9462b386ab792ca0da89f88ef | deploy.sh | deploy.sh | Shell |
<|file_sep|>original/shell/rainbow.1
<|file_sep|>current/shell/rainbow.1
<|file_sep|>updated/shell/rainbow.1 | .TH RAINBOW 1
.f1
.SH NAME
\fBrainbow\fP \-\- Display a palette of xterm colours
.SH SYNOPSIS
\fBrainbow\fP [\-\fBalb\fP] [\fB\-c\fP \fIcolour\-count\fP] [\fB\-t\fP \fItext\fP]
.SH DESCRIPTION
The \fBrainbow\fP utility prints a line of text in different xterm colours, prefixing each row with the colour's respective ind... | <|file_sep|>original/shell/rainbow.1
<|file_sep|>current/shell/rainbow.1
<|file_sep|>updated/shell/rainbow.1
.TH RAINBOW 1
.f1
.SH NAME
\fBrainbow\fP \-\- Display a palette of xterm colours
.SH SYNOPSIS
\fBrainbow\fP [\-\fBalb\fP] [\fB\-c\fP \fIcolour\-count\fP] [\fB\-t\fP \fItext\fP]
.SH DESCRIPTION
The \fBrainbow\f... | c2da68624ceeeb64258192bdcf625304f3117b70 | shell/rainbow.1 | shell/rainbow.1 | Groff |
<|file_sep|>packages/fi/fileneglect.yaml.diff
original:
hash: eb67afa1aac8e0732040cf9ee5021e313fb341890f62df9ceebb08d2dcfbab39
updated:
hash: 86f1bfc940b958b20870bd984d4c69d097c8c892d3d46fa8e36e3f5e4fd29010
<|file_sep|>packages/fi/fileneglect.yaml.diff
original:
updated:
- '0.0.0.1'
<|file_sep|>original/packages/fi/fi... | homepage: ''
changelog-type: ''
hash: 86f1bfc940b958b20870bd984d4c69d097c8c892d3d46fa8e36e3f5e4fd29010
test-bench-deps: {}
maintainer: Athan Clark <athan.clark@gmail.com>
synopsis: Block thread until a file stops being modified
changelog: ''
basic-deps:
stm: -any
base: ! '>=4.8 && <5'
hinotify: -any
all-versions:... | <|file_sep|>packages/fi/fileneglect.yaml.diff
original:
hash: eb67afa1aac8e0732040cf9ee5021e313fb341890f62df9ceebb08d2dcfbab39
updated:
hash: 86f1bfc940b958b20870bd984d4c69d097c8c892d3d46fa8e36e3f5e4fd29010
<|file_sep|>packages/fi/fileneglect.yaml.diff
original:
updated:
- '0.0.0.1'
<|file_sep|>original/packages/fi/fi... | a01d4e1211dc738fc828790f8e0478acb5003a7f | packages/fi/fileneglect.yaml | packages/fi/fileneglect.yaml | YAML |
<|file_sep|>original/enumfields/enums.py
from enum import Enum as BaseEnum, EnumMeta as BaseEnumMeta
import six
class EnumMeta(BaseEnumMeta):
def __new__(cls, name, bases, attrs):
Labels = attrs.get('Labels')
if Labels is not None and inspect.isclass(Labels):
del attrs['Labels']
... | from enum import Enum as BaseEnum, EnumMeta as BaseEnumMeta
import six
class EnumMeta(BaseEnumMeta):
def __new__(cls, name, bases, attrs):
Labels = attrs.get('Labels')
if Labels is not None and inspect.isclass(Labels):
del attrs['Labels']
if hasattr(attrs, '_member_names')... | <|file_sep|>original/enumfields/enums.py
from enum import Enum as BaseEnum, EnumMeta as BaseEnumMeta
import six
class EnumMeta(BaseEnumMeta):
def __new__(cls, name, bases, attrs):
Labels = attrs.get('Labels')
if Labels is not None and inspect.isclass(Labels):
del attrs['Labels']
... | 5c3900e12216164712c9e7fe7ea064e70fae8d1b | enumfields/enums.py | enumfields/enums.py | Python |
<|file_sep|>original/.semaphore/semaphore.yml
name: Tests
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
execution_time_limit:
minutes: 4
blocks:
- name: Lint
task:
prologue:
commands:
- sem-version node 8.16.1
- checkout
- npm ci
... | name: Tests
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
execution_time_limit:
minutes: 4
auto_cancel:
running:
when: 'true'
blocks:
- name: Lint
task:
prologue:
commands:
- sem-version node 8.16.1
| <|file_sep|>original/.semaphore/semaphore.yml
name: Tests
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
execution_time_limit:
minutes: 4
blocks:
- name: Lint
task:
prologue:
commands:
- sem-version node 8.16.1
- checkout
- npm ci
... | 8e17fb30e9af4da96380937f320446d295162a0e | .semaphore/semaphore.yml | .semaphore/semaphore.yml | YAML |
<|file_sep|>original/webserver/util/cookies.js
module.exports = function checkCookieConsent(rq, rs, nx) {
if (rq.originalUrl.startsWith("/static")) return nx(); // prevent the data consent from loading on static files
if (rq.originalUrl.startsWith("/acceptcookie")) return nx();
if (!rq.signedCookies) return... | module.exports = function checkCookieConsent(rq, rs, nx) {
if (rq.originalUrl.startsWith("/static")) return nx(); // prevent the data consent from loading on static files
if (rq.originalUrl.startsWith("/acceptcookie")) return nx();
if (rq.originalUrl.startsWith("/api")) return nx(); // Allow DBL to bypass c... | <|file_sep|>original/webserver/util/cookies.js
module.exports = function checkCookieConsent(rq, rs, nx) {
if (rq.originalUrl.startsWith("/static")) return nx(); // prevent the data consent from loading on static files
if (rq.originalUrl.startsWith("/acceptcookie")) return nx();
if (!rq.signedCookies) return... | b3844dee0c03ef3300b2951f91f6cce8d3c9f290 | webserver/util/cookies.js | webserver/util/cookies.js | JavaScript |
<|file_sep|>original/Cargo.toml
description = "A Rust implementation of the Polylabel algorithm for finding optimum polygon label positions."
readme = "README.md"
keywords = ["geo", "polylabel", "gis"]
repository = "https://github.com/urschrei/polylabel-rs"
license = "MIT"
edition = "2018"
# build = "src/build.rs"
[de... | description = "A Rust implementation of the Polylabel algorithm for finding optimum polygon label positions."
readme = "README.md"
keywords = ["geo", "polylabel", "gis"]
repository = "https://github.com/urschrei/polylabel-rs"
license = "MIT"
edition = "2018"
# build = "src/build.rs"
[dependencies]
libc = "0.2.29"
geo ... | <|file_sep|>original/Cargo.toml
description = "A Rust implementation of the Polylabel algorithm for finding optimum polygon label positions."
readme = "README.md"
keywords = ["geo", "polylabel", "gis"]
repository = "https://github.com/urschrei/polylabel-rs"
license = "MIT"
edition = "2018"
# build = "src/build.rs"
[de... | 6f717f2ca8df28b2707d88e707ef64f01e95e0cb | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/setup.py
"""Installation script for proselint."""
from setuptools import setup
setup(
name='proselint',
version='0.1',
description='Making your writing better',
url='http://github.com/suchow/proselint',
author='Jordan Suchow',
author_email='suchow@post.harvard.edu',
li... | from setuptools import setup
setup(
name='proselint',
version='0.1',
description='Making your writing better',
url='http://github.com/suchow/proselint',
author='Jordan Suchow',
author_email='suchow@post.harvard.edu',
license='MIT',
packages=[
'proselint',
'proselint.chec... | <|file_sep|>original/setup.py
"""Installation script for proselint."""
from setuptools import setup
setup(
name='proselint',
version='0.1',
description='Making your writing better',
url='http://github.com/suchow/proselint',
author='Jordan Suchow',
author_email='suchow@post.harvard.edu',
li... | 319ccff1aa72185e5c02c8094bd1ce5118d94ccd | setup.py | setup.py | Python |
<|file_sep|>original/web/lib/coffeescripts/layout.coffee
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(node)
getter = node[get]
parent = getter.cal... |
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(node)
getter = node[get]
parent = getter.call node.parent(), true
fixed = this.fixed node, sele... | <|file_sep|>original/web/lib/coffeescripts/layout.coffee
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(node)
getter = node[get]
parent = getter.cal... | 935f3ecd0add5dd06dd5c5e1693fbc8e6b6701b8 | web/lib/coffeescripts/layout.coffee | web/lib/coffeescripts/layout.coffee | CoffeeScript |
<|file_sep|>original/django_requirements.txt
# Install Django requirements, if we're using the optional Django-integrated
# parts of XBlock
Django >= 1.4, < 1.5
<|file_sep|>current/django_requirements.txt
# Install Django requirements, if we're using the optional Django-integrated
# parts of XBlock
Django >= 1.4, < 1.5... | # Install Django requirements, if we're using the optional Django-integrated
# parts of XBlock
Django >= 1.4, < 1.7 | <|file_sep|>original/django_requirements.txt
# Install Django requirements, if we're using the optional Django-integrated
# parts of XBlock
Django >= 1.4, < 1.5
<|file_sep|>current/django_requirements.txt
# Install Django requirements, if we're using the optional Django-integrated
# parts of XBlock
Django >= 1.4, < 1.5... | 4c5637bcbb88796b901d0ddef8555a966be5fe7d | django_requirements.txt | django_requirements.txt | Text |
<|file_sep|>metadata/net.pfiers.osmfocus.yml.diff
original:
updated:
- versionName: 1.0.3-fdroid-fdroid
versionCode: 103
commit: v1.0.3
subdir: app
gradle:
- fdroid
<|file_sep|>original/metadata/net.pfiers.osmfocus.yml
Repo: https://github.com/ubipo/osmfocus
Builds:
- versionName: 1.0.0
... | gradle:
- yes
- versionName: 1.0.1-fdroid
versionCode: 101
commit: v1.0.1
subdir: app
gradle:
- fdroid
- versionName: 1.0.3-fdroid-fdroid
versionCode: 103
commit: v1.0.3
subdir: app
gradle:
- fdroid
AutoUpdateMode: Version +-fdroid v%v
UpdateCheckMode: Tags
C... | <|file_sep|>metadata/net.pfiers.osmfocus.yml.diff
original:
updated:
- versionName: 1.0.3-fdroid-fdroid
versionCode: 103
commit: v1.0.3
subdir: app
gradle:
- fdroid
<|file_sep|>original/metadata/net.pfiers.osmfocus.yml
Repo: https://github.com/ubipo/osmfocus
Builds:
- versionName: 1.0.0
... | 2ec8e9d58428e927be5c637eb1c02759c769f744 | metadata/net.pfiers.osmfocus.yml | metadata/net.pfiers.osmfocus.yml | YAML |
<|file_sep|>original/features/step_definitions/request_creation_steps.rb
Given(/^I accept "(.*?)" as my pickup location$/) do |pickup_location|
expect(page).to have_text "Pickup location is #{pickup_location}."
end
Given(/^I choose "(.*?)"$/) do |choice|
choose(choice)
end
Given(/^I click the "Submit" button$/) ... |
Given(/^I accept "(.*?)" as my pickup location$/) do |pickup_location|
expect(page).to have_text "Pickup location is #{pickup_location}."
end
Given(/^I choose "(.*?)"$/) do |choice|
choose(choice)
end
Given(/^I click the "Submit" button$/) do
within '.modal-footer' do
click_button 'Submit'
end
end
Then(... | <|file_sep|>original/features/step_definitions/request_creation_steps.rb
Given(/^I accept "(.*?)" as my pickup location$/) do |pickup_location|
expect(page).to have_text "Pickup location is #{pickup_location}."
end
Given(/^I choose "(.*?)"$/) do |choice|
choose(choice)
end
Given(/^I click the "Submit" button$/) ... | 00a7e836ad7fc31c14ef948c2ac22efd62af9c24 | features/step_definitions/request_creation_steps.rb | features/step_definitions/request_creation_steps.rb | Ruby |
<|file_sep|>original/src/test/java/guitests/guihandles/GuiHandleSetting.java
package guitests.guihandles;
public class GuiHandleSetting {
static final int COMMAND_RUN_TIME = 80;
static final int SLEEP_LENGTH = 50;
static final int LONG_SLEEP_LENGTH = 600;
}
<|file_sep|>current/src/test/java/guitests/guihan... | package guitests.guihandles;
public class GuiHandleSetting {
public static final int COMMAND_RUN_TIME = 80;
public static final int SLEEP_LENGTH = 50;
public static final int LONG_SLEEP_LENGTH = 600;
} | <|file_sep|>original/src/test/java/guitests/guihandles/GuiHandleSetting.java
package guitests.guihandles;
public class GuiHandleSetting {
static final int COMMAND_RUN_TIME = 80;
static final int SLEEP_LENGTH = 50;
static final int LONG_SLEEP_LENGTH = 600;
}
<|file_sep|>current/src/test/java/guitests/guihan... | 4417f0f2dcb9c67363dd282c7c993351651c454f | src/test/java/guitests/guihandles/GuiHandleSetting.java | src/test/java/guitests/guihandles/GuiHandleSetting.java | Java |
<|file_sep|>original/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala
<|file_sep|>current/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala
<|file_sep|>updated/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala | package fpinscala
import org.scalatest.FunSuite
import fpinscala.monoids.Monoid._
import fpinscala.testing._
class ch10_MonoidsTests extends FunSuite {
test("ex 10.1") {
assert(intAddition.op(1, 2) == 3)
}
test("test monoids using laws") {
Prop.run(monoidLaws(intAddition, Gen.smallInt))
Prop.run(m... | <|file_sep|>original/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala
<|file_sep|>current/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala
<|file_sep|>updated/exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala
package fpinscala
import org.scalatest.FunSuite
import fpinscala.monoids.Monoid... | efdbaa94b1a1854b16e30fca9783a16c090cf082 | exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala | exercises/src/test/scala/fpinscala/ch10_MonoidsTests.scala | Scala |
<|file_sep|>original/VisualStudio/XSharpVoEditors/DesignWindowItem.prg
USING XSharpModel
BEGIN NAMESPACE XSharp.VOEditors
CLASS XSharpDesignWindowItem inherit DesignWindowItem
CONSTRUCTOR( oDesigner as VOWindowEditor, oTemplate as VOControlTemplate)
SUPER(oDesigner , oTemplate)
METHOD GetVOStylesString(eVOSty... | BEGIN NAMESPACE XSharp.VOEditors
CLASS XSharpDesignWindowItem inherit DesignWindowItem
CONSTRUCTOR( oDesigner as VOWindowEditor, oTemplate as VOControlTemplate)
SUPER(oDesigner , oTemplate)
METHOD GetVOStylesString(eVOStyle as VOStyle ) as STRING
LOCAL cResult := SUPER:GetVOStylesString(eVOStyle) AS STRING
... | <|file_sep|>original/VisualStudio/XSharpVoEditors/DesignWindowItem.prg
USING XSharpModel
BEGIN NAMESPACE XSharp.VOEditors
CLASS XSharpDesignWindowItem inherit DesignWindowItem
CONSTRUCTOR( oDesigner as VOWindowEditor, oTemplate as VOControlTemplate)
SUPER(oDesigner , oTemplate)
METHOD GetVOStylesString(eVOSty... | 67cc69af6b80e7f94539d6894a225c3a3c13a142 | VisualStudio/XSharpVoEditors/DesignWindowItem.prg | VisualStudio/XSharpVoEditors/DesignWindowItem.prg | xBase |
<|file_sep|>original/src/main/features/core/desktopSettings.js
import { BrowserWindow } from 'electron';
import path from 'path';
export const showDesktopSettings = () => {
if (WindowManager.getAll('settings').length > 0) {
WindowManager.getAll('settings')[0].show();
return;
}
const desktopSettings = new... | import { BrowserWindow } from 'electron';
import path from 'path';
export const showDesktopSettings = () => {
if (WindowManager.getAll('settings').length > 0) {
WindowManager.getAll('settings')[0].show();
return;
}
const desktopSettings = new BrowserWindow({
width: 800,
height: 480,
frame: fa... | <|file_sep|>original/src/main/features/core/desktopSettings.js
import { BrowserWindow } from 'electron';
import path from 'path';
export const showDesktopSettings = () => {
if (WindowManager.getAll('settings').length > 0) {
WindowManager.getAll('settings')[0].show();
return;
}
const desktopSettings = new... | e20f68504bd78cb3bbfae5c4b8aff4f164b90c2f | src/main/features/core/desktopSettings.js | src/main/features/core/desktopSettings.js | JavaScript |
<|file_sep|>original/views/voting.haml
%p
The council will send you a
%strong poll card
showing you where to vote.
%p If you lose your poll card, don't worry. You can still vote as long as you are registered.
%p
You can vote at your polling station
%strong between 7am and 10pm on 6 May.
%p If you don't... |
%p
The council will send you a
%strong poll card
showing you where to vote.
%p If you lose your poll card, don't worry. You can still vote as long as you are registered.
%p
You can vote at your polling station
%strong between 7am and 10pm on election day.
%p If you don't want to vote at a polling stati... | <|file_sep|>original/views/voting.haml
%p
The council will send you a
%strong poll card
showing you where to vote.
%p If you lose your poll card, don't worry. You can still vote as long as you are registered.
%p
You can vote at your polling station
%strong between 7am and 10pm on 6 May.
%p If you don't... | e6c2e8d0640946057f187d7d3246d6ad11fbcb10 | views/voting.haml | views/voting.haml | Haml |
<|file_sep|>original/templates/includes/config.html
<script type="text/javascript">
// This represents the site configuration
window.mdn = {
build: '{{ BUILD_ID_JS }}',
// Properties and settings for CKEditor will go here
ckeditor: {},
// Feature test results and methods will be placed here
feat... | <script type="text/javascript">
// This represents the site configuration
window.mdn = {
build: '{{ BUILD_ID_JS }}',
// Properties and settings for CKEditor will go here
ckeditor: {},
// Feature test results and methods will be placed here
features: {},
// Ensures gettext always returns some... | <|file_sep|>original/templates/includes/config.html
<script type="text/javascript">
// This represents the site configuration
window.mdn = {
build: '{{ BUILD_ID_JS }}',
// Properties and settings for CKEditor will go here
ckeditor: {},
// Feature test results and methods will be placed here
feat... | a7a7a239e8d5abe8e827a4d9af5b2c7bd94acf71 | templates/includes/config.html | templates/includes/config.html | HTML |
<|file_sep|>original/.github/workflows/dusk.yml
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-key... | echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Ins... | <|file_sep|>original/.github/workflows/dusk.yml
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-key... | 811e240c4fc1350dfdaa04ab3358326a30126b6a | .github/workflows/dusk.yml | .github/workflows/dusk.yml | YAML |
<|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.1
cryptography==1.8.1
PyYAML==3.12
pytest==3.1.0
numpy==1.12.1
scipy==0.19.0
scikit-learn==0.18.1
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.... | pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.2
cryptography==1.8.1
PyYAML==3.12
pytest==3.1.0
numpy==1.12.1
scipy==0.19.0
scikit-learn==0.18.1 | <|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.1
cryptography==1.8.1
PyYAML==3.12
pytest==3.1.0
numpy==1.12.1
scipy==0.19.0
scikit-learn==0.18.1
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.... | 42e646b4a59e7850bd08ad991ee5f303585be993 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/lib/premailer/rails/css_loaders/asset_pipeline_loader.rb
def file_name(url)
prefix = [
::Rails.configuration.relative_url_root,
::Rails.configuration.assets.prefix,
'/'
].join
URI(url).path
.sub(/\A#{prefix}/, '')... | prefix = [
::Rails.configuration.relative_url_root,
::Rails.configuration.assets.prefix,
'/'
].join
URI(url).path
.sub(/\A#{prefix}/, '')
.sub(/-(\h{32}|\h{64})\.css\z/, '.css')
end
def asset_pipeline_present?
... | <|file_sep|>original/lib/premailer/rails/css_loaders/asset_pipeline_loader.rb
def file_name(url)
prefix = [
::Rails.configuration.relative_url_root,
::Rails.configuration.assets.prefix,
'/'
].join
URI(url).path
.sub(/\A#{prefix}/, '')... | eb49e5fe13d29b8742f0eec7d53739d05fe590bb | lib/premailer/rails/css_loaders/asset_pipeline_loader.rb | lib/premailer/rails/css_loaders/asset_pipeline_loader.rb | Ruby |
<|file_sep|>original/lib/views/layout.jade
doctype html
html
head
title= title
link(rel="icon", sizes="16x16", type="image/png", href="/favicon.png")
link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet")
link(rel="stylesheet", href="/stylesheets/... | doctype html
html
head
title= title
link(rel="icon", sizes="16x16", type="image/png", href="/favicon.png")
link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet")
link(rel="stylesheet", href="/stylesheets/style.css")
meta(name="description", co... | <|file_sep|>original/lib/views/layout.jade
doctype html
html
head
title= title
link(rel="icon", sizes="16x16", type="image/png", href="/favicon.png")
link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet")
link(rel="stylesheet", href="/stylesheets/... | 9a8dcbdff1b1ea343d84728b941f000686a92bd5 | lib/views/layout.jade | lib/views/layout.jade | Jade |
<|file_sep|>original/cheroot/test/test_wsgi.py
def app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
return [b'Hello world!']
host = '::'
addr = host, port
server = wsgi.Server(ad... | port = portend.find_available_local_port()
def app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
return [b'Hello world!']
host = '::'
addr = host, port
server = wsgi.Server(ad... | <|file_sep|>original/cheroot/test/test_wsgi.py
def app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
return [b'Hello world!']
host = '::'
addr = host, port
server = wsgi.Server(ad... | aa50aa09416512003f95eefa83a805d4bb2bc96a | cheroot/test/test_wsgi.py | cheroot/test/test_wsgi.py | Python |
<|file_sep|>.travis.yml.diff
original:
cache: bundler
language: ruby
updated:
before_install: "gem install bundler -v '< 2.0'"
<|file_sep|>.travis.yml.diff
original:
- 1.9.3
updated:
<|file_sep|>.travis.yml.diff
original:
- 2.2.6
- 2.3.3
- 2.4.0
updated:
- 2.2.10
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.1
<|fil... | rvm:
- 2.0.0
- 2.1.10
- 2.2.10
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.1
- ruby-head
- jruby-9.1.5.0
- jruby-head
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: jruby-9.1.5.0
fast_finish: true
branches:
only: master
notifications:
email: false | <|file_sep|>.travis.yml.diff
original:
cache: bundler
language: ruby
updated:
before_install: "gem install bundler -v '< 2.0'"
<|file_sep|>.travis.yml.diff
original:
- 1.9.3
updated:
<|file_sep|>.travis.yml.diff
original:
- 2.2.6
- 2.3.3
- 2.4.0
updated:
- 2.2.10
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.1
<|fil... | 0f52aea3cf7a2487e68930f6c94d7335c9c24ef5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/mobility/plugins/fallthrough_accessors_spec.rb
it_behaves_like "locale accessor", :title, :'pt-BR'
it_behaves_like "locale accessor", :title, :'ru'
it 'passes arguments and options to super when method does not match' do
mod = Module.new do
def method_missing(method_... | it_behaves_like "locale accessor", :title, :'pt-BR'
it_behaves_like "locale accessor", :title, :'ru'
it 'passes arguments and options to super when method does not match' do
mod = Module.new do
def method_missing(method_name, *_args, **options, &block)
(method_name == :foo) ? option... | <|file_sep|>original/spec/mobility/plugins/fallthrough_accessors_spec.rb
it_behaves_like "locale accessor", :title, :'pt-BR'
it_behaves_like "locale accessor", :title, :'ru'
it 'passes arguments and options to super when method does not match' do
mod = Module.new do
def method_missing(method_... | ae9414d54a27f5c3ee8adcea8aa83b34cce05400 | spec/mobility/plugins/fallthrough_accessors_spec.rb | spec/mobility/plugins/fallthrough_accessors_spec.rb | Ruby |
<|file_sep|>src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java.diff
original:
updated:
import java.util.ArrayList;
<|file_sep|>src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java.diff
original:
import java.util.stream.Collectors;
updated:
import java.u... |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class ListBasedOrderedSetTest {
@Test
public void enforcesUnique() {
Set<Integer> data = new ListBasedOrderedSet<>()... | <|file_sep|>src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java.diff
original:
updated:
import java.util.ArrayList;
<|file_sep|>src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java.diff
original:
import java.util.stream.Collectors;
updated:
import java.u... | 2f9eab8aa03ab6b1d6787df2ebb3ad3dcdc243a0 | src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java | src/test/java/edu/umass/cs/ciir/jfoley/chai/collections/ListBasedOrderedSetTest.java | Java |
<|file_sep|>original/sdk-remote/src/bin/urbi-launch.cc
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
// This file *must* remain with absolutely no run-time dependency.
#include <urbi/urbi... | * either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
// This file *must* remain with absolutely no run-time dependency.
#include <urbi/urbi-root.hh>
#include <sdk/config.h>
int main(int argc, ... | <|file_sep|>original/sdk-remote/src/bin/urbi-launch.cc
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
// This file *must* remain with absolutely no run-time dependency.
#include <urbi/urbi... | 2f34262c3e9a1dbac5115bec38ab07c045f9a1f2 | sdk-remote/src/bin/urbi-launch.cc | sdk-remote/src/bin/urbi-launch.cc | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.