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/app/models/post.rb
class Post < ActiveRecord::Base
belongs_to :category
belongs_to :user
has_and_belongs_to_many :joined_users,
class_name: "User",
join_table: "user_joined_post",
foreign_key: "post_id",
association_foreign_key: "user_id"
acts_as_taggable rescue nil
# ... | class Post < ActiveRecord::Base
belongs_to :category
belongs_to :user
has_and_belongs_to_many :joined_users,
class_name: "User",
join_table: "user_joined_post",
foreign_key: "post_id",
association_foreign_key: "user_id"
acts_as_taggable rescue nil
# HACK: there is a known issue that acts_a... | <|file_sep|>original/app/models/post.rb
class Post < ActiveRecord::Base
belongs_to :category
belongs_to :user
has_and_belongs_to_many :joined_users,
class_name: "User",
join_table: "user_joined_post",
foreign_key: "post_id",
association_foreign_key: "user_id"
acts_as_taggable rescue nil
# ... | 638ddcbc9100a7ae8db942ec4c4958c9286611ce | app/models/post.rb | app/models/post.rb | Ruby |
<|file_sep|>common/parallel/parallel_test.go.diff
original:
updated:
"sync/atomic"
"testing"
<|file_sep|>original/common/parallel/parallel_test.go
import (
"fmt"
)
func ExampleFanOutIn() {
data := []int{1, 20}
err := FanOutIn(func(ch chan<- func() error) {
for _, d := range data {
d := d
ch <- func() err... | return fmt.Errorf("%d is over 10", d)
}
return nil
}
}
})
fmt.Printf("got: %q", err)
// Output: got: "20 is over 10"
}
func TestRaciness(t *testing.T) {
t.Parallel()
val := int32(0)
for i := 0; i < 100; i++ {
FanOutIn(func(ch chan<- func() error) {
ch <- func() error { atomic.AddInt32(&... | <|file_sep|>common/parallel/parallel_test.go.diff
original:
updated:
"sync/atomic"
"testing"
<|file_sep|>original/common/parallel/parallel_test.go
import (
"fmt"
)
func ExampleFanOutIn() {
data := []int{1, 20}
err := FanOutIn(func(ch chan<- func() error) {
for _, d := range data {
d := d
ch <- func() err... | 558cc60452da006f956fb2da6e2778df2b9cc9aa | common/parallel/parallel_test.go | common/parallel/parallel_test.go | Go |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# build output.
before_i... | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# build output.
before_install:
- npm instal... | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# build output.
before_i... | c30255262e9f6843d2453d2f62ff24b88d327b0b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/package.json
"description": "A Javascript client to access the Panoptes API",
"main": "./lib/client.js",
"author": "Zooniverse",
"license": "Apache-2.0",
"dependencies": {
"json-api-client": "~3.0.0",
"sugar-client": "^1.0.1"
},
"devDependencies": {
"blue-tape": "~0.1.11",... | "version": "1.0.0",
"description": "A Javascript client to access the Panoptes API",
"main": "./lib/client.js",
"author": "Zooniverse",
"license": "Apache-2.0",
"dependencies": {
"json-api-client": "~3.0.0",
"sugar-client": "^1.0.1"
},
"devDependencies": {
"blue-tape": "~0.1.11",
"browse... | <|file_sep|>original/package.json
"description": "A Javascript client to access the Panoptes API",
"main": "./lib/client.js",
"author": "Zooniverse",
"license": "Apache-2.0",
"dependencies": {
"json-api-client": "~3.0.0",
"sugar-client": "^1.0.1"
},
"devDependencies": {
"blue-tape": "~0.1.11",... | 7974b2807bfde4d38a9e6dca14a73b14912c635f | package.json | package.json | JSON |
<|file_sep|>original/app/assets/stylesheets/survey_modules/input.styl
.survey-page #main
input[type=text],
input[type='email'],
input[type='password'],
textarea,
select,
.expandingArea > pre
background-color $bg_light_gray
color $text_dk
font-size 17px
&:focus
border-color $contextual
... | .survey-page #main
input[type=text],
input[type='email'],
input[type='password'],
textarea,
select
background-color $bg_light_gray
color $text_dk
font-size 17px
&:focus
border-color $contextual | <|file_sep|>original/app/assets/stylesheets/survey_modules/input.styl
.survey-page #main
input[type=text],
input[type='email'],
input[type='password'],
textarea,
select,
.expandingArea > pre
background-color $bg_light_gray
color $text_dk
font-size 17px
&:focus
border-color $contextual
... | ce0f207cae8d923634a00fd5d4529c64bd540ec9 | app/assets/stylesheets/survey_modules/input.styl | app/assets/stylesheets/survey_modules/input.styl | Stylus |
<|file_sep|>original/requirements.txt
cookiecutter==1.7.2
sh==1.14.0
binaryornot==0.4.4
# Code quality
# ------------------------------------------------------------------------------
black==20.8b1
isort==5.5.4
flake8==3.8.3
flake8-isort==4.0.0
# Testing
# -------------------------------------------------------------... | cookiecutter==1.7.2
sh==1.14.0
binaryornot==0.4.4
# Code quality
# ------------------------------------------------------------------------------
black==20.8b1
isort==5.5.4
flake8==3.8.4
flake8-isort==4.0.0
# Testing
# ------------------------------------------------------------------------------
tox==3.20.0
pytest==... | <|file_sep|>original/requirements.txt
cookiecutter==1.7.2
sh==1.14.0
binaryornot==0.4.4
# Code quality
# ------------------------------------------------------------------------------
black==20.8b1
isort==5.5.4
flake8==3.8.3
flake8-isort==4.0.0
# Testing
# -------------------------------------------------------------... | 25f722d41814ab7409e604310d26c7a49bd13df9 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/.travis.yml
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer validate
- composer install --prefer-dist --no-interaction
script:
- vendor/bin/phpunit --coverage-clover=coverag... | - 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer validate
- composer update --no-interaction
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
- wget https://scrutinizer-ci.com/ocu... | <|file_sep|>original/.travis.yml
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer validate
- composer install --prefer-dist --no-interaction
script:
- vendor/bin/phpunit --coverage-clover=coverag... | 9cbc8d2b5f5126ff59fa4d34d43a03adf703c5c0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/integration/multiple_invocations_spec.rb
<|file_sep|>current/spec/integration/multiple_invocations_spec.rb
<|file_sep|>updated/spec/integration/multiple_invocations_spec.rb | # encoding: utf-8
require 'spec_helper'
describe Github, 'invocations' do
context 'repo commits with sha' do
let(:user) { "peter-murach" }
let(:repo) { "github" }
let(:sha) { "ceb66b61264657898cd6608c7e9ed78072169664" }
let(:request_path) { "/repos/#{user}/#{repo}/commits/#{sha}" }
before {
... | <|file_sep|>original/spec/integration/multiple_invocations_spec.rb
<|file_sep|>current/spec/integration/multiple_invocations_spec.rb
<|file_sep|>updated/spec/integration/multiple_invocations_spec.rb
# encoding: utf-8
require 'spec_helper'
describe Github, 'invocations' do
context 'repo commits with sha' do
l... | fb1d1d1edc52156db3f7e49006917ce98c2a253b | spec/integration/multiple_invocations_spec.rb | spec/integration/multiple_invocations_spec.rb | Ruby |
<|file_sep|>original/package.json
{
"name": "add-remove-replace",
"version": "0.1.0-beta.1",
"description": "Simple package to add, remove or replace content inside strings.",
"main": "./index.js",
"scripts": {
"build": "WEBPACK_ENV=build webpack",
"dev": "WEBPACK_ENV=dev webpack --progress --colors -... | {
"name": "add-remove-replace",
"version": "0.1.0",
"description": "Simple package to add, remove or replace content inside strings.",
"main": "./index.js",
"scripts": {
"build": "WEBPACK_ENV=build webpack",
"dev": "WEBPACK_ENV=dev webpack --progress --colors --watch",
"test": "jest"
},
"keywo... | <|file_sep|>original/package.json
{
"name": "add-remove-replace",
"version": "0.1.0-beta.1",
"description": "Simple package to add, remove or replace content inside strings.",
"main": "./index.js",
"scripts": {
"build": "WEBPACK_ENV=build webpack",
"dev": "WEBPACK_ENV=dev webpack --progress --colors -... | 82d0327d05b338ef968f1f0e19cc8c1d8936ab8f | package.json | package.json | JSON |
<|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Helpful</title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700" %>
<%= javascript_include_t... | <!DOCTYPE html>
<html>
<head>
<title>Helpful</title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=Roboto+Slab:700|Open+Sans:300italic,400italic,400,700,300" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<b... | <|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Helpful</title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700" %>
<%= javascript_include_t... | 2cf175570bd043df271ac1607cde008b54650f25 | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | HTML+ERB |
<|file_sep|>test/test_bill_history.py.diff
original:
self.assertEqual(self.to_date(history['senate_passage_result_at']), "2009-12-24 00:00")
updated:
self.assertEqual(self.to_date(history['senate_passage_result_at']), "2009-12-24")
<|file_sep|>test/test_bill_history.py.diff
original:
self.assertEqual(self.t... | import datetime
class BillHistory(unittest.TestCase):
def test_normal_enacted_bill(self):
history = fixtures.bill("hr3590-111")['history']
self.assertEqual(history['house_passage_result'], 'pass')
self.assertEqual(self.to_date(history['house_passage_result_at']), "2010-03-21 22:48")
self.assertEqua... | <|file_sep|>test/test_bill_history.py.diff
original:
self.assertEqual(self.to_date(history['senate_passage_result_at']), "2009-12-24 00:00")
updated:
self.assertEqual(self.to_date(history['senate_passage_result_at']), "2009-12-24")
<|file_sep|>test/test_bill_history.py.diff
original:
self.assertEqual(self.t... | da5479f4db905ea632009728864793812d56be81 | test/test_bill_history.py | test/test_bill_history.py | Python |
<|file_sep|>original/manifests/lite-vars-file.yml
---
deployment-name: cf-rabbitmq-lite
cf-rabbitmq-release-name: cf-rabbitmq
stemcell-version: 3312.12
haproxy-instances: 2
rabbitmq-management-username: admin
rabbitmq-management-password: admin
rabbitmq-broker-username: broker
rabbitmq-broker-password: broker
haproxy-s... | ---
deployment-name: cf-rabbitmq-lite
cf-rabbitmq-release-name: cf-rabbitmq
# Some of our current tests (based on Prof) do not work with stemcell versions
# starting from 3363.12 because they randomise vcap passwords and our tests use
# the default ones
stemcell-version: 3312.12
haproxy-instances: 2
rabbitmq-managemen... | <|file_sep|>original/manifests/lite-vars-file.yml
---
deployment-name: cf-rabbitmq-lite
cf-rabbitmq-release-name: cf-rabbitmq
stemcell-version: 3312.12
haproxy-instances: 2
rabbitmq-management-username: admin
rabbitmq-management-password: admin
rabbitmq-broker-username: broker
rabbitmq-broker-password: broker
haproxy-s... | 575ccf89243e9befbaf1e0b737518fa91c59f5f0 | manifests/lite-vars-file.yml | manifests/lite-vars-file.yml | YAML |
<|file_sep|>original/link-dotfiles.sh
<|file_sep|>current/link-dotfiles.sh
<|file_sep|>updated/link-dotfiles.sh | #!/usr/bin/env sh
platform=''
case "$OSTYPE" in
solaris*) platform='solaris' ;;
darwin*) platform='osx' ;;
linux*) platform='linux' ;;
bsd*) platform='bsd' ;;
*) platform='windows' ;;
esac
rm ~/.bash_profile
ln -s ~/Projects/dotfiles/.bash_profile ~/.bash_profile
rm ~/.bashrc
ln -s ~/Project... | <|file_sep|>original/link-dotfiles.sh
<|file_sep|>current/link-dotfiles.sh
<|file_sep|>updated/link-dotfiles.sh
#!/usr/bin/env sh
platform=''
case "$OSTYPE" in
solaris*) platform='solaris' ;;
darwin*) platform='osx' ;;
linux*) platform='linux' ;;
bsd*) platform='bsd' ;;
*) platform='windows' ... | d9888d17e527ca11900f13bd4b72b2fd67733b5b | link-dotfiles.sh | link-dotfiles.sh | Shell |
<|file_sep|>original/lib/yard/handlers/method_handler.rb
class YARD::Handlers::MethodHandler < YARD::Handlers::Base
handles TkDEF
def process
nobj = namespace
mscope = scope
meth = statement.tokens.to_s[/^def\s+(#{METHODMATCH})/m, 1].gsub(/\s+/,'')
# Class method if prefixed by self(::|.) ... | class YARD::Handlers::MethodHandler < YARD::Handlers::Base
handles TkDEF
def process
nobj = namespace
mscope = scope
if meth = statement.tokens.to_s[/^def\s+(#{METHODMATCH})/m, 1]
meth.gsub!(/\s+/,'')
else
raise YARD::Handlers::UndocumentableError, "method: invalid name"
end
... | <|file_sep|>original/lib/yard/handlers/method_handler.rb
class YARD::Handlers::MethodHandler < YARD::Handlers::Base
handles TkDEF
def process
nobj = namespace
mscope = scope
meth = statement.tokens.to_s[/^def\s+(#{METHODMATCH})/m, 1].gsub(/\s+/,'')
# Class method if prefixed by self(::|.) ... | 0fd23e4193bc0d811507f7f55c3dee066832c924 | lib/yard/handlers/method_handler.rb | lib/yard/handlers/method_handler.rb | Ruby |
<|file_sep|>original/src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts
public getFormat(): Xrm.Attributes.StringAttributeFormat {
return super.getFormat() as Xrm.Attributes.StringAttributeFormat;
}
public getMaxLength(): number {
return this.maxLength;
}
public setVa... |
public getFormat(): Xrm.Attributes.StringAttributeFormat {
return super.getFormat() as Xrm.Attributes.StringAttributeFormat;
}
public getMaxLength(): number {
return this.maxLength;
}
public setValue(value: string): void {
if (value && this.maxLength && value.length > this... | <|file_sep|>original/src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts
public getFormat(): Xrm.Attributes.StringAttributeFormat {
return super.getFormat() as Xrm.Attributes.StringAttributeFormat;
}
public getMaxLength(): number {
return this.maxLength;
}
public setVa... | 69a01949b04827fcdae38b2bbea81420362755d5 | src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts | src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts | TypeScript |
<|file_sep|>Lib/setup.py.diff
original:
#config.add_subpackage('cluster')
#config.add_subpackage('fftpack')
#config.add_subpackage('integrate')
#config.add_subpackage('interpolate')
#config.add_subpackage('io')
updated:
config.add_subpackage('cluster')
config.add_subpackage('fftpack')
co... | config.add_subpackage('lib')
config.add_subpackage('linalg')
config.add_subpackage('linsolve')
config.add_subpackage('maxentropy')
config.add_subpackage('misc')
#config.add_subpackage('montecarlo')
config.add_subpackage('optimize')
config.add_subpackage('sandbox')
config.add_subpacka... | <|file_sep|>Lib/setup.py.diff
original:
#config.add_subpackage('cluster')
#config.add_subpackage('fftpack')
#config.add_subpackage('integrate')
#config.add_subpackage('interpolate')
#config.add_subpackage('io')
updated:
config.add_subpackage('cluster')
config.add_subpackage('fftpack')
co... | c67acb72d5ddea8a1e4fb8a12aa3a6913629e0cb | Lib/setup.py | Lib/setup.py | Python |
<|file_sep|>original/app/initializers/image-lazy.js
import ImgComponent from 'ember-cli-image/components/x-img';
import BackgroundImageComponent from 'ember-cli-image/components/background-image';
import LazyImageMixin from 'ember-cli-image-lazy/mixins/lazy-image-mixin';
export function initialize() {
var hasDOM = ... | import ImgComponent from 'ember-cli-image/components/img-component';
import BackgroundImageComponent from 'ember-cli-image/components/background-image-component';
import LazyImageMixin from 'ember-cli-image-lazy/mixins/lazy-image-mixin';
export function initialize() {
var hasDOM = typeof document !== 'undefined';
... | <|file_sep|>original/app/initializers/image-lazy.js
import ImgComponent from 'ember-cli-image/components/x-img';
import BackgroundImageComponent from 'ember-cli-image/components/background-image';
import LazyImageMixin from 'ember-cli-image-lazy/mixins/lazy-image-mixin';
export function initialize() {
var hasDOM = ... | ef87a735d2ff555ebdb8f03106f8d25153499c6f | app/initializers/image-lazy.js | app/initializers/image-lazy.js | JavaScript |
<|file_sep|>original/make_deb.sh
#!/bin/bash
set -e
# sudo apt-get install -y build-essential devscripts debhelper
mkdir -m 0755 -p deb-build
cd deb-build
mkdir -m 0755 -p httptoircbridge_0.0.1-1
cd httptoircbridge_0.0.1-1
# Copy binary, strip debug symbols
mkdir -m 0755 -p usr/bin
strip -s -o usr/bin/http-to-irc-b... | #!/bin/bash
set -e
# sudo apt-get install -y build-essential devscripts debhelper
#
# This will not work on any platform that isn't amd64
mkdir -m 0755 -p deb-build
cd deb-build
mkdir -m 0755 -p httptoircbridge_0.0.1-1
cd httptoircbridge_0.0.1-1
# Copy binary, strip debug symbols
mkdir -m 0755 -p usr/bin
strip -s -... | <|file_sep|>original/make_deb.sh
#!/bin/bash
set -e
# sudo apt-get install -y build-essential devscripts debhelper
mkdir -m 0755 -p deb-build
cd deb-build
mkdir -m 0755 -p httptoircbridge_0.0.1-1
cd httptoircbridge_0.0.1-1
# Copy binary, strip debug symbols
mkdir -m 0755 -p usr/bin
strip -s -o usr/bin/http-to-irc-b... | 1d4309dd04a8df0c7cf90205f9ee4c159c77e21d | make_deb.sh | make_deb.sh | Shell |
<|file_sep|>original/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy
<|file_sep|>current/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy
<|file_sep|>updated/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy | /*
HERE BE DRAGONS.
These records collide on URIs due to a bug (being fixed in: https://github.com/libris/librisxl/pull/739)
This was intended to be impossible, but now that it has happened, unconventional measures need
to be taken to fix it.
Before running this script, you have to do the following directly in ... | <|file_sep|>original/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy
<|file_sep|>current/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy
<|file_sep|>updated/whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy
/*
HERE BE DRAGONS.
These records collide on URIs due to... | 6aea77d8456486da23afc708cc8be1a84da28a08 | whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy | whelktool/scripts/cleanups/2020/09/lxl-3347-remove-concept.groovy | Groovy |
<|file_sep|>original/sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.java
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.sql.ResultSet;
import java.sql.SQLException;
public class URLColumnMapper implements ColumnMapper<URL> {
@Override
public URL map(Res... |
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.sql.ResultSet;
import java.sql.SQLException;
public class URLColumnMapper implements ColumnMapper<URL> {
@Override
public URL map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
URL... | <|file_sep|>original/sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.java
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.sql.ResultSet;
import java.sql.SQLException;
public class URLColumnMapper implements ColumnMapper<URL> {
@Override
public URL map(Res... | 94270f30ccb4f6e26ae2944325dcb78fc5e83e5a | sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.java | sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.java | Java |
<|file_sep|>tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs.diff
original:
updated:
using Microsoft.Extensions.Configuration;
<|file_sep|>tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs.diff
original:
[Theory]
[InlineData("Key1", "Value1")]
[InlineData("Key2", "Value2")]
public void... | public void AddsAppSettings(string key, string value)
{
var appSettings = new NameValueCollection { { key, value } };
var keyDelimiter = Constants.KeyDelimiter;
var keyPrefix = string.Empty;
var source = new AppSettingsConfigurationProvider(appSettings, keyDelimiter, keyPrefix);
source.Load()... | <|file_sep|>tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs.diff
original:
updated:
using Microsoft.Extensions.Configuration;
<|file_sep|>tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs.diff
original:
[Theory]
[InlineData("Key1", "Value1")]
[InlineData("Key2", "Value2")]
public void... | b1704a4c06c581a5b18126740dbe92bb018b35f2 | tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs | tests/Core.UnitTests/AppSettingsConfigurationProviderTests.cs | C# |
<|file_sep|>src/java/org/jsimpledb/kv/sql/createTable-mysql.sql.diff
original:
-- MySQL InnoDB indexes are limited to 767 bytes
-- You can go up to 3072 bytes if you set innodb_large_prefix
-- See: http://dev.mysql.com/doc/refman/5.5/en/innodb-restrictions.html
-- Also recommended: innodb_file_per_tabl... | CREATE TABLE IF NOT EXISTS `KV` (
`kv_key` VARBINARY(767) NOT NULL,
`kv_value` LONGBLOB NOT NULL,
PRIMARY KEY(`kv_key`)
) ENGINE=InnoDB default charset=utf8 collate=utf8_bin
--
-- MySQL InnoDB indexes are normally limited to 767 bytes, but
-- you can go up to 3072 bytes if you set innodb_large_prefix=true;
--... | <|file_sep|>src/java/org/jsimpledb/kv/sql/createTable-mysql.sql.diff
original:
-- MySQL InnoDB indexes are limited to 767 bytes
-- You can go up to 3072 bytes if you set innodb_large_prefix
-- See: http://dev.mysql.com/doc/refman/5.5/en/innodb-restrictions.html
-- Also recommended: innodb_file_per_tabl... | 97402a8bc2b3ffcb8ac3610852507521dfd9f5d5 | src/java/org/jsimpledb/kv/sql/createTable-mysql.sql | src/java/org/jsimpledb/kv/sql/createTable-mysql.sql | SQL |
<|file_sep|>original/pages/pipelines/wait_step.md.erb
# Wait Step
<%= toc %>
A *waiter* step waits for all previous steps to complete before continuing, for example:
```yml
- command: "command.sh"
- wait
- command: "echo The command passed"
```
<|file_sep|>current/pages/pipelines/wait_step.md.erb
# Wait Step
<%= to... | # Wait Step
<%= toc %>
A *wait* step waits for all previous steps to complete before allowing following jobs to continue.
A basic wait step can be defined in your pipeline settings, or in your [pipeline.yml](/docs/pipelines/uploading-pipelines) file. It can be placed between steps to ensure that previous steps are s... | <|file_sep|>original/pages/pipelines/wait_step.md.erb
# Wait Step
<%= toc %>
A *waiter* step waits for all previous steps to complete before continuing, for example:
```yml
- command: "command.sh"
- wait
- command: "echo The command passed"
```
<|file_sep|>current/pages/pipelines/wait_step.md.erb
# Wait Step
<%= to... | 637a20416e27362447ed28b9d7d2d567db6914f8 | pages/pipelines/wait_step.md.erb | pages/pipelines/wait_step.md.erb | HTML+ERB |
<|file_sep|>original/spec/identity/identity_spec.rb
#
describe package('keystone') do
it { should be_installed }
end
describe service('keystone') do
it {should be_enabled }
it {should be_running }
end
describe port(5000) do
it { should be_listening.with('tcp') }
end
describe command('sh -c \'echo "show... |
describe service('keystone') do
it {should be_enabled }
it {should be_running }
end
describe port(5000) do
it { should be_listening.with('tcp') }
end
describe port(35357) do
it { should be_listening.with('tcp') }
end
describe command('sh -c \'echo "show tables;"|mysql keystone\'') do
its(:stdout) { sh... | <|file_sep|>original/spec/identity/identity_spec.rb
#
describe package('keystone') do
it { should be_installed }
end
describe service('keystone') do
it {should be_enabled }
it {should be_running }
end
describe port(5000) do
it { should be_listening.with('tcp') }
end
describe command('sh -c \'echo "show... | 6b397be3d2bea3bbff6798ea0d48463b70bebbda | spec/identity/identity_spec.rb | spec/identity/identity_spec.rb | Ruby |
<|file_sep|>simpleseo/templatetags/seo.py.diff
original:
updated:
from django.forms.models import model_to_dict
<|file_sep|>simpleseo/templatetags/seo.py.diff
original:
def get_seo(context):
updated:
def get_seo(context, **kwargs):
path = context['request'].path
<|file_sep|>simpleseo/templatetags/seo.py.diff
origi... | try:
metadata = model_to_dict(SeoMetadata.objects.get(path=path,
lang_code=lang_code))
except SeoMetadata.DoesNotExist:
metadata = {}
result = {}
for item in ['title', 'description']:
result[item] = (metadata.get(item) or
... | <|file_sep|>simpleseo/templatetags/seo.py.diff
original:
updated:
from django.forms.models import model_to_dict
<|file_sep|>simpleseo/templatetags/seo.py.diff
original:
def get_seo(context):
updated:
def get_seo(context, **kwargs):
path = context['request'].path
<|file_sep|>simpleseo/templatetags/seo.py.diff
origi... | d48e59f4b1174529a4d2eca8731472a5bf371621 | simpleseo/templatetags/seo.py | simpleseo/templatetags/seo.py | Python |
<|file_sep|>original/elements.podspec
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'elements'
s.version = '0.1.0'
s.summary = 'elements provides a full UX on top of Tapglue'
s.license = 'Apache License... | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'elements'
s.version = '0.1.0'
s.summary = 'elements provides a full UX on top of Tapglue'
s.license = 'Apache License, Version 2.0'
s.author = ... | <|file_sep|>original/elements.podspec
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'elements'
s.version = '0.1.0'
s.summary = 'elements provides a full UX on top of Tapglue'
s.license = 'Apache License... | 7112164d98540cb63d5e74a74c760469c50acd7c | elements.podspec | elements.podspec | Ruby |
<|file_sep|>original/composer.json
],
"support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-user",
"issues": "https://github.com/dreamfactorysoftware/df-user/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev"... | ],
"support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-user",
"issues": "https://github.com/dreamfactorysoftware/df-user/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev",
"prefer-stable": true,
"r... | <|file_sep|>original/composer.json
],
"support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-user",
"issues": "https://github.com/dreamfactorysoftware/df-user/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev"... | 96894e5ef0ac6523a69f3addb719eacc1b758355 | composer.json | composer.json | JSON |
<|file_sep|>metadata/com.minar.birday.yml.diff
original:
updated:
- versionName: 1.10.0
versionCode: 13
commit: v1.10.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/com.minar.birday.yml
gradle:
- yes
- versionName: 1.8.0
versionCode: 10
commit: v1.8.0
subdir... | gradle:
- yes
- versionName: 1.9.0
versionCode: 11
commit: v1.9.0
subdir: app
gradle:
- yes
- versionName: 1.10.0
versionCode: 13
commit: v1.10.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.10.0
CurrentVersion... | <|file_sep|>metadata/com.minar.birday.yml.diff
original:
updated:
- versionName: 1.10.0
versionCode: 13
commit: v1.10.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/com.minar.birday.yml
gradle:
- yes
- versionName: 1.8.0
versionCode: 10
commit: v1.8.0
subdir... | 2ed596679893038eed88468676d68539e977a728 | metadata/com.minar.birday.yml | metadata/com.minar.birday.yml | YAML |
<|file_sep|>original/_includes/_sass/components/_template-header.scss
width: 100%;
@include breakpoint($breakpoint-alpha) {
padding: 6em $guaranteed-edge-standoff;
}
}
}
.header-introduction,
.header-php,
.header-javascript,
.header-html,
.header-css,
.header-version-control,
.header-markup,
.heade... | @include breakpoint($breakpoint-alpha) {
padding: 6em $guaranteed-edge-standoff;
}
}
}
.header-introduction,
.header-php,
.header-javascript,
.header-html,
.header-css,
.header-version-control,
.header-markup,
.header-tools,
.header-migrations,
.header-structure,
.header-systems,
.header-markup,
.heade... | <|file_sep|>original/_includes/_sass/components/_template-header.scss
width: 100%;
@include breakpoint($breakpoint-alpha) {
padding: 6em $guaranteed-edge-standoff;
}
}
}
.header-introduction,
.header-php,
.header-javascript,
.header-html,
.header-css,
.header-version-control,
.header-markup,
.heade... | 94e0840198059a94558b2ca653cbb8b872a29632 | _includes/_sass/components/_template-header.scss | _includes/_sass/components/_template-header.scss | SCSS |
<|file_sep|>.travis.yml.diff
original:
- 2.3
- 2.4
updated:
- 2.3
- 2.6
- 2.7
- 3.0
<|file_sep|>.travis.yml.diff
original:
- Gemfile
- Gemfile.rails-5.0.x
- Gemfile.rails-5.1.x
- Gemfile.rails-6.0.x
updated:
- Gemfile
- Gemfile.rails-5.0.x
- Gemfile.rails-5.1.x
- Gemfile.rails-6.0.x
<|file_sep|>original... | - 2.6
- 2.7
- 3.0
gemfile:
- Gemfile
- Gemfile.rails-5.0.x
- Gemfile.rails-5.1.x
- Gemfile.rails-6.0.x
script: "./bin/rspec spec"
before_install:
- gem install bundler
notifications:
email: false
deploy:
provider: rubygems
api_key:
secure: Qng7FzbYWSU+R5Ou+hsg3EiyGwWQ2DVEP/Oc3zksVBT0zGy+/c2XgI... | <|file_sep|>.travis.yml.diff
original:
- 2.3
- 2.4
updated:
- 2.3
- 2.6
- 2.7
- 3.0
<|file_sep|>.travis.yml.diff
original:
- Gemfile
- Gemfile.rails-5.0.x
- Gemfile.rails-5.1.x
- Gemfile.rails-6.0.x
updated:
- Gemfile
- Gemfile.rails-5.0.x
- Gemfile.rails-5.1.x
- Gemfile.rails-6.0.x
<|file_sep|>original... | aa737e97338a30dce466d7f572d48e078184482a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/initializers/01_configure_from_env.rb
if ENV['OPS_URL']
Pancakes::Config.from_env :ops, ENV['OPS_URL']
end
if ENV['STUDY_LOCATIONS_PATH']
Pancakes::Config.from_env :study_locations_file, ENV['STUDY_LOCATIONS_PATH']
end
if ENV['QUERY_CONCURRENCY']
Pancakes::Config.from_env :query_con... |
if ENV['OPS_URL']
Pancakes::Config.from_env :ops, ENV['OPS_URL']
end
if ENV['STUDY_LOCATIONS_PATH']
Pancakes::Config.from_env :study_locations_file, ENV['STUDY_LOCATIONS_PATH']
end
if ENV['QUERY_CONCURRENCY']
Pancakes::Config.from_env :query_concurrency, ENV['QUERY_CONCURRENCY'].to_i
else
Pancakes::Config.fr... | <|file_sep|>original/config/initializers/01_configure_from_env.rb
if ENV['OPS_URL']
Pancakes::Config.from_env :ops, ENV['OPS_URL']
end
if ENV['STUDY_LOCATIONS_PATH']
Pancakes::Config.from_env :study_locations_file, ENV['STUDY_LOCATIONS_PATH']
end
if ENV['QUERY_CONCURRENCY']
Pancakes::Config.from_env :query_con... | 867d2373ff21a405bee1cefb8ff5ac7caadbaf6d | config/initializers/01_configure_from_env.rb | config/initializers/01_configure_from_env.rb | Ruby |
<|file_sep|>original/.github/workflows/test_report.yaml
<|file_sep|>current/.github/workflows/test_report.yaml
<|file_sep|>updated/.github/workflows/test_report.yaml | name: 'Test Report'
on:
workflow_run:
workflows: ['Test']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: jdk11-test-results
name: JDK 11 Tests
path: '**/*.xml'
reporter: java-ju... | <|file_sep|>original/.github/workflows/test_report.yaml
<|file_sep|>current/.github/workflows/test_report.yaml
<|file_sep|>updated/.github/workflows/test_report.yaml
name: 'Test Report'
on:
workflow_run:
workflows: ['Test']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
... | b23d9a6aca0dc133d2b57ac196c08e707d7dffbe | .github/workflows/test_report.yaml | .github/workflows/test_report.yaml | YAML |
<|file_sep|>original/README.md
# DEPRECATED - Clever is no longer supporting or maintaining this repository.
Clever OAuth Examples
=====================
Code samples to support your development against [Clever's](https://clever.com) OAuth implementation.
Issues & pull requests appreciated!
Example Implementations
-... | # DEPRECATED - Clever is no longer supporting or maintaining this repository.
These examples are now out of date and do not reflect our best practices.
Clever OAuth Examples
=====================
Code samples to support your development against [Clever's](https://clever.com) OAuth implementation.
Issues & pull reque... | <|file_sep|>original/README.md
# DEPRECATED - Clever is no longer supporting or maintaining this repository.
Clever OAuth Examples
=====================
Code samples to support your development against [Clever's](https://clever.com) OAuth implementation.
Issues & pull requests appreciated!
Example Implementations
-... | 2acdc24c41a7060af06db5104a32715dc0f5b84d | README.md | README.md | Markdown |
<|file_sep|>client/components/photo_list.js.diff
original:
<div key={`photo-${photo.id}`} className="col-xs-6 col-md-3">
updated:
<div key={`photo-${photo.id}`} className="col-xs-6 col-md-4">
<|file_sep|>original/client/components/photo_list.js
<div className="row">
{this.props.photos.map((pho... | <div className="row">
{this.props.photos.map((photo) => { return this.renderPhoto(photo); })}
</div>
);
}
renderPhoto(photo) {
return (
<div key={`photo-${photo.id}`} className="col-xs-6 col-md-4">
<div className="thumbnail">
<img src={`/photos/${photo.id}/medium... | <|file_sep|>client/components/photo_list.js.diff
original:
<div key={`photo-${photo.id}`} className="col-xs-6 col-md-3">
updated:
<div key={`photo-${photo.id}`} className="col-xs-6 col-md-4">
<|file_sep|>original/client/components/photo_list.js
<div className="row">
{this.props.photos.map((pho... | 432b453adb8928bda4b660ae63524d3ff33824da | client/components/photo_list.js | client/components/photo_list.js | JavaScript |
<|file_sep|>original/web/concrete/controllers/feed.php
<?php
namespace Concrete\Controller;
class Feed extends \Concrete\Core\Controller\Controller
{
public function get($identifier)
{
$feed = \Concrete\Core\Page\Feed::getByHandle($identifier);
if (is_object($feed)) {
//header('Cont... | <?php
namespace Concrete\Controller;
class Feed extends \Concrete\Core\Controller\Controller
{
public function get($identifier=null, $defaultValue=null)
{
$feed = \Concrete\Core\Page\Feed::getByHandle($identifier);
if (is_object($feed)) {
//header('Content-Type: text/xml');
... | <|file_sep|>original/web/concrete/controllers/feed.php
<?php
namespace Concrete\Controller;
class Feed extends \Concrete\Core\Controller\Controller
{
public function get($identifier)
{
$feed = \Concrete\Core\Page\Feed::getByHandle($identifier);
if (is_object($feed)) {
//header('Cont... | 8174213182434f56dbd84b0180c69612422c6ade | web/concrete/controllers/feed.php | web/concrete/controllers/feed.php | PHP |
<|file_sep|>original/src/app/app.component.css
.root {
background-image: url("https://voornameninliedjes.nl/images/music.jpg");
}
h1 {
color: white;
font-family: 'Helvetica Neue', sans-serif;
font-weight: 200;
font-size: 300%;
}
.header {
padding: 2.5em;
overflow: auto;
width: 100%;
... | .root {
background-image: url("https://voornameninliedjes.nl/images/music.jpg");
background-attachment: fixed;
}
h1 {
color: white;
font-family: 'Helvetica Neue', sans-serif;
font-weight: 200;
font-size: 300%;
}
.header {
padding: 2.5em;
overflow: auto;
width: 100%;
height: 10%... | <|file_sep|>original/src/app/app.component.css
.root {
background-image: url("https://voornameninliedjes.nl/images/music.jpg");
}
h1 {
color: white;
font-family: 'Helvetica Neue', sans-serif;
font-weight: 200;
font-size: 300%;
}
.header {
padding: 2.5em;
overflow: auto;
width: 100%;
... | 4817174f4a76bf4736e0e3e90f6da53e9147f76b | src/app/app.component.css | src/app/app.component.css | CSS |
<|file_sep|>original/packages/pr/prim-array.yaml
<|file_sep|>current/packages/pr/prim-array.yaml
<|file_sep|>updated/packages/pr/prim-array.yaml | homepage: https://github.com/andrewthad/prim-array#readme
changelog-type: ''
hash: d0573cd8c7e4a08ba080fd4d5913431945a4d4df7dca3c45d82ac9592673f825
test-bench-deps: {}
maintainer: andrew.thaddeus@gmail.com
synopsis: Primitive byte array with type variable
changelog: ''
basic-deps:
base: ! '>=4.9 && <5'
ghc-prim: ! ... | <|file_sep|>original/packages/pr/prim-array.yaml
<|file_sep|>current/packages/pr/prim-array.yaml
<|file_sep|>updated/packages/pr/prim-array.yaml
homepage: https://github.com/andrewthad/prim-array#readme
changelog-type: ''
hash: d0573cd8c7e4a08ba080fd4d5913431945a4d4df7dca3c45d82ac9592673f825
test-bench-deps: {}
maint... | 69841b27003965a1eadd5bbbb2c5451c8cead187 | packages/pr/prim-array.yaml | packages/pr/prim-array.yaml | YAML |
<|file_sep|>opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java.diff
original:
updated:
import org.junit.Assert;
import org.junit.Test;
<|file_sep|>opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java.diff
original:
import org.junit.... |
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class JMXDataCollectionConfigFactoryTest {
@Test
// Tests that the JmxDataCollectionConfigFactory also supports/implements the split config feature.
public vo... | <|file_sep|>opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java.diff
original:
updated:
import org.junit.Assert;
import org.junit.Test;
<|file_sep|>opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java.diff
original:
import org.junit.... | c460f2203e5b22a0786c473072e4b59073bca8b9 | opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java | opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java | Java |
<|file_sep|>original/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java
<|file_sep|>current/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java
<|file_sep|>updated/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java | /*
* Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.
*
* Copyright (C) 2015 Clinton Health Access Initiative (CHAI). This program was produced for the U.S. Agency for International Development (USAID). It was prepa... | <|file_sep|>original/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java
<|file_sep|>current/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java
<|file_sep|>updated/modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java
/*
* Elect... | 0604212d63b1016f5bea20cf7109837dd6de6198 | modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java | modules/report/src/main/java/org/openlmis/report/model/dto/FacilityLevelTree.java | Java |
<|file_sep|>src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs.diff
original:
updated:
using System.Text.RegularExpressions;
<|file_sep|>src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs.diff
original:
return !string.IsNullOrWhiteSpace(emailAddress);
updated:
R... | using System.Text.RegularExpressions;
namespace AdamS.StoreTemp.Models.Common
{
public static class StringExtensions
{
public static bool IsValidEmailAddress(this string emailAddress)
{
Regex regex = new Regex(@"^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$");
Match m... | <|file_sep|>src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs.diff
original:
updated:
using System.Text.RegularExpressions;
<|file_sep|>src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs.diff
original:
return !string.IsNullOrWhiteSpace(emailAddress);
updated:
R... | 655a63bd61dca22f94055156c5ca10519f65d197 | src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs | src/Step-0-No-DI/AdamS.StoreTemp/Models/Common/StringExtensions.cs | C# |
<|file_sep|>original/us_ignite/templates/hubs/object_list.html
{% extends "base.html" %}
{% block title %}Ignite communities - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Ignite communities</h1>
{% for object in object_list %}
<div>
<h2><a href="{{ object.get_absolute_url }}">{{ object.name }}</a... | {% extends "base.html" %}
{% block title %}Ignite communities - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Ignite communities</h1>
<p>
<a href="{% url 'hub_application'%}">Apply to be an Ignite Community.</a>
</p>
{% for object in object_list %}
<div>
<h2><a href="{{ object.get_absolute_url }... | <|file_sep|>original/us_ignite/templates/hubs/object_list.html
{% extends "base.html" %}
{% block title %}Ignite communities - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Ignite communities</h1>
{% for object in object_list %}
<div>
<h2><a href="{{ object.get_absolute_url }}">{{ object.name }}</a... | faeb378dba770d6a9b37b5a629006ec804942b0c | us_ignite/templates/hubs/object_list.html | us_ignite/templates/hubs/object_list.html | HTML |
<|file_sep|>original/README.md
Cargo downloads your Rust project’s dependencies and compiles your project.
Learn more at http://crates.io/.
## Compiling cargo
You'll want to clone cargo using --recursive on git, to clone in its submodule
dependencies.
```
$ git clone --recursive https://github.com/rust-lang/cargo
``... | Cargo downloads your Rust project’s dependencies and compiles your project.
Learn more at http://crates.io/.
## Installing cargo
Cargo has nightlies available for use. The cargo source is not always guaranteed
to compile on rust master as it may lag behind by a day or two. Nightlies,
however, will run regardless of ... | <|file_sep|>original/README.md
Cargo downloads your Rust project’s dependencies and compiles your project.
Learn more at http://crates.io/.
## Compiling cargo
You'll want to clone cargo using --recursive on git, to clone in its submodule
dependencies.
```
$ git clone --recursive https://github.com/rust-lang/cargo
``... | ffd985f1f41c105ac8fe69be5839e3851370e3f3 | README.md | README.md | Markdown |
<|file_sep|>original/package.json
},
"homepage": "http://htanjo.github.io/kss-node-template/",
"bugs": {
"url": "https://github.com/htanjo/kss-node-template/issues"
},
"keywords": [
"kss",
"kss-node",
"template",
"theme",
"design",
"style",
"styleguide",
"documentation",
... | "bugs": {
"url": "https://github.com/htanjo/kss-node-template/issues"
},
"keywords": [
"kss",
"kss-node",
"template",
"theme",
"design",
"style",
"styleguide",
"documentation",
"css"
],
"scripts": {
"build": "kss-node demo/src demo/dist --template template --css boo... | <|file_sep|>original/package.json
},
"homepage": "http://htanjo.github.io/kss-node-template/",
"bugs": {
"url": "https://github.com/htanjo/kss-node-template/issues"
},
"keywords": [
"kss",
"kss-node",
"template",
"theme",
"design",
"style",
"styleguide",
"documentation",
... | 39b2ebda31db6714015e266da63ba66928f675c0 | package.json | package.json | JSON |
<|file_sep|>one_time_eval.py.diff
original:
updated:
# usage: python one_time_eval.py as8sqdtc 2skskd
<|file_sep|>one_time_eval.py.diff
original:
from deuces.deuces import Card
updated:
<|file_sep|>one_time_eval.py.diff
original:
cards_str = sys.argv[1]
updated:
## argv to strings
hole_cards_str = sys.argv[1]
<|file_... | board_str = ''
if len(sys.argv) > 2:
board_str = sys.argv[2]
## strings to lists of Card objects
hole_cards = str2cards(hole_cards_str)
board = str2cards(board_str)
## card list to player list-of-lists
assert len(hole_cards) % 2 == 0
n_players = len(hole_cards) / 2
assert n_players > 1
p = []
for i in range(n_pla... | <|file_sep|>one_time_eval.py.diff
original:
updated:
# usage: python one_time_eval.py as8sqdtc 2skskd
<|file_sep|>one_time_eval.py.diff
original:
from deuces.deuces import Card
updated:
<|file_sep|>one_time_eval.py.diff
original:
cards_str = sys.argv[1]
updated:
## argv to strings
hole_cards_str = sys.argv[1]
<|file_... | dd3b135ab5e229c5f717fc4d296389e187a49f9a | one_time_eval.py | one_time_eval.py | Python |
<|file_sep|>app/assets/javascripts/contracts.js.coffee.diff
original:
updated:
selector: ''
<|file_sep|>original/app/assets/javascripts/contracts.js.coffee
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can us... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
# Tooltips for Contract Balance
$ ->
$('.contracts').on('mouseenter', 'a[data-toggle=tooltip]', ->
$(t... | <|file_sep|>app/assets/javascripts/contracts.js.coffee.diff
original:
updated:
selector: ''
<|file_sep|>original/app/assets/javascripts/contracts.js.coffee
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can us... | 0ee5b67cafb67c41762daad1a81b042b80ea661b | app/assets/javascripts/contracts.js.coffee | app/assets/javascripts/contracts.js.coffee | CoffeeScript |
<|file_sep|>kawa/ShortcutCellView.swift.diff
original:
updated:
var shortcutKey: String?
<|file_sep|>original/kawa/ShortcutCellView.swift
//
// ShortcutCellView.swift
// kawa
//
// Created by noraesae on 29/07/2015.
// Copyright (c) 2015 noraesae. All rights reserved.
//
import Cocoa
class ShortcutCellView: ... | //
import Cocoa
class ShortcutCellView: NSTableCellView {
@IBOutlet weak var shortcutView: MASShortcutView!
var inputSource: InputSource?
var shortcutKey: String?
func setInputSource(inputSource: InputSource) {
self.inputSource = inputSource
shortcutKey = inputSource.id.stringByRepla... | <|file_sep|>kawa/ShortcutCellView.swift.diff
original:
updated:
var shortcutKey: String?
<|file_sep|>original/kawa/ShortcutCellView.swift
//
// ShortcutCellView.swift
// kawa
//
// Created by noraesae on 29/07/2015.
// Copyright (c) 2015 noraesae. All rights reserved.
//
import Cocoa
class ShortcutCellView: ... | 6014522ebf41a24529ac086b38fd83debf7245c8 | kawa/ShortcutCellView.swift | kawa/ShortcutCellView.swift | Swift |
<|file_sep|>original/requirements.yml
# vim:ft=ansible:
- src: https://github.com/alphagov/openldap_server.git
version: b6e32f3c049f9607dcbbbc743e92baf7e8a6a7d5
name: bennojoy.openldap_server
- src: https://github.com/jnv/ansible-role-ldap-auth-client.git
version: a5b17a5c3851207fe90fb496da4e4653d857a770
name:... | # vim:ft=ansible:
- src: https://github.com/alphagov/openldap_server.git
version: 9cbbb9957e99f9930028962dff451115ed195612
name: bennojoy.openldap_server
- src: https://github.com/jnv/ansible-role-ldap-auth-client.git
version: a5b17a5c3851207fe90fb496da4e4653d857a770
name: jnv.ldap-auth-client | <|file_sep|>original/requirements.yml
# vim:ft=ansible:
- src: https://github.com/alphagov/openldap_server.git
version: b6e32f3c049f9607dcbbbc743e92baf7e8a6a7d5
name: bennojoy.openldap_server
- src: https://github.com/jnv/ansible-role-ldap-auth-client.git
version: a5b17a5c3851207fe90fb496da4e4653d857a770
name:... | 48a512b0c638b03033a7202533aef52825435cd5 | requirements.yml | requirements.yml | YAML |
<|file_sep|>original/lib/generators/rails/responders_controller_generator.rb
require 'generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
def self.source_root
@_source_root ||= File.expa... | require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
def self.source_root
@_source_root ||= File.expand_path("templates", File.dirname(__FILE__))
end
protected
... | <|file_sep|>original/lib/generators/rails/responders_controller_generator.rb
require 'generators/rails/scaffold_controller/scaffold_controller_generator'
module Rails
module Generators
class RespondersControllerGenerator < ScaffoldControllerGenerator
def self.source_root
@_source_root ||= File.expa... | 39ad05a715056cc802b6e8ed2d3d0f36af31bb5f | lib/generators/rails/responders_controller_generator.rb | lib/generators/rails/responders_controller_generator.rb | Ruby |
<|file_sep|>original/table_maps/file_6.yaml
<|file_sep|>current/table_maps/file_6.yaml
<|file_sep|>updated/table_maps/file_6.yaml | - name: REC-TYPE
type: A
start: 0
length: 2
description: Record Type = '06'
- name: NAME-CORP-ID
type: A
start: 2
length: 7
description: Corp/LP/LLC Id
- name: NAME-STATUS
type: A
start: 9
length: 2
description: Name Stat... | <|file_sep|>original/table_maps/file_6.yaml
<|file_sep|>current/table_maps/file_6.yaml
<|file_sep|>updated/table_maps/file_6.yaml
- name: REC-TYPE
type: A
start: 0
length: 2
description: Record Type = '06'
- name: NAME-CORP-ID
type: A
start: 2
length: 7
... | 1ece89c267fdbb3f976286780867fb50fe3163c2 | table_maps/file_6.yaml | table_maps/file_6.yaml | YAML |
<|file_sep|>original/README.md
# Ember-cli-o

Open your ember project, from the CLI, in the browser.
## Get started
First, install the package in your project:
```
ember install ember-cli-o
```
Next, run either `ember o` o... | # Ember-cli-o

Open your ember project, from the CLI, in the browser. Pairs well with
[https://github.com/ryanlabouve/ember-cli-randoport](ember-cli-randoport).
## Get started
First, install the package in your project:
```... | <|file_sep|>original/README.md
# Ember-cli-o

Open your ember project, from the CLI, in the browser.
## Get started
First, install the package in your project:
```
ember install ember-cli-o
```
Next, run either `ember o` o... | 5c50066cabf8ff4fb4023999a98372ecfce7d0f7 | README.md | README.md | Markdown |
<|file_sep|>original/scripts/learning_curve.py
<|file_sep|>current/scripts/learning_curve.py
<|file_sep|>updated/scripts/learning_curve.py | #!/usr/bin/env python
import argparse
import pandas as pd
import matplotlib.pyplot as plt
def learning_curve(csv_file):
df = pd.read_csv(csv_file)
df_train = df.query("type == 'train'")
df_val = df.query("type == 'val'")
plt.figure()
# train loss
plt.subplot(221)
plt.semilogy(df_train... | <|file_sep|>original/scripts/learning_curve.py
<|file_sep|>current/scripts/learning_curve.py
<|file_sep|>updated/scripts/learning_curve.py
#!/usr/bin/env python
import argparse
import pandas as pd
import matplotlib.pyplot as plt
def learning_curve(csv_file):
df = pd.read_csv(csv_file)
df_train = df.query... | f4425bc8d63c725329ea04898c86275928f0f4be | scripts/learning_curve.py | scripts/learning_curve.py | Python |
<|file_sep|>original/tempest/tests/lib/services/volume/v2/test_limits_client.py
<|file_sep|>current/tempest/tests/lib/services/volume/v2/test_limits_client.py
<|file_sep|>updated/tempest/tests/lib/services/volume/v2/test_limits_client.py | # Copyright 2017 FiberHome Telecommunication Technologies CO.,LTD
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LI... | <|file_sep|>original/tempest/tests/lib/services/volume/v2/test_limits_client.py
<|file_sep|>current/tempest/tests/lib/services/volume/v2/test_limits_client.py
<|file_sep|>updated/tempest/tests/lib/services/volume/v2/test_limits_client.py
# Copyright 2017 FiberHome Telecommunication Technologies CO.,LTD
# All Rights R... | ace26ab5e713fabd02f4f481956c47640f50b166 | tempest/tests/lib/services/volume/v2/test_limits_client.py | tempest/tests/lib/services/volume/v2/test_limits_client.py | Python |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6.9.1"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- npm install --global gulp-cli
- npm install
- npm run init
script:
- gulp unit-test-with-coverage
- gulp dist
- gulp start-server
- gulp acceptan... | language: node_js
node_js:
- "6.9.1"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- mkdir -p .local/bin
- wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz -O /tmp/geckodriver.tar.gz
- tar xzf /tmp/geckodriver.tar.gz -C $PWD... | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6.9.1"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- npm install --global gulp-cli
- npm install
- npm run init
script:
- gulp unit-test-with-coverage
- gulp dist
- gulp start-server
- gulp acceptan... | 65cdf93f54cc010a1a6b455d25818efc96afa7e2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>Gulpfile.js.diff
original:
var $jsFiles = Linoleum.jsFiles;
Linoleum.jsFiles = function() {
return $jsFiles().concat('tasks/*.js', 'index.js');
};
require('linoleum/tasks/clean');
require('linoleum/tasks/lint');
require('linoleum/tasks/cover');
updated:
<|file_sep|>original/Gulpfile.js
var Gulp = requi... | var Gulp = require('gulp'),
Linoleum = require('linoleum');
require('./index');
Gulp.task('build', ['clean', 'lint'], function(done) {
Linoleum.runTask('webpack', done);
});
Gulp.task('cover', ['build'], function(done) {
Linoleum.runTask(['cover:untested', 'cover:server', 'cover:web', 'cover:report'], done);... | <|file_sep|>Gulpfile.js.diff
original:
var $jsFiles = Linoleum.jsFiles;
Linoleum.jsFiles = function() {
return $jsFiles().concat('tasks/*.js', 'index.js');
};
require('linoleum/tasks/clean');
require('linoleum/tasks/lint');
require('linoleum/tasks/cover');
updated:
<|file_sep|>original/Gulpfile.js
var Gulp = requi... | eb9c9ca2972728d2f3e05f145aee6176a5e22e70 | Gulpfile.js | Gulpfile.js | JavaScript |
<|file_sep|>.styleci.yml.diff
original:
php:
preset: recommended
updated:
preset: recommended
<|file_sep|>.styleci.yml.diff
original:
enabled:
- dir_constant
- ereg_to_preg
- mb_str_functions
- no_short_echo_tag
- strict_comparison
- phpdoc_link_to_see
- no_php4_constructor
- declare... | preset: recommended
enabled:
- dir_constant
- ereg_to_preg
- mb_str_functions
- no_short_echo_tag
- strict_comparison
- phpdoc_link_to_see
- no_php4_constructor
- declare_strict_types
- unalign_double_arrow
- length_ordered_imports
- modernize_types_casting
- return_type_declaration
- not_ope... | <|file_sep|>.styleci.yml.diff
original:
php:
preset: recommended
updated:
preset: recommended
<|file_sep|>.styleci.yml.diff
original:
enabled:
- dir_constant
- ereg_to_preg
- mb_str_functions
- no_short_echo_tag
- strict_comparison
- phpdoc_link_to_see
- no_php4_constructor
- declare... | 1f66cde68158274c6d23b39f78d7bb2fd269f338 | .styleci.yml | .styleci.yml | YAML |
<|file_sep|>original/.travis.yml
language: cpp
compiler:
- gcc
- clang
script: autoreconf -i && ./configure && make
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler libprotobuf-lite7 libprotobuf-dev libprotoc-dev bison flex libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev li... | language: cpp
compiler:
- gcc
- clang
script: autoreconf -i && ./configure && make
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler libprotobuf-lite7 libprotobuf-dev libprotoc-dev bison flex libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev libavahi-client-dev uuid-dev libcpp... | <|file_sep|>original/.travis.yml
language: cpp
compiler:
- gcc
- clang
script: autoreconf -i && ./configure && make
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler libprotobuf-lite7 libprotobuf-dev libprotoc-dev bison flex libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev li... | d61515b8ed492d85d89c975efc927defabd6d623 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/org.groovy-lang/groovy/2.4.7/files/set-env-groovy.sh
export GROOVY_HOME=$SOFTWARE_DIR/groovy-2.4.7
export JAVA_OPTS=$JAVA_OPTS -Dgrape.config=$JAVA_OPTS/conf/grapeConfig.xml -Dgroovy.root=$JAVA_OPTS/.groovy/
export PATH=$GROOVY_HOME/bin:$PATH
<|file_sep|>current/org.groovy-lang/groovy/2.4.7/files/... |
export GROOVY_HOME=$SOFTWARE_DIR/groovy-2.4.7
export JAVA_OPTS="$JAVA_OPTS -Dgrape.config=$GROOVY_HOME/conf/grapeConfig.xml -Dgroovy.root=$GROOVY_HOME/.groovy/"
export PATH=$GROOVY_HOME/bin:$PATH | <|file_sep|>original/org.groovy-lang/groovy/2.4.7/files/set-env-groovy.sh
export GROOVY_HOME=$SOFTWARE_DIR/groovy-2.4.7
export JAVA_OPTS=$JAVA_OPTS -Dgrape.config=$JAVA_OPTS/conf/grapeConfig.xml -Dgroovy.root=$JAVA_OPTS/.groovy/
export PATH=$GROOVY_HOME/bin:$PATH
<|file_sep|>current/org.groovy-lang/groovy/2.4.7/files/... | 1813f41e6a1974635a9f743e27175ae12b162210 | org.groovy-lang/groovy/2.4.7/files/set-env-groovy.sh | org.groovy-lang/groovy/2.4.7/files/set-env-groovy.sh | Shell |
<|file_sep|>client/apollo/js/View/TrackList/Faceted.js.diff
original:
constructor: function() {
updated:
constructor: function(args) {
<|file_sep|>original/client/apollo/js/View/TrackList/Faceted.js
define([
"dojo/_base/declare",
'JBrowse/View/TrackList/Faceted'
],
function(declare,Faceted) {
return declare('Web... | "dojo/_base/declare",
'JBrowse/View/TrackList/Faceted'
],
function(declare,Faceted) {
return declare('WebApollo.View.TrackList.Faceted',Faceted,
{
// Subclass method for track selector to remove webapollo specific tracks
constructor: function(args) {
console.log('WebApollo/View/TrackList/Faceted');
... | <|file_sep|>client/apollo/js/View/TrackList/Faceted.js.diff
original:
constructor: function() {
updated:
constructor: function(args) {
<|file_sep|>original/client/apollo/js/View/TrackList/Faceted.js
define([
"dojo/_base/declare",
'JBrowse/View/TrackList/Faceted'
],
function(declare,Faceted) {
return declare('Web... | a47b018a7b905fd9ea6ccc2db6dcd1fc7c9e1d2f | client/apollo/js/View/TrackList/Faceted.js | client/apollo/js/View/TrackList/Faceted.js | JavaScript |
<|file_sep|>original/documentation/optional.md
---
layout: default
title: @Optional field annotation
---
{% include navbar.html parent="documentation" %}
An indication that the annotated field can accept an empty (or blank) data entry field. If the data entry field is empty, the annotated field will be assigned a `nu... | ---
layout: default
title: Optional field annotation
---
{% include navbar.html parent="documentation" %}
An indication that the annotated field can accept an empty (or blank) data entry field. If the data entry field is empty, the annotated field will be assigned a `null` value.
"Blank" means that the data entry fi... | <|file_sep|>original/documentation/optional.md
---
layout: default
title: @Optional field annotation
---
{% include navbar.html parent="documentation" %}
An indication that the annotated field can accept an empty (or blank) data entry field. If the data entry field is empty, the annotated field will be assigned a `nu... | f7dc0559d24c1d9dc720345ec610ef54d25b9035 | documentation/optional.md | documentation/optional.md | Markdown |
<|file_sep|>original/qipipe/conf/mask.cfg
[SGE]
# The Sun Grid Engine parameters.
plugin_args = {'qsub_args': '-l h_rt=00:30:00,mf=4G'}
[MriVolCluster]
max_thresh = 10
min_voxels = 10000
plugin_args = {'qsub_args': '-pe mpi 48-120 -l h_rt=02:00:00,mf=750M,h_vmem=3G', 'overwrite': True}
[mask_name]
run_without_submitt... | [SGE]
# The Sun Grid Engine parameters.
plugin_args = {'qsub_args': '-l h_rt=00:30:00,mf=4G'}
[MriVolCluster]
max_thresh = 10
min_voxels = 10000
plugin_args = {'qsub_args': '-pe mpi 8-12 -l h_rt=02:00:00,mf=750M,h_vmem=2G', 'overwrite': True}
[mask_name]
run_without_submitting = True | <|file_sep|>original/qipipe/conf/mask.cfg
[SGE]
# The Sun Grid Engine parameters.
plugin_args = {'qsub_args': '-l h_rt=00:30:00,mf=4G'}
[MriVolCluster]
max_thresh = 10
min_voxels = 10000
plugin_args = {'qsub_args': '-pe mpi 48-120 -l h_rt=02:00:00,mf=750M,h_vmem=3G', 'overwrite': True}
[mask_name]
run_without_submitt... | ee78c5bba828d618c1ff9355c3243019a8a2a784 | qipipe/conf/mask.cfg | qipipe/conf/mask.cfg | INI |
<|file_sep|>original/app/assets/stylesheets/_base.scss
.translation_missing {
background-color: $red;
color: $white;
}
<|file_sep|>current/app/assets/stylesheets/_base.scss
.translation_missing {
background-color: $red;
color: $white;
}
<|file_sep|>updated/app/assets/stylesheets/_base.scss | .footer {
margin-top: 1em !important;
}
.translation_missing {
background-color: $red;
color: $white;
} | <|file_sep|>original/app/assets/stylesheets/_base.scss
.translation_missing {
background-color: $red;
color: $white;
}
<|file_sep|>current/app/assets/stylesheets/_base.scss
.translation_missing {
background-color: $red;
color: $white;
}
<|file_sep|>updated/app/assets/stylesheets/_base.scss
.footer {
margin-to... | e91a8368dc2544bb7a4994c01e2ea85b1b1f2f31 | app/assets/stylesheets/_base.scss | app/assets/stylesheets/_base.scss | SCSS |
<|file_sep|>original/packages/rocketchat-lib/server/methods/restartServer.coffee
Meteor.methods
restart_server: ->
if not Meteor.userId()
throw new Meteor.Error 'invalid-user', "[methods] restart_server -> Invalid user"
unless RocketChat.authz.hasRole( Meteor.userId(), 'admin') is true
throw new Meteor.Erro... | Meteor.methods
restart_server: ->
if not Meteor.userId()
throw new Meteor.Error 'invalid-user', "[methods] restart_server -> Invalid user"
unless RocketChat.authz.hasRole( Meteor.userId(), 'admin') is true
throw new Meteor.Error 'not-authorized', '[methods] restart_server -> Not authorized'
Meteor.setTim... | <|file_sep|>original/packages/rocketchat-lib/server/methods/restartServer.coffee
Meteor.methods
restart_server: ->
if not Meteor.userId()
throw new Meteor.Error 'invalid-user', "[methods] restart_server -> Invalid user"
unless RocketChat.authz.hasRole( Meteor.userId(), 'admin') is true
throw new Meteor.Erro... | 270e558cab582692f19405f12efb1519a8724153 | packages/rocketchat-lib/server/methods/restartServer.coffee | packages/rocketchat-lib/server/methods/restartServer.coffee | CoffeeScript |
<|file_sep|>original/app/uk/gov/dvla/vehicles/presentation/common/webserviceclients/vehiclelookup/VehicleLookupServiceImpl.scala
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.util.control.NonFatal
final class VehicleLookupServiceImpl @Inject()(ws: VehicleLookupWe... | import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.util.control.NonFatal
final class VehicleLookupServiceImpl @Inject()(ws: VehicleLookupWebService) extends VehicleLookupService {
override def invoke(cmd: VehicleDetailsRequestDto,
trackingId: S... | <|file_sep|>original/app/uk/gov/dvla/vehicles/presentation/common/webserviceclients/vehiclelookup/VehicleLookupServiceImpl.scala
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.util.control.NonFatal
final class VehicleLookupServiceImpl @Inject()(ws: VehicleLookupWe... | f0c18bde82c2a795fb19cb1ae9637d6330980b5b | app/uk/gov/dvla/vehicles/presentation/common/webserviceclients/vehiclelookup/VehicleLookupServiceImpl.scala | app/uk/gov/dvla/vehicles/presentation/common/webserviceclients/vehiclelookup/VehicleLookupServiceImpl.scala | Scala |
<|file_sep|>original/.github/workflows/tests.yml
jobs:
build:
runs-on: ubuntu-16.04
services:
mariadb:
image: mariadb:10.0
env:
MYSQL_DATABASE=opendominion
MYSQL_USERNAME=opendominion
MYSQL_PASSWORD=secret
ports:
- 3306
options: -... |
jobs:
build:
runs-on: ubuntu-16.04
services:
mariadb:
image: mariadb:10.0
env:
MYSQL_DATABASE: opendominion
MYSQL_USERNAME: opendominion
MYSQL_PASSWORD: secret
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interva... | <|file_sep|>original/.github/workflows/tests.yml
jobs:
build:
runs-on: ubuntu-16.04
services:
mariadb:
image: mariadb:10.0
env:
MYSQL_DATABASE=opendominion
MYSQL_USERNAME=opendominion
MYSQL_PASSWORD=secret
ports:
- 3306
options: -... | a3b3623bbd377e2bb7116f451934b97f714921ec | .github/workflows/tests.yml | .github/workflows/tests.yml | YAML |
<|file_sep|>original/docs/index.rst
pyee
====
pyee is a rough port of
`node.js's EventEmitter <https://nodejs.org/api/events.html>`_.
It's missing a number of methods, but implements the basics.
Install:
--------
You can install this project off pypi using ``pip``::
pip install pyee
API Docs:
---------
.. toc... | pyee
====
pyee is a rough port of
`node.js's EventEmitter <https://nodejs.org/api/events.html>`_.
It's missing a number of methods, but implements the basics. Unlike its
namesake, it supports wrapping async functions/coroutines as seen in python
3.5.
Install:
--------
You can install this project off pypi using ``pi... | <|file_sep|>original/docs/index.rst
pyee
====
pyee is a rough port of
`node.js's EventEmitter <https://nodejs.org/api/events.html>`_.
It's missing a number of methods, but implements the basics.
Install:
--------
You can install this project off pypi using ``pip``::
pip install pyee
API Docs:
---------
.. toc... | 82434e6cdad491ca86be63163320b7d75eb31f1b | docs/index.rst | docs/index.rst | reStructuredText |
<|file_sep|>original/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</tit... | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerp... | <|file_sep|>original/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</tit... | 10ce73f232491b98691de65443cb64fa6e90ddc9 | _includes/head.html | _includes/head.html | HTML |
<|file_sep|>original/assets/js/add_observation.coffee
$ = jQuery
$ ->
current_jd = +$("#current-jd").text()
$("#id_jd").val(current_jd)
<|file_sep|>current/assets/js/add_observation.coffee
$ = jQuery
$ ->
current_jd = +$("#current-jd").text()
$("#id_jd").val(current_jd)
<|file_sep|>updated/assets/js/add... | $ = jQuery
$ ->
current_jd = +$("#current-jd").text()
$("#id_jd").val(current_jd)
detail_fields = $("#div_id_comp1, #div_id_comp2, #div_id_comment_code, #div_id_chart, #div_id_notes")
detail_fields.hide() | <|file_sep|>original/assets/js/add_observation.coffee
$ = jQuery
$ ->
current_jd = +$("#current-jd").text()
$("#id_jd").val(current_jd)
<|file_sep|>current/assets/js/add_observation.coffee
$ = jQuery
$ ->
current_jd = +$("#current-jd").text()
$("#id_jd").val(current_jd)
<|file_sep|>updated/assets/js/add... | 2fc177c2e7d8f498704686c4236ee1a49f8b8c7e | assets/js/add_observation.coffee | assets/js/add_observation.coffee | CoffeeScript |
<|file_sep|>js/respuesta.js.diff
original:
updated:
function initialAnimation() {
$("div>div").fadeTo(1,30);
$(".left , .right").animate({"margin-left":0},5000);
}
<|file_sep|>original/js/respuesta.js
function createMenuItem(parentSelector,menuData){
var menuListItem=document.createElement('li');
$(men... | function createMenuItem(parentSelector,menuData){
var menuListItem=document.createElement('li');
$(menuListItem).addClass(menuData.class).appendTo(parentSelector);
var menuLink=document.createElement('a');
$(menuLink).attr({"href":menuData.link}).html(menuData.name);
$(menuLink).appendTo(menuListIte... | <|file_sep|>js/respuesta.js.diff
original:
updated:
function initialAnimation() {
$("div>div").fadeTo(1,30);
$(".left , .right").animate({"margin-left":0},5000);
}
<|file_sep|>original/js/respuesta.js
function createMenuItem(parentSelector,menuData){
var menuListItem=document.createElement('li');
$(men... | cef546a8bb537e5ca976045f67d372ccddc36f0b | js/respuesta.js | js/respuesta.js | JavaScript |
<|file_sep|>original/TWRBorderedView/TWRBorderedView.h
TWRBorderMaskBottom = 1 << 1,
TWRBorderMaskLeft = 1 << 2,
TWRBorderMaskRight = 1 << 3
};
@interface TWRBorderedView : UIView
@property (nonatomic, assign) TWRBorderMask mask;
@property (nonatomic, assign) CGFloat borderWidth;
@property (stro... | TWRBorderMaskBottom = 1 << 1,
TWRBorderMaskLeft = 1 << 2,
TWRBorderMaskRight = 1 << 3
};
@interface TWRBorderedView : UIView
@property (nonatomic, assign) TWRBorderMask mask;
@property (nonatomic, assign) CGFloat borderWidth;
@property (strong, nonatomic) UIColor *borderColor;
// Use when assig... | <|file_sep|>original/TWRBorderedView/TWRBorderedView.h
TWRBorderMaskBottom = 1 << 1,
TWRBorderMaskLeft = 1 << 2,
TWRBorderMaskRight = 1 << 3
};
@interface TWRBorderedView : UIView
@property (nonatomic, assign) TWRBorderMask mask;
@property (nonatomic, assign) CGFloat borderWidth;
@property (stro... | 46f1e784fefa16719ec7dcbf9ccc4270656fc7df | TWRBorderedView/TWRBorderedView.h | TWRBorderedView/TWRBorderedView.h | C |
<|file_sep|>original/src/scss/_controls.scss
$promoImage: "../img/32-links.jpg";
$promoHeight: 40px;
$promoTarget: false; //"32-32-link"; // either link title or false
$promoIsLink: true;
$promoTop: 0;
$sidebarImage: "../img/SB-REG12-Chiefs.jpg";
$sidebarHeader: "A Special Team";
$sidebarText: "Special teams were key ... | $promoImage: "../img/32-links.jpg";
$promoHeight: 40px;
$promoTarget: false; //"32-32-link"; // either link title or false
$promoIsLink: true;
$promoTop: 0;
$sidebarImage: "../img/SB-REG12-Chiefs.jpg";
$sidebarHeader: "A Special Team";
$sidebarText: "Special teams were key for the Kansas City Chiefs in a close win ove... | <|file_sep|>original/src/scss/_controls.scss
$promoImage: "../img/32-links.jpg";
$promoHeight: 40px;
$promoTarget: false; //"32-32-link"; // either link title or false
$promoIsLink: true;
$promoTop: 0;
$sidebarImage: "../img/SB-REG12-Chiefs.jpg";
$sidebarHeader: "A Special Team";
$sidebarText: "Special teams were key ... | 1ea2888e482815ef287a6910fa33f9b2614e53d3 | src/scss/_controls.scss | src/scss/_controls.scss | SCSS |
<|file_sep|>original/package.json
<|file_sep|>current/package.json
<|file_sep|>updated/package.json | {
2 "name": "development_packages",
3 "version": "1.0.0",
4 "description": "",
5 "main": "index.js",
6 "scripts": {
7 "test": "karma start karma.conf.js"
8 },
9 "author": "",
10 "license": "ISC",
11 "devDependencies": {
12 "jasmine": "^2.4.1",
13 "karma": "^1.1.0",
14... | <|file_sep|>original/package.json
<|file_sep|>current/package.json
<|file_sep|>updated/package.json
{
2 "name": "development_packages",
3 "version": "1.0.0",
4 "description": "",
5 "main": "index.js",
6 "scripts": {
7 "test": "karma start karma.conf.js"
8 },
9 "author": "",
10 "l... | 76b83b2ee68ab3f4561ece3ede8eed988476aa56 | package.json | package.json | JSON |
<|file_sep|>lib/graphite_template/template_handler.rb.diff
original:
"'#{GraphiteTemplate::Config.graphite_url}?' + GraphiteGraph.new('#{template.inspect}', {}, assigns.merge(local_assigns)).url"
updated:
"'#{GraphiteTemplate::Config.graphite_url}?' + GraphiteGraph.new('#{template.inspect}', {}, assigns.mer... | require 'graphite_graph'
module GraphiteTemplate
class TemplateHandler
def self.call(template)
"'#{GraphiteTemplate::Config.graphite_url}?' + GraphiteGraph.new('#{template.inspect}', {}, assigns.merge(local_assigns)).url(local_assigns['format'])"
end
end
end | <|file_sep|>lib/graphite_template/template_handler.rb.diff
original:
"'#{GraphiteTemplate::Config.graphite_url}?' + GraphiteGraph.new('#{template.inspect}', {}, assigns.merge(local_assigns)).url"
updated:
"'#{GraphiteTemplate::Config.graphite_url}?' + GraphiteGraph.new('#{template.inspect}', {}, assigns.mer... | d1c521936d05ccc3226f3c233a1f4fec7b7c8b8e | lib/graphite_template/template_handler.rb | lib/graphite_template/template_handler.rb | Ruby |
<|file_sep|>original/app/helpers/tiny_mce_helper.rb
plugins : "paste, safari",
width : '100%',
height : '100%',
editor_deselector : "mceNoEditor",
auto_resize : true,
content_css : "/stylesheets/app.css",
gecko_spellcheck : true,
theme_advanced_resizing : true,
theme_advanced_resizin... | plugins : "paste, safari",
width : '100%',
height : '100%',
editor_deselector : "mceNoEditor",
auto_resize : true,
content_css : "/stylesheets/app.css",
gecko_spellcheck : true,
theme_advanced_resizing : true,
theme_advanced_resizing_use_cookie : true,
theme_advanced_toolbar_loca... | <|file_sep|>original/app/helpers/tiny_mce_helper.rb
plugins : "paste, safari",
width : '100%',
height : '100%',
editor_deselector : "mceNoEditor",
auto_resize : true,
content_css : "/stylesheets/app.css",
gecko_spellcheck : true,
theme_advanced_resizing : true,
theme_advanced_resizin... | 734d27008bc930b9d0f47cba59e19818610ccbf1 | app/helpers/tiny_mce_helper.rb | app/helpers/tiny_mce_helper.rb | Ruby |
<|file_sep|>original/findingaids/__init__.py
#
# Copyright 2012 Emory University Library
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | #
# Copyright 2012 Emory University Library
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | <|file_sep|>original/findingaids/__init__.py
#
# Copyright 2012 Emory University Library
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | d0662f3ae97a194975e842dae2357a0a017aefe7 | findingaids/__init__.py | findingaids/__init__.py | Python |
<|file_sep|>original/tests/ui/assertions_on_constants.rs
assert!(true);
assert!(false);
assert!(true, "true message");
assert!(false, "false message");
let msg = "panic message";
assert!(false, msg.to_uppercase());
const B: bool = true;
assert!(B);
const C: bool = false;
asser... | assert!(false, "false message");
let msg = "panic message";
assert!(false, msg.to_uppercase());
const B: bool = true;
assert!(B);
const C: bool = false;
assert!(C);
assert!(C, "C message");
debug_assert!(true);
// Don't lint this, since there is no better way for expressing "... | <|file_sep|>original/tests/ui/assertions_on_constants.rs
assert!(true);
assert!(false);
assert!(true, "true message");
assert!(false, "false message");
let msg = "panic message";
assert!(false, msg.to_uppercase());
const B: bool = true;
assert!(B);
const C: bool = false;
asser... | 38ab1a616631944e8cef21c9441e2ef2ffa3a594 | tests/ui/assertions_on_constants.rs | tests/ui/assertions_on_constants.rs | Rust |
<|file_sep|>original/setup.py
version=multilingual_survey.__version__,
packages=find_packages(),
include_package_data=True,
license='BSD License', # example license
description='A simple Django app to conduct Web-based multilingual surveys.',
long_description=README,
url='https://github.com... | version=multilingual_survey.__version__,
packages=find_packages(),
include_package_data=True,
license='BSD License', # example license
description='A simple Django app to conduct Web-based multilingual surveys.',
long_description=README,
url='https://github.com/diadzine/django-multilingual-... | <|file_sep|>original/setup.py
version=multilingual_survey.__version__,
packages=find_packages(),
include_package_data=True,
license='BSD License', # example license
description='A simple Django app to conduct Web-based multilingual surveys.',
long_description=README,
url='https://github.com... | 9c9a2a36a5abbd166b9f67a6927447c14d2264ca | setup.py | setup.py | Python |
<|file_sep|>original/README.md
## Installation
Sofa uses [Phantom.js](http://phantomjs.org/) so you have to install it first if you did not do it before.
1. Get sources. You can use `git clone`, download button or any other method.
2. Install dependencies using `npm install`.
3. Build the sources using `npm run build... | 2. Install dependencies using `npm install`.
3. Build the sources using `npm run build`
4. Copy `configs/default_config.yml` to `configs/config.yml` and fill it with
your own values.
5. Run the application using `node dist/index.js`
## Start with the system
You may want to run the application automatically with the ... | <|file_sep|>original/README.md
## Installation
Sofa uses [Phantom.js](http://phantomjs.org/) so you have to install it first if you did not do it before.
1. Get sources. You can use `git clone`, download button or any other method.
2. Install dependencies using `npm install`.
3. Build the sources using `npm run build... | c190cf55658fb08de89fc8b91738ea878c31116f | README.md | README.md | Markdown |
<|file_sep|>README.md.diff
original:
updated:
### Installation
The easiest way to get simple-jsdom is through npm.
`npm i simple-jsdom`
### Getting Started
To modify the global namespace, run:
`require('simple-jsdom').install();`
<|file_sep|>README.md.diff
original:
JSDom has a lot of features, but I use a very ... | this bare bones JSDom configuration. Require this in and your tests should Just Work©.
You should, for instance, be able to use most (all?) of the jQuery API after you've included this.
### Versioning
This library intentionally depends on an old version of JSDom, v3.0, as this is the last version
of JSDom to support... | <|file_sep|>README.md.diff
original:
updated:
### Installation
The easiest way to get simple-jsdom is through npm.
`npm i simple-jsdom`
### Getting Started
To modify the global namespace, run:
`require('simple-jsdom').install();`
<|file_sep|>README.md.diff
original:
JSDom has a lot of features, but I use a very ... | efa39250216471367b1c95ac470cb438878419bb | README.md | README.md | Markdown |
<|file_sep|>original/xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java
<|file_sep|>current/xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java
<|file_sep|>updated/xwiki-platform-web/wysiwyg/src/test... | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | <|file_sep|>original/xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java
<|file_sep|>current/xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java
<|file_sep|>updated/xwiki-platform-web/wysiwyg/src/test... | 8b0bd241b1e9924b2575e457e5bd91774bc134dc | xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java | xwiki-platform-web/wysiwyg/src/test/java/com/xpn/xwiki/wysiwyg/client/dom/internal/ie/MockNativeSelection.java | Java |
<|file_sep|>original/CHANGELOG.md
# CHANGELOG
# Version 1.1.0
+ Fixed issue #3 by @ncpope, for newly created stores (after December 2017) not accepting GET body
# Version 1.0.0
+ Basic API code implemented
+ Tests completed with full coverage
<|file_sep|>current/CHANGELOG.md
# CHANGELOG
# Version 1.1.0
+ Fixed is... | # CHANGELOG
# Version 1.0.1
+ Fixed issue #3 by @ncpope, for newly created stores (after December 2017) not accepting GET body
# Version 1.0.0
+ Basic API code implemented
+ Tests completed with full coverage | <|file_sep|>original/CHANGELOG.md
# CHANGELOG
# Version 1.1.0
+ Fixed issue #3 by @ncpope, for newly created stores (after December 2017) not accepting GET body
# Version 1.0.0
+ Basic API code implemented
+ Tests completed with full coverage
<|file_sep|>current/CHANGELOG.md
# CHANGELOG
# Version 1.1.0
+ Fixed is... | 6a8e6d009f9302e8fd99993056fb7f8b7c336a9d | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/prompt_toolkit/__init__.py
prompt_toolkit
==============
Author: Jonathan Slenders
Description: prompt_toolkit is a Library for building powerful interactive
command lines in Python. It can be a replacement for GNU
readline, but it can be much more than that.
See the e... | prompt_toolkit
==============
Author: Jonathan Slenders
Description: prompt_toolkit is a Library for building powerful interactive
command lines in Python. It can be a replacement for GNU
readline, but it can be much more than that.
See the examples directory to learn about the usage.
Pro... | <|file_sep|>original/prompt_toolkit/__init__.py
prompt_toolkit
==============
Author: Jonathan Slenders
Description: prompt_toolkit is a Library for building powerful interactive
command lines in Python. It can be a replacement for GNU
readline, but it can be much more than that.
See the e... | 094b16a8088c8e7f8012465984c53e87e6e61eac | prompt_toolkit/__init__.py | prompt_toolkit/__init__.py | Python |
<|file_sep|>build.xml.diff
original:
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p {ssh.port} 'cd ${project.root}; git pull origin master'" />
updated:
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; g... | </target>
<target hidden="true" name="git-pull">
<echo message="Pull changes from origin" />
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; git pull origin master'" />
</target>
<target hidden="true" name="composer-ins... | <|file_sep|>build.xml.diff
original:
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p {ssh.port} 'cd ${project.root}; git pull origin master'" />
updated:
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; g... | 4d48568ba3084168c66623a0c6b2a102282c3fbc | build.xml | build.xml | XML |
<|file_sep|>original/create-build-in-docker.sh
<|file_sep|>current/create-build-in-docker.sh
<|file_sep|>updated/create-build-in-docker.sh | #!/bin/bash
# docker build . -f Dockerfile-build -t monstache-build
docker build . -f Dockerfile-build-from-scratch -t monstache-build
docker run --rm -d monstache-build tail -f /go/src/app/monstache.go
CONTAINER_ID=$(docker ps -l -q)
if [ -d docker-build ] ; then
rm -r docker-build
fi
docker cp "$CONTAINER_ID":/... | <|file_sep|>original/create-build-in-docker.sh
<|file_sep|>current/create-build-in-docker.sh
<|file_sep|>updated/create-build-in-docker.sh
#!/bin/bash
# docker build . -f Dockerfile-build -t monstache-build
docker build . -f Dockerfile-build-from-scratch -t monstache-build
docker run --rm -d monstache-build tail -f... | 47e516cbe3971481fdf78ed227e4e45a0c886fe8 | create-build-in-docker.sh | create-build-in-docker.sh | Shell |
<|file_sep|>original/requirements.txt
Pillow==4.2.1
beautifulsoup4==4.6.0
lxml==4.1.1
<|file_sep|>current/requirements.txt
Pillow==4.2.1
beautifulsoup4==4.6.0
lxml==4.1.1
<|file_sep|>updated/requirements.txt | Pillow==6.2.0
beautifulsoup4==4.6.0
lxml==4.1.1 | <|file_sep|>original/requirements.txt
Pillow==4.2.1
beautifulsoup4==4.6.0
lxml==4.1.1
<|file_sep|>current/requirements.txt
Pillow==4.2.1
beautifulsoup4==4.6.0
lxml==4.1.1
<|file_sep|>updated/requirements.txt
Pillow==6.2.0
beautifulsoup4==4.6.0
lxml==4.1.1 | e4fa4767f0e41bf3d3f956c5369eddae6af76899 | requirements.txt | requirements.txt | Text |
<|file_sep|>config.pri.diff
original:
updated:
MALIIT_PLUGINS_DATA_DIR=$$system(pkg-config --variable pluginsdatadir MeegoImFramework)
<|file_sep|>original/config.pri
# Linker optimization for release build
QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
# Compiler warnings are error if the build type is debug
QMAKE_CXXFLAG... | # Linker optimization for release build
QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
# Compiler warnings are error if the build type is debug
QMAKE_CXXFLAGS_DEBUG+=-Werror
enable-legacy {
MALIIT_PLUGINS_DIR=$$system(pkg-config --variable pluginsdir MeegoImFramework)
MALIIT_PLUGINS_DATA_DIR=$$system(pkg-config --varia... | <|file_sep|>config.pri.diff
original:
updated:
MALIIT_PLUGINS_DATA_DIR=$$system(pkg-config --variable pluginsdatadir MeegoImFramework)
<|file_sep|>original/config.pri
# Linker optimization for release build
QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
# Compiler warnings are error if the build type is debug
QMAKE_CXXFLAG... | 9834dbc20a7c2f1d7f8cd2ca5fab739d2e9a0a6e | config.pri | config.pri | QMake |
<|file_sep|>original/website/reports/query_month_report.php
<|file_sep|>current/website/reports/query_month_report.php
<|file_sep|>updated/website/reports/query_month_report.php | <?php
include_once 'db_queries.php';
if(!isset($_REQUEST['region'])) {
$rregion = '';
} else {
$rregion = $_REQUEST['region'];
}
if($_REQUEST["report"] == "total") {
echo json_encode(getAllReports());
} else {
echo json_encode(getReport($_REQUEST["report"], $rregion));
}
?> | <|file_sep|>original/website/reports/query_month_report.php
<|file_sep|>current/website/reports/query_month_report.php
<|file_sep|>updated/website/reports/query_month_report.php
<?php
include_once 'db_queries.php';
if(!isset($_REQUEST['region'])) {
$rregion = '';
} else {
$rregion = $_REQUEST['region'];
}
if($_... | 4003bacb24b1e1b5ca9ec58a32a8c0b566927c3b | website/reports/query_month_report.php | website/reports/query_month_report.php | PHP |
<|file_sep|>app/views/main.scala.html.diff
original:
<div style="background-color: #0a4b5c; border: 1px solid black; color: white" class="stats-sidebar large-3 columns">
<form>
updated:
<div style="background-color: #0a4b5c; border: 1px solid black; color: white; padding-bottom: 1em; text-align: center"... | </div>
</div>
<div class="row">
<div class="large-12 columns">
<input type="checkbox" name="fall" value="1" id="fall-checkbox" checked="checked"><label for="fall-checkbox">Fall</label>
<input type="checkbox" name="spring" va... | <|file_sep|>app/views/main.scala.html.diff
original:
<div style="background-color: #0a4b5c; border: 1px solid black; color: white" class="stats-sidebar large-3 columns">
<form>
updated:
<div style="background-color: #0a4b5c; border: 1px solid black; color: white; padding-bottom: 1em; text-align: center"... | 073f67fb0f821cec7ea366b30224c269c6b5964a | app/views/main.scala.html | app/views/main.scala.html | HTML |
<|file_sep|>original/templatetags/uuid.py
<|file_sep|>current/templatetags/uuid.py
<|file_sep|>updated/templatetags/uuid.py | # -*- coding: utf-8 -*-
#
# File: uuid.py
# Author: Kenson Man <kenosn.idv.hk@gmail.com>
# Desc: The template-tag used to generate a uuid into output.
# Sample:
# {%uuid%} # Generate a UUID and output
# {%uuid as abc%} # Generate a UUID and store into abc
#
from django.template import Library, Node, Templ... | <|file_sep|>original/templatetags/uuid.py
<|file_sep|>current/templatetags/uuid.py
<|file_sep|>updated/templatetags/uuid.py
# -*- coding: utf-8 -*-
#
# File: uuid.py
# Author: Kenson Man <kenosn.idv.hk@gmail.com>
# Desc: The template-tag used to generate a uuid into output.
# Sample:
# {%uuid%} # Generate ... | 0979da2fa3fdb59029c1e1e9f12a84388ab4f711 | templatetags/uuid.py | templatetags/uuid.py | Python |
<|file_sep|>original/lib/components/icons/location-icon.js
import React, { Component, PropTypes } from 'react'
export default class LocationIcon extends Component {
static propTypes = {
type: PropTypes.string,
className: PropTypes.string,
style: PropTypes.string
}
render () {
const { type, class... | import React, { Component, PropTypes } from 'react'
export default class LocationIcon extends Component {
static propTypes = {
type: PropTypes.string,
className: PropTypes.string,
style: PropTypes.object
}
render () {
const { type, className, style } = this.props
// from: #f5a81c
// to:... | <|file_sep|>original/lib/components/icons/location-icon.js
import React, { Component, PropTypes } from 'react'
export default class LocationIcon extends Component {
static propTypes = {
type: PropTypes.string,
className: PropTypes.string,
style: PropTypes.string
}
render () {
const { type, class... | 4021c0eb1e7f6df1f581619a3881930e7f5a4496 | lib/components/icons/location-icon.js | lib/components/icons/location-icon.js | JavaScript |
<|file_sep|>original/composer.json
"license": "Apache-2.0",
"authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"ext-calendar": "*",
"ext-date": "*",
"... | "license": "Apache-2.0",
"authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"ext-calendar": "*",
"ext-date": "*",
"php": "^7.2"
},
"require-de... | <|file_sep|>original/composer.json
"license": "Apache-2.0",
"authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"ext-calendar": "*",
"ext-date": "*",
"... | fb51c400810d2739d1c647dda87bf1d2c0a74860 | composer.json | composer.json | JSON |
<|file_sep|>.travis.yml.diff
original:
updated:
- ree
<|file_sep|>.travis.yml.diff
original:
updated:
- 1.9.3
- 2.0.0
- 2.1.0
<|file_sep|>.travis.yml.diff
original:
- rvm: jruby-19mode
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- jruby-18mode
- jruby-19mode
- rbx-2.2
... | language: ruby
rvm:
- ree
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
- jruby-18mode
- jruby-19mode
- rbx-2.2
- jruby-head
before_install:
- ./fix-bundler.sh
matrix:
allow_failures:
- rvm: jruby-18mode
- rvm: jruby-head | <|file_sep|>.travis.yml.diff
original:
updated:
- ree
<|file_sep|>.travis.yml.diff
original:
updated:
- 1.9.3
- 2.0.0
- 2.1.0
<|file_sep|>.travis.yml.diff
original:
- rvm: jruby-19mode
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- jruby-18mode
- jruby-19mode
- rbx-2.2
... | 5d250a66ba6db43650edec197e6762c8ca975c2d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.rst
Or by hand, adding the plugin to the packages section in your lektorproject file::
[packages]
lektor-htmlmin = 0.3
Usage
#####
To enable minification, pass the `htmlmin` flag when starting the development
server or when running a build::
lektor build -O my_build_folder -... | Or by hand, adding the plugin to the packages section in your lektorproject file::
[packages]
lektor-htmlmin = 0.3
Usage
#####
To enable minification, pass the `htmlmin` flag when starting the development
server or when running a build::
lektor build -O my_build_folder -f htmlmin
When the flag is pre... | <|file_sep|>original/README.rst
Or by hand, adding the plugin to the packages section in your lektorproject file::
[packages]
lektor-htmlmin = 0.3
Usage
#####
To enable minification, pass the `htmlmin` flag when starting the development
server or when running a build::
lektor build -O my_build_folder -... | 0551c2c9ff8443eb8ccbf2b0487c4a4ab355c896 | README.rst | README.rst | reStructuredText |
<|file_sep|>gulp/tasks/copy.js.diff
original:
var config = require('../config').copy
updated:
var size = require('gulp-size');
var config = require('../config').copy;
<|file_sep|>gulp/tasks/copy.js.diff
original:
updated:
var title = paths[2] || '';
<|file_sep|>original/gulp/tasks/copy.js
var gulp = require('gulp');... | var gulp = require('gulp');
var size = require('gulp-size');
var config = require('../config').copy;
gulp.task('copy', function() {
var copyFile = function(paths) {
var sourcePath = paths[0];
var destPath = paths[1];
var title = paths[2] || '';
return gulp.src(sourcePath)
.pipe(gulp.dest(destPath))
.pi... | <|file_sep|>gulp/tasks/copy.js.diff
original:
var config = require('../config').copy
updated:
var size = require('gulp-size');
var config = require('../config').copy;
<|file_sep|>gulp/tasks/copy.js.diff
original:
updated:
var title = paths[2] || '';
<|file_sep|>original/gulp/tasks/copy.js
var gulp = require('gulp');... | 6b0cc37d876a68b6903bf62ba53f578f71e14917 | gulp/tasks/copy.js | gulp/tasks/copy.js | JavaScript |
<|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
$helperNamespace = 'Microsoft.Windows.PowerShell.ScriptAnalyzer';
updated:
<|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
updated:
$digraph.AddVertex('v5');
<|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
updated:
$digra... |
$digraph.AddEdge('v1', 'v2');
$digraph.AddEdge('v1', 'v5');
$digraph.AddEdge('v2', 'v4');
It "correctly adds the vertices" {
$digraph.NumVertices | Should Be 5
}
It "correctly adds the edges" {
$digraph.GetNumNeighbors('v1') | Should Be 2
... | <|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
$helperNamespace = 'Microsoft.Windows.PowerShell.ScriptAnalyzer';
updated:
<|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
updated:
$digraph.AddVertex('v5');
<|file_sep|>Tests/Engine/Helpers.tests.ps1.diff
original:
updated:
$digra... | 6363d4c4a8cd5d2c4dde38bcfad7f5e1c92a0247 | Tests/Engine/Helpers.tests.ps1 | Tests/Engine/Helpers.tests.ps1 | PowerShell |
<|file_sep|>original/requirements.txt
django-compressor==2.1.1
django-debug-toolbar==1.8
django-querycount==0.6.0
freezegun==0.3.9
funcy==1.7.5
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
python-dateutil==2.6.0
pytz==2017.2
raven==6.0.0
rcssmin==1.0.6
redis==2.10.5
requests==2.14.2
rjsm... | django-compressor==2.1.1
django-debug-toolbar==1.8
django-querycount==0.6.0
freezegun==0.3.9
funcy==1.7.5
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
python-dateutil==2.6.0
pytz==2017.2
raven==6.1.0
rcssmin==1.0.6
redis==2.10.5
requests==2.14.2
rjsmin==1.0.12
six==1.10.0
sqlparse==0.2.3... | <|file_sep|>original/requirements.txt
django-compressor==2.1.1
django-debug-toolbar==1.8
django-querycount==0.6.0
freezegun==0.3.9
funcy==1.7.5
packaging==16.8
psycopg2==2.7.1
PyJWT==1.5.0
pyparsing==2.2.0
PySocks==1.6.7
python-dateutil==2.6.0
pytz==2017.2
raven==6.0.0
rcssmin==1.0.6
redis==2.10.5
requests==2.14.2
rjsm... | f42da94423d4d98fcd7dba8a7fceea6d45a324bc | requirements.txt | requirements.txt | Text |
<|file_sep|>original/lib/commentator/engine.rb
module Commentator
class Engine < ::Rails::Engine
isolate_namespace Commentator
end
end
<|file_sep|>current/lib/commentator/engine.rb
module Commentator
class Engine < ::Rails::Engine
isolate_namespace Commentator
end
end
<|file_sep|>updated/lib/commentator... | module Commentator
class Engine < ::Rails::Engine
isolate_namespace Commentator
initializer 'commentator' do |app|
ActiveSupport.on_load(:action_view) do
require "commentator/comments_helper"
class ActionView::Base
include Commentator::CommentsHelper
end
end
e... | <|file_sep|>original/lib/commentator/engine.rb
module Commentator
class Engine < ::Rails::Engine
isolate_namespace Commentator
end
end
<|file_sep|>current/lib/commentator/engine.rb
module Commentator
class Engine < ::Rails::Engine
isolate_namespace Commentator
end
end
<|file_sep|>updated/lib/commentator... | d0e19b1cfa7b378e6954b474acea5f0892a3f665 | lib/commentator/engine.rb | lib/commentator/engine.rb | Ruby |
<|file_sep|>original/docs/requirements.txt
sphinx
docutils==0.17
git+http://github.com/SymbiFlow/sphinx_materialdesign_theme.git@master#egg=sphinx_symbiflow_theme
sphinx-tabs
sphinx-jinja
<|file_sep|>current/docs/requirements.txt
sphinx
docutils==0.17
git+http://github.com/SymbiFlow/sphinx_materialdesign_theme.git@mast... | sphinx
docutils==0.17
git+https://github.com/SymbiFlow/sphinx_symbiflow_theme.git#egg=sphinx-symbiflow-theme
sphinx-tabs
sphinx-jinja | <|file_sep|>original/docs/requirements.txt
sphinx
docutils==0.17
git+http://github.com/SymbiFlow/sphinx_materialdesign_theme.git@master#egg=sphinx_symbiflow_theme
sphinx-tabs
sphinx-jinja
<|file_sep|>current/docs/requirements.txt
sphinx
docutils==0.17
git+http://github.com/SymbiFlow/sphinx_materialdesign_theme.git@mast... | a7e0a66dcf7e061326ae46a5fe53540ccffe4a3d | docs/requirements.txt | docs/requirements.txt | Text |
<|file_sep|>original/karma.conf.js
const base = require('skatejs-build/karma.conf');
module.exports = function (config) {
base(config);
// Remove all explicit IE definitions.
config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));
// Only test IE latest.
config.browsers.push('int... | const base = require('skatejs-build/karma.conf');
module.exports = function (config) {
base(config);
// Remove all explicit IE definitions.
config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));
// Only test IE latest.
config.browsers.push('internet_explorer_11');
// Shims fo... | <|file_sep|>original/karma.conf.js
const base = require('skatejs-build/karma.conf');
module.exports = function (config) {
base(config);
// Remove all explicit IE definitions.
config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));
// Only test IE latest.
config.browsers.push('int... | 6468e300b31dc2b1bf87e35f11a77952825a9e75 | karma.conf.js | karma.conf.js | JavaScript |
<|file_sep|>original/facades/PC/launchScripts/run_linux.sh
#!/bin/bash
cd "$(dirname "$0")"
java -Xms128m -Xmx1536m -jar libs/Terasology.jar
# Alternatively use our Launcher from: https://github.com/MovingBlocks/TerasologyLauncher/releases
<|file_sep|>current/facades/PC/launchScripts/run_linux.sh
#!/bin/bash
cd "$(dir... | #!/bin/bash
cd "$(dirname "$0")"
java -Xms128m -Xmx1536m -jar libs/Terasology.jar "$@"
# Alternatively use our Launcher from: https://github.com/MovingBlocks/TerasologyLauncher/releases | <|file_sep|>original/facades/PC/launchScripts/run_linux.sh
#!/bin/bash
cd "$(dirname "$0")"
java -Xms128m -Xmx1536m -jar libs/Terasology.jar
# Alternatively use our Launcher from: https://github.com/MovingBlocks/TerasologyLauncher/releases
<|file_sep|>current/facades/PC/launchScripts/run_linux.sh
#!/bin/bash
cd "$(dir... | d2cd0476e5f07b50abbaa3b1ccb7de3f1767f530 | facades/PC/launchScripts/run_linux.sh | facades/PC/launchScripts/run_linux.sh | Shell |
<|file_sep|>original/zephir.bat
@echo off
REM This file is part of the Zephir.
REM
REM (c) Zephir Team <team@zephir-lang.com>
REM
REM For the full copyright and license information, please view the LICENSE
REM file that was distributed with this source code.
cls
if "%PHP_PEAR_PHP_BIN%" neq "" (
set PHPBIN=%PHP_PEAR_P... | @echo off
rem This file is part of the Zephir.
rem
rem (c) Zephir Team <team@zephir-lang.com>
rem
rem For the full copyright and license information, please view the LICENSE
rem file that was distributed with this source code.
cls
if "%PHP_PEAR_PHP_BIN%" neq "" (
set PHPBIN=%PHP_PEAR_PHP_BIN%
) else set PHPBIN=php
S... | <|file_sep|>original/zephir.bat
@echo off
REM This file is part of the Zephir.
REM
REM (c) Zephir Team <team@zephir-lang.com>
REM
REM For the full copyright and license information, please view the LICENSE
REM file that was distributed with this source code.
cls
if "%PHP_PEAR_PHP_BIN%" neq "" (
set PHPBIN=%PHP_PEAR_P... | a7b8470883772d1014927ec2b0e22f7c07521db7 | zephir.bat | zephir.bat | Batchfile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.