prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/sh_common/config.bash
BASE16_SHELL=$HOME/.sh_common/vendor/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
base16_solarized-dark
<|file_sep|>current/sh_common/config.bash
BASE16_SHELL=$HOME/.sh_common/vendor/base16-shell/
[ -n "$PS1... | BASE16_SHELL="$HOME/.sh_common/vendor/base16-shell/"
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$("$BASE16_SHELL"/profile_helper.sh)"
base16_solarized-dark | <|file_sep|>original/sh_common/config.bash
BASE16_SHELL=$HOME/.sh_common/vendor/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
base16_solarized-dark
<|file_sep|>current/sh_common/config.bash
BASE16_SHELL=$HOME/.sh_common/vendor/base16-shell/
[ -n "$PS1... | 37215ddb811a339bb42407bb6b3c624125c55ead | sh_common/config.bash | sh_common/config.bash | Shell |
<|file_sep|>spec/integration/adapter_spec.rb.diff
original:
let(:rom) { ROM.setup(mongo: 'mongo://127.0.0.1:27017/test') }
updated:
let(:setup) { ROM.setup(mongo: 'mongo://127.0.0.1:27017/test') }
let(:rom) { setup.finalize }
<|file_sep|>spec/integration/adapter_spec.rb.diff
original:
rom.schema do
updated:
... | end
user_model = Class.new do
include Virtus.model
attribute :_id, String
attribute :name, String
attribute :email, String
end
setup.mappers do
define(:users) do
model(user_model)
end
end
rom.schema.users.insert(name: 'Jane', email: 'jane@doe.org')... | <|file_sep|>spec/integration/adapter_spec.rb.diff
original:
let(:rom) { ROM.setup(mongo: 'mongo://127.0.0.1:27017/test') }
updated:
let(:setup) { ROM.setup(mongo: 'mongo://127.0.0.1:27017/test') }
let(:rom) { setup.finalize }
<|file_sep|>spec/integration/adapter_spec.rb.diff
original:
rom.schema do
updated:
... | d664f52944f534ae3d8506ddc4e0ac3e74104315 | spec/integration/adapter_spec.rb | spec/integration/adapter_spec.rb | Ruby |
<|file_sep|>Source/View/CreateSave/VCreateSaveStatusBusyProgress.swift.diff
original:
updated:
private weak var layoutBarWidth:NSLayoutConstraint!
private var progress:CGFloat
private let kBarAlpha:CGFloat = 0.5
private let kBackgroundAlpha:CGFloat = 0.1
<|file_sep|>Source/View/CreateSave/VCreateS... | layoutBarWidth = NSLayoutConstraint.width(
view:viewBar,
toView:self,
multiplier:0)
}
required init?(coder:NSCoder)
{
return nil
}
override func layoutSubviews()
{
let width:CGFloat = bounds.width
let barWidth:CGFloat ... | <|file_sep|>Source/View/CreateSave/VCreateSaveStatusBusyProgress.swift.diff
original:
updated:
private weak var layoutBarWidth:NSLayoutConstraint!
private var progress:CGFloat
private let kBarAlpha:CGFloat = 0.5
private let kBackgroundAlpha:CGFloat = 0.1
<|file_sep|>Source/View/CreateSave/VCreateS... | 647c5dd6bae8ca9d3ede358ba857b413af9156d8 | Source/View/CreateSave/VCreateSaveStatusBusyProgress.swift | Source/View/CreateSave/VCreateSaveStatusBusyProgress.swift | Swift |
<|file_sep|>manifests/operators/alertmanager-webhook-receiver.yml.diff
original:
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers/name=default-receiver/webhook_configs?/-
updated:
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager... | - type: replace
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers/name=default/webhook_configs?/-
value:
url: "((alertmanager_webhook_url))" | <|file_sep|>manifests/operators/alertmanager-webhook-receiver.yml.diff
original:
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager/receivers/name=default-receiver/webhook_configs?/-
updated:
path: /instance_groups/name=alertmanager/jobs/name=alertmanager/properties/alertmanager... | a8791e894f8cc24669630a6ed7f91a32d56220a1 | manifests/operators/alertmanager-webhook-receiver.yml | manifests/operators/alertmanager-webhook-receiver.yml | YAML |
<|file_sep|>original/localStorageTest.html
<|file_sep|>current/localStorageTest.html
<|file_sep|>updated/localStorageTest.html | <!DOCTYPE html>
<html>
<head>
</head>
<body>
<p><button id="lvl01" onclick="setMeRed('level01')" type="button">1</button></p>
<p><button id="lvl02" onclick="setMeRed('level02')" type="button">2</button></p>
<p><button id="lvl03" onclick="setMeRed('level03')" type="button">3</button></p>
<p><button onclick="... | <|file_sep|>original/localStorageTest.html
<|file_sep|>current/localStorageTest.html
<|file_sep|>updated/localStorageTest.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p><button id="lvl01" onclick="setMeRed('level01')" type="button">1</button></p>
<p><button id="lvl02" onclick="setMeRed('level02')" type=... | 1832e44b0831e77fee9f1221cdf9fcce25d100ae | localStorageTest.html | localStorageTest.html | HTML |
<|file_sep|>tox.ini.diff
original:
deps = -rtests/test_requirements.txt
updated:
deps = pytest
-rtests/test_requirements.txt
<|file_sep|>original/tox.ini
[tox]
envlist=py34
[testenv]
deps = -rtests/test_requirements.txt
commands=py.test tests/
[pep8]
max-line-length=100
<|file_sep|>current/tox.ini
[tox]
envli... | [tox]
envlist=py34
[testenv]
deps = pytest
-rtests/test_requirements.txt
commands=py.test tests/ | <|file_sep|>tox.ini.diff
original:
deps = -rtests/test_requirements.txt
updated:
deps = pytest
-rtests/test_requirements.txt
<|file_sep|>original/tox.ini
[tox]
envlist=py34
[testenv]
deps = -rtests/test_requirements.txt
commands=py.test tests/
[pep8]
max-line-length=100
<|file_sep|>current/tox.ini
[tox]
envli... | 0538fb7df01952cea613d1a580ed88a2f78ff8e3 | tox.ini | tox.ini | INI |
<|file_sep|>lib/miq_expression/tag.rb.diff
original:
updated:
MANAGED_NAMESPACE = 'managed'.freeze
USER_NAMESPACE = 'user'.freeze
<|file_sep|>lib/miq_expression/tag.rb.diff
original:
namespace = match[:namespace] == 'user_tag' ? 'user' : match[:namespace]
new(match[:model_name].classify.safe_... |
def self.parse(field)
match = TAG_REGEX.match(field) || return
associations = match[:associations].split(".")
model = match[:model_name].classify.safe_constantize
new(model, associations, match[:column], match[:namespace] == MANAGED_NAMESPACE)
end
def initialize(model, associations, column, man... | <|file_sep|>lib/miq_expression/tag.rb.diff
original:
updated:
MANAGED_NAMESPACE = 'managed'.freeze
USER_NAMESPACE = 'user'.freeze
<|file_sep|>lib/miq_expression/tag.rb.diff
original:
namespace = match[:namespace] == 'user_tag' ? 'user' : match[:namespace]
new(match[:model_name].classify.safe_... | b57d656629eca3a3009175b4eb6ac8871808992e | lib/miq_expression/tag.rb | lib/miq_expression/tag.rb | Ruby |
<|file_sep|>original/tests/acceptance/test_build.py
<|file_sep|>current/tests/acceptance/test_build.py
<|file_sep|>updated/tests/acceptance/test_build.py | #!/usr/bin/python
# Copyright 2016 Mender Software AS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | <|file_sep|>original/tests/acceptance/test_build.py
<|file_sep|>current/tests/acceptance/test_build.py
<|file_sep|>updated/tests/acceptance/test_build.py
#!/usr/bin/python
# Copyright 2016 Mender Software AS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except i... | e3012a79401d47d02fe6a2245fe0f65c1e3fce06 | tests/acceptance/test_build.py | tests/acceptance/test_build.py | Python |
<|file_sep|>original/tests/TestFilters.php
<|file_sep|>current/tests/TestFilters.php
<|file_sep|>updated/tests/TestFilters.php | <?php
namespace Cerbero\QueryFilters;
/**
* Dummy class to test query filters.
*
* @author Andrea Marco Sartori
*/
class TestFilters extends QueryFilters
{
/**
* List of called filters, for testing purposes.
*
* @author Andrea Marco Sartori
* @var array
*/
public $filters ... | <|file_sep|>original/tests/TestFilters.php
<|file_sep|>current/tests/TestFilters.php
<|file_sep|>updated/tests/TestFilters.php
<?php
namespace Cerbero\QueryFilters;
/**
* Dummy class to test query filters.
*
* @author Andrea Marco Sartori
*/
class TestFilters extends QueryFilters
{
/**
* List of cal... | 78ce7547506244fe99249c439c827a051777139c | tests/TestFilters.php | tests/TestFilters.php | PHP |
<|file_sep|>original/docs/README.md
# PHP Curl Class Documentation
https://www.phpcurlclass.com/
The [examples](https://github.com/php-curl-class/php-curl-class/tree/master/examples) are a great starting point.
<|file_sep|>current/docs/README.md
# PHP Curl Class Documentation
https://www.phpcurlclass.com/
The [exampl... | # PHP Curl Class Documentation
https://www.phpcurlclass.com/
The [examples](https://github.com/php-curl-class/php-curl-class/tree/master/examples) are a great starting point.
See also [TROUBLESHOOTING](https://github.com/php-curl-class/php-curl-class/blob/master/TROUBLESHOOTING.md) for troubleshooting. | <|file_sep|>original/docs/README.md
# PHP Curl Class Documentation
https://www.phpcurlclass.com/
The [examples](https://github.com/php-curl-class/php-curl-class/tree/master/examples) are a great starting point.
<|file_sep|>current/docs/README.md
# PHP Curl Class Documentation
https://www.phpcurlclass.com/
The [exampl... | 5afda350ea49404ef9b30d450aaf8ab0682ac0e2 | docs/README.md | docs/README.md | Markdown |
<|file_sep|>original/metadata/menion.android.whereyougo.txt
Auto Name:WhereYouGo
Summary:Whereigo client
Description:
WhereYouGo is an unofficial client for Wherigo Geocaching. It displays online
and offline vector maps using Mapsforge library, alternatively Locus can be used
to display maps.
.
Repo Type:git
Repo:htt... | WhereYouGo is an unofficial client for Wherigo Geocaching. It displays online
and offline vector maps using Mapsforge library, alternatively Locus can be used
to display maps.
.
Repo Type:git
Repo:https://github.com/biylda/WhereYouGo
Build:0.9.1-git,40
commit=5bdd47ff992250f8c65fc49f4f5d31ddc706cd8c
gradle=ye... | <|file_sep|>original/metadata/menion.android.whereyougo.txt
Auto Name:WhereYouGo
Summary:Whereigo client
Description:
WhereYouGo is an unofficial client for Wherigo Geocaching. It displays online
and offline vector maps using Mapsforge library, alternatively Locus can be used
to display maps.
.
Repo Type:git
Repo:htt... | 97144b08707779ee918f8fe638808374753aeb94 | metadata/menion.android.whereyougo.txt | metadata/menion.android.whereyougo.txt | Text |
<|file_sep|>original/requirements.txt
defusedxml>=0.5.0
pyaml>=17.12.1
python-dateutil>=2.7.2
pytz>=2018.4
requests==2.26.0
<|file_sep|>current/requirements.txt
defusedxml>=0.5.0
pyaml>=17.12.1
python-dateutil>=2.7.2
pytz>=2018.4
requests==2.26.0
<|file_sep|>updated/requirements.txt | defusedxml>=0.5.0
pyaml>=17.12.1
python-dateutil>=2.7.2
pytz>=2018.4
requests==2.27.0 | <|file_sep|>original/requirements.txt
defusedxml>=0.5.0
pyaml>=17.12.1
python-dateutil>=2.7.2
pytz>=2018.4
requests==2.26.0
<|file_sep|>current/requirements.txt
defusedxml>=0.5.0
pyaml>=17.12.1
python-dateutil>=2.7.2
pytz>=2018.4
requests==2.26.0
<|file_sep|>updated/requirements.txt
defusedxml>=0.5.0
pyaml>=17.12.1
pyt... | 92e9a16fe13ba1eeb93edc4e257d0304a6310ba2 | requirements.txt | requirements.txt | Text |
<|file_sep|>web-proxy/startserver.sh.diff
original:
npm update
npm install
npm install supervisor -g
updated:
SHOULD_UPDATE=true
if [[ -n $1 ]]; then
# We have an option
if [[ "$1" -eq "no-npm-update" ]];then
# Do not update
SHOULD_UPDATE=false
else
echo "this script only takes one argument: no-npm... | SHOULD_UPDATE=true
if [[ -n $1 ]]; then
# We have an option
if [[ "$1" -eq "no-npm-update" ]];then
# Do not update
SHOULD_UPDATE=false
else
echo "this script only takes one argument: no-npm-update"
fi
fi
if $SHOULD_UPDATE ; then
npm update
npm install
npm install supervisor -g
fi
#read_config... | <|file_sep|>web-proxy/startserver.sh.diff
original:
npm update
npm install
npm install supervisor -g
updated:
SHOULD_UPDATE=true
if [[ -n $1 ]]; then
# We have an option
if [[ "$1" -eq "no-npm-update" ]];then
# Do not update
SHOULD_UPDATE=false
else
echo "this script only takes one argument: no-npm... | 0595d3f5d43e3858d2a1d263b29f740d975862e1 | web-proxy/startserver.sh | web-proxy/startserver.sh | Shell |
<|file_sep|>original/packages/gitbook-plugin-theme-default/src/components/Body.js
const Toolbar = require('./Toolbar');
const Body = React.createClass({
propTypes: {
page: GitBook.PropTypes.Page,
readme: GitBook.PropTypes.Readme
},
render() {
const { page, readme } = this.props;
... | propTypes: {
page: GitBook.PropTypes.Page,
readme: GitBook.PropTypes.Readme
},
render() {
const { page, readme } = this.props;
return (
<GitBook.InjectedComponent matching={{ role: 'body:wrapper' }}>
<div className="Body page-wrapper">
... | <|file_sep|>original/packages/gitbook-plugin-theme-default/src/components/Body.js
const Toolbar = require('./Toolbar');
const Body = React.createClass({
propTypes: {
page: GitBook.PropTypes.Page,
readme: GitBook.PropTypes.Readme
},
render() {
const { page, readme } = this.props;
... | 66c2a6c0764f106e312bcc8c04ba00c9e5044ea1 | packages/gitbook-plugin-theme-default/src/components/Body.js | packages/gitbook-plugin-theme-default/src/components/Body.js | JavaScript |
<|file_sep|>original/README.md
# note
A Static Blog bult with node.js and expressjs
- [](https://travis-ci.org/hanakin/note) master
- [](https://travis-ci.org/hanakin/note) de... | # note
A Static Blog bult with node.js and expressjs
- [](https://travis-ci.org/hanakin/note) master
- [](https://travis-ci.org/hanakin/note) develop
| <|file_sep|>original/README.md
# note
A Static Blog bult with node.js and expressjs
- [](https://travis-ci.org/hanakin/note) master
- [](https://travis-ci.org/hanakin/note) de... | 9e8c298994e780e78faf7499b831877e762ad47e | README.md | README.md | Markdown |
<|file_sep|>original/lib/slack-notify.rb
raise ArgumentError, "Token required" if @token.nil?
end
def test
notify("This is a test message!")
end
def notify(text, channel=nil)
send_payload(
text: text,
channel: channel || @channel,
username: @username
... | raise ArgumentError, "Token required" if @token.nil?
end
def test
notify("This is a test message!")
end
def notify(text, channel=nil)
channels = [channel || @channel].flatten.compact.uniq
channels.each do |chan|
send_payload(text: text, username: @username, channel... | <|file_sep|>original/lib/slack-notify.rb
raise ArgumentError, "Token required" if @token.nil?
end
def test
notify("This is a test message!")
end
def notify(text, channel=nil)
send_payload(
text: text,
channel: channel || @channel,
username: @username
... | 53b390d4938be2e2bad0c8c744645b8e575d4140 | lib/slack-notify.rb | lib/slack-notify.rb | Ruby |
<|file_sep|>api/FilterLists.Api/Startup.cs.diff
original:
updated:
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
<|file_sep|>original/api/FilterLists.Api/Startup.cs
public IConfigurationRoot Configuration { get; }
public void Configu... | loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
}
public IConfigurationRoot Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.RegisterFilterListsRepositories(Configur... | <|file_sep|>api/FilterLists.Api/Startup.cs.diff
original:
updated:
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
<|file_sep|>original/api/FilterLists.Api/Startup.cs
public IConfigurationRoot Configuration { get; }
public void Configu... | 254b273c70ffc5226220be02028bb86e26d09a35 | api/FilterLists.Api/Startup.cs | api/FilterLists.Api/Startup.cs | C# |
<|file_sep|>original/tox.ini
[tox]
envlist = py26,py27
[testenv]
deps =
nose
pyOpenSSL
commands = nosetests
<|file_sep|>current/tox.ini
[tox]
envlist = py26,py27
[testenv]
deps =
nose
pyOpenSSL
commands = nosetests
<|file_sep|>updated/tox.ini | [tox]
envlist = py26,py27
[testenv]
deps = nose
commands = nosetests tests/
[testenv:py26selects]
basepython = python2.6
setenv = EVENTLET_HUB = selects
[testenv:py26poll]
basepython = python2.6
setenv = EVENTLET_HUB = poll
[testenv:py26epolls]
basepython = python2.6
setenv = EVENTLET_HUB = epolls
[testenv:py27sel... | <|file_sep|>original/tox.ini
[tox]
envlist = py26,py27
[testenv]
deps =
nose
pyOpenSSL
commands = nosetests
<|file_sep|>current/tox.ini
[tox]
envlist = py26,py27
[testenv]
deps =
nose
pyOpenSSL
commands = nosetests
<|file_sep|>updated/tox.ini
[tox]
envlist = py26,py27
[testenv]
deps = nose
comman... | 724f297d9548ddaff0ecc286b714e06fc201ccc3 | tox.ini | tox.ini | INI |
<|file_sep|>original/tools/CodeAnalysisDictionary.xml
<?xml version="1.0" encoding="utf-8"?>
<Dictionary>
<Words>
<Recognized>
<Word>gost</Word>
<Word>streebog</Word>
</Recognized>
</Words>
<Acronyms>
<CasingExceptions>
<Acronym>HMAC</Acronym>
<Acronym>CMAC</Acronym>
</Casi... | <?xml version="1.0" encoding="utf-8"?>
<Dictionary>
<Words>
<Recognized>
<Word>gost</Word>
<Word>streebog</Word>
<Word>a</Word>
<Word>b</Word>
<Word>d</Word>
<Word>g</Word>
<Word>q</Word>
<Word>x</Word>
<Word>y</Word>
</Recognized>
</Words>
<Acronyms>
... | <|file_sep|>original/tools/CodeAnalysisDictionary.xml
<?xml version="1.0" encoding="utf-8"?>
<Dictionary>
<Words>
<Recognized>
<Word>gost</Word>
<Word>streebog</Word>
</Recognized>
</Words>
<Acronyms>
<CasingExceptions>
<Acronym>HMAC</Acronym>
<Acronym>CMAC</Acronym>
</Casi... | 869d0f916edc298428deeb52666054b25b50649f | tools/CodeAnalysisDictionary.xml | tools/CodeAnalysisDictionary.xml | XML |
<|file_sep|>original/http/centos-6.5-x64/ks.cfg
lang en_US.UTF-8
keyboard us
timezone UTC
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
authconfig --enableshadow --passalgo=sha512
firewall --enabled --http --ssh --port=443:tcp
selinux --enforcing
bootloader --location=mbr
text
skipx
... |
lang en_US.UTF-8
keyboard us
timezone UTC
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
authconfig --enableshadow --passalgo=sha512
firewall --enabled --http --ssh --port=443:tcp
selinux --enforcing
services --enabled=ntpd
bootloader --location=mbr
text
skipx
logging --level=info
ze... | <|file_sep|>original/http/centos-6.5-x64/ks.cfg
lang en_US.UTF-8
keyboard us
timezone UTC
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
authconfig --enableshadow --passalgo=sha512
firewall --enabled --http --ssh --port=443:tcp
selinux --enforcing
bootloader --location=mbr
text
skipx
... | 7c61ed74129c2f78d952441d22fe73673336d478 | http/centos-6.5-x64/ks.cfg | http/centos-6.5-x64/ks.cfg | INI |
<|file_sep|>original/wm/new-wallpaper.sh
#!/bin/bash
set -eu
# Strategy for displaying wallpapers. See "man feh".
SPREAD=bg-fill
# Wallpaper directory.
DIR="$HOME/Pictures/Wallpapers/desktop"
# The wallpaper subdirectory.
SECTION="$(cat '/usr/local/scripts/dat/wallpaper_section')"
[[ $# -gt 0 ]] && SECTION="$1"
${D... | #!/bin/bash
set -eu
# Strategy for displaying wallpapers. See "man feh".
SPREAD=bg-fill
# Wallpaper directory.
DIR="$HOME/Pictures/Wallpapers/desktop"
# The wallpaper subdirectory.
SECTION="$(cat '/usr/local/scripts/dat/wallpaper_section')"
[[ $# -gt 0 ]] && SECTION="$1"
if [[ ${DISPLAY:-none} == none ]]; then
ex... | <|file_sep|>original/wm/new-wallpaper.sh
#!/bin/bash
set -eu
# Strategy for displaying wallpapers. See "man feh".
SPREAD=bg-fill
# Wallpaper directory.
DIR="$HOME/Pictures/Wallpapers/desktop"
# The wallpaper subdirectory.
SECTION="$(cat '/usr/local/scripts/dat/wallpaper_section')"
[[ $# -gt 0 ]] && SECTION="$1"
${D... | eb7775081f938e9f33d9730cdd5194b24731ef6b | wm/new-wallpaper.sh | wm/new-wallpaper.sh | Shell |
<|file_sep|>app/models/csv_db.rb.diff
original:
CSV.parse(csv_file, :headers => true, header_converters: :symbol ) do |row|
updated:
CSV.parse(csv_file, :headers => true, :header_converters => :symbol ) do |row|
<|file_sep|>original/app/models/csv_db.rb
require 'csv'
class CsvDb
class << self
def conv... | require 'csv'
class CsvDb
class << self
def convert_save(target_model, csv_data, role = :default, &block)
csv_file = csv_data.read
CSV.parse(csv_file, :headers => true, :header_converters => :symbol ) do |row|
data = row.to_hash
if data.present?
if (block_given?)
... | <|file_sep|>app/models/csv_db.rb.diff
original:
CSV.parse(csv_file, :headers => true, header_converters: :symbol ) do |row|
updated:
CSV.parse(csv_file, :headers => true, :header_converters => :symbol ) do |row|
<|file_sep|>original/app/models/csv_db.rb
require 'csv'
class CsvDb
class << self
def conv... | 2400b69e8b7b3c1a4489ca3413337187d70c6fa4 | app/models/csv_db.rb | app/models/csv_db.rb | Ruby |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.0
script:
- bundle exec rake db:test:prepare
- bundle exec rake test
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.0
script:
- bundle exec rake db:test:prepare
- bundle exec rake test
<|file_sep|>u... | language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.0
script:
- bundle update --bundler
- bundle exec rake db:test:prepare
- bundle exec rake test | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.0
script:
- bundle exec rake db:test:prepare
- bundle exec rake test
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.0
script:
- bundle exec rake db:test:prepare
- bundle exec rake test
<|file_sep|>u... | e579cc65035515c347120d49329c0c7792a8cabd | .travis.yml | .travis.yml | YAML |
<|file_sep|>tox.ini.diff
original:
envlist = py27,py33,py34,py35,py36,pypy
updated:
envlist = py27,py33,py34,py35,py36,pypy2,pypy3
<|file_sep|>tox.ini.diff
original:
[testenv:pypy]
updated:
[testenv:pypy2]
<|file_sep|>original/tox.ini
[testenv:py35]
deps = -rrequirements-py3.txt
[testenv:py36]
deps = {[testenv:py35]de... | [testenv:py36]
deps = {[testenv:py35]deps}
[testenv:py37]
deps = {[testenv:py35]deps}
[testenv:py38]
deps = {[testenv:py35]deps}
[testenv:pypy2]
deps = {[testenv:py27]deps}
[testenv:pypy3]
deps = {[testenv:py35]deps}
[flake8]
ignore=E128,E402,E501,F403
# E128 continuation line under-indented for visual indent
# E4... | <|file_sep|>tox.ini.diff
original:
envlist = py27,py33,py34,py35,py36,pypy
updated:
envlist = py27,py33,py34,py35,py36,pypy2,pypy3
<|file_sep|>tox.ini.diff
original:
[testenv:pypy]
updated:
[testenv:pypy2]
<|file_sep|>original/tox.ini
[testenv:py35]
deps = -rrequirements-py3.txt
[testenv:py36]
deps = {[testenv:py35]de... | a69dc78b8bc5bf6779314de1331c443f208dbb47 | tox.ini | tox.ini | INI |
<|file_sep|>go-dev/tasks/main.yml.diff
original:
updated:
- name: Check if Go is installed
shell: /usr/local/go/bin/go version | grep "go version go{{ go_version|mandatory }} "
register: go_installed
ignore_errors: true
<|file_sep|>go-dev/tasks/main.yml.diff
original:
dest=/tmp/go.tar.gz
when: ansi... | get_url: url=https://storage.googleapis.com/golang/go{{ go_version }}.linux-amd64.tar.gz
dest=/tmp/go-{{ go_version }}.tar.gz
when: ansible_architecture == "x86_64" and go_installed|failed
- name: Remove any existing Go installation
file: path=/usr/local/go state=absent
when: go_installed|failed
- ... | <|file_sep|>go-dev/tasks/main.yml.diff
original:
updated:
- name: Check if Go is installed
shell: /usr/local/go/bin/go version | grep "go version go{{ go_version|mandatory }} "
register: go_installed
ignore_errors: true
<|file_sep|>go-dev/tasks/main.yml.diff
original:
dest=/tmp/go.tar.gz
when: ansi... | 4d160cb8f3829a76616d105c5e79e3a8ea2d4cb2 | go-dev/tasks/main.yml | go-dev/tasks/main.yml | YAML |
<|file_sep|>original/openvidu-server/docker/openvidu-recording/create_image.sh
#!/bin/bash -x
OPENVIDU_RECORDING_UBUNTU_VERSION=$1
OPENVIDU_RECORDING_CHROME_VERSION=$2
OPENVIDU_RECORDING_DOCKER_TAG=$3
docker build --rm --build-arg CHROME_VERSION="$OPENVIDU_RECORDING_DOCKER_TAG" -f $UBUNTU_VERSION.Dockerfile -t openvidu... | #!/bin/bash -x
OPENVIDU_RECORDING_UBUNTU_VERSION=$1
OPENVIDU_RECORDING_CHROME_VERSION=$2
OPENVIDU_RECORDING_DOCKER_TAG=$3
docker build --rm --build-arg CHROME_VERSION="$OPENVIDU_RECORDING_DOCKER_TAG" -f $OPENVIDU_RECORDING_UBUNTU_VERSION.Dockerfile -t openvidu/openvidu-recording:$OPENVIDU_RECORDING_DOCKER_TAG .
docker ... | <|file_sep|>original/openvidu-server/docker/openvidu-recording/create_image.sh
#!/bin/bash -x
OPENVIDU_RECORDING_UBUNTU_VERSION=$1
OPENVIDU_RECORDING_CHROME_VERSION=$2
OPENVIDU_RECORDING_DOCKER_TAG=$3
docker build --rm --build-arg CHROME_VERSION="$OPENVIDU_RECORDING_DOCKER_TAG" -f $UBUNTU_VERSION.Dockerfile -t openvidu... | a489221ddf24b39585448dea7fe77b29ceb4a9a0 | openvidu-server/docker/openvidu-recording/create_image.sh | openvidu-server/docker/openvidu-recording/create_image.sh | Shell |
<|file_sep|>original/doma-slf4j/build.gradle.kts
description = "doma-slf4j"
dependencies {
api("org.slf4j:slf4j-api:1.7.34")
implementation(project(":doma-core"))
testImplementation("ch.qos.logback:logback-classic:1.2.10")
}
<|file_sep|>current/doma-slf4j/build.gradle.kts
description = "doma-slf4j"
depend... | description = "doma-slf4j"
dependencies {
api("org.slf4j:slf4j-api:1.7.35")
implementation(project(":doma-core"))
testImplementation("ch.qos.logback:logback-classic:1.2.10")
} | <|file_sep|>original/doma-slf4j/build.gradle.kts
description = "doma-slf4j"
dependencies {
api("org.slf4j:slf4j-api:1.7.34")
implementation(project(":doma-core"))
testImplementation("ch.qos.logback:logback-classic:1.2.10")
}
<|file_sep|>current/doma-slf4j/build.gradle.kts
description = "doma-slf4j"
depend... | 57dfa7ecd098a9668935b9b65f37034ca8200119 | doma-slf4j/build.gradle.kts | doma-slf4j/build.gradle.kts | Kotlin |
<|file_sep|>original/bin/commit_and_push_appcast.sh
IS_SNAPSHOT=$3
if [ "${IS_SNAPSHOT}" = true ] ; then
cp ./build/Release/appcast_snapshot.xml .
else
cp ./build/Release/appcast.xml .
fi
echo "### Commiting and pushing appcast"
git commit -S -am "Bump appcast to ${COMPOUND_VERSION}"
git push origin HEAD:"${... | IS_SNAPSHOT=$3
if [ "${IS_SNAPSHOT}" = true ] ; then
cp ./build/Release/appcast_snapshot.xml .
else
cp ./build/Release/appcast.xml .
fi
echo "### Commiting and pushing appcast"
git commit -S -am "Bump appcast to ${COMPOUND_VERSION}"
git push origin HEAD:"${BRANCH}"
if [ "${IS_SNAPSHOT}" = false ] ; then
... | <|file_sep|>original/bin/commit_and_push_appcast.sh
IS_SNAPSHOT=$3
if [ "${IS_SNAPSHOT}" = true ] ; then
cp ./build/Release/appcast_snapshot.xml .
else
cp ./build/Release/appcast.xml .
fi
echo "### Commiting and pushing appcast"
git commit -S -am "Bump appcast to ${COMPOUND_VERSION}"
git push origin HEAD:"${... | daa936669cd7f3432757eb40b171c625a6ad572d | bin/commit_and_push_appcast.sh | bin/commit_and_push_appcast.sh | Shell |
<|file_sep|>original/packages/base/resources/css/base.css
background-position: center center;
border-radius: 3px;
color: #fff;
display: block;
line-height: 20px;
margin-bottom: 8px;
padding: 8px 9pt;
position: relative;
text-decoration: none;
min-height: 60px;
}
.list-wrapper {
... | border-radius: 3px;
color: #fff;
display: block;
line-height: 20px;
margin-bottom: 8px;
padding: 8px 9pt;
position: relative;
text-decoration: none;
min-height: 60px;
}
.board-tile:hover {
cursor: pointer;
opacity: 0.8;
}
.list-wrapper {
width: 270px;
margin: 0 5px;
... | <|file_sep|>original/packages/base/resources/css/base.css
background-position: center center;
border-radius: 3px;
color: #fff;
display: block;
line-height: 20px;
margin-bottom: 8px;
padding: 8px 9pt;
position: relative;
text-decoration: none;
min-height: 60px;
}
.list-wrapper {
... | 70c30cf9bf990d693af50bdc0e5f6e349f4899c7 | packages/base/resources/css/base.css | packages/base/resources/css/base.css | CSS |
<|file_sep|>original/requirements.txt
itsdangerous==2.0.1
Jinja2>=2.10.1
MarkupSafe==2.0.1
numpy==1.22.0
python-dateutil==2.8.2
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.7.0
six==1.16.0
tornado==6.1
urllib3>=1.24.2
cachelib==0.5.0
pandas==1.3.4
scipy==1.7.3
astropy==5.0
matplotlib==3.5.0
git+https://github.com/m... | itsdangerous==2.0.1
Jinja2>=2.10.1
MarkupSafe==2.0.1
numpy==1.22.0
python-dateutil==2.8.2
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.7.0
six==1.16.0
tornado==6.1
urllib3>=1.24.2
cachelib==0.5.0
pandas==1.3.5
scipy==1.7.3
astropy==5.0
matplotlib==3.5.0
git+https://github.com/mpld3/mpld3@master
tables==3.6.1
apsche... | <|file_sep|>original/requirements.txt
itsdangerous==2.0.1
Jinja2>=2.10.1
MarkupSafe==2.0.1
numpy==1.22.0
python-dateutil==2.8.2
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.7.0
six==1.16.0
tornado==6.1
urllib3>=1.24.2
cachelib==0.5.0
pandas==1.3.4
scipy==1.7.3
astropy==5.0
matplotlib==3.5.0
git+https://github.com/m... | 7a7e89dd9d71f3b6b75e3cba0339f127948c4e71 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py
<|file_sep|>current/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py
<|file_sep|>updated/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py | # Copyright 2013 Rackspace Hosting
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | <|file_sep|>original/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py
<|file_sep|>current/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py
<|file_sep|>updated/nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py
# Copyright 2013 ... | 85359a24d844c19db9d07c268185c9a0310a181d | nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py | nova/db/sqlalchemy/migrate_repo/versions/178_add_index_to_compute_node_stats.py | Python |
<|file_sep|>original/.travis.yml
# See https://git.io/vdao3 for details.
- JOBS=1
before_install:
- npm config set spin false
install:
- cd $HOME
- git clone https://github.com/sockethub/sockethub.git
- cd sockethub
- yarn install
- yarn run build
- cd $TRAVIS_BUILD_DIR
- npm ci
before_script... | # See https://git.io/vdao3 for details.
- JOBS=1
before_install:
- npm config set spin false
install:
- cd $HOME
- git clone https://github.com/sockethub/sockethub.git
- cd sockethub
- git checkout refactor-sockethub-client
- yarn install
- yarn run build
- cd $TRAVIS_BUILD_DIR
- npm ci
bef... | <|file_sep|>original/.travis.yml
# See https://git.io/vdao3 for details.
- JOBS=1
before_install:
- npm config set spin false
install:
- cd $HOME
- git clone https://github.com/sockethub/sockethub.git
- cd sockethub
- yarn install
- yarn run build
- cd $TRAVIS_BUILD_DIR
- npm ci
before_script... | de2ef5fb5e07d1c71c333d8823eb61777bac77de | .travis.yml | .travis.yml | YAML |
<|file_sep|>config/README.md.diff
original:
updated:
## YAML parsing problem
- multiple document support, the author said it is easy, but he never tried to solve them,
- the [encoder & decoder PR](https://github.com/go-yaml/yaml/pull/163/) seems to support multiple documents but I don't
understand why it does.
- ... | - http://docs.ansible.com/ansible/playbooks_conditionals.html
- loop
- http://docs.ansible.com/ansible/playbooks_loops.html
- TODO: if using pongo2 syntax `for`, may have problem for order of rendering and parse yaml, unless support multiple
document in one yaml file
Without using multiple document
````
vars... | <|file_sep|>config/README.md.diff
original:
updated:
## YAML parsing problem
- multiple document support, the author said it is easy, but he never tried to solve them,
- the [encoder & decoder PR](https://github.com/go-yaml/yaml/pull/163/) seems to support multiple documents but I don't
understand why it does.
- ... | 18528d1ce59afab943ed41a01130843ee84f514c | config/README.md | config/README.md | Markdown |
<|file_sep|>original/src/ActiveFilter.ts
public set(targetFilter: Filter): void {
this.filter = targetFilter;
}
public toggle(targetFilter: string): void {
this.filter = this.toggleFilter(this.filter, targetFilter);
}
private toggleFilter(
activeFilter: string | string[],
targetFilter: stri... |
public set(targetFilter: Filter): void {
this.filter = targetFilter;
}
public toggle(targetFilter: string): void {
this.filter = this.toggleFilter(this.filter, targetFilter);
}
private toggleFilter(
activeFilter: Filter,
targetFilter: string
): string | string[] {
if (activeFilter ===... | <|file_sep|>original/src/ActiveFilter.ts
public set(targetFilter: Filter): void {
this.filter = targetFilter;
}
public toggle(targetFilter: string): void {
this.filter = this.toggleFilter(this.filter, targetFilter);
}
private toggleFilter(
activeFilter: string | string[],
targetFilter: stri... | e300b4c256df86a35f561cf8058626c0226fbb1b | src/ActiveFilter.ts | src/ActiveFilter.ts | TypeScript |
<|file_sep|>src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java.diff
original:
import net.minecraft.block.BlockNewLeaf;
import net.minecraft.block.BlockPlanks;
updated:
<|file_sep|>src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java.diff
original:
if ((event.getState().getBlock() ... | import com.witchworks.common.item.ModItems;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/**
* Created by Joseph on 9/24/2017.
*/
pub... | <|file_sep|>src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java.diff
original:
import net.minecraft.block.BlockNewLeaf;
import net.minecraft.block.BlockPlanks;
updated:
<|file_sep|>src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java.diff
original:
if ((event.getState().getBlock() ... | 130beeffacb4272f31f3ecaaf081b87e67391b43 | src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java | src/main/java/com/witchworks/common/core/event/HarvestDropsEvent.java | Java |
<|file_sep|>original/.codeclimate.yml
---
engines:
fixme:
enabled: true
markdownlint:
enabled: true
checks:
MD013:
enabled: false
MD024:
enabled: false
MD026:
enabled: false
ratings:
paths:
- "**/*.md"
exclude_paths: []
<|file_sep|>current/.codeclimate.yml
-... | ---
engines:
fixme:
enabled: true
markdownlint:
enabled: true
checks:
MD001:
enabled: false
MD013:
enabled: false
MD024:
enabled: false
MD026:
enabled: false
ratings:
paths:
- "**/*.md"
exclude_paths: [] | <|file_sep|>original/.codeclimate.yml
---
engines:
fixme:
enabled: true
markdownlint:
enabled: true
checks:
MD013:
enabled: false
MD024:
enabled: false
MD026:
enabled: false
ratings:
paths:
- "**/*.md"
exclude_paths: []
<|file_sep|>current/.codeclimate.yml
-... | 5a437f22d5f2f39689e55bea6e0a9e9c5270f726 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>.github/pull_request_template.md.diff
original:
:warning: Only merge changes if you are happy for them to go live. :warning:
updated:
:warning: This application is Continuously Deployed: :warning:
<|file_sep|>original/.github/pull_request_template.md
:warning: Only merge changes if you are happy for them t... | :warning: This application is Continuously Deployed: :warning:
- Merged changes are automatically deployed to staging and production.
- Make sure you follow [the guidance for deployments](https://docs.publishing.service.gov.uk/manual/development-pipeline.html#merge-your-own-pull-request) **before** you merge.
- Chec... | <|file_sep|>.github/pull_request_template.md.diff
original:
:warning: Only merge changes if you are happy for them to go live. :warning:
updated:
:warning: This application is Continuously Deployed: :warning:
<|file_sep|>original/.github/pull_request_template.md
:warning: Only merge changes if you are happy for them t... | 4e496da63a22b40809b48d909c70589c8581b652 | .github/pull_request_template.md | .github/pull_request_template.md | Markdown |
<|file_sep|>original/src/Beloop/Admin/CommonBundle/Resources/views/base.html.twig
{% extends 'base.html.twig' %}
{% block nav_title %}Admin area{% endblock %}
{% set section = 'admin' %}
{% block navbar %}
{% include 'AdminCommonBundle:Header:navbar.html.twig' with {nav_title: block('nav_title')} %}
{% endblock %... | {% extends 'base.html.twig' %}
{% block nav_title %}Admin area{% endblock %}
{% set section = 'admin' %}
{% block navbar %}
{% include 'AdminCommonBundle:Header:navbar.html.twig' with {nav_title: block('nav_title')} %}
{% endblock %}
{% block javascripts %}
<script type="text/javascript" src="{{ asset('lib/j... | <|file_sep|>original/src/Beloop/Admin/CommonBundle/Resources/views/base.html.twig
{% extends 'base.html.twig' %}
{% block nav_title %}Admin area{% endblock %}
{% set section = 'admin' %}
{% block navbar %}
{% include 'AdminCommonBundle:Header:navbar.html.twig' with {nav_title: block('nav_title')} %}
{% endblock %... | 037a7c2aba51edbe164dad19169c5c7ce740de78 | src/Beloop/Admin/CommonBundle/Resources/views/base.html.twig | src/Beloop/Admin/CommonBundle/Resources/views/base.html.twig | Twig |
<|file_sep|>original/_posts/2018-07-11-gyb-xcode-integration.md
<|file_sep|>current/_posts/2018-07-11-gyb-xcode-integration.md
<|file_sep|>updated/_posts/2018-07-11-gyb-xcode-integration.md | ---
layout: post
title: Integrating GYB with Xcode
date: 11 July 2018 22:30:00
tags: [Mac, Programming, Tips, Xcode]
---
NSHipster posted a great article on [using GYB to reduce boilerplate in your Swift projects](https://nshipster.com/swift-gyb/), but I found the suggestion of how to integrate with Xcode via a Build ... | <|file_sep|>original/_posts/2018-07-11-gyb-xcode-integration.md
<|file_sep|>current/_posts/2018-07-11-gyb-xcode-integration.md
<|file_sep|>updated/_posts/2018-07-11-gyb-xcode-integration.md
---
layout: post
title: Integrating GYB with Xcode
date: 11 July 2018 22:30:00
tags: [Mac, Programming, Tips, Xcode]
---
NSHips... | 3ca69c4993602f2e86fad8c1e4e03286ea3a15eb | _posts/2018-07-11-gyb-xcode-integration.md | _posts/2018-07-11-gyb-xcode-integration.md | Markdown |
<|file_sep|>src/layouts/default.html.jade.diff
original:
!= getBlock("meta").toHTML();
!= getBlock("styles").toHTML();
updated:
!= getBlock("meta").toHTML()
!= getBlock("styles").toHTML()
<|file_sep|>src/layouts/default.html.jade.diff
original:
h1: a(href="/") Dorian Patterson
updated:
h... | title #{getPreparedTitle()}
!= getBlock("meta").toHTML()
!= getBlock("styles").toHTML()
body
header
hgroup
h1: a(href="/") #{site.title}
h2 Game and Web Developer with Curly Hair
nav
ul
for page in getCollection("html").findAll({isPage:true}).toJSON()
... | <|file_sep|>src/layouts/default.html.jade.diff
original:
!= getBlock("meta").toHTML();
!= getBlock("styles").toHTML();
updated:
!= getBlock("meta").toHTML()
!= getBlock("styles").toHTML()
<|file_sep|>src/layouts/default.html.jade.diff
original:
h1: a(href="/") Dorian Patterson
updated:
h... | fdf440cd5790f91aa3d3cff697778cb3b04369e9 | src/layouts/default.html.jade | src/layouts/default.html.jade | Jade |
<|file_sep|>original/travis-install.sh
<|file_sep|>current/travis-install.sh
<|file_sep|>updated/travis-install.sh | #!/bin/sh
log () {
echo "$ $1"
echo `$1`
}
ROSWELL_TARBALL_PATH=$HOME/roswell.tar.gz
ROSWELL_DIR=$HOME/roswell
echo "Installing Roswell..."
curl --no-progress-bar --retry 10 -o $ROSWELL_TARBALL_PATH -L https://github.com/snmsts/roswell/archive/release.tar.gz
mkdir $ROSWELL_DIR
tar -C $ROSWELL_DIR --strip-co... | <|file_sep|>original/travis-install.sh
<|file_sep|>current/travis-install.sh
<|file_sep|>updated/travis-install.sh
#!/bin/sh
log () {
echo "$ $1"
echo `$1`
}
ROSWELL_TARBALL_PATH=$HOME/roswell.tar.gz
ROSWELL_DIR=$HOME/roswell
echo "Installing Roswell..."
curl --no-progress-bar --retry 10 -o $ROSWELL_TARBA... | c597270f4d1c05cc99457e24af0f1582a2265ca7 | travis-install.sh | travis-install.sh | Shell |
<|file_sep|>localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt.diff
original:
updated:
import java.io.File
<|file_sep|>original/localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt
val map = mutableMapOf<String, String>()
if (propsFile.exists()) {
val props = Properties()
... |
if (propsFile.exists()) {
val props = Properties()
propsFile.reader(StandardCharsets.UTF_8).use { reader ->
props.load(reader)
}
props.forEach { key, value ->
map.put(key.toString(), value.toString())
}
}
project.extensions.add("localprops", LocalProperties(ma... | <|file_sep|>localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt.diff
original:
updated:
import java.io.File
<|file_sep|>original/localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt
val map = mutableMapOf<String, String>()
if (propsFile.exists()) {
val props = Properties()
... | 45362894f0b6e23505546ecc482cf2a326ae61ac | localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt | localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt | Kotlin |
<|file_sep|>lib/wavreader/chunker/chunker_test.go.diff
original:
m := &mp3Chunker{
updated:
m := &chunkContainer{
<|file_sep|>lib/wavreader/chunker/chunker_test.go.diff
original:
updated:
m.chunks[i].seqno = uint32(i)
<|file_sep|>original/lib/wavreader/chunker/chunker_test.go
end: n,
errorState: io.EOF,... | errorState: io.EOF,
}
for i := 0; i < n; i++ {
m.chunks[i].contents = buf[l*i : l*(i+1)]
m.chunks[i].embargo = emb
m.chunks[i].seqno = uint32(i)
}
chm := &chunkReader{
parent: m,
current: -1,
seqno: 0xffffffff,
}
s, err := ioutil.ReadAll(chm)
if err != nil {
t.Error(err)
} else if !bytes.Equa... | <|file_sep|>lib/wavreader/chunker/chunker_test.go.diff
original:
m := &mp3Chunker{
updated:
m := &chunkContainer{
<|file_sep|>lib/wavreader/chunker/chunker_test.go.diff
original:
updated:
m.chunks[i].seqno = uint32(i)
<|file_sep|>original/lib/wavreader/chunker/chunker_test.go
end: n,
errorState: io.EOF,... | 8075e54722f7603d4e7cf43b4925690516493ce2 | lib/wavreader/chunker/chunker_test.go | lib/wavreader/chunker/chunker_test.go | Go |
<|file_sep|>home/.emacs.d/lisp/init-lisp.el.diff
original:
(defvar my-lisp-modes
'(cider-repl-mode clojure-mode emacs-lisp-mode lisp-mode))
updated:
<|file_sep|>home/.emacs.d/lisp/init-lisp.el.diff
original:
(dolist (lisp my-lisp-modes)
(add-hook (make-symbol (concat (symbol-name lisp) "-hook")) 'aggressive-in... | :commands (aggressive-indent-mode)
:init
(add-hook 'cider-repl-mode-hook 'aggressive-indent-mode)
(add-hook 'clojure-mode-hook 'aggressive-indent-mode)
(add-hook 'emacs-lisp-mode-hook 'aggressive-indent-mode)
(add-hook 'lisp-mode-hook 'aggressive-indent-mode))
(use-package paredit
:commands (paredit-mode... | <|file_sep|>home/.emacs.d/lisp/init-lisp.el.diff
original:
(defvar my-lisp-modes
'(cider-repl-mode clojure-mode emacs-lisp-mode lisp-mode))
updated:
<|file_sep|>home/.emacs.d/lisp/init-lisp.el.diff
original:
(dolist (lisp my-lisp-modes)
(add-hook (make-symbol (concat (symbol-name lisp) "-hook")) 'aggressive-in... | b8000bb33056605be3ff24c621e399e2404c7f03 | home/.emacs.d/lisp/init-lisp.el | home/.emacs.d/lisp/init-lisp.el | Emacs Lisp |
<|file_sep|>original/.github/pull_request_template.md
<|file_sep|>current/.github/pull_request_template.md
<|file_sep|>updated/.github/pull_request_template.md | Add any details pertaining to developers above the break.
- [ ] Depends on #PR
- Closes #ISSUE
---
Add a sentence or two describing this change in plain english. This will be displayed on the [changelog](https://osu.ppy.sh/home/changelog). A single screenshot or short gif is also welcomed. | <|file_sep|>original/.github/pull_request_template.md
<|file_sep|>current/.github/pull_request_template.md
<|file_sep|>updated/.github/pull_request_template.md
Add any details pertaining to developers above the break.
- [ ] Depends on #PR
- Closes #ISSUE
---
Add a sentence or two describing this change in plain en... | 3882f2345959dbfa945e1cdb9d53323b16a1e7f2 | .github/pull_request_template.md | .github/pull_request_template.md | Markdown |
<|file_sep|>keymaps/command-palette.cson.diff
original:
'.platform-darwin, .platform-darwin .command-palette .editor':
updated:
'.platform-darwin, .platform-darwin .command-palette atom-text-editor':
<|file_sep|>keymaps/command-palette.cson.diff
original:
'.platform-win32, .platform-win32 .command-palette .editor':
upd... | '.platform-darwin, .platform-darwin .command-palette atom-text-editor':
'cmd-shift-p': 'command-palette:toggle'
'.platform-win32, .platform-win32 .command-palette atom-text-editor':
'ctrl-shift-p': 'command-palette:toggle'
'.platform-linux, .platform-linux .command-palette atom-text-editor':
'ctrl-shift-p': 'co... | <|file_sep|>keymaps/command-palette.cson.diff
original:
'.platform-darwin, .platform-darwin .command-palette .editor':
updated:
'.platform-darwin, .platform-darwin .command-palette atom-text-editor':
<|file_sep|>keymaps/command-palette.cson.diff
original:
'.platform-win32, .platform-win32 .command-palette .editor':
upd... | 3ccd876f9d00da099c5a2f6a91c1554b3def4614 | keymaps/command-palette.cson | keymaps/command-palette.cson | CoffeeScript |
<|file_sep|>original/requirements.txt
molecule==2.14.0
pytest==3.6.0
python-vagrant==0.5.15
testinfra==1.13.1
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.14.0
pytest==3.6.0
python-vagrant==0.5.15
testinfra==1.13.1
tox==3.0.0
<|file_sep|>updated/requirements.txt | molecule==2.14.0
pytest==3.6.1
python-vagrant==0.5.15
testinfra==1.13.1
tox==3.0.0 | <|file_sep|>original/requirements.txt
molecule==2.14.0
pytest==3.6.0
python-vagrant==0.5.15
testinfra==1.13.1
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.14.0
pytest==3.6.0
python-vagrant==0.5.15
testinfra==1.13.1
tox==3.0.0
<|file_sep|>updated/requirements.txt
molecule==2.14.0
pytest==3.6.1
python-vagr... | 62584ea4e1999ddcb45ef6c8df10687728868618 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/spec/models/sanity_check_spec.rb
before do
SanityCheck.run
end
it 'should create a sanity check record with the correct row counts' do
expect(sanity_check.present?).to eq(true)
expect(sanity_check.report.studies.present?).to eq(true)
expect(sanity_check.report.... |
before do
SanityCheck.run
end
it 'should create a sanity check record with the correct row counts' do
expect(sanity_check.present?).to eq(true)
expect(sanity_check.report.studies.present?).to eq(true)
expect(sanity_check.report.studies.row_count).to eq(1)
expect(sanity_check.... | <|file_sep|>original/spec/models/sanity_check_spec.rb
before do
SanityCheck.run
end
it 'should create a sanity check record with the correct row counts' do
expect(sanity_check.present?).to eq(true)
expect(sanity_check.report.studies.present?).to eq(true)
expect(sanity_check.report.... | 92a6ca1ed9fbb7aa3e570f80ac289a48fa4db419 | spec/models/sanity_check_spec.rb | spec/models/sanity_check_spec.rb | Ruby |
<|file_sep|>original/README.md
# Chatter [](https://travis-ci.org/Jake0oo0/chatter) [](https://codeclimate.com/github/Jake0oo0/chatter)
... | # Chatter [](https://travis-ci.org/Jake0oo0/chatter) [](https://codeclimate.com/github/Jake0oo0/chatter)
Chatter is an IRC client built ... | <|file_sep|>original/README.md
# Chatter [](https://travis-ci.org/Jake0oo0/chatter) [](https://codeclimate.com/github/Jake0oo0/chatter)
... | a30ef1b6effbaccee2b968a5adbbaab9e2a1b2c9 | README.md | README.md | Markdown |
<|file_sep|>original/package.json
{
"name": "unformat-usd",
"version": "0.1.1",
"main": "index.js",
"description": "Convert a United States dollar-formatted string into a number.",
"homepage": "https://github.com/cfpb/unformat-usd",
"bugs": "https://github.com/cfpb/unformat-usd/issues",
"author": {
"n... | {
"name": "unformat-usd",
"version": "0.1.1",
"main": "index.js",
"description": "Convert a United States dollar-formatted string into a number.",
"homepage": "https://github.com/cfpb/unformat-usd",
"bugs": "https://github.com/cfpb/unformat-usd/issues",
"author": {
"name": "Consumer Financial Protecti... | <|file_sep|>original/package.json
{
"name": "unformat-usd",
"version": "0.1.1",
"main": "index.js",
"description": "Convert a United States dollar-formatted string into a number.",
"homepage": "https://github.com/cfpb/unformat-usd",
"bugs": "https://github.com/cfpb/unformat-usd/issues",
"author": {
"n... | d1c88413dd8f8563fcd3fb35c03454aba48558c7 | package.json | package.json | JSON |
<|file_sep|>index.html.diff
original:
<title></title>
<link rel="stylesheet" href="">
updated:
<title>Oh My Codeness</title>
<link rel="stylesheet" href="styles/main.css">
<|file_sep|>original/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Oh My Codeness</title>
<link rel="stylesheet" href="styles/main.css">
</head>
<body id="index">
<div class="container">
<section>
<h1>Oh My Codeness</h1>
<h2>Hi, I'm Zippo.</h2>
... | <|file_sep|>index.html.diff
original:
<title></title>
<link rel="stylesheet" href="">
updated:
<title>Oh My Codeness</title>
<link rel="stylesheet" href="styles/main.css">
<|file_sep|>original/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge... | cabb22666ed6def2f72eb298b0cd4db7cf9f6b59 | index.html | index.html | HTML |
<|file_sep|>app.py.diff
original:
from flask import Flask, render_template
updated:
from flask import Flask, render_template, request, redirect, url_for
<|file_sep|>app.py.diff
original:
updated:
genres = ('Hip Hop', 'Electronic', 'R&B')
songs = [\
{ 'rank':'1', 'title':'The Motto', 'artist':'Drake', 'year':'2013', ... | songs = [\
{ 'rank':'1', 'title':'The Motto', 'artist':'Drake', 'year':'2013', 'genre':'Hip Hop' },\
{ 'rank':'2', 'title':'Started from the Bottom', 'artist':'Drake', 'year':'2012', 'genre':'Hip Hop' },\
{ 'rank':'3', 'title':'Thrift Shop', 'artist':'Macklemore', 'year':'2013', 'genre':'Electronic' }\
]
@app.... | <|file_sep|>app.py.diff
original:
from flask import Flask, render_template
updated:
from flask import Flask, render_template, request, redirect, url_for
<|file_sep|>app.py.diff
original:
updated:
genres = ('Hip Hop', 'Electronic', 'R&B')
songs = [\
{ 'rank':'1', 'title':'The Motto', 'artist':'Drake', 'year':'2013', ... | f935a14967f8b66342d34efca9ceff9eecd384be | app.py | app.py | Python |
<|file_sep|>original/app/controllers/districts_controller.rb
<|file_sep|>current/app/controllers/districts_controller.rb
<|file_sep|>updated/app/controllers/districts_controller.rb | class DistrictsController < ApplicationController
def index
end
def school_districts
location_id = Location.find_by(loc_code: "nyc").id
districts_num_list = School.districts_arr(location_id, :district_no)
@json = Array.new
districts_num_list.each do |d|
schools_in_district = School.district_schools(d)
... | <|file_sep|>original/app/controllers/districts_controller.rb
<|file_sep|>current/app/controllers/districts_controller.rb
<|file_sep|>updated/app/controllers/districts_controller.rb
class DistrictsController < ApplicationController
def index
end
def school_districts
location_id = Location.find_by(loc_code: "nyc"... | 42f40f1a0966834a18ccb01e1b57ba6030d2a390 | app/controllers/districts_controller.rb | app/controllers/districts_controller.rb | Ruby |
<|file_sep|>original/.travis.yml
- rbx-3
env:
global:
- JRUBY_OPTS='--debug' # get more accurate coverage data in JRuby
matrix:
- 'TASK=spec'
- 'TASK=ascii_spec'
- 'TASK=internal_investigation'
matrix:
allow_failures:
- rvm: ruby-head
- rvm: rbx-3
fast_finish: true
before_install:
- ... | - rbx-3
env:
global:
- JRUBY_OPTS='--debug' # get more accurate coverage data in JRuby
matrix:
- 'TASK=spec'
- 'TASK=ascii_spec'
- 'TASK=internal_investigation'
matrix:
allow_failures:
- rvm: jruby-9.0.1.0
- rvm: ruby-head
- rvm: rbx-3
fast_finish: true
before_install:
- gem upda... | <|file_sep|>original/.travis.yml
- rbx-3
env:
global:
- JRUBY_OPTS='--debug' # get more accurate coverage data in JRuby
matrix:
- 'TASK=spec'
- 'TASK=ascii_spec'
- 'TASK=internal_investigation'
matrix:
allow_failures:
- rvm: ruby-head
- rvm: rbx-3
fast_finish: true
before_install:
- ... | 225451001d03d9a429272366938222a1f0b92448 | .travis.yml | .travis.yml | YAML |
<|file_sep|>TwigBundle.php.diff
original:
public function getPath()
updated:
protected function getPath()
<|file_sep|>original/TwigBundle.php
parent::registerExtensions($container);
$container->addCompilerPass(new TwigEnvironmentPass());
}
/**
* {@inheritdoc}
*/
public fu... | parent::registerExtensions($container);
$container->addCompilerPass(new TwigEnvironmentPass());
}
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}
/**
* {@inheritdoc}
*/
protected function getPath()
{
r... | <|file_sep|>TwigBundle.php.diff
original:
public function getPath()
updated:
protected function getPath()
<|file_sep|>original/TwigBundle.php
parent::registerExtensions($container);
$container->addCompilerPass(new TwigEnvironmentPass());
}
/**
* {@inheritdoc}
*/
public fu... | 9e0c5c84fae044e00c6c87c35bdac24e9cc42322 | TwigBundle.php | TwigBundle.php | PHP |
<|file_sep|>original/MMM-Scrobbler.css
margin-top:20px;
width:200px;
}
.album-art-container{
}
.album-art{
width:200px;
}
.meta{
text-align: left;
}
.track-name{
font-size:20px;
font-weight: bold;
margin: 0;
}
.artist-name{
font-size:20px;
margin: 0px;}
<|file_sep|>current/MMM-Scrobbler.css
margin-top:20px;
width:200... | margin-top:20px;
width:200px;
}
.album-art-container{
}
.album-art{
width:200px;
}
.meta{
}
.track-name{
font-size:20px;
font-weight: bold;
margin: 0;
}
.artist-name{
font-size:20px;
margin: 0px;}
| <|file_sep|>original/MMM-Scrobbler.css
margin-top:20px;
width:200px;
}
.album-art-container{
}
.album-art{
width:200px;
}
.meta{
text-align: left;
}
.track-name{
font-size:20px;
font-weight: bold;
margin: 0;
}
.artist-name{
font-size:20px;
margin: 0px;}
<|file_sep|>current/MMM-Scrobbler.css
margin-top:20px;
width:200... | edf63b407f056eb35f73e499af0225b5424b8d36 | MMM-Scrobbler.css | MMM-Scrobbler.css | CSS |
<|file_sep|>index.js.diff
original:
const win = () => execa('WMIC', ['Path', 'Win32_Battery', 'Get', 'BatteryStatus']).then(res => {
if (!res.stdout) {
updated:
const win = () => execa.stdout('WMIC', ['Path', 'Win32_Battery', 'Get', 'BatteryStatus']).then(stdout => {
if (!stdout) {
<|file_sep|>original/index.js
const... | const linuxBattery = require('linux-battery');
const osxBattery = require('osx-battery');
const linux = () => linuxBattery().then(res => res[0].powerSupply === 'yes');
const osx = () => osxBattery().then(res => res.isCharging);
const win = () => execa.stdout('WMIC', ['Path', 'Win32_Battery', 'Get', 'BatteryStatus']).... | <|file_sep|>index.js.diff
original:
const win = () => execa('WMIC', ['Path', 'Win32_Battery', 'Get', 'BatteryStatus']).then(res => {
if (!res.stdout) {
updated:
const win = () => execa.stdout('WMIC', ['Path', 'Win32_Battery', 'Get', 'BatteryStatus']).then(stdout => {
if (!stdout) {
<|file_sep|>original/index.js
const... | e6977ae4dc1a19f1882868ef6e88fae653d925f1 | index.js | index.js | JavaScript |
<|file_sep|>spec/spec_helper.rb.diff
original:
updated:
require 'coveralls'
Coveralls.wear!
<|file_sep|>original/spec/spec_helper.rb
require 'bundler/setup'
require 'space2underscore'
Bundler.setup
RSpec.configure do |config|
config.order = 'random'
config.expect_with :rspec do |rspec|
rspec.syntax = :expect... | require 'bundler/setup'
require 'coveralls'
Coveralls.wear!
require 'space2underscore'
require 'simplecov'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/vendor/'
end
Bundler.setup
RSpec.config... | <|file_sep|>spec/spec_helper.rb.diff
original:
updated:
require 'coveralls'
Coveralls.wear!
<|file_sep|>original/spec/spec_helper.rb
require 'bundler/setup'
require 'space2underscore'
Bundler.setup
RSpec.configure do |config|
config.order = 'random'
config.expect_with :rspec do |rspec|
rspec.syntax = :expect... | 28e27fbd1f9de63cb7c1ef1e59cc7808b7f0d991 | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>original/test/fixtures/rails_app/app/models/article.rb
class Article < ActiveRecord::Base
end
<|file_sep|>current/test/fixtures/rails_app/app/models/article.rb
class Article < ActiveRecord::Base
end
<|file_sep|>updated/test/fixtures/rails_app/app/models/article.rb | ##
# This model is not enabled in typus but is used to test things things like:
#
# - Article.read_model_config
#
##
class Article < ActiveRecord::Base
end | <|file_sep|>original/test/fixtures/rails_app/app/models/article.rb
class Article < ActiveRecord::Base
end
<|file_sep|>current/test/fixtures/rails_app/app/models/article.rb
class Article < ActiveRecord::Base
end
<|file_sep|>updated/test/fixtures/rails_app/app/models/article.rb
##
# This model is not enabled in typus but... | b5c3577d909b281cbbb32d88f568ce62fa1ccc51 | test/fixtures/rails_app/app/models/article.rb | test/fixtures/rails_app/app/models/article.rb | Ruby |
<|file_sep|>original/go/tests/test_urls.py
<|file_sep|>current/go/tests/test_urls.py
<|file_sep|>updated/go/tests/test_urls.py | from django.core.urlresolvers import reverse
from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper
class TestLoginAs(GoDjangoTestCase):
def setUp(self):
self.vumi_helper = self.add_helper(DjangoVumiApiHelper())
self.superuser_helper = self.vumi_helper.make_django_user(
... | <|file_sep|>original/go/tests/test_urls.py
<|file_sep|>current/go/tests/test_urls.py
<|file_sep|>updated/go/tests/test_urls.py
from django.core.urlresolvers import reverse
from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper
class TestLoginAs(GoDjangoTestCase):
def setUp(self):
self... | a3d5736fdd8ae747bb7c375ddf1e7934f2227d25 | go/tests/test_urls.py | go/tests/test_urls.py | Python |
<|file_sep|>setup/base_setup.sh.diff
original:
dir="$PWD"
updated:
dir="/vagrant/setup"
<|file_sep|>original/setup/base_setup.sh
#
echo ===================================
echo =
echo = base setup for vm
echo =
echo ===================================
dir="$PWD"
. "$dir/environmental_variables.sh"
. "$dir/common_b... |
echo ===================================
echo =
echo = base setup for vm
echo =
echo ===================================
dir="/vagrant/setup"
. "$dir/environmental_variables.sh"
mkdir -p $ROOT_PROV_DIR
. "$dir/common_build_dependencies.sh"
. "$dir/encodings.sh"
. "$dir/app_user_as_linux_user.sh"
. "$dir/nodejs.... | <|file_sep|>setup/base_setup.sh.diff
original:
dir="$PWD"
updated:
dir="/vagrant/setup"
<|file_sep|>original/setup/base_setup.sh
#
echo ===================================
echo =
echo = base setup for vm
echo =
echo ===================================
dir="$PWD"
. "$dir/environmental_variables.sh"
. "$dir/common_b... | 178a1a17c33cd5dada60679e4b6819fec117081e | setup/base_setup.sh | setup/base_setup.sh | Shell |
<|file_sep|>original/packages/vega-typings/README.md
# Vega-Typings
[](https://www.npmjs.com/package/vega-typings)
Typings for [Vega](https://github.com/vega/vega).
## Release Process
To release a new version, make sure that everything works. Then run `ya... | # Vega-Typings
[](https://www.npmjs.com/package/vega-typings)
Typings for [Vega](https://github.com/vega/vega). | <|file_sep|>original/packages/vega-typings/README.md
# Vega-Typings
[](https://www.npmjs.com/package/vega-typings)
Typings for [Vega](https://github.com/vega/vega).
## Release Process
To release a new version, make sure that everything works. Then run `ya... | eced44eb31fc4d64d36b165a360430fee450ad9e | packages/vega-typings/README.md | packages/vega-typings/README.md | Markdown |
<|file_sep|>original/package.json
{
"name": "respect-boundary-node-stream",
"version": "1.0.0",
"description": "Split inbound stream into messages with a delimeter, append this delimiter to outgoing chunks",
"main": "index.js",
"scripts": {
"test": "mocha test/"
},
"repository": {
"type": "git",
... | {
"name": "splitJoinStream",
"version": "1.0.0",
"description": "Split inbound stream into messages with a delimeter, append this delimiter to outgoing chunks",
"main": "index.js",
"scripts": {
"test": "mocha test/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/IlyaBiryukov/... | <|file_sep|>original/package.json
{
"name": "respect-boundary-node-stream",
"version": "1.0.0",
"description": "Split inbound stream into messages with a delimeter, append this delimiter to outgoing chunks",
"main": "index.js",
"scripts": {
"test": "mocha test/"
},
"repository": {
"type": "git",
... | 960053ade98314014567df708aa3d86bc2e4ba2d | package.json | package.json | JSON |
<|file_sep|>original/config.mk
##### Options which a user might set before building go here #####
# Where to install idris2 binaries and libraries (must not be a relative path)
PREFIX ?= $(HOME)/.idris2
# For Windows targets. Set to 1 to support Windows 7.
OLD_WIN ?= 0
###############################################... | ##### Options which a user might set before building go here #####
# Where to install idris2 binaries and libraries (must be an absolute path)
PREFIX ?= $(HOME)/.idris2
# For Windows targets. Set to 1 to support Windows 7.
OLD_WIN ?= 0
##################################################################
RANLIB ?= ran... | <|file_sep|>original/config.mk
##### Options which a user might set before building go here #####
# Where to install idris2 binaries and libraries (must not be a relative path)
PREFIX ?= $(HOME)/.idris2
# For Windows targets. Set to 1 to support Windows 7.
OLD_WIN ?= 0
###############################################... | 722bab81100e3272971cc5f0141e8a2ef8aa451d | config.mk | config.mk | Makefile |
<|file_sep|>original/README.rst
django-wkhtmltopdf
==================
[](https://travis-ci.org/incuna/django-wkhtmltopdf)
Converts html to PDF
--------------------
Provides a thin wrapper to the wkhtmltopdf binary from http://code.google.com/p/wkht... | django-wkhtmltopdf
==================
.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png
:target: https://travis-ci.org/incuna/django-wkhtmltopdf
Converts html to PDF
--------------------
Provides a thin wrapper to the wkhtmltopdf binary from http://code.google.com/p/wkhtmltopdf/
Requirements
-----... | <|file_sep|>original/README.rst
django-wkhtmltopdf
==================
[](https://travis-ci.org/incuna/django-wkhtmltopdf)
Converts html to PDF
--------------------
Provides a thin wrapper to the wkhtmltopdf binary from http://code.google.com/p/wkht... | cceabb0f893b67ff8924e7939ab1675235f88dca | README.rst | README.rst | reStructuredText |
<|file_sep|>build.xml.diff
original:
updated:
<pathelement location="lib/h2.jar" />
<|file_sep|>build.xml.diff
original:
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" />
updated:
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" includeantruntime="no" />
<|file_s... | <property name="build" value="build" />
<path id="classpath">
<pathelement location="lib/netty.jar" />
<pathelement location="lib/htmlparser.jar" />
<pathelement location="lib/h2.jar" />
<pathelement path="${build}" />
</path>
<target name="init">
<mkdir dir="${build}" />
</target... | <|file_sep|>build.xml.diff
original:
updated:
<pathelement location="lib/h2.jar" />
<|file_sep|>build.xml.diff
original:
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" />
updated:
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" includeantruntime="no" />
<|file_s... | 4c5ffa4bd823fa925953e1dd7808ec9778fb84b8 | build.xml | build.xml | XML |
<|file_sep|>original/package.json
{
"name": "js-library",
"version": "1.0.0",
"private": true,
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-watch": "0.4.3",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-uglify": "0.2.0",
"grunt-contrib-jshint": "0.4.3... | {
"name": "js-library",
"version": "1.0.1-SNAPSHOT",
"private": true,
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-watch": "0.4.3",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-uglify": "0.2.0",
"grunt-contrib-jshint": "0.4.3",
"grunt-contrib... | <|file_sep|>original/package.json
{
"name": "js-library",
"version": "1.0.0",
"private": true,
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-watch": "0.4.3",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-uglify": "0.2.0",
"grunt-contrib-jshint": "0.4.3... | 2055342a0d730ec96238e9ff111cce43a7be066a | package.json | package.json | JSON |
<|file_sep|>requirements/base.txt.diff
original:
pip==18.1
updated:
pip==19.0.3
<|file_sep|>requirements/base.txt.diff
original:
pytz==2018.5
updated:
pytz==2018.9
<|file_sep|>original/requirements/base.txt
django-reversion==2.0.13
django-taggit==0.23.0
django-timezone-field==3.0
django-user-accounts==2.0.3
easy-thumbn... | django-reversion==2.0.13
django-taggit==0.23.0
django-timezone-field==3.0
django-user-accounts==2.0.3
easy-thumbnails==2.5
Fabric==1.14.0
fabtools==0.20.0
gunicorn==19.9.0
markdown==2.6.11
Pillow==5.2.0
pinax-eventlog==2.0.3
pip==19.0.3
psycopg2==2.7.5
pytz==2018.9
raven==6.9.0
redis==2.10.6
sendgrid-django==4.2.0
wagt... | <|file_sep|>requirements/base.txt.diff
original:
pip==18.1
updated:
pip==19.0.3
<|file_sep|>requirements/base.txt.diff
original:
pytz==2018.5
updated:
pytz==2018.9
<|file_sep|>original/requirements/base.txt
django-reversion==2.0.13
django-taggit==0.23.0
django-timezone-field==3.0
django-user-accounts==2.0.3
easy-thumbn... | 00d9e246cb7993ca38f8af7ccab6723f247d881e | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>.travis.yml.diff
original:
- "6"
updated:
- '6'
<|file_sep|>.travis.yml.diff
original:
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6"
before_script:
- npm install -g bower
- bower install
bef... | language: node_js
node_js:
- '6'
before_script:
- npm install -g bower
- bower install
script: npm test
sudo: false
addons:
firefox: '51.0'
dist: xenial
services:
- xvfb | <|file_sep|>.travis.yml.diff
original:
- "6"
updated:
- '6'
<|file_sep|>.travis.yml.diff
original:
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6"
before_script:
- npm install -g bower
- bower install
bef... | b5988fd18d6ea47da669b9c633b039d0d90d8cda | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/assets/javascripts/priority.js.coffee
#= require lazysizes/plugins/rias/ls.rias
#= require lazysizes/plugins/bgset/ls.bgset
#= require lazysizes/plugins/unload/ls.unload
#= require lazysizes
<|file_sep|>current/app/assets/javascripts/priority.js.coffee
#= require lazysizes/plugins/rias/ls.rias
... | #= require lazysizes/plugins/rias/ls.rias
#= require lazysizes/plugins/bgset/ls.bgset
#= require lazysizes/plugins/respimg/ls.respimg
# require lazysizes/plugins/custommedia/ls.custommedia
#= require lazysizes | <|file_sep|>original/app/assets/javascripts/priority.js.coffee
#= require lazysizes/plugins/rias/ls.rias
#= require lazysizes/plugins/bgset/ls.bgset
#= require lazysizes/plugins/unload/ls.unload
#= require lazysizes
<|file_sep|>current/app/assets/javascripts/priority.js.coffee
#= require lazysizes/plugins/rias/ls.rias
... | 2e42700217497d65d07ececd1413a9dc0bd05545 | app/assets/javascripts/priority.js.coffee | app/assets/javascripts/priority.js.coffee | CoffeeScript |
<|file_sep|>original/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java
<|file_sep|>current/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java
<|file_sep|>updated/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java | package chapter_5;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.collection.IsIterableContainingInOrder.contains;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import dat... | <|file_sep|>original/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java
<|file_sep|>current/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java
<|file_sep|>updated/cracking-the-coding-interview/test/chapter_5/TestDrawLine.java
package chapter_5;
import static org.hamcrest.MatcherAssert.assertT... | fb2587baf101c7d8b4c455f2321482968776cd4f | cracking-the-coding-interview/test/chapter_5/TestDrawLine.java | cracking-the-coding-interview/test/chapter_5/TestDrawLine.java | Java |
<|file_sep|>requirements-test.txt.diff
original:
coverage==5.3.1 # Test coverage
updated:
coverage==5.3.1 # Test coverage
<|file_sep|>original/requirements-test.txt
# Testing
coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.790 ... | # Testing
coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.812 # Static typing | <|file_sep|>requirements-test.txt.diff
original:
coverage==5.3.1 # Test coverage
updated:
coverage==5.3.1 # Test coverage
<|file_sep|>original/requirements-test.txt
# Testing
coverage==5.3.1 # Test coverage
flake8==3.8.4 # Python linting
mypy==0.790 ... | f08d16d314d995c53035240065e72500bf9caab8 | requirements-test.txt | requirements-test.txt | Text |
<|file_sep|>original/fbsimctl/Documentation/Architecture.md
# Rationale & Architecture
The `FBSimulatorControl` Framework exposes a lot of functionality over it's API surface. The Framework can be dropped in to any Mac OS X App, CLI or Test Projects, an the API can be used directly. This isn't super-convenient for ma... | # Rationale & Architecture
The `FBSimulatorControl` Framework exposes a lot of functionality over it's API surface. The Framework can be dropped in to any Mac OS X App, CLI or Test Projects, an the API can be used directly. This isn't super-convenient for many Users who just want access to `FBSimulatorControl` in the... | <|file_sep|>original/fbsimctl/Documentation/Architecture.md
# Rationale & Architecture
The `FBSimulatorControl` Framework exposes a lot of functionality over it's API surface. The Framework can be dropped in to any Mac OS X App, CLI or Test Projects, an the API can be used directly. This isn't super-convenient for ma... | 178c832a97e99c9d7f7fc8aafcdee6b6812b0c1f | fbsimctl/Documentation/Architecture.md | fbsimctl/Documentation/Architecture.md | Markdown |
<|file_sep|>original/public/Try.elm
import Website.Message (report)
main = report [markdown|
# Online Editor
Write and compile code online!
* <a href="/edit/examples/Elements/HelloWorld.elm" target="_top">Hello World!</a>
* <a href="/edit/examples/Elements/Image.elm" target="_top">Images</a>
* <a href="/edit/... | import Website.Message (report)
main = report [markdown|
# Online Editor
Write and compile code online!
* <a href="/edit/examples/Elements/HelloWorld.elm" target="_top">Hello World!</a>
* <a href="/edit/examples/Reactive/Position.elm" target="_top">Mouse</a>
* <a href="/edit/examples/Intermediate/Clock.elm" t... | <|file_sep|>original/public/Try.elm
import Website.Message (report)
main = report [markdown|
# Online Editor
Write and compile code online!
* <a href="/edit/examples/Elements/HelloWorld.elm" target="_top">Hello World!</a>
* <a href="/edit/examples/Elements/Image.elm" target="_top">Images</a>
* <a href="/edit/... | 50a497763d916f4776636ff3a453fc66582b8a95 | public/Try.elm | public/Try.elm | Elm |
<|file_sep|>original/src/__init__.py
# browse
"browse",
# settings_proxy
"OverrideAuditOpenFileCommand",
"OverrideAuditEditSettingsCommand",
# events/contexts
"OverrideAuditEventListener",
"OverrideAuditContextListener",
# commands/*
"OverrideAuditPackageReportCommand",
"... |
# browse
"browse",
# settings_proxy
"OverrideAuditOpenFileCommand",
"OverrideAuditEditSettingsCommand",
# events/contexts
"OverrideAuditEventListener",
"CreateOverrideEventListener",
"OverrideAuditContextListener",
# commands/*
"OverrideAuditPackageReportCommand",
"Ov... | <|file_sep|>original/src/__init__.py
# browse
"browse",
# settings_proxy
"OverrideAuditOpenFileCommand",
"OverrideAuditEditSettingsCommand",
# events/contexts
"OverrideAuditEventListener",
"OverrideAuditContextListener",
# commands/*
"OverrideAuditPackageReportCommand",
"... | 03fb3e68f9ec9432a25c60bda06fcd49d604befc | src/__init__.py | src/__init__.py | Python |
<|file_sep|>ansible/roles.yml.diff
original:
- src: bbatsche.PostgreSQL-Install
version: v2.1.0
- src: bbatsche.PostgreSQL-Manage
version: v2.1.0
- src: bbatsche.WordPress
version: v1.2.1
updated:
<|file_sep|>original/ansible/roles.yml
- src: bbatsche.PHP
version: v2.2.0
- src: bbatsche.Node
version: v3.0... | - src: bbatsche.Node
version: v3.0.0
- src: bbatsche.Python
version: v2.1.0
- src: bbatsche.Ruby
version: v3.0.0
- src: bbatsche.MongoDB-Install
version: v2.1.2
- src: bbatsche.MongoDB-Manage
version: v2.1.1
- src: bbatsche.MySQL
version: v3.1.2
- src: bbatsche.PostgreSQL
version: v3.0.0
| <|file_sep|>ansible/roles.yml.diff
original:
- src: bbatsche.PostgreSQL-Install
version: v2.1.0
- src: bbatsche.PostgreSQL-Manage
version: v2.1.0
- src: bbatsche.WordPress
version: v1.2.1
updated:
<|file_sep|>original/ansible/roles.yml
- src: bbatsche.PHP
version: v2.2.0
- src: bbatsche.Node
version: v3.0... | b1c1fc5907216093211fe5ea1585b861f8649f07 | ansible/roles.yml | ansible/roles.yml | YAML |
<|file_sep|>pyswarms/utils/console_utils.py.diff
original:
def cli_print(message, verbosity, threshold):
updated:
# Import from __future__
from __future__ import with_statement
from __future__ import absolute_import
from __future__ import print_function
# Import modules
import logging
def cli_print(message, verbosity... | final cost from the optimization procedure.
pos : numpy.ndarray or list
best position found
verbosity : int
verbosity setting of the user.
logger : logging.getLogger
logger instance
"""
# Cuts the length of the best position if it's too long
if len(list(pos))... | <|file_sep|>pyswarms/utils/console_utils.py.diff
original:
def cli_print(message, verbosity, threshold):
updated:
# Import from __future__
from __future__ import with_statement
from __future__ import absolute_import
from __future__ import print_function
# Import modules
import logging
def cli_print(message, verbosity... | 6ae83f01eacceb140435e72a216fa88bd97f2b0c | pyswarms/utils/console_utils.py | pyswarms/utils/console_utils.py | Python |
<|file_sep|>templates/rustdoc.hbs.diff
original:
<div class="{{content.rustdoc_body_class}}" tabindex="1">
updated:
<div id="rustdoc_body_wrapper" class="{{content.rustdoc_body_class}}" tabindex="-1">
<|file_sep|>original/templates/rustdoc.hbs
<!DOCTYPE html>
<html lang="en">
<head>
{{{content.rustdoc_head}}}
<... | <link rel="stylesheet" href="/style.css?{{cratesfyi_version_safe}}" type="text/css" media="all" />
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Docs.rs">
</head>
<body>
{{> navigation_rustdoc}}
<div id="rustdoc_body_wrapper" class="{{content.rustdoc_body_class}}"... | <|file_sep|>templates/rustdoc.hbs.diff
original:
<div class="{{content.rustdoc_body_class}}" tabindex="1">
updated:
<div id="rustdoc_body_wrapper" class="{{content.rustdoc_body_class}}" tabindex="-1">
<|file_sep|>original/templates/rustdoc.hbs
<!DOCTYPE html>
<html lang="en">
<head>
{{{content.rustdoc_head}}}
<... | 9164b48316c1d95766b7597a583175b224961b1d | templates/rustdoc.hbs | templates/rustdoc.hbs | Handlebars |
<|file_sep|>original/lib/ch04/gps2_problem7.rb
<|file_sep|>current/lib/ch04/gps2_problem7.rb
<|file_sep|>updated/lib/ch04/gps2_problem7.rb | require 'gps3'
require 'pp'
gps = GPS2.new([:son_at_home,
:have_money,
:have_works],
GPS::SCHOOL_OPS +
[
GPS2::op(:taxi_son_to_school,
:preconds => [:son_at_home, :have_money],
:add_list =>... | <|file_sep|>original/lib/ch04/gps2_problem7.rb
<|file_sep|>current/lib/ch04/gps2_problem7.rb
<|file_sep|>updated/lib/ch04/gps2_problem7.rb
require 'gps3'
require 'pp'
gps = GPS2.new([:son_at_home,
:have_money,
:have_works],
GPS::SCHOOL_OPS +
[
... | 22a3205ac407b28d07d56e00f2edd8d89e998446 | lib/ch04/gps2_problem7.rb | lib/ch04/gps2_problem7.rb | Ruby |
<|file_sep|>original/code/MobileSiteTreeExtension.php
<?php
/**
* @package mobile
*/
class MobileSiteTreeExtension extends DataObjectDecorator {
function MetaTags(&$tags) {
$config = SiteConfig::current_site_config();
// Ensure a canonical link is placed, for semantic correctness and SEO
if(Controller::has_... | <?php
/**
* @package mobile
*/
class MobileSiteTreeExtension extends DataObjectDecorator {
function MetaTags(&$tags) {
$config = SiteConfig::current_site_config();
// Ensure a canonical link is placed, for semantic correctness and SEO
if(Controller::has_curr() && Controller::curr()->hasMethod("onMobileDomai... | <|file_sep|>original/code/MobileSiteTreeExtension.php
<?php
/**
* @package mobile
*/
class MobileSiteTreeExtension extends DataObjectDecorator {
function MetaTags(&$tags) {
$config = SiteConfig::current_site_config();
// Ensure a canonical link is placed, for semantic correctness and SEO
if(Controller::has_... | 2ecbb66a38da9e6326956e0beca2175521012696 | code/MobileSiteTreeExtension.php | code/MobileSiteTreeExtension.php | PHP |
<|file_sep|>src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala.diff
original:
updated:
val parser = new SbtCommandParser
def canParsePhrase(s: String) {
val result = parser.parseResult(s)
result match {
case ns: parser.NoSuccess => fail(ns.toString)
case _ =>
}
}
... | case ns: parser.NoSuccess => fail(ns.toString)
case _ =>
}
}
def cannotParsePhrase(s: String) {
val result = parser.parseResult(s)
result match {
case parser.Success(result, _) => fail("wasn't supposed to, but parsed: " + result)
case _ =>
}
}
describe(... | <|file_sep|>src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala.diff
original:
updated:
val parser = new SbtCommandParser
def canParsePhrase(s: String) {
val result = parser.parseResult(s)
result match {
case ns: parser.NoSuccess => fail(ns.toString)
case _ =>
}
}
... | 58d6a1a2ad8738916365a4f05cdc03aedd751025 | src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala | src/test/scala/org/scalatest/tools/SbtCommandParserSpec.scala | Scala |
<|file_sep|>original/toolchains/syno-avoton-5.1/Makefile
TC_NAME = syno-$(TC_ARCH)
TC_ARCH = avoton
TC_VERS = 5.1
TC_FIRMWARE = 5.0-4458
TC_DIST_NAME = gcc473_glibc217_x86_64_avoton-GPL.tgz
TC_EXT = tgz
TC_DIST_SITE = http://sourceforge.net/projects/dsgpl/files/DSM%205.1%20Tool%20Chains/Intel%20x86%20Linux%203.2.40%... | TC_NAME = syno-$(TC_ARCH)
TC_ARCH = avoton
TC_VERS = 5.1
TC_FIRMWARE = 5.1-5004
TC_DIST_NAME = gcc473_glibc217_x86_64_avoton-GPL.tgz
TC_EXT = tgz
TC_DIST_SITE = http://sourceforge.net/projects/dsgpl/files/DSM%205.1%20Tool%20Chains/Intel%20x86%20Linux%203.2.40%20%28Avoton%29
TC_BASE_DIR = x86_64-pc-linux-gnu
TC_PREF... | <|file_sep|>original/toolchains/syno-avoton-5.1/Makefile
TC_NAME = syno-$(TC_ARCH)
TC_ARCH = avoton
TC_VERS = 5.1
TC_FIRMWARE = 5.0-4458
TC_DIST_NAME = gcc473_glibc217_x86_64_avoton-GPL.tgz
TC_EXT = tgz
TC_DIST_SITE = http://sourceforge.net/projects/dsgpl/files/DSM%205.1%20Tool%20Chains/Intel%20x86%20Linux%203.2.40%... | ecdc244bf14815643d4eb4c409d971f0c8266f9f | toolchains/syno-avoton-5.1/Makefile | toolchains/syno-avoton-5.1/Makefile | unknown |
<|file_sep|>original/communication/slack-config/sig-docs/docs-channels.yaml
channels:
- name: kubernetes-docs-de
- name: kubernetes-docs-es
- name: kubernetes-docs-fr
- name: kubernetes-docs-id
- name: kubernetes-docs-it
- name: kubernetes-docs-ja
- name: kubernetes-docs-ko
- name: kubernetes-docs-pt
... | channels:
- name: kubernetes-docs-de
- name: kubernetes-docs-es
- name: kubernetes-docs-fr
- name: kubernetes-docs-hi
- name: kubernetes-docs-id
- name: kubernetes-docs-it
- name: kubernetes-docs-ja
- name: kubernetes-docs-ko
- name: kubernetes-docs-pt
- name: kubernetes-docs-zh | <|file_sep|>original/communication/slack-config/sig-docs/docs-channels.yaml
channels:
- name: kubernetes-docs-de
- name: kubernetes-docs-es
- name: kubernetes-docs-fr
- name: kubernetes-docs-id
- name: kubernetes-docs-it
- name: kubernetes-docs-ja
- name: kubernetes-docs-ko
- name: kubernetes-docs-pt
... | 38950c5cd30fd1831f013868dfdd23ae304c0240 | communication/slack-config/sig-docs/docs-channels.yaml | communication/slack-config/sig-docs/docs-channels.yaml | YAML |
<|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md | The MIT License (MIT)
Copyright (c) 2015 Konrad Blum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | <|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md
The MIT License (MIT)
Copyright (c) 2015 Konrad Blum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Softwar... | f5db1c2981611f25d47c8b340e1ccb4da16fd0be | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>apps/home/client/index.coffee.diff
original:
updated:
{ default: Player } = require '@vimeo/player';
<|file_sep|>apps/home/client/index.coffee.diff
original:
$html = $('html, body')
updated:
<|file_sep|>apps/home/client/index.coffee.diff
original:
$sections = $el.find('.js-section')
updated:
ifram... |
{ mountWithApolloProvider } = require '../../../react/apollo/index.js'
{ default: DescriptiveCarousel } = require '../../../react/components/DescriptiveCarousel/index.js'
module.exports = ->
loggedOutNav()
mountWithApolloProvider DescriptiveCarousel, { slides }, $('.js-home-carousel')
$el = $('.js-home')
i... | <|file_sep|>apps/home/client/index.coffee.diff
original:
updated:
{ default: Player } = require '@vimeo/player';
<|file_sep|>apps/home/client/index.coffee.diff
original:
$html = $('html, body')
updated:
<|file_sep|>apps/home/client/index.coffee.diff
original:
$sections = $el.find('.js-section')
updated:
ifram... | 3f3d1c05c49d91ff28dead34b8915d0375070ed4 | apps/home/client/index.coffee | apps/home/client/index.coffee | CoffeeScript |
<|file_sep|>data/ubuntu/1404.yaml.diff
original:
ldapclient::ldapclient_packages:
- ldap-auth-client
- ldap-utils
- libldap-2.4-2
updated:
<|file_sep|>original/data/ubuntu/1404.yaml
---
classes:
- base
ldapclient::ldapclient_packages:
- ldap-auth-client
- ldap-utils
- libldap-2.4-2
base... | ---
classes:
- base
base::basepackages:
- bash
- ca-certificates
- git
- zsh
- apt-file
ldapclient::ldapclient_packages:
- ldap-auth-client
- ldap-utils
- libldap-2.4-2
subversionclient::packages:
- subversion | <|file_sep|>data/ubuntu/1404.yaml.diff
original:
ldapclient::ldapclient_packages:
- ldap-auth-client
- ldap-utils
- libldap-2.4-2
updated:
<|file_sep|>original/data/ubuntu/1404.yaml
---
classes:
- base
ldapclient::ldapclient_packages:
- ldap-auth-client
- ldap-utils
- libldap-2.4-2
base... | e815dd00179997aec2ed6b8205daaf5e2b0028d9 | data/ubuntu/1404.yaml | data/ubuntu/1404.yaml | YAML |
<|file_sep|>.travis.yml.diff
original:
dist: trusty
sudo: required
updated:
<|file_sep|>.travis.yml.diff
original:
# Compiler selection
compiler:
- gcc
# - clang
updated:
matrix:
include:
- os: linux
sudo: required
dist: trusty
compiler: gcc
env: HOPSAN_QMAKE_SPEC=linux-g++
- os: o... | env: HOPSAN_QMAKE_SPEC=mac-gcc
# Build steps
script:
- export QT_SELECT=4
- cd Dependencies
- ./setupDiscount.sh
- ./setupFMILibrary.sh
- ./setupQwt.sh
- ./setupZeroMQ.sh
- ./setupKatex.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./setupPythonQt.sh release 2.7 3.0 ; fi
- cd ..
- mkdir -p... | <|file_sep|>.travis.yml.diff
original:
dist: trusty
sudo: required
updated:
<|file_sep|>.travis.yml.diff
original:
# Compiler selection
compiler:
- gcc
# - clang
updated:
matrix:
include:
- os: linux
sudo: required
dist: trusty
compiler: gcc
env: HOPSAN_QMAKE_SPEC=linux-g++
- os: o... | 1bb5d7fccc229cd83cfc7dafe28f754271a12d86 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
before_script:
- bundle exec rake db:create db:schema:load
bundler_args: --without development production --jobs=3 --retry=3
cache:
bundler: true
notifications:
email: false
<|file_sep|>current/.travis.yml
language: ruby
sudo: false
before_script:... | language: ruby
sudo: false
before_script:
- bundle exec rake db:create db:schema:load
bundler_args: --without development production --jobs=3 --retry=3
cache:
bundler: true
notifications:
email: false
script:
- bundle exec rubocop -P
- bundle exec rspec | <|file_sep|>original/.travis.yml
language: ruby
sudo: false
before_script:
- bundle exec rake db:create db:schema:load
bundler_args: --without development production --jobs=3 --retry=3
cache:
bundler: true
notifications:
email: false
<|file_sep|>current/.travis.yml
language: ruby
sudo: false
before_script:... | 0b6f1d17956f5958d732b76d879f5e970e1724c5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/project/plugins.sbt
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.12.0")
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.8")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
addSbtPlugin("com.eed3si9n" % "sbt-projectmat... | addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.12.0")
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.9")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.0")
val sbtSoftwareMillVersi... | <|file_sep|>original/project/plugins.sbt
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.12.0")
addSbtPlugin("org.scala-js" % "sbt-jsdependencies" % "1.0.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.8")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
addSbtPlugin("com.eed3si9n" % "sbt-projectmat... | ef6b196fbc4809c6878f3f876ee1adfe61dace75 | project/plugins.sbt | project/plugins.sbt | Scala |
<|file_sep|>original/.travis.yml
language: java
<|file_sep|>current/.travis.yml
language: java
<|file_sep|>updated/.travis.yml | language: java
jdk:
- oraclejdk8
- oraclejdk7
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
install: travis_wait gradle assemble | <|file_sep|>original/.travis.yml
language: java
<|file_sep|>current/.travis.yml
language: java
<|file_sep|>updated/.travis.yml
language: java
jdk:
- oraclejdk8
- oraclejdk7
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
install: travis_wait gr... | d1cab1c90c13f7c8b12dfcb854c7014ed92634ce | .travis.yml | .travis.yml | YAML |
<|file_sep|>sources/openfisca.js.diff
original:
<input required type="text" name="query" placeholder="al.R1.taux1" value={ opts.value } onchange={ getDescription }>
updated:
<input required type="text" name="query" placeholder="nb_pac" value={ opts.value } onchange={ getDescription }>
<|file_sep|>sources/openfisca.js... | <openfisca>
<p>la variable
<input required type="text" name="query" placeholder="nb_pac" value={ opts.value } onchange={ getDescription }>
dans Openfisca ({ description })</p>
<script>
getDescription() {
var url = 'http://api.openfisca.fr/api/1/variables?name=' + this.query.value;
fetch(url)
.then(func... | <|file_sep|>sources/openfisca.js.diff
original:
<input required type="text" name="query" placeholder="al.R1.taux1" value={ opts.value } onchange={ getDescription }>
updated:
<input required type="text" name="query" placeholder="nb_pac" value={ opts.value } onchange={ getDescription }>
<|file_sep|>sources/openfisca.js... | 0a46deb294a7c093997a4cf2d4d7188e9ef02424 | sources/openfisca.js | sources/openfisca.js | JavaScript |
<|file_sep|>original/.github/workflows/needs-more-info-closer.yml
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'microsoft/vscode-github-triage-actions'
path: ./actions
ref: v31
- name: Install... | runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'microsoft/vscode-github-triage-actions'
path: ./actions
ref: v31
- name: Install Actions
run: npm install --production --prefix ./actions
- ... | <|file_sep|>original/.github/workflows/needs-more-info-closer.yml
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'microsoft/vscode-github-triage-actions'
path: ./actions
ref: v31
- name: Install... | 784f7bbb670cd15234bf391a3e5823cd54ba48c3 | .github/workflows/needs-more-info-closer.yml | .github/workflows/needs-more-info-closer.yml | YAML |
<|file_sep|>original/style/backoffice.css
treechildren::-moz-tree-image(modules_lexicon_preferences){
list-style-image: url(/changeicons/small/document.png) ;
}
treechildren::-moz-tree-image(modules_lexicon_word){
list-style-image: url(/changeicons/small/document.png) ;
}
<|file_sep|>current/style/backoffice.css
tre... | treechildren::-moz-tree-image(modules_lexicon_preferences){
list-style-image: url(/changeicons/small/lexicon.png) ;
}
treechildren::-moz-tree-image(modules_lexicon_word){
list-style-image: url(/changeicons/small/document.png) ;
} | <|file_sep|>original/style/backoffice.css
treechildren::-moz-tree-image(modules_lexicon_preferences){
list-style-image: url(/changeicons/small/document.png) ;
}
treechildren::-moz-tree-image(modules_lexicon_word){
list-style-image: url(/changeicons/small/document.png) ;
}
<|file_sep|>current/style/backoffice.css
tre... | 1b204442be9fb0db3a1e53a7b953f0170ec36a8b | style/backoffice.css | style/backoffice.css | CSS |
<|file_sep|>app/assets/javascripts/materials_file_picker.js.diff
original:
updated:
var shouldIncludeFiles = true;
var treeData = parseFileJsonForJqTree(rootNode, shouldIncludeFiles);
<|file_sep|>original/app/assets/javascripts/materials_file_picker.js
var courseId = gon.course;
var that = this;
$.ajax({
... |
MaterialsFilePicker.prototype.onSelectionCompleted = function() {
var selectedItems = [];
for (var id in selectedMaterials) {
var currentTuple = selectedMaterials[id];
selectedItems.push(currentTuple);
}
this.doneCallback(selectedItems);
};
MaterialsFilePicker.prototype.onWorkbinStructureReceived =... | <|file_sep|>app/assets/javascripts/materials_file_picker.js.diff
original:
updated:
var shouldIncludeFiles = true;
var treeData = parseFileJsonForJqTree(rootNode, shouldIncludeFiles);
<|file_sep|>original/app/assets/javascripts/materials_file_picker.js
var courseId = gon.course;
var that = this;
$.ajax({
... | 3b89ceb9fd02799e5899f80fe1d4af9ac0ca0793 | app/assets/javascripts/materials_file_picker.js | app/assets/javascripts/materials_file_picker.js | JavaScript |
<|file_sep|>original/src/script/flieManagerModalCtrl.js
document.getElementById('file-input').click();
}
function fileChanged(files) {
console.log('file changed', files);
// put the file upload logic here
var form = new FormData();
form.append("file", files[0]);
... | document.getElementById('file-input').click();
}
function fileChanged(files) {
console.log('file changed', files);
// put the file upload logic here
var form = new FormData();
form.append("file", files[0]);
var xhr = new XMLHttpRequest();
xhr.open("POST",... | <|file_sep|>original/src/script/flieManagerModalCtrl.js
document.getElementById('file-input').click();
}
function fileChanged(files) {
console.log('file changed', files);
// put the file upload logic here
var form = new FormData();
form.append("file", files[0]);
... | 9af5dc90548143be63679223ff0357bdbd8b90b2 | src/script/flieManagerModalCtrl.js | src/script/flieManagerModalCtrl.js | JavaScript |
<|file_sep|>original/bin/jenkins.sh
source $VENV/bin/activate
pip install -q -r requirements/compiled.txt
pip install -q -r requirements/dev.txt
cat > settings/local.py <<SETTINGS
from settings.base import *
ROOT_URLCONF = 'workspace.urls'
LOG_LEVEL = logging.ERROR
SETTINGS
echo "Update product_details"
manage.py u... | source $VENV/bin/activate
pip install -q -r requirements/compiled.txt
pip install -q -r requirements/dev.txt
cat > settings/local.py <<SETTINGS
from settings.base import *
ROOT_URLCONF = 'workspace.urls'
LOG_LEVEL = logging.ERROR
SETTINGS
echo "Update product_details"
./manage.py update_product_details
echo "Start... | <|file_sep|>original/bin/jenkins.sh
source $VENV/bin/activate
pip install -q -r requirements/compiled.txt
pip install -q -r requirements/dev.txt
cat > settings/local.py <<SETTINGS
from settings.base import *
ROOT_URLCONF = 'workspace.urls'
LOG_LEVEL = logging.ERROR
SETTINGS
echo "Update product_details"
manage.py u... | adb69654393b379efbb4e07a2680650c7423f397 | bin/jenkins.sh | bin/jenkins.sh | Shell |
<|file_sep|>content.css.diff
original:
.inline_answer_logged_out {
updated:
.inline_answer_logged_out,
.LoggedOutAskQuestionButton,
.BelowQuestionAddPrompt,
.LoggedOutFooter,
.LoggedOutSiteHeader .header_logo {
<|file_sep|>original/content.css
.narrow_signup_form,
.signup_bubble,
.signup_column,
.logged_out .follow_but... | .narrow_signup_form,
.signup_bubble,
.signup_column,
.logged_out .follow_button,
.logged_out .ActionBar,
.logged_out .AskToAnswerSectionToggle,
.logged_out .answer_voters,
.logged_out .Footer,
.inline_answer_logged_out,
.LoggedOutAskQuestionButton,
.BelowQuestionAddPrompt,
.LoggedOutFooter,
.LoggedOutSiteHeader .header... | <|file_sep|>content.css.diff
original:
.inline_answer_logged_out {
updated:
.inline_answer_logged_out,
.LoggedOutAskQuestionButton,
.BelowQuestionAddPrompt,
.LoggedOutFooter,
.LoggedOutSiteHeader .header_logo {
<|file_sep|>original/content.css
.narrow_signup_form,
.signup_bubble,
.signup_column,
.logged_out .follow_but... | c1a6880f7d405946d892310ea3456c3c2ec8ce12 | content.css | content.css | CSS |
<|file_sep|>lib/safety_pin/query_builder.rb.diff
original:
updated:
rescue RestClient::ExceptionWithResponse => e
query_string = query.map {|k,v| "#{k}=#{v}"}.join("&")
raise QueryBuilderError.new("returned error status #{e.http_code} for query #{query_string.inspect}")
<|file_sep|>original/lib/safety_... | def self.execute(query)
response = RestClient.get url, {params: query}
results = JSON.parse(response)
paths = results.fetch("hits").map {|hit| hit.fetch("path") }
paths.map {|path| Node.find(path) }
rescue RestClient::ExceptionWithResponse => e
query_string = query.map {|k,v| "#{k}... | <|file_sep|>lib/safety_pin/query_builder.rb.diff
original:
updated:
rescue RestClient::ExceptionWithResponse => e
query_string = query.map {|k,v| "#{k}=#{v}"}.join("&")
raise QueryBuilderError.new("returned error status #{e.http_code} for query #{query_string.inspect}")
<|file_sep|>original/lib/safety_... | 9a3db1086f283a354feb6f10491a8eb059aba904 | lib/safety_pin/query_builder.rb | lib/safety_pin/query_builder.rb | Ruby |
<|file_sep|>original/app/scripts/app_base.sh
# paths
app='/srv/app'
src='/srv/src'
manage=$app'/manage.py'
wsgi=$app'/wsgi.py'
static='/srv/static/'
media='/srv/media/'
# uwsgi params
port=8000
processes=8
threads=8
autoreload=3
uid='www-data'
gid='www-data'
# staging apps
pip install -U django==1.9 django-cors-heade... | # paths
app='/srv/app'
src='/srv/src'
manage=$app'/manage.py'
wsgi=$app'/wsgi.py'
static='/srv/static/'
media='/srv/media/'
# uwsgi params
port=8000
processes=8
threads=8
autoreload=3
uid='www-data'
gid='www-data'
# staging apps
#pip install -U django==1.9 django-cors-headers djangorestframework
# wait for other ser... | <|file_sep|>original/app/scripts/app_base.sh
# paths
app='/srv/app'
src='/srv/src'
manage=$app'/manage.py'
wsgi=$app'/wsgi.py'
static='/srv/static/'
media='/srv/media/'
# uwsgi params
port=8000
processes=8
threads=8
autoreload=3
uid='www-data'
gid='www-data'
# staging apps
pip install -U django==1.9 django-cors-heade... | 2fe45edf412a7e3ccad167987208241032276a46 | app/scripts/app_base.sh | app/scripts/app_base.sh | Shell |
<|file_sep|>original/lib/shiv.rb
def self.edit(command)
configure
nodes.each do |node|
command.gsub!(node, hostname_from(node)) if command.include? node
end
command
end
def self.nodes
Chef::Node.list.keys
end
def self.hostname_from(node)
node = Chef::Node.load(node)
... |
def self.edit(command)
configure
nodes.each do |node|
command.gsub!(node, hostname_from(node)) if command.include? node
end
command
end
def self.nodes
Chef::Node.list.keys.sort.reverse
end
def self.hostname_from(node)
node = Chef::Node.load(node)
hostnames = (PROVIDE... | <|file_sep|>original/lib/shiv.rb
def self.edit(command)
configure
nodes.each do |node|
command.gsub!(node, hostname_from(node)) if command.include? node
end
command
end
def self.nodes
Chef::Node.list.keys
end
def self.hostname_from(node)
node = Chef::Node.load(node)
... | b0a1a7a039e5d20c9c9e8058a58917a22a39c102 | lib/shiv.rb | lib/shiv.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.