prompt
stringlengths
77
6.9k
completion
stringlengths
1
3.38k
text
stringlengths
163
9.03k
commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
lang
stringclasses
277 values
<|file_sep|>original/test/elm-package.json { "version": "5.2.1", "summary": "Tests for elm-signal-extra", "repository": "https://github.com/Apanatshka/elm-signal-extra.git", "license": "MIT", "source-directories": [ ".", "../src" ], "exposed-modules": [ ], "native-mod...
{ "version": "5.2.1", "summary": "Tests for elm-signal-extra", "repository": "https://github.com/Apanatshka/elm-signal-extra.git", "license": "MIT", "source-directories": [ ".", "../src" ], "exposed-modules": [ ], "native-modules": true, "dependencies": { ...
<|file_sep|>original/test/elm-package.json { "version": "5.2.1", "summary": "Tests for elm-signal-extra", "repository": "https://github.com/Apanatshka/elm-signal-extra.git", "license": "MIT", "source-directories": [ ".", "../src" ], "exposed-modules": [ ], "native-mod...
d950336ae0b0dd9fb3d4c18794e34d0230fcb7ca
test/elm-package.json
test/elm-package.json
JSON
<|file_sep|>static/locales/en-GB/messages.properties.diff original: updated: navigation-title=Pontoon Intro navigation-developers=Developers <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Po...
# Title tag # Navigation navigation-title=Pontoon Intro navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. headline-2=In Place. call-to-action=Tell Me More # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations rig...
<|file_sep|>static/locales/en-GB/messages.properties.diff original: updated: navigation-title=Pontoon Intro navigation-developers=Developers <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Po...
ebe9d9d91ef3f2baccbfddfc964d1e86a77e2fb1
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
INI
<|file_sep|>original/doc/setup.md <|file_sep|>current/doc/setup.md <|file_sep|>updated/doc/setup.md
# Setting up the application for development ## Install required gems gem install bundler bundle install ## Create your own repository with CocoaPods Head over to Eloy's test repository and fork it to your account: https://github.com/alloy/push.cocoapods.org-test Now configure the whole thing in your ap...
<|file_sep|>original/doc/setup.md <|file_sep|>current/doc/setup.md <|file_sep|>updated/doc/setup.md # Setting up the application for development ## Install required gems gem install bundler bundle install ## Create your own repository with CocoaPods Head over to Eloy's test repository and fork it to your ac...
f0edb9734bf53edd8c9057be05a54ff8df0acaed
doc/setup.md
doc/setup.md
Markdown
<|file_sep|>original/run.py def hello_monkey(): """Respond to incoming requests""" resp = twilio.twiml.Response() with resp.gather(numDigits=1, action="/handle-key", method="POST") as g: g.say("press 1 or something") return str(resp) @app.route("/handle-key", methods=['GET', 'POST']) def han...
@app.route("/", methods=['GET', 'POST']) def hello_monkey(): """Respond to incoming requests""" resp = twilio.twiml.Response() with resp.gather(numDigits=1, action="/handle-key", method="POST") as g: g.say("press 1 or something") return str(resp) @app.route("/handle-key", methods=['GET', 'PO...
<|file_sep|>original/run.py def hello_monkey(): """Respond to incoming requests""" resp = twilio.twiml.Response() with resp.gather(numDigits=1, action="/handle-key", method="POST") as g: g.say("press 1 or something") return str(resp) @app.route("/handle-key", methods=['GET', 'POST']) def han...
5252e86a9613545cbd6db2f0867276abac994282
run.py
run.py
Python
<|file_sep|>original/src/app/marmoset/field.html <div class="form-group" ng-class="{'required': field.required(), 'has-error': !valid()}" ng-show="field.visible()"> <label class="control-label col-md-3">{{field.label}}</label> <div class="col-md-9"> <div marmoset-widget="field"></div> <div class=...
<div class="form-group" ng-class="{'required': field.required(), 'has-error': !valid()}" ng-show="field.visible()"> <label class="control-label col-md-3">{{field.label}}</label> <div class="col-md-9"> <div marmoset-widget="field"></div> <div class="help-block" ng-show="field.help" ng-bind-html="f...
<|file_sep|>original/src/app/marmoset/field.html <div class="form-group" ng-class="{'required': field.required(), 'has-error': !valid()}" ng-show="field.visible()"> <label class="control-label col-md-3">{{field.label}}</label> <div class="col-md-9"> <div marmoset-widget="field"></div> <div class=...
cce0471f1cc0f88cbad80883e9f04349f1950a54
src/app/marmoset/field.html
src/app/marmoset/field.html
HTML
<|file_sep|>spec/support/shared_examples/redirect_for_non_students.rb.diff original: updated: shared_examples_for 'disallows access to students namespace' do skip end <|file_sep|>spec/support/shared_examples/redirect_for_non_students.rb.diff original: it 'redirects to / with an error message' do ski...
end context 'as a coach' do it_behaves_like 'disallows access to students namespace' end context 'as a mentor' do it_behaves_like 'disallows access to students namespace' end context 'as a student' do context 'who is not poart of an accepted team' do it_behaves_like 'disallows access to...
<|file_sep|>spec/support/shared_examples/redirect_for_non_students.rb.diff original: updated: shared_examples_for 'disallows access to students namespace' do skip end <|file_sep|>spec/support/shared_examples/redirect_for_non_students.rb.diff original: it 'redirects to / with an error message' do ski...
66e05e502fbcc485f71586db8010d2615d74a8ca
spec/support/shared_examples/redirect_for_non_students.rb
spec/support/shared_examples/redirect_for_non_students.rb
Ruby
<|file_sep|>packages/da/datetime.yaml.diff original: homepage: http://github.com/esessoms/datetime updated: homepage: http://github.com/stackbuilders/datetime <|file_sep|>packages/da/datetime.yaml.diff original: hash: 7f4e22fcbb367d3881afe4ac88f9a5ec39076cbf266e1dd20e3f3e971b684c3e test-bench-deps: {} maintainer: nubga...
changelog: '' basic-deps: base: <5 time: ! '>=1.1.2.2' old-time: ! '>=1.0.0.1' old-locale: ! '>=1.0.0.1' all-versions: - '0.1' - '0.2' - '0.2.1' - '0.3.0' - '0.3.1' author: Eric Sessoms <nubgames@gmail.com> latest: '0.3.1' description-type: haddock description: ! 'Provides several utilities for easily convertin...
<|file_sep|>packages/da/datetime.yaml.diff original: homepage: http://github.com/esessoms/datetime updated: homepage: http://github.com/stackbuilders/datetime <|file_sep|>packages/da/datetime.yaml.diff original: hash: 7f4e22fcbb367d3881afe4ac88f9a5ec39076cbf266e1dd20e3f3e971b684c3e test-bench-deps: {} maintainer: nubga...
8b9090bd370797b326e3ed3b5574a8e1e0fd7993
packages/da/datetime.yaml
packages/da/datetime.yaml
YAML
<|file_sep|>original/spec/models/spree/product_set_spec.rb <|file_sep|>current/spec/models/spree/product_set_spec.rb <|file_sep|>updated/spec/models/spree/product_set_spec.rb
require 'spec_helper' describe Spree::ProductSet do describe '#save' do context 'when passing :collection_attributes' do let(:product_set) do described_class.new(collection_attributes: collection_hash) end context 'when the product does not exist yet' do let(:collection_hash) d...
<|file_sep|>original/spec/models/spree/product_set_spec.rb <|file_sep|>current/spec/models/spree/product_set_spec.rb <|file_sep|>updated/spec/models/spree/product_set_spec.rb require 'spec_helper' describe Spree::ProductSet do describe '#save' do context 'when passing :collection_attributes' do let(:prod...
f54c69cbbab37caa0d3e448a01daa8981a7f7825
spec/models/spree/product_set_spec.rb
spec/models/spree/product_set_spec.rb
Ruby
<|file_sep|>bin/main.ml.diff original: struct type t = Pervasives.in_channel updated: struct type t = Pervasives.in_channel type buffer = Bytes.t <|file_sep|>bin/main.ml.diff original: let std = Pervasives.stdin updated: let std = Pervasives.stdin <|file_sep|>bin/main.ml.diff original: ...
end module Inflate = Inflate.Make(Input)(struct include Bytes let of_bytes x = x end) module Deflate = Deflate.Make(Input)( Bitstream.StreamNativeInt( Bitstream.Target( Bitstream.NativeInt( Bitstream.BufferNativeInt)))) let () = let buffer = Bytes.create 1 in let inflater = Infla...
<|file_sep|>bin/main.ml.diff original: struct type t = Pervasives.in_channel updated: struct type t = Pervasives.in_channel type buffer = Bytes.t <|file_sep|>bin/main.ml.diff original: let std = Pervasives.stdin updated: let std = Pervasives.stdin <|file_sep|>bin/main.ml.diff original: ...
16ab5f94f98e3e0f6086ed3b01c1069d47e1ed7b
bin/main.ml
bin/main.ml
OCaml
<|file_sep|>original/run_dev.sh <|file_sep|>current/run_dev.sh <|file_sep|>updated/run_dev.sh
host=localhost port=5432 server_port=3000 postgrest --db-host $host --db-port $port --db-name wellington_transit --port $server_port --db-user $USER --db-pool 200 --anonymous $USER
<|file_sep|>original/run_dev.sh <|file_sep|>current/run_dev.sh <|file_sep|>updated/run_dev.sh host=localhost port=5432 server_port=3000 postgrest --db-host $host --db-port $port --db-name wellington_transit --port $server_port --db-user $USER --db-pool 200 --anonymous $USER
933a2a6c48eda6a91b53dc36247a22ed3d9a0747
run_dev.sh
run_dev.sh
Shell
<|file_sep|>original/composer.json ], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-limits", "issues": "https://github.com/dreamfactorysoftware/df-limits/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "...
], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-limits", "issues": "https://github.com/dreamfactorysoftware/df-limits/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "dev", "prefer-stable": true, "r...
<|file_sep|>original/composer.json ], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-limits", "issues": "https://github.com/dreamfactorysoftware/df-limits/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "...
e5036f6ed9e1ede0e81df303430876acf83020f1
composer.json
composer.json
JSON
<|file_sep|>original/importlib_resources/tests/test_abc.py <|file_sep|>current/importlib_resources/tests/test_abc.py <|file_sep|>updated/importlib_resources/tests/test_abc.py
import io import zipfile import unittest from importlib_resources._compat import ZipPath, Path from importlib_resources.abc import Traversable class TraversableTests(unittest.TestCase): def test_zip_path_traversable(self): zf = zipfile.ZipFile(io.BytesIO(), 'w') assert isinstance(ZipPath(zf), Tra...
<|file_sep|>original/importlib_resources/tests/test_abc.py <|file_sep|>current/importlib_resources/tests/test_abc.py <|file_sep|>updated/importlib_resources/tests/test_abc.py import io import zipfile import unittest from importlib_resources._compat import ZipPath, Path from importlib_resources.abc import Traversable...
f647b1bc68a76d990d452d50bb2d67981db12c4c
importlib_resources/tests/test_abc.py
importlib_resources/tests/test_abc.py
Python
<|file_sep|>readme.markdown.diff original: **important: when using require('path/to/file.coffee') remember to use .coffee extension - soon to be fixed, [the browserify devs have relented](https://github.com/shtylman/node-browser-resolve/issues/20#issuecomment-18303661)! go [+1 this pr](https://github.com/shtylman/node...
``` when you compile your app, just pass `-t coffeeify` to browserify: ``` $ browserify -t coffeeify foo.coffee > bundle.js $ node bundle.js 555 ``` you can omit the `.coffee` extension from your requires if you add the extension to browserify's module extensions: ``` js module.exports = require('./baz')(5) ``` ``...
<|file_sep|>readme.markdown.diff original: **important: when using require('path/to/file.coffee') remember to use .coffee extension - soon to be fixed, [the browserify devs have relented](https://github.com/shtylman/node-browser-resolve/issues/20#issuecomment-18303661)! go [+1 this pr](https://github.com/shtylman/node...
9d57acac7ae5d8294b1f48f6f1d5ff4f6a0de471
readme.markdown
readme.markdown
Markdown
<|file_sep|>original/sharepa/__init__.py from sharepa.search import ShareSearch, basic_search # noqa from sharepa.analysis import bucket_to_dataframe, merge_dataframes # noqa def source_counts(): return bucket_to_dataframe( 'total_source_counts', basic_search.execute().aggregations.sourceAgg.buc...
from sharepa.search import ShareSearch, basic_search # noqa from sharepa.analysis import bucket_to_dataframe, merge_dataframes # noqa def source_counts(): return bucket_to_dataframe( 'total_source_counts', ShareSearch().execute().aggregations.sourceAgg.buckets )
<|file_sep|>original/sharepa/__init__.py from sharepa.search import ShareSearch, basic_search # noqa from sharepa.analysis import bucket_to_dataframe, merge_dataframes # noqa def source_counts(): return bucket_to_dataframe( 'total_source_counts', basic_search.execute().aggregations.sourceAgg.buc...
ad2fd7bf2ccfee18856e6f94b996a630ae8362ee
sharepa/__init__.py
sharepa/__init__.py
Python
<|file_sep|>original/spec/unit/mixin/azure_metadata_spec.rb <|file_sep|>current/spec/unit/mixin/azure_metadata_spec.rb <|file_sep|>updated/spec/unit/mixin/azure_metadata_spec.rb
# # Author:: Tim Smith <tsmith@chef.io> # Copyright:: 2017 Chef Software, Inc. # License:: Apache License, Version 2.0 # # 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.apach...
<|file_sep|>original/spec/unit/mixin/azure_metadata_spec.rb <|file_sep|>current/spec/unit/mixin/azure_metadata_spec.rb <|file_sep|>updated/spec/unit/mixin/azure_metadata_spec.rb # # Author:: Tim Smith <tsmith@chef.io> # Copyright:: 2017 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under th...
19c1d333ea04b98b1cfeffe2752c770e228a77a7
spec/unit/mixin/azure_metadata_spec.rb
spec/unit/mixin/azure_metadata_spec.rb
Ruby
<|file_sep|>original/proc_images.py <|file_sep|>current/proc_images.py <|file_sep|>updated/proc_images.py
import numpy as np import cv from pytesser import * from common import * def proc_ex (ex): try: text = (image_file_to_string(img_filename(ex[0])),) except IOError: print "Exception thrown" text = ("",) return text + tuple(ex) def write_txt (fname, txt): with open(fname, 'wb')...
<|file_sep|>original/proc_images.py <|file_sep|>current/proc_images.py <|file_sep|>updated/proc_images.py import numpy as np import cv from pytesser import * from common import * def proc_ex (ex): try: text = (image_file_to_string(img_filename(ex[0])),) except IOError: print "Exception throw...
0485a265c5076402acc482db6789fb46bc313451
proc_images.py
proc_images.py
Python
<|file_sep|>packages/no/non-empty-zipper.yaml.diff original: hash: 1a53f51ff252dfd9e4b71182f9b18529828163d13f7726fc232e147ee2507954 updated: hash: e61e65dc2a2e4b59c59d29a738e4faa47ea5b66ec69fbe3c3790caf7681b058c <|file_sep|>packages/no/non-empty-zipper.yaml.diff original: updated: - '0.1.0.8' <|file_sep|>original/pack...
all-versions: - '0.1.0.0' - '0.1.0.1' - '0.1.0.2' - '0.1.0.3' - '0.1.0.4' - '0.1.0.5' - '0.1.0.6' - '0.1.0.7' - '0.1.0.8' author: Isaac Shapira latest: '0.1.0.8' description-type: haddock description: ! 'The Zipper for NonEmpty. Useful for things like tabs, button groups, and slideshows. Basically any case in which ...
<|file_sep|>packages/no/non-empty-zipper.yaml.diff original: hash: 1a53f51ff252dfd9e4b71182f9b18529828163d13f7726fc232e147ee2507954 updated: hash: e61e65dc2a2e4b59c59d29a738e4faa47ea5b66ec69fbe3c3790caf7681b058c <|file_sep|>packages/no/non-empty-zipper.yaml.diff original: updated: - '0.1.0.8' <|file_sep|>original/pack...
4e9f407b90596771cfec16c0ea7ce8e05973f919
packages/no/non-empty-zipper.yaml
packages/no/non-empty-zipper.yaml
YAML
<|file_sep|>rand_chacha/CHANGELOG.md.diff original: ## [0.2.2] - 2020-01-20 updated: ## [0.2.2] - 2020-03-09 <|file_sep|>original/rand_chacha/CHANGELOG.md # Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and ...
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.2.2] - 2020-03-09 - Integrate `c2-chacha`, reducing dependency c...
<|file_sep|>rand_chacha/CHANGELOG.md.diff original: ## [0.2.2] - 2020-01-20 updated: ## [0.2.2] - 2020-03-09 <|file_sep|>original/rand_chacha/CHANGELOG.md # Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and ...
c67a857b160782c0f8f313a4ed71a44249d87a9a
rand_chacha/CHANGELOG.md
rand_chacha/CHANGELOG.md
Markdown
<|file_sep|>original/pidgin2adium.gemspec #!/usr/bin/ruby # Spec reference: # http://docs.rubygems.org/read/chapter/20 spec = Gem::Specification.new do |s| s.name = 'pidgin2adium' s.version = '0.0.1' # Summary is required s.summary = "Converts Pidgin logs and statuses to Adium format and makes them available ...
#!/usr/bin/ruby # Spec reference: # http://docs.rubygems.org/read/chapter/20 spec = Gem::Specification.new do |s| s.name = 'pidgin2adium' s.version = '1.0.0' # Summary is required s.summary = "Converts Pidgin logs and statuses to Adium format and makes them available to Adium." s.description = %q{ Con...
<|file_sep|>original/pidgin2adium.gemspec #!/usr/bin/ruby # Spec reference: # http://docs.rubygems.org/read/chapter/20 spec = Gem::Specification.new do |s| s.name = 'pidgin2adium' s.version = '0.0.1' # Summary is required s.summary = "Converts Pidgin logs and statuses to Adium format and makes them available ...
87ff3b2fab95051a054ce7205f4d42036a9f6efd
pidgin2adium.gemspec
pidgin2adium.gemspec
Ruby
<|file_sep|>original/check/tests/check_check_main.c fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, make_log_suite()); srunner_add_suite(sr, make_limit_suite()); srunner_add...
fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, make_log_suite()); srunner_add_suite(sr, make_limit_suite()); srunner_add_suite(sr, make_fork_suite()); srunner_add_suite(s...
<|file_sep|>original/check/tests/check_check_main.c fork_setup(); setup_fixture(); sr = srunner_create (make_master_suite()); srunner_add_suite(sr, make_list_suite()); srunner_add_suite(sr, make_msg_suite()); srunner_add_suite(sr, make_log_suite()); srunner_add_suite(sr, make_limit_suite()); srunner_add...
6c39b5e3015535d249699cf4c7dd9e3bfa9ed550
check/tests/check_check_main.c
check/tests/check_check_main.c
C
<|file_sep|>original/app/db/migrations/1517782491551-RemoveMediaThumbs.ts <|file_sep|>current/app/db/migrations/1517782491551-RemoveMediaThumbs.ts <|file_sep|>updated/app/db/migrations/1517782491551-RemoveMediaThumbs.ts
import {MigrationInterface, QueryRunner} from "typeorm"; export class RemoveMediaThumbs1517782491551 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<any> { console.log('Removing thumb_s3key from table media_storage') queryRunner.query(`ALTER TABLE media_storage D...
<|file_sep|>original/app/db/migrations/1517782491551-RemoveMediaThumbs.ts <|file_sep|>current/app/db/migrations/1517782491551-RemoveMediaThumbs.ts <|file_sep|>updated/app/db/migrations/1517782491551-RemoveMediaThumbs.ts import {MigrationInterface, QueryRunner} from "typeorm"; export class RemoveMediaThumbs1517782491...
c3c9a28a1c2dda05408cb3c40f7fa99259ebd1ff
app/db/migrations/1517782491551-RemoveMediaThumbs.ts
app/db/migrations/1517782491551-RemoveMediaThumbs.ts
TypeScript
<|file_sep|>dptcms/logger.php.diff original: updated: /** * @notes This is a messy class. It should be refactored. */ <|file_sep|>dptcms/logger.php.diff original: error_log('['.date("Y-m-d H:i:s")."][INFO] ".$nice." ".$raw."\r\n", 3, Config::$logfile); updated: if(Config::$logDestination == 'syslog')...
error_log('['.date("Y-m-d H:i:s")."][WARNING] ".$nice." ".$raw."\r\n"); } else { error_log('['.date("Y-m-d H:i:s")."][WARNING] ".$nice." ".$raw."\r\n", 3, Config::$logfile); } } public static function logError($nice, $raw = '') { if(Config::$l...
<|file_sep|>dptcms/logger.php.diff original: updated: /** * @notes This is a messy class. It should be refactored. */ <|file_sep|>dptcms/logger.php.diff original: error_log('['.date("Y-m-d H:i:s")."][INFO] ".$nice." ".$raw."\r\n", 3, Config::$logfile); updated: if(Config::$logDestination == 'syslog')...
cdabe360876af512722fcf3230e75b49c302f435
dptcms/logger.php
dptcms/logger.php
PHP
<|file_sep|>original/version/3_6.sh #!/bin/bash -e echo "================= Installing Python 3.6 ===================" sudo apt-get install -y \ python3.6=3.6.4* \ python3.6-dev=3.6.4* # Install virtualenv virtualenv -p python3.6 $HOME/venv/3.6 # Install pip packages . $HOME/venv/3.6/bin/activate pip install nose...
#!/bin/bash -e echo "================= Installing Python 3.6 ===================" sudo apt-get install -y \ python3.6=3.6.5* \ python3.6-dev=3.6.5* # Install virtualenv virtualenv -p python3.6 $HOME/venv/3.6 # Install pip packages . $HOME/venv/3.6/bin/activate pip install nose mock pytest coverage deactivate ech...
<|file_sep|>original/version/3_6.sh #!/bin/bash -e echo "================= Installing Python 3.6 ===================" sudo apt-get install -y \ python3.6=3.6.4* \ python3.6-dev=3.6.4* # Install virtualenv virtualenv -p python3.6 $HOME/venv/3.6 # Install pip packages . $HOME/venv/3.6/bin/activate pip install nose...
8128a790f249c7f4b554d5e5d00a48eb5bf469bf
version/3_6.sh
version/3_6.sh
Shell
<|file_sep|>original/zsh/init/editor.sh export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' alias vi='ec' <|file_sep|>current/zsh/init/editor.sh export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' alias vi='ec' <|file_sep|>updated/zsh/init/editor.sh
export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' alias vi='ec' __append-path-entry $HOME/.cask/bin
<|file_sep|>original/zsh/init/editor.sh export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' alias vi='ec' <|file_sep|>current/zsh/init/editor.sh export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' alias vi='ec' <|file_sep|>updated/zsh/init/editor.sh export EDITOR='ec' export VISUAL=$EDITOR alias vim='ec' ali...
d68e3e3ae59bc4e3e8369c3b63584796890d4a64
zsh/init/editor.sh
zsh/init/editor.sh
Shell
<|file_sep|>original/LICENSE.txt Copyright (c) 2015-2016 ka MIT License 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, ...
Copyright (c) 2015-2017 ka MIT License 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, distribut...
<|file_sep|>original/LICENSE.txt Copyright (c) 2015-2016 ka MIT License 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, ...
36ba72026104bb4914e1e21035e2392dede27400
LICENSE.txt
LICENSE.txt
Text
<|file_sep|>index.html.diff original: <div id="home"> <h1>Blog Posts</h1> <ul class="posts"> {% for post in site.posts %} <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li> {% endfor %} </ul> updated: <div class="row"> <div class="col-xs-...
<p> I'm a Student (Computer Science), a Web Developer and an avid Kayaker. </p> <p> I know this is a bit sparse, &amp; boring, but it is better than before.<br /> Pop back in a bit and it might have been improved! </p> ...
<|file_sep|>index.html.diff original: <div id="home"> <h1>Blog Posts</h1> <ul class="posts"> {% for post in site.posts %} <li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li> {% endfor %} </ul> updated: <div class="row"> <div class="col-xs-...
4e61bba6f0f280ce9f274744e29e6752caaba1e4
index.html
index.html
HTML
<|file_sep|>src/App.jsx.diff original: // import PropTypes from 'prop-types'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; updated: import { BrowserRouter, Switch, Route } from 'react-router-dom'; <|file_sep|>src/App.jsx.diff original: updated: const urlBase = process.env.NODE_ENV === tru...
const theme = { visibilityTransitionLength: 350, svgDefinitionsFilePath: `${urlBase}assets/icons.svg` }; export default function App() { return ( <BrowserRouter basename={urlBase}> <ThemeProvider theme={theme}> <div className="container"> <Switch> <Route path="/" exact com...
<|file_sep|>src/App.jsx.diff original: // import PropTypes from 'prop-types'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; updated: import { BrowserRouter, Switch, Route } from 'react-router-dom'; <|file_sep|>src/App.jsx.diff original: updated: const urlBase = process.env.NODE_ENV === tru...
e3a2434f8dd10b114aa8abd1ee8efbbb8db753a8
src/App.jsx
src/App.jsx
JSX
<|file_sep|>original/config/module.config.php ), ), ), ), ), ), ), 'view_manager' => array( 'template_map' => array( 'layout/admin' => __DIR__ . '/../view/layout/admin.phtml', ...
'action' => 'open' ), ), ), ), ), ), ), 'view_manager' => array( 'template_map' => array( 'layout/admin' => __DIR__ . '/../view/layout/admin.phtml'...
<|file_sep|>original/config/module.config.php ), ), ), ), ), ), ), 'view_manager' => array( 'template_map' => array( 'layout/admin' => __DIR__ . '/../view/layout/admin.phtml', ...
da9850d71cf8ba9ce892ea242ce04caccc46cf8f
config/module.config.php
config/module.config.php
PHP
<|file_sep|>original/postgresql/types/io/pg_network.py return pack((a.version, None, a.packed)) def cidr_pack(ob, pack = lib.net_pack, Constructor = ipaddress.ip_network): a = Constructor(ob) return pack((a.version, a.prefixlen, a.network_address.packed)) def inet_unpack(data, unpack = lib.net_unpack, Constructor ...
def inet_pack(ob, pack = lib.net_pack, Constructor = ipaddress.ip_address): a = Constructor(ob) return pack((a.version, None, a.packed)) def cidr_pack(ob, pack = lib.net_pack, Constructor = ipaddress.ip_network): a = Constructor(ob) return pack((a.version, a.prefixlen, a.network_address.packed)) def inet_unpack(d...
<|file_sep|>original/postgresql/types/io/pg_network.py return pack((a.version, None, a.packed)) def cidr_pack(ob, pack = lib.net_pack, Constructor = ipaddress.ip_network): a = Constructor(ob) return pack((a.version, a.prefixlen, a.network_address.packed)) def inet_unpack(data, unpack = lib.net_unpack, Constructor ...
52679561fce3d03c0c2838c209067b070d664e94
postgresql/types/io/pg_network.py
postgresql/types/io/pg_network.py
Python
<|file_sep|>original/package.json { "name": "supchik", "version": "0.2.5", "description": "Supchik like Borschik but with source maps support and one more thing... things.", "main": "./supchik.js", "bin": { "supchik": "./cli.js" }, "engines": { "node": ">=0.8.0" }, "repository": { "type": ...
{ "name": "supchik", "version": "0.2.5", "description": "Supchik like Borschik but with source maps support and one more thing... things.", "main": "./supchik.js", "bin": { "supchik": "./cli.js" }, "engines": { "node": ">=0.12.0" }, "repository": { "type": "git", "url": "http://github....
<|file_sep|>original/package.json { "name": "supchik", "version": "0.2.5", "description": "Supchik like Borschik but with source maps support and one more thing... things.", "main": "./supchik.js", "bin": { "supchik": "./cli.js" }, "engines": { "node": ">=0.8.0" }, "repository": { "type": ...
235385df708b67ba0a713a05818b2c277a1063a9
package.json
package.json
JSON
<|file_sep|>original/docker-entrypoint.sh #!/bin/sh export CKPT_REDIS="${REDIS_PORT_6379_TCP_ADDR}:${REDIS_PORT_6379_TCP_PORT}" export CKPT_AMQP_URL="amqp://guest:guest@${RABBITMQ_PORT_5672_TCP_ADDR}:${RABBITMQ_PORT_5672_TCP_PORT}" sleep 5 ./backend-services <|file_sep|>current/docker-entrypoint.sh #!/bin/sh export CKP...
#!/bin/sh export CKPT_REDIS="redis:6379" export CKPT_AMQP_URL="amqp://guest:guest@rabbitmq:5672" sleep 5 ./backend-services
<|file_sep|>original/docker-entrypoint.sh #!/bin/sh export CKPT_REDIS="${REDIS_PORT_6379_TCP_ADDR}:${REDIS_PORT_6379_TCP_PORT}" export CKPT_AMQP_URL="amqp://guest:guest@${RABBITMQ_PORT_5672_TCP_ADDR}:${RABBITMQ_PORT_5672_TCP_PORT}" sleep 5 ./backend-services <|file_sep|>current/docker-entrypoint.sh #!/bin/sh export CKP...
72d0b57971d99beff4b977a3f32aa6e5d1cb4f37
docker-entrypoint.sh
docker-entrypoint.sh
Shell
<|file_sep|>app/assets/javascripts/shoppe/products.coffee.diff original: # updated: # <|file_sep|>original/app/assets/javascripts/shoppe/products.coffee # calculateTax = (form, invokeField)-> if $('select#product_tax_rate_id', form).val().length > 0 $('input#product_price_including_tax', form).prop('...
# calculateTax = (form, invokeField)-> if $('select#product_tax_rate_id', form).val().length > 0 $('input#product_price_including_tax', form).prop('disabled', false) else $('input#product_price_including_tax', form).prop('disabled', true) $('input#product_price_including_tax', form).val($(...
<|file_sep|>app/assets/javascripts/shoppe/products.coffee.diff original: # updated: # <|file_sep|>original/app/assets/javascripts/shoppe/products.coffee # calculateTax = (form, invokeField)-> if $('select#product_tax_rate_id', form).val().length > 0 $('input#product_price_including_tax', form).prop('...
4720dd5eafd6a7c78dc08fe4269edcd3cd872081
app/assets/javascripts/shoppe/products.coffee
app/assets/javascripts/shoppe/products.coffee
CoffeeScript
<|file_sep|>original/config/initializers/pusher.rb require 'pusher' # This is handled automatically in Heroku if Rails.env.development? Pusher.app_id = ENV['PUSHER_APP_ID'] Pusher.key = ENV['PUSHER_KEY'] Pusher.secret = ENV['PUSHER_SECRET'] Pusher.cluster = ENV['PUSHER_CLUSTER'] end <|file_sep|>current/config/...
require 'pusher' # This is handled automatically in Heroku if Rails.env.development? || Rails.env.test? Pusher.app_id = ENV['PUSHER_APP_ID'] Pusher.key = ENV['PUSHER_KEY'] Pusher.secret = ENV['PUSHER_SECRET'] Pusher.cluster = ENV['PUSHER_CLUSTER'] end
<|file_sep|>original/config/initializers/pusher.rb require 'pusher' # This is handled automatically in Heroku if Rails.env.development? Pusher.app_id = ENV['PUSHER_APP_ID'] Pusher.key = ENV['PUSHER_KEY'] Pusher.secret = ENV['PUSHER_SECRET'] Pusher.cluster = ENV['PUSHER_CLUSTER'] end <|file_sep|>current/config/...
20c54875f0de2945b48961c19ecda197b6c3320c
config/initializers/pusher.rb
config/initializers/pusher.rb
Ruby
<|file_sep|>original/.travis.yml # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # li...
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. lan...
<|file_sep|>original/.travis.yml # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # li...
98a4989da3a27beb45adf4afdea64182173a92ae
.travis.yml
.travis.yml
YAML
<|file_sep|>original/redux/src/main/browser/main-window.js import BaseWindow from './base-window' const key = 'MainWindow'; class MainWindow extends BaseWindow { static KEY = key; constructor(url) { //TODO: implement dummy window buttons super(url, { width: 500, height: 800 , frame: false }); } get ...
import BaseWindow from './base-window' const key = 'MainWindow'; class MainWindow extends BaseWindow { static KEY = key; constructor(url) { //TODO: implement dummy window buttons super(url, { width: 500, minWidth: 400, height: 800, minHeight: 140, frame: false }); } get key() { return key; } }...
<|file_sep|>original/redux/src/main/browser/main-window.js import BaseWindow from './base-window' const key = 'MainWindow'; class MainWindow extends BaseWindow { static KEY = key; constructor(url) { //TODO: implement dummy window buttons super(url, { width: 500, height: 800 , frame: false }); } get ...
20f505663951000bfaca5416fa7b541802462a09
redux/src/main/browser/main-window.js
redux/src/main/browser/main-window.js
JavaScript
<|file_sep|>original/app/images/image-view.html <div class="row"> <div *ngIf="doc" class="col-md-9"> <img src="mediastore/{{doc.resource['filename']}}"> </div> <div *ngIf="doc" class="col-md-3"> <!--<document-view [document]="doc"></document-view>--> </div> </div> <|file_sep|>current...
<div class="row"> <div *ngIf="doc" class="col-md-9"> <img src="mediastore/{{doc.resource['filename']}}"> </div> <div *ngIf="doc" class="col-md-3"> Placeholder for metadata view <!--<document-view [document]="doc"></document-view>--> </div> </div>
<|file_sep|>original/app/images/image-view.html <div class="row"> <div *ngIf="doc" class="col-md-9"> <img src="mediastore/{{doc.resource['filename']}}"> </div> <div *ngIf="doc" class="col-md-3"> <!--<document-view [document]="doc"></document-view>--> </div> </div> <|file_sep|>current...
ba930c8a2627dd01d45e7b6e83b6fc23338067fd
app/images/image-view.html
app/images/image-view.html
HTML
<|file_sep|>setup.py.diff original: author='Horst Gutmann', author_email='zerok@zerokspot.com', updated: author='Horst Gutmann, Curtis Maloney', author_email='curtis@tinbrain.net', <|file_sep|>original/setup.py 'Framework :: Django', 'Intended Audience :: Developers', 'License ::...
'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Pro...
<|file_sep|>setup.py.diff original: author='Horst Gutmann', author_email='zerok@zerokspot.com', updated: author='Horst Gutmann, Curtis Maloney', author_email='curtis@tinbrain.net', <|file_sep|>original/setup.py 'Framework :: Django', 'Intended Audience :: Developers', 'License ::...
9913e1ed57717af248370149b6f69127bc4a48f0
setup.py
setup.py
Python
<|file_sep|>cbr2cbz.rb.diff original: updated: require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: cbr2cbz [options] file ..." opts.on("-k", "--keep", "Keep original file") do |k| options[:keep] = k end opts.on_tail("-h", "--help", "Show this message") do puts opts ...
filename_without_ext = File.basename(filename, '.*') # Unrar CBR `unrar e "#{filename}" "#{filename_without_ext}"/` # Create CBZ new_file = filename_without_ext + '.cbz' Zip::ZipFile.open(new_file, 'w') do |zipfile| Dir[filename_without_ext + "/*"].each do |f...
<|file_sep|>cbr2cbz.rb.diff original: updated: require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: cbr2cbz [options] file ..." opts.on("-k", "--keep", "Keep original file") do |k| options[:keep] = k end opts.on_tail("-h", "--help", "Show this message") do puts opts ...
e784ca5c1a7d2a734a950eeb414433244c49c2d6
cbr2cbz.rb
cbr2cbz.rb
Ruby
<|file_sep|>README.md.diff original: * environment: Defaults to production updated: * rails_env: Defaults to production <|file_sep|>original/README.md * environment: Defaults to production * require: Defaults to the deploy[:deploy_to]/current directory. Paths should be relative to the 'current' deploy directory. Here...
* rails_env: Defaults to production * require: Defaults to the deploy[:deploy_to]/current directory. Paths should be relative to the 'current' deploy directory. Here is an example Custom JSON: ```json { "deploy": { "YOURAPPNAME": { "sidekiq": { "rails_env": "production", "require": "confi...
<|file_sep|>README.md.diff original: * environment: Defaults to production updated: * rails_env: Defaults to production <|file_sep|>original/README.md * environment: Defaults to production * require: Defaults to the deploy[:deploy_to]/current directory. Paths should be relative to the 'current' deploy directory. Here...
15a4c1509a91f1f23a54860996614164ad1d23a8
README.md
README.md
Markdown
<|file_sep|>app/assets/stylesheets/smart_answer_builder.css.diff original: updated: .builder-container .option input[type='text'], <|file_sep|>app/assets/stylesheets/smart_answer_builder.css.diff original: width: 450px; updated: width: 100%; <|file_sep|>original/app/assets/stylesheets/smart_answer_builder.css .bu...
.builder-container .option input[type='text'], .builder-container .option select { width: 100%; } .builder-container .options ul { margin: 0; } .builder-container .node .options { border-top: 1px solid #e5e5e5; padding-top: 10px; } .builder-container .option .remove-option { vertical-align: top; } .builde...
<|file_sep|>app/assets/stylesheets/smart_answer_builder.css.diff original: updated: .builder-container .option input[type='text'], <|file_sep|>app/assets/stylesheets/smart_answer_builder.css.diff original: width: 450px; updated: width: 100%; <|file_sep|>original/app/assets/stylesheets/smart_answer_builder.css .bu...
cdabf7c74eb7ca4cd672291f883beb6d90098b3b
app/assets/stylesheets/smart_answer_builder.css
app/assets/stylesheets/smart_answer_builder.css
CSS
<|file_sep|>original/src/main/scala/org/geoscala/geometry/Geometry.scala <|file_sep|>current/src/main/scala/org/geoscala/geometry/Geometry.scala <|file_sep|>updated/src/main/scala/org/geoscala/geometry/Geometry.scala
package org.geoscala.geometry import com.vividsolutions.jts.{geom=>jts} private object ModuleInternals { val factory = new jts.GeometryFactory() } import ModuleInternals.factory._ object Point { def apply(x: Double, y: Double, z: Double): jts.Point = createPoint(new jts.Coordinate(x, y, z)) def apply(x: ...
<|file_sep|>original/src/main/scala/org/geoscala/geometry/Geometry.scala <|file_sep|>current/src/main/scala/org/geoscala/geometry/Geometry.scala <|file_sep|>updated/src/main/scala/org/geoscala/geometry/Geometry.scala package org.geoscala.geometry import com.vividsolutions.jts.{geom=>jts} private object ModuleIntern...
a2a63ffcd58e02d3bb50b3ad0cbda4e6bb92727e
src/main/scala/org/geoscala/geometry/Geometry.scala
src/main/scala/org/geoscala/geometry/Geometry.scala
Scala
<|file_sep|>original/test/integration/ggrc_basic_permissions/test_undeleteable.py <|file_sep|>current/test/integration/ggrc_basic_permissions/test_undeleteable.py <|file_sep|>updated/test/integration/ggrc_basic_permissions/test_undeleteable.py
# Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: andraz@reciprocitylabs.com # Maintained By: andraz@reciprocitylabs.com """ Test that some objects cannot be deleted by anyone. """ from integratio...
<|file_sep|>original/test/integration/ggrc_basic_permissions/test_undeleteable.py <|file_sep|>current/test/integration/ggrc_basic_permissions/test_undeleteable.py <|file_sep|>updated/test/integration/ggrc_basic_permissions/test_undeleteable.py # Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS f...
dbaf49af9553257c63f3374103ccdc1e6c40f20c
test/integration/ggrc_basic_permissions/test_undeleteable.py
test/integration/ggrc_basic_permissions/test_undeleteable.py
Python
<|file_sep|>lib/gds_api/base.rb.diff original: def initialize(environment) updated: def initialize(environment, endpoint_url = nil) <|file_sep|>original/lib/gds_api/base.rb require_relative 'json_utils' class GdsApi::Base include GdsApi::JsonUtils def initialize(environment) adapter_name = self.class.to_s...
require_relative 'json_utils' class GdsApi::Base include GdsApi::JsonUtils def initialize(environment, endpoint_url = nil) adapter_name = self.class.to_s.split("::").last.downcase if endpoint_url self.endpoint = endpoint_url elsif environment == 'development' self.endpoint = "http://#{ada...
<|file_sep|>lib/gds_api/base.rb.diff original: def initialize(environment) updated: def initialize(environment, endpoint_url = nil) <|file_sep|>original/lib/gds_api/base.rb require_relative 'json_utils' class GdsApi::Base include GdsApi::JsonUtils def initialize(environment) adapter_name = self.class.to_s...
d1096de55c0a7e56ad392acb458da9783f1671e4
lib/gds_api/base.rb
lib/gds_api/base.rb
Ruby
<|file_sep|>original/.travis.yml language: node_js node_js: - '0.10' - '0.12' - 'iojs' before_install: - npm i npm@latest -g script: make travis <|file_sep|>current/.travis.yml language: node_js node_js: - '0.10' - '0.12' - 'iojs' before_install: - npm i npm@latest -g script: make travis <|file_se...
language: node_js node_js: - '0.10' - '0.12' - 'iojs' before_install: - npm i npm@latest -g sudo: false script: make travis
<|file_sep|>original/.travis.yml language: node_js node_js: - '0.10' - '0.12' - 'iojs' before_install: - npm i npm@latest -g script: make travis <|file_sep|>current/.travis.yml language: node_js node_js: - '0.10' - '0.12' - 'iojs' before_install: - npm i npm@latest -g script: make travis <|file_se...
909c0c12c0e4daaabc99ea3eb57930cc053a90b7
.travis.yml
.travis.yml
YAML
<|file_sep|>original/config/logger.yml file: log/system.log - level: error file: log/system-error.log server.static: - level: debug file: log/static.log - level: error file: log/static-error.log server.fontomas.font.download: - level: debug file: log/sta...
file: log/system.log - level: error file: log/system-error.log server.static: - level: debug file: log/static.log - level: error file: log/static-error.log server.assets: - level: debug file: log/static.log - level: error file: log/static-er...
<|file_sep|>original/config/logger.yml file: log/system.log - level: error file: log/system-error.log server.static: - level: debug file: log/static.log - level: error file: log/static-error.log server.fontomas.font.download: - level: debug file: log/sta...
a940e8e99608c3d6538bdb00941ad94fdacbbc44
config/logger.yml
config/logger.yml
YAML
<|file_sep|>original/src/main/java/me/hugmanrique/pokedata/sprites/signs/SpriteSign.java package me.hugmanrique.pokedata.sprites.signs; import me.hugmanrique.pokedata.sprites.Sprite; import me.hugmanrique.pokedata.utils.ROM; /** * @author Hugmanrique * @since 02/05/2017 */ public class SpriteSign extends Sprite { ...
package me.hugmanrique.pokedata.sprites.signs; import me.hugmanrique.pokedata.sprites.Sprite; import me.hugmanrique.pokedata.utils.ROM; /** * @author Hugmanrique * @since 02/05/2017 */ public class SpriteSign extends Sprite { // TODO Check if some of these bytes are words values private byte b2; privat...
<|file_sep|>original/src/main/java/me/hugmanrique/pokedata/sprites/signs/SpriteSign.java package me.hugmanrique.pokedata.sprites.signs; import me.hugmanrique.pokedata.sprites.Sprite; import me.hugmanrique.pokedata.utils.ROM; /** * @author Hugmanrique * @since 02/05/2017 */ public class SpriteSign extends Sprite { ...
7227d5a676f23f6dc4c3c284add210a10f236529
src/main/java/me/hugmanrique/pokedata/sprites/signs/SpriteSign.java
src/main/java/me/hugmanrique/pokedata/sprites/signs/SpriteSign.java
Java
<|file_sep|>original/build.sbt import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.12.5" version := "0.1.69" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesaf...
import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.12.5" version := "0.1.70" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesafe.play" %% "play-json" % "2.6.9...
<|file_sep|>original/build.sbt import com.github.retronym.SbtOneJar._ oneJarSettings name := "api-build" organization := "io.flow" scalaVersion in ThisBuild := "2.12.5" version := "0.1.69" exportJars := true lazy val root = project .in(file(".")) .settings( libraryDependencies ++= Seq( "com.typesaf...
36d41e8bdc69d7866ade9fa0b34e007a052eeaa2
build.sbt
build.sbt
Scala
<|file_sep|>original/lib/arrthorizer/rspec/matchers.rb def matches?(role) @role = role role.applies_to_user?(user, context) end def failure_message "Expected role #{@role.name} to apply in context #{context.inspect}\nfor user #{user.inspect}, but it do...
def matches?(role) @role = role role.applies_to_user?(user, context) end def failure_message "Expected role #{@role.name} to apply in context #{context.inspect}\nfor user #{user.inspect}, but it does not apply!" end def failure_mes...
<|file_sep|>original/lib/arrthorizer/rspec/matchers.rb def matches?(role) @role = role role.applies_to_user?(user, context) end def failure_message "Expected role #{@role.name} to apply in context #{context.inspect}\nfor user #{user.inspect}, but it do...
ef6defdae9767921cda8b929dfcb20d73950f240
lib/arrthorizer/rspec/matchers.rb
lib/arrthorizer/rspec/matchers.rb
Ruby
<|file_sep|>original/requirements.txt gunicorn==20.1.0 backports-abc==0.5 bkcharts==0.2 bokeh==2.4.2 certifi==2021.10.8 chardet==4.0.0 click==8.0.3 Flask==2.0.2 idna==3.3 itsdangerous==2.0.1 Jinja2>=2.10.1 MarkupSafe==2.0.1 numpy==1.22.0 python-dateutil==2.8.2 pyyaml>=4.2b1 requests>=2.20.0 singledispatch==3.7.0 six==1...
gunicorn==20.1.0 backports-abc==0.5 bkcharts==0.2 bokeh==2.4.2 certifi==2021.10.8 chardet==4.0.0 click==8.0.4 Flask==2.0.2 idna==3.3 itsdangerous==2.0.1 Jinja2>=2.10.1 MarkupSafe==2.0.1 numpy==1.22.0 python-dateutil==2.8.2 pyyaml>=4.2b1 requests>=2.20.0 singledispatch==3.7.0 six==1.16.0 tornado==6.1 urllib3>=1.24.2 cac...
<|file_sep|>original/requirements.txt gunicorn==20.1.0 backports-abc==0.5 bkcharts==0.2 bokeh==2.4.2 certifi==2021.10.8 chardet==4.0.0 click==8.0.3 Flask==2.0.2 idna==3.3 itsdangerous==2.0.1 Jinja2>=2.10.1 MarkupSafe==2.0.1 numpy==1.22.0 python-dateutil==2.8.2 pyyaml>=4.2b1 requests>=2.20.0 singledispatch==3.7.0 six==1...
2c4d472432964fd7693195885c0d4a463c70ad67
requirements.txt
requirements.txt
Text
<|file_sep|>backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUtils.java.diff original: String id = ""; updated: StringBuilder builder = new StringBuilder(); <|file_sep|>backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUt...
* method accepts one or more string attributes, concatenates them, and using Md5 hash to generate a unique Guid for * them. * * @param args * one or more strings, guid will be generated from them * @return unique Guid generated from the given strings. */ public static G...
<|file_sep|>backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUtils.java.diff original: String id = ""; updated: StringBuilder builder = new StringBuilder(); <|file_sep|>backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUt...
7599124a186a5f7c614998ecde9c6fe1478fc853
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUtils.java
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/GuidUtils.java
Java
<|file_sep|>original/xfdf2ascii.py highlights = root[0].findall("{%s}highlight" % prefix) else: highlights = root[0].findall("highlight") with sys.stdout as out: line = u"\tIssue\tSection\tPage\tBy\tObservation Description\n".encode("utf-8") out.write(line) issue = 1 for h in highlights: ...
highlights = root[0].findall("{%s}highlight" % prefix) else: highlights = root[0].findall("highlight") with sys.stdout as out: line = u"\tIssue\tSection\tPage\tBy\tObservation Description\n".encode("utf-8") out.write(line) issue = 1 for h in highlights: try: page = int(h.get...
<|file_sep|>original/xfdf2ascii.py highlights = root[0].findall("{%s}highlight" % prefix) else: highlights = root[0].findall("highlight") with sys.stdout as out: line = u"\tIssue\tSection\tPage\tBy\tObservation Description\n".encode("utf-8") out.write(line) issue = 1 for h in highlights: ...
5c7f6f90f4ae88e70c738ab13170ad1c64447db3
xfdf2ascii.py
xfdf2ascii.py
Python
<|file_sep|>README.md.diff original: # How to use (consumer) updated: ## How to use (consumer) <|file_sep|>README.md.diff original: updated: * Install Ruby and RubyGems * Install dependencies: npm install * Install bower: npm install -g bower * Install karma: npm install karma karma-jasmine --save-dev * Install karma ...
# pact-php-demo Demo code from the talk on Consumer-Driven Contract testing with Pact and PHP ## How to use (consumer) First, set up the consumer: * Install Ruby and RubyGems * Install dependencies: npm install * Install bower: npm install -g bower * Install karma: npm install karma karma-jasmine --save-dev * Install ...
<|file_sep|>README.md.diff original: # How to use (consumer) updated: ## How to use (consumer) <|file_sep|>README.md.diff original: updated: * Install Ruby and RubyGems * Install dependencies: npm install * Install bower: npm install -g bower * Install karma: npm install karma karma-jasmine --save-dev * Install karma ...
64ffe0bdffd55e62eb0a59daa90e3a1a80845910
README.md
README.md
Markdown
<|file_sep|>original/attributes/defaults.rb # # Cookbook Name:: sabnzbd # Attributes:: default # default["sabnzbd"]["user"] = 'sabnzbd' default["sabnzbd"]["group"] = 'sabnzbd' default["sabnzbd"]["directories"]["install"] = '/opt/sabnzbd' default["sabnzbd"]["directories"]["logs"] = '/var/log/sabnzbd' default["sabnzbd"...
# # Cookbook Name:: sabnzbd # Attributes:: default # default["sabnzbd"]["user"] = 'sabnzbd' default["sabnzbd"]["group"] = 'sabnzbd' default["sabnzbd"]["directories"]["install"] = '/opt/sabnzbd' default["sabnzbd"]["directories"]["logs"] = '/var/log/sabnzbd' default["sabnzbd"]["directories"]["config"] = '/vagrant/etc/s...
<|file_sep|>original/attributes/defaults.rb # # Cookbook Name:: sabnzbd # Attributes:: default # default["sabnzbd"]["user"] = 'sabnzbd' default["sabnzbd"]["group"] = 'sabnzbd' default["sabnzbd"]["directories"]["install"] = '/opt/sabnzbd' default["sabnzbd"]["directories"]["logs"] = '/var/log/sabnzbd' default["sabnzbd"...
cbdbec45ec08a2cbb4a2df31b3a97634a735ddac
attributes/defaults.rb
attributes/defaults.rb
Ruby
<|file_sep|>original/README.md textblob-api-server =================== This is just [TextBlob](https://github.com/sloria/TextBlob) + [flask](https://github.com/mitsuhiko/flask) + ajax = *Live sentiment analysis while you're typing* [Try Demo online](http://ec2-54-246-227-90.eu-west-1.compute.amazonaws.com:5000/index....
textblob-api-server =================== This is just [TextBlob](https://github.com/sloria/TextBlob) + [flask](https://github.com/mitsuhiko/flask) + ajax = *Live sentiment analysis while you're typing* [Try Demo online](http://textblob-api-1743413701.us-east-1.elb.amazonaws.com) *(docker image running on a EC2 ubuntu ...
<|file_sep|>original/README.md textblob-api-server =================== This is just [TextBlob](https://github.com/sloria/TextBlob) + [flask](https://github.com/mitsuhiko/flask) + ajax = *Live sentiment analysis while you're typing* [Try Demo online](http://ec2-54-246-227-90.eu-west-1.compute.amazonaws.com:5000/index....
8514d8eda6f6b3136836547b7cc2895d956d2da7
README.md
README.md
Markdown
<|file_sep|>original/.github/workflows/test-build.yml <|file_sep|>current/.github/workflows/test-build.yml <|file_sep|>updated/.github/workflows/test-build.yml
name: test-build on: [push] jobs: test-build: runs-on: ubuntu-latest env: SDL_VERSION: 2.0.22 IMG_VERSION: 2.0.5 MIX_VERSION: 2.0.4 TTF_VERSION: 2.0.18 GFX_VERSION: 1.0.4 steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-ver...
<|file_sep|>original/.github/workflows/test-build.yml <|file_sep|>current/.github/workflows/test-build.yml <|file_sep|>updated/.github/workflows/test-build.yml name: test-build on: [push] jobs: test-build: runs-on: ubuntu-latest env: SDL_VERSION: 2.0.22 IMG_VERSION: 2.0.5 MIX_VERSION: 2.0....
989e6a2d4acb5c5a288879a0bb860140c78a2a60
.github/workflows/test-build.yml
.github/workflows/test-build.yml
YAML
<|file_sep|>original/project/build/bioscala.scala import sbt._ class BioScalaProject(info: ProjectInfo) extends DefaultProject(info) { override def unmanagedClasspath = super.unmanagedClasspath +++ ("lib" / "scala" / "biojava.jar") val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://s...
import sbt._ class BioScalaProject(info: ProjectInfo) extends DefaultProject(info) { override def unmanagedClasspath = super.unmanagedClasspath +++ ("lib" / "scala" / "biojava.jar") val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots" ...
<|file_sep|>original/project/build/bioscala.scala import sbt._ class BioScalaProject(info: ProjectInfo) extends DefaultProject(info) { override def unmanagedClasspath = super.unmanagedClasspath +++ ("lib" / "scala" / "biojava.jar") val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://s...
d48d39ca5606247de6c1138afbd743423b736117
project/build/bioscala.scala
project/build/bioscala.scala
Scala
<|file_sep|>original/requirements.txt requests==2.11.1 Flask==0.12.1 beautifulsoup4==4.6.0 <|file_sep|>current/requirements.txt requests==2.11.1 Flask==0.12.1 beautifulsoup4==4.6.0 <|file_sep|>updated/requirements.txt
requests>=2.11.1 Flask>=0.12.1 beautifulsoup4>=4.6.0
<|file_sep|>original/requirements.txt requests==2.11.1 Flask==0.12.1 beautifulsoup4==4.6.0 <|file_sep|>current/requirements.txt requests==2.11.1 Flask==0.12.1 beautifulsoup4==4.6.0 <|file_sep|>updated/requirements.txt requests>=2.11.1 Flask>=0.12.1 beautifulsoup4>=4.6.0
80e78ff14daca30ca717e2d12479ef3fdae39152
requirements.txt
requirements.txt
Text
<|file_sep|>original/.travis.yml env: - DB=mysql TRAVIS=true - DB=postgresql TRAVIS=true before_install: - sudo apt-get install libicu-dev -y - gem install charlock_holmes -v="0.6.9" branches: only: - 'master' rvm: - 1.9.3 - 2.0.0 services: - mysql - postgresql before_script: - "cp config/databa...
env: - DB=mysql TRAVIS=true - DB=postgresql TRAVIS=true before_install: - sudo apt-get install libicu-dev -y - gem install charlock_holmes -v="0.6.9" branches: only: - 'master' rvm: - 2.0.0 services: - mysql - postgresql before_script: - "cp config/database.yml.$DB config/database.yml" - "cp con...
<|file_sep|>original/.travis.yml env: - DB=mysql TRAVIS=true - DB=postgresql TRAVIS=true before_install: - sudo apt-get install libicu-dev -y - gem install charlock_holmes -v="0.6.9" branches: only: - 'master' rvm: - 1.9.3 - 2.0.0 services: - mysql - postgresql before_script: - "cp config/databa...
0d06c6517e8e46c8f2a2872d99042515364a748c
.travis.yml
.travis.yml
YAML
<|file_sep|>app/CommentFactory.php.diff original: updated: use \App\Likes; <|file_sep|>original/app/CommentFactory.php class CommentFactory extends Model { public function getComment($id) { return Comments::find($id); } public function deleteComment($id) { return Comments::destroy($id); } public functi...
public function createComment($userId, $propositionId, $body) { return Comments::create([ "commenter_id" => $userId, "proposition_id" => $propositionId, "body" => $body, ]); } // Like comment public function likeComment(User $user, Comments $comment) { return Like::create([ "user_id" =>...
<|file_sep|>app/CommentFactory.php.diff original: updated: use \App\Likes; <|file_sep|>original/app/CommentFactory.php class CommentFactory extends Model { public function getComment($id) { return Comments::find($id); } public function deleteComment($id) { return Comments::destroy($id); } public functi...
18e4a382033b8a6f0a0aafa9727e973169010995
app/CommentFactory.php
app/CommentFactory.php
PHP
<|file_sep|>original/.circleci/config.yml version: 2.1 orbs: # This uses the iOS Orb located at https://github.com/wordpress-mobile/circleci-orbs ios: wordpress-mobile/ios@0.0.24 workflows: test_and_validate: jobs: - ios/test: name: Test xcode-version: "10.2.0" carthage-u...
version: 2.1 orbs: # This uses the iOS Orb located at https://github.com/wordpress-mobile/circleci-orbs ios: wordpress-mobile/ios@0.0.25 workflows: test_and_validate: jobs: - ios/test: name: Test xcode-version: "10.2.0" carthage-update: true carthage-working-dir...
<|file_sep|>original/.circleci/config.yml version: 2.1 orbs: # This uses the iOS Orb located at https://github.com/wordpress-mobile/circleci-orbs ios: wordpress-mobile/ios@0.0.24 workflows: test_and_validate: jobs: - ios/test: name: Test xcode-version: "10.2.0" carthage-u...
f31600a372369290c27bb743591c7b50fe408f38
.circleci/config.yml
.circleci/config.yml
YAML
<|file_sep|>original/chem/templates/chem/base.html {% extends "base.html" %} {% block header %} <h1>ChemTools</h1> {% endblock %} {% block navbar %} <div id="navbar"> <ul> <li><a href="/chem/">Home</a></li> <li><a href="/chem/upload/">Upload</a></li> </ul> </div> {% ...
{% extends "base.html" %} {% block header %} <h1>ChemTools</h1> {% endblock %} {% block navbar %} <div id="navbar"> <ul> <li><a href="/chem/">Home</a></li> | <li><a href="/chem/upload/">Upload</a></li> | <li><a href="https://github.com/chris0076/chemtools-webapp">Cod...
<|file_sep|>original/chem/templates/chem/base.html {% extends "base.html" %} {% block header %} <h1>ChemTools</h1> {% endblock %} {% block navbar %} <div id="navbar"> <ul> <li><a href="/chem/">Home</a></li> <li><a href="/chem/upload/">Upload</a></li> </ul> </div> {% ...
30d80025ece6ce4026176661e9cc6cb68ff93e14
chem/templates/chem/base.html
chem/templates/chem/base.html
HTML
<|file_sep|>app/views/intervention_roles/_form.html.erb.diff original: <div class="control-group"> <%= f.label(:name, "Nom (*)", :class => 'control-label') %> <div class="controls"> <%= f.text_field(:name) %> <%= error_message_on(:intervention_role, :name) %> updated: <div class="col...
<%= f.label(:name, "Nom (*)", :class => 'col-md-5 control-label') %> <div class="col-md-7"> <%= f.text_field(:name, :class => 'form-control') %> <%= error_message_on(:intervention_role, :name) %> </div> </div> <div class="form-group"> <%= f.label(:short_na...
<|file_sep|>app/views/intervention_roles/_form.html.erb.diff original: <div class="control-group"> <%= f.label(:name, "Nom (*)", :class => 'control-label') %> <div class="controls"> <%= f.text_field(:name) %> <%= error_message_on(:intervention_role, :name) %> updated: <div class="col...
5c0bc79a3157e66d31f009cb29a6a6ed959e7f37
app/views/intervention_roles/_form.html.erb
app/views/intervention_roles/_form.html.erb
HTML+ERB
<|file_sep|>packages/@sanity/form-builder/src/FormBuilderPropTypes.js.diff original: updated: let type <|file_sep|>packages/@sanity/form-builder/src/FormBuilderPropTypes.js.diff original: type: type updated: type: lazy(() => type) <|file_sep|>original/packages/@sanity/form-builder/src/FormBuilderPropTypes.js re...
return (...args) => (cachedFn || (cachedFn = fn()))(...args) } let type const field = PropTypes.shape({ name: PropTypes.string, type: lazy(() => type) }) type = PropTypes.shape({ name: PropTypes.string, title: PropTypes.string, description: PropTypes.string, placeholder: PropTypes.string, type: lazy(...
<|file_sep|>packages/@sanity/form-builder/src/FormBuilderPropTypes.js.diff original: updated: let type <|file_sep|>packages/@sanity/form-builder/src/FormBuilderPropTypes.js.diff original: type: type updated: type: lazy(() => type) <|file_sep|>original/packages/@sanity/form-builder/src/FormBuilderPropTypes.js re...
352a70b395f79a49af74cba88d4b1df4a1c0ed08
packages/@sanity/form-builder/src/FormBuilderPropTypes.js
packages/@sanity/form-builder/src/FormBuilderPropTypes.js
JavaScript
<|file_sep|>promote-from-mock-to-stage.sh.diff original: # This script requires the 'jq' command line tool brew install jq updated: <|file_sep|>promote-from-mock-to-stage.sh.diff original: GIT_REF=`jq -r '.gitRef' build-info.json` WAIT_DURATION=45000 APP_BASE_URL=http://csra-stage.hmpps.dsd.io/health yarn wait-for-de...
echo "usage: promote-from-mock-to-stage.sh <stage db password>" exit fi # Grab the MOCK build git checkout deploy-to-mock git pull --rebase # Push the MOCK build to STAGE git push --force origin origin/deploy-to-mock:deploy-to-stage # Wait for STAGE deploy to finish GIT_REF=`cat build-info.json | python -c '...
<|file_sep|>promote-from-mock-to-stage.sh.diff original: # This script requires the 'jq' command line tool brew install jq updated: <|file_sep|>promote-from-mock-to-stage.sh.diff original: GIT_REF=`jq -r '.gitRef' build-info.json` WAIT_DURATION=45000 APP_BASE_URL=http://csra-stage.hmpps.dsd.io/health yarn wait-for-de...
950095fd7764f306bf255d212d478a148b04a41f
promote-from-mock-to-stage.sh
promote-from-mock-to-stage.sh
Shell
<|file_sep|>original/src/Keboola/Syrup/Command/ErrorCommand.php switch ($error) { case 'notice': trigger_error('This is NOTICE!', E_USER_NOTICE); break; case 'warning': trigger_error('This is WARNING!', E_USER_WARNING); brea...
switch ($error) { case 'notice': trigger_error('This is NOTICE!', E_USER_NOTICE); break; case 'warning': trigger_error('This is WARNING!', E_USER_WARNING); break; case 'fatal': $foo = new Bar(); ...
<|file_sep|>original/src/Keboola/Syrup/Command/ErrorCommand.php switch ($error) { case 'notice': trigger_error('This is NOTICE!', E_USER_NOTICE); break; case 'warning': trigger_error('This is WARNING!', E_USER_WARNING); brea...
70046e3bb9d9d53fd53d6b17eeb883aa6f3b3593
src/Keboola/Syrup/Command/ErrorCommand.php
src/Keboola/Syrup/Command/ErrorCommand.php
PHP
<|file_sep|>original/_posts/2017-09-03-new-guides-transitions-views-lazyload.md <|file_sep|>current/_posts/2017-09-03-new-guides-transitions-views-lazyload.md <|file_sep|>updated/_posts/2017-09-03-new-guides-transitions-views-lazyload.md
--- layout: post excerpt: New UI-Router Guides published comments: true permalink: /blog/:title/ --- In case you missed it, four new UI-Router guides have been published this summer. ### [Views](/guides/views) This guide provides information about how UI-Router handles views, including: - Views (for a state) - UI-...
<|file_sep|>original/_posts/2017-09-03-new-guides-transitions-views-lazyload.md <|file_sep|>current/_posts/2017-09-03-new-guides-transitions-views-lazyload.md <|file_sep|>updated/_posts/2017-09-03-new-guides-transitions-views-lazyload.md --- layout: post excerpt: New UI-Router Guides published comments: true permalin...
2e58808dfbe39829e5dfa3226a2277eb3c649423
_posts/2017-09-03-new-guides-transitions-views-lazyload.md
_posts/2017-09-03-new-guides-transitions-views-lazyload.md
Markdown
<|file_sep|>original/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs <|file_sep|>current/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs <|file_sep|>updated/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.my...
#Wed May 23 09:36:24 EDT 2007 eclipse.preferences.version=1 project.repository.kind=issuezilla project.repository.url=http\://subclipse.tigris.org
<|file_sep|>original/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs <|file_sep|>current/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs <|file_sep|>updated/org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.my...
29c8eff5beb59bd4e7e08494eed87990f3225850
org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs
org.tigris.subversion.clientadapter.javahl.win32/.settings/org.eclipse.mylar.tasklist.prefs
INI
<|file_sep|>original/lib/truncate_html/html_string.rb end def html_tag? /<\/?[^>]+>/ === self end def open_tag? /<(?!(?:#{UNPAIRED_TAGS.join('|')}|script|\/))[^>]+>/i === self end def matching_close_tag gsub(/<(\w+)\s?.*>/, '</\1>').strip end private def regex ...
def html_tag? /<\/?[^>]+>/ === self end def open_tag? /<(?!(?:#{UNPAIRED_TAGS.join('|')}|script|\/))[^>]+>/i === self end def matching_close_tag gsub(/<(\w+)\s?.*>/, '</\1>').strip end private def regex punctuation = if RUBY_VERSION < '1.9' then "\\p\\{P\\}" e...
<|file_sep|>original/lib/truncate_html/html_string.rb end def html_tag? /<\/?[^>]+>/ === self end def open_tag? /<(?!(?:#{UNPAIRED_TAGS.join('|')}|script|\/))[^>]+>/i === self end def matching_close_tag gsub(/<(\w+)\s?.*>/, '</\1>').strip end private def regex ...
f3e085346a09967cb1eee0592e379e12324125b8
lib/truncate_html/html_string.rb
lib/truncate_html/html_string.rb
Ruby
<|file_sep|>original/routes/auth/index.js }); app.get('/auth', function(req, res) { res.render('./auth/provider_list.ejs'); }); if (config.identity_providers.facebook.enabled) { logger.info('Facebook authentication enabled'); require('./facebook')(app); } if (config.identity_providers.github....
app.get('/logout', function(req, res) { req.logout(); res.redirect('/'); }); app.get('/protected', authHelper.ensureAuthenticated, function(req, res) { res.send('protected'); }); app.get('/auth', function(req, res) { res.render('./auth/provider_list.ejs'); }); for (var idp in config.id...
<|file_sep|>original/routes/auth/index.js }); app.get('/auth', function(req, res) { res.render('./auth/provider_list.ejs'); }); if (config.identity_providers.facebook.enabled) { logger.info('Facebook authentication enabled'); require('./facebook')(app); } if (config.identity_providers.github....
1b1ce98dad6f9921d399b99bd13d109943c5d828
routes/auth/index.js
routes/auth/index.js
JavaScript
<|file_sep|>original/.travis.yml --- sudo: false language: ruby gemfile: .gemfile matrix: fast_finish: true include: - rvm: 1.8.7 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION=...
--- sudo: false language: ruby gemfile: .gemfile matrix: fast_finish: true include: - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes" - rvm: 2.1.6 env: PUPPET_GEM_VERSION="~> 4.0" STRI...
<|file_sep|>original/.travis.yml --- sudo: false language: ruby gemfile: .gemfile matrix: fast_finish: true include: - rvm: 1.8.7 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 2.1.5 env: PUPPET_GEM_VERSION=...
8e94d7bdc0c712f0b6c7226c5a0f0888b9294b30
.travis.yml
.travis.yml
YAML
<|file_sep|>original/scripts/add-header.sh <|file_sep|>current/scripts/add-header.sh <|file_sep|>updated/scripts/add-header.sh
#!/bin/bash # A simple script to add header & copyright to a Java source file. # Intended to be used with other *nix commands; e.g.: # find . -name '*.java' -exec bash scripts/add-header.sh {} \; file="$1" name="$(basename "$file")" basedir="$(dirname "$0")/.." tmp="$file.tmp" echo '//' > "$tmp" echo "// $name" >...
<|file_sep|>original/scripts/add-header.sh <|file_sep|>current/scripts/add-header.sh <|file_sep|>updated/scripts/add-header.sh #!/bin/bash # A simple script to add header & copyright to a Java source file. # Intended to be used with other *nix commands; e.g.: # find . -name '*.java' -exec bash scripts/add-header....
c35916563fb2a1317685d4896594fdd9c48ff73b
scripts/add-header.sh
scripts/add-header.sh
Shell
<|file_sep|>.travis.yml.diff original: - 1.8.7 - 1.9.2 updated: <|file_sep|>.travis.yml.diff original: - RAILS=4-0-stable updated: <|file_sep|>original/.travis.yml rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 env: - RAILS=4-0-stable - RAILS=3-2-stable - RAILS=3-1-stable - RAILS=3-0-stable matrix: ex...
rvm: - 1.9.3 - 2.0.0 env: - RAILS=3-2-stable - RAILS=3-1-stable - RAILS=3-0-stable
<|file_sep|>.travis.yml.diff original: - 1.8.7 - 1.9.2 updated: <|file_sep|>.travis.yml.diff original: - RAILS=4-0-stable updated: <|file_sep|>original/.travis.yml rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0 env: - RAILS=4-0-stable - RAILS=3-2-stable - RAILS=3-1-stable - RAILS=3-0-stable matrix: ex...
236046c3336d76b981e31f20eb50f14b8f9d8b04
.travis.yml
.travis.yml
YAML
<|file_sep|>kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js.diff original: updated: const simulant = require('simulant'); <|file_sep|>kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js.diff original: it('does not error out if <audio> is undefined', () => { updat...
const Ctor = Vue.extend(audioRenderer); return new Ctor({ propsData }).$mount(); } describe('audio mp3 render component', () => { describe('timeUpdate', () => { it('does not error out if <audio> dispatches event after unmount', () => { // regression test for https://github.com/learningequality/kolibri/...
<|file_sep|>kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js.diff original: updated: const simulant = require('simulant'); <|file_sep|>kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js.diff original: it('does not error out if <audio> is undefined', () => { updat...
63e8b9f0bbf41bd53ba802cbd50ce9dc5f2de214
kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js
kolibri/plugins/audio_mp3_render/assets/test/views/audio-mp3-render.spec.js
JavaScript
<|file_sep|>original/package.json "repository": { "type": "git", "url": "git://github.com/agnoster/base32-js.git" }, "main": "./lib/base32", "bin": "./bin/base32.js", "scripts": { "test": "./node_modules/.bin/coffee test/*-test.coffee" }, "engines": { "node": ">0.4" }, "dependencies": ...
"repository": { "type": "git", "url": "git://github.com/agnoster/base32-js.git" }, "main": "./lib/base32", "bin": "./bin/base32.js", "scripts": { "test": "./node_modules/.bin/coffee test/*-test.coffee" }, "engines": { "node": ">0.10" }, "dependencies": { "optimist": ">=0.1.0" }, ...
<|file_sep|>original/package.json "repository": { "type": "git", "url": "git://github.com/agnoster/base32-js.git" }, "main": "./lib/base32", "bin": "./bin/base32.js", "scripts": { "test": "./node_modules/.bin/coffee test/*-test.coffee" }, "engines": { "node": ">0.4" }, "dependencies": ...
9d89093e5d3c4a033b0ca9214fdb1fcbc4a58443
package.json
package.json
JSON
<|file_sep|>src/httpserver/test.sh.diff original: dist/Debug/GNU-Linux-x86/httpserver & updated: <|file_sep|>src/httpserver/test.sh.diff original: mkdir -p test.tmp cd test.tmp updated: SERVER_ROOT=${PWD}/dist/Debug/GNU-Linux-x86 WEB_ROOT=${SERVER_ROOT}/www ${SERVER_ROOT}/httpserver & trap 'kill %1' 0 mkdir -p tmp....
cd .. # request the web files with curl mkdir gzip.test cd gzip.test uris=(`find $WEB_ROOT -type f -printf "%P\n"`) for uri in "${uris[@]}" do curl -4 --header "Accept-Encoding: gzip" http://localhost:10024/${uri} -o ${uri}.gz --create-dirs if [ "$?" -ne 0 ]; then exit $?; fi # if the file is gzipped then...
<|file_sep|>src/httpserver/test.sh.diff original: dist/Debug/GNU-Linux-x86/httpserver & updated: <|file_sep|>src/httpserver/test.sh.diff original: mkdir -p test.tmp cd test.tmp updated: SERVER_ROOT=${PWD}/dist/Debug/GNU-Linux-x86 WEB_ROOT=${SERVER_ROOT}/www ${SERVER_ROOT}/httpserver & trap 'kill %1' 0 mkdir -p tmp....
445cbcf45e261198432555f5904c7901147432b4
src/httpserver/test.sh
src/httpserver/test.sh
Shell
<|file_sep|>original/.travis.yml language: node_js node_js: - '12' - '14' - '15' branches: only: - master - travis-ci install: - for dir in mingle.*; do (cd $dir && [ -e package.json ] && npm install --no-save --no-package-lock || true); done && git checkout . - npm install -g nyc prove script: ...
language: node_js node_js: - '12' - '14' - '15' branches: only: - master - travis-ci install: - for dir in mingle.*; do (cd $dir && [ -e package.json ] && npm install --no-save --no-package-lock || true); done && git checkout . - npm install -g nyc prove script: - bash -c 'for dir in mingle.*;...
<|file_sep|>original/.travis.yml language: node_js node_js: - '12' - '14' - '15' branches: only: - master - travis-ci install: - for dir in mingle.*; do (cd $dir && [ -e package.json ] && npm install --no-save --no-package-lock || true); done && git checkout . - npm install -g nyc prove script: ...
ab86cfaeb8c307557d47acf58bb5646c2e5f5a35
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md # licensor Tool to pull a licence from the OSI website and into your new software project. ## Usage ``` $ app.py [LICENSE] ``` Works decently with GPL and related licenses, e.g. ``` $ app.py LGPL-3.0 ``` <|file_sep|>current/README.md # licensor Tool to pull a licence from the OSI webs...
# licensor [![Build Status](https://travis-ci.org/zuzak/licensor.svg?branch=master)](https://travis-ci.org/zuzak/licensor) Tool to pull a licence from the OSI website and into your new software project. ## Usage ``` $ app.py [LICENSE] ``` Works decently with GPL and related licenses, e.g. ``` $ app.py LGPL-3.0 ```
<|file_sep|>original/README.md # licensor Tool to pull a licence from the OSI website and into your new software project. ## Usage ``` $ app.py [LICENSE] ``` Works decently with GPL and related licenses, e.g. ``` $ app.py LGPL-3.0 ``` <|file_sep|>current/README.md # licensor Tool to pull a licence from the OSI webs...
3b21aca82f65b544c66f13053d61b7594bdaf300
README.md
README.md
Markdown
<|file_sep|>original/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md <|file_sep|>current/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md <|file_sep|>updated/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md
--- title: The A.I. Revolution Will Not Be Supervised date: 2018-03-11 20:22:21 tags: --- The A.I. Revolution Will Not Be Supervised. - *Yann LeCun*
<|file_sep|>original/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md <|file_sep|>current/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md <|file_sep|>updated/source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md --- title: The A.I. Revolution Will Not Be Supervised date: 2018-03-11 20:22:21 ...
9bf5cabc512d9169b1b75c3dd47df99a33071cc1
source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md
source/_posts/The-A-I-Revolution-Will-Not-Be-Supervised.md
Markdown
<|file_sep|>original/app/models/section.rb validates :name, presence: true, uniqueness: { scope: :course_id } validates :crn, presence: true, uniqueness: true default_scope { order(name: :asc) } def conflicts_with(section) i = 0 while i < num_periods j = 0 while j < section.num_periods ...
def conflicts_with(section) i = 0 while i < num_periods j = 0 while j < section.num_periods if (periods_day[i] == section.periods_day[j] \ && ((periods_start[i] <= section.periods_start[j] && periods_end[i] >= section.periods_start[j]) \ || (periods_start[i] >= section....
<|file_sep|>original/app/models/section.rb validates :name, presence: true, uniqueness: { scope: :course_id } validates :crn, presence: true, uniqueness: true default_scope { order(name: :asc) } def conflicts_with(section) i = 0 while i < num_periods j = 0 while j < section.num_periods ...
70a5184ddb9ff59f72c0f4fa4f95821c406906d2
app/models/section.rb
app/models/section.rb
Ruby
<|file_sep|>Plugins/PluginScriptGenerator.cs.diff original: StringBuilder build = new StringBuilder(pluginIdentifier.Length+pluginContents.Length+150); updated: StringBuilder build = new StringBuilder(2*pluginIdentifier.Length+pluginContents.Length+165); <|file_sep|>original/Plugins/PluginScript...
public static string GeneratePlugin(string pluginIdentifier, string pluginContents, int pluginToken, PluginEnvironment environment){ StringBuilder build = new StringBuilder(2*pluginIdentifier.Length+pluginContents.Length+165); build.Append("(function(").Append(environment.GetScriptVari...
<|file_sep|>Plugins/PluginScriptGenerator.cs.diff original: StringBuilder build = new StringBuilder(pluginIdentifier.Length+pluginContents.Length+150); updated: StringBuilder build = new StringBuilder(2*pluginIdentifier.Length+pluginContents.Length+165); <|file_sep|>original/Plugins/PluginScript...
85d5160782acd1ff6683b744c4b96f0ef7f50598
Plugins/PluginScriptGenerator.cs
Plugins/PluginScriptGenerator.cs
C#
<|file_sep|>javascripts/init.js.diff original: var FPS = 60; updated: var FPS = 30; <|file_sep|>javascripts/init.js.diff original: var mainMenu = new Game.MainMenu({ updated: engine.register(new Game.MainMenu({ <|file_sep|>original/javascripts/init.js var Game = Game || {}; var WIDTH = window.innerWidth; var HEIGHT = w...
var Game = Game || {}; var WIDTH = window.innerWidth; var HEIGHT = window.innerHeight; var FPS = 30; var engine = new Game.Engine('game', WIDTH, HEIGHT, FPS); engine.init(); engine.register(new Game.MainMenu({ width: WIDTH, height: HEIGHT }, engine)); var animate = (window.requestAnimationFrame || window.webkitR...
<|file_sep|>javascripts/init.js.diff original: var FPS = 60; updated: var FPS = 30; <|file_sep|>javascripts/init.js.diff original: var mainMenu = new Game.MainMenu({ updated: engine.register(new Game.MainMenu({ <|file_sep|>original/javascripts/init.js var Game = Game || {}; var WIDTH = window.innerWidth; var HEIGHT = w...
d1c348042553b523285cccab9a5aa7159ab4e2f1
javascripts/init.js
javascripts/init.js
JavaScript
<|file_sep|>original/requirements.txt docker==3.1.1 molecule==1.25.0 pymongo==3.6.1 pytest==3.4.2 pytest==3.4.2 python-vagrant==0.5.15 tox==2.9.1 testinfra==1.11.1 <|file_sep|>current/requirements.txt docker==3.1.1 molecule==1.25.0 pymongo==3.6.1 pytest==3.4.2 pytest==3.4.2 python-vagrant==0.5.15 tox==2.9.1 testinfra==...
docker==3.2.1 molecule==1.25.0 pymongo==3.6.1 pytest==3.4.2 pytest==3.4.2 python-vagrant==0.5.15 tox==2.9.1 testinfra==1.11.1
<|file_sep|>original/requirements.txt docker==3.1.1 molecule==1.25.0 pymongo==3.6.1 pytest==3.4.2 pytest==3.4.2 python-vagrant==0.5.15 tox==2.9.1 testinfra==1.11.1 <|file_sep|>current/requirements.txt docker==3.1.1 molecule==1.25.0 pymongo==3.6.1 pytest==3.4.2 pytest==3.4.2 python-vagrant==0.5.15 tox==2.9.1 testinfra==...
c8ed2f258e0e4ad2f0c6ccdbf94a29aa5bfafa30
requirements.txt
requirements.txt
Text
<|file_sep|>weak/Reference.php.diff original: * @param object $referent Referent object * @param callable|null $notify Callback to notify when referent object destroyed. updated: * @param object $referent Referent object * @param callable | array | null $notify Optional n...
} /** * Whether referent object exists * * @return bool */ public function valid() : bool { } /** * Get notifier * * @param callable | array | null $notify Notifier to replace existent notifier with. Same as in constructor. * * If any value provided...
<|file_sep|>weak/Reference.php.diff original: * @param object $referent Referent object * @param callable|null $notify Callback to notify when referent object destroyed. updated: * @param object $referent Referent object * @param callable | array | null $notify Optional n...
ee8f65a9b0b346a1871fcdc4601b95d2455eda72
weak/Reference.php
weak/Reference.php
PHP
<|file_sep|>original/requirements.txt beautifulsoup4==4.4.1 dateutils==0.6.6 easygui==0.97.4 expects==0.7.2 Flask==0.10.1 funcsigs==1.0.2 itsdangerous==0.24 Jinja2==2.8 MarkupSafe==0.23 mock==2.0.0 pbr==1.9.1 PyDispatcher==2.0.5 python-dateutil==2.4.2 pytz==2015.7 requests==2.9.1 six==1.10.0 slack==0.0.2 slackclient==0...
beautifulsoup4==4.4.1 dateutils==0.6.6 easygui==0.97.4 expects==0.7.2 Flask==0.10.1 funcsigs==1.0.2 itsdangerous==0.24 Jinja2==2.8 MarkupSafe==0.23 mock==2.0.0 nose==1.3.7 pbr==1.9.1 PyDispatcher==2.0.5 python-dateutil==2.4.2 pytz==2015.7 requests==2.9.1 six==1.10.0 slack==0.0.2 slackclient==0.18.0 termcolor==1.1.0 tin...
<|file_sep|>original/requirements.txt beautifulsoup4==4.4.1 dateutils==0.6.6 easygui==0.97.4 expects==0.7.2 Flask==0.10.1 funcsigs==1.0.2 itsdangerous==0.24 Jinja2==2.8 MarkupSafe==0.23 mock==2.0.0 pbr==1.9.1 PyDispatcher==2.0.5 python-dateutil==2.4.2 pytz==2015.7 requests==2.9.1 six==1.10.0 slack==0.0.2 slackclient==0...
7b49274b2590c7ad4760f060800f31740154bb58
requirements.txt
requirements.txt
Text
<|file_sep|>Sources/Cider/ResourceObjects/Playlist.swift.diff original: updated: /// A type describing the kind of playlist <|file_sep|>Sources/Cider/ResourceObjects/Playlist.swift.diff original: updated: /// A playlist created and shared by an Apple Music user <|file_sep|>Sources/Cider/ResourceObjects/Playlist.s...
/// A type describing the kind of playlist public enum PlaylistType: String, Codable { /// A playlist created and shared by an Apple Music user case userShared = "user-shared" /// A playlist created by an Apple Music curator case editorial /// A playlist created by an non-Apple curator or brand ...
<|file_sep|>Sources/Cider/ResourceObjects/Playlist.swift.diff original: updated: /// A type describing the kind of playlist <|file_sep|>Sources/Cider/ResourceObjects/Playlist.swift.diff original: updated: /// A playlist created and shared by an Apple Music user <|file_sep|>Sources/Cider/ResourceObjects/Playlist.s...
346141704e6e9c574df0f0ca94f6c20832bed14e
Sources/Cider/ResourceObjects/Playlist.swift
Sources/Cider/ResourceObjects/Playlist.swift
Swift
<|file_sep|>original/src/services/video-catalog/get-video.js return client.executeAsync('SELECT * FROM videos WHERE videoid = ?', requestParams); }) .then(resultSet => { let row = resultSet.first(); if (row === null) { throw new NotFoundError(`A video with id ${request.videoId.value} was not found...
return client.executeAsync('SELECT * FROM videos WHERE videoid = ?', requestParams); }) .then(resultSet => { let row = resultSet.first(); if (row === null) { throw new NotFoundError(`A video with id ${request.videoId.value} was not found`); } return new GetVideoResponse({ videoId: t...
<|file_sep|>original/src/services/video-catalog/get-video.js return client.executeAsync('SELECT * FROM videos WHERE videoid = ?', requestParams); }) .then(resultSet => { let row = resultSet.first(); if (row === null) { throw new NotFoundError(`A video with id ${request.videoId.value} was not found...
5d894d920aad8d4a3cea7f40033899523d629e87
src/services/video-catalog/get-video.js
src/services/video-catalog/get-video.js
JavaScript
<|file_sep|>index.js.diff original: updated: function destroyVue() { this.$destroy(); document.removeEventListener('turbolinks:before-cache', destroyVue.bind(this)) } <|file_sep|>original/index.js var TurbolinksAdapter = { beforeMount: function(){ document.addEventListener('turbolinks:before-cache', () => {...
function destroyVue() { this.$destroy(); document.removeEventListener('turbolinks:before-cache', destroyVue.bind(this)) } var TurbolinksAdapter = { beforeMount: function(){ document.addEventListener('turbolinks:before-cache', destroyVue.bind(this)) this.$originalEl = this.$el.outerHTML; }, destroyed:...
<|file_sep|>index.js.diff original: updated: function destroyVue() { this.$destroy(); document.removeEventListener('turbolinks:before-cache', destroyVue.bind(this)) } <|file_sep|>original/index.js var TurbolinksAdapter = { beforeMount: function(){ document.addEventListener('turbolinks:before-cache', () => {...
50bd545ce8f5e10ca06f9524a2b82aa3ab0c024f
index.js
index.js
JavaScript
<|file_sep|>original/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml <|file_sep|>current/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml <|file_sep|>updated/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml
presubmits: kubernetes-sigs/multi-tenancy: - name: pull-hnc-test annotations: testgrid-dashboards: wg-multi-tenancy-hnc testgrid-tab-name: pull-test decorate: true path_alias: sigs.k8s.io/multi-tenancy run_if_changed: "./incubator/hnc/.*" spec: containers: - image: golang...
<|file_sep|>original/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml <|file_sep|>current/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml <|file_sep|>updated/config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml presubmits: kubernetes-sigs/multi-tenancy: - name: pull-hnc-test anno...
052ebc3cd59a67902980d5fed9ccbf192e74221e
config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml
config/jobs/kubernetes-sigs/multi-tenancy/hnc-presubmit.yml
YAML
<|file_sep|>original/Tomboy/Defines.WIN32.cs using System; using System.Reflection; // TODO: Automate this [assembly: AssemblyInformationalVersion ("1.1.0")] namespace Tomboy { public class Defines { public const string VERSION = "1.1.0"; public static readonly string DATADIR = System.IO.Path.GetDirectoryName (...
using System; using System.Reflection; // TODO: Automate this [assembly: AssemblyInformationalVersion ("1.1.0")] [assembly: AssemblyProduct("Tomboy")] [assembly: AssemblyTitle("Tomboy Notes")] namespace Tomboy { public class Defines { public const string VERSION = "1.1.0"; public static readonly string DATADIR ...
<|file_sep|>original/Tomboy/Defines.WIN32.cs using System; using System.Reflection; // TODO: Automate this [assembly: AssemblyInformationalVersion ("1.1.0")] namespace Tomboy { public class Defines { public const string VERSION = "1.1.0"; public static readonly string DATADIR = System.IO.Path.GetDirectoryName (...
3f32a264866ed0cb7337a306164b31d6088bee9b
Tomboy/Defines.WIN32.cs
Tomboy/Defines.WIN32.cs
C#
<|file_sep|>original/lib/jade/template.rb # will be available on the JST global on the front end. # # For example, `my_template.jst.jade` will be available on the front # end as JST['my_template'], which is a function that takes a single # argument containing the locals to use in rendering the templ...
# For example, `my_template.jst.jade` will be available on the front # end as JST['my_template'], which is a function that takes a single # argument containing the locals to use in rendering the template: # # # => function template(locals) { ... } # def evaluate(context, locals, &block) ...
<|file_sep|>original/lib/jade/template.rb # will be available on the JST global on the front end. # # For example, `my_template.jst.jade` will be available on the front # end as JST['my_template'], which is a function that takes a single # argument containing the locals to use in rendering the templ...
6cdb99fdc33bd709aba19bdaba22a75200735b27
lib/jade/template.rb
lib/jade/template.rb
Ruby
<|file_sep|>original/.github/workflows/codeql-analysis.yml <|file_sep|>current/.github/workflows/codeql-analysis.yml <|file_sep|>updated/.github/workflows/codeql-analysis.yml
name: "CodeQL" on: push: branches: [master] pull_request: # The branches below must be a subset of the branches above branches: [master] jobs: analyze: name: Analyze runs-on: ubuntu-latest strategy: fail-fast: false matrix: language: ['java'] steps: - name: ...
<|file_sep|>original/.github/workflows/codeql-analysis.yml <|file_sep|>current/.github/workflows/codeql-analysis.yml <|file_sep|>updated/.github/workflows/codeql-analysis.yml name: "CodeQL" on: push: branches: [master] pull_request: # The branches below must be a subset of the branches above branches...
2c41bde533cac40a0c4890b79a16c824fe7cfbd4
.github/workflows/codeql-analysis.yml
.github/workflows/codeql-analysis.yml
YAML
<|file_sep|>original/lib/tasks/update_mainstream_slug.rake desc "Update a mainstream slug.\n See original documentation @ https://github.com/alphagov/wiki/wiki/Changing-GOV.UK-URLs#making-the-change" task :update_mainstream_slug, [:old_slug, :new_slug] => :environment do |_task, args| MainstreamSlugUpdater.new(args[...
desc "Update a mainstream slug.\n See original documentation @ https://github.com/alphagov/wiki/wiki/Changing-GOV.UK-URLs#making-the-change" task :update_mainstream_slug, [:old_slug, :new_slug] => :environment do |_task, args| MainstreamSlugUpdater.new(args[:old_slug], args[:new_slug], Logger.new(STDOUT)).update end
<|file_sep|>original/lib/tasks/update_mainstream_slug.rake desc "Update a mainstream slug.\n See original documentation @ https://github.com/alphagov/wiki/wiki/Changing-GOV.UK-URLs#making-the-change" task :update_mainstream_slug, [:old_slug, :new_slug] => :environment do |_task, args| MainstreamSlugUpdater.new(args[...
10f84df5b9ba5b42d9cb02279b0fa745a7454487
lib/tasks/update_mainstream_slug.rake
lib/tasks/update_mainstream_slug.rake
Ruby
<|file_sep|>hr_contract_reference/models/hr_contract.py.diff original: readonly=True, copy=False) updated: readonly=True, copy=False, default='/') <|file_sep|>original/hr_contract_reference/models/hr_contract.py # You should have received a copy of the GNU Affero General Public Lic...
# GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models...
<|file_sep|>hr_contract_reference/models/hr_contract.py.diff original: readonly=True, copy=False) updated: readonly=True, copy=False, default='/') <|file_sep|>original/hr_contract_reference/models/hr_contract.py # You should have received a copy of the GNU Affero General Public Lic...
c9b0bfa8d7ced6b521fa4e0454e8640e11aa512b
hr_contract_reference/models/hr_contract.py
hr_contract_reference/models/hr_contract.py
Python
<|file_sep|>package.json.diff original: "dependencies" : { updated: "dependencies": { <|file_sep|>original/package.json "node": ">= 0.8.0" }, "scripts": { "test": "grunt test" }, "dependencies" : { "java-properties": "~0.1.5" }, "devDependencies": { "grunt-contrib-jshint": "~0.1.1", ...
"node": ">= 0.8.0" }, "scripts": { "test": "grunt test" }, "dependencies": { "java-properties": "~0.1.5" }, "devDependencies": { "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-clean": "~0.4.0", "grunt-contrib-nodeunit": "~0.1.2", "grunt": "~0.4.0" }, "peerDependencies": { ...
<|file_sep|>package.json.diff original: "dependencies" : { updated: "dependencies": { <|file_sep|>original/package.json "node": ">= 0.8.0" }, "scripts": { "test": "grunt test" }, "dependencies" : { "java-properties": "~0.1.5" }, "devDependencies": { "grunt-contrib-jshint": "~0.1.1", ...
ea5bc6daa22e6d0f2caf79b43b8be52cd089843b
package.json
package.json
JSON
<|file_sep|>_posts/2016-07-05-git-hublog.markdown.diff original: updated: <|file_sep|>original/_posts/2016-07-05-git-hublog.markdown --- layout: post title: "git hublog" date: 2016-07-05 01:30:00 tags: [git, node.js, curses, terminal] --- Sneak peak of git hublog project! {% responsive_image path: assets/hublog1.g...
--- layout: post title: "git hublog" date: 2016-07-05 01:30:00 tags: [git, node.js, curses, terminal] --- Sneak peak of git hublog project! {% responsive_image path: assets/hublog1.gif %} I am trying to build better and interactive git logs in command line using [blessed](https://github.com/chjj/blessed). Inspirat...
<|file_sep|>_posts/2016-07-05-git-hublog.markdown.diff original: updated: <|file_sep|>original/_posts/2016-07-05-git-hublog.markdown --- layout: post title: "git hublog" date: 2016-07-05 01:30:00 tags: [git, node.js, curses, terminal] --- Sneak peak of git hublog project! {% responsive_image path: assets/hublog1.g...
a7b31d608f9d09c5877a36edd6a18029bec4947b
_posts/2016-07-05-git-hublog.markdown
_posts/2016-07-05-git-hublog.markdown
Markdown
<|file_sep|>app.py.diff original: updated: import sqlite3 from flask import request import json <|file_sep|>app.py.diff original: @self.app.route("/post", methods=['POST']) def add_post(): return "POST" updated: self.context = self.app.app_context().g self.app.add_url_rule(...
self.app.config.update(dict( DATABASE=os.path.join(self.app.root_path, 'blog.db'), PORT=8080, )) self.context = self.app.app_context().g self.app.add_url_rule("/post", view_func=self.add_post, methods=['POST']) self.app.add_url_rule("/posts", view_func=se...
<|file_sep|>app.py.diff original: updated: import sqlite3 from flask import request import json <|file_sep|>app.py.diff original: @self.app.route("/post", methods=['POST']) def add_post(): return "POST" updated: self.context = self.app.app_context().g self.app.add_url_rule(...
d5ff70922ca22673cbdbadcd8cf745f81f47e7c1
app.py
app.py
Python
<|file_sep|>original/app/lib/ehjob_authentication/api_client.rb class ApiClient include Singleton include HTTParty format :json default_options.merge!(verify: false) headers 'Content-Type' => 'application/json' headers 'Accept' => 'application/json' debug_output $stderr if Figaro.env.http...
class ApiClient include Singleton include HTTParty format :json default_options.merge!(verify: false) headers 'Content-Type' => 'application/json' headers 'Accept' => 'application/json' debug_output $stderr if Figaro.env.httparty_debug? headers 'HTTP_AUTHORIZATION' => "Token token='#...
<|file_sep|>original/app/lib/ehjob_authentication/api_client.rb class ApiClient include Singleton include HTTParty format :json default_options.merge!(verify: false) headers 'Content-Type' => 'application/json' headers 'Accept' => 'application/json' debug_output $stderr if Figaro.env.http...
854f24a55f85496fe2f1418d6c2b09688206f839
app/lib/ehjob_authentication/api_client.rb
app/lib/ehjob_authentication/api_client.rb
Ruby
<|file_sep|>Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java.diff original: updated: public String pictureUrl; <|file_sep|>Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java.diff original: ...
// ----------------- Constructor ------------------ // public LiveFeedMessage(String text, int type, String dateTime, String tweetLink, String sender, String coworkerLinkedInId, Boolean isBirthday, String pictureUrl) { this.text = text; this.type = type; this.dateTime = dateTime; ...
<|file_sep|>Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java.diff original: updated: public String pictureUrl; <|file_sep|>Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java.diff original: ...
b49fc69262882398330bd1602f003175ea75c66b
Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java
Android/Les4ElefantCowork/app/src/main/java/com/les4elefantastiq/les4elefantcowork/models/LiveFeedMessage.java
Java
<|file_sep|>original/.github/workflows/test.yml branches: - master pull_request: branches: - "*" jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 1 - uses: ruby/setup-ruby@v1 with: bundler-cache: true...
jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 1 - uses: ruby/setup-ruby@v1 with: bundler-cache: true - name: test html run: | bundle exec rake assets:precompile bundle exec rake test ...
<|file_sep|>original/.github/workflows/test.yml branches: - master pull_request: branches: - "*" jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 1 - uses: ruby/setup-ruby@v1 with: bundler-cache: true...
594d9072417d380e159e2fc8a5d0185468b7984d
.github/workflows/test.yml
.github/workflows/test.yml
YAML
<|file_sep|>original/.travis.yml language: node_js node_js: - 8 - 10 - 12 env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 matrix: include: - name: Lint node_js: 12 script: npm run lint before_install: 'sudo apt-get update && sudo a...
language: node_js node_js: - 10 - 12 env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 matrix: include: - name: Lint node_js: 12 script: npm run lint before_install: 'sudo apt-get update && sudo apt-get install -y optipng pngcrush pngq...
<|file_sep|>original/.travis.yml language: node_js node_js: - 8 - 10 - 12 env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 matrix: include: - name: Lint node_js: 12 script: npm run lint before_install: 'sudo apt-get update && sudo a...
0f7ced7edf49179aa68db7b43589882c1cb954e0
.travis.yml
.travis.yml
YAML