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|>dockercloud.yml.diff
original:
- nodecluster-name=services
updated:
- services
<|file_sep|>dockercloud.yml.diff
original:
- nodecluster-name=services
updated:
- services
<|file_sep|>original/dockercloud.yml
tags:
- nodecluster-name=services
time-service:
autoredeploy: true
command:... | tags:
- services
time-service:
autoredeploy: true
command: node time-service
image: cotedemo/dockercloud-microservices:time
tags:
- services
restart: always
proxy:
image: dockercloud/haproxy:1.5.1
links:
- api-server
ports:
- '80:80'
- '443:443'
restart: always
roles:
- glo... | <|file_sep|>dockercloud.yml.diff
original:
- nodecluster-name=services
updated:
- services
<|file_sep|>dockercloud.yml.diff
original:
- nodecluster-name=services
updated:
- services
<|file_sep|>original/dockercloud.yml
tags:
- nodecluster-name=services
time-service:
autoredeploy: true
command:... | c60d0434e0f2ece91e20d620fa7043b3d8f85c0c | dockercloud.yml | dockercloud.yml | YAML |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "stable"
- "8.6.0"
install:
- npm install
script:
- nvm use stable
- npm test
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "stable"
- "8.6.0"
install:
- npm install
script:
- nvm use stable
- npm test
<... | language: node_js
node_js:
- "stable"
- "6.3.0"
install:
- npm install
script:
- nvm use stable
- npm test | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "stable"
- "8.6.0"
install:
- npm install
script:
- nvm use stable
- npm test
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "stable"
- "8.6.0"
install:
- npm install
script:
- nvm use stable
- npm test
<... | 8cff2741a95c6e4760d13c390060d4b4b82d10bb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md | © 2017 Hivereactor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or... | <|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md
© 2017 Hivereactor
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 wi... | 0cac79c978bcca80b7ca2377ba2bb20c523d9202 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/styles.css
border: solid #ccc 1px;
border-radius: 10px;
box-shadow: 2px 4px 2px rgba(163,163,163, 0.7);
}
img {
display: block;
margin: auto;
border-radius: 10px;
}
.main-content {
width: 300px;
border: solid #ccc 1px;
border-radius: 10px;
margin: 10px;
}
p {
padding: 0 10p... | img {
display: block;
margin: auto;
border-radius: 10px;
}
.main-content {
width: 300px;
border: solid #ccc 1px;
border-radius: 10px;
margin: 10px;
}
p {
padding: 0 10px;
}
ul {
list-style: none;
padding: 0 10px;
} | <|file_sep|>original/styles.css
border: solid #ccc 1px;
border-radius: 10px;
box-shadow: 2px 4px 2px rgba(163,163,163, 0.7);
}
img {
display: block;
margin: auto;
border-radius: 10px;
}
.main-content {
width: 300px;
border: solid #ccc 1px;
border-radius: 10px;
margin: 10px;
}
p {
padding: 0 10p... | 76a2140a5353a6e3299aeee975c4bdec80297049 | styles.css | styles.css | CSS |
<|file_sep|>.travis.yml.diff
original:
dist: trusty
sudo: required
updated:
cache:
apt: true
<|file_sep|>.travis.yml.diff
original:
cache:
apt: true
updated:
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- llvm-toolchain-precise-3.6
- llvm-toolchai... | - env: CC=clang-3.6 CXX=clang++-3.6
os: linux
dist: trusty
sudo: require
addons:
apt:
sources: *sources
packages:
- clang-3.6
- os: osx
osx_image: xcode8.2
before_install:
- brew update
- brew install --overwrite cmake
... | <|file_sep|>.travis.yml.diff
original:
dist: trusty
sudo: required
updated:
cache:
apt: true
<|file_sep|>.travis.yml.diff
original:
cache:
apt: true
updated:
addons:
apt:
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- llvm-toolchain-precise-3.6
- llvm-toolchai... | db23f3945e992eeaefad3df04a452a48234139b6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Zk/Scripts/zk.js
},
fillMonthCalendar: function(month, data) {
$('#_MonthCalendar').html(data);
},
resizeLoginArea: function() {
var windowHeight = $(window).innerHeight();
var topHeight = $('#top').innerHeight();
var padding = windowHeight... | },
fillMonthCalendar: function(month, data) {
$('#_MonthCalendar').html(data);
},
resizeLoginArea: function() {
var windowHeight = $(window).innerHeight();
var topHeight = $('#top').innerHeight();
var padding = windowHeight * 0.025 + 20;
$('#login').cs... | <|file_sep|>original/Zk/Scripts/zk.js
},
fillMonthCalendar: function(month, data) {
$('#_MonthCalendar').html(data);
},
resizeLoginArea: function() {
var windowHeight = $(window).innerHeight();
var topHeight = $('#top').innerHeight();
var padding = windowHeight... | ac636203b9738961cc9e8df419699b5bcf6bbd60 | Zk/Scripts/zk.js | Zk/Scripts/zk.js | JavaScript |
<|file_sep|>original/casper/download.js
casper.fill('form.reg-page', {
'login_user_id': id,
'login_password': password
}, true);
});
casper.thenOpen('https://www.acmicpc.net/source/' + sourceNumber, function() {
casper.then(function() {
var sourceInfo = casper.evaluate(function() {
return {
source: doc... | casper.fill('form.reg-page', {
'login_user_id': id,
'login_password': password
}, true);
});
casper.thenOpen('https://www.acmicpc.net/source/' + sourceNumber, function() {
casper.then(function() {
var sourceInfo = casper.evaluate(function() {
return {
source: document.querySelector('[name~=source]').va... | <|file_sep|>original/casper/download.js
casper.fill('form.reg-page', {
'login_user_id': id,
'login_password': password
}, true);
});
casper.thenOpen('https://www.acmicpc.net/source/' + sourceNumber, function() {
casper.then(function() {
var sourceInfo = casper.evaluate(function() {
return {
source: doc... | 2c990366e0f046d5a51266fcfe70b2d417dba283 | casper/download.js | casper/download.js | JavaScript |
<|file_sep|>app/Helpers.php.diff
original:
$route_name = 'home';
updated:
$route_name = 'not-identified';
$determined_class = '';
$level_exceptions = array(
'/', 'auth/login', 'auth/register'
);
<|file_sep|>app/Helpers.php.diff
original:
updated:
if ( !in_array( $route->uri, $level_exceptions ) ) {
... | }
function get_route_class( $route = null ) {
$route_name = 'not-identified';
$determined_class = '';
$level_exceptions = array(
'/', 'auth/login', 'auth/register'
);
if ( !empty( $route ) ) {
$route_name = str_replace( '/', '-', ( $route->uri == '/' ) ? 'welcome' : $route->uri );
if ( !in_arra... | <|file_sep|>app/Helpers.php.diff
original:
$route_name = 'home';
updated:
$route_name = 'not-identified';
$determined_class = '';
$level_exceptions = array(
'/', 'auth/login', 'auth/register'
);
<|file_sep|>app/Helpers.php.diff
original:
updated:
if ( !in_array( $route->uri, $level_exceptions ) ) {
... | 341a3cb232a24e7a8ecb66dcd2df0e0581d4801a | app/Helpers.php | app/Helpers.php | PHP |
<|file_sep|>original/test/DebugInfo/liverange-extension-vector.swift
<|file_sep|>current/test/DebugInfo/liverange-extension-vector.swift
<|file_sep|>updated/test/DebugInfo/liverange-extension-vector.swift | // RUN: %target-swift-frontend %s -g -emit-ir -o - | %FileCheck %s
// REQUIRES: objc_interop, CPU=x86_64
import simd
func use<T>(_ x: T) {}
func getInt32() -> Int32 { return -1 }
public func rangeExtension(x: Int32, y: Int32) {
let p = int2(x, y)
// CHECK: define {{.*}}rangeExtension
// CHECK: llvm.dbg.value(m... | <|file_sep|>original/test/DebugInfo/liverange-extension-vector.swift
<|file_sep|>current/test/DebugInfo/liverange-extension-vector.swift
<|file_sep|>updated/test/DebugInfo/liverange-extension-vector.swift
// RUN: %target-swift-frontend %s -g -emit-ir -o - | %FileCheck %s
// REQUIRES: objc_interop, CPU=x86_64
import s... | 4a85b83413241e601821b2f1840da534bb5dfbb8 | test/DebugInfo/liverange-extension-vector.swift | test/DebugInfo/liverange-extension-vector.swift | Swift |
<|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
echo "::set-env name=MTSR_RAILS_VERSION::${{ matrix.rails }}"
<|file_sep|>original/.github/workflows/ci.yml
- name: Checkout
uses: actions/checkout@v1
- name: Setup System
run: |
sudo apt-get install libsqlite3... | steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup System
run: |
sudo apt-get install libsqlite3-dev
echo "::set-env name=MTSR_RAILS_VERSION::${{ matrix.rails }}"
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-ve... | <|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
echo "::set-env name=MTSR_RAILS_VERSION::${{ matrix.rails }}"
<|file_sep|>original/.github/workflows/ci.yml
- name: Checkout
uses: actions/checkout@v1
- name: Setup System
run: |
sudo apt-get install libsqlite3... | a67f636b7e35429dc7fe7bc2d631241533034fd3 | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/index.js
// http://stackoverflow.com/questions/11935175/sampling-a-random-subset-from-an-array
var featureCollection = require('turf-featurecollection');
/**
* Takes a {@link FeatureCollection} and returns a FeatureCollection with given number of {@link Feature|features} at random.
*
* @module ... | // http://stackoverflow.com/questions/11935175/sampling-a-random-subset-from-an-array
var featureCollection = require('turf-featurecollection');
/**
* Takes a {@link FeatureCollection} and returns a FeatureCollection with given number of {@link Feature|features} at random.
*
* @module turf/sample
* @category data
... | <|file_sep|>original/index.js
// http://stackoverflow.com/questions/11935175/sampling-a-random-subset-from-an-array
var featureCollection = require('turf-featurecollection');
/**
* Takes a {@link FeatureCollection} and returns a FeatureCollection with given number of {@link Feature|features} at random.
*
* @module ... | 854e8f71d40d7d2a077a208f3f6f33f9a0dc23f4 | index.js | index.js | JavaScript |
<|file_sep|>src/main/resources/static/entrypoint.js.diff
original:
updated:
var location = options.router.createLocation('/static/issueresolver');
<|file_sep|>src/main/resources/static/entrypoint.js.diff
original:
baseUrl: '/static/issueresolver'
updated:
baseUrl: location.basename + location.pathname
<|... | baseUrl: location.basename + location.pathname
});
requirejs(['main'], function(main) {
main.main(options);
});
};
// Adding the script tag to the head as suggested before
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = location.basename... | <|file_sep|>src/main/resources/static/entrypoint.js.diff
original:
updated:
var location = options.router.createLocation('/static/issueresolver');
<|file_sep|>src/main/resources/static/entrypoint.js.diff
original:
baseUrl: '/static/issueresolver'
updated:
baseUrl: location.basename + location.pathname
<|... | 19ec33655ecf35ad7d9699fb8c604790135a7dae | src/main/resources/static/entrypoint.js | src/main/resources/static/entrypoint.js | JavaScript |
<|file_sep|>original/config/initializers/sidekiq.rb
schedule_file = 'config/schedule.yml'
if File.exists?(schedule_file) && Sidekiq.server?
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
end
<|file_sep|>current/config/initializers/sidekiq.rb
schedule_file = 'config/schedule.yml'
if File.exists?(sch... | schedule_file = 'config/schedule.yml'
if File.exists?(schedule_file) && Sidekiq.server?
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
end
if Rails.env.production?
Sidekiq.configure_server do |config|
config.redis = { url: 'redis://10.0.3.113:6379/4' }
end
Sidekiq.configure_client do |co... | <|file_sep|>original/config/initializers/sidekiq.rb
schedule_file = 'config/schedule.yml'
if File.exists?(schedule_file) && Sidekiq.server?
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
end
<|file_sep|>current/config/initializers/sidekiq.rb
schedule_file = 'config/schedule.yml'
if File.exists?(sch... | 93ff604fc48299e11a6b3547c04df094b48a5149 | config/initializers/sidekiq.rb | config/initializers/sidekiq.rb | Ruby |
<|file_sep|>lib/moduleloader/index.js.diff
original:
* Module loader (aka Cargo)
updated:
* Module loader
<|file_sep|>original/lib/moduleloader/index.js
/**
* Module loader (aka Cargo)
*
* Load a module into memory
*/
module.exports = {
/**
* Build a dictionary of named modules
* (throws an error if the co... | /**
* Module loader
*
* Load a module into memory
*/
module.exports = {
/**
* Build a dictionary of named modules
* (responds with an error if the container cannot be loaded)
*
* @param {Object} options
* @param {Function} cb
*/
required: function (options, cb) {
return buildDictionary(options, ... | <|file_sep|>lib/moduleloader/index.js.diff
original:
* Module loader (aka Cargo)
updated:
* Module loader
<|file_sep|>original/lib/moduleloader/index.js
/**
* Module loader (aka Cargo)
*
* Load a module into memory
*/
module.exports = {
/**
* Build a dictionary of named modules
* (throws an error if the co... | fab314056b01d8f6425a6b67d9cc470458f820b1 | lib/moduleloader/index.js | lib/moduleloader/index.js | JavaScript |
<|file_sep|>original/composer.json
],
"require": {
"php": "^7.0",
"ext-mbstring": "*",
"firebase/token-generator": "^3.0",
"google/auth": "^0.9.0",
"guzzlehttp/guzzle": "^6.2.1",
"mtdowling/jmespath.php": "^2.3"
},
"require-dev": {
"phpunit/phpunit... | ],
"require": {
"php": "^7.0",
"ext-mbstring": "*",
"firebase/token-generator": "^3.0",
"google/auth": "^0.9.0",
"guzzlehttp/guzzle": "^6.2.1",
"mtdowling/jmespath.php": "^2.3"
},
"require-dev": {
"phpunit/phpunit": "^5.5",
"fabpot/php-cs-f... | <|file_sep|>original/composer.json
],
"require": {
"php": "^7.0",
"ext-mbstring": "*",
"firebase/token-generator": "^3.0",
"google/auth": "^0.9.0",
"guzzlehttp/guzzle": "^6.2.1",
"mtdowling/jmespath.php": "^2.3"
},
"require-dev": {
"phpunit/phpunit... | 68a06840fbc5b7ff8ef2135f25532bc0dd762db9 | composer.json | composer.json | JSON |
<|file_sep|>original/nubis/builder/project.json
{
"variables": {
"builders": [
"amazon-ebs-ubuntu"
],
"project_description": "Nubis - CI (jenkins)",
"project_name": "nubis-ci",
"project_version": "v1.5.0"
}
}
<|file_sep|>current/nubis/builder/project.json
{
"variables": {
"builders":... | {
"variables": {
"builders": [
"amazon-ebs-ubuntu"
],
"project_description": "Nubis - CI (jenkins)",
"project_name": "nubis-ci",
"project_version": "v1.6.0-dev"
}
} | <|file_sep|>original/nubis/builder/project.json
{
"variables": {
"builders": [
"amazon-ebs-ubuntu"
],
"project_description": "Nubis - CI (jenkins)",
"project_name": "nubis-ci",
"project_version": "v1.5.0"
}
}
<|file_sep|>current/nubis/builder/project.json
{
"variables": {
"builders":... | 3c92d126d8578404fb5a37371ef584caaab22d66 | nubis/builder/project.json | nubis/builder/project.json | JSON |
<|file_sep|>servicewrapper/servicewrapper-service-interproscan/src/uk/org/mygrid/cagrid/servicewrapper/service/interproscan/invoker/InvokerFactory.java.diff
original:
import uk.org.mygrid.cagrid.servicewrapper.serviceinvoker.interproscan.DummyInterProScanInvoker;
updated:
import uk.org.mygrid.cagrid.servicewrapper.serv... | import uk.org.mygrid.cagrid.servicewrapper.serviceinvoker.interproscan.InterProScanInvoker;
import uk.org.mygrid.cagrid.servicewrapper.serviceinvoker.interproscan.InterProScanInvokerImpl;
public class InvokerFactory {
private static InterProScanInvoker invoker;
public static InterProScanInvoker getInvoker() {
if ... | <|file_sep|>servicewrapper/servicewrapper-service-interproscan/src/uk/org/mygrid/cagrid/servicewrapper/service/interproscan/invoker/InvokerFactory.java.diff
original:
import uk.org.mygrid.cagrid.servicewrapper.serviceinvoker.interproscan.DummyInterProScanInvoker;
updated:
import uk.org.mygrid.cagrid.servicewrapper.serv... | 00f4665ed0258b4103c84aacc668010625e71e91 | servicewrapper/servicewrapper-service-interproscan/src/uk/org/mygrid/cagrid/servicewrapper/service/interproscan/invoker/InvokerFactory.java | servicewrapper/servicewrapper-service-interproscan/src/uk/org/mygrid/cagrid/servicewrapper/service/interproscan/invoker/InvokerFactory.java | Java |
<|file_sep|>client/src/reducers/initialState.js.diff
original:
const channels = [
{
source_id: "abc-news-au",
name: "ABC News (AU)",
},
{
source_id: "al-jazeera-english",
name: "Al Jazeera English",
},
]
updated:
<|file_sep|>original/client/src/reducers/initialState.js
const channels = [
{
so... |
export default {
sources: [],
articles: [],
auth: {
isAuthenticated: false,
isAuthenticating: true,
user_id: ''
}
} | <|file_sep|>client/src/reducers/initialState.js.diff
original:
const channels = [
{
source_id: "abc-news-au",
name: "ABC News (AU)",
},
{
source_id: "al-jazeera-english",
name: "Al Jazeera English",
},
]
updated:
<|file_sep|>original/client/src/reducers/initialState.js
const channels = [
{
so... | 9f14580452f0c50c8c2d271756622749113ecef7 | client/src/reducers/initialState.js | client/src/reducers/initialState.js | JavaScript |
<|file_sep|>original/tests/Z38/SwissPayment/Tests/Money/MixedTest.php
<|file_sep|>current/tests/Z38/SwissPayment/Tests/Money/MixedTest.php
<|file_sep|>updated/tests/Z38/SwissPayment/Tests/Money/MixedTest.php | <?php
namespace Z38\SwissPayment\Tests\Money;
use Z38\SwissPayment\Money;
use Z38\SwissPayment\Tests\TestCase;
class MixedTest extends TestCase
{
/**
* @covers \Z38\SwissPayment\Money\Mixed::add
*/
public function testAdd()
{
$sum = new Money\Mixed(0);
$sum = $sum->plus(new Mone... | <|file_sep|>original/tests/Z38/SwissPayment/Tests/Money/MixedTest.php
<|file_sep|>current/tests/Z38/SwissPayment/Tests/Money/MixedTest.php
<|file_sep|>updated/tests/Z38/SwissPayment/Tests/Money/MixedTest.php
<?php
namespace Z38\SwissPayment\Tests\Money;
use Z38\SwissPayment\Money;
use Z38\SwissPayment\Tests\TestCas... | 7ea5f40759527ca04c3838f7ac50a50781ffdb8d | tests/Z38/SwissPayment/Tests/Money/MixedTest.php | tests/Z38/SwissPayment/Tests/Money/MixedTest.php | PHP |
<|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
# Clip in this context refers to a portion of an image
# Also used for the title on the toolbar button
<|file_sep|>original/locales/ca/webextension.properties
# The string "{meta_key}-V" should be translated to the region-specific
# shorthand for t... | # Clip in this context refers to a portion of an image
# Also used for the title on the toolbar button
# The string "{meta_key}-V" should be translated to the region-specific
# shorthand for the Paste keyboard shortcut. {meta_key} is a placeholder for the
# modifier key used in the shortcut (do not translate it): for e... | <|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
# Clip in this context refers to a portion of an image
# Also used for the title on the toolbar button
<|file_sep|>original/locales/ca/webextension.properties
# The string "{meta_key}-V" should be translated to the region-specific
# shorthand for t... | 267ac45baa5ee6d66cbb99ab46a139d22a2717e0 | locales/ca/webextension.properties | locales/ca/webextension.properties | INI |
<|file_sep|>original/app/assets/javascripts/express_admin/utility.js
$(function() {
// toggle on/off switch
$(document).on('click', '[data-toggle]', function() {
targetHide = $(this).data('toggle-hide')
targetShow = $(this).data('toggle-show')
$('[data-toggle-name="' + targetHide + '"]').addClass('hid... | $(function() {
// toggle on/off switch
$(document).on('click', '[data-toggle]', function() {
targetHide = $(this).data('toggle-hide')
targetShow = $(this).data('toggle-show')
$('[data-toggle-name="' + targetHide + '"]').addClass('hide')
$('[data-toggle-name="' + targetShow + '"]').removeClass('hi... | <|file_sep|>original/app/assets/javascripts/express_admin/utility.js
$(function() {
// toggle on/off switch
$(document).on('click', '[data-toggle]', function() {
targetHide = $(this).data('toggle-hide')
targetShow = $(this).data('toggle-show')
$('[data-toggle-name="' + targetHide + '"]').addClass('hid... | 87888fd4f68dc0c34fb84e3b13cdc420befe7b9a | app/assets/javascripts/express_admin/utility.js | app/assets/javascripts/express_admin/utility.js | JavaScript |
<|file_sep|>original/test/pull_images.rb
# frozen_string_literal: true
require_relative 'server/test_base'
class ImagePrePuller < TestBase
def initialize(arg)
super(arg)
end
def pull_images
context = Context.new(sheller:ExternalSheller.new(self))
display_names.each do |display_name|
manifest ... | # frozen_string_literal: true
require_relative 'server/test_base'
class ImagePrePuller < TestBase
def initialize(arg)
super(arg)
end
def pull_images
context = Context.new(sheller:BashSheller.new(self))
display_names.each do |display_name|
manifest = languages_start_points.manifest(display_nam... | <|file_sep|>original/test/pull_images.rb
# frozen_string_literal: true
require_relative 'server/test_base'
class ImagePrePuller < TestBase
def initialize(arg)
super(arg)
end
def pull_images
context = Context.new(sheller:ExternalSheller.new(self))
display_names.each do |display_name|
manifest ... | f002b3a002f84c044d243f2f4e07e282bf1bbec1 | test/pull_images.rb | test/pull_images.rb | Ruby |
<|file_sep|>original/_includes/custom/versionconfig.html
{% assign gpconnectVersion = "1.1.0-beta" %}
{% assign fhirVersion = "STU3" %}
{% assign versionBanner = "version_1_prerelease" %}
{% assign showVersionsPage = "true" %}
<|file_sep|>current/_includes/custom/versionconfig.html
{% assign gpconnectVersion = "1.1.0-b... | {% assign gpconnectVersion = "1.1.0-beta" %}
{% assign fhirVersion = "STU3" %}
{% assign versionBanner = "version_prerelease" %}
{% assign showVersionsPage = "true" %} | <|file_sep|>original/_includes/custom/versionconfig.html
{% assign gpconnectVersion = "1.1.0-beta" %}
{% assign fhirVersion = "STU3" %}
{% assign versionBanner = "version_1_prerelease" %}
{% assign showVersionsPage = "true" %}
<|file_sep|>current/_includes/custom/versionconfig.html
{% assign gpconnectVersion = "1.1.0-b... | 15bf0af6741b8cb23cd2f349d9b0fc12506aff4f | _includes/custom/versionconfig.html | _includes/custom/versionconfig.html | HTML |
<|file_sep|>unit_tests/test_analyse_idynomics.py.diff
original:
updated:
from os.path import join, dirname, realpath
<|file_sep|>unit_tests/test_analyse_idynomics.py.diff
original:
updated:
expected_solutes = ['MyAtmos', 'pressure']
expected_species = ['MyBact']
<|file_sep|>unit_tests/test_analyse_idynom... | from analyse_idynomics import *
from os.path import join, dirname, realpath
class TestAnalyseiDynomics:
expected_solutes = ['MyAtmos', 'pressure']
expected_species = ['MyBact']
def setUp(self):
self.directory = join(dirname(realpath(__file__)), 'test_data')
self.analysis = AnalyseiDyno... | <|file_sep|>unit_tests/test_analyse_idynomics.py.diff
original:
updated:
from os.path import join, dirname, realpath
<|file_sep|>unit_tests/test_analyse_idynomics.py.diff
original:
updated:
expected_solutes = ['MyAtmos', 'pressure']
expected_species = ['MyBact']
<|file_sep|>unit_tests/test_analyse_idynom... | 13f78350b42e48bc8195d6ec05c8b4342866d8e3 | unit_tests/test_analyse_idynomics.py | unit_tests/test_analyse_idynomics.py | Python |
<|file_sep|>package.json.diff
original:
"electron": "^1.7.9",
updated:
<|file_sep|>original/package.json
"name": "substance-texture",
"version": "1.0.0-alpha.4-preview.5",
"description": "A scientific word processor.",
"main": "dist/texture.cjs.js",
"jsnext:main": "index.es.js",
"dependencies": {
"... | "name": "substance-texture",
"version": "1.0.0-alpha.4-preview.5",
"description": "A scientific word processor.",
"main": "dist/texture.cjs.js",
"jsnext:main": "index.es.js",
"dependencies": {
"lodash": "^4.14.1",
"substance": "1.0.0-preview.5"
},
"devDependencies": {
"electron": "^1.7.9",
... | <|file_sep|>package.json.diff
original:
"electron": "^1.7.9",
updated:
<|file_sep|>original/package.json
"name": "substance-texture",
"version": "1.0.0-alpha.4-preview.5",
"description": "A scientific word processor.",
"main": "dist/texture.cjs.js",
"jsnext:main": "index.es.js",
"dependencies": {
"... | 1f34fbaecc9abc186dba4dc50fc96bd5bcb0ef87 | package.json | package.json | JSON |
<|file_sep|>lib/api-client/configuration.rb.diff
original:
path = "#{path}/" unless path[-1] == '/'
updated:
path = "#{path}/" unless path[path.size - 1, 1] == '/'
<|file_sep|>original/lib/api-client/configuration.rb
path = "#{path}/" unless path[-1] == '/'
@paths = { :default => path }
end
... | path = "#{path}/" unless path[path.size - 1, 1] == '/'
@paths = { :default => path }
end
# Set several api urls.
#
# @param [Hash] hash with paths to api urls.
def paths=(paths = {})
@paths = {}
paths.each do |name, path|
if path[path.size - 1, 1] == '/'
@p... | <|file_sep|>lib/api-client/configuration.rb.diff
original:
path = "#{path}/" unless path[-1] == '/'
updated:
path = "#{path}/" unless path[path.size - 1, 1] == '/'
<|file_sep|>original/lib/api-client/configuration.rb
path = "#{path}/" unless path[-1] == '/'
@paths = { :default => path }
end
... | c106942475366ab361be814d0b1dd4f6787072f0 | lib/api-client/configuration.rb | lib/api-client/configuration.rb | Ruby |
<|file_sep|>.appveyor.yml.diff
original:
updated:
- nodejs_version: "10"
<|file_sep|>original/.appveyor.yml
image:
- Visual Studio 2015
- Visual Studio 2017
platform: x64
environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "6"
- nodejs_version: "4"
install:
- ps: Install-Product nod... | image:
- Visual Studio 2015
- Visual Studio 2017
platform: x64
environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "8"
- nodejs_version: "6"
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install
build: off
test_script:
- set GLOBAL_CLIENT=false
- npm... | <|file_sep|>.appveyor.yml.diff
original:
updated:
- nodejs_version: "10"
<|file_sep|>original/.appveyor.yml
image:
- Visual Studio 2015
- Visual Studio 2017
platform: x64
environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "6"
- nodejs_version: "4"
install:
- ps: Install-Product nod... | 640bfd1d4c72729e761a0fbe93dc1749f7895138 | .appveyor.yml | .appveyor.yml | YAML |
<|file_sep|>original/wire-schema/gradle.properties
POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_PACKAGING=jar
<|file_sep|>current/wire-schema/gradle.properties
POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_PACKAGING=jar
<|file_sep|>updated/wire-schema/gradle.properties | POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_DESCRIPTION=Multiplatform proto parsing and pruning library
POM_PACKAGING=jar | <|file_sep|>original/wire-schema/gradle.properties
POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_PACKAGING=jar
<|file_sep|>current/wire-schema/gradle.properties
POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_PACKAGING=jar
<|file_sep|>updated/wire-schema/gradle.properties
POM_ARTIFACT_ID=wire-schema
POM_NAME=Wire
POM_DES... | 10d22cbc722628ab49f270fbf779a33ca3d44df0 | wire-schema/gradle.properties | wire-schema/gradle.properties | INI |
<|file_sep|>Common/Constants.cs.diff
original:
namespace ReimuPlugins.Common
updated:
using System.Text;
namespace ReimuPlugins.Common
<|file_sep|>original/Common/Constants.cs
public enum SortType
{
String = 0,
Number,
Float,
Hex
}
public enum SystemInfoType
{
... |
public enum SystemInfoType
{
String = 0,
Path,
Directory,
Title,
Extension,
CreateTime,
LastAccessTime,
LastWriteTime,
FileSize
}
public static class Enc
{
public static readonly Encoding SJIS = Encoding.GetEncoding("s... | <|file_sep|>Common/Constants.cs.diff
original:
namespace ReimuPlugins.Common
updated:
using System.Text;
namespace ReimuPlugins.Common
<|file_sep|>original/Common/Constants.cs
public enum SortType
{
String = 0,
Number,
Float,
Hex
}
public enum SystemInfoType
{
... | 5406194784278a5d74d903079e77933fc10969cc | Common/Constants.cs | Common/Constants.cs | C# |
<|file_sep|>original/vagrant/develop/assets/functions.sh
rm -f $LOG
exit $1
}
trap '_exit $?' EXIT
# Apt package installations (only ask Apt to install missing packages)
function install_packages {
to_install=()
for pkg in "$@"; do
installed=$(/usr/bin/dpkg-query --show --showformat='${db:Stat... | rm -f $LOG
exit $1
}
trap '_exit $?' EXIT
# Apt package installations (only ask Apt to install missing packages)
function install_packages {
to_install=()
for pkg in "$@"; do
installed=$(/usr/bin/dpkg-query --show --showformat='${db:Status-Status}\n' $pkg 2>&1 | grep -ci ^installed)
[ ... | <|file_sep|>original/vagrant/develop/assets/functions.sh
rm -f $LOG
exit $1
}
trap '_exit $?' EXIT
# Apt package installations (only ask Apt to install missing packages)
function install_packages {
to_install=()
for pkg in "$@"; do
installed=$(/usr/bin/dpkg-query --show --showformat='${db:Stat... | 44edfa4fbbbe0309f4d84a6352484791a799fa34 | vagrant/develop/assets/functions.sh | vagrant/develop/assets/functions.sh | Shell |
<|file_sep|>original/data/building-hours/8-cad.yaml
name: Center for Arts and Dance
category: Academia
image: center-for-arts-and-dance
schedule:
- title: Hours
hours:
- {days: [Mo, Tu, We, Th, Fr], from: '7:00am', to: '12:00am'}
- {days: [Sa], from: '8:00am', to: '12:00am'}
- {days: [Su], from... | name: Center for Arts and Dance
category: Academia
image: center-for-arts-and-dance
schedule:
- title: Hours
hours:
# - {days: [Mo, Tu, We, Th, Fr], from: '7:00am', to: '12:00am'}
# - {days: [Sa], from: '8:00am', to: '12:00am'}
# - {days: [Su], from: '10:00am', to: '12:00am'}
breakSchedule:
... | <|file_sep|>original/data/building-hours/8-cad.yaml
name: Center for Arts and Dance
category: Academia
image: center-for-arts-and-dance
schedule:
- title: Hours
hours:
- {days: [Mo, Tu, We, Th, Fr], from: '7:00am', to: '12:00am'}
- {days: [Sa], from: '8:00am', to: '12:00am'}
- {days: [Su], from... | 4e53eaef32e3b724d9640d7283b49610ff78f3d8 | data/building-hours/8-cad.yaml | data/building-hours/8-cad.yaml | YAML |
<|file_sep|>original/webpack.config.js
},
{
test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/,
use: "url-loader"
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery... | {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/,
use: "url-loader"
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
}),
],
resolve: {
... | <|file_sep|>original/webpack.config.js
},
{
test: /\.woff2?$|\.ttf$|\.eot$|\.svg$/,
use: "url-loader"
}
]
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery... | a571ce2b1948bdf1e5c6bcb699a323dae3632b9e | webpack.config.js | webpack.config.js | JavaScript |
<|file_sep|>original/requirements_dev.txt
-r requirements.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watchdog==0.8.3
Sphinx==1.6.4
tox==2.9.1
flake8==3.4.1
coverage==4.4.1
cryptography==2.0.3
PyYAML==3.12
<|file_sep|>current/requirements_dev.txt
-r requirements.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watch... | -r requirements.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watchdog==0.8.3
Sphinx==1.6.4
tox==2.9.1
flake8==3.4.1
coverage==4.4.1
cryptography==2.1.1
PyYAML==3.12 | <|file_sep|>original/requirements_dev.txt
-r requirements.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watchdog==0.8.3
Sphinx==1.6.4
tox==2.9.1
flake8==3.4.1
coverage==4.4.1
cryptography==2.0.3
PyYAML==3.12
<|file_sep|>current/requirements_dev.txt
-r requirements.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watch... | e846709962d02469fd303342abe9f8c5c22c9355 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/tests/data/desktop/os-windows.yaml
<|file_sep|>current/tests/data/desktop/os-windows.yaml
<|file_sep|>updated/tests/data/desktop/os-windows.yaml | -
headers: 'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)'
result: { browser: { name: 'Internet Explorer', version: '6.0' }, os: { name: Windows, version: { value: '5.1', alias: XP } }, device: { type: desktop } }
-
headers: 'User-Agent: Mozilla/5.0 (Windows NT 5.1; WinXP; x86) AppleWebKit/537.... | <|file_sep|>original/tests/data/desktop/os-windows.yaml
<|file_sep|>current/tests/data/desktop/os-windows.yaml
<|file_sep|>updated/tests/data/desktop/os-windows.yaml
-
headers: 'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)'
result: { browser: { name: 'Internet Explorer', version: '6.0' }, os: { ... | dedb5ffba3a8bacf4bdc60ed95f09cf7959d87da | tests/data/desktop/os-windows.yaml | tests/data/desktop/os-windows.yaml | YAML |
<|file_sep|>original/README.md
Built to be lightweight and durable, you can easily adapt it to monitor BungeeCord or server instances.
#### Try it out!
You can see an up-to-date copy of the master branch running on http://minetrack.me
#### Usage
1. Customize it by editing the ```config.json``` file.
2. Run ```npm ins... | Built to be lightweight and durable, you can easily adapt it to monitor BungeeCord or server instances.
#### Try it out!
You can see an up-to-date copy of the master branch running on http://minetrack.me
#### Usage
1. Customize it by editing the ```config.json``` file.
2. Run ```npm install```.
2. Run ```node app.js`... | <|file_sep|>original/README.md
Built to be lightweight and durable, you can easily adapt it to monitor BungeeCord or server instances.
#### Try it out!
You can see an up-to-date copy of the master branch running on http://minetrack.me
#### Usage
1. Customize it by editing the ```config.json``` file.
2. Run ```npm ins... | 1b4dee236dc29c8f2a82a5ad62fdedb0e6475f47 | README.md | README.md | Markdown |
<|file_sep|>original/ui/catalog-header.html
<div class="alert alert-info">
<strong>Welcome</strong> to our online catalog. <a href="{{ @BASE }}/contact">Contact us</a> if you are interested in placing an order for in-store pickup or <a href="{{ @BASE }}/shipping">to be shipped (US only)</a>.
</div>
<|file_sep|>curren... | <div class="alert alert-info">
<strong>Welcome</strong> to our online store! This is our soft launch, so you may encounter problems placing an order. Please don't hesitate to <a href="{{ @BASE}}/contact">contact us</a> if you do. We appreciate your understanding and patience while we work out the kinks.
</div> | <|file_sep|>original/ui/catalog-header.html
<div class="alert alert-info">
<strong>Welcome</strong> to our online catalog. <a href="{{ @BASE }}/contact">Contact us</a> if you are interested in placing an order for in-store pickup or <a href="{{ @BASE }}/shipping">to be shipped (US only)</a>.
</div>
<|file_sep|>curren... | 44a1e760c380eca702adda1a5849b271ce63fe59 | ui/catalog-header.html | ui/catalog-header.html | HTML |
<|file_sep|>src/Events/RegisterException.php.diff
original:
/**
* @var \SimpleLog\LogInterface
*/
protected $log;
updated:
<|file_sep|>original/src/Events/RegisterException.php
/**
* @return bool
*/
public static function isKillingAllowed()
{
return self::$allowKill;
... | public static function isKillingAllowed()
{
return self::$allowKill;
}
/**
* Allow to kill application if register throw an exception
*
* @param string $eventName
* @param array $parameters
* @throws \Exception
*/
public function __construct($eventName, array $... | <|file_sep|>src/Events/RegisterException.php.diff
original:
/**
* @var \SimpleLog\LogInterface
*/
protected $log;
updated:
<|file_sep|>original/src/Events/RegisterException.php
/**
* @return bool
*/
public static function isKillingAllowed()
{
return self::$allowKill;
... | 9c7365e4960f3ae6ead01fdf84d09e9e0adb66ee | src/Events/RegisterException.php | src/Events/RegisterException.php | PHP |
<|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml | ---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
sections:
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:"
build:
preview_command: vuepress build -d .vuepress/dist
publish_command: vuepress build -d .vuepress/dist
... | <|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml
---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
sections:
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_temp... | 5b27a9df37b4eb55749ff03b27e3153d0d3b6e0c | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/classes/Renderers/PhpRenderer.php
use Nin\Renderer;
class PhpRenderer extends Renderer
{
protected $controller;
public function __construct($controller)
{
$this->controller = $controller;
}
public function render($inc_path, $options)
{
$func = function($inc_path, $options) {
extract... |
use Nin\Renderer;
class PhpRenderer extends Renderer
{
protected $controller;
public function __construct($controller)
{
$this->controller = $controller;
}
public function render($inc_path, $options)
{
$func = function($inc_path, $options) {
extract($options);
include($inc_path);
};
$func->call(... | <|file_sep|>original/classes/Renderers/PhpRenderer.php
use Nin\Renderer;
class PhpRenderer extends Renderer
{
protected $controller;
public function __construct($controller)
{
$this->controller = $controller;
}
public function render($inc_path, $options)
{
$func = function($inc_path, $options) {
extract... | d9a815e2a92c1d6b77a92c61ca0f27e199ef7781 | classes/Renderers/PhpRenderer.php | classes/Renderers/PhpRenderer.php | PHP |
<|file_sep|>src/index.js.diff
original:
updated:
import Perf from 'react-addons-perf';
<|file_sep|>src/index.js.diff
original:
import Perf from 'react-addons-perf';
updated:
import { generateLists } from './utils/generate_lists';
<|file_sep|>src/index.js.diff
original:
updated:
const lists = generateLists(5, 20);
<|... | import 'react-virtualized/styles.css';
import './index.css';
window.Perf = Perf;
const lists = generateLists(5, 20);
ReactDOM.render(
<div className='KanbanWrapper'>
<AutoSizer>
{({ width, height }) => {
return (
<Kanban
lists={lists}
width={width}
he... | <|file_sep|>src/index.js.diff
original:
updated:
import Perf from 'react-addons-perf';
<|file_sep|>src/index.js.diff
original:
import Perf from 'react-addons-perf';
updated:
import { generateLists } from './utils/generate_lists';
<|file_sep|>src/index.js.diff
original:
updated:
const lists = generateLists(5, 20);
<|... | 43d99e445612c68b56861c6c456096468e19ccd1 | src/index.js | src/index.js | JavaScript |
<|file_sep|>original/v2/php/README.md
* Download and install the [PHP Client library for Google APIs](
https://developers.google.com/api-client-library/php/start/installation).
If you're using the `composer` package manager, a composer.json file has
been provided, so you can run `composer install` in this ... | * Download and install the [PHP Client library for Google APIs](
https://developers.google.com/api-client-library/php/start/installation).
If you're using the `composer` package manager, a composer.json file has
been provided, so you can run `composer install` in this directory.
* Copy the AdSense Managemen... | <|file_sep|>original/v2/php/README.md
* Download and install the [PHP Client library for Google APIs](
https://developers.google.com/api-client-library/php/start/installation).
If you're using the `composer` package manager, a composer.json file has
been provided, so you can run `composer install` in this ... | 81e46d5d60c37e731d9408c6970367c8d9cc3126 | v2/php/README.md | v2/php/README.md | Markdown |
<|file_sep|>original/android/gradle/wrapper/gradle-wrapper.properties
#Tue Jan 23 18:00:48 CST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionSha256... | #Tue Jan 23 18:00:48 CST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3-all.zip
distributionSha256Sum=f4d820c2a9685710eba5b92f10e0e4fb20e0d6c0dd1f46971e658160f25e7147 | <|file_sep|>original/android/gradle/wrapper/gradle-wrapper.properties
#Tue Jan 23 18:00:48 CST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionSha256... | 97c6bf9b46468197bebac27eb700d145e9c10bd3 | android/gradle/wrapper/gradle-wrapper.properties | android/gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS=-Xmx1024m"
script:
- mvn install -B -V
- mvn javadoc:jar
- mvn javadoc:test-aggregate
notifications:
irc: "irc.freenode.org#fcrepo"
email:
- fedora-tech@googlegroups.com
<|file... | language: java
sudo: false
jdk:
- oraclejdk8
before_install:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS=-Xmx1024m"
script:
- mvn install -B -V
- mvn javadoc:jar
- mvn javadoc:test-aggregate
notifications:
irc: "irc.freenode.org#fcrepo"
email:
- fedora-tech@googlegroups.com
| <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
before_install:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS=-Xmx1024m"
script:
- mvn install -B -V
- mvn javadoc:jar
- mvn javadoc:test-aggregate
notifications:
irc: "irc.freenode.org#fcrepo"
email:
- fedora-tech@googlegroups.com
<|file... | c3ed9ff32228e2b95fc2842cb8477652ba629bf5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/hk/hkd-records.yaml.diff
original:
hash: 14fee14a21edaea4e507ff50f8bd1556ede74f8c47e90be938e607f5ca01d48f
updated:
hash: e0f6eb20b29f54ebd693b71341bb026077fea46aa54a8ddc9cea31202fee4c3e
<|file_sep|>packages/hk/hkd-records.yaml.diff
original:
changelog: |
updated:
changelog: |+
<|file_sep|>packages/... |
* First version. Released on an unsuspecting world.
## 0.0.2 -- 2022-07-23
* added documentation
* changed generic functions to default member functions
* changed HkdProd and LkdProd type names
basic-deps:
base: '>=3 && <5'
text: '>=1.2 && <1.3'
hkd: '>=0.1 && <0.2'
all-versions:
- 0.0.1
- 0.0.2
aut... | <|file_sep|>packages/hk/hkd-records.yaml.diff
original:
hash: 14fee14a21edaea4e507ff50f8bd1556ede74f8c47e90be938e607f5ca01d48f
updated:
hash: e0f6eb20b29f54ebd693b71341bb026077fea46aa54a8ddc9cea31202fee4c3e
<|file_sep|>packages/hk/hkd-records.yaml.diff
original:
changelog: |
updated:
changelog: |+
<|file_sep|>packages/... | b2bcdf164f6cfaf4da89d4c8184872b36c59bbb5 | packages/hk/hkd-records.yaml | packages/hk/hkd-records.yaml | YAML |
<|file_sep|>hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c.diff
original:
updated:
extern int ets_sprintf(char*, const char*, ...);
#define sprintf ets_sprintf
<|file_sep|>hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c.diff
original:
return 0;
updated:
long result = 0;
return resul... | }
char * utoa (unsigned int val, char *s, int radix)
{
sprintf(s, "%u", val);
return s;
}
char * ultoa (unsigned long val, char *s, int radix)
{
sprintf(s, "%lu", val);
return s;
}
char * dtostre (double __val, char *__s, unsigned char __prec, unsigned char __flags)
{
*__s = 0;
return __s;
}
char * d... | <|file_sep|>hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c.diff
original:
updated:
extern int ets_sprintf(char*, const char*, ...);
#define sprintf ets_sprintf
<|file_sep|>hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c.diff
original:
return 0;
updated:
long result = 0;
return resul... | 1154cd8ae5e2835514a5d890d68d082b7dfe26d1 | hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c | hardware/arduino/esp8266/cores/esp8266/core_esp8266_noniso.c | C |
<|file_sep|>original/tests/basics/dict1.py
# equality operator on dicts of different size
print({} == {1:1})
# equality operator on dicts of same size but with different keys
print({1:1} == {2:1})
# value not found
try:
{}[0]
except KeyError:
print('KeyError')
# unsupported unary op
try:
+{}
except Type... |
# equality operator on dicts of different size
print({} == {1:1})
# equality operator on dicts of same size but with different keys
print({1:1} == {2:1})
# value not found
try:
{}[0]
except KeyError as er:
print('KeyError', er, repr(er), er.args)
# unsupported unary op
try:
+{}
except TypeError:
pri... | <|file_sep|>original/tests/basics/dict1.py
# equality operator on dicts of different size
print({} == {1:1})
# equality operator on dicts of same size but with different keys
print({1:1} == {2:1})
# value not found
try:
{}[0]
except KeyError:
print('KeyError')
# unsupported unary op
try:
+{}
except Type... | 6caca3259f4ec8f298b1d35f15e4492efbcff6b1 | tests/basics/dict1.py | tests/basics/dict1.py | Python |
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
- lists
- dictionaries
Examples
--------
Encoding objects is as simple as calling `#bencode` on them:
"foo bar".bencode # => "7:foo bar"
42.bencode # => "i42e"
[1, 2, 3].bencode ... | - dictionaries
Examples
--------
Encoding objects is as simple as calling `#bencode` on them:
```ruby
"foo bar".bencode # => "7:foo bar"
42.bencode # => "i42e"
[1, 2, 3].bencode # => "li1ei2ei3ee"
{"foo" => 1, "bar" => -10}.bencode # => "d3:bari-10e3:foo... | <|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
- lists
- dictionaries
Examples
--------
Encoding objects is as simple as calling `#bencode` on them:
"foo bar".bencode # => "7:foo bar"
42.bencode # => "i42e"
[1, 2, 3].bencode ... | 7e2d7e21a33759534ae56f8b735e3b8347bf0cda | README.md | README.md | Markdown |
<|file_sep|>problems/complementary-colours/solution.ts.diff
original:
static CHARS = "0123456789abcdef";
solve(input: string) {
var pairs = {};
for (var c = 0; c < Solution.CHARS.length; c++) {
pairs[Solution.CHARS[c]] = Solution.CHARS[Solution.CHARS.length - 1 - c];
updated:
solve(x: string) {
... | import {ISolution} from '../solution.interface';
export class Solution implements ISolution<string, string> {
solve(x: string) {
for (var i = 0, c = "0123456789abcdef", p = {}; i < 16; i++) {
p[c[i]] = c[15 - i];
}
return "#" + p[x[1]] + p[x[2]]
+ p[x[3]] + p[x[4]]
... | <|file_sep|>problems/complementary-colours/solution.ts.diff
original:
static CHARS = "0123456789abcdef";
solve(input: string) {
var pairs = {};
for (var c = 0; c < Solution.CHARS.length; c++) {
pairs[Solution.CHARS[c]] = Solution.CHARS[Solution.CHARS.length - 1 - c];
updated:
solve(x: string) {
... | 3d2ee519360a78e425fbd7b4c8fa098878b94843 | problems/complementary-colours/solution.ts | problems/complementary-colours/solution.ts | TypeScript |
<|file_sep|>original/src/styles/components/Select/Select.scss
#{$InputField} {
padding-left: ceil($padding / 2);
padding-right: $arrowSize;
// Removes outline in Firefox
// https://stackoverflow.com/questions/3773430/remove-outline-from-select-box-in-ff/11603104#11603104
@-moz-document url-prefix(... | #{$InputField} {
padding-left: ceil($padding / 2);
padding-right: $arrowSize;
// Removes outline in Firefox
// https://stackoverflow.com/questions/3773430/remove-outline-from-select-box-in-ff/11603104#11603104
@-moz-document url-prefix() {
color: transparent;
text-shadow: 0 0 0 black;
... | <|file_sep|>original/src/styles/components/Select/Select.scss
#{$InputField} {
padding-left: ceil($padding / 2);
padding-right: $arrowSize;
// Removes outline in Firefox
// https://stackoverflow.com/questions/3773430/remove-outline-from-select-box-in-ff/11603104#11603104
@-moz-document url-prefix(... | b6006474f4b4f1a95978fba904f9e630e6d66752 | src/styles/components/Select/Select.scss | src/styles/components/Select/Select.scss | SCSS |
<|file_sep|>original/osu.Game/Models/RealmUser.cs
{
public class RealmUser : EmbeddedObject, IUser, IEquatable<RealmUser>, IDeepCloneable<RealmUser>
{
public int OnlineID { get; set; } = 1;
public string Username { get; set; } = string.Empty;
[Ignored]
public CountryCode Countr... | {
public class RealmUser : EmbeddedObject, IUser, IEquatable<RealmUser>, IDeepCloneable<RealmUser>
{
public int OnlineID { get; set; } = 1;
public string Username { get; set; } = string.Empty;
[Ignored]
public CountryCode CountryCode
{
get => Enum.TryParse(C... | <|file_sep|>original/osu.Game/Models/RealmUser.cs
{
public class RealmUser : EmbeddedObject, IUser, IEquatable<RealmUser>, IDeepCloneable<RealmUser>
{
public int OnlineID { get; set; } = 1;
public string Username { get; set; } = string.Empty;
[Ignored]
public CountryCode Countr... | 1e151baae8cbf2e0c6dc60e20aa8dd90658a290f | osu.Game/Models/RealmUser.cs | osu.Game/Models/RealmUser.cs | C# |
<|file_sep|>original/library/HTMLPurifier/HTML5Config.php
class HTMLPurifier_HTML5Config
{
/**
* @param string|array|HTMLPurifier_Config $config
* @param HTMLPurifier_ConfigSchema $schema
* @return HTMLPurifier_Config
*/
public static function create($config = null, HTMLPurifier_ConfigSche... | class HTMLPurifier_HTML5Config
{
/**
* @param string|array|HTMLPurifier_Config $config
* @param HTMLPurifier_ConfigSchema $schema
* @return HTMLPurifier_Config
*/
public static function create($config = null, HTMLPurifier_ConfigSchema $schema = null)
{
if (!$schema instanceof H... | <|file_sep|>original/library/HTMLPurifier/HTML5Config.php
class HTMLPurifier_HTML5Config
{
/**
* @param string|array|HTMLPurifier_Config $config
* @param HTMLPurifier_ConfigSchema $schema
* @return HTMLPurifier_Config
*/
public static function create($config = null, HTMLPurifier_ConfigSche... | 659582e3550753c676842aeec3b8119f00de73fb | library/HTMLPurifier/HTML5Config.php | library/HTMLPurifier/HTML5Config.php | PHP |
<|file_sep|>original/prolific.shuttle/package.json
"license": "MIT",
"repository":
{
"type": "git",
"url": "http://github.com/bigeasy/prolific.git"
},
"dependencies":
{
"abend": ... | "license": "MIT",
"repository":
{
"type": "git",
"url": "http://github.com/bigeasy/prolific.git"
},
"dependencies":
{
"abend": "1.0.x",
"isochronous... | <|file_sep|>original/prolific.shuttle/package.json
"license": "MIT",
"repository":
{
"type": "git",
"url": "http://github.com/bigeasy/prolific.git"
},
"dependencies":
{
"abend": ... | 31af631a81c364fa74c2272f301924063c7b04a5 | prolific.shuttle/package.json | prolific.shuttle/package.json | JSON |
<|file_sep|>packages/hz/hzenity.yaml.diff
original:
hash: ac77589f6439cb26b7d09f25041bd1b50034bdd3b2baefac48bbba3e0a385f33
updated:
hash: 8015d18188feda6f4ec4b92f6d336ce64e8fb687c6803beb9d47e64b0395e996
<|file_sep|>packages/hz/hzenity.yaml.diff
original:
updated:
- '0.3'
<|file_sep|>original/packages/hz/hzenity.yaml
... | text: -any
process: -any
data-default: -any
containers: -any
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.3'
author: Emil Axelsson
latest: '0.3'
description-type: haddock
description: ! 'This is a Haskell wrapper around the
<https://en.wikipedia.org/wiki/Zenity Zenity> dialog
program.
Examples can be ... | <|file_sep|>packages/hz/hzenity.yaml.diff
original:
hash: ac77589f6439cb26b7d09f25041bd1b50034bdd3b2baefac48bbba3e0a385f33
updated:
hash: 8015d18188feda6f4ec4b92f6d336ce64e8fb687c6803beb9d47e64b0395e996
<|file_sep|>packages/hz/hzenity.yaml.diff
original:
updated:
- '0.3'
<|file_sep|>original/packages/hz/hzenity.yaml
... | ef9110772aafb0cae17e5cffa6779c8cf6af4ec2 | packages/hz/hzenity.yaml | packages/hz/hzenity.yaml | YAML |
<|file_sep|>original/web/sass-files/sass/partials/_command-box.scss
.command-box {
position: absolute;
background-color: #fff;
width: 100%;
border: $border-gray;
bottom: 38px;
overflow: auto;
@extend %popover-box-shadow;
.sidebar--right & {
bottom: 100px;
}
}
.command-name {... | .command-box {
position: absolute;
background-color: #fff;
width: 100%;
border: $border-gray;
bottom: 38px;
overflow: auto;
z-index: 100
@extend %popover-box-shadow;
.sidebar--right & {
bottom: 100px;
}
}
.command-name {
position: relative;
width: 100%;
line-... | <|file_sep|>original/web/sass-files/sass/partials/_command-box.scss
.command-box {
position: absolute;
background-color: #fff;
width: 100%;
border: $border-gray;
bottom: 38px;
overflow: auto;
@extend %popover-box-shadow;
.sidebar--right & {
bottom: 100px;
}
}
.command-name {... | 6658d61e43e8781141319cc2e2cc02736cc0db33 | web/sass-files/sass/partials/_command-box.scss | web/sass-files/sass/partials/_command-box.scss | SCSS |
<|file_sep|>original/README.md
Knife Chef Cleanup
=======================
The main purpose of this knife plugin is to find objects that are not being used
on the chef server so they can be cleaned up
<|file_sep|>current/README.md
Knife Chef Cleanup
=======================
The main purpose of this knife plugin is to f... | [](https://travis-ci.org/bigbam505/knife-chef-cleanup)
[](https://codeclimate.com/github/bigbam505/knife-c... | <|file_sep|>original/README.md
Knife Chef Cleanup
=======================
The main purpose of this knife plugin is to find objects that are not being used
on the chef server so they can be cleaned up
<|file_sep|>current/README.md
Knife Chef Cleanup
=======================
The main purpose of this knife plugin is to f... | 7bbf06375a85d2352cfd9c0f541e37f1844d636b | README.md | README.md | Markdown |
<|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
This template includes two sections:
updated:
This template includes three sections:
<|file_sep|>original/.github/ISSUE_TEMPLATE.md
<!--
This template includes two sections:
1. Bug reporting
2. Feature request
3. Question
Please remove whichever section that does no... | <!--
This template includes three sections:
1. Bug reporting
2. Feature request
3. Question
Please remove sections that do not apply to your issue
-->
<!--********************************************************************
Reporting a Bug.
*********************************************************************-->
>... | <|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
This template includes two sections:
updated:
This template includes three sections:
<|file_sep|>original/.github/ISSUE_TEMPLATE.md
<!--
This template includes two sections:
1. Bug reporting
2. Feature request
3. Question
Please remove whichever section that does no... | e9106a3d0e42df92f84d60bc6842e96d67293541 | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | Markdown |
<|file_sep|>original/components/table/demo/paging-columns.md
<|file_sep|>current/components/table/demo/paging-columns.md
<|file_sep|>updated/components/table/demo/paging-columns.md | ---
order: 20
title: 横向滚屏表格
hidden: true
---
对于列数很多的数据,可以进行横向的分页,通过切换符切换当前展现的列。
````jsx
import { Table } from 'antd';
const columns = [
{ title: '姓名', dataIndex: 'name', key: 'name' },
{ title: '年龄', dataIndex: 'age', key: 'age' },
{ title: '列1', dataIndex: 'age', key: '1' },
{ title: '列2', dataIndex: 'age',... | <|file_sep|>original/components/table/demo/paging-columns.md
<|file_sep|>current/components/table/demo/paging-columns.md
<|file_sep|>updated/components/table/demo/paging-columns.md
---
order: 20
title: 横向滚屏表格
hidden: true
---
对于列数很多的数据,可以进行横向的分页,通过切换符切换当前展现的列。
````jsx
import { Table } from 'antd';
const columns = ... | dd0a4c7f222c5028a5f4c14c819eb279f85092db | components/table/demo/paging-columns.md | components/table/demo/paging-columns.md | Markdown |
<|file_sep|>original/Cargo.toml
[package]
name = "webbrowser"
description = "Open URLs in web browsers available on a platform"
version = "0.3.1"
authors = ["Amod Malviya @amodm"]
documentation = "http://code.rootnet.in/webbrowser-rs/webbrowser"
homepage = "https://github.com/amodm/webbrowser-rs"
repository = "https://... | [package]
name = "webbrowser"
description = "Open URLs in web browsers available on a platform"
version = "0.3.1"
authors = ["Amod Malviya @amodm"]
documentation = "http://code.rootnet.in/webbrowser-rs/webbrowser"
homepage = "https://github.com/amodm/webbrowser-rs"
repository = "https://github.com/amodm/webbrowser-rs"
... | <|file_sep|>original/Cargo.toml
[package]
name = "webbrowser"
description = "Open URLs in web browsers available on a platform"
version = "0.3.1"
authors = ["Amod Malviya @amodm"]
documentation = "http://code.rootnet.in/webbrowser-rs/webbrowser"
homepage = "https://github.com/amodm/webbrowser-rs"
repository = "https://... | f6ae89f138491e6babe21abb3d1845cdf54b898b | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/setup.py
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='master',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Jann... | <|file_sep|>original/setup.py
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist... | e2e2a0ac1d36c304f6dffc7c15d37ff17225a23e | setup.py | setup.py | Python |
<|file_sep|>original/README.md
* shouldComponentUpdate
* componentWillUpdate
* componentDidUpdate
* componentWillUnmount
* Data Model
* Component State
## Week 2 - Event Handling, Forms, and Validation
* State in components
* Autobinding
* Event Delegation
## Week 3 - Advanced and Reusable Co... | * Autobinding
* Event Delegation
## Week 3 - Advanced and Reusable Components
* Modularity and Separation of Responsibilities
* Ownership
* Children
* Namespaced components
## Week 4 - CSS in React
* Failures of traditional CSS
* Globals and Namespacing
* Dependencies
* Dead Code Elimination
* Minificat... | <|file_sep|>original/README.md
* shouldComponentUpdate
* componentWillUpdate
* componentDidUpdate
* componentWillUnmount
* Data Model
* Component State
## Week 2 - Event Handling, Forms, and Validation
* State in components
* Autobinding
* Event Delegation
## Week 3 - Advanced and Reusable Co... | 6ab2472b09e3a7f4b268827f2c1eee8c5bc5a69f | README.md | README.md | Markdown |
<|file_sep|>package.json.diff
original:
"marked": "^0.3.3",
updated:
"marked": "^0.3.5",
<|file_sep|>original/package.json
"cheerio": "0.15.0",
"fs-plus": "^2.4",
"fuzzaldrin": "^2.1",
"glob": "4.3.1",
"hosted-git-info": "^2.1.4",
"marked": "^0.3.3",
"request": "^2.40",
"roaster"... | "cheerio": "0.15.0",
"fs-plus": "^2.4",
"fuzzaldrin": "^2.1",
"glob": "4.3.1",
"hosted-git-info": "^2.1.4",
"marked": "^0.3.5",
"request": "^2.40",
"roaster": "^1.1.2",
"season": "^5.0.2",
"semver": "^4.3.2",
"underscore-plus": "^1.0.6",
"winreg": "^1.2.1"
},
"reposit... | <|file_sep|>package.json.diff
original:
"marked": "^0.3.3",
updated:
"marked": "^0.3.5",
<|file_sep|>original/package.json
"cheerio": "0.15.0",
"fs-plus": "^2.4",
"fuzzaldrin": "^2.1",
"glob": "4.3.1",
"hosted-git-info": "^2.1.4",
"marked": "^0.3.3",
"request": "^2.40",
"roaster"... | 8ae1457e06ce8cd5dad3c6e5e9c1daada0fb2820 | package.json | package.json | JSON |
<|file_sep|>Interfaces/WorldLogicInterface.h.diff
original:
#include "ServiceInterface.h"
updated:
<|file_sep|>original/Interfaces/WorldLogicInterface.h
/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file WorldLogicInterface.h
* @brief
*/
#include "ServiceInterface... | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file WorldLogicInterface.h
* @brief
*/
#ifndef incl_Interfaces_WorldLogicInterface_h
#define incl_Interfaces_WorldLogicInterface_h
#include "ServiceInterface.h"
#include "ForwardDefines.h"
#include <QObject>
class QSt... | <|file_sep|>Interfaces/WorldLogicInterface.h.diff
original:
#include "ServiceInterface.h"
updated:
<|file_sep|>original/Interfaces/WorldLogicInterface.h
/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file WorldLogicInterface.h
* @brief
*/
#include "ServiceInterface... | f90bb76d0ea96d1a6115fec0f5a922832b02759c | Interfaces/WorldLogicInterface.h | Interfaces/WorldLogicInterface.h | C |
<|file_sep|>original/Documentation/devicetree/bindings/video/ti,omap5-dss.txt
<|file_sep|>current/Documentation/devicetree/bindings/video/ti,omap5-dss.txt
<|file_sep|>updated/Documentation/devicetree/bindings/video/ti,omap5-dss.txt | Texas Instruments OMAP5 Display Subsystem
=========================================
See Documentation/devicetree/bindings/video/ti,omap-dss.txt for generic
description about OMAP Display Subsystem bindings.
DSS Core
--------
Required properties:
- compatible: "ti,omap5-dss"
- reg: address and length of the register ... | <|file_sep|>original/Documentation/devicetree/bindings/video/ti,omap5-dss.txt
<|file_sep|>current/Documentation/devicetree/bindings/video/ti,omap5-dss.txt
<|file_sep|>updated/Documentation/devicetree/bindings/video/ti,omap5-dss.txt
Texas Instruments OMAP5 Display Subsystem
=========================================
S... | dedf2d44336e542d03653f60040938b0adce0a5f | Documentation/devicetree/bindings/video/ti,omap5-dss.txt | Documentation/devicetree/bindings/video/ti,omap5-dss.txt | Text |
<|file_sep|>original/ds_binary_heap.py
def _percolate_up(self, i):
while i // 2 > 0:
if self.heap_ls[i] < self.heap_ls[i // 2]:
tmp = self.heap_ls[i // 2]
self.heap_ls[i // 2] = self.heap_ls[i]
self.heap_ls[i] = tmp
i = i // 2
def ... | tmp = self.heap_ls[i // 2]
self.heap_ls[i // 2] = self.heap_ls[i]
self.heap_ls[i] = tmp
i = i // 2
def insert(self, new_node):
self.heap_ls.append(new_node)
self.current_size += 1
self._percolate_up(self.current_size)
def _per... | <|file_sep|>original/ds_binary_heap.py
def _percolate_up(self, i):
while i // 2 > 0:
if self.heap_ls[i] < self.heap_ls[i // 2]:
tmp = self.heap_ls[i // 2]
self.heap_ls[i // 2] = self.heap_ls[i]
self.heap_ls[i] = tmp
i = i // 2
def ... | e72156f50b0bab241b90b0f0c53414529740acd6 | ds_binary_heap.py | ds_binary_heap.py | Python |
<|file_sep|>original/salt/kibana/dockerized.sls
<|file_sep|>current/salt/kibana/dockerized.sls
<|file_sep|>updated/salt/kibana/dockerized.sls | ##########
# KIBANA DOCKER CONTAINER
##########
kibana_container_stop_if_old:
cmd.run:
- name: docker stop kibana_container || true # Next line baffling? http://jinja.pocoo.org/docs/dev/templates/#escaping - Note: egrep-expression must yield single line
- unless: docker inspect --format "{{ '{{' }} .Image {{... | <|file_sep|>original/salt/kibana/dockerized.sls
<|file_sep|>current/salt/kibana/dockerized.sls
<|file_sep|>updated/salt/kibana/dockerized.sls
##########
# KIBANA DOCKER CONTAINER
##########
kibana_container_stop_if_old:
cmd.run:
- name: docker stop kibana_container || true # Next line baffling? http://jinja.po... | 9044c7101cc5c341a540726db7d75fca61674f0a | salt/kibana/dockerized.sls | salt/kibana/dockerized.sls | SaltStack |
<|file_sep|>original/README.md
graph.js
========
Basic plotting from javascript in 2d canvas. Provides a JS API, but also provides a simple way to add graphs in static content as well. i.e. Drawing a simple sin plot. Supports basic cartesian and polar plots, drawing lines, vectors, points, bars, and animating views as... | graph.js
========
Basic plotting from javascript in 2d canvas. Provides a JS API, but also provides a simple way to add graphs in static content as well. i.e. Drawing a simple sin plot. Supports basic cartesian and polar plots, drawing lines, vectors, points, bars, and animating views as well. Some CSS styling propert... | <|file_sep|>original/README.md
graph.js
========
Basic plotting from javascript in 2d canvas. Provides a JS API, but also provides a simple way to add graphs in static content as well. i.e. Drawing a simple sin plot. Supports basic cartesian and polar plots, drawing lines, vectors, points, bars, and animating views as... | d72b2e20993b5aa9d826456748147ba98f2af5ea | README.md | README.md | Markdown |
<|file_sep|>original/spec/controllers/close_requests_controller_spec.rb
<|file_sep|>current/spec/controllers/close_requests_controller_spec.rb
<|file_sep|>updated/spec/controllers/close_requests_controller_spec.rb | require 'spec_helper'
describe CloseRequestsController do
include Devise::TestHelpers
before (:each) do
@group = stub_group
@user = User.make(:user)
stub_authentication @user
Activity.stub!(:create!)
@question = Question.make(:question)
@group.questions.stub!(:find_by_slug_or_id).with(@que... | <|file_sep|>original/spec/controllers/close_requests_controller_spec.rb
<|file_sep|>current/spec/controllers/close_requests_controller_spec.rb
<|file_sep|>updated/spec/controllers/close_requests_controller_spec.rb
require 'spec_helper'
describe CloseRequestsController do
include Devise::TestHelpers
before (:eac... | b6cdc4bc4da6be24faf222fdb8e559cfb9e74ccf | spec/controllers/close_requests_controller_spec.rb | spec/controllers/close_requests_controller_spec.rb | Ruby |
<|file_sep|>original/samples/bluetooth/tester/testcase.ini
[test]
tags = bluetooth
build_only = true
platform_whitelist = ti_lm3s6965
<|file_sep|>current/samples/bluetooth/tester/testcase.ini
[test]
tags = bluetooth
build_only = true
platform_whitelist = ti_lm3s6965
<|file_sep|>updated/samples/bluetooth/tester/testcase... | [test]
tags = bluetooth
build_only = true
arch_whitelist = arm
platform_whitelist = basic_cortex_m3 | <|file_sep|>original/samples/bluetooth/tester/testcase.ini
[test]
tags = bluetooth
build_only = true
platform_whitelist = ti_lm3s6965
<|file_sep|>current/samples/bluetooth/tester/testcase.ini
[test]
tags = bluetooth
build_only = true
platform_whitelist = ti_lm3s6965
<|file_sep|>updated/samples/bluetooth/tester/testcase... | 3b5bae6b9682ba690080e95eccfa8749dab335db | samples/bluetooth/tester/testcase.ini | samples/bluetooth/tester/testcase.ini | INI |
<|file_sep|>original/scripts/aliases.bash
#!/bin/bash
if [ -n "$PLATFORM" ] && [ "$PLATFORM" = "mac" ]; then
alias vim="mvim -v"
fi
alias vi="vim"
alias edit="vi"
alias ..="cd .."
alias ...="cd ../.."
alias back="cd -"
alias be="bundle exec"
alias gs="git s"
alias gd="git d"
alias fastping='ping -c 5 -s 1' # ping r... | #!/bin/bash
if [ -n "$PLATFORM" ] && [ "$PLATFORM" = "mac" ]; then
alias vim="mvim -v"
fi
alias vi="vim"
alias edit="vi"
alias ..="cd .."
alias ...="cd ../.."
alias empty="cat /dev/null >"
alias back="cd -"
alias be="bundle exec"
alias gs="git s"
alias gd="git d"
alias fastping='ping -c 5 -s 1' # ping really fast ;... | <|file_sep|>original/scripts/aliases.bash
#!/bin/bash
if [ -n "$PLATFORM" ] && [ "$PLATFORM" = "mac" ]; then
alias vim="mvim -v"
fi
alias vi="vim"
alias edit="vi"
alias ..="cd .."
alias ...="cd ../.."
alias back="cd -"
alias be="bundle exec"
alias gs="git s"
alias gd="git d"
alias fastping='ping -c 5 -s 1' # ping r... | 3d6533138ec8b95eb860f31f633aac22296df2cc | scripts/aliases.bash | scripts/aliases.bash | Shell |
<|file_sep|>MIT-LICENSE.txt.diff
original:
Copyright (C) 2013 Julien Maupetit
updated:
Copyright (C) 2013-2016 Julien Maupetit
<|file_sep|>MIT-LICENSE.txt.diff
original:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ... | Copyright (C) 2013-2016 Julien Maupetit
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribut... | <|file_sep|>MIT-LICENSE.txt.diff
original:
Copyright (C) 2013 Julien Maupetit
updated:
Copyright (C) 2013-2016 Julien Maupetit
<|file_sep|>MIT-LICENSE.txt.diff
original:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ... | 8c8e99d9fd391ff1730f8632b2d3f289a82f0a16 | MIT-LICENSE.txt | MIT-LICENSE.txt | Text |
<|file_sep|>original/test/passwords-test.js
describe('Passwords', () => {
it('should be able to generate and compare hashes', async () => {
const pass = 'apple';
const passFake = 'orange';
const passHash = await Passwords.hash(pass);
const passHashSync = Passwords.hashSync(pass);
const passFakeH... | it('should be able to generate and compare hashes', async () => {
const pass = 'apple';
const passFake = 'orange';
const passHash = await Passwords.hash(pass);
const passHashSync = Passwords.hashSync(pass);
const passFakeHashSync = Passwords.hashSync(passFake);
assert(Passwords.compareSync(p... | <|file_sep|>original/test/passwords-test.js
describe('Passwords', () => {
it('should be able to generate and compare hashes', async () => {
const pass = 'apple';
const passFake = 'orange';
const passHash = await Passwords.hash(pass);
const passHashSync = Passwords.hashSync(pass);
const passFakeH... | 8bf71bda7bbcf3dd5e04023e445891708fbe5af7 | test/passwords-test.js | test/passwords-test.js | JavaScript |
<|file_sep|>original/all_reports_smell_search_final.py
<|file_sep|>current/all_reports_smell_search_final.py
<|file_sep|>updated/all_reports_smell_search_final.py |
from map import mapping
# walk through the os and get all files
# read each file in tern and go through line by line
# print lines that contain smell and the report name
from os import listdir
import nltk.data
import json
SMELL_WORDS = ['smell', 'stench', 'stink', 'odour', 'sniff', 'effluvium']
REPORTS_DIR = '/Users/... | <|file_sep|>original/all_reports_smell_search_final.py
<|file_sep|>current/all_reports_smell_search_final.py
<|file_sep|>updated/all_reports_smell_search_final.py
from map import mapping
# walk through the os and get all files
# read each file in tern and go through line by line
# print lines that contain smell and ... | 3228bf3dd1a32694b42f4d08a5c6f0e63bf5128a | all_reports_smell_search_final.py | all_reports_smell_search_final.py | Python |
<|file_sep|>original/lib/snowball/roller.rb
require "open3"
module Snowball
EXECUTABLE = Pathname.new(__FILE__).join("../../../", "bin/roll.js").realpath
class RollError < Exception; end
class Roller
def self.roll(entry, opts)
args = []
ignores = opts[:ignores].dup
ignores.unshift *%w(jsd... | require "open3"
require 'pathname'
module Snowball
EXECUTABLE = Pathname.new(__FILE__).join("../../../", "bin/roll.js").realpath
class RollError < Exception; end
class Roller
def self.roll(entry, opts)
args = []
ignores = opts[:ignores].dup
ignores.unshift *%w(jsdom xmlhttprequest locatio... | <|file_sep|>original/lib/snowball/roller.rb
require "open3"
module Snowball
EXECUTABLE = Pathname.new(__FILE__).join("../../../", "bin/roll.js").realpath
class RollError < Exception; end
class Roller
def self.roll(entry, opts)
args = []
ignores = opts[:ignores].dup
ignores.unshift *%w(jsd... | 5250b1a79a5bf2d30331c448da6a185dc9df7805 | lib/snowball/roller.rb | lib/snowball/roller.rb | Ruby |
<|file_sep|>vagrant/provisioning/setup-k8s-minion.sh.diff
original:
wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz
updated:
wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz
<|file_sep|>vagrant/provisioning/setup-k8s-minion.sh.diff
ori... | # Install CNI
pushd ~/
wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz
popd
sudo mkdir -p /opt/cni/bin
pushd /opt/cni/bin
sudo tar xvzf ~/cni-amd64-v0.5.2.tgz
popd
# Start k8s daemons
pushd k8s/server/kubernetes/server/bin
echo "Starting kubelet ..."
nohup sudo ./kubelet -... | <|file_sep|>vagrant/provisioning/setup-k8s-minion.sh.diff
original:
wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz
updated:
wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz
<|file_sep|>vagrant/provisioning/setup-k8s-minion.sh.diff
ori... | c304ae40299e9f64973534b7fe311d71df78d676 | vagrant/provisioning/setup-k8s-minion.sh | vagrant/provisioning/setup-k8s-minion.sh | Shell |
<|file_sep|>scripts/global.gd.diff
original:
updated:
onready var cur1 = load("res://resources/ui/cursor1.png")
onready var cur2 = load("res://resources/ui/cursor2.png")
<|file_sep|>original/scripts/global.gd
var PlayerName = "Niclas"
var MAP_WIDTH = 40
var MAP_HEIGHT = 30
func _ready():
# print(currentScene, "hei"... | onready var cur1 = load("res://resources/ui/cursor1.png")
onready var cur2 = load("res://resources/ui/cursor2.png")
var PlayerName = "Niclas"
var MAP_WIDTH = 40
var MAP_HEIGHT = 30
func _ready():
# print(currentScene, "hei")
currentScene = get_tree().get_root().get_child(get_tree().get_root().get_child_count() -1)
... | <|file_sep|>scripts/global.gd.diff
original:
updated:
onready var cur1 = load("res://resources/ui/cursor1.png")
onready var cur2 = load("res://resources/ui/cursor2.png")
<|file_sep|>original/scripts/global.gd
var PlayerName = "Niclas"
var MAP_WIDTH = 40
var MAP_HEIGHT = 30
func _ready():
# print(currentScene, "hei"... | 362b77aacb394ed3cb400dc3d1f040bba44a92a7 | scripts/global.gd | scripts/global.gd | GDScript |
<|file_sep|>README.md.diff
original:
## Noteworthy features
updated:
## Noteworthy Features
<|file_sep|>README.md.diff
original:
## Tech Stack
updated:
## Technologies Used
<|file_sep|>original/README.md
# Chef's Circle
Chef's Circle is designed for "foodies" (food enthusiasts) where foodies can share their favorite re... | # Chef's Circle
Chef's Circle is designed for "foodies" (food enthusiasts) where foodies can share their favorite recipes! It is an image based social media web application that allows them to post images of their favorite meals and share them with food lovers. Try it out! [Chef's Circle](https://secure-reaches-71746.h... | <|file_sep|>README.md.diff
original:
## Noteworthy features
updated:
## Noteworthy Features
<|file_sep|>README.md.diff
original:
## Tech Stack
updated:
## Technologies Used
<|file_sep|>original/README.md
# Chef's Circle
Chef's Circle is designed for "foodies" (food enthusiasts) where foodies can share their favorite re... | 5acc140b63e3dfb536291b97c7e6a26965187798 | README.md | README.md | Markdown |
<|file_sep|>original/k8s/ex-prod-values.yaml
- collector.exceptionless.io
- collector.exceptionless.com
- config.exceptionless.io
- heartbeat.exceptionless.io
jobs:
eventNotifications:
replicaCount: 2
eventPosts:
replicaCount: 6
eventUserDescriptions:
replicaCount: 2
mailMessage:
... | domains:
- collector.exceptionless.io
- collector.exceptionless.com
- config.exceptionless.io
- heartbeat.exceptionless.io
jobs:
eventNotifications:
replicaCount: 2
eventPosts:
replicaCount: 6
eventUserDescriptions:
replicaCount: 2
mailMessage:
replicaCount: 4
webhooks:
r... | <|file_sep|>original/k8s/ex-prod-values.yaml
- collector.exceptionless.io
- collector.exceptionless.com
- config.exceptionless.io
- heartbeat.exceptionless.io
jobs:
eventNotifications:
replicaCount: 2
eventPosts:
replicaCount: 6
eventUserDescriptions:
replicaCount: 2
mailMessage:
... | 378e460b22a0b3e3f7d862ec803b33dfa1d6828e | k8s/ex-prod-values.yaml | k8s/ex-prod-values.yaml | YAML |
<|file_sep|>original/sequence_prediction/README.md
# Description
Compare HTM with other algorithms on standard sequence prediction problems
# Dependency
SciPy
PyBrain (for LSTM algorithm): https://github.com/pybrain/pybrain
R (for ARIMA algorithm)
NuPIC
# Installation
cd path/to/nupic.research/sequ... | # Dependency
SciPy
PyBrain (for LSTM algorithm): https://github.com/pybrain/pybrain
R (for ARIMA algorithm)
NuPIC
# Installation
cd path/to/nupic.research/sequence_prediction
python setup.py develop
Or (doesn't require sudo but does require manual PYTHONPATH setup):
python setup.py develop --pref... | <|file_sep|>original/sequence_prediction/README.md
# Description
Compare HTM with other algorithms on standard sequence prediction problems
# Dependency
SciPy
PyBrain (for LSTM algorithm): https://github.com/pybrain/pybrain
R (for ARIMA algorithm)
NuPIC
# Installation
cd path/to/nupic.research/sequ... | f60593920f57af32ad43a9b4b7dd8e9ff1d957ed | sequence_prediction/README.md | sequence_prediction/README.md | Markdown |
<|file_sep|>docs/introduction.rst.diff
original:
The recommended way is to use Composer to install the `sroze/tolerance` package.
updated:
The recommended way is to use Composer to install the `tolerance/tolerance` package.
<|file_sep|>original/docs/introduction.rst
(ie rate limiting) your outgoing or incoming messages... | (ie rate limiting) your outgoing or incoming messages, `track messages across services and protocols <message-profile/intro.html>`_
and more.
Getting started
---------------
The recommended way is to use Composer to install the `tolerance/tolerance` package.
.. code-block:: bash
$ composer require tolerance/tol... | <|file_sep|>docs/introduction.rst.diff
original:
The recommended way is to use Composer to install the `sroze/tolerance` package.
updated:
The recommended way is to use Composer to install the `tolerance/tolerance` package.
<|file_sep|>original/docs/introduction.rst
(ie rate limiting) your outgoing or incoming messages... | d941819934c0eb62208d8782798382ae52373049 | docs/introduction.rst | docs/introduction.rst | reStructuredText |
<|file_sep|>original/requirements.txt
gunicorn==20.1.0
backports-abc==0.5
bkcharts==0.2
bokeh==2.3.2
certifi==2021.5.30
chardet==4.0.0
click==7.1.2
Flask==1.1.2
idna==2.10
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.19.4
python-dateutil==2.8.1
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six... | gunicorn==20.1.0
backports-abc==0.5
bkcharts==0.2
bokeh==2.3.2
certifi==2021.5.30
chardet==4.0.0
click==8.0.1
Flask==1.1.2
idna==2.10
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.19.4
python-dateutil==2.8.1
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six==1.15.0
tornado==6.1
urllib3>=1.24.2
... | <|file_sep|>original/requirements.txt
gunicorn==20.1.0
backports-abc==0.5
bkcharts==0.2
bokeh==2.3.2
certifi==2021.5.30
chardet==4.0.0
click==7.1.2
Flask==1.1.2
idna==2.10
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.19.4
python-dateutil==2.8.1
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six... | cdfe8112e6d493bdec74409d0803021ea9deb443 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/build.sbt
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.20"
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.9",
"org.scalatest" %% "scalatest" % "2.2.6" % Test
)
)
publishTo := {
val hos... |
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.20"
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.9",
"org.scalatest" %% "scalatest" % "3.0.0" % Test
)
)
publishTo := {
val host = "https://flow.artifactoryon... | <|file_sep|>original/build.sbt
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.20"
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.9",
"org.scalatest" %% "scalatest" % "2.2.6" % Test
)
)
publishTo := {
val hos... | a2f410586cadf61c3c435587e2d2cf8162feeea5 | build.sbt | build.sbt | Scala |
<|file_sep|>original/daemon/__init__.py
required steps are much the same for every daemon program. An
instance of the `DaemonContext` holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.
Simple example of usage::
... | required steps are much the same for every daemon program. An
instance of the `DaemonContext` holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.
Simple example of usage::
import daemon
from spam im... | <|file_sep|>original/daemon/__init__.py
required steps are much the same for every daemon program. An
instance of the `DaemonContext` holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.
Simple example of usage::
... | 113fc2bb39e872ae8e1fa4870d8b94f9375cec9e | daemon/__init__.py | daemon/__init__.py | Python |
<|file_sep|>original/.github/pull_request_template.md
# Purpose / Goal
<!-- Please specify here what you're planning to achieve by this pull request and how it can help in regard of this work-space. -->
<!-- If it is a bug fix, please mention the issue number. If there is no issue has been raised but the PR directly t... | # Purpose / Goal
<!-- Please specify here what you're planning to achieve by this pull request and how it can help in regard of this work-space. -->
<!-- If it is a bug fix, please mention the issue number. If there is no issue has been raised but the PR directly then it should follow the template given to raise the i... | <|file_sep|>original/.github/pull_request_template.md
# Purpose / Goal
<!-- Please specify here what you're planning to achieve by this pull request and how it can help in regard of this work-space. -->
<!-- If it is a bug fix, please mention the issue number. If there is no issue has been raised but the PR directly t... | 6a980ac52603c696b1297e409b186c95a10cafb7 | .github/pull_request_template.md | .github/pull_request_template.md | Markdown |
<|file_sep|>original/.circleci/config.yml
steps:
- run:
name: Grab java version and dump to file
command: java -version > << parameters.filename >>
default_steps: &default_steps
steps:
- checkout
- run: |
mvn clean install -Dgpg.skip $MVN_EXTRA_OPTS
jobs:
openjdk7:
... | steps:
- run:
name: Grab java version and dump to file
command: java -version > << parameters.filename >>
default_steps: &default_steps
steps:
- checkout
- run: |
mvn clean install $MVN_EXTRA_OPTS
jobs:
openjdk7:
docker:
- image: jfullaondo/openjdk:7
en... | <|file_sep|>original/.circleci/config.yml
steps:
- run:
name: Grab java version and dump to file
command: java -version > << parameters.filename >>
default_steps: &default_steps
steps:
- checkout
- run: |
mvn clean install -Dgpg.skip $MVN_EXTRA_OPTS
jobs:
openjdk7:
... | d9a43f2e11a9e08be6525caf986a0d23b75ed7ea | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/app/lib/PitchNotify.php
<?php
class PitchNotify {
public function fire($job, $data)
{
$pitch = Pitch::find($data['pitch']);
if ($pitch) {
Mail::send(['text' => 'emails.pitch'], ['pitch' => $pitch], function($m) use ($pitch)
{
$m->to(Config::get('quill.pitch.email'),Config::get('qui... | <?php
class PitchNotify {
public function fire($job, $data)
{
$pitch = Pitch::find($data['pitch']);
if ($pitch) {
Mail::send(['text' => 'emails.pitch'], ['pitch' => $pitch], function($m) use ($pitch)
{
$m->to(Config::get('quill.pitch.email'),Config::get('quill.pitch.name'))
->subject("[cnq] Pitch ... | <|file_sep|>original/app/lib/PitchNotify.php
<?php
class PitchNotify {
public function fire($job, $data)
{
$pitch = Pitch::find($data['pitch']);
if ($pitch) {
Mail::send(['text' => 'emails.pitch'], ['pitch' => $pitch], function($m) use ($pitch)
{
$m->to(Config::get('quill.pitch.email'),Config::get('qui... | d2f24793a44964c7a074ec990057d24bf352cf76 | app/lib/PitchNotify.php | app/lib/PitchNotify.php | PHP |
<|file_sep|>original/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/extra-procs.rkt
#lang racket/base
(provide assert defined?)
(define-syntax assert
(syntax-rules ()
((assert v)
(or v (error (format "Assertion failed on ~v" v))))
((assert v pred)
(let ((val v))
(if ((#%expres... | #lang racket/base
(provide assert defined?)
(define-syntax assert
(syntax-rules ()
((assert v)
(let ([val v])
(or val (error (format "Assertion failed on ~v" val)))))
((assert v pred)
(let ((val v))
(if ((#%expression pred) val)
val
(error (format "Assertion ~a f... | <|file_sep|>original/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/extra-procs.rkt
#lang racket/base
(provide assert defined?)
(define-syntax assert
(syntax-rules ()
((assert v)
(or v (error (format "Assertion failed on ~v" v))))
((assert v pred)
(let ((val v))
(if ((#%expres... | 04cb2368201c789332c58aab74eada6319854155 | pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/extra-procs.rkt | pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/extra-procs.rkt | Racket |
<|file_sep|>original/raheui.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'raheui/version'
Gem::Specification.new do |spec|
spec.name = 'raheui'
spec.version = Raheui::Version::STRING
spec.authors = ['ChaYo... | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'raheui/version'
Gem::Specification.new do |spec|
spec.name = 'raheui'
spec.version = Raheui::Version::STRING
spec.authors = ['Chayoung You']
spec.email = ['y... | <|file_sep|>original/raheui.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'raheui/version'
Gem::Specification.new do |spec|
spec.name = 'raheui'
spec.version = Raheui::Version::STRING
spec.authors = ['ChaYo... | 245743ec1fcec1c5eea12ff39bc9bdc76e02705b | raheui.gemspec | raheui.gemspec | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4.2"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install: "sudo apt-get update && sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev optipng pngcrush pn... | language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install: "sudo apt-get update && sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev optipng pngcrush pngquant libpango1.0-dev grap... | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4.2"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install: "sudo apt-get update && sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev optipng pngcrush pn... | 3a5e19edf93bfa2cc77628f8d6596433e7cf9d80 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/manifest.json
{
"name": "GH Preview",
"description": "Use the Google Doc viewer for files linked in GitHub issues",
"version": "v0.2-alpha",
"manifest_version": 2,
"content_scripts": [{
"js": ["contentscript.js"],
"matches": [
"*://github.com/*/*/issues/*",
"*://github... | {
"name": "GH Preview",
"description": "Use the Google Doc viewer for files linked in GitHub issues",
"version": "0.2",
"manifest_version": 2,
"content_scripts": [{
"js": ["contentscript.js"],
"matches": [
"*://github.com/*/*/issues/*",
"*://github.com/*/*/pulls/*",
"*://github.com/*... | <|file_sep|>original/manifest.json
{
"name": "GH Preview",
"description": "Use the Google Doc viewer for files linked in GitHub issues",
"version": "v0.2-alpha",
"manifest_version": 2,
"content_scripts": [{
"js": ["contentscript.js"],
"matches": [
"*://github.com/*/*/issues/*",
"*://github... | 294721d84fb0ef82178caf403ba0c5ec7364bef8 | manifest.json | manifest.json | JSON |
<|file_sep|>original/lib/flipper/api.rb
CONTENT_TYPE = 'application/json'.freeze
def self.app(flipper = nil)
app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, [''])
builder = Rack::Builder.new
yield builder if block_given?
builder.use Flipper::Api::SetupEnv, flipper
builder.u... | CONTENT_TYPE = 'application/json'.freeze
def self.app(flipper = nil)
app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, [''])
builder = Rack::Builder.new
yield builder if block_given?
builder.use Flipper::Api::SetupEnv, flipper
builder.use Flipper::Api::JsonParams
builde... | <|file_sep|>original/lib/flipper/api.rb
CONTENT_TYPE = 'application/json'.freeze
def self.app(flipper = nil)
app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, [''])
builder = Rack::Builder.new
yield builder if block_given?
builder.use Flipper::Api::SetupEnv, flipper
builder.u... | 77f4aed0c4d8a9acbb45d1dc1e36dc48da3704cb | lib/flipper/api.rb | lib/flipper/api.rb | Ruby |
<|file_sep|>original/travis/install.sh
pip install -U setuptools pip wheel
if [ ! "$(ls wheelhouse)" ]; then
git clone -b pyqt --depth=1 https://github.com/astaric/orange3-requirements wheelhouse
else
echo 'Using cached wheelhouse.';
fi
pip install wheelhouse/*.whl
pip install -r requirements.txt
python setup... | pip install -U setuptools pip wheel
if [ ! "$(ls wheelhouse)" ]; then
git clone --depth=1 https://github.com/astaric/orange3-requirements wheelhouse
else
echo 'Using cached wheelhouse.';
fi
pip install wheelhouse/*.whl
pip install -r requirements.txt
python setup.py build_ext -i | <|file_sep|>original/travis/install.sh
pip install -U setuptools pip wheel
if [ ! "$(ls wheelhouse)" ]; then
git clone -b pyqt --depth=1 https://github.com/astaric/orange3-requirements wheelhouse
else
echo 'Using cached wheelhouse.';
fi
pip install wheelhouse/*.whl
pip install -r requirements.txt
python setup... | 9325a93c2b66b34d9deea7aa164a25b9e7fb6dd1 | travis/install.sh | travis/install.sh | Shell |
<|file_sep|>Snittlistan.Test/PlayerStat_Test.cs.diff
original:
WaitForNonStaleResults<Match>();
updated:
<|file_sep|>original/Snittlistan.Test/PlayerStat_Test.cs
[Fact]
public void VerifyIndex()
{
// Arrange
IndexCreator.CreateIndexes(Store);
// Act
var match = DbSeed.CreateMatch();
Session.St... | public void VerifyIndex()
{
// Arrange
IndexCreator.CreateIndexes(Store);
// Act
var match = DbSeed.CreateMatch();
Session.Store(match);
Session.SaveChanges();
Matches_PlayerStats.Results stats = Session.Query<Matches_PlayerStats.Results, Matches_PlayerStats>()
.Customize(c => c.WaitForNon... | <|file_sep|>Snittlistan.Test/PlayerStat_Test.cs.diff
original:
WaitForNonStaleResults<Match>();
updated:
<|file_sep|>original/Snittlistan.Test/PlayerStat_Test.cs
[Fact]
public void VerifyIndex()
{
// Arrange
IndexCreator.CreateIndexes(Store);
// Act
var match = DbSeed.CreateMatch();
Session.St... | 8425ac329908ff28a61e1f5d23106191eac592ee | Snittlistan.Test/PlayerStat_Test.cs | Snittlistan.Test/PlayerStat_Test.cs | C# |
<|file_sep|>original/plugins/RSS/README.txt
This plugin allows you to poll and periodically announce new items from
RSS feeds.
In order to use this plugin you must have the following modules
installed:
- feedparser: http://feedparser.org/
Basic usage
-----------
Adding a feed
@rss add supybot http://sourceforge.net/... | This plugin allows you to poll and periodically announce new items from
RSS feeds.
In order to use this plugin you must have the following modules
installed:
- feedparser: http://feedparser.org/
If you are experiencing TypeError issues with Python 3, please apply this
patch: http://code.google.com/p/feedparser/issues... | <|file_sep|>original/plugins/RSS/README.txt
This plugin allows you to poll and periodically announce new items from
RSS feeds.
In order to use this plugin you must have the following modules
installed:
- feedparser: http://feedparser.org/
Basic usage
-----------
Adding a feed
@rss add supybot http://sourceforge.net/... | 863addd98976224d350a06522af4ea8aa9fd3b3c | plugins/RSS/README.txt | plugins/RSS/README.txt | Text |
<|file_sep|>lib/watcher.rb.diff
original:
puts 'ping'
updated:
<|file_sep|>lib/watcher.rb.diff
original:
updated:
@bot.debug "Dispatching #{@hander_sumbol} handler..."
<|file_sep|>original/lib/watcher.rb
class Watcher
def initialize(bot, handler_symbol, sleep_seconds=10)
@bot = bot
@handler_symbo... | class Watcher
def initialize(bot, handler_symbol, sleep_seconds=10)
@bot = bot
@handler_symbol = handler_symbol
@sleep_seconds = sleep_seconds
end
def start
while true
@bot.debug "Dispatching #{@hander_sumbol} handler..."
@bot.handlers.dispatch @handler_symbol
@bot.debug "Waiti... | <|file_sep|>lib/watcher.rb.diff
original:
puts 'ping'
updated:
<|file_sep|>lib/watcher.rb.diff
original:
updated:
@bot.debug "Dispatching #{@hander_sumbol} handler..."
<|file_sep|>original/lib/watcher.rb
class Watcher
def initialize(bot, handler_symbol, sleep_seconds=10)
@bot = bot
@handler_symbo... | 0ee68f2e8a298a76a968a29ce40da953d444df94 | lib/watcher.rb | lib/watcher.rb | Ruby |
<|file_sep|>original/app/views/users/auth_new.html.haml
%p 마이스누 인증이 필요합니다.
%p 인증을 통해 단과대학, 학부, 과정 정보를 수집하고, 학번은 누구도 알 수 없게 암호화해 중복 인증 방지용으로 사용합니다.
%a{href: "http://sso.snu.ac.kr/snu/ssologin.jsp?si_redirect_address=http://mimosa.snu.ac.kr/~glastonbury/acct.php"} 인증하러 가기
<|file_sep|>current/app/views/users/auth_new.html... | %p 마이스누 인증이 필요합니다.
%p 인증을 통해 단과대학, 학부, 과정 정보를 수집하고, 학번은 누구도 알 수 없게 암호화해 중복 인증 방지용으로 사용합니다.
%a{href: ENV['MYSNU_AUTH_PATH']} 인증하러 가기 | <|file_sep|>original/app/views/users/auth_new.html.haml
%p 마이스누 인증이 필요합니다.
%p 인증을 통해 단과대학, 학부, 과정 정보를 수집하고, 학번은 누구도 알 수 없게 암호화해 중복 인증 방지용으로 사용합니다.
%a{href: "http://sso.snu.ac.kr/snu/ssologin.jsp?si_redirect_address=http://mimosa.snu.ac.kr/~glastonbury/acct.php"} 인증하러 가기
<|file_sep|>current/app/views/users/auth_new.html... | 7ab73496f396b6e4d4f15bb6172adc4b232f94b7 | app/views/users/auth_new.html.haml | app/views/users/auth_new.html.haml | Haml |
<|file_sep|>original/dbimport/csv_util.py
import csv
import re
def read_csv(path):
with open(path, 'rU') as data:
reader = csv.DictReader(data)
for row in reader:
yield row
def remove_commas_and_apostrophes(value):
"""Remove commas and single quotes from all values in row.
S... | import csv
import re
def read_csv(path):
with open(path, 'rU') as data:
reader = csv.DictReader(data)
for row in reader:
yield row
def remove_commas_and_apostrophes(value):
"""Remove commas and single quotes from all values in row.
Sqlite can't handle them."""
return re.... | <|file_sep|>original/dbimport/csv_util.py
import csv
import re
def read_csv(path):
with open(path, 'rU') as data:
reader = csv.DictReader(data)
for row in reader:
yield row
def remove_commas_and_apostrophes(value):
"""Remove commas and single quotes from all values in row.
S... | dbc526d43b6a69c0bd120f3a0abb519f8bf353a8 | dbimport/csv_util.py | dbimport/csv_util.py | Python |
<|file_sep|>original/README.md
graph.post(
path = 'johannes.gorset/feed',
message = 'Why, hello.'
)
# Delete an item from the Graph API.
graph.delete('481213268764')
# Search the Graph API for posts describing the meaning of life.
graph.search(
term = 'the meani... |
# Delete an item from the Graph API.
graph.delete('481213268764')
# Search the Graph API for posts describing the meaning of life.
graph.search(
term = 'the meaning of life',
type = 'post'
)
## Documentation
See [Facebook's Graph API documentation](http://developers.f... | <|file_sep|>original/README.md
graph.post(
path = 'johannes.gorset/feed',
message = 'Why, hello.'
)
# Delete an item from the Graph API.
graph.delete('481213268764')
# Search the Graph API for posts describing the meaning of life.
graph.search(
term = 'the meani... | 3c1443a1a8b6cf545abe6d30734533a3c0423259 | README.md | README.md | Markdown |
<|file_sep|>original/test/test_action_add_node.rb
require 'helper'
class TestActionAddNode < Test::Unit::TestCase
context "The `rutty add_node' action" do
setup { ensure_fresh_config! }
teardown { clean_test_config! }
should "properly create a new node entry when called" do
require 'yaml'
... | require 'helper'
class TestActionAddNode < Test::Unit::TestCase
context "The `rutty add_node' action" do
setup { ensure_fresh_config! }
teardown { clean_test_config! }
should "properly create a new node entry when called" do
require 'yaml'
output = %x(#{RUTTY_BIN} add_node -c #{TE... | <|file_sep|>original/test/test_action_add_node.rb
require 'helper'
class TestActionAddNode < Test::Unit::TestCase
context "The `rutty add_node' action" do
setup { ensure_fresh_config! }
teardown { clean_test_config! }
should "properly create a new node entry when called" do
require 'yaml'
... | 02f8f9ffdc2ffc261c924124e4ef62c7bf16307f | test/test_action_add_node.rb | test/test_action_add_node.rb | Ruby |
<|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.debug "User is not nil"
updated:
<|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.debug "logged in from auth"
updated:
<|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.de... | if user.nil?
user = User.create_with_omniauth(auth)
Profile.create_with_omniauth(user.id, auth)
login_from_oauth(user.id)
return
elsif user.present? && user.profile.present?
user.update_from_omniauth(auth)
session[:user_id] = user.id
redirect_to problems_path, :notice =... | <|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.debug "User is not nil"
updated:
<|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.debug "logged in from auth"
updated:
<|file_sep|>app/controllers/oauth_controller.rb.diff
original:
Rails.logger.de... | 21604376d2ca5b41c853faa78f96fd19b6f40f80 | app/controllers/oauth_controller.rb | app/controllers/oauth_controller.rb | Ruby |
<|file_sep|>config/initializers/mini_magick.rb.diff
original:
config.timeout = 300
updated:
config.timeout = 600
<|file_sep|>original/config/initializers/mini_magick.rb
require 'mini_magick'
MiniMagick.configure do |config|
config.shell_api = "posix-spawn"
config.timeout = 300
config.validate_on_create = fal... | require 'mini_magick'
MiniMagick.configure do |config|
config.shell_api = "posix-spawn"
config.timeout = 600
config.validate_on_create = false
config.validate_on_write = false
config.logger.level = Logger::DEBUG
end | <|file_sep|>config/initializers/mini_magick.rb.diff
original:
config.timeout = 300
updated:
config.timeout = 600
<|file_sep|>original/config/initializers/mini_magick.rb
require 'mini_magick'
MiniMagick.configure do |config|
config.shell_api = "posix-spawn"
config.timeout = 300
config.validate_on_create = fal... | d088846114c07a4f3279e48a0760f2e8082c5507 | config/initializers/mini_magick.rb | config/initializers/mini_magick.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.