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|>README.md.diff original: usage: `serialpcap <portName> [<baudRate> [<frameGapMs]]` updated: <|file_sep|>original/README.md Serial port capture to PCAP =========== This tool can capture serial port traffic and store all data in PCAP format. It is later possible to open it by Wireshark and analyze it. This...
This tool can capture serial port traffic and store all data in PCAP format. It is later possible to open it by Wireshark and analyze it. This tool was created to capture Modbus-RTU on RS-485 but can be used to any other similar traffic. Tutorial on using this capture is on YouTube https://www.youtube.com/watch?v=Yt...
<|file_sep|>README.md.diff original: usage: `serialpcap <portName> [<baudRate> [<frameGapMs]]` updated: <|file_sep|>original/README.md Serial port capture to PCAP =========== This tool can capture serial port traffic and store all data in PCAP format. It is later possible to open it by Wireshark and analyze it. This...
00b697345f3c07ba1e4afa9c2f0b253a3bd568da
README.md
README.md
Markdown
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.2 Faker==1.0.0 flake8==3.6.0 freezegun==0.3.11 mccabe==0.6.1 model-mommy==1.6.0 py==1.7.0 pycodestyle==2.4.0 pyflakes==2.0.0 pytest-cov==2.6.0 pytest-django==3.4.4 pytest-freezegun==0.3.0 pytest-mock==1.10.0 pytest==3.10.0 text_unidecode==1.2 <...
-r requirements.txt coverage==4.5.2 Faker==1.0.0 flake8==3.6.0 freezegun==0.3.11 mccabe==0.6.1 model-mommy==1.6.0 py==1.7.0 pycodestyle==2.4.0 pyflakes==2.0.0 pytest-cov==2.6.0 pytest-django==3.4.4 pytest-freezegun==0.3.0 pytest-mock==1.10.0 pytest==4.0.1 text_unidecode==1.2
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.2 Faker==1.0.0 flake8==3.6.0 freezegun==0.3.11 mccabe==0.6.1 model-mommy==1.6.0 py==1.7.0 pycodestyle==2.4.0 pyflakes==2.0.0 pytest-cov==2.6.0 pytest-django==3.4.4 pytest-freezegun==0.3.0 pytest-mock==1.10.0 pytest==3.10.0 text_unidecode==1.2 <...
b08f9b84ef16c6e72e6a0a027c36d5d721d47ae9
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>package.json.diff original: "version": "0.4.0", updated: "version": "0.4.1", <|file_sep|>package.json.diff original: updated: "scripts": { "test": "node test/test.js" }, <|file_sep|>package.json.diff original: "gulpplugin" updated: "gulpplugin", "sass", "gulp" <|file_sep|>packag...
"gulp" ], "author": "David Manning", "license": "MIT", "bugs": { "url": "https://github.com/dlmanning/gulp-sass/issues" }, "dependencies": { "event-stream": "~3.0.16", "clone": "~0.1.10", "node-sass": "~0.7.0", "gulp-util": "~2.2.5" }, "devDependencies": { "tape": "~2.3.2", ...
<|file_sep|>package.json.diff original: "version": "0.4.0", updated: "version": "0.4.1", <|file_sep|>package.json.diff original: updated: "scripts": { "test": "node test/test.js" }, <|file_sep|>package.json.diff original: "gulpplugin" updated: "gulpplugin", "sass", "gulp" <|file_sep|>packag...
75dd9e9ae53d649ccd6115ec02d3bf362f66341f
package.json
package.json
JSON
<|file_sep|>original/package.json { "name": "wf-uicomponents", "version": "1.0.1", "description": "UI Components that support a rich HTML5 user experience.", "private": true, "repository": { "type": "git", "url": "git://github.com/WebFilings/wf-uicomponents.git" }, "readmeFilename": "README.md", ...
"name": "wf-uicomponents", "version": "1.0.1", "description": "UI Components that support a rich HTML5 user experience.", "private": true, "repository": { "type": "git", "url": "git://github.com/WebFilings/wf-uicomponents.git" }, "readmeFilename": "README.md", "devDependencies": { "almond": ...
<|file_sep|>original/package.json { "name": "wf-uicomponents", "version": "1.0.1", "description": "UI Components that support a rich HTML5 user experience.", "private": true, "repository": { "type": "git", "url": "git://github.com/WebFilings/wf-uicomponents.git" }, "readmeFilename": "README.md", ...
49e57b961377a7d94d469773220e33901dc45403
package.json
package.json
JSON
<|file_sep|>test/templates/cache.tpl.diff original: <p>cache: {% random() %}</p> updated: <p>cache: {% random %}</p> <|file_sep|>original/test/templates/cache.tpl {% $title = 'Cache Tests' %} {% include tpl= 'header' %} <p>Reload the page. The cache value should not change, but the nocache value should.</p> <p>This t...
{% $title = 'Cache Tests' %} {% include tpl= 'header' %} <p>Reload the page. The cache value should not change, but the nocache value should.</p> <p>This test only works correctly if caching is turned on.</p> <p>cache: {% random %}</p> {% nocache %} <p>nocache: {% random %}</p> {% end %} {% include tpl= 'footer' %...
<|file_sep|>test/templates/cache.tpl.diff original: <p>cache: {% random() %}</p> updated: <p>cache: {% random %}</p> <|file_sep|>original/test/templates/cache.tpl {% $title = 'Cache Tests' %} {% include tpl= 'header' %} <p>Reload the page. The cache value should not change, but the nocache value should.</p> <p>This t...
94cc26ff6e825469b9fd87f0ab19def3d0998e02
test/templates/cache.tpl
test/templates/cache.tpl
Smarty
<|file_sep|>cosmic-core/systemvm/scripts/config_auth.sh.diff original: HTACCESS="$BASE_DIR/.htaccess" PASSWDFILE="/etc/httpd/.htpasswd" if [ -d /etc/apache2 ] then PASSWDFILE="/etc/apache2/.htpasswd" fi config_htaccess() { mkdir -p $BASE_DIR result=$? echo "Options -Indexes" > $HTACCESS let "result=$result+...
PASSWDFILE="/etc/nginx/upload.htpasswd" write_passwd() { local user=$1 local passwd=$2 htpasswd -bc $PASSWDFILE $user $passwd return $? } if [ $# -ne 2 ] ; then echo $"Usage: `basename $0` username password " exit 0 fi write_passwd $1 $2 if [ $? -ne 0 ] then echo "Failed to update password" exit 2 fi e...
<|file_sep|>cosmic-core/systemvm/scripts/config_auth.sh.diff original: HTACCESS="$BASE_DIR/.htaccess" PASSWDFILE="/etc/httpd/.htpasswd" if [ -d /etc/apache2 ] then PASSWDFILE="/etc/apache2/.htpasswd" fi config_htaccess() { mkdir -p $BASE_DIR result=$? echo "Options -Indexes" > $HTACCESS let "result=$result+...
7a3ade1377fc03ac67e4d5210d56a301be8cd600
cosmic-core/systemvm/scripts/config_auth.sh
cosmic-core/systemvm/scripts/config_auth.sh
Shell
<|file_sep|>app/views/users/show.html.erb.diff original: <%= link_to("Edit Profile", edit_user_path) %> updated: <%= link_to("Edit Profile", edit_user_path(@user)) %> <|file_sep|>app/views/users/show.html.erb.diff original: Content Placeholder updated: <% @user.plans.each do |plan| %> <%= render partial: "plan_re...
<h1>Hello, <%= @user.name %></h1> <div> <%= link_to("Edit Profile", edit_user_path(@user)) %> </div> <div> <h2>Profile Information</h2> <div>Name: <%= @user.name %></div> <div>Email: <%= @user.email %></div> <div>Member Since: <%= @user.created_at %></div> </div> <div> <% @user.plans.each do |plan| %> <%= rende...
<|file_sep|>app/views/users/show.html.erb.diff original: <%= link_to("Edit Profile", edit_user_path) %> updated: <%= link_to("Edit Profile", edit_user_path(@user)) %> <|file_sep|>app/views/users/show.html.erb.diff original: Content Placeholder updated: <% @user.plans.each do |plan| %> <%= render partial: "plan_re...
a8fac4fb6b9e3ef8530175007121ab6415d7aab5
app/views/users/show.html.erb
app/views/users/show.html.erb
HTML+ERB
<|file_sep|>original/requirements.txt appdirs==1.4.3 Django==1.11 django-appconf==1.0.2 django-compressor==2.1.1 django-debug-toolbar==1.7 freezegun==0.3.8 packaging==16.8 psycopg2==2.7.1 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 rcssmin==1.0.6 rjsmin==1.0.12 six==1.10.0 sqlparse==0.2.3 uWSGI==2.0.15 <|file_...
appdirs==1.4.3 Django==1.11 django-appconf==1.0.2 django-compressor==2.1.1 django-debug-toolbar==1.8 freezegun==0.3.8 packaging==16.8 psycopg2==2.7.1 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 rcssmin==1.0.6 rjsmin==1.0.12 six==1.10.0 sqlparse==0.2.3 uWSGI==2.0.15
<|file_sep|>original/requirements.txt appdirs==1.4.3 Django==1.11 django-appconf==1.0.2 django-compressor==2.1.1 django-debug-toolbar==1.7 freezegun==0.3.8 packaging==16.8 psycopg2==2.7.1 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 rcssmin==1.0.6 rjsmin==1.0.12 six==1.10.0 sqlparse==0.2.3 uWSGI==2.0.15 <|file_...
551d693480839793e004c2335f0d27cdb180a823
requirements.txt
requirements.txt
Text
<|file_sep|>original/.travis.yml language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly sudo: false cache: - cargo script: - cargo test --no-default-features --features rustc-serialization - cargo test --no-default-features --features serde-serialization env: globa...
language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly os: - linux - osx sudo: false cache: - cargo script: - cargo test --no-default-features --features rustc-serialization - cargo test --no-default-features --features serde-serialization env:
<|file_sep|>original/.travis.yml language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly sudo: false cache: - cargo script: - cargo test --no-default-features --features rustc-serialization - cargo test --no-default-features --features serde-serialization env: globa...
f716b11f5872127e77e6f4ad31dc62af42891a82
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/main/java/mezz/jei/api/package-info.java @API(apiVersion = "28.0.0", owner = "JEI", provides = "JustEnoughItemsAPI") package mezz.jei.api; import net.minecraftforge.fml.common.API; <|file_sep|>current/src/main/java/mezz/jei/api/package-info.java @API(apiVersion = "28.0.0", owner = "JEI", provi...
@API(apiVersion = "0.28.0", owner = "JEI", provides = "JustEnoughItemsAPI") package mezz.jei.api; import net.minecraftforge.fml.common.API;
<|file_sep|>original/src/main/java/mezz/jei/api/package-info.java @API(apiVersion = "28.0.0", owner = "JEI", provides = "JustEnoughItemsAPI") package mezz.jei.api; import net.minecraftforge.fml.common.API; <|file_sep|>current/src/main/java/mezz/jei/api/package-info.java @API(apiVersion = "28.0.0", owner = "JEI", provi...
ca37b38ce0ce3ba32dbb30b54502fb9ccd6dd11d
src/main/java/mezz/jei/api/package-info.java
src/main/java/mezz/jei/api/package-info.java
Java
<|file_sep|>original/mina-ssl/pom.xml <packaging>jar</packaging> <dependencies> <dependency> <groupId>org.apache.directory.mina</groupId> <artifactId>org.apache.mina</artifactId> <version>0.9.1-SNAPSHOT</version> </dependency> </dependencies> <build> <plugins> <plugin> ...
<packaging>jar</packaging> <dependencies> <dependency> <groupId>org.apache.directory.mina</groupId> <artifactId>org.apache.mina</artifactId> <version>0.9.1-SNAPSHOT</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> ...
<|file_sep|>original/mina-ssl/pom.xml <packaging>jar</packaging> <dependencies> <dependency> <groupId>org.apache.directory.mina</groupId> <artifactId>org.apache.mina</artifactId> <version>0.9.1-SNAPSHOT</version> </dependency> </dependencies> <build> <plugins> <plugin> ...
a05db098fbe6363aecf4061a416c36bd1a2f9fd3
mina-ssl/pom.xml
mina-ssl/pom.xml
XML
<|file_sep|>original/build/VERSION.properties version=6.5.0 manual.repository=http://dev.vaadin.com/svn/doc/trunk <|file_sep|>current/build/VERSION.properties version=6.5.0 manual.repository=http://dev.vaadin.com/svn/doc/trunk <|file_sep|>updated/build/VERSION.properties
version=6.5.0 manual.repository=http://dev.vaadin.com/svn/doc/branches/6.5
<|file_sep|>original/build/VERSION.properties version=6.5.0 manual.repository=http://dev.vaadin.com/svn/doc/trunk <|file_sep|>current/build/VERSION.properties version=6.5.0 manual.repository=http://dev.vaadin.com/svn/doc/trunk <|file_sep|>updated/build/VERSION.properties version=6.5.0 manual.repository=http://dev.vaadi...
bf94c6aef9a1fb0038c5b8a0a45d717a0d8ff7c5
build/VERSION.properties
build/VERSION.properties
INI
<|file_sep|>.travis.yml.diff original: updated: env: - BUILD_ELEMENT='docker' - BUILD_ELEMENT='validate' <|file_sep|>original/.travis.yml notifications: slack: wtsi-cgpit:ptUMR1tkNyZJYd9TpGoss8WR email: false sudo: false services: - docker install: - docker build -t dockstore-cgpmap . - virtualenv -p p...
- BUILD_ELEMENT='docker' - BUILD_ELEMENT='validate' services: - docker install: - docker build -t dockstore-cgpmap . - virtualenv -p python3 venv - source venv/bin/activate - pip install html5lib cwltool script: - 'set -ue if [ "$BUILD_ELEMENT" == "docker" ]; then docker images | grep -c docksto...
<|file_sep|>.travis.yml.diff original: updated: env: - BUILD_ELEMENT='docker' - BUILD_ELEMENT='validate' <|file_sep|>original/.travis.yml notifications: slack: wtsi-cgpit:ptUMR1tkNyZJYd9TpGoss8WR email: false sudo: false services: - docker install: - docker build -t dockstore-cgpmap . - virtualenv -p p...
b7cd542f34e9987b5c8b15be1489f95e07dfd701
.travis.yml
.travis.yml
YAML
<|file_sep|>original/ci.sh #!/bin/bash set -e version=$(date +"%y.%m.%d.%H.%M") export VERSION=$version docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" rm -rf /tmp/receipts-target rm -rf /tmp/receipts-target-tests mkdir -p /tmp/receipts-target mkdir -p /tmp/receipts-target-tests export A...
#!/bin/bash set -e version=$(date +"%y.%m.%d.%H.%M") export VERSION=$version docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" rm -rf /tmp/receipts-target rm -rf /tmp/receipts-target-tests mkdir -p /tmp/receipts-target mkdir -p /tmp/receipts-target-tests export AUTH_TOKEN_SECRET="anything" export USE_OCR_STU...
<|file_sep|>original/ci.sh #!/bin/bash set -e version=$(date +"%y.%m.%d.%H.%M") export VERSION=$version docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" rm -rf /tmp/receipts-target rm -rf /tmp/receipts-target-tests mkdir -p /tmp/receipts-target mkdir -p /tmp/receipts-target-tests export A...
1bc17c3a3eaf2d659830eb5e4fe5503205989a1d
ci.sh
ci.sh
Shell
<|file_sep|>original/docker-compose.yml - .env links: - db ports: - "3001:3000" command: web environment: VIRTUAL_HOST: feeder.prx.docker LOCAL_ENV: "true" worker: image: feederprxorg_feeder volumes: - .:/app env_file: - .env links: - db command: worker db: image: pos...
feeder: build: . volumes: - .:/app env_file: - .env links: - db ports: - "3001:3000" command: web environment: VIRTUAL_HOST: feeder.prx.docker LOCAL_ENV: "true" networks: - feeder-net worker: image: feederprxorg_feeder volumes: ...
<|file_sep|>original/docker-compose.yml - .env links: - db ports: - "3001:3000" command: web environment: VIRTUAL_HOST: feeder.prx.docker LOCAL_ENV: "true" worker: image: feederprxorg_feeder volumes: - .:/app env_file: - .env links: - db command: worker db: image: pos...
a470bcc1d3d006f1c17043ffca5105570dcf5af8
docker-compose.yml
docker-compose.yml
YAML
<|file_sep|>original/src/github.com/stellar/go-horizon/actions_root.go // RootResource is the initial map of links into the api. type RootResource struct { halgo.Links } var globalRootResource = RootResource{ Links: halgo.Links{}. Self("/"). Link("account", "/accounts/{address}"). Link("account_transactions",...
// RootResource is the initial map of links into the api. type RootResource struct { halgo.Links } var globalRootResource = RootResource{ Links: halgo.Links{}. Self("/"). Link("account", "/accounts/{address}"). Link("account_transactions", "/accounts/{address}/transactions{?cursor,limit,order}"). Link("tran...
<|file_sep|>original/src/github.com/stellar/go-horizon/actions_root.go // RootResource is the initial map of links into the api. type RootResource struct { halgo.Links } var globalRootResource = RootResource{ Links: halgo.Links{}. Self("/"). Link("account", "/accounts/{address}"). Link("account_transactions",...
854ef6c2e241d628c6d221b6b015bcfcbe77f3bd
src/github.com/stellar/go-horizon/actions_root.go
src/github.com/stellar/go-horizon/actions_root.go
Go
<|file_sep|>original/sample-data/list.json <|file_sep|>current/sample-data/list.json <|file_sep|>updated/sample-data/list.json
{ crumpets:[ { name: 'English Crumpet', type: 'English' }, { name: 'Scottish Crumpet', type: 'Scottish' }, { name: 'Pikelet', type: 'Pikelet' }, { name: 'Square Crumpet', ...
<|file_sep|>original/sample-data/list.json <|file_sep|>current/sample-data/list.json <|file_sep|>updated/sample-data/list.json { crumpets:[ { name: 'English Crumpet', type: 'English' }, { name: 'Scottish Crumpet', type: 'Scottish' }, ...
1cf76cc252c48bea816f016248ddd54cd9f613f2
sample-data/list.json
sample-data/list.json
JSON
<|file_sep|>original/.travis.yml language: viml sudo: required dist: trusty os: - linux - osx osx_image: xcode7.3 before_script: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install macvim --with-override-system-vim; fi - vim --version - git clone https://github.com/syngan/vim-...
language: viml sudo: required dist: trusty os: - linux - osx osx_image: xcode7.3 before_script: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install vim --HEAD; fi - vim --version - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint - git clone https://github.com/ynkdir/vim-...
<|file_sep|>original/.travis.yml language: viml sudo: required dist: trusty os: - linux - osx osx_image: xcode7.3 before_script: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install macvim --with-override-system-vim; fi - vim --version - git clone https://github.com/syngan/vim-...
84b9143a7b0474e8454dab50158c8d7e1009ce13
.travis.yml
.travis.yml
YAML
<|file_sep|>original/CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt add_library(A SHARED A.cpp) add_library(B SHARED B.cpp) ctk_add_executable_utf8(C C.cpp) target_link_libraries(C B A) <|file_sep|>current/CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt add_library(A SHARED A.cpp) add_library(B SHARED B.cpp) ctk_add_e...
add_library(A SHARED A.cpp) add_library(B SHARED B.cpp) # No need to use ctk_add_executable_utf8 since there are # no special characters are involved in this test. add_executable(C C.cpp) target_link_libraries(C B A)
<|file_sep|>original/CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt add_library(A SHARED A.cpp) add_library(B SHARED B.cpp) ctk_add_executable_utf8(C C.cpp) target_link_libraries(C B A) <|file_sep|>current/CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt add_library(A SHARED A.cpp) add_library(B SHARED B.cpp) ctk_add_e...
fead4314528c0c30e93d2f065f60010af5f56428
CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt
CMake/ctkLinkerAsNeededFlagCheck/CMakeLists.txt
Text
<|file_sep|>original/.travis.yml language: php php: - '5.4' - '5.5' - '5.6' - '7.0' - '7.1' - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit matrix: allow_failures: - php: hhvm fast_finish: true <|file_sep|>current/.travis...
language: php php: - '5.6' - '7.0' - '7.1' - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit matrix: allow_failures: - php: hhvm fast_finish: true
<|file_sep|>original/.travis.yml language: php php: - '5.4' - '5.5' - '5.6' - '7.0' - '7.1' - hhvm before_script: - composer self-update - composer install --prefer-source --no-interaction --dev script: phpunit matrix: allow_failures: - php: hhvm fast_finish: true <|file_sep|>current/.travis...
f17e21a6cc9dbebd6670432293c5594c3ef254de
.travis.yml
.travis.yml
YAML
<|file_sep|>original/bin/undercloud-network.sh #!/bin/bash set -eux source /opt/stack/undercloud-live/bin/undercloud-common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock # need to exec to pick up the new group if ! id | grep libvirtd; then exec...
set -eux source /opt/stack/undercloud-live/bin/undercloud-common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock # need to exec to pick up the new group if ! id | grep libvirtd; then exec sudo su -l $USER $0 fi PUBLIC_INTERFACE=${PUBLIC_INTERFACE...
<|file_sep|>original/bin/undercloud-network.sh #!/bin/bash set -eux source /opt/stack/undercloud-live/bin/undercloud-common.sh # This script needs to be rerun if you reboot the undercloud. wait_for 12 10 ls /var/run/libvirt/libvirt-sock # need to exec to pick up the new group if ! id | grep libvirtd; then exec...
947570eb35f9866e5454606929a28ecbea076efd
bin/undercloud-network.sh
bin/undercloud-network.sh
Shell
<|file_sep|>original/tools/perf_expectations/perf_expectations.json {"linux-release-hardy/morejs/times/t": {"delta": 0, "var": 100}, "linux-release-hardy/startup/warm/t": {"delta": 0, "var": 15}, "mac-release-10.5/morejs/times/t": {"delta": -30, "var": 60}, "mac-release-10.5/startup/warm/t": {"delta": -155, "var": 2...
{"linux-release-hardy/morejs/times/t": {"delta": 0, "var": 100}, "linux-release-hardy/startup/warm/t": {"delta": 0, "var": 15}, "mac-release-10.5/morejs/times/t": {"delta": -30, "var": 60}, "mac-release-10.5/startup/warm/t": {"delta": -155, "var": 20}, "xp-release-dual-core/morejs/times/t": {"delta": 0, "var": 20},...
<|file_sep|>original/tools/perf_expectations/perf_expectations.json {"linux-release-hardy/morejs/times/t": {"delta": 0, "var": 100}, "linux-release-hardy/startup/warm/t": {"delta": 0, "var": 15}, "mac-release-10.5/morejs/times/t": {"delta": -30, "var": 60}, "mac-release-10.5/startup/warm/t": {"delta": -155, "var": 2...
cf6e688c2347be33a632a7c785c6da5a3a015c9c
tools/perf_expectations/perf_expectations.json
tools/perf_expectations/perf_expectations.json
JSON
<|file_sep|>original/.travis.yml language: go go: - 1.7.x - 1.8.x go_import_path: github.com/cloudflare/unsee script: - make test <|file_sep|>current/.travis.yml language: go go: - 1.7.x - 1.8.x go_import_path: github.com/cloudflare/unsee script: - make test <|file_sep|>updated/.travis.yml
language: go go: - 1.7.x - 1.8.x - master matrix: allow_failures: - go: master go_import_path: github.com/cloudflare/unsee script: - make test
<|file_sep|>original/.travis.yml language: go go: - 1.7.x - 1.8.x go_import_path: github.com/cloudflare/unsee script: - make test <|file_sep|>current/.travis.yml language: go go: - 1.7.x - 1.8.x go_import_path: github.com/cloudflare/unsee script: - make test <|file_sep|>updated/.travis.yml language: g...
1f1f8b2e85c1fa9dd92ae149e2e01aa43ce66d3b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/spec/features/user_visits_cookies_page_spec.rb require 'feature_helper' RSpec.describe 'When the user visits the cookies page' do it 'displays the page in English' do visit '/cookies' expect(page).to have_content('GOV.UK puts small files (known as ‘cookies’) onto your computer to collect...
require 'feature_helper' RSpec.describe 'When the user visits the cookies page' do it 'displays the page in English' do visit '/cookies' expect(page).to have_content('GOV.UK Verify puts small files (known as \'cookies\') onto your computer.') page_should_have_cookie_descriptions end it 'displays the...
<|file_sep|>original/spec/features/user_visits_cookies_page_spec.rb require 'feature_helper' RSpec.describe 'When the user visits the cookies page' do it 'displays the page in English' do visit '/cookies' expect(page).to have_content('GOV.UK puts small files (known as ‘cookies’) onto your computer to collect...
73eb68534028ee83016247f5c9ee7f70a3233593
spec/features/user_visits_cookies_page_spec.rb
spec/features/user_visits_cookies_page_spec.rb
Ruby
<|file_sep|>_data/settings.yml.diff original: updated: # Change to true for Disqus comments <|file_sep|>_data/settings.yml.diff original: comments: true updated: comments: false <|file_sep|>original/_data/settings.yml tagline: a minimalist Jekyll theme author: name: 'Paul Le' twitter: paululele disqus: co...
tagline: a minimalist Jekyll theme author: name: 'Paul Le' twitter: paululele # Change to true for Disqus comments disqus: comments: false disqus_shortname: 'https-lenpaul-github-io-lagrange' menu: - {name: 'About', url: 'about.html'} - {name: 'Writing', url: 'writing.html'} - {name: 'Contact', url: 'contac...
<|file_sep|>_data/settings.yml.diff original: updated: # Change to true for Disqus comments <|file_sep|>_data/settings.yml.diff original: comments: true updated: comments: false <|file_sep|>original/_data/settings.yml tagline: a minimalist Jekyll theme author: name: 'Paul Le' twitter: paululele disqus: co...
46acb5cb3f7a311dc9b7890533d55ed788ee58f1
_data/settings.yml
_data/settings.yml
YAML
<|file_sep|>gunicorn/app/wsgiapp.py.diff original: updated: def load(self): <|file_sep|>gunicorn/app/wsgiapp.py.diff original: self.load() updated: return util.import_app(self.app_uri) <|file_sep|>original/gunicorn/app/wsgiapp.py from gunicorn.app.base import Application class WSGIApplica...
from gunicorn import util from gunicorn.app.base import Application class WSGIApplication(Application): def init(self, parser, opts, args): if len(args) != 1: parser.error("No application module specified.") self.cfg.set("default_proc_name", args[0]) self.app_uri = args[0]...
<|file_sep|>gunicorn/app/wsgiapp.py.diff original: updated: def load(self): <|file_sep|>gunicorn/app/wsgiapp.py.diff original: self.load() updated: return util.import_app(self.app_uri) <|file_sep|>original/gunicorn/app/wsgiapp.py from gunicorn.app.base import Application class WSGIApplica...
2c73a41ab78b41da7b6f2ccbd16140fa701d74f2
gunicorn/app/wsgiapp.py
gunicorn/app/wsgiapp.py
Python
<|file_sep|>original/app/views/shared/_inline_styles.html.haml -# Generate dynamic styles that get embedded on the page. - content_for :styles do - if models.include?(:account) - Setting.account_category_color.each do |key, value| li.account .#{key} { background:#{value}; } - Setting.account_status_col...
-# Generate dynamic styles that get embedded on the page. - content_for :styles do - if models.include?(:account) - Setting.account_category_color.each do |key, value| li.account .#{key} { background:#{value}; } - if Setting.account_status_color.present? - Setting.account_status_color.each do |ke...
<|file_sep|>original/app/views/shared/_inline_styles.html.haml -# Generate dynamic styles that get embedded on the page. - content_for :styles do - if models.include?(:account) - Setting.account_category_color.each do |key, value| li.account .#{key} { background:#{value}; } - Setting.account_status_col...
32ccadfa6d6f06ce8699ccd75d35a1ec7e6cd329
app/views/shared/_inline_styles.html.haml
app/views/shared/_inline_styles.html.haml
Haml
<|file_sep|>bots.sample/number-jokes/__init__.py.diff original: class ExampleBot(TextGeneratorBot): updated: class NumberJokes(TextGeneratorBot): <|file_sep|>original/bots.sample/number-jokes/__init__.py import random from botfriend.bot import TextGeneratorBot class ExampleBot(TextGeneratorBot): def generate_text...
import random from botfriend.bot import TextGeneratorBot class NumberJokes(TextGeneratorBot): def generate_text(self): """Tell a joke about numbers.""" num = random.randint(1,10) arguments = dict( num=num, plus_1=num+1, plus_3=num+3 ) set...
<|file_sep|>bots.sample/number-jokes/__init__.py.diff original: class ExampleBot(TextGeneratorBot): updated: class NumberJokes(TextGeneratorBot): <|file_sep|>original/bots.sample/number-jokes/__init__.py import random from botfriend.bot import TextGeneratorBot class ExampleBot(TextGeneratorBot): def generate_text...
243feb2fe194ad00f59c6ff22ac41989fe0978d1
bots.sample/number-jokes/__init__.py
bots.sample/number-jokes/__init__.py
Python
<|file_sep|>bin/prepare_environment.sh.diff original: exit; updated: exit 1; <|file_sep|>bin/prepare_environment.sh.diff original: exit; updated: exit 1; <|file_sep|>original/bin/prepare_environment.sh pkg_name=$(dpkg -l $pkg | grep $pkg) elif [ -n "$(which rpm 2>/dev/null)" ]; then pkg_n...
fi if [ -z "$pkg_name" ]; then echo "Error: Development stack needs to be installed" echo " python dev, gcc, make etc" exit 1; fi done if [ -z "$(ps uax | grep docker | grep daemon)" ]; then echo "Error: Docker daemon should run" exit 1; fi python -c "import docker" 2>/dev/nu...
<|file_sep|>bin/prepare_environment.sh.diff original: exit; updated: exit 1; <|file_sep|>bin/prepare_environment.sh.diff original: exit; updated: exit 1; <|file_sep|>original/bin/prepare_environment.sh pkg_name=$(dpkg -l $pkg | grep $pkg) elif [ -n "$(which rpm 2>/dev/null)" ]; then pkg_n...
e79def71a3aac921d87ea1f7def4413ccc6c4604
bin/prepare_environment.sh
bin/prepare_environment.sh
Shell
<|file_sep|>Cargo.toml.diff original: version = "0.9.1" updated: version = "0.9.2" <|file_sep|>Cargo.toml.diff original: dsp-chain = "0.10.0" updated: dsp-chain = "0.11.0" <|file_sep|>original/Cargo.toml readme = "README.md" keywords = ["synthesis", "dsp", "audio", "music", "instrument"] license = "MIT" repository = "h...
readme = "README.md" keywords = ["synthesis", "dsp", "audio", "music", "instrument"] license = "MIT" repository = "https://github.com/RustAudio/synth.git" homepage = "https://github.com/RustAudio/synth" [dependencies] dsp-chain = "0.11.0" envelope = "0.6.3" mindtree_utils = "0.3.0" num = "0.1.29" panning = "0.1.1" pi...
<|file_sep|>Cargo.toml.diff original: version = "0.9.1" updated: version = "0.9.2" <|file_sep|>Cargo.toml.diff original: dsp-chain = "0.10.0" updated: dsp-chain = "0.11.0" <|file_sep|>original/Cargo.toml readme = "README.md" keywords = ["synthesis", "dsp", "audio", "music", "instrument"] license = "MIT" repository = "h...
bad906d6c9253ed072bf7ac8313bda6fc9b24768
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/LINKS.md # PISCES * [The PISCES GitHub repository](https://github.com/P4-vSwitch/vagrant) * [Draft PISCES paper](https://www.cs.princeton.edu/~jrex/papers/pisces-draft.pdf) * [PISCES article](https://www.princeton.edu/main/news/archive/S47/80/96O78/index.xml?section=topstories) # Supporting softw...
# PISCES * [PISCES](http://pisces.cs.princeton.edu/) * [The PISCES GitHub repository](https://github.com/P4-vSwitch/vagrant) * [Draft PISCES paper](https://www.cs.princeton.edu/~jrex/papers/pisces-draft.pdf) * [PISCES article](https://www.princeton.edu/main/news/archive/S47/80/96O78/index.xml?section=topstories) # Su...
<|file_sep|>original/LINKS.md # PISCES * [The PISCES GitHub repository](https://github.com/P4-vSwitch/vagrant) * [Draft PISCES paper](https://www.cs.princeton.edu/~jrex/papers/pisces-draft.pdf) * [PISCES article](https://www.princeton.edu/main/news/archive/S47/80/96O78/index.xml?section=topstories) # Supporting softw...
b30a76990c52888382a37988e90f2c44316a668b
LINKS.md
LINKS.md
Markdown
<|file_sep|>original/MainGame/data/config/config.ini [VERSION] APPNAME=MainGame AUTHOR=Rodolfo Lam MAYOR=0 MINOR=1 REVISION=0 [DISPLAY] RESX=800 RESY=600 FULLSCREEN=0 TARGETFPS=60 # Eventually a color palette will be here [STYLE] BGCOLOR=#64B5F6 TEXTCOLOR=#DAFFC7 FONT=data/fonts/OpenSans.ttf FONTSIZE=50 <|file_sep|>c...
[VERSION] APPNAME=MainGame AUTHOR=Rodolfo Lam RELSEASE=0 MAYOR=1 MINOR=0 REVISION=0 [DISPLAY] RESX=800 RESY=600 FULLSCREEN=0 TARGETFPS=60 # Eventually a color palette will be here [STYLE] BGCOLOR=#64B5F6 TEXTCOLOR=#DAFFC7 FONT=data/fonts/OpenSans.ttf FONTSIZE=50
<|file_sep|>original/MainGame/data/config/config.ini [VERSION] APPNAME=MainGame AUTHOR=Rodolfo Lam MAYOR=0 MINOR=1 REVISION=0 [DISPLAY] RESX=800 RESY=600 FULLSCREEN=0 TARGETFPS=60 # Eventually a color palette will be here [STYLE] BGCOLOR=#64B5F6 TEXTCOLOR=#DAFFC7 FONT=data/fonts/OpenSans.ttf FONTSIZE=50 <|file_sep|>c...
048014af18e7eaf75a8dea908230d1cdcb94e914
MainGame/data/config/config.ini
MainGame/data/config/config.ini
INI
<|file_sep|>original/{{cookiecutter.project_slug}}/Makefile .PHONY: upgrade-requirements upgrade-requirements: ## Upgrade and compile requirements with pip-compile --upgrade for file in $(REQUIREMENTS_DIR)/*.in; do \ pip-compile --upgrade $$file; \ done .PHONY: translations translations: ## Regenerate .po files w...
.PHONY: upgrade-requirements upgrade-requirements: ## Upgrade and compile requirements with pip-compile --upgrade for file in $(REQUIREMENTS_DIR)/*.in; do \ pip-compile --upgrade $$file; \ done .PHONY: translations translations: ## Regenerate .po files with ./manage.py makemessages ./manage.py makemessages -a -i...
<|file_sep|>original/{{cookiecutter.project_slug}}/Makefile .PHONY: upgrade-requirements upgrade-requirements: ## Upgrade and compile requirements with pip-compile --upgrade for file in $(REQUIREMENTS_DIR)/*.in; do \ pip-compile --upgrade $$file; \ done .PHONY: translations translations: ## Regenerate .po files w...
a637c7659e74a1cbe5b44b83c32919d11a0078c3
{{cookiecutter.project_slug}}/Makefile
{{cookiecutter.project_slug}}/Makefile
unknown
<|file_sep|>original/Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs public UIElement TargetElement { get { return (UIElement)GetValue(TargetElementProperty); } set { SetValue(TargetElementProperty, value); } } public static readonly DependencyProperty TargetElementProperty = DependencyPro...
public UIElement TargetElement { get { return (UIElement)GetValue(TargetElementProperty); } set { SetValue(TargetElementProperty, value); } } public static readonly DependencyProperty TargetElementProperty = DependencyProperty.Register( "TargetElement", typeof(UIElement), typeof(FocusElemen...
<|file_sep|>original/Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs public UIElement TargetElement { get { return (UIElement)GetValue(TargetElementProperty); } set { SetValue(TargetElementProperty, value); } } public static readonly DependencyProperty TargetElementProperty = DependencyPro...
4b5e57a4dcb6058077cc547940b874feceae8ea6
Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs
Source/Monitorian.Core/Views/Behaviors/FocusElementAction.cs
C#
<|file_sep|>original/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java <|file_sep|>current/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java <|file_sep|>updated/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java
package net.imagej.ops.viewOp; import org.scijava.plugin.Plugin; import net.imagej.ops.view.ViewOps; import net.imagej.ops.view.ViewOps.Raster; import net.imglib2.RealRandomAccessible; import net.imglib2.type.Type; import net.imglib2.view.RandomAccessibleOnRealRandomAccessible; import net.imglib2.view.Views; @Plugin...
<|file_sep|>original/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java <|file_sep|>current/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java <|file_sep|>updated/src/main/java/net/imagej/ops/viewOp/DefaultRaster.java package net.imagej.ops.viewOp; import org.scijava.plugin.Plugin; import net.imagej.ops.vie...
bf841103a80fb2a3e599f020ab65dd141a3d30ef
src/main/java/net/imagej/ops/viewOp/DefaultRaster.java
src/main/java/net/imagej/ops/viewOp/DefaultRaster.java
Java
<|file_sep|>styles/grind.less.diff original: background: @button-background-color; updated: background: @base-background-color; <|file_sep|>original/styles/grind.less @import "ui-variables"; #grind-app { width: 360px; } .grd-horizontal-list { display: flex; } .top-menu-button { i { cursor: pointer; } } ...
@import "ui-variables"; #grind-app { width: 360px; } .grd-horizontal-list { display: flex; } .top-menu-button { i { cursor: pointer; } } .top-menu-item { padding: 10px; border-bottom: 1px solid @base-border-color; background: @base-background-color; cursor: pointer; &:hover { background: @back...
<|file_sep|>styles/grind.less.diff original: background: @button-background-color; updated: background: @base-background-color; <|file_sep|>original/styles/grind.less @import "ui-variables"; #grind-app { width: 360px; } .grd-horizontal-list { display: flex; } .top-menu-button { i { cursor: pointer; } } ...
63790ac43fe660ffddc0004f02d695d41dd7f4e8
styles/grind.less
styles/grind.less
Less
<|file_sep|>original/test/797-add-missing-boundaries.py # NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 2...
# NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 27, 44, 'boundaries', { 'kind': 'state' })
<|file_sep|>original/test/797-add-missing-boundaries.py # NE data - no OSM elements # boundary between NV and CA is _also_ a "statistical" boundary assert_has_feature( 7, 21, 49, 'boundaries', { 'kind': 'state' }) # boundary between MT and ND is _also_ a "statistical meta" boundary assert_has_feature( 7, 2...
dfa1424896b015fe376c523e13d0a59ceacca298
test/797-add-missing-boundaries.py
test/797-add-missing-boundaries.py
Python
<|file_sep|>original/rosie/requirements.txt brutils==1.0.1 geopy>=1.11.0 numpy==1.14.2 # scipy must come before scikit-learn in order to build the wheel in docker image scipy==1.0.0 scikit-learn==0.19.1 serenata-toolbox==15.0.0 <|file_sep|>current/rosie/requirements.txt brutils==1.0.1 geopy>=1.11.0 numpy==1.14.2 # scip...
brutils==1.0.1 geopy>=1.11.0 numpy==1.14.2 # scipy must come before scikit-learn in order to build the wheel in docker image scipy==1.0.1 scikit-learn==0.19.1 serenata-toolbox==15.0.0
<|file_sep|>original/rosie/requirements.txt brutils==1.0.1 geopy>=1.11.0 numpy==1.14.2 # scipy must come before scikit-learn in order to build the wheel in docker image scipy==1.0.0 scikit-learn==0.19.1 serenata-toolbox==15.0.0 <|file_sep|>current/rosie/requirements.txt brutils==1.0.1 geopy>=1.11.0 numpy==1.14.2 # scip...
e4e034a2442f1d5935f530480e4cdbf273b5d22e
rosie/requirements.txt
rosie/requirements.txt
Text
<|file_sep|>original/package.json "scripts": { "prepublish:": "npm test", "test": "mocha --reporter list", "test-debug": "DEBUG=tinylr:* mocha --reporter list", "test-debug-all": "DEBUG=* mocha --reporter list" }, "dependencies": { "qs": "~0.5.2", "faye-websocket": "~0.4.3", "noptify":...
"scripts": { "prepublish:": "npm test", "test": "mocha --reporter list", "test-debug": "DEBUG=tinylr:* mocha --reporter list", "test-debug-all": "DEBUG=* mocha --reporter list" }, "dependencies": { "qs": "~0.5.2", "faye-websocket": "~0.4.3", "noptify": "~0.0.3", "debug": "~0.8.0" ...
<|file_sep|>original/package.json "scripts": { "prepublish:": "npm test", "test": "mocha --reporter list", "test-debug": "DEBUG=tinylr:* mocha --reporter list", "test-debug-all": "DEBUG=* mocha --reporter list" }, "dependencies": { "qs": "~0.5.2", "faye-websocket": "~0.4.3", "noptify":...
b53ae7b74535b4f76a54131ed1bd25e2ac60d19f
package.json
package.json
JSON
<|file_sep|>_protected/app/langs/en_US/config/config.ini.diff original: updated: ; Timezone for the web app <|file_sep|>original/_protected/app/langs/en_US/config/config.ini ; The prefix of the language: English = en, Italiano = it, Español = es, ... ; You may also be more accurate EX: English in United States = en-US...
; ltr = Left to right language (English, Italiano, Español, ...) | rtl = right to left language (Arabic, Hebrew, ...). dir = ltr ; Language for encoding: UTF-8 generally still works. charset = "utf-8" [language.information] name = English author = "Pierre-Henry Soria" email = "ph7software@gmail.com" website = "http:...
<|file_sep|>_protected/app/langs/en_US/config/config.ini.diff original: updated: ; Timezone for the web app <|file_sep|>original/_protected/app/langs/en_US/config/config.ini ; The prefix of the language: English = en, Italiano = it, Español = es, ... ; You may also be more accurate EX: English in United States = en-US...
bd544eddc408d9e959b4371f52dc6ef3662fe842
_protected/app/langs/en_US/config/config.ini
_protected/app/langs/en_US/config/config.ini
INI
<|file_sep|>original/test/CodeGen/Mips/2010-11-09-CountLeading.ll <|file_sep|>current/test/CodeGen/Mips/2010-11-09-CountLeading.ll <|file_sep|>updated/test/CodeGen/Mips/2010-11-09-CountLeading.ll
; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s ; CHECK: clz $2, $4 define i32 @t1(i32 %X) nounwind readnone { entry: %tmp1 = tail call i32 @llvm.ctlz.i32(i32 %X) ret i32 %tmp1 } declare i32 @llvm.ctlz.i32(i32) nounwind readnone ; CHECK: clz $2, $4 define i32 @t2(i32 %X) nounwind readnone { entry: %tmp1 =...
<|file_sep|>original/test/CodeGen/Mips/2010-11-09-CountLeading.ll <|file_sep|>current/test/CodeGen/Mips/2010-11-09-CountLeading.ll <|file_sep|>updated/test/CodeGen/Mips/2010-11-09-CountLeading.ll ; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s ; CHECK: clz $2, $4 define i32 @t1(i32 %X) nounwind readnone { entry...
0cf2b2b9f0c4f9fc18ef527a227045793a769dee
test/CodeGen/Mips/2010-11-09-CountLeading.ll
test/CodeGen/Mips/2010-11-09-CountLeading.ll
LLVM
<|file_sep|>original/recipes/jplephem/meta.yaml - 0001_use-setuptools.patch build: number: 0 script: python setup.py install --single-version-externally-managed --record record.txt requirements: build: - python - setuptools run: - python - numpy test: imports: - jplephem about: ...
- 0001_use-setuptools.patch build: number: 0 script: python setup.py install --single-version-externally-managed --record record.txt requirements: build: - python - setuptools - numpy run: - python - numpy test: imports: - jplephem about:
<|file_sep|>original/recipes/jplephem/meta.yaml - 0001_use-setuptools.patch build: number: 0 script: python setup.py install --single-version-externally-managed --record record.txt requirements: build: - python - setuptools run: - python - numpy test: imports: - jplephem about: ...
01ea043cf6427100b7b7d33d0791b8c552557ace
recipes/jplephem/meta.yaml
recipes/jplephem/meta.yaml
YAML
<|file_sep|>original/.travis.yml language: ruby sudo: false rvm: - 2.0 - 2.1 - 2.2 - 2.3.1 - 2.4.0 cache: bundler script: - bundle exec rspec after_success: - bundle exec codeclimate-test-reporter addons: postgresql: "9.3" env: - RSPEC_VERSION="<2.99" - RSPEC_VERSION="~>3.0 <|file_sep|>current/.t...
language: ruby sudo: false rvm: - 2.0 - 2.1 - 2.2 - 2.3 - 2.4 cache: bundler script: - bundle exec rspec after_success: - bundle exec codeclimate-test-reporter addons: postgresql: "9.3" env: - RSPEC_VERSION="<2.99" - RSPEC_VERSION="~>3.0
<|file_sep|>original/.travis.yml language: ruby sudo: false rvm: - 2.0 - 2.1 - 2.2 - 2.3.1 - 2.4.0 cache: bundler script: - bundle exec rspec after_success: - bundle exec codeclimate-test-reporter addons: postgresql: "9.3" env: - RSPEC_VERSION="<2.99" - RSPEC_VERSION="~>3.0 <|file_sep|>current/.t...
0f94f885e0a01efb0c4c60b0c43e964c50e7c5f4
.travis.yml
.travis.yml
YAML
<|file_sep|>original/db/migrate/20161202152031_remove_duplicates_from_routes.rb # we use an optimized query in the "FillProjectsRoutesTable" migration # to fill these values that avoid duplicate entries in the routes table. return unless Gitlab::Database.mysql? select_all("SELECT path FROM #{quote_tabl...
def up # We can skip this migration when running a PostgreSQL database because # we use an optimized query in the "FillProjectsRoutesTable" migration # to fill these values that avoid duplicate entries in the routes table. return unless Gitlab::Database.mysql? execute <<-EOF DELETE duplicat...
<|file_sep|>original/db/migrate/20161202152031_remove_duplicates_from_routes.rb # we use an optimized query in the "FillProjectsRoutesTable" migration # to fill these values that avoid duplicate entries in the routes table. return unless Gitlab::Database.mysql? select_all("SELECT path FROM #{quote_tabl...
ad4ec44673254b4bb91c6ddb391ff9553c9473a5
db/migrate/20161202152031_remove_duplicates_from_routes.rb
db/migrate/20161202152031_remove_duplicates_from_routes.rb
Ruby
<|file_sep|>original/.travis.yml language: perl6 sudo: false perl6: - latest <|file_sep|>current/.travis.yml language: perl6 sudo: false perl6: - latest <|file_sep|>updated/.travis.yml
language: perl6 sudo: false perl6: - latest env: - FLAG_007_REGEX=1 FLAG_007_CLASS=1
<|file_sep|>original/.travis.yml language: perl6 sudo: false perl6: - latest <|file_sep|>current/.travis.yml language: perl6 sudo: false perl6: - latest <|file_sep|>updated/.travis.yml language: perl6 sudo: false perl6: - latest env: - FLAG_007_REGEX=1 FLAG_007_CLASS=1
80b77e119f0866124b18b57a584011821825fbf0
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/helpers/landable/traffic_helper.rb <|file_sep|>current/app/helpers/landable/traffic_helper.rb <|file_sep|>updated/app/helpers/landable/traffic_helper.rb
module Landable module TrafficHelper def crawl_tracker @tracker if @tracker.is_a? Landable::Traffic::CrawlTracker end def noop_tracker @tracker if @tracker.is_a? Landable::Traffic::NoopTracker end def ping_tracker @tracker if @tracker.is_a? Landable::Traffic::PingTracker en...
<|file_sep|>original/app/helpers/landable/traffic_helper.rb <|file_sep|>current/app/helpers/landable/traffic_helper.rb <|file_sep|>updated/app/helpers/landable/traffic_helper.rb module Landable module TrafficHelper def crawl_tracker @tracker if @tracker.is_a? Landable::Traffic::CrawlTracker end d...
44041bc84585d1f4ea83e372c1eeb388debd55f9
app/helpers/landable/traffic_helper.rb
app/helpers/landable/traffic_helper.rb
Ruby
<|file_sep|>src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java.diff original: updated: this.position = Snapshotters.QueuePositionInQueueSnapshotter.INSTANCE.apply(queuePosition); <|file_sep|>original/src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java import se.kth....
import se.kth.csc.model.QueuePosition; import se.kth.csc.payload.api.QueuePositionInQueueSnapshot; import se.kth.csc.payload.api.Snapshotters; @JsonTypeInfo(use = JsonTypeInfo.Id.NAME) public class QueuePositionCreatedInQueue { private final QueuePositionInQueueSnapshot position; private final String queueName...
<|file_sep|>src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java.diff original: updated: this.position = Snapshotters.QueuePositionInQueueSnapshotter.INSTANCE.apply(queuePosition); <|file_sep|>original/src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java import se.kth....
94239d9954197733d604b57a7033e30510c407e7
src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java
src/main/java/se/kth/csc/payload/message/QueuePositionCreatedInQueue.java
Java
<|file_sep|>original/README.md # Holiday Utility <|file_sep|>current/README.md # Holiday Utility <|file_sep|>updated/README.md
# Holiday Utility [![Build Status](https://travis-ci.org/bfeaver/holiday.svg?branch=master)](https://travis-ci.org/bfeaver/holiday) Simple library for calculating bank holidays.
<|file_sep|>original/README.md # Holiday Utility <|file_sep|>current/README.md # Holiday Utility <|file_sep|>updated/README.md # Holiday Utility [![Build Status](https://travis-ci.org/bfeaver/holiday.svg?branch=master)](https://travis-ci.org/bfeaver/holiday) Simple library for calculating bank holidays.
aeacbb3c3d38d32b99c7f2c804a22265f7c20287
README.md
README.md
Markdown
<|file_sep|>original/scripts/vagrant.sh # Set up Vagrant. date > /etc/vagrant_box_build_time # Create the user vagrant with password vagrant useradd -G sudo -p $(perl -e'print crypt("vagrant", "vagrant")') -m -s /bin/bash -N vagrant # Install vagrant keys mkdir -pm 700 /home/vagrant/.ssh curl -Lo /home/vagrant/.ssh/...
# Set up Vagrant. date > /etc/vagrant_box_build_time # Create the user vagrant with password vagrant useradd -G sudo -p $(perl -e'print crypt("vagrant", "vagrant")') -m -s /bin/bash -N vagrant # Install vagrant keys mkdir -pm 700 /home/vagrant/.ssh curl -Lo /home/vagrant/.ssh/authorized_keys \ 'https://raw.github....
<|file_sep|>original/scripts/vagrant.sh # Set up Vagrant. date > /etc/vagrant_box_build_time # Create the user vagrant with password vagrant useradd -G sudo -p $(perl -e'print crypt("vagrant", "vagrant")') -m -s /bin/bash -N vagrant # Install vagrant keys mkdir -pm 700 /home/vagrant/.ssh curl -Lo /home/vagrant/.ssh/...
9dc44d028bf2e8f3135a06f0d192ba863ea284cc
scripts/vagrant.sh
scripts/vagrant.sh
Shell
<|file_sep|>BDBOAuth1Manager.podspec.diff original: s.version = '1.5.0-so.1' updated: s.version = '1.5.0-so.2' <|file_sep|>original/BDBOAuth1Manager.podspec Pod::Spec.new do |s| s.name = 'BDBOAuth1Manager' s.version = '1.5.0-so.1' s.license = 'MIT' s.summary = 'AFNetworking 2.0-compatible rep...
Pod::Spec.new do |s| s.name = 'BDBOAuth1Manager' s.version = '1.5.0-so.2' s.license = 'MIT' s.summary = 'AFNetworking 2.0-compatible replacement for AFOAuth1Client.' s.homepage = 'https://github.com/bdbergeron/BDBOAuth1Manager' s.social_media_url = 'https://twitter.com/bradbergeron' s.authors ...
<|file_sep|>BDBOAuth1Manager.podspec.diff original: s.version = '1.5.0-so.1' updated: s.version = '1.5.0-so.2' <|file_sep|>original/BDBOAuth1Manager.podspec Pod::Spec.new do |s| s.name = 'BDBOAuth1Manager' s.version = '1.5.0-so.1' s.license = 'MIT' s.summary = 'AFNetworking 2.0-compatible rep...
c84511105bf41d5bdce4b656ee962419342419dc
BDBOAuth1Manager.podspec
BDBOAuth1Manager.podspec
Ruby
<|file_sep|>original/app/views/events/_registration.html.erb <% if current_user != nil %> <p> <%=link_to new_event_event_registration_path(@event), :class => "btn btn-success btn-lg" do%> <span class="fa fa-play-circle"></span> Register Now <%end%> </p> <%else%> <p> ...
<%end%> </p> <%else%> <p> <%=link_to signin_path(@event.id), :class => "btn btn-success btn-lg" do%> <span class="fa fa-play-circle"></span> Sign In And Register Now <%end%> </p> <%end%> <p> Register by <%=l @event.registration_end_dt, format: :long%>....
<|file_sep|>original/app/views/events/_registration.html.erb <% if current_user != nil %> <p> <%=link_to new_event_event_registration_path(@event), :class => "btn btn-success btn-lg" do%> <span class="fa fa-play-circle"></span> Register Now <%end%> </p> <%else%> <p> ...
78d06b7708cf08f9f41b3af22d620a6e41b9ed84
app/views/events/_registration.html.erb
app/views/events/_registration.html.erb
HTML+ERB
<|file_sep|>README.md.diff original: updated: This plug-in supports: * Plain-old maths, as per math.js built-in functionality * `px` units * CSS-friendly rendering (`10cm` not `10 cm`) * Unit stripping e.g. `strip(25px)` becomes `25` Contributions are very welcome! <|file_sep|>README.md.diff original: padding...
.foo { font-size: resolve(2 * 8px); padding: resolve(strip(16cm) + (2px * 3)); margin: resolve(4px + resolve(2 * 3px)); } ``` ```css .foo { font-size: 16px; padding: 22px; margin: 10px; } ``` ## Usage ```js postcss([ require('postcss-math') ]) ```
<|file_sep|>README.md.diff original: updated: This plug-in supports: * Plain-old maths, as per math.js built-in functionality * `px` units * CSS-friendly rendering (`10cm` not `10 cm`) * Unit stripping e.g. `strip(25px)` becomes `25` Contributions are very welcome! <|file_sep|>README.md.diff original: padding...
4b28b3ca83f73bf3f8d0c18bfaf3c96e2da84c31
README.md
README.md
Markdown
<|file_sep|>original/doc/smart-answer-flow-development/flattening-outcomes.md # Flattening Marriage Abroad outcomes for a country 1. Add or move the country into the right section of `lib/data/marriage_abroad_data.yml` and `test/data/marriage-abroad-questions-and-responses.yml` 2. `bundle exec rake marriage_abroad:fla...
# Flattening Marriage Abroad outcomes for a country **1. Add or move the country into the right section of these files:** - `lib/data/marriage_abroad_data.yml` - `test/data/marriage-abroad-questions-and-responses.yml` **2. Run the rake task to flatten the outcomes:** - `$ bundle exec rake marriage_abroad:flatte...
<|file_sep|>original/doc/smart-answer-flow-development/flattening-outcomes.md # Flattening Marriage Abroad outcomes for a country 1. Add or move the country into the right section of `lib/data/marriage_abroad_data.yml` and `test/data/marriage-abroad-questions-and-responses.yml` 2. `bundle exec rake marriage_abroad:fla...
25b748eecbf8aac4cdf53fe31fa4299cc062ebc7
doc/smart-answer-flow-development/flattening-outcomes.md
doc/smart-answer-flow-development/flattening-outcomes.md
Markdown
<|file_sep|>original/_config.yml # Permalinks permalink: pretty # Setup title: Tessera tagline: Analyze Large Complex Data with R url: http://tessera.io baseurl: / excerpt_separator: <!--more--> authors: ryan: display_name: Ryan Hafen email: rhafen@gmai...
# Permalinks permalink: pretty # Setup title: Tessera tagline: Analyze Large Complex Data with R url: http://tessera.io baseurl: / excerpt_separator: <!--more--> author : name : Ryan Hafen email : rhafen@gmail.com github : hafen twitter : hafenstats autho...
<|file_sep|>original/_config.yml # Permalinks permalink: pretty # Setup title: Tessera tagline: Analyze Large Complex Data with R url: http://tessera.io baseurl: / excerpt_separator: <!--more--> authors: ryan: display_name: Ryan Hafen email: rhafen@gmai...
2b56202dd2cd5b376a184416a1786cd65a5897d2
_config.yml
_config.yml
YAML
<|file_sep|>original/test/test_links.py import pytest @pytest.mark.parametrize("name, linked_to", [ ("/home/wicksy/vagrant/Vagrantfile", "/git/wicksy/configfiles/vagrant/Vagrantfile"), ("/home/wicksy/.vimrc", "/git/wicksy/configfiles/dotfiles/.vimrc"), ("/home/wicksy/.bashrc", "/git/wicksy/configfiles/dotfiles/....
import pytest @pytest.mark.parametrize("name, linked_to", [ ("/home/wicksy/vagrant/Vagrantfile", "/git/wicksy/configfiles/vagrant/Vagrantfile"), ("/home/wicksy/.vimrc", "/git/wicksy/configfiles/dotfiles/.vimrc"), ("/home/wicksy/.bashrc", "/git/wicksy/configfiles/dotfiles/.bashrc"), ("/home/wicksy/.aws", "/git/...
<|file_sep|>original/test/test_links.py import pytest @pytest.mark.parametrize("name, linked_to", [ ("/home/wicksy/vagrant/Vagrantfile", "/git/wicksy/configfiles/vagrant/Vagrantfile"), ("/home/wicksy/.vimrc", "/git/wicksy/configfiles/dotfiles/.vimrc"), ("/home/wicksy/.bashrc", "/git/wicksy/configfiles/dotfiles/....
6f80a7e5f8dea031db1c7cc676f8c96faf5fc458
test/test_links.py
test/test_links.py
Python
<|file_sep|>original/.github/workflows/main.yml name: Build/Deploy on: [push] jobs: test: runs-on: ubuntu-latest strategy: matrix: python_version: ["2.7", "3.5"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python_version }} uses: actions/setup-python@v...
name: Build/Deploy on: [push] jobs: test: runs-on: ubuntu-latest strategy: matrix: python_version: ["3.5"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python_version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python...
<|file_sep|>original/.github/workflows/main.yml name: Build/Deploy on: [push] jobs: test: runs-on: ubuntu-latest strategy: matrix: python_version: ["2.7", "3.5"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python_version }} uses: actions/setup-python@v...
150eab40caebd937749e831ad032c5fbd963079f
.github/workflows/main.yml
.github/workflows/main.yml
YAML
<|file_sep|>provider/common/util.go.diff original: // that is suitable for identifying the env on a provider. updated: // that is suitable for identifying the env on a provider. The resuling // string clearly associates the value with juju, whereas the // environment's UUID alone isn't very distinctive for humans. This...
// EnvFullName returns a string based on the provided environment // that is suitable for identifying the env on a provider. The resuling // string clearly associates the value with juju, whereas the // environment's UUID alone isn't very distinctive for humans. This // benefits users by helping them quickly identify ...
<|file_sep|>provider/common/util.go.diff original: // that is suitable for identifying the env on a provider. updated: // that is suitable for identifying the env on a provider. The resuling // string clearly associates the value with juju, whereas the // environment's UUID alone isn't very distinctive for humans. This...
dc23141dcf5bba4fab44b1f3748d3437d4bd4ece
provider/common/util.go
provider/common/util.go
Go
<|file_sep|>ember/app/components/fullscreen-button.js.diff original: import $ from 'jquery'; updated: <|file_sep|>original/ember/app/components/fullscreen-button.js /* global BigScreen */ import Component from '@ember/component'; import { action } from '@ember/object'; import $ from 'jquery'; export default Compon...
/* global BigScreen */ import Component from '@ember/component'; import { action } from '@ember/object'; export default Component.extend({ tagName: '', toggle: action(function () { let element = this.fullscreenElement; BigScreen.toggle(document.querySelector(element)); }), });
<|file_sep|>ember/app/components/fullscreen-button.js.diff original: import $ from 'jquery'; updated: <|file_sep|>original/ember/app/components/fullscreen-button.js /* global BigScreen */ import Component from '@ember/component'; import { action } from '@ember/object'; import $ from 'jquery'; export default Compon...
81bf125301a6ee5a8b8158208ddfc57977a13362
ember/app/components/fullscreen-button.js
ember/app/components/fullscreen-button.js
JavaScript
<|file_sep|>original/README.md grunt.loadNpmTasks('grunt-jsonlint'); An error will be thrown if the JSON file contains syntax errors. Here's a simple [tutorial](http://grunt-tasks.com/grunt-jsonlint/ "grunt") on how to use grunt-jsonlint # Roadmap The underlying jsonlint library has many features not yet expose...
An error will be thrown if the JSON file contains syntax errors. Here's a simple [tutorial](http://grunt-tasks.com/grunt-jsonlint/ "grunt") on how to use grunt-jsonlint # Roadmap The underlying jsonlint library has many features not yet exposed. Each of these would be valuable in grunt. * Schema validation * Sort ...
<|file_sep|>original/README.md grunt.loadNpmTasks('grunt-jsonlint'); An error will be thrown if the JSON file contains syntax errors. Here's a simple [tutorial](http://grunt-tasks.com/grunt-jsonlint/ "grunt") on how to use grunt-jsonlint # Roadmap The underlying jsonlint library has many features not yet expose...
d7db2e84a5da8304184ca79ba3cad2140a5f5aed
README.md
README.md
Markdown
<|file_sep|>MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs.diff original: updated: using System; <|file_sep|>MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs.diff original: if (algorithm.Equals(ApiContext.ScryptNFactor, System.StringComparison.OrdinalIgnoreCase)) updated: ...
if (coinInformation.Symbol.Equals("BTC", System.StringComparison.OrdinalIgnoreCase)) coinInformation.Price = 1; else coinInformation.Price = jToken.Value<double>("exchange_rate"); } private static string FixAlgorithmName(string algorithm) ...
<|file_sep|>MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs.diff original: updated: using System; <|file_sep|>MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs.diff original: if (algorithm.Equals(ApiContext.ScryptNFactor, System.StringComparison.OrdinalIgnoreCase)) updated: ...
22648d3f437934156b59113d5576d79c79e72b0a
MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs
MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs
C#
<|file_sep|>.github/ISSUE_TEMPLATE/Bug_report.md.diff original: **Description of the problem:** updated: **Platform:** **Description:** **Did the bug only start to occur after a CPod update? Version before, version after:** <|file_sep|>original/.github/ISSUE_TEMPLATE/Bug_report.md --- name: Bug report about: Report a...
--- name: Bug report about: Report a problem with CPod --- **CPod version:** **Platform:** **Description:** **Did the bug only start to occur after a CPod update? Version before, version after:** **Steps to reproduce:** **Please also attach information that might help, e.g. screenshots of console log, if possibl...
<|file_sep|>.github/ISSUE_TEMPLATE/Bug_report.md.diff original: **Description of the problem:** updated: **Platform:** **Description:** **Did the bug only start to occur after a CPod update? Version before, version after:** <|file_sep|>original/.github/ISSUE_TEMPLATE/Bug_report.md --- name: Bug report about: Report a...
04a39e1cf0cbdc659b08cff1becc5a33387b8883
.github/ISSUE_TEMPLATE/Bug_report.md
.github/ISSUE_TEMPLATE/Bug_report.md
Markdown
<|file_sep|>original/src/features/base/components/Rates/styles.scss @import '../../../../variables'; .rates { max-height: 14.5rem; overflow: auto; text-align: left; } <|file_sep|>current/src/features/base/components/Rates/styles.scss @import '../../../../variables'; .rates { max-height: 14.5rem; overflow: a...
@import '../../../../variables'; .rates { max-height: 44vh; overflow: auto; text-align: left; }
<|file_sep|>original/src/features/base/components/Rates/styles.scss @import '../../../../variables'; .rates { max-height: 14.5rem; overflow: auto; text-align: left; } <|file_sep|>current/src/features/base/components/Rates/styles.scss @import '../../../../variables'; .rates { max-height: 14.5rem; overflow: a...
08ce04a6c307fcb7c027e0abc17c9d9c2b3f76dc
src/features/base/components/Rates/styles.scss
src/features/base/components/Rates/styles.scss
SCSS
<|file_sep|>original/bower.json { "name": "polymer-starter-kit", "private": true, "dependencies": { "polymer": "Polymer/polymer#master", "iron-elements": "PolymerElements/iron-elements#^1.0.0", "paper-elements": "PolymerElements/paper-elements#^1.0.1", "platinum-elements": "PolymerElements/platinu...
{ "name": "polymer-starter-kit", "private": true, "dependencies": { "polymer": "Polymer/polymer#master", "iron-elements": "PolymerElements/iron-elements#^1.0.0", "paper-elements": "PolymerElements/paper-elements#^1.0.1", "platinum-elements": "PolymerElements/platinum-elements#^1.0.1", "neon-el...
<|file_sep|>original/bower.json { "name": "polymer-starter-kit", "private": true, "dependencies": { "polymer": "Polymer/polymer#master", "iron-elements": "PolymerElements/iron-elements#^1.0.0", "paper-elements": "PolymerElements/paper-elements#^1.0.1", "platinum-elements": "PolymerElements/platinu...
9848e43e2675da3018062e17a7f6b8dd98dc01e5
bower.json
bower.json
JSON
<|file_sep|>original/src/ContextEntitiesProvider.php * @var LoggerInterface */ private $logger; public function __construct(ICacheProvider $cacheProvider, LoggerInterface $logger) { $this->cache = $cacheProvider; $this->logger = $logger; } public function getDirectProvide...
* @var LoggerInterface */ private $logger; public function __construct(ICacheProvider $cacheProvider, LoggerInterface $logger) { $this->cache = $cacheProvider; $this->logger = $logger; } public function clearCache() { $collections = [ 'yandex' => [...
<|file_sep|>original/src/ContextEntitiesProvider.php * @var LoggerInterface */ private $logger; public function __construct(ICacheProvider $cacheProvider, LoggerInterface $logger) { $this->cache = $cacheProvider; $this->logger = $logger; } public function getDirectProvide...
60155c6341ab6d4cb28a0cf4f32ac84817eaf8b0
src/ContextEntitiesProvider.php
src/ContextEntitiesProvider.php
PHP
<|file_sep|>original/doc/releases/release_0.19.rst Version 0.19 (Expected 1st of December 2021) -------------------------------------------- Minor update introducing a few new features and fixes some smaller bugs. New Features / Enhancements *************************** - :class:`ps.ChangeModel` is added, simulating a...
Version 0.19 (Expected 1st of December 2021) -------------------------------------------- Minor update introducing a few new features and fixes some smaller bugs. New Features / Enhancements *************************** - :class:`ps.ChangeModel` is added, simulating a response that changes over time. - :class:`ps.rfun...
<|file_sep|>original/doc/releases/release_0.19.rst Version 0.19 (Expected 1st of December 2021) -------------------------------------------- Minor update introducing a few new features and fixes some smaller bugs. New Features / Enhancements *************************** - :class:`ps.ChangeModel` is added, simulating a...
f57c4c1898b3fc5fd4425d2cd970891a69892729
doc/releases/release_0.19.rst
doc/releases/release_0.19.rst
reStructuredText
<|file_sep|>original/.github/workflows/gradle.yml pull_request: branches: - master - releases/* jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest, macos-latest ] java-version: [ 11.0.3, 11, 17.0.1, 17 ] steps: - uses: actions/checkou...
pull_request: branches: - master - releases/* jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest ] java-version: [ 11.0.3, 11, 17.0.1, 17 ] steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.java-version }} on ${{ m...
<|file_sep|>original/.github/workflows/gradle.yml pull_request: branches: - master - releases/* jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest, macos-latest ] java-version: [ 11.0.3, 11, 17.0.1, 17 ] steps: - uses: actions/checkou...
0152d309370422be29e1d33090f7f739ca23b288
.github/workflows/gradle.yml
.github/workflows/gradle.yml
YAML
<|file_sep|>src/js/traffic.js.diff original: scales: { xAxes: [{ type: "time", time: { parser: timeFormat, tooltipFormat: 'll' }, ...
display: true, labelString: 'Requests/day (in millions)' }, ticks: { callback: function(label, index, labels) { return label/1000000+'m'; } ...
<|file_sep|>src/js/traffic.js.diff original: scales: { xAxes: [{ type: "time", time: { parser: timeFormat, tooltipFormat: 'll' }, ...
4264a8db1c3d4061c8c13ad0435ad2ee2cc18e62
src/js/traffic.js
src/js/traffic.js
JavaScript
<|file_sep|>original/after_build.sh #!/bin/bash PHP=php echo 'Download the composer.phar file, so the vendors can be installed from the distributed composer.json.' if [ ! -f composer.phar ] then curl -s -O http://getcomposer.org/composer.phar fi echo 'Update composer.phar.' $PHP composer.phar self-upd...
#!/bin/bash PHP=php echo 'Download the composer.phar file, so the vendors can be installed from the distributed composer.json.' if [ ! -f composer.phar ] then curl -s -O http://getcomposer.org/composer.phar fi echo 'Update composer.phar.' $PHP composer.phar self-update echo 'Install the needed vendor...
<|file_sep|>original/after_build.sh #!/bin/bash PHP=php echo 'Download the composer.phar file, so the vendors can be installed from the distributed composer.json.' if [ ! -f composer.phar ] then curl -s -O http://getcomposer.org/composer.phar fi echo 'Update composer.phar.' $PHP composer.phar self-upd...
a485de13e6bf213afa57e3e9cba77196cbafdd6a
after_build.sh
after_build.sh
Shell
<|file_sep|>original/.github/workflows/macos_cmake.yml name: MacOS Cmake on: workflow_dispatch: inputs: extra_resolve_options: description: "Extra Resolve Options" required: false schedule: - cron: "0 1 * * *" # 3 AM CET push: pull_request: env: EXTRA_RESOLVE_OPTIONS: ${{ github....
name: MacOS Cmake on: workflow_dispatch: inputs: extra_resolve_options: description: "Extra Resolve Options" required: false schedule: - cron: "0 1 * * *" # 3 AM CET push: pull_request: env: EXTRA_RESOLVE_OPTIONS: ${{ github.event.inputs.extra_resolve_options }} jobs: MacOS-cma...
<|file_sep|>original/.github/workflows/macos_cmake.yml name: MacOS Cmake on: workflow_dispatch: inputs: extra_resolve_options: description: "Extra Resolve Options" required: false schedule: - cron: "0 1 * * *" # 3 AM CET push: pull_request: env: EXTRA_RESOLVE_OPTIONS: ${{ github....
30541360e93ad56d5d2f2d398f5fbf23c4a47b86
.github/workflows/macos_cmake.yml
.github/workflows/macos_cmake.yml
YAML
<|file_sep|>original/deepdown.html } #main-canvas { padding: 0px; margin: 0px; } </style> </head> <body onload="start();"> <div id="main-container"> <canvas id="main-canvas"> Your browser does not support the HTML5 Canvas feature. This game uses new H...
</head> <body onload="start();"> <div id="main-container"> <canvas id="main-canvas"> Your browser does not support the HTML5 Canvas feature. This game uses new HTML5 features and will only work on modern browsers. </canvas> </div> <div> W, A, S, D to move, Left...
<|file_sep|>original/deepdown.html } #main-canvas { padding: 0px; margin: 0px; } </style> </head> <body onload="start();"> <div id="main-container"> <canvas id="main-canvas"> Your browser does not support the HTML5 Canvas feature. This game uses new H...
818d4ffc774996da9e0bcb62dd7745a56544fdb4
deepdown.html
deepdown.html
HTML
<|file_sep|>lib/network-sites.php.diff original: updated: // Display blog enabled/disabled status in list <|file_sep|>original/lib/network-sites.php <?php add_filter('wpmu_blogs_columns', function ($columns) { $columns['2fa'] = '2FA'; return $columns; }); add_action('manage_sites_custom_column', function ($colu...
return $columns; }); add_action('manage_sites_custom_column', function ($column_name, $blawg_id) { if ($column_name === '2fa') { $enabled = get_blog_option($blawg_id, '2fa_enabled') === 'yes'; echo $enabled ? 'Enabled' : 'Disabled'; } }, 10, 2); // Enabled/disabled status option add_action('wpmueditbl...
<|file_sep|>lib/network-sites.php.diff original: updated: // Display blog enabled/disabled status in list <|file_sep|>original/lib/network-sites.php <?php add_filter('wpmu_blogs_columns', function ($columns) { $columns['2fa'] = '2FA'; return $columns; }); add_action('manage_sites_custom_column', function ($colu...
5de6adc05762e1d434ddc06bd9124b885e87d993
lib/network-sites.php
lib/network-sites.php
PHP
<|file_sep|>original/src/collision/collision_results.rs use super::{CollisionDetails, CollisionObjectResults}; #[derive(Clone)] pub struct CollisionResults<T: Clone> { pub collided: bool, pub details: Option<CollisionDetails>, pub time: Option<f64>, pub data: Option<T> } impl<T: Clone> CollisionResult...
use super::{CollisionDetails, CollisionObjectResults}; #[derive(Clone, Debug)] pub struct CollisionResults<T: Clone> { pub collided: bool, pub details: Option<CollisionDetails>, pub time: Option<f64>, pub data: Option<T> } impl<T: Clone> CollisionResults<T> { pub fn new_with_location(location: usi...
<|file_sep|>original/src/collision/collision_results.rs use super::{CollisionDetails, CollisionObjectResults}; #[derive(Clone)] pub struct CollisionResults<T: Clone> { pub collided: bool, pub details: Option<CollisionDetails>, pub time: Option<f64>, pub data: Option<T> } impl<T: Clone> CollisionResult...
f87e63333aff01bcdf040fcb506fc125e0a6f819
src/collision/collision_results.rs
src/collision/collision_results.rs
Rust
<|file_sep|>original/tests/Routing/SymfonyUrlGeneratorTest.php <|file_sep|>current/tests/Routing/SymfonyUrlGeneratorTest.php <|file_sep|>updated/tests/Routing/SymfonyUrlGeneratorTest.php
<?php namespace SitemapGenerator\Tests\Entity; use SitemapGenerator\Routing\SymfonyUrlGenerator; use SitemapGenerator\UrlGenerator; class SymfonyUrlGeneratorTest extends \PHPUnit_Framework_TestCase { public function testGenerateDelegatesToTheUrlGenerator() { $route = 'route_name'; $routeParam...
<|file_sep|>original/tests/Routing/SymfonyUrlGeneratorTest.php <|file_sep|>current/tests/Routing/SymfonyUrlGeneratorTest.php <|file_sep|>updated/tests/Routing/SymfonyUrlGeneratorTest.php <?php namespace SitemapGenerator\Tests\Entity; use SitemapGenerator\Routing\SymfonyUrlGenerator; use SitemapGenerator\UrlGenerato...
f986237e08e7bbad5892dd6ba9494cdd208e96f9
tests/Routing/SymfonyUrlGeneratorTest.php
tests/Routing/SymfonyUrlGeneratorTest.php
PHP
<|file_sep|>original/CMakeLists.txt set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) # # Project options # option(HARD_MODE "Enables extra checks for use during development" OFF) # # Dependencies # find_package(PNG REQUIRED 1.6) find_package(WaylandEgl REQUIRED) find_package(WaylandServer REQUIRED) find_packa...
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) # # Project options # option(HARD_MODE "Enables extra checks for use during development" OFF) # # Dependencies # find_package(Libudev) find_package(PNG REQUIRED 1.6) find_package(WaylandEgl REQUIRED) find_package(WaylandServer REQUIRED) find_package(WaylandCurs...
<|file_sep|>original/CMakeLists.txt set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) # # Project options # option(HARD_MODE "Enables extra checks for use during development" OFF) # # Dependencies # find_package(PNG REQUIRED 1.6) find_package(WaylandEgl REQUIRED) find_package(WaylandServer REQUIRED) find_packa...
8fed9c42343cd131d231bd00e041e104703b8a94
CMakeLists.txt
CMakeLists.txt
Text
<|file_sep|>original/next/pages/index.js // This is the Link API import Link from 'next/link' const Index = () => ( <div> <Link href="/about"> <a>About Page</a> </Link> <p>Hello Next.js</p> </div> ) export default Index <|file_sep|>current/next/pages/index.js // This is the Link API import Link ...
// This is the Link API import Link from 'next/link' const Index = () => ( <div> <Link href="/about"> <a style={{fontSize: 20}}>About Page</a> </Link> <p>Hello Next.js</p> </div> ) export default Index
<|file_sep|>original/next/pages/index.js // This is the Link API import Link from 'next/link' const Index = () => ( <div> <Link href="/about"> <a>About Page</a> </Link> <p>Hello Next.js</p> </div> ) export default Index <|file_sep|>current/next/pages/index.js // This is the Link API import Link ...
3f85aa402425340b7476aba9873af2bb3bc3534e
next/pages/index.js
next/pages/index.js
JavaScript
<|file_sep|>original/.travis.yml matrix: include: - os: linux python: 3.5 - os: linux python: 3.6 - os: linux python: 3.7 env: DEPLOY=yes - os: linux python: 3.8-dev - os: osx language: generic script: - bash scripts/test.sh after_script: - bash <(curl -s https://codecov.io/bash) dep...
matrix: include: - os: linux python: 3.5 - os: linux python: 3.6 - os: linux python: 3.7 env: DEPLOY=yes - os: linux python: 3.8 - os: osx language: generic script: - bash scripts/test.sh after_script: - bash <(curl -s https://codecov.io/bash) deploy: provider: pypi user: timothy...
<|file_sep|>original/.travis.yml matrix: include: - os: linux python: 3.5 - os: linux python: 3.6 - os: linux python: 3.7 env: DEPLOY=yes - os: linux python: 3.8-dev - os: osx language: generic script: - bash scripts/test.sh after_script: - bash <(curl -s https://codecov.io/bash) dep...
abfe3713e162307a5dadb277c19aac0f85dc3ad3
.travis.yml
.travis.yml
YAML
<|file_sep|>original/runSingleTestDebug.sh <|file_sep|>current/runSingleTestDebug.sh <|file_sep|>updated/runSingleTestDebug.sh
set -e # Clean out the .pyc files so that we don't get false positives when we refactor code # find . -name \*.pyc | xargs rm # We can't do this - it looks like the automated test environment doesn't support xargs # Removing emission/tests/storageTests/__init__.pyc # + ./runAllTests.sh # rm: missing operand # Try `rm -...
<|file_sep|>original/runSingleTestDebug.sh <|file_sep|>current/runSingleTestDebug.sh <|file_sep|>updated/runSingleTestDebug.sh set -e # Clean out the .pyc files so that we don't get false positives when we refactor code # find . -name \*.pyc | xargs rm # We can't do this - it looks like the automated test environment...
363739efdf313ca9e2b8505a9ef3ee5281ff208f
runSingleTestDebug.sh
runSingleTestDebug.sh
Shell
<|file_sep|>original/apache/updateDaisyProducer.sh #! /bin/sh # Copyright (C) 2009, 2010, 2011 by Swiss Library for the Blind, Visually Impaired and Print Disabled # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and t...
#! /bin/sh # Copyright (C) 2009, 2010, 2011 by Swiss Library for the Blind, Visually Impaired and Print Disabled # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. case "$1" in production)...
<|file_sep|>original/apache/updateDaisyProducer.sh #! /bin/sh # Copyright (C) 2009, 2010, 2011 by Swiss Library for the Blind, Visually Impaired and Print Disabled # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and t...
fc15f4d29ec7b62ab726870b079f168decafef25
apache/updateDaisyProducer.sh
apache/updateDaisyProducer.sh
Shell
<|file_sep|>original/src/foam/core/ContextAgentRunnable.java public class ContextAgentRunnable implements Runnable { final X x_; final ContextAgent agent_; final String description_; public ContextAgentRunnable(X x, ContextAgent agent, String description) { x_ = x; agent_ = agent; ...
final String description_; public ContextAgentRunnable(X x, ContextAgent agent, String description) { x_ = x; agent_ = agent; description_ = description; } public String toString() { return description_; } public void run() { XLocator.set(x_); try { agent_.execute(x_); ...
<|file_sep|>original/src/foam/core/ContextAgentRunnable.java public class ContextAgentRunnable implements Runnable { final X x_; final ContextAgent agent_; final String description_; public ContextAgentRunnable(X x, ContextAgent agent, String description) { x_ = x; agent_ = agent; ...
df3e3d9524b7f21e36cd01ee9e8b2a0312bfa489
src/foam/core/ContextAgentRunnable.java
src/foam/core/ContextAgentRunnable.java
Java
<|file_sep|>bower.json.diff original: "d2l-colors": "^2.2.0", "d2l-icons": "^2.14.0", "d2l-typography": "^5.1.1", updated: "d2l-colors": "^2.2.2", "d2l-icons": "^2.14.1", "d2l-typography": "^5.1.2", <|file_sep|>original/bower.json "ui", "image-action", "web component", "polymer" ...
"ui", "image-action", "web component", "polymer" ], "ignore": [ ".editorconfig", ".gitignore", ".travis.yml", "package.json" ], "dependencies": { "d2l-colors": "^2.2.2", "d2l-icons": "^2.14.1", "d2l-typography": "^5.1.2", "polymer": "^1.7.0" }, "devDependencie...
<|file_sep|>bower.json.diff original: "d2l-colors": "^2.2.0", "d2l-icons": "^2.14.0", "d2l-typography": "^5.1.1", updated: "d2l-colors": "^2.2.2", "d2l-icons": "^2.14.1", "d2l-typography": "^5.1.2", <|file_sep|>original/bower.json "ui", "image-action", "web component", "polymer" ...
d4a5305634c760a25bbf812f44794eac2d078e58
bower.json
bower.json
JSON
<|file_sep|>original/package.json { "name": "frux", "version": "0.5.0", "description": "Simple wrapper over NuclearJS flux implementation", "main": "./dist/frux.js", "author": "Raul Matei", "license": "Artistic-2.0", "repository": { "type": "git", "url": "https://github.com/raulmatei/frux" }, ...
{ "name": "frux", "version": "0.6.0", "description": "Simple wrapper over NuclearJS flux implementation", "main": "./dist/frux.js", "author": "Raul Matei", "license": "Artistic-2.0", "repository": { "type": "git", "url": "https://github.com/raulmatei/frux" }, "scripts": { "build": "babel s...
<|file_sep|>original/package.json { "name": "frux", "version": "0.5.0", "description": "Simple wrapper over NuclearJS flux implementation", "main": "./dist/frux.js", "author": "Raul Matei", "license": "Artistic-2.0", "repository": { "type": "git", "url": "https://github.com/raulmatei/frux" }, ...
c33de062d65f4f47b90b27cc2451c6e265675f2b
package.json
package.json
JSON
<|file_sep|>original/2017/day25/day25a.pl <|file_sep|>current/2017/day25/day25a.pl <|file_sep|>updated/2017/day25/day25a.pl
#!/usr/bin/perl use strict; use warnings; use feature 'say'; use Algorithm::Combinatorics qw(permutations combinations variations); use Data::Dumper; use Digest::MD5 qw(md5_hex); use File::Slurp; use Graph::Simple; use List::MoreUtils qw(firstval mesh uniq frequency firstidx lastidx pairwise singleton); use List::Ut...
<|file_sep|>original/2017/day25/day25a.pl <|file_sep|>current/2017/day25/day25a.pl <|file_sep|>updated/2017/day25/day25a.pl #!/usr/bin/perl use strict; use warnings; use feature 'say'; use Algorithm::Combinatorics qw(permutations combinations variations); use Data::Dumper; use Digest::MD5 qw(md5_hex); use File::Sl...
8d181d985fbc76027b11ef7e99b6e460079e9877
2017/day25/day25a.pl
2017/day25/day25a.pl
Perl
<|file_sep|>src/java/org/robotframework/RunnerFactory.java.diff original: import org.python.core.PySystemState; updated: <|file_sep|>original/src/java/org/robotframework/RunnerFactory.java * */ public class RunnerFactory { private PyObject runnerClass; public RunnerFactory() { runnerClass = importR...
*/ public class RunnerFactory { private PyObject runnerClass; public RunnerFactory() { runnerClass = importRunnerClass(); } private PyObject importRunnerClass() { PythonInterpreter interpreter = new PythonInterpreter(); interpreter.exec("import robot; from robot.jarrunner imp...
<|file_sep|>src/java/org/robotframework/RunnerFactory.java.diff original: import org.python.core.PySystemState; updated: <|file_sep|>original/src/java/org/robotframework/RunnerFactory.java * */ public class RunnerFactory { private PyObject runnerClass; public RunnerFactory() { runnerClass = importR...
6ef4de473ebf97dadfac790001fe9ce2d674a9de
src/java/org/robotframework/RunnerFactory.java
src/java/org/robotframework/RunnerFactory.java
Java
<|file_sep|>original/pombola/south_africa/templates/core/organisation_detail.html <|file_sep|>current/pombola/south_africa/templates/core/organisation_detail.html <|file_sep|>updated/pombola/south_africa/templates/core/organisation_detail.html
{% extends 'core/organisation_base.html' %} {% load thumbnail %} {% load url from future %} {% load switch %} {% block title %}{{ object.name }}{% endblock %} {# Remove the object_menu #} {% block object_menu_links %} {% endblock object_menu_links %} {% block subcontent %} {% if object.summary %} <h2>Summary<...
<|file_sep|>original/pombola/south_africa/templates/core/organisation_detail.html <|file_sep|>current/pombola/south_africa/templates/core/organisation_detail.html <|file_sep|>updated/pombola/south_africa/templates/core/organisation_detail.html {% extends 'core/organisation_base.html' %} {% load thumbnail %} {% load u...
58223026e3516b38cbdf6ef565bbb62364c7cc0f
pombola/south_africa/templates/core/organisation_detail.html
pombola/south_africa/templates/core/organisation_detail.html
HTML
<|file_sep|>test/test_nap.py.diff original: updated: from mock import MagicMock, patch <|file_sep|>original/test/test_nap.py """Tries to use non-existent HTTP method""" api = Api('') # lambda trickery is necessary, because otherwise it would raise # AttributeError uncontrolled ...
requests.exceptions.MissingSchema: Invalid URL u'/kk': No schema supplied. Perhaps you meant http:///kk? """ api = Api('') self.assertRaises(requests.exceptions.MissingSchema, api.resource.get) def test_resource_not_callable(self): """Make sure resource can't be call...
<|file_sep|>test/test_nap.py.diff original: updated: from mock import MagicMock, patch <|file_sep|>original/test/test_nap.py """Tries to use non-existent HTTP method""" api = Api('') # lambda trickery is necessary, because otherwise it would raise # AttributeError uncontrolled ...
b73b8797c3c9c6c9aa92bd6873e15a5b717f4142
test/test_nap.py
test/test_nap.py
Python
<|file_sep|>original/requirements.txt coverage==4.4.1 coveralls==1.1 cryptography==2.0.3 hyperlink==17.2.1 idna==2.6 incremental==17.5.0 nose==1.3.7 pyasn1==0.2.3 pyasn1-modules==0.0.11 pycparser==2.17 pyOpenSSL==17.0.0 pytest==3.2.1 pytest-cov==2.5.1 service-identity==17.0.0 six==1.10.0 Sphinx==1.6.3 sphinx-rtd-theme=...
coverage==4.4.1 coveralls==1.1 cryptography==2.0.3 hyperlink==17.2.1 idna==2.6 incremental==17.5.0 nose==1.3.7 pyasn1==0.2.3 pyasn1-modules==0.0.11 pycparser==2.17 pyOpenSSL==17.0.0 pytest==3.2.2 pytest-cov==2.5.1 service-identity==17.0.0 six==1.10.0 Sphinx==1.6.3 sphinx-rtd-theme==0.2.4 sphinxcontrib-napoleon==0.6.1 s...
<|file_sep|>original/requirements.txt coverage==4.4.1 coveralls==1.1 cryptography==2.0.3 hyperlink==17.2.1 idna==2.6 incremental==17.5.0 nose==1.3.7 pyasn1==0.2.3 pyasn1-modules==0.0.11 pycparser==2.17 pyOpenSSL==17.0.0 pytest==3.2.1 pytest-cov==2.5.1 service-identity==17.0.0 six==1.10.0 Sphinx==1.6.3 sphinx-rtd-theme=...
35f49f0a041c9a150e8afb92e83eb773f6d2ab06
requirements.txt
requirements.txt
Text
<|file_sep|>original/bug/reachable.sh <|file_sep|>current/bug/reachable.sh <|file_sep|>updated/bug/reachable.sh
#! /bin/bash # echo "create reachable.cpp" cat << EOF > reachable.cpp # include <iostream> # include <vector> # include <cppad/cppad.hpp> # define SHOW_ERROR 1 int main (int argc, char *argv[]) { CppAD::vector< CppAD::AD<double> > x(2); x.resize(0); // vagrind will generate an error message about a reachable b...
<|file_sep|>original/bug/reachable.sh <|file_sep|>current/bug/reachable.sh <|file_sep|>updated/bug/reachable.sh #! /bin/bash # echo "create reachable.cpp" cat << EOF > reachable.cpp # include <iostream> # include <vector> # include <cppad/cppad.hpp> # define SHOW_ERROR 1 int main (int argc, char *argv[]) { CppAD:...
a1dafd45d18c26c0d6fa6e4a6db2da2afe39b088
bug/reachable.sh
bug/reachable.sh
Shell
<|file_sep|>Core/Encoder/PasswordEncoderInterface.php.diff original: updated: use Symfony\Component\Security\Core\Exception\BadCredentialsException; <|file_sep|>Core/Encoder/PasswordEncoderInterface.php.diff original: updated: * * @throws BadCredentialsException If the raw password is invalid, e.g. exces...
* * @return string The encoded password * * @throws BadCredentialsException If the raw password is invalid, e.g. excessively long * @throws \InvalidArgumentException If the salt is invalid */ public function encodePassword($raw, $salt); /** * Checks a raw password against a...
<|file_sep|>Core/Encoder/PasswordEncoderInterface.php.diff original: updated: use Symfony\Component\Security\Core\Exception\BadCredentialsException; <|file_sep|>Core/Encoder/PasswordEncoderInterface.php.diff original: updated: * * @throws BadCredentialsException If the raw password is invalid, e.g. exces...
758c9800a97d0fd08b32b71479e8083d3bb34f3a
Core/Encoder/PasswordEncoderInterface.php
Core/Encoder/PasswordEncoderInterface.php
PHP
<|file_sep|>original/roles/swift-common/meta/main.yml --- dependencies: - role: endpoints - role: monitoring-common - role: logging-config service: swift logdata: "{{ swift.logs }}" - role: openstack-source project_name: swift system_dependencies: "{{ swift.source.system_dependencies }}" py...
--- dependencies: - role: endpoints - role: monitoring-common - role: logging-config service: swift logdata: "{{ swift.logs }}" - role: openstack-source project_name: swift python_dependencies: "{{ swift.source.python_dependencies }}" project_rev: "{{ swift.source.rev }}" alternatives: ...
<|file_sep|>original/roles/swift-common/meta/main.yml --- dependencies: - role: endpoints - role: monitoring-common - role: logging-config service: swift logdata: "{{ swift.logs }}" - role: openstack-source project_name: swift system_dependencies: "{{ swift.source.system_dependencies }}" py...
a650b7d4b5842fbf1bbd2055e10bbe90d5e78f19
roles/swift-common/meta/main.yml
roles/swift-common/meta/main.yml
YAML
<|file_sep|>original/xquery/proiel2treedown.xquery <|file_sep|>current/xquery/proiel2treedown.xquery <|file_sep|>updated/xquery/proiel2treedown.xquery
declare function local:unwrap($t, $stok) { let $children := $stok[@head-id = $t/@id] let $seq := ($children | $t)/. return if ($children) then <wg relation="{$t/@relation}"> { for $s in $seq return if ($s is $t) then $t else local:un...
<|file_sep|>original/xquery/proiel2treedown.xquery <|file_sep|>current/xquery/proiel2treedown.xquery <|file_sep|>updated/xquery/proiel2treedown.xquery declare function local:unwrap($t, $stok) { let $children := $stok[@head-id = $t/@id] let $seq := ($children | $t)/. return if ($children) then <w...
f18fa5087a695f5918509197e3747c2b2c60be27
xquery/proiel2treedown.xquery
xquery/proiel2treedown.xquery
XQuery
<|file_sep|>api.sh.diff original: export PERL5LIB=./modules/perl updated: export PERL5LIB=$(pwd)/modules/perl <|file_sep|>api.sh.diff original: morbo -l http://localhost:3304 ./web/services/api.pl >> ./api.log 2>&1 & echo "Started API" updated: port=$(grep MOJOLICIOUS_PORT ./coge.conf | cut -d ' ' -...
# hypnotoad -f ./web/services/api.pl >> ./api.log 2>&1 & # ./web/services/api.pl daemon -l http://localhost:3304 >> ./api.log 2>&1 & port=$(grep MOJOLICIOUS_PORT ./coge.conf | cut -d ' ' -f 2) morbo -w $PERL5LIB -l http://localhost:$port ./web/services/api.pl >> ./api.log 2>&1 & echo "Started API (por...
<|file_sep|>api.sh.diff original: export PERL5LIB=./modules/perl updated: export PERL5LIB=$(pwd)/modules/perl <|file_sep|>api.sh.diff original: morbo -l http://localhost:3304 ./web/services/api.pl >> ./api.log 2>&1 & echo "Started API" updated: port=$(grep MOJOLICIOUS_PORT ./coge.conf | cut -d ' ' -...
9d5ff5db98e25255ca51127fc2111184198b09ca
api.sh
api.sh
Shell
<|file_sep|>original/public/index.html <!DOCTYPE html> <html> <head> <title>Clementine.js - The elegant and lightweight full stack JavaScript boilerplate.</title> <link href="/public/css/main.css" rel="stylesheet" type="text/css"> </head> <header> <p>Welcome, <span id="display-name"></span>!</p> <a cla...
<!DOCTYPE html> <html> <head> <title>Clementine.js - The elegant and lightweight full stack JavaScript boilerplate. GITHUB MASTER</title> <link href="/public/css/main.css" rel="stylesheet" type="text/css"> </head> <header> <p>Welcome, <span id="display-name"></span>!</p> <a class="menu" href="/profile"...
<|file_sep|>original/public/index.html <!DOCTYPE html> <html> <head> <title>Clementine.js - The elegant and lightweight full stack JavaScript boilerplate.</title> <link href="/public/css/main.css" rel="stylesheet" type="text/css"> </head> <header> <p>Welcome, <span id="display-name"></span>!</p> <a cla...
7fb7f9cc4a477044786072a45e3d82201801e237
public/index.html
public/index.html
HTML
<|file_sep|>yolapy/models/site.py.diff original: self.fields = kwargs updated: self._fields = kwargs <|file_sep|>original/yolapy/models/site.py class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val ...
class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self._fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): return self._fields == other._fields @classmethod def ...
<|file_sep|>yolapy/models/site.py.diff original: self.fields = kwargs updated: self._fields = kwargs <|file_sep|>original/yolapy/models/site.py class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val ...
05f95bae2c04cb07739b220df1a60577016a1f53
yolapy/models/site.py
yolapy/models/site.py
Python
<|file_sep|>original/rest_api/server.js res.json({message: 'Hello World!'}); }) router.route('/painting') .get(function(req, res){ fs.readFile("assets/data/opere_colori.csv", "utf-8", function(error, opere){ if(error) res.send(error); data = dsv.parse(opere); res.json(data); }) }); //...
if(error) res.send(error); data = dsv.parse(opere); res.json(data); }) }); router.route('/painting/byauthor/:author') .get(function(req, res){ fs.readFile("assets/data/opere_colori.csv", "utf-8", function(error, opere){ if(error) res.send(error); data = dsv.parse(opere); ...
<|file_sep|>original/rest_api/server.js res.json({message: 'Hello World!'}); }) router.route('/painting') .get(function(req, res){ fs.readFile("assets/data/opere_colori.csv", "utf-8", function(error, opere){ if(error) res.send(error); data = dsv.parse(opere); res.json(data); }) }); //...
e27bb4cd3a4d0f30090e1cdd7c977fa270924a51
rest_api/server.js
rest_api/server.js
JavaScript
<|file_sep|>azure-windows-py27.yml.diff original: updated: conda remove -y tbb tbb-devel <|file_sep|>original/azure-windows-py27.yml - powershell: | $wc = New-Object net.webclient $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPyth...
- powershell: | $wc = New-Object net.webclient $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi") Start-Process "VCForPython27.msi" /qn -Wait displayName: 'Install VC 9.0' - script: | ...
<|file_sep|>azure-windows-py27.yml.diff original: updated: conda remove -y tbb tbb-devel <|file_sep|>original/azure-windows-py27.yml - powershell: | $wc = New-Object net.webclient $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPyth...
2e0c9c229310a0973f233c92c5cb96c684aadf84
azure-windows-py27.yml
azure-windows-py27.yml
YAML
<|file_sep|>original/artists/tests/test_serializers.py <|file_sep|>current/artists/tests/test_serializers.py <|file_sep|>updated/artists/tests/test_serializers.py
from unittest import TestCase from ..models import Artist, Hyperlink from ..serializers import ArtistSerializer, HyperlinkSerializer class HyperlinkSerializerTest(TestCase): """Tests for Hyperlink serializer.""" def test_valid_fields(self): id_ = 4 name = 'jamendo' display_name = "J...
<|file_sep|>original/artists/tests/test_serializers.py <|file_sep|>current/artists/tests/test_serializers.py <|file_sep|>updated/artists/tests/test_serializers.py from unittest import TestCase from ..models import Artist, Hyperlink from ..serializers import ArtistSerializer, HyperlinkSerializer class HyperlinkSeri...
25c2502fce4556b5b72e96116745c83d1689677f
artists/tests/test_serializers.py
artists/tests/test_serializers.py
Python
<|file_sep|>original/lib/results/why.rb require 'results/why/base' require 'results/why/one' require 'results/why/many' require 'results/why/named' module Results module_function # Wraps `arg` in a `Why` by calling the appropriate constructor. def Why(arg) case arg when Because then Why::One.new(arg) ...
require 'results/why/base' require 'results/why/one' require 'results/why/many' require 'results/why/named' module Results module_function # Wraps `becauses` into the appropriate `Why` depending on its type: `One`, `Many`, or `Named`. # @param [Because, Array<Because>, Hash<Object, Because>] becauses one or mo...
<|file_sep|>original/lib/results/why.rb require 'results/why/base' require 'results/why/one' require 'results/why/many' require 'results/why/named' module Results module_function # Wraps `arg` in a `Why` by calling the appropriate constructor. def Why(arg) case arg when Because then Why::One.new(arg) ...
75263825832396f9d8f7d4ed03551781dd910c20
lib/results/why.rb
lib/results/why.rb
Ruby
<|file_sep|>original/_sass/_sidenav.scss .sidenav { margin-top: 2em; min-height: 30em; } .usa-sidenav-list li:first-child { border-top: 0; } .usa-sidenav-list a { color: $text-color; font-family: 'Lato', sans-serif; } .usa-sidenav-list a.usa-current-page { border-color: $text-color; color: $text-color; ...
.sidenav { margin-top: 2em; min-height: 30em; } .usa-width-three-fourths > h1 { margin-top: 0; } .usa-sidenav-list li:first-child { border-top: 0; } .usa-sidenav-list a { color: $text-color; font-family: 'Lato', sans-serif; } .usa-sidenav-list a.usa-current-page { border-color: $text-color; color: $text...
<|file_sep|>original/_sass/_sidenav.scss .sidenav { margin-top: 2em; min-height: 30em; } .usa-sidenav-list li:first-child { border-top: 0; } .usa-sidenav-list a { color: $text-color; font-family: 'Lato', sans-serif; } .usa-sidenav-list a.usa-current-page { border-color: $text-color; color: $text-color; ...
b53f9e06b605b86f4e651268e10d354638a21b22
_sass/_sidenav.scss
_sass/_sidenav.scss
SCSS
<|file_sep|>src/game.rs.diff original: const top_left_cell: Position = Position{column: 0_usize, row: 0_usize}; updated: const TOP_LEFT_CELL: Position = Position{column: 0_usize, row: 0_usize}; <|file_sep|>original/src/game.rs pub struct Game { pub state: GameState, pub graph: Graph, } const top_left_cell: Pos...
pub struct Game { pub state: GameState, pub graph: Graph, } const TOP_LEFT_CELL: Position = Position{column: 0_usize, row: 0_usize}; impl Game { pub fn create(size: usize) -> Self { let grid = Grid::generate(size); let graph = Graph::create(&grid); Self { state: GameSta...
<|file_sep|>src/game.rs.diff original: const top_left_cell: Position = Position{column: 0_usize, row: 0_usize}; updated: const TOP_LEFT_CELL: Position = Position{column: 0_usize, row: 0_usize}; <|file_sep|>original/src/game.rs pub struct Game { pub state: GameState, pub graph: Graph, } const top_left_cell: Pos...
cc2998731f9a40bf79126ca802c6d3aff955586d
src/game.rs
src/game.rs
Rust
<|file_sep|>original/python27/requirements.txt # Required packages for synapse tornado==4.5.2 cryptography==2.0.3 pyOpenSSL==17.3.0 msgpack-python==0.4.8 xxhash==1.0.1 lmdb==0.93 # Delayed import psycopg2==2.7.3.1 # Code style checks pycodestyle==2.3.1 # Test related packages coverage==4.3.4 # pyup: ignore codecov==2....
# Required packages for synapse tornado==4.5.2 cryptography==2.0.3 pyOpenSSL==17.3.0 msgpack-python==0.4.8 xxhash==1.0.1 lmdb==0.93 # Delayed import psycopg2==2.7.3.1 # Code style checks pycodestyle==2.3.1 # Test related packages coverage==4.3.4 # pyup: ignore codecov==2.0.9 pytest==3.2.2 pytest-cov==2.5.1 # Legacy te...
<|file_sep|>original/python27/requirements.txt # Required packages for synapse tornado==4.5.2 cryptography==2.0.3 pyOpenSSL==17.3.0 msgpack-python==0.4.8 xxhash==1.0.1 lmdb==0.93 # Delayed import psycopg2==2.7.3.1 # Code style checks pycodestyle==2.3.1 # Test related packages coverage==4.3.4 # pyup: ignore codecov==2....
cce27a1eed065bd54ddc6a6040ea4c3dee910c05
python27/requirements.txt
python27/requirements.txt
Text