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/AUTHORS.txt
Coverage.py was originally written by Gareth Rees, and since 2004 has been
extended and maintained by Ned Batchelder.
Other contributions have been made by:
Chris Adams
Geoff Bache
Titus Brown
Guillaume Chazarain
David Christian
Danek Duvall
Ben Finney
Martin Fuzzey
Imri Goldberg
Bill... | Coverage.py was originally written by Gareth Rees, and since 2004 has been
extended and maintained by Ned Batchelder.
Other contributions have been made by:
Chris Adams
Geoff Bache
Titus Brown
Brett Cannon
Guillaume Chazarain
David Christian
Danek Duvall
Ben Finney
Martin Fuzzey
Imri Goldberg
Bill Hart
Christian Heim... | <|file_sep|>original/AUTHORS.txt
Coverage.py was originally written by Gareth Rees, and since 2004 has been
extended and maintained by Ned Batchelder.
Other contributions have been made by:
Chris Adams
Geoff Bache
Titus Brown
Guillaume Chazarain
David Christian
Danek Duvall
Ben Finney
Martin Fuzzey
Imri Goldberg
Bill... | cd2d387ab90f3f07af49f1e045bdae4d8b1f588a | AUTHORS.txt | AUTHORS.txt | Text |
<|file_sep|>.github/workflows/github-action-tox.yml.diff
original:
updated:
- name: Install Poetry
uses: snok/install-poetry@v1
<|file_sep|>original/.github/workflows/github-action-tox.yml
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: ... | runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Insta... | <|file_sep|>.github/workflows/github-action-tox.yml.diff
original:
updated:
- name: Install Poetry
uses: snok/install-poetry@v1
<|file_sep|>original/.github/workflows/github-action-tox.yml
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: ... | f5754a6a6063f81908192c47ae67704db3e3df3c | .github/workflows/github-action-tox.yml | .github/workflows/github-action-tox.yml | YAML |
<|file_sep|>original/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst
<|file_sep|>current/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst
<|file_sep|>updated/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst | paasta_tools.cli.cmds.get_latest_deployment module
==================================================
.. automodule:: paasta_tools.cli.cmds.get_latest_deployment
:members:
:undoc-members:
:show-inheritance: | <|file_sep|>original/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst
<|file_sep|>current/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst
<|file_sep|>updated/docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst
paasta_tools.cli.cmds.get_latest_deployment mod... | 6bf15beead448395852e64f06d5b08307376b609 | docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst | docs/source/generated/paasta_tools.cli.cmds.get_latest_deployment.rst | reStructuredText |
<|file_sep|>original/pkgs/tools/bluetooth/bluewalker/default.nix
repo = pname;
rev = "v${version}";
sha256 = "sha256-spuJRiNiaBV4EsetUq8vUfR6ejUNZxLhVzS3AZZyrrQ=";
};
vendorSha256 = "189qs6vmx63vwsjmc4qgf1y8xjsi7x6l1f5c3kd8j8jnagl26z4h";
ldflags = [
"-w"
"-s"
];
meta = with lib; {
d... | repo = pname;
rev = "v${version}";
sha256 = "sha256-spuJRiNiaBV4EsetUq8vUfR6ejUNZxLhVzS3AZZyrrQ=";
};
vendorSha256 = "189qs6vmx63vwsjmc4qgf1y8xjsi7x6l1f5c3kd8j8jnagl26z4h";
ldflags = [
"-w"
"-s"
];
meta = with lib; {
description = "Simple command line Bluetooth LE scanner";
home... | <|file_sep|>original/pkgs/tools/bluetooth/bluewalker/default.nix
repo = pname;
rev = "v${version}";
sha256 = "sha256-spuJRiNiaBV4EsetUq8vUfR6ejUNZxLhVzS3AZZyrrQ=";
};
vendorSha256 = "189qs6vmx63vwsjmc4qgf1y8xjsi7x6l1f5c3kd8j8jnagl26z4h";
ldflags = [
"-w"
"-s"
];
meta = with lib; {
d... | 2247e925d697cdfe529ccdbb021fc6ac90fe8b92 | pkgs/tools/bluetooth/bluewalker/default.nix | pkgs/tools/bluetooth/bluewalker/default.nix | Nix |
<|file_sep|>original/app/scripts/directives/lyraexport.js
return {
template: '<a href="#" ng-click="export()">export to lyra...</a>',
restrict: 'E',
controller: function ($scope, $timeout, Vegalite, Alerts) {
$scope.export = function() {
var vegaSpec = Vegalite.vegaSpec;
... | return {
template: '<a href="#" ng-click="export()">export to lyra...</a>',
restrict: 'E',
controller: function ($scope, $timeout, Vegalite, Alerts) {
$scope.export = function() {
var vegaSpec = Vegalite.vegaSpec;
if (!vegaSpec) {
Alerts.add('No vega spec pr... | <|file_sep|>original/app/scripts/directives/lyraexport.js
return {
template: '<a href="#" ng-click="export()">export to lyra...</a>',
restrict: 'E',
controller: function ($scope, $timeout, Vegalite, Alerts) {
$scope.export = function() {
var vegaSpec = Vegalite.vegaSpec;
... | 66d690980e430d081faba8608e08d8a68cb9db71 | app/scripts/directives/lyraexport.js | app/scripts/directives/lyraexport.js | JavaScript |
<|file_sep|>original/package.json
"name": "gifsicle-stream",
"version": "1.0.0",
"description": "The gifsicle command line utility as a readable/writable stream.",
"main": "lib/Gifsicle.js",
"directories": {
"test": "test"
},
"dependencies": {
"gifsicle": "^4.0.1",
"memoizeasync": "^1.1.0",
... | "name": "gifsicle-stream",
"version": "1.0.0",
"description": "The gifsicle command line utility as a readable/writable stream.",
"main": "lib/Gifsicle.js",
"directories": {
"test": "test"
},
"dependencies": {
"gifsicle": "^4.0.1",
"memoizeasync": "^1.1.0",
"which": "^2.0.2"
},
"devDep... | <|file_sep|>original/package.json
"name": "gifsicle-stream",
"version": "1.0.0",
"description": "The gifsicle command line utility as a readable/writable stream.",
"main": "lib/Gifsicle.js",
"directories": {
"test": "test"
},
"dependencies": {
"gifsicle": "^4.0.1",
"memoizeasync": "^1.1.0",
... | 1f7bc0a0e9f456aaf31190ad1a187d61c56681dd | package.json | package.json | JSON |
<|file_sep|>views/layout.jade.diff
original:
updated:
<script>if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"><\/script>') } else { document.write('<script src="//ajax.googleapis.com... | doctype html
html
head
title= title
<script>if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"><\/script>') } else { document.write('<script src="//ajax.googleapis.com/ajax/libs/jquer... | <|file_sep|>views/layout.jade.diff
original:
updated:
<script>if('querySelector' in document && 'localStorage' in window && 'addEventListener' in window) { document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"><\/script>') } else { document.write('<script src="//ajax.googleapis.com... | acbb84d05e4d8d368dd11815ccf68298464660e4 | views/layout.jade | views/layout.jade | Jade |
<|file_sep|>original/scripts-available/CDB_ZoomFromScale.sql
-- The maximum zoom level has to be limited for various reasons,
-- e.g. zoom levels greater than 31 would require tile coordinates
-- that would not fit in an INTEGER (which is signed, 32 bits long).
-- We'll choose 20 as a limit which is safe also w... | $$;
CREATE OR REPLACE FUNCTION cartodb.CDB_ZoomFromScale(scaleDenominator numeric)
RETURNS int
LANGUAGE SQL
IMMUTABLE
AS $$
SELECT
CASE
WHEN scaleDenominator > 600000000 THEN
-- Scale is smaller than zoom level 0
NULL
WHEN scaleDenominator = 0 THEN
-- Actual zoom level would b... | <|file_sep|>original/scripts-available/CDB_ZoomFromScale.sql
-- The maximum zoom level has to be limited for various reasons,
-- e.g. zoom levels greater than 31 would require tile coordinates
-- that would not fit in an INTEGER (which is signed, 32 bits long).
-- We'll choose 20 as a limit which is safe also w... | 2a30eb2fd3be4b0ae72ed4ea43ab4716fdca1ad8 | scripts-available/CDB_ZoomFromScale.sql | scripts-available/CDB_ZoomFromScale.sql | SQL |
<|file_sep|>original/app/views/layouts/shared/_become_a_partner.html.erb
<%= mail_to ENV["CONTACT_EMAIL_ADDRESS"], "Become a partner", subject: "Become a partner", body: "My business is interested in becoming a partner.", class: :button %>
<|file_sep|>current/app/views/layouts/shared/_become_a_partner.html.erb
<%= mail... | <%= mail_to ENV["DEVISE_EMAIL_FROM"], "Become a partner", subject: "Become a partner", body: "My business is interested in becoming a partner.", class: :button %> | <|file_sep|>original/app/views/layouts/shared/_become_a_partner.html.erb
<%= mail_to ENV["CONTACT_EMAIL_ADDRESS"], "Become a partner", subject: "Become a partner", body: "My business is interested in becoming a partner.", class: :button %>
<|file_sep|>current/app/views/layouts/shared/_become_a_partner.html.erb
<%= mail... | c35673a19ea021fd64d056a9543af939d35ba71f | app/views/layouts/shared/_become_a_partner.html.erb | app/views/layouts/shared/_become_a_partner.html.erb | HTML+ERB |
<|file_sep|>original/requirements/prod.txt
-r base.txt
django-redis==5.1.0
hiredis==2.0.0
gunicorn==20.1.0
<|file_sep|>current/requirements/prod.txt
-r base.txt
django-redis==5.1.0
hiredis==2.0.0
gunicorn==20.1.0
<|file_sep|>updated/requirements/prod.txt | -r base.txt
django-redis==5.2.0
hiredis==2.0.0
gunicorn==20.1.0 | <|file_sep|>original/requirements/prod.txt
-r base.txt
django-redis==5.1.0
hiredis==2.0.0
gunicorn==20.1.0
<|file_sep|>current/requirements/prod.txt
-r base.txt
django-redis==5.1.0
hiredis==2.0.0
gunicorn==20.1.0
<|file_sep|>updated/requirements/prod.txt
-r base.txt
django-redis==5.2.0
hiredis==2.0.0
gunicorn==20.1.0 | fad7715e7c45e54a5ba5d01baefeee3aa0cd021c | requirements/prod.txt | requirements/prod.txt | Text |
<|file_sep|>original/test/model/record.js
/*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record h... | /*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('../../lib/util/rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record has the property', function ... | <|file_sep|>original/test/model/record.js
/*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record h... | 765939fc174dce23c47b689f4bdc3d7c9f4a86c8 | test/model/record.js | test/model/record.js | JavaScript |
<|file_sep|>original/txircd/modules/cmode_s.py
from txircd.modbase import Mode
class SecretMode(Mode):
def listOutput(self, command, data):
if command != "LIST":
return data
cdata = data["cdata"]
if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels:
data["cdata"] = {}
# ... | from txircd.modbase import Mode
class SecretMode(Mode):
def listOutput(self, command, data):
if command != "LIST":
return data
cdata = data["cdata"]
if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels:
data["cdata"].clear()
# other +s stuff is hiding in other modules.
... | <|file_sep|>original/txircd/modules/cmode_s.py
from txircd.modbase import Mode
class SecretMode(Mode):
def listOutput(self, command, data):
if command != "LIST":
return data
cdata = data["cdata"]
if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels:
data["cdata"] = {}
# ... | c301e99bbf5b32e3c66d68f422fdfc271390adf4 | txircd/modules/cmode_s.py | txircd/modules/cmode_s.py | Python |
<|file_sep|>original/lib/coverband/utils/railtie.rb
# frozen_string_literal: true
Coverband.eager_loading_coverage!
module Coverband
class Railtie < Rails::Railtie
initializer 'coverband.configure' do |app|
app.middleware.use Coverband::Middleware
end
config.after_initialize do
Coverband.rep... | Coverband.eager_loading_coverage!
module Coverband
class Railtie < Rails::Railtie
initializer 'coverband.configure' do |app|
app.middleware.use Coverband::Middleware
end
config.after_initialize do
Coverband.report_coverage(true)
Coverband.runtime_coverage!
end
config.before_ini... | <|file_sep|>original/lib/coverband/utils/railtie.rb
# frozen_string_literal: true
Coverband.eager_loading_coverage!
module Coverband
class Railtie < Rails::Railtie
initializer 'coverband.configure' do |app|
app.middleware.use Coverband::Middleware
end
config.after_initialize do
Coverband.rep... | fceca0cbbcce3e3eb9117dc0a41e9087a2a13843 | lib/coverband/utils/railtie.rb | lib/coverband/utils/railtie.rb | Ruby |
<|file_sep|>original/src/configure.sh
#!/bin/sh
# The global constants used in several scripts
PROJECTS="step-controller libserial libatom libplanar mxu11x0 planar-display \
planar-editor pui pui-keyboard pui-test mems-gyroscope simunit \
uso-iso d2k-dask"
PROJECTS_DIR="/home/ilya/sync"
# This na... | #!/bin/sh
# The global constants used in several scripts
PROJECTS="step-controller libserial libatom libplanar mxu11x0 planar-display \
planar-editor pui pui-keyboard pui-test mems-gyroscope simunit \
uso-iso d2k-dask pci-dask pci429-4"
PROJECTS_DIR="/home/ilya/sync"
# This names are the same as ... | <|file_sep|>original/src/configure.sh
#!/bin/sh
# The global constants used in several scripts
PROJECTS="step-controller libserial libatom libplanar mxu11x0 planar-display \
planar-editor pui pui-keyboard pui-test mems-gyroscope simunit \
uso-iso d2k-dask"
PROJECTS_DIR="/home/ilya/sync"
# This na... | fe6467f746dd1d918951aa92f35845851d7d7a54 | src/configure.sh | src/configure.sh | Shell |
<|file_sep|>original/metatlas/tests/test_loader.py
from __future__ import print_function
import tables
from metatlas.mzml_loader import mzml_to_hdf, get_test_data
def test_loader():
path = get_test_data()
out_file = 'test_loader.h5'
mzml_to_hdf(path, out_file_name=out_file)
fid = tables.open_file(o... | from __future__ import print_function
import tables
from metatlas.mzml_loader import mzml_to_hdf, get_test_data
def test_loader():
path = get_test_data()
out_file = 'test_loader.h5'
mzml_to_hdf(path, out_file_name=out_file)
fid = tables.open_file(out_file)
table = fid.root.spectra
assert t... | <|file_sep|>original/metatlas/tests/test_loader.py
from __future__ import print_function
import tables
from metatlas.mzml_loader import mzml_to_hdf, get_test_data
def test_loader():
path = get_test_data()
out_file = 'test_loader.h5'
mzml_to_hdf(path, out_file_name=out_file)
fid = tables.open_file(o... | 63e31d0594f3813a6d49191d94c4ec7ce6b66e3b | metatlas/tests/test_loader.py | metatlas/tests/test_loader.py | Python |
<|file_sep|>original/test/core/view/view_child_regression_test.dart
<|file_sep|>current/test/core/view/view_child_regression_test.dart
<|file_sep|>updated/test/core/view/view_child_regression_test.dart | import 'package:angular2/angular2.dart';
import 'package:angular_test/angular_test.dart';
import 'package:test/test.dart';
void main() {
test('$ViewChild#nativeElement should be accessible', () async {
final fixture = await new NgTestBed<ViewChildTest>().create();
await fixture.update((component) {
exp... | <|file_sep|>original/test/core/view/view_child_regression_test.dart
<|file_sep|>current/test/core/view/view_child_regression_test.dart
<|file_sep|>updated/test/core/view/view_child_regression_test.dart
import 'package:angular2/angular2.dart';
import 'package:angular_test/angular_test.dart';
import 'package:test/test.... | 6ccb0387735e30f4a00c7e3bf08f8a8b60295134 | test/core/view/view_child_regression_test.dart | test/core/view/view_child_regression_test.dart | Dart |
<|file_sep|>original/app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/asse... | // This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... | <|file_sep|>original/app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/asse... | b3ffdedbc6ae89d020db3c08434b1cf71570a75a | app/assets/javascripts/application.js | app/assets/javascripts/application.js | JavaScript |
<|file_sep|>original/benches/bench_stdlibs.rs
";
let mut var = vec![];
b.iter(|| {
var = get_all_completions(src, None);
})
}
#[bench]
fn completes_methods_for_file_open(b: &mut Bencher) {
let src = r#"
use std::io;
use std::io::prelude::*;
use std::fs::File;
let mut f = File::o... | use std::io::prelude::*;
use std::fs::File;
let mut f = File::open("no-file-here"):
f.~
"#;
let mut var = vec![];
b.iter(|| {
var = get_all_completions(src, None);
})
}
#[bench]
fn follows_std(b: &mut Bencher) {
let src = r#"
use std::~
"#;
let mut var = vec![];
b.it... | <|file_sep|>original/benches/bench_stdlibs.rs
";
let mut var = vec![];
b.iter(|| {
var = get_all_completions(src, None);
})
}
#[bench]
fn completes_methods_for_file_open(b: &mut Bencher) {
let src = r#"
use std::io;
use std::io::prelude::*;
use std::fs::File;
let mut f = File::o... | 52ad2561db9111a857554c346facf501fe87d18b | benches/bench_stdlibs.rs | benches/bench_stdlibs.rs | Rust |
<|file_sep|>Casks/gog-galaxy.rb.diff
original:
version '1.0.2.939'
sha256 '2c46d7aafe862bc0b2aa6b4bc95490683f8ec80f96feffb7c6f7918e2203e4e7'
updated:
version '1.0.5.11'
sha256 '1adba93ef842bff2ecf40de423abb610e215d4e40536a622e16e8d008881057b'
<|file_sep|>original/Casks/gog-galaxy.rb
cask :v1 => 'gog-galaxy' do
... | cask :v1 => 'gog-galaxy' do
version '1.0.5.11'
sha256 '1adba93ef842bff2ecf40de423abb610e215d4e40536a622e16e8d008881057b'
url "http://cdn.gog.com/open/galaxy/client/galaxy_client_#{version}.pkg"
name 'GOG Galaxy Client'
homepage 'https://www.gog.com/galaxy'
license :gratis
tags :vendor => 'GOG'
pkg "ga... | <|file_sep|>Casks/gog-galaxy.rb.diff
original:
version '1.0.2.939'
sha256 '2c46d7aafe862bc0b2aa6b4bc95490683f8ec80f96feffb7c6f7918e2203e4e7'
updated:
version '1.0.5.11'
sha256 '1adba93ef842bff2ecf40de423abb610e215d4e40536a622e16e8d008881057b'
<|file_sep|>original/Casks/gog-galaxy.rb
cask :v1 => 'gog-galaxy' do
... | 44d587ffec22f86e7f7fe78b124299727dc56452 | Casks/gog-galaxy.rb | Casks/gog-galaxy.rb | Ruby |
<|file_sep|>ncdc_download/download_mapper2.py.diff
original:
updated:
import os
<|file_sep|>ncdc_download/download_mapper2.py.diff
original:
sys.stderr.write('reporter:status:Processing file %s/%s (FTP attempt %d of %d)\n' % (year, filename, i + 1, retries))
data = bytearray()
updated:
sys.stde... | for line in sys.stdin:
(year, filename) = line.strip().split()
for i in range(retries):
sys.stderr.write('reporter:status:Processing file %s/%s (FTP attempt %d of %d)\n' % (year,
filename, i + 1, retries))
try:
ftp.retrbinary('RETR %s/%s/%s' % (base, year, filename), open... | <|file_sep|>ncdc_download/download_mapper2.py.diff
original:
updated:
import os
<|file_sep|>ncdc_download/download_mapper2.py.diff
original:
sys.stderr.write('reporter:status:Processing file %s/%s (FTP attempt %d of %d)\n' % (year, filename, i + 1, retries))
data = bytearray()
updated:
sys.stde... | ac9123c7926c04af7ac68949e2636a81f771fd7d | ncdc_download/download_mapper2.py | ncdc_download/download_mapper2.py | Python |
<|file_sep|>original/stylesheets/default.css
height:300px;
width:100px;
float:left;
padding:5px;
}
#section {
font-family: Roboto
width:350px;
float:left;
padding:10px;
}
#footer {
font-family: Roboto
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
<|file... | }
#section {
font-family: Roboto
width:350px;
float:left;
padding:10px;
}
#footer {
font-family: Roboto
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
a {
color: inherit;
} | <|file_sep|>original/stylesheets/default.css
height:300px;
width:100px;
float:left;
padding:5px;
}
#section {
font-family: Roboto
width:350px;
float:left;
padding:10px;
}
#footer {
font-family: Roboto
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
<|file... | 33e12b096ccca9b5e112956f85c307a87615f336 | stylesheets/default.css | stylesheets/default.css | CSS |
<|file_sep|>bin/ssh_permissions.sh.diff
original:
chmod 600 "$SSH_FOLDER/*"
chmod 644 "$SSH_FOLDER/*.pub"
updated:
chmod 600 "$SSH_FOLDER"/*
chmod 644 "$SSH_FOLDER"/*.pub
<|file_sep|>bin/ssh_permissions.sh.diff
original:
chmod 644 "$SSH_FOLDER/known_hosts"
updated:
chmod 644 "$SSH_FOLDER... |
main() {
SSH_FOLDER="$HOME/.ssh"
# main permissions
chmod 700 "$SSH_FOLDER"
chmod 600 "$SSH_FOLDER"/*
chmod 644 "$SSH_FOLDER"/*.pub
# known_hosts
if [ -f "$SSH_FOLDER/known_hosts" ]; then
chmod 644 "$SSH_FOLDER"/known_hosts
fi
# config
if [ -f "$SSH_FOLDER/config" ]; ... | <|file_sep|>bin/ssh_permissions.sh.diff
original:
chmod 600 "$SSH_FOLDER/*"
chmod 644 "$SSH_FOLDER/*.pub"
updated:
chmod 600 "$SSH_FOLDER"/*
chmod 644 "$SSH_FOLDER"/*.pub
<|file_sep|>bin/ssh_permissions.sh.diff
original:
chmod 644 "$SSH_FOLDER/known_hosts"
updated:
chmod 644 "$SSH_FOLDER... | f7887c9b263dfd789ecd1037f881690d21162593 | bin/ssh_permissions.sh | bin/ssh_permissions.sh | Shell |
<|file_sep|>bin/jenkins.sh.diff
original:
bundle install --path vendor/bundle/1.9.2 --without development; echo
updated:
bundle update --path vendor/bundle/1.9.2 --without development; echo
<|file_sep|>original/bin/jenkins.sh
#!/bin/bash
echo -e "\n\n==== Setup ===="
source /etc/profile
git fetch && git reset origin/m... | #!/bin/bash
echo -e "\n\n==== Setup ===="
source /etc/profile
git fetch && git reset origin/master --hard
echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
gem install bundler --no-ri --no-rdoc
bundle update --path vendor/bundle/1.9.2 --without development; echo
bundle exec rspec spec
return_status... | <|file_sep|>bin/jenkins.sh.diff
original:
bundle install --path vendor/bundle/1.9.2 --without development; echo
updated:
bundle update --path vendor/bundle/1.9.2 --without development; echo
<|file_sep|>original/bin/jenkins.sh
#!/bin/bash
echo -e "\n\n==== Setup ===="
source /etc/profile
git fetch && git reset origin/m... | eb3970ec6299d415637caf35f16d2d457ae23fc5 | bin/jenkins.sh | bin/jenkins.sh | Shell |
<|file_sep|>tests/pos/i4345.scala.diff
original:
class Test {
updated:
class TestSimple {
<|file_sep|>tests/pos/i4345.scala.diff
original:
updated:
@tailrec
final def loop3[A <: Context](c: A, trees: List[c.Tree]): Boolean =
loop3(c, trees)
<|file_sep|>original/tests/pos/i4345.scala
import scala.annotation.ta... | loop(c)(trees)
@tailrec
final def loop2(c: Context, trees: List[c.Tree]): Boolean =
loop2(c, trees)
@tailrec
final def loop3[A <: Context](c: A, trees: List[c.Tree]): Boolean =
loop3(c, trees)
}
class TestVCParameterized[C <: Context](val classC: C) extends AnyVal {
@tailrec
final def loop(c:... | <|file_sep|>tests/pos/i4345.scala.diff
original:
class Test {
updated:
class TestSimple {
<|file_sep|>tests/pos/i4345.scala.diff
original:
updated:
@tailrec
final def loop3[A <: Context](c: A, trees: List[c.Tree]): Boolean =
loop3(c, trees)
<|file_sep|>original/tests/pos/i4345.scala
import scala.annotation.ta... | 97f90263a0f87a33ed06c3d954b91225cfcc775a | tests/pos/i4345.scala | tests/pos/i4345.scala | Scala |
<|file_sep|>original/requirements.txt
Django==2.0
dj_database_url==0.4.2
pytz==2017.3
python_box==3.1.1
six==1.11.0
gunicorn==19.7.1
psycopg2==2.7.3.2
python-decouple==3.1
raven==6.4.0
#Amazon S3 Stuff
boto3==1.5.9
Collectfast==0.6.0
botocore==1.8.23
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
... | Django==2.0.1
dj_database_url==0.4.2
pytz==2017.3
python_box==3.1.1
six==1.11.0
gunicorn==19.7.1
psycopg2==2.7.3.2
python-decouple==3.1
raven==6.4.0
#Amazon S3 Stuff
boto3==1.5.9
Collectfast==0.6.0
botocore==1.8.23
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
jmespath==0.9.3
python-dateutil==2.6... | <|file_sep|>original/requirements.txt
Django==2.0
dj_database_url==0.4.2
pytz==2017.3
python_box==3.1.1
six==1.11.0
gunicorn==19.7.1
psycopg2==2.7.3.2
python-decouple==3.1
raven==6.4.0
#Amazon S3 Stuff
boto3==1.5.9
Collectfast==0.6.0
botocore==1.8.23
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
... | 1cf95ebc69c41777f2116a7d4e0b81db50da48e7 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/README.org
pre_msg = message_types.Simple(
summary='Some summary',
body='And some body',
)
table_msg = message_types.Table(
body=range(100),
columns=('Col 1', 'Col 2', 'Col 3', 'Col 4'),
)
notification_id = client.new_window(pre_msg, table_msg, pre_msg,
... | notification_id = client.new_window(pre_msg, table_msg, pre_msg,
position='northeast')
client.timeout(timeout=10.0, notification_id=notification_id)
# from time import sleep
# sleep(20.0)
# client.destroy(window_id)
# client.kill_server()
#+END_SRC
[[file:examples/outp... | <|file_sep|>original/README.org
pre_msg = message_types.Simple(
summary='Some summary',
body='And some body',
)
table_msg = message_types.Table(
body=range(100),
columns=('Col 1', 'Col 2', 'Col 3', 'Col 4'),
)
notification_id = client.new_window(pre_msg, table_msg, pre_msg,
... | a82e22578a86227a1dedb15f10307d2c945b9274 | README.org | README.org | Org |
<|file_sep|>original/tools/commit-analyzer.js
.filter((commit) => !!commit)
.every((commit) => {
if (commit.breaks.length) {
type = 'prerelease'
return false
}
if (commit.type === 'feat') type = 'prerelease'
if (!type && commit.type === 'fix') type = 'prerelease'
return true
})... | .filter((commit) => !!commit)
.every((commit) => {
if (commit.breaks.length) {
type = 'prerelease'
return false
}
if (commit.type === 'feat') type = 'prerelease'
if (!type && commit.type === 'fix') type = 'prerelease'
return true
})
if(type) {
process.env.PROJECT_HAS_C... | <|file_sep|>original/tools/commit-analyzer.js
.filter((commit) => !!commit)
.every((commit) => {
if (commit.breaks.length) {
type = 'prerelease'
return false
}
if (commit.type === 'feat') type = 'prerelease'
if (!type && commit.type === 'fix') type = 'prerelease'
return true
})... | 8879ea7b095f94dcdca49eb199dda4d78906c554 | tools/commit-analyzer.js | tools/commit-analyzer.js | JavaScript |
<|file_sep|>setup.py.diff
original:
version="0.1.2",
updated:
version="0.1.3",
<|file_sep|>original/setup.py
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
... | #!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["... | <|file_sep|>setup.py.diff
original:
version="0.1.2",
updated:
version="0.1.3",
<|file_sep|>original/setup.py
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
... | 84b4fc8fdc3808340293c076a1628bf0decd2d2c | setup.py | setup.py | Python |
<|file_sep|>original/clangd/tool/CMakeLists.txt
set(LLVM_LINK_COMPONENTS
support
)
set(CLANGD_XPC_LIBS "")
if(CLANGD_BUILD_XPC)
list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
endif()
target_link_libraries(clangd
PRIVATE
clangBasic
clangTidy
clangDaemon
clangFormat
clang... | support
)
set(CLANGD_XPC_LIBS "")
if(CLANGD_BUILD_XPC)
list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
endif()
target_link_libraries(clangd
PRIVATE
clangAST
clangBasic
clangTidy
clangDaemon
clangFormat
clangFrontend
clangSema
clangTooling
clangToolingCore
${CLA... | <|file_sep|>original/clangd/tool/CMakeLists.txt
set(LLVM_LINK_COMPONENTS
support
)
set(CLANGD_XPC_LIBS "")
if(CLANGD_BUILD_XPC)
list(APPEND CLANGD_XPC_LIBS "clangdXpcJsonConversions" "clangdXpcTransport")
endif()
target_link_libraries(clangd
PRIVATE
clangBasic
clangTidy
clangDaemon
clangFormat
clang... | f3dee9692ece38a95b2911b697a9ca6d0f6c51bf | clangd/tool/CMakeLists.txt | clangd/tool/CMakeLists.txt | Text |
<|file_sep|>.travis.yml.diff
original:
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo install --force cargo-audit
fi
updated:
<|file_sep|>original/.travis.yml
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup component add rustfmt
- rustup component... | - stable
- beta
- nightly
jobs:
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup component add rustfmt
- rustup component add clippy
- cargo generate-lockfile
script:
- cargo fmt -- --check
- |
if [ "$TRAVIS_RUST_VERSION" != "1.39.0" ]; then
cargo clippy -... | <|file_sep|>.travis.yml.diff
original:
- |
if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then
cargo install --force cargo-audit
fi
updated:
<|file_sep|>original/.travis.yml
allow_failures:
- rust: nightly
fast_finish: true
before_script:
- rustup component add rustfmt
- rustup component... | 172e89357392184c32fb4262dbde518e1ce807b1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/routes.rb
Ecm::Pictures::Backend::Engine.routes.draw do
resources :galleries
resources :pictures
root to: 'home#index'
end
<|file_sep|>current/config/routes.rb
Ecm::Pictures::Backend::Engine.routes.draw do
resources :galleries
resources :pictures
root to: 'home#index'
end
<|fil... | Ecm::Pictures::Backend::Engine.routes.draw do
backend_resources :galleries
backend_resources :pictures
root to: 'home#index'
end | <|file_sep|>original/config/routes.rb
Ecm::Pictures::Backend::Engine.routes.draw do
resources :galleries
resources :pictures
root to: 'home#index'
end
<|file_sep|>current/config/routes.rb
Ecm::Pictures::Backend::Engine.routes.draw do
resources :galleries
resources :pictures
root to: 'home#index'
end
<|fil... | 53df806b95a5a614cd5d43a35b95f36b7ba476b9 | config/routes.rb | config/routes.rb | Ruby |
<|file_sep|>original/js/modernizr/label-click.js
/**
* Android browser doesn't trigger a label's associated
* form item when tapping the label. We only want to
* enable 'option' styled checkboxes/radio buttons if the
* expected behavior still functions.
*/
/* jshint strict:false */
/* global Modernizr:false */
M... | */
/* jshint strict:false */
/* global Modernizr:false */
Modernizr.addTest("label-click", function() {
var testLabel = document.createElement("label");
var testInput = document.createElement("input");
testInput.setAttribute("type", "checkbox");
testLabel.appendChild(testInput);
try {
// Trigger a `cl... | <|file_sep|>original/js/modernizr/label-click.js
/**
* Android browser doesn't trigger a label's associated
* form item when tapping the label. We only want to
* enable 'option' styled checkboxes/radio buttons if the
* expected behavior still functions.
*/
/* jshint strict:false */
/* global Modernizr:false */
M... | 9fee5b6164ee30c11938eea9c410dc47bd733214 | js/modernizr/label-click.js | js/modernizr/label-click.js | JavaScript |
<|file_sep|>original/src/Store.js
'finalise',
'form',
'prescriber',
'wizard',
'payment',
'insurance',
'dashboard',
'dispensary',
'modules',
'supplierCredit',
'temperatureSync',
],
};
const persistedReducer = persistReducer(persistConfig, reducers);
const store = createSto... | 'patient',
'finalise',
'form',
'prescriber',
'wizard',
'payment',
'insurance',
'dashboard',
'dispensary',
'modules',
'supplierCredit',
],
};
const persistedReducer = persistReducer(persistConfig, reducers);
const store = createStore(persistedReducer, {}, applyMiddleware(t... | <|file_sep|>original/src/Store.js
'finalise',
'form',
'prescriber',
'wizard',
'payment',
'insurance',
'dashboard',
'dispensary',
'modules',
'supplierCredit',
'temperatureSync',
],
};
const persistedReducer = persistReducer(persistConfig, reducers);
const store = createSto... | 6d80a0a2941895a2afdaaf43dfb04ca8b0ec7a42 | src/Store.js | src/Store.js | JavaScript |
<|file_sep|>almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala.diff
original:
trait EventLog {
updated:
trait CanStoreEvents {
<|file_sep|>almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala.diff
original:
updated:
}
trait HasEvents {
<|file_sep|>original/almhirt-core/src/main/scala/almhirt/eventlog/... | package almhirt.eventlog
import java.util.{ UUID => JUUID }
import org.joda.time.DateTime
import almhirt.core.Event
import almhirt.common.AlmFuture
trait CanStoreEvents {
def storeEvent(event: Event): AlmFuture[Event]
}
trait HasEvents {
def getAllEvents: AlmFuture[Iterable[Event]]
def getEvent(eventId: JUUID)... | <|file_sep|>almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala.diff
original:
trait EventLog {
updated:
trait CanStoreEvents {
<|file_sep|>almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala.diff
original:
updated:
}
trait HasEvents {
<|file_sep|>original/almhirt-core/src/main/scala/almhirt/eventlog/... | 6493db78fce29a07e7b975e8c4c47e2b266af7e8 | almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala | almhirt-core/src/main/scala/almhirt/eventlog/EventLog.scala | Scala |
<|file_sep|>original/tasks/run-unit-tests-for-php7.yml
libexpat1-dev \
libgdbm-dev \
libgmp-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng12-dev \
libpspell-dev \
libreadline-dev \
libsasl2-dev \
libsnmp-dev \
li... | libexpat1-dev \
libgdbm-dev \
libgmp-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng12-dev \
libpspell-dev \
libreadline-dev \
libsasl2-dev \
libsnmp-dev \
libsqlite3-dev \
libssl-dev \
libzip-dev \
... | <|file_sep|>original/tasks/run-unit-tests-for-php7.yml
libexpat1-dev \
libgdbm-dev \
libgmp-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng12-dev \
libpspell-dev \
libreadline-dev \
libsasl2-dev \
libsnmp-dev \
li... | f8d52619b937f4abf0ef088e2095e69b5cdfb1ea | tasks/run-unit-tests-for-php7.yml | tasks/run-unit-tests-for-php7.yml | YAML |
<|file_sep|>original/msbuild/netfx-4.7.2-ssdt/Dockerfile
<|file_sep|>current/msbuild/netfx-4.7.2-ssdt/Dockerfile
<|file_sep|>updated/msbuild/netfx-4.7.2-ssdt/Dockerfile | # escape=`
FROM microsoft/dotnet-framework:4.7.2-sdk-20180814-windowsservercore-ltsc2016
RUN nuget install Microsoft.Data.Tools.Msbuild -Version 10.0.61804.210 | <|file_sep|>original/msbuild/netfx-4.7.2-ssdt/Dockerfile
<|file_sep|>current/msbuild/netfx-4.7.2-ssdt/Dockerfile
<|file_sep|>updated/msbuild/netfx-4.7.2-ssdt/Dockerfile
# escape=`
FROM microsoft/dotnet-framework:4.7.2-sdk-20180814-windowsservercore-ltsc2016
RUN nuget install Microsoft.Data.Tools.Msbuild -Version 10.... | 7233fc8c510684d57bb65c8a67cb8dc5a6539cd7 | msbuild/netfx-4.7.2-ssdt/Dockerfile | msbuild/netfx-4.7.2-ssdt/Dockerfile | unknown |
<|file_sep|>original/scripts/commandsocket.py
import RPi.GPIO as GPIO
import time
from socketIO_client import SocketIO, LoggingNamespace
socketIO = SocketIO('localhost:3000')
def onCommand(*args):
print(args)
while (True):
socketIO.on("commands", onCommand)
socketIO.wait(seconds=1)
socketIO.off("sequ... | import RPi.GPIO as GPIO
import time
from socketIO_client import SocketIO, LoggingNamespace
socketIO = SocketIO('localhost:3000')
def onCommand(*args):
print(args[0])
while (True):
socketIO.on("commands", onCommand)
socketIO.wait(seconds=1)
socketIO.off("sequencePi") | <|file_sep|>original/scripts/commandsocket.py
import RPi.GPIO as GPIO
import time
from socketIO_client import SocketIO, LoggingNamespace
socketIO = SocketIO('localhost:3000')
def onCommand(*args):
print(args)
while (True):
socketIO.on("commands", onCommand)
socketIO.wait(seconds=1)
socketIO.off("sequ... | 8399253b159b96419bcc36de791804bf86152f4d | scripts/commandsocket.py | scripts/commandsocket.py | Python |
<|file_sep|>Model/Collection/Event.php.diff
original:
'../Cache/events.'.$filter.'.json'
// 'http://api.joind.in/v2/events?format=json&filter='.$filter.'&resultsperpage='.$limit.'&page='.$page
updated:
// '../Cache/events.'.$filter.'.json'
'http://api.joind.... | <?php
namespace Joindin\Model\Collection;
class Event
{
public function retrieve($filter = 'all', $limit = 10, $page = 1)
{
$events = (array)json_decode(
file_get_contents(
// '../Cache/events.'.$filter.'.json'
'http://api.joind.in/v2.1/events?format=json&filt... | <|file_sep|>Model/Collection/Event.php.diff
original:
'../Cache/events.'.$filter.'.json'
// 'http://api.joind.in/v2/events?format=json&filter='.$filter.'&resultsperpage='.$limit.'&page='.$page
updated:
// '../Cache/events.'.$filter.'.json'
'http://api.joind.... | 54f37f6c795f1f10ec20106a565cfd59479a654b | Model/Collection/Event.php | Model/Collection/Event.php | PHP |
<|file_sep|>original/composer.json
],
"require": {
"monolog/monolog": "^1.22",
"yiisoft/yii2": "~2.0.11",
"php": "^7.0",
"mockery/mockery": "0.9.9"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": {
"leinonen\\Yii... | "mockery/mockery": "0.9.9"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": {
"leinonen\\Yii2Monolog\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"leinonen\\Yii2Monolog\\Tests\\": "tests/"
}
},
... | <|file_sep|>original/composer.json
],
"require": {
"monolog/monolog": "^1.22",
"yiisoft/yii2": "~2.0.11",
"php": "^7.0",
"mockery/mockery": "0.9.9"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": {
"leinonen\\Yii... | c18218a22e651d87ce71e08b923438d502aae09f | composer.json | composer.json | JSON |
<|file_sep|>original/LICENSE.md
The MIT License
Copyright (c) Zach Holman, http://zachholman.com
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 MIT License
Copyright (c) Patrick McDaniel, https://patrickmcdaniel.com
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, co... | <|file_sep|>original/LICENSE.md
The MIT License
Copyright (c) Zach Holman, http://zachholman.com
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 ... | 31f5993cb78e57b1e5866c3cc14198df6c7c0e80 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/scheme/aliases.zsh
#!/usr/bin/env bash
# Install EPOL-Scheme over Petite Chez Scheme
alias petite="/usr/bin/petite $ZSH/scheme/EOPL-Scheme/chez-init.scm"
<|file_sep|>current/scheme/aliases.zsh
#!/usr/bin/env bash
# Install EPOL-Scheme over Petite Chez Scheme
alias petite="/usr/bin/petite $ZSH/sch... | #!/usr/bin/env bash
# Install EPOL-Scheme over Chez Scheme
alias scheme="/usr/local/bin/scheme $ZSH/scheme/EOPL-Scheme/chez-init.scm" | <|file_sep|>original/scheme/aliases.zsh
#!/usr/bin/env bash
# Install EPOL-Scheme over Petite Chez Scheme
alias petite="/usr/bin/petite $ZSH/scheme/EOPL-Scheme/chez-init.scm"
<|file_sep|>current/scheme/aliases.zsh
#!/usr/bin/env bash
# Install EPOL-Scheme over Petite Chez Scheme
alias petite="/usr/bin/petite $ZSH/sch... | 22255f1d56ce2d9bbc7975dacadbee7f4ea4dcd8 | scheme/aliases.zsh | scheme/aliases.zsh | Shell |
<|file_sep|>original/lib/ipc-helpers/dump-node.js
#!/usr/bin/env node
let didSend = false;
// Node 0.10 does not have 'beforeExit'
// process.send is synchronous on 0.10 and 0.12
process.on('exit', function sendCovereageOnExit() {
if (!didSend) {
didSend = true;
process.send({coverage: global.__coverage__})... | #!/usr/bin/env node
let didSend = false;
// process.send takes a callback on Node 4+ and should be called in beforeExit
// process.send will schedule more work, so we check to only send once
process.on('beforeExit', function sendCovereageOnBeforeExit() {
if (!didSend) {
didSend = true;
process.send({coverag... | <|file_sep|>original/lib/ipc-helpers/dump-node.js
#!/usr/bin/env node
let didSend = false;
// Node 0.10 does not have 'beforeExit'
// process.send is synchronous on 0.10 and 0.12
process.on('exit', function sendCovereageOnExit() {
if (!didSend) {
didSend = true;
process.send({coverage: global.__coverage__})... | d8dfc6e17fdcd9afa1051cde5febaa90c66ad08c | lib/ipc-helpers/dump-node.js | lib/ipc-helpers/dump-node.js | JavaScript |
<|file_sep|>app/app.component.ts.diff
original:
'<input type="text" class="form-control" placeholder="Your Task" name="task" [(ngModel)]="data">'+
updated:
'<input type="text" class="form-control" (keyup)="add($event)" placeholder="Your Task" name="task" [(ngModel)]="data">'+
<|file_sep|>app/app.compone... | '<ul>'+
'<li *ngFor="let todo of todoList let i=index"> {{todo}} '+
'<a href="#" class="close" aria-hidden="true" (click)="remove(i)">×</a>'+
' </li>'+
'</ul>'+
'</div>'
})
export class AppComponent {
protected data: any = ''
protected todoList : Array<any> = [];
... | <|file_sep|>app/app.component.ts.diff
original:
'<input type="text" class="form-control" placeholder="Your Task" name="task" [(ngModel)]="data">'+
updated:
'<input type="text" class="form-control" (keyup)="add($event)" placeholder="Your Task" name="task" [(ngModel)]="data">'+
<|file_sep|>app/app.compone... | 713b29eb1094c3c09ac210c2abbbfc70a3f37f3d | app/app.component.ts | app/app.component.ts | TypeScript |
<|file_sep|>original/.travis.yml
notifications:
irc:
channels:
- "irc.freenode.net#nupic-hackers"
webhooks: http://issues.numenta.org:8081/travis
before_install:
- "if [ $CC = 'gcc' ]; then export CXX=g++; fi"
- "if [ $CC = 'clang' ]; then export CXX=clang++; fi"
- "if [ $TRAVIS_OS_NAME = 'osx' ];... |
notifications:
irc:
channels:
- "irc.freenode.net#nupic-hackers"
webhooks: http://issues.numenta.org:8081/travis
before_install:
- "if [ $CC = 'gcc' ]; then export CXX=g++; fi"
- "if [ $CC = 'clang' ]; then export CXX=clang++; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew install cma... | <|file_sep|>original/.travis.yml
notifications:
irc:
channels:
- "irc.freenode.net#nupic-hackers"
webhooks: http://issues.numenta.org:8081/travis
before_install:
- "if [ $CC = 'gcc' ]; then export CXX=g++; fi"
- "if [ $CC = 'clang' ]; then export CXX=clang++; fi"
- "if [ $TRAVIS_OS_NAME = 'osx' ];... | b9ca515ff7c7c118f870b9cbac94c529dcfe9d50 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
jamwithfriends-node
===================
An Appbase node example for Jam with Friends
<|file_sep|>current/README.md
jamwithfriends-node
===================
An Appbase node example for Jam with Friends
<|file_sep|>updated/README.md | jamwithfriends-node
===================
An Appbase node example for server side analytics of the [Jam with Friends app](appbaseio.github.io/jam-with-friends). This app logs the keys pressed for each room in the Jam with Friends in realtime.
How to Run
==========
1. npm install
2. npm test
You should see the update... | <|file_sep|>original/README.md
jamwithfriends-node
===================
An Appbase node example for Jam with Friends
<|file_sep|>current/README.md
jamwithfriends-node
===================
An Appbase node example for Jam with Friends
<|file_sep|>updated/README.md
jamwithfriends-node
===================
An Appbase node ... | 6444ed469a64945059c132cfa8db704189f0d475 | README.md | README.md | Markdown |
<|file_sep|>original/lib/rbNFA.rb
require "rbNFA/version"
module RbNFA
class Regexp
def initialize(string)
end
end
end
<|file_sep|>current/lib/rbNFA.rb
require "rbNFA/version"
module RbNFA
class Regexp
def initialize(string)
end
end
end
<|file_sep|>updated/lib/rbNFA.rb | require "rbNFA/version"
module RbNFA
class Regexp
def initialize(string)
end
end
class Lexer
def lex(regexp)
return []
end
end
end | <|file_sep|>original/lib/rbNFA.rb
require "rbNFA/version"
module RbNFA
class Regexp
def initialize(string)
end
end
end
<|file_sep|>current/lib/rbNFA.rb
require "rbNFA/version"
module RbNFA
class Regexp
def initialize(string)
end
end
end
<|file_sep|>updated/lib/rbNFA.rb
require "r... | 6f316e4e99ea1732e96e483956bb0f597de2b95e | lib/rbNFA.rb | lib/rbNFA.rb | Ruby |
<|file_sep|>original/src/Adapter/AdapterInterface.php
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace CalendArt\Adapter;
/*... | *
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace CalendArt\Adapter;
use CalendArt\Calendar;
/**
* Handle the dialog with a... | <|file_sep|>original/src/Adapter/AdapterInterface.php
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace CalendArt\Adapter;
/*... | 356ad6ad3ea9599fbd28ddfe1fcab17e794665de | src/Adapter/AdapterInterface.php | src/Adapter/AdapterInterface.php | PHP |
<|file_sep|>original/src/Acme/Bundle/DemoGridBundle/Resources/views/layout.html.twig
{% extends bap.layout is defined ? bap.layout : 'OroUIBundle:Default:index.html.twig' %}
{% block head %}
{{ parent() }}
{% block stylesheets %}{% endblock %}
{% javascripts
'//ajax.googleapis.com/ajax/libs/jquer... | {% extends bap.layout is defined ? bap.layout : 'OroUIBundle:Default:index.html.twig' %}
{% block head %}
{{ parent() }}
{% block stylesheets %}{% endblock %}
{% javascripts
'@OroUIBundle/Resources/public/lib/underscore.js'
'@OroUIBundle/Resources/public/lib/backbone.js'
'@OroUIBu... | <|file_sep|>original/src/Acme/Bundle/DemoGridBundle/Resources/views/layout.html.twig
{% extends bap.layout is defined ? bap.layout : 'OroUIBundle:Default:index.html.twig' %}
{% block head %}
{{ parent() }}
{% block stylesheets %}{% endblock %}
{% javascripts
'//ajax.googleapis.com/ajax/libs/jquer... | b2f474a06c85c79ef36947c06c78dcc602a9e713 | src/Acme/Bundle/DemoGridBundle/Resources/views/layout.html.twig | src/Acme/Bundle/DemoGridBundle/Resources/views/layout.html.twig | Twig |
<|file_sep|>original/base/vars/BaseVars.sh
}
isPrivate(){
if [[ $@ == *ee-* ]]; then
echo true
fi
}
returnBranch(){
case $@ in
*ee-6.1.x*) echo ee-6.1.x;;
*ee-6.2.x*) echo ee-6.2.x;;
*ee-6.2.10*) echo ee-6.2.10;;
*ee-7.0.x*) echo ee-7.0.x;;
*6.1.x*) echo 6.1.x;;
*6.2.x*) echo 6.2.x;;
... | }
isPrivate(){
if [[ $@ == *ee-* ]]; then
echo true
fi
}
returnBranch(){
case $@ in
*ee-6.1.30*) echo ee-6.1.30;;
*ee-6.1.x*) echo ee-6.1.x;;
*ee-6.2.x*) echo ee-6.2.x;;
*ee-6.2.10*) echo ee-6.2.10;;
*ee-7.0.x*) echo ee-7.0.x;;
*6.1.x*) echo 6.1.x;;
*6.2.x*) echo 6.2.x;;
*master*)... | <|file_sep|>original/base/vars/BaseVars.sh
}
isPrivate(){
if [[ $@ == *ee-* ]]; then
echo true
fi
}
returnBranch(){
case $@ in
*ee-6.1.x*) echo ee-6.1.x;;
*ee-6.2.x*) echo ee-6.2.x;;
*ee-6.2.10*) echo ee-6.2.10;;
*ee-7.0.x*) echo ee-7.0.x;;
*6.1.x*) echo 6.1.x;;
*6.2.x*) echo 6.2.x;;
... | eb72eb1a41e8f8212e5b840e8311f9671bc2e6b0 | base/vars/BaseVars.sh | base/vars/BaseVars.sh | Shell |
<|file_sep|>original/.travis.yml
language: python
sudo: false
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
matrix:
allow_failures:
- python: "nightly"
env:
- INJECTOR_VERSION=">=0.10,<0.11" FLASK_VERSION="==0.11"
- INJECTOR_VERSION=">=0.11" FLASK_VERSION="==0.11"
install:
- pip install flak... | language: python
sudo: false
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
matrix:
allow_failures:
- python: "nightly"
env:
- INJECTOR_VERSION=">=0.10,<0.11" FLASK_VERSION="==0.11"
- INJECTOR_VERSION=">=0.11" FLASK_VERSION="==0.11"
- INJECTOR_VERSION=">=0.10,<0.11" FLASK_VERSION=">0.11"
- ... | <|file_sep|>original/.travis.yml
language: python
sudo: false
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
matrix:
allow_failures:
- python: "nightly"
env:
- INJECTOR_VERSION=">=0.10,<0.11" FLASK_VERSION="==0.11"
- INJECTOR_VERSION=">=0.11" FLASK_VERSION="==0.11"
install:
- pip install flak... | e56567ba87e149911b56ed82f67826a08494eece | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change
on_failure: change
before_script:
- npm install
script:
<|file... | language: node_js
node_js:
- "5.6"
- "5.5"
- "5.4"
- "5.3"
- "5.2"
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change
on_failure: change | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "5.1"
- "5.0"
- "4.2"
- "0.12"
- "0.11"
- "0.10"
notifications:
email:
recipients:
- ci@verylastroom.com
on_success: change
on_failure: change
before_script:
- npm install
script:
<|file... | 9681788625f693c1f26eef13fca3b916baab1984 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/sa/safe-access.yaml.diff
original:
hash: 6869708d3102ededf80055fee28ec5e03555aa89f3986f184da722a7ceeb1566
updated:
hash: 23cfe12c64aa2511b6030e63bbb165bcf3cdb5271454014438caf1aa2cd74c28
<|file_sep|>packages/sa/safe-access.yaml.diff
original:
base: ! '>=4.6 && <4.10'
updated:
base: ! '>=4.8 && <... | changelog: ''
basic-deps:
base: ! '>=4.8 && <4.10'
mtl: ! '>=2.2.1'
transformers: ! '>=0.3.0.0'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.2.1.0'
- '0.2.1.1'
- '0.2.1.2'
- '0.3.0.0'
- '0.3.1.0'
- '0.3.2.0'
author: Thomas Feron
latest: '0.3.2.0'
description-type: haddock
description: This is a small capability-bas... | <|file_sep|>packages/sa/safe-access.yaml.diff
original:
hash: 6869708d3102ededf80055fee28ec5e03555aa89f3986f184da722a7ceeb1566
updated:
hash: 23cfe12c64aa2511b6030e63bbb165bcf3cdb5271454014438caf1aa2cd74c28
<|file_sep|>packages/sa/safe-access.yaml.diff
original:
base: ! '>=4.6 && <4.10'
updated:
base: ! '>=4.8 && <... | ecdb7a62a4593a4f5d4841522d274b77a9105cb7 | packages/sa/safe-access.yaml | packages/sa/safe-access.yaml | YAML |
<|file_sep|>.travis.yml.diff
original:
# - cmake
updated:
<|file_sep|>original/.travis.yml
depth: false # prevent git describe failure when executing the appbase version.cmake.in
cache: ccache
os: osx
osx_image: xcode10.2
addons:
homebrew:
update: true
packages:
# - cmake
- graphviz
... | depth: false # prevent git describe failure when executing the appbase version.cmake.in
cache: ccache
os: osx
osx_image: xcode10.2
addons:
homebrew:
update: true
packages:
- graphviz
- libtool
- gmp
- llvm@4
- pkgconfig
- python
- python@2
- doxygen
- li... | <|file_sep|>.travis.yml.diff
original:
# - cmake
updated:
<|file_sep|>original/.travis.yml
depth: false # prevent git describe failure when executing the appbase version.cmake.in
cache: ccache
os: osx
osx_image: xcode10.2
addons:
homebrew:
update: true
packages:
# - cmake
- graphviz
... | c654f6de3a9ff5a50558b930539b257bfa673f95 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/unicorn.rb
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
pid 'unicorn.pid'
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
Se... | worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
pid 'unicorn.pid'
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
Sequel::Model.db.disconnect if defined?(S... | <|file_sep|>original/config/unicorn.rb
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
pid 'unicorn.pid'
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
Se... | 2fbf8d42640400dc0a6ed428c15ba21bce819086 | config/unicorn.rb | config/unicorn.rb | Ruby |
<|file_sep|>original/zsh/config.zsh
export EDITOR='vim'
export PATH="$HOME/bin:$HOME/.bin:$/HOME/.vim/bin:/usr/local/homebrew/bin:/usr/local/bin:/usr/local/git/libexec/git-core:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
<|file_sep|>curren... | export EDITOR='vim'
export PATH="$HOME/bin:$HOME/.bin:$/HOME/.vim/bin:/usr/local/homebrew/bin:/usr/local/bin:/usr/local/git/libexec/git-core:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
export export PYTHONPATH="/usr/local/lib/python2.7/sit... | <|file_sep|>original/zsh/config.zsh
export EDITOR='vim'
export PATH="$HOME/bin:$HOME/.bin:$/HOME/.vim/bin:/usr/local/homebrew/bin:/usr/local/bin:/usr/local/git/libexec/git-core:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
<|file_sep|>curren... | 313c225981aaee94c446c847c3bb51081d7868f0 | zsh/config.zsh | zsh/config.zsh | Shell |
<|file_sep|>original/.github/issue_template.md
<!-- PLEASE READ BEFORE DELETING
Bugs or Issues? Due to the high number of false positive issues we receive,
please do not create a GitHub issue until you have discussed and verified
with community support at:
https://discourse.drone.io
-->
<|file_sep|>current/.gith... | <!-- PLEASE READ BEFORE DELETING
Bugs or Issues? Due to the high number of false positive issues we receive,
please do not create a GitHub issue until you have discussed and verified
with community support at:
https://discourse.drone.io/
--> | <|file_sep|>original/.github/issue_template.md
<!-- PLEASE READ BEFORE DELETING
Bugs or Issues? Due to the high number of false positive issues we receive,
please do not create a GitHub issue until you have discussed and verified
with community support at:
https://discourse.drone.io
-->
<|file_sep|>current/.gith... | 769ac8dd7846aeb684b664bc82c0384b6e4b146c | .github/issue_template.md | .github/issue_template.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
updated:
- bash -c 'if [ "$(rustup default | grep stable)" ]; then
rustup component add rustfmt;
fi'
<|file_sep|>original/.travis.yml
- master
env:
global:
- CLIPPY_RUST_VERSION=1.32.0
before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RU... | before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RUST_VERSION" ]]; then
rustup component add clippy;
fi'
- bash -c 'if [ "$(rustup default | grep stable)" ]; then
rustup component add rustfmt;
fi'
script:
- cargo test
- bash -c 'if [ "$(rustup default | grep stable)" ]; th... | <|file_sep|>.travis.yml.diff
original:
updated:
- bash -c 'if [ "$(rustup default | grep stable)" ]; then
rustup component add rustfmt;
fi'
<|file_sep|>original/.travis.yml
- master
env:
global:
- CLIPPY_RUST_VERSION=1.32.0
before_script:
- bash -c 'if [[ "$TRAVIS_RUST_VERSION" == "$CLIPPY_RU... | 71a9567412220c2d66ad95e7285d48d673d747fd | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/fi/metacity/klmobi/MHApp.java.diff
original:
import com.googlecode.androidannotations.annotations.EApplication;
updated:
import java.util.ArrayList;
import java.util.List;
<|file_sep|>src/fi/metacity/klmobi/MHApp.java.diff
original:
updated:
import com.googlecode.androidannotations.annotations.EApplic... | mStartAddress = address;
}
public Address getEndAddress() {
return mEndAddress;
}
public void setEndAddress(Address address) {
mEndAddress = address;
}
public List<Route> getRoutes() {
return mRoutes;
}
public String getDetailsXmlRequest() {
return mDetailsXmlRequest;
}
public void setDeta... | <|file_sep|>src/fi/metacity/klmobi/MHApp.java.diff
original:
import com.googlecode.androidannotations.annotations.EApplication;
updated:
import java.util.ArrayList;
import java.util.List;
<|file_sep|>src/fi/metacity/klmobi/MHApp.java.diff
original:
updated:
import com.googlecode.androidannotations.annotations.EApplic... | 93db81658353ffa9f90bdce871ecd6782904b3ef | src/fi/metacity/klmobi/MHApp.java | src/fi/metacity/klmobi/MHApp.java | Java |
<|file_sep|>app/controllers/users_controller.rb.diff
original:
before_action :set_date_format, only: [:create, :update]
updated:
<|file_sep|>app/controllers/users_controller.rb.diff
original:
updated:
@user.birth_date = Date.strptime(params["#{user_type}"]['birth_date'], '%m/%d/%Y').to_date
<|file_sep|>app/contro... | end
end
def show
@user = User.find(params[:id])
end
def user_params
params.require(user_type.to_sym).permit(params["#{user_type}"].symbolize_keys.keys)
end
def user_type
if params['user']
'user'
elsif params['lease_holder']
'lease_holder'
end
end
private :user_type
end | <|file_sep|>app/controllers/users_controller.rb.diff
original:
before_action :set_date_format, only: [:create, :update]
updated:
<|file_sep|>app/controllers/users_controller.rb.diff
original:
updated:
@user.birth_date = Date.strptime(params["#{user_type}"]['birth_date'], '%m/%d/%Y').to_date
<|file_sep|>app/contro... | 692c668be814b4f8ed89520ed5776b0dbddca901 | app/controllers/users_controller.rb | app/controllers/users_controller.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
- "0.10"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
script: npm run-script coveralls
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.12"
- "iojs"
script: npm run-script coveralls
<|file_sep|>updated/... | language: node_js
node_js:
- "0.12"
- "4"
- "5"
script: npm run-script coveralls | <|file_sep|>.travis.yml.diff
original:
- "0.10"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
script: npm run-script coveralls
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.12"
- "iojs"
script: npm run-script coveralls
<|file_sep|>updated/... | fb85b42e546c990f1cf0df4246c5175be9d06146 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/cljs/mathom/toolbar.cljs.diff
original:
(swap! tool #(assoc @tool :bar tb)) ; To get access to generated node
))
updated:
(swap! tool #(assoc @tool :bar tb)))) ; To get access to generated node
<|file_sep|>original/src/cljs/mathom/toolbar.cljs
</div>")
(defn setup
[]
(let [body (aget (... |
(defn handle-event
[eib])
(defn attach-listener
[]
(.addEventListener (:bar @tool)
"click"
#(handle-event (aget (.-target %) "id"))))
(defn d-to-s
"Returns stringified version
of given map in HTML/XML
attribute style"
[d]
(clojure.string/join " "
... | <|file_sep|>src/cljs/mathom/toolbar.cljs.diff
original:
(swap! tool #(assoc @tool :bar tb)) ; To get access to generated node
))
updated:
(swap! tool #(assoc @tool :bar tb)))) ; To get access to generated node
<|file_sep|>original/src/cljs/mathom/toolbar.cljs
</div>")
(defn setup
[]
(let [body (aget (... | 654e6aca6c7d32c6af1e54d8778364c80cf88a18 | src/cljs/mathom/toolbar.cljs | src/cljs/mathom/toolbar.cljs | Clojure |
<|file_sep|>scss/helpers/_functions.scss.diff
original:
updated:
<|file_sep|>original/scss/helpers/_functions.scss
$rem-size: ($font-size / $base-font-size) * 1rem;
@return $rem-size;
}
//
// Calculates proper line-height given a
// font-size to maintain vertical rhythm.
//
@function calculate-line-height($font... | @return $rem-size;
}
//
// Calculates proper line-height given a
// font-size to maintain vertical rhythm.
//
@function calculate-line-height($font-size) {
$line-height-size: ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
@return $line-height-size;
}
//
// Strips the units from a ... | <|file_sep|>scss/helpers/_functions.scss.diff
original:
updated:
<|file_sep|>original/scss/helpers/_functions.scss
$rem-size: ($font-size / $base-font-size) * 1rem;
@return $rem-size;
}
//
// Calculates proper line-height given a
// font-size to maintain vertical rhythm.
//
@function calculate-line-height($font... | 7b48d891e9ab8d333a688178686c220ff5d19aa6 | scss/helpers/_functions.scss | scss/helpers/_functions.scss | SCSS |
<|file_sep|>original/README.md
## System Sync Toolkit
This script is use to sync web content or directory and data such as Server folder and MySQL Database
**File**
* www-sync (document root sync)
* db-sync (db sycn) - will be updated later
**Requirement**
* ssh
* rsync
* root acces (sudo)
**How to use**
... | This script is use to sync web content or directory and data such as Server folder and MySQL Database
**File**
* www-sync (document root sync)
* db-sync (db sycn) - will be updated later
**Requirement**
* ssh
* rsync
* root acces (sudo)
**How to use**
1. sudo su
2. git clone https://gist.github.com/942062... | <|file_sep|>original/README.md
## System Sync Toolkit
This script is use to sync web content or directory and data such as Server folder and MySQL Database
**File**
* www-sync (document root sync)
* db-sync (db sycn) - will be updated later
**Requirement**
* ssh
* rsync
* root acces (sudo)
**How to use**
... | 400d62251f4ef900e4b1f9857bbb6ded154a3a05 | README.md | README.md | Markdown |
<|file_sep|>original/core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java
<|file_sep|>current/core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java
<|file_sep|>updated/core/binding/proton/src/main/java/org/iotbr... | package org.iotbricks.core.binding.proton;
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
import org.apache.qpid.proton.amqp.messaging.ApplicationProperties;
import org.apache.qpid.proton.message.Message;
import or... | <|file_sep|>original/core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java
<|file_sep|>current/core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java
<|file_sep|>updated/core/binding/proton/src/main/java/org/iotbr... | 73f92223d900d7becf9ece1b3fb29e7d30c65280 | core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java | core/binding/proton/src/main/java/org/iotbricks/core/binding/proton/ProtonErrorMessageResponseHandler.java | Java |
<|file_sep|>.github/workflows/maven.yml.diff
original:
updated:
- name: Get OpenJDK 11
run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jre_x64_linux_hotspot_11.0.6_10.tar.gz
<|file_sep|>original/.github/workflows/maven.yml
on:
push:
branches:
... | - master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get OpenJDK 11
run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jre_x64_linux_hotspot_11.0.6_10.tar.gz
- name: Set up JDK 11
uses:... | <|file_sep|>.github/workflows/maven.yml.diff
original:
updated:
- name: Get OpenJDK 11
run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jre_x64_linux_hotspot_11.0.6_10.tar.gz
<|file_sep|>original/.github/workflows/maven.yml
on:
push:
branches:
... | 2f27bfb6f171efc72ff27fa285baa5e8fa9d20e7 | .github/workflows/maven.yml | .github/workflows/maven.yml | YAML |
<|file_sep|>original/_posts/2016-06-26-xctf-finals.markdown
<|file_sep|>current/_posts/2016-06-26-xctf-finals.markdown
<|file_sep|>updated/_posts/2016-06-26-xctf-finals.markdown | ---
layout: post
title: "X-CTF 2016 Finals by NUS Greyhats"
description: "Write up about X-CTF 2016 Finals"
modified:
categories:
excerpt:
author: Xue Hui
tags: [X-CTF,CTF]
image:
feature:
date: 2016-06-26
comments: true
share: true
---
The Cross-Varsity Capture The Flag (X-CTF) competition held on 18 June 2016 wa... | <|file_sep|>original/_posts/2016-06-26-xctf-finals.markdown
<|file_sep|>current/_posts/2016-06-26-xctf-finals.markdown
<|file_sep|>updated/_posts/2016-06-26-xctf-finals.markdown
---
layout: post
title: "X-CTF 2016 Finals by NUS Greyhats"
description: "Write up about X-CTF 2016 Finals"
modified:
categories:
excerpt:
... | b2073b089d2060574e86b4b7cafea3283aa45052 | _posts/2016-06-26-xctf-finals.markdown | _posts/2016-06-26-xctf-finals.markdown | Markdown |
<|file_sep|>content/docs/for-developers/sending-email/django.md.diff
original:
updated:
<|file_sep|>content/docs/for-developers/sending-email/django.md.diff
original:
<call-out>
updated:
<|file_sep|>original/content/docs/for-developers/sending-email/django.md
There is more detailed information about sending email o... | ---
There is more detailed information about sending email over SMTP with Django on the [Django project website](https://docs.djangoproject.com/en/dev/topics/email/).
First start by adding the following to **settings.py:**
``` python
EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'sendgrid_username'
EMAIL_HOST_... | <|file_sep|>content/docs/for-developers/sending-email/django.md.diff
original:
updated:
<|file_sep|>content/docs/for-developers/sending-email/django.md.diff
original:
<call-out>
updated:
<|file_sep|>original/content/docs/for-developers/sending-email/django.md
There is more detailed information about sending email o... | 8ffb541d92d7d7f78fdb40bcefd2e1071268fd1e | content/docs/for-developers/sending-email/django.md | content/docs/for-developers/sending-email/django.md | Markdown |
<|file_sep|>original/sql/speakeasy/unique_recipients.sql
insert into speakeasy_petition_metrics (activity, campaign_id , npeople) select 'unique_recipient', cp.id, count(Distinct contact_id) from civicrm_mailing m join civicrm_mailing_recipients r on r.mailing_id=m.id and m.name not like "%-Reminder-%" join civicrm_cam... | INSERT INTO speakeasy_petition_metrics (activity, campaign_id, npeople) SELECT
'unique_recipient', cp.id, count(DISTINCT contact_id)
FROM civicrm_mailing m
JOIN civicrm_mailing_recipients r ON r.mailing_id = m.id AND m.name NOT LIKE '%-Reminder-%'
JOIN civicrm_campaign cp ON cp.id = m.campaign_id
GROUP BY campaig... | <|file_sep|>original/sql/speakeasy/unique_recipients.sql
insert into speakeasy_petition_metrics (activity, campaign_id , npeople) select 'unique_recipient', cp.id, count(Distinct contact_id) from civicrm_mailing m join civicrm_mailing_recipients r on r.mailing_id=m.id and m.name not like "%-Reminder-%" join civicrm_cam... | 9187db6f32c96065e3e9f5fcea198f92bec8c78b | sql/speakeasy/unique_recipients.sql | sql/speakeasy/unique_recipients.sql | SQL |
<|file_sep|>original/spec/unit/stash_spec.rb
require 'spec_helper'
describe Stash do
pending "add some examples to (or delete) #{__FILE__}"
end
<|file_sep|>current/spec/unit/stash_spec.rb
require 'spec_helper'
describe Stash do
pending "add some examples to (or delete) #{__FILE__}"
end
<|file_sep|>updated/spec/un... | require 'spec_helper'
describe Stash do
before :each do
load "#{Rails.root}/db/seeds.rb"
# user = FactoryGirl.create(:user)
# user.add_role :admin
# sign_in_user(user)
end
it "should return all stashes raw" do
stashes = Stash.all
stashes.should be_a Array
stashes.count.should eq 2
... | <|file_sep|>original/spec/unit/stash_spec.rb
require 'spec_helper'
describe Stash do
pending "add some examples to (or delete) #{__FILE__}"
end
<|file_sep|>current/spec/unit/stash_spec.rb
require 'spec_helper'
describe Stash do
pending "add some examples to (or delete) #{__FILE__}"
end
<|file_sep|>updated/spec/un... | 866e34c0bd076b0c4cced6fa55ec673d80c70b17 | spec/unit/stash_spec.rb | spec/unit/stash_spec.rb | Ruby |
<|file_sep|>original/ModuleInfo.txt
DepModule:
BuildTarget: build-for-llvm-top
<|file_sep|>current/ModuleInfo.txt
DepModule:
BuildTarget: build-for-llvm-top
<|file_sep|>updated/ModuleInfo.txt | DepModule:
ConfigCmd: ./configure --prefix=@INSTALL_PREFIX@ --with-llvmgccdir=@LLVM_TOP@/install
ConfigFile: ./config.status
BuildCmd: make build-for-llvm-top LLVM_TOP=@LLVM_TOP@ | <|file_sep|>original/ModuleInfo.txt
DepModule:
BuildTarget: build-for-llvm-top
<|file_sep|>current/ModuleInfo.txt
DepModule:
BuildTarget: build-for-llvm-top
<|file_sep|>updated/ModuleInfo.txt
DepModule:
ConfigCmd: ./configure --prefix=@INSTALL_PREFIX@ --with-llvmgccdir=@LLVM_TOP@/install
ConfigFile: ./config.status
Bui... | 4dd0ae68cd735be096b47f3e29cb02c58b4241f5 | ModuleInfo.txt | ModuleInfo.txt | Text |
<|file_sep|>original/script.sh
#!/bin/bash
# This file is executed by NSTask *task in LifelineView.m in LifelineWidget
# Three features other than opening the session: Enables bash alias expansion, sets bash alias source to .bashrc on server, and then sends an sms using the bash alias
ssh Lifeline@REDACTED "bash -s" <... | #!/bin/bash
# This file is executed by NSTask *task in LifelineView.m in LifelineWidget
# Three features other than opening the session: Enables bash alias expansion, sets bash alias source to .bashrc on server, and then sends an sms using the bash alias
ssh Lifeline@REDACTED "bash -s" << EOF
shopt -s expand_aliases;... | <|file_sep|>original/script.sh
#!/bin/bash
# This file is executed by NSTask *task in LifelineView.m in LifelineWidget
# Three features other than opening the session: Enables bash alias expansion, sets bash alias source to .bashrc on server, and then sends an sms using the bash alias
ssh Lifeline@REDACTED "bash -s" <... | 6c8e91e585999e47681de670048eae9cf25f5228 | script.sh | script.sh | Shell |
<|file_sep|>original/.kitchen.yml
name: chef_zero
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6.8
- name: centos-7.3
- name: debian-7.11
- name: debian-8.6
- name: fedora-25
- name: freebsd-9.3
- name: freebsd-10.3
- name: opensuse-leap-42.2
- name: ubuntu-14.... | name: chef_zero
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6.8
- name: centos-7.3
- name: debian-7.11
- name: debian-8.7
- name: fedora-25
- name: freebsd-9.3
- name: freebsd-10.3
- name: opensuse-leap-42.2
- name: ubuntu-14.04
- name: ubuntu-16.04
suites:... | <|file_sep|>original/.kitchen.yml
name: chef_zero
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6.8
- name: centos-7.3
- name: debian-7.11
- name: debian-8.6
- name: fedora-25
- name: freebsd-9.3
- name: freebsd-10.3
- name: opensuse-leap-42.2
- name: ubuntu-14.... | 9a2e35d3994896303a1ddedbf3d9f9c2aeab9001 | .kitchen.yml | .kitchen.yml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
install: pip install -r requirements.txt
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- nose... | language: python
python:
- "3.6"
install: python setup.py develop
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- nosetests --with-xunit --xunit-file=unit.xml
... | <|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
install: pip install -r requirements.txt
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- nose... | c5cb6ad58a0759cb7c7521c255954b29830115d2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.dir-locals.el
<|file_sep|>current/.dir-locals.el
<|file_sep|>updated/.dir-locals.el | ;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((cider-repl-mode
(cider-refresh-before-fn . "comic-reader.system/stop"))
(clojure-mode
(cider-refresh-before-fn . "comic-reader.system/stop"))) | <|file_sep|>original/.dir-locals.el
<|file_sep|>current/.dir-locals.el
<|file_sep|>updated/.dir-locals.el
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((cider-repl-mode
(cider-refresh-before-fn . "comic-reader.system/stop"))
(clojure-mode
(cider-refresh-before-... | 03d42b0c5a81990a4444228e0e1fd33e0f252129 | .dir-locals.el | .dir-locals.el | Emacs Lisp |
<|file_sep|>original/lib/tavern.rb
require "tavern/version"
module Tavern
# Your code goes here...
end
<|file_sep|>current/lib/tavern.rb
require "tavern/version"
module Tavern
# Your code goes here...
end
<|file_sep|>updated/lib/tavern.rb | require "tavern/version"
module Tavern
class Task
attr_accessor :status, :priority, :text, :tags
STATUS = [:todo, :done]
PRIORITY = [:low, :normal, :high]
self.class_eval do
STATUS.each do |s|
define_method("#{s}?") { self.status == s }
define_method("#{s}!") { self.status =... | <|file_sep|>original/lib/tavern.rb
require "tavern/version"
module Tavern
# Your code goes here...
end
<|file_sep|>current/lib/tavern.rb
require "tavern/version"
module Tavern
# Your code goes here...
end
<|file_sep|>updated/lib/tavern.rb
require "tavern/version"
module Tavern
class Task
attr_accessor :... | c9bf605555972e5d99d20c362558d9dea5c75748 | lib/tavern.rb | lib/tavern.rb | Ruby |
<|file_sep|>original/packages/dr/dropbox.yaml
<|file_sep|>current/packages/dr/dropbox.yaml
<|file_sep|>updated/packages/dr/dropbox.yaml | homepage: https://github.com/riskbook/dropbox#readme
changelog-type: markdown
hash: b3c17bfeebab982370b54d7168f5668e02a73cb27b4c766d54a0a628db026413
test-bench-deps:
base: '>=4.7 && <5'
servant-client: -any
hspec: -any
text: -any
servant-auth-client: -any
http-api-data: -any
hspec-core: -any
servant-cli... | <|file_sep|>original/packages/dr/dropbox.yaml
<|file_sep|>current/packages/dr/dropbox.yaml
<|file_sep|>updated/packages/dr/dropbox.yaml
homepage: https://github.com/riskbook/dropbox#readme
changelog-type: markdown
hash: b3c17bfeebab982370b54d7168f5668e02a73cb27b4c766d54a0a628db026413
test-bench-deps:
base: '>=4.7 &... | 8275b03ff4a45d87d5af7eac6f4fc27282697565 | packages/dr/dropbox.yaml | packages/dr/dropbox.yaml | YAML |
<|file_sep|>original/.travis.yml
- os: linux
dist: trusty
python: '3.6'
- os: linux
dist: xenial
sudo: true
python: '3.7'
- os: linux
dist: trusty
python: 'nightly'
- os: linux
dist: trusty
python: 'pypy'
- os: linux
dist: trusty
python: 'pypy3'
install:
- pip ins... | - os: linux
dist: trusty
python: '3.6'
- os: linux
dist: xenial
sudo: true
python: '3.7'
- os: linux
dist: trusty
python: 'nightly'
- os: linux
dist: trusty
python: 'pypy'
- os: linux
dist: trusty
python: 'pypy3'
install:
- pip install -r requirements.txt -r devel... | <|file_sep|>original/.travis.yml
- os: linux
dist: trusty
python: '3.6'
- os: linux
dist: xenial
sudo: true
python: '3.7'
- os: linux
dist: trusty
python: 'nightly'
- os: linux
dist: trusty
python: 'pypy'
- os: linux
dist: trusty
python: 'pypy3'
install:
- pip ins... | 450943ab97d4a4ae48d0b71e119eae23a2686a61 | .travis.yml | .travis.yml | YAML |
<|file_sep|>main.go.diff
original:
router.Handle("/feeds", cors.Default().Handler(getFeedsHandler{dao})).
updated:
corsHandler := cors.New(cors.Options{
AllowedHeaders:{"Location"},
})
router.Handle("/feeds", corsHandler(getFeedsHandler{dao})).
<|file_sep|>main.go.diff
original:
getHandler := cors.Default().Hand... | func Run() {
dao := datastoreFeedsDao{}
router := mux.NewRouter()
corsHandler := cors.New(cors.Options{
AllowedHeaders:{"Location"},
})
router.Handle("/feeds", corsHandler(getFeedsHandler{dao})).
Methods(http.MethodGet)
getHandler := corsHandler(getFeedHandler{dao})
router.Handle("/feeds/{feedId}", getHand... | <|file_sep|>main.go.diff
original:
router.Handle("/feeds", cors.Default().Handler(getFeedsHandler{dao})).
updated:
corsHandler := cors.New(cors.Options{
AllowedHeaders:{"Location"},
})
router.Handle("/feeds", corsHandler(getFeedsHandler{dao})).
<|file_sep|>main.go.diff
original:
getHandler := cors.Default().Hand... | 012cadf304c98bb0658c67f6a71187ab47ad6e3e | main.go | main.go | Go |
<|file_sep|>original/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java
<|file_sep|>current/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java
<|file_sep|>updated/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java | package org.apache.commons.vfs2.provider;
import junit.framework.Assert;
import org.junit.Test;
public class UriParserTestCase
{
@Test
public void testColonInFileName()
{
Assert.assertEquals(null, UriParser.extractScheme("some/path/some:file"));
}
@Test
public void testNormalScheme(... | <|file_sep|>original/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java
<|file_sep|>current/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java
<|file_sep|>updated/core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java
package org.apache.commons.vfs2.... | b0661981908c5b9e9aa0115658d0205f79054bc5 | core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java | core/src/test/java/org/apache/commons/vfs2/provider/UriParserTestCase.java | Java |
<|file_sep|>original/renovate.json
"config:base"
],
"automerge": true,
"automergeType": "branch",
"major": {
"automerge": false
},
"packageRules": [
{
"automerge": false,
"groupName": "FilePond",
"packagePatterns": ["filepond"]
},
{
"automerge": false,
"grou... | "config:base"
],
"automerge": true,
"automergeType": "branch",
"major": {
"automerge": false
},
"packageRules": [
{
"automerge": false,
"groupName": "Apollo Server",
"packagePatterns": ["apollo-server"]
},
{
"automerge": false,
"groupName": "FilePond",
... | <|file_sep|>original/renovate.json
"config:base"
],
"automerge": true,
"automergeType": "branch",
"major": {
"automerge": false
},
"packageRules": [
{
"automerge": false,
"groupName": "FilePond",
"packagePatterns": ["filepond"]
},
{
"automerge": false,
"grou... | 986c20ccd7f6a2cabf1d2d4586131f403a7e5eac | renovate.json | renovate.json | JSON |
<|file_sep|>original/package.json
},
"main": "Client",
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"async": "~0.2.8",
"bower-config": "~0.5.0",
"graceful-fs": "~2.0.0",
"lru-cache": "~2.3.0",
"request": "~2.27.0",
"request-replay": "~0.2.0",
"rimraf": "~2.2.0",
"mkd... | },
"main": "Client",
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"async": "~0.2.8",
"bower-config": "~0.5.0",
"graceful-fs": "~2.0.0",
"lru-cache": "~2.3.0",
"request": "~2.51.0",
"request-replay": "~0.2.0",
"rimraf": "~2.2.0",
"mkdirp": "~0.3.5"
},
"devDependen... | <|file_sep|>original/package.json
},
"main": "Client",
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"async": "~0.2.8",
"bower-config": "~0.5.0",
"graceful-fs": "~2.0.0",
"lru-cache": "~2.3.0",
"request": "~2.27.0",
"request-replay": "~0.2.0",
"rimraf": "~2.2.0",
"mkd... | 1f7a0d224890644f436dd68975b6a0b4529b7252 | package.json | package.json | JSON |
<|file_sep|>original/roles/zuul/files/jobs/lore.yaml
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -yqq curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
... | - job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -qq nodejs npm
./tests/markdownlint-cli-test.sh
./tests/textlint-test.sh
./tests/shellcheck-test.sh
./tests/signed-off-by... | <|file_sep|>original/roles/zuul/files/jobs/lore.yaml
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -yqq curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
... | 277928ee14de4ec34730356c695b0a5a0559507e | roles/zuul/files/jobs/lore.yaml | roles/zuul/files/jobs/lore.yaml | YAML |
<|file_sep|>original/bin/spaceTurtleCli.sh
#! /bin/sh
java -jar -Dconfig.file=conf/spaceturtle.conf build/SpaceTurtleCli.jar
<|file_sep|>current/bin/spaceTurtleCli.sh
#! /bin/sh
java -jar -Dconfig.file=conf/spaceturtle.conf build/SpaceTurtleCli.jar
<|file_sep|>updated/bin/spaceTurtleCli.sh | #! /bin/sh
java -jar -Dconfig.file=conf/spaceturtle.conf -Djava.security.auth.login.config=conf/jaas.conf -Djava.security.krb5.conf=conf/krb5.conf build/SpaceTurtleCli.jar | <|file_sep|>original/bin/spaceTurtleCli.sh
#! /bin/sh
java -jar -Dconfig.file=conf/spaceturtle.conf build/SpaceTurtleCli.jar
<|file_sep|>current/bin/spaceTurtleCli.sh
#! /bin/sh
java -jar -Dconfig.file=conf/spaceturtle.conf build/SpaceTurtleCli.jar
<|file_sep|>updated/bin/spaceTurtleCli.sh
#! /bin/sh
java -jar -Dcon... | e7fc0aa4bf253ae6afd14368bf17b7ca6c435724 | bin/spaceTurtleCli.sh | bin/spaceTurtleCli.sh | Shell |
<|file_sep|>core/observables/mac_address.py.diff
original:
regex = r'(?P<search>(([0-9A-Fa-f]{1,2}[.:-]?){5,7}([0-9A-Fa-f]{1,2})))'
updated:
regex = r'(?P<search>(([0-9A-Fa-f]{1,2}[.:-]){5,7}([0-9A-Fa-f]{1,2})))'
<|file_sep|>original/core/observables/mac_address.py
from core.observables import Observable
cla... |
from core.observables import Observable
class MacAddress(Observable):
regex = r'(?P<search>(([0-9A-Fa-f]{1,2}[.:-]){5,7}([0-9A-Fa-f]{1,2})))'
exclude_fields = Observable.exclude_fields
DISPLAY_FIELDS = Observable.DISPLAY_FIELDS
@classmethod
def is_valid(cls, match):
value = match.group... | <|file_sep|>core/observables/mac_address.py.diff
original:
regex = r'(?P<search>(([0-9A-Fa-f]{1,2}[.:-]?){5,7}([0-9A-Fa-f]{1,2})))'
updated:
regex = r'(?P<search>(([0-9A-Fa-f]{1,2}[.:-]){5,7}([0-9A-Fa-f]{1,2})))'
<|file_sep|>original/core/observables/mac_address.py
from core.observables import Observable
cla... | 169dda227f85f77ac52a4295e8fb7acd1b3184f5 | core/observables/mac_address.py | core/observables/mac_address.py | Python |
<|file_sep|>original/tests/test_float_macros.c
/* Use the unit test allocators */
#define UNIT_TESTING 1
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
/* A test case that does check if float is equal. */
static void float_test_success(void **state) {
assert_float_equal(0.5f, 1.f... |
/* Use the unit test allocators */
#define UNIT_TESTING 1
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
/* A test case that does check if float is equal. */
static void float_test_success(void **state)
{
(void)state; /* unused */
assert_float_equal(0.5f, 1.f / 2.f, 0.000001... | <|file_sep|>original/tests/test_float_macros.c
/* Use the unit test allocators */
#define UNIT_TESTING 1
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
/* A test case that does check if float is equal. */
static void float_test_success(void **state) {
assert_float_equal(0.5f, 1.f... | 790173fc23a95d2fad35adb32a1906cf8af047ad | tests/test_float_macros.c | tests/test_float_macros.c | C |
<|file_sep|>original/phasortoolbox/synchrophasor.py
<|file_sep|>current/phasortoolbox/synchrophasor.py
<|file_sep|>updated/phasortoolbox/synchrophasor.py | from collections import UserList
class Synchrophasor(UserList):
"""
time_tag is the time tag of the synchrophasor message
arr_time is the unix time that the last data frame for the synchrophasor received
perf_counter is used the check the performace
"""
def __init__(self, list_, time_tag, arr_t... | <|file_sep|>original/phasortoolbox/synchrophasor.py
<|file_sep|>current/phasortoolbox/synchrophasor.py
<|file_sep|>updated/phasortoolbox/synchrophasor.py
from collections import UserList
class Synchrophasor(UserList):
"""
time_tag is the time tag of the synchrophasor message
arr_time is the unix time that... | 1e1d58c3a3d2134c98f42206b1dd5226d5e23c27 | phasortoolbox/synchrophasor.py | phasortoolbox/synchrophasor.py | Python |
<|file_sep|>change-commands/CompileAll.php.diff
original:
updated:
$parent->executeCommand("compileAop");
<|file_sep|>original/change-commands/CompileAll.php
function _execute($params, $options)
{
$this->message("== Compile all ==");
$parent = $this->getParent();
$parent->executeCommand("compileConfig");
... | function _execute($params, $options)
{
$this->message("== Compile all ==");
$parent = $this->getParent();
$parent->executeCommand("compileConfig");
$parent->executeCommand("compileDocuments");
$parent->executeCommand("compileAop");
$parent->executeCommand("compileDocumentFilters");
$parent->executeCo... | <|file_sep|>change-commands/CompileAll.php.diff
original:
updated:
$parent->executeCommand("compileAop");
<|file_sep|>original/change-commands/CompileAll.php
function _execute($params, $options)
{
$this->message("== Compile all ==");
$parent = $this->getParent();
$parent->executeCommand("compileConfig");
... | e2e80d1a83e7844d8f5867e12bfe174051f1956e | change-commands/CompileAll.php | change-commands/CompileAll.php | PHP |
<|file_sep|>jsconfig.json.diff
original:
updated:
"target": "ES6",
"checkJs": true,
<|file_sep|>original/jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"./src/**/*"
]
}
<|file_sep|>current/jsconfig.json
{
"compilerOptions": {
... | {
"compilerOptions": {
"target": "ES6",
"checkJs": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"./src/**/*"
],
"typeAcquisition": {
"include": [
"chrome"
]
}
} | <|file_sep|>jsconfig.json.diff
original:
updated:
"target": "ES6",
"checkJs": true,
<|file_sep|>original/jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"./src/**/*"
]
}
<|file_sep|>current/jsconfig.json
{
"compilerOptions": {
... | a3f1e34b0a13833cb88f6f5f7e8b260d30a83a48 | jsconfig.json | jsconfig.json | JSON |
<|file_sep|>original/app/helpers/nivo_helper.rb
<|file_sep|>current/app/helpers/nivo_helper.rb
<|file_sep|>updated/app/helpers/nivo_helper.rb | module NivoHelper
def slider(files, hash = {})
options = { :theme => :default }
options.merge!(hash)
content_tag(:div, :class => "slider-wrapper theme-#{options[:theme]}") do
content_tag(:div, :class => "nivoSlider #{options[:class]}", :id => "#{options[:id]}")
content = ""
files.e... | <|file_sep|>original/app/helpers/nivo_helper.rb
<|file_sep|>current/app/helpers/nivo_helper.rb
<|file_sep|>updated/app/helpers/nivo_helper.rb
module NivoHelper
def slider(files, hash = {})
options = { :theme => :default }
options.merge!(hash)
content_tag(:div, :class => "slider-wrapper theme-#{options[... | 1791e2b3be87cd5cb492b5fafab20c7f177cf9c9 | app/helpers/nivo_helper.rb | app/helpers/nivo_helper.rb | Ruby |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
# Need mongodb for testing
services: mongodb
# command to install dependencies
install: "pip install -r requirements_for_tests.txt --use-mirrors"
# command to run tests
script: nosetests && behave
branches:
except:
- master
- releas... | language: python
python:
- "2.6"
- "2.7"
# Need mongodb for testing
services: mongodb
# command to install dependencies
install: "pip install -r requirements_for_tests.txt --use-mirrors"
# command to run tests
script: nosetests && behave && ./pep-it.sh
branches:
except:
- master
- release | <|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
# Need mongodb for testing
services: mongodb
# command to install dependencies
install: "pip install -r requirements_for_tests.txt --use-mirrors"
# command to run tests
script: nosetests && behave
branches:
except:
- master
- releas... | 339e30a9181d0b4c65ac147e3143f1b09691894d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements.txt
bcbio-gff==0.6.4
biopython==1.70
cached_property==1.4.0
click==6.7
contextlib2==0.5.5
futures==3.2.0; python_version < '3.3'
pandas==0.23.0
pysam==0.15.1
scipy==1.0.1
shutilwhich==1.1.0; python_version < '3.3'
six==1.11.0
backports.tempfile==1.0; python_version < '3.3'
multiprocess... | bcbio-gff==0.6.4
biopython==1.72
cached_property==1.4.0
click==6.7
contextlib2==0.5.5
futures==3.2.0; python_version < '3.3'
pandas==0.23.0
pysam==0.15.1
scipy==1.0.1
shutilwhich==1.1.0; python_version < '3.3'
six==1.11.0
backports.tempfile==1.0; python_version < '3.3'
multiprocessing_logging==0.2.6
edlib==1.2.3 | <|file_sep|>original/requirements.txt
bcbio-gff==0.6.4
biopython==1.70
cached_property==1.4.0
click==6.7
contextlib2==0.5.5
futures==3.2.0; python_version < '3.3'
pandas==0.23.0
pysam==0.15.1
scipy==1.0.1
shutilwhich==1.1.0; python_version < '3.3'
six==1.11.0
backports.tempfile==1.0; python_version < '3.3'
multiprocess... | 042c0fee20c26f3c4f234ddd598253c2c23fe352 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/app/src/main/java/de/philipphager/disclosure/database/app/mapper/ToAppMapper.java
import de.philipphager.disclosure.util.Mapper;
import javax.inject.Inject;
public class ToAppMapper implements Mapper<ApplicationInfo, App> {
private final PackageManager packageManager;
@Inject public ToAppMapp... | import de.philipphager.disclosure.database.app.model.App;
import de.philipphager.disclosure.util.Mapper;
import javax.inject.Inject;
public class ToAppMapper implements Mapper<ApplicationInfo, App> {
private final PackageManager packageManager;
@Inject public ToAppMapper(PackageManager packageManager) {
this.... | <|file_sep|>original/app/src/main/java/de/philipphager/disclosure/database/app/mapper/ToAppMapper.java
import de.philipphager.disclosure.util.Mapper;
import javax.inject.Inject;
public class ToAppMapper implements Mapper<ApplicationInfo, App> {
private final PackageManager packageManager;
@Inject public ToAppMapp... | 06994b5d1e85005e6122709e8c9b479a5d745a50 | app/src/main/java/de/philipphager/disclosure/database/app/mapper/ToAppMapper.java | app/src/main/java/de/philipphager/disclosure/database/app/mapper/ToAppMapper.java | Java |
<|file_sep|>original/metadata/org.notabug.lifeuser.moviedb.txt
you have already watched. If you've already watched a movie and/or series, you
can grade the movie and add the date you started and finished watching the
movie/series. Furthermore, you can see which movies and series are popular and
search through the datab... | you have already watched. If you've already watched a movie and/or series, you
can grade the movie and add the date you started and finished watching the
movie/series. Furthermore, you can see which movies and series are popular and
search through the database to find the movie you're looking for.
The movies are reque... | <|file_sep|>original/metadata/org.notabug.lifeuser.moviedb.txt
you have already watched. If you've already watched a movie and/or series, you
can grade the movie and add the date you started and finished watching the
movie/series. Furthermore, you can see which movies and series are popular and
search through the datab... | b8ff45f3ae846902ccc69bd51768a51e597bd058 | metadata/org.notabug.lifeuser.moviedb.txt | metadata/org.notabug.lifeuser.moviedb.txt | Text |
<|file_sep|>generators/node/templates/gruntfile.js.diff
original:
updated:
const originalWriteLn = grunt.log.writeln;
<|file_sep|>generators/node/templates/gruntfile.js.diff
original:
grunt.log.header = (message) => {
updated:
// Cannot use arrow functions here as the this object is incorrect otherwise.
grunt.log.... | function quietGruntNewer(grunt) {
const originalHeader = grunt.log.header;
const originalWriteLn = grunt.log.writeln;
// Cannot use arrow functions here as the this object is incorrect otherwise.
grunt.log.header = function (message) {
// Only if the header does not start with newer or newer-postrun.
if (!/new... | <|file_sep|>generators/node/templates/gruntfile.js.diff
original:
updated:
const originalWriteLn = grunt.log.writeln;
<|file_sep|>generators/node/templates/gruntfile.js.diff
original:
grunt.log.header = (message) => {
updated:
// Cannot use arrow functions here as the this object is incorrect otherwise.
grunt.log.... | edb8454922fc3002746f11dc980030da7c63018f | generators/node/templates/gruntfile.js | generators/node/templates/gruntfile.js | JavaScript |
<|file_sep|>original/conf/eslint.json
"no-caller": 1,
"no-bitwise": 0,
"no-console": 1,
"no-debugger": 1,
"no-empty": 1,
"no-eval": 1,
"no-with": 1,
"no-unreachable": 1,
"no-undef-init": 1,
"camelcase": 1,
"curly": 1,
"eqeq... | "no-caller": 1,
"no-bitwise": 0,
"no-console": 1,
"no-debugger": 1,
"no-empty": 1,
"no-eval": 1,
"no-with": 1,
"no-unreachable": 1,
"no-undef-init": 1,
"camelcase": 1,
"curly": 1,
"eqeqeq": 1,
"guard-for-in": 0,
... | <|file_sep|>original/conf/eslint.json
"no-caller": 1,
"no-bitwise": 0,
"no-console": 1,
"no-debugger": 1,
"no-empty": 1,
"no-eval": 1,
"no-with": 1,
"no-unreachable": 1,
"no-undef-init": 1,
"camelcase": 1,
"curly": 1,
"eqeq... | b1d4ca1493c3ebd8c14a49fa375f1a10c22d8eb2 | conf/eslint.json | conf/eslint.json | JSON |
<|file_sep|>public/css/style.css.diff
original:
updated:
.container {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
<|file_sep|>original/public/css/style.css
.container {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
#in... | height: 350px;
}
}
html body {
background: #449944;
}
#info {
padding: 15px;
background-color: #dff5df;
border-radius: 6px;
}
#stats {
float: left;
padding-left: 20px;
}
#chartContainer {
padding: 15px 15px 0; | <|file_sep|>public/css/style.css.diff
original:
updated:
.container {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
<|file_sep|>original/public/css/style.css
.container {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
#in... | 7f657fe0a38f5498e12d0d463545b10db441c085 | public/css/style.css | public/css/style.css | CSS |
<|file_sep|>original/src/components/line-chart/line-chart.component.scss
.active-indicator {
position: absolute;
z-index: 1;
background-color: white;
white-space: nowrap;
opacity: .8;
display: flex;
flex-direction: column;
margin-top: 1rem;
margin-left: -2rem;
... | .active-indicator {
position: absolute;
z-index: 1;
background-color: white;
white-space: nowrap;
opacity: .8;
display: flex;
flex-direction: column;
margin-top: 1rem;
margin-left: -2rem;
transition: top 50ms, left 50ms;
.date {
font-weight:... | <|file_sep|>original/src/components/line-chart/line-chart.component.scss
.active-indicator {
position: absolute;
z-index: 1;
background-color: white;
white-space: nowrap;
opacity: .8;
display: flex;
flex-direction: column;
margin-top: 1rem;
margin-left: -2rem;
... | 358d598c89f597f7d1c20e97d6e3eb8a92148284 | src/components/line-chart/line-chart.component.scss | src/components/line-chart/line-chart.component.scss | SCSS |
<|file_sep|>original/spec/spec_helper.rb
# coding: utf-8
require 'coveralls'
Coveralls.wear!
require 'i18n'
if I18n.config.respond_to?(:enforce_available_locales)
I18n.config.enforce_available_locales = true
end
require 'active_interaction'
Dir['./spec/support/**/*.rb'].each { |f| require f }
RSpec.configure do ... | # coding: utf-8
# Disable code coverage for JRuby because it always reports 0% coverage.
if RUBY_ENGINE != 'jruby'
require 'coveralls'
Coveralls.wear!
end
require 'i18n'
if I18n.config.respond_to?(:enforce_available_locales)
I18n.config.enforce_available_locales = true
end
require 'active_interaction'
Dir['./... | <|file_sep|>original/spec/spec_helper.rb
# coding: utf-8
require 'coveralls'
Coveralls.wear!
require 'i18n'
if I18n.config.respond_to?(:enforce_available_locales)
I18n.config.enforce_available_locales = true
end
require 'active_interaction'
Dir['./spec/support/**/*.rb'].each { |f| require f }
RSpec.configure do ... | 157dae60ffde3b5b3e1192ade2e48f305777a50c | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>original/compose.yml
version: "3"
services:
dashboard:
build:
context: .
args:
- port=8081
image: registry:5000/dashboard
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- 8081:8081
deploy:
replicas: 1
update_config:
parall... | version: "3"
services:
dashboard:
build:
context: .
args:
- port=8081
image: localhost:5000/dashboard
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- 8081:8081
deploy:
replicas: 1
update_config:
parallelism: 1
restart_policy:
... | <|file_sep|>original/compose.yml
version: "3"
services:
dashboard:
build:
context: .
args:
- port=8081
image: registry:5000/dashboard
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- 8081:8081
deploy:
replicas: 1
update_config:
parall... | 3907a2e3e0f6b425be920970febd6c2e0716ec43 | compose.yml | compose.yml | YAML |
<|file_sep|>ext/extconf.rb.diff
original:
if RUBY_PLATFORM =~ /darwin/
$stderr.puts "Error: native extension disabled on OS X. This will not work."
exit 1
end
unless RUBY_PLATFORM =~ /linux/
$stderr.puts "Error: The oboe gem will only run under linux currently."
exit 1
end
updated:
<|file_sep|>ext/extconf.rb... | # Copyright (c) 2012 by Tracelytics, Inc.
# All rights reserved.
require 'mkmf'
unless have_library('oboe')
$stderr.puts "Error: Could not find the base liboboe libraries. No tracing will occur."
end
$libs = append_library($libs, "oboe")
$libs = append_library($libs, "stdc++")
$CFLAGS << " #{ENV["CFLAGS"]}"
$CPP... | <|file_sep|>ext/extconf.rb.diff
original:
if RUBY_PLATFORM =~ /darwin/
$stderr.puts "Error: native extension disabled on OS X. This will not work."
exit 1
end
unless RUBY_PLATFORM =~ /linux/
$stderr.puts "Error: The oboe gem will only run under linux currently."
exit 1
end
updated:
<|file_sep|>ext/extconf.rb... | ee40138f7ca5d12a5de8a121d46d355f7b57325f | ext/extconf.rb | ext/extconf.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.