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/components/delete-button/delete-button.jsx.diff
original:
updated:
import bindAll from 'lodash.bindall';
<|file_sep|>original/src/components/delete-button/delete-button.jsx
<div
aria-label="Delete"
className={classNames(
styles.deleteButton,
props.className
... | class DeleteButton extends React.Component {
constructor (props) {
super(props);
bindAll(this, [
'handleKeyPress',
'setRef'
]);
}
componentDidMount () {
document.addEventListener('keydown', this.handleKeyPress);
}
componentWillUnmount () {
... | <|file_sep|>src/components/delete-button/delete-button.jsx.diff
original:
updated:
import bindAll from 'lodash.bindall';
<|file_sep|>original/src/components/delete-button/delete-button.jsx
<div
aria-label="Delete"
className={classNames(
styles.deleteButton,
props.className
... | 1b4b50b09a8ae03298786fb26a404ca144743d07 | src/components/delete-button/delete-button.jsx | src/components/delete-button/delete-button.jsx | JSX |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
<|file_sep|>updated/.travis.yml | sudo: false
language: node_js
node_js:
- 'stable'
- '0.12'
- '0.10' | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
<|file_sep|>updated/.travis.yml
sudo: false
language: node_js
node_js:
- 'stable'
- '0.12'
- '0.10' | b3ae7e5216f0b84828d5ac22eba5b37f414dc9f1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>efficientdet/dataset/README.md.diff
original:
This folder provide a tool to convert coco data to tfrecord.
updated:
This folder provides tools for converting raw coco/pascal data to tfrecord.
<|file_sep|>efficientdet/dataset/README.md.diff
original:
Example usage:
updated:
### 1. Convert COCO validation set... | This folder provides tools for converting raw coco/pascal data to tfrecord.
### 1. Convert COCO validation set to tfrecord:
# Download coco data.
!wget http://images.cocodataset.org/zips/val2017.zip
!wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip
!unzip val2017.zip
!un... | <|file_sep|>efficientdet/dataset/README.md.diff
original:
This folder provide a tool to convert coco data to tfrecord.
updated:
This folder provides tools for converting raw coco/pascal data to tfrecord.
<|file_sep|>efficientdet/dataset/README.md.diff
original:
Example usage:
updated:
### 1. Convert COCO validation set... | 04935a7c1003e80b47aa2b9cbbbe681b6a176120 | efficientdet/dataset/README.md | efficientdet/dataset/README.md | Markdown |
<|file_sep|>original/locales/cak/encrypt.properties
update_my_info=Tik'ex wtamab'al
signup_header_variant_a=Yatok jun ch'akonel pa ewan rusik'ixik
join_the_convo=Tatunu' awi' pa ri Tzijonem
take_the_pledge=Tichap ri Sujïk
become_champ=Yatok jun Ch'akonel pan Ewan Rusik'ixik
sign_now=Titikirisäx molojri'ïl wakami
thank_... | update_my_info=Tik'ex wtamab'al
signup_header_variant_a=Yatok jun ch'akonel pa ewan rusik'ixik
join_the_convo=Tatunu' awi' pa ri Tzijonem
take_the_pledge=Tichap ri Sujïk
become_champ=Yatok jun Ch'akonel pan Ewan Rusik'ixik
sign_now=Titikirisäx molojri'ïl wakami
thank_you=¡Matyox!
share_this_now=Tikomonïx Re Re' Wakami
... | <|file_sep|>original/locales/cak/encrypt.properties
update_my_info=Tik'ex wtamab'al
signup_header_variant_a=Yatok jun ch'akonel pa ewan rusik'ixik
join_the_convo=Tatunu' awi' pa ri Tzijonem
take_the_pledge=Tichap ri Sujïk
become_champ=Yatok jun Ch'akonel pan Ewan Rusik'ixik
sign_now=Titikirisäx molojri'ïl wakami
thank_... | c8fe7a6d7b0844f403c3adfac3a10f0db9868ad2 | locales/cak/encrypt.properties | locales/cak/encrypt.properties | INI |
<|file_sep|>command_line/small_molecule.py.diff
original:
import sys
from xia2_main import run
updated:
from __future__ import division
<|file_sep|>command_line/small_molecule.py.diff
original:
updated:
import sys
<|file_sep|>original/command_line/small_molecule.py
import sys
from xia2_main import run
if __name__ =... | from __future__ import division
if __name__ == '__main__':
import sys
if 'small_molecule=true' not in sys.argv:
sys.argv.insert(1, 'small_molecule=true')
# clean up command-line so we know what was happening i.e. xia2.small_molecule
# becomes xia2 small_molecule=true (and other things) but without repeatin... | <|file_sep|>command_line/small_molecule.py.diff
original:
import sys
from xia2_main import run
updated:
from __future__ import division
<|file_sep|>command_line/small_molecule.py.diff
original:
updated:
import sys
<|file_sep|>original/command_line/small_molecule.py
import sys
from xia2_main import run
if __name__ =... | 18c287a9cfba6e06e1e41db5e23f57b58db64980 | command_line/small_molecule.py | command_line/small_molecule.py | Python |
<|file_sep|>lib/flatware/cucumber/runtime.rb.diff
original:
updated:
@loader = nil
<|file_sep|>original/lib/flatware/cucumber/runtime.rb
config
end
def run(feature_files=[])
options = Array(feature_files) + %w[--format Flatware::Cucumber::Formatter]
configure(::Cucumber::C... | end
def default_configuration
config = ::Cucumber::Cli::Configuration.new
config.parse! []
config
end
def run(feature_files=[])
@loader = nil
options = Array(feature_files) + %w[--format Flatware::Cucumber::Formatter]
configure(::Cucumber::Cli::... | <|file_sep|>lib/flatware/cucumber/runtime.rb.diff
original:
updated:
@loader = nil
<|file_sep|>original/lib/flatware/cucumber/runtime.rb
config
end
def run(feature_files=[])
options = Array(feature_files) + %w[--format Flatware::Cucumber::Formatter]
configure(::Cucumber::C... | cf52f6f30c749206c87da99f3c146e71fe848390 | lib/flatware/cucumber/runtime.rb | lib/flatware/cucumber/runtime.rb | Ruby |
<|file_sep|>original/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md
<|file_sep|>current/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md
<|file_sep|>updated/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md | ---
path: /posts/dc-shared-vehicle-collection.html
title: Collecting DC Shared Vehicle Locations
description: Collecting and exploring the movement of DC's shared vehicles with docked and dockless bike and scooter locations.
date: "2019-01-16T00:00:00.169Z"
---
The steady growth of bike shares and recent explosion of ... | <|file_sep|>original/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md
<|file_sep|>current/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md
<|file_sep|>updated/src/pages/posts/2019-01-16-dc-shared-vehicles/index.md
---
path: /posts/dc-shared-vehicle-collection.html
title: Collecting DC Shared Vehicle Locat... | 8856a6f806c4fccab7b5046a135aedf48168de9c | src/pages/posts/2019-01-16-dc-shared-vehicles/index.md | src/pages/posts/2019-01-16-dc-shared-vehicles/index.md | Markdown |
<|file_sep|>app/assets/stylesheets/application.scss.diff
original:
updated:
$blockquote-font-size: 100%;
<|file_sep|>original/app/assets/stylesheets/application.scss
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a ... | * require_self
*/
$font-family-serif: Georgia, "Times New Roman", Times, serif;
$headings-font-family: $font-family-serif;
$text-color: black;
$blockquote-font-size: 100%;
$visited-red: #990000;
$link-color: #FF0000;
$old-link-color: #428bca;
$btn-primary-bg: $old-link-color;
$pagination-active-bg: $link-color;
$pa... | <|file_sep|>app/assets/stylesheets/application.scss.diff
original:
updated:
$blockquote-font-size: 100%;
<|file_sep|>original/app/assets/stylesheets/application.scss
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a ... | 9a45d15a77ce1417be92052b204f0a503e99cc03 | app/assets/stylesheets/application.scss | app/assets/stylesheets/application.scss | SCSS |
<|file_sep|>lib/dot_grid/generator.rb.diff
original:
@page_size = params[:page_size] || "LETTER"
@margin = params[:margin] || 0.5
updated:
@page_size = params[:page_size] ? parse_page_size(params[:page_size]) : "LETTER"
@margin = params[:margin] || 0.5.mm
<|file_sep|>original/lib/dot_grid/genera... | :pages,
:page_types
)
def initialize(params)
@file_name = params[:file_name] || "dotgrid.pdf"
@page_size = params[:page_size] ? parse_page_size(params[:page_size]) : "LETTER"
@margin = params[:margin] || 0.5.mm
@page_types = params[:page_types] ? params[:page_types].split(",... | <|file_sep|>lib/dot_grid/generator.rb.diff
original:
@page_size = params[:page_size] || "LETTER"
@margin = params[:margin] || 0.5
updated:
@page_size = params[:page_size] ? parse_page_size(params[:page_size]) : "LETTER"
@margin = params[:margin] || 0.5.mm
<|file_sep|>original/lib/dot_grid/genera... | 5e7bb3e459b9a4df558e39c2a070a2e005e5e3b9 | lib/dot_grid/generator.rb | lib/dot_grid/generator.rb | Ruby |
<|file_sep|>build-support/start-daemon.sh.diff
original:
DATA_DIR=$3/$PROC_NAME
LOG_DIR=$DATA_DIR/glogs
updated:
BASE_DIR=$3/$PROC_NAME
DATA_DIR=$BASE_DIR/data
LOG_DIR=$BASE_DIR/glogs
<|file_sep|>original/build-support/start-daemon.sh
MASTER_ADDRESS_OPT=--master_rpc_bind_addresses
;;
kudu-tablet_server)
DATA_DIR_... | MASTER_ADDRESS_OPT=--master_rpc_bind_addresses
;;
kudu-tablet_server)
DATA_DIR_OPTION="--tablet_server_wal_dir=$DATA_DIR --tablet_server_data_dirs=$DATA_DIR"
MASTER_ADDRESS_OPT=--tablet_server_master_addrs
;;
*)
echo "Wrong process name"
exit 1
;;
esac
./build/latest/$PROC_NAME -flagfile=$FLAG_FILE --w... | <|file_sep|>build-support/start-daemon.sh.diff
original:
DATA_DIR=$3/$PROC_NAME
LOG_DIR=$DATA_DIR/glogs
updated:
BASE_DIR=$3/$PROC_NAME
DATA_DIR=$BASE_DIR/data
LOG_DIR=$BASE_DIR/glogs
<|file_sep|>original/build-support/start-daemon.sh
MASTER_ADDRESS_OPT=--master_rpc_bind_addresses
;;
kudu-tablet_server)
DATA_DIR_... | 4d5423473f2b4dfce0eff122253a7204de71bc89 | build-support/start-daemon.sh | build-support/start-daemon.sh | Shell |
<|file_sep|>src/components/Pages/Home/CardItem.jsx.diff
original:
updated:
let image = images ? images[0] : 'images/food/pie.png';
let avatar = host.avatar || 'images/avatar/cook0.png';
<|file_sep|>src/components/Pages/Home/CardItem.jsx.diff
original:
<img src={images[0]} style={{h... | let image = images ? images[0] : 'images/food/pie.png';
let avatar = host.avatar || 'images/avatar/cook0.png';
return (
<Card style={{boxShadow: '0 2px 4px rgba(0,0,0,.15)', width: '48%', display:'inline-block', margin: '3px'}}
onClick={() => {hashHistory.push({pat... | <|file_sep|>src/components/Pages/Home/CardItem.jsx.diff
original:
updated:
let image = images ? images[0] : 'images/food/pie.png';
let avatar = host.avatar || 'images/avatar/cook0.png';
<|file_sep|>src/components/Pages/Home/CardItem.jsx.diff
original:
<img src={images[0]} style={{h... | 2b58393097a30a8cdd8beef10c29b1be7087cf5b | src/components/Pages/Home/CardItem.jsx | src/components/Pages/Home/CardItem.jsx | JSX |
<|file_sep|>CHANGES.md.diff
original:
## Version 3.1.1
updated:
## Version 3.2
<|file_sep|>original/CHANGES.md
# Change Log
## Version 3.1.1
Not released yet.
### New Features / Changes
* JavaScript code style conformance through JSCS
## Version 3.1
Released on 30 April 2016 and mostly adds much needed functional... | # Change Log
## Version 3.2
Not released yet.
### New Features / Changes
* JavaScript code style conformance through JSCS
* Timers on lights
## Version 3.1
Released on 30 April 2016 and mostly adds much needed functionality.
### New Features / Changes
* You can now add and remove lights to/from scenes
* Lights ... | <|file_sep|>CHANGES.md.diff
original:
## Version 3.1.1
updated:
## Version 3.2
<|file_sep|>original/CHANGES.md
# Change Log
## Version 3.1.1
Not released yet.
### New Features / Changes
* JavaScript code style conformance through JSCS
## Version 3.1
Released on 30 April 2016 and mostly adds much needed functional... | db5078249395c7a153a99ac4067b3b84f876b0c3 | CHANGES.md | CHANGES.md | Markdown |
<|file_sep|>README.md.diff
original:
updated:
- Full IE8+ compatibility
<|file_sep|>README.md.diff
original:
- Full IE8+ compatibility
updated:
- Complete function documentation
<|file_sep|>original/README.md
This library will improve on the original in the following ways:
- Much smaller file size
- Cleaner code struc... | This library will improve on the original in the following ways:
- Full IE8+ compatibility
- Much smaller file size
- Cleaner code structure
- Fewer bugs
- Complete function documentation
- Bower support (coming soon)
However this comes at the cost of cutting away some features, such as the 'auto' and '__px' clamping ... | <|file_sep|>README.md.diff
original:
updated:
- Full IE8+ compatibility
<|file_sep|>README.md.diff
original:
- Full IE8+ compatibility
updated:
- Complete function documentation
<|file_sep|>original/README.md
This library will improve on the original in the following ways:
- Much smaller file size
- Cleaner code struc... | cc41b637d587bf9207f41deac15132fd89473aa3 | README.md | README.md | Markdown |
<|file_sep|>original/README.md
$ pip install -e git+https://github.com/eallrich/dreamdns.git#egg=Package
$ export DREAMHOST_API_KEY="PUT_API_KEY_HERE"
```
Using the library
-----------------
```python
>>> import dreamdns
>>> r = dreamdns.list()
>>> print r['data']
```
Running the tests
-----------------
DreamHost k... | $ pip install -e git+https://github.com/eallrich/dreamdns.git#egg=Package
$ export DREAMHOST_API_KEY="PUT_API_KEY_HERE"
```
Using the library
-----------------
```python
>>> import dreamdns
>>> r = dreamdns.list()
>>> print r
```
Running the tests
-----------------
DreamHost kindly provides a read-only API key for ... | <|file_sep|>original/README.md
$ pip install -e git+https://github.com/eallrich/dreamdns.git#egg=Package
$ export DREAMHOST_API_KEY="PUT_API_KEY_HERE"
```
Using the library
-----------------
```python
>>> import dreamdns
>>> r = dreamdns.list()
>>> print r['data']
```
Running the tests
-----------------
DreamHost k... | c7b24baae4052dc3c2d469d1067ceda7d5d391d7 | README.md | README.md | Markdown |
<|file_sep|>original/docs/index.rst
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PlasmaPy's documentation!
====================================
.. toctree::
:maxdepth: 2
:caption: Contents:
Classes
=======
.. toctree::
:ma... | You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PlasmaPy's documentation!
====================================
.. toctree::
:maxdepth: 2
:caption: Contents:
Modules
=======
.. toctree::
:maxdepth: 1
atomic/index
math... | <|file_sep|>original/docs/index.rst
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PlasmaPy's documentation!
====================================
.. toctree::
:maxdepth: 2
:caption: Contents:
Classes
=======
.. toctree::
:ma... | e6e35d12a0aa8f5c891f4bf7e0ebe6400735cda0 | docs/index.rst | docs/index.rst | reStructuredText |
<|file_sep|>original/index.js
}
if (file.isBuffer()) {
if (file.contents) {
var stringContents = file.contents.toString();
var result = pocoGen(stringContents, options);
file.contents = new Buffer(result);
var suffix = options.definitionFile === false ? 'ts' : 'd.ts';
file.pat... | }
if (file.isBuffer()) {
if (file.contents) {
var stringContents = file.contents.toString();
var result = pocoGen(stringContents, options);
file.contents = new Buffer(result);
var suffix = options && options.definitionFile === false ? 'ts' : 'd.ts';
file.path = file.path.subst... | <|file_sep|>original/index.js
}
if (file.isBuffer()) {
if (file.contents) {
var stringContents = file.contents.toString();
var result = pocoGen(stringContents, options);
file.contents = new Buffer(result);
var suffix = options.definitionFile === false ? 'ts' : 'd.ts';
file.pat... | 0ead169a41158c2551ef5085d1ff1739fe19157e | index.js | index.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
updated:
- '3.6'
<|file_sep|>original/.travis.yml
language: python
python:
- '3.5'
install:
- python setup.py install
- pip install -r docs/requirements.txt
- pip install coveralls
script:
- python setup.py test
- cd docs && make doctest
- coveralls
<|file_sep|>current/.travis.ym... | language: python
python:
- '3.5'
- '3.6'
install:
- python setup.py install
- pip install -r docs/requirements.txt
- pip install coveralls
script:
- python setup.py test
- cd docs && make doctest && cd ..
after_success:
- coveralls | <|file_sep|>.travis.yml.diff
original:
updated:
- '3.6'
<|file_sep|>original/.travis.yml
language: python
python:
- '3.5'
install:
- python setup.py install
- pip install -r docs/requirements.txt
- pip install coveralls
script:
- python setup.py test
- cd docs && make doctest
- coveralls
<|file_sep|>current/.travis.ym... | cbe980eb1b0fe5e4cf6ed1ff9ed894e27eb8140c | .travis.yml | .travis.yml | YAML |
<|file_sep|>ci.sh.diff
original:
# Bash function for doing things as part of Travis build
#
# Why? mostly because Travis deployment scripts need to be a
# a single command https://docs.travis-ci.com/user/deployment/script/
updated:
# Bash functions for doing things as part of CI build
<|file_sep|>ci.sh.diff
original:
... | #!/bin/sh
# Bash functions for doing things as part of CI build
checkout_pages() {
git config --global user.email ci@stenci.la
git config --global user.name Stencila CI Bot
git remote add origin-pages https://${GITHUB_TOKEN}@github.com/stencila/schema.git > /dev/null 2>&1
git fetch --all
git checkout --for... | <|file_sep|>ci.sh.diff
original:
# Bash function for doing things as part of Travis build
#
# Why? mostly because Travis deployment scripts need to be a
# a single command https://docs.travis-ci.com/user/deployment/script/
updated:
# Bash functions for doing things as part of CI build
<|file_sep|>ci.sh.diff
original:
... | d52239bb8852139b1f324b9535542bf177f1a3ab | ci.sh | ci.sh | Shell |
<|file_sep|>original/package.json
},
"keywords": [
"sentry",
"node"
],
"license": "BSD",
"bugs": {
"url": "https://github.com/Clever/sentry-node/issues"
},
"dependencies": {
"debug": "~0.7.4",
"loofah": "0.0.6",
"quest": "~0.2.4",
"underscore": "~1.5.2"
},
"devDependencies"... | },
"keywords": [
"sentry",
"node"
],
"license": "BSD",
"bugs": {
"url": "https://github.com/Clever/sentry-node/issues"
},
"dependencies": {
"debug": "~2.6.9",
"loofah": "0.0.6",
"quest": "~0.2.4",
"underscore": "~1.5.2"
},
"devDependencies": {
"coffee-script": "~1.6.3",... | <|file_sep|>original/package.json
},
"keywords": [
"sentry",
"node"
],
"license": "BSD",
"bugs": {
"url": "https://github.com/Clever/sentry-node/issues"
},
"dependencies": {
"debug": "~0.7.4",
"loofah": "0.0.6",
"quest": "~0.2.4",
"underscore": "~1.5.2"
},
"devDependencies"... | 5dc99df7d7d9f3a38044c5287bec6973f69db8d3 | package.json | package.json | JSON |
<|file_sep|>original/src/artgraph/miner.py
relationships = []
master = None
task_queue = []
def __init__(self, debug=False):
mwinterface = pymw.interfaces.GenericInterface()
self.master = pymw.PyMW_Master(mwinterface, delete_files=not debug)
def mine(self, artist):
self... | relationships = []
master = None
task_queue = []
def __init__(self, debug=False):
mwinterface = pymw.interfaces.GenericInterface()
self.master = pymw.PyMW_Master(mwinterface, delete_files=not debug)
def mine(self, artist):
self.mine_internal(Node(artist, NodeTypes.ARTIS... | <|file_sep|>original/src/artgraph/miner.py
relationships = []
master = None
task_queue = []
def __init__(self, debug=False):
mwinterface = pymw.interfaces.GenericInterface()
self.master = pymw.PyMW_Master(mwinterface, delete_files=not debug)
def mine(self, artist):
self... | 5e0e22eb6e709eb5291ac50a28b96c2c05909a2d | src/artgraph/miner.py | src/artgraph/miner.py | Python |
<|file_sep|>original/db.js
var schema = {
Geek: {
schema: {
id: "Geek",
description: "A geek / person / dev ...",
type: "object",
properties: {
name: {type: "string"},
pole: {type: "string"},
width: {type: "float"},
height: {type: "float"},
top: {... |
var schema = {
Geek: {
schema: {
id: "Geek",
description: "A geek / person / dev ...",
type: "object",
properties: {
id: {type: "string"},
name: {type: "string"},
pole: {type: "string"},
width: {type: "float"},
height: {type: "float"},
top... | <|file_sep|>original/db.js
var schema = {
Geek: {
schema: {
id: "Geek",
description: "A geek / person / dev ...",
type: "object",
properties: {
name: {type: "string"},
pole: {type: "string"},
width: {type: "float"},
height: {type: "float"},
top: {... | f0d6a50b0d6ac976bef997cfa585f7a51ea102f9 | db.js | db.js | JavaScript |
<|file_sep|>README.md.diff
original:
updated:
Project
[](https://travis-ci.com/spryker/project)
[](https://travis-ci.com/spryker/project)
[]... | <|file_sep|>README.md.diff
original:
updated:
Project
[](https://travis-ci.com/spryker/project)
[ {
if (event.keyCode === 13 && event.keyCode === 27) {
return false
}
},
updated:
<|file_sep|>original/app/components/search.js
const query = event.target.value
this.props.handleQueryChange(query)
},
setReference ... | this.setState({
input,
})
},
render () {
const { value } = this.props
return (
<input
title='Search Zazu'
className='mousetrap'
ref={this.setReference}
type='text'
onChange={this.handleQueryChange}
value={value}/>
)
},
})
module.ex... | <|file_sep|>app/components/search.js.diff
original:
handleKeyPress (event) {
if (event.keyCode === 13 && event.keyCode === 27) {
return false
}
},
updated:
<|file_sep|>original/app/components/search.js
const query = event.target.value
this.props.handleQueryChange(query)
},
setReference ... | 2e150a8214e181730cce297b2e0fcf3a7965cec0 | app/components/search.js | app/components/search.js | JavaScript |
<|file_sep|>original/setup/default-editor-filetypes.txt
jsx
less
lisp
md
patch
pegjs
php
plist
py
rb
scss
sh
sql
ss
ssp
svg
tex
tpl
ts
tsx
txt
<|file_sep|>current/setup/default-editor-filetypes.txt
jsx
less
lisp
md
patch
pegjs
php
plist
py
rb
scss
sh
sql
ss
ssp
svg
tex
tpl
ts
tsx
txt
<|file_sep|>updated/setup/default-e... | jsx
less
lisp
md
patch
pegjs
php
plist
py
rb
rss
scss
sh
sql
ss
ssp
svg
tex
tpl
ts
tsx | <|file_sep|>original/setup/default-editor-filetypes.txt
jsx
less
lisp
md
patch
pegjs
php
plist
py
rb
scss
sh
sql
ss
ssp
svg
tex
tpl
ts
tsx
txt
<|file_sep|>current/setup/default-editor-filetypes.txt
jsx
less
lisp
md
patch
pegjs
php
plist
py
rb
scss
sh
sql
ss
ssp
svg
tex
tpl
ts
tsx
txt
<|file_sep|>updated/setup/default-e... | 9ef2f6622fc34bc7a9a778fe4b9a8a34934e8baa | setup/default-editor-filetypes.txt | setup/default-editor-filetypes.txt | Text |
<|file_sep|>original/tests/issue0078.py
<|file_sep|>current/tests/issue0078.py
<|file_sep|>updated/tests/issue0078.py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 21 22:09:10 2013
@author: Jeff
"""
import logging
try: print('Logger already instantiated, named: ', logger.name)
except:
# create logger
logger = logging.getLogger()
logger.setLevel(logging.CRITICAL)
# create console handler with a higher log level
ch... | <|file_sep|>original/tests/issue0078.py
<|file_sep|>current/tests/issue0078.py
<|file_sep|>updated/tests/issue0078.py
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 21 22:09:10 2013
@author: Jeff
"""
import logging
try: print('Logger already instantiated, named: ', logger.name)
except:
# create logger
logger... | de8d507e64894bdaaf036f99f179637c2660f0f1 | tests/issue0078.py | tests/issue0078.py | Python |
<|file_sep|>original/context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java
<|file_sep|>current/context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java
<|file_sep|>updated/context-propagation-java5/src/main/java/nl/talsmasoftware/context/cle... | /*
* Copyright 2016-2019 Talsma ICT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | <|file_sep|>original/context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java
<|file_sep|>current/context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java
<|file_sep|>updated/context-propagation-java5/src/main/java/nl/talsmasoftware/context/cle... | d0f1d7b5e438b59e1062d9d782458e942f21b149 | context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java | context-propagation-java5/src/main/java/nl/talsmasoftware/context/clearable/package-info.java | Java |
<|file_sep|>original/mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java
<|file_sep|>current/mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java
<|file_sep|>updated/mockspresso-core/src/test/java/com/episode6/hackit/mockspress... | package com.episode6.hackit.mockspresso.reflect;
import com.episode6.hackit.mockspresso.DefaultTestRunner;
import com.episode6.hackit.mockspresso.annotation.TestQualifierAnnotation;
import org.junit.Test;
import org.junit.runner.RunWith;
import javax.inject.Named;
import java.lang.annotation.Annotation;
import java.l... | <|file_sep|>original/mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java
<|file_sep|>current/mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java
<|file_sep|>updated/mockspresso-core/src/test/java/com/episode6/hackit/mockspress... | cb19ee3fa2f82ecead2a3c1a52e0fae8cb41361c | mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java | mockspresso-core/src/test/java/com/episode6/hackit/mockspresso/reflect/AnnotationLiteralTest.java | Java |
<|file_sep|>.travis.yml.diff
original:
updated:
- pip install -U ansible
<|file_sep|>.travis.yml.diff
original:
# - docker run -d bio-ansbile /bin/sh -c "source /etc/profile.d/lmod.sh; module --force try-load BigDataScript; module --force try-load RNAsik-pipe; RNAsik-pipe | grep 'RNAsik version'"
updated:
<|file_... | ---
# https://docs.travis-ci.com/user/docker/
#
sudo: required
language: python
services:
- docker
before_install:
- pip install -U ansible
# - travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-local .
- travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-rnasik .
s... | <|file_sep|>.travis.yml.diff
original:
updated:
- pip install -U ansible
<|file_sep|>.travis.yml.diff
original:
# - docker run -d bio-ansbile /bin/sh -c "source /etc/profile.d/lmod.sh; module --force try-load BigDataScript; module --force try-load RNAsik-pipe; RNAsik-pipe | grep 'RNAsik version'"
updated:
<|file_... | d4cf827bb3c02ca35369062f2cf2a69fd609b663 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/tasks/2017_10_30_copy_commentaire_piece_justificative_to_file.rake
process_commentaire(c)
end
end
def process_commentaire commentaire
puts "Processing commentaire #{commentaire.id}"
if commentaire.piece_justificative.present?
# https://github.com/carrierwaveuploader... | def process_commentaire commentaire
puts "Processing commentaire #{commentaire.id}"
if commentaire.piece_justificative.present?
# https://github.com/carrierwaveuploader/carrierwave#uploading-files-from-a-remote-location
commentaire.remote_file_url = commentaire.piece_justificative.content_url
... | <|file_sep|>original/lib/tasks/2017_10_30_copy_commentaire_piece_justificative_to_file.rake
process_commentaire(c)
end
end
def process_commentaire commentaire
puts "Processing commentaire #{commentaire.id}"
if commentaire.piece_justificative.present?
# https://github.com/carrierwaveuploader... | e4d9b7f960f5bcdd9575678322662539ddcf1485 | lib/tasks/2017_10_30_copy_commentaire_piece_justificative_to_file.rake | lib/tasks/2017_10_30_copy_commentaire_piece_justificative_to_file.rake | Ruby |
<|file_sep|>original/db/migrations/20170213050000_update_m_country_taiwan.sql
<|file_sep|>current/db/migrations/20170213050000_update_m_country_taiwan.sql
<|file_sep|>updated/db/migrations/20170213050000_update_m_country_taiwan.sql | -- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
BEGIN;
UPDATE `m_country` SET name_ja='台湾(台湾省/中華民国)' WHERE id = 158;
COMMIT;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
BEGIN;
UPDATE `m_country` SET name_ja='台湾' WHERE id = 158;
COMMIT; | <|file_sep|>original/db/migrations/20170213050000_update_m_country_taiwan.sql
<|file_sep|>current/db/migrations/20170213050000_update_m_country_taiwan.sql
<|file_sep|>updated/db/migrations/20170213050000_update_m_country_taiwan.sql
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
BEGIN;
... | 10c630940b4a70d771c26815d2008daa68bad31c | db/migrations/20170213050000_update_m_country_taiwan.sql | db/migrations/20170213050000_update_m_country_taiwan.sql | SQL |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
- 2.1.0 | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
- 2.1.0 | 604c97c76fe77207dcbe41d507235fbc8ef5d675 | .travis.yml | .travis.yml | YAML |
<|file_sep|>README.md.diff
original:
# Messaging Ruby SDK
`flowroute-messaging-ruby` is a Ruby SDK that provides methods for interacting with [v2](https://developer.flowroute.com/api/messaging/overview/) of the Flowroute API. These methods can be used to accomplish the following:
updated:
# Messaging Ruby SDK
<|file_s... | # Messaging Ruby SDK
**flowroute-messaging-ruby** is a Ruby API Wrapper that provides methods for interacting with [v2](https://developer.flowroute.com/api/messages/v2.0) of the Flowroute API. These methods can be used to accomplish the following:
## Number Management
* Search for purchasable phone numbers
* Purchase ... | <|file_sep|>README.md.diff
original:
# Messaging Ruby SDK
`flowroute-messaging-ruby` is a Ruby SDK that provides methods for interacting with [v2](https://developer.flowroute.com/api/messaging/overview/) of the Flowroute API. These methods can be used to accomplish the following:
updated:
# Messaging Ruby SDK
<|file_s... | cebd4e412116191c1508fd2f3259e0e5fc94437f | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
{
"name": "magento-ecg/coding-standard",
"description": "A set of PHP_CodeSniffer rules and sniffs.",
"homepage": "https://github.com/magento-ecg/coding-standard",
"license": "MIT",
"authors": [
{
"name": "Magento Expert Consulting Group",
... | {
"name": "magento-ecg/coding-standard",
"description": "A set of PHP_CodeSniffer rules and sniffs.",
"homepage": "https://github.com/magento-ecg/coding-standard",
"license": "MIT",
"authors": [
{
"name": "Magento Expert Consulting Group",
"homepage": "http://magentoc... | <|file_sep|>original/composer.json
{
"name": "magento-ecg/coding-standard",
"description": "A set of PHP_CodeSniffer rules and sniffs.",
"homepage": "https://github.com/magento-ecg/coding-standard",
"license": "MIT",
"authors": [
{
"name": "Magento Expert Consulting Group",
... | 97bbded538899f62d8db4d1e7ed3778d6868d99f | composer.json | composer.json | JSON |
<|file_sep|>original/src/handlers/InProgress.ts
<|file_sep|>current/src/handlers/InProgress.ts
<|file_sep|>updated/src/handlers/InProgress.ts | import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
import {Attributes, RequestContext} from "../definitions/SkillContext";
import * as Frames from "../definitions/FrameDirectory";
let entry = (attr: Attributes, ctx: RequestContext) => {
let model = new ResponseModel();
model.speec... | <|file_sep|>original/src/handlers/InProgress.ts
<|file_sep|>current/src/handlers/InProgress.ts
<|file_sep|>updated/src/handlers/InProgress.ts
import {Frame, ResponseContext, ResponseModel} from "../definitions/Handler";
import {Attributes, RequestContext} from "../definitions/SkillContext";
import * as Frames from "... | 2d7b039bb4227c3566012df8b08829bf529c2b72 | src/handlers/InProgress.ts | src/handlers/InProgress.ts | TypeScript |
<|file_sep|>original/.travis.yml
sudo: false
language: rust
rust: nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- travis-cargo build
- travis-cargo test
- travis-... | - libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- travis-cargo build
- travis-cargo test
- travis-cargo bench
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
after_success:
- travis-cargo coveralls --no-sudo
- bash <(curl https://codecov.io/b... | <|file_sep|>original/.travis.yml
sudo: false
language: rust
rust: nightly
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- travis-cargo build
- travis-cargo test
- travis-... | 30b6896b0fd28e7145ccb1e52a43ddbdb032b554 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Source/Controllers/DefaultColorViewController.swift
import UIKit
class DefaultColorViewController: UITableViewController {
lazy var dataSource = makeDataSource()
override func viewDidLoad() {
super.viewDidLoad()
tableView.dataSource = dataSource
#warning("... | import UIKit
class DefaultColorViewController: UITableViewController {
lazy var dataSource = makeDataSource()
override func viewDidLoad() {
super.viewDidLoad()
tableView.dataSource = dataSource
applySnapshot()
}
func makeDataSource() -> UITableViewDiffableDataSour... | <|file_sep|>original/Source/Controllers/DefaultColorViewController.swift
import UIKit
class DefaultColorViewController: UITableViewController {
lazy var dataSource = makeDataSource()
override func viewDidLoad() {
super.viewDidLoad()
tableView.dataSource = dataSource
#warning("... | c0139d4338749130304937cde1c7646371b667cf | Source/Controllers/DefaultColorViewController.swift | Source/Controllers/DefaultColorViewController.swift | Swift |
<|file_sep|>spec/service_methods/miq_ae_service_classification_spec.rb.diff
original:
@cat1 = FactoryGirl.create(:classification_department_with_tags)
@cat2 = FactoryGirl.create(:classification_cost_center_with_tags)
@cat_array = Classification.categories.collect(&:name)
@tags_array = @cat2.entries.coll... | describe MiqAeMethodService::MiqAeServiceClassification do
before do
FactoryGirl.create(:classification_department_with_tags)
@cc_cat = FactoryGirl.create(:classification_cost_center_with_tags)
end
let(:user) { FactoryGirl.create(:user_with_group) }
let(:categories) { MiqAeMethodService::MiqAeServiceCl... | <|file_sep|>spec/service_methods/miq_ae_service_classification_spec.rb.diff
original:
@cat1 = FactoryGirl.create(:classification_department_with_tags)
@cat2 = FactoryGirl.create(:classification_cost_center_with_tags)
@cat_array = Classification.categories.collect(&:name)
@tags_array = @cat2.entries.coll... | bc62cd6ccea769f7222b65387286232cc4170770 | spec/service_methods/miq_ae_service_classification_spec.rb | spec/service_methods/miq_ae_service_classification_spec.rb | Ruby |
<|file_sep|>original/.travis.yml
language: php
php:
- '7.0'
- '7.1'
- nightly
before_script: composer install -n
script: phpunit
<|file_sep|>current/.travis.yml
language: php
php:
- '7.0'
- '7.1'
- nightly
before_script: composer install -n
script: phpunit
<|file_sep|>updated/.travis.yml | language: php
php:
- '7.0'
- '7.1'
- '7.2'
before_script: composer install -n
script: phpunit | <|file_sep|>original/.travis.yml
language: php
php:
- '7.0'
- '7.1'
- nightly
before_script: composer install -n
script: phpunit
<|file_sep|>current/.travis.yml
language: php
php:
- '7.0'
- '7.1'
- nightly
before_script: composer install -n
script: phpunit
<|file_sep|>updated/.travis.yml
language: php... | 05aa196a3f8ae06794f2a44ea80d59498428625b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/factories/janus_instance.rb
# frozen_string_literal: true
FactoryBot.define do
factory :janus_instance, class: RubyRabbitmqJanus::Models::JanusInstance do
enable { true }
end
end
<|file_sep|>current/spec/factories/janus_instance.rb
# frozen_string_literal: true
FactoryBot.define do
... | # frozen_string_literal: true
FactoryBot.define do
factory :janus_instance, class: 'RubyRabbitmqJanus::Models::JanusInstance' do
enable { true }
end
end | <|file_sep|>original/spec/factories/janus_instance.rb
# frozen_string_literal: true
FactoryBot.define do
factory :janus_instance, class: RubyRabbitmqJanus::Models::JanusInstance do
enable { true }
end
end
<|file_sep|>current/spec/factories/janus_instance.rb
# frozen_string_literal: true
FactoryBot.define do
... | 4c8c953ee3b05f8f70c43767a3e8b033eaed0a3c | spec/factories/janus_instance.rb | spec/factories/janus_instance.rb | Ruby |
<|file_sep|>MuffinFramework/MuffinClient.cs.diff
original:
updated:
MuffinLoader.Dispose();
ServiceLoader.Dispose();
PlatformLoader.Dispose();
<|file_sep|>original/MuffinFramework/MuffinClient.cs
lock (_lockObj)
{
if (IsStarted)
... | lock (_lockObj)
{
if (IsStarted)
throw new InvalidOperationException("MuffinClient has already been started.");
IsStarted = true;
}
PlatformLoader.Enable(Catalog, new PlatformArgs(PlatformLoader));
ServiceLo... | <|file_sep|>MuffinFramework/MuffinClient.cs.diff
original:
updated:
MuffinLoader.Dispose();
ServiceLoader.Dispose();
PlatformLoader.Dispose();
<|file_sep|>original/MuffinFramework/MuffinClient.cs
lock (_lockObj)
{
if (IsStarted)
... | 3108bfd0500956740777db21190ee8bd9afa564e | MuffinFramework/MuffinClient.cs | MuffinFramework/MuffinClient.cs | C# |
<|file_sep|>original/app/views/pages/changelog.html.haml
#changelog
%h1 What's New
%article
%h2 24/12/2012
%ul
%li Added what's new page.
%li Added following indicator to main thread lists.
%li Increased message box size.
%li Disable voting and message box if you cannot use them.
... | #changelog
%h1 What's New
%article
%h2 04/03/2012
%ul
%li Issues list in group context only shows issues in that group's area.
%li Logging in returns the user to the last group they were in.
%li New thread notifications can be replied to.
%article
%h2 24/02/2012
%ul
%li A... | <|file_sep|>original/app/views/pages/changelog.html.haml
#changelog
%h1 What's New
%article
%h2 24/12/2012
%ul
%li Added what's new page.
%li Added following indicator to main thread lists.
%li Increased message box size.
%li Disable voting and message box if you cannot use them.
... | bcc500dc81855b478e2dc332d683959ea83b4d21 | app/views/pages/changelog.html.haml | app/views/pages/changelog.html.haml | Haml |
<|file_sep|>modules/recognizer/node_helper.js.diff
original:
updated:
console.log(response)
debugger
json = JSON.parse(response)
<|file_sep|>original/modules/recognizer/node_helper.js
image = exec('fswebcam -r 1280x720 --no-banner ./public/webcam_pic.jpg')
img = fs.readFile('./public/webc... |
requestParams = {
api_key: '9oOudn2moC5eM-pQwLy_ugUs6rYRT7aj',
api_secret: 'ROglv8QFta3JmGAppEYTpoPY68DjERzX',
image_file: img,
outer_id: 'mirrormirror'
}
response = request.post('https://api-us.faceplusplus.com/facepp/v3/search', requestParams)
console.log(res... | <|file_sep|>modules/recognizer/node_helper.js.diff
original:
updated:
console.log(response)
debugger
json = JSON.parse(response)
<|file_sep|>original/modules/recognizer/node_helper.js
image = exec('fswebcam -r 1280x720 --no-banner ./public/webcam_pic.jpg')
img = fs.readFile('./public/webc... | d74b088899337fa3f7b6afba8fded48b1a91fe30 | modules/recognizer/node_helper.js | modules/recognizer/node_helper.js | JavaScript |
<|file_sep|>original/Kudu.Services.Web/updateNodeModules.cmd
cmd /c npm update kudusync
) else (
cmd /c npm install kudusync
)
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
pop... | ) else (
cmd /c npm install kudusync
)
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0 | <|file_sep|>original/Kudu.Services.Web/updateNodeModules.cmd
cmd /c npm update kudusync
) else (
cmd /c npm install kudusync
)
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
pop... | 4a3ce61dff91fefd7057a8f34db37790c79683dc | Kudu.Services.Web/updateNodeModules.cmd | Kudu.Services.Web/updateNodeModules.cmd | Batchfile |
<|file_sep|>lib/caprese/routing/caprese_resources.rb.diff
original:
module Caprese
module Routing
module CapreseResources
extend ActionDispatch::Routing::Mapper::Resources
updated:
class ActionDispatch::Routing::Mapper
def caprese_resources(*resources, &block)
options = resources.extract_options!
<|fi... | resources.each do |r|
resources r, only: [:index, :show, :create, :update, :destroy] do
yield if block_given?
member do
get 'relationships/:relationship',
to: "#{parent_resource.name}#get_relationship_definition",
as: :relationship_definition
match... | <|file_sep|>lib/caprese/routing/caprese_resources.rb.diff
original:
module Caprese
module Routing
module CapreseResources
extend ActionDispatch::Routing::Mapper::Resources
updated:
class ActionDispatch::Routing::Mapper
def caprese_resources(*resources, &block)
options = resources.extract_options!
<|fi... | e98bde23c977ae9d83dc7dad38fd614fac233ee1 | lib/caprese/routing/caprese_resources.rb | lib/caprese/routing/caprese_resources.rb | Ruby |
<|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
- name: Upload to galaxy
uses: robertdebock/galaxy-action@1.0.3
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
<|file_sep|>original/.github/workflows/ci.yml
tox
release:
if: github.event_name == 'push' && ... | tox
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs:
- tests
runs-on: ubuntu-latest
steps:
- name: Upload to galaxy
uses: robertdebock/galaxy-action@1.0.3
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
- na... | <|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
- name: Upload to galaxy
uses: robertdebock/galaxy-action@1.0.3
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
<|file_sep|>original/.github/workflows/ci.yml
tox
release:
if: github.event_name == 'push' && ... | 0886cf25e3033c3180f9ded56ddaebd61d9932b5 | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/app/views/pictures/new.html.erb
<% content_for(:title, 'Upload a picture') %>
<% content_for(:page, 'upload') %>
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<h4 class="card-header">Upload a picture</h4>
<div class="card-block">
<%= r... | <% content_for(:title, 'Upload a picture') %>
<% content_for(:page, 'upload') %>
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<h4 class="card-header">Upload a picture</h4>
<div class="card-block">
<% if current_user.balance < 0 %>
<div class="al... | <|file_sep|>original/app/views/pictures/new.html.erb
<% content_for(:title, 'Upload a picture') %>
<% content_for(:page, 'upload') %>
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<h4 class="card-header">Upload a picture</h4>
<div class="card-block">
<%= r... | 408579ab3ca6df7456205eb8c4f73a8d458fe7c6 | app/views/pictures/new.html.erb | app/views/pictures/new.html.erb | HTML+ERB |
<|file_sep|>original/src/com/msbaudiosteganography/text/TextProcessor.java
<|file_sep|>current/src/com/msbaudiosteganography/text/TextProcessor.java
<|file_sep|>updated/src/com/msbaudiosteganography/text/TextProcessor.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.msbaudiosteganography.text;
/**
*
* @author Afina, Meisyal, Irfan
*/
public class TextProcessor {
public byte[] bi... | <|file_sep|>original/src/com/msbaudiosteganography/text/TextProcessor.java
<|file_sep|>current/src/com/msbaudiosteganography/text/TextProcessor.java
<|file_sep|>updated/src/com/msbaudiosteganography/text/TextProcessor.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change... | 6dab6214397439e1ea460067bdbbb27e80899e97 | src/com/msbaudiosteganography/text/TextProcessor.java | src/com/msbaudiosteganography/text/TextProcessor.java | Java |
<|file_sep|>original/README.md
# Polyfills
> A way of getting the browser to behave and support the latest specifications.
This is my own collection of code snippets that support different native features of browsers using JavaScript (and if required, Flash in some cases).
# License
License: http://rem.mit-license.... | # Polyfills
> A way of getting the browser to behave and support the latest specifications.
This is my own collection of code snippets that support different native features of browsers using JavaScript (and if required, Flash in some cases).
## Component Installation
You can instoll polyfills using component:
```... | <|file_sep|>original/README.md
# Polyfills
> A way of getting the browser to behave and support the latest specifications.
This is my own collection of code snippets that support different native features of browsers using JavaScript (and if required, Flash in some cases).
# License
License: http://rem.mit-license.... | 7928875cd77ef4fa71620eacf6932d9579cf82cb | README.md | README.md | Markdown |
<|file_sep|>original/lib/rack/alive.rb
require "rack/alive/version"
module Rack
class Alive
# Your code goes here...
def initialize(app, conditional_block = nil)
@app, @path, @conditional_block = app, "/alive", conditional_block
end
def call(env)
if @path == env['PATH_INFO']
ali... | require "rack/alive/version"
module Rack
class Alive
def initialize(app, conditional_block = nil)
@app, @path, @conditional_block = app, "/alive", conditional_block
end
def call(env)
if @path == env['PATH_INFO']
alive?(env)
else
@app.call(env)
end
end
pr... | <|file_sep|>original/lib/rack/alive.rb
require "rack/alive/version"
module Rack
class Alive
# Your code goes here...
def initialize(app, conditional_block = nil)
@app, @path, @conditional_block = app, "/alive", conditional_block
end
def call(env)
if @path == env['PATH_INFO']
ali... | 258bbfad7900568b23690de51524d416af974ded | lib/rack/alive.rb | lib/rack/alive.rb | Ruby |
<|file_sep|>original/setup.py
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_descriptio... | from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='... | <|file_sep|>original/setup.py
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_descriptio... | 00567407069f706b9cf55dfccb18fd80b9ed8f72 | setup.py | setup.py | Python |
<|file_sep|>original/scripts/after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
# Setting Up MongoDB
# https://github.com/zakhttp/Mongostead7
sudo curl -sS https://raw.githubuserconte... | #!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
# Setting Up MongoDB
# https://github.com/zakhttp/Mongostead7
sudo curl -sS https://raw.githubusercontent.com/zakhttp/Mongostead7/master/mong... | <|file_sep|>original/scripts/after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
# Setting Up MongoDB
# https://github.com/zakhttp/Mongostead7
sudo curl -sS https://raw.githubuserconte... | b78dde0bd0a4b5bc7957b86b5df3c322224dfd54 | scripts/after.sh | scripts/after.sh | Shell |
<|file_sep|>original/visualtest/fixtures/template.html
-o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
/*CSS animations*/
... | -webkit-transform: none !important;
transform: none !important;
/*CSS animations*/
-webkit-animation: none !important;
-moz-animation: none !important;
-o-animation: none !important;
-ms-animation: none !important;
... | <|file_sep|>original/visualtest/fixtures/template.html
-o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
/*CSS animations*/
... | 692f58e03abd1ae7682ce471f00bc12961ac87a6 | visualtest/fixtures/template.html | visualtest/fixtures/template.html | HTML |
<|file_sep|>original/recipes/install_plugins.rb
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
node['vagrant']['plugins'... | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
node['vagrant']['plugins'].each do |plugin|
if plugin.respond_to?(:keys)
vagrant_plugin plugin['name'] do
user node['vagrant']['... | <|file_sep|>original/recipes/install_plugins.rb
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
node['vagrant']['plugins'... | f578a6ca8f1e8c6aa557687fdf01ce791ff33f10 | recipes/install_plugins.rb | recipes/install_plugins.rb | Ruby |
<|file_sep|>original/zsh/.zshrc.d/00_env-vars.sh
# =====================================================
# You can customize your env vars here
# =====================================================
# Custom env variables
export DKTB_VERSION="17.04.0-ce"
<|file_sep|>current/zsh/.zshrc.d/00_env-vars.sh
# ==========... |
# =====================================================
# You can customize your env vars here
# =====================================================
# Custom env variables
export DKTB_VERSION="17.05.0-ce" | <|file_sep|>original/zsh/.zshrc.d/00_env-vars.sh
# =====================================================
# You can customize your env vars here
# =====================================================
# Custom env variables
export DKTB_VERSION="17.04.0-ce"
<|file_sep|>current/zsh/.zshrc.d/00_env-vars.sh
# ==========... | 814be2b74853facfced64fd0b35d14cbe10d4078 | zsh/.zshrc.d/00_env-vars.sh | zsh/.zshrc.d/00_env-vars.sh | Shell |
<|file_sep|>original/apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java
<|file_sep|>current/apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java
<|file_sep|>updated/apm-sniffer/apm-agent-core/src/test/java/org/skywalking... | package org.skywalking.apm.agent.core.context;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
/**
* @author wusheng
*/
public class LeafSpanTestCase {
@Test
public void testLeaf() {
LeafSpan span = new LeafSpan(0, "serviceA", System.currentTimeMillis());
span.push();
... | <|file_sep|>original/apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java
<|file_sep|>current/apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java
<|file_sep|>updated/apm-sniffer/apm-agent-core/src/test/java/org/skywalking... | ee0a569eacb822dcab2507279dae18349ffa24ee | apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java | apm-sniffer/apm-agent-core/src/test/java/org/skywalking/apm/agent/core/context/LeafSpanTestCase.java | Java |
<|file_sep|>original/.travis.yml
language: ruby
before_install: gem install bundler
bundler_args: --without yard guard metrics benchmarks
script: "bundle exec rake spec"
rvm:
- ree
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- ruby-head
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx-18mode
- rbx-19mode
noti... | script: "bundle exec rake spec"
rvm:
- ree
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- ruby-head
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx-18mode
- rbx-19mode
matrix:
allow_failures:
- rvm: ruby-head
notifications:
irc: "irc.freenode.org#datamapper"
email:
- dan.kubb@gmail.com
- mbj... | <|file_sep|>original/.travis.yml
language: ruby
before_install: gem install bundler
bundler_args: --without yard guard metrics benchmarks
script: "bundle exec rake spec"
rvm:
- ree
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- ruby-head
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx-18mode
- rbx-19mode
noti... | 5970e2a23ab46814d5047e95e11677a43e1d6cd2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>spec/motion/encodable_spec.rb.diff
original:
describe 'NSCoderプロトコル準拠' do
updated:
describe 'NSCoder protocol' do
<|file_sep|>spec/motion/encodable_spec.rb.diff
original:
it '必要なメソッドを実装している' do
updated:
it 'should responds to required methods' do
<|file_sep|>original/spec/motion/encodable_spec.r... | title: 'bar',
}
end
describe 'NSCoder protocol' do
before do
@entry = Entry.new(@params)
end
it 'should responds to required methods' do
@entry.respond_to?(:'initWithCoder:').should == true
@entry.respond_to?(:'encodeWithCoder:').should == true
end
it 'should be ... | <|file_sep|>spec/motion/encodable_spec.rb.diff
original:
describe 'NSCoderプロトコル準拠' do
updated:
describe 'NSCoder protocol' do
<|file_sep|>spec/motion/encodable_spec.rb.diff
original:
it '必要なメソッドを実装している' do
updated:
it 'should responds to required methods' do
<|file_sep|>original/spec/motion/encodable_spec.r... | 8933dc70604d042521753413a3fbfedda5e767bc | spec/motion/encodable_spec.rb | spec/motion/encodable_spec.rb | Ruby |
<|file_sep|>original/ManifoldTests/EitherTests.swift
// Copyright © 2015 Rob Rix. All rights reserved.
final class EitherTests: XCTestCase {
func testModuleTypechecks() {
module.typecheck().forEach { XCTFail($0.description) }
}
func testAutomaticallyEncodedDefinitionsAreEquivalentToHandEncodedDefinitions() {
... | // Copyright © 2015 Rob Rix. All rights reserved.
final class EitherTests: XCTestCase {
func testModuleTypechecks() {
module.typecheck().forEach { XCTFail($0.description) }
}
func testAutomaticallyEncodedDefinitionsAreEquivalentToHandEncodedDefinitions() {
let churchModule = Module<Term>.churchEither
module... | <|file_sep|>original/ManifoldTests/EitherTests.swift
// Copyright © 2015 Rob Rix. All rights reserved.
final class EitherTests: XCTestCase {
func testModuleTypechecks() {
module.typecheck().forEach { XCTFail($0.description) }
}
func testAutomaticallyEncodedDefinitionsAreEquivalentToHandEncodedDefinitions() {
... | fc2981fc85056a2861dc5a42a32a5fee64086ebb | ManifoldTests/EitherTests.swift | ManifoldTests/EitherTests.swift | Swift |
<|file_sep|>original/css/shared/scaffold.css
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
a {
text-decoration: none;
}
a:focus {
outline: none;
}
img {
vertical-align: middle;
}
button:focus {
outline: none;
<|file_sep|>current/css/shared/scaffold.css
min-height: 100vh;
flex-dire... | min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
a {
text-decoration: none;
transition: color 150ms;
}
a:focus {
outline: none;
}
img {
vertical-align: middle;
}
button:focus { | <|file_sep|>original/css/shared/scaffold.css
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1;
}
a {
text-decoration: none;
}
a:focus {
outline: none;
}
img {
vertical-align: middle;
}
button:focus {
outline: none;
<|file_sep|>current/css/shared/scaffold.css
min-height: 100vh;
flex-dire... | 1f7fd0e0f159370cfcba72042700d4268c1e4ef6 | css/shared/scaffold.css | css/shared/scaffold.css | CSS |
<|file_sep|>manual/fastx-trimmer.html.diff
original:
<h2>Trim reads</h2>
updated:
<h2>Trim reads with FastX</h2>
<|file_sep|>manual/fastx-trimmer.html.diff
original:
<p>Given a FASTQ file, this tool trims reads as specified by the user.</p>
updated:
<p>This tool trims a number of bases from either end of the read as sp... |
<ul>
<li>First base to keep (1-100) [1]</li>
<li>Last base to keep (1-300) [75]</li>
</ul>
<h3>Details</h3>
<p>You can use this tool for trimming reads to a given length or removing a given number of bases from the beginning of the reads. If quality control tools have indicated that only some reads have low quality ... | <|file_sep|>manual/fastx-trimmer.html.diff
original:
<h2>Trim reads</h2>
updated:
<h2>Trim reads with FastX</h2>
<|file_sep|>manual/fastx-trimmer.html.diff
original:
<p>Given a FASTQ file, this tool trims reads as specified by the user.</p>
updated:
<p>This tool trims a number of bases from either end of the read as sp... | ecf6d16c770e40bbd9fcdb9a32c5c05a90dd876a | manual/fastx-trimmer.html | manual/fastx-trimmer.html | HTML |
<|file_sep|>original/simple_xlsx_reader.gemspec
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'simple_xlsx_reader/version'
Gem::Specification.new do |gem|
gem.name = "simple_xlsx_reader"
gem.version = SimpleXlsxRe... | # -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'simple_xlsx_reader/version'
Gem::Specification.new do |gem|
gem.name = "simple_xlsx_reader"
gem.version = SimpleXlsxReader::VERSION
gem.authors = ["Woody Pete... | <|file_sep|>original/simple_xlsx_reader.gemspec
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'simple_xlsx_reader/version'
Gem::Specification.new do |gem|
gem.name = "simple_xlsx_reader"
gem.version = SimpleXlsxRe... | 49bbe0e9dd501a1c801d799abd6ce3820f27aeb0 | simple_xlsx_reader.gemspec | simple_xlsx_reader.gemspec | Ruby |
<|file_sep|>17-createWallOfWoolWithRandomColour.rb.diff
original:
updated:
# create a function to create a random block of wool
def getWoolBlockWithRandomColour()
#Generate a random number within the allowed range of colours (0 to 15 inclusive)
randomNumber = rand(16)
puts("random number to be used = #{ran... |
# define the position of the bottom left block of the wall
blockXposn = playerPosition.x + 6
firstColumnX = blockXposn
blockYposn = playerPosition.y + 1
blockZposn = playerPosition.z + 6
# Create a wall using nested for loops
for row in 0...6
# increase the height of th current row to be built
blockYp... | <|file_sep|>17-createWallOfWoolWithRandomColour.rb.diff
original:
updated:
# create a function to create a random block of wool
def getWoolBlockWithRandomColour()
#Generate a random number within the allowed range of colours (0 to 15 inclusive)
randomNumber = rand(16)
puts("random number to be used = #{ran... | 14fc4787be591d9fee4b11f5c71aae7a18946b18 | 17-createWallOfWoolWithRandomColour.rb | 17-createWallOfWoolWithRandomColour.rb | Ruby |
<|file_sep|>original/README.md
# eos-theme
Gtk, window, and icon themes for eos-shell
To build/install from this repo:
```
sudo apt-get install gnome-common librsvg2-dev libgtk-3-dev libgtk2.0-dev
cd ~/checkout/eos-theme
./autogen.sh --datadir=/usr/share --sysconfdir=/etc
make
sudo make install
```
Or, if running eos... | # eos-theme
Gtk, window, and icon themes for eos-shell
To build/install from this repo:
```
sudo apt-get install gnome-common librsvg2-dev libgtk-3-dev libgtk2.0-dev
cd ~/checkout/eos-theme
./autogen.sh --prefix=/usr --sysconfdir=/etc
make
sudo make install
```
Or, if running eos-shell via JHBuild:
```
jhbuild shell
... | <|file_sep|>original/README.md
# eos-theme
Gtk, window, and icon themes for eos-shell
To build/install from this repo:
```
sudo apt-get install gnome-common librsvg2-dev libgtk-3-dev libgtk2.0-dev
cd ~/checkout/eos-theme
./autogen.sh --datadir=/usr/share --sysconfdir=/etc
make
sudo make install
```
Or, if running eos... | 05e8497fd14684a7449f2b7229e0febdb1973741 | README.md | README.md | Markdown |
<|file_sep|>index.js.diff
original:
var formattedResults, mergedTrees, results;
updated:
var mergedTrees;
<|file_sep|>original/index.js
included: function(app) {
if (!app.isTestingSassLintAddon) {
this._super.included(app);
}
this.app = app;
this.sassLintOptions = app.options.sassLint |... | included: function(app) {
if (!app.isTestingSassLintAddon) {
this._super.included(app);
}
this.app = app;
this.sassLintOptions = app.options.sassLint || {};
},
lintTree: function(type, tree) {
var mergedTrees;
if (type === 'app') {
mergedTrees = mergeTrees([this.app.trees.st... | <|file_sep|>index.js.diff
original:
var formattedResults, mergedTrees, results;
updated:
var mergedTrees;
<|file_sep|>original/index.js
included: function(app) {
if (!app.isTestingSassLintAddon) {
this._super.included(app);
}
this.app = app;
this.sassLintOptions = app.options.sassLint |... | 8d8433abf7215ec042253e1c5cd87d2f82bb4545 | index.js | index.js | JavaScript |
<|file_sep|>original/requirements-tests.txt
-r requirements.txt
-e .
ipdb==0.10.1
pytest==3.0.3
pytest-sugar==0.7.1
<|file_sep|>current/requirements-tests.txt
-r requirements.txt
-e .
ipdb==0.10.1
pytest==3.0.3
pytest-sugar==0.7.1
<|file_sep|>updated/requirements-tests.txt | -r requirements.txt
-e .
ipdb==0.10.1
pytest==3.5.1
pytest-sugar==0.7.1 | <|file_sep|>original/requirements-tests.txt
-r requirements.txt
-e .
ipdb==0.10.1
pytest==3.0.3
pytest-sugar==0.7.1
<|file_sep|>current/requirements-tests.txt
-r requirements.txt
-e .
ipdb==0.10.1
pytest==3.0.3
pytest-sugar==0.7.1
<|file_sep|>updated/requirements-tests.txt
-r requirements.txt
-e .
ipdb==0.10.1
pytes... | e1af32f0cb6073c9019ff5cfb1201ab3ba5f2a7e | requirements-tests.txt | requirements-tests.txt | Text |
<|file_sep|>original/lib/assets/junit.xml.erb
<?xml version="1.0" encoding="UTF-8"?>
<% number_of_tests = 0 %>
<% number_of_failures = 0 %>
<% @results.each { |a| number_of_tests += a[:number_of_tests] } %>
<% @results.each { |a| number_of_failures += a[:number_of_failures] } %>
<testsuites tests="<%= number_of_tests ... | <?xml version="1.0" encoding="UTF-8"?>
<% number_of_tests = 0 %>
<% number_of_failures = 0 %>
<% @results.each { |a| number_of_tests += a[:number_of_tests] } %>
<% @results.each { |a| number_of_failures += a[:number_of_failures] } %>
<testsuites tests="<%= number_of_tests %>" failures="<%= number_of_failures %>">
<%... | <|file_sep|>original/lib/assets/junit.xml.erb
<?xml version="1.0" encoding="UTF-8"?>
<% number_of_tests = 0 %>
<% number_of_failures = 0 %>
<% @results.each { |a| number_of_tests += a[:number_of_tests] } %>
<% @results.each { |a| number_of_failures += a[:number_of_failures] } %>
<testsuites tests="<%= number_of_tests ... | 875ddfd0ee404f2229a58120dd350c1d3b87507b | lib/assets/junit.xml.erb | lib/assets/junit.xml.erb | HTML+ERB |
<|file_sep|>original/helpers.rb
module PapertrailSilverlineWebhook
module Helpers
def faraday(options = {})
@faraday ||= begin
options[:timeout] ||= 6
Faraday.new(options) do |b|
b.request :url_encoded
b.request :json
b.adapter :net_http
end
end
... | module PapertrailSilverlineWebhook
module Helpers
def faraday(options = {})
@faraday ||= begin
options[:timeout] ||= 6
# Make SSL work on heroku
if File.exists?('/usr/lib/ssl/certs/ca-certificates.crt')
options[:ssl] ||= {}
options[:ssl][:ca_path] = '/usr/lib/ssl... | <|file_sep|>original/helpers.rb
module PapertrailSilverlineWebhook
module Helpers
def faraday(options = {})
@faraday ||= begin
options[:timeout] ||= 6
Faraday.new(options) do |b|
b.request :url_encoded
b.request :json
b.adapter :net_http
end
end
... | 197b211adeefd52ed069f98c492d464416306405 | helpers.rb | helpers.rb | Ruby |
<|file_sep|>original/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py
<|file_sep|>current/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py
<|file_sep|>updated/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-14 17:40
from django.db import migrations
from django.db.models import OuterRef, Subquery
def forwards_func(apps, schema_editor):
"""Migrate ``Project.documentation_type`` to ``Version.documentation_type``."""
Version = apps.get_model('builds',... | <|file_sep|>original/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py
<|file_sep|>current/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py
<|file_sep|>updated/readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py
# -*- coding: utf-8 -*-... | 964895852bb9acbe866c1a7bc7ba98b972100fa8 | readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py | readthedocs/builds/migrations/0014_migrate-doctype-from-project-to-version.py | Python |
<|file_sep|>original/requirements.txt
dj-config-url==0.1.1
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.6
django-crispy-forms==1.6.1
django-registration-redux==1.8
-e git://github.com/dubirajara/django-tagulous#egg=django_tagulous
djangorestframework==3.7.1
gunicorn==19.7.1
psycopg2==2.7.3.1
python-decouple==3.... | dj-config-url==0.1.1
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.6
django-crispy-forms==1.7.0
django-registration-redux==1.8
-e git://github.com/dubirajara/django-tagulous#egg=django_tagulous
djangorestframework==3.7.1
gunicorn==19.7.1
psycopg2==2.7.3.1
python-decouple==3.1
social-auth-app-django==1.2.0 | <|file_sep|>original/requirements.txt
dj-config-url==0.1.1
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.6
django-crispy-forms==1.6.1
django-registration-redux==1.8
-e git://github.com/dubirajara/django-tagulous#egg=django_tagulous
djangorestframework==3.7.1
gunicorn==19.7.1
psycopg2==2.7.3.1
python-decouple==3.... | dffb666bb3fc40b60b0217301be0be8380f9545b | requirements.txt | requirements.txt | Text |
<|file_sep|>.travis.yml.diff
original:
updated:
- "0.10"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.12"
- "4.0"
- "4.1"
- "4.2"
install:
- npm install
script:
- npm test
notifications:
email: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
... | language: node_js
node_js:
- "0.10"
- "0.12"
- "4.0"
- "4.1"
- "4.2"
- "5.0"
install:
- npm install
script:
- npm test
notifications:
email: false | <|file_sep|>.travis.yml.diff
original:
updated:
- "0.10"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.12"
- "4.0"
- "4.1"
- "4.2"
install:
- npm install
script:
- npm test
notifications:
email: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
... | bf9a93ebe45149ca96138556968fc5fc5dd84cdb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/composer.json
"license": "MIT",
"type": "library",
"keywords": ["hack", "hhvm", "scan", "ClassScanner", "autoload"],
"authors": [
{
"name": "Isaac Leinweber",
"email": "brotchen@gmail.com"
}
],
"require": {},
"require-dev": {
... | "name": "kilahm/hack-class-scanner",
"license": "MIT",
"type": "library",
"keywords": ["hack", "hhvm", "scan", "ClassScanner", "autoload"],
"authors": [
{
"name": "Isaac Leinweber",
"email": "brotchen@gmail.com"
}
],
"require": {},
"require-dev": {... | <|file_sep|>original/composer.json
"license": "MIT",
"type": "library",
"keywords": ["hack", "hhvm", "scan", "ClassScanner", "autoload"],
"authors": [
{
"name": "Isaac Leinweber",
"email": "brotchen@gmail.com"
}
],
"require": {},
"require-dev": {
... | eefac9e8986fe1fbdbccbf95eaa1476fd0024a50 | composer.json | composer.json | JSON |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- 0.4
- 0.6
- 0.8
- 0.10
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- 0.4
- 0.6
- 0.8
- 0.10
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "0.6"
- "0.8"
- "0.10"
- "0.11"
| <|file_sep|>original/.travis.yml
language: node_js
node_js:
- 0.4
- 0.6
- 0.8
- 0.10
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- 0.4
- 0.6
- 0.8
- 0.10
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "0.6"
- "0.8"
- "0.10"
- "0.11"
| 2962ff366fae27b44f6f388bac7faab927cf8e6d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/bluepotion.gemspec
spec.authors = ["InfiniteRed", "ClearSight Studio"]
spec.email = ["hello@infinitered.com", "hello@clearsightstudio.com"]
spec.description = %q{BluePotion - Just like RedPotion, but for Android}
spec.summary = %q{BluePotion - Just like RedPotion, but ... | spec.authors = ["InfiniteRed", "ClearSight Studio"]
spec.email = ["hello@infinitered.com", "hello@clearsightstudio.com"]
spec.description = %q{BluePotion - Just like RedPotion, but for Android}
spec.summary = %q{BluePotion - Just like RedPotion, but for Android. The best combination of Rub... | <|file_sep|>original/bluepotion.gemspec
spec.authors = ["InfiniteRed", "ClearSight Studio"]
spec.email = ["hello@infinitered.com", "hello@clearsightstudio.com"]
spec.description = %q{BluePotion - Just like RedPotion, but for Android}
spec.summary = %q{BluePotion - Just like RedPotion, but ... | 1a38adb8dbe10948b4594a1154ffa8832201bfcb | bluepotion.gemspec | bluepotion.gemspec | Ruby |
<|file_sep|>original/README.md
## Documentation
http://redirect.sonarsource.com/doc/msbuild-sq-runner.html
## Issue Tracker
https://jira.sonarsource.com/browse/SONARMSBRU
## Building
Requirements:
- Visual Studio 2015
- [Team Foundation Server 2013 Update 4 Object Model Installer](https://visualstudiogallery.msd... |
http://redirect.sonarsource.com/doc/msbuild-sq-runner.html
## Issue Tracker
https://jira.sonarsource.com/browse/SONARMSBRU
## Building
Requirements:
- Visual Studio 2015
- [Team Foundation Server 2013 Update 4 Object Model Installer](https://visualstudiogallery.msdn.microsoft.com/19311823-5262-4e63-a586-2283384ae... | <|file_sep|>original/README.md
## Documentation
http://redirect.sonarsource.com/doc/msbuild-sq-runner.html
## Issue Tracker
https://jira.sonarsource.com/browse/SONARMSBRU
## Building
Requirements:
- Visual Studio 2015
- [Team Foundation Server 2013 Update 4 Object Model Installer](https://visualstudiogallery.msd... | b85e9f91af544216b4c3e694d0f30a24a0aef382 | README.md | README.md | Markdown |
<|file_sep|>original/osu.Game.Modes.Osu/Scoring/OsuScoreProcessor.cs
protected override void OnNewJudgement(OsuJudgement judgement)
{
if (judgement != null)
{
switch (judgement.Result)
{
case HitResult.Hit:
... |
Health.Value = 1;
Accuracy.Value = 1;
}
protected override void OnNewJudgement(OsuJudgement judgement)
{
int score = 0;
int maxScore = 0;
foreach (var j in Judgements)
{
score += j.ScoreValue;
... | <|file_sep|>original/osu.Game.Modes.Osu/Scoring/OsuScoreProcessor.cs
protected override void OnNewJudgement(OsuJudgement judgement)
{
if (judgement != null)
{
switch (judgement.Result)
{
case HitResult.Hit:
... | 3aefd502394a1c30ff301562795abb64ddb453a3 | osu.Game.Modes.Osu/Scoring/OsuScoreProcessor.cs | osu.Game.Modes.Osu/Scoring/OsuScoreProcessor.cs | C# |
<|file_sep|>original/_posts/2022-03-06-LeetCode-Search-Insert-Position.md
<|file_sep|>current/_posts/2022-03-06-LeetCode-Search-Insert-Position.md
<|file_sep|>updated/_posts/2022-03-06-LeetCode-Search-Insert-Position.md | ---
layout: post
title: " LeetCode : 35. Search Insert Position "
categories: LeetCode
author: goodGid
use_math: true
---
* content
{:toc}
## [35. Search Insert Position](https://leetcode.com/problems/search-insert-position/)
### Problem
```
Given a sorted array of distinct integers and a target value, return the i... | <|file_sep|>original/_posts/2022-03-06-LeetCode-Search-Insert-Position.md
<|file_sep|>current/_posts/2022-03-06-LeetCode-Search-Insert-Position.md
<|file_sep|>updated/_posts/2022-03-06-LeetCode-Search-Insert-Position.md
---
layout: post
title: " LeetCode : 35. Search Insert Position "
categories: LeetCode
author: go... | 81d4960bb78fcbcc21398a78639bc9e2676977ba | _posts/2022-03-06-LeetCode-Search-Insert-Position.md | _posts/2022-03-06-LeetCode-Search-Insert-Position.md | Markdown |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- ruby-head
- jruby-19mode
- ree
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- ruby-head
- jruby-19mode
- ree
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- ruby-head | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- ruby-head
- jruby-19mode
- ree
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- ruby-head
- jruby-19mode
- ree
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2... | bdd0d11d04e033218fa6ee0cdd7997d788053923 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
## Usage
Set your DBC_API environment variable to your api key, or use the gem to configure your key:
```ruby
dbc_faker = DbcFaker::Client.new YOUR_API_KEY_HERE_IF_NO_ENV_VAR_SET
```
```ruby
dbc_faker.name
=> 'J-kai Hsu'
dbc_faker.name 5
=> ["John P Quigley", "Zachary Buettner", "Jame... |
## Usage
Set your DBC_API environment variable to your api key, or use the gem to configure your key:
```ruby
dbc_faker = DbcFaker::Client.new YOUR_API_KEY_HERE_IF_NO_ENV_VAR_SET
```
```ruby
dbc_faker.name
=> "J-kai Hsu"
dbc_faker.name 5
=> ["John P Quigley", "Zachary Buettner", "James Newman", "Renee Schaaf", "Dar... | <|file_sep|>original/README.md
## Usage
Set your DBC_API environment variable to your api key, or use the gem to configure your key:
```ruby
dbc_faker = DbcFaker::Client.new YOUR_API_KEY_HERE_IF_NO_ENV_VAR_SET
```
```ruby
dbc_faker.name
=> 'J-kai Hsu'
dbc_faker.name 5
=> ["John P Quigley", "Zachary Buettner", "Jame... | 866676d1986ceb0bbe6815b70ba5271a9d891374 | README.md | README.md | Markdown |
<|file_sep|>original/app/assets/stylesheets/petitions/admin/_header.scss
.admin {
#global-header {
background-color: $black;
a {
display: inline-block;
}
ul {
margin: 3px 0 0 0;
float: right;
}
li {
display: inline;
margin-left: $gutter-one-third;
a {
... | #global-header {
background-color: $black;
a {
display: inline-block;
}
ul {
margin: 3px 0 0 0;
float: right;
}
li {
display: inline;
margin-left: $gutter-one-third;
a {
@include core-19();
color: $white;
display: inline;
padd... | <|file_sep|>original/app/assets/stylesheets/petitions/admin/_header.scss
.admin {
#global-header {
background-color: $black;
a {
display: inline-block;
}
ul {
margin: 3px 0 0 0;
float: right;
}
li {
display: inline;
margin-left: $gutter-one-third;
a {
... | 21205b6cfdde9292ceb87bc85c5ea4f2acbbb3ae | app/assets/stylesheets/petitions/admin/_header.scss | app/assets/stylesheets/petitions/admin/_header.scss | SCSS |
<|file_sep|>original/bikepath/SearchItem.h
//
// SearchItem.h
// bikepath
//
// Created by Farheen Malik on 8/15/14.
// Copyright (c) 2014 Bike Path. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import <GoogleMaps/GoogleMaps.h>
@interface SearchItem : NSObject
@property NS... | // SearchItem.h
// bikepath
//
// Created by Farheen Malik on 8/15/14.
// Copyright (c) 2014 Bike Path. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import <GoogleMaps/GoogleMaps.h>
@interface SearchItem : NSObject
@property NSString *searchQuery;
@property CLLocationDegre... | <|file_sep|>original/bikepath/SearchItem.h
//
// SearchItem.h
// bikepath
//
// Created by Farheen Malik on 8/15/14.
// Copyright (c) 2014 Bike Path. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import <GoogleMaps/GoogleMaps.h>
@interface SearchItem : NSObject
@property NS... | 982dacf245ebe0aa75d19fe27c2ec74e35f180cb | bikepath/SearchItem.h | bikepath/SearchItem.h | C |
<|file_sep|>original/locales/kab/addon.properties
tooltip_play= Urar
tooltip_pause= Ṛǧu
tooltip_mute= Ṣusem
tooltip_unmute= Mmeslay
tooltip_send_to_tab= Azen ar yiccer
tooltip_minimize= Semẓi
tooltip_maximize= Semɣeṛ
tooltip_close= Mdel
tooltip_switch_visual= Sit akken ad tesnifled taskant
media_type_audio= Imesli
medi... | tooltip_mute= Ṣusem
tooltip_unmute= Mmeslay
tooltip_send_to_tab= Azen ar yiccer
tooltip_minimize= Semẓi
tooltip_maximize= Semɣeṛ
tooltip_close= Mdel
tooltip_switch_visual= Sit akken ad tesnifled taskant
media_type_audio= Imesli
media_type_video= Tividyutin
error_msg= Yella wayen ur yeddan ara akken iwata ɣef tvidyut ag... | <|file_sep|>original/locales/kab/addon.properties
tooltip_play= Urar
tooltip_pause= Ṛǧu
tooltip_mute= Ṣusem
tooltip_unmute= Mmeslay
tooltip_send_to_tab= Azen ar yiccer
tooltip_minimize= Semẓi
tooltip_maximize= Semɣeṛ
tooltip_close= Mdel
tooltip_switch_visual= Sit akken ad tesnifled taskant
media_type_audio= Imesli
medi... | 38cd778812afa0394b1cd58c9bcb02aa93db3a86 | locales/kab/addon.properties | locales/kab/addon.properties | INI |
<|file_sep|>original/requirements.txt
python-telegram-bot==6.1.0
boltons==17.1.0
plumbum==1.6.3
#transliterate==1.9
scdl==1.6.4
bandcamp-downloader==0.0.8.post6
youtube-dl==2017.7.2
pydub==0.19.0
mutagen==1.38
patool==1.12
pyshorteners==0.6.1
Celery==4.0.2
<|file_sep|>current/requirements.txt
python-telegram-bot==6.1.0... | python-telegram-bot==6.1.0
boltons==17.1.0
plumbum==1.6.3
#transliterate==1.9
scdl==1.6.4
bandcamp-downloader==0.0.8.post6
youtube-dl==2017.7.15
pydub==0.19.0
mutagen==1.38
patool==1.12
pyshorteners==0.6.1
Celery==4.0.2 | <|file_sep|>original/requirements.txt
python-telegram-bot==6.1.0
boltons==17.1.0
plumbum==1.6.3
#transliterate==1.9
scdl==1.6.4
bandcamp-downloader==0.0.8.post6
youtube-dl==2017.7.2
pydub==0.19.0
mutagen==1.38
patool==1.12
pyshorteners==0.6.1
Celery==4.0.2
<|file_sep|>current/requirements.txt
python-telegram-bot==6.1.0... | 3cd22fd58b8b434c969d9c49616196f98a1923e9 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/ykman/scanmap/__init__.py
from enum import Enum
from . import us
class KEYBOARD_LAYOUT(Enum):
US = 'US Keyboard Layout'
def get_scan_codes(data, keyboard_layout=KEYBOARD_LAYOUT.US):
if keyboard_layout == KEYBOARD_LAYOUT.US:
scancodes = us.scancodes
else:
raise ValueE... | from enum import Enum
from . import us
class KEYBOARD_LAYOUT(Enum):
US = 'US Keyboard Layout'
def get_scan_codes(data, keyboard_layout=KEYBOARD_LAYOUT.US):
if keyboard_layout == KEYBOARD_LAYOUT.US:
scancodes = us.scancodes
else:
raise ValueError('Keyboard layout not supported!')
try:... | <|file_sep|>original/ykman/scanmap/__init__.py
from enum import Enum
from . import us
class KEYBOARD_LAYOUT(Enum):
US = 'US Keyboard Layout'
def get_scan_codes(data, keyboard_layout=KEYBOARD_LAYOUT.US):
if keyboard_layout == KEYBOARD_LAYOUT.US:
scancodes = us.scancodes
else:
raise ValueE... | 15808c86b273363c9f6466107d0cbc14030a97fa | ykman/scanmap/__init__.py | ykman/scanmap/__init__.py | Python |
<|file_sep|>src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.java.diff
original:
updated:
import dyvil.collection.iterator.ArrayIterator;
import dyvil.collection.iterator.SingletonIterator;
import dyvil.source.position.SourcePosition;
<|file_sep|>original/src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.... | catch (NumberFormatException ex)
{
return 0;
}
}
String evaluateString(Scope scope);
default Iterable<Expression> evaluateIterable(Scope scope)
{
final SourcePosition position = this.getPosition();
final String string = this.evaluateString(scope);
if (string.indexOf(',') < 0)
{
final StringVa... | <|file_sep|>src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.java.diff
original:
updated:
import dyvil.collection.iterator.ArrayIterator;
import dyvil.collection.iterator.SingletonIterator;
import dyvil.source.position.SourcePosition;
<|file_sep|>original/src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.... | c794c59a94ce723f66c74f2413c9543a4cf2bb5d | src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.java | src/gensrc/dyvil/tools/gensrc/ast/expression/Expression.java | Java |
<|file_sep|>original/busytown/androidx-native-mac.sh
#!/bin/bash
set -e
cd "$(dirname $0)"
export ANDROIDX_PROJECTS=KMP
# disable GCP cache, these machines don't have credentials.
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false
impl/build.sh buildOnServer --no-configuration-cache
<|file_sep|>current/busytown/androidx-n... | #!/bin/bash
set -e
cd "$(dirname $0)"
export ANDROIDX_PROJECTS=KMP
# disable GCP cache, these machines don't have credentials.
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false
impl/build.sh buildOnServer --no-configuration-cache
# run a separate createArchive task to prepare a repository
# folder in DIST.
# This cannot... | <|file_sep|>original/busytown/androidx-native-mac.sh
#!/bin/bash
set -e
cd "$(dirname $0)"
export ANDROIDX_PROJECTS=KMP
# disable GCP cache, these machines don't have credentials.
export USE_ANDROIDX_REMOTE_BUILD_CACHE=false
impl/build.sh buildOnServer --no-configuration-cache
<|file_sep|>current/busytown/androidx-n... | 2db6a5d16c3611f63075bf382c0869eb2b0eaeeb | busytown/androidx-native-mac.sh | busytown/androidx-native-mac.sh | Shell |
<|file_sep|>original/src/xvalid.c
<|file_sep|>current/src/xvalid.c
<|file_sep|>updated/src/xvalid.c | /**
* Copyright (c) 2011 Jon Maken, All Rights Reserved
* License: 3-Clause BSD
* Revision: 07/21/2011 2:44:32 PM
*/
#include <stdio.h>
static void usage(void)
{
printf("XVal: Validate XML documents\n");
printf("Usage: xval [--dtd DTD_FILE | --xsd XSD_FILE] XML_FILE ...\n\n");
printf(" --dtd DTD_FILE validate... | <|file_sep|>original/src/xvalid.c
<|file_sep|>current/src/xvalid.c
<|file_sep|>updated/src/xvalid.c
/**
* Copyright (c) 2011 Jon Maken, All Rights Reserved
* License: 3-Clause BSD
* Revision: 07/21/2011 2:44:32 PM
*/
#include <stdio.h>
static void usage(void)
{
printf("XVal: Validate XML documents\n");
printf(... | 042453918223812fd6baaad696d65f9b1e886c9f | src/xvalid.c | src/xvalid.c | C |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
matrix:
fast_finish: true
script: npm test --coverage
after_script: codeclimate < coverage/lcov.info
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5... | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
- 'node'
matrix:
fast_finish: true
script: npm test --coverage
after_script: codeclimate < coverage/lcov.info | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5'
matrix:
fast_finish: true
script: npm test --coverage
after_script: codeclimate < coverage/lcov.info
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4'
- '5... | 2f3ed575e5c39de06563884b6f297dbc52fd1488 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/ditty/policies/application_policy.rb
end
def permitted_attributes
[]
end
def method_missing(method_name, *args, &block)
return super unless method_name.to_s.start_with? 'permitted_attributes_for_'
permitted_attributes
end
def respond_to_missing?(met... | # frozen_string_literal: true
module Ditty
class ApplicationPolicy
attr_reader :user, :record
def initialize(user, record)
@user = user
@record = record
end
class Scope
attr_reader :user, :scope
def initialize(user, scope)
@user = user
@scope = scope
e... | <|file_sep|>original/lib/ditty/policies/application_policy.rb
end
def permitted_attributes
[]
end
def method_missing(method_name, *args, &block)
return super unless method_name.to_s.start_with? 'permitted_attributes_for_'
permitted_attributes
end
def respond_to_missing?(met... | ea112000f4d12023e5c7f2229600dc07428f7b5f | lib/ditty/policies/application_policy.rb | lib/ditty/policies/application_policy.rb | Ruby |
<|file_sep|>original/.travis.yml
- openjdk8
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y ant-optional
env:
global:
secure: "jhGBqc4vW+ALi5S2soFhBpfV11d6xXswwUA/s53WT2N4sNIA2vLOf55vI5cQcOnqOTe86PQpLXgbV5Eycp+cunaQJBTzEjAGJuHS/N1ThWyWo5MDchM78winTUYFBUrvjd1XhBx5JBJCLyQowl6yZa14LQ6uj4zbT... | before_install:
- sudo apt-get -qq update
- sudo apt-get install -y ant-optional
env:
global:
secure: "jhGBqc4vW+ALi5S2soFhBpfV11d6xXswwUA/s53WT2N4sNIA2vLOf55vI5cQcOnqOTe86PQpLXgbV5Eycp+cunaQJBTzEjAGJuHS/N1ThWyWo5MDchM78winTUYFBUrvjd1XhBx5JBJCLyQowl6yZa14LQ6uj4zbTcXK8VAin8w="
secure: "YZhh9Ry9SGHp9043WvZh... | <|file_sep|>original/.travis.yml
- openjdk8
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y ant-optional
env:
global:
secure: "jhGBqc4vW+ALi5S2soFhBpfV11d6xXswwUA/s53WT2N4sNIA2vLOf55vI5cQcOnqOTe86PQpLXgbV5Eycp+cunaQJBTzEjAGJuHS/N1ThWyWo5MDchM78winTUYFBUrvjd1XhBx5JBJCLyQowl6yZa14LQ6uj4zbT... | c063f0e2028ffe0eaa37f489aab3c20f2b29232e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.5"
install:
- pip install pytest coverage pytest-timeout pytest_socket
- pip install python-coveralls
- pip install --upgrade coverage
- pip install .
- cp ./tests/.pubrunner.settings.yml ./
# command to run tests
script:
- coverage --version
... | language: python
python:
- "3.5"
install:
- pip install pytest coverage pytest-timeout pytest_socket
- pip install python-coveralls
- pip install --upgrade coverage
- pip install .
- cp ./tests/.pubrunner.settings.yml ~
# command to run tests
script:
- coverage --version
- python --version
- coverage ... | <|file_sep|>original/.travis.yml
language: python
python:
- "3.5"
install:
- pip install pytest coverage pytest-timeout pytest_socket
- pip install python-coveralls
- pip install --upgrade coverage
- pip install .
- cp ./tests/.pubrunner.settings.yml ./
# command to run tests
script:
- coverage --version
... | 33f1a4ddccd9b163a2ab68784d4b12c1a4347a58 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/scripts/introspectCofactsApi.js
import path from 'path';
import fs from 'fs';
import { introspectSchema } from '@graphql-tools/wrap';
import { printSchema } from 'graphql/utilities';
import executor from '../graphql/cofactsSchemaExecutor';
const OUTPUT = path.join(__dirname, `../../data/cofact... | import path from 'path';
import fs from 'fs';
import { introspectSchema } from '@graphql-tools/wrap';
import { printSchema } from 'graphql/utilities';
import executor from '../graphql/cofactsSchemaExecutor';
const PATH_PREFIX = '../../data';
fs.mkdirSync(path.join(__dirname, PATH_PREFIX));
const OUTPUT = path.join(__d... | <|file_sep|>original/src/scripts/introspectCofactsApi.js
import path from 'path';
import fs from 'fs';
import { introspectSchema } from '@graphql-tools/wrap';
import { printSchema } from 'graphql/utilities';
import executor from '../graphql/cofactsSchemaExecutor';
const OUTPUT = path.join(__dirname, `../../data/cofact... | 04832c28db745e61e665e71cf7c8d2c58dc7d087 | src/scripts/introspectCofactsApi.js | src/scripts/introspectCofactsApi.js | JavaScript |
<|file_sep|>original/project.clj
(defproject skat "0.1.0-SNAPSHOT"
:description "Skat game engine"
:url "https://bitbucket.org/MateuszKubuszok/skat"
:license { :name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html" }
:dependencies [[org.clojure/clojure "1.6.0"]
... | (defproject skat "0.1.0-SNAPSHOT"
:description "Skat game engine"
:url "https://bitbucket.org/MateuszKubuszok/skat"
:license { :name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html" }
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.match "0.... | <|file_sep|>original/project.clj
(defproject skat "0.1.0-SNAPSHOT"
:description "Skat game engine"
:url "https://bitbucket.org/MateuszKubuszok/skat"
:license { :name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html" }
:dependencies [[org.clojure/clojure "1.6.0"]
... | 2376d8e822fac69668980f96786c17c334f19384 | project.clj | project.clj | Clojure |
<|file_sep|>original/src/Validation/ConstraintInterface.php
<|file_sep|>current/src/Validation/ConstraintInterface.php
<|file_sep|>updated/src/Validation/ConstraintInterface.php | <?php
namespace H4D\Leveret\Validation;
interface ConstraintInterface
{
/**
* @param mixed $value
*
* @return bool
*/
public function validate($value);
/**
* @return array
*/
public function getViolations();
} | <|file_sep|>original/src/Validation/ConstraintInterface.php
<|file_sep|>current/src/Validation/ConstraintInterface.php
<|file_sep|>updated/src/Validation/ConstraintInterface.php
<?php
namespace H4D\Leveret\Validation;
interface ConstraintInterface
{
/**
* @param mixed $value
*
* @return bool
... | ea6e73abde6b70b6ec5c07e19352f8ef7a5bbe85 | src/Validation/ConstraintInterface.php | src/Validation/ConstraintInterface.php | PHP |
<|file_sep|>app/javascript/retrospring/features/moderation/blockAnon.ts.diff
original:
import Rails from '@rails/ujs';
updated:
import { post } from '@rails/request.js';
<|file_sep|>app/javascript/retrospring/features/moderation/blockAnon.ts.diff
original:
event.preventDefault();
swal({
title: I18n... | question: sender.getAttribute('data-q-id'),
global: 'true'
};
post('/ajax/block_anon', {
body: data,
contentType: 'application/json'
})
.then(async response => {
const data = await response.json;
if (!data.success) return false;
showNotification(data.... | <|file_sep|>app/javascript/retrospring/features/moderation/blockAnon.ts.diff
original:
import Rails from '@rails/ujs';
updated:
import { post } from '@rails/request.js';
<|file_sep|>app/javascript/retrospring/features/moderation/blockAnon.ts.diff
original:
event.preventDefault();
swal({
title: I18n... | 389e1271d7a072442b756f62072c9e447d81dc47 | app/javascript/retrospring/features/moderation/blockAnon.ts | app/javascript/retrospring/features/moderation/blockAnon.ts | TypeScript |
<|file_sep|>.travis.yml.diff
original:
- ls $PWD
- ls $HOME
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- sudo apt-get install -qq rpm
- bash .travis/install_packagebuilder.sh
- bash .travis/install_rpmdevtools.sh
- export PATH=$PATH:$PWD/rpmdevtools-6.8/
- ls ... | language: python
python:
- "2.7"
install:
- sudo apt-get install -qq rpm
- bash .travis/install_packagebuilder.sh
- bash .travis/install_rpmdevtools.sh
- export PATH=$PATH:$PWD/rpmdevtools-6.8/
before_script:
- sudo mkdir -p /etc/rpm
- sudo cp config/macros.cmake /etc/rpm
script:
- build_rpm hydrot... | <|file_sep|>.travis.yml.diff
original:
- ls $PWD
- ls $HOME
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
install:
- sudo apt-get install -qq rpm
- bash .travis/install_packagebuilder.sh
- bash .travis/install_rpmdevtools.sh
- export PATH=$PATH:$PWD/rpmdevtools-6.8/
- ls ... | fea1f3f33fa72bc1170c0f01b23e42770ce5716f | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/XynkHelp/_layouts/title-page.html
---
layout: default
---
<header>
<h1><a name="TitlePage"></a>{{ page.title }}</h1>
<img src="{{ page.rel_root }}/book-icon.png" alt="" height="190" width="190"/>
</header>
{{ content }}
<|file_sep|>current/XynkHelp/_layouts/title-page.html
---
layout: default
-... | ---
layout: default
---
<header>
<h1><a name="title-page"></a>{{ page.title }}</h1>
<img src="{{ page.rel_root }}/book-icon.png" alt="" height="190" width="190"/>
</header>
{{ content }} | <|file_sep|>original/XynkHelp/_layouts/title-page.html
---
layout: default
---
<header>
<h1><a name="TitlePage"></a>{{ page.title }}</h1>
<img src="{{ page.rel_root }}/book-icon.png" alt="" height="190" width="190"/>
</header>
{{ content }}
<|file_sep|>current/XynkHelp/_layouts/title-page.html
---
layout: default
-... | 377641c12c5435a74b497e5f562d9e0ba178efd3 | XynkHelp/_layouts/title-page.html | XynkHelp/_layouts/title-page.html | HTML |
<|file_sep|>app/src/main/java/lib/morkim/mfw/ui/Presenter.java.diff
original:
import java.util.Observable;
import java.util.Observer;
updated:
import lib.morkim.mfw.app.AppContext;
<|file_sep|>app/src/main/java/lib/morkim/mfw/ui/Presenter.java.diff
original:
import lib.morkim.mfw.app.AppContext;
import lib.morkim.mfw.d... |
this.viewable = viewable;
this.appContext = viewable.getMorkimContext();
}
protected Controller getController() {
return viewable.getController();
}
public AppContext getAppContext() {
return appContext;
}
protected Context getContext() {
return viewable.getContext();
}
public void setAppContex... | <|file_sep|>app/src/main/java/lib/morkim/mfw/ui/Presenter.java.diff
original:
import java.util.Observable;
import java.util.Observer;
updated:
import lib.morkim.mfw.app.AppContext;
<|file_sep|>app/src/main/java/lib/morkim/mfw/ui/Presenter.java.diff
original:
import lib.morkim.mfw.app.AppContext;
import lib.morkim.mfw.d... | 418eee3ed7e58ec8761db8de632096e14f8f8b23 | app/src/main/java/lib/morkim/mfw/ui/Presenter.java | app/src/main/java/lib/morkim/mfw/ui/Presenter.java | Java |
<|file_sep|>original/README.md
The following options must be passed when configuring an instance of the notifier:
* API_ENDPOINT
* API_TOKEN
* GEOFENCE
Example:
````python
processor = Seattle911IncidentProcessor('http://dataview.restricted.wl-net.net:8000/api/1/', '<API_KEY>', [[], [], [], []])
incidents = processor... | Dataview Seattle 911 Notifier
============================
This script informs dataview of 911 activity in the Seattle area.
Usage
----
The following options must be passed when configuring an instance of the notifier:
* API_ENDPOINT
* API_TOKEN
* GEOFENCE
Example:
````python
processor = Seattle911IncidentProcess... | <|file_sep|>original/README.md
The following options must be passed when configuring an instance of the notifier:
* API_ENDPOINT
* API_TOKEN
* GEOFENCE
Example:
````python
processor = Seattle911IncidentProcessor('http://dataview.restricted.wl-net.net:8000/api/1/', '<API_KEY>', [[], [], [], []])
incidents = processor... | ffaa918271c727b1ccc572306b872199f9e88888 | README.md | README.md | Markdown |
<|file_sep|>original/towel/api/decorators.py
<|file_sep|>current/towel/api/decorators.py
<|file_sep|>updated/towel/api/decorators.py | from functools import wraps
import httplib
from django.contrib.auth import authenticate
from django.utils.cache import patch_vary_headers
def http_basic_auth(func):
@wraps(func)
@vary_on_headers('Authorization')
def _decorator(request, *args, **kwargs):
if 'HTTP_AUTHORIZATION' in request.META:
... | <|file_sep|>original/towel/api/decorators.py
<|file_sep|>current/towel/api/decorators.py
<|file_sep|>updated/towel/api/decorators.py
from functools import wraps
import httplib
from django.contrib.auth import authenticate
from django.utils.cache import patch_vary_headers
def http_basic_auth(func):
@wraps(func)
... | 457ba730a6541ab27ce8cbe06cbb6bfe246bba74 | towel/api/decorators.py | towel/api/decorators.py | Python |
<|file_sep|>spec/codeclimate_ci/compare_gpa_spec.rb.diff
original:
allow_any_instance_of(GetGpa).to receive(:gpa).and_return(1)
updated:
allow_any_instance_of(ApiRequester).to receive(:branch_info)
.and_return(
'last_snapshot' => { 'gpa' => 3 }
)
<|file_sep|>original/spec/codeclima... | describe CompareGpa do
let(:codeclimate_ci) { CodeclimateCi::CompareGpa.new('repo11', 'token1') }
before do
allow_any_instance_of(ApiRequester).to receive(:branch_info)
.and_return(
'last_snapshot' => { 'gpa' => 3 }
)
end
context 'when branch is analyzed' do
bef... | <|file_sep|>spec/codeclimate_ci/compare_gpa_spec.rb.diff
original:
allow_any_instance_of(GetGpa).to receive(:gpa).and_return(1)
updated:
allow_any_instance_of(ApiRequester).to receive(:branch_info)
.and_return(
'last_snapshot' => { 'gpa' => 3 }
)
<|file_sep|>original/spec/codeclima... | ff7ce8a72f5ff676905117ed46ad639f0faca6fa | spec/codeclimate_ci/compare_gpa_spec.rb | spec/codeclimate_ci/compare_gpa_spec.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.