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/lib/gitlab/build/ha_validate/nightly.rb
base_url = 'https://omnibus-builds.s3.amazonaws.com/ubuntu-xenial/gitlab-ee_'
build_version = CGI.escape(Build::Info.semver_version)
build_iteration = Gitlab::BuildIteration.new.build_iteration
"#{base_url}#{build_version}-#{bu... | base_url = 'https://omnibus-builds.s3.amazonaws.com/ubuntu-xenial/gitlab-ee_'
build_version = CGI.escape(Build::Info.semver_version)
build_iteration = Gitlab::BuildIteration.new.build_iteration
"#{base_url}#{build_version}-#{build_iteration}_amd64.deb"
end
def self.get_param... | <|file_sep|>original/lib/gitlab/build/ha_validate/nightly.rb
base_url = 'https://omnibus-builds.s3.amazonaws.com/ubuntu-xenial/gitlab-ee_'
build_version = CGI.escape(Build::Info.semver_version)
build_iteration = Gitlab::BuildIteration.new.build_iteration
"#{base_url}#{build_version}-#{bu... | f832f5994076d44e5dd75439139752a8f6042b52 | lib/gitlab/build/ha_validate/nightly.rb | lib/gitlab/build/ha_validate/nightly.rb | Ruby |
<|file_sep|>original/.travis.yml
python:
- "3.7"
env:
- TESTING_DB=sqlite3
- TESTING_DB=postgresql
- TESTING_DB=mysql
before_install:
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password'; CREATE DATABASE evennia; GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;'"
- mysql -u root -e "C... |
python:
- "3.7"
env:
- TESTING_DB=sqlite3
- TESTING_DB=postgresql
- TESTING_DB=mysql
before_install:
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password'; CREATE DATABASE evennia; GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
- mysql -u root -e "CREATE USER 'evennia'@'localhost' I... | <|file_sep|>original/.travis.yml
python:
- "3.7"
env:
- TESTING_DB=sqlite3
- TESTING_DB=postgresql
- TESTING_DB=mysql
before_install:
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password'; CREATE DATABASE evennia; GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;'"
- mysql -u root -e "C... | 2dd47fd01df4e68fa31085af22b3536b22fae975 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
project(DesignByContractPlusPlus)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -fno-elide-constructors -pedantic-errors -Wextra -Wall -Winit-self -Wold-style-cast -Woverloaded-virtual -Wuninitialized -Wmissing-declarations -Winit-self -std=c... | cmake_minimum_required(VERSION 2.6)
project(DesignByContractPlusPlus)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -fno-elide-constructors -pedantic-errors -Wextra -Wall -Winit-self -Wold-style-cast -Woverloaded-virtual -Wuninitialized -Wmissing-declarations -Winit-self -std=c++11")
add_subdirectory(src)
#####... | <|file_sep|>original/CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
project(DesignByContractPlusPlus)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -fno-elide-constructors -pedantic-errors -Wextra -Wall -Winit-self -Wold-style-cast -Woverloaded-virtual -Wuninitialized -Wmissing-declarations -Winit-self -std=c... | 53a5557dd78390f16c5875e6057898db00d8cb20 | CMakeLists.txt | CMakeLists.txt | Text |
<|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Sam Hanes",
"email": "sam@maltera.com"
}
],
"require": {
"php": "^7.0",
"symfony/framework-bundle": "^2.8",
"kriswallsmith/buzz": "^0.15.0",
"symfony/confi... | "license": "MIT",
"authors": [
{
"name": "Sam Hanes",
"email": "sam@maltera.com"
}
],
"require": {
"php": "^7.0",
"symfony/framework-bundle": "^2.8",
"symfony/config": "^2.8",
"guzzlehttp/guzzle": "^6.2"
},
"autoload": {
... | <|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Sam Hanes",
"email": "sam@maltera.com"
}
],
"require": {
"php": "^7.0",
"symfony/framework-bundle": "^2.8",
"kriswallsmith/buzz": "^0.15.0",
"symfony/confi... | 27aded29141c523e6ebefc87a341a39e68655a71 | composer.json | composer.json | JSON |
<|file_sep|>Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd.diff
original:
(cl:in-package #:common-lisp-user)
updated:
(cl:in-package #:asdf-user)
<|file_sep|>original/Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd
(cl:in-package #:common-lisp-user)
(asdf:defsystem :cleavir-ast-to-hir-test
:depend... | (cl:in-package #:asdf-user)
(defsystem :cleavir-ast-to-hir-test
:depends-on (:cleavir-generate-ast-test
:cleavir-ast-to-hir
:cleavir-hir-interpreter)
:serial t
:components
((:file "packages")
(:file "ast-to-hir"))) | <|file_sep|>Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd.diff
original:
(cl:in-package #:common-lisp-user)
updated:
(cl:in-package #:asdf-user)
<|file_sep|>original/Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd
(cl:in-package #:common-lisp-user)
(asdf:defsystem :cleavir-ast-to-hir-test
:depend... | 94df9405c750a92556ef824d40cd53cd5b539a2a | Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd | Code/Cleavir/AST-to-HIR/Test/cleavir-ast-to-hir-test.asd | Common Lisp |
<|file_sep|>client/templates/front/tomeDetails.jade.diff
original:
h2 {{_ "actions"}}
updated:
h2 {{_ "buyTome"}}
<|file_sep|>original/client/templates/front/tomeDetails.jade
template(name="tomeDetails")
.container
.col-xs-12.col-sm-12.col-md-6.col-lg-6
h1 #{mangasName}
h3 {{_ "by"}} #{author}
.thum... | template(name="tomeDetails")
.container
.col-xs-12.col-sm-12.col-md-6.col-lg-6
h1 #{mangasName}
h3 {{_ "by"}} #{author}
.thumbnail
img(src="#{cover}" alt="#{title}")
.caption
h3.text-center #{title}
h4.text-center {{_ "tome"}} #{tomeNumber} - {{_ "version"}} : #{version}
p {{_ "releas... | <|file_sep|>client/templates/front/tomeDetails.jade.diff
original:
h2 {{_ "actions"}}
updated:
h2 {{_ "buyTome"}}
<|file_sep|>original/client/templates/front/tomeDetails.jade
template(name="tomeDetails")
.container
.col-xs-12.col-sm-12.col-md-6.col-lg-6
h1 #{mangasName}
h3 {{_ "by"}} #{author}
.thum... | 38b2dc6504d202d97f4cdff3b215304a8ebe2c12 | client/templates/front/tomeDetails.jade | client/templates/front/tomeDetails.jade | Jade |
<|file_sep|>original/requirements.txt
appdirs==1.4.3
contextlib2==0.5.5
Django==1.11.1
django-appconf==1.0.2
django-cacheops==3.1.3
django-compressor==2.1.1
django-debug-toolbar==1.7
django-querycount==0.6.0
freezegun==0.3.8
funcy==1.7.3
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
pytho... | appdirs==1.4.3
contextlib2==0.5.5
Django==1.11.1
django-appconf==1.0.2
django-cacheops==3.2.1
django-compressor==2.1.1
django-debug-toolbar==1.7
django-querycount==0.6.0
freezegun==0.3.8
funcy==1.7.3
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
python-dateutil==2.6.0
pytz==2017.2
raven==... | <|file_sep|>original/requirements.txt
appdirs==1.4.3
contextlib2==0.5.5
Django==1.11.1
django-appconf==1.0.2
django-cacheops==3.1.3
django-compressor==2.1.1
django-debug-toolbar==1.7
django-querycount==0.6.0
freezegun==0.3.8
funcy==1.7.3
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
pytho... | d39a6100616591024a1481a4fd8d9b99ceb7ab42 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/README.md
salt-nbviewer
=============
Salt States for [nbviewer](/ipython/nbviewer)
Simply installs nbviewer and its dependencies.
# Configuring the master
Make sure to install gitfs dependencies on the master first (and not fail silently).
```
$ apt-get install -y git python-pip
$ pip install... | salt-nbviewer
=============
Salt States for [nbviewer](http://github.com/ipython/nbviewer)
Simply installs nbviewer and its dependencies.
# Configuring the master
Make sure to install gitfs dependencies on the master first (and not fail silently).
```
$ apt-get install -y git python-pip
$ pip install gitpython
```... | <|file_sep|>original/README.md
salt-nbviewer
=============
Salt States for [nbviewer](/ipython/nbviewer)
Simply installs nbviewer and its dependencies.
# Configuring the master
Make sure to install gitfs dependencies on the master first (and not fail silently).
```
$ apt-get install -y git python-pip
$ pip install... | 2963f31420e87a63ab2e26f699e1a334cc641dd4 | README.md | README.md | Markdown |
<|file_sep|>original/bower.json
<|file_sep|>current/bower.json
<|file_sep|>updated/bower.json | {
"name": "clastic_backoffice",
"version": "1.0.0",
"authors": [
"Dries De Peuter <dries@nousefreak.be>"
],
"license": "MIT",
"private": true,
"dependencies": {
"jquery-slugify": "~1.0.4"
}
} | <|file_sep|>original/bower.json
<|file_sep|>current/bower.json
<|file_sep|>updated/bower.json
{
"name": "clastic_backoffice",
"version": "1.0.0",
"authors": [
"Dries De Peuter <dries@nousefreak.be>"
],
"license": "MIT",
"private": true,
"dependencies": {
"jquery-slugify": "~1.0.4"
}
} | f057bad7dab8340a2ee781159e3e303be7e0a6db | bower.json | bower.json | JSON |
<|file_sep|>original/src/components/commons/Spinner.js
import React from 'react';
const Spinner = () => {
return (
<div className="loader">Loading...</div>
);
};
export default Spinner;
<|file_sep|>current/src/components/commons/Spinner.js
import React from 'react';
const Spinner = () => {
return (
<di... | import React from 'react';
const Spinner = () => (
<div className="loader">Loading...</div>
);
export default Spinner; | <|file_sep|>original/src/components/commons/Spinner.js
import React from 'react';
const Spinner = () => {
return (
<div className="loader">Loading...</div>
);
};
export default Spinner;
<|file_sep|>current/src/components/commons/Spinner.js
import React from 'react';
const Spinner = () => {
return (
<di... | 5bf271ae7990876b60b0a69412b4037b3a48ada8 | src/components/commons/Spinner.js | src/components/commons/Spinner.js | JavaScript |
<|file_sep|>original/SurgSim/Devices/OpenNI/UnitTests/CMakeLists.txt
# limitations under the License.
include_directories(
${gtest_SOURCE_DIR}/include
)
set(UNIT_TEST_SOURCES
OpenNIDeviceTest.cpp
)
set(LIBS
OpenNIDevice
SurgSimInput
SurgSimFramework
SurgSimDataStructures
)
surgsim_add_unit_tests(OpenNIDevice... | # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include_directories(
${gtest_SOURCE_DIR}/include
)
set(UNIT_TEST_SOURC... | <|file_sep|>original/SurgSim/Devices/OpenNI/UnitTests/CMakeLists.txt
# limitations under the License.
include_directories(
${gtest_SOURCE_DIR}/include
)
set(UNIT_TEST_SOURCES
OpenNIDeviceTest.cpp
)
set(LIBS
OpenNIDevice
SurgSimInput
SurgSimFramework
SurgSimDataStructures
)
surgsim_add_unit_tests(OpenNIDevice... | 369927ce0670ffb86d4b2f311950fe57d84c31f4 | SurgSim/Devices/OpenNI/UnitTests/CMakeLists.txt | SurgSim/Devices/OpenNI/UnitTests/CMakeLists.txt | Text |
<|file_sep|>original/pkgs/test/make-binary-wrapper/golden-test-utils.sh
# commandLineCount FILE
commandLineCount() {
local n state
n=0
state="init"
while IFS="" read -r p || [ -n "$p" ]; do
case $state in
init)
if [[ $p =~ ^//.*\\$ ]]; then state="comment"
elif [[ $p =~ ^//.* ]]; then state="padding"
... | # commandLineCount FILE
commandLineCount() {
local n state
n=0
state="init"
while IFS="" read -r p || [ -n "$p" ]; do
case $state in
init)
if [[ $p =~ ^//.*\\$ ]]; then state="comment"
elif [[ $p =~ ^//.* ]]; then state="padding"
else b... | <|file_sep|>original/pkgs/test/make-binary-wrapper/golden-test-utils.sh
# commandLineCount FILE
commandLineCount() {
local n state
n=0
state="init"
while IFS="" read -r p || [ -n "$p" ]; do
case $state in
init)
if [[ $p =~ ^//.*\\$ ]]; then state="comment"
elif [[ $p =~ ^//.* ]]; then state="padding"
... | 4b833cc141172f88e563692f2458253212d1cf1a | pkgs/test/make-binary-wrapper/golden-test-utils.sh | pkgs/test/make-binary-wrapper/golden-test-utils.sh | Shell |
<|file_sep|>original/components/Layout/Layout.css
}
.inner {
background-image: linear-gradient(-169deg, #F4EBE5 0%, #E3D4CA 99%);
display: flex;
justify-content: center;
align-items: center;
}
.main {
height: 694px;
width: 1034px;
background: #FEFEFE;
border-radius: 7px;
box-shadow: 22px 32px 34px 0... | }
.inner {
background-image: linear-gradient(-169deg, #F4EBE5 0%, #E3D4CA 99%);
display: flex;
justify-content: center;
align-items: center;
}
.main {
height: 694px;
width: 1034px;
background: #FEFEFE;
border-radius: 7px;
box-shadow: 22px 32px 34px 0 rgba(0,0,0,0.06);
position: relative;
overflo... | <|file_sep|>original/components/Layout/Layout.css
}
.inner {
background-image: linear-gradient(-169deg, #F4EBE5 0%, #E3D4CA 99%);
display: flex;
justify-content: center;
align-items: center;
}
.main {
height: 694px;
width: 1034px;
background: #FEFEFE;
border-radius: 7px;
box-shadow: 22px 32px 34px 0... | 0de77fda05b2cf5412ee4f341e2df59935f8ab3e | components/Layout/Layout.css | components/Layout/Layout.css | CSS |
<|file_sep|>original/test/integration/default/default.yml
---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dyna... | ---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dynatrace.Dynatrace-Glassfish-Agent
dynatrace_glassfish_ag... | <|file_sep|>original/test/integration/default/default.yml
---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dyna... | 49d7dff97e01f797c113d336abd82f06bf5e99ef | test/integration/default/default.yml | test/integration/default/default.yml | YAML |
<|file_sep|>original/requirements/testing.txt
# Packages required for running tests
-r pip.txt
django-dynamic-fixture==3.1.0
pytest==6.0.1
pytest-custom-exit-code==0.3.0
pytest-django==3.9.0
pytest-xdist==2.0.0
pytest-cov==2.10.1
apipkg==1.5
execnet==1.7.1
# Mercurial 4.3 and newer require Python 2.7
# Mercurial is ... | # Packages required for running tests
-r pip.txt
django-dynamic-fixture==3.1.0
pytest==6.0.1
pytest-custom-exit-code==0.3.0
pytest-django==3.9.0
pytest-xdist==2.1.0
pytest-cov==2.10.1
apipkg==1.5
execnet==1.7.1
# Mercurial 4.3 and newer require Python 2.7
# Mercurial is actively being ported to Python 3. As of Mercu... | <|file_sep|>original/requirements/testing.txt
# Packages required for running tests
-r pip.txt
django-dynamic-fixture==3.1.0
pytest==6.0.1
pytest-custom-exit-code==0.3.0
pytest-django==3.9.0
pytest-xdist==2.0.0
pytest-cov==2.10.1
apipkg==1.5
execnet==1.7.1
# Mercurial 4.3 and newer require Python 2.7
# Mercurial is ... | fc369b67f87ceb95474c9a41bebf1718bbca224f | requirements/testing.txt | requirements/testing.txt | Text |
<|file_sep|>original/libraries/match/README.md
# Parity Matching Engine
Parity Matching Engine is the matching engine used by the trading system.
## Download
Add a Maven dependency to Parity Matching Engine:
```xml
<dependency>
<groupId>com.paritytrading.parity</groupId>
<artifactId>parity-match</artifactId>
... | # Parity Matching Engine
Parity Matching Engine is the matching engine used by the trading system.
## Dependencies
Parity Matching Engine depends on the following libraries:
- fastutil 8.1.0
## Download
Add a Maven dependency to Parity Matching Engine:
```xml
<dependency>
<groupId>com.paritytrading.parity</gro... | <|file_sep|>original/libraries/match/README.md
# Parity Matching Engine
Parity Matching Engine is the matching engine used by the trading system.
## Download
Add a Maven dependency to Parity Matching Engine:
```xml
<dependency>
<groupId>com.paritytrading.parity</groupId>
<artifactId>parity-match</artifactId>
... | ab4d0afdc79a36328d9907f887c15651216c9593 | libraries/match/README.md | libraries/match/README.md | Markdown |
<|file_sep|>original/app/src/app/app.component.html
<h1>
{{title}}
</h1>
<router-outlet></router-outlet>
<|file_sep|>current/app/src/app/app.component.html
<h1>
{{title}}
</h1>
<router-outlet></router-outlet>
<|file_sep|>updated/app/src/app/app.component.html | <h1>
{{title}}
</h1>
<nav>
<a routerLink="/home" routerLinkActive="active">home</a>
<a routerLink="/feature1" routerLinkActive="active">feature1</a>
<a routerLink="/feature1page2" routerLinkActive="active">feature1page2</a>
</nav>
<router-outlet></router-outlet> | <|file_sep|>original/app/src/app/app.component.html
<h1>
{{title}}
</h1>
<router-outlet></router-outlet>
<|file_sep|>current/app/src/app/app.component.html
<h1>
{{title}}
</h1>
<router-outlet></router-outlet>
<|file_sep|>updated/app/src/app/app.component.html
<h1>
{{title}}
</h1>
<nav>
<a routerLink="/home" ... | 965d5603ceb7d33127f79fa02ea60e78aaf83a04 | app/src/app/app.component.html | app/src/app/app.component.html | HTML |
<|file_sep|>original/unity/unity_config.h
<|file_sep|>current/unity/unity_config.h
<|file_sep|>updated/unity/unity_config.h | /****************************************************************************
* Copyright (c) 2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You ma... | <|file_sep|>original/unity/unity_config.h
<|file_sep|>current/unity/unity_config.h
<|file_sep|>updated/unity/unity_config.h
/****************************************************************************
* Copyright (c) 2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under ... | 71ee827a7a6a0f71d52df93af91647d74e98316f | unity/unity_config.h | unity/unity_config.h | C |
<|file_sep|>original/src/styles/colours/_sidebar.scss
transform: none;
will-change: initial;
}
.sidebar__toggle {
background: url('../assets/img/close.svg') no-repeat center center / 0.75rem 0.75rem;
border: 0;
cursor: pointer;
font-size: 0;
height: 2rem;
opacity: 0.5;
position: fixed;
right: 0;
... | will-change: initial;
}
.sidebar__toggle {
background: url('../assets/img/close.svg') no-repeat center center / 0.75rem 0.75rem;
border: 0;
cursor: pointer;
font-size: 0;
height: 2rem;
opacity: 0.5;
position: fixed;
right: 0;
top: 0;
transition: opacity 0.3s;
width: 2rem;
z-index: 100;
&:h... | <|file_sep|>original/src/styles/colours/_sidebar.scss
transform: none;
will-change: initial;
}
.sidebar__toggle {
background: url('../assets/img/close.svg') no-repeat center center / 0.75rem 0.75rem;
border: 0;
cursor: pointer;
font-size: 0;
height: 2rem;
opacity: 0.5;
position: fixed;
right: 0;
... | e0ed317a504a0f3ecc269940ecc9a3aa52f6ff60 | src/styles/colours/_sidebar.scss | src/styles/colours/_sidebar.scss | SCSS |
<|file_sep|>nefertari_mongodb/serializers.py.diff
original:
class JSONEncoder(_JSONEncoder):
def default(self, obj):
if isinstance(obj, (ObjectId, DBRef)):
return str(obj)
if isinstance(obj, decimal.Decimal):
return float(obj)
if isinstance(obj, (datetime.datetime, da... | if isinstance(obj, (ObjectId, DBRef)):
return str(obj)
if isinstance(obj, (datetime.datetime, datetime.date)):
return obj.strftime("%Y-%m-%dT%H:%M:%SZ") # iso
if isinstance(obj, datetime.time):
return obj.strftime('%H:%M:%S')
if isinstance(obj, dateti... | <|file_sep|>nefertari_mongodb/serializers.py.diff
original:
class JSONEncoder(_JSONEncoder):
def default(self, obj):
if isinstance(obj, (ObjectId, DBRef)):
return str(obj)
if isinstance(obj, decimal.Decimal):
return float(obj)
if isinstance(obj, (datetime.datetime, da... | b4ce232f050de073572f64c04b170a2e790fdc24 | nefertari_mongodb/serializers.py | nefertari_mongodb/serializers.py | Python |
<|file_sep|>sql/init.sql.diff
original:
`latitude` decimal(11,8) NOT NULL,
`longitude` decimal(11,8) NOT NULL,
updated:
`latitude` decimal(7,4) NOT NULL,
`longitude` decimal(7,4) NOT NULL,
<|file_sep|>original/sql/init.sql
CREATE DATABASE weather;
USE weather;
CREATE TABLE `results` (
`id` int(10) unsigned N... | CREATE DATABASE weather;
USE weather;
CREATE TABLE `results` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`latitude` decimal(7,4) NOT NULL,
`longitude` decimal(7,4) NOT NULL,
`summary` varchar(50) NOT NULL,
`temperature` decimal(5,2) NOT NULL,
`units` enum('auto','ca','uk2','us','si') NOT NULL,
`icon... | <|file_sep|>sql/init.sql.diff
original:
`latitude` decimal(11,8) NOT NULL,
`longitude` decimal(11,8) NOT NULL,
updated:
`latitude` decimal(7,4) NOT NULL,
`longitude` decimal(7,4) NOT NULL,
<|file_sep|>original/sql/init.sql
CREATE DATABASE weather;
USE weather;
CREATE TABLE `results` (
`id` int(10) unsigned N... | 3ea24b05d6990ffc7e8bf02fcbef420c204fbfc7 | sql/init.sql | sql/init.sql | SQL |
<|file_sep|>pubspec.yaml.diff
original:
updated:
matcher: '>=0.10.0'
<|file_sep|>original/pubspec.yaml
name: quiver
version: 0.20.1-dev
authors:
- Justin Fagnani <justinfagnani@google.com>
- Yegor Jbanov <yjbanov@google.com>
- Chris Bracken <cbracken@google.com>
- Alexandre Ardhuin <alexandre.ardhuin@gmail.com>
- Da... | name: quiver
version: 0.20.1-dev
authors:
- Justin Fagnani <justinfagnani@google.com>
- Yegor Jbanov <yjbanov@google.com>
- Chris Bracken <cbracken@google.com>
- Alexandre Ardhuin <alexandre.ardhuin@gmail.com>
- David Morgan <davidmorgan@google.com>
- John McDole <codefu@google.com>
description: A set of utility librar... | <|file_sep|>pubspec.yaml.diff
original:
updated:
matcher: '>=0.10.0'
<|file_sep|>original/pubspec.yaml
name: quiver
version: 0.20.1-dev
authors:
- Justin Fagnani <justinfagnani@google.com>
- Yegor Jbanov <yjbanov@google.com>
- Chris Bracken <cbracken@google.com>
- Alexandre Ardhuin <alexandre.ardhuin@gmail.com>
- Da... | 9680c138ef3ff833fee47257c6c49b50d12d956f | pubspec.yaml | pubspec.yaml | YAML |
<|file_sep|>original/sources/dk/countrywide.json
{
"conform": {
"type": "csv",
"lon": "wgs84koordinat_længde",
"street": "vejnavn",
"lat": "wgs84koordinat_bredde",
"number": "husnr"
},
"attribution": "Contains information from the Danish Ministry of Housing, Urban and... | {
"conform": {
"type": "csv",
"lon": "wgs84koordinat_længde",
"street": "vejnavn",
"lat": "wgs84koordinat_bredde",
"number": "husnr",
"postcode": "postnr"
},
"attribution": "Contains information from the Danish Ministry of Housing, Urban and Rural Address Web ... | <|file_sep|>original/sources/dk/countrywide.json
{
"conform": {
"type": "csv",
"lon": "wgs84koordinat_længde",
"street": "vejnavn",
"lat": "wgs84koordinat_bredde",
"number": "husnr"
},
"attribution": "Contains information from the Danish Ministry of Housing, Urban and... | 476e4ca9dff1f6f6738ac9fd0a107d820df66cea | sources/dk/countrywide.json | sources/dk/countrywide.json | JSON |
<|file_sep|>azure-pipelines.yml.diff
original:
xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release
updated:
xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release
<|file_sep|>azure-pipelines.yml.diff
original:
msbuild "./bui... | - job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- pwsh: |
sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer
xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release
displayName: Build
- publish: '$(build.sourcesDirectory)/bui... | <|file_sep|>azure-pipelines.yml.diff
original:
xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release
updated:
xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release
<|file_sep|>azure-pipelines.yml.diff
original:
msbuild "./bui... | 604e42e43039500a07c7c31bc90f07285e3a10a4 | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>original/requirements_dev.txt
pip==20.1.1
wheel==0.34.2
watchdog==0.10.3
flake8==3.8.3
Sphinx==3.1.1
tox==3.16.0
coverage==5.1
PyYAML==5.3.1
pytest==5.4.3
<|file_sep|>current/requirements_dev.txt
pip==20.1.1
wheel==0.34.2
watchdog==0.10.3
flake8==3.8.3
Sphinx==3.1.1
tox==3.16.0
coverage==5.1
PyYAML==5.3.1
p... | pip==20.1.1
wheel==0.34.2
watchdog==0.10.3
flake8==3.8.3
Sphinx==3.1.1
tox==3.16.1
coverage==5.1
PyYAML==5.3.1
pytest==5.4.3 | <|file_sep|>original/requirements_dev.txt
pip==20.1.1
wheel==0.34.2
watchdog==0.10.3
flake8==3.8.3
Sphinx==3.1.1
tox==3.16.0
coverage==5.1
PyYAML==5.3.1
pytest==5.4.3
<|file_sep|>current/requirements_dev.txt
pip==20.1.1
wheel==0.34.2
watchdog==0.10.3
flake8==3.8.3
Sphinx==3.1.1
tox==3.16.0
coverage==5.1
PyYAML==5.3.1
p... | 1cbfbc9886c6dcae99c51ab0db2f36efc687cca1 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/.travis.yml
language: java
sudo: false
jdk:
- oraclejdk8
script:
- mvn -B verify -Pes-1x ; mvn -B verify -Pes-2x ; mvn -B verify
<|file_sep|>current/.travis.yml
language: java
sudo: false
jdk:
- oraclejdk8
script:
- mvn -B verify -Pes-1x ; mvn -B verify -Pes-2x ; mvn -B verify
<|file_se... | language: java
sudo: false
jdk:
- oraclejdk8
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B verify -Pes-1x ; mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B verify -Pes-2x ; mvn -Dorg.slf4j.simpleLogger.lo... | <|file_sep|>original/.travis.yml
language: java
sudo: false
jdk:
- oraclejdk8
script:
- mvn -B verify -Pes-1x ; mvn -B verify -Pes-2x ; mvn -B verify
<|file_sep|>current/.travis.yml
language: java
sudo: false
jdk:
- oraclejdk8
script:
- mvn -B verify -Pes-1x ; mvn -B verify -Pes-2x ; mvn -B verify
<|file_se... | 0765a077e75e75b217656c5d1e6404f33b2577e3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
economic-py
===========
# About
These few files were created to help automatically pre fill Economic.
Entries are based on Google calendar events and JIRA tasks currently assigned
to user and matching configurable filter. Duplicates are checked by
looking at task description (Economic) s... | economic-py
===========
[](https://travis-ci.org/pawel-lewtak/economic-py))
# About
These few files were created to help automatically pre fill Economic.
Entries are based on Google calendar events and JIRA tasks currently assigned
to user and matching... | <|file_sep|>original/README.md
economic-py
===========
# About
These few files were created to help automatically pre fill Economic.
Entries are based on Google calendar events and JIRA tasks currently assigned
to user and matching configurable filter. Duplicates are checked by
looking at task description (Economic) s... | 1914ae8abd5679a81faadf8ca4c3b9dee79244eb | README.md | README.md | Markdown |
<|file_sep|>original/src/bootstrap/cloud/terraform/logging.tf
<|file_sep|>current/src/bootstrap/cloud/terraform/logging.tf
<|file_sep|>updated/src/bootstrap/cloud/terraform/logging.tf | # New log bucket with short TTL for access logs
resource "google_logging_project_bucket_config" "remote_access_bucket" {
project = data.google_project.project.project_id
location = "global"
retention_days = 2
bucket_id = "RemoteAccess"
}
# Log all access logs to this dedicated bucket
resource... | <|file_sep|>original/src/bootstrap/cloud/terraform/logging.tf
<|file_sep|>current/src/bootstrap/cloud/terraform/logging.tf
<|file_sep|>updated/src/bootstrap/cloud/terraform/logging.tf
# New log bucket with short TTL for access logs
resource "google_logging_project_bucket_config" "remote_access_bucket" {
project ... | 640b248654b931a06f5789d7cb36d7d375009a62 | src/bootstrap/cloud/terraform/logging.tf | src/bootstrap/cloud/terraform/logging.tf | HCL |
<|file_sep|>original/string/validator/StringValidator.sh
echo true
else
return;
fi
}
beginsWithVowel(){
string=${@}
case ${string} in
a*|e*|i*|o*|u*|A*|E*|I*|O*|U*) echo true;;
*) return
esac
}
isAlpha(){
local str=${@}
isNull ${str//[a-zA-Z ]/}
}
<|file_sep|>current/string/validator... | echo true
else
return;
fi
}
beginsWithVowel(){
string=${@}
vowels=(a e i o u A E I O U)
for vowel in ${vowels[@]}; do
if [[ $(beginsWith ${vowel} ${string}) ]]; then
echo true
break
fi
done
}
isAlpha(){
local str=${@} | <|file_sep|>original/string/validator/StringValidator.sh
echo true
else
return;
fi
}
beginsWithVowel(){
string=${@}
case ${string} in
a*|e*|i*|o*|u*|A*|E*|I*|O*|U*) echo true;;
*) return
esac
}
isAlpha(){
local str=${@}
isNull ${str//[a-zA-Z ]/}
}
<|file_sep|>current/string/validator... | e38a53773e438193667680f6bb82693364543532 | string/validator/StringValidator.sh | string/validator/StringValidator.sh | Shell |
<|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" % "... | 3ea02d0d2c1dc304fb9161718f9992f215754086 | project/Dependencies.scala | project/Dependencies.scala | Scala |
<|file_sep|>original/lib/chunky_png/canvas/data_url_importing.rb
module ChunkyPNG
class Canvas
# Methods to import a canvas from a PNG data URL.
module DataUrlImporting
# Imports a canvas from a PNG data URL.
# @param [String] string The data URL string to load from.
# @return [Canvas] The... | module ChunkyPNG
class Canvas
# Methods to import a canvas from a PNG data URL.
module DataUrlImporting
# Imports a canvas from a PNG data URL.
# @param [String] string The data URL string to load from.
# @return [Canvas] The imported canvas.
# @raise ChunkyPNG::SignatureMismatch if ... | <|file_sep|>original/lib/chunky_png/canvas/data_url_importing.rb
module ChunkyPNG
class Canvas
# Methods to import a canvas from a PNG data URL.
module DataUrlImporting
# Imports a canvas from a PNG data URL.
# @param [String] string The data URL string to load from.
# @return [Canvas] The... | 0c5f4f429828f17f9066da2f3ebba655ac58800b | lib/chunky_png/canvas/data_url_importing.rb | lib/chunky_png/canvas/data_url_importing.rb | Ruby |
<|file_sep|>original/tests_tf/test_utils.py
<|file_sep|>current/tests_tf/test_utils.py
<|file_sep|>updated/tests_tf/test_utils.py | from __future__ import absolute_import, division, print_function
import unittest
import numpy as np
from cleverhans.utils_tf import kl_with_logits, l2_batch_normalize
def numpy_kl_with_logits(q_logits, p_logits):
def numpy_softmax(logits):
exp_logits = np.exp(logits)
return exp_logits / np.sum(... | <|file_sep|>original/tests_tf/test_utils.py
<|file_sep|>current/tests_tf/test_utils.py
<|file_sep|>updated/tests_tf/test_utils.py
from __future__ import absolute_import, division, print_function
import unittest
import numpy as np
from cleverhans.utils_tf import kl_with_logits, l2_batch_normalize
def numpy_kl_wit... | 15d782aaddf1e8a4215df2fa3ef60b8801fe382a | tests_tf/test_utils.py | tests_tf/test_utils.py | Python |
<|file_sep|>t/Tags2::Output::Indent2/04_constructor.t.diff
original:
is($EVAL_ERROR, "Bad parameter ''.\n");
updated:
is($EVAL_ERROR, "Unknown parameter ''.\n");
<|file_sep|>original/t/Tags2::Output::Indent2/04_constructor.t
my $obj;
eval {
$obj = Tags2::Output::Indent2->new('');
};
is($EVAL_ERROR, "Bad parameter ''.\... | my $obj;
eval {
$obj = Tags2::Output::Indent2->new('');
};
is($EVAL_ERROR, "Unknown parameter ''.\n");
print "Testing: new('something' => 'value') bad constructor.\n";
eval {
$obj = Tags2::Output::Indent2->new('something' => 'value');
};
is($EVAL_ERROR, "Unknown parameter 'something'.\n");
print "Testing: new('attr... | <|file_sep|>t/Tags2::Output::Indent2/04_constructor.t.diff
original:
is($EVAL_ERROR, "Bad parameter ''.\n");
updated:
is($EVAL_ERROR, "Unknown parameter ''.\n");
<|file_sep|>original/t/Tags2::Output::Indent2/04_constructor.t
my $obj;
eval {
$obj = Tags2::Output::Indent2->new('');
};
is($EVAL_ERROR, "Bad parameter ''.\... | ec2080e591e3552da80939c3ca937ce2eac4f30c | t/Tags2::Output::Indent2/04_constructor.t | t/Tags2::Output::Indent2/04_constructor.t | Perl |
<|file_sep|>original/app/views/headings/show.html.erb
<article class="tariff">
<div class="inner">
<dl>
<dt><%= @heading.section.numeral %></dt>
<dd><%= @heading.section.title %>
<dl class="tariff-fragments">
<dt><%= @heading.chapter.short_code %></dt>
<dd><%= @heading.chap... | <% content_for :title, "#{@heading.description} | Trade Tariff | GOV.UK" %>
<article class="tariff">
<div class="inner">
<dl>
<dt><%= @heading.section.numeral %></dt>
<dd><%= @heading.section.title %>
<dl class="tariff-fragments">
<dt><%= @heading.chapter.short_code %></dt>
... | <|file_sep|>original/app/views/headings/show.html.erb
<article class="tariff">
<div class="inner">
<dl>
<dt><%= @heading.section.numeral %></dt>
<dd><%= @heading.section.title %>
<dl class="tariff-fragments">
<dt><%= @heading.chapter.short_code %></dt>
<dd><%= @heading.chap... | 2af45ac0afe7bbaf6689caa404bd93247bdd4837 | app/views/headings/show.html.erb | app/views/headings/show.html.erb | HTML+ERB |
<|file_sep|>original/cvmfs/webapi/test-api.py
<|file_sep|>current/cvmfs/webapi/test-api.py
<|file_sep|>updated/cvmfs/webapi/test-api.py | #! /usr/bin/env python
# This tester listens on port 8051 for a single http request, with
# a URL that starts with /api/v....
# It exits after one request.
# It assumes that GeoIP is already installed on the current machine
# with an installation of cvmfs-server, but reads the rest from
# the current directory.
fr... | <|file_sep|>original/cvmfs/webapi/test-api.py
<|file_sep|>current/cvmfs/webapi/test-api.py
<|file_sep|>updated/cvmfs/webapi/test-api.py
#! /usr/bin/env python
# This tester listens on port 8051 for a single http request, with
# a URL that starts with /api/v....
# It exits after one request.
# It assumes that GeoIP ... | f226c81bbc7052dcac0993bacdaa4a93761b4dce | cvmfs/webapi/test-api.py | cvmfs/webapi/test-api.py | Python |
<|file_sep|>original/README.md
===========
SCIM is a specification designed to reduce the complexity of user management operations by providing a common user schema
and the patterns for exchanging this schema using HTTP in a platform-neutral fashion. The aim of SCIM is achieving
interoperability, security, and scalabi... | ===========
SCIM is a specification designed to reduce the complexity of user management operations by providing a common user schema
and the patterns for exchanging this schema using HTTP in a platform-neutral fashion. The aim of SCIM is achieving
interoperability, security, and scalability in the context of identity... | <|file_sep|>original/README.md
===========
SCIM is a specification designed to reduce the complexity of user management operations by providing a common user schema
and the patterns for exchanging this schema using HTTP in a platform-neutral fashion. The aim of SCIM is achieving
interoperability, security, and scalabi... | fddb198c9e83f37624b1bb0f7028b3a2b99c53ba | README.md | README.md | Markdown |
<|file_sep|>original/tox.ini
py{27,35}-codestyle,
py{27,35}-django{18,19,110}
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
install_command = pip install --no-deps {opts} {packages}
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: https://github.com/django/django/archive/... | py{27,35}-codestyle,
py{27,35}-django{18,19,110}
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
install_command = pip install --no-deps {opts} {packages}
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
-rrequirements/requirements-testing.txt
command... | <|file_sep|>original/tox.ini
py{27,35}-codestyle,
py{27,35}-django{18,19,110}
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
install_command = pip install --no-deps {opts} {packages}
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: https://github.com/django/django/archive/... | 99208b105a0ea8fc741e5a9bea60218e59517679 | tox.ini | tox.ini | INI |
<|file_sep|>setup/requirements.txt.diff
original:
cffi==1.12.3
coreapi==2.3.1
cryptography==2.4.2
Django==2.2.10
django-bootstrap3==11.0.0
updated:
coreapi==2.3.3
Django==3.0.5
django-bootstrap3==12.0.3
<|file_sep|>setup/requirements.txt.diff
original:
django-filter==2.0.0
djangorestframework==3.9.1
docutils==0.11
futu... | coreapi==2.3.3
Django==3.0.5
django-bootstrap3==12.0.3
django-debug-toolbar==1.5
django-filter==2.2.0
djangorestframework==3.11.0
idna==2.7
netaddr==0.7.19
python-dateutil==2.8.1
pytz==2019.3
requests==2.23.0
six==1.14.0
ulid2==0.2.0
urllib3==1.25.9
Yapsy==1.12.2 | <|file_sep|>setup/requirements.txt.diff
original:
cffi==1.12.3
coreapi==2.3.1
cryptography==2.4.2
Django==2.2.10
django-bootstrap3==11.0.0
updated:
coreapi==2.3.3
Django==3.0.5
django-bootstrap3==12.0.3
<|file_sep|>setup/requirements.txt.diff
original:
django-filter==2.0.0
djangorestframework==3.9.1
docutils==0.11
futu... | 2a4d073109158c035d8fff5161fdf880283e086a | setup/requirements.txt | setup/requirements.txt | Text |
<|file_sep|>original/pkgs/development/libraries/libyaml/default.nix
{ stdenv, fetchurl, fetchpatch }:
let
version = "0.1.7";
in
stdenv.mkDerivation {
name = "libyaml-${version}";
src = fetchurl {
url = "http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
sha256 = "0a87931cx5m14a1x8rbjix3nz7agrcgn... | { stdenv, fetchurl, fetchpatch }:
let
version = "0.1.7";
in
stdenv.mkDerivation {
name = "libyaml-${version}";
src = fetchurl {
url = "http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
sha256 = "0a87931cx5m14a1x8rbjix3nz7agrcgndf4h392vm62a4rby9240";
};
meta = with stdenv.lib; {
homepag... | <|file_sep|>original/pkgs/development/libraries/libyaml/default.nix
{ stdenv, fetchurl, fetchpatch }:
let
version = "0.1.7";
in
stdenv.mkDerivation {
name = "libyaml-${version}";
src = fetchurl {
url = "http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz";
sha256 = "0a87931cx5m14a1x8rbjix3nz7agrcgn... | 8ea265279e65fb83149691e5cdeec70f1e81c706 | pkgs/development/libraries/libyaml/default.nix | pkgs/development/libraries/libyaml/default.nix | Nix |
<|file_sep|>original/packages/di/dijkstra-simple.yaml
<|file_sep|>current/packages/di/dijkstra-simple.yaml
<|file_sep|>updated/packages/di/dijkstra-simple.yaml | homepage: https://github.com/blackheaven/dijkstra-simple#readme
changelog-type: markdown
hash: c8ef4401c26369aaea1531eafb59a253cfe9b88f5608c4874e7a9e4d64d0133a
test-bench-deps:
fingertree: '>=0.1.4.0 && <0.1.5'
base: '>=4.7 && <5'
hspec: '>=2.7.1 && <2.8'
containers: '>=0.6.2.1 && <0.7'
dijkstra-simple: -any
... | <|file_sep|>original/packages/di/dijkstra-simple.yaml
<|file_sep|>current/packages/di/dijkstra-simple.yaml
<|file_sep|>updated/packages/di/dijkstra-simple.yaml
homepage: https://github.com/blackheaven/dijkstra-simple#readme
changelog-type: markdown
hash: c8ef4401c26369aaea1531eafb59a253cfe9b88f5608c4874e7a9e4d64d0133... | 85339c1bcfa10fd8cac220fc1ecb86962d36d212 | packages/di/dijkstra-simple.yaml | packages/di/dijkstra-simple.yaml | YAML |
<|file_sep|>original/week-1/my-website-1-reflection.md
<|file_sep|>current/week-1/my-website-1-reflection.md
<|file_sep|>updated/week-1/my-website-1-reflection.md | ## 4. Open Source and Repo Setup Reflection
- Explain how to create a repository on GitHub and clone the repository to your local computer to a non-technical person.
- Describe what open source means.
- What do you think about Open Source? Does it make you nervous or protective? Does it feel like utopia?
- Assess the ... | <|file_sep|>original/week-1/my-website-1-reflection.md
<|file_sep|>current/week-1/my-website-1-reflection.md
<|file_sep|>updated/week-1/my-website-1-reflection.md
## 4. Open Source and Repo Setup Reflection
- Explain how to create a repository on GitHub and clone the repository to your local computer to a non-techni... | b3eb54587e5933622a45100503773bde016a931d | week-1/my-website-1-reflection.md | week-1/my-website-1-reflection.md | Markdown |
<|file_sep|>original/app/client/templates/modals/edit_role/edit_role.js
import PNotify from 'pnotify';
PNotify.prototype.options.styling = "bootstrap3";
PNotify.prototype.options.styling = "fontawesome";
Template.EditRole.events({
'click #confirm': function(event) {
event.preventDefault();
var newR... | import PNotify from 'pnotify';
PNotify.prototype.options.styling = "bootstrap3";
PNotify.prototype.options.styling = "fontawesome";
Template.EditRole.events({
'click #confirm': function(event) {
event.preventDefault();
var newRole = $('#roleEdit input:radio:checked').val();
if (newRole !==... | <|file_sep|>original/app/client/templates/modals/edit_role/edit_role.js
import PNotify from 'pnotify';
PNotify.prototype.options.styling = "bootstrap3";
PNotify.prototype.options.styling = "fontawesome";
Template.EditRole.events({
'click #confirm': function(event) {
event.preventDefault();
var newR... | d779027f1973ef3608291a210ad8b90d1bef609d | app/client/templates/modals/edit_role/edit_role.js | app/client/templates/modals/edit_role/edit_role.js | JavaScript |
<|file_sep|>original/requirements/production.txt
# PRECAUTION: avoid production dependencies that aren't in development
-r ./base.txt
# Django
# ------------------------------------------------------------------------------
django-storages[google]==1.7.2 # https://github.com/jschneier/django-storages
google-auth==1.... | # PRECAUTION: avoid production dependencies that aren't in development
-r ./base.txt
# Django
# ------------------------------------------------------------------------------
django-storages[google]==1.9 # https://github.com/jschneier/django-storages
google-auth==1.6.3 # https://github.com/googleapis/google-auth-li... | <|file_sep|>original/requirements/production.txt
# PRECAUTION: avoid production dependencies that aren't in development
-r ./base.txt
# Django
# ------------------------------------------------------------------------------
django-storages[google]==1.7.2 # https://github.com/jschneier/django-storages
google-auth==1.... | d6e56795403c01154cb860c97cc08f1437d5de6c | requirements/production.txt | requirements/production.txt | Text |
<|file_sep|>mobile/src/main/java/uk/co/czcz/speedreader/MainActivity.java.diff
original:
// Initial run of this activity, so lets display a fragment
getSupportFragmentManager().beginTransaction().add(new SpeedReadingFragment(), SpeedReadingFragment.TAG).commit();
updated:
displayInit... |
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (getSupportFr... | <|file_sep|>mobile/src/main/java/uk/co/czcz/speedreader/MainActivity.java.diff
original:
// Initial run of this activity, so lets display a fragment
getSupportFragmentManager().beginTransaction().add(new SpeedReadingFragment(), SpeedReadingFragment.TAG).commit();
updated:
displayInit... | 5d17fe6dc3714cffe951b90be20ca011c32ee220 | mobile/src/main/java/uk/co/czcz/speedreader/MainActivity.java | mobile/src/main/java/uk/co/czcz/speedreader/MainActivity.java | Java |
<|file_sep|>original/.travis.yml
script: ./scripts/build
install:
- sudo apt-get update -qq
- sudo cp -r assets/fonts/* /usr/local/share/fonts/
- sudo fc-cache -f -v
- sudo apt-get install texlive-full
deploy:
provider: s3
access_key_id: AKIAI6DXQYKG4LOZCCSA
secret_access_key:
secure: hkOs8/obtDqaOGJISU+Ra97B... | script: ./scripts/build
install:
- sudo apt-get update -qq
- sudo cp -r assets/fonts/* /usr/local/share/fonts/
- sudo fc-cache -f -v
- sudo apt-get install texlive-full
deploy:
provider: s3
access_key_id: AKIAI6DXQYKG4LOZCCSA
secret_access_key:
secure: hkOs8/obtDqaOGJISU+Ra97BdYB/KbC+nrjvlcXz6xIULx3+zTyWBqCEt... | <|file_sep|>original/.travis.yml
script: ./scripts/build
install:
- sudo apt-get update -qq
- sudo cp -r assets/fonts/* /usr/local/share/fonts/
- sudo fc-cache -f -v
- sudo apt-get install texlive-full
deploy:
provider: s3
access_key_id: AKIAI6DXQYKG4LOZCCSA
secret_access_key:
secure: hkOs8/obtDqaOGJISU+Ra97B... | f555405798c28485056a0aa7b1f09fff27a3f0ef | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/index.js.diff
original:
updated:
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
<|file_sep|>original/src/index.js
import Root from './components/Root'
import rootReducer from './reducers'
import {init} from './actions'
import {impor... | import Root from './components/Root'
import rootReducer from './reducers'
import {init} from './actions'
import {importData, exportData} from './utilities/data'
import './index.css'
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
const PropertyGrid ... | <|file_sep|>src/index.js.diff
original:
updated:
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
<|file_sep|>original/src/index.js
import Root from './components/Root'
import rootReducer from './reducers'
import {init} from './actions'
import {impor... | 044088958e841b05c2ce0dfa33dc74da4fe8ee06 | src/index.js | src/index.js | JavaScript |
<|file_sep|>original/app/config/config_test_cached.yml
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
imports:
- { resource: config_test.yml }
doctrine:
orm:
entity_managers:
default:
metadata_cache_driver:
type: memcached
... | imports:
- { resource: config_test.yml }
doctrine:
orm:
entity_managers:
default:
metadata_cache_driver:
type: memcached
host: localhost
port: 11211
doctrine_phpcr:
odm:
metadata_cache_driver:
... | <|file_sep|>original/app/config/config_test_cached.yml
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
imports:
- { resource: config_test.yml }
doctrine:
orm:
entity_managers:
default:
metadata_cache_driver:
type: memcached
... | e4d027836d133af0a907dd059a4c7d3672b3071a | app/config/config_test_cached.yml | app/config/config_test_cached.yml | YAML |
<|file_sep|>original/lib/tasks/populate_image.rake
<|file_sep|>current/lib/tasks/populate_image.rake
<|file_sep|>updated/lib/tasks/populate_image.rake | $image_types = ['ccam_images', 'fcam_images', 'rcam_images', 'ncam_images', 'mastcam_left_images', 'mastcam_right_images', 'mahli_images', 'mardi_images']
def get_images_for_sol(sol_url)
image_urls = []
ret = RestClient.get sol_url
json_data = JSON.parse(ret)
$image_types.each do |type|
next unless json_d... | <|file_sep|>original/lib/tasks/populate_image.rake
<|file_sep|>current/lib/tasks/populate_image.rake
<|file_sep|>updated/lib/tasks/populate_image.rake
$image_types = ['ccam_images', 'fcam_images', 'rcam_images', 'ncam_images', 'mastcam_left_images', 'mastcam_right_images', 'mahli_images', 'mardi_images']
def get_im... | 92ddcbe40b8d464a97ae6e67e1af1e712d78ab81 | lib/tasks/populate_image.rake | lib/tasks/populate_image.rake | Ruby |
<|file_sep|>original/.travis.yml
language: objective-c
osx_image: xcode7.3
env:
- LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
before_install: gem install xcpretty -N
script: "./Tests/travis.sh"
notifications:
slack:
secure: Bgfiib7NP2/98fjJvW+PraQQFnj5X23+Zmvy9XqIe9NetzyNqWVN6URRFdcjvSnpah1kg2gGhIdkT5gvBT8HcP8OS6x/2lMF... | language: objective-c
osx_image: xcode8
env:
- LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
before_install: gem install xcpretty -N
script: "./Tests/travis.sh"
notifications:
slack:
secure: Bgfiib7NP2/98fjJvW+PraQQFnj5X23+Zmvy9XqIe9NetzyNqWVN6URRFdcjvSnpah1kg2gGhIdkT5gvBT8HcP8OS6x/2lMFQsOhuA0mMoJ3tK3vhve10s3Mt8JvWqnEI3O... | <|file_sep|>original/.travis.yml
language: objective-c
osx_image: xcode7.3
env:
- LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
before_install: gem install xcpretty -N
script: "./Tests/travis.sh"
notifications:
slack:
secure: Bgfiib7NP2/98fjJvW+PraQQFnj5X23+Zmvy9XqIe9NetzyNqWVN6URRFdcjvSnpah1kg2gGhIdkT5gvBT8HcP8OS6x/2lMF... | 06e07369b98a8930146d380801f641d2151ded4d | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/ne/netlib-carray.yaml.diff
original:
hash: 32824a538de040b17205e66ae76750ffdef62f72773048b6b1f9132238412627
updated:
hash: 720a7c074171c28f3563f228c2766b965e0fc79aecd6987823ddcaedbd070e36
<|file_sep|>packages/ne/netlib-carray.yaml.diff
original:
updated:
array: ! '>=0.4 && <0.6'
<|file_sep|>pack... | carray: ! '>=0.1.5 && <0.2'
base: ! '>=4.5 && <5'
array: ! '>=0.4 && <0.6'
transformers: ! '>=0.4 && <0.6'
all-versions:
- '0.0'
- 0.0.1
- 0.0.1.1
- '0.1'
author: Henning Thielemann <haskell@henning-thielemann.de>
latest: '0.1'
description-type: haddock
description: |-
Netlib is a collection of packages for e... | <|file_sep|>packages/ne/netlib-carray.yaml.diff
original:
hash: 32824a538de040b17205e66ae76750ffdef62f72773048b6b1f9132238412627
updated:
hash: 720a7c074171c28f3563f228c2766b965e0fc79aecd6987823ddcaedbd070e36
<|file_sep|>packages/ne/netlib-carray.yaml.diff
original:
updated:
array: ! '>=0.4 && <0.6'
<|file_sep|>pack... | 1ff57d08daedf404bb8b413354ffffa6b470633e | packages/ne/netlib-carray.yaml | packages/ne/netlib-carray.yaml | YAML |
<|file_sep|>src/app.php.diff
original:
updated:
use Symfony\Component\HttpFoundation\JsonResponse;
<|file_sep|>original/src/app.php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = require_once('bootstrap.php');
$app->mount('/', new \DrupalReleaseDate\Controllers\Pa... | $app = require_once('bootstrap.php');
$app->mount('/', new \DrupalReleaseDate\Controllers\PagesControllerProvider());
$app->mount('/chart', new \DrupalReleaseDate\Controllers\ChartsControllerProvider());
$app->mount('/data', new \DrupalReleaseDate\Controllers\DataControllerProvider());
$app->mount('/cron', new \Drupal... | <|file_sep|>src/app.php.diff
original:
updated:
use Symfony\Component\HttpFoundation\JsonResponse;
<|file_sep|>original/src/app.php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = require_once('bootstrap.php');
$app->mount('/', new \DrupalReleaseDate\Controllers\Pa... | 9c74a60e066290a43af2949550409cb41f6fdbcf | src/app.php | src/app.php | PHP |
<|file_sep|>app/assets/stylesheets/modules/screenshot.css.scss.diff
original:
&:nth-child(1),
&:nth-child(3) {
updated:
&:nth-child(1) {
<|file_sep|>original/app/assets/stylesheets/modules/screenshot.css.scss
font-size: 24px;
margin-top: 10px;
margin-left: 60px;
margin-right: 60px;
text-align:... | text-align: center;
}
&:nth-child(1) {
width: 466px;
}
&:nth-child(2) {
width: 555px;
}
&:nth-child(3) {
width: 465px;
}
}
.screenshot-list {
overflow-x: visible;
overflow-y: hidden;
width: 1615px;
} | <|file_sep|>app/assets/stylesheets/modules/screenshot.css.scss.diff
original:
&:nth-child(1),
&:nth-child(3) {
updated:
&:nth-child(1) {
<|file_sep|>original/app/assets/stylesheets/modules/screenshot.css.scss
font-size: 24px;
margin-top: 10px;
margin-left: 60px;
margin-right: 60px;
text-align:... | 008b564c0e0463d38fca93bac48f57486ecb1d17 | app/assets/stylesheets/modules/screenshot.css.scss | app/assets/stylesheets/modules/screenshot.css.scss | SCSS |
<|file_sep|>original/tests/dummy/config/environment.js
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental featur... | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
locationType: 'auto',
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' ",
'font-src': "'self' ",
'connect-src'... | <|file_sep|>original/tests/dummy/config/environment.js
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental featur... | 9273b2c8332f7c7c16add91bb064a74938dc27f7 | tests/dummy/config/environment.js | tests/dummy/config/environment.js | JavaScript |
<|file_sep|>original/docs/_templates/layout.html
<|file_sep|>current/docs/_templates/layout.html
<|file_sep|>updated/docs/_templates/layout.html | {% extends "!layout.html" %}
{% block footer %}
{{ super() }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(w... | <|file_sep|>original/docs/_templates/layout.html
<|file_sep|>current/docs/_templates/layout.html
<|file_sep|>updated/docs/_templates/layout.html
{% extends "!layout.html" %}
{% block footer %}
{{ super() }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).... | afd5fb40f6fe67dc893877387a6a1f738be11fab | docs/_templates/layout.html | docs/_templates/layout.html | HTML |
<|file_sep|>http/online_checker.py.diff
original:
updated:
"""
This module handles every related to online checking.
We need to request several information from various providers.
We could just try to request them, but instead
you can ping them first and check if they are even reachable.
This does not mean, that do n... | Check if the Rainmeter documentation page is online.
The Rainmeter online documentation is required to synchronize the local model
with the latest online version. These information are stored and parsed
to display them as a tooltip on special constructs.
"""
return __is_online("docs.rainmeter.n... | <|file_sep|>http/online_checker.py.diff
original:
updated:
"""
This module handles every related to online checking.
We need to request several information from various providers.
We could just try to request them, but instead
you can ping them first and check if they are even reachable.
This does not mean, that do n... | 14e98bc2038f50f38244550a1fa7ec3f836ed5f3 | http/online_checker.py | http/online_checker.py | Python |
<|file_sep|>original/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs
<|file_sep|>current/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs
<|file_sep|>updated/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Overlays;
using osuTK.Graphics;
namespace osu.Game.Tests.Visual.... | <|file_sep|>original/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs
<|file_sep|>current/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs
<|file_sep|>updated/osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// S... | a765f2502daa9760786e9c20baf688ddcb8a4a27 | osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs | osu.Game.Tests/Visual/Online/TestCaseFullscreenOverlay.cs | C# |
<|file_sep|>original/composer.json
"type": "vcs",
"url": "git@github.com:Yproximite/Symfony2-coding-standard"
}
],
"require": {
"php": "^7.0",
"php-http/message-factory": "^1.0.2",
"php-http/httplug": "^1.0",
"php-http/discovery": "^1.0",
"symfony/property-access": "^2.8 || ^3.0 ... | "type": "vcs",
"url": "git@github.com:Yproximite/Symfony2-coding-standard"
}
],
"require": {
"php": "^7.0",
"php-http/message-factory": "^1.0.2",
"php-http/httplug": "^1.0",
"php-http/discovery": "^1.0",
"symfony/property-access": "^2.8 || ^3.0 || ^4.0",
"php-http/multipart-s... | <|file_sep|>original/composer.json
"type": "vcs",
"url": "git@github.com:Yproximite/Symfony2-coding-standard"
}
],
"require": {
"php": "^7.0",
"php-http/message-factory": "^1.0.2",
"php-http/httplug": "^1.0",
"php-http/discovery": "^1.0",
"symfony/property-access": "^2.8 || ^3.0 ... | 3984daf40db6347a8e305ad3a0cfffb2c25caea2 | composer.json | composer.json | JSON |
<|file_sep|>original/lib/whatsapp/protocol/nodes/sync_node.rb
@sid = sid || generate_sid
super('sync', {
mode: @mode,
context: @context,
sid: @sid,
index: @index.to_s,
last: !!@last
}, UserNode.wrap(@numbers))
end... |
super('sync', {
mode: @mode,
context: @context,
sid: @sid,
index: @index.to_s,
last: !!@last
}, UserNode.wrap(@numbers))
end
private
def generate_sid
#((Time.new.to_f + 11644477200) * 10000000).to_i.to_s... | <|file_sep|>original/lib/whatsapp/protocol/nodes/sync_node.rb
@sid = sid || generate_sid
super('sync', {
mode: @mode,
context: @context,
sid: @sid,
index: @index.to_s,
last: !!@last
}, UserNode.wrap(@numbers))
end... | 7a4d814c31f4675ca905a011c389d70875bdb5f9 | lib/whatsapp/protocol/nodes/sync_node.rb | lib/whatsapp/protocol/nodes/sync_node.rb | Ruby |
<|file_sep|>tests/routine/test_config.py.diff
original:
self.assertEqual([], config.requests)
updated:
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
<|file_sep|>original/tests/routine/test_config.py
cl... | class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_c... | <|file_sep|>tests/routine/test_config.py.diff
original:
self.assertEqual([], config.requests)
updated:
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
<|file_sep|>original/tests/routine/test_config.py
cl... | 852ce5cee8171fdf4a33f3267de34042cb066bf3 | tests/routine/test_config.py | tests/routine/test_config.py | Python |
<|file_sep|>original/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICategory.jsx
<|file_sep|>current/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICat... | /*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | <|file_sep|>original/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICategory.jsx
<|file_sep|>current/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICat... | d52a99e35ababfbe929388a636de63a81166d4ef | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICategory.jsx | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin_new/source/src/app/components/APICategories/DeleteAPICategory.jsx | JSX |
<|file_sep|>farms/tests/test_models.py.diff
original:
from farms.factories import AddressFactory
updated:
from ..factories import AddressFactory
from ..models import Address
<|file_sep|>farms/tests/test_models.py.diff
original:
from mock import MagicMock
updated:
import pytest
<|file_sep|>farms/tests/test_models.py.dif... | def test_address_factory_generates_valid_address():
# GIVEN any state
# WHEN building a new address
address = AddressFactory.build()
# THEN it has all the information we want
assert address.street is not ''
assert address.postal_code is not ''
assert len(address.postal_code) == 5
assert... | <|file_sep|>farms/tests/test_models.py.diff
original:
from farms.factories import AddressFactory
updated:
from ..factories import AddressFactory
from ..models import Address
<|file_sep|>farms/tests/test_models.py.diff
original:
from mock import MagicMock
updated:
import pytest
<|file_sep|>farms/tests/test_models.py.dif... | e380d669bc09e047282be1d91cc95a7651300141 | farms/tests/test_models.py | farms/tests/test_models.py | Python |
<|file_sep|>package.json.diff
original:
updated:
"nodemon": "^1.9.2",
<|file_sep|>original/package.json
"facebook-chat-api": "schmavery/facebook-chat-api",
"figlet": "^1.1.2",
"forecast": "^0.2.1",
"giphy-api": "^1.1.17",
"node-geocoder": "^3.13.0",
"superagent": "^2.1.0"
},
"devDepende... | "facebook-chat-api": "schmavery/facebook-chat-api",
"figlet": "^1.1.2",
"forecast": "^0.2.1",
"giphy-api": "^1.1.17",
"node-geocoder": "^3.13.0",
"nodemon": "^1.9.2",
"superagent": "^2.1.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"... | <|file_sep|>package.json.diff
original:
updated:
"nodemon": "^1.9.2",
<|file_sep|>original/package.json
"facebook-chat-api": "schmavery/facebook-chat-api",
"figlet": "^1.1.2",
"forecast": "^0.2.1",
"giphy-api": "^1.1.17",
"node-geocoder": "^3.13.0",
"superagent": "^2.1.0"
},
"devDepende... | 4a3ad801788fe4ba91781eee857ddde4cedb54ff | package.json | package.json | JSON |
<|file_sep|>original/app/controllers/buckets_controller.rb
@bucket = Bucket.new
end
# GET /buckets/1/edit
def edit
end
# POST /buckets
def create
@bucket = Bucket.new(bucket_params)
if @bucket.save
redirect_to @bucket, notice: 'Bucket was successfully created.'
else
render :ne... | @bucket = Bucket.new
end
# GET /buckets/1/edit
def edit
end
# POST /buckets
def create
@bucket = Bucket.new(bucket_params)
@bucket.team_id = current_user.team_id
if @bucket.save
redirect_to @bucket, notice: 'Bucket was successfully created.'
else
render :new
end
end
... | <|file_sep|>original/app/controllers/buckets_controller.rb
@bucket = Bucket.new
end
# GET /buckets/1/edit
def edit
end
# POST /buckets
def create
@bucket = Bucket.new(bucket_params)
if @bucket.save
redirect_to @bucket, notice: 'Bucket was successfully created.'
else
render :ne... | 3eb84ea4f4a2c44e6f48a80d867ee52c30063892 | app/controllers/buckets_controller.rb | app/controllers/buckets_controller.rb | Ruby |
<|file_sep|>original/requirements.txt
# Main dependencies
mozci==0.48.0
pulse_replay==0.2.2
treeherder_submitter==0.4.1
taskcluster_s3_uploader==0.3.1
# Required by mozci
buildapi-client==0.4.0
ijson==2.2
keyring==6.0
progressbar==2.3
pushlog-client==0.5.0
PyYAML==3.11
redo==1.5
requests==2.10.0
taskcluster==0.3.4
tre... | # Main dependencies
mozci==0.48.0
pulse_replay==0.2.2
treeherder_submitter==0.4.1
taskcluster_s3_uploader==0.3.1
# Required by mozci
buildapi-client==0.5.0
ijson==2.2
keyring==6.0
progressbar==2.3
pushlog-client==0.5.0
PyYAML==3.11
redo==1.5
requests==2.10.0
taskcluster==0.3.4
treeherder-client==3.1.0
# Required by p... | <|file_sep|>original/requirements.txt
# Main dependencies
mozci==0.48.0
pulse_replay==0.2.2
treeherder_submitter==0.4.1
taskcluster_s3_uploader==0.3.1
# Required by mozci
buildapi-client==0.4.0
ijson==2.2
keyring==6.0
progressbar==2.3
pushlog-client==0.5.0
PyYAML==3.11
redo==1.5
requests==2.10.0
taskcluster==0.3.4
tre... | c0313098b48d1c273d6a0f7fa0d51cf11e075c56 | requirements.txt | requirements.txt | Text |
<|file_sep|>ubuntu-single.sh.diff
original:
updated:
cd
<|file_sep|>ubuntu-single.sh.diff
original:
updated:
<|file_sep|>ubuntu-single.sh.diff
original:
git clone https://github.com/andrewtchin/ansible-common.git
updated:
ANSIBLE_COMMON_DIR="~/ansible-common"
if [ -d "$ANSIBLE_COMMON_DIR" ]; then
rm -rf $ANSIBLE_... | curl -L https://raw.githubusercontent.com/andrewtchin/ansible-common/master/ubuntu-bootstrap.sh | sh
echo "Clone ansible-common"
ANSIBLE_COMMON_DIR="~/ansible-common"
if [ -d "$ANSIBLE_COMMON_DIR" ]; then
rm -rf $ANSIBLE_COMMON_DIR
fi
git clone https://github.com/andrewtchin/ansible-common.git $ANSIBLE_COMMON_DIR
e... | <|file_sep|>ubuntu-single.sh.diff
original:
updated:
cd
<|file_sep|>ubuntu-single.sh.diff
original:
updated:
<|file_sep|>ubuntu-single.sh.diff
original:
git clone https://github.com/andrewtchin/ansible-common.git
updated:
ANSIBLE_COMMON_DIR="~/ansible-common"
if [ -d "$ANSIBLE_COMMON_DIR" ]; then
rm -rf $ANSIBLE_... | e09572c9393228ad17c7d5c1453bc72748054b37 | ubuntu-single.sh | ubuntu-single.sh | Shell |
<|file_sep|>original/venv/pip-selfcheck.json
{"last_check":"2016-08-09T17:56:32Z","pypi_version":"8.1.2"}
<|file_sep|>current/venv/pip-selfcheck.json
{"last_check":"2016-08-09T17:56:32Z","pypi_version":"8.1.2"}
<|file_sep|>updated/venv/pip-selfcheck.json | {"last_check":"2016-09-21T23:04:32Z","pypi_version":"8.1.2"} | <|file_sep|>original/venv/pip-selfcheck.json
{"last_check":"2016-08-09T17:56:32Z","pypi_version":"8.1.2"}
<|file_sep|>current/venv/pip-selfcheck.json
{"last_check":"2016-08-09T17:56:32Z","pypi_version":"8.1.2"}
<|file_sep|>updated/venv/pip-selfcheck.json
{"last_check":"2016-09-21T23:04:32Z","pypi_version":"8.1.2"} | 5efa2ac8d2d7c3ab991d007de62121ea5183712e | venv/pip-selfcheck.json | venv/pip-selfcheck.json | JSON |
<|file_sep|>original/examples/Basic/README.md
<|file_sep|>current/examples/Basic/README.md
<|file_sep|>updated/examples/Basic/README.md | ## FAQ
##### Why is react-native-multi-slider not listed as a dependency in package.json in the example?
react-native uses metro for dependency resolution. In order to not recursively install this example into the node_modules of this example we use metro.config.js to resolve react-native-multi-slider.
This also all... | <|file_sep|>original/examples/Basic/README.md
<|file_sep|>current/examples/Basic/README.md
<|file_sep|>updated/examples/Basic/README.md
## FAQ
##### Why is react-native-multi-slider not listed as a dependency in package.json in the example?
react-native uses metro for dependency resolution. In order to not recursive... | e5d28ef7b359ccaa5dd3d1b03d3bbf4f260f3652 | examples/Basic/README.md | examples/Basic/README.md | Markdown |
<|file_sep|>original/client/helpers.coffee
isActive = (type, inverse = false) ->
name = 'is'
name = name + 'Not' if inverse
name = name + _.capitalize type
(view) ->
unless view instanceof Spacebars.kw
throw new Error "#{name} options must be key value pair such " +
"as {{#{name} regex='route... | isActive = (type, inverse = false) ->
name = 'is'
name = name + 'Not' if inverse
name = name + 'Active' + _.capitalize type
(view) ->
unless view instanceof Spacebars.kw
throw new Error "#{name} options must be key value pair such " +
"as {{#{name} regex='route/path'}}. You passed: " +
... | <|file_sep|>original/client/helpers.coffee
isActive = (type, inverse = false) ->
name = 'is'
name = name + 'Not' if inverse
name = name + _.capitalize type
(view) ->
unless view instanceof Spacebars.kw
throw new Error "#{name} options must be key value pair such " +
"as {{#{name} regex='route... | e42f3e65c198f8e239fd1d64fe8628f851eb8fa5 | client/helpers.coffee | client/helpers.coffee | CoffeeScript |
<|file_sep|>original/dotfiles/utils.py
"""
import os.path
from dotfiles.compat import islink, realpath
def compare_path(path1, path2):
return (realpath_expanduser(path1) == realpath_expanduser(path2))
def realpath_expanduser(path):
return realpath(os.path.expanduser(path))
def is_link_to(path, target):
... | Misc utility functions.
"""
import os.path
from dotfiles.compat import islink, realpath
def compare_path(path1, path2):
return (realpath_expanduser(path1) == realpath_expanduser(path2))
def realpath_expanduser(path):
return realpath(os.path.expanduser(path))
def is_link_to(path, target):
def normali... | <|file_sep|>original/dotfiles/utils.py
"""
import os.path
from dotfiles.compat import islink, realpath
def compare_path(path1, path2):
return (realpath_expanduser(path1) == realpath_expanduser(path2))
def realpath_expanduser(path):
return realpath(os.path.expanduser(path))
def is_link_to(path, target):
... | 22b92437c1ae672297bed8567b335ef7da100103 | dotfiles/utils.py | dotfiles/utils.py | Python |
<|file_sep|>original/packages/li/list-filter.yaml
<|file_sep|>current/packages/li/list-filter.yaml
<|file_sep|>updated/packages/li/list-filter.yaml | homepage: https://github.com/pgujjula/list-utilities#readme
changelog-type: markdown
hash: 418fc14a11e3678e1a68d94986bb77a69b85c1919ce615a055bc5dc9857fec6c
test-bench-deps:
base: '>=4.7 && <5'
hspec: -any
list-filter: -any
QuickCheck: -any
maintainer: pgujjula+list-utilities@protonmail.com
synopsis: Special tak... | <|file_sep|>original/packages/li/list-filter.yaml
<|file_sep|>current/packages/li/list-filter.yaml
<|file_sep|>updated/packages/li/list-filter.yaml
homepage: https://github.com/pgujjula/list-utilities#readme
changelog-type: markdown
hash: 418fc14a11e3678e1a68d94986bb77a69b85c1919ce615a055bc5dc9857fec6c
test-bench-dep... | e9551c2b4f14e01299c4248c0dd6ee7c1fe7021b | packages/li/list-filter.yaml | packages/li/list-filter.yaml | YAML |
<|file_sep|>package.json.diff
original:
"nodeunit": "^0.9.0",
"grunt": "1.0.2",
updated:
"nodeunit": "latest",
"grunt": "latest",
<|file_sep|>original/package.json
"url": "https://github.com/Tezirg/vector_math.js.git"
},
"scripts": {
"test": "grunt test",
"build": "grunt build"
},
"devD... | "url": "https://github.com/Tezirg/vector_math.js.git"
},
"scripts": {
"test": "grunt test",
"build": "grunt build"
},
"devDependencies": {
"jshint": "latest",
"uglify-js": "latest",
"nodeunit": "latest",
"grunt": "latest",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-nodeuni... | <|file_sep|>package.json.diff
original:
"nodeunit": "^0.9.0",
"grunt": "1.0.2",
updated:
"nodeunit": "latest",
"grunt": "latest",
<|file_sep|>original/package.json
"url": "https://github.com/Tezirg/vector_math.js.git"
},
"scripts": {
"test": "grunt test",
"build": "grunt build"
},
"devD... | 8de3883fa565231af5c42536921d24b94587963c | package.json | package.json | JSON |
<|file_sep|>install-jdk.sh.diff
original:
CONTENT=$(curl -L jdk.java.net/10/)
TMP="${CONTENT#*Most recent build: jdk-10-ea+}" # remove preamble
updated:
JDK_FEATURE=10
<|file_sep|>original/install-jdk.sh
#!/bin/bash
set -e
CONTENT=$(curl -L jdk.java.net/10/)
TMP="${CONTENT#*Most recent build: jdk-10-ea+}" # remove pre... | #!/bin/bash
set -e
JDK_FEATURE=10
TMP=$(curl -L jdk.java.net/${JDK_FEATURE})
TMP="${TMP#*Most recent build: jdk-${JDK_FEATURE}-ea+}" # remove everything before the number
TMP="${TMP%%<*}" # remove everything after the number
JDK_BUILD="$(echo -e "${TMP}" | tr -d '[:space:]')" ... | <|file_sep|>install-jdk.sh.diff
original:
CONTENT=$(curl -L jdk.java.net/10/)
TMP="${CONTENT#*Most recent build: jdk-10-ea+}" # remove preamble
updated:
JDK_FEATURE=10
<|file_sep|>original/install-jdk.sh
#!/bin/bash
set -e
CONTENT=$(curl -L jdk.java.net/10/)
TMP="${CONTENT#*Most recent build: jdk-10-ea+}" # remove pre... | 87ab3079d654a3af9e03e35687a9c55add097a8f | install-jdk.sh | install-jdk.sh | Shell |
<|file_sep|>original/spec/models/spam_log_spec.rb
<|file_sep|>current/spec/models/spam_log_spec.rb
<|file_sep|>updated/spec/models/spam_log_spec.rb | require 'spec_helper'
describe SpamLog, models: true do
describe 'associations' do
it { is_expected.to belong_to(:user) }
end
describe 'validations' do
it { is_expected.to validate_presence_of(:user) }
end
end | <|file_sep|>original/spec/models/spam_log_spec.rb
<|file_sep|>current/spec/models/spam_log_spec.rb
<|file_sep|>updated/spec/models/spam_log_spec.rb
require 'spec_helper'
describe SpamLog, models: true do
describe 'associations' do
it { is_expected.to belong_to(:user) }
end
describe 'validations' do
it... | 80d0a2a6d8dccbb9888f9cd4dc3c3e7e208817e6 | spec/models/spam_log_spec.rb | spec/models/spam_log_spec.rb | Ruby |
<|file_sep|>lib/generators/data_migrate/install/templates/install_migration.rb.diff
original:
t.string :version
updated:
t.string :version, :null => false
<|file_sep|>original/lib/generators/data_migrate/install/templates/install_migration.rb
class CreateDataMigrations < ActiveRecord::Migration
def self.u... | class CreateDataMigrations < ActiveRecord::Migration
def self.up
create_table :data_migrations do |t|
t.string :version, :null => false
end
add_index :data_migrations, :version, :unique => true, :name => "<%= ActiveRecord::Base.table_name_prefix %>unique_data_migrations<%= ActiveRecord::Base.table_... | <|file_sep|>lib/generators/data_migrate/install/templates/install_migration.rb.diff
original:
t.string :version
updated:
t.string :version, :null => false
<|file_sep|>original/lib/generators/data_migrate/install/templates/install_migration.rb
class CreateDataMigrations < ActiveRecord::Migration
def self.u... | 30c9241f894cbdccbbc63562bf176208f1ff6514 | lib/generators/data_migrate/install/templates/install_migration.rb | lib/generators/data_migrate/install/templates/install_migration.rb | Ruby |
<|file_sep|>original/README.md
# OpenSkyStacker
Multi-platform astroimaging stacker.
[](https://codedocs.xyz/BenJuan26/OpenSkyStacker/)
## Setup
Qt5 is required for this project. In order to prevent some relatively severe memory issues, building for... | # OpenSkyStacker
Multi-platform astroimaging stacker.
[](https://travis-ci.org/BenJuan26/OpenSkyStacker) [](https://codedocs.xyz/BenJuan26/OpenSkyStacker/)
## Setup
Qt5... | <|file_sep|>original/README.md
# OpenSkyStacker
Multi-platform astroimaging stacker.
[](https://codedocs.xyz/BenJuan26/OpenSkyStacker/)
## Setup
Qt5 is required for this project. In order to prevent some relatively severe memory issues, building for... | c87c3e4fcff9a488a9907b4f647819e7a9f33432 | README.md | README.md | Markdown |
<|file_sep|>original/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py
<|file_sep|>current/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py
<|file_sep|>updated/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import csv
import datetime
from django.core.management.base import BaseCommand
from corehq.util.couch import IterDB
from corehq.util.log import with_progress_bar
from couchforms.models import XFormIns... | <|file_sep|>original/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py
<|file_sep|>current/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py
<|file_sep|>updated/corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py
from __future__ import print_... | fcde68e954eab9f1b158928f9d30633523d41d94 | corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py | corehq/apps/userreports/management/commands/resave_couch_forms_and_cases.py | Python |
<|file_sep|>original/.github/workflows/audit.yaml
jobs:
main:
runs-on: ubuntu-18.04
name: Audit
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
branch:
- '2.4'
- '2.5'
steps:
- uses: actions/checkout@v1
with:
ref: ${{ matrix.b... | jobs:
main:
runs-on: ubuntu-18.04
name: Audit
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
branch:
- '2.4'
- '2.5'
steps:
- uses: actions/checkout@v1
with:
ref: ${{ matrix.branch }}
- run: npm install --package-lock
... | <|file_sep|>original/.github/workflows/audit.yaml
jobs:
main:
runs-on: ubuntu-18.04
name: Audit
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
branch:
- '2.4'
- '2.5'
steps:
- uses: actions/checkout@v1
with:
ref: ${{ matrix.b... | 367eba1bafcc37e668bb0bc9ebc656a7e018e079 | .github/workflows/audit.yaml | .github/workflows/audit.yaml | YAML |
<|file_sep|>docs/interesting-issues.md.diff
original:
updated:
<|file_sep|>original/docs/interesting-issues.md
## Interesting issues
#### DNS resolv.conf issue in alpine
https://github.com/gliderlabs/docker-alpine/issues/8
#### Running kubernetes in Docker containers
https://github.com/kubernetes/kubernetes/iss... | ## Interesting issues
#### DNS resolv.conf issue in alpine
https://github.com/gliderlabs/docker-alpine/issues/8
#### Running kubernetes in Docker containers
https://github.com/kubernetes/kubernetes/issues/13424
#### Experiment run kubelet as docker container
https://github.com/kubernetes/kubernetes/issues/4869
##... | <|file_sep|>docs/interesting-issues.md.diff
original:
updated:
<|file_sep|>original/docs/interesting-issues.md
## Interesting issues
#### DNS resolv.conf issue in alpine
https://github.com/gliderlabs/docker-alpine/issues/8
#### Running kubernetes in Docker containers
https://github.com/kubernetes/kubernetes/iss... | 87ec28c66bbc025c2d96142353f3484df9b1bd2b | docs/interesting-issues.md | docs/interesting-issues.md | Markdown |
<|file_sep|>original/src/app/projects/states/show/show.tpl.html
<ul class="breadcrumb">
<li><a href="#/home">Home</a></li>
<li>
<a ng-if="assessingUnitRole" href="#/units?unitRole={{assessingUnitRole.id}}">{{unit.name}}</a>
<span ng-if="!assessingUnitRole">{{unit.name}}</span>
</li>
<li class="active">{... | <ul class="breadcrumb">
<li><a href="#/home">Home</a></li>
<li ng-if="!assessingUnitRole">
<a href="#/projects/{{project.project_id}}">{{unit.name}}</a>
</li>
<li ng-if="assessingUnitRole">
<a href="#/units?unitRole={{assessingUnitRole.id}}">{{unit.name}}</a>
</li>
<li class="active">{{project.stude... | <|file_sep|>original/src/app/projects/states/show/show.tpl.html
<ul class="breadcrumb">
<li><a href="#/home">Home</a></li>
<li>
<a ng-if="assessingUnitRole" href="#/units?unitRole={{assessingUnitRole.id}}">{{unit.name}}</a>
<span ng-if="!assessingUnitRole">{{unit.name}}</span>
</li>
<li class="active">{... | 551ecd792fce1c536b43a9e9490d95b93555c04e | src/app/projects/states/show/show.tpl.html | src/app/projects/states/show/show.tpl.html | HTML |
<|file_sep|>original/vim/vimrc.vim
" General options
set nocompatible
set backspace=indent,eol,start
set showcmd
set showmatch
set incsearch
set autowrite
set hidden
set history=50
set ruler
" Tabs and spaces
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
" Settings for color terminals and in the GUI.... | " General options
set nocompatible
set backspace=indent,eol,start
set showcmd
set showmatch
set incsearch
set autowrite
set hidden
set history=50
set ruler
set number
" Tabs and spaces
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
" Settings for color terminals and in the GUI.
if &t_Co > 2 || has("gu... | <|file_sep|>original/vim/vimrc.vim
" General options
set nocompatible
set backspace=indent,eol,start
set showcmd
set showmatch
set incsearch
set autowrite
set hidden
set history=50
set ruler
" Tabs and spaces
set tabstop=8
set expandtab
set shiftwidth=4
set softtabstop=4
" Settings for color terminals and in the GUI.... | 74329eeb5c6d99d9f988f84a7e39b0f63629a0fc | vim/vimrc.vim | vim/vimrc.vim | VimL |
<|file_sep|>original/erb/centos6.erb
<|file_sep|>current/erb/centos6.erb
<|file_sep|>updated/erb/centos6.erb | bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
rpm -Uvh http://rbel.frameos.org/rbel6
wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
rpm --import RPM-GPG-KEY-EPEL-6
rm -f RPM-GPG-KEY-EPEL-6
ca... | <|file_sep|>original/erb/centos6.erb
<|file_sep|>current/erb/centos6.erb
<|file_sep|>updated/erb/centos6.erb
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
rpm -Uvh http://rbel.frameos.org/rbel6
wget http://ftp.... | a259b50d0d4982d1e61234556a9ddc2bb79ac9c7 | erb/centos6.erb | erb/centos6.erb | HTML+ERB |
<|file_sep|>original/requirements-dev.txt
Sphinx==1.7.9
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-asyncio==0.2.0
<|file_sep|>current/requirements-dev.txt
Sphinx==1.7.9
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-asyncio==0.2.0
<|file_sep|>updated/requirements-dev.txt | Sphinx==1.8.0
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-asyncio==0.2.0 | <|file_sep|>original/requirements-dev.txt
Sphinx==1.7.9
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-asyncio==0.2.0
<|file_sep|>current/requirements-dev.txt
Sphinx==1.7.9
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-asyncio==0.2.0
<|file_sep|>updated/requirements-dev.txt
Sphinx==1.8.0
... | ac9f70e4dfe5f8c5a4bdb107456279b1db72dbd5 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/README.md
# Gomakefile
Generates makefile dependencies for a go main program.
Makefile inclusion:
```
#$(BINS:%=%.deps.mk)
%.deps.mk:
echo -n "$*: " > $@
gomakedeps $*.go >> $@
ifneq ($(MAKECMDGOALS),clean)
-include $(BINS:%=.%.deps.mk)
endif
```
<|file_sep|>current/README.md
# Gomakefile
G... | # Gomakefile
Generates makefile dependencies for a go main program.
Makefile inclusion:
```
#$(BINS:%=%.deps.mk)
.%.deps.mk:
echo -n "$*: " > $@
gomakedeps $*.go >> $@
ifneq ($(MAKECMDGOALS),clean)
-include $(BINS:%=.%.deps.mk)
endif
``` | <|file_sep|>original/README.md
# Gomakefile
Generates makefile dependencies for a go main program.
Makefile inclusion:
```
#$(BINS:%=%.deps.mk)
%.deps.mk:
echo -n "$*: " > $@
gomakedeps $*.go >> $@
ifneq ($(MAKECMDGOALS),clean)
-include $(BINS:%=.%.deps.mk)
endif
```
<|file_sep|>current/README.md
# Gomakefile
G... | 0b80c26de7497e332f7b8291ad8607a508e73984 | README.md | README.md | Markdown |
<|file_sep|>client/src/Home.js.diff
original:
updated:
import { Button } from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.css';
<|file_sep|>original/client/src/Home.js
import React, { Component } from 'react';
import { Link } from "react-router-dom";
import './Home.css';
class Home extends Component {
... | import React, { Component } from 'react';
import { Link } from "react-router-dom";
import { Button } from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.css';
import './Home.css';
class Home extends Component {
render() {
return (
<div className="home-wrapper">
<div className="home-title">... | <|file_sep|>client/src/Home.js.diff
original:
updated:
import { Button } from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.css';
<|file_sep|>original/client/src/Home.js
import React, { Component } from 'react';
import { Link } from "react-router-dom";
import './Home.css';
class Home extends Component {
... | c944a665387c344672c01645a43cd5fd3c000c78 | client/src/Home.js | client/src/Home.js | JavaScript |
<|file_sep|>README.md.diff
original:
2. Enable developer more (upper right toggle)
updated:
2. Enable developer mode (upper right toggle)
<|file_sep|>original/README.md
- Compiles LESS and TypeScript into /build
- Bundles the JavaScript modules together into /build/bundles
- Exports all the needed files to /target
... | - Compiles LESS and TypeScript into /build
- Bundles the JavaScript modules together into /build/bundles
- Exports all the needed files to /target
### 4. Running in chrome
[Google instructions](https://support.google.com/chrome/a/answer/2714278?hl=en)
1. In chrome, open chrome://extensions/
2. Enable developer mode... | <|file_sep|>README.md.diff
original:
2. Enable developer more (upper right toggle)
updated:
2. Enable developer mode (upper right toggle)
<|file_sep|>original/README.md
- Compiles LESS and TypeScript into /build
- Bundles the JavaScript modules together into /build/bundles
- Exports all the needed files to /target
... | 41ead6988facabaaee74ecbcfe43eb3fbdb88d74 | README.md | README.md | Markdown |
<|file_sep|>tomviz/python/tomviz/io/formats/numpy.py.diff
original:
updated:
# Switch to row major order for NPY stores
data = data.reshape(data.shape[::-1])
<|file_sep|>original/tomviz/python/tomviz/io/formats/numpy.py
np.save(f, data)
class NumpyReader(Reader, NumpyBase):
def rea... |
class NumpyReader(Reader, NumpyBase):
def read(self, path):
with open(path, "rb") as f:
data = np.load(f)
if len(data.shape) != 3:
return vtkImageData()
# NPY stores data as row major order. VTK expects column major order.
data = data.reshape(data.shape[::... | <|file_sep|>tomviz/python/tomviz/io/formats/numpy.py.diff
original:
updated:
# Switch to row major order for NPY stores
data = data.reshape(data.shape[::-1])
<|file_sep|>original/tomviz/python/tomviz/io/formats/numpy.py
np.save(f, data)
class NumpyReader(Reader, NumpyBase):
def rea... | eb9d9196155e90c4949380c66ff8876f41bccc01 | tomviz/python/tomviz/io/formats/numpy.py | tomviz/python/tomviz/io/formats/numpy.py | Python |
<|file_sep|>lib/repeatable/expression/difference.rb.diff
original:
attr_reader :included, :excluded
updated:
<|file_sep|>original/lib/repeatable/expression/difference.rb
def initialize(included:, excluded:)
@included = included
@excluded = excluded
end
attr_reader :included, :... |
def include?(date)
return false if excluded.include?(date)
included.include?(date)
end
def to_h
Hash[hash_key, { included: included.to_h, excluded: excluded.to_h }]
end
def ==(other)
return false unless other.is_a?(self.class)
included == other.in... | <|file_sep|>lib/repeatable/expression/difference.rb.diff
original:
attr_reader :included, :excluded
updated:
<|file_sep|>original/lib/repeatable/expression/difference.rb
def initialize(included:, excluded:)
@included = included
@excluded = excluded
end
attr_reader :included, :... | 2ad99e3e6cc27a8d0bf7d274ea166e7ee0baa690 | lib/repeatable/expression/difference.rb | lib/repeatable/expression/difference.rb | Ruby |
<|file_sep|>original/.github/workflows/update-master.yml
name: Update master branch
on:
push:
branches:
- main
jobs:
update-ref:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
script: |
github.git.updateRef({
owner: context.... | name: Update master branch
on:
push:
branches:
- main
jobs:
update-ref:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git update-ref refs/heads/master "${GITHUB_SHA}"
git push origin master | <|file_sep|>original/.github/workflows/update-master.yml
name: Update master branch
on:
push:
branches:
- main
jobs:
update-ref:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
script: |
github.git.updateRef({
owner: context.... | c702c908fd07409f1df204383c7047345c969874 | .github/workflows/update-master.yml | .github/workflows/update-master.yml | YAML |
<|file_sep|>original/japr.gemspec
DESCRIPTION
s.authors = ['Matt Hodan']
s.email = 'japr@clicktrackheart.com'
s.homepage = 'https://github.com/janosrusiczki/japr'
s.license = 'MIT'
s.required_ruby_version = '>= 2.1.0'
s.rubygems_version = '2.2.2'
# Runtime dependencies
s.add_runtime_dependency 'jek... | DESCRIPTION
s.authors = ['Matt Hodan']
s.email = 'japr@clicktrackheart.com'
s.homepage = 'https://github.com/janosrusiczki/japr'
s.license = 'MIT'
s.required_ruby_version = '>= 2.1.0'
s.rubygems_version = '2.2.2'
# Runtime dependencies
s.add_runtime_dependency 'jekyll', '>= 3.5', '< 5.0'
s.add_ru... | <|file_sep|>original/japr.gemspec
DESCRIPTION
s.authors = ['Matt Hodan']
s.email = 'japr@clicktrackheart.com'
s.homepage = 'https://github.com/janosrusiczki/japr'
s.license = 'MIT'
s.required_ruby_version = '>= 2.1.0'
s.rubygems_version = '2.2.2'
# Runtime dependencies
s.add_runtime_dependency 'jek... | dcccac8ad4062f354e6d8342eb840fdd4c81c114 | japr.gemspec | japr.gemspec | Ruby |
<|file_sep|>original/coordinatorlib/src/main/scala/com/socrata/datacoordinator/truth/universe/sql/SqlTableCleanup.scala
package sql
import java.sql.Connection
import com.rojoma.simplearm.util._
class SqlTableCleanup(conn: Connection, daysDelay: Int = 1) extends TableCleanup {
val log = org.slf4j.LoggerFactory.getL... | package sql
import java.sql.Connection
import com.rojoma.simplearm.util._
class SqlTableCleanup(conn: Connection, daysDelay: Int = 1) extends TableCleanup {
val log = org.slf4j.LoggerFactory.getLogger(classOf[SqlTableCleanup])
def cleanupPendingDrops(): Boolean = {
using(conn.createStatement()) { stmt =>
... | <|file_sep|>original/coordinatorlib/src/main/scala/com/socrata/datacoordinator/truth/universe/sql/SqlTableCleanup.scala
package sql
import java.sql.Connection
import com.rojoma.simplearm.util._
class SqlTableCleanup(conn: Connection, daysDelay: Int = 1) extends TableCleanup {
val log = org.slf4j.LoggerFactory.getL... | 17606a992e5d071bafbfb9fe6ec411afc800292b | coordinatorlib/src/main/scala/com/socrata/datacoordinator/truth/universe/sql/SqlTableCleanup.scala | coordinatorlib/src/main/scala/com/socrata/datacoordinator/truth/universe/sql/SqlTableCleanup.scala | Scala |
<|file_sep|>original/app/models/plot.rb
class Plot < ApplicationRecord
validates :plot_id, presence: true
validates :latitude, presence: true, numericality: { greater_than: 0 }
validates :longitude, presence: true, numericality: { greater_than: 0 }
validates :elevation, numericality: { greater_than: 0, allow_ni... | class Plot < ApplicationRecord
validates :plot_id, presence: true
validates_numericality_of :latitude, greater_than: 0, allow_nil: true
validates_numericality_of :longitude, greater_than: 0, allow_nil: true
validates_numericality_of :elevation, greater_than: 0, allow_nil: true
validates_numericality_of :area,... | <|file_sep|>original/app/models/plot.rb
class Plot < ApplicationRecord
validates :plot_id, presence: true
validates :latitude, presence: true, numericality: { greater_than: 0 }
validates :longitude, presence: true, numericality: { greater_than: 0 }
validates :elevation, numericality: { greater_than: 0, allow_ni... | 915f4402667d8e8cc67f58dacbf5024f0ed323ae | app/models/plot.rb | app/models/plot.rb | Ruby |
<|file_sep|>app/views/account/_model_help_requests.html.erb.diff
original:
Models looking for collaborators
updated:
Models looking for additional collaborators
<|file_sep|>app/views/account/_model_help_requests.html.erb.diff
original:
<div class="news_empty">
No models looking for collaborato... | <a href="<%= url_for(:controller => "browse", :action => "one_model", :id => model.id) %>">
<% if !model.previews.nil? and !model.previews.empty? %>
<img src="<%= url_for :controller => :browse, :action => :display_preview, :id => model.id, :size => 'thumb' %>" />
<% end %>
</a>
</div>
<div class... | <|file_sep|>app/views/account/_model_help_requests.html.erb.diff
original:
Models looking for collaborators
updated:
Models looking for additional collaborators
<|file_sep|>app/views/account/_model_help_requests.html.erb.diff
original:
<div class="news_empty">
No models looking for collaborato... | f792cfcd475325c7b6c6c2c00eba6c30b25c6cbc | app/views/account/_model_help_requests.html.erb | app/views/account/_model_help_requests.html.erb | HTML+ERB |
<|file_sep|>original/stats/server.go
if err != nil {
http.Error(rw, fmt.Sprintf("%v", err), http.StatusInternalServerError)
return
}
rw.Header().Add("Access-Control-Allow-Origin", "*")
rw.Write(encoded)
}
func (s *Server) takeSnapshots() {
for range time.NewTicker(serverSnapshotIntervl).C {
s.Lock()
for ... | http.Error(rw, fmt.Sprintf("%v", err), http.StatusInternalServerError)
return
}
rw.Header().Add("Access-Control-Allow-Origin", "*")
rw.Write(encoded)
}
func (s *Server) takeSnapshots() {
for range time.NewTicker(serverSnapshotIntervl).C {
s.Lock()
for name, stat := range s.stats {
if len(s.history[name... | <|file_sep|>original/stats/server.go
if err != nil {
http.Error(rw, fmt.Sprintf("%v", err), http.StatusInternalServerError)
return
}
rw.Header().Add("Access-Control-Allow-Origin", "*")
rw.Write(encoded)
}
func (s *Server) takeSnapshots() {
for range time.NewTicker(serverSnapshotIntervl).C {
s.Lock()
for ... | 349d830a609415002acfabe14e8932057eff780d | stats/server.go | stats/server.go | Go |
<|file_sep|>src/modules/test_map/mod.c.diff
original:
elm_modapi_init(void *m)
updated:
elm_modapi_init(void *m __UNUSED__)
<|file_sep|>src/modules/test_map/mod.c.diff
original:
elm_modapi_shutdown(void *m)
updated:
elm_modapi_shutdown(void *m __UNUSED__)
<|file_sep|>src/modules/test_map/mod.c.diff
original:
obj_ho... | EAPI Eina_Bool
obj_convert_geo_into_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
{
return EINA_FALSE;
}
EAPI Eina_Bool
obj_convert_coord_into_geo(const Evas_Object *obj __UNUSED__, int zoom __U... | <|file_sep|>src/modules/test_map/mod.c.diff
original:
elm_modapi_init(void *m)
updated:
elm_modapi_init(void *m __UNUSED__)
<|file_sep|>src/modules/test_map/mod.c.diff
original:
elm_modapi_shutdown(void *m)
updated:
elm_modapi_shutdown(void *m __UNUSED__)
<|file_sep|>src/modules/test_map/mod.c.diff
original:
obj_ho... | 79c31c97a5c0c1b061f18fec06d6b969d267c766 | src/modules/test_map/mod.c | src/modules/test_map/mod.c | C |
<|file_sep|>original/forum/models.py
from django.db import models
class Thread(models.Model):
"""Model for representing threads."""
title = models.TextField()
views = models.PositiveIntegerField(default=0)
sticky = models.BooleanField()
closed = models.BooleanField()
<|file_sep|>current/forum/model... | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | <|file_sep|>original/forum/models.py
from django.db import models
class Thread(models.Model):
"""Model for representing threads."""
title = models.TextField()
views = models.PositiveIntegerField(default=0)
sticky = models.BooleanField()
closed = models.BooleanField()
<|file_sep|>current/forum/model... | a6dc99096870b186aafe85e9777b7c29de488a51 | forum/models.py | forum/models.py | Python |
<|file_sep|>original/README.md
# OpenStack-Scripts
Contains scripts for generating managing servers, snapshots and networks. Repository only for study purpose.
<|file_sep|>current/README.md
# OpenStack-Scripts
Contains scripts for generating managing servers, snapshots and networks. Repository only for study purpose.... | # OpenStack-Scripts
Contains scripts for managing servers, snapshots and networks. Repository only for study purpose.
The script ```display*.sh``` is used only to display some basic information wrapping the ```configuration.sh```. The script configuration prompts the password whether the variable OS_PASSWORD isn't de... | <|file_sep|>original/README.md
# OpenStack-Scripts
Contains scripts for generating managing servers, snapshots and networks. Repository only for study purpose.
<|file_sep|>current/README.md
# OpenStack-Scripts
Contains scripts for generating managing servers, snapshots and networks. Repository only for study purpose.... | 9f27345de37977dd4ae48594a056dbed0005161e | README.md | README.md | Markdown |
<|file_sep|>original/requirements.txt
Django==1.6.5
PopIt-Python==0.1.7
PyYAML==3.11
Unidecode==0.04.16
WebOb==1.4
WebTest==2.0.15
argparse==1.2.1
beautifulsoup4==4.3.2
django-nose==1.2
django-pipeline==1.3.25
django-webtest==1.7.7
futures==2.1.6
nose==1.3.3
python-slugify==0.0.7
requests==0.14.2
six==1.7.3
slumber==0.... | PopIt-Python==0.1.7
PyYAML==3.11
Unidecode==0.04.16
WebOb==1.4
WebTest==2.0.15
argparse==1.2.1
beautifulsoup4==4.3.2
django-nose==1.2
django-pipeline==1.3.25
django-webtest==1.7.7
futures==2.1.6
ipdb==0.8
ipython==2.1.0
nose==1.3.3
python-slugify==0.0.7
requests==0.14.2
six==1.7.3
slumber==0.6.0
waitress==0.8.9
wsgiref... | <|file_sep|>original/requirements.txt
Django==1.6.5
PopIt-Python==0.1.7
PyYAML==3.11
Unidecode==0.04.16
WebOb==1.4
WebTest==2.0.15
argparse==1.2.1
beautifulsoup4==4.3.2
django-nose==1.2
django-pipeline==1.3.25
django-webtest==1.7.7
futures==2.1.6
nose==1.3.3
python-slugify==0.0.7
requests==0.14.2
six==1.7.3
slumber==0.... | b40b125019e8c66bfb34b8f41a03edaa8c555522 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/src/LazyRecord/Schema/DeclareSchema.php
<?php
namespace LazyRecord\Schema;
// a class alias of SchemaDeclare
// SchemaDeclare should be deprecated now.
class DeclareSchema extends SchemaDeclare { }
<|file_sep|>current/src/LazyRecord/Schema/DeclareSchema.php
<?php
namespace LazyRecord\Schema;
// ... | <?php
namespace LazyRecord\Schema;
// a class alias of SchemaDeclare
// SchemaDeclare should be deprecated now.
abstract class DeclareSchema extends SchemaDeclare { }
| <|file_sep|>original/src/LazyRecord/Schema/DeclareSchema.php
<?php
namespace LazyRecord\Schema;
// a class alias of SchemaDeclare
// SchemaDeclare should be deprecated now.
class DeclareSchema extends SchemaDeclare { }
<|file_sep|>current/src/LazyRecord/Schema/DeclareSchema.php
<?php
namespace LazyRecord\Schema;
// ... | e98d2eaf884b3a98d44a8cfd888691084dd57b6e | src/LazyRecord/Schema/DeclareSchema.php | src/LazyRecord/Schema/DeclareSchema.php | PHP |
<|file_sep|>.travis.yml.diff
original:
updated:
- 8
<|file_sep|>original/.travis.yml
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
... | # http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
- 8
- 10
- 12
os:
- linux
- osx
- windows
before_script:
- npm run lint
... | <|file_sep|>.travis.yml.diff
original:
updated:
- 8
<|file_sep|>original/.travis.yml
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
... | 68925b48f21ccfc744d75d5bc2998fcaf9a01304 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/_posts/2016-03-18-Python2.md
<|file_sep|>current/_posts/2016-03-18-Python2.md
<|file_sep|>updated/_posts/2016-03-18-Python2.md | ---
layout: post
title: "Python基础教程2"
date: 2016-03-18 22:30:00
categories: [Python]
tags: [Python]
---
* content
{:toc}
test
| <|file_sep|>original/_posts/2016-03-18-Python2.md
<|file_sep|>current/_posts/2016-03-18-Python2.md
<|file_sep|>updated/_posts/2016-03-18-Python2.md
---
layout: post
title: "Python基础教程2"
date: 2016-03-18 22:30:00
categories: [Python]
tags: [Python]
---
* content
{:toc}
test
| 6e41af088b1d1a760526031aadc784aefebb91df | _posts/2016-03-18-Python2.md | _posts/2016-03-18-Python2.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.