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/.github/workflows/deep-classifier-scraper.yml
name: "Deep Classifier: Scraper"
on:
schedule:
- cron: 0 0 15 * * # 15th of the month
repository_dispatch:
types: [trigger-deep-classifier-scraper]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
u... | name: "Deep Classifier: Scraper"
on:
schedule:
- cron: 0 0 15 * * # 15th of the month
workflow_dispatch:
repository_dispatch:
types: [trigger-deep-classifier-scraper]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
... | <|file_sep|>original/.github/workflows/deep-classifier-scraper.yml
name: "Deep Classifier: Scraper"
on:
schedule:
- cron: 0 0 15 * * # 15th of the month
repository_dispatch:
types: [trigger-deep-classifier-scraper]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
u... | 921fad0d62ac6ac6397c757217f8c223986b609a | .github/workflows/deep-classifier-scraper.yml | .github/workflows/deep-classifier-scraper.yml | YAML |
<|file_sep|>original/.github/workflows/ci.yml
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.14.0-rc3"
- uses: actions/setup-node@v1
with:
... | branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.14.0-rc5"
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: Install d... | <|file_sep|>original/.github/workflows/ci.yml
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.14.0-rc3"
- uses: actions/setup-node@v1
with:
... | 6f7a8fd41274689cfa54c7e495295ddc1f2ad1ff | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/readme.md
# SVGeezy
### A JavaScript plugin to handle your images in browsers that don't support SVGs
SVGeezy is in essence, a fallback plugin. It allows you to use SVGs for all your assets, giving you complete resolution independence.
It checks if the browser supports SVGs, if not, changes the _... | # SVGeezy
### A JavaScript plugin to handle your images in browsers that don't support SVGs
SVGeezy is in essence, a fallback plugin. It allows you to use SVGs for all your assets, giving you complete resolution independence.
It checks if the browser supports SVGs, if not, changes the _src_ of the image to a _.png_ i... | <|file_sep|>original/readme.md
# SVGeezy
### A JavaScript plugin to handle your images in browsers that don't support SVGs
SVGeezy is in essence, a fallback plugin. It allows you to use SVGs for all your assets, giving you complete resolution independence.
It checks if the browser supports SVGs, if not, changes the _... | 113f5b7d5c9388ad34215d8ed8d050c86cd66ed2 | readme.md | readme.md | Markdown |
<|file_sep|>src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java.diff
original:
updated:
import org.springframework.web.util.UriUtils;
<|file_sep|>src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java.diff
original:
import java.io.UnsupportedEncodingException;
import java.net... | import javax.inject.Inject;
import javax.persistence.PostLoad;
import java.nio.charset.StandardCharsets;
@Component
public class AvatarEnricherListener {
private static FafApiProperties fafApiProperties;
@Inject
public void init(FafApiProperties fafApiProperties) {
AvatarEnricherListener.fafApiProperties =... | <|file_sep|>src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java.diff
original:
updated:
import org.springframework.web.util.UriUtils;
<|file_sep|>src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java.diff
original:
import java.io.UnsupportedEncodingException;
import java.net... | 8a521622997636e10699208d718689e290604b88 | src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java | src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java | Java |
<|file_sep|>original/Main_program/src/main_program.py
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
if __name__ == "__main__":
print "Hello World"
<|file_sep|>current/Main_program/src/ma... | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
print("Hello World")
print("Hessel is een home") | <|file_sep|>original/Main_program/src/main_program.py
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
if __name__ == "__main__":
print "Hello World"
<|file_sep|>current/Main_program/src/ma... | e99a0bdde697a0508bc17a8dd66943cdf97bdc3d | Main_program/src/main_program.py | Main_program/src/main_program.py | Python |
<|file_sep|>original/src/lib.rs
#![crate_type="lib"]
#![feature(macro_rules, asm, globs)]
#![no_std]
extern crate core;
#[cfg(test)]
extern crate std;
#[cfg(test)]
extern crate native;
pub use platform::*;
pub mod macros;
#[cfg(all(target_os="linux", target_arch="x86"))]
#[path="platform/linux-x86/mod.rs"]
pub m... | #![crate_type="lib"]
#![feature(macro_rules, asm, globs)]
#![no_std]
extern crate core;
#[cfg(test)]
extern crate std;
pub use platform::*;
pub mod macros;
#[cfg(all(target_os="linux", target_arch="x86"))]
#[path="platform/linux-x86/mod.rs"]
pub mod platform;
#[cfg(all(target_os="linux", target_arch="x86_64"))]
... | <|file_sep|>original/src/lib.rs
#![crate_type="lib"]
#![feature(macro_rules, asm, globs)]
#![no_std]
extern crate core;
#[cfg(test)]
extern crate std;
#[cfg(test)]
extern crate native;
pub use platform::*;
pub mod macros;
#[cfg(all(target_os="linux", target_arch="x86"))]
#[path="platform/linux-x86/mod.rs"]
pub m... | 0bc5b2a959975de3eb439134a094ff143d706860 | src/lib.rs | src/lib.rs | Rust |
<|file_sep|>src/connect/socket.js.diff
original:
if (data.is_document || data.has_passport) {
updated:
if (data.is_document) {
<|file_sep|>original/src/connect/socket.js
this.socket = socket
this.onMessage()
setToken(jwt)
setAuthenticated(true)
}
}
handleData(data) {
if (dat... | this.socket = socket
this.onMessage()
setToken(jwt)
setAuthenticated(true)
}
}
handleData(data) {
if (data.is_document) {
setDocumentCaptured(true)
} else if (!data.is_document) {
events.emit('noDocument')
}
}
onMessage() {
this.socket.onmessage = (e) =>... | <|file_sep|>src/connect/socket.js.diff
original:
if (data.is_document || data.has_passport) {
updated:
if (data.is_document) {
<|file_sep|>original/src/connect/socket.js
this.socket = socket
this.onMessage()
setToken(jwt)
setAuthenticated(true)
}
}
handleData(data) {
if (dat... | e9c277ca10fa4317931500cfec43edb9be423ef4 | src/connect/socket.js | src/connect/socket.js | JavaScript |
<|file_sep|>src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs.diff
original:
var authorNames = model.Commits.Select(c => c.Author.Name).Distinct();
updated:
var authorNames = model.Commits.Select(c => c.Author.Name).Distinct().ToList();
<|file_sep|>src/HipChatConnect/Controller... | var branch = model.Ref.Replace("refs/heads/", "");
var authorNames = model.Commits.Select(c => c.Author.Name).Distinct().ToList();
var title = $"{string.Join(", ", authorNames)} committed on {branch}";
var stringBuilder = new StringBuilder();
stringBuilder... | <|file_sep|>src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs.diff
original:
var authorNames = model.Commits.Select(c => c.Author.Name).Distinct();
updated:
var authorNames = model.Commits.Select(c => c.Author.Name).Distinct().ToList();
<|file_sep|>src/HipChatConnect/Controller... | 29091f3fe2c7febbccf2d01b98ce798d95670547 | src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs | src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs | C# |
<|file_sep|>original/testcase/call_with_many_args.mk
<|file_sep|>current/testcase/call_with_many_args.mk
<|file_sep|>updated/testcase/call_with_many_args.mk | define func
$(11)$(12)$(13)$(14)
endef
test:
echo $(call func,1,2,3,4,5,6,7,8,9,10,P,A,S,S) | <|file_sep|>original/testcase/call_with_many_args.mk
<|file_sep|>current/testcase/call_with_many_args.mk
<|file_sep|>updated/testcase/call_with_many_args.mk
define func
$(11)$(12)$(13)$(14)
endef
test:
echo $(call func,1,2,3,4,5,6,7,8,9,10,P,A,S,S) | 6ea81bd82428d2999f065effc2bbf924e2175dd1 | testcase/call_with_many_args.mk | testcase/call_with_many_args.mk | Makefile |
<|file_sep|>application/protected/views/auth/login-options.php.diff
original:
$htmlEncodedDisplayName = \CHtml::encode($displayName);
updated:
<|file_sep|>application/protected/views/auth/login-options.php.diff
original:
'<a href="%s" class="btn">Log in using %s</a> ',
updated:
'<a href="%s" class=... | <?php
/* @var $this AuthController */
/* @var $loginOptions array */
// Set the page title.
$this->pageTitle = 'Login Options';
echo '<h2>' . \CHtml::encode($this->pageTitle) . '</h2> ';
foreach ($loginOptions as $displayName => $loginUrl) {
echo sprintf(
'<a href="%s" class="btn">Login with %s</a> ',
... | <|file_sep|>application/protected/views/auth/login-options.php.diff
original:
$htmlEncodedDisplayName = \CHtml::encode($displayName);
updated:
<|file_sep|>application/protected/views/auth/login-options.php.diff
original:
'<a href="%s" class="btn">Log in using %s</a> ',
updated:
'<a href="%s" class=... | efe35c90fb6ec8c64c0bf0639c95646bc6634aff | application/protected/views/auth/login-options.php | application/protected/views/auth/login-options.php | PHP |
<|file_sep|>.travis.yml.diff
original:
updated:
dist: xenial
<|file_sep|>original/.travis.yml
language: python
python:
- "3.5"
- "3.6"
env:
- HYPOTHESIS_PROFILE=ci
script: make test lint
<|file_sep|>current/.travis.yml
language: python
dist: xenial
python:
- "3.5"
- "3.6"
env:
- HYPOTHESIS_PROFILE=ci
script: mak... | language: python
dist: xenial
python:
- "3.5"
- "3.6"
- "3.7"
env:
- HYPOTHESIS_PROFILE=ci
script: make test lint | <|file_sep|>.travis.yml.diff
original:
updated:
dist: xenial
<|file_sep|>original/.travis.yml
language: python
python:
- "3.5"
- "3.6"
env:
- HYPOTHESIS_PROFILE=ci
script: make test lint
<|file_sep|>current/.travis.yml
language: python
dist: xenial
python:
- "3.5"
- "3.6"
env:
- HYPOTHESIS_PROFILE=ci
script: mak... | 476b1823d2c7fe10d43bf44f5d3e3f7c5a94a893 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/elections/steering/2022/nomination-qedrakmar.md
<|file_sep|>current/elections/steering/2022/nomination-qedrakmar.md
<|file_sep|>updated/elections/steering/2022/nomination-qedrakmar.md | -------------------------------------------------------------
name: Noah Abrahams
ID: qedrakmar
info:
- employer: Oracle
- slack: nabrahams
-------------------------------------------------------------
## SIGS
- SIG Contributor Experience
## What I have done
I got started with Kubernetes in 2016, and have been ... | <|file_sep|>original/elections/steering/2022/nomination-qedrakmar.md
<|file_sep|>current/elections/steering/2022/nomination-qedrakmar.md
<|file_sep|>updated/elections/steering/2022/nomination-qedrakmar.md
-------------------------------------------------------------
name: Noah Abrahams
ID: qedrakmar
info:
- employe... | cef572d297a47274878d1722610825f065eab442 | elections/steering/2022/nomination-qedrakmar.md | elections/steering/2022/nomination-qedrakmar.md | Markdown |
<|file_sep|>original/requirements.txt
Flask==1.0.2
Flask-Assets==0.12
Flask-Mail==0.9.1
Flask-SQLAlchemy==2.3.2
Flask-WTF==0.14.2
pytz==2018.4
unicodecsv==0.14.1
icalendar==4.0.2
git+https://github.com/hasgeek/coaster.git
git+https://github.com/hasgeek/flask-lastuser.git
git+https://github.com/hasgeek/baseframe.git
ale... | Flask==1.0.2
Flask-Assets==0.12
Flask-Mail==0.9.1
Flask-SQLAlchemy==2.3.2
Flask-WTF==0.14.2
pytz==2018.4
unicodecsv==0.14.1
icalendar==4.0.2
git+https://github.com/hasgeek/coaster.git
git+https://github.com/hasgeek/flask-lastuser.git
git+https://github.com/hasgeek/baseframe.git
alembic==0.9.10
qrcode==6.0
rq==0.11.0
ps... | <|file_sep|>original/requirements.txt
Flask==1.0.2
Flask-Assets==0.12
Flask-Mail==0.9.1
Flask-SQLAlchemy==2.3.2
Flask-WTF==0.14.2
pytz==2018.4
unicodecsv==0.14.1
icalendar==4.0.2
git+https://github.com/hasgeek/coaster.git
git+https://github.com/hasgeek/flask-lastuser.git
git+https://github.com/hasgeek/baseframe.git
ale... | a584be18af5b8c2f182d93b9ae2d843e7b577dc0 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/app/views/navbar/themes.html
<li class="dropdown theme-item"
ng-class="{'active':(selection.themeObject===theme)}">
<a uib-tooltip="{{theme.name}}"
tooltip-append-to-body="true"
tooltip-placement="right"
class="navbar-theme dropdown-toggle fix-ie-navbar"
data... | <li class="dropdown theme-item"
ng-class="{'active':(selection.themeObject===theme)}">
<a uib-tooltip="{{theme.name}}"
tooltip-append-to-body="true"
tooltip-placement="right"
class="navbar-theme dropdown-toggle fix-ie-navbar"
data-toggle="dropdown"
role="button"
ari... | <|file_sep|>original/app/views/navbar/themes.html
<li class="dropdown theme-item"
ng-class="{'active':(selection.themeObject===theme)}">
<a uib-tooltip="{{theme.name}}"
tooltip-append-to-body="true"
tooltip-placement="right"
class="navbar-theme dropdown-toggle fix-ie-navbar"
data... | c4c508339e671d3c26b263dafb6a0b73044afef9 | app/views/navbar/themes.html | app/views/navbar/themes.html | HTML |
<|file_sep|>tests/test_authentication.py.diff
original:
from api import create_app, db
updated:
from api import db
from api.BucketListAPI import app
from instance.config import application_config
<|file_sep|>tests/test_authentication.py.diff
original:
self.app = create_app(config_name='TestingEnv')
self... |
# Binds the app to current context
with app.app_context():
# Create all tables
db.create_all()
def test_index_route(self):
response = self.client.get('/')
self.assertEqual(response.status_code, 201)
self.assertIn('Welcome Message', response.data.deco... | <|file_sep|>tests/test_authentication.py.diff
original:
from api import create_app, db
updated:
from api import db
from api.BucketListAPI import app
from instance.config import application_config
<|file_sep|>tests/test_authentication.py.diff
original:
self.app = create_app(config_name='TestingEnv')
self... | f748facb9edd35ca6c61be336cad3109cafbbc89 | tests/test_authentication.py | tests/test_authentication.py | Python |
<|file_sep|>tensorflow/tsl/platform/default/cuda_libdevice_path.cc.diff
original:
updated:
#include <string>
<|file_sep|>tensorflow/tsl/platform/default/cuda_libdevice_path.cc.diff
original:
std::vector<string> CandidateCudaRoots() {
updated:
std::vector<std::string> CandidateCudaRoots() {
<|file_sep|>tensorflow/tsl/p... | #include "tensorflow/core/platform/platform.h"
#if !defined(PLATFORM_GOOGLE)
#include "third_party/gpus/cuda/cuda_config.h"
#endif
#include "tensorflow/core/platform/logging.h"
namespace tensorflow {
std::vector<std::string> CandidateCudaRoots() {
#if !defined(PLATFORM_GOOGLE)
VLOG(3) << "CUDA root = " << TF_CUDA_... | <|file_sep|>tensorflow/tsl/platform/default/cuda_libdevice_path.cc.diff
original:
updated:
#include <string>
<|file_sep|>tensorflow/tsl/platform/default/cuda_libdevice_path.cc.diff
original:
std::vector<string> CandidateCudaRoots() {
updated:
std::vector<std::string> CandidateCudaRoots() {
<|file_sep|>tensorflow/tsl/p... | 2f8380451e6560dab79b8e30b250d2ecb2e132ba | tensorflow/tsl/platform/default/cuda_libdevice_path.cc | tensorflow/tsl/platform/default/cuda_libdevice_path.cc | C++ |
<|file_sep|>original/lib/alerty/plugin/mail.rb
raise ConfigError.new('mail: send_to is not configured') unless config.send_to
delivery_method = config.delivery_method.to_sym || :sendmail
delivery_settings = config.delivery_settings
num_retries = config.num_retries || 3
@mail = :... | raise ConfigError.new('mail: send_to is not configured') unless config.send_to
delivery_method = config.delivery_method.to_sym || :sendmail
delivery_settings = config.delivery_settings
num_retries = config.num_retries || 3
@mail = ::Mail.new do
from config.send_from... | <|file_sep|>original/lib/alerty/plugin/mail.rb
raise ConfigError.new('mail: send_to is not configured') unless config.send_to
delivery_method = config.delivery_method.to_sym || :sendmail
delivery_settings = config.delivery_settings
num_retries = config.num_retries || 3
@mail = :... | 9259167285a68cd8bbd4d83ef6f04ab47c2151ba | lib/alerty/plugin/mail.rb | lib/alerty/plugin/mail.rb | Ruby |
<|file_sep|>original/nvim/init.vim
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-repeat'
Plug 'sheerun/vim-polyglot'
Plug 'plasticboy/vim-markdown'
Plug 'elixir-lang/vim-elixir'
Plug 'slashmili/alchemist.vim'
Plug 'jgdavey/vim-blockle'
Plug 'neomake/neomake'
Plug 'kassio/neoterm'
Plug 'itchyny... | Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-repeat'
Plug 'sheerun/vim-polyglot'
Plug 'plasticboy/vim-markdown'
Plug 'elixir-lang/vim-elixir'
Plug 'slashmili/alchemist.vim'
Plug 'jgdavey/vim-blockle'
Plug 'neomake/neomake'
Plug 'kassio/neoterm'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-eunu... | <|file_sep|>original/nvim/init.vim
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-repeat'
Plug 'sheerun/vim-polyglot'
Plug 'plasticboy/vim-markdown'
Plug 'elixir-lang/vim-elixir'
Plug 'slashmili/alchemist.vim'
Plug 'jgdavey/vim-blockle'
Plug 'neomake/neomake'
Plug 'kassio/neoterm'
Plug 'itchyny... | 74aab2dd3b563f677bc15f7198acbcc96712d06e | nvim/init.vim | nvim/init.vim | VimL |
<|file_sep|>setup.py.diff
original:
updated:
import sys
<|file_sep|>setup.py.diff
original:
updated:
needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
pytest_runner = ['pytest_runner'] if needs_pytest else []
needs_sphinx = {'release', 'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] ... | author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="jaraco.functools",
long_description=long_description,
url="https://bitbucket.org/jaraco/jaraco.functools",
packages=setuptools.find_packages(),
namespace_packages=['jaraco'],
setup_requires=[
'hgtools',
] + pytest_runner + sphinx,
test... | <|file_sep|>setup.py.diff
original:
updated:
import sys
<|file_sep|>setup.py.diff
original:
updated:
needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
pytest_runner = ['pytest_runner'] if needs_pytest else []
needs_sphinx = {'release', 'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] ... | 247a42a9839f03f01fb3228505798dffc0659ac9 | setup.py | setup.py | Python |
<|file_sep|>original/.travis.yml
dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
- /.*/
node_js: 4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages... | dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
- /.*/
node_js: 4
addons:
firefox: 46.0
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
scri... | <|file_sep|>original/.travis.yml
dist: trusty
before_script:
- npm install web-component-tester
- npm install bower
- 'export PATH=$PWD/node_modules/.bin:$PATH'
- bower install
branches:
only:
- gh-pages
- /.*/
node_js: 4
addons:
firefox: latest
apt:
sources:
- google-chrome
packages... | f61de50ec1b58e9d5e51e5cadc50866e37bfe329 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/weather/node_helper.js
module.exports = nodeHelper.create({
start: function() {
var th = new TemplateHandler(this.expressApp, this.name, this.path);
th.installTemplateHandler();
},
socketNotificationReceived: function(notification, payload) {
if (notification == 'download') {
... |
module.exports = nodeHelper.create({
start: function() {
var th = new TemplateHandler(this.expressApp, this.name, this.path);
th.installTemplateHandler();
},
socketNotificationReceived: function(notification, payload) {
if (notification == 'download') {
var self = this;
request({url: pay... | <|file_sep|>original/weather/node_helper.js
module.exports = nodeHelper.create({
start: function() {
var th = new TemplateHandler(this.expressApp, this.name, this.path);
th.installTemplateHandler();
},
socketNotificationReceived: function(notification, payload) {
if (notification == 'download') {
... | 53c725ec76a37319998a8fc2e7c493338a94cf79 | weather/node_helper.js | weather/node_helper.js | JavaScript |
<|file_sep|>original/S14-traits/package.t
<|file_sep|>current/S14-traits/package.t
<|file_sep|>updated/S14-traits/package.t | use v6;
use Test;
plan 8;
# L<S14/Traits/>
role description {
has $.description is rw;
}
multi trait_mod:<is>(Class $c, description, $arg) {
$c does description($arg);
}
multi trait_mod:<is>(Class $c, description) {
$c does description("missing description!");
}
multi trait_mod:<is>(Class $c, $arg, :$de... | <|file_sep|>original/S14-traits/package.t
<|file_sep|>current/S14-traits/package.t
<|file_sep|>updated/S14-traits/package.t
use v6;
use Test;
plan 8;
# L<S14/Traits/>
role description {
has $.description is rw;
}
multi trait_mod:<is>(Class $c, description, $arg) {
$c does description($arg);
}
multi trait_... | 7f910bef222beb19bf15da5a94f2ebade8880f7e | S14-traits/package.t | S14-traits/package.t | Perl |
<|file_sep|>original/dev-requirements.txt
alabaster==0.7.9
coverage==4.4.1
coverage_pth==0.0.1
codecov==2.0.9
flake8==3.4.1
mock==2.0.0
pypandoc==1.4
pytest==3.2.1
recommonmark==0.4.0
Sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.8.1
-r requirements.txt
<|file_sep|>current/dev-requirements.txt
alabaster==0.7.9
cov... | alabaster==0.7.9
coverage==4.4.1
coverage_pth==0.0.1
codecov==2.0.9
flake8==3.4.1
mock==2.0.0
pypandoc==1.4
pytest==3.2.5
recommonmark==0.4.0
Sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.8.1
-r requirements.txt | <|file_sep|>original/dev-requirements.txt
alabaster==0.7.9
coverage==4.4.1
coverage_pth==0.0.1
codecov==2.0.9
flake8==3.4.1
mock==2.0.0
pypandoc==1.4
pytest==3.2.1
recommonmark==0.4.0
Sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.8.1
-r requirements.txt
<|file_sep|>current/dev-requirements.txt
alabaster==0.7.9
cov... | 5bc635f8ffe677c49e4ef3ccfbd687914c30056a | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>index.js.diff
original:
var unauthorized = function(res, realm) {
updated:
function unauthorized(res, realm) {
<|file_sep|>index.js.diff
original:
updated:
function isPromiseLike(obj) {
return obj && typeof obj.then === 'function';
}
<|file_sep|>index.js.diff
original:
authorized = checkFn(user.na... |
return unauthorized(res, realm);
});
} catch(err) {
next(err);
}
} else {
authorized = !(!user || user.name !== username || user.pass !== password);
}
if (isPromiseLike(authorized)) {
return authorized
.then(function(authorized) {
if (aut... | <|file_sep|>index.js.diff
original:
var unauthorized = function(res, realm) {
updated:
function unauthorized(res, realm) {
<|file_sep|>index.js.diff
original:
updated:
function isPromiseLike(obj) {
return obj && typeof obj.then === 'function';
}
<|file_sep|>index.js.diff
original:
authorized = checkFn(user.na... | e40654ebf8690d663ef23ed60c5c353af8a0bc68 | index.js | index.js | JavaScript |
<|file_sep|>original/CHANGELOG.md
<|file_sep|>current/CHANGELOG.md
<|file_sep|>updated/CHANGELOG.md | # Zoe Changelog
## Version 0.9.7
* Check application description version during validation.
* Bump application description version to 2 since we are going to make some major changes in the format
* Add fields `total_count`, `essential_count` and `startup_order` to service descriptions.
## Version 0.9.6
* Workspaces... | <|file_sep|>original/CHANGELOG.md
<|file_sep|>current/CHANGELOG.md
<|file_sep|>updated/CHANGELOG.md
# Zoe Changelog
## Version 0.9.7
* Check application description version during validation.
* Bump application description version to 2 since we are going to make some major changes in the format
* Add fields `total_... | 0be109960ba9e31fbf1191e99e085010967586e4 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/Casks/atom.rb
class Atom < Cask
url 'http://atom.io/download/mac'
homepage 'http://atom.io'
version 'latest'
sha256 :no_check
link 'Atom.app'
binary 'Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm', :target => 'apm'
binary 'Atom.app/Contents/Resources/app/atom.sh', :target ... | class Atom < Cask
url 'https://atom.io/download/mac'
homepage 'http://atom.io'
version 'latest'
sha256 :no_check
link 'Atom.app'
binary 'Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm', :target => 'apm'
binary 'Atom.app/Contents/Resources/app/atom.sh', :target => 'atom'
after_install do
s... | <|file_sep|>original/Casks/atom.rb
class Atom < Cask
url 'http://atom.io/download/mac'
homepage 'http://atom.io'
version 'latest'
sha256 :no_check
link 'Atom.app'
binary 'Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm', :target => 'apm'
binary 'Atom.app/Contents/Resources/app/atom.sh', :target ... | 7f88d3ba27de228c168e124049e678434f196c6d | Casks/atom.rb | Casks/atom.rb | Ruby |
<|file_sep|>appveyor.yml.diff
original:
nodejs_version: "10"
updated:
NODEJS_VERSION: "10"
PREBUILD_UPLOAD:
secure: oNyyLE7/Oq3TUGZPz6DkLFPUuQzc8FiFS1iuPp7LZ2fyOP/UF4Np4NzJmWcXVyY/
<|file_sep|>appveyor.yml.diff
original:
- ps: Install-Product node $env:nodejs_version
updated:
- ps: Install-Product node $e... | PREBUILD_UPLOAD:
secure: oNyyLE7/Oq3TUGZPz6DkLFPUuQzc8FiFS1iuPp7LZ2fyOP/UF4Np4NzJmWcXVyY/
platform:
- x64
- x86
install:
- ps: Install-Product node $env:NODEJS_VERSION
- git submodule update --init --recursive
- npm install
build: off
branches:
only:
- master
- /^v.*$/
deploy_script: IF "... | <|file_sep|>appveyor.yml.diff
original:
nodejs_version: "10"
updated:
NODEJS_VERSION: "10"
PREBUILD_UPLOAD:
secure: oNyyLE7/Oq3TUGZPz6DkLFPUuQzc8FiFS1iuPp7LZ2fyOP/UF4Np4NzJmWcXVyY/
<|file_sep|>appveyor.yml.diff
original:
- ps: Install-Product node $env:nodejs_version
updated:
- ps: Install-Product node $e... | b912849ffc174498b92339431acf28a89bb251a5 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/src/server/index.js
if (!process.env.NODE_ENV) {
throw new Error(
'Environment variable NODE_ENV must be set to development or production.'
);
}
// http://bluebirdjs.com/docs/why-bluebird.html
global.Promise = Bluebird;
// http://formatjs.io/guides/runtime-environments/#polyfill-node
if ... |
if (!process.env.NODE_ENV) {
throw new Error(
'Environment variable NODE_ENV must be set to development or production.'
);
}
// http://bluebirdjs.com/docs/why-bluebird.html
global.Promise = Bluebird;
Promise.config({
warnings: {
// Disables forgotten return statements warnings when await is used.
/... | <|file_sep|>original/src/server/index.js
if (!process.env.NODE_ENV) {
throw new Error(
'Environment variable NODE_ENV must be set to development or production.'
);
}
// http://bluebirdjs.com/docs/why-bluebird.html
global.Promise = Bluebird;
// http://formatjs.io/guides/runtime-environments/#polyfill-node
if ... | 397442c185689b0ffbc88938923275c962f8db93 | src/server/index.js | src/server/index.js | JavaScript |
<|file_sep|>original/tests/TestHelper.php
<?php
date_default_timezone_set('Europe/Amsterdam');
define('APPLICATION_ENV', 'testing');
$rootPath = dirname(__FILE__).'/..';
require_once $rootPath.'/application/init.php';
$application = new Garp_Application(
APPLICATION_ENV,
APPLICATION_PATH.'/configs/application.ini'
... | <?php
date_default_timezone_set('Europe/Amsterdam');
define('APPLICATION_ENV', 'testing');
$rootPath = dirname(__FILE__).'/..';
require_once $rootPath.'/application/init.php';
$application = new Garp_Application(
APPLICATION_ENV,
APPLICATION_PATH.'/configs/application.ini'
);
$application->bootstrap();
Zend_Regist... | <|file_sep|>original/tests/TestHelper.php
<?php
date_default_timezone_set('Europe/Amsterdam');
define('APPLICATION_ENV', 'testing');
$rootPath = dirname(__FILE__).'/..';
require_once $rootPath.'/application/init.php';
$application = new Garp_Application(
APPLICATION_ENV,
APPLICATION_PATH.'/configs/application.ini'
... | aad8bfd2d62fff45a5e13ccdc912f926841c3e18 | tests/TestHelper.php | tests/TestHelper.php | PHP |
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
before_script: bundle exec rake compile
rvm:
- 2.0.0
- 2.1
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
addons:
code_climate:
repo_token: 02530029b1e956220f05076c590b84b... | before_script: bundle exec rake compile
rvm:
- 2.0.0
- 2.1
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
addons:
code_climate:
repo_token: 02530029b1e956220f05076c590b84b9ab078362c9083312eb2ad41cab138408 | <|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
before_script: bundle exec rake compile
rvm:
- 2.0.0
- 2.1
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
addons:
code_climate:
repo_token: 02530029b1e956220f05076c590b84b... | 5b980831c477255c9136189f6a546a7fd375ac22 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/spec_helper.rb
c.before :each do
# Ensure that we don't accidentally cache facts and environment
# between test cases.
Facter::Util::Loader.any_instance.stubs(:load_all)
Facter.clear
Facter.clear_messages
# Store any environment variables away to be restored later
... |
if Gem::Version.new(`puppet --version`) >= Gem::Version.new('3.5')
Puppet.settings[:strict_variables]=true
end
end
c.after :each do
PuppetlabsSpec::Files.cleanup
end
end
require 'pathname'
dir = Pathname.new(__FILE__).parent
Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules')
# There... | <|file_sep|>original/spec/spec_helper.rb
c.before :each do
# Ensure that we don't accidentally cache facts and environment
# between test cases.
Facter::Util::Loader.any_instance.stubs(:load_all)
Facter.clear
Facter.clear_messages
# Store any environment variables away to be restored later
... | 73965f9f088a04b0d37d6b9063bb24e9c64e074a | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>metadata.json.diff
original:
"c++",
updated:
<|file_sep|>original/metadata.json
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"6",
"7",
"8"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
... | "operatingsystem": "Debian",
"operatingsystemrelease": [
"6",
"7",
"8"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
"12.04",
"14.04"
]
},
{
"operatingsystem": "Redhat",
"operatings... | <|file_sep|>metadata.json.diff
original:
"c++",
updated:
<|file_sep|>original/metadata.json
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"6",
"7",
"8"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
... | 3a05078a52d12ed7b71d9047776a3e2ad7f2042b | metadata.json | metadata.json | JSON |
<|file_sep|>mvpcore/src/androidTest/res/layout/activity_fragment_container.xml.diff
original:
updated:
<?xml version="1.0" encoding="utf-8"?>
<|file_sep|>original/mvpcore/src/androidTest/res/layout/activity_fragment_container.xml
Licensed under the Apache License, Version 2.0 (the "License");
you may not use th... | Copyright 2017 Benoit LETONDOR
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | <|file_sep|>mvpcore/src/androidTest/res/layout/activity_fragment_container.xml.diff
original:
updated:
<?xml version="1.0" encoding="utf-8"?>
<|file_sep|>original/mvpcore/src/androidTest/res/layout/activity_fragment_container.xml
Licensed under the Apache License, Version 2.0 (the "License");
you may not use th... | 9938b557082e529702306288200e9a85a52dc39b | mvpcore/src/androidTest/res/layout/activity_fragment_container.xml | mvpcore/src/androidTest/res/layout/activity_fragment_container.xml | XML |
<|file_sep|>stf/NBodylib/src/NBody/SwiftParticle.h.diff
original:
#define SWIFT_STRUCT_ALIGNMENT 32
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT)))
updated:
<|file_sep|>stf/NBodylib/src/NBody/SwiftParticle.h.diff
original:
/* The different types of particles a #gpart can link to.
... | /*! \file SwiftParticle.h
* \brief header file for the SWIFT particle type.
*/
#ifndef SWIFT_PARTICLE_H
#define SWIFT_PARTICLE_H
namespace Swift
{
/* Include some struct definitions from SWIFT. */
extern "C" {
#include "align.h"
#include "timeline.h"
#include "part_type.h"
#... | <|file_sep|>stf/NBodylib/src/NBody/SwiftParticle.h.diff
original:
#define SWIFT_STRUCT_ALIGNMENT 32
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT)))
updated:
<|file_sep|>stf/NBodylib/src/NBody/SwiftParticle.h.diff
original:
/* The different types of particles a #gpart can link to.
... | 65e4c1a76b1d37248de01d6b482a7781612c0ca5 | stf/NBodylib/src/NBody/SwiftParticle.h | stf/NBodylib/src/NBody/SwiftParticle.h | C |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# command to install dependencies
install:
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements-py3.txt; else pip install -r requirements-py2.txt; fi
# command to run tests
script: nosetests tests
... | language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# command to install dependencies
install:
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements-py3.txt; else pip install -r requirements-py2.txt; fi
# command to run tests
script: nosetests tests
sudo: false | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# command to install dependencies
install:
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements-py3.txt; else pip install -r requirements-py2.txt; fi
# command to run tests
script: nosetests tests
... | 1ed5c806a977bbf3c27a5101c6dcb2be7d46ca41 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/openstack/tempest/neutron-tempest/values.yaml
# You can override subchart values here, e.g. concurrency
run_pattern: neutron_tempest_plugin.api
concurrency: 4
<|file_sep|>current/openstack/tempest/neutron-tempest/values.yaml
# You can override subchart values here, e.g. concurrency
run_pattern: neu... | # You can override subchart values here, e.g. concurrency
run_pattern: neutron_tempest_plugin.api|tempest.api.network
concurrency: 4 | <|file_sep|>original/openstack/tempest/neutron-tempest/values.yaml
# You can override subchart values here, e.g. concurrency
run_pattern: neutron_tempest_plugin.api
concurrency: 4
<|file_sep|>current/openstack/tempest/neutron-tempest/values.yaml
# You can override subchart values here, e.g. concurrency
run_pattern: neu... | 67e04a39fe07957780e16bae205488d5c345efc9 | openstack/tempest/neutron-tempest/values.yaml | openstack/tempest/neutron-tempest/values.yaml | YAML |
<|file_sep|>original/.travis.yml
- clang
matrix:
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
before_install:
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew update; else true; fi"
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew install libsodium valgrind swig lua graphviz doxyg... | - clang
matrix:
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
before_install:
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew update; else true; fi"
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew install libsodium swig lua graphviz doxygen protobuf-c meson; else true; fi"
script... | <|file_sep|>original/.travis.yml
- clang
matrix:
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
before_install:
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew update; else true; fi"
- "if [ $TRAVIS_OS_NAME == 'osx' ]; then brew install libsodium valgrind swig lua graphviz doxyg... | 521a5009888c6aa75b64becbaf9c764ddf3538ff | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.rst
====================
Python Magic Methods
====================
Slides and code for talk on Python's magic methods.
------------
Installation
------------
Clone the repository::
git clone https://github.com/eigenholser/python-magic-methods.git
Change directory into the project::... | ====================
Python Magic Methods
====================
Slides and code for talk on Python's magic methods.
The demo code is developed for Python 3.
RISE is the Reveal.js Jupyter slideshow extension.
------------
Installation
------------
Clone the repository::
git clone https://github.com/eigenholser... | <|file_sep|>original/README.rst
====================
Python Magic Methods
====================
Slides and code for talk on Python's magic methods.
------------
Installation
------------
Clone the repository::
git clone https://github.com/eigenholser/python-magic-methods.git
Change directory into the project::... | 9f864dbe1045eb6901f18f6b657c46464cd7a1bb | README.rst | README.rst | reStructuredText |
<|file_sep|>app/views/profiles/_profile.html.erb.diff
original:
updated:
<div>
<|file_sep|>app/views/profiles/_profile.html.erb.diff
original:
updated:
</div>
<|file_sep|>original/app/views/profiles/_profile.html.erb
<% if is_owner? %>
<div class="row" id="avatar_info">
<div class="header_text2">
<%= t('avata... | <% if is_owner? %>
<div class="row" id="avatar_info">
<div class="header_text2">
<%= t('avatar.profile_change') %>
<div class="header_icon_right">
<%= link_to (image_tag('edit_icon.png', :class=>"unborder")), :controller => "avatars", :action => "index" %>
</div>
</div>
<div class="space_cente... | <|file_sep|>app/views/profiles/_profile.html.erb.diff
original:
updated:
<div>
<|file_sep|>app/views/profiles/_profile.html.erb.diff
original:
updated:
</div>
<|file_sep|>original/app/views/profiles/_profile.html.erb
<% if is_owner? %>
<div class="row" id="avatar_info">
<div class="header_text2">
<%= t('avata... | ff07fe713dc251a1ac497783897ebb9a251b3491 | app/views/profiles/_profile.html.erb | app/views/profiles/_profile.html.erb | HTML+ERB |
<|file_sep|>original/app/views/users/index.html.erb
<h3><%= user.role.titlecase %></h3>
</div>
<div class='userabout'>
<p><%= user.bio %></p>
</div>
<div class='usersocial'>
<ul>
<% unless user.facebook_username.blank? %>
... | <section id="subheader">
<div class="container">
<div class='row-fluid'>
<div class='span12'>
<h1>People</h1>
<h2>A collection of creative talent from P.R.</h2>
</div>
</div>
</div>
</section>
<section id='content'>
<div class='container'>
<div class='row-fluid'>
... | <|file_sep|>original/app/views/users/index.html.erb
<h3><%= user.role.titlecase %></h3>
</div>
<div class='userabout'>
<p><%= user.bio %></p>
</div>
<div class='usersocial'>
<ul>
<% unless user.facebook_username.blank? %>
... | 14635aceee1dce9c03ef9e55161002625926b64f | app/views/users/index.html.erb | app/views/users/index.html.erb | HTML+ERB |
<|file_sep|>original/resources/views/welcome.blade.php
<div class="container">
<h1>Dashboard</h1>
<div class="row">
<div class="col-md-4">
<h2>Cartridges</h2>
<ul class="list-unstyled">
<li><a href="{{ route('cartridges.create') }}">Cr... | @extends('layouts.master')
@section('title', 'Dashboard')
@section('content')
<div class="container">
<h1>Dashboard</h1>
<div class="row">
<div class="col-md-4">
<h2>Cartridges</h2>
<ul class="list-unstyled">
<li><a href="{{ route('c... | <|file_sep|>original/resources/views/welcome.blade.php
<div class="container">
<h1>Dashboard</h1>
<div class="row">
<div class="col-md-4">
<h2>Cartridges</h2>
<ul class="list-unstyled">
<li><a href="{{ route('cartridges.create') }}">Cr... | 3d8f9b1b4f35c6bc789f1a27e2babe1ab045937f | resources/views/welcome.blade.php | resources/views/welcome.blade.php | PHP |
<|file_sep|>original/testpackages/CopyTest1/dev/CopyTest1.cs
this.SetRelativePath(this, "data", "testfile.txt");
this.UpdateOptions += delegate(Opus.Core.IModule module, Opus.Core.Target target) {
FileUtilities.ICopyFileOptions options = module.Options as FileUtilities.ICopyFileO... | this.SetRelativePath(this, "data", "testfile.txt");
this.UpdateOptions += delegate(Opus.Core.IModule module, Opus.Core.Target target) {
FileUtilities.ICopyFileOptions options = module.Options as FileUtilities.ICopyFileOptions;
if (null != options)
... | <|file_sep|>original/testpackages/CopyTest1/dev/CopyTest1.cs
this.SetRelativePath(this, "data", "testfile.txt");
this.UpdateOptions += delegate(Opus.Core.IModule module, Opus.Core.Target target) {
FileUtilities.ICopyFileOptions options = module.Options as FileUtilities.ICopyFileO... | 24fe669b40716f00b5d527e17f4aa3d0cf652db9 | testpackages/CopyTest1/dev/CopyTest1.cs | testpackages/CopyTest1/dev/CopyTest1.cs | C# |
<|file_sep|>pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml.diff
original:
version: '3'
updated:
<|file_sep|>pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml.diff
original:
image: ubuntu
updated:
image: alpine
<|file_sep|>original/pkg/e2e/fixtures/dependencies/deps-completed-succes... | services:
oneshot:
image: alpine
command: echo 'hello world'
longrunning:
image: alpine
depends_on:
oneshot:
condition: service_completed_successfully
command: sleep infinity | <|file_sep|>pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml.diff
original:
version: '3'
updated:
<|file_sep|>pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml.diff
original:
image: ubuntu
updated:
image: alpine
<|file_sep|>original/pkg/e2e/fixtures/dependencies/deps-completed-succes... | 74fd14ec657e35d00df520716bfd3faa82258251 | pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml | pkg/e2e/fixtures/dependencies/deps-completed-successfully.yaml | YAML |
<|file_sep|>updater/entries.js.diff
original:
// Pseudo query builder
let params = [];
let chunks = [];
for (let i = 0; i < sources.length; i++) {
let source = sources[i];
let valuesClause = [];
updated:
return Promise.map(sources, insertEntry).then(function() {
log(format('E... | return distribution;
});
});
}
function insertEntries(sources) {
log(format('Inserting %d entries for %s...', sources.length, sources[0].distribution));
return Promise.map(sources, insertEntry).then(function() {
log(format('Entries for %s inserted.', sources[0].distribution));
... | <|file_sep|>updater/entries.js.diff
original:
// Pseudo query builder
let params = [];
let chunks = [];
for (let i = 0; i < sources.length; i++) {
let source = sources[i];
let valuesClause = [];
updated:
return Promise.map(sources, insertEntry).then(function() {
log(format('E... | 6b7d6db52e3aca121e8ae0d12bc752c290bbad5f | updater/entries.js | updater/entries.js | JavaScript |
<|file_sep|>original/config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Codeskull
class Application < Rails::Application
... |
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Codeskull
class Application < Rails::Application
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_loca... | <|file_sep|>original/config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Codeskull
class Application < Rails::Application
... | 4b6ef4fbf96759d451b079bad63522a584716394 | config/application.rb | config/application.rb | Ruby |
<|file_sep|>db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb.diff
original:
where message is null or trim(message) = ''
updated:
<|file_sep|>original/db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb
select count(id) as count, response_set_id, question_id
from `... | select count(id) as count, response_set_id, question_id
from `autocomplete_override_messages`
group by response_set_id, question_id
having count(id) > 1;
SQL
select_rows(find_query).each do |count, response_set_id, question_id|
delete_query = <<-SQL
delete from autocomplete... | <|file_sep|>db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb.diff
original:
where message is null or trim(message) = ''
updated:
<|file_sep|>original/db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb
select count(id) as count, response_set_id, question_id
from `... | 9bfed88f9b48c55222530d137eb539ed91687b17 | db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb | db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb | Ruby |
<|file_sep|>original/init/casebook2.vim
au User AfterBundles Abolish adddress address
au User AfterBundles Abolish adress address
au User AfterBundles Abolish asesment assessment
au User AfterBundles Abolish asessment assessment
au User AfterBundles Abolish assesment assessment
au User AfterBundles Abolish ... | augroup CB2Abbreviations
au!
au User AfterBundles Abolish absense absence
au User AfterBundles Abolish adddress address
au User AfterBundles Abolish adress address
au User AfterBundles Abolish asesment assessment
au User AfterBundles Abolish asessment assessment
au User AfterBundles Abolish assesment asse... | <|file_sep|>original/init/casebook2.vim
au User AfterBundles Abolish adddress address
au User AfterBundles Abolish adress address
au User AfterBundles Abolish asesment assessment
au User AfterBundles Abolish asessment assessment
au User AfterBundles Abolish assesment assessment
au User AfterBundles Abolish ... | 5cc8aa5e697925f5a98eccebee7201551dd9e54a | init/casebook2.vim | init/casebook2.vim | VimL |
<|file_sep|>original/.travis.yml
language: cpp
compiler:
- clang
- gcc
before_install:
# nomlib dependencies (SDL)
- sudo apt-get install libsdl1.2-dev libsdl1.2debian libsdl-image1.2-dev libsdl-image1.2 libsdl-ttf2.0-dev libsdl-ttf2.0-0
# nomlib dependencies (Audio)
- sudo apt-get install libsndfile1-dev libop... | language: cpp
compiler:
- clang
- gcc
before_install:
# nomlib dependencies (SDL)
- sudo apt-get install libsdl1.2-dev libsdl1.2debian libsdl-image1.2-dev libsdl-image1.2 libsdl-ttf2.0-dev libsdl-ttf2.0-0
# nomlib dependencies (Audio)
- sudo apt-get install libsndfile1-dev libopenal-dev
before_script:
- mkdir... | <|file_sep|>original/.travis.yml
language: cpp
compiler:
- clang
- gcc
before_install:
# nomlib dependencies (SDL)
- sudo apt-get install libsdl1.2-dev libsdl1.2debian libsdl-image1.2-dev libsdl-image1.2 libsdl-ttf2.0-dev libsdl-ttf2.0-0
# nomlib dependencies (Audio)
- sudo apt-get install libsndfile1-dev libop... | d7bfb2b85ac5593b67da47bc7c858d929bdc809c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala
<|file_sep|>current/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala
<|file_sep|>updated/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala | package com.signalcollect.triplerush.sparql
import com.signalcollect.triplerush.TripleRush
import org.scalatest.{Matchers, FlatSpec}
import scala.collection.JavaConversions.asScalaIterator
class Sparql11SyntaxTest extends FlatSpec with Matchers{
it should "read manifest.ttl of syntax-fed and write a query agains... | <|file_sep|>original/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala
<|file_sep|>current/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala
<|file_sep|>updated/src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala
package com.signalcollect.tri... | 4159d8a24fcfcc5e4c4c4ad976ea2c0d54c462bd | src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala | src/main/scala/com/signalcollect/triplerush/sparql/Sparql11SyntaxTest.scala | Scala |
<|file_sep|>original/CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## [0.1.2] - 2015-07-09
### Fixed
- Resolve potential infinite loop in `#split` occurring when no valid solution is pos... | # Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Allow specifying item price via hash attribute
- Allow specifying quantity of item via hash attribute
## [0.1.2] - 2015-07-09
### Fixed
- Res... | <|file_sep|>original/CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## [0.1.2] - 2015-07-09
### Fixed
- Resolve potential infinite loop in `#split` occurring when no valid solution is pos... | 5d62e2662d3b13a8d9b56cb834bc333773d0fd06 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/tests/run_test.sh
rm "${file_out}" || true
cat >"${file_cmd}" <<EOF
:set foldmethod=marker
:%call SortFolds#SortFolds()
:write ${file_out}
:q!
EOF
nvim -s "${file_cmd}" "${file_in}"
rm "${file_cmd}"
if diff "${file_out}" "${file_exp}"; then
exit 0
else
e... |
rm "${file_out}" || true
cat >"${file_cmd}" <<EOF
:set foldmethod=marker
:%call SortFolds#SortFolds()
:write ${file_out}
:q!
EOF
${EDITOR} -s "${file_cmd}" "${file_in}"
rm "${file_cmd}"
if diff "${file_out}" "${file_exp}"; then
exit 0
else
echo "TEST FAILED" >&2
exit... | <|file_sep|>original/tests/run_test.sh
rm "${file_out}" || true
cat >"${file_cmd}" <<EOF
:set foldmethod=marker
:%call SortFolds#SortFolds()
:write ${file_out}
:q!
EOF
nvim -s "${file_cmd}" "${file_in}"
rm "${file_cmd}"
if diff "${file_out}" "${file_exp}"; then
exit 0
else
e... | db0dd3113d533af76b944bf27e4ffdd96f0018e2 | tests/run_test.sh | tests/run_test.sh | Shell |
<|file_sep|>original/data/transition-sites/bis_rc.yml
---
site: bis_rc
whitehall_slug: department-for-business-innovation-skills
redirection_date: 31st July 2014
homepage: https://www.gov.uk/government/organisations/department-for-business-innovation-skills
tna_timestamp: 20201010101010 # Stub timestamp - site is not i... | ---
site: bis_rc
whitehall_slug: department-for-business-innovation-skills
redirection_date: 31st July 2014
homepage: https://www.gov.uk/government/organisations/department-for-business-innovation-skills
tna_timestamp: 20201010101010 # Stub timestamp - site is not in TNA
host: renewableconsultation.bis.gov.uk
homepage_... | <|file_sep|>original/data/transition-sites/bis_rc.yml
---
site: bis_rc
whitehall_slug: department-for-business-innovation-skills
redirection_date: 31st July 2014
homepage: https://www.gov.uk/government/organisations/department-for-business-innovation-skills
tna_timestamp: 20201010101010 # Stub timestamp - site is not i... | 3e8e5770370297e49db0eae0c1b467628d2bd77c | data/transition-sites/bis_rc.yml | data/transition-sites/bis_rc.yml | YAML |
<|file_sep|>original/SuperBuild/External_GTest.cmake
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.com/google/googletest.git" CACHE STRING "Google Test repository")
mark_as_adv... | if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.com/google/googletest.git" CACHE STRING "Google Test repository")
mark_as_advanced(GTEST_GIT_REPOSITORY)
set(GTEST_GIT_TAG "relea... | <|file_sep|>original/SuperBuild/External_GTest.cmake
if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED)
return()
endif()
set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1)
set(proj GTest)
set(GTEST_GIT_REPOSITORY "${git_protocol}://github.com/google/googletest.git" CACHE STRING "Google Test repository")
mark_as_adv... | 37aadba25ed9a3c58105134cf4a36c3b511c33b0 | SuperBuild/External_GTest.cmake | SuperBuild/External_GTest.cmake | CMake |
<|file_sep|>original/example/android/app/src/main/AndroidManifest.xml
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="28" />
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_l... | <uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="28" />
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
<meta-data andro... | <|file_sep|>original/example/android/app/src/main/AndroidManifest.xml
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="28" />
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_l... | f8a55f0537e69ed05119b96dec5dcb9e3164e247 | example/android/app/src/main/AndroidManifest.xml | example/android/app/src/main/AndroidManifest.xml | XML |
<|file_sep|>.bin/special_keys.sh.diff
original:
debug() {
notify-send "Special Keys Debug" "$1"
updated:
SINK='alsa_output.pci-0000_00_1b.0.analog-stereo'
error() {
notify-send "Special Keys Error" "$1"
<|file_sep|>.bin/special_keys.sh.diff
original:
pactl set-sink-mute 0 toggle
# debug "volume toggle"... | }
brightup() {
changeBrightness '+'
}
brightdown() {
changeBrightness '-'
}
## Argument to script call is one of the above functions
errmsg="$($1 2>&1)"
if [ $? -ne 0 ]; then
if [ -z "$errmsg" ]; then
errmsg="Unknown error"
fi
error "${1}(): $errmsg"
fi | <|file_sep|>.bin/special_keys.sh.diff
original:
debug() {
notify-send "Special Keys Debug" "$1"
updated:
SINK='alsa_output.pci-0000_00_1b.0.analog-stereo'
error() {
notify-send "Special Keys Error" "$1"
<|file_sep|>.bin/special_keys.sh.diff
original:
pactl set-sink-mute 0 toggle
# debug "volume toggle"... | a4273b919f2838597e7a564a74971ca52ba315c7 | .bin/special_keys.sh | .bin/special_keys.sh | Shell |
<|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
updated:
@appPadding:10px;
<|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
padding: 10px;
updated:
padding:@appPadding;
<|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
color: inherit;
updated:
color... |
div.App {
background: #fff;
padding:@appPadding;
display:table;
.k-state-selected {
color:inherit;
}
> div {
display:table-cell;
width:50%;
padding-right:@appPadding;
}
> pre {
display:table-cell;
position:absolute;
top:@appPadding;
}
} | <|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
updated:
@appPadding:10px;
<|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
padding: 10px;
updated:
padding:@appPadding;
<|file_sep|>live-code-starter/webapp/styles/App.less.diff
original:
color: inherit;
updated:
color... | ad9e3f437006862a7358c2c4c3de6a34adc5440c | live-code-starter/webapp/styles/App.less | live-code-starter/webapp/styles/App.less | Less |
<|file_sep|>query/simpleForecast.js.diff
original:
exports.params = ['place'];
updated:
exports.params = ['place', 'latlng'];
<|file_sep|>original/query/simpleForecast.js
const fmiRequest = require('../lib/fmiRequest');
const queryId = 'fmi::forecast::hirlam::surface::point::simple';
exports.queryId = queryId;
exports... | const fmiRequest = require('../lib/fmiRequest');
const queryId = 'fmi::forecast::hirlam::surface::point::simple';
exports.queryId = queryId;
exports.params = ['place', 'latlng'];
exports.run = function runQuery(place) {
return fmiRequest.get({ queryId, params: { place } })
.then(results => Promise.resolve(resul... | <|file_sep|>query/simpleForecast.js.diff
original:
exports.params = ['place'];
updated:
exports.params = ['place', 'latlng'];
<|file_sep|>original/query/simpleForecast.js
const fmiRequest = require('../lib/fmiRequest');
const queryId = 'fmi::forecast::hirlam::surface::point::simple';
exports.queryId = queryId;
exports... | 34455930677c739f1445b07d4e16a4444d833bf4 | query/simpleForecast.js | query/simpleForecast.js | JavaScript |
<|file_sep|>lib/mws-rb/api/base.rb.diff
original:
updated:
# TODO: Temporary solution, move to configuration
DEFAULT_TIMEOUT = 2000
<|file_sep|>lib/mws-rb/api/base.rb.diff
original:
HTTParty.get(query.request_uri)
updated:
HTTParty.get(query.request_uri, http_request_options)
<|file_se... | when "POST"
HTTParty.post(query.request_uri, request_params.merge(http_request_options))
end
end
def method_missing(name, *args)
if self.class::Actions.include?(name)
self.call(name, *args)
else
super
end
end
def http_reques... | <|file_sep|>lib/mws-rb/api/base.rb.diff
original:
updated:
# TODO: Temporary solution, move to configuration
DEFAULT_TIMEOUT = 2000
<|file_sep|>lib/mws-rb/api/base.rb.diff
original:
HTTParty.get(query.request_uri)
updated:
HTTParty.get(query.request_uri, http_request_options)
<|file_se... | e1e2aa5f248858baf1f3f717bdac34eed963f49e | lib/mws-rb/api/base.rb | lib/mws-rb/api/base.rb | Ruby |
<|file_sep|>original/scripts/deploy.sh
#!/bin/bash -e
echo "$CIRCLE_TAG"
if [ "$CIRCLE_TAG" != "" ]; then
gem install package_cloud
package_cloud push Hypriot/rpi/debian/jessie output/*/*.deb
else
echo "No release tag detected. Skip deployment."
fi
<|file_sep|>current/scripts/deploy.sh
#!/bin/bash -e
echo "$CI... | #!/bin/bash -e
echo "$CIRCLE_TAG"
if [ "$CIRCLE_TAG" != "" ]; then
gem install package_cloud
package_cloud push Hypriot/rpi/debian/stretch output/*/raspberrypi-kernel*.deb
else
echo "No release tag detected. Skip deployment."
fi | <|file_sep|>original/scripts/deploy.sh
#!/bin/bash -e
echo "$CIRCLE_TAG"
if [ "$CIRCLE_TAG" != "" ]; then
gem install package_cloud
package_cloud push Hypriot/rpi/debian/jessie output/*/*.deb
else
echo "No release tag detected. Skip deployment."
fi
<|file_sep|>current/scripts/deploy.sh
#!/bin/bash -e
echo "$CI... | 5760332807259dbd555be26bd05fca9e9d096d35 | scripts/deploy.sh | scripts/deploy.sh | Shell |
<|file_sep|>README.md.diff
original:
updated:
* I English does not written well. It may be strange text... sorry!
<|file_sep|>original/README.md
# FFXIVAPP.Plugin.GathererTimer
## How To Install Plugin manually
* Run FFXIVAPP.
* Open "Update" tab and Click "Plugin Sources" tab.
* Input "https://github.com/dreams00/... | # FFXIVAPP.Plugin.GathererTimer
* I English does not written well. It may be strange text... sorry!
## How To Install Plugin manually
* Run FFXIVAPP.
* Open "Update" tab and Click "Plugin Sources" tab.
* Input "https://github.com/dreams00/ffxivapp-plugin-gatherer-timer/raw/master/distribution/VERSION.json" into "Sou... | <|file_sep|>README.md.diff
original:
updated:
* I English does not written well. It may be strange text... sorry!
<|file_sep|>original/README.md
# FFXIVAPP.Plugin.GathererTimer
## How To Install Plugin manually
* Run FFXIVAPP.
* Open "Update" tab and Click "Plugin Sources" tab.
* Input "https://github.com/dreams00/... | 1077a8ce7ea2817c1a04441e0fb7e2519f9a3f77 | README.md | README.md | Markdown |
<|file_sep|>original/scripts/run_benchmarks.sh
<|file_sep|>current/scripts/run_benchmarks.sh
<|file_sep|>updated/scripts/run_benchmarks.sh | #!/bin/bash
max_memory="$1"
batch_size="$2"
samples="$3"
if [ -z "$max_memory" ]; then
echo "ERROR: Maximum memory must be specified!" 1>&2
exit 1
fi
if [ -z "$batch_size" ]; then
batch_size=256
fi
if [ -z "$samples" ]; then
samples=5
fi
dirname="$(dirname "$0")"
| <|file_sep|>original/scripts/run_benchmarks.sh
<|file_sep|>current/scripts/run_benchmarks.sh
<|file_sep|>updated/scripts/run_benchmarks.sh
#!/bin/bash
max_memory="$1"
batch_size="$2"
samples="$3"
if [ -z "$max_memory" ]; then
echo "ERROR: Maximum memory must be specified!" 1>&2
exit 1
fi
if [ -z "$batch_si... | 8a0f1ef4dd94a1bd25a53909d259c731957d99b7 | scripts/run_benchmarks.sh | scripts/run_benchmarks.sh | Shell |
<|file_sep|>original/test/showSensorData.sh
<|file_sep|>current/test/showSensorData.sh
<|file_sep|>updated/test/showSensorData.sh | #!/bin/sh
(curl context_broker:1026/v1/queryContext -s -S --header 'Content-Type: application/json' \
--header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
"entities": [
{
"type": "SensorData",
"isPattern": "true",
"id": "1-.*"
}
]
}
EOF | <|file_sep|>original/test/showSensorData.sh
<|file_sep|>current/test/showSensorData.sh
<|file_sep|>updated/test/showSensorData.sh
#!/bin/sh
(curl context_broker:1026/v1/queryContext -s -S --header 'Content-Type: application/json' \
--header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
"enti... | 36833043da9fa2d8ce25170cfbeaa11efb1f13c1 | test/showSensorData.sh | test/showSensorData.sh | Shell |
<|file_sep|>original/lib/travis/api/v3/renderer/subscription.rb
module Travis::API::V3
class Renderer::Subscription < ModelRenderer
representation(:standard, :id, :valid_to, :plan, :coupon, :status, :source, :billing_info, :credit_card_info, :owner, :invoices)
end
class Renderer::BillingInfo < ModelRenderer
... | module Travis::API::V3
class Renderer::Subscription < ModelRenderer
representation(:standard, :id, :valid_to, :plan, :coupon, :status, :source, :billing_info, :credit_card_info, :owner)
end
class Renderer::BillingInfo < ModelRenderer
representation(:minimal, :address, :address2, :billing_email, :city, :c... | <|file_sep|>original/lib/travis/api/v3/renderer/subscription.rb
module Travis::API::V3
class Renderer::Subscription < ModelRenderer
representation(:standard, :id, :valid_to, :plan, :coupon, :status, :source, :billing_info, :credit_card_info, :owner, :invoices)
end
class Renderer::BillingInfo < ModelRenderer
... | b60ecdaba41ae149cffa4cbc8ddf34077b1766a5 | lib/travis/api/v3/renderer/subscription.rb | lib/travis/api/v3/renderer/subscription.rb | Ruby |
<|file_sep|>config/initializers/paper_trail.rb.diff
original:
current_actor = self.actor
updated:
original_actor = self.actor
<|file_sep|>original/config/initializers/paper_trail.rb
PaperTrail.config.track_associations = false
module PaperTrail
def self.with_actor(actor)
current_actor = self.actor
se... | PaperTrail.config.track_associations = false
module PaperTrail
def self.with_actor(actor)
original_actor = self.actor
self.whodunnit = actor
yield
self.whodunnit = original_actor
end
end | <|file_sep|>config/initializers/paper_trail.rb.diff
original:
current_actor = self.actor
updated:
original_actor = self.actor
<|file_sep|>original/config/initializers/paper_trail.rb
PaperTrail.config.track_associations = false
module PaperTrail
def self.with_actor(actor)
current_actor = self.actor
se... | d7d147c1797cfa48716846ed8a2462c0ec9cdebf | config/initializers/paper_trail.rb | config/initializers/paper_trail.rb | Ruby |
<|file_sep|>original/src/desktop/components/auth_modal/test/templates.coffee
<|file_sep|>current/src/desktop/components/auth_modal/test/templates.coffee
<|file_sep|>updated/src/desktop/components/auth_modal/test/templates.coffee | jade = require 'jade'
path = require 'path'
fs = require 'fs'
cheerio = require 'cheerio'
render = (templateName) ->
filename = path.resolve __dirname, "../templates/#{templateName}.jade"
jade.compile(
fs.readFileSync(filename),
{ filename: filename }
)
describe "Auth Templates", ->
describe "forgot",... | <|file_sep|>original/src/desktop/components/auth_modal/test/templates.coffee
<|file_sep|>current/src/desktop/components/auth_modal/test/templates.coffee
<|file_sep|>updated/src/desktop/components/auth_modal/test/templates.coffee
jade = require 'jade'
path = require 'path'
fs = require 'fs'
cheerio = require 'cheerio'... | a781b8792ce109c65f04875f04fd5a1ca5789c7f | src/desktop/components/auth_modal/test/templates.coffee | src/desktop/components/auth_modal/test/templates.coffee | CoffeeScript |
<|file_sep|>original/admin/views/defaultcontroller/edit.php
foreach ($aFieldSets as $sLegend => $aFields) {
?>
<fieldset>
<legend><?=$sLegend?></legend>
<?php
foreach ($aFields as $oField) {
$aField = (array) $oField;
... | foreach ($aFieldSets as $sLegend => $aFields) {
?>
<fieldset>
<legend><?=$sLegend?></legend>
<?php
foreach ($aFields as $oField) {
$aField = (array) $oField;
$aField['default'] = !empty($item) && property_exists($item,... | <|file_sep|>original/admin/views/defaultcontroller/edit.php
foreach ($aFieldSets as $sLegend => $aFields) {
?>
<fieldset>
<legend><?=$sLegend?></legend>
<?php
foreach ($aFields as $oField) {
$aField = (array) $oField;
... | 12e424e23351b8289bcefb9f55e5b0d73c4f73b1 | admin/views/defaultcontroller/edit.php | admin/views/defaultcontroller/edit.php | PHP |
<|file_sep|>original/SeriesGuide/src/main/java/com/battlelancer/seriesguide/modules/AppModule.java
package com.battlelancer.seriesguide.modules;
import android.app.Application;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@Module
public class AppModule {
Application application;
... | package com.battlelancer.seriesguide.modules;
import android.app.Application;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@Module
public class AppModule {
private Application application;
public AppModule(Application application) {
this.application = application;
... | <|file_sep|>original/SeriesGuide/src/main/java/com/battlelancer/seriesguide/modules/AppModule.java
package com.battlelancer.seriesguide.modules;
import android.app.Application;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@Module
public class AppModule {
Application application;
... | 5e903fd8762fb62ec3420fb0336f0d440d7ebcf3 | SeriesGuide/src/main/java/com/battlelancer/seriesguide/modules/AppModule.java | SeriesGuide/src/main/java/com/battlelancer/seriesguide/modules/AppModule.java | Java |
<|file_sep|>templates/cases/email/case_notification.html.diff
original:
<p>{{ description }}</p>
{% if note %}<p><i>{{ note }}</i></p>{% endif %}
<p>
updated:
{{ description }}<br/>
<br/>
{% if note %}<i>{{ note }}</i><br/>{% endif %}
<br/>
<|file_sep|>original/templates/cases/email/case_notification.html
{% load i18... | {% load i18n %}
{{ description }}<br/>
<br/>
{% if note %}<i>{{ note }}</i><br/>{% endif %}
<br/>
{% blocktrans with case_url as case_url %}
Click <a href="{{ case_url }}">here</a> to view the case. You are receiving this email because you are watching this
case. You can unwatch from the case page.
{% endblocktrans %}... | <|file_sep|>templates/cases/email/case_notification.html.diff
original:
<p>{{ description }}</p>
{% if note %}<p><i>{{ note }}</i></p>{% endif %}
<p>
updated:
{{ description }}<br/>
<br/>
{% if note %}<i>{{ note }}</i><br/>{% endif %}
<br/>
<|file_sep|>original/templates/cases/email/case_notification.html
{% load i18... | 1b2cdf941d4c2a940a0bc5dd56632ab862db8eda | templates/cases/email/case_notification.html | templates/cases/email/case_notification.html | HTML |
<|file_sep|>original/S32-list/grep-v.t
<|file_sep|>current/S32-list/grep-v.t
<|file_sep|>updated/S32-list/grep-v.t | use v6;
use Test;
# L<S32::Containers/"List"/"=item grep">
plan 17;
my @list = (1 .. 10);
is grep( { ($_ % 2) }, @list, :v ).grep(Int), [1,3,5,7,9],
'do we get Ints';
is grep( { ($_ % 2) }, @list, :v ), [1,3,5,7,9],
'simple direct test of sub';
is @list.grep( { ($_ % 2) }, :v ), [1,3,5,7,9],
'simple direct t... | <|file_sep|>original/S32-list/grep-v.t
<|file_sep|>current/S32-list/grep-v.t
<|file_sep|>updated/S32-list/grep-v.t
use v6;
use Test;
# L<S32::Containers/"List"/"=item grep">
plan 17;
my @list = (1 .. 10);
is grep( { ($_ % 2) }, @list, :v ).grep(Int), [1,3,5,7,9],
'do we get Ints';
is grep( { ($_ % 2) }, @list,... | d40553aed6a72ae8fd98483cbeaa039b2268043b | S32-list/grep-v.t | S32-list/grep-v.t | Perl |
<|file_sep|>original/index.html
<h1>Multiple Counter</h1>
<form on-submit="addItem(event)">
<input type='text' placeholder='new title' value='{{new_title}}' />
<input type="submit" value="Add">
</form>
<table>
<tbody>
{{#each items:i}}
<tr>
... | <h1>Multiple Counter</h1>
<form on-submit="addItem(event)">
<input type='text' placeholder='new title' value='{{new_title}}' />
<input type="submit" value="Add">
</form>
<table>
<tbody>
{{#each items:i}}
<tr>
<td><button on-click='countUp(i... | <|file_sep|>original/index.html
<h1>Multiple Counter</h1>
<form on-submit="addItem(event)">
<input type='text' placeholder='new title' value='{{new_title}}' />
<input type="submit" value="Add">
</form>
<table>
<tbody>
{{#each items:i}}
<tr>
... | cab13900f01e15a0e2152ef0905b6cc275439898 | index.html | index.html | HTML |
<|file_sep|>original/requirements.txt
Flask-SQLAlchemy==2.4.0
Flask-Script==2.0.6
Flask-Travis==0.0.2
Flask-WTF==0.14.2
Flask==1.1.1
Jinja2==2.10.1
MarkupSafe==1.1.1
SQLAlchemy==1.3.6
WTForms==2.2.1
Werkzeug==0.15.4
arrow==0.14.2
blinker==1.4
cssmin==0.2.0
gunicorn==19.9.0
itsdangerous==1.1.0
jsmin==2.2.2
psycopg2==2.8... | Flask-SQLAlchemy==2.4.0
Flask-Script==2.0.6
Flask-Travis==0.0.2
Flask-WTF==0.14.2
Flask==1.1.1
Jinja2==2.10.1
MarkupSafe==1.1.1
SQLAlchemy==1.3.6
WTForms==2.2.1
Werkzeug==0.15.4
arrow==0.14.3
blinker==1.4
cssmin==0.2.0
gunicorn==19.9.0
itsdangerous==1.1.0
jsmin==2.2.2
psycopg2==2.8.3
pytest==5.0.1
python-dateutil==2.8.... | <|file_sep|>original/requirements.txt
Flask-SQLAlchemy==2.4.0
Flask-Script==2.0.6
Flask-Travis==0.0.2
Flask-WTF==0.14.2
Flask==1.1.1
Jinja2==2.10.1
MarkupSafe==1.1.1
SQLAlchemy==1.3.6
WTForms==2.2.1
Werkzeug==0.15.4
arrow==0.14.2
blinker==1.4
cssmin==0.2.0
gunicorn==19.9.0
itsdangerous==1.1.0
jsmin==2.2.2
psycopg2==2.8... | ee9e98a229f451b1136ede5bc6d64dda74227b2a | requirements.txt | requirements.txt | Text |
<|file_sep|>original/scenarios/messages/get/getting_a_message.rb
<|file_sep|>current/scenarios/messages/get/getting_a_message.rb
<|file_sep|>updated/scenarios/messages/get/getting_a_message.rb | require 'helper'
describe 'getting a message' do
let(:username) { String.generate }
let(:password) { String.generate }
subject { Esendex.new(username, password) }
let(:message_header) { MessageHeader.generate }
let(:response_body) { message_header.to_xml }
before {
stub_request(:get, "https://#{usern... | <|file_sep|>original/scenarios/messages/get/getting_a_message.rb
<|file_sep|>current/scenarios/messages/get/getting_a_message.rb
<|file_sep|>updated/scenarios/messages/get/getting_a_message.rb
require 'helper'
describe 'getting a message' do
let(:username) { String.generate }
let(:password) { String.generate }
... | 98146de725618db5c74ef9f765bb862cef67cb18 | scenarios/messages/get/getting_a_message.rb | scenarios/messages/get/getting_a_message.rb | Ruby |
<|file_sep|>original/app/models/recipe.rb
class Recipe < ActiveRecord::Base
include Elasticsearch::Model
def self.search_by_ingredients(query)
search(
query: {
multi_match: {
query: query,
fields: [:name, 'ingredients^10', :description]
}
}
)
end
end
<|file... | class Recipe < ActiveRecord::Base
include Elasticsearch::Model
def self.search_by_ingredients(query)
search(
query: {
multi_match: {
query: query,
fuzziness: 2,
fields: [:name, 'ingredients^10', :description]
}
}
)
end
end | <|file_sep|>original/app/models/recipe.rb
class Recipe < ActiveRecord::Base
include Elasticsearch::Model
def self.search_by_ingredients(query)
search(
query: {
multi_match: {
query: query,
fields: [:name, 'ingredients^10', :description]
}
}
)
end
end
<|file... | 83014ec79db8c2fa1ae4a90ec957bf6fae9a772b | app/models/recipe.rb | app/models/recipe.rb | Ruby |
<|file_sep|>original/.github/workflows/test.yml
- 2.7
- 3.0
prawn_version:
- 2.3
- 2.4
exclude:
- ruby_version: 3.0
prawn_version: 2.3
steps:
- uses: actions/checkout@v2.3.4
- name: Set up diff-pdf
run: |
sudo apt-... | - 2.7
- 3.0
prawn_version:
- 2.3
- 2.4
exclude:
- ruby_version: 3.0
prawn_version: 2.3
steps:
- uses: actions/checkout@v2
- name: Set up diff-pdf
run: |
sudo apt-get update
sudo apt-get install make automak... | <|file_sep|>original/.github/workflows/test.yml
- 2.7
- 3.0
prawn_version:
- 2.3
- 2.4
exclude:
- ruby_version: 3.0
prawn_version: 2.3
steps:
- uses: actions/checkout@v2.3.4
- name: Set up diff-pdf
run: |
sudo apt-... | 038ee14d150afedfcfab61c69bb99d0cd00a2fae | .github/workflows/test.yml | .github/workflows/test.yml | YAML |
<|file_sep|>original/README.md
# ProjectEuler
Compilation of some solutions of the challenges existent in the website www.projecteuler.net
<|file_sep|>current/README.md
# ProjectEuler
Compilation of some solutions of the challenges existent in the website www.projecteuler.net
<|file_sep|>updated/README.md | # ProjectEuler
Compilation of some solutions of the challenges existent in the website www.projecteuler.net
## The 10 Next Problems
- [ ] [Problem041](https://projecteuler.net/problem=41)
- [ ] [Problem042](https://projecteuler.net/problem=42)
- [ ] [Problem043](https://projecteuler.net/problem=43)
- [ ] [Problem044... | <|file_sep|>original/README.md
# ProjectEuler
Compilation of some solutions of the challenges existent in the website www.projecteuler.net
<|file_sep|>current/README.md
# ProjectEuler
Compilation of some solutions of the challenges existent in the website www.projecteuler.net
<|file_sep|>updated/README.md
# ProjectEule... | 8334e64e561e610de8faf4027f78bf24afc9bd5b | README.md | README.md | Markdown |
<|file_sep|>original/docs/_coverpage.md
<img src="_images/logo-light.svg" width="200" >
# Zircle UI <small>0.3.1</small>
> A lightweight front-end library for developing <br> zoomable user interfaces
[GitHub](https://github.com/zircleui/zircleUI)
[Get Started](?id=introduction)

<|file_sep|>curren... |
<img src="_images/logo-light.svg" width="200" >
# Zircle UI <small>0.3.2</small>
> A lightweight front-end library for developing <br> zoomable user interfaces
[GitHub](https://github.com/zircleui/zircleUI)
[Get Started](?id=introduction)
 | <|file_sep|>original/docs/_coverpage.md
<img src="_images/logo-light.svg" width="200" >
# Zircle UI <small>0.3.1</small>
> A lightweight front-end library for developing <br> zoomable user interfaces
[GitHub](https://github.com/zircleui/zircleUI)
[Get Started](?id=introduction)

<|file_sep|>curren... | 8d20dddb798beaba5aaba63189d2621381ba6af4 | docs/_coverpage.md | docs/_coverpage.md | Markdown |
<|file_sep|>original/_includes/meta.html
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
<meta name="twitter:card" content="summary" />
... | <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
<meta name="twitter:card" content="summary" />
{% if page.excerpt %}
<meta name="description" content="{{ page.excerpt| strip_html }}" />
<meta property="og:description" content="{{ page.excerpt| strip_html }... | <|file_sep|>original/_includes/meta.html
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
<meta name="twitter:card" content="summary" />
... | 8b70c895d0b38822c5397c974a8d892eeee194e6 | _includes/meta.html | _includes/meta.html | HTML |
<|file_sep|>original/pskb_website/templates/faq.html
{% extends "layout.html" %}
{% block body %}
<h1 class="lead">Frequently Asked Questions</h1>
{% if details %}
{{ details.text|safe }}
<p>
<a href="{{details.url}}" target="_blank"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></s... | {% extends "layout.html" %}
{% block body %}
<h1 class="lead">Frequently Asked Questions</h1>
{% if details %}
<div id="article">{{ details.text|safe }}</div>
<p>
<a href="{{details.url}}" target="_blank"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></span> Edit FAQ on Github</a>
... | <|file_sep|>original/pskb_website/templates/faq.html
{% extends "layout.html" %}
{% block body %}
<h1 class="lead">Frequently Asked Questions</h1>
{% if details %}
{{ details.text|safe }}
<p>
<a href="{{details.url}}" target="_blank"><span class="glyphicon glyphicon-new-window" aria-hidden="true"></s... | 96b4b5741cbb6a2ebdb778a8985bd348d0e9d3b4 | pskb_website/templates/faq.html | pskb_website/templates/faq.html | HTML |
<|file_sep|>original/plugins/fb_app/views/fb_app_plugin_page_tab/_configure_button.html.erb
<div id="manage-fb-store-ctrl">
<% if logged_in? and (@page_tab.owner_profile and user.is_admin? @page_tab.owner_profile) %>
<%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_myp... | <div id="manage-fb-store-ctrl">
<% if logged_in? %>
<% if @page_tab.owner_profile and user.is_admin? @page_tab.owner_profile %>
<%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_myprofile, profile: @page_tab.owner_profile.identifier},
target: '_parent' %>
... | <|file_sep|>original/plugins/fb_app/views/fb_app_plugin_page_tab/_configure_button.html.erb
<div id="manage-fb-store-ctrl">
<% if logged_in? and (@page_tab.owner_profile and user.is_admin? @page_tab.owner_profile) %>
<%= button :edit, t('fb_app_plugin.views.page_tab.edit_catalog'), {controller: :fb_app_plugin_myp... | 1e8de812de300a6823129819a19bc2d808a5ef82 | plugins/fb_app/views/fb_app_plugin_page_tab/_configure_button.html.erb | plugins/fb_app/views/fb_app_plugin_page_tab/_configure_button.html.erb | HTML+ERB |
<|file_sep|>original/src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php
<|file_sep|>current/src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php
<|file_sep|>updated/src... | <?php
/**
* Copyright 2016 SURFnet B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | <|file_sep|>original/src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php
<|file_sep|>current/src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php
<|file_sep|>updated/src... | 27c90ddbd5be6db70e03d54280b4e80544ca6e9c | src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php | src/Surfnet/StepupMiddleware/CommandHandlingBundle/Tests/EventHandling/RecordEventsAndPublishToBusOnFirstCallEventListener.php | PHP |
<|file_sep|>web/static/scss/_variables.scss.diff
original:
$primary-color-light: #B2EBF2;
updated:
$primary-color-light: lighten($primary-color, 40%);
<|file_sep|>original/web/static/scss/_variables.scss
// Variables not seen here can be found in materialize/components/_variables.scss
$off-white: color("grey", "lighte... | // Variables not seen here can be found in materialize/components/_variables.scss
$off-white: color("grey", "lighten-5");
$primary-color-light: lighten($primary-color, 40%);
$primary-text: rgba(color("grey", "darken-4"), 0.77);
$secondary-text: color("grey", "darken-1");
$divider-color: color("grey", "lighten-1");
$... | <|file_sep|>web/static/scss/_variables.scss.diff
original:
$primary-color-light: #B2EBF2;
updated:
$primary-color-light: lighten($primary-color, 40%);
<|file_sep|>original/web/static/scss/_variables.scss
// Variables not seen here can be found in materialize/components/_variables.scss
$off-white: color("grey", "lighte... | 4918a336753c8650f87dc1ce98080fffef782ec7 | web/static/scss/_variables.scss | web/static/scss/_variables.scss | SCSS |
<|file_sep|>original/docs/pages/code_overview.rst
:members:
:undoc-members:
:show-inheritance:
:mod:`decorators` Module
------------------------
.. automodule:: praw.decorators
:members:
:undoc-members:
:show-inheritance:
:mod:`internal` Module
----------------------
.. automodule:: praw.i... | .. automodule:: praw.errors
:members:
:undoc-members:
:show-inheritance:
:mod:`handlers` Module
----------------------
.. automodule:: praw.handlers
:members:
:undoc-members:
:show-inheritance:
:mod:`decorators` Module
------------------------
.. automodule:: praw.decorators
:members:
... | <|file_sep|>original/docs/pages/code_overview.rst
:members:
:undoc-members:
:show-inheritance:
:mod:`decorators` Module
------------------------
.. automodule:: praw.decorators
:members:
:undoc-members:
:show-inheritance:
:mod:`internal` Module
----------------------
.. automodule:: praw.i... | d23724a04c69baea3c76075a61870f7032ec9e61 | docs/pages/code_overview.rst | docs/pages/code_overview.rst | reStructuredText |
<|file_sep|>original/TodotxtTouch.WindowsPhone/Tasks/TaskFilterFactory.cs
{
string target = filter.Replace("context:", String.Empty);
return new ContextTaskFilter(
task => task.Contexts.Contains(target),
target);
}
if (filter.StartsWith("project:"))
{
string target = filter.Replace("p... | {
string target = filter.Replace("context:", String.Empty);
return new ContextTaskFilter(
task => task.Contexts.Contains(target),
target);
}
if (filter.StartsWith("project:"))
{
string target = filter.Replace("project: ", "+");
return new ProjectTaskFilter(
task => task.Proje... | <|file_sep|>original/TodotxtTouch.WindowsPhone/Tasks/TaskFilterFactory.cs
{
string target = filter.Replace("context:", String.Empty);
return new ContextTaskFilter(
task => task.Contexts.Contains(target),
target);
}
if (filter.StartsWith("project:"))
{
string target = filter.Replace("p... | ee25f4c0b85fe30f4fb8325ed4b74b1d4d4a74e0 | TodotxtTouch.WindowsPhone/Tasks/TaskFilterFactory.cs | TodotxtTouch.WindowsPhone/Tasks/TaskFilterFactory.cs | C# |
<|file_sep|>ionic.config.js.diff
original:
'node_modules/ionic-framework',
updated:
'node_modules/ionic-angular',
<|file_sep|>original/ionic.config.js
},
sass: {
src: ['app/theme/app.+(ios|md).scss'],
dest: 'www/build/css',
include: [
... | },
sass: {
src: ['app/theme/app.+(ios|md).scss'],
dest: 'www/build/css',
include: [
'node_modules/ionic-angular',
'node_modules/ionicons/dist/scss'
]
},
fonts: {
src: ['node_modules/ionic-angular/... | <|file_sep|>ionic.config.js.diff
original:
'node_modules/ionic-framework',
updated:
'node_modules/ionic-angular',
<|file_sep|>original/ionic.config.js
},
sass: {
src: ['app/theme/app.+(ios|md).scss'],
dest: 'www/build/css',
include: [
... | 4743ac4791130dac36240d150eb5831b945e0bf2 | ionic.config.js | ionic.config.js | JavaScript |
<|file_sep|>original/src/sleepy/web/views.py
from django.utils.http import is_safe_url
from django.utils.translation import ugettext
class IndexView(TemplateView):
"""View for the index page"""
template_name = 'sleepy/web/index.html'
class LogoutView(RedirectView):
url = reverse_lazy('home')
permane... | from django.utils.http import is_safe_url
from django.utils.translation import ugettext
class IndexView(TemplateView):
"""View for the index page"""
template_name = 'sleepy/web/index.html'
class LogoutView(RedirectView):
url = reverse_lazy('sleepy-home')
permanent = False
def dispatch(self, req... | <|file_sep|>original/src/sleepy/web/views.py
from django.utils.http import is_safe_url
from django.utils.translation import ugettext
class IndexView(TemplateView):
"""View for the index page"""
template_name = 'sleepy/web/index.html'
class LogoutView(RedirectView):
url = reverse_lazy('home')
permane... | ce83a4fb2f650380b7683ea688791e078b6fe7ec | src/sleepy/web/views.py | src/sleepy/web/views.py | Python |
<|file_sep|>original/actions/st2_prep_release_packages.meta.yaml
---
name: st2_prep_release_packages
runner_type: mistral-v2
description: Prepare and test st2 packages for release
enabled: true
entry_point: workflows/st2_prep_release_packages.yaml
parameters:
version:
type: string
description: Versi... | ---
name: st2_prep_release_packages
runner_type: mistral-v2
description: Prepare and test st2 packages for release
enabled: true
entry_point: workflows/st2_prep_release_packages.yaml
parameters:
version:
type: string
description: Version to use for the release. Should include the patch e.g. 0.1.0
... | <|file_sep|>original/actions/st2_prep_release_packages.meta.yaml
---
name: st2_prep_release_packages
runner_type: mistral-v2
description: Prepare and test st2 packages for release
enabled: true
entry_point: workflows/st2_prep_release_packages.yaml
parameters:
version:
type: string
description: Versi... | 244337ad1ee689f30ff580a7b625d645b5bc186a | actions/st2_prep_release_packages.meta.yaml | actions/st2_prep_release_packages.meta.yaml | YAML |
<|file_sep|>original/t/206-reason-exceedlimit.t
use Sisimai::Reason::ExceedLimit;
my $PackageName = 'Sisimai::Reason::ExceedLimit';
my $MethodNames = {
'class' => [ 'text', 'match', 'true' ],
'object' => [],
};
use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };
MAKE_TEST: {
is $Packa... | use Sisimai::Reason::ExceedLimit;
my $PackageName = 'Sisimai::Reason::ExceedLimit';
my $MethodNames = {
'class' => [ 'text', 'match', 'true' ],
'object' => [],
};
use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };
MAKE_TEST: {
is $PackageName->text, 'exceedlimit', '->text = exceedlim... | <|file_sep|>original/t/206-reason-exceedlimit.t
use Sisimai::Reason::ExceedLimit;
my $PackageName = 'Sisimai::Reason::ExceedLimit';
my $MethodNames = {
'class' => [ 'text', 'match', 'true' ],
'object' => [],
};
use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };
MAKE_TEST: {
is $Packa... | 17e958ff753e08bf9589486d69c64bf5798bbd7f | t/206-reason-exceedlimit.t | t/206-reason-exceedlimit.t | Perl |
<|file_sep|>gulpfile.js.diff
original:
gulp.task('js', () => {
updated:
gulp.task('build', () => {
<|file_sep|>original/gulpfile.js
const babel = require('gulp-babel');
const gulp = require('gulp');
const print = require('gulp-print');
gulp.task('js', () => {
return gulp.src('src/*.js')
.pipe(print())
... | const babel = require('gulp-babel');
const gulp = require('gulp');
const print = require('gulp-print');
gulp.task('build', () => {
return gulp.src('src/*.js')
.pipe(print())
.pipe( babel({ presets: ['es2015'] }))
.pipe(gulp.dest('dist'));
});
gulp.task('watch', () => {
gulp.watch('src... | <|file_sep|>gulpfile.js.diff
original:
gulp.task('js', () => {
updated:
gulp.task('build', () => {
<|file_sep|>original/gulpfile.js
const babel = require('gulp-babel');
const gulp = require('gulp');
const print = require('gulp-print');
gulp.task('js', () => {
return gulp.src('src/*.js')
.pipe(print())
... | d1ccfc9a672c42c9fe3967f657ad1213d7288abd | gulpfile.js | gulpfile.js | JavaScript |
<|file_sep|>.gitlab-ci.yml.diff
original:
updated:
- dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y
<|file_sep|>original/.gitlab-ci.yml
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
statistics:
script:
- ./autogen... | statistics:
script:
- ./autogen.sh --enable-statistics
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
check-valgrind:
script:
- dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y
- dnf debuginfo-install spice-server... | <|file_sep|>.gitlab-ci.yml.diff
original:
updated:
- dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y
<|file_sep|>original/.gitlab-ci.yml
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
statistics:
script:
- ./autogen... | 9eae44856f39a215b63366fa7f39bfca137d9a4d | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>app/instance-initializers/mixpanel.js.diff
original:
export function initialize(instance) {
updated:
export function initialize(appInstance) {
<|file_sep|>app/instance-initializers/mixpanel.js.diff
original:
var router = instance.lookup('router:main');
updated:
if (typeof(appInstance.lookup) === 'un... | import Config from '../config/environment';
export function initialize(appInstance) {
if (Config.mixpanel.enabled) {
if (typeof(appInstance.lookup) === 'undefined') {
appInstance = appInstance.container;
}
let router = appInstance.lookup('router:main');
router.on('didTransition', function() {
... | <|file_sep|>app/instance-initializers/mixpanel.js.diff
original:
export function initialize(instance) {
updated:
export function initialize(appInstance) {
<|file_sep|>app/instance-initializers/mixpanel.js.diff
original:
var router = instance.lookup('router:main');
updated:
if (typeof(appInstance.lookup) === 'un... | 536569c661d1178992ae6c23226c2be338302308 | app/instance-initializers/mixpanel.js | app/instance-initializers/mixpanel.js | JavaScript |
<|file_sep|>original/react-client/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Escape</title>
<link rel="stylesheet" href="vex.css" />
<link rel="stylesheet" href="vex-theme-os.css" />
<link rel="stylesheet" hre... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Escape</title>
<link rel="stylesheet" href="vex.css" />
<link rel="stylesheet" href="vex-theme-os.css" />
<link rel="styles... | <|file_sep|>original/react-client/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Escape</title>
<link rel="stylesheet" href="vex.css" />
<link rel="stylesheet" href="vex-theme-os.css" />
<link rel="stylesheet" hre... | 2650d360aac6f3ed6adb0b807194ad21b7448b8d | react-client/index.html | react-client/index.html | HTML |
<|file_sep|>packages/po/pontarius-xmpp-extras.yaml.diff
original:
hash: c4dbceec6263a272e8b873d62ee44195465fe5f4a338f5fd6303ce336bb5a9f3
updated:
hash: 8f2d6b6453e8552ef244a407512aff10e9fe39130e5bc1b488412c4051d729d0
<|file_sep|>packages/po/pontarius-xmpp-extras.yaml.diff
original:
updated:
- 0.1.0.5
<|file_sep|>origi... | synopsis: XEPs implementation on top of pontarius-xmpp
changelog: ''
basic-deps:
base: '>=4.9 && <4.15'
time: '>=1.8 && <1.11'
text: '>=1.2 && <1.3'
data-default: '>=0.7.1.1 && <0.8'
xml-types: '>=0.3 && <0.4'
pontarius-xmpp: '>=0.5 && <0.6'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.1.0.2
- 0.1.0.3
- 0.1.0.4
- ... | <|file_sep|>packages/po/pontarius-xmpp-extras.yaml.diff
original:
hash: c4dbceec6263a272e8b873d62ee44195465fe5f4a338f5fd6303ce336bb5a9f3
updated:
hash: 8f2d6b6453e8552ef244a407512aff10e9fe39130e5bc1b488412c4051d729d0
<|file_sep|>packages/po/pontarius-xmpp-extras.yaml.diff
original:
updated:
- 0.1.0.5
<|file_sep|>origi... | 11739e92d34ea003d95af2d28bccf563888defe4 | packages/po/pontarius-xmpp-extras.yaml | packages/po/pontarius-xmpp-extras.yaml | YAML |
<|file_sep|>lib/airbrake/cli/project_factory.rb.diff
original:
updated:
attr_reader :project, :projects
<|file_sep|>lib/airbrake/cli/project_factory.rb.diff
original:
end
def project
@project
updated:
<|file_sep|>original/lib/airbrake/cli/project_factory.rb
name = $1
project.name = name.cap... | xml.split("\n").each do |line|
/<name[^>]*>(.*)<\/name>/ =~ line
name = $1
project.name = name.capitalize if name
/<id[^>]*>(.*)<\/id>/ =~ line
id = $1
project.id = id if id
/<api-key[^>]*>(.*)<\/api-key>/ =~ line
api_key = $1
project.api_ke... | <|file_sep|>lib/airbrake/cli/project_factory.rb.diff
original:
updated:
attr_reader :project, :projects
<|file_sep|>lib/airbrake/cli/project_factory.rb.diff
original:
end
def project
@project
updated:
<|file_sep|>original/lib/airbrake/cli/project_factory.rb
name = $1
project.name = name.cap... | db9e03c3dacbc154a4ae80d6525fe958518f2417 | lib/airbrake/cli/project_factory.rb | lib/airbrake/cli/project_factory.rb | Ruby |
<|file_sep|>juliet_importer.py.diff
original:
updated:
import imp
<|file_sep|>juliet_importer.py.diff
original:
class loader:
modules = {};
updated:
modules = {}
<|file_sep|>juliet_importer.py.diff
original:
def __init__(self):
self.load_modules();
updated:
def load_modules(path="./modules/"): # Consid... | import os
import imp
modules = {}
def load_modules(path="./modules/"): # Consider adding recursive sorting at some point in the future
names = os.listdir(path)
for name in names:
if not name.endswith(".py"): continue
print("Importing module {0}".format(name))
name = name.split('.')[0]
... | <|file_sep|>juliet_importer.py.diff
original:
updated:
import imp
<|file_sep|>juliet_importer.py.diff
original:
class loader:
modules = {};
updated:
modules = {}
<|file_sep|>juliet_importer.py.diff
original:
def __init__(self):
self.load_modules();
updated:
def load_modules(path="./modules/"): # Consid... | 861d4f9773193a03d1f53c6e0c3f78d48b096d45 | juliet_importer.py | juliet_importer.py | Python |
<|file_sep|>package.json.diff
original:
updated:
"body-parser": "^1.18.2",
<|file_sep|>package.json.diff
original:
updated:
"express": "^4.16.2",
"mongoose": "^5.0.7",
<|file_sep|>original/package.json
{
"name": "ticket-taker",
"description": "A job for checking if tickets to a given movie exist yet."... | {
"name": "ticket-taker",
"description": "A job for checking if tickets to a given movie exist yet.",
"version": "0.0.5",
"main": "server.js",
"dependencies": {
"body-parser": "^1.18.2",
"cheerio": "~0.20.0",
"express": "^4.16.2",
"mongoose": "^5.0.7",
"request": "^2.83.0",
"twilio": "... | <|file_sep|>package.json.diff
original:
updated:
"body-parser": "^1.18.2",
<|file_sep|>package.json.diff
original:
updated:
"express": "^4.16.2",
"mongoose": "^5.0.7",
<|file_sep|>original/package.json
{
"name": "ticket-taker",
"description": "A job for checking if tickets to a given movie exist yet."... | c69320a90a03905783e18b7d335ff3d32fdb5a54 | package.json | package.json | JSON |
<|file_sep|>original/README.md
Google Drive Recursive Ownership Tool
==
Setup
--
git clone https://github.com/davidstrauss/google-drive-recursive-ownership
pip-python install --upgrade google-api-python-client
Usage
--
python transfer.py PATH-PREFIX NEW-OWNER-EMAIL
<|file_sep|>current/README.md
Google D... | Google Drive Recursive Ownership Tool
==
Setup
--
git clone https://github.com/davidstrauss/google-drive-recursive-ownership
pip install --upgrade google-api-python-client
Usage
--
python transfer.py PATH-PREFIX NEW-OWNER-EMAIL | <|file_sep|>original/README.md
Google Drive Recursive Ownership Tool
==
Setup
--
git clone https://github.com/davidstrauss/google-drive-recursive-ownership
pip-python install --upgrade google-api-python-client
Usage
--
python transfer.py PATH-PREFIX NEW-OWNER-EMAIL
<|file_sep|>current/README.md
Google D... | 081714077bcc72820da90caf6fffe04f70b8fb82 | README.md | README.md | Markdown |
<|file_sep|>original/css/components/_asides.scss
aside {
font-family: $interface-font-stack;
font-size: 1rem;
background-color: #fff;
padding: 1rem;
border: 1px solid $butler-color;
@include respond-to(md) {
width: 40%;
float: right;
margin-right: 0;
margin:1rem;
position: relative;
... | /**
* ◊ASIDES
* --------------
* This component lets you use the <aside> tag in an article for snide comments
* or to provide more details or context. Add "note" class to add a stylized
* astrisk to the corner of the box.
*/
aside {
font-family: $interface-font-stack;
font-size: 1rem;
background-color: #fff;
... | <|file_sep|>original/css/components/_asides.scss
aside {
font-family: $interface-font-stack;
font-size: 1rem;
background-color: #fff;
padding: 1rem;
border: 1px solid $butler-color;
@include respond-to(md) {
width: 40%;
float: right;
margin-right: 0;
margin:1rem;
position: relative;
... | f5eed430ccfa96fce913816c88ae7e7b45f0b2c6 | css/components/_asides.scss | css/components/_asides.scss | SCSS |
<|file_sep|>original/patches/resource_request_details.patch
<|file_sep|>current/patches/resource_request_details.patch
<|file_sep|>updated/patches/resource_request_details.patch | diff --git a/content/public/browser/resource_request_details.cc b/content/public/browser/resource_request_details.cc
index ad5f47e..0873a32 100644
--- a/content/public/browser/resource_request_details.cc
+++ b/content/public/browser/resource_request_details.cc
@@ -22,6 +22,10 @@ ResourceRequestDetails::ResourceRequestD... | <|file_sep|>original/patches/resource_request_details.patch
<|file_sep|>current/patches/resource_request_details.patch
<|file_sep|>updated/patches/resource_request_details.patch
diff --git a/content/public/browser/resource_request_details.cc b/content/public/browser/resource_request_details.cc
index ad5f47e..0873a32 ... | 74e5522e51cb90770d1bdc59f375e8b96d79e220 | patches/resource_request_details.patch | patches/resource_request_details.patch | Diff |
<|file_sep|>original/Godeps/Godeps.json
{
"ImportPath": "github.com/verath/archipelago",
"GoVersion": "go1.7",
"GodepVersion": "v75",
"Deps": [
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.11.0-10-ga437dfd",
"Rev": "a437dfd2463eaedbec3dfe443e477d3b0a810b3f"
},
{
"ImportPath": "gith... | {
"ImportPath": "github.com/verath/archipelago",
"GoVersion": "go1.8",
"GodepVersion": "v79",
"Deps": [
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.11.0-10-ga437dfd",
"Rev": "a437dfd2463eaedbec3dfe443e477d3b0a810b3f"
},
{
"ImportPath": "github.com/gorilla/websocket",
"Comment":... | <|file_sep|>original/Godeps/Godeps.json
{
"ImportPath": "github.com/verath/archipelago",
"GoVersion": "go1.7",
"GodepVersion": "v75",
"Deps": [
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.11.0-10-ga437dfd",
"Rev": "a437dfd2463eaedbec3dfe443e477d3b0a810b3f"
},
{
"ImportPath": "gith... | d5cf92c879947606717f1d4884cb00f37b9485e7 | Godeps/Godeps.json | Godeps/Godeps.json | JSON |
<|file_sep|>original/.travis.yml
- { python: "3.6", env: DJANGO=2.0 }
- { python: "2.7", env: TOXENV=lint }
- { python: "2.7", env: TOXENV=docs }
exclude:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
all... | - { python: "3.6", env: DJANGO=2.0 }
- { python: "2.7", env: TOXENV=lint }
- { python: "2.7", env: TOXENV=docs }
exclude:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
allow_failures:
- env: DJANGO=... | <|file_sep|>original/.travis.yml
- { python: "3.6", env: DJANGO=2.0 }
- { python: "2.7", env: TOXENV=lint }
- { python: "2.7", env: TOXENV=docs }
exclude:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
all... | bc28b0c74f435a2c9e3a724d552f32845cfb9c70 | .travis.yml | .travis.yml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.