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|>packages/markdown/src/index.tsx.diff original: ...props.renderers, updated: <|file_sep|>original/packages/markdown/src/index.tsx const code = (props: { language: string; value: string }): React.ReactNode => ( <Source language={props.language}>{props.value}</Source> ); const MarkdownRender = (props...
<Source language={props.language}>{props.value}</Source> ); const MarkdownRender = (props: ReactMarkdown.ReactMarkdownProps) => { const newProps = { // https://github.com/rexxars/react-markdown#options ...props, escapeHtml: false, plugins: [RemarkMathPlugin], renderers: { math, inli...
<|file_sep|>packages/markdown/src/index.tsx.diff original: ...props.renderers, updated: <|file_sep|>original/packages/markdown/src/index.tsx const code = (props: { language: string; value: string }): React.ReactNode => ( <Source language={props.language}>{props.value}</Source> ); const MarkdownRender = (props...
51a837247c58ed460408f40fd385018c14fcd50a
packages/markdown/src/index.tsx
packages/markdown/src/index.tsx
TypeScript
<|file_sep|>src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt.diff original: updated: import com.fasterxml.jackson.annotation.JsonProperty <|file_sep|>src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt.diff original: import org.hibernate.validator.constraints.NotEmpty import com.fast...
package com.doomspork.helloworld import com.fasterxml.jackson.annotation.JsonProperty import io.dropwizard.Configuration public class HelloWorldConfiguration() : Configuration() { @JsonProperty("template") public var template: String="" @JsonProperty("defaultName") public var defaultName: String="Str...
<|file_sep|>src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt.diff original: updated: import com.fasterxml.jackson.annotation.JsonProperty <|file_sep|>src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt.diff original: import org.hibernate.validator.constraints.NotEmpty import com.fast...
097fc4a9046eb3d39cf7d1ddb839ff030956f684
src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt
src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt
Kotlin
<|file_sep|>original/.travis.yml language: node_js node_js: - 'stable' - '0.12' - '0.10' <|file_sep|>current/.travis.yml language: node_js node_js: - 'stable' - '0.12' - '0.10' <|file_sep|>updated/.travis.yml
language: node_js node_js: - '5' - '4' - '0.12' - '0.10'
<|file_sep|>original/.travis.yml language: node_js node_js: - 'stable' - '0.12' - '0.10' <|file_sep|>current/.travis.yml language: node_js node_js: - 'stable' - '0.12' - '0.10' <|file_sep|>updated/.travis.yml language: node_js node_js: - '5' - '4' - '0.12' - '0.10'
13f22f704a5b7ea3c5536eb684ff47a2fc1c3f3f
.travis.yml
.travis.yml
YAML
<|file_sep|>test/active/clojure/test_runner.cljs.diff original: updated: [active.clojure.record-spec-test] <|file_sep|>original/test/active/clojure/test_runner.cljs (ns active.clojure.test-runner (:require [doo.runner :refer-macros [doo-tests]] [active.clojure.condition-test] [act...
(ns active.clojure.test-runner (:require [doo.runner :refer-macros [doo-tests]] [active.clojure.condition-test] [active.clojure.debug-test] [active.clojure.lens-test] [active.clojure.monad-test] [active.clojure.record-test] [active.clojure.record...
<|file_sep|>test/active/clojure/test_runner.cljs.diff original: updated: [active.clojure.record-spec-test] <|file_sep|>original/test/active/clojure/test_runner.cljs (ns active.clojure.test-runner (:require [doo.runner :refer-macros [doo-tests]] [active.clojure.condition-test] [act...
e6d8530d53d7a9dba8b66ce41d7d3dd4498913d5
test/active/clojure/test_runner.cljs
test/active/clojure/test_runner.cljs
Clojure
<|file_sep|>original/etc/docker/deploy.sh #!/usr/bin/env bash set -xe if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then if ([ "$TRAVIS_BRANCH" == "master" ]) ; then composer install -o -q -n docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} -e ${DOCKER_EMAIL} LATEST="paymaxi/webhooks:latest" docker ...
#!/usr/bin/env bash set -xe if ( ["$TRAVIS_PULL_REQUEST" == "false"] && ["$TRAVIS_PHP_VERSION" == "7.0"] ); then if ([ "$TRAVIS_BRANCH" == "master" ]) ; then composer install -o -q -n docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} -e ${DOCKER_EMAIL} LATEST="paymaxi/webhooks:latest" docker buil...
<|file_sep|>original/etc/docker/deploy.sh #!/usr/bin/env bash set -xe if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then if ([ "$TRAVIS_BRANCH" == "master" ]) ; then composer install -o -q -n docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} -e ${DOCKER_EMAIL} LATEST="paymaxi/webhooks:latest" docker ...
130a5a59c066c591915892944f8a226b615bc511
etc/docker/deploy.sh
etc/docker/deploy.sh
Shell
<|file_sep|>original/.gitlab-ci.yml Flake8: script: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh - . ./prepare-and-run-flake8.sh "$CI_PROJECT_NAME examples" tags: - python3 except: - tags Documentation: script: - EXTRA_INSTALL="numpy" - curl -L -O...
Flake8: script: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh - . ./prepare-and-run-flake8.sh "$CI_PROJECT_NAME" examples tags: - python3 except: - tags Documentation: script: - EXTRA_INSTALL="numpy" - curl -L -O -k https://gitlab.tiker.net/inducer...
<|file_sep|>original/.gitlab-ci.yml Flake8: script: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh - . ./prepare-and-run-flake8.sh "$CI_PROJECT_NAME examples" tags: - python3 except: - tags Documentation: script: - EXTRA_INSTALL="numpy" - curl -L -O...
0e559898a0b873098b8b934263292eef84e8dac2
.gitlab-ci.yml
.gitlab-ci.yml
YAML
<|file_sep|>original/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==2.6.0 tox==2.3.1 coverage==4.1 Sphinx==1.4.8 cryptography==1.7 PyYAML==3.11 pytest==2.9.2 pytest-mock==1.6.2 pytest-runner==2.11.1 <|file_sep|>current/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0...
pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==3.4.1 tox==2.3.1 coverage==4.1 Sphinx==1.4.8 cryptography==1.7 PyYAML==3.11 pytest==2.9.2 pytest-mock==1.6.2 pytest-runner==2.11.1
<|file_sep|>original/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 flake8==2.6.0 tox==2.3.1 coverage==4.1 Sphinx==1.4.8 cryptography==1.7 PyYAML==3.11 pytest==2.9.2 pytest-mock==1.6.2 pytest-runner==2.11.1 <|file_sep|>current/requirements_dev.txt pip==9.0.1 bumpversion==0.5.3 wheel==0...
e4b551c6a8ebba6f38f069da2943f6f47dc3728d
requirements_dev.txt
requirements_dev.txt
Text
<|file_sep|>original/package.json "contributors": [ { "name": "Jake Verbaten" } ], "bugs": { "url": "https://github.com/Raynos/read-write-stream/issues", "email": "raynos2@gmail.com" }, "dependencies": { "readable-stream": "git://github.com/isaacs/readable-stream.git", "read-stre...
"contributors": [ { "name": "Jake Verbaten" } ], "bugs": { "url": "https://github.com/Raynos/read-write-stream/issues", "email": "raynos2@gmail.com" }, "dependencies": { "readable-stream": "https://github.com/isaacs/readable-stream/archive/master.tar.gz", "read-stream": "~0.5.1",...
<|file_sep|>original/package.json "contributors": [ { "name": "Jake Verbaten" } ], "bugs": { "url": "https://github.com/Raynos/read-write-stream/issues", "email": "raynos2@gmail.com" }, "dependencies": { "readable-stream": "git://github.com/isaacs/readable-stream.git", "read-stre...
1c52a3831b83cb399324f4f2dfe11df325b80e81
package.json
package.json
JSON
<|file_sep|>original/MenuBundle.php <?php namespace Bundle\MenuBundle; use Bundle\MenuBundle\DependencyInjection\Compiler\MenuPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle; class MenuBundle extends BaseBundle { public function regis...
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle; class MenuBundle extends BaseBundle { public function registerExtensions(ContainerBuilder $container) { parent::registerExtensions($container); $container->addCompilerPass(n...
<|file_sep|>original/MenuBundle.php <?php namespace Bundle\MenuBundle; use Bundle\MenuBundle\DependencyInjection\Compiler\MenuPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle; class MenuBundle extends BaseBundle { public function regis...
de9ea11c538e3a51bbcce92435208bc31a7c8407
MenuBundle.php
MenuBundle.php
PHP
<|file_sep|>original/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb <|file_sep|>current/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb <|file_sep|>updated/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb
describe ApplicationHelper::Button::GenericFeatureButtonWithDisable do [:start].each do |feature| describe '#skip?' do context "when vm supports feature #{feature}" do before do @record = FactoryGirl.create(:vm_vmware) allow(@record).to receive(:is_available?).with(feature).and_r...
<|file_sep|>original/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb <|file_sep|>current/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb <|file_sep|>updated/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb descr...
fddde1b1e06baff1d19d2d1ffa65df8988b5258b
spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb
spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb
Ruby
<|file_sep|>original/packages/ta/tao-example.yaml <|file_sep|>current/packages/ta/tao-example.yaml <|file_sep|>updated/packages/ta/tao-example.yaml
homepage: https://github.com/jship/tao#readme changelog-type: markdown hash: eaf42f9faa84fba52be563eeeacda42d62d9476c27b0ce43761cae9a847cf29b test-bench-deps: {} maintainer: Jason Shipman synopsis: Example usage of the tao package. changelog: ! '# Change log ## 1.0.0 * Initial release ' basic-deps: base: ! '...
<|file_sep|>original/packages/ta/tao-example.yaml <|file_sep|>current/packages/ta/tao-example.yaml <|file_sep|>updated/packages/ta/tao-example.yaml homepage: https://github.com/jship/tao#readme changelog-type: markdown hash: eaf42f9faa84fba52be563eeeacda42d62d9476c27b0ce43761cae9a847cf29b test-bench-deps: {} maintain...
c587ac957cf83dd05953255e5593b47d00df2122
packages/ta/tao-example.yaml
packages/ta/tao-example.yaml
YAML
<|file_sep|>test/controllers/graphql_controller_test.rb.diff original: myProfile { __typename id name updated: convention: conventionByRequestHost { my_profile { __typename id name } <|file_sep|>original/test/controllers/graphql_controlle...
query { convention: conventionByRequestHost { my_profile { __typename id name } } } GRAPHQL post graphql_url, params: { 'query' => query } assert_response :success json = JSON.parse(response.body) refute json['errors'].present?, jso...
<|file_sep|>test/controllers/graphql_controller_test.rb.diff original: myProfile { __typename id name updated: convention: conventionByRequestHost { my_profile { __typename id name } <|file_sep|>original/test/controllers/graphql_controlle...
c604e4167dbfca0246fb73f8842f5eaf601e3da8
test/controllers/graphql_controller_test.rb
test/controllers/graphql_controller_test.rb
Ruby
<|file_sep|>original/package.json { "name": "ember-computed-indirect", "version": "0.3.1", "description": "A small addon to help declare dynamic (or indirect) computed properties.", "directories": { "doc": "doc", "test": "tests" }, "scripts": { "start": "ember server", "build": "ember build"...
{ "name": "ember-computed-indirect", "version": "1.0.0", "description": "A small addon to help declare dynamic (or indirect) computed properties.", "directories": { "doc": "doc", "test": "tests" }, "scripts": { "start": "ember server", "build": "ember build", "test": "ember test" }, ...
<|file_sep|>original/package.json { "name": "ember-computed-indirect", "version": "0.3.1", "description": "A small addon to help declare dynamic (or indirect) computed properties.", "directories": { "doc": "doc", "test": "tests" }, "scripts": { "start": "ember server", "build": "ember build"...
5a6f11bfa55a7913e9c7caef8b26215e44ed14af
package.json
package.json
JSON
<|file_sep|>original/.circleci/config.yml # Javascript Node CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-javascript/ for more details # version: 2 jobs: build: docker: # specify the version you desire here - image: circleci/node:8 # Specify service dependenci...
# Javascript Node CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-javascript/ for more details # version: 2 jobs: build: docker: # specify the version you desire here - image: circleci/node:8@sha256:257fdc7e2949a9576e1a96364e0428d461d0505167c70dcc3e6c3825ce8a6557 ...
<|file_sep|>original/.circleci/config.yml # Javascript Node CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-javascript/ for more details # version: 2 jobs: build: docker: # specify the version you desire here - image: circleci/node:8 # Specify service dependenci...
f1519257ed00290c8e821e0cc0bc039af559445a
.circleci/config.yml
.circleci/config.yml
YAML
<|file_sep|>original/shrc/_.paths.sh fi PATH="~/bin:$PATH" PATH="/usr/local/share/npm/bin:$PATH" PATH="/usr/local/bin:/usr/local/sbin:$PATH" PATH="/usr/local/mysql/bin:$PATH" PATH="/usr/local/git/bin:$PATH" export PATH MANPATH="/usr/local/man:$MANPATH" MANPATH="/usr/local/mysql/man:$MANPATH" MANPATH="/usr/local/git...
fi PATH="~/bin:$PATH" PATH="/usr/local/share/npm/bin:$PATH" PATH="/usr/local/bin:/usr/local/sbin:$PATH" PATH="/usr/local/mysql/bin:$PATH" PATH="/usr/local/git/bin:$PATH" export PATH MANPATH="/usr/local/man:$MANPATH" MANPATH="/usr/local/mysql/man:$MANPATH" MANPATH="/usr/local/git/man:$MANPATH" export MANPATH export...
<|file_sep|>original/shrc/_.paths.sh fi PATH="~/bin:$PATH" PATH="/usr/local/share/npm/bin:$PATH" PATH="/usr/local/bin:/usr/local/sbin:$PATH" PATH="/usr/local/mysql/bin:$PATH" PATH="/usr/local/git/bin:$PATH" export PATH MANPATH="/usr/local/man:$MANPATH" MANPATH="/usr/local/mysql/man:$MANPATH" MANPATH="/usr/local/git...
6065eaa5ebcff92e5f97774663533fe74f9e96e9
shrc/_.paths.sh
shrc/_.paths.sh
Shell
<|file_sep|>original/src/Concise/Services/TimeFormatter.php { if ($seconds >= $size) { $x = floor($seconds / $size); $r[] = $this->pluralize($x, $word); $seconds -= $x * $size; } } public function format($seconds) { if (0 == $seconds) { ...
{ if ($seconds >= $size) { $x = floor($seconds / $size); $r[] = $this->pluralize($x, $word); $seconds -= $x * $size; } } public function format($seconds) { if (0 == $seconds) { return '0 seconds'; } $r = array(); ...
<|file_sep|>original/src/Concise/Services/TimeFormatter.php { if ($seconds >= $size) { $x = floor($seconds / $size); $r[] = $this->pluralize($x, $word); $seconds -= $x * $size; } } public function format($seconds) { if (0 == $seconds) { ...
e8e65b14b42ad85624777fe86e6d97041ce6a53c
src/Concise/Services/TimeFormatter.php
src/Concise/Services/TimeFormatter.php
PHP
<|file_sep|>original/app/views/recurrings/_form.html.haml %p= form.collection_select :day, (1..31).collect, :to_s, :to_s %p= form.text_field :explicit_value, :class=>:money %p= form.text_field :vendor_name, :default=>'vendor' %p= form.text_field :description, :default=>'description' %p= form.text_field :tag_list,...
%p= form.collection_select :day, (1..31).collect, :to_i, :to_s %p= form.text_field :explicit_value, :class=>:money %p= form.text_field :vendor_name, :default=>'vendor' %p= form.text_field :description, :default=>'description' %p= form.text_field :tag_list, :default=>'tags'
<|file_sep|>original/app/views/recurrings/_form.html.haml %p= form.collection_select :day, (1..31).collect, :to_s, :to_s %p= form.text_field :explicit_value, :class=>:money %p= form.text_field :vendor_name, :default=>'vendor' %p= form.text_field :description, :default=>'description' %p= form.text_field :tag_list,...
7c3e38ed76d7cbc7e7764c6be1009c8a74f82f51
app/views/recurrings/_form.html.haml
app/views/recurrings/_form.html.haml
Haml
<|file_sep|>original/spec/ruby-progressbar/calculators/length_calculator_spec.rb require 'rspectacular' require 'ruby-progressbar/calculators/running_average' class ProgressBar module Calculators RSpec.describe Length do if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('1.9.3') it 'can p...
require 'rspectacular' require 'ruby-progressbar/calculators/running_average' class ProgressBar module Calculators RSpec.describe Length do if RUBY_PLATFORM != 'java' && Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('1.9.3') it 'can properly calculate the length even if IO.console ...
<|file_sep|>original/spec/ruby-progressbar/calculators/length_calculator_spec.rb require 'rspectacular' require 'ruby-progressbar/calculators/running_average' class ProgressBar module Calculators RSpec.describe Length do if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('1.9.3') it 'can p...
23aad9e3c81fa875b1ad2a22fd28872ec20ab232
spec/ruby-progressbar/calculators/length_calculator_spec.rb
spec/ruby-progressbar/calculators/length_calculator_spec.rb
Ruby
<|file_sep|>original/.github/workflows/gradle.yml pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest strategy: matrix: java: [ '11', '17' ] steps: - uses: actions/checkout@v3 - name: Set up Java uses: actions/setup-java@v3 with: java-v...
pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest strategy: matrix: java: [ '11', '17' ] max-parallel: 1 steps: - uses: actions/checkout@v3 - name: Set up Java uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} ...
<|file_sep|>original/.github/workflows/gradle.yml pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest strategy: matrix: java: [ '11', '17' ] steps: - uses: actions/checkout@v3 - name: Set up Java uses: actions/setup-java@v3 with: java-v...
7ec530eac4cc79d7ddd61242d0eb49ee9d881de6
.github/workflows/gradle.yml
.github/workflows/gradle.yml
YAML
<|file_sep|>original/recipes/sphinx-testing/meta.yaml <|file_sep|>current/recipes/sphinx-testing/meta.yaml <|file_sep|>updated/recipes/sphinx-testing/meta.yaml
{% set name = "sphinx-testing" %} {% set version = "1.0.1" %} package: name: "{{ name|lower }}" version: "{{ version }}" source: url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" sha256: "ef661775b5722d7b00f67fc229104317d35637a4fb4434bf2c005afdf1da4d09" build: ...
<|file_sep|>original/recipes/sphinx-testing/meta.yaml <|file_sep|>current/recipes/sphinx-testing/meta.yaml <|file_sep|>updated/recipes/sphinx-testing/meta.yaml {% set name = "sphinx-testing" %} {% set version = "1.0.1" %} package: name: "{{ name|lower }}" version: "{{ version }}" source: url: "https://pypi.io...
9b74dc110b7e9f368cdaa7c21c6af1bfa3d147cc
recipes/sphinx-testing/meta.yaml
recipes/sphinx-testing/meta.yaml
YAML
<|file_sep|>original/config/webpack/configuration.js const { safeLoad } = require('js-yaml'); const { readFileSync } = require('fs'); const configPath = resolve('config', 'webpack'); const loadersDir = join(__dirname, 'loaders'); const paths = safeLoad(readFileSync(join(configPath, 'paths.yml'), 'utf8'))[env.NODE_ENV ...
const { safeLoad } = require('js-yaml'); const { readFileSync } = require('fs'); const configPath = resolve('config', 'webpack'); const loadersDir = join(__dirname, 'loaders'); const paths = safeLoad(readFileSync(join(configPath, 'paths.yml'), 'utf8'))[env.NODE_ENV || 'development']; const devServer = safeLoad(readFil...
<|file_sep|>original/config/webpack/configuration.js const { safeLoad } = require('js-yaml'); const { readFileSync } = require('fs'); const configPath = resolve('config', 'webpack'); const loadersDir = join(__dirname, 'loaders'); const paths = safeLoad(readFileSync(join(configPath, 'paths.yml'), 'utf8'))[env.NODE_ENV ...
7680e8bf8e5b51cea24b255bc3f127623b173e54
config/webpack/configuration.js
config/webpack/configuration.js
JavaScript
<|file_sep|>original/tools/infra/config/cq.cfg cq_status_url: "https://chromium-cq-status.appspot.com" git_repo_url: "https://dart.googlesource.com/sdk.git" gerrit { } verifiers { gerrit_cq_ability { committer_list: "project-dart-committers" dry_run_access_list: "project-dart-tryjob-access" } try_job { ...
committer_list: "project-dart-committers" dry_run_access_list: "project-dart-tryjob-access" } try_job { buckets { name: "luci.dart.try" builders { name: "analyzer-linux-release-strong-try"} builders { name: "vm-linux-release-x64-try"} builders { name: "vm-win-release-x64-try"} ...
<|file_sep|>original/tools/infra/config/cq.cfg cq_status_url: "https://chromium-cq-status.appspot.com" git_repo_url: "https://dart.googlesource.com/sdk.git" gerrit { } verifiers { gerrit_cq_ability { committer_list: "project-dart-committers" dry_run_access_list: "project-dart-tryjob-access" } try_job { ...
3ac0950efaf519434a87248e20215f7b8138d259
tools/infra/config/cq.cfg
tools/infra/config/cq.cfg
INI
<|file_sep|>original/README.md # Base64 visualizer See how a UTF-8 string is converted to Base64. ## Development `npm i` modules, `npm i -g webpack-dev-server` the CLI for the development server, then `webpack-dev-server` to start the development server. `npm test` to run tests. <|file_sep|>current/README.md # Base...
# Base64 visualizer ![Status on Travis CI](https://travis-ci.org/kevinlitchfield/base64-visualizer.svg?branch=master "Status on Travis CI") See how a UTF-8 string is converted to Base64. ## Development `npm i` modules, `npm i -g webpack-dev-server` the CLI for the development server, then `webpack-dev-server` to st...
<|file_sep|>original/README.md # Base64 visualizer See how a UTF-8 string is converted to Base64. ## Development `npm i` modules, `npm i -g webpack-dev-server` the CLI for the development server, then `webpack-dev-server` to start the development server. `npm test` to run tests. <|file_sep|>current/README.md # Base...
982deb52056c157207cadffe45567d8db76948b1
README.md
README.md
Markdown
<|file_sep|>original/azure-pipelines.yml <|file_sep|>current/azure-pipelines.yml <|file_sep|>updated/azure-pipelines.yml
stages: - stage: pull jobs: - job: docker_pull pool: vmImage: 'ubuntu-16.04' steps: - script: echo docker pull - stage: build jobs: - job: docker_build pool: vmImage: 'ubuntu-16.04' steps: - script: echo docker build - stage: test jobs: - job: docker_test_chunk_1 ...
<|file_sep|>original/azure-pipelines.yml <|file_sep|>current/azure-pipelines.yml <|file_sep|>updated/azure-pipelines.yml stages: - stage: pull jobs: - job: docker_pull pool: vmImage: 'ubuntu-16.04' steps: - script: echo docker pull - stage: build jobs: - job: docker_build pool: v...
41e078f842a49a1caaef09f83b0fe84b906a329d
azure-pipelines.yml
azure-pipelines.yml
YAML
<|file_sep|>original/plugins/orders/lib/orders_plugin/price_helper.rb module OrdersPlugin::PriceHelper protected def price_with_unit_span price, unit, detail=nil return nil if price.blank? detail ||= '' detail = " (#{detail})" unless detail.blank? I18n.t('orders_plugin.lib.price_helper.price_unit'...
module OrdersPlugin::PriceHelper protected def price_with_unit_span price, unit, detail=nil return nil if price.blank? detail ||= '' detail = " (#{detail})" unless detail.blank? I18n.t('orders_plugin.lib.price_helper.price_unit') % { :price => price_span(price), :unit => content_tag('s...
<|file_sep|>original/plugins/orders/lib/orders_plugin/price_helper.rb module OrdersPlugin::PriceHelper protected def price_with_unit_span price, unit, detail=nil return nil if price.blank? detail ||= '' detail = " (#{detail})" unless detail.blank? I18n.t('orders_plugin.lib.price_helper.price_unit'...
82121d15c6cd0c8ec3e41a88a786b23e04753c1d
plugins/orders/lib/orders_plugin/price_helper.rb
plugins/orders/lib/orders_plugin/price_helper.rb
Ruby
<|file_sep|>original/dev/deploy.php <?php // Use in the "Post-Receive URLs" section of your GitHub repo. if ( $_POST['payload'] && false ) { file_put_contents('log/payload.txt', print_r($_POST['payload'], FILE_APPEND); $exec_string = 'cd /var/customers/webs/jmm/weltengeschichte.de.repo/ && git ...
<?php // Use in the "Post-Receive URLs" section of your GitHub repo. if ( $_POST['payload'] && false ) { file_put_contents('log/payload.txt', print_r($_POST['payload']), FILE_APPEND); $exec_string = 'cd /var/customers/webs/jmm/weltengeschichte.de.repo/ && git reset --hard HEAD && git pull'; ...
<|file_sep|>original/dev/deploy.php <?php // Use in the "Post-Receive URLs" section of your GitHub repo. if ( $_POST['payload'] && false ) { file_put_contents('log/payload.txt', print_r($_POST['payload'], FILE_APPEND); $exec_string = 'cd /var/customers/webs/jmm/weltengeschichte.de.repo/ && git ...
840a595eeef1ae55b8213ebe195eab7011d6c69b
dev/deploy.php
dev/deploy.php
PHP
<|file_sep|>original/app/app.routes.js angular.module('chemPhyWebApp') .config(['$routeProvider', function($routeProvider) { $routeProvider. when('/home', { templateUrl: require('./components/home/home.html') }). when('/about', { templateUrl: require('./components...
angular.module('chemPhyWebApp') .config(['$routeProvider', function($routeProvider) { $routeProvider. when('/home', { templateUrl: require('./components/home/home.jade') }). when('/about', { templateUrl: require('./components/about/about.html') }). ...
<|file_sep|>original/app/app.routes.js angular.module('chemPhyWebApp') .config(['$routeProvider', function($routeProvider) { $routeProvider. when('/home', { templateUrl: require('./components/home/home.html') }). when('/about', { templateUrl: require('./components...
d573e4ef6af00ea11425313710103c8f494c36d4
app/app.routes.js
app/app.routes.js
JavaScript
<|file_sep|>original/appveyor.yml configuration: Release os: Visual Studio 2015 CTP install: - set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH% before_build: - nuget restore Nine.Storage.sln build: parallel: true publish_nuget: true publish_nuget_symbols: true <|file_sep|>current/appveyor.yml confi...
install: - set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH% before_build: - nuget restore Nine.Storage.sln build: parallel: true publish_nuget: true version: 1.0.{build} assembly_info: patch: true file: '**\AssemblyInfo.*' assembly_version: '{version}' assembly_file_version: '{version}' as...
<|file_sep|>original/appveyor.yml configuration: Release os: Visual Studio 2015 CTP install: - set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH% before_build: - nuget restore Nine.Storage.sln build: parallel: true publish_nuget: true publish_nuget_symbols: true <|file_sep|>current/appveyor.yml confi...
49a40f262217d5f0c948bdc2d7ac614c47e89bb2
appveyor.yml
appveyor.yml
YAML
<|file_sep|>original/spec/spec_helper.rb $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rspec' require 'example' RSpec.configure do |config| config.before(:all) do require 'stringio' @log = StringIO.new @logger = Logger.new @log Example.class_...
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rspec' require 'example' RSpec.configure do |config| config.before(:each) do require 'stringio' @log = StringIO.new @logger = Logger.new @log Example.class_variable_set :@@logger, @logger end ...
<|file_sep|>original/spec/spec_helper.rb $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'rspec' require 'example' RSpec.configure do |config| config.before(:all) do require 'stringio' @log = StringIO.new @logger = Logger.new @log Example.class_...
e6ce90641a2bc60931709e3a91910ba802e2bdcc
spec/spec_helper.rb
spec/spec_helper.rb
Ruby
<|file_sep|>find-core/src/main/public/static/js/find/app/pages.js.diff original: 'find/app/page/find-search', updated: <|file_sep|>original/find-core/src/main/public/static/js/find/app/pages.js /* * Copyright 2014-2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); yo...
/* * Copyright 2014-2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ define([ 'find/app/find-pages', 'find/app/page/find-settings-page', 'i18n!find/nls/bundle' ], function(FindPages, Setti...
<|file_sep|>find-core/src/main/public/static/js/find/app/pages.js.diff original: 'find/app/page/find-search', updated: <|file_sep|>original/find-core/src/main/public/static/js/find/app/pages.js /* * Copyright 2014-2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); yo...
1dcacbc8a960279db61610185b7155719f5046d5
find-core/src/main/public/static/js/find/app/pages.js
find-core/src/main/public/static/js/find/app/pages.js
JavaScript
<|file_sep|>original/source/drafts/skel.md.erb <|file_sep|>current/source/drafts/skel.md.erb <|file_sep|>updated/source/drafts/skel.md.erb
--- title: auth: read: 2015- tags: books layout: layout_book ads: - --- --- title: auth: Wojciech Koszek tags: article layout: layout_book --- <% graphviz do %> digraph G { a1 -> b3; }
<|file_sep|>original/source/drafts/skel.md.erb <|file_sep|>current/source/drafts/skel.md.erb <|file_sep|>updated/source/drafts/skel.md.erb --- title: auth: read: 2015- tags: books layout: layout_book ads: - --- --- title: auth: Wojciech Koszek tags: article layout: layout_book --- <% graphviz do %> digraph G { ...
8bb2bcf0607ba5938bcf37e1124a169a7d3836cb
source/drafts/skel.md.erb
source/drafts/skel.md.erb
HTML+ERB
<|file_sep|>original/aliases/py.sh alias pmr='python3 manage.py runserver' alias pmmm='python3 manage.py makemigrations' alias pmm='python3 manage.py migrate' alias pm='python3 manage.py' alias pmr2='python manage.py runserver' alias pmmm2='python manage.py makemigrations' alias pmm2='python manage.py migrate' alias p...
alias pmr='python3 manage.py runserver' alias pmmm='python3 manage.py makemigrations' alias pmm='python3 manage.py migrate' alias pm='python3 manage.py' alias pmr2='python manage.py runserver' alias pmmm2='python manage.py makemigrations' alias pmm2='python manage.py migrate' alias pm2='python manage.py' alias pf='su...
<|file_sep|>original/aliases/py.sh alias pmr='python3 manage.py runserver' alias pmmm='python3 manage.py makemigrations' alias pmm='python3 manage.py migrate' alias pm='python3 manage.py' alias pmr2='python manage.py runserver' alias pmmm2='python manage.py makemigrations' alias pmm2='python manage.py migrate' alias p...
5c68cb77122dd0a64ee01dfa5d676f583d5dacba
aliases/py.sh
aliases/py.sh
Shell
<|file_sep|>youtube-update-metadata.sh.diff original: updated: else name="$1" <|file_sep|>youtube-update-metadata.sh.diff original: mkdir -p SYNC/$1/META updated: domissing=0 if [ x"$2" = "x--missing-only" ]; then echo "Only fetching missing metadata" domissing=1 fi <|file_sep|>youtube-update-metadata.sh.diff or...
-a -f $titlefile -a -f $descfile ]; then echo "Skipping known meta for $ID" num_current=$((num_current+1)) continue fi echo -n "Updating metadata ($num_current/$num_total): $ID..."; TITLE=$(youtube-dl --get-filename -o '%(title)s' -- "$ID"); if [ -z "$TITLE" ]; then echo " [Error] Video...
<|file_sep|>youtube-update-metadata.sh.diff original: updated: else name="$1" <|file_sep|>youtube-update-metadata.sh.diff original: mkdir -p SYNC/$1/META updated: domissing=0 if [ x"$2" = "x--missing-only" ]; then echo "Only fetching missing metadata" domissing=1 fi <|file_sep|>youtube-update-metadata.sh.diff or...
4aedbfd14e7a9fadaae56ae31e25882ac0165916
youtube-update-metadata.sh
youtube-update-metadata.sh
Shell
<|file_sep|>original/.travis.yml env: global: - CXX=g++-4.8 matrix: - NODE_GYP_VERSION=3 - NODE_GYP_VERSION=2 - NODE_GYP_VERSION=1 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 install: - "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm" - "npm in...
- "4" env: global: - CXX=g++-4.8 matrix: - NODE_GYP_VERSION=3 - NODE_GYP_VERSION=2 - NODE_GYP_VERSION=1 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 install: - "npm install -g grunt-cli" - "npm install" - "npm install node-gyp@$NODE_GYP_VERSION" ...
<|file_sep|>original/.travis.yml env: global: - CXX=g++-4.8 matrix: - NODE_GYP_VERSION=3 - NODE_GYP_VERSION=2 - NODE_GYP_VERSION=1 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 install: - "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm" - "npm in...
f8f28d45fd3fde7c6e7e6daa1c4bafa5c539f135
.travis.yml
.travis.yml
YAML
<|file_sep|>original/_includes/design/layout.html {% include design/ai.html %} {% include design/tools.html %} {% include design/patterns.html %} <|file_sep|>current/_includes/design/layout.html {% include design/ai.html %} {% include design/tools.html %} {% include design/patterns.html %} <|file_sep|>updated/_includes...
{% include design/ai.html %} {% include design/tools.html %} {% include design/patterns.html %} {% include design/architecture.html %} {% include design/implementation.html %}
<|file_sep|>original/_includes/design/layout.html {% include design/ai.html %} {% include design/tools.html %} {% include design/patterns.html %} <|file_sep|>current/_includes/design/layout.html {% include design/ai.html %} {% include design/tools.html %} {% include design/patterns.html %} <|file_sep|>updated/_includes...
5f4687d0e6a6a49276ff204446ca61f059866fe7
_includes/design/layout.html
_includes/design/layout.html
HTML
<|file_sep|>original/plugin_test/rally-scenarios/nova/boot_and_list_server_batch_x10.yaml flavor: name: "m1.nano" image: name: "TestVM-VMDK" zone: name: "vcenter" detailed: True min_count: 10 runner: type: "constant" times...
flavor: name: "m1.nano" image: name: "TestVM-VMDK" zone: name: "vcenter" detailed: True min_count: 10 runner: type: "constant" times: {{ compute }} concurrency: {{ concurrency }} context: users: ...
<|file_sep|>original/plugin_test/rally-scenarios/nova/boot_and_list_server_batch_x10.yaml flavor: name: "m1.nano" image: name: "TestVM-VMDK" zone: name: "vcenter" detailed: True min_count: 10 runner: type: "constant" times...
e85c530aac15493b8e064ce5dbc63463fd1c066a
plugin_test/rally-scenarios/nova/boot_and_list_server_batch_x10.yaml
plugin_test/rally-scenarios/nova/boot_and_list_server_batch_x10.yaml
YAML
<|file_sep|>original/views/index.erb <% questions.each do |q| %> <h3><%= q.text %><% if q.closed? %>(Voting is closed)<% end %></h3> <h4>Voting Progress: <%= q.taken_votes %> / <%= q.possible_votes %> (<%= '%0.2f' % q.voted_percentage %>%)</h4> <table> <% q.vote_breakdown do |answer, count| %> <tr> ...
<% questions.each do |q| %> <h3><%= q.text %><% if q.closed? %>(Voting is closed)<% end %></h3> <h4>Voting Progress: <%= q.cast_votes %> / <%= q.possible_votes %> (<%= '%0.2f' % q.percentage_cast %>%)</h4> <table class='table'> <% q.vote_breakdown.each do |answer, count| %> <tr> <th><%= answer.t...
<|file_sep|>original/views/index.erb <% questions.each do |q| %> <h3><%= q.text %><% if q.closed? %>(Voting is closed)<% end %></h3> <h4>Voting Progress: <%= q.taken_votes %> / <%= q.possible_votes %> (<%= '%0.2f' % q.voted_percentage %>%)</h4> <table> <% q.vote_breakdown do |answer, count| %> <tr> ...
45d5df6d8d0b8b30f2bd71b3f93907e5d83d0111
views/index.erb
views/index.erb
HTML+ERB
<|file_sep|>original/bin/describe_db.pl <|file_sep|>current/bin/describe_db.pl <|file_sep|>updated/bin/describe_db.pl
# Copyright (c) 2012 Colin Wetherbee # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy modify, merge, publish, dist...
<|file_sep|>original/bin/describe_db.pl <|file_sep|>current/bin/describe_db.pl <|file_sep|>updated/bin/describe_db.pl # Copyright (c) 2012 Colin Wetherbee # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal ...
950e1bdbda497de47d40aafafb821f2d276643e9
bin/describe_db.pl
bin/describe_db.pl
Perl
<|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: <|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: <|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: from corehq.apps.userreports.reports.util ...
return self._data class VeryFakeReportView(ConfigurableReportView): # note: this is very coupled to what it tests below, but it beats bootstrapping a whole UCR thing def __init__(self, data): self._data = data @property def report_export(self): return VeryFakeReportExport(sel...
<|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: <|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: <|file_sep|>corehq/apps/userreports/tests/test_report_rendering.py.diff original: updated: from corehq.apps.userreports.reports.util ...
24da0f84e1a844b1f53e5afafc34cfcc915a9a67
corehq/apps/userreports/tests/test_report_rendering.py
corehq/apps/userreports/tests/test_report_rendering.py
Python
<|file_sep|>original/README.md # Tab completion for Go binary # ## Introduction ## This program provides tab completion information for the Go binary. Currently, this program only works with the *doc* tool in the *go* binary for version 1.5beta2. Furthermore, this only works for bash, but thin wrappers can be used t...
# Tab completion for Go binary # ## Introduction ## This program provides tab completion information for the Go binary. Currently, this program only works with the *doc* tool in the *go* binary for version 1.5. Furthermore, this only works for bash, but thin wrappers can be used to make it work with other shells. #...
<|file_sep|>original/README.md # Tab completion for Go binary # ## Introduction ## This program provides tab completion information for the Go binary. Currently, this program only works with the *doc* tool in the *go* binary for version 1.5beta2. Furthermore, this only works for bash, but thin wrappers can be used t...
cb5f1cf05f2f22b5e03a1c07263195086dac5452
README.md
README.md
Markdown
<|file_sep|>Manifold/Expression+Natural.swift.diff original: // Natural = λ tag : Boolean . if tag then Natural else Unit updated: // Natural = λ A : Type . λ f : A -> A . λ a : A . A <|file_sep|>Manifold/Expression+Natural.swift.diff original: // zero = (false, ()) : Natural updated: // zero = λ A : Type . λ f...
type: .Type(0), value: lambda(.Type) { A in Recur.lambda(.FunctionType(A, A), A, const(A)) }) // zero : Natural // zero = λ A : Type . λ f : A -> A . λ a : A . a let zero = Declaration("zero", type: "Natural", value: lambda(.Type) { A in Recur.lambda(.FunctionType(A, A), A) { f, s in s } }) // suc...
<|file_sep|>Manifold/Expression+Natural.swift.diff original: // Natural = λ tag : Boolean . if tag then Natural else Unit updated: // Natural = λ A : Type . λ f : A -> A . λ a : A . A <|file_sep|>Manifold/Expression+Natural.swift.diff original: // zero = (false, ()) : Natural updated: // zero = λ A : Type . λ f...
7d37e344801803734422e62988a7638b441efd9b
Manifold/Expression+Natural.swift
Manifold/Expression+Natural.swift
Swift
<|file_sep|>original/src/main/java/org/jboss/loom/migrators/_ext/ContainerOfStackableDefs.java @XmlElement public String warning; // Warning to add to the current action. @XmlElement(name = "action") List<MigratorDefinition.ActionDef> actionDefs; @XmlElement(name = "forEach") List<MigratorDe...
@XmlElement public String warning; // Warning to add to the current action. @XmlElement(name = "action") List<MigratorDefinition.ActionDef> actionDefs; @XmlElement(name = "forEach") List<MigratorDefinition.ForEachDef> forEachDefs; //@XmlLocation //@XmlTransient //public Locator ...
<|file_sep|>original/src/main/java/org/jboss/loom/migrators/_ext/ContainerOfStackableDefs.java @XmlElement public String warning; // Warning to add to the current action. @XmlElement(name = "action") List<MigratorDefinition.ActionDef> actionDefs; @XmlElement(name = "forEach") List<MigratorDe...
1a57ece0bcf172d8a1f98df6f9c0116714f58705
src/main/java/org/jboss/loom/migrators/_ext/ContainerOfStackableDefs.java
src/main/java/org/jboss/loom/migrators/_ext/ContainerOfStackableDefs.java
Java
<|file_sep|>original/Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs namespace Lbookshelf.ViewModels { public class SettingsFileSystemViewModel : ObservableObject { public SettingsFileSystemViewModel() { CleanCommand = new ActionCommand( () => { ...
namespace Lbookshelf.ViewModels { public class SettingsFileSystemViewModel : ObservableObject { public SettingsFileSystemViewModel() { CleanCommand = new ActionCommand( () => { var used = BookManager.Instance.Books.Select(b => Path....
<|file_sep|>original/Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs namespace Lbookshelf.ViewModels { public class SettingsFileSystemViewModel : ObservableObject { public SettingsFileSystemViewModel() { CleanCommand = new ActionCommand( () => { ...
019160398ae26aa3a48ffefb6ae03f8d2ed6bfb7
Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs
Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs
C#
<|file_sep|>js/app.js.diff original: ( function( $, d, undefined ) updated: ( function( mdash, $ ) <|file_sep|>js/app.js.diff original: d._ = window.console.debug.bind( window.console ); updated: $( document ).ready( function() { var manager = new mdash.Manager(), fontCtrl = new mdash.F...
helpCtrl.init(); var leftColumn = new mdash.Column( $( '#bookmarks > .left' ) ), rightColumn = new mdash.Column( $( '#bookmarks > .right' ) ); manager.getSections( 'left', function( sections ) { leftColumn.sec...
<|file_sep|>js/app.js.diff original: ( function( $, d, undefined ) updated: ( function( mdash, $ ) <|file_sep|>js/app.js.diff original: d._ = window.console.debug.bind( window.console ); updated: $( document ).ready( function() { var manager = new mdash.Manager(), fontCtrl = new mdash.F...
f493ebc207d2ec86a5e6ed1310d39c326f4e9ce9
js/app.js
js/app.js
JavaScript
<|file_sep|>original/tools/lgtunit/tester.lgt % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- initializa...
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- initialization(( set_logtalk_flag(report, warnings), s...
<|file_sep|>original/tools/lgtunit/tester.lgt % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- initializa...
899f758cd4ed5c709365358e2de2fef459a5a8d1
tools/lgtunit/tester.lgt
tools/lgtunit/tester.lgt
Logtalk
<|file_sep|>original/visualize.js <|file_sep|>current/visualize.js <|file_sep|>updated/visualize.js
// Convert schema.json files to dot (graphviz' markup language) // // Usage: // // `node visualize.js schema.json | dot -Tpng -oschema.png` var fs = require('fs') , _ = require('underscore') , Data = require('./data'); var schemaFile = process.ARGV[2] , schema = JSON.parse(fs.readFileSync(schemaFile, 'utf-8'))...
<|file_sep|>original/visualize.js <|file_sep|>current/visualize.js <|file_sep|>updated/visualize.js // Convert schema.json files to dot (graphviz' markup language) // // Usage: // // `node visualize.js schema.json | dot -Tpng -oschema.png` var fs = require('fs') , _ = require('underscore') , Data = require('./d...
65fbd745b299b016cb429ad75d805518721fe31f
visualize.js
visualize.js
JavaScript
<|file_sep|>original/README.rst Build requirements ================== :: $ apt install g++ xxd make nasm Gallery ======= .. image:: img/thinkpad_x220.jpg .. image:: img/qemu.png Similar projects ================ * https://github.com/jbush001/os * https://github.com/dthain/basekernel * https://github.com/domsp...
================== :: $ apt install g++ xxd make nasm Gallery ======= .. image:: img/thinkpad_x220.jpg .. image:: img/qemu.png Similar projects ================ * https://github.com/jbush001/os * https://github.com/dthain/basekernel * https://github.com/domspad/yehos * https://github.com/blastrock/flix - C++ ...
<|file_sep|>original/README.rst Build requirements ================== :: $ apt install g++ xxd make nasm Gallery ======= .. image:: img/thinkpad_x220.jpg .. image:: img/qemu.png Similar projects ================ * https://github.com/jbush001/os * https://github.com/dthain/basekernel * https://github.com/domsp...
04d093c9cb070527d76d5662b24fef7851a21e19
README.rst
README.rst
reStructuredText
<|file_sep|>database/seeds/UserTableSeeder.php.diff original: // Create a user with a predetermined ID to use when manually testing endpoints. User::create([ '_id' => '5430e850dt8hbc541c37tt3d', updated: // Create an example normal & admin user for local development. factory(...
{ // Clear the database. DB::table('users')->delete(); // Create an example normal & admin user for local development. factory(User::class)->create([ 'email' => 'test@dosomething.org', 'password' => 'secret', ]); factory(User::class, 'admin')...
<|file_sep|>database/seeds/UserTableSeeder.php.diff original: // Create a user with a predetermined ID to use when manually testing endpoints. User::create([ '_id' => '5430e850dt8hbc541c37tt3d', updated: // Create an example normal & admin user for local development. factory(...
daac25a88cb9f40576740a99cf1ad3a83489a00f
database/seeds/UserTableSeeder.php
database/seeds/UserTableSeeder.php
PHP
<|file_sep|>app/routes/experiments/info/preview.js.diff original: updated: import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; <|file_sep|>app/routes/experiments/info/preview.js.diff original: export default Ember.Route.extend({ updated: export default Ember.Route.extend(Authenti...
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { model(params) { var parentParams = this.paramsFor('experiments.info'); return this.store.findRecord('experiment', paren...
<|file_sep|>app/routes/experiments/info/preview.js.diff original: updated: import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; <|file_sep|>app/routes/experiments/info/preview.js.diff original: export default Ember.Route.extend({ updated: export default Ember.Route.extend(Authenti...
54766c39266848a99df5b0ab57ca99752270fdf8
app/routes/experiments/info/preview.js
app/routes/experiments/info/preview.js
JavaScript
<|file_sep|>app/src/main/res/values/styles.xml.diff original: <style name="Theme.Main" parent="@android:style/Theme.Material.Light.DarkActionBar"> <item name="android:colorPrimary">@color/theme_primary</item> <item name="android:colorPrimaryDark">@color/theme_primary_dark</item> <item name="...
~ Copyright (C) 2015 Chandra Poerwanto ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable ...
<|file_sep|>app/src/main/res/values/styles.xml.diff original: <style name="Theme.Main" parent="@android:style/Theme.Material.Light.DarkActionBar"> <item name="android:colorPrimary">@color/theme_primary</item> <item name="android:colorPrimaryDark">@color/theme_primary_dark</item> <item name="...
ec6e35c4da115f4b78c77e41271a4d59faade822
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
XML
<|file_sep|>original/BasicSequences/BlankingSweeps.py <|file_sep|>current/BasicSequences/BlankingSweeps.py <|file_sep|>updated/BasicSequences/BlankingSweeps.py
""" Sequences for optimizing gating timing. """ from ..PulsePrimitives import * from ..Compiler import compile_to_hardware def sweep_gateDelay(qubit, sweepPts): """ Sweep the gate delay associated with a qubit channel using a simple Id, Id, X90, X90 seqeuence. Parameters --------- qubit : ...
<|file_sep|>original/BasicSequences/BlankingSweeps.py <|file_sep|>current/BasicSequences/BlankingSweeps.py <|file_sep|>updated/BasicSequences/BlankingSweeps.py """ Sequences for optimizing gating timing. """ from ..PulsePrimitives import * from ..Compiler import compile_to_hardware def sweep_gateDelay(qubit, sweepPt...
d2f3829ef024a663ecd82255860b0165838f8086
BasicSequences/BlankingSweeps.py
BasicSequences/BlankingSweeps.py
Python
<|file_sep|>original/app/models/spree/store_decorator.rb Spree::Store.class_eval do has_and_belongs_to_many :products, join_table: 'spree_products_stores' has_many :taxonomies has_many :orders has_many :store_shipping_methods has_many :shipping_methods, through: :store_shipping_methods has_and_belongs_to_...
Spree::Store.class_eval do has_and_belongs_to_many :products, join_table: 'spree_products_stores' has_many :taxonomies has_many :orders has_many :store_shipping_methods has_many :shipping_methods, through: :store_shipping_methods has_and_belongs_to_many :promotion_rules, class_name: 'Spree::Promotion::Rul...
<|file_sep|>original/app/models/spree/store_decorator.rb Spree::Store.class_eval do has_and_belongs_to_many :products, join_table: 'spree_products_stores' has_many :taxonomies has_many :orders has_many :store_shipping_methods has_many :shipping_methods, through: :store_shipping_methods has_and_belongs_to_...
12873e01fe803f87380a5dfc897c82f0d93db3fd
app/models/spree/store_decorator.rb
app/models/spree/store_decorator.rb
Ruby
<|file_sep|>original/requirements-app.txt # Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt Flask==1.0.3 # pyup: >=1.0.0,<1.1.0 Flask-Login==0.4.1 Flask-WTF==0.14.2 lxml==4.4.1 # Putting upgrade on hold due to v1.0.0 using sha512 instead of sha1 by...
# Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt Flask==1.0.4 # pyup: >=1.0.0,<1.1.0 Flask-Login==0.4.1 Flask-WTF==0.14.2 lxml==4.4.1 # Putting upgrade on hold due to v1.0.0 using sha512 instead of sha1 by default itsdangerous==0.24 # pyup: <1.0....
<|file_sep|>original/requirements-app.txt # Run `make freeze-requirements` to update requirements.txt # with package version changes made in requirements-app.txt Flask==1.0.3 # pyup: >=1.0.0,<1.1.0 Flask-Login==0.4.1 Flask-WTF==0.14.2 lxml==4.4.1 # Putting upgrade on hold due to v1.0.0 using sha512 instead of sha1 by...
5de515603e892e19fe48402cfc9d3235bb716b77
requirements-app.txt
requirements-app.txt
Text
<|file_sep|>Cargo.toml.diff original: version = "0.12.0" updated: version = "0.12.1" <|file_sep|>original/Cargo.toml [package] name = "ipnetwork" version = "0.12.0" authors = ["Abhishek Chanda <abhishek.becs@gmail.com>", "Linus Färnstrand <faern@faern.net>"] description = "A library to work with IP CIDRs in Rust, heavi...
[package] name = "ipnetwork" version = "0.12.1" authors = ["Abhishek Chanda <abhishek.becs@gmail.com>", "Linus Färnstrand <faern@faern.net>"] description = "A library to work with IP CIDRs in Rust, heavily WIP" license = "Apache-2.0" repository = "https://github.com/achanda/ipnetwork" keywords = ["network", "ip", "addr...
<|file_sep|>Cargo.toml.diff original: version = "0.12.0" updated: version = "0.12.1" <|file_sep|>original/Cargo.toml [package] name = "ipnetwork" version = "0.12.0" authors = ["Abhishek Chanda <abhishek.becs@gmail.com>", "Linus Färnstrand <faern@faern.net>"] description = "A library to work with IP CIDRs in Rust, heavi...
a140045d03cd2ebbe3172870ae7b41353d6b048d
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/README.md # sgfc My drone flight CnC code <|file_sep|>current/README.md # sgfc My drone flight CnC code <|file_sep|>updated/README.md
# sgfc My drone flight Command-and-Control implementation. (Very early WIP) ## Communication module This module is used to send and recieve protobufs between devices using an abstracted API. Currently only supports XBee. ## Control module This module is used to take input from the user for controlling the drone. C...
<|file_sep|>original/README.md # sgfc My drone flight CnC code <|file_sep|>current/README.md # sgfc My drone flight CnC code <|file_sep|>updated/README.md # sgfc My drone flight Command-and-Control implementation. (Very early WIP) ## Communication module This module is used to send and recieve protobufs between devi...
688bb99e28a9b286d9bc213e440c087f221a9469
README.md
README.md
Markdown
<|file_sep|>original/requirements.txt molecule==2.13.1 pytest==3.5.1 python-vagrant==0.5.15 testinfra==1.12.0 tox==3.0.0 <|file_sep|>current/requirements.txt molecule==2.13.1 pytest==3.5.1 python-vagrant==0.5.15 testinfra==1.12.0 tox==3.0.0 <|file_sep|>updated/requirements.txt
molecule==2.13.1 pytest==3.5.1 python-vagrant==0.5.15 testinfra==1.13.0 tox==3.0.0
<|file_sep|>original/requirements.txt molecule==2.13.1 pytest==3.5.1 python-vagrant==0.5.15 testinfra==1.12.0 tox==3.0.0 <|file_sep|>current/requirements.txt molecule==2.13.1 pytest==3.5.1 python-vagrant==0.5.15 testinfra==1.12.0 tox==3.0.0 <|file_sep|>updated/requirements.txt molecule==2.13.1 pytest==3.5.1 python-vagr...
3564e5b83f38d068acc3aef7da7f48b91ac89bf0
requirements.txt
requirements.txt
Text
<|file_sep|>original/test/models/post_test.rb I18n.locale = @default_locale end sub_test_case 'order' do data({ null: nil, blank: "", alphabet: "a", }) def test_only_integer(data) category = @site.categories.create( name: 'category 1', description: 'ca...
category = @site.categories.create( name: 'category 1', description: 'category 1', slug: 'category1', order: data ) assert_false(category.valid?) assert_equal(["は数値で入力してください"], category.errors[:order]) end end sub_test_case "relation" ...
<|file_sep|>original/test/models/post_test.rb I18n.locale = @default_locale end sub_test_case 'order' do data({ null: nil, blank: "", alphabet: "a", }) def test_only_integer(data) category = @site.categories.create( name: 'category 1', description: 'ca...
4cff7cc5e3369cb2528be3f19e8324af0a6edb59
test/models/post_test.rb
test/models/post_test.rb
Ruby
<|file_sep|>package.json.diff original: "version": "1.0.5", updated: "version": "1.0.6", <|file_sep|>original/package.json "react" ], "author": "Patricio Zavolinsky", "license": "MIT", "bugs": { "url": "https://github.com/pzavolinsky/react-cucumber/issues" }, "homepage": "https://github.com/pzav...
], "author": "Patricio Zavolinsky", "license": "MIT", "bugs": { "url": "https://github.com/pzavolinsky/react-cucumber/issues" }, "homepage": "https://github.com/pzavolinsky/react-cucumber", "devDependencies": { "@types/cucumber": "0.0.37", "@types/node": "^7.0.5", "@types/react": "^15.0.12...
<|file_sep|>package.json.diff original: "version": "1.0.5", updated: "version": "1.0.6", <|file_sep|>original/package.json "react" ], "author": "Patricio Zavolinsky", "license": "MIT", "bugs": { "url": "https://github.com/pzavolinsky/react-cucumber/issues" }, "homepage": "https://github.com/pzav...
9507e06e547806bbe833843ea2d97ce1c5728f53
package.json
package.json
JSON
<|file_sep|>original/Sketches/JT/Jam/application/trunk/setup_py2exe.py <|file_sep|>current/Sketches/JT/Jam/application/trunk/setup_py2exe.py <|file_sep|>updated/Sketches/JT/Jam/application/trunk/setup_py2exe.py
#!/usr/bin/env python # # (C) 2008 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General Public Lic...
<|file_sep|>original/Sketches/JT/Jam/application/trunk/setup_py2exe.py <|file_sep|>current/Sketches/JT/Jam/application/trunk/setup_py2exe.py <|file_sep|>updated/Sketches/JT/Jam/application/trunk/setup_py2exe.py #!/usr/bin/env python # # (C) 2008 British Broadcasting Corporation and Kamaelia Contributors(1) # All ...
836f23046a25edbdeafcbe487fa9f918a9bae5cb
Sketches/JT/Jam/application/trunk/setup_py2exe.py
Sketches/JT/Jam/application/trunk/setup_py2exe.py
Python
<|file_sep|>news/management/commands/sync_newsletters.py.diff original: updated: from news.newsletters import clear_newsletter_cache, clear_sms_cache <|file_sep|>original/news/management/commands/sync_newsletters.py from synctool.functions import sync_data DEFAULT_SYNC_DOMAIN = 'basket.mozilla.org' class Command(...
DEFAULT_SYNC_DOMAIN = 'basket.mozilla.org' class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('-d', '--domain', default=getattr(settings, 'SYNC_DOMAIN', DEFAULT_SYNC_DOMAIN), help='Domain of the Basket from which to syn...
<|file_sep|>news/management/commands/sync_newsletters.py.diff original: updated: from news.newsletters import clear_newsletter_cache, clear_sms_cache <|file_sep|>original/news/management/commands/sync_newsletters.py from synctool.functions import sync_data DEFAULT_SYNC_DOMAIN = 'basket.mozilla.org' class Command(...
de09310ebfd932cd725954e9c05f5a1ce78311e0
news/management/commands/sync_newsletters.py
news/management/commands/sync_newsletters.py
Python
<|file_sep|>original/data_controller/abc.py <|file_sep|>current/data_controller/abc.py <|file_sep|>updated/data_controller/abc.py
from typing import Dict, Optional from data_controller.enums import Medium, Site from utils.helpers import await_func class DataController: """ An ABC for all classes that deals with database read write. """ __slots__ = () def get_identifier(self, query: str, medium: Mediu...
<|file_sep|>original/data_controller/abc.py <|file_sep|>current/data_controller/abc.py <|file_sep|>updated/data_controller/abc.py from typing import Dict, Optional from data_controller.enums import Medium, Site from utils.helpers import await_func class DataController: """ An ABC for all classes that deals...
3ef1e39d476a8b3e41ff0b06dcd6f700c083682d
data_controller/abc.py
data_controller/abc.py
Python
<|file_sep|>original/template/ec2-network-acl-entry.rb icmp = args[:icmp] || "" network_acl = _ref_attr_string("vpc_network_acl", "DefaultNetworkAcl", args, "vpc") network_acl = _ref_string("network_acl", args, "network acl") if network_acl.empty? port_range = _ec2_port_range(args) protocol = _ec2_protocol_number(args[...
port_range = _ec2_port_range(args) protocol = _ec2_protocol_number(args[:protocol]) rule_action = _valid_values(args[:action], %w( allow deny ), "allow") rule_number = _valid_numbers(args[:number], 1, 32766, 100) _(name) do Type "AWS::EC2::NetworkAclEntry" Properties do CidrBlock cidr Egress egress Icm...
<|file_sep|>original/template/ec2-network-acl-entry.rb icmp = args[:icmp] || "" network_acl = _ref_attr_string("vpc_network_acl", "DefaultNetworkAcl", args, "vpc") network_acl = _ref_string("network_acl", args, "network acl") if network_acl.empty? port_range = _ec2_port_range(args) protocol = _ec2_protocol_number(args[...
747dcf9d54c032fe63411996d7ae6957a49436ed
template/ec2-network-acl-entry.rb
template/ec2-network-acl-entry.rb
Ruby
<|file_sep|>src/main/java/com/arckenver/nations/listener/MobSpawningListener.java.diff original: import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.entity.EntityTypes; updated: import org.spongepowered.api.entity.living.monster.Monster; <|file_sep|>src/main/java/com/arckenver/nations/listener/...
import org.spongepowered.api.entity.living.monster.Monster; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.entity.SpawnEntityEvent; import com.arckenver.nations.ConfigHandler; import com.arckenver.nations.DataHandler; public class MobSpawningListener { @Listener public void onEnti...
<|file_sep|>src/main/java/com/arckenver/nations/listener/MobSpawningListener.java.diff original: import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.entity.EntityTypes; updated: import org.spongepowered.api.entity.living.monster.Monster; <|file_sep|>src/main/java/com/arckenver/nations/listener/...
00db9e220fbb736e629cfb3837c8feaa131f05fb
src/main/java/com/arckenver/nations/listener/MobSpawningListener.java
src/main/java/com/arckenver/nations/listener/MobSpawningListener.java
Java
<|file_sep|>original/src/malloc_threadx.c <|file_sep|>current/src/malloc_threadx.c <|file_sep|>updated/src/malloc_threadx.c
#include <stdint.h> #include <stdbool.h> #include <assert.h> #include <threadx/tx_api.h> #pragma mark - Definitions - /* * In this example, I am using the compiler's builtin atomic compare and swap * Routine. This will provide atomic access to swapping the malloc pointer, * and only one function will initialize the m...
<|file_sep|>original/src/malloc_threadx.c <|file_sep|>current/src/malloc_threadx.c <|file_sep|>updated/src/malloc_threadx.c #include <stdint.h> #include <stdbool.h> #include <assert.h> #include <threadx/tx_api.h> #pragma mark - Definitions - /* * In this example, I am using the compiler's builtin atomic compare and...
6bd2207f5562ce6be8bbf18ec5000580f11d6cba
src/malloc_threadx.c
src/malloc_threadx.c
C
<|file_sep|>original/report_html_accounts.xml <field name="name">Account Statement</field> <field name="model"></field> <field name="report_name">report.party_account_statement</field> <field name="report">report_html_accounts/reports/party_account_statement.html</field> ...
<field name="name">Account Statement</field> <field name="model"></field> <field name="report_name">report.party_account_statement</field> <field name="report">report_html_accounts/reports/party_account_statement.html</field> </record> <record model="ir.ui...
<|file_sep|>original/report_html_accounts.xml <field name="name">Account Statement</field> <field name="model"></field> <field name="report_name">report.party_account_statement</field> <field name="report">report_html_accounts/reports/party_account_statement.html</field> ...
787ee4abf3958f7751820926d00c926fc914c039
report_html_accounts.xml
report_html_accounts.xml
XML
<|file_sep|>structures/__init__.py.diff original: class StructureError(Exception): updated: class UnknownStructure(Exception): <|file_sep|>structures/__init__.py.diff original: updated: <|file_sep|>original/structures/__init__.py @classmethod def setup(cls): if cls.wowfiles is None: cls.wowfiles = {} ...
@classmethod def setup(cls): if cls.wowfiles is None: cls.wowfiles = {} for name in globals(): try: if not issubclass(globals()[name], DBStructure): continue except TypeError: continue cls.wowfiles[name.lower()] = globals()[name] @classmethod def getstructure(cls, name, build...
<|file_sep|>structures/__init__.py.diff original: class StructureError(Exception): updated: class UnknownStructure(Exception): <|file_sep|>structures/__init__.py.diff original: updated: <|file_sep|>original/structures/__init__.py @classmethod def setup(cls): if cls.wowfiles is None: cls.wowfiles = {} ...
f81e409ab1666a8a3bb1ff1806d256644712382f
structures/__init__.py
structures/__init__.py
Python
<|file_sep|>original/requirements/base.txt pygithub==1.34 pygithub==1.34 jinja2==2.9.6 click==6.7 tqdm==4.15.0 requests==2.13.0 markdown2==2.3.3 <|file_sep|>current/requirements/base.txt pygithub==1.34 pygithub==1.34 jinja2==2.9.6 click==6.7 tqdm==4.15.0 requests==2.13.0 markdown2==2.3.3 <|file_sep|>updated/requirement...
pygithub==1.44.1 pygithub==1.44.1 jinja2==2.9.6 click==6.7 tqdm==4.15.0 requests==2.13.0 markdown2==2.3.3
<|file_sep|>original/requirements/base.txt pygithub==1.34 pygithub==1.34 jinja2==2.9.6 click==6.7 tqdm==4.15.0 requests==2.13.0 markdown2==2.3.3 <|file_sep|>current/requirements/base.txt pygithub==1.34 pygithub==1.34 jinja2==2.9.6 click==6.7 tqdm==4.15.0 requests==2.13.0 markdown2==2.3.3 <|file_sep|>updated/requirement...
473f11932a7f699f5d2c32d4e70834f0fc4b1153
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>original/README.md wicket-tagcloud-example ======================== Example application for the [wicket-tagcloud](https://github.com/kristofa/wicket-tagcloud). Released under MIT license, see LICENSE for details. You can run the example application by invoking: mvn jetty:run This starts a jetty through ...
wicket-tagcloud-example ======================== Example application for the [wicket-tagcloud](https://github.com/kristofa/wicket-tagcloud). Released under MIT license, see LICENSE for details. You can run the example application by invoking: mvn jetty:run This starts a jetty through Maven and deploys the example a...
<|file_sep|>original/README.md wicket-tagcloud-example ======================== Example application for the [wicket-tagcloud](https://github.com/kristofa/wicket-tagcloud). Released under MIT license, see LICENSE for details. You can run the example application by invoking: mvn jetty:run This starts a jetty through ...
db84a89a6dcf801456173a25c87d257d56f1d35a
README.md
README.md
Markdown
<|file_sep|>pkgs/applications/editors/emacs-modes/d/default.nix.diff original: updated: # Note: Don't have a version, using date as fallback. <|file_sep|>original/pkgs/applications/editors/emacs-modes/d/default.nix let version = "20150111"; in stdenv.mkDerivation { name = "emacs-d-${version}"; src = fetchurl { ...
}; buildInputs = [ emacs ]; buildPhase = '' emacs -L . --batch -f batch-byte-compile *.el ''; installPhase = '' install -d $out/share/emacs/site-lisp install *.el *.elc $out/share/emacs/site-lisp ''; meta = { description = "Major mode for editing D code"; homepage = https://github....
<|file_sep|>pkgs/applications/editors/emacs-modes/d/default.nix.diff original: updated: # Note: Don't have a version, using date as fallback. <|file_sep|>original/pkgs/applications/editors/emacs-modes/d/default.nix let version = "20150111"; in stdenv.mkDerivation { name = "emacs-d-${version}"; src = fetchurl { ...
f8247edd1c27fe8b9f3926b92a81e977db78a04e
pkgs/applications/editors/emacs-modes/d/default.nix
pkgs/applications/editors/emacs-modes/d/default.nix
Nix
<|file_sep|>app/assets/stylesheets/components/snippets.scss.diff original: updated: overflow: hidden; <|file_sep|>original/app/assets/stylesheets/components/snippets.scss div#note-items { div.body { font-size: 11pt; line-height: 140%; } h2 { border: 0; font-size: 16pt; ...
font-size: 11pt; line-height: 140%; } h2 { border: 0; font-size: 16pt; margin: 20px 0 10px; overflow: hidden; } h3 { font-size: 12pt; margin: 12px 0 6px; overflow: hidden; } } .snippet-direct { align-items: center; display: flex; ...
<|file_sep|>app/assets/stylesheets/components/snippets.scss.diff original: updated: overflow: hidden; <|file_sep|>original/app/assets/stylesheets/components/snippets.scss div#note-items { div.body { font-size: 11pt; line-height: 140%; } h2 { border: 0; font-size: 16pt; ...
0b3d854ed78b1a8fdbb6af7f03aec271250460c4
app/assets/stylesheets/components/snippets.scss
app/assets/stylesheets/components/snippets.scss
SCSS
<|file_sep|>original/app/templates/_package.json { "name": "<%- name %>", "version": "<%- version %>", "main": "<%- main %>", "private": true, "scripts": { <% if (proj_type === 'es6') { %> "build:ios": "rm -rf dist/ && cp babel-ios.json .babelrc && babel --compact false --out-dir dist/ src/", "build:a...
{ "name": "<%- name %>", "version": "<%- version %>", "main": "<%- main %>", "private": true, "scripts": { <% if (proj_type === 'es6') { %> "build:ios": "rm -rf dist/ && cp babel-ios.json .babelrc && babel --compact false --out-dir dist/ src/", "build:android": "rm -rf dist/ && cp babel-android.json ....
<|file_sep|>original/app/templates/_package.json { "name": "<%- name %>", "version": "<%- version %>", "main": "<%- main %>", "private": true, "scripts": { <% if (proj_type === 'es6') { %> "build:ios": "rm -rf dist/ && cp babel-ios.json .babelrc && babel --compact false --out-dir dist/ src/", "build:a...
34581a3e0610f0647d92af8c0212b981b5abef2a
app/templates/_package.json
app/templates/_package.json
JSON
<|file_sep|>metadata/com.ensoft.imgurviewer.yml.diff original: updated: AutoName: ImgurViewer <|file_sep|>metadata/com.ensoft.imgurviewer.yml.diff original: updated: - versionName: 2.1.9 versionCode: 21900 commit: 2.1.9 subdir: app gradle: - yes <|file_sep|>original/metadata/com.ensoft.imgur...
Repo: https://github.com/SpartanJ/ImgurViewer Builds: - versionName: 2.1.6 versionCode: 21600 commit: 2.1.6 subdir: app gradle: - yes - versionName: 2.1.9 versionCode: 21900 commit: 2.1.9 subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags Curren...
<|file_sep|>metadata/com.ensoft.imgurviewer.yml.diff original: updated: AutoName: ImgurViewer <|file_sep|>metadata/com.ensoft.imgurviewer.yml.diff original: updated: - versionName: 2.1.9 versionCode: 21900 commit: 2.1.9 subdir: app gradle: - yes <|file_sep|>original/metadata/com.ensoft.imgur...
d0a927d5fb89ce5b4e80a24b341a179ef4900a86
metadata/com.ensoft.imgurviewer.yml
metadata/com.ensoft.imgurviewer.yml
YAML
<|file_sep|>src/main/java/moe/tristan/easyfxml/util/Nodes.java.diff original: updated: import javafx.beans.value.ObservableValue; <|file_sep|>original/src/main/java/moe/tristan/easyfxml/util/Nodes.java * Small DOM-related utils for JavaFX nodes. */ public final class Nodes { private Nodes() { } /** ...
* @param node The node to center * @param marginSize The margins to keep on the sides */ public static void centerNode(final Node node, final Double marginSize) { AnchorPane.setTopAnchor(node, marginSize); AnchorPane.setBottomAnchor(node, marginSize); AnchorPane.setLeftA...
<|file_sep|>src/main/java/moe/tristan/easyfxml/util/Nodes.java.diff original: updated: import javafx.beans.value.ObservableValue; <|file_sep|>original/src/main/java/moe/tristan/easyfxml/util/Nodes.java * Small DOM-related utils for JavaFX nodes. */ public final class Nodes { private Nodes() { } /** ...
87f6b0eb7092c428610eb681a6b3b2b5192f2714
src/main/java/moe/tristan/easyfxml/util/Nodes.java
src/main/java/moe/tristan/easyfxml/util/Nodes.java
Java
<|file_sep|>original/package.json { "name": "iBeaconManager", "version": "0.1.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "5.13.12", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "underscore": "~1.6.0" }, "devDependencies": { "grunt-concurrent": "lat...
{ "name": "iBeaconManager", "version": "0.1.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "^5.14.1", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "underscore": "~1.6.0" }, "devDependencies": { "grunt-concurrent": "latest", "grunt-contrib-jshint": ...
<|file_sep|>original/package.json { "name": "iBeaconManager", "version": "0.1.0", "dependencies": { "express": "4.0.0", "fh-mbaas-api": "5.13.12", "request": "2.34.0", "body-parser": "~1.0.2", "cors": "~2.2.0", "underscore": "~1.6.0" }, "devDependencies": { "grunt-concurrent": "lat...
4aebcf36013658ce42c656683fc1a32958daa30d
package.json
package.json
JSON
<|file_sep|>original/application/views/admin/index.php <div class="span2"> <div class="admin_button_cont"><?php echo anchor('admin/items', 'Edit Item Database', array('class' => 'btn btn-primary')) ?></div> <div class="admin_button_cont"><?php echo anchor('admin/update_items', 'Update Items', array('class' => 'btn ...
<div class="span2"> <div class="admin_button_cont"><?php echo anchor('admin/items', 'Edit Item Database', array('class' => 'btn btn-primary')) ?></div> <div class="admin_button_cont"><?php echo anchor('admin/home/update_items', 'Update Items', array('class' => 'btn btn-primary')) ?></div> <div class="admin_button...
<|file_sep|>original/application/views/admin/index.php <div class="span2"> <div class="admin_button_cont"><?php echo anchor('admin/items', 'Edit Item Database', array('class' => 'btn btn-primary')) ?></div> <div class="admin_button_cont"><?php echo anchor('admin/update_items', 'Update Items', array('class' => 'btn ...
9e1bc0ec3b213aa0882ebeee27a45013d9741eca
application/views/admin/index.php
application/views/admin/index.php
PHP
<|file_sep|>book/bootcamp.md.diff original: #### Common Lisp Bootcamp updated: ### Common Lisp Bootcamp <|file_sep|>original/book/bootcamp.md # LLTHW #### Common Lisp Bootcamp <|file_sep|>current/book/bootcamp.md # LLTHW ### Common Lisp Bootcamp <|file_sep|>updated/book/bootcamp.md
# LLTHW ### Common Lisp Bootcamp #### The REPL The Lisp REPL is a READ-EVAL-PRINT Loop. In other words, it reads user input, evaluates it, prints the return results, and then waits for more user input. It is typically marked by a prompt, much like the command line for your operating system. You can consider it ...
<|file_sep|>book/bootcamp.md.diff original: #### Common Lisp Bootcamp updated: ### Common Lisp Bootcamp <|file_sep|>original/book/bootcamp.md # LLTHW #### Common Lisp Bootcamp <|file_sep|>current/book/bootcamp.md # LLTHW ### Common Lisp Bootcamp <|file_sep|>updated/book/bootcamp.md # LLTHW ### Common Lisp Bootcamp...
6cce04255ebcdc4fd8e90b3ebde87981f361c6ff
book/bootcamp.md
book/bootcamp.md
Markdown
<|file_sep|>original/container-messagebus/src/main/java/com/yahoo/container/jdisc/messagebus/NetworkMultiplexerHolder.java return net = net != null ? net : NetworkMultiplexer.shared(newNetwork(params)); } } private Network newNetwork(RPCNetworkParams params) { return params.getSlob...
} } private Network newNetwork(RPCNetworkParams params) { return params.getSlobroksConfig() != null && params.getSlobroksConfig().slobrok().isEmpty() ? new NullNetwork() // For LocalApplication, test setup. : new RPCNetwork(params); } @Override public ...
<|file_sep|>original/container-messagebus/src/main/java/com/yahoo/container/jdisc/messagebus/NetworkMultiplexerHolder.java return net = net != null ? net : NetworkMultiplexer.shared(newNetwork(params)); } } private Network newNetwork(RPCNetworkParams params) { return params.getSlob...
477178043c0d4052029b5e7ee4f2e57e5f92607f
container-messagebus/src/main/java/com/yahoo/container/jdisc/messagebus/NetworkMultiplexerHolder.java
container-messagebus/src/main/java/com/yahoo/container/jdisc/messagebus/NetworkMultiplexerHolder.java
Java
<|file_sep|>original/data/sql/updates/db_auth/2017_08_19_00.sql <|file_sep|>current/data/sql/updates/db_auth/2017_08_19_00.sql <|file_sep|>updated/data/sql/updates/db_auth/2017_08_19_00.sql
-- DB update 2016_11_19_00 -> 2017_08_19_00 DROP PROCEDURE IF EXISTS `updateDb`; DELIMITER // CREATE PROCEDURE updateDb () proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE'; SELECT COUNT(*) INTO @COLEXISTS FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_auth' AND COLUMN_NAM...
<|file_sep|>original/data/sql/updates/db_auth/2017_08_19_00.sql <|file_sep|>current/data/sql/updates/db_auth/2017_08_19_00.sql <|file_sep|>updated/data/sql/updates/db_auth/2017_08_19_00.sql -- DB update 2016_11_19_00 -> 2017_08_19_00 DROP PROCEDURE IF EXISTS `updateDb`; DELIMITER // CREATE PROCEDURE updateDb () proc:...
25d92a454de7377c1dbd03aa104c27083cd180c2
data/sql/updates/db_auth/2017_08_19_00.sql
data/sql/updates/db_auth/2017_08_19_00.sql
SQL
<|file_sep|>_pages/tutorials/googlesites/index.md.diff original: This page will contain the tips and tricks I am picking up in building this site. See below for miscellany; see the left bar for more involved write-ups. updated: This page will contain the tips and tricks I am picking up in building this site. See below...
--- layout: default title: Google Sites --- This page will contain the tips and tricks I am picking up in building this site. See below for miscellany; see the left bar for more involved write-ups. - As of when I created this site, Google Sites did not support LaTeX, nor did it have any plans to do so. [Workaround](h...
<|file_sep|>_pages/tutorials/googlesites/index.md.diff original: This page will contain the tips and tricks I am picking up in building this site. See below for miscellany; see the left bar for more involved write-ups. updated: This page will contain the tips and tricks I am picking up in building this site. See below...
808c6ab29d5f4d17822d7f9819390af1e4521439
_pages/tutorials/googlesites/index.md
_pages/tutorials/googlesites/index.md
Markdown
<|file_sep|>pages/api/mailchimp.js.diff original: updated: res.setHeader( 'Cache-Control', 'public, s-maxage=1200, stale-while-revalidate=600' ) <|file_sep|>original/pages/api/mailchimp.js const mailchimp = require("@mailchimp/mailchimp_marketing"); mailchimp.setConfig({ apiKey: process.env.MAIL...
mailchimp.setConfig({ apiKey: process.env.MAILCHIMP_API_KEY, server: "us4", }); export default async (req, res) => { try { const { stats } = await mailchimp.lists.getList("05d188e2db"); res.setHeader( 'Cache-Control', 'public, s-maxage=1200, stale-while-revalidate=600' ) return res....
<|file_sep|>pages/api/mailchimp.js.diff original: updated: res.setHeader( 'Cache-Control', 'public, s-maxage=1200, stale-while-revalidate=600' ) <|file_sep|>original/pages/api/mailchimp.js const mailchimp = require("@mailchimp/mailchimp_marketing"); mailchimp.setConfig({ apiKey: process.env.MAIL...
50c55011700828c3be13c5e28af4e65c077cd352
pages/api/mailchimp.js
pages/api/mailchimp.js
JavaScript
<|file_sep|>original/README.md var isPalindrome = require('is-palindrome'); isPalindrome('racecar') === true; isPalindrome(101) === true; isPalindrome('!@#$#@!', false) === true; ``` ## Tests ``` npm test ``` ## Contributing In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit t...
isPalindrome('racecar') === true; isPalindrome(101) === true; isPalindrome('!@#$#@!', false) === true; ``` ## Tests ``` npm test ``` ## Contributing In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code. ## Rele...
<|file_sep|>original/README.md var isPalindrome = require('is-palindrome'); isPalindrome('racecar') === true; isPalindrome(101) === true; isPalindrome('!@#$#@!', false) === true; ``` ## Tests ``` npm test ``` ## Contributing In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit t...
54f84663bc6dea9c3c13571120610c954cf4f330
README.md
README.md
Markdown
<|file_sep|>original/app/views/layouts/_navbar.html.slim nav.navbar.navbar-default.navbar-fixed-top role="navigation" .container .navbar-header button.navbar-toggle type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse" span.icon-bar span.icon...
nav.navbar.navbar-default.navbar-fixed-top role="navigation" .container .navbar-header button.navbar-toggle type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse" span.icon-bar span.icon-bar span.icon-bar a.navbar-brand h...
<|file_sep|>original/app/views/layouts/_navbar.html.slim nav.navbar.navbar-default.navbar-fixed-top role="navigation" .container .navbar-header button.navbar-toggle type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse" span.icon-bar span.icon...
32d14479e5c34ee9d268aee307f43c3eeccd56ea
app/views/layouts/_navbar.html.slim
app/views/layouts/_navbar.html.slim
Slim
<|file_sep|>src/C++/helpers.h.diff original: updated: #include <sstream> #include "concol.h" <|file_sep|>original/src/C++/helpers.h #include <iostream> using std::cout; using std::cin; using std::endl; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDev...
#include <iostream> #include <sstream> #include "concol.h" using std::cout; using std::cin; using std::endl; using std::string; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDevices = get_numDevices(); cout << concol::RED << numDevices << " APS devi...
<|file_sep|>src/C++/helpers.h.diff original: updated: #include <sstream> #include "concol.h" <|file_sep|>original/src/C++/helpers.h #include <iostream> using std::cout; using std::cin; using std::endl; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDev...
41c4603134c88859218d56a3680f45dfaa02b80a
src/C++/helpers.h
src/C++/helpers.h
C
<|file_sep|>original/README.md # Dotfiles My dotfiles and other configs Won't be of much interest to others. Licensed under The Unlicense. <|file_sep|>current/README.md # Dotfiles My dotfiles and other configs Won't be of much interest to others. Licensed under The Unlicense. <|file_sep|>updated/README.md
# Dotfiles My dotfiles and other configs Won't be of much interest to others. All files licensed under The Unlicense, unless otherwise specified in the top bit of the file.
<|file_sep|>original/README.md # Dotfiles My dotfiles and other configs Won't be of much interest to others. Licensed under The Unlicense. <|file_sep|>current/README.md # Dotfiles My dotfiles and other configs Won't be of much interest to others. Licensed under The Unlicense. <|file_sep|>updated/README.md # Dotfile...
4cdb71e34b61f93b3ca9f8d3098c0664c069176e
README.md
README.md
Markdown
<|file_sep|>docs/installation.rst.diff original: Installing `landlab` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: updated: Installing *pymt* from the *conda-forge* channel can be achieved by adding *conda-forge* to your channels with: <|file_sep|>docs/installation.rst.d...
You can either clone the public repository: .. code-block:: console $ git clone git://github.com/csdms/pymt Or download the `tarball`_: .. code-block:: console $ curl -OL https://github.com/csdms/pymt/tarball/master Once you have a copy of the source, you can install it with: .. code-block:: console ...
<|file_sep|>docs/installation.rst.diff original: Installing `landlab` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: updated: Installing *pymt* from the *conda-forge* channel can be achieved by adding *conda-forge* to your channels with: <|file_sep|>docs/installation.rst.d...
b8da5ac1bdf5edc5db61f211249bca70e343259f
docs/installation.rst
docs/installation.rst
reStructuredText
<|file_sep|>original/pkgs/development/libraries/opencascade/default.nix stdenv.mkDerivation rec { name = "opencascade-oce-0.17.2"; src = fetchurl { url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz; sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd"; }; buildInputs = [ mesa t...
stdenv.mkDerivation rec { name = "opencascade-oce-0.17.2"; src = fetchurl { url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz; sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd"; }; buildInputs = [ mesa tcl tk file libXmu libtool qt4 ftgl freetype cmake ]; # Fix for glibc ...
<|file_sep|>original/pkgs/development/libraries/opencascade/default.nix stdenv.mkDerivation rec { name = "opencascade-oce-0.17.2"; src = fetchurl { url = https://github.com/tpaviot/oce/archive/OCE-0.17.2.tar.gz; sha256 = "0vpmnb0k5y2f7lpmwx9pg9yfq24zjvnsak5alzacncfm1hv9b6cd"; }; buildInputs = [ mesa t...
4cf16937ce0757fb0ca35e1e81223e020f0750f5
pkgs/development/libraries/opencascade/default.nix
pkgs/development/libraries/opencascade/default.nix
Nix
<|file_sep|>original/lib/upstream/tracker/init.rb require 'upstream/tracker' module Upstream module Tracker class Init < Thor include Upstream::Tracker::Helper desc "config", "Initialize configuration" def config get_config_dir dest = get_config_path unless File.exist?...
desc "config", "Initialize configuration" def config get_config_dir dest = get_config_path unless File.exist?(dest) src = File.dirname(__FILE__) + "/../../../examples/#{CONFIG_FILE}" FileUtils.cp(src, dest) end end desc "library [LIBRARY]", "I...
<|file_sep|>original/lib/upstream/tracker/init.rb require 'upstream/tracker' module Upstream module Tracker class Init < Thor include Upstream::Tracker::Helper desc "config", "Initialize configuration" def config get_config_dir dest = get_config_path unless File.exist?...
50d5680e304ba3aa094a50d15a495c69a4595008
lib/upstream/tracker/init.rb
lib/upstream/tracker/init.rb
Ruby
<|file_sep|>original/app/directives/us-map/template.html <div> <div class="tooltip"></div> <svg width="960" height="600"></svg> </div> <|file_sep|>current/app/directives/us-map/template.html <div> <div class="tooltip"></div> <svg width="960" height="600"></svg> </div> <|file_sep|>updated/app/directives/us-map/t...
<div> <div class="tooltip"></div> <svg width="100%" height="600" viewBox="0 0 960 600"></svg> </div>
<|file_sep|>original/app/directives/us-map/template.html <div> <div class="tooltip"></div> <svg width="960" height="600"></svg> </div> <|file_sep|>current/app/directives/us-map/template.html <div> <div class="tooltip"></div> <svg width="960" height="600"></svg> </div> <|file_sep|>updated/app/directives/us-map/t...
93574bd3caded0aa4a94df123b863b76ebe7d339
app/directives/us-map/template.html
app/directives/us-map/template.html
HTML
<|file_sep|>original/README.md # countable <|file_sep|>current/README.md # countable <|file_sep|>updated/README.md
# countable [![Build Status](https://travis-ci.org/DavidLevayer/countable.svg?branch=develop)](https://travis-ci.org/DavidLevayer/countable)
<|file_sep|>original/README.md # countable <|file_sep|>current/README.md # countable <|file_sep|>updated/README.md # countable [![Build Status](https://travis-ci.org/DavidLevayer/countable.svg?branch=develop)](https://travis-ci.org/DavidLevayer/countable)
26e243d965bfa2a88effdd0b3e94d26afcc3f19a
README.md
README.md
Markdown
<|file_sep|>tests/app/utils/test_pagination.py.diff original: ret = generate_previous_dict('main.view_jobs', 'foo', 2, {}) assert 'page=1' in ret['url'] assert ret['title'] == 'Previous page' assert ret['label'] == 'page 1' updated: result = generate_previous_dict('main.view_jobs', 'foo', 2, {}) ...
from app.utils.pagination import generate_next_dict, generate_previous_dict def test_generate_previous_dict(client): result = generate_previous_dict('main.view_jobs', 'foo', 2, {}) assert 'page=1' in result['url'] assert result['title'] == 'Previous page' assert result['label'] == 'page 1' def test_...
<|file_sep|>tests/app/utils/test_pagination.py.diff original: ret = generate_previous_dict('main.view_jobs', 'foo', 2, {}) assert 'page=1' in ret['url'] assert ret['title'] == 'Previous page' assert ret['label'] == 'page 1' updated: result = generate_previous_dict('main.view_jobs', 'foo', 2, {}) ...
9177ffa65ac50026078610193b67fdfd6ac8358b
tests/app/utils/test_pagination.py
tests/app/utils/test_pagination.py
Python
<|file_sep|>original/readme.md var validator = Validator({ field: { required: true } }) validator.validate(['field'], {}) // => { field: { field: 'field', rule: 'required', value: undefined } } ``` ### Adding new rules ```javascript var validatorCreator = require("@relekang/validator").extend; var Validator = va...
// => { field: { field: 'field', rule: 'required', value: undefined } } ``` ### Adding new rules ```javascript var validatorCreator = require("@relekang/validator").extend; var Validator = validatorCreator({ mod: (field, value, options) => value % options.constant === 0 ? null : 'mod' }); Validator({ f: { mod: { ...
<|file_sep|>original/readme.md var validator = Validator({ field: { required: true } }) validator.validate(['field'], {}) // => { field: { field: 'field', rule: 'required', value: undefined } } ``` ### Adding new rules ```javascript var validatorCreator = require("@relekang/validator").extend; var Validator = va...
662bb5eab7aab009aa0b6b02aedff0e80029b554
readme.md
readme.md
Markdown
<|file_sep|>zap/main.cs.diff original: Parent::onStart(); updated: <|file_sep|>original/zap/main.cs } function parseArgs() { Parent::parseArgs(); } function onStart() { Parent::onStart(); echo("\n--------- Initializing MOD: Zap ---------"); exec("./server.cs"); } function onExit() { Parent::onExit(); } ...
function parseArgs() { Parent::parseArgs(); } function onStart() { echo("\n--------- Initializing MOD: Zap ---------"); exec("./server.cs"); Parent::onStart(); } function onExit() { Parent::onExit(); } }; // package Zap
<|file_sep|>zap/main.cs.diff original: Parent::onStart(); updated: <|file_sep|>original/zap/main.cs } function parseArgs() { Parent::parseArgs(); } function onStart() { Parent::onStart(); echo("\n--------- Initializing MOD: Zap ---------"); exec("./server.cs"); } function onExit() { Parent::onExit(); } ...
a9142409d646957a48c651af3d2923cf44a90a00
zap/main.cs
zap/main.cs
C#
<|file_sep|>Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js.diff original: BarangFactory.$inject = ['$resource']; updated: BarangFactory.$inject = ['$resource', 'BarangService']; <|file_sep|>Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js.dif...
* Factory in the belajarOauth2ImplicitClientApp. */ (function() { 'use strict'; angular.module('belajarOauth2ImplicitClientApp') .factory('BarangFactory', BarangFactory); BarangFactory.$inject = ['$resource', 'BarangService']; function BarangFactory($resource, BarangService) { var barangFactory = t...
<|file_sep|>Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js.diff original: BarangFactory.$inject = ['$resource']; updated: BarangFactory.$inject = ['$resource', 'BarangService']; <|file_sep|>Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js.dif...
be0460dfd2543b5a92e64f78d4aa8232cc9b919b
Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js
Belajar-Oauth2-Implicit-Client/src/main/webapp/app/scripts/services/barangfactory.js
JavaScript
<|file_sep|>original/appveyor.yml version: 3.1.{build} skip_tags: true image: Visual Studio 2017 Preview configuration: Release dotnet_csproj: patch: true file: '**\*.csproj' version: '{version}' package_version: '{version}' before_build: - ps: >- dotnet restore Push-Location "src/Noobot.Console/Config...
version: 3.1.{build} skip_tags: true image: Visual Studio 2017 configuration: Release dotnet_csproj: patch: true file: '**\*.csproj' version: '{version}' package_version: '{version}' before_build: - ps: >- dotnet restore Push-Location "src/Noobot.Console/Configuration/" copy "config.default.json" ...
<|file_sep|>original/appveyor.yml version: 3.1.{build} skip_tags: true image: Visual Studio 2017 Preview configuration: Release dotnet_csproj: patch: true file: '**\*.csproj' version: '{version}' package_version: '{version}' before_build: - ps: >- dotnet restore Push-Location "src/Noobot.Console/Config...
6b25867b41823d83ffde38ed25906525d899b7fa
appveyor.yml
appveyor.yml
YAML
<|file_sep|>lib/Events.js.diff original: updated: var events = {}; function getEvents(name) { events[name] = events[name] || []; return events[name]; } function setEvents(name, newEvents) { events[name] = newEvents; } function addEvent(name, event) { var newEvents = getEvents(name).concat(event); setEve...
off: function(name, callback, context) { if (callback) { removeEvent(name, callback, context); } else { removeEvents(name); } return this; }, emit: function(name) { var args = [].slice.call(arguments, 1); getEvents(name).forEach(function(event) { event.callback.apply(...
<|file_sep|>lib/Events.js.diff original: updated: var events = {}; function getEvents(name) { events[name] = events[name] || []; return events[name]; } function setEvents(name, newEvents) { events[name] = newEvents; } function addEvent(name, event) { var newEvents = getEvents(name).concat(event); setEve...
f6278a3b08f23637bfc3d848f864dc971cfa94ce
lib/Events.js
lib/Events.js
JavaScript
<|file_sep|>original/text_import.sh #!/bin/bash PAK=pak128 wget -O texts.zip https://makie.de/translator/data/tab/language_pack-Scenario+Tutorial+$PAK.zip mkdir tmp && cd tmp unzip ../texts.zip rsync -avr --exclude='en.tab' --exclude='_objectlist.txt' --exclude='_translate_users.txt' * .. cd .. rm -r tmp rm texts.zip g...
#!/bin/bash PAK=pak128 wget -q --post-data "version=313&choice=all&submit=Export!" --delete-after https://translator.simutrans.com/script/main.php?page=wrap wget -O texts.zip https://makie.de/translator/data/tab/language_pack-Scenario+Tutorial+$PAK.zip mkdir tmp && cd tmp unzip ../texts.zip rsync -avr --exclude='en.ta...
<|file_sep|>original/text_import.sh #!/bin/bash PAK=pak128 wget -O texts.zip https://makie.de/translator/data/tab/language_pack-Scenario+Tutorial+$PAK.zip mkdir tmp && cd tmp unzip ../texts.zip rsync -avr --exclude='en.tab' --exclude='_objectlist.txt' --exclude='_translate_users.txt' * .. cd .. rm -r tmp rm texts.zip g...
992df71f8a65cf11ccb1d28037c945836347a06b
text_import.sh
text_import.sh
Shell
<|file_sep|>original/test/test_pocket_parser.py <|file_sep|>current/test/test_pocket_parser.py <|file_sep|>updated/test/test_pocket_parser.py
import unittest import utils import os import sys import re import subprocess TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(TOPDIR) import pocket_parser class Tests(unittest.TestCase): def test_get_cnc(self): """Test get_cnc() function""" res = pocket_par...
<|file_sep|>original/test/test_pocket_parser.py <|file_sep|>current/test/test_pocket_parser.py <|file_sep|>updated/test/test_pocket_parser.py import unittest import utils import os import sys import re import subprocess TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(TOPDIR) i...
16f0ec2d0e5c33126ddb01604213c6a14115e605
test/test_pocket_parser.py
test/test_pocket_parser.py
Python
<|file_sep|>original/benchmark/bench-result-set-raw.c <|file_sep|>current/benchmark/bench-result-set-raw.c <|file_sep|>updated/benchmark/bench-result-set-raw.c
/* Copyright (C) 2015-2019 Sutou Kouhei <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be use...
<|file_sep|>original/benchmark/bench-result-set-raw.c <|file_sep|>current/benchmark/bench-result-set-raw.c <|file_sep|>updated/benchmark/bench-result-set-raw.c /* Copyright (C) 2015-2019 Sutou Kouhei <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms o...
5df51532660f881a1c5f1122cd52410559780f17
benchmark/bench-result-set-raw.c
benchmark/bench-result-set-raw.c
C
<|file_sep|>original/prep-package.cmd cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off sm...
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off smartypants. third-party\discount-2.1.6-...
<|file_sep|>original/prep-package.cmd cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off sm...
ae0cfc90df47148721367010a7747d2e8bbbf3d0
prep-package.cmd
prep-package.cmd
Batchfile
<|file_sep|>original/app/views/entities/index.html.haml = repository_nav parent.repository, :ontologies, disable_actions: true = ontology_nav parent, "Ontology Content" - unless parent.owl? = pagination do - unless collection.blank? = render partial: 'list' - else %h3 No entities found - else ...
= repository_nav parent.repository, :ontologies, disable_actions: true = ontology_nav parent, :entities - unless parent.owl? = pagination do - unless collection.blank? = render partial: 'list' - else %h3 No entities found - else - if @hierarchy_exists - unless show_classes? - unless...
<|file_sep|>original/app/views/entities/index.html.haml = repository_nav parent.repository, :ontologies, disable_actions: true = ontology_nav parent, "Ontology Content" - unless parent.owl? = pagination do - unless collection.blank? = render partial: 'list' - else %h3 No entities found - else ...
e62d927d50720f72fc891ee24060957e40622f51
app/views/entities/index.html.haml
app/views/entities/index.html.haml
Haml