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/_posts/2015-03-13-python-multiprocessing.md
- <++>
## Kalin Kiesling
<+ speaker bio +>
## Multi-processing in Python
To be filled in here....
Code examples can be found [here][code].
## Lightning Talks
## <+ person +> : <+ topic +>
## <+ person +> : <+ topic +>
<|file_sep|>current/_po... |
- <++>
## Kalin Kiesling
<+ speaker bio +>
## Multi-processing in Python
A discussion of using the `multiprocessing` module from Python
Code examples can be found [here][code].
## Lightning Talks
## <+ person +> : <+ topic +>
## <+ person +> : <+ topic +>
| <|file_sep|>original/_posts/2015-03-13-python-multiprocessing.md
- <++>
## Kalin Kiesling
<+ speaker bio +>
## Multi-processing in Python
To be filled in here....
Code examples can be found [here][code].
## Lightning Talks
## <+ person +> : <+ topic +>
## <+ person +> : <+ topic +>
<|file_sep|>current/_po... | d334c7084cec556fbab2843702e797142ad114c6 | _posts/2015-03-13-python-multiprocessing.md | _posts/2015-03-13-python-multiprocessing.md | Markdown |
<|file_sep|>original/.github/stale.yml
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- bug
- debug
- known issue
- feature
-... | # Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- bug
- debug
- known issue
- feature
- enhancement
# Label to use when markin... | <|file_sep|>original/.github/stale.yml
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- bug
- debug
- known issue
- feature
-... | 355f48db2119e612edc6adb2dfa0c70f824832f2 | .github/stale.yml | .github/stale.yml | YAML |
<|file_sep|>original/plasma/test/__init__.py
# Copyright (c) 2007-2009 The Plasma Project.
# See LICENSE.txt for details.
<|file_sep|>current/plasma/test/__init__.py
# Copyright (c) 2007-2009 The Plasma Project.
# See LICENSE.txt for details.
<|file_sep|>updated/plasma/test/__init__.py | # Copyright (c) 2007-2009 The Plasma Project.
# See LICENSE.txt for details.
import unittest
def failUnlessIdentical(self, first, second, msg=None):
"""
Fail the test if C{first} is not C{second}. This is an
obect-identity-equality test, not an object equality (i.e. C{__eq__}) test.
@param msg: if ... | <|file_sep|>original/plasma/test/__init__.py
# Copyright (c) 2007-2009 The Plasma Project.
# See LICENSE.txt for details.
<|file_sep|>current/plasma/test/__init__.py
# Copyright (c) 2007-2009 The Plasma Project.
# See LICENSE.txt for details.
<|file_sep|>updated/plasma/test/__init__.py
# Copyright (c) 2007-2009 The Pla... | edb73a4d8bba1c1265bfc00e5a765ff47c120e02 | plasma/test/__init__.py | plasma/test/__init__.py | Python |
<|file_sep|>devServer.js.diff
original:
updated:
var PORT = process.env.PORT || 3000;
<|file_sep|>devServer.js.diff
original:
app.listen(3000, 'localhost', function (err) {
updated:
app.listen(PORT, 'localhost', function (err) {
<|file_sep|>original/devServer.js
var compiler = webpack(config);
app.use(require('webpa... | var PORT = process.env.PORT || 3000;
app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath,
}));
app.use(require('webpack-hot-middleware')(compiler));
app.get('*', function (req, res) {
res.sendFile(path.join(__dirname, 'src/index.html'));
});
app.listen(PORT... | <|file_sep|>devServer.js.diff
original:
updated:
var PORT = process.env.PORT || 3000;
<|file_sep|>devServer.js.diff
original:
app.listen(3000, 'localhost', function (err) {
updated:
app.listen(PORT, 'localhost', function (err) {
<|file_sep|>original/devServer.js
var compiler = webpack(config);
app.use(require('webpa... | 8552314ec2908bd82723ba50d406c48d4a0a6b59 | devServer.js | devServer.js | JavaScript |
<|file_sep|>examples/wmts-ign.html.diff
original:
[IGN Géoportail API web page](http://api.ign.fr/accueil)
updated:
[IGN Géoportail API web page](https://geoservices.ign.fr)
<|file_sep|>original/examples/wmts-ign.html
---
layout: example.html
title: IGN WMTS
shortdesc: Demonstrates displaying IGN (France) WMTS ... | ---
layout: example.html
title: IGN WMTS
shortdesc: Demonstrates displaying IGN (France) WMTS layers.
docs: >
In this example an IGN WMTS layer is displayed.
For more information on IGN's WMTS service see the
[IGN Géoportail API web page](https://geoservices.ign.fr)
and
[Documentation de l’offre de ... | <|file_sep|>examples/wmts-ign.html.diff
original:
[IGN Géoportail API web page](http://api.ign.fr/accueil)
updated:
[IGN Géoportail API web page](https://geoservices.ign.fr)
<|file_sep|>original/examples/wmts-ign.html
---
layout: example.html
title: IGN WMTS
shortdesc: Demonstrates displaying IGN (France) WMTS ... | 2451a752389d98c6675d640db23fc3afd35b60f0 | examples/wmts-ign.html | examples/wmts-ign.html | HTML |
<|file_sep|>tests/CMakeLists.txt.diff
original:
add_library(tests src/tests.c)
# add_dependencies(test_luajit liblua)
# target_link_libraries(test_luajit liblua)
updated:
include_directories(${PROJECT_SOURCE_DIR}/src)
add_library(tests src/tests.h src/tests.c src/imgui.cpp)
add_dependencies(tests imgui)
target_link_lib... |
# LuaJIT
include_directories(${PROJECT_SOURCE_DIR}/src)
add_library(tests src/tests.h src/tests.c src/imgui.cpp)
add_dependencies(tests imgui)
target_link_libraries(tests imgui)
# The tests library is intalled using the plugin facility (see src/CMakeLists.txt)
# if(BUILD_OSX)
# set(INSTALL_DESTINATION "${BUNDLE_N... | <|file_sep|>tests/CMakeLists.txt.diff
original:
add_library(tests src/tests.c)
# add_dependencies(test_luajit liblua)
# target_link_libraries(test_luajit liblua)
updated:
include_directories(${PROJECT_SOURCE_DIR}/src)
add_library(tests src/tests.h src/tests.c src/imgui.cpp)
add_dependencies(tests imgui)
target_link_lib... | 71e51ced19436654b5d3c1c41bfedc39548a307b | tests/CMakeLists.txt | tests/CMakeLists.txt | Text |
<|file_sep|>original/thinc/typedefs.pxd
from libc.stdint cimport uint64_t
from libc.stdint cimport uint32_t
from libc.stdint cimport uint16_t
from libc.stdint cimport int32_t
ctypedef float weight_t
ctypedef uint64_t atom_t
ctypedef uint64_t feat_t
ctypedef uint64_t hash_t
ctypedef int32_t class_t
ctypedef uint32_t c... | from libc.stdint cimport uint64_t
from libc.stdint cimport uint32_t
from libc.stdint cimport uint16_t
from libc.stdint cimport int32_t
ctypedef double weight_t
ctypedef uint64_t atom_t
ctypedef uint64_t feat_t
ctypedef uint64_t hash_t
ctypedef int32_t class_t
ctypedef uint32_t count_t
ctypedef uint32_t time_t
ctypede... | <|file_sep|>original/thinc/typedefs.pxd
from libc.stdint cimport uint64_t
from libc.stdint cimport uint32_t
from libc.stdint cimport uint16_t
from libc.stdint cimport int32_t
ctypedef float weight_t
ctypedef uint64_t atom_t
ctypedef uint64_t feat_t
ctypedef uint64_t hash_t
ctypedef int32_t class_t
ctypedef uint32_t c... | c790774822d21868a82c3980109cae5c87e6b428 | thinc/typedefs.pxd | thinc/typedefs.pxd | Cython |
<|file_sep|>original/.travis.yml
language: python
env: RUNNER=travis
python:
- "2.7"
install: pip install -r requirements/dev.txt --download-cache $HOME/.pip-cache
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -U postgres -d travis_ci_test -c "create extension postgis"
script:
- ... | python:
- "2.7"
install: pip install -r requirements/dev.txt --download-cache $HOME/.pip-cache
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -U postgres -d travis_ci_test -c "create extension postgis"
script:
- coverage run --source=electionleaflets manage.py test
- coverage ru... | <|file_sep|>original/.travis.yml
language: python
env: RUNNER=travis
python:
- "2.7"
install: pip install -r requirements/dev.txt --download-cache $HOME/.pip-cache
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -U postgres -d travis_ci_test -c "create extension postgis"
script:
- ... | 52e5c61d02b9152b0414583a128f0a4ee067e92e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/package.json
},
"homepage": "https://github.com/chiku/dashy#readme",
"dependencies": {
"browserify": "^12.0.1",
"nanoajax": "^0.4.0",
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-cssnano": "^2.0.0",
"gulp-htmlmin": "^... | },
"homepage": "https://github.com/chiku/dashy#readme",
"dependencies": {
"browserify": "^12.0.1",
"nanoajax": "^0.4.0",
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-cssnano": "^2.0.0",
"gulp-htmlmin": "^1.3.0",
"gulp-jsbeautifier": "... | <|file_sep|>original/package.json
},
"homepage": "https://github.com/chiku/dashy#readme",
"dependencies": {
"browserify": "^12.0.1",
"nanoajax": "^0.4.0",
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-cssnano": "^2.0.0",
"gulp-htmlmin": "^... | 70a4b04ceadcfb91bb518241f0ea76e5ea69a86d | package.json | package.json | JSON |
<|file_sep|>MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java.diff
original:
updated:
import java.util.Collection;
<|file_sep|>MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java.diff
original:
updated:
import retrofit.http.GET;
<|file_sep|>MAGPIE/s... | String SERVICE_URL = "https://10.0.2.2:8443";
String TOKEN_PATH = "/oauth/token";
String USER_ID = "userId";
String USER_SVC = "/user";
String USER_GET_SVC = USER_SVC + "/getUser";
String USER_GET_CONTACTS_ACCEPTED_SVC = USER_SVC + "/{" + USER_ID + "}" + "/getContactsAccepted";
String USER... | <|file_sep|>MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java.diff
original:
updated:
import java.util.Collection;
<|file_sep|>MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java.diff
original:
updated:
import retrofit.http.GET;
<|file_sep|>MAGPIE/s... | 4584a52b921839924396af1022ed4f447cf68485 | MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java | MAGPIE/sample-debs/src/main/java/ch/hevs/aislab/magpie/debs/retrofit/UserSvcApi.java | Java |
<|file_sep|>plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java.diff
original:
public class Application extends org.apache.camel.main.Main {
updated:
public class Application extends Main {
<|file_sep|>plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java.diff
original:
public Applica... | /**
* Created by michael on 12.09.2017.
*/
public class Application extends Main {
public Application() throws Exception {
super();
getOrCreateCamelContext().addRoutes(new MyRouteBuilder());
}
@Override
protected CamelContext createContext() {
CamelContext camelContext = Came... | <|file_sep|>plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java.diff
original:
public class Application extends org.apache.camel.main.Main {
updated:
public class Application extends Main {
<|file_sep|>plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java.diff
original:
public Applica... | 141779f10f15b84779035ac2074cd327d0ad43ef | plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java | plain-camel/src/main/java/de/fred4jupiter/plaincamel/Application.java | Java |
<|file_sep|>original/.github/workflows/ci.yml
run: ./gradlew assembleDebug
- name: Upload apk
uses: actions/upload-artifact@v2
with:
name: debug apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Run unit tests
run: ./gradlew test --stacktrace
... | path: app/build/outputs/apk/debug/app-debug.apk
- name: Run unit tests
run: ./gradlew test --stacktrace
- name: Run instrumented tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.api_level }}
arch: x86_64
profile:... | <|file_sep|>original/.github/workflows/ci.yml
run: ./gradlew assembleDebug
- name: Upload apk
uses: actions/upload-artifact@v2
with:
name: debug apk
path: app/build/outputs/apk/debug/app-debug.apk
- name: Run unit tests
run: ./gradlew test --stacktrace
... | ca6911dcdcdfd2e3f121732aa7adc11e7692cdc3 | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/app/views/shared/_recent_items.html.erb
<h2>
Latest Content
<%- if itemable.item_count > 3 %>
| <small><%= link_to 'View all content', itemable_items_path(itemable) %> (<%= itemable.item_count %> items)</small>
<%- end %>
</h2>
<ul class="media-list">
<%- itemable.items.take(4).ea... | <h2>
Latest Content
<%- if itemable.item_count > 4 && itemable.approved %>
| <small><%= link_to 'View all content', itemable_items_path(itemable) %> (<%= itemable.item_count %> items)</small>
<%- end %>
</h2>
<ul class="media-list">
<%- itemable.items.take(4).each do |item| %>
<li class="clearfix... | <|file_sep|>original/app/views/shared/_recent_items.html.erb
<h2>
Latest Content
<%- if itemable.item_count > 3 %>
| <small><%= link_to 'View all content', itemable_items_path(itemable) %> (<%= itemable.item_count %> items)</small>
<%- end %>
</h2>
<ul class="media-list">
<%- itemable.items.take(4).ea... | 49e92260159a07e7ead21776f45f3b561dd6101d | app/views/shared/_recent_items.html.erb | app/views/shared/_recent_items.html.erb | HTML+ERB |
<|file_sep|>original/src/Staq/Core/Data/Stack/Attribute/SerializedList.php
<|file_sep|>current/src/Staq/Core/Data/Stack/Attribute/SerializedList.php
<|file_sep|>updated/src/Staq/Core/Data/Stack/Attribute/SerializedList.php | <?php
/* This file is part of the Staq project, which is under MIT license */
namespace Staq\Core\Data\Stack\Attribute;
class SerializedList extends SerializedList\__Parent
{
/* PUBLIC USER METHODS
*************************************************************************/
public function get()
{
... | <|file_sep|>original/src/Staq/Core/Data/Stack/Attribute/SerializedList.php
<|file_sep|>current/src/Staq/Core/Data/Stack/Attribute/SerializedList.php
<|file_sep|>updated/src/Staq/Core/Data/Stack/Attribute/SerializedList.php
<?php
/* This file is part of the Staq project, which is under MIT license */
namespace Staq... | 10f9627945fbe52f3a3b1dfc57ed83915f81ef0d | src/Staq/Core/Data/Stack/Attribute/SerializedList.php | src/Staq/Core/Data/Stack/Attribute/SerializedList.php | PHP |
<|file_sep|>original/app/assets/stylesheets/buttons.sass
@import "blueprint/buttons"
a.button, input.button
@include anchor-button
@include background-image(linear-gradient(#f9f9f9, #dfdfdf))
@include border-radius(3px)
@include box-shadow(inset 0 1px 0 white, 0 1px 0px #eee)
color: #333
font-size: 13px
... | @import "blueprint/buttons"
a.button, input.button
@include anchor-button
@include background-image(linear-gradient(#f9f9f9, #dfdfdf))
@include border-radius(3px)
@include box-shadow(inset 0 1px 0 white, 0 1px 0px #eee)
background-color: #eee
color: #333
font-size: 13px
border-color: #ccc
border-col... | <|file_sep|>original/app/assets/stylesheets/buttons.sass
@import "blueprint/buttons"
a.button, input.button
@include anchor-button
@include background-image(linear-gradient(#f9f9f9, #dfdfdf))
@include border-radius(3px)
@include box-shadow(inset 0 1px 0 white, 0 1px 0px #eee)
color: #333
font-size: 13px
... | a12c4f9bd088fc2bef6ba7c55ab9cd7ff5a8f015 | app/assets/stylesheets/buttons.sass | app/assets/stylesheets/buttons.sass | Sass |
<|file_sep|>original/app/Http/Response/Transformers/SinglePoolTransformer.php
public function transform(Pool $pool) {
return [
'id' => $pool->id,
'idTournament' => $pool->tournament_id,
'startTime' => $pool->start_time,
'endTime' => $poo... | public function transform(Pool $pool) {
return [
'id' => $pool->id,
'idTournament' => $pool->tournament_id,
'startTime' => $pool->start_time,
'endTime' => $pool->end_time,
'name' => $pool->poolName,
'idMo... | <|file_sep|>original/app/Http/Response/Transformers/SinglePoolTransformer.php
public function transform(Pool $pool) {
return [
'id' => $pool->id,
'idTournament' => $pool->tournament_id,
'startTime' => $pool->start_time,
'endTime' => $poo... | 2e259ece951197966092c445c75854ea11d32e78 | app/Http/Response/Transformers/SinglePoolTransformer.php | app/Http/Response/Transformers/SinglePoolTransformer.php | PHP |
<|file_sep|>original/acceptance-tests/src/main/resources/atam4j-config.yml
applicationConnectors:
- type: http
port: 8080
adminConnectors:
- type: http
port: 8081
requestLog:
appenders:
- type: console
timeZone: UTC
logging:
level: ERROR
loggers:
io.dropwizard:... | applicationConnectors:
- type: http
port: 8080
adminConnectors:
- type: http
port: 8081
requestLog:
appenders:
- type: console
timeZone: UTC
logging:
level: ERROR
loggers:
io.dropwizard: DEBUG
me.atam.atam4j: ERROR
appenders:
- type: console
log... | <|file_sep|>original/acceptance-tests/src/main/resources/atam4j-config.yml
applicationConnectors:
- type: http
port: 8080
adminConnectors:
- type: http
port: 8081
requestLog:
appenders:
- type: console
timeZone: UTC
logging:
level: ERROR
loggers:
io.dropwizard:... | 9644a9009f2eb398b949132b32f96ee7513d8c4d | acceptance-tests/src/main/resources/atam4j-config.yml | acceptance-tests/src/main/resources/atam4j-config.yml | YAML |
<|file_sep|>original/test/config.tf
provider "aws" {
region = "eu-central-1"
}
variable "name_prefix" {
default = "tf-consul-module-test-"
}
module "vpc" {
source = "github.com/gbergere/tf-vpc-test-module"
name_prefix = "${var.name_prefix}"
}
module "consul" {
source = "../"
name_prefix = "${var.name_p... | variable "name_prefix" {
default = "tf-consul-module-test-"
}
module "vpc" {
source = "github.com/gbergere/tf-vpc-test-module"
name_prefix = "${var.name_prefix}"
}
module "consul" {
source = "../"
name_prefix = "${var.name_prefix}"
vpc_id = "${module.vpc.vpc_id}"
subnet_id = "${module.vpc.subnet_i... | <|file_sep|>original/test/config.tf
provider "aws" {
region = "eu-central-1"
}
variable "name_prefix" {
default = "tf-consul-module-test-"
}
module "vpc" {
source = "github.com/gbergere/tf-vpc-test-module"
name_prefix = "${var.name_prefix}"
}
module "consul" {
source = "../"
name_prefix = "${var.name_p... | 09bd9e9c88760b888ac9eb21912ab68995dfa886 | test/config.tf | test/config.tf | HCL |
<|file_sep|>app/controllers/api/v1/toppings_controller.rb.diff
original:
updated:
before_action :user_admin?, only: [:create]
<|file_sep|>app/controllers/api/v1/toppings_controller.rb.diff
original:
render json: {error: 'ya bozo'}
updated:
render json: {error: 'Validation Error'}, status: 40... | private
def user_admin?
user = User.find_by_id user_id[:id]
if !user || !user.is?(:admin)
render json: {error: 'ya bozo'}, status: 403
return
end
end
def topping_params
params.permit(:name, :extra_cost)
end
def user_id
pa... | <|file_sep|>app/controllers/api/v1/toppings_controller.rb.diff
original:
updated:
before_action :user_admin?, only: [:create]
<|file_sep|>app/controllers/api/v1/toppings_controller.rb.diff
original:
render json: {error: 'ya bozo'}
updated:
render json: {error: 'Validation Error'}, status: 40... | 905a929514969212390fe3d360cb51ef99677561 | app/controllers/api/v1/toppings_controller.rb | app/controllers/api/v1/toppings_controller.rb | Ruby |
<|file_sep|>tools/idl_scraper.pl.diff
original:
updated:
process 'code.idl-code', 'idl[]' => 'TEXT';
<|file_sep|>original/tools/idl_scraper.pl
my $res = scraper {
process 'pre.idl', 'idl[]' => 'TEXT';
result 'idl';
}->scrape(URI->new(shift));
while (my $def = shift(@$res)) {
# Obsolete features are de... | process 'pre.idl', 'idl[]' => 'TEXT';
process 'code.idl-code', 'idl[]' => 'TEXT';
result 'idl';
}->scrape(URI->new(shift));
while (my $def = shift(@$res)) {
# Obsolete features are described as "[XXX] interface"
if (0 <= index($def, "[XXX] interface")) {
next;
}
# Ignore snippets
... | <|file_sep|>tools/idl_scraper.pl.diff
original:
updated:
process 'code.idl-code', 'idl[]' => 'TEXT';
<|file_sep|>original/tools/idl_scraper.pl
my $res = scraper {
process 'pre.idl', 'idl[]' => 'TEXT';
result 'idl';
}->scrape(URI->new(shift));
while (my $def = shift(@$res)) {
# Obsolete features are de... | 462cae7ca8c971d627f590d99dabbb8ca0079732 | tools/idl_scraper.pl | tools/idl_scraper.pl | Perl |
<|file_sep|>original/lib/jolokia/client.rb
attr_accessor :url
def initialize(opts = {})
@url = opts[:url]
end
def get_attribute(mbean, attribute, path = nil)
options = { 'type' => 'read', 'mbean' => mbean, 'attribute' => attribute }
options['path'] = path if path
request(:post... | attr_accessor :url
def initialize(opts = {})
@url = opts[:url]
end
def get_attribute(mbean, attribute, path = nil)
options = { 'type' => 'read', 'mbean' => mbean, 'attribute' => attribute }
options['path'] = path if path
request(:post, options)['value']
end
def set_at... | <|file_sep|>original/lib/jolokia/client.rb
attr_accessor :url
def initialize(opts = {})
@url = opts[:url]
end
def get_attribute(mbean, attribute, path = nil)
options = { 'type' => 'read', 'mbean' => mbean, 'attribute' => attribute }
options['path'] = path if path
request(:post... | 49dfae1f9c2b93e13e9a7ac8bb693a09a7e1e7ba | lib/jolokia/client.rb | lib/jolokia/client.rb | Ruby |
<|file_sep|>original/data/014.json
<|file_sep|>current/data/014.json
<|file_sep|>updated/data/014.json | {
"data": [
{
"quote": "Technology is a useful servant but a dangerous master.",
"author": "Christian Lous Lange"
},
{
"quote": "The science of today is the technology of tomorrow",
"author": "Edward Teller"
},
{
"quote":... | <|file_sep|>original/data/014.json
<|file_sep|>current/data/014.json
<|file_sep|>updated/data/014.json
{
"data": [
{
"quote": "Technology is a useful servant but a dangerous master.",
"author": "Christian Lous Lange"
},
{
"quote": "The science of today is t... | ff64b82d69e12e7fe3851796d0454428fc172327 | data/014.json | data/014.json | JSON |
<|file_sep|>original/package.json
{
"name": "percent",
"author": "Zlatan Vasović",
"description": "Percent control done right",
"keywords": [
"percent",
"percentage",
"math",
"calculation"
],
"version": "1.0.2",
"license": "MIT",
"repository": "ZDroid/percent",
"files": [
"index.js... | {
"name": "percent",
"author": "Zlatan Vasović",
"description": "Percent control done right",
"keywords": [
"percentage",
"math",
"calculation"
],
"version": "1.0.2",
"license": "MIT",
"repository": "ZDroid/percent",
"files": [
"index.js",
"LICENSE.md"
],
"scripts": {
"test... | <|file_sep|>original/package.json
{
"name": "percent",
"author": "Zlatan Vasović",
"description": "Percent control done right",
"keywords": [
"percent",
"percentage",
"math",
"calculation"
],
"version": "1.0.2",
"license": "MIT",
"repository": "ZDroid/percent",
"files": [
"index.js... | eca9582f6cd1d2e00da85de63cfd5d277e30f4cf | package.json | package.json | JSON |
<|file_sep|>gimlet/backends/sql.py.diff
original:
updated:
table = self.table
key_col = table.c.key
<|file_sep|>gimlet/backends/sql.py.diff
original:
updated:
<|file_sep|>gimlet/backends/sql.py.diff
original:
r = self.table.select('1', for_update=True).\
where(self.table.c.key == ... | table = self.table
key_col = table.c.key
raw = self.serialize(value)
# Check if this key exists with a SELECT FOR UPDATE, to protect
# against a race with other concurrent writers of this key.
r = table.count(key_col == key, for_update=True).scalar()
if r:
... | <|file_sep|>gimlet/backends/sql.py.diff
original:
updated:
table = self.table
key_col = table.c.key
<|file_sep|>gimlet/backends/sql.py.diff
original:
updated:
<|file_sep|>gimlet/backends/sql.py.diff
original:
r = self.table.select('1', for_update=True).\
where(self.table.c.key == ... | b9701cfb65c4c641231bef385dde74b8d940f901 | gimlet/backends/sql.py | gimlet/backends/sql.py | Python |
<|file_sep|>original/composer.json
{
"name": "bjorvack/image-stacker",
"description": "Image stacker is a package to combine different images to one single image.",
"license": "MIT",
"keywords": ["image","merger-tool","merge", "combine"],
"require": {
"php": ">=5.5.0",
"intervention/... | {
"name": "bjorvack/image-stacker",
"description": "Image stacker is a package to combine different images to one single image.",
"license": "MIT",
"keywords": ["image","merger-tool","merge", "combine"],
"require": {
"php": ">=5.5.0",
"intervention/image": "^2.3"
},
"require-... | <|file_sep|>original/composer.json
{
"name": "bjorvack/image-stacker",
"description": "Image stacker is a package to combine different images to one single image.",
"license": "MIT",
"keywords": ["image","merger-tool","merge", "combine"],
"require": {
"php": ">=5.5.0",
"intervention/... | 79525f06d9033508b46111ce249dabc4b2ba4abb | composer.json | composer.json | JSON |
<|file_sep|>original/.travis.yml
# Language/versions
language: node_js
node_js:
- "0.12"
- "0.10"
# Build script
script: make ci
# Notifications
notifications:
email:
- j.robinson@nature.com
- rowan.manning@nature.com
<|file_sep|>current/.travis.yml
# Language/versions
language: node_js
node_js:
- "... |
# Language/versions
language: node_js
node_js:
- "0.12"
- "0.10"
# Build script
script: make ci
# Notifications
notifications:
email:
- j.robinson@nature.com
- rowan.manning@nature.com
slack: thefeds:vG3hLYB07EwTYpQFp3TNUx82 | <|file_sep|>original/.travis.yml
# Language/versions
language: node_js
node_js:
- "0.12"
- "0.10"
# Build script
script: make ci
# Notifications
notifications:
email:
- j.robinson@nature.com
- rowan.manning@nature.com
<|file_sep|>current/.travis.yml
# Language/versions
language: node_js
node_js:
- "... | f53bfb46c871307b8b15846fdc105d4ed37b6935 | .travis.yml | .travis.yml | YAML |
<|file_sep|>.gitlab-ci.yml.diff
original:
test:
updated:
test_python2:
image: python:2.7
<|file_sep|>original/.gitlab-ci.yml
- apt-get install -y python-dev python-pip
- apt-get install -y python3-dev python3-pip
- pip install virtualenv
- "# Test with python 2"
- virtualenv --system-site-packages --python=... | - "# Test with python 2"
- pip install virtualenv
- virtualenv --system-site-packages --python=/usr/bin/python2 venv2
- venv2/bin/pip install nose
- venv2/bin/pip install pyyaml
- venv2/bin/pip install jinja2
- venv2/bin/nosetests test/executive_smach_tutorials.py
tags:
- docker
- ... | <|file_sep|>.gitlab-ci.yml.diff
original:
test:
updated:
test_python2:
image: python:2.7
<|file_sep|>original/.gitlab-ci.yml
- apt-get install -y python-dev python-pip
- apt-get install -y python3-dev python3-pip
- pip install virtualenv
- "# Test with python 2"
- virtualenv --system-site-packages --python=... | 9695d6aff9f4d1d92d2d99634d0bc7807469e797 | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>app/views/notifiable_admin/admin/apps/_form.html.erb.diff
original:
<%= f.input :apns_certificate, :as => :text, :label => "Certificate" %>
updated:
<%= f.input :apns_certificate, :as => :text, :label => "APNS Certificate" %>
<|file_sep|>app/views/notifiable_admin/admin/apps/_form.html.erb.diff
original... | <%= f.input :name %>
<h4>APNS</h4>
<%= f.input :apns_certificate, :as => :text, :label => "APNS Certificate" %>
<%= f.input :apns_passphrase, :label => "APNS Passphrase" %>
<%= f.input :apns_sandbox, :as => :boolean, :label => "APNS Sandbox" %>
<hr/>
<%= f.input :gcm_api_key, :label => "GCM ... | <|file_sep|>app/views/notifiable_admin/admin/apps/_form.html.erb.diff
original:
<%= f.input :apns_certificate, :as => :text, :label => "Certificate" %>
updated:
<%= f.input :apns_certificate, :as => :text, :label => "APNS Certificate" %>
<|file_sep|>app/views/notifiable_admin/admin/apps/_form.html.erb.diff
original... | a7a7724fc4274c155ab4b740380307c8767d8a04 | app/views/notifiable_admin/admin/apps/_form.html.erb | app/views/notifiable_admin/admin/apps/_form.html.erb | HTML+ERB |
<|file_sep|>original/package.json
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^0.9.2"
},
"peerDependencies": {
"grunt": "~0.4.2"
},
"keywords": [
"gruntplugin",
"akamai",
"rest",
"purge"
... | "node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^0.9.2"
},
"peerDependencies": {
"grunt": ">=0.4.0"
},
"keywords": [
"gruntplugin",
"akamai",
"rest",
"purge"
],
"dependencies": {
"requ... | <|file_sep|>original/package.json
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^0.9.2"
},
"peerDependencies": {
"grunt": "~0.4.2"
},
"keywords": [
"gruntplugin",
"akamai",
"rest",
"purge"
... | aeef918451e4d29a27833d27efb3fba52b8791c7 | package.json | package.json | JSON |
<|file_sep|>src/GameObject.js.diff
original:
import { MeshNormalMaterial } from './lib/threejs/materials/MeshBasicMaterial';
updated:
import { MeshNormalMaterial } from './lib/threejs/materials/MeshNormalMaterial';
<|file_sep|>original/src/GameObject.js
* @author: Sara Azinhal ( ist181700 )
*/
import { Object3D } fr... |
import { Object3D } from './lib/threejs/core/Object3D';
import { MeshNormalMaterial } from './lib/threejs/materials/MeshNormalMaterial';
class GameObject extends Object3D {
constructor ( x, y, z ) {
super();
this.type = 'GameObject';
this.material = new MeshNormalMaterial();
this.position.set( x || 0, y... | <|file_sep|>src/GameObject.js.diff
original:
import { MeshNormalMaterial } from './lib/threejs/materials/MeshBasicMaterial';
updated:
import { MeshNormalMaterial } from './lib/threejs/materials/MeshNormalMaterial';
<|file_sep|>original/src/GameObject.js
* @author: Sara Azinhal ( ist181700 )
*/
import { Object3D } fr... | abb04e3e9a459714d6822e7f369b5bcfc471bc21 | src/GameObject.js | src/GameObject.js | JavaScript |
<|file_sep|>original/tests/ttw/test_sign_in.py
<|file_sep|>current/tests/ttw/test_sign_in.py
<|file_sep|>updated/tests/ttw/test_sign_in.py | from __future__ import absolute_import, division, print_function, unicode_literals
from gratipay.testing import BrowserHarness
class Tests(BrowserHarness):
def test_sign_in_modal_is_hidden_by_default(self):
self.visit('/')
assert not self.css('#sign-in-modal').visible
def test_clicking_sig... | <|file_sep|>original/tests/ttw/test_sign_in.py
<|file_sep|>current/tests/ttw/test_sign_in.py
<|file_sep|>updated/tests/ttw/test_sign_in.py
from __future__ import absolute_import, division, print_function, unicode_literals
from gratipay.testing import BrowserHarness
class Tests(BrowserHarness):
def test_sign_i... | 6990a05e360dc66d26997acc3e4095b0f3910d42 | tests/ttw/test_sign_in.py | tests/ttw/test_sign_in.py | Python |
<|file_sep|>tests/src/cgeo/geocaching/LogTemplateProviderTest.java.diff
original:
updated:
import java.util.Calendar;
<|file_sep|>original/tests/src/cgeo/geocaching/LogTemplateProviderTest.java
package cgeo.geocaching;
import junit.framework.TestCase;
public class LogTemplateProviderTest extends TestCase {
pub... | package cgeo.geocaching;
import java.util.Calendar;
import junit.framework.TestCase;
public class LogTemplateProviderTest extends TestCase {
public static void testApplyTemplates() {
final String noTemplates = " no templates ";
assertEquals(noTemplates, LogTemplateProvider.applyTemplates(noTempl... | <|file_sep|>tests/src/cgeo/geocaching/LogTemplateProviderTest.java.diff
original:
updated:
import java.util.Calendar;
<|file_sep|>original/tests/src/cgeo/geocaching/LogTemplateProviderTest.java
package cgeo.geocaching;
import junit.framework.TestCase;
public class LogTemplateProviderTest extends TestCase {
pub... | d558df69d5a8e8028ff5422866225bfd91989720 | tests/src/cgeo/geocaching/LogTemplateProviderTest.java | tests/src/cgeo/geocaching/LogTemplateProviderTest.java | Java |
<|file_sep|>appengine/flexible/websockets/composer.json.diff
original:
"silex/silex": "^2.3"
updated:
"silex/silex": "^1.3"
<|file_sep|>original/appengine/flexible/websockets/composer.json
{
"require": {
"cboden/ratchet": "^0.4.1",
"guzzlehttp/psr7": "^1.5",
"silex/silex": "^... | {
"require": {
"cboden/ratchet": "^0.4.1",
"guzzlehttp/psr7": "^1.5",
"silex/silex": "^1.3"
},
"require-dev": {
"phpunit/phpunit": "^5",
"ratchet/pawl": "^0.3.4",
"react/promise": "^2.7",
"clue/block-react": "^1.3",
"google/cloud-tools": "^0.9.1"
... | <|file_sep|>appengine/flexible/websockets/composer.json.diff
original:
"silex/silex": "^2.3"
updated:
"silex/silex": "^1.3"
<|file_sep|>original/appengine/flexible/websockets/composer.json
{
"require": {
"cboden/ratchet": "^0.4.1",
"guzzlehttp/psr7": "^1.5",
"silex/silex": "^... | 37353adedbad6e8378207fd8c8ab7b68ddffda07 | appengine/flexible/websockets/composer.json | appengine/flexible/websockets/composer.json | JSON |
<|file_sep|>lib/gems/pending/spec/util/mount/miq_generic_mount_session_spec.rb.diff
original:
@s1 = MiqGenericMountSession.new({:uri => '/tmp/abc'})
@s2 = MiqGenericMountSession.new({:uri => '/tmp/abc'})
updated:
@s1 = MiqGenericMountSession.new(:uri => '/tmp/abc', :mount_point => 'tmp')
@s2 = M... | MiqGenericMountSession.stub(:raw_disconnect)
@s1 = MiqGenericMountSession.new(:uri => '/tmp/abc', :mount_point => 'tmp')
@s2 = MiqGenericMountSession.new(:uri => '/tmp/abc', :mount_point => 'tmp')
@s1.logger = Logger.new("/dev/null")
@s2.logger = Logger.new("/dev/null")
end
after... | <|file_sep|>lib/gems/pending/spec/util/mount/miq_generic_mount_session_spec.rb.diff
original:
@s1 = MiqGenericMountSession.new({:uri => '/tmp/abc'})
@s2 = MiqGenericMountSession.new({:uri => '/tmp/abc'})
updated:
@s1 = MiqGenericMountSession.new(:uri => '/tmp/abc', :mount_point => 'tmp')
@s2 = M... | 449581e29647b26ccdf38ccba9ee3b919275789f | lib/gems/pending/spec/util/mount/miq_generic_mount_session_spec.rb | lib/gems/pending/spec/util/mount/miq_generic_mount_session_spec.rb | Ruby |
<|file_sep|>original/src/store/configureStore.js
import {createStore, applyMiddleware, compose} from 'redux';
import { routerMiddleware } from 'react-router-redux';
import throttle from 'lodash/throttle';
import recipes from './data/recipes';
import { loadState, saveState } from './localStorage';
import rootReducer fro... | import {createStore, applyMiddleware, compose} from 'redux';
import { routerMiddleware } from 'react-router-redux';
import throttle from 'lodash/throttle';
import recipes from './data/recipes';
import { loadState, saveState } from './localStorage';
import rootReducer from './reducers';
const devtools = window.devTools... | <|file_sep|>original/src/store/configureStore.js
import {createStore, applyMiddleware, compose} from 'redux';
import { routerMiddleware } from 'react-router-redux';
import throttle from 'lodash/throttle';
import recipes from './data/recipes';
import { loadState, saveState } from './localStorage';
import rootReducer fro... | f0c283b2c50c8bc43798efa188feef58c61f0415 | src/store/configureStore.js | src/store/configureStore.js | JavaScript |
<|file_sep|>original/README.md
# Riveter [](https://travis-ci.org/Subzidion/riveter)
Riveter is an interactive browser based experience for the [Rosie Pattern Language](https://github.com/jamiejennings/rosie-pattern-language).
# Development
R... | # Riveter [](https://travis-ci.org/Subzidion/riveter)
Riveter is an interactive browser based experience for the [Rosie Pattern Language](https://github.com/jamiejennings/rosie-pattern-language).
**Riveter is no longer deployed as of June 4th, ... | <|file_sep|>original/README.md
# Riveter [](https://travis-ci.org/Subzidion/riveter)
Riveter is an interactive browser based experience for the [Rosie Pattern Language](https://github.com/jamiejennings/rosie-pattern-language).
# Development
R... | f046763a5a4bd4a02a975ca3a21fc083f6479060 | README.md | README.md | Markdown |
<|file_sep|>packages/next/build/babel/plugins/commonjs.ts.diff
original:
console.log('FOUND', state.file.opts.filename)
updated:
<|file_sep|>original/packages/next/build/babel/plugins/commonjs.ts
path.traverse({
MemberExpression (
path: any
) {
... | let foundModuleExports = false
path.traverse({
MemberExpression (
path: any
) {
if (path.node.object.name !== 'module') return
if (path.node.property.name !== 'exports') return
foundModuleExports = true
}
... | <|file_sep|>packages/next/build/babel/plugins/commonjs.ts.diff
original:
console.log('FOUND', state.file.opts.filename)
updated:
<|file_sep|>original/packages/next/build/babel/plugins/commonjs.ts
path.traverse({
MemberExpression (
path: any
) {
... | 1a5fc941ce53a3e192a388b0caa65922078e96e4 | packages/next/build/babel/plugins/commonjs.ts | packages/next/build/babel/plugins/commonjs.ts | TypeScript |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- 5
- 4
script: npm run lint && npm test && npm run build
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- 5
- 4
script: npm run lint && npm test && npm run build
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- 6
- 5
- 4
script: npm run lint && npm test && npm run build | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- 5
- 4
script: npm run lint && npm test && npm run build
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- 5
- 4
script: npm run lint && npm test && npm run build
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- 6
- 5
- 4
... | a3162abf32fb1deecdb37a4f6657381168f62335 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/go/cruise-config.xml
<|file_sep|>current/go/cruise-config.xml
<|file_sep|>updated/go/cruise-config.xml | <pipelines group="pypackage_docker">
<pipeline name="continuous_integration" template="continuous_integration">
<materials>
<git url="https://github.com/cloudhotspot/pypackage-docker.git" />
</materials>
</pipeline>
</pipelines>
<templates>
<pipeline name="continuous_integration">
... | <|file_sep|>original/go/cruise-config.xml
<|file_sep|>current/go/cruise-config.xml
<|file_sep|>updated/go/cruise-config.xml
<pipelines group="pypackage_docker">
<pipeline name="continuous_integration" template="continuous_integration">
<materials>
<git url="https://github.com/cloudhotspot/pypackage-... | 7fc9160c549001a88ac6e06ce4eae76dae715282 | go/cruise-config.xml | go/cruise-config.xml | XML |
<|file_sep|>app/controllers/posts_controller.rb.diff
original:
# TODO: Save the post to the db to get the second param and get the first from the current user
THRIFTCLIENT.addPost(1, 1, oct_vec)
updated:
@post = Post.new(
:title => title,
:url => params[:post][:url],
)
<|file_sep|>original/a... | oct_vec = keywords.map do |pair|
Backend::Token.new(:t => pair[0], :f => pair[1])
end
@post = Post.new(
:title => title,
:url => params[:post][:url],
)
if @post.save
# TODO: Save the post to the db to get the second param and get the first from the current user
if THR... | <|file_sep|>app/controllers/posts_controller.rb.diff
original:
# TODO: Save the post to the db to get the second param and get the first from the current user
THRIFTCLIENT.addPost(1, 1, oct_vec)
updated:
@post = Post.new(
:title => title,
:url => params[:post][:url],
)
<|file_sep|>original/a... | ef4568cf66c4afd72c0b65426f9563ffb231f968 | app/controllers/posts_controller.rb | app/controllers/posts_controller.rb | Ruby |
<|file_sep|>original/src/components/Header/index.js
return (
<NavItem>
<Link to={'/logout'} className="nav-link">Logout</Link>
</NavItem>);
}
render() {
return (
<header>
<Navbar color="inverse" dark full>
<NavbarToggler className="hidden-md-up pull-left collapsed" o... | return (
<NavItem>
<Link to={'/logout'} className="nav-link">Logout</Link>
</NavItem>);
}
render() {
return (
<header>
<Navbar color="inverse" dark full>
<button className="navbar-toggler hidden-md-up pull-left" type="button" onClick={this.props.onHamburgerClick}></b... | <|file_sep|>original/src/components/Header/index.js
return (
<NavItem>
<Link to={'/logout'} className="nav-link">Logout</Link>
</NavItem>);
}
render() {
return (
<header>
<Navbar color="inverse" dark full>
<NavbarToggler className="hidden-md-up pull-left collapsed" o... | de2a17e28db1a8187abbe117aa2d598583529e64 | src/components/Header/index.js | src/components/Header/index.js | JavaScript |
<|file_sep|>original/.travis.yml
reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
cache: bundler
script:
- xctool test -workspace Example/EPSNameFormatter.xcworkspace -scheme EPSNameFormatter -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
<|file_sep|>current/.travis.yml
reference: http://www.objc.io... | reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
cache: bundler
before_install:
- gem install cocoapods -v '0.33.1'
script:
- xctool test -workspace Example/EPSNameFormatter.xcworkspace -scheme EPSNameFormatter -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | <|file_sep|>original/.travis.yml
reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
cache: bundler
script:
- xctool test -workspace Example/EPSNameFormatter.xcworkspace -scheme EPSNameFormatter -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
<|file_sep|>current/.travis.yml
reference: http://www.objc.io... | 7a4b00b06b10b9d8381326e73b69b28cdf2d716a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/operations/create-upgrade-ert-pipeline.yml
value: elastic-runtime
- op: replace
path: /get=tile/get
value: elastic-runtime
- op: replace
path: /jobs/name=upload-and-stage-tile/name
value: upload-and-stage-ert
- op: replace
path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-st... | value: elastic-runtime
- op: replace
path: /resource=tile/resource
value: elastic-runtime
- op: replace
path: /get=tile/get
value: elastic-runtime
- op: replace
path: /jobs/name=upload-and-stage-tile/name
value: upload-and-stage-ert
- op: replace
path: /jobs/name=upload-and-stage-ert/task=upload-til... | <|file_sep|>original/operations/create-upgrade-ert-pipeline.yml
value: elastic-runtime
- op: replace
path: /get=tile/get
value: elastic-runtime
- op: replace
path: /jobs/name=upload-and-stage-tile/name
value: upload-and-stage-ert
- op: replace
path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-st... | bf43ebd5152a32c16a5f85f93c827366745db6a0 | operations/create-upgrade-ert-pipeline.yml | operations/create-upgrade-ert-pipeline.yml | YAML |
<|file_sep|>original/Formula/phpdocumentor.rb
<|file_sep|>current/Formula/phpdocumentor.rb
<|file_sep|>updated/Formula/phpdocumentor.rb | require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", Pathname.new(__FILE__).realpath)
require File.expand_path("../../Requirements/phar-requirement", Pathname.new(__FILE__).realpath)
class Phpdocumentor < Formula
homepage 'http://www.phpdoc.org'
url 'http://www.phpdoc.org/phpDocume... | <|file_sep|>original/Formula/phpdocumentor.rb
<|file_sep|>current/Formula/phpdocumentor.rb
<|file_sep|>updated/Formula/phpdocumentor.rb
require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", Pathname.new(__FILE__).realpath)
require File.expand_path("../../Requirements/phar-requirement",... | 737bb89d71f0517f3c48254ed1b7f95767a331e5 | Formula/phpdocumentor.rb | Formula/phpdocumentor.rb | Ruby |
<|file_sep|>original/Gruntfile.js
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-screeps');
grunt.initConfig({
screeps: {
options: {
email: '<EMAIL>',
password: '<PASSWORD>',
branch: 'default'
},
dist: {
... | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-screeps');
grunt.initConfig({
screeps: {
options: {
email: '<EMAIL>',
password: '<PASSWORD>',
branch: 'Survival'
},
dist: {
src: ['dist/*.js']... | <|file_sep|>original/Gruntfile.js
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-screeps');
grunt.initConfig({
screeps: {
options: {
email: '<EMAIL>',
password: '<PASSWORD>',
branch: 'default'
},
dist: {
... | bf97b4eea35b2f9e51c2df134f89b719fd71fd3f | Gruntfile.js | Gruntfile.js | JavaScript |
<|file_sep|>original/paloma.gemspec
Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.4'
s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
s.authors = ["Karl ... | Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.5'
s.summary = "Provides an easy way to execute page-specific javascript for Rails."
s.description = "Page-specific javascript for Rails done right"
s.authors = ["Karl Paragua", "Bia Esmero"]
s.email = 'kb.paragua@gmai... | <|file_sep|>original/paloma.gemspec
Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.4'
s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
s.authors = ["Karl ... | e764f4a65315478b54297a117fec508fc4abab62 | paloma.gemspec | paloma.gemspec | Ruby |
<|file_sep|>src/holston/repository.clj.diff
original:
(println tasting)
updated:
<|file_sep|>original/src/holston/repository.clj
(:use [clojure.java.jdbc :as jdbc]))
;; If DATABASE_URL environment variable is not set, use
;; local PostgreSQL database on port 5432 named holston
(def db (or (System/getenv "DATABAS... | (def db (or (System/getenv "DATABASE_URL")
"postgresql://localhost:5432/holston"))
(defn add-tasting [tasting]
(jdbc/insert! db :tasting tasting))
(defn get-brewery [name]
(first (jdbc/query db ["SELECT id, name FROM brewery WHERE name = ?" name])))
(defn add-brewery [name]
(jdbc/insert! db :brew... | <|file_sep|>src/holston/repository.clj.diff
original:
(println tasting)
updated:
<|file_sep|>original/src/holston/repository.clj
(:use [clojure.java.jdbc :as jdbc]))
;; If DATABASE_URL environment variable is not set, use
;; local PostgreSQL database on port 5432 named holston
(def db (or (System/getenv "DATABAS... | ca37016230e1fb8c2ca34dbf954ed24cdc584c3a | src/holston/repository.clj | src/holston/repository.clj | Clojure |
<|file_sep|>original/test/tutorials/package.json
"name": "tutorials",
"scripts": {
"test:typescript": "ts-node src/typescript.ts",
"test:server": "ts-node src/server.ts",
"test": "npm run test:typescript && npm run test:server"
},
"dependencies": {
"pouchdb-adapter-memory": "7.0.0",
"rxdb": ... | "name": "tutorials",
"scripts": {
"test:typescript": "ts-node src/typescript.ts",
"test:server": "ts-node src/server.ts",
"test": "npm run test:typescript && npm run test:server"
},
"dependencies": {
"pouchdb-adapter-memory": "7.0.0",
"rxdb": "../../"
},
"devDependencies": {
"@types/... | <|file_sep|>original/test/tutorials/package.json
"name": "tutorials",
"scripts": {
"test:typescript": "ts-node src/typescript.ts",
"test:server": "ts-node src/server.ts",
"test": "npm run test:typescript && npm run test:server"
},
"dependencies": {
"pouchdb-adapter-memory": "7.0.0",
"rxdb": ... | 04a9da911c6ad8f9a1327bd190e7e84f7ac546f4 | test/tutorials/package.json | test/tutorials/package.json | JSON |
<|file_sep|>grails-app/services/com/chistacoOrNot/JokeService.groovy.diff
original:
static transactional = true
updated:
static transactional = false
/**
* Return two random jokes
*
* @return two random jokes
*/
<|file_sep|>grails-app/services/com/chistacoOrNot/JokeService.groo... | */
public List<Joke> nextJokes() {
def jokes = Joke.withCriteria {
sqlRestriction "1=1 order by random()"
maxResults 2
}
return jokes
}
/**
* Add a point to a joke
*
* @param The joke to vote
* @return true when done
*/
... | <|file_sep|>grails-app/services/com/chistacoOrNot/JokeService.groovy.diff
original:
static transactional = true
updated:
static transactional = false
/**
* Return two random jokes
*
* @return two random jokes
*/
<|file_sep|>grails-app/services/com/chistacoOrNot/JokeService.groo... | 7dfcf8f93bf11770fe24f9acda199ee43252c944 | grails-app/services/com/chistacoOrNot/JokeService.groovy | grails-app/services/com/chistacoOrNot/JokeService.groovy | Groovy |
<|file_sep|>setup.py.diff
original:
version='0.0.1',
updated:
version='0.0.2',
<|file_sep|>original/setup.py
setup(
name='chrome-webstore-deploy',
version='0.0.1',
description='Automate deployment of Chrome extensions/apps to Chrome Web Store.',
long_description=(read('README.rst') + '\n\n'),
... | setup(
name='chrome-webstore-deploy',
version='0.0.2',
description='Automate deployment of Chrome extensions/apps to Chrome Web Store.',
long_description=(read('README.rst') + '\n\n'),
url='http://github.com/jonnor/chrome-webstore-deploy/',
license='MIT',
author='Jon Nordby',
author_emai... | <|file_sep|>setup.py.diff
original:
version='0.0.1',
updated:
version='0.0.2',
<|file_sep|>original/setup.py
setup(
name='chrome-webstore-deploy',
version='0.0.1',
description='Automate deployment of Chrome extensions/apps to Chrome Web Store.',
long_description=(read('README.rst') + '\n\n'),
... | aa4498eea07bd3a0c09a11782f881312020d725d | setup.py | setup.py | Python |
<|file_sep|>Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs.diff
original:
updated:
using Base;
<|file_sep|>Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs.diff
original:
protected override string UriTemplate => "shows/pl... | protected override IDictionary<string, object> GetUriPathParameters()
{
var uriParams = base.GetUriPathParameters();
if (Period.HasValue && Period.Value != TraktPeriod.Unspecified)
uriParams.Add("period", Period.Value.AsString());
return uriParams;
... | <|file_sep|>Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs.diff
original:
updated:
using Base;
<|file_sep|>Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs.diff
original:
protected override string UriTemplate => "shows/pl... | 056a6b452e8669f9b788d2ce7cd8de95745beb3f | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Common/TraktShowsMostPlayedRequest.cs | C# |
<|file_sep|>Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs.diff
original:
updated:
WebClientUrlUnwrapper.ResolveUrls = true;
<|file_sep|>Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs.diff
original:
updated:
WebClientUrlUnwrapper.ResolveUrls = false;
<|file_sep|>Durwella... | WebClientUrlUnwrapper.ResolveUrls = false;
}
[Test]
public void ShouldReturnGivenLocationIfAuthenticationRequired()
{
var givenUrl = "http://durwella.com/testing/does-not-exist";
var subject = new WebClientUrlUnwrapper
{
Ig... | <|file_sep|>Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs.diff
original:
updated:
WebClientUrlUnwrapper.ResolveUrls = true;
<|file_sep|>Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs.diff
original:
updated:
WebClientUrlUnwrapper.ResolveUrls = false;
<|file_sep|>Durwella... | a27c502ebaae34ef6355942caaaaeff44fa08c01 | Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs | Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs | C# |
<|file_sep|>original/lib/tasks/qa.rake
desc 'Run cane to check quality metrics'
begin
require 'cane/rake_task'
Cane::RakeTask.new(:quality)
rescue LoadError
task :quality
puts 'Cane is not installed, :quality task unavailable'
end
desc 'Show some QA details about the code'
task qa: [:stats, 'doc:stats', :quali... | desc 'Run cane to check quality metrics'
begin
require 'cane/rake_task'
Cane::RakeTask.new(:quality) do |cane|
cane.abc_max = 20
end
rescue LoadError
task :quality
puts 'Cane is not installed, :quality task unavailable'
end
desc 'Show some QA details about the code'
task qa: [:stats, 'doc:stats', :qualit... | <|file_sep|>original/lib/tasks/qa.rake
desc 'Run cane to check quality metrics'
begin
require 'cane/rake_task'
Cane::RakeTask.new(:quality)
rescue LoadError
task :quality
puts 'Cane is not installed, :quality task unavailable'
end
desc 'Show some QA details about the code'
task qa: [:stats, 'doc:stats', :quali... | 43e5c1426ae1b23aacc334dd4d7aaa4c6cfa4207 | lib/tasks/qa.rake | lib/tasks/qa.rake | Ruby |
<|file_sep|>original/register.html
<body>
<script>
function register() {
var emailAddress = document.getElementById("mail").value;
var password = document.getElementById("password").value;
$.post(
"register.php",
{email: emailAddress, password: password},
function(response) {
alert(response);
})... | <body>
<script>
function register() {
var emailAddress = document.getElementById("mail").value;
var password = document.getElementById("password").value;
$.post(
"register.php",
{email: emailAddress, password: password},
function(response) {
alert(response);
if (response.substring(0, 5) == "A n... | <|file_sep|>original/register.html
<body>
<script>
function register() {
var emailAddress = document.getElementById("mail").value;
var password = document.getElementById("password").value;
$.post(
"register.php",
{email: emailAddress, password: password},
function(response) {
alert(response);
})... | 61bfb891acdc38144cdd1990af422aa87facd753 | register.html | register.html | HTML |
<|file_sep|>visan/meta.yaml.diff
original:
- proj
- python
- vtk>=9
updated:
<|file_sep|>visan/meta.yaml.diff
original:
- vtk>=9
updated:
- vtk >=9
<|file_sep|>original/visan/meta.yaml
- harp
- numpy
- proj
- python
- vtk>=9
- wxpython
run:
- coda
- harp
- num... | - python
- vtk >=9
- wxpython
run:
- coda
- harp
- numpy
- proj
- python
- vtk >=9
- wxpython
test:
imports:
- visan.app
- visan.plot.visanplot
app:
entry: visan
icon: logo.png | <|file_sep|>visan/meta.yaml.diff
original:
- proj
- python
- vtk>=9
updated:
<|file_sep|>visan/meta.yaml.diff
original:
- vtk>=9
updated:
- vtk >=9
<|file_sep|>original/visan/meta.yaml
- harp
- numpy
- proj
- python
- vtk>=9
- wxpython
run:
- coda
- harp
- num... | 4fde2c50dd3e2d28c941febb8b3ad5c567327bb9 | visan/meta.yaml | visan/meta.yaml | YAML |
<|file_sep|>src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala.diff
original:
updated:
import java.util.UUID
<|file_sep|>original/src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala
class ReactiveKafkaSubscriberBlackboxSpec(defaultTimeout: FiniteDu... | import scala.concurrent.duration.{FiniteDuration, _}
import scala.language.postfixOps
class ReactiveKafkaSubscriberBlackboxSpec(defaultTimeout: FiniteDuration)
extends SubscriberBlackboxVerification[String](new TestEnvironment(defaultTimeout.toMillis))
with TestNGSuiteLike with ReactiveStreamsTckVerificationBase {... | <|file_sep|>src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala.diff
original:
updated:
import java.util.UUID
<|file_sep|>original/src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala
class ReactiveKafkaSubscriberBlackboxSpec(defaultTimeout: FiniteDu... | 41f1590dea25b7e2eadf6e9d1cd7a9e01cb9cd5d | src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala | src/test/scala/com/softwaremill/react/kafka/ReactiveKafkaSubscriberBlackboxSpec.scala | Scala |
<|file_sep|>original/app.json
{
"name": "Mailgun Example",
"description": "Mailgun Nodejs Example Project",
"repository": "https://github.com/iamchathu/mailgun-nodejs-example",
"logo": "http://blog.mailgun.com/content/images/2014/Jul/Mailgun_Icon.png",
"keywords": ["node", "express", "nodejs","mailgun","email... | {
"name": "Mailgun Example",
"description": "Mailgun Nodejs Example Project",
"repository": "https://github.com/iamchathu/mailgun-nodejs-example",
"logo": "http://blog.mailgun.com/content/images/2014/Jul/Mailgun_Icon.png",
"keywords": ["node", "express", "nodejs","mailgun","email"],
"env": {
"API_KEY": ... | <|file_sep|>original/app.json
{
"name": "Mailgun Example",
"description": "Mailgun Nodejs Example Project",
"repository": "https://github.com/iamchathu/mailgun-nodejs-example",
"logo": "http://blog.mailgun.com/content/images/2014/Jul/Mailgun_Icon.png",
"keywords": ["node", "express", "nodejs","mailgun","email... | a8355f640750f7d7b5a6f5ed0cc41e8248577f77 | app.json | app.json | JSON |
<|file_sep|>modifyurl@2ch.user.js.diff
original:
var dd = document.getElementsByTagName('dd');
updated:
var res = document.getElementsByTagName('dd');
if (res.length < 1) res = document.getElementsByClassName('message');
<|file_sep|>original/modifyurl@2ch.user.js
(function(){
'use strict';
var anchor = do... |
var anchor = document.getElementsByTagName('a');
for (var a of anchor) {
if (a.href.indexOf('http://jump.2ch.net/?') === 0) {
a.href = decodeURIComponent(a.href.slice(21)); // 'http://jump.2ch.net/?'.length -> 21
}
else if (a.href.indexOf('http://pinktower.com/?') === 0) {
a.href = decode... | <|file_sep|>modifyurl@2ch.user.js.diff
original:
var dd = document.getElementsByTagName('dd');
updated:
var res = document.getElementsByTagName('dd');
if (res.length < 1) res = document.getElementsByClassName('message');
<|file_sep|>original/modifyurl@2ch.user.js
(function(){
'use strict';
var anchor = do... | e83326d205f93c166d4e4e65aa7fe5117a345b8c | modifyurl@2ch.user.js | modifyurl@2ch.user.js | JavaScript |
<|file_sep|>original/spec/features/dashboard_spec.rb
<|file_sep|>current/spec/features/dashboard_spec.rb
<|file_sep|>updated/spec/features/dashboard_spec.rb | require 'spec_helper'
describe 'dashboard' do
let!(:exists_user) { build(:user) }
before { login_with exists_user }
context 'no configuration' do
before { visit '/' }
it do
page.should have_css('h1', text: 'fluentd')
page.should have_link(I18n.t('terms.setup', target: 'fluentd'))
pag... | <|file_sep|>original/spec/features/dashboard_spec.rb
<|file_sep|>current/spec/features/dashboard_spec.rb
<|file_sep|>updated/spec/features/dashboard_spec.rb
require 'spec_helper'
describe 'dashboard' do
let!(:exists_user) { build(:user) }
before { login_with exists_user }
context 'no configuration' do
be... | 566d167c7f3267f0c7a6c199aa8a388bd21916fc | spec/features/dashboard_spec.rb | spec/features/dashboard_spec.rb | Ruby |
<|file_sep|>original/index.js
files.push(pattern(path.join(__dirname, 'runner.js'), true));
};
var createProxyForDirectory = function (directory) {
return function (request, response, next) {
var filePath = path.join(directory, request.url.replace('/base/', ''));
fs.exists(filePath, function (e... | files.push(pattern(path.join(__dirname, 'runner.js'), true));
};
var createProxyForDirectory = function (directory) {
return function (request, response, next) {
if (!request.url.startsWith('/base/')) {
var filePath = path.join(directory, request.url);
fs.exists(filePath, functi... | <|file_sep|>original/index.js
files.push(pattern(path.join(__dirname, 'runner.js'), true));
};
var createProxyForDirectory = function (directory) {
return function (request, response, next) {
var filePath = path.join(directory, request.url.replace('/base/', ''));
fs.exists(filePath, function (e... | ad7a8ebb6994ad425c8429a052ef0abc91365ada | index.js | index.js | JavaScript |
<|file_sep|>original/appveyor.yml
.\bootstrap-vcpkg.bat)
- cd C:/projects/vcpkg
- .\vcpkg integrate install
- .\vcpkg install gtest:x64-windows
- .\vcpkg install gtest:x86-windows
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G"Visual Studio 15 2017 Win64" -DCMAKE_T... | .\bootstrap-vcpkg.bat)
- cd C:/projects/vcpkg
- .\vcpkg integrate install
- .\vcpkg install gtest:x64-windows
- .\vcpkg install gtest:x86-windows
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G"Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE=C:/projects/vcpkg/sc... | <|file_sep|>original/appveyor.yml
.\bootstrap-vcpkg.bat)
- cd C:/projects/vcpkg
- .\vcpkg integrate install
- .\vcpkg install gtest:x64-windows
- .\vcpkg install gtest:x86-windows
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G"Visual Studio 15 2017 Win64" -DCMAKE_T... | d922f2419423103b588b87c88614504060b43ea8 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>recipes/h5py/meta.yaml.diff
original:
{% set version = "2.6.0" %}
updated:
{% set version = "2.7.0" %}
<|file_sep|>original/recipes/h5py/meta.yaml
source:
fn: h5py-{{ version }}.tar.gz
url: https://github.com/h5py/h5py/archive/{{ version }}.tar.gz
md5: 613c5776192eaf02ff96a82dfc6d2e78
patches:
... |
source:
fn: h5py-{{ version }}.tar.gz
url: https://github.com/h5py/h5py/archive/{{ version }}.tar.gz
sha256: fff3a878c6adfa1b4f5c30b558a295d52dd4fee9174128c626ef416dec1b536b
build:
number: 0
requirements:
build:
- python
- setuptools
- numpy x.x
- hdf5 1.8.17|1.8.17.*
- cython
- six... | <|file_sep|>recipes/h5py/meta.yaml.diff
original:
{% set version = "2.6.0" %}
updated:
{% set version = "2.7.0" %}
<|file_sep|>original/recipes/h5py/meta.yaml
source:
fn: h5py-{{ version }}.tar.gz
url: https://github.com/h5py/h5py/archive/{{ version }}.tar.gz
md5: 613c5776192eaf02ff96a82dfc6d2e78
patches:
... | 108c4f5b022a2c77d8d77c444bb53c280822ec09 | recipes/h5py/meta.yaml | recipes/h5py/meta.yaml | YAML |
<|file_sep|>original/README.md
# go-winio
This repository contains utilities for efficiently performing Win32 IO operations in
Go. Currently, this is focused on accessing named pipes and other file handles, and
for using named pipes as a net transport.
This code relies on IO completion ports to avoid blocking IO on s... | # go-winio [](https://github.com/microsoft/go-winio/actions/workflows/ci.yml)
This repository contains utilities for efficiently performing Win32 IO operations in
Go. Currently, this is focused on accessing named pipes and other f... | <|file_sep|>original/README.md
# go-winio
This repository contains utilities for efficiently performing Win32 IO operations in
Go. Currently, this is focused on accessing named pipes and other file handles, and
for using named pipes as a net transport.
This code relies on IO completion ports to avoid blocking IO on s... | 090e4c6b27d46dd427cc00f12659fa329979599c | README.md | README.md | Markdown |
<|file_sep|>original/public/routing.php
<|file_sep|>current/public/routing.php
<|file_sep|>updated/public/routing.php | <?php
if (file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])
|| file_exists(__DIR__ . '/' . strtok($_SERVER['REQUEST_URI'], '?'))) {
return false; // serve the requested resource as-is.
} else {
include_once 'index.php';
} | <|file_sep|>original/public/routing.php
<|file_sep|>current/public/routing.php
<|file_sep|>updated/public/routing.php
<?php
if (file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])
|| file_exists(__DIR__ . '/' . strtok($_SERVER['REQUEST_URI'], '?'))) {
return false; // serve the requested resource as-is.
} else {... | 0cee6e958821547653003008082d61f604bc42cf | public/routing.php | public/routing.php | PHP |
<|file_sep|>original/js/pwi.js
pwi_form = function() {
var $viewerSelected = 'fancybox',
settings = {
username: 'brianc@palaver.net',
popupPlugin: $viewerSelected,
showPhotoDownload: true,
showPhotoCaption: true,
thumbSize: 1024,
photoSize: 1600,
showPhotoD... | pwi_form = function() {
var $viewerSelected = 'fancybox',
settings = {
username: 'brianc@palaver.net',
popupPlugin: $viewerSelected,
showPhotoDownload: true,
showPhotoCaption: true,
thumbSize: 1024,
photoSize: 1600,
showPhotoDate: true,
maxResults: 1,
... | <|file_sep|>original/js/pwi.js
pwi_form = function() {
var $viewerSelected = 'fancybox',
settings = {
username: 'brianc@palaver.net',
popupPlugin: $viewerSelected,
showPhotoDownload: true,
showPhotoCaption: true,
thumbSize: 1024,
photoSize: 1600,
showPhotoD... | 3dacdfb5da2da34e48ca0994f8b640c0e204d95a | js/pwi.js | js/pwi.js | JavaScript |
<|file_sep|>original/lib/plugins/ticker/coinbase/coinbase.js
method: 'get',
url: `https://api.coinbase.com/v2/prices/${currencyPair}/sell`,
headers: {'CB-Version': '2017-07-10'}
})
.then(r => r.data)
}
function ticker (account, fiatCode, cryptoCode) {
return Promise.resolve()
.then(() => {
... | method: 'get',
url: `https://api.coinbase.com/v2/prices/${currencyPair}/sell`,
headers: {'CB-Version': '2017-07-10'}
})
.then(r => r.data)
}
function ticker (account, fiatCode, cryptoCode) {
return Promise.resolve()
.then(() => {
if (!_.includes(cryptoCode, ['BTC', 'ETH', 'LTC', 'BCH', 'Z... | <|file_sep|>original/lib/plugins/ticker/coinbase/coinbase.js
method: 'get',
url: `https://api.coinbase.com/v2/prices/${currencyPair}/sell`,
headers: {'CB-Version': '2017-07-10'}
})
.then(r => r.data)
}
function ticker (account, fiatCode, cryptoCode) {
return Promise.resolve()
.then(() => {
... | 60bcaf4ec4f4ecf4f0add2d2823eaa8dbcfdb738 | lib/plugins/ticker/coinbase/coinbase.js | lib/plugins/ticker/coinbase/coinbase.js | JavaScript |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
branches:
only:
- master
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
branches:
only:
- master
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
branches:
only:
- master
| <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
branches:
only:
- master
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
branches:
only:
- master
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
... | 9098aa92c95a3b60a3512c2fa9a3fcbda6522e58 | .travis.yml | .travis.yml | YAML |
<|file_sep|>tests/laundry_test.py.diff
original:
import unittest
updated:
from nose.tools import ok_, eq_
<|file_sep|>tests/laundry_test.py.diff
original:
class TestLaundry(unittest.TestCase):
updated:
class TestLaundry():
<|file_sep|>tests/laundry_test.py.diff
original:
self.assertEquals('Class of 1925 House',... | data = self.laundry.all_status()
eq_(55, len(data))
eq_('Class of 1925 House', data[0]['name'])
# Check all halls have appropriate data points
for i, hall in enumerate(data):
eq_(hall['hall_no'], i)
ok_(hall['dryers_available'] >= 0)
ok_(hall['... | <|file_sep|>tests/laundry_test.py.diff
original:
import unittest
updated:
from nose.tools import ok_, eq_
<|file_sep|>tests/laundry_test.py.diff
original:
class TestLaundry(unittest.TestCase):
updated:
class TestLaundry():
<|file_sep|>tests/laundry_test.py.diff
original:
self.assertEquals('Class of 1925 House',... | 6a2fb450eb51d46fe4ab53dd4095527ecdcc9266 | tests/laundry_test.py | tests/laundry_test.py | Python |
<|file_sep|>original/config.mk
# wmii version
VERSION = $$(hg tip | awk -F '[: ]+' '/^changeset:/ { print "hg" $$2 }')
CONFVERSION = 3.5
# Customize below to fit your system
# paths
PREFIX = /usr/local
CONFPREFIX = ${PREFIX}/etc
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# i... | # wmii version
VERSION = $$(hg tip --template 'hg\#rev\#')
CONFVERSION = 3.5
# Customize below to fit your system
# paths
PREFIX = /usr/local
CONFPREFIX = ${PREFIX}/etc
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# includes and libs
INCS = -I. -I${PREFIX}/include -I/usr/inclu... | <|file_sep|>original/config.mk
# wmii version
VERSION = $$(hg tip | awk -F '[: ]+' '/^changeset:/ { print "hg" $$2 }')
CONFVERSION = 3.5
# Customize below to fit your system
# paths
PREFIX = /usr/local
CONFPREFIX = ${PREFIX}/etc
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# i... | 4c3c083ba18e6638ba198fc0ccc2ec810d23cb5e | config.mk | config.mk | Makefile |
<|file_sep|>ui/src/pages/portfolio/index.scss.diff
original:
updated:
<|file_sep|>ui/src/pages/portfolio/index.scss.diff
original:
:nth-child(1) a {
updated:
// :nth-child(1) a {
// background: #d81f44;
// &:hover {
// background-color: lighten(_palette(accent3, bg), 7);
// color: _palette(ac... | // background: #d81f44;
// &:hover {
// background-color: lighten(_palette(accent3, bg), 7);
// color: _palette(accent3, fg-bold) !important;
// }
// }
// :nth-child(2) a {
// background: #0093BF;
// &:hover {
// background-color: lighten(_palette(accent1, bg), 7);
// col... | <|file_sep|>ui/src/pages/portfolio/index.scss.diff
original:
updated:
<|file_sep|>ui/src/pages/portfolio/index.scss.diff
original:
:nth-child(1) a {
updated:
// :nth-child(1) a {
// background: #d81f44;
// &:hover {
// background-color: lighten(_palette(accent3, bg), 7);
// color: _palette(ac... | ba060289d0fc1f68fbaf081882b8c1be795d2bcf | ui/src/pages/portfolio/index.scss | ui/src/pages/portfolio/index.scss | SCSS |
<|file_sep|>original/manifest.staging.yml
---
applications:
- name: performance-platform-spotlight-staging
memory: 1G
buildpack: "https://github.com/alphagov/spotlight/releases/download/oldjs_buildpack/nodejs_buildpack-cached-cflinuxfs3-v1.6.48.zip"
instances: 2
command: "npm run build:production && n... | ---
applications:
- name: performance-platform-spotlight-staging
memory: 1G
buildpack: "https://github.com/alphagov/spotlight/releases/download/oldjs_buildpack/nodejs_buildpack-cached-cflinuxfs3-v1.6.48.zip"
instances: 2
command: "npm run build:production && node app/server"
stack: cflinuxfs3
... | <|file_sep|>original/manifest.staging.yml
---
applications:
- name: performance-platform-spotlight-staging
memory: 1G
buildpack: "https://github.com/alphagov/spotlight/releases/download/oldjs_buildpack/nodejs_buildpack-cached-cflinuxfs3-v1.6.48.zip"
instances: 2
command: "npm run build:production && n... | 515cf84a0f6d3bfcfcfc03d5abd1af2c954f5c53 | manifest.staging.yml | manifest.staging.yml | YAML |
<|file_sep|>original/.travis.yml
language: php
dist: trusty
matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
env: ANALYSIS='true'
- php: 8.0
- php: nightly
allow_failures:
- php: nightly
before_script:
- if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-cover... | language: php
dist: bionic
matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
env: ANALYSIS='true'
- php: 8.0
- php: nightly
allow_failures:
- php: nightly
before_script:
- if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-coveralls:^2.1.0 ; fi
- composer ins... | <|file_sep|>original/.travis.yml
language: php
dist: trusty
matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
env: ANALYSIS='true'
- php: 8.0
- php: nightly
allow_failures:
- php: nightly
before_script:
- if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-cover... | 745368bc1b294dff43c8bccd4e224f4b65cbebe4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/bo/bookhound.yaml.diff
original:
hash: 4609c30d8a4386e0ca72dd6854af01917172035144d3dd3cf262f8726fbdb034
updated:
hash: 4c2e110c9d263c46cff6e35ea520ac0d0fefe4b8c94c0ccd45c7ca89f7a0c95d
<|file_sep|>packages/bo/bookhound.yaml.diff
original:
split: '>=0.2.3 && <0.3'
updated:
<|file_sep|>packages/bo/... | changelog-type: ''
hash: 4c2e110c9d263c46cff6e35ea520ac0d0fefe4b8c94c0ccd45c7ca89f7a0c95d
test-bench-deps: {}
maintainer: albertoperez1994@gmail.com
synopsis: Simple Parser Combinators & Parsers for usual data formats
changelog: ''
basic-deps:
base: '>=4.7 && <5'
time: '>=1.9 && <2'
containers: '>=0.6 && <1'
all-... | <|file_sep|>packages/bo/bookhound.yaml.diff
original:
hash: 4609c30d8a4386e0ca72dd6854af01917172035144d3dd3cf262f8726fbdb034
updated:
hash: 4c2e110c9d263c46cff6e35ea520ac0d0fefe4b8c94c0ccd45c7ca89f7a0c95d
<|file_sep|>packages/bo/bookhound.yaml.diff
original:
split: '>=0.2.3 && <0.3'
updated:
<|file_sep|>packages/bo/... | 068eddc3ff397ad5d16475eb7b2cdd02bfa1646a | packages/bo/bookhound.yaml | packages/bo/bookhound.yaml | YAML |
<|file_sep|>src/main/webapp/WEB-INF/web.xml.diff
original:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
updated:
<web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
<|file_sep|>original/src/main/webapp/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java... | <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-pa... | <|file_sep|>src/main/webapp/WEB-INF/web.xml.diff
original:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
updated:
<web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
<|file_sep|>original/src/main/webapp/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java... | 89f489bc95abf1a4f5442d0150c8adbccab24956 | src/main/webapp/WEB-INF/web.xml | src/main/webapp/WEB-INF/web.xml | XML |
<|file_sep|>packages/gl/glazier.yaml.diff
original:
hash: 7c81616c66f9e612c6a2d62dbd20b6d145c54db82322d2c513adb0ef236bc914
updated:
hash: 60951fb9b0a34b7b7a46eb104a1a17637252974e6c3d95942cbbc2fe2587ef07
<|file_sep|>packages/gl/glazier.yaml.diff
original:
updated:
- '0.6.2.0'
<|file_sep|>original/packages/gl/glazier.ya... | test-bench-deps: {}
maintainer: louis@pan.me
synopsis: Composable widgets framework
changelog: ''
basic-deps:
semigroupoids: ! '>=5 && <6'
base: ! '>=4.7 && <5'
lens: ! '>=4 && <5'
mtl: ! '>=2 && <3'
mmorph: ! '>=1 && <2'
transformers: ! '>=0.4 && <0.6'
profunctors: ! '>=5 && <6'
all-versions:
- '0.6.0.0'... | <|file_sep|>packages/gl/glazier.yaml.diff
original:
hash: 7c81616c66f9e612c6a2d62dbd20b6d145c54db82322d2c513adb0ef236bc914
updated:
hash: 60951fb9b0a34b7b7a46eb104a1a17637252974e6c3d95942cbbc2fe2587ef07
<|file_sep|>packages/gl/glazier.yaml.diff
original:
updated:
- '0.6.2.0'
<|file_sep|>original/packages/gl/glazier.ya... | 7d09f095b10bee8c78afa7e8c91b01dacbf842e1 | packages/gl/glazier.yaml | packages/gl/glazier.yaml | YAML |
<|file_sep|>original/radio-tv/src/main/scripts/check.sh
<|file_sep|>current/radio-tv/src/main/scripts/check.sh
<|file_sep|>updated/radio-tv/src/main/scripts/check.sh | #!/bin/bash
#
# Check if ingester is running and optionally start it again if the
# queue is not empty
#
# Start if stopped?
autostart=1
# Where are we?
BASEDIR=$(dirname $(dirname $(readlink -f $0)))
# Setup and helpers
source $BASEDIR/bin/domsingester-lib.sh
# Main
status=$($DOMSINGEST_INIT status)
case $status i... | <|file_sep|>original/radio-tv/src/main/scripts/check.sh
<|file_sep|>current/radio-tv/src/main/scripts/check.sh
<|file_sep|>updated/radio-tv/src/main/scripts/check.sh
#!/bin/bash
#
# Check if ingester is running and optionally start it again if the
# queue is not empty
#
# Start if stopped?
autostart=1
# Where are w... | 8de28112c07b8d016acc470925d7b68a7d17dfe6 | radio-tv/src/main/scripts/check.sh | radio-tv/src/main/scripts/check.sh | Shell |
<|file_sep|>utils/backoff.go.diff
original:
attempt, Factor float64
updated:
attempt, Factor int
<|file_sep|>utils/backoff.go.diff
original:
func (b *Backoff) Duration(attempt float64) time.Duration {
d := b.SetDuration(b.attempt)
updated:
func (b *Backoff) Duration(attempt int) time.Duration {
d := b.CalcDuration(... |
// Calculate the wait duration.
duration := float64(b.Min) * math.Pow(float64(b.Factor), float64(attempt))
// Cap it at the maximum value.
if duration > float64(b.Max) {
return b.Max
}
return time.Duration(duration)
}
// Reset clears the number of attempts once the API call has succeeded.
func (b *Backoff) ... | <|file_sep|>utils/backoff.go.diff
original:
attempt, Factor float64
updated:
attempt, Factor int
<|file_sep|>utils/backoff.go.diff
original:
func (b *Backoff) Duration(attempt float64) time.Duration {
d := b.SetDuration(b.attempt)
updated:
func (b *Backoff) Duration(attempt int) time.Duration {
d := b.CalcDuration(... | c0cdd8d2bb7e5980694459bf2e6f1959c8efd91d | utils/backoff.go | utils/backoff.go | Go |
<|file_sep|>original/test/e2e/console/console-eval-global_test.ts
<|file_sep|>current/test/e2e/console/console-eval-global_test.ts
<|file_sep|>updated/test/e2e/console/console-eval-global_test.ts | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import {describe, it} from 'mocha';
import {click, getBrowserAndPages, pasteText, step} from '../../shared/helper.js';
impor... | <|file_sep|>original/test/e2e/console/console-eval-global_test.ts
<|file_sep|>current/test/e2e/console/console-eval-global_test.ts
<|file_sep|>updated/test/e2e/console/console-eval-global_test.ts
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license... | 19c6bc0fe056a2430b0530d16bbf980a14b7b65b | test/e2e/console/console-eval-global_test.ts | test/e2e/console/console-eval-global_test.ts | TypeScript |
<|file_sep|>original/library.properties
name=Google Cloud IoT Core JWT
version=1.1.2
author=Vladimir Korukov <mrvladimir@gusclass.com>
maintainer=Gus Class <github@gusclass.com>
sentence=Demonstrates JWT generation for connecting Arduino clients to Google Cloud IoT Core.
paragraph=Experimental library for trying out Go... | name=Google Cloud IoT Core JWT
version=1.1.3
author=Vladimir Korukov <mrvladimir@gusclass.com>
maintainer=Gus Class <github@gusclass.com>
sentence=Demonstrates JWT generation for connecting Arduino clients to Google Cloud IoT Core.
paragraph=Experimental library for trying out Google Cloud IoT Core. Note that the libra... | <|file_sep|>original/library.properties
name=Google Cloud IoT Core JWT
version=1.1.2
author=Vladimir Korukov <mrvladimir@gusclass.com>
maintainer=Gus Class <github@gusclass.com>
sentence=Demonstrates JWT generation for connecting Arduino clients to Google Cloud IoT Core.
paragraph=Experimental library for trying out Go... | 02aeb13d928c5aba06539e028acd3de727e029fb | library.properties | library.properties | INI |
<|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy
env:
- secure: "EhG2uSD2m1eGxuL2HeQewJJx7MVL4WpjrxyfiUBEgsApemD1yKJPjUnLwAyd\nbPi5HJx5ySm1TTRSvj6/yP85YLYTaJHA8OabKk7p0wFW294qcrYIDGovU7NL\n3YOqZmqN+S3XOBGFCOnByxE+pcxxWW/3/I09EgeW7D6tBPh67G0="
install:
- pip install pytest p... | language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy
- pypy3
env:
- secure: "EhG2uSD2m1eGxuL2HeQewJJx7MVL4WpjrxyfiUBEgsApemD1yKJPjUnLwAyd\nbPi5HJx5ySm1TTRSvj6/yP85YLYTaJHA8OabKk7p0wFW294qcrYIDGovU7NL\n3YOqZmqN+S3XOBGFCOnByxE+pcxxWW/3/I09EgeW7D6tBPh67G0="
install:
- pip install pytest pytest-xdist 'pytest-cov>=... | <|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy
env:
- secure: "EhG2uSD2m1eGxuL2HeQewJJx7MVL4WpjrxyfiUBEgsApemD1yKJPjUnLwAyd\nbPi5HJx5ySm1TTRSvj6/yP85YLYTaJHA8OabKk7p0wFW294qcrYIDGovU7NL\n3YOqZmqN+S3XOBGFCOnByxE+pcxxWW/3/I09EgeW7D6tBPh67G0="
install:
- pip install pytest p... | d64e2b33f0d73cf83c6fa4d4315d1a583e5b6bd3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/run_local_server.py
"""Launch."""
from dnstwister import app
app.run(debug=True)
<|file_sep|>current/run_local_server.py
"""Launch."""
from dnstwister import app
app.run(debug=True)
<|file_sep|>updated/run_local_server.py | """Launch."""
from dnstwister import app
# At least until https://github.com/pallets/flask/pull/1910 is merged...
app.jinja_env.auto_reload = True
app.run(debug=True) | <|file_sep|>original/run_local_server.py
"""Launch."""
from dnstwister import app
app.run(debug=True)
<|file_sep|>current/run_local_server.py
"""Launch."""
from dnstwister import app
app.run(debug=True)
<|file_sep|>updated/run_local_server.py
"""Launch."""
from dnstwister import app
# At least until https://github.com... | b9c30e894c313400b7f3bfc007c39fa6e1d5ee76 | run_local_server.py | run_local_server.py | Python |
<|file_sep|>original/.travis.yml
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- DB=MYSQL CORE_RELEASE=3.2
matrix:
include:
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.3
before_script:
- composer self-update ... |
sudo: false
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- DB=MYSQL CORE_RELEASE=3
before_script:
- composer self-update || true
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds... | <|file_sep|>original/.travis.yml
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- DB=MYSQL CORE_RELEASE=3.2
matrix:
include:
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.3
before_script:
- composer self-update ... | e06b90d2390d0ddf53f07ebae3d15337a3dc0f3e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/runtime/package.json
{
"name": "extensible-runtime",
"version": "4.0.1",
"description": "Multiple definitions of __extensible_get__ used by extensible-destructuring Babel plugin",
"author": "Tomas Kulich <tomas.kulich@gmail.com>",
"main": "lib/runtime.js",
"scripts": {
"clean": "rm ... | {
"name": "extensible-runtime",
"version": "4.0.1",
"description": "Multiple definitions of __extensible_get__ used by extensible-destructuring Babel plugin",
"author": "Tomas Kulich <tomas.kulich@gmail.com>",
"main": "lib/runtime.js",
"scripts": {
"clean": "rm -rf lib",
"build": "rm -rf lib; babel ... | <|file_sep|>original/runtime/package.json
{
"name": "extensible-runtime",
"version": "4.0.1",
"description": "Multiple definitions of __extensible_get__ used by extensible-destructuring Babel plugin",
"author": "Tomas Kulich <tomas.kulich@gmail.com>",
"main": "lib/runtime.js",
"scripts": {
"clean": "rm ... | cc7f20c80d87d5c8303e4859443c8cf147bec93d | runtime/package.json | runtime/package.json | JSON |
<|file_sep|>original/test/IntegrationTest.java
import static org.junit.Assert.*;
import static org.fluentlenium.core.filter.FilterConstructor.*;
public class IntegrationTest {
/**
* add your integration test here
* in this example we just check if the welcome page is being shown
*/
@Test
p... | import static org.junit.Assert.*;
import static org.fluentlenium.core.filter.FilterConstructor.*;
public class IntegrationTest {
/**
* add your integration test here
* in this example we just check if the welcome page is being shown
*/
@Test
public void test() {
running(testServer(... | <|file_sep|>original/test/IntegrationTest.java
import static org.junit.Assert.*;
import static org.fluentlenium.core.filter.FilterConstructor.*;
public class IntegrationTest {
/**
* add your integration test here
* in this example we just check if the welcome page is being shown
*/
@Test
p... | 1bbf3d5d714c4875f53aa9cd340e22403de0a156 | test/IntegrationTest.java | test/IntegrationTest.java | Java |
<|file_sep|>original/test/Concurrency/Runtime/task_destruction.swift
<|file_sep|>current/test/Concurrency/Runtime/task_destruction.swift
<|file_sep|>updated/test/Concurrency/Runtime/task_destruction.swift | // RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -disable-availability-checking) | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: concurrency
// REQUIRES: concurrency_runtime
// UNSUPPORTED: back_deployment_runtime
class C {}
@_silgen_name("exit")
func exit(_ code : UInt32) -> Never
@main
enum... | <|file_sep|>original/test/Concurrency/Runtime/task_destruction.swift
<|file_sep|>current/test/Concurrency/Runtime/task_destruction.swift
<|file_sep|>updated/test/Concurrency/Runtime/task_destruction.swift
// RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -disable-availability-checking) | %FileCheck %s
// ... | 3c6f6f283a28ee4df608d2f65284b5ce8a4d81b1 | test/Concurrency/Runtime/task_destruction.swift | test/Concurrency/Runtime/task_destruction.swift | Swift |
<|file_sep|>original/.travis.yml
global:
- ZMQ="3.2.5"
matrix:
- GROUP=unit
- GROUP=functional
cache:
apt: true
directories:
- node_modules
- zeromq-$ZMQ
before_install:
- source travis_before_install
install: env LD_LIBRARY_PATH=$LDHACK/lib LD_RUN_PATH=$LDHACK/lib PKG_CONFIG_PATH=$LDHACK/lib... | matrix:
- GROUP=unit
- GROUP=functional
cache:
apt: true
directories:
- node_modules
- zeromq-$ZMQ
before_install:
- source travis_before_install
- pip install jupyter_console --user
- jupyter kernelspec install-self --user
install: env LD_LIBRARY_PATH=$LDHACK/lib LD_RUN_PATH=$LDHACK/lib PKG_... | <|file_sep|>original/.travis.yml
global:
- ZMQ="3.2.5"
matrix:
- GROUP=unit
- GROUP=functional
cache:
apt: true
directories:
- node_modules
- zeromq-$ZMQ
before_install:
- source travis_before_install
install: env LD_LIBRARY_PATH=$LDHACK/lib LD_RUN_PATH=$LDHACK/lib PKG_CONFIG_PATH=$LDHACK/lib... | 54d84c769dbf9113be3a9e1d7d40ea39bd6c48ed | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/csunplugged/tests/resources/generators/test_run_length_encoding.py
<|file_sep|>current/csunplugged/tests/resources/generators/test_run_length_encoding.py
<|file_sep|>updated/csunplugged/tests/resources/generators/test_run_length_encoding.py | from unittest import mock
from django.http import QueryDict
from django.test import tag
from resources.generators.RunLengthEncodingResourceGenerator import RunLengthEncodingResourceGenerator
from tests.resources.generators.utils import BaseGeneratorTest
@tag("resource")
class RunLengthEncodingResourceGeneratorTest(Ba... | <|file_sep|>original/csunplugged/tests/resources/generators/test_run_length_encoding.py
<|file_sep|>current/csunplugged/tests/resources/generators/test_run_length_encoding.py
<|file_sep|>updated/csunplugged/tests/resources/generators/test_run_length_encoding.py
from unittest import mock
from django.http import QueryD... | b223c8be2bcb11d529a07997c05a9c5ab2b183b2 | csunplugged/tests/resources/generators/test_run_length_encoding.py | csunplugged/tests/resources/generators/test_run_length_encoding.py | Python |
<|file_sep|>original/shadowcraft-setup.sh
cd /var/www
git clone https://github.com/cheald/shadowcraft-ui
cd shadowcraft-ui
# Post-clone setup for the UI
gem install bundler
bundle install
bundle install --deployment
chown -R deploy:deploy /var/www/shadowcraft-ui
# Now that we have the actual site loaded, restart ngin... | cd /var/www
git clone https://github.com/cheald/shadowcraft-ui
cd shadowcraft-ui
# Post-clone setup for the UI
gem install bundler
bundle install
bundle install --deployment
chown -R deploy:deploy /var/www/shadowcraft-ui
cp /var/www/shadowcraft-ui/backend/shadowcraft-engine.conf /etc/init
service shadowcraft-engine ... | <|file_sep|>original/shadowcraft-setup.sh
cd /var/www
git clone https://github.com/cheald/shadowcraft-ui
cd shadowcraft-ui
# Post-clone setup for the UI
gem install bundler
bundle install
bundle install --deployment
chown -R deploy:deploy /var/www/shadowcraft-ui
# Now that we have the actual site loaded, restart ngin... | c2b2d0162a0b8d9a80ed409fb221d6f042abf1a2 | shadowcraft-setup.sh | shadowcraft-setup.sh | Shell |
<|file_sep|>original/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java
<|file_sep|>current/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java
<|file_sep|>updated/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java | package com.simplelwm2m.simplelwm2m;
import java.util.Random;
public class MockLwmM2mClientDemo {
/**
* Create a mock client that registers to a LWM2M server running on the localhost
* @param args
*/
public static void main(String[] args) {
Random rng = new Random();
String serve... | <|file_sep|>original/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java
<|file_sep|>current/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java
<|file_sep|>updated/src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java
package com.simplelwm2m.simplelwm2m;
import java.uti... | ea1f68bdca6977345a8b8a1ade32005479b6e6bc | src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java | src/main/java/com/simplelwm2m/simplelwm2m/MockLwmM2mClientDemo.java | Java |
<|file_sep|>original/INSTALL.md
git clone https://github.com/arnaudmorin/GangBangLinux.git
```
### Run ansible playbook
```bash
cd GangBangLinux/
ansible-playbook -i hosts --ask-become-pass site.yml
```
### Check network config
Comment out or remove any network configuration in /etc/network/interfaces, so that Netwo... | git clone https://github.com/arnaudmorin/GangBangLinux.git
```
### Run ansible playbook
```bash
cd GangBangLinux/
ansible-playbook -i hosts --ask-become-pass site.yml
```
The playbook will install and configure your computer. This may take a while. You can have some logs about the installing packages by tailing the ... | <|file_sep|>original/INSTALL.md
git clone https://github.com/arnaudmorin/GangBangLinux.git
```
### Run ansible playbook
```bash
cd GangBangLinux/
ansible-playbook -i hosts --ask-become-pass site.yml
```
### Check network config
Comment out or remove any network configuration in /etc/network/interfaces, so that Netwo... | d2731c3645ba373cc8e4d9a6759473044b3c3eaa | INSTALL.md | INSTALL.md | Markdown |
<|file_sep|>original/example/prod/docker-compose.yml
version: '2'
services:
kinesis-filebeat:
image: shannonlal/kinesis-filebeat:1.0.4
env_file: .env
volumes:
- /Users/developer/Code/kinesis-filebeat/logs:/var/log
#volumes:
# data:
# driver: local
# driver_opts:... | version: '2'
services:
kinesis-filebeat:
image: shannonlal/kinesis-filebeat:1.0.4
env_file: .env
volumes:
- /home/ubuntu/kinesis-filebeat/logs:/var/log
#volumes:
# data:
# driver: local
# driver_opts:
# source: /Users/developer/Code/kinesis-filebeat/l... | <|file_sep|>original/example/prod/docker-compose.yml
version: '2'
services:
kinesis-filebeat:
image: shannonlal/kinesis-filebeat:1.0.4
env_file: .env
volumes:
- /Users/developer/Code/kinesis-filebeat/logs:/var/log
#volumes:
# data:
# driver: local
# driver_opts:... | e1c9d861ada1b73c841d55ef6ec76dc7e13b3cd9 | example/prod/docker-compose.yml | example/prod/docker-compose.yml | YAML |
<|file_sep|>original/app/views/shared/_inbox_navbar.html.erb
<div class="navbar navbar-tabs">
<ul class="nav nav-tabs nav-tabs-lg pull-left">
<li>
<%= link_to inbox_account_conversations_path(@account), class: "#{'active' if current_page?(inbox_account_conversations_path(@account)) }" do %>
... | <div class="container">
<div class="navbar navbar-tabs">
<ul class="nav nav-tabs nav-tabs-lg pull-left">
<li>
<%= link_to inbox_account_conversations_path(@account), class: "#{'active' if current_page?(inbox_account_conversations_path(@account)) }" do %>
Inbox
<span class="badge"... | <|file_sep|>original/app/views/shared/_inbox_navbar.html.erb
<div class="navbar navbar-tabs">
<ul class="nav nav-tabs nav-tabs-lg pull-left">
<li>
<%= link_to inbox_account_conversations_path(@account), class: "#{'active' if current_page?(inbox_account_conversations_path(@account)) }" do %>
... | 19064071252bb1e022b9b5cdc4c47ba25ad25115 | app/views/shared/_inbox_navbar.html.erb | app/views/shared/_inbox_navbar.html.erb | HTML+ERB |
<|file_sep|>original/client/third_party/idna/__init__.py
# Emulate the bare minimum for idna for the Swarming bot.
# In practice, we do not need it, and it's very large.
def encode(host, uts46):
return unicode(host)
<|file_sep|>current/client/third_party/idna/__init__.py
# Emulate the bare minimum for idna for the Sw... | # Emulate the bare minimum for idna for the Swarming bot.
# In practice, we do not need it, and it's very large.
# See https://pypi.org/project/idna/
from encodings import idna
def encode(host, uts46=False): # pylint: disable=unused-argument
# Used by urllib3
return idna.ToASCII(host)
def decode(host):
# Us... | <|file_sep|>original/client/third_party/idna/__init__.py
# Emulate the bare minimum for idna for the Swarming bot.
# In practice, we do not need it, and it's very large.
def encode(host, uts46):
return unicode(host)
<|file_sep|>current/client/third_party/idna/__init__.py
# Emulate the bare minimum for idna for the Sw... | bdc0466c63347280fbd8bc8c30fb07f294200194 | client/third_party/idna/__init__.py | client/third_party/idna/__init__.py | Python |
<|file_sep|>original/config/jobs/kubernetes-sigs/kube-scheduler-simulator/kube-scheduler-simulator-presubmits-test-backend.yaml
# sigs.k8s.io/kube-scheduler-simulator presubmits
presubmits:
kubernetes-sigs/kube-scheduler-simulator:
- name: pull-kube-scheduler-simulator-backend-unit-test
annotations:
testg... | # sigs.k8s.io/kube-scheduler-simulator presubmits
presubmits:
kubernetes-sigs/kube-scheduler-simulator:
- name: pull-kube-scheduler-simulator-backend-unit-test
annotations:
testgrid-dashboards: sig-scheduling
testgrid-tab-name: pull-kube-scheduler-simulator-backend-unit-test
decorate: true
p... | <|file_sep|>original/config/jobs/kubernetes-sigs/kube-scheduler-simulator/kube-scheduler-simulator-presubmits-test-backend.yaml
# sigs.k8s.io/kube-scheduler-simulator presubmits
presubmits:
kubernetes-sigs/kube-scheduler-simulator:
- name: pull-kube-scheduler-simulator-backend-unit-test
annotations:
testg... | 711d939da1d91a4d83d4214f6d9faa1e74e02e82 | config/jobs/kubernetes-sigs/kube-scheduler-simulator/kube-scheduler-simulator-presubmits-test-backend.yaml | config/jobs/kubernetes-sigs/kube-scheduler-simulator/kube-scheduler-simulator-presubmits-test-backend.yaml | YAML |
<|file_sep|>original/package.json
"test": "test"
},
"scripts": {
"test": "./node_modules/.bin/jasmine-node test"
},
"keywords": [
"english",
"writing",
"prose",
"words",
"complexity",
"readability",
"grammar",
"wordiness",
"wordy"
],
"license": "MIT",
"devDepend... | "test": "test"
},
"scripts": {
"test": "./node_modules/.bin/jasmine-node test"
},
"keywords": [
"english",
"writing",
"prose",
"words",
"complexity",
"readability",
"grammar",
"wordiness",
"wordy"
],
"license": "MIT",
"devDependencies": {
"jasmine-node": "~1... | <|file_sep|>original/package.json
"test": "test"
},
"scripts": {
"test": "./node_modules/.bin/jasmine-node test"
},
"keywords": [
"english",
"writing",
"prose",
"words",
"complexity",
"readability",
"grammar",
"wordiness",
"wordy"
],
"license": "MIT",
"devDepend... | 4290c3d1edec04cb1c549b082c9412b2f446cc45 | package.json | package.json | JSON |
<|file_sep|>original/.circleci/config.yml
environment:
POSTGRES_USER: root
working_directory: /home/ubuntu/cci-demo-rails
steps:
- checkout
- run:
name: Install System Dependencies
command: apt-get update -qq && apt-get install -y build-essential nodejs
-... | version: 2
jobs:
build:
docker:
- image: ruby:2.3
- image: postgres:9.4.1
environment:
POSTGRES_USER: root
working_directory: /home/ubuntu/cci-demo-rails
steps:
- checkout
- run: apt-get update -qq && apt-get install -y build-essential nodejs
- run: bundle ... | <|file_sep|>original/.circleci/config.yml
environment:
POSTGRES_USER: root
working_directory: /home/ubuntu/cci-demo-rails
steps:
- checkout
- run:
name: Install System Dependencies
command: apt-get update -qq && apt-get install -y build-essential nodejs
-... | c4cd2926688cc0abb5010f2b2cb3eeb9d1f558f8 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/manage.py
#!/usr/bin/env python3
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from service import app, db
# db.create_all() needs all models to be imported
from service.db_access import *
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_comma... | #!/usr/bin/env python3
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from service import app, db
# db.create_all() needs all models to be imported explicitly (not *)
from service.db_access import User
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', ... | <|file_sep|>original/manage.py
#!/usr/bin/env python3
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from service import app, db
# db.create_all() needs all models to be imported
from service.db_access import *
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_comma... | 08b54819a56d9bfc65225045d97a4c331f9a3e11 | manage.py | manage.py | Python |
<|file_sep|>original/deployment/ansible/roles/genesis/tasks/main.yml
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- na... | # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- n... | <|file_sep|>original/deployment/ansible/roles/genesis/tasks/main.yml
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- na... | 66a9000d72a1f8dd299d4ad2add6783685e54f15 | deployment/ansible/roles/genesis/tasks/main.yml | deployment/ansible/roles/genesis/tasks/main.yml | YAML |
<|file_sep|>original/packages/to/toxcore.yaml
<|file_sep|>current/packages/to/toxcore.yaml
<|file_sep|>updated/packages/to/toxcore.yaml | homepage: https://toktok.github.io
changelog-type: ''
hash: f6bd5e1805d251ff10e07a590456d0bcb10a267160ac4096049ef319dc232198
test-bench-deps:
base: <5
data-default-class: -any
hspec: -any
saltine: -any
toxcore: -any
QuickCheck: ! '>=2.9.1'
maintainer: iphy
synopsis: Haskell bindings to the C reference imple... | <|file_sep|>original/packages/to/toxcore.yaml
<|file_sep|>current/packages/to/toxcore.yaml
<|file_sep|>updated/packages/to/toxcore.yaml
homepage: https://toktok.github.io
changelog-type: ''
hash: f6bd5e1805d251ff10e07a590456d0bcb10a267160ac4096049ef319dc232198
test-bench-deps:
base: <5
data-default-class: -any
... | aee3c09d653dad1fca756609ee2e54bf1345bf1e | packages/to/toxcore.yaml | packages/to/toxcore.yaml | YAML |
<|file_sep|>original/client_interface.go
package go_camunda_client
type CamundaClient interface {
StartProcess(processDefinitionKey string, request interface{}) (Process, error)
GetProcess(processId string) (Process, error)
GetProcessVariable(processId string, variableName string) (VariableResponse, error)
GetNext... | package go_camunda_client
type CamundaClient interface {
StartProcess(processDefinitionKey string, request interface{}) (Process, error)
GetProcess(processId string) (Process, error)
FindProcess(query string) (Process, error)
GetProcessVariable(processId string, variableName string) (VariableResponse, error)
GetN... | <|file_sep|>original/client_interface.go
package go_camunda_client
type CamundaClient interface {
StartProcess(processDefinitionKey string, request interface{}) (Process, error)
GetProcess(processId string) (Process, error)
GetProcessVariable(processId string, variableName string) (VariableResponse, error)
GetNext... | ac7ac4e9945bd037d7178cbd5c8666402a57a8cd | client_interface.go | client_interface.go | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.