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/hieradata/class/exception_handler.yaml
mongodb:
pv:
- '/dev/sdb1'
- '/dev/sdd1'
vg: 'backup'
data:
pv: '/dev/sdc1'
vg: 'mongodb'
mount:
/var/lib/mongodb:
disk: '/dev/mapper/mongodb-data'
govuk_lvm: 'data'
mountoptions: 'defaults'
/var/lib/automongodb... | mongodb:
pv:
- '/dev/sdb1'
- '/dev/sdd1'
vg: 'backup'
data:
pv: '/dev/sdc1'
vg: 'mongodb'
mount:
/var/lib/mongodb:
disk: '/dev/mapper/mongodb-data'
govuk_lvm: 'data'
mountoptions: 'defaults'
/var/lib/automongodbbackup:
disk: '/dev/mapper/backup-mongodb'
govuk_lvm... | <|file_sep|>original/hieradata/class/exception_handler.yaml
mongodb:
pv:
- '/dev/sdb1'
- '/dev/sdd1'
vg: 'backup'
data:
pv: '/dev/sdc1'
vg: 'mongodb'
mount:
/var/lib/mongodb:
disk: '/dev/mapper/mongodb-data'
govuk_lvm: 'data'
mountoptions: 'defaults'
/var/lib/automongodb... | cdbe25dacce1d0c8d63366ce7fd4569bb30b0e73 | hieradata/class/exception_handler.yaml | hieradata/class/exception_handler.yaml | YAML |
<|file_sep|>original/site/en/sitemap.md
<|file_sep|>current/site/en/sitemap.md
<|file_sep|>updated/site/en/sitemap.md | # Go to [tensorflow.org](https://tensorflow.org/overview).
This g3doc directory is just for previewing changes. These docs are best-viewed
on [tensorflow.org](https://tensorflow.org/overview) | <|file_sep|>original/site/en/sitemap.md
<|file_sep|>current/site/en/sitemap.md
<|file_sep|>updated/site/en/sitemap.md
# Go to [tensorflow.org](https://tensorflow.org/overview).
This g3doc directory is just for previewing changes. These docs are best-viewed
on [tensorflow.org](https://tensorflow.org/overview) | 071101e5507e38b305caf5f3c91f872e326cb510 | site/en/sitemap.md | site/en/sitemap.md | Markdown |
<|file_sep|>appveyor.yml.diff
original:
platform: x86
updated:
platform: Win32
configuration: Release
<|file_sep|>original/appveyor.yml
os: Visual Studio 2014 CTP4
platform: x86
environment:
VIPS_VERSION_MAJOR_MINOR: 7.42
VIPS_VERSION_PATCH: 3
VIPS_WARNING: 0
install:
- ps: $env:VIPS_VERSION = "$env:VIPS_VERSIO... | os: Visual Studio 2014 CTP4
platform: Win32
configuration: Release
environment:
VIPS_VERSION_MAJOR_MINOR: 7.42
VIPS_VERSION_PATCH: 3
VIPS_WARNING: 0
install:
- ps: $env:VIPS_VERSION = "$env:VIPS_VERSION_MAJOR_MINOR.$env:VIPS_VERSION_PATCH"
- ps: Write-Output "Fetching http://www.vips.ecs.soton.ac.uk/supported... | <|file_sep|>appveyor.yml.diff
original:
platform: x86
updated:
platform: Win32
configuration: Release
<|file_sep|>original/appveyor.yml
os: Visual Studio 2014 CTP4
platform: x86
environment:
VIPS_VERSION_MAJOR_MINOR: 7.42
VIPS_VERSION_PATCH: 3
VIPS_WARNING: 0
install:
- ps: $env:VIPS_VERSION = "$env:VIPS_VERSIO... | dacd62428e23328951d498a0328ea54ced96524b | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/lib/spree_store_credits/engine.rb
module SpreeStoreCredits
class Engine < Rails::Engine
require 'spree/core'
isolate_namespace Spree
engine_name 'spree_store_credits'
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
def self.activate
... | isolate_namespace Spree
engine_name 'spree_store_credits'
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
def self.activate
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
Rails.configuration.cache_classes ? requ... | <|file_sep|>original/lib/spree_store_credits/engine.rb
module SpreeStoreCredits
class Engine < Rails::Engine
require 'spree/core'
isolate_namespace Spree
engine_name 'spree_store_credits'
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
def self.activate
... | 7bc5c9d7cb97d841dbfbf73ef96dedf40c2be2ba | lib/spree_store_credits/engine.rb | lib/spree_store_credits/engine.rb | Ruby |
<|file_sep|>tests/configuration/PhpUnitStartServerListener.php.diff
original:
use PHPUnit\Framework\BaseTestListener;
updated:
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
<|file_sep|>tests/configuration/PhpUnitStartServerListener.php.diff
original:
final ... | $this->suiteName = $suiteName;
$this->socket = $socket;
$this->documentRoot = $documentRoot;
}
/**
* @inheritdoc
*/
public function startTestSuite(TestSuite $suite): void
{
if ($suite->getName() === $this->suiteName) {
... | <|file_sep|>tests/configuration/PhpUnitStartServerListener.php.diff
original:
use PHPUnit\Framework\BaseTestListener;
updated:
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
<|file_sep|>tests/configuration/PhpUnitStartServerListener.php.diff
original:
final ... | c26ba11de4e728869982692084b7092d1ab6e754 | tests/configuration/PhpUnitStartServerListener.php | tests/configuration/PhpUnitStartServerListener.php | PHP |
<|file_sep|>.travis.yml.diff
original:
sudo: false
updated:
<|file_sep|>original/.travis.yml
language: node_js
sudo: false
node_js:
- stable
- "5"
- "4"
script: npm test
branches:
only:
- master
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- stable
- "5"
- "4"
script: npm test
branches:... | language: node_js
node_js:
- stable
- "12"
- "10"
script:
- npm run browserify
- npm run minify
- npm test | <|file_sep|>.travis.yml.diff
original:
sudo: false
updated:
<|file_sep|>original/.travis.yml
language: node_js
sudo: false
node_js:
- stable
- "5"
- "4"
script: npm test
branches:
only:
- master
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- stable
- "5"
- "4"
script: npm test
branches:... | a7c4d392d5263026cb33d9d908577e4c1d78397b | .travis.yml | .travis.yml | YAML |
<|file_sep|>resources/assets/sass/variables/colors.scss.diff
original:
$colors-border: #EBECF0;
$colors-primary: #5E9CF2;
updated:
$colors-border: #E4E8EB;
<|file_sep|>original/resources/assets/sass/variables/colors.scss
$colors-background: #F8F9FB;
$colors-border: #EBECF0;
$colors-primary: #5E9CF2;
$colors-text: #7581... | $colors-background: #F8F9FB;
$colors-border: #E4E8EB;
$colors-text: #758193;
$colors-blue: #179BD1;
$colors-primary: $colors-blue; | <|file_sep|>resources/assets/sass/variables/colors.scss.diff
original:
$colors-border: #EBECF0;
$colors-primary: #5E9CF2;
updated:
$colors-border: #E4E8EB;
<|file_sep|>original/resources/assets/sass/variables/colors.scss
$colors-background: #F8F9FB;
$colors-border: #EBECF0;
$colors-primary: #5E9CF2;
$colors-text: #7581... | 7ea1eb6e593c565e7dbd8ec90961e4893ce60634 | resources/assets/sass/variables/colors.scss | resources/assets/sass/variables/colors.scss | SCSS |
<|file_sep|>original/validate_as_email.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/validate_as_email/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['James Conroy-Finn']
gem.email = ['james@logi.cl']
gem.description = %q{The ultimate Rails 3 email validat... | # -*- encoding: utf-8 -*-
require File.expand_path('../lib/validate_as_email/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['James Conroy-Finn']
gem.email = ['james@logi.cl']
gem.description = %q{The ultimate Rails 3 email validator}
gem.summary = %q{The ultimate Rails... | <|file_sep|>original/validate_as_email.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/validate_as_email/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['James Conroy-Finn']
gem.email = ['james@logi.cl']
gem.description = %q{The ultimate Rails 3 email validat... | ab0cd6176c1d68600d830238f5999d7f1aabe171 | validate_as_email.gemspec | validate_as_email.gemspec | Ruby |
<|file_sep|>original/circle.yml
- lein deps
- npm install -g karma-cli
- npm install
- rm -rf node_modules/react node_modules/react-dom node_modules/create-react-class node_modules/@cljs-oss
test:
override:
# Cljsjs - browser
- lein with-profile test do clean, doo chrome-headless client once
... | - npm install -g karma-cli
- npm install
- rm -rf node_modules/react node_modules/react-dom node_modules/create-react-class node_modules/@cljs-oss
test:
override:
# Cljsjs - browser
- lein with-profile test do clean, doo chrome-headless client once
- test -f out/cljsjs/react/development/react.... | <|file_sep|>original/circle.yml
- lein deps
- npm install -g karma-cli
- npm install
- rm -rf node_modules/react node_modules/react-dom node_modules/create-react-class node_modules/@cljs-oss
test:
override:
# Cljsjs - browser
- lein with-profile test do clean, doo chrome-headless client once
... | b2790e7bb4d9ec6db05af40237819393b472dcbf | circle.yml | circle.yml | YAML |
<|file_sep|>original/tasks/tar.rake
task :package => [ :clobber, JAR_FILE, :template ] do
temp = `mktemp -d -t tmpXXXXXX`.strip
workdir = File.join(temp, "#{@name}-#{@version}")
mkdir_p workdir
FileList[ "tasks", "ext", "*.md", JAR_FILE, "documentation", "Rakefile" ].each do |f|
cp_pr f, workdir
end
# ... | task :package => [ :clobber, JAR_FILE, :template ] do
temp = `mktemp -d -t tmpXXXXXX`.strip
workdir = File.join(temp, "#{@name}-#{@version}")
mkdir_p workdir
FileList[ "tasks", "ext", "*.md", JAR_FILE, "documentation", "Rakefile" ].each do |f|
cp_pr f, workdir
end
# Lay down version file for later read... | <|file_sep|>original/tasks/tar.rake
task :package => [ :clobber, JAR_FILE, :template ] do
temp = `mktemp -d -t tmpXXXXXX`.strip
workdir = File.join(temp, "#{@name}-#{@version}")
mkdir_p workdir
FileList[ "tasks", "ext", "*.md", JAR_FILE, "documentation", "Rakefile" ].each do |f|
cp_pr f, workdir
end
# ... | c65d43fc6ad96898827c51bc11aad3c8946cc485 | tasks/tar.rake | tasks/tar.rake | Ruby |
<|file_sep|>package.json.diff
original:
"test": "npm test"
updated:
"lint": "standard",
"pretest": "npm run lint",
"test": "true"
<|file_sep|>original/package.json
"url": "git+https://github.com/jcollado/pr-tagger.git"
},
"keywords": [
"PR",
"tag",
"github",
"release"
],
"aut... | "PR",
"tag",
"github",
"release"
],
"author": "Javier Collado <javier.collado@gmail.com>",
"license": "ISC",
"bugs": {
"url": "https://github.com/jcollado/pr-tagger/issues"
},
"homepage": "https://github.com/jcollado/pr-tagger#readme",
"dependencies": {
"commander": "^2.9.0",
"... | <|file_sep|>package.json.diff
original:
"test": "npm test"
updated:
"lint": "standard",
"pretest": "npm run lint",
"test": "true"
<|file_sep|>original/package.json
"url": "git+https://github.com/jcollado/pr-tagger.git"
},
"keywords": [
"PR",
"tag",
"github",
"release"
],
"aut... | c0cd4a4e29773d9b12d39a1342037ef85b526a98 | package.json | package.json | JSON |
<|file_sep|>original/src/scripts/ids.coffee
define (require, exports, module) ->
{dev} = require 'zooniverse/config'
module.exports = if dev
project: 'bat_detective'
workflow: '4fa0321854558f2fbf000003'
tutorialSubject: '4ff8306854558fc372000001'
else
project: 'bat_detective'
workflow: '4fff2... | define (require, exports, module) ->
{dev} = require 'zooniverse/config'
module.exports = if dev
project: 'bat_detective'
workflow: '4fa0321854558f2fbf000003'
tutorialSubject: '4ff8306854558fc372000001'
else
project: 'bat_detective'
workflow: '4fff25b6516bcb41e7000002'
tutorialSubject: '5... | <|file_sep|>original/src/scripts/ids.coffee
define (require, exports, module) ->
{dev} = require 'zooniverse/config'
module.exports = if dev
project: 'bat_detective'
workflow: '4fa0321854558f2fbf000003'
tutorialSubject: '4ff8306854558fc372000001'
else
project: 'bat_detective'
workflow: '4fff2... | 18775869f69692546046b711c049c6db301e81a6 | src/scripts/ids.coffee | src/scripts/ids.coffee | CoffeeScript |
<|file_sep|>original/requirements.txt
ansible-lint==4.3.0
docker==4.4.0
flake8==3.8.4
molecule==3.0.8
pytest==6.2.0
testinfra==6.0.0
tox==3.20.1
<|file_sep|>current/requirements.txt
ansible-lint==4.3.0
docker==4.4.0
flake8==3.8.4
molecule==3.0.8
pytest==6.2.0
testinfra==6.0.0
tox==3.20.1
<|file_sep|>updated/requirement... | ansible-lint==4.3.0
docker==4.4.0
flake8==3.8.4
molecule==3.0.8
pytest==6.2.1
testinfra==6.0.0
tox==3.20.1 | <|file_sep|>original/requirements.txt
ansible-lint==4.3.0
docker==4.4.0
flake8==3.8.4
molecule==3.0.8
pytest==6.2.0
testinfra==6.0.0
tox==3.20.1
<|file_sep|>current/requirements.txt
ansible-lint==4.3.0
docker==4.4.0
flake8==3.8.4
molecule==3.0.8
pytest==6.2.0
testinfra==6.0.0
tox==3.20.1
<|file_sep|>updated/requirement... | c48503db655f812324f8ff6411d3157f3e31c37d | requirements.txt | requirements.txt | Text |
<|file_sep|>src/Sylius/Bundle/ApiBundle/Resources/config/routing/order_item.yml.diff
original:
repository:
method: findByOrder
arguments: [$orderId]
updated:
filterable: true
criteria:
order: $orderId
<|file_sep|>original/src/Sylius/Bun... | path: /
methods: [GET]
defaults:
_controller: sylius.controller.order_item:indexAction
_sylius:
filterable: true
criteria:
order: $orderId
paginate: false
sylius_api_order_item_create:
path: /
methods: [POST]
defaults:
... | <|file_sep|>src/Sylius/Bundle/ApiBundle/Resources/config/routing/order_item.yml.diff
original:
repository:
method: findByOrder
arguments: [$orderId]
updated:
filterable: true
criteria:
order: $orderId
<|file_sep|>original/src/Sylius/Bun... | ad1f0e2fcc3a2acff22c2b90c6887f606a7fee5b | src/Sylius/Bundle/ApiBundle/Resources/config/routing/order_item.yml | src/Sylius/Bundle/ApiBundle/Resources/config/routing/order_item.yml | YAML |
<|file_sep|>original/molly/apps/feeds/templates/feeds/events/item_list.html
{% block content %}
{% for item in items %}
{% ifchanged item.dt_start|date:"dMY" %}
{% if not forloop.first %}
</ul>
</div>
{% endif %}
<div class="section">
<h2>{{ item.dt_start|date:"l, jS F Y" }}</h2>
<ul class="link-list"... | {% block content %}
{% for item in items %}
{% ifchanged item.dt_start|date:"dMY" %}
{% if not forloop.first %}
</ul>
</div>
{% endif %}
<div class="section">
<div class="header">
<h2>{{ item.dt_start|date:"l, jS F Y" }}</h2>
</div>
<ul class="link-list">
{% endifchanged %}
<li {% if forloop... | <|file_sep|>original/molly/apps/feeds/templates/feeds/events/item_list.html
{% block content %}
{% for item in items %}
{% ifchanged item.dt_start|date:"dMY" %}
{% if not forloop.first %}
</ul>
</div>
{% endif %}
<div class="section">
<h2>{{ item.dt_start|date:"l, jS F Y" }}</h2>
<ul class="link-list"... | 2dfba8a1af3ef66e1d2cf3ade6f3530c4635d216 | molly/apps/feeds/templates/feeds/events/item_list.html | molly/apps/feeds/templates/feeds/events/item_list.html | HTML |
<|file_sep|>original/_posts/2015-03-22-emulating-smalltalk-conditions-in-ruby.markdown
---
layout: post
title: Emulating Smalltalk's Conditions in Ruby
category: posts
---
As a Ruby programmers, we're genuinely intrigued by Smalltalk. If you missed
the example, we showed at class, check it out at [Yehuda Kats'][] blog... | ---
layout: post
title: Emulating Smalltalk's Conditions in Ruby
category: posts
---
As Ruby programmers, we're genuinely intrigued by Smalltalk. If you missed
the example, we showed at class, check it out at [Yehuda Kats'][] blog.
[Yehuda Kats']: http://yehudakatz.com/2009/10/04/emulating-smalltalks-conditionals-in-... | <|file_sep|>original/_posts/2015-03-22-emulating-smalltalk-conditions-in-ruby.markdown
---
layout: post
title: Emulating Smalltalk's Conditions in Ruby
category: posts
---
As a Ruby programmers, we're genuinely intrigued by Smalltalk. If you missed
the example, we showed at class, check it out at [Yehuda Kats'][] blog... | 5c42a5b55a1fec3b69c4f24af00dd871907c8ea2 | _posts/2015-03-22-emulating-smalltalk-conditions-in-ruby.markdown | _posts/2015-03-22-emulating-smalltalk-conditions-in-ruby.markdown | Markdown |
<|file_sep|>original/package.json
"type": "git",
"url": "https://github.com/AnyFetch/iptc-hydrater.anyfetch.com"
},
"keywords": [
"anyfetch",
"hydrater",
"tika"
],
"dependencies": {
"async": "0.9.x",
"anyfetch-hydrater": "^2.0.4",
"exiv2": "0.4.x"
},
"devDependencies": {
... | "type": "git",
"url": "https://github.com/AnyFetch/iptc-hydrater.anyfetch.com"
},
"keywords": [
"anyfetch",
"hydrater",
"tika"
],
"dependencies": {
"async": "0.9.x",
"anyfetch-hydrater": "^2.0.5",
"exiv2": "0.4.x"
},
"devDependencies": {
"mocha": "^2.0.1",
"should": "... | <|file_sep|>original/package.json
"type": "git",
"url": "https://github.com/AnyFetch/iptc-hydrater.anyfetch.com"
},
"keywords": [
"anyfetch",
"hydrater",
"tika"
],
"dependencies": {
"async": "0.9.x",
"anyfetch-hydrater": "^2.0.4",
"exiv2": "0.4.x"
},
"devDependencies": {
... | a075d83d9d2cc3a633f3bbfdbf1bcf7877f0e541 | package.json | package.json | JSON |
<|file_sep|>src/fizzbuzz.go.diff
original:
updated:
var output string
<|file_sep|>original/src/fizzbuzz.go
package main
import (
"fmt"
"strconv"
)
func main() {
for i := 1; i <= 100; i++ {
var output string
switch {
case i%15 == 0:
output = "fizzbuzz"
case i%3 == 0:
output = "fizz"
case i%5 == 0:... | package main
import (
"fmt"
"strconv"
)
func main() {
var output string
for i := 1; i <= 100; i++ {
switch {
case i%15 == 0:
output = "fizzbuzz"
case i%3 == 0:
output = "fizz"
case i%5 == 0:
output = "buzz"
default:
output = strconv.Itoa(i)
}
fmt.Println(output) | <|file_sep|>src/fizzbuzz.go.diff
original:
updated:
var output string
<|file_sep|>original/src/fizzbuzz.go
package main
import (
"fmt"
"strconv"
)
func main() {
for i := 1; i <= 100; i++ {
var output string
switch {
case i%15 == 0:
output = "fizzbuzz"
case i%3 == 0:
output = "fizz"
case i%5 == 0:... | ddddd409aebd2d50c1ce6fe76531fe83b8c949f4 | src/fizzbuzz.go | src/fizzbuzz.go | Go |
<|file_sep|>original/manifest.json
{
"manifest_version": 2,
"name": "Write.as for Chrome",
"description": "Effortlessly share text.",
"version": "1.3",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"browser_action": {
"default_icon": {
"19": "icon.png",... | {
"manifest_version": 2,
"name": "Write.as for Chrome",
"short_name": "Write.as",
"description": "Publish a thought in seconds.",
"version": "1.3",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"browser_action": {
"default_icon": {
"19": "icon.png",
... | <|file_sep|>original/manifest.json
{
"manifest_version": 2,
"name": "Write.as for Chrome",
"description": "Effortlessly share text.",
"version": "1.3",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"browser_action": {
"default_icon": {
"19": "icon.png",... | caeef9d34fc1a31f0bceaa176318a112e8823a6f | manifest.json | manifest.json | JSON |
<|file_sep|>original/test_all/src/main.cpp
int main() {
ofGLFWWindowSettings settings;
settings.width = 1280;
settings.height = 720;
settings.setPosition(ofVec2f(300,0));
settings.resizable = true;
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
mainWindow->setFullscreen(... | int main() {
ofGLFWWindowSettings settings;
settings.width = 1280;
settings.height = 720;
settings.setPosition(ofVec2f(300,0));
settings.resizable = true;
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
mainWindow->setFullscreen(true);
settings.width = 500;
s... | <|file_sep|>original/test_all/src/main.cpp
int main() {
ofGLFWWindowSettings settings;
settings.width = 1280;
settings.height = 720;
settings.setPosition(ofVec2f(300,0));
settings.resizable = true;
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
mainWindow->setFullscreen(... | f79b34db89c5528c0313661b234eead23bd5911b | test_all/src/main.cpp | test_all/src/main.cpp | C++ |
<|file_sep|>original/docs/tools/license/update_license_header_year.sh
echo
echo
echo "Note: the branch should be empty in order to commit this change. Look at the status above."
echo
echo "If you would like to stop and clean up the branch before making this update type CTRL+C now!!"
echo "Pressing ENTER would update f... |
echo
echo
echo "Note: the branch should be empty in order to commit this change. Look at the status above."
echo
echo "If you would like to stop and clean up the branch before making this update type CTRL+C now!!"
echo "Pressing ENTER would update files and show changes in git diff pager.."
read
YEAR=`date +%y`
ech... | <|file_sep|>original/docs/tools/license/update_license_header_year.sh
echo
echo
echo "Note: the branch should be empty in order to commit this change. Look at the status above."
echo
echo "If you would like to stop and clean up the branch before making this update type CTRL+C now!!"
echo "Pressing ENTER would update f... | 42a2fcdb84bb54fc7a3a8de8742463a9bec9962b | docs/tools/license/update_license_header_year.sh | docs/tools/license/update_license_header_year.sh | Shell |
<|file_sep|>original/src/test/ui/proc-macro/out-of-line-mod.rs
<|file_sep|>current/src/test/ui/proc-macro/out-of-line-mod.rs
<|file_sep|>updated/src/test/ui/proc-macro/out-of-line-mod.rs | // Out-of-line module is found on the filesystem if passed through a proc macro (issue #58818).
// check-pass
// aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
mod outer {
identity! { mod inner; }
}
fn main() {} | <|file_sep|>original/src/test/ui/proc-macro/out-of-line-mod.rs
<|file_sep|>current/src/test/ui/proc-macro/out-of-line-mod.rs
<|file_sep|>updated/src/test/ui/proc-macro/out-of-line-mod.rs
// Out-of-line module is found on the filesystem if passed through a proc macro (issue #58818).
// check-pass
// aux-build:test-ma... | e391d776e3869f56ca1467a4c7e3469080c5378d | src/test/ui/proc-macro/out-of-line-mod.rs | src/test/ui/proc-macro/out-of-line-mod.rs | Rust |
<|file_sep|>original/modules/jackal/doc/perf.measure.guide/Makefile
XSLT_TOOL= Saxon
NAME= perf.measure.guide
XML_FILES= $(NAME).xml
HTML_FILES= $(NAME).html
PDF_FILES= $(NAME).pdf
# Fill these in!! Together, they make up the installation prefix.
webroot= $(HOME)/public_html/jugglerweb
instdir= vrjuggler/$(PROJECT... | XSLT_TOOL= Saxon
NAME= perf.measure.guide
XML_FILES= $(NAME).xml
HTML_FILES= $(NAME).html
PDF_FILES= $(NAME).pdf
# Fill these in!! Together, they make up the installation prefix.
webroot= $(HOME)/public_html/jugglerweb
instdir= jccl/$(PROJECT_NUMBER)/perf.measure.guide
prefix= $(webroot)/$(instdir)
INSTALL_DIRS=... | <|file_sep|>original/modules/jackal/doc/perf.measure.guide/Makefile
XSLT_TOOL= Saxon
NAME= perf.measure.guide
XML_FILES= $(NAME).xml
HTML_FILES= $(NAME).html
PDF_FILES= $(NAME).pdf
# Fill these in!! Together, they make up the installation prefix.
webroot= $(HOME)/public_html/jugglerweb
instdir= vrjuggler/$(PROJECT... | 03204a86d6603c831a43b09fb0e2180ed80d9ec0 | modules/jackal/doc/perf.measure.guide/Makefile | modules/jackal/doc/perf.measure.guide/Makefile | unknown |
<|file_sep|>packages/pi/pipe-enumerator.yaml.diff
original:
hash: 47362dd92687f090380c571aad89591ff82b4fbeca82b25f5bcfe7823872bdd1
updated:
hash: 9a9a33d19a9855afb5eae47a323b7afc654b1de3913efbd9e4a9324695799dfa
<|file_sep|>packages/pi/pipe-enumerator.yaml.diff
original:
updated:
- '0.3.0.0'
<|file_sep|>original/packag... | basic-deps:
base: ! '>=4.8 && <5'
enumerator: ! '>=0.4.20'
pipes: ! '>=4.1.5'
transformers: ! '>=0.4.2.0'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.3.0.0'
author: Patryk Zadarnowski
latest: '0.3.0.0'
description-type: haddock
description: ! 'This library defines a set of functions that convert between
the "... | <|file_sep|>packages/pi/pipe-enumerator.yaml.diff
original:
hash: 47362dd92687f090380c571aad89591ff82b4fbeca82b25f5bcfe7823872bdd1
updated:
hash: 9a9a33d19a9855afb5eae47a323b7afc654b1de3913efbd9e4a9324695799dfa
<|file_sep|>packages/pi/pipe-enumerator.yaml.diff
original:
updated:
- '0.3.0.0'
<|file_sep|>original/packag... | 4fc7d7348558ec440f8c4ad0fb115560365c29b8 | packages/pi/pipe-enumerator.yaml | packages/pi/pipe-enumerator.yaml | YAML |
<|file_sep|>index.js.diff
original:
var pkgs = ['item_paginator', 'search_paginator', 'template_paginator', 'template'];
var pagination = require('./lib/pagination.js');
updated:
<|file_sep|>original/index.js
var pkgs = ['item_paginator', 'search_paginator', 'template_paginator', 'template'];
var pagination = require(... | var util = require('util');
var pagination = require('./lib/pagination');
require('./lib/item_paginator').module(pagination, util);
require('./lib/search_paginator').module(pagination, util);
require('./lib/template_paginator').module(pagination, util);
require('./lib/template').module(pagination, util);
module.export... | <|file_sep|>index.js.diff
original:
var pkgs = ['item_paginator', 'search_paginator', 'template_paginator', 'template'];
var pagination = require('./lib/pagination.js');
updated:
<|file_sep|>original/index.js
var pkgs = ['item_paginator', 'search_paginator', 'template_paginator', 'template'];
var pagination = require(... | 0585b37efcbb3aa1a45f10d6cbf454263140fd9e | index.js | index.js | JavaScript |
<|file_sep|>original/.travis.yml
- qtbase5-dev
- libqt5opengl5-dev
- xorg-dev
- libglu1-mesa-dev
install:
- mkdir build && cd build
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- git clone https://github.com/glfw/glfw.git
- cd glfw && mkdir build && cd build && cmake .... | - libglu1-mesa-dev
install:
- mkdir build && cd build
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- git clone https://github.com/glfw/glfw.git
- cd glfw && mkdir build && cd build && cmake .. -DBUILD_SHARED_LIBS=ON
- make && sudo make install
- cd ../..
- git clone https://github... | <|file_sep|>original/.travis.yml
- qtbase5-dev
- libqt5opengl5-dev
- xorg-dev
- libglu1-mesa-dev
install:
- mkdir build && cd build
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- git clone https://github.com/glfw/glfw.git
- cd glfw && mkdir build && cd build && cmake .... | ac0d1a74dddba9b41cac62d5f58f8e5aaf1a5c0e | .travis.yml | .travis.yml | YAML |
<|file_sep|>docs/BETA_CHANGELOG.md.diff
original:
## Next
updated:
## 2.3.0 (2015.09.25)
<|file_sep|>docs/BETA_CHANGELOG.md.diff
original:
updated:
* Convert all web views to use WKWebView - orta
<|file_sep|>original/docs/BETA_CHANGELOG.md
## Next
* Improved Spotlight support for favorites. - alloy
* Make Native to d... | ## 2.3.0 (2015.09.25)
* Improved Spotlight support for favorites. - alloy
* Make Native to desktop web Handoff work. - alloy
* Convert all web views to use WKWebView - orta
## 2.3.0 (2015.09.18)
* Add support for Universal Links on iOS 9. - alloy
* Add support for Web-to-Native Handoff. - alloy
* Make CircleCI work ... | <|file_sep|>docs/BETA_CHANGELOG.md.diff
original:
## Next
updated:
## 2.3.0 (2015.09.25)
<|file_sep|>docs/BETA_CHANGELOG.md.diff
original:
updated:
* Convert all web views to use WKWebView - orta
<|file_sep|>original/docs/BETA_CHANGELOG.md
## Next
* Improved Spotlight support for favorites. - alloy
* Make Native to d... | a9ec0a9397e25a9638f99bc9694ed8752c526a3f | docs/BETA_CHANGELOG.md | docs/BETA_CHANGELOG.md | Markdown |
<|file_sep|>original/cmake_modules/FindLdap.cmake
# LDAP_FOUND, If false, do not try to use.
set(THIRDPARTY_LDAP thirdparty/openldap-$ENV{IMPALA_OPENLDAP_VERSION})
set (THIRDPARTY ${CMAKE_SOURCE_DIR}/thirdparty)
set(LDAP_SEARCH_LIB_PATH
${THIRDPARTY}/openldap-$ENV{IMPALA_OPENLDAP_VERSION}/impala_install/lib
)
set... | # LDAP_FOUND, If false, do not try to use.
set(THIRDPARTY_LDAP thirdparty/openldap-$ENV{IMPALA_OPENLDAP_VERSION})
set (THIRDPARTY ${CMAKE_SOURCE_DIR}/thirdparty)
set(LDAP_SEARCH_LIB_PATH
${THIRDPARTY}/openldap-$ENV{IMPALA_OPENLDAP_VERSION}/impala_install/lib
)
set(LDAP_INCLUDE_DIR
${THIRDPARTY_LDAP}/impala_inst... | <|file_sep|>original/cmake_modules/FindLdap.cmake
# LDAP_FOUND, If false, do not try to use.
set(THIRDPARTY_LDAP thirdparty/openldap-$ENV{IMPALA_OPENLDAP_VERSION})
set (THIRDPARTY ${CMAKE_SOURCE_DIR}/thirdparty)
set(LDAP_SEARCH_LIB_PATH
${THIRDPARTY}/openldap-$ENV{IMPALA_OPENLDAP_VERSION}/impala_install/lib
)
set... | 477a2eae9ae84af533fb4e4366e926ea4edfcef9 | cmake_modules/FindLdap.cmake | cmake_modules/FindLdap.cmake | CMake |
<|file_sep|>app/containers/NavigationContainer/sagas.js.diff
original:
import { call } from 'redux-saga/effects';
updated:
import { call, put } from 'redux-saga/effects';
import { requestTopicsSucceeded, requestTopicsFailed } from './actions';
<|file_sep|>app/containers/NavigationContainer/sagas.js.diff
original:
ret... | import { requestTopicsSucceeded, requestTopicsFailed } from './actions';
export function fetchTopicsFromServer() {
return fetch('http://localhost:3000/api/topics')
.then(response => response.json());
}
// Generator functions: do async logic without
// using callbacks.
function* fetchTopics() {
try {
const... | <|file_sep|>app/containers/NavigationContainer/sagas.js.diff
original:
import { call } from 'redux-saga/effects';
updated:
import { call, put } from 'redux-saga/effects';
import { requestTopicsSucceeded, requestTopicsFailed } from './actions';
<|file_sep|>app/containers/NavigationContainer/sagas.js.diff
original:
ret... | f5ae5d64c43915af9e2da0ab1f1c08c94b7249e1 | app/containers/NavigationContainer/sagas.js | app/containers/NavigationContainer/sagas.js | JavaScript |
<|file_sep|>original/src/main/javascript/view/BasicAuthButton.js
return this;
},
events: {
'click #basic_auth_button' : 'togglePasswordContainer',
'click #apply_basic_auth' : 'applyPassword'
},
applyPassword: function(){
var username = $('.input_username').val();
var password = $('.input_... |
return this;
},
events: {
'click #basic_auth_button' : 'togglePasswordContainer',
'click #apply_basic_auth' : 'applyPassword'
},
applyPassword: function(){
var username = $('#input_username').val();
var password = $('#input_password').val();
var basicAuth = new SwaggerClient.PasswordA... | <|file_sep|>original/src/main/javascript/view/BasicAuthButton.js
return this;
},
events: {
'click #basic_auth_button' : 'togglePasswordContainer',
'click #apply_basic_auth' : 'applyPassword'
},
applyPassword: function(){
var username = $('.input_username').val();
var password = $('.input_... | 2274e0cef60465d7eda97e87bbe20f6db51c745b | src/main/javascript/view/BasicAuthButton.js | src/main/javascript/view/BasicAuthButton.js | JavaScript |
<|file_sep|>original/.github/ISSUE_TEMPLATE.md
* [ ] I have searched through existing [Issues](https://github.com/manastungare/google-calendar-crx/issues) and confirmed that this particular issue has not already been reported.
* [ ] I have read and performed all the steps listed under the [Troubleshooting section](http... | * [ ] I have searched through existing [Issues](https://github.com/manastungare/google-calendar-crx/issues) and confirmed that this particular issue has not already been reported.
* [ ] I have read and performed all the steps listed in the [Wiki](https://github.com/manastungare/google-calendar-crx/wiki).
What steps w... | <|file_sep|>original/.github/ISSUE_TEMPLATE.md
* [ ] I have searched through existing [Issues](https://github.com/manastungare/google-calendar-crx/issues) and confirmed that this particular issue has not already been reported.
* [ ] I have read and performed all the steps listed under the [Troubleshooting section](http... | cfc3e6d5cb1ee69d09635d894f57e9717b53f978 | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | Markdown |
<|file_sep|>original/OctoKit/OCTEntity.h
// OCTEntity.h
// OctoKit
//
// Created by Josh Abernathy on 1/21/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
@class OCTPlan;
@class GHImageRequestOperation;
// Represents any GitHub object which is capable of owning repositories.
@interfac... | // OCTEntity.h
// OctoKit
//
// Created by Josh Abernathy on 1/21/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
@class OCTPlan;
// Represents any GitHub object which is capable of owning repositories.
@interface OCTEntity : OCTObject
// Returns `login` if no name is explicitly set.... | <|file_sep|>original/OctoKit/OCTEntity.h
// OCTEntity.h
// OctoKit
//
// Created by Josh Abernathy on 1/21/11.
// Copyright 2011 GitHub. All rights reserved.
//
#import "OCTObject.h"
@class OCTPlan;
@class GHImageRequestOperation;
// Represents any GitHub object which is capable of owning repositories.
@interfac... | 18ef03a558c8f1786f18ee5be9f8a2648e73d608 | OctoKit/OCTEntity.h | OctoKit/OCTEntity.h | C |
<|file_sep|>original/tests/doctests/test_doctests.py
DOCTEST_FILES = []
for root, dirs, files in os.walk("."):
if ".hg%s" % os.path.sep not in root:
for f in files:
if f.endswith(".doctest"):
DOCTEST_FILES.append(f)
DOCTEST_FILES = ["../../README.txt", "../../lib/restler/__in... |
DOCTEST_FILES = []
for root, dirs, files in os.walk("."):
if ".hg%s" % os.path.sep not in root:
for f in files:
if f.endswith(".doctest"):
DOCTEST_FILES.append(f)
DOCTEST_FILES = ["../../lib/restler/__init__.py"] + DOCTEST_FILES
print "Running ", DOCTEST_FILES
#DOCTEST_FILES... | <|file_sep|>original/tests/doctests/test_doctests.py
DOCTEST_FILES = []
for root, dirs, files in os.walk("."):
if ".hg%s" % os.path.sep not in root:
for f in files:
if f.endswith(".doctest"):
DOCTEST_FILES.append(f)
DOCTEST_FILES = ["../../README.txt", "../../lib/restler/__in... | 732fb749247c94fe0dbf3b98ca691d139970bc48 | tests/doctests/test_doctests.py | tests/doctests/test_doctests.py | Python |
<|file_sep|>original/lib/unexpectedExif.js
/*global Uint8Array*/
var exifParser = require('exif-parser'),
fs = require('fs');
module.exports = {
name: 'unexpected-exif',
installInto: function (expect) {
expect.installPlugin(require('magicpen-media'));
expect.addAssertion(['string', 'Buffer... | /*global Uint8Array*/
var exifParser = require('exif-parser'),
fs = require('fs');
module.exports = {
name: 'unexpected-exif',
version: require('../package.json').version,
installInto: function (expect) {
expect.installPlugin(require('magicpen-media'));
expect.addAssertion(['string', '... | <|file_sep|>original/lib/unexpectedExif.js
/*global Uint8Array*/
var exifParser = require('exif-parser'),
fs = require('fs');
module.exports = {
name: 'unexpected-exif',
installInto: function (expect) {
expect.installPlugin(require('magicpen-media'));
expect.addAssertion(['string', 'Buffer... | 6e68d7e0239c234735096adcfd0f9e48c8110f29 | lib/unexpectedExif.js | lib/unexpectedExif.js | JavaScript |
<|file_sep|>original/app/ui/src/main/res/layout/activity_account_settings.xml
android:layout_width="fill_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize... | android:layout_width="fill_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
andr... | <|file_sep|>original/app/ui/src/main/res/layout/activity_account_settings.xml
android:layout_width="fill_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize... | 2d9a12286ba84abe3af2db9d466e31990866ae2f | app/ui/src/main/res/layout/activity_account_settings.xml | app/ui/src/main/res/layout/activity_account_settings.xml | XML |
<|file_sep|>original/README.markdown
## Usage
- Run `algoplot -h` for specific options
- Use `x` instead of `n` when plotting functions
## Installation
You need
- [Gnuplot](http://www.gnuplot.info) installed with the `gnuplot` command
available on your `$PATH`
- [Ruby](http://ruby-lang.org) (only tested with 1.9.... | ## Usage
- Run `algoplot -h` for specific options
- Use `x` instead of `n` when plotting functions
## Installation
You need
- [Gnuplot](http://www.gnuplot.info) installed with the `gnuplot` command
available on your `$PATH`. Ensure you have `gnuplot-x11` installed for
Debian/Ubuntu in order to plot non-ASCII gr... | <|file_sep|>original/README.markdown
## Usage
- Run `algoplot -h` for specific options
- Use `x` instead of `n` when plotting functions
## Installation
You need
- [Gnuplot](http://www.gnuplot.info) installed with the `gnuplot` command
available on your `$PATH`
- [Ruby](http://ruby-lang.org) (only tested with 1.9.... | 9dcc010eff4a5d6c929a3e56055064c401b8073a | README.markdown | README.markdown | Markdown |
<|file_sep|>original/feed.json
"author" : {
"url" : "https://twitter.com/frippz",
"name" : "Fredrik Frodlund"
},
"icon" : "{{ "/apple-touch-icon.png" | prepend: site.baseurl | prepend: site.url }}",
"favicon" : "{{ "/favicon-32x32.png" | prepend: site.baseurl | prepend: site.url }}",
"items" : [
{% ... | "author" : {
"url" : "https://twitter.com/frippz",
"name" : "Fredrik Frodlund"
},
"icon" : "{{ "/apple-touch-icon.png" | prepend: site.baseurl | prepend: site.url }}",
"favicon" : "{{ "/favicon-32x32.png" | prepend: site.baseurl | prepend: site.url }}",
"items" : [
{% for post in site.posts limit:10... | <|file_sep|>original/feed.json
"author" : {
"url" : "https://twitter.com/frippz",
"name" : "Fredrik Frodlund"
},
"icon" : "{{ "/apple-touch-icon.png" | prepend: site.baseurl | prepend: site.url }}",
"favicon" : "{{ "/favicon-32x32.png" | prepend: site.baseurl | prepend: site.url }}",
"items" : [
{% ... | faf564f8ee625207f97112652f09b12bb1edcb69 | feed.json | feed.json | JSON |
<|file_sep|>original/package.json
"preversion": "npm test",
"postversion": "git push --follow-tags && npm publish",
"scrape": "node src/property-scraper"
},
"dependencies": {
"postcss": "^6.0.0",
"timsort": "^0.3.0"
},
"devDependencies": {
"benchmark": "^2.1.4",
"eslint": "^4.1.0",
... | "preversion": "npm test",
"postversion": "git push --follow-tags && npm publish",
"scrape": "node src/property-scraper"
},
"dependencies": {
"postcss": "^6.0.0",
"timsort": "^0.3.0"
},
"devDependencies": {
"benchmark": "^2.1.4",
"eslint": "^5.0.0",
"tape": "^4.2.1"
},
"reposi... | <|file_sep|>original/package.json
"preversion": "npm test",
"postversion": "git push --follow-tags && npm publish",
"scrape": "node src/property-scraper"
},
"dependencies": {
"postcss": "^6.0.0",
"timsort": "^0.3.0"
},
"devDependencies": {
"benchmark": "^2.1.4",
"eslint": "^4.1.0",
... | 6e73df7f20e3c17014ba43abfde2295a6783edb2 | package.json | package.json | JSON |
<|file_sep|>original/build.sbt
import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-build"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.83"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesaf... | import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-build"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.84"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.7... | <|file_sep|>original/build.sbt
import com.github.retronym.SbtOneJar._
oneJarSettings
name := "api-build"
organization := "io.flow"
scalaVersion in ThisBuild := "2.11.8"
version := "0.0.83"
exportJars := true
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"com.typesaf... | 89f7eab7b305743332909780c24ed448b23892c6 | build.sbt | build.sbt | Scala |
<|file_sep|>.travis.yml.diff
original:
updated:
cache: bundler
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.5
- 2.2.2
before_install:
- gem update --system
- gem --version
- gem update bundler
<|file_sep|>current/.travis.yml
language: ruby
cache: bundler
rvm:
- 2.1.5
- 2.2.2
before_install:... | language: ruby
cache: bundler
rvm:
- 2.1.5
- 2.2.2
- jruby
before_install:
- gem update --system
- gem --version
- gem update bundler | <|file_sep|>.travis.yml.diff
original:
updated:
cache: bundler
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.5
- 2.2.2
before_install:
- gem update --system
- gem --version
- gem update bundler
<|file_sep|>current/.travis.yml
language: ruby
cache: bundler
rvm:
- 2.1.5
- 2.2.2
before_install:... | 8e66b8e074326efebcc9ffd50dbf519f400b9bce | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/poke/map.rb
module Poke
# Map reads an ASCII file and coverts it to an object that can be read and
# manipulated by other program objects.
class Map
include Poke::ReadMap
# Params required at initialization.
PARAMS_REQUIRED = {:map_file}
# Creates a Map object.
#
... | module Poke
# Map reads an ASCII file and coverts it to an object that can be read and
# manipulated by other program objects.
class Map
include Poke::ReadMap
# Params required at initialization.
PARAMS_REQUIRED = [:map_file]
# Creates a Map object.
#
# params - A Hash of Symbol options... | <|file_sep|>original/lib/poke/map.rb
module Poke
# Map reads an ASCII file and coverts it to an object that can be read and
# manipulated by other program objects.
class Map
include Poke::ReadMap
# Params required at initialization.
PARAMS_REQUIRED = {:map_file}
# Creates a Map object.
#
... | 7fb24df8082ad1271eda276ca2b70ef0fc1791f3 | lib/poke/map.rb | lib/poke/map.rb | Ruby |
<|file_sep|>bucketeer/test/test_commit.py.diff
original:
updated:
# Constants - TODO move to config file
<|file_sep|>original/bucketeer/test/test_commit.py
test_file = 'bucketeer_test_file'
def setUp(self):
# Create a bucket to test on existing bucket
connection = boto.connect_s3()
bucket = connecti... | test_dir = 'bucketeer_test_dir'
test_file = 'bucketeer_test_file'
def setUp(self):
# Create a bucket to test on existing bucket
connection = boto.connect_s3()
bucket = connection.create_bucket(existing_bucket)
# Create directory to house test files
os.makedirs(test_dir)
# Create test fi... | <|file_sep|>bucketeer/test/test_commit.py.diff
original:
updated:
# Constants - TODO move to config file
<|file_sep|>original/bucketeer/test/test_commit.py
test_file = 'bucketeer_test_file'
def setUp(self):
# Create a bucket to test on existing bucket
connection = boto.connect_s3()
bucket = connecti... | 8c7080e93f7966bb64d7ea531d9f19b4c75b5fd5 | bucketeer/test/test_commit.py | bucketeer/test/test_commit.py | Python |
<|file_sep|>original/blog/c5-feedback.html
<|file_sep|>current/blog/c5-feedback.html
<|file_sep|>updated/blog/c5-feedback.html | <!DOCTYPE html>
<head>
<title>Ali Lyons Blog</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>Feedback</h1>
<!-- <h2>The subtitle, if you want it</h2> -->
<h4>08/31/2015</h4>
<section>
<p>
DBC places a strong emphasis ... | <|file_sep|>original/blog/c5-feedback.html
<|file_sep|>current/blog/c5-feedback.html
<|file_sep|>updated/blog/c5-feedback.html
<!DOCTYPE html>
<head>
<title>Ali Lyons Blog</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>Feedback</... | 5b40a17fc08fa94a51f72c920f057dd537f5eb28 | blog/c5-feedback.html | blog/c5-feedback.html | HTML |
<|file_sep|>README.md.diff
original:
# Install
updated:
## Install
<|file_sep|>README.md.diff
original:
# Use
updated:
## Use
<|file_sep|>original/README.md
rank.js
=======
# Install
```
npm install rank.js
```
# Use
```
var rank = require('rank.js');
```
<|file_sep|>current/README.md
rank.js
=======
## Install
```... | ## Install
```
npm install rank.js
```
## Use
```
var rank = require('rank.js');
```
### Rankings
#### Standard
Applies a naive ranking to a given array over a specified key
in ascending order.
```
array = rank.standard(array, key);
```
| <|file_sep|>README.md.diff
original:
# Install
updated:
## Install
<|file_sep|>README.md.diff
original:
# Use
updated:
## Use
<|file_sep|>original/README.md
rank.js
=======
# Install
```
npm install rank.js
```
# Use
```
var rank = require('rank.js');
```
<|file_sep|>current/README.md
rank.js
=======
## Install
```... | 6f0c627a2758d4665b7b4b3a713328147620a6e9 | README.md | README.md | Markdown |
<|file_sep|>original/join.html
---
layout: default
title: Join Us
---
<h1>Join Us!</h1>
<div class="row">
<div class="col">
<h2>2018 Fall Orchestra Registration</h2>
<p>The Foothills Philharmonic Orchestra Fall 2018 season is starting soon. Sign up now!</p>
... | ---
layout: default
title: Join Us
---
<h1>Join Us!</h1>
<div class="row">
<div class="col">
<h2>2018 Fall Choral Ensemble Registration</h2>
<p>The Foothills Philharmonic Choral Ensembles Fall 2018 seasons are starting soon. Sign up now!</p>
<p>
... | <|file_sep|>original/join.html
---
layout: default
title: Join Us
---
<h1>Join Us!</h1>
<div class="row">
<div class="col">
<h2>2018 Fall Orchestra Registration</h2>
<p>The Foothills Philharmonic Orchestra Fall 2018 season is starting soon. Sign up now!</p>
... | 53a42d7082f278285c11c8f9d3b17c62794284db | join.html | join.html | HTML |
<|file_sep|>original/.travis.yml
- beta
- nightly
sudo: false
script:
- cargo build --verbose --all-features --all
- cargo test --verbose --all-features --all
addons:
apt:
packages:
- libgl1-mesa-dev
os:
- linux
matrix:
allow_failures:
- rust: nightly
... | language: rust
rust:
- stable
- beta
- nightly
sudo: false
script:
- cargo build --verbose --all-features --all
- cargo test --verbose --all-features --all
os:
- linux
matrix:
allow_failures:
- rust: nightly
- rust: beta | <|file_sep|>original/.travis.yml
- beta
- nightly
sudo: false
script:
- cargo build --verbose --all-features --all
- cargo test --verbose --all-features --all
addons:
apt:
packages:
- libgl1-mesa-dev
os:
- linux
matrix:
allow_failures:
- rust: nightly
... | 428cf1b5268dd0de2897219fd9c2e6047575b99b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/enthought/traits/ui/wx/array_view_editor.py
<|file_sep|>current/enthought/traits/ui/wx/array_view_editor.py
<|file_sep|>updated/enthought/traits/ui/wx/array_view_editor.py | #-------------------------------------------------------------------------------
# Imports:
#-------------------------------------------------------------------------------
from enthought.traits.ui.ui_editors.array_view_editor \
import _ArrayViewEditor as BaseArrayViewEditor
from ui_editor \
import UIEditor
... | <|file_sep|>original/enthought/traits/ui/wx/array_view_editor.py
<|file_sep|>current/enthought/traits/ui/wx/array_view_editor.py
<|file_sep|>updated/enthought/traits/ui/wx/array_view_editor.py
#-------------------------------------------------------------------------------
# Imports:
#-------------------------------... | 628c092b2fd8b53e116e04b240f04b7508ab6118 | enthought/traits/ui/wx/array_view_editor.py | enthought/traits/ui/wx/array_view_editor.py | Python |
<|file_sep|>modules/AsyncUtils.js.diff
original:
let sync = false, hasNext = false
updated:
let sync = false, hasNext = false, doneArgs
<|file_sep|>modules/AsyncUtils.js.diff
original:
updated:
if (sync) {
// Iterate instead of recursing if possible.
doneArgs = [ ...arguments ]
return
}
... |
sync = false
if (isDone) {
// This means the loop finished synchronously.
callback.apply(this, doneArgs)
return
}
if (currentTurn >= turns && hasNext) {
isDone = true
callback()
}
}
next()
}
export function mapAsync(array, work, callback) {
const length = arr... | <|file_sep|>modules/AsyncUtils.js.diff
original:
let sync = false, hasNext = false
updated:
let sync = false, hasNext = false, doneArgs
<|file_sep|>modules/AsyncUtils.js.diff
original:
updated:
if (sync) {
// Iterate instead of recursing if possible.
doneArgs = [ ...arguments ]
return
}
... | 6c441bec47dab73a1968dc43279d1059eb9c7a34 | modules/AsyncUtils.js | modules/AsyncUtils.js | JavaScript |
<|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- mock
updated:
<|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- testfixtures
updated:
<|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- tests
updated:
<|file_sep|>original/recipes/jupytext/meta.yaml
run:
- mock
- nbformat >=4.0... | - nbformat >=4.0.0
- python
- pyyaml
- testfixtures
test:
imports:
- jupytext
commands:
- jupytext --help
about:
home: https://github.com/mwouts/jupytext
license: MIT
license_family: MIT
license_file: LICENSE
summary: Jupyter notebooks as Markdown documents, Julia, Python or R sc... | <|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- mock
updated:
<|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- testfixtures
updated:
<|file_sep|>recipes/jupytext/meta.yaml.diff
original:
- tests
updated:
<|file_sep|>original/recipes/jupytext/meta.yaml
run:
- mock
- nbformat >=4.0... | 2c8e4e53972ab554a64405c93b1972094d5e60aa | recipes/jupytext/meta.yaml | recipes/jupytext/meta.yaml | YAML |
<|file_sep|>original/NBitcoin/NullableShims.cs
#if NULLABLE_SHIMS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
public sealed class MaybeN... | #if NULLABLE_SHIMS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
internal sealed class MaybeNullWhenAttribute : Attribute
{
public Mayb... | <|file_sep|>original/NBitcoin/NullableShims.cs
#if NULLABLE_SHIMS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
public sealed class MaybeN... | ef2ef28f3fdbb1156f496c8f7bb9c3601a84c534 | NBitcoin/NullableShims.cs | NBitcoin/NullableShims.cs | C# |
<|file_sep|>original/spec/generators/clearance/specs/specs_generator_spec.rb
<|file_sep|>current/spec/generators/clearance/specs/specs_generator_spec.rb
<|file_sep|>updated/spec/generators/clearance/specs/specs_generator_spec.rb | require "spec_helper"
require "generators/clearance/specs/specs_generator"
describe Clearance::Generators::SpecsGenerator, :generator do
it "copies specs to host app" do
run_generator
specs = %w(
factories/clearance
features/clearance/user_signs_out_spec
features/clearance/visitor_resets_p... | <|file_sep|>original/spec/generators/clearance/specs/specs_generator_spec.rb
<|file_sep|>current/spec/generators/clearance/specs/specs_generator_spec.rb
<|file_sep|>updated/spec/generators/clearance/specs/specs_generator_spec.rb
require "spec_helper"
require "generators/clearance/specs/specs_generator"
describe Clea... | a64bab34642824df1227df56ba5e2080fe2731d7 | spec/generators/clearance/specs/specs_generator_spec.rb | spec/generators/clearance/specs/specs_generator_spec.rb | Ruby |
<|file_sep|>original/.travis.yml
node_js:
- stable
- '0.12'
install:
- export NODE_ENV=development
- npm install
- npm uninstall gulp-sass
- npm install gulp-sass@2
# - npm rebuild node-sass
# - cp _config/task.sass.js test/mock-project/_config/task.sass.js
# - cp package.json test/m... | node_js:
- stable
- '0.12'
install:
- export NODE_ENV=development
- npm install
- npm uninstall gulp-sass
- npm install gulp-sass@2
# - npm rebuild node-sass
- cp _config/task.sass.js test/mock-project/_config/task.sass.js
- cp package.json test/mock-project/package.json
- cd tes... | <|file_sep|>original/.travis.yml
node_js:
- stable
- '0.12'
install:
- export NODE_ENV=development
- npm install
- npm uninstall gulp-sass
- npm install gulp-sass@2
# - npm rebuild node-sass
# - cp _config/task.sass.js test/mock-project/_config/task.sass.js
# - cp package.json test/m... | dcc6d5908156b90680663e9d73d6d6a2165aa99c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/circle.yml
machine:
java:
version: openjdk8
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048M
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,extra-android-m2repository,extra-android-support,extra-google-google_play_ser... | machine:
java:
version: openjdk8
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048M
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository,... | <|file_sep|>original/circle.yml
machine:
java:
version: openjdk8
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048M
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,extra-android-m2repository,extra-android-support,extra-google-google_play_ser... | 9f82cd1aab044c0d3f9a4e12ca69102cf5288186 | circle.yml | circle.yml | YAML |
<|file_sep|>original/recipes/protego/meta.yaml
<|file_sep|>current/recipes/protego/meta.yaml
<|file_sep|>updated/recipes/protego/meta.yaml | {% set name = "Protego" %}
{% set version = "0.1.16" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: a682771bc7b51b2ff41466460896c1a5a653f9a1e71639ef365a72e66d8734b4
build:
script: "{{ PY... | <|file_sep|>original/recipes/protego/meta.yaml
<|file_sep|>current/recipes/protego/meta.yaml
<|file_sep|>updated/recipes/protego/meta.yaml
{% set name = "Protego" %}
{% set version = "0.1.16" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{... | 10c446de61e2cf84ca8585b03a8ac8da9b6f04b4 | recipes/protego/meta.yaml | recipes/protego/meta.yaml | YAML |
<|file_sep|>original/scripts/qustom_ui_deploy.sh
<|file_sep|>current/scripts/qustom_ui_deploy.sh
<|file_sep|>updated/scripts/qustom_ui_deploy.sh | #!/usr/bin/env bash
echo "[INFO] --- Deploy UI ---"
while [[ $# -gt 1 ]]
do
key="$1"
case $key in
-br|--branch)
BRANCH="$2"
shift # past argument
;;
-s|--stage)
STAGE="$2"
shift # past argument
;;
*)
# unknown option
;;
esac | <|file_sep|>original/scripts/qustom_ui_deploy.sh
<|file_sep|>current/scripts/qustom_ui_deploy.sh
<|file_sep|>updated/scripts/qustom_ui_deploy.sh
#!/usr/bin/env bash
echo "[INFO] --- Deploy UI ---"
while [[ $# -gt 1 ]]
do
key="$1"
case $key in
-br|--branch)
BRANCH="$2"
shift # past argument
;;
-... | f6bcce46b13dcd1f8942396391fecf2b3da1a4e1 | scripts/qustom_ui_deploy.sh | scripts/qustom_ui_deploy.sh | Shell |
<|file_sep|>original/config/god/app.rb
require File.expand_path('../sidekiq_workers', __FILE__)
SidekiqWorkers.configure do
if ENV['RAILS_ENV']=='production'
# one worker for the hets queue
watch 'hets', 2
# one worker for the default queue
watch 'default', 5
else
# one worker for all que... | require File.expand_path('../sidekiq_workers', __FILE__)
SidekiqWorkers.configure do
if ENV['RAILS_ENV']=='production'
# one worker per core
`nproc`.to_i.times.each do
watch 'hets', 1
end
# one worker for the default queue
watch 'default', 5
else
# one worker for all queues
... | <|file_sep|>original/config/god/app.rb
require File.expand_path('../sidekiq_workers', __FILE__)
SidekiqWorkers.configure do
if ENV['RAILS_ENV']=='production'
# one worker for the hets queue
watch 'hets', 2
# one worker for the default queue
watch 'default', 5
else
# one worker for all que... | 1d7bc88881bd01533827c215f2f90e5ad63f6864 | config/god/app.rb | config/god/app.rb | Ruby |
<|file_sep|>lib/json-front-matter.js.diff
original:
attributes, body;
updated:
attribuets, body;
<|file_sep|>original/lib/json-front-matter.js
}
function parseString ( data ) {
if ( !data ) { return {} };
var match = regex.exec( data );
if ( match && match.length ) {
attributes = JSON.par... |
function parseString ( data ) {
if ( !data ) { return {} };
var match = regex.exec( data );
if ( match && match.length ) {
attributes = JSON.parse( '{' + match[ 2 ].replace(/^\s+|\s+$/g, '') + '}' );
body = data.replace( match[ 0 ], '' );
} else {
attributes = {};
body = data;... | <|file_sep|>lib/json-front-matter.js.diff
original:
attributes, body;
updated:
attribuets, body;
<|file_sep|>original/lib/json-front-matter.js
}
function parseString ( data ) {
if ( !data ) { return {} };
var match = regex.exec( data );
if ( match && match.length ) {
attributes = JSON.par... | bb429f7f26414beaeabc5b519fd4d3e9fa8c9b71 | lib/json-front-matter.js | lib/json-front-matter.js | JavaScript |
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/local.txt
# Local development dependencies go here
-r base.txt
coverage==4.2
Sphinx==1.5
django-extensions==1.7.5
django-test-plus==1.0.16
factory_boy==2.7.0
django-debug-toolbar==1.6
# pytest!
pytest-django==3.1.2
pytest-sugar==0.7.1
<|file_sep|>curren... | # Local development dependencies go here
-r base.txt
coverage==4.2
Sphinx==1.5.1
django-extensions==1.7.5
django-test-plus==1.0.16
factory_boy==2.7.0
django-debug-toolbar==1.6
# pytest!
pytest-django==3.1.2
pytest-sugar==0.7.1 | <|file_sep|>original/{{cookiecutter.project_slug}}/requirements/local.txt
# Local development dependencies go here
-r base.txt
coverage==4.2
Sphinx==1.5
django-extensions==1.7.5
django-test-plus==1.0.16
factory_boy==2.7.0
django-debug-toolbar==1.6
# pytest!
pytest-django==3.1.2
pytest-sugar==0.7.1
<|file_sep|>curren... | 194735013ebed212e5fa26ef027b8b05cf67e80f | {{cookiecutter.project_slug}}/requirements/local.txt | {{cookiecutter.project_slug}}/requirements/local.txt | Text |
<|file_sep|>tests/test_transpiler.py.diff
original:
except FileNotFoundError:
updated:
except OSError:
<|file_sep|>original/tests/test_transpiler.py
os.remove("/tmp/auto_functions.cpp")
os.remove("/tmp/auto_functions.h")
except FileNotFoundError:
pass
... | os.remove("/tmp/auto_functions.cpp")
os.remove("/tmp/auto_functions.h")
except OSError:
pass
transpiler.main(["--output-dir", "/tmp"])
assert os.path.isfile("/tmp/auto_functions.cpp")
assert os.path.isfile("/tmp/auto_functions.h")
def test_trans... | <|file_sep|>tests/test_transpiler.py.diff
original:
except FileNotFoundError:
updated:
except OSError:
<|file_sep|>original/tests/test_transpiler.py
os.remove("/tmp/auto_functions.cpp")
os.remove("/tmp/auto_functions.h")
except FileNotFoundError:
pass
... | e88a0a27a4960f6b41170cffa0809423987db888 | tests/test_transpiler.py | tests/test_transpiler.py | Python |
<|file_sep|>rel/overlay/common/site/src/nitrogen_main_handler.erl.diff
original:
updated:
%% vim: ts=4 sw=4 et
<|file_sep|>rel/overlay/common/site/src/nitrogen_main_handler.erl.diff
original:
-export([run/0]).
updated:
-export([
run/0,
ws_init/0
]).
handlers() ->
%% Put any custom handlers here
%% See... | -module(nitrogen_main_handler).
-export([
run/0,
ws_init/0
]).
handlers() ->
%% Put any custom handlers here
%% See http://nitrogenproject.com/doc/handlers.html
%% Example:
%%
%% wf_handler:set_handler(MySecurityHandler, HandlerConfig),
%%
ok.
ws_init() ->
handlers().
run() ... | <|file_sep|>rel/overlay/common/site/src/nitrogen_main_handler.erl.diff
original:
updated:
%% vim: ts=4 sw=4 et
<|file_sep|>rel/overlay/common/site/src/nitrogen_main_handler.erl.diff
original:
-export([run/0]).
updated:
-export([
run/0,
ws_init/0
]).
handlers() ->
%% Put any custom handlers here
%% See... | e114a767af3faffb9b2a099566bd7c87af6bc83c | rel/overlay/common/site/src/nitrogen_main_handler.erl | rel/overlay/common/site/src/nitrogen_main_handler.erl | Erlang |
<|file_sep|>original/README.md
# xinmingcreative.github.io
Xinming Creative Official Website
## Reference
- [How to create github page](https://pages.github.com/)
- [Agency Jekyll Theme](http://y7kim.github.io/agency-jekyll-theme/)
<|file_sep|>current/README.md
# xinmingcreative.github.io
Xinming Creative Official Web... | # xinmingcreative.github.io
Xinming Creative Official Website
## Reference
- [How to create github page](https://pages.github.com/)
- [Agency Jekyll Theme](http://y7kim.github.io/agency-jekyll-theme/)
- [Support Multiple Languages](https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin) | <|file_sep|>original/README.md
# xinmingcreative.github.io
Xinming Creative Official Website
## Reference
- [How to create github page](https://pages.github.com/)
- [Agency Jekyll Theme](http://y7kim.github.io/agency-jekyll-theme/)
<|file_sep|>current/README.md
# xinmingcreative.github.io
Xinming Creative Official Web... | 55757b97b32931d87651e45b88010e1e9b962136 | README.md | README.md | Markdown |
<|file_sep|>packages/as/ascii-predicates.yaml.diff
original:
hash: 575c82ed825c40ee7ff00f742a2ec23cd0cf83deae30ada7c7c528d215e4435a
updated:
hash: 0998010eb0c8e973c7b2aed378fd95bf669d663f3d8761ada7bb8b064aa39176
<|file_sep|>packages/as/ascii-predicates.yaml.diff
original:
base: '>=4.11 && <4.17'
hedgehog: ^>=1.0 ||... | maintainer: Chris Martin, Julie Moronuki
synopsis: Various categorizations of ASCII characters
changelog: ''
basic-deps:
ascii-char: ^>=1.0
base: '>=4.13 && <4.17'
all-versions:
- 1.0.0.0
- 1.0.0.2
- 1.0.0.4
- 1.0.0.6
- 1.0.0.8
- 1.0.0.10
- 1.0.1.0
author: Chris Martin
latest: 1.0.1.0
description-type: haddock
desc... | <|file_sep|>packages/as/ascii-predicates.yaml.diff
original:
hash: 575c82ed825c40ee7ff00f742a2ec23cd0cf83deae30ada7c7c528d215e4435a
updated:
hash: 0998010eb0c8e973c7b2aed378fd95bf669d663f3d8761ada7bb8b064aa39176
<|file_sep|>packages/as/ascii-predicates.yaml.diff
original:
base: '>=4.11 && <4.17'
hedgehog: ^>=1.0 ||... | b5a547622451aaa3472e535020903d2f2aa9a6b3 | packages/as/ascii-predicates.yaml | packages/as/ascii-predicates.yaml | YAML |
<|file_sep|>original/package.json
"name": "bullet-pubsub",
"title": "Bullet",
"description": "An ultra lightweight and simple to use pub-sub library.",
"version": "1.1.3",
"homepage": "https://github.com/munkychop/bullet",
"author": {
"name": "Ivan Hayes",
"url": "http://www.ivanhayes.com"
},
"m... | "name": "bullet-pubsub",
"title": "Bullet",
"description": "An ultra lightweight and simple to use pub-sub library.",
"version": "1.1.3",
"homepage": "https://github.com/munkychop/bullet",
"author": {
"name": "Ivan Hayes",
"url": "http://www.ivanhayes.com"
},
"main": "dist/bullet.js",
"scripts... | <|file_sep|>original/package.json
"name": "bullet-pubsub",
"title": "Bullet",
"description": "An ultra lightweight and simple to use pub-sub library.",
"version": "1.1.3",
"homepage": "https://github.com/munkychop/bullet",
"author": {
"name": "Ivan Hayes",
"url": "http://www.ivanhayes.com"
},
"m... | 48e14fbbd48e694cf34ea6cdaa8a29b41eace435 | package.json | package.json | JSON |
<|file_sep|>server/info/services.py.diff
original:
queryset = Article.objects.filter(column__uid=uid).order_by('id')
updated:
queryset = Article.objects.filter(
column__uid=uid
).order_by('id')
<|file_sep|>original/server/info/services.py
"""Get_articles_by_column."""
queryset = Article.obje... | """Get_articles_by_column."""
queryset = Article.objects.filter(
column__uid=uid
).order_by('id')
return queryset
def get_columns_queryset():
"""Get_columns_queryset."""
queryset = Column.objects.all().only('uid', 'name').order_by('-id')
return queryset
def get_article_queryset... | <|file_sep|>server/info/services.py.diff
original:
queryset = Article.objects.filter(column__uid=uid).order_by('id')
updated:
queryset = Article.objects.filter(
column__uid=uid
).order_by('id')
<|file_sep|>original/server/info/services.py
"""Get_articles_by_column."""
queryset = Article.obje... | 4636c9394138534fc39cc5bdac373b97919ffd01 | server/info/services.py | server/info/services.py | Python |
<|file_sep|>original/composer.json
"role": "Developer"
}
],
"support": {
"email": "hello@nailsapp.co.uk"
},
"require": {
"elasticsearch/elasticsearch": "~7.0"
},
"require-dev": {
"phpunit/phpunit": "8.*"
},
"autoload": {
"psr-4": {
... | "role": "Developer"
}
],
"support": {
"email": "hello@nailsapp.co.uk"
},
"require": {
"elasticsearch/elasticsearch": "~7.0"
},
"require-dev": {
"phpunit/phpunit": "9.*"
},
"autoload": {
"psr-4": {
"Nails\\Elasticsearch\\": "... | <|file_sep|>original/composer.json
"role": "Developer"
}
],
"support": {
"email": "hello@nailsapp.co.uk"
},
"require": {
"elasticsearch/elasticsearch": "~7.0"
},
"require-dev": {
"phpunit/phpunit": "8.*"
},
"autoload": {
"psr-4": {
... | 0aaa38ff7c514795ba4330f96bdc620bf17f3f98 | composer.json | composer.json | JSON |
<|file_sep|>original/samples/CookieSample/Startup.cs
.AddCookie(o =>
{
o.LoginPath = new PathString("/login");
o.Cookie = new CookieBuilder
{
Name = ".AspNet.CasSample"
};
... | .AddCookie(o =>
{
o.LoginPath = new PathString("/login");
o.Cookie = new CookieBuilder
{
Name = ".AspNet.CasSample"
};
})
.AddCAS(o =>
{... | <|file_sep|>original/samples/CookieSample/Startup.cs
.AddCookie(o =>
{
o.LoginPath = new PathString("/login");
o.Cookie = new CookieBuilder
{
Name = ".AspNet.CasSample"
};
... | 300f639c605c76431f5b373431f5cc3ace9eadf5 | samples/CookieSample/Startup.cs | samples/CookieSample/Startup.cs | C# |
<|file_sep|>.eslintrc.js.diff
original:
extends: ['eslint:recommended', 'plugin:vue/essential', 'prettier'],
updated:
extends: ['eslint:recommended', 'plugin:vue/recommended', 'prettier'],
<|file_sep|>original/.eslintrc.js
},
extends: ['eslint:recommended', 'plugin:vue/essential', 'prettier'],
parserOptions: ... | extends: ['eslint:recommended', 'plugin:vue/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
// required to lint *.vue files
plugins: ['chai-expect', 'chai-friendly'],
// add your custom rules here
rules: {
'no-console': [
'error',
{
al... | <|file_sep|>.eslintrc.js.diff
original:
extends: ['eslint:recommended', 'plugin:vue/essential', 'prettier'],
updated:
extends: ['eslint:recommended', 'plugin:vue/recommended', 'prettier'],
<|file_sep|>original/.eslintrc.js
},
extends: ['eslint:recommended', 'plugin:vue/essential', 'prettier'],
parserOptions: ... | 8f84fddd98d28bd9dd6d97e5056e792b313acc83 | .eslintrc.js | .eslintrc.js | JavaScript |
<|file_sep|>original/js_dependencies.json
[
{ "id": "com.rallydev.sencha:sencha-cmd:tgz:3.0.0.250", "path": "bin/sencha" },
{ "id": "com.rallydev.js:ext:tgz:4.1.1a", "path": "lib/ext/4.1.1a" },
{ "id": "com.rallydev.js:webdriver:tgz:2.35.0-rally", "path": "lib/webdriver" },
{ "id": "com.rallydev.js:apps... | [
{ "id": "com.rallydev.sencha:sencha-cmd:tgz:3.0.0.250", "path": "bin/sencha" },
{ "id": "com.rallydev.js:ext:tgz:4.1.1a", "path": "lib/ext/4.1.1a" },
{ "id": "com.rallydev.js:webdriver:tgz:2.35.0-rally", "path": "lib/webdriver" },
{ "id": "com.rallydev.js:appsdk-src:tgz:517-7c25727", "path": "lib/sdk"... | <|file_sep|>original/js_dependencies.json
[
{ "id": "com.rallydev.sencha:sencha-cmd:tgz:3.0.0.250", "path": "bin/sencha" },
{ "id": "com.rallydev.js:ext:tgz:4.1.1a", "path": "lib/ext/4.1.1a" },
{ "id": "com.rallydev.js:webdriver:tgz:2.35.0-rally", "path": "lib/webdriver" },
{ "id": "com.rallydev.js:apps... | 6f414de48561b0920d5aea29ae00c8fb7448b0a2 | js_dependencies.json | js_dependencies.json | JSON |
<|file_sep|>original/lib/logging.rb
logger.info(message)
end
private
def runtimes(event)
message = ""
if event.duration
message << " duration=%.2f" % event.duration
end
if event.payload[:view_runtime]
message << " view=%.2f" % event.payload[:view_runtime]
... | logger.info(message)
end
private
def runtimes(event)
message = ""
{:duration => event.duration,
:view => event.payload[:view_runtime],
:db => event.payload[:db_runtime]}.each do |name, runtime|
message << " #{name}=%.2f" % runtime if runtime
end
message
... | <|file_sep|>original/lib/logging.rb
logger.info(message)
end
private
def runtimes(event)
message = ""
if event.duration
message << " duration=%.2f" % event.duration
end
if event.payload[:view_runtime]
message << " view=%.2f" % event.payload[:view_runtime]
... | 49095f92ce1d2b039a4094db275599646a5b70a5 | lib/logging.rb | lib/logging.rb | Ruby |
<|file_sep|>original/releasenotes/notes/bug-1226003-drop-simple-fip-disassociation-3c751297b467597e.yaml
---
features:
- |
Floating IP can be released when it is disassociated from a server.
"Release Floating IP" checkbox is now available in "Disassociate
Floating IP" form.
upgrade:
- |
``simple_ip_... | ---
features:
- |
Floating IP can be released when it is disassociated from a server.
"Release Floating IP" checkbox is now available in "Disassociate
Floating IP" form.
upgrade:
- |
``simple_ip_management`` setting in ``HORIZON_CONFIG`` was dropped.
This actually has no meaning after nova-netwo... | <|file_sep|>original/releasenotes/notes/bug-1226003-drop-simple-fip-disassociation-3c751297b467597e.yaml
---
features:
- |
Floating IP can be released when it is disassociated from a server.
"Release Floating IP" checkbox is now available in "Disassociate
Floating IP" form.
upgrade:
- |
``simple_ip_... | 48c73d2b0530de8d0933440eb2e73a80101717da | releasenotes/notes/bug-1226003-drop-simple-fip-disassociation-3c751297b467597e.yaml | releasenotes/notes/bug-1226003-drop-simple-fip-disassociation-3c751297b467597e.yaml | YAML |
<|file_sep|>original/requirements.txt
pbr>=0.6,<1.0
amqplib>=0.6.1
anyjson>=0.3.3
argparse
Babel>=1.3
eventlet>=0.13.0
greenlet>=0.3.2
iso8601>=0.1.9
kombu>=2.4.8
lxml>=2.3
netaddr>=0.7.6
oslo.config>=1.2.0
oslo.messaging>=1.3.0
oslo.rootwrap
paramiko>=1.9.0
Paste
PasteDeploy>=1.5.0
python-glanceclient>=0.9.0
python-ke... | pbr>=0.6,<1.0
anyjson>=0.3.3
argparse
Babel>=1.3
eventlet>=0.13.0
greenlet>=0.3.2
iso8601>=0.1.9
kombu>=2.4.8
lxml>=2.3
netaddr>=0.7.6
oslo.config>=1.2.0
oslo.messaging>=1.3.0
oslo.rootwrap
paramiko>=1.9.0
Paste
PasteDeploy>=1.5.0
python-glanceclient>=0.9.0
python-keystoneclient>=0.7.0
python-novaclient>=2.17.0
python-... | <|file_sep|>original/requirements.txt
pbr>=0.6,<1.0
amqplib>=0.6.1
anyjson>=0.3.3
argparse
Babel>=1.3
eventlet>=0.13.0
greenlet>=0.3.2
iso8601>=0.1.9
kombu>=2.4.8
lxml>=2.3
netaddr>=0.7.6
oslo.config>=1.2.0
oslo.messaging>=1.3.0
oslo.rootwrap
paramiko>=1.9.0
Paste
PasteDeploy>=1.5.0
python-glanceclient>=0.9.0
python-ke... | e609183a39fef781aec45638c3bea4a7a6981412 | requirements.txt | requirements.txt | Text |
<|file_sep|>config.py.diff
original:
Base configuration class. Contains one method that defines the database URI.
updated:
Base configuration class. Contains one property that defines the database URI.
<|file_sep|>config.py.diff
original:
def __init__(self):
self.database_uri()
updated:
@prop... | class Config(object):
"""
Base configuration class. Contains one property that defines the database URI.
This class is to be subclassed and its attributes defined therein.
"""
@property
def database_uri(self):
return r'sqlite://{name}'.format(name=self.DBNAME) if self.DIALECT == 'sqli... | <|file_sep|>config.py.diff
original:
Base configuration class. Contains one method that defines the database URI.
updated:
Base configuration class. Contains one property that defines the database URI.
<|file_sep|>config.py.diff
original:
def __init__(self):
self.database_uri()
updated:
@prop... | 3588c52060b540f6d3ca791c7309b4e9185a60aa | config.py | config.py | Python |
<|file_sep|>src/modules/todo/components/TodoListItem.js.diff
original:
import { focusTodo, deleteTodo } from '../actions';
updated:
import { updateTodo, deleteTodo, focusTodo } from '../actions';
<|file_sep|>src/modules/todo/components/TodoListItem.js.diff
original:
updated:
_onMarkChange() {
const { todo, dispa... | const { todo, dispatch } = this.props;
dispatch(updateTodo({
id: todo.id,
data: Object.assign({}, todo, {marked: !todo.marked ? 1 : 0}),
resolve: null,
reject: () => { alert('update failed!'); }
}));
}
render() {
const { todo, dispatch } = this.props;
return (
<li ... | <|file_sep|>src/modules/todo/components/TodoListItem.js.diff
original:
import { focusTodo, deleteTodo } from '../actions';
updated:
import { updateTodo, deleteTodo, focusTodo } from '../actions';
<|file_sep|>src/modules/todo/components/TodoListItem.js.diff
original:
updated:
_onMarkChange() {
const { todo, dispa... | 14c21ce085b7471c7820fc8f9af001991f76fffc | src/modules/todo/components/TodoListItem.js | src/modules/todo/components/TodoListItem.js | JavaScript |
<|file_sep|>addons/pos_ncf/static/src/js/widgets.js.diff
original:
start: function() {
var self = this;
this._super();
},
updated:
<|file_sep|>addons/pos_ncf/static/src/js/widgets.js.diff
original:
// -------- New Screens definitions.
updated:
if (fa... |
if (false) {// TODO: implement configurable parameter for the POS to allow unpaid orders.
// -------- New Screens definitions.
this.orderlist_screen = new module.PendingOrderListScreenWidget(this, {});
this.orderlist_screen.appendTo(this.$('.screens'));
... | <|file_sep|>addons/pos_ncf/static/src/js/widgets.js.diff
original:
start: function() {
var self = this;
this._super();
},
updated:
<|file_sep|>addons/pos_ncf/static/src/js/widgets.js.diff
original:
// -------- New Screens definitions.
updated:
if (fa... | d8e58ae53df08d28e2a4a48db87542d3ab488ba9 | addons/pos_ncf/static/src/js/widgets.js | addons/pos_ncf/static/src/js/widgets.js | JavaScript |
<|file_sep|>src/hardware_dep/dpdk/data_plane/dpdkx_hash.c.diff
original:
updated:
#include "rte_hash_crc.h"
<|file_sep|>original/src/hardware_dep/dpdk/data_plane/dpdkx_hash.c
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Eotvos Lorand University, Budapest, Hungary
#include "dpdk_model_v1model.h"
#include ... |
#include "dpdk_lib.h"
#include "stateful_memory.h"
#include "rte_hash_crc.h"
#include <rte_ip.h>
void hash(uint16_t* result, enum_HashAlgorithm_t hash, uint16_t base, uint8_buffer_t data, uint32_t max, SHORT_STDPARAMS) {
debug(" : Executing hash\n");
dbg_bytes(data.buffer, data.buffer_size, " Inpu... | <|file_sep|>src/hardware_dep/dpdk/data_plane/dpdkx_hash.c.diff
original:
updated:
#include "rte_hash_crc.h"
<|file_sep|>original/src/hardware_dep/dpdk/data_plane/dpdkx_hash.c
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Eotvos Lorand University, Budapest, Hungary
#include "dpdk_model_v1model.h"
#include ... | 70beeb5a61cbf12a59000c8fd1e56c638e3a6aa4 | src/hardware_dep/dpdk/data_plane/dpdkx_hash.c | src/hardware_dep/dpdk/data_plane/dpdkx_hash.c | C |
<|file_sep|>README.rst.diff
original:
updated:
<|file_sep|>original/README.rst
you can install twistedcat in your python virtual environment like this::
$ pip install git+https://github.com/david415/twistedcat.git
usage
-----
commandline usage summary::
usage: nocat [-h] [-c CLIENT] [-s SERVER]
twiste... | usage: nocat [-h] [-c CLIENT] [-s SERVER]
twistedcat - proxy between any two Twisted endpoints
optional arguments:
-h, --help show this help message and exit
-c CLIENT, --client CLIENT
Twisted client endpoint descriptor string
-s SERVER, --server SERVER
... | <|file_sep|>README.rst.diff
original:
updated:
<|file_sep|>original/README.rst
you can install twistedcat in your python virtual environment like this::
$ pip install git+https://github.com/david415/twistedcat.git
usage
-----
commandline usage summary::
usage: nocat [-h] [-c CLIENT] [-s SERVER]
twiste... | 5ba4e139ce5199912f0eddde335e3567619fa1d4 | README.rst | README.rst | reStructuredText |
<|file_sep|>original/setup.cfg
[tool:pytest]
python_files = test_*.py
testpaths = test
addopts = --verbose
[check-manifest]
ignore =
stubs**
[mypy]
mypy_path = stubs
python_version = 2.7
[mypy-_cffi_backend]
ignore_missing_imports = True
[mypy-cairocffi._ffi]
ignore_missing_imports = True
[mypy-trollius]
ignore_... | addopts = --verbose
[check-manifest]
ignore =
stubs**
[mypy]
mypy_path = stubs
python_version = 2.7
[mypy-_cffi_backend]
ignore_missing_imports = True
[mypy-cairocffi._ffi]
ignore_missing_imports = True
[mypy-libqtile._ffi_pango]
ignore_missing_imports = True
[mypy-libqtile._ffi_xcursors]
ignore_missing_imports =... | <|file_sep|>original/setup.cfg
[tool:pytest]
python_files = test_*.py
testpaths = test
addopts = --verbose
[check-manifest]
ignore =
stubs**
[mypy]
mypy_path = stubs
python_version = 2.7
[mypy-_cffi_backend]
ignore_missing_imports = True
[mypy-cairocffi._ffi]
ignore_missing_imports = True
[mypy-trollius]
ignore_... | 624d1578b0d1231f47ca9cbca6ac0405f243d231 | setup.cfg | setup.cfg | INI |
<|file_sep|>.zuul.yaml.diff
original:
- tox-mypy:
updated:
- fi-tox-mypy:
<|file_sep|>.zuul.yaml.diff
original:
- tox-lint:
updated:
- fi-tox-lint:
<|file_sep|>.zuul.yaml.diff
original:
- tox-format:
updated:
- fi-tox-format:
<|file_sep|>.zuul.yaml.diff
original:
... | - krb5-devel
- fi-tox-python39:
vars:
dependencies:
- krb5-devel
- fi-tox-python310:
vars:
dependencies:
- krb5-devel
- fi-tox-docs:
vars:
dependencies:
-... | <|file_sep|>.zuul.yaml.diff
original:
- tox-mypy:
updated:
- fi-tox-mypy:
<|file_sep|>.zuul.yaml.diff
original:
- tox-lint:
updated:
- fi-tox-lint:
<|file_sep|>.zuul.yaml.diff
original:
- tox-format:
updated:
- fi-tox-format:
<|file_sep|>.zuul.yaml.diff
original:
... | 7fc55873969e3b643d4465a575d3f366bf03f527 | .zuul.yaml | .zuul.yaml | YAML |
<|file_sep|>QuestionApp/res/layout/activity_main.xml.diff
original:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
updated:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<|file_sep|>QuestionApp/res/layout/activity_main.xml.diff
original:
updated:
android:id="@... | android:paddingTop="@dimen/activity_vertical_margin"
tools:context="ca.ualberta.cs.cmput301f14t14.questionapp.MainActivity" >
<ListView
android:id="@+id/question_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="5"
an... | <|file_sep|>QuestionApp/res/layout/activity_main.xml.diff
original:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
updated:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<|file_sep|>QuestionApp/res/layout/activity_main.xml.diff
original:
updated:
android:id="@... | ae92904b3653a4aed07449404f59741d4a999f1b | QuestionApp/res/layout/activity_main.xml | QuestionApp/res/layout/activity_main.xml | XML |
<|file_sep|>original/test/scripts/cats/yaml_validation.sh
echo "TEST: Test yaml validation"
test_invalid_yaml() {
pushd .clowder/versions || exit 1
test_cases=( $(ls -d test-*) )
popd || exit 1
for test in "${test_cases[@]}"
do
$COMMAND link -v $test || exit 1
print_single_separato... | echo "TEST: Test yaml validation"
test_invalid_yaml() {
pushd .clowder/versions || exit 1
test_cases=( $(ls -d test-*) )
popd || exit 1
for test in "${test_cases[@]}"
do
$COMMAND link -v $test || exit 1
print_single_separator
$COMMAND herd && exit 1
# exit_code=$?
... | <|file_sep|>original/test/scripts/cats/yaml_validation.sh
echo "TEST: Test yaml validation"
test_invalid_yaml() {
pushd .clowder/versions || exit 1
test_cases=( $(ls -d test-*) )
popd || exit 1
for test in "${test_cases[@]}"
do
$COMMAND link -v $test || exit 1
print_single_separato... | 9eaea797a8eaba26fb7b0fed0f4e6a36151825ba | test/scripts/cats/yaml_validation.sh | test/scripts/cats/yaml_validation.sh | Shell |
<|file_sep|>original/project.clj
(defproject comic-reader "0.1.0-SNAPSHOT"
:description "An app for reading comics/manga on or offline"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.... | (defproject comic-reader "0.1.0-SNAPSHOT"
:description "An app for reading comics/manga on or offline"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure... | <|file_sep|>original/project.clj
(defproject comic-reader "0.1.0-SNAPSHOT"
:description "An app for reading comics/manga on or offline"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.... | c79394eb6f1288cfead2aef307902975f02a62e5 | project.clj | project.clj | Clojure |
<|file_sep|>original/README.md
The Pay library
===============
***This is not official library!***
[](https://packagist.org/packages/trejjam/thepay-lib)
Installation
------------
The best way to install trejjam/thepay-lib is using [Compose... | The Pay library
===============
***This is not official library!***
[](https://packagist.org/packages/trejjam/thepay-lib)
Installation
------------
The best way to install trejjam/thepay-lib is using [Composer](http://getcomposer.org/):
`... | <|file_sep|>original/README.md
The Pay library
===============
***This is not official library!***
[](https://packagist.org/packages/trejjam/thepay-lib)
Installation
------------
The best way to install trejjam/thepay-lib is using [Compose... | 1c5f1a44b2a5141f16dad681ae767a9fc99b2ed9 | README.md | README.md | Markdown |
<|file_sep|>original/win-release-build.bat
md build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" ..
devenv openrhythm.sln /build
cd ..
pause
<|file_sep|>current/win-release-build.bat
md build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPE... | md build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015 Win64" ..
devenv openrhythm.sln /build
cd ..
pause | <|file_sep|>original/win-release-build.bat
md build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" ..
devenv openrhythm.sln /build
cd ..
pause
<|file_sep|>current/win-release-build.bat
md build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPE... | 0178d500ed6e49c1b1abb2b7818a675ade08363f | win-release-build.bat | win-release-build.bat | Batchfile |
<|file_sep|>original/README.md
git clone https://github.com/felixhaedicke/SheetMusicViewer.git
git submodule update --init --recursive
For the mupdf subproject, some files need to be generated:
cd mupdf
make generate
cd ..
Generate icon png files:
rsvg-convert icon.svg -w 48 -h 48 -o icon-4... |
git clone https://github.com/felixhaedicke/SheetMusicViewer.git
git submodule update --init --recursive
For the mupdf subproject, some files need to be generated:
cd mupdf
make generate
cd ..
or alternatively, when building with MSVC on Windows:
cd mupdf/win32
generate.bat
cd ../..
... | <|file_sep|>original/README.md
git clone https://github.com/felixhaedicke/SheetMusicViewer.git
git submodule update --init --recursive
For the mupdf subproject, some files need to be generated:
cd mupdf
make generate
cd ..
Generate icon png files:
rsvg-convert icon.svg -w 48 -h 48 -o icon-4... | f6fedc4284a2b85b9acfdbe3b0d7b48293ac0df5 | README.md | README.md | Markdown |
<|file_sep|>original/.github/workflows/node.js.yml
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12.x
- 16.x
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- us... | branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
- 19.x
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js $... | <|file_sep|>original/.github/workflows/node.js.yml
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12.x
- 16.x
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- us... | 47806e16dfa54ec242d91dddf555e896395d60e4 | .github/workflows/node.js.yml | .github/workflows/node.js.yml | YAML |
<|file_sep|>original/README.md
```
type Strategy interface {
Do(task func())
}
```
There are 4 implementations of the `Strategy` interface:
* `Bounded` uses a semaphore to limit the maximum number of goroutines
* `Direct` runs every task directly on the caller's goroutine
* `Pool` uses a fixed-size pool of goroutine... | ```
type Strategy interface {
Do(task func())
}
```
There are 4 implementations of the `Strategy` interface:
* `Bounded` uses a semaphore to limit the maximum number of goroutines
* `Direct` runs every task directly on the caller's goroutine
* `Pool` uses a fixed-size pool of goroutines to run queued tasks
* `Unboun... | <|file_sep|>original/README.md
```
type Strategy interface {
Do(task func())
}
```
There are 4 implementations of the `Strategy` interface:
* `Bounded` uses a semaphore to limit the maximum number of goroutines
* `Direct` runs every task directly on the caller's goroutine
* `Pool` uses a fixed-size pool of goroutine... | 1839d37d44c7e692ab4c6e9119dbc876bff5795c | README.md | README.md | Markdown |
<|file_sep|>original/build_gcp.sh
#!/bin/bash
# Copyright 2021 Google LLC
#
# 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 requir... | #!/bin/bash
# Copyright 2021 Google LLC
#
# 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 or agreed to ... | <|file_sep|>original/build_gcp.sh
#!/bin/bash
# Copyright 2021 Google LLC
#
# 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 requir... | 4e32b1c39ce618c278064ae6fa863c32799f742b | build_gcp.sh | build_gcp.sh | Shell |
<|file_sep|>packages/ar/arithmatic.yaml.diff
original:
hash: 23a6e4baeade5a2c9f17bebaea1c877cf9102632faa7bacc827f6ffb802bbb55
updated:
hash: 51f7d45b4bd5972aa7c933fae8a8c73a6273fb563f5294baf95ac45058c4fef6
<|file_sep|>packages/ar/arithmatic.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/ar/arit... | synopsis: do things with numbers
changelog: ''
basic-deps:
base: <10000
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.0.2'
- '0.1.0.3'
author: Alan Hawkins
latest: '0.1.0.3'
description-type: markdown
description: ! 'arithmatic
==========
arithmetic functions
'
license-name: BSD3 | <|file_sep|>packages/ar/arithmatic.yaml.diff
original:
hash: 23a6e4baeade5a2c9f17bebaea1c877cf9102632faa7bacc827f6ffb802bbb55
updated:
hash: 51f7d45b4bd5972aa7c933fae8a8c73a6273fb563f5294baf95ac45058c4fef6
<|file_sep|>packages/ar/arithmatic.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/ar/arit... | 06a6607b513ae5adb91f0fd35e017c1d52c1b014 | packages/ar/arithmatic.yaml | packages/ar/arithmatic.yaml | YAML |
<|file_sep|>libs/web/luasrc/view/cbi/footer.htm.diff
original:
<% if not autoapply then %>
updated:
<% if not autoapply and not flow.hideapplybtn then %>
<|file_sep|>original/libs/web/luasrc/view/cbi/footer.htm
<div class="cbi-page-actions">
<% if redirect then %>
<div style="float:left">
<input class="cbi-... | <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
</div>
<% end %>
<% if flow.skip then %>
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
<% end %>
<% if not autoapply an... | <|file_sep|>libs/web/luasrc/view/cbi/footer.htm.diff
original:
<% if not autoapply then %>
updated:
<% if not autoapply and not flow.hideapplybtn then %>
<|file_sep|>original/libs/web/luasrc/view/cbi/footer.htm
<div class="cbi-page-actions">
<% if redirect then %>
<div style="float:left">
<input class="cbi-... | 4001805a85c4afb4c19819ea9ef80cfff01b87d7 | libs/web/luasrc/view/cbi/footer.htm | libs/web/luasrc/view/cbi/footer.htm | HTML |
<|file_sep|>original/circle.yml
machine:
node:
version: 8.1.3
<|file_sep|>current/circle.yml
machine:
node:
version: 8.1.3
<|file_sep|>updated/circle.yml | machine:
node:
version: 8.1.3
deployment:
production:
branch: master
commands:
- ssh uhrwerk@88.99.218.142 -p 4800 'cd /home/uhrwerk/Software/Clockwork-API && git pull'
test:
override:
- "true" | <|file_sep|>original/circle.yml
machine:
node:
version: 8.1.3
<|file_sep|>current/circle.yml
machine:
node:
version: 8.1.3
<|file_sep|>updated/circle.yml
machine:
node:
version: 8.1.3
deployment:
production:
branch: master
commands:
- ssh uhrwerk@88.99.218.142 -p 4800 'cd /home/uhrwerk... | a02111eeb0adc70ce41a1e25fa92f8ef68187ce7 | circle.yml | circle.yml | YAML |
<|file_sep|>original/ci/build.sh
#!/usr/bin/bash
# Install build dependencies, run unit tests and installed tests.
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
pkg_install sudo which attr fuse bison \
libubsan libasan libtsan \
elfutils git gettext-devel libappstream-glib-devel \
/usr/bin/{upd... |
dn=$(dirname $0)
. ${dn}/libbuild.sh
pkg_install sudo which attr fuse bison \
libubsan libasan libtsan \
elfutils git gettext-devel libappstream-glib-devel \
/usr/bin/{update-mime-database,update-desktop-database,gtk-update-icon-cache}
pkg_install_testing ostree-devel ostree
pkg_install_if_os fedora gjs p... | <|file_sep|>original/ci/build.sh
#!/usr/bin/bash
# Install build dependencies, run unit tests and installed tests.
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
pkg_install sudo which attr fuse bison \
libubsan libasan libtsan \
elfutils git gettext-devel libappstream-glib-devel \
/usr/bin/{upd... | ac2d51b1c752ff9ee6eacc5174effa00a19234ab | ci/build.sh | ci/build.sh | Shell |
<|file_sep|>original/js/parseGeneSignature.js
var parser = require('./models/geneSignatureParser').parse;
// Parse a simple list of genes and weights. More complex signatures would
// be possible, but will require some work writing the xena query.
//
function parse(str) {
if (str[0] !== '=') {
return;
}
try {
v... | var parser = require('./models/geneSignatureParser').parse;
// Parse a simple list of genes and weights. More complex signatures would
// be possible, but will require some work writing the xena query.
//
function parse(str) {
if (str[0] !== '=') {
return;
}
try {
var list = parser(str.slice(1).trim());
retur... | <|file_sep|>original/js/parseGeneSignature.js
var parser = require('./models/geneSignatureParser').parse;
// Parse a simple list of genes and weights. More complex signatures would
// be possible, but will require some work writing the xena query.
//
function parse(str) {
if (str[0] !== '=') {
return;
}
try {
v... | 96ef120b0d4bb7b2e3942e2dd13606e9faa145be | js/parseGeneSignature.js | js/parseGeneSignature.js | JavaScript |
<|file_sep|>original/requirements-dev.txt
coveralls==1.1
pytest==3.0.6
pytest-cov==2.4.0
flake8==3.3.0
sphinx==1.5.2
alabaster>=0.6.2
tox==2.6.0
mock==2.0.0
<|file_sep|>current/requirements-dev.txt
coveralls==1.1
pytest==3.0.6
pytest-cov==2.4.0
flake8==3.3.0
sphinx==1.5.2
alabaster>=0.6.2
tox==2.6.0
mock==2.0.0
<|file_... | coveralls==1.1
pytest==3.0.7
pytest-cov==2.4.0
flake8==3.3.0
sphinx==1.5.2
alabaster>=0.6.2
tox==2.6.0
mock==2.0.0 | <|file_sep|>original/requirements-dev.txt
coveralls==1.1
pytest==3.0.6
pytest-cov==2.4.0
flake8==3.3.0
sphinx==1.5.2
alabaster>=0.6.2
tox==2.6.0
mock==2.0.0
<|file_sep|>current/requirements-dev.txt
coveralls==1.1
pytest==3.0.6
pytest-cov==2.4.0
flake8==3.3.0
sphinx==1.5.2
alabaster>=0.6.2
tox==2.6.0
mock==2.0.0
<|file_... | 2674f987d07891f7dba429fa3100ea857d6a6513 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/democracy/migrations/0032_add_language_code_to_comment.py
def backwards_func(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('democracy', '0031_remove_untranslated_fields'),
]
operations = [
migrations.AlterModelOptions(
... |
def backwards_func(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('democracy', '0031_remove_untranslated_fields'),
# comment.save() database operations will require a recent user model with all the fields included
('kerrokantasi', '__latest__'),
... | <|file_sep|>original/democracy/migrations/0032_add_language_code_to_comment.py
def backwards_func(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('democracy', '0031_remove_untranslated_fields'),
]
operations = [
migrations.AlterModelOptions(
... | b345c00b41ade2e12449566f7cb013a7bb8d078f | democracy/migrations/0032_add_language_code_to_comment.py | democracy/migrations/0032_add_language_code_to_comment.py | Python |
<|file_sep|>original/package.json
"version": "1.0.0",
"description": "A library to parse AssemblyInfo.cs file from a C# project",
"main": "assemblyinfo.js",
"directories": {
"test": "test"
},
"dependencies": {},
"devDependencies": {
"mocha": "^3.5.0"
},
"scripts": {
"test": "mocha"
},
... | "test": "test"
},
"dependencies": {},
"devDependencies": {
"mocha": "^3.5.0"
},
"scripts": {
"test": "mocha"
},
"keywords": [
"C#",
"AssemblyInfo.cs",
"Visual Studio"
],
"author": "Thomas Waldecker <thomas.waldecker@tq-group.com>",
"repository": {
"type": "git",
"url"... | <|file_sep|>original/package.json
"version": "1.0.0",
"description": "A library to parse AssemblyInfo.cs file from a C# project",
"main": "assemblyinfo.js",
"directories": {
"test": "test"
},
"dependencies": {},
"devDependencies": {
"mocha": "^3.5.0"
},
"scripts": {
"test": "mocha"
},
... | d050dc6d3888fff2770c7693e4c0fccd9dd8b4a3 | package.json | package.json | JSON |
<|file_sep|>original/tests/mltils/test_infrequent_value_encoder.py
<|file_sep|>current/tests/mltils/test_infrequent_value_encoder.py
<|file_sep|>updated/tests/mltils/test_infrequent_value_encoder.py | # pylint: disable=missing-docstring, invalid-name, import-error
import pandas as pd
from mltils.encoders import InfrequentValueEncoder
def test_infrequent_value_encoder_1():
ive = InfrequentValueEncoder()
assert ive is not None
def test_infrequent_value_encoder_2():
df = pd.DataFrame({'A': ['a', 'a', '... | <|file_sep|>original/tests/mltils/test_infrequent_value_encoder.py
<|file_sep|>current/tests/mltils/test_infrequent_value_encoder.py
<|file_sep|>updated/tests/mltils/test_infrequent_value_encoder.py
# pylint: disable=missing-docstring, invalid-name, import-error
import pandas as pd
from mltils.encoders import Infreq... | 428ff018ccda3862446ebaadf61db1a03470c18f | tests/mltils/test_infrequent_value_encoder.py | tests/mltils/test_infrequent_value_encoder.py | Python |
<|file_sep|>src/clj/comic_reader/scrape.clj.diff
original:
[net.cgrand.enlive-html :as html]))
updated:
[net.cgrand.enlive-html :as html])
(:import java.net.URL))
<|file_sep|>original/src/clj/comic_reader/scrape.clj
(:require [clojure.string :refer [trim]]
[net.cgrand.enlive-html... | (:import java.net.URL))
(def sites
{"Manga Fox" {:url "http://mangafox.me/manga/"
:selector [:div.manga_list :ul :li :a]
:normalize (fn [{name :content
{url :href} :attrs}]
{:name name
:url u... | <|file_sep|>src/clj/comic_reader/scrape.clj.diff
original:
[net.cgrand.enlive-html :as html]))
updated:
[net.cgrand.enlive-html :as html])
(:import java.net.URL))
<|file_sep|>original/src/clj/comic_reader/scrape.clj
(:require [clojure.string :refer [trim]]
[net.cgrand.enlive-html... | 26d7b550a6c444b551100be267796c5da4241366 | src/clj/comic_reader/scrape.clj | src/clj/comic_reader/scrape.clj | Clojure |
<|file_sep|>appinfo/app.php.diff
original:
$autoload = __DIR__ . '/../vendor/autoload.php';
if (!is_readable($autoload)) {
print 'Cannot read "autoload.php". Did you run composer ?'.
"<pre>cd path/to/owncloud/apps/mail\n".
"curl -sS https://getcomposer.org/installer | php\n".
'php composer.phar i... | <?php
use OCA\Mail\HordeTranslationHandler;
if ((@include_once __DIR__ . '/../vendor/autoload.php')===false) {
throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
}
$l = OC_L10N::get('mail');
// bypass Horde Translation system
Horde_Translation::setHandler('Horde_Imap_C... | <|file_sep|>appinfo/app.php.diff
original:
$autoload = __DIR__ . '/../vendor/autoload.php';
if (!is_readable($autoload)) {
print 'Cannot read "autoload.php". Did you run composer ?'.
"<pre>cd path/to/owncloud/apps/mail\n".
"curl -sS https://getcomposer.org/installer | php\n".
'php composer.phar i... | 429705abf975ccf1209f25ed1928c12a98a41d73 | appinfo/app.php | appinfo/app.php | PHP |
<|file_sep|>original/.drone.yml
image: bradrydzewski/python:2.7
script:
- apt-get install -y dnsutils
- pip install tox
- make test
<|file_sep|>current/.drone.yml
image: bradrydzewski/python:2.7
script:
- apt-get install -y dnsutils
- pip install tox
- make test
<|file_sep|>updated/.drone.yml | image: bradrydzewski/python:2.7
script:
- sudo apt-get install -y dnsutils
- pip install tox
- make test | <|file_sep|>original/.drone.yml
image: bradrydzewski/python:2.7
script:
- apt-get install -y dnsutils
- pip install tox
- make test
<|file_sep|>current/.drone.yml
image: bradrydzewski/python:2.7
script:
- apt-get install -y dnsutils
- pip install tox
- make test
<|file_sep|>updated/.drone.yml
im... | 83a0f20f3b798d21f953011239ebcba10ba11666 | .drone.yml | .drone.yml | YAML |
<|file_sep|>generators/run/index.js.diff
original:
this.spawnCommand('grunt', ['serve']);
updated:
this.spawnCommand('grunt', ['serve'], {
stdio: 'inherit'
});
<|file_sep|>original/generators/run/index.js
install: function() {
scaff... | },
end: function() {
scaffold.log('Running...\n', 'yellow');
if (this.isBuild) {
this.spawnCommand('grunt', ['serve'], {
stdio: 'inherit'
});
return false;
}
this.spawnCommand('grunt',... | <|file_sep|>generators/run/index.js.diff
original:
this.spawnCommand('grunt', ['serve']);
updated:
this.spawnCommand('grunt', ['serve'], {
stdio: 'inherit'
});
<|file_sep|>original/generators/run/index.js
install: function() {
scaff... | 2d0075c5b266b1aebe3d32f7edf6c25b66340381 | generators/run/index.js | generators/run/index.js | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.