prompt
stringlengths
77
6.9k
completion
stringlengths
1
3.38k
text
stringlengths
163
9.03k
commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
lang
stringclasses
277 values
<|file_sep|>original/.github/workflows/ci.yml on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [8.x, 10.x, 12.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: ...
on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} ...
<|file_sep|>original/.github/workflows/ci.yml on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [8.x, 10.x, 12.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: ...
ceed2e036cd34a074ef7f6f13d6326f96f638dfb
.github/workflows/ci.yml
.github/workflows/ci.yml
YAML
<|file_sep|>.binstar.yml.diff original: user: tswicegood updated: user: conda <|file_sep|>.binstar.yml.diff original: # - linux-32 updated: - linux-32 <|file_sep|>.binstar.yml.diff original: updated: - win-32 - win-64 <|file_sep|>.binstar.yml.diff original: updated: # Can't test on binstar because it needs to...
package: conda-env user: conda platform: - linux-32 - linux-64 - win-32 - win-64 # - osx-64 engine: - python=2 # Can't test on binstar because it needs to be installed in root script: - conda build --no-test ./conda.recipe/ build_targets: conda
<|file_sep|>.binstar.yml.diff original: user: tswicegood updated: user: conda <|file_sep|>.binstar.yml.diff original: # - linux-32 updated: - linux-32 <|file_sep|>.binstar.yml.diff original: updated: - win-32 - win-64 <|file_sep|>.binstar.yml.diff original: updated: # Can't test on binstar because it needs to...
c66d43dc58857162c2e9c406075e55cc986f7163
.binstar.yml
.binstar.yml
YAML
<|file_sep|>original/Gruntfile.coffee src: ['**/*.coffee'] dest: 'js/' ext: '.js' uglify: options: banner: '<%= meta.banner %>' dist: files: 'js/uTip.min.js': ['js/uTip.js'] watc...
src: ['**/*.coffee'] dest: 'js/' ext: '.js' uglify: options: banner: '<%= meta.banner %>' dist: files: 'js/uTip.min.js': ['js/uTip.js'] watch: files: 'coffee/**/*.cof...
<|file_sep|>original/Gruntfile.coffee src: ['**/*.coffee'] dest: 'js/' ext: '.js' uglify: options: banner: '<%= meta.banner %>' dist: files: 'js/uTip.min.js': ['js/uTip.js'] watc...
4bde2696a6f04e4c521a60db7276759f1b414eea
Gruntfile.coffee
Gruntfile.coffee
CoffeeScript
<|file_sep|>original/config/config.symlink/fish/functions/fish_prompt.fish function fish_prompt test $SSH_TTY and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' ' test "$USER" = 'root' and echo (set_color red)"#" # Main echo -n (set_color cyan)(prompt_pwd) (s...
function fish_prompt test $SSH_TTY and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' ' test "$USER" = 'root' and echo (set_color red)"#" # Main echo -n (set_color cyan)(prompt_pwd)(__fish_vcs_prompt) (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯...
<|file_sep|>original/config/config.symlink/fish/functions/fish_prompt.fish function fish_prompt test $SSH_TTY and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' ' test "$USER" = 'root' and echo (set_color red)"#" # Main echo -n (set_color cyan)(prompt_pwd) (s...
4376e78672aad1a7fcc444cd161f62d0a70481d3
config/config.symlink/fish/functions/fish_prompt.fish
config/config.symlink/fish/functions/fish_prompt.fish
fish
<|file_sep|>original/update-modules.perl6.org <|file_sep|>current/update-modules.perl6.org <|file_sep|>updated/update-modules.perl6.org
#!/bin/bash . /home/modules.perl6.org/perl5/perlbrew/etc/bashrc echo 'Starting module update' date cd ~/modules.perl6.org/ git pull -q -n DO_REBUILD=0 if [[ `git log -1 --oneline` =~ '[REBUILD]' ]]; then DO_REBUILD=1 fi log_file=$(mktemp); FULL_REBUILD=$DO_REBUILD perl bin/build-project-list.pl --restart-app > $log...
<|file_sep|>original/update-modules.perl6.org <|file_sep|>current/update-modules.perl6.org <|file_sep|>updated/update-modules.perl6.org #!/bin/bash . /home/modules.perl6.org/perl5/perlbrew/etc/bashrc echo 'Starting module update' date cd ~/modules.perl6.org/ git pull -q -n DO_REBUILD=0 if [[ `git log -1 --oneline` =~...
b480f73df51aaa7e0412c8159c044329b30ef934
update-modules.perl6.org
update-modules.perl6.org
Org
<|file_sep|>.forestry/front_matter/templates/default.yml.diff original: updated: - _posts/try.md <|file_sep|>original/.forestry/front_matter/templates/default.yml --- pages: - _posts/2018-04-29-sending-proactive-messaging-in-chatbot-using-microsoft-bot-framework.md hide_body: false is_partial: false fields: - name: ti...
--- pages: - _posts/try.md - _posts/2018-04-29-sending-proactive-messaging-in-chatbot-using-microsoft-bot-framework.md hide_body: false is_partial: false fields: - name: title label: Title type: text hidden: false default: Tech Talk - type: tag_list default: - tags - type: text name: comments label: com...
<|file_sep|>.forestry/front_matter/templates/default.yml.diff original: updated: - _posts/try.md <|file_sep|>original/.forestry/front_matter/templates/default.yml --- pages: - _posts/2018-04-29-sending-proactive-messaging-in-chatbot-using-microsoft-bot-framework.md hide_body: false is_partial: false fields: - name: ti...
981b5f603b8db59308ef0f4340e9903f4de954e6
.forestry/front_matter/templates/default.yml
.forestry/front_matter/templates/default.yml
YAML
<|file_sep|>original/_config.yml # For more see: https://github.com/mojombo/jekyll/wiki/Permalinks permalink: /:categories/:year/:month/:day/:title auto: true pygments: true var: archive_path: /archive.html categories_path : /categories.html tags_path : /tags.html rss_path: /atom.xml production_url : http://u...
title : Jekyll Bootstrap author : name : Name Lastname email : blah@email.test github : username twitter : username feedburner : feedname exclude: [".rbenv-version", "README.md", "Rakefile"] # Jekyll-Bootstrap configurations JB : comments : engine : disqus disqus : short_name : jekyllbootst...
<|file_sep|>original/_config.yml # For more see: https://github.com/mojombo/jekyll/wiki/Permalinks permalink: /:categories/:year/:month/:day/:title auto: true pygments: true var: archive_path: /archive.html categories_path : /categories.html tags_path : /tags.html rss_path: /atom.xml production_url : http://u...
3e15787bc3ff84e86f2f45e5864a90c9614b3660
_config.yml
_config.yml
YAML
<|file_sep|>original/resources/assets/sass/modules/app/layouts/auth/_sidebar.scss } .icon { position: relative; left: -5px; float: left; display: inline-block; width: 20px; text-align: center; } .badge-label { float: right; } .panel-heading { background-color: darken($pa...
left: -5px; float: left; display: inline-block; width: 20px; text-align: center; } .badge-label { float: right; } .panel-heading { background-color: darken($panel-default-heading-bg, 5%); } .panel + .panel { margin-top: 32px; } }
<|file_sep|>original/resources/assets/sass/modules/app/layouts/auth/_sidebar.scss } .icon { position: relative; left: -5px; float: left; display: inline-block; width: 20px; text-align: center; } .badge-label { float: right; } .panel-heading { background-color: darken($pa...
2080978f5d48aeca743a691182be9828eb1a4bf8
resources/assets/sass/modules/app/layouts/auth/_sidebar.scss
resources/assets/sass/modules/app/layouts/auth/_sidebar.scss
SCSS
<|file_sep|>original/recipes/gemmi/meta.yaml sha256: aa6eb56202c6c624b587c95bde20bc48e505fe4e4a58a8516009c62f1a9f7535 build: number: 0 skip: true # [win and py27] requirements: build: - {{ compiler('cxx') }} - cmake host: - python - pip - pybind11 - zlib run: - python - z...
sha256: aa6eb56202c6c624b587c95bde20bc48e505fe4e4a58a8516009c62f1a9f7535 build: number: 0 skip: true # [win and py27] requirements: build: - {{ compiler('cxx') }} - cmake - ninja # [win] host: - python - pip - pybind11 - zlib run: - python - zlib test:
<|file_sep|>original/recipes/gemmi/meta.yaml sha256: aa6eb56202c6c624b587c95bde20bc48e505fe4e4a58a8516009c62f1a9f7535 build: number: 0 skip: true # [win and py27] requirements: build: - {{ compiler('cxx') }} - cmake host: - python - pip - pybind11 - zlib run: - python - z...
a5155d730332c50db83dc843bf5ca93f266b76c0
recipes/gemmi/meta.yaml
recipes/gemmi/meta.yaml
YAML
<|file_sep|>hittop/parser/parser.h.diff original: updated: #include "boost/range/as_literal.hpp" <|file_sep|>original/hittop/parser/parser.h /// The form of a Parser class. There is no generic implementation of Parser, /// only partial and full specializations that define how to parse specific /// grammars. templat...
/// the given input range. Allows the invocation operator defined on /// Parser<Grammer> to be non-const, as the parser instance created within this /// function is itself non-const. template <typename Grammar, typename Range> auto Parse(const Range &input) -> decltype(std::declval<Parser<Grammar>>()(input)) { P...
<|file_sep|>hittop/parser/parser.h.diff original: updated: #include "boost/range/as_literal.hpp" <|file_sep|>original/hittop/parser/parser.h /// The form of a Parser class. There is no generic implementation of Parser, /// only partial and full specializations that define how to parse specific /// grammars. templat...
2cd50fa07e9364b98c99643a006fdea5e079ff31
hittop/parser/parser.h
hittop/parser/parser.h
C
<|file_sep|>playbooks/common/openshift-cluster/upgrades/files/versions.sh.diff original: yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | tr '\n' ' ') updated: yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | sort -r | tr '\n' ' ') <|file_s...
#!/bin/bash yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | sort -r | tr '\n' ' ') yum_available=$(yum list available -e 0 -q "$@" 2>&1 | tail -n +2 | grep -v 'el7ose' | awk '{ print $2 }' | sort -r | tr '\n' ' ') echo "---" echo "curr_version: ${yum_installed}" echo "avail_v...
<|file_sep|>playbooks/common/openshift-cluster/upgrades/files/versions.sh.diff original: yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | tr '\n' ' ') updated: yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | sort -r | tr '\n' ' ') <|file_s...
f8d11d94210e3677a70091b4146da445d557b615
playbooks/common/openshift-cluster/upgrades/files/versions.sh
playbooks/common/openshift-cluster/upgrades/files/versions.sh
Shell
<|file_sep|>original/.travis.yml sudo: false language: go go: - "1.10" - "1.11" - "1.12" matrix: allow_failures: - go: master fast_finish: true script: - go get -t -v ./... - diff -u <(echo -n) <(gofmt -d -s .) - go generate -x ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code) ...
sudo: false language: go go: - "1.13" - "1.14" - "1.15" matrix: allow_failures: - go: master fast_finish: true script: - go get -t -v ./... - diff -u <(echo -n) <(gofmt -d -s .) - go generate -x ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code) # Check that go generate ./... pr...
<|file_sep|>original/.travis.yml sudo: false language: go go: - "1.10" - "1.11" - "1.12" matrix: allow_failures: - go: master fast_finish: true script: - go get -t -v ./... - diff -u <(echo -n) <(gofmt -d -s .) - go generate -x ./... && git diff --exit-code; code=$?; git checkout -- .; (exit $code) ...
e171a6cec8e535b78bc7a91e14931d47e8ab71c1
.travis.yml
.travis.yml
YAML
<|file_sep|>original/lib/puppet/functions/pacemaker_bundle_replicas.rb # Input is the name of a pacemaker bundle resource # Output is the number of replicas for that resource or 0 if not found Puppet::Functions.create_function(:'pacemaker_bundle_replicas') do dispatch :pacemaker_bundle_replicas do param 'String',...
# Output is the number of replicas for that resource or 0 if not found Puppet::Functions.create_function(:'pacemaker_bundle_replicas') do dispatch :pacemaker_bundle_replicas do param 'String', :bundle return_type 'Integer' end def pacemaker_bundle_replicas(bundle) # the name of the node holding the r...
<|file_sep|>original/lib/puppet/functions/pacemaker_bundle_replicas.rb # Input is the name of a pacemaker bundle resource # Output is the number of replicas for that resource or 0 if not found Puppet::Functions.create_function(:'pacemaker_bundle_replicas') do dispatch :pacemaker_bundle_replicas do param 'String',...
256d677dc74a96a2004213189730e6e0b9bbd195
lib/puppet/functions/pacemaker_bundle_replicas.rb
lib/puppet/functions/pacemaker_bundle_replicas.rb
Ruby
<|file_sep|>original/Casks/protege.rb cask 'protege' do version '5.0.0' sha256 'cc5dc98cb41a59fb86a710a61249437f1f9d1b4b79eb989b1ff5055df0722540' # https://github.com/protegeproject/protege-distribution was verified as official when first introduced to the cask url "https://github.com/protegeproject/protege-di...
cask 'protege' do version '5.0.0' sha256 'cc5dc98cb41a59fb86a710a61249437f1f9d1b4b79eb989b1ff5055df0722540' # github.com/protegeproject/protege-distribution was verified as official when first introduced to the cask url "https://github.com/protegeproject/protege-distribution/releases/download/protege-#{version...
<|file_sep|>original/Casks/protege.rb cask 'protege' do version '5.0.0' sha256 'cc5dc98cb41a59fb86a710a61249437f1f9d1b4b79eb989b1ff5055df0722540' # https://github.com/protegeproject/protege-distribution was verified as official when first introduced to the cask url "https://github.com/protegeproject/protege-di...
4dce36c3dfcc25b9de4089e058899ea5110dcd8a
Casks/protege.rb
Casks/protege.rb
Ruby
<|file_sep|>original/README.md ![TEDxJMI logo](res/images/logos/light.png) Event website for TEDxJMI. <|file_sep|>current/README.md ![TEDxJMI logo](res/images/logos/light.png) Event website for TEDxJMI. <|file_sep|>updated/README.md
![TEDxJMI logo](res/images/logos/light.png) > Event website for TEDxJMI 2017 ## Screenshot ![screenshot-2018-1-16 tedxjmi](https://user-images.githubusercontent.com/11466676/34989795-e0b351e2-fae9-11e7-95ea-d42b85d4b6cd.jpg) ## License This project is licensed under the terms of the [MIT license](LICENSE).
<|file_sep|>original/README.md ![TEDxJMI logo](res/images/logos/light.png) Event website for TEDxJMI. <|file_sep|>current/README.md ![TEDxJMI logo](res/images/logos/light.png) Event website for TEDxJMI. <|file_sep|>updated/README.md ![TEDxJMI logo](res/images/logos/light.png) > Event website for TEDxJMI 2017 ## Scr...
f07833e9d699d2342687df798ac15a3f19543891
README.md
README.md
Markdown
<|file_sep|>original/README.markdown # node-stringprep # [![Build Status](https://travis-ci.org/node-xmpp/node-stringprep.png)](https://travis-ci.org/node-xmpp/node-stringprep) [Flattr this!](https://flattr.com/thing/44598/node-stringprep) ## Manual Please see the `node-xmpp` manual for more information, http://nod...
# node-stringprep # [![Build Status](https://travis-ci.org/node-xmpp/node-stringprep.png)](https://travis-ci.org/node-xmpp/node-stringprep) [Flattr this!](https://flattr.com/thing/44598/node-stringprep) ## Manual Please see the `node-xmpp` manual for more information, http://node-xmpp.github.io/doc/nodestringprep.h...
<|file_sep|>original/README.markdown # node-stringprep # [![Build Status](https://travis-ci.org/node-xmpp/node-stringprep.png)](https://travis-ci.org/node-xmpp/node-stringprep) [Flattr this!](https://flattr.com/thing/44598/node-stringprep) ## Manual Please see the `node-xmpp` manual for more information, http://nod...
17e0e10908683ab64a0dc3ec815ce678455e7ffb
README.markdown
README.markdown
Markdown
<|file_sep|>original/tox.ini [tox] envlist = py26, py27, py33, py34 [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pronouncingpy commands = python setup.py test deps = -r{toxinidir}/requirements.txt <|file_sep|>current/tox.ini [tox] envlist = py26, py27, py33, py34 [testenv] setenv = PYTHONPATH =...
[tox] envlist = py26, py27, py32, py33, py34, pypy, pypy3 [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pronouncingpy commands = python setup.py test deps = -r{toxinidir}/requirements.txt
<|file_sep|>original/tox.ini [tox] envlist = py26, py27, py33, py34 [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pronouncingpy commands = python setup.py test deps = -r{toxinidir}/requirements.txt <|file_sep|>current/tox.ini [tox] envlist = py26, py27, py33, py34 [testenv] setenv = PYTHONPATH =...
b7264430e83c100f0b2727a87cacf05c784e5fd4
tox.ini
tox.ini
INI
<|file_sep|>original/app/assets/javascripts/application.js // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of p...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
<|file_sep|>original/app/assets/javascripts/application.js // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of p...
65792cdafa5930d653bd93ba49e08da4581b4a5b
app/assets/javascripts/application.js
app/assets/javascripts/application.js
JavaScript
<|file_sep|>original/src/common.h // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #define UNLIKELY(x) __builtin_expect((x), 0) #define LIKELY(x) __builtin_expect((x), 1...
#define UNLIKELY(x) __builtin_expect((x), 0) #define LIKELY(x) __builtin_expect((x), 1) #define cache_aligned __attribute__((aligned(64))) #define always_inline inline __attribute__((always_inline)) #define no_inline __attribute__((noinline)) const size_t kSystemPageSize = 4096; // Prohibit reordering of inst...
<|file_sep|>original/src/common.h // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_COMMON_H_ #define SCALLOC_COMMON_H_ #define UNLIKELY(x) __builtin_expect((x), 0) #define LIKELY(x) __builtin_expect((x), 1...
6346f9be0ecd911c67e523d8eb765bf84cd1dea6
src/common.h
src/common.h
C
<|file_sep|>original/requirements_dev.txt Sphinx==1.4.5 boto==2.42.0 bumpversion==0.5.3 coverage==4.2 flake8==3.0.4 pytest-cov==2.3.1 pytest==2.9.2 requests==2.11.0 responses==0.5.1 sphinx-rtd-theme==0.1.9 tox==2.3.1 twine==1.8.1 watchdog==0.8.3 <|file_sep|>current/requirements_dev.txt Sphinx==1.4.5 boto==2.42.0 bumpve...
Sphinx==1.4.5 boto==2.42.0 bumpversion==0.5.3 coverage==4.2 flake8==3.0.4 pytest-cov==2.3.1 pytest==2.9.2 requests==2.11.1 responses==0.5.1 sphinx-rtd-theme==0.1.9 tox==2.3.1 twine==1.8.1 watchdog==0.8.3
<|file_sep|>original/requirements_dev.txt Sphinx==1.4.5 boto==2.42.0 bumpversion==0.5.3 coverage==4.2 flake8==3.0.4 pytest-cov==2.3.1 pytest==2.9.2 requests==2.11.0 responses==0.5.1 sphinx-rtd-theme==0.1.9 tox==2.3.1 twine==1.8.1 watchdog==0.8.3 <|file_sep|>current/requirements_dev.txt Sphinx==1.4.5 boto==2.42.0 bumpve...
fa2b28e72c915d8bff8242c493a2c6d03ba4f6f2
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>original/encrypt.py from PIL import Image import stepic import sys import os from moviepy.editor import * import moviepy.editor as mpy from moviepy.editor import VideoFileClip os.chdir("videos") def encrypt_video(filename, userinfo): # Orignal Video original = VideoFileClip(filename+".mp4") t0 = 56 ...
from PIL import Image import stepic import sys import os from moviepy.editor import * import moviepy.editor as mpy from moviepy.editor import VideoFileClip os.chdir("videos") def encrypt_video(filename, userinfo): # Orignal Video original = VideoFileClip(filename+".mp4") t0 = 56 first_half = VideoFileClip(filen...
<|file_sep|>original/encrypt.py from PIL import Image import stepic import sys import os from moviepy.editor import * import moviepy.editor as mpy from moviepy.editor import VideoFileClip os.chdir("videos") def encrypt_video(filename, userinfo): # Orignal Video original = VideoFileClip(filename+".mp4") t0 = 56 ...
9691ff0a1fa5fee4895cc5cff33ca169498dbbc6
encrypt.py
encrypt.py
Python
<|file_sep|>src/partials/recipe-list.html.diff original: <div ng-repeat="recipe in recipes | orderBy: 'id'"> updated: <input placeholder="Filter Recipes" ng-model="query"></> <div ng-repeat="recipe in recipes | orderBy: 'id' | filter:query"> <|file_sep|>original/src/partials/recipe-list.html <a href="#/users/{{usernam...
<a href="#/users/{{username}}/recipes/new"><button>Create new recipe</button></a> <input placeholder="Filter Recipes" ng-model="query"></> <div ng-repeat="recipe in recipes | orderBy: 'id' | filter:query"> <br> <a href="#users/{{username}}/recipes/{{recipe.id}}">{{recipe.title}}</a> <br> Bean: {{recipe.bean_n...
<|file_sep|>src/partials/recipe-list.html.diff original: <div ng-repeat="recipe in recipes | orderBy: 'id'"> updated: <input placeholder="Filter Recipes" ng-model="query"></> <div ng-repeat="recipe in recipes | orderBy: 'id' | filter:query"> <|file_sep|>original/src/partials/recipe-list.html <a href="#/users/{{usernam...
4080eb6c12f5063c31615b382a731521a462671f
src/partials/recipe-list.html
src/partials/recipe-list.html
HTML
<|file_sep|>original/.travis.yml language: ruby rvm: - "2.2.5" - "2.3.1" env: - 'RAILS_VERSION="~> 3.2.0"' - 'RAILS_VERSION="~> 4.0.0"' - 'RAILS_VERSION="~> 4.1.0"' - 'RAILS_VERSION="~> 4.2.0"' - 'RAILS_VERSION="~> 5.0.0"' - 'RAILS_VERSION="= 5.1.4"' - 'RAILS_VERSION="= 5.1.5"' - 'RAILS_VERSION="~> ...
language: ruby rvm: - "2.3.7" - "2.4.4" - "2.5.1" env: - 'RAILS_VERSION="~> 3.2.0"' - 'RAILS_VERSION="~> 4.0.0"' - 'RAILS_VERSION="~> 4.1.0"' - 'RAILS_VERSION="~> 4.2.0"' - 'RAILS_VERSION="~> 5.0.0"' - 'RAILS_VERSION="= 5.1.4"' - 'RAILS_VERSION="= 5.1.5"' - 'RAILS_VERSION="~> 5.1.5"' - 'RAILS_VE...
<|file_sep|>original/.travis.yml language: ruby rvm: - "2.2.5" - "2.3.1" env: - 'RAILS_VERSION="~> 3.2.0"' - 'RAILS_VERSION="~> 4.0.0"' - 'RAILS_VERSION="~> 4.1.0"' - 'RAILS_VERSION="~> 4.2.0"' - 'RAILS_VERSION="~> 5.0.0"' - 'RAILS_VERSION="= 5.1.4"' - 'RAILS_VERSION="= 5.1.5"' - 'RAILS_VERSION="~> ...
bd5b87a4530921aaa6b9915a580c26aa040678bb
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.0 <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.0 <|file_sep|>updated/.travis.yml
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.1
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.0 <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.0 <|file_sep|>updated/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.1
a3215d21823e200b39775dd60802d975f967f663
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/controller.rb github_values = metrics.values github_values.delete(:id) github_values.delete(:pod_id) github_values.delete(:not_found) unless params[:debug] return { :github => github_values }.to_json end end end {}.to_json ...
github_values = metrics.values github_values.delete(:id) github_values.delete(:pod_id) github_values.delete(:not_found) unless params[:debug] return { :github => github_values }.to_json end end end {}.to_json end post "/api/v1/pods/:name/res...
<|file_sep|>original/app/controller.rb github_values = metrics.values github_values.delete(:id) github_values.delete(:pod_id) github_values.delete(:not_found) unless params[:debug] return { :github => github_values }.to_json end end end {}.to_json ...
70479e89505f4931fad1a282f03eaa6e87ddfffe
app/controller.rb
app/controller.rb
Ruby
<|file_sep|>ch06/12_generator-basics/01_fibonacci-sequence.js.diff original: var older = 1; var old = 0; updated: var older = 0; var old = 1; <|file_sep|>ch06/12_generator-basics/01_fibonacci-sequence.js.diff original: updated: var next = older + old; <|file_sep|>ch06/12_generator-basics/01_fibonacci-seque...
function* fibonacci () { var older = 0; var old = 1; while (true) { yield old + older; var next = older + old; older = old; old = next; } } var iterator = fibonacci(); var i = 10; while (i--) { console.log(iterator.next().value); } // <- [1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
<|file_sep|>ch06/12_generator-basics/01_fibonacci-sequence.js.diff original: var older = 1; var old = 0; updated: var older = 0; var old = 1; <|file_sep|>ch06/12_generator-basics/01_fibonacci-sequence.js.diff original: updated: var next = older + old; <|file_sep|>ch06/12_generator-basics/01_fibonacci-seque...
3ccf2018dd320d7e66ef952f3109dfb0516f9cc0
ch06/12_generator-basics/01_fibonacci-sequence.js
ch06/12_generator-basics/01_fibonacci-sequence.js
JavaScript
<|file_sep|>original/requirements.txt fake-factory==0.5.7 iso3166==0.8 jsonschema==4.5.1 <|file_sep|>current/requirements.txt fake-factory==0.5.7 iso3166==0.8 jsonschema==4.5.1 <|file_sep|>updated/requirements.txt
fake-factory==0.5.7 iso3166==0.8 jsonschema==4.0.0
<|file_sep|>original/requirements.txt fake-factory==0.5.7 iso3166==0.8 jsonschema==4.5.1 <|file_sep|>current/requirements.txt fake-factory==0.5.7 iso3166==0.8 jsonschema==4.5.1 <|file_sep|>updated/requirements.txt fake-factory==0.5.7 iso3166==0.8 jsonschema==4.0.0
e25706e351aa8da2cd88ca69a93223f09559f94c
requirements.txt
requirements.txt
Text
<|file_sep|>original/README.md # nagios-plugin-check\_amqp1.0 Nagios NRPE and "regular" check for checking the AMQP 1.0 connection to a message queue/broker/server (like RabbitMQs check aliveness does). It supports SSL/TLS connections as well. ## Installation Depending on your distro you might need to install the `p...
# nagios-plugin-check\_amqp1.0 Nagios NRPE and "regular" check for checking the AMQP 1.0 connection to a message queue/broker/server (like RabbitMQs check aliveness does). It supports SSL/TLS connections as well. ## Installation Depending on your distro and usecase you might need to install any or all of these: * `l...
<|file_sep|>original/README.md # nagios-plugin-check\_amqp1.0 Nagios NRPE and "regular" check for checking the AMQP 1.0 connection to a message queue/broker/server (like RabbitMQs check aliveness does). It supports SSL/TLS connections as well. ## Installation Depending on your distro you might need to install the `p...
a2ffecbf490a23128bf21e1967964784ed63febc
README.md
README.md
Markdown
<|file_sep|>original/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java <|file_sep|>current/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java <|file_sep|>updated/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
<|file_sep|>original/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java <|file_sep|>current/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java <|file_sep|>updated/gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java /* * Licensed to the Apache Softwa...
354e3ff627adff1259dc4bb9341ef2f6c738e97f
gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java
gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser4.java
Java
<|file_sep|>original/modules/deploy/05-k8s-snapshots-deploy.yml namespace: kube-system spec: replicas: 1 template: metadata: labels: app: k8s-snapshots spec: containers: - name: k8s-snapshots image: elsdoerfer/k8s-snapshots:dev # v2.0 has a breaking bug in AWS support ...
namespace: kube-system spec: replicas: 1 template: metadata: labels: app: k8s-snapshots spec: containers: - name: k8s-snapshots # Temporarily using mrtyler version of this image due to # https://github.com/miracle2k/k8s-snapshots/issues/53 image: mrtyler/k...
<|file_sep|>original/modules/deploy/05-k8s-snapshots-deploy.yml namespace: kube-system spec: replicas: 1 template: metadata: labels: app: k8s-snapshots spec: containers: - name: k8s-snapshots image: elsdoerfer/k8s-snapshots:dev # v2.0 has a breaking bug in AWS support ...
147fb6bc985e9da0ff6b80a8c2eb8e2012eb8829
modules/deploy/05-k8s-snapshots-deploy.yml
modules/deploy/05-k8s-snapshots-deploy.yml
YAML
<|file_sep|>README.md.diff original: On Mac OS X, you may have an issue with running Pyglet in 64-bit mode. Try this... updated: Pyglet 1.1.4 can't run in 64-bit mode. Using Pyglet 1.2 fixes this problem. <|file_sep|>original/README.md # Minecraft Simple Minecraft-inspired demo written in Python and Pyglet. http://ww...
# Minecraft Simple Minecraft-inspired demo written in Python and Pyglet. http://www.youtube.com/watch?v=kC3lwK631X8 ## How to Run pip install pyglet git clone https://github.com/fogleman/Minecraft.git cd Minecraft python main.py Pyglet 1.1.4 can't run in 64-bit mode. Using Pyglet 1.2 fixes this pro...
<|file_sep|>README.md.diff original: On Mac OS X, you may have an issue with running Pyglet in 64-bit mode. Try this... updated: Pyglet 1.1.4 can't run in 64-bit mode. Using Pyglet 1.2 fixes this problem. <|file_sep|>original/README.md # Minecraft Simple Minecraft-inspired demo written in Python and Pyglet. http://ww...
6c348ae97adabac3e234295c40aa5d2617cf1eb9
README.md
README.md
Markdown
<|file_sep|>original/setup.py setup( name="django-flexible-images", version="1.0.0", url="https://github.com/lewiscollard/django-flexible-images", author="Lewis Collard", author_email="lewis.collard@onespacemedia.com", packages=find_packages(), include_package_data=True, zip_safe=False, ...
author="Lewis Collard", author_email="lewis.collard@onespacemedia.com", packages=find_packages(), include_package_data=True, zip_safe=False, description='A responsive image solution for Django.', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web...
<|file_sep|>original/setup.py setup( name="django-flexible-images", version="1.0.0", url="https://github.com/lewiscollard/django-flexible-images", author="Lewis Collard", author_email="lewis.collard@onespacemedia.com", packages=find_packages(), include_package_data=True, zip_safe=False, ...
e0fb70d632553e11f6dd08b31bb81872c3b7bc65
setup.py
setup.py
Python
<|file_sep|>original/requirements.txt cookiecutter==1.5.1 flake8==3.4.1 # pyup: != 2.6.0 sh==1.12.14 binaryornot==0.4.4 # Testing pytest==3.2.0 pep8==1.7.0 pyflakes==1.6.0 tox==2.7.0 pytest-cookies==0.2.0 <|file_sep|>current/requirements.txt cookiecutter==1.5.1 flake8==3.4.1 # pyup: != 2.6.0 sh==1.12.14 binaryornot==0...
cookiecutter==1.5.1 flake8==3.4.1 # pyup: != 2.6.0 sh==1.12.14 binaryornot==0.4.4 # Testing pytest==3.2.1 pep8==1.7.0 pyflakes==1.6.0 tox==2.7.0 pytest-cookies==0.2.0
<|file_sep|>original/requirements.txt cookiecutter==1.5.1 flake8==3.4.1 # pyup: != 2.6.0 sh==1.12.14 binaryornot==0.4.4 # Testing pytest==3.2.0 pep8==1.7.0 pyflakes==1.6.0 tox==2.7.0 pytest-cookies==0.2.0 <|file_sep|>current/requirements.txt cookiecutter==1.5.1 flake8==3.4.1 # pyup: != 2.6.0 sh==1.12.14 binaryornot==0...
b65f2ca0b4a96e96ac7549c070f43b3060adbd6c
requirements.txt
requirements.txt
Text
<|file_sep|>samples/OwinApp/Program.cs.diff original: updated: using Nancy.Bootstrappers.Autofac; <|file_sep|>original/samples/OwinApp/Program.cs using Nancy.Owin; public class Program { public static void Main(string[] args) { const string url = "http://localhost:5000"; ...
using Nancy.Owin; public class Program { public static void Main(string[] args) { const string url = "http://localhost:5000"; using (WebApp.Start(url, Configuration)) { Console.WriteLine($"Listening at {url}..."); Console....
<|file_sep|>samples/OwinApp/Program.cs.diff original: updated: using Nancy.Bootstrappers.Autofac; <|file_sep|>original/samples/OwinApp/Program.cs using Nancy.Owin; public class Program { public static void Main(string[] args) { const string url = "http://localhost:5000"; ...
8af6a2e74478907a08bcd3aa71cb053061496baa
samples/OwinApp/Program.cs
samples/OwinApp/Program.cs
C#
<|file_sep|>original/src/services/rss-feed.php <?php namespace Nectary; class Rss_Feed { private $url; private $items; private $feed_callback; public function __construct( $url = '', $feed_callback = null ) { $this->url = $url; $this->feed_callback = $feed_callback; } public function retrieve_it...
<?php namespace Nectary\Services; class Rss_Feed { private $url; private $items; private $feed_callback; public function __construct( $url = '', $feed_callback = null ) { $this->url = $url; $this->feed_callback = $feed_callback; } public function retrieve_items() { $feed = call_user_func( $t...
<|file_sep|>original/src/services/rss-feed.php <?php namespace Nectary; class Rss_Feed { private $url; private $items; private $feed_callback; public function __construct( $url = '', $feed_callback = null ) { $this->url = $url; $this->feed_callback = $feed_callback; } public function retrieve_it...
a45a1efe84d84f7621c88773ec1707ff9a56b5d4
src/services/rss-feed.php
src/services/rss-feed.php
PHP
<|file_sep|>tests/test_gen_sql.py.diff original: updated: import sys from io import StringIO from pg_bawler import gen_sql <|file_sep|>tests/test_gen_sql.py.diff original: class TestGenSql: updated: def test_simple_main(monkeypatch): stdout = StringIO() monkeypatch.setattr(sys, 'stdout', stdout) <|file_sep|>t...
#!/usr/bin/env python import sys from io import StringIO from pg_bawler import gen_sql def test_simple_main(monkeypatch): stdout = StringIO() monkeypatch.setattr(sys, 'stdout', stdout) class Args: tablename = 'foo' gen_sql.main(*[Args.tablename]) sql = stdout.getvalue() assert gen_...
<|file_sep|>tests/test_gen_sql.py.diff original: updated: import sys from io import StringIO from pg_bawler import gen_sql <|file_sep|>tests/test_gen_sql.py.diff original: class TestGenSql: updated: def test_simple_main(monkeypatch): stdout = StringIO() monkeypatch.setattr(sys, 'stdout', stdout) <|file_sep|>t...
e79f87121a955847af92d93fad3e2687fc4f472f
tests/test_gen_sql.py
tests/test_gen_sql.py
Python
<|file_sep|>original/scripts/maf_limit_to_species.py def main(): species = sys.argv[1].split( ',' ) maf_reader = bx.align.maf.Reader( sys.stdin ) maf_writer = bx.align.maf.Writer( sys.stdout ) for m in maf_reader: new_components = [] for comp in m.components: i...
species = sys.argv[1].split( ',' ) maf_reader = bx.align.maf.Reader( sys.stdin ) maf_writer = bx.align.maf.Writer( sys.stdout ) for m in maf_reader: new_components = [] for comp in m.components: if comp.src.split( '.' )[0] in species: new_compon...
<|file_sep|>original/scripts/maf_limit_to_species.py def main(): species = sys.argv[1].split( ',' ) maf_reader = bx.align.maf.Reader( sys.stdin ) maf_writer = bx.align.maf.Writer( sys.stdout ) for m in maf_reader: new_components = [] for comp in m.components: i...
bd89dc8f6812ff824417875c9375499f331bf5e4
scripts/maf_limit_to_species.py
scripts/maf_limit_to_species.py
Python
<|file_sep|>original/.travis.yml language: node_js node_js: - stable <|file_sep|>current/.travis.yml language: node_js node_js: - stable <|file_sep|>updated/.travis.yml
language: node_js node_js: - stable env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 after_success: - npm run coveralls
<|file_sep|>original/.travis.yml language: node_js node_js: - stable <|file_sep|>current/.travis.yml language: node_js node_js: - stable <|file_sep|>updated/.travis.yml language: node_js node_js: - stable env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8...
f1b823234cd288918efaf5ec3d5f845e4006120c
.travis.yml
.travis.yml
YAML
<|file_sep|>original/Tests/Extractor/ConstructorExtractorTest.php */ private $extractor; protected function setUp(): void { $this->extractor = new ConstructorExtractor([new DummyExtractor()]); } public function testInstanceOf() { $this->assertInstanceOf('Symfony\Component\...
*/ private $extractor; protected function setUp(): void { $this->extractor = new ConstructorExtractor([new DummyExtractor()]); } public function testInstanceOf() { $this->assertInstanceOf(\Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface::class, $this->extract...
<|file_sep|>original/Tests/Extractor/ConstructorExtractorTest.php */ private $extractor; protected function setUp(): void { $this->extractor = new ConstructorExtractor([new DummyExtractor()]); } public function testInstanceOf() { $this->assertInstanceOf('Symfony\Component\...
bd1ece65fae68ff5c5330ab12921ad5209e966c3
Tests/Extractor/ConstructorExtractorTest.php
Tests/Extractor/ConstructorExtractorTest.php
PHP
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.10.26" before_install: - npm install -g gulp - npm install - npm install -g bower - bower install script: - gulp test notifications: email: recipients: - jespinog@gmail.com - andrei.antoukh@gmail.com - bamed...
language: node_js node_js: - "0.10.26" before_install: - npm install -g gulp - npm install - npm install -g bower - bower install - apt-get install -qq google-chrome script: - gulp test notifications: email: recipients: - jespinog@gmail.com - andrei.antoukh@gmail.com ...
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.10.26" before_install: - npm install -g gulp - npm install - npm install -g bower - bower install script: - gulp test notifications: email: recipients: - jespinog@gmail.com - andrei.antoukh@gmail.com - bamed...
3dfb8178f5d1f5574fdaf48c4975fae35184e0e7
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/Microsoft.AspNet.WebUtilities/project.json "version": "1.0.0-*", "description": "ASP.NET 5 common helper methods.", "dependencies": { "Microsoft.Framework.NotNullAttribute.Sources": { "type": "build", "version": "1.0.0-*" }, "Microsoft.Framework.WebEncoders.Core": "1...
{ "version": "1.0.0-*", "description": "ASP.NET 5 common helper methods.", "dependencies": { "Microsoft.Framework.NotNullAttribute.Sources": { "type": "build", "version": "1.0.0-*" }, "Microsoft.Framework.WebEncoders.Core": "1.0.0-*" }, "frameworks": { "dnx451": { }, ...
<|file_sep|>original/src/Microsoft.AspNet.WebUtilities/project.json "version": "1.0.0-*", "description": "ASP.NET 5 common helper methods.", "dependencies": { "Microsoft.Framework.NotNullAttribute.Sources": { "type": "build", "version": "1.0.0-*" }, "Microsoft.Framework.WebEncoders.Core": "1...
7b9cb14a108034192c026168f9adbfd83806cdc3
src/Microsoft.AspNet.WebUtilities/project.json
src/Microsoft.AspNet.WebUtilities/project.json
JSON
<|file_sep|>original/chrome/browser/extensions/extension_function.cc // Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_function.h" #include "chrome/brows...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_function.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" void ExtensionFunctio...
<|file_sep|>original/chrome/browser/extensions/extension_function.cc // Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_function.h" #include "chrome/brows...
f5e2ed4c17e810a7997bc5b87fea4ffd74494efa
chrome/browser/extensions/extension_function.cc
chrome/browser/extensions/extension_function.cc
C++
<|file_sep|>original/infra/config/recipes.cfg "trivial": { "automatic_commit": true, "tbr_emails": [ "borenet@google.com" ] } }, "deps": { "depot_tools": { "branch": "master", "revision": "e1410883a38ac3a3491ed470883ec405193442f6", "url": "https://chromium.goo...
"trivial": { "automatic_commit": true, "tbr_emails": [ "borenet@google.com" ] } }, "deps": { "depot_tools": { "branch": "master", "revision": "b2b51418596ec5465a49405a36b6dee55c42488d", "url": "https://chromium.googlesource.com/chromium/tools/depot_tools.git" ...
<|file_sep|>original/infra/config/recipes.cfg "trivial": { "automatic_commit": true, "tbr_emails": [ "borenet@google.com" ] } }, "deps": { "depot_tools": { "branch": "master", "revision": "e1410883a38ac3a3491ed470883ec405193442f6", "url": "https://chromium.goo...
4c57a7764a98dff54b471583263f4c0caaa7af5f
infra/config/recipes.cfg
infra/config/recipes.cfg
INI
<|file_sep|>original/assets/js/hxp-import-functions.js /** * * Created by PhpStorm. * User: Philipp Dippel Inf | DMS - M * For Project: headerXporter * Date: 29.08.17 * Copyright: Philipp Dippel */ jQuery(document).ready(() => { function crazyshit() { console.log("Hallo"); } }); <|file_sep...
* * Created by PhpStorm. * User: Philipp Dippel Inf | DMS - M * For Project: headerXporter * Date: 29.08.17 * Copyright: Philipp Dippel */ jQuery(document).ready(() => { let hxp_file_input = jQuery('#zip_file'); let hxp_submit_button = jQuery('#submitButton'); hxp_file_input.change(() => { ...
<|file_sep|>original/assets/js/hxp-import-functions.js /** * * Created by PhpStorm. * User: Philipp Dippel Inf | DMS - M * For Project: headerXporter * Date: 29.08.17 * Copyright: Philipp Dippel */ jQuery(document).ready(() => { function crazyshit() { console.log("Hallo"); } }); <|file_sep...
a6dec3496e752f76b76f1e572587a401d5f245a2
assets/js/hxp-import-functions.js
assets/js/hxp-import-functions.js
JavaScript
<|file_sep|>presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java.diff original: import android.app.Application; updated: <|file_sep|>presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java.dif...
* Dagger module that provides objects which will live during the application lifecycle. */ @Module public class ApplicationModule { private final AndroidApplication application; public ApplicationModule(AndroidApplication application) { this.application = application; } @Provides @Singleton Context prov...
<|file_sep|>presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java.diff original: import android.app.Application; updated: <|file_sep|>presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java.dif...
7bfde4ffc37f26388a5516a1c570f2fa84dd2a92
presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java
presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ApplicationModule.java
Java
<|file_sep|>original/Testing/script/jenkins_build.sh popd popd # echo mpi commands needed to compile echo "mpicc -show" mpicc -show # set up testing configuration export MERCURY_BUILD_CONFIGURATION="Debug" export MERCURY_DASHBOARD_MODEL="Nightly" export MERCURY_DO_COVERAGE="true" export MERCURY_DO_MEMCHECK="true" # ...
popd popd # echo mpi commands needed to compile echo "mpicc -show" mpicc -show # set up testing configuration export MERCURY_BUILD_CONFIGURATION="Debug" export MERCURY_DASHBOARD_MODEL="Nightly" export MERCURY_DO_COVERAGE="false" export MERCURY_DO_MEMCHECK="false" # export variable needed for bmi testing export MERCU...
<|file_sep|>original/Testing/script/jenkins_build.sh popd popd # echo mpi commands needed to compile echo "mpicc -show" mpicc -show # set up testing configuration export MERCURY_BUILD_CONFIGURATION="Debug" export MERCURY_DASHBOARD_MODEL="Nightly" export MERCURY_DO_COVERAGE="true" export MERCURY_DO_MEMCHECK="true" # ...
26a8f4cb68c7d464be7cc61fb10ff96e6ef7c266
Testing/script/jenkins_build.sh
Testing/script/jenkins_build.sh
Shell
<|file_sep|>rules/uuid/uuid.go.diff original: var hexPattern = "^(urn\\:uuid\\:)?\\{?([a-z0-9]{8})-([a-z0-9]{4})-([1-5][a-z0-9]{3})-([a-z0-9]{4})-([a-z0-9]{12})\\}?$" re := regexp.MustCompile(hexPattern) if match := re.FindStringSubmatch(v); match == nil { updated: if !IsUUID(v) { <|file_sep|>original/rules/uuid/u...
} if !IsUUID(v) { return rules.ErrInvalid{ ValidationData: data, Failure: "is an invalid UUID", } } return nil } func IsUUID(uuid string) bool { var hexPattern = "^(urn\\:uuid\\:)?\\{?([a-z0-9]{8})-([a-z0-9]{4})-([1-5][a-z0-9]{3})-([a-z0-9]{4})-([a-z0-9]{12})\\}?$" re := regexp.MustCompile(hex...
<|file_sep|>rules/uuid/uuid.go.diff original: var hexPattern = "^(urn\\:uuid\\:)?\\{?([a-z0-9]{8})-([a-z0-9]{4})-([1-5][a-z0-9]{3})-([a-z0-9]{4})-([a-z0-9]{12})\\}?$" re := regexp.MustCompile(hexPattern) if match := re.FindStringSubmatch(v); match == nil { updated: if !IsUUID(v) { <|file_sep|>original/rules/uuid/u...
82fa7d2a2a42bf7e32b943e578cdee406cfe8270
rules/uuid/uuid.go
rules/uuid/uuid.go
Go
<|file_sep|>myuw_mobile/restclients/dao_implementation/hfs.py.diff original: updated: import logging from myuw_mobile.logger.logback import log_info <|file_sep|>myuw_mobile/restclients/dao_implementation/hfs.py.diff original: updated: logger = logging.getLogger('myuw_mobile.restclients.dao_implementation.hfs.Live...
""" This DAO provides real data. Access is restricted to localhost. """ logger = logging.getLogger('myuw_mobile.restclients.dao_implementation.hfs.Live') pool = None def getURL(self, url, headers): """ Return the absolute url for accessing live data :param url: ...
<|file_sep|>myuw_mobile/restclients/dao_implementation/hfs.py.diff original: updated: import logging from myuw_mobile.logger.logback import log_info <|file_sep|>myuw_mobile/restclients/dao_implementation/hfs.py.diff original: updated: logger = logging.getLogger('myuw_mobile.restclients.dao_implementation.hfs.Live...
616bd7c5ff8ba5fe5dd190a459b93980613a3ad4
myuw_mobile/restclients/dao_implementation/hfs.py
myuw_mobile/restclients/dao_implementation/hfs.py
Python
<|file_sep|>original/type/model/subscription.go package model import ( "github.com/guregu/null" ) // Subscription represents user's notification settings. type Subscription struct { ID int `json:"id"` UserID null.Int `json:"user_id"` ProjectUUID string `json:"project_uuid"` Email string...
package model import ( "github.com/guregu/null" ) // Subscription represents user's notification settings. type Subscription struct { ID int `json:"id" gorm:"primary_key"` UserID null.Int `json:"user_id" gorm:"ForeignKey:ID"` ProjectUUID string `json:"project_uuid" gorm:"ForeignKey:UUID"` E...
<|file_sep|>original/type/model/subscription.go package model import ( "github.com/guregu/null" ) // Subscription represents user's notification settings. type Subscription struct { ID int `json:"id"` UserID null.Int `json:"user_id"` ProjectUUID string `json:"project_uuid"` Email string...
2ec46e98aee6122f629401bb40c06c1a5f3556a7
type/model/subscription.go
type/model/subscription.go
Go
<|file_sep|>original/src/Routing/RoutingServiceProvider.php */ public function register() { $this->registerRequestOnConsole(); parent::register(); } /** * Register the requst on console interface. * * @return void */ protected function registerRequestOnCons...
<?php namespace Orchestra\Routing; use Illuminate\Http\Request; class RoutingServiceProvider extends \Illuminate\Routing\RoutingServiceProvider { /** * Register the router instance. * * @return void */ protected function registerRouter() { $this->app['router'] = $this->app->sha...
<|file_sep|>original/src/Routing/RoutingServiceProvider.php */ public function register() { $this->registerRequestOnConsole(); parent::register(); } /** * Register the requst on console interface. * * @return void */ protected function registerRequestOnCons...
71def4466557fad7d22a971f88871635a64df1b8
src/Routing/RoutingServiceProvider.php
src/Routing/RoutingServiceProvider.php
PHP
<|file_sep|>original/server/admin/users/usergroups/_lib/detect_circular.js // 'use strict'; var _ = require('lodash'); module.exports = function detectCircular(groupId, parentId, callback) { N.models.users.UserGroup .find() .select('_id short_name parent_group') .setOptions({ lean: true }) ...
// 'use strict'; var _ = require('lodash'); module.exports = function detectCircular(groupId, parentId, callback) { if (!parentId) { // No parent - skip. callback(null, null); return; } N.models.users.UserGroup .find() .select('_id short_name parent_group') .setOptions({ lean:...
<|file_sep|>original/server/admin/users/usergroups/_lib/detect_circular.js // 'use strict'; var _ = require('lodash'); module.exports = function detectCircular(groupId, parentId, callback) { N.models.users.UserGroup .find() .select('_id short_name parent_group') .setOptions({ lean: true }) ...
2f0311a77c51efa68bc6f6ec4624ed69b533a152
server/admin/users/usergroups/_lib/detect_circular.js
server/admin/users/usergroups/_lib/detect_circular.js
JavaScript
<|file_sep|>lib/open-tests.js.diff original: open() { updated: getTestPath() { <|file_sep|>lib/open-tests.js.diff original: const shouldCreate = atom.config.get('open-tests.shouldCreateFile') updated: <|file_sep|>original/lib/open-tests.js this.subscriptions.dispose(); }, open() { const testExten...
}, getTestPath() { const testExtension = atom.config.get('open-tests.testExtension') const filePath = atom.workspace.getActivePaneItem().buffer.file.path const index = filePath.lastIndexOf('.') const fileExtension = filePath.substring(index) const fileWithoutExt = filePath.substring(0,index) ...
<|file_sep|>lib/open-tests.js.diff original: open() { updated: getTestPath() { <|file_sep|>lib/open-tests.js.diff original: const shouldCreate = atom.config.get('open-tests.shouldCreateFile') updated: <|file_sep|>original/lib/open-tests.js this.subscriptions.dispose(); }, open() { const testExten...
342a1a88d2cc9494ba9889465074ab45167b4cd2
lib/open-tests.js
lib/open-tests.js
JavaScript
<|file_sep|>original/demo-app/requirements.txt google-cloud-monitoring==0.31.1 google-cloud-pubsub==0.42.1 google-cloud-trace==0.21.0 gunicorn==19.8.1 opencensus==0.1.5 Flask==1.0.3 <|file_sep|>current/demo-app/requirements.txt google-cloud-monitoring==0.31.1 google-cloud-pubsub==0.42.1 google-cloud-trace==0.21.0 gunic...
google-cloud-monitoring==0.31.1 google-cloud-pubsub==0.42.1 google-cloud-trace==0.21.0 gunicorn==19.9.0 opencensus==0.1.5 Flask==1.0.3
<|file_sep|>original/demo-app/requirements.txt google-cloud-monitoring==0.31.1 google-cloud-pubsub==0.42.1 google-cloud-trace==0.21.0 gunicorn==19.8.1 opencensus==0.1.5 Flask==1.0.3 <|file_sep|>current/demo-app/requirements.txt google-cloud-monitoring==0.31.1 google-cloud-pubsub==0.42.1 google-cloud-trace==0.21.0 gunic...
c7e885bef34f6b0ecc00e3c5a5252e2030634602
demo-app/requirements.txt
demo-app/requirements.txt
Text
<|file_sep|>setup.py.diff original: from setuptools import setup updated: from setuptools import setup, find_packages <|file_sep|>original/setup.py ver = imp.load_source('version', os.path.join(os.path.dirname(__file__), 'hessianfree', 'version.py')).__version__...
ver = imp.load_source('version', os.path.join(os.path.dirname(__file__), 'hessianfree', 'version.py')).__version__ with open("README.rst") as f: long_description = f.read() setup( name='hessianfree', packages=find_packages(), package_data={'': ...
<|file_sep|>setup.py.diff original: from setuptools import setup updated: from setuptools import setup, find_packages <|file_sep|>original/setup.py ver = imp.load_source('version', os.path.join(os.path.dirname(__file__), 'hessianfree', 'version.py')).__version__...
e18fbe4344083d4244e6b5b312240d580426b5b7
setup.py
setup.py
Python
<|file_sep|>original/.travis.yml language: python cache: pip python: - '3.6' os: - linux - windows services: - mongodb install: - pip install tox coveralls codeclimate-test-reporter addons: code_climate: repo_token: 3ec30a156224df0f59620967241d9659086e918fd824f4f69b8ce7b55b5a590f script: <|f...
language: python cache: pip python: - '3.6' os: - linux services: - mongodb install: - pip install tox coveralls codeclimate-test-reporter addons: code_climate: repo_token: 3ec30a156224df0f59620967241d9659086e918fd824f4f69b8ce7b55b5a590f script: - tox
<|file_sep|>original/.travis.yml language: python cache: pip python: - '3.6' os: - linux - windows services: - mongodb install: - pip install tox coveralls codeclimate-test-reporter addons: code_climate: repo_token: 3ec30a156224df0f59620967241d9659086e918fd824f4f69b8ce7b55b5a590f script: <|f...
a45afee07fc4dc8f9bd58356358aa7f8e6a6fa55
.travis.yml
.travis.yml
YAML
<|file_sep|>app/assets/stylesheets/modules/partner-return-to.sass.diff original: height: 30px updated: height: 40px <|file_sep|>original/app/assets/stylesheets/modules/partner-return-to.sass .partner-return-to background-color: #CCE3DB text-align: center height: 30px width: 100% padding-top: 8px positio...
.partner-return-to background-color: #CCE3DB text-align: center height: 40px width: 100% padding-top: 8px position: fixed left: 0px bottom: 0px .partner-logo height: 32px margin-left: .3em vertical-align: bottom
<|file_sep|>app/assets/stylesheets/modules/partner-return-to.sass.diff original: height: 30px updated: height: 40px <|file_sep|>original/app/assets/stylesheets/modules/partner-return-to.sass .partner-return-to background-color: #CCE3DB text-align: center height: 30px width: 100% padding-top: 8px positio...
e9daf33bc4c0c47d000af1e08023c779e2f4532f
app/assets/stylesheets/modules/partner-return-to.sass
app/assets/stylesheets/modules/partner-return-to.sass
Sass
<|file_sep|>original/image/newImage.sh # Make Sure we are in the image directory (this script's location) ========= IMAGE_DIR=`readlink "$0"` || IMAGE_DIR="$0"; IMAGE_DIR=`dirname "$IMAGE_DIR"`; cd "$IMAGE_DIR" 2> /dev/null IMAGE_DIR=`pwd -P` # Detect cygwin # This hack is made to make sure the image can be executed ...
# Make Sure we are in the image directory (this script's location) ========= IMAGE_DIR=`readlink "$0"` || IMAGE_DIR="$0"; IMAGE_DIR=`dirname "$IMAGE_DIR"`; cd "$IMAGE_DIR" 2> /dev/null IMAGE_DIR=`pwd -P` # Detect cygwin # This hack is made to make sure the image can be executed (otherwise image knows is windows # and...
<|file_sep|>original/image/newImage.sh # Make Sure we are in the image directory (this script's location) ========= IMAGE_DIR=`readlink "$0"` || IMAGE_DIR="$0"; IMAGE_DIR=`dirname "$IMAGE_DIR"`; cd "$IMAGE_DIR" 2> /dev/null IMAGE_DIR=`pwd -P` # Detect cygwin # This hack is made to make sure the image can be executed ...
53eef5509919a08cafa956d2ac546ed59cce2c08
image/newImage.sh
image/newImage.sh
Shell
<|file_sep|>original/src/Fabfuel/Prophiler/Adapter/AdapterAbstract.php <?php /** * @author @fabfuel <fabian@fabfuel.de> * @created 14.11.14, 06:57 */ namespace Fabfuel\Prophiler\Adapter; use Mongo\Profiler\ProfilerInterface; abstract class AdapterAbstract { /** * @var ProfilerInterface */ protec...
<?php /** * @author @fabfuel <fabian@fabfuel.de> * @created 14.11.14, 06:57 */ namespace Fabfuel\Prophiler\Adapter; use Fabfuel\Prophiler\ProfilerInterface; abstract class AdapterAbstract { /** * @var ProfilerInterface */ protected $profiler; public function __construct(ProfilerInterface $p...
<|file_sep|>original/src/Fabfuel/Prophiler/Adapter/AdapterAbstract.php <?php /** * @author @fabfuel <fabian@fabfuel.de> * @created 14.11.14, 06:57 */ namespace Fabfuel\Prophiler\Adapter; use Mongo\Profiler\ProfilerInterface; abstract class AdapterAbstract { /** * @var ProfilerInterface */ protec...
0a2edf7f072df39000dfa2eb640cfd1cafd8d581
src/Fabfuel/Prophiler/Adapter/AdapterAbstract.php
src/Fabfuel/Prophiler/Adapter/AdapterAbstract.php
PHP
<|file_sep|>original/plugins/com.redhat.ceylon.eclipse.ui/build.properties bin.includes = META-INF/,\ plugin.xml,\ ./,\ icons/,\ about.ini,\ intro/,\ plugin.properties,\ lib/,\ ceylon/modules/com/redh...
bin.includes = META-INF/,\ plugin.xml,\ ./,\ icons/,\ about.ini,\ intro/,\ plugin.properties,\ lib/,\ ceylon/modules/com/redhat/ceylon/eclipse/ui/1.1.0/com.redhat.ceylon.eclipse.ui-1.1.0.car source../...
<|file_sep|>original/plugins/com.redhat.ceylon.eclipse.ui/build.properties bin.includes = META-INF/,\ plugin.xml,\ ./,\ icons/,\ about.ini,\ intro/,\ plugin.properties,\ lib/,\ ceylon/modules/com/redh...
361843f3e99e6a7378f812d72c554a19562f3c9c
plugins/com.redhat.ceylon.eclipse.ui/build.properties
plugins/com.redhat.ceylon.eclipse.ui/build.properties
INI
<|file_sep|>original/.travis.yml rvm: - 1.9.3 - 2.0.0 - 2.1.8 - ruby-head - jruby - jruby-head - rbx-2 matrix: fast_finish: true allow_failures: - rvm: ruby-head - rvm: jruby-head - rvm: rbx-2 notifications: irc: "irc.freenode.org#celluloid" <|file_sep|>current/.travis.yml rvm: - 1.9...
rvm: - 1.9.3 - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 - ruby-head - jruby - jruby-head - rbx-2 matrix: fast_finish: true allow_failures: - rvm: ruby-head - rvm: jruby-head - rvm: rbx-2 notifications: irc: "irc.freenode.org#celluloid"
<|file_sep|>original/.travis.yml rvm: - 1.9.3 - 2.0.0 - 2.1.8 - ruby-head - jruby - jruby-head - rbx-2 matrix: fast_finish: true allow_failures: - rvm: ruby-head - rvm: jruby-head - rvm: rbx-2 notifications: irc: "irc.freenode.org#celluloid" <|file_sep|>current/.travis.yml rvm: - 1.9...
6be235f61de45c746476fee3085fd99e37847568
.travis.yml
.travis.yml
YAML
<|file_sep|>lib/npmdc/modules_directory.rb.diff original: end def files Dir.glob("#{path}/*").map { |file_path| self.class.new(file_path) } end def directories files.select(&:directory?) updated: <|file_sep|>original/lib/npmdc/modules_directory.rb def valid_directories directori...
end end def directory? File.directory?(path) end def exists? File.file?(path) end private def files Dir.glob("#{path}/*").map { |file_path| self.class.new(file_path) } end def directories files.select(&:directory?) end end
<|file_sep|>lib/npmdc/modules_directory.rb.diff original: end def files Dir.glob("#{path}/*").map { |file_path| self.class.new(file_path) } end def directories files.select(&:directory?) updated: <|file_sep|>original/lib/npmdc/modules_directory.rb def valid_directories directori...
32d6aa4cba7e29d4ee0b3484fa0c951ed1ae93ad
lib/npmdc/modules_directory.rb
lib/npmdc/modules_directory.rb
Ruby
<|file_sep|>original/.travis.yml language: python python: - "3.2" - "3.3" - "3.4" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: tests <|file_sep|>current/.travis.yml language: python python: - "3.2" - "3.3" - "3.4" # command to install dependenci...
language: python python: #- "3.2" # Disabled due to errors - "3.3" - "3.4" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: tests
<|file_sep|>original/.travis.yml language: python python: - "3.2" - "3.3" - "3.4" # command to install dependencies install: "pip install -r requirements.txt" # command to run tests script: tests <|file_sep|>current/.travis.yml language: python python: - "3.2" - "3.3" - "3.4" # command to install dependenci...
8baa2351298a004c9e1277d0333d1cdfce78e620
.travis.yml
.travis.yml
YAML
<|file_sep|>original/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php <|file_sep|>current/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php <|file_sep|>updated/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php
<?php namespace AmpProject\Optimizer\Transformer; use AmpProject\Dom\Document; use AmpProject\Optimizer\Configuration\RewriteAmpUrlsConfiguration; use AmpProject\Optimizer\ErrorCollection; use AmpProject\Optimizer\Exception\InvalidConfiguration; use AmpProject\Tests\TestCase; /** * Test the RewriteAmpUrls transform...
<|file_sep|>original/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php <|file_sep|>current/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php <|file_sep|>updated/tests/Optimizer/Transformer/RewriteAmpUrlsTest.php <?php namespace AmpProject\Optimizer\Transformer; use AmpProject\Dom\Document; use AmpProject\Optimize...
0329bdb4fb421267c1e1397a202bc0a82981ffa8
tests/Optimizer/Transformer/RewriteAmpUrlsTest.php
tests/Optimizer/Transformer/RewriteAmpUrlsTest.php
PHP
<|file_sep|>original/packages/ha/happstack-server-tls-cryptonite.yaml <|file_sep|>current/packages/ha/happstack-server-tls-cryptonite.yaml <|file_sep|>updated/packages/ha/happstack-server-tls-cryptonite.yaml
homepage: '' changelog-type: '' hash: 98b611f169294255b619c1d21866854453d1058b015aaebb26130009fb3e29cf test-bench-deps: {} maintainer: blaze@ruddy.ru synopsis: Extend happstack-server with native HTTPS support (TLS/SSL) changelog: '' basic-deps: bytestring: ! '>=0.9 && <0.11' happstack-server: ! '>=6.6.4 && <7.5' ...
<|file_sep|>original/packages/ha/happstack-server-tls-cryptonite.yaml <|file_sep|>current/packages/ha/happstack-server-tls-cryptonite.yaml <|file_sep|>updated/packages/ha/happstack-server-tls-cryptonite.yaml homepage: '' changelog-type: '' hash: 98b611f169294255b619c1d21866854453d1058b015aaebb26130009fb3e29cf test-be...
60358b75e797fb362c6dff4180f086ca14fc076b
packages/ha/happstack-server-tls-cryptonite.yaml
packages/ha/happstack-server-tls-cryptonite.yaml
YAML
<|file_sep|>original/package.json "type": "git", "url": "https://github.com/websockets/bufferutil" }, "keywords": [ "bufferutil" ], "author": "Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)", "license": "MIT", "bugs": { "url": "https://github.com/websockets/bufferutil/issues" }, ...
"type": "git", "url": "https://github.com/websockets/bufferutil" }, "keywords": [ "bufferutil" ], "author": "Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)", "license": "MIT", "bugs": { "url": "https://github.com/websockets/bufferutil/issues" }, "homepage": "https://github.com/we...
<|file_sep|>original/package.json "type": "git", "url": "https://github.com/websockets/bufferutil" }, "keywords": [ "bufferutil" ], "author": "Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)", "license": "MIT", "bugs": { "url": "https://github.com/websockets/bufferutil/issues" }, ...
670a0cab8f7096ab2247303568df717578e70907
package.json
package.json
JSON
<|file_sep|>original/app/workers/weighted_completeness_metric_worker.rb <|file_sep|>current/app/workers/weighted_completeness_metric_worker.rb <|file_sep|>updated/app/workers/weighted_completeness_metric_worker.rb
class WeightedCompletenessMetricWorker < MetricsWorker def perform(repository_name) repository = Repository.find repository_name schema = JSON.parse File.read 'public/ckan-schema.json' schema = self.class.symbolize_keys schema weights = 'public/ckan-weight.yml' metric = Metrics::WeightedCompleten...
<|file_sep|>original/app/workers/weighted_completeness_metric_worker.rb <|file_sep|>current/app/workers/weighted_completeness_metric_worker.rb <|file_sep|>updated/app/workers/weighted_completeness_metric_worker.rb class WeightedCompletenessMetricWorker < MetricsWorker def perform(repository_name) repository = ...
1c41c2f8fa4070c14ecb579c4454a6545a02a6fa
app/workers/weighted_completeness_metric_worker.rb
app/workers/weighted_completeness_metric_worker.rb
Ruby
<|file_sep|>original/project.clj (defproject doctopus "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [mar...
(defproject doctopus "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [markdown-clj "0.9.63"] ...
<|file_sep|>original/project.clj (defproject doctopus "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [mar...
c1db3a40227e61afa988c2b0173b72768072b1da
project.clj
project.clj
Clojure
<|file_sep|>original/docker-compose.yml links: - redis:redis volumes_from: - web command: rqscheduler -H redis -p 6379 -d 0 nginx: restart: always build: ./nginx/ ports: - "8080:80" volumes_from: - web links: - web:web redis: restart: always image: redis:latest ports: - "...
links: - redis:redis volumes_from: - web command: rqscheduler -H redis -p 6379 -d 0 nginx: restart: always build: ./nginx/ ports: - "80:80" volumes_from: - web links: - web:web redis: restart: always image: redis:latest ports: - "6379:6379"
<|file_sep|>original/docker-compose.yml links: - redis:redis volumes_from: - web command: rqscheduler -H redis -p 6379 -d 0 nginx: restart: always build: ./nginx/ ports: - "8080:80" volumes_from: - web links: - web:web redis: restart: always image: redis:latest ports: - "...
9ef1fed8bdc4df71ab8e29a03ea62783f62da45f
docker-compose.yml
docker-compose.yml
YAML
<|file_sep|>src/Response/JsonResponse.php.diff original: updated: use Psr\Http\Message\ResponseInterface; <|file_sep|>src/Response/JsonResponse.php.diff original: updated: use Zend\Diactoros\Response\JsonResponse as ZendJsonResponse; <|file_sep|>src/Response/JsonResponse.php.diff original: public function fromPro...
namespace Prooph\ProophessorDo\Response; use Prooph\Psr7Middleware\Response\ResponseStrategy; use Psr\Http\Message\ResponseInterface; use React\Promise\Promise; use Zend\Diactoros\Response\JsonResponse as ZendJsonResponse; final class JsonResponse implements ResponseStrategy { public function fromPromise(Promise...
<|file_sep|>src/Response/JsonResponse.php.diff original: updated: use Psr\Http\Message\ResponseInterface; <|file_sep|>src/Response/JsonResponse.php.diff original: updated: use Zend\Diactoros\Response\JsonResponse as ZendJsonResponse; <|file_sep|>src/Response/JsonResponse.php.diff original: public function fromPro...
e00863623d2ecf43fe0cd52eac03c04aa66baf15
src/Response/JsonResponse.php
src/Response/JsonResponse.php
PHP
<|file_sep|>original/README.markdown ## Usage Make sure you have directory with basic Adyen skin structure, that looks something like this: +- ~/Documents +- DV3tf95f +- css +- img +- inc +- cfooter.txt +- cheader.txt +- js To view something that is very...
## Usage Make sure you have directory with basic Adyen skin structure, that looks something like this: +- ~/Documents +- DV3tf95f +- css +- img +- inc +- cfooter.txt +- cheader.txt +- js To view something that is very much similar to the end result gener...
<|file_sep|>original/README.markdown ## Usage Make sure you have directory with basic Adyen skin structure, that looks something like this: +- ~/Documents +- DV3tf95f +- css +- img +- inc +- cfooter.txt +- cheader.txt +- js To view something that is very...
30378bd9291946b2697fec00caecb6c5d37537f7
README.markdown
README.markdown
Markdown
<|file_sep|>original/.travis.yml language: "node_js" node_js: - 0.4 - 0.6 <|file_sep|>current/.travis.yml language: "node_js" node_js: - 0.4 - 0.6 <|file_sep|>updated/.travis.yml
language: "node_js" node_js: - 0.4 - 0.6 - 0.8
<|file_sep|>original/.travis.yml language: "node_js" node_js: - 0.4 - 0.6 <|file_sep|>current/.travis.yml language: "node_js" node_js: - 0.4 - 0.6 <|file_sep|>updated/.travis.yml language: "node_js" node_js: - 0.4 - 0.6 - 0.8
2554404026a80cdf1c32d64a1cd83ae1c72cfec9
.travis.yml
.travis.yml
YAML
<|file_sep|>original/package.json { "name": "hydra" , "version": "0.0.1" , "main": "./lib/hydra.js" , "dependencies": { "express": "2.5.8" , "jade": ">= 0.0.1" , "mime": ">= 1.0.0" , "ejs": ">= 0.6.1" } } <|file_sep|>current/package.json { "name": "hydra" , "version": "0.0.1" , "m...
{ "name": "hydra" , "version": "0.0.1" , "main": "./lib/hydra.js" , "dependencies": { "express": "2.5.8" , "jade": ">= 0.0.1" , "mime": ">= 1.0.0" , "ejs": ">= 0.6.1" } , "devDependencies": { "buster": "" } , "scripts": { "test": "node_modules/.bin/buster-test" } }
<|file_sep|>original/package.json { "name": "hydra" , "version": "0.0.1" , "main": "./lib/hydra.js" , "dependencies": { "express": "2.5.8" , "jade": ">= 0.0.1" , "mime": ">= 1.0.0" , "ejs": ">= 0.6.1" } } <|file_sep|>current/package.json { "name": "hydra" , "version": "0.0.1" , "m...
e6f7e412654dff01b72b0b08fc35f7d99209f80a
package.json
package.json
JSON
<|file_sep|>.travis.yml.diff original: - release updated: - 1.3.3 - 1.4.1 <|file_sep|>original/.travis.yml sudo: false language: go go: - release - tip - 1.3.3 env: global: - secure: "aq8rblr2+Ga10psfUJAKBCVtSIv/Uca7Ga1eTzRnRuGPsCHhC691jPmNAd8P7UhmhZ6ZHNN6yC+yYsS+lzCm62gisyIMA3+NmOM4Y2qf3wTSVEvnjAdVonge8aB...
sudo: false language: go go: - 1.3.3 - 1.4.1 - tip env: global: - secure: "aq8rblr2+Ga10psfUJAKBCVtSIv/Uca7Ga1eTzRnRuGPsCHhC691jPmNAd8P7UhmhZ6ZHNN6yC+yYsS+lzCm62gisyIMA3+NmOM4Y2qf3wTSVEvnjAdVonge8aB3zWk5XimhdwiXWoBtW4+cVrNYWv+uNw7gNzGhND0pWFFU//c=" before_install: - if ! go get code.google.com/p/go.tools/c...
<|file_sep|>.travis.yml.diff original: - release updated: - 1.3.3 - 1.4.1 <|file_sep|>original/.travis.yml sudo: false language: go go: - release - tip - 1.3.3 env: global: - secure: "aq8rblr2+Ga10psfUJAKBCVtSIv/Uca7Ga1eTzRnRuGPsCHhC691jPmNAd8P7UhmhZ6ZHNN6yC+yYsS+lzCm62gisyIMA3+NmOM4Y2qf3wTSVEvnjAdVonge8aB...
4de8175bcd1f82823e871289a1353542fd960d53
.travis.yml
.travis.yml
YAML
<|file_sep|>server/routes/api.js.diff original: const MoviesController = require('../controllers/MoviesController'); updated: const moviesController = require('../controllers/moviesController'); <|file_sep|>original/server/routes/api.js const router = require('express').Router(); const MoviesController = require('../co...
const router = require('express').Router(); const moviesController = require('../controllers/moviesController'); const checkTmdbConfig = require('../middlewares/movieApiMiddlware'); checkTmdbConfig(router); router.get('/movies', moviesController.get); router.post('/movies', moviesController.store); module.exports = ...
<|file_sep|>server/routes/api.js.diff original: const MoviesController = require('../controllers/MoviesController'); updated: const moviesController = require('../controllers/moviesController'); <|file_sep|>original/server/routes/api.js const router = require('express').Router(); const MoviesController = require('../co...
5c9ed6ce335e52da41b8dc58ca4c07a58dbe9f09
server/routes/api.js
server/routes/api.js
JavaScript
<|file_sep|>original/numba/exttypes/validators.py <|file_sep|>current/numba/exttypes/validators.py <|file_sep|>updated/numba/exttypes/validators.py
# -*- coding: utf-8 -*- """ Validate method signatures and inheritance compatiblity. """ import types import warnings import inspect import numba from numba import * from numba import error from numba import typesystem from numba.minivect import minitypes #----------------------------------------------------------...
<|file_sep|>original/numba/exttypes/validators.py <|file_sep|>current/numba/exttypes/validators.py <|file_sep|>updated/numba/exttypes/validators.py # -*- coding: utf-8 -*- """ Validate method signatures and inheritance compatiblity. """ import types import warnings import inspect import numba from numba import * f...
6e658a93b9e91b30f0902f741b2f90d9ecc18021
numba/exttypes/validators.py
numba/exttypes/validators.py
Python
<|file_sep|>README.md.diff original: updated: jslm32 is an emulator for the LatticeMico32 soft processor and supporting hardware. Copyright (c) 2011, 2012, 2016 Reginaldo Silva The sources are available and licensed under LGPL 2.1 unless otherwise noted. See COPYING for the full LGPL 2.1 license terms. <|file_sep|>...
Copyright (c) 2011, 2012, 2016 Reginaldo Silva The sources are available and licensed under LGPL 2.1 unless otherwise noted. See COPYING for the full LGPL 2.1 license terms. There is a demo of the emulator running at: http://www.ubercomp.com/jslm32/src/ To run jslm32 on your own machine: python -m SimpleHTTPServe...
<|file_sep|>README.md.diff original: updated: jslm32 is an emulator for the LatticeMico32 soft processor and supporting hardware. Copyright (c) 2011, 2012, 2016 Reginaldo Silva The sources are available and licensed under LGPL 2.1 unless otherwise noted. See COPYING for the full LGPL 2.1 license terms. <|file_sep|>...
82df525eb687b786b76118efc341e5f371bf34b2
README.md
README.md
Markdown
<|file_sep|>original/_events/2021_09_23_welcome_drinks.md cancelled: false cancel_reason: title: Welcome Drinks date: 2021-09-23 19:00:00 +0100 date_end: 2021-09-23 23:59:59 +0100 banner: 2021_09_23_welcome_drinks.jpg ticket_link: https://forms.gle/wL9TQCRv9Z7DoTEQA location: The Brass Pig price: Free category: ...
cancelled: false cancel_reason: title: Welcome Drinks date: 2021-09-23 19:00:00 +0100 date_end: 2021-09-23 23:59:59 +0100 banner: 2021_09_23_welcome_drinks.jpg ticket_link: https://forms.gle/wL9TQCRv9Z7DoTEQA location: The Brass Pig price: Free category: - Social --- Join us at 7pm for welcome drinks at the Br...
<|file_sep|>original/_events/2021_09_23_welcome_drinks.md cancelled: false cancel_reason: title: Welcome Drinks date: 2021-09-23 19:00:00 +0100 date_end: 2021-09-23 23:59:59 +0100 banner: 2021_09_23_welcome_drinks.jpg ticket_link: https://forms.gle/wL9TQCRv9Z7DoTEQA location: The Brass Pig price: Free category: ...
dbf443d8644d1b808eaeba1692a1786be2445165
_events/2021_09_23_welcome_drinks.md
_events/2021_09_23_welcome_drinks.md
Markdown
<|file_sep|>original/freeciv/version.txt # I keep previous version easily available here so I don't need to check # version history constantly when handling ruleset differences. # Previous:33628 FCREV=33630 FCBRANCH=trunk ORIGCAPSTR="+Freeciv.Devel-3.0-2016.Aug.16b" # There's no need to bump this constantly as curren...
# I keep previous version easily available here so I don't need to check # version history constantly when handling ruleset differences. # Previous:33630 FCREV=33631 FCBRANCH=trunk ORIGCAPSTR="+Freeciv.Devel-3.0-2016.Aug.16b" # There's no need to bump this constantly as current freeciv-web # makes no connections to o...
<|file_sep|>original/freeciv/version.txt # I keep previous version easily available here so I don't need to check # version history constantly when handling ruleset differences. # Previous:33628 FCREV=33630 FCBRANCH=trunk ORIGCAPSTR="+Freeciv.Devel-3.0-2016.Aug.16b" # There's no need to bump this constantly as curren...
8587a24f690684e83f6d16c0b1ef09673c0406cc
freeciv/version.txt
freeciv/version.txt
Text
<|file_sep|>original/src/CMakeLists.txt set(SOURCES main.cpp Font.cpp maxRectsBinPack/MaxRectsBinPack.cpp sdlSavePng/savepng.c tinyxml2/tinyxml2.cpp ConfigFile.cpp CharList.cpp ) if(MINGW) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW") ...
maxRectsBinPack/MaxRectsBinPack.cpp sdlSavePng/savepng.c tinyxml2/tinyxml2.cpp ConfigFile.cpp CharList.cpp ) if(MINGW) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW") FIND_LIBRARY(SDL2MAIN_LIBRARY NAMES SDL2main) SET(SDL2PP_LIBRARIES...
<|file_sep|>original/src/CMakeLists.txt set(SOURCES main.cpp Font.cpp maxRectsBinPack/MaxRectsBinPack.cpp sdlSavePng/savepng.c tinyxml2/tinyxml2.cpp ConfigFile.cpp CharList.cpp ) if(MINGW) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW") ...
f503d0a877821e37c7b3d5bf6527bc327da69737
src/CMakeLists.txt
src/CMakeLists.txt
Text
<|file_sep|>original/news/update_ci_support_readme.rst <|file_sep|>current/news/update_ci_support_readme.rst <|file_sep|>updated/news/update_ci_support_readme.rst
**Added:** * <news item> **Changed:** * Updated ``.ci_support/README`` for improved clarity. **Deprecated:** * <news item> **Removed:** * <news item> **Fixed:** * <news item> **Security:**
<|file_sep|>original/news/update_ci_support_readme.rst <|file_sep|>current/news/update_ci_support_readme.rst <|file_sep|>updated/news/update_ci_support_readme.rst **Added:** * <news item> **Changed:** * Updated ``.ci_support/README`` for improved clarity. **Deprecated:** * <news item> **Removed:** * <news item...
5dd4b59b9540387c72a793b49d3d5b19cdac841a
news/update_ci_support_readme.rst
news/update_ci_support_readme.rst
reStructuredText
<|file_sep|>utils/swift_build_support/swift_build_support/debug.py.diff original: ['xcodebuild', '-version'], dry_run=False, echo=False, optional=True).rstrip() updated: ['xcodebuild', '-version'], dry_run=False, echo=False).rstrip() <|file_sep|>original/utils/swift_build_support/swift_build_sup...
from . import shell def print_xcodebuild_versions(file=sys.stdout): """ Print the host machine's `xcodebuild` version, as well as version information for all available SDKs. """ version = shell.capture( ['xcodebuild', '-version'], dry_run=False, echo=False).rstrip() sdks = shell.captur...
<|file_sep|>utils/swift_build_support/swift_build_support/debug.py.diff original: ['xcodebuild', '-version'], dry_run=False, echo=False, optional=True).rstrip() updated: ['xcodebuild', '-version'], dry_run=False, echo=False).rstrip() <|file_sep|>original/utils/swift_build_support/swift_build_sup...
3384d2d933b9038f88b9ac0ac1c41545fa7c65c8
utils/swift_build_support/swift_build_support/debug.py
utils/swift_build_support/swift_build_support/debug.py
Python
<|file_sep|>original/lib/calligraphy.rb require 'calligraphy/xml/builder' require 'calligraphy/xml/namespace' require 'calligraphy/xml/node' require 'calligraphy/xml/utils' require 'calligraphy/utils' require 'calligraphy/resource' require 'calligraphy/file_resource' require 'calligraphy/web_dav_request' module Cal...
require 'calligraphy/utils' require 'calligraphy/resource' require 'calligraphy/file_resource' require 'calligraphy/web_dav_request' module Calligraphy DAV_NS = 'DAV:' LOCK_TOKEN_REGEX = /<(urn:uuid:.+?)>/ mattr_accessor :allowed_methods @@allowed_methods = %w( options head get put delete copy move mkcol...
<|file_sep|>original/lib/calligraphy.rb require 'calligraphy/xml/builder' require 'calligraphy/xml/namespace' require 'calligraphy/xml/node' require 'calligraphy/xml/utils' require 'calligraphy/utils' require 'calligraphy/resource' require 'calligraphy/file_resource' require 'calligraphy/web_dav_request' module Cal...
2b2ea7ffa9f0446f440fe2f932a200059e9ebfe7
lib/calligraphy.rb
lib/calligraphy.rb
Ruby
<|file_sep|>app/controllers/cart_controller.rb.diff original: variant_ids = order.line_items.pluck(:variant_id) render json: { error: false, stock_levels: VariantsStockLevels.new.call(order, variant_ids) }, status: :ok updated: render json: { error: false, stock_leve...
render json: { error: false, stock_levels: stock_levels(order) }, status: :ok else render json: { error: cart_service.errors.full_messages.join(",") }, status: :precondition_failed end end private def stock_levels(order) variants_in_cart = order.line_items.pluck(:variant_id...
<|file_sep|>app/controllers/cart_controller.rb.diff original: variant_ids = order.line_items.pluck(:variant_id) render json: { error: false, stock_levels: VariantsStockLevels.new.call(order, variant_ids) }, status: :ok updated: render json: { error: false, stock_leve...
6abe0b375cb4f1b1c0d2986d4fd2ba6329a3c011
app/controllers/cart_controller.rb
app/controllers/cart_controller.rb
Ruby
<|file_sep|>original/app/views/administrations/_list.html.haml %th.col-xs-2 Dossier en cours - @admins.each do |admin| %tr %td = admin.email %td - unless admin.last_sign_in_at.nil? = time_ago_in_words(l(admin.last_sign_in_at, format: "%d/%...
%th.col-xs-2 Dossier en cours - @admins.each do |admin| %tr %td = admin.email %td - unless admin.last_sign_in_at.nil? = time_ago_in_words(l(admin.last_sign_in_at, format: "%d/%m/%Y %H:%M UTC +02:00")) ( = admin....
<|file_sep|>original/app/views/administrations/_list.html.haml %th.col-xs-2 Dossier en cours - @admins.each do |admin| %tr %td = admin.email %td - unless admin.last_sign_in_at.nil? = time_ago_in_words(l(admin.last_sign_in_at, format: "%d/%...
df731cb895d07850bbf145e00f6f62351e922687
app/views/administrations/_list.html.haml
app/views/administrations/_list.html.haml
Haml
<|file_sep|>original/requirements.txt ago==0.0.9 cffi==1.10.0 Flask==0.12.2 Flask-Script==2.0.5 Flask-WTF==0.14.2 Flask-Login==0.4.0 boto3==1.4.6 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.3 pyexcel-io==0.4.4 pyexcel-xls==0.4.1 pyexcel-xlsx==0.4.1 pyexcel-ods3==0.4.1 pytz==2017.2 six==1.10.0 gunicorn==19.7.1 ...
ago==0.0.9 cffi==1.10.0 Flask==0.12.2 Flask-Script==2.0.5 Flask-WTF==0.14.2 Flask-Login==0.4.0 boto3==1.4.7 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.3 pyexcel-io==0.4.4 pyexcel-xls==0.4.1 pyexcel-xlsx==0.4.1 pyexcel-ods3==0.4.1 pytz==2017.2 six==1.10.0 gunicorn==19.7.1 whitenoise==3.3.0 #manages static ass...
<|file_sep|>original/requirements.txt ago==0.0.9 cffi==1.10.0 Flask==0.12.2 Flask-Script==2.0.5 Flask-WTF==0.14.2 Flask-Login==0.4.0 boto3==1.4.6 py-gfm==0.1.3 blinker==1.4 lxml==3.8.0 pyexcel==0.5.3 pyexcel-io==0.4.4 pyexcel-xls==0.4.1 pyexcel-xlsx==0.4.1 pyexcel-ods3==0.4.1 pytz==2017.2 six==1.10.0 gunicorn==19.7.1 ...
3a49580a42d28c05229c013d4637bee83eb1b71c
requirements.txt
requirements.txt
Text
<|file_sep|>.travis.yml.diff original: - "2.6" updated: <|file_sep|>.travis.yml.diff original: - "3.3" updated: <|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.3" - "3.4" - "3.6" - "pypy" install: - pip install -r requirements-dev.txt - python setup.py install script...
language: python python: - "2.7" - "3.4" - "3.6" - "3.7" - "pypy" install: - pip install -r requirements-dev.txt - python setup.py install script: paver test_all
<|file_sep|>.travis.yml.diff original: - "2.6" updated: <|file_sep|>.travis.yml.diff original: - "3.3" updated: <|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.3" - "3.4" - "3.6" - "pypy" install: - pip install -r requirements-dev.txt - python setup.py install script...
4eca0fdeec542fac03862d13ca5b437b6f9bc842
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java <|file_sep|>current/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java <|file_sep|>updated/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/Davi...
package com.github.conradoqg.studydsa.hackerrank.challenges.ctci; import java.util.HashMap; import java.util.Scanner; public class DavisStaircase { private static HashMap<Integer, Integer> cache = new HashMap<Integer, Integer>(); private static int calculateCombinatoryFor(int n) { int ways = 0; ...
<|file_sep|>original/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java <|file_sep|>current/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java <|file_sep|>updated/src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/Davi...
cc4e4b8f3d6b352fafe7196bcb9f97b3e7f26ed3
src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java
src/main/java/com/github/conradoqg/studydsa/hackerrank/challenges/ctci/DavisStaircase.java
Java
<|file_sep|>.travis.yml.diff original: updated: on: branch: deploy <|file_sep|>original/.travis.yml region: "us-east-1" function_name: "blog-martincostello-com-redirect-folders" role: "arn:aws:iam::492538393790:role/service-role/lambda_basic_execution_cloudfront_edge" handler_name: "handler" ...
module_name: "cloudfront-folders" timeout: 1, runtime: "nodejs10.x" zip: "cloudfront-folders.js" publish: true on: branch: deploy - provider: lambda access_key_id: $AWS_S3_ACCESS_KEY_ID secret_access_key: $AWS_S3_SECRET_ACCESS_KEY region: "us-east-1" function_name: "blog-...
<|file_sep|>.travis.yml.diff original: updated: on: branch: deploy <|file_sep|>original/.travis.yml region: "us-east-1" function_name: "blog-martincostello-com-redirect-folders" role: "arn:aws:iam::492538393790:role/service-role/lambda_basic_execution_cloudfront_edge" handler_name: "handler" ...
38405e301a7629e309e2bbb3dfd04d670079af14
.travis.yml
.travis.yml
YAML
<|file_sep|>original/tasks/run-buildpacks-ci-unit-specs/task.yml image_resource: type: docker-image source: repository: cfbuildpacks/ci inputs: - name: buildpacks-ci params: TERM: xterm-color run: path: bash args: - "-cl" - | set -ex pushd buildpacks-ci bundle exec rspec --ta...
image_resource: type: docker-image source: repository: cfbuildpacks/ci inputs: - name: buildpacks-ci params: TERM: xterm-color run: path: bash args: - "-cl" - | set -ex pushd buildpacks-ci bundle exec rspec --tag ~fly pushd dockerfiles/depwatcher crystal sha...
<|file_sep|>original/tasks/run-buildpacks-ci-unit-specs/task.yml image_resource: type: docker-image source: repository: cfbuildpacks/ci inputs: - name: buildpacks-ci params: TERM: xterm-color run: path: bash args: - "-cl" - | set -ex pushd buildpacks-ci bundle exec rspec --ta...
0bdac15369861233f537abb5153e1a1ad67dbc5f
tasks/run-buildpacks-ci-unit-specs/task.yml
tasks/run-buildpacks-ci-unit-specs/task.yml
YAML
<|file_sep|>original/lib/bn-to-num.js 'use strict' const sign = require('./bn-sign') module.exports = bn2num //TODO: Make this better function bn2num(b) { var l = b.length var words = b.words var out = 0 if (l === 1) { out = words[0] } else if (l === 2) { out = words[0] + (words[1] * 0x4000000) }...
'use strict' var sign = require('./bn-sign') module.exports = bn2num //TODO: Make this better function bn2num(b) { var l = b.length var words = b.words var out = 0 if (l === 1) { out = words[0] } else if (l === 2) { out = words[0] + (words[1] * 0x4000000) } else { for (var i = 0; i < l; i++) ...
<|file_sep|>original/lib/bn-to-num.js 'use strict' const sign = require('./bn-sign') module.exports = bn2num //TODO: Make this better function bn2num(b) { var l = b.length var words = b.words var out = 0 if (l === 1) { out = words[0] } else if (l === 2) { out = words[0] + (words[1] * 0x4000000) }...
7150f4251393ebcf070fc61329ef0c4e979c9c08
lib/bn-to-num.js
lib/bn-to-num.js
JavaScript
<|file_sep|>test/har/bestpractice/unnecessaryHeadersTest.js.diff original: 7, updated: 17, <|file_sep|>original/test/har/bestpractice/unnecessaryHeadersTest.js 'use strict'; let assert = require('assert'); let har = require('../../help/har'); describe('Investigate response headers for headers we do no...
'use strict'; let assert = require('assert'); let har = require('../../help/har'); describe('Investigate response headers for headers we do not need', function() { it('We should find headers that we do not need', function() { return har.firstAdviceForTestFile('unnecessaryHeaders.har').then(result => { ass...
<|file_sep|>test/har/bestpractice/unnecessaryHeadersTest.js.diff original: 7, updated: 17, <|file_sep|>original/test/har/bestpractice/unnecessaryHeadersTest.js 'use strict'; let assert = require('assert'); let har = require('../../help/har'); describe('Investigate response headers for headers we do no...
13216054f20d5844bdb0b092c871131dabe24fce
test/har/bestpractice/unnecessaryHeadersTest.js
test/har/bestpractice/unnecessaryHeadersTest.js
JavaScript
<|file_sep|>original/circle.yml only: - master # Configure the virtual machine. Set a Java 8 environment. machine: java: version: oraclejdk8 # Custom Android dependency config dependencies: name: Install Android Dependencies pre: - echo $ANDROID_SDK_LICENSE > $HOME/$CIRCLE_PROJECT_REPONA...
only: - master # Configure the virtual machine. Set a Java 8 environment. machine: java: version: oraclejdk8 # Custom Android dependency config dependencies: pre: - echo $ANDROID_SDK_LICENSE > $HOME/$CIRCLE_PROJECT_REPONAME/android-sdk-license - echo $ANDROID_SDK_PREVIEW_LICENSE > $HOM...
<|file_sep|>original/circle.yml only: - master # Configure the virtual machine. Set a Java 8 environment. machine: java: version: oraclejdk8 # Custom Android dependency config dependencies: name: Install Android Dependencies pre: - echo $ANDROID_SDK_LICENSE > $HOME/$CIRCLE_PROJECT_REPONA...
8ec17181ac0dc18313a7d01566421ec8d248cac6
circle.yml
circle.yml
YAML
<|file_sep|>client/package.json.diff original: updated: "react-scripts": "1.0.7", <|file_sep|>original/client/package.json "process-nextick-args": "^1.0.7", "react": "^15.6.1", "react-bootstrap": "^0.31.0", "react-dom": "^15.6.1", "util-deprecate": "^1.0.2" }, "devDependencies": { "chai...
"process-nextick-args": "^1.0.7", "react": "^15.6.1", "react-bootstrap": "^0.31.0", "react-dom": "^15.6.1", "react-scripts": "1.0.7", "util-deprecate": "^1.0.2" }, "devDependencies": { "chai": "^4.0.2", "eslint": "^4.0.0", "sinon": "^2.3.5", "wdio-mocha-framework": "^0.5.10",...
<|file_sep|>client/package.json.diff original: updated: "react-scripts": "1.0.7", <|file_sep|>original/client/package.json "process-nextick-args": "^1.0.7", "react": "^15.6.1", "react-bootstrap": "^0.31.0", "react-dom": "^15.6.1", "util-deprecate": "^1.0.2" }, "devDependencies": { "chai...
de91949832b7e50e698f395c1a87c3aa0a812925
client/package.json
client/package.json
JSON
<|file_sep|>original/packages/octarine/buildinfo.json { "docker": "golang:1.6", "single_source" : { "kind": "git", "git": "https://github.com/dcos/octarine.git", "ref": "2fe29e69e636157b481a4c2cfb6b0a55920e7644", "ref_origin": "master" } } <|file_sep|>current/packages/octarine/buildinfo.json { "...
{ "docker": "golang:1.6", "single_source" : { "kind": "git", "git": "https://github.com/dcos/octarine.git", "ref": "426a6db3ec0ea4a86af05a6c7585722e4d636e3f", "ref_origin": "master" } }
<|file_sep|>original/packages/octarine/buildinfo.json { "docker": "golang:1.6", "single_source" : { "kind": "git", "git": "https://github.com/dcos/octarine.git", "ref": "2fe29e69e636157b481a4c2cfb6b0a55920e7644", "ref_origin": "master" } } <|file_sep|>current/packages/octarine/buildinfo.json { "...
9e226ff9ac9ed53e0675fc28bd1f35fe3deb73b6
packages/octarine/buildinfo.json
packages/octarine/buildinfo.json
JSON
<|file_sep|>django_prometheus/migrations.py.diff original: from django.db.migrations.executor import MigrationExecutor updated: <|file_sep|>original/django_prometheus/migrations.py unapplied_migrations.labels(alias).set(len(plan)) applied_migrations.labels(alias).set(len( executor.loader.applied_migrat...
applied_migrations.labels(alias).set(len( executor.loader.applied_migrations)) def ExportMigrations(): """Exports counts of unapplied migrations. This is meant to be called during app startup, ideally by django_prometheus.apps.AppConfig. """ # Import MigrationExecutor lazily. Migrati...
<|file_sep|>django_prometheus/migrations.py.diff original: from django.db.migrations.executor import MigrationExecutor updated: <|file_sep|>original/django_prometheus/migrations.py unapplied_migrations.labels(alias).set(len(plan)) applied_migrations.labels(alias).set(len( executor.loader.applied_migrat...
9dbaf58fd3dc9c3c976afcbf264fa6cfff09a7a0
django_prometheus/migrations.py
django_prometheus/migrations.py
Python
<|file_sep|>original/dev-requirements.txt autoflake==1.2 check-manifest==0.37 codecov==2.0.15 # Upload coverage data doc8==0.8.0 dodgy==0.1.9 # Look for uploaded secrets dulwich==0.19.11 flake8-commas==2.0.0 # Require silicon valley commas flake8-quotes==1.0.0 # Require single quotes flake8==3.7.7 # Lint isort==4.3...
autoflake==1.2 check-manifest==0.37 codecov==2.0.15 # Upload coverage data doc8==0.8.0 dodgy==0.1.9 # Look for uploaded secrets dulwich==0.19.11 flake8-commas==2.0.0 # Require silicon valley commas flake8-quotes==2.0.0 # Require single quotes flake8==3.7.7 # Lint isort==4.3.17 # Lint imports mypy==0.700 # Type ch...
<|file_sep|>original/dev-requirements.txt autoflake==1.2 check-manifest==0.37 codecov==2.0.15 # Upload coverage data doc8==0.8.0 dodgy==0.1.9 # Look for uploaded secrets dulwich==0.19.11 flake8-commas==2.0.0 # Require silicon valley commas flake8-quotes==1.0.0 # Require single quotes flake8==3.7.7 # Lint isort==4.3...
3d10eff4338a535a13d2e51ddda6eae145d76f12
dev-requirements.txt
dev-requirements.txt
Text
<|file_sep|>original/src/client/assets/javascripts/app/routes.js import React from 'react'; import { Route, Switch, Redirect, } from 'react-router-dom'; import ComingSoon from 'features/ComingSoon'; import NotFoundView from 'components/NotFound'; import Beta from 'features/Beta'; export default ( <Switch> ...
import React from 'react'; import { Route, Switch, Redirect, } from 'react-router-dom'; import ComingSoon from 'features/ComingSoon'; import NotFoundView from 'components/NotFound'; import Beta from 'features/Beta'; export default ( <Switch> <Route exact path="/" component={Beta} /> <Route path='/lega...
<|file_sep|>original/src/client/assets/javascripts/app/routes.js import React from 'react'; import { Route, Switch, Redirect, } from 'react-router-dom'; import ComingSoon from 'features/ComingSoon'; import NotFoundView from 'components/NotFound'; import Beta from 'features/Beta'; export default ( <Switch> ...
06b9503f1762a2b78df0996feb5a472e8fa62d57
src/client/assets/javascripts/app/routes.js
src/client/assets/javascripts/app/routes.js
JavaScript
<|file_sep|>original/lib/haml_coffee_assets/action_view/resolver.rb require "action_view" module HamlCoffeeAssets module ActionView # Custom resolver to prevent Haml Coffee templates from being rendered by # Rails for non-HTML formats, since a template name without a MIME type # in it would normally be a...
require "action_view" module HamlCoffeeAssets module ActionView # Custom resolver to prevent Haml Coffee templates from being rendered by # Rails for non-HTML formats, since a template name without a MIME type # in it would normally be a fallback for all formats. # class Resolver < ::ActionView::...
<|file_sep|>original/lib/haml_coffee_assets/action_view/resolver.rb require "action_view" module HamlCoffeeAssets module ActionView # Custom resolver to prevent Haml Coffee templates from being rendered by # Rails for non-HTML formats, since a template name without a MIME type # in it would normally be a...
ff98d9e487fa411f02f444c95c70ccc7a75e588b
lib/haml_coffee_assets/action_view/resolver.rb
lib/haml_coffee_assets/action_view/resolver.rb
Ruby
<|file_sep|>original/docs/conventions.adoc After installation Dogen removes newly added repo files from the `/etc/yum.repos.d` directory *automatically*. If you do not want to have these files removed after installation -- you need to make your repo files part of some package and install them manually. ### Things to ...
### Things to note 1. This feature covers only the situation where you want to add a custom repo file at *build time* but you do not want it to be enabled in containers. 2. Repo file name should be the *same* as the repo id in the repository (the name between square brackets). 3. There should be *only one* repo...
<|file_sep|>original/docs/conventions.adoc After installation Dogen removes newly added repo files from the `/etc/yum.repos.d` directory *automatically*. If you do not want to have these files removed after installation -- you need to make your repo files part of some package and install them manually. ### Things to ...
356a692b14309ade9ed368430d0402d089b64de2
docs/conventions.adoc
docs/conventions.adoc
AsciiDoc
<|file_sep|>original/README.md - Quick Excuse - No contraints - Detailed Excuse - Restrict sentence structure by eliminating based on user input - Restrict words in sentence structure by user input ### Phase 2 Save - Can save your excuses - add dates and times ### Phase 3 Extra - Calendar to show excuses for ...
- Restrict sentence structure by eliminating based on user input - Restrict words in sentence structure by user input ### Phase 2 Save - Can save your excuses - add dates and times ### Phase 3 Extra - Calendar to show excuses for certain days/times - Rate excuses as good or bad ## Screenshot ![Justify screensh...
<|file_sep|>original/README.md - Quick Excuse - No contraints - Detailed Excuse - Restrict sentence structure by eliminating based on user input - Restrict words in sentence structure by user input ### Phase 2 Save - Can save your excuses - add dates and times ### Phase 3 Extra - Calendar to show excuses for ...
0ad088568b9c7827e393016a42d5376f120265d0
README.md
README.md
Markdown