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|>devServer.js.diff
original:
var address = process.env.STRIPES_IFACE || 'localhost';
updated:
var host = process.env.STRIPES_IFACE || 'localhost';
<|file_sep|>devServer.js.diff
original:
app.listen(port, address, function(err) {
updated:
app.listen(port, host, function(err) {
<|file_sep|>original/devServer.j... | app.use(express.static(__dirname + '/public'));
app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
}));
app.use(require('webpack-hot-middleware')(compiler));
app.get('*', function(req, res) {
res.sendFile(path.join(__dirname, 'index.html'));
});
app.listen... | <|file_sep|>devServer.js.diff
original:
var address = process.env.STRIPES_IFACE || 'localhost';
updated:
var host = process.env.STRIPES_IFACE || 'localhost';
<|file_sep|>devServer.js.diff
original:
app.listen(port, address, function(err) {
updated:
app.listen(port, host, function(err) {
<|file_sep|>original/devServer.j... | ab6f5396b2ac609b095bf18335841e9e227791c7 | devServer.js | devServer.js | JavaScript |
<|file_sep|>original/README.md
===================
Heroku buildpack to install Python applications using
[conda](http://conda.pydata.org) and [pip](https://pypi.python.org).
1. List package requirements in a `conda-requirements.txt` file in the root of
the project. You can use `conda list -e` to get the info.
2. O... | [conda](http://conda.pydata.org) and [pip](https://pypi.python.org).
1. List package requirements in a `conda-requirements.txt` file in the root of
the project. You can use `conda list -e` to get the info.
2. Optionally, list any non-default conda channels in a `conda-channels.txt`
file.
3. Optionally, list any ... | <|file_sep|>original/README.md
===================
Heroku buildpack to install Python applications using
[conda](http://conda.pydata.org) and [pip](https://pypi.python.org).
1. List package requirements in a `conda-requirements.txt` file in the root of
the project. You can use `conda list -e` to get the info.
2. O... | 8994951d19c20df9953ab15f98c420565f513abe | README.md | README.md | Markdown |
<|file_sep|>scrapi/harvesters/dryad.py.diff
original:
updated:
from __future__ import unicode_literals
<|file_sep|>scrapi/harvesters/dryad.py.diff
original:
from __future__ import unicode_literals
updated:
from lxml import etree
import logging
<|file_sep|>scrapi/harvesters/dryad.py.diff
original:
updated:
logger = ... |
class DryadHarvester(OAIHarvester):
short_name = 'dryad'
long_name = 'Dryad Data Repository'
url = 'http://www.datadryad.org/oai/request'
base_url = 'http://www.datadryad.org/oai/request'
property_list = ['rights', 'format', 'relation', 'date',
'identifier', 'type', 'setSpec']... | <|file_sep|>scrapi/harvesters/dryad.py.diff
original:
updated:
from __future__ import unicode_literals
<|file_sep|>scrapi/harvesters/dryad.py.diff
original:
from __future__ import unicode_literals
updated:
from lxml import etree
import logging
<|file_sep|>scrapi/harvesters/dryad.py.diff
original:
updated:
logger = ... | 1d6c17e5adc3df4de86636ef77fc0a406bf065e9 | scrapi/harvesters/dryad.py | scrapi/harvesters/dryad.py | Python |
<|file_sep|>original/create/javascript/inject.js
var createEditor;
var author;
function injectCreate(id) {
$("#" + id).load("create/html/createHTML", function() {
injectCreateEditor();
// Generate a random number from 1 to 10000
author = Math.floor((Math.random() * 10000) + 1);
});
}
funct... | var createEditor;
var author;
function injectCreate(id) {
$("#" + id).load("create/html/createHTML", function() {
injectCreateEditor();
// Check to see if we already have an author ID
if (localStorage.getItem('author')) {
// Reuse the same author ID
author = localStorage.getItem('todos');
}
... | <|file_sep|>original/create/javascript/inject.js
var createEditor;
var author;
function injectCreate(id) {
$("#" + id).load("create/html/createHTML", function() {
injectCreateEditor();
// Generate a random number from 1 to 10000
author = Math.floor((Math.random() * 10000) + 1);
});
}
funct... | 036d0100f56f90d4a0d83d360ff8455006055aa2 | create/javascript/inject.js | create/javascript/inject.js | JavaScript |
<|file_sep|>original/README.md
# [Alpha Social Club](http://alphasocialclub.com) -- Social Software Development
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but i... | # [Alpha Social Club](http://alphasocialclub.com)
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to reli... | <|file_sep|>original/README.md
# [Alpha Social Club](http://alphasocialclub.com) -- Social Software Development
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but i... | a69975c5a7e3589e67be92de52fd88a4343d347e | README.md | README.md | Markdown |
<|file_sep|>original/dashboards/oracledb/README.md
### Dashboards for Oracle Database
#### Notes
- This dashboard is based on Google's [Ops Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent).
- The full list of metrics supported by the Ops Agent can be found [here](https://cloud.google.com/s... | ### Dashboards for Oracle Database
#### Notes
- This dashboard is based on Google's [Ops Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent).
- The full list of metrics supported by the Ops Agent can be found [here](https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-pa... | <|file_sep|>original/dashboards/oracledb/README.md
### Dashboards for Oracle Database
#### Notes
- This dashboard is based on Google's [Ops Agent](https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent).
- The full list of metrics supported by the Ops Agent can be found [here](https://cloud.google.com/s... | 5f8b139e6c48f09923625026d78988105c7898ec | dashboards/oracledb/README.md | dashboards/oracledb/README.md | Markdown |
<|file_sep|>original/source/index.html.slim
title: CI2Go The CircleCI Client for iPhone and iPad
---
.wrap
object type="image/svg+xml" data=asset_url("logo.svg", "images") width="100%" height="100%"
.text
h1 CI2Go
h2
span The CircleCI Client
span for iPhone and iPad
p.caption
==... | title: CI2Go The CircleCI Client for iPhone and iPad
---
.wrap
object type="image/svg+xml" data=asset_url("logo.svg", "images") width="100%" height="100%"
.text
h1 CI2Go
h2
span The CircleCI Client
span for iPhone and iPad
p.caption
== link_to 'http://bit.ly/ci2go-appstore' do
... | <|file_sep|>original/source/index.html.slim
title: CI2Go The CircleCI Client for iPhone and iPad
---
.wrap
object type="image/svg+xml" data=asset_url("logo.svg", "images") width="100%" height="100%"
.text
h1 CI2Go
h2
span The CircleCI Client
span for iPhone and iPad
p.caption
==... | b42df17cdb5975c3bab2384782e5e48d15ef46d5 | source/index.html.slim | source/index.html.slim | Slim |
<|file_sep|>original/packages/ty/typesafe-precure.yaml
<|file_sep|>current/packages/ty/typesafe-precure.yaml
<|file_sep|>updated/packages/ty/typesafe-precure.yaml | homepage: https://github.com/igrep/typesafe-precure#readme
changelog-type: ''
hash: 58403ff9d96f158ee67d4d9d538acf36fe23cb026d48af8c6f541f93df1f2fa1
test-bench-deps:
typesafe-precure: -any
base: -any
hspec: -any
maintainer: whosekiteneverfly@gmail.com
synopsis: Type-safe transformations and purifications of PreCu... | <|file_sep|>original/packages/ty/typesafe-precure.yaml
<|file_sep|>current/packages/ty/typesafe-precure.yaml
<|file_sep|>updated/packages/ty/typesafe-precure.yaml
homepage: https://github.com/igrep/typesafe-precure#readme
changelog-type: ''
hash: 58403ff9d96f158ee67d4d9d538acf36fe23cb026d48af8c6f541f93df1f2fa1
test-b... | 77a8e20fedeb2b6bcec76f5601ac971111a19b8c | packages/ty/typesafe-precure.yaml | packages/ty/typesafe-precure.yaml | YAML |
<|file_sep|>original/.github/workflows/changelog-linker.yml
name: "Changelog linker"
on:
push:
branches:
- main
jobs:
changelo-linker:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.4
steps:
- name: "Checkout"
uses: actions/checkout@v2.3.3
... | name: "Changelog linker"
on:
push:
branches:
- main
jobs:
changelog-linker:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.4
steps:
- name: "Checkout"
uses: actions/checkout@v2.3.3
- name: "Install PHP with extensions" | <|file_sep|>original/.github/workflows/changelog-linker.yml
name: "Changelog linker"
on:
push:
branches:
- main
jobs:
changelo-linker:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.4
steps:
- name: "Checkout"
uses: actions/checkout@v2.3.3
... | f50ac1c7fda6522ae276b3f83ed09ce76491792b | .github/workflows/changelog-linker.yml | .github/workflows/changelog-linker.yml | YAML |
<|file_sep|>original/requirements.txt
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.0
numpy==1.15.3
python-dateutil==2.7.5
PyYAML==3.13
requests>=2.20.0
singledispatch==3.4.0.3
six==1.11.0
tornado==5.1.1
urllib3==1.24
Werkzeug==0.14.1
pandas==0.23.4
scipy==1.1.0
astropy==3.0.4
matplotlib==3.0.0
git+https://github.com/... | itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.0
numpy==1.15.3
python-dateutil==2.7.5
PyYAML==3.13
requests>=2.20.0
singledispatch==3.4.0.3
six==1.11.0
tornado==5.1.1
urllib3==1.24
Werkzeug==0.14.1
pandas==0.23.4
scipy==1.1.0
astropy==3.0.5
matplotlib==3.0.0
git+https://github.com/mpld3/mpld3@master
tables==3.4.4
apsch... | <|file_sep|>original/requirements.txt
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.0
numpy==1.15.3
python-dateutil==2.7.5
PyYAML==3.13
requests>=2.20.0
singledispatch==3.4.0.3
six==1.11.0
tornado==5.1.1
urllib3==1.24
Werkzeug==0.14.1
pandas==0.23.4
scipy==1.1.0
astropy==3.0.4
matplotlib==3.0.0
git+https://github.com/... | aa33b13986d8aa2a1feb1a73357204e930fa0793 | requirements.txt | requirements.txt | Text |
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
install:
- "pip install -r requirements.txt"
script: "py.test"
deploy:
provider: "heroku"
api_key:
secure: "wYkuNGIT0OUdnV9FMUqpWhQQvaL+pOe1iQqv... | language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
install:
- "pip install -r requirements.txt"
script: "py.test"
deploy:
provider: "heroku"
api_key:
secure: "wYkuNGIT0OUdnV9FMUqpWhQQvaL+pOe1iQqviG85t5H1iSOlU0JPhytKPQv9Qmb+dmqBqbRgjo//pQybRkG7B3TiAcBCEZW+enPRMqgUYyf+h7GMxB6sUJ... | <|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
install:
- "pip install -r requirements.txt"
script: "py.test"
deploy:
provider: "heroku"
api_key:
secure: "wYkuNGIT0OUdnV9FMUqpWhQQvaL+pOe1iQqv... | 0155445a267ba06f236a753f9501383e1546756a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
os:
- linux
cache: cargo
matrix:
allow-failures:
- rust: nightly
script:
- cargo test -vv --no-default-features --features=$FEATURE
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
- gfortran
<|file_sep|>current/.travis.yml
os:
-... |
os:
- linux
cache: cargo
matrix:
allow-failures:
- rust: nightly
script:
- cargo test
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
- gfortran | <|file_sep|>original/.travis.yml
os:
- linux
cache: cargo
matrix:
allow-failures:
- rust: nightly
script:
- cargo test -vv --no-default-features --features=$FEATURE
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
- gfortran
<|file_sep|>current/.travis.yml
os:
-... | 9ac6312fe65e2af273d08357f0aba29660196822 | .travis.yml | .travis.yml | YAML |
<|file_sep|>package.json.diff
original:
"dist": "npm run uglify"
updated:
"dist": "npm run uglify",
"lint": "eslint src"
<|file_sep|>original/package.json
"name": "streamable-js",
"version": "0.0.2",
"description": "A Node.js API for Streamable with Promises",
"main": "dist/index.js",
"scripts": {... | "main": "dist/index.js",
"scripts": {
"compile": "babel -d dist src",
"watch": "babel -w -d dist src",
"uglify": "babel --minified --compact true --no-comments -d dist src",
"dist": "npm run uglify",
"lint": "eslint src"
},
"author": "Deniz Dogan <deniz@dogan.se>",
"license": "MIT",
"dep... | <|file_sep|>package.json.diff
original:
"dist": "npm run uglify"
updated:
"dist": "npm run uglify",
"lint": "eslint src"
<|file_sep|>original/package.json
"name": "streamable-js",
"version": "0.0.2",
"description": "A Node.js API for Streamable with Promises",
"main": "dist/index.js",
"scripts": {... | 22bb6b2bf9792998180b8eb07824c341f17b514d | package.json | package.json | JSON |
<|file_sep|>metadata/com.kolloware.hypezigapp.yml.diff
original:
updated:
- versionName: '1.2'
versionCode: 12
commit: v1.2
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/com.kolloware.hypezigapp.yml
WebSite: https://gitlab.com/intergalacticsuperhero/hypezig
SourceCode: https://gitlab... | Repo: https://gitlab.com/intergalacticsuperhero/hypezig.git
Builds:
- versionName: '1.1'
versionCode: 11
commit: v1.1
subdir: app
gradle:
- yes
- versionName: '1.2'
versionCode: 12
commit: v1.2
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags... | <|file_sep|>metadata/com.kolloware.hypezigapp.yml.diff
original:
updated:
- versionName: '1.2'
versionCode: 12
commit: v1.2
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/com.kolloware.hypezigapp.yml
WebSite: https://gitlab.com/intergalacticsuperhero/hypezig
SourceCode: https://gitlab... | e30ca2a677b31ca10ef899fd7fb26a0ea18d2bd4 | metadata/com.kolloware.hypezigapp.yml | metadata/com.kolloware.hypezigapp.yml | YAML |
<|file_sep|>original/package.json
"mr": "~0.12.6",
"collections": "~0.1.0",
"q": "~0.9.3",
"q-io": "~1.6.4",
"url2": "~0.0.0",
"semver": "~1.1",
"uglify-js": "~2.2.5",
"optimist": "~0.2.8",
"jsdom": "~0.6.0",
"csso": "~1.3.7",
"html-minifier": "~0.4.5"
},
"devDependencies... | "mr": "~0.12.6",
"collections": "~0.1.0",
"q": "~0.9.3",
"q-io": "~1.6.4",
"url2": "~0.0.0",
"semver": "~1.1",
"uglify-js": "~2.2.5",
"optimist": "~0.2.8",
"jsdom": "~0.6.0",
"csso": "~1.3.7",
"html-minifier": "~0.5.0"
},
"devDependencies": {
"jasmine-node": "~1.5.0",... | <|file_sep|>original/package.json
"mr": "~0.12.6",
"collections": "~0.1.0",
"q": "~0.9.3",
"q-io": "~1.6.4",
"url2": "~0.0.0",
"semver": "~1.1",
"uglify-js": "~2.2.5",
"optimist": "~0.2.8",
"jsdom": "~0.6.0",
"csso": "~1.3.7",
"html-minifier": "~0.4.5"
},
"devDependencies... | e9d3241ebaf788e747316e3f6fd3ae3064b81b9c | package.json | package.json | JSON |
<|file_sep|>src/managers/DBManager.php.diff
original:
public static $tableName = '{{%modelhistory}}';
updated:
public $tableName = '{{%modelhistory}}';
<|file_sep|>src/managers/DBManager.php.diff
original:
$table = isset($this->tableName) ? $this->tableName : $this::$tableName;
updated:
<|file_sep|>or... | * @var string
*/
public static $db = 'db';
/**
* @param array $data
*/
public function saveField($data)
{
self::getDB()->createCommand()
->insert($this->tableName, $data)->execute();
}
/**
* @return object Return database connection
* @throws \... | <|file_sep|>src/managers/DBManager.php.diff
original:
public static $tableName = '{{%modelhistory}}';
updated:
public $tableName = '{{%modelhistory}}';
<|file_sep|>src/managers/DBManager.php.diff
original:
$table = isset($this->tableName) ? $this->tableName : $this::$tableName;
updated:
<|file_sep|>or... | d7e1193d050fd8f8cff170f51f2257ce43cf838f | src/managers/DBManager.php | src/managers/DBManager.php | PHP |
<|file_sep|>app/src/main/java/com/pr0gramm/app/services/config/Config.java.diff
original:
updated:
import android.support.annotation.Keep;
<|file_sep|>original/app/src/main/java/com/pr0gramm/app/services/config/Config.java
}
@Value.Default
public boolean searchUsingTagService() {
return false;
... |
@Value.Default
public boolean searchUsingTagService() {
return false;
}
@Value.Default
public boolean secretSanta() {
return false;
}
@Value.Default
public AdType adType() {
return AdType.NONE;
}
@Keep
public enum AdType {
NONE, FEED, MAIN;... | <|file_sep|>app/src/main/java/com/pr0gramm/app/services/config/Config.java.diff
original:
updated:
import android.support.annotation.Keep;
<|file_sep|>original/app/src/main/java/com/pr0gramm/app/services/config/Config.java
}
@Value.Default
public boolean searchUsingTagService() {
return false;
... | 03852bd02f483fa15c918db8dbebf4cdaa47d4fa | app/src/main/java/com/pr0gramm/app/services/config/Config.java | app/src/main/java/com/pr0gramm/app/services/config/Config.java | Java |
<|file_sep|>original/net.go
Layers []Layer
}
/*
func NewFFNet (filePath string) *FFNet {
f := FFNet{}
//f.Layers = make([]InputLayer, 1) // Change to interface{}
_, err := ioutil.ReadFile(filePath)
if err != nil {
panic("failed to load" + filePath)
}
return (&f)
}
*/
func FromJso... | Layers []Layer
}
func NewFFNet (filepath string) (*FFNet, error) {
b, err := ioutil.ReadFile(filepath)
if err != nil {
panic(err)
}
ff := FFNet{}
return &ff, json.Unmarshal(b, &ff)
}
/*
func (ff *FFNet) ToJson (jsonStr string) error {
var data = &ff.Layers
}
*/
/* | <|file_sep|>original/net.go
Layers []Layer
}
/*
func NewFFNet (filePath string) *FFNet {
f := FFNet{}
//f.Layers = make([]InputLayer, 1) // Change to interface{}
_, err := ioutil.ReadFile(filePath)
if err != nil {
panic("failed to load" + filePath)
}
return (&f)
}
*/
func FromJso... | 330e205512f849e85a0e01e7c82246eb5aac5927 | net.go | net.go | Go |
<|file_sep|>original/pkgs/top-level/guile-2-test.nix
/* The package list below was obtained with:
cat top-level/all-packages.nix \
| grep -B3 'guile[^=]*$' \
| grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*=' \
| sed -es'/^[[:blank:]]*\(.\+\)[[:blank:]]*=.*$/\1= linux;/g'
with some m... | /* The package list below was obtained with:
cat top-level/all-packages.nix \
| grep -B3 'guile[^=]*$' \
| grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*=' \
| sed -es'/^[[:blank:]]*\(.\+\)[[:blank:]]*=.*$/\1= linux;/g'
with some minor edits.
*/
guile = linux;
lsh = linux;
... | <|file_sep|>original/pkgs/top-level/guile-2-test.nix
/* The package list below was obtained with:
cat top-level/all-packages.nix \
| grep -B3 'guile[^=]*$' \
| grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*=' \
| sed -es'/^[[:blank:]]*\(.\+\)[[:blank:]]*=.*$/\1= linux;/g'
with some m... | e263837a86ea59431ee305d9c34a5f5ed99da806 | pkgs/top-level/guile-2-test.nix | pkgs/top-level/guile-2-test.nix | Nix |
<|file_sep|>original/app/Exceptions/Handler.php
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
if ($e insta... |
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
// Convert model not found exceptions to 404 not found excep... | <|file_sep|>original/app/Exceptions/Handler.php
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
if ($e insta... | 28f96556be3b1dab96374ee4b58edf6b076f4e45 | app/Exceptions/Handler.php | app/Exceptions/Handler.php | PHP |
<|file_sep|>original/Cargo.toml
[package]
name = "type-directed-tdd-rust"
version = "0.1.0"
authors = ["Franklin Chen <franklinchen@franklinchen.com>"]
description = "Code for FizzBuzz talk"
documentation = "http://rust-ci.org/FranklinChen/type-directed-tdd-rust/doc/fizzbuzz"
homepage = "https://github.com/FranklinChe... | [package]
name = "type-directed-tdd-rust"
version = "0.1.0"
authors = ["Franklin Chen <franklinchen@franklinchen.com>"]
description = "Code for FizzBuzz talk"
documentation = "http://rust-ci.org/FranklinChen/type-directed-tdd-rust/doc/fizzbuzz/"
homepage = "https://github.com/FranklinChen/type-directed-tdd-rust"
repos... | <|file_sep|>original/Cargo.toml
[package]
name = "type-directed-tdd-rust"
version = "0.1.0"
authors = ["Franklin Chen <franklinchen@franklinchen.com>"]
description = "Code for FizzBuzz talk"
documentation = "http://rust-ci.org/FranklinChen/type-directed-tdd-rust/doc/fizzbuzz"
homepage = "https://github.com/FranklinChe... | 6553d071e888a0d11de50ee0395573dc0112b984 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>android/src/main/scala/com/michalrus/helper/ScalaActivity.scala.diff
original:
updated:
import scala.concurrent.{ExecutionContext, future}
import ExecutionContext.Implicits.global
<|file_sep|>original/android/src/main/scala/com/michalrus/helper/ScalaActivity.scala
package com.michalrus.helper
import andro... | package com.michalrus.helper
import android.app.Activity
import scala.concurrent.{ExecutionContext, future}
import ExecutionContext.Implicits.global
trait ScalaActivity extends Activity with ViewHelper {
def find[T](id: Int) = findViewById(id).asInstanceOf[T]
def laterOnUiThread(r: Runnable) {
future {
... | <|file_sep|>android/src/main/scala/com/michalrus/helper/ScalaActivity.scala.diff
original:
updated:
import scala.concurrent.{ExecutionContext, future}
import ExecutionContext.Implicits.global
<|file_sep|>original/android/src/main/scala/com/michalrus/helper/ScalaActivity.scala
package com.michalrus.helper
import andro... | 4d6d6a82ce0dcef95ecc35fc21b5428d7a634627 | android/src/main/scala/com/michalrus/helper/ScalaActivity.scala | android/src/main/scala/com/michalrus/helper/ScalaActivity.scala | Scala |
<|file_sep|>original/roles/urmel.rb
name "urmel"
description "Master role applied to urmel"
default_attributes(
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "10.0.0.6"
},
:external_i... | name "urmel"
description "Master role applied to urmel"
default_attributes(
:chef => {
:client => {
:version => "12.1.2-1"
}
},
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "10... | <|file_sep|>original/roles/urmel.rb
name "urmel"
description "Master role applied to urmel"
default_attributes(
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "10.0.0.6"
},
:external_i... | 4309a773e76135f90d089f7693212558ccbcda7f | roles/urmel.rb | roles/urmel.rb | Ruby |
<|file_sep|>original/requirements.txt
molecule==2.15.0
pytest==3.6.1
python-vagrant==0.5.15
testinfra==1.14.0
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.15.0
pytest==3.6.1
python-vagrant==0.5.15
testinfra==1.14.0
tox==3.0.0
<|file_sep|>updated/requirements.txt | molecule==2.15.0
pytest==3.6.2
python-vagrant==0.5.15
testinfra==1.14.0
tox==3.0.0 | <|file_sep|>original/requirements.txt
molecule==2.15.0
pytest==3.6.1
python-vagrant==0.5.15
testinfra==1.14.0
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.15.0
pytest==3.6.1
python-vagrant==0.5.15
testinfra==1.14.0
tox==3.0.0
<|file_sep|>updated/requirements.txt
molecule==2.15.0
pytest==3.6.2
python-vagr... | 94b89d670713e6cfb5f88d0b9c1eca51ae12772f | requirements.txt | requirements.txt | Text |
<|file_sep|>components/ArticleImage.vue.diff
original:
<img src="https://d21yo20tm8bmc2.cloudfront.net/2019/wedding-sign-700w.jpeg">
<figcaption>
The wedding was held out doors at a beautiful wooded venue in southern Tennessee.
updated:
<cld-image
:public-id="publicId"
:width="width"
... | quality="auto"
/>
<figcaption v-if="caption">
{{ caption }}
</figcaption>
</figure>
</template>
<script>
export default {
props: {
publicId: {
type: String,
required: true,
},
width: {
type: String,
default: '',
},
height: {
type: String, | <|file_sep|>components/ArticleImage.vue.diff
original:
<img src="https://d21yo20tm8bmc2.cloudfront.net/2019/wedding-sign-700w.jpeg">
<figcaption>
The wedding was held out doors at a beautiful wooded venue in southern Tennessee.
updated:
<cld-image
:public-id="publicId"
:width="width"
... | d5ef5d6ead9195915ca3d42e8029019c86e97bc7 | components/ArticleImage.vue | components/ArticleImage.vue | Vue |
<|file_sep|>app/assets/javascripts/controllers/NavController.js.diff
original:
function NavController($scope, Auth) {
updated:
function NavController($scope, $state, Auth) {
<|file_sep|>app/assets/javascripts/controllers/NavController.js.diff
original:
$scope.$on()('devise:logout', function (e, user) {
updated:
$sc... | $scope.user = user;
});
$scope.$on('devise:new-registration', function (e, user) {
$scope.user = user;
});
$scope.$on('devise:login', function (e, user) {
$scope.user = user;
});
$scope.$on('devise:logout', function (e, user) {
$scope.user = {};
$state.go('home');
});
}
NavControll... | <|file_sep|>app/assets/javascripts/controllers/NavController.js.diff
original:
function NavController($scope, Auth) {
updated:
function NavController($scope, $state, Auth) {
<|file_sep|>app/assets/javascripts/controllers/NavController.js.diff
original:
$scope.$on()('devise:logout', function (e, user) {
updated:
$sc... | 41c4683e6b4c967aaeaa6a676dd252b6182dea52 | app/assets/javascripts/controllers/NavController.js | app/assets/javascripts/controllers/NavController.js | JavaScript |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.gradle
before_install:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export ES_VERSION=$(if [[ ${BRANCH} == es-* ]] ; then echo ... | language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.gradle
before_install:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export ES_VERSION=$(if [[ ${BRANCH} == es-* ]] ; then echo ${BRANCH}; else echo $(curl https... | <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.gradle
before_install:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export ES_VERSION=$(if [[ ${BRANCH} == es-* ]] ; then echo ... | c586c26cb173e1648ab70d92dec0002c6ed51935 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb
csrf_token: -> { Rack::Csrf.token(request.env) },
csrf_metatag: -> { Rack::Csrf.metatag(request.env) },
csrf_tag: -> { Rack::Csrf.tag(request.env) },
)
end
end
end
module Vie... | csrf_token: -> { Rack::Csrf.token(request.env) },
csrf_metatag: -> { Rack::Csrf.metatag(request.env) },
csrf_tag: -> { Rack::Csrf.tag(request.env) },
)
end
end
end
module View
module RequestMethods
def view(name, overrides = {})
... | <|file_sep|>original/lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb
csrf_token: -> { Rack::Csrf.token(request.env) },
csrf_metatag: -> { Rack::Csrf.metatag(request.env) },
csrf_tag: -> { Rack::Csrf.tag(request.env) },
)
end
end
end
module Vie... | 585a38c6907ccfa8b33f9914d206aec1d19ed5f1 | lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb | lib/dry/web/roda/skeletons/umbrella/lib/roda_plugins.rb | Ruby |
<|file_sep|>original/app/assets/javascripts/modules/moj.wordcount.js
}else {
$counterBox.addClass('error');
$counter.html('(' + (charsLeft * -1) + ' extra)');
}
};
var $textarea = $(o);
var limit = $textarea.data('limit');
var $counterBox = $(
'<p cla... | }else {
$counterBox.addClass('error');
$counter.html('(' + (charsLeft * -1) + ' extra)');
}
};
var $textarea = $(o);
var limit = $textarea.data('limit');
var $counterBox = $(
'<p class="textarea-word-count form-hint">' +
'Maximum ' + limit + '... | <|file_sep|>original/app/assets/javascripts/modules/moj.wordcount.js
}else {
$counterBox.addClass('error');
$counter.html('(' + (charsLeft * -1) + ' extra)');
}
};
var $textarea = $(o);
var limit = $textarea.data('limit');
var $counterBox = $(
'<p cla... | 1479e514d857ca8dab0bccbe0ef52999e397a330 | app/assets/javascripts/modules/moj.wordcount.js | app/assets/javascripts/modules/moj.wordcount.js | JavaScript |
<|file_sep|>src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx.diff
original:
const isNewMetricsEnabled = uiConfig.flags.V;
updated:
const isEnterprise = uiConfig.flags.E;
<|file_sep|>original/src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
import ConditionallyRender from ... | import ConditionallyRender from '../../../common/ConditionallyRender';
import EnvironmentMetricComponent from '../EnvironmentMetricComponent/EnvironmentMetricComponent';
const FeatureMetrics = () => {
const styles = useStyles();
const { projectId, featureId } = useParams<IFeatureViewParams>();
const { feat... | <|file_sep|>src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx.diff
original:
const isNewMetricsEnabled = uiConfig.flags.V;
updated:
const isEnterprise = uiConfig.flags.E;
<|file_sep|>original/src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
import ConditionallyRender from ... | da74d3ac15ac83672f95792838bb1eeeb529aa32 | src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx | src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx | TypeScript |
<|file_sep|>original/src/main/java/com/jolocom/webidproxy/LoginServlet.java
String username = request.getParameter("username");
String password = request.getParameter("password");
User user = WebIDProxyServlet.users.get(username);
if (user == null || ! BCrypt.checkpw(password, user.getPassword())) {
this... | String username = request.getParameter("username");
String password = request.getParameter("password");
User user = WebIDProxyServlet.users.get(username);
if (user == null || ! BCrypt.checkpw(password, user.getPassword())) {
this.error(request, response, HttpServletResponse.SC_BAD_REQUEST, "User " + usern... | <|file_sep|>original/src/main/java/com/jolocom/webidproxy/LoginServlet.java
String username = request.getParameter("username");
String password = request.getParameter("password");
User user = WebIDProxyServlet.users.get(username);
if (user == null || ! BCrypt.checkpw(password, user.getPassword())) {
this... | c15b0fbce6a43374b07c1d597611e68785b0ee69 | src/main/java/com/jolocom/webidproxy/LoginServlet.java | src/main/java/com/jolocom/webidproxy/LoginServlet.java | Java |
<|file_sep|>original/.travis.yml
language: go
sudo: false
go:
- "1.11.4"
- "1.12"
- "1.13"
- "tip"
before_install:
- export PATH=$HOME/gopath/bin:$PATH
- go get github.com/mattn/goveralls
- go get github.com/modocache/gover
script:
- go test -race ./...
- go test -coverprofile=sarah.coverprofile .
... | language: go
sudo: false
go:
- "1.11.4"
- "1.12"
- "1.13"
- "1.14"
- "tip"
before_install:
- export PATH=$HOME/gopath/bin:$PATH
- go get github.com/mattn/goveralls
- go get github.com/modocache/gover
script:
- go test -race ./...
- go test -coverprofile=sarah.coverprofile .
- go test -coverprof... | <|file_sep|>original/.travis.yml
language: go
sudo: false
go:
- "1.11.4"
- "1.12"
- "1.13"
- "tip"
before_install:
- export PATH=$HOME/gopath/bin:$PATH
- go get github.com/mattn/goveralls
- go get github.com/modocache/gover
script:
- go test -race ./...
- go test -coverprofile=sarah.coverprofile .
... | 724d7d68d5935653719905070df03741c83d88ca | .travis.yml | .travis.yml | YAML |
<|file_sep|>gradle/wrapper/gradle-wrapper.properties.diff
original:
#Tue Nov 12 13:09:38 CET 2013
updated:
#Mon Dec 09 10:57:17 CET 2013
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
#Tue Nov 12 13:09:38 CET 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_H... | #Mon Dec 09 10:57:17 CET 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip | <|file_sep|>gradle/wrapper/gradle-wrapper.properties.diff
original:
#Tue Nov 12 13:09:38 CET 2013
updated:
#Mon Dec 09 10:57:17 CET 2013
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
#Tue Nov 12 13:09:38 CET 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_H... | 54cf3743bd562687150e7034cfb5a6e3c2e3dc28 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/client/planner-nav/style.css
nav {
background-color: var(--gray);
background-image: url(v3.png);
background-repeat: no-repeat;
background-size: auto 28px;
background-position: 4px 8px;
height: 44px;
cursor: pointer;
width: 320px;
position: absolute;
top: 0;
}
nav h3 {
margin... |
nav {
background-color: var(--gray);
/*background-image: url(v3.png); for production*/
background-repeat: no-repeat;
background-size: auto 28px;
background-position: 4px 8px;
height: 44px;
cursor: pointer;
width: 320px;
position: absolute;
top: 0;
}
nav h3 {
margin: 0 8px 0 0;
line-height: 44p... | <|file_sep|>original/client/planner-nav/style.css
nav {
background-color: var(--gray);
background-image: url(v3.png);
background-repeat: no-repeat;
background-size: auto 28px;
background-position: 4px 8px;
height: 44px;
cursor: pointer;
width: 320px;
position: absolute;
top: 0;
}
nav h3 {
margin... | 3da244b50f8834266cc534fc80881452b50a3626 | client/planner-nav/style.css | client/planner-nav/style.css | CSS |
<|file_sep|>original/app/views/home/show.html.erb
<% set_meta_tags(canonical: root_url,
alternate: alternate_home_map,
title: t('.title'),
description: t('.description').strip) %>
<%= heading_tag t('layouts.base.title'), class: 'visually-hidden' %>
<%= ren... | title: t('.title'),
description: t('.description').strip) %>
<%= heading_tag t('layouts.base.title'), class: 'visually-hidden' %>
<%= render 'shared/trust_banner' %>
<div class="l-home-directory">
<div class="l-constrained">
<%= render 'shared/directory', items: categor... | <|file_sep|>original/app/views/home/show.html.erb
<% set_meta_tags(canonical: root_url,
alternate: alternate_home_map,
title: t('.title'),
description: t('.description').strip) %>
<%= heading_tag t('layouts.base.title'), class: 'visually-hidden' %>
<%= ren... | cf1c99f9b359dfa79f2b6a77f56c9087fcfe6eaa | app/views/home/show.html.erb | app/views/home/show.html.erb | HTML+ERB |
<|file_sep|>original/app/js/app/directives/PodCarousel.js
scope: true,
restrict: "A",
templateUrl: "/partials/pod_carousel.html",
link: function(scope, element, attrs) {
scope.startPod = 0;
scope.pods = api.pods.get();
scope.pods.$promise.then(function(){
Array.prototype.sort.call(scope... | scope: true,
restrict: "A",
templateUrl: "/partials/pod_carousel.html",
link: function(scope, element, attrs) {
scope.startPod = 0;
scope.pods = api.pods.get();
scope.pods.$promise.then(function(){
Array.prototype.sort.call(scope.pods,function(a,b) { return a.id < b.id; });
});
... | <|file_sep|>original/app/js/app/directives/PodCarousel.js
scope: true,
restrict: "A",
templateUrl: "/partials/pod_carousel.html",
link: function(scope, element, attrs) {
scope.startPod = 0;
scope.pods = api.pods.get();
scope.pods.$promise.then(function(){
Array.prototype.sort.call(scope... | a47987ee41ad39d7a93344ae89ed88ea8cc012b3 | app/js/app/directives/PodCarousel.js | app/js/app/directives/PodCarousel.js | JavaScript |
<|file_sep|>original/db/migrate/20200114203042_add_missing_platform_info.rb
class AddMissingPlatformInfo < ActiveRecord::Migration
def up
runs = Run.joins(:sequence_run).where('runs.platform_id IS NULL AND sequence_runs.platform_id IS NOT NULL').pluck(:id)
puts "Found #{runs.count} runs with missing platform ... | class AddMissingPlatformInfo < ActiveRecord::Migration
def up
runs = Run.joins(:sequence_run).where('runs.platform_id IS NULL AND sequence_runs.platform_id IS NOT NULL').pluck(:id)
puts "Found #{runs.count} runs with missing platform info"
runs.each do |run_id|
run = Run.find(run_id)
run.updat... | <|file_sep|>original/db/migrate/20200114203042_add_missing_platform_info.rb
class AddMissingPlatformInfo < ActiveRecord::Migration
def up
runs = Run.joins(:sequence_run).where('runs.platform_id IS NULL AND sequence_runs.platform_id IS NOT NULL').pluck(:id)
puts "Found #{runs.count} runs with missing platform ... | 1c9ca004a34d0b6ab49722485cc933ac18ec9e4e | db/migrate/20200114203042_add_missing_platform_info.rb | db/migrate/20200114203042_add_missing_platform_info.rb | Ruby |
<|file_sep|>original/src/discordcr/client.cr
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = gateway.url
url += "?v=6&encoding=json"
@websocket = HTTP::WebSocket.new(URI.parse(url))
@websocke... |
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = gateway.url
url += "?v=6&encoding=json"
@websocket = HTTP::WebSocket.new(URI.parse(url))
@websocket.not_nil!.on_message(&->on_message(String)) ... | <|file_sep|>original/src/discordcr/client.cr
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = gateway.url
url += "?v=6&encoding=json"
@websocket = HTTP::WebSocket.new(URI.parse(url))
@websocke... | 32e2ee6a17762d39374215a0509b91411b8bd9b9 | src/discordcr/client.cr | src/discordcr/client.cr | Crystal |
<|file_sep|>.github/workflows/ruby.yml.diff
original:
updated:
- name: Start Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 6
<|file_sep|>original/.github/workflows/ruby.yml
postgres:
image: postgres
env:
POST... | --health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Start Elasticsearch
us... | <|file_sep|>.github/workflows/ruby.yml.diff
original:
updated:
- name: Start Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 6
<|file_sep|>original/.github/workflows/ruby.yml
postgres:
image: postgres
env:
POST... | 35e0e1cd42cdab713291fff9c05234fd296d68bd | .github/workflows/ruby.yml | .github/workflows/ruby.yml | YAML |
<|file_sep|>remo/remozilla/admin.py.diff
original:
updated:
kwargs = {}
<|file_sep|>original/remo/remozilla/admin.py
from remo.remozilla.models import Bug, Status
def encode_bugzilla_strings(modeladmin, request, queryset):
for obj in queryset:
fields = ['component', 'summary', 'whiteboard', 'sta... |
from remo.remozilla.models import Bug, Status
def encode_bugzilla_strings(modeladmin, request, queryset):
for obj in queryset:
kwargs = {}
fields = ['component', 'summary', 'whiteboard', 'status', 'resolution', 'first_comment']
for field in fields:
kwargs[field] = smart_text(g... | <|file_sep|>remo/remozilla/admin.py.diff
original:
updated:
kwargs = {}
<|file_sep|>original/remo/remozilla/admin.py
from remo.remozilla.models import Bug, Status
def encode_bugzilla_strings(modeladmin, request, queryset):
for obj in queryset:
fields = ['component', 'summary', 'whiteboard', 'sta... | 3d8bca4c8f5065342dd2f4c140cc792b2e2d94a1 | remo/remozilla/admin.py | remo/remozilla/admin.py | Python |
<|file_sep|>original/build.sbt
crossScalaVersions := Seq("2.12.3", "2.11.11", "2.10.6")
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
)
publishTo := {
val host = "https://flow.artifactoryonline.com/flow"
if (is... |
crossScalaVersions := Seq("2.12.3", "2.11.11", "2.10.6")
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
)
publishTo := {
val host = "https://flow.artifactoryonline.com/flow"
if (isSnapshot.value) {
Some("Art... | <|file_sep|>original/build.sbt
crossScalaVersions := Seq("2.12.3", "2.11.11", "2.10.6")
lazy val root = project
.in(file("."))
.settings(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
)
publishTo := {
val host = "https://flow.artifactoryonline.com/flow"
if (is... | 005428dfdaf254c61610da72be3e811987b90427 | build.sbt | build.sbt | Scala |
<|file_sep|>original/package.json
],
"author": "Alexander R <alexander.rogalsky@yandex.ru> (https://linkedin.com/in/alexander-rogalsky-985a4828)",
"license": "MIT",
"bugs": {
"url": "https://github.com/AlexRogalskiy/Test/issues"
},
"homepage": "https://github.com/AlexRogalskiy/Test#readme",
"dependenc... | "license": "MIT",
"bugs": {
"url": "https://github.com/AlexRogalskiy/Test/issues"
},
"homepage": "https://github.com/AlexRogalskiy/Test#readme",
"dependencies": {
"jsonfile": "2.3.1",
"unique-random-array": "1.0.0"
},
"devDependencies": {
"chai": "3.5.0",
"commitizen": "2.8.2",
"cz... | <|file_sep|>original/package.json
],
"author": "Alexander R <alexander.rogalsky@yandex.ru> (https://linkedin.com/in/alexander-rogalsky-985a4828)",
"license": "MIT",
"bugs": {
"url": "https://github.com/AlexRogalskiy/Test/issues"
},
"homepage": "https://github.com/AlexRogalskiy/Test#readme",
"dependenc... | f7b111bad8da1d6d3a5cde1ef2c147051fe12dc8 | package.json | package.json | JSON |
<|file_sep|>original/_config_prod.yml
environment: production
baseurl: http://cppsamples.com
highlighter: pygments
exclude: ['README.md', 'LICENSE.txt', 'Gemfile']
gems:
- jekyll-compass
<|file_sep|>current/_config_prod.yml
environment: production
baseurl: http://cppsamples.com
highlighter: pygments
exclude: ['README.m... | environment: production
baseurl: http://www.cppsamples.com
highlighter: pygments
exclude: ['README.md', 'LICENSE.txt', 'Gemfile']
gems:
- jekyll-compass | <|file_sep|>original/_config_prod.yml
environment: production
baseurl: http://cppsamples.com
highlighter: pygments
exclude: ['README.md', 'LICENSE.txt', 'Gemfile']
gems:
- jekyll-compass
<|file_sep|>current/_config_prod.yml
environment: production
baseurl: http://cppsamples.com
highlighter: pygments
exclude: ['README.m... | 2c0c47b1a02569cd50db26f5cdbf41796b18e460 | _config_prod.yml | _config_prod.yml | YAML |
<|file_sep|>original/service-feedback/pom.xml
<parent>
<groupId>fi.nls.oskari</groupId>
<artifactId>oskari-parent</artifactId>
<version>1.57.0-SNAPSHOT</version>
</parent>
<groupId>fi.nls.oskari.service</groupId>
<artifactId>oskari-feedback</artifactId>
<packaging>jar</packag... | <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>f... | <|file_sep|>original/service-feedback/pom.xml
<parent>
<groupId>fi.nls.oskari</groupId>
<artifactId>oskari-parent</artifactId>
<version>1.57.0-SNAPSHOT</version>
</parent>
<groupId>fi.nls.oskari.service</groupId>
<artifactId>oskari-feedback</artifactId>
<packaging>jar</packag... | ed374cf3fe1af227d3424561091d3701209348fa | service-feedback/pom.xml | service-feedback/pom.xml | XML |
<|file_sep|>appveyor.yml.diff
original:
updated:
- ps: Install-Product node "0.10"
- git clone -q https://github.com/Pyrax/node-pawn-scanner.git c:\tools\scanner
<|file_sep|>appveyor.yml.diff
original:
- cmd: cd c:\samp\bin && compile.bat
updated:
- cd c:\samp\bin && compile.bat
after_build:
- cd... |
- provider: FTP
server:
username:
password:
folder:
enable_ssl: false
artifact: web-files
# other branches are executed in the development environment
-
version: 1.{build}
# clone directory
clone_folder: c:\samp
# install (after repo cloning)
install:
... | <|file_sep|>appveyor.yml.diff
original:
updated:
- ps: Install-Product node "0.10"
- git clone -q https://github.com/Pyrax/node-pawn-scanner.git c:\tools\scanner
<|file_sep|>appveyor.yml.diff
original:
- cmd: cd c:\samp\bin && compile.bat
updated:
- cd c:\samp\bin && compile.bat
after_build:
- cd... | b5cd4eba3ee9e1635fc4c3b7ef4542921dce1391 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/src/dialog.component.ts
this.observer = observer;
return ()=>{
this.close();
}
});
}
/**
* Closes dialog
*/
close():void {
this.dialogService.removeDialog(this);
}
/**
* OnDestroy handler
*/
ngOnDestroy(): void {
this.observer.next(thi... | this.close();
}
});
}
/**
* Closes dialog
*/
close():void {
this.dialogService.removeDialog(this);
}
/**
* OnDestroy handler
*/
ngOnDestroy(): void {
if(this.observer) {
this.observer.next(this.result);
}
}
} | <|file_sep|>original/src/dialog.component.ts
this.observer = observer;
return ()=>{
this.close();
}
});
}
/**
* Closes dialog
*/
close():void {
this.dialogService.removeDialog(this);
}
/**
* OnDestroy handler
*/
ngOnDestroy(): void {
this.observer.next(thi... | 88173702b109460959c708143bec0a3d5437fca8 | src/dialog.component.ts | src/dialog.component.ts | TypeScript |
<|file_sep|>src/router.jsx.diff
original:
import { Route, Redirect, useLocation } from 'react-router-dom';
updated:
import { Route, Redirect, useLocation, Switch } from 'react-router-dom';
<|file_sep|>original/src/router.jsx
function Router() {
const { pathname } = useLocation();
return (
<App>
<Route ex... |
function Router() {
const { pathname } = useLocation();
return (
<App>
<Switch>
<Route exact path="/" component={secure(PageHome)} />
<Route
exact
path="/questionnaire/:id"
component={secure(PageQuestionnaire)}
/>
<Route
exact
... | <|file_sep|>src/router.jsx.diff
original:
import { Route, Redirect, useLocation } from 'react-router-dom';
updated:
import { Route, Redirect, useLocation, Switch } from 'react-router-dom';
<|file_sep|>original/src/router.jsx
function Router() {
const { pathname } = useLocation();
return (
<App>
<Route ex... | 32cd0aef497cbd78784f5ecdbcccebc124cd1602 | src/router.jsx | src/router.jsx | JSX |
<|file_sep|>original/package.json
{
"name": "react-native-button",
"version": "1.5.0",
"description": "A button for React apps",
"main": "Button.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/ide/react-native... | {
"name": "react-native-button",
"version": "1.6.0",
"description": "A button for React apps",
"main": "Button.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/ide/react-native-button.git"
},
"keywords": [
... | <|file_sep|>original/package.json
{
"name": "react-native-button",
"version": "1.5.0",
"description": "A button for React apps",
"main": "Button.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/ide/react-native... | 33e4fbaceab858edae05a31bd110c6df04165a64 | package.json | package.json | JSON |
<|file_sep|>ci_environment/apt/recipes/default.rb.diff
original:
updated:
execute "apt-get -y autoclean autoremove" do
action :nothing
end
<|file_sep|>original/ci_environment/apt/recipes/default.rb
# See the License for the specific language governing permissions and
# limitations under the License.
#
execute "apt-... | execute "apt-get update" do
action :run
end
execute "apt-get -y autoclean autoremove" do
action :nothing
end
template "/etc/apt/sources.list" do
source "sources.list.erb"
notifies :run, resources(:execute => "apt-get update"), :immediately
# cleans up at the end of Chef run
notifies :run, resources(:execu... | <|file_sep|>ci_environment/apt/recipes/default.rb.diff
original:
updated:
execute "apt-get -y autoclean autoremove" do
action :nothing
end
<|file_sep|>original/ci_environment/apt/recipes/default.rb
# See the License for the specific language governing permissions and
# limitations under the License.
#
execute "apt-... | 9f39ec6f956dd455e5f15f2be0e7f19b1cdf50bf | ci_environment/apt/recipes/default.rb | ci_environment/apt/recipes/default.rb | Ruby |
<|file_sep|>original/docker-compose.yml
container_name: redis_local
ports:
- "6379:6379"
restart: on-failure:10
command: redis-server
dedenne:
build: .
container_name: dedenne_local
ports:
- "4567:4567"
environment:
SKL_HOST: https://www.skilllane.com
AWS_S3_ACCESS_KEY_ID: ${AWS_S3_ACCE... | container_name: redis_local
ports:
- "6379:6379"
restart: on-failure:10
command: redis-server
dedenne:
build: .
container_name: dedenne_local
ports:
- "4567:4567"
environment:
HOST: https://www.skilllane.com
AWS_S3_ACCESS_KEY_ID: ${AWS_S3_ACCESS_KEY_ID}
AWS_S3_SECRET_ACCESS_KEY: ${A... | <|file_sep|>original/docker-compose.yml
container_name: redis_local
ports:
- "6379:6379"
restart: on-failure:10
command: redis-server
dedenne:
build: .
container_name: dedenne_local
ports:
- "4567:4567"
environment:
SKL_HOST: https://www.skilllane.com
AWS_S3_ACCESS_KEY_ID: ${AWS_S3_ACCE... | f5254cdd27938dde177af82320f94deb337f59b0 | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>original/test/mock/campuses.js
(function (undefined) {
'use strict';
var mock = function ($httpBackend, fxCampuses) {
$httpBackend.when('GET', '/api/campuses').respond(fxCampuses);
$httpBackend.when('GET', '/api/campuses/1').respond(fxCampuses.objects[0]);
};
if (module !== undefined && module.exports... | (function (undefined) {
'use strict';
var mock = function ($httpBackend, fxCampuses) {
$httpBackend.when('GET', '/api/campuses').respond(fxCampuses);
fxCampuses.objects.forEach(function (campus) {
$httpBackend.when('GET', '/api/campuses/' + campus.id).respond(campus);
});
};
if (module !== undefined && modu... | <|file_sep|>original/test/mock/campuses.js
(function (undefined) {
'use strict';
var mock = function ($httpBackend, fxCampuses) {
$httpBackend.when('GET', '/api/campuses').respond(fxCampuses);
$httpBackend.when('GET', '/api/campuses/1').respond(fxCampuses.objects[0]);
};
if (module !== undefined && module.exports... | 8329c1a0dbaf03a8b3451d722d793f6cbe6527ef | test/mock/campuses.js | test/mock/campuses.js | JavaScript |
<|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
end
def create
render 'new'
end
def delete
end
end
<|file_sep|>current/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
end
def c... | class SessionsController < ApplicationController
def new
end
def create
user = User.find_by(email: params[:session][:email].downcase)
if user && user.authenticate(params[:session][:password])
# Sign in user and redirect to user page
else
flash[:danger] = 'Invalid email/password combinat... | <|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
end
def create
render 'new'
end
def delete
end
end
<|file_sep|>current/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
end
def c... | 5644f1aab997e753ad4c3d47941e7b182603010a | app/controllers/sessions_controller.rb | app/controllers/sessions_controller.rb | Ruby |
<|file_sep|>original/.github/workflows/jdks.yml
<|file_sep|>current/.github/workflows/jdks.yml
<|file_sep|>updated/.github/workflows/jdks.yml | name: JDK
on:
push:
paths:
- '.github/workflows/jdks.yml'
- 'install-jdk.sh'
jobs:
ea:
name: 'JDK ea'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: source install-jdk.sh --dry-run | <|file_sep|>original/.github/workflows/jdks.yml
<|file_sep|>current/.github/workflows/jdks.yml
<|file_sep|>updated/.github/workflows/jdks.yml
name: JDK
on:
push:
paths:
- '.github/workflows/jdks.yml'
- 'install-jdk.sh'
jobs:
ea:
name: 'JDK ea'
runs-on: ubuntu-latest
steps:
- uses: ac... | f519c1ade7ea4d424c18c037781e9cae52980731 | .github/workflows/jdks.yml | .github/workflows/jdks.yml | YAML |
<|file_sep|>geotrek/feedback/management/commands/erase_emails.py.diff
original:
# def add_arguments(self, parser):
# parser.add_argument('sample', nargs='+')
updated:
def add_arguments(self, parser):
parser.add_argument('-d', '--days',
help="Erase mails older than DAY... |
def add_arguments(self, parser):
parser.add_argument('-d', '--days',
help="Erase mails older than DAYS (default: %(default)s)",
type=int,
default=365)
parser.add_argument('--dry-run',
act... | <|file_sep|>geotrek/feedback/management/commands/erase_emails.py.diff
original:
# def add_arguments(self, parser):
# parser.add_argument('sample', nargs='+')
updated:
def add_arguments(self, parser):
parser.add_argument('-d', '--days',
help="Erase mails older than DAY... | 96b4040e3508d55abf1857209e9820cff7ab3478 | geotrek/feedback/management/commands/erase_emails.py | geotrek/feedback/management/commands/erase_emails.py | Python |
<|file_sep|>original/metadata.rb
name 'visualstudio'
maintainer 'Shawn Neal'
maintainer_email 'sneal@daptiv.com'
license 'Apache 2.0'
description 'Installs/Configures Visual Studio 2012'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
dep... | name 'visualstudio'
maintainer 'Shawn Neal'
maintainer_email 'sneal@daptiv.com'
license 'Apache 2.0'
description 'Installs/Configures Visual Studio 2012'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version (ENV['BUILD_NUMBER'] ? "0.0.#{ENV['BUILD_NUMBER']}" :... | <|file_sep|>original/metadata.rb
name 'visualstudio'
maintainer 'Shawn Neal'
maintainer_email 'sneal@daptiv.com'
license 'Apache 2.0'
description 'Installs/Configures Visual Studio 2012'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
dep... | 2025c6a82e753595950b1fd99dbc7d0101b9b436 | metadata.rb | metadata.rb | Ruby |
<|file_sep|>original/_config.yml
title: John Doe
description: > # this means to ignore newlines until "baseurl:"
I am John Doe & I really like to take pictures. Below you'll find some of my work & links to find me elsewhere on the internet.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://yourdomain.c... | title: John Doe
description: > # this means to ignore newlines until "baseurl:"
I am John Doe & I really like to take pictures. Below you'll find some of my work & links to find me elsewhere on the internet.
baseurl: "/" # the subpath of your site, e.g. /blog
url: "https://yourdomain.com" # the base hostname & protoc... | <|file_sep|>original/_config.yml
title: John Doe
description: > # this means to ignore newlines until "baseurl:"
I am John Doe & I really like to take pictures. Below you'll find some of my work & links to find me elsewhere on the internet.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://yourdomain.c... | 939bb389ca417d6103e774b003d01871a5b6b972 | _config.yml | _config.yml | YAML |
<|file_sep|>original/shoop/core/migrations/0028_roundingbehaviorcomponent.py
class Migration(migrations.Migration):
dependencies = [
('shoop', '0027_contact_group_behavior'),
]
operations = [
migrations.CreateModel(
name='RoundingBehaviorComponent',
fields=[
... |
class Migration(migrations.Migration):
dependencies = [
('shoop', '0027_contact_group_behavior'),
]
operations = [
migrations.CreateModel(
name='RoundingBehaviorComponent',
fields=[
('servicebehaviorcomponent_ptr', models.OneToOneField(parent_link=T... | <|file_sep|>original/shoop/core/migrations/0028_roundingbehaviorcomponent.py
class Migration(migrations.Migration):
dependencies = [
('shoop', '0027_contact_group_behavior'),
]
operations = [
migrations.CreateModel(
name='RoundingBehaviorComponent',
fields=[
... | 6c7c02f9f0c8d39d5c6b12ad7285b6da54ebbea5 | shoop/core/migrations/0028_roundingbehaviorcomponent.py | shoop/core/migrations/0028_roundingbehaviorcomponent.py | Python |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- v5
- v4
- '0.12'
- '0.10'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- v5
- v4
- '0.12'
- '0.10'
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- v5
- v4 | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- v5
- v4
- '0.12'
- '0.10'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- v5
- v4
- '0.12'
- '0.10'
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- v5
- v4 | 5eb288e15f73ec2a94d41d1a48c110b3176a27d5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/UiIcon.vue
required: true
},
removeText: {
type: Boolean,
default: false
}
}
};
</script>
<style lang="stylus">
@import './styles/imports';
.ui-icon {
font-size: 24px;
width: 1em;
height: 1em;
display: inline-bloc... | },
removeText: {
type: Boolean,
default: false
}
}
};
</script>
<style lang="stylus">
@import './styles/imports';
.ui-icon {
font-size: 24px;
width: 1em;
height: 1em;
display: inline-block;
cursor: inherit;
vertical-align: middle;
}
</style> | <|file_sep|>original/src/UiIcon.vue
required: true
},
removeText: {
type: Boolean,
default: false
}
}
};
</script>
<style lang="stylus">
@import './styles/imports';
.ui-icon {
font-size: 24px;
width: 1em;
height: 1em;
display: inline-bloc... | 12286d4159bd08dcc8db8e86fd5d863216991df2 | src/UiIcon.vue | src/UiIcon.vue | Vue |
<|file_sep|>original/gitconfig.erb
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
ui = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = mvim -f
[apply]
whitespace = nowarn
[format]
pret... | [user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
ui = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = mvim -f
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Cred%d %Creset%s
... | <|file_sep|>original/gitconfig.erb
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[color]
ui = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
editor = mvim -f
[apply]
whitespace = nowarn
[format]
pret... | 423956510d1e8696873d8ebd547024e0e127be8b | gitconfig.erb | gitconfig.erb | HTML+ERB |
<|file_sep|>original/test/test_rack_long_url.rb
<|file_sep|>current/test/test_rack_long_url.rb
<|file_sep|>updated/test/test_rack_long_url.rb | require_relative '../lib/bossan'
require 'test/unit'
require 'uri'
require 'net/http'
class RackSpecTest < Test::Unit::TestCase
ASSERT_RESPONSE = "Hello world!"
RESPONSE = ["Hello ", "world!"].freeze
DEFAULT_HOST = "localhost"
DEFAULT_PORT = 8000
class App
def call env
body = RESPONSE
[200,... | <|file_sep|>original/test/test_rack_long_url.rb
<|file_sep|>current/test/test_rack_long_url.rb
<|file_sep|>updated/test/test_rack_long_url.rb
require_relative '../lib/bossan'
require 'test/unit'
require 'uri'
require 'net/http'
class RackSpecTest < Test::Unit::TestCase
ASSERT_RESPONSE = "Hello world!"
RESPONSE ... | 0fc0663c5f47c4ee00c49c7ee22ca66d5c589393 | test/test_rack_long_url.rb | test/test_rack_long_url.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.8'
- '0.10'
before_install:
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'generator-zariz' ]; then cd .. && eval "mv $currentfolder generator-zariz" && cd generator-zariz; fi
<|file_sep|>current/.travis.yml
language: node_js
node_js:
-... | language: node_js
node_js:
- '0.10'
before_install:
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'generator-zariz' ]; then cd .. && eval "mv $currentfolder generator-zariz" && cd generator-zariz; fi
| <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.8'
- '0.10'
before_install:
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'generator-zariz' ]; then cd .. && eval "mv $currentfolder generator-zariz" && cd generator-zariz; fi
<|file_sep|>current/.travis.yml
language: node_js
node_js:
-... | 175bd063fa05b7dc6e9a0d81d530a5e693f2aa8f | .travis.yml | .travis.yml | YAML |
<|file_sep|>btdjango/__init__.py.diff
original:
VERSION = "1.0"
updated:
VERSION = "1.1"
<|file_sep|>original/btdjango/__init__.py
"""
Braintree Django Python Module
"""
import braintree
from django.conf import settings
VERSION = "1.0"
if not hasattr(braintree.Configuration, "merchant_id"):
braintree.Config... | """
Braintree Django Python Module
"""
import braintree
from django.conf import settings
VERSION = "1.1"
if not hasattr(braintree.Configuration, "merchant_id"):
braintree.Configuration.configure(
getattr(settings, "BRAINTREE_ENV", braintree.Environment.Sandbox),
getattr(settings, "BRAINTREE_... | <|file_sep|>btdjango/__init__.py.diff
original:
VERSION = "1.0"
updated:
VERSION = "1.1"
<|file_sep|>original/btdjango/__init__.py
"""
Braintree Django Python Module
"""
import braintree
from django.conf import settings
VERSION = "1.0"
if not hasattr(braintree.Configuration, "merchant_id"):
braintree.Config... | f46e91ae286dbc1dd86180d2920017d3222a48e2 | btdjango/__init__.py | btdjango/__init__.py | Python |
<|file_sep|>.travis.yml.diff
original:
language: objective-c
updated:
<|file_sep|>.travis.yml.diff
original:
xcode_project: TextFieldCounter/TextFieldCounter.xcodeproj
xcode_scheme: TextFieldCounter
osx_image: xcode8.2
xcode_sdk: iphonesimulator9.3
updated:
language:
- swift
osx_image: xcode11.2
<|file_sep|>ori... | before_install:
- sudo gem install xcpretty
branches:
only:
- master
language:
- swift
osx_image: xcode11.2
script:
- xcodebuild -scheme 'TextFieldCounter' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' build test | xcpretty -c
after_success:
- bash <(curl -s https... | <|file_sep|>.travis.yml.diff
original:
language: objective-c
updated:
<|file_sep|>.travis.yml.diff
original:
xcode_project: TextFieldCounter/TextFieldCounter.xcodeproj
xcode_scheme: TextFieldCounter
osx_image: xcode8.2
xcode_sdk: iphonesimulator9.3
updated:
language:
- swift
osx_image: xcode11.2
<|file_sep|>ori... | c5f56c44f1f757df928755f64f40679971a85dfd | .travis.yml | .travis.yml | YAML |
<|file_sep|>test-fixtures/basic/foo/main.tf.diff
original:
updated:
provider "null" {
alias = "aliased"
}
<|file_sep|>original/test-fixtures/basic/foo/main.tf
variable "bar" {
type = "string"
}
variable "one" {
type = "string"
}
resource "null_resource" "foo" {
triggers = {
foo = "bar"
}
}
<|file_sep|... | variable "bar" {
type = "string"
}
variable "one" {
type = "string"
}
provider "null" {
alias = "aliased"
}
resource "null_resource" "foo" {
triggers = {
foo = "bar"
}
}
resource "null_resource" "aliased" {
provider = "null.aliased"
} | <|file_sep|>test-fixtures/basic/foo/main.tf.diff
original:
updated:
provider "null" {
alias = "aliased"
}
<|file_sep|>original/test-fixtures/basic/foo/main.tf
variable "bar" {
type = "string"
}
variable "one" {
type = "string"
}
resource "null_resource" "foo" {
triggers = {
foo = "bar"
}
}
<|file_sep|... | d81c59a02d8c6d48cd74b597662af9382a69c816 | test-fixtures/basic/foo/main.tf | test-fixtures/basic/foo/main.tf | HCL |
<|file_sep|>original/composer.json
"name": "wp-cli/wp-cli",
"description": "A command line interface for WordPress",
"keywords": [ "cli", "wordpress" ],
"homepage": "http://wp-cli.org",
"license": "MIT",
"bin": [
"bin/wp.bat", "bin/wp"
],
"require": {
"php": ">=5.3.2",
"wp-cli/php-cli-tools": "0.10.4",
... | "name": "wp-cli/wp-cli",
"description": "A command line interface for WordPress",
"keywords": [ "cli", "wordpress" ],
"homepage": "http://wp-cli.org",
"license": "MIT",
"bin": [
"bin/wp.bat", "bin/wp"
],
"require": {
"php": ">=5.3.2",
"wp-cli/php-cli-tools": "dev-master",
"mustache/mustache": "~2.4",
... | <|file_sep|>original/composer.json
"name": "wp-cli/wp-cli",
"description": "A command line interface for WordPress",
"keywords": [ "cli", "wordpress" ],
"homepage": "http://wp-cli.org",
"license": "MIT",
"bin": [
"bin/wp.bat", "bin/wp"
],
"require": {
"php": ">=5.3.2",
"wp-cli/php-cli-tools": "0.10.4",
... | 1a61b2b60986db813c2b209084de0e7e1aae78fc | composer.json | composer.json | JSON |
<|file_sep|>original/src/BmCalendar/DayStateInterface.php
<?php
namespace BmCalendar;
/**
* Implement this with different states to be attached to Days.
*
* @author Tom Oram <tom@scl.co.uk>
*/
interface DayStateInterface
{
/**
* A unique identifier for this state.
*
* @return string
*/
... | <?php
namespace BmCalendar;
/**
* Implement this with different states to be attached to Days.
*
* @author Tom Oram <tom@scl.co.uk>
*/
interface DayStateInterface
{
/**
* A unique identifier for this state.
*
* @return string
*/
public static function uid();
} | <|file_sep|>original/src/BmCalendar/DayStateInterface.php
<?php
namespace BmCalendar;
/**
* Implement this with different states to be attached to Days.
*
* @author Tom Oram <tom@scl.co.uk>
*/
interface DayStateInterface
{
/**
* A unique identifier for this state.
*
* @return string
*/
... | 7670e78bc92d5881d43719638218b0353011c2bd | src/BmCalendar/DayStateInterface.php | src/BmCalendar/DayStateInterface.php | PHP |
<|file_sep|>original/lib/sendvia/resources/base.rb
module Sendvia
class Base < ActiveResource::Base
self.include_format_in_path = false
REST_API_ENDPOINT = 'https://www.sendvia.co.uk/rest/alpha5/'
def self.activate_session session
self.site = REST_API_ENDPOINT
self.headers.merge! 'authorizati... | module Sendvia
class Base < ActiveResource::Base
self.include_format_in_path = false
self.primary_key = :Id
REST_API_ENDPOINT = 'https://www.sendvia.co.uk/rest/alpha5/'
def self.activate_session session
self.site = REST_API_ENDPOINT
self.headers.merge! 'authorization' => "Bearer #{sessio... | <|file_sep|>original/lib/sendvia/resources/base.rb
module Sendvia
class Base < ActiveResource::Base
self.include_format_in_path = false
REST_API_ENDPOINT = 'https://www.sendvia.co.uk/rest/alpha5/'
def self.activate_session session
self.site = REST_API_ENDPOINT
self.headers.merge! 'authorizati... | a4fe7dd7503b1f1f4320e92a3f4879422cc04195 | lib/sendvia/resources/base.rb | lib/sendvia/resources/base.rb | Ruby |
<|file_sep|>original/.travis.yml
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce=${DOCKER_VERSI... | - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce=${DOCKER_VERSION}
- sudo rm /usr/local/bin/docker-compose
-... | <|file_sep|>original/.travis.yml
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce=${DOCKER_VERSI... | 0cd2d10890135373761212502c0ec1e0a1c2a519 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/mysql_fuzzycount/admin.py
from django.contrib import admin
from mysql_fuzzycount.queryset import FuzzyCountQuerySet
class FuzzyCountModelAdminMixin(object):
def queryset(self, request):
qs = super(FuzzyCountModelAdminMixin, self).queryset(request)
return qs._clone(klass=Fuzz... | from django.contrib import admin
from mysql_fuzzycount.queryset import FuzzyCountQuerySet
class FuzzyCountModelAdminMixin(object):
def get_queryset(self, request):
qs = super(FuzzyCountModelAdminMixin, self).get_queryset(request)
return qs._clone(klass=FuzzyCountQuerySet)
class FuzzyCountModel... | <|file_sep|>original/mysql_fuzzycount/admin.py
from django.contrib import admin
from mysql_fuzzycount.queryset import FuzzyCountQuerySet
class FuzzyCountModelAdminMixin(object):
def queryset(self, request):
qs = super(FuzzyCountModelAdminMixin, self).queryset(request)
return qs._clone(klass=Fuzz... | fa108e8393632bad1a9dfc0e730bbd23fa6042c1 | mysql_fuzzycount/admin.py | mysql_fuzzycount/admin.py | Python |
<|file_sep|>.eslintrc.json.diff
original:
updated:
"plugin:import/electron",
<|file_sep|>original/.eslintrc.json
"plugin:flowtype/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.renderer.additions.js"
}
},
"import/core-modul... | "plugin:import/electron",
"plugin:flowtype/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.renderer.additions.js"
}
}
},
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"globals": {
"__st... | <|file_sep|>.eslintrc.json.diff
original:
updated:
"plugin:import/electron",
<|file_sep|>original/.eslintrc.json
"plugin:flowtype/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.renderer.additions.js"
}
},
"import/core-modul... | ac821a5e4db0b846ada440a0d87134f0285ec39a | .eslintrc.json | .eslintrc.json | JSON |
<|file_sep|>original/appveyor.yml
COVERALLS_TOKEN:
secure: 9e+vrJ65VDmTcwWipInm3fmWWnG1cLYLsoQHnKkroGtLHTkUvTJ9w8KwD12W0u0w
GITHUB_TOKEN:
secure: tohnGHbkou++U/1IejloBChnM+z8eK+cPOBbdgutCzD9QYWjnfhDTnO04+Xgk21Y
install:
- dotnet tool install -g Cake.Tool --version 0.34.1
build_script:
- dotnet cake build.... | COVERALLS_TOKEN:
secure: 9e+vrJ65VDmTcwWipInm3fmWWnG1cLYLsoQHnKkroGtLHTkUvTJ9w8KwD12W0u0w
GITHUB_TOKEN:
secure: tohnGHbkou++U/1IejloBChnM+z8eK+cPOBbdgutCzD9QYWjnfhDTnO04+Xgk21Y
install:
- dotnet tool install -g Cake.Tool --version 0.34.1
build_script:
- dotnet cake build.cake --verbosity=Verbose
test: of... | <|file_sep|>original/appveyor.yml
COVERALLS_TOKEN:
secure: 9e+vrJ65VDmTcwWipInm3fmWWnG1cLYLsoQHnKkroGtLHTkUvTJ9w8KwD12W0u0w
GITHUB_TOKEN:
secure: tohnGHbkou++U/1IejloBChnM+z8eK+cPOBbdgutCzD9QYWjnfhDTnO04+Xgk21Y
install:
- dotnet tool install -g Cake.Tool --version 0.34.1
build_script:
- dotnet cake build.... | b3f271b3ce6f9b25cc0c7cdcf423c030b810de74 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>Code/CLOS/additional-classes.lisp.diff
original:
(define-built-in-class sequence (t))
updated:
(define-built-in-class sequence (t)
())
<|file_sep|>Code/CLOS/additional-classes.lisp.diff
original:
(define-built-in-class list (sequence))
updated:
(define-built-in-class list (sequence)
())
<|file_sep|>Code... | (in-package #:sicl-clos)
(define-built-in-class sequence (t)
())
(define-built-in-class list (sequence)
())
(define-built-in-class symbol ()
((%name :initarg :name :reader symbol-name)
(%package :initarg :package :reader symbol-package)))
(define-built-in-class null (symbol list)
())
| <|file_sep|>Code/CLOS/additional-classes.lisp.diff
original:
(define-built-in-class sequence (t))
updated:
(define-built-in-class sequence (t)
())
<|file_sep|>Code/CLOS/additional-classes.lisp.diff
original:
(define-built-in-class list (sequence))
updated:
(define-built-in-class list (sequence)
())
<|file_sep|>Code... | f38c192e122d192bcf30d3d1b8cd80dbed53ed18 | Code/CLOS/additional-classes.lisp | Code/CLOS/additional-classes.lisp | Common Lisp |
<|file_sep|>original/python_scripts/requirements.txt
pysolr[tomcat]==3.0.6
dateutils
ipdb
lxml
flask
nltk
joblib
bitly_api
ipython[all]
psycopg2
choice
requests==2.2.1
thrift==0.9.1
<|file_sep|>current/python_scripts/requirements.txt
pysolr[tomcat]==3.0.6
dateutils
ipdb
lxml
flask
nltk
joblib
bitly_api
ipython[all]
psy... | pysolr[tomcat]==3.0.6
dateutils
ipdb
lxml
flask
nltk
joblib
bitly_api
ipython[all]
psycopg2
choice
requests==2.2.1
thrift==0.9.1
readability-lxml=0.3.0.5 | <|file_sep|>original/python_scripts/requirements.txt
pysolr[tomcat]==3.0.6
dateutils
ipdb
lxml
flask
nltk
joblib
bitly_api
ipython[all]
psycopg2
choice
requests==2.2.1
thrift==0.9.1
<|file_sep|>current/python_scripts/requirements.txt
pysolr[tomcat]==3.0.6
dateutils
ipdb
lxml
flask
nltk
joblib
bitly_api
ipython[all]
psy... | d328119d0c0f3d4673300a11ae53b0bc71cb012b | python_scripts/requirements.txt | python_scripts/requirements.txt | Text |
<|file_sep|>original/README.md
## Required Steps
### Increase speed load according to Google page speed insights #19
#### [Enable Compression](https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration#gzip-compression)
Location: /etc/nginx/nginx.conf
Inside http block:
```
gzip on;
gzip_di... | #### [Enable Compression](https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration#gzip-compression)
Location: /etc/nginx/nginx.conf
Inside http block:
```
gzip on;
gzip_disable "msie6";
gzip_comp_level 2;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
... | <|file_sep|>original/README.md
## Required Steps
### Increase speed load according to Google page speed insights #19
#### [Enable Compression](https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration#gzip-compression)
Location: /etc/nginx/nginx.conf
Inside http block:
```
gzip on;
gzip_di... | b3861840c405660ab7fce725f76f58d0cf43532e | README.md | README.md | Markdown |
<|file_sep|>original/app/index.jsx
import React from 'react';
import dataStore from './stores/dataStore';
import JscsModel from './models/JscsModel';
if (typeof window.__jscsData !== 'undefined') {
dataStore.setData(JscsModel.fromJSON(window.__jscsData));
}
import AppView from './views/AppView';
React.render(<Ap... | import React from 'react';
import dataStore from './stores/dataStore';
import JscsModel from './models/JscsModel';
if (typeof window.__jscsData !== 'undefined') {
dataStore.setData(JscsModel.fromJSON(window.__jscsData));
}
var AppView = require('./views/AppView');
React.render(<AppView />, document.getElementByI... | <|file_sep|>original/app/index.jsx
import React from 'react';
import dataStore from './stores/dataStore';
import JscsModel from './models/JscsModel';
if (typeof window.__jscsData !== 'undefined') {
dataStore.setData(JscsModel.fromJSON(window.__jscsData));
}
import AppView from './views/AppView';
React.render(<Ap... | cac92bef308f21d9fbd05546361f73139cfa56fd | app/index.jsx | app/index.jsx | JSX |
<|file_sep|>lib/index.js.diff
original:
updated:
var use = require("alamid-plugin/use.js");
<|file_sep|>lib/index.js.diff
original:
argv = require('minimist')(process.argv.slice(2));
updated:
argv = require("minimist")(process.argv.slice(2));
<|file_sep|>lib/index.js.diff
original:
function readDynamicConfig(... | catch (err) {
//handle only not found errors, throw the rest
if (err.code === "MODULE_NOT_FOUND") {
throw new Error("Config not found at '" + filePath + "'");
}
throw err;
}
return config;
};
dynamicConfig.options = {
defaultEnv: "develop",
log: false
... | <|file_sep|>lib/index.js.diff
original:
updated:
var use = require("alamid-plugin/use.js");
<|file_sep|>lib/index.js.diff
original:
argv = require('minimist')(process.argv.slice(2));
updated:
argv = require("minimist")(process.argv.slice(2));
<|file_sep|>lib/index.js.diff
original:
function readDynamicConfig(... | 47058708f45d5f22df203d6b8be8909192636e40 | lib/index.js | lib/index.js | JavaScript |
<|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
Be clear, concise and precise in your description of the problem.
updated:
*Be clear, concise and precise in your description of the problem.
<|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
complete sentences.
updated:
complete sentences.*
<|file_sep|>.github/IS... | *Be clear, concise and precise in your description of the problem.
Open an issue with a descriptive title and a summary in grammatically correct,
complete sentences.*
*Use the template below when reporting bugs. Please, make sure that
you're running the latest stable RuboCop and that the problem you're reporting
hasn'... | <|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
Be clear, concise and precise in your description of the problem.
updated:
*Be clear, concise and precise in your description of the problem.
<|file_sep|>.github/ISSUE_TEMPLATE.md.diff
original:
complete sentences.
updated:
complete sentences.*
<|file_sep|>.github/IS... | 3b349f515e2088a8ff2d6e4ca06fcf2008878048 | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | Markdown |
<|file_sep|>original/lib/voynich/active_record/models/data_key.rb
module Voynich
module ActiveRecord
class DataKey < ::ActiveRecord::Base
self.table_name_prefix = 'voynich_'
attr_writer :plaintext
has_many :values, class_name: "Voynich::ActiveRecord::Value"
validates :name, presence: tr... | module Voynich
module ActiveRecord
class DataKey < ::ActiveRecord::Base
self.table_name_prefix = 'voynich_'
attr_writer :plaintext
has_many :values, class_name: "Voynich::ActiveRecord::Value", dependent: :destroy
validates :name, presence: true, uniqueness: true
validates :cmk_id,... | <|file_sep|>original/lib/voynich/active_record/models/data_key.rb
module Voynich
module ActiveRecord
class DataKey < ::ActiveRecord::Base
self.table_name_prefix = 'voynich_'
attr_writer :plaintext
has_many :values, class_name: "Voynich::ActiveRecord::Value"
validates :name, presence: tr... | 7a035cf57673c9b153a726f278654a88e70f04a0 | lib/voynich/active_record/models/data_key.rb | lib/voynich/active_record/models/data_key.rb | Ruby |
<|file_sep|>original/gradle.properties
group=com.linecorp.centraldogma
version=0.39.3-SNAPSHOT
projectName=Central Dogma
projectUrl=https://line.github.io/centraldogma/
projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
authorName=LINE Corporation
... | group=com.linecorp.centraldogma
version=0.39.4-SNAPSHOT
projectName=Central Dogma
projectUrl=https://line.github.io/centraldogma/
projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
authorName=LINE Corporation
authorEmail=dl_oss_dev@linecorp.com
aut... | <|file_sep|>original/gradle.properties
group=com.linecorp.centraldogma
version=0.39.3-SNAPSHOT
projectName=Central Dogma
projectUrl=https://line.github.io/centraldogma/
projectDescription=Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
authorName=LINE Corporation
... | 94e4c01e090650b09a42c770b6e1d6b9efe08b95 | gradle.properties | gradle.properties | INI |
<|file_sep|>original/.travis.yml
language: rust
env:
global:
- secure: Ys5OhmpBC78RbiPr0bzpYeTv1k1huSp8OsiN1lRlHN4liLPFD3N870tMyFY4ZXfaF8ePpVGtaVDxWrxRPaRVeWHgmROiZLFTSSdOjSrTLvLSM30tC4f7FiPuE+um/GNWX4xlpaCNjJG0wOoKSB/WgM4DgNcqptsp76gKINXbRtw=
script:
- cargo build
- rustdoc src/lib.rs
after_script:
- curl ... | language: rust
env:
global:
- secure: Ys5OhmpBC78RbiPr0bzpYeTv1k1huSp8OsiN1lRlHN4liLPFD3N870tMyFY4ZXfaF8ePpVGtaVDxWrxRPaRVeWHgmROiZLFTSSdOjSrTLvLSM30tC4f7FiPuE+um/GNWX4xlpaCNjJG0wOoKSB/WgM4DgNcqptsp76gKINXbRtw=
script:
- cargo build
- cargo doc
after_script:
- curl http://www.rust-ci.org/artifacts/put?t=$RU... | <|file_sep|>original/.travis.yml
language: rust
env:
global:
- secure: Ys5OhmpBC78RbiPr0bzpYeTv1k1huSp8OsiN1lRlHN4liLPFD3N870tMyFY4ZXfaF8ePpVGtaVDxWrxRPaRVeWHgmROiZLFTSSdOjSrTLvLSM30tC4f7FiPuE+um/GNWX4xlpaCNjJG0wOoKSB/WgM4DgNcqptsp76gKINXbRtw=
script:
- cargo build
- rustdoc src/lib.rs
after_script:
- curl ... | bf1f4e2e905daff0eb029c515e0dd48c219cac7c | .travis.yml | .travis.yml | YAML |
<|file_sep|>README.md.diff
original:
iKeep is a standalone Mac OSX application for Google Keep.
updated:
iKeep is a standalone, hybrid Mac OSX desktop application for Google Keep.
<|file_sep|>original/README.md
#iKeep - Google Keep on the Mac
iKeep is a standalone Mac OSX application for Google Keep.
##Download
* Lat... | #iKeep - Google Keep on the Mac
iKeep is a standalone, hybrid Mac OSX desktop application for Google Keep.
##Download
* Latest release version
[1.0.0](https://github.com/leonardw/ikeep/blob/master/dist/iKeep-1.0.0.zip?raw=true)
##License
(The MIT License)
Copyright (c) 2014 Leonard Wu <leonard.wu92@alumni.ic.ac.u... | <|file_sep|>README.md.diff
original:
iKeep is a standalone Mac OSX application for Google Keep.
updated:
iKeep is a standalone, hybrid Mac OSX desktop application for Google Keep.
<|file_sep|>original/README.md
#iKeep - Google Keep on the Mac
iKeep is a standalone Mac OSX application for Google Keep.
##Download
* Lat... | fe2f6ebc36b1c6eca8b70e35f17951b01755c1ec | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: php
services:
- mysql
php:
- 5.6
- 7.2
- 7.3
- 7.4
install: composer install
before_script:
- composer validate --strict
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFI... | language: php
services:
- mysql
php:
- 5.6
- 7.2
- 7.3
- 7.4
- 8.0
install: composer install
before_script:
- composer validate --strict
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot... | <|file_sep|>original/.travis.yml
language: php
services:
- mysql
php:
- 5.6
- 7.2
- 7.3
- 7.4
install: composer install
before_script:
- composer validate --strict
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFI... | 2670a234e9b2c968436389745f272323574a0141 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/index.php
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>teodizzo</title>
<meta charset="UTF-8">
<meta ... | To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>teodizzo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial... | <|file_sep|>original/index.php
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>teodizzo</title>
<meta charset="UTF-8">
<meta ... | 5c0b78888c11180608964a094addbf56ff5057da | index.php | index.php | PHP |
<|file_sep|>original/README.md
# Meteor-Deployer
## Example
```
# Create a meteor app.
meteor create helloworld
# Create a folder to contain deployment info in the app. The name of the folder should start with a '.' to be excluded from the meteor build process.
cd helloworld; mkdir -p .deploy
# Enter the deployment f... | # Meteor-Deployer
## Example
```
# Create a meteor app.
meteor create helloworld
# Create a folder to contain deployment info in the app. The name of the folder should start with a '.' to be excluded from the meteor build process.
cd helloworld; mkdir -p .deploy
# Enter the deployment folder and initialize the config... | <|file_sep|>original/README.md
# Meteor-Deployer
## Example
```
# Create a meteor app.
meteor create helloworld
# Create a folder to contain deployment info in the app. The name of the folder should start with a '.' to be excluded from the meteor build process.
cd helloworld; mkdir -p .deploy
# Enter the deployment f... | 137c12892c04b936b036da83b829ab3bf72c2549 | README.md | README.md | Markdown |
<|file_sep|>original/bin/convert_js_to_xml.sh
#!/bin/bash
# Convert .jsflow scripts to .flow.
#SCRIPTDIR=$(cd $(dirname "$0") && pwd)
SCRIPTSDIR="$1"
# Convert jsflow files.
find "$SCRIPTSDIR" -name \*.jsflow |while read line; do
jsflowfile="$line"
jsflowdir=$(dirname "$jsflowfile")
jsflowname=$(basename "$jsflo... | #!/bin/bash
# Convert .jsflow scripts to .flow.
#SCRIPTDIR=$(cd $(dirname "$0") && pwd)
SCRIPTSDIR="$1"
# Convert jsflow files.
find "$SCRIPTSDIR" -name \*.jsflow |while read line; do
jsflowfile="$line"
jsflowdir=$(dirname "$jsflowfile")
jsflowname=$(basename "$jsflowfile" .jsflow)
flowdir="$jsflowdir/$jsflowna... | <|file_sep|>original/bin/convert_js_to_xml.sh
#!/bin/bash
# Convert .jsflow scripts to .flow.
#SCRIPTDIR=$(cd $(dirname "$0") && pwd)
SCRIPTSDIR="$1"
# Convert jsflow files.
find "$SCRIPTSDIR" -name \*.jsflow |while read line; do
jsflowfile="$line"
jsflowdir=$(dirname "$jsflowfile")
jsflowname=$(basename "$jsflo... | 13b1107e6bbf05c7bb9ff9521d4863e1d53df025 | bin/convert_js_to_xml.sh | bin/convert_js_to_xml.sh | Shell |
<|file_sep|>original/composer.json
"email": "svenluijten@outlook.com",
"homepage": "https://svenluijten.com",
"role": "Developer"
}
],
"require": {
"php" : "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.0",
"scrutinizer/ocula... | "email": "svenluijten@outlook.com",
"homepage": "https://svenluijten.com",
"role": "Developer"
}
],
"require": {
"php" : "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.0"
},
"autoload": {
"psr-4": {
"Sven\... | <|file_sep|>original/composer.json
"email": "svenluijten@outlook.com",
"homepage": "https://svenluijten.com",
"role": "Developer"
}
],
"require": {
"php" : "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.0",
"scrutinizer/ocula... | 79d22e932c2574979e7bc680dfd30f7e70eeb5d1 | composer.json | composer.json | JSON |
<|file_sep|>original/app/views/application/_footer.html.haml
%p
Copyright © #{Time.now.year} Sacha Chua -
- if session
- if mobile?
= link_to I18n.t('app.layout.full'), params.merge(:layout => 'full')
- else
= link_to I18n.t('app.layout.mobile'), params.merge(:l... | %p
Copyright © #{Time.now.year} Sacha Chua -
- if session
- if mobile?
= link_to I18n.t('app.layout.full'), params.merge(:layout => 'full')
- else
= link_to I18n.t('app.layout.mobile'), params.merge(:layout => 'mobile')
\-
= link_to "Privacy, terms... | <|file_sep|>original/app/views/application/_footer.html.haml
%p
Copyright © #{Time.now.year} Sacha Chua -
- if session
- if mobile?
= link_to I18n.t('app.layout.full'), params.merge(:layout => 'full')
- else
= link_to I18n.t('app.layout.mobile'), params.merge(:l... | 447749e75526d42042c8c72acc3031bfc60026e8 | app/views/application/_footer.html.haml | app/views/application/_footer.html.haml | Haml |
<|file_sep|>original/src/test/ui/tuple/nested-index.rs
// run-pass
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, 3);
let n = (1, (2, (3, 4))).1.1.1;
assert_eq!(n, 4);
}
<|file_sep|>current/src/test/ui/tuple/nested-index.rs
// run-pass
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, ... | // run-pass
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, 3);
let n = (1, (2, (3, 4))).1.1.1;
assert_eq!(n, 4);
// This is a range expression, not nested indexing.
let _ = 0.0..1.1;
} | <|file_sep|>original/src/test/ui/tuple/nested-index.rs
// run-pass
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, 3);
let n = (1, (2, (3, 4))).1.1.1;
assert_eq!(n, 4);
}
<|file_sep|>current/src/test/ui/tuple/nested-index.rs
// run-pass
fn main () {
let n = (1, (2, 3)).1.1;
assert_eq!(n, ... | 776deb6b9f326f5ba5984e4d55cb5010a17ce559 | src/test/ui/tuple/nested-index.rs | src/test/ui/tuple/nested-index.rs | Rust |
<|file_sep|>sys/boot/i386/btx/lib/btxcsu.s.diff
original:
# $Id:$
updated:
# $Id: btxcsu.s,v 1.1 1998/09/14 10:37:00 rnordier Exp $
<|file_sep|>sys/boot/i386/btx/lib/btxcsu.s.diff
original:
.set ARGSIZ,0x60 # Size of arguments
updated:
.set ARGADJ,0xfa0 # Argument adjustment
<|file_sep|>original/sys/boot/i386/btx... | # Globals.
#
.global _start
#
# Constants.
#
.set ARGADJ,0xfa0 # Argument adjustment
#
# Client entry point.
#
_start: movl %eax,__base # Set base address
movl %esp,%eax # Set
addl $ARGADJ,%eax # argument
movl %eax,__args # pointer
call main # Invoke client main()
call exit # Invoke client ex... | <|file_sep|>sys/boot/i386/btx/lib/btxcsu.s.diff
original:
# $Id:$
updated:
# $Id: btxcsu.s,v 1.1 1998/09/14 10:37:00 rnordier Exp $
<|file_sep|>sys/boot/i386/btx/lib/btxcsu.s.diff
original:
.set ARGSIZ,0x60 # Size of arguments
updated:
.set ARGADJ,0xfa0 # Argument adjustment
<|file_sep|>original/sys/boot/i386/btx... | dd5f9d7739b2450016e1b3d8026927a8364417da | sys/boot/i386/btx/lib/btxcsu.s | sys/boot/i386/btx/lib/btxcsu.s | GAS |
<|file_sep|>original/samples/bluemixZoneDemo/manifest.yml
applications:
- command: python server.py
path: .
instances: 1
memory: 64M
buildpack: https://github.com/heroku/heroku-buildpack-python.git
<|file_sep|>current/samples/bluemixZoneDemo/manifest.yml
applications:
- command: python server.py
path: .
ins... | applications:
- command: python server.py
path: .
instances: 4
memory: 512M
buildpack: https://github.com/heroku/heroku-buildpack-python.git | <|file_sep|>original/samples/bluemixZoneDemo/manifest.yml
applications:
- command: python server.py
path: .
instances: 1
memory: 64M
buildpack: https://github.com/heroku/heroku-buildpack-python.git
<|file_sep|>current/samples/bluemixZoneDemo/manifest.yml
applications:
- command: python server.py
path: .
ins... | ce86a7606cd43aeb2a58f1df71732cf313e3cf01 | samples/bluemixZoneDemo/manifest.yml | samples/bluemixZoneDemo/manifest.yml | YAML |
<|file_sep|>original/README.rdoc
= BiCrypt
Copyright:: (c) 2007 Thomas Sawyer, Rubyworks
License:: BSD-2-Clause
== DESCRIPTION
BiCrypt is a simple two-way encryption class.
== FEATURES
* Very easy to use.
* Good for light-weight "deterrence" applications.
== RESOURCES
* {Website}[http://rubyworks.github.com/b... | = BiCrypt
{<img src="http://travis-ci.org/rubyworks/bicrypt.png" />}[http://travis-ci.org/rubyworks/bicrypt]
Copyright:: (c) 2007 Thomas Sawyer, Rubyworks
License:: BSD-2-Clause
== DESCRIPTION
BiCrypt is a simple two-way encryption class.
== FEATURES
* Very easy to use.
* Good for light-weight "deterrence" appl... | <|file_sep|>original/README.rdoc
= BiCrypt
Copyright:: (c) 2007 Thomas Sawyer, Rubyworks
License:: BSD-2-Clause
== DESCRIPTION
BiCrypt is a simple two-way encryption class.
== FEATURES
* Very easy to use.
* Good for light-weight "deterrence" applications.
== RESOURCES
* {Website}[http://rubyworks.github.com/b... | 8a8cadf9774f451e81c18a0e45bab006eb231542 | README.rdoc | README.rdoc | RDoc |
<|file_sep|>original/Editor/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Widgets)
find_package(Qt5Network)
find_package(Qt5Xml)
add_subdirectory(platforms/freedesktop)
declare_qticon_target()
list(APPEND PLAT_SRCS ma... | cmake_minimum_required(VERSION 3.10)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Widgets)
find_package(Qt5Network)
find_package(Qt5Xml)
if(WIN32)
list(APPEND PLAT_SRCS platforms/win/amuse-gui.rc platforms/win/amuse-gui.manifest)
elseif(APPLE)
list(APPEND PLAT_SRC... | <|file_sep|>original/Editor/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Widgets)
find_package(Qt5Network)
find_package(Qt5Xml)
add_subdirectory(platforms/freedesktop)
declare_qticon_target()
list(APPEND PLAT_SRCS ma... | 912eb7950cc93d984d2c29149c29775de3a0e234 | Editor/CMakeLists.txt | Editor/CMakeLists.txt | Text |
<|file_sep|>original/lib/nexmo/signature.rb
require 'digest/md5'
require 'jwt'
module Nexmo
module Signature
def self.check(params, secret)
params = params.dup
signature = params.delete(:sig)
::JWT.secure_compare(signature, digest(params, secret))
end
def self.digest(params, secret)
... | require 'digest/md5'
require 'jwt'
module Nexmo
module Signature
def self.check(params, secret)
params = params.dup
signature = params.delete('sig')
::JWT.secure_compare(signature, digest(params, secret))
end
def self.digest(params, secret)
md5 = Digest::MD5.new
params.s... | <|file_sep|>original/lib/nexmo/signature.rb
require 'digest/md5'
require 'jwt'
module Nexmo
module Signature
def self.check(params, secret)
params = params.dup
signature = params.delete(:sig)
::JWT.secure_compare(signature, digest(params, secret))
end
def self.digest(params, secret)
... | a9622445f5a1feb9663d97223d8c8d3040006a3f | lib/nexmo/signature.rb | lib/nexmo/signature.rb | Ruby |
<|file_sep|>original/spec/errors_spec.rb
require 'discordrb'
describe Discordrb::Errors do
describe 'the Code method' do
it 'should create a class without errors' do
Discordrb::Errors.Code(10_000)
end
end
end
<|file_sep|>current/spec/errors_spec.rb
require 'discordrb'
describe Discordrb::Errors do
... | require 'discordrb'
describe Discordrb::Errors do
describe 'the Code method' do
it 'should create a class without errors' do
Discordrb::Errors.Code(10_000)
end
describe 'the created class' do
it 'should contain the correct code' do
classy = Discordrb::Errors.Code(10_001)
clas... | <|file_sep|>original/spec/errors_spec.rb
require 'discordrb'
describe Discordrb::Errors do
describe 'the Code method' do
it 'should create a class without errors' do
Discordrb::Errors.Code(10_000)
end
end
end
<|file_sep|>current/spec/errors_spec.rb
require 'discordrb'
describe Discordrb::Errors do
... | 57f6ac85455e2a05849ccf32f3e9cde18bdb53eb | spec/errors_spec.rb | spec/errors_spec.rb | Ruby |
<|file_sep|>original/README.md
# node-elm-compiler
Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm sources.
Current Elm version is 0.16.
# Example
```bash
$ npm install
$ cd examples
$ node compileHelloWorld.js
```
<|file_sep|>current/README.md
# node-elm-compiler
Wrap... | # node-elm-compiler
Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm sources.
By default uses the `elm-make` executable you have installed on your system,
but you can optionally specify a different `elm-make` to use.
# Example
```bash
$ npm install
$ cd examples
$ node c... | <|file_sep|>original/README.md
# node-elm-compiler
Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm sources.
Current Elm version is 0.16.
# Example
```bash
$ npm install
$ cd examples
$ node compileHelloWorld.js
```
<|file_sep|>current/README.md
# node-elm-compiler
Wrap... | 5b2d769fc00d1cf67dfb6f449b64e0a8537314ac | README.md | README.md | Markdown |
<|file_sep|>README.md.diff
original:
Run the builder with ``./dist/bin/builder.js build example_source example_dist``.
updated:
<|file_sep|>original/README.md
[](http://closeheat.com)
# closeheat - Ship Web... | [](http://closeheat.com)
# closeheat - Ship Websites Faster
[closeheat](http://closeheat.com) is a hosting platform and an intergrated toolkit for developing landing pages, front-end apps and blogs with mod... | <|file_sep|>README.md.diff
original:
Run the builder with ``./dist/bin/builder.js build example_source example_dist``.
updated:
<|file_sep|>original/README.md
[](http://closeheat.com)
# closeheat - Ship Web... | 2f5ee778af66dbeb84c5b9b1bffd301b929e377d | README.md | README.md | Markdown |
<|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml | ---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
collections:
- path: ''
label: Pages
create: all
- path: _posts
label: Posts
create: all
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:" | <|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml
---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
collections:
- path: ''
label: Pages
create: all
- path: _posts
label: Posts
create: all
upload_dir: upload... | 0d619d523dfdd9ebcc2f8c78b72004dd85161ba0 | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/shell/linux.sh
<|file_sep|>current/shell/linux.sh
<|file_sep|>updated/shell/linux.sh | keychain-init() {
eval $(keychain --eval --quiet)
}
keychain-add() {
keychain-init
local hosts=$(for i in $@; do _sc_confpath $i; done)
keychain --confhost ${hosts[@]}
}
# get ssh key path from '~/.ssh/config'
_sc_confpath() {
h=""
while IFS= read -r line; do
# get the Host directives
... | <|file_sep|>original/shell/linux.sh
<|file_sep|>current/shell/linux.sh
<|file_sep|>updated/shell/linux.sh
keychain-init() {
eval $(keychain --eval --quiet)
}
keychain-add() {
keychain-init
local hosts=$(for i in $@; do _sc_confpath $i; done)
keychain --confhost ${hosts[@]}
}
# get ssh key path from ... | 961e7b34e78a6c3ea7d2d7c0d8348b20de0a9878 | shell/linux.sh | shell/linux.sh | Shell |
<|file_sep|>.github/kokoro/xc7-vendor.sh.diff
original:
updated:
export XRAY_VIVADO_SETTINGS=/opt/Xilinx/Vivado/2017.2/settings64.sh
<|file_sep|>.github/kokoro/xc7-vendor.sh.diff
original:
updated:
source third_party/prjxray/.github/kokoro/steps/xilinx.sh
echo
echo "========================================"
echo "Viv... | echo "Vivado version"
echo "----------------------------------------"
(
source third_party/prjxray/utils/environment.sh
$XRAY_VIVADO -version
)
echo "----------------------------------------"
echo
echo "========================================"
echo "Running xc7 vendor tests (make all_xc7_diff_fasm)"
echo "---... | <|file_sep|>.github/kokoro/xc7-vendor.sh.diff
original:
updated:
export XRAY_VIVADO_SETTINGS=/opt/Xilinx/Vivado/2017.2/settings64.sh
<|file_sep|>.github/kokoro/xc7-vendor.sh.diff
original:
updated:
source third_party/prjxray/.github/kokoro/steps/xilinx.sh
echo
echo "========================================"
echo "Viv... | 0b07034b9dadf897389e97e43e12ee99459a4ca0 | .github/kokoro/xc7-vendor.sh | .github/kokoro/xc7-vendor.sh | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.