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|>src/clean_galaxy.sh.diff
original:
updated:
echo "===================="
<|file_sep|>src/clean_galaxy.sh.diff
original:
updated:
echo ""
<|file_sep|>original/src/clean_galaxy.sh
#!/bin/bash
echo "Remove virtualenv..."
rm -rf venv
echo "Drop database and user..."
if psql ${DB_NAME} -c '' 2>&1; then
ec... | #!/bin/bash
echo "Remove virtualenv..."
echo "===================="
rm -rf venv
echo ""
echo "Drop database and user..."
echo "========================="
./src/postgresql/clean_postgres_db.sh | <|file_sep|>src/clean_galaxy.sh.diff
original:
updated:
echo "===================="
<|file_sep|>src/clean_galaxy.sh.diff
original:
updated:
echo ""
<|file_sep|>original/src/clean_galaxy.sh
#!/bin/bash
echo "Remove virtualenv..."
rm -rf venv
echo "Drop database and user..."
if psql ${DB_NAME} -c '' 2>&1; then
ec... | 2d88c7d2a53a5ff3061dfbb294a2f1670be191af | src/clean_galaxy.sh | src/clean_galaxy.sh | Shell |
<|file_sep|>myfedora/lib/app_globals.py.diff
original:
from shove import Shove
from feedcache.cache import Cache
updated:
<|file_sep|>original/myfedora/lib/app_globals.py
"""The application's Globals object"""
from tg import config
from shove import Shove
from feedcache.cache import Cache
from app_factory import AppF... | """The application's Globals object"""
from tg import config
from app_factory import AppFactoryDict
class Globals(object):
"""Globals acts as a container for objects available throughout the
life of the application
"""
def __init__(self):
"""One instance of Globals is created during applicati... | <|file_sep|>myfedora/lib/app_globals.py.diff
original:
from shove import Shove
from feedcache.cache import Cache
updated:
<|file_sep|>original/myfedora/lib/app_globals.py
"""The application's Globals object"""
from tg import config
from shove import Shove
from feedcache.cache import Cache
from app_factory import AppF... | dca0598633350dfda2450552760ffbc774e63cb8 | myfedora/lib/app_globals.py | myfedora/lib/app_globals.py | Python |
<|file_sep|>public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js.diff
original:
$scope.global.user = user;
updated:
<|file_sep|>public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js.diff
original:
//$window.location.reload();
up... |
$rootScope.$emit('cart:updated');
$timeout(function() {
$scope.global.user = user;
$scope.global.isRegistered = true;
$state.go(returnState);
});
... | <|file_sep|>public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js.diff
original:
$scope.global.user = user;
updated:
<|file_sep|>public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js.diff
original:
//$window.location.reload();
up... | daa5604ff4397caf02158634803d9a50e3b179a9 | public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js | public/themes/lightweight/controllers/cart/checkout.as.guest.controller.js | JavaScript |
<|file_sep|>packages/preprocessors/conditional_import.js.diff
original:
var JSIO = jsio.__jsio;
updated:
var util = jsio.__jsio.__util;
<|file_sep|>packages/preprocessors/conditional_import.js.diff
original:
var modules = JSIO.__util.resolveModulePath(opts[i], path);
updated:
var modules = util.resolveModulePath(... | var conditionalImport = /(\s*import\s+)([^=+*"',\s\r\n;\/]+\|[^=+"',\s\r\n;\/]+)(\s*[^'";=]+)/gm;
function replace(path, raw, p1, p2, p3) {
if (!/\/\//.test(p1)) {
var opts = p2.split('|');
for(var i = 0; i < opts.length; i++) {
var modules = util.resolveModulePath(opts[i], path);
var found = false;
for... | <|file_sep|>packages/preprocessors/conditional_import.js.diff
original:
var JSIO = jsio.__jsio;
updated:
var util = jsio.__jsio.__util;
<|file_sep|>packages/preprocessors/conditional_import.js.diff
original:
var modules = JSIO.__util.resolveModulePath(opts[i], path);
updated:
var modules = util.resolveModulePath(... | 14623f3032599c4cd6814c7e9eee08c133e29d6c | packages/preprocessors/conditional_import.js | packages/preprocessors/conditional_import.js | JavaScript |
<|file_sep|>original/requirements.txt
click==7.0
coloredlogs==10.0
cryptography==2.7
docutils==0.14 # pyup: <0.15
future==0.17.1
github3.py==1.3.0
humanfriendly==4.18
jinja2==2.10.1
jwcrypto==0.6.0
keyring==18.0.1 # pyup: <19
lxml==4.3.4
MarkupSafe==1.1.1
plaintable==0.1.1
pycparser==2.19
python-dateutil==2.8.0
pytz=... | click==7.0
coloredlogs==10.0
cryptography==2.7
docutils==0.14 # pyup: <0.15
future==0.17.1
github3.py==1.3.0
humanfriendly==4.18
jinja2==2.10.1
jwcrypto==0.6.0
keyring==18.0.1 # pyup: <19
lxml==4.4.0
MarkupSafe==1.1.1
plaintable==0.1.1
pycparser==2.19
python-dateutil==2.8.0
pytz==2019.1
PyYAML==5.1.1
raven==6.10.0
re... | <|file_sep|>original/requirements.txt
click==7.0
coloredlogs==10.0
cryptography==2.7
docutils==0.14 # pyup: <0.15
future==0.17.1
github3.py==1.3.0
humanfriendly==4.18
jinja2==2.10.1
jwcrypto==0.6.0
keyring==18.0.1 # pyup: <19
lxml==4.3.4
MarkupSafe==1.1.1
plaintable==0.1.1
pycparser==2.19
python-dateutil==2.8.0
pytz=... | eadd61820aa8e63f78efa404e32f7fd032bb43fa | requirements.txt | requirements.txt | Text |
<|file_sep|>original/package.json
{
"name": "khan-linter",
"version": "0.0.1",
"repository": {
"type" : "git",
"url" : "https://github.com/Khan/khan-linter.git"
},
"dependencies": {
"jshint": "2.5.4",
"react-tools": "0.11.1",
"jstransform": "~6.0.1"
}
}
<|file... | {
"name": "khan-linter",
"version": "0.0.1",
"repository": {
"type" : "git",
"url" : "https://github.com/Khan/khan-linter.git"
},
"dependencies": {
"jshint": "2.5.4",
"react-tools": "0.12.0-rc1",
"jstransform": "~6.3.2"
}
} | <|file_sep|>original/package.json
{
"name": "khan-linter",
"version": "0.0.1",
"repository": {
"type" : "git",
"url" : "https://github.com/Khan/khan-linter.git"
},
"dependencies": {
"jshint": "2.5.4",
"react-tools": "0.11.1",
"jstransform": "~6.0.1"
}
}
<|file... | f8109b3143265b75b7a8ec2416ff7c7c721e9ace | package.json | package.json | JSON |
<|file_sep|>original/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml
<|file_sep|>current/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml
<|file_sep|>updated/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml | ---
fixes:
- Issue 144 - When performing a read we handled an empty byte return as an
indication to close the file pointer. This is not true when you actually
ask for a zero byte read so we should allow it. | <|file_sep|>original/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml
<|file_sep|>current/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml
<|file_sep|>updated/releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml
---
fixes:
- Issue 144 - When performing a read we handled an empty byte... | 91bb753d62c8788d0ed72292d5e1f37ed1a365e0 | releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml | releasenotes/notes/fix-zero-bytes-read-109628b72221cfe7.yaml | YAML |
<|file_sep|>original/src/data.json
{
"name": "Hack Club",
"title": "Hack Club: High school coding clubs",
"description":
"By the students, for the students. Join the movement of high school coding clubs around the world.",
"url": "https://hackclub.com",
"api": "https://api.hackclub.com",
"twitter": "@st... | {
"name": "Hack Club",
"title": "Hack Club: High school coding clubs",
"description":
"By the students, for the students. Join the movement of high school coding clubs around the world.",
"url": "https://hackclub.com",
"api": "https://api.hackclub.com",
"twitter": "@starthackclub",
"img": "https://hac... | <|file_sep|>original/src/data.json
{
"name": "Hack Club",
"title": "Hack Club: High school coding clubs",
"description":
"By the students, for the students. Join the movement of high school coding clubs around the world.",
"url": "https://hackclub.com",
"api": "https://api.hackclub.com",
"twitter": "@st... | d465c4806c1fce1bfd06df3514c4d0bb4e027ef9 | src/data.json | src/data.json | JSON |
<|file_sep|>src/Formatter/FormatterService.php.diff
original:
if (!isset($this->formatters[$type])) {
throw new \Exception(
sprintf('Content-type "%s" is not supported', $type)
);
updated:
foreach ($this->formatters as $formatter) {
foreach ($formatter... | * Retrieve the correct formatter by content-type string, e.g. "application/json"
*
* @param string $type
* @return Formatter
* @throws \Exception
*/
public function getFormatterByContentType(string $type) : Formatter
{
foreach ($this->formatters as $formatter) {
... | <|file_sep|>src/Formatter/FormatterService.php.diff
original:
if (!isset($this->formatters[$type])) {
throw new \Exception(
sprintf('Content-type "%s" is not supported', $type)
);
updated:
foreach ($this->formatters as $formatter) {
foreach ($formatter... | 69784fc4e082241052c6dcbfd63ce8e4b9626130 | src/Formatter/FormatterService.php | src/Formatter/FormatterService.php | PHP |
<|file_sep|>lib/provider/pivotal.rb.diff
original:
if auth.token.empty?
raise "You should pass a token for authentication"
end
updated:
<|file_sep|>original/lib/provider/pivotal.rb
# The authorize and initializer for this provider
def authorize(auth = {})
@authentication ||= TaskMapp... |
# The authorize and initializer for this provider
def authorize(auth = {})
@authentication ||= TaskMapper::Authenticator.new(auth)
auth = @authentication
if auth.token
PivotalAPI.token = auth.token
elsif auth.username && auth.password
PivotalAPI.authenticate(auth.userna... | <|file_sep|>lib/provider/pivotal.rb.diff
original:
if auth.token.empty?
raise "You should pass a token for authentication"
end
updated:
<|file_sep|>original/lib/provider/pivotal.rb
# The authorize and initializer for this provider
def authorize(auth = {})
@authentication ||= TaskMapp... | 663917f95cb3b3c02eab3724471ab341f03c5c6f | lib/provider/pivotal.rb | lib/provider/pivotal.rb | Ruby |
<|file_sep|>original/requirements/dev.txt
-r common.txt
PyYAML==3.12
bumpversion==0.5.3
coverage==4.5.1
cryptography==2.2.2
flake8==3.5.0
mock==2.0.0
pip==10.0.1
tox==3.0.0
watchdog==0.8.3
wheel==0.31.1
<|file_sep|>current/requirements/dev.txt
-r common.txt
PyYAML==3.12
bumpversion==0.5.3
coverage==4.5.1
cryptography==... | -r common.txt
PyYAML==4.1
bumpversion==0.5.3
coverage==4.5.1
cryptography==2.2.2
flake8==3.5.0
mock==2.0.0
pip==10.0.1
tox==3.0.0
watchdog==0.8.3
wheel==0.31.1 | <|file_sep|>original/requirements/dev.txt
-r common.txt
PyYAML==3.12
bumpversion==0.5.3
coverage==4.5.1
cryptography==2.2.2
flake8==3.5.0
mock==2.0.0
pip==10.0.1
tox==3.0.0
watchdog==0.8.3
wheel==0.31.1
<|file_sep|>current/requirements/dev.txt
-r common.txt
PyYAML==3.12
bumpversion==0.5.3
coverage==4.5.1
cryptography==... | 522ddee92af971da259874e820dde6984bd2c232 | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/_posts/2015-04-27-first-post.md
---
layout: post
title: First Post
description: "First Post on new blog site"
tags: []
date: 2015-04-27 00:10:00
---
So I created this site to be my blog/portfolio site. I was using blogger but I wanted more customization to learn some new things and since I already ... | ---
layout: post
title: First Post
description: "First Post on new blog site"
tags: []
date: 2015-04-27 00:10:00
image:
feature: abstract-10.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
---
So I created this site to be my blog/portf... | <|file_sep|>original/_posts/2015-04-27-first-post.md
---
layout: post
title: First Post
description: "First Post on new blog site"
tags: []
date: 2015-04-27 00:10:00
---
So I created this site to be my blog/portfolio site. I was using blogger but I wanted more customization to learn some new things and since I already ... | 855d5653c48c29ff169d33312ee2aef2d49d2f00 | _posts/2015-04-27-first-post.md | _posts/2015-04-27-first-post.md | Markdown |
<|file_sep|>original/requirements.txt
boto3==1.9.3
botocore==1.12.3
Collectfast==0.6.2
dj_database_url==0.5.0
django-debug-toolbar==1.9.1
django-ordered-model==2.0.0
django-s3-folder-storage==0.5
django-storages==1.7.1
Django==2.0.7
docutils==0.14
gunicorn==19.8.1
jmespath==0.9.3
pillow==5.2.0
psycopg2-binary==2.7.5
py... | boto3==1.9.3
botocore==1.12.3
Collectfast==0.6.2
dj_database_url==0.5.0
django-debug-toolbar==1.9.1
django-ordered-model==2.1.0
django-s3-folder-storage==0.5
django-storages==1.7.1
Django==2.0.7
docutils==0.14
gunicorn==19.8.1
jmespath==0.9.3
pillow==5.2.0
psycopg2-binary==2.7.5
python-dateutil==2.7.3
python-decouple==... | <|file_sep|>original/requirements.txt
boto3==1.9.3
botocore==1.12.3
Collectfast==0.6.2
dj_database_url==0.5.0
django-debug-toolbar==1.9.1
django-ordered-model==2.0.0
django-s3-folder-storage==0.5
django-storages==1.7.1
Django==2.0.7
docutils==0.14
gunicorn==19.8.1
jmespath==0.9.3
pillow==5.2.0
psycopg2-binary==2.7.5
py... | 2d9bf5c7308cc89cc100fb72d45d09936a56ce4f | requirements.txt | requirements.txt | Text |
<|file_sep|>.build.yaml.diff
original:
updated:
version: ">= 1.3.2"
<|file_sep|>original/.build.yaml
dependencies:
- name: kms-cmake-utils
- name: jsoncpp
<|file_sep|>current/.build.yaml
dependencies:
- name: kms-cmake-utils
version: ">= 1.3.2"
- name: jsoncpp
<|file_sep|>updated/.build.yaml | dependencies:
- name: kms-cmake-utils
version: ">= 1.3.2"
- name: jsoncpp
version: ">= 1.6.3" | <|file_sep|>.build.yaml.diff
original:
updated:
version: ">= 1.3.2"
<|file_sep|>original/.build.yaml
dependencies:
- name: kms-cmake-utils
- name: jsoncpp
<|file_sep|>current/.build.yaml
dependencies:
- name: kms-cmake-utils
version: ">= 1.3.2"
- name: jsoncpp
<|file_sep|>updated/.build.yaml
dependenci... | 5c57a1eff491c425be7c182861767d1bd1d6bfd6 | .build.yaml | .build.yaml | YAML |
<|file_sep|>original/requirements-test.txt
# Testing
coverage==6.1.1 # Test coverage
flake8==4.0.1 # Python linting
mypy==0.782 # Static typing
<|file_sep|>current/requirements-test.txt
# Testing
coverage==6.1.1 # Test coverage
flake8==4.0.1 ... | # Testing
coverage==6.1.1 # Test coverage
flake8==4.0.1 # Python linting
mypy==0.910 # Static typing | <|file_sep|>original/requirements-test.txt
# Testing
coverage==6.1.1 # Test coverage
flake8==4.0.1 # Python linting
mypy==0.782 # Static typing
<|file_sep|>current/requirements-test.txt
# Testing
coverage==6.1.1 # Test coverage
flake8==4.0.1 ... | b78fb38cbaacfa7de0e6f0648c868fb9dfe8e57d | requirements-test.txt | requirements-test.txt | Text |
<|file_sep|>original/scripts/migrate_unconfirmed_valid_users.py
<|file_sep|>current/scripts/migrate_unconfirmed_valid_users.py
<|file_sep|>updated/scripts/migrate_unconfirmed_valid_users.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Script to migrate users with a valid date_last_login but no date_confirmed."""
import sys
import logging
from website.app import init_app
from website.models import User
from scripts import utils as script_utils
from tests.base import OsfTestCase
from tests.factories i... | <|file_sep|>original/scripts/migrate_unconfirmed_valid_users.py
<|file_sep|>current/scripts/migrate_unconfirmed_valid_users.py
<|file_sep|>updated/scripts/migrate_unconfirmed_valid_users.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Script to migrate users with a valid date_last_login but no date_confirmed."""
... | 5a857703de5fc1e67e958afb41a10db07b98bfa1 | scripts/migrate_unconfirmed_valid_users.py | scripts/migrate_unconfirmed_valid_users.py | Python |
<|file_sep|>original/makePresentation.sh
<|file_sep|>current/makePresentation.sh
<|file_sep|>updated/makePresentation.sh | #!/bin/sh
# Make presentation
pandoc src/presentation.md \
--to revealjs \
--variable revealjs-url="revealjs" \
--variable slideNumber="\"c/t\"" \
--variable transition="none" \
--variable controls="false" \
--variable history="true" \
--smart \
--css "custom.css" \
-o public/index.html | <|file_sep|>original/makePresentation.sh
<|file_sep|>current/makePresentation.sh
<|file_sep|>updated/makePresentation.sh
#!/bin/sh
# Make presentation
pandoc src/presentation.md \
--to revealjs \
--variable revealjs-url="revealjs" \
--variable slideNumber="\"c/t\"" \
--variable transition="none" \
--variabl... | 068e098e74f82a1b4390b3fdde80c5a47121b459 | makePresentation.sh | makePresentation.sh | Shell |
<|file_sep|>original/CHANGELOG.md
## 3.0.0-rc.0 (2016-12-10)
- Switched to Targaryen 3.0.0-rc.0 Next version support
- Set must.js to latest 0.13.2
Thanks [Damien Lebrun](@dinoboff)
## 1.0.0 (2015-11-03)
- First release supporting Targaryen ^2.0.0 and Must.js ^0.13.1.
<|file_sep|>current/CHANGELOG.md
## 3.0.0-rc.0 (2... | ## 3.0.0-rc.0 (2016-12-10)
- Switched to Targaryen 3.0.0-rc.0 Next version support
- Set must.js to latest 0.13.2
Thanks [Damien Lebrun](https://github.com/dinoboff)
## 1.0.0 (2015-11-03)
- First release supporting Targaryen ^2.0.0 and Must.js ^0.13.1. | <|file_sep|>original/CHANGELOG.md
## 3.0.0-rc.0 (2016-12-10)
- Switched to Targaryen 3.0.0-rc.0 Next version support
- Set must.js to latest 0.13.2
Thanks [Damien Lebrun](@dinoboff)
## 1.0.0 (2015-11-03)
- First release supporting Targaryen ^2.0.0 and Must.js ^0.13.1.
<|file_sep|>current/CHANGELOG.md
## 3.0.0-rc.0 (2... | 4372f33419c9ab0db16bf93368dc2f81bd23e27e | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/CHANGELOG.md
# Release 2.2.0 22-01-2020
- Fix bug in support for multiple services (APIs) in one service config
- Update CORS selector display names with path suffix instead of index
- Support `additional_binding` options for gRPC-JSON transcoding
- Fix bug in OpenID Connect Discovery
- Add x509 s... | # Release 2.3.0 28-01-2020
- Use IAM with delegation in backend auth and service control
- Support deadlines in BackendRule
- Support grpc http2 for dynamic routing
- Add trace events when checking service control cache
# Release 2.2.0 22-01-2020
- Fix bug in support for multiple services (APIs) in one service confi... | <|file_sep|>original/CHANGELOG.md
# Release 2.2.0 22-01-2020
- Fix bug in support for multiple services (APIs) in one service config
- Update CORS selector display names with path suffix instead of index
- Support `additional_binding` options for gRPC-JSON transcoding
- Fix bug in OpenID Connect Discovery
- Add x509 s... | 15fdf2b80a46b9625f9a1d2c02723322c79f8a6f | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.3
# Testing
pytest==3.1.0
pep8==1.7.0
pyflakes==1.5.0
tox==2.7.0
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0... | cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.3
# Testing
pytest==3.1.1
pep8==1.7.0
pyflakes==1.5.0
tox==2.7.0
pytest-cookies==0.2.0 | <|file_sep|>original/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.3
# Testing
pytest==3.1.0
pep8==1.7.0
pyflakes==1.5.0
tox==2.7.0
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0... | c9e7ddf01aab2a20c189e143f4bc75a29564b3d3 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "12"
- "10"
- "8"
cache:
directories:
- ~/.npm
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- "12"
- "10"
- "8"
cache:
directories:
- ~/.npm
<|file_sep|>updated/.travis.yml | sudo: false
language: node_js
node_js:
- "13"
- "12"
- "10"
- "8"
cache:
directories:
- ~/.npm | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "12"
- "10"
- "8"
cache:
directories:
- ~/.npm
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- "12"
- "10"
- "8"
cache:
directories:
- ~/.npm
<|file_sep|>updated/.travis.yml
sudo: false
language: n... | 3b3f5630beb697e7230eead2dddc500e4134b2ce | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.6
install:
- composer self-update
before_script:
- cp .env.travis .env
- cp travis.phpunit.xml phpunit.xml
- mkdir /tmp/timegrid
- mysql -e 'create database test_timegrid;'
- composer install --dev --no-interaction
- php artisan key:generate
-... | language: php
php:
- 5.5.9
- 5.6
install:
- composer self-update
before_script:
- cp .env.travis .env
- cp travis.phpunit.xml phpunit.xml
- mkdir /tmp/timegrid
- mysql -e 'create database test_timegrid;'
- composer install --dev --no-interaction
- php artisan key:generate
- php artisan migrate
... | <|file_sep|>original/.travis.yml
language: php
php:
- 5.6
install:
- composer self-update
before_script:
- cp .env.travis .env
- cp travis.phpunit.xml phpunit.xml
- mkdir /tmp/timegrid
- mysql -e 'create database test_timegrid;'
- composer install --dev --no-interaction
- php artisan key:generate
-... | dfbec933f6872ad7013c78c56f7b6dfa1d4b6a04 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/home/index.html.erb
</div>
</div>
<div class="col-md-4">
<h3>Latest watched episodes</h3>
<div class="seen">
<%= render partial: 'episode_table', object: @seen_episodes, as: :episodes %>
</div>
</div>
<div class="col-md-4">
... | <%= render partial: 'episode_table', object: @unseen_episodes, as: :episodes %>
</div>
</div>
<div class="col-md-4">
<h3>Latest watched episodes</h3>
<div class="seen">
<%= render partial: 'episode_table', object: @seen_episodes, as: :episodes %>
</div>
... | <|file_sep|>original/app/views/home/index.html.erb
</div>
</div>
<div class="col-md-4">
<h3>Latest watched episodes</h3>
<div class="seen">
<%= render partial: 'episode_table', object: @seen_episodes, as: :episodes %>
</div>
</div>
<div class="col-md-4">
... | 5fb829b1f408d8d157d897ddb4560144e46550e5 | app/views/home/index.html.erb | app/views/home/index.html.erb | HTML+ERB |
<|file_sep|>db/migrate/20180321094200_populate_full_approval_workflow.rb.diff
original:
class MigrateableCase < ActiveRecord::Base
updated:
class Case::Base < ApplicationRecord
<|file_sep|>original/db/migrate/20180321094200_populate_full_approval_workflow.rb
through: :approver_assignments,
... | through: :approver_assignments,
source: :team
def flagged_for_press_office_clearance?
approving_teams.include?(BusinessUnit.press_office)
end
end
def up
Case::Base.find_each do |kase|
if kase.flagged_for_press_office_clearance?
kase.update(workflow: 'full... | <|file_sep|>db/migrate/20180321094200_populate_full_approval_workflow.rb.diff
original:
class MigrateableCase < ActiveRecord::Base
updated:
class Case::Base < ApplicationRecord
<|file_sep|>original/db/migrate/20180321094200_populate_full_approval_workflow.rb
through: :approver_assignments,
... | 8bd4b97b317e05bc7b49634d2f6369a20fe883a2 | db/migrate/20180321094200_populate_full_approval_workflow.rb | db/migrate/20180321094200_populate_full_approval_workflow.rb | Ruby |
<|file_sep|>app/views/sessions/new.haml.diff
original:
%tr#username
updated:
%tr#username-row
<|file_sep|>original/app/views/sessions/new.haml
= form_tag login_path, method: :post do
%table.form-table
%thead
%tr
%th{colspan: 2} Sign In
%tbody
%tr#username
%th.sub.vtop U... | = form_tag login_path, method: :post do
%table.form-table
%thead
%tr
%th{colspan: 2} Sign In
%tbody
%tr#username-row
%th.sub.vtop Username
%td.even= text_field_tag :username, params[:username], placeholder: "Username"
%tr#password-row
%th.sub.vtop Password
... | <|file_sep|>app/views/sessions/new.haml.diff
original:
%tr#username
updated:
%tr#username-row
<|file_sep|>original/app/views/sessions/new.haml
= form_tag login_path, method: :post do
%table.form-table
%thead
%tr
%th{colspan: 2} Sign In
%tbody
%tr#username
%th.sub.vtop U... | a3aa58e68e223967904d67b91f4296184960b071 | app/views/sessions/new.haml | app/views/sessions/new.haml | Haml |
<|file_sep|>packages/components/components/dropdown/DropdownMenu.tsx.diff
original:
<ul className={classnames(['unstyled mt0 mb0 ml1 mr1', className])}>
updated:
<ul className={classnames(['unstyled mt0 mb0', className])}>
<|file_sep|>original/packages/components/components/dropdown/DropdownMenu... | children: React.ReactNode;
className?: string;
}
const DropdownMenu = ({ children, className = '' }: Props) => {
return (
<div className="dropDown-content">
<ul className={classnames(['unstyled mt0 mb0', className])}>
{React.Children.toArray(children).map((child, i) => {... | <|file_sep|>packages/components/components/dropdown/DropdownMenu.tsx.diff
original:
<ul className={classnames(['unstyled mt0 mb0 ml1 mr1', className])}>
updated:
<ul className={classnames(['unstyled mt0 mb0', className])}>
<|file_sep|>original/packages/components/components/dropdown/DropdownMenu... | a2e1a18d9987d608c4987c072e32b5e1299e80da | packages/components/components/dropdown/DropdownMenu.tsx | packages/components/components/dropdown/DropdownMenu.tsx | TypeScript |
<|file_sep|>lib/views/request/_next_actions.rhtml.diff
original:
<%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">', "http://helpmeinvestigate.com/"%>
updated:
<%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">'.html_safe, "http://helpmeinvestigate.com/"%>... | <div class="act_link">
<%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">'.html_safe, "http://helpmeinvestigate.com/"%>
<%= link_to 'Get help investigating', "http://helpmeinvestigate.com/"%>
</div>
<div class="act_link">
<%= link_to '<img src="/images/writetot... | <|file_sep|>lib/views/request/_next_actions.rhtml.diff
original:
<%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">', "http://helpmeinvestigate.com/"%>
updated:
<%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">'.html_safe, "http://helpmeinvestigate.com/"%>... | ad134c6ca1517eea60dfaf96a919a9995f7fc895 | lib/views/request/_next_actions.rhtml | lib/views/request/_next_actions.rhtml | RHTML |
<|file_sep|>apps/comments/models.py.diff
original:
if created:
if instance.user == mentor:
recipient = protege
updated:
if instance.user == mentor:
recipient = protege
<|file_sep|>apps/comments/models.py.diff
original:
elif instance.user == protege:
recipient = me... |
def comment_saved(sender, instance, created, **kwargs):
mentor = instance.content_object.mentor
protege = instance.content_object.protege
meeting_url = instance.content_object.get_url_with_domain()
if instance.user == mentor:
recipient = protege
elif instance.user == protege:
reci... | <|file_sep|>apps/comments/models.py.diff
original:
if created:
if instance.user == mentor:
recipient = protege
updated:
if instance.user == mentor:
recipient = protege
<|file_sep|>apps/comments/models.py.diff
original:
elif instance.user == protege:
recipient = me... | fafd048452ebfb3379ab428cc74e795d3406478f | apps/comments/models.py | apps/comments/models.py | Python |
<|file_sep|>original/PyFVCOM/__init__.py
"""
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '2.0.0'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!... | """
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '2.0.0'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave', 'Michael Bedington']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!
from PyFVCOM import... | <|file_sep|>original/PyFVCOM/__init__.py
"""
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '2.0.0'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!... | fcad1fa7187fe81d80b8861df2851402be01b667 | PyFVCOM/__init__.py | PyFVCOM/__init__.py | Python |
<|file_sep|>original/_config.yml
name: "Carpool Vote - Vote America"
description: "Get a ride or share a ride in the 2016 US presidential election. Every American DESERVES a vote!"
markdown: kramdown
highlighter: pygments
permalink: :title/
relative_permalinks: false
api: "https://api.carpoolvote.com/live/"
<|file_s... | name: "Carpool Vote - Vote America"
description: "Get a ride or share a ride in the 2016 US presidential election. Every American DESERVES a vote!"
markdown: kramdown
highlighter: rouge
permalink: :title/
relative_permalinks: false
api: "https://api.carpoolvote.com/live/" | <|file_sep|>original/_config.yml
name: "Carpool Vote - Vote America"
description: "Get a ride or share a ride in the 2016 US presidential election. Every American DESERVES a vote!"
markdown: kramdown
highlighter: pygments
permalink: :title/
relative_permalinks: false
api: "https://api.carpoolvote.com/live/"
<|file_s... | 00c941abacc29a463719cd2cb7c956c1c1d81eba | _config.yml | _config.yml | YAML |
<|file_sep|>.travis.yml.diff
original:
- "6"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6"
- "8"
- "10"
before_install:
- if [[ `npm -v` < 5.3 ]]; then npm install -g npm@5.3.x; fi
script:
- npm test -- --coverage
- npm run compile
- npm run test:bundles
after_success:
- ... | language: node_js
node_js:
- "8"
- "10"
before_install:
- if [[ `npm -v` < 5.3 ]]; then npm install -g npm@5.3.x; fi
script:
- npm run prepublish
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | <|file_sep|>.travis.yml.diff
original:
- "6"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6"
- "8"
- "10"
before_install:
- if [[ `npm -v` < 5.3 ]]; then npm install -g npm@5.3.x; fi
script:
- npm test -- --coverage
- npm run compile
- npm run test:bundles
after_success:
- ... | 0d2bf2ca9fb616bb4cdfa345ac37cae1cd8c35bd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/jdroid-gradle-commons-plugin/src/main/groovy/com/jdroid/gradle/java/JavaGradlePlugin.groovy
import com.jdroid.gradle.commons.JavaBaseGradlePlugin
import org.gradle.api.Project
public class JavaGradlePlugin extends JavaBaseGradlePlugin {
public void apply(Project project) {
super.apply(project... | import com.jdroid.gradle.commons.JavaBaseGradlePlugin
import org.gradle.api.Project
public class JavaGradlePlugin extends JavaBaseGradlePlugin {
public void apply(Project project) {
super.apply(project)
project.apply plugin: 'java'
project.compileJava {
sourceCompatibility getJavaSourceCompatibility()
... | <|file_sep|>original/jdroid-gradle-commons-plugin/src/main/groovy/com/jdroid/gradle/java/JavaGradlePlugin.groovy
import com.jdroid.gradle.commons.JavaBaseGradlePlugin
import org.gradle.api.Project
public class JavaGradlePlugin extends JavaBaseGradlePlugin {
public void apply(Project project) {
super.apply(project... | cc4377c9128ad144e00e64761b885b9856c2ef7a | jdroid-gradle-commons-plugin/src/main/groovy/com/jdroid/gradle/java/JavaGradlePlugin.groovy | jdroid-gradle-commons-plugin/src/main/groovy/com/jdroid/gradle/java/JavaGradlePlugin.groovy | Groovy |
<|file_sep|>original/tests/helpers/test-module-dependencies.js
});
};
});
it('should load the module without error', function () {
expect(function () {
this.runModule();
}.bind(this)).not.toThrow();
... |
this.runModule = function () {
inject(function ($rootScope, $route) {
this.$rootScope = $rootScope;
this.$route = $route;
});
};
});
it('should load the module without error... | <|file_sep|>original/tests/helpers/test-module-dependencies.js
});
};
});
it('should load the module without error', function () {
expect(function () {
this.runModule();
}.bind(this)).not.toThrow();
... | 6a5207d0c5765a1d958e93db79545b494a142729 | tests/helpers/test-module-dependencies.js | tests/helpers/test-module-dependencies.js | JavaScript |
<|file_sep|>original/scripts/check-config-file.sh
function downloadURL {
URL="$1"
echo "Checking '$URL'..."
curl --fail "$URL" -o '/tmp/image'
}
function checkViewsurf {
echo ""
echo "Checking images of type '$1'" ...
IMAGES=$(grep "$1" "$CONFIGURATION_FILE" | grep -v -e "type" | tr -s " " | c... | function downloadURL {
URL="$1"
echo "Checking '$URL'..."
curl --fail "$URL" -o '/tmp/image'
}
function checkViewsurf {
echo ""
echo "Checking images of type '$1'" ...
IMAGES=$(grep "$1" "$CONFIGURATION_FILE" | grep -v -e "type" -e "backup" | tr -s " " | cut -d '"' -f 4)
for IMAGE in $IMA... | <|file_sep|>original/scripts/check-config-file.sh
function downloadURL {
URL="$1"
echo "Checking '$URL'..."
curl --fail "$URL" -o '/tmp/image'
}
function checkViewsurf {
echo ""
echo "Checking images of type '$1'" ...
IMAGES=$(grep "$1" "$CONFIGURATION_FILE" | grep -v -e "type" | tr -s " " | c... | 79174ff809280a183714fb08707cdfe037012a02 | scripts/check-config-file.sh | scripts/check-config-file.sh | Shell |
<|file_sep|>original/README.md
# emoji-weather [](https://travis-ci.org/justincampbell/emoji-weather)
The current weather expressed as Emoji.
## Usage
1. Register for a [Forecast.io Developer Account](https://developer.forecast.io/)... | # emoji-weather [](https://travis-ci.org/justincampbell/emoji-weather)
The current weather expressed as Emoji.
## Installation
Download the latest binary for you platform from the [Releases page](https://github.com/justincampbell/em... | <|file_sep|>original/README.md
# emoji-weather [](https://travis-ci.org/justincampbell/emoji-weather)
The current weather expressed as Emoji.
## Usage
1. Register for a [Forecast.io Developer Account](https://developer.forecast.io/)... | bfc90639c9e9f0e4094d75e6d26541747efae92b | README.md | README.md | Markdown |
<|file_sep|>original/README.md
# data-pump
Second team project for UT Coding Bootcamp
<|file_sep|>current/README.md
# data-pump
Second team project for UT Coding Bootcamp
<|file_sep|>updated/README.md | # data-pump [](https://circleci.com/gh/zenglenn42/data-pump)
Second team project for UT Coding Bootcamp | <|file_sep|>original/README.md
# data-pump
Second team project for UT Coding Bootcamp
<|file_sep|>current/README.md
# data-pump
Second team project for UT Coding Bootcamp
<|file_sep|>updated/README.md
# data-pump [](ht... | 27c129151d76a9da86d2170cf90ed6ee6a6a39e8 | README.md | README.md | Markdown |
<|file_sep|>alltests.cmd.diff
original:
updated:
nosetests
del coverage\tracer.pyd
<|file_sep|>alltests.cmd.diff
original:
updated:
del coverage\tracer.pyd
nosetests
<|file_sep|>alltests.cmd.diff
original:
updated:
nosetests
del coverage\tracer.pyd
<|file_sep|>original/alltests.cmd
call \ned\bin\switchpy 23
python s... | call \ned\bin\switchpy 23
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 24
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 25
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 26
python setup... | <|file_sep|>alltests.cmd.diff
original:
updated:
nosetests
del coverage\tracer.pyd
<|file_sep|>alltests.cmd.diff
original:
updated:
del coverage\tracer.pyd
nosetests
<|file_sep|>alltests.cmd.diff
original:
updated:
nosetests
del coverage\tracer.pyd
<|file_sep|>original/alltests.cmd
call \ned\bin\switchpy 23
python s... | 0c531a17ab71812eaecb03de7c1b8c3ffadcaaae | alltests.cmd | alltests.cmd | Batchfile |
<|file_sep|>original/examples/motion_example.py
Whenever the motion click detects an event, it flashes all LED's ten times.
The user must press Ctrl+C to terminate the program.
The Motion Click must be inserted in Mikrobus 1 before running this program.
"""
from letmecreate.core.common import MIKROBUS_1
from letmecr... |
Whenever the motion click detects an event, it flashes all LED's ten times.
The user must press Ctrl+C to terminate the program.
The Motion Click must be inserted in Mikrobus 1 before running this program.
"""
from letmecreate.core.common import MIKROBUS_1
from letmecreate.core import led
from letmecreate.click impo... | <|file_sep|>original/examples/motion_example.py
Whenever the motion click detects an event, it flashes all LED's ten times.
The user must press Ctrl+C to terminate the program.
The Motion Click must be inserted in Mikrobus 1 before running this program.
"""
from letmecreate.core.common import MIKROBUS_1
from letmecr... | e0f80de15d1ddabc3bd47d6396edbaaac5a08041 | examples/motion_example.py | examples/motion_example.py | Python |
<|file_sep|>loginza/models.py.diff
original:
updated:
new_username = None
<|file_sep|>loginza/models.py.diff
original:
try:
User.objects.get(username=username)
except User.DoesNotExist:
updated:
qs = User.objects.all()
qs = qs.filter(username=new_... | class Meta:
unique_together = (('identity', 'provider'),)
def associate(self, user):
self.user = user
self.save()
post_associate.send(sender=type(self), instance=self)
def create_user(self, username, email, password=None):
existing_users = 0
new_username = N... | <|file_sep|>loginza/models.py.diff
original:
updated:
new_username = None
<|file_sep|>loginza/models.py.diff
original:
try:
User.objects.get(username=username)
except User.DoesNotExist:
updated:
qs = User.objects.all()
qs = qs.filter(username=new_... | cf19d5a52237e6098dedc3c0bbfdaa3aedd180e0 | loginza/models.py | loginza/models.py | Python |
<|file_sep|>setup.py.diff
original:
version="0.1.3",
updated:
version="0.1.6",
<|file_sep|>original/setup.py
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
... | import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.6",
license="BSD",
url="https://github.com/DangerOnTheRanger/xonsh-apt-tabcomplete",
downlo... | <|file_sep|>setup.py.diff
original:
version="0.1.3",
updated:
version="0.1.6",
<|file_sep|>original/setup.py
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
... | ea0058f3c360f8b1f847edab77aa650761ea8e77 | setup.py | setup.py | Python |
<|file_sep|>packages/de/delude.yaml.diff
original:
hash: 46b5592d3424c0e4429abec3260eb761ca29aa956827e6d32c3931809f9fbf59
updated:
hash: fb83bb2af4e052c18135edaf3dbe934e6fd1129b9dba1dbf04759d119ebf92ab
<|file_sep|>packages/de/delude.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/de/delude.yaml
... | homepage: ''
changelog-type: ''
hash: fb83bb2af4e052c18135edaf3dbe934e6fd1129b9dba1dbf04759d119ebf92ab
test-bench-deps: {}
maintainer: sgschlesinger@gmail.com
synopsis: Generalized the Prelude more functionally.
changelog: ''
basic-deps:
base: ! '>=4.9 && <4.10'
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.0.2'
- '0.... | <|file_sep|>packages/de/delude.yaml.diff
original:
hash: 46b5592d3424c0e4429abec3260eb761ca29aa956827e6d32c3931809f9fbf59
updated:
hash: fb83bb2af4e052c18135edaf3dbe934e6fd1129b9dba1dbf04759d119ebf92ab
<|file_sep|>packages/de/delude.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/de/delude.yaml
... | 70bf4b8e34e0c3563bdfa59443301d04fccc5447 | packages/de/delude.yaml | packages/de/delude.yaml | YAML |
<|file_sep|>build.sbt.diff
original:
scalaVersion := "2.11.2"
updated:
scalaVersion := "2.11.4"
<|file_sep|>original/build.sbt
organization := "tv.cntt"
name := "agent7"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.2"
autoScalaLibrary := false
javacOptions ++= Seq("-Xlint:deprecation")
// File wat... | organization := "tv.cntt"
name := "agent7"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.4"
autoScalaLibrary := false
// Do not append Scala versions to the generated artifacts
crossPaths := false
javacOptions ++= Seq("-Xlint:deprecation")
// File watch API in Java 7+ is used
scalacOptions += "-ta... | <|file_sep|>build.sbt.diff
original:
scalaVersion := "2.11.2"
updated:
scalaVersion := "2.11.4"
<|file_sep|>original/build.sbt
organization := "tv.cntt"
name := "agent7"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.2"
autoScalaLibrary := false
javacOptions ++= Seq("-Xlint:deprecation")
// File wat... | e20f7f6f48caad1ab8e02ae369312c558a7c73d2 | build.sbt | build.sbt | Scala |
<|file_sep|>original/app/groups/utils.py
from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a ema... | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people using a standard ... | <|file_sep|>original/app/groups/utils.py
from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a ema... | d3beb067abca8a2c014ca8039556181881310392 | app/groups/utils.py | app/groups/utils.py | Python |
<|file_sep|>original/include/clang/CodeGen/ModuleBuilder.h
class Module;
}
namespace clang {
class Diagnostic;
class LangOptions;
class CodeGenOptions;
class CodeGenerator : public ASTConsumer {
public:
virtual llvm::Module* GetModule() = 0;
virtual llvm::Module* ReleaseModule() = 0;
};
CodeG... | namespace clang {
class Diagnostic;
class LangOptions;
class CodeGenOptions;
class CodeGenerator : public ASTConsumer {
public:
virtual llvm::Module* GetModule() = 0;
virtual llvm::Module* ReleaseModule() = 0;
};
/// CreateLLVMCodeGen - Create a CodeGenerator instance.
/// It is the responsibi... | <|file_sep|>original/include/clang/CodeGen/ModuleBuilder.h
class Module;
}
namespace clang {
class Diagnostic;
class LangOptions;
class CodeGenOptions;
class CodeGenerator : public ASTConsumer {
public:
virtual llvm::Module* GetModule() = 0;
virtual llvm::Module* ReleaseModule() = 0;
};
CodeG... | 690c2e22d48c37fa590e9e93595fc5c5ee0d1eab | include/clang/CodeGen/ModuleBuilder.h | include/clang/CodeGen/ModuleBuilder.h | C |
<|file_sep|>original/st2common/tests/test_util_sandboxing.py
<|file_sep|>current/st2common/tests/test_util_sandboxing.py
<|file_sep|>updated/st2common/tests/test_util_sandboxing.py | import os
import sys
import unittest
import mock
from st2common.util.sandboxing import get_sandbox_python_path
class SandboxingUtilsTestCase(unittest.TestCase):
@mock.patch('st2common.util.sandboxing.get_python_lib')
def test_get_sandbox_python_path(self, mock_get_python_lib):
# No inheritence
... | <|file_sep|>original/st2common/tests/test_util_sandboxing.py
<|file_sep|>current/st2common/tests/test_util_sandboxing.py
<|file_sep|>updated/st2common/tests/test_util_sandboxing.py
import os
import sys
import unittest
import mock
from st2common.util.sandboxing import get_sandbox_python_path
class SandboxingUtilsT... | d7641279fee4adcf393a68143612199773fcd4c2 | st2common/tests/test_util_sandboxing.py | st2common/tests/test_util_sandboxing.py | Python |
<|file_sep|>original/config/routes.php
<?php
use Cake\Routing\Route\DashedRoute;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::plugin('Captcha', ['path' => '/captcha'], function (RouteBuilder $routes) {
$routes->setExtensions(['png', 'jpg']);
$routes->fallbacks(DashedRoute::class);
});
<|file_sep|... | <?php
/**
* @var \Cake\Routing\RouteBuilder $routes
*/
use Cake\Routing\Route\DashedRoute;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::plugin('Captcha', ['path' => '/captcha'], function (RouteBuilder $routes) {
$routes->setExtensions(['png', 'jpg']);
$routes->fallbacks(DashedRoute::class);
}); | <|file_sep|>original/config/routes.php
<?php
use Cake\Routing\Route\DashedRoute;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::plugin('Captcha', ['path' => '/captcha'], function (RouteBuilder $routes) {
$routes->setExtensions(['png', 'jpg']);
$routes->fallbacks(DashedRoute::class);
});
<|file_sep|... | eb9f4fa0764c488d326cb92bc44e1b33ca6073bf | config/routes.php | config/routes.php | PHP |
<|file_sep|>src/api/java/com/continuuity/api/procedure/ProcedureContext.java.diff
original:
* Given a name of dataset, returns an instance of {@link DataSet}
* @param name of the {@link DataSet}
* @return An instance of {@link DataSet}
updated:
* Given a name of dataset, returns an instance of {@link DataSe... | /*
* Copyright 2012-2013 Continuuity,Inc. All Rights Reserved.
*/
package com.continuuity.api.procedure;
import com.continuuity.api.data.DataSet;
/**
* This interface represents the Procedure context, which consists of set of methods for
* acquiring instance of {@link DataSet}
*/
public interface ProcedureConte... | <|file_sep|>src/api/java/com/continuuity/api/procedure/ProcedureContext.java.diff
original:
* Given a name of dataset, returns an instance of {@link DataSet}
* @param name of the {@link DataSet}
* @return An instance of {@link DataSet}
updated:
* Given a name of dataset, returns an instance of {@link DataSe... | 5652fff43f1e460ba66ec3a870b1d6b2d0deb30c | src/api/java/com/continuuity/api/procedure/ProcedureContext.java | src/api/java/com/continuuity/api/procedure/ProcedureContext.java | Java |
<|file_sep|>original/lib/vapebot/message.rb
end
def parse_source(source)
return source.scan(/\w+/).first
end
def maybe_fact?
puts "Found args... #{args}"
if args[0..1] == ":!"
return true
else
return false
end
end
def parse_fact
@fact, *@fact_args = args.split($;, 3)
... | end
def parse_source(source)
return source.scan(/\w+/).first
end
def maybe_fact?
puts "Found args... #{args}"
if args[0..1] == ":!"
return true
else
return false
end
end
def parse_fact
@fact, *@fact_args = args.split(" ", 3)
@fact = @fact[2..-1]
end
end
| <|file_sep|>original/lib/vapebot/message.rb
end
def parse_source(source)
return source.scan(/\w+/).first
end
def maybe_fact?
puts "Found args... #{args}"
if args[0..1] == ":!"
return true
else
return false
end
end
def parse_fact
@fact, *@fact_args = args.split($;, 3)
... | 0609dc1a9790cbeb3b6f63e0878a5f593229087f | lib/vapebot/message.rb | lib/vapebot/message.rb | Ruby |
<|file_sep|>bower.json.diff
original:
"bootstrap": "~3",
"angular": "~1.3",
"angular-resource": "~1.3",
"angular-animate": "~1.3",
"angular-mocks": "~1.3",
"angular-bootstrap": "~0.13",
"angular-ui-utils": "bower",
"angular-ui-router": "~0.2",
updated:
"bootstrap": "~3.3.5",
"ang... | "version": "0.0.1",
"description": "",
"dependencies": {
"bootstrap": "~3.3.5",
"angular": "~1.2",
"angular-resource": "~1.2",
"angular-animate": "~1.2",
"angular-mocks": "~1.2",
"angular-bootstrap": "~0.11.0",
"angular-ui-utils": "~0.1.1",
"angular-ui-router": "~0.2.10",
"angu... | <|file_sep|>bower.json.diff
original:
"bootstrap": "~3",
"angular": "~1.3",
"angular-resource": "~1.3",
"angular-animate": "~1.3",
"angular-mocks": "~1.3",
"angular-bootstrap": "~0.13",
"angular-ui-utils": "bower",
"angular-ui-router": "~0.2",
updated:
"bootstrap": "~3.3.5",
"ang... | 3c680c72fa22ec23adf434e5293de904a28b9a8d | bower.json | bower.json | JSON |
<|file_sep|>original/lib/generators/slim/scaffold/templates/_form.html.slim
= form_for @<%= singular_table_name %> do |f|
-if @<%= singular_table_name %>.errors.any?
#error_explanation
h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being ... | = form_for @<%= singular_table_name %> do |f|
-if @<%= singular_table_name %>.errors.any?
#error_explanation
h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
ul
- @<%= singular_table_name %>.errors.full_messages... | <|file_sep|>original/lib/generators/slim/scaffold/templates/_form.html.slim
= form_for @<%= singular_table_name %> do |f|
-if @<%= singular_table_name %>.errors.any?
#error_explanation
h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being ... | a27025c470963f1c44db0e1574159449aa92b97e | lib/generators/slim/scaffold/templates/_form.html.slim | lib/generators/slim/scaffold/templates/_form.html.slim | Slim |
<|file_sep|>original/package.json
{
"name": "component-identifier-service-sw",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"atlassian-crowd": "0.4.4",
"body-parser": "1.15.2",
"connect": "3.4.0",
"console-stamp": "0.2.6",
"cors": "... | {
"name": "component-identifier-service-sw",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"atlassian-crowd": "0.5.0",
"body-parser": "1.15.2",
"connect": "3.4.0",
"console-stamp": "0.2.6",
"cors": "2.8.1",
"express": "4.13.1",
... | <|file_sep|>original/package.json
{
"name": "component-identifier-service-sw",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"atlassian-crowd": "0.4.4",
"body-parser": "1.15.2",
"connect": "3.4.0",
"console-stamp": "0.2.6",
"cors": "... | 396b36895beb0bf29966180c0badece8ad525370 | package.json | package.json | JSON |
<|file_sep|>test/fixtures/multiple-examples.apib.diff
original:
+ Parameters
- id (number, `1`)
updated:
+ Parameters
+ id (number, `1`)
<|file_sep|>test/fixtures/multiple-examples.apib.diff
original:
- Request (application/json)
+ Parameters
- id (number, `2`)
updated:
+ Request (application/js... | + Response 200 (application/json; charset=utf-8)
[
{
"type": "bulldozer",
"name": "willy"
}
]
+ Request (application/json)
+ Parameters
+ id (number, `3`)
+ Response 200 (application/json; charset=utf-8)
[
{
"type"... | <|file_sep|>test/fixtures/multiple-examples.apib.diff
original:
+ Parameters
- id (number, `1`)
updated:
+ Parameters
+ id (number, `1`)
<|file_sep|>test/fixtures/multiple-examples.apib.diff
original:
- Request (application/json)
+ Parameters
- id (number, `2`)
updated:
+ Request (application/js... | 16dd09c016c51e8075b3cc18d30f46e45a7f78a6 | test/fixtures/multiple-examples.apib | test/fixtures/multiple-examples.apib | API Blueprint |
<|file_sep|>original/src/main/resources/META-INF/beans.xml
<|file_sep|>current/src/main/resources/META-INF/beans.xml
<|file_sep|>updated/src/main/resources/META-INF/beans.xml | <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans> | <|file_sep|>original/src/main/resources/META-INF/beans.xml
<|file_sep|>current/src/main/resources/META-INF/beans.xml
<|file_sep|>updated/src/main/resources/META-INF/beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance... | 4c6b34acd6b9f5dc901a87f925413046f5b75573 | src/main/resources/META-INF/beans.xml | src/main/resources/META-INF/beans.xml | XML |
<|file_sep|>original/vscode/snippets/ruby.json
<|file_sep|>current/vscode/snippets/ruby.json
<|file_sep|>updated/vscode/snippets/ruby.json | {
"attr_reader": {
"prefix": "r",
"body": [
"attr_reader :",
],
"description": "attr_reader",
},
"attr_accessor": {
"prefix": "rw",
"body": [
"attr_accessor :",
],
"description": "attr_accessor",
},
"it_block": {
"prefix": "it",
"body": [
"it '${1:description}' do",
"\t$0",
"end" | <|file_sep|>original/vscode/snippets/ruby.json
<|file_sep|>current/vscode/snippets/ruby.json
<|file_sep|>updated/vscode/snippets/ruby.json
{
"attr_reader": {
"prefix": "r",
"body": [
"attr_reader :",
],
"description": "attr_reader",
},
"attr_accessor": {
"prefix": "rw",
"body": [
"attr_accessor :... | d7d943a9ebb7feccded668ef51dcdf70f2a51b9d | vscode/snippets/ruby.json | vscode/snippets/ruby.json | JSON |
<|file_sep|>original/.gitpod.yml
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Install Hugo dependencies
before: brew install hugo && npm install
init: echo "Your version of Hugo is `hugo version`"
command: hugo server -D
# List the ports to expose. Le... | # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Install Hugo dependencies
before: brew install hugo && npm install
init: echo "Your version of Hugo is `hugo version`"
command: hugo server -D --baseUrl $(gp url 1313) --appendPort=false
# List the ports to... | <|file_sep|>original/.gitpod.yml
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Install Hugo dependencies
before: brew install hugo && npm install
init: echo "Your version of Hugo is `hugo version`"
command: hugo server -D
# List the ports to expose. Le... | 01feb7a4195f64e47263f53587d983c2fc419fea | .gitpod.yml | .gitpod.yml | YAML |
<|file_sep|>original/.github/workflows/nannou.yml
<|file_sep|>current/.github/workflows/nannou.yml
<|file_sep|>updated/.github/workflows/nannou.yml | name: nannou
on: [push, pull_request]
jobs:
rustfmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name... | <|file_sep|>original/.github/workflows/nannou.yml
<|file_sep|>current/.github/workflows/nannou.yml
<|file_sep|>updated/.github/workflows/nannou.yml
name: nannou
on: [push, pull_request]
jobs:
rustfmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install stable
uses... | 09957485600de5fd224bb4b804851b3b608140f2 | .github/workflows/nannou.yml | .github/workflows/nannou.yml | YAML |
<|file_sep|>original/ext/jenkins/lein-test.sh
export HTTP_CLIENT="wget --no-check-certificate -O"
rm -f testreports.xml *.war *.jar
export PDB_TEST_DB_HOST="$pghost"
export PDB_TEST_DB_PORT="$pgport"
# For now, just conflate the normal test and admin users.
export PDB_TEST_DB_USER=pdb_test
export PDB_TEST_DB_ADMIN=... |
export HTTP_CLIENT="wget --no-check-certificate -O"
rm -f testreports.xml *.war *.jar
export PDB_TEST_DB_HOST="$pghost"
export PDB_TEST_DB_PORT="$pgport"
# For now, just conflate the normal test and admin users.
export PDB_TEST_DB_USER=puppetdb
export PDB_TEST_DB_ADMIN=puppetdb
export PDB_TEST_DB_USER_PASSWORD=pupp... | <|file_sep|>original/ext/jenkins/lein-test.sh
export HTTP_CLIENT="wget --no-check-certificate -O"
rm -f testreports.xml *.war *.jar
export PDB_TEST_DB_HOST="$pghost"
export PDB_TEST_DB_PORT="$pgport"
# For now, just conflate the normal test and admin users.
export PDB_TEST_DB_USER=pdb_test
export PDB_TEST_DB_ADMIN=... | 0fcc6f5aa373961f9abb988ed0a01102acc6d918 | ext/jenkins/lein-test.sh | ext/jenkins/lein-test.sh | Shell |
<|file_sep|>django_lightweight_queue/task.py.diff
original:
def __init__(self, queue='default'):
updated:
def __init__(self, queue='default', timeout=None):
<|file_sep|>django_lightweight_queue/task.py.diff
original:
updated:
self.timeout = timeout
<|file_sep|>django_lightweight_queue/task.py.diff
orig... |
app_settings.WORKERS.setdefault(self.queue, 1)
def __call__(self, fn):
return TaskWrapper(fn, self.queue, self.timeout)
class TaskWrapper(object):
def __init__(self, fn, queue, timeout):
self.fn = fn
self.queue = queue
self.timeout = timeout
self.path = '%s.%s... | <|file_sep|>django_lightweight_queue/task.py.diff
original:
def __init__(self, queue='default'):
updated:
def __init__(self, queue='default', timeout=None):
<|file_sep|>django_lightweight_queue/task.py.diff
original:
updated:
self.timeout = timeout
<|file_sep|>django_lightweight_queue/task.py.diff
orig... | b9e2ee470308231f4ea4d23297f7b07fab711dba | django_lightweight_queue/task.py | django_lightweight_queue/task.py | Python |
<|file_sep|>resources/assets/less/bem/notification-icon.less.diff
original:
padding-top: 10px;
padding-bottom: 10px;
updated:
<|file_sep|>original/resources/assets/less/bem/notification-icon.less
.center-content();
display: flex;
&--glow {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
&--mo... | .center-content();
display: flex;
&--glow {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
&--mobile {
flex-direction: column;
color: inherit;
height: 100%;
}
&__count {
font-size: @font-size--normal;
font-weight: 500;
margin-left: 5px;
.@{top}--mobile & {
font... | <|file_sep|>resources/assets/less/bem/notification-icon.less.diff
original:
padding-top: 10px;
padding-bottom: 10px;
updated:
<|file_sep|>original/resources/assets/less/bem/notification-icon.less
.center-content();
display: flex;
&--glow {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
&--mo... | df758359fd4827294d8026ec42b07cc4d999e7b3 | resources/assets/less/bem/notification-icon.less | resources/assets/less/bem/notification-icon.less | Less |
<|file_sep|>resources/views/template/ManyToMany/migration.blade.php.diff
original:
Schema::create('{{$first}}_{{$second}}',function (Blueprint $table){
updated:
Schema::create('{{str_singular($first)}}_{{str_singular($second)}}',function (Blueprint $table){
<|file_sep|>original/resources/views/template/... | $table->integer('{{str_singular($first)}}_id')->unsigned()->index();
$table->foreign('{{str_singular($first)}}_id')->references('id')->on('{{$first}}')->onDelete('cascade');
$table->integer('{{str_singular($second)}}_id')->unsigned()->index();
$table->foreign('{{str_singular($second)}}_id')->references('id'... | <|file_sep|>resources/views/template/ManyToMany/migration.blade.php.diff
original:
Schema::create('{{$first}}_{{$second}}',function (Blueprint $table){
updated:
Schema::create('{{str_singular($first)}}_{{str_singular($second)}}',function (Blueprint $table){
<|file_sep|>original/resources/views/template/... | 10639d78bdb4acab4bc5331ff29b5447c10eaf15 | resources/views/template/ManyToMany/migration.blade.php | resources/views/template/ManyToMany/migration.blade.php | PHP |
<|file_sep|>original/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml
<|file_sep|>current/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml
<|file_sep|>updated/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml | <?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Ver... | <|file_sep|>original/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml
<|file_sep|>current/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml
<|file_sep|>updated/enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml
<?xml version="1.0" encoding="UTF-8... | 18ee91aebbf2e06480d3d2c8f8c975ee1dee26a7 | enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml | enhanced/classlib/trunk/modules/security/make/findbugs-exclude-filter.xml | XML |
<|file_sep|>original/resources/libraries/charleskorn-kaml.json
<|file_sep|>current/resources/libraries/charleskorn-kaml.json
<|file_sep|>updated/resources/libraries/charleskorn-kaml.json | {
"name" : "charleskorn/kaml",
"sourceUrl" : "https://github.com/charleskorn/kaml",
"mavenMetaUrl" : "https://repo1.maven.org/maven2/com/charleskorn/kaml/kaml/maven-metadata.xml",
"platform" : "JVM",
"category" : "library",
"tags" : [ "serialization", "yaml" ]
} | <|file_sep|>original/resources/libraries/charleskorn-kaml.json
<|file_sep|>current/resources/libraries/charleskorn-kaml.json
<|file_sep|>updated/resources/libraries/charleskorn-kaml.json
{
"name" : "charleskorn/kaml",
"sourceUrl" : "https://github.com/charleskorn/kaml",
"mavenMetaUrl" : "https://repo1.maven.org... | 870062c98fa848fffc8cb06a361f677c6ab45a08 | resources/libraries/charleskorn-kaml.json | resources/libraries/charleskorn-kaml.json | JSON |
<|file_sep|>original/app/controllers/otus_controller.rb
@count = params[:count].to_i
else
@count = 20
end
@total = Otu.count
@otus = Otu.where(where_options).sorted.limit(@count).offset(@start)
end
def show
otu = Otu.find(params[:id])
end
def edit
@otu= Otu.find(params... | @count = params[:count].to_i
else
@count = 20
end
@total = Otu.count
@otus = Otu.where(where_options).sorted.limit(@count).offset(@start)
end
def show
@otu = Otu.find(params[:id])
end
def edit
@otu= Otu.find(params[:id])
end
def update
@otu = Otu.find(params[:... | <|file_sep|>original/app/controllers/otus_controller.rb
@count = params[:count].to_i
else
@count = 20
end
@total = Otu.count
@otus = Otu.where(where_options).sorted.limit(@count).offset(@start)
end
def show
otu = Otu.find(params[:id])
end
def edit
@otu= Otu.find(params... | cbadabfea54c2dc3fc13b823c0540bfbe9c16a0b | app/controllers/otus_controller.rb | app/controllers/otus_controller.rb | Ruby |
<|file_sep|>original/vendor-bin/phpcs/composer.json
{
"require-dev": {
"friendsofphp/php-cs-fixer": "3.5.0"
}
}
<|file_sep|>current/vendor-bin/phpcs/composer.json
{
"require-dev": {
"friendsofphp/php-cs-fixer": "3.5.0"
}
}
<|file_sep|>updated/vendor-bin/phpcs/composer.json | {
"require-dev": {
"friendsofphp/php-cs-fixer": "3.6.0"
}
} | <|file_sep|>original/vendor-bin/phpcs/composer.json
{
"require-dev": {
"friendsofphp/php-cs-fixer": "3.5.0"
}
}
<|file_sep|>current/vendor-bin/phpcs/composer.json
{
"require-dev": {
"friendsofphp/php-cs-fixer": "3.5.0"
}
}
<|file_sep|>updated/vendor-bin/phpcs/composer.json
{
"require... | 8bd479396b7be1eaa770511a9781b7fc309cf52e | vendor-bin/phpcs/composer.json | vendor-bin/phpcs/composer.json | JSON |
<|file_sep|>gradle.properties.diff
original:
build_number=0
updated:
build_number=1
<|file_sep|>gradle.properties.diff
original:
curse_id=227049
updated:
curse_id=252354
<|file_sep|>gradle.properties.diff
original:
jei_version=3.12.6.304
updated:
jei_version=3.13.6.387
<|file_sep|>original/gradle.properties
package_gro... | package_group=com.gr8pefish.openglider
mod_name=OpenGlider
major_version=1
minor_version=0
build_number=1
curse_id=252354
release_type=beta
jei_version=3.13.6.387
mc_version=1.10.2
forge_version=12.18.3.2185
mappings_version=snapshot_20161103 | <|file_sep|>gradle.properties.diff
original:
build_number=0
updated:
build_number=1
<|file_sep|>gradle.properties.diff
original:
curse_id=227049
updated:
curse_id=252354
<|file_sep|>gradle.properties.diff
original:
jei_version=3.12.6.304
updated:
jei_version=3.13.6.387
<|file_sep|>original/gradle.properties
package_gro... | 570ce486ad71a355112a4ff4e607cae2523855e1 | gradle.properties | gradle.properties | INI |
<|file_sep|>original/ubuntu-debootstrap/content.md
# `ubuntu-debootstrap`
This image is the result of running `debootstrap --variant=minbase` against the currently supported suites of the Ubuntu distribution. It is not official or supported by Canonical in any way. For an official Ubuntu image that is supported by Can... | # `ubuntu-debootstrap`
This image is the result of running `debootstrap --variant=minbase` against the currently supported suites of the Ubuntu distribution. It is not official or supported by Canonical in any way. Please see [`ubuntu`](https://registry.hub.docker.com/_/ubuntu/) for an official Ubuntu image that is su... | <|file_sep|>original/ubuntu-debootstrap/content.md
# `ubuntu-debootstrap`
This image is the result of running `debootstrap --variant=minbase` against the currently supported suites of the Ubuntu distribution. It is not official or supported by Canonical in any way. For an official Ubuntu image that is supported by Can... | e377e25eeb24351961f6ce81bb18c460a1d184b2 | ubuntu-debootstrap/content.md | ubuntu-debootstrap/content.md | Markdown |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.6.3
- 1.7.3
- tip
before_install:
- go get ./...
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/stretchr/testify/assert
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd... | language: go
go:
- 1.6.3
- 1.7.3
- 1.8
- tip
before_install:
- go get ./...
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/stretchr/testify/assert
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
install:
- ... | <|file_sep|>original/.travis.yml
language: go
go:
- 1.6.3
- 1.7.3
- tip
before_install:
- go get ./...
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/stretchr/testify/assert
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd... | 52a16b398b64ddca4b6b45a9fa7146387da6cf24 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/application/app/config/security.yml
pattern: ^/(_(profiler|wdt)|css|images|js|components)/
security: false
login:
pattern: ^/user/login$
security: false
secured_area:
pattern: ^/
anonymous: ~
... |
login:
pattern: ^/user/login$
security: false
secured_area:
pattern: ^/
anonymous: ~
form_login:
check_path: /user/login/check
login_path: /user/login
logout:
path: /user/logou... | <|file_sep|>original/application/app/config/security.yml
pattern: ^/(_(profiler|wdt)|css|images|js|components)/
security: false
login:
pattern: ^/user/login$
security: false
secured_area:
pattern: ^/
anonymous: ~
... | 2a4597bf392868cf58db1f04a9823fb66baeb1bb | application/app/config/security.yml | application/app/config/security.yml | YAML |
<|file_sep|>original/app/views/juntos_bootstrap/channels/profiles/how_it_works.html.slim
= render partial: 'page', locals: { title: "#{t('.title.channel')}: #{@profile.name}", content_html: @profile.how_it_works_html, title_html: t('.title.channel', channel_link:link_to(@profile.name, root_path, class: 'standard-link')... | = render partial: 'page', locals: { title: "#{t('.title.channel')}: #{@profile.name}", content_html: @profile.how_it_works_html, title_html: t('.title.channel', channel_link:link_to(@profile.name, root_path, class: 'standard-link')) }
.w-container
.w-row.u-marginbottom-40
- target_path = new_project_path
- i... | <|file_sep|>original/app/views/juntos_bootstrap/channels/profiles/how_it_works.html.slim
= render partial: 'page', locals: { title: "#{t('.title.channel')}: #{@profile.name}", content_html: @profile.how_it_works_html, title_html: t('.title.channel', channel_link:link_to(@profile.name, root_path, class: 'standard-link')... | 547a0d3c82a065bb2aa390808c904423d6c91bce | app/views/juntos_bootstrap/channels/profiles/how_it_works.html.slim | app/views/juntos_bootstrap/channels/profiles/how_it_works.html.slim | Slim |
<|file_sep|>app/views/posts/index.html.haml.diff
original:
=render 'layouts/banners/b468x60'
updated:
<|file_sep|>original/app/views/posts/index.html.haml
- if params[:page].nil?
- page_title("Programas de La Venganza será Terrible")
- else
- page_title("Programas de La Venganza será Terrible <small>Página #{para... | - if params[:page].nil?
- page_title("Programas de La Venganza será Terrible")
- else
- page_title("Programas de La Venganza será Terrible <small>Página #{params[:page]}</small>")
%h2.ribbon!= html_page_title
.posts
= render @posts
= paginate @posts, :window => 2
=render 'layouts/banners/b468x60'
| <|file_sep|>app/views/posts/index.html.haml.diff
original:
=render 'layouts/banners/b468x60'
updated:
<|file_sep|>original/app/views/posts/index.html.haml
- if params[:page].nil?
- page_title("Programas de La Venganza será Terrible")
- else
- page_title("Programas de La Venganza será Terrible <small>Página #{para... | 683744db07e8a24eac6fdd50758d77c14957fc7e | app/views/posts/index.html.haml | app/views/posts/index.html.haml | Haml |
<|file_sep|>spec/unit/rom/support/registry_spec.rb.diff
original:
updated:
shared_examples_for 'registry fetch' do
it 'returns registered element identified by name' do
expect(registry.public_send(fetch_method, :mars)).to be(mars)
end
it 'raises error when element is not found' do
expect { registry.pub... | end
end
describe '#fetch' do
let(:fetch_method) { :fetch }
it_behaves_like 'registry fetch'
end
describe '#[]' do
let(:fetch_method) { :[] }
it_behaves_like 'registry fetch'
end
describe '#method_missing' do
it 'returns registered element identified by name' do
expect(regi... | <|file_sep|>spec/unit/rom/support/registry_spec.rb.diff
original:
updated:
shared_examples_for 'registry fetch' do
it 'returns registered element identified by name' do
expect(registry.public_send(fetch_method, :mars)).to be(mars)
end
it 'raises error when element is not found' do
expect { registry.pub... | ae88ea992cd480e918ea05696f4ced33be3e0a12 | spec/unit/rom/support/registry_spec.rb | spec/unit/rom/support/registry_spec.rb | Ruby |
<|file_sep|>original/web_purify.gemspec
Gem::Specification.new do |s|
s.name = "webpurify"
s.version = WebPurify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Miles Zimmerman"]
s.email = ["miles@zserver.org"]
s.homepage = "https://github.com/mileszim/webpurify-gem"
s.s... | Gem::Specification.new do |s|
s.name = "webpurify"
s.version = WebPurify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Miles Zimmerman"]
s.email = ["miles@zserver.org"]
s.homepage = "https://github.com/mileszim/webpurify-gem"
s.summary = %q{A RubyGem for interfacin... | <|file_sep|>original/web_purify.gemspec
Gem::Specification.new do |s|
s.name = "webpurify"
s.version = WebPurify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Miles Zimmerman"]
s.email = ["miles@zserver.org"]
s.homepage = "https://github.com/mileszim/webpurify-gem"
s.s... | 80c68bee8aaf967aae7ccd2b762919d39598e30b | web_purify.gemspec | web_purify.gemspec | Ruby |
<|file_sep|>original/test/Parser/ms-inline-asm.c
// RUN: %clang_cc1 %s -verify -fasm-blocks
#define M __asm int 0x2c
#define M2 int
void t1(void) { M }
void t2(void) { __asm int 0x2c }
void t3(void) { __asm M2 0x2c }
void t4(void) { __asm mov eax, fs:[0x10] }
void t5() {
__asm {
int 0x2c ; } asm comments are fu... | // REQUIRES: x86-64-registered-target
// RUN: %clang_cc1 %s -verify -fasm-blocks
#define M __asm int 0x2c
#define M2 int
void t1(void) { M }
void t2(void) { __asm int 0x2c }
void t3(void) { __asm M2 0x2c }
void t4(void) { __asm mov eax, fs:[0x10] }
void t5() {
__asm {
int 0x2c ; } asm comments are fun! }{
}
... | <|file_sep|>original/test/Parser/ms-inline-asm.c
// RUN: %clang_cc1 %s -verify -fasm-blocks
#define M __asm int 0x2c
#define M2 int
void t1(void) { M }
void t2(void) { __asm int 0x2c }
void t3(void) { __asm M2 0x2c }
void t4(void) { __asm mov eax, fs:[0x10] }
void t5() {
__asm {
int 0x2c ; } asm comments are fu... | 80d38eb7f25cd0fe2483a52ab225fa7331615f18 | test/Parser/ms-inline-asm.c | test/Parser/ms-inline-asm.c | C |
<|file_sep|>original/_posts/advanced-app.md
description:
Create sweet functionality for videos being watched
within the Wistia app.
post_intro:
If you want to customize the experience your viewers have when watching
videos inside your Wistia account, start here.
footer: 'for_developers'
---
## Seek to a sp... | Want to show a client a particular clip in a video? Just add a `start`
parameter to the query string and specify the position to seek to (in seconds).
For example, if you have a video located at
`http://myaccount.wistia.com/medias/123` and you want it to start playing at
the 1 minute and 30 second mark, you'd link ... | <|file_sep|>original/_posts/advanced-app.md
description:
Create sweet functionality for videos being watched
within the Wistia app.
post_intro:
If you want to customize the experience your viewers have when watching
videos inside your Wistia account, start here.
footer: 'for_developers'
---
## Seek to a sp... | 88edddb1c2063c3f5990f4330ea2f184f51d7273 | _posts/advanced-app.md | _posts/advanced-app.md | Markdown |
<|file_sep|>bower.json.diff
original:
"angular": "~1.2.27",
updated:
"angular": "~1.3.0",
<|file_sep|>bower.json.diff
original:
"angular-route": "~1.2.14",
updated:
"angular-route": "~1.3.0",
<|file_sep|>bower.json.diff
original:
"angular-mocks": "~1.2.14",
updated:
"angular-mocks": "~1.3.0",
<|... | "angular-qrcode": "~3.1.0",
"angular-mocks": "~1.3.0",
"angular-gettext": "~1.1.0",
"mocha": "~1.18.2",
"chai": "~1.9.1",
"sjcl": "1.0.0",
"file-saver": "*",
"qrcode-decoder-js": "*",
"angular-moment": "~0.7.1",
"socket.io-client": ">=1.0.0",
"ng-idle": "*",
"inherits": "... | <|file_sep|>bower.json.diff
original:
"angular": "~1.2.27",
updated:
"angular": "~1.3.0",
<|file_sep|>bower.json.diff
original:
"angular-route": "~1.2.14",
updated:
"angular-route": "~1.3.0",
<|file_sep|>bower.json.diff
original:
"angular-mocks": "~1.2.14",
updated:
"angular-mocks": "~1.3.0",
<|... | 752df2ee4de51615498558e77ae2dd3854442fa1 | bower.json | bower.json | JSON |
<|file_sep|>original/script/collect_results.rb
<|file_sep|>current/script/collect_results.rb
<|file_sep|>updated/script/collect_results.rb | require 'pathname'
require 'json'
results_raw_path = ARGV[0]
results_path = Pathname.new(results_raw_path)
all_stats_files = Dir.glob("#{results_path}/*.stats.json")
all_stats = all_stats_files.map {|f| JSON.parse(File.read(f)) }
gems_count = all_stats.size
gems_which_finished_parsing = all_stats.select {|s| s.key?(... | <|file_sep|>original/script/collect_results.rb
<|file_sep|>current/script/collect_results.rb
<|file_sep|>updated/script/collect_results.rb
require 'pathname'
require 'json'
results_raw_path = ARGV[0]
results_path = Pathname.new(results_raw_path)
all_stats_files = Dir.glob("#{results_path}/*.stats.json")
all_stats =... | 362fd4ca9728186c9b2590684161b6b43ec24706 | script/collect_results.rb | script/collect_results.rb | Ruby |
<|file_sep|>original/twilio/rest/pricing/__init__.py
<|file_sep|>current/twilio/rest/pricing/__init__.py
<|file_sep|>updated/twilio/rest/pricing/__init__.py | from twilio.rest.base import TwilioClient
from twilio.rest.resources import UNSET_TIMEOUT
from .phone_numbers import PhoneNumbers
from .voice import Voice
class TwilioPricingClient(TwilioClient):
"""
A client for accessing the Twilio Pricing API.
:param str account: Your Account SID from `your dashboard
... | <|file_sep|>original/twilio/rest/pricing/__init__.py
<|file_sep|>current/twilio/rest/pricing/__init__.py
<|file_sep|>updated/twilio/rest/pricing/__init__.py
from twilio.rest.base import TwilioClient
from twilio.rest.resources import UNSET_TIMEOUT
from .phone_numbers import PhoneNumbers
from .voice import Voice
clas... | f41e79f52a136eb9685a028e31628766015834b0 | twilio/rest/pricing/__init__.py | twilio/rest/pricing/__init__.py | Python |
<|file_sep|>ExampleWebApp/Views/Examples/Wait.cshtml.diff
original:
<p>The following combo starts with a placeholder option and after 3 seconds updates with a new item.</p>
updated:
<p class="alert alert-danger" id="message" style="display:none"></p>
<|file_sep|>ExampleWebApp/Views/Examples/Wait.cshtml.... |
loginButton.on("click", function () {
var usernameTxt = $("#username"),
username = usernameTxt[0].value
passwordTxt = $("#password"),
password = passwordTxt[0].value;
// Timeout to simulate making login request.
... | <|file_sep|>ExampleWebApp/Views/Examples/Wait.cshtml.diff
original:
<p>The following combo starts with a placeholder option and after 3 seconds updates with a new item.</p>
updated:
<p class="alert alert-danger" id="message" style="display:none"></p>
<|file_sep|>ExampleWebApp/Views/Examples/Wait.cshtml.... | f8bde743dcf8a3180b45df7239d5a7de314de1cc | ExampleWebApp/Views/Examples/Wait.cshtml | ExampleWebApp/Views/Examples/Wait.cshtml | C# |
<|file_sep|>original/scripts/album_times.py
<|file_sep|>current/scripts/album_times.py
<|file_sep|>updated/scripts/album_times.py | #!/usr/bin/env python3
"""Radio scheduling program.
Usage:
album_times.py [--host=HOST] PORT
Options:
--host=HOST Hostname of MPD [default: localhost]
-h --help Show this text
Prints out the last scheduling time of every album.
"""
from datetime import datetime
from docopt import docopt
from mpd import M... | <|file_sep|>original/scripts/album_times.py
<|file_sep|>current/scripts/album_times.py
<|file_sep|>updated/scripts/album_times.py
#!/usr/bin/env python3
"""Radio scheduling program.
Usage:
album_times.py [--host=HOST] PORT
Options:
--host=HOST Hostname of MPD [default: localhost]
-h --help Show this text... | 1ef84c24c60cf802aeb4bf6084f9b7fc7696f79a | scripts/album_times.py | scripts/album_times.py | Python |
<|file_sep|>original/config/locales/en.yml
# Sample localization file for English. Add more files in this directory for other locales.
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
hello: "Hello world"
<|file_sep|>current/config/locales/en.yml
# Sample localization ... | # Sample localization file for English. Add more files in this directory for other locales.
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
hello: "Hello world"
activerecord:
attributes:
company:
logo_content_type: "Logo content-type"
logo_... | <|file_sep|>original/config/locales/en.yml
# Sample localization file for English. Add more files in this directory for other locales.
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
hello: "Hello world"
<|file_sep|>current/config/locales/en.yml
# Sample localization ... | 276a944c4895984b5767f02fd6c8ffafa9304eb1 | config/locales/en.yml | config/locales/en.yml | YAML |
<|file_sep|>original/src/components/wysiwygEditor/decorators/linkDecorator.js
const entityKey = character.getEntity();
return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
}, callback);
};
const LinkEntity = ({ entityKey, contentState, children }) => {
const [showOpenLinkIco... | const entityKey = character.getEntity();
return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
}, callback);
};
const LinkEntity = ({ entityKey, contentState, children }) => {
const [showOpenLinkIcon, setShowOpenLinkIcon] = useState();
const { url } = contentState.getEntity... | <|file_sep|>original/src/components/wysiwygEditor/decorators/linkDecorator.js
const entityKey = character.getEntity();
return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
}, callback);
};
const LinkEntity = ({ entityKey, contentState, children }) => {
const [showOpenLinkIco... | b78fed8d257a5fd2c841c37eb835ace986174c96 | src/components/wysiwygEditor/decorators/linkDecorator.js | src/components/wysiwygEditor/decorators/linkDecorator.js | JavaScript |
<|file_sep|>AsterNET.ARI/Properties/AssemblyInfo.cs.diff
original:
[assembly: AssemblyCopyright("Copyright © 2014")]
updated:
[assembly: AssemblyCopyright("Copyright © 2016")]
<|file_sep|>original/AsterNET.ARI/Properties/AssemblyInfo.cs
// Setting ComVisible to false makes the types in this assembly not visible
// ... |
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed... | <|file_sep|>AsterNET.ARI/Properties/AssemblyInfo.cs.diff
original:
[assembly: AssemblyCopyright("Copyright © 2014")]
updated:
[assembly: AssemblyCopyright("Copyright © 2016")]
<|file_sep|>original/AsterNET.ARI/Properties/AssemblyInfo.cs
// Setting ComVisible to false makes the types in this assembly not visible
// ... | aa9a5f08c24036f65e1fe289307c1906af99f8bd | AsterNET.ARI/Properties/AssemblyInfo.cs | AsterNET.ARI/Properties/AssemblyInfo.cs | C# |
<|file_sep|>original/src/test/resources/redis.properties
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres... | # http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific languag... | <|file_sep|>original/src/test/resources/redis.properties
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres... | 4fec57ab7052645e3afba84e6d07063c3f8dc8b4 | src/test/resources/redis.properties | src/test/resources/redis.properties | INI |
<|file_sep|>src/features/remove-zero-categories/main.js.diff
original:
var coverOverbudgetingCategories = $( ".modal-budget-overspending .options-shown .ynab-select-options" ).children('li');
updated:
var coverOverbudgetingCategories = $( "fieldset>.options-shown>.ynab-select-options" ).children('li');
<|file_s... | (function removeZeroCategoriesFromCoverOverbudgeting() {
if (typeof Em !== 'undefined' && typeof Ember !== 'undefined' && typeof $ !== 'undefined') {
var coverOverbudgetingCategories = $( "fieldset>.options-shown>.ynab-select-options" ).children('li');
coverOverbudgetingCategories.each(function(i) {
va... | <|file_sep|>src/features/remove-zero-categories/main.js.diff
original:
var coverOverbudgetingCategories = $( ".modal-budget-overspending .options-shown .ynab-select-options" ).children('li');
updated:
var coverOverbudgetingCategories = $( "fieldset>.options-shown>.ynab-select-options" ).children('li');
<|file_s... | a89f26fe01acf4eb06231c4cb660e4fdb2404568 | src/features/remove-zero-categories/main.js | src/features/remove-zero-categories/main.js | JavaScript |
<|file_sep|>original/qipr/registry/forms/facet_form.py
ClinicalSetting,
Descriptor,
]
class FacetForm:
def __init__(self):
self.facet_categories = [model.__name__ for model in related_by_projects_Models]
for model in related_by_projects_Models:
models = list(model.objects.all()... | ClinicalSetting,
Descriptor,
]
class FacetForm:
def __init__(self):
self.facet_categories = [model.__name__ for model in related_by_projects_Models]
for model in related_by_projects_Models:
models = list(model.objects.all())
models.sort(key=lambda m : m.__str__(), r... | <|file_sep|>original/qipr/registry/forms/facet_form.py
ClinicalSetting,
Descriptor,
]
class FacetForm:
def __init__(self):
self.facet_categories = [model.__name__ for model in related_by_projects_Models]
for model in related_by_projects_Models:
models = list(model.objects.all()... | 7fb46ddf6bab9d32908c8fb9c859fd8151fbd089 | qipr/registry/forms/facet_form.py | qipr/registry/forms/facet_form.py | Python |
<|file_sep|>original/oz/__init__.py
import oz.GuestFactory
tdl_xml = \"\"\"
<template>
<name>f13jeos</name>
<os>
<name>Fedora</name>
<version>13</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://download.fedoraproject.org/pub/fedora/linux/releases/13/Fedor
</install>
</os>
... | import oz.GuestFactory
tdl_xml = \"\"\"
<template>
<name>f13jeos</name>
<os>
<name>Fedora</name>
<version>13</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://download.fedoraproject.org/pub/fedora/linux/releases/13/Fedora/x86_64/os/</url>
</install>
</os>
<description>Fed... | <|file_sep|>original/oz/__init__.py
import oz.GuestFactory
tdl_xml = \"\"\"
<template>
<name>f13jeos</name>
<os>
<name>Fedora</name>
<version>13</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://download.fedoraproject.org/pub/fedora/linux/releases/13/Fedor
</install>
</os>
... | f0fcde0988b705de752aa20e08c4c05fb504af3d | oz/__init__.py | oz/__init__.py | Python |
<|file_sep|>original/.travis.yml
language: android
android:
components:
- build-tools-20.0.0
- android-19
script:
./gradlew -u -p gandalf-library/ clean assembleDebug assembleDebugTest -x lint
<|file_sep|>current/.travis.yml
language: android
android:
components:
- build-tools-20.0.0
- android-... | language: android
android:
components:
- build-tools-20.0.0
- android-19
script:
./gradlew -u -p gandalf-library/ clean assembleDebug assembleDebugTest -x lint; ./gradlew test | <|file_sep|>original/.travis.yml
language: android
android:
components:
- build-tools-20.0.0
- android-19
script:
./gradlew -u -p gandalf-library/ clean assembleDebug assembleDebugTest -x lint
<|file_sep|>current/.travis.yml
language: android
android:
components:
- build-tools-20.0.0
- android-... | 92657fbe61e59e61932be093d23a78268b4e3224 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# last-fm-spotify-playlist
Use last.fm data to create Spotify playlists
<|file_sep|>current/README.md
# last-fm-spotify-playlist
Use last.fm data to create Spotify playlists
<|file_sep|>updated/README.md | [](https://travis-ci.org/ishakir/last-fm-spotify-playlist)
# last-fm-spotify-playlist
Use last.fm data to create Spotify playlists | <|file_sep|>original/README.md
# last-fm-spotify-playlist
Use last.fm data to create Spotify playlists
<|file_sep|>current/README.md
# last-fm-spotify-playlist
Use last.fm data to create Spotify playlists
<|file_sep|>updated/README.md
[](https:/... | 74bf083a315c6b767a2e2e52a43050f52f843175 | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
"require": {
"php": "^5.5 || ^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.5-dev",
"dev-develop": "2.6-dev"
}
},
"autoload-dev": {
"psr-4": {... | "require": {
"php": "^5.5 || ^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.5-dev",
"dev-develop": "2.6-dev"
}
},
"autoload-dev": {
"psr-4": {
"ZendTest\\Loader\\": ... | <|file_sep|>original/composer.json
"require": {
"php": "^5.5 || ^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.5-dev",
"dev-develop": "2.6-dev"
}
},
"autoload-dev": {
"psr-4": {... | 7a1f6020a7e558b2d8bab483a1a469bdeb53ed26 | composer.json | composer.json | JSON |
<|file_sep|>original/Cargo.toml
edition = "2018"
# build = "src/build.rs"
[dependencies]
libc = "0.2.29"
geo = "0.17.0"
num-traits = "0.2.8"
thiserror = "1.0.4"
[build-dependencies]
cbindgen = "0.9.0"
[dev-dependencies]
criterion = "0.3.0"
[lib]
name = "polylabel"
crate-type = ["rlib", "cdylib"]
test = true
doctest... | edition = "2018"
# build = "src/build.rs"
[dependencies]
libc = "0.2.29"
geo = "0.17.0"
num-traits = "0.2.8"
thiserror = "1.0.4"
[build-dependencies]
cbindgen = "0.17.0"
[dev-dependencies]
criterion = "0.3.0"
[lib]
name = "polylabel"
crate-type = ["rlib", "cdylib"]
test = true
doctest = true
doc = true | <|file_sep|>original/Cargo.toml
edition = "2018"
# build = "src/build.rs"
[dependencies]
libc = "0.2.29"
geo = "0.17.0"
num-traits = "0.2.8"
thiserror = "1.0.4"
[build-dependencies]
cbindgen = "0.9.0"
[dev-dependencies]
criterion = "0.3.0"
[lib]
name = "polylabel"
crate-type = ["rlib", "cdylib"]
test = true
doctest... | 6847eed52fa61f94c29cb02dae6aa66d28900bfb | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>lib/processImg.js.diff
original:
rgbArrayToHex: rgbArrayToHex
updated:
rgbArrayToHex: rgbArrayToHex,
process: process
<|file_sep|>original/lib/processImg.js
var ColorThief = require('color-thief')
, rgbToHex = require('rgb-hex')
var colorThief = new ColorThief()
module.exports = {
getPalette: getP... | , rgbToHex = require('rgb-hex')
var colorThief = new ColorThief()
module.exports = {
getPalette: getPalette,
rgbArrayToHex: rgbArrayToHex,
process: process
}
function getPalette(imgPath) {
return colorThief.getPalette(imgPath)
}
function rgbArrayToHex(rgbArray) {
return rgbToHex.apply(this, rgbArray)
}
f... | <|file_sep|>lib/processImg.js.diff
original:
rgbArrayToHex: rgbArrayToHex
updated:
rgbArrayToHex: rgbArrayToHex,
process: process
<|file_sep|>original/lib/processImg.js
var ColorThief = require('color-thief')
, rgbToHex = require('rgb-hex')
var colorThief = new ColorThief()
module.exports = {
getPalette: getP... | e9f9cf1c7308c4cd663bde37fdb28661c23c0e12 | lib/processImg.js | lib/processImg.js | JavaScript |
<|file_sep|>original/src/lib.rs
match str::from_utf8(c_value) {
Ok(value) => match str::from_utf8(c_substr) {
Ok(substr) => rust_substrings(value, substr),
Err(_) => -1,
},
Err(_) => -1,
}
}
fn rust_substrings(value: &str, substr: &str) -> i32 {
let mut count... |
use std::ffi::CStr;
use std::str;
use libc::c_char;
#[no_mangle]
pub extern "C" fn count_substrings(value: *const c_char, substr: *const c_char) -> i32 {
let c_value = unsafe { CStr::from_ptr(value).to_bytes() };
let c_substr = unsafe { CStr::from_ptr(substr).to_bytes() };
match str::from_utf8(c_value) {
... | <|file_sep|>original/src/lib.rs
match str::from_utf8(c_value) {
Ok(value) => match str::from_utf8(c_substr) {
Ok(substr) => rust_substrings(value, substr),
Err(_) => -1,
},
Err(_) => -1,
}
}
fn rust_substrings(value: &str, substr: &str) -> i32 {
let mut count... | 67757c3e662e19747a927ba7a43c313ef2e9f74f | src/lib.rs | src/lib.rs | Rust |
<|file_sep|>original/.github/ISSUE_TEMPLATE.md
##### What is the expected behavior?
##### What is actually happening?
##### What were you attempting to do when you encountered this error (give as much detail as possible)?
##### How can we reproduce this issue?
##### How can we verify your issue is addressed?
####... | ##### How can we reproduce this issue?
##### How can we verify your issue is addressed?
##### If this is a large issue, what can be done immediately to alleviate the issue while working on a longer-term solution?
##### What is your evaluation on the importance of this issue, and why?
##### What branches / milestone... | <|file_sep|>original/.github/ISSUE_TEMPLATE.md
##### What is the expected behavior?
##### What is actually happening?
##### What were you attempting to do when you encountered this error (give as much detail as possible)?
##### How can we reproduce this issue?
##### How can we verify your issue is addressed?
####... | 31e2f5fdd48e84c3afc55ca8489c9cc76699c86f | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | Markdown |
<|file_sep|>src/_text-align.css.diff
original:
updated:
j = justify
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj { text-align: justify; }
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj-ns { text-align: justify; }
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj-m { ... |
@media (--breakpoint-not-small) {
.tl-ns { text-align: left; }
.tr-ns { text-align: right; }
.tc-ns { text-align: center; }
.tj-ns { text-align: justify; }
}
@media (--breakpoint-medium) {
.tl-m { text-align: left; }
.tr-m { text-align: right; }
.tc-m { text-align: center; }
.tj-m { text-align... | <|file_sep|>src/_text-align.css.diff
original:
updated:
j = justify
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj { text-align: justify; }
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj-ns { text-align: justify; }
<|file_sep|>src/_text-align.css.diff
original:
updated:
.tj-m { ... | e292dbdb4364a021b61744cd0be4d3d5abbc6615 | src/_text-align.css | src/_text-align.css | CSS |
<|file_sep|>test/safe/run-built-in-script.js.diff
original:
var stdout, stopIntercept
updated:
var stdout, stderr, stopIntercept
<|file_sep|>test/safe/run-built-in-script.js.diff
original:
updated:
stderr = ''
<|file_sep|>test/safe/run-built-in-script.js.diff
original:
updated:
}, function (text) {
stde... | '#!/bin/bash\n' +
'WORLD="World"\n' +
'echo "Hello, $WORLD!"'
)
scripty('fake:helloworld')
assert(_.includes(stdout, '> echo Hello, $WORLD!'), 'prints script')
assert(_.includes(stdout, 'Hello, World!'), 'prints output')
},
noScriptFound: function () {
scripty('fake:noscriptf... | <|file_sep|>test/safe/run-built-in-script.js.diff
original:
var stdout, stopIntercept
updated:
var stdout, stderr, stopIntercept
<|file_sep|>test/safe/run-built-in-script.js.diff
original:
updated:
stderr = ''
<|file_sep|>test/safe/run-built-in-script.js.diff
original:
updated:
}, function (text) {
stde... | 763d251736879cfd25b4a3caacbb8316518b7908 | test/safe/run-built-in-script.js | test/safe/run-built-in-script.js | JavaScript |
<|file_sep|>src/main/resources/public/scripts/app/app.run.js.diff
original:
updated:
backdrop: "static",
<|file_sep|>original/src/main/resources/public/scripts/app/app.run.js
var modalScope = $rootScope.$new();
if (!$rootScope.loginOngoing) {
... | var modalScope = $rootScope.$new();
if (!$rootScope.loginOngoing) {
$rootScope.loginOngoing = true;
modalScope.modalInstance = $uibModal.open({
animation: true,
backdrop: "static",
... | <|file_sep|>src/main/resources/public/scripts/app/app.run.js.diff
original:
updated:
backdrop: "static",
<|file_sep|>original/src/main/resources/public/scripts/app/app.run.js
var modalScope = $rootScope.$new();
if (!$rootScope.loginOngoing) {
... | 827b3e3e3805aed0c656837403481d6265e6f31e | src/main/resources/public/scripts/app/app.run.js | src/main/resources/public/scripts/app/app.run.js | JavaScript |
<|file_sep|>app/models/Project.php.diff
original:
updated:
return $this->newestPastSprint() ?: $this->closestFutureSprint();
}
private function newestPastSprint()
{
<|file_sep|>original/app/models/Project.php
<?php
class Project extends Eloquent {
protected $fillable = ['title', 'slug'];
public function spr... | public function currentSprint()
{
return $this->newestPastSprint() ?: $this->closestFutureSprint();
}
private function newestPastSprint()
{
return Sprint::where('sprint_start', '<=', date('Y-m-d'))
->where('project_id', $this->id)
->orderBy('sprint_start', 'desc')
->first();
}
private function clo... | <|file_sep|>app/models/Project.php.diff
original:
updated:
return $this->newestPastSprint() ?: $this->closestFutureSprint();
}
private function newestPastSprint()
{
<|file_sep|>original/app/models/Project.php
<?php
class Project extends Eloquent {
protected $fillable = ['title', 'slug'];
public function spr... | 940161d658103478be1a9da591d630fe3afc63e6 | app/models/Project.php | app/models/Project.php | PHP |
<|file_sep|>original/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties
CommonFilesPanel.searchButton.text=Search
CommonFilesPanel.withinDataSourceRadioButton.text=Within a Data Source
CommonFilesPanel.allDataSourcesRadioButton.text=Across All Data Sources
CommonFilesPanel.jLabel1.text=<html>Search for f... | CommonFilesPanel.searchButton.text=Search
CommonFilesPanel.withinDataSourceRadioButton.text=FIles must be in data source:
CommonFilesPanel.allDataSourcesRadioButton.text=Files can be in any data source
CommonFilesPanel.jLabel1.text=<html>Search for files that exist in multiple data sources:</html>
CommonFilesPanel.canc... | <|file_sep|>original/Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties
CommonFilesPanel.searchButton.text=Search
CommonFilesPanel.withinDataSourceRadioButton.text=Within a Data Source
CommonFilesPanel.allDataSourcesRadioButton.text=Across All Data Sources
CommonFilesPanel.jLabel1.text=<html>Search for f... | 88955ecdc5ea9fae8f9b3c90e702e4317faf57c3 | Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties | Core/src/org/sleuthkit/autopsy/commonfilesearch/Bundle.properties | INI |
<|file_sep|>deploy/dev_web.yml.diff
original:
sourceroot: /vagrant_data/
updated:
<|file_sep|>original/deploy/dev_web.yml
vars_files:
- [ "secrets.yml", "secrets.nodeless.yml" ]
roles:
- webserver
- role: bennojoy.nginx
nginx_http_params:
sendfile: "on"
access_log: /var/log/ngin... | file_name: developer.rackspace.com
listen: 80
server_name: "{{ server_name }}"
root: "{{ docroot }}"
location1:
name: /api
proxy_pass: http://127.0.0.1:8111
- jekyll
- sphinx
- dev
- name: Launch the backend form submission script
... | <|file_sep|>deploy/dev_web.yml.diff
original:
sourceroot: /vagrant_data/
updated:
<|file_sep|>original/deploy/dev_web.yml
vars_files:
- [ "secrets.yml", "secrets.nodeless.yml" ]
roles:
- webserver
- role: bennojoy.nginx
nginx_http_params:
sendfile: "on"
access_log: /var/log/ngin... | ef94edac7752d02f473827193146864f204a0d26 | deploy/dev_web.yml | deploy/dev_web.yml | YAML |
<|file_sep|>tests/test_utils.py.diff
original:
from fuel.utils import do_not_pickle_attributes
updated:
from fuel.utils import do_not_pickle_attributes, expand_axis_label
<|file_sep|>original/tests/test_utils.py
from fuel.utils import do_not_pickle_attributes
@do_not_pickle_attributes("non_pickable", "bulky_attr")
cl... | self.non_pickable = lambda x: x
def test_do_not_pickle_attributes():
cl = TestClass()
dump = pickle.dumps(cl)
loaded = pickle.loads(dump)
assert loaded.bulky_attr == list(range(100))
assert loaded.non_pickable is not None
def test_expand_axis_label():
assert expand_axis_label('b') ... | <|file_sep|>tests/test_utils.py.diff
original:
from fuel.utils import do_not_pickle_attributes
updated:
from fuel.utils import do_not_pickle_attributes, expand_axis_label
<|file_sep|>original/tests/test_utils.py
from fuel.utils import do_not_pickle_attributes
@do_not_pickle_attributes("non_pickable", "bulky_attr")
cl... | b82dbd63aedf8a6a6af494b6d6be697a9f4230d5 | tests/test_utils.py | tests/test_utils.py | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.