prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/server/src/test/resources/testng.xml
<!-- CopyUtils2 Create Test (embedded) -->
<test name="CopyUtils Create Test (embedded)" enabled="true">
<classes>
<class name="org.gluu.oxtrust.util.test.CopyUtils2TestCreate" />
</classes>
</test>
<!-- CopyUtils Up... | <test name="Group Service Test (embedded)" enabled="true">
<classes>
<class name="org.gluu.oxtrust.service.test.GroupServiceTest" />
</classes>
</test>
<!-- Person Service Test (embedded) -->
<test name="Person Service Test (embedded)" enabled="true">
<classes>
... | <|file_sep|>original/server/src/test/resources/testng.xml
<!-- CopyUtils2 Create Test (embedded) -->
<test name="CopyUtils Create Test (embedded)" enabled="true">
<classes>
<class name="org.gluu.oxtrust.util.test.CopyUtils2TestCreate" />
</classes>
</test>
<!-- CopyUtils Up... | 38026ec8743775bb107ed13ebbffcd1b68ea0282 | server/src/test/resources/testng.xml | server/src/test/resources/testng.xml | XML |
<|file_sep|>original/README.md
vagrant-plugins-env
===================
A simple environment to develop vagrant plugins in
<|file_sep|>current/README.md
vagrant-plugins-env
===================
A simple environment to develop vagrant plugins in
<|file_sep|>updated/README.md | vagrant-plugins-env
===================
A simple environment to develop vagrant plugins in. It encapsulates the vagrant environment into an own `.vagrant.d` directory to avoid messing with your day-to-day vagrant config.
This sample uses the [vagrant-vbguest](https://github.com/dotless-de/vagrant-vbguest) plugin as d... | <|file_sep|>original/README.md
vagrant-plugins-env
===================
A simple environment to develop vagrant plugins in
<|file_sep|>current/README.md
vagrant-plugins-env
===================
A simple environment to develop vagrant plugins in
<|file_sep|>updated/README.md
vagrant-plugins-env
===================
A si... | 24d0a6004906702e48c80f3bf5ae180474baaf6b | README.md | README.md | Markdown |
<|file_sep|>original/notes/2017-08-02.md
<|file_sep|>current/notes/2017-08-02.md
<|file_sep|>updated/notes/2017-08-02.md | Working on simulate.py and schedulers.py simultaneously
- see committed changes for what was changed
- middle of the afternoon: simulate.py and schedulers.py now correctly replicate test_client.py
- there is feature `debug=boolean` to control printing stars (*) and dots (.) for scheduled and rejected passes.
scheduler... | <|file_sep|>original/notes/2017-08-02.md
<|file_sep|>current/notes/2017-08-02.md
<|file_sep|>updated/notes/2017-08-02.md
Working on simulate.py and schedulers.py simultaneously
- see committed changes for what was changed
- middle of the afternoon: simulate.py and schedulers.py now correctly replicate test_client.py
... | 3d9ee497717a524ad36dc108a2c27238d3b26f43 | notes/2017-08-02.md | notes/2017-08-02.md | Markdown |
<|file_sep|>original/src/components/TabBar/TabBar.css
@media only screen and (max-width: 768px) {
padding-left: 10px;
padding-right: 10px;
}
}
& .chosen {
display: inline-block;
border-color: var(--primaryLinkColor);
color: color(var(--colorMuted) lightness(85%));
}
@media onl... | }
@media only screen and (max-width: 768px) {
padding-left: 10px;
padding-right: 10px;
}
}
& .chosen {
display: inline-block;
border-color: var(--primaryLinkColor);
color: color(var(--colorMuted) lightness(85%));
}
@media only screen and (max-width: 1439px) {
white-spa... | <|file_sep|>original/src/components/TabBar/TabBar.css
@media only screen and (max-width: 768px) {
padding-left: 10px;
padding-right: 10px;
}
}
& .chosen {
display: inline-block;
border-color: var(--primaryLinkColor);
color: color(var(--colorMuted) lightness(85%));
}
@media onl... | a3b4d23fcd647d6ddaa349012d66a17654c32d02 | src/components/TabBar/TabBar.css | src/components/TabBar/TabBar.css | CSS |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
- 1.9
script:
- go test -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
<|file_sep|>current/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
- 1.9
script:
- go test -coverpr... | language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
script:
- go test -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash) | <|file_sep|>original/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
- 1.9
script:
- go test -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
<|file_sep|>current/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
- 1.9
script:
- go test -coverpr... | 9bc06a73b880f13086ae726c81f9a81e1356a072 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/CHANGELOG.md
# 0.4.0
## Features
* Resize the bar when the screen configuration changes (Robert Helgesson)
* Support bypassing `dyre` by exposing `taffybarMain` (Christian Hoener zu Siederdissen)
* Textual CPU and memory monitors (Zakhar Voit)
* A new window switcher menu in the pager (José A... | # 0.4.0
## Features
* Resize the bar when the screen configuration changes (Robert Helgesson)
* Support bypassing `dyre` by exposing `taffybarMain` (Christian Hoener zu Siederdissen)
* Textual CPU and memory monitors (Zakhar Voit)
* A new window switcher menu in the pager (José Alfredo Romero L)
* Dynamic worksp... | <|file_sep|>original/CHANGELOG.md
# 0.4.0
## Features
* Resize the bar when the screen configuration changes (Robert Helgesson)
* Support bypassing `dyre` by exposing `taffybarMain` (Christian Hoener zu Siederdissen)
* Textual CPU and memory monitors (Zakhar Voit)
* A new window switcher menu in the pager (José A... | 0cf5773832c686e0bdf1b0a9a57bade41a349ace | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>lib/kracken/token_authenticator.rb.diff
original:
JSON.parse(response.body)
updated:
if response
JSON.parse(response.body)
end
<|file_sep|>original/lib/kracken/token_authenticator.rb
end
self
end
def body
JSON.parse(response.body)
end
def etag
... | self
end
def body
if response
JSON.parse(response.body)
end
end
def etag
if response
response.headers["etag"]
end
end
private
def connection
@connection ||= Faraday.new(url: PROVIDER_URL)
end
| <|file_sep|>lib/kracken/token_authenticator.rb.diff
original:
JSON.parse(response.body)
updated:
if response
JSON.parse(response.body)
end
<|file_sep|>original/lib/kracken/token_authenticator.rb
end
self
end
def body
JSON.parse(response.body)
end
def etag
... | 1bdb912a9d0d2943635c22681314e062a26b632d | lib/kracken/token_authenticator.rb | lib/kracken/token_authenticator.rb | Ruby |
<|file_sep|>original/app/views/boards/_list_item.haml
%tr
- klass = cycle('even', 'odd')
%td.padding-10.board-title{class: klass}= link_to board.name, board_path(board)
%td.padding-10.board-authors{class: klass}
- if board.open_to_anyone?
Anyone
- else
= board.writers.sort_by{ |author| author.... | %tr
- klass = cycle('even', 'odd')
%td.padding-10.board-title{class: klass}= link_to board.name, board_path(board)
%td.padding-10.board-authors{class: klass}
- if board.open_to_anyone?
Anyone
- else
= board.writers.sort_by{ |author| author.username.downcase }.sort_by(&:deleted?).map { |u| user... | <|file_sep|>original/app/views/boards/_list_item.haml
%tr
- klass = cycle('even', 'odd')
%td.padding-10.board-title{class: klass}= link_to board.name, board_path(board)
%td.padding-10.board-authors{class: klass}
- if board.open_to_anyone?
Anyone
- else
= board.writers.sort_by{ |author| author.... | 776db61e47bd2e83188072c96f8ca527fb376474 | app/views/boards/_list_item.haml | app/views/boards/_list_item.haml | Haml |
<|file_sep|>jest/preprocessor.js.diff
original:
// Don't transform node_modules, except react-tools which includes the
// untransformed copy of React
if (file.match(/node_modules\/(?!react-tools\/)/)) {
return src;
} else if (nodeFiles.test(file)) { // node specific transforms only
updated:
if... | const nodeOptions = babelRegisterOnly.config([nodeFiles]);
babelRegisterOnly([]);
// has to be required after setting up babelRegisterOnly
const transformer = require('../packager/transformer.js');
module.exports = {
process(src, file) {
if (nodeFiles.test(file)) { // node specific transforms only
return ... | <|file_sep|>jest/preprocessor.js.diff
original:
// Don't transform node_modules, except react-tools which includes the
// untransformed copy of React
if (file.match(/node_modules\/(?!react-tools\/)/)) {
return src;
} else if (nodeFiles.test(file)) { // node specific transforms only
updated:
if... | 91b2dbb1dedc88d3724348db8972c43b8ececdc8 | jest/preprocessor.js | jest/preprocessor.js | JavaScript |
<|file_sep|>original/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java
<|file_sep|>current/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java
<|file_sep|>updated/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java | package com.pm.server.repository;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.After;
import org.junit.Before;
import org.springframework.beans.factory.annotation.Autowired;... | <|file_sep|>original/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java
<|file_sep|>current/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java
<|file_sep|>updated/src/test/java/com/pm/server/repository/PacmanRepositoryTest.java
package com.pm.server.repository;
import static org.junit.Ass... | 0a10ce7b4f3e855fcf4a655c60c237f7a1797418 | src/test/java/com/pm/server/repository/PacmanRepositoryTest.java | src/test/java/com/pm/server/repository/PacmanRepositoryTest.java | Java |
<|file_sep|>lib/chef_fs/file_system/base_fs_object.rb.diff
original:
updated:
@name = name
<|file_sep|>original/lib/chef_fs/file_system/base_fs_object.rb
require 'chef_fs/path_utils'
module ChefFS
module FileSystem
class BaseFSObject
def initialize(name, parent)
@parent = parent
if... | require 'chef_fs/path_utils'
module ChefFS
module FileSystem
class BaseFSObject
def initialize(name, parent)
@parent = parent
@name = name
if parent
@path = ChefFS::PathUtils::join(parent.path, name)
else
if name != ''
raise ArgumentError, "Na... | <|file_sep|>lib/chef_fs/file_system/base_fs_object.rb.diff
original:
updated:
@name = name
<|file_sep|>original/lib/chef_fs/file_system/base_fs_object.rb
require 'chef_fs/path_utils'
module ChefFS
module FileSystem
class BaseFSObject
def initialize(name, parent)
@parent = parent
if... | 2b96e134b88afd63ccbd72ed2decc08f1fe73ba8 | lib/chef_fs/file_system/base_fs_object.rb | lib/chef_fs/file_system/base_fs_object.rb | Ruby |
<|file_sep|>tests/basicTest.php.diff
original:
updated:
use \photon\tests\sessionTest\SessionHighLevelTestCase;
<|file_sep|>tests/basicTest.php.diff
original:
class SessionTest extends \photon\test\TestCase
updated:
class SessionFileTest extends SessionHighLevelTestCase
<|file_sep|>tests/basicTest.php.diff
original:
... | <?php
use \photon\config\Container as Conf;
use \photon\tests\sessionTest\SessionHighLevelTestCase;
class SessionFileTest extends SessionHighLevelTestCase
{
public function setup()
{
parent::setup();
Conf::set('session_storage', '\photon\session\storage\MongoDB');
}
} | <|file_sep|>tests/basicTest.php.diff
original:
updated:
use \photon\tests\sessionTest\SessionHighLevelTestCase;
<|file_sep|>tests/basicTest.php.diff
original:
class SessionTest extends \photon\test\TestCase
updated:
class SessionFileTest extends SessionHighLevelTestCase
<|file_sep|>tests/basicTest.php.diff
original:
... | 21ab711bbb4251c157d33c4bcf17049308199171 | tests/basicTest.php | tests/basicTest.php | PHP |
<|file_sep|>original/GestureRecognizerClosures/ClosureHandler.swift
internal let ClosureHandlerSelector = Selector(("handle"))
internal class ClosureHandler<T: AnyObject>: NSObject {
internal var handler: ((T) -> Void)?
internal weak var control: T?
internal init(handler: @escaping (T) -> Void, control: ... | internal let ClosureHandlerSelector = Selector(("handle"))
internal class ClosureHandler<T: AnyObject>: NSObject {
internal var handler: ((T) -> Void)?
internal weak var control: T?
internal init(handler: @escaping (T) -> Void, control: T? = nil) {
self.handler = handler
self.control = co... | <|file_sep|>original/GestureRecognizerClosures/ClosureHandler.swift
internal let ClosureHandlerSelector = Selector(("handle"))
internal class ClosureHandler<T: AnyObject>: NSObject {
internal var handler: ((T) -> Void)?
internal weak var control: T?
internal init(handler: @escaping (T) -> Void, control: ... | 9eead69969a4d551fde9baa81432ddeb14bcfc8e | GestureRecognizerClosures/ClosureHandler.swift | GestureRecognizerClosures/ClosureHandler.swift | Swift |
<|file_sep|>original/eidr-connect-test.yml
services:
app:
image: eidr-connect-test:latest
container_name: eidrconnect_app_1
environment:
- ghprbSourceBranch
- SPA_MONGO_URL=mongodb://172.30.2.160:27017/promed
volumes:
- /shared/eidr-connect:/shared
env_file:
- /shared/eidr-... | services:
app:
image: eidr-connect-test:latest
container_name: eidrconnect_app_1
environment:
- ghprbSourceBranch
- SPA_MONGO_URL=mongodb://172.30.2.160:27017/promed
volumes:
- /shared/eidr-connect:/shared
env_file:
- /shared/eidr-connect/sensitive-environment-vars.env
... | <|file_sep|>original/eidr-connect-test.yml
services:
app:
image: eidr-connect-test:latest
container_name: eidrconnect_app_1
environment:
- ghprbSourceBranch
- SPA_MONGO_URL=mongodb://172.30.2.160:27017/promed
volumes:
- /shared/eidr-connect:/shared
env_file:
- /shared/eidr-... | a234e9d38e71dc5befc9928d5a988eb709e9ad57 | eidr-connect-test.yml | eidr-connect-test.yml | YAML |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
#Fri Oct 21 05:09:17 JST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-bin.zip
<|file_sep|>current/gradle/... | #Fri Oct 21 05:09:17 JST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
#Fri Oct 21 05:09:17 JST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-bin.zip
<|file_sep|>current/gradle/... | 35184dcd4f0b3670795d0e8e6db3c94a876fab48 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>whitesimilarity.gemspec.diff
original:
spec.homepage = ''
updated:
spec.homepage = 'https://github.com/jfairbank/whitesimilarity'
<|file_sep|>original/whitesimilarity.gemspec
Gem::Specification.new do |spec|
spec.name = 'whitesimilarity'
spec.version = WhiteSimilarity::VERS... | require 'whitesimilarity/version'
Gem::Specification.new do |spec|
spec.name = 'whitesimilarity'
spec.version = WhiteSimilarity::VERSION
spec.authors = ['Jeremy Fairbank']
spec.email = ['elpapapollo@gmail.com']
spec.description = %q{An implementation of the White Similarity Alg... | <|file_sep|>whitesimilarity.gemspec.diff
original:
spec.homepage = ''
updated:
spec.homepage = 'https://github.com/jfairbank/whitesimilarity'
<|file_sep|>original/whitesimilarity.gemspec
Gem::Specification.new do |spec|
spec.name = 'whitesimilarity'
spec.version = WhiteSimilarity::VERS... | 0e6d1a1d5071425672abe26c8f547f1ab302e81c | whitesimilarity.gemspec | whitesimilarity.gemspec | Ruby |
<|file_sep|>original/lib/tasks/sample_data.rake
<|file_sep|>current/lib/tasks/sample_data.rake
<|file_sep|>updated/lib/tasks/sample_data.rake | namespace :db do
desc "Fill the database with sample data"
task populate: :environment do
Bike.create!(name: "Mountain Bike")
Bike.create!(name: "Road Bike")
Bike.create!(name: "Hybrid")
Bike.create!(name: "Cross")
end
end | <|file_sep|>original/lib/tasks/sample_data.rake
<|file_sep|>current/lib/tasks/sample_data.rake
<|file_sep|>updated/lib/tasks/sample_data.rake
namespace :db do
desc "Fill the database with sample data"
task populate: :environment do
Bike.create!(name: "Mountain Bike")
Bike.create!(name: "Road Bike")
Bi... | ba8cfefd4a51089d50def1c6b7f20012d8dda73c | lib/tasks/sample_data.rake | lib/tasks/sample_data.rake | Ruby |
<|file_sep|>original/Documents/Ressources.txt
<|file_sep|>current/Documents/Ressources.txt
<|file_sep|>updated/Documents/Ressources.txt | Ressources utilises
Ressources used:
http://stackoverflow.com/questions/14398733/remove-item-listview-with-slide-like-gmail
http://stackoverflow.com/questions/20797099/swipe-listview-item-from-right-to-left-show-delete-button
https://plus.google.com/+RomanNurik/posts/Fgo1p5uWZLu & https://github.com/romannurik/Android-... | <|file_sep|>original/Documents/Ressources.txt
<|file_sep|>current/Documents/Ressources.txt
<|file_sep|>updated/Documents/Ressources.txt
Ressources utilises
Ressources used:
http://stackoverflow.com/questions/14398733/remove-item-listview-with-slide-like-gmail
http://stackoverflow.com/questions/20797099/swipe-listview... | 8bb930c133c7eb3077987ad61f0d667922892c07 | Documents/Ressources.txt | Documents/Ressources.txt | Text |
<|file_sep|>original/bin/schedule-generator.escript
<|file_sep|>current/bin/schedule-generator.escript
<|file_sep|>updated/bin/schedule-generator.escript | #!/usr/bin/env escript
%%! -pa ./_build/test/lib/partisan/ebin -Wall
main(_Args) ->
%% Generate and print the powerset.
io:format("Powerset:~n", []),
Powerset = powerset(schedule()),
lists:foreach(fun(N) ->
io:format("~p~n", [N]),
%% Generate permutations.
Perms = perms(N),
... | <|file_sep|>original/bin/schedule-generator.escript
<|file_sep|>current/bin/schedule-generator.escript
<|file_sep|>updated/bin/schedule-generator.escript
#!/usr/bin/env escript
%%! -pa ./_build/test/lib/partisan/ebin -Wall
main(_Args) ->
%% Generate and print the powerset.
io:format("Powerset:~n", []),
P... | 2e7c40391e82b59936a2ad247143f72cefe64a8a | bin/schedule-generator.escript | bin/schedule-generator.escript | Erlang |
<|file_sep|>original/lib/twilio-ruby/rest/messages.rb
module Twilio
module REST
class Messages < ListResource; end
class Message < InstanceResource
def initialize(path, client, params={})
super
resource :media
end
end
end
end
<|file_sep|>current/lib/twilio-ruby/rest/messages... | module Twilio
module REST
class Messages < ListResource
def initialize(path, client)
path.gsub! '/SMS', ''
super
end
end
class Message < InstanceResource
def initialize(path, client, params={})
super
resource :media
end
end
end
end | <|file_sep|>original/lib/twilio-ruby/rest/messages.rb
module Twilio
module REST
class Messages < ListResource; end
class Message < InstanceResource
def initialize(path, client, params={})
super
resource :media
end
end
end
end
<|file_sep|>current/lib/twilio-ruby/rest/messages... | e0460d295c81d5bee51d97a0eccc8b10c8fa193c | lib/twilio-ruby/rest/messages.rb | lib/twilio-ruby/rest/messages.rb | Ruby |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
branches:
only:
- ... | sudo: false
language: node_js
node_js:
- '4'
- '6'
- '8'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
branches:
only:
- master
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
branches:
only:
- ... | 1ffb59fcb6d7c43af793772ca6aaa7ed920e80c1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/setup.py
except ImportError:
INSTALL_REQUIRES.append('importlib')
tests_require = [
'requests>=1.2',
'beautifulsoup4'
]
setup(
name='dk-car-scraper',
version='1.0.7',
packages=find_packages(exclude=[]),
author='Joshua Karjala-Svenden',
author_email='joshua@fluxurie... | except ImportError:
INSTALL_REQUIRES.append('importlib')
tests_require = [
'requests>=1.2',
'beautifulsoup4'
]
setup(
name='dk-car-scraper',
version='1.0.8',
packages=find_packages(exclude=[]),
author='Joshua Karjala-Svenden',
author_email='joshua@fluxuries.com',
url='https://githu... | <|file_sep|>original/setup.py
except ImportError:
INSTALL_REQUIRES.append('importlib')
tests_require = [
'requests>=1.2',
'beautifulsoup4'
]
setup(
name='dk-car-scraper',
version='1.0.7',
packages=find_packages(exclude=[]),
author='Joshua Karjala-Svenden',
author_email='joshua@fluxurie... | a0f97f420e091c61a61e931cf777721dc06f2534 | setup.py | setup.py | Python |
<|file_sep|>project/src/main/webapp/event-details.js.diff
original:
const response = await fetch('/event-volunteering-data');
const opportunities = await response.json()
console.log(opportunities);
const opportunitiesArray = JSON.parse(opportunities);
opportunitiesArray.forEach(function(opportu... | $('#volunteering-opportunities')
.append(getInputFieldForOpportunity(
opportunities[key].name, opportunities[key].numSpotsLeft,
opportunities[key].requiredSkills));
}
}
/**
* Return a list field representing the
* @param name name of opportunity
* @param numSpotsLeft number of ... | <|file_sep|>project/src/main/webapp/event-details.js.diff
original:
const response = await fetch('/event-volunteering-data');
const opportunities = await response.json()
console.log(opportunities);
const opportunitiesArray = JSON.parse(opportunities);
opportunitiesArray.forEach(function(opportu... | e022ec5b9640833afa59ccd3a33bb5fc2abfceb6 | project/src/main/webapp/event-details.js | project/src/main/webapp/event-details.js | JavaScript |
<|file_sep|>tests/wpt/run.sh.diff
original:
updated:
binary_dir=$wpt_root/../../components/servo/target
if [[ $1 == "--release" ]]; then
binary_dir=$binary_dir/release
shift
fi
<|file_sep|>original/tests/wpt/run.sh
set -e
wpt_root=$(dirname $0)
PYTHON=$(which python2 2> /dev/null || echo python)
VIRTUALENV=... | binary_dir=$binary_dir/release
shift
fi
PYTHON=$(which python2 2> /dev/null || echo python)
VIRTUALENV=$(which virtualenv2 2> /dev/null || echo virtualenv)
test -d $wpt_root/_virtualenv || $VIRTUALENV $wpt_root/_virtualenv -p $PYTHON
test -d $wpt_root/metadata || mkdir -p $wpt_root/metadata
test -d $wpt_root/... | <|file_sep|>tests/wpt/run.sh.diff
original:
updated:
binary_dir=$wpt_root/../../components/servo/target
if [[ $1 == "--release" ]]; then
binary_dir=$binary_dir/release
shift
fi
<|file_sep|>original/tests/wpt/run.sh
set -e
wpt_root=$(dirname $0)
PYTHON=$(which python2 2> /dev/null || echo python)
VIRTUALENV=... | b80593c09e9ae37d9d13b4e8c988cf1e8da7efcb | tests/wpt/run.sh | tests/wpt/run.sh | Shell |
<|file_sep|>original/cli/cli_test.go
data := cmdMarshalProto(volumeSpec, false)
require.Equal(
t,
`{
"ephemeral": false,
"size": "64",
"format": "ext4",
"block_size": "0",
"ha_level": "0",
"cos": "none",
"dedupe": false,
"snapshot_interval": 0,
"shared": false,
"aggregation_level": 0,
"encrypted": fals... | data := cmdMarshalProto(volumeSpec, false)
require.Equal(
t,
`{
"ephemeral": false,
"size": "64",
"format": "ext4",
"block_size": "0",
"ha_level": "0",
"cos": "none",
"io_profile": "IO_PROFILE_SEQUENTIAL",
"dedupe": false,
"snapshot_interval": 0,
"shared": false,
"aggregation_level": 0,
"encrypted": f... | <|file_sep|>original/cli/cli_test.go
data := cmdMarshalProto(volumeSpec, false)
require.Equal(
t,
`{
"ephemeral": false,
"size": "64",
"format": "ext4",
"block_size": "0",
"ha_level": "0",
"cos": "none",
"dedupe": false,
"snapshot_interval": 0,
"shared": false,
"aggregation_level": 0,
"encrypted": fals... | 43996c7589f17c020526c4a07cb1913580736aad | cli/cli_test.go | cli/cli_test.go | Go |
<|file_sep|>original/environments/vagrant.json
{
"name": "vagrant",
"default_attributes": {
"mysql": {
"server_root_password": "rootpass",
"server_debian_password": "debpass",
"server_repl_password": "replpass",
"allow_remote_root": true
},
"ganeti_webmgr": {
"revision": "d... | {
"name": "vagrant",
"default_attributes": {
"mysql": {
"server_root_password": "rootpass",
"server_debian_password": "debpass",
"server_repl_password": "replpass",
"allow_remote_root": true
},
"ganeti_webmgr": {
"revision": "master",
"debug": true,
"migrate": t... | <|file_sep|>original/environments/vagrant.json
{
"name": "vagrant",
"default_attributes": {
"mysql": {
"server_root_password": "rootpass",
"server_debian_password": "debpass",
"server_repl_password": "replpass",
"allow_remote_root": true
},
"ganeti_webmgr": {
"revision": "d... | 33533fdb1199413a7438b524dfc8fef592751e45 | environments/vagrant.json | environments/vagrant.json | JSON |
<|file_sep|>original/requirements-dev.txt
docutils==0.12 # via botocore, zappa
filechunkio==1.6 # via zappa
flake8==2.5.4
futures==3.0.5 # via zappa
isort==4.2.5
jmespath==0.9.0 # via boto3, botocore, zappa
lambda-packages==0.5.0 # via zappa
mccabe==0.4.0 # via f... | docutils==0.12 # via botocore, zappa
filechunkio==1.6 # via zappa
flake8==2.5.4
futures==3.0.5 # via zappa
isort==4.2.5
jmespath==0.9.0 # via boto3, botocore, zappa
lambda-packages==0.5.0 # via zappa
mccabe==0.4.0 # via flake8
nose==1.3.7 # via zapp... | <|file_sep|>original/requirements-dev.txt
docutils==0.12 # via botocore, zappa
filechunkio==1.6 # via zappa
flake8==2.5.4
futures==3.0.5 # via zappa
isort==4.2.5
jmespath==0.9.0 # via boto3, botocore, zappa
lambda-packages==0.5.0 # via zappa
mccabe==0.4.0 # via f... | 9f912e3e749fb32dd8c9a93f2cf0698dece30408 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>_sass/_base.scss.diff
original:
updated:
// Media Queries for Text Size Changes
<|file_sep|>original/_sass/_base.scss
box-sizing: border-box;
padding-bottom: 100px;
margin-bottom: -100px;
position: relative;
}
:not(p)>a{ color: rgb(49,107,158);
&:hover,
a:focus { text-decoration: underline; }... | a:focus { text-decoration: underline; }
}
// Media Queries for Text Size Changes
@media only screen and (max-width: 800px) {
:root { font-size: 16px; }
}
@media only screen and (min-width: 800px) {
:root { font-size: 18px; }
}
.home-logo {
margin-right: 1rem;
width: 6rem;
height: 6rem;
}
.site { paddi... | <|file_sep|>_sass/_base.scss.diff
original:
updated:
// Media Queries for Text Size Changes
<|file_sep|>original/_sass/_base.scss
box-sizing: border-box;
padding-bottom: 100px;
margin-bottom: -100px;
position: relative;
}
:not(p)>a{ color: rgb(49,107,158);
&:hover,
a:focus { text-decoration: underline; }... | e5e0b473647d850e943c4fc860d298203a40d6ce | _sass/_base.scss | _sass/_base.scss | SCSS |
<|file_sep|>original/.travis.yml
language: scala
scala:
- 2.11.6
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
<|file_sep|>current/.travis.yml
language: scala
scala:
- 2.11.6
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
<|file_sep|>updated/.travis.yml | language: scala
scala:
- 2.11.7
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8 | <|file_sep|>original/.travis.yml
language: scala
scala:
- 2.11.6
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
<|file_sep|>current/.travis.yml
language: scala
scala:
- 2.11.6
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
<|file_sep|>updated/.travis.yml
language: scala
scala:
- 2.11.7... | 29ff1e565f860c27a70393fb49722f6728d46fc4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/chainerx/math/misc.py
a (~chainerx.ndarray): Array containing elements to clip.
a_min (scalar): Maximum value.
a_max (scalar): Minimum value.
Returns:
~chainerx.ndarray: An array with the elements of ``a``, but where
values < ``a_min`` are replaced with ... | values < ``a_min`` are replaced with ``a_min``,
and those > ``a_max`` with ``a_max``.
Note:
The :class:`~chainerx.ndarray` typed ``a_min`` and ``a_max`` are
not supported yet.
Note:
During backpropagation, this function propagates the gradient
of the output arra... | <|file_sep|>original/chainerx/math/misc.py
a (~chainerx.ndarray): Array containing elements to clip.
a_min (scalar): Maximum value.
a_max (scalar): Minimum value.
Returns:
~chainerx.ndarray: An array with the elements of ``a``, but where
values < ``a_min`` are replaced with ... | 2250367b35ccd4074ab758b233df95a5a811475c | chainerx/math/misc.py | chainerx/math/misc.py | Python |
<|file_sep|>.circleci/config.yml.diff
original:
build:
updated:
run_unit_tests:
<|file_sep|>.circleci/config.yml.diff
original:
# Unit test
updated:
<|file_sep|>original/.circleci/config.yml
docker:
- image: circleci/golang:1.12.5
environment:
GO111MODULE: "on"
working_direc... | name: Install kubebuilder
command: |
version=2.0.0-beta.0
arch=amd64
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_linux_${arch}.tar.gz
tar -zxvf kubebuilder_${version}_linux_${arch}.tar.... | <|file_sep|>.circleci/config.yml.diff
original:
build:
updated:
run_unit_tests:
<|file_sep|>.circleci/config.yml.diff
original:
# Unit test
updated:
<|file_sep|>original/.circleci/config.yml
docker:
- image: circleci/golang:1.12.5
environment:
GO111MODULE: "on"
working_direc... | 0fe0576f71096a3261c8eb8e0aa791ea1d8c6fc9 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/app/views/common/footer.scala.html
@**
* Yona, 21st Century Project Hosting SW
*
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
<footer class="page-footer-outer">
<div class="page-footer">
<span class="provider">Copyright <a href="https://github.com/yona-projects/yo... | @**
* Yona, 21st Century Project Hosting SW
*
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
<footer class="page-footer-outer">
<div class="page-footer">
<span class="provider">Copyright <a href="https://github.com/yona-projects/yona/blob/master/AUTHORS" target="_blank" class="yona-auth... | <|file_sep|>original/app/views/common/footer.scala.html
@**
* Yona, 21st Century Project Hosting SW
*
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
<footer class="page-footer-outer">
<div class="page-footer">
<span class="provider">Copyright <a href="https://github.com/yona-projects/yo... | c0a6beeb8789524e9ecf96e002536580c1da6e53 | app/views/common/footer.scala.html | app/views/common/footer.scala.html | HTML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.6
- 7.0
addons:
code_climate:
repo_token: e9193b107e8df98973444d74d5b16b2f7e6605b03542c4a4844153281d81c660
before_script:
- sed -i '/phpdoc/d' composer.json
- composer install
script:
- phpunit --configuration test/phpunit.xml test
- ./vendor/bin... | language: php
php:
- 5.6
- 7.0
addons:
code_climate:
repo_token: e9193b107e8df98973444d74d5b16b2f7e6605b03542c4a4844153281d81c660
before_script:
- sed -i '/phpdoc/d' composer.json
- composer install
script:
- phpunit --configuration test/phpunit.xml test
- ./vendor/bin/phpcs --ignore=*/vendor/*,*/bin/... | <|file_sep|>original/.travis.yml
language: php
php:
- 5.6
- 7.0
addons:
code_climate:
repo_token: e9193b107e8df98973444d74d5b16b2f7e6605b03542c4a4844153281d81c660
before_script:
- sed -i '/phpdoc/d' composer.json
- composer install
script:
- phpunit --configuration test/phpunit.xml test
- ./vendor/bin... | c02cd93d71c43a4dea471018aa5f98d254502b91 | .travis.yml | .travis.yml | YAML |
<|file_sep|>OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/custom/impl/ProductRepositoryCustomImpl.java.diff
original:
import javax.inject.Inject;
import devopsdistilled.operp.server.data.repo.items.ProductRepository;
updated:
<|file_sep|>original/OpERP/src/main/java/devopsdistilled/operp/server/dat... | package devopsdistilled.operp.server.data.repo.items.custom.impl;
import devopsdistilled.operp.server.data.repo.items.custom.ProductRepositoryCustom;
public class ProductRepositoryCustomImpl implements ProductRepositoryCustom {
} | <|file_sep|>OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/custom/impl/ProductRepositoryCustomImpl.java.diff
original:
import javax.inject.Inject;
import devopsdistilled.operp.server.data.repo.items.ProductRepository;
updated:
<|file_sep|>original/OpERP/src/main/java/devopsdistilled/operp/server/dat... | 7a1da76d87c9ff555848ced8a6ae84bcb76e45a0 | OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/custom/impl/ProductRepositoryCustomImpl.java | OpERP/src/main/java/devopsdistilled/operp/server/data/repo/items/custom/impl/ProductRepositoryCustomImpl.java | Java |
<|file_sep|>original/app/views/merge_requests/index.html.erb
%>
<% @title = t("views.merges.page_title", :repo => h(repository.name)) -%>
<% content_for(:head) do %>
<%= auto_discovery_link_tag(:atom, atom_auto_discovery_url, :title => "Atom") -%>
<% end %>
<%= repo_header(repository, {
:current_user => cu... | %>
<% @title = t("views.merges.page_title", :repo => h(repository.name)) -%>
<% content_for(:head) do %>
<%= auto_discovery_link_tag(:atom, atom_auto_discovery_url, :title => "Atom") -%>
<% end %>
<%= repo_header(repository, {
:current_user => current_user,
:active => :merge_requests,
:head... | <|file_sep|>original/app/views/merge_requests/index.html.erb
%>
<% @title = t("views.merges.page_title", :repo => h(repository.name)) -%>
<% content_for(:head) do %>
<%= auto_discovery_link_tag(:atom, atom_auto_discovery_url, :title => "Atom") -%>
<% end %>
<%= repo_header(repository, {
:current_user => cu... | a5a4fa650f7a19fcd1db214ff0d6168354679b3f | app/views/merge_requests/index.html.erb | app/views/merge_requests/index.html.erb | HTML+ERB |
<|file_sep|>original/test-errors/classes.ts
class A {
x: number = 42 // TS9209 - field initializers
}
class B extends A { } // TS9228 - inheritence
interface C { } // Probably should emit some sort of error, just skips it at the moment
class D implements C { } // TS9228
class G<T> { } // Generics now supported
clas... | class A {
x: number = 42 // TS9209 - field initializers
}
class B extends A { } // TS9228 - inheritence
interface C { } // Probably should emit some sort of error, just skips it at the moment
class D implements C { } // TS9228
class G<T> { } // Generics now supported
class S {
public static x: number
public... | <|file_sep|>original/test-errors/classes.ts
class A {
x: number = 42 // TS9209 - field initializers
}
class B extends A { } // TS9228 - inheritence
interface C { } // Probably should emit some sort of error, just skips it at the moment
class D implements C { } // TS9228
class G<T> { } // Generics now supported
clas... | 53202341e81a6011e1b8de2197336b46a2b5550f | test-errors/classes.ts | test-errors/classes.ts | TypeScript |
<|file_sep|>original/Realization/frontend/czechidm-example/src/locales/en.json
<|file_sep|>current/Realization/frontend/czechidm-example/src/locales/en.json
<|file_sep|>updated/Realization/frontend/czechidm-example/src/locales/en.json | {
"module": {
"name": "Example module",
"author": "BCV solutions s.r.o."
},
"navigation" : {
"menu" : {
}
},
"entity": {
},
"content": {
"identity":{
"example": "Ukázková záložka"
},
"example": {
"menu": "Ukázkové menu",
"title": "Ukázka hlavního menu, přidan... | <|file_sep|>original/Realization/frontend/czechidm-example/src/locales/en.json
<|file_sep|>current/Realization/frontend/czechidm-example/src/locales/en.json
<|file_sep|>updated/Realization/frontend/czechidm-example/src/locales/en.json
{
"module": {
"name": "Example module",
"author": "BCV solutions s.r.o."
... | b318ee16de8544e5bd921a6887770131ab3b80ea | Realization/frontend/czechidm-example/src/locales/en.json | Realization/frontend/czechidm-example/src/locales/en.json | JSON |
<|file_sep|>original/app/src/main/res/layout/toolbar.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
... | <?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@... | <|file_sep|>original/app/src/main/res/layout/toolbar.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
... | 8fa16b073a3f25af26ed2b22b9daebc87738310c | app/src/main/res/layout/toolbar.xml | app/src/main/res/layout/toolbar.xml | XML |
<|file_sep|>original/packages/en/Enum.yaml
<|file_sep|>current/packages/en/Enum.yaml
<|file_sep|>updated/packages/en/Enum.yaml | homepage: ''
changelog-type: ''
hash: 4bf2da55deca1ffb2a32b100b44c21346ae860e5f6c3fbe05f11a179defddf57
test-bench-deps: {}
maintainer: strake888@gmail.com
synopsis: Non-crashing `Enum` operations
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
all-versions:
- '0.1.0.0'
author: M Farkas-Dyck
latest: '0.1.0.0'
descript... | <|file_sep|>original/packages/en/Enum.yaml
<|file_sep|>current/packages/en/Enum.yaml
<|file_sep|>updated/packages/en/Enum.yaml
homepage: ''
changelog-type: ''
hash: 4bf2da55deca1ffb2a32b100b44c21346ae860e5f6c3fbe05f11a179defddf57
test-bench-deps: {}
maintainer: strake888@gmail.com
synopsis: Non-crashing `Enum` operat... | 2e6985ed5f0acc91be5959d439d58cc28461227f | packages/en/Enum.yaml | packages/en/Enum.yaml | YAML |
<|file_sep|>app/components/application/emoji-react-demo.js.diff
original:
updated:
import autosize from "autosize"
<|file_sep|>original/app/components/application/emoji-react-demo.js
iframe.frameBorder = "0"
iframe.style = "border:none; overflow:hidden; height:35px;"
var container = document.querySelector(sele... | iframe.style = "border:none; overflow:hidden; height:35px;"
var container = document.querySelector(selector)
container.insertBefore(iframe, container.firstChild || container)
</script>`
export default function runDemo(app) {
const {embedCodeInput} = app.refs
embedCodeInput.autofocus = false
embedCodeInp... | <|file_sep|>app/components/application/emoji-react-demo.js.diff
original:
updated:
import autosize from "autosize"
<|file_sep|>original/app/components/application/emoji-react-demo.js
iframe.frameBorder = "0"
iframe.style = "border:none; overflow:hidden; height:35px;"
var container = document.querySelector(sele... | 581b9393ac0e0c6a505bedaaf6cbb7d30c0e4f4f | app/components/application/emoji-react-demo.js | app/components/application/emoji-react-demo.js | JavaScript |
<|file_sep|>original/README.md
# wp-install
Bash script for easily installing WP with additional dependencies.
# Dependencies #
* Whiptail
# Installation #
./install
Wp-cli will be installed if it doesn't already exist. wp-install will be installed to `/usr/bin`.
# Usage #
1. `wp-install`
2. Follow ins... | # wp-install
Bash script for easily installing WP with additional dependencies.
# Dependencies #
* Bash 4.X
# Installation #
./install
Wp-cli will be installed if it doesn't already exist. wp-install will be installed to `/usr/bin`.
# Usage #
1. `wp-install`
2. Follow instructions
3. Appreciate free t... | <|file_sep|>original/README.md
# wp-install
Bash script for easily installing WP with additional dependencies.
# Dependencies #
* Whiptail
# Installation #
./install
Wp-cli will be installed if it doesn't already exist. wp-install will be installed to `/usr/bin`.
# Usage #
1. `wp-install`
2. Follow ins... | 47b08d7a1b3fce336e2f4d4c200ccc12839e7238 | README.md | README.md | Markdown |
<|file_sep|>app/views/errors/bare_domain.html.erb.diff
original:
updated:
<% @users.each_slice(3) do |slice| %>
<|file_sep|>app/views/errors/bare_domain.html.erb.diff
original:
<div class="col-md-8 col-md-offset-2">
<div class="list-group">
<% @users.each do |user| %>
<%= link_to "#{request.protocol}#{... | <div class="row">
<% slice.each do |user| %>
<div class="col-sm-4">
<div class="panel">
<div class="panel-body text-center">
<%= link_to "#{request.protocol}#{u tenant_instance_hostname(user)}/", class: 'thumbnail', target: '_blank' do %>
<%= image_tag user.avatar_url, class: '... | <|file_sep|>app/views/errors/bare_domain.html.erb.diff
original:
updated:
<% @users.each_slice(3) do |slice| %>
<|file_sep|>app/views/errors/bare_domain.html.erb.diff
original:
<div class="col-md-8 col-md-offset-2">
<div class="list-group">
<% @users.each do |user| %>
<%= link_to "#{request.protocol}#{... | 4315e55d3fc545a62a9aaedfa0430adb935c56dc | app/views/errors/bare_domain.html.erb | app/views/errors/bare_domain.html.erb | HTML+ERB |
<|file_sep|>original/src/main/java/com/lightbulbz/net/WOLPacketSender.java
<|file_sep|>current/src/main/java/com/lightbulbz/net/WOLPacketSender.java
<|file_sep|>updated/src/main/java/com/lightbulbz/net/WOLPacketSender.java | package com.lightbulbz.net;
import java.io.IOException;
import java.net.*;
/**
* Created by kevin on 6/3/15.
*/
public class WOLPacketSender {
private static final byte FF = (byte) 0xff;
private static final byte[] PAYLOAD_START = {FF, FF, FF, FF, FF, FF};
private static final int WOL_PACKET_SIZE = 6 + ... | <|file_sep|>original/src/main/java/com/lightbulbz/net/WOLPacketSender.java
<|file_sep|>current/src/main/java/com/lightbulbz/net/WOLPacketSender.java
<|file_sep|>updated/src/main/java/com/lightbulbz/net/WOLPacketSender.java
package com.lightbulbz.net;
import java.io.IOException;
import java.net.*;
/**
* Created by ... | b2e8d6d2acd910579fb6e37dd57273efc39b506c | src/main/java/com/lightbulbz/net/WOLPacketSender.java | src/main/java/com/lightbulbz/net/WOLPacketSender.java | Java |
<|file_sep|>salt/modules/key.py.diff
original:
return salt.utils.pem_finger(
os.path.join(__opts__['pki_dir'], 'minion.pub'),
sum_type=__opts__['hash_type']
)
updated:
# MD5 here is temporary. Change to SHA256 when retired.
return salt.utils.pem_finger(os.path.join(__opts... |
salt '*' key.finger
'''
# MD5 here is temporary. Change to SHA256 when retired.
return salt.utils.pem_finger(os.path.join(__opts__['pki_dir'], 'minion.pub'),
sum_type=__opts__.get('hash_type', 'md5'))
def finger_master():
'''
Return the fingerprint of the ... | <|file_sep|>salt/modules/key.py.diff
original:
return salt.utils.pem_finger(
os.path.join(__opts__['pki_dir'], 'minion.pub'),
sum_type=__opts__['hash_type']
)
updated:
# MD5 here is temporary. Change to SHA256 when retired.
return salt.utils.pem_finger(os.path.join(__opts... | b11ac934c95e4bbaee46ae2b73c3e7129acc06f3 | salt/modules/key.py | salt/modules/key.py | Python |
<|file_sep|>original/files/unifiedpush-cookbooks/unifiedpush/recipes/postgresql_database_schema.rb
# limitations under the License.
#
install_dir = node['package']['install-dir']
database_name = node['unifiedpush']['unifiedpush-server']['db_database']
account_helper = AccountHelper.new(node)
unifiedpush_user = accoun... | # limitations under the License.
#
install_dir = node['package']['install-dir']
database_name = node['unifiedpush']['unifiedpush-server']['db_database']
account_helper = AccountHelper.new(node)
unifiedpush_user = account_helper.unifiedpush_user
template "/tmp/db.properties" do
source "unifiedpush-server-db-propert... | <|file_sep|>original/files/unifiedpush-cookbooks/unifiedpush/recipes/postgresql_database_schema.rb
# limitations under the License.
#
install_dir = node['package']['install-dir']
database_name = node['unifiedpush']['unifiedpush-server']['db_database']
account_helper = AccountHelper.new(node)
unifiedpush_user = accoun... | e1fbbe38243b7e7f57bc8ed9fad2be64764351d8 | files/unifiedpush-cookbooks/unifiedpush/recipes/postgresql_database_schema.rb | files/unifiedpush-cookbooks/unifiedpush/recipes/postgresql_database_schema.rb | Ruby |
<|file_sep|>original/setup.py
"""
Read the contents of the files listed in filenames and return it as a
string.
"""
return codecs.open(os.path.join(here, filename), 'r').read()
setup(
name='toolaudit',
version='0.0.3',
packages=['toolaudit'],
install_requires=[
"argparse>=1.... | """
Read the contents of the files listed in filenames and return it as a
string.
"""
return codecs.open(os.path.join(here, filename), 'r').read()
setup(
name='toolaudit',
version='0.0.3',
packages=['toolaudit'],
zip_safe=False,
install_requires=[
"argparse>=1.3.0",
... | <|file_sep|>original/setup.py
"""
Read the contents of the files listed in filenames and return it as a
string.
"""
return codecs.open(os.path.join(here, filename), 'r').read()
setup(
name='toolaudit',
version='0.0.3',
packages=['toolaudit'],
install_requires=[
"argparse>=1.... | 7db466f94fbca57482947fa982f56ae77b11f9fa | setup.py | setup.py | Python |
<|file_sep|>tests/phpunit.xml.dist.diff
original:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
updated:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
<|file_sep|>tests/phpunit.xml.dist.diff
original:
<filter>
<whitelist>
updated:
... | pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="false">
<include>
<directory suffix=".php">../</directory>
</include>
<exclude>
<directory>../.git</directory>
<directory>../.github</d... | <|file_sep|>tests/phpunit.xml.dist.diff
original:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
updated:
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
<|file_sep|>tests/phpunit.xml.dist.diff
original:
<filter>
<whitelist>
updated:
... | bd7964996d482c6a91120ae4065b80ce27ef7a9b | tests/phpunit.xml.dist | tests/phpunit.xml.dist | unknown |
<|file_sep|>original/tests/test_simulation_plot.py
<|file_sep|>current/tests/test_simulation_plot.py
<|file_sep|>updated/tests/test_simulation_plot.py | """
Tests Simulation class read method
"""
import os
import yaml
import numpy as np
from teemof import Simulation
from teemof.parameters import k_parameters
k_ref_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'thermal-conductivity.yaml')
time_ref_file = os.path.join(os.path.abspath(os.path.dirname(_... | <|file_sep|>original/tests/test_simulation_plot.py
<|file_sep|>current/tests/test_simulation_plot.py
<|file_sep|>updated/tests/test_simulation_plot.py
"""
Tests Simulation class read method
"""
import os
import yaml
import numpy as np
from teemof import Simulation
from teemof.parameters import k_parameters
k_ref_fi... | dfdce7895396ea0b80068543ed115094d677a6e2 | tests/test_simulation_plot.py | tests/test_simulation_plot.py | Python |
<|file_sep|>lib/validator/MultimediaFileValidatorSchema.class.php.diff
original:
$this->addMessage('file_not_found', "Please don't try stupid things, don't touch the uri");
updated:
$this->addMessage('file_not_found', "Please don't try stupid things, don't touch the uri");
<|file_sep|>original/lib/validator... |
protected function doClean($value)
{
$errorSchema = new sfValidatorErrorSchema($this);
$errorSchemaLocal = new sfValidatorErrorSchema($this);
if (!$value['referenced_relation'])
{
return array();
}
if($value['record_id'] == 0)
{
if( ! preg_match("/^[a-zA-Z0-9\.]+... | <|file_sep|>lib/validator/MultimediaFileValidatorSchema.class.php.diff
original:
$this->addMessage('file_not_found', "Please don't try stupid things, don't touch the uri");
updated:
$this->addMessage('file_not_found', "Please don't try stupid things, don't touch the uri");
<|file_sep|>original/lib/validator... | 11cd0c25437f42bb808d3491a4ee7ba63054e592 | lib/validator/MultimediaFileValidatorSchema.class.php | lib/validator/MultimediaFileValidatorSchema.class.php | PHP |
<|file_sep|>original/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/ThrowingCallbackHandler.java
package org.apache.jackrabbit.oak.spi.security.authentication;
import java.io.IOException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
im... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | <|file_sep|>original/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/ThrowingCallbackHandler.java
package org.apache.jackrabbit.oak.spi.security.authentication;
import java.io.IOException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
im... | 9ce53a3d2b8d63cb300256f31e429a1572114a3f | oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/ThrowingCallbackHandler.java | oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/ThrowingCallbackHandler.java | Java |
<|file_sep|>original/ckeditor/static/ckeditor/ckeditor-init.js
$(function() {
initialiseCKEditor();
initialiseCKEditorInInlinedForms();
function initialiseCKEditorInInlinedForms() {
$(".add-row a").click(function () {
initialiseCKEditor();
return true;
});
}
});
... | $(function() {
initialiseCKEditor();
initialiseCKEditorInInlinedForms();
function initialiseCKEditorInInlinedForms() {
$(".add-row a, .grp-add-handler").click(function () {
initialiseCKEditor();
return true;
});
}
});
function initialiseCKEditor() {
$('texta... | <|file_sep|>original/ckeditor/static/ckeditor/ckeditor-init.js
$(function() {
initialiseCKEditor();
initialiseCKEditorInInlinedForms();
function initialiseCKEditorInInlinedForms() {
$(".add-row a").click(function () {
initialiseCKEditor();
return true;
});
}
});
... | a45468731aba996d7b8f253fd53001c114fac33e | ckeditor/static/ckeditor/ckeditor-init.js | ckeditor/static/ckeditor/ckeditor-init.js | JavaScript |
<|file_sep|>original/ci/run-travis.sh
set -ex
if [ "$TRAVIS_OS_NAME" = "linux"]; then
OS=unknown-linux-gnu
else
OS=apple-darwin
fi
export HOST=$ARCH-$OS
if [ "$TARGET" = "" ]; then
# Download and install the relevant target locally, then run tests
curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_... | set -ex
if [ "$TRAVIS_OS_NAME" = "linux"]; then
OS=unknown-linux-gnu
else
OS=apple-darwin
fi
export HOST=$ARCH-$OS
# clang has better error messages and implements alignof more broadly
export CC=clang
if [ "$TARGET" = "" ]; then
# Download and install the relevant target locally, then run tests
curl -sO htt... | <|file_sep|>original/ci/run-travis.sh
set -ex
if [ "$TRAVIS_OS_NAME" = "linux"]; then
OS=unknown-linux-gnu
else
OS=apple-darwin
fi
export HOST=$ARCH-$OS
if [ "$TARGET" = "" ]; then
# Download and install the relevant target locally, then run tests
curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_... | 3f07aebd1dcb3267ce9f14256a19569fa556ba06 | ci/run-travis.sh | ci/run-travis.sh | Shell |
<|file_sep|>original/packages/ember-views/lib/core.js
/**
@module ember
@submodule ember-views
*/
var jQuery = (this && this.jQuery) || (Ember.imports && Ember.imports.jQuery);
if (!jQuery && typeof require === 'function') {
jQuery = require('jquery');
}
Ember.assert("Ember Views require jQuery 1.7, 1.8, 1.9, 1.10,... | /**
@module ember
@submodule ember-views
*/
var jQuery = (this && this.jQuery) || (Ember.imports && Ember.imports.jQuery);
if (!jQuery && typeof require === 'function') {
jQuery = require('jquery');
}
Ember.assert("Ember Views require jQuery between 1.7 and 2.1", jQuery && (jQuery().jquery.match(/^((1\.(7|8|9|10|11... | <|file_sep|>original/packages/ember-views/lib/core.js
/**
@module ember
@submodule ember-views
*/
var jQuery = (this && this.jQuery) || (Ember.imports && Ember.imports.jQuery);
if (!jQuery && typeof require === 'function') {
jQuery = require('jquery');
}
Ember.assert("Ember Views require jQuery 1.7, 1.8, 1.9, 1.10,... | c8bb7fb115d9a3fe571919941c133927b393d70b | packages/ember-views/lib/core.js | packages/ember-views/lib/core.js | JavaScript |
<|file_sep|>template/provision/playbook.yml.erb.diff
original:
sudo: yes
updated:
become: yes
<|file_sep|>template/provision/playbook.yml.erb.diff
original:
updated:
- yarn
- nodejs
<|file_sep|>template/provision/playbook.yml.erb.diff
original:
- apache
- passenger
updated:
- puma... | - hosts: <%= @env %>
become: yes
vars_files:
- ./vars/<%= @env %>.yml
roles:
- common
- yarn
- nodejs
- ruby-common
- rails
- puma
- nginx
- letsencrypt
- nginx
- postgresql
- monit
- logrotate
- collectd
- delayed... | <|file_sep|>template/provision/playbook.yml.erb.diff
original:
sudo: yes
updated:
become: yes
<|file_sep|>template/provision/playbook.yml.erb.diff
original:
updated:
- yarn
- nodejs
<|file_sep|>template/provision/playbook.yml.erb.diff
original:
- apache
- passenger
updated:
- puma... | 4ab0c4b8802b91a8bce6f7767c4dc50a03f2ec1f | template/provision/playbook.yml.erb | template/provision/playbook.yml.erb | HTML+ERB |
<|file_sep|>original/package.json
{
"name": "eventing-bus",
"version": "1.1.0",
"description": "Simple event bus",
"main": "index.js",
"scripts": {
"test": "mocha --require babel-register test/**/*.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arkency/event-bus.git"
},... | {
"name": "eventing-bus",
"version": "1.1.0",
"description": "Simple event bus",
"main": "index.js",
"scripts": {
"test": "mocha --require babel-register $(find ./test -type f -name '*.js')"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arkency/event-bus.git"
},
"keyword... | <|file_sep|>original/package.json
{
"name": "eventing-bus",
"version": "1.1.0",
"description": "Simple event bus",
"main": "index.js",
"scripts": {
"test": "mocha --require babel-register test/**/*.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arkency/event-bus.git"
},... | 612f2a1dfb1b28a7f4d6392b5f49f46ed90d9cb3 | package.json | package.json | JSON |
<|file_sep|>original/pyramid_authsanity/tests/test_util.py
<|file_sep|>current/pyramid_authsanity/tests/test_util.py
<|file_sep|>updated/pyramid_authsanity/tests/test_util.py | from pyramid_authsanity.util import add_vary_callback
class TestAddVaryCallback(object):
def _makeOne(self, *varies):
return add_vary_callback(varies)
def test_add_single_vary(self):
cb = self._makeOne('cookie')
response = DummyResponse()
cb(None, response)
assert len(... | <|file_sep|>original/pyramid_authsanity/tests/test_util.py
<|file_sep|>current/pyramid_authsanity/tests/test_util.py
<|file_sep|>updated/pyramid_authsanity/tests/test_util.py
from pyramid_authsanity.util import add_vary_callback
class TestAddVaryCallback(object):
def _makeOne(self, *varies):
return add_v... | 7784e15410e9b3aa0b39d8732fc05aa9cc0d2acf | pyramid_authsanity/tests/test_util.py | pyramid_authsanity/tests/test_util.py | Python |
<|file_sep|>original/pkgs/servers/http/apache-modules/mod_auth_mellon/default.nix
rev = "v${version}";
sha256 = "1p6v6vgrfvgvc5y2ygqyyxi0klpm3nxaw3fg35zmpmw663w8skqn";
};
patches = [
./fixdeps.patch
];
buildInputs = [ apacheHttpd autoconf autoreconfHook automake curl glib lasso libtool libxml2 lib... | rev = "v${version}";
sha256 = "1p6v6vgrfvgvc5y2ygqyyxi0klpm3nxaw3fg35zmpmw663w8skqn";
};
patches = [
./fixdeps.patch
];
buildInputs = [ apacheHttpd autoconf autoreconfHook automake curl glib lasso libtool libxml2 libxslt openssl pkgconfig xmlsec ];
configureFlags = ["--with-apxs2=${apacheHttpd.... | <|file_sep|>original/pkgs/servers/http/apache-modules/mod_auth_mellon/default.nix
rev = "v${version}";
sha256 = "1p6v6vgrfvgvc5y2ygqyyxi0klpm3nxaw3fg35zmpmw663w8skqn";
};
patches = [
./fixdeps.patch
];
buildInputs = [ apacheHttpd autoconf autoreconfHook automake curl glib lasso libtool libxml2 lib... | 2e6b5c41afc9e217d893683e4b84e21a03142706 | pkgs/servers/http/apache-modules/mod_auth_mellon/default.nix | pkgs/servers/http/apache-modules/mod_auth_mellon/default.nix | Nix |
<|file_sep|>original/package.json
"url": "https://github.com/Idrinth/automatic-formatting.git"
},
"author": {
"name": "Björn Büttner",
"email": "webmaster@idrinth.de",
"url": "https://github.com/Idrinth"
},
"contributors": [],
"devDependencies": {
"chai": "4.1.*",
"mocha": "^3.3.0"
}... | "url": "https://github.com/Idrinth/automatic-formatting.git"
},
"author": {
"name": "Björn Büttner",
"email": "webmaster@idrinth.de",
"url": "https://github.com/Idrinth"
},
"contributors": [],
"devDependencies": {
"chai": "4.1.*",
"mocha": "^5.0.0"
},
"dependencies": {
"body-pa... | <|file_sep|>original/package.json
"url": "https://github.com/Idrinth/automatic-formatting.git"
},
"author": {
"name": "Björn Büttner",
"email": "webmaster@idrinth.de",
"url": "https://github.com/Idrinth"
},
"contributors": [],
"devDependencies": {
"chai": "4.1.*",
"mocha": "^3.3.0"
}... | 073225b598b8e7b602cb148df18c155fa302e3a6 | package.json | package.json | JSON |
<|file_sep|>setup.py.diff
original:
updated:
"""
The HAL client that does almost nothing for you.
Cetacean is tightly coupled to Requests, but doesn't actually call it. You set
up your own Requests client and use it to make requests. You feed Cetacean
Requests response objects and it helps you figure out if they're H... |
Cetacean is tightly coupled to Requests, but doesn't actually call it. You set
up your own Requests client and use it to make requests. You feed Cetacean
Requests response objects and it helps you figure out if they're HAL documents
and pull useful data out of them if they are.
"""
from setuptools import setup
setup... | <|file_sep|>setup.py.diff
original:
updated:
"""
The HAL client that does almost nothing for you.
Cetacean is tightly coupled to Requests, but doesn't actually call it. You set
up your own Requests client and use it to make requests. You feed Cetacean
Requests response objects and it helps you figure out if they're H... | 89abf161e670fda99497ecc60aac0df239af5a01 | setup.py | setup.py | Python |
<|file_sep|>original/requirements_0.9.1.txt
<|file_sep|>current/requirements_0.9.1.txt
<|file_sep|>updated/requirements_0.9.1.txt | numpy==1.8.1
pyparsing==1.5.7
pysam==0.8.0
cyvcf==0.1.9.2
PyYAML==3.11
pybedtools==0.6.6
jinja2==2.7.3
python-graph-core==1.8.2
python-graph-dot==1.8.2
bottle==0.12.7
ipython-cluster-helper==0.3.0
bx-python==0.7.1
pandas==0.14.0
openpyxl==1.8.6
scipy==0.14.0
Unidecode==0.04.16
gemini==0.9.1 | <|file_sep|>original/requirements_0.9.1.txt
<|file_sep|>current/requirements_0.9.1.txt
<|file_sep|>updated/requirements_0.9.1.txt
numpy==1.8.1
pyparsing==1.5.7
pysam==0.8.0
cyvcf==0.1.9.2
PyYAML==3.11
pybedtools==0.6.6
jinja2==2.7.3
python-graph-core==1.8.2
python-graph-dot==1.8.2
bottle==0.12.7
ipython-cluster-helpe... | 46815b58c46b46b47a7cceb7efc6d984d337d6dc | requirements_0.9.1.txt | requirements_0.9.1.txt | Text |
<|file_sep|>original/get_modded_mars.sh
SYSCALL_DIR=mars/mips/instructions/syscalls
TOUCHED_FILE=__asdf.txt # double underscore for extra security
MARS_DIR=mars-sockets
JAR_NAME=Mars4_5.jar
PATCH_NAME=mars-sockets.patch
touch $TOUCHED_FILE
rm -rf $MARS_DIR
mkdir -p $MARS_DIR
cd $MARS_DIR
wget http://courses.missouri... | mkdir -p $MARS_DIR
cd $MARS_DIR
wget http://courses.missouristate.edu/KenVollmar/MARS/MARS_4_5_Aug2014/Mars4_5.jar
jar xf $JAR_NAME
rm -f $JAR_NAME
patch -p1 < ../$PATCH_NAME
cd ..
for java_file in $(find $MARS_DIR/$SYSCALL_DIR -type f -newer $TOUCHED_FILE); do
javac -cp $MARS_DIR $java_file
done
rm -f $TOUCHED_F... | <|file_sep|>original/get_modded_mars.sh
SYSCALL_DIR=mars/mips/instructions/syscalls
TOUCHED_FILE=__asdf.txt # double underscore for extra security
MARS_DIR=mars-sockets
JAR_NAME=Mars4_5.jar
PATCH_NAME=mars-sockets.patch
touch $TOUCHED_FILE
rm -rf $MARS_DIR
mkdir -p $MARS_DIR
cd $MARS_DIR
wget http://courses.missouri... | e16a435fb81df35fb3f0ea2f0efef6d3b9c6b32f | get_modded_mars.sh | get_modded_mars.sh | Shell |
<|file_sep|>original/.github/workflows/continuous-integration.yml
name: Continuous Integration
on: [push, pull_request]
jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
# TODO Add 8.1 version as well
php-versions: ['5.5'... | name: Continuous Integration
on: [push, pull_request]
jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php-versions }} Test o... | <|file_sep|>original/.github/workflows/continuous-integration.yml
name: Continuous Integration
on: [push, pull_request]
jobs:
quality:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
# TODO Add 8.1 version as well
php-versions: ['5.5'... | ef98415df338ceb7748bcbbd64339ceb56179f76 | .github/workflows/continuous-integration.yml | .github/workflows/continuous-integration.yml | YAML |
<|file_sep|>original/lib/jshint-linter.js
module.exports = require('./jslint-linter');
module.exports.create = function(options) {
if (!options) { throw new TypeError('options is required (at least an empty object)'); }
return Object.create(this, {
options: { value: options },
linter: { value: { check: requ... | module.exports = require('./jslint-linter');
module.exports.create = function (options) {
if (!options) { throw new TypeError('options is required (at least an empty object)'); }
return Object.create(this, {
options: { value: options },
linter: { value: { check: require('../vendor/jshint').JSHINT } }
});
... | <|file_sep|>original/lib/jshint-linter.js
module.exports = require('./jslint-linter');
module.exports.create = function(options) {
if (!options) { throw new TypeError('options is required (at least an empty object)'); }
return Object.create(this, {
options: { value: options },
linter: { value: { check: requ... | 0a0e323855c5ac2ae5a9fe51d143c76514ae0156 | lib/jshint-linter.js | lib/jshint-linter.js | JavaScript |
<|file_sep|>original/pubspec.yaml
description: Framework for modern web applications
homepage: 'https://github.com/dart-lang/angular2'
environment:
sdk: '>=1.10.0 <2.0.0'
dependencies:
analyzer: '>=0.24.4 <0.28.0'
barback: ^0.15.2+2
build: ^0.3.0
dart_style: '>=0.1.8 <0.3.0'
glob: ^1.0.0
html: ^0.12.0
i... | description: Framework for modern web applications
homepage: 'https://github.com/dart-lang/angular2'
environment:
sdk: '>=1.10.0 <2.0.0'
dependencies:
analyzer: '>=0.24.4 <0.28.0'
barback: ^0.15.2+2
build: ^0.3.0
dart_style: '>=0.1.8 <0.3.0'
glob: ^1.0.0
html: '>=0.12.0 <0.14.0'
intl: ^0.13.0
logging:... | <|file_sep|>original/pubspec.yaml
description: Framework for modern web applications
homepage: 'https://github.com/dart-lang/angular2'
environment:
sdk: '>=1.10.0 <2.0.0'
dependencies:
analyzer: '>=0.24.4 <0.28.0'
barback: ^0.15.2+2
build: ^0.3.0
dart_style: '>=0.1.8 <0.3.0'
glob: ^1.0.0
html: ^0.12.0
i... | 0e529944cbb98f4435755a4bc6a4773f04a5afa2 | pubspec.yaml | pubspec.yaml | YAML |
<|file_sep|>original/.travis.yml
- tox
cache:
directories:
- ~/.cache/pip
- ~/.nvm/nvm.sh
install:
- pip install tox-travis
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install --lts
- nvm use --lts
- npm install
- bower ins... | cache:
directories:
- ~/.cache/pip
- ~/.nvm/nvm.sh
install:
- pip install tox-travis
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install --lts
- nvm use --lts
- npm install -g bower
- npm install
- bower install
script:
-... | <|file_sep|>original/.travis.yml
- tox
cache:
directories:
- ~/.cache/pip
- ~/.nvm/nvm.sh
install:
- pip install tox-travis
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install --lts
- nvm use --lts
- npm install
- bower ins... | 092318afa8578d2ed17b49f1c9e3be9c8aee561f | .travis.yml | .travis.yml | YAML |
<|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
// eslint-disable-line
updated:
<|file_... | /* eslint-disable */
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: __dirname + '/src/main/resources/static/js/main.js',
devtool: 'eval-source-map',
output: {
filename: 'main.js',
... | <|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
//noinspection Eslint
updated:
<|file_sep|>webpack.config.js.diff
original:
// eslint-disable-line
updated:
<|file_... | 60c10430e004258024d576c9102b557dc703f5cf | webpack.config.js | webpack.config.js | JavaScript |
<|file_sep|>original/requirements.txt
molecule==2.10.0
pytest==3.4.1
python-vagrant==0.5.15
testinfra==1.11.1
tox==2.9.1
<|file_sep|>current/requirements.txt
molecule==2.10.0
pytest==3.4.1
python-vagrant==0.5.15
testinfra==1.11.1
tox==2.9.1
<|file_sep|>updated/requirements.txt | molecule==2.10.0
pytest==3.4.2
python-vagrant==0.5.15
testinfra==1.11.1
tox==2.9.1 | <|file_sep|>original/requirements.txt
molecule==2.10.0
pytest==3.4.1
python-vagrant==0.5.15
testinfra==1.11.1
tox==2.9.1
<|file_sep|>current/requirements.txt
molecule==2.10.0
pytest==3.4.1
python-vagrant==0.5.15
testinfra==1.11.1
tox==2.9.1
<|file_sep|>updated/requirements.txt
molecule==2.10.0
pytest==3.4.2
python-vagr... | 32bf82895b134108c0020fc770c0a6ca5f0f138a | requirements.txt | requirements.txt | Text |
<|file_sep|>original/.github/workflows/merge-dependabot-upgrades.yml
# only by dependabot, once the other CI workflows pass
name: Auto-merge Dependabot PRs
on:
workflow_run:
types:
- completed
workflows:
- "Continuous Integration"
jobs:
merge-me:
name: Auto-merge Dependabot PRs
runs-on... | # only by dependabot, once the other CI workflows pass
name: Auto-merge Dependabot PRs
on:
workflow_run:
types:
- completed
workflows:
- "Continuous Integration"
jobs:
merge-me:
name: Auto-merge Dependabot PRs
runs-on: ubuntu-latest
steps:
- name: Auto-Merge
if: ${{ g... | <|file_sep|>original/.github/workflows/merge-dependabot-upgrades.yml
# only by dependabot, once the other CI workflows pass
name: Auto-merge Dependabot PRs
on:
workflow_run:
types:
- completed
workflows:
- "Continuous Integration"
jobs:
merge-me:
name: Auto-merge Dependabot PRs
runs-on... | 30c58a551b8517681bc42df8b541cde348d5eff0 | .github/workflows/merge-dependabot-upgrades.yml | .github/workflows/merge-dependabot-upgrades.yml | YAML |
<|file_sep|>Crunch.hs.diff
original:
import Control.Monad
updated:
<|file_sep|>original/Crunch.hs
import Control.Monad
crunch :: String -> [(String, Int)]
crunch s = filterCommons . filterOneOfs . frequencyMap $ map toLower s
where filterOneOfs = filter ((>2) . snd)
frequencyMap = map (\w -> (head w, le... | import Data.Function
import Data.Char
import System.Environment
crunch :: String -> [(String, Int)]
crunch s = filterCommons . filterOneOfs . frequencyMap $ map toLower s
where filterOneOfs = filter ((>2) . snd)
frequencyMap = map (\w -> (head w, length w)) . group . sort . words
filterCommons ... | <|file_sep|>Crunch.hs.diff
original:
import Control.Monad
updated:
<|file_sep|>original/Crunch.hs
import Control.Monad
crunch :: String -> [(String, Int)]
crunch s = filterCommons . filterOneOfs . frequencyMap $ map toLower s
where filterOneOfs = filter ((>2) . snd)
frequencyMap = map (\w -> (head w, le... | 61add92c7f76ca94ce3d2c7dfc75ca4149241d7f | Crunch.hs | Crunch.hs | Haskell |
<|file_sep|>original/systems.json
"main"
]
},
{
"name": "splatjs:applyVelocity",
"scenes": [
"main"
]
},
{
"name": "splatjs:boxCollider",
"scenes": [
"main"
]
}
],
"renderer": [
{
"name": "splatjs:clearScreen",
"scenes": [
"main"
<|file_sep|>current/systems.json
... | "main"
]
},
{
"name": "splatjs:applyVelocity",
"scenes": [
"main"
]
},
{
"name": "splatjs:followParent",
"scenes": [
"main"
]
},
{
"name": "splatjs:boxCollider",
"scenes": [
"main"
]
} | <|file_sep|>original/systems.json
"main"
]
},
{
"name": "splatjs:applyVelocity",
"scenes": [
"main"
]
},
{
"name": "splatjs:boxCollider",
"scenes": [
"main"
]
}
],
"renderer": [
{
"name": "splatjs:clearScreen",
"scenes": [
"main"
<|file_sep|>current/systems.json
... | 50f96ef8f37d77f3b781c5e64b8fa2f6d7046bd8 | systems.json | systems.json | JSON |
<|file_sep|>table.cs.diff
original:
updated:
using System.Collections.Generic;
using System.Text;
<|file_sep|>original/table.cs
using System;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Wi... | namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public string Draw() {
List<string> rowTexts = new List<string>();
... | <|file_sep|>table.cs.diff
original:
updated:
using System.Collections.Generic;
using System.Text;
<|file_sep|>original/table.cs
using System;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Wi... | b1816e15bd272453fa3ea489c06c69c396ab9f5d | table.cs | table.cs | C# |
<|file_sep|>original/SlackUI/Handlers/BrowserRequestHandler.cs
return false;
}
public ResourceHandler GetResourceHandler(IWebBrowser browser, IRequest request) {
// Let the Chromium web browser handle the event
return null;
}
public bool OnBeforeBrow... | return false;
}
public ResourceHandler GetResourceHandler(IWebBrowser browser, IRequest request) {
// Let the Chromium web browser handle the event
return null;
}
public bool OnBeforeBrowse(IWebBrowser browser, IRequest request, bool isRedirect) {
... | <|file_sep|>original/SlackUI/Handlers/BrowserRequestHandler.cs
return false;
}
public ResourceHandler GetResourceHandler(IWebBrowser browser, IRequest request) {
// Let the Chromium web browser handle the event
return null;
}
public bool OnBeforeBrow... | 739f80d2569ecc0ca213858af78b68590e79de7a | SlackUI/Handlers/BrowserRequestHandler.cs | SlackUI/Handlers/BrowserRequestHandler.cs | C# |
<|file_sep|>Treasure.podspec.diff
original:
s.version = '0.1.6'
updated:
s.version = '0.1.7'
<|file_sep|>original/Treasure.podspec
s.name = 'Treasure'
s.version = '0.1.6'
s.summary = 'A small set of tools for deserializing JSON API objects.'
s.description ... | s.name = 'Treasure'
s.version = '0.1.7'
s.summary = 'A small set of tools for deserializing JSON API objects.'
s.description = <<-DESC
Treasure is a small set of tools on top of Lyft's Mapper library to convert objects according to the JSON API specification.
... | <|file_sep|>Treasure.podspec.diff
original:
s.version = '0.1.6'
updated:
s.version = '0.1.7'
<|file_sep|>original/Treasure.podspec
s.name = 'Treasure'
s.version = '0.1.6'
s.summary = 'A small set of tools for deserializing JSON API objects.'
s.description ... | ffb4c17da75897d0c524b5e8c4fbbac1fcf91c10 | Treasure.podspec | Treasure.podspec | Ruby |
<|file_sep|>original/index.js
exports.writeFile = function (opts) {
opts = opts || {};
opts.filePath = opts.filePath || 'jshint.xml';
opts.format = opts.format || 'checkstyle';
exports.xmlEmitter = loadFormatter(opts.format);
return function () {
if (!exports.out.length) {
reset... | };
exports.writeFile = function (opts) {
opts = opts || {};
opts.filePath = opts.filePath || 'jshint.xml';
opts.format = opts.format || 'checkstyle';
exports.xmlEmitter = loadFormatter(opts.format);
return function () {
if (!exports.out.length) {
reset();
return;
... | <|file_sep|>original/index.js
exports.writeFile = function (opts) {
opts = opts || {};
opts.filePath = opts.filePath || 'jshint.xml';
opts.format = opts.format || 'checkstyle';
exports.xmlEmitter = loadFormatter(opts.format);
return function () {
if (!exports.out.length) {
reset... | 32251d41d59301cbe95c3508f1836bae33d8c867 | index.js | index.js | JavaScript |
<|file_sep|>src/base/file_unit.h.diff
original:
std::string filename;
T *file;
updated:
<|file_sep|>original/src/base/file_unit.h
#ifndef FILE_UNIT_H_
#define FILE_UNIT_H_
#include <string>
template <typename T>
class FileUnit
{
public:
std::string filename;
T *file;
FileUnit(std::string& filen... | #ifndef FILE_UNIT_H_
#define FILE_UNIT_H_
#include <string>
template <typename T>
class FileUnit
{
public:
FileUnit(std::string& filename);
virtual ~FileUnit();
private:
std::string filename;
T *file;
};
#endif | <|file_sep|>src/base/file_unit.h.diff
original:
std::string filename;
T *file;
updated:
<|file_sep|>original/src/base/file_unit.h
#ifndef FILE_UNIT_H_
#define FILE_UNIT_H_
#include <string>
template <typename T>
class FileUnit
{
public:
std::string filename;
T *file;
FileUnit(std::string& filen... | d8af9b16eff306c9720964e4fb89be81a7a31eec | src/base/file_unit.h | src/base/file_unit.h | C |
<|file_sep|>original/osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/SliderSelectionBlueprint.cs
InternalChildren = new Drawable[]
{
BodyPiece = new SliderBodyPiece(),
HeadBlueprint = CreateCircleSelectionBlueprint(slider, SliderPosition.Start),
Tail... | BodyPiece = new SliderBodyPiece(),
HeadBlueprint = CreateCircleSelectionBlueprint(slider, SliderPosition.Start),
TailBlueprint = CreateCircleSelectionBlueprint(slider, SliderPosition.End),
new PathControlPointVisualiser(sliderObject),
};
... | <|file_sep|>original/osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/SliderSelectionBlueprint.cs
InternalChildren = new Drawable[]
{
BodyPiece = new SliderBodyPiece(),
HeadBlueprint = CreateCircleSelectionBlueprint(slider, SliderPosition.Start),
Tail... | da6ee05dd689646d5c4831d9c1d7cc149754d184 | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/SliderSelectionBlueprint.cs | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/SliderSelectionBlueprint.cs | C# |
<|file_sep|>spec/download_helper.rb.diff
original:
sleep 1
updated:
<|file_sep|>original/spec/download_helper.rb
# Based on https://stackoverflow.com/a/29544674
module DownloadHelpers
def downloads_dir
File.join(__dir__, 'downloads')
end
def wait_for_download
sleep 1
Timeout.timeout(Capybara.def... | # Based on https://stackoverflow.com/a/29544674
module DownloadHelpers
def downloads_dir
File.join(__dir__, 'downloads')
end
def wait_for_download
Timeout.timeout(Capybara.default_max_wait_time) do
loop do
sleep 1
break if downloaded?
end
end
end
def downloaded_file
... | <|file_sep|>spec/download_helper.rb.diff
original:
sleep 1
updated:
<|file_sep|>original/spec/download_helper.rb
# Based on https://stackoverflow.com/a/29544674
module DownloadHelpers
def downloads_dir
File.join(__dir__, 'downloads')
end
def wait_for_download
sleep 1
Timeout.timeout(Capybara.def... | d2709bda827bbeb99f1e5d217890466e7c14ce3f | spec/download_helper.rb | spec/download_helper.rb | Ruby |
<|file_sep|>original/public/index.html
<html>
<head>
<title>ws-paint</title>
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<h1>ws-paint</h1>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></iframe>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></i... | <html>
<head>
<title>ws-paint</title>
</head>
<body>
<h1>ws-paint</h1>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></iframe>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></iframe>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></iframe>
<if... | <|file_sep|>original/public/index.html
<html>
<head>
<title>ws-paint</title>
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<h1>ws-paint</h1>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></iframe>
<iframe src="canvas.html" frameborder="0" width="250" height="250"></i... | f6f643d47b4b01798321e639e4ba244f96d8f03d | public/index.html | public/index.html | HTML |
<|file_sep|>original/ABCalendarPicker.podspec
Pod::Spec.new do |s|
s.name = "ABCalendarPicker"
s.version = "0.1.0"
s.summary = "Fully configurable iOS calendar UI component with multiple layouts and smooth animations."
s.homepage = "https://github.com/a2/ABCalendarPicker"
s.license ... | Pod::Spec.new do |s|
s.name = "ABCalendarPicker"
s.version = "0.1.0"
s.summary = "Fully configurable iOS calendar UI component with multiple layouts and smooth animations."
s.homepage = "https://github.com/a2/ABCalendarPicker"
s.license = 'MIT'
s.author = { "Anton Bukov" => ... | <|file_sep|>original/ABCalendarPicker.podspec
Pod::Spec.new do |s|
s.name = "ABCalendarPicker"
s.version = "0.1.0"
s.summary = "Fully configurable iOS calendar UI component with multiple layouts and smooth animations."
s.homepage = "https://github.com/a2/ABCalendarPicker"
s.license ... | 569784c2c73554cac8566f8afa7b9c32d68746f5 | ABCalendarPicker.podspec | ABCalendarPicker.podspec | Ruby |
<|file_sep|>original/content/homepage/dss.md
---
layout: blocks/banner
title: Digital Service Standard
boxHeading: Digital Service Standard
linkText: Read the 13 criteria
linkUrl: /digital-service-standard/criteria/
level: 2
---
The [Digital Service Standard](/digital-service-standard/) ensures digital teams build gov... | ---
layout: blocks/banner
title: Digital Service Standard
boxHeading: Digital Service Standard
linkText: Read the 13 criteria
linkUrl: /digital-service-standard/#what
level: 2
---
The [Digital Service Standard](/digital-service-standard/) ensures digital teams build government services that are simple, clear and fast.... | <|file_sep|>original/content/homepage/dss.md
---
layout: blocks/banner
title: Digital Service Standard
boxHeading: Digital Service Standard
linkText: Read the 13 criteria
linkUrl: /digital-service-standard/criteria/
level: 2
---
The [Digital Service Standard](/digital-service-standard/) ensures digital teams build gov... | 49071e6c3402fca607d0377375a8273448708c59 | content/homepage/dss.md | content/homepage/dss.md | Markdown |
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
script: "bundle exec rake"
rvm:
- 2.2.6
- 2.3.3
- 2.4.1
<|file_sep|>current/.travis.yml
language: ruby
sudo: false
script: "bundle exec rake"
rvm:
- 2.2.6
- 2.3.3
- 2.4.1
<|file_sep|>updated/.travis.yml | language: ruby
sudo: false
script: "bundle exec rake"
rvm:
- 2.2.7
- 2.3.4
- 2.4.1 | <|file_sep|>original/.travis.yml
language: ruby
sudo: false
script: "bundle exec rake"
rvm:
- 2.2.6
- 2.3.3
- 2.4.1
<|file_sep|>current/.travis.yml
language: ruby
sudo: false
script: "bundle exec rake"
rvm:
- 2.2.6
- 2.3.3
- 2.4.1
<|file_sep|>updated/.travis.yml
language: ruby
sudo: false
script: "bundle ex... | 89ef5cd6a44ccfae8b1f4f572ba74f64605c065a | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/rocketchat-videobridge/client/views/videoFlexTab.js.diff
original:
var domain = "meet.jit.si"; // Need to get from config
var room = "a124124124124124125125125"; // Need to calc from instance id and room id
updated:
var domain = "meet.jit.si"; // Need to get from settings
var room = "a1... | var domain = "meet.jit.si"; // Need to get from settings
var room = "a124124124124124125125126"; // Need to calc from instance id and room id
var width = 500;
var height = 500;
var configOverwrite = {};
var interfaceConfigOverwrite = {};
var api = new JitsiMeetExternalAPI(domain, room, width, hei... | <|file_sep|>packages/rocketchat-videobridge/client/views/videoFlexTab.js.diff
original:
var domain = "meet.jit.si"; // Need to get from config
var room = "a124124124124124125125125"; // Need to calc from instance id and room id
updated:
var domain = "meet.jit.si"; // Need to get from settings
var room = "a1... | 059853dec20c682f6b2bffb47a5a1c850d01dcb2 | packages/rocketchat-videobridge/client/views/videoFlexTab.js | packages/rocketchat-videobridge/client/views/videoFlexTab.js | JavaScript |
<|file_sep|>original/lib/logstash-logger/device.rb
autoload :Connectable, 'logstash-logger/device/connectable'
autoload :Socket, 'logstash-logger/device/socket'
autoload :UDP, 'logstash-logger/device/udp'
autoload :TCP, 'logstash-logger/device/tcp'
autoload :Unix, 'logstash-logger/device/unix'
a... | autoload :Connectable, 'logstash-logger/device/connectable'
autoload :Socket, 'logstash-logger/device/socket'
autoload :UDP, 'logstash-logger/device/udp'
autoload :TCP, 'logstash-logger/device/tcp'
autoload :Unix, 'logstash-logger/device/unix'
autoload :Redis, 'logstash-logger/device/redis'
... | <|file_sep|>original/lib/logstash-logger/device.rb
autoload :Connectable, 'logstash-logger/device/connectable'
autoload :Socket, 'logstash-logger/device/socket'
autoload :UDP, 'logstash-logger/device/udp'
autoload :TCP, 'logstash-logger/device/tcp'
autoload :Unix, 'logstash-logger/device/unix'
a... | ba676e9e9b844ec03e0eb325f2a60dda90b68b2e | lib/logstash-logger/device.rb | lib/logstash-logger/device.rb | Ruby |
<|file_sep|>original/tests/regression/10-synch/05-two_unique_two_lock.c
<|file_sep|>current/tests/regression/10-synch/05-two_unique_two_lock.c
<|file_sep|>updated/tests/regression/10-synch/05-two_unique_two_lock.c | // PARAM: --set ana.activated[+] thread
#include <pthread.h>
#include <stdio.h>
int myglobal;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *f1(void *arg) {
pthread_mutex_lock(&A);
myglobal=1; // RACE! (with just 4)
pthread_mutex_unlock(&A);
pthread_mutex_l... | <|file_sep|>original/tests/regression/10-synch/05-two_unique_two_lock.c
<|file_sep|>current/tests/regression/10-synch/05-two_unique_two_lock.c
<|file_sep|>updated/tests/regression/10-synch/05-two_unique_two_lock.c
// PARAM: --set ana.activated[+] thread
#include <pthread.h>
#include <stdio.h>
int myglobal;
pthread_m... | 30a6736adb3f0e9ff032e296770cf00ae4442ea3 | tests/regression/10-synch/05-two_unique_two_lock.c | tests/regression/10-synch/05-two_unique_two_lock.c | C |
<|file_sep|>original/ode/app/models/relationships/HasSubstructureRelationship.java
package models.relationships;
import play.libs.F.Promise;
import managers.relationships.HasSubstructureRelationshipManager;
import models.nodes.Feature;
import models.nodes.Rule;
import models.nodes.Substructure;
public class HasSubs... | package models.relationships;
import play.libs.F.Promise;
import managers.relationships.HasSubstructureRelationshipManager;
import models.nodes.Feature;
import models.nodes.Substructure;
public class HasSubstructureRelationship extends HasRelationship {
public Feature startNode;
public Substructure endNode;... | <|file_sep|>original/ode/app/models/relationships/HasSubstructureRelationship.java
package models.relationships;
import play.libs.F.Promise;
import managers.relationships.HasSubstructureRelationshipManager;
import models.nodes.Feature;
import models.nodes.Rule;
import models.nodes.Substructure;
public class HasSubs... | 6bcdbb43a8cd73ba80f770debcb227293222a3a0 | ode/app/models/relationships/HasSubstructureRelationship.java | ode/app/models/relationships/HasSubstructureRelationship.java | Java |
<|file_sep|>original/Eurofurence/Modules/Schedule/Interactor/ScheduleEventViewModel.swift
//
// ScheduleEventViewModel.swift
// Eurofurence
//
// Created by Thomas Sherwood on 13/06/2018.
// Copyright © 2018 Eurofurence. All rights reserved.
//
import Foundation
struct ScheduleEventViewModel: Equatable {
var... | //
// ScheduleEventViewModel.swift
// Eurofurence
//
// Created by Thomas Sherwood on 13/06/2018.
// Copyright © 2018 Eurofurence. All rights reserved.
//
import Foundation
protocol ScheduleEventViewModelProtocol {
var title: String { get }
var startTime: String { get }
var endTime: String { get }
... | <|file_sep|>original/Eurofurence/Modules/Schedule/Interactor/ScheduleEventViewModel.swift
//
// ScheduleEventViewModel.swift
// Eurofurence
//
// Created by Thomas Sherwood on 13/06/2018.
// Copyright © 2018 Eurofurence. All rights reserved.
//
import Foundation
struct ScheduleEventViewModel: Equatable {
var... | f9fc40c5e1a0b59ae0c8fd1bb2949ec828e5feed | Eurofurence/Modules/Schedule/Interactor/ScheduleEventViewModel.swift | Eurofurence/Modules/Schedule/Interactor/ScheduleEventViewModel.swift | Swift |
<|file_sep|>partials/loop.hbs.diff
original:
updated:
<section class="post-meta">
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{author}}
</section>
<|file_sep|>original/partials/loop.hbs
<span cla... | </span>
<div class="DairyList">
<header class="post-header">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<section class="post-meta">
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin... | <|file_sep|>partials/loop.hbs.diff
original:
updated:
<section class="post-meta">
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{author}}
</section>
<|file_sep|>original/partials/loop.hbs
<span cla... | 7c86d067a0b50689565b5b3eadbb9987acaa6086 | partials/loop.hbs | partials/loop.hbs | Handlebars |
<|file_sep|>original/packages/core/src/auth/login-optional.hook.ts
import { HookDecorator } from '../core';
import { Login } from './login.hook';
export function LoginOptional(
options: { redirect?: string, user: (id: number|string) => Promise<any> }): HookDecorator {
return Login(false, options);
}
<|file_sep|>... | import { HookDecorator } from '../core';
import { Login } from './login.hook';
export function LoginOptional(options: { user: (id: number|string) => Promise<any> }): HookDecorator {
return Login(false, options);
} | <|file_sep|>original/packages/core/src/auth/login-optional.hook.ts
import { HookDecorator } from '../core';
import { Login } from './login.hook';
export function LoginOptional(
options: { redirect?: string, user: (id: number|string) => Promise<any> }): HookDecorator {
return Login(false, options);
}
<|file_sep|>... | 42ba95e8bcf0ee802f432340b2a610479fef78b7 | packages/core/src/auth/login-optional.hook.ts | packages/core/src/auth/login-optional.hook.ts | TypeScript |
<|file_sep|>original/requirements_dev.txt
-r requirements.txt
bumpversion==0.5.3
wheel==0.34.2
django-environ==0.4.5
radon==4.1.0
djangorestframework==3.11.0
pytz==2019.3
Sphinx==3.0.0
<|file_sep|>current/requirements_dev.txt
-r requirements.txt
bumpversion==0.5.3
wheel==0.34.2
django-environ==0.4.5
radon==4.1.0
django... | -r requirements.txt
bumpversion==0.6.0
wheel==0.34.2
django-environ==0.4.5
radon==4.1.0
djangorestframework==3.11.0
pytz==2019.3
Sphinx==3.0.0 | <|file_sep|>original/requirements_dev.txt
-r requirements.txt
bumpversion==0.5.3
wheel==0.34.2
django-environ==0.4.5
radon==4.1.0
djangorestframework==3.11.0
pytz==2019.3
Sphinx==3.0.0
<|file_sep|>current/requirements_dev.txt
-r requirements.txt
bumpversion==0.5.3
wheel==0.34.2
django-environ==0.4.5
radon==4.1.0
django... | 4a0fd1a91e12dffb85b5c57de55bfc20dd05e39f | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/dist.ini
name = Meta-Grapher-Moose
author = Dave Rolsky <autarch@urth.org>
license = Artistic_2_0
copyright_holder = Dave Rolsky
[@DROLSKY]
dist = Meta-Grapher-Moose
-remove = Test::Synopsis
prereqs_skip = ClassA
prereqs_skip = ClassB
prereqs_skip = RoleA
prereqs_skip = RoleB
prereqs_skip = Ro... | name = Meta-Grapher-Moose
author = Dave Rolsky <autarch@urth.org>
license = Artistic_2_0
copyright_holder = Dave Rolsky
[@DROLSKY]
dist = Meta-Grapher-Moose
-remove = Test::Synopsis
prereqs_skip = ClassA
prereqs_skip = ClassB
prereqs_skip = RoleA
prereqs_skip = RoleB
prereqs_skip = RoleC
prereqs_skip = RoleE
prere... | <|file_sep|>original/dist.ini
name = Meta-Grapher-Moose
author = Dave Rolsky <autarch@urth.org>
license = Artistic_2_0
copyright_holder = Dave Rolsky
[@DROLSKY]
dist = Meta-Grapher-Moose
-remove = Test::Synopsis
prereqs_skip = ClassA
prereqs_skip = ClassB
prereqs_skip = RoleA
prereqs_skip = RoleB
prereqs_skip = Ro... | cc06880dc9350ec5cc4bfd2a404084ad52aac2ac | dist.ini | dist.ini | INI |
<|file_sep|>run/ci-build.sh.diff
original:
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
updated:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
<|file_sep|>run/ci-build.sh.diff
original:
docker run -e FIX_OR_ERROR="ERR" -v "$ROOT":/build streamplace/sp-dev:latest /build/run/lint.sh
updated:
d... | set -o nounset
set -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
docker run -e FIX_OR_ERROR="ERR" -v "$DIR":/build streamplace/sp-dev:latest /build/run/lint.sh
THIS_IS_CI="${THIS_IS_CI:-}"
# This means we're authorized to build some docker images
if [[ $THIS_IS_CI == "true" ]]; then
apt-g... | <|file_sep|>run/ci-build.sh.diff
original:
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
updated:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
<|file_sep|>run/ci-build.sh.diff
original:
docker run -e FIX_OR_ERROR="ERR" -v "$ROOT":/build streamplace/sp-dev:latest /build/run/lint.sh
updated:
d... | 3011b41db8eb0fd9234e9c08b393976c829ad365 | run/ci-build.sh | run/ci-build.sh | Shell |
<|file_sep|>original/.travis.yml
dist: trusty
env:
- VERSION=9.0-2.1
- VERSION=9.1-2.1
- VERSION=9.2-2.1
- VERSION=9.3-2.1
- VERSION=9.4-2.1
install:
- git clone -b additional-test-config https://github.com/appropriate/docker-library-official-images.git ~/official-images
before_script:
- env | sort
... |
dist: trusty
env:
- VERSION=9.0-2.1
- VERSION=9.1-2.1
- VERSION=9.2-2.1
- VERSION=9.3-2.1
- VERSION=9.4-2.1
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION"
- image="appropriate/postgis:$VERSION"
script:
- d... | <|file_sep|>original/.travis.yml
dist: trusty
env:
- VERSION=9.0-2.1
- VERSION=9.1-2.1
- VERSION=9.2-2.1
- VERSION=9.3-2.1
- VERSION=9.4-2.1
install:
- git clone -b additional-test-config https://github.com/appropriate/docker-library-official-images.git ~/official-images
before_script:
- env | sort
... | 0ae4da8324c259fdc2119152b44da86c6ad403f4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupModificationTests.java
*/
public class GroupModificationTests extends TestBase {
@Test
public void testGroupModification(){
app.getNavigationHelper().goToGroupPage();
if (! app.getGroupHelper().isThereAG... | */
public class GroupModificationTests extends TestBase {
@Test
public void testGroupModification(){
app.getNavigationHelper().goToGroupPage();
if (! app.getGroupHelper().isThereAGroup()) {
app.getGroupHelper().createGroup(new GroupData("Test1", null, null));
}
List<... | <|file_sep|>original/addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupModificationTests.java
*/
public class GroupModificationTests extends TestBase {
@Test
public void testGroupModification(){
app.getNavigationHelper().goToGroupPage();
if (! app.getGroupHelper().isThereAG... | 7217dab35b8dd635b89e3b61dc20a5f293e30070 | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupModificationTests.java | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/GroupModificationTests.java | Java |
<|file_sep|>original/config/boot.rb
ENV["RACK_ENV"] ||= "development"
require 'bundler'
Bundler.setup
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
Dir["./lib/**/*.rb"].each { |f| require f }
DataMapper::Logger.new($stdout, :debug) if ENV["RACK_ENV"] == "development"
DataMapper.setup(:default, ENV['DATABASE_URL... | ENV["RACK_ENV"] ||= "development"
require 'bundler'
Bundler.setup
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
Dir["./lib/**/*.rb"].each { |f| require f }
DataMapper::Logger.new($stdout, :debug) if ENV["RACK_ENV"] == "development"
DataMapper::Model.raise_on_save_failure = true
DataMapper.setup(:default, ENV['D... | <|file_sep|>original/config/boot.rb
ENV["RACK_ENV"] ||= "development"
require 'bundler'
Bundler.setup
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
Dir["./lib/**/*.rb"].each { |f| require f }
DataMapper::Logger.new($stdout, :debug) if ENV["RACK_ENV"] == "development"
DataMapper.setup(:default, ENV['DATABASE_URL... | 409e893e1aae69877c64db1ebeeb4ad8d464908c | config/boot.rb | config/boot.rb | Ruby |
<|file_sep|>original/docker-plugin/src/main/resources/com/nirima/jenkins/plugins/docker/DockerTemplate/help-remoteFsMapping.html
<div>
Enables the ability to browse workspaces of jobs being built using docker containers. <br />
Specify the location containing the workspace folder (e.g. /home/jenkins) on the Jen... | <div>
Enables the ability to browse workspaces of jobs being built using docker containers. <br />
Specify the location containing the workspace folder (e.g. /home/jenkins) on the Jenkins master where the job workspaces will be mapped from the images using volumes, network shares, etc. <br />
Changes to thi... | <|file_sep|>original/docker-plugin/src/main/resources/com/nirima/jenkins/plugins/docker/DockerTemplate/help-remoteFsMapping.html
<div>
Enables the ability to browse workspaces of jobs being built using docker containers. <br />
Specify the location containing the workspace folder (e.g. /home/jenkins) on the Jen... | 7f80fe061d43cdbc35e2d87bf41c2ed2776e5e12 | docker-plugin/src/main/resources/com/nirima/jenkins/plugins/docker/DockerTemplate/help-remoteFsMapping.html | docker-plugin/src/main/resources/com/nirima/jenkins/plugins/docker/DockerTemplate/help-remoteFsMapping.html | HTML |
<|file_sep|>original/404.html
---
layout: default
---
This website has just one page, please [go back to it]({{ site.baseurl }}/).
<|file_sep|>current/404.html
---
layout: default
---
This website has just one page, please [go back to it]({{ site.baseurl }}/).
<|file_sep|>updated/404.html | ---
layout: default
---
This website has just one page, please (<a href="{{ site.baseurl }}/">go back to it</a>. | <|file_sep|>original/404.html
---
layout: default
---
This website has just one page, please [go back to it]({{ site.baseurl }}/).
<|file_sep|>current/404.html
---
layout: default
---
This website has just one page, please [go back to it]({{ site.baseurl }}/).
<|file_sep|>updated/404.html
---
layout: default
---
Thi... | 3784690d95839dceb416b8ca98ffbe982a8c6490 | 404.html | 404.html | HTML |
<|file_sep|>original/kibitzr/fetcher/shell.py
logger = logging.getLogger(__name__)
def fetch_bash(conf, **kwargs):
code = conf['script']
logger.info("Executing bash fetcher")
logger.debug(code)
with tempfile.NamedTemporaryFile() as fp:
logger.debug("Saving code to %r", fp.name)
fp.wri... | def fetch_bash(conf, **kwargs):
code = conf['script']
logger.info("Executing bash fetcher")
logger.debug(code)
with tempfile.NamedTemporaryFile() as fp:
logger.debug("Saving code to %r", fp.name)
fp.write(code.encode('utf-8'))
fp.flush()
logger.debug("Launching script %r"... | <|file_sep|>original/kibitzr/fetcher/shell.py
logger = logging.getLogger(__name__)
def fetch_bash(conf, **kwargs):
code = conf['script']
logger.info("Executing bash fetcher")
logger.debug(code)
with tempfile.NamedTemporaryFile() as fp:
logger.debug("Saving code to %r", fp.name)
fp.wri... | 08472dce69bb861f72684037c912625cf70546c1 | kibitzr/fetcher/shell.py | kibitzr/fetcher/shell.py | Python |
<|file_sep|>original/document/src/main/java/com/yahoo/vespaxmlparser/package-info.java
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// TODO: Remove this package on Vespa 7
@ExportPackage
package com.yahoo.vespaxmlparser;
import com.yahoo.osgi.an... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// TODO: Remove this package on Vespa 8
@ExportPackage
package com.yahoo.vespaxmlparser;
import com.yahoo.osgi.annotation.ExportPackage; | <|file_sep|>original/document/src/main/java/com/yahoo/vespaxmlparser/package-info.java
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// TODO: Remove this package on Vespa 7
@ExportPackage
package com.yahoo.vespaxmlparser;
import com.yahoo.osgi.an... | 07ea1bb4cdbf7037b8465b1dec77174cc0e02a59 | document/src/main/java/com/yahoo/vespaxmlparser/package-info.java | document/src/main/java/com/yahoo/vespaxmlparser/package-info.java | Java |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.1
- 2.2.2
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.1
- 2.2.2
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 2.2.1
- 2.2.2
env:
global:
secure: HmDhEi7OoTSYG3Ku09/0KPzPMrEKmlI9wICaFBDtaZp6Rtdp7MAP0i4tlDopEq62ksSjntTGVNITNU3c4jI1UCsHs8Q8ax0MOC7XMf1DXQwZv2sHeCkFq0KpcYVRI85tkscTkYqxrYBTrPaOufZPpesUOIpNXkgZ5rkjD+sp9NY= | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.1
- 2.2.2
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.1
- 2.2.2
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 2.2.1
- 2.2.2
env:
global:
secure: HmDhEi7OoTSYG3Ku09/0KPzPMrEKmlI9wICaFBDtaZp6Rtdp7MAP0i4tlDopEq62ksSjntTGVNITNU3c4jI1UCsH... | 2cfb0d33670c3e60a09f0ba1dc6711475850c8cc | .travis.yml | .travis.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- ree
<|file_sep|>original/.travis.yml
script: "bundle exec rspec spec/"
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- rbx-2.0
- jruby
<|file_sep|>current/.travis.yml
script: "bundle exec rspec spec/"
rvm:
- 1.8.7
- ree
- 1.9.2
- 1.9.3
- rbx-2.0
- jruby
<|file_s... | script: "bundle exec rspec spec/"
rvm:
- 1.8.7
- ree
- 1.9.2
- 1.9.3
- rbx
- jruby | <|file_sep|>.travis.yml.diff
original:
updated:
- ree
<|file_sep|>original/.travis.yml
script: "bundle exec rspec spec/"
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- rbx-2.0
- jruby
<|file_sep|>current/.travis.yml
script: "bundle exec rspec spec/"
rvm:
- 1.8.7
- ree
- 1.9.2
- 1.9.3
- rbx-2.0
- jruby
<|file_s... | 3047415771ad250034919a2228bf96f673ecab39 | .travis.yml | .travis.yml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.