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/data/vcfClean.py
<|file_sep|>current/data/vcfClean.py
<|file_sep|>updated/data/vcfClean.py | #!/usr/bin/env python2.7
"""
The 1000 Genomes VCF files have some SNPs which are not congruant with
the fasta sequence. This script simply deletes such cases so they
don't cause trouble down the road
"""
import argparse, sys, os, os.path, random, subprocess, shutil, itertools
from Bio import SeqIO
from Bio.Seq ... | <|file_sep|>original/data/vcfClean.py
<|file_sep|>current/data/vcfClean.py
<|file_sep|>updated/data/vcfClean.py
#!/usr/bin/env python2.7
"""
The 1000 Genomes VCF files have some SNPs which are not congruant with
the fasta sequence. This script simply deletes such cases so they
don't cause trouble down the road
... | 532e84e2dedb83c2584fcd4122f0f3f905413b63 | data/vcfClean.py | data/vcfClean.py | Python |
<|file_sep|>original/public/locales/hsb/send.ftl
// Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteSubtitle = webeksperiment
siteFeedback = Komentar
uploadPageHeader = Priwatne, zaklučowane dźělenje datajow
uploadPageExplainer = Pósćelće dataje přez wěstny, priwatny a zaklučowany wot... | // Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteSubtitle = webeksperiment
siteFeedback = Komentar
uploadPageHeader = Priwatne, zaklučowane dźělenje datajow
uploadPageExplainer = Pósćelće dataje přez wěstny, priwatny a zaklučowany wotkaz, kotryž awtomatisće spadnje, zo njebychu waše... | <|file_sep|>original/public/locales/hsb/send.ftl
// Firefox Send is a brand name and should not be localized.
title = Firefox Send
siteSubtitle = webeksperiment
siteFeedback = Komentar
uploadPageHeader = Priwatne, zaklučowane dźělenje datajow
uploadPageExplainer = Pósćelće dataje přez wěstny, priwatny a zaklučowany wot... | 4946e9c38291c262f552dcd6df93f165fe8c723a | public/locales/hsb/send.ftl | public/locales/hsb/send.ftl | FreeMarker |
<|file_sep|>original/.config/nvim/lua/user/colorscheme.lua
vim.o.termguicolors = true
local base16 = require("user.utils.base16")
local background = base16.background()
if background ~= nil then
vim.opt.background = background
end
vim.cmd([[let base16colorspace=256]])
local colorscheme = base16.theme()
if colorsch... |
local background = base16.background()
if background ~= nil then
vim.opt.background = background
end
vim.cmd([[let base16colorspace=256]])
local colorscheme = base16.theme()
if colorscheme ~= nil then
vim.cmd("colorscheme " .. colorscheme)
end
vim.cmd([[hi link @variable Identifier]])
vim.cmd([[hi @function.built... | <|file_sep|>original/.config/nvim/lua/user/colorscheme.lua
vim.o.termguicolors = true
local base16 = require("user.utils.base16")
local background = base16.background()
if background ~= nil then
vim.opt.background = background
end
vim.cmd([[let base16colorspace=256]])
local colorscheme = base16.theme()
if colorsch... | a6238011a5cfcf9e05e712c720a1485c1008eb21 | .config/nvim/lua/user/colorscheme.lua | .config/nvim/lua/user/colorscheme.lua | Lua |
<|file_sep|>original/lib/blimp.rb
require 'liquid'
require 'maruku'
require 'mime/types'
require 'pathname'
require 'active_support/core_ext'
require_relative "blimp/source"
require_relative "blimp/sources/disk_source"
require_relative "blimp/sources/fake_source"
require_relative "blimp/sources/git_source"
require_rel... | require 'liquid'
require 'maruku'
require 'mime/types'
require 'pathname'
require 'active_support/core_ext'
require_relative "blimp/source"
require_relative "blimp/sources/disk_source"
require_relative "blimp/sources/fake_source"
require_relative "blimp/sources/git_source"
require_relative "blimp/source_dir"
require_... | <|file_sep|>original/lib/blimp.rb
require 'liquid'
require 'maruku'
require 'mime/types'
require 'pathname'
require 'active_support/core_ext'
require_relative "blimp/source"
require_relative "blimp/sources/disk_source"
require_relative "blimp/sources/fake_source"
require_relative "blimp/sources/git_source"
require_rel... | 8e7dab650e2b3a055b449b5b03327e2cc2094c55 | lib/blimp.rb | lib/blimp.rb | Ruby |
<|file_sep|>original/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py
<|file_sep|>current/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py
<|file_sep|>updated/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py | # Copyright 2016 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | <|file_sep|>original/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py
<|file_sep|>current/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py
<|file_sep|>updated/gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py
# Copyright 20... | 6a5c2714a6d120c75ed65ae8d8d686ae692f7cb7 | gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py | gnocchi/indexer/alembic/versions/ffc7bbeec0b0_migrate_legacy_resources_to_db2.py | Python |
<|file_sep|>original/packages/dh/dhrun.yaml
<|file_sep|>current/packages/dh/dhrun.yaml
<|file_sep|>updated/packages/dh/dhrun.yaml | homepage: ''
changelog-type: markdown
hash: 3f66fb533a750ba717fb2f47fe5cc959bd14241b77825fe72a66de9953b7edf3
test-bench-deps:
bytestring: (==0.10.8 || >0.10.8) && <0.11
dhrun-lib: -any
unliftio: -any
base: (==4.11.1 || >4.11.1) && <4.12
tasty-golden: -any
dhall: (==1.24.0 || >1.24.0) && <1.25
hspec: -any
... | <|file_sep|>original/packages/dh/dhrun.yaml
<|file_sep|>current/packages/dh/dhrun.yaml
<|file_sep|>updated/packages/dh/dhrun.yaml
homepage: ''
changelog-type: markdown
hash: 3f66fb533a750ba717fb2f47fe5cc959bd14241b77825fe72a66de9953b7edf3
test-bench-deps:
bytestring: (==0.10.8 || >0.10.8) && <0.11
dhrun-lib: -any... | cd1b0eba7b8801890aa702f346c50dc7b46c7309 | packages/dh/dhrun.yaml | packages/dh/dhrun.yaml | YAML |
<|file_sep|>src/Twig/IntlFormatterExtension.php.diff
original:
use Budgegeria\IntlFormat\IntlFormat;
updated:
use Budgegeria\IntlFormat\IntlFormatInterface;
<|file_sep|>src/Twig/IntlFormatterExtension.php.diff
original:
* @var IntlFormat
updated:
* @var IntlFormatInterface
<|file_sep|>original/src/Twig/IntlFo... | use Twig\TwigFilter;
use Twig\TwigFunction;
class IntlFormatterExtension extends AbstractExtension
{
/**
* @var IntlFormatInterface
*/
private $intlFormat;
public function __construct(IntlFormatInterface $intlFormat)
{
$this->intlFormat = $intlFormat;
}
public function getFi... | <|file_sep|>src/Twig/IntlFormatterExtension.php.diff
original:
use Budgegeria\IntlFormat\IntlFormat;
updated:
use Budgegeria\IntlFormat\IntlFormatInterface;
<|file_sep|>src/Twig/IntlFormatterExtension.php.diff
original:
* @var IntlFormat
updated:
* @var IntlFormatInterface
<|file_sep|>original/src/Twig/IntlFo... | 3ef0c2af16784b362e50171818be33199d05eccf | src/Twig/IntlFormatterExtension.php | src/Twig/IntlFormatterExtension.php | PHP |
<|file_sep|>original/spec/spec_helper_acceptance.rb
end
end
end
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Readable test descriptions
c.formatter = :documentation
# Configure all nodes in nodeset
c.before :suite do
# Install mod... | end
end
end
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Readable test descriptions
c.formatter = :documentation
# Configure all nodes in nodeset
c.before :suite do
# Install module and dependencies
puppet_module_install(:sour... | <|file_sep|>original/spec/spec_helper_acceptance.rb
end
end
end
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Readable test descriptions
c.formatter = :documentation
# Configure all nodes in nodeset
c.before :suite do
# Install mod... | 726377a347a9e571aedc14f71761ff410a24f702 | spec/spec_helper_acceptance.rb | spec/spec_helper_acceptance.rb | Ruby |
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
*
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
origina... | {
$resolver = new ArgumentResolver();
$arguments = $resolver->getArguments($request, $this->callback);
ob_start();
$response = call_user_func_array($this->callback, $arguments);
$echoedResponse = ob_get_contents();
ob_end_clean();
if ($response instanceof Res... | <|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
original:
updated:
*
<|file_sep|>concrete/src/Routing/ClosureRouteAction.php.diff
origina... | 8ad8aa8a4f5842992d56798dc36cc07a7aee7165 | concrete/src/Routing/ClosureRouteAction.php | concrete/src/Routing/ClosureRouteAction.php | PHP |
<|file_sep|>original/dev/css/main.scss
// Importing templates
@import "bower_components/Dripicons/webfont";
@import "template/reset";
@import "template/vars";
@import "template/global";
@import "bower_components/prism/themes/prism";
@import "template/prism-github";
// Importing modules
@import "modules/layout";
@impor... | // Importing templates
@import "bower_components/Dripicons/webfont";
@import "template/reset";
@import "template/vars";
@import "template/global";
@import "bower_components/prism/themes/prism";
@import "template/prism-github";
@import "template/tiny-slider";
// Importing modules
@import "modules/layout";
@import "modu... | <|file_sep|>original/dev/css/main.scss
// Importing templates
@import "bower_components/Dripicons/webfont";
@import "template/reset";
@import "template/vars";
@import "template/global";
@import "bower_components/prism/themes/prism";
@import "template/prism-github";
// Importing modules
@import "modules/layout";
@impor... | 0af6094693c97df1c0707a15452059dc5abb1935 | dev/css/main.scss | dev/css/main.scss | SCSS |
<|file_sep|>docs/software-emulation.md.diff
original:
developerConfiguration:
useEmulation: "true"
updated:
configuration:
developerConfiguration:
useEmulation: true
<|file_sep|>original/docs/software-emulation.md
interface instead.
# Configuration
Enabling software emulation is a cluster-wide set... | - in-kernel virtio-net backend emulation via `/dev/vhost-net` will not be
attempted. QEMU userland virtio NIC emulation will be used for virtio-net
interface instead.
# Configuration
Enabling software emulation is a cluster-wide setting, and is activated by
editing the kubevirt-config as follows:
```bash
cluster... | <|file_sep|>docs/software-emulation.md.diff
original:
developerConfiguration:
useEmulation: "true"
updated:
configuration:
developerConfiguration:
useEmulation: true
<|file_sep|>original/docs/software-emulation.md
interface instead.
# Configuration
Enabling software emulation is a cluster-wide set... | f83a123773cc13e2c3060526e649880ed075b312 | docs/software-emulation.md | docs/software-emulation.md | Markdown |
<|file_sep|>samples/scripts/selection/checkFreeMemory.rb.diff
original:
updated:
expectedMemorySize = 1073741824
<|file_sep|>original/samples/scripts/selection/checkFreeMemory.rb
require 'java'
SelectionUtils = Java::org.ow2.proactive.scripting.helper.selection.SelectionUtils
#check if free memory is at least 1Go
i... | require 'java'
SelectionUtils = Java::org.ow2.proactive.scripting.helper.selection.SelectionUtils
expectedMemorySize = 1073741824
#check if free memory is at least 1Go
if SelectionUtils.checkFreeMemory(expectedMemorySize)
$selected = true;
else
$selected = false;
end | <|file_sep|>samples/scripts/selection/checkFreeMemory.rb.diff
original:
updated:
expectedMemorySize = 1073741824
<|file_sep|>original/samples/scripts/selection/checkFreeMemory.rb
require 'java'
SelectionUtils = Java::org.ow2.proactive.scripting.helper.selection.SelectionUtils
#check if free memory is at least 1Go
i... | 5aa77f8eaff17d310b217a1dd7f21025a31651b1 | samples/scripts/selection/checkFreeMemory.rb | samples/scripts/selection/checkFreeMemory.rb | Ruby |
<|file_sep|>original/_posts/2015-4-30-output-json-in-handlebars.markdown
<|file_sep|>current/_posts/2015-4-30-output-json-in-handlebars.markdown
<|file_sep|>updated/_posts/2015-4-30-output-json-in-handlebars.markdown | ---
layout: post
title: How to quickly output JSON in handlebars
summary: How to quickly output a JSON object into your handlebars templates
---
Using Express, I find myself in need of having some bootstrapped data for the front end when the backend has done some processing. Here is a really easy way to output a json ... | <|file_sep|>original/_posts/2015-4-30-output-json-in-handlebars.markdown
<|file_sep|>current/_posts/2015-4-30-output-json-in-handlebars.markdown
<|file_sep|>updated/_posts/2015-4-30-output-json-in-handlebars.markdown
---
layout: post
title: How to quickly output JSON in handlebars
summary: How to quickly output a JSO... | 0e6458866ad1954a90d82876307138543f48663c | _posts/2015-4-30-output-json-in-handlebars.markdown | _posts/2015-4-30-output-json-in-handlebars.markdown | Markdown |
<|file_sep|>original/.gitlab.yml
<|file_sep|>current/.gitlab.yml
<|file_sep|>updated/.gitlab.yml | image: gebish/ci:v1
modules:
stage: check
script:
- ./gradlew --no-daemon -p module -Pci -g .gradle-home check --continue
- ./gradlew --no-daemon -p compatibility -Pci -g .gradle-home check --continue | <|file_sep|>original/.gitlab.yml
<|file_sep|>current/.gitlab.yml
<|file_sep|>updated/.gitlab.yml
image: gebish/ci:v1
modules:
stage: check
script:
- ./gradlew --no-daemon -p module -Pci -g .gradle-home check --continue
- ./gradlew --no-daemon -p compatibility -Pci -g .gradle-home check --continue | 97aee16772b43d8a567f203ab02a1666bf078d1b | .gitlab.yml | .gitlab.yml | YAML |
<|file_sep|>original/_includes/post_detail.html
{% assign page = post %}
<h1 class="entry-title">
{% if page.title %}
<a href="{{ root_url }}{{ page.url }}">{{ page.title }}</a>
{% endif %}
{% if post.title %}
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
{% endif %}
</h1>
<div class="entry-conte... | <h1 class="entry-title">
{% if page.title %}
<a href="{{ root_url }}{{ page.url }}">{{ page.title }}</a>
{% endif %}
{% if post.title %}
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
{% endif %}
</h1>
<div class="entry-content">{{ content }}</div> | <|file_sep|>original/_includes/post_detail.html
{% assign page = post %}
<h1 class="entry-title">
{% if page.title %}
<a href="{{ root_url }}{{ page.url }}">{{ page.title }}</a>
{% endif %}
{% if post.title %}
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
{% endif %}
</h1>
<div class="entry-conte... | af4359f956ad037e91f54a8f0fc0a0a7548a1439 | _includes/post_detail.html | _includes/post_detail.html | HTML |
<|file_sep|>original/package.json
{
"name": "fh-service-salesforce-cloud",
"version": "0.2.0",
"dependencies": {
"express": "4.0.0",
"fh-mbaas-api": "6.1.3",
"request": "~2.40.0",
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"node-salesforce": "*"
},
"devDependencies": {
"grunt-concu... | {
"name": "fh-service-salesforce-cloud",
"version": "0.2.0",
"dependencies": {
"express": "4.0.0",
"fh-mbaas-api": "6.1.4",
"request": "~2.40.0",
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"node-salesforce": "*"
},
"devDependencies": {
"grunt-concurrent": "latest",
"grunt-contr... | <|file_sep|>original/package.json
{
"name": "fh-service-salesforce-cloud",
"version": "0.2.0",
"dependencies": {
"express": "4.0.0",
"fh-mbaas-api": "6.1.3",
"request": "~2.40.0",
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"node-salesforce": "*"
},
"devDependencies": {
"grunt-concu... | 2bd05141b87b241ef77083acf5353bb11f91c24a | package.json | package.json | JSON |
<|file_sep|>.travis.yml.diff
original:
updated:
- php: "5.4"
- php: "5.5"
<|file_sep|>original/.travis.yml
env: USE_PSALM=1
- php: "nightly"
env: USE_PSALM=1
- php: "hhvm"
env: USE_PSALM=1
allow_failures:
- php: "nightly"
- php: "hhvm"
install:
- if [[ $USE_PSALM -eq 1 ... | env: USE_PSALM=1
- php: "nightly"
env: USE_PSALM=1
- php: "hhvm"
env: USE_PSALM=1
allow_failures:
- php: "5.4"
- php: "5.5"
- php: "nightly"
- php: "hhvm"
install:
- if [[ $USE_PSALM -eq 1 ]]; then composer require --dev "vimeo/psalm:dev-master"; fi
- composer install... | <|file_sep|>.travis.yml.diff
original:
updated:
- php: "5.4"
- php: "5.5"
<|file_sep|>original/.travis.yml
env: USE_PSALM=1
- php: "nightly"
env: USE_PSALM=1
- php: "hhvm"
env: USE_PSALM=1
allow_failures:
- php: "nightly"
- php: "hhvm"
install:
- if [[ $USE_PSALM -eq 1 ... | c8b9df6457085dacc6ef132bae139f2a19b70a53 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements_dev.txt
pip==10.0.0
wheel==0.31.0
watchdog==0.8.3
flake8==3.5.0
tox==3.0.0
coverage==4.5.1
Sphinx==1.7.2
cryptography==2.2.2
PyYAML==3.12
pytest==3.5.0
pytest-runner==4.2
<|file_sep|>current/requirements_dev.txt
pip==10.0.0
wheel==0.31.0
watchdog==0.8.3
flake8==3.5.0
tox==3.0.0
coverag... | pip==10.0.1
wheel==0.31.0
watchdog==0.8.3
flake8==3.5.0
tox==3.0.0
coverage==4.5.1
Sphinx==1.7.2
cryptography==2.2.2
PyYAML==3.12
pytest==3.5.0
pytest-runner==4.2 | <|file_sep|>original/requirements_dev.txt
pip==10.0.0
wheel==0.31.0
watchdog==0.8.3
flake8==3.5.0
tox==3.0.0
coverage==4.5.1
Sphinx==1.7.2
cryptography==2.2.2
PyYAML==3.12
pytest==3.5.0
pytest-runner==4.2
<|file_sep|>current/requirements_dev.txt
pip==10.0.0
wheel==0.31.0
watchdog==0.8.3
flake8==3.5.0
tox==3.0.0
coverag... | cca8bc4784c6d698ea15180b0ed0cfd7ce1f975e | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>package.json.diff
original:
"test": "echo \"Error: no test specified\" && exit 1"
updated:
"test": "tape tests/*.js"
<|file_sep|>package.json.diff
original:
"tape": "~2.12.0",
"jsdom": "~0.10.3"
updated:
"tape": "~2.12.0"
<|file_sep|>original/package.json
"devDependencies": {
"grun... | "grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-uglify": "~0.2.7",
"tape": "~2.12.0"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/6..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad... | <|file_sep|>package.json.diff
original:
"test": "echo \"Error: no test specified\" && exit 1"
updated:
"test": "tape tests/*.js"
<|file_sep|>package.json.diff
original:
"tape": "~2.12.0",
"jsdom": "~0.10.3"
updated:
"tape": "~2.12.0"
<|file_sep|>original/package.json
"devDependencies": {
"grun... | c26c76d0c99a8a261530741f0919f4ceb5817cb1 | package.json | package.json | JSON |
<|file_sep|>original/cca-spec-babel.rb
url "http://www.cca-forum.org/download/cca-tools/cca-tools-latest/cca-spec-babel-0.8.6.tar.gz"
sha1 "a149b96bd9945b2813d32467cafc9e7fe59d4248"
depends_on :fortran
depends_on "libxml2"
depends_on "babel"
def install
system "./configure", "--disable-contrib",
... | url "http://www.cca-forum.org/download/cca-tools/cca-tools-latest/cca-spec-babel-0.8.6.tar.gz"
sha1 "a149b96bd9945b2813d32467cafc9e7fe59d4248"
depends_on :fortran
depends_on "libxml2"
depends_on "babel"
def install
system "./configure", "--disable-contrib",
"--with-babel-config=#{HOMEBREW_PREFIX... | <|file_sep|>original/cca-spec-babel.rb
url "http://www.cca-forum.org/download/cca-tools/cca-tools-latest/cca-spec-babel-0.8.6.tar.gz"
sha1 "a149b96bd9945b2813d32467cafc9e7fe59d4248"
depends_on :fortran
depends_on "libxml2"
depends_on "babel"
def install
system "./configure", "--disable-contrib",
... | 2df8262e868da47f3ac7def375e6b71f23f65b8f | cca-spec-babel.rb | cca-spec-babel.rb | Ruby |
<|file_sep|>app/controllers/user_registrations_controller.rb.diff
original:
if resource.save
session[:spree_user_signup] = true
session[:confirmation_return_url] = params[:return_url]
associate_user
updated:
unless resource.save
return render_error(@user.errors)
end
<|file_sep|>app/c... |
session[:spree_user_signup] = true
session[:confirmation_return_url] = params[:return_url]
associate_user
respond_to do |format|
format.html do
set_flash_message(:success, :signed_up_but_unconfirmed)
redirect_to after_sign_in_path_for(@user)
end
format.js do
r... | <|file_sep|>app/controllers/user_registrations_controller.rb.diff
original:
if resource.save
session[:spree_user_signup] = true
session[:confirmation_return_url] = params[:return_url]
associate_user
updated:
unless resource.save
return render_error(@user.errors)
end
<|file_sep|>app/c... | a9222665b84c19140b3da182ac272b327f68b24f | app/controllers/user_registrations_controller.rb | app/controllers/user_registrations_controller.rb | Ruby |
<|file_sep|>original/src/shared/styles/utilities/_print.scss
.u-visible-on-print-inline {
display: none !important;
}
@media print {
.u-hide-on-print {
display: none !important;
}
.u-visible-on-print-block {
display: block !important;
}
.u-visible-on-print-inline {
display: inline !important;... | .u-visible-on-print-inline {
display: none !important;
}
@media print {
.u-hide-on-print {
display: none !important;
}
.u-visible-on-print-block {
display: block !important;
}
.u-visible-on-print-inline {
display: inline !important;
}
}
@page {
margin: 0;
} | <|file_sep|>original/src/shared/styles/utilities/_print.scss
.u-visible-on-print-inline {
display: none !important;
}
@media print {
.u-hide-on-print {
display: none !important;
}
.u-visible-on-print-block {
display: block !important;
}
.u-visible-on-print-inline {
display: inline !important;... | e13aa160e859907a113fc51b1537affe39a0f339 | src/shared/styles/utilities/_print.scss | src/shared/styles/utilities/_print.scss | SCSS |
<|file_sep|>original/RESUME.md
<|file_sep|>current/RESUME.md
<|file_sep|>updated/RESUME.md | # Resume
There's a lot to be said about the project. So I might about it here at some point.
(most) relevant files:
* [/webpack.config.js](https://github.com/Kriegslustig/lucaschmid.net/blob/master/webpack.config.js)
* [/client/resume.js](https://github.com/Kriegslustig/lucaschmid.net/blob/master/client/resume.js) #... | <|file_sep|>original/RESUME.md
<|file_sep|>current/RESUME.md
<|file_sep|>updated/RESUME.md
# Resume
There's a lot to be said about the project. So I might about it here at some point.
(most) relevant files:
* [/webpack.config.js](https://github.com/Kriegslustig/lucaschmid.net/blob/master/webpack.config.js)
* [/cli... | ff6f996121842836cf956bf722f66c7e73e69f86 | RESUME.md | RESUME.md | Markdown |
<|file_sep|>original/fun/necrodancer-shuffle.py
<|file_sep|>current/fun/necrodancer-shuffle.py
<|file_sep|>updated/fun/necrodancer-shuffle.py | #!/usr/bin/env python3
import random
ZONES = 5
FLOORS = 3
BOSSES = [
'Deep Blues',
'King Conga',
'Death Metal',
'Coral Riff',
'Fortissimole',
]
SONGS = {
(1, 1): 'Disco Descent',
(1, 2): 'Crypteque',
(1, 3): 'Mausoleum Mash',
(2, 1): 'Fungal Funk',
(2, 2): 'Grave Throbbing', | <|file_sep|>original/fun/necrodancer-shuffle.py
<|file_sep|>current/fun/necrodancer-shuffle.py
<|file_sep|>updated/fun/necrodancer-shuffle.py
#!/usr/bin/env python3
import random
ZONES = 5
FLOORS = 3
BOSSES = [
'Deep Blues',
'King Conga',
'Death Metal',
'Coral Riff',
'Fortissimole',
]
SONGS = ... | f421f66cafa8d884af4ab2e4d43cad44743a6ffc | fun/necrodancer-shuffle.py | fun/necrodancer-shuffle.py | Python |
<|file_sep|>lib/transproc.rb.diff
original:
def self.register(*args, &block)
updated:
module_function
def register(*args, &block)
<|file_sep|>lib/transproc.rb.diff
original:
def self.register_from(mod)
updated:
def register_from(mod)
<|file_sep|>lib/transproc.rb.diff
original:
def self.functions
@_func... | def register_from(mod)
(mod.public_methods - Module.public_methods).each do |meth|
Transproc.register(meth, mod.method(meth))
end
end
def [](name)
functions.fetch(name)
end
def functions
@_functions ||= {}
end
end
def Transproc(fn, *args)
case fn
when Proc then Transproc::Functi... | <|file_sep|>lib/transproc.rb.diff
original:
def self.register(*args, &block)
updated:
module_function
def register(*args, &block)
<|file_sep|>lib/transproc.rb.diff
original:
def self.register_from(mod)
updated:
def register_from(mod)
<|file_sep|>lib/transproc.rb.diff
original:
def self.functions
@_func... | 654a5bbc1c3b0eeda6ce0a9fc136aad2d843f0e8 | lib/transproc.rb | lib/transproc.rb | Ruby |
<|file_sep|>original/core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb
require 'spec_helper'
describe Spree::Admin::ShippingMethodsController do
# Regression test for #1240
it "should not hard-delete shipping methods" do
Spree::ShippingMethod.should_receive(:find).and_return(shipping_met... | require 'spec_helper'
describe Spree::Admin::ShippingMethodsController do
stub_authorization!
# Regression test for #1240
it "should not hard-delete shipping methods" do
Spree::ShippingMethod.should_receive(:find).and_return(shipping_method = stub_model(Spree::ShippingMethod))
shipping_method.should_n... | <|file_sep|>original/core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb
require 'spec_helper'
describe Spree::Admin::ShippingMethodsController do
# Regression test for #1240
it "should not hard-delete shipping methods" do
Spree::ShippingMethod.should_receive(:find).and_return(shipping_met... | cb10819f599c07bd05f7b52b27ac5eff2f55f9a7 | core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb | core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb | Ruby |
<|file_sep|>src/App.test.tsx.diff
original:
import { createRoot } from 'react-dom/client'
updated:
import { render, screen } from '@testing-library/react'
<|file_sep|>src/App.test.tsx.diff
original:
updated:
const renderApp = () => render(<App />)
<|file_sep|>src/App.test.tsx.diff
original:
test('renders', () => {
... | import { render, screen } from '@testing-library/react'
import { App } from './App'
const renderApp = () => render(<App />)
describe('App', () => {
test('renders a link to the repository', () => {
renderApp()
const link: HTMLAnchorElement = screen.getByRole('link', {
name: 'Go to GitHub repository p... | <|file_sep|>src/App.test.tsx.diff
original:
import { createRoot } from 'react-dom/client'
updated:
import { render, screen } from '@testing-library/react'
<|file_sep|>src/App.test.tsx.diff
original:
updated:
const renderApp = () => render(<App />)
<|file_sep|>src/App.test.tsx.diff
original:
test('renders', () => {
... | f48a6085733d23eaf0933126a1ace928af007ae7 | src/App.test.tsx | src/App.test.tsx | TypeScript |
<|file_sep|>original/www/config.xml
<name>Intent Test</name>
<description>
Phonegap app to test web intents.
</description>
<author href="https://kmwenja.github.io" email="mwenja07@gmail.com">
Kennedy Mwenja
</author>
<preference name="permissions" value="none"/>
<prefere... |
<name>Intent Test</name>
<description>
Phonegap app to test web intents.
</description>
<author href="https://kmwenja.github.io" email="mwenja07@gmail.com">
Kennedy Mwenja
</author>
<preference name="permissions" value="none"/>
<preference name="orientation" value="defaul... | <|file_sep|>original/www/config.xml
<name>Intent Test</name>
<description>
Phonegap app to test web intents.
</description>
<author href="https://kmwenja.github.io" email="mwenja07@gmail.com">
Kennedy Mwenja
</author>
<preference name="permissions" value="none"/>
<prefere... | 2c84149886fb23aa6240643986c90fb470d76279 | www/config.xml | www/config.xml | XML |
<|file_sep|>original/cluster/manifests/roles/poweruser-binding.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: poweruser
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: poweruser
subjects:
- kind: Group
name: PowerUser
apiGroup: rbac.authorization.... | metadata:
name: poweruser
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: poweruser
subjects:
- kind: Group
name: PowerUser
apiGroup: rbac.authorization.k8s.io
{{- if eq .Cluster.Environment "test" }}
- kind: Group
name: CollaboratorPowerUser
apiGroup: rbac.authorization.k8s.io
{{- ... | <|file_sep|>original/cluster/manifests/roles/poweruser-binding.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: poweruser
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: poweruser
subjects:
- kind: Group
name: PowerUser
apiGroup: rbac.authorization.... | a2e7f57fb9c6d466385e4464ef24089a95c959a3 | cluster/manifests/roles/poweruser-binding.yaml | cluster/manifests/roles/poweruser-binding.yaml | YAML |
<|file_sep|>original/app/views/users/index.html.erb
<% if @users != nil %>
<div class="ui piled segment">
<%= render partial: "list", locals: { users: @users, show_controls: true } -%>
</div>
<% end %>
<|file_sep|>current/app/views/users/index.html.erb
<% if @users != nil %>
<div class="ui piled segment">
<%= re... | <% if @users != nil %>
<div class="ui piled segment">
<%= render partial: "list", locals: { users: @users.sort_by { |u| u[:user_role] }, show_controls: true } -%>
</div>
<% end %> | <|file_sep|>original/app/views/users/index.html.erb
<% if @users != nil %>
<div class="ui piled segment">
<%= render partial: "list", locals: { users: @users, show_controls: true } -%>
</div>
<% end %>
<|file_sep|>current/app/views/users/index.html.erb
<% if @users != nil %>
<div class="ui piled segment">
<%= re... | 2df449f100a8a56248b4b8b561849063264b7957 | app/views/users/index.html.erb | app/views/users/index.html.erb | HTML+ERB |
<|file_sep|>original/openstack/standalone-cinder/README.md
<|file_sep|>current/openstack/standalone-cinder/README.md
<|file_sep|>updated/openstack/standalone-cinder/README.md | ## Standalone-cinder external provisioner
The standalone-cinder external provisioner fulfills persistent
volume claims by creating cinder volumes and mapping them
to natively supported volume sources. This approach allows
cinder to be used as a storage service whether or not the
cluster is deployed on Openstack. By m... | <|file_sep|>original/openstack/standalone-cinder/README.md
<|file_sep|>current/openstack/standalone-cinder/README.md
<|file_sep|>updated/openstack/standalone-cinder/README.md
## Standalone-cinder external provisioner
The standalone-cinder external provisioner fulfills persistent
volume claims by creating cinder volum... | 12f165fa5cfcc1bb4565dbcd52fc4d9dd416da25 | openstack/standalone-cinder/README.md | openstack/standalone-cinder/README.md | Markdown |
<|file_sep|>original/package.json
{
"name": "fh-app",
"version": "0.2.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"fh-mbaas-api": "5.7.8",
"mocha": "^2.1.0",
"request": "~2.40.0"
},
"devDependencies": {
"grunt-contrib-watch": "latest",
... | {
"name": "fh-app",
"version": "0.2.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"fh-mbaas-api": "5.7.9",
"mocha": "^2.1.0",
"request": "~2.40.0"
},
"devDependencies": {
"grunt-contrib-watch": "latest",
"grunt-nodemon": "0.2.0",
"gru... | <|file_sep|>original/package.json
{
"name": "fh-app",
"version": "0.2.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"fh-mbaas-api": "5.7.8",
"mocha": "^2.1.0",
"request": "~2.40.0"
},
"devDependencies": {
"grunt-contrib-watch": "latest",
... | b8343c5d5a3151ea9a132fb2ed5139cf8b9e70db | package.json | package.json | JSON |
<|file_sep|>.build_scripts/ecs-task-definition.json.diff
original:
"memory": 7200,
updated:
"memory": 512,
<|file_sep|>.build_scripts/ecs-task-definition.json.diff
original:
]
updated:
],
"cpu": 256
<|file_sep|>original/.build_scripts/ecs-task-definition.json
... | {
"family": "openaq-fetch",
"taskRoleArn": "arn:aws:iam::470049585876:role/uploadsS3",
"containerDefinitions": [
{
"name": "openaq-fetch",
"image": "flasher/openaq-fetch",
"memory": 512,
"command": [
"npm",
"start"
... | <|file_sep|>.build_scripts/ecs-task-definition.json.diff
original:
"memory": 7200,
updated:
"memory": 512,
<|file_sep|>.build_scripts/ecs-task-definition.json.diff
original:
]
updated:
],
"cpu": 256
<|file_sep|>original/.build_scripts/ecs-task-definition.json
... | 93c82756976004d2bce836407381a7c5654552a2 | .build_scripts/ecs-task-definition.json | .build_scripts/ecs-task-definition.json | JSON |
<|file_sep|>original/server/api/bankaccount/bankaccount.model.js
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var BankaccountSchema = new Schema({
name: String,
info: String,
active: Boolean
});
module.exports = mongoose.model('Bankaccount', BankaccountSchema);
<|file_sep|>cu... | 'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var BankaccountSchema = new Schema({
name: String,
info: String,
coldWallet: {
address: String
},
hotWallet: {
address: String,
secret: String
},
active: Boolean
});
module.exports = mongoose.model('Bankaccount'... | <|file_sep|>original/server/api/bankaccount/bankaccount.model.js
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var BankaccountSchema = new Schema({
name: String,
info: String,
active: Boolean
});
module.exports = mongoose.model('Bankaccount', BankaccountSchema);
<|file_sep|>cu... | a49c5fea1d951c951612d6209748dcc27f63cc2e | server/api/bankaccount/bankaccount.model.js | server/api/bankaccount/bankaccount.model.js | JavaScript |
<|file_sep|>original/doc/CHANGELOG.md
# jwebform changelog
### 0.0.12
2019/01/22
* Improve theme via sourcecode renderer. Adaption to 4.1.3 Bootstrap
* Architectural shift from subclassing FormResult to ResultProcessors. Improves extensibility and results in less code
* Ajax support
* SubmitType now have a value... | # jwebform changelog
### 0.0.13
2019/xx/xx
* Fix email regexp (allow lowercase chars)
* fix typo in method
*
### 0.0.12
2019/01/22
* Improve theme via sourcecode renderer. Adaption to 4.1.3 Bootstrap
* Architectural shift from subclassing FormResult to ResultProcessors. Improves extensibility and results ... | <|file_sep|>original/doc/CHANGELOG.md
# jwebform changelog
### 0.0.12
2019/01/22
* Improve theme via sourcecode renderer. Adaption to 4.1.3 Bootstrap
* Architectural shift from subclassing FormResult to ResultProcessors. Improves extensibility and results in less code
* Ajax support
* SubmitType now have a value... | 8387ecda855adc676085f03bba1198af6ec5dd24 | doc/CHANGELOG.md | doc/CHANGELOG.md | Markdown |
<|file_sep|>original/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml
<|file_sep|>current/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml
<|file_sep|>updated/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml | ---
features:
- |
Using the ``network_data`` property on the node field,
operators can now apply network configuration to be embedded
in Redfish based Virtual Media based deployment ramdisks which
include networking configuration enabling the deployment to operate
without the use of DHCP. See Redf... | <|file_sep|>original/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml
<|file_sep|>current/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml
<|file_sep|>updated/releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml
---
features:
- |
Using the ``network_data`` property on the node field,
ope... | ab4fdb8e7c1b4c44f94ad969d4cc703af6ab53df | releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml | releasenotes/notes/dhcpless-deploy-4b91de74adeff781.yaml | YAML |
<|file_sep|>original/doc/api/shuup.front.apps.registration.rst
shuup.front.apps.registration package
=====================================
Submodules
----------
shuup.front.apps.registration.notify_events module
--------------------------------------------------
.. automodule:: shuup.front.apps.registration.notify_e... | shuup.front.apps.registration package
=====================================
Submodules
----------
shuup.front.apps.registration.forms module
------------------------------------------
.. automodule:: shuup.front.apps.registration.forms
:members:
:undoc-members:
:show-inheritance:
shuup.front.apps.regist... | <|file_sep|>original/doc/api/shuup.front.apps.registration.rst
shuup.front.apps.registration package
=====================================
Submodules
----------
shuup.front.apps.registration.notify_events module
--------------------------------------------------
.. automodule:: shuup.front.apps.registration.notify_e... | 8147ed00e7f18bf55f56a5280b09bc0546aacdee | doc/api/shuup.front.apps.registration.rst | doc/api/shuup.front.apps.registration.rst | reStructuredText |
<|file_sep|>src/js/containers/main-content/header-filter.js.diff
original:
import React from 'react'
updated:
import React, { PropTypes } from 'react'
<|file_sep|>src/js/containers/main-content/header-filter.js.diff
original:
const filterFields = [{
icon: { id: 'date', label: 'Data' },
label: 'Escolha um mês',
op... |
import React, { PropTypes } from 'react'
import FormSelect from '../../components/form-select'
import FormSearch from './form-search'
const HeaderFilter = ({ monthFilter, stateFilter, searchField }) => (
<nav className='filter'>
<FormSelect key='months' {...monthFilter} />
<FormSelect key='states' {...state... | <|file_sep|>src/js/containers/main-content/header-filter.js.diff
original:
import React from 'react'
updated:
import React, { PropTypes } from 'react'
<|file_sep|>src/js/containers/main-content/header-filter.js.diff
original:
const filterFields = [{
icon: { id: 'date', label: 'Data' },
label: 'Escolha um mês',
op... | 53d364b5d98c7e2d83b7d8c3d5bde46c37615d64 | src/js/containers/main-content/header-filter.js | src/js/containers/main-content/header-filter.js | JavaScript |
<|file_sep|>test/test_Spectrum.py.diff
original:
updated:
from hypothesis import given
import hypothesis.strategies as st
@given(st.lists(st.integers()), st.lists(st.floats()), st.lists(st.floats()))
def test_spectrum_assigns_hypothesis_data(x, y, z):
spec = Spectrum.Spectrum(x, y, z)
assert spec.flux == y
... | from hypothesis import given
import hypothesis.strategies as st
@given(st.lists(st.integers()), st.lists(st.floats()), st.lists(st.floats()))
def test_spectrum_assigns_hypothesis_data(x, y, z):
spec = Spectrum.Spectrum(x, y, z)
assert spec.flux == y
assert spec.pixel == x
assert spec.wavelength == z
... | <|file_sep|>test/test_Spectrum.py.diff
original:
updated:
from hypothesis import given
import hypothesis.strategies as st
@given(st.lists(st.integers()), st.lists(st.floats()), st.lists(st.floats()))
def test_spectrum_assigns_hypothesis_data(x, y, z):
spec = Spectrum.Spectrum(x, y, z)
assert spec.flux == y
... | 30f259dbd1c5c9963a5a75855188e4f668626fb7 | test/test_Spectrum.py | test/test_Spectrum.py | Python |
<|file_sep|>lib/godmin/application.rb.diff
original:
before_action :append_view_paths
updated:
before_action :prepend_view_paths
<|file_sep|>original/lib/godmin/application.rb
before_action :append_view_paths
layout "godmin/application"
end
def welcome; end
private
def append... | before_action :prepend_view_paths
layout "godmin/application"
end
def welcome; end
private
def prepend_view_paths
prepend_view_path Godmin::GodminResolver.new(controller_name)
prepend_view_path Godmin::EngineResolver.new(controller_name)
end
def authentication_enable... | <|file_sep|>lib/godmin/application.rb.diff
original:
before_action :append_view_paths
updated:
before_action :prepend_view_paths
<|file_sep|>original/lib/godmin/application.rb
before_action :append_view_paths
layout "godmin/application"
end
def welcome; end
private
def append... | 260d099d93f92e38bc704cf9203b0e8667cdd5a2 | lib/godmin/application.rb | lib/godmin/application.rb | Ruby |
<|file_sep|>original/metadata/ru.ttyh.neko259.notey.txt
Auto Name:Notey
Summary:Location-aware notes
Description:
Store plain-text or formatted notes, send them via e-mail and see on the
OSM map where they were edited.
.
Repo Type:hg
Repo:https://bitbucket.org/neko259/notey
Build:1.1.1,3
commit=1.1.1
extlibs... |
Auto Name:Notey
Summary:Location-aware notes
Description:
Store plain-text or formatted notes, send them via e-mail and see on the
OSM map where they were edited.
.
Repo Type:hg
Repo:https://bitbucket.org/neko259/notey
Build:1.1.1,3
commit=1.1.1
extlibs=android/android-support-v13.jar
# slf4j has an android... | <|file_sep|>original/metadata/ru.ttyh.neko259.notey.txt
Auto Name:Notey
Summary:Location-aware notes
Description:
Store plain-text or formatted notes, send them via e-mail and see on the
OSM map where they were edited.
.
Repo Type:hg
Repo:https://bitbucket.org/neko259/notey
Build:1.1.1,3
commit=1.1.1
extlibs... | 6ad5851f9bd1b8599c2eb89f6b292ef6914ffd7c | metadata/ru.ttyh.neko259.notey.txt | metadata/ru.ttyh.neko259.notey.txt | Text |
<|file_sep|>original/pm2.json
{
"apps": [
{
"cwd": "/var/www/mister-t",
"name": "mister-t",
"script": "src/bot.js",
"watch": true,
"ignore_watch": [
"node_modules"
]
}
]
}
<|file_sep|>current/pm2.json
{
"apps": [
{
"cwd": "/var/www/mister-t",
"na... | {
"apps": [
{
"cwd": "/var/www/mister-t",
"name": "mister-t",
"script": "src/bot.js",
"watch": true,
"ignore_watch": [
"node_modules",
"var"
]
}
]
} | <|file_sep|>original/pm2.json
{
"apps": [
{
"cwd": "/var/www/mister-t",
"name": "mister-t",
"script": "src/bot.js",
"watch": true,
"ignore_watch": [
"node_modules"
]
}
]
}
<|file_sep|>current/pm2.json
{
"apps": [
{
"cwd": "/var/www/mister-t",
"na... | 78d7bad52b6f63e9fc0433d98415119ca1ac04c0 | pm2.json | pm2.json | JSON |
<|file_sep|>original/business_requirement_deliverable_report/__openerp__.py
# -*- coding: utf-8 -*-
# © 2016 Elico Corp (https://www.elico-corp.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Business Requirement Document Printout',
'summary': 'Print the Business Requiremen... | # -*- coding: utf-8 -*-
# © 2016 Elico Corp (https://www.elico-corp.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Business Requirement Document Printout',
'summary': 'Print the Business Requirement Document for your customers',
'version': '8.0.5.0.1',
'category': ... | <|file_sep|>original/business_requirement_deliverable_report/__openerp__.py
# -*- coding: utf-8 -*-
# © 2016 Elico Corp (https://www.elico-corp.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Business Requirement Document Printout',
'summary': 'Print the Business Requiremen... | 91519c542b2fac085dc6b785a41d2fbdba91386c | business_requirement_deliverable_report/__openerp__.py | business_requirement_deliverable_report/__openerp__.py | Python |
<|file_sep|>spec/dummy_app/app/models/fan.rb.diff
original:
updated:
<|file_sep|>original/spec/dummy_app/app/models/fan.rb
class Fan < ActiveRecord::Base
validates_presence_of(:name)
has_and_belongs_to_many :teams
RailsAdmin.config self do
label "Fans and friends"
label_for_navigation do
"#{con... | class Fan < ActiveRecord::Base
validates_presence_of(:name)
has_and_belongs_to_many :teams
end | <|file_sep|>spec/dummy_app/app/models/fan.rb.diff
original:
updated:
<|file_sep|>original/spec/dummy_app/app/models/fan.rb
class Fan < ActiveRecord::Base
validates_presence_of(:name)
has_and_belongs_to_many :teams
RailsAdmin.config self do
label "Fans and friends"
label_for_navigation do
"#{con... | a5406dd7710fc51f157b1a57d1ea4961b7694236 | spec/dummy_app/app/models/fan.rb | spec/dummy_app/app/models/fan.rb | Ruby |
<|file_sep|>original/recipes/rastervision-pipeline/meta.yaml
- everett ==0.9
- pydantic ==1.2
- python >=3.6
- six ==1.11.*
- typing-extensions ==3.7.4.1
- urllib3
- brotlipy
test:
imports:
- rastervision
commands:
- pip check
requires:
- pip
about:
home: https://github... | - everett ==0.9
- pydantic ==1.2
- python >=3.6
- six ==1.11.*
- typing-extensions ==3.7.4.1
- urllib3
- brotlipy
test:
imports:
- rastervision.pipeline
commands:
- pip check
requires:
- pip
about:
home: https://github.com/azavea/raster-vision
summary: The main raster... | <|file_sep|>original/recipes/rastervision-pipeline/meta.yaml
- everett ==0.9
- pydantic ==1.2
- python >=3.6
- six ==1.11.*
- typing-extensions ==3.7.4.1
- urllib3
- brotlipy
test:
imports:
- rastervision
commands:
- pip check
requires:
- pip
about:
home: https://github... | 2694b8d1f2bfdebead6ec95d7ca337f28a02a601 | recipes/rastervision-pipeline/meta.yaml | recipes/rastervision-pipeline/meta.yaml | YAML |
<|file_sep|>original/projects/frontend/deployment/config.js
module.exports.serverCredentials = {
host: 'host',
port: 1234,
username: 'username',
password: 'password'
};
module.exports.localDirectory = './dist/';
module.exports.remoteDirectory = 'remoteDirectory/';
<|file_sep|>current/projects/frontend/deploymen... | module.exports.serverCredentials = {
host: 'host',
port: 1234,
username: 'username',
password: 'password'
};
module.exports.localDirectory = './dist/anselm-kuesters/';
module.exports.remoteDirectory = 'remoteDirectory/'; | <|file_sep|>original/projects/frontend/deployment/config.js
module.exports.serverCredentials = {
host: 'host',
port: 1234,
username: 'username',
password: 'password'
};
module.exports.localDirectory = './dist/';
module.exports.remoteDirectory = 'remoteDirectory/';
<|file_sep|>current/projects/frontend/deploymen... | b38d409a04590d31ceeb5d0b83c55d0892d9e1c8 | projects/frontend/deployment/config.js | projects/frontend/deployment/config.js | JavaScript |
<|file_sep|>app/routes.js.diff
original:
updated:
import Menu from './components/Menu';
<|file_sep|>app/routes.js.diff
original:
updated:
import AVLTree from './containers/AVLTree';
<|file_sep|>original/app/routes.js
// @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from... | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Menu from './components/Menu';
import VerticalTree from './containers/VerticalTree';
import AVLTree from './containers/AVLTree';
export default (
<Route path="/" component={App}>
<Ind... | <|file_sep|>app/routes.js.diff
original:
updated:
import Menu from './components/Menu';
<|file_sep|>app/routes.js.diff
original:
updated:
import AVLTree from './containers/AVLTree';
<|file_sep|>original/app/routes.js
// @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from... | 3691387bdf33e6c02899371de63497baea3ab807 | app/routes.js | app/routes.js | JavaScript |
<|file_sep|>original/lib/dragonfly/config/r_magick_images.rb
# Look at the source code for apply_configuration to see exactly how it configures the app.
module RMagickImages
def self.apply_configuration(app)
app.configure do |c|
c.register_analyser(Analysis::FileCommandAnalyser)
... | app.configure do |c|
c.register_analyser(Analysis::FileCommandAnalyser)
c.register_analyser(Analysis::RMagickAnalyser)
c.register_processor(Processing::RMagickProcessor)
c.register_encoder(Encoding::RMagickEncoder)
c.register_generator(Generation::RMagickGenerat... | <|file_sep|>original/lib/dragonfly/config/r_magick_images.rb
# Look at the source code for apply_configuration to see exactly how it configures the app.
module RMagickImages
def self.apply_configuration(app)
app.configure do |c|
c.register_analyser(Analysis::FileCommandAnalyser)
... | a6807127a8c74e35d9730f29e6d88e5148249162 | lib/dragonfly/config/r_magick_images.rb | lib/dragonfly/config/r_magick_images.rb | Ruby |
<|file_sep|>original/app/controllers/pages_controller.rb
class PagesController < ApplicationController
def home
@xbox_one_games = Game.where(platform: "Xbox One").asc(:title)
@ps4_games = Game.where(platform: "Playstation 4").asc(:title)
@xbox_360_games = Game.where(platform: "Xbox 360").asc(:title)
... | class PagesController < ApplicationController
def home
@xbox_one_games = Game.where(platform: "Xbox One").asc(:title)
@ps4_games = Game.where(platform: "PS4").asc(:title)
@xbox_360_games = Game.where(platform: "Xbox 360").asc(:title)
@other_games = Game.where(platform: "PC").asc(:title)
@user_vo... | <|file_sep|>original/app/controllers/pages_controller.rb
class PagesController < ApplicationController
def home
@xbox_one_games = Game.where(platform: "Xbox One").asc(:title)
@ps4_games = Game.where(platform: "Playstation 4").asc(:title)
@xbox_360_games = Game.where(platform: "Xbox 360").asc(:title)
... | de19914d8964041a226e2864a3ac4dd55af0848c | app/controllers/pages_controller.rb | app/controllers/pages_controller.rb | Ruby |
<|file_sep|>original/docs/contributors.rst
List of Funding Organisations
=============================
* `University of Auckland <https://www.auckland.ac.nz/>`_
* `VPR <http://www.virtualrat.org/>`_
List of Contributors
====================
The following is a list of contributors(in surname alphabetical order) wh... |
List of Funding Organisations
=============================
* `University of Auckland <https://www.auckland.ac.nz/>`_
* `VPR <http://www.virtualrat.org/>`_
List of Contributors
====================
The following is a list of contributors (in surname alphabetical order) who have contributed lines of source code to... | <|file_sep|>original/docs/contributors.rst
List of Funding Organisations
=============================
* `University of Auckland <https://www.auckland.ac.nz/>`_
* `VPR <http://www.virtualrat.org/>`_
List of Contributors
====================
The following is a list of contributors(in surname alphabetical order) wh... | 75ad2aa7990473305f7eb7e68decc7c2b6f67d9a | docs/contributors.rst | docs/contributors.rst | reStructuredText |
<|file_sep|>original/deploy/uwsgi/apps/index.ini
# This is the configuration for the original CLiC Prototype application
# responsible for search, browse, KWiC, collocates and ARM
[uwsgi]
vassal_name = %n
# uid = cheshire
chdir = /clic-project/clic
procname-prefix = clic-%(vassal_name)-
module = clic.web.%(vassal_nam... | # This is the configuration for the original CLiC Prototype application
# responsible for search, browse, KWiC, collocates and ARM
[uwsgi]
vassal_name = %n
uid = cheshire
chdir = /clic-project/clic
procname-prefix = clic-%(vassal_name)-
module = clic.web.%(vassal_name)
callable = app
# Reload applications if the dat... | <|file_sep|>original/deploy/uwsgi/apps/index.ini
# This is the configuration for the original CLiC Prototype application
# responsible for search, browse, KWiC, collocates and ARM
[uwsgi]
vassal_name = %n
# uid = cheshire
chdir = /clic-project/clic
procname-prefix = clic-%(vassal_name)-
module = clic.web.%(vassal_nam... | 169b40c308df2d44dbf72cbb3db1df9078b7eb2f | deploy/uwsgi/apps/index.ini | deploy/uwsgi/apps/index.ini | INI |
<|file_sep|>spec/resources/product_spec.rb.diff
original:
expect {klass.find(23456789) }.to raise_error
updated:
expect { klass.find(23456789) }.to raise_error
<|file_sep|>spec/resources/product_spec.rb.diff
original:
updated:
<|file_sep|>spec/resources/product_spec.rb.diff
original:
updated:
... |
end
describe 'Delete' do
before(:all) { @product = VersacommerceAPI::Product.last }
context 'when product exist' do
it 'should delete the specified product' do
response = @product.destroy
response.code.should eql '200'
end
end
context 'when product... | <|file_sep|>spec/resources/product_spec.rb.diff
original:
expect {klass.find(23456789) }.to raise_error
updated:
expect { klass.find(23456789) }.to raise_error
<|file_sep|>spec/resources/product_spec.rb.diff
original:
updated:
<|file_sep|>spec/resources/product_spec.rb.diff
original:
updated:
... | ebfe3b7e09b92d78cfaca1e85e550a3f960bfa34 | spec/resources/product_spec.rb | spec/resources/product_spec.rb | Ruby |
<|file_sep|>original/src/Propel/Runtime/Adapter/Exception/AdapterException.php
<?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Runtime\Ad... | <?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Runtime\Adapter\Exception;
use Propel\Runtime\Exception\RuntimeException;
class Adapter... | <|file_sep|>original/src/Propel/Runtime/Adapter/Exception/AdapterException.php
<?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Runtime\Ad... | 41699dfad07d5282063e7b872d9c9c040ba5c511 | src/Propel/Runtime/Adapter/Exception/AdapterException.php | src/Propel/Runtime/Adapter/Exception/AdapterException.php | PHP |
<|file_sep|>original/docs/source/examples_list.rst
Summary of the Examples
=======================
All of the example can be found in the *examples* directory.
1. *auto-step.lcad* - An automatic build steps example.
2. *chain.lcad* - Chain and sprocket system creation and animation.
3. *dumper-truck.lcad* - The Dumpe... | Summary of the Examples
=======================
All of the example can be found in the *examples* directory.
1. *auto-step.lcad* - An automatic build steps example.
2. *chain.lcad* - Chain and sprocket system creation and animation.
.. figure:: chain.png
:scale: 50%
3. *curve.lcad* - Curve creation example.
.. ... | <|file_sep|>original/docs/source/examples_list.rst
Summary of the Examples
=======================
All of the example can be found in the *examples* directory.
1. *auto-step.lcad* - An automatic build steps example.
2. *chain.lcad* - Chain and sprocket system creation and animation.
3. *dumper-truck.lcad* - The Dumpe... | 1d9aefb02f0df83791832709e4c4489b52cf5832 | docs/source/examples_list.rst | docs/source/examples_list.rst | reStructuredText |
<|file_sep|>original/src/Storage/Mysql/UserRepository.php
return resolve($this->fetchUser($sql, [$username]));
}
private function fetchUser(string $sql, array $params = []): Generator {
/** @var ResultSet $result */
$result = yield $this->mysql->prepare($sql, $params);
if (yie... | public function findByName(string $username): Promise {
$sql = "SELECT id, name FROM users WHERE name = ?";
return resolve($this->fetchUser($sql, [$username]));
}
private function fetchUser(string $sql, array $params = []): Generator {
/** @var ResultSet $result */
$result ... | <|file_sep|>original/src/Storage/Mysql/UserRepository.php
return resolve($this->fetchUser($sql, [$username]));
}
private function fetchUser(string $sql, array $params = []): Generator {
/** @var ResultSet $result */
$result = yield $this->mysql->prepare($sql, $params);
if (yie... | 82b7e33e61d304a1a61df1c5a0f4587789f5b39d | src/Storage/Mysql/UserRepository.php | src/Storage/Mysql/UserRepository.php | PHP |
<|file_sep|>package.json.diff
original:
"irc": "~0.3.7"
updated:
"irc": "~0.3.11"
<|file_sep|>original/package.json
"keywords": ["irc"],
"author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.12.x"
},
"preferGlobal": true,
"scripts": {
"test"... | "keywords": ["irc"],
"author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.12.x"
},
"preferGlobal": true,
"scripts": {
"test": "grunt"
},
"dependencies": {
"colors": "~1.0.3",
"irc": "~0.3.11"
},
"devDependencies": {
... | <|file_sep|>package.json.diff
original:
"irc": "~0.3.7"
updated:
"irc": "~0.3.11"
<|file_sep|>original/package.json
"keywords": ["irc"],
"author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.12.x"
},
"preferGlobal": true,
"scripts": {
"test"... | 9a5708a97f338f2b9cf87157142dd3cd1fe7650c | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: c
sudo: required
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash -ex .travis-opam.sh
env:
- OCAML_VERSION=4.00
- OCAML_VERSION=4.01
- OCAML_VERSION=4.02
- OCAML_VERSION=4.03
os:
- linux
- osx
<|file_sep|>cu... | language: c
sudo: required
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash -ex .travis-opam.sh
env:
- OCAML_VERSION=4.00
- OCAML_VERSION=4.01
- OCAML_VERSION=4.02
- OCAML_VERSION=4.03
- OCAML_VERSION=4.04
os:
- linux
- osx | <|file_sep|>original/.travis.yml
language: c
sudo: required
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash -ex .travis-opam.sh
env:
- OCAML_VERSION=4.00
- OCAML_VERSION=4.01
- OCAML_VERSION=4.02
- OCAML_VERSION=4.03
os:
- linux
- osx
<|file_sep|>cu... | cb30cf92a3100c41c9eddfb51c9da138e012bf94 | .travis.yml | .travis.yml | YAML |
<|file_sep|>dev-system/support/build-and-test-ci.sh.diff
original:
lein modules do clean, install &&
updated:
lein modules do clean, install
if [ $? -ne 0 ] ; then
echo "Failed to install apps" >&2
exit 1
fi
<|file_sep|>dev-system/support/build-and-test-ci.sh.diff
original:
(cd search-app && lein with-profile docs ... | date && echo "Building uberjars" &&
lein with-profile uberjar modules uberjar
if [ $? -ne 0 ] ; then
echo "Failed to generate uberjars" >&2
exit 1
fi
fi
date && echo "Building and starting dev-system" &&
(cd dev-system && support/build-and-run.sh)
if [ $? -ne 0 ] ; then
echo "Failed to build and start... | <|file_sep|>dev-system/support/build-and-test-ci.sh.diff
original:
lein modules do clean, install &&
updated:
lein modules do clean, install
if [ $? -ne 0 ] ; then
echo "Failed to install apps" >&2
exit 1
fi
<|file_sep|>dev-system/support/build-and-test-ci.sh.diff
original:
(cd search-app && lein with-profile docs ... | b4434c78f895302a485bb24072fc87de7a3c1c64 | dev-system/support/build-and-test-ci.sh | dev-system/support/build-and-test-ci.sh | Shell |
<|file_sep|>original/requirements.txt
flask==0.12.2
flask-restful==0.3.6
flask-swagger==0.2.13
futures==3.1.1
nose==1.3.7
nose-cov==1.6
numba==0.35.0
numpy==1.13.3
pandas==0.20.3
psutil==5.4.0
pylint==1.7.4
pymongo==3.5.1
python-coveralls==2.9.1
pytz==2017.2
requests==2.18.4
scipy==0.19.1
sqlalchemy==1.1.14
# sqlalchem... | flask==0.12.2
flask-restful==0.3.6
flask-swagger==0.2.13
futures==3.1.1
nose==1.3.7
nose-cov==1.6
numba==0.35.0
numpy==1.13.3
pandas==0.20.3
psutil==5.4.0
pylint==1.7.4
pymongo==3.5.1
python-coveralls==2.9.1
pytz==2017.2
requests==2.18.4
scipy==0.19.1
sqlalchemy==1.1.14
# sqlalchemy-utils==0.32.14
tabulate==0.8.1
| <|file_sep|>original/requirements.txt
flask==0.12.2
flask-restful==0.3.6
flask-swagger==0.2.13
futures==3.1.1
nose==1.3.7
nose-cov==1.6
numba==0.35.0
numpy==1.13.3
pandas==0.20.3
psutil==5.4.0
pylint==1.7.4
pymongo==3.5.1
python-coveralls==2.9.1
pytz==2017.2
requests==2.18.4
scipy==0.19.1
sqlalchemy==1.1.14
# sqlalchem... | 493a38f07d38053a1985b7c357eacc9b4f47a7e2 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/README.md
# client-log4net
A log4net plugin to simplify sending logs to logTank
<|file_sep|>current/README.md
# client-log4net
A log4net plugin to simplify sending logs to logTank
<|file_sep|>updated/README.md | # client-log4net
A log4net plugin to simplify sending logs to logTank
# Installation
can be installed from nuget: https://www.nuget.org/packages/log4tank/
Install-Package log4tank | <|file_sep|>original/README.md
# client-log4net
A log4net plugin to simplify sending logs to logTank
<|file_sep|>current/README.md
# client-log4net
A log4net plugin to simplify sending logs to logTank
<|file_sep|>updated/README.md
# client-log4net
A log4net plugin to simplify sending logs to logTank
# Installation
ca... | 35892b5d210484b0922b32492c8ba515ccc4a007 | README.md | README.md | Markdown |
<|file_sep|>original/postkode.gemspec
# encoding: utf-8
Gem::Specification.new do |s|
s.name = 'postkode'
s.version = '0.3.1'
s.date = '2015-02-17'
s.summary = 'postkode'
s.description = 'Postcode validation module'
s.authors = ['K M Lawrence', 'Alexei Emam', 'Peter Robertson']
s... | # encoding: utf-8
Gem::Specification.new do |s|
s.name = 'postkode'
s.version = '0.3.2'
s.date = '2015-03-18'
s.summary = 'postkode'
s.description = 'Postcode validation module'
s.authors = ['K M Lawrence', 'Alexei Emam', 'Peter Robertson']
s.email = 'keith.lawrence@upbeatp... | <|file_sep|>original/postkode.gemspec
# encoding: utf-8
Gem::Specification.new do |s|
s.name = 'postkode'
s.version = '0.3.1'
s.date = '2015-02-17'
s.summary = 'postkode'
s.description = 'Postcode validation module'
s.authors = ['K M Lawrence', 'Alexei Emam', 'Peter Robertson']
s... | 0f1ba77c3e96c7048b5357a3795b743a189fd901 | postkode.gemspec | postkode.gemspec | Ruby |
<|file_sep|>access/admin.py.diff
original:
updated:
from django.utils.translation import ugettext_lazy as _
<|file_sep|>original/access/admin.py
from .forms import UserCreationForm, UserChangeForm
class UserAdmin(UserAdmin):
form = UserChangeForm
add_form = UserCreationForm
fieldsets = (
(None, ... |
from .forms import UserCreationForm, UserChangeForm
class UserAdmin(UserAdmin):
form = UserChangeForm
add_form = UserCreationForm
fieldsets = (
(None, {'fields': ('email', 'password', 'two_fa_enabled')}),
(_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser',)}),
... | <|file_sep|>access/admin.py.diff
original:
updated:
from django.utils.translation import ugettext_lazy as _
<|file_sep|>original/access/admin.py
from .forms import UserCreationForm, UserChangeForm
class UserAdmin(UserAdmin):
form = UserChangeForm
add_form = UserCreationForm
fieldsets = (
(None, ... | b0085ad5268da92181b043c56b64d690e5eb8679 | access/admin.py | access/admin.py | Python |
<|file_sep|>original/.github/workflows/enable-auto-merge.yml
name: Enable auto merge
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
issues: write
pull-requests: write
jobs:
add_milestone:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github... | name: Enable auto merge
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
issues: write
pull-requests: write
jobs:
add_milestone:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.user.login == 'dotnet-bot' && startsWith(... | <|file_sep|>original/.github/workflows/enable-auto-merge.yml
name: Enable auto merge
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
issues: write
pull-requests: write
jobs:
add_milestone:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github... | 8f6c70e21bffc4c4612154d2507d2d680939624a | .github/workflows/enable-auto-merge.yml | .github/workflows/enable-auto-merge.yml | YAML |
<|file_sep|>original/package.json
"version": "1.13.0",
"description": "Sitemap-generating framework",
"keywords": [
"sitemap",
"sitemap.xml"
],
"repository": "git://github.com/ekalinin/sitemap.js.git",
"author": "Eugene Kalinin <e.v.kalinin@gmail.com>",
"dependencies": {
"underscore": "^1.7.0"... | "version": "1.13.0",
"description": "Sitemap-generating framework",
"keywords": [
"sitemap",
"sitemap.xml"
],
"repository": "git://github.com/ekalinin/sitemap.js.git",
"author": "Eugene Kalinin <e.v.kalinin@gmail.com>",
"dependencies": {
"underscore": "^1.7.0",
"url-join": "^2.0.2"
},
... | <|file_sep|>original/package.json
"version": "1.13.0",
"description": "Sitemap-generating framework",
"keywords": [
"sitemap",
"sitemap.xml"
],
"repository": "git://github.com/ekalinin/sitemap.js.git",
"author": "Eugene Kalinin <e.v.kalinin@gmail.com>",
"dependencies": {
"underscore": "^1.7.0"... | d9cf7761006f1ca2c596513c14f7886e1532a4c2 | package.json | package.json | JSON |
<|file_sep|>original/packages/es-components/src/components/base/spinner/Spinner.specs.js
<|file_sep|>current/packages/es-components/src/components/base/spinner/Spinner.specs.js
<|file_sep|>updated/packages/es-components/src/components/base/spinner/Spinner.specs.js | /* eslint-env jest */
import React from 'react';
import { render, cleanup } from 'react-testing-library';
import Spinner from './Spinner';
beforeEach(cleanup);
it('does not include title when not provided', () => {
const { queryByText } = render(
<Spinner description="test spinner description" />
);
expect... | <|file_sep|>original/packages/es-components/src/components/base/spinner/Spinner.specs.js
<|file_sep|>current/packages/es-components/src/components/base/spinner/Spinner.specs.js
<|file_sep|>updated/packages/es-components/src/components/base/spinner/Spinner.specs.js
/* eslint-env jest */
import React from 'react';
imp... | bb471dc55d06a5851acd35bb4ca79ee3811c6f0a | packages/es-components/src/components/base/spinner/Spinner.specs.js | packages/es-components/src/components/base/spinner/Spinner.specs.js | JavaScript |
<|file_sep|>original/panoptes_client/user.py
from __future__ import absolute_import, division, print_function
from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
def avatar(self):
return ... | from __future__ import absolute_import, division, print_function
from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
@property
def avatar(self):
return User.http_get('{}/avatar'.forma... | <|file_sep|>original/panoptes_client/user.py
from __future__ import absolute_import, division, print_function
from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
def avatar(self):
return ... | b46727a6bf8c1d85e0f9f8828954440bc489f247 | panoptes_client/user.py | panoptes_client/user.py | Python |
<|file_sep|>original/etc/status/public_html/styles/zuul.css
.zuul-job-result {
float: right;
width: 70px;
height: 15px;
margin: 2px 0 0 0;
}
.zuul-change-total-result {
height: 10px;
width: 100px;
margin: 5px 0 0 0;
}
.zuul-spinner,
.zuul-spinner:hover {
opacity: 0;
transition: opa... | .zuul-job-result {
float: right;
width: 70px;
height: 15px;
margin: 2px 0 0 0;
}
.zuul-change-total-result {
height: 10px;
width: 100px;
margin: 0;
display: inline-block;
vertical-align: middle;
}
.zuul-spinner,
.zuul-spinner:hover {
opacity: 0;
transition: opacity 0.5s eas... | <|file_sep|>original/etc/status/public_html/styles/zuul.css
.zuul-job-result {
float: right;
width: 70px;
height: 15px;
margin: 2px 0 0 0;
}
.zuul-change-total-result {
height: 10px;
width: 100px;
margin: 5px 0 0 0;
}
.zuul-spinner,
.zuul-spinner:hover {
opacity: 0;
transition: opa... | 63f375dbf664cdaef3e62289a661a03b1890e019 | etc/status/public_html/styles/zuul.css | etc/status/public_html/styles/zuul.css | CSS |
<|file_sep|>oracle_test.go.diff
original:
_ "gopkg.in/rana/ora.v3"
updated:
_ "github.com/mattn/go-oci8"
<|file_sep|>original/oracle_test.go
// +build oracle
package testfixtures
import (
_ "gopkg.in/rana/ora.v3"
)
func init() {
databases = append(databases,
databaseTest{
"ora",
"ORACLE_CONN_STRING",
... | // +build oracle
package testfixtures
import (
_ "github.com/mattn/go-oci8"
)
func init() {
databases = append(databases,
databaseTest{
"oci8",
"ORACLE_CONN_STRING",
"testdata/schema/oracle.sql",
&OracleHelper{},
},
)
} | <|file_sep|>oracle_test.go.diff
original:
_ "gopkg.in/rana/ora.v3"
updated:
_ "github.com/mattn/go-oci8"
<|file_sep|>original/oracle_test.go
// +build oracle
package testfixtures
import (
_ "gopkg.in/rana/ora.v3"
)
func init() {
databases = append(databases,
databaseTest{
"ora",
"ORACLE_CONN_STRING",
... | 3cfa9839ae5c07a739f35840cac3d81f7cc6d1c2 | oracle_test.go | oracle_test.go | Go |
<|file_sep|>proxies/caman_proxy.php.diff
original:
if (!$_GET['url']) {
updated:
$proxyParam = 'camanProxyUrl';
if (!$_GET[$proxyParam]) {
<|file_sep|>original/proxies/caman_proxy.php
// end in an image file extension. E.g. through another proxy of kinds.
define('ALLOW_NO_EXT', false);
if (!$_GET['url']) {
exit;
}
... | // end in an image file extension. E.g. through another proxy of kinds.
define('ALLOW_NO_EXT', false);
$proxyParam = 'camanProxyUrl';
if (!$_GET[$proxyParam]) {
exit;
}
// Grab the URL
$url = trim(urldecode($_GET[$proxyParam]));
$urlinfo = parse_url($url, PHP_URL_PATH);
$ext = array_reverse(explode(".", $urlinfo)... | <|file_sep|>proxies/caman_proxy.php.diff
original:
if (!$_GET['url']) {
updated:
$proxyParam = 'camanProxyUrl';
if (!$_GET[$proxyParam]) {
<|file_sep|>original/proxies/caman_proxy.php
// end in an image file extension. E.g. through another proxy of kinds.
define('ALLOW_NO_EXT', false);
if (!$_GET['url']) {
exit;
}
... | 679abb96b7b74e8f63e84791c5128989faf43aab | proxies/caman_proxy.php | proxies/caman_proxy.php | PHP |
<|file_sep|>original/lib/aliyun/openapi/faraday/openapi_sign.rb
require 'cgi'
# @private
module Aliyun::Openapi::Faraday
# @private
class OpenapiSign < Faraday::Middleware
def call(env)
query = Faraday::Utils.parse_query(env[:url].query) unless env[:url].query.nil?
query ||= {}
p Time.now.ut... |
require 'cgi'
# @private
module Aliyun::Openapi::Faraday
# @private
class OpenapiSign < Faraday::Middleware
def call(env)
query = Faraday::Utils.parse_query(env[:url].query) unless env[:url].query.nil?
query ||= {}
query.merge!({'AccessKeyId' => @access_key_id,
'Signature... | <|file_sep|>original/lib/aliyun/openapi/faraday/openapi_sign.rb
require 'cgi'
# @private
module Aliyun::Openapi::Faraday
# @private
class OpenapiSign < Faraday::Middleware
def call(env)
query = Faraday::Utils.parse_query(env[:url].query) unless env[:url].query.nil?
query ||= {}
p Time.now.ut... | 9107def24509b1bd13e40bff25eaf1c0c28f5d4d | lib/aliyun/openapi/faraday/openapi_sign.rb | lib/aliyun/openapi/faraday/openapi_sign.rb | Ruby |
<|file_sep|>package.json.diff
original:
"soap" : "0.2.4"
updated:
"soap" : "0.2.4",
"commander": "0.5.2",
"express" : "2.5.8"
<|file_sep|>original/package.json
},
"main": "./index.js",
"bin" : {
"soap2json": "./soap2json"
},
"scripts": {
"test": "node_modules/.bin/mocha ... | },
"main": "./index.js",
"bin" : {
"soap2json": "./soap2json"
},
"scripts": {
"test": "node_modules/.bin/mocha -R spec -u exports test/*.js"
},
"engines": {
"node": ">=0.6.0"
},
"dependencies": {
"soap" : "0.2.4",
"commander": "0.5.2",
"express" : "2.5.8"
},
"devD... | <|file_sep|>package.json.diff
original:
"soap" : "0.2.4"
updated:
"soap" : "0.2.4",
"commander": "0.5.2",
"express" : "2.5.8"
<|file_sep|>original/package.json
},
"main": "./index.js",
"bin" : {
"soap2json": "./soap2json"
},
"scripts": {
"test": "node_modules/.bin/mocha ... | dd14153c59bc5366aae8ce9cb76d538065f3b331 | package.json | package.json | JSON |
<|file_sep|>original/requirements/setup.txt
autoenv==1.0.0
autopep8==1.3.2
bumplus==0.0.8
bumpversion==0.5.3
chalice==1.0.2
docker-compose==1.16.1
elpy==1.15.0
epc==0.0.5
flake8==3.3.0
importmagic==0.1.7
ipdb==0.10.3
ipython==6.0.0
ipython-genutils==0.2.0
jedi==0.10.2
pre-commit==0.15.2
pylint==1.7.1
restview==2.7.0
ya... | autoenv==1.0.0
autopep8==1.3.2
bumplus==0.0.8
bumpversion==0.5.3
chalice==1.0.2
docker-compose==1.16.1
elpy==1.15.0
epc==0.0.5
flake8==3.3.0
importmagic==0.1.7
ipdb==0.10.3
ipython==6.0.0
ipython-genutils==0.2.0
jedi==0.10.2
pre-commit==0.15.2
pylint==1.7.1
restview==2.7.0
yapf==0.18.0 | <|file_sep|>original/requirements/setup.txt
autoenv==1.0.0
autopep8==1.3.2
bumplus==0.0.8
bumpversion==0.5.3
chalice==1.0.2
docker-compose==1.16.1
elpy==1.15.0
epc==0.0.5
flake8==3.3.0
importmagic==0.1.7
ipdb==0.10.3
ipython==6.0.0
ipython-genutils==0.2.0
jedi==0.10.2
pre-commit==0.15.2
pylint==1.7.1
restview==2.7.0
ya... | 3396fa2f177b62734abd485ab7674dd8623d9155 | requirements/setup.txt | requirements/setup.txt | Text |
<|file_sep|>original/config/software/openstack-common.rb
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name "openstack-common"
dependency "bzip2"
dependency "python"
dependency "pip"... | # See the License for the specific language governing permissions and
# limitations under the License.
#
name "openstack-common"
dependency "bzip2"
dependency "python"
dependency "pip"
dependency "libxml2"
dependency "libxslt"
dependency "zlib"
dependency "lxml"
dependency "libreadline"
dependency "libyaml"
depende... | <|file_sep|>original/config/software/openstack-common.rb
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name "openstack-common"
dependency "bzip2"
dependency "python"
dependency "pip"... | 91ad6098ba151fd9bb715b27000a122513c2bf83 | config/software/openstack-common.rb | config/software/openstack-common.rb | Ruby |
<|file_sep|>docs/assets/js/docs.ad.js.diff
original:
var _kmq = _kmq || [];
updated:
<|file_sep|>docs/assets/js/docs.ad.js.diff
original:
// No need to do a timeout for default case, if KM times out just don't show ad.
_kmq.push(function(){
// Set up the experiment (this is the meat and potatoes)
var typ... | $(function() {
// TODO: Add alternate between advanced and intro
var topic = $('h1.docs-page-title').text();
var header = 'Master ' + topic;
var body = 'Get up to speed FAST, learn straight from the experts who built Foundation.';
var link = 'http://zurb.com/university/foundation-intro?utm_source=Foundation%... | <|file_sep|>docs/assets/js/docs.ad.js.diff
original:
var _kmq = _kmq || [];
updated:
<|file_sep|>docs/assets/js/docs.ad.js.diff
original:
// No need to do a timeout for default case, if KM times out just don't show ad.
_kmq.push(function(){
// Set up the experiment (this is the meat and potatoes)
var typ... | afcbd88b545b285128ac7f8d4a8cff605edfb3d2 | docs/assets/js/docs.ad.js | docs/assets/js/docs.ad.js | JavaScript |
<|file_sep|>locales/hsb/notes.properties.diff
original:
welcomeTitle=Witajće!
welcomeText=To je jednory zapisnik z jenož jednej stronu, kotryž je w Firefox zatwarjeny a wam pomha, najwjace z weba wućahnyć.
updated:
welcomeTitle2=Witaj!
<|file_sep|>original/locales/hsb/notes.properties
welcomeTitle=Witajće!
welcomeText=... | welcomeTitle2=Witaj!
emptyPlaceHolder=Čińće noticu…
openingLogin=Přizjewjenje so wočinja…
forgetEmail=Tutu e-mejl zabyć
syncNotes=Waše noticy synchronizować
syncProgress=Změny so synchronizuja…
# LOCALIZATION NOTE (disableSync): Sync is intended as a generic
# synchronization, not Firefox Sync.
disableSync=Sync znje... | <|file_sep|>locales/hsb/notes.properties.diff
original:
welcomeTitle=Witajće!
welcomeText=To je jednory zapisnik z jenož jednej stronu, kotryž je w Firefox zatwarjeny a wam pomha, najwjace z weba wućahnyć.
updated:
welcomeTitle2=Witaj!
<|file_sep|>original/locales/hsb/notes.properties
welcomeTitle=Witajće!
welcomeText=... | ff086ec42ca01e1ef26d00f6288d393989cccabc | locales/hsb/notes.properties | locales/hsb/notes.properties | INI |
<|file_sep|>original/Package.swift
],
targets: [
.target(
name: "SmartDeviceLink",
path: "SmartDeviceLink",
exclude: ["Info.plist"],
publicHeadersPath: "public"
),
.target(
name: "SmartDeviceLinkSwift",
dependencies:... | targets: [
.target(
name: "SmartDeviceLink",
path: "SmartDeviceLink",
exclude: ["Info.plist"],
publicHeadersPath: "public"
),
.target(
name: "SmartDeviceLinkSwift",
dependencies: [
"SmartDeviceLink"
... | <|file_sep|>original/Package.swift
],
targets: [
.target(
name: "SmartDeviceLink",
path: "SmartDeviceLink",
exclude: ["Info.plist"],
publicHeadersPath: "public"
),
.target(
name: "SmartDeviceLinkSwift",
dependencies:... | bcd8409b66b6fa2ad7f0e8c61de6fb6a818fa7b4 | Package.swift | Package.swift | Swift |
<|file_sep|>original/rpm/src/main/scripts/send-daily-usage-emails.sh
#!/bin/bash
java -Dpersistence.unit=hsqldb-schema \
-cp "/opt/slipstream/server/webapps/slipstream.war/WEB-INF/lib/*": \
com.sixsq.slipstream.action.DailyUsageSender
<|file_sep|>current/rpm/src/main/scripts/send-daily-usage-emails.sh
#!/bin... | #!/bin/bash
/usr/lib/jvm/jre-1.8.0/bin/java -Dpersistence.unit=hsqldb-schema \
-cp "/opt/slipstream/server/webapps/slipstream.war/WEB-INF/lib/*":"/opt/slipstream/server/lib/connectors/*" \
com.sixsq.slipstream.action.DailyUsageSender | <|file_sep|>original/rpm/src/main/scripts/send-daily-usage-emails.sh
#!/bin/bash
java -Dpersistence.unit=hsqldb-schema \
-cp "/opt/slipstream/server/webapps/slipstream.war/WEB-INF/lib/*": \
com.sixsq.slipstream.action.DailyUsageSender
<|file_sep|>current/rpm/src/main/scripts/send-daily-usage-emails.sh
#!/bin... | 204ef49baa449a667cf3f225e873184e04075e7a | rpm/src/main/scripts/send-daily-usage-emails.sh | rpm/src/main/scripts/send-daily-usage-emails.sh | Shell |
<|file_sep|>packages/truffle-core/lib/commands/migrate.js.diff
original:
updated:
},
f: {
describe: "Specify a migration number to run from",
type: "number"
<|file_sep|>packages/truffle-core/lib/commands/migrate.js.diff
original:
Migrate.needsMigrating(config, function(err, needsMigrating) ... |
if (options.f) {
Migrate.runFrom(options.f, config, done);
} else {
Migrate.needsMigrating(config, function(err, needsMigrating) {
if (err) return done(err);
if (needsMigrating) {
Migrate.run(config, done);
} else {
co... | <|file_sep|>packages/truffle-core/lib/commands/migrate.js.diff
original:
updated:
},
f: {
describe: "Specify a migration number to run from",
type: "number"
<|file_sep|>packages/truffle-core/lib/commands/migrate.js.diff
original:
Migrate.needsMigrating(config, function(err, needsMigrating) ... | 9bd1c51b1313e9b5ddd7a37f903df3e4155755d3 | packages/truffle-core/lib/commands/migrate.js | packages/truffle-core/lib/commands/migrate.js | JavaScript |
<|file_sep|>original/osf/migrations/0069_auto_20171127_1119.py
<|file_sep|>current/osf/migrations/0069_auto_20171127_1119.py
<|file_sep|>updated/osf/migrations/0069_auto_20171127_1119.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-27 17:19
from __future__ import unicode_literals
import logging
from django.db import migrations
from osf.models import PreprintService
logger = logging.getLogger(__name__)
def add_preprint_doi_created(apps, schema_editor):
"""
Data migration tha... | <|file_sep|>original/osf/migrations/0069_auto_20171127_1119.py
<|file_sep|>current/osf/migrations/0069_auto_20171127_1119.py
<|file_sep|>updated/osf/migrations/0069_auto_20171127_1119.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-27 17:19
from __future__ import unicode_literals
import logging
fr... | bac06acb1e6255040f371232776f3da75fb9247a | osf/migrations/0069_auto_20171127_1119.py | osf/migrations/0069_auto_20171127_1119.py | Python |
<|file_sep|>original/README.md
Have an experience at http://frame.1stop-st.org/ !
# Frame
[](https://circleci.com/gh/1stop-st/frame)
[<img alt="CircleCI" src="https://storage.googleapis.com/frame-static/circleci.png" width=200>](https://circleci.... | Have an experience at http://frame.1stop-st.org/ !
# Frame
[](https://circleci.com/gh/1stop-st/frame)
[<img alt="CircleCI" src="https://storage.googleapis.com/frame-static/circleci.png" width=200>](https://circleci.com/)
[](https://circleci.com/gh/1stop-st/frame)
[<img alt="CircleCI" src="https://storage.googleapis.com/frame-static/circleci.png" width=200>](https://circleci.... | 9c414e3e07c6f815b25284966d94a89c43de601f | README.md | README.md | Markdown |
<|file_sep|>original/test/adapt.py
<p>A <span>test</span> of text and tail
<p><svg viewbox="v"><image xlink:href="h">
</body>
<!-- A -- comment --->
</html>
'''
class AdaptTest(TestCase):
def test_etree(self):
from xml.etree.ElementTree import tostring
root = parse(HTML, treebuilder='etree')
... | <p>A <span>test</span> of text and tail
<p><svg viewbox="v"><image xlink:href="h">
</body>
<!-- A -- comment --->
</html>
'''
class AdaptTest(TestCase):
def test_etree(self):
from xml.etree.ElementTree import tostring
root = parse(HTML, treebuilder='etree')
self.ae(root.tag, 'html')
... | <|file_sep|>original/test/adapt.py
<p>A <span>test</span> of text and tail
<p><svg viewbox="v"><image xlink:href="h">
</body>
<!-- A -- comment --->
</html>
'''
class AdaptTest(TestCase):
def test_etree(self):
from xml.etree.ElementTree import tostring
root = parse(HTML, treebuilder='etree')
... | ba75572bd7de9a441cad72fe90d7ec233e9c1a15 | test/adapt.py | test/adapt.py | Python |
<|file_sep|>acceptance/setup/pre_suite/80_add_dev_repo.rb.diff
original:
create_remote_file database, '/etc/yum.repos.d/puppetlabs-prerelease.repo', <<-REPO
updated:
yum_repo = <<-REPO
<|file_sep|>original/acceptance/setup/pre_suite/80_add_dev_repo.rb
case os
when :debian
apt_url = "#{test_con... | apt_url = "#{test_config[:package_repo_url]}/debian"
# TODO: this could be (maybe?) ported over to use the puppetlabs-apt module.
on database, "echo deb #{apt_url} $(lsb_release -sc) main >> /etc/apt/sources.list"
on database, "curl #{apt_url}/pubkey.gpg |apt-key add -"
on database, "apt-... | <|file_sep|>acceptance/setup/pre_suite/80_add_dev_repo.rb.diff
original:
create_remote_file database, '/etc/yum.repos.d/puppetlabs-prerelease.repo', <<-REPO
updated:
yum_repo = <<-REPO
<|file_sep|>original/acceptance/setup/pre_suite/80_add_dev_repo.rb
case os
when :debian
apt_url = "#{test_con... | e587f40eb5546ff5ebc32bdc3d53cefa06c78cd7 | acceptance/setup/pre_suite/80_add_dev_repo.rb | acceptance/setup/pre_suite/80_add_dev_repo.rb | Ruby |
<|file_sep|>testmud/mud/home/Game/sys/bin/rebuild.c.diff
original:
if (user->query_class() < 2) {
updated:
if (user->query_class() < 1) {
<|file_sep|>original/testmud/mud/home/Game/sys/bin/rebuild.c
#include <kotaka/paths.h>
#include <game/paths.h>
inherit LIB_BIN;
void main(string args)
{
object user;
user = qu... | #include <kotaka/paths.h>
#include <game/paths.h>
inherit LIB_BIN;
void main(string args)
{
object user;
user = query_user();
if (user->query_class() < 1) {
send_out("You do not have sufficient access rights to rebuild.\n");
return;
}
OBJECTD->recompile_everything();
} | <|file_sep|>testmud/mud/home/Game/sys/bin/rebuild.c.diff
original:
if (user->query_class() < 2) {
updated:
if (user->query_class() < 1) {
<|file_sep|>original/testmud/mud/home/Game/sys/bin/rebuild.c
#include <kotaka/paths.h>
#include <game/paths.h>
inherit LIB_BIN;
void main(string args)
{
object user;
user = qu... | 3b4878c31f8659a1a8c05225ced397ee76a12208 | testmud/mud/home/Game/sys/bin/rebuild.c | testmud/mud/home/Game/sys/bin/rebuild.c | C |
<|file_sep|>README.md.diff
original:
This repository (will) contain my ideas, code, and utilities for working on notch's DCPU16.
updated:
This repository (will) contain my ideas, code, and utilities for working on [notch's DCPU-16](https://en.wikipedia.org/wiki/0x10c).
<|file_sep|>original/README.md
# 0x10c
This repos... | # 0x10c
This repository (will) contain my ideas, code, and utilities for working on [notch's DCPU-16](https://en.wikipedia.org/wiki/0x10c).
At the moment, the highlights are syntax highlighting for Sublime Text 2, TextMate, etc under support; and my first pass at a cooperative threading library under threads.
Pull r... | <|file_sep|>README.md.diff
original:
This repository (will) contain my ideas, code, and utilities for working on notch's DCPU16.
updated:
This repository (will) contain my ideas, code, and utilities for working on [notch's DCPU-16](https://en.wikipedia.org/wiki/0x10c).
<|file_sep|>original/README.md
# 0x10c
This repos... | 65c770ef9879ff25610f5e8ce21cffa58b534ed7 | README.md | README.md | Markdown |
<|file_sep|>original/app/views/ilohv/files/_file.json.jbuilder
json.partial! 'ilohv/nodes/node', node: file
<|file_sep|>current/app/views/ilohv/files/_file.json.jbuilder
json.partial! 'ilohv/nodes/node', node: file
<|file_sep|>updated/app/views/ilohv/files/_file.json.jbuilder | json.partial! 'ilohv/nodes/node', node: file
json.size file.size
json.content_type file.content_type
json.extension file.extension | <|file_sep|>original/app/views/ilohv/files/_file.json.jbuilder
json.partial! 'ilohv/nodes/node', node: file
<|file_sep|>current/app/views/ilohv/files/_file.json.jbuilder
json.partial! 'ilohv/nodes/node', node: file
<|file_sep|>updated/app/views/ilohv/files/_file.json.jbuilder
json.partial! 'ilohv/nodes/node', node: fil... | 61ab3c470691585d77cb7401ca599c14793f29a7 | app/views/ilohv/files/_file.json.jbuilder | app/views/ilohv/files/_file.json.jbuilder | Ruby |
<|file_sep|>original/scripts/dist.js
* Clean up the package.json
*/
(done) => {
console.log('### Cleaning up the package.json');
const packageJSON = JSON.parse(fs.readFileSync(distPath('package.json')).toString());
// Used by documentation site
// Can be used for CI tests by consuming applications
packa... | * Clean up the package.json
*/
(done) => {
console.log('### Cleaning up the package.json');
const packageJSON = JSON.parse(fs.readFileSync(distPath('package.json')).toString());
// Used by documentation site
// Can be used for CI tests by consuming applications
packageJSON.SLDS = { gitURL: packageJSON.d... | <|file_sep|>original/scripts/dist.js
* Clean up the package.json
*/
(done) => {
console.log('### Cleaning up the package.json');
const packageJSON = JSON.parse(fs.readFileSync(distPath('package.json')).toString());
// Used by documentation site
// Can be used for CI tests by consuming applications
packa... | 84c7fea0065a92c5dd81088d0fb29100eb52e95d | scripts/dist.js | scripts/dist.js | JavaScript |
<|file_sep|>original/src/org/myrobotlab/document/transformer/RenameField.java
oldName = config.getProperty("oldName");
newName = config.getProperty("newName");
}
}
@Override
public List<Document> processDocument(Document doc) {
if (!doc.hasField(oldName)) {
return null;
}
doc.addToField(newName, do... | oldName = config.getProperty("oldName");
newName = config.getProperty("newName");
}
}
@Override
public List<Document> processDocument(Document doc) {
if (!doc.hasField(oldName)) {
return null;
}
for (Object o : doc.getField(oldName)) {
doc.addToField(newName, o);
}
doc.removeField(oldName);
... | <|file_sep|>original/src/org/myrobotlab/document/transformer/RenameField.java
oldName = config.getProperty("oldName");
newName = config.getProperty("newName");
}
}
@Override
public List<Document> processDocument(Document doc) {
if (!doc.hasField(oldName)) {
return null;
}
doc.addToField(newName, do... | 1b1825f90439b3b64765f7563a520043d62e6b09 | src/org/myrobotlab/document/transformer/RenameField.java | src/org/myrobotlab/document/transformer/RenameField.java | Java |
<|file_sep|>original/.github/ISSUE_TEMPLATE/config.yml
<|file_sep|>current/.github/ISSUE_TEMPLATE/config.yml
<|file_sep|>updated/.github/ISSUE_TEMPLATE/config.yml | contact_links:
- name: SMF Community Support
url: https://www.simplemachines.org/community/index.php#category_3
about: Please ask and answer questions here.
- name: SMF Security Issue
url: https://www.simplemachines.org/about/smf/security.php
about: Please report security vulnerabilities here. | <|file_sep|>original/.github/ISSUE_TEMPLATE/config.yml
<|file_sep|>current/.github/ISSUE_TEMPLATE/config.yml
<|file_sep|>updated/.github/ISSUE_TEMPLATE/config.yml
contact_links:
- name: SMF Community Support
url: https://www.simplemachines.org/community/index.php#category_3
about: Please ask and answer ques... | 342a29aea3af273f4971b76c4625cb764f429a9f | .github/ISSUE_TEMPLATE/config.yml | .github/ISSUE_TEMPLATE/config.yml | YAML |
<|file_sep|>original/puppet/hieradata/database.yaml
nova::db::mysql_api::user: nova_api
nova::db::mysql_api::host: "%{hiera('mysql_virtual_ip')}"
nova::db::mysql_api::dbname: nova_api
nova::db::mysql_api::allowed_hosts:
- '%'
- "%{hiera('mysql_bind_host')}"
# Ceilometer
ceilometer::db::mysql::user: ceilometer
cei... | nova::db::mysql::user: nova
nova::db::mysql::host: "%{hiera('mysql_virtual_ip')}"
nova::db::mysql::dbname: nova
nova::db::mysql::allowed_hosts:
- '%'
- "%{hiera('mysql_bind_host')}"
nova::db::mysql_api::user: nova_api
nova::db::mysql_api::host: "%{hiera('mysql_virtual_ip')}"
nova::db::mysql_api::dbname: nova_api
n... | <|file_sep|>original/puppet/hieradata/database.yaml
nova::db::mysql_api::user: nova_api
nova::db::mysql_api::host: "%{hiera('mysql_virtual_ip')}"
nova::db::mysql_api::dbname: nova_api
nova::db::mysql_api::allowed_hosts:
- '%'
- "%{hiera('mysql_bind_host')}"
# Ceilometer
ceilometer::db::mysql::user: ceilometer
cei... | f12f7f33ddb953259259151faea2edb7f0f070fe | puppet/hieradata/database.yaml | puppet/hieradata/database.yaml | YAML |
<|file_sep|>original/common/NIL_RTOS_Update_Site/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion... | <parent>
<groupId>com.st.tools.spc5.components</groupId>
<artifactId>nil</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
<groupId>com.st.tools.spc5.components</groupId>
<artifactId>NIL_RTOS_Update_Site</artifactId>
<version>0.0.1-SNAPSHOT</version>
... | <|file_sep|>original/common/NIL_RTOS_Update_Site/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion... | cffbb298746c255f32b31159fcdd815d00ec91e1 | common/NIL_RTOS_Update_Site/pom.xml | common/NIL_RTOS_Update_Site/pom.xml | XML |
<|file_sep|>original/README.md
var p = new Person();
// Object
p.set('name.first', 'Tom');
p.set('name.last', 'Watson');
console.log(p.get('name')); //=> {first: 'Tom', last: 'Watson'}
console.log(p.get('name.first')); //=> 'Tom'
console.log(p.get('name.last')); //=> 'Watson'
// Array
p.set('pets[0]', {name: 'Mi', k... |
var p = new Person();
// Object
p.set('name.first', 'Tom');
p.set('name.last', 'Watson');
console.log(p.get('name')); //=> {first: 'Tom', last: 'Watson'}
console.log(p.get('name.first')); //=> 'Tom'
console.log(p.get('name.last')); //=> 'Watson'
// Array
p.set('pets[0]', {name: 'Mi', kind: 'Cat'});
console.log(p.get... | <|file_sep|>original/README.md
var p = new Person();
// Object
p.set('name.first', 'Tom');
p.set('name.last', 'Watson');
console.log(p.get('name')); //=> {first: 'Tom', last: 'Watson'}
console.log(p.get('name.first')); //=> 'Tom'
console.log(p.get('name.last')); //=> 'Watson'
// Array
p.set('pets[0]', {name: 'Mi', k... | d06cde70e3c68a42f2e53f05ee6c814a51f7b83b | README.md | README.md | Markdown |
<|file_sep|>original/handlers/main.yml
---
# defaults file for galaxyprojectdotorg.galaxy
- name: restart galaxy
shell: "{{ galaxy_server_dir }}/run.sh --pid-file={{ galaxy_tools_pid_file_name }} --log-file={{ galaxy_tools_log_file_name }} --stop-daemon"
become_user: "{{ galaxy_user_name }}"
ignore_errors: True
... | ---
# defaults file for galaxyproject.galaxy
- name: restart galaxy
shell: "{{ galaxy_server_dir }}/run.sh --pid-file={{ galaxy_tools_pid_file_name }} --log-file={{ galaxy_tools_log_file_name }} --stop-daemon"
become_user: "{{ galaxy_user_name }}"
ignore_errors: True
notify: restart galaxy step 2
- name: rest... | <|file_sep|>original/handlers/main.yml
---
# defaults file for galaxyprojectdotorg.galaxy
- name: restart galaxy
shell: "{{ galaxy_server_dir }}/run.sh --pid-file={{ galaxy_tools_pid_file_name }} --log-file={{ galaxy_tools_log_file_name }} --stop-daemon"
become_user: "{{ galaxy_user_name }}"
ignore_errors: True
... | f4bc22413b62bfbf2c0c47c1292cda66106ba240 | handlers/main.yml | handlers/main.yml | YAML |
<|file_sep|>original/proto/hydrad.proto
<|file_sep|>current/proto/hydrad.proto
<|file_sep|>updated/proto/hydrad.proto | package hydrad;
message request_version {
}
message response_version {
required string version = 1;
}
message request_stats {
}
message response_stats {
message requests_counters {
required string total_count = 1;
required string failed_count = 2;
required string error_count = 3;
}
required requ... | <|file_sep|>original/proto/hydrad.proto
<|file_sep|>current/proto/hydrad.proto
<|file_sep|>updated/proto/hydrad.proto
package hydrad;
message request_version {
}
message response_version {
required string version = 1;
}
message request_stats {
}
message response_stats {
message requests_counters {
require... | 47922cc41b346d8ffdf6a304ab32d442404335d2 | proto/hydrad.proto | proto/hydrad.proto | Protocol Buffer |
<|file_sep|>original/server/functions/fn_vehicleKilledServer.sqf
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2017 A3Wasteland.com *
// ******************************************************************************************
// @file Name: fn_vehicleKilledServer.sqf
// @file Author: AgentRev... |
_veh call A3W_fnc_setItemCleanup;
if (!isNil "fn_manualVehicleDelete") then
{
[objNull, _veh getVariable "A3W_vehicleID"] call fn_manualVehicleDelete;
_veh setVariable ["A3W_vehicleSaved", false, false];
};
{
if (isAgent teamMember _x) then
{
deleteVehicle _x;
};
} forEach crew _vehicle;
// Stop vehicle sire... | <|file_sep|>original/server/functions/fn_vehicleKilledServer.sqf
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2017 A3Wasteland.com *
// ******************************************************************************************
// @file Name: fn_vehicleKilledServer.sqf
// @file Author: AgentRev... | 236d58fceee3900cb5bf98cd12c332c2dff0b77f | server/functions/fn_vehicleKilledServer.sqf | server/functions/fn_vehicleKilledServer.sqf | SQF |
<|file_sep|>original/Libraries/Animated/src/Animated.js
'use strict';
import Platform from '../../Utilities/Platform';
const View = require('../../Components/View/View');
const React = require('react');
import type {AnimatedComponentType} from './createAnimatedComponent';
const AnimatedMock = require('./AnimatedMock'... | 'use strict';
import Platform from '../../Utilities/Platform';
const View = require('../../Components/View/View');
const React = require('react');
import type {AnimatedComponentType} from './createAnimatedComponent';
const AnimatedMock = require('./AnimatedMock');
const AnimatedImplementation = require('./AnimatedImp... | <|file_sep|>original/Libraries/Animated/src/Animated.js
'use strict';
import Platform from '../../Utilities/Platform';
const View = require('../../Components/View/View');
const React = require('react');
import type {AnimatedComponentType} from './createAnimatedComponent';
const AnimatedMock = require('./AnimatedMock'... | 5ad964ba3ed5728d88686d2f5cfc3becac49f667 | Libraries/Animated/src/Animated.js | Libraries/Animated/src/Animated.js | JavaScript |
<|file_sep|>original/metadata.json
{
"name": "gdsoperations-resolvconf",
"version": "0.3.4",
"author": "Government Digital Service",
"license": "MIT",
"summary": "Manage resolvconf for Ubuntu",
"source": "https://github.com/gds-operations/puppet-resolvconf",
"project_pag... | {
"name": "gdsoperations-resolvconf",
"version": "0.3.4",
"author": "Government Digital Service",
"license": "MIT",
"summary": "Manage resolvconf for Ubuntu",
"source": "https://github.com/gds-operations/puppet-resolvconf",
"project_page": "https://github.com/gds-operati... | <|file_sep|>original/metadata.json
{
"name": "gdsoperations-resolvconf",
"version": "0.3.4",
"author": "Government Digital Service",
"license": "MIT",
"summary": "Manage resolvconf for Ubuntu",
"source": "https://github.com/gds-operations/puppet-resolvconf",
"project_pag... | 1d2cef1e640dbda697b9447f3c0d8c4081027813 | metadata.json | metadata.json | JSON |
<|file_sep|>.travis.yml.diff
original:
updated:
- ruby-head
<|file_sep|>original/.travis.yml
before_install:
- echo "yes" | gem uninstall json
script:
- bundle
- rake appraisal:install
- rake appraisal
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
- rbx
- jruby
notifications:
email:
on_success: always... | before_install:
- echo "yes" | gem uninstall json
script:
- bundle
- rake appraisal:install
- rake appraisal
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
- rbx-18mode
- jruby-18mode
notifications:
email:
on_success: always
on_failure: always | <|file_sep|>.travis.yml.diff
original:
updated:
- ruby-head
<|file_sep|>original/.travis.yml
before_install:
- echo "yes" | gem uninstall json
script:
- bundle
- rake appraisal:install
- rake appraisal
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
- rbx
- jruby
notifications:
email:
on_success: always... | 4e99abe3ece80b3e3750d1053b74d92b446338a8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/RocketLeagueReplayParser/NugetPackagePublish.bat
@echo off
call ..\..\SetNugetApiKey.bat
del *.nupkg
nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release
nuget setApiKey %NUGET_API_KEY%
nuget push *.nupkg
pause
<|file_sep|>current/RocketLeagueReplayParser/NugetPackagePublis... | @echo off
call ..\..\SetNugetApiKey.bat
del *.nupkg
..\..\nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release
..\..\nuget setApiKey %NUGET_API_KEY%
..\..\nuget push *.nupkg
pause | <|file_sep|>original/RocketLeagueReplayParser/NugetPackagePublish.bat
@echo off
call ..\..\SetNugetApiKey.bat
del *.nupkg
nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release
nuget setApiKey %NUGET_API_KEY%
nuget push *.nupkg
pause
<|file_sep|>current/RocketLeagueReplayParser/NugetPackagePublis... | 949d8d135a372024d6f0bdf2fb19ff703e102fd7 | RocketLeagueReplayParser/NugetPackagePublish.bat | RocketLeagueReplayParser/NugetPackagePublish.bat | Batchfile |
<|file_sep|>original/version.php
<?PHP //$Id$
// This file defines the current version of the
// Moodle code that is being used. This can be
// compared against the values stored in the
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
$version = 2003032602; // The current versio... | <?PHP //$Id$
// This file defines the current version of the
// Moodle code that is being used. This can be
// compared against the values stored in the
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
$version = 2003041200; // The current version is a date (YYYYMMDDXX)
$releas... | <|file_sep|>original/version.php
<?PHP //$Id$
// This file defines the current version of the
// Moodle code that is being used. This can be
// compared against the values stored in the
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
$version = 2003032602; // The current versio... | cdb0ca83158eba9a235272c95a2e5adc30e284e3 | version.php | version.php | PHP |
<|file_sep|>original/src/main/resources/META-INF/spring/database_dev.properties
database.driverClassName=org.h2.Driver
database.url=jdbc\:h2\:mem\:trackr;DB_CLOSE_DELAY\=-1
database.username=
database.password=
database.hibernateDialect=org.hibernate.dialect.H2Dialect
database.hbm2ddlAuto=create
database.jndiName=
tok... | database.driverClassName=org.h2.Driver
database.url=jdbc\:h2\:mem\:trackr;DB_CLOSE_DELAY\=-1
database.username=sa
database.password=
database.hibernateDialect=org.hibernate.dialect.H2Dialect
database.hbm2ddlAuto=create
database.jndiName=
tokenDatabase.driverClassName=
tokenDatabase.url=
tokenDatabase.username=
tokenDa... | <|file_sep|>original/src/main/resources/META-INF/spring/database_dev.properties
database.driverClassName=org.h2.Driver
database.url=jdbc\:h2\:mem\:trackr;DB_CLOSE_DELAY\=-1
database.username=
database.password=
database.hibernateDialect=org.hibernate.dialect.H2Dialect
database.hbm2ddlAuto=create
database.jndiName=
tok... | 8d1eedc9638b6b315a35c3c6cfa91db35ec7893a | src/main/resources/META-INF/spring/database_dev.properties | src/main/resources/META-INF/spring/database_dev.properties | INI |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.