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|>assets/scripts/master.js.diff original: svg4everybody(); // Fix SVG spritemap in IE/Edge updated: <|file_sep|>original/assets/scripts/master.js 'use strict'; /* * Novicell master * Use this file to call functions in other files, on document ready, window.resize etc. */ var novicell = novicell || {}; v...
/* * Novicell master * Use this file to call functions in other files, on document ready, window.resize etc. */ var novicell = novicell || {}; var projectName = projectName || {}; // Document ready document.addEventListener('DOMContentLoaded', function(){ novicell.validate.init(); // Init Validation novicell....
<|file_sep|>assets/scripts/master.js.diff original: svg4everybody(); // Fix SVG spritemap in IE/Edge updated: <|file_sep|>original/assets/scripts/master.js 'use strict'; /* * Novicell master * Use this file to call functions in other files, on document ready, window.resize etc. */ var novicell = novicell || {}; v...
fce3830bed6c03b43e06b648c51154c6f67255ab
assets/scripts/master.js
assets/scripts/master.js
JavaScript
<|file_sep|>original/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md <|file_sep|>current/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md <|file_sep|>updated/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md
--- title: JAX-RS Jerseys WebService Eclipse Development Environment Setup date: 2017-04-21 comments: true tags: [WebService, JAX-RS] --- 1. Eclipse install packages, enable dynamic web application 2. Download jars jerseys, mysql, gson 3. Download mysql Trouble shooting Mac terminal ERROR 2002 (HY000): Can't connec...
<|file_sep|>original/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md <|file_sep|>current/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md <|file_sep|>updated/TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md --- title: JAX-RS Jerseys WebService Eclipse Development Environment...
20e82dd8f8295784de23057546fa3097ddf7f72c
TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md
TODO/2017-04-21-Jersey-WebService-Eclipse-Environment-setup.md
Markdown
<|file_sep|>original/README.md # Shuttle Signups [<img align="right" width="150px" src="http://webtech.union.rpi.edu/assets/css/images/wtg.png">](http://webtech.union.rpi.edu/) A web interface to simplify the process of signing up for special shuttles at RPI. ## What exactly is a special shuttle? The Rensselaer Union,...
# Shuttle Signups [<img align="right" width="150px" src="http://webtech.union.rpi.edu/assets/css/images/wtg.png">](http://webtech.union.rpi.edu/) A web interface to simplify the process of signing up for special shuttles at RPI. ## What exactly is a special shuttle? The Rensselaer Union, along with support from Auxili...
<|file_sep|>original/README.md # Shuttle Signups [<img align="right" width="150px" src="http://webtech.union.rpi.edu/assets/css/images/wtg.png">](http://webtech.union.rpi.edu/) A web interface to simplify the process of signing up for special shuttles at RPI. ## What exactly is a special shuttle? The Rensselaer Union,...
c6c78da1aef4f8194b26f2df972cc356c04e47dd
README.md
README.md
Markdown
<|file_sep|>original/ciscripts/check/psqcppconan/check.py conan_check = cont.fetch_and_import(conan_check_script) def _during_test(cont, executor, util, build): """Run the specified test binaries with the --tap switch. We then pipe the output into tap-mocha-reporter. """ del bu...
conan_check = cont.fetch_and_import(conan_check_script) def _during_test(cont, executor, util, build): """Run the specified test binaries with the --tap switch. We then pipe the output into tap-mocha-reporter. """ del build for binary in result.run_test_binaries or lis...
<|file_sep|>original/ciscripts/check/psqcppconan/check.py conan_check = cont.fetch_and_import(conan_check_script) def _during_test(cont, executor, util, build): """Run the specified test binaries with the --tap switch. We then pipe the output into tap-mocha-reporter. """ del bu...
c8b86afc53af25c845c8303111a6e7b17d8c26b4
ciscripts/check/psqcppconan/check.py
ciscripts/check/psqcppconan/check.py
Python
<|file_sep|>original/.github/workflows/main.yml name: Trigger Netlify Build on: schedule: # Run at 08:15 UTC daily # - cron: '*/15 * * * *' - cron: '15 8 * * *' jobs: build: name: Request Netlify Webhook runs-on: ubuntu-latest steps: - name: Curl request env: NETLIFY_...
name: Trigger Netlify Build on: schedule: # Run at 08:15 UTC daily # - cron: '*/15 * * * *' - cron: '15 8 * * *' jobs: build: name: Request Netlify Webhook runs-on: ubuntu-latest steps: - name: Curl request env: NETLIFY_DEPLOY_KEY: ${{ secrets.NETLIFY_DEPLOY_KEY }} ...
<|file_sep|>original/.github/workflows/main.yml name: Trigger Netlify Build on: schedule: # Run at 08:15 UTC daily # - cron: '*/15 * * * *' - cron: '15 8 * * *' jobs: build: name: Request Netlify Webhook runs-on: ubuntu-latest steps: - name: Curl request env: NETLIFY_...
3439feac4b835ce1658602c738c39d6c81f33822
.github/workflows/main.yml
.github/workflows/main.yml
YAML
<|file_sep|>original/gulpfile.js gulp.task("scripts.lint", function() { gulp.src([].concat(jsonFiles).concat(jsFiles)) .pipe(plumber()) .pipe(jshint(".jshintrc")) .pipe(jshint.reporter("jshint-stylish")) }) var jscs = require("gulp-jscs") gulp.task("scripts.cs", function() { gulp.src(jsFiles) .pipe...
.pipe(jscs()) }) gulp.task("scripts", ["scripts.lint", "scripts.cs"]) gulp.task("watch", function() { gulp.watch(jsFiles, ["scripts"]) }) gulp.task("default", ["scripts", "watch"]) var buildBranch = require("buildbranch") gulp.task("publish", function(cb) { buildBranch({folder: "src"} , function(err) { ...
<|file_sep|>original/gulpfile.js gulp.task("scripts.lint", function() { gulp.src([].concat(jsonFiles).concat(jsFiles)) .pipe(plumber()) .pipe(jshint(".jshintrc")) .pipe(jshint.reporter("jshint-stylish")) }) var jscs = require("gulp-jscs") gulp.task("scripts.cs", function() { gulp.src(jsFiles) .pipe...
d08eeb39468740085f1488e7e031e8122dba0124
gulpfile.js
gulpfile.js
JavaScript
<|file_sep|>tox.ini.diff original: mock updated: <|file_sep|>tox.ini.diff original: updated: mock < 1.1.0 <|file_sep|>tox.ini.diff original: updated: mock <|file_sep|>original/tox.ini [testenv:py32] deps= {[testenv:py3_common]deps} [testenv:py33] deps= {[testenv:py3_common]deps} [testenv:py34]...
[testenv:py32] deps= {[testenv:py3_common]deps} [testenv:py33] deps= {[testenv:py3_common]deps} [testenv:py34] deps= {[testenv:py3_common]deps} [testenv:coverage] deps= {[testenv:py27]deps} coverage coveralls commands= nosetests --with-coverage --cover-package=highlights coveralls
<|file_sep|>tox.ini.diff original: mock updated: <|file_sep|>tox.ini.diff original: updated: mock < 1.1.0 <|file_sep|>tox.ini.diff original: updated: mock <|file_sep|>original/tox.ini [testenv:py32] deps= {[testenv:py3_common]deps} [testenv:py33] deps= {[testenv:py3_common]deps} [testenv:py34]...
b397643920cf8734216387bb26b90495c3bbd227
tox.ini
tox.ini
INI
<|file_sep|>original/source/partials/_head.erb <meta charset="utf-8" /> <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/png" href="images/favicon.png" /> <link rel="apple-touch-icon" href="images/apple-to...
<meta charset="utf-8" /> <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/png" href="images/favicon.png" /> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <%= stylesheet_link_tag "site...
<|file_sep|>original/source/partials/_head.erb <meta charset="utf-8" /> <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/png" href="images/favicon.png" /> <link rel="apple-touch-icon" href="images/apple-to...
a904a8e8f48c70fb709d3e7a2ee266504aec0a98
source/partials/_head.erb
source/partials/_head.erb
HTML+ERB
<|file_sep|>original/app/views/jst/profiles/addLinkRow.handlebars <tr> <td><input aria-label="{{t "Link title" }}" type="text" class="ic-Input" maxlength="255" name="link_titles[]" value="{{title}}"></td> <td>→</td> <td><input aria-label="{{t "Link Url" }}" type="text" class="ic-Input" name="link_urls[]" value="{...
<tr> {{#if title.length}} <th scope="row"> <input aria-label="{{title}}" type="text" class="ic-Input" maxlength="255" name="link_titles[]" value="{{title}}"> </th> {{else}} <th scope="row"><input aria-label="{{t "Link Title" }}" type="text" class="ic-Input" maxlength="255" name="link_titles[]" val...
<|file_sep|>original/app/views/jst/profiles/addLinkRow.handlebars <tr> <td><input aria-label="{{t "Link title" }}" type="text" class="ic-Input" maxlength="255" name="link_titles[]" value="{{title}}"></td> <td>→</td> <td><input aria-label="{{t "Link Url" }}" type="text" class="ic-Input" name="link_urls[]" value="{...
c35b3255940b5486005355295b2b57746ff01272
app/views/jst/profiles/addLinkRow.handlebars
app/views/jst/profiles/addLinkRow.handlebars
Handlebars
<|file_sep|>.travis.yml.diff original: - CF_APP=watson-assistant-simple - CF_API=https://api.ng.bluemix.net - CF_ORGANIZATION=WatsonPlatformServices - CF_SPACE=demos before_deploy: npm install -g cf-blue-green updated: - BX_APP=watson-assistant-simple - BX_API=https://api.ng.bluemix.net - BX_ORGANIZATION=...
- node_modules env: global: - BX_APP=watson-assistant-simple - BX_API=https://api.ng.bluemix.net - BX_ORGANIZATION=WatsonPlatformServices - BX_SPACE=demos before_deploy: npm install -g bx-blue-green deploy: - provider: script skip_cleanup: true script: npx semantic-release on: node: 8 - provider: ...
<|file_sep|>.travis.yml.diff original: - CF_APP=watson-assistant-simple - CF_API=https://api.ng.bluemix.net - CF_ORGANIZATION=WatsonPlatformServices - CF_SPACE=demos before_deploy: npm install -g cf-blue-green updated: - BX_APP=watson-assistant-simple - BX_API=https://api.ng.bluemix.net - BX_ORGANIZATION=...
f19f8b63806f40a807df510317c4e1a5f7cd1acb
.travis.yml
.travis.yml
YAML
<|file_sep|>original/composer.json { "name": "egeloen/lucene-search-bundle", "type": "symfony-bundle", "description": "Provides a zend lucene search integration for your Symfony2 Project.", "keywords": ["Lucene search"], "license": "MIT", "authors": [ { "name": "Eric GELOEN",...
{ "name": "egeloen/lucene-search-bundle", "type": "symfony-bundle", "description": "Provides a zend lucene search integration for your Symfony2 Project.", "keywords": ["lucene search"], "license": "MIT", "authors": [ { "name": "Eric GELOEN", "email": "geloen.eric@...
<|file_sep|>original/composer.json { "name": "egeloen/lucene-search-bundle", "type": "symfony-bundle", "description": "Provides a zend lucene search integration for your Symfony2 Project.", "keywords": ["Lucene search"], "license": "MIT", "authors": [ { "name": "Eric GELOEN",...
8f95abd4a966c03ee90f750f1ed1ada642c2f535
composer.json
composer.json
JSON
<|file_sep|>original/bootstrap/saltstack-formula/docker/service.sls template-dir: file.directory: - name: {{ template.directory }} template-container: dockerng.running: - name: {{ template.name }} - image: {{ template.image }}:{{ template.branch }} - binds: - {{ template.directory }}:/path/o...
template-dir: file.directory: - name: {{ template.directory }} template-container: dockerng.running: - name: {{ template.name }} - image: {{ template.image }}:{{ template.branch }} - binds: - {{ template.directory }}:/path/on/container:rw - port_bindings: - {{ template.port }}:3000...
<|file_sep|>original/bootstrap/saltstack-formula/docker/service.sls template-dir: file.directory: - name: {{ template.directory }} template-container: dockerng.running: - name: {{ template.name }} - image: {{ template.image }}:{{ template.branch }} - binds: - {{ template.directory }}:/path/o...
1ec33ea566e9db242507fed2e0972cf8e435b9b0
bootstrap/saltstack-formula/docker/service.sls
bootstrap/saltstack-formula/docker/service.sls
SaltStack
<|file_sep|>original/Cargo.toml "*.obj", "*.mtl", ".travis.yml", ] [features] default = ["ahash"] merging = [] reordering = [] async = [] [dependencies] ahash = { version = "0.7.2", optional = true } log = { version = "0.4.14", optional = true } [profile.dev] split-debuginfo = "unpacked" opt-level = 3 [...
] [features] default = ["ahash"] merging = [] reordering = [] async = [] [dependencies] ahash = { version = "0.7.2", optional = true } log = { version = "0.4.14", optional = true } [dev-dependencies] tokio-test = "0.4.2" [profile.dev] split-debuginfo = "unpacked" opt-level = 3 [package.metadata.docs.rs] features ...
<|file_sep|>original/Cargo.toml "*.obj", "*.mtl", ".travis.yml", ] [features] default = ["ahash"] merging = [] reordering = [] async = [] [dependencies] ahash = { version = "0.7.2", optional = true } log = { version = "0.4.14", optional = true } [profile.dev] split-debuginfo = "unpacked" opt-level = 3 [...
94806dae904fe4c04017856d28c7efa81a18be3e
Cargo.toml
Cargo.toml
TOML
<|file_sep|>original/test/unit/vagrant/util/file_checksum_test.rb require 'digest/sha1' require 'vagrant/util/file_checksum' describe FileChecksum do include_context "unit" let(:environment) { isolated_environment } it "should return a valid checksum for a file" do file = environment.workdir.join("file") ...
file = environment.workdir.join("file") file.open("w+") { |f| f.write("HELLO!") } # Check multiple digests instance = described_class.new(file, Digest::MD5) expect(instance.checksum).to eq("9ac96c64417b5976a58839eceaa77956") instance = described_class.new(file, Digest::SHA1) expect(instanc...
<|file_sep|>original/test/unit/vagrant/util/file_checksum_test.rb require 'digest/sha1' require 'vagrant/util/file_checksum' describe FileChecksum do include_context "unit" let(:environment) { isolated_environment } it "should return a valid checksum for a file" do file = environment.workdir.join("file") ...
04a1bb58f35981111564150ebae2ff2f87052d61
test/unit/vagrant/util/file_checksum_test.rb
test/unit/vagrant/util/file_checksum_test.rb
Ruby
<|file_sep|>basket/news/tests/test_middleware.py.diff original: from basket.news.middleware import is_ip_address updated: from django.test import RequestFactory, override_settings from mock import Mock from basket.news.middleware import EnforceHostnameMiddleware, is_ip_address <|file_sep|>original/basket/news/tests/t...
from mock import Mock from basket.news.middleware import EnforceHostnameMiddleware, is_ip_address def test_is_ip_address(): assert is_ip_address('1.2.3.4') assert is_ip_address('192.168.1.1') assert not is_ip_address('basket.mozilla.org') assert not is_ip_address('42.basket.mozilla.org') @override_...
<|file_sep|>basket/news/tests/test_middleware.py.diff original: from basket.news.middleware import is_ip_address updated: from django.test import RequestFactory, override_settings from mock import Mock from basket.news.middleware import EnforceHostnameMiddleware, is_ip_address <|file_sep|>original/basket/news/tests/t...
97c6ea1cbbbe142b1005fb741ba1a0205a45189a
basket/news/tests/test_middleware.py
basket/news/tests/test_middleware.py
Python
<|file_sep|>original/WWDC/ArrayExtensions.swift var index: Int? for (idx, itemToRemove) in self.enumerate() { if let to = itemToRemove as? U { if object == to { index = idx } } } if(index != nil) { ...
// // ArrayExtensions.swift // WWDC // // Created by Guilherme Rambo on 19/04/15. // Copyright (c) 2015 Guilherme Rambo. All rights reserved. // import Foundation extension RangeReplaceableCollectionType where Generator.Element: Equatable { mutating func remove(object: Generator.Element) { guard let i...
<|file_sep|>original/WWDC/ArrayExtensions.swift var index: Int? for (idx, itemToRemove) in self.enumerate() { if let to = itemToRemove as? U { if object == to { index = idx } } } if(index != nil) { ...
a9e96b22623a2e8553d85ab25ffdcee532170d2d
WWDC/ArrayExtensions.swift
WWDC/ArrayExtensions.swift
Swift
<|file_sep|>original/packages/simple-video-viewer/simple-video-viewer_1.0.bb <|file_sep|>current/packages/simple-video-viewer/simple-video-viewer_1.0.bb <|file_sep|>updated/packages/simple-video-viewer/simple-video-viewer_1.0.bb
DESCRIPTION = "Simple Video Viewer" HOMEPAGE = "http://github.com/nzjrs/simple-video-viewer/tree/master" LICENSE = "GPLv2" SECTION = "x/games" PRIORITY = "optional" DEPENDS="libv4l" PR = "r1" SRCREV = "dedf6cb62d0bfe234dae84e8e5dacdc934e59bad" SRC_URI = "git://github.com/nzjrs/simple-video-viewer.git;protocol=git;br...
<|file_sep|>original/packages/simple-video-viewer/simple-video-viewer_1.0.bb <|file_sep|>current/packages/simple-video-viewer/simple-video-viewer_1.0.bb <|file_sep|>updated/packages/simple-video-viewer/simple-video-viewer_1.0.bb DESCRIPTION = "Simple Video Viewer" HOMEPAGE = "http://github.com/nzjrs/simple-video-view...
2fdb30eb8509122db414b17eb4ae6ae251652859
packages/simple-video-viewer/simple-video-viewer_1.0.bb
packages/simple-video-viewer/simple-video-viewer_1.0.bb
BitBake
<|file_sep|>README.md.diff original: updated: * Run the [SHARE](https://github.com/CenterForOpenScience/SHARE) API server at `localhost:8000` * Run `elasticsearch` at `localhost:9200` and populate with SHARE data (`./manage.py runbot elasticsearch` in the SHARE root directory) <|file_sep|>original/README.md # Ember-...
# Ember-share A web interface for [SHARE](https://github.com/CenterForOpenScience/SHARE). ## Installation * `git clone <repository-url>` this repository * change into the new directory * `npm install` * `bower install` ## Running / Development * Run the [SHARE](https://github.com/CenterForOpenScience/SHARE) API se...
<|file_sep|>README.md.diff original: updated: * Run the [SHARE](https://github.com/CenterForOpenScience/SHARE) API server at `localhost:8000` * Run `elasticsearch` at `localhost:9200` and populate with SHARE data (`./manage.py runbot elasticsearch` in the SHARE root directory) <|file_sep|>original/README.md # Ember-...
215675e9cfeca9dd2dc1c39060bd6ce3c2248622
README.md
README.md
Markdown
<|file_sep|>original/app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java package com.biotronisis.pettplant.debug; public class MyDebug { public static final boolean LOG = true; } <|file_sep|>current/app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java package com.biotronisis.pettplant.debug; ...
package com.biotronisis.pettplant.debug; public class MyDebug { public static final boolean LOG = false; }
<|file_sep|>original/app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java package com.biotronisis.pettplant.debug; public class MyDebug { public static final boolean LOG = true; } <|file_sep|>current/app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java package com.biotronisis.pettplant.debug; ...
4cecbcb6c547825449fadf0f305c2bb8841b5386
app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java
app/src/main/java/com/biotronisis/pettplant/debug/MyDebug.java
Java
<|file_sep|>lib/bootstrap_form.rb.diff original: updated: module BootstrapForm end <|file_sep|>original/lib/bootstrap_form.rb require 'action_view' require 'bootstrap_form/builder' require 'bootstrap_form/group' require 'bootstrap_form/version' module BootstrapForm end <|file_sep|>current/lib/bootstrap_form.rb requ...
require 'action_view' module BootstrapForm end require 'bootstrap_form/builder' require 'bootstrap_form/group' require 'bootstrap_form/version'
<|file_sep|>lib/bootstrap_form.rb.diff original: updated: module BootstrapForm end <|file_sep|>original/lib/bootstrap_form.rb require 'action_view' require 'bootstrap_form/builder' require 'bootstrap_form/group' require 'bootstrap_form/version' module BootstrapForm end <|file_sep|>current/lib/bootstrap_form.rb requ...
86102cdcb14e79bb27c91f43f62d4aa0cc6308e4
lib/bootstrap_form.rb
lib/bootstrap_form.rb
Ruby
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 notifications: email: on_success: always on_failure: always <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 notifications: email: on_success: always on_failure: always <|file_sep|>updated/.travis.yml
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.0 notifications: email: on_success: always on_failure: always
<|file_sep|>original/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 notifications: email: on_success: always on_failure: always <|file_sep|>current/.travis.yml language: ruby rvm: - 1.9.3 - 2.0.0 notifications: email: on_success: always on_failure: always <|file_sep|>updated/.travis.yml lan...
532032e489f113e62452dbf3bc909eb67964a447
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml cache: directories: - vendor before_install: - composer self-update install: - composer require --no-update --no-interaction "phpunit/phpunit:*" "squizlabs/php_codesniffer:*" "fabpot/php-cs-fixer:*" - travis_retry composer install --no-interaction --prefer-source - travis_...
- hhvm cache: directories: - vendor before_install: - composer self-update install: - composer require --no-update --no-interaction "phpunit/phpunit:*" "squizlabs/php_codesniffer:*" "fabpot/php-cs-fixer:*" - travis_retry composer install --no-interaction --prefer-source - travis_retry wget https://scru...
<|file_sep|>original/.travis.yml cache: directories: - vendor before_install: - composer self-update install: - composer require --no-update --no-interaction "phpunit/phpunit:*" "squizlabs/php_codesniffer:*" "fabpot/php-cs-fixer:*" - travis_retry composer install --no-interaction --prefer-source - travis_...
f10a5cd09b80363da110401678a354d364f25014
.travis.yml
.travis.yml
YAML
<|file_sep|>original/contrib/vagrant/vcsa/vagrant.sh #!/bin/sh useradd vagrant -m -s /bin/bash groupmod -A vagrant wheel echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers mkdir ~vagrant/.ssh wget --no-check-certificate \ https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub \ ...
groupmod -A vagrant wheel echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers mkdir ~vagrant/.ssh wget --no-check-certificate \ https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub \ -O ~vagrant/.ssh/authorized_keys chown -R vagrant ~vagrant/.ssh chmod -R go-rwsx ~vagrant/.ssh...
<|file_sep|>original/contrib/vagrant/vcsa/vagrant.sh #!/bin/sh useradd vagrant -m -s /bin/bash groupmod -A vagrant wheel echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers mkdir ~vagrant/.ssh wget --no-check-certificate \ https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub \ ...
6583813120aca43d7e5e8c624366a5f2c470b597
contrib/vagrant/vcsa/vagrant.sh
contrib/vagrant/vcsa/vagrant.sh
Shell
<|file_sep|>original/NOTICE.txt Apache Commons CSV Copyright 2005-2016 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). src/test/resources/CSVFileParser/bom.csv src/test/resources/CSVFileParser/test.csv src/test/resources/CSVFileParser...
Apache Commons CSV Copyright 2005-2016 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/).
<|file_sep|>original/NOTICE.txt Apache Commons CSV Copyright 2005-2016 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). src/test/resources/CSVFileParser/bom.csv src/test/resources/CSVFileParser/test.csv src/test/resources/CSVFileParser...
7587f0dc78a586aa9afdef20fd78baeabc69be05
NOTICE.txt
NOTICE.txt
Text
<|file_sep|>original/doc/install/linux-amd64.sh #!/bin/sh tar xzvf hyperdex-1.3.dev-linux-amd64.tar.gz -C /usr/local export PATH=/usr/local/hyperdex/bin:${PATH} hyperdex --version <|file_sep|>current/doc/install/linux-amd64.sh #!/bin/sh tar xzvf hyperdex-1.3.dev-linux-amd64.tar.gz -C /usr/local export PATH=/usr/local...
#!/bin/sh tar xzvf hyperdex-1.5.dev-linux-amd64.tar.gz -C /usr/local export PATH=/usr/local/hyperdex/bin:${PATH} hyperdex --version
<|file_sep|>original/doc/install/linux-amd64.sh #!/bin/sh tar xzvf hyperdex-1.3.dev-linux-amd64.tar.gz -C /usr/local export PATH=/usr/local/hyperdex/bin:${PATH} hyperdex --version <|file_sep|>current/doc/install/linux-amd64.sh #!/bin/sh tar xzvf hyperdex-1.3.dev-linux-amd64.tar.gz -C /usr/local export PATH=/usr/local...
55c44030d0109e0950af472381b52c9fd7e3cca6
doc/install/linux-amd64.sh
doc/install/linux-amd64.sh
Shell
<|file_sep|>original/.ci/debian/Dockerfile FROM debian:buster-slim LABEL maintainer="tobias.mayer@tenzir.com" ENV CC gcc-8 ENV CXX g++-8 # Compiler and dependency setup RUN apt-get -qq update && apt-get -qqy install \ gcc-8 g++-8 cmake git-core ninja-build clang-format-7 \ python3 python3-venv libpcap-dev lib...
FROM debian:buster-slim LABEL maintainer="tobias.mayer@tenzir.com" ENV CC gcc-8 ENV CXX g++-8 # Compiler and dependency setup RUN apt-get -qq update && apt-get -qqy install \ gcc-8 g++-8 cmake git-core ninja-build clang-format-7 \ python3 python3-venv libpcap-dev libssl-dev libatomic1 RUN update-alternatives ...
<|file_sep|>original/.ci/debian/Dockerfile FROM debian:buster-slim LABEL maintainer="tobias.mayer@tenzir.com" ENV CC gcc-8 ENV CXX g++-8 # Compiler and dependency setup RUN apt-get -qq update && apt-get -qqy install \ gcc-8 g++-8 cmake git-core ninja-build clang-format-7 \ python3 python3-venv libpcap-dev lib...
874119c3ef8ecb6074ae6273b8e1a4ba24486d66
.ci/debian/Dockerfile
.ci/debian/Dockerfile
unknown
<|file_sep|>package.json.diff original: "keywords": ["passport", "assembla", "auth", "authn", "authentication", "identity"], updated: "keywords": [ "passport", "assembla", "auth", "authn", "authentication", "identity" ], <|file_sep|>package.json.diff original: "licenses": [ { "type":...
{ "type": "MIT", "url": "http://www.opensource.org/licenses/MIT" } ], "main": "./lib/passport-assembla", "dependencies": { "pkginfo": "0.2.x", "passport-oauth": "0.1.x", "vows": "~0.7.0" }, "devDependencies": { "vows": "0.6.x" }, "scripts": { "test": "NODE_PATH=lib ...
<|file_sep|>package.json.diff original: "keywords": ["passport", "assembla", "auth", "authn", "authentication", "identity"], updated: "keywords": [ "passport", "assembla", "auth", "authn", "authentication", "identity" ], <|file_sep|>package.json.diff original: "licenses": [ { "type":...
315d5718194085bf90e35d1f217929073ca93f5f
package.json
package.json
JSON
<|file_sep|>original/lib/libc/locale/nomacros.c #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); /* * Tell <ctype.h> to generate extern versions of all its inline * functions. The extern versions get called if the system doesn't * support inlines or the user defines _DONT_USE_CTYPE_INLINE_ * before including <ctype....
#include <sys/cdefs.h> __FBSDID("$FreeBSD$"); /* * Tell <ctype.h> to generate extern versions of all its inline * functions. The extern versions get called if the system doesn't * support inlines or the user defines _DONT_USE_CTYPE_INLINE_ * before including <ctype.h>. */ #define _EXTERNALIZE_CTYPE_INLINES_ /* ...
<|file_sep|>original/lib/libc/locale/nomacros.c #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); /* * Tell <ctype.h> to generate extern versions of all its inline * functions. The extern versions get called if the system doesn't * support inlines or the user defines _DONT_USE_CTYPE_INLINE_ * before including <ctype....
d62ff6ee49fcd6b033a01d5a0b067d865c4c4fc8
lib/libc/locale/nomacros.c
lib/libc/locale/nomacros.c
C
<|file_sep|>tests/JsonApi/Serializer/JsonDeserializerTest.php.diff original: public function deserializeEmptyBody() updated: public function deserializeNullBody() <|file_sep|>tests/JsonApi/Serializer/JsonDeserializerTest.php.diff original: $request = $this->createRequestWithJsonBody(""); updated: ...
$this->assertNull($deserializer->deserialize($request)); } /** * @test */ public function deserializeEmptyBody() { $this->expectException(InvalidArgumentException::class); $this->createRequestWithJsonBody(""); } /** * @test */ public function de...
<|file_sep|>tests/JsonApi/Serializer/JsonDeserializerTest.php.diff original: public function deserializeEmptyBody() updated: public function deserializeNullBody() <|file_sep|>tests/JsonApi/Serializer/JsonDeserializerTest.php.diff original: $request = $this->createRequestWithJsonBody(""); updated: ...
159c654e1dcf933eb2ac1eea9082366737ec8171
tests/JsonApi/Serializer/JsonDeserializerTest.php
tests/JsonApi/Serializer/JsonDeserializerTest.php
PHP
<|file_sep|>logout.php.diff original: colonyHTMLStart(); updated: colonyHTMLHeader(); <|file_sep|>original/logout.php <?php require("lib/common.php"); session_start(); $_SESSION = array(); colonyHTMLStart(); ?> <p>You are now logged out. Thanks for playing!</p> <?php colonyHTMLEnd(); ?> <|file_sep|>current/log...
<?php require("lib/common.php"); session_start(); $_SESSION = array(); colonyHTMLHeader(); ?> <p>You are now logged out. Thanks for playing!</p> <?php colonyHTMLFooter(); ?>
<|file_sep|>logout.php.diff original: colonyHTMLStart(); updated: colonyHTMLHeader(); <|file_sep|>original/logout.php <?php require("lib/common.php"); session_start(); $_SESSION = array(); colonyHTMLStart(); ?> <p>You are now logged out. Thanks for playing!</p> <?php colonyHTMLEnd(); ?> <|file_sep|>current/log...
1fde51be4e422680a6c37b57e411ebc0cb38e5ab
logout.php
logout.php
PHP
<|file_sep|>original/popup/popup.html <!doctype html> <html> <head> <title>Roots Search</title> <link href="popup.css" rel="stylesheet" type="text/css"> <link href="bootstrap.min.css" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Jacques+Francois' rel='stylesheet...
<!doctype html> <html> <head> <title>Roots Search</title> <link href="popup.css" rel="stylesheet" type="text/css"> <link href="bootstrap.min.css" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Allerta' rel='stylesheet' type='text/css'> </head> <body> <h1 i...
<|file_sep|>original/popup/popup.html <!doctype html> <html> <head> <title>Roots Search</title> <link href="popup.css" rel="stylesheet" type="text/css"> <link href="bootstrap.min.css" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Jacques+Francois' rel='stylesheet...
d8fc566c8a4c904a2812fa3efd618b29ce7c6bba
popup/popup.html
popup/popup.html
HTML
<|file_sep|>original/lib/popular_items.rb require 'gds_api/panopticon' require 'plek' class PopularItems attr_accessor :items def initialize(panopticon_api_credentials, logger = nil) publisher = GdsApi::Panopticon.new(Plek.current_env, panopticon_api_credentials) @items = publisher.curated_lists || [] # T...
require 'gds_api/panopticon' require 'plek' class PopularItems attr_accessor :items def initialize(panopticon_api_credentials, logger = nil) publisher = GdsApi::Panopticon.new(Plek.current_env, panopticon_api_credentials) begin @items = publisher.curated_lists || {} rescue NoMethodError # HACK ...
<|file_sep|>original/lib/popular_items.rb require 'gds_api/panopticon' require 'plek' class PopularItems attr_accessor :items def initialize(panopticon_api_credentials, logger = nil) publisher = GdsApi::Panopticon.new(Plek.current_env, panopticon_api_credentials) @items = publisher.curated_lists || [] # T...
2ee897f7ab7aaa647e710013fa1fd94e32ddb991
lib/popular_items.rb
lib/popular_items.rb
Ruby
<|file_sep|>original/pkgs/servers/osrm-backend/default.nix name = "osrm-backend-${version}"; version = "5.14.3"; src = fetchFromGitHub { rev = "v${version}"; owner = "Project-OSRM"; repo = "osrm-backend"; sha256 = "1ajgybjx7g6qzddavab8bj7il7wn5wy24nivjj5rk84mfbi71s5v"; }; buildInputs = [ ...
name = "osrm-backend-${version}"; version = "5.14.3"; src = fetchFromGitHub { rev = "v${version}"; owner = "Project-OSRM"; repo = "osrm-backend"; sha256 = "1ajgybjx7g6qzddavab8bj7il7wn5wy24nivjj5rk84mfbi71s5v"; }; nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ bzip2 libxml2 li...
<|file_sep|>original/pkgs/servers/osrm-backend/default.nix name = "osrm-backend-${version}"; version = "5.14.3"; src = fetchFromGitHub { rev = "v${version}"; owner = "Project-OSRM"; repo = "osrm-backend"; sha256 = "1ajgybjx7g6qzddavab8bj7il7wn5wy24nivjj5rk84mfbi71s5v"; }; buildInputs = [ ...
ab1fdc784d41252db40484cb51d26a8b5894f424
pkgs/servers/osrm-backend/default.nix
pkgs/servers/osrm-backend/default.nix
Nix
<|file_sep|>original/CHANGELOG.md # v2.0.0 Initial release <|file_sep|>current/CHANGELOG.md # v2.0.0 Initial release <|file_sep|>updated/CHANGELOG.md
# vX.Y.Z * Improved error message when not specifying a package name in migration commands ([#10](https://github.com/jadu/meteor/pull/10)) ## v2.0.2 * Further fixes for permission setting on Windows. All directories now have inherited permissions. ## v2.0.1 * Fixed permission setting on Windows # v2.0.0 Initial ...
<|file_sep|>original/CHANGELOG.md # v2.0.0 Initial release <|file_sep|>current/CHANGELOG.md # v2.0.0 Initial release <|file_sep|>updated/CHANGELOG.md # vX.Y.Z * Improved error message when not specifying a package name in migration commands ([#10](https://github.com/jadu/meteor/pull/10)) ## v2.0.2 * Further fixes ...
ee97d41f0b13ee98a94b0c60cb74db35930091fc
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>original/pac4j-http/src/main/java/org/pac4j/http/client/BasicAuthClient.java You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS...
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing...
<|file_sep|>original/pac4j-http/src/main/java/org/pac4j/http/client/BasicAuthClient.java You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS...
a9a60924f7fc0bb216bc7c0fd96676fd6cb60f79
pac4j-http/src/main/java/org/pac4j/http/client/BasicAuthClient.java
pac4j-http/src/main/java/org/pac4j/http/client/BasicAuthClient.java
Java
<|file_sep|>cookiecutter/main.py.diff original: updated: from .cleanup import remove_repo <|file_sep|>cookiecutter/main.py.diff original: updated: got_repo_arg = True <|file_sep|>original/cookiecutter/main.py ) args = parser.parse_args() # If it's a git repo, clone and prompt if args.inpu...
repo_dir = git_clone(args.input_dir) project_template = find_template(repo_dir) os.chdir(repo_dir) else: project_template = args.input_dir # Create project from local context and project template. context = generate_context() generate_files( input_dir=project_tem...
<|file_sep|>cookiecutter/main.py.diff original: updated: from .cleanup import remove_repo <|file_sep|>cookiecutter/main.py.diff original: updated: got_repo_arg = True <|file_sep|>original/cookiecutter/main.py ) args = parser.parse_args() # If it's a git repo, clone and prompt if args.inpu...
2ee763ae1e4564a57692cb7161f99daab4ae77b7
cookiecutter/main.py
cookiecutter/main.py
Python
<|file_sep|>yaspin/spinners.py.diff original: import os updated: import pkgutil <|file_sep|>yaspin/spinners.py.diff original: SPINNERS_PATH = os.path.join(THIS_DIR, "data/spinners.json") updated: SPINNERS_DATA = pkgutil.get_data(__package__, "data/spinners.json").decode("utf-8") <|file_sep|>original/yaspin/spinners.py ...
""" import codecs import pkgutil from collections import namedtuple try: import simplejson as json except ImportError: import json THIS_DIR = os.path.dirname(os.path.realpath(__file__)) SPINNERS_DATA = pkgutil.get_data(__package__, "data/spinners.json").decode("utf-8") def _hook(dct): return namedtupl...
<|file_sep|>yaspin/spinners.py.diff original: import os updated: import pkgutil <|file_sep|>yaspin/spinners.py.diff original: SPINNERS_PATH = os.path.join(THIS_DIR, "data/spinners.json") updated: SPINNERS_DATA = pkgutil.get_data(__package__, "data/spinners.json").decode("utf-8") <|file_sep|>original/yaspin/spinners.py ...
c044c804633612608bbbf61621551d892483f179
yaspin/spinners.py
yaspin/spinners.py
Python
<|file_sep|>original/README.md ## Browser support * Android - 2.3+ * Google Chrome - Current version and one version earlier * Internet Explorer - 8+ * iOS - 6.1+ * Mozilla Firefox - Current version and one version earlier * Opera - Current version and one version earlier * Safari - 5.1+ ### Notes on browser support ...
``` <script src="domtokenlist.min.js"></script> ``` ## Browser support * Android - 2.3+ * Google Chrome - Current version and one version earlier * Internet Explorer - 8+ * iOS - 6.1+ * Mozilla Firefox - Current version and one version earlier * Opera - Current version and one version earlier * Safari - 5.1+ ## Licen...
<|file_sep|>original/README.md ## Browser support * Android - 2.3+ * Google Chrome - Current version and one version earlier * Internet Explorer - 8+ * iOS - 6.1+ * Mozilla Firefox - Current version and one version earlier * Opera - Current version and one version earlier * Safari - 5.1+ ### Notes on browser support ...
7cf9fd2a104aa34a8dad6093a1ce37f7ef9deeb2
README.md
README.md
Markdown
<|file_sep|>importlib_metadata/tests/test_main.py.diff original: dist = importlib_metadata.Distribution.for_module(importlib_metadata) updated: dist = importlib_metadata.Distribution.from_module(importlib_metadata) <|file_sep|>importlib_metadata/tests/test_main.py.diff original: dist = importlib...
class BasicTests(unittest.TestCase): version_pattern = r'\d+\.\d+(\.\d)?' def test_retrieves_version_of_self(self): dist = importlib_metadata.Distribution.from_module(importlib_metadata) assert isinstance(dist.version, str) assert re.match(self.version_pattern, dist.version) def t...
<|file_sep|>importlib_metadata/tests/test_main.py.diff original: dist = importlib_metadata.Distribution.for_module(importlib_metadata) updated: dist = importlib_metadata.Distribution.from_module(importlib_metadata) <|file_sep|>importlib_metadata/tests/test_main.py.diff original: dist = importlib...
1441a4e96ee610cbb6c87a9e04491102a29c0032
importlib_metadata/tests/test_main.py
importlib_metadata/tests/test_main.py
Python
<|file_sep|>original/404.php <?php get_template_part('templates/page', 'header'); ?> <div class="alert alert-warning"> <p>Sorry, but the page you were trying to view does not exist.</p> </div> <div class="row"> <div class="span12"> <p>We've recently reorganised the website and some old links may no longer be work...
<?php get_template_part('templates/page', 'header'); ?> <div class="alert alert-warning"> <p>Sorry, but the page you were trying to view does not exist.</p> </div> <div class="row"> <div class="span12"> <p>We've recently reorganised the website and some old links may no longer be working correctly. If you think t...
<|file_sep|>original/404.php <?php get_template_part('templates/page', 'header'); ?> <div class="alert alert-warning"> <p>Sorry, but the page you were trying to view does not exist.</p> </div> <div class="row"> <div class="span12"> <p>We've recently reorganised the website and some old links may no longer be work...
0a69b70954157de910cf9c48570ba81d642bec69
404.php
404.php
PHP
<|file_sep|>original/config.ru require './init' use Rack::Cache use Warden::Manager do |manager| manager.default_strategies :password manager.failure_app = MyApp end map '/' do run MyApp end <|file_sep|>current/config.ru require './init' use Rack::Cache use Warden::Manager do |manager| manager.default_stra...
require './init' use Rack::Cache if ENV['RACK_ENV'] == 'production' use Warden::Manager do |manager| manager.default_strategies :password manager.failure_app = MyApp end map '/' do run MyApp end
<|file_sep|>original/config.ru require './init' use Rack::Cache use Warden::Manager do |manager| manager.default_strategies :password manager.failure_app = MyApp end map '/' do run MyApp end <|file_sep|>current/config.ru require './init' use Rack::Cache use Warden::Manager do |manager| manager.default_stra...
836b12a2a8ec31b510462de5fbdb5be62a75bf30
config.ru
config.ru
Ruby
<|file_sep|>original/src/apps/interactions/controllers/edit.js const { transformInteractionResponseToForm } = require('../transformers') const { transformDateStringToDateObject } = require('../../transformers') const { interactionEditFormConfig } = require('../macros') const { buildFormWithStateAndErrors } = require('....
const { transformInteractionResponseToForm } = require('../transformers') const { transformDateStringToDateObject } = require('../../transformers') const { interactionEditFormConfig } = require('../macros') const { buildFormWithStateAndErrors } = require('../../builders') function renderEditPage (req, res) { const i...
<|file_sep|>original/src/apps/interactions/controllers/edit.js const { transformInteractionResponseToForm } = require('../transformers') const { transformDateStringToDateObject } = require('../../transformers') const { interactionEditFormConfig } = require('../macros') const { buildFormWithStateAndErrors } = require('....
b42288d77f8908a4ded960548e1b8f54311882d3
src/apps/interactions/controllers/edit.js
src/apps/interactions/controllers/edit.js
JavaScript
<|file_sep|>packages/la/lacroix.yaml.diff original: hash: 230eca617589544f9342797cefb1677db44969a53bfececd944cb3b54138166c updated: hash: 832f2a1fd3498e5bc534bdba2862e9d5d128de1909905245ebaa137dba1b099f <|file_sep|>packages/la/lacroix.yaml.diff original: changelog: ! '# Revision history for lacroix updated: changelog: ...
changelog: | # Revision history for lacroix ## 0.2 -- 2021-11-10 * Added new flavours * Changed shape of types * Updated descriptions ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world. basic-deps: base: '>=3 && <6' all-versions: - 0.1.0.0 - 0.2.0.0 author: chessai latest: 0...
<|file_sep|>packages/la/lacroix.yaml.diff original: hash: 230eca617589544f9342797cefb1677db44969a53bfececd944cb3b54138166c updated: hash: 832f2a1fd3498e5bc534bdba2862e9d5d128de1909905245ebaa137dba1b099f <|file_sep|>packages/la/lacroix.yaml.diff original: changelog: ! '# Revision history for lacroix updated: changelog: ...
87ae869259cec39aa990968a5beda119befcea59
packages/la/lacroix.yaml
packages/la/lacroix.yaml
YAML
<|file_sep|>original/.travis.yml language: ruby after_script: - cane - yard stats --list-undoc rvm: - 1.9.3 - 2.0.0 - 2.1.0 - ruby-head - rbx matrix: allow_failures: - rvm: ruby-head - rvm: rbx notifications: email: on_success: always on_failure: always <|file_sep|>current/.travis.yml ...
language: ruby after_script: - cane - yard stats --list-undoc rvm: - 1.9.3 - 2.0.0 - 2.1.1 - ruby-head - rbx matrix: allow_failures: - rvm: ruby-head - rvm: rbx notifications: email: on_success: always on_failure: always
<|file_sep|>original/.travis.yml language: ruby after_script: - cane - yard stats --list-undoc rvm: - 1.9.3 - 2.0.0 - 2.1.0 - ruby-head - rbx matrix: allow_failures: - rvm: ruby-head - rvm: rbx notifications: email: on_success: always on_failure: always <|file_sep|>current/.travis.yml ...
121645b994801cf44d5fb780e74ee577efee0941
.travis.yml
.travis.yml
YAML
<|file_sep|>original/gradle.properties <|file_sep|>current/gradle.properties <|file_sep|>updated/gradle.properties
# # Copyright 2022, TeamDev. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Redistribution and use in source and/or bi...
<|file_sep|>original/gradle.properties <|file_sep|>current/gradle.properties <|file_sep|>updated/gradle.properties # # Copyright 2022, TeamDev. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a...
20979c9432437d3edfe6db70342e3fadc2408738
gradle.properties
gradle.properties
INI
<|file_sep|>codebrag-dao/src/main/scala/com/softwaremill/codebrag/dao/MongoCommitReviewTaskDAO.scala.diff original: CommitReviewTaskRecord.upsert(ifExistsQuery, toRecord(reviewTask).asDBObject) updated: CommitReviewTaskRecord.upsert(ifExistsQuery, toRecord(reviewTask)) <|file_sep|>codebrag-dao/src/main/scala/co...
} def delete(task: CommitReviewTask) { CommitReviewTaskRecord.where(_.commitId eqs task.commitId).and(_.userId eqs task.userId).findAndDeleteOne() } private def toRecord(commitToReview: CommitReviewTask) = { val dbo = CommitReviewTaskRecord.createRecord .commitId(commitToReview.commitId) ....
<|file_sep|>codebrag-dao/src/main/scala/com/softwaremill/codebrag/dao/MongoCommitReviewTaskDAO.scala.diff original: CommitReviewTaskRecord.upsert(ifExistsQuery, toRecord(reviewTask).asDBObject) updated: CommitReviewTaskRecord.upsert(ifExistsQuery, toRecord(reviewTask)) <|file_sep|>codebrag-dao/src/main/scala/co...
fb45e560fe10e551267e0b17bc56a6fdee3e13e9
codebrag-dao/src/main/scala/com/softwaremill/codebrag/dao/MongoCommitReviewTaskDAO.scala
codebrag-dao/src/main/scala/com/softwaremill/codebrag/dao/MongoCommitReviewTaskDAO.scala
Scala
<|file_sep|>original/exercises/README.md Упражнения ========== * [Упражнение 1](01) (програма за решаване на квадратно уравнение) * [Упражнение 2](02) (калкулатор) <|file_sep|>current/exercises/README.md Упражнения ========== * [Упражнение 1](01) (програма за решаване на квадратно уравнение) * [Упражнение 2](02) (калку...
Упражнения ========== * [Упражнение 1](01) (програма за решаване на квадратно уравнение) * [Упражнение 2](02) (калкулатор) * [Упражнение 3](03) (цикли, `for`-цикъл)
<|file_sep|>original/exercises/README.md Упражнения ========== * [Упражнение 1](01) (програма за решаване на квадратно уравнение) * [Упражнение 2](02) (калкулатор) <|file_sep|>current/exercises/README.md Упражнения ========== * [Упражнение 1](01) (програма за решаване на квадратно уравнение) * [Упражнение 2](02) (калку...
4755480ae3d61b1bbcf2a97f72b4079be78de961
exercises/README.md
exercises/README.md
Markdown
<|file_sep|>original/templates/email/default/submit-example.txt <|file_sep|>current/templates/email/default/submit-example.txt <|file_sep|>updated/templates/email/default/submit-example.txt
Subject: Problem Report: Dangerous pothole Dear Birmingham City Council, A user of FixMyStreet has submitted the following report of a local problem that they believe might require your attention. To view a map of the precise location of this issue, or to provide an update on the problem, please visit the following ...
<|file_sep|>original/templates/email/default/submit-example.txt <|file_sep|>current/templates/email/default/submit-example.txt <|file_sep|>updated/templates/email/default/submit-example.txt Subject: Problem Report: Dangerous pothole Dear Birmingham City Council, A user of FixMyStreet has submitted the following rep...
ee0edf49eef113aed0934b6c1251f934bb20f3d6
templates/email/default/submit-example.txt
templates/email/default/submit-example.txt
Text
<|file_sep|>original/src/openMVG_Samples/robust_essential_spherical/CMakeLists.txt ADD_DEFINITIONS(-DTHIS_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") ADD_EXECUTABLE(openMVG_sample_robustEssential_spherical robust_essential_spherical.cpp) TARGET_LINK_LIBRARIES(openMVG_sample_robustEssential_spherical openMVG_image o...
ADD_DEFINITIONS(-DTHIS_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") ADD_EXECUTABLE(openMVG_sample_robustEssential_spherical robust_essential_spherical.cpp) TARGET_LINK_LIBRARIES(openMVG_sample_robustEssential_spherical openMVG_image openMVG_multiview vlsift stlplus flann_cpp_s ${OPENMVG_LIBRARY_DEPENDENCIES}...
<|file_sep|>original/src/openMVG_Samples/robust_essential_spherical/CMakeLists.txt ADD_DEFINITIONS(-DTHIS_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") ADD_EXECUTABLE(openMVG_sample_robustEssential_spherical robust_essential_spherical.cpp) TARGET_LINK_LIBRARIES(openMVG_sample_robustEssential_spherical openMVG_image o...
052e09c90cb604a0b690ddfe8fd20eb4ff94a481
src/openMVG_Samples/robust_essential_spherical/CMakeLists.txt
src/openMVG_Samples/robust_essential_spherical/CMakeLists.txt
Text
<|file_sep|>client/src/actions/app.js.diff original: let response; updated: try { const {data} = await axios.get('v1/index'); <|file_sep|>client/src/actions/app.js.diff original: try { response = await axios.get('v1/index'); updated: return dispatch(fetchIndexSuccess(data)); <|file_sep|>original/clien...
const fetchIndexFailure = createAction(FETCH_APP_FAILURE); export const fetchApp = () => async (dispatch) => { dispatch(fetchIndexRequest()); try { const {data} = await axios.get('v1/index'); return dispatch(fetchIndexSuccess(data)); } catch (err) { const reducedAction = (err instanceof Error) ? fe...
<|file_sep|>client/src/actions/app.js.diff original: let response; updated: try { const {data} = await axios.get('v1/index'); <|file_sep|>client/src/actions/app.js.diff original: try { response = await axios.get('v1/index'); updated: return dispatch(fetchIndexSuccess(data)); <|file_sep|>original/clien...
7930ee4bcbc56a4b048263fdba84df4729eb2ef7
client/src/actions/app.js
client/src/actions/app.js
JavaScript
<|file_sep|>appveyor.yml.diff original: - PYTHON: "C:\\Python35_32" updated: - PYTHON: "C:\\Python35_64" <|file_sep|>appveyor.yml.diff original: PYTHON_ARCH: "32" updated: PYTHON_ARCH: "64" <|file_sep|>appveyor.yml.diff original: - PYTHON: "C:\\Python36_32" updated: - PYTHON: "C:\\Python36_6...
CONDA_PY: "35" CONDA_NPY: "112" - PYTHON: "C:\\Python36_64" PYTHON_VERSION: "3.6" PYTHON_ARCH: "64" CONDA_PY: "36" CONDA_NPY: "112" install: # this installs the appropriate Miniconda (Py2/Py3, 32/64 bit), # as well as pip, conda-build, and the binstar CLI - ps: . ".\\devt...
<|file_sep|>appveyor.yml.diff original: - PYTHON: "C:\\Python35_32" updated: - PYTHON: "C:\\Python35_64" <|file_sep|>appveyor.yml.diff original: PYTHON_ARCH: "32" updated: PYTHON_ARCH: "64" <|file_sep|>appveyor.yml.diff original: - PYTHON: "C:\\Python36_32" updated: - PYTHON: "C:\\Python36_6...
e71f0cf4c13f63c5e8512bccb5b1e09682967915
appveyor.yml
appveyor.yml
YAML
<|file_sep|>original/training/level-2-command-line-interfaces/dragon-warrior/tmarsha1/primes/Tests/PrimeFinderTests.py """ Test the Prime Finder class Still working on getting dependency injection working. """ import unittest from primes.Primes import PrimeFinder #from primes.Primes import PrimeGenerator class Prime...
""" Test the Prime Finder class Still working on getting dependency injection working. Injecting the Generator into the Finder allows for many possibilities. From the testing perspective this would allow me to inject a mock object for the Generator that returns a set value speeding up the testing of the Prime Finder c...
<|file_sep|>original/training/level-2-command-line-interfaces/dragon-warrior/tmarsha1/primes/Tests/PrimeFinderTests.py """ Test the Prime Finder class Still working on getting dependency injection working. """ import unittest from primes.Primes import PrimeFinder #from primes.Primes import PrimeGenerator class Prime...
66c50cdeda974f2159259b466995339244ffb694
training/level-2-command-line-interfaces/dragon-warrior/tmarsha1/primes/Tests/PrimeFinderTests.py
training/level-2-command-line-interfaces/dragon-warrior/tmarsha1/primes/Tests/PrimeFinderTests.py
Python
<|file_sep|>original/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 before_install: - composer install --prefer-source --dev - mkdir -p data/logs script: - ./vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./build/logs/clover.xml - ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/ after_scr...
language: php php: - 5.3 - 5.4 - 5.5 before_install: - composer install --prefer-source --dev - mkdir -p data/logs script: - ./vendor/bin/phpunit --bootstrap=test/Bootstrap.php --coverage-clover ./build/logs/clover.xml - ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/ after_script: - php ./vendor/...
<|file_sep|>original/.travis.yml language: php php: - 5.3 - 5.4 - 5.5 before_install: - composer install --prefer-source --dev - mkdir -p data/logs script: - ./vendor/bin/phpunit -c test/phpunit.xml --coverage-clover ./build/logs/clover.xml - ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./test/ after_scr...
a97f0b62319fff1d80d5e299e5a3ba566abe8c4e
.travis.yml
.travis.yml
YAML
<|file_sep|>metadata/org.unifiedpush.distributor.noprovider2push.yml.diff original: updated: - versionName: 1.1.1 versionCode: 5 commit: 1.1.1 subdir: app gradle: - yes <|file_sep|>original/metadata/org.unifiedpush.distributor.noprovider2push.yml Changelog: https://github.com/NoProvider2Push/a...
Repo: https://github.com/NoProvider2Push/android.git Builds: - versionName: 1.1.0 versionCode: 4 commit: 1.1.0 subdir: app gradle: - yes - versionName: 1.1.1 versionCode: 5 commit: 1.1.1 subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags \d+\.\d...
<|file_sep|>metadata/org.unifiedpush.distributor.noprovider2push.yml.diff original: updated: - versionName: 1.1.1 versionCode: 5 commit: 1.1.1 subdir: app gradle: - yes <|file_sep|>original/metadata/org.unifiedpush.distributor.noprovider2push.yml Changelog: https://github.com/NoProvider2Push/a...
f3ececd0ca9a94dec31dfa0a98e2be2786746cc2
metadata/org.unifiedpush.distributor.noprovider2push.yml
metadata/org.unifiedpush.distributor.noprovider2push.yml
YAML
<|file_sep|>cpan/sl_product.t.diff original: updated: use 5.010; <|file_sep|>cpan/sl_product.t.diff original: updated: event '^name' = predicted <name> :lexeme ~ <name> pause => after event => 'name$' <|file_sep|>cpan/sl_product.t.diff original: my $re = Marpa::R2::Scanless::R->new({ grammar => $g, trace_terminals =>...
}); my $input = <<'INPUT'; 130.12312 Descriptive line 1,10 1,10 1,30 INPUT my $slr = Marpa::R2::Scanless::R->new( { grammar => $g, trace_terminals => 1 } ); my $length = length $input; for ( my $pos = $slr->read( \$input ); $pos < $length; $pos = $slr->resume() ) { EVENT: for my $event ( @{ $slr->events()...
<|file_sep|>cpan/sl_product.t.diff original: updated: use 5.010; <|file_sep|>cpan/sl_product.t.diff original: updated: event '^name' = predicted <name> :lexeme ~ <name> pause => after event => 'name$' <|file_sep|>cpan/sl_product.t.diff original: my $re = Marpa::R2::Scanless::R->new({ grammar => $g, trace_terminals =>...
e8f5a6808bc17f79c34142bb1a6160ec6879e7a1
cpan/sl_product.t
cpan/sl_product.t
Perl
<|file_sep|>TopLevelProgramExample/Program.cs.diff original: updated: using System.Linq.Expressions; using ExpressionToCodeLib; <|file_sep|>original/TopLevelProgramExample/Program.cs using System; Console.WriteLine("Hello World!"); <|file_sep|>current/TopLevelProgramExample/Program.cs using System; using System.Lin...
using System; using System.Linq.Expressions; using ExpressionToCodeLib; const int SomeConst = 27; var myVariable = "implicitly closed over"; var withImplicitType = new { A = "ImplicitTypeMember", }; Console.WriteLine(ExpressionToCode.ToCode(() => myVariable)); new InnerClass().DoIt(); LocalFunction(123); void Lo...
<|file_sep|>TopLevelProgramExample/Program.cs.diff original: updated: using System.Linq.Expressions; using ExpressionToCodeLib; <|file_sep|>original/TopLevelProgramExample/Program.cs using System; Console.WriteLine("Hello World!"); <|file_sep|>current/TopLevelProgramExample/Program.cs using System; using System.Lin...
d9e0e39a898acbc2a64fbf18bb90a924fe17be5f
TopLevelProgramExample/Program.cs
TopLevelProgramExample/Program.cs
C#
<|file_sep|>original/package.json { "name": "bce-simulation", "private": true, "description": "A set of simulations of Buffon's Coin Experiments.", "main": "server.js", "scripts": { "test": "py.test --bench", "start": "node server.js" }, "repository": "wei2912/bce-simulation", "author": "Ng Wei ...
{ "name": "bce-simulation", "private": true, "description": "A set of simulations of Buffon's Coin Experiments.", "main": "server.js", "scripts": { "test": "py.test --bench", "start": "node server.js" }, "repository": "wei2912/bce-simulation", "author": "Ng Wei En <wei2912.support@gmail.com> (ht...
<|file_sep|>original/package.json { "name": "bce-simulation", "private": true, "description": "A set of simulations of Buffon's Coin Experiments.", "main": "server.js", "scripts": { "test": "py.test --bench", "start": "node server.js" }, "repository": "wei2912/bce-simulation", "author": "Ng Wei ...
3d13bb35f7d5fd9cfce7447f5657d5d409cee80c
package.json
package.json
JSON
<|file_sep|>original/ansible/roles/repos/tasks/setup-Debian.yml - name: Wipe existing sources.list copy: content: '# Sources are located in /etc/apt/sources.list.d' dest: /etc/apt/sources.list force: true - name: Set up mirror apt_repository: repo: "{{ item }}" update_cache: true with_items:...
- name: Wipe existing sources.list copy: content: '# Sources are located in /etc/apt/sources.list.d' dest: /etc/apt/sources.list force: true - name: Set up mirror apt_repository: repo: "{{ item }}" filename: "{{ ansible_distribution|lower }}" update_cache: true with_items: "{{ apt_reposi...
<|file_sep|>original/ansible/roles/repos/tasks/setup-Debian.yml - name: Wipe existing sources.list copy: content: '# Sources are located in /etc/apt/sources.list.d' dest: /etc/apt/sources.list force: true - name: Set up mirror apt_repository: repo: "{{ item }}" update_cache: true with_items:...
e015e75821aaf6072fd3a309b1d1a32c9e3fa8de
ansible/roles/repos/tasks/setup-Debian.yml
ansible/roles/repos/tasks/setup-Debian.yml
YAML
<|file_sep|>original/app/assets/stylesheets/modules/_page.sass // Blogs .last-blogs &-title font-size: $h4-font-size &-article-title font-size: $h6-font-size // Homepage article .homepage-content margin-top: 100px text-align: center .article-title font-size: 3rem margin-bottom: 2rem bo...
font-size: $h6-font-size // Homepage article .homepage-content margin-top: 100px text-align: center .article-title font-size: 3rem margin-bottom: 2rem &:after content: '' display: block margin: 0 auto width: 50% border-bottom: 1px solid $white .post-body, .arti...
<|file_sep|>original/app/assets/stylesheets/modules/_page.sass // Blogs .last-blogs &-title font-size: $h4-font-size &-article-title font-size: $h6-font-size // Homepage article .homepage-content margin-top: 100px text-align: center .article-title font-size: 3rem margin-bottom: 2rem bo...
ee2606dc417fdb7684865f4c1c952e2932edb2da
app/assets/stylesheets/modules/_page.sass
app/assets/stylesheets/modules/_page.sass
Sass
<|file_sep|>original/travis/ci.sh #!/usr/bin/env bash set -euo pipefail for step in lint typecheck unit-tests; do make "$step" -e py_env=~/virtualenv/python$TRAVIS_PYTHON_VERSION done <|file_sep|>current/travis/ci.sh #!/usr/bin/env bash set -euo pipefail for step in lint typecheck unit-tests; do make "$step" -e...
#!/usr/bin/env bash if [ -z "$TRAVIS_PYTHON_VERSION" ]; then echo "Build is not targetting a Python version, can't run CI" >&2; exit 1 fi set -euo pipefail for step in lint typecheck unit-tests; do make "$step" -e py_env=~/virtualenv/python$TRAVIS_PYTHON_VERSION done
<|file_sep|>original/travis/ci.sh #!/usr/bin/env bash set -euo pipefail for step in lint typecheck unit-tests; do make "$step" -e py_env=~/virtualenv/python$TRAVIS_PYTHON_VERSION done <|file_sep|>current/travis/ci.sh #!/usr/bin/env bash set -euo pipefail for step in lint typecheck unit-tests; do make "$step" -e...
f859bcc95e23e5237c236dc47817eaf915d195e1
travis/ci.sh
travis/ci.sh
Shell
<|file_sep|>original/test/build.cake }); Task("Website-Create") .Description("Create a Website") .IsDependentOn("ApplicationPool-Create") .Does(() => { CreateWebsite(new WebsiteSettings() { Name = "MyBlog", HostName = "blog.website.com", PhysicalDirectory = "C:/Websites/Blog...
}); Task("Website-Create") .Description("Create a Website") .IsDependentOn("ApplicationPool-Create") .Does(() => { CreateWebsite(new WebsiteSettings() { Name = "MyBlog", PhysicalDirectory = "C:/Websites/Blog", ApplicationPool = new ApplicationPoolSettings() { ...
<|file_sep|>original/test/build.cake }); Task("Website-Create") .Description("Create a Website") .IsDependentOn("ApplicationPool-Create") .Does(() => { CreateWebsite(new WebsiteSettings() { Name = "MyBlog", HostName = "blog.website.com", PhysicalDirectory = "C:/Websites/Blog...
fd38e0a25df5488a97ba556407470bc7ed9fe6cb
test/build.cake
test/build.cake
C#
<|file_sep|>tests/test_barebones.py.diff original: from tarbell.app import TarbellSite updated: from tarbell.app import EXCLUDES, TarbellSite <|file_sep|>tests/test_barebones.py.diff original: updated: def test_default_excludes(): "Ensure a basic set of excluded files" site = TarbellSite(PATH) assert s...
assert site.project.name == "barebones" def test_default_excludes(): "Ensure a basic set of excluded files" site = TarbellSite(PATH) assert site.project.EXCLUDES == EXCLUDES def test_generate_site(tmpdir): "Generate a static site matching what's in _site" site = TarbellSite(PATH) built ...
<|file_sep|>tests/test_barebones.py.diff original: from tarbell.app import TarbellSite updated: from tarbell.app import EXCLUDES, TarbellSite <|file_sep|>tests/test_barebones.py.diff original: updated: def test_default_excludes(): "Ensure a basic set of excluded files" site = TarbellSite(PATH) assert s...
c3db5ba2860dc4ddf034aa036be573dd75093473
tests/test_barebones.py
tests/test_barebones.py
Python
<|file_sep|>original/src/test/java/tars/commons/util/StringUtilTest.java @Test public void isUnsignedPositiveInteger() { assertFalse(StringUtil.isUnsignedInteger(null)); assertFalse(StringUtil.isUnsignedInteger("")); assertFalse(StringUtil.isUnsignedInteger("a")); assertFalse(Str...
assertFalse(StringUtil.isUnsignedInteger("0")); assertFalse(StringUtil.isUnsignedInteger("+1")); //should be unsigned assertFalse(StringUtil.isUnsignedInteger("-1")); //should be unsigned assertFalse(StringUtil.isUnsignedInteger(" 10")); //should not contain whitespaces assertFal...
<|file_sep|>original/src/test/java/tars/commons/util/StringUtilTest.java @Test public void isUnsignedPositiveInteger() { assertFalse(StringUtil.isUnsignedInteger(null)); assertFalse(StringUtil.isUnsignedInteger("")); assertFalse(StringUtil.isUnsignedInteger("a")); assertFalse(Str...
35a5867d47f195a48368433b6d2ff4def290d76b
src/test/java/tars/commons/util/StringUtilTest.java
src/test/java/tars/commons/util/StringUtilTest.java
Java
<|file_sep|>app/assets/service/upload.coffee.diff original: 'routerService', (router) -> updated: 'routerService', 'messageService' (router, messages) -> <|file_sep|>original/app/assets/service/upload.coffee # callbacks for ng-flow: fileSuccess: (file) -> file.store.progress = 1 file.store...
# callbacks for ng-flow: fileSuccess: (file) -> file.store.progress = 1 file.store.save() return fileError: (file, message, flow) -> file.abort() messages.addError type: 'red' body: message owner: this fileProgress: (file) -> file.store.pro...
<|file_sep|>app/assets/service/upload.coffee.diff original: 'routerService', (router) -> updated: 'routerService', 'messageService' (router, messages) -> <|file_sep|>original/app/assets/service/upload.coffee # callbacks for ng-flow: fileSuccess: (file) -> file.store.progress = 1 file.store...
9428c1a69e7460d35114cb2da6943a9884204e31
app/assets/service/upload.coffee
app/assets/service/upload.coffee
CoffeeScript
<|file_sep|>original/r/ecr_repository.html.markdown ## Example Usage ``` resource "aws_ecr_repository" "foo" { name = "bar" } ``` ## Argument Reference The following arguments are supported: * `name` - (Required) Name of the repository. ## Attributes Reference The following attributes are exported: * `arn` - F...
``` resource "aws_ecr_repository" "foo" { name = "bar" } ``` ## Argument Reference The following arguments are supported: * `name` - (Required) Name of the repository. ## Attributes Reference The following attributes are exported: * `arn` - Full ARN of the repository. * `name` - The name of the repository. * `...
<|file_sep|>original/r/ecr_repository.html.markdown ## Example Usage ``` resource "aws_ecr_repository" "foo" { name = "bar" } ``` ## Argument Reference The following arguments are supported: * `name` - (Required) Name of the repository. ## Attributes Reference The following attributes are exported: * `arn` - F...
002fbdc2f50f866aef8206024af150fdcff596fa
r/ecr_repository.html.markdown
r/ecr_repository.html.markdown
Markdown
<|file_sep|>tests/auto/blackbox/testdata/makefile-generator/app.qbs.diff original: updated: cpp.cxxLanguageVersion: "c++11" <|file_sep|>original/tests/auto/blackbox/testdata/makefile-generator/app.qbs import qbs CppApplication { name: "the app" consoleApplication: true cpp.separateDebugInformation: f...
CppApplication { name: "the app" consoleApplication: true cpp.cxxLanguageVersion: "c++11" cpp.separateDebugInformation: false Properties { condition: qbs.targetOS.contains("macos") bundle.embedInfoPlist: false cpp.minimumMacosVersion: "10.7" } files: "main.cpp" ...
<|file_sep|>tests/auto/blackbox/testdata/makefile-generator/app.qbs.diff original: updated: cpp.cxxLanguageVersion: "c++11" <|file_sep|>original/tests/auto/blackbox/testdata/makefile-generator/app.qbs import qbs CppApplication { name: "the app" consoleApplication: true cpp.separateDebugInformation: f...
77e4517e12539b42196d6ce953eb76c969bd398f
tests/auto/blackbox/testdata/makefile-generator/app.qbs
tests/auto/blackbox/testdata/makefile-generator/app.qbs
QML
<|file_sep|>original/package.json "name": "stacktrace", "main": "./lib/main", "version": "0.0.1", "description": "Navigate stacktraces within Atom.", "activationCommands": { "atom-workspace": ["stacktrace:paste", "stacktrace:from-selection"] }, "repository": "https://github.com/smashwilson/stacktrace"...
"name": "stacktrace", "main": "./lib/main", "version": "0.0.1", "description": "Navigate stacktraces within Atom.", "activationCommands": { "atom-workspace": ["stacktrace:paste", "stacktrace:from-selection"] }, "repository": "https://github.com/smashwilson/stacktrace", "license": "MIT", "engines":...
<|file_sep|>original/package.json "name": "stacktrace", "main": "./lib/main", "version": "0.0.1", "description": "Navigate stacktraces within Atom.", "activationCommands": { "atom-workspace": ["stacktrace:paste", "stacktrace:from-selection"] }, "repository": "https://github.com/smashwilson/stacktrace"...
1ea82940c0639d6b20bf7ea9f0fdfe3a37d31b07
package.json
package.json
JSON
<|file_sep|>original/libimagutil/src/cli_validators.rs pub fn is_file(s: String) -> Result<(), String> { PathBuf::from(s.clone()).is_file().as_result((), format!("Not a File: {}", s)) } pub fn is_directory(s: String) -> Result<(), String> { PathBuf::from(s.clone()).is_dir().as_result((), format!("Not a Direct...
pub fn is_integer(s: String) -> Result<(), String> { use std::str::FromStr; let i : Result<i64, _> = FromStr::from_str(&s); i.map(|_| ()).map_err(|_| format!("Not an integer: {}", s)) } pub fn is_url(s: String) -> Result<(), String> { use url::Url; Url::parse(&s).map(|_| ()).map_err(|_| format!("N...
<|file_sep|>original/libimagutil/src/cli_validators.rs pub fn is_file(s: String) -> Result<(), String> { PathBuf::from(s.clone()).is_file().as_result((), format!("Not a File: {}", s)) } pub fn is_directory(s: String) -> Result<(), String> { PathBuf::from(s.clone()).is_dir().as_result((), format!("Not a Direct...
d6f705dc9036bcb9777530aa259c83ff0e11293d
libimagutil/src/cli_validators.rs
libimagutil/src/cli_validators.rs
Rust
<|file_sep|>original/app/views/shared/_navigation.html.haml Circle = render :partial => 'topbar_middle' %ul.nav.secondary-nav %li.dropdown %a.dropdown-toggle{:href => '#'} = current_user.email %ul.dropdown-menu %li ...
Circle = render :partial => 'topbar_middle' %ul.nav.secondary-nav %li.dropdown %a.dropdown-toggle{:href => '#'} = current_user.email %ul.dropdown-menu %li = link_to('Add more projects', join_path) %...
<|file_sep|>original/app/views/shared/_navigation.html.haml Circle = render :partial => 'topbar_middle' %ul.nav.secondary-nav %li.dropdown %a.dropdown-toggle{:href => '#'} = current_user.email %ul.dropdown-menu %li ...
e8ea2031f21bbb599cbcc7359ed873187dea9424
app/views/shared/_navigation.html.haml
app/views/shared/_navigation.html.haml
Haml
<|file_sep|>original/.travis.yml sudo: required dist: trusty addons: apt: sources: - chef-current-trusty packages: - chefdk # Don't `bundle install` which takes about 1.5 mins install: echo "skip bundle install" branches: only: - master services: docker env: matrix: <|file_sep|>curren...
sudo: required dist: trusty addons: apt: sources: - chef-stable-trusty packages: - chefdk # Don't `bundle install` which takes about 1.5 mins install: echo "skip bundle install" branches: only: - master services: docker env: matrix:
<|file_sep|>original/.travis.yml sudo: required dist: trusty addons: apt: sources: - chef-current-trusty packages: - chefdk # Don't `bundle install` which takes about 1.5 mins install: echo "skip bundle install" branches: only: - master services: docker env: matrix: <|file_sep|>curren...
5924a37aace22482c2f26d2c0b1f9bad7cefc04a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/Contributing.md # Contributing to WebAssembly Interested in participating? Please follow [the same contributing guidelines as the design repository][]. [the same contributing guidelines as the design repository]: https://github.com/WebAssembly/design/blob/master/Contributing.md Also, please be...
# Contributing to WebAssembly Interested in participating? Please follow [the same contributing guidelines as the design repository][]. [the same contributing guidelines as the design repository]: https://github.com/WebAssembly/design/blob/main/Contributing.md Also, please be sure to read [the README.md](README.md...
<|file_sep|>original/Contributing.md # Contributing to WebAssembly Interested in participating? Please follow [the same contributing guidelines as the design repository][]. [the same contributing guidelines as the design repository]: https://github.com/WebAssembly/design/blob/master/Contributing.md Also, please be...
969a4c08c6b832ea46be24b23bd894bfb3644719
Contributing.md
Contributing.md
Markdown
<|file_sep|>app/views/scheduledetail.xml.diff original: updated: <View class="metadata"> <View class="labelLine"> <Label class="metaBoldLabel">Date / Time:</Label> <Label id="dateLabel" class="metalabel">Date / Time</Label> </View> <View class="labelLine"> <Label class="metaBoldLabel">Ro...
<Label id="dateLabel" class="metalabel">Date / Time</Label> </View> <View class="labelLine"> <Label class="metaBoldLabel">Room:</Label> <Label id="roomLabel" class="metalabel">Room</Label> </View> </View> <ScrollView class="detailScroll"> <View class="contentContainer"> <La...
<|file_sep|>app/views/scheduledetail.xml.diff original: updated: <View class="metadata"> <View class="labelLine"> <Label class="metaBoldLabel">Date / Time:</Label> <Label id="dateLabel" class="metalabel">Date / Time</Label> </View> <View class="labelLine"> <Label class="metaBoldLabel">Ro...
78df1510b94c495462404ea00a85f6350364f410
app/views/scheduledetail.xml
app/views/scheduledetail.xml
XML
<|file_sep|>README.md.diff original: [![Build Status](https://travis-ci.org/Ohlasy/archiv.svg?branch=master)](https://travis-ci.org/Ohlasy/archiv) updated: [![Netlify Status](https://api.netlify.com/api/v1/badges/cb9bcca6-0ad9-40ea-9b94-f46ed09280a5/deploy-status)](https://app.netlify.com/sites/archiv-ohlasy/deploys) <...
[![Netlify Status](https://api.netlify.com/api/v1/badges/cb9bcca6-0ad9-40ea-9b94-f46ed09280a5/deploy-status)](https://app.netlify.com/sites/archiv-ohlasy/deploys) Aplikace je napsaná v [Elmu](http://elm-lang.org), prostředí pro místní vývoj se dá nainstalovat takhle: $ npm install $ make Po přidání commitu n...
<|file_sep|>README.md.diff original: [![Build Status](https://travis-ci.org/Ohlasy/archiv.svg?branch=master)](https://travis-ci.org/Ohlasy/archiv) updated: [![Netlify Status](https://api.netlify.com/api/v1/badges/cb9bcca6-0ad9-40ea-9b94-f46ed09280a5/deploy-status)](https://app.netlify.com/sites/archiv-ohlasy/deploys) <...
5a193ea50a5853aeac80885a006aa1c72e2cdb8e
README.md
README.md
Markdown
<|file_sep|>original/src/SimpleArticle.php */ class SimpleArticle implements Article { private $id; private $title; private $body; private $year; public function __construct($id=null) { $this->id = $id; } public function getIdentifier() { return $this->id; } ...
*/ class SimpleArticle implements Article { private $id; private $title; private $body; private $year; public function __construct($id=null) { $this->id = null === $id ? $id : intval($id); } public function getIdentifier() { return $this->id; } public func...
<|file_sep|>original/src/SimpleArticle.php */ class SimpleArticle implements Article { private $id; private $title; private $body; private $year; public function __construct($id=null) { $this->id = $id; } public function getIdentifier() { return $this->id; } ...
6ecea31ca27715475a577999f22f3848b248ee9d
src/SimpleArticle.php
src/SimpleArticle.php
PHP
<|file_sep|>original/lib/rack/tracker/google_tag_manager/google_tag_manager.rb class Rack::Tracker::GoogleTagManager < Rack::Tracker::Handler class Push < OpenStruct def write "'#{event[:name]}': '#{event[:value]}'" end def event attributes.stringify_values.compact end def attribut...
class Rack::Tracker::GoogleTagManager < Rack::Tracker::Handler class Push < OpenStruct def write "'#{event[:name]}': #{event[:value].to_json}" end def event attributes.stringify_values.compact end def attributes to_h.slice(:name, :value) end end # It is strongly reco...
<|file_sep|>original/lib/rack/tracker/google_tag_manager/google_tag_manager.rb class Rack::Tracker::GoogleTagManager < Rack::Tracker::Handler class Push < OpenStruct def write "'#{event[:name]}': '#{event[:value]}'" end def event attributes.stringify_values.compact end def attribut...
e8334e03c7792b926a3cc1a2fb123585b8fd2423
lib/rack/tracker/google_tag_manager/google_tag_manager.rb
lib/rack/tracker/google_tag_manager/google_tag_manager.rb
Ruby
<|file_sep|>original/.travis.yml language: go go: - 1.8 - 1.9 - 1.10 install: - go get -v ./... script: - go build -v <|file_sep|>current/.travis.yml language: go go: - 1.8 - 1.9 - 1.10 install: - go get -v ./... script: - go build -v <|file_sep|>updated/.travis.yml
language: go go: - 1.8.x - 1.9.x - 1.10.x install: - go get -v ./... script: - go build -v
<|file_sep|>original/.travis.yml language: go go: - 1.8 - 1.9 - 1.10 install: - go get -v ./... script: - go build -v <|file_sep|>current/.travis.yml language: go go: - 1.8 - 1.9 - 1.10 install: - go get -v ./... script: - go build -v <|file_sep|>updated/.travis.yml language: go go: - 1.8.x - 1.9.x - 1.10.x install: - ...
e828c3ce04b53d57bb67bedfd76c72c6c58356cc
.travis.yml
.travis.yml
YAML
<|file_sep|>lib/chat_noir/fetcher.rb.diff original: document.at_css('p:contains("Foto:")')&.text updated: node = document.at_css('p:contains("Foto:")') node.text if !node.nil? <|file_sep|>original/lib/chat_noir/fetcher.rb attr_reader :document def initialize(html_document) @document = Nokogiri::HTM...
def initialize(html_document) @document = Nokogiri::HTML(html_document) end def copyright text = fetch_by_tags || fetch_by_img text.match(/Foto: (.+)/).captures.join if text end private def fetch_by_tags node = document.at_css('p:contains("Foto:")') node.text if !node.nil? end de...
<|file_sep|>lib/chat_noir/fetcher.rb.diff original: document.at_css('p:contains("Foto:")')&.text updated: node = document.at_css('p:contains("Foto:")') node.text if !node.nil? <|file_sep|>original/lib/chat_noir/fetcher.rb attr_reader :document def initialize(html_document) @document = Nokogiri::HTM...
84604dc17d65ab9f5bf75ddd2194e067895d08b4
lib/chat_noir/fetcher.rb
lib/chat_noir/fetcher.rb
Ruby
<|file_sep|>original/impl/src/main/resources/logback.properties root.level=INFO appender.pattern=%d{"yyyy-MM-dd HH:mm:ss,SSSZ"} %-5p [%thread] %X{userId} %c - %m%n appender.file=logs/dukecon.log logger.org.dukecon.level=DEBUG # org.flyway.level=DEBUG <|file_sep|>current/impl/src/main/resources/logback.properties ro...
root.level=INFO appender.pattern=%d{"yyyy-MM-dd HH:mm:ss,SSSZ"} %-5p [%thread] %X{userId} %c - %m%n appender.file=logs/dukecon.log logger.org.dukecon.level=INFO # org.flyway.level=DEBUG
<|file_sep|>original/impl/src/main/resources/logback.properties root.level=INFO appender.pattern=%d{"yyyy-MM-dd HH:mm:ss,SSSZ"} %-5p [%thread] %X{userId} %c - %m%n appender.file=logs/dukecon.log logger.org.dukecon.level=DEBUG # org.flyway.level=DEBUG <|file_sep|>current/impl/src/main/resources/logback.properties ro...
e24d75471beae3ddb29171e354165ffa534a31e2
impl/src/main/resources/logback.properties
impl/src/main/resources/logback.properties
INI
<|file_sep|>original/src/EventSubscriber/ShowWelcomeMessageListener.php $output = new DrupalStyle($input, $output); $application = $command->getApplication(); $translatorHelper = $application->getTranslator(); $welcomeMessageKey = 'commands.'.str_replace(':', '.', $command->getName())...
$output = new DrupalStyle($input, $output); $application = $command->getApplication(); $translatorHelper = $application->getTranslator(); $welcomeMessageKey = 'commands.'.str_replace(':', '.', $command->getName()).'.welcome'; $welcomeMessage = $translatorHelper->trans($welcome...
<|file_sep|>original/src/EventSubscriber/ShowWelcomeMessageListener.php $output = new DrupalStyle($input, $output); $application = $command->getApplication(); $translatorHelper = $application->getTranslator(); $welcomeMessageKey = 'commands.'.str_replace(':', '.', $command->getName())...
9154df597cccb00fd4e3f38558b5209516ec1aff
src/EventSubscriber/ShowWelcomeMessageListener.php
src/EventSubscriber/ShowWelcomeMessageListener.php
PHP
<|file_sep|>original/_config.yml # Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values # which you are expected to set up once and rarely need to edit after that. # For technical reasons, this file is *NOT* reloaded automatically when you use # 'jekyll serve'. If you change...
# Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values # which you are expected to set up once and rarely need to edit after that. # For technical reasons, this file is *NOT* reloaded automatically when you use # 'jekyll serve'. If you change this file, please restart the se...
<|file_sep|>original/_config.yml # Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values # which you are expected to set up once and rarely need to edit after that. # For technical reasons, this file is *NOT* reloaded automatically when you use # 'jekyll serve'. If you change...
3f075c467c5462165cc4b4c8a2e1f48d061363e1
_config.yml
_config.yml
YAML
<|file_sep|>original/_config.yaml name: Tianocore description: Tianocore UEFI related projects url: http://tianocore.github.io markdown: redcarpet pygments: true <|file_sep|>current/_config.yaml name: Tianocore description: Tianocore UEFI related projects url: http://tianocore.github.io markdown: redcarpet pygments...
name: Tianocore description: Tianocore UEFI related projects url: http://tianocore.github.io markdown: kramdown pygments: true
<|file_sep|>original/_config.yaml name: Tianocore description: Tianocore UEFI related projects url: http://tianocore.github.io markdown: redcarpet pygments: true <|file_sep|>current/_config.yaml name: Tianocore description: Tianocore UEFI related projects url: http://tianocore.github.io markdown: redcarpet pygments...
842caa5c8575b97bb31ed286e74ec711f442a2ab
_config.yaml
_config.yaml
YAML
<|file_sep|>original/official_documents/migrations/0004_auto_20150410_1054.py <|file_sep|>current/official_documents/migrations/0004_auto_20150410_1054.py <|file_sep|>updated/official_documents/migrations/0004_auto_20150410_1054.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('official_documents', '0003_add_group'), ] operations = [ migrations.AlterField( model_name='officialdocument', ...
<|file_sep|>original/official_documents/migrations/0004_auto_20150410_1054.py <|file_sep|>current/official_documents/migrations/0004_auto_20150410_1054.py <|file_sep|>updated/official_documents/migrations/0004_auto_20150410_1054.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import...
dff9dced1bf1bbb684af4ba02febd255352484d5
official_documents/migrations/0004_auto_20150410_1054.py
official_documents/migrations/0004_auto_20150410_1054.py
Python
<|file_sep|>spec/integration/api_key_spec.rb.diff original: subject { DataMapper::TypesFixtures::APIUser.new(:name => 'alice') } updated: subject { described_class.new(:name => 'alice') } <|file_sep|>original/spec/integration/api_key_spec.rb supported_by :all do subject { DataMapper::TypesFixtures...
supported_by :all do subject { described_class.new(:name => 'alice') } let(:original_api_key) { subject.api_key } it "should have a default value" do original_api_key.should_not be_nil end it "should preserve the default value" do subject.api_key.should == original_a...
<|file_sep|>spec/integration/api_key_spec.rb.diff original: subject { DataMapper::TypesFixtures::APIUser.new(:name => 'alice') } updated: subject { described_class.new(:name => 'alice') } <|file_sep|>original/spec/integration/api_key_spec.rb supported_by :all do subject { DataMapper::TypesFixtures...
10976c6a32ef0efd00c32b3b7238f91a62516a4d
spec/integration/api_key_spec.rb
spec/integration/api_key_spec.rb
Ruby
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.1 Faker==0.8.15 flake8==3.5.0 mccabe==0.6.1 py==1.5.3 pycodestyle==2.3.1 pyflakes==2.0.0 pytest==3.5.1 pytest-cov==2.5.1 pytest-django==3.2.1 freezegun==0.3.10 pytest-freezegun==0.2.0 model-mommy==1.5.1 text_unidecode==1.2 <|file_sep|>current/r...
-r requirements.txt coverage==4.5.1 Faker==0.8.15 flake8==3.5.0 mccabe==0.6.1 py==1.5.3 pycodestyle==2.3.1 pyflakes==2.0.0 pytest==3.6.0 pytest-cov==2.5.1 pytest-django==3.2.1 freezegun==0.3.10 pytest-freezegun==0.2.0 model-mommy==1.5.1 text_unidecode==1.2
<|file_sep|>original/requirements-dev.txt -r requirements.txt coverage==4.5.1 Faker==0.8.15 flake8==3.5.0 mccabe==0.6.1 py==1.5.3 pycodestyle==2.3.1 pyflakes==2.0.0 pytest==3.5.1 pytest-cov==2.5.1 pytest-django==3.2.1 freezegun==0.3.10 pytest-freezegun==0.2.0 model-mommy==1.5.1 text_unidecode==1.2 <|file_sep|>current/r...
88dced55ada20c7dd6281ebe0f565efcb6e22baf
requirements-dev.txt
requirements-dev.txt
Text
<|file_sep|>README.md.diff original: kvolumes: updated: volumes: <|file_sep|>original/README.md services: conanexiles: image: alinmear/docker-conanexiles restart: always ports: - 7777:7777/udp - 27015:27015/udp kvolumes: - /my-data:/conanexiles ``` #### Configuration ...
services: conanexiles: image: alinmear/docker-conanexiles restart: always ports: - 7777:7777/udp - 27015:27015/udp volumes: - /my-data:/conanexiles ``` #### Configuration At this stage you have to run the container and wait, till the initialisation process is finished (steam ...
<|file_sep|>README.md.diff original: kvolumes: updated: volumes: <|file_sep|>original/README.md services: conanexiles: image: alinmear/docker-conanexiles restart: always ports: - 7777:7777/udp - 27015:27015/udp kvolumes: - /my-data:/conanexiles ``` #### Configuration ...
ac2fc99803caf6ef76efa5714e4685e4236ea9b7
README.md
README.md
Markdown
<|file_sep|>spec/support/capybara.rb.diff original: updated: Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, { phantomjs_options: ['--ssl-protocol=TLSv1'] }) end <|file_sep|>original/spec/support/capybara.rb require 'capybara/poltergeist' Capybara.javascript_driver = :polterge...
require 'capybara/poltergeist' Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, { phantomjs_options: ['--ssl-protocol=TLSv1'] }) end Capybara.javascript_driver = :poltergeist
<|file_sep|>spec/support/capybara.rb.diff original: updated: Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, { phantomjs_options: ['--ssl-protocol=TLSv1'] }) end <|file_sep|>original/spec/support/capybara.rb require 'capybara/poltergeist' Capybara.javascript_driver = :polterge...
7e001fccee84757f9fbc2fea0aacf78b86b6cce4
spec/support/capybara.rb
spec/support/capybara.rb
Ruby
<|file_sep|>roundtriptest/run.sh.diff original: FILES=($BASEDIR/tibby.264 $BASEDIR/black.264 $BASEDIR/../res/BAMQ2_JVC_C.264 $BASEDIR/../res/BA1_FT_C.264) if [ "$#" -eq 1 ] updated: if [ "$#" -ge 1 ] <|file_sep|>roundtriptest/run.sh.diff original: SAVEIFS=$IFS IFS=$(echo -en "\n\b") for f in $(ls $1); do ...
pushd "$BASEDIR/.." ./piedpiper_make popd if [ "$#" -ge 1 ] then FILES=() for f in "$@"; do FILES+=("$f") done else FILES=($BASEDIR/tibby.264 $BASEDIR/black.264 $BASEDIR/../res/BAMQ2_JVC_C.264 $BASEDIR/../res/BA1_FT_C.264) fi IFS="" for f in ${FILES[@]}; do rm -f /tmp/a.pip* /tmp/a.264 ...
<|file_sep|>roundtriptest/run.sh.diff original: FILES=($BASEDIR/tibby.264 $BASEDIR/black.264 $BASEDIR/../res/BAMQ2_JVC_C.264 $BASEDIR/../res/BA1_FT_C.264) if [ "$#" -eq 1 ] updated: if [ "$#" -ge 1 ] <|file_sep|>roundtriptest/run.sh.diff original: SAVEIFS=$IFS IFS=$(echo -en "\n\b") for f in $(ls $1); do ...
6bcadc5c94a863847d7d04358e9d73acf0812af9
roundtriptest/run.sh
roundtriptest/run.sh
Shell
<|file_sep|>original/recipes/gwvet/meta.yaml <|file_sep|>current/recipes/gwvet/meta.yaml <|file_sep|>updated/recipes/gwvet/meta.yaml
{% set name = "gwvet" %} {% set version = "0.1.0" %} package: name: "{{ name|lower }}" version: "{{ version }}" source: url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" sha256: "044523b0e9fb58d0746e8e4d469aa0abcdd025da15007f98440bdaa62759dab3" build: number: 0...
<|file_sep|>original/recipes/gwvet/meta.yaml <|file_sep|>current/recipes/gwvet/meta.yaml <|file_sep|>updated/recipes/gwvet/meta.yaml {% set name = "gwvet" %} {% set version = "0.1.0" %} package: name: "{{ name|lower }}" version: "{{ version }}" source: url: "https://pypi.io/packages/source/{{ name[0] }}/{{ na...
c769b4c1343e9ff53fb1bfa3527a3a0c5935e2e9
recipes/gwvet/meta.yaml
recipes/gwvet/meta.yaml
YAML
<|file_sep|>state/action.go.diff original: Id string `bson:"_id"` Name string Payload map[string]interface{} updated: Id string `bson:"_id"` //Name string //Payload map[string]interface{} <|file_sep|>state/action.go.diff original: func (a *Action) Name() string { return a.doc.Name } updated: //func (a...
st: st, doc: adoc, } } // Name returns the name of the Action //func (a *Action) Name() string { // return a.doc.Name //} // Id returns the id of the Action func (a *Action) Id() string { return a.doc.Id } // Payload will contain a structure representing arguments or parameters to // an action, and is expecte...
<|file_sep|>state/action.go.diff original: Id string `bson:"_id"` Name string Payload map[string]interface{} updated: Id string `bson:"_id"` //Name string //Payload map[string]interface{} <|file_sep|>state/action.go.diff original: func (a *Action) Name() string { return a.doc.Name } updated: //func (a...
8e6a074643bcc89143ffa38b8bbdfaf50c4b1bbf
state/action.go
state/action.go
Go
<|file_sep|>original/test/fake-titanium-app/Resources/ui/example.js { type: 'Ti.UI.Label', if: "[ true ]", properties: { text: '[ name ]', top: 10, backgroundColor: '#109F', right: '[ valid ? 40 : 10 ]', bottom: 10, ...
{ type: 'Ti.UI.Label', if: "[ true ]", properties: { text: '[ name ]', top: 10, backgroundColor: '#109F', right: '[ valid ? 40 : 10 ]', bottom: 10, left: 10 }, events: { "click":...
<|file_sep|>original/test/fake-titanium-app/Resources/ui/example.js { type: 'Ti.UI.Label', if: "[ true ]", properties: { text: '[ name ]', top: 10, backgroundColor: '#109F', right: '[ valid ? 40 : 10 ]', bottom: 10, ...
9e1dc4201cda98e965910e3fe87426ad95070485
test/fake-titanium-app/Resources/ui/example.js
test/fake-titanium-app/Resources/ui/example.js
JavaScript
<|file_sep|>original/index.js app.get("/", function (req, res) { res.send("Hey buddy!"); }); var Thing = require("./model"); app.get("/:name", function (req, res) { Thing.find({ name: req.params.name }, function (err, t) { if (t.length < 1) { var thing = new Thing(); thing.name = req.params.name;...
res.send("Hey buddy!"); }); var Thing = require("./model"); app.get("/:name", function (req, res) { Thing.find({ name: req.params.name }, function (err, t) { if (t.length < 1) { var thing = new Thing(); thing.name = req.params.name; thing.save(function(err) { if (err) { res...
<|file_sep|>original/index.js app.get("/", function (req, res) { res.send("Hey buddy!"); }); var Thing = require("./model"); app.get("/:name", function (req, res) { Thing.find({ name: req.params.name }, function (err, t) { if (t.length < 1) { var thing = new Thing(); thing.name = req.params.name;...
9260ae76dba730555f71ea839d4c42cfe9d5393e
index.js
index.js
JavaScript
<|file_sep|>original/.travis.yml language: cpp script: make compiler: clang-3.6 addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - gcc-5 - g++-5 - clang-3.6 <|file_sep|>current/.travis.yml language: cpp script: make compiler: clang-3.6 addons: ...
language: cpp script: make compiler: clang addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - gcc-5 - g++-5 - clang-3.6
<|file_sep|>original/.travis.yml language: cpp script: make compiler: clang-3.6 addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - gcc-5 - g++-5 - clang-3.6 <|file_sep|>current/.travis.yml language: cpp script: make compiler: clang-3.6 addons: ...
bf8f928e10596d584cf943e3bd0d35ba6ff748ae
.travis.yml
.travis.yml
YAML
<|file_sep|>original/app/assets/images/grid-bg.svg <svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> <polygon points="11,11 11,0 10,0 10,10 0,10 0,11" fill="#fff" opacity="0.1" /> </svg> <|file_sep|>current/app/assets/images/grid-bg.svg <svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> <polygo...
<svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> <polygon points="11,11 11,0 10,0 10,10 0,10 0,11" fill="#fff" opacity="0.05" /> </svg>
<|file_sep|>original/app/assets/images/grid-bg.svg <svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> <polygon points="11,11 11,0 10,0 10,10 0,10 0,11" fill="#fff" opacity="0.1" /> </svg> <|file_sep|>current/app/assets/images/grid-bg.svg <svg viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg"> <polygo...
76a95b8dbe53ecb5c1ed422d11b1f7eae119e05f
app/assets/images/grid-bg.svg
app/assets/images/grid-bg.svg
SVG
<|file_sep|>original/src/main/java/com/metacodestudio/hotsuploader/Client.java <|file_sep|>current/src/main/java/com/metacodestudio/hotsuploader/Client.java <|file_sep|>updated/src/main/java/com/metacodestudio/hotsuploader/Client.java
package com.metacodestudio.hotsuploader; import javafx.application.Application; import javafx.stage.Stage; public class Client extends Application { public static void main(String[] args) { Application.launch(Client.class, args); } @Override public void start(final Stage primaryStage) throw...
<|file_sep|>original/src/main/java/com/metacodestudio/hotsuploader/Client.java <|file_sep|>current/src/main/java/com/metacodestudio/hotsuploader/Client.java <|file_sep|>updated/src/main/java/com/metacodestudio/hotsuploader/Client.java package com.metacodestudio.hotsuploader; import javafx.application.Application; im...
02d9a55cb2d18041241be0ba3fdcf0ef08fa2f8a
src/main/java/com/metacodestudio/hotsuploader/Client.java
src/main/java/com/metacodestudio/hotsuploader/Client.java
Java
<|file_sep|>original/core/CHANGELOG.md ## Spree 2.4.0 (unreleased) ## <|file_sep|>current/core/CHANGELOG.md ## Spree 2.4.0 (unreleased) ## <|file_sep|>updated/core/CHANGELOG.md
## Spree 2.4.0 (unreleased) ## * Added Spree::Config.capture_on_dispatch that when set to true will cause shipments to advance to ready state upon successfully authorizing payment for the order. As each shipment is marked shipped the shipment's total will be captured from the authorization. Fixes #4727 Je...
<|file_sep|>original/core/CHANGELOG.md ## Spree 2.4.0 (unreleased) ## <|file_sep|>current/core/CHANGELOG.md ## Spree 2.4.0 (unreleased) ## <|file_sep|>updated/core/CHANGELOG.md ## Spree 2.4.0 (unreleased) ## * Added Spree::Config.capture_on_dispatch that when set to true will cause shipments to advance to ready stat...
f2b89e5f20d8bfc24e6dcb8667878b496f287a4e
core/CHANGELOG.md
core/CHANGELOG.md
Markdown
<|file_sep|>test/src/0_basic.js.diff original: updated: it( 'should have exported a SourceScript class', () => { assert.strictEqual( typeof Scriptor.SourceScript, 'function', 'No SourceScript class exported' ); } ); it( 'should have exported a TextScript class', () => { ...
it( 'should have exported a Manager class', () => { assert.strictEqual( typeof Scriptor.Manager, 'function', 'No Manager class exported' ); } ); it( 'should have exported a Reference class', () => { assert.strictEqual( typeof Scriptor.Reference, 'function', 'No Reference...
<|file_sep|>test/src/0_basic.js.diff original: updated: it( 'should have exported a SourceScript class', () => { assert.strictEqual( typeof Scriptor.SourceScript, 'function', 'No SourceScript class exported' ); } ); it( 'should have exported a TextScript class', () => { ...
23f59901e310e5872ef7fd2dbaf27a0147f9ed15
test/src/0_basic.js
test/src/0_basic.js
JavaScript
<|file_sep|>metadata/de.b0nk.fp1_epo_autoupdate.txt.diff original: updated: Auto Name:FP1-EPO-Autoupdate <|file_sep|>metadata/de.b0nk.fp1_epo_autoupdate.txt.diff original: Description:Automatically updates the EPO.DAT file on the Fairphone 1 (and probably other updated: Description: Automatically updates the EPO.DAT ...
Needs root access in order to write the new EPO.DAT to /data/misc. . Requires Root:Yes Repo Type:git Repo:https://gitlab.com/sn0b/fp1-epo-autoupdate.git Build:0.7.1-alpha,71 commit=0.7.1-alpha subdir=app gradle=yes srclibs=RootTools@3.5 rm=app/libs/* prebuild=cp -R $$RootTools$$/src/com src/...
<|file_sep|>metadata/de.b0nk.fp1_epo_autoupdate.txt.diff original: updated: Auto Name:FP1-EPO-Autoupdate <|file_sep|>metadata/de.b0nk.fp1_epo_autoupdate.txt.diff original: Description:Automatically updates the EPO.DAT file on the Fairphone 1 (and probably other updated: Description: Automatically updates the EPO.DAT ...
7d0bcd15d1cd47ec5eeb8362e148dbfe4299d662
metadata/de.b0nk.fp1_epo_autoupdate.txt
metadata/de.b0nk.fp1_epo_autoupdate.txt
Text
<|file_sep|>original/src/util-encoders-sha256.adb <|file_sep|>current/src/util-encoders-sha256.adb <|file_sep|>updated/src/util-encoders-sha256.adb
----------------------------------------------------------------------- -- util-encoders-sha256 -- Compute SHA-1 hash -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
<|file_sep|>original/src/util-encoders-sha256.adb <|file_sep|>current/src/util-encoders-sha256.adb <|file_sep|>updated/src/util-encoders-sha256.adb ----------------------------------------------------------------------- -- util-encoders-sha256 -- Compute SHA-1 hash -- Copyright (C) 2017 Stephane Carrez -- Written ...
6c92da4b4a18fd130e2bdee09bb2fc4a148978d3
src/util-encoders-sha256.adb
src/util-encoders-sha256.adb
Ada
<|file_sep|>original/lib/stl_public_services/cli_controller.rb class StlPublicServices::CliController end <|file_sep|>current/lib/stl_public_services/cli_controller.rb class StlPublicServices::CliController end <|file_sep|>updated/lib/stl_public_services/cli_controller.rb
class StlPublicServices::CliController def call start end def start welcome_user end def welcome_user <<-WELCOME.gsub /^\s+/, "" Welcome to the St. Louis Public Services Ruby CLI Gem! To list all available information on St. Louis City Public Services and Government Departments, type "list"...
<|file_sep|>original/lib/stl_public_services/cli_controller.rb class StlPublicServices::CliController end <|file_sep|>current/lib/stl_public_services/cli_controller.rb class StlPublicServices::CliController end <|file_sep|>updated/lib/stl_public_services/cli_controller.rb class StlPublicServices::CliController def ...
fa1ca25d60ba854ea101ca488cbf88a7d04e6369
lib/stl_public_services/cli_controller.rb
lib/stl_public_services/cli_controller.rb
Ruby
<|file_sep|>original/telemetry/telemetry/page/actions/action_runner_unittest.py <|file_sep|>current/telemetry/telemetry/page/actions/action_runner_unittest.py <|file_sep|>updated/telemetry/telemetry/page/actions/action_runner_unittest.py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends.chrome import tracing_backend from telemetry.core.timeline import model from telemetry.page.actions import action_runner as actio...
<|file_sep|>original/telemetry/telemetry/page/actions/action_runner_unittest.py <|file_sep|>current/telemetry/telemetry/page/actions/action_runner_unittest.py <|file_sep|>updated/telemetry/telemetry/page/actions/action_runner_unittest.py # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source...
c81f577153a258176cabedb1c194fdb58d8c1d67
telemetry/telemetry/page/actions/action_runner_unittest.py
telemetry/telemetry/page/actions/action_runner_unittest.py
Python