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/src/parser/core/modules/SpellInfo.ts
}
onEvent(event: AnyEvent) {
if ('ability' in event) {
this.addSpellInfo(event.ability);
}
if ('extraAbility' in event) {
this.addSpellInfo(event.extraAbility);
}
}
addSpellInfo(ability: Omit<Ability, 'type'>) {
if (SPEL... | }
onEvent(event: AnyEvent) {
if ('ability' in event) {
this.addSpellInfo(event.ability);
}
if ('extraAbility' in event) {
this.addSpellInfo(event.extraAbility);
}
}
addSpellInfo(ability: Omit<Ability, 'type'>) {
if (SPELLS[ability.guid] || !ability.name || !ability.abilityIcon)... | <|file_sep|>original/src/parser/core/modules/SpellInfo.ts
}
onEvent(event: AnyEvent) {
if ('ability' in event) {
this.addSpellInfo(event.ability);
}
if ('extraAbility' in event) {
this.addSpellInfo(event.extraAbility);
}
}
addSpellInfo(ability: Omit<Ability, 'type'>) {
if (SPEL... | fde9ee25baa3e5d1b578cc7dbada1db8d9f440e8 | src/parser/core/modules/SpellInfo.ts | src/parser/core/modules/SpellInfo.ts | TypeScript |
<|file_sep|>original/jenkins_branches.sh
#!/bin/bash
set -e
[ -x .venv/bin/pip ] || virtualenv .venv
. .venv/bin/activate
pip install -q ghtools
REPO="alphagov/router-api"
gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null
if ./jenkins.sh; then
... | #!/bin/bash
set -e
VENV_PATH="${HOME}/venv/${JOB_NAME}"
[ -x ${VENV_PATH}/bin/pip ] || virtualenv ${VENV_PATH}
. ${VENV_PATH}/bin/activate
pip install -q ghtools
REPO="alphagov/router-api"
gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null
if ./... | <|file_sep|>original/jenkins_branches.sh
#!/bin/bash
set -e
[ -x .venv/bin/pip ] || virtualenv .venv
. .venv/bin/activate
pip install -q ghtools
REPO="alphagov/router-api"
gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null
if ./jenkins.sh; then
... | e54eba5dd01bd58ed3b575cfbaae2468a7e4e497 | jenkins_branches.sh | jenkins_branches.sh | Shell |
<|file_sep|>metadata/us.shandian.giga.txt.diff
original:
updated:
Build:1.1.4,8
commit=v1.1.4
subdir=app
gradle=yes
<|file_sep|>original/metadata/us.shandian.giga.txt
Issue Tracker:https://github.com/PaperAirplane-Dev-Team/GigaGet/issues
Auto Name:GigaGet
Summary:Manage multiple downloads
Description:
Si... | Simple, multi-thread download manger.
.
Repo Type:git
Repo:https://github.com/PaperAirplane-Dev-Team/GigaGet
Build:1.1.3,7
commit=04f8715e5fb06e8f25e51bf6f69e3c4cfe8d79ec
subdir=app
gradle=yes
Build:1.1.4,8
commit=v1.1.4
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Ta... | <|file_sep|>metadata/us.shandian.giga.txt.diff
original:
updated:
Build:1.1.4,8
commit=v1.1.4
subdir=app
gradle=yes
<|file_sep|>original/metadata/us.shandian.giga.txt
Issue Tracker:https://github.com/PaperAirplane-Dev-Team/GigaGet/issues
Auto Name:GigaGet
Summary:Manage multiple downloads
Description:
Si... | 8b7dbe41a42e30cd05869db22457c37d726e1bbb | metadata/us.shandian.giga.txt | metadata/us.shandian.giga.txt | Text |
<|file_sep|>original/test2/tenative/multi_dimension.c
<|file_sep|>current/test2/tenative/multi_dimension.c
<|file_sep|>updated/test2/tenative/multi_dimension.c | // RUN: %ucc -fsyntax-only %s
int a[][2];
int main()
{
a[0][0] = 3;
/* this tests a bug where the above assignment would attempt to check integer
* promotions (on a dereference of an array in the LHS), and attempt to find
* the size of `a` before it had been completed. integer promotions are now
* handled pro... | <|file_sep|>original/test2/tenative/multi_dimension.c
<|file_sep|>current/test2/tenative/multi_dimension.c
<|file_sep|>updated/test2/tenative/multi_dimension.c
// RUN: %ucc -fsyntax-only %s
int a[][2];
int main()
{
a[0][0] = 3;
/* this tests a bug where the above assignment would attempt to check integer
* prom... | 451e969f77d183784c56eea304a336fc0234860d | test2/tenative/multi_dimension.c | test2/tenative/multi_dimension.c | C |
<|file_sep|>original/app/controllers/comments_controller.rb
def edit
end
def update
end
private
def find_parent
params.each do |klass, value|
if klass.classify.constantize
return klass.classify.constantize.find(value[:id])
end
end
nil
end
def parent_show_path(article... |
def edit
end
def update
end
private
def find_parent
params.each do |key, value|
klass = key.sub( /_id$/, "" )
if klass.classify.constantize
return klass.classify.constantize.find(value[:id])
end
end
nil
end
def parent_show_path(article_obj)
"/#{article_obj.... | <|file_sep|>original/app/controllers/comments_controller.rb
def edit
end
def update
end
private
def find_parent
params.each do |klass, value|
if klass.classify.constantize
return klass.classify.constantize.find(value[:id])
end
end
nil
end
def parent_show_path(article... | eb5671fa46c5bc5dea53364307b12b495b1ad95f | app/controllers/comments_controller.rb | app/controllers/comments_controller.rb | Ruby |
<|file_sep|>opensimplex_test.py.diff
original:
import random
import time
updated:
<|file_sep|>original/opensimplex_test.py
import time
from PIL import Image # Depends on the Pillow lib
from opensimplex import OpenSimplexNoise
WIDTH = 512
HEIGHT = 512
FEATURE_SIZE = 24
def main():
random.seed(time.time())
se... | from PIL import Image # Depends on the Pillow lib
from opensimplex import OpenSimplexNoise
WIDTH = 512
HEIGHT = 512
FEATURE_SIZE = 24
def main():
simplex = OpenSimplexNoise()
im = Image.new('L', (WIDTH, HEIGHT))
for y in range(0, HEIGHT):
for x in range(0, WIDTH):
#value = simplex.no... | <|file_sep|>opensimplex_test.py.diff
original:
import random
import time
updated:
<|file_sep|>original/opensimplex_test.py
import time
from PIL import Image # Depends on the Pillow lib
from opensimplex import OpenSimplexNoise
WIDTH = 512
HEIGHT = 512
FEATURE_SIZE = 24
def main():
random.seed(time.time())
se... | 93512f1837a4e72752d4ffa07ac49e1f2cd5a7f6 | opensimplex_test.py | opensimplex_test.py | Python |
<|file_sep|>.codeclimate.yml.diff
original:
- python
- php
updated:
<|file_sep|>.codeclimate.yml.diff
original:
updated:
enabled: true
reek:
<|file_sep|>.codeclimate.yml.diff
original:
- "**.inc"
updated:
<|file_sep|>original/.codeclimate.yml
duplication:
enabled: true
config:
lan... | ---
engines:
duplication:
enabled: true
config:
languages:
- ruby
- javascript
fixme:
enabled: true
reek:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- "**.js"
- "**.jsx"
- "**.rb"
exclude_paths: [] | <|file_sep|>.codeclimate.yml.diff
original:
- python
- php
updated:
<|file_sep|>.codeclimate.yml.diff
original:
updated:
enabled: true
reek:
<|file_sep|>.codeclimate.yml.diff
original:
- "**.inc"
updated:
<|file_sep|>original/.codeclimate.yml
duplication:
enabled: true
config:
lan... | e0e5ff509d3a95b46ae0f7bb12585a4af3fb034f | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>original/spec/dummy_spec.lua
<|file_sep|>current/spec/dummy_spec.lua
<|file_sep|>updated/spec/dummy_spec.lua | -- Dummy test file for including files with 0% coverage in the luacov report
local test_env = require("spec.util.test_env")
local testing_paths = test_env.testing_paths
test_env.unload_luarocks()
local runner = require("luacov.runner")
runner.init(testing_paths.testrun_dir .. "/luacov.config")
require("luarocks.bui... | <|file_sep|>original/spec/dummy_spec.lua
<|file_sep|>current/spec/dummy_spec.lua
<|file_sep|>updated/spec/dummy_spec.lua
-- Dummy test file for including files with 0% coverage in the luacov report
local test_env = require("spec.util.test_env")
local testing_paths = test_env.testing_paths
test_env.unload_luarocks()... | 56150aad8614bef64e25866108a2bf65052f503a | spec/dummy_spec.lua | spec/dummy_spec.lua | Lua |
<|file_sep|>original/app/today/views/RTICard.js
},
serialize: function() {
return this.model.toJSON();
},
template: rtiTemplate,
beforeRender: function() {
this.el.style.display = 'none';
},
afterRender: function() {
this.clearR... | },
serialize: function() {
return this.model.toJSON();
},
template: rtiTemplate,
beforeRender: function() {
this.el.style.display = 'none';
},
afterRender: function() {
this.clearRefresh();
if (this.model.get('RTI').... | <|file_sep|>original/app/today/views/RTICard.js
},
serialize: function() {
return this.model.toJSON();
},
template: rtiTemplate,
beforeRender: function() {
this.el.style.display = 'none';
},
afterRender: function() {
this.clearR... | a74eb06d92a9c5e9daeb946297d4c5e5da005ca6 | app/today/views/RTICard.js | app/today/views/RTICard.js | JavaScript |
<|file_sep|>original/.travis.yml
language: ruby
before_install: 'gem update bundler'
install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag'
rvm:
- 2.2.2
- 2.3.0
- 2.3.1
notifications:
irc: "irc.freenode.org#jeweler"
<|file_sep|>current/.travis.yml
language: ruby
before_install: 'gem upda... | language: ruby
before_install: 'gem update bundler'
install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag'
rvm:
- 2.2
- 2.3
- 2.4
- 2.5
notifications:
irc: "irc.freenode.org#jeweler" | <|file_sep|>original/.travis.yml
language: ruby
before_install: 'gem update bundler'
install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag'
rvm:
- 2.2.2
- 2.3.0
- 2.3.1
notifications:
irc: "irc.freenode.org#jeweler"
<|file_sep|>current/.travis.yml
language: ruby
before_install: 'gem upda... | 3842901080220388c674d532ff93783a46730498 | .travis.yml | .travis.yml | YAML |
<|file_sep|>cookbooks/lib/features/xserver_spec.rb.diff
original:
describe command('DISPLAY=:99.0 xvfb-run xdpyinfo'), dev: true do
updated:
describe command('DISPLAY=:98.0 xvfb-run xdpyinfo'), dev: true do
<|file_sep|>original/cookbooks/lib/features/xserver_spec.rb
describe 'xserver installation' do
describe com... | describe 'xserver installation' do
describe command('Xorg -version') do
its(:exit_status) { should eq 0 }
end
describe command('DISPLAY=:99.0 xset -q') do
its(:stdout) { should match(/^Keyboard Control:/) }
its(:exit_status) { should eq 0 }
end
describe command('DISPLAY=:98.0 xvfb-run xdpyinfo')... | <|file_sep|>cookbooks/lib/features/xserver_spec.rb.diff
original:
describe command('DISPLAY=:99.0 xvfb-run xdpyinfo'), dev: true do
updated:
describe command('DISPLAY=:98.0 xvfb-run xdpyinfo'), dev: true do
<|file_sep|>original/cookbooks/lib/features/xserver_spec.rb
describe 'xserver installation' do
describe com... | cf8b91f028f9ce73b86439130535e1360172abc4 | cookbooks/lib/features/xserver_spec.rb | cookbooks/lib/features/xserver_spec.rb | Ruby |
<|file_sep|>original/.appveyor.yml
- x64
configuration:
- Debug
- Release
install:
- git submodule update --init --recursive
before_build:
- choco upgrade cmake
- cmake -G "Visual Studio 15 2017 Win64" -DBUILD_TESTS=1 .
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
# build_scr... | - x64
configuration:
- Debug
- Release
install:
- git submodule update --init --recursive
before_build:
- choco upgrade cmake --version 3.13.0
- set path=C:\Program Files\CMake\bin;%path%
- cmake -G "Visual Studio 15 2017 Win64" -DBUILD_TESTS=1 .
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_P... | <|file_sep|>original/.appveyor.yml
- x64
configuration:
- Debug
- Release
install:
- git submodule update --init --recursive
before_build:
- choco upgrade cmake
- cmake -G "Visual Studio 15 2017 Win64" -DBUILD_TESTS=1 .
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
# build_scr... | 6e0f85e8d05f7feee6d12d307203a5c5b1033ab5 | .appveyor.yml | .appveyor.yml | YAML |
<|file_sep|>original/server/build.gradle.kts
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.b... | java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation... | <|file_sep|>original/server/build.gradle.kts
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.b... | f61f9b443540a8dbe7971b53c7d023140d000191 | server/build.gradle.kts | server/build.gradle.kts | Kotlin |
<|file_sep|>packages/gr/groups.yaml.diff
original:
hash: c7bcad157b4e3699e3c181d14f8cc6d1737b4f313f5e310f40c21290951b9a3d
updated:
hash: b536d995c65281f5b891a694213fe4abce2fcee71ebda08bb9ec9e334cdcc741
<|file_sep|>packages/gr/groups.yaml.diff
original:
updated:
- 0.5.3
<|file_sep|>original/packages/gr/groups.yaml
main... | synopsis: Groups
changelog: ''
basic-deps:
base: '>=4.6 && <5'
all-versions:
- '0.1'
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.3.0.0
- 0.4.0.0
- 0.4.1.0
- '0.5'
- 0.5.1
- 0.5.2
- 0.5.3
author: Nathan "Taneb" van Doorn
latest: 0.5.3
description-type: haddock
description: A group is a monoid with invertibility.
license-name: B... | <|file_sep|>packages/gr/groups.yaml.diff
original:
hash: c7bcad157b4e3699e3c181d14f8cc6d1737b4f313f5e310f40c21290951b9a3d
updated:
hash: b536d995c65281f5b891a694213fe4abce2fcee71ebda08bb9ec9e334cdcc741
<|file_sep|>packages/gr/groups.yaml.diff
original:
updated:
- 0.5.3
<|file_sep|>original/packages/gr/groups.yaml
main... | b4ef10ea914e289fa4723642e7a79e062359237c | packages/gr/groups.yaml | packages/gr/groups.yaml | YAML |
<|file_sep|>original/src/mainwindow.cpp
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow) {
ui->setupUi(this);
/***************************************************************************
* Create and set the settings button on the top left of the tabs
***... |
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow) {
ui->setupUi(this);
/***************************************************************************
* Create and set the settings button on the top left of the tabs
*******************************************... | <|file_sep|>original/src/mainwindow.cpp
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow) {
ui->setupUi(this);
/***************************************************************************
* Create and set the settings button on the top left of the tabs
***... | 05f45d8598743c0bc796489df0e1896ddfbe7db2 | src/mainwindow.cpp | src/mainwindow.cpp | C++ |
<|file_sep|>original/README.md
- Set up environment variables in `nuxt.config.js` under the `env` property. (e.g. in ~/.bashrc, add `export API_URL="https://yourapi.com"`)
## Build Setup
``` bash
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build ... | Designed by [Engine Collaborative](https://www.enginecollaborative.com)
## ENV
- Set up environment variables in `nuxt.config.js` under the `env` property. (e.g. in ~/.bashrc, add `export API_URL="https://yourapi.com"`)
## Build Setup
``` bash
# install dependencies
$ npm install # Or yarn install
# serve with hot... | <|file_sep|>original/README.md
- Set up environment variables in `nuxt.config.js` under the `env` property. (e.g. in ~/.bashrc, add `export API_URL="https://yourapi.com"`)
## Build Setup
``` bash
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build ... | 85bc8cf71e00de9ef99c399407987f412db0fe53 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
sudo: required
dist: trusty
language: c
env:
- PGVERSION=9.1
- PGVERSION=9.2
- PGVERSION=9.3
- PGVERSION=9.4
- PGVERSION=9.5
before_script:
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path
- sudo /etc/init.d/postgresql stop... | sudo: required
dist: trusty
language: c
env:
- PGVERSION=9.2
- PGVERSION=9.3
- PGVERSION=9.4
- PGVERSION=9.5
before_script:
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path
- sudo /etc/init.d/postgresql stop # Stop whichever version o... | <|file_sep|>original/.travis.yml
sudo: required
dist: trusty
language: c
env:
- PGVERSION=9.1
- PGVERSION=9.2
- PGVERSION=9.3
- PGVERSION=9.4
- PGVERSION=9.5
before_script:
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH # Add our chosen PG version to the path
- sudo /etc/init.d/postgresql stop... | a06e5eaa4c4c6b15009ed7d062d09587fb4d7cdf | .travis.yml | .travis.yml | YAML |
<|file_sep|>manage-server/src/main/java/manage/validations/XMLFormatValidator.java.diff
original:
updated:
import javax.xml.XMLConstants;
<|file_sep|>manage-server/src/main/java/manage/validations/XMLFormatValidator.java.diff
original:
updated:
private static final String FEATURE_DISABLE_DOCTYPE = "http://apache.... | public class XMLFormatValidator implements FormatValidator {
private static final String FEATURE_DISABLE_DOCTYPE = "http://apache.org/xml/features/disallow-doctype-decl";
@Override
public Optional<String> validate(String subject) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstanc... | <|file_sep|>manage-server/src/main/java/manage/validations/XMLFormatValidator.java.diff
original:
updated:
import javax.xml.XMLConstants;
<|file_sep|>manage-server/src/main/java/manage/validations/XMLFormatValidator.java.diff
original:
updated:
private static final String FEATURE_DISABLE_DOCTYPE = "http://apache.... | 71750125d73044b8e57e4f7a284c84bcc440dc9a | manage-server/src/main/java/manage/validations/XMLFormatValidator.java | manage-server/src/main/java/manage/validations/XMLFormatValidator.java | Java |
<|file_sep|>original/lib/api_consumer.rb
module Initializer
def initialize(attributes = {}, persisted = false)
if Attributes::Base.new(attributes).standardized?
attributes = attributes.fetch('data')
end
super attributes, persisted
end
end
module ClassMethods
... | module Initializer
def initialize(attributes = {}, persisted = false)
if Attributes::Base.new(attributes).standardized?
attributes = attributes.fetch('data')
end
super attributes, persisted
end
end
module ClassMethods
include Finder
end
mattr_acc... | <|file_sep|>original/lib/api_consumer.rb
module Initializer
def initialize(attributes = {}, persisted = false)
if Attributes::Base.new(attributes).standardized?
attributes = attributes.fetch('data')
end
super attributes, persisted
end
end
module ClassMethods
... | 3cf2b1f3026c0817b388bdb0a5297fd45db5054a | lib/api_consumer.rb | lib/api_consumer.rb | Ruby |
<|file_sep|>original/config.py
# Paths to key files
FIREBASE_KEY_PATH="firebase.local.json"
# Firebase config for prox-server
# These are public-facing and can be found in the console under Auth > Web Setup (in the top-right corner)
FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"auth... | FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"authDomain": "prox-server-cf63e.firebaseapp.com",
"databaseURL": "https://prox-server-cf63e.firebaseio.com",
"storageBucket": "prox-server-cf63e.appspot.com",
"messagingSenderId": "888537898788",
"serviceAccount": FIREBASE... | <|file_sep|>original/config.py
# Paths to key files
FIREBASE_KEY_PATH="firebase.local.json"
# Firebase config for prox-server
# These are public-facing and can be found in the console under Auth > Web Setup (in the top-right corner)
FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"auth... | b415e265f6b725c7e1a99d2ee1dae77f0cd555a7 | config.py | config.py | Python |
<|file_sep|>original/src/zeit/content/article/edit/browser/tests/test_header.py
import zeit.content.article.edit.browser.testing
class HeaderModules(zeit.content.article.edit.browser.testing.EditorTestCase):
def test_can_create_module_by_drag_and_drop(self):
s = self.selenium
self.add_article()
... | import zeit.content.article.edit.browser.testing
class HeaderModules(zeit.content.article.edit.browser.testing.EditorTestCase):
def test_can_create_module_by_drag_and_drop(self):
s = self.selenium
self.add_article()
# Select header that allows header module
s.click('css=#edit-form... | <|file_sep|>original/src/zeit/content/article/edit/browser/tests/test_header.py
import zeit.content.article.edit.browser.testing
class HeaderModules(zeit.content.article.edit.browser.testing.EditorTestCase):
def test_can_create_module_by_drag_and_drop(self):
s = self.selenium
self.add_article()
... | ce2ea43a9ca49caa50e26bc7d7e11ba97edea929 | src/zeit/content/article/edit/browser/tests/test_header.py | src/zeit/content/article/edit/browser/tests/test_header.py | Python |
<|file_sep|>netbox/ipam/models/__init__.py.diff
original:
updated:
# Ensure that VRFs are imported before IPs/prefixes so dumpdata & loaddata work correctly
<|file_sep|>netbox/ipam/models/__init__.py.diff
original:
updated:
from .vrfs import *
<|file_sep|>original/netbox/ipam/models/__init__.py
from .fhrp import *
fr... | # Ensure that VRFs are imported before IPs/prefixes so dumpdata & loaddata work correctly
from .fhrp import *
from .vrfs import *
from .ip import *
from .services import *
from .vlans import *
__all__ = (
'ASN',
'Aggregate',
'IPAddress',
'IPRange',
'FHRPGroup',
'FHRPGroupAssignment',
'Prefi... | <|file_sep|>netbox/ipam/models/__init__.py.diff
original:
updated:
# Ensure that VRFs are imported before IPs/prefixes so dumpdata & loaddata work correctly
<|file_sep|>netbox/ipam/models/__init__.py.diff
original:
updated:
from .vrfs import *
<|file_sep|>original/netbox/ipam/models/__init__.py
from .fhrp import *
fr... | 5526f8e3dca2f84fce34df5a134bada8479a2f69 | netbox/ipam/models/__init__.py | netbox/ipam/models/__init__.py | Python |
<|file_sep|>client/package.json.diff
original:
"version": "1.4.0",
updated:
"version": "1.4.1",
<|file_sep|>client/package.json.diff
original:
"typescript": "^1.7.5",
"vscode": "^0.11.x"
updated:
"typescript": "^1.7.5"
<|file_sep|>original/client/package.json
"url": "https://github.com/Microsoft/vscode-langua... | },
"bugs": {
"url": "https://github.com/Microsoft/vscode-languageserver-node/issues"
},
"main": "./lib/main.js",
"typings": "./lib/main",
"devDependencies": {
"typescript": "^1.7.5"
},
"dependencies": {
"vscode-jsonrpc": "^1.2.0",
"vscode": "^0.11.x"
},
"scripts": {
"postinstall": "node ./node_modul... | <|file_sep|>client/package.json.diff
original:
"version": "1.4.0",
updated:
"version": "1.4.1",
<|file_sep|>client/package.json.diff
original:
"typescript": "^1.7.5",
"vscode": "^0.11.x"
updated:
"typescript": "^1.7.5"
<|file_sep|>original/client/package.json
"url": "https://github.com/Microsoft/vscode-langua... | cc55c9a26285508a2749efee298b6158af376e8f | client/package.json | client/package.json | JSON |
<|file_sep|>original/bash_runner/tasks.py
"""
Cloudify plugin for running a simple bash script.
Operations:
start: Run a script
"""
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@t... | """
Cloudify plugin for running a simple bash script.
Operations:
start: Run a script
"""
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@task
def start(__cloudify_id, port=8080, **... | <|file_sep|>original/bash_runner/tasks.py
"""
Cloudify plugin for running a simple bash script.
Operations:
start: Run a script
"""
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@t... | bf91e50b02ff8ef89e660e3c853cc2f30646f32d | bash_runner/tasks.py | bash_runner/tasks.py | Python |
<|file_sep|>original/frontends/default/views/_show.html.erb
<h4><%= @record.to_label.nil? ? active_scaffold_config.show.label : as_(:show_model, :model => clean_column_value(@record.to_label)) %></h4>
<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>
<p class="for... | <h4><%= active_scaffold_config.show.label(@record.to_label.nil? ? nil : clean_column_value(@record.to_label)) %></h4>
<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>
<p class="form-footer">
<%= link_to as_(:close), main_path_to_return, :class => 'cancel' %>
... | <|file_sep|>original/frontends/default/views/_show.html.erb
<h4><%= @record.to_label.nil? ? active_scaffold_config.show.label : as_(:show_model, :model => clean_column_value(@record.to_label)) %></h4>
<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>
<p class="for... | 07681f0f15e1f440d3ef704764beca25c0e1d56b | frontends/default/views/_show.html.erb | frontends/default/views/_show.html.erb | HTML+ERB |
<|file_sep|>kimochiconsumer/templates/sections/two_columns.mako.diff
original:
<div class="col-md-6">
updated:
<div class="col-md-6 col-md-6-left-column">
<|file_sep|>original/kimochiconsumer/templates/sections/two_columns.mako
<%page args="section" />
<div class="row">
<div class="col-md-6">
<%incl... | <%page args="section" />
<div class="row">
<div class="col-md-6 col-md-6-left-column">
<%include file="${section['sections'][0]['type']}.mako" args="section=section['sections'][0]" />
</div>
<div class="col-md-6 col-md-6-right-column">
<%include file="${section['sections'][1]['type']}.mako" ... | <|file_sep|>kimochiconsumer/templates/sections/two_columns.mako.diff
original:
<div class="col-md-6">
updated:
<div class="col-md-6 col-md-6-left-column">
<|file_sep|>original/kimochiconsumer/templates/sections/two_columns.mako
<%page args="section" />
<div class="row">
<div class="col-md-6">
<%incl... | cffe024bf799061caec6913462b0214ac8bd1d01 | kimochiconsumer/templates/sections/two_columns.mako | kimochiconsumer/templates/sections/two_columns.mako | Mako |
<|file_sep|>original/.travis.yml
dist: trusty
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.1
- 2.4.4
- 2.3.7
- 2.2.10
- jruby-9.1.17.0
before_install:
- gem update --system
- gem install bundler
<|file_sep|>current/.travis.yml
dist: trusty
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.1
... | dist: trusty
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.1
- 2.4.4
- 2.3.7
- 2.2.10
- jruby-9.2.0.0
before_install:
- gem update --system
- gem install bundler | <|file_sep|>original/.travis.yml
dist: trusty
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.1
- 2.4.4
- 2.3.7
- 2.2.10
- jruby-9.1.17.0
before_install:
- gem update --system
- gem install bundler
<|file_sep|>current/.travis.yml
dist: trusty
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.1
... | 1c70b2696d78b3f871abbb3de37ef0dab7e0054e | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/mi/midair.yaml.diff
original:
hash: cd55082e650778b05fd7fd357e81ffe1596194fc4f3f51c72422b5f9c9ea7ac6
updated:
hash: 6d9d9ea008fe6ded8df490d7e9520048f54539fd3e9cced75095992ce5fff85a
<|file_sep|>packages/mi/midair.yaml.diff
original:
updated:
- '0.1.0.1'
<|file_sep|>original/packages/mi/midair.yaml
... | changelog: ''
basic-deps:
stm: ! '>=2.2.0.1 && <2.5'
base: ! '>=4.8 && <4.9'
containers: ! '>0.4.0.0 && <0.6'
safe: ! '>=0.3 && <0.4'
all-versions:
- '0.1.0.0'
- '0.1.0.1'
author: Tom Murphy
latest: '0.1.0.1'
description-type: haddock
description: ! 'An FRP for livecoding, where you can hot-swap pieces or the w... | <|file_sep|>packages/mi/midair.yaml.diff
original:
hash: cd55082e650778b05fd7fd357e81ffe1596194fc4f3f51c72422b5f9c9ea7ac6
updated:
hash: 6d9d9ea008fe6ded8df490d7e9520048f54539fd3e9cced75095992ce5fff85a
<|file_sep|>packages/mi/midair.yaml.diff
original:
updated:
- '0.1.0.1'
<|file_sep|>original/packages/mi/midair.yaml
... | 203f4948dcd900c1a821c938c5e0ff9c6cd8870d | packages/mi/midair.yaml | packages/mi/midair.yaml | YAML |
<|file_sep|>scripts/website_push.sh.diff
original:
updated:
# Set the tmpdir
if [ -z "$TMPDIR" ]; then
TMPDIR="/tmp"
fi
# Create a temporary build dir and make sure we clean it up. For
# debugging, comment out the trap line.
DEPLOY=`mktemp -d $TMPDIR/packer-www-XXXXXX`
trap "rm -rf $DEPLOY" INT TERM EXIT
<|file_se... | while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Copy into tmpdir
shopt -s dotglob
cp -r $DIR/website/* $DEPLOY/
# Change into that directory
pushd $DEPLOY &>/dev/null
# Ignore some stuff
touch .gitignore
echo ".sass-cache" >> .gitignore
echo "bui... | <|file_sep|>scripts/website_push.sh.diff
original:
updated:
# Set the tmpdir
if [ -z "$TMPDIR" ]; then
TMPDIR="/tmp"
fi
# Create a temporary build dir and make sure we clean it up. For
# debugging, comment out the trap line.
DEPLOY=`mktemp -d $TMPDIR/packer-www-XXXXXX`
trap "rm -rf $DEPLOY" INT TERM EXIT
<|file_se... | 8f727219d991f230c2832e80d08c2a4d30ab7a32 | scripts/website_push.sh | scripts/website_push.sh | Shell |
<|file_sep|>lib/stack_master/commands/delete.rb.diff
original:
updated:
StackMaster.stdout.puts "Stack deleted"
rescue Aws::CloudFormation::Errors::ValidationError
# Unfortunately the stack as a tendency of going away before we get the final delete event.
StackMaster.stdout.puts "Stack de... | cf.describe_stacks({stack_name: @stack_name})
true
rescue Aws::CloudFormation::Errors::ValidationError
StackMaster.stdout.puts "Stack does not exist"
false
end
def cf
StackMaster.cloud_formation_driver
end
def tail_stack_events
StackEvents:... | <|file_sep|>lib/stack_master/commands/delete.rb.diff
original:
updated:
StackMaster.stdout.puts "Stack deleted"
rescue Aws::CloudFormation::Errors::ValidationError
# Unfortunately the stack as a tendency of going away before we get the final delete event.
StackMaster.stdout.puts "Stack de... | ec4c7c6fa0999651be77e8ba37aa6d52fbf0adcc | lib/stack_master/commands/delete.rb | lib/stack_master/commands/delete.rb | Ruby |
<|file_sep|>ember/app/components/nav-bar-search-form.hbs.diff
original:
onsubmit={{action @onSearch this.searchTextService.text}}
updated:
<|file_sep|>original/ember/app/components/nav-bar-search-form.hbs
<form
action="/search"
local-class="form"
class="navbar-form navbar-left navbar-search visible-lg"
onsub... | <form
action="/search"
local-class="form"
class="navbar-form navbar-left navbar-search visible-lg"
...attributes
{{on "submit" (prevent-default (fn @onSearch this.searchTextService.text))}}
>
<div class="form-group">
<Input
@type="text"
@name="text"
@value={{this.searchTextService.text... | <|file_sep|>ember/app/components/nav-bar-search-form.hbs.diff
original:
onsubmit={{action @onSearch this.searchTextService.text}}
updated:
<|file_sep|>original/ember/app/components/nav-bar-search-form.hbs
<form
action="/search"
local-class="form"
class="navbar-form navbar-left navbar-search visible-lg"
onsub... | 3c820ebb006fd73525e68214073217114acbf8db | ember/app/components/nav-bar-search-form.hbs | ember/app/components/nav-bar-search-form.hbs | Handlebars |
<|file_sep|>original/Cargo.toml
[package]
name = "cpp_codegen_rs"
version = "0.1.0"
authors = ["Jupp Müller <jupp0r@gmail.com>"]
[dev-dependencies]
tempdir = "*"
[dependencies]
serde = "*"
serde_json = "*"
serde_macros = "*"
clap = "*"
rand = "*"
log = "*"
env_logger = "*"
[dependencies.clang]
version = "*"
features... | [package]
name = "cpp_codegen_rs"
version = "0.1.0"
authors = ["Jupp Müller <jupp0r@gmail.com>"]
license = "MIT"
[dev-dependencies]
tempdir = "*"
[dependencies]
serde = "*"
serde_json = "*"
serde_macros = "*"
clap = "*"
rand = "*"
log = "*"
env_logger = "*"
[dependencies.clang]
version = "*"
features = ["clang_3_8",... | <|file_sep|>original/Cargo.toml
[package]
name = "cpp_codegen_rs"
version = "0.1.0"
authors = ["Jupp Müller <jupp0r@gmail.com>"]
[dev-dependencies]
tempdir = "*"
[dependencies]
serde = "*"
serde_json = "*"
serde_macros = "*"
clap = "*"
rand = "*"
log = "*"
env_logger = "*"
[dependencies.clang]
version = "*"
features... | e1a51a030aa2d66918296c46f242066bfde3fedf | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/tests/api/test_lifecycle.py
<|file_sep|>current/tests/api/test_lifecycle.py
<|file_sep|>updated/tests/api/test_lifecycle.py | class TestShutdown:
async def test(self, mocker, monkeypatch, do_get):
"""
Test that a ``GET /api/lifecycle/shutdown`` results in :meth:`aiohttp.web.Application.shutdown` being called on
the Virtool application object. We check this be seeing if
"""
await do_get.init_clien... | <|file_sep|>original/tests/api/test_lifecycle.py
<|file_sep|>current/tests/api/test_lifecycle.py
<|file_sep|>updated/tests/api/test_lifecycle.py
class TestShutdown:
async def test(self, mocker, monkeypatch, do_get):
"""
Test that a ``GET /api/lifecycle/shutdown`` results in :meth:`aiohttp.web.App... | f6dd79b19f5cf63c32db1d07bc1712185a6cbb6d | tests/api/test_lifecycle.py | tests/api/test_lifecycle.py | Python |
<|file_sep|>index.html.diff
original:
<title>HCI Project Portfolio</title>
updated:
<title>Project Portfolio</title>
<|file_sep|>index.html.diff
original:
<h1>Scott Klemmer</h1> <!-- h1 through h5 are headers. The higher the number, the smaller the header -->
updated:
<h1>Chinthaka Wijerathna</h1> <!-- h1 through h... | <meta charset="utf-8">
<title>Project Portfolio</title>
</head>
<body>
<!-- this is a comment in HTML -->
<h1>Chinthaka Wijerathna</h1> <!-- h1 through h5 are headers. The higher the number, the smaller the header -->
<h4>Project Portfolio</h4>
<!-- p means paragraph -->
<p>Chinthaka is a red hat certified sys... | <|file_sep|>index.html.diff
original:
<title>HCI Project Portfolio</title>
updated:
<title>Project Portfolio</title>
<|file_sep|>index.html.diff
original:
<h1>Scott Klemmer</h1> <!-- h1 through h5 are headers. The higher the number, the smaller the header -->
updated:
<h1>Chinthaka Wijerathna</h1> <!-- h1 through h... | a47de389a01386f20de86da078fd09c354f63deb | index.html | index.html | HTML |
<|file_sep|>lib/store.js.diff
original:
updated:
check(this.adapter, methods);
<|file_sep|>original/lib/store.js
function Store(options) {
var Adapter = require('./db/' + options.adapter);
this.adapter = new Adapter(options[options.adapter]);
}
// Methods that should be supported by adaptors.
var methods = [
... | function Store(options) {
var Adapter = require('./db/' + options.adapter);
this.adapter = new Adapter(options[options.adapter]);
check(this.adapter, methods);
}
var check = function (adapter, methods) {
methods.forEach(function (method) {
if (!adapter[method]) throw new Error("DB adapter missing method: "... | <|file_sep|>lib/store.js.diff
original:
updated:
check(this.adapter, methods);
<|file_sep|>original/lib/store.js
function Store(options) {
var Adapter = require('./db/' + options.adapter);
this.adapter = new Adapter(options[options.adapter]);
}
// Methods that should be supported by adaptors.
var methods = [
... | aaeb535906cc873f6beb6b4fe7c0b5af4599d0af | lib/store.js | lib/store.js | JavaScript |
<|file_sep|>original/java/ql/src/change-notes/released/0.1.0.md
## 0.1.0
### Query Metadata Changes
* Added the `security-severity` tag to several queries.
### Minor Analysis Improvements
* Fixed "Local information disclosure in a temporary directory" (`java/local-temp-file-or-directory-information-disclosure`) to... | ## 0.1.0
### Query Metadata Changes
* Added the `security-severity` tag to several queries.
### Minor Analysis Improvements
* Fixed "Local information disclosure in a temporary directory" (`java/local-temp-file-or-directory-information-disclosure`) to resolve false-negatives when OS isn't properly used as logical g... | <|file_sep|>original/java/ql/src/change-notes/released/0.1.0.md
## 0.1.0
### Query Metadata Changes
* Added the `security-severity` tag to several queries.
### Minor Analysis Improvements
* Fixed "Local information disclosure in a temporary directory" (`java/local-temp-file-or-directory-information-disclosure`) to... | 033694d7f7a7fb56306e116a8eb1d798078f655b | java/ql/src/change-notes/released/0.1.0.md | java/ql/src/change-notes/released/0.1.0.md | Markdown |
<|file_sep|>original/.travis.yml
- TWISTED=Twisted==12.0 RUNTESTS=trial
- TWISTED=Twisted==12.1 RUNTESTS=trial
- TWISTED=Twisted==12.2 RUNTESTS=trial
- TWISTED=Twisted==12.3 RUNTESTS=trial
- TWISTED=Twisted==13.0 RUNTESTS=trial
- TWISTED=Twisted==13.1 RUNTESTS=trial
- TWISTED=Twisted==13.2 R... | - TWISTED=Twisted==12.0 RUNTESTS=trial
- TWISTED=Twisted==12.1 RUNTESTS=trial
- TWISTED=Twisted==12.2 RUNTESTS=trial
- TWISTED=Twisted==12.3 RUNTESTS=trial
- TWISTED=Twisted==13.0 RUNTESTS=trial
- TWISTED=Twisted==13.1 RUNTESTS=trial
- TWISTED=Twisted==13.2 RUNTESTS=trial
#matrix:
# incl... | <|file_sep|>original/.travis.yml
- TWISTED=Twisted==12.0 RUNTESTS=trial
- TWISTED=Twisted==12.1 RUNTESTS=trial
- TWISTED=Twisted==12.2 RUNTESTS=trial
- TWISTED=Twisted==12.3 RUNTESTS=trial
- TWISTED=Twisted==13.0 RUNTESTS=trial
- TWISTED=Twisted==13.1 RUNTESTS=trial
- TWISTED=Twisted==13.2 R... | 239a71a95606ba15738f43381ca8c333019975d4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/bin/filter_pycapsule.py
<|file_sep|>current/bin/filter_pycapsule.py
<|file_sep|>updated/bin/filter_pycapsule.py | #!/usr/bin/python3
"""Filters Pycapsule error"""
import fileinput
import sys
STRING = "RuntimeError: Object of type <class 'NamedArray'>"
NUM_AFTER = 5 # How many lines after to delete
NUM_BEFORE = 4 # How far before to delete
output_lines = []
delete_count = 0
for line in fileinput.input():
if delete_count > ... | <|file_sep|>original/bin/filter_pycapsule.py
<|file_sep|>current/bin/filter_pycapsule.py
<|file_sep|>updated/bin/filter_pycapsule.py
#!/usr/bin/python3
"""Filters Pycapsule error"""
import fileinput
import sys
STRING = "RuntimeError: Object of type <class 'NamedArray'>"
NUM_AFTER = 5 # How many lines after to dele... | 18c40bdc02c5cd27c69edb394e040a3db3d75e05 | bin/filter_pycapsule.py | bin/filter_pycapsule.py | Python |
<|file_sep|>original/metadata/com.proch.practicehub.yml
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://archive.softwareheritage.org/browse/origin/https://music-practice-tools.googlecode.com/directory/
AutoName: Practice Hub
Description: |-
Tools for musicians, including a chromoatic tuner, a ... | Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://github.com/rproch/music-practice-tools
AutoName: Practice Hub
Description: |-
Tools for musicians, including a chromoatic tuner, a metronome, and a pitch
drone.
Builds:
- versionName: '1.0'
versionCode: 1
commit: 109c0bddf346
b... | <|file_sep|>original/metadata/com.proch.practicehub.yml
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://archive.softwareheritage.org/browse/origin/https://music-practice-tools.googlecode.com/directory/
AutoName: Practice Hub
Description: |-
Tools for musicians, including a chromoatic tuner, a ... | bd4aed46ebd631b822fc6f503d9b8f40cf787d2f | metadata/com.proch.practicehub.yml | metadata/com.proch.practicehub.yml | YAML |
<|file_sep|>tests/dummy/mirage/scenarios/default.js.diff
original:
/* eslint no-shadow: "off" */
import moment from 'moment';
updated:
export default function() {
<|file_sep|>original/tests/dummy/mirage/scenarios/default.js
"mimetype": "application/pdf",
"sessionTitle": "Skill Session",
"courseT... | export default function() {
} | <|file_sep|>tests/dummy/mirage/scenarios/default.js.diff
original:
/* eslint no-shadow: "off" */
import moment from 'moment';
updated:
export default function() {
<|file_sep|>original/tests/dummy/mirage/scenarios/default.js
"mimetype": "application/pdf",
"sessionTitle": "Skill Session",
"courseT... | 503bff85dc2981023760c6f42f619c1aeac920a9 | tests/dummy/mirage/scenarios/default.js | tests/dummy/mirage/scenarios/default.js | JavaScript |
<|file_sep|>lib/line-height.js.diff
original:
updated:
var siteFooter = fs.readFileSync('./templates/footer.html', 'utf8')
<|file_sep|>original/lib/line-height.js
var module = require('tachyons-line-height/package.json')
var moduleCss = fs.readFileSync('node_modules/tachyons-line-height/tachyons-line-height.min.css',... | var moduleCss = fs.readFileSync('node_modules/tachyons-line-height/tachyons-line-height.min.css', 'utf8')
var moduleObj = cssstats(moduleCss)
var moduleSize = filesize(moduleObj.gzipSize)
var srcCSS = fs.readFileSync('./src/_line-height.css', 'utf8')
var navDocs = fs.readFileSync('./templates/nav_docs.html', 'utf8')
v... | <|file_sep|>lib/line-height.js.diff
original:
updated:
var siteFooter = fs.readFileSync('./templates/footer.html', 'utf8')
<|file_sep|>original/lib/line-height.js
var module = require('tachyons-line-height/package.json')
var moduleCss = fs.readFileSync('node_modules/tachyons-line-height/tachyons-line-height.min.css',... | 7704513f84f955136afbfb67eb4e67a10b161fc2 | lib/line-height.js | lib/line-height.js | JavaScript |
<|file_sep|>original/ManifoldTests/IntExtensionTests.swift
func testThereIsOneDigitInNine() {
assert(9.digits, ==, [9])
}
func testThereAreTwoDigitsInTen() {
assert(10.digits, ==, [1, 0])
}
func testThereAreTwoDigitsInNinetyNine() {
assert(99.digits, ==, [9, 9])
}
func testThereAreThreeDigitsInOneHundre... | assert(10.digits, ==, [1, 0])
}
func testThereAreTwoDigitsInNinetyNine() {
assert(99.digits, ==, [9, 9])
}
func testThereAreThreeDigitsInOneHundredAndTwentyThree() {
assert(123.digits, ==, [1, 2, 3])
}
func testBinaryDigits() {
assert(4.digits(2), ==, [ 1, 0, 0 ])
assert(7.digits(2), ==, [ 1, 1, 1 ])... | <|file_sep|>original/ManifoldTests/IntExtensionTests.swift
func testThereIsOneDigitInNine() {
assert(9.digits, ==, [9])
}
func testThereAreTwoDigitsInTen() {
assert(10.digits, ==, [1, 0])
}
func testThereAreTwoDigitsInNinetyNine() {
assert(99.digits, ==, [9, 9])
}
func testThereAreThreeDigitsInOneHundre... | abd765fe2d918b30d17a708e1cba3f8a3e21e70c | ManifoldTests/IntExtensionTests.swift | ManifoldTests/IntExtensionTests.swift | Swift |
<|file_sep|>original/app/templates/src/styles/main.styl
left: 0
right: 0
bottom: 0
.bespoke-slide
width: 640px
height: 480px
position: absolute
top: 50%
left: 50%
margin-left: -(@width / 2)
margin-top: -(@height / 2)
.bespoke-inactive
opacity: 0
pointer-events: none
.bespoke-bullet-inactive
... | .bespoke-slide
width: 640px
height: 480px
position: absolute
top: 50%
left: 50%
margin-left: -(@width / 2)
margin-top: -(@height / 2)
.bespoke-inactive
opacity: 0
pointer-events: none
.bespoke-bullet-inactive
opacity: 0
pointer-events: none
.emphatic
background: #222
color: white
<% } %> | <|file_sep|>original/app/templates/src/styles/main.styl
left: 0
right: 0
bottom: 0
.bespoke-slide
width: 640px
height: 480px
position: absolute
top: 50%
left: 50%
margin-left: -(@width / 2)
margin-top: -(@height / 2)
.bespoke-inactive
opacity: 0
pointer-events: none
.bespoke-bullet-inactive
... | 9d53e4f6238ebc46c89de71f576ca5fcd8da7eef | app/templates/src/styles/main.styl | app/templates/src/styles/main.styl | Stylus |
<|file_sep|>.travis.yml.diff
original:
updated:
# https://docs.travis-ci.com/user/build-config-validation/
version: ~> 1.0
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
sudo: required
dist: trusty
language: node_js
node_js:
- "10... | dist: trusty
language: node_js
node_js:
- "10"
- "12"
addons:
apt:
packages:
- graphicsmagick
before_script:
- gm version
script:
- npm run lint
- npm test
after_script: "npm run coverage"
cache:
directories:
- node_modules
jobs:
fast_finish: true | <|file_sep|>.travis.yml.diff
original:
updated:
# https://docs.travis-ci.com/user/build-config-validation/
version: ~> 1.0
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
sudo: required
dist: trusty
language: node_js
node_js:
- "10... | 1db85307985d1a290f326dcea0a923eb077280d0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
$ bower link webcomponentsjs
```
## Differences from Spec
Most custom element reactions in the polyfill are driven from Mutation Observers
and so are async in cases where the spec calls for synchronous reactions. There
are some exceptions, like for `Document.importNode()` and `E... |
Most custom element reactions in the polyfill are driven from Mutation Observers
and so are async in cases where the spec calls for synchronous reactions. There
are some exceptions, like for `Document.importNode()` and `Element.setAttribute`.
To ensure that queued operations are complete, mostly useful for tests, you... | <|file_sep|>original/README.md
$ bower link webcomponentsjs
```
## Differences from Spec
Most custom element reactions in the polyfill are driven from Mutation Observers
and so are async in cases where the spec calls for synchronous reactions. There
are some exceptions, like for `Document.importNode()` and `E... | bc97ac2fe5282b7e089938c97d39a74e3041d49c | README.md | README.md | Markdown |
<|file_sep|>original/mkhtml.sh
make html COQDOCFLAGS="--no-index"
cd html
ln -s Bitset.bitset.html index.html
<|file_sep|>current/mkhtml.sh
make html COQDOCFLAGS="--no-index"
cd html
ln -s Bitset.bitset.html index.html
<|file_sep|>updated/mkhtml.sh | make html COQDOCFLAGS="--no-index"
cd html
cp Bitset.bitset.html index.html | <|file_sep|>original/mkhtml.sh
make html COQDOCFLAGS="--no-index"
cd html
ln -s Bitset.bitset.html index.html
<|file_sep|>current/mkhtml.sh
make html COQDOCFLAGS="--no-index"
cd html
ln -s Bitset.bitset.html index.html
<|file_sep|>updated/mkhtml.sh
make html COQDOCFLAGS="--no-index"
cd html
cp Bitset.bitset.html index.... | cef8fcbbc34bc92cc271d4de31988093390460d6 | mkhtml.sh | mkhtml.sh | Shell |
<|file_sep|>original/t/codingstd/case_sensitive_files.t
<|file_sep|>current/t/codingstd/case_sensitive_files.t
<|file_sep|>updated/t/codingstd/case_sensitive_files.t | #! perl -T
# Copyright (C) 2012, Parrot Foundation.
use strict;
use warnings;
use lib qw( . lib ../lib ../../lib );
use Test::More;
use Parrot::Distribution ();
=head1 NAME
t/codingstd/case_sensitive_files.t - Checks for name conflicts on case-insensitive filesystems
=head1 SYNOPSIS
# test all files
% pr... | <|file_sep|>original/t/codingstd/case_sensitive_files.t
<|file_sep|>current/t/codingstd/case_sensitive_files.t
<|file_sep|>updated/t/codingstd/case_sensitive_files.t
#! perl -T
# Copyright (C) 2012, Parrot Foundation.
use strict;
use warnings;
use lib qw( . lib ../lib ../../lib );
use Test::More;
use Parrot::Distr... | b5026c20f3f591ecdf8412e13e280314799c6f54 | t/codingstd/case_sensitive_files.t | t/codingstd/case_sensitive_files.t | Perl |
<|file_sep|>original/README.md
# Controller
Supported action responses:
1. `\ActiveCollab\Controller\Response\FileDownloadResponse` - streams a file download.
1. `\ActiveCollab\Controller\Response\StatusResponse` - returns a HTTP status, without response body.
1. `\ActiveCollab\Controller\Response\ViewResponse` - Ren... | # Controller
Supported action responses:
1. `\ActiveCollab\Controller\Response\FileDownloadResponse` - streams a file download.
1. `\ActiveCollab\Controller\Response\StatusResponse` - returns a HTTP status, without response body.
1. `\ActiveCollab\Controller\Response\ViewResponse` - Renders a particular view.
When w... | <|file_sep|>original/README.md
# Controller
Supported action responses:
1. `\ActiveCollab\Controller\Response\FileDownloadResponse` - streams a file download.
1. `\ActiveCollab\Controller\Response\StatusResponse` - returns a HTTP status, without response body.
1. `\ActiveCollab\Controller\Response\ViewResponse` - Ren... | 2bb3fd2789479b6bb4c7c8a86a6ad79556be2299 | README.md | README.md | Markdown |
<|file_sep|>original/README.md
# Azuria - A Proxer.Me API in .NET (unofficial)
Master | Coverage | NuGet
------ | -------- | -----
 | [
Master | Coverage | NuGet
------ | -------- | -----
 | [
Master | Coverage | NuGet
------ | -------- | -----
 | [);
http = require("http");
sys = require("sys");
PORT = 8891;
body = "hello world\n";
server = http.createServer(function (req, res) {
res.sendHeader(200, {
"Content-Length": body.length,
"Content-Type": "text/plain",
});
res.send... | <|file_sep|>original/test/mjsunit/test-keep-alive.js
<|file_sep|>current/test/mjsunit/test-keep-alive.js
<|file_sep|>updated/test/mjsunit/test-keep-alive.js
// This test requires the program "ab"
process.mixin(require("./common"));
http = require("http");
sys = require("sys");
PORT = 8891;
body = "hello world\n";
se... | b833aa48e93095896448d1bf8bf998256a5567ee | test/mjsunit/test-keep-alive.js | test/mjsunit/test-keep-alive.js | JavaScript |
<|file_sep|>original/app/controllers/messages_controller.rb
message.guide = current_guide
message.traveler =
elsif current_traveler
message.guide =
message.traveler = current_traveler
else
redirect_to conversations_path
alert("Your not signed in to chat with a traveler or gui... | # message.guide = current_guide
# message.traveler =
# elsif current_traveler
# message.guide =
# message.traveler = current_traveler
# else
# redirect_to conversations_path
# alert("Your not signed in to chat with a traveler or guide.")
# end
#
# if message.save
# ... | <|file_sep|>original/app/controllers/messages_controller.rb
message.guide = current_guide
message.traveler =
elsif current_traveler
message.guide =
message.traveler = current_traveler
else
redirect_to conversations_path
alert("Your not signed in to chat with a traveler or gui... | a724029915da5c29e4a375c7b80a8069a8bc79e6 | app/controllers/messages_controller.rb | app/controllers/messages_controller.rb | Ruby |
<|file_sep|>original/README.md
# Travis-Build-Tools
Creates a Ruby Gem travis-build-tools.
### Usage
Version is created by joining the the number of the release branch number with the build number and then a zero. `(release.number).(build number).0`.
#!/usr/bin/ruby
require 'travis-build-tools'
VERSION = Tra... | # Travis-Build-Tools
Creates a Ruby Gem travis-build-tools.
### Usage
Version is created by joining the the number of the release branch number with the build number and then a zero. `(release.number).(build number).0`.
#!/usr/bin/ruby
require 'travis-build-tools'
VERSION = TravisBuildTools::Version #R... | <|file_sep|>original/README.md
# Travis-Build-Tools
Creates a Ruby Gem travis-build-tools.
### Usage
Version is created by joining the the number of the release branch number with the build number and then a zero. `(release.number).(build number).0`.
#!/usr/bin/ruby
require 'travis-build-tools'
VERSION = Tra... | b8d6850a290203dc277141069c5ada66075d374b | README.md | README.md | Markdown |
<|file_sep|>original/app/views/lists/show.html.erb
<tr>
<td>
<%= item.name %>
</td>
<td>
<%= item.store.name %>
</td>
<td><%= localize(item.updated_at, format: :long) %></td>
<td>
<td class="col-md-1"><%= form_tag edit_list_item_path(@list, item), method:... | <tr>
<td>
<%= item.name %>
</td>
<td>
<%= item.store.name %>
</td>
<td><%= localize(item.updated_at, format: :long) %></td>
<td>
<td class="col-md-1"><%= form_tag edit_list_item_path(@list, item), method: :get, class: "form-inline" do %>
<%= sub... | <|file_sep|>original/app/views/lists/show.html.erb
<tr>
<td>
<%= item.name %>
</td>
<td>
<%= item.store.name %>
</td>
<td><%= localize(item.updated_at, format: :long) %></td>
<td>
<td class="col-md-1"><%= form_tag edit_list_item_path(@list, item), method:... | 8eb9eed9867429e70a2bc92ac2e71025f8681710 | app/views/lists/show.html.erb | app/views/lists/show.html.erb | HTML+ERB |
<|file_sep|>original/README.md
mfile
=====
Ancient dirt-simple database applicaton gets a new lease on life
<b>mfile</b> is an old database application I wrote many moons ago in
C for tracking paper and electronic files. This project involves
completely rewriting the application in Erlang using the Chicago Boss
web f... | mfile
=====
Ancient dirt-simple database applicaton gets a new lease on life
<b>mfile</b> is an old database application I wrote many moons ago in
C for tracking paper and electronic files. This project involves
completely rewriting the application in Erlang using the Chicago Boss
web framework so it runs in a browse... | <|file_sep|>original/README.md
mfile
=====
Ancient dirt-simple database applicaton gets a new lease on life
<b>mfile</b> is an old database application I wrote many moons ago in
C for tracking paper and electronic files. This project involves
completely rewriting the application in Erlang using the Chicago Boss
web f... | 7ceab54cdaf38d7ac00a3c15dcfbbe1225a666c7 | README.md | README.md | Markdown |
<|file_sep|>original/airflow/www/templates/airflow/version.html
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#}
{% ex... | # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#}
{% extends "airflow/master.html" %}
{% block body %}
{{ super() ... | <|file_sep|>original/airflow/www/templates/airflow/version.html
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#}
{% ex... | 829755f41852610c87177174b4f5a9f51601df14 | airflow/www/templates/airflow/version.html | airflow/www/templates/airflow/version.html | HTML |
<|file_sep|>original/README.md
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* PHP: 5.4
* Python: 2.7, 3.3
* Ruby: 1.8, 1.9
## Note
These packages should be built using mock and the latest version of Fedora.
## License
This work is licensed under the MIT Li... |
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* PHP: 5.4
* Python: 2.7, 3.3
* Ruby: 1.8, 1.9
## Note
These packages should be built using mock and the latest version of Fedora.
## License
This work is licensed under the MIT License (see the LICENSE file).
Some packages were derived from spec files found ... | <|file_sep|>original/README.md
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* PHP: 5.4
* Python: 2.7, 3.3
* Ruby: 1.8, 1.9
## Note
These packages should be built using mock and the latest version of Fedora.
## License
This work is licensed under the MIT Li... | 99580eafdbe603250f823affb8c423f991dc9621 | README.md | README.md | Markdown |
<|file_sep|>original/dribdat/boxout/dribdat.py
<span>{{event_name}}</span>
<i class="phase">{{phase}}</i>
</div>
<p>{{summary}}</p>
</div>
"""
def box_project(url):
"""Create a OneBox for local projects."""
project_id = url.split('/')[-1]
if not project_id:
return None
... | <span>{{event_name}}</span>
<i class="phase">{{phase}}</i>
</div>
<p>{{summary}}</p>
</div>
"""
def box_project(url):
"""Create a OneBox for local projects."""
project_id = url.split('/')[-1].split('#')[0]
if not project_id or not project_id.isnumeric():
return None
fro... | <|file_sep|>original/dribdat/boxout/dribdat.py
<span>{{event_name}}</span>
<i class="phase">{{phase}}</i>
</div>
<p>{{summary}}</p>
</div>
"""
def box_project(url):
"""Create a OneBox for local projects."""
project_id = url.split('/')[-1]
if not project_id:
return None
... | b66171d0b3d8cdf361f4341976d7eb0830fb38ce | dribdat/boxout/dribdat.py | dribdat/boxout/dribdat.py | Python |
<|file_sep|>original/models/Request.js
'0_2_1': Number,
'0_3': Number,
'0_3_1': Number,
'0_3_2': Number,
'0_4': Number,
'0_4_1': Number,
'0_5': Number,
'0_6': Number,
'0_7': Number,
'0_8': Number,
'1_0': Number,
'1_1': Number,
'1_2': Number,
'1_3': Number,
'bandwidth': Number
});
requestSc... | '0_3': Number,
'0_3_1': Number,
'0_3_2': Number,
'0_4': Number,
'0_4_1': Number,
'0_5': Number,
'0_6': Number,
'0_7': Number,
'0_8': Number,
'1_0': Number,
'1_1': Number,
'1_2': Number,
'1_3': Number,
'1_4': Number,
'bandwidth': Number
});
requestSchema.index({date: 1}, {unique: true});
c... | <|file_sep|>original/models/Request.js
'0_2_1': Number,
'0_3': Number,
'0_3_1': Number,
'0_3_2': Number,
'0_4': Number,
'0_4_1': Number,
'0_5': Number,
'0_6': Number,
'0_7': Number,
'0_8': Number,
'1_0': Number,
'1_1': Number,
'1_2': Number,
'1_3': Number,
'bandwidth': Number
});
requestSc... | 2ff5b0fd9b96bbb3c6fd23b142fa6d07258bacea | models/Request.js | models/Request.js | JavaScript |
<|file_sep|>Sources/FixedPoint.swift.diff
original:
updated:
import Clibsane
<|file_sep|>Sources/FixedPoint.swift.diff
original:
fileprivate let shift = Double(0b1 << 16)
updated:
fileprivate let shift = Double(0b1 << SANE_FIXED_SCALE_SHIFT)
<|file_sep|>Sources/FixedPoint.swift.diff
original:
extension Int32 {
update... | Converts a SANE fixed point number into a floating point number
- parameter shift: The shift value which `self` is divided by, defaults to 2^16
- returns: `self` as a floating point number
*/
func unfixed(by shift: Double = shift) -> Double {
return Double(self)/shift
}
}
extension Double {
/*... | <|file_sep|>Sources/FixedPoint.swift.diff
original:
updated:
import Clibsane
<|file_sep|>Sources/FixedPoint.swift.diff
original:
fileprivate let shift = Double(0b1 << 16)
updated:
fileprivate let shift = Double(0b1 << SANE_FIXED_SCALE_SHIFT)
<|file_sep|>Sources/FixedPoint.swift.diff
original:
extension Int32 {
update... | 0cb9470c8ac917ced5055ddcf437ee73185e0fb1 | Sources/FixedPoint.swift | Sources/FixedPoint.swift | Swift |
<|file_sep|>original/config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :json
<|file_sep|>c... | # Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :hybrid | <|file_sep|>original/config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :json
<|file_sep|>c... | ef2d44f3f284a37ceeaf798c8b4de6019483bb79 | config/initializers/cookies_serializer.rb | config/initializers/cookies_serializer.rb | Ruby |
<|file_sep|>original/ci-scripts/linux/travis-install.sh
sudo add-apt-repository --yes ppa:beineri/opt-qt591-trusty
sudo add-apt-repository --yes ppa:achadwick/mypaint-testing
sudo apt-get update
sudo apt-get install -y liblzo2-dev liblz4-dev libfreetype6-dev libpng-dev libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev lib... | sudo add-apt-repository --yes ppa:beineri/opt-qt591-trusty
sudo add-apt-repository --yes ppa:achadwick/mypaint-testing
sudo apt-get update
sudo apt-get install -y liblzo2-dev liblz4-dev libfreetype6-dev libpng-dev libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev libglew-dev freeglut3-dev qt59script libsuperlu3-dev qt59sv... | <|file_sep|>original/ci-scripts/linux/travis-install.sh
sudo add-apt-repository --yes ppa:beineri/opt-qt591-trusty
sudo add-apt-repository --yes ppa:achadwick/mypaint-testing
sudo apt-get update
sudo apt-get install -y liblzo2-dev liblz4-dev libfreetype6-dev libpng-dev libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev lib... | af4a780544efb153fdeb72a3017a9d7f89a16852 | ci-scripts/linux/travis-install.sh | ci-scripts/linux/travis-install.sh | Shell |
<|file_sep|>package.json.diff
original:
"repository": "ZDroid/percent",
updated:
"repository": "zdroid/percent",
<|file_sep|>original/package.json
"calculation",
"calculator"
],
"version": "1.1.1",
"license": "MIT",
"repository": "ZDroid/percent",
"files": [
"index.js",
"LICENSE.md"
],
... | "calculation",
"calculator"
],
"version": "1.1.1",
"license": "MIT",
"repository": "zdroid/percent",
"files": [
"index.js",
"LICENSE.md"
],
"scripts": {
"test": "mocha && eslint *.js"
},
"engines": {
"node": ">=4"
},
"devDependencies": {
"eslint": "3.5.x",
"mocha": ... | <|file_sep|>package.json.diff
original:
"repository": "ZDroid/percent",
updated:
"repository": "zdroid/percent",
<|file_sep|>original/package.json
"calculation",
"calculator"
],
"version": "1.1.1",
"license": "MIT",
"repository": "ZDroid/percent",
"files": [
"index.js",
"LICENSE.md"
],
... | 5c212b0ebac66d80aa7f04ea8bc1e552989168df | package.json | package.json | JSON |
<|file_sep|>package.json.diff
original:
updated:
"jspmNodeConversion": false,
<|file_sep|>original/package.json
"babel": "^5.4.7",
"babel-eslint": "^3.1.19",
"browserify": "^10.2.3",
"eslint": "^0.24.0",
"exorcist": "^0.4.0",
"jsdoc": "^3.3.2"
},
"dependencies": {
"angular": "1.4.x"... | "exorcist": "^0.4.0",
"jsdoc": "^3.3.2"
},
"dependencies": {
"angular": "1.4.x",
"angular-ui-router": "0.2.x",
"jquery": "*",
"mr-util": "0.x.x"
},
"jspm": {
"jspmNodeConversion": false,
"format": "es6",
"main": "src/index.js",
"dependencies": {
"angular": "jspm:ang... | <|file_sep|>package.json.diff
original:
updated:
"jspmNodeConversion": false,
<|file_sep|>original/package.json
"babel": "^5.4.7",
"babel-eslint": "^3.1.19",
"browserify": "^10.2.3",
"eslint": "^0.24.0",
"exorcist": "^0.4.0",
"jsdoc": "^3.3.2"
},
"dependencies": {
"angular": "1.4.x"... | 1a8716965837559749b8b2e524ea3b1f7e051527 | package.json | package.json | JSON |
<|file_sep|>original/core/db/migrate/20140723175431_create_comable_orders.rb
class CreateComableOrders < ActiveRecord::Migration
def change
create_table :comable_orders do |t|
t.references :user
t.string :guest_token
t.string :code
t.string :email
t.integer :shipment_fee, null: false... | class CreateComableOrders < ActiveRecord::Migration
def change
create_table :comable_orders do |t|
t.references :user
t.string :guest_token
t.string :code
t.string :email
t.integer :shipment_fee, null: false, default: 0
t.references :payment_method
t.integer :total_price
... | <|file_sep|>original/core/db/migrate/20140723175431_create_comable_orders.rb
class CreateComableOrders < ActiveRecord::Migration
def change
create_table :comable_orders do |t|
t.references :user
t.string :guest_token
t.string :code
t.string :email
t.integer :shipment_fee, null: false... | d7e10bf68bd25ab9488be2f40ed619741249171f | core/db/migrate/20140723175431_create_comable_orders.rb | core/db/migrate/20140723175431_create_comable_orders.rb | Ruby |
<|file_sep|>original/docs/install.rst
gateway doc.
* Reference the `billing` app in your settings `INSTALLED_APPS`.
Running the Test Suite
-----------------------
By default, the test suite is configured to run tests for all the gateways and
integrations::
python manage.py test billing
This might fail if you... | * Reference the `billing` app in your settings `INSTALLED_APPS`.
Running the Test Suite
-----------------------
By default, the test suite is configured to run tests for all the gateways and
integrations::
python manage.py test billing
This might fail if you have not configured (either the settings attributes ... | <|file_sep|>original/docs/install.rst
gateway doc.
* Reference the `billing` app in your settings `INSTALLED_APPS`.
Running the Test Suite
-----------------------
By default, the test suite is configured to run tests for all the gateways and
integrations::
python manage.py test billing
This might fail if you... | a7b49d72006f8e6bb72bed47d9e368cc5e75e123 | docs/install.rst | docs/install.rst | reStructuredText |
<|file_sep|>original/.travis.yml
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6059
- platform-tools
- android-25
- build-tools-25.0.1
- extra-android-support
- extra-android-m2repository
before_script:
- echo... | language: android
jdk:
- oraclejdk8
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6059
- platform-tools
- android-25
- build-tools-25.0.1
- extra-android-support
- extra-android-m2repository
before_script:
- echo no | android create avd --force ... | <|file_sep|>original/.travis.yml
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- tools # https://github.com/travis-ci/travis-ci/issues/6059
- platform-tools
- android-25
- build-tools-25.0.1
- extra-android-support
- extra-android-m2repository
before_script:
- echo... | 75e58b16f046e07c5479dcb17cc8498396cba515 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/appveyor.yml
image: Visual Studio 2019
configuration: Release
build_script:
- ps: ./Build.ps1
test: off
artifacts:
- path: artifacts/Serilog.*.nupkg
deploy:
- provider: NuGet
api_key:
secure: K6TcIFIyxBcDuZ5DL7bJC+fGwDo458q0SDh+ybLujGTddA/voxg2FMUtJQ7rTEbt
skip_symbols: true
on:
branc... | image: Visual Studio 2019
configuration: Release
build_script:
- ps: ./Build.ps1
test: off
artifacts:
- path: artifacts/Serilog.*.nupkg
deploy:
- provider: NuGet
api_key:
secure: K3/810hkTO6rd2AEHVkUQAadjGmDREus9k96QHu6hxrA1/wRTuAJemHMKtVVgIvf
skip_symbols: true
on:
branch: /^(master|dev)$/
- provider: Gi... | <|file_sep|>original/appveyor.yml
image: Visual Studio 2019
configuration: Release
build_script:
- ps: ./Build.ps1
test: off
artifacts:
- path: artifacts/Serilog.*.nupkg
deploy:
- provider: NuGet
api_key:
secure: K6TcIFIyxBcDuZ5DL7bJC+fGwDo458q0SDh+ybLujGTddA/voxg2FMUtJQ7rTEbt
skip_symbols: true
on:
branc... | 2f70f82882572ab0a2ac2c0b0901b85db5c8f238 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/docker-compose.yml
dev:
image: iojs:2
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
command: npm start
expose:
- "8080"
env_file: .env
environment:
- VIRTUAL_HOST=proxy.turbasen.privat
- VIRTUAL_PORT=8080
- NTB_ENV=api
<|file... | dev:
image: iojs:slim
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
command: npm start
expose:
- "8080"
env_file: .env
environment:
- VIRTUAL_HOST=proxy.turbasen.privat
- VIRTUAL_PORT=8080
- NTB_ENV=api | <|file_sep|>original/docker-compose.yml
dev:
image: iojs:2
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
command: npm start
expose:
- "8080"
env_file: .env
environment:
- VIRTUAL_HOST=proxy.turbasen.privat
- VIRTUAL_PORT=8080
- NTB_ENV=api
<|file... | 4869ef91c03a19153cb426eb10ffc00598b12237 | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>src/main/resources/provmetrics/psourcec.sparql.diff
original:
{
select ?nanopub ?directSource ?indirectSource ?primarySource ?primaryAgent where {
graph ?head {
?nanopub a np:Nanopublication .
?nanopub np:hasAssertion ?assertion .
?nanopub np:hasProvenance ?provenance .
... | prefix np: <http://www.nanopub.org/nschema#>
prefix prov: <http://www.w3.org/ns/prov#>
select (count(distinct ?primarySource) as ?primarySourceCount) where {
select ?primarySource where {
graph ?head {
?nanopub a np:Nanopublication .
?nanopub np:hasAssertion ?assertion .
?nanopub np:hasProvenan... | <|file_sep|>src/main/resources/provmetrics/psourcec.sparql.diff
original:
{
select ?nanopub ?directSource ?indirectSource ?primarySource ?primaryAgent where {
graph ?head {
?nanopub a np:Nanopublication .
?nanopub np:hasAssertion ?assertion .
?nanopub np:hasProvenance ?provenance .
... | b70703bff0d8d8acae9ed1eb9e34f2e4ea1eb79e | src/main/resources/provmetrics/psourcec.sparql | src/main/resources/provmetrics/psourcec.sparql | SPARQL |
<|file_sep|>original/bower.json
{
"name": "cmis-browser",
"description": "A web based CMIS repository browser",
"version": "0.0.1",
"homepage": "https://github.com/mikar/cmis-browser",
"license": "MIT",
"private": true,
"dependencies": {
"angular": "^1.4.0",
"angular-bootstrap": "0.13.3",
"ang... | "name": "cmis-browser",
"description": "A web based CMIS repository browser",
"version": "0.0.1",
"homepage": "https://github.com/mikar/cmis-browser",
"license": "MIT",
"private": true,
"dependencies": {
"angular": "^1.4.0",
"angular-bootstrap": "0.13.3",
"angular-filemanager": "~1.4.0",
"... | <|file_sep|>original/bower.json
{
"name": "cmis-browser",
"description": "A web based CMIS repository browser",
"version": "0.0.1",
"homepage": "https://github.com/mikar/cmis-browser",
"license": "MIT",
"private": true,
"dependencies": {
"angular": "^1.4.0",
"angular-bootstrap": "0.13.3",
"ang... | cc8ce5e0d2b80b97c4f2a2b3b3c142b55745196b | bower.json | bower.json | JSON |
<|file_sep|>original/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java
<|file_sep|>current/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java
<|file_sep|>updated/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java | package com.maddenabbott.jenny.command.help;
import com.maddenabbott.jenny.cli.Parameter;
import com.maddenabbott.jenny.cli.Summary;
import com.maddenabbott.jenny.command.Command;
@Summary("You can also get help with a specific template.")
public class TemplateHelpCommand implements Command {
@Parameter("the name o... | <|file_sep|>original/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java
<|file_sep|>current/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java
<|file_sep|>updated/src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java
package com.maddenabbott.jenny.c... | 6531e5be93d84a9e47208e9d2c5a314cb412a13c | src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java | src/main/java/com/maddenabbott/jenny/command/help/TemplateHelpCommand.java | Java |
<|file_sep|>original/spec/options_spec.rb
<|file_sep|>current/spec/options_spec.rb
<|file_sep|>updated/spec/options_spec.rb | require 'spec_helper'
require "braingasm/options"
module Braingasm
describe :handle_options do
it "translates command line options to Braingasm options" do
Braingasm.handle_options(:zero => true)
expect(Options[:eof]).to be 0
Braingasm.handle_options(:negative => true)
expect(Options[:eo... | <|file_sep|>original/spec/options_spec.rb
<|file_sep|>current/spec/options_spec.rb
<|file_sep|>updated/spec/options_spec.rb
require 'spec_helper'
require "braingasm/options"
module Braingasm
describe :handle_options do
it "translates command line options to Braingasm options" do
Braingasm.handle_options(... | 7f7a7776ef2c21e9d65d9a8b71232e115f44c216 | spec/options_spec.rb | spec/options_spec.rb | Ruby |
<|file_sep|>original/core/src/main/scala/shapeless/syntax/nat.scala
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package shapeless
package syntax
/**
* Carrier for `Nat` operati... | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package shapeless
package syntax
/**
* Carrier for `Nat` operations.
*
* @author Dale Wijnand
*/
final class NatOps[N <: Nat](n :... | <|file_sep|>original/core/src/main/scala/shapeless/syntax/nat.scala
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package shapeless
package syntax
/**
* Carrier for `Nat` operati... | aad808ab32e95e56d64ded7faaca9c083c5b61d2 | core/src/main/scala/shapeless/syntax/nat.scala | core/src/main/scala/shapeless/syntax/nat.scala | Scala |
<|file_sep|>salt/modules/mysql.py.diff
original:
def _connect():
updated:
def connect():
<|file_sep|>salt/modules/mysql.py.diff
original:
db = _connect()
updated:
db = connect()
<|file_sep|>original/salt/modules/mysql.py
cur = db.cursor()
cur.execute('SHOW STATUS')
for i in xrange(cur.rowcount):
... | cur = db.cursor()
cur.execute('SHOW STATUS')
for i in xrange(cur.rowcount):
row = cur.fetchone()
ret[row[0]] = row[1]
return ret
def version():
'''
Return the version of a MySQL server using the output
from the SELECT VERSION() query.
CLI Example:
salt '*' mysql.ver... | <|file_sep|>salt/modules/mysql.py.diff
original:
def _connect():
updated:
def connect():
<|file_sep|>salt/modules/mysql.py.diff
original:
db = _connect()
updated:
db = connect()
<|file_sep|>original/salt/modules/mysql.py
cur = db.cursor()
cur.execute('SHOW STATUS')
for i in xrange(cur.rowcount):
... | 2add786f3173754f95900e0027cd78934a454bcf | salt/modules/mysql.py | salt/modules/mysql.py | Python |
<|file_sep|>original/app/templates/scss/mixins.scss
border-#{$oposite-direction}-color: $color;
}
/*
* Breakpoint mixin for handeling min-width @media (inspired by http://codepen.io/chriscoyier/blog/codepens-css)
* Prints: @media only screen and (min-width: Xem) { ... }
*/
@mixin bp($breakpoint) {
$qry: nth(map-g... | border-#{$oposite-direction}-color: $color;
}
/*
* Breakpoint mixin for handeling min-width @media (inspired by http://codepen.io/chriscoyier/blog/codepens-css)
* Prints: @media only screen and (min-width: Xem) { ... }
*/
@mixin bp($breakpoint) {
$qry: nth(map-get($breakpoints, $breakpoint), 1);
@if ($qry == nu... | <|file_sep|>original/app/templates/scss/mixins.scss
border-#{$oposite-direction}-color: $color;
}
/*
* Breakpoint mixin for handeling min-width @media (inspired by http://codepen.io/chriscoyier/blog/codepens-css)
* Prints: @media only screen and (min-width: Xem) { ... }
*/
@mixin bp($breakpoint) {
$qry: nth(map-g... | da824d7a14155dafcd35f70f559253b615fb97f9 | app/templates/scss/mixins.scss | app/templates/scss/mixins.scss | SCSS |
<|file_sep|>original/example/thanos/thanos-ruler-service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-ruler
namespace: default
labels:
app: thanos-ruler
spec:
selector:
app: thanos-ruler
ports:
- name: grpc
port: 10901
targetPort: grpc
- name: http
port: 10902
targetPor... | apiVersion: v1
kind: Service
metadata:
name: thanos-ruler
namespace: default
labels:
app: thanos-ruler
spec:
selector:
app: thanos-ruler
ports:
- name: grpc
port: 10901
targetPort: grpc
- name: http
port: 10902
targetPort: web | <|file_sep|>original/example/thanos/thanos-ruler-service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-ruler
namespace: default
labels:
app: thanos-ruler
spec:
selector:
app: thanos-ruler
ports:
- name: grpc
port: 10901
targetPort: grpc
- name: http
port: 10902
targetPor... | cf2414edcae8653bc3d8f63cc6828fc726840893 | example/thanos/thanos-ruler-service.yaml | example/thanos/thanos-ruler-service.yaml | YAML |
<|file_sep|>original/Cargo.toml
[package]
name = "lossy"
version = "0.0.1"
authors = ["Liam Marshall <liam@cpan.org>"]
[lib]
crate-type = ["staticlib"]
[dependencies]
rlibc = "0.1.4"
<|file_sep|>current/Cargo.toml
[package]
name = "lossy"
version = "0.0.1"
authors = ["Liam Marshall <liam@cpan.org>"]
[lib]
crate-type... | [package]
name = "lossy"
version = "0.0.1"
authors = ["Liam Marshall <liam@cpan.org>"]
[lib]
crate-type = ["staticlib"]
[dependencies]
rlibc = "0.1.4"
spin = "0.3.4"
| <|file_sep|>original/Cargo.toml
[package]
name = "lossy"
version = "0.0.1"
authors = ["Liam Marshall <liam@cpan.org>"]
[lib]
crate-type = ["staticlib"]
[dependencies]
rlibc = "0.1.4"
<|file_sep|>current/Cargo.toml
[package]
name = "lossy"
version = "0.0.1"
authors = ["Liam Marshall <liam@cpan.org>"]
[lib]
crate-type... | 46c3140c3f14e68f89ec32ab8a9260be6af98033 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>src/scss/custom.scss.diff
original:
updated:
.nav-link {
font-weight: bold;
}
<|file_sep|>src/scss/custom.scss.diff
original:
color: #999;
updated:
color: #000000;
<|file_sep|>src/scss/custom.scss.diff
original:
color: #666;
updated:
color: #000000;
<|file_sep|>original/src/scss/custom.scss
.bo... |
.poster {
}
.bodycopy {
color: #000000;
}
.video-title {
color: #000000;
}
// Responsive Typography
html {
font-size: 0.6rem;
}
@include media-breakpoint-up(sm) {
html { | <|file_sep|>src/scss/custom.scss.diff
original:
updated:
.nav-link {
font-weight: bold;
}
<|file_sep|>src/scss/custom.scss.diff
original:
color: #999;
updated:
color: #000000;
<|file_sep|>src/scss/custom.scss.diff
original:
color: #666;
updated:
color: #000000;
<|file_sep|>original/src/scss/custom.scss
.bo... | 1d51f80c3fce45363300e330f9c38dd6d50d70f8 | src/scss/custom.scss | src/scss/custom.scss | SCSS |
<|file_sep|>original/graphics-by-opengl-android/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.super2k.nucleus.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion... | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.super2k.nucleus.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="23" />
<application
android:allowBackup="true"
... | <|file_sep|>original/graphics-by-opengl-android/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.super2k.nucleus.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion... | 193e12baa3204210f36b5b23174c5d8aab2a6eab | graphics-by-opengl-android/AndroidManifest.xml | graphics-by-opengl-android/AndroidManifest.xml | XML |
<|file_sep|>original/Cargo.toml
[workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
[profile.bench]
lto = true
<|file_sep|>current/Cargo.toml
[workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
[profile.bench]
lto = true
<|file_sep|>updated/Cargo.toml | [workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
debug = true
[profile.bench]
lto = true | <|file_sep|>original/Cargo.toml
[workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
[profile.bench]
lto = true
<|file_sep|>current/Cargo.toml
[workspace]
members = [
"rsvg_internals",
]
[profile.release]
lto = true
[profile.bench]
lto = true
<|file_sep|>updated/Cargo.toml
[workspace]
me... | 8215d7f1f581f0aaa317cccc3e974c61d1a6ad84 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>query/query_runner.pl.diff
original:
compound_name_arguments(OneBinding, (=), [VarName, Value]),
updated:
OneBinding=..[(=), VarName, Value],
<|file_sep|>original/query/query_runner.pl
prettyWriteOneResult([]):-
write('yes').
prettyWriteOneResult([OneBinding]):-
writeBinding(OneBinding).
prettyWriteO... |
prettyWriteOneResult([]):-
write('yes').
prettyWriteOneResult([OneBinding]):-
writeBinding(OneBinding).
prettyWriteOneResult([OneBinding | OneResult]):-
OneResult \= [],
writeBinding(OneBinding),
writeln(','),
prettyWriteOneResult(OneResult).
writeBinding(OneBinding):-
OneBinding=..[(=), VarName, Value],
wr... | <|file_sep|>query/query_runner.pl.diff
original:
compound_name_arguments(OneBinding, (=), [VarName, Value]),
updated:
OneBinding=..[(=), VarName, Value],
<|file_sep|>original/query/query_runner.pl
prettyWriteOneResult([]):-
write('yes').
prettyWriteOneResult([OneBinding]):-
writeBinding(OneBinding).
prettyWriteO... | 0844eacd7102338c752418efd0230eda052e5445 | query/query_runner.pl | query/query_runner.pl | Perl |
<|file_sep|>original/app/controllers/users/users.authorization.server.controller.js
/**
* User middleware
*/
exports.userByID = function(req, res, next, id) {
User.findOne({
_id: id
}).exec(function(err, user) {
if (err) return next(err);
if (!user) return next(new Error('Failed to load User ' + id));
req.... |
/**
* User middleware
*/
exports.userByID = function(req, res, next, id) {
User.findOne({
_id: id
}).exec(function(err, user) {
if (err) return next(err);
if (!user) return next(new Error('Failed to load User ' + id));
req.profile = user;
next();
});
};
/**
* Require login routing middleware
*/
expor... | <|file_sep|>original/app/controllers/users/users.authorization.server.controller.js
/**
* User middleware
*/
exports.userByID = function(req, res, next, id) {
User.findOne({
_id: id
}).exec(function(err, user) {
if (err) return next(err);
if (!user) return next(new Error('Failed to load User ' + id));
req.... | 2919ccd7e54248ae88a92bfa0578ec067e4435fa | app/controllers/users/users.authorization.server.controller.js | app/controllers/users/users.authorization.server.controller.js | JavaScript |
<|file_sep|>original/package.json
"debug": "2.1.1",
"email-regex": "1.0.0",
"express": "4.11.0",
"opentype.js": "0.4.4",
"socket.io": "1.3.5",
"superagent": "0.21.0",
"vd": "0.1.0"
},
"devDependencies": {
"mocha": "2.2.4",
"nock": "0.48.1",
"supertest": "0.15.0"
},
"main"... | "email-regex": "1.0.0",
"express": "4.11.0",
"opentype.js": "0.4.4",
"socket.io": "1.3.5",
"superagent": "0.21.0",
"vd": "0.1.0"
},
"devDependencies": {
"mocha": "2.2.4",
"nock": "0.48.1",
"supertest": "0.15.0"
},
"main": "./node/index",
"bin": {
"slackin": "./bin/slack... | <|file_sep|>original/package.json
"debug": "2.1.1",
"email-regex": "1.0.0",
"express": "4.11.0",
"opentype.js": "0.4.4",
"socket.io": "1.3.5",
"superagent": "0.21.0",
"vd": "0.1.0"
},
"devDependencies": {
"mocha": "2.2.4",
"nock": "0.48.1",
"supertest": "0.15.0"
},
"main"... | 6730c2983a5f64c1a9c9485994f5a51f6e6bf288 | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "4"
- "stable"
sudo: false
script: "gulp test"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "4"
- "stable"
sudo: false
script: "gulp test"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "stable"
sudo: false
script: "gulp test" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "4"
- "stable"
sudo: false
script: "gulp test"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "4"
- "stable"
sudo: false
script: "gulp test"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "stable"
sudo: false
script: "gu... | 638b6ca25d1cbff5c41f6ad8d01d3edcc8f4529c | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/Item_WrapInstance.cc.diff
original:
NSLog(@"%@", item);
updated:
//NSLog(@"%@", [item persistentID]);
<|file_sep|>src/Item_WrapInstance.cc.diff
original:
NSLog(@"Class: %@", className);
updated:
//NSLog(@"Class: %@", className);
<|file_sep|>src/Item_WrapInstance.cc.diff
original:
updated:
} e... | return scope.Close(Null());
}
NSString* className = NSStringFromClass([item class]);
//NSLog(@"Class: %@", className);
Local<Object> jsItem;
if ([className isEqualToString:@"ITunesURLTrack" ]) {
jsItem = url_track_constructor_template->GetFunction()->NewInstance();
} else if ([className isEqualToSt... | <|file_sep|>src/Item_WrapInstance.cc.diff
original:
NSLog(@"%@", item);
updated:
//NSLog(@"%@", [item persistentID]);
<|file_sep|>src/Item_WrapInstance.cc.diff
original:
NSLog(@"Class: %@", className);
updated:
//NSLog(@"Class: %@", className);
<|file_sep|>src/Item_WrapInstance.cc.diff
original:
updated:
} e... | cfe562a7adba0d35502f7b4586b8c73f65c1f28f | src/Item_WrapInstance.cc | src/Item_WrapInstance.cc | C++ |
<|file_sep|>.travis.yml.diff
original:
- PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.1.0"
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm: $RUBY_VERSION
env:
- PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> ... | language: ruby
rvm: $RUBY_VERSION
env:
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> 4.9.0" RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> 5.5.0" RUBY_VERSION="2.4.0"
- PUPPET_VERSION="~> 6.13.0" RUBY_VERSION="2.7.0"
script: "rake test"
sudo: false | <|file_sep|>.travis.yml.diff
original:
- PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.1.0"
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm: $RUBY_VERSION
env:
- PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes RUBY_VERSION="2.1.0"
- PUPPET_VERSION="~> ... | 6a8d3276e9ad6264e29997ac90301e538b7578b0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/core-events/src/index.ts.diff
original:
export interface CoreEvents {
CHANNEL_CREATED: string;
GET_CURRENT_STORY: string;
SET_CURRENT_STORY: string;
GET_STORIES: string;
SET_STORIES: string;
SELECT_STORY: string;
APPLY_SHORTCUT: string;
STORY_ADDED: string;
FORCE_RE_RENDER: string;
R... | enum events {
CHANNEL_CREATED = 'channelCreated',
GET_CURRENT_STORY = 'getCurrentStory',
SET_CURRENT_STORY = 'setCurrentStory',
GET_STORIES = 'getStories',
SET_STORIES = 'setStories',
SELECT_STORY = 'selectStory',
APPLY_SHORTCUT = 'applyShortcut',
STORY_ADDED = 'storyAdded',
FORCE_RE_RENDER = 'forceRe... | <|file_sep|>lib/core-events/src/index.ts.diff
original:
export interface CoreEvents {
CHANNEL_CREATED: string;
GET_CURRENT_STORY: string;
SET_CURRENT_STORY: string;
GET_STORIES: string;
SET_STORIES: string;
SELECT_STORY: string;
APPLY_SHORTCUT: string;
STORY_ADDED: string;
FORCE_RE_RENDER: string;
R... | 008ae8a0a70f09f43d328d0ab39e58e86946e32f | lib/core-events/src/index.ts | lib/core-events/src/index.ts | TypeScript |
<|file_sep|>original/kernel.conf.js
module.exports = {
base: './lively',
init: '/src/init.js',
initsw: '/src/init-sw.js'
}
<|file_sep|>current/kernel.conf.js
module.exports = {
base: './lively',
init: '/src/init.js',
initsw: '/src/init-sw.js'
}
<|file_sep|>updated/kernel.conf.js | module.exports = {
base: './lively',
init: '/init.js',
initsw: '/init-sw.js'
} | <|file_sep|>original/kernel.conf.js
module.exports = {
base: './lively',
init: '/src/init.js',
initsw: '/src/init-sw.js'
}
<|file_sep|>current/kernel.conf.js
module.exports = {
base: './lively',
init: '/src/init.js',
initsw: '/src/init-sw.js'
}
<|file_sep|>updated/kernel.conf.js
module.exports = {
base: '... | df01c8ad42f556dc2a7e7240fbf763b72737d1a8 | kernel.conf.js | kernel.conf.js | JavaScript |
<|file_sep|>original/list.h
#include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
ListNode* ListNode_Create(void *);
void ListNode_Destroy(ListNode* n);
ListNode* List_Sear... | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
ListNode* ListNode_Create(void *);
void ListNode_Destroy(ListNode* n);
ListNode* List_Search(List* l, void* k, int (f)... | <|file_sep|>original/list.h
#include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
ListNode* ListNode_Create(void *);
void ListNode_Destroy(ListNode* n);
ListNode* List_Sear... | 2b40e170deeb97055d4a1ffb27de0ec38c212712 | list.h | list.h | C |
<|file_sep|>original/jboss-remoting/src/test/java/org/jboss/remoting3/test/InvocationTestObject.java
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRAN... | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.remoting3.test;
import java.io.Serializable;
public final class InvocationTestObject implements Serializable {
private static final long serialVersionUID = 72284... | <|file_sep|>original/jboss-remoting/src/test/java/org/jboss/remoting3/test/InvocationTestObject.java
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRAN... | 48b9dc9566971a0b07f3c9a801a7324c019cf3c3 | jboss-remoting/src/test/java/org/jboss/remoting3/test/InvocationTestObject.java | jboss-remoting/src/test/java/org/jboss/remoting3/test/InvocationTestObject.java | Java |
<|file_sep|>original/development/server/server.spec.js
describe('GET /', function() {
it('respond with json', function(done) {
request(application.app)
.get('/')
.set('Accept', 'application/json')
.expect('Content-Type', /ht... | it('respond with json', function(done) {
request(application.app)
.get('/')
.set('Accept', 'application/json')
.expect('Content-Type', /html/)
.expect(200, done);
});
});
describe('Ru... | <|file_sep|>original/development/server/server.spec.js
describe('GET /', function() {
it('respond with json', function(done) {
request(application.app)
.get('/')
.set('Accept', 'application/json')
.expect('Content-Type', /ht... | 22652ea7e43046e3c8c10d48d6b1e418702820ab | development/server/server.spec.js | development/server/server.spec.js | JavaScript |
<|file_sep|>original/.github/workflows/ci.yml
on: [pull_request, push]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
# Temporarily pinning to a specific nightly until
# https://github.com/rust-lang/rust/issues/71612
# Afterwards this can be:
# channel: [stable, n... | on: [pull_request, push]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
channel: [stable, nightly]
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
- name: Select Rust channel
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix... | <|file_sep|>original/.github/workflows/ci.yml
on: [pull_request, push]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
# Temporarily pinning to a specific nightly until
# https://github.com/rust-lang/rust/issues/71612
# Afterwards this can be:
# channel: [stable, n... | af7e3a3417b37a5afb7cb02d17507232ac7a8e4d | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/package.json
"config"
],
"author": "Philipp Scheit <p.scheit@ps-webforge.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/webforge-labs/requirejs-config-file/issues"
},
"devDependencies": {
"chai": "~1.7.2",
"grunt": "~0.4.1",
"grunt-release": "~0.5.1",
... | "config"
],
"author": "Philipp Scheit <p.scheit@ps-webforge.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/webforge-labs/requirejs-config-file/issues"
},
"devDependencies": {
"chai": "~1.7.2",
"grunt": "~0.4.1",
"grunt-release": "~0.5.1",
"grunt-contrib-jshint": "~0.6.... | <|file_sep|>original/package.json
"config"
],
"author": "Philipp Scheit <p.scheit@ps-webforge.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/webforge-labs/requirejs-config-file/issues"
},
"devDependencies": {
"chai": "~1.7.2",
"grunt": "~0.4.1",
"grunt-release": "~0.5.1",
... | fe28c1d9f5d3194f2f1d457543be1373ffce629b | package.json | package.json | JSON |
<|file_sep|>original/.delivery/config.json
"version": "2",
"build_cookbook": {
"name": "delivery_rust",
"path": "cookbooks/delivery_rust"
},
"skip_phases": [
"lint",
"quality",
"security",
"smoke",
"provision",
"deploy",
"functional"
],
"... | "quality",
"security",
"smoke",
"provision",
"deploy",
"functional"
],
"build_nodes": {
"default" : ["name:builder*.shd.chef.co"],
"unit" : [{"query": "name:builder*.shd.chef.co AND platform_family:debian",
"description": "Deb... | <|file_sep|>original/.delivery/config.json
"version": "2",
"build_cookbook": {
"name": "delivery_rust",
"path": "cookbooks/delivery_rust"
},
"skip_phases": [
"lint",
"quality",
"security",
"smoke",
"provision",
"deploy",
"functional"
],
"... | e989139379d1b8350b04c1874c994cf11da769c8 | .delivery/config.json | .delivery/config.json | JSON |
<|file_sep|>original/templates/data/deployment/listener/index.php
switch($repo) {
// {% for repo in autodeploy_dynamic_deploy_repo_names %}
case '{{ repo }}':
ansibleExec('{{ repo }}');
break;
// {% endfor%}
}
// {% else %}
echo shell_exec('/usr/local/bin/ansible-playbook /data/depl... | switch($repo) {
// {% for repo in autodeploy_dynamic_deploy_repo_names %}
case '{{ repo }}':
ansibleExec('{{ repo }}');
break;
// {% endfor%}
}
// {% else %}
# Set PYTHONUNBUFFERED environment variable, so that the output from ansible isn't buffered
putenv("PYTHONUNBUFFERED=1");
e... | <|file_sep|>original/templates/data/deployment/listener/index.php
switch($repo) {
// {% for repo in autodeploy_dynamic_deploy_repo_names %}
case '{{ repo }}':
ansibleExec('{{ repo }}');
break;
// {% endfor%}
}
// {% else %}
echo shell_exec('/usr/local/bin/ansible-playbook /data/depl... | 6cc24400837fa667196e6a3a9772ab113b51711e | templates/data/deployment/listener/index.php | templates/data/deployment/listener/index.php | PHP |
<|file_sep|>README.md.diff
original:
updated:
~~~puppet
<|file_sep|>original/README.md
git clone https://github.com/andymillar/puppet-netconsole.git /etc/puppet/modules/netconsole
Parameters
----------
* localport: The local port number that the netconsole module will use.
* dev: The ethernet device to send co... | Parameters
----------
* localport: The local port number that the netconsole module will use.
* dev: The ethernet device to send console messages out of (only set this if it can't be automatically determined).
* syslogaddr: The IP address of the remote syslog server to send messages to.
* syslogport: The liste... | <|file_sep|>README.md.diff
original:
updated:
~~~puppet
<|file_sep|>original/README.md
git clone https://github.com/andymillar/puppet-netconsole.git /etc/puppet/modules/netconsole
Parameters
----------
* localport: The local port number that the netconsole module will use.
* dev: The ethernet device to send co... | 8cb066cd5f3254b5ee2e39d71eb5b5cedd25f6f3 | README.md | README.md | Markdown |
<|file_sep|>original/sensu/plugins/check-mcelog.sh
#!/bin/bash
# Queries the running mcelog daemon for accumulated errors.
# by Ulysses Kanigel
trap 'exit 1' ERR
if mcelog --client | grep total | grep -v "0 total"; then
echo "mcelog reports memory errors"
exit 2
fi
exit 0
<|file_sep|>current/sensu/plugins/check-mc... | #!/bin/bash
# Queries the running mcelog daemon for accumulated errors.
# by Ulysses Kanigel
while getopts 'z:' OPT; do
case $OPT in
z) CRITICALITY=$OPTARG;;
esac
done
CRITICALITY=${CRITICALITY:-critical}
trap 'exit 1' ERR
if mcelog --client | grep total | grep -v "0 total"; then
echo "mcelog reports memo... | <|file_sep|>original/sensu/plugins/check-mcelog.sh
#!/bin/bash
# Queries the running mcelog daemon for accumulated errors.
# by Ulysses Kanigel
trap 'exit 1' ERR
if mcelog --client | grep total | grep -v "0 total"; then
echo "mcelog reports memory errors"
exit 2
fi
exit 0
<|file_sep|>current/sensu/plugins/check-mc... | c77b1bf3be9e2eb4cd8001a9767d9a4f9908821f | sensu/plugins/check-mcelog.sh | sensu/plugins/check-mcelog.sh | Shell |
<|file_sep|>original/plugins/virsh/defaults/topology/nodes/hcicephall.yml
<|file_sep|>current/plugins/virsh/defaults/topology/nodes/hcicephall.yml
<|file_sep|>updated/plugins/virsh/defaults/topology/nodes/hcicephall.yml | name: hcicephall
prefix: null
cpu: "8"
cpumodel: "host-model"
memory: "32768"
swap: "0"
deploy_os: false
os:
type: "linux"
variant: "rhel7"
disks:
disk1:
import_url: null
path: null
dev: "/dev/vda"
size: "15G"
cache: "unsafe"
preallocation: "metadata"
disk... | <|file_sep|>original/plugins/virsh/defaults/topology/nodes/hcicephall.yml
<|file_sep|>current/plugins/virsh/defaults/topology/nodes/hcicephall.yml
<|file_sep|>updated/plugins/virsh/defaults/topology/nodes/hcicephall.yml
name: hcicephall
prefix: null
cpu: "8"
cpumodel: "host-model"
memory: "32768"
swap: "0"
deploy_os:... | 22c979575a9d648bd87c284b2b6fffe9a08b9e26 | plugins/virsh/defaults/topology/nodes/hcicephall.yml | plugins/virsh/defaults/topology/nodes/hcicephall.yml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.