prompt
stringlengths
77
6.9k
completion
stringlengths
1
3.38k
text
stringlengths
163
9.03k
commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
lang
stringclasses
277 values
<|file_sep|>original/solutions/uri/1009/1009.rb <|file_sep|>current/solutions/uri/1009/1009.rb <|file_sep|>updated/solutions/uri/1009/1009.rb
name = gets salary = gets.to_f value_sold = gets.to_f puts "TOTAL = R$ #{'%.2f' % (salary + value_sold * 0.15)}"
<|file_sep|>original/solutions/uri/1009/1009.rb <|file_sep|>current/solutions/uri/1009/1009.rb <|file_sep|>updated/solutions/uri/1009/1009.rb name = gets salary = gets.to_f value_sold = gets.to_f puts "TOTAL = R$ #{'%.2f' % (salary + value_sold * 0.15)}"
840c659a9e7eacc2e2055ecae813809467f05376
solutions/uri/1009/1009.rb
solutions/uri/1009/1009.rb
Ruby
<|file_sep|>original/fuzzyfinder/main.py def fuzzyfinder(text, collection): """ Args: text (str): A partial string which is typically entered by a user. collection (iterable): A collection of strings which will be filtered based on the input `text`. Returns: ...
def fuzzyfinder(text, collection): """ Args: text (str): A partial string which is typically entered by a user. collection (iterable): A collection of strings which will be filtered based on the input `text`. Returns: suggestions (generator): A generat...
<|file_sep|>original/fuzzyfinder/main.py def fuzzyfinder(text, collection): """ Args: text (str): A partial string which is typically entered by a user. collection (iterable): A collection of strings which will be filtered based on the input `text`. Returns: ...
fff1312d506b4268be2e2ce7c333d9f25babdd59
fuzzyfinder/main.py
fuzzyfinder/main.py
Python
<|file_sep|>original/wafer/talks/migrations/0011_talk_status_data_migration.py <|file_sep|>current/wafer/talks/migrations/0011_talk_status_data_migration.py <|file_sep|>updated/wafer/talks/migrations/0011_talk_status_data_migration.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models # Data migration for the changed talk status def change_pending(apps, schema_editor): # Change Pending (P) status to # (S) Submitted # Use apps to ensure we have the correct version Talk = apps.g...
<|file_sep|>original/wafer/talks/migrations/0011_talk_status_data_migration.py <|file_sep|>current/wafer/talks/migrations/0011_talk_status_data_migration.py <|file_sep|>updated/wafer/talks/migrations/0011_talk_status_data_migration.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db imp...
ee68ac19f7417a16f4250486a064bfc8a8f37e47
wafer/talks/migrations/0011_talk_status_data_migration.py
wafer/talks/migrations/0011_talk_status_data_migration.py
Python
<|file_sep|>original/roles/web-db.rb name "web-db" description "Role applied to all servers needing to find the main database" default_attributes( :web => { :database_host => "katla.bm.openstreetmap.org", :readonly_database_host => "ramoth.ic.openstreetmap.org" } ) <|file_sep|>current/roles/web-db.rb name ...
name "web-db" description "Role applied to all servers needing to find the main database" default_attributes( :web => { :database_host => "katla.bm.openstreetmap.org", :readonly_database_host => "katla.bm.openstreetmap.org" } )
<|file_sep|>original/roles/web-db.rb name "web-db" description "Role applied to all servers needing to find the main database" default_attributes( :web => { :database_host => "katla.bm.openstreetmap.org", :readonly_database_host => "ramoth.ic.openstreetmap.org" } ) <|file_sep|>current/roles/web-db.rb name ...
ba2374aa0a7dc5c971ebda99f4c6bc19d37c18d2
roles/web-db.rb
roles/web-db.rb
Ruby
<|file_sep|>original/.travis.yml os: - linux language: python python: - pypy - 3.5 - 3.6 - 3.7 - 3.8 before_script: - pip install -r requirements-dev.txt script: - python sh.py travis - if python -c 'import sys; sys.exit(int(not sys.version_info >= (3, 5)))' ; then python setup.p...
os: - linux language: python python: - pypy - 3.5 - 3.6 before_script: - pip install -r requirements-dev.txt script: - python sh.py travis - if python -c 'import sys; sys.exit(int(not sys.version_info >= (3, 5)))' ; then python setup.py check --restructuredtext --metadata --strict ; fi ...
<|file_sep|>original/.travis.yml os: - linux language: python python: - pypy - 3.5 - 3.6 - 3.7 - 3.8 before_script: - pip install -r requirements-dev.txt script: - python sh.py travis - if python -c 'import sys; sys.exit(int(not sys.version_info >= (3, 5)))' ; then python setup.p...
5ecd95ab45360357dd8c320e01f1c28631b52e2a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.rst ================ django-xvalidate ================ django-xvalidate allows you to declare cross-field validators within a Django model. As an example, consider a Django model named :code:`Event`. .. code:: python from django.db import models class Event(models.Model): tit...
================ django-xvalidate ================ .. image:: https://travis-ci.org/suriya/django-xvalidate.svg?branch=master :target: https://travis-ci.org/suriya/django-xvalidate django-xvalidate allows you to declare cross-field validators within a Django model. As an example, consider a Django model named :...
<|file_sep|>original/README.rst ================ django-xvalidate ================ django-xvalidate allows you to declare cross-field validators within a Django model. As an example, consider a Django model named :code:`Event`. .. code:: python from django.db import models class Event(models.Model): tit...
3d196deee8a09d61fc1a1a3766e2e1d3ed0fe089
README.rst
README.rst
reStructuredText
<|file_sep|>original/app/assets/templates/layout/navbar_links.html.slim ul.nav.navbar-nav li.dropdown a(data-toggle="dropdown") | {{ :: 'nav.shop' | translate}} | &nbsp; span.caret ul.dropdown-menu li.dropdown-header(ng-repeat-start="taxonomy in taxonomies") | {{taxonomy.name}...
ul.nav.navbar-nav li.dropdown a(data-toggle="dropdown") | {{ :: 'nav.shop' | translate}} | &nbsp; span.caret ul.dropdown-menu li.dropdown-header(ng-repeat-start="taxonomy in taxonomies") | {{taxonomy.name}} li(ng-repeat="taxon in taxonomy.root.taxons") a(ng-href...
<|file_sep|>original/app/assets/templates/layout/navbar_links.html.slim ul.nav.navbar-nav li.dropdown a(data-toggle="dropdown") | {{ :: 'nav.shop' | translate}} | &nbsp; span.caret ul.dropdown-menu li.dropdown-header(ng-repeat-start="taxonomy in taxonomies") | {{taxonomy.name}...
1dab79bbe57f74d18f2f35c9821c01b4f8dd8edf
app/assets/templates/layout/navbar_links.html.slim
app/assets/templates/layout/navbar_links.html.slim
Slim
<|file_sep|>original/config.sh #!/bin/sh # # Configuration for the module to compile, the Swift toolchain, and # the compiler and linker flags to use. # VER=2.0 Mod=GLibObject Pkg=GObject Module=${Pkg}-${VER} module="`echo "${Module}" | tr '[:upper:]' '[:lower:]'`" mod="`echo "${Pkg}" | tr '[:upper:]' '[:lower:]'`" LIN...
# # Configuration for the module to compile, the Swift toolchain, and # the compiler and linker flags to use. # VER=2.0 Mod=GLibObject Pkg=GObject Module=${Pkg}-${VER} module="`echo "${Module}" | tr '[:upper:]' '[:lower:]'`" mod="`echo "${Pkg}" | tr '[:upper:]' '[:lower:]'`" BUILD_DIR=`pwd`/.build export PATH="${BUILD_...
<|file_sep|>original/config.sh #!/bin/sh # # Configuration for the module to compile, the Swift toolchain, and # the compiler and linker flags to use. # VER=2.0 Mod=GLibObject Pkg=GObject Module=${Pkg}-${VER} module="`echo "${Module}" | tr '[:upper:]' '[:lower:]'`" mod="`echo "${Pkg}" | tr '[:upper:]' '[:lower:]'`" LIN...
27d2002e0c1dfc471c3a46caacb3346b28827ef2
config.sh
config.sh
Shell
<|file_sep|>original/requirements-test.txt # Testing coverage==6.3.1 # Test coverage flake8==3.9.2 # Python linting mypy==0.910 # Static typing <|file_sep|>current/requirements-test.txt # Testing coverage==6.3.1 # Test coverage flake8==3.9.2 ...
# Testing coverage==6.3.1 # Test coverage flake8==4.0.1 # Python linting mypy==0.910 # Static typing
<|file_sep|>original/requirements-test.txt # Testing coverage==6.3.1 # Test coverage flake8==3.9.2 # Python linting mypy==0.910 # Static typing <|file_sep|>current/requirements-test.txt # Testing coverage==6.3.1 # Test coverage flake8==3.9.2 ...
1e4dc251283663e1998a2cdc71f79842cbfd41bf
requirements-test.txt
requirements-test.txt
Text
<|file_sep|>platform/wasm/test-server.js.diff original: updated: // Add some logging on each request app.use(function(req, res, next) { const date = new Date().toISOString(); console.log( `[${date}] "${cyan(req.method)} ${cyan(req.url)}" "${req.headers["user-agent"]}"` ); next(); }); <|file_sep|>platform/wasm/t...
app.use(express.static(".", { fallthrough: false })); // Add logging on failed requests. app.use(function (error, req, res, next) { const date = new Date().toISOString(); console.error( `[${date}] "${red(req.method)} ${red(req.url)}" Error (${red(error.status.toString())}): "${red(error.message)}"` ); next(error...
<|file_sep|>platform/wasm/test-server.js.diff original: updated: // Add some logging on each request app.use(function(req, res, next) { const date = new Date().toISOString(); console.log( `[${date}] "${cyan(req.method)} ${cyan(req.url)}" "${req.headers["user-agent"]}"` ); next(); }); <|file_sep|>platform/wasm/t...
3716935789ed49ae905df0d3da6adf8c52e0f966
platform/wasm/test-server.js
platform/wasm/test-server.js
JavaScript
<|file_sep|>original/app/helpers/application_helper.rb module ApplicationHelper def facet_options(form, facet) form.object.facet_options(facet) end def locale_codes I18n.t('language_names').keys end def map_locale_names locale_codes.index_by { |l| [t("language_names.#{l}", locale: "en")] } end...
module ApplicationHelper def facet_options(form, facet) form.object.facet_options(facet) end def locale_codes I18n.t('language_names').keys end def map_locale_names locale_codes.map { |l| [t("language_names.#{l}", locale: "en"), l] }.to_h end end
<|file_sep|>original/app/helpers/application_helper.rb module ApplicationHelper def facet_options(form, facet) form.object.facet_options(facet) end def locale_codes I18n.t('language_names').keys end def map_locale_names locale_codes.index_by { |l| [t("language_names.#{l}", locale: "en")] } end...
899fb183b9c1a33329f76d2fcc058396d80e560f
app/helpers/application_helper.rb
app/helpers/application_helper.rb
Ruby
<|file_sep|>original/website/source/docs/providers/aws/r/codedeploy_app.html.markdown <|file_sep|>current/website/source/docs/providers/aws/r/codedeploy_app.html.markdown <|file_sep|>updated/website/source/docs/providers/aws/r/codedeploy_app.html.markdown
--- layout: "aws" page_title: "AWS: aws_codedeploy_app" sidebar_current: "docs-aws-resource-codedeploy-app" description: |\ Provides a CodeDeploy application. --- # aws\_codedeploy\_app Provides a CodeDeploy application to be used as a basis for deployments ## Example Usage ``` resource "aws_codedeploy_app" "foo"...
<|file_sep|>original/website/source/docs/providers/aws/r/codedeploy_app.html.markdown <|file_sep|>current/website/source/docs/providers/aws/r/codedeploy_app.html.markdown <|file_sep|>updated/website/source/docs/providers/aws/r/codedeploy_app.html.markdown --- layout: "aws" page_title: "AWS: aws_codedeploy_app" sideba...
fa3dfd1420dea811e8b0992092a43afaee703e8e
website/source/docs/providers/aws/r/codedeploy_app.html.markdown
website/source/docs/providers/aws/r/codedeploy_app.html.markdown
Markdown
<|file_sep|>db/migrate/20141121161704_add_identity_table.rb.diff original: updated: remove_index :users, ["extern_uid", "provider"] <|file_sep|>original/db/migrate/20141121161704_add_identity_table.rb remove_column :users, :provider end def down add_column :users, :extern_uid, :string add_column :...
end def down add_column :users, :extern_uid, :string add_column :users, :provider, :string if ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' execute <<eos UPDATE users u SET provider = i.provider, extern_uid = i.extern_uid FROM identities i WHERE i.user_id = u.id eos else ...
<|file_sep|>db/migrate/20141121161704_add_identity_table.rb.diff original: updated: remove_index :users, ["extern_uid", "provider"] <|file_sep|>original/db/migrate/20141121161704_add_identity_table.rb remove_column :users, :provider end def down add_column :users, :extern_uid, :string add_column :...
031461e1063040f61f80872de4394e763ec2dfa2
db/migrate/20141121161704_add_identity_table.rb
db/migrate/20141121161704_add_identity_table.rb
Ruby
<|file_sep|>original/.travis.yml sudo: required language: csharp matrix: include: - os: linux dotnet: 2.2.105 mono: none dist: bionic before_install: - ./.travis/before-install-$TRAVIS_OS_NAME.sh script: - dotnet restore ./LiteDB/LiteDB.csproj - dotnet build ./LiteDB/LiteDB.csproj -f net...
sudo: required language: csharp matrix: include: - os: linux dotnet: 2.2.301 mono: none dist: bionic before_install: - ./.travis/before-install-$TRAVIS_OS_NAME.sh script: - dotnet restore ./LiteDB/LiteDB.csproj - dotnet build ./LiteDB/LiteDB.csproj -f netstandard2.0 - dotnet restore ./...
<|file_sep|>original/.travis.yml sudo: required language: csharp matrix: include: - os: linux dotnet: 2.2.105 mono: none dist: bionic before_install: - ./.travis/before-install-$TRAVIS_OS_NAME.sh script: - dotnet restore ./LiteDB/LiteDB.csproj - dotnet build ./LiteDB/LiteDB.csproj -f net...
793be43704289b884d23ebbaf8ffef4815327acd
.travis.yml
.travis.yml
YAML
<|file_sep|>original/track-and-status-controls/progressbar/control-element-structure.md --- title: Control Element Structure page_title: Control Element Structure | UI for WinForms Documentation description: Control Element Structure slug: winforms/track-and-status-controls/progressbar/control-element-structure tags: c...
--- title: Control Element Structure page_title: Control Element Structure | UI for WinForms Documentation description: Control Element Structure slug: winforms/track-and-status-controls/progressbar/control-element-structure tags: control,element,structure published: True position: 1 --- # Control Element Structure T...
<|file_sep|>original/track-and-status-controls/progressbar/control-element-structure.md --- title: Control Element Structure page_title: Control Element Structure | UI for WinForms Documentation description: Control Element Structure slug: winforms/track-and-status-controls/progressbar/control-element-structure tags: c...
7580adbcfce75a8d208c170d46b83423a9ddc881
track-and-status-controls/progressbar/control-element-structure.md
track-and-status-controls/progressbar/control-element-structure.md
Markdown
<|file_sep|>locales/fr/home.properties.diff original: updated: advocacy_alt=logo advocacy <|file_sep|>locales/fr/home.properties.diff original: updated: encrypt_alt=image pour la bannière encrypt new_intro=Le chiffrement influe sur votre vie privée en ligne. Découvrez comment fonctionne le chiffrement, pourquoi il co...
# Accessibility string for the Advocacy logo, not displayed in the page advocacy_alt=logo advocacy # Accessibility string for the Encrypt banner, not displayed in the page encrypt_alt=image pour la bannière encrypt new_intro=Le chiffrement influe sur votre vie privée en ligne. Découvrez comment fonctionne le chiffreme...
<|file_sep|>locales/fr/home.properties.diff original: updated: advocacy_alt=logo advocacy <|file_sep|>locales/fr/home.properties.diff original: updated: encrypt_alt=image pour la bannière encrypt new_intro=Le chiffrement influe sur votre vie privée en ligne. Découvrez comment fonctionne le chiffrement, pourquoi il co...
26fa09326dab6c308345b98fb44bd8e37761d7a2
locales/fr/home.properties
locales/fr/home.properties
INI
<|file_sep|>original/check-whitespace.sh #!/bin/sh fail=0 if grep -n ' $$' "$@" then echo "^^^ The above files contain unwanted trailing spaces" fail=1 fi if grep -n ' ' "$@" then echo "^^^ The above files contain tabs" fail=1 fi exit $fail <|file_sep|>current/check-whitespace.sh #!/bin/sh fail=0 if grep ...
#!/bin/sh fail=0 if grep -n ' $' "$@" then echo "^^^ The above files contain unwanted trailing spaces" fail=1 fi if grep -n ' ' "$@" then echo "^^^ The above files contain tabs" fail=1 fi exit $fail
<|file_sep|>original/check-whitespace.sh #!/bin/sh fail=0 if grep -n ' $$' "$@" then echo "^^^ The above files contain unwanted trailing spaces" fail=1 fi if grep -n ' ' "$@" then echo "^^^ The above files contain tabs" fail=1 fi exit $fail <|file_sep|>current/check-whitespace.sh #!/bin/sh fail=0 if grep ...
58d16740e915af653733a200b3c2a38b8c64a1b8
check-whitespace.sh
check-whitespace.sh
Shell
<|file_sep|>original/src/Object.js /** * @require {core.ext.Object} * @require {core.ext.String} * @require {core.ext.Function} */ core.Class("lowland.Object", { include : [core.property.MGeneric, lowland.base.UserData, lowland.base.Events], construct : function() { lowland.base.UserData.call(this); ...
* @require {core.ext.Object} * @require {core.ext.String} * @require {core.ext.Function} */ core.Class("lowland.Object", { include : [core.property.MGeneric, lowland.base.UserData, lowland.base.Events], construct : function() { lowland.base.UserData.call(this); lowland.base.Events.call(this); }, ...
<|file_sep|>original/src/Object.js /** * @require {core.ext.Object} * @require {core.ext.String} * @require {core.ext.Function} */ core.Class("lowland.Object", { include : [core.property.MGeneric, lowland.base.UserData, lowland.base.Events], construct : function() { lowland.base.UserData.call(this); ...
6eae6d6034c9b3ceb6e564498d9fc0bfeb4bbc9b
src/Object.js
src/Object.js
JavaScript
<|file_sep|>original/website/src/app/project/experiments/experiment/components/tasks/components/mc-task-template.component.js angular.module('materialscommons').component('mcTaskTemplate', { templateUrl: 'app/project/experiments/experiment/components/tasks/components/mc-task-template.html', controller: MCTaskTe...
angular.module('materialscommons').component('mcTaskTemplate', { templateUrl: 'app/project/experiments/experiment/components/tasks/components/mc-task-template.html', controller: MCTaskTemplateComponentController, bindings: { task: '=' } }); /*@ngInject*/ function MCTaskTemplateComponentControll...
<|file_sep|>original/website/src/app/project/experiments/experiment/components/tasks/components/mc-task-template.component.js angular.module('materialscommons').component('mcTaskTemplate', { templateUrl: 'app/project/experiments/experiment/components/tasks/components/mc-task-template.html', controller: MCTaskTe...
8302dd782cf8756b6f5584b40678103e42c8ad81
website/src/app/project/experiments/experiment/components/tasks/components/mc-task-template.component.js
website/src/app/project/experiments/experiment/components/tasks/components/mc-task-template.component.js
JavaScript
<|file_sep|>plugins/CMakeLists.txt.diff original: INCLUDE(hpp-core-plugin) updated: include(hpp-core-plugin) <|file_sep|>plugins/CMakeLists.txt.diff original: updated: EXPORT spline-gradient-basedTargets <|file_sep|>original/plugins/CMakeLists.txt # Copyright (c) 2019, 2020 Joseph Mirabel, Guilhem Saurel, CNRS # Aut...
# This file is part of hpp-core. # hpp-core is free software: you can redistribute it # and/or modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation, either version # 3 of the License, or (at your option) any later version. # # hpp-core is distributed in the h...
<|file_sep|>plugins/CMakeLists.txt.diff original: INCLUDE(hpp-core-plugin) updated: include(hpp-core-plugin) <|file_sep|>plugins/CMakeLists.txt.diff original: updated: EXPORT spline-gradient-basedTargets <|file_sep|>original/plugins/CMakeLists.txt # Copyright (c) 2019, 2020 Joseph Mirabel, Guilhem Saurel, CNRS # Aut...
179fdb88236a88aad7bea985925b2e93083486f6
plugins/CMakeLists.txt
plugins/CMakeLists.txt
Text
<|file_sep|>original/.github/workflows/configlet.yml # This workflow will do a fetch the latest configlet binary and lint this repository. name: configlet on: [push, pull_request, workflow_dispatch] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Fetch configlet ...
# This workflow will do a fetch the latest configlet binary and lint this repository. name: configlet on: [push, pull_request, workflow_dispatch] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Fetch configlet uses: exercism/github-actions/configlet-ci@ma...
<|file_sep|>original/.github/workflows/configlet.yml # This workflow will do a fetch the latest configlet binary and lint this repository. name: configlet on: [push, pull_request, workflow_dispatch] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Fetch configlet ...
43cff091321811ebf584296bdc94aa02a1a065fd
.github/workflows/configlet.yml
.github/workflows/configlet.yml
YAML
<|file_sep|>original/java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md --- category: minorAnalysis --- * Added taint model for arguments of `java.net.URI` constructors. <|file_sep|>current/java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md --- category: minorAnalysis --- * Added...
--- category: minorAnalysis --- * Added taint model for arguments of `java.net.URI` constructors to the queries `java/path-injection` and `java/path-injection-local`.
<|file_sep|>original/java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md --- category: minorAnalysis --- * Added taint model for arguments of `java.net.URI` constructors. <|file_sep|>current/java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md --- category: minorAnalysis --- * Added...
8c3580374928b1eeaddbf3c41633503c205d5529
java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md
java/ql/src/change-notes/2022-09-13-flow-model-for-uri-constructors.md
Markdown
<|file_sep|>original/.travis.yml language: php php: - 7.2 - 7.4 env: - LARAVEL_VERSION=5.8.* - LARAVEL_VERSION=6.4.* - LARAVEL_VERSION=7.0.* matrix: fast_finish: true before_script: - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction - if [ "$LAR...
language: php php: - 7.2 - 7.4 env: - LARAVEL_VERSION=5.8.* - LARAVEL_VERSION=6.4.* - LARAVEL_VERSION=7.0.* - LARAVEL_VERSION=8.0.* matrix: fast_finish: true before_script: - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction - if [ "$LARAVEL_VE...
<|file_sep|>original/.travis.yml language: php php: - 7.2 - 7.4 env: - LARAVEL_VERSION=5.8.* - LARAVEL_VERSION=6.4.* - LARAVEL_VERSION=7.0.* matrix: fast_finish: true before_script: - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction - if [ "$LAR...
73b75e17915b90f97fff307f5fec4e780afae9ac
.travis.yml
.travis.yml
YAML
<|file_sep|>original/collections/devtoolset-4-rh/include.sh export INSTALL_SCLS=devtoolset-4 export ENABLE_SCLS=devtoolset-4 <|file_sep|>current/collections/devtoolset-4-rh/include.sh export INSTALL_SCLS=devtoolset-4 export ENABLE_SCLS=devtoolset-4 <|file_sep|>updated/collections/devtoolset-4-rh/include.sh
export INSTALL_SCLS=devtoolset-4-perftools devtoolset-4-toolchain export ENABLE_SCLS=devtoolset-4
<|file_sep|>original/collections/devtoolset-4-rh/include.sh export INSTALL_SCLS=devtoolset-4 export ENABLE_SCLS=devtoolset-4 <|file_sep|>current/collections/devtoolset-4-rh/include.sh export INSTALL_SCLS=devtoolset-4 export ENABLE_SCLS=devtoolset-4 <|file_sep|>updated/collections/devtoolset-4-rh/include.sh export INSTA...
a7a16d266f048f8f166a27ecdb4510cc95f2196c
collections/devtoolset-4-rh/include.sh
collections/devtoolset-4-rh/include.sh
Shell
<|file_sep|>examples/charts/file/stacked_bar.py.diff original: from bokeh.models.tools import HoverTool updated: <|file_sep|>examples/charts/file/stacked_bar.py.diff original: title="Medals per Country, Sorted by Total Medals") updated: title="Medals per Country, Sorted by Total Medals", ...
# utilize utility to make it easy to get json/dict data converted to a dataframe df = df_from_json(data) # filter by countries with at least one medal and sort by total medals df = df[df['total'] > 0] df = df.sort("total", ascending=False) bar = Bar(df, values=blend('bronze', 'silver', 'gold', name='medals...
<|file_sep|>examples/charts/file/stacked_bar.py.diff original: from bokeh.models.tools import HoverTool updated: <|file_sep|>examples/charts/file/stacked_bar.py.diff original: title="Medals per Country, Sorted by Total Medals") updated: title="Medals per Country, Sorted by Total Medals", ...
1e0327c852b851f867d21a182ba7604b42d15331
examples/charts/file/stacked_bar.py
examples/charts/file/stacked_bar.py
Python
<|file_sep|>original/composer.json "license": "BSD-3-Clause", "authors": [{ "name": "Alexandre Saelens", "email": "alexandre.saelens@dna.co.nz" }], "require": { "silverstripe/framework": "~3.1", "silverstripe/cms": "~3.1", "silverstripe/widgets": "~1.1.0", "silverstripe-australia/gridfieldextensions": "...
"license": "BSD-3-Clause", "authors": [{ "name": "Alexandre Saelens", "email": "alexandre.saelens@dna.co.nz" }], "require": { "silverstripe/framework": "~3.1", "silverstripe/cms": "~3.1", "silverstripe/widgets": "~1.1.0", "silverstripe-australia/gridfieldextensions": "~1.0", "silverstripe-australia/ad...
<|file_sep|>original/composer.json "license": "BSD-3-Clause", "authors": [{ "name": "Alexandre Saelens", "email": "alexandre.saelens@dna.co.nz" }], "require": { "silverstripe/framework": "~3.1", "silverstripe/cms": "~3.1", "silverstripe/widgets": "~1.1.0", "silverstripe-australia/gridfieldextensions": "...
ac3d639f8d0151ce18510e73b165b89f570b81e6
composer.json
composer.json
JSON
<|file_sep|>wkhtmltopdf_binary_provider_gem.gemspec.diff original: spec.name = "wkhtmltopdf_binary_provider_gem" updated: spec.name = "wkhtmltopdf_binary_provider" <|file_sep|>original/wkhtmltopdf_binary_provider_gem.gemspec lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless...
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wkhtmltopdf_binary_provider_gem/version' Gem::Specification.new do |spec| spec.name = "wkhtmltopdf_binary_provider" spec.version = WkhtmltopdfBinaryProviderGem::VERSION spec.authors = ...
<|file_sep|>wkhtmltopdf_binary_provider_gem.gemspec.diff original: spec.name = "wkhtmltopdf_binary_provider_gem" updated: spec.name = "wkhtmltopdf_binary_provider" <|file_sep|>original/wkhtmltopdf_binary_provider_gem.gemspec lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless...
fdff5626147499f35afc7dadce58b0e83e268e12
wkhtmltopdf_binary_provider_gem.gemspec
wkhtmltopdf_binary_provider_gem.gemspec
Ruby
<|file_sep|>original/.travis.yml after_script: bash <(curl -s https://codecov.io/bash) deploy: - provider: npm skip_cleanup: true email: tituswormer@gmail.com api_key: secure: V53jr9VQv2689wNscG7rb2Hk+I5dKTDBlxUvdyRel0aEOeJXcgjfkqLeZMQcQs4/WF8yJa3ZWnTeBy7JHbsZxPH9cRFq1mkqVzqVwYDMFMJd5IKO3nCJ7C6LT+IA...
language: node_js node_js: - '4.0' - '9.0' sudo: false after_script: bash <(curl -s https://codecov.io/bash) deploy: provider: releases skip_cleanup: true skip_cleanup: true api_key: secure: Bp50SC4K6ea+ID5uyqKTkP2yHW+KI0B0+H5ZSl26ZTtZrTZfP6jktP8VB5iPlGqu/6Sp49vxtHUL2UteiuIQdwirIzuzDH3FM0z/+mhstAopNUkrVLDw7...
<|file_sep|>original/.travis.yml after_script: bash <(curl -s https://codecov.io/bash) deploy: - provider: npm skip_cleanup: true email: tituswormer@gmail.com api_key: secure: V53jr9VQv2689wNscG7rb2Hk+I5dKTDBlxUvdyRel0aEOeJXcgjfkqLeZMQcQs4/WF8yJa3ZWnTeBy7JHbsZxPH9cRFq1mkqVzqVwYDMFMJd5IKO3nCJ7C6LT+IA...
d4182dabc4c6390b652d8d29540d4a432ebf7961
.travis.yml
.travis.yml
YAML
<|file_sep|>original/src/CMakeLists.txt cmake_minimum_required(VERSION 3.1) project(tumoppr CXX) set(CXX_PROJECT tumopp) find_package(${CXX_PROJECT} REQUIRED CONFIG) include(GNUInstallDirs) get_target_property(CXX_INCLUDEDIR ${CXX_PROJECT} INTERFACE_INCLUDE_DIRECTORIES) message(STATUS "INCLUDEDIR: ${CXX_INCLUDEDIR}")...
cmake_minimum_required(VERSION 3.1) project(tumoppr CXX) set(CXX_PROJECT tumopp) find_package(${CXX_PROJECT} REQUIRED CONFIG) include(GNUInstallDirs) if(${CMAKE_PREFIX_PATH} MATCHES linuxbrew) set(CMAKE_INSTALL_LIBDIR lib) endif() get_target_property(CXX_INCLUDEDIR ${CXX_PROJECT} INTERFACE_INCLUDE_DIRECTORIES) mes...
<|file_sep|>original/src/CMakeLists.txt cmake_minimum_required(VERSION 3.1) project(tumoppr CXX) set(CXX_PROJECT tumopp) find_package(${CXX_PROJECT} REQUIRED CONFIG) include(GNUInstallDirs) get_target_property(CXX_INCLUDEDIR ${CXX_PROJECT} INTERFACE_INCLUDE_DIRECTORIES) message(STATUS "INCLUDEDIR: ${CXX_INCLUDEDIR}")...
d10cce1f75d8e05d5fd1b27fdb60d1517979f2b3
src/CMakeLists.txt
src/CMakeLists.txt
Text
<|file_sep|>original/tests/bootstrap-dist.php <|file_sep|>current/tests/bootstrap-dist.php <|file_sep|>updated/tests/bootstrap-dist.php
<?php require_once 'lib/Proem/Loader/Autoloader.php'; use Proem\Loader\Autoloader; $loader = new AutoLoader(); $loader->registerNamespaces([ 'Proem\\Tests' => 'tests/lib', 'Proem' => 'lib', 'PHPUnit_' => '/usr/share/php/PHPUnit' ])->register();
<|file_sep|>original/tests/bootstrap-dist.php <|file_sep|>current/tests/bootstrap-dist.php <|file_sep|>updated/tests/bootstrap-dist.php <?php require_once 'lib/Proem/Loader/Autoloader.php'; use Proem\Loader\Autoloader; $loader = new AutoLoader(); $loader->registerNamespaces([ 'Proem\\Tests' => 'tests/lib', ...
8373be76598e64dfcf92b2441758549c671b53da
tests/bootstrap-dist.php
tests/bootstrap-dist.php
PHP
<|file_sep|>project.clj.diff original: updated: [prismatic/schema "1.1.3"] <|file_sep|>project.clj.diff original: [org.clojure/clojurescript "1.9.227"]]}} updated: [org.clojure/clojurescript "1.9.227"]]} ...
:url "https://github.com/metosin/spec-tools" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html" :distribution :repo :comments "same as Clojure"} :dependencies [[org.clojure/clojure "1.9.0-alpha10"]] :plugins [[funcool/codeina "0.4.0"]] ...
<|file_sep|>project.clj.diff original: updated: [prismatic/schema "1.1.3"] <|file_sep|>project.clj.diff original: [org.clojure/clojurescript "1.9.227"]]}} updated: [org.clojure/clojurescript "1.9.227"]]} ...
500ed35fb5e3447f51d444d56aa7033a2a3e10c7
project.clj
project.clj
Clojure
<|file_sep|>original/config/application.rb # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a li...
# Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. De...
<|file_sep|>original/config/application.rb # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a li...
0b0e31448c5822954c28d9e53c90f40049d2b904
config/application.rb
config/application.rb
Ruby
<|file_sep|>app.tmpl/models.py.diff original: from flask.ext.sqlalchemy import SQLAlchemy updated: from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate <|file_sep|>original/app.tmpl/models.py from datetime import datetime from flask.ext.sqlalchemy import SQLAlchemy from {{PROJECTNAME}} import app ...
from datetime import datetime from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from {{PROJECTNAME}} import app app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format( os.path.join(app.root_path, app.name + '.db')) db = SQLAlchemy(app) migrate = Migrate(app, db) #class MyModel(db...
<|file_sep|>app.tmpl/models.py.diff original: from flask.ext.sqlalchemy import SQLAlchemy updated: from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate <|file_sep|>original/app.tmpl/models.py from datetime import datetime from flask.ext.sqlalchemy import SQLAlchemy from {{PROJECTNAME}} import app ...
996611b4ec0f0e13769d40122f21b6a6362783a5
app.tmpl/models.py
app.tmpl/models.py
Python
<|file_sep|>app/src/main/res/layout/activity_github_user_detail.xml.diff original: android:text="Username goes here" updated: <|file_sep|>original/app/src/main/res/layout/activity_github_user_detail.xml android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertica...
android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context="net.ericschrag.ud_demo.GithubUserDetailActivity"> <ImageView android:id="@+id/user_avatar" android:layout_width="120dp" android:layout_height="120dp" ...
<|file_sep|>app/src/main/res/layout/activity_github_user_detail.xml.diff original: android:text="Username goes here" updated: <|file_sep|>original/app/src/main/res/layout/activity_github_user_detail.xml android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertica...
084e6c4e4f8303b423b022dcb6502a6300a643c2
app/src/main/res/layout/activity_github_user_detail.xml
app/src/main/res/layout/activity_github_user_detail.xml
XML
<|file_sep|>original/app/views/student_support_programs/forms/_new.html.erb <div id="student-support-program-form-wrapper"> <%= form_for @student_support_program, html: { multipart: true } do |f| %> <%= render 'student_support_programs/forms/fields/name_logo', f: f %> <%= render 'student_support_programs/...
<div id="student-support-program-form-wrapper"> <%= form_for @student_support_program, html: { multipart: true } do |f| %> <%= render 'student_support_programs/forms/fields/name_logo', f: f %> <%= render 'student_support_programs/forms/fields/video_link', f: f %> <%= render 'student_support_programs/f...
<|file_sep|>original/app/views/student_support_programs/forms/_new.html.erb <div id="student-support-program-form-wrapper"> <%= form_for @student_support_program, html: { multipart: true } do |f| %> <%= render 'student_support_programs/forms/fields/name_logo', f: f %> <%= render 'student_support_programs/...
fa69710e8690e6fc5cb89d4a8c2b4a5a85ebe624
app/views/student_support_programs/forms/_new.html.erb
app/views/student_support_programs/forms/_new.html.erb
HTML+ERB
<|file_sep|>BubbleViewController/Classes/BubbleView.swift.diff original: updated: label.font = UIFont.boldSystemFontOfSize(21.0) <|file_sep|>BubbleViewController/Classes/BubbleView.swift.diff original: updated: /* label.centerXAnchor.constraintEqualToAnchor(centerXAnchor) label.cente...
label.textAlignment = .Center /* label.centerXAnchor.constraintEqualToAnchor(centerXAnchor) label.centerYAnchor.constraintEqualToAnchor(centerYAnchor) label.widthAnchor.constraintEqualToAnchor(widthAnchor) label.heightAnchor.constraintEqualToAnchor(heightAnchor) ...
<|file_sep|>BubbleViewController/Classes/BubbleView.swift.diff original: updated: label.font = UIFont.boldSystemFontOfSize(21.0) <|file_sep|>BubbleViewController/Classes/BubbleView.swift.diff original: updated: /* label.centerXAnchor.constraintEqualToAnchor(centerXAnchor) label.cente...
a5f899e1e2765fb4da9175bf7ebfa986627fc499
BubbleViewController/Classes/BubbleView.swift
BubbleViewController/Classes/BubbleView.swift
Swift
<|file_sep|>original/_includes/topnav.html <nav class="navbar navbar-default navbar-static-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="...
<nav class="navbar navbar-inverse navbar-static-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span...
<|file_sep|>original/_includes/topnav.html <nav class="navbar navbar-default navbar-static-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="...
de9be49dcccfc7e716b4b2b9334216f0d94ad171
_includes/topnav.html
_includes/topnav.html
HTML
<|file_sep|>Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs.diff original: updated: #pragma warning disable CS3003 // Type is not CLS-compliant <|file_sep|>original/Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs namespace MvvmFx.CaliburnMicro { using System; /// <summary> /// Used to manag...
namespace MvvmFx.CaliburnMicro { using System; /// <summary> /// Used to manage logging. /// </summary> public static class LogManager { private static readonly Logging.ILog NullLogInstance = new Logging.NullLogger(); #pragma warning disable CS3003 // Type is not CLS-compliant ...
<|file_sep|>Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs.diff original: updated: #pragma warning disable CS3003 // Type is not CLS-compliant <|file_sep|>original/Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs namespace MvvmFx.CaliburnMicro { using System; /// <summary> /// Used to manag...
baadacc2a22ee0814473866b442b5d6af9e5958a
Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs
Source/CaliburnMicro/CaliburnMicro.WinForms/Logging.cs
C#
<|file_sep|>original/subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy <|file_sep|>current/subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsComp...
/* * Copyright 2021 the original author or 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 applica...
<|file_sep|>original/subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy <|file_sep|>current/subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsComp...
b6f731396944a52e428942ac74a2df81124759f6
subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy
subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy
Groovy
<|file_sep|>rsscache.gemspec.diff original: spec.add_dependency 'simple-rss' updated: spec.add_dependency 'simple-rss', '~> 1.3.1' <|file_sep|>original/rsscache.gemspec spec.version = RSSCache::Version::STRING spec.authors = ['Trevor Parker'] spec.email = ['trevor@trevorparker.com'] spec...
spec.version = RSSCache::Version::STRING spec.authors = ['Trevor Parker'] spec.email = ['trevor@trevorparker.com'] spec.summary = 'An RSS fetching and caching library.' spec.description = '' spec.homepage = 'https://github.com/trevorparker/rsscache' spec.license = 'M...
<|file_sep|>rsscache.gemspec.diff original: spec.add_dependency 'simple-rss' updated: spec.add_dependency 'simple-rss', '~> 1.3.1' <|file_sep|>original/rsscache.gemspec spec.version = RSSCache::Version::STRING spec.authors = ['Trevor Parker'] spec.email = ['trevor@trevorparker.com'] spec...
c9d4242ef629cdcec3ed7a11df7dd1da9114989a
rsscache.gemspec
rsscache.gemspec
Ruby
<|file_sep|>original/React/Fabric/RCTFabricPlatformUIOperationManager.h namespace facebook { namespace react { /** * Connector class (from C++ to ObjC++) to allow FabricUIManager to invoke native UI operations/updates. * UIKit-related impl doesn't live here, but this class gets passed to the FabricUIManager C++ impl...
namespace facebook { namespace react { /** * Connector class (from C++ to ObjC++) to allow FabricUIManager to invoke native UI operations/updates. * UIKit-related impl doesn't live here, but this class gets passed to the FabricUIManager C++ impl directly. */ class RCTFabricPlatformUIOperationManagerConnector : publ...
<|file_sep|>original/React/Fabric/RCTFabricPlatformUIOperationManager.h namespace facebook { namespace react { /** * Connector class (from C++ to ObjC++) to allow FabricUIManager to invoke native UI operations/updates. * UIKit-related impl doesn't live here, but this class gets passed to the FabricUIManager C++ impl...
41acb0a75b1ed5b4cf2feb74c64113a06a284e85
React/Fabric/RCTFabricPlatformUIOperationManager.h
React/Fabric/RCTFabricPlatformUIOperationManager.h
C
<|file_sep|>original/package.json { "name": "racer-examples", "description": "Example applications for racer", "version": "0.0.1", "repository": { "type": "git", "url": "git://github.com/codeparty/racer-examples.git" }, "dependencies": { "coffeeify": "~0.6.0", "express": "~3.4.8", "lived...
{ "name": "racer-examples", "description": "Example applications for racer", "version": "0.0.1", "repository": { "type": "git", "url": "git://github.com/codeparty/racer-examples.git" }, "dependencies": { "coffeeify": "~0.6.0", "express": "~3.4.8", "livedb-mongo": "~0.3.0", "racer": "...
<|file_sep|>original/package.json { "name": "racer-examples", "description": "Example applications for racer", "version": "0.0.1", "repository": { "type": "git", "url": "git://github.com/codeparty/racer-examples.git" }, "dependencies": { "coffeeify": "~0.6.0", "express": "~3.4.8", "lived...
327aab5afea20a17adc942da6cc34904ea4222ba
package.json
package.json
JSON
<|file_sep|>original/vim/vundle.vim Bundle 'scrooloose/nerdtree' Bundle 'nathanaelkane/vim-command-w' Bundle 'nathanaelkane/snipmate-snippets' Bundle 'nathanaelkane/vim-indent-guides' Bundle 'wincent/Command-T' Bundle 'bronson/vim-trailing-whitespace' Bundle 'bufexplorer.zip' Bundle 'vimwiki' Bundle 'haml.zip' Bundle '...
" set rtp+=~/.vim/bundle/vundle/ " call vundle#rc() Bundle 'gmarik/vundle' Bundle 'scrooloose/nerdtree' Bundle 'nathanaelkane/vim-command-w' Bundle 'nathanaelkane/snipmate-snippets' Bundle 'nathanaelkane/vim-indent-guides' Bundle 'wincent/Command-T' Bundle 'bronson/vim-trailing-whitespace' Bundle 'bufexplorer.zip' Bun...
<|file_sep|>original/vim/vundle.vim Bundle 'scrooloose/nerdtree' Bundle 'nathanaelkane/vim-command-w' Bundle 'nathanaelkane/snipmate-snippets' Bundle 'nathanaelkane/vim-indent-guides' Bundle 'wincent/Command-T' Bundle 'bronson/vim-trailing-whitespace' Bundle 'bufexplorer.zip' Bundle 'vimwiki' Bundle 'haml.zip' Bundle '...
843ebb7855f9907586f47238b7421c37bc29dac7
vim/vundle.vim
vim/vundle.vim
VimL
<|file_sep|>original/README.md # xway [appway](http://github.com/threez/appway) client written in ruby [![Travis-CI Build Status](https://secure.travis-ci.org/dpree/xway.png)](https://secure.travis-ci.org/dpree/xway) [![Dependency Status](https://gemnasium.com/dpree/xway.png)](https://gemnasium.com/dpree/xway) [![Cod...
# xway [appway](http://github.com/threez/appway) client written in ruby [![Travis-CI Build Status](https://secure.travis-ci.org/dpree/xway.png)](https://secure.travis-ci.org/dpree/xway) [![Coverage Status](https://coveralls.io/repos/dpree/xway/badge.png)](https://coveralls.io/r/dpree/xway) [![Dependency Status](https...
<|file_sep|>original/README.md # xway [appway](http://github.com/threez/appway) client written in ruby [![Travis-CI Build Status](https://secure.travis-ci.org/dpree/xway.png)](https://secure.travis-ci.org/dpree/xway) [![Dependency Status](https://gemnasium.com/dpree/xway.png)](https://gemnasium.com/dpree/xway) [![Cod...
bb7ed92aaf3abbca230ed1912875899632e1e7a7
README.md
README.md
Markdown
<|file_sep|>original/.github/ISSUE_TEMPLATE.md ### Prerequisites * [ ] Can you reproduce the problem on TYPO3 8.7 LTS * [ ] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package) to see if your bug or enhancement is already reported? ### ...
### Prerequisites * [ ] Can you reproduce the problem on TYPO3 v8.7 LTS * [ ] Can you reproduce the problem on TYPO3 v9.5 LTS * [ ] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package) to see if your bug or enhancement is already reporte...
<|file_sep|>original/.github/ISSUE_TEMPLATE.md ### Prerequisites * [ ] Can you reproduce the problem on TYPO3 8.7 LTS * [ ] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package) to see if your bug or enhancement is already reported? ### ...
579da24b138286d1b27f2b138a3007f947857f71
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
Markdown
<|file_sep|>meta/padding.go.diff original: buf := make([]byte, 4096) updated: var buf [4096]byte <|file_sep|>meta/padding.go.diff original: n, err := r.Read(buf) updated: n, err := r.Read(buf[:]) <|file_sep|>original/meta/padding.go return err } if !isAllZero(buf[:n]) { return errors.New("meta.VerifyPad...
break } return err } if !isAllZero(buf[:n]) { return errors.New("meta.VerifyPadding: invalid padding; must contain only zeroes") } } return nil } // isAllZero returns true if the value of each byte in the provided slice is 0, // and false otherwise. func isAllZero(buf []byte) bool { for _, b := r...
<|file_sep|>meta/padding.go.diff original: buf := make([]byte, 4096) updated: var buf [4096]byte <|file_sep|>meta/padding.go.diff original: n, err := r.Read(buf) updated: n, err := r.Read(buf[:]) <|file_sep|>original/meta/padding.go return err } if !isAllZero(buf[:n]) { return errors.New("meta.VerifyPad...
818de6e7da67a15639653699d03281b9471715aa
meta/padding.go
meta/padding.go
Go
<|file_sep|>.travis.yml.diff original: - 5.5 updated: <|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 services: - redis-server before_script: - phpenv config-add ./tests/travis/php.ini - composer self-update - composer install --prefer-source <|file_sep|>current/.travis.yml language: p...
language: php php: - 5.6 - 7.0 services: - redis-server before_script: - phpenv config-add ./tests/travis/php.ini - composer self-update - composer install --prefer-source
<|file_sep|>.travis.yml.diff original: - 5.5 updated: <|file_sep|>original/.travis.yml language: php php: - 5.5 - 5.6 services: - redis-server before_script: - phpenv config-add ./tests/travis/php.ini - composer self-update - composer install --prefer-source <|file_sep|>current/.travis.yml language: p...
5060f4a9dd13dacad929d8df75c55b0d683035fc
.travis.yml
.travis.yml
YAML
<|file_sep|>react/features/base/util/loadScript.native.js.diff original: * file/resource/URL via a &lt;script&gt; HTML element, so the implementation * fetches the specified src as plain text (e.g. via XMLHttpRequest) and then updated: * file/resource/URL via a <script> HTML element, so the implementation * fetches...
* fetches the specified src as plain text using fetch() and then * evaluates the fetched string as JavaScript code (i.e. via the {@link eval} * function). * * @param {string} url - The absolute URL from the which the script is to be * (down)loaded. * @returns {void} */ export function loadScript(url) { retu...
<|file_sep|>react/features/base/util/loadScript.native.js.diff original: * file/resource/URL via a &lt;script&gt; HTML element, so the implementation * fetches the specified src as plain text (e.g. via XMLHttpRequest) and then updated: * file/resource/URL via a <script> HTML element, so the implementation * fetches...
c0f648b1abce2df12f58205343799509984847f7
react/features/base/util/loadScript.native.js
react/features/base/util/loadScript.native.js
JavaScript
<|file_sep|>original/lib/diameter/u24.rb <|file_sep|>current/lib/diameter/u24.rb <|file_sep|>updated/lib/diameter/u24.rb
def u8_and_u16_to_u24(eightb, sixteenb) (eightb << 16) + sixteenb end def u24_to_u8_and_u16(twentyfourb) top_eight = twentyfourb >> 16 bottom_sixteen = twentyfourb - (top_eight << 16) [top_eight, bottom_sixteen] end
<|file_sep|>original/lib/diameter/u24.rb <|file_sep|>current/lib/diameter/u24.rb <|file_sep|>updated/lib/diameter/u24.rb def u8_and_u16_to_u24(eightb, sixteenb) (eightb << 16) + sixteenb end def u24_to_u8_and_u16(twentyfourb) top_eight = twentyfourb >> 16 bottom_sixteen = twentyfourb - (top_eight << 16) [top...
1d5eaa7d927c35f8b06358f30ac95e45f82bd029
lib/diameter/u24.rb
lib/diameter/u24.rb
Ruby
<|file_sep|>original/samples-project-testing/test_site_server.js //This server is here, because we need to go up a directory from the test site for some resources. var connect = require('connect'); connect.createServer( connect.static(__dirname) ).listen(3000); <|file_sep|>current/samples-project-testing/test_site_...
//This server is here, because we need to go up a directory from the test site for some resources. var connect = require('connect'), http = require('http'); var app = connect() .use(connect.logger('short')) .use(connect.static(__dirname)); http.createServer(app).listen(3000);
<|file_sep|>original/samples-project-testing/test_site_server.js //This server is here, because we need to go up a directory from the test site for some resources. var connect = require('connect'); connect.createServer( connect.static(__dirname) ).listen(3000); <|file_sep|>current/samples-project-testing/test_site_...
873b8b37a48919a7f4f0763648928b2e61c94df6
samples-project-testing/test_site_server.js
samples-project-testing/test_site_server.js
JavaScript
<|file_sep|>original/client/package.json { "dependencies": { "superdesk-core": "1.7.0-rc.7" } } <|file_sep|>current/client/package.json { "dependencies": { "superdesk-core": "1.7.0-rc.7" } } <|file_sep|>updated/client/package.json
{ "dependencies": { "superdesk-core": "1.7.0-rc.8" } }
<|file_sep|>original/client/package.json { "dependencies": { "superdesk-core": "1.7.0-rc.7" } } <|file_sep|>current/client/package.json { "dependencies": { "superdesk-core": "1.7.0-rc.7" } } <|file_sep|>updated/client/package.json { "dependencies": { "superdesk-core": "1.7.0-...
1fdb30307661ece15cfee065d29a5efce9c3de81
client/package.json
client/package.json
JSON
<|file_sep|>original/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php <|file_sep|>current/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php <|file_sep|>updated/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php
<?php use Illuminate\Database\Migrations\Migration; class AddKeyAndTokenIndexes extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('tokens', function ($collection) { $collection->index('key'); }); ...
<|file_sep|>original/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php <|file_sep|>current/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php <|file_sep|>updated/database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php <?php use Illuminate\Database\Migrations\Migration; class AddKe...
010f6b78051022419cea6e7c2d2649f3199361ba
database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php
database/migrations/2016_02_29_162723_AddKeyAndTokenIndexes.php
PHP
<|file_sep|>package.json.diff original: "ethereumjs-account": "2.0.2", updated: "ethereumjs-account": "2.0.4", <|file_sep|>package.json.diff original: "ethereumjs-tx": "1.1.1", "ethereumjs-util": "4.1.0", "ethereumjs-vm": "1.2.1", updated: "ethereumjs-tx": "1.1.2", "ethereumjs-util": "4.5.0"...
"async": "^1.4.2", "bignumber.js": "^2.3.0", "body-parser": "^1.14.0", "cors": "^2.7.1", "ethereumjs-account": "2.0.4", "ethereumjs-block": "1.2.2", "ethereumjs-blockchain": "1.4.1", "ethereumjs-tx": "1.1.2", "ethereumjs-util": "4.5.0", "ethereumjs-vm": "1.4.1", "express": "^...
<|file_sep|>package.json.diff original: "ethereumjs-account": "2.0.2", updated: "ethereumjs-account": "2.0.4", <|file_sep|>package.json.diff original: "ethereumjs-tx": "1.1.1", "ethereumjs-util": "4.1.0", "ethereumjs-vm": "1.2.1", updated: "ethereumjs-tx": "1.1.2", "ethereumjs-util": "4.5.0"...
83b16a92164c62fb5adc9507e0826e5e0ea38c7e
package.json
package.json
JSON
<|file_sep|>apps/files_sharing/ajax/email.php.diff original: $toaddress = OCP\Util::sanitizeHtml($_POST['toaddress']); updated: <|file_sep|>original/apps/files_sharing/ajax/email.php <?php OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('files_sharing'); $user = OCP\USER::getUser(); // TODO translations $toaddres...
<?php OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('files_sharing'); $user = OCP\USER::getUser(); // TODO translations $type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file'; $subject = $user.' shared a '.$type.' with you'; $link = $_POST['link']; $text = $user.' shared the '.$type.' '.$_POST['file...
<|file_sep|>apps/files_sharing/ajax/email.php.diff original: $toaddress = OCP\Util::sanitizeHtml($_POST['toaddress']); updated: <|file_sep|>original/apps/files_sharing/ajax/email.php <?php OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('files_sharing'); $user = OCP\USER::getUser(); // TODO translations $toaddres...
7b2ec414773d020b756d84e7bd95e03c0791634d
apps/files_sharing/ajax/email.php
apps/files_sharing/ajax/email.php
PHP
<|file_sep|>config/initializers/redcarpet.rb.diff original: return Markdowner.render markup \ if is_markdown_file updated: return RbST.new(markup).to_html \ unless is_markdown_file <|file_sep|>original/config/initializers/redcarpet.rb tables: true, lax_spacing: true, autolink: true } ::Markdowner = R...
require 'rbst' def render_markup markup, file_name file_name.downcase! is_markdown_file = ( file_name.count('.') != 1 ) is_markdown_file ||= ( file_name.split('.').last != 'rst' ) return RbST.new(markup).to_html \ unless is_markdown_file readme_markdown = Markdowner.render markup github_image_host ...
<|file_sep|>config/initializers/redcarpet.rb.diff original: return Markdowner.render markup \ if is_markdown_file updated: return RbST.new(markup).to_html \ unless is_markdown_file <|file_sep|>original/config/initializers/redcarpet.rb tables: true, lax_spacing: true, autolink: true } ::Markdowner = R...
5c85e5be55b832f7e91947cdd1c840b41554b553
config/initializers/redcarpet.rb
config/initializers/redcarpet.rb
Ruby
<|file_sep|>static/javascript/tba_js/tba_favorites.js.diff original: $(".favorite-match-icon").each(function () { var match_teams = JSON.parse($(this).attr("data-teams")); for (var i in match_teams) { if (match_teams[i] in favoriteTeams) { $(this).show(); } } }); updated: <|file_se...
error: function(xhr, textStatus, errorThrown) { $.cookie(cookieName, JSON.stringify({}), { expires: date }); } }); } else { updateMatchFavorites(JSON.parse(storedFavoriteTeams)); } } function updateMatchFavorites(favoriteTeams) { $(".favorite-team-dot").each(function() { if ($(thi...
<|file_sep|>static/javascript/tba_js/tba_favorites.js.diff original: $(".favorite-match-icon").each(function () { var match_teams = JSON.parse($(this).attr("data-teams")); for (var i in match_teams) { if (match_teams[i] in favoriteTeams) { $(this).show(); } } }); updated: <|file_se...
3317bf7d29416c3125510dddcd31da1a9cc34dd8
static/javascript/tba_js/tba_favorites.js
static/javascript/tba_js/tba_favorites.js
JavaScript
<|file_sep|>original/src/Listabierta/Bundle/MunicipalesBundle/Resources/config/doctrine/Voter.orm.yml username: type: string length: '25' password: type: string length: 255 isActive: type: boolean phone: type: string...
length: '20' academic_level: type: integer nullable: TRUE languages: type: array nullable: TRUE job_experience: type: array nullable: TRUE town_activiti...
<|file_sep|>original/src/Listabierta/Bundle/MunicipalesBundle/Resources/config/doctrine/Voter.orm.yml username: type: string length: '25' password: type: string length: 255 isActive: type: boolean phone: type: string...
87453ecdc9572eed8b8d3d6d760d1f20cebb1adb
src/Listabierta/Bundle/MunicipalesBundle/Resources/config/doctrine/Voter.orm.yml
src/Listabierta/Bundle/MunicipalesBundle/Resources/config/doctrine/Voter.orm.yml
YAML
<|file_sep|>README.md.diff original: updated: Issues ------ If you get an error in the unit tests: ``` initializationError(com.nhinds.lastpass.encryption.AES256DecryptionProviderTest): java.security.InvalidKeyException: Illegal key size ``` You might need to install the [unlimited strength jurisdiction policy](http:...
Collection<? extends PasswordInfo allPasswords = store.getPasswords(); Issues ------ If you get an error in the unit tests: ``` initializationError(com.nhinds.lastpass.encryption.AES256DecryptionProviderTest): java.security.InvalidKeyException: Illegal key size ``` You might need to install the [unlimited strength ...
<|file_sep|>README.md.diff original: updated: Issues ------ If you get an error in the unit tests: ``` initializationError(com.nhinds.lastpass.encryption.AES256DecryptionProviderTest): java.security.InvalidKeyException: Illegal key size ``` You might need to install the [unlimited strength jurisdiction policy](http:...
b6552f5b56596f97927bad2890cf239ef325bfdd
README.md
README.md
Markdown
<|file_sep|>original/git/aliases.zsh # Use `hub` as our git wrapper: # http://defunkt.github.com/hub/ hub_path=$(which hub) if (( $+commands[hub] )) then alias git=$hub_path fi # The rest of my fun git aliases alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset...
# Use `hub` as our git wrapper: # http://defunkt.github.com/hub/ hub_path=$(which hub) if (( $+commands[hub] )) then alias git=$hub_path fi # The rest of my fun git aliases alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Cre...
<|file_sep|>original/git/aliases.zsh # Use `hub` as our git wrapper: # http://defunkt.github.com/hub/ hub_path=$(which hub) if (( $+commands[hub] )) then alias git=$hub_path fi # The rest of my fun git aliases alias gl='git pull --prune' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset...
8bd7904f57ccf92702bb24921d3fc33c639bbcef
git/aliases.zsh
git/aliases.zsh
Shell
<|file_sep|>original/modules/vscode/config/keybindings.json [ { "key": "ctrl+shift+r", "command": "editor.action.format", "when": "editorTextFocus" }, { "key": "alt+shift+down", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+down", "command": "editor.action.moveLines...
[ { "key": "ctrl+shift+r", "command": "editor.action.format", "when": "editorTextFocus" }, { "key": "alt+shift+down", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus" }, { "key": "ctrl+shi...
<|file_sep|>original/modules/vscode/config/keybindings.json [ { "key": "ctrl+shift+r", "command": "editor.action.format", "when": "editorTextFocus" }, { "key": "alt+shift+down", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" }, { "key": "ctrl+shift+down", "command": "editor.action.moveLines...
2c06eaa29789a61cc7bd2a6520b2013355f5909b
modules/vscode/config/keybindings.json
modules/vscode/config/keybindings.json
JSON
<|file_sep|>original/CODE_OF_CONDUCT.md <|file_sep|>current/CODE_OF_CONDUCT.md <|file_sep|>updated/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
<|file_sep|>original/CODE_OF_CONDUCT.md <|file_sep|>current/CODE_OF_CONDUCT.md <|file_sep|>updated/CODE_OF_CONDUCT.md # Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project ...
f19278036b527b029aa91ca1152f50445f18ee67
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
Markdown
<|file_sep|>spam/ansiInventory.py.diff original: if not group: return self.inventory.hosts.keys() groupobj = self.inventory.groups.get(group, None) if not groupobj: return None hostobjs = groupobj.get_hosts() updated: <|file_sep|>original/spam/ansiInventory.py ...
print "Provide a valid inventory filename" return self.inventory = ansible.inventory.InventoryParser(inventory_filename) def get_hosts(self, group=None): ''' Get the hosts ''' hostlist = [] for group in self.inventory.groups: grou...
<|file_sep|>spam/ansiInventory.py.diff original: if not group: return self.inventory.hosts.keys() groupobj = self.inventory.groups.get(group, None) if not groupobj: return None hostobjs = groupobj.get_hosts() updated: <|file_sep|>original/spam/ansiInventory.py ...
8337575314ae02e99eeded1ffb537a87a423b2c0
spam/ansiInventory.py
spam/ansiInventory.py
Python
<|file_sep|>original/atom/common/api/event_emitter_caller.cc namespace mate { namespace internal { v8::Local<v8::Value> CallMethodWithArgs(v8::Isolate* isolate, v8::Local<v8::Object> obj, const char* method, ...
v8::Local<v8::Value> CallMethodWithArgs(v8::Isolate* isolate, v8::Local<v8::Object> obj, const char* method, ValueVector* args) { // Perform microtask checkpoint after running JavaScript. v8::Mic...
<|file_sep|>original/atom/common/api/event_emitter_caller.cc namespace mate { namespace internal { v8::Local<v8::Value> CallMethodWithArgs(v8::Isolate* isolate, v8::Local<v8::Object> obj, const char* method, ...
aa6b9a502582534a9853bab5b32a8103380809cd
atom/common/api/event_emitter_caller.cc
atom/common/api/event_emitter_caller.cc
C++
<|file_sep|>app/views/developments/development/_actions.html.haml.diff original: =link_to '#' do .ui.vertical.animated.button{:tabindex => "0"} .visible.content %i.pencil.icon .hidden.content Edit =link_to new_development_flag_path(@development) do .ui.vertical.animated.button{:tabindex => "0"} ...
.item .ui.unhide.icon Watching -# %span.description -# Receiving notifications .item .ui.hide.icon Not Watching -# %span.description -# Not receiving notifications about updates -# Consider making this a partial =link_to '#' do .ui.vertical.animated.button{...
<|file_sep|>app/views/developments/development/_actions.html.haml.diff original: =link_to '#' do .ui.vertical.animated.button{:tabindex => "0"} .visible.content %i.pencil.icon .hidden.content Edit =link_to new_development_flag_path(@development) do .ui.vertical.animated.button{:tabindex => "0"} ...
81809885be546837bd583eac5b71d16b8f4dc15b
app/views/developments/development/_actions.html.haml
app/views/developments/development/_actions.html.haml
Haml
<|file_sep|>original/lintcode/Hard/180_Binary_Representation.py <|file_sep|>current/lintcode/Hard/180_Binary_Representation.py <|file_sep|>updated/lintcode/Hard/180_Binary_Representation.py
class Solution: #@param n: Given a decimal number that is passed in as a string #@return: A string def binaryRepresentation(self, n): # write you code here int_part = int(float(n)) dec_part = float('0' + n[n.find('.'):]) if n.find('.') != -1 else 0 dec_str = '' valid ...
<|file_sep|>original/lintcode/Hard/180_Binary_Representation.py <|file_sep|>current/lintcode/Hard/180_Binary_Representation.py <|file_sep|>updated/lintcode/Hard/180_Binary_Representation.py class Solution: #@param n: Given a decimal number that is passed in as a string #@return: A string def binaryReprese...
e4e345e348093639a488855058b1b5ebe44e3507
lintcode/Hard/180_Binary_Representation.py
lintcode/Hard/180_Binary_Representation.py
Python
<|file_sep|>original/app/models/payment.rb class Payment def self.tips { check_payment_instructions: "Checks should be made out to:<br /><strong>Church in Anaheim -"\ "YP</strong><br /> and presented to the registration table"\ "when arriving at the conference." } end end <|file_sep|>current/a...
class Payment def self.tips { check_payment_instructions: "Checks should be made out to:<br /><strong>Church in Anaheim - YP"\ "</strong><br /> and presented to the registration table"\ "when arriving at the conference." } end end
<|file_sep|>original/app/models/payment.rb class Payment def self.tips { check_payment_instructions: "Checks should be made out to:<br /><strong>Church in Anaheim -"\ "YP</strong><br /> and presented to the registration table"\ "when arriving at the conference." } end end <|file_sep|>current/a...
0ae46257ac10d66e3197c9698155bc9cb1a0b4ae
app/models/payment.rb
app/models/payment.rb
Ruby
<|file_sep|>jukeboxsession.erl.diff original: default_name() -> "Anonymous Coward". updated: default_name(Session) -> lists:flatten(io_lib:format("Anonymous Coward", [])). <|file_sep|>jukeboxsession.erl.diff original: #session{username = default_name(), updated: #session{username = default_name(#session...
user_id(Session) -> {Session#session.username, Session#session.ip}. r_user_id(Session) -> {U,IP} = user_id(Session), {array,[U,{array, tuple_to_list(IP)}]}. handler(State, Request, undefined) -> handler(State, Request, State); handler(_, {call, login, [NewName]}, Session) -> NewSession = Session#...
<|file_sep|>jukeboxsession.erl.diff original: default_name() -> "Anonymous Coward". updated: default_name(Session) -> lists:flatten(io_lib:format("Anonymous Coward", [])). <|file_sep|>jukeboxsession.erl.diff original: #session{username = default_name(), updated: #session{username = default_name(#session...
d8c6fffb422037326e98e4c4743138a7fe8ab317
jukeboxsession.erl
jukeboxsession.erl
Erlang
<|file_sep|>original/README.rst pycloudflare ============ |Build Status| A Python client for CloudFlare Usage ----- Get all our zones at CloudFlare .. code:: python >>> cf = CloudFlareService() >>> for domain in cf.get_zones(): >>> print domain['name'], domain['id'] Configuration ------------- <...
pycloudflare ============ |Build Status| A Python client for CloudFlare Usage ----- Get all our zones at CloudFlare .. code:: python >>> cf = CloudFlareService() >>> for domain in cf.get_zones(): >>> print domain['name'], domain['id'] Configuration -------------
<|file_sep|>original/README.rst pycloudflare ============ |Build Status| A Python client for CloudFlare Usage ----- Get all our zones at CloudFlare .. code:: python >>> cf = CloudFlareService() >>> for domain in cf.get_zones(): >>> print domain['name'], domain['id'] Configuration ------------- <...
5a1b3b90f3904f3d83c451d2d338c6e3b6437f1a
README.rst
README.rst
reStructuredText
<|file_sep|>original/flaskext/debugtoolbar/utils.py <|file_sep|>current/flaskext/debugtoolbar/utils.py <|file_sep|>updated/flaskext/debugtoolbar/utils.py
import os.path import sys from flask import current_app def format_fname(value): # If the value is not an absolute path, the it is a builtin or # a relative file (thus a project file). if not os.path.isabs(value): if value.startswith(('{', '<')): return value if value.startswit...
<|file_sep|>original/flaskext/debugtoolbar/utils.py <|file_sep|>current/flaskext/debugtoolbar/utils.py <|file_sep|>updated/flaskext/debugtoolbar/utils.py import os.path import sys from flask import current_app def format_fname(value): # If the value is not an absolute path, the it is a builtin or # a relati...
d7b98f9e77caef34cff9fc7de19ac4980abb9d38
flaskext/debugtoolbar/utils.py
flaskext/debugtoolbar/utils.py
Python
<|file_sep|>original/app/assets/stylesheets/welcome.css.scss // Place all the styles related to the Welcome controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ <|file_sep|>current/app/assets/stylesheets/welcome.css.scss // Place all the styl...
// Place all the styles related to the Welcome controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic...
<|file_sep|>original/app/assets/stylesheets/welcome.css.scss // Place all the styles related to the Welcome controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ <|file_sep|>current/app/assets/stylesheets/welcome.css.scss // Place all the styl...
c132ba7ee99bd2487437f00ba208d501539443c0
app/assets/stylesheets/welcome.css.scss
app/assets/stylesheets/welcome.css.scss
SCSS
<|file_sep|>original/.github/workflows/faraday.yml on: push: branches: [main] pull_request: branches: [main] jobs: lint-and-test: runs-on: ubuntu-latest strategy: matrix: faraday_version: ['1.8.0', '1.9.0'] env: FARADAY_VERSION: ~> ${{ matrix.faraday_version }} steps: ...
on: push: branches: [main] pull_request: branches: [main] jobs: lint-and-test: runs-on: ubuntu-latest strategy: matrix: faraday_version: ['1.8.0', '1.9.0', '1.10.0'] env: FARADAY_VERSION: ~> ${{ matrix.faraday_version }} steps: - name: Checkout code uses: ...
<|file_sep|>original/.github/workflows/faraday.yml on: push: branches: [main] pull_request: branches: [main] jobs: lint-and-test: runs-on: ubuntu-latest strategy: matrix: faraday_version: ['1.8.0', '1.9.0'] env: FARADAY_VERSION: ~> ${{ matrix.faraday_version }} steps: ...
b8c03bd58a9569398a42f26985d493ab21e9ab05
.github/workflows/faraday.yml
.github/workflows/faraday.yml
YAML
<|file_sep|>original/.github/ISSUE_TEMPLATE.md * For general questions or discussion post on StackOverflow ### Describe the problem A brief description of the issue/feature. ### Steps to reproduce the problem ``` Your code here to reproduce the issue ``` ### Actual behaviour What happened? This could be a descriptio...
* For general questions or discussion post on StackOverflow ### Describe the problem A brief description of the issue/feature. ### Steps to reproduce the problem ``` Your code here to reproduce the issue ``` ### Actual behaviour What happened? This could be a description, log output, error raised etc... ### Expecte...
<|file_sep|>original/.github/ISSUE_TEMPLATE.md * For general questions or discussion post on StackOverflow ### Describe the problem A brief description of the issue/feature. ### Steps to reproduce the problem ``` Your code here to reproduce the issue ``` ### Actual behaviour What happened? This could be a descriptio...
711c93156e8cb5031275ad253f76880fe0137a29
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
Markdown
<|file_sep|>original/requirements/build.txt # uild/requirements/build.txt # # Requirements necessary to build the ulid package. setuptools==40.5.0 <|file_sep|>current/requirements/build.txt # uild/requirements/build.txt # # Requirements necessary to build the ulid package. setuptools==40.5.0 <|file_sep|>updated/requi...
# uild/requirements/build.txt # # Requirements necessary to build the ulid package. setuptools==40.6.2
<|file_sep|>original/requirements/build.txt # uild/requirements/build.txt # # Requirements necessary to build the ulid package. setuptools==40.5.0 <|file_sep|>current/requirements/build.txt # uild/requirements/build.txt # # Requirements necessary to build the ulid package. setuptools==40.5.0 <|file_sep|>updated/requi...
d0d9e41bbfafc92c0c983c4e291ac7896bfb6df8
requirements/build.txt
requirements/build.txt
Text
<|file_sep|>original/.travis.yml dist: trusty sudo: false addons: apt: packages: - texinfo env: - EVM_VERSION=24.4 - EVM_VERSION=24.5 - EVM_VERSION=25.1 - EVM_VERSION=25.2 - EVM_VERSION=25.3 install: - curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash - export PATH="$HOME/.evm/bin:...
dist: trusty sudo: false addons: apt: packages: - texinfo env: - EVM_VERSION=24.4 - EVM_VERSION=24.5 - EVM_VERSION=25.1 - EVM_VERSION=25.2 - EVM_VERSION=25.3 install: - curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash - export PATH="$HOME/.evm/bin:$PATH" - evm config path /tmp...
<|file_sep|>original/.travis.yml dist: trusty sudo: false addons: apt: packages: - texinfo env: - EVM_VERSION=24.4 - EVM_VERSION=24.5 - EVM_VERSION=25.1 - EVM_VERSION=25.2 - EVM_VERSION=25.3 install: - curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash - export PATH="$HOME/.evm/bin:...
1a1ff1fdae894cafc401715126b8462b998043e2
.travis.yml
.travis.yml
YAML
<|file_sep|>original/config/configValues.github.js /* eslint-disable @typescript-eslint/camelcase */ // @ts-check /** * @type {import('./index.d').Configuration} */ const appConfig = { url_basePath: "/", // On GitHub Pages, we need to use hash routing url_historyType: "hash", }; const buildConfig = { url_pu...
/* eslint-disable @typescript-eslint/camelcase */ // @ts-check /** * @type {import('./index.d').Configuration} */ const appConfig = { // Change this to your repo name url_basePath: "/jsapp-boilerplate/", // On GitHub Pages, we need to use hash routing url_historyType: "hash", }; const buildConfig = { url_...
<|file_sep|>original/config/configValues.github.js /* eslint-disable @typescript-eslint/camelcase */ // @ts-check /** * @type {import('./index.d').Configuration} */ const appConfig = { url_basePath: "/", // On GitHub Pages, we need to use hash routing url_historyType: "hash", }; const buildConfig = { url_pu...
a37a25854c1ded730f014464a04c62a95a5a76b2
config/configValues.github.js
config/configValues.github.js
JavaScript
<|file_sep|>original/app/Role.php <|file_sep|>current/app/Role.php <|file_sep|>updated/app/Role.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Role extends Model { public function users() { return $this->hasMany('App\User'); } }
<|file_sep|>original/app/Role.php <|file_sep|>current/app/Role.php <|file_sep|>updated/app/Role.php <?php namespace App; use Illuminate\Database\Eloquent\Model; class Role extends Model { public function users() { return $this->hasMany('App\User'); } }
47f9b3af459b1b98d68fdbda729698716f153d51
app/Role.php
app/Role.php
PHP
<|file_sep|>tests/core/providers/test_testrpc_provider.py.diff original: TestRPCProvider, updated: TestRPCProvider as TheTestRPCProvider, <|file_sep|>original/tests/core/providers/test_testrpc_provider.py from web3.utils.compat import socket def get_open_port(): s = socket.socket(socket.AF_INET, socket.SO...
from web3.utils.compat import socket def get_open_port(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(("", 0)) s.listen(1) port = s.getsockname()[1] s.close() return port @pytest.mark.skipif(not is_testrpc_available, reason="`eth-testrpc` is not installed") def test_making_p...
<|file_sep|>tests/core/providers/test_testrpc_provider.py.diff original: TestRPCProvider, updated: TestRPCProvider as TheTestRPCProvider, <|file_sep|>original/tests/core/providers/test_testrpc_provider.py from web3.utils.compat import socket def get_open_port(): s = socket.socket(socket.AF_INET, socket.SO...
132309e91cc7e951d4a7f326d9e374dc8943f2f3
tests/core/providers/test_testrpc_provider.py
tests/core/providers/test_testrpc_provider.py
Python
<|file_sep|>original/templates/view.html {{define "view"}} {{template "header" .}} <h1>{{.Title}}</h1> <div>{{.Body}}</div> {{template "footer"}} {{end}} <|file_sep|>current/templates/view.html {{define "view"}} {{template "header" .}} <h1>{{.Title}}</h1> <div>{{.Body}}</div> {{template "foo...
{{define "view"}} {{template "header" .}} <div>{{.Body}}</div> {{template "footer"}} {{end}}
<|file_sep|>original/templates/view.html {{define "view"}} {{template "header" .}} <h1>{{.Title}}</h1> <div>{{.Body}}</div> {{template "footer"}} {{end}} <|file_sep|>current/templates/view.html {{define "view"}} {{template "header" .}} <h1>{{.Title}}</h1> <div>{{.Body}}</div> {{template "foo...
8b4797da5afb837677fd815b4c797c19ed197c79
templates/view.html
templates/view.html
HTML
<|file_sep|>original/.github/workflows/test.yml <|file_sep|>current/.github/workflows/test.yml <|file_sep|>updated/.github/workflows/test.yml
name: Test on: push jobs: build-ui: needs: build-image runs-on: ${{ matrix.os }} strategy: matrix: os: [macOS-latest, windows-2016, ubuntu-18.04] steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: '8.x' - run: | ...
<|file_sep|>original/.github/workflows/test.yml <|file_sep|>current/.github/workflows/test.yml <|file_sep|>updated/.github/workflows/test.yml name: Test on: push jobs: build-ui: needs: build-image runs-on: ${{ matrix.os }} strategy: matrix: os: [macOS-latest, windows-2016, ubuntu-18.04] ...
d6667c3fc92e585b1d997b5f4fc1cb607068a450
.github/workflows/test.yml
.github/workflows/test.yml
YAML
<|file_sep|>original/.travis.yml language: c install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - PACKAGE=vhd-tool OPAM_LINT=false matrix: - OCAML_VERSION=4.01 - OCAML_VERSION=latest <|file_sep|>current/.travis.yml ...
language: c install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - PACKAGE=vhd-tool OPAM_LINT=false matrix: - OCAML_VERSION=4.01 - OCAML_VERSION=latest EXTRA_REMOTES=git://github.com/xapi-project/opam-repo-dev
<|file_sep|>original/.travis.yml language: c install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - PACKAGE=vhd-tool OPAM_LINT=false matrix: - OCAML_VERSION=4.01 - OCAML_VERSION=latest <|file_sep|>current/.travis.yml ...
69fc89ebe5afbed5f590764228d44a2ce2fe306b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/controllers/thredded/messageboards_controller.rb require 'pry' module Thredded class MessageboardsController < Thredded::ApplicationController def index @messageboards = Messageboard.where(closed: false).decorate end def new authorize_creating Messageboard @me...
module Thredded class MessageboardsController < Thredded::ApplicationController def index @messageboards = Messageboard.where(closed: false).decorate end def new authorize_creating Messageboard @messageboard = Messageboard.new end def create @messageboard = Messageboard....
<|file_sep|>original/app/controllers/thredded/messageboards_controller.rb require 'pry' module Thredded class MessageboardsController < Thredded::ApplicationController def index @messageboards = Messageboard.where(closed: false).decorate end def new authorize_creating Messageboard @me...
291bd2f86bf98b02db36552046f51ce0467c0af5
app/controllers/thredded/messageboards_controller.rb
app/controllers/thredded/messageboards_controller.rb
Ruby
<|file_sep|>original/docs/antora.yml name: rubocop-rspec title: RuboCop RSpec version: '2.2' nav: - modules/ROOT/nav.adoc <|file_sep|>current/docs/antora.yml name: rubocop-rspec title: RuboCop RSpec version: '2.2' nav: - modules/ROOT/nav.adoc <|file_sep|>updated/docs/antora.yml
name: rubocop-rspec title: RuboCop RSpec version: master nav: - modules/ROOT/nav.adoc
<|file_sep|>original/docs/antora.yml name: rubocop-rspec title: RuboCop RSpec version: '2.2' nav: - modules/ROOT/nav.adoc <|file_sep|>current/docs/antora.yml name: rubocop-rspec title: RuboCop RSpec version: '2.2' nav: - modules/ROOT/nav.adoc <|file_sep|>updated/docs/antora.yml name: rubocop-rspec title: RuboCop RS...
956f3b5cffb854e6b03b8cb945704260067f87f7
docs/antora.yml
docs/antora.yml
YAML
<|file_sep|>original/src/__test__/partition.test.js const [evens, odds] = partition(isEven, []) expect([ Array.from(evens), Array.from(odds) ]).toEqual([[], []]) }) it('range(10)', function () { const [evens, odds] = partition(isEven, range(10)) expect([ ...
const [evens, odds] = partition(isEven, range(10)) expect([ Array.from(evens), Array.from(odds) ]).toEqual([ [0, 2, 4, 6, 8], [1, 3, 5, 7, 9] ]) }) it('calls func once for each item', function () { const func = jest.fn(isEven) const [evens, o...
<|file_sep|>original/src/__test__/partition.test.js const [evens, odds] = partition(isEven, []) expect([ Array.from(evens), Array.from(odds) ]).toEqual([[], []]) }) it('range(10)', function () { const [evens, odds] = partition(isEven, range(10)) expect([ ...
84a39457f9eb4c08e31cf6f91c5e53c13a6465f2
src/__test__/partition.test.js
src/__test__/partition.test.js
JavaScript
<|file_sep|>original/.mvn/wrapper/maven-wrapper.properties distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip <|file_sep|>current/.mvn/wrapper/maven-wrapper.properties distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-mav...
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
<|file_sep|>original/.mvn/wrapper/maven-wrapper.properties distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip <|file_sep|>current/.mvn/wrapper/maven-wrapper.properties distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-mav...
432edeecc10bc6fe9ae8199431bcddc2071a8a46
.mvn/wrapper/maven-wrapper.properties
.mvn/wrapper/maven-wrapper.properties
INI
<|file_sep|>original/shared/JsonDotNetSerializer.cs <|file_sep|>current/shared/JsonDotNetSerializer.cs <|file_sep|>updated/shared/JsonDotNetSerializer.cs
using System.IO; using System.Text; using log4net.ObjectRenderer; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace log4net.Util.Serializer { public class JsonDotNetSerializer : ISerializer { public RendererMap Map { get; set; } public object Serialize(object obj) {...
<|file_sep|>original/shared/JsonDotNetSerializer.cs <|file_sep|>current/shared/JsonDotNetSerializer.cs <|file_sep|>updated/shared/JsonDotNetSerializer.cs using System.IO; using System.Text; using log4net.ObjectRenderer; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace log4net.Util.Serializer { ...
a2b9dc3aada6c45c9285ad9873b8494ccdc1fc7e
shared/JsonDotNetSerializer.cs
shared/JsonDotNetSerializer.cs
C#
<|file_sep|>original/src/main/java/it/sieradzki/userscript_parser/Userscript.java import it.sieradzki.userscript_parser.metadata.Version; import java.net.URL; import java.util.Set; /** * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a> */ public class Userscript { private ...
import it.sieradzki.userscript_parser.metadata.Version; import java.net.URL; import java.util.Set; /** * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a> */ public class Userscript { public static final String OPENING_TAG = "==UserScript=="; public static final String CL...
<|file_sep|>original/src/main/java/it/sieradzki/userscript_parser/Userscript.java import it.sieradzki.userscript_parser.metadata.Version; import java.net.URL; import java.util.Set; /** * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a> */ public class Userscript { private ...
cb717d1fd8bad44e9627e8056fb33a66850b0c83
src/main/java/it/sieradzki/userscript_parser/Userscript.java
src/main/java/it/sieradzki/userscript_parser/Userscript.java
Java
<|file_sep|>original/README.md # Library Java --- Netbeans IDE <|file_sep|>current/README.md # Library Java --- Netbeans IDE <|file_sep|>updated/README.md
# Library Java --- Netbeans IDE Features: 1. General * Connect to a MySQL database 2. Index page * List the available books * Every record has a Lend button 3. New Book page * Add new book to the database * Fields for the Author, Title and Pages 4. New Member page * Add new member to the database * Fiel...
<|file_sep|>original/README.md # Library Java --- Netbeans IDE <|file_sep|>current/README.md # Library Java --- Netbeans IDE <|file_sep|>updated/README.md # Library Java --- Netbeans IDE Features: 1. General * Connect to a MySQL database 2. Index page * List the available books * Every record has a Lend button ...
0e111060bce64f936028d34c9a53ddc74321aadf
README.md
README.md
Markdown
<|file_sep|>original/packages/an/animate.yaml <|file_sep|>current/packages/an/animate.yaml <|file_sep|>updated/packages/an/animate.yaml
homepage: https://github.com/jxv/animate#readme changelog-type: '' hash: 006cb0aa3cbd79dc78186bf854f94ca294920b4f1c3333d79810829491170596 test-bench-deps: base: -any hspec: -any animate: -any vector: -any maintainer: Joe Vargas synopsis: Animation for sprites changelog: '' basic-deps: base: ! '>=4.7 && <5' ...
<|file_sep|>original/packages/an/animate.yaml <|file_sep|>current/packages/an/animate.yaml <|file_sep|>updated/packages/an/animate.yaml homepage: https://github.com/jxv/animate#readme changelog-type: '' hash: 006cb0aa3cbd79dc78186bf854f94ca294920b4f1c3333d79810829491170596 test-bench-deps: base: -any hspec: -any ...
85328b34eda5b374f20a39228430e8504d882a69
packages/an/animate.yaml
packages/an/animate.yaml
YAML
<|file_sep|>original/src/package.json { "name": "money-bot", "version": "2.0.0", "description": "A simplified Slack bot for stocks information.", "main": "moneybot.js", "dependencies": { "bluebird": "^3.5.0", "botkit": "0.4.0", "request-promise": "^4.2.0" }, "devDependencies": {}, "scripts":...
{ "name": "money-bot", "version": "2.0.0", "description": "A simplified Slack bot for stocks information.", "main": "moneybot.js", "dependencies": { "bluebird": "^3.5.0", "botkit": "0.4.0", "request-promise": "^4.2.0", "dateformat": "2.0.0" }, "devDependencies": {}, "scripts": { "tes...
<|file_sep|>original/src/package.json { "name": "money-bot", "version": "2.0.0", "description": "A simplified Slack bot for stocks information.", "main": "moneybot.js", "dependencies": { "bluebird": "^3.5.0", "botkit": "0.4.0", "request-promise": "^4.2.0" }, "devDependencies": {}, "scripts":...
abcfedebb0dd065c3f9065c4fec0fe8fbdc3f39e
src/package.json
src/package.json
JSON
<|file_sep|>original/src/epiweb/apps/survey/api/put.sh <|file_sep|>current/src/epiweb/apps/survey/api/put.sh <|file_sep|>updated/src/epiweb/apps/survey/api/put.sh
# PUT example for registering a survey response. curl -v -X POST -i -H "Content-type: application/json" -s --data '{ "prot_v" : "1.0", "serv": 99, "uid": "b9e8353b-e113-4b03-856f-c118e0b70666", "reports": [{ "uid" : "b9e8353b-e113-4b03-856f-c118e0b70666", "surv_v" : "gold-standard-weekly-1.6", ...
<|file_sep|>original/src/epiweb/apps/survey/api/put.sh <|file_sep|>current/src/epiweb/apps/survey/api/put.sh <|file_sep|>updated/src/epiweb/apps/survey/api/put.sh # PUT example for registering a survey response. curl -v -X POST -i -H "Content-type: application/json" -s --data '{ "prot_v" : "1.0", "serv": 99, "...
d5f87910027ec87b21d13ba7075c3f99e8e453fc
src/epiweb/apps/survey/api/put.sh
src/epiweb/apps/survey/api/put.sh
Shell
<|file_sep|>original/js/buttons/ButtonModel.js function ButtonModel() { PropertySet.call( this, { // Property that tracks whether or not a pointer that could interact with the button is currently over the button. over: false, // Property that tracks whether a pointer is currently down on, a....
// Imports var inherit = require( 'PHET_CORE/inherit' ); var PropertySet = require( 'AXON/PropertySet' ); function ButtonModel() { PropertySet.call( this, { // Property that tracks whether or not a pointer that could interact with the button is currently over the button. over: false, /...
<|file_sep|>original/js/buttons/ButtonModel.js function ButtonModel() { PropertySet.call( this, { // Property that tracks whether or not a pointer that could interact with the button is currently over the button. over: false, // Property that tracks whether a pointer is currently down on, a....
23d0b9e021d3635bbc3465c4adb27c45fa5b110c
js/buttons/ButtonModel.js
js/buttons/ButtonModel.js
JavaScript
<|file_sep|>usr/share/applications/dropbox-audit.desktop.diff original: Exec=/usr/bin/gnome-terminal --geometry=132x42 --hide-menubar --working-directory=/home/rd --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dropbox-audit updated: Exec=/usr/bin/gnome-terminal --geometry=132x42 --hide-menubar --wor...
# dropbox-audit XDG # last updated: Tue Jul 13 10:39:14 PDT 2021 [Desktop Entry] X-AppInstall-Package=gnome-terminal X-AppInstall-Section=main Type=Application Exec=/usr/bin/gnome-terminal --geometry=132x42 --hide-menubar --working-directory=/home/rd --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dr...
<|file_sep|>usr/share/applications/dropbox-audit.desktop.diff original: Exec=/usr/bin/gnome-terminal --geometry=132x42 --hide-menubar --working-directory=/home/rd --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dropbox-audit updated: Exec=/usr/bin/gnome-terminal --geometry=132x42 --hide-menubar --wor...
03db97fff5886d0533cfe06e7bbe4b9a2c469cd7
usr/share/applications/dropbox-audit.desktop
usr/share/applications/dropbox-audit.desktop
desktop
<|file_sep|>markdo/markdo.py.diff original: f = open(file_name, 'w') updated: f = codecs.open(file_name, 'w', encoding='utf-8') <|file_sep|>original/markdo/markdo.py markdown = codecs.open(file_name, 'r', 'utf-8').read() return render_template( '/ui.html', file_name=app.file_...
markdown = codecs.open(file_name, 'r', 'utf-8').read() return render_template( '/ui.html', file_name=app.file_name, text=markdown) @app.route('/save/', methods=['POST',]) def save(): """save markdown content to the file""" file_name = request.form.get('file', N...
<|file_sep|>markdo/markdo.py.diff original: f = open(file_name, 'w') updated: f = codecs.open(file_name, 'w', encoding='utf-8') <|file_sep|>original/markdo/markdo.py markdown = codecs.open(file_name, 'r', 'utf-8').read() return render_template( '/ui.html', file_name=app.file_...
08fa37d71cf8f1d5d83227349b49da142f9781da
markdo/markdo.py
markdo/markdo.py
Python
<|file_sep|>react-mobx-todos/src/Main.tsx.diff original: import { allRoutes } from './routes' updated: // import { allRoutes } from './routes' import { ConnectedApp } from './ConnectedApp' <|file_sep|>original/react-mobx-todos/src/Main.tsx import * as React from 'react' import { BrowserRouter } from 'react-router-dom' ...
import { BrowserRouter } from 'react-router-dom' import { render } from 'react-dom' import { Route } from 'react-router' // import { allRoutes } from './routes' import { ConnectedApp } from './ConnectedApp' import './main.scss' render( <BrowserRouter> <div> <Route exact={true} path="/" component={Connect...
<|file_sep|>react-mobx-todos/src/Main.tsx.diff original: import { allRoutes } from './routes' updated: // import { allRoutes } from './routes' import { ConnectedApp } from './ConnectedApp' <|file_sep|>original/react-mobx-todos/src/Main.tsx import * as React from 'react' import { BrowserRouter } from 'react-router-dom' ...
fc67aa4ea4a0a996fa4bc3eddd5b955d0f90ddc3
react-mobx-todos/src/Main.tsx
react-mobx-todos/src/Main.tsx
TypeScript
<|file_sep|>charting/fetch.pl.diff original: system("svn update $fn --quiet --revision \\{$month-01T00:00:00Z\\}"); updated: system("/opt/local/bin/svn update $fn --quiet --revision \\{$month-01T00:00:00Z\\}"); <|file_sep|>original/charting/fetch.pl $fn = '../xml/ukfederation-metadata.xml'; $fn2 = '../xml/ukfedera...
$fn = '../xml/ukfederation-metadata.xml'; $fn2 = '../xml/ukfederation-stats.html'; foreach $month (@months) { print "Fetching $month..."; my $dest1 = "cache/$month.xml"; if (!-e $dest1) { system("/opt/local/bin/svn update $fn --quiet --revision \\{$month-01T00:00:00Z\\}"); system("cp $fn $dest1"); } my $...
<|file_sep|>charting/fetch.pl.diff original: system("svn update $fn --quiet --revision \\{$month-01T00:00:00Z\\}"); updated: system("/opt/local/bin/svn update $fn --quiet --revision \\{$month-01T00:00:00Z\\}"); <|file_sep|>original/charting/fetch.pl $fn = '../xml/ukfederation-metadata.xml'; $fn2 = '../xml/ukfedera...
7b724c2ba23ec4e62ae0dbd06e79446e602b5245
charting/fetch.pl
charting/fetch.pl
Perl
<|file_sep|>lib/fabrique/bean_definition.rb.diff original: @type = type_name.is_a?(Module) ? @type_name : Module.const_get(type_name) updated: @type = type_name.is_a?(Module) ? type_name : Module.const_get(type_name) <|file_sep|>lib/fabrique/bean_definition.rb.diff original: (dependencies_of(@construc...
def keywordify(args) args.inject({}) { |m, (k, v)| k = k.intern rescue k; m[k.intern] = v; m } end def accumulate_dependencies(data, acc = []) if data.is_a?(Hash) accumulate_dependencies(data.values, acc) elsif data.is_a?(Array) data.each do |o| ...
<|file_sep|>lib/fabrique/bean_definition.rb.diff original: @type = type_name.is_a?(Module) ? @type_name : Module.const_get(type_name) updated: @type = type_name.is_a?(Module) ? type_name : Module.const_get(type_name) <|file_sep|>lib/fabrique/bean_definition.rb.diff original: (dependencies_of(@construc...
44e76aee53a8fdab3261793a6ec61d88668da184
lib/fabrique/bean_definition.rb
lib/fabrique/bean_definition.rb
Ruby
<|file_sep|>original/src/components/random-number.tsx @State() randomNumber: number; @Prop() min: number; @Prop() max: number; componentDidLoad() { this.randomNumber = Math.floor(Math.random()*(this.max- this.min+1)+ this.min); } @Listen('updateComponent') updateNumberHandler() { ...
export class RandomNumber { @State() randomNumber: number; @Prop() min: number; @Prop() max: number; componentDidLoad() { this.randomNumber = Math.floor(Math.random()*(this.max- this.min+1)+ this.min); } @Listen('updateComponent') updateNumberHandler() { this.randomNumber ...
<|file_sep|>original/src/components/random-number.tsx @State() randomNumber: number; @Prop() min: number; @Prop() max: number; componentDidLoad() { this.randomNumber = Math.floor(Math.random()*(this.max- this.min+1)+ this.min); } @Listen('updateComponent') updateNumberHandler() { ...
bfc5394cff33130efbdea50ccf03f697db154dc8
src/components/random-number.tsx
src/components/random-number.tsx
TypeScript
<|file_sep|>client/main-component.js.diff original: export default connect((state, props) => ({ updated: export default connect( <|file_sep|>original/client/main-component.js import React from 'react'; import {connect} from 'react-redux'; import NewPaula from './new-paula'; class MainComponent extends React.Component ...
import React from 'react'; import {connect} from 'react-redux'; import NewPaula from './new-paula'; class MainComponent extends React.Component { render() { return <div> <h1>React/Redux demo</h1> <p>This is where your content goes. Paula is {this.props.paula}.</p> <NewPaula /> </div>; } } export defaul...
<|file_sep|>client/main-component.js.diff original: export default connect((state, props) => ({ updated: export default connect( <|file_sep|>original/client/main-component.js import React from 'react'; import {connect} from 'react-redux'; import NewPaula from './new-paula'; class MainComponent extends React.Component ...
77d1ec2caed058709edd612e00f000c7664f5f31
client/main-component.js
client/main-component.js
JavaScript
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-6.4-20200410071617+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists <|file_sep|>current/gradle/w...
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-rc-1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-6.4-20200410071617+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists <|file_sep|>current/gradle/w...
40221a39ef1c1b13e5296396fa3e2d62186d7824
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
INI
<|file_sep|>original/setup.py author='Giles Brown', author_email='giles_brown@hotmail.com', url='https://github.com/gilesbrown/icapservice', license='MIT', packages=['icapservice'], zip_safe=False, install_requires=['six'], include_package_data=True, package_data={'': ['LICENSE']}, ...
author='Giles Brown', author_email='giles_brown@hotmail.com', url='https://github.com/gilesbrown/icapservice', license='MIT', packages=['icapservice'], zip_safe=False, install_requires=['six'], include_package_data=True, package_data={'': ['LICENSE']}, classifiers=( 'Deve...
<|file_sep|>original/setup.py author='Giles Brown', author_email='giles_brown@hotmail.com', url='https://github.com/gilesbrown/icapservice', license='MIT', packages=['icapservice'], zip_safe=False, install_requires=['six'], include_package_data=True, package_data={'': ['LICENSE']}, ...
f2b737506b7ea435c850273d077247e57606de2a
setup.py
setup.py
Python