prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "io.js"
- "4"
- "5"
matrix:
include:
- node_js: "4"
env: TEST_SUITE=lint
env:
- TEST_SUITE=unit
script: npm run-script $TEST_SUITE
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
... | sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "io.js"
- "4"
- "5"
- "6"
matrix:
include:
- node_js: "4"
env: TEST_SUITE=lint
env:
- TEST_SUITE=unit
script: npm run-script $TEST_SUITE | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "io.js"
- "4"
- "5"
matrix:
include:
- node_js: "4"
env: TEST_SUITE=lint
env:
- TEST_SUITE=unit
script: npm run-script $TEST_SUITE
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
... | 9d1772ddce0cb5842ca9fd17e99b3d8d538e8e02 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/torrent_piecemap.erl
<|file_sep|>current/torrent_piecemap.erl
<|file_sep|>updated/torrent_piecemap.erl | -module(torrent_piecemap).
-behaviour(gen_server).
-export([start_link/1, init/1, handle_call/3, handle_cast/2, code_change/3, handle_info/2]).
-export([terminate/2]).
start_link(Amount) ->
gen_server:start_link(torrent_piecemap, Amount, []).
init(NumberOfPieces) ->
PieceTable = initialize_piece_table(Number... | <|file_sep|>original/torrent_piecemap.erl
<|file_sep|>current/torrent_piecemap.erl
<|file_sep|>updated/torrent_piecemap.erl
-module(torrent_piecemap).
-behaviour(gen_server).
-export([start_link/1, init/1, handle_call/3, handle_cast/2, code_change/3, handle_info/2]).
-export([terminate/2]).
start_link(Amount) ->
... | 5b3289d3ee9709df69aa2eb9b22a7b5de9d4c43d | torrent_piecemap.erl | torrent_piecemap.erl | Erlang |
<|file_sep|>app/Providers/LastModifiedServiceProvider.php.diff
original:
updated:
/**
* List of excluded directories when traversing application folders.
*
* @var array
*/
private $excludedDirectories = [
'vendor',
'node_modules',
'tmp',
'storage',
't... | * Function to get the last modified file time for the web application directory.
*
* @return string
*/
protected function getLastModifiedDate()
{
date_default_timezone_set(config('app.timezone'));
$timeStamp = null;
$directories = new RecursiveIteratorIterator(new R... | <|file_sep|>app/Providers/LastModifiedServiceProvider.php.diff
original:
updated:
/**
* List of excluded directories when traversing application folders.
*
* @var array
*/
private $excludedDirectories = [
'vendor',
'node_modules',
'tmp',
'storage',
't... | 07e97d0789ca09e7ade654a7faaab9a8fc10489c | app/Providers/LastModifiedServiceProvider.php | app/Providers/LastModifiedServiceProvider.php | PHP |
<|file_sep|>original/rfd.gemspec
Gem::Specification.new do |spec|
spec.name = "rfd"
spec.version = '0.6.9'
spec.authors = ["Akira Matsuda"]
spec.email = ["ronnie@dio.jp"]
spec.description = 'Ruby on Files & Directories'
spec.summary = 'Ruby on Files & Directories'
spec... | Gem::Specification.new do |spec|
spec.name = "rfd"
spec.version = '0.6.9'
spec.authors = ["Akira Matsuda"]
spec.email = ["ronnie@dio.jp"]
spec.description = 'Ruby on Files & Directories'
spec.summary = 'Ruby on Files & Directories'
spec.homepage = 'https://github.... | <|file_sep|>original/rfd.gemspec
Gem::Specification.new do |spec|
spec.name = "rfd"
spec.version = '0.6.9'
spec.authors = ["Akira Matsuda"]
spec.email = ["ronnie@dio.jp"]
spec.description = 'Ruby on Files & Directories'
spec.summary = 'Ruby on Files & Directories'
spec... | b4ab7980388b1c29e1ae9ab0de973d7fa516982d | rfd.gemspec | rfd.gemspec | Ruby |
<|file_sep|>buildconf/bridge.json.diff
original:
"Hub_HubIOS"
updated:
"Hub_IOS_BuildAndTest"
<|file_sep|>original/buildconf/bridge.json
{
"teamcity": {
"pull_request": {
"ids": [
"Hub_HubIOS"
],
"personal": true
},
"push": {
"refs/heads/master": [
"... | {
"teamcity": {
"pull_request": {
"ids": [
"Hub_IOS_BuildAndTest"
],
"personal": true
},
"push": {
"refs/heads/master": [
"Hub_IOS_BuildAndTest",
"Hub_IOS_UpdateDocumentation"
]
}
}
} | <|file_sep|>buildconf/bridge.json.diff
original:
"Hub_HubIOS"
updated:
"Hub_IOS_BuildAndTest"
<|file_sep|>original/buildconf/bridge.json
{
"teamcity": {
"pull_request": {
"ids": [
"Hub_HubIOS"
],
"personal": true
},
"push": {
"refs/heads/master": [
"... | 6a159629fbcb6ffb0c1dd52a4bfb1cf4c5e3dc86 | buildconf/bridge.json | buildconf/bridge.json | JSON |
<|file_sep|>original/src/sass/_base.scss
@import 'global';
@import 'grid/grid';
@import 'typography/typography';
@import 'components/visibility';
@include foundation-grid;
@include foundation-global-styles;
@include foundation-typography;
html {
font-size: 16pt;
}
body {
font-weight: $body-font-weight;
}
h1 {... | @import 'global';
@import 'grid/grid';
@import 'typography/typography';
@import 'components/visibility';
@include foundation-grid;
@include foundation-global-styles;
@include foundation-typography;
html {
font-size: 12pt;
@include breakpoint(medium) {
font-size: 16pt;
};
}
body {
font-weight: ... | <|file_sep|>original/src/sass/_base.scss
@import 'global';
@import 'grid/grid';
@import 'typography/typography';
@import 'components/visibility';
@include foundation-grid;
@include foundation-global-styles;
@include foundation-typography;
html {
font-size: 16pt;
}
body {
font-weight: $body-font-weight;
}
h1 {... | a1a7d06716745758b2bd37dc660c7a10edb6b8dd | src/sass/_base.scss | src/sass/_base.scss | SCSS |
<|file_sep|>original/packages/fl/fltkhs-fluid-demos.yaml
<|file_sep|>current/packages/fl/fltkhs-fluid-demos.yaml
<|file_sep|>updated/packages/fl/fltkhs-fluid-demos.yaml | homepage: http://github.com/deech/fltkhs-fluid-demos
changelog-type: ''
hash: 6d6364eefa30a94999fc32d544d1d8c85e8c15ddff50f63ebc8053a08ed1e16a
test-bench-deps: {}
maintainer: aditya.siram@gmail.com
synopsis: Fltkhs Fluid Demos
changelog: ''
basic-deps:
bytestring: -any
base: ==4.*
fltkhs: ! '>=0.4.0.3'
all-versio... | <|file_sep|>original/packages/fl/fltkhs-fluid-demos.yaml
<|file_sep|>current/packages/fl/fltkhs-fluid-demos.yaml
<|file_sep|>updated/packages/fl/fltkhs-fluid-demos.yaml
homepage: http://github.com/deech/fltkhs-fluid-demos
changelog-type: ''
hash: 6d6364eefa30a94999fc32d544d1d8c85e8c15ddff50f63ebc8053a08ed1e16a
test-b... | 29fb055ad39ac73448effe219013de9582270759 | packages/fl/fltkhs-fluid-demos.yaml | packages/fl/fltkhs-fluid-demos.yaml | YAML |
<|file_sep|>original/GeoQuiz/app/src/main/res/layout/activity_quiz.xml
<Button
android:id="@+id/true_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/true_button"/>
<Button
android:id="@+id... | android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/true_button"/>
<Button
android:id="@+id/false_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
andro... | <|file_sep|>original/GeoQuiz/app/src/main/res/layout/activity_quiz.xml
<Button
android:id="@+id/true_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/true_button"/>
<Button
android:id="@+id... | 43b5f252d47fa05236b1b8eed5dc30a144433799 | GeoQuiz/app/src/main/res/layout/activity_quiz.xml | GeoQuiz/app/src/main/res/layout/activity_quiz.xml | XML |
<|file_sep|>pg2librato.go.diff
original:
queryInterval := QueryInterval()
updated:
<|file_sep|>pg2librato.go.diff
original:
updated:
queryInterval := QueryInterval()
queryTimeout := queryInterval
<|file_sep|>original/pg2librato.go
monitorStop := make(chan bool)
libratoStop := make(chan bool)
postgresStop := mak... | globalStop := make(chan bool)
monitorStop := make(chan bool)
libratoStop := make(chan bool)
postgresStop := make(chan bool)
schedulerStop := make(chan bool)
done := make(chan bool)
go TrapStart(globalStop)
go MonitorStart(queryTicks, metricBatches, monitorStop, done)
go LibratoStart(libratoAuth, metricBatches... | <|file_sep|>pg2librato.go.diff
original:
queryInterval := QueryInterval()
updated:
<|file_sep|>pg2librato.go.diff
original:
updated:
queryInterval := QueryInterval()
queryTimeout := queryInterval
<|file_sep|>original/pg2librato.go
monitorStop := make(chan bool)
libratoStop := make(chan bool)
postgresStop := mak... | d242ab9b1479a6aebe8e5cbd6b6ae48fb845f950 | pg2librato.go | pg2librato.go | Go |
<|file_sep|>blog_posts_test.go.diff
original:
posts, err := b.Posts(params)
updated:
pc, err := b.Posts(params)
<|file_sep|>original/blog_posts_test.go
import (
"testing"
)
func TestPosts(t *testing.T) {
b := makeTumblr().NewBlog("lacecard.tumblr.com")
// Check for unique post
params := PostRequestParams{
Id: ... | import (
"testing"
)
func TestPosts(t *testing.T) {
b := makeTumblr().NewBlog("lacecard.tumblr.com")
// Check for unique post
params := PostRequestParams{
Id: int64(76803575816),
NotesInfo: true,
}
pc, err := b.Posts(params)
if err != nil {
t.Error(err)
return
}
if len(pc.Posts) != 1 {
t.Errorf("Spe... | <|file_sep|>blog_posts_test.go.diff
original:
posts, err := b.Posts(params)
updated:
pc, err := b.Posts(params)
<|file_sep|>original/blog_posts_test.go
import (
"testing"
)
func TestPosts(t *testing.T) {
b := makeTumblr().NewBlog("lacecard.tumblr.com")
// Check for unique post
params := PostRequestParams{
Id: ... | 3028ded78c0b1c0c9f4ccd3fce3c481361496161 | blog_posts_test.go | blog_posts_test.go | Go |
<|file_sep|>original/share/man/man9/devfs_remove_dev.9
<|file_sep|>current/share/man/man9/devfs_remove_dev.9
<|file_sep|>updated/share/man/man9/devfs_remove_dev.9 | .\"
.\" Copyright (c) 1997 Julian Elischer
.\"
.\" All rights reserved.
.\"
.\" This program is free software.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain ... | <|file_sep|>original/share/man/man9/devfs_remove_dev.9
<|file_sep|>current/share/man/man9/devfs_remove_dev.9
<|file_sep|>updated/share/man/man9/devfs_remove_dev.9
.\"
.\" Copyright (c) 1997 Julian Elischer
.\"
.\" All rights reserved.
.\"
.\" This program is free software.
.\"
.\" Redistribution and use in source and... | 13a5c596cc1e305e6ce6704550ee7543707116c1 | share/man/man9/devfs_remove_dev.9 | share/man/man9/devfs_remove_dev.9 | Groff |
<|file_sep|>original/tests/whitelist.txt
integration.client.test_runner
integration.client.test_standard
integration.modules.test_aliases
integration.modules.test_beacons
integration.modules.test_config
integration.modules.test_cp
integration.modules.test_data
integration.modules.test_disk
integration.modules.test_git
... | integration.client.test_runner
integration.client.test_standard
integration.loader.test_ext_grains
integration.loader.test_ext_modules
integration.modules.test_aliases
integration.modules.test_beacons
integration.modules.test_config
integration.modules.test_cp
integration.modules.test_data
integration.modules.test_disk... | <|file_sep|>original/tests/whitelist.txt
integration.client.test_runner
integration.client.test_standard
integration.modules.test_aliases
integration.modules.test_beacons
integration.modules.test_config
integration.modules.test_cp
integration.modules.test_data
integration.modules.test_disk
integration.modules.test_git
... | e4876abcdee055ee9f1f70f1a67dafc929a65aea | tests/whitelist.txt | tests/whitelist.txt | Text |
<|file_sep|>original/app/models/service_status_type.rb
x
end
def to_s
name
end
def api_json(options={})
as_json(options)
end
# for bulk updates
def self.schema_structure
{
"enum": ServiceStatusType.all.pluck(:name),
"tuple": ServiceStatusType.all.map{ |x| {"id": x.id, "v... | scope :active, -> { where(active: true) }
def self.search(text, exact = true)
if exact
x = where('name = ? OR code = ? OR description = ?', text, text, text).first
else
val = "%#{text}%"
x = where('name LIKE ? OR code LIKE ? OR description LIKE ?', val, val, val).first
end
x
end... | <|file_sep|>original/app/models/service_status_type.rb
x
end
def to_s
name
end
def api_json(options={})
as_json(options)
end
# for bulk updates
def self.schema_structure
{
"enum": ServiceStatusType.all.pluck(:name),
"tuple": ServiceStatusType.all.map{ |x| {"id": x.id, "v... | 1f2abe8e0b30eefa5e632caf897a621d00ec0de0 | app/models/service_status_type.rb | app/models/service_status_type.rb | Ruby |
<|file_sep|>spec/spec_helper.rb.diff
original:
updated:
# SimpleCov must run _first_ according to its README
<|file_sep|>spec/spec_helper.rb.diff
original:
updated:
# monkey-patch to prevent SimpleCov from reporting coverage percentage
class SimpleCov::Formatter::HTMLFormatter
def output_message(_message)
... | $:.unshift File.expand_path("../../lib", __FILE__)
require 'rspec'
require 'rspec/mocks'
require 'json_spec'
require 'vcloud/walker'
require_relative 'stubs/stubs'
require_relative 'stubs/service_layer_stub'
def set_login_credential username = 'some-username', password = 'some-password'
ENV['API_USERNAME'] = usern... | <|file_sep|>spec/spec_helper.rb.diff
original:
updated:
# SimpleCov must run _first_ according to its README
<|file_sep|>spec/spec_helper.rb.diff
original:
updated:
# monkey-patch to prevent SimpleCov from reporting coverage percentage
class SimpleCov::Formatter::HTMLFormatter
def output_message(_message)
... | 348cc7812a0b20b667bf14034071666a2be8113a | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>original/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java
<|file_sep|>current/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java
<|file_sep|>updated/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java | package no.ntnu.capgeminitest.dbacalculator;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class DbaCalculatorLogicTest {
private DbaCalculatorLogic logic = new DbaCalculatorLogic();
@Before
public void setUp() throws Exceptio... | <|file_sep|>original/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java
<|file_sep|>current/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java
<|file_sep|>updated/DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java
package ... | d40fbc106c976ced3adcddbde5ea9fc8154a9575 | DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java | DbaCalculator/test/no/ntnu/capgeminitest/dbacalculator/DbaCalculatorLogicTest.java | Java |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.proper... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.proper... | 2dd0d9f3d86d81407587e8b81c7879f3cf5e4127 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/app/assets/javascripts/app/manage/users.js.coffee
window.onpopstate = (event) ->
window.location.href = mconf.Base.urlFromParts(event.state)
event.state
$('input.resource-filter-field').each ->
input = $(this)
field = $(this).attr('data-attr-filter')
baseUrl =... | window.onpopstate = (event) ->
window.location.href = mconf.Base.urlFromParts(event.state)
event.state
$('input.resource-filter-field').each ->
input = $(this)
field = $(this).attr('data-attr-filter')
baseUrl = $('input.resource-filter').data('load-url')
$(this).on 'click',... | <|file_sep|>original/app/assets/javascripts/app/manage/users.js.coffee
window.onpopstate = (event) ->
window.location.href = mconf.Base.urlFromParts(event.state)
event.state
$('input.resource-filter-field').each ->
input = $(this)
field = $(this).attr('data-attr-filter')
baseUrl =... | da8e4de4f0c92037429acfdacbacd33e4d8c1194 | app/assets/javascripts/app/manage/users.js.coffee | app/assets/javascripts/app/manage/users.js.coffee | CoffeeScript |
<|file_sep|>original/spec/suites/control/Control.RotationSpec.js
var map, baseLayer;
beforeEach(function () {
baseLayer = L.PolarMap.tileLayer("http://{s}.tiles.arcticconnect.org/osm_3573/{z}/{x}/{y}.png", {
name: "ac_3573",
crs: "EPSG:3573",
minZoom: 0,
maxZoom: 18,
tms: false,
... | describe("Control.Rotation", function () {
var map, baseLayer;
beforeEach(function () {
baseLayer = L.PolarMap.layer3573;
map = L.PolarMap.map(document.createElement('div'), {
baseLayer: baseLayer,
center: [90, 0],
zoom: 2
});
});
it("can be added to an unloaded map", function (... | <|file_sep|>original/spec/suites/control/Control.RotationSpec.js
var map, baseLayer;
beforeEach(function () {
baseLayer = L.PolarMap.tileLayer("http://{s}.tiles.arcticconnect.org/osm_3573/{z}/{x}/{y}.png", {
name: "ac_3573",
crs: "EPSG:3573",
minZoom: 0,
maxZoom: 18,
tms: false,
... | 5eb30119f09bd538711ae9fd0bf57616ae543e67 | spec/suites/control/Control.RotationSpec.js | spec/suites/control/Control.RotationSpec.js | JavaScript |
<|file_sep|>original/.travis.yml
language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
- rust: 1.17.0
script: cargo check
- rust: 1.21.0
- rust: nightly
env: CLIPPY
script: |
if rustup component add clippy-preview; then
cargo cli... | language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
- rust: 1.17.0
script: cargo check
- rust: 1.21.0
- rust: nightly
env: CLIPPY
script: |
if rustup component add clippy-preview; then
cargo clippy
fi
script:
- car... | <|file_sep|>original/.travis.yml
language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
- rust: 1.17.0
script: cargo check
- rust: 1.21.0
- rust: nightly
env: CLIPPY
script: |
if rustup component add clippy-preview; then
cargo cli... | b4812531c37d3154c068888acaaec52214874085 | .travis.yml | .travis.yml | YAML |
<|file_sep|>libraries/sensu.rb.diff
original:
address = node.has_key?(:ec2) ? node.ec2.public_ipv4 : node.ipaddress
updated:
address = node.has_key?(:cloud) ? node.cloud.public_ipv4 : node.ipaddress
<|file_sep|>libraries/sensu.rb.diff
original:
%w(user version).include?(key)
updated:
%w(id chef_... | 'client' => {
:name => node.name,
:address => address,
:subscriptions => node.roles
}
)
databag_config = Mash.new(
databag.reject{ |key,value|
%w(id chef_type data_bag).include?(key)
}
)
JSON.pretty_generate(
Chef::Mixin::DeepMerge.merge(
... | <|file_sep|>libraries/sensu.rb.diff
original:
address = node.has_key?(:ec2) ? node.ec2.public_ipv4 : node.ipaddress
updated:
address = node.has_key?(:cloud) ? node.cloud.public_ipv4 : node.ipaddress
<|file_sep|>libraries/sensu.rb.diff
original:
%w(user version).include?(key)
updated:
%w(id chef_... | ea816fc4d87cf8367e370c2e71841ff3631bb373 | libraries/sensu.rb | libraries/sensu.rb | Ruby |
<|file_sep|>src/server/protocol/persistent_connection_prot.ml.diff
original:
updated:
type client_id = int
<|file_sep|>src/server/protocol/persistent_connection_prot.ml.diff
original:
updated:
let string_of_request = function
| Subscribe -> "subscribe"
| Autocomplete _ -> "autocomplete"
| DidOpen _ -> "didOpen"
| D... | let string_of_request = function
| Subscribe -> "subscribe"
| Autocomplete _ -> "autocomplete"
| DidOpen _ -> "didOpen"
| DidClose _ -> "didClose"
type response =
| Errors of {errors: Errors.ErrorSet.t; warnings: Errors.ErrorSet.t}
| StartRecheck
| EndRecheck
| AutocompleteResult of (ServerProt.autocomplete_re... | <|file_sep|>src/server/protocol/persistent_connection_prot.ml.diff
original:
updated:
type client_id = int
<|file_sep|>src/server/protocol/persistent_connection_prot.ml.diff
original:
updated:
let string_of_request = function
| Subscribe -> "subscribe"
| Autocomplete _ -> "autocomplete"
| DidOpen _ -> "didOpen"
| D... | ae80ac93125bed7f0a7704333a9b9d556e47854c | src/server/protocol/persistent_connection_prot.ml | src/server/protocol/persistent_connection_prot.ml | OCaml |
<|file_sep|>original/SnapMD.VirtualCare.ApiModels/Scheduling/AppointmentOptimizationCode.cs
namespace SnapMD.VirtualCare.ApiModels.Scheduling
{
/// <summary>
/// Appointment optimization code.
/// </summary>
public enum AppointmentOptimizationCode : short
{
/// <summary>
/// Single ... | namespace SnapMD.VirtualCare.ApiModels.Scheduling
{
/// <summary>
/// Appointment optimization code.
/// </summary>
public enum AppointmentOptimizationCode : int
{
/// <summary>
/// Single booking.
/// </summary>
SingleBooking,
/// <summary>
/// Doub... | <|file_sep|>original/SnapMD.VirtualCare.ApiModels/Scheduling/AppointmentOptimizationCode.cs
namespace SnapMD.VirtualCare.ApiModels.Scheduling
{
/// <summary>
/// Appointment optimization code.
/// </summary>
public enum AppointmentOptimizationCode : short
{
/// <summary>
/// Single ... | 3bc25e3fbad196e5e3d651fa3d3378f0e1023cf1 | SnapMD.VirtualCare.ApiModels/Scheduling/AppointmentOptimizationCode.cs | SnapMD.VirtualCare.ApiModels/Scheduling/AppointmentOptimizationCode.cs | C# |
<|file_sep|>original/RELEASE_NOTES.md
#### 0.0.4 - 27.11.2014
* Fix intellisense hang due to race condition - https://github.com/fsprojects/RegexProvider/issues/8
#### 0.0.3 - 28.09.2014
* Return provided Match type from Match.NextMatch() - https://github.com/fsprojects/RegexProvider/issues/4
#### 0.0.2 - 23.02.2014... | #### 0.0.5 - 22.04.2015
* Add constructor overload that takes regex options - https://github.com/fsprojects/RegexProvider/issues/10
#### 0.0.4 - 27.11.2014
* Fix intellisense hang due to race condition - https://github.com/fsprojects/RegexProvider/issues/8
#### 0.0.3 - 28.09.2014
* Return provided Match type from Ma... | <|file_sep|>original/RELEASE_NOTES.md
#### 0.0.4 - 27.11.2014
* Fix intellisense hang due to race condition - https://github.com/fsprojects/RegexProvider/issues/8
#### 0.0.3 - 28.09.2014
* Return provided Match type from Match.NextMatch() - https://github.com/fsprojects/RegexProvider/issues/4
#### 0.0.2 - 23.02.2014... | cf022b7ee303e090f34a19385514b8bc40445dc6 | RELEASE_NOTES.md | RELEASE_NOTES.md | Markdown |
<|file_sep|>packages/in/inline-c-cpp.yaml.diff
original:
hash: 305174f65dfb1dfe8d30bb9ad4bdb576817a90f5153d36072b4c66d8e684e3df
updated:
hash: 916ffd22c097f399a47f6ddb9313e2ce36d8051755dd702c23f8d20a370fee09
<|file_sep|>packages/in/inline-c-cpp.yaml.diff
original:
- '0.3.0.0'
updated:
- '0.3.0.1'
<|file_sep|>original/p... | changelog: ''
basic-deps:
inline-c: ! '>=0.6.1.0'
base: ! '>=4.7 && <5'
safe-exceptions: -any
template-haskell: -any
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.2.0.1'
- '0.2.0.2'
- '0.2.1.0'
- '0.2.2.1'
- '0.3.0.1'
author: Francesco Mazzoli
latest: '0.3.0.1'
description-type: haddock
description: ! 'Utilities t... | <|file_sep|>packages/in/inline-c-cpp.yaml.diff
original:
hash: 305174f65dfb1dfe8d30bb9ad4bdb576817a90f5153d36072b4c66d8e684e3df
updated:
hash: 916ffd22c097f399a47f6ddb9313e2ce36d8051755dd702c23f8d20a370fee09
<|file_sep|>packages/in/inline-c-cpp.yaml.diff
original:
- '0.3.0.0'
updated:
- '0.3.0.1'
<|file_sep|>original/p... | b2f8b221ea253d38b7e1299bee5a39f0d0d1c8fc | packages/in/inline-c-cpp.yaml | packages/in/inline-c-cpp.yaml | YAML |
<|file_sep|>Bundle/FilterBundle/README.md.diff
original:
updated:
```php
<|file_sep|>Bundle/FilterBundle/README.md.diff
original:
}
updated:
}
```
<|file_sep|>Bundle/FilterBundle/README.md.diff
original:
And you have to declare it in your services
updated:
And you have to declare it in your servi... | }
```
And you have to declare it in your services
```yaml
victoire_blog.tag_filters.form.type:
class: AppBundle\Filter\TagFilter
parent: victoire_filter_bundle.abstract_base_filter
tags:
- { name: form.type }
- { name: victoir... | <|file_sep|>Bundle/FilterBundle/README.md.diff
original:
updated:
```php
<|file_sep|>Bundle/FilterBundle/README.md.diff
original:
}
updated:
}
```
<|file_sep|>Bundle/FilterBundle/README.md.diff
original:
And you have to declare it in your services
updated:
And you have to declare it in your servi... | bcbd03b9415812fa95b1f7653d16e38dc8194cb2 | Bundle/FilterBundle/README.md | Bundle/FilterBundle/README.md | Markdown |
<|file_sep|>original/app/views/finders/show.html.erb
<div class="metadata">
<div class="inner-block">
<%= render partial: 'govuk_component/metadata', locals: {
from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
} %>
</div>
</div>
<% end... | <div class="metadata">
<div class="inner-block">
<%= render partial: 'govuk_component/metadata', locals: {
from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
} %>
</div>
</div>
<% end %>
</header>
<%= render finder.facets %>
<div class... | <|file_sep|>original/app/views/finders/show.html.erb
<div class="metadata">
<div class="inner-block">
<%= render partial: 'govuk_component/metadata', locals: {
from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
} %>
</div>
</div>
<% end... | dfa1015e45b7dc6e11ded0e64d8d011dbcd707a4 | app/views/finders/show.html.erb | app/views/finders/show.html.erb | HTML+ERB |
<|file_sep|>original/apps/sdkinstaller/tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
<id>com.titaniumapp.sdk.installer</id>
<name>Titanium SDK Installer</name>
<version>0.4</version>
<window>
<id>initial</id>
<title... | <?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
<id>com.titaniumapp.sdk.installer</id>
<name>Titanium SDK Installer</name>
<version>0.4</version>
<window>
<id>initial</id>
<title>Titanium SDK Installer</title>
<url>app://ind... | <|file_sep|>original/apps/sdkinstaller/tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
<id>com.titaniumapp.sdk.installer</id>
<name>Titanium SDK Installer</name>
<version>0.4</version>
<window>
<id>initial</id>
<title... | 80eb4357c681bfb628ce3ae9785b342152b445fd | apps/sdkinstaller/tiapp.xml | apps/sdkinstaller/tiapp.xml | XML |
<|file_sep|>original/.travis.yml
language: csharp
matrix:
include:
- os: linux
dist: trusty
sudo: required
env: DOTNETCORE=1
before_install:
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-... | language: csharp
matrix:
include:
- os: linux
dist: trusty
sudo: required
env: DOTNETCORE=1
before_install:
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-key adv --keyserver hkp://keyserv... | <|file_sep|>original/.travis.yml
language: csharp
matrix:
include:
- os: linux
dist: trusty
sudo: required
env: DOTNETCORE=1
before_install:
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-... | 01145693b263c4c403aa901291bfc58b73a51e85 | .travis.yml | .travis.yml | YAML |
<|file_sep|>app/views/guides_front_end/guide.html.erb.diff
original:
<h1>HELLO <%= edition.title %></h1>
updated:
<div id="task-name" class="page_heading article-heading">
<figure>
<h1>
<%= edition.title %>
... | <p class="step-label">
<span class="step-number"><%= nav_part.order %></span>
</p>
<h3><%= nav_part.title %></h3>
<p><%= nav_part.excerpt %></p>
</a>
... | <|file_sep|>app/views/guides_front_end/guide.html.erb.diff
original:
<h1>HELLO <%= edition.title %></h1>
updated:
<div id="task-name" class="page_heading article-heading">
<figure>
<h1>
<%= edition.title %>
... | 72b74f1611aea20ce887a440a48ab360c15c45ba | app/views/guides_front_end/guide.html.erb | app/views/guides_front_end/guide.html.erb | HTML+ERB |
<|file_sep|>original/data-aggregation-accumulator.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'data_aggregation-accumulator'
s.version = '0.3.0.0'
s.summary = 'Data aggregation accumulator library'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'developers... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'data_aggregation-accumulator'
s.version = '0.3.0.1'
s.summary = 'Data aggregation accumulator library'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'developers@obsidianexchange.com'
s.homepage = 'https://github.com/... | <|file_sep|>original/data-aggregation-accumulator.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'data_aggregation-accumulator'
s.version = '0.3.0.0'
s.summary = 'Data aggregation accumulator library'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'developers... | c9fed33efdaf6647f2c1b0ced97113a7eccd13c6 | data-aggregation-accumulator.gemspec | data-aggregation-accumulator.gemspec | Ruby |
<|file_sep|>gulpfile.js.diff
original:
gulp.task('default', ['sass'], function () {
//gulp.src('./node_modules/font-awesome/fonts/**/*.{eot,svg,ttf,woff,woff2}')
// .pipe(gulp.dest('./styles/warriormachines_2016/theme/gulp-generated/fonts'));
updated:
gulp.task('default', ['sass', 'fonts'], function () {
<|... | var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('default', ['sass', 'fonts'], function () {
});
gulp.task('sass', function () {
return gulp.src('./styles/warriormachines_2016/theme/sass/app.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./styles/warriormac... | <|file_sep|>gulpfile.js.diff
original:
gulp.task('default', ['sass'], function () {
//gulp.src('./node_modules/font-awesome/fonts/**/*.{eot,svg,ttf,woff,woff2}')
// .pipe(gulp.dest('./styles/warriormachines_2016/theme/gulp-generated/fonts'));
updated:
gulp.task('default', ['sass', 'fonts'], function () {
<|... | be3aac36283d562d94f358e81de722e1854f56b7 | gulpfile.js | gulpfile.js | JavaScript |
<|file_sep|>original/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb
<|file_sep|>current/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb
<|file_sep|>updated/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb | class AddMaterialisedViewForValidTaxonConceptTermView < ActiveRecord::Migration
def up
execute "DROP MATERIALIZED VIEW IF EXISTS valid_taxon_concept_term_mview"
execute "CREATE MATERIALIZED VIEW valid_taxon_concept_term_mview AS SELECT * FROM valid_taxon_concept_term_view"
execute "CREATE INDEX ON valid_t... | <|file_sep|>original/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb
<|file_sep|>current/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb
<|file_sep|>updated/db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb
cl... | e506ec7cedd7e1227f0e84ac85383a9f039b84ce | db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb | db/migrate/20170224133932_add_materialised_view_for_valid_taxon_concept_term_view.rb | Ruby |
<|file_sep|>original/app/views/spree/products/_thumbnails.html.erb
<!-- no need for thumnails unless there is more then one image -->
<% if product.images.size > 1 %>
<ul id="product-thumbnails" class="thumbnails inline" data-hook>
<% product.images.each do |i| %>
<li class="tmb-all" id="tmb-<%= i.id.to_s %... | <!-- no need for thumnails unless there is more then one image -->
<% if product.images.size > 1 || product.variant_images.size > 0 %>
<ul id="product-thumbnails" class="thumbnails inline" data-hook>
<% product.images.each do |i| %>
<li class="tmb-all" id="tmb-<%= i.id.to_s %>"><%= link_to image_tag(i.attac... | <|file_sep|>original/app/views/spree/products/_thumbnails.html.erb
<!-- no need for thumnails unless there is more then one image -->
<% if product.images.size > 1 %>
<ul id="product-thumbnails" class="thumbnails inline" data-hook>
<% product.images.each do |i| %>
<li class="tmb-all" id="tmb-<%= i.id.to_s %... | 33ea4c13f34985718dafb685002392201a0d0ad4 | app/views/spree/products/_thumbnails.html.erb | app/views/spree/products/_thumbnails.html.erb | HTML+ERB |
<|file_sep|>original/scripts/build-ooniprobe.sh
<|file_sep|>current/scripts/build-ooniprobe.sh
<|file_sep|>updated/scripts/build-ooniprobe.sh | #!/bin/bash
set -e
cd ../
python setup.py sdist
cd dist/
py2dsc ooniprobe-*.tar.gz
cd deb_dist/ooniprobe-*
rm -rf debian/
cp -rf ../../../debian ./debian
debuild | <|file_sep|>original/scripts/build-ooniprobe.sh
<|file_sep|>current/scripts/build-ooniprobe.sh
<|file_sep|>updated/scripts/build-ooniprobe.sh
#!/bin/bash
set -e
cd ../
python setup.py sdist
cd dist/
py2dsc ooniprobe-*.tar.gz
cd deb_dist/ooniprobe-*
rm -rf debian/
cp -rf ../../../debian ./debian
debuild | 24a0567a6810c63d7257483f2d863575596f9d5f | scripts/build-ooniprobe.sh | scripts/build-ooniprobe.sh | Shell |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.10'
before_install:
- npm update -g npm
after_script:
- npm run coveralls
after_failure:
- tar -cjf "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" tmp && curl --ftp-create-dirs -T "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" -u $FTP_USER... | language: node_js
node_js:
- '0.10'
- '0.12'
before_install:
- npm update -g npm
after_script:
- npm run coveralls
after_failure:
- tar -cjf "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" tmp && curl --ftp-create-dirs -T "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" -u $FTP_USER:$FTP_PASSWORD "ftp://... | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.10'
before_install:
- npm update -g npm
after_script:
- npm run coveralls
after_failure:
- tar -cjf "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" tmp && curl --ftp-create-dirs -T "svg-sprite_travis_${TRAVIS_BUILD_NUMBER}.tar.bz2" -u $FTP_USER... | a977fc75bbe7d4c29bed7529faa296f8b6b146d8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>services/relocator/environment.rb.diff
original:
updated:
return "cartodb_user_#{user_id}" if environment == 'production'
<|file_sep|>services/relocator/environment.rb.diff
original:
updated:
return "cartodb_user_#{user_id}_db" if environment == 'production'
<|file_sep|>original/services/r... | @user_id = user_id
end #initialize
def database_username
return "cartodb_user_#{user_id}" if environment == 'production'
return "cartodb_staging_user_#{user_id}" if environment == 'staging'
"#{environment}_cartodb_user_#{user_id}"
end #database_username
def... | <|file_sep|>services/relocator/environment.rb.diff
original:
updated:
return "cartodb_user_#{user_id}" if environment == 'production'
<|file_sep|>services/relocator/environment.rb.diff
original:
updated:
return "cartodb_user_#{user_id}_db" if environment == 'production'
<|file_sep|>original/services/r... | 50b5876f335ad0ced6369a849b36d42879a08fc5 | services/relocator/environment.rb | services/relocator/environment.rb | Ruby |
<|file_sep|>sympy/printing/__init__.py.diff
original:
from pretty import *
updated:
from pretty import pager_print, pretty, pretty_print, pprint, \
pprint_use_unicode, pprint_try_use_unicode
<|file_sep|>original/sympy/printing/__init__.py
"""Printing subsystem"""
from pretty import *
from latex import latex, print... | """Printing subsystem"""
from pretty import pager_print, pretty, pretty_print, pprint, \
pprint_use_unicode, pprint_try_use_unicode
from latex import latex, print_latex
from mathml import mathml, print_mathml
from python import python, print_python
from ccode import ccode, print_ccode
from fcode import fcode, prin... | <|file_sep|>sympy/printing/__init__.py.diff
original:
from pretty import *
updated:
from pretty import pager_print, pretty, pretty_print, pprint, \
pprint_use_unicode, pprint_try_use_unicode
<|file_sep|>original/sympy/printing/__init__.py
"""Printing subsystem"""
from pretty import *
from latex import latex, print... | df690e4c2f19e30c619db90b8b2dfd77dab54159 | sympy/printing/__init__.py | sympy/printing/__init__.py | Python |
<|file_sep|>original/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift
<|file_sep|>current/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift
<|file_sep|>updated/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift | // This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list... | <|file_sep|>original/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift
<|file_sep|>current/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift
<|file_sep|>updated/validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift
// This source... | 40c05148597d8d8f567426ccb0a38a9c658bcc29 | validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift | validation-test/compiler_crashers/28331-swift-createdesignatedinitoverride.swift | Swift |
<|file_sep|>original/public/locales/azz/send.ftl
# Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteFeedback = Nikan uelis tikijkuilos tein tiknemilijtos
importingFile = Mokalakijtok...
encryptingFile = Motatijtok...
## Send version 2 strings
<|file_sep|>current/public/locales/azz/se... | # Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteFeedback = Nikan uelis tikijkuilos tein tiknemilijtos
importingFile = Mokalakijtok...
encryptingFile = Motatijtok...
decryptingFile = Kichiujtok se uelis kiixtajtoltis ya...
## Send version 2 strings
| <|file_sep|>original/public/locales/azz/send.ftl
# Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteFeedback = Nikan uelis tikijkuilos tein tiknemilijtos
importingFile = Mokalakijtok...
encryptingFile = Motatijtok...
## Send version 2 strings
<|file_sep|>current/public/locales/azz/se... | ecb9391439475eb25dd0bf1f4367e59fc3cc033f | public/locales/azz/send.ftl | public/locales/azz/send.ftl | FreeMarker |
<|file_sep|>addon/styles/helpers/_alignment.scss.diff
original:
updated:
@if ($include-css) {
.flexi-fit {
@include flex(none);
}
<|file_sep|>addon/styles/helpers/_alignment.scss.diff
original:
.flexi-fit {
@include flex(none);
updated:
.flexi-fill {
@include flex(1 0 auto);
}
.flexi-wrap {
@i... | @include flexAlignItems(stretch);
}
.align-center {
@include flexAlignItems(center);
}
.align-baseline {
@include flexAlignItems(baseline);
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
} | <|file_sep|>addon/styles/helpers/_alignment.scss.diff
original:
updated:
@if ($include-css) {
.flexi-fit {
@include flex(none);
}
<|file_sep|>addon/styles/helpers/_alignment.scss.diff
original:
.flexi-fit {
@include flex(none);
updated:
.flexi-fill {
@include flex(1 0 auto);
}
.flexi-wrap {
@i... | b9481ead19eba6c6ece79f095514fff4812ae425 | addon/styles/helpers/_alignment.scss | addon/styles/helpers/_alignment.scss | SCSS |
<|file_sep|>original/requirements.txt
Twisted==17.1.0
beautifulsoup4==4.5.3
psutil==5.2.2
python-dateutil==2.6.0
ply==3.10
enum34==1.1.6
twitter==1.17.1
requests==2.13.0
pytimeparse==1.1.6
pymysql==0.7.11
pycrypto==2.6.1
pyasn1==0.2.3
isodate==0.5.4
jq==0.1.6
google-api-python-client==1.6.2
pyxDamerauLevenshtein==1.4.1... | Twisted==17.1.0
beautifulsoup4==4.6.0
psutil==5.2.2
python-dateutil==2.6.0
ply==3.10
enum34==1.1.6
twitter==1.17.1
requests==2.13.0
pytimeparse==1.1.6
pymysql==0.7.11
pycrypto==2.6.1
pyasn1==0.2.3
isodate==0.5.4
jq==0.1.6
google-api-python-client==1.6.2
pyxDamerauLevenshtein==1.4.1
re2==0.2.22
parsedatetime==2.3
crypto... | <|file_sep|>original/requirements.txt
Twisted==17.1.0
beautifulsoup4==4.5.3
psutil==5.2.2
python-dateutil==2.6.0
ply==3.10
enum34==1.1.6
twitter==1.17.1
requests==2.13.0
pytimeparse==1.1.6
pymysql==0.7.11
pycrypto==2.6.1
pyasn1==0.2.3
isodate==0.5.4
jq==0.1.6
google-api-python-client==1.6.2
pyxDamerauLevenshtein==1.4.1... | b5a538f665eedfb2d70d34352843a3202593ad63 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/apps/ello_v2/web/controllers/following_post_controller.ex
|> add_page_headers(stream)
|> api_render_if_stale(PostView, :index, data: stream.posts)
end
defp fetch_stream(conn, params) do
user_ids = Network.following_ids(current_user(conn))
before = params["before"]
per_page... | |> add_page_headers(stream)
|> api_render_if_stale(PostView, :index, data: stream.posts)
end
defp fetch_stream(conn, params) do
user_ids = Network.following_ids(current_user(conn))
before = params["before"]
per_page = String.to_integer(params["per_page"] || "25")
Stream.fetch(keys: user_id... | <|file_sep|>original/apps/ello_v2/web/controllers/following_post_controller.ex
|> add_page_headers(stream)
|> api_render_if_stale(PostView, :index, data: stream.posts)
end
defp fetch_stream(conn, params) do
user_ids = Network.following_ids(current_user(conn))
before = params["before"]
per_page... | 83a9bc8b5a04c307b798a4807b5935849224b87d | apps/ello_v2/web/controllers/following_post_controller.ex | apps/ello_v2/web/controllers/following_post_controller.ex | Elixir |
<|file_sep|>original/problem_5/solution.c
<|file_sep|>current/problem_5/solution.c
<|file_sep|>updated/problem_5/solution.c | #include <stdio.h>
#define LIST_SIZE 20
unsigned long mdc(unsigned long a, unsigned long b){
unsigned long mod;
mod = a % b;
while(mod != 0){
a = b;
b = mod;
mod = a % b;
}
return b;
}
unsigned long mmc(unsigned long a, unsigned long b){
unsigned long r = a * b / mdc(a, b);
return r;
}
uns... | <|file_sep|>original/problem_5/solution.c
<|file_sep|>current/problem_5/solution.c
<|file_sep|>updated/problem_5/solution.c
#include <stdio.h>
#define LIST_SIZE 20
unsigned long mdc(unsigned long a, unsigned long b){
unsigned long mod;
mod = a % b;
while(mod != 0){
a = b;
b = mod;
mod = a % b;
}... | 753e1d55744ab3e79fa79612fc907e267521fbc4 | problem_5/solution.c | problem_5/solution.c | C |
<|file_sep|>original/spec/definitions/invoice/index.js
'$ref': '#/definitions/Client'
},
'items': {
'type': 'array',
'description': 'Billable items attached to the invoice',
'minItems': 1,
'items': {
'$ref': '#/definitions/Invoi... | },
'items': {
'type': 'array',
'description': 'Billable items attached to the invoice',
'minItems': 1,
'items': {
'$ref': '#/definitions/InvoiceItem'
}
},
'due': {
'type': 'string',
'forma... | <|file_sep|>original/spec/definitions/invoice/index.js
'$ref': '#/definitions/Client'
},
'items': {
'type': 'array',
'description': 'Billable items attached to the invoice',
'minItems': 1,
'items': {
'$ref': '#/definitions/Invoi... | 94d7099e82bdb3a27821fe1ad6b2c61d25d7aba4 | spec/definitions/invoice/index.js | spec/definitions/invoice/index.js | JavaScript |
<|file_sep|>original/.github/workflows/build.yml
<|file_sep|>current/.github/workflows/build.yml
<|file_sep|>updated/.github/workflows/build.yml | name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node... | <|file_sep|>original/.github/workflows/build.yml
<|file_sep|>current/.github/workflows/build.yml
<|file_sep|>updated/.github/workflows/build.yml
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions... | 3f1c25fdf7901234065f502fcf07881e5fc3b880 | .github/workflows/build.yml | .github/workflows/build.yml | YAML |
<|file_sep|>src/components/Echarts/index.js.diff
original:
import { WebView, View, StyleSheet } from 'react-native';
updated:
import { WebView, View, StyleSheet, Platform } from 'react-native';
<|file_sep|>original/src/components/Echarts/index.js
}
render() {
return (
<View style={{flex: 1, height: this.... | }
render() {
return (
<View style={{flex: 1, height: this.props.height || 400,}}>
<WebView
ref="chart"
scrollEnabled = {false}
injectedJavaScript = {renderChart(this.props)}
style={{
height: this.props.height || 400,
backgroundColor:... | <|file_sep|>src/components/Echarts/index.js.diff
original:
import { WebView, View, StyleSheet } from 'react-native';
updated:
import { WebView, View, StyleSheet, Platform } from 'react-native';
<|file_sep|>original/src/components/Echarts/index.js
}
render() {
return (
<View style={{flex: 1, height: this.... | 4e18c203b7f61c29ed241335a73748a987c7d796 | src/components/Echarts/index.js | src/components/Echarts/index.js | JavaScript |
<|file_sep|>original/skyve-ee/src/skyve/modules/admin/Communication/actions/CreateFiles.java
import org.skyve.metadata.controller.ServerSideActionResult;
import org.skyve.web.WebContext;
public class CreateFiles implements ServerSideAction<Communication> {
/**
* For Serialization
*/
private static final long ser... | import org.skyve.metadata.controller.ServerSideActionResult;
import org.skyve.web.WebContext;
public class CreateFiles implements ServerSideAction<Communication> {
/**
* For Serialization
*/
private static final long serialVersionUID = 2886341074753936987L;
/**
* Kick off the job to generate email files for ... | <|file_sep|>original/skyve-ee/src/skyve/modules/admin/Communication/actions/CreateFiles.java
import org.skyve.metadata.controller.ServerSideActionResult;
import org.skyve.web.WebContext;
public class CreateFiles implements ServerSideAction<Communication> {
/**
* For Serialization
*/
private static final long ser... | 0cfc07ed5cf5c6e092c19a74a4d29ceb3ca47977 | skyve-ee/src/skyve/modules/admin/Communication/actions/CreateFiles.java | skyve-ee/src/skyve/modules/admin/Communication/actions/CreateFiles.java | Java |
<|file_sep|>spec/controllers/application_controller_spec.rb.diff
original:
updated:
expect(assigns(:page_data)).to(
include(
:markdownOptions,
model: include(
:allDocs,
:filePath,
:savePath,
:editable,
:blockingError)))
<|file_sep|>original/sp... | describe Localdoc::ApplicationController do
it "GET /" do
get :show, use_route: :localdoc
expect(response).to be_success
expect(assigns(:page_data)).to(
include(
:markdownOptions,
model: include(
:allDocs,
:filePath,
:savePath,
:editable,
... | <|file_sep|>spec/controllers/application_controller_spec.rb.diff
original:
updated:
expect(assigns(:page_data)).to(
include(
:markdownOptions,
model: include(
:allDocs,
:filePath,
:savePath,
:editable,
:blockingError)))
<|file_sep|>original/sp... | 40dc3b505bc039f9773b158e9f7266485f503995 | spec/controllers/application_controller_spec.rb | spec/controllers/application_controller_spec.rb | Ruby |
<|file_sep|>0.4.2/start-image.sh.diff
original:
/start-image-hook.sh
updated:
. /start-image-hook.sh
<|file_sep|>original/0.4.2/start-image.sh
#!/bin/bash -e
echo `date` "Starting SSHD"
/usr/sbin/sshd -e
echo `date` "Starting MongoDB"
/usr/bin/mongod --config /etc/mongod.conf --fork --smallfiles --nojournal
# Te... | #!/bin/bash -e
echo `date` "Starting SSHD"
/usr/sbin/sshd -e
echo `date` "Starting MongoDB"
/usr/bin/mongod --config /etc/mongod.conf --fork --smallfiles --nojournal
# Test for and execute a hook script (to be past by docker images layered
# on top of this image.
if [ -x /start-image-hook.sh ]
then
echo `date` "Ru... | <|file_sep|>0.4.2/start-image.sh.diff
original:
/start-image-hook.sh
updated:
. /start-image-hook.sh
<|file_sep|>original/0.4.2/start-image.sh
#!/bin/bash -e
echo `date` "Starting SSHD"
/usr/sbin/sshd -e
echo `date` "Starting MongoDB"
/usr/bin/mongod --config /etc/mongod.conf --fork --smallfiles --nojournal
# Te... | 463fe9e4f4309d60377d78c14549369b426ba5f5 | 0.4.2/start-image.sh | 0.4.2/start-image.sh | Shell |
<|file_sep|>original/tasks/targets.yaml
- Shutdown
failure:
- Shutdown
provision:
description: Spin up a new machine
tasks:
- SetupNTP
- ProvisionGetConfig
- ProvisionFormatDisk
- ProvisionDebootstrap
- ProvisionSSHSetup
- ProvisionNetworkSetup
- ProvisionDNSSetup
- ProvisionHostnameSetup
-... | - Shutdown
failure:
- Shutdown
provision:
description: Spin up a new machine
tasks:
- SetupNTP
- ProvisionGetConfig
- ProvisionFormatDisk
- ProvisionDebootstrap
- ProvisionSetEnv
- ProvisionSSHSetup
- ProvisionNetworkSetup
- ProvisionDNSSetup
- ProvisionHostnameSetup
- ProvisionKernelSetu... | <|file_sep|>original/tasks/targets.yaml
- Shutdown
failure:
- Shutdown
provision:
description: Spin up a new machine
tasks:
- SetupNTP
- ProvisionGetConfig
- ProvisionFormatDisk
- ProvisionDebootstrap
- ProvisionSSHSetup
- ProvisionNetworkSetup
- ProvisionDNSSetup
- ProvisionHostnameSetup
-... | 5819ce8cefe54892c8d4a9a2f18adf6973242e6e | tasks/targets.yaml | tasks/targets.yaml | YAML |
<|file_sep|>original/requirements.txt
ansible-lint==4.3.7
docker==5.0.0
flake8==3.9.2
molecule==3.0.8
pytest==6.2.4
testinfra==6.0.0
tox==3.24.3
<|file_sep|>current/requirements.txt
ansible-lint==4.3.7
docker==5.0.0
flake8==3.9.2
molecule==3.0.8
pytest==6.2.4
testinfra==6.0.0
tox==3.24.3
<|file_sep|>updated/requirement... | ansible-lint==4.3.7
docker==5.0.0
flake8==3.9.2
molecule==3.0.8
pytest==6.2.5
testinfra==6.0.0
tox==3.24.3 | <|file_sep|>original/requirements.txt
ansible-lint==4.3.7
docker==5.0.0
flake8==3.9.2
molecule==3.0.8
pytest==6.2.4
testinfra==6.0.0
tox==3.24.3
<|file_sep|>current/requirements.txt
ansible-lint==4.3.7
docker==5.0.0
flake8==3.9.2
molecule==3.0.8
pytest==6.2.4
testinfra==6.0.0
tox==3.24.3
<|file_sep|>updated/requirement... | 4838e0171af82748738f81474b1d44da84da1e4b | requirements.txt | requirements.txt | Text |
<|file_sep|>.codeclimate.yml.diff
original:
updated:
checks:
Identical code:
enabled: false
Similar code:
enabled: false
<|file_sep|>.codeclimate.yml.diff
original:
- "app/admin/**.js"
- "app/customer/**.js"
updated:
- "app/**.js"
<|file_sep|>original/.codeclimate.yml
csslint:
... | enabled: true
checks:
Identical code:
enabled: false
Similar code:
enabled: false
config:
languages:
- javascript
eslint:
enabled: true
fixme:
enabled: true
ratings:
paths:
- "**.css"
- "app/**.js"
- "app/components/**.js"
exclude_paths:
- "app/*... | <|file_sep|>.codeclimate.yml.diff
original:
updated:
checks:
Identical code:
enabled: false
Similar code:
enabled: false
<|file_sep|>.codeclimate.yml.diff
original:
- "app/admin/**.js"
- "app/customer/**.js"
updated:
- "app/**.js"
<|file_sep|>original/.codeclimate.yml
csslint:
... | 0714f52c5a7e3da32dda987948dfe4b79143d42e | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>original/spec/dummy/spec/integration/user_model_mapping_spec.rb
require 'spec_helper'
describe 'User model mapping' do
let(:rom) { Rails.application.config.rom.env }
let(:users) { rom.read(:users) }
before do
rom.command(:users).create.call(name: 'Piotr')
end
it 'works' do
piotr = User... | require 'spec_helper'
describe 'User model mapping' do
let(:rom) { Rails.application.config.rom.env }
let(:users) { rom.read(:users) }
before do
rom.command(:users).try { create(name: 'Piotr') }
end
it 'works' do
piotr = User.new(id: 1, name: 'Piotr')
expect(users.by_name('Piotr').to_a).to eq... | <|file_sep|>original/spec/dummy/spec/integration/user_model_mapping_spec.rb
require 'spec_helper'
describe 'User model mapping' do
let(:rom) { Rails.application.config.rom.env }
let(:users) { rom.read(:users) }
before do
rom.command(:users).create.call(name: 'Piotr')
end
it 'works' do
piotr = User... | 506899e1375b453c81007e5c3c61676270aa2011 | spec/dummy/spec/integration/user_model_mapping_spec.rb | spec/dummy/spec/integration/user_model_mapping_spec.rb | Ruby |
<|file_sep|>metadata/nitezh.ministock.txt.diff
original:
updated:
Build:64,64
commit=version-64
gradle=yes
<|file_sep|>original/metadata/nitezh.ministock.txt
commit=version-58
Build:59,59
commit=version-59
Build:61,61
commit=version-61
gradle=yes
Build:62,62
commit=version-62
gradle... |
Build:61,61
commit=version-61
gradle=yes
Build:62,62
commit=version-62
gradle=yes
Build:63,63
commit=version-63
gradle=yes
Build:64,64
commit=version-64
gradle=yes
Auto Update Mode:Version version-%v
Update Check Mode:Tags
Current Version:64
Current Version Code:64 | <|file_sep|>metadata/nitezh.ministock.txt.diff
original:
updated:
Build:64,64
commit=version-64
gradle=yes
<|file_sep|>original/metadata/nitezh.ministock.txt
commit=version-58
Build:59,59
commit=version-59
Build:61,61
commit=version-61
gradle=yes
Build:62,62
commit=version-62
gradle... | c9bf06a9885467ae4de05ea9fded0e95e5a8854a | metadata/nitezh.ministock.txt | metadata/nitezh.ministock.txt | Text |
<|file_sep|>original/NEWS.md
-----
* Added composite operations combo in style wizards
* The list of public tables has been moved to a new page and is now accesible from the header
* Fixed table pagination animation for new Firefox 18 version
* User deletion now removes all the user data
* Added a VACUUM FULL after tab... | -----
* Added composite operations combo in style wizards
* The list of public tables has been moved to a new page and is now accesible from the header
* Fixed table pagination animation for new Firefox 18 version
* User deletion now removes all the user data
* Added a VACUUM FULL after table creation
* Fixed error whe... | <|file_sep|>original/NEWS.md
-----
* Added composite operations combo in style wizards
* The list of public tables has been moved to a new page and is now accesible from the header
* Fixed table pagination animation for new Firefox 18 version
* User deletion now removes all the user data
* Added a VACUUM FULL after tab... | 106c48f1b4229cc0087408e105c03977afe297e6 | NEWS.md | NEWS.md | Markdown |
<|file_sep|>validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EIDASUtils.java.diff
original:
updated:
*
* Regulation was signed in Brussels : 1st of July 00:00 Brussels = 30th of June 22:00 UTC
<|file_sep|>validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EI... | /**
* Start date of the eIDAS regulation
*
* Regulation was signed in Brussels : 1st of July 00:00 Brussels = 30th of June 22:00 UTC
*/
private final static Date EIDAS_DATE = DatatypeConverter.parseDateTime("2016-06-30T22:00:00.000Z").getTime();
/**
* End of the grace period for eIDAS regulation
*/
pr... | <|file_sep|>validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EIDASUtils.java.diff
original:
updated:
*
* Regulation was signed in Brussels : 1st of July 00:00 Brussels = 30th of June 22:00 UTC
<|file_sep|>validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EI... | 285032cc20b5420ec627bd5622140bd790cd644c | validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EIDASUtils.java | validation-policy/src/main/java/eu/europa/esig/dss/validation/process/qmatrix/EIDASUtils.java | Java |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras yet. Let's keep this simple
script:
- python -m pytest src
<|file_sep|>current/.travis.yml
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras ... | language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras yet. Let's keep this simple
script:
- make test | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras yet. Let's keep this simple
script:
- python -m pytest src
<|file_sep|>current/.travis.yml
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras ... | f1f29c9a8503514a1e4fea18742629165670f6f8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/sale_automatic_workflow/models/stock_move.py
# -*- coding: utf-8 -*-
# © 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
# © 2013 Camptocamp SA (author: Guewen Baconnier)
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
clas... | # -*- coding: utf-8 -*-
# © 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
# © 2013 Camptocamp SA (author: Guewen Baconnier)
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class StockMove(models.Model):
_inherit = 'stock.move'
@api.m... | <|file_sep|>original/sale_automatic_workflow/models/stock_move.py
# -*- coding: utf-8 -*-
# © 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
# © 2013 Camptocamp SA (author: Guewen Baconnier)
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
clas... | 16e9987e680a6a44acdb14bd7554414dfe261056 | sale_automatic_workflow/models/stock_move.py | sale_automatic_workflow/models/stock_move.py | Python |
<|file_sep|>original/requirements.txt
PyBluez==0.20
argparse==1.2.1
distribute==0.6.24
enum34==0.9.23
nose==1.3.1
protobuf==2.5.0
pyzmq==14.1.1
wsgiref==0.1.2
<|file_sep|>current/requirements.txt
PyBluez==0.20
argparse==1.2.1
distribute==0.6.24
enum34==0.9.23
nose==1.3.1
protobuf==2.5.0
pyzmq==14.1.1
wsgiref==0.1.2
<|f... | PyBluez==0.20
distribute==0.6.24
enum34==0.9.23
nose==1.3.1
protobuf==2.5.0
pyzmq==14.1.1
wsgiref==0.1.2 | <|file_sep|>original/requirements.txt
PyBluez==0.20
argparse==1.2.1
distribute==0.6.24
enum34==0.9.23
nose==1.3.1
protobuf==2.5.0
pyzmq==14.1.1
wsgiref==0.1.2
<|file_sep|>current/requirements.txt
PyBluez==0.20
argparse==1.2.1
distribute==0.6.24
enum34==0.9.23
nose==1.3.1
protobuf==2.5.0
pyzmq==14.1.1
wsgiref==0.1.2
<|f... | 15f25daf4fdcb85dc0cff580dcfae36ab9a9a22f | requirements.txt | requirements.txt | Text |
<|file_sep|>original/pkgs/development/compilers/ghc/abi-depends-determinism.nix
# https://phabricator.haskell.org/D4159 to fix non-determinism in
# cached abi-depends fields in package databases, modified to only
# contain hunks that exist in distribution tarballs.
{ fetchpatch, runCommand }: let
base = fetchpatch { ... | # https://phabricator.haskell.org/D4159 to fix non-determinism in
# cached abi-depends fields in package databases, modified to only
# contain hunks that exist in distribution tarballs.
{ fetchpatch, runCommand }: let
base = fetchpatch rec { # Non-determinism in cached abi-depends fields
# Originally https://phab... | <|file_sep|>original/pkgs/development/compilers/ghc/abi-depends-determinism.nix
# https://phabricator.haskell.org/D4159 to fix non-determinism in
# cached abi-depends fields in package databases, modified to only
# contain hunks that exist in distribution tarballs.
{ fetchpatch, runCommand }: let
base = fetchpatch { ... | fbe8deb2827759f459815da3f06e0e3353019cb8 | pkgs/development/compilers/ghc/abi-depends-determinism.nix | pkgs/development/compilers/ghc/abi-depends-determinism.nix | Nix |
<|file_sep|>original/perftest.py
<|file_sep|>current/perftest.py
<|file_sep|>updated/perftest.py | """
Simple peformance tests.
"""
import sys
import time
import couchdb
def main():
print 'sys.version : %r' % (sys.version,)
print 'sys.platform : %r' % (sys.platform,)
tests = [create_doc, create_bulk_docs]
if len(sys.argv) > 1:
tests = [test for test in tests if test.__name__ in sys.argv... | <|file_sep|>original/perftest.py
<|file_sep|>current/perftest.py
<|file_sep|>updated/perftest.py
"""
Simple peformance tests.
"""
import sys
import time
import couchdb
def main():
print 'sys.version : %r' % (sys.version,)
print 'sys.platform : %r' % (sys.platform,)
tests = [create_doc, create_bulk_d... | 3c9fc8bbdbbcbca148a3b00c22a0e5fdaa9108aa | perftest.py | perftest.py | Python |
<|file_sep|>original/configs/powerline/config.json
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "default",
"theme": "default",
"local_themes": {
"__tabline__": "tabline... | "local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "solarized",
"theme": "default",
"local_themes": {
"__tabline__": "tabline",
"cmdwin": "cmdwin",
"help": "help",
... | <|file_sep|>original/configs/powerline/config.json
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "default",
"theme": "default",
"local_themes": {
"__tabline__": "tabline... | 2be9caf69bda91bd6fdbbb5b10469063ebf4ff21 | configs/powerline/config.json | configs/powerline/config.json | JSON |
<|file_sep|>original/backend/src/main/resources/public/index.html
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<h1>Welcome to Educa... | <!doctype html>
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<h1>Welcome to Educama Backend</h1>
<ul>
<li><a href="/app/tasklist/default/#">C... | <|file_sep|>original/backend/src/main/resources/public/index.html
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<h1>Welcome to Educa... | 2258c78df52755e8d9dafc1a42b4b30186301c88 | backend/src/main/resources/public/index.html | backend/src/main/resources/public/index.html | HTML |
<|file_sep|>original/app/models/user.rb
require 'bcrypt'
class User < ActiveRecord::Base
include BCrypt
has_many :decks, through :rounds
validates :last_name, :first_name, :user_name, :email, presence: true
def password
@password ||= Password.new(password_hash) if password_hash.present?
end
def pa... | require 'bcrypt'
class User < ActiveRecord::Base
include BCrypt
has_many :decks, through: :rounds
validates :last_name, :first_name, :user_name, :email, presence: true
def password
@password ||= Password.new(password_hash) if password_hash.present?
end
def password=(new_password)
@password = P... | <|file_sep|>original/app/models/user.rb
require 'bcrypt'
class User < ActiveRecord::Base
include BCrypt
has_many :decks, through :rounds
validates :last_name, :first_name, :user_name, :email, presence: true
def password
@password ||= Password.new(password_hash) if password_hash.present?
end
def pa... | e636d53caf49ff626b21076bb31fa84ee32415e9 | app/models/user.rb | app/models/user.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
addons:
chrome: stable
node_js:
- "6"
- "8"
env:
- WEBPACK_VERSION=4
- WEBPACK_VERSION=3
script: yarn lint && yarn add --dev webpack@$WEBPACK_VERSION && yarn test
<|file_sep|>current/.travis.yml
language: node_js
addons:
chrome: stable
node_js:
- "6"
- ... | language: node_js
addons:
chrome: stable
node_js:
- "6"
- "8"
- "10"
- "12"
env:
- WEBPACK_VERSION=4
- WEBPACK_VERSION=3
script: yarn lint && yarn add --dev webpack@$WEBPACK_VERSION && yarn test | <|file_sep|>original/.travis.yml
language: node_js
addons:
chrome: stable
node_js:
- "6"
- "8"
env:
- WEBPACK_VERSION=4
- WEBPACK_VERSION=3
script: yarn lint && yarn add --dev webpack@$WEBPACK_VERSION && yarn test
<|file_sep|>current/.travis.yml
language: node_js
addons:
chrome: stable
node_js:
- "6"
- ... | 1d6d44f96cea52b21a919b9df900f81675b8859a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/_pages/services/backends/tooling_en.md
---
layout: default
title: Backends - Tooling
lang: en
permalink: "/services/backends/tooling_en/"
lang_ref: services_backends_tooling
---
### Custom tools of the trade
Sometimes you need more than what comes out of the box.
To be sure, [COTS](https://en.wik... | ---
layout: default
title: Backends - Tooling
lang: en
permalink: "/services/backends/tooling_en/"
lang_ref: services_backends_tooling
---
### Custom tools of the trade
Sometimes you need more than what comes out of the box.
[COTS](https://en.wikipedia.org/wiki/Commercial_off-the-shelf) is almost always the best choi... | <|file_sep|>original/_pages/services/backends/tooling_en.md
---
layout: default
title: Backends - Tooling
lang: en
permalink: "/services/backends/tooling_en/"
lang_ref: services_backends_tooling
---
### Custom tools of the trade
Sometimes you need more than what comes out of the box.
To be sure, [COTS](https://en.wik... | d1e1a0b5febc1c1d53fabe85bdac5769251b0d5e | _pages/services/backends/tooling_en.md | _pages/services/backends/tooling_en.md | Markdown |
<|file_sep|>original/metadata.rb
maintainer "Heavy Water Software Inc."
maintainer_email "darrin@heavywater.ca"
license "Apache 2.0"
description "Installs/Configures locale"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.0"
supports "ubuntu"
supports ... | name "locale"
maintainer "Heavy Water Software Inc."
maintainer_email "darrin@heavywater.ca"
license "Apache 2.0"
description "Installs/Configures locale"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.0"
supports "ubuntu"
supports "debian"
supports "... | <|file_sep|>original/metadata.rb
maintainer "Heavy Water Software Inc."
maintainer_email "darrin@heavywater.ca"
license "Apache 2.0"
description "Installs/Configures locale"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.0"
supports "ubuntu"
supports ... | ef4387a54cb0e19ab5a0197f114af55b163e9643 | metadata.rb | metadata.rb | Ruby |
<|file_sep|>original/README.md
# Typus::I18n
i18n files for typus
## Installation
Add this line to your application's Gemfile:
gem 'typus-i18n'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typus-i18n
## Usage
TODO
<|file_sep|>current/README.md
# Typus::I18n
i18n files for t... | [](https://travis-ci.org/typus/typus-i18n)
# Typus::I18n
i18n files for typus
## Installation
Add this line to your application's Gemfile:
gem 'typus-i18n'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typus-i18n
... | <|file_sep|>original/README.md
# Typus::I18n
i18n files for typus
## Installation
Add this line to your application's Gemfile:
gem 'typus-i18n'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typus-i18n
## Usage
TODO
<|file_sep|>current/README.md
# Typus::I18n
i18n files for t... | a21c0f3afbe26473f9e5e4787e01f59d8e4bcf48 | README.md | README.md | Markdown |
<|file_sep|>original/tests/requirements.txt
hiredis==0.2.0
flake8==3.5.0
coverage==4.4.2
pytest==3.3.1
pytest-cov==2.5.1
pytest-xdist==1.21.0
async-timeout==2.0.0
<|file_sep|>current/tests/requirements.txt
hiredis==0.2.0
flake8==3.5.0
coverage==4.4.2
pytest==3.3.1
pytest-cov==2.5.1
pytest-xdist==1.21.0
async-timeout==2... | hiredis==0.2.0
flake8==3.5.0
coverage==4.4.2
pytest==3.3.2
pytest-cov==2.5.1
pytest-xdist==1.21.0
async-timeout==2.0.0 | <|file_sep|>original/tests/requirements.txt
hiredis==0.2.0
flake8==3.5.0
coverage==4.4.2
pytest==3.3.1
pytest-cov==2.5.1
pytest-xdist==1.21.0
async-timeout==2.0.0
<|file_sep|>current/tests/requirements.txt
hiredis==0.2.0
flake8==3.5.0
coverage==4.4.2
pytest==3.3.1
pytest-cov==2.5.1
pytest-xdist==1.21.0
async-timeout==2... | bfa9e1d5c7bd3b2d0250f39c9765171e12b9514e | tests/requirements.txt | tests/requirements.txt | Text |
<|file_sep|>original/jetty-bootstrap-example-explodedwarfc2/README.txt
* Build
mvn package
* Launch server
java -jar target/jetty-bootstrap-example-explodedwarfc-1.0.0.jar
* Test
=> http://localhost:8080
<|file_sep|>current/jetty-bootstrap-example-explodedwarfc2/README.txt
* Build
mvn package
* Launch server
ja... | * Build
mvn package
* Launch server
java -jar target/jetty-bootstrap-example-explodedwarfc2-1.0.0.jar
* Test
=> http://localhost:8080 | <|file_sep|>original/jetty-bootstrap-example-explodedwarfc2/README.txt
* Build
mvn package
* Launch server
java -jar target/jetty-bootstrap-example-explodedwarfc-1.0.0.jar
* Test
=> http://localhost:8080
<|file_sep|>current/jetty-bootstrap-example-explodedwarfc2/README.txt
* Build
mvn package
* Launch server
ja... | 5a7609e766f4d27ef5e960ad319902ac6a08b7f3 | jetty-bootstrap-example-explodedwarfc2/README.txt | jetty-bootstrap-example-explodedwarfc2/README.txt | Text |
<|file_sep|>original/lib/WicsGui/Logger.pm
#small logging class to forward Log::Any logs to Wx logging
package WicsGui::Logger;
use base qw(Log::Any::Adapter::Base);
use Log::Any::Adapter::Util qw(make_method);
use Wx;
# Create logging methods: debug, info, etc.
foreach my $method ( Log::Any->logging_methods() ) {
... | #small logging class to forward Log::Any logs to Wx logging
package WicsGui::Logger;
use strict;
use warnings;
use base qw(Log::Any::Adapter::Base);
use Log::Any::Adapter::Util qw(make_method);
use Wx;
# Create logging methods: debug, info, etc.
foreach my $method ( Log::Any->logging_methods() ) {
# TODO: would ra... | <|file_sep|>original/lib/WicsGui/Logger.pm
#small logging class to forward Log::Any logs to Wx logging
package WicsGui::Logger;
use base qw(Log::Any::Adapter::Base);
use Log::Any::Adapter::Util qw(make_method);
use Wx;
# Create logging methods: debug, info, etc.
foreach my $method ( Log::Any->logging_methods() ) {
... | eeae563b6a1c57e3f2a8a23ec03fac08bb1b62f8 | lib/WicsGui/Logger.pm | lib/WicsGui/Logger.pm | Perl |
<|file_sep|>lib/form_san/form_builder.rb.diff
original:
alias to_s output
updated:
alias output to_s
<|file_sep|>original/lib/form_san/form_builder.rb
@record = record
@options = options
end
def fieldset(html_options={}, &block)
html_options[:class] ||= []
html_options[:clas... | module FormSan
class FormBuilder
attr_accessor :output
alias output to_s
def initialize(record, options={})
@output = ''
@record = record
@options = options
end
end
end | <|file_sep|>lib/form_san/form_builder.rb.diff
original:
alias to_s output
updated:
alias output to_s
<|file_sep|>original/lib/form_san/form_builder.rb
@record = record
@options = options
end
def fieldset(html_options={}, &block)
html_options[:class] ||= []
html_options[:clas... | 312e6826deed7df3eca937ca28db9553aa87f798 | lib/form_san/form_builder.rb | lib/form_san/form_builder.rb | Ruby |
<|file_sep|>original/templates/sshd.template.yml
sv stop sshd
- exec:
hook: sshd
cmd:
- mkdir -p /var/run/sshd
- mkdir -p /root/.ssh
- echo "$ssh_key" >> /root/.ssh/authorized_keys
- echo "$$ENV_SSH_PUB_KEY" >> /root/.ssh/authorized_keys
- chmod 640 /root/.s... | chmod: "+x"
contents: |
#!/bin/bash
sv stop sshd
- exec:
hook: sshd
cmd:
- mkdir -p /var/run/sshd
- mkdir -p /root/.ssh
- echo "$ssh_key" >> /root/.ssh/authorized_keys
- echo "$$ENV_SSH_PUB_KEY" >> /root/.ssh/authorized_keys
- chmod 640 /roo... | <|file_sep|>original/templates/sshd.template.yml
sv stop sshd
- exec:
hook: sshd
cmd:
- mkdir -p /var/run/sshd
- mkdir -p /root/.ssh
- echo "$ssh_key" >> /root/.ssh/authorized_keys
- echo "$$ENV_SSH_PUB_KEY" >> /root/.ssh/authorized_keys
- chmod 640 /root/.s... | 1a1ea032c33e8fb241f0d0e6f27ff5dcb65adc01 | templates/sshd.template.yml | templates/sshd.template.yml | YAML |
<|file_sep|>original/.travis.yml
before_install:
- gem install bundler
branches:
only: master
notifications:
email:false
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
before_install:
- gem install bundler
branches:
only: master
notifications:
email:false
rvm:
- 1.8.7
- 1.9.2
- 1.9... | before_install:
- gem install bundler
branches:
only: master
notifications:
email:false
rvm:
- 1.9.2
- 1.9.3 | <|file_sep|>original/.travis.yml
before_install:
- gem install bundler
branches:
only: master
notifications:
email:false
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
before_install:
- gem install bundler
branches:
only: master
notifications:
email:false
rvm:
- 1.8.7
- 1.9.2
- 1.9... | 2d2b55f689f422786b02064ee67bf261e44b72cb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/bin/jshelper.py
<|file_sep|>current/bin/jshelper.py
<|file_sep|>updated/bin/jshelper.py | #!/usr/bin/env python
from __future__ import print_function, unicode_literals
import os
import sys
import uuid
from datetime import timedelta
from aspen.utils import utcnow
import gratipay
from gratipay import wireup
from gratipay.models.participant import Participant
if len(sys.argv) < 2:
sys.exit('Usage: ... | <|file_sep|>original/bin/jshelper.py
<|file_sep|>current/bin/jshelper.py
<|file_sep|>updated/bin/jshelper.py
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import os
import sys
import uuid
from datetime import timedelta
from aspen.utils import utcnow
import gratipay
from gratipay ... | 873f21b6ef730d3367bb8ccf5624693d1c6b5a64 | bin/jshelper.py | bin/jshelper.py | Python |
<|file_sep|>original/Samples/Media/materials/programs/GLSL400/TesselationTd.glsl
#version 400 core
uniform mat4 g_mWorldViewProjection;
// GLSL tessellation evaluation shader (domain shader in HLSL).
layout(triangles, equal_spacing, cw) in;
void main()
{
// Baricentric interpolation
vec3 finalPos = (gl_TessCo... | #version 400 core
uniform mat4 g_mWorldViewProjection;
// GLSL tessellation evaluation shader (domain shader in HLSL).
layout(triangles, equal_spacing, cw) in;
void main()
{
// Baricentric interpolation
vec3 finalPos = vec3(gl_TessCoord.x * gl_in[0].gl_Position +
gl_TessCoord.y * gl_... | <|file_sep|>original/Samples/Media/materials/programs/GLSL400/TesselationTd.glsl
#version 400 core
uniform mat4 g_mWorldViewProjection;
// GLSL tessellation evaluation shader (domain shader in HLSL).
layout(triangles, equal_spacing, cw) in;
void main()
{
// Baricentric interpolation
vec3 finalPos = (gl_TessCo... | 6f1ee7d8fb3fa3d784c89a5e7a4d6946d3168479 | Samples/Media/materials/programs/GLSL400/TesselationTd.glsl | Samples/Media/materials/programs/GLSL400/TesselationTd.glsl | GLSL |
<|file_sep|>app/templates/_common/eventsummary.html.twig.diff
original:
<strong>{{ event.getStartDate|format_date }}</strong> –
<strong>{{ event.getEndDate|format_date }}</strong>
updated:
<|file_sep|>app/templates/_common/eventsummary.html.twig.diff
original:
updated:
{{ eve... | </p>
<p class="wideOnly">{{ event.getDescription | slice(0, 200)}}…</p>
<p class="meta">
{{ event.getStartDate|date('M d Y') }}
{% if event.getStartDate|date('M d Y')
is not sameas(event.getEndDate|date('M d Y')) %}
– {{... | <|file_sep|>app/templates/_common/eventsummary.html.twig.diff
original:
<strong>{{ event.getStartDate|format_date }}</strong> –
<strong>{{ event.getEndDate|format_date }}</strong>
updated:
<|file_sep|>app/templates/_common/eventsummary.html.twig.diff
original:
updated:
{{ eve... | d368b6e9faac39207b5a51387200d46a3e1b6674 | app/templates/_common/eventsummary.html.twig | app/templates/_common/eventsummary.html.twig | Twig |
<|file_sep|>original/repository.yaml
<|file_sep|>current/repository.yaml
<|file_sep|>updated/repository.yaml | repoVisibility: public_0C3F0CE3E6E6448FAD341E7BFA50FCD333E06A20CFF05FCACE61154DDBBADF71 | <|file_sep|>original/repository.yaml
<|file_sep|>current/repository.yaml
<|file_sep|>updated/repository.yaml
repoVisibility: public_0C3F0CE3E6E6448FAD341E7BFA50FCD333E06A20CFF05FCACE61154DDBBADF71 | 9cd195af9e4a06483c072943668acfb5d233a85a | repository.yaml | repository.yaml | YAML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
<|file_sep|>updated/.travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- composer install | <|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
<|file_sep|>updated/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_sc... | 57925097a8216e9f6081e6f77a540df40cd2c629 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/non-stupid-digest-assets.rb.diff
original:
logger.info "Writing #{full_non_digest_path}"
FileUtils.cp full_digest_path, full_non_digest_path
updated:
if File.exists? full_digest_path
logger.info "Writing #{full_non_digest_path}"
FileUtils.cp full_digest_path,... | full_non_digest_path = File.join dir, info['logical_path']
full_non_digest_gz_path = "#{full_non_digest_path}.gz"
if File.exists? full_digest_path
logger.info "Writing #{full_non_digest_path}"
FileUtils.cp full_digest_path, full_non_digest_path
else
logger.... | <|file_sep|>lib/non-stupid-digest-assets.rb.diff
original:
logger.info "Writing #{full_non_digest_path}"
FileUtils.cp full_digest_path, full_non_digest_path
updated:
if File.exists? full_digest_path
logger.info "Writing #{full_non_digest_path}"
FileUtils.cp full_digest_path,... | eb783a065fbf09e805f0648c3cfb6329f1415be3 | lib/non-stupid-digest-assets.rb | lib/non-stupid-digest-assets.rb | Ruby |
<|file_sep|>original/package.json
{
"name": "pulsar",
"version": "0.1.0",
"description": "A distributed visualiser",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack src/pulsar.js dist/pulsar.js --module-bind json",
"watch": "npm run build -... | {
"name": "pulsar",
"version": "0.1.0",
"description": "A distributed visualiser",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack src/pulsar.js dist/pulsar.js --module-bind json",
"watch": "npm run build -- --watch",
"start": "node ind... | <|file_sep|>original/package.json
{
"name": "pulsar",
"version": "0.1.0",
"description": "A distributed visualiser",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack src/pulsar.js dist/pulsar.js --module-bind json",
"watch": "npm run build -... | 2a23258be0f9eec8c2e9f78aa459d1976241e395 | package.json | package.json | JSON |
<|file_sep|>indico/modules/events/registration/views.py.diff
original:
template_prefix = 'events/registration'
updated:
template_prefix = 'events/registration/'
<|file_sep|>original/indico/modules/events/registration/views.py
#
# Indico is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRAN... | # General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Indico; if not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
from MaKaC.webinterface.pages.base import WPJinjaMixin
from MaKaC.webinterface.pages.conferences imp... | <|file_sep|>indico/modules/events/registration/views.py.diff
original:
template_prefix = 'events/registration'
updated:
template_prefix = 'events/registration/'
<|file_sep|>original/indico/modules/events/registration/views.py
#
# Indico is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRAN... | 53fbfc19090ce9e2447d3811ef5807422b71f426 | indico/modules/events/registration/views.py | indico/modules/events/registration/views.py | Python |
<|file_sep|>original/appveyor.yml
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host ... | environment:
# At the time this was added AppVeyor was having troubles with checking
# revocation of SSL certificates of sites like static.rust-lang.org and what
# we think is crates.io. The libcurl HTTP client by default checks for
# revocation on Windows and according to a mailing list [1] this can be
# di... | <|file_sep|>original/appveyor.yml
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
OTHER_TARGET: i686-pc-windows-msvc
MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host ... | e3ce6627fc3fbedf2a0e77d201e071f725484e87 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/djangocms_styledlink/templates/djangocms_styledlink/styled_link.html
<span class="plugin_styledlink{% for style in instance.styles.all %} {{ style.link_class }}{% endfor %}"><span class="inner">{% if instance.link %}<a href="{{ instance.link }}"{% if instance.target %} target="{{ instance.target }}... | {% load cms_tags %}<span class="plugin_styledlink{% for style in instance.styles.all %} {{ style.link_class }}{% endfor %}"><span class="inner">{% if instance.link %}<a href="{{ instance.link }}"{% if instance.target %} target="{{ instance.target }}"{% endif %}{% if instance.ext_follow %} rel="nofollow"{% endif %}>{% e... | <|file_sep|>original/djangocms_styledlink/templates/djangocms_styledlink/styled_link.html
<span class="plugin_styledlink{% for style in instance.styles.all %} {{ style.link_class }}{% endfor %}"><span class="inner">{% if instance.link %}<a href="{{ instance.link }}"{% if instance.target %} target="{{ instance.target }}... | 926c1869740b8ed882ef15292d2d6cb8af359d4c | djangocms_styledlink/templates/djangocms_styledlink/styled_link.html | djangocms_styledlink/templates/djangocms_styledlink/styled_link.html | HTML |
<|file_sep|>original/cyder/base/eav/utils.py
return False
else:
return True
def is_hex_byte(value):
return bool(re.match(r'^[0-9a-fA-F]{2}$', value))
def is_hex_byte_sequence(value):
return validate_list(value, _hex_byte, separator=':',
strip_whitespace=False... | return False
else:
return True
def is_hex_byte(value):
return bool(re.match(r'^[0-9a-fA-F]{2}$', value))
def is_hex_byte_sequence(value):
return validate_list(value, is_hex_byte, separator=':',
strip_whitespace=False)
def strip_and_get_base(value):
if v... | <|file_sep|>original/cyder/base/eav/utils.py
return False
else:
return True
def is_hex_byte(value):
return bool(re.match(r'^[0-9a-fA-F]{2}$', value))
def is_hex_byte_sequence(value):
return validate_list(value, _hex_byte, separator=':',
strip_whitespace=False... | e787e4981441198e2b015b1b4f4971fbc112c78b | cyder/base/eav/utils.py | cyder/base/eav/utils.py | Python |
<|file_sep|>package.json.diff
original:
"async": "1.0.0",
"glob": "5.0.9",
"js-yaml": "3.3.1",
"loge": "0.0.3",
"minimatch": "2.0.8",
"mkdirp": "0.5.1",
"optimist": "0.6.1",
"request": "2.55.0",
"temp": "0.8.1",
"underscore": "1.8.3"
updated:
"async": "^2.6.0",
"glob": "^... | "async": "^2.6.0",
"glob": "^7.1.2",
"js-yaml": "^3.10.0",
"loge": "^0.0.3",
"minimatch": "^3.0.4",
"mkdirp": "^0.5.1",
"optimist": "^0.6.1",
"request": "^2.83.0",
"temp": "^0.8.3",
"underscore": "^1.8.3"
},
"devDependencies": {
"mocha": "^2.5.3"
},
"bin": {
"bird... | <|file_sep|>package.json.diff
original:
"async": "1.0.0",
"glob": "5.0.9",
"js-yaml": "3.3.1",
"loge": "0.0.3",
"minimatch": "2.0.8",
"mkdirp": "0.5.1",
"optimist": "0.6.1",
"request": "2.55.0",
"temp": "0.8.1",
"underscore": "1.8.3"
updated:
"async": "^2.6.0",
"glob": "^... | ae58f663600d36c81b7f69eddfd91fb3b302aa65 | package.json | package.json | JSON |
<|file_sep|>deal.II/deal.II/source/fe/fe_q_2d.cc.diff
original:
// Copyright (C) 2001, 2002, 2003 by the deal.II authors
updated:
// Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors
<|file_sep|>deal.II/deal.II/source/fe/fe_q_2d.cc.diff
original:
// constraint matrices in 2d are now implemented by compu... |
#include <fe/fe_q.h>
// constraint matrices in 2d are now implemented by computing them on the fly
// for all polynomial degrees. the array is thus empty. unfortunately, some
// compilers dislike empty initializers for arrays of unknown size
// (particularly the hp compiler), so we simply initialize a single element
... | <|file_sep|>deal.II/deal.II/source/fe/fe_q_2d.cc.diff
original:
// Copyright (C) 2001, 2002, 2003 by the deal.II authors
updated:
// Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors
<|file_sep|>deal.II/deal.II/source/fe/fe_q_2d.cc.diff
original:
// constraint matrices in 2d are now implemented by compu... | 2fecb37f02cd77baf0cba61a4e79d127c47b9c7c | deal.II/deal.II/source/fe/fe_q_2d.cc | deal.II/deal.II/source/fe/fe_q_2d.cc | C++ |
<|file_sep|>App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java.diff
original:
updated:
import java.util.List;
<|file_sep|>App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java.diff
original:
* Created by alex on 10/1/15.
updated:
* @Author alex
<|file_sep|>App/ap... | * Register a name for the given id.
* @return True if registration succeded, false if it failed.
*/
boolean register(String id, String name);
/**
* @return True if score was recorded correctly, false if it failed.
*/
boolean recordScore(String playerId, int score, long time, String ... | <|file_sep|>App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java.diff
original:
updated:
import java.util.List;
<|file_sep|>App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java.diff
original:
* Created by alex on 10/1/15.
updated:
* @Author alex
<|file_sep|>App/ap... | a8af41fef07b5f59dc9a068b0e41d29d899267a5 | App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java | App/app/src/main/java/eic/beike/projectx/network/projectXServer/IDatabase.java | Java |
<|file_sep|>app/Http/Controllers/BotController.php.diff
original:
updated:
use GuzzleHttp\Client;
<|file_sep|>app/Http/Controllers/BotController.php.diff
original:
updated:
use Storage;
<|file_sep|>app/Http/Controllers/BotController.php.diff
original:
public function receive()
updated:
public function receive... | respond($data);
}
}
/**
* Posts responses to Slack
*/
public function respond(array $data)
{
//if ($data['response_type'] == 'saved')
$client=new Client();
$client->request('GET', 'https://slack.com/api/chat.postMessage',
['query' => [
'token' => Storage::get... | <|file_sep|>app/Http/Controllers/BotController.php.diff
original:
updated:
use GuzzleHttp\Client;
<|file_sep|>app/Http/Controllers/BotController.php.diff
original:
updated:
use Storage;
<|file_sep|>app/Http/Controllers/BotController.php.diff
original:
public function receive()
updated:
public function receive... | a8a98fbab1ed708f86ea36b332f3af151fa7d82a | app/Http/Controllers/BotController.php | app/Http/Controllers/BotController.php | PHP |
<|file_sep|>original/lib/dep_selector/gecode_wrapper.rb
<|file_sep|>current/lib/dep_selector/gecode_wrapper.rb
<|file_sep|>updated/lib/dep_selector/gecode_wrapper.rb |
require 'ext/gecode/dep_gecode'
module DepSelector
class GecodeWrapper
attr_reader :gecode_problem
# This insures that we properly deallocate the c++ class at the heart of dep_gecode.
# modeled after http://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/
def initialize(package_or_p... | <|file_sep|>original/lib/dep_selector/gecode_wrapper.rb
<|file_sep|>current/lib/dep_selector/gecode_wrapper.rb
<|file_sep|>updated/lib/dep_selector/gecode_wrapper.rb
require 'ext/gecode/dep_gecode'
module DepSelector
class GecodeWrapper
attr_reader :gecode_problem
# This insures that we properly dealloc... | 2fc42fae5ea75f2b7a836ba85560a97c0a27e9da | lib/dep_selector/gecode_wrapper.rb | lib/dep_selector/gecode_wrapper.rb | Ruby |
<|file_sep|>original/index.html
---
layout: home
title: CTFEDs - Cape Town front-end developers
---
<article class="latest">
<h1 class="block-header latest-meetup">
<span class="block-header-icon date-icon"></span>
Next event
</h1>
{% capture event %}{% include event-2015-11.md %}{% endca... | ---
layout: home
title: CTFEDs - Cape Town front-end developers
---
<article class="latest">
<h1 class="block-header latest-meetup">
<span class="block-header-icon date-icon"></span>
Next event
</h1>
{% capture event %}{% include event.md %}{% endcapture %}
{{ event | markdownify ... | <|file_sep|>original/index.html
---
layout: home
title: CTFEDs - Cape Town front-end developers
---
<article class="latest">
<h1 class="block-header latest-meetup">
<span class="block-header-icon date-icon"></span>
Next event
</h1>
{% capture event %}{% include event-2015-11.md %}{% endca... | 7440ebea265b26862bcd4b55e216c2f5d1f0ebb6 | index.html | index.html | HTML |
<|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml | group: travis_latest
language: python
cache: pip
python:
#- 2.7
- 3.6
#- nightly
#- pypy
#- pypy3
matrix:
allow_failures:
- python: nightly
- python: pypy
- python: pypy3
install:
- pip install -r requirements.txt
- pip install flake8
- python setup.py install... | <|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml
group: travis_latest
language: python
cache: pip
python:
#- 2.7
- 3.6
#- nightly
#- pypy
#- pypy3
matrix:
allow_failures:
- python: nightly
- python: pypy
- python: pypy3
in... | ff239c08d882d093c82d73c9c5a5573cbdbeb0a5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
- andrew@avit.ca
branches:
only:
- master
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3
- ruby-head
env:
- RAILS_VERSION='~> 3.2'
- RAILS_VERSION='~> 4.2'
- RAILS_VERSION='~> 5.0'
matrix:
exclude:
- rvm: 1.9.3
env: RAILS_VERSION='~> 5.0'
- rvm: 2.0
... | - andrew@avit.ca
branches:
only:
- master
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- ruby-head
env:
- RAILS_VERSION='~> 3.2'
- RAILS_VERSION='~> 4.2'
- RAILS_VERSION='~> 5.0'
matrix:
exclude:
- rvm: 1.9.3
env: RAILS_VERSION='~> 5.0'
- rvm: 2.0 | <|file_sep|>original/.travis.yml
- andrew@avit.ca
branches:
only:
- master
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3
- ruby-head
env:
- RAILS_VERSION='~> 3.2'
- RAILS_VERSION='~> 4.2'
- RAILS_VERSION='~> 5.0'
matrix:
exclude:
- rvm: 1.9.3
env: RAILS_VERSION='~> 5.0'
- rvm: 2.0
... | 7387e345357c4e8ea3b40ef76a4f88be726be117 | .travis.yml | .travis.yml | YAML |
<|file_sep|>jsx/header.jsx.diff
original:
import RaisedButton from 'material-ui/RaisedButton';
updated:
<|file_sep|>original/jsx/header.jsx
import Flexbox from 'flexbox-react';
import RaisedButton from 'material-ui/RaisedButton';
import React from 'react';
export default function Header(
props: {
style: ?Object... |
import Flexbox from 'flexbox-react';
import React from 'react';
export default function Header(
props: {
style: ?Object,
},
) {
return (
<Flexbox
alignItems="center"
flexDirection="row"
flexWrap="wrap"
justifyContent="space-between"
style={props.style}
>
<h1 style... | <|file_sep|>jsx/header.jsx.diff
original:
import RaisedButton from 'material-ui/RaisedButton';
updated:
<|file_sep|>original/jsx/header.jsx
import Flexbox from 'flexbox-react';
import RaisedButton from 'material-ui/RaisedButton';
import React from 'react';
export default function Header(
props: {
style: ?Object... | 3a127792e48715741d57bcd0181e1e2c7de92c68 | jsx/header.jsx | jsx/header.jsx | JSX |
<|file_sep|>original/app.json
{
"name": "Crossmark Mobile",
"description": "Loyalty Mobile App",
"keywords": [
"heroku",
"salesforce"
],
"addons": [
"heroku-postgresql",
"heroku-redis",
"herokuconnect:demo",
"newrelic",
"mailgun",
"memcachier",
"rollbar"
],
"image":"her... | {
"name": "Crossmark Mobile",
"description": "Loyalty Mobile App",
"keywords": [
"heroku",
"salesforce"
],
"addons": [
"heroku-postgresql",
"heroku-redis",
"herokuconnect:demo",
"newrelic",
"mailgun",
"memcachier",
"rollbar"
],
"image": "heroku/nodejs"
} | <|file_sep|>original/app.json
{
"name": "Crossmark Mobile",
"description": "Loyalty Mobile App",
"keywords": [
"heroku",
"salesforce"
],
"addons": [
"heroku-postgresql",
"heroku-redis",
"herokuconnect:demo",
"newrelic",
"mailgun",
"memcachier",
"rollbar"
],
"image":"her... | 3f6934a92381320cabec82e55afef194ead03939 | app.json | app.json | JSON |
<|file_sep|>original/HISTORY.rst
=======
History
=======
0.1 – 2015-05-30
================
* Initial release
<|file_sep|>current/HISTORY.rst
=======
History
=======
0.1 – 2015-05-30
================
* Initial release
<|file_sep|>updated/HISTORY.rst | =======
History
=======
0.2 - Unreleased
================
0.1 – 2015-05-30
================
* Initial release | <|file_sep|>original/HISTORY.rst
=======
History
=======
0.1 – 2015-05-30
================
* Initial release
<|file_sep|>current/HISTORY.rst
=======
History
=======
0.1 – 2015-05-30
================
* Initial release
<|file_sep|>updated/HISTORY.rst
=======
History
=======
0.2 - Unreleased
================
0.1... | d11188567dd9febb0b263ba79bf608cefb8191d8 | HISTORY.rst | HISTORY.rst | reStructuredText |
<|file_sep|>original/src/Plugin/PuzzlePlugin.php
];
}
/**
* {@inheritDoc}
*/
public function activate(Composer $composer, IOInterface $io)
{
// move along, nothing to see here
}
/**
* @param Event $event
*/
public function runPlugin(Event $event)
{
... | */
public function activate(Composer $composer, IOInterface $io)
{
// move along, nothing to see here
}
/**
* @param Event $event
*/
public function runPlugin(Event $event)
{
// If puzzle has been removed in this update, the script controller may no longer exist
... | <|file_sep|>original/src/Plugin/PuzzlePlugin.php
];
}
/**
* {@inheritDoc}
*/
public function activate(Composer $composer, IOInterface $io)
{
// move along, nothing to see here
}
/**
* @param Event $event
*/
public function runPlugin(Event $event)
{
... | 1cea4681b7f89b3151d99413b03622f614183478 | src/Plugin/PuzzlePlugin.php | src/Plugin/PuzzlePlugin.php | PHP |
<|file_sep|>original/fabfile/testbeds/testbed_nodec3.py
<|file_sep|>current/fabfile/testbeds/testbed_nodec3.py
<|file_sep|>updated/fabfile/testbeds/testbed_nodec3.py | from fabric.api import env
host1 = 'root@10.204.216.60'
ext_routers = [('mx1', '10.204.216.253')]
router_asn = 64510
public_vn_rtgt = 10003
public_vn_subnet = "10.204.219.24/29"
host_build = 'vjoshi@10.204.216.56'
env.roledefs = {
'all': [host1],
'cfgm': [host1],
'openstack': [host1],
'control': [ho... | <|file_sep|>original/fabfile/testbeds/testbed_nodec3.py
<|file_sep|>current/fabfile/testbeds/testbed_nodec3.py
<|file_sep|>updated/fabfile/testbeds/testbed_nodec3.py
from fabric.api import env
host1 = 'root@10.204.216.60'
ext_routers = [('mx1', '10.204.216.253')]
router_asn = 64510
public_vn_rtgt = 10003
public_vn_... | 9fb10d8d30fbdb08e46bea3996e75098dce904e5 | fabfile/testbeds/testbed_nodec3.py | fabfile/testbeds/testbed_nodec3.py | Python |
<|file_sep|>original/docs/rules/no-transition-all.md
<|file_sep|>current/docs/rules/no-transition-all.md
<|file_sep|>updated/docs/rules/no-transition-all.md | # No Transition All
Rule `no-transition-all` will enforce whether the keyword `all` can be used with the `transition` property.
## Examples
When enabled the following are disallowed
```scss
.foo {
transition: all 2s;
}
.bar {
transition-property: all 2s;
}
.quz {
-webkit-transition: all 2s, height 2s, backg... | <|file_sep|>original/docs/rules/no-transition-all.md
<|file_sep|>current/docs/rules/no-transition-all.md
<|file_sep|>updated/docs/rules/no-transition-all.md
# No Transition All
Rule `no-transition-all` will enforce whether the keyword `all` can be used with the `transition` property.
## Examples
When enabled the f... | 2398a9f127561a7ef3cdf3c7880c0a1940bff5eb | docs/rules/no-transition-all.md | docs/rules/no-transition-all.md | Markdown |
<|file_sep|>original/README.md
# zend-eventmanager
The `Zend\EventManager` is a component designed for the following use cases:
- Implementing simple subject/observer patterns.
- Implementing Aspect-Oriented designs.
- Implementing event-driven architectures.
The basic architecture allows you to attach and detach li... | # zend-eventmanager
[](https://secure.travis-ci.org/zendframework/zend-eventmanager)
[](https://coveralls.io/r/zendframewo... | <|file_sep|>original/README.md
# zend-eventmanager
The `Zend\EventManager` is a component designed for the following use cases:
- Implementing simple subject/observer patterns.
- Implementing Aspect-Oriented designs.
- Implementing event-driven architectures.
The basic architecture allows you to attach and detach li... | acb15ae41190f4a749b9cdbb3a54154f2e020a54 | README.md | README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.