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/_drafts/2018-10-18.md --- title: "Talks: October 18th, 2018 @ 18:00" date: 2018-10-18 meetup_id: "254164244" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/254164244/" venue_name: "Lightspeed POS" venue_address: "700 rue St-Antoine Est, Montréal, QC" venue_address_map_url: "http...
--- title: "Talks: October 18th, 2018 @ 18:00" date: 2018-10-18 meetup_id: "254164244" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/254164244/" venue_name: "Lightspeed POS" venue_address: "700 rue St-Antoine Est, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=700+ru...
<|file_sep|>original/_drafts/2018-10-18.md --- title: "Talks: October 18th, 2018 @ 18:00" date: 2018-10-18 meetup_id: "254164244" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/254164244/" venue_name: "Lightspeed POS" venue_address: "700 rue St-Antoine Est, Montréal, QC" venue_address_map_url: "http...
37834588117862223110d501f2c45cca00bebfd2
_drafts/2018-10-18.md
_drafts/2018-10-18.md
Markdown
<|file_sep|>original/.travis.yml language: ruby # Auto-detected as well rvm: - "1.9.3" - "2.0.0" - "2.1.1" <|file_sep|>current/.travis.yml language: ruby # Auto-detected as well rvm: - "1.9.3" - "2.0.0" - "2.1.1" <|file_sep|>updated/.travis.yml
language: ruby # Auto-detected as well rvm: - "1.9.3" - "2.0.0" - "2.1.8" - "2.2.4" - "2.3.0"
<|file_sep|>original/.travis.yml language: ruby # Auto-detected as well rvm: - "1.9.3" - "2.0.0" - "2.1.1" <|file_sep|>current/.travis.yml language: ruby # Auto-detected as well rvm: - "1.9.3" - "2.0.0" - "2.1.1" <|file_sep|>updated/.travis.yml language: ruby # Auto-detected as well rvm: - "1.9.3" - "2....
22a71b6d3bcc103d0f1d1803913b338836437881
.travis.yml
.travis.yml
YAML
<|file_sep|>original/lib/cocoapods/search/pod.rb require 'mechanize' module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count, :has_github def score if @has_github @star_count + @fork_count * 5 else 0 end end def to_a if @has_github ...
require 'mechanize' module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count, :has_github def initialize @has_github = false end def score if @has_github @star_count + @fork_count * 5 else 0 end end def to_a if @has_gith...
<|file_sep|>original/lib/cocoapods/search/pod.rb require 'mechanize' module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count, :has_github def score if @has_github @star_count + @fork_count * 5 else 0 end end def to_a if @has_github ...
44401c779b36571f498b612d8788acaf4bf7ab43
lib/cocoapods/search/pod.rb
lib/cocoapods/search/pod.rb
Ruby
<|file_sep|>original/hoster_endpoint.go package gohost // HosterEndpoint is an interface for an endpoint that can be hosted. type HosterEndpoint interface { // Serve hosts the endpoint. Serve() } <|file_sep|>current/hoster_endpoint.go package gohost // HosterEndpoint is an interface for an endpoint that can be host...
package gohost // HosterEndpoint is an interface for an endpoint that can be hosted. type HosterEndpoint interface { // Serve hosts the endpoint. Serve() error }
<|file_sep|>original/hoster_endpoint.go package gohost // HosterEndpoint is an interface for an endpoint that can be hosted. type HosterEndpoint interface { // Serve hosts the endpoint. Serve() } <|file_sep|>current/hoster_endpoint.go package gohost // HosterEndpoint is an interface for an endpoint that can be host...
1d4d34d481b33b5f0a2974081836ebdc40222376
hoster_endpoint.go
hoster_endpoint.go
Go
<|file_sep|>original/static/js/app.js pyrcApp.controller("ircCtrl", function($scope) { $scope.messages = []; $scope.msg = ""; $scope.username = "Pyrc"; // Define the controller method for sending an IRC message. $scope.sendIrcMessage = function() { message = irc.privmsg("#python-requests", ...
pyrcApp.controller("ircCtrl", function($scope) { $scope.messages = []; $scope.msg = ""; $scope.username = "Pyrc"; // Define the controller method for sending an IRC message. $scope.sendIrcMessage = function() { message = irc.privmsg("#python-requests", $scope.msg); window.conn.send(...
<|file_sep|>original/static/js/app.js pyrcApp.controller("ircCtrl", function($scope) { $scope.messages = []; $scope.msg = ""; $scope.username = "Pyrc"; // Define the controller method for sending an IRC message. $scope.sendIrcMessage = function() { message = irc.privmsg("#python-requests", ...
fb14642892877033a091a63c8d902330ca5b8215
static/js/app.js
static/js/app.js
JavaScript
<|file_sep|>original/edit_spectide.py """ Edits the spectide amplitude values to some factor of their original value. WARNING: When using this on FVCOM input files, it will change the format of the variables. changeNC presumes each variable has a value and unit associated with it, whereas some of the variables in the...
""" Edits the spectide amplitude values to some factor of their original value. WARNING: When using this on FVCOM input files, it will change the format of the variables. changeNC presumes each variable has a value and unit associated with it, whereas some of the variables in the FVCOM inputs are in fact not that so...
<|file_sep|>original/edit_spectide.py """ Edits the spectide amplitude values to some factor of their original value. WARNING: When using this on FVCOM input files, it will change the format of the variables. changeNC presumes each variable has a value and unit associated with it, whereas some of the variables in the...
840d80c543c4688ebd1bda41b8689cf404bf755c
edit_spectide.py
edit_spectide.py
Python
<|file_sep|>package.json.diff original: "version" : "0.2.0", updated: "version" : "0.3.0", <|file_sep|>original/package.json { "name" : "micro", "description" : "Micro is a micro framework along the same lines a Sinatra, running on top of Proton.js (hence JSGI).", "main" :...
{ "name" : "micro", "description" : "Micro is a micro framework along the same lines a Sinatra, running on top of Proton.js (hence JSGI).", "main" : "./lib/micro", "engines" : [ "node >=0.2.5" ], "version" : "0.3.0", "author" : "Thomas Yandell <tom.deletethis@yan...
<|file_sep|>package.json.diff original: "version" : "0.2.0", updated: "version" : "0.3.0", <|file_sep|>original/package.json { "name" : "micro", "description" : "Micro is a micro framework along the same lines a Sinatra, running on top of Proton.js (hence JSGI).", "main" :...
6e2742fe681faa812dab302ba240b9ed4f257eac
package.json
package.json
JSON
<|file_sep|>original/source/CONCEPT/sources.cmake embeddable.C enumerator.C factory.C object.C persistenceManager.C preferencesObject.C processor.C property.C selectable.C textPersistenceManager.C timeStamp.C visitor.C molecularInformation.C ) ### asio dependent sources ### IF (BALL_HAS_ASIO) SET(SOURCE...
object.C persistenceManager.C preferencesObject.C processor.C property.C selectable.C textPersistenceManager.C timeStamp.C visitor.C molecularInformation.C ) IF(BALL_HAS_XDR) LIST(APPEND SOURCES_LIST XDRPersistenceManager.C) ENDIF() ### asio dependent sources ### IF (BALL_HAS_ASIO) SET(SOURCES_LIST ${SOUR...
<|file_sep|>original/source/CONCEPT/sources.cmake embeddable.C enumerator.C factory.C object.C persistenceManager.C preferencesObject.C processor.C property.C selectable.C textPersistenceManager.C timeStamp.C visitor.C molecularInformation.C ) ### asio dependent sources ### IF (BALL_HAS_ASIO) SET(SOURCE...
0c49e1de8779fc87baad1dfe95d7054e19f9ad3b
source/CONCEPT/sources.cmake
source/CONCEPT/sources.cmake
CMake
<|file_sep|>original/app/views/spree/products/_sharing.html.erb <div id="social" class="product"> <a class="facebook icon" href="http://www.facebook.com/sharer/sharer.php?u=<%= product_url(@product) %>" target="_blank">fb</a> <a class="twitter icon" href="http://twitter.com/share?text=<%= accurate_title %> by @nys&...
<div id="social" class="product"> <a class="facebook icon" href="http://www.facebook.com/sharer/sharer.php?u=<%= product_url(@product) %>" target="_blank"></a> <a class="twitter icon" href="http://twitter.com/share?text=<%= accurate_title %> by @NYSunshine3&url=<%= product_url(@product) %>" target="_blank"></a> <...
<|file_sep|>original/app/views/spree/products/_sharing.html.erb <div id="social" class="product"> <a class="facebook icon" href="http://www.facebook.com/sharer/sharer.php?u=<%= product_url(@product) %>" target="_blank">fb</a> <a class="twitter icon" href="http://twitter.com/share?text=<%= accurate_title %> by @nys&...
737c95ab946738acf45e7886ef23a607578c31d7
app/views/spree/products/_sharing.html.erb
app/views/spree/products/_sharing.html.erb
HTML+ERB
<|file_sep|>original/pipeline/app/assets/javascripts/controllers/PathwayController.js angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { $scope.user = $cookieStore.get('pathway_user') $http({method: 'GET', url: '/api/pathways/' + $s...
angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { $scope.user = $cookieStore.get('pathway_user') $http({method: 'GET', url: '/api/pathways/' + $stateParams.id }).success(function(data, status){ $scope.pathway = data }) $s...
<|file_sep|>original/pipeline/app/assets/javascripts/controllers/PathwayController.js angular.module('pathwayApp') .controller('PathwayController', function ($scope, $http, $stateParams, $cookieStore, $state) { $scope.user = $cookieStore.get('pathway_user') $http({method: 'GET', url: '/api/pathways/' + $s...
ca424726a9e75236e4ca5cebef21b19550392aff
pipeline/app/assets/javascripts/controllers/PathwayController.js
pipeline/app/assets/javascripts/controllers/PathwayController.js
JavaScript
<|file_sep|>original/requirements.txt boto==2.38.0 django-storages==1.1.8 Django==1.8.8 # rq.filter: >=1.8,<1.9 Pillow==3.1.0 gunicorn==19.4.5 psycopg2==2.4.6 django-hstore==1.4.0 wsgiref==0.1.2 pep8==1.4.6 flake8==2.0 python-omgeo==1.5 django-registration-redux==1.2 modgrammar-py2==0.9.1 django-celery-with-redis==3.0...
boto==2.38.0 django-storages==1.1.8 Django==1.8.8 # rq.filter: >=1.8,<1.9 Pillow==3.1.0 gunicorn==19.4.5 psycopg2==2.6.1 django-hstore==1.4.0 wsgiref==0.1.2 pep8==1.4.6 flake8==2.0 python-omgeo==1.5 django-registration-redux==1.2 modgrammar-py2==0.9.1 django-celery-with-redis==3.0 # libsass==0.2.4 # We need libsass ve...
<|file_sep|>original/requirements.txt boto==2.38.0 django-storages==1.1.8 Django==1.8.8 # rq.filter: >=1.8,<1.9 Pillow==3.1.0 gunicorn==19.4.5 psycopg2==2.4.6 django-hstore==1.4.0 wsgiref==0.1.2 pep8==1.4.6 flake8==2.0 python-omgeo==1.5 django-registration-redux==1.2 modgrammar-py2==0.9.1 django-celery-with-redis==3.0...
fce63eadec9d35493b81fa9377d646c3fa8b07a7
requirements.txt
requirements.txt
Text
<|file_sep|>spec/spec_helper.rb.diff original: File.open ( full_path, "w+" ) do |f| updated: File.open( full_path, "w+" ) do |f| <|file_sep|>original/spec/spec_helper.rb gem 'minitest' require 'yacl' require 'minitest/autorun' require 'minitest/pride' require 'tmpdir' module SpecHelpers def self.tmpfile_with...
gem 'minitest' require 'yacl' require 'minitest/autorun' require 'minitest/pride' require 'tmpdir' module SpecHelpers def self.tmpfile_with_contents( full_path, contents ) File.open( full_path, "w+" ) do |f| f.write( contents ) end end def self.spec_dir( *other ) ::File.join( proj_root, 'spec'...
<|file_sep|>spec/spec_helper.rb.diff original: File.open ( full_path, "w+" ) do |f| updated: File.open( full_path, "w+" ) do |f| <|file_sep|>original/spec/spec_helper.rb gem 'minitest' require 'yacl' require 'minitest/autorun' require 'minitest/pride' require 'tmpdir' module SpecHelpers def self.tmpfile_with...
a46c7d80a627a7043678dee6fc6486147401b9e4
spec/spec_helper.rb
spec/spec_helper.rb
Ruby
<|file_sep|>original/requirements-dev.txt flaky==3.7.0 freezegun==1.2.2 ipdb==0.13.9 ipython==8.6.0 pytest==7.2.0 pytest-freezegun==0.4.2 python-magic==0.4.27 requests-mock==1.10.0 tox==3.27.0 twine==4.0.1 wheel==0.37.1 <|file_sep|>current/requirements-dev.txt flaky==3.7.0 freezegun==1.2.2 ipdb==0.13.9 ipython==8.6.0 p...
flaky==3.7.0 freezegun==1.2.2 ipdb==0.13.9 ipython==8.6.0 pytest==7.2.0 pytest-freezegun==0.4.2 python-magic==0.4.27 requests-mock==1.10.0 tox==3.27.0 twine==4.0.1 wheel==0.38.1
<|file_sep|>original/requirements-dev.txt flaky==3.7.0 freezegun==1.2.2 ipdb==0.13.9 ipython==8.6.0 pytest==7.2.0 pytest-freezegun==0.4.2 python-magic==0.4.27 requests-mock==1.10.0 tox==3.27.0 twine==4.0.1 wheel==0.37.1 <|file_sep|>current/requirements-dev.txt flaky==3.7.0 freezegun==1.2.2 ipdb==0.13.9 ipython==8.6.0 p...
0ba72b918902b7f46a4a064e4dc330bf093f0881
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>original/requirements-dev.txt -r requirements.txt mock nose sure==1.2.24 coverage freezegun flask boto3>=1.4.4 botocore>=1.4.28 six <|file_sep|>current/requirements-dev.txt -r requirements.txt mock nose sure==1.2.24 coverage freezegun flask boto3>=1.4.4 botocore>=1.4.28 six <|file_sep|>updated/requirements-...
-r requirements.txt mock nose sure==1.2.24 coverage flake8 freezegun flask boto3>=1.4.4 botocore>=1.4.28 six
<|file_sep|>original/requirements-dev.txt -r requirements.txt mock nose sure==1.2.24 coverage freezegun flask boto3>=1.4.4 botocore>=1.4.28 six <|file_sep|>current/requirements-dev.txt -r requirements.txt mock nose sure==1.2.24 coverage freezegun flask boto3>=1.4.4 botocore>=1.4.28 six <|file_sep|>updated/requirements-...
689adf7dbc9ded65e34090f9de23d913e5815858
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.12" - "4" before_install: - npm install -g bower before_script: - npm install -g grunt-cli - bower install <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.12" - "4" before_inst...
sudo: false language: node_js node_js: - "0.10" - "0.12" - 4 - 5 - 6 before_install: - npm install -g bower before_script: - npm install -g grunt-cli - bower install
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.12" - "4" before_install: - npm install -g bower before_script: - npm install -g grunt-cli - bower install <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - "0.10" - "0.12" - "4" before_inst...
0003db55905d64f28a37806957358570d14d26dd
.travis.yml
.travis.yml
YAML
<|file_sep|>shared/gh/scss/components/gh.terms.and.conditions.scss.diff original: updated: h1, h2, h3, h4, h5, h6 { margin-bottom: 20px; } <|file_sep|>original/shared/gh/scss/components/gh.terms.and.conditions.scss .modal-dialog { width: 700px; } .modal-body { ...
#gh-terms-and-conditions-modal { .modal-dialog { width: 700px; } .modal-body { height: 400px; overflow: scroll; padding-top: 10px; h1, h2, h3, h4, h5, h6 { margin-bottom: 20px; } } .modal-footer { border-top: 1px solid #e5e5e5; ...
<|file_sep|>shared/gh/scss/components/gh.terms.and.conditions.scss.diff original: updated: h1, h2, h3, h4, h5, h6 { margin-bottom: 20px; } <|file_sep|>original/shared/gh/scss/components/gh.terms.and.conditions.scss .modal-dialog { width: 700px; } .modal-body { ...
b3e5a08732760640d1fd501d6d087e5dbc7e4459
shared/gh/scss/components/gh.terms.and.conditions.scss
shared/gh/scss/components/gh.terms.and.conditions.scss
SCSS
<|file_sep|>tests/TestCase/Controller/ActivitiesControllerTest.php.diff original: updated: use App\Test\TestCase\Controller\TatoebaControllerTestTrait; <|file_sep|>tests/TestCase/Controller/ActivitiesControllerTest.php.diff original: updated: use TatoebaControllerTestTrait; <|file_sep|>tests/TestCase/Controller/A...
'app.links', 'app.private_messages', 'app.sentences', 'app.sentences_lists', 'app.sentences_sentences_lists', 'app.transcriptions', 'app.users', 'app.users_languages' ); public function setUp() { parent::setUp(); Configure::write('...
<|file_sep|>tests/TestCase/Controller/ActivitiesControllerTest.php.diff original: updated: use App\Test\TestCase\Controller\TatoebaControllerTestTrait; <|file_sep|>tests/TestCase/Controller/ActivitiesControllerTest.php.diff original: updated: use TatoebaControllerTestTrait; <|file_sep|>tests/TestCase/Controller/A...
4e8cd11e5883154df42b1cb148b71b9775d3aeaf
tests/TestCase/Controller/ActivitiesControllerTest.php
tests/TestCase/Controller/ActivitiesControllerTest.php
PHP
<|file_sep|>docker-swarm-cluster-simple/README.md.diff original: This is a sample template to create a Docker Swarm cluster on Azure. It uses Docker hub as a discovery service and requires token(cluster id) as a parameter. User needs to create a token id using command 'docker run swarm create' before the template deplo...
This is a sample template to create a Docker Swarm cluster on Azure. It uses Docker hub as a discovery service and requires token(cluster id) as a parameter. User needs to create a token id using command 'docker run swarm create' before the template deployment. The Swarm created is not secure, use this template to crea...
<|file_sep|>docker-swarm-cluster-simple/README.md.diff original: This is a sample template to create a Docker Swarm cluster on Azure. It uses Docker hub as a discovery service and requires token(cluster id) as a parameter. User needs to create a token id using command 'docker run swarm create' before the template deplo...
568523e58ff0c646cdf8b15e701cc0aed96b593c
docker-swarm-cluster-simple/README.md
docker-swarm-cluster-simple/README.md
Markdown
<|file_sep|>original/README.md <|file_sep|>current/README.md <|file_sep|>updated/README.md
# xiehespa.com Hugo project for [xiehespa](http://xiehespa.com) site. ## Building Install [Hugo](https://gohugo.io/) ```bash git clone git@github.com:kevinschoon/xiehespa cd xiehespa/ hugo --theme=artists ``` You can then upload the files in public/ to your hosting provider.
<|file_sep|>original/README.md <|file_sep|>current/README.md <|file_sep|>updated/README.md # xiehespa.com Hugo project for [xiehespa](http://xiehespa.com) site. ## Building Install [Hugo](https://gohugo.io/) ```bash git clone git@github.com:kevinschoon/xiehespa cd xiehespa/ hugo --theme=artists ``` You can then ...
9175679d02b46acb150c17822e9343ff5ad5d1a6
README.md
README.md
Markdown
<|file_sep|>metadata/de.drmaxnix.birthdaycountdown.yml.diff original: updated: - versionName: 1.1.0 versionCode: 2 commit: b50bf67c7055f82e7474fad51c77b75821c6f764 subdir: android-app/app sudo: - apt-get update || apt-get update - apt-get install -y openjdk-11-jdk-headless - update-...
- apt-get update || apt-get update - apt-get install -y openjdk-11-jdk-headless - update-alternatives --auto java gradle: - yes - versionName: 1.1.0 versionCode: 2 commit: b50bf67c7055f82e7474fad51c77b75821c6f764 subdir: android-app/app sudo: - apt-get update || apt-...
<|file_sep|>metadata/de.drmaxnix.birthdaycountdown.yml.diff original: updated: - versionName: 1.1.0 versionCode: 2 commit: b50bf67c7055f82e7474fad51c77b75821c6f764 subdir: android-app/app sudo: - apt-get update || apt-get update - apt-get install -y openjdk-11-jdk-headless - update-...
e1ab6ff15b4ea716c25885dfffe5ff5b6f6a6d63
metadata/de.drmaxnix.birthdaycountdown.yml
metadata/de.drmaxnix.birthdaycountdown.yml
YAML
<|file_sep|>original/src/types/alphabets.ts /* * Alphabet storage */ export type AlphabetsData = { [name: string]: AlphabetData } export type AlphabetData = { priority: number action: string letters: LetterData[] } export type LetterData = { value: string block: string action?: string } export type ...
/* * Alphabet storage */ export type Block = "s" | "p" | "d" | "f" | "v" export type AlphabetsData = { [name: string]: AlphabetData } export type AlphabetData = { priority: number action: string letters: LetterData[] } export type LetterData = { value: string block: string action?: string }
<|file_sep|>original/src/types/alphabets.ts /* * Alphabet storage */ export type AlphabetsData = { [name: string]: AlphabetData } export type AlphabetData = { priority: number action: string letters: LetterData[] } export type LetterData = { value: string block: string action?: string } export type ...
a199b983beafc9e42fe83a9e873f8b4024f69be0
src/types/alphabets.ts
src/types/alphabets.ts
TypeScript
<|file_sep|>original/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj <|file_sep|>current/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj <|file_sep|>updated/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj
(ns cmr.message-queue.test.queue.queue-broker-wrapper-test "Functions for testing the queue broker wrapper we use for testing." (:require [clojure.test :refer :all] [cmr.common.lifecycle :as lifecycle] [cmr.message-queue.queue.memory-queue :as memory-queue] [cmr.message-queue.queue.queue-protocol :a...
<|file_sep|>original/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj <|file_sep|>current/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj <|file_sep|>updated/message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj (ns cmr.mes...
39120b9d5a49ee66c1d584270d912f1eb636da34
message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj
message-queue-lib/test/cmr/message_queue/test/queue/queue_broker_wrapper_test.clj
Clojure
<|file_sep|>original/roles/desktop-autostart/defaults/main.yml --- autostart: add: - { name: Tilda , exec: /usr/bin/tilda } - { name: AppStarter , exec: "{{ ansible_env.HOME }}/bin/app-starter" } remove: - telepathy-indicator.desktop - deja-dup-monitor.desktop - onboard-autostart.desktop - ...
--- autostart: add: - { name: Tilda , exec: /usr/bin/tilda } - { name: AppStarter , exec: "{{ ansible_env.HOME }}/bin/app-starter" } remove: # - telepathy-indicator.desktop - deja-dup-monitor.desktop - onboard-autostart.desktop - orca-autostart.desktop - vino-server.desktop # - upda...
<|file_sep|>original/roles/desktop-autostart/defaults/main.yml --- autostart: add: - { name: Tilda , exec: /usr/bin/tilda } - { name: AppStarter , exec: "{{ ansible_env.HOME }}/bin/app-starter" } remove: - telepathy-indicator.desktop - deja-dup-monitor.desktop - onboard-autostart.desktop - ...
a8fde298cfd7d8bbe443babf2b663f8c13d7e3c2
roles/desktop-autostart/defaults/main.yml
roles/desktop-autostart/defaults/main.yml
YAML
<|file_sep|>original/.travis.yml language: haskell ghc: - 7.8 - 7.6 before_install: - sudo apt-get update -qq - sudo apt-get install -qq libglib2.0-dev libcairo2-dev libpango1.0-dev libgtk2.0-dev - git clone https://github.com/pavelkogan/reactive-banana-gtk.git - cabal sandbox init - cabal sandbox add-so...
language: haskell ghc: - 7.8 - 7.6 before_install: - sudo apt-get update -qq - sudo apt-get install -qq libglib2.0-dev libcairo2-dev libpango1.0-dev libgtk2.0-dev - cabal install gtk2hs-buildtools - git clone https://github.com/pavelkogan/reactive-banana-gtk.git - cabal sandbox init - cabal sandbox add...
<|file_sep|>original/.travis.yml language: haskell ghc: - 7.8 - 7.6 before_install: - sudo apt-get update -qq - sudo apt-get install -qq libglib2.0-dev libcairo2-dev libpango1.0-dev libgtk2.0-dev - git clone https://github.com/pavelkogan/reactive-banana-gtk.git - cabal sandbox init - cabal sandbox add-so...
11b3e21465f2d6d58ea5f154e6fb2c5f4173dba6
.travis.yml
.travis.yml
YAML
<|file_sep|>app/views/bookings/show.html.haml.diff original: updated: = contextual_links %h1= @booking <|file_sep|>original/app/views/bookings/show.html.haml - for column in Booking.content_columns %p %b = column.human_name \: = h @booking.send(column.name) = link_to t('bookyt.edit'), :action =...
= contextual_links %h1= @booking - for column in Booking.content_columns %p %b = column.human_name \: = h @booking.send(column.name)
<|file_sep|>app/views/bookings/show.html.haml.diff original: updated: = contextual_links %h1= @booking <|file_sep|>original/app/views/bookings/show.html.haml - for column in Booking.content_columns %p %b = column.human_name \: = h @booking.send(column.name) = link_to t('bookyt.edit'), :action =...
ad9f1d4bd1513d6664498f5342009f972ca8c580
app/views/bookings/show.html.haml
app/views/bookings/show.html.haml
Haml
<|file_sep|>original/child-repo/package.json { "name": "keycloak-auth-utils", "version": "0.0.7", "description": "General Keycloak Utilities", "main": "index.js", "scripts": { "test": "node_modules/jasmine/bin/jasmine.js", "build": "node_modules/grunt-cli/bin/grunt" }, "author": "", "license": "...
{ "name": "keycloak-auth-utils", "version": "0.0.9", "description": "General Keycloak Utilities", "main": "index.js", "scripts": { "test": "node_modules/jasmine/bin/jasmine.js", "build": "node_modules/grunt-cli/bin/grunt" }, "author": "", "license": "Apache-2.0", "devDependencies": { "grun...
<|file_sep|>original/child-repo/package.json { "name": "keycloak-auth-utils", "version": "0.0.7", "description": "General Keycloak Utilities", "main": "index.js", "scripts": { "test": "node_modules/jasmine/bin/jasmine.js", "build": "node_modules/grunt-cli/bin/grunt" }, "author": "", "license": "...
b1dbd8d503b1efe5e6ace1e3907dddee14788620
child-repo/package.json
child-repo/package.json
JSON
<|file_sep|>original/README.md <|file_sep|>current/README.md <|file_sep|>updated/README.md
# Flash Flash is a Rails-like flash library written in PHP. ##Installation (Composer) Simply add the following to composer.json ```json { "require": { "kevinkaske/flash": "dev-master" } } ``` Then run `composer install`. Composer will install the dependant libraries. ##Uasge After some action is done call code ...
<|file_sep|>original/README.md <|file_sep|>current/README.md <|file_sep|>updated/README.md # Flash Flash is a Rails-like flash library written in PHP. ##Installation (Composer) Simply add the following to composer.json ```json { "require": { "kevinkaske/flash": "dev-master" } } ``` Then run `composer install`....
591e99e89cb06dd9abb20329239bcda66a9ee895
README.md
README.md
Markdown
<|file_sep|>original/LOG.md <|file_sep|>current/LOG.md <|file_sep|>updated/LOG.md
laravel new ProjectName Create repository Add files to repository Change Encoding Add .idea to gitignore Fill in composer.json Add license Set app namespace Add treaks to composer.json>php artisan config:cache Add project/author information to composer.json file Extract localization options to env file Extract log opt...
<|file_sep|>original/LOG.md <|file_sep|>current/LOG.md <|file_sep|>updated/LOG.md laravel new ProjectName Create repository Add files to repository Change Encoding Add .idea to gitignore Fill in composer.json Add license Set app namespace Add treaks to composer.json>php artisan config:cache Add project/author inform...
ea93ebb096051e40bfd27b0dc5511ef641e304c7
LOG.md
LOG.md
Markdown
<|file_sep|>original/task/import.js var dbclient = require('pelias-dbclient'); var model = require( 'pelias-model' ); var resolvers = require('./resolvers'); var adminLookupMetaStream = require('../lib/streams/adminLookupMetaStream'); var peliasDocGenerator = require( '../lib/streams/peliasDocGenerator'); module.expo...
var dbclient = require('pelias-dbclient'); var model = require( 'pelias-model' ); var resolvers = require('./resolvers'); var adminLookupMetaStream = require('../lib/streams/adminLookupMetaStream'); var peliasDocGenerator = require( '../lib/streams/peliasDocGenerator'); module.exports = function( filename ){ var pi...
<|file_sep|>original/task/import.js var dbclient = require('pelias-dbclient'); var model = require( 'pelias-model' ); var resolvers = require('./resolvers'); var adminLookupMetaStream = require('../lib/streams/adminLookupMetaStream'); var peliasDocGenerator = require( '../lib/streams/peliasDocGenerator'); module.expo...
c316a0757defcde769be70b5d8af5c51ef0ccb75
task/import.js
task/import.js
JavaScript
<|file_sep|>original/test-requirements.txt # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. hacking>=3.0,<3.1.0 # Apache-2.0 coverage>=3.6 nose pexpect pytho...
# The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. hacking>=0.11.0,<0.12;python_version=='2.7' # Apache-2.0 hacking>=3.0,<3.1.0;python_version>='3.4' # Apache-2...
<|file_sep|>original/test-requirements.txt # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. hacking>=3.0,<3.1.0 # Apache-2.0 coverage>=3.6 nose pexpect pytho...
5250bc85b01e5ebcb136b5c6741034397f577d91
test-requirements.txt
test-requirements.txt
Text
<|file_sep|>original/contrib/performance/event_delete.py <|file_sep|>current/contrib/performance/event_delete.py <|file_sep|>updated/contrib/performance/event_delete.py
""" Benchmark a server's handling of event deletion. """ from itertools import count from urllib2 import HTTPDigestAuthHandler from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks, returnValue from twisted.web.client import Agent from twisted.web.http_headers import Headers from h...
<|file_sep|>original/contrib/performance/event_delete.py <|file_sep|>current/contrib/performance/event_delete.py <|file_sep|>updated/contrib/performance/event_delete.py """ Benchmark a server's handling of event deletion. """ from itertools import count from urllib2 import HTTPDigestAuthHandler from twisted.intern...
950aa44a405b0ca6d057d2583d39f06409ca2c0c
contrib/performance/event_delete.py
contrib/performance/event_delete.py
Python
<|file_sep|>composer.json.diff original: updated: "repositories": [ { "type" : "vcs", "url": "https://github.com/tback/prometheus_client_php" } ], <|file_sep|>original/composer.json "psr-4": { "Tback\\PrometheusExporter\\": "src/" } }, "require": ...
"Tback\\PrometheusExporter\\": "src/" } }, "repositories": [ { "type" : "vcs", "url": "https://github.com/tback/prometheus_client_php" } ], "require": { "jimdo/prometheus_client_php": "dev-store-initialized", "illuminate/support": "^5.6" ...
<|file_sep|>composer.json.diff original: updated: "repositories": [ { "type" : "vcs", "url": "https://github.com/tback/prometheus_client_php" } ], <|file_sep|>original/composer.json "psr-4": { "Tback\\PrometheusExporter\\": "src/" } }, "require": ...
37831a36ea90a008361fefcc9484f55126b6b5c4
composer.json
composer.json
JSON
<|file_sep|>original/.travis.yml language: objective-c osx_image: xcode7.2 before_script: - export LANG=en_US.UTF-8 install: bundle script: - bundle exec rake <|file_sep|>current/.travis.yml language: objective-c osx_image: xcode7.2 before_script: - export LANG=en_US.UTF-8 install: bundle script: - bundle exec ...
language: objective-c osx_image: xcode7.3 before_script: - export LANG=en_US.UTF-8 install: bundle script: - bundle exec rake
<|file_sep|>original/.travis.yml language: objective-c osx_image: xcode7.2 before_script: - export LANG=en_US.UTF-8 install: bundle script: - bundle exec rake <|file_sep|>current/.travis.yml language: objective-c osx_image: xcode7.2 before_script: - export LANG=en_US.UTF-8 install: bundle script: - bundle exec ...
f0009145d532ddfa3a053f174269f5b47a0eeee5
.travis.yml
.travis.yml
YAML
<|file_sep|>original/comprcrypt/comprcrypt.sh ###################### # By aaron # # 2014 # # MIT LICENSE # ###################### # Your GPG ID # GPG= if [ -z $GPG ]; then echo "######################"; echo "# FIRST USE #"; echo "######################"; echo "Please set the ...
###################### # By aaron # # 2014 # # MIT LICENSE # ###################### # Your GPG ID # GPG= if [ -z $GPG ]; then echo "######################" echo "# FIRST USE #" echo "######################" echo "Please set the variable GPG to your key id" exit 0; ...
<|file_sep|>original/comprcrypt/comprcrypt.sh ###################### # By aaron # # 2014 # # MIT LICENSE # ###################### # Your GPG ID # GPG= if [ -z $GPG ]; then echo "######################"; echo "# FIRST USE #"; echo "######################"; echo "Please set the ...
f5d1440aadad2f686908a76ea5373eb04d0dc2af
comprcrypt/comprcrypt.sh
comprcrypt/comprcrypt.sh
Shell
<|file_sep|>tools/BuildStatic.ps1.diff original: $path = "$($buildFolder)\src\WebSite" updated: $outputPath = "..\output"; $sitePath = "$($buildFolder)\src\WebSite" <|file_sep|>tools/BuildStatic.ps1.diff original: $delay = 3000 updated: $delay = 5000 <|file_sep|>tools/BuildStatic.ps1.diff original: Write-Host "Running ...
Write-Host "Running IIS Express from '$($sitePath)'." Start-Process "C:\Program Files (x86)\IIS Express\iisexpress.exe" -NoNewWindow -ArgumentList "/path:$($sitePath) /port:$($port)" Write-Host "Waiting $($delay)." Start-Sleep -Milliseconds $delay Write-Host "Running StaticSiteCrawler." #Start-Process "$($buildFolde...
<|file_sep|>tools/BuildStatic.ps1.diff original: $path = "$($buildFolder)\src\WebSite" updated: $outputPath = "..\output"; $sitePath = "$($buildFolder)\src\WebSite" <|file_sep|>tools/BuildStatic.ps1.diff original: $delay = 3000 updated: $delay = 5000 <|file_sep|>tools/BuildStatic.ps1.diff original: Write-Host "Running ...
20054970f291de49bb8b05f4b616a2e61b6f944d
tools/BuildStatic.ps1
tools/BuildStatic.ps1
PowerShell
<|file_sep|>.travis.yml.diff original: updated: - 2.2.2 <|file_sep|>original/.travis.yml sudo: false language: ruby rvm: - 2.3.1 before_install: gem install bundler -v 1.12.5 gemfile: - gemfiles/sprockets3.gemfile - gemfiles/sprockets4.gemfile <|file_sep|>current/.travis.yml sudo: false language: ruby rvm: -...
sudo: false language: ruby rvm: - 2.2.2 - 2.3.1 gemfile: - gemfiles/sprockets3.gemfile - gemfiles/sprockets4.gemfile
<|file_sep|>.travis.yml.diff original: updated: - 2.2.2 <|file_sep|>original/.travis.yml sudo: false language: ruby rvm: - 2.3.1 before_install: gem install bundler -v 1.12.5 gemfile: - gemfiles/sprockets3.gemfile - gemfiles/sprockets4.gemfile <|file_sep|>current/.travis.yml sudo: false language: ruby rvm: -...
138aba0f264f907a549465c4f025fb3655653946
.travis.yml
.travis.yml
YAML
<|file_sep|>original/importer/importer.sh #!/bin/bash touch $1 > $1 robots=( "github.com/trinchan/slackbot/robots/decide" "github.com/trinchan/slackbot/robots/bijin" "github.com/trinchan/slackbot/robots/bots" "github.com/trinchan/slackbot/robots/nihongo" "github.com/trinchan/slackbot/robots/ping" ...
#!/bin/bash touch $1 > $1 robots=( "github.com/trinchan/slackbot/robots/decide" "github.com/trinchan/slackbot/robots/bijin" "github.com/trinchan/slackbot/robots/nihongo" "github.com/trinchan/slackbot/robots/ping" "github.com/trinchan/slackbot/robots/roll" "github.com/trinchan/slackbot/robots/sto...
<|file_sep|>original/importer/importer.sh #!/bin/bash touch $1 > $1 robots=( "github.com/trinchan/slackbot/robots/decide" "github.com/trinchan/slackbot/robots/bijin" "github.com/trinchan/slackbot/robots/bots" "github.com/trinchan/slackbot/robots/nihongo" "github.com/trinchan/slackbot/robots/ping" ...
7b666ed34d2839e27b38353ed434812cb6ee9d73
importer/importer.sh
importer/importer.sh
Shell
<|file_sep|>Source/Charts/Formatters/IValueFormatter.swift.diff original: /// Interface that allows custom formatting of all values inside the chart before they are being drawn to the screen. updated: /// Interface that allows custom formatting of all values inside the chart before they are drawn to the screen. <|file_...
@objc(IChartValueFormatter) public protocol IValueFormatter: class { /// Called when a value (from labels inside the chart) is formatted before being drawn. /// /// For performance reasons, avoid excessive calculations and memory allocations inside this method. /// /// - returns: ...
<|file_sep|>Source/Charts/Formatters/IValueFormatter.swift.diff original: /// Interface that allows custom formatting of all values inside the chart before they are being drawn to the screen. updated: /// Interface that allows custom formatting of all values inside the chart before they are drawn to the screen. <|file_...
e1f3b713bdd2601b0169ed0db913b823d65bdd72
Source/Charts/Formatters/IValueFormatter.swift
Source/Charts/Formatters/IValueFormatter.swift
Swift
<|file_sep|>uplink/clients/io/__init__.py.diff original: from uplink.clients.io.twisted_strategy import TwistedStrategy updated: <|file_sep|>original/uplink/clients/io/__init__.py __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy"...
try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may...
<|file_sep|>uplink/clients/io/__init__.py.diff original: from uplink.clients.io.twisted_strategy import TwistedStrategy updated: <|file_sep|>original/uplink/clients/io/__init__.py __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy"...
41478d9ef0f8506ebe11ea5746450fe6dca02982
uplink/clients/io/__init__.py
uplink/clients/io/__init__.py
Python
<|file_sep|>Resources/config/routing.yml.diff original: defaults: { _controller: rabus.twitter.sign_in_controller:authenticate } updated: defaults: { _controller: rabus.twitter.sign_in_controller:authenticateAction } <|file_sep|>original/Resources/config/routing.yml rabus_twitter_signin_authenticate: patter...
rabus_twitter_signin_authenticate: pattern: /authenticate defaults: { _controller: rabus.twitter.sign_in_controller:authenticateAction } rabus_twitter_signin_callback: pattern: /callback defaults: { _controller: rabus.twitter.sign_in_controller:callbackAction }
<|file_sep|>Resources/config/routing.yml.diff original: defaults: { _controller: rabus.twitter.sign_in_controller:authenticate } updated: defaults: { _controller: rabus.twitter.sign_in_controller:authenticateAction } <|file_sep|>original/Resources/config/routing.yml rabus_twitter_signin_authenticate: patter...
92bf72abe6ea95820d87bb617fe5d4895c10dc4e
Resources/config/routing.yml
Resources/config/routing.yml
YAML
<|file_sep|>lib/backend/receiver.js.diff original: function Receiver(port) { updated: function MsgPackReceiver(port) { <|file_sep|>lib/backend/receiver.js.diff original: Receiver.prototype = new EventEmitter(); updated: MsgPackReceiver.prototype = new EventEmitter(); <|file_sep|>lib/backend/receiver.js.diff original: R...
}; MsgPackReceiver.prototype.close = function() { if (this._server) { this._server.close(); this._server = undefined; } this.port = undefined; }; exports.MsgPackReceiver = MsgPackReceiver; function Receiver(port) { MsgPackReceiver.apply(this, arguments); } Receiver.prototype = Object.create(MsgPack...
<|file_sep|>lib/backend/receiver.js.diff original: function Receiver(port) { updated: function MsgPackReceiver(port) { <|file_sep|>lib/backend/receiver.js.diff original: Receiver.prototype = new EventEmitter(); updated: MsgPackReceiver.prototype = new EventEmitter(); <|file_sep|>lib/backend/receiver.js.diff original: R...
5b58c961c3b6c53ad80235dae6d651550c1d6b5f
lib/backend/receiver.js
lib/backend/receiver.js
JavaScript
<|file_sep|>original/champions.md ## About Champions **Champions are your local contact for the UK RSE community.** If you can't see your place of work listed, and you'd like to help out, then please submit a pull request with your details and we'll add you. As a Champion we ask that you host a seminar for people at...
As a Champion we ask that you host a seminar for people at your institution about the practice of Research Software Engineering and UK RSE. You could give this talk yourself or ask another Champion to visit you. COLUMN_SEPARATOR ## List of Champions ### University of Manchester * [Robert Haines](http://software.ac.u...
<|file_sep|>original/champions.md ## About Champions **Champions are your local contact for the UK RSE community.** If you can't see your place of work listed, and you'd like to help out, then please submit a pull request with your details and we'll add you. As a Champion we ask that you host a seminar for people at...
093d1bcb6fd886bb392462da3037ce51cc0271c9
champions.md
champions.md
Markdown
<|file_sep|>original/README.md ### Clone and Install ``` git clone https://github.com/alphagov/performanceplatform-notifier cd performanceplatform-notifier npm install ``` ### Run Tests ``` npm test ``` ### Run Linting <|file_sep|>current/README.md ### Clone and Install ``` git clone https://github.com/alp...
### Clone and Install ``` git clone https://github.com/alphagov/performanceplatform-notifier cd performanceplatform-notifier npm install ``` ### Run the app ``` node ./lib/send-summaries.js ``` ### Run Tests ``` npm test
<|file_sep|>original/README.md ### Clone and Install ``` git clone https://github.com/alphagov/performanceplatform-notifier cd performanceplatform-notifier npm install ``` ### Run Tests ``` npm test ``` ### Run Linting <|file_sep|>current/README.md ### Clone and Install ``` git clone https://github.com/alp...
05a3cbdc69c9d5899e337f865ca14497fff620f5
README.md
README.md
Markdown
<|file_sep|>original/ansible-playbooks/deploy-page-hit-counter.yml name: docker-py version: 1.5.0 - name: run page-hit-counter-redis docker: docker_api_version: "1.18" image: redis:3.0.5 state: started pull: "always" registry: "<< your registry here >>"...
name: docker-py version: 1.5.0 - name: run page-hit-counter-redis docker: docker_api_version: "1.18" image: redis:3.0.5 state: started pull: "always" name: page-hit-counter-redis - name: run page-hit-counter-app docker: docker_api_ver...
<|file_sep|>original/ansible-playbooks/deploy-page-hit-counter.yml name: docker-py version: 1.5.0 - name: run page-hit-counter-redis docker: docker_api_version: "1.18" image: redis:3.0.5 state: started pull: "always" registry: "<< your registry here >>"...
77980f8757d1def2dff0fe2c1287d1ff8651ad46
ansible-playbooks/deploy-page-hit-counter.yml
ansible-playbooks/deploy-page-hit-counter.yml
YAML
<|file_sep|>original/lib/generators/sts_salesforce/install/install_generator.rb include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../templates', __FILE__ ) desc "add migrations" def self.next_migration_number(path) unle...
include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../templates', __FILE__ ) desc "add migrations" def copy_migrations copy_migration "create_salesforce_orgs" copy_migration "add_disabled_to_salesforce_org" ...
<|file_sep|>original/lib/generators/sts_salesforce/install/install_generator.rb include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../templates', __FILE__ ) desc "add migrations" def self.next_migration_number(path) unle...
cc321494762b6daee1054dccc1d33b613f12512d
lib/generators/sts_salesforce/install/install_generator.rb
lib/generators/sts_salesforce/install/install_generator.rb
Ruby
<|file_sep|>original/package-metadata.json {"url": "https://github.com/paccator/GotoRecent", "version": "2011.11.16.06.25.17", "description": "Sublime Text 2 plugin that adds a panel to reopen recently closed files"} <|file_sep|>current/package-metadata.json {"url": "https://github.com/paccator/GotoRecent", "version": ...
{"url": "https://github.com/nateyu/quickly_open_files", "version": "2012.02.22.10", "description": "Sublime Text 2 plugin that adds a quickly open panel to list the opened files "}
<|file_sep|>original/package-metadata.json {"url": "https://github.com/paccator/GotoRecent", "version": "2011.11.16.06.25.17", "description": "Sublime Text 2 plugin that adds a panel to reopen recently closed files"} <|file_sep|>current/package-metadata.json {"url": "https://github.com/paccator/GotoRecent", "version": ...
93f2a04e64666d783703441d52fcd2c64004fd70
package-metadata.json
package-metadata.json
JSON
<|file_sep|>test/util.js.diff original: updated: var Chan = require("../src/models/chan"); <|file_sep|>original/test/util.js this.emit("privmsg", message); }; module.exports = { createClient: function() { return new MockClient(); }, createNetwork: function() { return new Network({ host: "example.com", ...
}, opts); this.emit("privmsg", message); }; module.exports = { createClient: function() { return new MockClient(); }, createNetwork: function() { return new Network({ host: "example.com", channels: [new Chan({ name: "#test-channel" })] }); }, createWebserver: function() { return express();...
<|file_sep|>test/util.js.diff original: updated: var Chan = require("../src/models/chan"); <|file_sep|>original/test/util.js this.emit("privmsg", message); }; module.exports = { createClient: function() { return new MockClient(); }, createNetwork: function() { return new Network({ host: "example.com", ...
2f1eec32b35cdb0c379ece2837edb95fca13e009
test/util.js
test/util.js
JavaScript
<|file_sep|>original/Tree/BinaryTreeVerticalOrderTraversal.swift <|file_sep|>current/Tree/BinaryTreeVerticalOrderTraversal.swift <|file_sep|>updated/Tree/BinaryTreeVerticalOrderTraversal.swift
/** * Question Link: https://leetcode.com/problems/binary-tree-vertical-order-traversal/ * Primary idea: Use queues to hold TreeNode and column level, and a dictionary to * map column with its correspond TreeNode vals * * Time Complexity: O(n), Space Complexity: O(n) * * Definition for a binary tr...
<|file_sep|>original/Tree/BinaryTreeVerticalOrderTraversal.swift <|file_sep|>current/Tree/BinaryTreeVerticalOrderTraversal.swift <|file_sep|>updated/Tree/BinaryTreeVerticalOrderTraversal.swift /** * Question Link: https://leetcode.com/problems/binary-tree-vertical-order-traversal/ * Primary idea: Use queues to hold...
4f6fcfef112ce565247ea16b7ef38e8ce3ce685d
Tree/BinaryTreeVerticalOrderTraversal.swift
Tree/BinaryTreeVerticalOrderTraversal.swift
Swift
<|file_sep|>original/system/views/layouts/layout.phtml "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Welcome to the Kebab Framework</title> <?php ...
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Welcome to the Kebab Framework</title> <?php echo $this->headLink() ->appendStylesheet($th...
<|file_sep|>original/system/views/layouts/layout.phtml "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Welcome to the Kebab Framework</title> <?php ...
29d1a22613ddec9e315ec9a588828c014baaa141
system/views/layouts/layout.phtml
system/views/layouts/layout.phtml
HTML+PHP
<|file_sep|>original/Cargo.toml [package] name = "undo" version = "0.13.0" authors = ["evenorog <evenorog@gmail.com>"] description = "An undo/redo library with dynamic dispatch and automatic command merging." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" lic...
[package] name = "undo" version = "0.13.0" authors = ["evenorog <evenorog@gmail.com>"] description = "An undo/redo library with dynamic dispatch and automatic command merging." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" license = "MIT/Apache-2.0" keywords...
<|file_sep|>original/Cargo.toml [package] name = "undo" version = "0.13.0" authors = ["evenorog <evenorog@gmail.com>"] description = "An undo/redo library with dynamic dispatch and automatic command merging." documentation = "https://docs.rs/undo" repository = "https://github.com/evenorog/undo" readme = "README.md" lic...
01c00eafbf224eea7519750f826402d08d91fa29
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/qml/EditorWindow.qml selectByMouse: true onTextChanged: { app.text = format(text) } function format(text) { return text .replace(/[<>&\n]/g, function(c) { switch (c) { case "&": ret...
onTextChanged: { app.text = format(text) } function format(text) { return text .replace(/[<>&\n]/g, function(c) { switch (c) { case "&": return "&amp;" case "<": return "&lt;" ...
<|file_sep|>original/qml/EditorWindow.qml selectByMouse: true onTextChanged: { app.text = format(text) } function format(text) { return text .replace(/[<>&\n]/g, function(c) { switch (c) { case "&": ret...
f9a3d521de2c01fe82c2d5b1a689cfb0434b3fc4
qml/EditorWindow.qml
qml/EditorWindow.qml
QML
<|file_sep|>original/features/pages.feature @javascript Feature: Making project pages Background: Given a project exists with name: "Ruby Rockstars" And I am logged in as mislav And I am in the project called "Ruby Rockstars" Scenario: I create a page When I go to the pages of the "Ruby Rockstars...
@javascript Feature: Making project pages Background: Given a project exists with name: "Ruby Rockstars" And I am logged in as mislav And I am in the project called "Ruby Rockstars" Scenario: I create a page When I go to the pages of the "Ruby Rockstars" project And I follow "New Page" with...
<|file_sep|>original/features/pages.feature @javascript Feature: Making project pages Background: Given a project exists with name: "Ruby Rockstars" And I am logged in as mislav And I am in the project called "Ruby Rockstars" Scenario: I create a page When I go to the pages of the "Ruby Rockstars...
366dd1d5de6aaa928f8b200922391db389fff07a
features/pages.feature
features/pages.feature
Cucumber
<|file_sep|>presto-docs/src/main/sphinx/release/release-0.124.rst.diff original: * The :func:`approx_percentile` aggregation now also accepts an array of percentages updated: * The :func:`approx_percentile` aggregation now also accepts an array of percentages. <|file_sep|>presto-docs/src/main/sphinx/release/release-0.1...
============= Release 0.124 ============= General Changes --------------- * The :func:`approx_percentile` aggregation now also accepts an array of percentages. Verifier -------- * Add support for pre and post control and test queries. If you are upgrading, you need to alter your ``verifier_queries`` table:: A...
<|file_sep|>presto-docs/src/main/sphinx/release/release-0.124.rst.diff original: * The :func:`approx_percentile` aggregation now also accepts an array of percentages updated: * The :func:`approx_percentile` aggregation now also accepts an array of percentages. <|file_sep|>presto-docs/src/main/sphinx/release/release-0.1...
daf1fbb4690de8e0553dd7476296b112cc59274b
presto-docs/src/main/sphinx/release/release-0.124.rst
presto-docs/src/main/sphinx/release/release-0.124.rst
reStructuredText
<|file_sep|>original/_config/ss3gallery.yml --- name: weboftalent-image-gallery-extensions --- ContentController: extensions: ['LatestGalleryImagesExtension'] GalleryImage: extensions: - ImageMetaDataExtension - MapExtension <|file_sep|>current/_config/ss3gallery.yml --- name: weboftalent-image-gallery-...
--- name: weboftalent-image-gallery-extensions --- ContentController: extensions: ['LatestGalleryImagesExtension'] GalleryImage: extensions: - ImageMetaDataExtension - MapExtension #Used if weboftalent/cachekeyhelper is installed CacheKeyHelper: SiteTree: ['GalleryFolder','GalleryImage'] #Allow gall...
<|file_sep|>original/_config/ss3gallery.yml --- name: weboftalent-image-gallery-extensions --- ContentController: extensions: ['LatestGalleryImagesExtension'] GalleryImage: extensions: - ImageMetaDataExtension - MapExtension <|file_sep|>current/_config/ss3gallery.yml --- name: weboftalent-image-gallery-...
8e0382219abb7e856eed381849f75dc809a228fb
_config/ss3gallery.yml
_config/ss3gallery.yml
YAML
<|file_sep|>original/.travis.yml language: go go: - 1.x - 1.7 - 1.8 - 1.9.x - master before_install: - go install -v github.com/golang/dep/cmd/dep install: - dep ensure script: - go test . ./lib sudo: false <|file_sep|>current/.travis.yml language: go go: - 1.x - 1.7 - 1.8 - 1.9.x - master bef...
language: go go: - 1.x - 1.7 - 1.8 - 1.9.x - master before_install: - go get -u github.com/golang/dep/cmd/dep install: - dep ensure script: - go test . ./lib sudo: false
<|file_sep|>original/.travis.yml language: go go: - 1.x - 1.7 - 1.8 - 1.9.x - master before_install: - go install -v github.com/golang/dep/cmd/dep install: - dep ensure script: - go test . ./lib sudo: false <|file_sep|>current/.travis.yml language: go go: - 1.x - 1.7 - 1.8 - 1.9.x - master bef...
4479a546a4e02ce091e44adc55a52099a97aaddd
.travis.yml
.travis.yml
YAML
<|file_sep|>original/build/etc/MCastPluginConfig.json { "MimeTypes": [ "ammo/com.aterrasys.nevada.locations", "ammo/transapps.maps.pli" ] } //:mode=javascript: (jEdit modeline for syntax highlighting) <|file_sep|>current/build/etc/MCastPluginConfig.json { "MimeTypes": [ "ammo/com.aterrasys.nevada.loca...
{ "MimeTypes": [ "ammo/com.aterrasys.nevada.locations", "ammo/transapps.pli.locations" ] } //:mode=javascript: (jEdit modeline for syntax highlighting)
<|file_sep|>original/build/etc/MCastPluginConfig.json { "MimeTypes": [ "ammo/com.aterrasys.nevada.locations", "ammo/transapps.maps.pli" ] } //:mode=javascript: (jEdit modeline for syntax highlighting) <|file_sep|>current/build/etc/MCastPluginConfig.json { "MimeTypes": [ "ammo/com.aterrasys.nevada.loca...
9a3d1e0cd2199d60441d7b1610a29d3335618e87
build/etc/MCastPluginConfig.json
build/etc/MCastPluginConfig.json
JSON
<|file_sep|>original/doc/mkcert.sh echo "$SSLDIR/certs directory doesn't exist" fi if [ ! -d $SSLDIR/private ]; then echo "$SSLDIR/private directory doesn't exist" fi if [ -f $CERTFILE ]; then echo "$CERTFILE already exists, won't overwrite" exit 1 fi if [ -f $KEYFILE ]; then echo "$KEYFILE already exists,...
echo "$SSLDIR/certs directory doesn't exist" fi if [ ! -d $SSLDIR/private ]; then echo "$SSLDIR/private directory doesn't exist" fi if [ -f $CERTFILE ]; then echo "$CERTFILE already exists, won't overwrite" exit 1 fi if [ -f $KEYFILE ]; then echo "$KEYFILE already exists, won't overwrite" exit 1 fi $OPE...
<|file_sep|>original/doc/mkcert.sh echo "$SSLDIR/certs directory doesn't exist" fi if [ ! -d $SSLDIR/private ]; then echo "$SSLDIR/private directory doesn't exist" fi if [ -f $CERTFILE ]; then echo "$CERTFILE already exists, won't overwrite" exit 1 fi if [ -f $KEYFILE ]; then echo "$KEYFILE already exists,...
3ba8c7eef95e629306871b0eee5c7b20a1e6bcbf
doc/mkcert.sh
doc/mkcert.sh
Shell
<|file_sep|>aspy/yaml/__init__.py.diff original: class OrderedLoader(yaml.loader.Loader): updated: class OrderedLoader(getattr(yaml, 'CSafeLoader', yaml.SafeLoader)): <|file_sep|>original/aspy/yaml/__init__.py class OrderedLoader(yaml.loader.Loader): pass OrderedLoader.add_constructor( yaml.resolver.BaseResol...
class OrderedLoader(getattr(yaml, 'CSafeLoader', yaml.SafeLoader)): pass OrderedLoader.add_constructor( yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, lambda loader, node: OrderedDict(loader.construct_pairs(node)), ) class OrderedDumper(getattr(yaml, 'CSafeDumper', yaml.SafeDumper)): pass Ordered...
<|file_sep|>aspy/yaml/__init__.py.diff original: class OrderedLoader(yaml.loader.Loader): updated: class OrderedLoader(getattr(yaml, 'CSafeLoader', yaml.SafeLoader)): <|file_sep|>original/aspy/yaml/__init__.py class OrderedLoader(yaml.loader.Loader): pass OrderedLoader.add_constructor( yaml.resolver.BaseResol...
18374ff4e3906f704276bb0a7b5a5feae50875a2
aspy/yaml/__init__.py
aspy/yaml/__init__.py
Python
<|file_sep|>setup.py.diff original: updated: 'http://github.com/praekelt/django-photologue/tarball/2.7.praekelt#egg=django-photologue-2.7.praekelt', <|file_sep|>original/setup.py url='http://github.com/praekelt/panya', packages = find_packages(), dependency_links = [ 'http://dist.plone.org/...
url='http://github.com/praekelt/panya', packages = find_packages(), dependency_links = [ 'http://dist.plone.org/thirdparty/', 'http://github.com/praekelt/django-photologue/tarball/2.6.praekelt#egg=django-photologue-2.6.praekelt', 'http://github.com/praekelt/django-photologue/tarball/...
<|file_sep|>setup.py.diff original: updated: 'http://github.com/praekelt/django-photologue/tarball/2.7.praekelt#egg=django-photologue-2.7.praekelt', <|file_sep|>original/setup.py url='http://github.com/praekelt/panya', packages = find_packages(), dependency_links = [ 'http://dist.plone.org/...
efacef78764f9b74d57adb3e092fdd8ac24939b3
setup.py
setup.py
Python
<|file_sep|>lib/visdiff/config.rb.diff original: attr_accessor :base_url, :api_key updated: attr_accessor :base_url, :api_key, :debug <|file_sep|>original/lib/visdiff/config.rb require 'faraday' module Visdiff class Config attr_accessor :base_url, :api_key def initialize end attr_writer :co...
require 'faraday' module Visdiff class Config attr_accessor :base_url, :api_key, :debug def initialize end attr_writer :connection def connection @connection ||= Faraday.new(:url => base_url) do |faraday| faraday.request :multipart faraday.request :url_encoded fa...
<|file_sep|>lib/visdiff/config.rb.diff original: attr_accessor :base_url, :api_key updated: attr_accessor :base_url, :api_key, :debug <|file_sep|>original/lib/visdiff/config.rb require 'faraday' module Visdiff class Config attr_accessor :base_url, :api_key def initialize end attr_writer :co...
000b7856f3d616530eaff5c7aff284e42f4f73f8
lib/visdiff/config.rb
lib/visdiff/config.rb
Ruby
<|file_sep|>tsconfig.json.diff original: updated: "noImplicitThis": true, <|file_sep|>original/tsconfig.json { "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es6", "noImplicitAny": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, ...
{ "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es6", "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "strictNullChecks": true, "sourceMap": true, "jsx"...
<|file_sep|>tsconfig.json.diff original: updated: "noImplicitThis": true, <|file_sep|>original/tsconfig.json { "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es6", "noImplicitAny": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, ...
f698fa25d76311bca2819ce9a4193bf0bfec8c06
tsconfig.json
tsconfig.json
JSON
<|file_sep|>original/requirements.txt pysingleton==0.2.1 colorful==0.4.1 docopt==0.6.2 ipython==5.3.0 tag-expressions>=1.0.0 lxml==4.2.0 radish-parse_type==0.3.5 coverage==4.5.1 PyYAML==3.12 humanize==0.5.1 <|file_sep|>current/requirements.txt pysingleton==0.2.1 colorful==0.4.1 docopt==0.6.2 ipython==5.3.0 tag-expressi...
pysingleton==0.2.1 colorful==0.4.1 docopt==0.6.2 ipython==5.3.0 tag-expressions>=1.0.0 lxml==4.2.1 radish-parse_type==0.3.5 coverage==4.5.1 PyYAML==3.12 humanize==0.5.1
<|file_sep|>original/requirements.txt pysingleton==0.2.1 colorful==0.4.1 docopt==0.6.2 ipython==5.3.0 tag-expressions>=1.0.0 lxml==4.2.0 radish-parse_type==0.3.5 coverage==4.5.1 PyYAML==3.12 humanize==0.5.1 <|file_sep|>current/requirements.txt pysingleton==0.2.1 colorful==0.4.1 docopt==0.6.2 ipython==5.3.0 tag-expressi...
2670e6153bdf0ff643f8b53d90e657db389add1b
requirements.txt
requirements.txt
Text
<|file_sep|>app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java.diff original: updated: import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; <|file_sep|>app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java.diff original...
import org.joda.time.DateTime; import java.lang.reflect.Type; /** * Adapts API dates to JodaTime DateTimes * * @author bherbst */ public class DateTimeTypeAdapter implements JsonDeserializer<DateTime>, JsonSerializer<DateTime> { @Override public DateTime deserialize(JsonElement json, Type typeOfT, JsonDes...
<|file_sep|>app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java.diff original: updated: import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; <|file_sep|>app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java.diff original...
414ff68c1ef0e5d46ae88c497f2c244012e398ce
app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java
app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java
Java
<|file_sep|>original/bastion.yml - name: Configure bastion hosts: bastion become: true roles: - bastion - common - seed-ci - role: cron-ansible system_ansible_root: /opt/source/SeedCI system_ansible_playbook: bastion.yml system_ansible_inventory: /etc/ansible/hosts - role: cr...
- name: Configure bastion hosts: bastion become: true roles: - bastion - common - seed-ci - role: cron-ansible system_ansible_root: /opt/source/SeedCI system_ansible_playbook: bastion.yml system_ansible_inventory: /etc/ansible/hosts - role: cron-cideploy cideploy_ansibl...
<|file_sep|>original/bastion.yml - name: Configure bastion hosts: bastion become: true roles: - bastion - common - seed-ci - role: cron-ansible system_ansible_root: /opt/source/SeedCI system_ansible_playbook: bastion.yml system_ansible_inventory: /etc/ansible/hosts - role: cr...
0c0fa90cf1bdba2d0821c9f099a67ba8528a6ad6
bastion.yml
bastion.yml
YAML
<|file_sep|>original/phpunit-printer.yml options: cd-printer-hide-class: false cd-printer-simple-output: false cd-printer-show-config: true cd-printer-hide-namespace: false cd-printer-anybar: true cd-printer-anybar-port: 1738 markers: cd-pass: "✓ " cd-fail: "✖ " cd-error: "⚈ " cd-skipped: "→ " cd-...
options: cd-printer-hide-class: false cd-printer-simple-output: false cd-printer-show-config: false cd-printer-hide-namespace: false cd-printer-anybar: true cd-printer-anybar-port: 1738 markers: cd-pass: "✓ " cd-fail: "✖ " cd-error: "⚈ " cd-skipped: "→ " cd-incomplete: "∅ " cd-risky: "⌽ "
<|file_sep|>original/phpunit-printer.yml options: cd-printer-hide-class: false cd-printer-simple-output: false cd-printer-show-config: true cd-printer-hide-namespace: false cd-printer-anybar: true cd-printer-anybar-port: 1738 markers: cd-pass: "✓ " cd-fail: "✖ " cd-error: "⚈ " cd-skipped: "→ " cd-...
be3089a432b41e77360ad99a4dec97b77fed51ed
phpunit-printer.yml
phpunit-printer.yml
YAML
<|file_sep|>original/app/core/settings/username-provider.ts /** * @author Daniel de */ export abstract class UsernameProvider { abstract getUsername(): string; } <|file_sep|>current/app/core/settings/username-provider.ts /** * @author Daniel de */ export abstract class UsernameProvider { abstract getUsern...
/** * @author Daniel de Oliveira */ export abstract class UsernameProvider { abstract getUsername(): string; }
<|file_sep|>original/app/core/settings/username-provider.ts /** * @author Daniel de */ export abstract class UsernameProvider { abstract getUsername(): string; } <|file_sep|>current/app/core/settings/username-provider.ts /** * @author Daniel de */ export abstract class UsernameProvider { abstract getUsern...
9435149c3da8fc52e9fd7214b7843983990a7279
app/core/settings/username-provider.ts
app/core/settings/username-provider.ts
TypeScript
<|file_sep|>original/README.md ## mysql-async Tokio based asynchronous MySql client library for rust programming language. ### Installation Library hosted on [crates.io](https://crates.io/crates/mysql_async/). ```toml [dependencies] mysql = "<desired version>" ``` ### Example See crate [documentation](http://black...
## mysql-async Tokio based asynchronous MySql client library for rust programming language. ### Installation Library hosted on [crates.io](https://crates.io/crates/mysql_async/). ```toml [dependencies] mysql_async = "<desired version>" ``` ### Example See crate [documentation](http://blackbeam.org/mysql_async/mysq...
<|file_sep|>original/README.md ## mysql-async Tokio based asynchronous MySql client library for rust programming language. ### Installation Library hosted on [crates.io](https://crates.io/crates/mysql_async/). ```toml [dependencies] mysql = "<desired version>" ``` ### Example See crate [documentation](http://black...
09f8170e9f2eedbf797ec7da2482b71420631b79
README.md
README.md
Markdown
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - '0.10' - '0.12' - '4.2' - '5.1' branches: only: - master - travis-ci before_install: - npm install - npm install istanbul coveralls <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - '0.10' - ...
sudo: false language: node_js node_js: - '0.10' - '0.12' - '4' - '5.1' branches: only: - master - travis-ci before_install: - npm install - npm install istanbul coveralls
<|file_sep|>original/.travis.yml sudo: false language: node_js node_js: - '0.10' - '0.12' - '4.2' - '5.1' branches: only: - master - travis-ci before_install: - npm install - npm install istanbul coveralls <|file_sep|>current/.travis.yml sudo: false language: node_js node_js: - '0.10' - ...
1ae50ec11fad2bb8dff333999d73b9937c677beb
.travis.yml
.travis.yml
YAML
<|file_sep|>original/readme.md ## How to Use Add the following to your Gemfile and run `bundle install`: gem 'selectivizr-rails' Add the following to the `head` tag in your layout: <!--[if lte IE 8]> = javascript_include_tag 'selectivizr' <![endif]--> ## Requirements * Rails 3.1+ * The main JavaS...
## How to Use Add the following to your Gemfile and run `bundle install`: gem 'selectivizr-rails' Add the following to the `head` tag in your layout: <!--[if lte IE 8]> <%= javascript_include_tag 'selectivizr' %> <![endif]--> ## Requirements * Rails 3.1+ * The main JavaScript library (JQuery, Pro...
<|file_sep|>original/readme.md ## How to Use Add the following to your Gemfile and run `bundle install`: gem 'selectivizr-rails' Add the following to the `head` tag in your layout: <!--[if lte IE 8]> = javascript_include_tag 'selectivizr' <![endif]--> ## Requirements * Rails 3.1+ * The main JavaS...
f8169cd63cf3de165192de40c61f253438a94301
readme.md
readme.md
Markdown
<|file_sep|>original/dronesym-python/flask-api/src/node.py <|file_sep|>current/dronesym-python/flask-api/src/node.py <|file_sep|>updated/dronesym-python/flask-api/src/node.py
import requests import json apiUrl = 'http://localhost:3000/dronesym/api/node' def update_drone(id, status): response = requests.post(apiUrl + '/update/' + str(id), json=status, headers={ 'Content-Type' : 'application/json' }) return response.json() def get_drone_by_id(id): response = requests.get(apiUrl + '/get/...
<|file_sep|>original/dronesym-python/flask-api/src/node.py <|file_sep|>current/dronesym-python/flask-api/src/node.py <|file_sep|>updated/dronesym-python/flask-api/src/node.py import requests import json apiUrl = 'http://localhost:3000/dronesym/api/node' def update_drone(id, status): response = requests.post(apiUrl...
db15972cb8efc93e4725967415ca3327473d88bf
dronesym-python/flask-api/src/node.py
dronesym-python/flask-api/src/node.py
Python
<|file_sep|>railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb.diff original: updated: <% module_namespacing do -%> <|file_sep|>original/railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb require 'test_helper' class <%= class_name %>Test < ActionDispatch::...
require 'test_helper' <% module_namespacing do -%> class <%= class_name %>Test < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end end <% end -%>
<|file_sep|>railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb.diff original: updated: <% module_namespacing do -%> <|file_sep|>original/railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb require 'test_helper' class <%= class_name %>Test < ActionDispatch::...
56f098155bee7ce74d8ce2f5c1a343d3200c0458
railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb
railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb
Ruby
<|file_sep|>original/resources/sql/images.sql -- :name create-image-collection :<! :1 insert into image_collections (id, "user", name) values (:id, :user, :name) returning *; -- :name update-image-collection :<! :1 update image_collections set name = :name version = :version where id = :id and "user" = :...
-- :name create-image-collection :<! :1 insert into image_collections (id, "user", name) values (:id, :user, :name) returning *; -- :name update-image-collection :<! :1 update image_collections set name = :name, version = :version where id = :id and "user" = :user returning *; -- :name get-image-collect...
<|file_sep|>original/resources/sql/images.sql -- :name create-image-collection :<! :1 insert into image_collections (id, "user", name) values (:id, :user, :name) returning *; -- :name update-image-collection :<! :1 update image_collections set name = :name version = :version where id = :id and "user" = :...
fca2aeb22ed40556f2f3e8792ba4b414721419fd
resources/sql/images.sql
resources/sql/images.sql
SQL
<|file_sep|>original/sites-available/example.com # listen 80 accept_filter=httpready; # for FreeBSD # listen [::]:80 deferred; # for Linux # listen 80 deferred; # for Linux listen [::]:80; listen 80; # The host name to respond to server_name example.com; # Path for static files root /sites/example.c...
# listen 80 accept_filter=httpready; # for FreeBSD # listen [::]:80 deferred; # for Linux # listen 80 deferred; # for Linux listen [::]:80; listen 80; # The host name to respond to server_name example.com; # Path for static files root /sites/example.com/public; # Specify a charset charset utf-8...
<|file_sep|>original/sites-available/example.com # listen 80 accept_filter=httpready; # for FreeBSD # listen [::]:80 deferred; # for Linux # listen 80 deferred; # for Linux listen [::]:80; listen 80; # The host name to respond to server_name example.com; # Path for static files root /sites/example.c...
d5b5bf9e18717f487a8e48b5edf1f6a94251bf1a
sites-available/example.com
sites-available/example.com
DIGITAL Command Language
<|file_sep|>original/maintainers/scripts/nix-build-src.sh <|file_sep|>current/maintainers/scripts/nix-build-src.sh <|file_sep|>updated/maintainers/scripts/nix-build-src.sh
#!/usr/bin/env bash set -o pipefail set -e if [ "$1" = "-A" ]; then shift fi pkg="$1" # Setup the temporary storage area TMPDIR="" cleanup() { CODE="$?" echo "Cleaning up..." >&2 if [ -n "$TMPDIR" ]; then rm -rf "$TMPDIR" fi exit "$?" } trap cleanup EXIT ERR INT QUIT PIPE TERM TMPDIR="$(mktemp -d)"
<|file_sep|>original/maintainers/scripts/nix-build-src.sh <|file_sep|>current/maintainers/scripts/nix-build-src.sh <|file_sep|>updated/maintainers/scripts/nix-build-src.sh #!/usr/bin/env bash set -o pipefail set -e if [ "$1" = "-A" ]; then shift fi pkg="$1" # Setup the temporary storage area TMPDIR="" cleanup() {...
84327679fb3314a74b26127069cea9ad53de48d9
maintainers/scripts/nix-build-src.sh
maintainers/scripts/nix-build-src.sh
Shell
<|file_sep|>alg_dijkstra_shortest_path.py.diff original: vertex_distances_d = { updated: shortest_path_d = { <|file_sep|>alg_dijkstra_shortest_path.py.diff original: vertex_distances_d[start_vertex] = 0 updated: shortest_path_d[start_vertex] = 0 <|file_sep|>original/alg_dijkstra_shortest_path.py def di...
def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') shortest_path_d = { vertex: inf for vertex in weighted_graph_d } shortest_path_d[start_vertex] = 0 bh = BinaryHeap() # TODO: Continue Dijkstra's algorithm. def main(): weighted_graph_d = { 'u': {'v': 2, 'w...
<|file_sep|>alg_dijkstra_shortest_path.py.diff original: vertex_distances_d = { updated: shortest_path_d = { <|file_sep|>alg_dijkstra_shortest_path.py.diff original: vertex_distances_d[start_vertex] = 0 updated: shortest_path_d[start_vertex] = 0 <|file_sep|>original/alg_dijkstra_shortest_path.py def di...
1a785ac4f272ff24c1dc94789699ab299ad782b9
alg_dijkstra_shortest_path.py
alg_dijkstra_shortest_path.py
Python
<|file_sep|>nitrogen/local.py.diff original: from werkzeug.local import release_local, Local, LocalManager, LocalStack, allocate_lock updated: from werkzeug.local import release_local, Local, LocalManager, LocalStack, allocate_lock, get_ident <|file_sep|>nitrogen/local.py.diff original: # Just adding a __dict__ pr...
# Not adding any more attributes, but we don't want to actually add a dict. __slots__ = () def __init__(self): super(Local, self).__init__() object.__setattr__(self, '__storage__', collections.defaultdict(dict)) @property def __dict__(self): # The __ident_func_...
<|file_sep|>nitrogen/local.py.diff original: from werkzeug.local import release_local, Local, LocalManager, LocalStack, allocate_lock updated: from werkzeug.local import release_local, Local, LocalManager, LocalStack, allocate_lock, get_ident <|file_sep|>nitrogen/local.py.diff original: # Just adding a __dict__ pr...
123ffcabb6fa783b1524a55dd3dce52ad33a13db
nitrogen/local.py
nitrogen/local.py
Python
<|file_sep|>original/requirements.txt django-environ==0.4.4 django-redis==4.9.0 pysolr==3.7.0 redis==2.10.6 requests==2.18.4 uWSGI==2.0.17 whitenoise==3.3.1 # Linting flake8==3.5.0 flake8-debugger==3.1.0 flake8-blind-except==0.1.1 isort==4.3.4 # Helpers pyprof2calltree==1.4.3 ipdb==0.11 ipython==5.5.0 # Country data...
django-environ==0.4.4 django-redis==4.9.0 pysolr==3.7.0 redis==2.10.6 requests==2.18.4 uWSGI==2.0.17 whitenoise==3.3.1 # Linting flake8==3.5.0 flake8-debugger==3.1.0 flake8-blind-except==0.1.1 isort==4.3.4 # Helpers pyprof2calltree==1.4.3 ipdb==0.11 ipython==6.3.0 # Country data pycountry==18.2.23
<|file_sep|>original/requirements.txt django-environ==0.4.4 django-redis==4.9.0 pysolr==3.7.0 redis==2.10.6 requests==2.18.4 uWSGI==2.0.17 whitenoise==3.3.1 # Linting flake8==3.5.0 flake8-debugger==3.1.0 flake8-blind-except==0.1.1 isort==4.3.4 # Helpers pyprof2calltree==1.4.3 ipdb==0.11 ipython==5.5.0 # Country data...
8f1e05ddef5d5da3402e8cee131da2d4392fecce
requirements.txt
requirements.txt
Text
<|file_sep|>original/src/edu/wpi/first/wpilibj/technobots/commands/NormalAutonomous.java */ package edu.wpi.first.wpilibj.technobots.commands; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author miguel */ public class NormalAutonomous extends CommandGroup { public NormalAutonomous() { ...
*/ package edu.wpi.first.wpilibj.technobots.commands; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author miguel */ public class NormalAutonomous extends CommandGroup { public NormalAutonomous() { //addSequential(new StopBall()); addParallel(new ShooterOn(-.6)); addSeq...
<|file_sep|>original/src/edu/wpi/first/wpilibj/technobots/commands/NormalAutonomous.java */ package edu.wpi.first.wpilibj.technobots.commands; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author miguel */ public class NormalAutonomous extends CommandGroup { public NormalAutonomous() { ...
1d91d436dc34f5c92ff8ef3da223b59f75b3918a
src/edu/wpi/first/wpilibj/technobots/commands/NormalAutonomous.java
src/edu/wpi/first/wpilibj/technobots/commands/NormalAutonomous.java
Java
<|file_sep|>original/.github/workflows/codeql.yml <|file_sep|>current/.github/workflows/codeql.yml <|file_sep|>updated/.github/workflows/codeql.yml
name: "CodeQL" on: push: branches: [ "devel" ] pull_request: branches: [ "devel" ] schedule: - cron: "4 0 * * 1" jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false
<|file_sep|>original/.github/workflows/codeql.yml <|file_sep|>current/.github/workflows/codeql.yml <|file_sep|>updated/.github/workflows/codeql.yml name: "CodeQL" on: push: branches: [ "devel" ] pull_request: branches: [ "devel" ] schedule: - cron: "4 0 * * 1" jobs: analyze: name: Analyze ...
a03b420334a13bdfa805f748eaec36a94cfb58ce
.github/workflows/codeql.yml
.github/workflows/codeql.yml
YAML
<|file_sep|>original/.travis.yml before_install: - "chmod +x ./travis.sh" - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh cache: directories: - $HOME/.m2/repository - $HOME/.sonar/cache - $HOME/jvm - $HOME/maven env: - TARGET=BUILD JDK='OpenJDK 9' install: . ./install-jdk.s...
before_install: - "chmod +x ./travis.sh" - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh cache: directories: - $HOME/.m2/repository - $HOME/.sonar/cache - $HOME/jvm - $HOME/maven env: - TARGET=BUILD JDK='OpenJDK 9' install: . ./install-jdk.sh -F 9 -L GPL -W ${HOME}/jvm bran...
<|file_sep|>original/.travis.yml before_install: - "chmod +x ./travis.sh" - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh cache: directories: - $HOME/.m2/repository - $HOME/.sonar/cache - $HOME/jvm - $HOME/maven env: - TARGET=BUILD JDK='OpenJDK 9' install: . ./install-jdk.s...
e8e4cd6e045dbf10e509f455eab2a58c1e811944
.travis.yml
.travis.yml
YAML
<|file_sep|>original/build.sbt import java.util.jar._ crossScalaVersions in ThisBuild := Seq("2.9.1") // doing "in ThisBuild" makes this default setting for all projects in this build version in ThisBuild := "5.7-SNAPSHOT" organization in ThisBuild := "com.gu" publishArtifact := false packageOptions in ThisBuild <...
import java.util.jar._ crossScalaVersions in ThisBuild := Seq("2.9.1") // doing "in ThisBuild" makes this default setting for all projects in this build version in ThisBuild := "5.8-SNAPSHOT" organization in ThisBuild := "com.gu" publishArtifact := false packageOptions in ThisBuild <+= (version, name) map { (v, n)...
<|file_sep|>original/build.sbt import java.util.jar._ crossScalaVersions in ThisBuild := Seq("2.9.1") // doing "in ThisBuild" makes this default setting for all projects in this build version in ThisBuild := "5.7-SNAPSHOT" organization in ThisBuild := "com.gu" publishArtifact := false packageOptions in ThisBuild <...
443db439b1924a95107353be1f5db72b0e8c0e08
build.sbt
build.sbt
Scala
<|file_sep|>original/docs/third-party-tools.rst Golang --------------- - `Boomer <https://github.com/myzhan/boomer/>`_ Java --------------- - `Locust4j <https://github.com/myzhan/locust4j>`_ - `Swarm <https://github.com/anhldbk/swarm>`_ Configuration Management ======================== Deploying Locust is easy, ...
Java --------------- - `Locust4j <https://github.com/myzhan/locust4j>`_ - `Swarm <https://github.com/anhldbk/swarm>`_ Configuration Management ======================== Deploying Locust is easy, but here and there some tools can still provide a measure of convenience. `tinx.locust <https://github.com/tinx/ansible-...
<|file_sep|>original/docs/third-party-tools.rst Golang --------------- - `Boomer <https://github.com/myzhan/boomer/>`_ Java --------------- - `Locust4j <https://github.com/myzhan/locust4j>`_ - `Swarm <https://github.com/anhldbk/swarm>`_ Configuration Management ======================== Deploying Locust is easy, ...
228055e9b9bccbd8cb1a6bba429cf4a05bcdfa24
docs/third-party-tools.rst
docs/third-party-tools.rst
reStructuredText
<|file_sep|>src/main/resources/templates/login.ftl.diff original: <#include "frames/gateway.ftl"> updated: <#include "frames/login-form.ftl"> <|file_sep|>src/main/resources/templates/login.ftl.diff original: <#include "frames/login-form.ftl"> updated: <#include "frames/ga...
<!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item acti...
<|file_sep|>src/main/resources/templates/login.ftl.diff original: <#include "frames/gateway.ftl"> updated: <#include "frames/login-form.ftl"> <|file_sep|>src/main/resources/templates/login.ftl.diff original: <#include "frames/login-form.ftl"> updated: <#include "frames/ga...
e85f5c6742413d62f91a45a0a8e67b88a43f59a2
src/main/resources/templates/login.ftl
src/main/resources/templates/login.ftl
FreeMarker
<|file_sep|>original/metadata/org.secuso.privacyfriendlymemory.txt Categories:Games License:GPL-3.0-only Web Site:https://secuso.org/pfa Source Code:https://github.com/SecUSo/privacy-friendly-memo-game Issue Tracker:https://github.com/SecUSo/privacy-friendly-memo-game/issues Auto Name:Memo Game Summary:Find pairs of c...
Categories:Games License:GPL-3.0-only Web Site:https://secuso.org/pfa Source Code:https://github.com/SecUSo/privacy-friendly-memo-game Issue Tracker:https://github.com/SecUSo/privacy-friendly-memo-game/issues Changelog:https://github.com/SecUSo/privacy-friendly-memo-game/blob/HEAD/CHANGELOG.md Auto Name:Memo Game Summ...
<|file_sep|>original/metadata/org.secuso.privacyfriendlymemory.txt Categories:Games License:GPL-3.0-only Web Site:https://secuso.org/pfa Source Code:https://github.com/SecUSo/privacy-friendly-memo-game Issue Tracker:https://github.com/SecUSo/privacy-friendly-memo-game/issues Auto Name:Memo Game Summary:Find pairs of c...
14ca5f75768ef4220b031d21750e3d7a75d1bc8f
metadata/org.secuso.privacyfriendlymemory.txt
metadata/org.secuso.privacyfriendlymemory.txt
Text
<|file_sep|>original/db/migrate/20160229215635_normalize_titles.rb class NormalizeTitles < ActiveRecord::Migration def up execute "update articles set title = replace(title, ' ', '_')" execute "update assignments set article_title = replace(article_title, ' ', '_')" end end <|file_sep|>current/db/migrate/20...
class NormalizeTitles < ActiveRecord::Migration def up execute "update articles set title = replace(title, ' ', '_')" Assignment.all.each do |assignment| update_assignment(assignment) end end private def update_assignment(assignment) assignment.article_title = Utils.format_article_title(...
<|file_sep|>original/db/migrate/20160229215635_normalize_titles.rb class NormalizeTitles < ActiveRecord::Migration def up execute "update articles set title = replace(title, ' ', '_')" execute "update assignments set article_title = replace(article_title, ' ', '_')" end end <|file_sep|>current/db/migrate/20...
d5b254efd838cb2feaebc9f2d7438248c6d1df93
db/migrate/20160229215635_normalize_titles.rb
db/migrate/20160229215635_normalize_titles.rb
Ruby
<|file_sep|>original/buildsys-tags/cloud7-openstack-ussuri-candidate.yml packages: <|file_sep|>current/buildsys-tags/cloud7-openstack-ussuri-candidate.yml packages: <|file_sep|>updated/buildsys-tags/cloud7-openstack-ussuri-candidate.yml
packages: - project: openvswitch buildsys-tags: cloud7-openstack-ussuri-candidate: openvswitch-2.12.0-1.el7 - project: ovn buildsys-tags: cloud7-openstack-ussuri-candidate: ovn-2.12.0-3.el7
<|file_sep|>original/buildsys-tags/cloud7-openstack-ussuri-candidate.yml packages: <|file_sep|>current/buildsys-tags/cloud7-openstack-ussuri-candidate.yml packages: <|file_sep|>updated/buildsys-tags/cloud7-openstack-ussuri-candidate.yml packages: - project: openvswitch buildsys-tags: cloud7-openstack-ussuri-candi...
4f4f1611f0e15f5709694af863f79d65a93bf22c
buildsys-tags/cloud7-openstack-ussuri-candidate.yml
buildsys-tags/cloud7-openstack-ussuri-candidate.yml
YAML
<|file_sep|>original/app/assets/javascripts/all.js // This is a manifest file used by the runner for JavaScript unit tests. // It is not used in the main application. // //= require govuk_toolkit // //= require_tree ./ //= require_tree ./views <|file_sep|>current/app/assets/javascripts/all.js // This is a manifest file...
// This is a manifest file used by the runner for JavaScript unit tests. // It is not used in the main application. // //= require_tree ./ //= require_tree ./views
<|file_sep|>original/app/assets/javascripts/all.js // This is a manifest file used by the runner for JavaScript unit tests. // It is not used in the main application. // //= require govuk_toolkit // //= require_tree ./ //= require_tree ./views <|file_sep|>current/app/assets/javascripts/all.js // This is a manifest file...
a13896a0799b9d04105c6d32aaf7be03f19d7e1a
app/assets/javascripts/all.js
app/assets/javascripts/all.js
JavaScript
<|file_sep|>src/elements/x-pprss-bottom-bar.html.diff original: paper-fab.blue { background: #526E9C; updated: paper-fab { margin-left: 16px; } paper-fab.mark-as-read { /* background: #526E9C; */ background: #455A64; } paper-fab.open-unread-holder { /* background: #...
</div> </template> <script> (function(){ Polymer('x-pprss-bottom-bar', { client: {}, holderItem: {}, ready: function(){ }, domReady: function(){ }, handleMarkAsRead: function(e){ this.fire('mark-as-read', {holderItem: this.holderItem}); }, hand...
<|file_sep|>src/elements/x-pprss-bottom-bar.html.diff original: paper-fab.blue { background: #526E9C; updated: paper-fab { margin-left: 16px; } paper-fab.mark-as-read { /* background: #526E9C; */ background: #455A64; } paper-fab.open-unread-holder { /* background: #...
4ab7060275f9c8b0b4ff05ba5301d9874ff4577f
src/elements/x-pprss-bottom-bar.html
src/elements/x-pprss-bottom-bar.html
HTML
<|file_sep|>original/README.md # XML Calabash XMLUnit extension step This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 extension step that can compare XML documents using [XMLUnit](http://www.xmlunit.org/). This step should work with either Saxon 9.5 or Saxon 9.6. <|file_sep|>curr...
# XML Calabash XMLUnit extension step [![Build Status](https://travis-ci.org/ndw/xmlcalabash1-xmlunit.svg?branch=master)](https://travis-ci.org/ndw/xmlcalabash1-xmlunit.svg?branch=master) This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 extension step that can compare XML docum...
<|file_sep|>original/README.md # XML Calabash XMLUnit extension step This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1) 1.0 extension step that can compare XML documents using [XMLUnit](http://www.xmlunit.org/). This step should work with either Saxon 9.5 or Saxon 9.6. <|file_sep|>curr...
fa9938af472938086218990cac7e73f43368cddf
README.md
README.md
Markdown
<|file_sep|>original/composer.json "require": { "php": "^5.6 || ^7.0", "laravel/socialite": "~3.0|~4.0" }, "require-dev": { "phpunit/phpunit": "^5.0", "mockery/mockery": "^0.9.4" }, "autoload": { "psr-4": { "SocialiteProviders\\Manager\\": "src/", ...
"require": { "php": "^5.6 || ^7.0", "laravel/socialite": "~3.0|~4.0" }, "require-dev": { "phpunit/phpunit": "^5.0", "mockery/mockery": "^0.9.4" }, "autoload": { "psr-4": { "SocialiteProviders\\Manager\\": "src/" } }, "autoload-dev":...
<|file_sep|>original/composer.json "require": { "php": "^5.6 || ^7.0", "laravel/socialite": "~3.0|~4.0" }, "require-dev": { "phpunit/phpunit": "^5.0", "mockery/mockery": "^0.9.4" }, "autoload": { "psr-4": { "SocialiteProviders\\Manager\\": "src/", ...
9b57f11d0d88a7e0d332000a66a3ef54f581ffe3
composer.json
composer.json
JSON
<|file_sep|>original/tests/constants.py TEST_TOKEN = 'abcdef' TEST_USER = 'ubcdef' TEST_DEVICE = 'my-phone' <|file_sep|>current/tests/constants.py TEST_TOKEN = 'abcdef' TEST_USER = 'ubcdef' TEST_DEVICE = 'my-phone' <|file_sep|>updated/tests/constants.py
TEST_TOKEN = 'azGDORePK8gMaC0QOYAMyEEuzJnyUi' TEST_USER = 'uQiRzpo4DXghDmr9QzzfQu27cmVRsG' TEST_DEVICE = 'droid2'
<|file_sep|>original/tests/constants.py TEST_TOKEN = 'abcdef' TEST_USER = 'ubcdef' TEST_DEVICE = 'my-phone' <|file_sep|>current/tests/constants.py TEST_TOKEN = 'abcdef' TEST_USER = 'ubcdef' TEST_DEVICE = 'my-phone' <|file_sep|>updated/tests/constants.py TEST_TOKEN = 'azGDORePK8gMaC0QOYAMyEEuzJnyUi' TEST_USER = 'uQiRzpo...
16ffb59ea744a95c7420fd8f4212d0c9a414f314
tests/constants.py
tests/constants.py
Python
<|file_sep|>original/spec/workers/circular_dependency_checker.rb <|file_sep|>current/spec/workers/circular_dependency_checker.rb <|file_sep|>updated/spec/workers/circular_dependency_checker.rb
# GitCompound # module GitCompound describe Worker::CircularDependencyChecker do before do git_build_test_environment! # TODO: add circular dependency somewhere manifest_contents = File.read("#{@base_component_dir}/Compoundfile") @manifest = Manifest.new(manifest_contents) end i...
<|file_sep|>original/spec/workers/circular_dependency_checker.rb <|file_sep|>current/spec/workers/circular_dependency_checker.rb <|file_sep|>updated/spec/workers/circular_dependency_checker.rb # GitCompound # module GitCompound describe Worker::CircularDependencyChecker do before do git_build_test_environ...
519a20efe1e9bbcf6ad5b9259423342e59769ded
spec/workers/circular_dependency_checker.rb
spec/workers/circular_dependency_checker.rb
Ruby
<|file_sep|>original/README.md # Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. <|file_sep|>current/README.md # Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. <|file_sep|>updated/README.md
# Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. ``` bundle install createdb pliny-development foreman start web ``
<|file_sep|>original/README.md # Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. <|file_sep|>current/README.md # Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. <|file_sep|>updated/README.md # Pliny Pliny is a template Sinatra app to implement postgres-backed APIs. ...
80ccc5ef130979ddfbf4dfa142356c4f48e2ae0d
README.md
README.md
Markdown
<|file_sep|>original/lib/token.rb class Token def initialize(char) raise 'Only one character is allowed' unless char.size == 1 @char = char end def operator? !/[+\-*\/^%=(),]/.match(@char).nil? end def digit? !/[0-9]/.match(@char).nil? end def white_space? !/\s/.match(@char).nil? ...
class Token def initialize(char) raise 'Only one character is allowed' unless char.size == 1 @char = char end def operator? !/[+\-*\/^%=(),]/.match(@char).nil? end def digit? !/[0-9]/.match(@char).nil? end def white_space? !/\s/.match(@char).nil? end def identifier? !(opera...
<|file_sep|>original/lib/token.rb class Token def initialize(char) raise 'Only one character is allowed' unless char.size == 1 @char = char end def operator? !/[+\-*\/^%=(),]/.match(@char).nil? end def digit? !/[0-9]/.match(@char).nil? end def white_space? !/\s/.match(@char).nil? ...
d1a58b3226e94f49130671141111c4319800faae
lib/token.rb
lib/token.rb
Ruby
<|file_sep|>src/ATPCore/Model/Redirect.php.diff original: $request = "{$path}?{$query}"; $where = '? REGEXP source_pattern'; updated: $request = $query ? "{$path}?{$query}" : $path; $where = '? REGEXP REPLACE(REPLACE(source_pattern, ")", ""), "(", "")'; <|file_sep|>src/ATPCore/Model/Redirect.php.diff origina...
if(count($redirects) > 0) { $redirect = current($redirects); $pattern = $redirect->sourcePattern; $newPath = $redirect->destPattern; preg_match('/'.$pattern.'/', $request, $matches); print_r($matches); $newPath = str_replace('{{request}}', $request, $newPath); $newPat...
<|file_sep|>src/ATPCore/Model/Redirect.php.diff original: $request = "{$path}?{$query}"; $where = '? REGEXP source_pattern'; updated: $request = $query ? "{$path}?{$query}" : $path; $where = '? REGEXP REPLACE(REPLACE(source_pattern, ")", ""), "(", "")'; <|file_sep|>src/ATPCore/Model/Redirect.php.diff origina...
47efa734b882c27aa2a59fbcba34653b4d2125c7
src/ATPCore/Model/Redirect.php
src/ATPCore/Model/Redirect.php
PHP
<|file_sep|>src/python/grpcio_tests/tests/unit/_logging_test.py.diff original: updated: from six.moves import reload_module import logging <|file_sep|>src/python/grpcio_tests/tests/unit/_logging_test.py.diff original: import logging updated: import functools import sys <|file_sep|>original/src/python/grpcio_tests/tes...
import logging import grpc import functools import sys class LoggingTest(unittest.TestCase): def test_logger_not_occupied(self): self.assertEqual(0, len(logging.getLogger().handlers)) def test_handler_found(self): old_stderr = sys.stderr sys.stderr = six.StringIO() try: ...
<|file_sep|>src/python/grpcio_tests/tests/unit/_logging_test.py.diff original: updated: from six.moves import reload_module import logging <|file_sep|>src/python/grpcio_tests/tests/unit/_logging_test.py.diff original: import logging updated: import functools import sys <|file_sep|>original/src/python/grpcio_tests/tes...
b7335f5c011d9fad3570a097fb1165cc6fbd3cef
src/python/grpcio_tests/tests/unit/_logging_test.py
src/python/grpcio_tests/tests/unit/_logging_test.py
Python
<|file_sep|>src/app/attribute-directives/tumblr-embedded-media.directive.ts.diff original: mediaElement.parentElement.style.marginLeft = 0; mediaElement.parentElement.style.marginRight = 0; updated: const parent = mediaElement.parentElement; // media embe...
parent.style.marginLeft = 0; parent.style.marginRight = 0; if (parent.nextSibling && parent.nextSibling.nodeName !== 'FIGURE' && parent.nextSibling.setAttribute) { parent.nextSibling.setAttribute('switch-target', ''); ...
<|file_sep|>src/app/attribute-directives/tumblr-embedded-media.directive.ts.diff original: mediaElement.parentElement.style.marginLeft = 0; mediaElement.parentElement.style.marginRight = 0; updated: const parent = mediaElement.parentElement; // media embe...
1b9360df5bb626c1d37e5144ef83d9da9c59a345
src/app/attribute-directives/tumblr-embedded-media.directive.ts
src/app/attribute-directives/tumblr-embedded-media.directive.ts
TypeScript
<|file_sep|>docker-compose.yml.diff original: image: redis updated: image: redis:alpine <|file_sep|>original/docker-compose.yml MONGODB_DATABASE: bank MONGODB_PORT: 27017 MONGODB_SERVER: mongo REDIS_KEY_TIMEOUT: 30 REDIS_PORT: 6379 REDIS_SERVER: 192.168.99.100 links: - mongo - redi...
MONGODB_SERVER: mongo REDIS_KEY_TIMEOUT: 30 REDIS_PORT: 6379 REDIS_SERVER: 192.168.99.100 links: - mongo - redis mongo: image: mongo ports: - "27017:27017" volumes: - mongo-aspnet-core-docker:/data/db redis: image: redis:alpine ports: - "6379:6379" volumes: - ...
<|file_sep|>docker-compose.yml.diff original: image: redis updated: image: redis:alpine <|file_sep|>original/docker-compose.yml MONGODB_DATABASE: bank MONGODB_PORT: 27017 MONGODB_SERVER: mongo REDIS_KEY_TIMEOUT: 30 REDIS_PORT: 6379 REDIS_SERVER: 192.168.99.100 links: - mongo - redi...
3ba65d1ea6308ff32a2e0f2f7a0189a0f00b4e92
docker-compose.yml
docker-compose.yml
YAML
<|file_sep|>original/gradle.properties VERSION_NAME=5.3.0 POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=sc...
VERSION_NAME=5.3.1-SNAPSHOT POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpan...
<|file_sep|>original/gradle.properties VERSION_NAME=5.3.0 POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=sc...
23014b7763c94f2387a20965b2a504c06bd18f58
gradle.properties
gradle.properties
INI
<|file_sep|>original/doc/feedback/feedback_sprint3.md <|file_sep|>current/doc/feedback/feedback_sprint3.md <|file_sep|>updated/doc/feedback/feedback_sprint3.md
# Feedback PL1 Byzantine Generals | | Sprint 3 | | | | | | |-------------------------------------|------------|-----------|----------------|-----------------------|----------------|------------| | ...
<|file_sep|>original/doc/feedback/feedback_sprint3.md <|file_sep|>current/doc/feedback/feedback_sprint3.md <|file_sep|>updated/doc/feedback/feedback_sprint3.md # Feedback PL1 Byzantine Generals | | Sprint 3 | | | | | ...
cc91fd9016f881b6195f040fa4af3db43a46a049
doc/feedback/feedback_sprint3.md
doc/feedback/feedback_sprint3.md
Markdown