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|>ci/data_generation_app.yml.diff
original:
pplications:
updated:
---
applications:
<|file_sep|>original/ci/data_generation_app.yml
pplications:
- name: spl-data-gen
memory: 128M
instances: 2
buildpack: go_buildpack
path: ci/data-generation-app
env:
GOPACKAGENAME: main
<|file_sep|... | ---
applications:
- name: spl-data-gen
memory: 128M
instances: 2
buildpack: go_buildpack
path: ci/data-generation-app
env:
GOPACKAGENAME: main | <|file_sep|>ci/data_generation_app.yml.diff
original:
pplications:
updated:
---
applications:
<|file_sep|>original/ci/data_generation_app.yml
pplications:
- name: spl-data-gen
memory: 128M
instances: 2
buildpack: go_buildpack
path: ci/data-generation-app
env:
GOPACKAGENAME: main
<|file_sep|... | b01d182b47f2cef1028d63ef5ba27fff96e43dd0 | ci/data_generation_app.yml | ci/data_generation_app.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- "3.5"
- "pypy"
- "pypy3"
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
install:
- ./.travis_setup
env:
- DJANGO="django>=1.5,<1.6"
- DJANGO="django>=1.6,<1.7"
- DJANGO="django>=1.7,<1.8"
script:
- cd ./testproje... | - "3.4"
- "3.5"
- "pypy"
- "pypy3"
install:
- ./.travis_setup
env:
- DJANGO="django>=1.5,<1.6"
- DJANGO="django>=1.6,<1.7"
- DJANGO="django>=1.7,<1.8"
- DJANGO="django>=1.8,<1.9"
matrix:
exclude:
- python: "3.5"
env: DJANGO="django>=1.5,<1.6"
- python: "3.5"
env: DJANGO="django>=... | <|file_sep|>.travis.yml.diff
original:
updated:
- "3.5"
- "pypy"
- "pypy3"
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
install:
- ./.travis_setup
env:
- DJANGO="django>=1.5,<1.6"
- DJANGO="django>=1.6,<1.7"
- DJANGO="django>=1.7,<1.8"
script:
- cd ./testproje... | 5556f87d68a3c1de65f31c39a5960f956dd189dd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements-dev.txt
coverage==4.4.2
flake8==3.4.1
ipdb==0.10.2
ipython==6.1.0
pytest==3.3.1
pytest-cov==2.5.1
pytest-sugar==0.9.0
sphinx==1.6.5
sphinxcontrib-asyncio==0.2.0
sqlalchemy==1.2.1
<|file_sep|>current/requirements-dev.txt
coverage==4.4.2
flake8==3.4.1
ipdb==0.10.2
ipython==6.1.0
pytest==... | coverage==4.4.2
flake8==3.4.1
ipdb==0.10.2
ipython==6.1.0
pytest==3.3.1
pytest-cov==2.5.1
pytest-sugar==0.9.1
sphinx==1.6.5
sphinxcontrib-asyncio==0.2.0
sqlalchemy==1.2.1 | <|file_sep|>original/requirements-dev.txt
coverage==4.4.2
flake8==3.4.1
ipdb==0.10.2
ipython==6.1.0
pytest==3.3.1
pytest-cov==2.5.1
pytest-sugar==0.9.0
sphinx==1.6.5
sphinxcontrib-asyncio==0.2.0
sqlalchemy==1.2.1
<|file_sep|>current/requirements-dev.txt
coverage==4.4.2
flake8==3.4.1
ipdb==0.10.2
ipython==6.1.0
pytest==... | b1c30d239bcddaf7a12fdb8757f99f72bafc1629 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/.travis.yml
sudo: required
language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
... | language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- gcc-7
- g++-7
- c... | <|file_sep|>original/.travis.yml
sudo: required
language: cpp
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
... | a100b3f2a534511442fcd3e62134d6e1a79c2b96 | .travis.yml | .travis.yml | YAML |
<|file_sep|>js/main.js.diff
original:
require.config({
updated:
requirejs.config({
<|file_sep|>js/main.js.diff
original:
updated:
waitSeconds: 30,
<|file_sep|>original/js/main.js
require.config({
baseUrl: 'js/lib',
paths: {
app: '../app',
route: '../routes',
tpl: '../templates'
}
});
require(['route/home']... | requirejs.config({
baseUrl: 'js/lib',
waitSeconds: 30,
paths: {
app: '../app',
model: '../app/models',
route: '../app/routes',
template: '../../templates',
widget: '../app/widgets',
worker: '../app/workers',
root: '../..',
// requirejs plugins
text: 'requirejs-plugins/text',
tpl: 'requirejs-plu... | <|file_sep|>js/main.js.diff
original:
require.config({
updated:
requirejs.config({
<|file_sep|>js/main.js.diff
original:
updated:
waitSeconds: 30,
<|file_sep|>original/js/main.js
require.config({
baseUrl: 'js/lib',
paths: {
app: '../app',
route: '../routes',
tpl: '../templates'
}
});
require(['route/home']... | bd02c723dfef279e61f16deb761f5b29a96d3b30 | js/main.js | js/main.js | JavaScript |
<|file_sep|>original/front/js/app/tools/zoom_in.js
/**
* Created by alnedorezov on 5/26/17.
*/
function initZoomIn() {
Tool.zoomIn = function () {
return fromPrototype(Tool, {
onClick: function (isButtonPressed) {
/*global zoomCount*/
/*eslint no-undef: "error"... | /**
* Created by alnedorezov on 5/26/17.
*/
function initZoomIn() {
Tool.zoomIn = function () {
return fromPrototype(Tool, {
onClick: function (isButtonPressed) {
/*global zoomCount*/
/*eslint no-undef: "error"*/
/*global maxZoomCount*/
... | <|file_sep|>original/front/js/app/tools/zoom_in.js
/**
* Created by alnedorezov on 5/26/17.
*/
function initZoomIn() {
Tool.zoomIn = function () {
return fromPrototype(Tool, {
onClick: function (isButtonPressed) {
/*global zoomCount*/
/*eslint no-undef: "error"... | 5295b5118f3b7f06eb6849875f7c0444d0f75b8a | front/js/app/tools/zoom_in.js | front/js/app/tools/zoom_in.js | JavaScript |
<|file_sep|>original/gulpfile.js
<|file_sep|>current/gulpfile.js
<|file_sep|>updated/gulpfile.js | var gulp = require('gulp');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
gulp.task('default', function() {
gulp.src('bootstrap-hover-dropdown.js')
// minifiy preserving preserved comments
.pipe(uglify({
preserveComments: 'some'
}))
// ren... | <|file_sep|>original/gulpfile.js
<|file_sep|>current/gulpfile.js
<|file_sep|>updated/gulpfile.js
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
gulp.task('default', function() {
gulp.src('bootstrap-hover-dropdown.js')
// minifiy preserving preserv... | eb0ab31f9e187973beaf94f356797e9d5ae240a9 | gulpfile.js | gulpfile.js | JavaScript |
<|file_sep|>original/JabbR/ContentProviders/VimeoContentProvider.cs
{
yield return "http://vimeo.com";
yield return "http://www.vimeo.com";
}
}
public override string MediaFormatString
{
get
{
return... | }
public override IEnumerable<string> Domains
{
get
{
yield return "http://vimeo.com";
yield return "http://www.vimeo.com";
}
}
public override string MediaFormatString
{
get
{
... | <|file_sep|>original/JabbR/ContentProviders/VimeoContentProvider.cs
{
yield return "http://vimeo.com";
yield return "http://www.vimeo.com";
}
}
public override string MediaFormatString
{
get
{
return... | a9fc78a1e7e5f6eb0b80d28849b2c0fcbc1ed5d9 | JabbR/ContentProviders/VimeoContentProvider.cs | JabbR/ContentProviders/VimeoContentProvider.cs | C# |
<|file_sep|>original/app/src/main/res/layout/saver_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="matc... | <?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="link.standen.michael.phonesaver.activi... | <|file_sep|>original/app/src/main/res/layout/saver_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="matc... | 82e9a32e72b42d873af1d371a9c40c755a370adb | app/src/main/res/layout/saver_activity.xml | app/src/main/res/layout/saver_activity.xml | XML |
<|file_sep|>_includes/footer.html.diff
original:
<p><a href="https://www.google.com/maps/place/The+Castle/@47.5924318,-122.3154125,17z/data=!3m1!4b1!4m2!3m1!1s0x54906a93ff6cbb6f:0xbcbf0768533980ce" target="_blank">1123 Sturgus AVE S., Seattle WA, 98144</a></p>
updated:
<p><a href="https://www.go... | <!-- Footer -->
<footer>
<div class="container text-center">
<p>Made with <i class="fa fa-heart"></i> from #Seattle</p>
<p><a href="https://www.google.com/maps/place/The+Castle/@47.5924318,122.3131125,17z/data=!3m1!4b1!4m2!3m1!1s0x54906a93ff6cbb6f:0xbcbf0768533980ce" target="_bla... | <|file_sep|>_includes/footer.html.diff
original:
<p><a href="https://www.google.com/maps/place/The+Castle/@47.5924318,-122.3154125,17z/data=!3m1!4b1!4m2!3m1!1s0x54906a93ff6cbb6f:0xbcbf0768533980ce" target="_blank">1123 Sturgus AVE S., Seattle WA, 98144</a></p>
updated:
<p><a href="https://www.go... | b1611ddf53cc009f74094008335d9f0c93d35163 | _includes/footer.html | _includes/footer.html | HTML |
<|file_sep|>original/Cargo.toml
version = "0.4.1"
authors = ["Dirk Gadsden <dirk@esherido.com>"]
description = "Ingest logs and forward aggregated data to APIs/services."
license = "BSD-3-Clause"
repository = "https://github.com/dirk/metrics_distributor"
[dependencies]
hyper = "0.10.4"
iron = "0.5.1"
router = "0.5.1"
... | version = "0.4.1"
authors = ["Dirk Gadsden <dirk@esherido.com>"]
description = "Ingest logs and forward aggregated data to APIs/services."
license = "BSD-3-Clause"
repository = "https://github.com/dirk/metrics_distributor"
[dependencies]
hyper = "0.10.4"
iron = "0.5.1"
router = "0.5.1"
regex = "0.2.1"
lazy_static = "0... | <|file_sep|>original/Cargo.toml
version = "0.4.1"
authors = ["Dirk Gadsden <dirk@esherido.com>"]
description = "Ingest logs and forward aggregated data to APIs/services."
license = "BSD-3-Clause"
repository = "https://github.com/dirk/metrics_distributor"
[dependencies]
hyper = "0.10.4"
iron = "0.5.1"
router = "0.5.1"
... | c8130cec1e88328c22bea7db019b4e320037f625 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/serverspec/spec/monitoring/monitoring_configure_spec.rb
<|file_sep|>current/serverspec/spec/monitoring/monitoring_configure_spec.rb
<|file_sep|>updated/serverspec/spec/monitoring/monitoring_configure_spec.rb | require 'spec_helper'
describe service('httpd') do
it { should be_enabled }
end
describe service('mysqld') do
it { should be_enabled }
end
describe service('zabbix_agentd') do
it { should be_enabled }
end
describe service('zabbix_server') do
it { should be_enabled }
end | <|file_sep|>original/serverspec/spec/monitoring/monitoring_configure_spec.rb
<|file_sep|>current/serverspec/spec/monitoring/monitoring_configure_spec.rb
<|file_sep|>updated/serverspec/spec/monitoring/monitoring_configure_spec.rb
require 'spec_helper'
describe service('httpd') do
it { should be_enabled }
end
descr... | 9b16882494e6281a4db61adf226a3b2bae254070 | serverspec/spec/monitoring/monitoring_configure_spec.rb | serverspec/spec/monitoring/monitoring_configure_spec.rb | Ruby |
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 7.0
- hhvm
- nightly
before_script:
- composer config disable-tls true
- composer install --prefer-source
script: vendor/bin/phpunit
notifications:
email: false
<|file_sep|>current/.tr... | language: php
sudo: false
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 7.0
- hhvm
- nightly
before_script:
- composer config disable-tls true
- composer config secure-http false
- composer install --prefer-source
script: vendor/bin/phpunit
notifications:
email: false | <|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 7.0
- hhvm
- nightly
before_script:
- composer config disable-tls true
- composer install --prefer-source
script: vendor/bin/phpunit
notifications:
email: false
<|file_sep|>current/.tr... | 269b6a085a77d4e9cf3020e42f04f337d17ca08d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/tests/Settings/TestSettingRelation.py
<|file_sep|>current/tests/Settings/TestSettingRelation.py
<|file_sep|>updated/tests/Settings/TestSettingRelation.py | # Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
import pytest
import UM.Settings.SettingRelation
def test_create():
with pytest.raises(ValueError):
relation = UM.Settings.SettingRelation.SettingRelation(None, 2, UM.Settings.SettingRelation.RelationType.R... | <|file_sep|>original/tests/Settings/TestSettingRelation.py
<|file_sep|>current/tests/Settings/TestSettingRelation.py
<|file_sep|>updated/tests/Settings/TestSettingRelation.py
# Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
import pytest
import UM.Settings.SettingRe... | 18a2fde9b573e4db34e247cdd8dce6f506d8e34e | tests/Settings/TestSettingRelation.py | tests/Settings/TestSettingRelation.py | Python |
<|file_sep|>original/coach/specs/concept-coach/coach.spec.coffee
{Coach} = require 'concept-coach/coach'
{CCModal} = require 'concept-coach/modal'
describe 'Coach wrapper component', ->
beforeEach ->
@props =
open: false
displayLauncher: true
moduleUUID: 'm_uuid'
collectionUUID: 'C_UUI... |
{Coach} = require 'concept-coach/coach'
{CCModal} = require 'concept-coach/modal'
describe 'Coach wrapper component', ->
beforeEach ->
@props =
open: false
displayLauncher: true
moduleUUID: 'm_uuid'
collectionUUID: 'C_UUID'
it 'renders launch state', ->
Testing.renderComponent( ... | <|file_sep|>original/coach/specs/concept-coach/coach.spec.coffee
{Coach} = require 'concept-coach/coach'
{CCModal} = require 'concept-coach/modal'
describe 'Coach wrapper component', ->
beforeEach ->
@props =
open: false
displayLauncher: true
moduleUUID: 'm_uuid'
collectionUUID: 'C_UUI... | be1efe2f3bf640e02b94cef38e8a3cabd93fa07c | coach/specs/concept-coach/coach.spec.coffee | coach/specs/concept-coach/coach.spec.coffee | CoffeeScript |
<|file_sep|>original/lib/pusher-fake/channel.rb
module PusherFake
module Channel
class << self
PRIVATE_CHANNEL_MATCHER = /^private-/.freeze
PRESENCE_CHANNEL_MATCHER = /^presence-/.freeze
attr_accessor :channels
# Create a channel, determing the type by the name.
#
# @param [... | module PusherFake
module Channel
class << self
PRIVATE_CHANNEL_MATCHER = /^private-/.freeze
PRESENCE_CHANNEL_MATCHER = /^presence-/.freeze
attr_accessor :channels
# Create a channel, determining the type by the name.
#
# @param [String] name The channel name.
# @return... | <|file_sep|>original/lib/pusher-fake/channel.rb
module PusherFake
module Channel
class << self
PRIVATE_CHANNEL_MATCHER = /^private-/.freeze
PRESENCE_CHANNEL_MATCHER = /^presence-/.freeze
attr_accessor :channels
# Create a channel, determing the type by the name.
#
# @param [... | bcceb2af46407a547aa7ad3b737ea4e0fe9d9531 | lib/pusher-fake/channel.rb | lib/pusher-fake/channel.rb | Ruby |
<|file_sep|>Cargo.toml.diff
original:
# envelope = "0.7.0"
envelope = { path = "../envelope" }
instrument = { path = "../instrument" }
mindtree_utils = "0.3.0"
updated:
envelope = "0.8.0"
instrument = "0.1.0"
mindtree_utils = "0.4.0"
<|file_sep|>Cargo.toml.diff
original:
pitch_calc = "0.9.7"
updated:
pitch_calc = "0.11... |
[dependencies]
envelope = "0.8.0"
instrument = "0.1.0"
mindtree_utils = "0.4.0"
panning = "0.1.1"
pitch_calc = "0.11.0"
rand = "0.3.14"
sample = "0.6.0"
simple_gaussian = "0.4.4"
time_calc = "0.11.0"
dsp-chain = { optional = true, version = "0.13.0" }
serde = { optional = true, version = "0.7.0" }
serde_json = { optio... | <|file_sep|>Cargo.toml.diff
original:
# envelope = "0.7.0"
envelope = { path = "../envelope" }
instrument = { path = "../instrument" }
mindtree_utils = "0.3.0"
updated:
envelope = "0.8.0"
instrument = "0.1.0"
mindtree_utils = "0.4.0"
<|file_sep|>Cargo.toml.diff
original:
pitch_calc = "0.9.7"
updated:
pitch_calc = "0.11... | 26cb2f42e249e4010b875276d35b3009d236e9a5 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/euler/euler044.c
<|file_sep|>current/euler/euler044.c
<|file_sep|>updated/euler/euler044.c | // Copyright 2018 Dennis Decker Jensen
// Date: 29 April 2018
// Purpose: Minimum difference of pentagon numbers.
// Tectonics: cc -std=c11 -pedantic -Wall -O2 -o euler044 euler044.c
//
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
enum { npentagons = 10000 }; // N.B! Trial and error
unsigned pentagon[np... | <|file_sep|>original/euler/euler044.c
<|file_sep|>current/euler/euler044.c
<|file_sep|>updated/euler/euler044.c
// Copyright 2018 Dennis Decker Jensen
// Date: 29 April 2018
// Purpose: Minimum difference of pentagon numbers.
// Tectonics: cc -std=c11 -pedantic -Wall -O2 -o euler044 euler044.c
//
#include <limits.h>... | 390d39f85242312778390db23603d8044c391c43 | euler/euler044.c | euler/euler044.c | C |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.7.1
sudo: false
install:
- make install-tools
- make install-dependencies
- make install
script:
- make lint
- make test-verbose-with-coverage
- gover
- if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -s... | language: go
go:
- 1.7.x
- 1.8.x
sudo: false
install:
- make install-tools
- make install-dependencies
- make install
script:
- make lint
- make test-verbose-with-coverage
- gover
- if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -service=travis-ci -repot... | <|file_sep|>original/.travis.yml
language: go
go:
- 1.7.1
sudo: false
install:
- make install-tools
- make install-dependencies
- make install
script:
- make lint
- make test-verbose-with-coverage
- gover
- if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -s... | 0f2644e198a27205603dce804725cc607ffe81be | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/package.json
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"underscore": "~> 1.4.4"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.4.3",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-nodeunit": "~0.1.2",
... | "node": ">= 0.8.0"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"underscore": "~> 1.4.4"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.6",
"grunt-contrib-watch": "~0.4.3",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-nodeunit": "~0.1.2",
"conne... | <|file_sep|>original/package.json
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"underscore": "~> 1.4.4"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.4.3",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-nodeunit": "~0.1.2",
... | 5d7723fb121152f3fc969d5703ff8ef2eb0a0c94 | package.json | package.json | JSON |
<|file_sep|>original/config/environments/development.rb
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mail... |
# Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
# Do not compress assets
config.assets.compress = false
# Expands the lines which load the assets
co... | <|file_sep|>original/config/environments/development.rb
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mail... | 99016e00ca908b0e35c3428ea79e9fe4104c4f95 | config/environments/development.rb | config/environments/development.rb | Ruby |
<|file_sep|>original/webserver/templates/competition/game/game_detail.html
<|file_sep|>current/webserver/templates/competition/game/game_detail.html
<|file_sep|>updated/webserver/templates/competition/game/game_detail.html | {% extends "competition/competition_base.html" %}
{% load competition_tags %}
{% block content %}
<table class="table table-hover">
<tbody>
<tr>
<th>Game #</th>
<td>{{ game.id }}</td>
</tr>
{% with scores=game.scores.select_related.all|dictsortreversed:"score" %}
<tr>
... | <|file_sep|>original/webserver/templates/competition/game/game_detail.html
<|file_sep|>current/webserver/templates/competition/game/game_detail.html
<|file_sep|>updated/webserver/templates/competition/game/game_detail.html
{% extends "competition/competition_base.html" %}
{% load competition_tags %}
{% block content... | aa8d62de7c9383497175902770e7bdc361d49be1 | webserver/templates/competition/game/game_detail.html | webserver/templates/competition/game/game_detail.html | HTML |
<|file_sep|>original/README.md
# Now
Now is a game where success is measured using your concentration
<|file_sep|>current/README.md
# Now
Now is a game where success is measured using your concentration
<|file_sep|>updated/README.md | # Now
Now is a game where success is measured using your concentration.
# Key ideas
- Uses brain scanner to detect concentration levels
- When concentration goes down, visibility becomes fuzzy
- Concentrate again to re-gain visibility
- Goal: lead your wiggling bot along the narrow pathway
# Technology
- Haskell: se... | <|file_sep|>original/README.md
# Now
Now is a game where success is measured using your concentration
<|file_sep|>current/README.md
# Now
Now is a game where success is measured using your concentration
<|file_sep|>updated/README.md
# Now
Now is a game where success is measured using your concentration.
# Key ideas
- ... | da5e7547f954e743efd5457a0d0e17db6d62d2aa | README.md | README.md | Markdown |
<|file_sep|>original/Kwc/Advanced/IntegratorTemplate/Embed/ContentSender.php
<?php
class Kwc_Advanced_IntegratorTemplate_Embed_ContentSender extends Kwf_Component_Abstract_ContentSender_Default
{
protected function _render($includeMaster)
{
header('X-Robots-Tag: noindex');
$domain = $this->_data... | <?php
class Kwc_Advanced_IntegratorTemplate_Embed_ContentSender extends Kwf_Component_Abstract_ContentSender_Default
{
protected function _render($includeMaster)
{
header('X-Robots-Tag: noindex');
$domain = $this->_data->getParentByClass('Root_Domain_Component')->getAbsoluteUrl();
$hasDy... | <|file_sep|>original/Kwc/Advanced/IntegratorTemplate/Embed/ContentSender.php
<?php
class Kwc_Advanced_IntegratorTemplate_Embed_ContentSender extends Kwf_Component_Abstract_ContentSender_Default
{
protected function _render($includeMaster)
{
header('X-Robots-Tag: noindex');
$domain = $this->_data... | 33a15cb63848468bd6c918804e7a90c6fe7888e1 | Kwc/Advanced/IntegratorTemplate/Embed/ContentSender.php | Kwc/Advanced/IntegratorTemplate/Embed/ContentSender.php | PHP |
<|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
env:
- DJANGO_VERSION=Django==1.3.4
- DJANGO_VERSION=Django==1.3.7
- DJANGO_VERSION=Django==1.4.3
- DJANGO_VERSION=Django==1.4.4
- DJANGO_VERSION=Django==1.4.5
- DJANGO_VERSION=Django==1.5
- DJANGO_VERSION=Django==1.5.1
# command... | language: python
python:
- 2.6
- 2.7
env:
- DJANGO_VERSION=Django==1.3.4
- DJANGO_VERSION=Django==1.3.7
- DJANGO_VERSION=Django==1.4.3
- DJANGO_VERSION=Django==1.4.5
- DJANGO_VERSION=Django==1.5
- DJANGO_VERSION=Django==1.5.1
# command to install dependencies
install:
- pip install --use-mirrors -r... | <|file_sep|>original/.travis.yml
language: python
python:
- 2.6
- 2.7
env:
- DJANGO_VERSION=Django==1.3.4
- DJANGO_VERSION=Django==1.3.7
- DJANGO_VERSION=Django==1.4.3
- DJANGO_VERSION=Django==1.4.4
- DJANGO_VERSION=Django==1.4.5
- DJANGO_VERSION=Django==1.5
- DJANGO_VERSION=Django==1.5.1
# command... | 1dd320b319ae8a6f756c752c3702cd8fc147c708 | .travis.yml | .travis.yml | YAML |
<|file_sep|>base.rb.diff
original:
file '.gitignore', <<-CODE
# Ignore bundler config.
/.bundle
# Ignore all logfiles and tempfiles.
/log/*
!/log/.keep
updated:
append_to_file '.gitignore', <<-CODE
<|file_sep|>base.rb.diff
original:
/tmp
updated:
<|file_sep|>base.rb.diff
original:
# Ignore the default SQLite database... | /.sass-cache
*.*~
*.bak
.*.log
.DS_Store
# Ignore the default database
/db/*.db
/db/schema.rb
# Ignore Gemfile.lock
Gemfile.lock
CODE
after_bundle do
log 'initialized', 'application structure'
apply '_environment.rb'
apply '_template-engine.rb'
apply '_test-framework.rb'
apply '_locale.rb' | <|file_sep|>base.rb.diff
original:
file '.gitignore', <<-CODE
# Ignore bundler config.
/.bundle
# Ignore all logfiles and tempfiles.
/log/*
!/log/.keep
updated:
append_to_file '.gitignore', <<-CODE
<|file_sep|>base.rb.diff
original:
/tmp
updated:
<|file_sep|>base.rb.diff
original:
# Ignore the default SQLite database... | b44e80fbabb307a9f481dfbcc254781d7c250fd7 | base.rb | base.rb | Ruby |
<|file_sep|>original/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.9)
project(SimpleITKFiltersModule)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
itk_module_impl()
endif()
<|file_sep|>current/CMakeLists.txt
cmake_minim... | cmake_minimum_required(VERSION 2.8.9)
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
project(SimpleITKFiltersModule)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
itk_module_impl()
endif() | <|file_sep|>original/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.9)
project(SimpleITKFiltersModule)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
itk_module_impl()
endif()
<|file_sep|>current/CMakeLists.txt
cmake_minim... | e2f66136ecf20d5f8ff250b587a13e43cda37802 | CMakeLists.txt | CMakeLists.txt | Text |
<|file_sep|>original/wallaby.js
module.exports = function(wallaby) {
return {
files: [
"importmap.js",
"src/**/*.ts",
"node_modules/@browser-modules/dictionary/lib/dictionary.js"
],
tests: [
"test/*.ts"
],
trace: true,
... | module.exports = function(wallaby) {
return {
files: [
"importmap.js",
"src/**/*.ts",
"node_modules/@browser-modules/dictionary/lib/dictionary.js"
],
tests: [
"test/*.ts"
],
filesWithNoCoverageCalculated: ['node_modules/@browser... | <|file_sep|>original/wallaby.js
module.exports = function(wallaby) {
return {
files: [
"importmap.js",
"src/**/*.ts",
"node_modules/@browser-modules/dictionary/lib/dictionary.js"
],
tests: [
"test/*.ts"
],
trace: true,
... | e585074b04f80b432eaa1b7fa04e5208ee0732d9 | wallaby.js | wallaby.js | JavaScript |
<|file_sep|>original/docs/requirements.txt
marshmallow>=2.0.0rc1
Flask==1.0.2
sphinx==1.7.4
sphinx-rtd-theme==0.3.1
sphinx-issues>=0.2.0
<|file_sep|>current/docs/requirements.txt
marshmallow>=2.0.0rc1
Flask==1.0.2
sphinx==1.7.4
sphinx-rtd-theme==0.3.1
sphinx-issues>=0.2.0
<|file_sep|>updated/docs/requirements.txt | marshmallow>=2.0.0rc1
Flask==1.0.2
sphinx==1.7.5
sphinx-rtd-theme==0.3.1
sphinx-issues>=0.2.0 | <|file_sep|>original/docs/requirements.txt
marshmallow>=2.0.0rc1
Flask==1.0.2
sphinx==1.7.4
sphinx-rtd-theme==0.3.1
sphinx-issues>=0.2.0
<|file_sep|>current/docs/requirements.txt
marshmallow>=2.0.0rc1
Flask==1.0.2
sphinx==1.7.4
sphinx-rtd-theme==0.3.1
sphinx-issues>=0.2.0
<|file_sep|>updated/docs/requirements.txt
marsh... | e804d1654849d281f3db7a3624543fb4464a93da | docs/requirements.txt | docs/requirements.txt | Text |
<|file_sep|>original/test/tst.spec.js
var expect = require('chai').expect;
var TST = require('../');
describe('Ternary Search Tree', function () {
it('exists when instantiated', function () {
var tst = new TST();
expect(tst).to.exist;
});
});
<|file_sep|>current/test/tst.spec.js
var expect = re... | var expect = require('chai').expect;
var TST = require('../');
describe('Ternary Search Tree', function () {
it('exists when instantiated', function () {
var tst = new TST();
expect(tst).to.exist;
});
it('puts a string in the search tree', function () {
var tst = new TST();
... | <|file_sep|>original/test/tst.spec.js
var expect = require('chai').expect;
var TST = require('../');
describe('Ternary Search Tree', function () {
it('exists when instantiated', function () {
var tst = new TST();
expect(tst).to.exist;
});
});
<|file_sep|>current/test/tst.spec.js
var expect = re... | 1b893b766611cacb555c09e187a4efa5319b1c49 | test/tst.spec.js | test/tst.spec.js | JavaScript |
<|file_sep|>messaging/firebase-messaging-sw.js.diff
original:
updated:
// [START initialize_firebase_in_sw]
<|file_sep|>messaging/firebase-messaging-sw.js.diff
original:
'messagingSenderId': '1023287755677'
updated:
'messagingSenderId': 'YOUR-SENDER-ID'
<|file_sep|>original/messaging/firebase-messaging-sw.js
// ar... | // are not available here.
importScripts('https://www.gstatic.com/firebasejs/3.4.0/firebase-app.js');
importScripts('/sdk/firebase-messaging-external_bin.js')
// [START initialize_firebase_in_sw]
// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
'me... | <|file_sep|>messaging/firebase-messaging-sw.js.diff
original:
updated:
// [START initialize_firebase_in_sw]
<|file_sep|>messaging/firebase-messaging-sw.js.diff
original:
'messagingSenderId': '1023287755677'
updated:
'messagingSenderId': 'YOUR-SENDER-ID'
<|file_sep|>original/messaging/firebase-messaging-sw.js
// ar... | eb9f14ab5af4da7b50dc405be87cc8da466472c1 | messaging/firebase-messaging-sw.js | messaging/firebase-messaging-sw.js | JavaScript |
<|file_sep|>original/package.json
"jquery": ">=1.12.4 <4.0.0"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.4",
"gulp-connect": "^5.5.0",
"gulp-csslint": "^1.0.1",
"gulp-eslint": "^4.0.2",
"gulp-lintspaces": "^1.0.0",
"gulp-night... | "jquery": ">=1.12.4 <4.0.0"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.4",
"gulp-connect": "^5.5.0",
"gulp-csslint": "^1.0.1",
"gulp-eslint": "^4.0.2",
"gulp-lintspaces": "^1.0.0",
"gulp-nightwatch": "^0.3.3",
"gulp-rename... | <|file_sep|>original/package.json
"jquery": ">=1.12.4 <4.0.0"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.4",
"gulp-connect": "^5.5.0",
"gulp-csslint": "^1.0.1",
"gulp-eslint": "^4.0.2",
"gulp-lintspaces": "^1.0.0",
"gulp-night... | 7a64cfe1b42a517dc36e655fd2aea635b092fdec | package.json | package.json | JSON |
<|file_sep|>original/ansible-stunnel/inventory/group_vars/all/stunnel/all.yml
---
stunnel_server: [ 'test-service' ]
stunnel_services:
- name: 'test-service'
server_accept: ':::test-service'
server_connect: '3306'
port: '3307'
type: 'dport_accept'
dport: [ 'test-service' ]
daemon: 'test-... | ---
stunnel_server: [ 'test-service' ]
stunnel_services:
- name: 'test-service'
server_accept: ':::test-service'
server_connect: '3306'
port: '3307'
type: 'accept'
dport: [ 'test-service' ]
daemon: 'test-service'
accept_any: True | <|file_sep|>original/ansible-stunnel/inventory/group_vars/all/stunnel/all.yml
---
stunnel_server: [ 'test-service' ]
stunnel_services:
- name: 'test-service'
server_accept: ':::test-service'
server_connect: '3306'
port: '3307'
type: 'dport_accept'
dport: [ 'test-service' ]
daemon: 'test-... | ae766f09961ada10bcd1ea7b76bfc6a7426225da | ansible-stunnel/inventory/group_vars/all/stunnel/all.yml | ansible-stunnel/inventory/group_vars/all/stunnel/all.yml | YAML |
<|file_sep|>www/generate-id-list.js.diff
original:
updated:
var jsonFile = process.argv[2];
// Input file
if (jsonFile == undefined) {
console.error('Please specify a JSON file to parse!');
process.exit(1);
}
if (!fs.existsSync(jsonFile)) {
console.error('Specified file does not exist!', jsonFile);
process.exit(2... | process.exit(1);
}
if (!fs.existsSync(jsonFile)) {
console.error('Specified file does not exist!', jsonFile);
process.exit(2);
}
var ids = [];
var data = require('./' + jsonFile);
for (var i = 0; i < data.length; i++) {
// Try and find an ID
if (data[i].hasOwnProperty('ID'))
var id = data[i].ID.toString();
els... | <|file_sep|>www/generate-id-list.js.diff
original:
updated:
var jsonFile = process.argv[2];
// Input file
if (jsonFile == undefined) {
console.error('Please specify a JSON file to parse!');
process.exit(1);
}
if (!fs.existsSync(jsonFile)) {
console.error('Specified file does not exist!', jsonFile);
process.exit(2... | 37325d3cde1dcbdb62d07b2613ad602c0089027f | www/generate-id-list.js | www/generate-id-list.js | JavaScript |
<|file_sep|>original/devtools/conda-recipe/meta.yaml
run:
- python
- pandas
- numpy >=1.14
- scipy
- openmm >=7.3
- mdtraj >=1.7.2
- openmmtools >=0.18.3
- pymbar
- ambertools
- docopt
- openmoltools >=0.7.5
- mpiplus
- pyyaml
- clusterutils
- sphinxcontrib... |
run:
- python
- pandas
- numpy >=1.14
- scipy
- openmm >=7.3
- mdtraj >=1.7.2
- openmmtools >=0.18.3
- pymbar
- docopt
- openmoltools >=0.7.5
- mpiplus
- pyyaml
- clusterutils
- sphinxcontrib-bibtex
- cerberus
- matplotlib
- jupyter
- pdbfixer
| <|file_sep|>original/devtools/conda-recipe/meta.yaml
run:
- python
- pandas
- numpy >=1.14
- scipy
- openmm >=7.3
- mdtraj >=1.7.2
- openmmtools >=0.18.3
- pymbar
- ambertools
- docopt
- openmoltools >=0.7.5
- mpiplus
- pyyaml
- clusterutils
- sphinxcontrib... | c75c2604096c4116601c43ee5cfffd39842b6e8a | devtools/conda-recipe/meta.yaml | devtools/conda-recipe/meta.yaml | YAML |
<|file_sep|>packages/co/concurrent-utilities.yaml.diff
original:
hash: f9b9906b43697f30ea8ed3b4ace5a8e2fb29b228a80d0a4c7b1da0093e573e3d
updated:
hash: 43d45b6c2529fbf9106af8fc506975e4e735bc4ca93cd2423947d6835fb518de
<|file_sep|>original/packages/co/concurrent-utilities.yaml
homepage: ! '-'
changelog-type: ''
hash: f9b9... | homepage: ! '-'
changelog-type: ''
hash: 43d45b6c2529fbf9106af8fc506975e4e735bc4ca93cd2423947d6835fb518de
test-bench-deps: {}
maintainer: sebastiaan.la.fleur@gmail.com
synopsis: More utilities and broad-used datastructures for concurrency.
changelog: ''
basic-deps:
base: ! '>=4.8 && <4.13'
all-versions:
- 0.1.0.0
- 0... | <|file_sep|>packages/co/concurrent-utilities.yaml.diff
original:
hash: f9b9906b43697f30ea8ed3b4ace5a8e2fb29b228a80d0a4c7b1da0093e573e3d
updated:
hash: 43d45b6c2529fbf9106af8fc506975e4e735bc4ca93cd2423947d6835fb518de
<|file_sep|>original/packages/co/concurrent-utilities.yaml
homepage: ! '-'
changelog-type: ''
hash: f9b9... | 9e6ddd76ef041da5db92b0e1c7627cba3fc7a324 | packages/co/concurrent-utilities.yaml | packages/co/concurrent-utilities.yaml | YAML |
<|file_sep|>test/input.spec.js.diff
original:
import { IO, resolveValue, triggerWarnings } from '../src/input';
updated:
import { IO, resolveValue } from '../src/input';
<|file_sep|>original/test/input.spec.js
});
it('should accept the default value of a string', () => {
const value = resol... | import { String as Text } from '../src/types';
import { compileES6 } from '../src/compiler';
describe('input.js', () => {
describe('Value parsing', () => {
it('should get a simple string', () => {
const value = resolveValue('test', Text, null, true);
expect(value).to.equals('test');... | <|file_sep|>test/input.spec.js.diff
original:
import { IO, resolveValue, triggerWarnings } from '../src/input';
updated:
import { IO, resolveValue } from '../src/input';
<|file_sep|>original/test/input.spec.js
});
it('should accept the default value of a string', () => {
const value = resol... | 347e2625345e8e77a5ce558f8e6e4088ca79bc7b | test/input.spec.js | test/input.spec.js | JavaScript |
<|file_sep|>math/util/MathUtil.sh.diff
original:
if [[ ! $(StringValidator isNum ${2}) ]]; then
MathException notANumberException ${2}
fi
if [[ ! $(StringValidator isNum ${3}) ]]; then
MathException notANumberException ${3}
fi
updated:
<|file_sep|>original/math/util/MathUtil.sh
BaseComparator isEqual $(mod... | if [[ $(StringValidator beginsWith 0 ${var}) ]]; then
local var=$(StringUtil strip var 0)
fi
echo $((${var}%${2}))
}
sum(){
echo $((${1}+${2}))
}
if [[ ! $(StringValidator isNum ${2}) ]]; then
MathException notANumberException ${2}
fi
if [[ ! $(StringValidator isNum ${3}) ]]; then
MathException... | <|file_sep|>math/util/MathUtil.sh.diff
original:
if [[ ! $(StringValidator isNum ${2}) ]]; then
MathException notANumberException ${2}
fi
if [[ ! $(StringValidator isNum ${3}) ]]; then
MathException notANumberException ${3}
fi
updated:
<|file_sep|>original/math/util/MathUtil.sh
BaseComparator isEqual $(mod... | 11cb44eea8fb5b44a3c10676038f016dba895329 | math/util/MathUtil.sh | math/util/MathUtil.sh | Shell |
<|file_sep|>original/typedoc.json
{
"mode": "modules",
"moduleResolution": "node",
"tsconfig": "tsconfig.json",
"includeDeclarations": true,
"ignoreCompilerErrors": true,
"excludePrivate": true,
"out": "docs"
}
<|file_sep|>current/typedoc.json
{
"mode": "modules",
"moduleResolution": "node",
"tsconf... | {
"theme": "node_modules/typedoc-md-theme/bin",
"mode": "modules",
"moduleResolution": "node",
"tsconfig": "tsconfig.json",
"includeDeclarations": true,
"ignoreCompilerErrors": true,
"excludePrivate": true,
"out": "docs"
} | <|file_sep|>original/typedoc.json
{
"mode": "modules",
"moduleResolution": "node",
"tsconfig": "tsconfig.json",
"includeDeclarations": true,
"ignoreCompilerErrors": true,
"excludePrivate": true,
"out": "docs"
}
<|file_sep|>current/typedoc.json
{
"mode": "modules",
"moduleResolution": "node",
"tsconf... | b74c28737683072a069d7869b999efe5034a94b7 | typedoc.json | typedoc.json | JSON |
<|file_sep|>original/_posts/2016-07-01-hello-world.markdown
---
layout: post
title: "Hello world:)"
date: 2016-07-01 23:29:00 +0900
comments: true
---
I started to renew my site. I used to use Middleman(Build static websites with an easy-to-use framework), but I moved to Jekyll for a change.
This is the first post ... | ---
layout: post
title: "Hello world:)"
date: 2016-07-01 23:29:00 +0900
comments: false
---
I started to renew my site. I used to use Middleman(Build static websites with an easy-to-use framework), but I moved to Jekyll for a change.
This is the first post since I have constructed the site.🎉🎉🎉 | <|file_sep|>original/_posts/2016-07-01-hello-world.markdown
---
layout: post
title: "Hello world:)"
date: 2016-07-01 23:29:00 +0900
comments: true
---
I started to renew my site. I used to use Middleman(Build static websites with an easy-to-use framework), but I moved to Jekyll for a change.
This is the first post ... | cd6d489895bdc100f93e989d9bdeff77aaa6381f | _posts/2016-07-01-hello-world.markdown | _posts/2016-07-01-hello-world.markdown | Markdown |
<|file_sep|>original/l10n_lu_ecdf/__openerp__.py
{
"name": "eCDF annual reports",
"version": "8.0.1.0.0",
"author": "ACSONE SA/NV",
"license": "AGPL-3",
"category": "Accounting & Finance",
"website": "http://acsone.eu",
"depends": ["l10n_lu_mis_reports",
"mis_builder"],
"... | {
"name": "eCDF annual reports",
"version": "8.0.1.0.0",
"author": "ACSONE SA/NV",
"license": "AGPL-3",
"category": "Accounting & Finance",
"website": "http://acsone.eu",
"depends": ["l10n_lu_ext",
"l10n_lu_mis_reports",
"mis_builder"],
"module": "",
"... | <|file_sep|>original/l10n_lu_ecdf/__openerp__.py
{
"name": "eCDF annual reports",
"version": "8.0.1.0.0",
"author": "ACSONE SA/NV",
"license": "AGPL-3",
"category": "Accounting & Finance",
"website": "http://acsone.eu",
"depends": ["l10n_lu_mis_reports",
"mis_builder"],
"... | 4d547ffa4112412e340abd6231cd406d14b8ff35 | l10n_lu_ecdf/__openerp__.py | l10n_lu_ecdf/__openerp__.py | Python |
<|file_sep|>original/src/Genes/Freedom_To_Move_Gene.cpp
#include "Genes/Freedom_To_Move_Gene.h"
#include <string>
#include "Genes/Gene.h"
#include "Game/Board.h"
#include "Game/Color.h"
double Freedom_To_Move_Gene::score_board(const Board& board, Piece_Color perspective, size_t) const noexcept
{
static auto init... | #include "Genes/Freedom_To_Move_Gene.h"
#include <string>
#include "Genes/Gene.h"
#include "Game/Board.h"
#include "Game/Color.h"
double Freedom_To_Move_Gene::score_board(const Board& board, Piece_Color perspective, size_t) const noexcept
{
static const auto initial_score = double(Board().legal_moves().size());
... | <|file_sep|>original/src/Genes/Freedom_To_Move_Gene.cpp
#include "Genes/Freedom_To_Move_Gene.h"
#include <string>
#include "Genes/Gene.h"
#include "Game/Board.h"
#include "Game/Color.h"
double Freedom_To_Move_Gene::score_board(const Board& board, Piece_Color perspective, size_t) const noexcept
{
static auto init... | e15104d458c6e556c9a0edbdad161df648bc0f80 | src/Genes/Freedom_To_Move_Gene.cpp | src/Genes/Freedom_To_Move_Gene.cpp | C++ |
<|file_sep|>original/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java
<|file_sep|>current/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java
<|file_sep|>updated/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java | package in.twizmwaz.cardinal.module.modules.destroyable;
import in.twizmwaz.cardinal.module.GameObjective;
import in.twizmwaz.cardinal.teams.PgmTeam;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.HandlerList;
import org.bukkit.event.block.BlockBreakEvent;
import java.uti... | <|file_sep|>original/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java
<|file_sep|>current/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java
<|file_sep|>updated/src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java
package in.twizmwaz.... | 81168c8ebfd5105eef4326fb830d434d58e98489 | src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java | src/main/java/in/twizmwaz/cardinal/module/modules/destroyable/Destroyable.java | Java |
<|file_sep|>original/setup.cfg
[metadata]
name = tethys-platform
version = 3.3.0
license = BSD 2-Clause License
summary = Primary Tethys Platform Django Site Project
description-file = README.rst
url = http://tethysplatform.org/
author = Nathan Swain
author_email = nswain@aquaveo.com
classifier =
Environment :: W... | [metadata]
name = tethys-platform
version = 3.4.0
license = BSD 2-Clause License
summary = Primary Tethys Platform Django Site Project
description-file = README.rst
url = http://tethysplatform.org/
author = Nathan Swain
author_email = nswain@aquaveo.com
classifier =
Environment :: Web Environment
Framework :... | <|file_sep|>original/setup.cfg
[metadata]
name = tethys-platform
version = 3.3.0
license = BSD 2-Clause License
summary = Primary Tethys Platform Django Site Project
description-file = README.rst
url = http://tethysplatform.org/
author = Nathan Swain
author_email = nswain@aquaveo.com
classifier =
Environment :: W... | 66c7f283e7d5cb381fe3c7d9eafc2209cbfd2252 | setup.cfg | setup.cfg | INI |
<|file_sep|>gulpfile.js.diff
original:
updated:
const globalSourceFiles = require('./src/utils/global-source-files');
<|file_sep|>gulpfile.js.diff
original:
updated:
tools.setGlobalConfiguration({
sourceFiles: globalSourceFiles.concat('!**/dist/**')
});
<|file_sep|>original/gulpfile.js
return defaults;
},
... | tools.initialize(gulp, {
checkDependencies: true,
checkFileNames: defaults => {
defaults.paramCase.push('!src/tasks/check-file-names/__tests__/**');
return defaults;
},
eslint: {
rules: {
'global-require': 0
}
},
jest: {
testPathPattern: /.*-(test|spec)\.js$/,
unmockedModule... | <|file_sep|>gulpfile.js.diff
original:
updated:
const globalSourceFiles = require('./src/utils/global-source-files');
<|file_sep|>gulpfile.js.diff
original:
updated:
tools.setGlobalConfiguration({
sourceFiles: globalSourceFiles.concat('!**/dist/**')
});
<|file_sep|>original/gulpfile.js
return defaults;
},
... | 4a83f02875e061058062e75624d0ec9ca86fe510 | gulpfile.js | gulpfile.js | JavaScript |
<|file_sep|>.drone.yml.diff
original:
image: wagtail-flake8
updated:
image: python:3.5
<|file_sep|>original/.drone.yml
# The scripts for building the base images can be found in scripts/drone-images
build:
flake8:
image: wagtail-flake8
commands:
- flake8 wagtail
jscs:
image: wagtail-jscs
... | # The scripts for building the base images can be found in scripts/drone-images
build:
flake8:
image: python:3.5
commands:
- XDG_CACHE_HOME=/drone/pip-cache pip install flake8
- flake8 wagtail
jscs:
image: wagtail-jscs
commands:
- jscs ./wagtail
scss-lint:
image: wagtail-scs... | <|file_sep|>.drone.yml.diff
original:
image: wagtail-flake8
updated:
image: python:3.5
<|file_sep|>original/.drone.yml
# The scripts for building the base images can be found in scripts/drone-images
build:
flake8:
image: wagtail-flake8
commands:
- flake8 wagtail
jscs:
image: wagtail-jscs
... | 7979dffdaad67600e541e4f76de9f0fcf545d240 | .drone.yml | .drone.yml | YAML |
<|file_sep|>original/lib/llt/diff.rb
require "llt/diff/version"
module LLT
class Diff
require 'llt/diff/parser'
def initialize(gold, reviewables)
@gold, @reviewables = parse_threaded(gold, reviewables)
@diff = {}
end
def compare
@reviewables.each { |reviewable| reviewable.compare(... | require "llt/diff/version"
module LLT
class Diff
require 'llt/diff/parser'
def initialize(gold, reviewables)
@gold, @reviewables = parse_threaded(gold, reviewables)
end
def compare
@reviewables.each { |reviewable| reviewable.compare(@gold) }
end
# first item should be the gold ... | <|file_sep|>original/lib/llt/diff.rb
require "llt/diff/version"
module LLT
class Diff
require 'llt/diff/parser'
def initialize(gold, reviewables)
@gold, @reviewables = parse_threaded(gold, reviewables)
@diff = {}
end
def compare
@reviewables.each { |reviewable| reviewable.compare(... | 77a6a781e7914682d90f459e34141bd3ad50ee63 | lib/llt/diff.rb | lib/llt/diff.rb | Ruby |
<|file_sep|>packages/fo/focus.yaml.diff
original:
hash: 8bae36ad13b1afc231072267b3ceae5b095f9ef4fe12ed2bd923c0dde6d97f54
updated:
hash: f1cdfcaad3a0be7494f09bcb31726000bc4c9a3d41c0bf83d65fe3232db1a1f8
<|file_sep|>packages/fo/focus.yaml.diff
original:
base: ! '>=4.6 && <4.10'
updated:
base: ! '>=4.6 && <4.11'
<|file... | base: ! '>=4.6 && <4.11'
all-versions:
- '0.1.0'
- '0.1.1'
- '0.1.2'
- '0.1.3'
- '0.1.4'
- '0.1.5'
- '0.1.5.1'
author: Nikita Volkov <nikita.y.volkov@mail.ru>
latest: '0.1.5.1'
description-type: haddock
description: ! 'An API for construction of free-form strategies of access and manipulation
of
elements of arbi... | <|file_sep|>packages/fo/focus.yaml.diff
original:
hash: 8bae36ad13b1afc231072267b3ceae5b095f9ef4fe12ed2bd923c0dde6d97f54
updated:
hash: f1cdfcaad3a0be7494f09bcb31726000bc4c9a3d41c0bf83d65fe3232db1a1f8
<|file_sep|>packages/fo/focus.yaml.diff
original:
base: ! '>=4.6 && <4.10'
updated:
base: ! '>=4.6 && <4.11'
<|file... | d09d649d76a094b157cafc15e661ee47dd663eba | packages/fo/focus.yaml | packages/fo/focus.yaml | YAML |
<|file_sep|>original/pom.xml
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>me.qmx.jitescript</groupId>
<artifactId>jitescript</artifactId>
<version>0.3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</... | <groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2</version>
</dependency>
</dep... | <|file_sep|>original/pom.xml
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>me.qmx.jitescript</groupId>
<artifactId>jitescript</artifactId>
<version>0.3.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</... | b73d547ce6cc773d8fbe47a2ece2234b144ac80e | pom.xml | pom.xml | XML |
<|file_sep|>tests/Integration/ChangesTest.php.diff
original:
updated:
use App\Tag;
use Bkwld\Decoy\Models\Change;
<|file_sep|>tests/Integration/ChangesTest.php.diff
original:
updated:
* The tag that triggreed changes
*
* @var Tag
*/
protected $tag;
/**
<|file_sep|>tests/Integration/Change... |
/**
* Test that the commands page loads
*
* @return void
*/
public function testIndex()
{
$response = $this->get('admin/changes');
$response->assertStatus(200);
// Test that all the changes from the setUp were created
$this->assertEquals(3, Change::count... | <|file_sep|>tests/Integration/ChangesTest.php.diff
original:
updated:
use App\Tag;
use Bkwld\Decoy\Models\Change;
<|file_sep|>tests/Integration/ChangesTest.php.diff
original:
updated:
* The tag that triggreed changes
*
* @var Tag
*/
protected $tag;
/**
<|file_sep|>tests/Integration/Change... | a61d4d7dfc2538cf64a507f8dbea9669d8364392 | tests/Integration/ChangesTest.php | tests/Integration/ChangesTest.php | PHP |
<|file_sep|>pkgs/applications/science/logic/hol_light/default.nix.diff
original:
version = "205";
updated:
version = "218";
<|file_sep|>original/pkgs/applications/science/logic/hol_light/default.nix
'';
in
stdenv.mkDerivation rec {
name = "hol_light-${version}";
version = "205";
src = fetchsvn {
... | '';
in
stdenv.mkDerivation rec {
name = "hol_light-${version}";
version = "218";
src = fetchsvn {
url = http://hol-light.googlecode.com/svn/trunk;
rev = version;
sha256 = "0lidcadyjpyqd2iw90gfrm8hb6g9gpabp54c0ps6z0lb6hdzln74";
};
buildInputs = [ ocaml findlib camlp5 ];
installPhase = ... | <|file_sep|>pkgs/applications/science/logic/hol_light/default.nix.diff
original:
version = "205";
updated:
version = "218";
<|file_sep|>original/pkgs/applications/science/logic/hol_light/default.nix
'';
in
stdenv.mkDerivation rec {
name = "hol_light-${version}";
version = "205";
src = fetchsvn {
... | 5f6e6b166123bb2287824d57bf081823ad01311e | pkgs/applications/science/logic/hol_light/default.nix | pkgs/applications/science/logic/hol_light/default.nix | Nix |
<|file_sep|>original/.github/workflows/pull-requests.yml
# yamllint disable-line rule:truthy
on: pull_request
jobs:
code-quality:
name: Check code quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: languagetool
uses: reviewdog/action-la... | jobs:
code-quality:
name: Check code quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: languagetool
uses: reviewdog/action-languagetool@v1
with:
github_token: ${{ secrets.github_token }}
# Change reviewdog re... | <|file_sep|>original/.github/workflows/pull-requests.yml
# yamllint disable-line rule:truthy
on: pull_request
jobs:
code-quality:
name: Check code quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: languagetool
uses: reviewdog/action-la... | b295440b41c0c30ef4ebcf274e629e4dc7a46c20 | .github/workflows/pull-requests.yml | .github/workflows/pull-requests.yml | YAML |
<|file_sep|>original/ember/ember-cli-build.js
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the value... | // If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules t... | <|file_sep|>original/ember/ember-cli-build.js
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the value... | 8f4a856c5f8fb1fd6c90dbf64a73760b7f5e5016 | ember/ember-cli-build.js | ember/ember-cli-build.js | JavaScript |
<|file_sep|>original/main.py
<|file_sep|>current/main.py
<|file_sep|>updated/main.py | import praw
from flask import Flask
from flask import request, render_template
from prawoauth2 import PrawOAuth2Mini
from settings import (app_key, app_secret, access_token, refresh_token,
user_agent, scopes)
reddit_client = praw.Reddit(user_agent=user_agent)
oauth_helper = PrawOAuth2Mini(reddit... | <|file_sep|>original/main.py
<|file_sep|>current/main.py
<|file_sep|>updated/main.py
import praw
from flask import Flask
from flask import request, render_template
from prawoauth2 import PrawOAuth2Mini
from settings import (app_key, app_secret, access_token, refresh_token,
user_agent, scopes)
... | 595e111542770c8004317a1d739823342a87cedc | main.py | main.py | Python |
<|file_sep|>.travis.yml.diff
original:
sudo apt-get install -y libstdc++-4.9-dev;
updated:
sudo apt-get install -y libstdc++-4.8-dev;
<|file_sep|>original/.travis.yml
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
sudo add-apt-repository ppa:boost-latest/ppa -y;
sudo apt-get u... | sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
sudo add-apt-repository ppa:boost-latest/ppa -y;
sudo apt-get update -qq;
elif [ $TRAVIS_OS_NAME = osx ]; then
brew update;
fi;
install:
- if [ $TRAVIS_OS_NAME = linux ]; then
if [ "$CXX" = "clang++" ]; then
sudo apt... | <|file_sep|>.travis.yml.diff
original:
sudo apt-get install -y libstdc++-4.9-dev;
updated:
sudo apt-get install -y libstdc++-4.8-dev;
<|file_sep|>original/.travis.yml
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
sudo add-apt-repository ppa:boost-latest/ppa -y;
sudo apt-get u... | 31a9e3b3fffa00d012907fdf544d58a52af0afa8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
<!-- img src="http://www.devnet.de/fileadmin/images/DEVnet_Logo2014.png" width="150px" height="150px"/-->
qJava 2.0
=========
The q/kdb+ interface is implemented as a set of Java classes and provides:
- Simple to use API
- Support for synchronous and asynchronous queries
- Convenient as... | <!-- img src="http://www.devnet.de/fileadmin/images/DEVnet_Logo2014.png" width="150px" height="150px"/-->
qJava 2.0
=========
The q/kdb+ interface is implemented as a set of Java classes and provides:
- Simple to use API
- Support for synchronous and asynchronous queries
- Convenient asynchronous callbacks mechanism
... | <|file_sep|>original/README.md
<!-- img src="http://www.devnet.de/fileadmin/images/DEVnet_Logo2014.png" width="150px" height="150px"/-->
qJava 2.0
=========
The q/kdb+ interface is implemented as a set of Java classes and provides:
- Simple to use API
- Support for synchronous and asynchronous queries
- Convenient as... | 767d0674d380f48bb6162626120179eb32a95124 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: python
env:
# Keep this list up to date using `tox -l`
matrix:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=flake8
- TOXENV=docs
install: travis_retry pip install tox coveralls
script: tox -e $TOXENV
after_success: coveralls
<|file_sep|>curren... | language: python
env:
# Keep this list up to date using `tox -l`
matrix:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=flake8
- TOXENV=docs
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libxml2-dev libssl-dev libxmlsec1-dev
install: travis_retry pip install tox ... | <|file_sep|>original/.travis.yml
language: python
env:
# Keep this list up to date using `tox -l`
matrix:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=flake8
- TOXENV=docs
install: travis_retry pip install tox coveralls
script: tox -e $TOXENV
after_success: coveralls
<|file_sep|>curren... | 6401951b2e2d259052db85e33a7d39972a214454 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
var r... | }
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
var rowView = inflater.inflate(R.layout.transaction_list_item, parent, false)
val transactionRecord = getItem(position)... | <|file_sep|>original/src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
var r... | 3e1b363b48bfc34f6e11b848c22d3d80c29ff8ea | src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt | src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt | Kotlin |
<|file_sep|>original/requirements-dev.txt
coverage==4.5.1
flake8==3.6.0
nose==1.3.7
pep8==1.7.1
pylint==1.9.2; python_version < '3.0'
pylint==2.1.1; python_version > '3.0'
rednose==1.3.0
sphinx==1.8.1
flake8-import-order==0.18
<|file_sep|>current/requirements-dev.txt
coverage==4.5.1
flake8==3.6.0
nose==1.3.7
pep8==1.7.... | coverage==4.5.1
flake8==3.6.0
nose==1.3.7
pep8==1.7.1
pylint==1.9.2; python_version < '3.0'
pylint==2.1.1; python_version > '3.0'
rednose==1.3.0
sphinx==1.8.2
flake8-import-order==0.18 | <|file_sep|>original/requirements-dev.txt
coverage==4.5.1
flake8==3.6.0
nose==1.3.7
pep8==1.7.1
pylint==1.9.2; python_version < '3.0'
pylint==2.1.1; python_version > '3.0'
rednose==1.3.0
sphinx==1.8.1
flake8-import-order==0.18
<|file_sep|>current/requirements-dev.txt
coverage==4.5.1
flake8==3.6.0
nose==1.3.7
pep8==1.7.... | e59af4f13421fc59ef8276f7ec44bbd969c737a9 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/conda_requirements.txt
python-dateutil=2.4.2
requests=2.7.0
scipy=0.15.1
scikit-learn=0.15.2
numpy=1.9.2
pandas=0.16.1
spacy=0.70
nltk=3.0.2
seaborn=0.5.1
matplotlib=1.4.3
beautiful-soup=4.3.2
ipython=3.0.0
pip=6.1.1
pyzmq
terminado
tornado
jinja2
jsonschema
pyzmq
mistune
pygments
<|file_sep|>curre... | pymongo=2.8
python-dateutil=2.4.2
requests=2.7.0
scipy=0.15.1
scikit-learn=0.15.2
numpy=1.9.2
pandas=0.16.1
spacy=0.70
nltk=3.0.2
seaborn=0.5.1
matplotlib=1.4.3
beautiful-soup=4.3.2
pip=6.1.1
pyzmq
terminado
tornado
jinja2
jsonschema
pyzmq
mistune
pygments | <|file_sep|>original/conda_requirements.txt
python-dateutil=2.4.2
requests=2.7.0
scipy=0.15.1
scikit-learn=0.15.2
numpy=1.9.2
pandas=0.16.1
spacy=0.70
nltk=3.0.2
seaborn=0.5.1
matplotlib=1.4.3
beautiful-soup=4.3.2
ipython=3.0.0
pip=6.1.1
pyzmq
terminado
tornado
jinja2
jsonschema
pyzmq
mistune
pygments
<|file_sep|>curre... | 609516381c58e6ab1fba622c22448d21a0156fb7 | conda_requirements.txt | conda_requirements.txt | Text |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.7"
# command to install dependencies
install: "python setup.py install"
# command to run tests
script: "test/run_tests.sh pythonunit"
<|file_sep|>current/.travis.yml
language: python
python:
- "3.7"
# command to install dependencies
install: "python set... | language: python
python:
- "3.8"
# command to install dependencies
install: "python setup.py install"
# command to run tests
script: "test/run_tests.sh pythonunit" | <|file_sep|>original/.travis.yml
language: python
python:
- "3.7"
# command to install dependencies
install: "python setup.py install"
# command to run tests
script: "test/run_tests.sh pythonunit"
<|file_sep|>current/.travis.yml
language: python
python:
- "3.7"
# command to install dependencies
install: "python set... | 9ead9bb2251f162ccf337575c234c5dd2218a2b4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/flask_application/templates/content_page_t.html
{% block body %}
<div class="row">
<div class="eight columns offset-by-four" style="text-align:center;">
<p class='remove-bottom'>
<strong>
{{ date.strftime('%b %-d') | yesterday }} —
{{ date... | {% block body %}
<div class="row">
<div class="eight columns offset-by-four" style="text-align:center;">
<p class='remove-bottom'>
<strong>
{{ date.strftime('%b %-d') | yesterday }} —
{{ date.strftime('%b %-d') | today }} —
{{ date.strftime('%b %-d... | <|file_sep|>original/flask_application/templates/content_page_t.html
{% block body %}
<div class="row">
<div class="eight columns offset-by-four" style="text-align:center;">
<p class='remove-bottom'>
<strong>
{{ date.strftime('%b %-d') | yesterday }} —
{{ date... | 3994f486314d0153a186dec9219be5401706a38a | flask_application/templates/content_page_t.html | flask_application/templates/content_page_t.html | HTML |
<|file_sep|>jsonschema/tests/_helpers.py.diff
original:
updated:
from urllib.parse import urljoin
def issues_url(organization, repository):
return urljoin(
urljoin(
urljoin("https://github.com", organization),
repository,
),
"issues",
)
ISSUES_URL = issues_ur... | ),
"issues",
)
ISSUES_URL = issues_url("python-jsonschema", "jsonschema")
TEST_SUITE_ISSUES_URL = issues_url("json-schema-org", "JSON-Schema-Test-Suite")
def bug(issue=None):
message = "A known bug."
if issue is not None:
message += f" See {urljoin(ISSUES_URL, str(issue))}."
... | <|file_sep|>jsonschema/tests/_helpers.py.diff
original:
updated:
from urllib.parse import urljoin
def issues_url(organization, repository):
return urljoin(
urljoin(
urljoin("https://github.com", organization),
repository,
),
"issues",
)
ISSUES_URL = issues_ur... | 86a5fff9add5980892c90a3e34476802dec7a6dc | jsonschema/tests/_helpers.py | jsonschema/tests/_helpers.py | Python |
<|file_sep|>library/ZendPdf/composer.json.diff
original:
updated:
"description": " ",
<|file_sep|>original/library/ZendPdf/composer.json
{
"name": "zendframework/zend-pdf",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"pdf"
],
"autoload": {
"psr-0": {
"Zen... | {
"name": "zendframework/zend-pdf",
"description": " ",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"pdf"
],
"autoload": {
"psr-0": {
"Zend\\Pdf": ""
}
},
"target-dir": "Zend/Pdf",
"require": {
"php": ">=5.3.3"
}
} | <|file_sep|>library/ZendPdf/composer.json.diff
original:
updated:
"description": " ",
<|file_sep|>original/library/ZendPdf/composer.json
{
"name": "zendframework/zend-pdf",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"pdf"
],
"autoload": {
"psr-0": {
"Zen... | 352ceba9b9f46f5bbe33c5b5a785e61d10bae039 | library/ZendPdf/composer.json | library/ZendPdf/composer.json | JSON |
<|file_sep|>original/startzone.py
def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False):
s = xmlrpclib.ServerProxy('http://localhost:9001')
import socket
try:
version = s.twiddler.getAPIVersion()
except(socket.error), exc:
raise UserWarning("Could not ... | def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False):
s = xmlrpclib.ServerProxy('http://localhost:9001')
import socket
try:
version = s.twiddler.getAPIVersion()
except(socket.error), exc:
raise UserWarning("Could not connect to supervisor: %s" % exc)
... | <|file_sep|>original/startzone.py
def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False):
s = xmlrpclib.ServerProxy('http://localhost:9001')
import socket
try:
version = s.twiddler.getAPIVersion()
except(socket.error), exc:
raise UserWarning("Could not ... | 19952d7f437270065a693dc886c867329ec7c4a0 | startzone.py | startzone.py | Python |
<|file_sep|>original/widgets/ContentOutput.php
{
/** @var Content $model */
$model = \Yii::$app->getModule("content")->model("Content");
$dataProvider = new ActiveDataProvider(
[
'query' => $model::find()->where('EXTRACT(epoch from date_hide) > :time or date_hide ... | {
/** @var Content $model */
$model = \Yii::$app->getModule("content")->model("Content");
$dataProvider = new ActiveDataProvider(
[
'query' => $model::find()->where('EXTRACT(epoch from date_hide) > :time or date_hide is null', ['time' => time()])
... | <|file_sep|>original/widgets/ContentOutput.php
{
/** @var Content $model */
$model = \Yii::$app->getModule("content")->model("Content");
$dataProvider = new ActiveDataProvider(
[
'query' => $model::find()->where('EXTRACT(epoch from date_hide) > :time or date_hide ... | 66577493233a63bfcbbc458482723a49c2a1ac2f | widgets/ContentOutput.php | widgets/ContentOutput.php | PHP |
<|file_sep|>original/sonar-project.properties
sonar.projectName=tba-api-storm
sonar.projectVersion=1.1.1
# =====================================================
# Meta-data for the project
# =====================================================
sonar.links.homepage=https://github.com/2729StormRobotics/tba-api-storm... | sonar.projectName=tba-api-storm
sonar.projectVersion=1.1.1
# =====================================================
# Meta-data for the project
# =====================================================
sonar.links.homepage=https://github.com/2729StormRobotics/tba-api-storm
sonar.links.ci=https://travis-ci.org/2729Stor... | <|file_sep|>original/sonar-project.properties
sonar.projectName=tba-api-storm
sonar.projectVersion=1.1.1
# =====================================================
# Meta-data for the project
# =====================================================
sonar.links.homepage=https://github.com/2729StormRobotics/tba-api-storm... | 5dd82551fabcc91472910b1c8cc79f5e2aa97124 | sonar-project.properties | sonar-project.properties | INI |
<|file_sep|>original/README.md
MemC3
=====
MemC3 is an in-memory key-value cache, derived from Memcached but improved with memory-efficient and concurrent data structures. MemC3 applies multi-reader concurrent cuckoo hashing as its key-value index and CLOCK-replacement algorithm as cache eviction policy. As a result,... | MemC3
=====
MemC3 is an in-memory key-value cache, derived from Memcached but improved with memory-efficient and concurrent data structures. MemC3 applies multi-reader concurrent cuckoo hashing as its key-value index and CLOCK-replacement algorithm as cache eviction policy. As a result, MemC3 scales better, runs fast... | <|file_sep|>original/README.md
MemC3
=====
MemC3 is an in-memory key-value cache, derived from Memcached but improved with memory-efficient and concurrent data structures. MemC3 applies multi-reader concurrent cuckoo hashing as its key-value index and CLOCK-replacement algorithm as cache eviction policy. As a result,... | b4fbe38beaaa426e0e74a1337f5189729aa7ad10 | README.md | README.md | Markdown |
<|file_sep|>molequeue/transport/zeromq/plugin/CMakeLists.txt.diff
original:
add_library(mqzeromqclf MODULE zeromqconnectionlistenerfactory.cpp)
set_target_properties(mqzeromqclf PROPERTIES AUTOMOC TRUE)
target_link_libraries(mqzeromqclf MoleQueueZeroMqServer)
updated:
add_library(ZeroMqServer MODULE zeromqconnectionlis... | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../lib/molequeue/plugins)
add_library(ZeroMqServer MODULE zeromqconnectionlistenerfactory.cpp)
set_target_properties(ZeroMqServer PROPERTIES AUTOMOC TRUE)
target_link_libraries(ZeroMqServer MoleQueueZeroMqServer)
install(TARGETS ZeroMqServer DESTI... | <|file_sep|>molequeue/transport/zeromq/plugin/CMakeLists.txt.diff
original:
add_library(mqzeromqclf MODULE zeromqconnectionlistenerfactory.cpp)
set_target_properties(mqzeromqclf PROPERTIES AUTOMOC TRUE)
target_link_libraries(mqzeromqclf MoleQueueZeroMqServer)
updated:
add_library(ZeroMqServer MODULE zeromqconnectionlis... | 127e8b8d351eacd7901952107aa3dbc59b04df1f | molequeue/transport/zeromq/plugin/CMakeLists.txt | molequeue/transport/zeromq/plugin/CMakeLists.txt | Text |
<|file_sep|>src/Oro/Bundle/SoapBundle/Resources/config/services.yml.diff
original:
oro_soap.loader_yml.class: Oro\Bundle\SoapBundle\ServiceDefinition\Loader\YmlAnnotationClassLoader
updated:
oro_soap.loader.class: Oro\Bundle\SoapBundle\ServiceDefinition\Loader\OroSoapLoader
<|file_sep|>src/Oro... | parameters:
oro_soap.request.class: Oro\Bundle\SoapBundle\Entity\RequestFix
oro_soap.loader.class: Oro\Bundle\SoapBundle\ServiceDefinition\Loader\OroSoapLoader
services:
oro_soap.request:
class: %oro_soap.request.class%
scope: ... | <|file_sep|>src/Oro/Bundle/SoapBundle/Resources/config/services.yml.diff
original:
oro_soap.loader_yml.class: Oro\Bundle\SoapBundle\ServiceDefinition\Loader\YmlAnnotationClassLoader
updated:
oro_soap.loader.class: Oro\Bundle\SoapBundle\ServiceDefinition\Loader\OroSoapLoader
<|file_sep|>src/Oro... | faec207b87a9bab629d75ba1cb21665ffde18477 | src/Oro/Bundle/SoapBundle/Resources/config/services.yml | src/Oro/Bundle/SoapBundle/Resources/config/services.yml | YAML |
<|file_sep|>original/tcconfig/_common.py
def verify_network_interface(device):
try:
import netifaces
except ImportError:
return
if device not in netifaces.interfaces():
raise NetworkInterfaceNotFoundError(
"network interface not found: " + device)
def sanitize_networ... |
def verify_network_interface(device):
try:
import netifaces
except ImportError:
return
if device not in netifaces.interfaces():
raise NetworkInterfaceNotFoundError(
"network interface not found: {}".format(device))
def sanitize_network(network):
"""
:return: ... | <|file_sep|>original/tcconfig/_common.py
def verify_network_interface(device):
try:
import netifaces
except ImportError:
return
if device not in netifaces.interfaces():
raise NetworkInterfaceNotFoundError(
"network interface not found: " + device)
def sanitize_networ... | 4d414fe592bfd7f085f9aaea0b6992d28ad193ce | tcconfig/_common.py | tcconfig/_common.py | Python |
<|file_sep|>original/Mollie.Api/Models/Payment/PaymentMethod.cs
using Newtonsoft.Json.Converters;
namespace Mollie.Api.Models.Payment {
[JsonConverter(typeof(StringEnumConverter))]
public enum PaymentMethod {
[EnumMember(Value = "ideal")] Ideal,
[EnumMember(Value = "creditcard")] CreditCard,
... |
namespace Mollie.Api.Models.Payment {
[JsonConverter(typeof(StringEnumConverter))]
public enum PaymentMethod {
[EnumMember(Value = "ideal")] Ideal,
[EnumMember(Value = "creditcard")] CreditCard,
[EnumMember(Value = "mistercash")] MisterCash,
[EnumMember(Value = "sofort")] Sofort... | <|file_sep|>original/Mollie.Api/Models/Payment/PaymentMethod.cs
using Newtonsoft.Json.Converters;
namespace Mollie.Api.Models.Payment {
[JsonConverter(typeof(StringEnumConverter))]
public enum PaymentMethod {
[EnumMember(Value = "ideal")] Ideal,
[EnumMember(Value = "creditcard")] CreditCard,
... | 2a4406cdae3bff53430d2dac034aa9bd0ed04c02 | Mollie.Api/Models/Payment/PaymentMethod.cs | Mollie.Api/Models/Payment/PaymentMethod.cs | C# |
<|file_sep|>original/lib/tasks/import_racquet.rake
# Import data from racquet.io
task :import_racquet_data => :environment do
puts 'Importing data from Racquet.io'
match_data = JSON.parse(HTTParty.get('http://racquet.io/pivotal-denver/matches.json?limit=500').body)['results']
match_data.each do |match|
# Ma... | # Import data from racquet.io
task :import_racquet_data => :environment do
puts 'Importing data from Racquet.io'
match_data = JSON.parse(HTTParty.get('http://racquet.io/pivotal-denver/matches.json?limit=500').body)['results']
match_data.each do |match|
Match.create(winner: match['winner'], loser: match['los... | <|file_sep|>original/lib/tasks/import_racquet.rake
# Import data from racquet.io
task :import_racquet_data => :environment do
puts 'Importing data from Racquet.io'
match_data = JSON.parse(HTTParty.get('http://racquet.io/pivotal-denver/matches.json?limit=500').body)['results']
match_data.each do |match|
# Ma... | fa8be780658d04ccdba91a62c70669d0cf4ff943 | lib/tasks/import_racquet.rake | lib/tasks/import_racquet.rake | Ruby |
<|file_sep|>pyproject.toml.diff
original:
py36 = true
updated:
<|file_sep|>original/pyproject.toml
[tool.black]
line-length = 79
py36 = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
<|file_sep|>current/pyproject.toml... | [tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
target-version = ['py36'] | <|file_sep|>pyproject.toml.diff
original:
py36 = true
updated:
<|file_sep|>original/pyproject.toml
[tool.black]
line-length = 79
py36 = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
<|file_sep|>current/pyproject.toml... | 018d892be677a867a2bce7d7cf2fc58f9022a340 | pyproject.toml | pyproject.toml | TOML |
<|file_sep|>cli.js.diff
original:
var path = require('path');
var chalk = require('chalk');
updated:
<|file_sep|>cli.js.diff
original:
if (process.argv.length < 3) {
console.error('Usage: ' + process.argv[0] + ' ' + path.basename(__filename) + ' <project path>');
process.exit(2);
}
var root = path.resolve(process... | #!/usr/bin/env node
'use strict';
var checkLocales = require('./');
checkLocales(process.argv[2] || '.', function (error, badBundles) {
if (error) {
console.error('Unexpected error: ' + error);
process.exit(2);
}
if (badBundles.length > 0) {
process.exit(1);
}
}); | <|file_sep|>cli.js.diff
original:
var path = require('path');
var chalk = require('chalk');
updated:
<|file_sep|>cli.js.diff
original:
if (process.argv.length < 3) {
console.error('Usage: ' + process.argv[0] + ' ' + path.basename(__filename) + ' <project path>');
process.exit(2);
}
var root = path.resolve(process... | 3df2fa9957b5a297e50f01163a0aafc81129b428 | cli.js | cli.js | JavaScript |
<|file_sep|>original/lcp/settings/base.py
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.environ['SECRET_KEY']
<|file_sep|>current/lcp/settings/base.py
import os
# Build paths inside the project ... | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.environ['SECRET_KEY']
# Other settings must explicitly opt-in for debug mode.
DEBUG = False | <|file_sep|>original/lcp/settings/base.py
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = os.environ['SECRET_KEY']
<|file_sep|>current/lcp/settings/base.py
import os
# Build paths inside the project ... | 01d49c43594829c5ba10c4dcb6db00bfd5e5fb61 | lcp/settings/base.py | lcp/settings/base.py | Python |
<|file_sep|>original/README.md
couchexport [](http://travis-ci.org/cliffano/couchexport)
-----------
TODO
Installation
------------
npm install couchexport
Usage
-----
TODO
<|file_sep|>current/RE... | couchexport [](http://travis-ci.org/cliffano/couchexport)
-----------
TODO
Installation
------------
npm install couchexport
Usage
-----
TODO
| <|file_sep|>original/README.md
couchexport [](http://travis-ci.org/cliffano/couchexport)
-----------
TODO
Installation
------------
npm install couchexport
Usage
-----
TODO
<|file_sep|>current/RE... | aca161e6dfee4d9a948a9385bebf2f60d53c3d03 | README.md | README.md | Markdown |
<|file_sep|>original/pyservice/extensions.py
<|file_sep|>current/pyservice/extensions.py
<|file_sep|>updated/pyservice/extensions.py | from pyservice.layer import Layer
class ClientAuthLayer(Layer):
def handle_request(self, context, next):
client = context["client"]
key = client._attr("authuser", None)
pw = client._attr("authpw", None)
if key is None or pw is None:
raise ValueError("Must provide authus... | <|file_sep|>original/pyservice/extensions.py
<|file_sep|>current/pyservice/extensions.py
<|file_sep|>updated/pyservice/extensions.py
from pyservice.layer import Layer
class ClientAuthLayer(Layer):
def handle_request(self, context, next):
client = context["client"]
key = client._attr("authuser", ... | b7e0811fccbd76ee690c9e042ca86ad419b2d226 | pyservice/extensions.py | pyservice/extensions.py | Python |
<|file_sep|>original/src/config/home.js
function getHomeConfig() {
try {
const config = JSON.parse(fs.readFileSync(mainConfigPath, 'utf8'));
if (config.homeDir) {
config.homeDir = path.resolve(mainConfigPath, '..', config.homeDir);
debug(`homeDir is ${config.homeDir}`);
... |
function getHomeConfig() {
try {
const config = JSON.parse(fs.readFileSync(mainConfigPath, 'utf8'));
if (config.homeDir) {
config.homeDir = path.resolve(mainConfigPath, '..', config.homeDir);
debug(`homeDir is ${config.homeDir}`);
}
return config;
} catch... | <|file_sep|>original/src/config/home.js
function getHomeConfig() {
try {
const config = JSON.parse(fs.readFileSync(mainConfigPath, 'utf8'));
if (config.homeDir) {
config.homeDir = path.resolve(mainConfigPath, '..', config.homeDir);
debug(`homeDir is ${config.homeDir}`);
... | 3074ccf8bbf2998566503d0fc976cca4ce88c36f | src/config/home.js | src/config/home.js | JavaScript |
<|file_sep|>lib/contrib/connectMiddleware.js.diff
original:
var rres = router.dispatch(url, {initialOnly: true});
rres.request
.on('error', function(err) {
updated:
router.dispatch(url, {initialOnly: true}, function(err, rres) {
if (err) {
<|file_sep|>lib/contrib/connectMiddleware.js.diff
origin... |
router.dispatch(url, {initialOnly: true}, function(err, rres) {
if (err) {
// The React router doesn't want to handle it. That's okay, let
// something else.
if (err.name === 'Unhandled') return next();
// Uh oh. A real error.
return next(err);
}
var cont... | <|file_sep|>lib/contrib/connectMiddleware.js.diff
original:
var rres = router.dispatch(url, {initialOnly: true});
rres.request
.on('error', function(err) {
updated:
router.dispatch(url, {initialOnly: true}, function(err, rres) {
if (err) {
<|file_sep|>lib/contrib/connectMiddleware.js.diff
origin... | 039dbe18bd1e4429f688c7549722ab72a3a85d21 | lib/contrib/connectMiddleware.js | lib/contrib/connectMiddleware.js | JavaScript |
<|file_sep|>original/kicad-ppa/simple-add-ppa.sh
#!/bin/sh
set -x
set -e
REPO="$(echo $1 | sed -e's/ppa://')"
FILE="$(echo $1 | sed -e's/[^A-Za-z-]/-/g')"
KEY=$2
DISTRIB_CODENAME="$(lsb_release -c -s || echo $3)"
if [ -z $DISTRIB_CODENAME ]; then
echo "Can't find DISTRIB_CODENAME via lsb_release, give it as third ... | #!/bin/sh
set -x
set -e
REPO="$(echo $1 | sed -e's/ppa://')"
FILE="$(echo $1 | sed -e's/[^A-Za-z-]/-/g').list"
KEY=$2
DISTRIB_CODENAME="$(lsb_release -c -s || echo $3)"
if [ -z $DISTRIB_CODENAME ]; then
echo "Can't find DISTRIB_CODENAME via lsb_release, give it as third argument."
exit 1
fi
cat > /etc/apt/sourc... | <|file_sep|>original/kicad-ppa/simple-add-ppa.sh
#!/bin/sh
set -x
set -e
REPO="$(echo $1 | sed -e's/ppa://')"
FILE="$(echo $1 | sed -e's/[^A-Za-z-]/-/g')"
KEY=$2
DISTRIB_CODENAME="$(lsb_release -c -s || echo $3)"
if [ -z $DISTRIB_CODENAME ]; then
echo "Can't find DISTRIB_CODENAME via lsb_release, give it as third ... | fccc00cb89f9e97c867ed80cbf4bcfc99d259f5e | kicad-ppa/simple-add-ppa.sh | kicad-ppa/simple-add-ppa.sh | Shell |
<|file_sep|>original/features/search-replace.feature
Feature: Do global search/replace
Scenario: Basic search/replace
Given a WP install
When I run `wp search-replace foo bar`
Then STDOUT should contain:
"""
guid
"""
When I run `wp search-replace foo bar --skip-columns=guid`
T... | Then STDOUT should contain:
"""
guid
"""
When I run `wp search-replace foo bar --skip-columns=guid`
Then STDOUT should not contain:
"""
guid
"""
Scenario: Large search/replace
Given a WP install
And I run `wp post generate --count=1200`
And I run `wp sea... | <|file_sep|>original/features/search-replace.feature
Feature: Do global search/replace
Scenario: Basic search/replace
Given a WP install
When I run `wp search-replace foo bar`
Then STDOUT should contain:
"""
guid
"""
When I run `wp search-replace foo bar --skip-columns=guid`
T... | d3515347c2ed7d96746b151196761084117d8e46 | features/search-replace.feature | features/search-replace.feature | Cucumber |
<|file_sep|>README.rst.diff
original:
.. [1] Timestamps in log files not implemented yet.
.. [2] Daemonising not implemented yet.
.. [3] Graceful restarts not implemented yet.
.. [4] Email notifications not implemented yet.
.. [5] IRC notifications not implemented yet.
.. [6] HTTP notifications not implemented yet.
upd... | # Run a process in the background.
stoic --daemon --log-file=stoic.log --socket=stoic.control -- myprogram
# Replace a running process
stoic --replace --log-file=stoic.log --socket=stoic.control -- myprogram
Installation
------------
.. code:: sh
pip install stoic
----
.. [1] Timestamps in log... | <|file_sep|>README.rst.diff
original:
.. [1] Timestamps in log files not implemented yet.
.. [2] Daemonising not implemented yet.
.. [3] Graceful restarts not implemented yet.
.. [4] Email notifications not implemented yet.
.. [5] IRC notifications not implemented yet.
.. [6] HTTP notifications not implemented yet.
upd... | b9ca7e81024193725a76c4e82167555a92fc8d56 | README.rst | README.rst | reStructuredText |
<|file_sep|>original/src/ApiEdgeDefinition.ts
import {ApiEdgeRelation} from "./relations/ApiEdgeRelation";
import {ApiEdgeQueryContext} from "./ApiEdgeQueryContext";
export interface ApiEdgeDefinition {
name: string;
methods: Object;
relations: ApiEdgeRelation[];
getEntry: (context: ApiEdgeQueryConte... | import {ApiEdgeRelation} from "./relations/ApiEdgeRelation";
import {ApiEdgeQueryContext} from "./ApiEdgeQueryContext";
export interface ApiEdgeDefinition {
name: string;
pluralName: string;
methods: Object;
relations: ApiEdgeRelation[];
getEntry: (context: ApiEdgeQueryContext) => Promise<ApiEdg... | <|file_sep|>original/src/ApiEdgeDefinition.ts
import {ApiEdgeRelation} from "./relations/ApiEdgeRelation";
import {ApiEdgeQueryContext} from "./ApiEdgeQueryContext";
export interface ApiEdgeDefinition {
name: string;
methods: Object;
relations: ApiEdgeRelation[];
getEntry: (context: ApiEdgeQueryConte... | cf0ad8f3afc3ce66252b6964dd841d77a8d00498 | src/ApiEdgeDefinition.ts | src/ApiEdgeDefinition.ts | TypeScript |
<|file_sep|>test/bluezutils.py.diff
original:
updated:
DEVICE_INTERFACE = SERVICE_NAME + ".Device"
<|file_sep|>original/test/bluezutils.py
def get_managed_objects():
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
"org.freedesktop.DBus.ObjectManager")
return manager.GetManaged... | bus = dbus.SystemBus()
for path, ifaces in objects.iteritems():
adapter = ifaces.get(ADAPTER_INTERFACE)
if adapter is None:
continue
if not pattern or pattern == adapter["Address"] or
path.endswith(pattern)):
obj = bus.get_object(SERVICE_NAME, path)
return dbus.Interface(obj, ADAPTER_INTERFACE)
... | <|file_sep|>test/bluezutils.py.diff
original:
updated:
DEVICE_INTERFACE = SERVICE_NAME + ".Device"
<|file_sep|>original/test/bluezutils.py
def get_managed_objects():
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
"org.freedesktop.DBus.ObjectManager")
return manager.GetManaged... | 428e1e669e8b5e59da2c4d87716ffd329b4a084a | test/bluezutils.py | test/bluezutils.py | Python |
<|file_sep|>app/controllers/application_controller.rb.diff
original:
before_action :allow_cross_origin_requests, if: proc { Rails.env.development? }
updated:
<|file_sep|>original/app/controllers/application_controller.rb
user_id = auth_token.split(':').first
user = User.where(id: user_id).first
if user ... |
def authenticate_with_auth_token auth_token
unless auth_token.include?(':')
authentication_error
return
end
user_id = auth_token.split(':').first
user = User.where(id: user_id).first
if user && Devise.secure_compare(user.access_token, auth_token)
sign_in user, store: false
... | <|file_sep|>app/controllers/application_controller.rb.diff
original:
before_action :allow_cross_origin_requests, if: proc { Rails.env.development? }
updated:
<|file_sep|>original/app/controllers/application_controller.rb
user_id = auth_token.split(':').first
user = User.where(id: user_id).first
if user ... | 598b8732b460601573cf5aed6aaf33ee10955f24 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | Ruby |
<|file_sep|>metadata/net.moasdawiki.app.yml.diff
original:
updated:
- versionName: 2.4.2.0
versionCode: 20
commit: 2.4.2.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/net.moasdawiki.app.yml
gradle:
- yes
- versionName: 2.3.1.0
versionCode: 18
commit: 2.3.1.0
... | gradle:
- yes
- versionName: 2.3.3.0
versionCode: 19
commit: 2.3.3.0
subdir: app
gradle:
- yes
- versionName: 2.4.2.0
versionCode: 20
commit: 2.4.2.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 2.4.2.0
CurrentVer... | <|file_sep|>metadata/net.moasdawiki.app.yml.diff
original:
updated:
- versionName: 2.4.2.0
versionCode: 20
commit: 2.4.2.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/net.moasdawiki.app.yml
gradle:
- yes
- versionName: 2.3.1.0
versionCode: 18
commit: 2.3.1.0
... | 20950508739e61df652ebe9d5738a62179b20244 | metadata/net.moasdawiki.app.yml | metadata/net.moasdawiki.app.yml | YAML |
<|file_sep|>original/wikipendium/wiki/templates/no_article.html
{% extends "base.html" %}
{% load extras %}
{% block title %}This article does not exist -{% endblock %}
{% block body_class %}article{% endblock %}
{% block content %}
<div id=article class=serif>
<div class=no-article>
<h1>An article with ... | {% extends "base.html" %}
{% load extras %}
{% block title %}This article does not exist -{% endblock %}
{% block body_class %}article{% endblock %}
{% block content %}
<div id=article class=serif>
<div class=no-article>
<h1>An article with the course code {{ slug }} does not exist.</h1>
<h2><a h... | <|file_sep|>original/wikipendium/wiki/templates/no_article.html
{% extends "base.html" %}
{% load extras %}
{% block title %}This article does not exist -{% endblock %}
{% block body_class %}article{% endblock %}
{% block content %}
<div id=article class=serif>
<div class=no-article>
<h1>An article with ... | f5b0f4ad5a46f5a89315215edbf10986ecc3d173 | wikipendium/wiki/templates/no_article.html | wikipendium/wiki/templates/no_article.html | HTML |
<|file_sep|>original/test/e2e/pages/invite.js
this.inputInvite.sendKeys(who);
browser.wait(protractor.ExpectedConditions.presenceOf(this.inviteOption()));
browser.wait(protractor.ExpectedConditions.visibilityOf(this.inviteOption()));
this.inviteOption().click();
this.focusedInvite = element(by.... |
this.inputInvite.sendKeys(who);
browser.wait(protractor.ExpectedConditions.presenceOf(this.inviteOption()));
browser.wait(protractor.ExpectedConditions.visibilityOf(this.inviteOption()));
this.inviteOption().click();
this.focusedInvite = element(by.css('.selectize-input input:focus'));
// ... | <|file_sep|>original/test/e2e/pages/invite.js
this.inputInvite.sendKeys(who);
browser.wait(protractor.ExpectedConditions.presenceOf(this.inviteOption()));
browser.wait(protractor.ExpectedConditions.visibilityOf(this.inviteOption()));
this.inviteOption().click();
this.focusedInvite = element(by.... | a029cc96bcb46bbd4ae0fa54646962a835e0d106 | test/e2e/pages/invite.js | test/e2e/pages/invite.js | JavaScript |
<|file_sep|>_includes/head.html.diff
original:
<meta charset="utf-8">
updated:
<meta charset="utf-8" />
<|file_sep|>_includes/head.html.diff
original:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
updated:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<|file_sep|>_includes/head.html.di... | <head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>IDInteraction | {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="descrip... | <|file_sep|>_includes/head.html.diff
original:
<meta charset="utf-8">
updated:
<meta charset="utf-8" />
<|file_sep|>_includes/head.html.diff
original:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
updated:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<|file_sep|>_includes/head.html.di... | fd8ce1dca505757ff8fe4d4d6a7adf9b61ed04b3 | _includes/head.html | _includes/head.html | HTML |
<|file_sep|>original/front-end/src/app/components/navbar/navbar.html
<div class="navbar__menu_toggle">
<i class="material-icons">menu</i>
</div>
<ul class="navbar__item_wrapper">
<li class="navbar__item" ng-repeat="item in ::vm.menuItems"
ng-class="{active... | <div class="navbar__menu_toggle">
<i class="material-icons">menu</i>
</div>
<ul class="navbar__item_wrapper">
<li class="navbar__item" ng-repeat="item in ::vm.menuItems"
ng-class="{active: vm.activeTab === item.state}">
<a ng-click="vm.acti... | <|file_sep|>original/front-end/src/app/components/navbar/navbar.html
<div class="navbar__menu_toggle">
<i class="material-icons">menu</i>
</div>
<ul class="navbar__item_wrapper">
<li class="navbar__item" ng-repeat="item in ::vm.menuItems"
ng-class="{active... | 2f2be9e41d2cd3cc21dfd62eea682e2efeedf21d | front-end/src/app/components/navbar/navbar.html | front-end/src/app/components/navbar/navbar.html | HTML |
<|file_sep|>original/etc-skel.sh
<|file_sep|>current/etc-skel.sh
<|file_sep|>updated/etc-skel.sh | #!/usr/bin/env bash
set -exuo pipefail
# Intended for use on servers.
# Sets up the /etc/skel directory and adduser.conf for better shell experience for all users
which zsh # Ensure zsh exists on system
sudo cp promptline.sh /etc/skel/.promptline.sh
sudo cp zshrc /etc/skel/.zshrc
sudo sed -i .bu -e "s_DSHELL=/bin/ba... | <|file_sep|>original/etc-skel.sh
<|file_sep|>current/etc-skel.sh
<|file_sep|>updated/etc-skel.sh
#!/usr/bin/env bash
set -exuo pipefail
# Intended for use on servers.
# Sets up the /etc/skel directory and adduser.conf for better shell experience for all users
which zsh # Ensure zsh exists on system
sudo cp promptl... | 21ef5d7821974d52ad72a8e2ac30a456a2313674 | etc-skel.sh | etc-skel.sh | Shell |
<|file_sep|>original/Files/MoveData.py
<|file_sep|>current/Files/MoveData.py
<|file_sep|>updated/Files/MoveData.py | def move_data(token, member_id, from_path, to_path):
url = 'https://api.dropboxapi.com/1/fileops/move'
headers = {'Authorization': 'Bearer %s' % token, 'X-Dropbox-Perform-As-Team-Member': member_id}
data = {'root': 'auto', 'from_path': from_path, 'to_path': to_path}
print 'Moving "%s" to "%s" (member_id: %s)' % (f... | <|file_sep|>original/Files/MoveData.py
<|file_sep|>current/Files/MoveData.py
<|file_sep|>updated/Files/MoveData.py
def move_data(token, member_id, from_path, to_path):
url = 'https://api.dropboxapi.com/1/fileops/move'
headers = {'Authorization': 'Bearer %s' % token, 'X-Dropbox-Perform-As-Team-Member': member_id}
d... | f3e68a8c256a13316e96a45a956a632a14221d3f | Files/MoveData.py | Files/MoveData.py | Python |
<|file_sep|>original/README.md
conditional-validation
======================
## Build status
Travis [](https://travis-ci.org/bmaggi/conditional-validation)
License [](... | conditional-validation
======================
## Build status
[](https://travis-ci.org/bmaggi/conditional-validation)
[](http://www.apache.org/licenses/LICENSE-2.0)
[](https://travis-ci.org/bmaggi/conditional-validation)
License [](... | 2c1469b99cd3c95c05c66dc6948b2b06ff405924 | README.md | README.md | Markdown |
<|file_sep|>include/git2/checkout.h.diff
original:
* Updates files in the working tree to match the version in the index
* or HEAD.
updated:
* Updates files in the working tree to match the version in the index.
<|file_sep|>original/include/git2/checkout.h
* @brief Git checkout routines
* @defgroup git_checkout Gi... | /**
* @file git2/checkout.h
* @brief Git checkout routines
* @defgroup git_checkout Git checkout routines
* @ingroup Git
* @{
*/
GIT_BEGIN_DECL
/**
* Updates files in the working tree to match the version in the index.
*
* @param repo repository to check out (must be non-bare)
* @param stats pointer to struc... | <|file_sep|>include/git2/checkout.h.diff
original:
* Updates files in the working tree to match the version in the index
* or HEAD.
updated:
* Updates files in the working tree to match the version in the index.
<|file_sep|>original/include/git2/checkout.h
* @brief Git checkout routines
* @defgroup git_checkout Gi... | deac801de98be4974cfe806eb4bc072f34f81cc5 | include/git2/checkout.h | include/git2/checkout.h | C |
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "7.1"
- "hhvm"
install: composer install
script:
- mkdir -p build/logs
- phpunit --coverage-clover=build/logs/clover.xml
after_script:
- vendor/bin/coveralls
<|file_sep|>current/.travis.yml
language: php
sudo: ... | language: php
sudo: false
php:
- "5.6"
- "7"
- "7.1"
- "hhvm"
install: composer install
script:
- mkdir -p build/logs
- phpunit --coverage-clover=build/logs/clover.xml
after_script:
- vendor/bin/coveralls | <|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- "5.5"
- "5.6"
- "7"
- "7.1"
- "hhvm"
install: composer install
script:
- mkdir -p build/logs
- phpunit --coverage-clover=build/logs/clover.xml
after_script:
- vendor/bin/coveralls
<|file_sep|>current/.travis.yml
language: php
sudo: ... | 908b1e4a3f8fdbee53007914670498696041cccd | .travis.yml | .travis.yml | YAML |
<|file_sep|>server/utils/get-db-sort-index-map.js.diff
original:
, dbDriver = require('mano').dbDriver;
updated:
, dbDriver = require('mano').dbDriver
, isArray = Array.isArray;
<|file_sep|>server/utils/get-db-sort-index-map.js.diff
original:
var itemsMap = ee();
dbDriver.getStorage(storageName).on('ke... | });
} else {
storages = [dbDriver.getStorage(storageName)];
}
storages.forEach(function (storage) {
storage.on('key:' + (sortKeyPath + '&'), function (event) {
if (!itemsMap[event.ownerId]) {
itemsMap[event.ownerId] = { id: event.ownerId, stamp: event.data.stamp };
} else {
itemsMap[event.ownerId... | <|file_sep|>server/utils/get-db-sort-index-map.js.diff
original:
, dbDriver = require('mano').dbDriver;
updated:
, dbDriver = require('mano').dbDriver
, isArray = Array.isArray;
<|file_sep|>server/utils/get-db-sort-index-map.js.diff
original:
var itemsMap = ee();
dbDriver.getStorage(storageName).on('ke... | 429d78580b2f78b0bb12c79fe182c77986f89a5d | server/utils/get-db-sort-index-map.js | server/utils/get-db-sort-index-map.js | JavaScript |
<|file_sep|>original/common.cake
#tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?package=Cake.Xamarin.Build&version=1.0.14.0
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.XCode
<|file_sep|>current/common.cake
#tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?pac... | #tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?package=Cake.Xamarin.Build
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.XCode | <|file_sep|>original/common.cake
#tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?package=Cake.Xamarin.Build&version=1.0.14.0
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.XCode
<|file_sep|>current/common.cake
#tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?pac... | 74600a155ac034f271ffedf5b1395906f96c9f29 | common.cake | common.cake | C# |
<|file_sep|>lib/sepa/banks/danske/danske_response.rb.diff
original:
# Namespace used in danske bank certificate responses and requests
TNS = 'http://danskebank.dk/PKI/PKIFactoryService/elements'
updated:
<|file_sep|>lib/sepa/banks/danske/danske_response.rb.diff
original:
extract_cert(doc, 'BankEncryptio... | @bank_signing_cert ||= extract_cert(doc, 'BankSigningCert', DANSKE_PKI)
end
def bank_root_cert
@bank_root_cert ||= extract_cert(doc, 'BankRootCert', DANSKE_PKI)
end
def own_encryption_cert
@own_encryption_cert ||= extract_cert(doc, 'EncryptionCert', DANSKE_PKI)
end
def own_s... | <|file_sep|>lib/sepa/banks/danske/danske_response.rb.diff
original:
# Namespace used in danske bank certificate responses and requests
TNS = 'http://danskebank.dk/PKI/PKIFactoryService/elements'
updated:
<|file_sep|>lib/sepa/banks/danske/danske_response.rb.diff
original:
extract_cert(doc, 'BankEncryptio... | 468cd713a573eff407b260ac79dc5780ab8403ae | lib/sepa/banks/danske/danske_response.rb | lib/sepa/banks/danske/danske_response.rb | Ruby |
<|file_sep|>examples/tk.pl.diff
original:
$mw.Label(-text => 'Hello, world!').pack;
updated:
$mw.Label('-text', 'Hello, world!').pack;
<|file_sep|>examples/tk.pl.diff
original:
updated:
# NQP doesn't support named args starting with a dash
<|file_sep|>original/examples/tk.pl
# vim: ft=perl6
# (actually NQP; the real P... | # vim: ft=perl6
# (actually NQP; the real Perl6 version will be much neater)
pir::load_bytecode('perl5.pbc');
my $comp := pir::compreg__PS('perl5');
my $mod := $comp.load_module('Tk');
my %exp := $comp.get_exports($mod);
my $mw := %exp<sub><&MainWindow>().new;
$mw.Label('-text', 'Hello, world!').pack;
# NQP doe... | <|file_sep|>examples/tk.pl.diff
original:
$mw.Label(-text => 'Hello, world!').pack;
updated:
$mw.Label('-text', 'Hello, world!').pack;
<|file_sep|>examples/tk.pl.diff
original:
updated:
# NQP doesn't support named args starting with a dash
<|file_sep|>original/examples/tk.pl
# vim: ft=perl6
# (actually NQP; the real P... | 98818c9f96b02cbe119ee22139a130cf36a3a63c | examples/tk.pl | examples/tk.pl | Perl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.