prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/source/rails-girls/index.haml
---
title: Brug - Rails Girls Brussels - Ruby Belgium
---
%header.header
.layer
.container.text-center
%h1.animated.fadeInUp Rails Girls Brussels
%h3.header__subtitle
%p Get excited and make things!
= partial :overview
= partial :images
... | ---
title: Rails Girls Brussels - Ruby Belgium
---
%header.header
.layer
.container.text-center
%h1.animated.fadeInUp Rails Girls Brussels
%h3.header__subtitle
%p Get excited and make things!
= partial :overview
= partial :images
= partial :coaches | <|file_sep|>original/source/rails-girls/index.haml
---
title: Brug - Rails Girls Brussels - Ruby Belgium
---
%header.header
.layer
.container.text-center
%h1.animated.fadeInUp Rails Girls Brussels
%h3.header__subtitle
%p Get excited and make things!
= partial :overview
= partial :images
... | b3f4014c4b61fbf49e50dd6a22b5e4b5822077d8 | source/rails-girls/index.haml | source/rails-girls/index.haml | Haml |
<|file_sep|>semian.gemspec.diff
original:
s.metadata['allowed_push_host'] = 'https://rubygems.org'
updated:
<|file_sep|>semian.gemspec.diff
original:
updated:
'allowed_push_host' => 'https://rubygems.org',
'bug_tracker_uri' => 'https://github.com/Shopify/semian/issues',
<|file_sep|>original/semian.gemspec
... | s.version = Semian::VERSION
s.summary = 'Bulkheading for Ruby with SysV semaphores'
s.description = <<-DOC
A Ruby C extention that is used to control access to shared resources
across process boundaries with SysV semaphores.
DOC
s.homepage = 'https://github.com/shopify/semian'
s.authors = ['Scott Fr... | <|file_sep|>semian.gemspec.diff
original:
s.metadata['allowed_push_host'] = 'https://rubygems.org'
updated:
<|file_sep|>semian.gemspec.diff
original:
updated:
'allowed_push_host' => 'https://rubygems.org',
'bug_tracker_uri' => 'https://github.com/Shopify/semian/issues',
<|file_sep|>original/semian.gemspec
... | 551ca26f623d6deaadde0541f0f51dcf43c440b6 | semian.gemspec | semian.gemspec | Ruby |
<|file_sep|>original/docs/reporting-security-issues.md
If you believe you have discovered a vulnerability or have a security incident to report, please follow the steps below. This applies to Kubernetes releases v1.0 or later.
To watch for security and major API announcements, please join our [kubernetes-announce](ht... | This document has moved to https://kubernetes.io/security/ | <|file_sep|>original/docs/reporting-security-issues.md
If you believe you have discovered a vulnerability or have a security incident to report, please follow the steps below. This applies to Kubernetes releases v1.0 or later.
To watch for security and major API announcements, please join our [kubernetes-announce](ht... | fc1c3f0f81a2ebe33d55dd88b48db6d1bafea967 | docs/reporting-security-issues.md | docs/reporting-security-issues.md | Markdown |
<|file_sep|>original/config/maintainers.json
{
"docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md",
"maintainers": [
{
"github_username": "SaschaMann",
"alumnus": false,
"show_on_website": true,
"name": "Sascha",
"link_text": "... | {
"docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md",
"maintainers": [
{
"github_username": "SaschaMann",
"alumnus": false,
"show_on_website": true,
"name": "Sascha",
"link_text": "My website",
"link_url": "https://sasch... | <|file_sep|>original/config/maintainers.json
{
"docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md",
"maintainers": [
{
"github_username": "SaschaMann",
"alumnus": false,
"show_on_website": true,
"name": "Sascha",
"link_text": "... | 2bcd34b9b9ad4da86c4e592e41cdf031c836efc2 | config/maintainers.json | config/maintainers.json | JSON |
<|file_sep|>original/sources/us-tx-dona_ana.json
{
"coverage": {
"country": "us",
"state": "tx",
"county": "Doña Ana"
},
"data": "http://www.pdnmapa.org/HTML/dacshps/DAC_Address.zip",
"license": "",
"year": "",
"type": "http",
"compression": "zip",
"fingerprint": ... | "country": "us",
"state": "tx",
"county": "Doña Ana"
},
"data": "http://www.pdnmapa.org/HTML/dacshps/DAC_Address.zip",
"license": "",
"year": "",
"type": "http",
"compression": "zip",
"fingerprint": "8e4e90c3f14ee9924ac96a61d8345c51",
"version": "20140320",
"c... | <|file_sep|>original/sources/us-tx-dona_ana.json
{
"coverage": {
"country": "us",
"state": "tx",
"county": "Doña Ana"
},
"data": "http://www.pdnmapa.org/HTML/dacshps/DAC_Address.zip",
"license": "",
"year": "",
"type": "http",
"compression": "zip",
"fingerprint": ... | 1aadbf98296c1d749cd5f3c586c845aa40370080 | sources/us-tx-dona_ana.json | sources/us-tx-dona_ana.json | JSON |
<|file_sep|>uppercase.py.diff
original:
from twisted.internet import protocol, reactor
updated:
from twisted.internet import endpoints, protocol, reactor
class UpperProtocol(protocol.Protocol):
pass
<|file_sep|>uppercase.py.diff
original:
factory.protocol = protocol.Protocol
updated:
factory.protocol = UpperProtoc... | from twisted.internet import endpoints, protocol, reactor
class UpperProtocol(protocol.Protocol):
pass
factory = protocol.ServerFactory()
factory.protocol = UpperProtocol
endpoints.serverFromString(reactor, 'tcp:8000').listen(factory)
reactor.run() | <|file_sep|>uppercase.py.diff
original:
from twisted.internet import protocol, reactor
updated:
from twisted.internet import endpoints, protocol, reactor
class UpperProtocol(protocol.Protocol):
pass
<|file_sep|>uppercase.py.diff
original:
factory.protocol = protocol.Protocol
updated:
factory.protocol = UpperProtoc... | e8b1cee54f679cbd6a2d158b3c2789f3f6a3d9c0 | uppercase.py | uppercase.py | Python |
<|file_sep|>original/requirements.txt
cffi==1.11.2
cryptography==2.1.3
flask==0.12.2
flask_cors==3.0.3
flask_graphql==1.4.1
graphene==2.0.1
graphene_sqlalchemy==2.0.0
jinja2==2.10
nose2==0.7.0
pandas==0.21.0
pyodbc==4.0.21
requests==2.9.1
sqlalchemy==1.1.14
<|file_sep|>current/requirements.txt
cffi==1.11.2
cryptography... | cffi==1.11.2
cryptography==2.3.0
flask==0.12.2
flask_cors==3.0.3
flask_graphql==1.4.1
graphene==2.0.1
graphene_sqlalchemy==2.0.0
jinja2==2.10
nose2==0.7.0
pandas==0.21.0
pyodbc==4.0.21
requests==2.9.1
sqlalchemy==1.1.14 | <|file_sep|>original/requirements.txt
cffi==1.11.2
cryptography==2.1.3
flask==0.12.2
flask_cors==3.0.3
flask_graphql==1.4.1
graphene==2.0.1
graphene_sqlalchemy==2.0.0
jinja2==2.10
nose2==0.7.0
pandas==0.21.0
pyodbc==4.0.21
requests==2.9.1
sqlalchemy==1.1.14
<|file_sep|>current/requirements.txt
cffi==1.11.2
cryptography... | b8c917df499bd98297902addaaf8c5dacada0b6b | requirements.txt | requirements.txt | Text |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
- "nightly" # currently points to 3.7-dev
# command to install dependencies
install:
- pip install pipenv pathl... | - "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
- "nightly" # currently points to 3.7-dev
# command to install dependencies
install:
- pip install pipenv pathlib2
- pipenv install --dev
# command to run tests
script:
- pyte... | <|file_sep|>original/.travis.yml
language: python
python:
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
- "nightly" # currently points to 3.7-dev
# command to install dependencies
install:
- pip install pipenv pathl... | 1a6d927f1e75f67d2cb99605c33c1fbbb62c79f6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/addon/components/form-controls/ff-radio.hbs
{{#each @values as |item|}}
<div class="form-controls-ff-radio">
{{#let (compute this.idFor item) as |id|}}
<input
type="radio"
name="{{@for}}"
value="{{id}}"
id="{{@for}}-{{id}}"
...attributes
d... | {{#each @values as |item|}}
<div class="form-controls-ff-radio">
{{#let (compute this.idFor item) as |id|}}
<input
type="radio"
name="{{@for}}"
value="{{id}}"
id="{{@for}}-{{id}}"
...attributes
data-test-ff-control-radio
data-test-ff-control-radio-opti... | <|file_sep|>original/addon/components/form-controls/ff-radio.hbs
{{#each @values as |item|}}
<div class="form-controls-ff-radio">
{{#let (compute this.idFor item) as |id|}}
<input
type="radio"
name="{{@for}}"
value="{{id}}"
id="{{@for}}-{{id}}"
...attributes
d... | e75bd935b0197be728a53891b36cda4e1b1d446e | addon/components/form-controls/ff-radio.hbs | addon/components/form-controls/ff-radio.hbs | Handlebars |
<|file_sep|>original/start.d/nxt.ini
# Use this file for custom Nxt properties
# Enable debug messages
-Dnxt.debug
# Also enable exception stack traces
-Dnxt.enableStackTraces
# Disable all jetty warnings and info
-Dorg.eclipse.jetty.LEVEL=OFF
# Use tor proxy
#-DsocksProxyHost=localhost
#-DsocksProxyPort=9050
<|fil... | # Use this file for custom Nxt properties
# Enable debug messages
-Dnxt.debug
# Also enable exception stack traces
-Dnxt.enableStackTraces
# Disable all jetty warnings and info
-Dorg.eclipse.jetty.LEVEL=OFF
| <|file_sep|>original/start.d/nxt.ini
# Use this file for custom Nxt properties
# Enable debug messages
-Dnxt.debug
# Also enable exception stack traces
-Dnxt.enableStackTraces
# Disable all jetty warnings and info
-Dorg.eclipse.jetty.LEVEL=OFF
# Use tor proxy
#-DsocksProxyHost=localhost
#-DsocksProxyPort=9050
<|fil... | e6c490c4e07a55d956421faec36cc616b045ba66 | start.d/nxt.ini | start.d/nxt.ini | INI |
<|file_sep|>original/README.md
# Installation
UnrarKit has been converted to a CocoaPods project. If you're not familiar with [CocoaPods](http://cocoapods.org), you can start with their [Getting Started guide](http://guides.cocoapods.org/using/getting-started.html).
I've included a sample [`podfile`](Example/Podfile... |
# Installation
UnrarKit has been converted to a CocoaPods project. If you're not familiar with [CocoaPods](http://cocoapods.org), you can start with their [Getting Started guide](http://guides.cocoapods.org/using/getting-started.html).
I've included a sample [`podfile`](Example/Podfile) in the Example directory alon... | <|file_sep|>original/README.md
# Installation
UnrarKit has been converted to a CocoaPods project. If you're not familiar with [CocoaPods](http://cocoapods.org), you can start with their [Getting Started guide](http://guides.cocoapods.org/using/getting-started.html).
I've included a sample [`podfile`](Example/Podfile... | 259a06431fe7dec8d5c88fa43ae2504ae4d30655 | README.md | README.md | Markdown |
<|file_sep|>nucleus/base/urls.py.diff
original:
from nucleus.base import views
updated:
from django.views.generic import RedirectView
<|file_sep|>original/nucleus/base/urls.py
from django.conf.urls import url
from nucleus.base import views
urlpatterns = (
url(r'^/?$', views.home, name='base.home'),
)
<|file_sep... | from django.conf.urls import url
from django.views.generic import RedirectView
urlpatterns = (
url(r'^/?$', RedirectView.as_view(url='/rna/', permanent=True), name='base.home'),
) | <|file_sep|>nucleus/base/urls.py.diff
original:
from nucleus.base import views
updated:
from django.views.generic import RedirectView
<|file_sep|>original/nucleus/base/urls.py
from django.conf.urls import url
from nucleus.base import views
urlpatterns = (
url(r'^/?$', views.home, name='base.home'),
)
<|file_sep... | 4f3cfe6e990c932d7f86dbd0cf8ae762407278b0 | nucleus/base/urls.py | nucleus/base/urls.py | Python |
<|file_sep|>original/Android/Sample/gradle/wrapper/gradle-wrapper.properties
#Fri May 06 15:07:13 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
<... | #Fri May 06 15:07:13 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip | <|file_sep|>original/Android/Sample/gradle/wrapper/gradle-wrapper.properties
#Fri May 06 15:07:13 CST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
<... | 433b276c20a59ceb4160f60e28fa6da809b39b55 | Android/Sample/gradle/wrapper/gradle-wrapper.properties | Android/Sample/gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/scripts/fetch_data.py
<|file_sep|>current/scripts/fetch_data.py
<|file_sep|>updated/scripts/fetch_data.py | import json
import requests
import dataset
def fetch_builds_data(jenkins_url):
'''Get json data of all Jenkins builds
JENKINS_URL/api/json?
tree=jobs[name,builds[number,result,duration,builtOn,id,timestamp,fullDisplayName]]
Return builds_data dictionary with following schema::
[
{
... | <|file_sep|>original/scripts/fetch_data.py
<|file_sep|>current/scripts/fetch_data.py
<|file_sep|>updated/scripts/fetch_data.py
import json
import requests
import dataset
def fetch_builds_data(jenkins_url):
'''Get json data of all Jenkins builds
JENKINS_URL/api/json?
tree=jobs[name,builds[number,resul... | f2fb791df5023a39c82561ceb79b92b0b584e5af | scripts/fetch_data.py | scripts/fetch_data.py | Python |
<|file_sep|>index.js.diff
original:
const options = loaderUtils.getOptions(this) || {};
const svg = new svgo(options.svgo || {});
updated:
const {
svgo: svgoOptions = {},
functional = false,
} = loaderUtils.getOptions(this) || {};
const svg = new svgo(svgoOptions);
<|file_sep|>index.js.diff
original:... |
const transpileCode = `var render = function (${functional ? '_h, _vm' : ''}) { ${compiled.render} };`;
const transpileOptions = {
transforms: {
stripWithFunctional: !!functional,
},
};
component = `${transpile(transpileCode, transpileOptions)}\n`;
if (f... | <|file_sep|>index.js.diff
original:
const options = loaderUtils.getOptions(this) || {};
const svg = new svgo(options.svgo || {});
updated:
const {
svgo: svgoOptions = {},
functional = false,
} = loaderUtils.getOptions(this) || {};
const svg = new svgo(svgoOptions);
<|file_sep|>index.js.diff
original:... | b1ec8c41988f95641426f6fd0c66b39e7900355e | index.js | index.js | JavaScript |
<|file_sep|>original/core/src/main/resources/definitions/upgrade-matrix-definition.json
{
"runtime_upgrade_matrix":[
{
"target_runtime":{
"version":"7.2.2"
},
"source_runtime":[
{
"version":"7.1.0"
},
{
"version":"7.2.[0,1]"
}
]
... | "version":"7.2.2"
},
"source_runtime":[
{
"version":"7.1.0"
},
{
"version":"7.2.[0,1]"
}
]
},
{
"target_runtime":{
"version":"7.2.3"
},
"source_runtime":[
{
"version":"7.1.0"
},
... | <|file_sep|>original/core/src/main/resources/definitions/upgrade-matrix-definition.json
{
"runtime_upgrade_matrix":[
{
"target_runtime":{
"version":"7.2.2"
},
"source_runtime":[
{
"version":"7.1.0"
},
{
"version":"7.2.[0,1]"
}
]
... | 709134d13b1502832569ed0cd9ae127f0affedb0 | core/src/main/resources/definitions/upgrade-matrix-definition.json | core/src/main/resources/definitions/upgrade-matrix-definition.json | JSON |
<|file_sep|>original/README.md
bundle exec rake db:migrate
bundle exec rake spec
MySQL
-----
* `cp config/database.mysql.yml config/database.yml`
* add `gem "mysql"` to the Gemfile
* run `bundle`
PostgreSQL
----------
* `cp config/database.postgresql.yml config/database.yml`
* add `gem "pg"` to the Gemfile
... | bundle exec rake db:migrate
bundle exec rake spec
MySQL
-----
* `cp config/database.mysql.yml config/database.yml`
* add `gem "mysql"` to the Gemfile
* run `bundle`
PostgreSQL
----------
* `cp config/database.postgresql.yml config/database.yml`
* add `gem "pg"` to the Gemfile
* run `bundle`
* change usernam... | <|file_sep|>original/README.md
bundle exec rake db:migrate
bundle exec rake spec
MySQL
-----
* `cp config/database.mysql.yml config/database.yml`
* add `gem "mysql"` to the Gemfile
* run `bundle`
PostgreSQL
----------
* `cp config/database.postgresql.yml config/database.yml`
* add `gem "pg"` to the Gemfile
... | 52db15f91c3acb49bccf6246b7c273408053d602 | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Paul James",
"email": "paul@peej.co.uk"
}
],
"require": {
"php": ">=5.3.0",
"pimple/pimple": "2.*",
"peej/tonic": "3.*",
"peej/git": "dev-master",
... | "license": "MIT",
"authors": [
{
"name": "Paul James",
"email": "paul@peej.co.uk"
}
],
"require": {
"php": ">=5.3.0",
"pimple/pimple": "2.*",
"peej/tonic": "dev-phpspec2",
"peej/git": "dev-master",
"michelf/php-markdown": "1... | <|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Paul James",
"email": "paul@peej.co.uk"
}
],
"require": {
"php": ">=5.3.0",
"pimple/pimple": "2.*",
"peej/tonic": "3.*",
"peej/git": "dev-master",
... | 2ffb090c4ddda354444c87009b12714c67e951a5 | composer.json | composer.json | JSON |
<|file_sep|>README.md.diff
original:
4. Open http://localhost:9222 in your browser and click on "about:blank"
updated:
4. Open [http://localhost:9222](http://localhost:9222) in your browser and click on "about:blank"
<|file_sep|>original/README.md
2. Start the GroundHAR Day server
```sh
vagrant ssh
# then, from ... | cd /opt/groundhar-day/src
sudo ../bin/groundhar-day
```
3. Upload a HAR to replay
```sh
curl -H "Content-Type: application/json" --data-binary @./examples/lawnsea.com.har -X PUT http://localhost:9000/har
```
4. Open [http://localhost:9222](http://localhost:9222) in your browser and click on "about:blank"... | <|file_sep|>README.md.diff
original:
4. Open http://localhost:9222 in your browser and click on "about:blank"
updated:
4. Open [http://localhost:9222](http://localhost:9222) in your browser and click on "about:blank"
<|file_sep|>original/README.md
2. Start the GroundHAR Day server
```sh
vagrant ssh
# then, from ... | 8d74703de6b87f3b01264159b1962f9f1012b7c5 | README.md | README.md | Markdown |
<|file_sep|>original/client/catalog/computer-science/index.js
module.exports = [
require('./cap3020'),
require('./cap3027'),
require('./cap3032')
];
<|file_sep|>current/client/catalog/computer-science/index.js
module.exports = [
require('./cap3020'),
require('./cap3027'),
require('./cap3032')
];
<|file_sep|... | module.exports = [
require('./cap3020'),
require('./cap3027'),
require('./cap3032'),
require('./cap3033'),
require('./cap3034')
]; | <|file_sep|>original/client/catalog/computer-science/index.js
module.exports = [
require('./cap3020'),
require('./cap3027'),
require('./cap3032')
];
<|file_sep|>current/client/catalog/computer-science/index.js
module.exports = [
require('./cap3020'),
require('./cap3027'),
require('./cap3032')
];
<|file_sep|... | 7309315d40d1204507ddc378c9885489cda55454 | client/catalog/computer-science/index.js | client/catalog/computer-science/index.js | JavaScript |
<|file_sep|>css/application.css.diff
original:
/*@media only screen and (max-width: 460px) {
updated:
@media only screen and (max-width: 460px) {
<|file_sep|>original/css/application.css
#blue {
color: #27c2dc;
}
/*@media only screen and (max-width: 460px) {
#resume-first-link {
margin-bottom: 5%;
}
}*/
/*[... | #blue {
color: #27c2dc;
}
@media only screen and (max-width: 460px) {
#resume-first-link {
margin-bottom: 5%;
}
}
/*[id*="project-"]:hover {
background-color: red;
background: url("http://imgur.com/xDQAOms");
}*/
/*#project-1:hover {
background: url("http://i.imgur.com/xDQAOms.png");
}*/ | <|file_sep|>css/application.css.diff
original:
/*@media only screen and (max-width: 460px) {
updated:
@media only screen and (max-width: 460px) {
<|file_sep|>original/css/application.css
#blue {
color: #27c2dc;
}
/*@media only screen and (max-width: 460px) {
#resume-first-link {
margin-bottom: 5%;
}
}*/
/*[... | 28e4ed300b1a481463dec933e36f0cb91fd3e28a | css/application.css | css/application.css | CSS |
<|file_sep|>original/template/index.html
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="build/deps.css" />
<link type="text/css" rel="stylesheet" href="build/bundle.css" />
<script defer src="build/deps.js"></script>
<script defer src="build/bundle.js"></script>
</head>... | <!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="build/deps.css" />
<link type="text/css" rel="stylesheet" href="build/bundle.css" />
<script defer src="build/deps.js"></script>
<script defer src="build/main.js"></script>
</head>
<body>
TODO write your clientside a... | <|file_sep|>original/template/index.html
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="build/deps.css" />
<link type="text/css" rel="stylesheet" href="build/bundle.css" />
<script defer src="build/deps.js"></script>
<script defer src="build/bundle.js"></script>
</head>... | f94b1373ef26e88bc587635dc799e6f175570950 | template/index.html | template/index.html | HTML |
<|file_sep|>original/package.json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/francisbrito/onesquare.git"
},
"author": "Francis Brito <fr.br94@gmail.com>",
"license": "ISC",
"bugs": {
"url": "https://github... | "test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/francisbrito/onesquare.git"
},
"author": "Francis Brito <fr.br94@gmail.com>",
"license": "ISC",
"bugs": {
"url": "https://github.com/francisbrito/onesquare/issues"
},
"homep... | <|file_sep|>original/package.json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/francisbrito/onesquare.git"
},
"author": "Francis Brito <fr.br94@gmail.com>",
"license": "ISC",
"bugs": {
"url": "https://github... | 7700f34fccc1a7dad3578e5751ab602f16780a62 | package.json | package.json | JSON |
<|file_sep|>original/README.md
Appnexus iOS SDK
=====================
See the documentation on our wiki here: http://wiki.appnexus.com/x/dhAtAw
Get the latest release notes here: http://wiki.appnexus.com/x/L4aTAw
**Please Note: This SDK is intended to complement the AppNexus Console; it does not work with OAS. The O... | Appnexus iOS SDK
=====================
See the documentation on our wiki here: http://wiki.appnexus.com/x/dhAtAw
Get the latest release notes here: http://wiki.appnexus.com/x/L4aTAw
**Please Note: This SDK is intended to complement the AppNexus Console; it does not work with OAS. The OAS iOS SDK can be found here:**... | <|file_sep|>original/README.md
Appnexus iOS SDK
=====================
See the documentation on our wiki here: http://wiki.appnexus.com/x/dhAtAw
Get the latest release notes here: http://wiki.appnexus.com/x/L4aTAw
**Please Note: This SDK is intended to complement the AppNexus Console; it does not work with OAS. The O... | 6eba8ccd73b911228bc1d749d1c413ec84ae040a | README.md | README.md | Markdown |
<|file_sep|>original/_config.yml
-
text: Historia
url: /historia
exclude: [ 'sass', 'config.rb', 'Procfile', 'Thumbs.db' ]
markdown: kramdown
prose:
rooturl: _posts
media: media
siteurl: http://jyrkij.github.io/eraamunkennel/
metadata:
_posts/static:
- name: layo... | markdown: kramdown
prose:
rooturl: _posts
media: media
siteurl: http://jyrkij.github.io/eraamunkennel/
metadata:
_posts/static:
- name: layout
field:
element: hidden
value: default
- name: disable_title
field:
... | <|file_sep|>original/_config.yml
-
text: Historia
url: /historia
exclude: [ 'sass', 'config.rb', 'Procfile', 'Thumbs.db' ]
markdown: kramdown
prose:
rooturl: _posts
media: media
siteurl: http://jyrkij.github.io/eraamunkennel/
metadata:
_posts/static:
- name: layo... | 807c7d44d3aef9b9495856a5d4ae2e8faa8d0d3f | _config.yml | _config.yml | YAML |
<|file_sep|>original/.travis.yml
sudo: false
language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
env:
- FEATURES="i128"
- BUILD_BENCH="true"
script:
- cargo build --verbose --features "$FEATURES"
- cargo test --verbose --features "$FEATURES"
- cargo build ... | language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
env:
- FEATURES="i128"
- BUILD_BENCH="true"
- rust: 1.0.0
script: cargo build
- rust: 1.20.0
script: cargo test
script:
- cargo build --verbose --features "$FEATURES"
- cargo test --verb... | <|file_sep|>original/.travis.yml
sudo: false
language: rust
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
env:
- FEATURES="i128"
- BUILD_BENCH="true"
script:
- cargo build --verbose --features "$FEATURES"
- cargo test --verbose --features "$FEATURES"
- cargo build ... | 2a7134627d28b7e2df2255d41dac5301fba8c27f | .travis.yml | .travis.yml | YAML |
<|file_sep|>caniuse/test/test_caniuse.py.diff
original:
updated:
from click.testing import CliRunner
<|file_sep|>caniuse/test/test_caniuse.py.diff
original:
updated:
from caniuse.cli import cli
<|file_sep|>caniuse/test/test_caniuse.py.diff
original:
def test_package_name_has_been_used():
assert 'Sorry' in check('... |
def test_package_name_has_not_been_used(self):
assert 'Congratulation' in check('this_package_name_has_not_been_used')
assert 'Congratulation' in \
check('you_will_never_use_this_package_name')
assert 'Congratulation' in \
check('I_suck_and_my_tests_are_order_depende... | <|file_sep|>caniuse/test/test_caniuse.py.diff
original:
updated:
from click.testing import CliRunner
<|file_sep|>caniuse/test/test_caniuse.py.diff
original:
updated:
from caniuse.cli import cli
<|file_sep|>caniuse/test/test_caniuse.py.diff
original:
def test_package_name_has_been_used():
assert 'Sorry' in check('... | 76c44154ca1bc2eeb4e24cc820338c36960b1b5c | caniuse/test/test_caniuse.py | caniuse/test/test_caniuse.py | Python |
<|file_sep|>frontend/src/components/chat/navigation/DeleteAccountForm.js.diff
original:
updated:
import * as config from '../../config';
import axios from 'axios';
axios.defaults.withCredentials = true;
<|file_sep|>frontend/src/components/chat/navigation/DeleteAccountForm.js.diff
original:
updated:
static get co... | this.setState({displayDeleteAccountMessage: true});
}
static get contextTypes() {
return {
router: React.PropTypes.object.isRequired,
};
}
handleDeleteAccountConfirmation = () => {
axios.delete(config.backendUrl + '/delete_user')
.then(res => {
... | <|file_sep|>frontend/src/components/chat/navigation/DeleteAccountForm.js.diff
original:
updated:
import * as config from '../../config';
import axios from 'axios';
axios.defaults.withCredentials = true;
<|file_sep|>frontend/src/components/chat/navigation/DeleteAccountForm.js.diff
original:
updated:
static get co... | 8c12936d9664b80716344c8f7e389cf2efcefeb7 | frontend/src/components/chat/navigation/DeleteAccountForm.js | frontend/src/components/chat/navigation/DeleteAccountForm.js | JavaScript |
<|file_sep|>original/watch.json
{
"scripts": {
"files": ["**/*.ts"],
"tasks": ["compile/typescript"],
"options": {
"perFile": {
"targets" : ["default"]
}
}
}
}
<|file_sep|>current/watch.json
{
"... | {
"scripts": {
"files": ["<%= config.sources.TypeScript.files %>"],
"tasks": ["compile/typescript"],
"options": {
"perFile": {
"targets" : ["default"]
}
}
}
} | <|file_sep|>original/watch.json
{
"scripts": {
"files": ["**/*.ts"],
"tasks": ["compile/typescript"],
"options": {
"perFile": {
"targets" : ["default"]
}
}
}
}
<|file_sep|>current/watch.json
{
"... | 4440c7919dfc5c212579f368d7c39883aa4aece4 | watch.json | watch.json | JSON |
<|file_sep|>libraries/ospama/tests/test-generic.lisp.diff
original:
updated:
(defvar *multi-version-package-name* "linux-libre")
<|file_sep|>original/libraries/ospama/tests/test-generic.lisp
(prove:subtest "Package list"
(prove:ok (< 0 (length (ospama:list-packages))))
(prove:ok (typep (first (ospama:list-package... | (defvar *multi-version-package-name* "linux-libre")
(prove:subtest "Package list"
(prove:ok (< 0 (length (ospama:list-packages))))
(prove:ok (typep (first (ospama:list-packages)) 'ospama:os-package)))
(prove:subtest "Find package"
(prove:is (ospama:name (first (ospama:find-os-packages *test-package-name*)))
... | <|file_sep|>libraries/ospama/tests/test-generic.lisp.diff
original:
updated:
(defvar *multi-version-package-name* "linux-libre")
<|file_sep|>original/libraries/ospama/tests/test-generic.lisp
(prove:subtest "Package list"
(prove:ok (< 0 (length (ospama:list-packages))))
(prove:ok (typep (first (ospama:list-package... | eae93763072210f87a8decf428b8bda879f2dce8 | libraries/ospama/tests/test-generic.lisp | libraries/ospama/tests/test-generic.lisp | Common Lisp |
<|file_sep|>original/lib/gitlab/health_checks/simple_abstract_check.rb
HealthChecks::Result.new(false, "#{human_name} check timed out")
else
HealthChecks::Result.new(false, "unexpected #{human_name} check result: #{check_result}")
end
end
def metrics
with_timing ... | HealthChecks::Result.new(false, "#{human_name} check timed out")
else
HealthChecks::Result.new(false, "unexpected #{human_name} check result: #{check_result}")
end
end
def metrics
result, elapsed = with_timing(&method(:check))
Rails.logger.error("#{human_... | <|file_sep|>original/lib/gitlab/health_checks/simple_abstract_check.rb
HealthChecks::Result.new(false, "#{human_name} check timed out")
else
HealthChecks::Result.new(false, "unexpected #{human_name} check result: #{check_result}")
end
end
def metrics
with_timing ... | 37f27079fe16ffb6f8dbb888593335a361f5964a | lib/gitlab/health_checks/simple_abstract_check.rb | lib/gitlab/health_checks/simple_abstract_check.rb | Ruby |
<|file_sep|>shared/reducers/AuthReducer.js.diff
original:
const defaultState = Immutable.Map({loaded: false});
updated:
const defaultState = Immutable.Map({loaded: false, user: null});
<|file_sep|>shared/reducers/AuthReducer.js.diff
original:
return state.merge({loaded: true, user: action.res.data});
updated:
... | export default function authReducer(state = defaultState, action = {}) {
switch (action.type) {
case 'LOAD':
return state.merge({loaded: true, user: action.res.data || null});
case 'LOGIN_REQUEST':
return state.set('loggingIn', true);
case 'LOGIN':
return state.merge({loggingIn: false,... | <|file_sep|>shared/reducers/AuthReducer.js.diff
original:
const defaultState = Immutable.Map({loaded: false});
updated:
const defaultState = Immutable.Map({loaded: false, user: null});
<|file_sep|>shared/reducers/AuthReducer.js.diff
original:
return state.merge({loaded: true, user: action.res.data});
updated:
... | 13cab0edbbbd37796daec9cafd16de4af50a326a | shared/reducers/AuthReducer.js | shared/reducers/AuthReducer.js | JavaScript |
<|file_sep|>original/index.coffee
requirejs.config({
paths: {
fabric: [
'lib/fabric']
}
})
define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument
console.log "Fabric: ", fabric
console.log "Position: ", new ... | requirejs.config({
paths: {
fabric: [
'lib/fabric']
}
})
define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument
console.log "Fabric: ", fabric
console.log "Position: ", new Position([1,2], 0, 5)
canvas = n... | <|file_sep|>original/index.coffee
requirejs.config({
paths: {
fabric: [
'lib/fabric']
}
})
define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument
console.log "Fabric: ", fabric
console.log "Position: ", new ... | ff80c167830448e9b3503dd676c7b73e6b9541ae | index.coffee | index.coffee | CoffeeScript |
<|file_sep|>original/meta/main.yml
min_ansible_version: 2.0
platforms:
- name: Debian
versions:
- jessie
- name: Darwin
versions:
- all
- name: Alpine
versions:
- 3.3
galaxy_tags:
- development
- osx
- alpine
# dependencies: []
dependencies:
-... | author: FGtatsuro
description: Ansible role for java
license: MIT
min_ansible_version: 2.0
platforms:
- name: Debian
versions:
- jessie
- name: Darwin
versions:
- all
galaxy_tags:
- development
- osx
- alpine
# dependencies: []
dependencies:
- FGtatsuro.p... | <|file_sep|>original/meta/main.yml
min_ansible_version: 2.0
platforms:
- name: Debian
versions:
- jessie
- name: Darwin
versions:
- all
- name: Alpine
versions:
- 3.3
galaxy_tags:
- development
- osx
- alpine
# dependencies: []
dependencies:
-... | 4354225f85723ebaa3dd7b3ce5465ce07bb995f9 | meta/main.yml | meta/main.yml | YAML |
<|file_sep|>original/dev/vagrant-config/scripts/laravel.sh
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corru... | php -r "unlink('composer-setup.php');"
cd /vagrant
composer install
# sort out Laravel environment
cp /vagrant/dev/vagrant-config/laravel/.env /vagrant/.env
# Set up DB
php artisan doctrine:migration:refresh
php artisan db:seed
# need to install node
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
a... | <|file_sep|>original/dev/vagrant-config/scripts/laravel.sh
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corru... | a02f9cfcba677ece03ff492dca990dc4550e595a | dev/vagrant-config/scripts/laravel.sh | dev/vagrant-config/scripts/laravel.sh | Shell |
<|file_sep|>original/packages/mesos/windows.buildinfo.json
{
"single_source" : {
"kind": "git",
"git": "https://git-wip-us.apache.org/repos/asf/mesos.git",
"ref": "fa0314cef104eb8d5e2096b662a28617aef1bfec",
"ref_origin" : "master"
},
"environment": {
"JAVA_LIBRARY_PATH": "/opt/mesosphere/lib",... | {
"single_source" : {
"kind": "git",
"git": "https://github.com/apache/mesos",
"ref": "84749967a1c1384f75c3c017bda45a85eea67787",
"ref_origin" : "master"
},
"environment": {
"JAVA_LIBRARY_PATH": "/opt/mesosphere/lib",
"MESOS_NATIVE_JAVA_LIBRARY": "/opt/mesosphere/lib/libmesos.so"
},
"... | <|file_sep|>original/packages/mesos/windows.buildinfo.json
{
"single_source" : {
"kind": "git",
"git": "https://git-wip-us.apache.org/repos/asf/mesos.git",
"ref": "fa0314cef104eb8d5e2096b662a28617aef1bfec",
"ref_origin" : "master"
},
"environment": {
"JAVA_LIBRARY_PATH": "/opt/mesosphere/lib",... | 63ffee18a474ba2713359c07f62dc5fcbec529c7 | packages/mesos/windows.buildinfo.json | packages/mesos/windows.buildinfo.json | JSON |
<|file_sep|>original/pco_api.gemspec
s.name = "pco_api"
s.version = PCO::API::VERSION
s.homepage = "https://github.com/planningcenter/pco_api_ruby"
s.summary = "API wrapper for api.planningcenteronline.com"
s.description = "pco_api is a gem for working with the RESTful JSON API at api.planni... | s.name = "pco_api"
s.version = PCO::API::VERSION
s.homepage = "https://github.com/planningcenter/pco_api_ruby"
s.summary = "API wrapper for api.planningcenteronline.com"
s.description = "pco_api is a gem for working with the RESTful JSON API at api.planningcenteronline.com using HTTP basic a... | <|file_sep|>original/pco_api.gemspec
s.name = "pco_api"
s.version = PCO::API::VERSION
s.homepage = "https://github.com/planningcenter/pco_api_ruby"
s.summary = "API wrapper for api.planningcenteronline.com"
s.description = "pco_api is a gem for working with the RESTful JSON API at api.planni... | 993eb0775fc70df0df2521c955aed9790e551fa2 | pco_api.gemspec | pco_api.gemspec | Ruby |
<|file_sep|>original/packages/hub/bin/purge-services.sh
#!/bin/bash
set -e
CLUSTER=$1
TASK_DEFINITION=${2:-waypoint-hub}
if [ -z "$CLUSTER" ] || [ -z "$TASK_DEFINITION" ]; then
echo "usage: purge-service.sh CLUSTER [TASK_DEFINITION]"
exit 1
fi
SERVICE_LIST="$(aws ecs list-services --cluster $CLUSTER | jq -r '.ser... | #!/bin/bash
set -e
CLUSTER=$1
TASK_DEFINITION=${2:-waypoint-hub}
if [ -z "$CLUSTER" ] || [ -z "$TASK_DEFINITION" ]; then
echo "usage: $0 CLUSTER [TASK_DEFINITION]"
exit 1
fi
SERVICE_LIST="$(aws ecs list-services --cluster $CLUSTER | jq -r '.serviceArns | .[]')"
if [ "$(echo $SERVICE_LIST | wc -w)" -gt 1 ]; then
... | <|file_sep|>original/packages/hub/bin/purge-services.sh
#!/bin/bash
set -e
CLUSTER=$1
TASK_DEFINITION=${2:-waypoint-hub}
if [ -z "$CLUSTER" ] || [ -z "$TASK_DEFINITION" ]; then
echo "usage: purge-service.sh CLUSTER [TASK_DEFINITION]"
exit 1
fi
SERVICE_LIST="$(aws ecs list-services --cluster $CLUSTER | jq -r '.ser... | 2adb6eb1246b48ae5685a515f992e1f31c70b4b3 | packages/hub/bin/purge-services.sh | packages/hub/bin/purge-services.sh | Shell |
<|file_sep|>original/travis/.travis_mariadb.sh
#!/usr/bin/env bash
set -eux
sudo apt-get install libmariadbclient-dev
<|file_sep|>current/travis/.travis_mariadb.sh
#!/usr/bin/env bash
set -eux
sudo apt-get install libmariadbclient-dev
<|file_sep|>updated/travis/.travis_mariadb.sh | #!/usr/bin/env bash
set -eux
sudo apt-get install libmariadbclient-dev
sudo apt-get install xpdf | <|file_sep|>original/travis/.travis_mariadb.sh
#!/usr/bin/env bash
set -eux
sudo apt-get install libmariadbclient-dev
<|file_sep|>current/travis/.travis_mariadb.sh
#!/usr/bin/env bash
set -eux
sudo apt-get install libmariadbclient-dev
<|file_sep|>updated/travis/.travis_mariadb.sh
#!/usr/bin/env bash
set -eux
sudo... | 9ff7b2f0645c2ec167fbea2b90d17a6d2c34423a | travis/.travis_mariadb.sh | travis/.travis_mariadb.sh | Shell |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.proper... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.proper... | d74cd7eee4a0bfb59d39078ed1863f14a7e4f864 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/README.md
# giphy-ipython-magic
## Demo

## Installation
To use this magic, put `giphy_magic.py` on your `PYTHONPATH` and add `'giphy_magic'` to `c.IPKernelApp.extensions` in your `ipython_notebook_conf... | # giphy-ipython-magic
## Demo

## Installation
To install, do `pip install giphy-ipython-magic`. The only dependencies are `IPython` and `requests`.
The magic can be loaded in two ways:
1. Execute `%load_ext giphy_magic`... | <|file_sep|>original/README.md
# giphy-ipython-magic
## Demo

## Installation
To use this magic, put `giphy_magic.py` on your `PYTHONPATH` and add `'giphy_magic'` to `c.IPKernelApp.extensions` in your `ipython_notebook_conf... | a9d5c7d50f4486eb4ae3cfa05bf7e8e6547505ad | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
---
sudo: required
language: shell
install:
- pip install -r requirements.txt
- npm install
services:
- docker
script:
- yamllint --strict "$(git ls-files '*.yaml' '*.yml')"
- markdownlint ./**/*.md
- docker run --rm -i --name df-shellcheck -v "$(pwd)":/usr/src:ro ferrar... | ---
sudo: required
language: shell
install:
- sudo pip install -r requirements.txt
- npm install
services:
- docker
script:
- yamllint --strict "$(git ls-files '*.yaml' '*.yml')"
- markdownlint ./**/*.md
- docker run --rm -i --name df-shellcheck -v "$(pwd)":/usr/src:ro ferrarimarco/shellcheck
matrix:
... | <|file_sep|>original/.travis.yml
---
sudo: required
language: shell
install:
- pip install -r requirements.txt
- npm install
services:
- docker
script:
- yamllint --strict "$(git ls-files '*.yaml' '*.yml')"
- markdownlint ./**/*.md
- docker run --rm -i --name df-shellcheck -v "$(pwd)":/usr/src:ro ferrar... | 974793a995d6baeb14c112119b5906b3ee9cb657 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/jenkins-worker/README.md
Docker files for jenkins-worker docker images
=============================================================
## Organization
The beginning steps of this Dockerfile are based off of the `evarga/jenkins-slave` image.
The later steps are currently specific to the Frontend bui... | Docker files for jenkins-worker docker images
=============================================================
## Organization
The beginning steps of this Dockerfile are based off of the `evarga/jenkins-slave` image.
The later steps are currently specific to the Platform-UI build. In the future it would be useful to sep... | <|file_sep|>original/jenkins-worker/README.md
Docker files for jenkins-worker docker images
=============================================================
## Organization
The beginning steps of this Dockerfile are based off of the `evarga/jenkins-slave` image.
The later steps are currently specific to the Frontend bui... | 4c03ca2385670dc951b05d2d88bb2972c041578a | jenkins-worker/README.md | jenkins-worker/README.md | Markdown |
<|file_sep|>original/lib/db/sql_templates.json
{
"getBin": "SELECT * FROM sandbox WHERE url=? AND revision=?",
"getLatestBin": "SELECT * FROM sandbox WHERE url=? ORDER BY revision DESC LIMIT 1",
"setBin": "INSERT INTO sandbox (javascript, css, html, created, last_viewed, url, revision, streaming_key) VALUES (?, ?... | {
"getBin": "SELECT * FROM `sandbox` WHERE `url`=? AND `revision`=? LIMIT 1",
"getLatestBin": "SELECT * FROM `sandbox` WHERE `url`=? ORDER BY `revision` DESC LIMIT 1",
"setBin": "INSERT INTO `sandbox` (`javascript`, `css`, `html`, `created`, `last_viewed`, `url`, `revision`, `streaming_key`) VALUES (?, ?, ?, NOW(... | <|file_sep|>original/lib/db/sql_templates.json
{
"getBin": "SELECT * FROM sandbox WHERE url=? AND revision=?",
"getLatestBin": "SELECT * FROM sandbox WHERE url=? ORDER BY revision DESC LIMIT 1",
"setBin": "INSERT INTO sandbox (javascript, css, html, created, last_viewed, url, revision, streaming_key) VALUES (?, ?... | 8a094f6dc99ef1db00c4dafe7bb1b409dc6b9bab | lib/db/sql_templates.json | lib/db/sql_templates.json | JSON |
<|file_sep|>original/lib/response/status.rb
class Response
# HTTP response status code with text
class Status
include Adamantium, Composition.new(:code, :text)
private_class_method :new
OK = new(200, 'OK' )
CREATED = new(201, 'Created' )
NOT_FOUN... | class Response
# HTTP response status code with text
class Status
include Adamantium, Composition.new(:code, :text)
private_class_method :new
OK = new(200, 'OK' )
CREATED = new(201, 'Created' )
NOT_FOUND = new(404, 'Not Found' )
... | <|file_sep|>original/lib/response/status.rb
class Response
# HTTP response status code with text
class Status
include Adamantium, Composition.new(:code, :text)
private_class_method :new
OK = new(200, 'OK' )
CREATED = new(201, 'Created' )
NOT_FOUN... | 79bf760f184a0bce1aa1bfb858398e2f96a2e539 | lib/response/status.rb | lib/response/status.rb | Ruby |
<|file_sep|>original/data/transition-sites/dclg_lf.yml
<|file_sep|>current/data/transition-sites/dclg_lf.yml
<|file_sep|>updated/data/transition-sites/dclg_lf.yml | ---
site: dclg_lf
whitehall_slug: department-for-communities-and-local-government
title: Department for Communities and Local Government
redirection_date: 15th April 2014
homepage: https://www.gov.uk/government/organisations/department-for-communities-and-local-government
tna_timestamp: 20140110170414
host: www.local.c... | <|file_sep|>original/data/transition-sites/dclg_lf.yml
<|file_sep|>current/data/transition-sites/dclg_lf.yml
<|file_sep|>updated/data/transition-sites/dclg_lf.yml
---
site: dclg_lf
whitehall_slug: department-for-communities-and-local-government
title: Department for Communities and Local Government
redirection_date: ... | b4ed2f161cb0db503d1fd7edb8303e0a2cdc606f | data/transition-sites/dclg_lf.yml | data/transition-sites/dclg_lf.yml | YAML |
<|file_sep|>original/Lily.podspec
Pod::Spec.new do |s|
s.name = "Lily"
s.version = "0.5.2"
s.summary = "A lightweight Swift Cache"
s.description = <<-DESC
Lily provide swifty way API for lightweight data cache.
DESC
s.homepage = "https://github.com/kukushi/L... | Pod::Spec.new do |s|
s.name = "Lily"
s.version = "0.5.2"
s.summary = "A lightweight Swift Cache"
s.description = <<-DESC
Lily provide swifty way API for lightweight data cache.
DESC
s.homepage = "https://github.com/kukushi/Lily"
s.license = "MIT"
s.... | <|file_sep|>original/Lily.podspec
Pod::Spec.new do |s|
s.name = "Lily"
s.version = "0.5.2"
s.summary = "A lightweight Swift Cache"
s.description = <<-DESC
Lily provide swifty way API for lightweight data cache.
DESC
s.homepage = "https://github.com/kukushi/L... | 9411fb36716433877789886bc1d04d7fe4b53621 | Lily.podspec | Lily.podspec | Ruby |
<|file_sep|>dataset/__init__.py.diff
original:
updated:
import os
<|file_sep|>dataset/__init__.py.diff
original:
def connect(url, reflectMetadata=True):
updated:
def connect(url=None, reflectMetadata=True):
<|file_sep|>dataset/__init__.py.diff
original:
Opens a new connection to a database. *url* can be any valid ... | from dataset.persistence.table import Table
from dataset.freeze.app import freeze
__all__ = ['Database', 'Table', 'freeze', 'connect']
def connect(url=None, reflectMetadata=True):
"""
Opens a new connection to a database. *url* can be any valid `SQLAlchemy engine URL`_.
If *url* is not defined it will tr... | <|file_sep|>dataset/__init__.py.diff
original:
updated:
import os
<|file_sep|>dataset/__init__.py.diff
original:
def connect(url, reflectMetadata=True):
updated:
def connect(url=None, reflectMetadata=True):
<|file_sep|>dataset/__init__.py.diff
original:
Opens a new connection to a database. *url* can be any valid ... | cf8f3dc4d2cde04a1f822627db522c1b021c3359 | dataset/__init__.py | dataset/__init__.py | Python |
<|file_sep|>DependencyInjection/Configuration.php.diff
original:
$rootNode = $treeBuilder->root('cachetool');
updated:
<|file_sep|>original/DependencyInjection/Configuration.php
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilde... |
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder
->root('cache_tool')
->children()
->scalarNode('adapter')
... | <|file_sep|>DependencyInjection/Configuration.php.diff
original:
$rootNode = $treeBuilder->root('cachetool');
updated:
<|file_sep|>original/DependencyInjection/Configuration.php
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilde... | b79aa7c2d2b506de8c2489526e4e5fdc687e4d17 | DependencyInjection/Configuration.php | DependencyInjection/Configuration.php | PHP |
<|file_sep|>original/configuration/salt/state/run-tracking-db/init.sls
butler_admin_user:
postgres_user.present:
- name: {{ pillar['postgres.user'] }}
- createdb: True
- superuser: True
- password: {{ pillar['postgres.password'] }}
- user: postgres
/data/run_tracking/db:
file.directory:
... | butler_admin_user:
postgres_user.present:
- name: {{ pillar['postgres.user'] }}
- createdb: True
- superuser: True
- password: {{ pillar['postgres.password'] }}
- user: postgres
- db_host: localhost
/data/run_tracking/db:
file.directory:
- user: postgres
- group: postgres
-... | <|file_sep|>original/configuration/salt/state/run-tracking-db/init.sls
butler_admin_user:
postgres_user.present:
- name: {{ pillar['postgres.user'] }}
- createdb: True
- superuser: True
- password: {{ pillar['postgres.password'] }}
- user: postgres
/data/run_tracking/db:
file.directory:
... | aac7ecabf568244003ac3e625560fd8cd32e60d7 | configuration/salt/state/run-tracking-db/init.sls | configuration/salt/state/run-tracking-db/init.sls | SaltStack |
<|file_sep|>Weave/Program.cs.diff
original:
var input = File.ReadAllText(args[0]);
updated:
foreach (var arg in args)
{
var input = File.ReadAllText(arg);
<|file_sep|>Weave/Program.cs.diff
original:
var parser = new WeaveParser();
var parsed = ... | using Weave.Compiler;
using Weave.Parser;
internal class Program
{
private static void Main(string[] args)
{
foreach (var arg in args)
{
var input = File.ReadAllText(arg);
var parser = new WeaveParser();
var parsed... | <|file_sep|>Weave/Program.cs.diff
original:
var input = File.ReadAllText(args[0]);
updated:
foreach (var arg in args)
{
var input = File.ReadAllText(arg);
<|file_sep|>Weave/Program.cs.diff
original:
var parser = new WeaveParser();
var parsed = ... | 746058ff6da172951d7b346085f7f44b023ff679 | Weave/Program.cs | Weave/Program.cs | C# |
<|file_sep|>original/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.0
# Testing
pytest==3.0.7
pep8==1.7.0
pyflakes==1.5.0
tox==2.6.0
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0... | cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.0
# Testing
pytest==3.0.7
pep8==1.7.0
pyflakes==1.5.0
tox==2.7.0
pytest-cookies==0.2.0 | <|file_sep|>original/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0.4.0
# Testing
pytest==3.0.7
pep8==1.7.0
pyflakes==1.5.0
tox==2.6.0
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.5.1
flake8==3.3.0 # pyup: != 2.6.0
sh==1.12.13
binaryornot==0... | 22cbb860680184d00bea57f3867c07104e3bca53 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/backends.yml
development:
mainstream: &mainstream
type: elasticsearch
server: localhost
port: 9200
index_name: "rummager"
detailed: &detailed
type: elasticsearch
server: localhost
port: 9200
index_name: "detailed"
primary:
*mainstream
secondary:
type:... | mainstream: &mainstream
type: elasticsearch
server: localhost
port: 9200
index_name: "rummager"
detailed: &detailed
type: elasticsearch
server: localhost
port: 9200
index_name: "detailed"
government: &government
type: elasticsearch
server: localhost
port: 9200
index... | <|file_sep|>original/backends.yml
development:
mainstream: &mainstream
type: elasticsearch
server: localhost
port: 9200
index_name: "rummager"
detailed: &detailed
type: elasticsearch
server: localhost
port: 9200
index_name: "detailed"
primary:
*mainstream
secondary:
type:... | 85187a12d3b1bea530cbc6dd92b38e394ca32b20 | backends.yml | backends.yml | YAML |
<|file_sep|>original/tests/js/web/PulsarSortableComponentTest.js
this.$html = $('<div class="fake-html"></div>').appendTo('html');
this.$body = $('<div class="fake-body"></div>').appendTo(this.$html);
this.$markup = $('\
<table class="table is-sortable table--full">\
<tbody>\
<tr><td>foo</td... | this.$html = $('<div class="fake-html"></div>').appendTo('html');
this.$body = $('<div class="fake-body"></div>').appendTo(this.$html);
this.$markup = $('\
<table class="table is-sortable table--full">\
<tbody>\
<tr><td>foo</td></tr>\
</tbody>\
</table>\
').appendTo(this.$html);
thi... | <|file_sep|>original/tests/js/web/PulsarSortableComponentTest.js
this.$html = $('<div class="fake-html"></div>').appendTo('html');
this.$body = $('<div class="fake-body"></div>').appendTo(this.$html);
this.$markup = $('\
<table class="table is-sortable table--full">\
<tbody>\
<tr><td>foo</td... | 999f53124b2c08e8585fa5add1b55574e919f444 | tests/js/web/PulsarSortableComponentTest.js | tests/js/web/PulsarSortableComponentTest.js | JavaScript |
<|file_sep|>original/components/label/Label.js
static defaultProps = {
inverse: false,
size: 'medium',
};
render() {
const { children, className, inverse, size } = this.props;
const childProps = {
inverse,
size,
};
const classNames = cx(
theme['label'],
{
... |
static defaultProps = {
inverse: false,
size: 'medium',
};
render() {
const { children, className, inverse, size } = this.props;
const childProps = {
inverse,
marginTop: 1,
size,
};
const classNames = cx(
theme['label'],
{
[theme['is-inverse']]: inve... | <|file_sep|>original/components/label/Label.js
static defaultProps = {
inverse: false,
size: 'medium',
};
render() {
const { children, className, inverse, size } = this.props;
const childProps = {
inverse,
size,
};
const classNames = cx(
theme['label'],
{
... | 4e9e4d1a2d21aec0dabef5699ae8a252cb8b7dcd | components/label/Label.js | components/label/Label.js | JavaScript |
<|file_sep|>lib/assets/core/javascripts/cartodb3/components/icon/icon-view.js.diff
original:
this.icon = opts && opts.icon;
updated:
this.icon = opts.icon;
this.iconTemplate = this._getIconTemplate(this.icon);
if (!this.iconTemplate) {
throw new Error('The selected icon does not have any availabl... |
this.placeholder = opts && opts.placeholder;
},
render: function () {
this.$el.html(this.iconTemplate);
if (this.placeholder) {
var placeholder = $(this.placeholder);
this.$el.removeClass().addClass(placeholder.attr('class'));
placeholder.replaceWith(this.$el);
}
return thi... | <|file_sep|>lib/assets/core/javascripts/cartodb3/components/icon/icon-view.js.diff
original:
this.icon = opts && opts.icon;
updated:
this.icon = opts.icon;
this.iconTemplate = this._getIconTemplate(this.icon);
if (!this.iconTemplate) {
throw new Error('The selected icon does not have any availabl... | a3d9d738ec41760dca40fb858658e51477f5e409 | lib/assets/core/javascripts/cartodb3/components/icon/icon-view.js | lib/assets/core/javascripts/cartodb3/components/icon/icon-view.js | JavaScript |
<|file_sep|>original/.travis.yml
language: objective-c
osx_image: xcode611
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- gem install xcpretty
install:
- carthage bootstrap
script:
- xcodebuild -project Heimdall.xcodeproj -scheme "Heimdall" test -sdk iphonesimulator ONLY_ACTIVE_ARCH=... | language: objective-c
osx_image: xcode611
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage || brew install carthage
- gem install xcpretty
install:
- carthage bootstrap
script:
- xcodebuild -project Heimdall.xcodeproj -scheme "Heimdall" test -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcp... | <|file_sep|>original/.travis.yml
language: objective-c
osx_image: xcode611
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- gem install xcpretty
install:
- carthage bootstrap
script:
- xcodebuild -project Heimdall.xcodeproj -scheme "Heimdall" test -sdk iphonesimulator ONLY_ACTIVE_ARCH=... | 674e29ddd964b9566138e5420f69331ae5eed162 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/doc/source/install/install-ubuntu.rst
Install and configure components
--------------------------------
#. Install the packages:
.. code-block:: console
# apt-get update
# apt-get install barbican-api barbican-keystone-listener barbican-worker
.. include:: common_configure.rst
... |
#. Install the packages:
.. code-block:: console
# apt-get update
# apt-get install barbican-api barbican-keystone-listener barbican-worker
.. include:: common_configure.rst
Finalize installation
---------------------
Restart the Key Manager services:
.. code-block:: console
# service barbica... | <|file_sep|>original/doc/source/install/install-ubuntu.rst
Install and configure components
--------------------------------
#. Install the packages:
.. code-block:: console
# apt-get update
# apt-get install barbican-api barbican-keystone-listener barbican-worker
.. include:: common_configure.rst
... | 474abafd753dd80efc324ab7631c8ef3b7c4d67a | doc/source/install/install-ubuntu.rst | doc/source/install/install-ubuntu.rst | reStructuredText |
<|file_sep|>imports/client/components/posts/comments/more-comments.js.diff
original:
<strong>{count}</strong> more comments
updated:
<|file_sep|>original/imports/client/components/posts/comments/more-comments.js
shouldComponentUpdate(nextProps) {
return this.props.count !== nextProps.count;
}
render... | shouldComponentUpdate(nextProps) {
return this.props.count !== nextProps.count;
}
render() {
const { count } = this.props;
const moreCommentsButton = (
<button type="button" className="post-more-comments inner-x">
<span className="f-right">(view more)</span>
<strong>{count}</st... | <|file_sep|>imports/client/components/posts/comments/more-comments.js.diff
original:
<strong>{count}</strong> more comments
updated:
<|file_sep|>original/imports/client/components/posts/comments/more-comments.js
shouldComponentUpdate(nextProps) {
return this.props.count !== nextProps.count;
}
render... | ce3364ec1b89ca3b5f1fd139f8bd30cb63bf0b38 | imports/client/components/posts/comments/more-comments.js | imports/client/components/posts/comments/more-comments.js | JavaScript |
<|file_sep|>original/bearsData/validations/february-24_to_01-march.txt
<|file_sep|>current/bearsData/validations/february-24_to_01-march.txt
<|file_sep|>updated/bearsData/validations/february-24_to_01-march.txt | qos-ch-slf4j-206190550-20170228-150958 [FAILURE] (bug reproduction - status = 0)
GwtMaterialDesign-gwt-material-205185141-20170225-032108 [OK]
OpenGamma-Strata-205883354-20170227-185551 [OK]
airlift-airlift-205641678-20170227-011037 [FAILURE] (patch reproduction - status = 1)
google-error-prone-206050964-20170228-04595... | <|file_sep|>original/bearsData/validations/february-24_to_01-march.txt
<|file_sep|>current/bearsData/validations/february-24_to_01-march.txt
<|file_sep|>updated/bearsData/validations/february-24_to_01-march.txt
qos-ch-slf4j-206190550-20170228-150958 [FAILURE] (bug reproduction - status = 0)
GwtMaterialDesign-gwt-mate... | 878306344067142c02dc56c452ac56abd1691cf1 | bearsData/validations/february-24_to_01-march.txt | bearsData/validations/february-24_to_01-march.txt | Text |
<|file_sep|>original/README.md
```json
{
content : [
{
title: "",
description: "",
link: "http://codepen.io/simurai/pen/Atnmy"
img: "carve-me.jpg"
tags: [css]
category: []
layout: post
bodyModel: {
... | # sunset
Add support for pictures
A ultility that transforms markdown files to json | <|file_sep|>original/README.md
```json
{
content : [
{
title: "",
description: "",
link: "http://codepen.io/simurai/pen/Atnmy"
img: "carve-me.jpg"
tags: [css]
category: []
layout: post
bodyModel: {
... | f4f93136aa8a6753ddbf65321eac4786983ff9c9 | README.md | README.md | Markdown |
<|file_sep|>original/html/login.html
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="static/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="static/style.css" rel="stylesheet">
</head>
<body>
<div class="list-group" id="main">
<... | <meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="static/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="static/style.css" rel="stylesheet">
</head>
<body>
<div class="list-group" id="main">
<a class="list-group-item" id="title">... | <|file_sep|>original/html/login.html
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="static/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="static/style.css" rel="stylesheet">
</head>
<body>
<div class="list-group" id="main">
<... | cb8ccae7186d6ae41df4f63208849b473c4581f7 | html/login.html | html/login.html | HTML |
<|file_sep|>api/lib/core/config.ex.diff
original:
with {:ok, val} <- Application.fetch_env(:api, key) do
val
else
_ -> Logger.error "#{key} not set in config!"
nil
end
updated:
get_default module, key
<|file_sep|>api/lib/core/config.ex.diff
original:
defp get_test(modul... | "user-1" => ["a", "b", "c", "d"],
"user-2" => ["a", "b", "c"],
"user-3" => ["a", "b"],
"anonymous" => ["a"]
}
:users ->
[
%{ name: "user-1", pass: "pass-1" },
%{ name: "user-2", pass: "pass-2" },
%{ name: "us... | <|file_sep|>api/lib/core/config.ex.diff
original:
with {:ok, val} <- Application.fetch_env(:api, key) do
val
else
_ -> Logger.error "#{key} not set in config!"
nil
end
updated:
get_default module, key
<|file_sep|>api/lib/core/config.ex.diff
original:
defp get_test(modul... | fc8b9b97f950359269830835f22965250fea4ff6 | api/lib/core/config.ex | api/lib/core/config.ex | Elixir |
<|file_sep|>original/fetch_configs/flutter.py
<|file_sep|>current/fetch_configs/flutter.py
<|file_sep|>updated/fetch_configs/flutter.py | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import config_util # pylint: disable=import-error
# This class doesn't need an __init__ method, so we disable the warning
# pylint: disable=no... | <|file_sep|>original/fetch_configs/flutter.py
<|file_sep|>current/fetch_configs/flutter.py
<|file_sep|>updated/fetch_configs/flutter.py
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import ... | cfac2ea76b00620545717667305e78179a8fb390 | fetch_configs/flutter.py | fetch_configs/flutter.py | Python |
<|file_sep|>original/readme.md
# kap-giphy [](https://travis-ci.org/wulkano/kap-giphy)
> [Kap](https://github.com/wulkano/kap) plugin - Share GIFs on [GIPHY](https://giphy.com)
## Install
In the `Kap` menu, go to `Preferences…`, select the `Pl... | # kap-giphy [](https://travis-ci.org/wulkano/kap-giphy)
> [Kap](https://github.com/wulkano/kap) plugin - Share GIFs on [GIPHY](https://giphy.com)
## Install
In the `Kap` menu, go to `Preferences…`, select the `Plugins` pane, find this plugin, an... | <|file_sep|>original/readme.md
# kap-giphy [](https://travis-ci.org/wulkano/kap-giphy)
> [Kap](https://github.com/wulkano/kap) plugin - Share GIFs on [GIPHY](https://giphy.com)
## Install
In the `Kap` menu, go to `Preferences…`, select the `Pl... | 60f810ea8549ac571eebd99132f357761e0c54da | readme.md | readme.md | Markdown |
<|file_sep|>original/src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig
{% if faqFeedback %}
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{... | {% if faqFeedback %}
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
</tr>
{% endfor %}
... | <|file_sep|>original/src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig
{% if faqFeedback %}
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{... | 3d9db5e8f80ccba4faf707e9a972639b5f535b89 | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | Twig |
<|file_sep|>perfkitbenchmarker/benchmarks/__init__.py.diff
original:
"""Contains all benchmark imports and a list of benchmarks."""
updated:
"""Contains benchmark imports and a list of benchmarks.
<|file_sep|>perfkitbenchmarker/benchmarks/__init__.py.diff
original:
updated:
All modules within this package are consider... | Args:
path: Path containing python modules.
package_prefix: prefix (e.g., package name) to prefix all modules.
'path' and 'package_prefix' will be joined with a '.'.
Yields:
Imported modules.
"""
prefix = ''
if package_prefix:
prefix = package_prefix + '.'
module_iter = pkgutil.iter_mo... | <|file_sep|>perfkitbenchmarker/benchmarks/__init__.py.diff
original:
"""Contains all benchmark imports and a list of benchmarks."""
updated:
"""Contains benchmark imports and a list of benchmarks.
<|file_sep|>perfkitbenchmarker/benchmarks/__init__.py.diff
original:
updated:
All modules within this package are consider... | 8fb15f3a072d516e477449c2b751226494ee14c5 | perfkitbenchmarker/benchmarks/__init__.py | perfkitbenchmarker/benchmarks/__init__.py | Python |
<|file_sep|>original/.travis.yml
language: go
sudo: required
go:
- 1.6
- 1.7
env:
- DOCKER_HOST=unix:///var/run/docker.sock
services:
- docker
before_install:
- docker pull microscaling/priority-1:latest
install: make get-deps
<|file_sep|>current/.travis.yml
language: go
sudo: required
go:
- 1.6
- 1... | language: go
sudo: required
go:
- 1.10
env:
- DOCKER_HOST=unix:///var/run/docker.sock
services:
- docker
before_install:
- docker pull microscaling/priority-1:latest
install: make get-deps | <|file_sep|>original/.travis.yml
language: go
sudo: required
go:
- 1.6
- 1.7
env:
- DOCKER_HOST=unix:///var/run/docker.sock
services:
- docker
before_install:
- docker pull microscaling/priority-1:latest
install: make get-deps
<|file_sep|>current/.travis.yml
language: go
sudo: required
go:
- 1.6
- 1... | 4d8a479d486797a461faa5d3bed1c3af2dc80591 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/models/collections.js
allowNull: false
}
}, {
instanceMethods: {
insertIntoDirs: function(UUID, parentUUID) {
var tree = new TreeModel();
var dirs = tree.parse(JSON.parse(this.dirs));
var parent;
if (parentUUID) {
parent = dirs.first(f... | var TreeModel = require('tree-model');
module.exports = function(DataTypes) {
return [{
name: {
type: DataTypes.STRING,
allowNull: false
}
}];
}; | <|file_sep|>original/models/collections.js
allowNull: false
}
}, {
instanceMethods: {
insertIntoDirs: function(UUID, parentUUID) {
var tree = new TreeModel();
var dirs = tree.parse(JSON.parse(this.dirs));
var parent;
if (parentUUID) {
parent = dirs.first(f... | ad4f2512ab1e42bf19b877c04eddd831cf747fb0 | models/collections.js | models/collections.js | JavaScript |
<|file_sep|>original/multimedia/fixtures/encode-profiles.json
<|file_sep|>current/multimedia/fixtures/encode-profiles.json
<|file_sep|>updated/multimedia/fixtures/encode-profiles.json | [
{
"pk": 1,
"model": "multimedia.encodeprofile",
"fields": {
"container": "mp4",
"command": "ffmpeg -y -i \"%(input)s\" -codec:v libx264 -profile:v high -preset slow -crf 20 -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=trunc(oh*a/2)*2:360 -threads 0 -codec:a libfaac -b:a 96k -ac 1 \"... | <|file_sep|>original/multimedia/fixtures/encode-profiles.json
<|file_sep|>current/multimedia/fixtures/encode-profiles.json
<|file_sep|>updated/multimedia/fixtures/encode-profiles.json
[
{
"pk": 1,
"model": "multimedia.encodeprofile",
"fields": {
"container": "mp4",
"command": "ffmpeg -y... | f117e0923ae7de6389765feb721340974b124c0f | multimedia/fixtures/encode-profiles.json | multimedia/fixtures/encode-profiles.json | JSON |
<|file_sep|>activerecord/test/cases/adapters/mysql2/datetime_precision_quoting_test.rb.diff
original:
test "no microsecond precision for MariaDB lt 5.3.0" do
stub_version "5.2.9-MariaDB" do
assert_no_microsecond_precision
end
end
updated:
<|file_sep|>activerecord/test/cases/adapters/mysql2/datetime_... | def assert_microsecond_precision
assert_match_quoted_microsecond_datetime(/\.123456\z/)
end
def assert_no_microsecond_precision
assert_match_quoted_microsecond_datetime(/:55\z/)
end
def assert_match_quoted_microsecond_datetime(match)
assert_match match, @connection.quoted_date(Ti... | <|file_sep|>activerecord/test/cases/adapters/mysql2/datetime_precision_quoting_test.rb.diff
original:
test "no microsecond precision for MariaDB lt 5.3.0" do
stub_version "5.2.9-MariaDB" do
assert_no_microsecond_precision
end
end
updated:
<|file_sep|>activerecord/test/cases/adapters/mysql2/datetime_... | cdc1cb50dc988503f79200174249dc64eb232501 | activerecord/test/cases/adapters/mysql2/datetime_precision_quoting_test.rb | activerecord/test/cases/adapters/mysql2/datetime_precision_quoting_test.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
sudo: false
git:
depth: 1
<|file_sep|>.travis.yml.diff
original:
- "0.11"
- "0.10"
git:
depth: 1
install:
updated:
- stable
- '0'
- '0.10'
before_script:
<|file_sep|>.travis.yml.diff
original:
- npm install --loglevel error
before_script:
updated:
<|f... | sudo: false
git:
depth: 1
language: node_js
node_js:
- stable
- '0'
- '0.10'
before_script:
- npm install jscoverage coveralls mocha-lcov-reporter
- ./node_modules/jscoverage/bin/jscoverage --no-highlight lib lib-cov
- TEST_COV=1 make test REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/covera... | <|file_sep|>.travis.yml.diff
original:
updated:
sudo: false
git:
depth: 1
<|file_sep|>.travis.yml.diff
original:
- "0.11"
- "0.10"
git:
depth: 1
install:
updated:
- stable
- '0'
- '0.10'
before_script:
<|file_sep|>.travis.yml.diff
original:
- npm install --loglevel error
before_script:
updated:
<|f... | 074c619ca4576d3593c724a667b37da8a8fd573f | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements.txt
Django>=1.4
django-simple-rest==1.4.1
django-reversion==1.6.4
<|file_sep|>current/requirements.txt
Django>=1.4
django-simple-rest==1.4.1
django-reversion==1.6.4
<|file_sep|>updated/requirements.txt | Django==1.4.10
django-simple-rest==1.4.1
django-reversion==1.6.4 | <|file_sep|>original/requirements.txt
Django>=1.4
django-simple-rest==1.4.1
django-reversion==1.6.4
<|file_sep|>current/requirements.txt
Django>=1.4
django-simple-rest==1.4.1
django-reversion==1.6.4
<|file_sep|>updated/requirements.txt
Django==1.4.10
django-simple-rest==1.4.1
django-reversion==1.6.4 | 03d67d17bdc3ad2847c9b820531665c63bd583ff | requirements.txt | requirements.txt | Text |
<|file_sep|>original/files/validate_postgresql_connection.sh
do
echo $c
if [ $c -gt 1 ]
then
echo 'sleeping'
sleep $SLEEP
fi
/bin/echo "SELECT 1" | $PSQL
STATE=$?
if [ $STATE -eq 0 ]
then
exit 0
fi
$c++
done
echo 'Unable to connect to postgresql'
exit 1
<|file_sep|>current/files/valida... | do
echo $c
if [ $c -gt 1 ]
then
echo 'sleeping'
sleep $SLEEP
fi
/bin/echo "SELECT 1" | $PSQL
STATE=$?
if [ $STATE -eq 0 ]
then
exit 0
fi
c=$((c+1))
done
echo 'Unable to connect to postgresql'
exit 1 | <|file_sep|>original/files/validate_postgresql_connection.sh
do
echo $c
if [ $c -gt 1 ]
then
echo 'sleeping'
sleep $SLEEP
fi
/bin/echo "SELECT 1" | $PSQL
STATE=$?
if [ $STATE -eq 0 ]
then
exit 0
fi
$c++
done
echo 'Unable to connect to postgresql'
exit 1
<|file_sep|>current/files/valida... | 1f9931dbd2457d454b1b0c85a1fcb36cb7364a90 | files/validate_postgresql_connection.sh | files/validate_postgresql_connection.sh | Shell |
<|file_sep|>package.json.diff
original:
"grunt-contrib-compress": "0.5.2",
updated:
"grunt-contrib-compress": "0.5.3",
<|file_sep|>package.json.diff
original:
"grunt-contrib-cssmin": "0.6.2",
"grunt-contrib-jshint": "0.7.1",
"grunt-contrib-uglify": "0.2.5",
updated:
"grun... | {
"name": "textpattern-forum",
"version": "0.0.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1",
"grunt-contrib-compass": "0.6.0",
"grunt-contrib-compress": "0.5.3",
"grunt-contrib-copy": "0.4.1",
"grunt-contrib-cssmin": "0.7.0",
"grunt-... | <|file_sep|>package.json.diff
original:
"grunt-contrib-compress": "0.5.2",
updated:
"grunt-contrib-compress": "0.5.3",
<|file_sep|>package.json.diff
original:
"grunt-contrib-cssmin": "0.6.2",
"grunt-contrib-jshint": "0.7.1",
"grunt-contrib-uglify": "0.2.5",
updated:
"grun... | 5572a772092a16ae0d9ced0b50822f93bd46c00e | package.json | package.json | JSON |
<|file_sep|>original/renovate.json5
{
extends: ['config:base'],
regexManagers: [
{
fileMatch: ['^*.gemspec'],
matchStrings: [
'^.*add.*dependency\\s[\'"](?<depName>[^\'"]*)[\'"],\\s*[\'"](?<currentValue>[^\'"]*)[\'"]',
],
datasourceTemplate: 'rubygems',
},
],
}
<|file_sep|>... | {
extends: ['config:base'],
regexManagers: [
{
fileMatch: ['^*.gemspec'],
matchStrings: [
".*add.*dependency '(?<depName>.*?)', '(?<currentValue>.*?)'",
],
datasourceTemplate: 'rubygems',
},
],
} | <|file_sep|>original/renovate.json5
{
extends: ['config:base'],
regexManagers: [
{
fileMatch: ['^*.gemspec'],
matchStrings: [
'^.*add.*dependency\\s[\'"](?<depName>[^\'"]*)[\'"],\\s*[\'"](?<currentValue>[^\'"]*)[\'"]',
],
datasourceTemplate: 'rubygems',
},
],
}
<|file_sep|>... | 7600d2fd5a884f6a28affb4d32392afa4027df6f | renovate.json5 | renovate.json5 | JSON5 |
<|file_sep|>templates/templates/_gridHeader.hbs.diff
original:
_.each(availableCategories, function(el, i){
updated:
_.each(availableCategories, function(el, key){
<|file_sep|>original/templates/templates/_gridHeader.hbs
<script type="text/template" id="grid-header">
<section class="secondary-header">
<%
_.eac... | <script type="text/template" id="grid-header">
<section class="secondary-header">
<%
_.each(availableCategories, function(el, key){
%>
<span class="subcategory"><a href="#media/<%= postType %>/category=<%= encodeURI(app.helpers.makeCompressCase(key)) %>"><%= el %></a></span>
<%
});
%>
</section>
</sc... | <|file_sep|>templates/templates/_gridHeader.hbs.diff
original:
_.each(availableCategories, function(el, i){
updated:
_.each(availableCategories, function(el, key){
<|file_sep|>original/templates/templates/_gridHeader.hbs
<script type="text/template" id="grid-header">
<section class="secondary-header">
<%
_.eac... | b1af06077724243ae49f6c39a9c246fcb34b4d97 | templates/templates/_gridHeader.hbs | templates/templates/_gridHeader.hbs | Handlebars |
<|file_sep|>lib/to_source/proc/parser19/extensions.rb.diff
original:
updated:
POS, TYP, VAL = 0, 1, 2
ROW, COL= 0, 1
<|file_sep|>lib/to_source/proc/parser19/extensions.rb.diff
original:
curr[0][0]
updated:
curr[POS][ROW]
<|file_sep|>lib/to_source/proc/parser19/extensions.rb... | end
def keywords(*types)
(
types = [types].flatten
select{|e| e[TYP] == :on_kw && (types.empty? or types.include?(e[VAL])) }
).extend(Extensions::Result)
end
def non_spaces(*types)
(
types = [types].f... | <|file_sep|>lib/to_source/proc/parser19/extensions.rb.diff
original:
updated:
POS, TYP, VAL = 0, 1, 2
ROW, COL= 0, 1
<|file_sep|>lib/to_source/proc/parser19/extensions.rb.diff
original:
curr[0][0]
updated:
curr[POS][ROW]
<|file_sep|>lib/to_source/proc/parser19/extensions.rb... | d0a00ebde0ae45f756a51fb4703d9b4d82bfa5a5 | lib/to_source/proc/parser19/extensions.rb | lib/to_source/proc/parser19/extensions.rb | Ruby |
<|file_sep|>.github/workflows/ci.yml.diff
original:
rust_version: [stable, 1.43.1]
updated:
<|file_sep|>.github/workflows/ci.yml.diff
original:
- name: Rustup
run: rustup default ${{ matrix.rust_version }}
- name: Test
updated:
- name: Stable
<|file_sep|>original/.github/workflows/ci.... |
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Stable
run: cargo test
- name: Clippy
run: |
rustup component add clippy
cargo clippy --all-targets
... | <|file_sep|>.github/workflows/ci.yml.diff
original:
rust_version: [stable, 1.43.1]
updated:
<|file_sep|>.github/workflows/ci.yml.diff
original:
- name: Rustup
run: rustup default ${{ matrix.rust_version }}
- name: Test
updated:
- name: Stable
<|file_sep|>original/.github/workflows/ci.... | 8b10e5e77840c0477a4b1575f91a4549d010af04 | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>README.md.diff
original:
updated:
Note: The scripts _can_ also be used to generate bootstrap and/or recovery AMIs: non-LVMed AMIs intended to help generate the LVM-enabled AMIs or recover LVM-enabled instances. However, this functionality is only lightly tested. It is known to produce CentOS 7.x AMIs suit... | # Introduction
The scripts in this project are designed to ease the creation of LVM-enabled Enterprise Linux AMIs for use in AWS envrionments. It has been successfully tested with CentOS 7.x, Scientific Linux 7.x and Red Hat Enterprise Linux 7.x. It should work with other EL7-derived operating systems.
Note: The scrip... | <|file_sep|>README.md.diff
original:
updated:
Note: The scripts _can_ also be used to generate bootstrap and/or recovery AMIs: non-LVMed AMIs intended to help generate the LVM-enabled AMIs or recover LVM-enabled instances. However, this functionality is only lightly tested. It is known to produce CentOS 7.x AMIs suit... | 100822a5f003b7ae0b7a4f46a0114d5847f6dea3 | README.md | README.md | Markdown |
<|file_sep|>original/globalize/globalize-0.1.3.d.ts
// Type definitions for Globalize v?.? NuGet package v0.1.3
// Project: https://github.com/jquery/globalize
// Definitions by: Aram Taieb <https://github.com/afromogli/>
// Definitions: https://github.com/afromogli/DefinitelyTyped
interface GlobalizeStatic {
addC... | // Type definitions for Globalize v0.1.3 (NuGet package version)
// Project: https://github.com/jquery/globalize
// Definitions by: Aram Taieb <https://github.com/afromogli/>
// Definitions: https://github.com/afromogli/DefinitelyTyped
interface GlobalizeStatic {
addCultureInfo(cultureName: string, baseCultureName... | <|file_sep|>original/globalize/globalize-0.1.3.d.ts
// Type definitions for Globalize v?.? NuGet package v0.1.3
// Project: https://github.com/jquery/globalize
// Definitions by: Aram Taieb <https://github.com/afromogli/>
// Definitions: https://github.com/afromogli/DefinitelyTyped
interface GlobalizeStatic {
addC... | d9e6d03e769ee7013bee70e4f73c8e59d932d91d | globalize/globalize-0.1.3.d.ts | globalize/globalize-0.1.3.d.ts | TypeScript |
<|file_sep|>original/query/forms.py
"""
Forms for the rdap_explorer project, query app.
"""
from django import forms
class QueryForm(forms.Form):
query = forms.CharField(max_length=100)
<|file_sep|>current/query/forms.py
"""
Forms for the rdap_explorer project, query app.
"""
from django import forms
class Qu... | """
Forms for the rdap_explorer project, query app.
"""
from django import forms
class QueryForm(forms.Form):
query = forms.CharField(
label='',
max_length=100,
widget=forms.TextInput(attrs={'placeholder': 'IPv4/6 address'})
) | <|file_sep|>original/query/forms.py
"""
Forms for the rdap_explorer project, query app.
"""
from django import forms
class QueryForm(forms.Form):
query = forms.CharField(max_length=100)
<|file_sep|>current/query/forms.py
"""
Forms for the rdap_explorer project, query app.
"""
from django import forms
class Qu... | a9176b1fc9116601a98c53a84cff57d9692e1fa4 | query/forms.py | query/forms.py | Python |
<|file_sep|>original/src/asis/asis-errors.ads
<|file_sep|>current/src/asis/asis-errors.ads
<|file_sep|>updated/src/asis/asis-errors.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... | <|file_sep|>original/src/asis/asis-errors.ads
<|file_sep|>current/src/asis/asis-errors.ads
<|file_sep|>updated/src/asis/asis-errors.ads
------------------------------------------------------------------------------
-- --
-- ASI... | 641703d109c3c8f28ff999124d0c2ba77a9b5f7a | src/asis/asis-errors.ads | src/asis/asis-errors.ads | Ada |
<|file_sep|>original/rc/goog/exports.sh
#!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_DEFINES="use_goma=1"
<|file_sep|>current/rc/goog/exports.sh
#!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_DEFINES="use_goma=1"
<|file_sep|>updated/rc/goog/exports.sh | #!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_DEFINES="use_goma=1"
export CDPATH=.:/usr/local/google/home/vakh/work/chrome/src | <|file_sep|>original/rc/goog/exports.sh
#!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_DEFINES="use_goma=1"
<|file_sep|>current/rc/goog/exports.sh
#!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_DEFINES="use_goma=1"
<|file_sep|>updated/rc/goog/exports.sh
#!/bin/bash
export GOMA_DIR=${HOME}/goma
export GYP_D... | e61955f24dd892ba5f08e013d960e1f2155b93a6 | rc/goog/exports.sh | rc/goog/exports.sh | Shell |
<|file_sep|>bin/demo_server.dart.diff
original:
updated:
bool hasShutdown = false;
<|file_sep|>bin/demo_server.dart.diff
original:
updated:
..registerMethod('shutdown', () {
hasShutdown = true;
})
..registerMethod('exit', () {
server.close();
})
<|file_sep|>original/bin/demo_server.dart
... | })
..registerMethod('stop_notifications', () {
timer?.cancel();
timer = null;
})
..registerFallback(([params]) {
return 'fallback for "${params.method}" with params ${params.value}';
});
await server.listen();
timer?.cancel();
if (hasShutdown) {
exitCode = 0;
} else {
... | <|file_sep|>bin/demo_server.dart.diff
original:
updated:
bool hasShutdown = false;
<|file_sep|>bin/demo_server.dart.diff
original:
updated:
..registerMethod('shutdown', () {
hasShutdown = true;
})
..registerMethod('exit', () {
server.close();
})
<|file_sep|>original/bin/demo_server.dart
... | 16af9e4391482067126994cd016b8db507175056 | bin/demo_server.dart | bin/demo_server.dart | Dart |
<|file_sep|>src/lib/vm/closure.go.diff
original:
if len(ts) == 0 {
updated:
switch len(ts) {
case 0:
<|file_sep|>original/src/lib/vm/closure.go
freeVariables []*Thunk
}
func (c Closure) Call(ts ...*Thunk) *Thunk {
o := c.function.Eval()
f, ok := o.(Callable)
if !ok {
return NotCallableError(o)
}
return f.... | func (c Closure) Call(ts ...*Thunk) *Thunk {
o := c.function.Eval()
f, ok := o.(Callable)
if !ok {
return NotCallableError(o)
}
return f.Call(append(c.freeVariables, ts...)...)
}
func Partial(ts ...*Thunk) *Thunk {
switch len(ts) {
case 0:
return NumArgsError("partial", ">= 1")
case 1:
return ts[0]
}
... | <|file_sep|>src/lib/vm/closure.go.diff
original:
if len(ts) == 0 {
updated:
switch len(ts) {
case 0:
<|file_sep|>original/src/lib/vm/closure.go
freeVariables []*Thunk
}
func (c Closure) Call(ts ...*Thunk) *Thunk {
o := c.function.Eval()
f, ok := o.(Callable)
if !ok {
return NotCallableError(o)
}
return f.... | aad020ddc36bb54df4f241a82fd4603ed8a41d2c | src/lib/vm/closure.go | src/lib/vm/closure.go | Go |
<|file_sep|>original/OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv
Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
12,0.33,1
<|file_sep|>current/OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv
Number of vertices [numVer... | Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
120,0.33,28
120,0.33,24
120,0.33,20
120,0.33,16
120,0.33,11
120,0.33,6
120,0.33,4
120,0.33,1 | <|file_sep|>original/OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv
Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
12,0.33,1
<|file_sep|>current/OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv
Number of vertices [numVer... | b43f8e8427a9e71012260d82f7cc05d63809bcf9 | OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv | OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv | CSV |
<|file_sep|>install.zsh.diff
original:
mkdir -p ${DOTFILES_PATH}/../private
cd ${DOTFILES_PATH}/../private
updated:
<|file_sep|>original/install.zsh
git config --local user.email "benoth83@gmail.com"
git config --local user.name "Benoth"
# Bootstrap (create symlinks, etc) the public repository
[[ -f ./bootstrap.sh ]]... | git config --local user.email "benoth83@gmail.com"
git config --local user.name "Benoth"
# Bootstrap (create symlinks, etc) the public repository
[[ -f ./bootstrap.sh ]] && ./bootstrap.sh || echo "No boostrap file found"
# Clone & config the private repository
print -n "To clone the private repository, you need to pr... | <|file_sep|>install.zsh.diff
original:
mkdir -p ${DOTFILES_PATH}/../private
cd ${DOTFILES_PATH}/../private
updated:
<|file_sep|>original/install.zsh
git config --local user.email "benoth83@gmail.com"
git config --local user.name "Benoth"
# Bootstrap (create symlinks, etc) the public repository
[[ -f ./bootstrap.sh ]]... | 25462abe6febbd254f212feecd2e39a7430c8303 | install.zsh | install.zsh | Shell |
<|file_sep|>lib/nehm/track.rb.diff
original:
if @hash['title'].index(' - ')
updated:
if @hash['title'].include? ' - '
<|file_sep|>original/lib/nehm/track.rb
# Used in Get#dl and in Track#file_name
def name
artist + ' - ' + title
end
def streamable?
@hash['streamable']
end
... | # Used in Get#dl and in Track#file_name
def name
artist + ' - ' + title
end
def streamable?
@hash['streamable']
end
def title
if @hash['title'].include? ' - '
@hash['title'].split(' - ')[1]
else
@hash['title']
end
end
def url
"#{@has... | <|file_sep|>lib/nehm/track.rb.diff
original:
if @hash['title'].index(' - ')
updated:
if @hash['title'].include? ' - '
<|file_sep|>original/lib/nehm/track.rb
# Used in Get#dl and in Track#file_name
def name
artist + ' - ' + title
end
def streamable?
@hash['streamable']
end
... | 21fa7d0c1fafde320b296d9e05a52aab19fb5505 | lib/nehm/track.rb | lib/nehm/track.rb | Ruby |
<|file_sep|>palindrome-products/palindrome_products.py.diff
original:
updated:
import random
<|file_sep|>original/palindrome-products/palindrome_products.py
def smallest_palindrome(max_factor, min_factor=0):
return _palindromes(max_factor, min_factor, min)
def _palindromes(max_factor, min_factor, minmax):
p... |
def smallest_palindrome(max_factor, min_factor=0):
return _palindromes(max_factor, min_factor, min)
def _palindromes(max_factor, min_factor, minmax):
pals = defaultdict(set)
for i in range(min_factor, max_factor+1):
for j in range(min_factor, max_factor+1):
p = i * j
if i... | <|file_sep|>palindrome-products/palindrome_products.py.diff
original:
updated:
import random
<|file_sep|>original/palindrome-products/palindrome_products.py
def smallest_palindrome(max_factor, min_factor=0):
return _palindromes(max_factor, min_factor, min)
def _palindromes(max_factor, min_factor, minmax):
p... | c81393a8de27595f61cffc09fa6fa8352bb54b9c | palindrome-products/palindrome_products.py | palindrome-products/palindrome_products.py | Python |
<|file_sep|>original/modules/pipestrconcat.py
"""This source builds a string.
Keyword arguments:
context -- pipeline context
_INPUT -- source generator
conf:
part -- parts
Yields (_OUTPUT):
string
"""
for item in _INPUT:
s = ""
for part in conf['part... |
Keyword arguments:
context -- pipeline context
_INPUT -- source generator
conf:
part -- parts
Yields (_OUTPUT):
string
"""
if not isinstance(conf['part'], list): #todo do we need to do this anywhere else?
conf['part'] = [conf['part']]
for item in _INPUT:... | <|file_sep|>original/modules/pipestrconcat.py
"""This source builds a string.
Keyword arguments:
context -- pipeline context
_INPUT -- source generator
conf:
part -- parts
Yields (_OUTPUT):
string
"""
for item in _INPUT:
s = ""
for part in conf['part... | 3b8dd8c41e78146a1d3914e03f99ce89b1624d26 | modules/pipestrconcat.py | modules/pipestrconcat.py | Python |
<|file_sep|>src/logging-event.js.diff
original:
constructor(categoryName, level, message, exception, logger) {
updated:
constructor(categoryName, level, message, exception) {
<|file_sep|>original/src/logging-event.js
class LoggingEvent {
constructor(categoryName, level, message, exception, logger) {
this.cate... | class LoggingEvent {
constructor(categoryName, level, message, exception) {
this.categoryName = categoryName;
this.level = level;
this.message = message;
this.exception = exception;
this.startTime = new Date();
}
}
export default LoggingEvent; | <|file_sep|>src/logging-event.js.diff
original:
constructor(categoryName, level, message, exception, logger) {
updated:
constructor(categoryName, level, message, exception) {
<|file_sep|>original/src/logging-event.js
class LoggingEvent {
constructor(categoryName, level, message, exception, logger) {
this.cate... | b33291cd62fa61fc73efbb3b644d0333b8ce27c4 | src/logging-event.js | src/logging-event.js | JavaScript |
<|file_sep|>args-server-tcp6.pl.diff
original:
# The syslogd passes it via IPv4 TCP to an explicit loghost.
updated:
# The syslogd passes it via IPv6 TCP to an explicit loghost.
<|file_sep|>args-server-tcp6.pl.diff
original:
# Check that syslogd and server log contain 127.0.0.1 address.
updated:
# Check that syslogd an... | use warnings;
use Socket;
our %args = (
syslogd => {
loghost => '@tcp://[::1]:$connectport',
loggrep => {
qr/Logging to FORWTCP \@tcp:\/\/\[::1\]:\d+/ => '>=4',
get_testlog() => 1,
},
},
server => {
listen => { domain => AF_INET6, protocol => "tcp", addr => "::1" },
loggrep => {
qr/list... | <|file_sep|>args-server-tcp6.pl.diff
original:
# The syslogd passes it via IPv4 TCP to an explicit loghost.
updated:
# The syslogd passes it via IPv6 TCP to an explicit loghost.
<|file_sep|>args-server-tcp6.pl.diff
original:
# Check that syslogd and server log contain 127.0.0.1 address.
updated:
# Check that syslogd an... | c4ced229565871757565d9eddafd44c1ca50cedd | args-server-tcp6.pl | args-server-tcp6.pl | Perl |
<|file_sep|>original/tww.gemspec
spec.authors = ['Daniel Libanori']
spec.email = ['daniel.libanori@clicksign.com']
spec.summary = 'Send SMS from TWW provider'
spec.homepage = 'https://github.com/clicksign/tww'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split... | spec.authors = ['Daniel Libanori']
spec.email = ['daniel.libanori@clicksign.com']
spec.summary = 'Send SMS from TWW provider'
spec.homepage = 'https://github.com/clicksign/tww'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^... | <|file_sep|>original/tww.gemspec
spec.authors = ['Daniel Libanori']
spec.email = ['daniel.libanori@clicksign.com']
spec.summary = 'Send SMS from TWW provider'
spec.homepage = 'https://github.com/clicksign/tww'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split... | 021ce1eed8856dbea08f4b5b8c316bba9eecd9fe | tww.gemspec | tww.gemspec | Ruby |
<|file_sep|>README.md.diff
original:
Molecule
updated:
Molecule (name will change soon)
<|file_sep|>README.md.diff
original:
*Current status*: Just in a demo state right now.
updated:
*Current status*: Building core functionality
Example Project: https://github.com/fervorous/goalboard
<|file_sep|>README.md.diff
origin... | A batteries included fullstack framework to build modern apps and progressive web apps.
Feature (so far):
----
1. Universal React
2. Auto generated GraphQL based on your postgres schema
3. Server and client rendered GraphQL
4. CSS Modules
5. Hot reloading
How to Run the Example?
---
1. create a database in postgre... | <|file_sep|>README.md.diff
original:
Molecule
updated:
Molecule (name will change soon)
<|file_sep|>README.md.diff
original:
*Current status*: Just in a demo state right now.
updated:
*Current status*: Building core functionality
Example Project: https://github.com/fervorous/goalboard
<|file_sep|>README.md.diff
origin... | b0431d7ecdda4d094852d687ace695012e15ee25 | README.md | README.md | Markdown |
<|file_sep|>anypytools/__init__.py.diff
original:
from anypytools.abcutils import AnyPyProcess
updated:
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
<|file_sep|>original/anypytools/__init__.py
from anypytools.macroutils import AnyMacro
from anypytools import macro_commands
logger = logging.getLogg... | from anypytools.macroutils import AnyMacro
from anypytools import macro_commands
logger = logging.getLogger('abt.anypytools')
logger.addHandler(logging.NullHandler())
__all__ = [
'datautils', 'h5py_wrapper', 'AnyPyProcess', 'AnyMacro', 'macro_commands',
'print_versions', 'execute_anybodycon',
]
__version__... | <|file_sep|>anypytools/__init__.py.diff
original:
from anypytools.abcutils import AnyPyProcess
updated:
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
<|file_sep|>original/anypytools/__init__.py
from anypytools.macroutils import AnyMacro
from anypytools import macro_commands
logger = logging.getLogg... | 0683645a2fb2323a9534d985005d843aada66040 | anypytools/__init__.py | anypytools/__init__.py | Python |
<|file_sep|>original/tensorflow/security/advisory/tfsa-2018-001.md
## TFSA-2018-001: BMP File Parser Out-of-bounds Read.
### CVE Number
CVE-2018-7574
### Issue Description
The BMP (bitmap image file graphics format) decoder had an out-of-bounds read
due to insufficient checking of header sizes and signed integer va... | ## TFSA-2018-001: BMP File Parser Out-of-bounds Read.
### CVE Number
CVE-2018-21233
### Issue Description
The BMP (bitmap image file graphics format) decoder had an out-of-bounds read
due to insufficient checking of header sizes and signed integer values.
### Impact
The most likely consequence of this vulnerabil... | <|file_sep|>original/tensorflow/security/advisory/tfsa-2018-001.md
## TFSA-2018-001: BMP File Parser Out-of-bounds Read.
### CVE Number
CVE-2018-7574
### Issue Description
The BMP (bitmap image file graphics format) decoder had an out-of-bounds read
due to insufficient checking of header sizes and signed integer va... | df0ee2d05e0b9a214bc3a5f9b3b6ccc1f8c9422b | tensorflow/security/advisory/tfsa-2018-001.md | tensorflow/security/advisory/tfsa-2018-001.md | Markdown |
<|file_sep|>original/security-utils/src/main/java/com/yahoo/security/KeyStoreType.java
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.KeyStoreException;
/**
* @author bjorncs
*/
public enum KeyStoreType {
JKS {
KeyStore createKeystore() throws KeyStore... |
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.KeyStoreException;
/**
* @author bjorncs
*/
public enum KeyStoreType {
JKS {
KeyStore createKeystore() throws KeyStoreException {
return KeyStore.getInstance("JKS");
}
},
PKCS12... | <|file_sep|>original/security-utils/src/main/java/com/yahoo/security/KeyStoreType.java
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.KeyStoreException;
/**
* @author bjorncs
*/
public enum KeyStoreType {
JKS {
KeyStore createKeystore() throws KeyStore... | 3de8278ac6baf34c48e895c7f6e4904e38f32808 | security-utils/src/main/java/com/yahoo/security/KeyStoreType.java | security-utils/src/main/java/com/yahoo/security/KeyStoreType.java | Java |
<|file_sep|>original/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml
<|file_sep|>current/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml
<|file_sep|>updated/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml | # Test parser settings
---
- Statement: SELECT true||false
- output: [[truefalse]]
---
- Statement: SET parserDoubleQuoted TO 'string'
---
- Statement: SET parserInfixBit TO "true"
---
- Statement: SET parserInfixLogical TO "true"
---
- Statement: SELECT 1|2
- output: [[3]]
---
- Statement: SELECT true||false
- output:... | <|file_sep|>original/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml
<|file_sep|>current/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml
<|file_sep|>updated/src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml
# Test parser settin... | 6b92337922774ea9c27c973340de1ac8fcba55d2 | src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml | src/test/resources/com/akiban/sql/pg/yaml/functional/test-parser-settings.yaml | YAML |
<|file_sep|>original/web/app_dev.php
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(... |
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['... | <|file_sep|>original/web/app_dev.php
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(... | 19f87d42f2c12fef9fb24f8abf896e6e8258ac2f | web/app_dev.php | web/app_dev.php | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.