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/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb <|file_sep|>current/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb <|file_sep|>updated/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb
class CleanUpTheBadSpecialFieldAssociations < ActiveRecord::Migration def up SpecialFieldAssociation.where(question_id: nil).delete_all SpecialFieldAssociation.where( "questionnaire_id IS NULL AND question_id IS NOT NULL AND question_id NOT IN (SELECT id FROM questions)" ).delete_all end def do...
<|file_sep|>original/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb <|file_sep|>current/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb <|file_sep|>updated/db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb class CleanUpTheBadSpecialFieldAssocia...
fd09d728403b2b887f16b3ce90c189a0b6b90d62
db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb
db/migrate/20140222010359_clean_up_the_bad_special_field_associations.rb
Ruby
<|file_sep|>original/requirements_dev.txt bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.2.1 tox==2.5.0 coverage==4.3.4 Sphinx==1.5.1 pytest==3.0.5 httpretty==0.8.14 <|file_sep|>current/requirements_dev.txt bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.2.1 tox==2.5.0 coverage==4.3.4 Sphinx==1....
bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.2.1 tox==2.5.0 coverage==4.3.4 Sphinx==1.5.1 pytest==3.0.6 httpretty==0.8.14
<|file_sep|>original/requirements_dev.txt bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.2.1 tox==2.5.0 coverage==4.3.4 Sphinx==1.5.1 pytest==3.0.5 httpretty==0.8.14 <|file_sep|>current/requirements_dev.txt bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.2.1 tox==2.5.0 coverage==4.3.4 Sphinx==1....
94ec96e4980c1d9208069ca30baa09b87d551c1f
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>original/src/content/en/fundamentals/primers/push/index.markdown <|file_sep|>current/src/content/en/fundamentals/primers/push/index.markdown <|file_sep|>updated/src/content/en/fundamentals/primers/push/index.markdown
--- layout: shared/narrow-pages-list title: "Push and Notifications" description: "Push messaging allows developers to engage users by providing timely and customized content outside the context of the web page. *Push* and *Notification* are different, but complementary, functions: a *push* is the action of the server ...
<|file_sep|>original/src/content/en/fundamentals/primers/push/index.markdown <|file_sep|>current/src/content/en/fundamentals/primers/push/index.markdown <|file_sep|>updated/src/content/en/fundamentals/primers/push/index.markdown --- layout: shared/narrow-pages-list title: "Push and Notifications" description: "Push m...
e5d2e866c94dab2b2a0ac8bdd3a6c2c7939325c8
src/content/en/fundamentals/primers/push/index.markdown
src/content/en/fundamentals/primers/push/index.markdown
Markdown
<|file_sep|>original/stationspinner/accounting/migrations/0005_auto_20150919_2207.py <|file_sep|>current/stationspinner/accounting/migrations/0005_auto_20150919_2207.py <|file_sep|>updated/stationspinner/accounting/migrations/0005_auto_20150919_2207.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators import django.contrib.auth.models class Migration(migrations.Migration): dependencies = [ ('accounting', '0004_apikey_brokeness'), ] operations = [ migr...
<|file_sep|>original/stationspinner/accounting/migrations/0005_auto_20150919_2207.py <|file_sep|>current/stationspinner/accounting/migrations/0005_auto_20150919_2207.py <|file_sep|>updated/stationspinner/accounting/migrations/0005_auto_20150919_2207.py # -*- coding: utf-8 -*- from __future__ import unicode_literals ...
7b33ea38283c9e9f00a2aacaa17634e50e55e42b
stationspinner/accounting/migrations/0005_auto_20150919_2207.py
stationspinner/accounting/migrations/0005_auto_20150919_2207.py
Python
<|file_sep|>original/src/components/ButtonCheckbox.vue <|file_sep|>current/src/components/ButtonCheckbox.vue <|file_sep|>updated/src/components/ButtonCheckbox.vue
<template> <button class="button is-rounded" :class="checked ? checked_class : unchecked_class" v-on:click="click" > <slot></slot> </button> </template> <script> export default { name: 'button-checkbox', props: { checked_class: { default: 'is-info' }, unchecked_class: { ...
<|file_sep|>original/src/components/ButtonCheckbox.vue <|file_sep|>current/src/components/ButtonCheckbox.vue <|file_sep|>updated/src/components/ButtonCheckbox.vue <template> <button class="button is-rounded" :class="checked ? checked_class : unchecked_class" v-on:click="click" > <slot></slot> </...
5db60dd09bf719f54498da2b987479941b3fb262
src/components/ButtonCheckbox.vue
src/components/ButtonCheckbox.vue
Vue
<|file_sep|>original/.github/workflows/ci.yml - debian10 steps: - name: Check out the codebase. uses: actions/checkout@v2 - name: Set up Python 3. uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install test dependencies. run...
- debian10 steps: - name: Check out the codebase. uses: actions/checkout@v2 - name: Set up Python 3. uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install test dependencies. run: pip3 install molecule[docker] yamllint ansib...
<|file_sep|>original/.github/workflows/ci.yml - debian10 steps: - name: Check out the codebase. uses: actions/checkout@v2 - name: Set up Python 3. uses: actions/setup-python@v2 with: python-version: '3.x' - name: Install test dependencies. run...
5f2aee8fcf7fb6bcf6b5af793cd9fc62d73052e7
.github/workflows/ci.yml
.github/workflows/ci.yml
YAML
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.3-branch-bamboo_cc_kotlin_1_5_30-20210920144148+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dis...
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.3-branch-bamboo_cc_kotlin_1_5_30-20210922031103+0000-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-7.3-branch-bamboo_cc_kotlin_1_5_30-20210920144148+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dis...
92745874ab9c63ea593e93ffe91974cca6c6b730
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
INI
<|file_sep|>original/CMakeLists.txt project( itkSubdivisionQuadEdgeMeshFilter ) itk_module_impl() <|file_sep|>current/CMakeLists.txt project( itkSubdivisionQuadEdgeMeshFilter ) itk_module_impl() <|file_sep|>updated/CMakeLists.txt
project( itkSubdivisionQuadEdgeMeshFilter ) if(NOT ITK_SOURCE_DIR) find_package(ITK REQUIRED) list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR}) include(ITKModuleExternal) else() itk_module_impl() endif()
<|file_sep|>original/CMakeLists.txt project( itkSubdivisionQuadEdgeMeshFilter ) itk_module_impl() <|file_sep|>current/CMakeLists.txt project( itkSubdivisionQuadEdgeMeshFilter ) itk_module_impl() <|file_sep|>updated/CMakeLists.txt project( itkSubdivisionQuadEdgeMeshFilter ) if(NOT ITK_SOURCE_DIR) find_package(ITK REQ...
30597550344d5b4e35e37ad28c94cff15210c6bf
CMakeLists.txt
CMakeLists.txt
Text
<|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "nightly" - "pypy" install: make deps script: make <|file_sep|>current/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "nightly" - "pypy" install: make deps scri...
language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "nightly" - "pypy" install: make deps script: make matrix: allow_failures: - python: "nightly"
<|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "nightly" - "pypy" install: make deps script: make <|file_sep|>current/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "nightly" - "pypy" install: make deps scri...
e496c68d1e468751adadb153b2038da34ce49159
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/views/spree/admin/payments/source_views/_paysiocom.html.erb <|file_sep|>current/app/views/spree/admin/payments/source_views/_paysiocom.html.erb <|file_sep|>updated/app/views/spree/admin/payments/source_views/_paysiocom.html.erb
<fieldset> <legend align="center"><%= t('paysio') %></legend> <table class="index"> <thead> <tr> <th colspan="6"><%= t('paysio.payment') %></th> </tr> </thead> <tbody> <tr> <td><label><%= t("paysio.charge_id") %>:</label></td> <td> <%= payment.source....
<|file_sep|>original/app/views/spree/admin/payments/source_views/_paysiocom.html.erb <|file_sep|>current/app/views/spree/admin/payments/source_views/_paysiocom.html.erb <|file_sep|>updated/app/views/spree/admin/payments/source_views/_paysiocom.html.erb <fieldset> <legend align="center"><%= t('paysio') %></legend> ...
f009ea8b92e91d06af3907d825351905204f094c
app/views/spree/admin/payments/source_views/_paysiocom.html.erb
app/views/spree/admin/payments/source_views/_paysiocom.html.erb
HTML+ERB
<|file_sep|>original/_data/contacts.yml - icon: phone title: 817 565 7357 - icon: envelope title: contact@brianmbailey.com - icon: github title: GitHub link: https://github.com/bmbailey - icon: globe title: Website link: brianmbailey.com <|file_sep|>current/_data/contacts.yml - icon: phone title: 817 5...
- icon: phone title: 817 565 7357 - icon: envelope title: contact@brianmbailey.com link: contact@brianmbailey.com - icon: github title: GitHub link: https://github.com/bmbailey - icon: globe title: Website link: brianmbailey.com
<|file_sep|>original/_data/contacts.yml - icon: phone title: 817 565 7357 - icon: envelope title: contact@brianmbailey.com - icon: github title: GitHub link: https://github.com/bmbailey - icon: globe title: Website link: brianmbailey.com <|file_sep|>current/_data/contacts.yml - icon: phone title: 817 5...
269295c5949a43ed79c01da7eee0a21455ad6834
_data/contacts.yml
_data/contacts.yml
YAML
<|file_sep|>original/Code/Cleavir/Documentation/chap-translating-ast-to-hir.tex explicit. Another similarity is that translation is done from the end of the program to the beginning. \section{\asdf{} system name} The name of the \asdf{} system that accomplishes the translation of an abstract syntax tree into HIR is ...
\section{\asdf{} system name} The name of the \asdf{} system that accomplishes the translation of an abstract syntax tree into HIR is called \texttt{cleavir-ast-to-hir} and it is located in the file \texttt{cleavir-ast-to-hir.asd} in the sub-directory named \texttt{AST-to-HIR}. \section{Package} The name of the pac...
<|file_sep|>original/Code/Cleavir/Documentation/chap-translating-ast-to-hir.tex explicit. Another similarity is that translation is done from the end of the program to the beginning. \section{\asdf{} system name} The name of the \asdf{} system that accomplishes the translation of an abstract syntax tree into HIR is ...
74925dc28b83250d648bdfc8d3996410943c39f7
Code/Cleavir/Documentation/chap-translating-ast-to-hir.tex
Code/Cleavir/Documentation/chap-translating-ast-to-hir.tex
TeX
<|file_sep|>original/nvim/plugins/vim-test.vim Plug 'vim-test/vim-test' "let test#strategy = "neovim" "let g:test#transformation = 'zsh' let test#php#phpunit#executable = 'deliver vendor/bin/phpunit' nmap <leader>tn :TestNearest<CR> nmap <leader>tf :TestFile<CR> nmap <leader>ts :TestSuite<CR> nmap <leader>tl :TestLas...
Plug 'vim-test/vim-test' let test#php#phpunit#executable = 'deliver vendor/bin/phpunit' nmap <leader>tn :TestNearest<CR> nmap <leader>tf :TestFile<CR> nmap <leader>ts :TestSuite<CR> nmap <leader>tl :TestLast<CR> nmap <leader>tv :TestVisit<CR> augroup AutoDeleteTestTermBuffers autocmd! autocmd BufLeave term:/...
<|file_sep|>original/nvim/plugins/vim-test.vim Plug 'vim-test/vim-test' "let test#strategy = "neovim" "let g:test#transformation = 'zsh' let test#php#phpunit#executable = 'deliver vendor/bin/phpunit' nmap <leader>tn :TestNearest<CR> nmap <leader>tf :TestFile<CR> nmap <leader>ts :TestSuite<CR> nmap <leader>tl :TestLas...
7f00408b9ebb554adcc113b96125ad93a2b01073
nvim/plugins/vim-test.vim
nvim/plugins/vim-test.vim
VimL
<|file_sep|>original/packages/ecmascript/plugin.js Plugin.registerCompiler({ extensions: ['js'], }, function () { return new BabelCompiler({ asyncAwait: true, modules: true }); }); <|file_sep|>current/packages/ecmascript/plugin.js Plugin.registerCompiler({ extensions: ['js'], }, function () { return n...
Plugin.registerCompiler({ extensions: ['js'], }, function () { return new BabelCompiler({ asyncAwait: true, modules: true }); }); Plugin.registerCompiler({ extensions: ['jsx'], }, function () { return new BabelCompiler({ asyncAwait: true, modules: true, react: true }); });
<|file_sep|>original/packages/ecmascript/plugin.js Plugin.registerCompiler({ extensions: ['js'], }, function () { return new BabelCompiler({ asyncAwait: true, modules: true }); }); <|file_sep|>current/packages/ecmascript/plugin.js Plugin.registerCompiler({ extensions: ['js'], }, function () { return n...
86b743f96346b66a7b79586823bbb92eeed8a83d
packages/ecmascript/plugin.js
packages/ecmascript/plugin.js
JavaScript
<|file_sep|>original/spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java <|file_sep|>current/spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java <|file_sep|>updated/spring-boot-autoconfigure/src/main/java/org/axonf...
package org.axonframework.boot.autoconfig; import com.codahale.metrics.MetricRegistry; import org.axonframework.metrics.GlobalMetricRegistry; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigur...
<|file_sep|>original/spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java <|file_sep|>current/spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java <|file_sep|>updated/spring-boot-autoconfigure/src/main/java/org/axonf...
fa5f3ae17615477d714ccec32805131417651364
spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java
spring-boot-autoconfigure/src/main/java/org/axonframework/boot/autoconfig/MetricsAutoConfiguration.java
Java
<|file_sep|>AndroidManifest.xml.diff original: updated: <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera...
<uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <supports-screens android:smallScreens="true" android:largeScreens="true" a...
<|file_sep|>AndroidManifest.xml.diff original: updated: <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera...
f20cc270e7bde04db045294ee6349c037ff8c7cc
AndroidManifest.xml
AndroidManifest.xml
XML
<|file_sep|>original/plugins/cake/cake.plugin.zsh cake | grep '^cake ' | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' } _cake_does_target_list_need_generating () { if [ ${_cake_cache_task_list} -eq 0 ]; then return 1; fi [ ! -f ${_cake_task_cache_file} ] && return 0; [ ${_cake_task_cache_file} -nt Cakefile...
cake | grep '^cake ' | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' } _cake_does_target_list_need_generating () { if [ ${_cake_cache_task_list} -eq 0 ]; then return 1; fi [ ! -f ${_cake_task_cache_file} ] && return 0; [ Cakefile -nt ${_cake_task_cache_file} ] && return 0; return 1; } _cake () { if [ -f ...
<|file_sep|>original/plugins/cake/cake.plugin.zsh cake | grep '^cake ' | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' } _cake_does_target_list_need_generating () { if [ ${_cake_cache_task_list} -eq 0 ]; then return 1; fi [ ! -f ${_cake_task_cache_file} ] && return 0; [ ${_cake_task_cache_file} -nt Cakefile...
e60458793ab9703bb65adb6c326f43c6bd5fd126
plugins/cake/cake.plugin.zsh
plugins/cake/cake.plugin.zsh
Shell
<|file_sep|>original/README.md # KDPulseButton A Custom button that pulses # Demo ![alt tag](http://i.imgur.com/1UaWevH.gifv) <|file_sep|>current/README.md # KDPulseButton A Custom button that pulses # Demo ![alt tag](http://i.imgur.com/1UaWevH.gifv) <|file_sep|>updated/README.md
# KDPulseButton A Custom button that pulses # Demo ![alt tag](http://imgur.com/1UaWevH.gif)
<|file_sep|>original/README.md # KDPulseButton A Custom button that pulses # Demo ![alt tag](http://i.imgur.com/1UaWevH.gifv) <|file_sep|>current/README.md # KDPulseButton A Custom button that pulses # Demo ![alt tag](http://i.imgur.com/1UaWevH.gifv) <|file_sep|>updated/README.md # KDPulseButton A Custom button that pu...
f56570d92e9daba36c98c102c4c25f16b2532fb5
README.md
README.md
Markdown
<|file_sep|>original/plugin/sdc/src/main/java/org/opencds/cqf/ruler/plugin/sdc/SDCConfig.java import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.a...
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Configuration; @Configuration @ConditionalOnProperty(prefix = "hapi.fhir.sdc", name...
<|file_sep|>original/plugin/sdc/src/main/java/org/opencds/cqf/ruler/plugin/sdc/SDCConfig.java import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.a...
69c020dffbb105215d97f5743cfd110a98805f9f
plugin/sdc/src/main/java/org/opencds/cqf/ruler/plugin/sdc/SDCConfig.java
plugin/sdc/src/main/java/org/opencds/cqf/ruler/plugin/sdc/SDCConfig.java
Java
<|file_sep|>original/.travis.yml dist: trusty language: node_js node_js: - "6" cache: directories: - node_modules before_install: - npm install -g npm@5 - npm install -g greenkeeper-lockfile@1 before_script: - greenkeeper-lockfile-update script: - npm run lint after_script: greenkeeper-lockfile-upload n...
dist: trusty language: node_js node_js: - "6" cache: directories: - node_modules before_install: - npm install -g npm@5 - npm install -g greenkeeper-lockfile@1 install: case $TRAVIS_BRANCH in greenkeeper*) npm i;; *) npm ci;; esac; before_script: - greenkeeper-lockfile-update script: - npm run lint af...
<|file_sep|>original/.travis.yml dist: trusty language: node_js node_js: - "6" cache: directories: - node_modules before_install: - npm install -g npm@5 - npm install -g greenkeeper-lockfile@1 before_script: - greenkeeper-lockfile-update script: - npm run lint after_script: greenkeeper-lockfile-upload n...
00c7d2261dd8821c7d07d69a53f5cb6da2c26923
.travis.yml
.travis.yml
YAML
<|file_sep|>original/build/scripts/requirements.txt Cohorte-Python==1.1.0 Cohorte-Herald==1.0.0 iPOPO==0.6.4 jsonrpclib-pelix==0.2.6 sleekxmpp>=1.3.1 requests>=2.3.0 <|file_sep|>current/build/scripts/requirements.txt Cohorte-Python==1.1.0 Cohorte-Herald==1.0.0 iPOPO==0.6.4 jsonrpclib-pelix==0.2.6 sleekxmpp>=1.3.1 requ...
Cohorte-Python==1.1.0 Cohorte-Herald==1.0.0 iPOPO==0.6.4 jsonrpclib-pelix==0.2.6 sleekxmpp==1.3.1 requests==2.11.1
<|file_sep|>original/build/scripts/requirements.txt Cohorte-Python==1.1.0 Cohorte-Herald==1.0.0 iPOPO==0.6.4 jsonrpclib-pelix==0.2.6 sleekxmpp>=1.3.1 requests>=2.3.0 <|file_sep|>current/build/scripts/requirements.txt Cohorte-Python==1.1.0 Cohorte-Herald==1.0.0 iPOPO==0.6.4 jsonrpclib-pelix==0.2.6 sleekxmpp>=1.3.1 requ...
e54012598ae92c98637d5253917d86cb9535dfdd
build/scripts/requirements.txt
build/scripts/requirements.txt
Text
<|file_sep|>original/foodr-backend/app/controllers/searches_controller.rb class SearchesController < ApplicationController def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product...
class SearchesController < ApplicationController def create end def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product: search.product }.to_json else rende...
<|file_sep|>original/foodr-backend/app/controllers/searches_controller.rb class SearchesController < ApplicationController def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product...
4c9d0ac7c49eb189ffdb7f1dcbbc7d9ee398cb67
foodr-backend/app/controllers/searches_controller.rb
foodr-backend/app/controllers/searches_controller.rb
Ruby
<|file_sep|>original/planetstack/openstack_observer/steps/sync_controller_networks.yaml name={{ name }} {% if delete %} state=absent {% else %} state=present {% endif %} shared=true - quantum_subnet: auth_url={{ endpoint }} login_username={{ adm...
{% if delete %} state=absent {% else %} state=present {% endif %} shared=true - quantum_subnet: auth_url={{ endpoint }} login_username={{ admin_user }} tenant_name={{ tenant_name }} login_tenant_name={{ tenant_name }} login_passw...
<|file_sep|>original/planetstack/openstack_observer/steps/sync_controller_networks.yaml name={{ name }} {% if delete %} state=absent {% else %} state=present {% endif %} shared=true - quantum_subnet: auth_url={{ endpoint }} login_username={{ adm...
ef51c53a79cb1c8fbf6a8b6e40d059ad49b8f470
planetstack/openstack_observer/steps/sync_controller_networks.yaml
planetstack/openstack_observer/steps/sync_controller_networks.yaml
YAML
<|file_sep|>emacs/emacs.d/my-region-bindings-mode.el.diff original: ("p" . previous-line) ("e" . end-of-line) ("a" . beginning-of-line) ("w" . forward-word) ("b" . backward-word) updated: ("l" . mc/edit-lines) ("w" . count-words-region) ...
(require 'region-bindings-mode) (require 'multiple-cursors) (region-bindings-mode-enable) (bind-keys :map region-bindings-mode-map ("l" . mc/edit-lines) ("w" . count-words-region) ("u" . upcase-region) ("d" . downcase-region) ("m" . apply-macro-to-region-lines) ...
<|file_sep|>emacs/emacs.d/my-region-bindings-mode.el.diff original: ("p" . previous-line) ("e" . end-of-line) ("a" . beginning-of-line) ("w" . forward-word) ("b" . backward-word) updated: ("l" . mc/edit-lines) ("w" . count-words-region) ...
81e1ee7915aa362418b2a3b8c7639931d51a6ae3
emacs/emacs.d/my-region-bindings-mode.el
emacs/emacs.d/my-region-bindings-mode.el
Emacs Lisp
<|file_sep|>original/lib/main.coffee applyPolicy: require './applyPolicy' # looks up and requires dependencies according to # the resolvers data structure. # accepts (services, resolvers) # returns {serviceName: wrappedService} applyDependencies: require './applyDependencies' # prints out the stack of f...
applyPolicy: require './applyPolicy' # looks up and requires dependencies according to # the resolvers data structure. # accepts (services, resolvers) # returns {serviceName: wrappedService} applyDependencies: require './applyDependencies' # prints out the stack of filters applied to each service # ac...
<|file_sep|>original/lib/main.coffee applyPolicy: require './applyPolicy' # looks up and requires dependencies according to # the resolvers data structure. # accepts (services, resolvers) # returns {serviceName: wrappedService} applyDependencies: require './applyDependencies' # prints out the stack of f...
db07c7e3d74a2c57de07c21b43d1997b7ce738c6
lib/main.coffee
lib/main.coffee
CoffeeScript
<|file_sep|>original/app/routes.php |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | *...
| | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ // Website Route::get('/', 'MapController@showWelcome'); Route::get('/showtreedata/{id}', 'MapController@show...
<|file_sep|>original/app/routes.php |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | *...
6fecefb9e6a025463e7145cfd4f16d2985967459
app/routes.php
app/routes.php
PHP
<|file_sep|>original/src/db/migrate/20120507081132_update_state_for_existing_deployments.rb def self.down end def self.get_deployment_state(deployment) if deployment.instances.all? {|i| i.inactive?} Deployment::STATE_STOPPED elsif deployment.all_instances_running? Deployment::STATE_RUNNING ...
def self.down end def self.get_deployment_state(deployment) if deployment.instances.all? {|i| i.inactive?} Deployment::STATE_STOPPED elsif deployment.all_instances_running? Deployment::STATE_RUNNING elsif deployment.instances.all? { |i| [Instance::STATE_NEW, Instance::STATE_PEN...
<|file_sep|>original/src/db/migrate/20120507081132_update_state_for_existing_deployments.rb def self.down end def self.get_deployment_state(deployment) if deployment.instances.all? {|i| i.inactive?} Deployment::STATE_STOPPED elsif deployment.all_instances_running? Deployment::STATE_RUNNING ...
8d778dfa38555ad912c1ef9467d6b9e8794ff318
src/db/migrate/20120507081132_update_state_for_existing_deployments.rb
src/db/migrate/20120507081132_update_state_for_existing_deployments.rb
Ruby
<|file_sep|>driver-core/src/main/com/mongodb/operation/OperationExecutor.java.diff original: <T> T execute(final ReadOperation<T> operation, final ReadPreference readPreference); updated: <T> T execute(ReadOperation<T> operation, ReadPreference readPreference); <|file_sep|>original/driver-core/src/main/com/mong...
*/ public interface OperationExecutor { /** * Execute the read operation with the given read preference. * * @param operation the read operation. * @param readPreference the read preference. * @param <T> the operations result type. * @return the result of executing the operation. ...
<|file_sep|>driver-core/src/main/com/mongodb/operation/OperationExecutor.java.diff original: <T> T execute(final ReadOperation<T> operation, final ReadPreference readPreference); updated: <T> T execute(ReadOperation<T> operation, ReadPreference readPreference); <|file_sep|>original/driver-core/src/main/com/mong...
4560bd309100bf6b8d85b96def8092c50c5864de
driver-core/src/main/com/mongodb/operation/OperationExecutor.java
driver-core/src/main/com/mongodb/operation/OperationExecutor.java
Java
<|file_sep|>original/OKObserver.podspec Pod::Spec.new do |s| s.name = "OKObserver" s.version = "0.1.0" s.summary = "A lightweight framework which makes KVO easily to use." s.description = <<-DESC KVO is very troublesome to use, you need to call addObserver: method, override m...
Pod::Spec.new do |s| s.name = "OKObserver" s.version = "0.0.0" s.summary = "A lightweight framework which makes KVO easily to use." s.description = <<-DESC KVO is very troublesome to use, you need to call addObserver: method, override method to observe the event. All I need i...
<|file_sep|>original/OKObserver.podspec Pod::Spec.new do |s| s.name = "OKObserver" s.version = "0.1.0" s.summary = "A lightweight framework which makes KVO easily to use." s.description = <<-DESC KVO is very troublesome to use, you need to call addObserver: method, override m...
b464fcc740bbb9ed5429fd55a3e963431146888b
OKObserver.podspec
OKObserver.podspec
Ruby
<|file_sep|>original/README.md # deploy-compose A utiliy to deploy services defined in a compose file to swarm-mode clusters. ## Usage ``` Usage: docker-compose [-f <arg>...] [options] Options: -f FILE Specify an alternate compose file (default: docker-compose.yml) -p NAME Specify an alternate project nam...
# deploy-compose A utiliy to deploy services defined in a compose file to swarm-mode clusters. ## Usage ``` Usage: deploy-compose [-f <arg>...] [options] Options: -f FILE Specify an alternate compose file (default: docker-compose.yml) -p NAME Specify an alternate project name (default: directory name) ```
<|file_sep|>original/README.md # deploy-compose A utiliy to deploy services defined in a compose file to swarm-mode clusters. ## Usage ``` Usage: docker-compose [-f <arg>...] [options] Options: -f FILE Specify an alternate compose file (default: docker-compose.yml) -p NAME Specify an alternate project nam...
02f72fa8a9ddfc15b2a484d5931019aeda0142f3
README.md
README.md
Markdown
<|file_sep|>original/requirements.txt # List of the dependencies for the mirrormanager flask server flask flask-admin flask-xml-rpc flask-wtf wtforms SQLAlchemy>=0.7 python-fedora python-openid python-openid-cla python-openid-teams <|file_sep|>current/requirements.txt # List of the dependencies for the mirrormanager f...
# List of the dependencies for the mirrormanager flask server flask flask-admin flask-xml-rpc flask-wtf wtforms SQLAlchemy>=0.7 python-fedora python-openid python-openid-cla python-openid-teams python-IPy
<|file_sep|>original/requirements.txt # List of the dependencies for the mirrormanager flask server flask flask-admin flask-xml-rpc flask-wtf wtforms SQLAlchemy>=0.7 python-fedora python-openid python-openid-cla python-openid-teams <|file_sep|>current/requirements.txt # List of the dependencies for the mirrormanager f...
8a7a4319bcfd9e664f0708d4637a5fe9fd4dd909
requirements.txt
requirements.txt
Text
<|file_sep|>original/.travis.yml language: python sudo: false script: ./scripts/travis.sh os: - linux matrix: include: - python: "3.7" dist: "xenial" sudo: true - python: "3.8" dist: "xenial" sudo: true - python: "3.9" dist: "xenial" sudo: true services: - memcached...
sudo: false script: ./scripts/travis.sh os: - linux matrix: include: - python: "3.7" dist: "xenial" sudo: true - python: "3.8" dist: "xenial" sudo: true - python: "3.9" dist: "xenial" sudo: true - python: "3.10" dist: "focal" sudo: true services: - m...
<|file_sep|>original/.travis.yml language: python sudo: false script: ./scripts/travis.sh os: - linux matrix: include: - python: "3.7" dist: "xenial" sudo: true - python: "3.8" dist: "xenial" sudo: true - python: "3.9" dist: "xenial" sudo: true services: - memcached...
216c4a6cab6aa1e30eb09e5a47240fdbcbfa8eb0
.travis.yml
.travis.yml
YAML
<|file_sep|>original/Project/HEW/make/jenkins.bat <|file_sep|>current/Project/HEW/make/jenkins.bat <|file_sep|>updated/Project/HEW/make/jenkins.bat
mkdir ..\libm2dec\Release mkdir ..\libm2dec\Debug mkdir ..\h264dec\Release mkdir ..\h264dec\Debug mkdir ..\m2dec\Release mkdir ..\m2dec\Debug "C:\Program Files (x86)\Renesas\Hew\hmake.exe" m2dec.mak > buildlog.txt find "ERROR" buildlog.txt if errorlevel 1 exit /b 0 exit /b 1
<|file_sep|>original/Project/HEW/make/jenkins.bat <|file_sep|>current/Project/HEW/make/jenkins.bat <|file_sep|>updated/Project/HEW/make/jenkins.bat mkdir ..\libm2dec\Release mkdir ..\libm2dec\Debug mkdir ..\h264dec\Release mkdir ..\h264dec\Debug mkdir ..\m2dec\Release mkdir ..\m2dec\Debug "C:\Program Files (x86)\Rene...
953748ad16cf4b833ddfc35c94e88c9a74f87224
Project/HEW/make/jenkins.bat
Project/HEW/make/jenkins.bat
Batchfile
<|file_sep|>original/app/services/course/group_manager_preload_service.rb # Assumes that GroupUsers and their Groups have been loaded for each CourseUser. # # @param [Array<CourseUser>] course_users def initialize(course_users) @course_users = course_users end # Returns all managers of the groups that ...
# Assumes that GroupUsers and their Groups have been loaded for each CourseUser. # # @param [Array<CourseUser>] course_users def initialize(course_users) @course_users = course_users end # Returns all managers of the groups that the given CourseUser are a part of. # Assumes that GroupUsers and their ...
<|file_sep|>original/app/services/course/group_manager_preload_service.rb # Assumes that GroupUsers and their Groups have been loaded for each CourseUser. # # @param [Array<CourseUser>] course_users def initialize(course_users) @course_users = course_users end # Returns all managers of the groups that ...
29f42b4cef95bc55cea6eda9852619ba4bc45b66
app/services/course/group_manager_preload_service.rb
app/services/course/group_manager_preload_service.rb
Ruby
<|file_sep|>original/server/envs/dev/docker-compose.yml #- "5432:5432" environment: POSTGRES_USER: geekmarks POSTGRES_PASSWORD: geekmarks POSTGRES_DB: geekmarks geekmarks: container_name: geekmarks-dev-main image: dimonomid/geekmarks-server depends_on: - postgres lin...
#- "5432:5432" environment: POSTGRES_USER: geekmarks POSTGRES_PASSWORD: geekmarks POSTGRES_DB: geekmarks geekmarks: container_name: geekmarks-dev-main image: dimonomid/geekmarks-server depends_on: - postgres links: - postgres ports: - "4000:4000" ...
<|file_sep|>original/server/envs/dev/docker-compose.yml #- "5432:5432" environment: POSTGRES_USER: geekmarks POSTGRES_PASSWORD: geekmarks POSTGRES_DB: geekmarks geekmarks: container_name: geekmarks-dev-main image: dimonomid/geekmarks-server depends_on: - postgres lin...
a5c948088895d6dc8befdd86cb69e94921621856
server/envs/dev/docker-compose.yml
server/envs/dev/docker-compose.yml
YAML
<|file_sep|>original/Yomu/ViewModels/ChapterViewModel.swift } var chapter: Chapter { return _chapter.value } init(chapter: Chapter) { _chapter = Variable(chapter) } func fetchPreview() -> Disposable { let id = _chapter.value.id return MangaEden .request(MangaEdenAPI.ChapterPages(id...
} var chapter: Chapter { return _chapter.value } init(chapter: Chapter) { _chapter = Variable(chapter) } func titleContains(pattern: String) -> Bool { return _chapter.value.title.lowercaseString.containsString(pattern) } func fetchPreview() -> Disposable { let id = _chapter.value.id ...
<|file_sep|>original/Yomu/ViewModels/ChapterViewModel.swift } var chapter: Chapter { return _chapter.value } init(chapter: Chapter) { _chapter = Variable(chapter) } func fetchPreview() -> Disposable { let id = _chapter.value.id return MangaEden .request(MangaEdenAPI.ChapterPages(id...
609b300a49b3a86b57f20e991b9a428d0efb5dca
Yomu/ViewModels/ChapterViewModel.swift
Yomu/ViewModels/ChapterViewModel.swift
Swift
<|file_sep|>lib/omniauth/strategies/adstage.rb.diff original: class Doorkeeper < OmniAuth::Strategies::OAuth2 updated: class Adstage < OmniAuth::Strategies::OAuth2 <|file_sep|>original/lib/omniauth/strategies/adstage.rb option :client_options, { :site => (ENV['ADSTAGE_ENDPOINT'] || "https://www.a...
option :client_options, { :site => (ENV['ADSTAGE_ENDPOINT'] || "https://www.adstage.io"), :authorize_url => "/oauth/authorize" } uid { raw_info["id"] } info do { :email => raw_info["email"], :admin => raw_info["admin"] # and anything else ...
<|file_sep|>lib/omniauth/strategies/adstage.rb.diff original: class Doorkeeper < OmniAuth::Strategies::OAuth2 updated: class Adstage < OmniAuth::Strategies::OAuth2 <|file_sep|>original/lib/omniauth/strategies/adstage.rb option :client_options, { :site => (ENV['ADSTAGE_ENDPOINT'] || "https://www.a...
ae10865fd282c22a57e47cd5a78dba1b5f3a2dcd
lib/omniauth/strategies/adstage.rb
lib/omniauth/strategies/adstage.rb
Ruby
<|file_sep|>original/boards/nucleo_f303k8.json "openocd_board": "st_nucleo_f3", "svd_path": "STM32F30x.svd" }, "frameworks": [ "arduino", "mbed", "stm32cube" ], "name": "ST Nucleo F303K8", "upload": { "maximum_ram_size": 16384, "maximum_size": 65536, "protocol": "stlink", "...
"openocd_board": "st_nucleo_f3", "svd_path": "STM32F30x.svd" }, "frameworks": [ "arduino", "mbed", "stm32cube" ], "name": "ST Nucleo F303K8", "upload": { "maximum_ram_size": 12288, "maximum_size": 65536, "protocol": "stlink", "protocols": [ "jlink", "stlink", ...
<|file_sep|>original/boards/nucleo_f303k8.json "openocd_board": "st_nucleo_f3", "svd_path": "STM32F30x.svd" }, "frameworks": [ "arduino", "mbed", "stm32cube" ], "name": "ST Nucleo F303K8", "upload": { "maximum_ram_size": 16384, "maximum_size": 65536, "protocol": "stlink", "...
ce8ca2e59a273f84e640c90679cb0d43da436565
boards/nucleo_f303k8.json
boards/nucleo_f303k8.json
JSON
<|file_sep|>.travis.yml.diff original: python: - "2.7" updated: env: - TOX_ENV=py27 - TOX_ENV=docs - TOX_ENV=flake8 <|file_sep|>.travis.yml.diff original: - python setup.py install updated: - pip install tox <|file_sep|>original/.travis.yml language: python python: - "2.7" install: - python setup.py ins...
language: python env: - TOX_ENV=py27 - TOX_ENV=docs - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV
<|file_sep|>.travis.yml.diff original: python: - "2.7" updated: env: - TOX_ENV=py27 - TOX_ENV=docs - TOX_ENV=flake8 <|file_sep|>.travis.yml.diff original: - python setup.py install updated: - pip install tox <|file_sep|>original/.travis.yml language: python python: - "2.7" install: - python setup.py ins...
3619eb3b7b8c10d44d83d6e97dab4a6c7db4c159
.travis.yml
.travis.yml
YAML
<|file_sep|>.travis.yml.diff original: osx_image: xcode10.2 updated: osx_image: xcode11 <|file_sep|>.travis.yml.diff original: updated: - xcode11 <|file_sep|>original/.travis.yml language: objective-c osx_image: xcode10.2 branches: only: - master env: - DESTINATION="OS=12.2,name=iPhone XS" SCHEME="Eureka" ...
language: objective-c osx_image: xcode11 branches: only: - master - xcode11 env: - DESTINATION="OS=13,name=iPhone XS" SCHEME="Eureka" SDK=iphonesimulator before_install: - brew update - brew outdated carthage || brew upgrade carthage script: - set -o pipefail - xcodebuild -version - xcodebuild -pr...
<|file_sep|>.travis.yml.diff original: osx_image: xcode10.2 updated: osx_image: xcode11 <|file_sep|>.travis.yml.diff original: updated: - xcode11 <|file_sep|>original/.travis.yml language: objective-c osx_image: xcode10.2 branches: only: - master env: - DESTINATION="OS=12.2,name=iPhone XS" SCHEME="Eureka" ...
a87718c930a94dd9ada2c8e25d5d0f1c2157bec1
.travis.yml
.travis.yml
YAML
<|file_sep|>original/packages/fe/feather.yaml <|file_sep|>current/packages/fe/feather.yaml <|file_sep|>updated/packages/fe/feather.yaml
homepage: https://github.com/libscott/feather#readme changelog-type: '' hash: 0227af8eea715dfb34e130a99947ce6fdefa9e5c3da211ce67fed747dd7fa173 test-bench-deps: microlens-platform: -any base: ! '>=4.7 && <5' containers: -any mtl: -any feather: -any maintainer: scott@scottsadler.de synopsis: '' changelog: '' ba...
<|file_sep|>original/packages/fe/feather.yaml <|file_sep|>current/packages/fe/feather.yaml <|file_sep|>updated/packages/fe/feather.yaml homepage: https://github.com/libscott/feather#readme changelog-type: '' hash: 0227af8eea715dfb34e130a99947ce6fdefa9e5c3da211ce67fed747dd7fa173 test-bench-deps: microlens-platform: ...
2ab7d064bb745afa012966811c348bba19c1416c
packages/fe/feather.yaml
packages/fe/feather.yaml
YAML
<|file_sep|>original/templates/show.html {{define "head"}} {{end}} {{define "body"}} <body style="padding: 0.5em;"> {{template "header" .}} {{template "recent" .}} {{.Text}} <a href="{{.Path}}" class="pure-button">Edit</a> <a href="{{.Path}}/rename" class="pure-button">Rename</a> </body> {{end}} <|file_sep|>current/te...
{{define "head"}} {{end}} {{define "body"}} <body style="padding: 0.5em;"> {{template "header" .}} {{template "recent" .}} <a href="{{.Path}}" class="pure-button">Edit</a> {{.Text}} <a href="{{.Path}}" class="pure-button">Edit</a> <a href="{{.Path}}/rename" class="pure-button">Rename</a> </body> {{end}}
<|file_sep|>original/templates/show.html {{define "head"}} {{end}} {{define "body"}} <body style="padding: 0.5em;"> {{template "header" .}} {{template "recent" .}} {{.Text}} <a href="{{.Path}}" class="pure-button">Edit</a> <a href="{{.Path}}/rename" class="pure-button">Rename</a> </body> {{end}} <|file_sep|>current/te...
a26f507696b3b15f3d92245a9600bfaf97712e89
templates/show.html
templates/show.html
HTML
<|file_sep|>original/README.md # kot Sample project using Spring Boot with Kotlin and Gradle. <|file_sep|>current/README.md # kot Sample project using Spring Boot with Kotlin and Gradle. <|file_sep|>updated/README.md
# kot Sample project using Spring Boot with Kotlin and Gradle. ### run app gradlew bootRun ### deploy to bluemix cf push kot -m 128M -p build/libs/kot-0.0.1-SNAPSHOT.jar
<|file_sep|>original/README.md # kot Sample project using Spring Boot with Kotlin and Gradle. <|file_sep|>current/README.md # kot Sample project using Spring Boot with Kotlin and Gradle. <|file_sep|>updated/README.md # kot Sample project using Spring Boot with Kotlin and Gradle. ### run app gradlew bootRun ### dep...
4f10d8f6b3369a20ca695534b9adb47845cf0bc2
README.md
README.md
Markdown
<|file_sep|>src/PhpSpec/Formatter/Html/HtmlPresenter.php.diff original: updated: use PhpSpec\Exception\Exception as PhpSpecException; <|file_sep|>original/src/PhpSpec/Formatter/Html/HtmlPresenter.php namespace PhpSpec\Formatter\Html; use PhpSpec\Formatter\Presenter\StringPresenter; use Exception; class HtmlPresenter...
namespace PhpSpec\Formatter\Html; use PhpSpec\Formatter\Presenter\StringPresenter; use Exception; use PhpSpec\Exception\Exception as PhpSpecException; class HtmlPresenter extends StringPresenter { public function presentException(Exception $exception, $verbose = false) { if ($exception instanceof PhpS...
<|file_sep|>src/PhpSpec/Formatter/Html/HtmlPresenter.php.diff original: updated: use PhpSpec\Exception\Exception as PhpSpecException; <|file_sep|>original/src/PhpSpec/Formatter/Html/HtmlPresenter.php namespace PhpSpec\Formatter\Html; use PhpSpec\Formatter\Presenter\StringPresenter; use Exception; class HtmlPresenter...
947608ee5cec2c4318f01a339ee1eba4bfd59d69
src/PhpSpec/Formatter/Html/HtmlPresenter.php
src/PhpSpec/Formatter/Html/HtmlPresenter.php
PHP
<|file_sep|>original/.ci/macos-steps.yml displayName: Create CCache directory - template: ./download-extract.yml parameters: name: 'CCache' artifactName: $(ccacheArtifactName)-$(use_mkl) destinationFolder: $(ccacheDir) downloadPath: $(build.binariesDirectory) - bash: | sudo xcode-select --swit...
displayName: Create CCache directory - template: ./download-extract.yml parameters: name: 'CCache' artifactName: $(ccacheArtifactName)-$(use_mkl) destinationFolder: $(ccacheDir) downloadPath: $(build.binariesDirectory) - bash: | sudo xcode-select --switch /Applications/Xcode_12.app/Contents/De...
<|file_sep|>original/.ci/macos-steps.yml displayName: Create CCache directory - template: ./download-extract.yml parameters: name: 'CCache' artifactName: $(ccacheArtifactName)-$(use_mkl) destinationFolder: $(ccacheDir) downloadPath: $(build.binariesDirectory) - bash: | sudo xcode-select --swit...
15f524bf098f0ec639d7a4c4c4103c10d62ccb97
.ci/macos-steps.yml
.ci/macos-steps.yml
YAML
<|file_sep|>api/app.py.diff original: if doc == {}: msg = 'The parameter `doc` is missing or empty' raise InvalidUsage(msg) if len(docs) == 0: msg = 'The parameter `docs` is missing or empty' raise InvalidUsage(msg) updated: _verify_parameters(doc,...
@app.route('/recommender/', methods=['POST']) def recommender(): content = request.get_json() if content is not None: doc = content.get('doc', {}) docs = content.get('docs', []) _verify_parameters(doc, docs) result = recommend(doc, docs) return jsonify(result) else: ...
<|file_sep|>api/app.py.diff original: if doc == {}: msg = 'The parameter `doc` is missing or empty' raise InvalidUsage(msg) if len(docs) == 0: msg = 'The parameter `docs` is missing or empty' raise InvalidUsage(msg) updated: _verify_parameters(doc,...
6f60f6257cbcd0328fcdb0873d88d55772731ba4
api/app.py
api/app.py
Python
<|file_sep|>original/dev-requirements.txt coverage flake8 mock -e hg+ssh://hg@bitbucket.org/hpk42/pytest/#egg=pytest pytest-cov rope unittest2 WebTest <|file_sep|>current/dev-requirements.txt coverage flake8 mock -e hg+ssh://hg@bitbucket.org/hpk42/pytest/#egg=pytest pytest-cov rope unittest2 WebTest <|file_sep|>updated...
coverage flake8 mock -e hg+https://bitbucket.org/hpk42/pytest/#egg=pytest pytest-cov rope unittest2 WebTest
<|file_sep|>original/dev-requirements.txt coverage flake8 mock -e hg+ssh://hg@bitbucket.org/hpk42/pytest/#egg=pytest pytest-cov rope unittest2 WebTest <|file_sep|>current/dev-requirements.txt coverage flake8 mock -e hg+ssh://hg@bitbucket.org/hpk42/pytest/#egg=pytest pytest-cov rope unittest2 WebTest <|file_sep|>updated...
ba465852ccf1fcbe2f2a2ca6016421a097929073
dev-requirements.txt
dev-requirements.txt
Text
<|file_sep|>lib/yard/extra.rb.diff original: updated: RELATIVE_PARENTDIR = '..' # Turns a path +to+ into a relative path from starting # point +from+. The argument +from+ is assumed to be # a filename. To treat it as a directory, make sure it # ends in {File::SEPARATOR} ('/' on UNIX filesystems). # #...
# a filename. To treat it as a directory, make sure it # ends in {File::SEPARATOR} ('/' on UNIX filesystems). # # @param [String] from the starting filename # (or directory with +from_isdir+ set to +true+). # # @param [String] to the final path that should be made relative. # # @return [String] ...
<|file_sep|>lib/yard/extra.rb.diff original: updated: RELATIVE_PARENTDIR = '..' # Turns a path +to+ into a relative path from starting # point +from+. The argument +from+ is assumed to be # a filename. To treat it as a directory, make sure it # ends in {File::SEPARATOR} ('/' on UNIX filesystems). # #...
df95afdea39c15d58a1566cb5acd8d000d27f485
lib/yard/extra.rb
lib/yard/extra.rb
Ruby
<|file_sep|>original/setup.py Installs marvin as a package. """ from setuptools import setup, find_packages setup( name='marvin', version='0.1.0', author='Tarjei Husøy', author_email='tarjei@roms.no', url='https://github.com/streamr/marvin', description='API endpoints for streamr', pa...
""" from setuptools import setup, find_packages setup( name='marvin', version='0.1.0', author='Tarjei Husøy', author_email='tarjei@roms.no', url='https://github.com/streamr/marvin', description='API endpoints for streamr', packages=find_packages(), package_data={ '': [ ...
<|file_sep|>original/setup.py Installs marvin as a package. """ from setuptools import setup, find_packages setup( name='marvin', version='0.1.0', author='Tarjei Husøy', author_email='tarjei@roms.no', url='https://github.com/streamr/marvin', description='API endpoints for streamr', pa...
03a5c3ce6c3c5c3238068f7e52d7f482eeebf7fb
setup.py
setup.py
Python
<|file_sep|>original/.travis.yml --- language: node_js node_js: - "0.12" sudo: false cache: directories: - node_modules env: - EMBER_TRY_SCENARIO=default - EMBER_TRY_SCENARIO=ember-release - EMBER_TRY_SCENARIO=ember-beta - EMBER_TRY_SCENARIO=ember-canary - EMBER_TRY_SCENARIO=ember-1.13.1 - EMBER_...
--- language: node_js node_js: - "5.0" sudo: false cache: directories: - node_modules env: - EMBER_TRY_SCENARIO=default - EMBER_TRY_SCENARIO=ember-release - EMBER_TRY_SCENARIO=ember-beta - EMBER_TRY_SCENARIO=ember-canary - EMBER_TRY_SCENARIO=ember-1.13.1 - EMBER_TRY_SCENARIO=ember-1.12.1 - EMBE...
<|file_sep|>original/.travis.yml --- language: node_js node_js: - "0.12" sudo: false cache: directories: - node_modules env: - EMBER_TRY_SCENARIO=default - EMBER_TRY_SCENARIO=ember-release - EMBER_TRY_SCENARIO=ember-beta - EMBER_TRY_SCENARIO=ember-canary - EMBER_TRY_SCENARIO=ember-1.13.1 - EMBER_...
7d1a0b482b0b21c554b10c8f3141384a3cc1594b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java <|file_sep|>current/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java <|file_sep|>updated/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java
/** * Copyright (c) 2013-2015 by The SeedStack authors. All rights reserved. * * This file is part of SeedStack, An enterprise-oriented full development stack. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You...
<|file_sep|>original/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java <|file_sep|>current/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java <|file_sep|>updated/core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java /** * Copyright ...
556e661b33aae36f4e48a1adb2d054a7b2b8a813
core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java
core/src/test/java/org/seedstack/business/internal/utils/MethodMatcherTest.java
Java
<|file_sep|>original/extras/generate-structs.php <|file_sep|>current/extras/generate-structs.php <|file_sep|>updated/extras/generate-structs.php
#!/usr/bin/env php <?php /** * Generate C structs from a JSON file of chemical elements * * To run with the default data: * ./generate-structs.php * * To run with some other JSON file: * ./generate-structs.php /path/to/some/other/file * * The C code is printed to stdout. */ $filename = __DIR__ . "...
<|file_sep|>original/extras/generate-structs.php <|file_sep|>current/extras/generate-structs.php <|file_sep|>updated/extras/generate-structs.php #!/usr/bin/env php <?php /** * Generate C structs from a JSON file of chemical elements * * To run with the default data: * ./generate-structs.php * * To run wit...
e64e38e1cedf4bea4619b5b5964a5b8e00d4c2d3
extras/generate-structs.php
extras/generate-structs.php
PHP
<|file_sep|>original/update_changelog.sh <|file_sep|>current/update_changelog.sh <|file_sep|>updated/update_changelog.sh
#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" FILE="$DIR/CHANGELOG.rst" gitchangelog > "$FILE" && git commit -m "Update changelog" "$FILE"
<|file_sep|>original/update_changelog.sh <|file_sep|>current/update_changelog.sh <|file_sep|>updated/update_changelog.sh #!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" FILE="$DIR/CHANGELOG.rst" gitchangelog > "$FILE" && git commit -m "Update changelog" "$FILE"
2f19852a9f2190dd227082b234a277397687835d
update_changelog.sh
update_changelog.sh
Shell
<|file_sep|>original/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java <|file_sep|>current/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java <|file_sep|>updated/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
<|file_sep|>original/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java <|file_sep|>current/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java <|file_sep|>updated/src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java /* * Licensed to the Apache Software ...
21da81bb4d9d1080716fe4f75eddc96a8a4e27a7
src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java
src/test/java/org/apache/commons/lang3/mutable/PrintAtomicVsMutable.java
Java
<|file_sep|>static/locales/en-GB/messages.properties.diff original: navigation-title=Pontoon Intro navigation-developers=Developers updated: <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation navigation-title=Pontoon Intro navigation-developers=Developers # Header upper-title=Pont...
# Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you. context-desc=By localising web page on the page itself, you no longer need to worry if the wo...
<|file_sep|>static/locales/en-GB/messages.properties.diff original: navigation-title=Pontoon Intro navigation-developers=Developers updated: <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation navigation-title=Pontoon Intro navigation-developers=Developers # Header upper-title=Pont...
610fe83e0094b2b45dc4b8704204c18b9d893f63
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
INI
<|file_sep|>original/.travis.yml language: php php: - "7.4" - "7.3" - "7.2" env: global: # Since PHP 7.3, php-xdebug is disabled by default unless this is set. - XDEBUG_MODE=coverage install: - composer install script: - composer test after_success: - wget https://github.com/php-coveralls/php-cove...
language: php php: - "8.0" - "7.4" - "7.3" - "7.2" env: global: # Since PHP 7.3, php-xdebug is disabled by default unless this is set. - XDEBUG_MODE=coverage install: - composer install script: - composer test after_success: - wget https://github.com/php-coveralls/php-coveralls/releases/download...
<|file_sep|>original/.travis.yml language: php php: - "7.4" - "7.3" - "7.2" env: global: # Since PHP 7.3, php-xdebug is disabled by default unless this is set. - XDEBUG_MODE=coverage install: - composer install script: - composer test after_success: - wget https://github.com/php-coveralls/php-cove...
fc31a8866fe8f23dbf99fb1180a970aa6753833f
.travis.yml
.travis.yml
YAML
<|file_sep|>package.json.diff original: "version": "0.0.4", updated: "version": "0.0.5", <|file_sep|>original/package.json "karma-plugin", "karma-preprocessor", "ember", "handlebars" ], "author": { "name": "toran billups", "email": "toranb@gmail.com" }, "licenses": [ "MIT" ], ...
"karma-plugin", "karma-preprocessor", "ember", "handlebars" ], "author": { "name": "toran billups", "email": "toranb@gmail.com" }, "licenses": [ "MIT" ], "dependencies": { "ember-template-compiler": "0.0.5" }, "peerDependencies": { "karma": ">=0.9" }, "devDependen...
<|file_sep|>package.json.diff original: "version": "0.0.4", updated: "version": "0.0.5", <|file_sep|>original/package.json "karma-plugin", "karma-preprocessor", "ember", "handlebars" ], "author": { "name": "toran billups", "email": "toranb@gmail.com" }, "licenses": [ "MIT" ], ...
6c516a77f35dafe3883d0709e56b421d6f18db8b
package.json
package.json
JSON
<|file_sep|>lib/ghtml2pdf/argument_parser.rb.diff original: updated: # Error class raised for missing arguments class MissingArgument < StandardError; end <|file_sep|>lib/ghtml2pdf/argument_parser.rb.diff original: warn 'An input filename is required' exit 1 updated: raise MissingArgum...
module GHtml2Pdf # Parses the command line arguments class ArgumentParser attr_reader :input, :output # Error class raised for missing arguments class MissingArgument < StandardError; end def initialize(argv) @input, @output, = argv unless @input raise MissingArgument, 'An inpu...
<|file_sep|>lib/ghtml2pdf/argument_parser.rb.diff original: updated: # Error class raised for missing arguments class MissingArgument < StandardError; end <|file_sep|>lib/ghtml2pdf/argument_parser.rb.diff original: warn 'An input filename is required' exit 1 updated: raise MissingArgum...
1212869518681e27505aba4dfb63c1c61c9b4449
lib/ghtml2pdf/argument_parser.rb
lib/ghtml2pdf/argument_parser.rb
Ruby
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.0-20210119024105+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-snapshots/gradle-7.0-20210119173355+0000-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-7.0-20210119024105+0000-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists <|file_sep|>current/gradle/w...
584a4b6a7bee318af6eb1f9a7cd41cc7e6f331fe
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
INI
<|file_sep|>original/plasmoid/contents/ui/TrackImage.qml horizontalOffset: 2 verticalOffset: 2 color: "#80000000" } NumberAnimation on opacity { id: load to: 1 duration: 400 } onStatusChanged: { if (anim...
verticalOffset: 2 color: "#80000000" } NumberAnimation on opacity { id: load to: 1 duration: 400 } onStatusChanged: { if (status === Image.Error) source = "default.png" if (animateLoad) ...
<|file_sep|>original/plasmoid/contents/ui/TrackImage.qml horizontalOffset: 2 verticalOffset: 2 color: "#80000000" } NumberAnimation on opacity { id: load to: 1 duration: 400 } onStatusChanged: { if (anim...
c1049ce6c84becdd06890386d2ae00547cbe1809
plasmoid/contents/ui/TrackImage.qml
plasmoid/contents/ui/TrackImage.qml
QML
<|file_sep|>original/library/js/boot-index.js /*! * Top-Level Bootstrap */ require( { priority: [ 'require-config' ] }, [ 'mediators/index' ], function() { var log = document.getElementById('log'), msg = log.innerHTML += '<li><b>boot-index.js</b> factor...
/*! * Top-Level Bootstrap */ require( { priority: [ 'require-config' ] // Set paths and jQuery configuration before any other scripts are loaded }, [ 'mediators/index' ], function() { var log = document.getElementById('log'), msg = log.innerHTML += '<li...
<|file_sep|>original/library/js/boot-index.js /*! * Top-Level Bootstrap */ require( { priority: [ 'require-config' ] }, [ 'mediators/index' ], function() { var log = document.getElementById('log'), msg = log.innerHTML += '<li><b>boot-index.js</b> factor...
d634540d4967dbe1b1f176cc6c9befbd5b60ee2e
library/js/boot-index.js
library/js/boot-index.js
JavaScript
<|file_sep|>original/ibei/main.py <|file_sep|>current/ibei/main.py <|file_sep|>updated/ibei/main.py
# -*- coding: utf-8 -*- import numpy as np from astropy import constants from astropy import units from sympy.mpmath import polylog def uibei(order, energy_lo, temp, chem_potential): """ Upper incomplete Bose-Einstein integral. """ kT = temp * constants.k_B reduced_energy_lo = energy_lo / kT ...
<|file_sep|>original/ibei/main.py <|file_sep|>current/ibei/main.py <|file_sep|>updated/ibei/main.py # -*- coding: utf-8 -*- import numpy as np from astropy import constants from astropy import units from sympy.mpmath import polylog def uibei(order, energy_lo, temp, chem_potential): """ Upper incomplete Bos...
5c7400a2e70e5d9ee7f8a73e43abbf0f7b992152
ibei/main.py
ibei/main.py
Python
<|file_sep|>nap/auth.py.diff original: permit_logged_in = permit( lambda self, *args, **kwargs: self.request.user.is_authenticated() ) updated: <|file_sep|>nap/auth.py.diff original: permit_staff = permit( lambda self, *args, **kwargs: self.request.user.is_staff ) updated: # Helpers for people wanting to contr...
return response_class() return _wrapped_view return decorator # Helpers for people wanting to control response class def test_logged_in(self, *args, **kwargs): return self.request.user.is_authenticated() def test_staff(self, *args, **kwargs): return self.request.user.is_staff permit...
<|file_sep|>nap/auth.py.diff original: permit_logged_in = permit( lambda self, *args, **kwargs: self.request.user.is_authenticated() ) updated: <|file_sep|>nap/auth.py.diff original: permit_staff = permit( lambda self, *args, **kwargs: self.request.user.is_staff ) updated: # Helpers for people wanting to contr...
771f429433d201463ab94439870d1bc803022722
nap/auth.py
nap/auth.py
Python
<|file_sep|>original/.github/workflows/publish_docker_images_cron.yml image_type: [ latest, alpine, postgres_12, nightly ] steps: - name: Checkout repository uses: actions/checkout@v2 - name: Clone tools branch ru...
image_type: [ latest, alpine, postgres_12, nightly ] steps: - name: Checkout repository uses: actions/checkout@v2 - name: Clone tools branch run: git clone --depth=1 --branch develop https://github.com/citusdata/t...
<|file_sep|>original/.github/workflows/publish_docker_images_cron.yml image_type: [ latest, alpine, postgres_12, nightly ] steps: - name: Checkout repository uses: actions/checkout@v2 - name: Clone tools branch ru...
10d3297c9a3eb10b78e67e50cb61d12be392aaf3
.github/workflows/publish_docker_images_cron.yml
.github/workflows/publish_docker_images_cron.yml
YAML
<|file_sep|>original/deploy/settings.xml <|file_sep|>current/deploy/settings.xml <|file_sep|>updated/deploy/settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> ...
<|file_sep|>original/deploy/settings.xml <|file_sep|>current/deploy/settings.xml <|file_sep|>updated/deploy/settings.xml <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 ...
fc89e1788bff67631b194615f762ea094b5d5619
deploy/settings.xml
deploy/settings.xml
XML
<|file_sep|>original/.travis.yml dist: trusty language: python python: 2.7 services: - docker addons: apt: packages: - python-pip script: - ansible-playbook playbooks/buildenv.yml -i tests/inventory -l localhost -vvvv - bundle exec ...
dist: trusty language: python python: 2.7 services: - docker addons: apt: packages: - python-pip script: - >+ ansible-playbook playbooks/buildenv.yml -i tests/inventory -l localhost --extra-vars="virtualbox_apt_repositor...
<|file_sep|>original/.travis.yml dist: trusty language: python python: 2.7 services: - docker addons: apt: packages: - python-pip script: - ansible-playbook playbooks/buildenv.yml -i tests/inventory -l localhost -vvvv - bundle exec ...
86b5772cacf2f6013edb33ad35378068ea3fc529
.travis.yml
.travis.yml
YAML
<|file_sep|>original/wagtail/admin/templates/wagtailadmin/workflows/index.html {% trans "Tasks" %} </th> </tr> </thead> <tbody> {% for workflow in workflows %} ...
{% trans "Tasks" %} </th> </tr> </thead> <tbody> {% for workflow in workflows %} <tr> <td class="title"> ...
<|file_sep|>original/wagtail/admin/templates/wagtailadmin/workflows/index.html {% trans "Tasks" %} </th> </tr> </thead> <tbody> {% for workflow in workflows %} ...
7fceab23062f96f7ceafc7e14a362677c1185812
wagtail/admin/templates/wagtailadmin/workflows/index.html
wagtail/admin/templates/wagtailadmin/workflows/index.html
HTML
<|file_sep|>ext/whitesimilarity/extconf.rb.diff original: updated: WS_LIB_PATH = File.expand_path('../lib', __FILE__) LIBDIR = RbConfig::CONFIG['libdir'] INCLUDEDIR = RbConfig::CONFIG['includedir'] HEADER_DIRS = [INCLUDEDIR] LIB_DIRS = [WS_LIB_PATH, LIBDIR] <|file_sep|>original/ext/whitesimilarity/extconf.rb...
require 'mkmf' WS_LIB_PATH = File.expand_path('../lib', __FILE__) LIBDIR = RbConfig::CONFIG['libdir'] INCLUDEDIR = RbConfig::CONFIG['includedir'] HEADER_DIRS = [INCLUDEDIR] LIB_DIRS = [WS_LIB_PATH, LIBDIR] extension_name = 'whitesimilarity' dir_config(extension_name, HEADER_DIRS, LIB_DIRS) unless have_head...
<|file_sep|>ext/whitesimilarity/extconf.rb.diff original: updated: WS_LIB_PATH = File.expand_path('../lib', __FILE__) LIBDIR = RbConfig::CONFIG['libdir'] INCLUDEDIR = RbConfig::CONFIG['includedir'] HEADER_DIRS = [INCLUDEDIR] LIB_DIRS = [WS_LIB_PATH, LIBDIR] <|file_sep|>original/ext/whitesimilarity/extconf.rb...
1beb8e0413a2d6618f26cba7bafc590631a1b6ec
ext/whitesimilarity/extconf.rb
ext/whitesimilarity/extconf.rb
Ruby
<|file_sep|>original/app/views/admin/users/_form.html.erb <%= form_for [:admin, @user], :remote => true do |f| %> <%= error_messages_for(@user) %> <label>Name</label><%= f.text_field :name %><br /> <label>Email</label> <%= f.text_field :email %><br /> <% if @user.new_record? %> <label>Password</label> <%= f...
<%= form_for [:admin, @user], :remote => true do |f| %> <%= error_messages_for(@user) %> <label>Name</label><%= f.text_field :name %><br /> <label>Email</label> <%= f.text_field :email %><br /> <% if @user.new_record? %> <label>Password</label> <%= f.password_field :password %><br /> <label>Password con...
<|file_sep|>original/app/views/admin/users/_form.html.erb <%= form_for [:admin, @user], :remote => true do |f| %> <%= error_messages_for(@user) %> <label>Name</label><%= f.text_field :name %><br /> <label>Email</label> <%= f.text_field :email %><br /> <% if @user.new_record? %> <label>Password</label> <%= f...
05ab8bd3105a11fb800535978fe7aa32ee8b27a0
app/views/admin/users/_form.html.erb
app/views/admin/users/_form.html.erb
HTML+ERB
<|file_sep|>original/botocore/data/resource-groups/2017-11-27/paginators-1.json { "pagination": { "ListGroups": { "result_key": "Groups", "output_token": "NextToken", "input_token": "NextToken", "limit_key": "MaxResults" }, "SearchResources": { "result_key": "ResourceIdentifi...
{ "pagination": { "ListGroups": { "result_key": ["GroupIdentifiers", "Groups"], "output_token": "NextToken", "input_token": "NextToken", "limit_key": "MaxResults" }, "SearchResources": { "result_key": "ResourceIdentifiers", "output_token": "NextToken", "input_toke...
<|file_sep|>original/botocore/data/resource-groups/2017-11-27/paginators-1.json { "pagination": { "ListGroups": { "result_key": "Groups", "output_token": "NextToken", "input_token": "NextToken", "limit_key": "MaxResults" }, "SearchResources": { "result_key": "ResourceIdentifi...
d5038afac05c5ce0f1928e41904348bcd4f5d258
botocore/data/resource-groups/2017-11-27/paginators-1.json
botocore/data/resource-groups/2017-11-27/paginators-1.json
JSON
<|file_sep|>original/postversion.sh #!/usr/bin/env sh version=$(git tag -l | tail -n1 | sed -e s/^v//) sed -i -e "s/\(const packageVersion =\).\+/\1 '${version}'/" test/ss_to_json.js git push origin $(git tag -l | tail -n1) <|file_sep|>current/postversion.sh #!/usr/bin/env sh version=$(git tag -l | tail -n1 | sed -e...
#!/usr/bin/env sh version=$(git tag -l | tail -n1 | sed -e s/^v//) sed -i -e "s/\(const packageVersion =\).\+/\1 '${version}'/" test/ss_to_json.js git add test/ss_to_json.js git commit -m "Commit upgrade to v${version}" git push origin $(git tag -l | tail -n1)
<|file_sep|>original/postversion.sh #!/usr/bin/env sh version=$(git tag -l | tail -n1 | sed -e s/^v//) sed -i -e "s/\(const packageVersion =\).\+/\1 '${version}'/" test/ss_to_json.js git push origin $(git tag -l | tail -n1) <|file_sep|>current/postversion.sh #!/usr/bin/env sh version=$(git tag -l | tail -n1 | sed -e...
d7f2db84a9f2bf802b0a6ee579a4b597886b8858
postversion.sh
postversion.sh
Shell
<|file_sep|>bin/install.sh.diff original: sudo apt-get -y install git sudo -u postgres psql postgres \password postgres \q updated: sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';" <|file_sep|>original/bin/install.sh sudo apt-get -y install python-software-properties sudo...
sudo apt-get -y install python-software-properties sudo apt-get -y install python sudo apt-get -y install g++ sudo apt-get -y install make sudo apt-get -y install libpq-dev sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get -y update sudo apt-get -y install nodejs sudo apt-get -y install postgresql sudo apt-...
<|file_sep|>bin/install.sh.diff original: sudo apt-get -y install git sudo -u postgres psql postgres \password postgres \q updated: sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';" <|file_sep|>original/bin/install.sh sudo apt-get -y install python-software-properties sudo...
aa59a69d8c5e08c2c1796efefe099888d5955fba
bin/install.sh
bin/install.sh
Shell
<|file_sep|>original/modules/mod-func-last_file_galleries.php //this script may only be included - so its better to die if called directly. if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { header("location: index.php"); exit; } function module_last_file_galleries_info() { return array( 'nam...
//this script may only be included - so its better to die if called directly. if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { header("location: index.php"); exit; } function module_last_file_galleries_info() { return array( 'name' => tra('Last-Modified File Galleries'), 'description' => ...
<|file_sep|>original/modules/mod-func-last_file_galleries.php //this script may only be included - so its better to die if called directly. if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { header("location: index.php"); exit; } function module_last_file_galleries_info() { return array( 'nam...
2c2f426c5a2faf70ea3198fd3a56e2450765a7d3
modules/mod-func-last_file_galleries.php
modules/mod-func-last_file_galleries.php
PHP
<|file_sep|>original/theme/templates/disqus.html {% if DISQUS_SITENAME %} <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = 'sberrevoets'; var disqus_identifier = '{{ SITEURL }}/{{ article.url }}'; var disqus_url = '{{ SITEURL }}/{{ article.url }}'; var disqus_script = 'embed.js'; (...
{% if DISQUS_SITENAME %} <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = '{{ DISQUS_SITENAME }}'; var disqus_identifier = '{{ SITEURL }}/{{ article.url }}'; var disqus_url = '{{ SITEURL }}/{{ article.url }}'; var disqus_script = 'embed.js'; (function () { var dsq = document.cr...
<|file_sep|>original/theme/templates/disqus.html {% if DISQUS_SITENAME %} <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = 'sberrevoets'; var disqus_identifier = '{{ SITEURL }}/{{ article.url }}'; var disqus_url = '{{ SITEURL }}/{{ article.url }}'; var disqus_script = 'embed.js'; (...
ddf6298ce453b3595afc8a91adb1d6501526a2d3
theme/templates/disqus.html
theme/templates/disqus.html
HTML
<|file_sep|>lib/parse_insee.js.diff original: return { updated: return { <|file_sep|>lib/parse_insee.js.diff original: var regExpInsee = new RegExp("[0-9]{5}$"); updated: var regExpInsee = new RegExp('[0-9]{5}$'); <|file_sep|>lib/parse_insee.js.diff original: } ; };...
//Erreur si nous n'avons pas 5 chiffres var regExpInsee = new RegExp('[0-9]{5}$'); if((regExpInsee.test(insee))) { if ( insee.substr(0,2) == '97' ) { return { code_dep: insee.substr(0,3), code_com: insee.substr(3,2) ...
<|file_sep|>lib/parse_insee.js.diff original: return { updated: return { <|file_sep|>lib/parse_insee.js.diff original: var regExpInsee = new RegExp("[0-9]{5}$"); updated: var regExpInsee = new RegExp('[0-9]{5}$'); <|file_sep|>lib/parse_insee.js.diff original: } ; };...
9cd9bee450581c9ee2776601493849ed5144ca92
lib/parse_insee.js
lib/parse_insee.js
JavaScript
<|file_sep|>original/app/models/nwmls/member.rb collection.first else collection end end Nwmls::Listing::TYPE_TO_CLASS_MAP.each do |type, klass| method_name = klass.demodulize.underscore.pluralize define_method method_name do unless instance_variable_get("@#{method_name}") ...
end Nwmls::Listing::TYPE_TO_CLASS_MAP.each do |type, klass| method_name = klass.demodulize.underscore.pluralize define_method method_name do unless instance_variable_get("@#{method_name}") instance_variable_set("@#{method_name}", klass.constantize.find(:agent_mls_id => member_mlsid, :property...
<|file_sep|>original/app/models/nwmls/member.rb collection.first else collection end end Nwmls::Listing::TYPE_TO_CLASS_MAP.each do |type, klass| method_name = klass.demodulize.underscore.pluralize define_method method_name do unless instance_variable_get("@#{method_name}") ...
f479d21bbf6be5d7682fb1d59b4ec822576c9a24
app/models/nwmls/member.rb
app/models/nwmls/member.rb
Ruby
<|file_sep|>original/app/models/link.rb class Link include Mongoid::Document include Mongoid::Timestamps field :url, :type => String references_many :comments referenced_in :user validates :url, :presence => true end <|file_sep|>current/app/models/link.rb class Link include Mongoid::Document include ...
class Link include Mongoid::Document include Mongoid::Timestamps field :url, :type => String references_many :comments, :dependent => :destroy referenced_in :user validates :url, :presence => true end
<|file_sep|>original/app/models/link.rb class Link include Mongoid::Document include Mongoid::Timestamps field :url, :type => String references_many :comments referenced_in :user validates :url, :presence => true end <|file_sep|>current/app/models/link.rb class Link include Mongoid::Document include ...
0c138823a284c94b24315b1a5ad56ca4d1589ab3
app/models/link.rb
app/models/link.rb
Ruby
<|file_sep|>original/lib/raptor/socket/tcp_server.rb # Factory method for creating a new {TcpServer} through the given # {SwitchBoard `:switch_board`} # # @param (see Raptor::Socket::Comm.create) # @option (see Raptor::Socket::Comm.create) # @option opts :peer_host [String,IPAddr] # @option opts :peer_por...
# A listening TCP socket class Raptor::Socket::TcpServer < Raptor::Socket::Tcp end
<|file_sep|>original/lib/raptor/socket/tcp_server.rb # Factory method for creating a new {TcpServer} through the given # {SwitchBoard `:switch_board`} # # @param (see Raptor::Socket::Comm.create) # @option (see Raptor::Socket::Comm.create) # @option opts :peer_host [String,IPAddr] # @option opts :peer_por...
70dc168d52deb403a5ba386a0aed03fa16803b40
lib/raptor/socket/tcp_server.rb
lib/raptor/socket/tcp_server.rb
Ruby
<|file_sep|>original/functions/mfa-enabled.fish <|file_sep|>current/functions/mfa-enabled.fish <|file_sep|>updated/functions/mfa-enabled.fish
function mfa-enabled --argument user trace (status --current-filename) $argv if empty "$user" usage mfa-enabled '<user>' return (false) end contains $user (users-with-mfa) set enabled $status if test $enabled -eq 0 print --tag=mfa-enabled --pass $argv else ...
<|file_sep|>original/functions/mfa-enabled.fish <|file_sep|>current/functions/mfa-enabled.fish <|file_sep|>updated/functions/mfa-enabled.fish function mfa-enabled --argument user trace (status --current-filename) $argv if empty "$user" usage mfa-enabled '<user>' return (false) end co...
f688479af2d680a3131ff34acff5a8609abdf75e
functions/mfa-enabled.fish
functions/mfa-enabled.fish
fish
<|file_sep|>original/.lgtm.yml path_classifiers: test: - exclude: locale queries: - exclude: cpp/integer-multiplication-cast-to-long - exclude: cpp/missing-header-guard - exclude: cpp/short-global-name - exclude: cpp/tainted-format-string - exclude: cpp/toctou-race-condition - exclude: cpp/cleartext-...
path_classifiers: test: - exclude: 'locale/*.c' queries: - exclude: cpp/integer-multiplication-cast-to-long - exclude: cpp/missing-header-guard - exclude: cpp/short-global-name - exclude: cpp/tainted-format-string - exclude: cpp/toctou-race-condition - exclude: cpp/cleartext-transmission
<|file_sep|>original/.lgtm.yml path_classifiers: test: - exclude: locale queries: - exclude: cpp/integer-multiplication-cast-to-long - exclude: cpp/missing-header-guard - exclude: cpp/short-global-name - exclude: cpp/tainted-format-string - exclude: cpp/toctou-race-condition - exclude: cpp/cleartext-...
c4a0405a339e0bd2b655c1100ce29f9d7e3f976c
.lgtm.yml
.lgtm.yml
YAML
<|file_sep|>original/java/src/test/java/cucumber/runtime/java/test/SubstitutionStepdefs.java private String details; @Given("^I have a user account with my name \"([^\"]*)\"$") public void I_have_a_user_account_with_my_name(String name) throws Throwable { this.name = name; } @When("^an Adm...
private String details; @Given("^I have a user account with my name \"([^\"]*)\"$") public void I_have_a_user_account_with_my_name(String name) throws Throwable { this.name = name; } @When("^an Admin grants me (.+) rights$") public void an_Admin_grants_me_role_rights(String role) throw...
<|file_sep|>original/java/src/test/java/cucumber/runtime/java/test/SubstitutionStepdefs.java private String details; @Given("^I have a user account with my name \"([^\"]*)\"$") public void I_have_a_user_account_with_my_name(String name) throws Throwable { this.name = name; } @When("^an Adm...
f805d24710cf1473e055966377148235b253e45c
java/src/test/java/cucumber/runtime/java/test/SubstitutionStepdefs.java
java/src/test/java/cucumber/runtime/java/test/SubstitutionStepdefs.java
Java
<|file_sep|>am_workout_assistant.py.diff original: res = du.add_value(msg_checker.get_num_catch_ups(), message.date()) updated: res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date()) <|file_sep|>original/am_workout_assistant.py du = DataUpdater() ok = du.init() if not ok: print("ERROR (data...
ok = du.init() if not ok: print("ERROR (data updater init): {}".format(du.get_error_message())) exit(1) for message in bot.get_messages(): print("Handling message '{}'...".format(message.get_text())) msg_checker.set_message(message.get_text()) ok = msg_checker.check() if not ok: bot.sen...
<|file_sep|>am_workout_assistant.py.diff original: res = du.add_value(msg_checker.get_num_catch_ups(), message.date()) updated: res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date()) <|file_sep|>original/am_workout_assistant.py du = DataUpdater() ok = du.init() if not ok: print("ERROR (data...
d5217075d20c9b707dba191f4e7efdc9f66dcfaa
am_workout_assistant.py
am_workout_assistant.py
Python
<|file_sep|>src/index.html.diff original: <html class="no-js"> updated: <html lang="en"> <|file_sep|>src/index.html.diff original: updated: <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <|file_sep|>original/src/index.html <!doctype html> <html class="no-js"> <head> <meta ch...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Serverchip Admin</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link href="https://fonts.googleapis.com/icon?family=Mat...
<|file_sep|>src/index.html.diff original: <html class="no-js"> updated: <html lang="en"> <|file_sep|>src/index.html.diff original: updated: <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <|file_sep|>original/src/index.html <!doctype html> <html class="no-js"> <head> <meta ch...
60b3c196734b1e71d883a4b28d5fff6125a34479
src/index.html
src/index.html
HTML
<|file_sep|>original/cocoa/BugsnagReactNative.h */ + (void)start; /** * Initializes the crash handler with the default options * @param APIKey the API key to use when sending error reports */ + (void)startWithAPIKey:(NSString *)APIKey; /** * Initializes the crash handler with custom options * @param config the co...
/** * Initializes the crash handler with the default options * @param APIKey the API key to use when sending error reports */ + (void)startWithAPIKey:(NSString *)APIKey; /** * Initializes the crash handler with custom options * @param config the configuration options to use */ + (void)startWithConfiguration:(Bugs...
<|file_sep|>original/cocoa/BugsnagReactNative.h */ + (void)start; /** * Initializes the crash handler with the default options * @param APIKey the API key to use when sending error reports */ + (void)startWithAPIKey:(NSString *)APIKey; /** * Initializes the crash handler with custom options * @param config the co...
b933e0fbb8c85434bf54f772dd07b57e52440089
cocoa/BugsnagReactNative.h
cocoa/BugsnagReactNative.h
C
<|file_sep|>original/app/views/users/show.html.erb <div class = user-image> <%= image_tag @user.gravatar_url %> <h4><%= @user.email %></h4> </div> <br> <br> <div> <h3>Your Write Now History</h3> <% @user.projects.each do |project| %> <% if project != @user.projects.last %> <%= project.title %> <% el...
<div class = user-image> <h4><%= @user.email %></h4> </div> <br> <br> <div> <h3>Your Write Now History</h3> <% @user.projects.each do |project| %> <% if project != @user.projects.last %> <%= project.title %> <% else %> <%= project.title %> (Your current project!) <% end %> <% end %> </div...
<|file_sep|>original/app/views/users/show.html.erb <div class = user-image> <%= image_tag @user.gravatar_url %> <h4><%= @user.email %></h4> </div> <br> <br> <div> <h3>Your Write Now History</h3> <% @user.projects.each do |project| %> <% if project != @user.projects.last %> <%= project.title %> <% el...
d45f473cf3b0a78b360c72ab2386bb65e8c49071
app/views/users/show.html.erb
app/views/users/show.html.erb
HTML+ERB
<|file_sep|>original/README.md # Rspec::RuntimeLogger [![Code Climate](https://codeclimate.com/github/mrkn/rspec-runtime_logger.png)](https://codeclimate.com/github/mrkn/rspec-runtime_logger) TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'rspec-runtime_logger' A...
# Rspec::RuntimeLogger [![Build Status](https://travis-ci.org/mrkn/rspec-runtime_logger.png)](https://travis-ci.org/mrkn/rspec-runtime_logger) [![Code Climate](https://codeclimate.com/github/mrkn/rspec-runtime_logger.png)](https://codeclimate.com/github/mrkn/rspec-runtime_logger) TODO: Write a gem description ## Inst...
<|file_sep|>original/README.md # Rspec::RuntimeLogger [![Code Climate](https://codeclimate.com/github/mrkn/rspec-runtime_logger.png)](https://codeclimate.com/github/mrkn/rspec-runtime_logger) TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'rspec-runtime_logger' A...
631a7ecb854ad83b42521f51df4cf95242f52d29
README.md
README.md
Markdown
<|file_sep|>original/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.3.0 tox==2.7.0 coverage==4.4.1 Sphinx==1.4.8 cryptography==1.7 PyYAML==3.11 <|file_sep|>current/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.3.0 tox==2.7.0 cover...
pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.3.0 tox==2.7.0 coverage==4.4.1 Sphinx==1.6.2 cryptography==1.7 PyYAML==3.11
<|file_sep|>original/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.3.0 tox==2.7.0 coverage==4.4.1 Sphinx==1.4.8 cryptography==1.7 PyYAML==3.11 <|file_sep|>current/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.3.0 tox==2.7.0 cover...
25176f9df4ebd514bf67fdc848ae33fd03afbed2
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>resources/views/emails/weekly_report.blade.php.diff original: <li>Spent CURRENCY {{ number_format($totalSpent / 100, 2) }}</li> updated: <li>Spent {!! $space->currency->symbol !!} {{ number_format($totalSpent / 100, 2) }}</li> <|file_sep|>original/resources/views/emails/weekly_report.blade.p...
@extends('emails.template') @section('content') Here's your weekly report for {{ $space->name }}. This week (#{{ $week }}) you've <ul> <li>Spent {!! $space->currency->symbol !!} {{ number_format($totalSpent / 100, 2) }}</li> @if (count($largestSpendingWithTag)) <li>Most of whic...
<|file_sep|>resources/views/emails/weekly_report.blade.php.diff original: <li>Spent CURRENCY {{ number_format($totalSpent / 100, 2) }}</li> updated: <li>Spent {!! $space->currency->symbol !!} {{ number_format($totalSpent / 100, 2) }}</li> <|file_sep|>original/resources/views/emails/weekly_report.blade.p...
267a4820fcdfde72a645f189bb7c938a7fbc36b9
resources/views/emails/weekly_report.blade.php
resources/views/emails/weekly_report.blade.php
PHP
<|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt // This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots...
// This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots // until the changes can be landed upstream. BUG32308 LINUX : fast/...
<|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt // This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots...
6a0ed85b1dcf76c8c8bff9c42a67f8deb6c1ef4b
webkit/tools/layout_tests/test_expectations.txt
webkit/tools/layout_tests/test_expectations.txt
Text
<|file_sep|>original/packages/accounts-password/package.js Package.describe({ summary: "Password support for accounts", version: "1.1.8-rc.0" }); Package.onUse(function(api) { api.use('npm-bcrypt@=0.7.8_2'); api.use([ 'accounts-base', 'srp', 'sha', 'ejson', 'ddp' ], ['client', 'server'])...
Package.describe({ summary: "Password support for accounts", version: "1.1.8-rc.0" }); Package.onUse(function(api) { api.use('npm-bcrypt@0.8.5'); api.use([ 'accounts-base', 'srp', 'sha', 'ejson', 'ddp' ], ['client', 'server']); // Export Accounts (etc) to packages using this one. ap...
<|file_sep|>original/packages/accounts-password/package.js Package.describe({ summary: "Password support for accounts", version: "1.1.8-rc.0" }); Package.onUse(function(api) { api.use('npm-bcrypt@=0.7.8_2'); api.use([ 'accounts-base', 'srp', 'sha', 'ejson', 'ddp' ], ['client', 'server'])...
201e0f11f6f573f809006ee6eb0e641f156e6f87
packages/accounts-password/package.js
packages/accounts-password/package.js
JavaScript
<|file_sep|>ui/expandablegroup.h.diff original: updated: #include <QtWidgets/QLabel> <|file_sep|>ui/expandablegroup.h.diff original: updated: QLabel* m_title; <|file_sep|>ui/expandablegroup.h.diff original: explicit ExpandableGroup( QLayout* contentLayout, const QString& title = "", QWidget* parent = nullptr, ...
class BINARYNINJAUIAPI ExpandableGroup : public QWidget { Q_OBJECT private: QToolButton* m_button; QLabel* m_title; QParallelAnimationGroup* m_animation; QScrollArea* m_content; int m_duration = 100; private Q_SLOTS: void toggled(bool expanded); public: explicit ExpandableGroup(QLayout* contentLayout,...
<|file_sep|>ui/expandablegroup.h.diff original: updated: #include <QtWidgets/QLabel> <|file_sep|>ui/expandablegroup.h.diff original: updated: QLabel* m_title; <|file_sep|>ui/expandablegroup.h.diff original: explicit ExpandableGroup( QLayout* contentLayout, const QString& title = "", QWidget* parent = nullptr, ...
a5eb8bfdc1affa6d2330484800808c4d34f23103
ui/expandablegroup.h
ui/expandablegroup.h
C
<|file_sep|>project.clj.diff original: updated: :plugins [[lein-midje "3.0.0"]] <|file_sep|>original/project.clj (defproject basex "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.ec...
(defproject basex "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :java-source-paths ["src/main/java"] :source-paths ["src/main/clojure"] :dependencies [[org.clo...
<|file_sep|>project.clj.diff original: updated: :plugins [[lein-midje "3.0.0"]] <|file_sep|>original/project.clj (defproject basex "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.ec...
a2a39433f12be89b0a4038d1a25e22b758b4750f
project.clj
project.clj
Clojure
<|file_sep|>Src/lib/utils/swap.c.diff original: updated: #include <stdlib.h> <|file_sep|>Src/lib/utils/swap.c.diff original: char buffer[size]; updated: char* buffer = (char*) malloc(size*sizeof(char)); <|file_sep|>original/Src/lib/utils/swap.c #include "swap.h" #include <string.h> /* Swap generic function */ voi...
#include "swap.h" #include <stdlib.h> #include <string.h> /* Swap generic function */ void swap(void *vp1, void *vp2, int size) { char* buffer = (char*) malloc(size*sizeof(char)); memcpy(buffer, vp1, size); memcpy(vp1,vp2,size); memcpy(vp2,buffer,size); free(buffer); }
<|file_sep|>Src/lib/utils/swap.c.diff original: updated: #include <stdlib.h> <|file_sep|>Src/lib/utils/swap.c.diff original: char buffer[size]; updated: char* buffer = (char*) malloc(size*sizeof(char)); <|file_sep|>original/Src/lib/utils/swap.c #include "swap.h" #include <string.h> /* Swap generic function */ voi...
7662ebe6de73bbada1f216590f3e8b15b496a46b
Src/lib/utils/swap.c
Src/lib/utils/swap.c
C
<|file_sep|>original/.travis.yml - 2.7 - 3.2 - 3.3 - pypy before_install: - sudo apt-get install subversion bzr mercurial - echo -e "[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt" >> ~/.hgrc - git config --global user.email "python-virtualenv@googlegroups.com" - git config --global user.na...
python: - 2.6 - 2.7 - 3.2 - 3.3 - pypy before_install: - sudo apt-get install subversion bzr mercurial - echo -e "[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt" >> ~/.hgrc - git config --global user.email "python-virtualenv@googlegroups.com" - git config --global user.name "Pip" install:...
<|file_sep|>original/.travis.yml - 2.7 - 3.2 - 3.3 - pypy before_install: - sudo apt-get install subversion bzr mercurial - echo -e "[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt" >> ~/.hgrc - git config --global user.email "python-virtualenv@googlegroups.com" - git config --global user.na...
55353004b461ee003096e91f0cc695338a91b96b
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/assets/stylesheets/application.css * It is generally better to create a new file per style scope. * *= require_tree . *= require_self */ body { font-family: 'Roboto', sans-serif; } .page-content { padding-top: 64px; } .content-grid { max-width: 960px; } .card-wide.mdl-card { mi...
* It is generally better to create a new file per style scope. * *= require_tree . *= require_self */ body { font-family: 'Roboto', sans-serif; } .mdl-layout__header-row { padding: 0 40px 0 40px; } .page-content { padding-top: 64px; } .content-grid { max-width: 960px; }
<|file_sep|>original/app/assets/stylesheets/application.css * It is generally better to create a new file per style scope. * *= require_tree . *= require_self */ body { font-family: 'Roboto', sans-serif; } .page-content { padding-top: 64px; } .content-grid { max-width: 960px; } .card-wide.mdl-card { mi...
2bebb897bb812503bfdac0e390bcae9c00c3ade3
app/assets/stylesheets/application.css
app/assets/stylesheets/application.css
CSS
<|file_sep|>original/landlab/grid/tests/test_diagonals.py <|file_sep|>current/landlab/grid/tests/test_diagonals.py <|file_sep|>updated/landlab/grid/tests/test_diagonals.py
#! /usr/bin/env python import numpy as np from nose.tools import assert_is, assert_is_instance from numpy.testing import assert_array_equal from landlab.grid.diagonals import create_nodes_at_diagonal def test_nodes_at_diagonal(): """Test tail and head nodes of diagonals.""" diagonals = create_nodes_at_diago...
<|file_sep|>original/landlab/grid/tests/test_diagonals.py <|file_sep|>current/landlab/grid/tests/test_diagonals.py <|file_sep|>updated/landlab/grid/tests/test_diagonals.py #! /usr/bin/env python import numpy as np from nose.tools import assert_is, assert_is_instance from numpy.testing import assert_array_equal from...
2986ca3ebd7562d9cb84f33598e17b3b9627f3a2
landlab/grid/tests/test_diagonals.py
landlab/grid/tests/test_diagonals.py
Python
<|file_sep|>original/scripts/popvsdistinct.py <|file_sep|>current/scripts/popvsdistinct.py <|file_sep|>updated/scripts/popvsdistinct.py
""" Plot and calculate county population size to number of distinct hashtags. """ import matplotlib.pyplot as plt import seaborn import pandas import twitterproj import scipy.stats import numpy as np def populations(): # Grab demographic info data = {} df = pandas.read_csv('../census/county/PEP_2013_PEPAN...
<|file_sep|>original/scripts/popvsdistinct.py <|file_sep|>current/scripts/popvsdistinct.py <|file_sep|>updated/scripts/popvsdistinct.py """ Plot and calculate county population size to number of distinct hashtags. """ import matplotlib.pyplot as plt import seaborn import pandas import twitterproj import scipy.stats ...
3e3e5bb92b1d9e0e1981a6deba41152826c3fce0
scripts/popvsdistinct.py
scripts/popvsdistinct.py
Python
<|file_sep|>original/docs/CompilerDirectives.md <|file_sep|>current/docs/CompilerDirectives.md <|file_sep|>updated/docs/CompilerDirectives.md
# Compiler Directives The Opal compiler supports some special directives that can optimize or enhance the output of compiled ruby code to suit the ruby environment. ## Require Directive All calls to `require` are captured so that the compiler and build tools can determine which dependencies a file has. In the case o...
<|file_sep|>original/docs/CompilerDirectives.md <|file_sep|>current/docs/CompilerDirectives.md <|file_sep|>updated/docs/CompilerDirectives.md # Compiler Directives The Opal compiler supports some special directives that can optimize or enhance the output of compiled ruby code to suit the ruby environment. ## Requir...
fe6e1bde07b2fc04f8a5f4f6f1a59fbff24dda4f
docs/CompilerDirectives.md
docs/CompilerDirectives.md
Markdown
<|file_sep|>original/print_results.py <|file_sep|>current/print_results.py <|file_sep|>updated/print_results.py
from __future__ import division import argparse import h5py def main(): parser = argparse.ArgumentParser() parser.add_argument('results_hdf5_fname', type=str) parser.add_argument('dset_keys', nargs='*', type=str, default=[]) args = parser.parse_args() f = h5py.File(args.results_hdf5_fname, 'r') ...
<|file_sep|>original/print_results.py <|file_sep|>current/print_results.py <|file_sep|>updated/print_results.py from __future__ import division import argparse import h5py def main(): parser = argparse.ArgumentParser() parser.add_argument('results_hdf5_fname', type=str) parser.add_argument('dset_keys', ...
a993765b8ebb02baf64c3fdd13406734f8ae9136
print_results.py
print_results.py
Python
<|file_sep|>original/_includes/comment.html {% if site.disqus_shortname %} <div id="disqus_thread"></div> <script> var disqus_config = function () { this.page.url = {{ page.id | prepend: site.baseurl | prepend: site.url }}; this.page.identifier = {{ page.id }}; }; (function() { var d = document, s...
{% if site.disqus_shortname %} <div id="disqus_thread"></div> <script> var disqus_config = function () { this.page.url = "{{ page.id | prepend: site.baseurl | prepend: site.url }}"; this.page.identifier = "{{ page.id }}"; }; (function() { var d = document, s = d.createElement('script'); s.src ...
<|file_sep|>original/_includes/comment.html {% if site.disqus_shortname %} <div id="disqus_thread"></div> <script> var disqus_config = function () { this.page.url = {{ page.id | prepend: site.baseurl | prepend: site.url }}; this.page.identifier = {{ page.id }}; }; (function() { var d = document, s...
bada41ee4ffd1132748d9dbae2f21b3c916f78ab
_includes/comment.html
_includes/comment.html
HTML