prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/Casks/lion-disk-maker.rb
class LionDiskMaker < Cask
url 'http://liondiskmaker.com/downloads/LionDiskMaker.zip'
homepage 'http://liondiskmaker.com/'
version '2.0.2'
no_checksum
link "Lion DiskMaker #{version}/Lion DiskMaker 2.app"
end
<|file_sep|>current/Casks/lion-disk-maker.rb
class Lion... | class LionDiskMaker < Cask
url 'http://liondiskmaker.com/downloads/LionDiskMaker.zip'
homepage 'http://liondiskmaker.com/'
version '2.0.2'
sha1 '1e0c898f48b1eb1f45fe8e33cc01cf40d237e378'
link "Lion DiskMaker #{version}/Lion DiskMaker 2.app"
end | <|file_sep|>original/Casks/lion-disk-maker.rb
class LionDiskMaker < Cask
url 'http://liondiskmaker.com/downloads/LionDiskMaker.zip'
homepage 'http://liondiskmaker.com/'
version '2.0.2'
no_checksum
link "Lion DiskMaker #{version}/Lion DiskMaker 2.app"
end
<|file_sep|>current/Casks/lion-disk-maker.rb
class Lion... | d97fae18d68a896e7401be8a85b1883278c39890 | Casks/lion-disk-maker.rb | Casks/lion-disk-maker.rb | Ruby |
<|file_sep|>original/metadata/com.danielme.muspyforandroid.txt
Repo Type:git
Repo:https://github.com/danielme-com/Muspy-for-Android.git
Build:1.2,3
commit=826fa
Build:2.0,5
disable=crashlytics
commit=v2.0
subdir=app
gradle=yes
Maintainer Notes:
Upstream force-pushed to repo. Now uses crashlytics... |
Repo Type:git
Repo:https://github.com/danielme-com/Muspy-for-Android.git
Build:1.2,3
commit=826fa
Build:2.0,5
disable=crashlytics
commit=v2.0
subdir=app
gradle=yes
Maintainer Notes:
Upstream force-pushed to repo. Now uses crashlytics.
.
Auto Update Mode:None
Update Check Mode:Tags
Current Versi... | <|file_sep|>original/metadata/com.danielme.muspyforandroid.txt
Repo Type:git
Repo:https://github.com/danielme-com/Muspy-for-Android.git
Build:1.2,3
commit=826fa
Build:2.0,5
disable=crashlytics
commit=v2.0
subdir=app
gradle=yes
Maintainer Notes:
Upstream force-pushed to repo. Now uses crashlytics... | 29c17d8fc23b732b7a0a0400dc2a279b9c9fe806 | metadata/com.danielme.muspyforandroid.txt | metadata/com.danielme.muspyforandroid.txt | Text |
<|file_sep|>original/app/models/services/tumblr.rb
class Services::Tumblr < Service
include SocialHelper::TumblrMethods
def provider
"tumblr"
end
def post(answer)
Rails.logger.debug "posting to Tumblr {'answer' => #{answer.id}, 'user' => #{self.user_id}}"
create_post answer
end
private
d... | class Services::Tumblr < Service
include Rails.application.routes.url_helpers
include SocialHelper::TumblrMethods
def provider
"tumblr"
end
def post(answer)
Rails.logger.debug "posting to Tumblr {'answer' => #{answer.id}, 'user' => #{self.user_id}}"
create_post answer
end
private
def c... | <|file_sep|>original/app/models/services/tumblr.rb
class Services::Tumblr < Service
include SocialHelper::TumblrMethods
def provider
"tumblr"
end
def post(answer)
Rails.logger.debug "posting to Tumblr {'answer' => #{answer.id}, 'user' => #{self.user_id}}"
create_post answer
end
private
d... | 4529fa0d1801c7e1aad7d5b07f2a6a49570e4fb0 | app/models/services/tumblr.rb | app/models/services/tumblr.rb | Ruby |
<|file_sep|>original/README.md
FormHandler
===========
This is a Form Handler implementation which I used in combination with the Symfony Form component.
## Usage
Implement the `FormHandlerInterface` OR extend the `AbstractFormHandler` and implement the `postProcess` method.
You can use a try/catch to catch validat... | FormHandler
===========
[](https://travis-ci.org/piwi91/FormHandler)
This is a Form Handler implementation which I used in combination with the Symfony Form component.
## Usage
Implement the `FormHandlerInterface` OR extend the `AbstractForm... | <|file_sep|>original/README.md
FormHandler
===========
This is a Form Handler implementation which I used in combination with the Symfony Form component.
## Usage
Implement the `FormHandlerInterface` OR extend the `AbstractFormHandler` and implement the `postProcess` method.
You can use a try/catch to catch validat... | 970cf53993d870d56f0e70b893993499e539b95f | README.md | README.md | Markdown |
<|file_sep|>original/waypoint_navigator/package.xml
<!-- <author email="jane.doe@example.com">Jane Doe</author> -->
<buildtool_depend>catkin</buildtool_depend>
<depend>roscpp</depend>
<depend>actionlib</depend>
<depend>geometry_msgs</depend>
<depend>jsk_recognition_msgs</depend>
<depend>laser_geometry</d... |
<buildtool_depend>catkin</buildtool_depend>
<depend>roscpp</depend>
<depend>actionlib</depend>
<depend>geometry_msgs</depend>
<depend>jsk_recognition_msgs</depend>
<depend>laser_geometry</depend>
<depend>message_generation</depend>
<depend>message_runtime</depend>
<depend>move_base_msgs</depend>
<d... | <|file_sep|>original/waypoint_navigator/package.xml
<!-- <author email="jane.doe@example.com">Jane Doe</author> -->
<buildtool_depend>catkin</buildtool_depend>
<depend>roscpp</depend>
<depend>actionlib</depend>
<depend>geometry_msgs</depend>
<depend>jsk_recognition_msgs</depend>
<depend>laser_geometry</d... | fac90a4c35fc2e3d49b87a5e49935460b9435530 | waypoint_navigator/package.xml | waypoint_navigator/package.xml | XML |
<|file_sep|>original/test-resources/xml/v5-source-second-with-name-second.xml
<?xml version="1.0"?>
<VipObject schemaVersion="5.0">
<State></State>
<Source id="src001">
<DateTime>2016-03-08T00:00:00</DateTime>
<Name>the-source</Name>
</Source>
</VipObject>
<|file_sep|>current/test-resources/xml/v5-source-... | <?xml version="1.0"?>
<VipObject schemaVersion="5.0">
<State><Name>Colorado</Name></State>
<Source id="src001">
<DateTime>2016-03-08T00:00:00</DateTime>
<Name>the-source</Name>
</Source>
</VipObject> | <|file_sep|>original/test-resources/xml/v5-source-second-with-name-second.xml
<?xml version="1.0"?>
<VipObject schemaVersion="5.0">
<State></State>
<Source id="src001">
<DateTime>2016-03-08T00:00:00</DateTime>
<Name>the-source</Name>
</Source>
</VipObject>
<|file_sep|>current/test-resources/xml/v5-source-... | 8160e065786c1002e914d3467c3d78c52d864408 | test-resources/xml/v5-source-second-with-name-second.xml | test-resources/xml/v5-source-second-with-name-second.xml | XML |
<|file_sep|>original/src/armet/connectors/bottle/__init__.py
<|file_sep|>current/src/armet/connectors/bottle/__init__.py
<|file_sep|>updated/src/armet/connectors/bottle/__init__.py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
def is_available(*capacities):
"""
Detects if the environment is available for use in
the (optionally) specified capacities.
"""
try:
# Attempted import
import bottle # flake8: noqa
... | <|file_sep|>original/src/armet/connectors/bottle/__init__.py
<|file_sep|>current/src/armet/connectors/bottle/__init__.py
<|file_sep|>updated/src/armet/connectors/bottle/__init__.py
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
def is_available(*capacities):
"""
De... | 0549d03dfaba874b5ff56bcc3ab1b21c2ac4fec3 | src/armet/connectors/bottle/__init__.py | src/armet/connectors/bottle/__init__.py | Python |
<|file_sep|>original/cla_public/static-src/stylesheets/_phase-banner.scss
.phase-banner {
@extend %site-width-container;
@include phase-banner(beta);
z-index: 2;
@media print {
margin: 0;
padding: 0 0 2mm;
border-color: $black;
.phase-tag {
margin-bottom: 2mm;
font-size: 7pt;
... | .phase-banner {
@extend %site-width-container;
@include phase-banner(beta);
z-index: 2;
span {
@include media(mobile) {
margin-top: 8px;
width: auto;
}
}
@media print {
margin: 0;
padding: 0 0 2mm;
border-color: $black;
.phase-tag {
margin-bottom: 2mm;
font... | <|file_sep|>original/cla_public/static-src/stylesheets/_phase-banner.scss
.phase-banner {
@extend %site-width-container;
@include phase-banner(beta);
z-index: 2;
@media print {
margin: 0;
padding: 0 0 2mm;
border-color: $black;
.phase-tag {
margin-bottom: 2mm;
font-size: 7pt;
... | 7ca1357bde7c6a506eaef91c432321a8eafe5365 | cla_public/static-src/stylesheets/_phase-banner.scss | cla_public/static-src/stylesheets/_phase-banner.scss | SCSS |
<|file_sep|>original/test/SemaCXX/int-ptr-cast-SFINAE.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17
void foo(int* a, int *b) {
a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from 'long'}}
}
template<typename T> T... | // RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17
void foo(int* a, int *b) {
a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from}}
}
template<typename T> T declval();
struct true_type { static const bool value = true; };... | <|file_sep|>original/test/SemaCXX/int-ptr-cast-SFINAE.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17
void foo(int* a, int *b) {
a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from 'long'}}
}
template<typename T> T... | b4d73e63de296ead4e7fcddce1ee24abcd3cde7b | test/SemaCXX/int-ptr-cast-SFINAE.cpp | test/SemaCXX/int-ptr-cast-SFINAE.cpp | C++ |
<|file_sep|>lib/node_modules/@stdlib/string/trim/lib/trim.js.diff
original:
var ltrim = require( '@stdlib/string/left-trim' );
var rtrim = require( '@stdlib/string/right-trim' );
updated:
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var replace = require( '@stdlib/string/replace' );
// VARIABLES ... | * // returns 'Whitespace'
*
* @example
* var out = trim( '\t\t\tTabs\t\t\t' );
* // returns 'Tabs'
*
* @example
* var out = trim( '\n\n\nNew Lines\n\n\n' ) );
* // returns 'New Lines'
*/
function trim( str ) {
if ( !isString( str ) ) {
throw new TypeError( 'invalid input argument. Must provide a string primitive. Va... | <|file_sep|>lib/node_modules/@stdlib/string/trim/lib/trim.js.diff
original:
var ltrim = require( '@stdlib/string/left-trim' );
var rtrim = require( '@stdlib/string/right-trim' );
updated:
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var replace = require( '@stdlib/string/replace' );
// VARIABLES ... | 2377f4d517c1f81959d81c42c60e0a461c3f7ff3 | lib/node_modules/@stdlib/string/trim/lib/trim.js | lib/node_modules/@stdlib/string/trim/lib/trim.js | JavaScript |
<|file_sep|>original/composer.json
"corneltek/pux": "~1.5",
"swiftmailer/swiftmailer": "^5.4",
"twig/twig": "^1.18"
},
"require-dev": {
"fzaninotto/faker": "^1.5",
"codeception/codeception": "^2.0",
"phpunit/phpunit": "^4.6"
},
"autoload": {
"psr-4": {
"Gazzete\\": "app/"
}
},
"scripts": {
"p... | "corneltek/pux": "~1.5",
"swiftmailer/swiftmailer": "^5.4",
"twig/twig": "^1.18",
"fzaninotto/faker": "^1.5"
},
"require-dev": {
"codeception/codeception": "^2.0",
"phpunit/phpunit": "^4.6"
},
"autoload": {
"psr-4": {
"Gazzete\\": "app/"
}
},
"scripts": {
"post-inst... | <|file_sep|>original/composer.json
"corneltek/pux": "~1.5",
"swiftmailer/swiftmailer": "^5.4",
"twig/twig": "^1.18"
},
"require-dev": {
"fzaninotto/faker": "^1.5",
"codeception/codeception": "^2.0",
"phpunit/phpunit": "^4.6"
},
"autoload": {
"psr-4": {
"Gazzete\\": "app/"
}
},
"scripts": {
"p... | 2feb53f71a24bee105e9d6571ad76b6d17e494df | composer.json | composer.json | JSON |
<|file_sep|>eloquent_js_exercises/chapter07/ch07_ex03.js.diff
original:
constructor() {
this.members = [];
updated:
constructor(members) {
this.members = members;
<|file_sep|>eloquent_js_exercises/chapter07/ch07_ex03.js.diff
original:
let newMembers = this.members.slice(0);
if (!newMembers.includes.elem) {
... | class PGroup {
constructor(members) {
this.members = members;
}
add(elem) {
if (this.has(elem)) return this;
return new PGroup(this.members.concat(elem));
}
delete(elem) {
if (!this.has(elem)) return this;
return new PGroup(this.members.filter(e => e !== elem));
}
has(elem) {
return this.members.i... | <|file_sep|>eloquent_js_exercises/chapter07/ch07_ex03.js.diff
original:
constructor() {
this.members = [];
updated:
constructor(members) {
this.members = members;
<|file_sep|>eloquent_js_exercises/chapter07/ch07_ex03.js.diff
original:
let newMembers = this.members.slice(0);
if (!newMembers.includes.elem) {
... | 72b18ec7cf61c6f99b0b2e94847b00fb46979e12 | eloquent_js_exercises/chapter07/ch07_ex03.js | eloquent_js_exercises/chapter07/ch07_ex03.js | JavaScript |
<|file_sep|>original/alert_templates/shared/cf/aws_instance_count_alert.json.erb
<|file_sep|>current/alert_templates/shared/cf/aws_instance_count_alert.json.erb
<|file_sep|>updated/alert_templates/shared/cf/aws_instance_count_alert.json.erb | {
"event_object": "06c46432ab319e53aee4ad83644a9737",
"notify_audit": false,
"timeout_h": null,
"silenced": false,
"query": "max(last_1h):sum:aws.ec2.host_ok{*} > 0",
"message": "Check if this is supposed to happen(when doing a 'bosh deploy') or fraud instances have been spun up by some attacker. <%= cloudo... | <|file_sep|>original/alert_templates/shared/cf/aws_instance_count_alert.json.erb
<|file_sep|>current/alert_templates/shared/cf/aws_instance_count_alert.json.erb
<|file_sep|>updated/alert_templates/shared/cf/aws_instance_count_alert.json.erb
{
"event_object": "06c46432ab319e53aee4ad83644a9737",
"notify_audit": fal... | b293a17c8618bef10e64f35fd9c139453a48a43b | alert_templates/shared/cf/aws_instance_count_alert.json.erb | alert_templates/shared/cf/aws_instance_count_alert.json.erb | HTML+ERB |
<|file_sep|>original/fsa/src/alltest/alltest.sh
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
if [ -z "$SOURCE_DIRECTORY" ]; then
SOURCE_DIRECTORY="."
fi
export LD_PRELOAD=../vespa/fsa/libfsa.so:../vespa/fsamanagers/libfsam... | #!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
if [ -z "$SOURCE_DIRECTORY" ]; then
SOURCE_DIRECTORY="."
fi
# first create the FSA
./fsa_fsa_create_test_app
# simple tests
$SOURCE_DIRECTORY/lookup_test.sh
$SOURCE_DIRECTORY/f... | <|file_sep|>original/fsa/src/alltest/alltest.sh
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
if [ -z "$SOURCE_DIRECTORY" ]; then
SOURCE_DIRECTORY="."
fi
export LD_PRELOAD=../vespa/fsa/libfsa.so:../vespa/fsamanagers/libfsam... | 2c09f0610ddf4e1aa273c580ef5ca9d9ab476b32 | fsa/src/alltest/alltest.sh | fsa/src/alltest/alltest.sh | Shell |
<|file_sep|>metadata/io.github.muntashirakon.setedit.yml.diff
original:
updated:
- versionName: '2.0'
versionCode: 5
commit: v2.0
subdir: app
gradle:
- yes
ndk: r21d
<|file_sep|>original/metadata/io.github.muntashirakon.setedit.yml
IssueTracker: https://github.com/MuntashirAkon/SetEdit/iss... | Builds:
- versionName: '1.2'
versionCode: 4
commit: v1.2
subdir: app
gradle:
- yes
ndk: r21d
- versionName: '2.0'
versionCode: 5
commit: v2.0
subdir: app
gradle:
- yes
ndk: r21d
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '2.0'
CurrentVersi... | <|file_sep|>metadata/io.github.muntashirakon.setedit.yml.diff
original:
updated:
- versionName: '2.0'
versionCode: 5
commit: v2.0
subdir: app
gradle:
- yes
ndk: r21d
<|file_sep|>original/metadata/io.github.muntashirakon.setedit.yml
IssueTracker: https://github.com/MuntashirAkon/SetEdit/iss... | be8afdbe1b37f8f2a7b15bd1c78c15a6e1e42ec1 | metadata/io.github.muntashirakon.setedit.yml | metadata/io.github.muntashirakon.setedit.yml | YAML |
<|file_sep|>original/src/core/stores/ApiStore.js
var Reflux = require('reflux');
var config = require('./../../../config');
var ApiActions = require('./../actions/ApiActions');
var buffer = [];
var ws;
var ApiStore = Reflux.createStore({
init: function () {
ws = new WebSocket('ws://' + config.host... | var Reflux = require('reflux');
var config = require('./../../../config');
var ApiActions = require('./../actions/ApiActions');
var buffer = [];
var ws;
var ApiStore = Reflux.createStore({
init: function () {
ws = new WebSocket('ws://' + window.document.location.host);
ws.onmessage = funct... | <|file_sep|>original/src/core/stores/ApiStore.js
var Reflux = require('reflux');
var config = require('./../../../config');
var ApiActions = require('./../actions/ApiActions');
var buffer = [];
var ws;
var ApiStore = Reflux.createStore({
init: function () {
ws = new WebSocket('ws://' + config.host... | a3b50a4f17fe21ed2c90ccafe1f1a088780de9a6 | src/core/stores/ApiStore.js | src/core/stores/ApiStore.js | JavaScript |
<|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @id Amazon age-verification autoredirect
updated:
<|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @version 0.0.5
updated:
<|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @autho... |
var clickit = function(elem) {
var hrefs = elem.getElementsByTagName('a');
for (var a of hrefs) {
if (pattern.test(a.href)) {
location.href = a.href;
return;
}
}
};
var clickit_wrap = function(mr) {
if (t) return;
t = setTimeout(function() {
for (var mre of ... | <|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @id Amazon age-verification autoredirect
updated:
<|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @version 0.0.5
updated:
<|file_sep|>amazonage-verificationautoredirect.user.js.diff
original:
// @autho... | af22b4cdbb3dffdbf9f56cc11c420cb4a56361db | amazonage-verificationautoredirect.user.js | amazonage-verificationautoredirect.user.js | JavaScript |
<|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml | # http://travis-ci.org/mpi4py/mpi4py
language: python
python:
- 2.5
- 2.6
- 2.7
- 3.2
- 3.3
# - pypy
env:
- MPI=mpich2
- MPI=openmpi
branches:
only:
- master
before_install:
- test $MPI == mpich2 && PACKAGES='mpich2 libmpich2-3 libmpich2-dev' || true | <|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml
# http://travis-ci.org/mpi4py/mpi4py
language: python
python:
- 2.5
- 2.6
- 2.7
- 3.2
- 3.3
# - pypy
env:
- MPI=mpich2
- MPI=openmpi
branches:
only:
- master
before_install:
- t... | b4cc8297237057e0d341402f57903ddeab9bd5e4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/middlewares/key_auth.go
errors.NewHttpError(w, "ErrorApiKeyMandatory")
return
case keyget != "":
consumer = models.FindConsumerByApiKey(keyget)
if consumer == nil {
errors.NewHttpError(w, "ErrorApiKeyInvalid")
return
}
case keyheader != "":
consumer = models.... | errors.NewHttpError(w, "ErrorApiKeyMandatory")
return
case keyget != "":
consumer = models.FindConsumerByApiKey(keyget)
if consumer == nil {
errors.NewHttpError(w, "ErrorApiKeyInvalid")
return
}
case keyheader != "":
consumer = models.FindConsumerByApiKey(keyheader)
if consum... | <|file_sep|>original/middlewares/key_auth.go
errors.NewHttpError(w, "ErrorApiKeyMandatory")
return
case keyget != "":
consumer = models.FindConsumerByApiKey(keyget)
if consumer == nil {
errors.NewHttpError(w, "ErrorApiKeyInvalid")
return
}
case keyheader != "":
consumer = models.... | 3c5a6284e040a6ee3685c16927ca6d1bb163b3e0 | middlewares/key_auth.go | middlewares/key_auth.go | Go |
<|file_sep|>labs/04_conv_nets/solutions/strides_padding.py.diff
original:
def my_init(shape, dtype=None):
array = np.zeros(shape=(5,5,3,3))
array[2,2] = np.eye(3)
updated:
def my_init(shape=(5, 5, 3, 3), dtype=None):
array = np.zeros(shape=shape)
array[2, 2] = np.eye(3)
<|file_sep|>labs/04_conv_nets/s... | Conv2D(filters=3, kernel_size=5, strides=2,
padding="valid", kernel_initializer=my_init,
input_shape=(None, None, 3))
])
img_in = np.expand_dims(sample_image, 0)
img_out_same = conv_strides_same.predict(img_in)
img_out_valid = conv_strides_valid.predict(img_in)
print("Shape of result with SA... | <|file_sep|>labs/04_conv_nets/solutions/strides_padding.py.diff
original:
def my_init(shape, dtype=None):
array = np.zeros(shape=(5,5,3,3))
array[2,2] = np.eye(3)
updated:
def my_init(shape=(5, 5, 3, 3), dtype=None):
array = np.zeros(shape=shape)
array[2, 2] = np.eye(3)
<|file_sep|>labs/04_conv_nets/s... | e0164d906c791d0b00077ae5353a07a07f4cd30d | labs/04_conv_nets/solutions/strides_padding.py | labs/04_conv_nets/solutions/strides_padding.py | Python |
<|file_sep|>pubspec.yaml.diff
original:
dependencies:
unittest: any
updated:
<|file_sep|>original/pubspec.yaml
name: postgresql
version: 0.2.0
author: Greg Lowe <greg@vis.net.nz>
description: Postgresql database driver.
homepage: https://github.com/xxgreg/postgresql
dependencies:
unittest: any
dev_dependencies:
... | name: postgresql
version: 0.2.0
author: Greg Lowe <greg@vis.net.nz>
description: Postgresql database driver.
homepage: https://github.com/xxgreg/postgresql
dev_dependencies:
yaml: any
unittest: any | <|file_sep|>pubspec.yaml.diff
original:
dependencies:
unittest: any
updated:
<|file_sep|>original/pubspec.yaml
name: postgresql
version: 0.2.0
author: Greg Lowe <greg@vis.net.nz>
description: Postgresql database driver.
homepage: https://github.com/xxgreg/postgresql
dependencies:
unittest: any
dev_dependencies:
... | ea97de765470bd77fefd22ac0716b964632cdea2 | pubspec.yaml | pubspec.yaml | YAML |
<|file_sep|>test/assert-config.js.diff
original:
assert.include(err.stack, 'at fooThrows', 'should have stack trace in error message');
updated:
if (typeof(err.stack) !== 'undefined') { // not all browsers support err.stack
assert.include(err.stack, 'at fooThrows', 'should have stack trace in error... | try {
fooThrows();
assert.ok(false, 'should not get here because error thrown');
} catch (err) {
if (typeof(err.stack) !== 'undefined') { // not all browsers support err.stack
assert.include(err.stack, 'at fooThrows', 'should have stack trace in error message');
}
... | <|file_sep|>test/assert-config.js.diff
original:
assert.include(err.stack, 'at fooThrows', 'should have stack trace in error message');
updated:
if (typeof(err.stack) !== 'undefined') { // not all browsers support err.stack
assert.include(err.stack, 'at fooThrows', 'should have stack trace in error... | d23c5a8d4e07ca821125c20a0bbab5a85e35738c | test/assert-config.js | test/assert-config.js | JavaScript |
<|file_sep|>original/setup.py
#!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
... | #!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
url='https://github.com/isola... | <|file_sep|>original/setup.py
#!/usr/bin/env python
# Setuptools is a slightly nicer distribution utility that can create 'eggs'.
from setuptools import setup, find_packages
setup(
name='django-cleaver',
author='Kevin Williams',
author_email='kevin@weblivion.com',
version='0.1',
license='BSD',
... | 21082912755b95f539bd1c6359303917e4066554 | setup.py | setup.py | Python |
<|file_sep|>original/palm/blink_model.py
from palm.state_collection import StateIDCollection
class BlinkModel(AggregatedKineticModel):
'''
BlinkModel is an AggregatedKineticModel. Two observation classes
are expected:
1. dark (no fluorescence detected)
2. bright (fluorescence detected)
'''
... | 1. dark (no fluorescence detected)
2. bright (fluorescence detected)
'''
def __init__(self, state_enumerator, route_mapper, parameter_set,
fermi_activation=False):
super(BlinkModel, self).__init__(state_enumerator, route_mapper,
paramete... | <|file_sep|>original/palm/blink_model.py
from palm.state_collection import StateIDCollection
class BlinkModel(AggregatedKineticModel):
'''
BlinkModel is an AggregatedKineticModel. Two observation classes
are expected:
1. dark (no fluorescence detected)
2. bright (fluorescence detected)
'''
... | 4f4d083ea8be7da6a4aecfd4bf15dc4e91a2d72d | palm/blink_model.py | palm/blink_model.py | Python |
<|file_sep|>original/Flickity/Kwc/Slider/Component.php
class Flickity_Kwc_Slider_Component extends Kwc_Abstract_List_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['componentName'] = trlStatic('Bilder Galerie');
$ret['componentCat... | class Flickity_Kwc_Slider_Component extends Kwc_Abstract_List_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['componentName'] = trlStatic('Bilder Galerie');
$ret['componentCategory'] = 'special';
$ret['generators']['child'... | <|file_sep|>original/Flickity/Kwc/Slider/Component.php
class Flickity_Kwc_Slider_Component extends Kwc_Abstract_List_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['componentName'] = trlStatic('Bilder Galerie');
$ret['componentCat... | b164d053a0777f4dfcd21724cd1ca0eb900c328f | Flickity/Kwc/Slider/Component.php | Flickity/Kwc/Slider/Component.php | PHP |
<|file_sep|>original/.github/workflows/publish-docs.yml
publishProjectDocs:
name: Publish project documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: 22.x
elixir-version: 1.9.x
- name: Generate doc... | publishProjectDocs:
name: Publish project documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: 22.x
elixir-version: 1.9.x
- name: Generate docs
uses: lee-dohm/generate-elixir-docs@v1
wit... | <|file_sep|>original/.github/workflows/publish-docs.yml
publishProjectDocs:
name: Publish project documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
otp-version: 22.x
elixir-version: 1.9.x
- name: Generate doc... | 7fabce16331c98122d551cad4d188579e05960ac | .github/workflows/publish-docs.yml | .github/workflows/publish-docs.yml | YAML |
<|file_sep|>original/test-requirements.txt
setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.1
flake8==3.5.0
<|file_sep|>current/test-requirements.txt
setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.1
flake8==3.5.0
<|file_sep|>updated/test-requirements.txt | setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.2
flake8==3.5.0 | <|file_sep|>original/test-requirements.txt
setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.1
flake8==3.5.0
<|file_sep|>current/test-requirements.txt
setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.1
flake8==3.5.0
<|file_sep|>updated/test-requirements.txt
setuptools>=17.1
pytest-cov==2.5.1
pytest==3.7.2
flake8==3.5.0 | 75d464b089370c3acd4a315047b16e0045537185 | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>setup.py.diff
original:
'awscli>=1.10.21,<2'
updated:
'awscli>=1.10.21,<2',
's3cmd<3',
<|file_sep|>setup.py.diff
original:
tests_require = [
updated:
tests_require=[
<|file_sep|>original/setup.py
install_requires=[
'pytimeparse>=1.1.4,<=2',
'pyhash>=0.6.2,... | install_requires=[
'pytimeparse>=1.1.4,<=2',
'pyhash>=0.6.2,<1',
'pyee>=1.0.2,<2',
'awscli>=1.10.21,<2',
's3cmd<3',
],
tests_require=[
'psycopg2>=2.5.2,<3'
],
test_suite='nose.collector',
setup_requires=['nose>=1.3.0'],
data_files=[
('.... | <|file_sep|>setup.py.diff
original:
'awscli>=1.10.21,<2'
updated:
'awscli>=1.10.21,<2',
's3cmd<3',
<|file_sep|>setup.py.diff
original:
tests_require = [
updated:
tests_require=[
<|file_sep|>original/setup.py
install_requires=[
'pytimeparse>=1.1.4,<=2',
'pyhash>=0.6.2,... | 915e7a12e7e30aba93e9008c6daed32c38435f0c | setup.py | setup.py | Python |
<|file_sep|>original/package.json
{
"name": "fester",
"version": "0.0.1",
"dependencies": {},
"devDependencies": {
"autoprefixer": "^6.5.4",
"browser-sync": "^2.18.5",
"node-sass": "^4.1.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.6.0",
"watch": "^1.0.1"
},
"scripts": {
"sa... | {
"name": "fester",
"version": "0.0.1",
"dependencies": {},
"devDependencies": {
"autoprefixer": "^6.5.4",
"browser-sync": "^2.18.5",
"node-sass": "^4.1.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.6.0",
"watch": "^1.0.1"
},
"scripts": {
"sass": "node-sass assets/_sass --out... | <|file_sep|>original/package.json
{
"name": "fester",
"version": "0.0.1",
"dependencies": {},
"devDependencies": {
"autoprefixer": "^6.5.4",
"browser-sync": "^2.18.5",
"node-sass": "^4.1.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.6.0",
"watch": "^1.0.1"
},
"scripts": {
"sa... | 250fdb4adb299d7e7fa8bc68713cef9bbdc523f1 | package.json | package.json | JSON |
<|file_sep|>original/lib/utils/responseHandler.js
body: body
};
if (response.statusCode != 200) {
var errorResponse = outResponse;
if (response.headers['content-type'] === 'application/json;charset=UTF-8') {
var responseBody = JSON.parse(body);
errorResponse.errorCode = responseBody.errorCo... | body: body
};
if (response.statusCode != 200) {
var errorResponse = outResponse;
if (response.headers['content-type'] === 'application/json;charset=UTF-8') {
var responseBody = JSON.parse(body);
errorResponse.errorCode = responseBody.errorCode;
errorResponse.message = responseBody.mes... | <|file_sep|>original/lib/utils/responseHandler.js
body: body
};
if (response.statusCode != 200) {
var errorResponse = outResponse;
if (response.headers['content-type'] === 'application/json;charset=UTF-8') {
var responseBody = JSON.parse(body);
errorResponse.errorCode = responseBody.errorCo... | ea1b22cec3265a5292d3c6c7e6321add09b23268 | lib/utils/responseHandler.js | lib/utils/responseHandler.js | JavaScript |
<|file_sep|>original/src/ifd.blog/ifd/blog/subjects.py
<|file_sep|>current/src/ifd.blog/ifd/blog/subjects.py
<|file_sep|>updated/src/ifd.blog/ifd/blog/subjects.py | # -*- coding: UTF-8 -*-
from collective.z3cform.widgets.token_input_widget import TokenInputFieldWidget
from plone.app.dexterity.behaviors.metadata import ICategorization
from plone.app.z3cform.interfaces import IPloneFormLayer
from z3c.form.interfaces import IFieldWidget
from z3c.form.util import getSpecification
from... | <|file_sep|>original/src/ifd.blog/ifd/blog/subjects.py
<|file_sep|>current/src/ifd.blog/ifd/blog/subjects.py
<|file_sep|>updated/src/ifd.blog/ifd/blog/subjects.py
# -*- coding: UTF-8 -*-
from collective.z3cform.widgets.token_input_widget import TokenInputFieldWidget
from plone.app.dexterity.behaviors.metadata import ... | a5dda3d167d460fd60defe2debc0460d577c008d | src/ifd.blog/ifd/blog/subjects.py | src/ifd.blog/ifd/blog/subjects.py | Python |
<|file_sep|>source/manual/alerts/high-priority-tests.html.md.diff
original:
last_reviewed_on: 2018-03-21
updated:
last_reviewed_on: 2018-05-30
<|file_sep|>source/manual/alerts/high-priority-tests.html.md.diff
original:
updated:
### Tests failing
<|file_sep|>original/source/manual/alerts/high-priority-tests.html.md
pa... | If many of the tests are failing in an AWS environment, it may be because the Nginx services haven't registered new
boxes coming online or old ones going offline. You can try to restart the following services:
```bash
$ fab $environment class:cache app.reload:nginx
$ fab $environment class:draft_cache app.reload:nginx... | <|file_sep|>source/manual/alerts/high-priority-tests.html.md.diff
original:
last_reviewed_on: 2018-03-21
updated:
last_reviewed_on: 2018-05-30
<|file_sep|>source/manual/alerts/high-priority-tests.html.md.diff
original:
updated:
### Tests failing
<|file_sep|>original/source/manual/alerts/high-priority-tests.html.md
pa... | fe864131a1f597e78bcd0bc69bf21b3af1c78590 | source/manual/alerts/high-priority-tests.html.md | source/manual/alerts/high-priority-tests.html.md | Markdown |
<|file_sep|>original/pythran/tests/rosetta/average_loop_length.py
#from http://rosettacode.org/wiki/Average_loop_length#Python
#pythran export analytical(int)
#pythran export testing(int, int)
#runas analytical(10)
#runas testing(10, 100)
#from __future__ import division # Only necessary for Python 2.X
from math impor... | #from http://rosettacode.org/wiki/Average_loop_length#Python
#pythran export analytical(int)
#pythran export testing(int, int)
#runas analytical(10)
#runas avg = testing(10, 10**5); theory = analytical(10); abs((avg / theory - 1) * 100) < 0.1
#from __future__ import division # Only necessary for Python 2.X
from math i... | <|file_sep|>original/pythran/tests/rosetta/average_loop_length.py
#from http://rosettacode.org/wiki/Average_loop_length#Python
#pythran export analytical(int)
#pythran export testing(int, int)
#runas analytical(10)
#runas testing(10, 100)
#from __future__ import division # Only necessary for Python 2.X
from math impor... | 5168d4256bdfac937be62c8dc509a79a4ba9101c | pythran/tests/rosetta/average_loop_length.py | pythran/tests/rosetta/average_loop_length.py | Python |
<|file_sep|>original/build.sbt
// general
organization := "com.earldouglas"
name := "xsbt-web-plugin"
scalacOptions ++= Seq("-feature", "-deprecation", "-Ywarn-unused", "-Ywarn-unused-import")
crossSbtVersions := Seq("0.13.6", "1.0.0")
sbtPlugin := true
// bintray-sbt
publishMavenStyle := false
... | // general
organization := "com.earldouglas"
name := "xsbt-web-plugin"
scalacOptions ++= Seq("-feature", "-deprecation")
crossSbtVersions := Seq("0.13.6", "1.0.0")
sbtPlugin := true
// bintray-sbt
publishMavenStyle := false
licenses += ("BSD New", url("https://opensource.org/licenses/BS... | <|file_sep|>original/build.sbt
// general
organization := "com.earldouglas"
name := "xsbt-web-plugin"
scalacOptions ++= Seq("-feature", "-deprecation", "-Ywarn-unused", "-Ywarn-unused-import")
crossSbtVersions := Seq("0.13.6", "1.0.0")
sbtPlugin := true
// bintray-sbt
publishMavenStyle := false
... | eca66131c265f93e909fb170034096b4fe170b6e | build.sbt | build.sbt | Scala |
<|file_sep|>original/signatures/signed_by_LeehengMa.md
<|file_sep|>current/signatures/signed_by_LeehengMa.md
<|file_sep|>updated/signatures/signed_by_LeehengMa.md | # 我是資訊人,我支持婚姻平權
LGBT rocks!
我相信,在愛之前,大家都是平等的。
我支持婚姻平權,讓每個人都可以在一樣的法律裡,自由去愛與被愛,追求自己的幸福。 | <|file_sep|>original/signatures/signed_by_LeehengMa.md
<|file_sep|>current/signatures/signed_by_LeehengMa.md
<|file_sep|>updated/signatures/signed_by_LeehengMa.md
# 我是資訊人,我支持婚姻平權
LGBT rocks!
我相信,在愛之前,大家都是平等的。
我支持婚姻平權,讓每個人都可以在一樣的法律裡,自由去愛與被愛,追求自己的幸福。 | 019f53ce3a5aec411cbf6fde144ee73487e64f74 | signatures/signed_by_LeehengMa.md | signatures/signed_by_LeehengMa.md | Markdown |
<|file_sep|>original/codeworld-compiler/test/testcase/test_pointType/saved_error.txt
program.hs:1:18: error: Missing parentheses in function application
<|file_sep|>current/codeworld-compiler/test/testcase/test_pointType/saved_error.txt
program.hs:1:18: error: Missing parentheses in function application
<|file_sep|>upd... | program.hs:1:18: error: Missing parentheses in function application
program.hs:7:7: error:
• Couldn't match type [Number] with (Number, Number)
Expected type: Point
Actual type: [Number]
• In the expression: [2, - 4]
In an equation for end: end = [2, - 4] | <|file_sep|>original/codeworld-compiler/test/testcase/test_pointType/saved_error.txt
program.hs:1:18: error: Missing parentheses in function application
<|file_sep|>current/codeworld-compiler/test/testcase/test_pointType/saved_error.txt
program.hs:1:18: error: Missing parentheses in function application
<|file_sep|>upd... | 65a0840b42b14eadf135988e2311f263657b4dc4 | codeworld-compiler/test/testcase/test_pointType/saved_error.txt | codeworld-compiler/test/testcase/test_pointType/saved_error.txt | Text |
<|file_sep|>original/metadata/com.seavenois.tetris.txt
<|file_sep|>current/metadata/com.seavenois.tetris.txt
<|file_sep|>updated/metadata/com.seavenois.tetris.txt | Category:Games
License:GPLv3
Web Site:http://code.google.com/p/tttris/
Source Code:http://code.google.com/p/tttris/source/checkout
Issue Tracker:http://code.google.com/p/tttris/issues/list
Summary:Tetris clone for Android
Description:
A clone of the classic Tetris game for Android devices.
Still under development.
.
... | <|file_sep|>original/metadata/com.seavenois.tetris.txt
<|file_sep|>current/metadata/com.seavenois.tetris.txt
<|file_sep|>updated/metadata/com.seavenois.tetris.txt
Category:Games
License:GPLv3
Web Site:http://code.google.com/p/tttris/
Source Code:http://code.google.com/p/tttris/source/checkout
Issue Tracker:http://cod... | cfd554bdaae2ddbc7237766f7cb16fa752f487a6 | metadata/com.seavenois.tetris.txt | metadata/com.seavenois.tetris.txt | Text |
<|file_sep|>roles/nginx/meta/main.yml.diff
original:
description: Install nignx
updated:
description: Install nginx org
<|file_sep|>roles/nginx/meta/main.yml.diff
original:
license: Apache
updated:
license: Apache 2.0
<|file_sep|>original/roles/nginx/meta/main.yml
---
galaxy_info:
description: Install nignx
... | ---
galaxy_info:
description: Install nginx org
author: humblearner
company: StackStorm
license: Apache 2.0
min_ansible_version: 2.2
tags: nginx
platforms:
- name: Ubuntu
versions:
- trusty
- xenial
- name: EL
versions:
- 6
- 7
categories:
- web
... | <|file_sep|>roles/nginx/meta/main.yml.diff
original:
description: Install nignx
updated:
description: Install nginx org
<|file_sep|>roles/nginx/meta/main.yml.diff
original:
license: Apache
updated:
license: Apache 2.0
<|file_sep|>original/roles/nginx/meta/main.yml
---
galaxy_info:
description: Install nignx
... | dcc4f40a75a6bc2fa1541c10045984511c32ad68 | roles/nginx/meta/main.yml | roles/nginx/meta/main.yml | YAML |
<|file_sep|>original/app/static/components/application/application.html
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</bu... | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul ... | <|file_sep|>original/app/static/components/application/application.html
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</bu... | 6571c1b26c0be37f2c4736d4106747676ea51a61 | app/static/components/application/application.html | app/static/components/application/application.html | HTML |
<|file_sep|>original/.scripts/ci/golive.sh
# setup environment
executeSSH "if [ ! -d $APPROOT/_data ]; then mkdir $APPROOT/_data; fi
if [ ! -d $APPROOT/_data/uploads ]; then mkdir $APPROOT/_data/uploads; fi
if [ ! -d $APPROOT/_data/storage ]; then mkdir $APPROOT/_data/storage; fi"
# pre go live
# link data up... |
# setup environment
executeSSH "if [ ! -d $APPROOT/_data ]; then mkdir $APPROOT/_data; fi
if [ ! -d $APPROOT/_data/uploads ]; then mkdir $APPROOT/_data/uploads; fi
if [ ! -d $APPROOT/_data/storage ]; then mkdir $APPROOT/_data/storage; fi"
# pre go live
# link data uploads
executeSSH "ln -s ../../_data/uploads... | <|file_sep|>original/.scripts/ci/golive.sh
# setup environment
executeSSH "if [ ! -d $APPROOT/_data ]; then mkdir $APPROOT/_data; fi
if [ ! -d $APPROOT/_data/uploads ]; then mkdir $APPROOT/_data/uploads; fi
if [ ! -d $APPROOT/_data/storage ]; then mkdir $APPROOT/_data/storage; fi"
# pre go live
# link data up... | 236593d1bcf37b5afc6cfec5872fdd308d4934f8 | .scripts/ci/golive.sh | .scripts/ci/golive.sh | Shell |
<|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.5.5
cryptography==2.0
PyYAML==3.12
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
cover... | pip==9.0.1
bumpversion==0.5.3
wheel==0.31.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.5.5
cryptography==2.0
PyYAML==3.12
| <|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.5.5
cryptography==2.0
PyYAML==3.12
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
cover... | bed2be689019513883e43e4f04097dfb3a97d074 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/ci/install_npcap.bat
set NPCAP_OEM_FILE=npcap-0.9988-oem.exe
curl --digest --user %NPCAP_USERNAME%:%NPCAP_PASSWORD% https://nmap.org/npcap/oem/dist/%NPCAP_OEM_FILE% --output %NPCAP_OEM_FILE%
%NPCAP_OEM_FILE% /S /winpcap_mode
xcopy C:\Windows\System32\Npcap\*.dll C:\Windows\System32
xcopy C:\Windows... | set NPCAP_OEM_FILE=npcap-0.9988-oem.exe
curl --digest --user %NPCAP_USERNAME%:%NPCAP_PASSWORD% https://nmap.org/npcap/oem/dist/%NPCAP_OEM_FILE% --output %NPCAP_OEM_FILE%
%NPCAP_OEM_FILE% /S /winpcap_mode
appveyor DownloadFile https://nmap.org/npcap/dist/npcap-sdk-1.04.zip
mkdir C:\Npcap-sdk
7z x .\npcap-sdk-1.04.zip -o... | <|file_sep|>original/ci/install_npcap.bat
set NPCAP_OEM_FILE=npcap-0.9988-oem.exe
curl --digest --user %NPCAP_USERNAME%:%NPCAP_PASSWORD% https://nmap.org/npcap/oem/dist/%NPCAP_OEM_FILE% --output %NPCAP_OEM_FILE%
%NPCAP_OEM_FILE% /S /winpcap_mode
xcopy C:\Windows\System32\Npcap\*.dll C:\Windows\System32
xcopy C:\Windows... | 316e57868a0ce9efe06195a14f689e7945e17281 | ci/install_npcap.bat | ci/install_npcap.bat | Batchfile |
<|file_sep|>examples/autoexpire_cache_redis.rb.diff
original:
@store.[](url)
updated:
@store.get(url)
<|file_sep|>original/examples/autoexpire_cache_redis.rb
def initialize(store, ttl = 86400)
@store = store
@ttl = ttl
end
def [](url)
@store.[](url)
end
def []=(url, value)
@store.[]=... | def initialize(store, ttl = 86400)
@store = store
@ttl = ttl
end
def [](url)
@store.get(url)
end
def []=(url, value)
@store.set(url, value)
@store.expire(url, @ttl)
end
def keys
@store.keys
end
def del(url)
@store.del(url)
end | <|file_sep|>examples/autoexpire_cache_redis.rb.diff
original:
@store.[](url)
updated:
@store.get(url)
<|file_sep|>original/examples/autoexpire_cache_redis.rb
def initialize(store, ttl = 86400)
@store = store
@ttl = ttl
end
def [](url)
@store.[](url)
end
def []=(url, value)
@store.[]=... | c74356b448be992dc4aaa2ba0e932260cdbbf5e0 | examples/autoexpire_cache_redis.rb | examples/autoexpire_cache_redis.rb | Ruby |
<|file_sep|>original/LICENSE.md
Copyright © 2015 Luca Guidi
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, ... | Copyright © 2015-2016 Luca Guidi
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
dis... | <|file_sep|>original/LICENSE.md
Copyright © 2015 Luca Guidi
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, ... | f8c4651f4c26232dd002e9f0cab76fd1902f87af | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/src/attach/attach.ts
import { createConnection } from 'net';
import child from 'child_process';
import { NeovimClient } from './../api/client';
import { logger } from '../utils/logger';
export interface Attach {
reader?: NodeJS.ReadableStream;
writer?: NodeJS.WritableStream;
proc?: NodeJS.P... | import { createConnection } from 'net';
import * as child from 'child_process';
import { NeovimClient } from './../api/client';
import { logger } from '../utils/logger';
export interface Attach {
reader?: NodeJS.ReadableStream;
writer?: NodeJS.WritableStream;
proc?: NodeJS.Process | child.ChildProcess;
socket... | <|file_sep|>original/src/attach/attach.ts
import { createConnection } from 'net';
import child from 'child_process';
import { NeovimClient } from './../api/client';
import { logger } from '../utils/logger';
export interface Attach {
reader?: NodeJS.ReadableStream;
writer?: NodeJS.WritableStream;
proc?: NodeJS.P... | 2735af754f160564b70c0eb64a9f151aef4ffdc9 | src/attach/attach.ts | src/attach/attach.ts | TypeScript |
<|file_sep|>original/composer.json
{
"name": "kafene/monolog-pdo-handler",
"description": "PDO database logging handler for Monolog",
"keywords": ["monolog", "logger", "pdo", "database"],
"homepage": "https://github.com/kafene/PdoHandler",
"license": "Apache-2.0",
"require": {
"php": ">=... | {
"name": "kafene/monolog-pdo-handler",
"description": "PDO database logging handler for Monolog",
"keywords": ["monolog", "logger", "pdo", "database"],
"homepage": "https://github.com/kafene/monolog-pdo-handler",
"license": "Apache-2.0",
"require": {
"php": ">=5.4.0",
"ext-pdo":... | <|file_sep|>original/composer.json
{
"name": "kafene/monolog-pdo-handler",
"description": "PDO database logging handler for Monolog",
"keywords": ["monolog", "logger", "pdo", "database"],
"homepage": "https://github.com/kafene/PdoHandler",
"license": "Apache-2.0",
"require": {
"php": ">=... | c509dfba7a7125b35ec32317b5ea9507be1ab76f | composer.json | composer.json | JSON |
<|file_sep|>original/IPython/lib/tests/test_clipboard.py
<|file_sep|>current/IPython/lib/tests/test_clipboard.py
<|file_sep|>updated/IPython/lib/tests/test_clipboard.py | import nose.tools as nt
from IPython.core.error import TryNext
from IPython.lib.clipboard import ClipboardEmpty
from IPython.utils.py3compat import unicode_type
def test_clipboard_get():
# Smoketest for clipboard access - we can't easily guarantee that the
# clipboard is accessible and has something on it, bu... | <|file_sep|>original/IPython/lib/tests/test_clipboard.py
<|file_sep|>current/IPython/lib/tests/test_clipboard.py
<|file_sep|>updated/IPython/lib/tests/test_clipboard.py
import nose.tools as nt
from IPython.core.error import TryNext
from IPython.lib.clipboard import ClipboardEmpty
from IPython.utils.py3compat import ... | a7777a049dab6e3d4b99f8259ebfa39a31d32ae8 | IPython/lib/tests/test_clipboard.py | IPython/lib/tests/test_clipboard.py | Python |
<|file_sep|>original/sprotbot/notify.py
<|file_sep|>current/sprotbot/notify.py
<|file_sep|>updated/sprotbot/notify.py |
import boto3
import os
def get_aws_creds():
"""
Pulls the AWS credentials from the current environment.
This assumes the following two environment variables are set:
- AWS_ACCESS_KEY_ID -- the public part of the AWS credential
- AWS_SECRET_ACCESS_KEY -- the private part of the AWS credent... | <|file_sep|>original/sprotbot/notify.py
<|file_sep|>current/sprotbot/notify.py
<|file_sep|>updated/sprotbot/notify.py
import boto3
import os
def get_aws_creds():
"""
Pulls the AWS credentials from the current environment.
This assumes the following two environment variables are set:
- AWS_ACCES... | 6f9f87547ed193d01d00a6c0e6f3e3ad5206e4ed | sprotbot/notify.py | sprotbot/notify.py | Python |
<|file_sep|>original/taglib/taglib_config.h.cmake
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
#define TAGLIB_WITH_ASF 1
#define TAGLIB_WITH_MP4 1
<|file_sep|>current/taglib/taglib_config.h.cmake
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
#define TAGLIB_WITH_ASF... | /* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
/* These values are no longer used. This file is present only for compatibility reasons. */
#define TAGLIB_WITH_ASF 1
#define TAGLIB_WITH_MP4 1 | <|file_sep|>original/taglib/taglib_config.h.cmake
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
#define TAGLIB_WITH_ASF 1
#define TAGLIB_WITH_MP4 1
<|file_sep|>current/taglib/taglib_config.h.cmake
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
#define TAGLIB_WITH_ASF... | 98ac8ba569e9206795af9548be341ca3c6fb745a | taglib/taglib_config.h.cmake | taglib/taglib_config.h.cmake | CMake |
<|file_sep|>original/Tests/Decodable/DecodableTests.swift
import XCTest
@testable import Decodable
class DecodableTests: XCTestCase {
func testDecodesPerson() throws {
let person = try Person(json: [
"name": [
"first": "John",
"second": "Doe"
],
... | ],
"age": 25,
"email": "johndoe@gmail.com"
])
XCTAssertEqual(person.name.first, "John")
XCTAssertEqual(person.name.second, "Doe")
XCTAssertEqual(person.age, 25)
XCTAssertEqual(person.email, "johndoe@gmail.com")
}
func testDecodesPerso... | <|file_sep|>original/Tests/Decodable/DecodableTests.swift
import XCTest
@testable import Decodable
class DecodableTests: XCTestCase {
func testDecodesPerson() throws {
let person = try Person(json: [
"name": [
"first": "John",
"second": "Doe"
],
... | 4b99f85d171157b0121668db07d1055354353f30 | Tests/Decodable/DecodableTests.swift | Tests/Decodable/DecodableTests.swift | Swift |
<|file_sep|>main.go.diff
original:
updated:
"github.com/ghthor/engine/sim/stime"
<|file_sep|>main.go.diff
original:
func (inputPhase) ApplyInputsIn(c quad.Chunk) quad.Chunk {
updated:
func (inputPhase) ApplyInputsIn(c quad.Chunk, now stime.Time) quad.Chunk {
<|file_sep|>original/main.go
input := a.ReadInput()
f... | case actor:
input := a.ReadInput()
fmt.Println(input)
// Naively apply input to actor
}
}
return c
}
func (narrowPhase) ResolveCollisions(c quad.Chunk, now stime.Time) quad.Chunk {
return c
}
func main() {
simDef := rpg2d.SimulationDef{
FPS: 40,
InputPhaseHandler: inputPhase{},
NarrowPhaseHa... | <|file_sep|>main.go.diff
original:
updated:
"github.com/ghthor/engine/sim/stime"
<|file_sep|>main.go.diff
original:
func (inputPhase) ApplyInputsIn(c quad.Chunk) quad.Chunk {
updated:
func (inputPhase) ApplyInputsIn(c quad.Chunk, now stime.Time) quad.Chunk {
<|file_sep|>original/main.go
input := a.ReadInput()
f... | 6e4546b6820738580d8a30bb1d1719abd12dd41c | main.go | main.go | Go |
<|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
updated:
Web Site:
<|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
updated:
Name:LocalWifiNlpBackend
<|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
Name:LocalWifiNlpBackend
updated:
... | fix. The use of stored WiFi AP can dramatically decrease the GPS time to first
fix.
This backend performs no network data. All data acquired by the phone stays on
the phone and no queries are made to a centralized AP location provider.
.
Repo Type:git
Repo:https://github.com/n76/wifi_backend
Build:0.3.0,3
commit... | <|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
updated:
Web Site:
<|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
updated:
Name:LocalWifiNlpBackend
<|file_sep|>metadata/org.fitchfamily.android.wifi_backend.txt.diff
original:
Name:LocalWifiNlpBackend
updated:
... | 541a8cce67ae3d9696d8fcc7d002c9864eb8d4df | metadata/org.fitchfamily.android.wifi_backend.txt | metadata/org.fitchfamily.android.wifi_backend.txt | Text |
<|file_sep|>original/src/Symfony/Component/Process/PhpExecutableFinder.php
}
if ($php = getenv('PHP_PATH')) {
if (!is_executable($php)) {
return false;
}
return $php;
}
if ($php = getenv('PHP_PEAR_PHP_BIN')) {
if (is_exec... | if (!is_executable($php)) {
return false;
}
return $php;
}
if ($php = getenv('PHP_PEAR_PHP_BIN')) {
if (is_executable($php)) {
return $php;
}
}
$dirs = array(PHP_BINDIR);
if (defined('P... | <|file_sep|>original/src/Symfony/Component/Process/PhpExecutableFinder.php
}
if ($php = getenv('PHP_PATH')) {
if (!is_executable($php)) {
return false;
}
return $php;
}
if ($php = getenv('PHP_PEAR_PHP_BIN')) {
if (is_exec... | 45219ef80f7a659a22b9a3881150baa536779c66 | src/Symfony/Component/Process/PhpExecutableFinder.php | src/Symfony/Component/Process/PhpExecutableFinder.php | PHP |
<|file_sep|>README.md.diff
original:
# nomlib
updated:
nomlib
======
<|file_sep|>README.md.diff
original:
## Projects Using nomlib
updated:
Projects Using nomlib
---------------------
<|file_sep|>original/README.md
# nomlib
Game engine library in C++ using SDL
## Projects Using nomlib
* [i8degrees/ttcards](https://g... | nomlib
======
Game engine library in C++ using SDL
Projects Using nomlib
---------------------
* [i8degrees/ttcards](https://github.com/i8degrees/ttcards)
Building instructions
---------------------
### Dependencies ###
* cmake
* SDL v1.2.15
* SDL_image
* SDL_ttf
* OpenAL
* libsndfile | <|file_sep|>README.md.diff
original:
# nomlib
updated:
nomlib
======
<|file_sep|>README.md.diff
original:
## Projects Using nomlib
updated:
Projects Using nomlib
---------------------
<|file_sep|>original/README.md
# nomlib
Game engine library in C++ using SDL
## Projects Using nomlib
* [i8degrees/ttcards](https://g... | d992e01b612525027f561a845f49bd9eef68285f | README.md | README.md | Markdown |
<|file_sep|>app/assets/stylesheets/application/_form.scss.diff
original:
updated:
input[type='number'],
<|file_sep|>original/app/assets/stylesheets/application/_form.scss
}
&:focus {
border-color: $action-color;
outline: none;
}
&:disabled {
color: $callback-medium-gray;
background-color: sha... | color: $callback-medium-gray;
background-color: shade($base-background-color, 5%);
cursor: not-allowed;
&:hover {
border: $base-border;
}
}
}
input[type='date'] {
border: 0 none;
margin: 0;
padding: 0;
&::-webkit-datetime-edit-text,
&::-webkit-datetime-edit-month-field,
&::-we... | <|file_sep|>app/assets/stylesheets/application/_form.scss.diff
original:
updated:
input[type='number'],
<|file_sep|>original/app/assets/stylesheets/application/_form.scss
}
&:focus {
border-color: $action-color;
outline: none;
}
&:disabled {
color: $callback-medium-gray;
background-color: sha... | 037eab5d2931edc8d271f5ebe8015f29be9399bf | app/assets/stylesheets/application/_form.scss | app/assets/stylesheets/application/_form.scss | SCSS |
<|file_sep|>src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs.diff
original:
updated:
var count = 0;
<|file_sep|>src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs.diff
original:
updated:
if (count > 0)
writer.WriteValueSeparator();
<|file_sep|>original/src/Elastic... |
writer.WriteBeginObject();
var formatter = formatterResolver.GetFormatter<object>();
var count = 0;
foreach (var kv in (IDictionary<string, object>)value)
{
if (count > 0)
writer.WriteValueSeparator();
writer.WritePropertyName(kv.Key);
formatter.Serialize(ref writer, kv.Value, formatter... | <|file_sep|>src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs.diff
original:
updated:
var count = 0;
<|file_sep|>src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs.diff
original:
updated:
if (count > 0)
writer.WriteValueSeparator();
<|file_sep|>original/src/Elastic... | 9ca7039d8816f3a1adbf6250a68ba8e090c6cad4 | src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs | src/Elasticsearch.Net/Serialization/Formatters/DynamicBodyFormatter.cs | C# |
<|file_sep|>original/.travis.yml
rvm:
- 1.9.3
- 2.0.0
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
gemfile: Gemfile.ci
notifications:
recipients: leonid@svyatov.ru
on_failure: change
matrix:
allow_failures:
- rvm:
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19m... | language: ruby
rvm:
- 1.9.3
- 2.0.0
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
gemfile: Gemfile.ci
notifications:
recipients: leonid@svyatov.ru
on_failure: change
matrix:
allow_failures:
- rvm:
- ruby-head | <|file_sep|>original/.travis.yml
rvm:
- 1.9.3
- 2.0.0
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19mode
gemfile: Gemfile.ci
notifications:
recipients: leonid@svyatov.ru
on_failure: change
matrix:
allow_failures:
- rvm:
- ruby-head
- jruby-19mode
- jruby-head
- rbx-19m... | bf16d68f937520e34c814200ebd96ea3c7634dea | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/eth2/utils/eth2_interop_keypairs/Cargo.toml
[package]
name = "eth2_interop_keypairs"
version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
lazy_static = "1.... | [package]
name = "eth2_interop_keypairs"
version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
lazy_static = "1.4"
num-bigint = "0.2"
eth2_hashing = "0.1"
milagro_bls = { git = ... | <|file_sep|>original/eth2/utils/eth2_interop_keypairs/Cargo.toml
[package]
name = "eth2_interop_keypairs"
version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
lazy_static = "1.... | 940ddd0d13b9b7ecdd322d63989b14bef88eedbd | eth2/utils/eth2_interop_keypairs/Cargo.toml | eth2/utils/eth2_interop_keypairs/Cargo.toml | TOML |
<|file_sep|>original/git/aliases.zsh
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git ... | # Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
hub_path=$(which hub)
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Cre... | <|file_sep|>original/git/aliases.zsh
if (( $+commands[hub] ))
then
alias git=$hub_path
fi
# The rest of my fun git aliases
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git ... | 0cb967e801a825e1ca795a63292252ecc7b4c1ff | git/aliases.zsh | git/aliases.zsh | Shell |
<|file_sep|>original/test/metamodel/bug713.ceylon
@test
shared void bug713() {
value t = `Array<String>.OfSize` == `Array<String>.OfSize`;
}
<|file_sep|>current/test/metamodel/bug713.ceylon
@test
shared void bug713() {
value t = `Array<String>.OfSize` == `Array<String>.OfSize`;
}
<|file_sep|>updated/test/metamo... | @test
shared void bug713() {
value t = `Array<String>.ofSize` == `Array<String>.ofSize`;
} | <|file_sep|>original/test/metamodel/bug713.ceylon
@test
shared void bug713() {
value t = `Array<String>.OfSize` == `Array<String>.OfSize`;
}
<|file_sep|>current/test/metamodel/bug713.ceylon
@test
shared void bug713() {
value t = `Array<String>.OfSize` == `Array<String>.OfSize`;
}
<|file_sep|>updated/test/metamo... | 8bd66a0d0ac3dccfa82ee9c32bf187673c0f7e80 | test/metamodel/bug713.ceylon | test/metamodel/bug713.ceylon | Ceylon |
<|file_sep|>README.rst.diff
original:
updated:
|travis-ci|
<|file_sep|>original/README.rst
===========
Jinja2 Time
===========
Jinja2 Extension for Dates and Times
Installation
------------
**jinja2-time** is *not yet* available for download from `PyPI`_ via `pip`_.
For the time being please install via::
$ ... | ===========
Jinja2 Time
===========
|travis-ci|
Jinja2 Extension for Dates and Times
.. |travis-ci| image:: https://travis-ci.org/hackebrot/jinja2-time.svg?branch=master
:target: https://travis-ci.org/hackebrot/jinja2-time
:alt: See Build Status on Travis CI
Installation
------------
**jinja2-time** is *no... | <|file_sep|>README.rst.diff
original:
updated:
|travis-ci|
<|file_sep|>original/README.rst
===========
Jinja2 Time
===========
Jinja2 Extension for Dates and Times
Installation
------------
**jinja2-time** is *not yet* available for download from `PyPI`_ via `pip`_.
For the time being please install via::
$ ... | 0969263984766ee9e1aeff66a249b45cc76fa5f3 | README.rst | README.rst | reStructuredText |
<|file_sep|>original/summon2mods.css
}
/* disable the pointless language switch (only 1 option anyway) */
.languageSwitcher {
display: none !important;
}
/* Make Clear Refinements Link more noticeable */
.clearRefinements {
font-size: 90%;
font-weight: bold;
bottom-padding: 0.8em;
text-transform: u... | }
/* disable the pointless language switch (only 1 option anyway) */
.languageSwitcher {
display: none !important;
}
/* Make Clear Refinements Link more noticeable */
.clearRefinements {
font-size: 90%;
font-weight: bold;
padding-bottom: 0.8em;
text-transform: uppercase;
}
/* Make back to basic li... | <|file_sep|>original/summon2mods.css
}
/* disable the pointless language switch (only 1 option anyway) */
.languageSwitcher {
display: none !important;
}
/* Make Clear Refinements Link more noticeable */
.clearRefinements {
font-size: 90%;
font-weight: bold;
bottom-padding: 0.8em;
text-transform: u... | 396cee249384c1166f56259e4d5faa1257c2d7f1 | summon2mods.css | summon2mods.css | CSS |
<|file_sep|>tbapy/models.py.diff
original:
APIStatus = _model_class('Status')
updated:
APIStatus = _model_class('APIStatus')
<|file_sep|>original/tbapy/models.py
def _model_class(class_name):
return type(class_name, (_base_model_class,), {})
APIStatus = _model_class('Status')
Team = _model_class('Team')
Event = _... | def _model_class(class_name):
return type(class_name, (_base_model_class,), {})
APIStatus = _model_class('APIStatus')
Team = _model_class('Team')
Event = _model_class('Event')
Match = _model_class('Match')
Award = _model_class('Award')
District = _model_class('District')
Media = _model_class('Media')
Robot = _mod... | <|file_sep|>tbapy/models.py.diff
original:
APIStatus = _model_class('Status')
updated:
APIStatus = _model_class('APIStatus')
<|file_sep|>original/tbapy/models.py
def _model_class(class_name):
return type(class_name, (_base_model_class,), {})
APIStatus = _model_class('Status')
Team = _model_class('Team')
Event = _... | 39d47ed5c0e89f41648a9bdd412b6190d274a488 | tbapy/models.py | tbapy/models.py | Python |
<|file_sep|>original/traits/src/lib.rs
pub trait Summarizable {
fn summary(&self) -> String;
}
pub struct NewsArticle {
pub headline: String,
pub location: String,
pub author: String,
pub content: String,
}
impl Summarizable for NewsArticle {
fn summary(&self) -> String {
format!("{}, ... | pub trait Summarizable {
fn summary(&self) -> String {
String::from("Read more...")
}
}
pub struct NewsArticle {
pub headline: String,
pub location: String,
pub author: String,
pub content: String,
}
impl Summarizable for NewsArticle {
fn summary(&self) -> String {
format!(... | <|file_sep|>original/traits/src/lib.rs
pub trait Summarizable {
fn summary(&self) -> String;
}
pub struct NewsArticle {
pub headline: String,
pub location: String,
pub author: String,
pub content: String,
}
impl Summarizable for NewsArticle {
fn summary(&self) -> String {
format!("{}, ... | 8b67dd94c9c90a0633f3eebc6f3611bb0bb01e0e | traits/src/lib.rs | traits/src/lib.rs | Rust |
<|file_sep|>original/src/app/views/pools/_images.html.haml
-if flash[:error]
-if flash[:error].kind_of?(String)
.flash-subset
%div.heading
=image_tag 'flash_error_icon.png', :alt => 'Errors'
=flash[:error]
-else
- @pool.catalogs.each do |catalog|
%div.catalog_deployments_and_images
... | -if flash[:error]
-if flash[:error].kind_of?(String)
.flash-subset
%div.heading
=image_tag 'flash_error_icon.png', :alt => 'Errors'
=flash[:error]
-else
- @pool.catalogs.list_for_user(current_user, Privilege::VIEW).each do |catalog|
%div.catalog_deployments_and_images
%h1
... | <|file_sep|>original/src/app/views/pools/_images.html.haml
-if flash[:error]
-if flash[:error].kind_of?(String)
.flash-subset
%div.heading
=image_tag 'flash_error_icon.png', :alt => 'Errors'
=flash[:error]
-else
- @pool.catalogs.each do |catalog|
%div.catalog_deployments_and_images
... | d92e4be5a9be70c02f471113e03f1c4054d1cd0f | src/app/views/pools/_images.html.haml | src/app/views/pools/_images.html.haml | Haml |
<|file_sep|>original/plugins/providers/hyperv/scripts/list_hdds.ps1
#Requires -Modules VagrantMessages
param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
try {
$VM = Hyper-V\Get-VM -Id $VmId
$Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM.name)
} catch {
Write-ErrorMessage "Failed to retrieve ... | #Requires -Modules VagrantMessages
param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
try {
$VM = Hyper-V\Get-VM -Id $VmId
$Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM.Name)
} catch {
Write-ErrorMessage "Failed to retrieve all disk info from ${VM}: ${PSItem}"
exit 1
}
$result = Convert... | <|file_sep|>original/plugins/providers/hyperv/scripts/list_hdds.ps1
#Requires -Modules VagrantMessages
param(
[Parameter(Mandatory=$true)]
[string]$VmId
)
try {
$VM = Hyper-V\Get-VM -Id $VmId
$Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM.name)
} catch {
Write-ErrorMessage "Failed to retrieve ... | fb39bd7ed0ffec171ab8c0f14401062cb950af34 | plugins/providers/hyperv/scripts/list_hdds.ps1 | plugins/providers/hyperv/scripts/list_hdds.ps1 | PowerShell |
<|file_sep|>original/client/src/Bullet.js
bullet.prototype.init = function(x, y, dx, dy){
this.x = x;
this.y = y;
this.dx = dx;
this.dy = dy;
}
bullet.prototype.update = function(){
this.x += this.dx;
this.y += this.dy;
}
bullet.prototype.render = function() {
ctx.beginPath();
ctx.arc(this.x, this.y, ... | bullet.prototype.init = function(x, y, dx, dy){
this.x = x;
this.y = y;
this.dx = dx;
this.dy = dy;
}
bullet.prototype.update = function(){
this.x += this.dx;
this.y += this.dy;
}
bullet.prototype.render = function() {
ctx.beginPath();
ctx.arc(this.x*GU, this.y*GU, GU*0.2, 0, 2 * Math.PI, false);
ct... | <|file_sep|>original/client/src/Bullet.js
bullet.prototype.init = function(x, y, dx, dy){
this.x = x;
this.y = y;
this.dx = dx;
this.dy = dy;
}
bullet.prototype.update = function(){
this.x += this.dx;
this.y += this.dy;
}
bullet.prototype.render = function() {
ctx.beginPath();
ctx.arc(this.x, this.y, ... | 2d6197d99e4469883a577b6d45e0c3455d6a82ba | client/src/Bullet.js | client/src/Bullet.js | JavaScript |
<|file_sep|>original/app/content/examples/index.hbs
layout: examples.hbs
short_title: Examples
title: Examples
summary: Examples
short_summary: Examples
---
<h1>Examples</h1>
<ul>
<li><a href="sticky-footer/index.html">Sticky Footer</a></li>
<li><a href="copyright/index.html">Copyright</a></li>
<li><a hr... | ---
layout: examples.hbs
short_title: Examples
title: Examples
summary: Examples
short_summary: Examples
---
<h1>Examples</h1>
<ul>
<li><a href="sticky-footer/index.html">Sticky Footer</a></li>
<li><a href="copyright/index.html">Copyright</a></li>
<li><a href="lazy-load/index.html">Lazy Load</a></li>
... | <|file_sep|>original/app/content/examples/index.hbs
layout: examples.hbs
short_title: Examples
title: Examples
summary: Examples
short_summary: Examples
---
<h1>Examples</h1>
<ul>
<li><a href="sticky-footer/index.html">Sticky Footer</a></li>
<li><a href="copyright/index.html">Copyright</a></li>
<li><a hr... | 28e65f8d80f5f983a60f3b10e60d876e8378ab40 | app/content/examples/index.hbs | app/content/examples/index.hbs | Handlebars |
<|file_sep|>original/rspec_hue.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = "rspec_hue"
spec.version = '0.1.0'
spec.authors = ["larskrantz"]
spec.email = ["la... | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = "rspec-hue"
spec.version = '0.1.0'
spec.authors = ["larskrantz"]
spec.email = ["lars.krantz@alaz.se"]
spec.description ... | <|file_sep|>original/rspec_hue.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = "rspec_hue"
spec.version = '0.1.0'
spec.authors = ["larskrantz"]
spec.email = ["la... | 94c2515b9bfd35d21bff79dddbde8aaaa58a55e4 | rspec_hue.gemspec | rspec_hue.gemspec | Ruby |
<|file_sep|>bower.json.diff
original:
"version": "0.6.1-pre",
updated:
"version": "0.6.1",
<|file_sep|>bower.json.diff
original:
"basic-aspect": "basic-web-components/basic-aspect#0.6.1-pre",
updated:
"basic-aspect": "basic-web-components/basic-aspect#0.6.1",
<|file_sep|>original/bower.json
"name": "basic... | "name": "basic-page-dots",
"description": "Aspect which adds a set of small dots to a collective tracking a list of items.",
"version": "0.6.1",
"license": "MIT",
"main": "basic-page-dots.html",
"dependencies": {
"basic-aspect": "basic-web-components/basic-aspect#0.6.1",
"polymer": "Polymer/polymer#... | <|file_sep|>bower.json.diff
original:
"version": "0.6.1-pre",
updated:
"version": "0.6.1",
<|file_sep|>bower.json.diff
original:
"basic-aspect": "basic-web-components/basic-aspect#0.6.1-pre",
updated:
"basic-aspect": "basic-web-components/basic-aspect#0.6.1",
<|file_sep|>original/bower.json
"name": "basic... | 9b7147d7f7684a88dbafc2234d51ee1b135b78f8 | bower.json | bower.json | JSON |
<|file_sep|>original/CHANGELOG.md
### 0.1.0 (SNAPSHOT)
* Replace 'c' variable in couchtato.js tasks module with a more descriptive 'util'
* Replace cradle with nano, replace nomnom and Config with bagofholding
* Remove -d option, nano as a couchdb driver is fine
* Set min node engine to >= 0.6.0, max node engine to < 0... | ### 0.1.0 (SNAPSHOT)
* Replace 'c' variable in couchtato.js tasks module with a more descriptive 'util'
* Replace cradle with nano, replace nomnom and Config with bagofholding
* Remove -d option, nano as a couchdb driver is fine
* Set min node engine to >= 0.6.0, max node engine to < 0.9.0
* Replace init command with ... | <|file_sep|>original/CHANGELOG.md
### 0.1.0 (SNAPSHOT)
* Replace 'c' variable in couchtato.js tasks module with a more descriptive 'util'
* Replace cradle with nano, replace nomnom and Config with bagofholding
* Remove -d option, nano as a couchdb driver is fine
* Set min node engine to >= 0.6.0, max node engine to < 0... | b74ab261cd2d05cbb5ccc9c063e1ceb0602f5b61 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
install: "python setup.py develop"
before_script:
- psql -c 'create database dts_test_project;' -U postgres
env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
script: ./run_tests.sh
<|file_sep|>current/.travi... | language: python
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
install: "python setup.py develop"
before_script:
- psql -c 'create database dts_test_project;' -U postgres
env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
script: ./run_tests.sh | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
install: "python setup.py develop"
before_script:
- psql -c 'create database dts_test_project;' -U postgres
env:
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
script: ./run_tests.sh
<|file_sep|>current/.travi... | debff695ccc3c69e9eafd4a1915c1b79185e0420 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/assets/javascripts/controller-specific/join.js.coffee.erb
if i == step
if body
node = $("#body#{i} > .contents")
node.empty()
node.append(body)
if explanation
node = $("#explanation#{i} > .contents")
node.empty()
node.append(explan... | if body
node = $("#body#{i} > .contents")
node.empty()
node.append(body)
if explanation
node = $("#explanation#{i} > .contents")
node.empty()
node.append(explanation)
$("#header#{i}").removeClass("<%= inactive_header_style %>")
$("#header#{i}").add... | <|file_sep|>original/app/assets/javascripts/controller-specific/join.js.coffee.erb
if i == step
if body
node = $("#body#{i} > .contents")
node.empty()
node.append(body)
if explanation
node = $("#explanation#{i} > .contents")
node.empty()
node.append(explan... | 7d55ab5f4b86c9def91c201cae9c9a9459150d44 | app/assets/javascripts/controller-specific/join.js.coffee.erb | app/assets/javascripts/controller-specific/join.js.coffee.erb | HTML+ERB |
<|file_sep|>original/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
<|file_sep|>current/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
<|file_sep|>updated/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake | namespace :after_party do
desc 'Deployment task: destroy_orphaned_dossier_operation_logs'
task destroy_orphaned_dossier_operation_logs: :environment do
bar = RakeProgressbar.new(DossierOperationLog.count)
DossierOperationLog.find_each do |log|
if log.dossier.blank?
log.destroy
end
... | <|file_sep|>original/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
<|file_sep|>current/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
<|file_sep|>updated/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
namespace :aft... | d11cef6b0ce7f162aeaf01a89bb00a6230fb4b93 | lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake | lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake | Ruby |
<|file_sep|>original/packages/truffle-core/templates/example.js
contract('Example', function(accounts) {
it("should assert true", function(done) {
var example = Example.at(Example.deployed_address);
assert.isTrue(true);
done();
});
});
<|file_sep|>current/packages/truffle-core/templates/example.js
contr... | contract('Example', function(accounts) {
it("should assert true", function(done) {
var example = Example.deployed();
assert.isTrue(true);
done();
});
}); | <|file_sep|>original/packages/truffle-core/templates/example.js
contract('Example', function(accounts) {
it("should assert true", function(done) {
var example = Example.at(Example.deployed_address);
assert.isTrue(true);
done();
});
});
<|file_sep|>current/packages/truffle-core/templates/example.js
contr... | f1d1997ea43ac131a2632f0cda3068647a089135 | packages/truffle-core/templates/example.js | packages/truffle-core/templates/example.js | JavaScript |
<|file_sep|>original/neurodsp/plts/__init__.py
"""Plotting functions."""
from .time_series import plot_time_series, plot_bursts
from .filt import plot_filter_properties, plot_frequency_response, plot_impulse_response
from .rhythm import plot_swm_pattern, plot_lagged_coherence
from .spectral import plot_power_spectra, ... | """Plotting functions."""
from .time_series import plot_time_series, plot_bursts, plot_instantaneous_measure
from .filt import plot_filter_properties, plot_frequency_response, plot_impulse_response
from .rhythm import plot_swm_pattern, plot_lagged_coherence
from .spectral import plot_power_spectra, plot_scv, plot_scv_... | <|file_sep|>original/neurodsp/plts/__init__.py
"""Plotting functions."""
from .time_series import plot_time_series, plot_bursts
from .filt import plot_filter_properties, plot_frequency_response, plot_impulse_response
from .rhythm import plot_swm_pattern, plot_lagged_coherence
from .spectral import plot_power_spectra, ... | f5d9fbf618f44e8572344e04e9a09c7cae3302bb | neurodsp/plts/__init__.py | neurodsp/plts/__init__.py | Python |
<|file_sep|>src/components/Navigation/index.js.diff
original:
const NAV_LINKS = {
home: { link: '/home', title: 'Home' },
current: { link: '/current', title: 'Current' },
recent: { link: '/recent', title: 'Recent' },
history: { link: '/history', title: 'History' },
info: { link: '/info', title: 'Inf... | <Navbar.Brand>
<Link to="/" className="navbar-brand">Υπερίων</Link>
</Navbar.Brand>
</Navbar.Header>
<Nav>
{ MENU_ITEMS.map((item) => (
<LinkContainer to={ { pathname: item.link } } key={ item.title } >
... | <|file_sep|>src/components/Navigation/index.js.diff
original:
const NAV_LINKS = {
home: { link: '/home', title: 'Home' },
current: { link: '/current', title: 'Current' },
recent: { link: '/recent', title: 'Recent' },
history: { link: '/history', title: 'History' },
info: { link: '/info', title: 'Inf... | ab0dabe6936844ff57a35abb6d2c328961db4fea | src/components/Navigation/index.js | src/components/Navigation/index.js | JavaScript |
<|file_sep|>original/README.md
LewtJobAdmin
============
Job (character classes administration)
![Screenshot of app interface]
(http://i.imgur.com/vKBy66V.png)
<|file_sep|>current/README.md
LewtJobAdmin
============
Job (character classes administration)
![Screenshot of app interface]
(http://i.imgur.com/vKBy66V.pn... | LewtJobAdmin
============
Job (character classes administration)
Knockout interface that can save to sqlite database
**Features:**
1. Select class to edit
2. Reorder/remove/add stat priority
3. Edit hitdie/classname
4. save/reset
**Screenshot of interface:**
![Screenshot of app interface]
(http://i.imgur.com/vKBy... | <|file_sep|>original/README.md
LewtJobAdmin
============
Job (character classes administration)
![Screenshot of app interface]
(http://i.imgur.com/vKBy66V.png)
<|file_sep|>current/README.md
LewtJobAdmin
============
Job (character classes administration)
![Screenshot of app interface]
(http://i.imgur.com/vKBy66V.pn... | a891ebdc770814649c519a780ed3fd0ffa72538e | README.md | README.md | Markdown |
<|file_sep|>original/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html
<|file_sep|>current/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html
<|file_sep|>updated/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html | <!DOCTYPE html>
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<title></title>
</head>
<body>
<div id="gradient-differential">Greater colour saturation means higher absolute log<sub>2</sub>-fold change value.
Blue indicates the gene is ... | <|file_sep|>original/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html
<|file_sep|>current/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html
<|file_sep|>updated/gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html
<!DOCTYPE html>
<html>
<head>
<META HTTP-E... | e4d34e28ca4ef36679358f72e103569892045b49 | gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html | gxa/src/main/webapp/resources/html/help-tooltips.experiment-page.html | HTML |
<|file_sep|>original/requirements.txt
Django==1.6.5
Markdown==2.4
South==0.8.4
celery==3.1.8
django-celery==3.1.10
-e git://github.com/stefanw/django-haystack.git@update-index-language#egg=django_haystack
django-taggit==0.12
pytz==2014.2
requests==2.2.1
django-floppyforms==1.1.1
django_overextends==0.3.0
python-magic==... | Django==1.6.5
Markdown==2.4
South==0.8.4
celery==3.1.8
django-celery==3.1.10
-e git://github.com/stefanw/django-haystack.git@update-index-language#egg=django_haystack
django-taggit==0.12
pytz==2014.2
requests==2.2.1
django-floppyforms==1.1.1
django_overextends==0.3.0
python-magic==0.4.6
django-tastypie==0.11.0
python-m... | <|file_sep|>original/requirements.txt
Django==1.6.5
Markdown==2.4
South==0.8.4
celery==3.1.8
django-celery==3.1.10
-e git://github.com/stefanw/django-haystack.git@update-index-language#egg=django_haystack
django-taggit==0.12
pytz==2014.2
requests==2.2.1
django-floppyforms==1.1.1
django_overextends==0.3.0
python-magic==... | 249dcd84418a03d06e2bdced1635d72d10cdba24 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/openrest-filters/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>pl.openr... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>pl.openrest</groupId>
<artifactId>openrest-parent</arti... | <|file_sep|>original/openrest-filters/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>pl.openr... | 31256850733ccb7522d1bb63d41f4a4304062dd8 | openrest-filters/pom.xml | openrest-filters/pom.xml | XML |
<|file_sep|>original/101-azure-bastion/azuredeploy.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"bastion-host-name": {
"value": "GEN-UNIQUE-8"
},
"location": {
"value":... | {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"bastion-host-name": {
"value": "GEN-UNIQUE-8"
}
}
} | <|file_sep|>original/101-azure-bastion/azuredeploy.parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"bastion-host-name": {
"value": "GEN-UNIQUE-8"
},
"location": {
"value":... | 152e071d86a07f72d8dca5c781ae77f10fcfc025 | 101-azure-bastion/azuredeploy.parameters.json | 101-azure-bastion/azuredeploy.parameters.json | JSON |
<|file_sep|>original/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift
<|file_sep|>current/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift
<|file_sep|>updated/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift | //
// ClearButtonWhileEditingModifier.swift
// ZamzamUI
//
// Created by Basem Emara on 2021-03-14.
// Copyright © 2021 Zamzam Inc. All rights reserved.
//
import SwiftUI
private struct ClearButtonWhileEditingModifier: ViewModifier {
@Binding var text: String
func body(content: Content) -> some View {
... | <|file_sep|>original/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift
<|file_sep|>current/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift
<|file_sep|>updated/Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift
//
// ClearButtonWhileEditingModifier.swift... | 2845d846aa700be95eb71140634e1757e6aea462 | Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift | Sources/ZamzamUI/Views/Modifiers/ClearButtonWhileEditingModifier.swift | Swift |
<|file_sep|>original/.github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-alpha.5, pypy3]
steps:
- uses: actions/checkout@v2
- name: Set up Python ... | name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup... | <|file_sep|>original/.github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-alpha.5, pypy3]
steps:
- uses: actions/checkout@v2
- name: Set up Python ... | fa5fd3f89a6e20d29c8d3a7d9cdfec6cf27f82bd | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/plugins/custom_forms/views/custom_forms_plugin_myprofile/show_submission.html.erb
<h1><%= @form.name %></h1>
<p><%= @form.description %></p>
<% fields_for :submission, @submission do |f| %>
<%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
<% end %>
<% button_bar do %>
... | <h1><%= @form.name %></h1>
<p><%= @form.description %></p>
<%= fields_for :submission, @submission do |f| %>
<%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
<% end %>
<% button_bar do %>
<%= button :back, _('Back to submissions'), :action => 'submissions', :id => @form.id %>
<% end %> | <|file_sep|>original/plugins/custom_forms/views/custom_forms_plugin_myprofile/show_submission.html.erb
<h1><%= @form.name %></h1>
<p><%= @form.description %></p>
<% fields_for :submission, @submission do |f| %>
<%= render :partial => 'shared/form_submission', :locals => {:f => f} %>
<% end %>
<% button_bar do %>
... | a69db7b5c8dd0fbc5156ae33adbc6d697cd71a20 | plugins/custom_forms/views/custom_forms_plugin_myprofile/show_submission.html.erb | plugins/custom_forms/views/custom_forms_plugin_myprofile/show_submission.html.erb | HTML+ERB |
<|file_sep|>original/package.json
{
"name": "camunda-cockpit-ui",
"version": "7.4.0-alpha2",
"private": true,
"gruntConfig": {
"connectPort": 8030,
"livereloadPort": 8031,
"clientDir": "client",
"prodTarget": "dist",
"devTarget": "dist/app/cockpit"
}
}
<|file_sep|>current/package.json
{
... | {
"name": "camunda-cockpit-ui",
"version": "7.4.0-SNAPSHOT",
"private": true,
"gruntConfig": {
"connectPort": 8030,
"livereloadPort": 8031,
"clientDir": "client",
"prodTarget": "dist",
"devTarget": "dist/app/cockpit"
}
} | <|file_sep|>original/package.json
{
"name": "camunda-cockpit-ui",
"version": "7.4.0-alpha2",
"private": true,
"gruntConfig": {
"connectPort": 8030,
"livereloadPort": 8031,
"clientDir": "client",
"prodTarget": "dist",
"devTarget": "dist/app/cockpit"
}
}
<|file_sep|>current/package.json
{
... | b4dfcf7fc24d13afda34842c1877ff5b2599f2a8 | package.json | package.json | JSON |
<|file_sep|>original/application.properties
#Grails Metadata file
#Mon Jul 18 21:28:20 EDT 2016
app.grails.version=2.5.5
app.name=hoa
app.version=1.12-beta
<|file_sep|>current/application.properties
#Grails Metadata file
#Mon Jul 18 21:28:20 EDT 2016
app.grails.version=2.5.5
app.name=hoa
app.version=1.12-beta
<|file_se... | #Grails Metadata file
#Mon Jul 18 21:28:20 EDT 2016
app.grails.version=2.5.5
app.name=hoa
app.version=1.13-beta | <|file_sep|>original/application.properties
#Grails Metadata file
#Mon Jul 18 21:28:20 EDT 2016
app.grails.version=2.5.5
app.name=hoa
app.version=1.12-beta
<|file_sep|>current/application.properties
#Grails Metadata file
#Mon Jul 18 21:28:20 EDT 2016
app.grails.version=2.5.5
app.name=hoa
app.version=1.12-beta
<|file_se... | f3b795e0bf2fa235ef26619e6de06c6fd062eb34 | application.properties | application.properties | INI |
<|file_sep|>original/lib/hyperflow-amqp-executor.rb
begin
`nproc`
rescue
1
end
end.to_i
end
def publish_event(type, routing_key, payload = {})
data = payload
data['timestamp'] = Time.now.utc.to_f
data['type'] = type
data['worker'] ... | begin
`nproc`
rescue
1
end
end.to_i
end
def publish_event(type, routing_key, payload = {})
data = payload
data['timestamp'] = Time.now.utc.to_f
data['type'] = type
data['executor'] = @id
EM.next_tick do
logger.debug "... | <|file_sep|>original/lib/hyperflow-amqp-executor.rb
begin
`nproc`
rescue
1
end
end.to_i
end
def publish_event(type, routing_key, payload = {})
data = payload
data['timestamp'] = Time.now.utc.to_f
data['type'] = type
data['worker'] ... | e00edd2c4df668ac64d37f234e4d8907127d10fd | lib/hyperflow-amqp-executor.rb | lib/hyperflow-amqp-executor.rb | Ruby |
<|file_sep|>original/run.cmd
@if "%_echo%" neq "on" echo off
setlocal
if defined VisualStudioVersion goto :Run
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOL... | @if "%_echo%" neq "on" echo off
setlocal
if defined VisualStudioVersion goto :Run
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Too... | <|file_sep|>original/run.cmd
@if "%_echo%" neq "on" echo off
setlocal
if defined VisualStudioVersion goto :Run
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOL... | 4077946e8b48af8600240349c3222b2075a5a7fe | run.cmd | run.cmd | Batchfile |
<|file_sep|>original/requirements.txt
coverage==4.5.1
docutils==0.14
mako==1.0.7
markupsafe==1.0
nose==1.3.7
passlib==1.7.1
pastedeploy==1.5.2
paster==0.8
pygments==2.2.0
pyramid==1.9.2
pyramid-chameleon==0.1
pyramid-debugtoolbar==2.0.2
pyramid-mako==1.0.1
pyramid-tm==0.7
repoze.lru==0.6
repoze.tm2==2.0
sqlalchemy==0.9... | coverage==4.5.1
docutils==0.14
mako==1.0.7
markupsafe==1.0
nose==1.3.7
passlib==1.7.1
pastedeploy==1.5.2
paster==0.8
pygments==2.2.0
pyramid==1.9.2
pyramid-chameleon==0.3
pyramid-debugtoolbar==2.0.2
pyramid-mako==1.0.1
pyramid-tm==0.7
repoze.lru==0.6
repoze.tm2==2.0
sqlalchemy==0.9.4
transaction==1.4.3
translationstrin... | <|file_sep|>original/requirements.txt
coverage==4.5.1
docutils==0.14
mako==1.0.7
markupsafe==1.0
nose==1.3.7
passlib==1.7.1
pastedeploy==1.5.2
paster==0.8
pygments==2.2.0
pyramid==1.9.2
pyramid-chameleon==0.1
pyramid-debugtoolbar==2.0.2
pyramid-mako==1.0.1
pyramid-tm==0.7
repoze.lru==0.6
repoze.tm2==2.0
sqlalchemy==0.9... | 2b86e5674c9b5e3d1b98410b20484932435ea706 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/artifacts/example/deployment.yaml
replicas: 1
selector:
matchLabels:
apiserver: "true"
template:
metadata:
labels:
apiserver: "true"
spec:
serviceAccountName: apiserver
containers:
- name: wardle-server
# build from staging/src/k8s.io/... | replicas: 1
selector:
matchLabels:
apiserver: "true"
template:
metadata:
labels:
apiserver: "true"
spec:
serviceAccountName: apiserver
containers:
- name: wardle-server
# build from staging/src/k8s.io/sample-apiserver/artifacts/simple-image/Dockerfile
... | <|file_sep|>original/artifacts/example/deployment.yaml
replicas: 1
selector:
matchLabels:
apiserver: "true"
template:
metadata:
labels:
apiserver: "true"
spec:
serviceAccountName: apiserver
containers:
- name: wardle-server
# build from staging/src/k8s.io/... | 0ce43124bef8bd779d04cf48b619f47e5b8e136e | artifacts/example/deployment.yaml | artifacts/example/deployment.yaml | YAML |
<|file_sep|>original/cxfreeze-setup.py
import sys
from glob import glob
from cx_Freeze import setup, Executable
from version import VERSION
# Dependencies are automatically detected, but it might need
# fine tuning.
excludes = ["Tkinter"]
includes = ["logview", "colorwidget"]
includeFiles = [("data/icons/gitc.svg", "... | import sys
from glob import glob
from cx_Freeze import setup, Executable
from version import VERSION
# Dependencies are automatically detected, but it might need
# fine tuning.
excludes = ["Tkinter"]
includes = ["logview", "colorwidget", "pickle"]
includeFiles = [("data/icons/gitc.svg", "data/icons/gitc.svg"),
... | <|file_sep|>original/cxfreeze-setup.py
import sys
from glob import glob
from cx_Freeze import setup, Executable
from version import VERSION
# Dependencies are automatically detected, but it might need
# fine tuning.
excludes = ["Tkinter"]
includes = ["logview", "colorwidget"]
includeFiles = [("data/icons/gitc.svg", "... | 0c6bf8eca2d4cfd08cc98df3cb0ab706a6fbf7a2 | cxfreeze-setup.py | cxfreeze-setup.py | Python |
<|file_sep|>lib/compare_linker/github_link_finder.rb.diff
original:
updated:
require "net/http"
<|file_sep|>lib/compare_linker/github_link_finder.rb.diff
original:
updated:
github_url = redirect_url(github_url)
<|file_sep|>original/lib/compare_linker/github_link_finder.rb
gem_info = JSON.parse(
... | @homepage_uri = gem_info["homepage_uri"]
else
github_url = redirect_url(github_url)
_, @repo_owner, @repo_name = github_url.match(%r!github\.com/([^/]+)/([^/]+)!).to_a
end
end
def repo_full_name
"#{@repo_owner}/#{repo_name}"
end
private
def redirect_url(u... | <|file_sep|>lib/compare_linker/github_link_finder.rb.diff
original:
updated:
require "net/http"
<|file_sep|>lib/compare_linker/github_link_finder.rb.diff
original:
updated:
github_url = redirect_url(github_url)
<|file_sep|>original/lib/compare_linker/github_link_finder.rb
gem_info = JSON.parse(
... | 88a24d71f06a76dbd51ce5f05036f05a7b055e2a | lib/compare_linker/github_link_finder.rb | lib/compare_linker/github_link_finder.rb | Ruby |
<|file_sep|>original/testit.sh
echo "Starting test ..."
timeout 5s ./examples/ex1 $ARGE
if [ $? -eq 0 ]; then
echo "Test FAIL! (1)"
exit 1
fi
sleep 1
echo "Starting watchdogd ..."
./watchdogd $ARGD -n -p --test-mode &
WDOG=$!
sleep 5
# This test should take ~40 seconds to run
echo "Starting API test ..."
tim... | echo "Starting test ..."
timeout 5s ./examples/ex1 $ARGE
if [ $? -eq 0 ]; then
echo "Test FAIL! (1)"
exit 1
fi
sleep 1
echo "Starting watchdogd ..."
./src/watchdogd $ARGD -n -p --test-mode &
WDOG=$!
sleep 5
# This test should take ~40 seconds to run
echo "Starting API test ..."
timeout 45s ./examples/ex1 $AR... | <|file_sep|>original/testit.sh
echo "Starting test ..."
timeout 5s ./examples/ex1 $ARGE
if [ $? -eq 0 ]; then
echo "Test FAIL! (1)"
exit 1
fi
sleep 1
echo "Starting watchdogd ..."
./watchdogd $ARGD -n -p --test-mode &
WDOG=$!
sleep 5
# This test should take ~40 seconds to run
echo "Starting API test ..."
tim... | 5232e48718b93d68a1568e2cde8d1a45cdabe6f3 | testit.sh | testit.sh | Shell |
<|file_sep|>original/.codeclimate.yml
---
engines:
brakeman:
enabled: true
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.rb"
exclude_paths:
- "spec/**/... | ---
engines:
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.rb"
exclude_paths:
- "spec/**/*" | <|file_sep|>original/.codeclimate.yml
---
engines:
brakeman:
enabled: true
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.rb"
exclude_paths:
- "spec/**/... | 0bbe133a9ed47836c60fef5456d09c42fcfe3434 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>static/js/main.js.diff
original:
updated:
resize_toc(container);
<|file_sep|>original/static/js/main.js
window.onload = function() {
var container = document.querySelector('#toc');
if (container != null) {
var toc = initTOC({
selector: 'h2, h3',
scope: '.post',
overwri... | var heading = document.createElement("H2");
var heading_text = document.createTextNode("Table of Contents");
heading.appendChild(heading_text);
container.appendChild(heading);
container.appendChild(toc);
resize_toc(container);
}
}
function resize_toc(container) {
var containerHeight = con... | <|file_sep|>static/js/main.js.diff
original:
updated:
resize_toc(container);
<|file_sep|>original/static/js/main.js
window.onload = function() {
var container = document.querySelector('#toc');
if (container != null) {
var toc = initTOC({
selector: 'h2, h3',
scope: '.post',
overwri... | 35c083122ef678d4db4b71ced4985c73ac072abe | static/js/main.js | static/js/main.js | JavaScript |
<|file_sep|>README.md.diff
original:
[Madeleine](https://github.com/ghostganz/madeleine) to intercept and store
requests to a web application, so that the application's state can later be
automatically restored by re-playing the requests.
updated:
[Madeleine](https://github.com/ghostganz/madeleine) to provide data pers... |
**madeleine-rack** is a [Rack](http://rack.github.com/) middleware that uses
[Madeleine](https://github.com/ghostganz/madeleine) to provide data persistence
to web applications.
It does this by intercepting and storing all web requests, so that the
application's state can later be restored by automatically re-playing... | <|file_sep|>README.md.diff
original:
[Madeleine](https://github.com/ghostganz/madeleine) to intercept and store
requests to a web application, so that the application's state can later be
automatically restored by re-playing the requests.
updated:
[Madeleine](https://github.com/ghostganz/madeleine) to provide data pers... | 7ce3e31f95227d6d559a4fd0c1cef8b3d3dd2c88 | README.md | README.md | Markdown |
<|file_sep|>app/src/main/res/xml/app_tracker.xml.diff
original:
updated:
<screenName name="org.mozilla.webmaker.activity.ProjectSettings">Project Settings Activity</screenName>
<|file_sep|>app/src/main/res/xml/app_tracker.xml.diff
original:
updated:
<screenName name="org.mozilla.webmaker.activity.Play">Play A... | <?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="TypographyDashes">
<!-- The apps Analytics Tracking Id -->
<string name="ga_trackingId">UA-49796218-8</string>
<!-- If set you can replace a package address with a easily readable display name ins... | <|file_sep|>app/src/main/res/xml/app_tracker.xml.diff
original:
updated:
<screenName name="org.mozilla.webmaker.activity.ProjectSettings">Project Settings Activity</screenName>
<|file_sep|>app/src/main/res/xml/app_tracker.xml.diff
original:
updated:
<screenName name="org.mozilla.webmaker.activity.Play">Play A... | c04372c40527a89a5522a1c03ac4260b32e42872 | app/src/main/res/xml/app_tracker.xml | app/src/main/res/xml/app_tracker.xml | XML |
<|file_sep|>original/addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import ru.stqa.pft.addressbook.appmanager.ApplicationManager;
/**
* Created by User... | import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import ru.stqa.pft.addressbook.appmanager.ApplicationManager;
/**
* Created by User on 27.10.2016.
*/
public class TestBase {
protected final ApplicationManager app = new Applicati... | <|file_sep|>original/addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import ru.stqa.pft.addressbook.appmanager.ApplicationManager;
/**
* Created by User... | 2efdfa3378210200cc0f1c487f55bf315fe16cce | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java | Java |
<|file_sep|>spec/fixtures/movie.rb.diff
original:
attr_accessor :title, :rating, :year, :country, :seen, :star_rating
updated:
attr_accessor :title, :rating, :year, :country, :seen, :star_rating, :home_formats
<|file_sep|>original/spec/fixtures/movie.rb
Movie.new
end
def initialize
self.title = r... | Movie.new
end
def initialize
self.title = random_title
self.rating = random_rating
self.year = random_year
self.country = random_country
self.seen = [true, false].sample
self.star_rating = [1, 2, 3, 4, 5].sample
self.home_formats = %w(BD DVD Hulu Amazon ... | <|file_sep|>spec/fixtures/movie.rb.diff
original:
attr_accessor :title, :rating, :year, :country, :seen, :star_rating
updated:
attr_accessor :title, :rating, :year, :country, :seen, :star_rating, :home_formats
<|file_sep|>original/spec/fixtures/movie.rb
Movie.new
end
def initialize
self.title = r... | 812b4215d64e1b30ee86a83a6cf316c129ed9b11 | spec/fixtures/movie.rb | spec/fixtures/movie.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.