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|>public/js/app.js.diff original: $('.m-scooch-controls a').click(function() { updated: $('.m-scooch').on('afterSlide', function(e, previousSlide, nextSlide) { <|file_sep|>public/js/app.js.diff original: updated: <|file_sep|>original/public/js/app.js }); // Pseusocode // // Create array of images in car...
$('.m-scooch').scooch(); if ( $('.m-item:first-child' ).hasClass('m-active') ) { $('.m-scooch-controls [data-m-slide="prev"]').addClass('hide'); }; $('.m-scooch').on('afterSlide', function(e, previousSlide, nextSlide) { $('.m-scooch-controls a').removeClass('hide'); if ( $('.m-item:first-child' ).hasCla...
<|file_sep|>public/js/app.js.diff original: $('.m-scooch-controls a').click(function() { updated: $('.m-scooch').on('afterSlide', function(e, previousSlide, nextSlide) { <|file_sep|>public/js/app.js.diff original: updated: <|file_sep|>original/public/js/app.js }); // Pseusocode // // Create array of images in car...
7620e42c44489f6c3c69269d61a058dc1b73c2b9
public/js/app.js
public/js/app.js
JavaScript
<|file_sep|>vim/plug.vim.diff original: " Jedi autocomplete updated: " Jedi autocomplete for Python <|file_sep|>original/vim/plug.vim " PEP8 compliant indenting Plug 'Vimjas/vim-python-pep8-indent' " Jekyll Liquid syntax Plug 'tpope/vim-liquid' " Conky Syntax Plug 'smancill/conky-syntax.vim' " Mediawiki Syntax ...
" Jekyll Liquid syntax Plug 'tpope/vim-liquid' " Conky Syntax Plug 'smancill/conky-syntax.vim' " Mediawiki Syntax Plug 'chikamichi/mediawiki.vim' " Neovim only if has("nvim") " Autocomplete function! DoRemote(arg) UpdateRemotePlugins endfunction Plug 'Shougo/deoplete.nvim', { 'do': function('Do...
<|file_sep|>vim/plug.vim.diff original: " Jedi autocomplete updated: " Jedi autocomplete for Python <|file_sep|>original/vim/plug.vim " PEP8 compliant indenting Plug 'Vimjas/vim-python-pep8-indent' " Jekyll Liquid syntax Plug 'tpope/vim-liquid' " Conky Syntax Plug 'smancill/conky-syntax.vim' " Mediawiki Syntax ...
7ae4fa1004ac53dd0ee2ff59e76b84c7d1295408
vim/plug.vim
vim/plug.vim
VimL
<|file_sep|>original/lib/model/doctrine/PluginComuna.class.php /** * PluginComuna * * This class has been auto-generated by the Doctrine ORM Framework * * @package ##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## <##EMAIL##> * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwag...
/** * PluginComuna * * This class has been auto-generated by the Doctrine ORM Framework * * @package ##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## <##EMAIL##> * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class PluginComuna extends BaseComuna { publ...
<|file_sep|>original/lib/model/doctrine/PluginComuna.class.php /** * PluginComuna * * This class has been auto-generated by the Doctrine ORM Framework * * @package ##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## <##EMAIL##> * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwag...
432333f8b8ab917463269bc4b36744a1faaa9ae8
lib/model/doctrine/PluginComuna.class.php
lib/model/doctrine/PluginComuna.class.php
PHP
<|file_sep|>original/requirements_dev.txt argparse==1.4.0 bumpversion==0.5.3 coverage==4.3.4 cryptography==1.7.1 flake8==3.3.0 flask==0.12 mock==2.0.0 pip==9.0.1 plumbum==1.6.3 pre-commit==0.13.3 pytest==3.0.6 PyYAML==3.12 Sphinx==1.5.3 tox==2.6.0 watchdog==0.8.3 wheel==0.29.0 <|file_sep|>current/requirements_dev.txt a...
argparse==1.4.0 bumpversion==0.5.3 coverage==4.3.4 cryptography==1.7.1 flake8==3.3.0 flask==1.1.1 mock==2.0.0 pip==9.0.1 plumbum==1.6.3 pre-commit==0.13.3 pytest==3.0.6 PyYAML==3.12 Sphinx==1.5.3 tox==2.6.0 watchdog==0.8.3 wheel==0.29.0
<|file_sep|>original/requirements_dev.txt argparse==1.4.0 bumpversion==0.5.3 coverage==4.3.4 cryptography==1.7.1 flake8==3.3.0 flask==0.12 mock==2.0.0 pip==9.0.1 plumbum==1.6.3 pre-commit==0.13.3 pytest==3.0.6 PyYAML==3.12 Sphinx==1.5.3 tox==2.6.0 watchdog==0.8.3 wheel==0.29.0 <|file_sep|>current/requirements_dev.txt a...
a0072e174ec47aa46f7a0cda7993a39cc6252d15
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>source/api_reference.rst.diff original: updated: api-events <|file_sep|>original/source/api_reference.rst .. _api-reference: API Reference ############## .. toctree:: api-intro api-sending api-domains api-stats api-events api-suppressions api-routes api-webhooks api-mailing...
.. _api-reference: API Reference ############## .. toctree:: api-intro api-sending api-domains api-events api-stats api-tags api-suppressions api-routes api-webhooks api-mailinglists api-email-validation
<|file_sep|>source/api_reference.rst.diff original: updated: api-events <|file_sep|>original/source/api_reference.rst .. _api-reference: API Reference ############## .. toctree:: api-intro api-sending api-domains api-stats api-events api-suppressions api-routes api-webhooks api-mailing...
8a2db1247ec45d86e738aadfa0f591ad56d17948
source/api_reference.rst
source/api_reference.rst
reStructuredText
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.12" - "4" - "6" - "8" - stable <|file_sep|>current/.travis.yml language: node_js node_js: - "0.12" - "4" - "6" - "8" - stable <|file_sep|>updated/.travis.yml
language: node_js node_js: - "4" - "6" - "8" - stable
<|file_sep|>original/.travis.yml language: node_js node_js: - "0.12" - "4" - "6" - "8" - stable <|file_sep|>current/.travis.yml language: node_js node_js: - "0.12" - "4" - "6" - "8" - stable <|file_sep|>updated/.travis.yml language: node_js node_js: - "4" - "6" - "8" - stable
deb79ca1bf022a41537234dd2d24b5aead34752e
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml - 5.5 - 5.6 - hhvm - nightly env: - EVENT_STORE_VERSION='v3.0.3' - EVENT_STORE_VERSION='v3.0.4' - EVENT_STORE_VERSION='v3.0.5' matrix: allow_failures: - php: hhvm - php: nightly before_install: - wget http://download.geteventstore.c...
- 5.5 - 5.6 - hhvm - nightly env: - EVENT_STORE_VERSION='v3.0.3' - EVENT_STORE_VERSION='v3.0.4' - EVENT_STORE_VERSION='v3.0.5' sudo: false matrix: allow_failures: - php: hhvm - php: nightly before_install: - wget http://download.geteventstore.com/binaries/EventSto...
<|file_sep|>original/.travis.yml - 5.5 - 5.6 - hhvm - nightly env: - EVENT_STORE_VERSION='v3.0.3' - EVENT_STORE_VERSION='v3.0.4' - EVENT_STORE_VERSION='v3.0.5' matrix: allow_failures: - php: hhvm - php: nightly before_install: - wget http://download.geteventstore.c...
ef9dc68267eb0edd1b0b863366f3f3e85939a59d
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml language: go <|file_sep|>current/.travis.yml language: go <|file_sep|>updated/.travis.yml
language: go matrix: include: - go: "tip" - go: "1.x" - go: "1.10" - go: "1.9" - go: "1.8" allow_failures: - go: tip
<|file_sep|>original/.travis.yml language: go <|file_sep|>current/.travis.yml language: go <|file_sep|>updated/.travis.yml language: go matrix: include: - go: "tip" - go: "1.x" - go: "1.10" - go: "1.9" - go: "1.8" allow_failures: - go: tip
15f4ab9aaf3ffddbe801b2422dd52cee15549f64
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 5.7.0 script: - echo "nothing" - echo "more" <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 5.7.0 script: - echo "nothing" - echo "more" <|file_sep|>updated/.travis.yml
sudo: false language: node_js branches: only: - gh-pages
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - 5.7.0 script: - echo "nothing" - echo "more" <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - 5.7.0 script: - echo "nothing" - echo "more" <|file_sep|>updated/.travis.yml sudo: false language: node_js branc...
0ad35416824e4cc34fe1a6286f7eeba61d819ee8
.travis.yml
.travis.yml
YAML
<|file_sep|>.forestry/settings.yml.diff original: updated: install_dependencies_command: nom install <|file_sep|>original/.forestry/settings.yml match: "**/*.md" templates: - journal - type: document path: data/theme.json label: Theme config upload_dir: uploads public_path: "/uploads" front_matter_path: ''...
match: "**/*.md" templates: - journal - type: document path: data/theme.json label: Theme config upload_dir: uploads public_path: "/uploads" front_matter_path: '' use_front_matter_path: false file_template: ":filename:" instant_preview: true build: preview_command: gridsome build publish_command: gridsome...
<|file_sep|>.forestry/settings.yml.diff original: updated: install_dependencies_command: nom install <|file_sep|>original/.forestry/settings.yml match: "**/*.md" templates: - journal - type: document path: data/theme.json label: Theme config upload_dir: uploads public_path: "/uploads" front_matter_path: ''...
186d4e0cdeb9d64f6d117665189784f15dd8b14e
.forestry/settings.yml
.forestry/settings.yml
YAML
<|file_sep|>original/sources/fr/montpellier.json { "data": "http://opendata.montpelliernumerique.fr/datastore/VilleMTP_MTP_PointAdresse.geojson", "website": "https://www.data.gouv.fr/en/datasets/point-adresse-mtn/", "attribution": "Montpellier Territoire Numérique", "type": "http", "coverage": { ...
{ "data": "http://opendata.montpelliernumerique.fr/datastore/VilleMTP_MTP_PointAdresse.geojson", "website": "https://www.data.gouv.fr/en/datasets/point-adresse-mtn/", "attribution": "Montpellier Territoire Numérique ", "type": "http", "coverage": { "ISO 3166": { "alpha2": "FR-K",...
<|file_sep|>original/sources/fr/montpellier.json { "data": "http://opendata.montpelliernumerique.fr/datastore/VilleMTP_MTP_PointAdresse.geojson", "website": "https://www.data.gouv.fr/en/datasets/point-adresse-mtn/", "attribution": "Montpellier Territoire Numérique", "type": "http", "coverage": { ...
6c03646f81b1436d2116ddd1ab503324cf503345
sources/fr/montpellier.json
sources/fr/montpellier.json
JSON
<|file_sep|>AUTHORS.txt.diff original: Primary Authors: updated: Primary Author: <|file_sep|>original/AUTHORS.txt Primary Authors: Mark Lavin (mlavin) Additional Contributors: Chris McDonald (wraithan) <|file_sep|>current/AUTHORS.txt Primary Author: Mark Lavin (mlavin) Additional Contributors: Chris McDonald (w...
Primary Author: Mark Lavin (mlavin) Additional Contributors: Chris McDonald (wraithan) Tobias McNulty (tobiasmcnulty)
<|file_sep|>AUTHORS.txt.diff original: Primary Authors: updated: Primary Author: <|file_sep|>original/AUTHORS.txt Primary Authors: Mark Lavin (mlavin) Additional Contributors: Chris McDonald (wraithan) <|file_sep|>current/AUTHORS.txt Primary Author: Mark Lavin (mlavin) Additional Contributors: Chris McDonald (w...
2ef3f4753fdace28b65a386394e48e5b2853d2b1
AUTHORS.txt
AUTHORS.txt
Text
<|file_sep|>utils/tests/test_pipeline.py.diff original: updated: import os <|file_sep|>utils/tests/test_pipeline.py.diff original: updated: from django.conf import settings <|file_sep|>utils/tests/test_pipeline.py.diff original: updated: from django.core.management.base import CommandError <|file_sep|>utils/tests/te...
from io import StringIO from django.conf import settings from django.core.management import call_command from django.core.management.base import CommandError from django.test import TestCase class PipelineTestCase(TestCase): def setUp(self): file_path = os.path.join(settings.STATIC_ROOT, 'staticfiles.jso...
<|file_sep|>utils/tests/test_pipeline.py.diff original: updated: import os <|file_sep|>utils/tests/test_pipeline.py.diff original: updated: from django.conf import settings <|file_sep|>utils/tests/test_pipeline.py.diff original: updated: from django.core.management.base import CommandError <|file_sep|>utils/tests/te...
5ae12aa12cef04704ff90071acf098fdfdc7a91a
utils/tests/test_pipeline.py
utils/tests/test_pipeline.py
Python
<|file_sep|>code/csv2map.py.diff original: parser.add_argument('csv', help='CSV file to convert') updated: parser.add_argument('csv', help="""CSV file to convert. Fields are : Index,Illumina_SNP_Name,Alternative_SNP_Name,Chromosome,Build36_Position,Build37_Position,new_rsname,Strand,TopAlleles,ForwardAlleles,De...
import sys import argparse def main(): parser = argparse.ArgumentParser(description='Convert .csv to .map') parser.add_argument('csv', help="""CSV file to convert. Fields are : Index,Illumina_SNP_Name,Alternative_SNP_Name,Chromosome,Build36_Position,Build37_Position,new_rsname,Strand,TopAlleles,ForwardAlleles...
<|file_sep|>code/csv2map.py.diff original: parser.add_argument('csv', help='CSV file to convert') updated: parser.add_argument('csv', help="""CSV file to convert. Fields are : Index,Illumina_SNP_Name,Alternative_SNP_Name,Chromosome,Build36_Position,Build37_Position,new_rsname,Strand,TopAlleles,ForwardAlleles,De...
92eaa47b70d48874da032a21fbbd924936c0d518
code/csv2map.py
code/csv2map.py
Python
<|file_sep|>original/requirements.txt Twisted==17.5.0 beautifulsoup4==4.6.0 psutil==5.2.2 python-dateutil==2.6.1 ply==3.10 enum34==1.1.6 twitter==1.17.1 requests==2.18.3 pytimeparse==1.1.6 pymysql==0.7.11 pycrypto==2.6.1 pyasn1==0.3.2 isodate==0.5.4 jq==0.1.6 google-api-python-client==1.6.2 pyxDamerauLevenshtein==1.4.1...
Twisted==17.5.0 beautifulsoup4==4.6.0 psutil==5.2.2 python-dateutil==2.6.1 ply==3.10 enum34==1.1.6 twitter==1.17.1 requests==2.18.4 pytimeparse==1.1.6 pymysql==0.7.11 pycrypto==2.6.1 pyasn1==0.3.2 isodate==0.5.4 jq==0.1.6 google-api-python-client==1.6.2 pyxDamerauLevenshtein==1.4.1 re2==0.2.22 parsedatetime==2.4 crypto...
<|file_sep|>original/requirements.txt Twisted==17.5.0 beautifulsoup4==4.6.0 psutil==5.2.2 python-dateutil==2.6.1 ply==3.10 enum34==1.1.6 twitter==1.17.1 requests==2.18.3 pytimeparse==1.1.6 pymysql==0.7.11 pycrypto==2.6.1 pyasn1==0.3.2 isodate==0.5.4 jq==0.1.6 google-api-python-client==1.6.2 pyxDamerauLevenshtein==1.4.1...
4f402126661dd1e77002a97918fda14a2fe33c49
requirements.txt
requirements.txt
Text
<|file_sep|>original/README.md # Crumpets ## Install ```bash $ npm install ``` ## Gulp commands Look at the gulpfile to see the commands available but the most important one are ```bash $ gulp # the main task that will watch/compile/reload everything $ gulp build --type dist # creates the minified/concatenated vers...
$ npm install ``` ## Gulp commands Look at the gulpfile to see the commands available but the most important one are ```bash $ gulp # the main task that will watch/compile/reload everything $ gulp build --type dist # creates the minified/concatenated version ``` (If you don't have a global gulp see [1]) ## Run via ...
<|file_sep|>original/README.md # Crumpets ## Install ```bash $ npm install ``` ## Gulp commands Look at the gulpfile to see the commands available but the most important one are ```bash $ gulp # the main task that will watch/compile/reload everything $ gulp build --type dist # creates the minified/concatenated vers...
e78a0fd89b7a717482d185cf77750ae927f53e40
README.md
README.md
Markdown
<|file_sep|>app/grid.rb.diff original: updated: # <|file_sep|>app/grid.rb.diff original: def living_neighbor_cells(x, y) @x = x @y = y neighbors.compact().rmap(&:status).reduce(:+) updated: def each_cell_count(&block) each_cell(&block) <|file_sep|>app/grid.rb.diff original: def neighbors update...
filtered_neighbors = LooplessArray.new neighbor_map(x, y).recurse_each do |c| bounds_check_neighbors(c) && filtered_neighbors << cells[ c[0] ][ c[1] ] end filtered_neighbors end def neighbor_map(x, y) LooplessArray.new [ [x - 1, y - 1], [x - 1, y ], [x - 1, y + 1], [x, ...
<|file_sep|>app/grid.rb.diff original: updated: # <|file_sep|>app/grid.rb.diff original: def living_neighbor_cells(x, y) @x = x @y = y neighbors.compact().rmap(&:status).reduce(:+) updated: def each_cell_count(&block) each_cell(&block) <|file_sep|>app/grid.rb.diff original: def neighbors update...
c30f5025b89c1e2f1d89fc228f6f39ce1e4db55c
app/grid.rb
app/grid.rb
Ruby
<|file_sep|>original/respect.gemspec $:.push File.expand_path("../lib", __FILE__) # The gem's version: require "respect/version" Gem::Specification.new do |s| s.name = "respect" s.version = Respect::VERSION s.authors = ["Nicolas Despres"] s.email = ["nicolas.despres@gmail.com"] s.summar...
$:.push File.expand_path("../lib", __FILE__) # The gem's version: require "respect/version" Gem::Specification.new do |s| s.name = "respect" s.version = Respect::VERSION s.authors = ["Nicolas Despres"] s.email = ["nicolas.despres@gmail.com"] s.summary = "Object schema definition usi...
<|file_sep|>original/respect.gemspec $:.push File.expand_path("../lib", __FILE__) # The gem's version: require "respect/version" Gem::Specification.new do |s| s.name = "respect" s.version = Respect::VERSION s.authors = ["Nicolas Despres"] s.email = ["nicolas.despres@gmail.com"] s.summar...
ca105936b0524ebc2dc99be107231a1b64778cec
respect.gemspec
respect.gemspec
Ruby
<|file_sep|>original/package.json { "scripts": { "test": "mocha", "linter": "eslint .", "coverage": "istanbul cover _mocha", "pretest": "npm run --silent linter" }, "devDependencies": { "eslint": "^3.1.1", "eslint-config-standard": "^5.3.5", "eslint-plugin-promise": "^2.0.0", "esli...
{ "scripts": { "test": "mocha", "cli": "node src/engines/commandline.js", "linter": "eslint .", "coverage": "istanbul cover _mocha", "pretest": "npm run --silent linter" }, "devDependencies": { "eslint": "^3.1.1", "eslint-config-standard": "^5.3.5", "eslint-plugin-promise": "^2.0.0...
<|file_sep|>original/package.json { "scripts": { "test": "mocha", "linter": "eslint .", "coverage": "istanbul cover _mocha", "pretest": "npm run --silent linter" }, "devDependencies": { "eslint": "^3.1.1", "eslint-config-standard": "^5.3.5", "eslint-plugin-promise": "^2.0.0", "esli...
0b0867a8b646abf417ba69242e9098435ab938a2
package.json
package.json
JSON
<|file_sep|>original/build/m4/banshee/dap-mtp.m4 AC_ARG_ENABLE(mtp, AC_HELP_STRING([--disable-mtp], [Disable MTP DAP support]), , enable_mtp="yes") enable_libmtp="${enable_mtp}" PKG_CHECK_MODULES(LIBMTP, libmtp >= $LIBMTP_REQUIRED, enable_libmtp="$enable_libmtp", enable_libmtp=no) if test "x$enable_mtp" = "...
AC_ARG_ENABLE(mtp, AC_HELP_STRING([--disable-mtp], [Disable MTP DAP support]), , enable_mtp="yes") enable_libmtp="${enable_mtp}" PKG_CHECK_MODULES(LIBMTP, libmtp >= $LIBMTP_REQUIRED, enable_libmtp="$enable_libmtp", enable_libmtp=no) if test "x$enable_mtp" = "xyes" -a "x$enable_libmtp" = "xno"; then AC_MSG...
<|file_sep|>original/build/m4/banshee/dap-mtp.m4 AC_ARG_ENABLE(mtp, AC_HELP_STRING([--disable-mtp], [Disable MTP DAP support]), , enable_mtp="yes") enable_libmtp="${enable_mtp}" PKG_CHECK_MODULES(LIBMTP, libmtp >= $LIBMTP_REQUIRED, enable_libmtp="$enable_libmtp", enable_libmtp=no) if test "x$enable_mtp" = "...
9c9b33154a6524c1a493f81db11e28e11f880518
build/m4/banshee/dap-mtp.m4
build/m4/banshee/dap-mtp.m4
M4
<|file_sep|>CMakeLists.txt.diff original: set(library_name "pam_kwallet") updated: add_definitions(-DKWALLET5) set(library_name "pam_kwallet5") <|file_sep|>original/CMakeLists.txt include_directories ( ${PAM_INCLUDE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set(library_name "pam_kwallet") if ("$...
include_directories ( ${PAM_INCLUDE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) add_definitions(-DKWALLET5) set(library_name "pam_kwallet5") if ("${KWALLET4}" STREQUAL "1") remove_definitions(-DKWALLET5) set(library_name "pam_kwallet") endif() set(pam_kwallet_SRCS pam_kwallet.c ) add_...
<|file_sep|>CMakeLists.txt.diff original: set(library_name "pam_kwallet") updated: add_definitions(-DKWALLET5) set(library_name "pam_kwallet5") <|file_sep|>original/CMakeLists.txt include_directories ( ${PAM_INCLUDE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set(library_name "pam_kwallet") if ("$...
3abf505717170085d9c3c05b6e21e882911d5201
CMakeLists.txt
CMakeLists.txt
Text
<|file_sep|>original/ansible/playbook-trove.yml become: yes gather_facts: yes vars_files: - vars/main.yml roles: - role: image-name - role: default-user - role: systemd-networkd when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '17') or (ansibl...
gather_facts: yes vars_files: - vars/main.yml roles: - role: image-name - role: default-user - role: systemd-networkd when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '17') or (ansible_distribution == 'Fedora' and ansible_distribution_version < ...
<|file_sep|>original/ansible/playbook-trove.yml become: yes gather_facts: yes vars_files: - vars/main.yml roles: - role: image-name - role: default-user - role: systemd-networkd when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '17') or (ansibl...
04f1acb18a1152ce842f1f15cec2ce1229ea9bb8
ansible/playbook-trove.yml
ansible/playbook-trove.yml
YAML
<|file_sep|>original/backend/app/views/comable/admin/pages/edit.slim .comable-page .comable-main-fixed-top .comable-page-heading ul.pull-right.list-inline li.dropdown = link_to '#', class: 'btn btn-default', 'data-toggle' => 'dropdown' do i.fa.fa-bars ul.dropdown-menu...
.comable-page .comable-main-fixed-top .comable-page-heading ul.pull-right.list-inline li = link_to comable.page_path(@page), class: 'btn btn-default', target: '_blank' do i.fa.fa-external-link> = Comable.t('admin.preview') li = link_to_save ...
<|file_sep|>original/backend/app/views/comable/admin/pages/edit.slim .comable-page .comable-main-fixed-top .comable-page-heading ul.pull-right.list-inline li.dropdown = link_to '#', class: 'btn btn-default', 'data-toggle' => 'dropdown' do i.fa.fa-bars ul.dropdown-menu...
f30aa0884f07b46418a5cd95f8ac157be2b4d96c
backend/app/views/comable/admin/pages/edit.slim
backend/app/views/comable/admin/pages/edit.slim
Slim
<|file_sep|>test/test_encode_atom.c.diff original: unsigned char output[6]; updated: #define EXPECTED_LENGTH 2 #define EXPECTED "id" #define OUTPUT_SIZE (1 + 1 + 2 + EXPECTED_LENGTH) unsigned char output[OUTPUT_SIZE]; <|file_sep|>test/test_encode_atom.c.diff original: size_t expected_length = 2; if (output[3] != ex...
} test_strings((const char *)(output+4),EXPECTED,expected_length); } int main() { bert_encoder_t *encoder = test_encoder(output,OUTPUT_SIZE); bert_data_t *data; if (!(data = bert_data_create_atom(EXPECTED))) { test_fail("malloc failed"); } test_encoder_push(encoder,data); bert_data_destroy(data); bert_...
<|file_sep|>test/test_encode_atom.c.diff original: unsigned char output[6]; updated: #define EXPECTED_LENGTH 2 #define EXPECTED "id" #define OUTPUT_SIZE (1 + 1 + 2 + EXPECTED_LENGTH) unsigned char output[OUTPUT_SIZE]; <|file_sep|>test/test_encode_atom.c.diff original: size_t expected_length = 2; if (output[3] != ex...
754fbe3028dff6448a4d50ead35911578f91c7d8
test/test_encode_atom.c
test/test_encode_atom.c
C
<|file_sep|>packages/la/language-ats.yaml.diff original: hash: b3d156ef9e6915e8c6e8507f7535a327e84ba8d157ed28d82f63f396747b10cb updated: hash: 5ccbe95efb23df645bd8ca7835e59bb4c9b4a15f9242cac542b37e169c547b7b <|file_sep|>packages/la/language-ats.yaml.diff original: updated: - '0.1.0.6' <|file_sep|>original/packages/la/...
deepseq: -any recursion-schemes: -any all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' - '0.1.0.6' author: Vanessa McHale latest: '0.1.0.6' description-type: markdown description: ! '# language-ats ## Installation ## Configuration '
<|file_sep|>packages/la/language-ats.yaml.diff original: hash: b3d156ef9e6915e8c6e8507f7535a327e84ba8d157ed28d82f63f396747b10cb updated: hash: 5ccbe95efb23df645bd8ca7835e59bb4c9b4a15f9242cac542b37e169c547b7b <|file_sep|>packages/la/language-ats.yaml.diff original: updated: - '0.1.0.6' <|file_sep|>original/packages/la/...
f0e61fdcd3f370deda84d30cbf490ad54fd6ff46
packages/la/language-ats.yaml
packages/la/language-ats.yaml
YAML
<|file_sep|>original/src/components/Experiment/Playground/MediaDevices/MediaDevicesControls.js alt={`Snap ${index}`} key={index} src={snap} /> )) } </div> {areMultipleVideoDevices && <button className="experiment__playground__content__but...
alt={`Snap ${index}`} key={index} src={snap} /> )) } </div> {areMultipleVideoDevices && <button className="experiment__playground__content__button" onClick={handleVideoDeviceChange} > <Icon name="switch_vid...
<|file_sep|>original/src/components/Experiment/Playground/MediaDevices/MediaDevicesControls.js alt={`Snap ${index}`} key={index} src={snap} /> )) } </div> {areMultipleVideoDevices && <button className="experiment__playground__content__but...
fbb153862dd281c6f491ba0a93955fe9e6b38157
src/components/Experiment/Playground/MediaDevices/MediaDevicesControls.js
src/components/Experiment/Playground/MediaDevices/MediaDevicesControls.js
JavaScript
<|file_sep|>vagrant/dev/puphpet/files/exec-once/003-wdn.sh.diff original: updated: echo "Updating the wdn templates, this can take a long time..." <|file_sep|>original/vagrant/dev/puphpet/files/exec-once/003-wdn.sh wget --quiet -r -nH -np -l 15 --cut-dirs=1 --reject "index.html*,*.LCK" http://wdn.unl.edu/wdn/ -P /var...
echo "Updating the wdn templates, this can take a long time..." wget --quiet -r -nH -np -l 15 --cut-dirs=1 --reject "index.html*,*.LCK" http://wdn.unl.edu/wdn/ -P /var/www/html/www/wdn/ touch /var/www/html/www/wdn/templates_4.0/includes/wdnResources.html echo "Finished updating the WDN templates"
<|file_sep|>vagrant/dev/puphpet/files/exec-once/003-wdn.sh.diff original: updated: echo "Updating the wdn templates, this can take a long time..." <|file_sep|>original/vagrant/dev/puphpet/files/exec-once/003-wdn.sh wget --quiet -r -nH -np -l 15 --cut-dirs=1 --reject "index.html*,*.LCK" http://wdn.unl.edu/wdn/ -P /var...
dcddb292aaf2b6466bb8692635fc68ebde6c3637
vagrant/dev/puphpet/files/exec-once/003-wdn.sh
vagrant/dev/puphpet/files/exec-once/003-wdn.sh
Shell
<|file_sep|>original/lib/jsonapi/utils/request.rb module Utils module Request def jsonapi_request_handling setup_request check_request end def setup_request @request ||= JSONAPI::Request.new( params, context: context, key_for...
module Utils module Request def jsonapi_request_handling setup_request check_request end def setup_request @request ||= JSONAPI::Request.new( params.dup, context: context, key_formatter: key_formatter, server_erro...
<|file_sep|>original/lib/jsonapi/utils/request.rb module Utils module Request def jsonapi_request_handling setup_request check_request end def setup_request @request ||= JSONAPI::Request.new( params, context: context, key_for...
852e9001482813a222e5fe3ceaeef23b15981f37
lib/jsonapi/utils/request.rb
lib/jsonapi/utils/request.rb
Ruby
<|file_sep|>original/source/documentation/troubleshooting.html.md wiki_revision_count: 19 wiki_last_updated: 2013-08-28 --- # Troubleshooting Every piece of software as complex as OpenStack has some pitfalls in its usage. We will use this page to collect tips and tricks related to installation and configuration issue...
--- title: Troubleshooting category: documentation authors: dneary, jasonbrooks, msolberg, rbowen wiki_category: Documentation wiki_title: Troubleshooting wiki_revision_count: 19 wiki_last_updated: 2013-08-28 --- # Troubleshooting Every piece of software as complex as OpenStack has some pitfalls in its usage. We will...
<|file_sep|>original/source/documentation/troubleshooting.html.md wiki_revision_count: 19 wiki_last_updated: 2013-08-28 --- # Troubleshooting Every piece of software as complex as OpenStack has some pitfalls in its usage. We will use this page to collect tips and tricks related to installation and configuration issue...
c68a878166c219532ed16ae89665caf92f382629
source/documentation/troubleshooting.html.md
source/documentation/troubleshooting.html.md
Markdown
<|file_sep|>Extension.php.diff original: updated: use Bolt\Extensions\Snippets\Location as SnippetLocation; <|file_sep|>Extension.php.diff original: if ($this->app['config']->getWhichEnd() == 'frontend') { $this->addJavascript('assets/browserponies.js', true); $this->addJavascript('asse...
public function getName() { return "BoltPonies"; } public function initialize() { // Add extension's Twig path $this->app['twig.loader.filesystem']->addPath(__DIR__ . '/twig/'); // Render the HTML from the Twig file $html = $this->app['render']->render('_pon...
<|file_sep|>Extension.php.diff original: updated: use Bolt\Extensions\Snippets\Location as SnippetLocation; <|file_sep|>Extension.php.diff original: if ($this->app['config']->getWhichEnd() == 'frontend') { $this->addJavascript('assets/browserponies.js', true); $this->addJavascript('asse...
40d25974befc6c1129f4d81d6dbdb23d6c87a304
Extension.php
Extension.php
PHP
<|file_sep|>gui/test/server_control/test_obmc_gui_virtual_media.robot.diff original: Verify Existence Of All Sections In Virtaul Media Page [Documentation] Verify existence of all sections in virtaul media page. [Tags] Verify_Existence_Of_All_Sections_In_Virtaul_Media_Page updated: Verify Existence Of All Sec...
Verify Existence Of All Sections In Virtual Media Page [Documentation] Verify existence of all sections in virtual media page. [Tags] Verify_Existence_Of_All_Sections_In_Virtual_Media_Page Page Should Contain Virtual media device Verify Existence Of All Buttons In Virtual Media Page [Documentatio...
<|file_sep|>gui/test/server_control/test_obmc_gui_virtual_media.robot.diff original: Verify Existence Of All Sections In Virtaul Media Page [Documentation] Verify existence of all sections in virtaul media page. [Tags] Verify_Existence_Of_All_Sections_In_Virtaul_Media_Page updated: Verify Existence Of All Sec...
58042c081bff56641d05a265b43c13e6546f68f6
gui/test/server_control/test_obmc_gui_virtual_media.robot
gui/test/server_control/test_obmc_gui_virtual_media.robot
RobotFramework
<|file_sep|>original/pybossa/templates/applications/presenter.html {% extends "/base.html" %} {% set active_page = "applications" %} {% set active_app = app.short_name %} {% block content %} <script src="{{url_for('static', filename="js/pybossa/pybossa.js")}}" type="text/javascript"></script> <div class="row"> <...
{% extends "/base.html" %} {% set active_page = "applications" %} {% set active_app = app.short_name %} {% block content %} <script> Modernizr.load({ test: window.JSON, nope: '{{url_for('static', filename='js/vendor/json2.min.js')}}' }); </script> <script src="{{url_for('static...
<|file_sep|>original/pybossa/templates/applications/presenter.html {% extends "/base.html" %} {% set active_page = "applications" %} {% set active_app = app.short_name %} {% block content %} <script src="{{url_for('static', filename="js/pybossa/pybossa.js")}}" type="text/javascript"></script> <div class="row"> <...
32375a1735597e81178da3f76549488d290d1f5e
pybossa/templates/applications/presenter.html
pybossa/templates/applications/presenter.html
HTML
<|file_sep|>original/package.json { "name": "rpi-gpio", "author": "James Barwell <jb@jamesbarwell.co.uk>", "description": "Control Raspberry Pi GPIO pins with node.js", "version": "0.0.2", "main": "rpi-gpio.js", "keywords:": ["raspberry", "pi", "gpio"], "repository": { "type" : "git"...
{ "name": "rpi-gpio", "author": "James Barwell <jb@jamesbarwell.co.uk>", "description": "Control Raspberry Pi GPIO pins with node.js", "version": "0.0.3", "main": "rpi-gpio.js", "keywords:": ["raspberry", "pi", "gpio"], "repository": { "type" : "git", "url" : "https://github....
<|file_sep|>original/package.json { "name": "rpi-gpio", "author": "James Barwell <jb@jamesbarwell.co.uk>", "description": "Control Raspberry Pi GPIO pins with node.js", "version": "0.0.2", "main": "rpi-gpio.js", "keywords:": ["raspberry", "pi", "gpio"], "repository": { "type" : "git"...
45c7e1e8d6ddcb166190016b79a0a0d4b5d13a7e
package.json
package.json
JSON
<|file_sep|>original/test-requirements.txt flake8==3.6.0 coverage==4.5.2 pytest==4.1.1 requests_mock==1.5.2 google-compute-engine==2.8.13 <|file_sep|>current/test-requirements.txt flake8==3.6.0 coverage==4.5.2 pytest==4.1.1 requests_mock==1.5.2 google-compute-engine==2.8.13 <|file_sep|>updated/test-requirements.txt
flake8==3.7.1 coverage==4.5.2 pytest==4.1.1 requests_mock==1.5.2 google-compute-engine==2.8.13
<|file_sep|>original/test-requirements.txt flake8==3.6.0 coverage==4.5.2 pytest==4.1.1 requests_mock==1.5.2 google-compute-engine==2.8.13 <|file_sep|>current/test-requirements.txt flake8==3.6.0 coverage==4.5.2 pytest==4.1.1 requests_mock==1.5.2 google-compute-engine==2.8.13 <|file_sep|>updated/test-requirements.txt fla...
ac8c3efdfcdd37e15f70ff0d28be1c099fdffa78
test-requirements.txt
test-requirements.txt
Text
<|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md <|file_sep|>current/.github/PULL_REQUEST_TEMPLATE.md <|file_sep|>updated/.github/PULL_REQUEST_TEMPLATE.md
Purpose or Intent ----------------- > Describe the rationale and use case for this pull request. Provide any background, examples, and images that provide further information to accurately describe what it is that you are adding to the repo. Add subsections as necessary to organize and feel free to link and reference...
<|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md <|file_sep|>current/.github/PULL_REQUEST_TEMPLATE.md <|file_sep|>updated/.github/PULL_REQUEST_TEMPLATE.md Purpose or Intent ----------------- > Describe the rationale and use case for this pull request. Provide any background, examples, and images that provide fu...
570b592d50d3e8b559d97bca300c9932d7593fe5
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
Markdown
<|file_sep|>original/router/config/settings.py import os import sys from salmon.server import SMTPReceiver, LMTPReceiver sys.path.append('..') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings # where to listen for incoming messages if settings.SALMON_SERVER["type"] == "lmtp": r...
import os import sys from salmon.server import SMTPReceiver, LMTPReceiver sys.path.append('..') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings import django django.setup() # where to listen for incoming messages if settings.SALMON_SERVER["type"] == "lmtp": receiver = LMTPRec...
<|file_sep|>original/router/config/settings.py import os import sys from salmon.server import SMTPReceiver, LMTPReceiver sys.path.append('..') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings # where to listen for incoming messages if settings.SALMON_SERVER["type"] == "lmtp": r...
df638a33d6f0812a22bb775fded2d1790bd1e409
router/config/settings.py
router/config/settings.py
Python
<|file_sep|>original/src/main/webapp/WEB-INF/view/home.jsp Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the Lic...
<|file_sep|>original/src/main/webapp/WEB-INF/view/home.jsp Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
4eeb0ea8564c77d68f25be2ad91cce81a1fd723f
src/main/webapp/WEB-INF/view/home.jsp
src/main/webapp/WEB-INF/view/home.jsp
Java Server Pages
<|file_sep|>original/app/assets/stylesheets/application.css * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take preceden...
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any styles * defined in the other...
<|file_sep|>original/app/assets/stylesheets/application.css * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take preceden...
82f005b8d5bbb4fc3314fc9c85d06da8de59ab93
app/assets/stylesheets/application.css
app/assets/stylesheets/application.css
CSS
<|file_sep|>original/.travis.yml # Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-stable-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default befor...
# Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-current-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default before_script: - eval "$(/opt/chefd...
<|file_sep|>original/.travis.yml # Use Travis's cointainer based infrastructure sudo: false addons: apt: sources: - chef-stable-precise packages: - chefdk # Don't `bundle install` install: echo "skip bundle install" branches: only: - master # Ensure we make ChefDK's Ruby the default befor...
dd0388098a9bd9087f8a1e9ac548d0f3e9d5ba07
.travis.yml
.travis.yml
YAML
<|file_sep|>original/_posts/2015-06-01-htaccess-404-cpanel.markdown --- layout: post title: "100 Days Online - Non Stop" subtitle: "www.space.lucasgatsas.ch " date: 2015-06-01 14:00:44 author: "Lucas Gatsas" header-img: "img/Lucas_Gatsas_lucas_gatsas_0266.jpeg" --- <h2 class="section-heading">Modif...
--- layout: post title: "100 Days Online - Non Stop" subtitle: "www.space.lucasgatsas.ch " date: 2015-06-01 14:00:44 author: "Lucas Gatsas" header-img: "img/Lucas_Gatsas_lucas_gatsas_0264.jpg" --- <h2 class="section-heading">Modify .htaccess</h2> <h2 class="section-heading">"Separat Things on cPane...
<|file_sep|>original/_posts/2015-06-01-htaccess-404-cpanel.markdown --- layout: post title: "100 Days Online - Non Stop" subtitle: "www.space.lucasgatsas.ch " date: 2015-06-01 14:00:44 author: "Lucas Gatsas" header-img: "img/Lucas_Gatsas_lucas_gatsas_0266.jpeg" --- <h2 class="section-heading">Modif...
42dcd7708e5deb9b678e3994783e0c36fe2f694c
_posts/2015-06-01-htaccess-404-cpanel.markdown
_posts/2015-06-01-htaccess-404-cpanel.markdown
Markdown
<|file_sep|>original/requirements_for_test.txt -r requirements.txt isort==4.3.4 pytest==3.6.0 pytest-env==0.6.2 pytest-mock==1.10.0 pytest-cov==2.5.1 pytest-xdist==1.22.2 coveralls==1.3.0 httpretty==0.9.4 beautifulsoup4==4.6.0 freezegun==0.3.10 flake8==3.5.0 flake8-print==3.1.0 <|file_sep|>current/requirements_for_test...
-r requirements.txt isort==4.3.4 pytest==3.6.1 pytest-env==0.6.2 pytest-mock==1.10.0 pytest-cov==2.5.1 pytest-xdist==1.22.2 coveralls==1.3.0 httpretty==0.9.4 beautifulsoup4==4.6.0 freezegun==0.3.10 flake8==3.5.0 flake8-print==3.1.0
<|file_sep|>original/requirements_for_test.txt -r requirements.txt isort==4.3.4 pytest==3.6.0 pytest-env==0.6.2 pytest-mock==1.10.0 pytest-cov==2.5.1 pytest-xdist==1.22.2 coveralls==1.3.0 httpretty==0.9.4 beautifulsoup4==4.6.0 freezegun==0.3.10 flake8==3.5.0 flake8-print==3.1.0 <|file_sep|>current/requirements_for_test...
3e4f5ebef3f7fd558d3a3922c48f412bc485268c
requirements_for_test.txt
requirements_for_test.txt
Text
<|file_sep|>original/.travis.yml language: objective-c before_install: - rvm get stable - rvm use ruby-2.0.0-p247 script: rake ci <|file_sep|>current/.travis.yml language: objective-c before_install: - rvm get stable - rvm use ruby-2.0.0-p247 script: rake ci <|file_sep|>updated/.travis.yml
language: objective-c script: rake ci
<|file_sep|>original/.travis.yml language: objective-c before_install: - rvm get stable - rvm use ruby-2.0.0-p247 script: rake ci <|file_sep|>current/.travis.yml language: objective-c before_install: - rvm get stable - rvm use ruby-2.0.0-p247 script: rake ci <|file_sep|>updated/.travis.yml language: objective-c...
df8b7a16d2d67f05ab8af84cbafa016f6d97e940
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/Stripe.net.Tests/charges/when_creating_a_charge_with_a_stripe_account.cs _stripeCharge = new StripeChargeService().Create(new StripeChargeCreateOptions() { Amount = 100, Currency = "usd", SourceTokenOrExistingSourceId = _st...
Currency = "usd", SourceTokenOrExistingSourceId = _stripeAccount.Id }); }; It should_have_the_right_source = () => _stripeCharge.Source.Account.ShouldNotBeNull(); It should_not_have_the_wrong_source = () => _stripeCharge.Sourc...
<|file_sep|>original/src/Stripe.net.Tests/charges/when_creating_a_charge_with_a_stripe_account.cs _stripeCharge = new StripeChargeService().Create(new StripeChargeCreateOptions() { Amount = 100, Currency = "usd", SourceTokenOrExistingSourceId = _st...
a323a9efed44b58c24f52a65e51193ecd7616c98
src/Stripe.net.Tests/charges/when_creating_a_charge_with_a_stripe_account.cs
src/Stripe.net.Tests/charges/when_creating_a_charge_with_a_stripe_account.cs
C#
<|file_sep|>website/app/bower.json.diff original: "angular-validation": "1.3.0", updated: <|file_sep|>original/website/app/bower.json "test", "tests" ], "dependencies": { "angular-bootstrap": "0.12.1", "angular-validation": "1.3.0", "imagesloaded": "3.1.8", "angular-toastr": "1.4.1", ...
"test", "tests" ], "dependencies": { "angular-bootstrap": "0.12.1", "imagesloaded": "3.1.8", "angular-toastr": "1.4.1", "angular-google-chart": "0.0.11", "ag-grid": "1.16.1", "angular": "1.5.0", "angular-sanitize": "1.5.0", "angular-messages": "1.5.0", "angular-aria": "1....
<|file_sep|>website/app/bower.json.diff original: "angular-validation": "1.3.0", updated: <|file_sep|>original/website/app/bower.json "test", "tests" ], "dependencies": { "angular-bootstrap": "0.12.1", "angular-validation": "1.3.0", "imagesloaded": "3.1.8", "angular-toastr": "1.4.1", ...
ca82e86e1537e41fd7856b22de5b079ac2bf973e
website/app/bower.json
website/app/bower.json
JSON
<|file_sep|>original/requirements-test.txt # Testing coverage==6.2 # Test coverage flake8==4.0.1 # Python linting # Testing Help titlecase==2.3 # Used for checking that note titles are title case # Types mypy==0.931 # Type checking types-req...
# Testing coverage==6.2 # Test coverage flake8==4.0.1 # Python linting # Testing Help titlecase==2.3 # Used for checking that note titles are title case # Types mypy==0.931 # Type checking types-requests==2.27.7 # Type stubs for re...
<|file_sep|>original/requirements-test.txt # Testing coverage==6.2 # Test coverage flake8==4.0.1 # Python linting # Testing Help titlecase==2.3 # Used for checking that note titles are title case # Types mypy==0.931 # Type checking types-req...
b03f9e0c3c4b0081ffe995bf1bd89e58d4ae83c1
requirements-test.txt
requirements-test.txt
Text
<|file_sep|>original/githubCU.sh <|file_sep|>current/githubCU.sh <|file_sep|>updated/githubCU.sh
#!/bin/bash # clone and or update a github repo. # # Required parameter $1: git repo name like "winksaville" or "seL4" # # Required parameter $2: which is the directory name and it # also assumes that name is the name of the git repo. # # Optional second parameter $3: is branch, default to "master" # At least 2 param...
<|file_sep|>original/githubCU.sh <|file_sep|>current/githubCU.sh <|file_sep|>updated/githubCU.sh #!/bin/bash # clone and or update a github repo. # # Required parameter $1: git repo name like "winksaville" or "seL4" # # Required parameter $2: which is the directory name and it # also assumes that name is the name of ...
6dee86fe3265409d6793bb7e32e217e908edb4e5
githubCU.sh
githubCU.sh
Shell
<|file_sep|>Rules.java.diff original: public Boolean is(Fact f, List<Term> head) { updated: public boolean is(Fact f, List<Term> head) { boolean result = false; <|file_sep|>Rules.java.diff original: return true; updated: Term first = f.getHead().get(0); if (first instanceof Variable) { System.out.p...
} public void addRule(Fact f) { rules.add(f); } public boolean is(Fact f, List<Term> head) { boolean result = false; for(Fact rule: rules) { if ((rule.equals(f)) && (f.getHead().equals(head))) { Term first = f.getHead().get(0); if (first instanceof Variable) { System.out.println(first.getNam...
<|file_sep|>Rules.java.diff original: public Boolean is(Fact f, List<Term> head) { updated: public boolean is(Fact f, List<Term> head) { boolean result = false; <|file_sep|>Rules.java.diff original: return true; updated: Term first = f.getHead().get(0); if (first instanceof Variable) { System.out.p...
59e976b50e3b446aa3211d00c578089bbb791c9c
Rules.java
Rules.java
Java
<|file_sep|>autoconf/raw.py.diff original: from gomp import * updated: if not windows: from gomp import * <|file_sep|>autoconf/raw.py.diff original: updated: if windows: tmpDep = [ m, lcms, ] else: tmpDep = [ m, gomp, lcms, ] <|file_sep|>original/autoconf/raw.py from _external import * fr...
if windows: tmpDep = [ m, lcms, ] else: tmpDep = [ m, gomp, lcms, ] raw = LibWithHeaderChecker( 'raw', 'libraw/libraw.h', 'c', dependencies = tmpDep )
<|file_sep|>autoconf/raw.py.diff original: from gomp import * updated: if not windows: from gomp import * <|file_sep|>autoconf/raw.py.diff original: updated: if windows: tmpDep = [ m, lcms, ] else: tmpDep = [ m, gomp, lcms, ] <|file_sep|>original/autoconf/raw.py from _external import * fr...
9a896de52b353e17a4216fdaf1342275e1ecc30a
autoconf/raw.py
autoconf/raw.py
Python
<|file_sep|>original/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml name: "REST Client Reactive" artifact: ${project.groupId}:${project.artifactId}:${project.version} metadata: keywords: - "rest-client" - "web-client" - "microprofile-rest-client" -...
artifact: ${project.groupId}:${project.artifactId}:${project.version} metadata: keywords: - "rest-client" - "web-client" - "microprofile-rest-client" - "resteasy-reactive" categories: - "web" status: "stable" guide: "https://quarkus.io/guides/rest-client-reactive" codestart: name: "resteasy-reac...
<|file_sep|>original/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml name: "REST Client Reactive" artifact: ${project.groupId}:${project.artifactId}:${project.version} metadata: keywords: - "rest-client" - "web-client" - "microprofile-rest-client" -...
4e96d33c0f17908220d3752e8625ea1e7b8dc4de
extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml
extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/quarkus-extension.yaml
YAML
<|file_sep|>.travis.yml.diff original: updated: env: - GO111MODULE=on <|file_sep|>original/.travis.yml language: go go: - 1.13 - stable <|file_sep|>current/.travis.yml language: go env: - GO111MODULE=on go: - 1.13 - stable <|file_sep|>updated/.travis.yml
language: go env: - GO111MODULE=on go: - 1.11 - 1.12 - 1.13 - stable
<|file_sep|>.travis.yml.diff original: updated: env: - GO111MODULE=on <|file_sep|>original/.travis.yml language: go go: - 1.13 - stable <|file_sep|>current/.travis.yml language: go env: - GO111MODULE=on go: - 1.13 - stable <|file_sep|>updated/.travis.yml language: go env: - GO111MODULE=on go: - 1...
07c6148e97a6f94623682a6acdd9fe216f79c2b5
.travis.yml
.travis.yml
YAML
<|file_sep|>original/_posts/2015-03-27-lemon-blueberry-drop-scones.md <|file_sep|>current/_posts/2015-03-27-lemon-blueberry-drop-scones.md <|file_sep|>updated/_posts/2015-03-27-lemon-blueberry-drop-scones.md
--- title: "Lemon-Blueberry Drop Scones" categories: moosefood tags: - dessert - snack - British excerpt: "Based on a recipe from Taste of Home, our neighbor and friend Leona has made these for us a few times and they're light and delicious." header: teaser: --- ## INGREDIENTS * 2 cups (260 g) all-purpose fl...
<|file_sep|>original/_posts/2015-03-27-lemon-blueberry-drop-scones.md <|file_sep|>current/_posts/2015-03-27-lemon-blueberry-drop-scones.md <|file_sep|>updated/_posts/2015-03-27-lemon-blueberry-drop-scones.md --- title: "Lemon-Blueberry Drop Scones" categories: moosefood tags: - dessert - snack - British excerp...
e492ba1c5b7a01e06d479dde5b392d999f2da7db
_posts/2015-03-27-lemon-blueberry-drop-scones.md
_posts/2015-03-27-lemon-blueberry-drop-scones.md
Markdown
<|file_sep|>original/docs/pawn-test-docs.pwn <|file_sep|>current/docs/pawn-test-docs.pwn <|file_sep|>updated/docs/pawn-test-docs.pwn
/* pawn-test * A ridiculously simple automated testing framework for PAWN scripts. * * Copyright (c) 2015 Pék Marcell * This project is covered by the MIT License, see the attached LICENSE * file for more details. * * pawn-test-docs.pwn - pawn-test API documentation. * Run "pawncc -r pawn-test-docs.pwn" to gene...
<|file_sep|>original/docs/pawn-test-docs.pwn <|file_sep|>current/docs/pawn-test-docs.pwn <|file_sep|>updated/docs/pawn-test-docs.pwn /* pawn-test * A ridiculously simple automated testing framework for PAWN scripts. * * Copyright (c) 2015 Pék Marcell * This project is covered by the MIT License, see the attached ...
87d50efd59149791474160923fd4ca74b2f2bce9
docs/pawn-test-docs.pwn
docs/pawn-test-docs.pwn
PAWN
<|file_sep|>original/app/models/competitions/willamette_valley_classics_tour.rb <|file_sep|>current/app/models/competitions/willamette_valley_classics_tour.rb <|file_sep|>updated/app/models/competitions/willamette_valley_classics_tour.rb
# frozen_string_literal: true module Competitions module WillametteValleyClassicsTour class Overall < Competitions::Overall def self.parent_event_name "Willamette Valley Classics Tour" end def category_names [ "Category 3 Men", "Category 4/5 Men", ...
<|file_sep|>original/app/models/competitions/willamette_valley_classics_tour.rb <|file_sep|>current/app/models/competitions/willamette_valley_classics_tour.rb <|file_sep|>updated/app/models/competitions/willamette_valley_classics_tour.rb # frozen_string_literal: true module Competitions module WillametteValleyClas...
161d645d05e7dd1b670a0fa93661ef37ad7d5e18
app/models/competitions/willamette_valley_classics_tour.rb
app/models/competitions/willamette_valley_classics_tour.rb
Ruby
<|file_sep|>original/crashlytics/CrashlyticsExampleSwift/AppDelegate.swift // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for th...
// Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the Lic...
<|file_sep|>original/crashlytics/CrashlyticsExampleSwift/AppDelegate.swift // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for th...
6c7ad0fcdb380e5059222ad59d14acd3e9cfea11
crashlytics/CrashlyticsExampleSwift/AppDelegate.swift
crashlytics/CrashlyticsExampleSwift/AppDelegate.swift
Swift
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.4 - 5.3 before_script: composer install script: phpunit --configuration phpunit.xml <|file_sep|>current/.travis.yml language: php php: - 5.5 - 5.4 - 5.3 before_script: composer install script: phpunit --configuration phpunit.xml...
language: php before_script: composer install script: phpunit --configuration phpunit.xml
<|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.4 - 5.3 before_script: composer install script: phpunit --configuration phpunit.xml <|file_sep|>current/.travis.yml language: php php: - 5.5 - 5.4 - 5.3 before_script: composer install script: phpunit --configuration phpunit.xml...
0100017709bbbbacf41e74a69c88c314acc49225
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/views/licences/_introduction.html.erb <li><%= radio_button :authority, :slug, authority['slug'] %><%= label :authority, :slug, authority['name'], :value => authority['slug'] %></li> <% end %> </ul> <p class="get-started"> <%= button_tag ...
<li><%= radio_button :authority, :slug, authority['slug'] %><%= label :authority, :slug, authority['name'], :value => authority['slug'] %></li> <% end %> </ul> <p class="get-started"> <%= button_tag "Get started", :class => 'button' %> </p> <% ...
<|file_sep|>original/app/views/licences/_introduction.html.erb <li><%= radio_button :authority, :slug, authority['slug'] %><%= label :authority, :slug, authority['name'], :value => authority['slug'] %></li> <% end %> </ul> <p class="get-started"> <%= button_tag ...
eba331d1f3e1199626460e9a5f8043df9a64d4a0
app/views/licences/_introduction.html.erb
app/views/licences/_introduction.html.erb
HTML+ERB
<|file_sep|>original/tests/ts/query-builder-api/join-methods.ts <|file_sep|>current/tests/ts/query-builder-api/join-methods.ts <|file_sep|>updated/tests/ts/query-builder-api/join-methods.ts
import { Person } from '../fixtures/person'; import { raw } from '../../..'; (async () => { await Person.query() .joinRelation('pets') .where('pets.species', 'dog'); await Person.query() .joinRelation('pets', { alias: 'p' }) .where('p.species', 'dog'); await Person.query() .joinRelation('[p...
<|file_sep|>original/tests/ts/query-builder-api/join-methods.ts <|file_sep|>current/tests/ts/query-builder-api/join-methods.ts <|file_sep|>updated/tests/ts/query-builder-api/join-methods.ts import { Person } from '../fixtures/person'; import { raw } from '../../..'; (async () => { await Person.query() .joinRel...
703defba62b675793e886e930df2d5552d443c5b
tests/ts/query-builder-api/join-methods.ts
tests/ts/query-builder-api/join-methods.ts
TypeScript
<|file_sep|>original/docs/requirements.txt sphinx==3.4.0 docutils==0.16 Pygments==2.7.3 sphinx-rtd-theme==0.5.0 sphinxcontrib-websupport==1.2.4 tomlkit==0.7.0 typing_extensions==3.7.4.3 <|file_sep|>current/docs/requirements.txt sphinx==3.4.0 docutils==0.16 Pygments==2.7.3 sphinx-rtd-theme==0.5.0 sphinxcontrib-websuppor...
sphinx==3.4.1 docutils==0.16 Pygments==2.7.3 sphinx-rtd-theme==0.5.0 sphinxcontrib-websupport==1.2.4 tomlkit==0.7.0 typing_extensions==3.7.4.3
<|file_sep|>original/docs/requirements.txt sphinx==3.4.0 docutils==0.16 Pygments==2.7.3 sphinx-rtd-theme==0.5.0 sphinxcontrib-websupport==1.2.4 tomlkit==0.7.0 typing_extensions==3.7.4.3 <|file_sep|>current/docs/requirements.txt sphinx==3.4.0 docutils==0.16 Pygments==2.7.3 sphinx-rtd-theme==0.5.0 sphinxcontrib-websuppor...
d79be28675038051347750a30a7e8083a34fc243
docs/requirements.txt
docs/requirements.txt
Text
<|file_sep|>original/requirements/build.txt # scratchdir/requirements/build.txt # # Requirements necessary to build the scratchdir package. pip==19.0.1 setuptools==36.8.0; python_version < '2.7' # pyup: ignore setuptools==40.6.3; python_version > '2.7' <|file_sep|>current/requirements/build.txt # scratchdir/requireme...
# scratchdir/requirements/build.txt # # Requirements necessary to build the scratchdir package. pip==19.0.1 setuptools==36.8.0; python_version < '2.7' # pyup: ignore setuptools==40.7.2; python_version > '2.7'
<|file_sep|>original/requirements/build.txt # scratchdir/requirements/build.txt # # Requirements necessary to build the scratchdir package. pip==19.0.1 setuptools==36.8.0; python_version < '2.7' # pyup: ignore setuptools==40.6.3; python_version > '2.7' <|file_sep|>current/requirements/build.txt # scratchdir/requireme...
852f76d6f7e93c1975f8ccadaf60de072173b8d7
requirements/build.txt
requirements/build.txt
Text
<|file_sep|>original/src/todomore/android/TodoMoreApplication.java <|file_sep|>current/src/todomore/android/TodoMoreApplication.java <|file_sep|>updated/src/todomore/android/TodoMoreApplication.java
package todomore.android; import android.app.Application; public class TodoMoreApplication extends Application { private TaskDao mTaskDao; @Override public void onCreate() { super.onCreate(); mTaskDao = new TaskDao(this); } public TaskDao getTaskDao() { return mTaskDao; } }
<|file_sep|>original/src/todomore/android/TodoMoreApplication.java <|file_sep|>current/src/todomore/android/TodoMoreApplication.java <|file_sep|>updated/src/todomore/android/TodoMoreApplication.java package todomore.android; import android.app.Application; public class TodoMoreApplication extends Application { pr...
eed1f4a73c9c39e58a04c7a8651c6c5e2404764a
src/todomore/android/TodoMoreApplication.java
src/todomore/android/TodoMoreApplication.java
Java
<|file_sep|>.gitlab-ci.yml.diff original: updated: - apt-get update - apt-get install -y libxmlsec1-dev <|file_sep|>.gitlab-ci.yml.diff original: updated: - apt-get update - apt-get install -y libxmlsec1-dev <|file_sep|>original/.gitlab-ci.yml - coverage html artifacts: paths: ...
expire_in: 1 week flake8: image: python:3.6 stage: test script: - apt-get update - apt-get install -y libxmlsec1-dev - pip install flake8 - flake8 ./app miscellaneous: image: python:3.6 stage: test script: - apt-get update - apt-get install -y libxmlsec1-d...
<|file_sep|>.gitlab-ci.yml.diff original: updated: - apt-get update - apt-get install -y libxmlsec1-dev <|file_sep|>.gitlab-ci.yml.diff original: updated: - apt-get update - apt-get install -y libxmlsec1-dev <|file_sep|>original/.gitlab-ci.yml - coverage html artifacts: paths: ...
9c480bcbf2a7140b02a6c93b1e62117d1658dafc
.gitlab-ci.yml
.gitlab-ci.yml
YAML
<|file_sep|>original/minium-cucumber/src/main/java/minium/cucumber/StringResource.java <|file_sep|>current/minium-cucumber/src/main/java/minium/cucumber/StringResource.java <|file_sep|>updated/minium-cucumber/src/main/java/minium/cucumber/StringResource.java
/* * Copyright (C) 2015 The Minium Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
<|file_sep|>original/minium-cucumber/src/main/java/minium/cucumber/StringResource.java <|file_sep|>current/minium-cucumber/src/main/java/minium/cucumber/StringResource.java <|file_sep|>updated/minium-cucumber/src/main/java/minium/cucumber/StringResource.java /* * Copyright (C) 2015 The Minium Authors * * Licensed ...
dedbc89fc82a3d82c5666b2e470068ed447bae0d
minium-cucumber/src/main/java/minium/cucumber/StringResource.java
minium-cucumber/src/main/java/minium/cucumber/StringResource.java
Java
<|file_sep|>src/main/webapp/test/examSubmission.test.js.diff original: let {setExamSubmitting, setDirty, isUnsubmitted} = updated: const {setExamSubmitting, setDirty, isUnsubmitted} = <|file_sep|>src/main/webapp/test/examSubmission.test.js.diff original: }) updated: }); <|file_sep|>src/main/webapp/test/examSubmission.t...
test('check set dirty', () => { expect(setDirty()).toBe(true); }); test('isUnsubmitted when exam has not been submitted but filled in', () =>{ const reply = 'It looks like you have not submitted your exam'; expect(isUnsubmitted('event', false, true)).toBe(reply); }); test('isUnsubmitted when exam has been submi...
<|file_sep|>src/main/webapp/test/examSubmission.test.js.diff original: let {setExamSubmitting, setDirty, isUnsubmitted} = updated: const {setExamSubmitting, setDirty, isUnsubmitted} = <|file_sep|>src/main/webapp/test/examSubmission.test.js.diff original: }) updated: }); <|file_sep|>src/main/webapp/test/examSubmission.t...
30077cecea82fddbbc6d2751846f081ef56f0452
src/main/webapp/test/examSubmission.test.js
src/main/webapp/test/examSubmission.test.js
JavaScript
<|file_sep|>original/gradle.properties group=com.linecorp.centraldogma version=0.43.3-SNAPSHOT projectName=Central Dogma projectUrl=https://line.github.io/centraldogma/ projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 authorName=LINE Corporation ...
group=com.linecorp.centraldogma version=0.43.4-SNAPSHOT projectName=Central Dogma projectUrl=https://line.github.io/centraldogma/ projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 authorName=LINE Corporation authorEmail=dl_oss_dev@linecorp.com aut...
<|file_sep|>original/gradle.properties group=com.linecorp.centraldogma version=0.43.3-SNAPSHOT projectName=Central Dogma projectUrl=https://line.github.io/centraldogma/ projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 authorName=LINE Corporation ...
d5e6956a9009ecb743d6b3ed6552cf856e32fc81
gradle.properties
gradle.properties
INI
<|file_sep|>upstream_config.lua.diff original: if method == ngx.HTTP_GET then updated: if method == "GET" then <|file_sep|>original/upstream_config.lua local router = require "resty.router" local r = router:new("resty.router.redis_dns") local method = ngx.req.get_method() local ok = nil local err = nil if method == ng...
local router = require "resty.router" local r = router:new("resty.router.redis_dns") local method = ngx.req.get_method() local ok = nil local err = nil if method == "GET" then ok, err = r:set_route(ngx.var.arg_location,ngx.var.arg_upstream,ngx.var.arg_ttl) end if method == "DELETE" then ok, err = r:unset_route(ngx...
<|file_sep|>upstream_config.lua.diff original: if method == ngx.HTTP_GET then updated: if method == "GET" then <|file_sep|>original/upstream_config.lua local router = require "resty.router" local r = router:new("resty.router.redis_dns") local method = ngx.req.get_method() local ok = nil local err = nil if method == ng...
8362d768e2d740cf9dbc56fd5e4cbbac6a9bacad
upstream_config.lua
upstream_config.lua
Lua
<|file_sep|>app/components/appMainModule/localePageModule/localePage.html.diff original: <div class="col-xs-12 col-sm-4 localePage-electionsListContainer"> <locale-upcoming-elections-list locale-id="locale.localeId" locale-type="locale.localeType"></locale-upcoming-elections-list> </div> <div class="col-xs-12 ...
<div class="col-xs-12"> <odca-page-header page-title="{{locale.localeName}}" next-election="{{locale.nextElectionDate}}"></odca-page-header> </div> </div> </div> <div class="container-fluid"> <div class="row bg-white"> <div class="col-sm-8 col-sm-push-4"> <!--TODO: Fix breadcrumb problem caused by adding...
<|file_sep|>app/components/appMainModule/localePageModule/localePage.html.diff original: <div class="col-xs-12 col-sm-4 localePage-electionsListContainer"> <locale-upcoming-elections-list locale-id="locale.localeId" locale-type="locale.localeType"></locale-upcoming-elections-list> </div> <div class="col-xs-12 ...
546eae0aa443fb8e071980266d7af30f193fc99e
app/components/appMainModule/localePageModule/localePage.html
app/components/appMainModule/localePageModule/localePage.html
HTML
<|file_sep|>tools/tools.go.diff original: updated: "fmt" <|file_sep|>original/tools/tools.go package tools import ( "log" "strings" "fmt" ) // UploadFile used to upload file by S3 pre-signed URL func UploadFile(path, url string) int { log.Println("Uploading file from path:", path) file, info := prepareFile(pat...
package tools import ( "fmt" "log" "strings" ) // UploadFile used to upload file by S3 pre-signed URL func UploadFile(path, url string) int { log.Println("Uploading file from path:", path) file, info := prepareFile(path) resp := sendRequest(url, &file, info) return getStatusOfUpload(resp) } // GetFileName ret...
<|file_sep|>tools/tools.go.diff original: updated: "fmt" <|file_sep|>original/tools/tools.go package tools import ( "log" "strings" "fmt" ) // UploadFile used to upload file by S3 pre-signed URL func UploadFile(path, url string) int { log.Println("Uploading file from path:", path) file, info := prepareFile(pat...
ad50209dd215f6324ec49fc22036af57d8f1e15b
tools/tools.go
tools/tools.go
Go
<|file_sep|>original/package.json { "name": "tagit", "version": "1.1.1", "description": "File tagging tool", "main": "index.js", "bin": { "tagit": "./bin/tagit" }, "scripts": { "test": "./node_modules/.bin/mocha dist/test/ --recursive", "prepublish": "cd src && ../node_modules/.bin/tsc", "...
{ "name": "tagit", "version": "1.1.1", "description": "File tagging tool", "main": "index.js", "bin": { "tagit": "./bin/tagit" }, "scripts": { "test": "./node_modules/.bin/mocha dist/test/ --recursive", "prepublish": "./node_modules/.bin/tsd update && ./node_modules/.bin/tsd rebundle && cd src...
<|file_sep|>original/package.json { "name": "tagit", "version": "1.1.1", "description": "File tagging tool", "main": "index.js", "bin": { "tagit": "./bin/tagit" }, "scripts": { "test": "./node_modules/.bin/mocha dist/test/ --recursive", "prepublish": "cd src && ../node_modules/.bin/tsc", "...
195b1a9869e160082b59ea9bd3a76f741edfd977
package.json
package.json
JSON
<|file_sep|>src/roll.js.diff original: updated: const identity = body.user_name ? `@${body.user_name}` : 'You'; <|file_sep|>original/src/roll.js const result = body.text === 'coin' ? `:coin_${Math.floor((Math.random() * 2) + 1)}:` : `:dice_${Math.floor((Math.random() * 6) + 1)}:`; const response = { ...
const result = body.text === 'coin' ? `:coin_${Math.floor((Math.random() * 2) + 1)}:` : `:dice_${Math.floor((Math.random() * 6) + 1)}:`; const response = { statusCode: 200, headers: { // Required for CORS support to work 'Access-Control-Allow-Origin': '*', // Required for cookies,...
<|file_sep|>src/roll.js.diff original: updated: const identity = body.user_name ? `@${body.user_name}` : 'You'; <|file_sep|>original/src/roll.js const result = body.text === 'coin' ? `:coin_${Math.floor((Math.random() * 2) + 1)}:` : `:dice_${Math.floor((Math.random() * 6) + 1)}:`; const response = { ...
08277c0e2e65ca355cccdf9233085b3c36d4cf7b
src/roll.js
src/roll.js
JavaScript
<|file_sep|>original/testdata/issue-comments-ignore-generated.sh #!/bin/bash -eux git checkout -b issue-comments-ignore-generated cat > generated.go <<EOF // automatically generated - DO NOT EDIT package foo func Foo() {} // expect golint exported without comment EOF mkdir testdata cat > testdata/foo.go <<EOF packa...
#!/bin/bash -eux git checkout -b issue-comments-ignore-generated cat > generated.go <<EOF // Code generated by tool DO NOT EDIT. package foo func Foo() {} // expect golint exported without comment EOF mkdir testdata cat > testdata/foo.go <<EOF package foo func Foo() {} // expect golint exported without comment EOF...
<|file_sep|>original/testdata/issue-comments-ignore-generated.sh #!/bin/bash -eux git checkout -b issue-comments-ignore-generated cat > generated.go <<EOF // automatically generated - DO NOT EDIT package foo func Foo() {} // expect golint exported without comment EOF mkdir testdata cat > testdata/foo.go <<EOF packa...
0eb6aec3ca1a4c1f325573399d0b8c912963502c
testdata/issue-comments-ignore-generated.sh
testdata/issue-comments-ignore-generated.sh
Shell
<|file_sep|>lib/spree/gateway/payline.rb.diff original: updated: attr_accessible :preferred_merchant_id, :preferred_merchant_access_key, :preferred_contract_number <|file_sep|>original/lib/spree/gateway/payline.rb module Spree class Gateway class Payline < Gateway preference :merchant_id, :str...
module Spree class Gateway class Payline < Gateway preference :merchant_id, :string preference :merchant_access_key, :string preference :contract_number, :string attr_accessible :preferred_merchant_id, :preferred_merchant_access_key, :preferred_contract_number def provi...
<|file_sep|>lib/spree/gateway/payline.rb.diff original: updated: attr_accessible :preferred_merchant_id, :preferred_merchant_access_key, :preferred_contract_number <|file_sep|>original/lib/spree/gateway/payline.rb module Spree class Gateway class Payline < Gateway preference :merchant_id, :str...
3cda4f689752509f6c5fb41a22e02a91e5a18c0f
lib/spree/gateway/payline.rb
lib/spree/gateway/payline.rb
Ruby
<|file_sep|>.doctrine-project.json.diff original: "name":"release/1.x", updated: "name":"1.x", <|file_sep|>original/.doctrine-project.json "docsSlug":"doctrine-orm-module", "versions":[ { "name":"3.x", "branchName":"3.x", "slug":"3.x", "current":true, "maintained":true,...
"docsSlug":"doctrine-orm-module", "versions":[ { "name":"3.x", "branchName":"3.x", "slug":"3.x", "current":true, "maintained":true, "aliases":[ "current", "stable" ] }, { "name":"1.x", "branchName":"release/1.x", "slug":"1.x", ...
<|file_sep|>.doctrine-project.json.diff original: "name":"release/1.x", updated: "name":"1.x", <|file_sep|>original/.doctrine-project.json "docsSlug":"doctrine-orm-module", "versions":[ { "name":"3.x", "branchName":"3.x", "slug":"3.x", "current":true, "maintained":true,...
9997e913b055aac6f9023f9de4f0768e00e16b8d
.doctrine-project.json
.doctrine-project.json
JSON
<|file_sep|>original/MadnessTests/BindTests.swift // Copyright (c) 2015 Rob Rix. All rights reserved. import XCTest final class BindTests: XCTestCase { } <|file_sep|>current/MadnessTests/BindTests.swift // Copyright (c) 2015 Rob Rix. All rights reserved. import XCTest final class BindTests: XCTestCase { } <|file_...
// Copyright (c) 2015 Rob Rix. All rights reserved. import XCTest struct Tree<T: Equatable>: Equatable, Printable { init(_ value: T, _ children: [Tree] = []) { self.values = [ value ] self.children = children } let values: [T] let children: [Tree] // MARK: Printable var description: String { let spac...
<|file_sep|>original/MadnessTests/BindTests.swift // Copyright (c) 2015 Rob Rix. All rights reserved. import XCTest final class BindTests: XCTestCase { } <|file_sep|>current/MadnessTests/BindTests.swift // Copyright (c) 2015 Rob Rix. All rights reserved. import XCTest final class BindTests: XCTestCase { } <|file_...
b5877c71ee3b73de5739d92857efb8b6c1a41205
MadnessTests/BindTests.swift
MadnessTests/BindTests.swift
Swift
<|file_sep|>original/package.json }, "keywords": [ "datadog", "metrics", "stats" ], "author": "Daniel Bader <mail@dbader.org> (http://dbader.org/)", "license": "MIT", "devDependencies": { "chai": "3.5.0", "chai-string": "1.1.6", "jscs": "2.9.0", "jshint": "2.9.1", "jshint-sty...
}, "keywords": [ "datadog", "metrics", "stats" ], "author": "Daniel Bader <mail@dbader.org> (http://dbader.org/)", "license": "MIT", "devDependencies": { "chai": "3.5.0", "chai-string": "1.1.6", "jscs": "2.9.0", "jshint": "2.9.1", "jshint-stylish-ex": "0.2.0", "mocha": "2...
<|file_sep|>original/package.json }, "keywords": [ "datadog", "metrics", "stats" ], "author": "Daniel Bader <mail@dbader.org> (http://dbader.org/)", "license": "MIT", "devDependencies": { "chai": "3.5.0", "chai-string": "1.1.6", "jscs": "2.9.0", "jshint": "2.9.1", "jshint-sty...
4cfd32110ea83dd4f4f0a784c6d13f93ac46d55e
package.json
package.json
JSON
<|file_sep|>README.md.diff original: a := Amount{Value: 5, Currency: USD} res, _ := a.ConvertTo(EUR) // res contains the converted value updated: ```go a := Amount{Value: 5, Currency: USD} res, _ := a.ConvertTo(EUR) // res contains the converted value ``` <|file_sep|>README.md.diff original: u := USD ...
### Converting a value in one currency to another ```go a := Amount{Value: 5, Currency: USD} res, _ := a.ConvertTo(EUR) // res contains the converted value ``` ### Creating a certain amount of a currency ```go u := USD a := u.Amount(25000) ``` ### Printing an amount of a certain currency ```go a := Amount{450, JPY...
<|file_sep|>README.md.diff original: a := Amount{Value: 5, Currency: USD} res, _ := a.ConvertTo(EUR) // res contains the converted value updated: ```go a := Amount{Value: 5, Currency: USD} res, _ := a.ConvertTo(EUR) // res contains the converted value ``` <|file_sep|>README.md.diff original: u := USD ...
8c0a58f8a4c8553bc049c0a439002155871a0d5a
README.md
README.md
Markdown
<|file_sep|>original/blueprints/app/files/package.json "build": "ember build", "test": "ember test" }, "repository": "", "engines": { "node": ">= 0.10.0" }, "author": "", "license": "MIT", "devDependencies": { "broccoli-asset-rev": "^2.0.0", "ember-cli": "<%= emberCLIVersion %>", "...
"build": "ember build", "test": "ember test" }, "repository": "", "engines": { "node": ">= 0.10.0" }, "author": "", "license": "MIT", "devDependencies": { "broccoli-asset-rev": "^2.0.2", "ember-cli": "<%= emberCLIVersion %>", "ember-cli-app-version": "0.3.2", "ember-cli-babel":...
<|file_sep|>original/blueprints/app/files/package.json "build": "ember build", "test": "ember test" }, "repository": "", "engines": { "node": ">= 0.10.0" }, "author": "", "license": "MIT", "devDependencies": { "broccoli-asset-rev": "^2.0.0", "ember-cli": "<%= emberCLIVersion %>", "...
11b271bc3931132fcbbc86e1ae7ba2c0429579d8
blueprints/app/files/package.json
blueprints/app/files/package.json
JSON
<|file_sep|>docs/tests.txt.diff original: code into a virtualenv, where you can install the test dependencies. updated: code into a virtualenv, where you can install the test dependencies. <|file_sep|>original/docs/tests.txt Get the django-filter source code using the following command:: git clone https://githu...
Install the test dependencies ----------------------------- Run the following to install the test dependencies within the virutalenv:: pip install -r requirements/test.txt Run the django-filter tests:: python runtests.py Testing all supported versions ------------------------------ You can also use the e...
<|file_sep|>docs/tests.txt.diff original: code into a virtualenv, where you can install the test dependencies. updated: code into a virtualenv, where you can install the test dependencies. <|file_sep|>original/docs/tests.txt Get the django-filter source code using the following command:: git clone https://githu...
2078f4ea52bd7190eeff6f15b559336b4ea6e542
docs/tests.txt
docs/tests.txt
Text
<|file_sep|>box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java.diff original: updated: import com.eclipsesource.json.JsonObject; <|file_sep|>original/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java package com.box.androidsdk.content....
import com.eclipsesource.json.JsonObject; /** * A class representing list of BoxRecentItem's */ public class BoxIteratorRecentItems extends BoxIterator<BoxRecentItem> { private static final long serialVersionUID = -2642748896882484555L; private transient BoxJsonObjectCreator<BoxRecentItem> representationCre...
<|file_sep|>box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java.diff original: updated: import com.eclipsesource.json.JsonObject; <|file_sep|>original/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java package com.box.androidsdk.content....
251d93f45709bf8d8022a33a779dad7c3b61e4b7
box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java
box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorRecentItems.java
Java
<|file_sep|>original/src/components/Nav.js <Menu.Item as={Link} to="/households/new" > New Household </Menu.Item> <Menu.Item as={Link} to="/" onClick={t...
<Menu.Item as={Link} to="/households/new" > New Household </Menu.Item> <Menu.Item as={Link} to="/meals/new"> New Meal </Menu.Item> ...
<|file_sep|>original/src/components/Nav.js <Menu.Item as={Link} to="/households/new" > New Household </Menu.Item> <Menu.Item as={Link} to="/" onClick={t...
8c103be915b7ecc30b56674f4350baaf089a340c
src/components/Nav.js
src/components/Nav.js
JavaScript
<|file_sep|>original/.travis.yml sudo: false language: ruby before_install: - bundle update --bundler rvm: - 2.5.3 - 2.6.1 - 2.7.1 - ruby-head matrix: allow_failures: - rvm: ruby-head <|file_sep|>current/.travis.yml sudo: false language: ruby before_install: - bundle update --bundler rvm: - 2.5.3 ...
sudo: false language: ruby before_install: - bundle update --bundler rvm: - 2.5.3 - 2.6.1 - 2.7.1 - 3.0.0 - ruby-head matrix: allow_failures: - rvm: ruby-head
<|file_sep|>original/.travis.yml sudo: false language: ruby before_install: - bundle update --bundler rvm: - 2.5.3 - 2.6.1 - 2.7.1 - ruby-head matrix: allow_failures: - rvm: ruby-head <|file_sep|>current/.travis.yml sudo: false language: ruby before_install: - bundle update --bundler rvm: - 2.5.3 ...
d24a61d0ff225cd69916a6457a9ba6e6fcbdfecd
.travis.yml
.travis.yml
YAML
<|file_sep|>src/AmqpBundle/Event/PreRetrieveEvent.php.diff original: * @var AMQPEnvelope updated: * @var AMQPEnvelope|bool <|file_sep|>src/AmqpBundle/Event/PreRetrieveEvent.php.diff original: * @param AMQPEnvelope|null $envelope updated: * @param AMQPEnvelope|bool $envelope <|file_sep|>src/AmqpBundl...
public function __construct($envelope) { $this->envelope = $envelope; } /** * @return AMQPEnvelope|bool */ public function getEnvelope() { return $this->envelope; } /** * @param AMQPEnvelope|bool $envelope */ public function setEnvelope($envelope...
<|file_sep|>src/AmqpBundle/Event/PreRetrieveEvent.php.diff original: * @var AMQPEnvelope updated: * @var AMQPEnvelope|bool <|file_sep|>src/AmqpBundle/Event/PreRetrieveEvent.php.diff original: * @param AMQPEnvelope|null $envelope updated: * @param AMQPEnvelope|bool $envelope <|file_sep|>src/AmqpBundl...
7f0fbb2be455da8126d786d18da8b56d47380d48
src/AmqpBundle/Event/PreRetrieveEvent.php
src/AmqpBundle/Event/PreRetrieveEvent.php
PHP
<|file_sep|>original/.circleci/config.yml - image: circleci/python:2.7.15 working_directory: ~/repo steps: - checkout - run: name: install dependencies command: | python --version pip install -q platformio --user echo 'export PAT...
working_directory: ~/repo steps: - checkout - run: name: install dependencies command: | python --version pip install -q platformio --user echo 'export PATH=~/.local/bin:$PATH' >> $BASH_ENV - run: name: Build Applicatio...
<|file_sep|>original/.circleci/config.yml - image: circleci/python:2.7.15 working_directory: ~/repo steps: - checkout - run: name: install dependencies command: | python --version pip install -q platformio --user echo 'export PAT...
06ebffc80d64bb17543479bb7f7c846bba5843f9
.circleci/config.yml
.circleci/config.yml
YAML
<|file_sep|>utils/run_tests.py.diff original: cmd = "./arista-transcode -q -d %s tests/%s test_output" % (id, file) updated: cmd = "./arista-transcode -q -d %s -o test_output tests/%s" % (id, file) <|file_sep|>utils/run_tests.py.diff original: print "Report" print "======" for file, device, failed in status:...
print device.make + " " + device.model + ": " + file cmd = "./arista-transcode -q -d %s -o test_output tests/%s" % (id, file) print cmd ret = subprocess.call(cmd, shell=True) if ret: status.append([file, device, True]) else: status.append([file, device, False]) except KeyboardInterrupt: pass ...
<|file_sep|>utils/run_tests.py.diff original: cmd = "./arista-transcode -q -d %s tests/%s test_output" % (id, file) updated: cmd = "./arista-transcode -q -d %s -o test_output tests/%s" % (id, file) <|file_sep|>utils/run_tests.py.diff original: print "Report" print "======" for file, device, failed in status:...
300e946cd72561c69141f65768debed9d0682abb
utils/run_tests.py
utils/run_tests.py
Python
<|file_sep|>src/components/demos/DigitalLines/index.js.diff original: updated: class Line { constructor() { try { this.path = new paper.Path(); this.path.fillColor = undefined; this.path.strokeColor = 'green'; this.path.strokeWidth = 2; <|file_sep|>src/components/demos/DigitalLines/index.js.diff ...
paper.setup(canvas); for (var i = 0; i < 10; i++) lines.push(new Line()); path.view.onFrame = function (event) { }; // Draw the view now: paper.view.draw(); }; componentWillUpdate() { }; render() { return (
<|file_sep|>src/components/demos/DigitalLines/index.js.diff original: updated: class Line { constructor() { try { this.path = new paper.Path(); this.path.fillColor = undefined; this.path.strokeColor = 'green'; this.path.strokeWidth = 2; <|file_sep|>src/components/demos/DigitalLines/index.js.diff ...
5a98f2a4874d47da9e05a56eae3018e911fc30f1
src/components/demos/DigitalLines/index.js
src/components/demos/DigitalLines/index.js
JavaScript
<|file_sep|>original/vim/50-plugins-vimwiki.vim let g:vimwiki_list = [{'path': '~/vimwiki/', \ 'syntax': 'markdown', 'ext': '.md'}] let g:vimwiki_global_ext = 0 nnoremap <Leader>we :e ~/vimwiki/<CR> <|file_sep|>current/vim/50-plugins-vimwiki.vim let g:vimwiki_list = [{'path': '~/vimwiki/', ...
let g:vimwiki_list = [{'path': '~/vimwiki/', \ 'syntax': 'markdown', 'ext': '.md'}] let g:vimwiki_global_ext = 0 nnoremap <Leader>we :e ~/vimwiki/<CR> au FocusGained,BufEnter */vimwiki/* :silent! ! au FocusLost,WinLeave */vimwiki/* :w
<|file_sep|>original/vim/50-plugins-vimwiki.vim let g:vimwiki_list = [{'path': '~/vimwiki/', \ 'syntax': 'markdown', 'ext': '.md'}] let g:vimwiki_global_ext = 0 nnoremap <Leader>we :e ~/vimwiki/<CR> <|file_sep|>current/vim/50-plugins-vimwiki.vim let g:vimwiki_list = [{'path': '~/vimwiki/', ...
0487f3f59ee274e6ca910888c5245591a17a5ba3
vim/50-plugins-vimwiki.vim
vim/50-plugins-vimwiki.vim
VimL
<|file_sep|>.travis.yml.diff original: - jruby-9.2.11.0 updated: - jruby-9.2.11.1 <|file_sep|>original/.travis.yml sudo: false language: ruby rvm: - 2.7 - 2.6 - 2.5 - 2.4 - 2.3 - ruby-head - jruby-9.2.11.0 - truffleruby matrix: allow_failures: - rvm: 2.3 - rvm: ruby-head - rvm: truffleruby # fast_fini...
sudo: false language: ruby rvm: - 2.7 - 2.6 - 2.5 - 2.4 - 2.3 - ruby-head - jruby-9.2.11.1 - truffleruby matrix: allow_failures: - rvm: 2.3 - rvm: ruby-head - rvm: truffleruby - rvm: jruby-9.2.11.1 # fast_finish: true
<|file_sep|>.travis.yml.diff original: - jruby-9.2.11.0 updated: - jruby-9.2.11.1 <|file_sep|>original/.travis.yml sudo: false language: ruby rvm: - 2.7 - 2.6 - 2.5 - 2.4 - 2.3 - ruby-head - jruby-9.2.11.0 - truffleruby matrix: allow_failures: - rvm: 2.3 - rvm: ruby-head - rvm: truffleruby # fast_fini...
4e28361d773f26823bbd883dd8a7caf91225c6f9
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/Storage/DoctrineCacheWrapper.php /** * @inheritdoc */ public function save($key, CacheEntry $data) { try { $lifeTime = $data->getTTL(); if ($lifeTime >= 0) { return $this->cache->save( $key, ...
* @inheritdoc */ public function save($key, CacheEntry $data) { try { $lifeTime = $data->getTTL(); if ($lifeTime >= 0) { return $this->cache->save( $key, serialize($data), $lifeTime ...
<|file_sep|>original/src/Storage/DoctrineCacheWrapper.php /** * @inheritdoc */ public function save($key, CacheEntry $data) { try { $lifeTime = $data->getTTL(); if ($lifeTime >= 0) { return $this->cache->save( $key, ...
01b118b038f3051549bd99883469c1293258fba0
src/Storage/DoctrineCacheWrapper.php
src/Storage/DoctrineCacheWrapper.php
PHP
<|file_sep|>original/test/_fields-helper.js var fs = require('fs'), keystone = require('keystone'); exports.init = function (shouldRunTests) { keystone.init(); var typesLoc = __dirname + '/../fields/types'; var types = fs.readdirSync(typesLoc); types.forEach(function(name) { var serverTestLoc = typesLoc + '/'...
var fs = require('fs'), keystone = require('../index'); exports.init = function (shouldRunTests) { keystone.init(); var typesLoc = __dirname + '/../fields/types'; var types = fs.readdirSync(typesLoc); types.forEach(function(name) { var serverTestLoc = typesLoc + '/' + name + '/test/server.js'; if (!fs.exist...
<|file_sep|>original/test/_fields-helper.js var fs = require('fs'), keystone = require('keystone'); exports.init = function (shouldRunTests) { keystone.init(); var typesLoc = __dirname + '/../fields/types'; var types = fs.readdirSync(typesLoc); types.forEach(function(name) { var serverTestLoc = typesLoc + '/'...
9a91b3670328e991c8df2258f58ff79dd09e3442
test/_fields-helper.js
test/_fields-helper.js
JavaScript
<|file_sep|>original/.travis.yml cache: bundler gemfile: ruby/Gemfile before_install: - cd ruby - bundle --version - gem --version script: - bundle install --jobs=3 --retry=3 - bundle exec rake build - bundle exec rake spec rvm: - 2.3.3 # Replace this with the notification stuff for your Slack channel...
language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly install: cd rust/berg-compiler && cargo build --verbose script: cd rust/berg-compiler && cargo build --verbose && cargo test --verbose
<|file_sep|>original/.travis.yml cache: bundler gemfile: ruby/Gemfile before_install: - cd ruby - bundle --version - gem --version script: - bundle install --jobs=3 --retry=3 - bundle exec rake build - bundle exec rake spec rvm: - 2.3.3 # Replace this with the notification stuff for your Slack channel...
3ec907e3eef413a69780814fc1d738a42baf2de0
.travis.yml
.travis.yml
YAML
<|file_sep|>.dotfiles/www/nginx.zsh.diff original: updated: <|file_sep|>original/.dotfiles/www/nginx.zsh # #------------------------------------------------------------------------------- # nginx alias xconf='vi /usr/local/etc/nginx/nginx.conf' alias xconfd='cd /usr/local/etc/nginx' alias xstart='sudo nginx' alias x...
# nginx alias xconf='vi /usr/local/etc/nginx/nginx.conf' alias xconfd='cd /usr/local/etc/nginx' alias xstart='sudo nginx' alias xreload='sudo nginx -s reload' alias xstop='sudo nginx -s stop' alias xstatus='ps aux | grep nginx' alias xps='xstatus' alias xtraffic='goaccess -f /usr/local/var/log/nginx/access.log' alias ...
<|file_sep|>.dotfiles/www/nginx.zsh.diff original: updated: <|file_sep|>original/.dotfiles/www/nginx.zsh # #------------------------------------------------------------------------------- # nginx alias xconf='vi /usr/local/etc/nginx/nginx.conf' alias xconfd='cd /usr/local/etc/nginx' alias xstart='sudo nginx' alias x...
7f6b5fb8e76b315f664bad4f4f11bf12261346f8
.dotfiles/www/nginx.zsh
.dotfiles/www/nginx.zsh
Shell
<|file_sep|>original/tests/test_text.py <|file_sep|>current/tests/test_text.py <|file_sep|>updated/tests/test_text.py
"""Unit tests for straight text output.""" import unittest import utils class TestText(utils.TestCase): def test_short_string(self): self.assertEqual(self.render('{% template %}short'), 'short') self.assertEqual(self.render('{% template %}short\n2'), 'short\n2') self.assertEqual(self.rend...
<|file_sep|>original/tests/test_text.py <|file_sep|>current/tests/test_text.py <|file_sep|>updated/tests/test_text.py """Unit tests for straight text output.""" import unittest import utils class TestText(utils.TestCase): def test_short_string(self): self.assertEqual(self.render('{% template %}short'),...
19280f953b3eac8231466b4cceae7160737ae0e1
tests/test_text.py
tests/test_text.py
Python
<|file_sep|>VOKMockUrlProtocol.podspec.diff original: s.version = "2.0.1" updated: s.version = "2.0.2" <|file_sep|>original/VOKMockUrlProtocol.podspec Pod::Spec.new do |s| s.name = "VOKMockUrlProtocol" s.version = "2.0.1" s.summary = "A url protocol that parses ...
Pod::Spec.new do |s| s.name = "VOKMockUrlProtocol" s.version = "2.0.2" s.summary = "A url protocol that parses and returns fake responses with mock data." s.homepage = "https://github.com/vokal/VOKMockUrlProtocol" s.license = { :type => "MIT", :file => "LICENSE"}...
<|file_sep|>VOKMockUrlProtocol.podspec.diff original: s.version = "2.0.1" updated: s.version = "2.0.2" <|file_sep|>original/VOKMockUrlProtocol.podspec Pod::Spec.new do |s| s.name = "VOKMockUrlProtocol" s.version = "2.0.1" s.summary = "A url protocol that parses ...
01ea8b6ca832c6332e1288a3afb27938b5e15b36
VOKMockUrlProtocol.podspec
VOKMockUrlProtocol.podspec
Ruby
<|file_sep|>original/python/count-inversions.py <|file_sep|>current/python/count-inversions.py <|file_sep|>updated/python/count-inversions.py
def countInversions(list): if len(list) == 1: return list, 0; else: middle = int(len(list)/2) A = list[:middle] B = list[middle:] left, a = countInversions(A) right, b = countInversions(B) result, c = countSplitInversions(left, right) return result, a + b + c def countSplitInversions(A, B): # Copi...
<|file_sep|>original/python/count-inversions.py <|file_sep|>current/python/count-inversions.py <|file_sep|>updated/python/count-inversions.py def countInversions(list): if len(list) == 1: return list, 0; else: middle = int(len(list)/2) A = list[:middle] B = list[middle:] left, a = countInversions(A) ri...
1fcbd94d99fa7ea28330dbfb69c5b24d34ebcdd5
python/count-inversions.py
python/count-inversions.py
Python
<|file_sep|>lib/defaultTemplate.hbs.diff original: // this file is auto-generated, do not edit var Ember = require('ember'); // get Ember global around for the templates updated: /** * This file is auto-generated, by Emberate * (https://www.npmjs.org/package/emberate) * * DO NOT MODIFY */ 'use strict'; <|file_sep|...
/** * This file is auto-generated, by Emberate * (https://www.npmjs.org/package/emberate) * * DO NOT MODIFY */ 'use strict'; var Ember = require('ember'); var {{appName}} = require('./app'); {{appName}}.Router = require('./router'); {{#each modules}}{{#if isTemplate}} Ember.TEMPLATES['{{name}}'] = require('{{pa...
<|file_sep|>lib/defaultTemplate.hbs.diff original: // this file is auto-generated, do not edit var Ember = require('ember'); // get Ember global around for the templates updated: /** * This file is auto-generated, by Emberate * (https://www.npmjs.org/package/emberate) * * DO NOT MODIFY */ 'use strict'; <|file_sep|...
7b5428785b29ca3f0bc72f50b8d075afe4cf6e24
lib/defaultTemplate.hbs
lib/defaultTemplate.hbs
Handlebars
<|file_sep|>config/menu.php.diff original: 'priority' => 2, updated: 'priority' => 3, <|file_sep|>config/menu.php.diff original: 'priority' => 3, updated: 'priority' => 4, <|file_sep|>config/menu.php.diff original: updated: 'pages' => array( 'title' => 'Pages', 'url' => '/cms/pages', 'priority...
'priority' => 3, ), 'people' => array( 'title' => 'People', 'url' => '/cms/people', 'action' => 'manage_people', 'priority' => 4, ), 'pages' => array( 'title' => 'Pages', 'url' => '/cms/pages', 'priority' => 2, ), 'templates' => array( 'title' => 'Templates', 'url' => '...
<|file_sep|>config/menu.php.diff original: 'priority' => 2, updated: 'priority' => 3, <|file_sep|>config/menu.php.diff original: 'priority' => 3, updated: 'priority' => 4, <|file_sep|>config/menu.php.diff original: updated: 'pages' => array( 'title' => 'Pages', 'url' => '/cms/pages', 'priority...
ebbf63439fff7e0c40b7f713b4f2f37920ee6d11
config/menu.php
config/menu.php
PHP
<|file_sep|>original/.travis.yml include: - env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.1], sources: [hvr-ghc]}} - os: osx env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" before_install: - if [[ $TRAVIS_...
include: - env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.1], sources: [hvr-ghc]}} - os: osx env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" before_install: - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ...
<|file_sep|>original/.travis.yml include: - env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.1], sources: [hvr-ghc]}} - os: osx env: CABALVER="2.2" GHCVER="8.4.1" compiler: ": #GHC 8.4.1" before_install: - if [[ $TRAVIS_...
0e4d4c058e92fef13bfc6cef78ba27fadfca2a04
.travis.yml
.travis.yml
YAML
<|file_sep|>original/uploadtoCDB.py <|file_sep|>current/uploadtoCDB.py <|file_sep|>updated/uploadtoCDB.py
#uploadtoCDB.py #Written By: Alejandro Morejon Cortina (Apr 2016) #usage:python uploadtoCDB.py <username> <filecontainingkey.txt> <upload.csv> import sys import requests import csv import json import time #sys.argv[1] is the your cartodb user name #sys.argv[2] is the text file containing your api key #sys.argv[3] is ...
<|file_sep|>original/uploadtoCDB.py <|file_sep|>current/uploadtoCDB.py <|file_sep|>updated/uploadtoCDB.py #uploadtoCDB.py #Written By: Alejandro Morejon Cortina (Apr 2016) #usage:python uploadtoCDB.py <username> <filecontainingkey.txt> <upload.csv> import sys import requests import csv import json import time #sys....
4e8ff1f7e524d8dc843816c714e86d11e21a8562
uploadtoCDB.py
uploadtoCDB.py
Python
<|file_sep|>original/project_template/project_name/context_processors.py from django.conf import settings def add_settings( request ): """Add some selected settings values to the context""" return { 'settings': { 'GOOGLE_ANALYTICS_ACCOUNT': settings.GOOGLE_ANALYTICS_ACCOUNT, } }...
from django.conf import settings def add_settings( request ): """Add some selected settings values to the context""" return { 'settings': { 'GOOGLE_ANALYTICS_ACCOUNT': settings.GOOGLE_ANALYTICS_ACCOUNT, 'DEBUG': settings.DEBUG, } }
<|file_sep|>original/project_template/project_name/context_processors.py from django.conf import settings def add_settings( request ): """Add some selected settings values to the context""" return { 'settings': { 'GOOGLE_ANALYTICS_ACCOUNT': settings.GOOGLE_ANALYTICS_ACCOUNT, } }...
bfdfb47049c3b560f49bb917ea56e85f85c80e91
project_template/project_name/context_processors.py
project_template/project_name/context_processors.py
Python
<|file_sep|>original/README.md Ansible: NGINX - PHP (2-Tier) ============================= Ansible playbook to provision nginx webservers and php (5/7) application servers in a 2-tier architecture. By default, the playbook provisions a `web` and `app` node in the `webservers` and `appservers` groups, respectively, us...
Ansible: NGINX - PHP (2-Tier) ============================= Ansible playbook to provision nginx web servers and php (5/7) application servers. By default, the playbook provisions a `web` and `app` node in the `webservers` and `appservers` groups, respectively, using the following configurations declared in `group_var...
<|file_sep|>original/README.md Ansible: NGINX - PHP (2-Tier) ============================= Ansible playbook to provision nginx webservers and php (5/7) application servers in a 2-tier architecture. By default, the playbook provisions a `web` and `app` node in the `webservers` and `appservers` groups, respectively, us...
034d98ef01c9294ec14cc44d90a8d955b337e4f3
README.md
README.md
Markdown
<|file_sep|>original/Testing/Unit/Python/CMakeLists.txt sitk_add_python_test( Test.IOTest "${CMAKE_CURRENT_SOURCE_DIR}/IOTest.py" "${SimpleITK_TEST_OUTPUT_DIR}") # Numpy test. sitk_add_python_test( Test.Numpy "${CMAKE_CURRENT_SOURCE_DIR}/sitkNumpyArrayConversionTest.py" ) sitk_add_python_test( Test.ProcessObj...
"${CMAKE_CURRENT_SOURCE_DIR}/IOTest.py" "${SimpleITK_TEST_OUTPUT_DIR}") # Numpy test. sitk_add_python_test( Test.Numpy "${CMAKE_CURRENT_SOURCE_DIR}/sitkNumpyArrayConversionTest.py" ) sitk_add_python_test( Test.ProcessObject "${CMAKE_CURRENT_SOURCE_DIR}/sitkProcessObjectTest.py" ) sitk_add_python_test( Te...
<|file_sep|>original/Testing/Unit/Python/CMakeLists.txt sitk_add_python_test( Test.IOTest "${CMAKE_CURRENT_SOURCE_DIR}/IOTest.py" "${SimpleITK_TEST_OUTPUT_DIR}") # Numpy test. sitk_add_python_test( Test.Numpy "${CMAKE_CURRENT_SOURCE_DIR}/sitkNumpyArrayConversionTest.py" ) sitk_add_python_test( Test.ProcessObj...
d16d43def61b06779e9ce1d674a49ece880d11a9
Testing/Unit/Python/CMakeLists.txt
Testing/Unit/Python/CMakeLists.txt
Text