prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/Casks/zendstudio.rb
cask :v1 => 'zendstudio' do
version '12.0.1'
sha256 'e8534e6b550e075b5da42c5b1789e82b3c9e04c739f055c6980783742f6e1160'
url "http://downloads.zend.com/studio-eclipse/#{version}/ZendStudio-#{version}-macosx.cocoa.x86_64.dmg"
name 'Zend Studio'
homepage 'https://www.zend... | cask :v1 => 'zendstudio' do
version '13.0.0'
sha256 '3ed2492801c54fd7b1ec225d4824fb7609a674b35a5d8f437fdf3218cfd98067'
url "http://downloads.zend.com/studio-eclipse/#{version}/ZendStudio-#{version}-macosx.cocoa.x86_64.dmg"
name 'Zend Studio'
homepage 'https://www.zend.com/en/products/studio/'
license :unkn... | <|file_sep|>original/Casks/zendstudio.rb
cask :v1 => 'zendstudio' do
version '12.0.1'
sha256 'e8534e6b550e075b5da42c5b1789e82b3c9e04c739f055c6980783742f6e1160'
url "http://downloads.zend.com/studio-eclipse/#{version}/ZendStudio-#{version}-macosx.cocoa.x86_64.dmg"
name 'Zend Studio'
homepage 'https://www.zend... | 33afaae2ee786d3fb7c9cfbfd76631a6fd444b07 | Casks/zendstudio.rb | Casks/zendstudio.rb | Ruby |
<|file_sep|>lib/tty/prompt/reader/mode.rb.diff
original:
if is_on || @input.tty?
updated:
if is_on || !@input.tty?
<|file_sep|>original/lib/tty/prompt/reader/mode.rb
else
@input.noecho(&block)
end
end
# Use raw mode in the given block
#
... | else
@input.noecho(&block)
end
end
# Use raw mode in the given block
#
# @param [Boolean] is_on
#
# @api public
def raw(is_on = true, &block)
if is_on && @input.tty?
@input.raw(&block)
else
... | <|file_sep|>lib/tty/prompt/reader/mode.rb.diff
original:
if is_on || @input.tty?
updated:
if is_on || !@input.tty?
<|file_sep|>original/lib/tty/prompt/reader/mode.rb
else
@input.noecho(&block)
end
end
# Use raw mode in the given block
#
... | 6c9eb2f22316f251c072ee30a695d7a31a254160 | lib/tty/prompt/reader/mode.rb | lib/tty/prompt/reader/mode.rb | Ruby |
<|file_sep|>original/webpack/server/partials/plugins.ts
import * as webpack from 'webpack'
import * as Options from 'webpack/models/Options'
export const partial = (c: Options.Interface): webpack.Configuration => ({
plugins: [
// Ignore all files on the frontend.
new webpack.IgnorePlugin(/\.css$/),
new ... | import * as webpack from 'webpack'
import * as Options from 'webpack/models/Options'
export const partial = (c: Options.Interface): webpack.Configuration => ({
plugins: [
// Ignore all files on the frontend.
new webpack.IgnorePlugin(/\.css$/),
new webpack.NormalModuleReplacementPlugin(/\.css$/, 'node-noo... | <|file_sep|>original/webpack/server/partials/plugins.ts
import * as webpack from 'webpack'
import * as Options from 'webpack/models/Options'
export const partial = (c: Options.Interface): webpack.Configuration => ({
plugins: [
// Ignore all files on the frontend.
new webpack.IgnorePlugin(/\.css$/),
new ... | c9c7e8c7b19e0a8d73cd61beb9169d270913b102 | webpack/server/partials/plugins.ts | webpack/server/partials/plugins.ts | TypeScript |
<|file_sep|>original/spec/tags/19/ruby/core/rational/Rational_tags.txt
fails:Rational() raises a TypeError if the arguments are not Integers
fails:Rational() passed two arguments returns a Rational instance
fails:Rational() passed two arguments sets the numerator to the first argument
fails:Rational() passed two argume... | fails:Rational() raises a TypeError if the arguments are not Integers
fails:Rational() passed two arguments sets the numerator to the first argument
fails:Rational() passed two arguments sets the denominator to the second argument | <|file_sep|>original/spec/tags/19/ruby/core/rational/Rational_tags.txt
fails:Rational() raises a TypeError if the arguments are not Integers
fails:Rational() passed two arguments returns a Rational instance
fails:Rational() passed two arguments sets the numerator to the first argument
fails:Rational() passed two argume... | 561042f787cd4a7e8ff49030292632935007e3c1 | spec/tags/19/ruby/core/rational/Rational_tags.txt | spec/tags/19/ruby/core/rational/Rational_tags.txt | Text |
<|file_sep|>original/ansible/roles/cloud-init/tasks/config.yml
path: /etc/sudoers
regexp: '^Defaults\t!requiretty$'
insertafter: '^Defaults\s+env_reset$'
line: 'Defaults !requiretty'
validate: 'visudo -cf %s'
- name: Get cloud-init version
shell: "cloud-init --version 2>&1 | awk '{print $NF}'"
... | path: /etc/sudoers
regexp: '^Defaults\t!requiretty$'
insertafter: '^Defaults\s+env_reset$'
line: 'Defaults !requiretty'
validate: 'visudo -cf %s'
- name: Get cloud-init version
shell: "cloud-init --version 2>&1 | awk '{print $NF}'"
register: cloudinit_version
- debug:
msg: "cloud-init vers... | <|file_sep|>original/ansible/roles/cloud-init/tasks/config.yml
path: /etc/sudoers
regexp: '^Defaults\t!requiretty$'
insertafter: '^Defaults\s+env_reset$'
line: 'Defaults !requiretty'
validate: 'visudo -cf %s'
- name: Get cloud-init version
shell: "cloud-init --version 2>&1 | awk '{print $NF}'"
... | e142b6f6730f30c91133a9de56051510b5068ff9 | ansible/roles/cloud-init/tasks/config.yml | ansible/roles/cloud-init/tasks/config.yml | YAML |
<|file_sep|>original/config/routes.rb
member do
get :join
get :leave
end
resources :deployed_applications, only: [:new, :create, :index], controller: 'brigades/deployed_applications'
end
resources :locations do
collection do
post :find
end
resources :deployed_application... | get :leave
end
resources :deployed_applications, only: [:new, :create, :index], controller: 'brigades/deployed_applications'
end
resources :locations do
collection do
post :find
end
resources :deployed_applications, only: [:new, :create, :index], controller: 'locations/deployed_ap... | <|file_sep|>original/config/routes.rb
member do
get :join
get :leave
end
resources :deployed_applications, only: [:new, :create, :index], controller: 'brigades/deployed_applications'
end
resources :locations do
collection do
post :find
end
resources :deployed_application... | 3cf574b17c06be45546d9423cf0d510564bbb23a | config/routes.rb | config/routes.rb | Ruby |
<|file_sep|>original/package.json
"javascript",
"library",
"pub-sub",
"pubsub",
"communication"
],
"private": false,
"license": "MIT",
"devDependencies": {
"chai": "^3.0.0",
"grunt": "^0.4.5",
"grunt-cli": "^1.2.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": ... | "library",
"pub-sub",
"pubsub",
"communication"
],
"private": false,
"license": "MIT",
"devDependencies": {
"chai": "^3.0.0",
"grunt": "^0.4.5",
"grunt-cli": "^1.2.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"... | <|file_sep|>original/package.json
"javascript",
"library",
"pub-sub",
"pubsub",
"communication"
],
"private": false,
"license": "MIT",
"devDependencies": {
"chai": "^3.0.0",
"grunt": "^0.4.5",
"grunt-cli": "^1.2.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": ... | 1d9b0d92365f476bf38d5483061d4d882cdb29cf | package.json | package.json | JSON |
<|file_sep|>original/.dependabot/config.yml
default_assignees:
- sue445
allowed_updates:
- match:
# Disable. Only top-level dependencies (and security patches for subdependencies)
update_type: "all"
automerged_updates:
- match:
dependency_type: "development"... | default_assignees:
- sue445
allowed_updates:
- match:
# Disable. Only top-level dependencies (and security patches for subdependencies)
update_type: "all"
automerged_updates:
- match:
dependency_type: "development"
update_type: "all"
- match:... | <|file_sep|>original/.dependabot/config.yml
default_assignees:
- sue445
allowed_updates:
- match:
# Disable. Only top-level dependencies (and security patches for subdependencies)
update_type: "all"
automerged_updates:
- match:
dependency_type: "development"... | 30382d2adc7dbdc522df13030aaf557e384d35c6 | .dependabot/config.yml | .dependabot/config.yml | YAML |
<|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
listen:->
updated:
start:->
<|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
updated:
@tick()
<|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
updated:
@start() unless @run... |
else
[type, eventId] = res.event.eventId.split '-'
if res.event.percentage < 100
activeListeners.push { type, eventId }
log "#{res.event.eventId}", res.event
computeController.emit "public-#{eventId}", res.event
computeController.emit "#{res.eve... | <|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
listen:->
updated:
start:->
<|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
updated:
@tick()
<|file_sep|>client/Main/providers/computeeventlistener.coffee.diff
original:
updated:
@start() unless @run... | 038b45f375c9d8fcd34d705b6fcdf2a4d1f792e4 | client/Main/providers/computeeventlistener.coffee | client/Main/providers/computeeventlistener.coffee | CoffeeScript |
<|file_sep|>original/Cargo.toml
[package]
name = "secp256k1"
version = "0.6.1"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-secp256k1/"
repository = "https://github.com/apoelstra/rust-sec... | [package]
name = "secp256k1"
version = "0.6.2"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-secp256k1/"
repository = "https://github.com/apoelstra/rust-secp256k1/"
documentation = "https:... | <|file_sep|>original/Cargo.toml
[package]
name = "secp256k1"
version = "0.6.1"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-secp256k1/"
repository = "https://github.com/apoelstra/rust-sec... | c1951d60259219e8682bf7ab5622632e830f4e78 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>README.rst.diff
original:
Licence
updated:
License
<|file_sep|>original/README.rst
A simple reaction-based Discord poll bot
Usage
-----
Installation
------------
Requirements
^^^^^^^^^^^^
Compatibility
-------------
Licence
-------
Authors
-------
Poll Bot was written by `Benjamin Mintz <bmintz@proto... | Usage
-----
Installation
------------
Requirements
^^^^^^^^^^^^
Compatibility
-------------
License
-------
Until I decide on a license, please feel free to make pull requests on this repository.
Authors
-------
Poll Bot was written by `Benjamin Mintz <bmintz@protonmail.com>`_. | <|file_sep|>README.rst.diff
original:
Licence
updated:
License
<|file_sep|>original/README.rst
A simple reaction-based Discord poll bot
Usage
-----
Installation
------------
Requirements
^^^^^^^^^^^^
Compatibility
-------------
Licence
-------
Authors
-------
Poll Bot was written by `Benjamin Mintz <bmintz@proto... | cf5dce3322668d0a10ce52830c665e5d3cf64bbc | README.rst | README.rst | reStructuredText |
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>README.md.diff
original:
updated:
```
<|file_sep|>README.md.diff
original:
updated:
```
<|file_sep|>original/README.md
Usage
-----
Usage is the same as [helmet](https://github.com/helmetjs/helmet).
Example
-------
```js
var koa = require('koa');
var helm... |
Example
-------
```js
var koa = require('koa');
var helmet = require('koa-helmet');
var app = koa();
app.use(helmet());
app.use(function *(){
this.body = 'Hello World';
});
app.listen(4000);
```
Versioning
----------
koa-helmet pins to helmet's major version (koa-helmet 0.x locks to helmet 0.x). | <|file_sep|>README.md.diff
original:
updated:
<|file_sep|>README.md.diff
original:
updated:
```
<|file_sep|>README.md.diff
original:
updated:
```
<|file_sep|>original/README.md
Usage
-----
Usage is the same as [helmet](https://github.com/helmetjs/helmet).
Example
-------
```js
var koa = require('koa');
var helm... | 7c035ea6016cf4f6985a7f3e6c378d3d50dd4cdb | README.md | README.md | Markdown |
<|file_sep|>original/src/main/java/com/corwinjv/forgetemplate/blocks/DummyWoodBlock.java
package com.corwinjv.forgetemplate.blocks;
import net.minecraft.block.material.Material;
/**
* Created by CorwinJV on 12/11/2016.
*/
public class DummyWoodBlock extends ModBlock {
DummyWoodBlock()
{
super(Materi... | package com.corwinjv.forgetemplate.blocks;
import net.minecraft.block.material.Material;
/**
* Created by CorwinJV on 12/11/2016.
*/
public class DummyWoodBlock extends ModBlock {
DummyWoodBlock()
{
super(Material.WOOD);
setHardness(2.0f);
}
} | <|file_sep|>original/src/main/java/com/corwinjv/forgetemplate/blocks/DummyWoodBlock.java
package com.corwinjv.forgetemplate.blocks;
import net.minecraft.block.material.Material;
/**
* Created by CorwinJV on 12/11/2016.
*/
public class DummyWoodBlock extends ModBlock {
DummyWoodBlock()
{
super(Materi... | 626521253a92e2bc1ec871e20519b66e0a8ade53 | src/main/java/com/corwinjv/forgetemplate/blocks/DummyWoodBlock.java | src/main/java/com/corwinjv/forgetemplate/blocks/DummyWoodBlock.java | Java |
<|file_sep|>original/requirements.txt
ansible==1.9.4
boto==2.45.0
click==6.7
tabulate==0.7.5
troposphere==1.9.2
sh==1.12.14
testinfra==1.6.5
paramiko==2.2.1
pytz
python-dateutil
<|file_sep|>current/requirements.txt
ansible==1.9.4
boto==2.45.0
click==6.7
tabulate==0.7.5
troposphere==1.9.2
sh==1.12.14
testinfra==1.6.5
pa... | ansible==2.8.6
boto==2.45.0
click==6.7
tabulate==0.7.5
troposphere==1.9.2
sh==1.12.14
testinfra==1.6.5
paramiko==2.2.1
pytz
python-dateutil | <|file_sep|>original/requirements.txt
ansible==1.9.4
boto==2.45.0
click==6.7
tabulate==0.7.5
troposphere==1.9.2
sh==1.12.14
testinfra==1.6.5
paramiko==2.2.1
pytz
python-dateutil
<|file_sep|>current/requirements.txt
ansible==1.9.4
boto==2.45.0
click==6.7
tabulate==0.7.5
troposphere==1.9.2
sh==1.12.14
testinfra==1.6.5
pa... | c6485e224874f5534ef8e0096401430958659221 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/bower.json
{
"name": "isp",
"dependencies": {
"ember": "~2.4.3",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"bootstrap": "3.3.2",
"alpaca": "1.5.14",
"handlebars": "3.0.3",
"lodash": "~3.10.1",
"jquery"... | {
"name": "isp",
"dependencies": {
"ember": "~2.4.3",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"bootstrap": "3.3.2",
"handlebars": "3.0.3",
"lodash": "~3.10.1",
"jquery": "1.11.1",
"flag-icon-css": "^2.3.1",
"bcryptjs... | <|file_sep|>original/bower.json
{
"name": "isp",
"dependencies": {
"ember": "~2.4.3",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"bootstrap": "3.3.2",
"alpaca": "1.5.14",
"handlebars": "3.0.3",
"lodash": "~3.10.1",
"jquery"... | b80629d4a997aec406d9cb250e62b54ee35acb7c | bower.json | bower.json | JSON |
<|file_sep|>original/composer/recipes/install.rb
node[:deploy].each do |application, deploy|
script "install_composer" do
interpreter "bash"
user "root"
cwd "#{deploy[:deploy_to]}/current"
code <<-EOH
curl -s https://getcomposer.org/installer | php
php composer.phar install --no-dev --no-inter... | node[:deploy].each do |application, deploy|
script "install_composer" do
interpreter "bash"
user "root"
cwd "#{deploy[:deploy_to]}/current"
code <<-EOH
curl -s https://getcomposer.org/installer | php
php composer.phar install --no-dev --no-interaction --prefer-dist
EOH
only_if { ::File... | <|file_sep|>original/composer/recipes/install.rb
node[:deploy].each do |application, deploy|
script "install_composer" do
interpreter "bash"
user "root"
cwd "#{deploy[:deploy_to]}/current"
code <<-EOH
curl -s https://getcomposer.org/installer | php
php composer.phar install --no-dev --no-inter... | 648e441912c253469540e717a428d66ea9949445 | composer/recipes/install.rb | composer/recipes/install.rb | Ruby |
<|file_sep|>original/test_site/db/sequel_migrate/007_meetings.rb
class CreateMeetings < Sequel::Migration
def up
create_table :meetings do
primary_key :id
varchar :name, :size=>255
end
end
def down
drop_table :officers
end
end
<|file_sep|>current/test_site/db/sequel_migrate/007_meetings... | class CreateMeetings < Sequel::Migration
def up
create_table :meetings do
primary_key :id
varchar :name, :size=>255
end
end
def down
drop_table :meetings
end
end | <|file_sep|>original/test_site/db/sequel_migrate/007_meetings.rb
class CreateMeetings < Sequel::Migration
def up
create_table :meetings do
primary_key :id
varchar :name, :size=>255
end
end
def down
drop_table :officers
end
end
<|file_sep|>current/test_site/db/sequel_migrate/007_meetings... | e3f55c5b8518481d71b99bff7554a559b7ee39fc | test_site/db/sequel_migrate/007_meetings.rb | test_site/db/sequel_migrate/007_meetings.rb | Ruby |
<|file_sep|>original/run_daily.py
import sys
import os
import datetime
print "====================="
print str(datetime.datetime.now())+": the daily job has started"
print "Current directory is "+os.getcwd()
sys.path.append(os.getcwd())
import pyvalue.jobs as jobs
#jobs.update_sp500_yahoofinance_stock_quote()
jobs.up... | import sys
import os
import datetime
print "====================="
print str(datetime.datetime.now())+": the daily job has started"
print "Current directory is "+os.getcwd()
sys.path.append(os.getcwd())
import pyvalue.jobs as jobs
jobs.update_sp500_yahoofinance_stock_quote()
jobs.update_nasdaq_etf_yahoofinance_stock_... | <|file_sep|>original/run_daily.py
import sys
import os
import datetime
print "====================="
print str(datetime.datetime.now())+": the daily job has started"
print "Current directory is "+os.getcwd()
sys.path.append(os.getcwd())
import pyvalue.jobs as jobs
#jobs.update_sp500_yahoofinance_stock_quote()
jobs.up... | 6eed59360d6e2fabf1fe1d590449bce8a1c6af2e | run_daily.py | run_daily.py | Python |
<|file_sep|>original/proberk/go/proberk/main_test.go
import (
"testing"
assert "github.com/stretchr/testify/require"
"go.skia.org/infra/go/testutils"
"go.skia.org/infra/proberk/go/types"
)
func TestProbeSSL(t *testing.T) {
testutils.LargeTest(t)
probes := &types.Probe{
URLs: []string{
"https://skia.org",
... |
import (
"testing"
assert "github.com/stretchr/testify/require"
"go.skia.org/infra/go/testutils"
"go.skia.org/infra/proberk/go/types"
)
func TestProbeSSL(t *testing.T) {
t.Skip()
testutils.LargeTest(t)
probes := &types.Probe{
URLs: []string{
"https://skia.org",
"https://skia.org:443",
"https://35.2... | <|file_sep|>original/proberk/go/proberk/main_test.go
import (
"testing"
assert "github.com/stretchr/testify/require"
"go.skia.org/infra/go/testutils"
"go.skia.org/infra/proberk/go/types"
)
func TestProbeSSL(t *testing.T) {
testutils.LargeTest(t)
probes := &types.Probe{
URLs: []string{
"https://skia.org",
... | c41b31da262ee79bdfd833935c136a1c8e30cab5 | proberk/go/proberk/main_test.go | proberk/go/proberk/main_test.go | Go |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
before_install:
- go get github.com/mattn/goveralls
install:
- go get github.com/hackedd/dicebot
- go get github.com/hackedd/dicebot/cmd/dicebot
- go get -v .
- go get -v github.com/golang/lint/golint
script:
- diff ... | language: go
go:
- "1.10"
- "1.11"
- "1.12"
before_install:
- go get github.com/mattn/goveralls
install:
- go get github.com/hackedd/dicebot
- go get github.com/hackedd/dicebot/cmd/dicebot
- go get -v .
- go get -v github.com/golang/lint/golint
script:
- diff <(gofmt -s -d .) <(echo ... | <|file_sep|>original/.travis.yml
language: go
go:
- 1.6
- 1.7
- 1.8
before_install:
- go get github.com/mattn/goveralls
install:
- go get github.com/hackedd/dicebot
- go get github.com/hackedd/dicebot/cmd/dicebot
- go get -v .
- go get -v github.com/golang/lint/golint
script:
- diff ... | c99826b85e3d29d6383503fa0f20df962d1aa6c6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/scripts/contextual_data.sh
<|file_sep|>current/scripts/contextual_data.sh
<|file_sep|>updated/scripts/contextual_data.sh | #!/bin/bash
# Script to export all contextual data tables from Cassandra using the COPY command.
remote_host=kixi-dse00 # change to ssh config you use to log into a remote box
local_host=vagrant-box # change to ssh config for your local box
echo exporting data
ssh $remote_host << EOF
if [ -d "tmp_data" ]; then
... | <|file_sep|>original/scripts/contextual_data.sh
<|file_sep|>current/scripts/contextual_data.sh
<|file_sep|>updated/scripts/contextual_data.sh
#!/bin/bash
# Script to export all contextual data tables from Cassandra using the COPY command.
remote_host=kixi-dse00 # change to ssh config you use to log into a remote b... | c61f8def86184e339183da75fc0100db52191899 | scripts/contextual_data.sh | scripts/contextual_data.sh | Shell |
<|file_sep|>original/project/slacksync/management/commands/sync_slack_users.py
help = 'Make sure all members are in Slack and optionally kick non-members'
def add_arguments(self, parser):
parser.add_argument('--autodeactivate', action='store_true', help='Automatically deactivate users that are no longe... | help = 'Make sure all members are in Slack and optionally kick non-members'
def add_arguments(self, parser):
parser.add_argument('--autodeactivate', action='store_true', help='Automatically deactivate users that are no longer members')
pass
def handle(self, *args, **options):
if n... | <|file_sep|>original/project/slacksync/management/commands/sync_slack_users.py
help = 'Make sure all members are in Slack and optionally kick non-members'
def add_arguments(self, parser):
parser.add_argument('--autodeactivate', action='store_true', help='Automatically deactivate users that are no longe... | b858b2640b8e509c1262644eda02afb05d90ff18 | project/slacksync/management/commands/sync_slack_users.py | project/slacksync/management/commands/sync_slack_users.py | Python |
<|file_sep|>original/package.json
{
"name": "autoless",
"version": "0.1.6",
"description": "Another .less files watcher, but this time with growl notifications",
"keywords": ["less", "watcher", "auto"],
"author": "Juliusz Gonera <jgonera@gmail.com>",
"bin": { "autoless": "./bin/autoless" },
"engines": { "... | {
"name": "autoless",
"version": "0.1.6",
"description": "Another .less files watcher, but this time with growl notifications",
"keywords": ["less", "watcher", "auto"],
"author": "Juliusz Gonera <jgonera@gmail.com>",
"bin": { "autoless": "./bin/autoless" },
"engines": { "node": ">= 0.8.x" },
"repository... | <|file_sep|>original/package.json
{
"name": "autoless",
"version": "0.1.6",
"description": "Another .less files watcher, but this time with growl notifications",
"keywords": ["less", "watcher", "auto"],
"author": "Juliusz Gonera <jgonera@gmail.com>",
"bin": { "autoless": "./bin/autoless" },
"engines": { "... | 00a278bc9b1db81eb8935faec3267b87d9edfeed | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: ruby
script:
- bundle exec rspec
- bundle exec rake export
deploy:
# Docs: https://docs.travis-ci.com/user/deployment/pages/
provider: pages
skip_cleanup: true
# Personal access token for rubytoolbox-bot user, public_repo scope
github_token: $GITHUB_TOKEN
local... | language: ruby
script:
- bundle exec rspec
- bundle exec rake export
deploy:
# Docs: https://docs.travis-ci.com/user/deployment/pages/
provider: pages
skip_cleanup: true
# Personal access token for rubytoolbox-bot user, public_repo scope
github_token: $GITHUB_TOKEN
name: Ruby Toolbox Bot
email: bot@ru... | <|file_sep|>original/.travis.yml
language: ruby
script:
- bundle exec rspec
- bundle exec rake export
deploy:
# Docs: https://docs.travis-ci.com/user/deployment/pages/
provider: pages
skip_cleanup: true
# Personal access token for rubytoolbox-bot user, public_repo scope
github_token: $GITHUB_TOKEN
local... | 5dd8689870171f413d945f347337a18fc61b3f26 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test_bert_trainer.py
def test_init(self):
trainer = BERTTrainer()
def test_train(self):
output_dir = 'test_{}'.format(str(int(time.time())))
trainer = BERTTrainer(output_dir=output_dir)
print(trainer.bert_model_hub)
data = pd.DataFrame({
... | output_dir = 'test_{}'.format(str(int(time.time())))
trainer = BERTTrainer(output_dir=output_dir)
print(trainer.bert_model_hub)
data = pd.DataFrame({
'abstract': ['test one', 'test two', 'test three'] * 5,
'section': ['U.S.', 'Arts', 'U.S.'] * 5,
})
... | <|file_sep|>original/test_bert_trainer.py
def test_init(self):
trainer = BERTTrainer()
def test_train(self):
output_dir = 'test_{}'.format(str(int(time.time())))
trainer = BERTTrainer(output_dir=output_dir)
print(trainer.bert_model_hub)
data = pd.DataFrame({
... | 453af98b1a05c62acd55afca431236d8f54fdae3 | test_bert_trainer.py | test_bert_trainer.py | Python |
<|file_sep|>README.md.diff
original:
updated:
### How to use the data
<|file_sep|>original/README.md
[](https://travis-ci.org/SDG-data/SDGs)
> To visualize this data, go to e.g. [this website](http://sdg-data.github.io/web/) which comes from the [website code... |
# SDGs
Data for the Sustainable Development Goals.
A machine readable format for the Goals and Indicators for the SDGs, becuase I could not find one.
Sources are declared. If you have any update, please submit a Pull Request.
### How to use the data
This is a quick example to load into a variable the data from ano... | <|file_sep|>README.md.diff
original:
updated:
### How to use the data
<|file_sep|>original/README.md
[](https://travis-ci.org/SDG-data/SDGs)
> To visualize this data, go to e.g. [this website](http://sdg-data.github.io/web/) which comes from the [website code... | ec95df14e483d820dc29464ba9339e4e22177f98 | README.md | README.md | Markdown |
<|file_sep|>original/Handler/System.hs
module Handler.System where
import Import
import System.Process (readProcess)
getSystemR :: Handler String
getSystemR = liftIO $ do
x <- readProcess "df" ["-ih"] ""
y <- readProcess "ls" ["-lh", "/tmp"] ""
return $ unlines [x, y]
<|file_sep|>current/Handler/System.hs... | module Handler.System where
import Import
import System.Process (readProcess)
getSystemR :: Handler String
getSystemR = liftIO $ readProcess "df" ["-ih"] "" | <|file_sep|>original/Handler/System.hs
module Handler.System where
import Import
import System.Process (readProcess)
getSystemR :: Handler String
getSystemR = liftIO $ do
x <- readProcess "df" ["-ih"] ""
y <- readProcess "ls" ["-lh", "/tmp"] ""
return $ unlines [x, y]
<|file_sep|>current/Handler/System.hs... | 09cf1b10a15266b37b208eb7cefed6ae8081e653 | Handler/System.hs | Handler/System.hs | Haskell |
<|file_sep|>original/.github/workflows/main.yml
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install cpplint
run: pip install cpplint
- name: Run cpplint
run: cpplint --... | lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install cpplint
run: pip install cpplint
- name: Run cpplint
run: cpplint --recursive .
- name: Install pylint
ru... | <|file_sep|>original/.github/workflows/main.yml
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
- name: Install cpplint
run: pip install cpplint
- name: Run cpplint
run: cpplint --... | edd13db1c64b76159033f699d221f59ab243e6dc | .github/workflows/main.yml | .github/workflows/main.yml | YAML |
<|file_sep|>original/app/views/pulitzer/partial_types/_form.html.erb
<div class="pulitzer-row">
<div class="pulitzer-span margin"><h5><%= partial_type.label %></h5></div>
<div class="pulitzer-span right">
<%= render partial: '/pulitzer/shared/drag_handle' %>
</div>
</div>
<%= render 'pulitzer/shared/error_mes... | <div class="pulitzer-row">
<div class="pulitzer-span margin"><h5><%= partial_type.label %></h5></div>
<div class="pulitzer-span match-h5"><%= partial_type.folder_path %>/</div>
<div class="pulitzer-span margin match-h5"><%= partial_type.template_path %></div>
<div class="pulitzer-span right">
<%= render par... | <|file_sep|>original/app/views/pulitzer/partial_types/_form.html.erb
<div class="pulitzer-row">
<div class="pulitzer-span margin"><h5><%= partial_type.label %></h5></div>
<div class="pulitzer-span right">
<%= render partial: '/pulitzer/shared/drag_handle' %>
</div>
</div>
<%= render 'pulitzer/shared/error_mes... | 758cf6a891fd226a9932d2148536d5e9fbe8bd67 | app/views/pulitzer/partial_types/_form.html.erb | app/views/pulitzer/partial_types/_form.html.erb | HTML+ERB |
<|file_sep|>original/postino.podspec
<|file_sep|>current/postino.podspec
<|file_sep|>updated/postino.podspec | Pod::Spec.new do |s|
s.name = "Postino"
s.version = "0.0.1"
s.summary = ""
s.homepage = "https://github.com/miguelbassila/postino"
s.license = "MIT"
s.author = { "Miguel Bassila" => "miguelbassila@me.com" }
s.source = { :git => "https://github.com/miguelbassila/post... | <|file_sep|>original/postino.podspec
<|file_sep|>current/postino.podspec
<|file_sep|>updated/postino.podspec
Pod::Spec.new do |s|
s.name = "Postino"
s.version = "0.0.1"
s.summary = ""
s.homepage = "https://github.com/miguelbassila/postino"
s.license = "MIT"
s.author = { "... | 4e31862b8dfd85f543f2e29a09ffad33c5c2a7ee | postino.podspec | postino.podspec | Ruby |
<|file_sep|>network_checker/url_access_checker/cli.py.diff
original:
updated:
import os
<|file_sep|>original/network_checker/url_access_checker/cli.py
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is di... | # http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific langu... | <|file_sep|>network_checker/url_access_checker/cli.py.diff
original:
updated:
import os
<|file_sep|>original/network_checker/url_access_checker/cli.py
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is di... | fac8f1af6bd3eb46fe2a26689b0d85f358934f7a | network_checker/url_access_checker/cli.py | network_checker/url_access_checker/cli.py | Python |
<|file_sep|>original/app/controllers/flights_controller.rb
if request.xhr?
render :'flights/search', layout: false
end
end
def search_results
@search = SearchForm.new(search_params)
if @search.valid?
@flights = @search.generate_flights
p @flights
if request.xhr?
... | if request.xhr?
render :'flights/search', layout: false
end
end
def search_results
@search = SearchForm.new(search_params)
if @search.valid?
@flights = @search.generate_flights
if request.xhr?
render :'flights/search_results', layout: false
else
... | <|file_sep|>original/app/controllers/flights_controller.rb
if request.xhr?
render :'flights/search', layout: false
end
end
def search_results
@search = SearchForm.new(search_params)
if @search.valid?
@flights = @search.generate_flights
p @flights
if request.xhr?
... | 88b2936bda83814bab8dc2895169bd6364b45563 | app/controllers/flights_controller.rb | app/controllers/flights_controller.rb | Ruby |
<|file_sep|>lib/talia_core/macro_contribution.rb.diff
original:
module TaliaCore
# This represents a macrocontribution.
#
# Everything valid for a normal source is also valid here
#
# It offers some methods for dealing with Macrocontributions
updated:
module TaliaCore #:nodoc:
# A +MacroContribution+ i... | def editors_notes=(notes)
self.predicate_set(:hyper, 'editorsNotes', notes)
end
def macrocontribution_type=(type)
self.predicate_set(:hyper, "macrocontributionType", type)
end
def title
self.hyper::title
end
def editors_notes
self.hyper::editorsNo... | <|file_sep|>lib/talia_core/macro_contribution.rb.diff
original:
module TaliaCore
# This represents a macrocontribution.
#
# Everything valid for a normal source is also valid here
#
# It offers some methods for dealing with Macrocontributions
updated:
module TaliaCore #:nodoc:
# A +MacroContribution+ i... | 7e6d991ebebb6a5c32d059500e946bf7bbc43a5f | lib/talia_core/macro_contribution.rb | lib/talia_core/macro_contribution.rb | Ruby |
<|file_sep|>original/oooq-warp.yaml
---
- hosts: virthost
any_errors_fatal: true
gather_facts: true
become: true
roles:
# FIXME(bogdando) fails to restart libvirt in the chrooted container
# allow the "roles/parts/libvirt/tasks/main.yml" to fail!
- environment/setup
- { role: libvirt/teardown, w... | ---
- hosts: virthost
any_errors_fatal: true
gather_facts: true
become: true
roles:
# FIXME(bogdando) fails to restart libvirt in the chrooted container
# allow the "roles/parts/libvirt/tasks/main.yml" to fail!
- { role: environment/setup, when: teardown|bool }
- { role: libvirt/teardown, when: ... | <|file_sep|>original/oooq-warp.yaml
---
- hosts: virthost
any_errors_fatal: true
gather_facts: true
become: true
roles:
# FIXME(bogdando) fails to restart libvirt in the chrooted container
# allow the "roles/parts/libvirt/tasks/main.yml" to fail!
- environment/setup
- { role: libvirt/teardown, w... | bb9bc4a2fb13998edd4fc74a3dac5c7775d30ebe | oooq-warp.yaml | oooq-warp.yaml | YAML |
<|file_sep|>original/java-schema-sdk/README.md
utility methods and Jackson for serialization.
## Using it
The SDK has been deployed to JCenter and Maven Central as a Maven dependency, along with corresponding source and
Javadoc artifacts.
If you use Gradle, add the following dependency to your build script to use ... | utility methods and Jackson for serialization.
## Using it
The SDK has been deployed to JCenter and Maven Central as a Maven dependency, along with corresponding source and
Javadoc artifacts.
If you use Gradle, add the following dependency to your build script to use it
```groovy
compile 'org.openmhealth.schema:... | <|file_sep|>original/java-schema-sdk/README.md
utility methods and Jackson for serialization.
## Using it
The SDK has been deployed to JCenter and Maven Central as a Maven dependency, along with corresponding source and
Javadoc artifacts.
If you use Gradle, add the following dependency to your build script to use ... | 51a2766aeb887b4a1ccc59b268c22690ccffa65b | java-schema-sdk/README.md | java-schema-sdk/README.md | Markdown |
<|file_sep|>original/src/com/interview/tree/CousinNodes.java
<|file_sep|>current/src/com/interview/tree/CousinNodes.java
<|file_sep|>updated/src/com/interview/tree/CousinNodes.java | package com.interview.tree;
import java.util.Deque;
import java.util.LinkedList;
/**
* http://www.geeksforgeeks.org/check-two-nodes-cousins-binary-tree/
* Assumption that both a and b are unique in tree.
* Test cases:
* Empty tree
* Tree with only root
* Tree and input with a and b as cousin node
* Tree and in... | <|file_sep|>original/src/com/interview/tree/CousinNodes.java
<|file_sep|>current/src/com/interview/tree/CousinNodes.java
<|file_sep|>updated/src/com/interview/tree/CousinNodes.java
package com.interview.tree;
import java.util.Deque;
import java.util.LinkedList;
/**
* http://www.geeksforgeeks.org/check-two-nodes-co... | e377dfde76830d2d540893a8908fd09615cfac63 | src/com/interview/tree/CousinNodes.java | src/com/interview/tree/CousinNodes.java | Java |
<|file_sep|>lib/rockt.rb.diff
original:
updated:
class NoSuitableApplication < Exception; end
<|file_sep|>original/lib/rockt.rb
# - dry_run: do not run the command, only returns it
def self.launch(uri, options = {})
environment = detect
environment.commands.each do |command|
if which command
... | # Available options are
# - dry_run: do not run the command, only returns it
def self.launch(uri, options = {})
environment = detect
environment.commands.each do |command|
if which command
if options[:dry_run]
return command
else
system(command, uri) or fail NoSu... | <|file_sep|>lib/rockt.rb.diff
original:
updated:
class NoSuitableApplication < Exception; end
<|file_sep|>original/lib/rockt.rb
# - dry_run: do not run the command, only returns it
def self.launch(uri, options = {})
environment = detect
environment.commands.each do |command|
if which command
... | 5e080df429d3ac01b1cd077bd150e3e2fc7df057 | lib/rockt.rb | lib/rockt.rb | Ruby |
<|file_sep|>original/config/locales/ja.yml
---
ja:
time:
formats:
default: "%Y/%m/%d %H:%M:%S"
date:
formats:
default: "%Y/%m/%d"
<|file_sep|>current/config/locales/ja.yml
---
ja:
time:
formats:
default: "%Y/%m/%d %H:%M:%S"
date:
formats:
default: "%Y/%m/%d"
<|file_sep|>u... | ---
ja:
time:
formats:
default: "%Y/%m/%d %H:%M:%S"
date:
formats:
default: "%Y/%m/%d"
errors:
format: "%{attribute}%{message}"
messages:
blank: を入力してください
empty: を入力してください
inclusion: は一覧にありません
invalid: は不正な値です
model_invalid: "バリデーションに失敗しました: %{errors}"
... | <|file_sep|>original/config/locales/ja.yml
---
ja:
time:
formats:
default: "%Y/%m/%d %H:%M:%S"
date:
formats:
default: "%Y/%m/%d"
<|file_sep|>current/config/locales/ja.yml
---
ja:
time:
formats:
default: "%Y/%m/%d %H:%M:%S"
date:
formats:
default: "%Y/%m/%d"
<|file_sep|>u... | bb30341d76aaa308be1a17b45e9d8261046fd9bc | config/locales/ja.yml | config/locales/ja.yml | YAML |
<|file_sep|>LightSensor/Light.json.diff
original:
"values": [
updated:
"valuePaths": [
<|file_sep|>original/LightSensor/Light.json
"namespace": "interdroid.contextdroid.sensor.impl",
"doc": "A sensor for the ambient light level, measured in lux.",
"author": "nick <palmer@cs.vu.nl>",
"configs": [
{"name": ... | "android:entries": "@array/light_accuracy",
"android:entryValues": "@array/light_accuracy_values",
"android:summary": "Select an Accuracy",
"android:title": "Sensor Accuracy"
}
],
"valuePaths": [
{"name":"lux",
"type":"double"
}
],
"values": [
{"name": "light_accuracy",
"type": "string-ar... | <|file_sep|>LightSensor/Light.json.diff
original:
"values": [
updated:
"valuePaths": [
<|file_sep|>original/LightSensor/Light.json
"namespace": "interdroid.contextdroid.sensor.impl",
"doc": "A sensor for the ambient light level, measured in lux.",
"author": "nick <palmer@cs.vu.nl>",
"configs": [
{"name": ... | b457ae946bb1925521d3a3fbc091552602ef513b | LightSensor/Light.json | LightSensor/Light.json | JSON |
<|file_sep|>original/lib/github/markup/markdown.rb
require "github/markup/implementation"
module GitHub
module Markup
class Markdown < Implementation
MARKDOWN_GEMS = {
"github/markdown" => proc { |content|
GitHub::Markdown.render(content)
},
"redcarpet" => proc { |content|... | require "github/markup/implementation"
module GitHub
module Markup
class Markdown < Implementation
MARKDOWN_GEMS = {
"github/markdown" => proc { |content|
GitHub::Markdown.render(content)
},
"redcarpet" => proc { |content|
Redcarpet::Markdown.new(Redcarpet::Rende... | <|file_sep|>original/lib/github/markup/markdown.rb
require "github/markup/implementation"
module GitHub
module Markup
class Markdown < Implementation
MARKDOWN_GEMS = {
"github/markdown" => proc { |content|
GitHub::Markdown.render(content)
},
"redcarpet" => proc { |content|... | 50befce17286d6c915f994222df29255f1c204b9 | lib/github/markup/markdown.rb | lib/github/markup/markdown.rb | Ruby |
<|file_sep|>appveyor.yml.diff
original:
- if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows
- if "%platform%"=="x64" set VCPKG_ARCH=x64-windows
- vcpkg install ragel:%VCPKG_ARCH%
- SET PATH=C:\tools\vcpkg\installed\%VCPKG_ARCH%\bin;%PATH%
updated:
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-... | image: Visual Studio 2017
version: "{build}"
install:
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel"
- SET PATH=C:\msys64\mingw64\bin;%PATH%
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- bundle install --retry 3
build: off
before_test:
- ragel --version
- ruby --version
- ... | <|file_sep|>appveyor.yml.diff
original:
- if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows
- if "%platform%"=="x64" set VCPKG_ARCH=x64-windows
- vcpkg install ragel:%VCPKG_ARCH%
- SET PATH=C:\tools\vcpkg\installed\%VCPKG_ARCH%\bin;%PATH%
updated:
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-... | 952779da3951e52294de1d80cfba7daa6bdbbd2e | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py
<|file_sep|>current/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py
<|file_sep|>updated/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-11-07 15:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cmsplugin_contact', '0002_auto_20160810_1130'),
]
o... | <|file_sep|>original/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py
<|file_sep|>current/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py
<|file_sep|>updated/cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-11-07 15... | 55017eadf948fb951e6303cd4c914c968d6f60b2 | cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py | cmsplugin_contact/migrations_django/0003_auto_20161107_1614.py | Python |
<|file_sep|>original/_posts/2016-05-25-jQuery-pt-2-26.md
<|file_sep|>current/_posts/2016-05-25-jQuery-pt-2-26.md
<|file_sep|>updated/_posts/2016-05-25-jQuery-pt-2-26.md | ---
layout: post
title: "Lesson 26 | JavaScript (Code School)"
excerpt: "Ajax Basics | JavaScript and jQuery | Ajax With Forms | Utility Methods | jQuery Plugins | Promises"
modified:
tags: [javascript, codeschool, learning, front end]
comments: true
---
<section id="table-of-contents" class="toc">
<header>
<h... | <|file_sep|>original/_posts/2016-05-25-jQuery-pt-2-26.md
<|file_sep|>current/_posts/2016-05-25-jQuery-pt-2-26.md
<|file_sep|>updated/_posts/2016-05-25-jQuery-pt-2-26.md
---
layout: post
title: "Lesson 26 | JavaScript (Code School)"
excerpt: "Ajax Basics | JavaScript and jQuery | Ajax With Forms | Utility Methods | jQ... | 7026d47f8d5d23654d88b7aa4a07096d3dfe1de9 | _posts/2016-05-25-jQuery-pt-2-26.md | _posts/2016-05-25-jQuery-pt-2-26.md | Markdown |
<|file_sep|>original/ocaml/idl/xenenterpriseapi-coversheet.tex
%
% Authors: Ewan Mellor, Richard Sharp, Dave Scott
%
%% Document title
\newcommand{\doctitle}{Citrix XenServer Management API}
\newcommand{\coversheetlogo}{citrix_logo_black.eps}
%% Document date
\newcommand{\datestring}{\today}
\newcommand{\releasesta... | %
% Authors: Ewan Mellor, Richard Sharp, Dave Scott
%
%% Document title
\newcommand{\doctitle}{Citrix XenServer Management API}
\newcommand{\coversheetlogo}{citrix_logo_black.eps}
%% Document date
\newcommand{\datestring}{\today}
\newcommand{\releasestatement}{}
%% Document revision
\newcommand{\revstring}{API Rev... | <|file_sep|>original/ocaml/idl/xenenterpriseapi-coversheet.tex
%
% Authors: Ewan Mellor, Richard Sharp, Dave Scott
%
%% Document title
\newcommand{\doctitle}{Citrix XenServer Management API}
\newcommand{\coversheetlogo}{citrix_logo_black.eps}
%% Document date
\newcommand{\datestring}{\today}
\newcommand{\releasesta... | caf911e56f20a275da4c86e7fa559aa06a30e7ee | ocaml/idl/xenenterpriseapi-coversheet.tex | ocaml/idl/xenenterpriseapi-coversheet.tex | TeX |
<|file_sep|>original/mirage/config.js
});
this.get('/comments', schema => {
return schema.comments.all();
});
this.post('/tokens', schema => {
return schema.create('token');
});
this.get('/ui-dismissals', schema => {
return schema.uiDismissals.all();
});
this.get('/teams/:domain', (schem... | });
this.get('/comments', schema => {
return schema.comments.all();
});
this.post('/tokens', schema => {
return schema.create('token');
});
this.get('/watched-canvases', schema => {
return schema.watchedCanvases.all();
});
this.get('/ui-dismissals', schema => {
return schema.uiDismis... | <|file_sep|>original/mirage/config.js
});
this.get('/comments', schema => {
return schema.comments.all();
});
this.post('/tokens', schema => {
return schema.create('token');
});
this.get('/ui-dismissals', schema => {
return schema.uiDismissals.all();
});
this.get('/teams/:domain', (schem... | 4e937e6d5478c5e9c3f2e8cc6dac595c748ac2db | mirage/config.js | mirage/config.js | JavaScript |
<|file_sep|>original/vcfexplorer/frontend/views.py
"""
vcfexplorer.frontend.views
VCF Explorer frontend views
"""
from flask import send_file
from . import bp
@bp.route('/', defaults={'path': ''})
@bp.route('/<path:path>')
def index(path):
return send_file('frontend/templates/index.html')
<|file_sep|>cu... | """
vcfexplorer.frontend.views
VCF Explorer frontend views
"""
from flask import send_file
from . import bp
@bp.route('/', defaults={'path': ''})
@bp.route('<path:path>')
def index(path):
return send_file('frontend/templates/index.html') | <|file_sep|>original/vcfexplorer/frontend/views.py
"""
vcfexplorer.frontend.views
VCF Explorer frontend views
"""
from flask import send_file
from . import bp
@bp.route('/', defaults={'path': ''})
@bp.route('/<path:path>')
def index(path):
return send_file('frontend/templates/index.html')
<|file_sep|>cu... | 1da421dcb4356a4f572bc1a815ed7e87dc619f64 | vcfexplorer/frontend/views.py | vcfexplorer/frontend/views.py | Python |
<|file_sep|>recipes/initscripts/files/rascal-webserver.sh.diff
original:
APPSERVER_CONFIG="/etc/uwsgi.ini"
updated:
APPSERVER_CONFIG_DIR="/etc/uwsgi/"
<|file_sep|>recipes/initscripts/files/rascal-webserver.sh.diff
original:
test -f $APPSERVER_CONFIG || exit 0
updated:
test -d $APPSERVER_CONFIG_DIR || exit 0
<|file_sep|... | case "$1" in
start)
echo "Starting Rascal webserver..."
$WEBSERVER -c $WEBSERVER_CONFIG
$APPSERVER --emperor $APPSERVER_CONFIG_DIR --daemonize /var/log/uwsgi/emperor.log
echo "done"
;;
reload|restart)
echo "Reloading Rascal webserver..."
$WEBSERVER -c $WEBSERVER_CONFIG -s reload
echo "do... | <|file_sep|>recipes/initscripts/files/rascal-webserver.sh.diff
original:
APPSERVER_CONFIG="/etc/uwsgi.ini"
updated:
APPSERVER_CONFIG_DIR="/etc/uwsgi/"
<|file_sep|>recipes/initscripts/files/rascal-webserver.sh.diff
original:
test -f $APPSERVER_CONFIG || exit 0
updated:
test -d $APPSERVER_CONFIG_DIR || exit 0
<|file_sep|... | bece4665b1eb9cfe68798e31254407d775d26791 | recipes/initscripts/files/rascal-webserver.sh | recipes/initscripts/files/rascal-webserver.sh | Shell |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "iojs"
- "0.12"
- "0.10"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
- "5.1"
services:
- mongodb
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "iojs"
- "0.12"
- "0.10"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
- "5.1"
services:... |
node_js:
- "iojs"
- "0.12"
- "0.10"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
- "5.1"
services:
- mongodb
before_script:
- 'if [ "$MONGOOSE_VERSION" ]; then npm install mongoose@^$MONGOOSE_VERSION; fi'
env:
- MONGOOSE_VERSION=4.0
- MONGOOSE_VERSION=4.1
- MONGOOSE_VERSION=5 | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "iojs"
- "0.12"
- "0.10"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
- "5.1"
services:
- mongodb
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "iojs"
- "0.12"
- "0.10"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
- "5.1"
services:... | 847034bcc5b902cdf279bbab335606eaac228810 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/server/app.js
const app = express();
const port = process.env.PORT || 3001;
app.use(logger('dev'));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use('/api-docs', express.static('docs'));
app.use('/api/v1', routes);
if (process.env.NODE_ENV === 'production... |
const app = express();
const port = process.env.PORT || 3001;
app.use(logger('dev'));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use('/api-docs', express.static('docs'));
app.use('/api/v1/', routes);
if (process.env.NODE_ENV === 'production') {
app.use('/', express.static... | <|file_sep|>original/server/app.js
const app = express();
const port = process.env.PORT || 3001;
app.use(logger('dev'));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use('/api-docs', express.static('docs'));
app.use('/api/v1', routes);
if (process.env.NODE_ENV === 'production... | 86aa3ab88a268d58c38e7b3c8cfbc0ddff08945b | server/app.js | server/app.js | JavaScript |
<|file_sep|>original/.github/workflows/test.yml
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, 3.10]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout... | name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checko... | <|file_sep|>original/.github/workflows/test.yml
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, 3.10]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout... | 2cf7ede32db44b61504e93c22837fd80edf0f57c | .github/workflows/test.yml | .github/workflows/test.yml | YAML |
<|file_sep|>original/Wangscape/Exp.h
<|file_sep|>current/Wangscape/Exp.h
<|file_sep|>updated/Wangscape/Exp.h | #pragma once
#include <noise/noise.h>
#include <cmath>
// This is similar to noise::module::Exp.
// However, no rescaling is performed,
// and no attempt is made to guard against invalid operations.
// Make sure the range of the source module
// is compatible with the base of the exponential!
// This module names its ... | <|file_sep|>original/Wangscape/Exp.h
<|file_sep|>current/Wangscape/Exp.h
<|file_sep|>updated/Wangscape/Exp.h
#pragma once
#include <noise/noise.h>
#include <cmath>
// This is similar to noise::module::Exp.
// However, no rescaling is performed,
// and no attempt is made to guard against invalid operations.
// Make s... | 98009edde9aee61ccfe582febd990d2bd409b48d | Wangscape/Exp.h | Wangscape/Exp.h | C |
<|file_sep|>opps/core/cache/managers.py.diff
original:
updated:
def _cache_key(model, id):
return u'{}:{}:{}'.format(settings.CACHE_PREFIX,
model._meta.db_table,
id)
<|file_sep|>opps/core/cache/managers.py.diff
original:
def __cache_key(self, id):
... |
class CacheManager(models.Manager):
def get(self, *args, **kwargs):
id = repr(kwargs)
pointer_key = _cache_key(self.model, id)
model_key = cache.get(pointer_key)
if model_key is not None:
model = cache.get(model_key)
if model is not None:
re... | <|file_sep|>opps/core/cache/managers.py.diff
original:
updated:
def _cache_key(model, id):
return u'{}:{}:{}'.format(settings.CACHE_PREFIX,
model._meta.db_table,
id)
<|file_sep|>opps/core/cache/managers.py.diff
original:
def __cache_key(self, id):
... | 43bae84b1359d56ad150b49b38c2f8d400b05af2 | opps/core/cache/managers.py | opps/core/cache/managers.py | Python |
<|file_sep|>original/source/jquery.singlemask.js
return (typeof el[name] === 'function') ? 'paste' : 'input';
}
var pasteEventName = getPasteEvent();
$.fn.singlemask = function (mask) {
$(this).keydown(function (event) {
var key = event.keyCode;
if (key < 16 || (key > 16 && key < 32) || (ke... | var pasteEventName = getPasteEvent();
$.fn.singlemask = function (mask) {
$(this).keydown(function (event) {
var key = event.keyCode;
if (key < 16 || (key > 16 && key < 32) || (key > 32 && key < 41)) {
return;
}
// Numpad key numbers starts on 96 (0) and ends on 105 (9)
... | <|file_sep|>original/source/jquery.singlemask.js
return (typeof el[name] === 'function') ? 'paste' : 'input';
}
var pasteEventName = getPasteEvent();
$.fn.singlemask = function (mask) {
$(this).keydown(function (event) {
var key = event.keyCode;
if (key < 16 || (key > 16 && key < 32) || (ke... | 8a6ef1a837929cd1b64550c0a4e8eb8b5cf3f688 | source/jquery.singlemask.js | source/jquery.singlemask.js | JavaScript |
<|file_sep|>packages/pa/pandoc-citeproc-preamble.yaml.diff
original:
hash: 610fb5d6259cc130685422e9a4bde97680aeb1985e41b28567edf1dff39ee391
updated:
hash: cc813dea593132c384fe15ea0108e613c9c1eaadd34e51a9444a66bbfd4d8557
<|file_sep|>packages/pa/pandoc-citeproc-preamble.yaml.diff
original:
updated:
- '1.6'
<|file_sep|>o... | base: '>=4 && <5'
filepath: -any
process: -any
pandoc-types: '>=1.20'
text-conversions: -any
directory: -any
all-versions:
- 1.0.0
- 1.1.0
- 1.2.1
- 1.2.2
- 1.2.3
- 1.2.4
- '1.3'
- '1.5'
- '1.6'
author: Sean Whitton
latest: '1.6'
description-type: haddock
description: Please see README.md
license-name: GPL-... | <|file_sep|>packages/pa/pandoc-citeproc-preamble.yaml.diff
original:
hash: 610fb5d6259cc130685422e9a4bde97680aeb1985e41b28567edf1dff39ee391
updated:
hash: cc813dea593132c384fe15ea0108e613c9c1eaadd34e51a9444a66bbfd4d8557
<|file_sep|>packages/pa/pandoc-citeproc-preamble.yaml.diff
original:
updated:
- '1.6'
<|file_sep|>o... | 22791bfcf2edbb37bbebfa8f34e12a0edb416f02 | packages/pa/pandoc-citeproc-preamble.yaml | packages/pa/pandoc-citeproc-preamble.yaml | YAML |
<|file_sep|>original/client/app/components/icon-list/icon-list.html
<div class="icon-list" ng-repeat="item in vm.items">
<div class="icon-list__container">
<div class="icon-list__container__background">
<img ng-if="item.picture.image_href" class="icon-list__container__icon" alt="{{ item.name }}"
... | <div class="icon-list" ng-repeat="item in vm.items">
<div class="icon-list__container">
<div class="icon-list__container__background">
<img ng-if="item.picture.image_href" class="icon-list__container__icon" alt="{{ item.name }}"
ng-src="{{ item.picture.image_href }}"/>
<img ng-if="!item.pic... | <|file_sep|>original/client/app/components/icon-list/icon-list.html
<div class="icon-list" ng-repeat="item in vm.items">
<div class="icon-list__container">
<div class="icon-list__container__background">
<img ng-if="item.picture.image_href" class="icon-list__container__icon" alt="{{ item.name }}"
... | 0d0171bbbc14cf884b51c788c12d191954d9a5f9 | client/app/components/icon-list/icon-list.html | client/app/components/icon-list/icon-list.html | HTML |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
notifications:
email: false
node_js:
- 4
- 6
matrix:
fast_finish: true
env:
global:
- BUILD_LEADER_ID=2
script: npm run travis
before_install:
- npm i -g npm@^3.0.0
before_script:
- npm prune
after_success:
- npm install -g npx
- npx -... | sudo: false
language: node_js
notifications:
email: false
node_js:
- 4
- 6
- 8
matrix:
fast_finish: true
env:
global:
- BUILD_LEADER_ID=2
script: npm run travis
before_install:
- npm i -g npm@^3.0.0
before_script:
- npm prune
after_success:
- npm install -g npx
- npx -p node@8 npm run semantic-r... | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
notifications:
email: false
node_js:
- 4
- 6
matrix:
fast_finish: true
env:
global:
- BUILD_LEADER_ID=2
script: npm run travis
before_install:
- npm i -g npm@^3.0.0
before_script:
- npm prune
after_success:
- npm install -g npx
- npx -... | fa1bb8780ce3cd29fee9baaae2f2bf9907acc56b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/mailers/noisy_workflow.rb
def make_noise(publication,action)
@publication = publication
@action = action
email_address = case action.request_type
when Action::PUBLISHED then "team@alphagov.co.uk"
when Action::REVIEW_REQUESTED then "eds@alphagov.co.uk, seo@alphagov.co.... | email_address = case action.request_type
when Action::PUBLISHED then "team@alphagov.co.uk"
when Action::REVIEW_REQUESTED then "eds@alphagov.co.uk, seo@alphagov.co.uk"
else "eds@alphagov.co.uk"
end
mail(:to => email_address,
:subject => "[PUBLISHER] #{@action.friendly_description}: #{@a... | <|file_sep|>original/app/mailers/noisy_workflow.rb
def make_noise(publication,action)
@publication = publication
@action = action
email_address = case action.request_type
when Action::PUBLISHED then "team@alphagov.co.uk"
when Action::REVIEW_REQUESTED then "eds@alphagov.co.uk, seo@alphagov.co.... | 40d94e391985fd6c039d3e130aff3ad77fd5e05f | app/mailers/noisy_workflow.rb | app/mailers/noisy_workflow.rb | Ruby |
<|file_sep|>original/appveyor.yml
- master
cache:
- src\LondonTravel.Site\node_modules
- '%APPDATA%\npm\node_modules'
- '%APPDATA%\npm-cache'
install:
- ps: npm install -g npm@6.1.0 --loglevel=error
- ps: npm install -g gulp@3.9.1 --loglevel=error
- ps: choco install googlechrome
build_script:
- ps... | - master
cache:
- src\LondonTravel.Site\node_modules
- '%APPDATA%\npm\node_modules'
- '%APPDATA%\npm-cache'
install:
- ps: npm install -g npm@6.1.0 --loglevel=error
- ps: npm install -g gulp@3.9.1 --loglevel=error
build_script:
- ps: .\Build.ps1
after_build:
- "SET PATH=C:\\Python34;C:\\Python34... | <|file_sep|>original/appveyor.yml
- master
cache:
- src\LondonTravel.Site\node_modules
- '%APPDATA%\npm\node_modules'
- '%APPDATA%\npm-cache'
install:
- ps: npm install -g npm@6.1.0 --loglevel=error
- ps: npm install -g gulp@3.9.1 --loglevel=error
- ps: choco install googlechrome
build_script:
- ps... | 0e42c497e74e18fdae080e11a32fea3e7e529ddd | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/weight/templates/edit.html
{% load staticfiles %}
{% block title %}{% trans "Weight entry" %}{% endblock %}
{% block header %}
<script src="{% static "js/jquery-ui.js" %}"></script>
<script>
$(function() {
$( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });
});
</script>
{% end... | {% load staticfiles %}
{% block title %}{% trans "Weight entry" %}{% endblock %}
{% block header %}
<script src="{% static "js/jquery-ui.js" %}"></script>
<script>
$(function() {
$( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });
});
</script>
{% endblock %}
<!--
Main Conten... | <|file_sep|>original/weight/templates/edit.html
{% load staticfiles %}
{% block title %}{% trans "Weight entry" %}{% endblock %}
{% block header %}
<script src="{% static "js/jquery-ui.js" %}"></script>
<script>
$(function() {
$( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });
});
</script>
{% end... | b97cbb60aa813067de66855227bbd7ec02dbf849 | weight/templates/edit.html | weight/templates/edit.html | HTML |
<|file_sep|>original/app/controllers/wpcc_controller.rb
class WpccController < EmbeddedToolsController
def exclude_syndicated_iframe_resizer?
true
end
protected
def category_id
'pensions-and-retirement'
end
helper_method :category_id
end
<|file_sep|>current/app/controllers/wpcc_controller.rb
class... | class WpccController < EmbeddedToolsController
def exclude_syndicated_iframe_resizer?
true
end
def canonical
"https://www.moneyhelper.org.uk/#{locale}/pensions-and-retirement/auto-enrolment/workplace-pension-calculator"
end
protected
def category_id
'pensions-and-retirement'
end
helper_me... | <|file_sep|>original/app/controllers/wpcc_controller.rb
class WpccController < EmbeddedToolsController
def exclude_syndicated_iframe_resizer?
true
end
protected
def category_id
'pensions-and-retirement'
end
helper_method :category_id
end
<|file_sep|>current/app/controllers/wpcc_controller.rb
class... | 59efd5126b5fa05021ca0967f62a0bb3efc8bd88 | app/controllers/wpcc_controller.rb | app/controllers/wpcc_controller.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- language: java
jdk: openjdk11
env: FRONT=false
- language: java
jdk: oraclejdk11
env: FRONT=false
<|file_sep|>original/.travis.yml
- language: java
jdk: oraclejdk10
env: FRONT=false
- language: node_js
node_... | jdk: oraclejdk11
env: FRONT=false
- language: node_js
node_js: lts/*
env: FRONT=true
- language: node_js
node_js: node
env: FRONT=true
allow_failures:
- jdk: openjdk9
- jdk: oraclejdk9
- jdk: openjdk10
- jdk: oraclejdk10
- jdk: openjdk11
- jdk: or... | <|file_sep|>.travis.yml.diff
original:
updated:
- language: java
jdk: openjdk11
env: FRONT=false
- language: java
jdk: oraclejdk11
env: FRONT=false
<|file_sep|>original/.travis.yml
- language: java
jdk: oraclejdk10
env: FRONT=false
- language: node_js
node_... | a323f1ab15639ba8f23f1fe682535f8d753c951b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements.txt
botstory==0.1.5
dateparser==0.6.0
emoji==0.4.5
gunicorn==19.7.1
imageio
inflection==0.3.1
humanize==0.5.1
pytest==3.0.7
pytest-aiohttp==0.1.3
pytest-asyncio==0.5.0
pytest-catchlog==1.2.2
pytest-cov==2.4.0
pytest-mock==1.6.0
python-slugify==1.2.4
Wand
<|file_sep|>current/requirement... | botstory==0.1.5
dateparser==0.6.0
emoji==0.4.5
gunicorn==19.7.1
imageio
inflection==0.3.1
humanize==0.5.1
pytest==3.0.7
pytest-aiohttp==0.1.3
pytest-asyncio==0.5.0
pytest-catchlog==1.2.2
pytest-cov==2.4.0
pytest-mock==1.6.3
python-slugify==1.2.4
Wand | <|file_sep|>original/requirements.txt
botstory==0.1.5
dateparser==0.6.0
emoji==0.4.5
gunicorn==19.7.1
imageio
inflection==0.3.1
humanize==0.5.1
pytest==3.0.7
pytest-aiohttp==0.1.3
pytest-asyncio==0.5.0
pytest-catchlog==1.2.2
pytest-cov==2.4.0
pytest-mock==1.6.0
python-slugify==1.2.4
Wand
<|file_sep|>current/requirement... | b660db0affd1e2db45402464f06ab207b7b174bd | requirements.txt | requirements.txt | Text |
<|file_sep|>original/pombola/south_africa/templates/info/blog_list.html
<h2><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></h2>
<p class="meta">
{{ object.publication_date|date }} ({{ object.publication_date|timesince }} ago)
{% if settings.DISQUS_SHORTNAME %}
&mda... | <h2><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></h2>
<p class="meta">
{{ object.publication_date|date }} ({{ object.publication_date|timesince }} ago)
{% if settings.DISQUS_SHORTNAME %}
—
<a href="{{ object.get_absolute_url }}#disqus_thread">Comm... | <|file_sep|>original/pombola/south_africa/templates/info/blog_list.html
<h2><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></h2>
<p class="meta">
{{ object.publication_date|date }} ({{ object.publication_date|timesince }} ago)
{% if settings.DISQUS_SHORTNAME %}
&mda... | 0187ca8b570c50dc2c3a41f9f9e2e4ffca58aba4 | pombola/south_africa/templates/info/blog_list.html | pombola/south_africa/templates/info/blog_list.html | HTML |
<|file_sep|>original/config/prisons/WII-warren-hill.yml
---
name: Warren Hill
nomis_id: WII
address:
- Hollesley
- 'IP12 3JW '
email: socialvisits.warrenhill@hmps.gsi.gov.uk
enabled: true
estate: Warren Hill
phone: 020 8588 4002
slot_anomalies:
2014-12-24:
- 1400-1600
2015-12-24:
- 1400-1600
2015-12-31:
- 1... | ---
name: Warren Hill
nomis_id: WII
address:
- Hollesley
- 'IP12 3JW '
email: socialvisits.warrenhill@hmps.gsi.gov.uk
enabled: true
estate: Warren Hill
phone: 01394 633633
slot_anomalies:
2014-12-24:
- 1400-1600
2015-12-24:
- 1400-1600
2015-12-31:
- 1400-1600
slots:
sat:
- 1400-1600
sun: | <|file_sep|>original/config/prisons/WII-warren-hill.yml
---
name: Warren Hill
nomis_id: WII
address:
- Hollesley
- 'IP12 3JW '
email: socialvisits.warrenhill@hmps.gsi.gov.uk
enabled: true
estate: Warren Hill
phone: 020 8588 4002
slot_anomalies:
2014-12-24:
- 1400-1600
2015-12-24:
- 1400-1600
2015-12-31:
- 1... | e9d56e34b6151b9114a6904d4e5196b020811308 | config/prisons/WII-warren-hill.yml | config/prisons/WII-warren-hill.yml | YAML |
<|file_sep|>original/app/assets/stylesheets/components/_skip_to_content.scss
// Link to allow a keyboard operator to skip the primary navigation and go directly to the main content
//
// Styleguide Skip to content
.skip-to-content {
display: block;
position: absolute;
top: -1000px;
left: 0;
&:focus {
top... | // Link to allow a keyboard operator to skip the primary navigation and go directly to the main content
//
// Styleguide Skip to content
.skip-to-content {
display: block;
padding: $baseline-unit;
position: absolute;
top: -1000px;
left: 0;
&:focus {
top: 0;
}
} | <|file_sep|>original/app/assets/stylesheets/components/_skip_to_content.scss
// Link to allow a keyboard operator to skip the primary navigation and go directly to the main content
//
// Styleguide Skip to content
.skip-to-content {
display: block;
position: absolute;
top: -1000px;
left: 0;
&:focus {
top... | e1e08e173997b2f38779470e7942bdab76ceb033 | app/assets/stylesheets/components/_skip_to_content.scss | app/assets/stylesheets/components/_skip_to_content.scss | SCSS |
<|file_sep|>distribution/template/bin/startClient.sh.diff
original:
updated:
execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)"
<|file_sep|>distribution/template/bin/startClient.sh.diff
original:
JAVA_PATH=""
#JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/"
execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)"
updated:
# If ... |
DJIGGER_HOME="${DJIGGER_HOME:-$(dirname ${execdir})}"
DJIGGER_CONFDIR="${DJIGGER_CONFDIR:-${DJIGGER_HOME}/conf}"
DJIGGER_LIBDIR="${DJIGGER_LIBDIR:-${DJIGGER_HOME}/lib}"
# Required JVM arguments for djigger
DJIGGER_OPTS=("-Dlogback.configurationFile=${DJIGGER_CONFDIR}/logback-client.xml")
# Custom JVM arguments can b... | <|file_sep|>distribution/template/bin/startClient.sh.diff
original:
updated:
execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)"
<|file_sep|>distribution/template/bin/startClient.sh.diff
original:
JAVA_PATH=""
#JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/"
execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)"
updated:
# If ... | 02353c2a5e5286942807167a5232c224f54a34e6 | distribution/template/bin/startClient.sh | distribution/template/bin/startClient.sh | Shell |
<|file_sep|>original/website/profile_run.py
<|file_sep|>current/website/profile_run.py
<|file_sep|>updated/website/profile_run.py | #!/usr/bin/env python3
from werkzeug.contrib.profiler import ProfilerMiddleware
from app import app
app.config['PROFILE'] = True
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30])
app.run(debug = True) | <|file_sep|>original/website/profile_run.py
<|file_sep|>current/website/profile_run.py
<|file_sep|>updated/website/profile_run.py
#!/usr/bin/env python3
from werkzeug.contrib.profiler import ProfilerMiddleware
from app import app
app.config['PROFILE'] = True
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictio... | 164b386d97929816eaecbebe7a47164202acad8f | website/profile_run.py | website/profile_run.py | Python |
<|file_sep|>original/src/Response/AbstractResponse.php
abstract class AbstractResponse implements \ArrayAccess
{
/**
* @var array Full response from Algolia API
*/
protected $apiResponse;
abstract public function wait($requestOptions = array());
/**
* {@inheritdoc}
*/
public fu... | abstract class AbstractResponse implements \ArrayAccess
{
/**
* @var array Full response from Algolia API
*/
protected $apiResponse;
abstract public function wait($requestOptions = array());
/**
* @return array The actual response from Algolia API
*/
public function getBody()
... | <|file_sep|>original/src/Response/AbstractResponse.php
abstract class AbstractResponse implements \ArrayAccess
{
/**
* @var array Full response from Algolia API
*/
protected $apiResponse;
abstract public function wait($requestOptions = array());
/**
* {@inheritdoc}
*/
public fu... | c23c0f9c4e8d33b2935c71183c66ecc61e49df6d | src/Response/AbstractResponse.php | src/Response/AbstractResponse.php | PHP |
<|file_sep|>original/README.md
# pybossaPlayer.js
Small javascript library to handle video and audio on PyBossa projects
<|file_sep|>current/README.md
# pybossaPlayer.js
Small javascript library to handle video and audio on PyBossa projects
<|file_sep|>updated/README.md | [](https://travis-ci.org/PyBossa/pybossa-player.js)
# pybossaPlayer.js
Small javascript library to handle video and audio on PyBossa projects | <|file_sep|>original/README.md
# pybossaPlayer.js
Small javascript library to handle video and audio on PyBossa projects
<|file_sep|>current/README.md
# pybossaPlayer.js
Small javascript library to handle video and audio on PyBossa projects
<|file_sep|>updated/README.md
[;
empaticaConnect.getLastSession(deviceId, function (session) {
// do something with the session data
},
function (error) {
// something went wrong!
});
```
... |
## Install
```
$ npm install --save empatica-connect
```
## Usage
The username and password for the account should be set up as environment
variables:
```sh
$ export EMPATICA_USERNAME={username}
$ export EMPATICA_PASSWORD={password}
```
`direnv` is a good tool to do this in development.
```js | <|file_sep|>original/readme.md
## Install
```
$ npm install --save empatica-connect
```
## Usage
```js
var empaticaConnect = require('empatica-connect');
empaticaConnect.getLastSession(deviceId, function (session) {
// do something with the session data
},
function (error) {
// something went wrong!
});
```
... | fc2535e2c3187c971786df48a53371f371675927 | readme.md | readme.md | Markdown |
<|file_sep|>original/package.json
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/mocha": "9.1.1",
... | "author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/mocha": "9.1.1",
"@types/node": "16.11.38",
"c... | <|file_sep|>original/package.json
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/mocha": "9.1.1",
... | 4d532600e183ad6429416eb01ee6c626b00db792 | package.json | package.json | JSON |
<|file_sep|>original/requirements.txt
fonttools==3.16.0
defcon==0.3.5
MutatorMath==2.0.6
<|file_sep|>current/requirements.txt
fonttools==3.16.0
defcon==0.3.5
MutatorMath==2.0.6
<|file_sep|>updated/requirements.txt | fonttools==3.17.0
defcon==0.3.5
MutatorMath==2.0.6 | <|file_sep|>original/requirements.txt
fonttools==3.16.0
defcon==0.3.5
MutatorMath==2.0.6
<|file_sep|>current/requirements.txt
fonttools==3.16.0
defcon==0.3.5
MutatorMath==2.0.6
<|file_sep|>updated/requirements.txt
fonttools==3.17.0
defcon==0.3.5
MutatorMath==2.0.6 | aac42605fbaa3063190820d363448855efdd37ab | requirements.txt | requirements.txt | Text |
<|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
updated:
<|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
moveit_ros_planning_interface
updated:
<|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
u... | )
catkin_package(
CATKIN_DEPENDS ${${PROJECT_NAME}_DEPENDS}
)
include_directories(
${catkin_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_node
${${PROJECT_NAME}_SOURCES}
)
add_dependencies(${PROJECT_NAME}_node
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
) | <|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
updated:
<|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
moveit_ros_planning_interface
updated:
<|file_sep|>src/arcsys2_move_group_interface/CMakeLists.txt.diff
original:
u... | 98a21b8fef8e16b346bf3f7e3b4f35330c92c4e7 | src/arcsys2_move_group_interface/CMakeLists.txt | src/arcsys2_move_group_interface/CMakeLists.txt | Text |
<|file_sep|>contrib/httpimg/httpimg_test.go.diff
original:
pdf := gofpdf.New("", "", "", "")
updated:
pdf := gofpdf.New("L", "mm", "A4", "")
<|file_sep|>original/contrib/httpimg/httpimg_test.go
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/httpimg"
"github.com/jung-kurt/gofpdf/internal/example... | import (
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/httpimg"
"github.com/jung-kurt/gofpdf/internal/example"
)
func ExampleRegister() {
pdf := gofpdf.New("L", "mm", "A4", "")
pdf.SetFont("Helvetica", "", 12)
pdf.SetFillColor(200, 200, 220)
pdf.AddPage()
url := "https://github.com/jung-k... | <|file_sep|>contrib/httpimg/httpimg_test.go.diff
original:
pdf := gofpdf.New("", "", "", "")
updated:
pdf := gofpdf.New("L", "mm", "A4", "")
<|file_sep|>original/contrib/httpimg/httpimg_test.go
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/httpimg"
"github.com/jung-kurt/gofpdf/internal/example... | 3a6634b2456fc0cd151e25cc90b3b6865bbb5332 | contrib/httpimg/httpimg_test.go | contrib/httpimg/httpimg_test.go | Go |
<|file_sep|>original/Marvel-Challenge/src/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MarvelChallenge</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href=... | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MarvelChallenge</title>
<base href="/MarvelChallenge/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/boot... | <|file_sep|>original/Marvel-Challenge/src/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>MarvelChallenge</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href=... | a0784225dbd39a93039809d23596a79de49d19be | Marvel-Challenge/src/index.html | Marvel-Challenge/src/index.html | HTML |
<|file_sep|>original/contentful_bootstrap.gemspec
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'contentful_bootstrap/version'
Gem::Specification.new do |spec|
spec.name = "contentful_bootstrap"
spec.version = ContentfulBootstrap::VERSION
... | Gem::Specification.new do |spec|
spec.name = "contentful_bootstrap"
spec.version = ContentfulBootstrap::VERSION
spec.authors = ["David Litvak Bruno"]
spec.email = ["david.litvakb@gmail.com"]
spec.summary = %q{Contentful CLI tool for getting started with Contentful}
spec.ho... | <|file_sep|>original/contentful_bootstrap.gemspec
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'contentful_bootstrap/version'
Gem::Specification.new do |spec|
spec.name = "contentful_bootstrap"
spec.version = ContentfulBootstrap::VERSION
... | b585aa5ace7dd265dd1ad01df654aa34657ffa8a | contentful_bootstrap.gemspec | contentful_bootstrap.gemspec | Ruby |
<|file_sep|>original/circle.yml
version: 2 # CircleCI version 2
jobs:
build:
working_directory: ~/transcriptase
docker:
- image: buildpack-deps:xenail
steps:
- checkout
- run:
name: add-node-to-PATH
command: export PATH="${... | version: 2 # CircleCI version 2
jobs:
build:
working_directory: ~/transcriptase
docker:
- image: buildpack-deps:xenial
steps:
- checkout
- run:
name: add-node-to-PATH
command: export PATH="${PATH}:${HOME}/${CIRCLE_PROJECT_R... | <|file_sep|>original/circle.yml
version: 2 # CircleCI version 2
jobs:
build:
working_directory: ~/transcriptase
docker:
- image: buildpack-deps:xenail
steps:
- checkout
- run:
name: add-node-to-PATH
command: export PATH="${... | d13d2b2e3439edd3daeff6ed6869aa9d12550f40 | circle.yml | circle.yml | YAML |
<|file_sep|>_posts/2016-12-14-talks-on-barcelona-summit.md.diff
original:
Companies are on longer asking if they should move to the cloud. They’re asking how to migrate to hybrid cloud with OpenStack. A hybrid cloud can offer a company the best of both public and private cloud, meet the requirements such as Cloud burst... | layout: post
title: "Beware the pitfalls when migrating to hybrid cloud with openstack"
description: "My Talk on OpenStack Barcelona Summit"
tags: [openstack, hybrid cloud]
---
<iframe width="560" height="315" src="//www.youtube.com/embed/rMb5jhnCgoo" frameborder="0"> </iframe>
### Companies are on longer asking if t... | <|file_sep|>_posts/2016-12-14-talks-on-barcelona-summit.md.diff
original:
Companies are on longer asking if they should move to the cloud. They’re asking how to migrate to hybrid cloud with OpenStack. A hybrid cloud can offer a company the best of both public and private cloud, meet the requirements such as Cloud burst... | 4accc2f02991bb697b8262b9393c36272e68a614 | _posts/2016-12-14-talks-on-barcelona-summit.md | _posts/2016-12-14-talks-on-barcelona-summit.md | Markdown |
<|file_sep|>original/doc/Usage.md
<|file_sep|>current/doc/Usage.md
<|file_sep|>updated/doc/Usage.md | Using CMOH
==========
CMOH is a header-only library. No linking is required and CMOH does not depend
on any external libraries other than a subset of the STL. However, CMOH makes
heavy use of (variadic) templates and C++14 features. Hence, a C++14 compliant
tool chain is required with a certain set of capabilities. Cl... | <|file_sep|>original/doc/Usage.md
<|file_sep|>current/doc/Usage.md
<|file_sep|>updated/doc/Usage.md
Using CMOH
==========
CMOH is a header-only library. No linking is required and CMOH does not depend
on any external libraries other than a subset of the STL. However, CMOH makes
heavy use of (variadic) templates and ... | 11024132a5a6cbce8ba8366a82db3814cd8acd69 | doc/Usage.md | doc/Usage.md | Markdown |
<|file_sep|>lib/galera_cluster_migrations.rb.diff
original:
def set_db_to_rsu
updated:
def enable_rsu
<|file_sep|>original/lib/galera_cluster_migrations.rb
execute "SET GLOBAL wsrep_OSU_method=RSU"
execute "SET GLOBAL wsrep_desync=ON"
execute "SET wsrep_on=OFF"
end
yield
... | execute "SET GLOBAL wsrep_OSU_method=RSU"
execute "SET GLOBAL wsrep_desync=ON"
execute "SET wsrep_on=OFF"
end
yield
unless [:development, :test].include?(Rails.env)
execute "SET GLOBAL wsrep_desync=OFF"
execute "SET GLOBAL wsrep_OSU_method=TOI"
end
e... | <|file_sep|>lib/galera_cluster_migrations.rb.diff
original:
def set_db_to_rsu
updated:
def enable_rsu
<|file_sep|>original/lib/galera_cluster_migrations.rb
execute "SET GLOBAL wsrep_OSU_method=RSU"
execute "SET GLOBAL wsrep_desync=ON"
execute "SET wsrep_on=OFF"
end
yield
... | 05ba2efaf7b3d20604679c6211f5ae0ff157e45f | lib/galera_cluster_migrations.rb | lib/galera_cluster_migrations.rb | Ruby |
<|file_sep|>original/requirements/local.txt
# Local development dependencies go here
-r test.txt
black==19.3b0
isort==4.3.20
pre-commit==1.17.0
Sphinx==2.1.0
django-extensions==2.1.7
Werkzeug==0.15.4
django-debug-toolbar==1.11
# improved REPL
ipdb==0.12
<|file_sep|>current/requirements/local.txt
# Local development... | # Local development dependencies go here
-r test.txt
black==19.3b0
isort==4.3.20
pre-commit==1.17.0
Sphinx==2.1.1
django-extensions==2.1.7
Werkzeug==0.15.4
django-debug-toolbar==1.11
# improved REPL
ipdb==0.12 | <|file_sep|>original/requirements/local.txt
# Local development dependencies go here
-r test.txt
black==19.3b0
isort==4.3.20
pre-commit==1.17.0
Sphinx==2.1.0
django-extensions==2.1.7
Werkzeug==0.15.4
django-debug-toolbar==1.11
# improved REPL
ipdb==0.12
<|file_sep|>current/requirements/local.txt
# Local development... | 84d0c38dae80847dbfa6f8d62eee55c4cafb0d32 | requirements/local.txt | requirements/local.txt | Text |
<|file_sep|>original/src/Perl6/Metamodel/EXPORTHOW.pm
# Bind the HOWs into the EXPORTHOW package under the package declarator
# names.
my module EXPORTHOW {
($?PACKAGE.WHO)<package> := Perl6::Metamodel::PackageHOW;
($?PACKAGE.WHO)<module> := Perl6::Metamodel::ModuleHOW;
($?PACKAGE.WHO)<class> ... | # Bind the HOWs into the EXPORTHOW package under the package declarator
# names.
my module EXPORTHOW {
($?PACKAGE.WHO)<package> := Perl6::Metamodel::PackageHOW;
($?PACKAGE.WHO)<module> := Perl6::Metamodel::ModuleHOW;
($?PACKAGE.WHO)<class> := Perl6::Metamodel::ClassHOW;
($?PACKAGE.WHO)... | <|file_sep|>original/src/Perl6/Metamodel/EXPORTHOW.pm
# Bind the HOWs into the EXPORTHOW package under the package declarator
# names.
my module EXPORTHOW {
($?PACKAGE.WHO)<package> := Perl6::Metamodel::PackageHOW;
($?PACKAGE.WHO)<module> := Perl6::Metamodel::ModuleHOW;
($?PACKAGE.WHO)<class> ... | ca8a1d28d314def88ea4629313eed9521c5cb46e | src/Perl6/Metamodel/EXPORTHOW.pm | src/Perl6/Metamodel/EXPORTHOW.pm | Perl |
<|file_sep|>original/README.md
Angular D3 Charts
=================
Angular directives for D3 charts
<|file_sep|>current/README.md
Angular D3 Charts
=================
Angular directives for D3 charts
<|file_sep|>updated/README.md | Angular D3 Charts [](https://travis-ci.org/elesdoar/angular-d3-charts)
=================
Angular directives for D3 charts | <|file_sep|>original/README.md
Angular D3 Charts
=================
Angular directives for D3 charts
<|file_sep|>current/README.md
Angular D3 Charts
=================
Angular directives for D3 charts
<|file_sep|>updated/README.md
Angular D3 Charts [
updated:
<|file_sep|>original/tools/cmake/app.cmake
find_program(CCACHE "ccache")
if(CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif()
include(${MBED_CONFIG_PATH}/mbed_confi... |
find_program(CCACHE "ccache")
if(CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif()
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
# Set default toolchain file
if(NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED)
set(MBED_TOOLCHAIN_FILE_USED TRUE CACHE... | <|file_sep|>tools/cmake/app.cmake.diff
original:
set(MBED_TOOLCHAIN_FILE_USED FALSE)
updated:
<|file_sep|>original/tools/cmake/app.cmake
find_program(CCACHE "ccache")
if(CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif()
include(${MBED_CONFIG_PATH}/mbed_confi... | a70edcda0ab4c1c7a2b046a48540d87271eb8edc | tools/cmake/app.cmake | tools/cmake/app.cmake | CMake |
<|file_sep|>original/db/migrate/20180719122729_create_oauth_apps.rb
include Carto::Db::MigrationHelper
migration(
Proc.new do
create_table :oauth_apps do
Uuid :id, primary_key: true, default: 'uuid_generate_v4()'.lit
foreign_key :user_id, :users, type: :uuid, null: false, index: true, on_dele... |
include Carto::Db::MigrationHelper
migration(
Proc.new do
create_table :oauth_apps do
Uuid :id, primary_key: true, default: 'uuid_generate_v4()'.lit
foreign_key :user_id, :users, type: :uuid, null: false, index: true, on_delete: :restrict
String :name, null: false
DateTime ... | <|file_sep|>original/db/migrate/20180719122729_create_oauth_apps.rb
include Carto::Db::MigrationHelper
migration(
Proc.new do
create_table :oauth_apps do
Uuid :id, primary_key: true, default: 'uuid_generate_v4()'.lit
foreign_key :user_id, :users, type: :uuid, null: false, index: true, on_dele... | e406345a04a35243081e545e10644add52e08c62 | db/migrate/20180719122729_create_oauth_apps.rb | db/migrate/20180719122729_create_oauth_apps.rb | Ruby |
<|file_sep|>original/src/title/TitlePlain.js
import type { Context } from '../types';
type Props = {
text: string,
color: string,
};
export default class TitlePrivate extends PureComponent<Props> {
context: Context;
props: Props;
static contextTypes = {
styles: () => null,
};
render() {
const ... | import type { Context } from '../types';
type Props = {
text: string,
color: string,
};
export default class TitlePrivate extends PureComponent<Props> {
context: Context;
props: Props;
static contextTypes = {
styles: () => null,
};
render() {
const { styles } = this.context;
const { text, ... | <|file_sep|>original/src/title/TitlePlain.js
import type { Context } from '../types';
type Props = {
text: string,
color: string,
};
export default class TitlePrivate extends PureComponent<Props> {
context: Context;
props: Props;
static contextTypes = {
styles: () => null,
};
render() {
const ... | bdd12499d4d924ec8283c5b742a059e6997c95fb | src/title/TitlePlain.js | src/title/TitlePlain.js | JavaScript |
<|file_sep|>xml/text.go.diff
original:
updated:
/*
#include "helper.h"
#include <string.h>
const xmlChar xmlStringTextNoenc[] = { 't', 'e', 'x', 't', 'n', 'o', 'e', 'n', 'c', 0 };
const xmlChar* disableEscaping = xmlStringTextNoenc;
*/
import "C"
<|file_sep|>original/xml/text.go
package xml
type TextNode struct {
*... | /*
#include "helper.h"
#include <string.h>
const xmlChar xmlStringTextNoenc[] = { 't', 'e', 'x', 't', 'n', 'o', 'e', 'n', 'c', 0 };
const xmlChar* disableEscaping = xmlStringTextNoenc;
*/
import "C"
type TextNode struct {
*XmlNode
}
// DisableOutputEscaping disables the usual safeguards against creating invalid XML ... | <|file_sep|>xml/text.go.diff
original:
updated:
/*
#include "helper.h"
#include <string.h>
const xmlChar xmlStringTextNoenc[] = { 't', 'e', 'x', 't', 'n', 'o', 'e', 'n', 'c', 0 };
const xmlChar* disableEscaping = xmlStringTextNoenc;
*/
import "C"
<|file_sep|>original/xml/text.go
package xml
type TextNode struct {
*... | 0b1a110f6cb03bf54ab64ff6d58a6d73a807bd5c | xml/text.go | xml/text.go | Go |
<|file_sep|>original/package.json
{
"name": "node-apn-server",
"version": "0.0.1",
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
},
"dependencies": {
"apn": "1.1.6",
"qs": "0.4.2",
"express": "3.0.0rc3",
"felix-couchdb": "1.0.3",
"jade": "*",
"bcrypt": "*",
"connect-flash":... | {
"name": "node-apn-server",
"version": "0.0.1",
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
},
"dependencies": {
"apn": "1.1.6",
"qs": "6.9.0",
"express": "3.0.0rc3",
"felix-couchdb": "1.0.3",
"jade": "*",
"bcrypt": "*",
"connect-flash": "*"
},
"devDependencies":{
... | <|file_sep|>original/package.json
{
"name": "node-apn-server",
"version": "0.0.1",
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
},
"dependencies": {
"apn": "1.1.6",
"qs": "0.4.2",
"express": "3.0.0rc3",
"felix-couchdb": "1.0.3",
"jade": "*",
"bcrypt": "*",
"connect-flash":... | de5d17af8230f9c02c878b2a812cacd551a840b8 | package.json | package.json | JSON |
<|file_sep|>package.json.diff
original:
"test:lint": "eslint ./src ./test",
"test:unit": "mocha"
updated:
"test:lint": "eslint --color ./src ./test",
"test:unit": "mocha --colors"
<|file_sep|>package.json.diff
original:
"postcss": "^5.2.2"
updated:
"postcss": "^5.2.4"
<|file_sep|>package.json.di... | "main": "./src/main.js",
"scripts": {
"test": "npm run test:lint && npm run test:unit",
"test:lint": "eslint --color ./src ./test",
"test:unit": "mocha --colors"
},
"authors": [
"Daniel Tedman (http://danieltedman.com)",
"Jeff Teng"
],
"license": "MIT",
"repository": "https://github.co... | <|file_sep|>package.json.diff
original:
"test:lint": "eslint ./src ./test",
"test:unit": "mocha"
updated:
"test:lint": "eslint --color ./src ./test",
"test:unit": "mocha --colors"
<|file_sep|>package.json.diff
original:
"postcss": "^5.2.2"
updated:
"postcss": "^5.2.4"
<|file_sep|>package.json.di... | 191259e6b5e4eed5d3e2464f050716f07b09348a | package.json | package.json | JSON |
<|file_sep|>original/gatling-core/src/main/scala/io/gatling/core/util/UnsafeHelper.scala
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gatling.core.util
import scala.util.Try
import sun.misc.Unsafe
object UnsafeHelper {
val unsafe: Option[Un... | * See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gatling.core.util
import scala.util.Try
import sun.misc.Unsafe
object UnsafeHelper {
val unsafe: Option[Unsafe] = Try {
val unsafeField = classOf[Unsafe].getDeclaredField("theUnsafe")
unsafeF... | <|file_sep|>original/gatling-core/src/main/scala/io/gatling/core/util/UnsafeHelper.scala
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gatling.core.util
import scala.util.Try
import sun.misc.Unsafe
object UnsafeHelper {
val unsafe: Option[Un... | 80aa5b8df5fb1ba5355b2b9c75bd5dc3989b02d7 | gatling-core/src/main/scala/io/gatling/core/util/UnsafeHelper.scala | gatling-core/src/main/scala/io/gatling/core/util/UnsafeHelper.scala | Scala |
<|file_sep|>original/package.json
{
"name": "react-native-maps",
"description": "React Native Mapview component for iOS + Android",
"main": "index.js",
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
"version": "0.8.0",
"scripts": {
"start": "react-native start",
"lint": "eslint ."
... | {
"name": "react-native-maps",
"description": "React Native Mapview component for iOS + Android",
"main": "index.js",
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
"version": "0.7.1",
"scripts": {
"start": "react-native start",
"lint": "eslint ."
},
"repository": {
"type": "... | <|file_sep|>original/package.json
{
"name": "react-native-maps",
"description": "React Native Mapview component for iOS + Android",
"main": "index.js",
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
"version": "0.8.0",
"scripts": {
"start": "react-native start",
"lint": "eslint ."
... | 0472bd232ad6fd67b4e5dc8ec80cf02efc486fee | package.json | package.json | JSON |
<|file_sep|>ruby/client.rb.diff
original:
if msg.to_i != -1 && msg.to_s.size > 0
updated:
if msg
<|file_sep|>original/ruby/client.rb
socket.subscribe ""
pattern = /^(\d{1,3}):(\d{1,5})$/
for ip in [9, 25]
address = "tcp://192.168.1.#{ip}:6665"
rc = socket.connect(address)
end
while true
msg = socket.recv
... | socket.subscribe ""
pattern = /^(\d{1,3}):(\d{1,5})$/
for ip in [9, 25]
address = "tcp://192.168.1.#{ip}:6665"
rc = socket.connect(address)
end
while true
msg = socket.recv
if msg
result = pattern.match(msg.to_s)
puts "Service discovered: #{msg.inspect}"
query(context, result[1], result[2]) if r... | <|file_sep|>ruby/client.rb.diff
original:
if msg.to_i != -1 && msg.to_s.size > 0
updated:
if msg
<|file_sep|>original/ruby/client.rb
socket.subscribe ""
pattern = /^(\d{1,3}):(\d{1,5})$/
for ip in [9, 25]
address = "tcp://192.168.1.#{ip}:6665"
rc = socket.connect(address)
end
while true
msg = socket.recv
... | 63b62778cad9781832f60809ae46c71276117b39 | ruby/client.rb | ruby/client.rb | Ruby |
<|file_sep|>SOAPpy/tests/alanbushTest.py.diff
original:
MethodNamespaceURI = 'urn:alanbushtrust-org-uk:soap:methods'
SoapAction = MethodNamespaceURI + "#GetCategories"
updated:
MethodNamespaceURI = 'urn:alanbushtrust-org-uk:soap.methods'
SoapAction = MethodNamespaceURI + ".GetCategories"
<|file_sep|>original/SOAPpy... | #!/usr/bin/env python
# Copyright (c) 2001 actzero, inc. All rights reserved.
import sys
sys.path.insert (1, '..')
import SOAP
ident = '$Id$'
SoapEndpointURL = 'http://www.alanbushtrust.org.uk/soap/compositions.asp'
MethodNamespaceURI = 'urn:alanbushtrust-org-uk:soap.methods'
SoapAction = MethodNamespaceURI + ... | <|file_sep|>SOAPpy/tests/alanbushTest.py.diff
original:
MethodNamespaceURI = 'urn:alanbushtrust-org-uk:soap:methods'
SoapAction = MethodNamespaceURI + "#GetCategories"
updated:
MethodNamespaceURI = 'urn:alanbushtrust-org-uk:soap.methods'
SoapAction = MethodNamespaceURI + ".GetCategories"
<|file_sep|>original/SOAPpy... | fcd85a1b15ca8b82f892bba171c21f9a1b4f6e4a | SOAPpy/tests/alanbushTest.py | SOAPpy/tests/alanbushTest.py | Python |
<|file_sep|>original/package.json
"type": "git",
"url": "https://github.com/kchung/fullslate-node.git"
},
"engines": {
"node": ">= v0.12.0"
},
"devDependencies": {
"babel": "~5.8.21",
"chai": "~3.2.0",
"chai-as-promised": "~5.1.0",
"mocha": "~2.2.5"
},
"dependencies": {
"supe... | "type": "git",
"url": "https://github.com/kchung/fullslate-node.git"
},
"engines": {
"node": ">= v0.12.0"
},
"devDependencies": {
"babel": "~5.8.21",
"chai": "~3.2.0",
"chai-as-promised": "~5.1.0",
"mocha": "~2.2.5"
},
"dependencies": {
"superagent": "^1.3.0"
},
"main": "... | <|file_sep|>original/package.json
"type": "git",
"url": "https://github.com/kchung/fullslate-node.git"
},
"engines": {
"node": ">= v0.12.0"
},
"devDependencies": {
"babel": "~5.8.21",
"chai": "~3.2.0",
"chai-as-promised": "~5.1.0",
"mocha": "~2.2.5"
},
"dependencies": {
"supe... | bbebf23be899d5369011149245b3c293e0405660 | package.json | package.json | JSON |
<|file_sep|>tests/utilities/test_customtreeview.py.diff
original:
import unittest
from qtpy.QtWidgets import QApplication
updated:
import pytest
<|file_sep|>tests/utilities/test_customtreeview.py.diff
original:
class CustomTreeViewTests(unittest.TestCase):
def setUp(self):
self.main_window = QApplication([]... | from __future__ import absolute_import, print_function
import pytest
from addie.utilities.customtreeview import CustomizedTreeView
@pytest.fixture
def custom_tree_view(qtbot):
return CustomizedTreeView(None)
def test_get_selected_items(qtbot, custom_tree_view):
"""Test get_selected_items in tree of Customiz... | <|file_sep|>tests/utilities/test_customtreeview.py.diff
original:
import unittest
from qtpy.QtWidgets import QApplication
updated:
import pytest
<|file_sep|>tests/utilities/test_customtreeview.py.diff
original:
class CustomTreeViewTests(unittest.TestCase):
def setUp(self):
self.main_window = QApplication([]... | 14be519ba4bb09957865f1810c88c02f6b359c48 | tests/utilities/test_customtreeview.py | tests/utilities/test_customtreeview.py | Python |
<|file_sep|>original/.travis.yml
language: elixir
elixir: '1.4.2'
otp_release: '19.3'
env:
- REDIS_URL=redis://localhost:6379
<|file_sep|>current/.travis.yml
language: elixir
elixir: '1.4.2'
otp_release: '19.3'
env:
- REDIS_URL=redis://localhost:6379
<|file_sep|>updated/.travis.yml | language: elixir
elixir: '1.4.2'
otp_release: '19.3'
env:
- REDIS_URL=redis://localhost:6379
cache:
directories:
- assets/node_modules
- deps
- _build | <|file_sep|>original/.travis.yml
language: elixir
elixir: '1.4.2'
otp_release: '19.3'
env:
- REDIS_URL=redis://localhost:6379
<|file_sep|>current/.travis.yml
language: elixir
elixir: '1.4.2'
otp_release: '19.3'
env:
- REDIS_URL=redis://localhost:6379
<|file_sep|>updated/.travis.yml
language: elixir
elixir: '1.4.2'
... | d2e502b0e3c13b72b5046ed10ad0a8a7721f99fd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/watch_tower/server/views/_file.haml
- present file do |presenter|
%article.file[file]
%div
.path= presenter.path
.elapsed= presenter.elapsed
.clearfix
.percentage_img_container
.percentage
%img.percentage_img{src: asset_path('percentage.png'), alt: "#{f... | - present file do |presenter|
%article.file[file]
%div
.path= presenter.path
.elapsed= presenter.elapsed
.clearfix
.percentage_img_container
.percentage
%img.percentage_img{src: asset_path('percentage.png'), alt: "#{presenter.percent}% of total time", 'data-width' => presenter.... | <|file_sep|>original/lib/watch_tower/server/views/_file.haml
- present file do |presenter|
%article.file[file]
%div
.path= presenter.path
.elapsed= presenter.elapsed
.clearfix
.percentage_img_container
.percentage
%img.percentage_img{src: asset_path('percentage.png'), alt: "#{f... | 91a84a1c02550764416e82456c4bb696588b5614 | lib/watch_tower/server/views/_file.haml | lib/watch_tower/server/views/_file.haml | Haml |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.