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/requirements.txt
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.1
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.3
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rt... | flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.1
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.3
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rtoml==0.7.1
sqlalchemy==1.4.31
tenacity... | <|file_sep|>original/requirements.txt
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.1
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.3
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rt... | 531b53ed94bb343a055bc55711bf20641efd4284 | requirements.txt | requirements.txt | Text |
<|file_sep|>setup.py.diff
original:
version='0.1.1',
updated:
version='0.1.2',
<|file_sep|>original/setup.py
from setuptools import setup, find_packages
install_requires = open('requirements.txt').read().split()
setup(
name='mocurly',
packages=find_packages(exclude=("tests", "tests.*")),
package_d... | from setuptools import setup, find_packages
install_requires = open('requirements.txt').read().split()
setup(
name='mocurly',
packages=find_packages(exclude=("tests", "tests.*")),
package_data={'mocurly': ['templates/*.xml']},
version='0.1.2',
description='A library that allows your python tests t... | <|file_sep|>setup.py.diff
original:
version='0.1.1',
updated:
version='0.1.2',
<|file_sep|>original/setup.py
from setuptools import setup, find_packages
install_requires = open('requirements.txt').read().split()
setup(
name='mocurly',
packages=find_packages(exclude=("tests", "tests.*")),
package_d... | 4d6a69dc60ea4f10330c11de04ba4706b980d037 | setup.py | setup.py | Python |
<|file_sep|>src/components/List.js.diff
original:
updated:
type = 'decimal'
} else {
<|file_sep|>original/src/components/List.js
[false]: 'ul',
[true]: 'ol'
}
const List = ({ ordered, type, ...props }) => {
if (!type) {
if (ordered) {
type = 'disc'
} else {
type = 'decimal'
}
... | [false]: 'ul',
[true]: 'ol'
}
const List = ({ ordered, type, ...props }) => {
if (!type) {
if (ordered) {
type = 'decimal'
} else {
type = 'disc'
}
}
return (
<Text
as={OrderedTagType[Boolean(ordered)]}
block
css={[{ listStyleType: type }]}
marginVertical={... | <|file_sep|>src/components/List.js.diff
original:
updated:
type = 'decimal'
} else {
<|file_sep|>original/src/components/List.js
[false]: 'ul',
[true]: 'ol'
}
const List = ({ ordered, type, ...props }) => {
if (!type) {
if (ordered) {
type = 'disc'
} else {
type = 'decimal'
}
... | 5384a8fb8e50e535c88d966fe02db0c8d7726dfb | src/components/List.js | src/components/List.js | JavaScript |
<|file_sep|>original/README.md
go-oledb
========
OLEDB for Go language
<|file_sep|>current/README.md
go-oledb
========
OLEDB for Go language
<|file_sep|>updated/README.md | go-oledb
========
OLEDB for Go language
I'm not going to continue with this: it makes more sense to use ADO, and mattn has already
done this: see https://github.com/mattn/go-adodb.
| <|file_sep|>original/README.md
go-oledb
========
OLEDB for Go language
<|file_sep|>current/README.md
go-oledb
========
OLEDB for Go language
<|file_sep|>updated/README.md
go-oledb
========
OLEDB for Go language
I'm not going to continue with this: it makes more sense to use ADO, and mattn has already
done this: see... | 5f3ce497c57680cd00409b03817d16e58c2e2e18 | README.md | README.md | Markdown |
<|file_sep|>original/requirements/dev.txt
# Testing
pytest==3.0.3
pytest-xdist==1.15.0
# pulling from github because master has django_assert_num_queries context mgr
git+https://github.com/pytest-dev/pytest-django.git@master
nose
factory-boy==2.7.0
webtest-plus==0.3.3
mock==1.0.1
fake-factory==0.5.4
schema==0.3.1
resp... |
# Testing
pytest==3.0.3
pytest-xdist==1.15.0
# pulling from github because master has django_assert_num_queries context mgr
git+https://github.com/pytest-dev/pytest-django.git@master
nose
factory-boy==2.7.0
webtest-plus==0.3.3
mock==1.0.1
faker==0.8.12
schema==0.3.1
responses==0.8.1
# Syntax checking
flake8==2.4.0
fl... | <|file_sep|>original/requirements/dev.txt
# Testing
pytest==3.0.3
pytest-xdist==1.15.0
# pulling from github because master has django_assert_num_queries context mgr
git+https://github.com/pytest-dev/pytest-django.git@master
nose
factory-boy==2.7.0
webtest-plus==0.3.3
mock==1.0.1
fake-factory==0.5.4
schema==0.3.1
resp... | 71aa16af79e145e9d53dc357f4a97687b752affa | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/ops/provisioning/roles/mysql/tasks/main.yml
---
- name: install mysql
apt: pkg=$item state=installed
with_items:
- python-mysqldb
- mysql-client
- mysql-server
- name: start the mysql service
action: service name=mysql state=started
- name: update mysql root password for all roo... | ---
- name: install mysql
apt: pkg=$item state=installed update_cache=yes
with_items:
- python-mysqldb
- mysql-client
- mysql-server
- name: start the mysql service
action: service name=mysql state=started
- name: update mysql root password for all root accounts
mysql_user: name=root host=$item pa... | <|file_sep|>original/ops/provisioning/roles/mysql/tasks/main.yml
---
- name: install mysql
apt: pkg=$item state=installed
with_items:
- python-mysqldb
- mysql-client
- mysql-server
- name: start the mysql service
action: service name=mysql state=started
- name: update mysql root password for all roo... | 736ee87f5f305f8e42a0899f28d1f2f2e6fc55a9 | ops/provisioning/roles/mysql/tasks/main.yml | ops/provisioning/roles/mysql/tasks/main.yml | YAML |
<|file_sep|>original/requirements.txt
django-redis==4.8.0
pysolr==3.6.0
redis==2.10.5
requests==2.17.3
uWSGI==2.0.15
whitenoise==3.3.0
# Linting
flake8==3.3.0
flake8-debugger==1.4.0
flake8-blind-except==0.1.1
isort==4.2.14
# Helpers
pyprof2calltree==1.4.1
ipdb==0.10.3
ipython==5.3.0
transifex-client==0.12.4
# Countr... | django-redis==4.8.0
pysolr==3.6.0
redis==2.10.5
requests==2.17.3
uWSGI==2.0.15
whitenoise==3.3.0
# Linting
flake8==3.3.0
flake8-debugger==1.4.0
flake8-blind-except==0.1.1
isort==4.2.15
# Helpers
pyprof2calltree==1.4.1
ipdb==0.10.3
ipython==5.3.0
transifex-client==0.12.4
# Country data
pycountry==17.5.14 | <|file_sep|>original/requirements.txt
django-redis==4.8.0
pysolr==3.6.0
redis==2.10.5
requests==2.17.3
uWSGI==2.0.15
whitenoise==3.3.0
# Linting
flake8==3.3.0
flake8-debugger==1.4.0
flake8-blind-except==0.1.1
isort==4.2.14
# Helpers
pyprof2calltree==1.4.1
ipdb==0.10.3
ipython==5.3.0
transifex-client==0.12.4
# Countr... | 10e27ee13d74dfb4340847190e366b3d4087c4c7 | requirements.txt | requirements.txt | Text |
<|file_sep|>municipal_finance/static/stylesheets/docs.scss.diff
original:
updated:
td {
padding: 5px;
}
<|file_sep|>original/municipal_finance/static/stylesheets/docs.scss
font-weight: bold;
text-transform: uppercase;
border-top: 1px solid #333;
}
.subtotal-item {
... | }
td {
padding: 5px;
}
}
table.dimensions {
.dimension {
border-top: 1px solid #ccc;
td {
background-color: #ddd !important;
font-weight: bold;
}
}
td {
padding: 5px;
}
} | <|file_sep|>municipal_finance/static/stylesheets/docs.scss.diff
original:
updated:
td {
padding: 5px;
}
<|file_sep|>original/municipal_finance/static/stylesheets/docs.scss
font-weight: bold;
text-transform: uppercase;
border-top: 1px solid #333;
}
.subtotal-item {
... | 197cd5c0740749f942b17c4de24301fedc3d05b8 | municipal_finance/static/stylesheets/docs.scss | municipal_finance/static/stylesheets/docs.scss | SCSS |
<|file_sep|>original/inc/math_container.h
#ifndef MATH_CONTAINER
#define MATH_CONTAINER
#include <iostream>
#include <vector>
#include <complex>
#include <algorithm>
#include <cmath>
/********************************/
/*Find the index during the sort*/
/********************************/
template<typename T> class C... | #ifndef MATH_CONTAINER_H
#define MATH_CONTAINER_H
#include <iostream>
#include <vector>
#include <complex>
#include <algorithm>
#include <cmath>
/********************************/
/*Find the index during the sort*/
/********************************/
template<typename T> class CompareIndicesByAnotherVectorValues
{
... | <|file_sep|>original/inc/math_container.h
#ifndef MATH_CONTAINER
#define MATH_CONTAINER
#include <iostream>
#include <vector>
#include <complex>
#include <algorithm>
#include <cmath>
/********************************/
/*Find the index during the sort*/
/********************************/
template<typename T> class C... | b16e10bf8987b6e4278c17bedb552f49bf7e9461 | inc/math_container.h | inc/math_container.h | C |
<|file_sep|>lib/facterdb.rb.diff
original:
updated:
facts_dir = File.expand_path(File.join(File.dirname(__FILE__), '../facts'))
<|file_sep|>original/lib/facterdb.rb
require 'facter'
require 'jgrep'
module FacterDB
def self.get_os_facts(facter_version='*', filter=[])
filter_str = filter.map { |f| f.map { |k... | require 'facter'
require 'jgrep'
module FacterDB
def self.get_os_facts(facter_version='*', filter=[])
facts_dir = File.expand_path(File.join(File.dirname(__FILE__), '../facts'))
filter_str = filter.map { |f| f.map { |k,v | "#{k}=#{v}" }.join(' and ') }.join(' or ')
jsons = Dir.glob("#{facts_dir}/#{fact... | <|file_sep|>lib/facterdb.rb.diff
original:
updated:
facts_dir = File.expand_path(File.join(File.dirname(__FILE__), '../facts'))
<|file_sep|>original/lib/facterdb.rb
require 'facter'
require 'jgrep'
module FacterDB
def self.get_os_facts(facter_version='*', filter=[])
filter_str = filter.map { |f| f.map { |k... | 2c311915954594518550cf1bb83fc8fb196f3a6f | lib/facterdb.rb | lib/facterdb.rb | Ruby |
<|file_sep|>lib/llt/diff/parser/postag.rb.diff
original:
updated:
CONTAINER_TABLE = PLURALIZED_POSTAG_SCHEMA.zip(POSTAG_SCHEMA)
<|file_sep|>original/lib/llt/diff/parser/postag.rb
@analysis ||= begin
Hash[POSTAG_SCHEMA.zip(@postag.each_char)]
end
end
def datapoints
... | end
end
def datapoints
POSTAG_SCHEMA.size
end
PLURALIZED_POSTAG_SCHEMA = %i{
parts_of_speech persons numbers tenses
moods voices genders cases degrees
}
CONTAINER_TABLE = PLURALIZED_POSTAG_SCHEMA.zip(POSTAG_SCHEMA)
def add_datapoints_container... | <|file_sep|>lib/llt/diff/parser/postag.rb.diff
original:
updated:
CONTAINER_TABLE = PLURALIZED_POSTAG_SCHEMA.zip(POSTAG_SCHEMA)
<|file_sep|>original/lib/llt/diff/parser/postag.rb
@analysis ||= begin
Hash[POSTAG_SCHEMA.zip(@postag.each_char)]
end
end
def datapoints
... | fcbcc83ab7f062e9eae6e12e6dc2e16388a9478b | lib/llt/diff/parser/postag.rb | lib/llt/diff/parser/postag.rb | Ruby |
<|file_sep|>original/test/distributed_blocking_commands_test.rb
# encoding: UTF-8
require "helper"
require "lint/blocking_commands"
class TestDistributedBlockingCommands < Test::Unit::TestCase
include Helper::Distributed
include Lint::BlockingCommands
end
<|file_sep|>current/test/distributed_blocking_commands_te... | # encoding: UTF-8
require "helper"
require "lint/blocking_commands"
class TestDistributedBlockingCommands < Test::Unit::TestCase
include Helper::Distributed
include Lint::BlockingCommands
def test_blpop_raises
assert_raises(Redis::Distributed::CannotDistribute) do
r.blpop(["foo", "bar"])
end
e... | <|file_sep|>original/test/distributed_blocking_commands_test.rb
# encoding: UTF-8
require "helper"
require "lint/blocking_commands"
class TestDistributedBlockingCommands < Test::Unit::TestCase
include Helper::Distributed
include Lint::BlockingCommands
end
<|file_sep|>current/test/distributed_blocking_commands_te... | ef557079bc4ab407ecfedc4b53d1d09f6fce8f69 | test/distributed_blocking_commands_test.rb | test/distributed_blocking_commands_test.rb | Ruby |
<|file_sep|>original/desktop/ansible/roles/elixir/vars/main.yml
elixir_version: "1.6.1"
erlang_version: "21.0"
rebar_version: "3.5.0"
<|file_sep|>current/desktop/ansible/roles/elixir/vars/main.yml
elixir_version: "1.6.1"
erlang_version: "21.0"
rebar_version: "3.5.0"
<|file_sep|>updated/desktop/ansible/roles/elixir/vars... | elixir_version: "1.9.1"
erlang_version: "22.0"
rebar_version: "3.5.0" | <|file_sep|>original/desktop/ansible/roles/elixir/vars/main.yml
elixir_version: "1.6.1"
erlang_version: "21.0"
rebar_version: "3.5.0"
<|file_sep|>current/desktop/ansible/roles/elixir/vars/main.yml
elixir_version: "1.6.1"
erlang_version: "21.0"
rebar_version: "3.5.0"
<|file_sep|>updated/desktop/ansible/roles/elixir/vars... | daf7bc383a3ad11a75e8db714ce7ac51a1b354ab | desktop/ansible/roles/elixir/vars/main.yml | desktop/ansible/roles/elixir/vars/main.yml | YAML |
<|file_sep|>original/.idea/templates/JavaScript.xml
<|file_sep|>current/.idea/templates/JavaScript.xml
<|file_sep|>updated/.idea/templates/JavaScript.xml | <templateSet group="JavaScript">
<template name="aeach" value="$ARRAY$.forEach(function(element, i, collection){ $END$				 });" description="Invoke callback on elements of array" toReformat="true" toShortenFQNames="true">
<variable name="ARRAY" expression="" defaultValue="" alwaysStopAt="tru... | <|file_sep|>original/.idea/templates/JavaScript.xml
<|file_sep|>current/.idea/templates/JavaScript.xml
<|file_sep|>updated/.idea/templates/JavaScript.xml
<templateSet group="JavaScript">
<template name="aeach" value="$ARRAY$.forEach(function(element, i, collection){ $END$				 });" description=... | b79c430bb148c087894ef7aa9978378a1be56bed | .idea/templates/JavaScript.xml | .idea/templates/JavaScript.xml | XML |
<|file_sep|>original/Tests/MenuItemTreeTest.php
<?php
namespace Bundle\MenuBundle\Tests;
use Bundle\MenuBundle\MenuItem;
class MenuItemTreeTest extends \PHPUnit_Framework_TestCase
{
/**
* Create a new MenuItem
*
* @param string $name
* @param string $route
* @param array $att... | <?php
namespace Bundle\MenuBundle\Tests;
use Bundle\MenuBundle\MenuItem;
class MenuItemTreeTest extends \PHPUnit_Framework_TestCase
{
public function testSampleTree()
{
$class = 'Bundle\MenuBundle\MenuItem';
$menu = new $class('Root li', null, array('class' => 'root'));
$pt1 = $menu->g... | <|file_sep|>original/Tests/MenuItemTreeTest.php
<?php
namespace Bundle\MenuBundle\Tests;
use Bundle\MenuBundle\MenuItem;
class MenuItemTreeTest extends \PHPUnit_Framework_TestCase
{
/**
* Create a new MenuItem
*
* @param string $name
* @param string $route
* @param array $att... | 6825153e6c26ed2906da37afa8cc02493d5332f4 | Tests/MenuItemTreeTest.php | Tests/MenuItemTreeTest.php | PHP |
<|file_sep|>original/angular/core/components/poll/common/outcome_form/poll_common_outcome_form.haml
%form.poll-common-outcome-form
.lmo-disabled-form{ng-show: "isDisabled"}
.modal-header.poll-common-modal-header
%i.material-icons thumbs_up_down
%h1.lmo-h1{ng-if: "outcome.isNew()", translate: "poll_common_ou... | %form.poll-common-outcome-form
.lmo-disabled-form{ng-show: "isDisabled"}
.modal-header.poll-common-modal-header
%i.material-icons thumbs_up_down
%h1.lmo-h1{ng-if: "outcome.isNew()", translate: "poll_common_outcome_form.new_title"}
%h1.lmo-h1{ng-if: "!outcome.isNew()", translate: "poll_common_outcome_for... | <|file_sep|>original/angular/core/components/poll/common/outcome_form/poll_common_outcome_form.haml
%form.poll-common-outcome-form
.lmo-disabled-form{ng-show: "isDisabled"}
.modal-header.poll-common-modal-header
%i.material-icons thumbs_up_down
%h1.lmo-h1{ng-if: "outcome.isNew()", translate: "poll_common_ou... | cd130df383e213824ea3b4446c159a426756b8d5 | angular/core/components/poll/common/outcome_form/poll_common_outcome_form.haml | angular/core/components/poll/common/outcome_form/poll_common_outcome_form.haml | Haml |
<|file_sep|>doc/index.rst.diff
original:
updated:
Reference
---------
.. automodule:: xbob.db.base
<|file_sep|>original/doc/index.rst
which might be used for training a model, but it usually does **not** contain
the data itself (except for some toy examples). Many of the database packages
provide functionality thro... | smallest ones can be stored as filelists.
As databases usually contain thousands of files, and as verification protocols
often require to store information about pairs of files, the size of such
databases can become very large. For this reason, we have decided to
externalize many of them in Satellite Packages.
Refere... | <|file_sep|>doc/index.rst.diff
original:
updated:
Reference
---------
.. automodule:: xbob.db.base
<|file_sep|>original/doc/index.rst
which might be used for training a model, but it usually does **not** contain
the data itself (except for some toy examples). Many of the database packages
provide functionality thro... | a9158afcd76f5c36f66446911891eec723c3bbda | doc/index.rst | doc/index.rst | reStructuredText |
<|file_sep|>original/.travis.yml
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-1.10
- EMBER_TRY_SCENARIO=ember-1.11
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=embe... | - EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-1.10
- EMBER_TRY_SCENARIO=ember-1.11
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENA... | <|file_sep|>original/.travis.yml
- EMBER_TRY_SCENARIO=default
- EMBER_TRY_SCENARIO=ember-1.10
- EMBER_TRY_SCENARIO=ember-1.11
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=embe... | 6e6df7e5c6c5a4eb9c357398773329acd9fd3a1c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/metadata/am.zoom.mbrowser.txt
Source Code:https://github.com/chelovek84/mBrowser
Issue Tracker:https://github.com/chelovek84/mBrowser/issues
Auto Name:mBrowser
Summary:Web browser
Description:
Simple webview based browser. Touch back or menu buttons for options.
.
Repo Type:git
Repo:https://githu... | Source Code:https://github.com/chelovek84/mBrowser
Issue Tracker:https://github.com/chelovek84/mBrowser/issues
Auto Name:mBrowser
Summary:Web browser
Description:
Simple webview based browser. Touch back or menu buttons for options.
.
Repo Type:git
Repo:https://github.com/chelovek84/mBrowser
Build:10.0,10
commit... | <|file_sep|>original/metadata/am.zoom.mbrowser.txt
Source Code:https://github.com/chelovek84/mBrowser
Issue Tracker:https://github.com/chelovek84/mBrowser/issues
Auto Name:mBrowser
Summary:Web browser
Description:
Simple webview based browser. Touch back or menu buttons for options.
.
Repo Type:git
Repo:https://githu... | e41d9634dff08bf037db3234d369e33c1e6331c6 | metadata/am.zoom.mbrowser.txt | metadata/am.zoom.mbrowser.txt | Text |
<|file_sep|>original/.github/workflows/compressed-size.yml
- 'assets/js/**.js'
- '!assets/js/**.test.js'
- '!assets/js/**/test/**'
- 'assets/sass/**/*.scss'
- 'assets/svg/**/*.svg'
- './*.config.js'
- './package-lock.json'
jobs:
build:
name: Check
runs-on: ubuntu-lat... | - 'assets/svg/**/*.svg'
- './*.config.js'
- './package-lock.json'
jobs:
build:
name: Check
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc... | <|file_sep|>original/.github/workflows/compressed-size.yml
- 'assets/js/**.js'
- '!assets/js/**.test.js'
- '!assets/js/**/test/**'
- 'assets/sass/**/*.scss'
- 'assets/svg/**/*.svg'
- './*.config.js'
- './package-lock.json'
jobs:
build:
name: Check
runs-on: ubuntu-lat... | 113782b266b806f2fd7c5a7eff708fe65a740c26 | .github/workflows/compressed-size.yml | .github/workflows/compressed-size.yml | YAML |
<|file_sep|>original/wercker.yml
code: npm run fontello
- script: # Install libfontconfig for PhantomJS to work
name: install-libfontconfig
code: >
apt-get update &&
apt-get install -y --no-install-recommends libfontconfig
- npm-test
- script:
name: build
... | - npm-install
- script: # Install custom font from fontello
name: fontello
code: npm run fontello
- script: # Install libfontconfig for PhantomJS to work
name: install-libfontconfig
code: >
apt-get update &&
apt-get install -y --no-install-recommends libfo... | <|file_sep|>original/wercker.yml
code: npm run fontello
- script: # Install libfontconfig for PhantomJS to work
name: install-libfontconfig
code: >
apt-get update &&
apt-get install -y --no-install-recommends libfontconfig
- npm-test
- script:
name: build
... | 312721aeb3af3d2899bd1bda301f77774f17e51e | wercker.yml | wercker.yml | YAML |
<|file_sep|>xrv/README.md.diff
original:
Put the XRV .qcow2 file in this directory and run `make docker-image` and you
updated:
Download IOS XRv from
https://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?CONTYPES=Cisco-IOS-XRv
Put the .vmdk file in this directory and run `make docker-image` and you
<|file_sep|>original... | This is the vrnetlab docker image for Cisco IOS XRv.
Building the docker image
-------------------------
Download IOS XRv from
https://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?CONTYPES=Cisco-IOS-XRv
Put the .vmdk file in this directory and run `make docker-image` and you
should be good to go. The resulting image ... | <|file_sep|>xrv/README.md.diff
original:
Put the XRV .qcow2 file in this directory and run `make docker-image` and you
updated:
Download IOS XRv from
https://upload.cisco.com/cgi-bin/swc/fileexg/main.cgi?CONTYPES=Cisco-IOS-XRv
Put the .vmdk file in this directory and run `make docker-image` and you
<|file_sep|>original... | 12a70f65d4db82ad49052d49163e537f72c83db9 | xrv/README.md | xrv/README.md | Markdown |
<|file_sep|>original/Cargo.toml
[package]
authors = ["Alex Crichton <alex@alexcrichton.com>"]
description = "Cookie and session middleware for conduit-based stacks"
license = "MIT"
name = "conduit-cookie"
repository = "https://github.com/conduit-rust/conduit-cookie"
version = "0.9.0-alpha.5"
[dependencies]
base64 = "0... | [package]
authors = ["Alex Crichton <alex@alexcrichton.com>"]
description = "Cookie and session middleware for conduit-based stacks"
license = "MIT"
name = "conduit-cookie"
repository = "https://github.com/conduit-rust/conduit-cookie"
version = "0.9.0-alpha.5"
[dependencies]
base64 = "0.13"
conduit = "0.9.0-alpha.5"
c... | <|file_sep|>original/Cargo.toml
[package]
authors = ["Alex Crichton <alex@alexcrichton.com>"]
description = "Cookie and session middleware for conduit-based stacks"
license = "MIT"
name = "conduit-cookie"
repository = "https://github.com/conduit-rust/conduit-cookie"
version = "0.9.0-alpha.5"
[dependencies]
base64 = "0... | e5c02a5ef8519ca10ba8c49bb1d3bac16518ebac | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/packages/vulcan-accounts/imports/ui/components/ResetPassword.jsx
render() {
if (!this.props.currentUser) {
return (
<Components.AccountsLoginForm
formState={ STATES.PASSWORD_CHANGE }
/>
);
} else {
return (
<div className='password-reset... | render() {
if (!this.props.currentUser) {
return (
<Components.AccountsLoginForm
formState={ STATES.PASSWORD_CHANGE }
/>
);
} else {
return (
<div className='password-reset-form'>
<div>{this.context.intl.formatMessage({id: 'accounts.info_password_c... | <|file_sep|>original/packages/vulcan-accounts/imports/ui/components/ResetPassword.jsx
render() {
if (!this.props.currentUser) {
return (
<Components.AccountsLoginForm
formState={ STATES.PASSWORD_CHANGE }
/>
);
} else {
return (
<div className='password-reset... | d431b1cf3c7f39088897ab7176d5c1f5b9facc0b | packages/vulcan-accounts/imports/ui/components/ResetPassword.jsx | packages/vulcan-accounts/imports/ui/components/ResetPassword.jsx | JSX |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
include:
- php: hhvm
dist: trusty
script:
- sudo add-apt-repository ppa:git-core/ppa -y
- sudo apt-get update
- sudo apt-get install git
- git submodule foreach git pull origin master
<|... |
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
matrix:
include:
- php: hhvm
dist: trusty
script:
- sudo add-apt-repository ppa:git-core/ppa -y
- sudo apt-get update
- sudo apt-get install git | <|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
include:
- php: hhvm
dist: trusty
script:
- sudo add-apt-repository ppa:git-core/ppa -y
- sudo apt-get update
- sudo apt-get install git
- git submodule foreach git pull origin master
<|... | 85e260317b80fb6734a97cbf74e4dd7b60e7301c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/controllers/searched_controller.rb
class SearchedController < ApplicationController
def show
end
end
<|file_sep|>current/app/controllers/searched_controller.rb
class SearchedController < ApplicationController
def show
end
end
<|file_sep|>updated/app/controllers/searched_controller.rb | class SearchedController < ApplicationController
def show
@current_user = current_user
@profile = Profile.find(params[:id])
@friendships = Friendship.all
end
end | <|file_sep|>original/app/controllers/searched_controller.rb
class SearchedController < ApplicationController
def show
end
end
<|file_sep|>current/app/controllers/searched_controller.rb
class SearchedController < ApplicationController
def show
end
end
<|file_sep|>updated/app/controllers/searched_controller.rb
cl... | e60a4d01aa2f88cae478b2af85ee42c42209b0e6 | app/controllers/searched_controller.rb | app/controllers/searched_controller.rb | Ruby |
<|file_sep|>original/app/Libraries/BitbucketNotification.php
*/
public function __construct($notification)
{
$this->notification = $notification;
$this->run();
}
public function run()
{
$reviewers = $this->notification["pullrequest"]["reviewers"];
foreach ($rev... | */
public function __construct($notification)
{
$this->notification = $notification;
$this->run();
}
public function run()
{
$action = $this->notification->header("X-Event-Key");
$validActions = ["pullrequest:created"];
// Only 'pullrequest:created' ac... | <|file_sep|>original/app/Libraries/BitbucketNotification.php
*/
public function __construct($notification)
{
$this->notification = $notification;
$this->run();
}
public function run()
{
$reviewers = $this->notification["pullrequest"]["reviewers"];
foreach ($rev... | d0c605fe4c3e99474a76ac7803f9a4bfc3546046 | app/Libraries/BitbucketNotification.php | app/Libraries/BitbucketNotification.php | PHP |
<|file_sep|>original/locale/en-US/messages.properties
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
config.rule.item.controls.edit.label=✏
config.rule.item.controls.e... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
config.rule.item.controls.edit.label=✎
config.rule.item.controls.edit.tooltip=Edit
config.rule.item.controls.delete.labe... | <|file_sep|>original/locale/en-US/messages.properties
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
config.rule.item.controls.edit.label=✏
config.rule.item.controls.e... | 5a1ee0548e0389be0d229b8f0cc3f31f5d5fde05 | locale/en-US/messages.properties | locale/en-US/messages.properties | INI |
<|file_sep|>modules/tabs/main/index.scss.diff
original:
updated:
.hx-tabs {
display: flex;
flex-wrap: wrap;
}
<|file_sep|>modules/tabs/main/index.scss.diff
original:
updated:
margin-right: 3px;
position: relative;
<|file_sep|>original/modules/tabs/main/index.scss
.hx-tab {
display: inline-block;
padding:... | padding: 0.5em 1em;
border-top: solid 3px;
border-left: solid 1px;
border-right: solid 1px;
margin-right: 3px;
position: relative;
&:hover {
cursor: pointer;
}
}
.hx-tabs-content {
margin-top: -1px;
border: solid 1px;
flex: 1 1 100%;
}
.hx-tab-content-hidden {
display: none;
} | <|file_sep|>modules/tabs/main/index.scss.diff
original:
updated:
.hx-tabs {
display: flex;
flex-wrap: wrap;
}
<|file_sep|>modules/tabs/main/index.scss.diff
original:
updated:
margin-right: 3px;
position: relative;
<|file_sep|>original/modules/tabs/main/index.scss
.hx-tab {
display: inline-block;
padding:... | ccfe61b2c7768aaf64856d468cfe7835a284928b | modules/tabs/main/index.scss | modules/tabs/main/index.scss | SCSS |
<|file_sep|>original/src/views/simpler_search.html
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<link href='https://fonts.googleapis.com/css?family=Walter+Turncoat' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/stylesheets/normalize.css">
<link rel="stylesheet" href="/stylesheets/style.... | <!DOCTYPE html>
<html ng-app="myApp">
<head>
<link href='https://fonts.googleapis.com/css?family=Walter+Turncoat' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/stylesheets/normalize.css">
<link rel="stylesheet" href="/stylesheets/style.css">
<title>Da Mean</title>
</head>
<bo... | <|file_sep|>original/src/views/simpler_search.html
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<link href='https://fonts.googleapis.com/css?family=Walter+Turncoat' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/stylesheets/normalize.css">
<link rel="stylesheet" href="/stylesheets/style.... | 0ea4e78fecb24841e28571b741abbc5d7a625d9c | src/views/simpler_search.html | src/views/simpler_search.html | HTML |
<|file_sep|>spec/spec_helper.rb.diff
original:
updated:
Virsandra.reset!
<|file_sep|>original/spec/spec_helper.rb
config.before(:all) do
Virsandra.keyspace = 'system'
Virsandra.execute("CREATE KEYSPACE #{TEST_KEYSPACE} WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1}")
Virsand... | Virsandra.keyspace = 'system'
Virsandra.execute("CREATE KEYSPACE #{TEST_KEYSPACE} WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1}")
Virsandra.reset!
end
config.before(:each) do
Virsandra.reset!
Virsandra.keyspace = TEST_KEYSPACE
end
config.after(:all) do
Virsand... | <|file_sep|>spec/spec_helper.rb.diff
original:
updated:
Virsandra.reset!
<|file_sep|>original/spec/spec_helper.rb
config.before(:all) do
Virsandra.keyspace = 'system'
Virsandra.execute("CREATE KEYSPACE #{TEST_KEYSPACE} WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1}")
Virsand... | 33bf834bea62e58b8add98ebbe5a1d3b399fc7d3 | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>config/symplify.php.diff
original:
updated:
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
<|file_sep|>original/config/symplify.php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\FinalInternalClassFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\Container... |
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__ . '/config.php');
$services = $containerConfigurator->services();
$services->defaults()
->public()
->autowire()
->autoconfigure();
$services->set(FinalInternal... | <|file_sep|>config/symplify.php.diff
original:
updated:
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
<|file_sep|>original/config/symplify.php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\FinalInternalClassFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\Container... | ab273709876f4e25d03f43cc96c77aa46bcc9f4e | config/symplify.php | config/symplify.php | PHP |
<|file_sep|>Sources/SignalBroadcasting.swift.diff
original:
let bundleName = Bundle(for: self).object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String
updated:
let bundleIdentifier = Bundle(for: self).bundleIdentifier!
<|file_sep|>original/Sources/SignalBroadcasting.swift
associatedtype BroadcastI... | associatedtype BroadcastIdentifier: BroadcastIdentifiable
associatedtype BroadcastPayload
}
extension SignalBroadcasting {
public func broadcast(identifier: BroadcastIdentifier, payload: BroadcastPayload, within beacon: Beacon = .default) {
beacon.enqueueBroadcastRequest(broadcaster: self, identifie... | <|file_sep|>Sources/SignalBroadcasting.swift.diff
original:
let bundleName = Bundle(for: self).object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String
updated:
let bundleIdentifier = Bundle(for: self).bundleIdentifier!
<|file_sep|>original/Sources/SignalBroadcasting.swift
associatedtype BroadcastI... | 8a255f9ffa31f73777a1e1c9b28931ab370e246c | Sources/SignalBroadcasting.swift | Sources/SignalBroadcasting.swift | Swift |
<|file_sep|>lib/guard/daemon.rb.diff
original:
updated:
# find pid with its parent if any
<|file_sep|>original/lib/guard/daemon.rb
daemon_start
end
def daemon_stop
return unless @pid
rows = `ps -eo pid,ppid | grep #{@pid}`.split("\n")
rows.each do |row|
pids = row.split('... | daemon_start
end
def daemon_stop
return unless @pid
# find pid with its parent if any
rows = `ps -eo pid,ppid | grep #{@pid}`.split("\n")
rows.each do |row|
pids = row.split(' ')
if pids[1] == @pid.to_s
daemon_logger "stopping #{@pid}"
`kill -9 ... | <|file_sep|>lib/guard/daemon.rb.diff
original:
updated:
# find pid with its parent if any
<|file_sep|>original/lib/guard/daemon.rb
daemon_start
end
def daemon_stop
return unless @pid
rows = `ps -eo pid,ppid | grep #{@pid}`.split("\n")
rows.each do |row|
pids = row.split('... | 496e9ada334e64fd3ca04fe6247dd9245f0f300e | lib/guard/daemon.rb | lib/guard/daemon.rb | Ruby |
<|file_sep|>client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js.diff
original:
var deactivateTimeout = null;
updated:
<|file_sep|>client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js.diff
original:
deactivateTimeout = setTimeout(function() {
updated... | if (!$this.length || e.target !== $this[0] && !$.contains($this[0], e.target)) {
deactivateButton();
}
};
setTimeout(function() {
$(document).on('click.clickConfirmed', documentClickHandler);
}, 0);
};
if ($this.hasClass('confirmClick')) {
$this.data('clickConfirmed.deactiv... | <|file_sep|>client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js.diff
original:
var deactivateTimeout = null;
updated:
<|file_sep|>client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js.diff
original:
deactivateTimeout = setTimeout(function() {
updated... | d7443c01e3f992e0f1b4d7a1e6b5cc7849e39be5 | client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js | client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js | JavaScript |
<|file_sep|>original/media/sites/lapinkansa.py
import requests
from bs4 import BeautifulSoup
def nouda( url , out ):
r = requests.get( url )
r.encoding = 'UTF-8'
soup = BeautifulSoup( r.text )
teksti = soup.find_all( class_ ='Teksti' )
for string in teksti[0].stripped_strings:
out.write( string.encod... | import requests
from bs4 import BeautifulSoup
def nouda( url , out ):
r = requests.get( url )
r.encoding = 'UTF-8'
soup = BeautifulSoup( r.text )
teksti = soup.find_all( class_ ='post-meta' )
for string in teksti[0].stripped_strings:
out.write( string.encode('utf8') + ' ' )
if __name__ == '__main__'... | <|file_sep|>original/media/sites/lapinkansa.py
import requests
from bs4 import BeautifulSoup
def nouda( url , out ):
r = requests.get( url )
r.encoding = 'UTF-8'
soup = BeautifulSoup( r.text )
teksti = soup.find_all( class_ ='Teksti' )
for string in teksti[0].stripped_strings:
out.write( string.encod... | a72b75f67753985a4559d4675393042d9d363a02 | media/sites/lapinkansa.py | media/sites/lapinkansa.py | Python |
<|file_sep|>Drift/Helpers/ObjectValidator.swift.diff
original:
func validNotEmpty<T>() -> T {
updated:
func validNotEmpty<T>() -> T? {
<|file_sep|>Drift/Helpers/ObjectValidator.swift.diff
original:
return dummyObject()
updated:
return nil
<|file_sep|>Drift/Helpers/ObjectValidator... | extension Map{
func validNotEmpty<T>() -> T? {
if let value: T = value() {
if value as? String == ""{
failures += 1
return nil
}
return value
}else {
// Collects failed count
failures += 1
return... | <|file_sep|>Drift/Helpers/ObjectValidator.swift.diff
original:
func validNotEmpty<T>() -> T {
updated:
func validNotEmpty<T>() -> T? {
<|file_sep|>Drift/Helpers/ObjectValidator.swift.diff
original:
return dummyObject()
updated:
return nil
<|file_sep|>Drift/Helpers/ObjectValidator... | 878d10cad3f867df87bb79ad9dd9b0d5068c0637 | Drift/Helpers/ObjectValidator.swift | Drift/Helpers/ObjectValidator.swift | Swift |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.4
- 1.9.3
gemfile:
- gemfiles/Gemfile.rails3
- gemfiles/Gemfile.rails4
addons:
code_climate:
repo_token: 7ec6fd701b7d2b206cdd233c2202b6e11c8ba6af01f8a93f5e24595008ac20a0
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.1.4
- 1.9.3
gemfi... | language: ruby
rvm:
- 2.1.4
gemfile:
- gemfiles/Gemfile.rails3
- gemfiles/Gemfile.rails4
addons:
code_climate:
repo_token: 7ec6fd701b7d2b206cdd233c2202b6e11c8ba6af01f8a93f5e24595008ac20a0 | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.4
- 1.9.3
gemfile:
- gemfiles/Gemfile.rails3
- gemfiles/Gemfile.rails4
addons:
code_climate:
repo_token: 7ec6fd701b7d2b206cdd233c2202b6e11c8ba6af01f8a93f5e24595008ac20a0
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.1.4
- 1.9.3
gemfi... | 5e63275bb188cb5dcbfc3b38a526c6b88ca2cccd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/main.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
}
<|file_sep|>current/main.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
}
<|file_sep|>updated/main.cpp | #include <iostream>
#include <ncurses.h>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
} | <|file_sep|>original/main.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
}
<|file_sep|>current/main.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
}
<|file_sep|>updated/main.cpp
#include <iostream>
#include <ncurses.h>
using na... | e48d213aea8e9559d9c4a547604ada13a99b8917 | main.cpp | main.cpp | C++ |
<|file_sep|>original/package.json
{
"name": "hubot-substitute",
"description": "Regex substitute script for hubot",
"version": "0.1.4",
"author": "Aaron Staves <aaron@aarons.io>",
"license": "MIT",
"keywords": [
"hubot",
"hubot-scripts",
"regex",
"substitute",
"regular",
"expression"... | {
"name": "hubot-substitute",
"description": "Regex substitute script for hubot",
"version": "0.1.5",
"author": "Aaron Staves <aaron@aarons.io>",
"license": "MIT",
"keywords": [
"hubot",
"hubot-scripts",
"regex",
"substitute",
"regular",
"expression"
],
"repository": {
"type"... | <|file_sep|>original/package.json
{
"name": "hubot-substitute",
"description": "Regex substitute script for hubot",
"version": "0.1.4",
"author": "Aaron Staves <aaron@aarons.io>",
"license": "MIT",
"keywords": [
"hubot",
"hubot-scripts",
"regex",
"substitute",
"regular",
"expression"... | 1221b4c22ad98d5b9f981f6fb5f50199e22f03c1 | package.json | package.json | JSON |
<|file_sep|>original/config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module ArlcStandings
class Application < Rails::Application
... | require File.expand_path('../boot', __FILE__)
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# Requ... | <|file_sep|>original/config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module ArlcStandings
class Application < Rails::Application
... | c1bc1dc94d9b383c94bbd7045dbaa2d1426764b1 | config/application.rb | config/application.rb | Ruby |
<|file_sep|>lib/arena/block.rb.diff
original:
@user ||= Arena::User.new(@attrs.dup['user'])
updated:
@user ||= Arena::User.new(@attrs['user'])
<|file_sep|>lib/arena/block.rb.diff
original:
@_class ||= @attrs.dup['class']
updated:
@_class ||= @attrs['class']
<|file_sep|>lib/arena/block.rb.diff
or... | end
def attachment
@attachment ||= Arena::Entity::Attachment.new(@attrs['attachment']) if has_attachment?
end
def connections
@connections ||= @attrs['connections'].collect { |channel| Arena::Channel.new(channel) }
end
# Detect optional portions of the response
[:image, :a... | <|file_sep|>lib/arena/block.rb.diff
original:
@user ||= Arena::User.new(@attrs.dup['user'])
updated:
@user ||= Arena::User.new(@attrs['user'])
<|file_sep|>lib/arena/block.rb.diff
original:
@_class ||= @attrs.dup['class']
updated:
@_class ||= @attrs['class']
<|file_sep|>lib/arena/block.rb.diff
or... | 13e66c9dd4a68a1ee041b7d87e0103261accc80c | lib/arena/block.rb | lib/arena/block.rb | Ruby |
<|file_sep|>original/CuratedContent/WorkingEffectivelyWithLegacyCode.md
## Feathers, Michael, 2005
This is really the book that gives one hope that we can take very bad software
and through targeted incremental unit testing and refactoring, can turn it
into good software while implementing and delivering new function... |
## Feathers, Michael, 2005
This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time.
This book is where the rubber meets the road combi... | <|file_sep|>original/CuratedContent/WorkingEffectivelyWithLegacyCode.md
## Feathers, Michael, 2005
This is really the book that gives one hope that we can take very bad software
and through targeted incremental unit testing and refactoring, can turn it
into good software while implementing and delivering new function... | 15acdc405cb9521ab3bf5c87345790ee850fc265 | CuratedContent/WorkingEffectivelyWithLegacyCode.md | CuratedContent/WorkingEffectivelyWithLegacyCode.md | Markdown |
<|file_sep|>index.js.diff
original:
function espowerSourceToSource(jsCode, filepath, options) {
updated:
function espowerSource(jsCode, filepath, options) {
<|file_sep|>original/index.js
'use strict';
var jsAst, espowerOptions, modifiedAst, escodegenOutput, code, map;
jsAst = esprima.parse(jsCode, {tolera... | 'use strict';
var jsAst, espowerOptions, modifiedAst, escodegenOutput, code, map;
jsAst = esprima.parse(jsCode, {tolerant: true, loc: true, tokens: true, raw: true, source: filepath});
espowerOptions = merge(merge(espower.defaultOptions(), options), {
destructive: true,
path: filepath
... | <|file_sep|>index.js.diff
original:
function espowerSourceToSource(jsCode, filepath, options) {
updated:
function espowerSource(jsCode, filepath, options) {
<|file_sep|>original/index.js
'use strict';
var jsAst, espowerOptions, modifiedAst, escodegenOutput, code, map;
jsAst = esprima.parse(jsCode, {tolera... | 5e4c5c4d4ecc1698c5adddb31a2378df0e78ec22 | index.js | index.js | JavaScript |
<|file_sep|>original/src/main/ioke/lang/Context.java
this.surroundingContext = surroundingContext;
if(runtime.context != null) {
this.mimics(runtime.context);
}
setCell("self", getRealContext());
}
public void init() {
}
public IokeObject getRe... | this.surroundingContext = surroundingContext;
if(runtime.context != null) {
this.mimics(runtime.context);
}
setCell("self", getRealContext());
}
public void init() {
setKind("Context");
}
public IokeObject getRealContext() {
ret... | <|file_sep|>original/src/main/ioke/lang/Context.java
this.surroundingContext = surroundingContext;
if(runtime.context != null) {
this.mimics(runtime.context);
}
setCell("self", getRealContext());
}
public void init() {
}
public IokeObject getRe... | 2a1d397457134ac81c54804a43c16ff15c5a5c9d | src/main/ioke/lang/Context.java | src/main/ioke/lang/Context.java | Java |
<|file_sep|>original/src/Microsoft.AspNet.Mvc.DataAnnotations/project.json
"version": "6.0.0-*",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/mvc"
},
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Mvc.Core... | "version": "6.0.0-*",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/mvc"
},
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Mvc.Core": "6.0.0-*",
"Microsoft.Framework.ClosedGenericMatcher.Sources": {... | <|file_sep|>original/src/Microsoft.AspNet.Mvc.DataAnnotations/project.json
"version": "6.0.0-*",
"repository": {
"type": "git",
"url": "git://github.com/aspnet/mvc"
},
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Mvc.Core... | 3ad3f88d698f17becb7598aea84489fe40553d43 | src/Microsoft.AspNet.Mvc.DataAnnotations/project.json | src/Microsoft.AspNet.Mvc.DataAnnotations/project.json | JSON |
<|file_sep|>README.md.diff
original:
Hatnik is a web app which aims to help you to track library releases. The idea is pretty simple: setup actions to be performed once some library is released. Action consists of 2 parts: library to watch and an instruction to perform. Example: send email to `my@email.com` once when o... | ### Hatnik
Hatnik is a web app which aims to help you to track library releases. The idea is pretty simple: setup actions to be performed once some library is released. Action consists of 2 parts: the library to watch and an instruction to perform. Example: send an email to `my@email.com` once when org.clojure/clojure... | <|file_sep|>README.md.diff
original:
Hatnik is a web app which aims to help you to track library releases. The idea is pretty simple: setup actions to be performed once some library is released. Action consists of 2 parts: library to watch and an instruction to perform. Example: send email to `my@email.com` once when o... | b62d5a266e8e3b1ed0724f1af607df263e3cd872 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
- 12
- 10
- 8
after_script:
- npm run test:cov
- cat ./coverage/lcov.info | coveralls
sudo: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
- 12
- 10
- 8
after_script:
- npm run test:cov
- cat ./cov... |
language: node_js
node_js:
- node
- 14
- 12
- 10
- 8
after_script:
- npm run test:cov
- cat ./coverage/lcov.info | coveralls
sudo: false | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
- 12
- 10
- 8
after_script:
- npm run test:cov
- cat ./coverage/lcov.info | coveralls
sudo: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
- 12
- 10
- 8
after_script:
- npm run test:cov
- cat ./cov... | 3afca8c0c7ba9abcc49285b0dd8ed054993575e5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>python/init.sls.diff
original:
updated:
setuptools:
pip.installed:
- upgrade: True
- require:
- pkg: python-pkgs
<|file_sep|>original/python/init.sls
pip:
pip.installed:
- upgrade: True
- require:
- pkg: python-pkgs
virtualenv:
pip.installed:
- upgrade: True
- re... | setuptools:
pip.installed:
- upgrade: True
- require:
- pkg: python-pkgs
pip:
pip.installed:
- upgrade: True
- require:
- pip: setuptools
virtualenv:
pip.installed:
- upgrade: True
- require:
- pip: pip
/usr/lib/libz.so:
file.symlink:
- target: /usr/lib/{{ grains... | <|file_sep|>python/init.sls.diff
original:
updated:
setuptools:
pip.installed:
- upgrade: True
- require:
- pkg: python-pkgs
<|file_sep|>original/python/init.sls
pip:
pip.installed:
- upgrade: True
- require:
- pkg: python-pkgs
virtualenv:
pip.installed:
- upgrade: True
- re... | 4c9c3e8a8097a3bf0f20484e367f56201bfc20a4 | python/init.sls | python/init.sls | SaltStack |
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
if( stream.header ) {
printf( "Creating %s\n", stream.header->file_name );
file_handle = open( stream.header->file_name, O_WRONLY );
}
if( stream.... | }
if( stream.avail_out ) {
printf( "Writing %d\n", stream.avail_out );
write( file_handle, stream.next_out, stream.avail_out );
}
if( result == TAR_ENTRY_END ) {
printf( "Closing %s\n", stream.header->file_name );
close( file_handle );
}
}
... | <|file_sep|>README.md.diff
original:
updated:
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
if( stream.header ) {
printf( "Creating %s\n", stream.header->file_name );
file_handle = open( stream.header->file_name, O_WRONLY );
}
if( stream.... | d927bbc83660189b130b9fbf09d2ebba8fb6cd26 | README.md | README.md | Markdown |
<|file_sep|>original/server.js
/** Allow cross domain requests */
app.use(cors());
/** Initialize our routing logic */
var router = express.Router();
requireLocal('routes')(router);
/** Allows us to parse body and query parameters */
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
/**... |
/** Allow cross domain requests */
app.use(cors());
/** Initialize our routing logic */
var router = express.Router();
requireLocal('routes')(router);
/** Allows us to parse body and query parameters */
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json({limit: '1mb'}));
/** Remove the 'Powe... | <|file_sep|>original/server.js
/** Allow cross domain requests */
app.use(cors());
/** Initialize our routing logic */
var router = express.Router();
requireLocal('routes')(router);
/** Allows us to parse body and query parameters */
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
/**... | b07efe7f3095aecfeb1bf41a0554825ca49536af | server.js | server.js | JavaScript |
<|file_sep|>original/lib/plugins/kst.rb
class Kst
include Cinch::Plugin
match /(kst)$/, prefix: /^(\.)/
match /(help kst)$/, method: :help, prefix: /^(\.)/
def execute(m)
utc = Time.now.utc
kst = utc + (9 * 3600)
time = kst.strftime("%F %H:%M KST")
m.reply "#{time}"
end
def help(m)
m.... | class Kst
include Cinch::Plugin
match /(kst)$/, prefix: /^(\.)/
match /(help kst)$/, method: :help, prefix: /^(\.)/
def execute(m)
utc = Time.now.utc
kst = utc + (9 * 3600)
time = kst.strftime("%F %H:%M KST")
m.reply time
end
def help(m)
m.reply 'returns date and time (KST)'
end
en... | <|file_sep|>original/lib/plugins/kst.rb
class Kst
include Cinch::Plugin
match /(kst)$/, prefix: /^(\.)/
match /(help kst)$/, method: :help, prefix: /^(\.)/
def execute(m)
utc = Time.now.utc
kst = utc + (9 * 3600)
time = kst.strftime("%F %H:%M KST")
m.reply "#{time}"
end
def help(m)
m.... | 184557d7774dbc702a470ca74501c3a5c9eb4c28 | lib/plugins/kst.rb | lib/plugins/kst.rb | Ruby |
<|file_sep|>original/playbooks/base-test/pre.yaml
- hosts: localhost
roles:
- role: emit-job-header
zuul_log_url: "http://logs.openstack.org"
- hosts: all
roles:
- add-build-sshkey
- start-zuul-console
- configure-unbound
- validate-host
- use-cached-repos
- test-mirror-workspace-... | - hosts: localhost
roles:
- role: emit-job-header
zuul_log_url: "http://logs.openstack.org"
- hosts: all
roles:
- add-build-sshkey
- start-zuul-console
- configure-unbound
- validate-host
- use-cached-repos
- mirror-workspace-git-repos
- mirror-info
- configure-mirrors
... | <|file_sep|>original/playbooks/base-test/pre.yaml
- hosts: localhost
roles:
- role: emit-job-header
zuul_log_url: "http://logs.openstack.org"
- hosts: all
roles:
- add-build-sshkey
- start-zuul-console
- configure-unbound
- validate-host
- use-cached-repos
- test-mirror-workspace-... | c1c1eacfe5e20003b5898b32a96052ce553ae952 | playbooks/base-test/pre.yaml | playbooks/base-test/pre.yaml | YAML |
<|file_sep|>original/package.json
{
"name": "guid generator",
"version": "1.0.0",
"description": "Simple Electron Guid Generator",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"repository": "https://github.com/stevenaubertin/guid",
"keywords": [
"electron",
"guid",
"generator... | {
"name": "guidgenerator",
"version": "1.0.0",
"description": "Simple Electron Guid Generator",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"repository": "https://github.com/stevenaubertin/guid",
"keywords": [
"electron",
"guid",
"generator",
"random",
"number",
... | <|file_sep|>original/package.json
{
"name": "guid generator",
"version": "1.0.0",
"description": "Simple Electron Guid Generator",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"repository": "https://github.com/stevenaubertin/guid",
"keywords": [
"electron",
"guid",
"generator... | 0ecda830dbff49f22c61bbe86bda8bcccf22de55 | package.json | package.json | JSON |
<|file_sep|>original/.gitlab-ci.yml
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
# FIXME: Re-enable valgrind once running the tests under it doesn’t take forever (it causes timeouts).
# Re-add valgrind to apt-install line above
build-and-test:
stage: build
script:
- meson ${MESON_COMMON_O... |
# FIXME: Re-enable valgrind once running the tests under it doesn’t take forever (it causes timeouts).
# Re-add valgrind to apt-install line above
build-and-test:
stage: build
script:
- meson ${MESON_COMMON_OPTIONS}
--werror
-Dwarning_level=2
-Dinstalled_tests=true
... | <|file_sep|>original/.gitlab-ci.yml
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
# FIXME: Re-enable valgrind once running the tests under it doesn’t take forever (it causes timeouts).
# Re-add valgrind to apt-install line above
build-and-test:
stage: build
script:
- meson ${MESON_COMMON_O... | 925695c894be93d289d464b32e2a42371b6812b9 | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>original/edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java
<|file_sep|>current/edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java
<|file_sep|>updated/edu.oregonstate.cope.eclipse.tests/src/edu/oregon... | package edu.oregonstate.cope.eclipse.listeners;
import static org.junit.Assert.assertTrue;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.util.Arrays;
import java.util.Random;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Base64InputStream... | <|file_sep|>original/edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java
<|file_sep|>current/edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java
<|file_sep|>updated/edu.oregonstate.cope.eclipse.tests/src/edu/oregon... | a5d1c44b36d6d92c7abe960053aa35747b89bc7d | edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java | edu.oregonstate.cope.eclipse.tests/src/edu/oregonstate/cope/eclipse/listeners/ResourceListenerTest.java | Java |
<|file_sep|>original/android/src/main/java/com/thebluealliance/androidclient/subscribers/MatchBreakdownSubscriber.java
package com.thebluealliance.androidclient.subscribers;
import com.google.gson.JsonObject;
import com.thebluealliance.androidclient.models.BasicModel;
import com.thebluealliance.androidclient.models.M... |
import com.thebluealliance.androidclient.models.BasicModel;
import com.thebluealliance.androidclient.models.Match;
public class MatchBreakdownSubscriber extends BaseAPISubscriber<Match, JsonObject> {
@Override
public void parseData() throws BasicModel.FieldNotDefinedException {
if (mAPIData.getYear()... | <|file_sep|>original/android/src/main/java/com/thebluealliance/androidclient/subscribers/MatchBreakdownSubscriber.java
package com.thebluealliance.androidclient.subscribers;
import com.google.gson.JsonObject;
import com.thebluealliance.androidclient.models.BasicModel;
import com.thebluealliance.androidclient.models.M... | 1156f9f2cd4dbf2d4cdb1afa693eb82e7ad5968f | android/src/main/java/com/thebluealliance/androidclient/subscribers/MatchBreakdownSubscriber.java | android/src/main/java/com/thebluealliance/androidclient/subscribers/MatchBreakdownSubscriber.java | Java |
<|file_sep|>original/docs/guide/vec_envs.rst
.. note::
Vectorized environments are required when using wrappers for frame-stacking or normalization.
.. note::
When using vectorized environments, the environments are automatically resetted at the end of each episode.
DummyVecEnv
-----------
.. autoclass:: Dummy... |
.. note::
Vectorized environments are required when using wrappers for frame-stacking or normalization.
.. note::
When using vectorized environments, the environments are automatically resetted at the end of each episode.
.. warning::
It seems that Windows users are experiencing issues with SubprocVecEnv.
We... | <|file_sep|>original/docs/guide/vec_envs.rst
.. note::
Vectorized environments are required when using wrappers for frame-stacking or normalization.
.. note::
When using vectorized environments, the environments are automatically resetted at the end of each episode.
DummyVecEnv
-----------
.. autoclass:: Dummy... | 1223730d39a2269de4df8e25883e2a2f2b0e79ab | docs/guide/vec_envs.rst | docs/guide/vec_envs.rst | reStructuredText |
<|file_sep|>original/packages.json
{
"schema_version": "1.2",
"packages": [
{
"name": "Better Duplicate Lines",
"description": "A more flexible approach to duplicating lines in Sublime Text 2.",
"author": "Jon Thomas",
"homepage": "https://github.com/wjthomas9/duplicate-lines",
"last_modified": "2013... | {
"schema_version": "1.2",
"packages": [
{
"name": "Better Duplicate Lines",
"description": "A more flexible approach to duplicating lines in Sublime Text 2.",
"author": "Jon Thomas",
"homepage": "https://github.com/wjthomas9/duplicate-lines",
"last_modified": "2013-03-04 01:00:00",
"platforms": {... | <|file_sep|>original/packages.json
{
"schema_version": "1.2",
"packages": [
{
"name": "Better Duplicate Lines",
"description": "A more flexible approach to duplicating lines in Sublime Text 2.",
"author": "Jon Thomas",
"homepage": "https://github.com/wjthomas9/duplicate-lines",
"last_modified": "2013... | df9639f2a6cee0daa73e212ed724d5e76a9ba4ae | packages.json | packages.json | JSON |
<|file_sep|>runtests.py.diff
original:
updated:
import django
if django.VERSION < (1, 6):
extra_settings = {
'TEST_RUNNER': 'discover_runner.DiscoverRunner',
}
else:
extra_settings = {}
<|file_sep|>original/runtests.py
DATABASES={
'default': {
'ENGINE': 'django... | 'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
INSTALLED_APPS=(
'tests',
),
MIDDLEWARE_CLASSES=(
),
ROOT_URLCONF='tests.urls',
**extra_settings,
)
def runtests():
argv = sys.argv[:1] + ['test... | <|file_sep|>runtests.py.diff
original:
updated:
import django
if django.VERSION < (1, 6):
extra_settings = {
'TEST_RUNNER': 'discover_runner.DiscoverRunner',
}
else:
extra_settings = {}
<|file_sep|>original/runtests.py
DATABASES={
'default': {
'ENGINE': 'django... | bb522a33096d7db252c02fda02e6419548094813 | runtests.py | runtests.py | Python |
<|file_sep|>original/package.json
}
],
"main": "grunt.js",
"engines": {
"node": "*"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"grunt": "~0.3.11",
"browserify": "1.13.x"
},
"devDependencies": {
"grunt": "~0.3.11",
"grunt-beautify": "0.1.x"
},
"keywords": ... | }
],
"main": "grunt.js",
"engines": {
"node": "*"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"grunt": "~0.3.11",
"browserify": "1.16.x"
},
"devDependencies": {
"grunt": "~0.3.11",
"grunt-beautify": "0.1.x"
},
"keywords": [
"gruntplugin"
]
} | <|file_sep|>original/package.json
}
],
"main": "grunt.js",
"engines": {
"node": "*"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"grunt": "~0.3.11",
"browserify": "1.13.x"
},
"devDependencies": {
"grunt": "~0.3.11",
"grunt-beautify": "0.1.x"
},
"keywords": ... | 496169e5fe3fadc2b6ed7c6a44b61eff15a08b43 | package.json | package.json | JSON |
<|file_sep|>original/app/models/discussion_board.rb
class DiscussionBoard < ActiveRecord::Base
attr_accessible :description, :name
validates :name, :presence => { :message => "for discussion board can't be blank" }
validates :description, :presence => { :message => "for discussion board can't be blank" }
... | class DiscussionBoard < ActiveRecord::Base
attr_accessible :description, :name
validates :name, :presence => { :message => "for discussion board can't be blank" }
validates :description, :presence => { :message => "for discussion board can't be blank" }
belongs_to :club
has_many :topics, :dependent ... | <|file_sep|>original/app/models/discussion_board.rb
class DiscussionBoard < ActiveRecord::Base
attr_accessible :description, :name
validates :name, :presence => { :message => "for discussion board can't be blank" }
validates :description, :presence => { :message => "for discussion board can't be blank" }
... | 6f8151adfbea3006c510bce5b6c4c7e4eb074d98 | app/models/discussion_board.rb | app/models/discussion_board.rb | Ruby |
<|file_sep|>original/.travis.yml
- build-tools-26.0.2
- platform-tools
- tools # Running this twice get's you the latest build tools
before_install:
- touch /home/travis/.android/repositories.cfg
install:
- echo yes | sdkmanager "tools"
- echo yes | sdkmanager "platforms;android-26" # Latest platfor... | - build-tools-26.0.2
- platform-tools
- tools # Running this twice get's you the latest build tools
before_install:
- touch /home/travis/.android/repositories.cfg
install:
- echo yes | $ANDROID_HOME/tools/bin/sdkmanager "tools"
- echo yes | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-26" #... | <|file_sep|>original/.travis.yml
- build-tools-26.0.2
- platform-tools
- tools # Running this twice get's you the latest build tools
before_install:
- touch /home/travis/.android/repositories.cfg
install:
- echo yes | sdkmanager "tools"
- echo yes | sdkmanager "platforms;android-26" # Latest platfor... | 59be0d39210a422c85e95a9469a611be66d67572 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/editable-json-common.js
Meteor.methods({
editableJSON_update: function (collectionName, _id, action) {
var Collection = Mongo.Collection.get(collectionName);
var updated = 0;
try {
if (!!Package['aldeed:simple-schema'] && !!Package['aldeed:collection2'] && _.is... | Meteor.methods({
editableJSON_update: function (collectionName, _id, action) {
check(collectionName, String);
check(_id, String);
check(action, Object);
var Collection = Mongo.Collection.get(collectionName);
var updated = 0;
try {
if (!!Package['aldeed:simple-schema'] && !!P... | <|file_sep|>original/editable-json-common.js
Meteor.methods({
editableJSON_update: function (collectionName, _id, action) {
var Collection = Mongo.Collection.get(collectionName);
var updated = 0;
try {
if (!!Package['aldeed:simple-schema'] && !!Package['aldeed:collection2'] && _.is... | 02a39b17516bc07ed9370dbd9cc21c67a9613479 | editable-json-common.js | editable-json-common.js | JavaScript |
<|file_sep|>original/tasks/test-task.coffee
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm')
queue = async.queue (packagePath, callback) ->
options =
cmd: apmPath
... |
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm')
queue = async.queue (packagePath, callback) ->
options =
cmd: apmPath
args: ['test', '--path', atomPath]
... | <|file_sep|>original/tasks/test-task.coffee
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm')
queue = async.queue (packagePath, callback) ->
options =
cmd: apmPath
... | c1f8b1e94199f6a957def106e0e28929e7095082 | tasks/test-task.coffee | tasks/test-task.coffee | CoffeeScript |
<|file_sep|>original/spec/factories/mdui_logos.rb
FactoryGirl.define do
factory :mdui_logo, class: 'MDUI::Logo' do
uri { Faker::Internet.url }
width { Faker::Number.number(3).to_i + 1 }
height { Faker::Number.number(3).to_i + 2 }
association :ui_info, factory: :mdui_ui_info
end
end
<|file_sep|>curre... | FactoryGirl.define do
factory :mdui_logo, class: 'MDUI::Logo', parent: :localized_uri do
width { Faker::Number.number(3).to_i + 1 }
height { Faker::Number.number(3).to_i + 2 }
association :ui_info, factory: :mdui_ui_info
end
end | <|file_sep|>original/spec/factories/mdui_logos.rb
FactoryGirl.define do
factory :mdui_logo, class: 'MDUI::Logo' do
uri { Faker::Internet.url }
width { Faker::Number.number(3).to_i + 1 }
height { Faker::Number.number(3).to_i + 2 }
association :ui_info, factory: :mdui_ui_info
end
end
<|file_sep|>curre... | 549e30ee54cb85a5c12aba556aee84d4a0d3df5b | spec/factories/mdui_logos.rb | spec/factories/mdui_logos.rb | Ruby |
<|file_sep|>original/R7.Epsilon/Customizations/volgau.com/README.md
# Customizations for volgau.com
## After install
1. Copy `R7.Epsilon-portal.config` to portal root directory.
2. Add `[^?]*/(\d+)(.*)` rule to *Host > Advanced > Friendly URL Settings*
to allow short URLs like http://www.some-company.com/1245... | # Customizations for volgau.com
## After install
1. Install / upgrade main skin package.
2. Unpack content of *this* archive to the host root directory, replacing existing files.
2. First time install: add `[^?]*/(\d+)(.*)` rule to *Host > Advanced > Friendly URL Settings*
to allow short URLs like http://www.... | <|file_sep|>original/R7.Epsilon/Customizations/volgau.com/README.md
# Customizations for volgau.com
## After install
1. Copy `R7.Epsilon-portal.config` to portal root directory.
2. Add `[^?]*/(\d+)(.*)` rule to *Host > Advanced > Friendly URL Settings*
to allow short URLs like http://www.some-company.com/1245... | 1483cb44abe818095746b7f8526b50057c708e64 | R7.Epsilon/Customizations/volgau.com/README.md | R7.Epsilon/Customizations/volgau.com/README.md | Markdown |
<|file_sep|>original/package.json
{
"name": "content-service",
"version": "1.0.0",
"description": "A content service for storing and retreiving content",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docker-build": "docker build -t content-service .",
"dock... | "name": "content-service",
"version": "1.0.0",
"description": "A content service for storing and retreiving content",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docker-build": "docker build -t content-service .",
"docker-run": "sh -c \"docker run -it --r... | <|file_sep|>original/package.json
{
"name": "content-service",
"version": "1.0.0",
"description": "A content service for storing and retreiving content",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docker-build": "docker build -t content-service .",
"dock... | 88d571b46d16c3bf7a2ff5aca8514b297b9b70b8 | package.json | package.json | JSON |
<|file_sep|>original/data/transition-sites/ice.yml
<|file_sep|>current/data/transition-sites/ice.yml
<|file_sep|>updated/data/transition-sites/ice.yml | ---
site: ice
whitehall_slug: independent-case-examiner
title: Independent Case Examiner
redirection_date: 7th April 2014
homepage: https://www.gov.uk/government/organisations/independent-case-examiner
tna_timestamp: 20140103160731
host: www.ind-case-exam.org.uk
aliases:
- ind-case-exam.org.uk | <|file_sep|>original/data/transition-sites/ice.yml
<|file_sep|>current/data/transition-sites/ice.yml
<|file_sep|>updated/data/transition-sites/ice.yml
---
site: ice
whitehall_slug: independent-case-examiner
title: Independent Case Examiner
redirection_date: 7th April 2014
homepage: https://www.gov.uk/government/organ... | cbdd9a3d5d7ccd2dc88303c882789b1cb06fa07d | data/transition-sites/ice.yml | data/transition-sites/ice.yml | YAML |
<|file_sep|>original/templates/rss_post.haml
%h4
%a(href="#{post['links']}")= post['title']
%span= "by #{post['author']}"
<|file_sep|>current/templates/rss_post.haml
%h4
%a(href="#{post['links']}")= post['title']
%span= "by #{post['author']}"
<|file_sep|>updated/templates/rss_post.haml | %h4
%a(href="#{post['links'][0]}")= post['title']
%span= "by #{post['author']}" | <|file_sep|>original/templates/rss_post.haml
%h4
%a(href="#{post['links']}")= post['title']
%span= "by #{post['author']}"
<|file_sep|>current/templates/rss_post.haml
%h4
%a(href="#{post['links']}")= post['title']
%span= "by #{post['author']}"
<|file_sep|>updated/templates/rss_post.haml
%h4
%a(href="#{post['li... | 842fb26ca5a6b530f9453c5ce700e9f997315298 | templates/rss_post.haml | templates/rss_post.haml | Haml |
<|file_sep|>CONFIG.sh.diff
original:
updated:
# Set flags to indicate operating system.
if [ $(uname -s) == "Linux" ]; then
export IS_LINUX=1
fi
if [ $(uname -s) == "Darwin" ]; then
export IS_MACOS=1
fi
if [ $(uname -s) == "MINGW32_NT-6.1" ]; then
export IS_MINGW=1
fi
<|file_sep|>original/CONFIG.sh
# Let... |
if [[ $IS_MINGW ]]; then
export INSTALL_PREFIX=C:/MinGW
else
export INSTALL_PREFIX=/usr/local
fi
# PREFIX gives the location passed to a build system for installation, usually
# `configure --prefix`.
export PREFIX=$INSTALL_PREFIX
#export PREFIX=$PWD/dst
# Let make take advantage of multiple processor cores.... | <|file_sep|>CONFIG.sh.diff
original:
updated:
# Set flags to indicate operating system.
if [ $(uname -s) == "Linux" ]; then
export IS_LINUX=1
fi
if [ $(uname -s) == "Darwin" ]; then
export IS_MACOS=1
fi
if [ $(uname -s) == "MINGW32_NT-6.1" ]; then
export IS_MINGW=1
fi
<|file_sep|>original/CONFIG.sh
# Let... | 2b74bf1303711ffb6a00c2b50b8a2f3a54ffdca4 | CONFIG.sh | CONFIG.sh | Shell |
<|file_sep|>original/config/databaseViews/project_status.sql
CREATE OR REPLACE VIEW project_status AS
SELECT id, status
FROM project
WHERE status IS NOT NULL
GROUP BY status;
<|file_sep|>current/config/databaseViews/project_status.sql
CREATE OR REPLACE VIEW project_status AS
SELECT id, status
FROM project
WHERE status ... | CREATE OR REPLACE VIEW project_status AS
SELECT row_number() OVER () AS id, status
FROM project
WHERE status IS NOT NULL
GROUP BY status; | <|file_sep|>original/config/databaseViews/project_status.sql
CREATE OR REPLACE VIEW project_status AS
SELECT id, status
FROM project
WHERE status IS NOT NULL
GROUP BY status;
<|file_sep|>current/config/databaseViews/project_status.sql
CREATE OR REPLACE VIEW project_status AS
SELECT id, status
FROM project
WHERE status ... | af4d1ad7c1659d3a1461b98f0f9868694efe4195 | config/databaseViews/project_status.sql | config/databaseViews/project_status.sql | SQL |
<|file_sep|>original/cookbooks/rundeck/recipes/default.rb
end
directory "#{node[:rundeck][:user_home]}/.ssh" do
owner node[:rundeck][:user]
group node[:rundeck][:user]
recursive true
mode "0700"
end
cookbook_file "#{node[:rundeck][:user_home]}/.ssh/authorized_keys" do
owner node[:rundeck][:user]
group nod... | owner node[:rundeck][:user]
group node[:rundeck][:user]
recursive true
mode "0700"
end
cookbook_file "#{node[:rundeck][:user_home]}/.ssh/authorized_keys" do
owner node[:rundeck][:user]
group node[:rundeck][:user]
mode "0600"
backup false
source "rundeck.pub"
end
file "/etc/sudoers.d/rundeck" do
ow... | <|file_sep|>original/cookbooks/rundeck/recipes/default.rb
end
directory "#{node[:rundeck][:user_home]}/.ssh" do
owner node[:rundeck][:user]
group node[:rundeck][:user]
recursive true
mode "0700"
end
cookbook_file "#{node[:rundeck][:user_home]}/.ssh/authorized_keys" do
owner node[:rundeck][:user]
group nod... | 707d56db92da0fdf05746c89f5d844279b8dded3 | cookbooks/rundeck/recipes/default.rb | cookbooks/rundeck/recipes/default.rb | Ruby |
<|file_sep|>original/doc/release_notes.rst
to generate the documentation from a function id.
* :class:`js:autoclass <champollion.directive.class_.AutoClassDirective>`
to generate the documentation from a class id.
* :class:`js:automethod <champollion.directive.method.AutoMethodDirect... | to generate the documentation from a function id.
* :class:`js:autoclass <champollion.directive.class_.AutoClassDirective>`
to generate the documentation from a class id.
* :class:`js:automethod <champollion.directive.method.AutoMethodDirective>`
to generate the documentati... | <|file_sep|>original/doc/release_notes.rst
to generate the documentation from a function id.
* :class:`js:autoclass <champollion.directive.class_.AutoClassDirective>`
to generate the documentation from a class id.
* :class:`js:automethod <champollion.directive.method.AutoMethodDirect... | 8941943775fd40b956f14903070acdef787e5769 | doc/release_notes.rst | doc/release_notes.rst | reStructuredText |
<|file_sep|>original/launch/src/main/input_resources/sbt/sbt.boot.properties
[scala]
version: ${sbt.scala.version-auto}
[app]
org: ${sbt.organization-${{org}}}
name: sbt
version: ${sbt.version-read(sbt.version)[${{sbt.version}}]}
class: ${sbt.main.class-sbt.xMain}
components: xsbti,extra
cross-versioned:... | [scala]
version: ${sbt.scala.version-auto}
[app]
org: ${sbt.organization-${{org}}}
name: sbt
version: ${sbt.version-read(sbt.version)[${{sbt.version}}]}
class: ${sbt.main.class-sbt.xMain}
components: xsbti,extra
cross-versioned: ${sbt.cross.versioned-false}
resources: ${sbt.extraClasspath-}
[repositor... | <|file_sep|>original/launch/src/main/input_resources/sbt/sbt.boot.properties
[scala]
version: ${sbt.scala.version-auto}
[app]
org: ${sbt.organization-${{org}}}
name: sbt
version: ${sbt.version-read(sbt.version)[${{sbt.version}}]}
class: ${sbt.main.class-sbt.xMain}
components: xsbti,extra
cross-versioned:... | ad718587bb3686fb7492b5dbfee53e696517c38d | launch/src/main/input_resources/sbt/sbt.boot.properties | launch/src/main/input_resources/sbt/sbt.boot.properties | INI |
<|file_sep|>original/roles/web-backend.rb
description "Role applied to all web/api backend servers"
default_attributes(
:apache => {
:mpm => "worker",
:worker => {
:max_requests_per_child => 10000
}
},
:memcached => {
:memory_limit => 512
},
:web => {
:rails_daemon_limit => 12,
... | description "Role applied to all web/api backend servers"
default_attributes(
:apache => {
:mpm => "worker",
:worker => {
:max_requests_per_child => 10000
}
},
:memcached => {
:memory_limit => 4096
},
:web => {
:rails_daemon_limit => 12,
:rails_soft_memory_limit => 512,
:ra... | <|file_sep|>original/roles/web-backend.rb
description "Role applied to all web/api backend servers"
default_attributes(
:apache => {
:mpm => "worker",
:worker => {
:max_requests_per_child => 10000
}
},
:memcached => {
:memory_limit => 512
},
:web => {
:rails_daemon_limit => 12,
... | b00300ce90097252f721ad9805eb77b7d07fda33 | roles/web-backend.rb | roles/web-backend.rb | Ruby |
<|file_sep|>original/tests/PairTest.php
<|file_sep|>current/tests/PairTest.php
<|file_sep|>updated/tests/PairTest.php | <?php
use Socks\Factory;
class PairTest extends TestCase
{
private $loop;
private $factory;
public function setUp()
{
$this->loop = React\EventLoop\Factory::create();
$dnsResolverFactory = new React\Dns\Resolver\Factory();
$dns = $dnsResolverFactory->createCached(... | <|file_sep|>original/tests/PairTest.php
<|file_sep|>current/tests/PairTest.php
<|file_sep|>updated/tests/PairTest.php
<?php
use Socks\Factory;
class PairTest extends TestCase
{
private $loop;
private $factory;
public function setUp()
{
$this->loop = React\EventLoop\Factory::create();
... | 3c7df961f2c05eb49d9b5d70331eeda0da950989 | tests/PairTest.php | tests/PairTest.php | PHP |
<|file_sep|>original/base/CMakeLists.txt
file(GLOB BASE_SRC *.cpp)
file(GLOB BASE_HEADERS *.hpp)
add_library(base SHARED ${BASE_SRC})
<|file_sep|>current/base/CMakeLists.txt
file(GLOB BASE_SRC *.cpp)
file(GLOB BASE_HEADERS *.hpp)
add_library(base SHARED ${BASE_SRC})
<|file_sep|>updated/base/CMakeLists.txt | file(GLOB BASE_SRC *.cpp)
file(GLOB BASE_HEADERS *.hpp)
if(WIN32)
add_library(base SHARED ${BASE_SRC})
target_link_libraries(base ${Vulkan_LIBRARY} ${ASSIMP_LIBRARIES} ${WINLIBS})
else(WIN32)
add_library(base SHARED ${BASE_SRC})
target_link_libraries(base ${Vulkan_LIBRARY} ${ASSIMP_LIBRARIES} ${XCB_LI... | <|file_sep|>original/base/CMakeLists.txt
file(GLOB BASE_SRC *.cpp)
file(GLOB BASE_HEADERS *.hpp)
add_library(base SHARED ${BASE_SRC})
<|file_sep|>current/base/CMakeLists.txt
file(GLOB BASE_SRC *.cpp)
file(GLOB BASE_HEADERS *.hpp)
add_library(base SHARED ${BASE_SRC})
<|file_sep|>updated/base/CMakeLists.txt
file(GLOB B... | ac7d7396c278a4661a9532f2f75390cd23de4250 | base/CMakeLists.txt | base/CMakeLists.txt | Text |
<|file_sep|>original/app/views/stickies/renders/hot_stickies.js.erb
$('#<%= view_category %>_stickies').html("<%= j render(partial: '/stickies/hot_stickies', locals: {stickies: stickies, view_category: view_category, content_id: content_id}) %>");
<|file_sep|>current/app/views/stickies/renders/hot_stickies.js.erb
$('#<... | $('#<%= view_category %>-stickies').html("<%= j render(partial: '/stickies/hot_stickies', locals: {stickies: stickies, view_category: view_category, content_id: content_id}) %>"); | <|file_sep|>original/app/views/stickies/renders/hot_stickies.js.erb
$('#<%= view_category %>_stickies').html("<%= j render(partial: '/stickies/hot_stickies', locals: {stickies: stickies, view_category: view_category, content_id: content_id}) %>");
<|file_sep|>current/app/views/stickies/renders/hot_stickies.js.erb
$('#<... | a7e9389438173663e984774d9cf71d8164fc2e7e | app/views/stickies/renders/hot_stickies.js.erb | app/views/stickies/renders/hot_stickies.js.erb | HTML+ERB |
<|file_sep|>src/actions/print.rs.diff
original:
updated:
use notify::op;
use notify::op::Op;
<|file_sep|>src/actions/print.rs.diff
original:
updated:
pub fn flag_to_str(&self, flag: &Op) -> &'static str {
match flag {
&op::CHMOD => "Permissions or timestamps changed",
&op::CREATE ... | &op::WRITE => "File or diretory written to",
_ => "Unknown change"
}
}
}
impl Action for PrintAction {
fn handle_change(&self, event: &Event) {
match event.path {
None => println!("No path for event"),
Some(ref path) => {
let mess... | <|file_sep|>src/actions/print.rs.diff
original:
updated:
use notify::op;
use notify::op::Op;
<|file_sep|>src/actions/print.rs.diff
original:
updated:
pub fn flag_to_str(&self, flag: &Op) -> &'static str {
match flag {
&op::CHMOD => "Permissions or timestamps changed",
&op::CREATE ... | c762858305850285b05b95e49fe7e0681d80282f | src/actions/print.rs | src/actions/print.rs | Rust |
<|file_sep|>original/cookie_requirement.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'cookie_requirement'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.authors = [ 'Jonah Burke' ]
s.email = [ 'jonah@jonahb.com' ]
s.homepage = ''
s.summary ... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'cookie_requirement'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.authors = [ 'Jonah Burke' ]
s.email = [ 'jonah@jonahb.com' ]
s.homepage = 'http://github.com/jonahb/cookie_requirement'
s.summary = '... | <|file_sep|>original/cookie_requirement.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'cookie_requirement'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.authors = [ 'Jonah Burke' ]
s.email = [ 'jonah@jonahb.com' ]
s.homepage = ''
s.summary ... | a9b8ad3d19e6717fca730b1bd63d190c8f7e335b | cookie_requirement.gemspec | cookie_requirement.gemspec | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- 5.3
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.3
before_script:
- composer install --dev --prefer-source --no-interaction
script:
- phpunit --coverage-text
<|file_sep|>current/.travis.yml
la... | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm
sudo: false
install:
- composer install --no-interaction
script:
- phpunit --coverage-text | <|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- 5.3
<|file_sep|>original/.travis.yml
language: php
php:
- 5.4
- 5.3
before_script:
- composer install --dev --prefer-source --no-interaction
script:
- phpunit --coverage-text
<|file_sep|>current/.travis.yml
la... | 0d339ecde8c1a4853304d91a6f6719d1cbe68e73 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/pages/posts/shell/apprendre-les-makefiles/index.jade
extends /src/layouts/post
block exports
-exports.type = "post"
-exports.comments = true
-exports.authors = ["madx"]
-exports.title = "Laissez vous pousser la barbe, apprenez à écrire des Makefiles"
-exports.tags = ["shell", "makefi... | extends /src/layouts/post
block exports
-exports.type = "post"
-exports.comments = true
-exports.authors = ["madx"]
-exports.title = "Laissez-vous pousser la barbe, apprenez à écrire des Makefiles"
-exports.tags = ["shell", "makefile"]
-exports.date = "2014-11-03"
block main
+Post(exports.title)
inc... | <|file_sep|>original/src/pages/posts/shell/apprendre-les-makefiles/index.jade
extends /src/layouts/post
block exports
-exports.type = "post"
-exports.comments = true
-exports.authors = ["madx"]
-exports.title = "Laissez vous pousser la barbe, apprenez à écrire des Makefiles"
-exports.tags = ["shell", "makefi... | 9dc36c27589538ea6c772b0bfc3d92981d8518e8 | src/pages/posts/shell/apprendre-les-makefiles/index.jade | src/pages/posts/shell/apprendre-les-makefiles/index.jade | Jade |
<|file_sep|>original/test-bootstrapper.js
// require all modules ending in ".tests.ts" from source and all subdirectories
var testsContext = require.context('./source', true, /\.tests\.js$/);
testsContext.keys().forEach(testsContext);
<|file_sep|>current/test-bootstrapper.js
// require all modules ending in ".tests.ts... | require('core-js/es6');
require('core-js/es7/reflect');
// require all modules ending in ".tests.ts" from source and all subdirectories
var testsContext = require.context('./source', true, /\.tests\.js$/);
testsContext.keys().forEach(testsContext); | <|file_sep|>original/test-bootstrapper.js
// require all modules ending in ".tests.ts" from source and all subdirectories
var testsContext = require.context('./source', true, /\.tests\.js$/);
testsContext.keys().forEach(testsContext);
<|file_sep|>current/test-bootstrapper.js
// require all modules ending in ".tests.ts... | d7cf77949ff26fefebe6174bbdbddd260ff0372d | test-bootstrapper.js | test-bootstrapper.js | JavaScript |
<|file_sep|>original/requirements.txt
itsdangerous==1.1.0
jinja2==2.11.3
markupsafe==1.1.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.9.1
pendulum==2.1.2
pick==1.0.0
pillow==8.2.0
psycopg2-binary==2.8.6
python-dateutil==2.8.1
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rtoml... | itsdangerous==1.1.0
jinja2==2.11.3
markupsafe==1.1.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.9.1
pendulum==2.1.2
pick==1.0.0
pillow==8.2.0
psycopg2-binary==2.8.6
python-dateutil==2.8.1
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.6.1
sqlalchemy==1.3.20
tenacity==6... | <|file_sep|>original/requirements.txt
itsdangerous==1.1.0
jinja2==2.11.3
markupsafe==1.1.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.9.1
pendulum==2.1.2
pick==1.0.0
pillow==8.2.0
psycopg2-binary==2.8.6
python-dateutil==2.8.1
pytzdata==2020.1
redis==3.5.3
requests==2.25.1
rq==1.8.0
rq-dashboard==0.6.1
rtoml... | 5f936ddd851b1032f866d999c7bf20f271e3640a | requirements.txt | requirements.txt | Text |
<|file_sep|>original/jenkins.sh
#!/usr/bin/env bash
git clone 'git@github.gds:gds/cdn-configs.git'
cp cdn-configs/fastly/fastly.yaml .
git clone 'git@github.com:alphagov/govuk-cdn-config.git'
cp govuk-cdn-config/vcl_templates/*.vcl.erb vcl_templates/
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec ... | #!/usr/bin/env bash
git clone 'git@github.gds:gds/cdn-configs.git'
cp cdn-configs/fastly/fastly.yaml .
git clone 'git@github.com:alphagov/govuk-cdn-config.git'
cp govuk-cdn-config/vcl_templates/*.vcl.erb vcl_templates/
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec ./deploy_vcl ${vhost} ${ENVIRONM... | <|file_sep|>original/jenkins.sh
#!/usr/bin/env bash
git clone 'git@github.gds:gds/cdn-configs.git'
cp cdn-configs/fastly/fastly.yaml .
git clone 'git@github.com:alphagov/govuk-cdn-config.git'
cp govuk-cdn-config/vcl_templates/*.vcl.erb vcl_templates/
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec ... | 3f0d77c7fd3218778ae8649e828fbf739ac1c1cd | jenkins.sh | jenkins.sh | Shell |
<|file_sep|>license.md.diff
original:
Copyright [2014] [Siddharth Kannan]
updated:
The MIT License (MIT)
<|file_sep|>license.md.diff
original:
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
updated:... | The MIT License (MIT)
Copyright (c) 2014 Siddharth Kannan <kannan.siddharth12@gmail.com>
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 righ... | <|file_sep|>license.md.diff
original:
Copyright [2014] [Siddharth Kannan]
updated:
The MIT License (MIT)
<|file_sep|>license.md.diff
original:
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
updated:... | 18e56fc9d7705589f74a27a83719e55659015b87 | license.md | license.md | Markdown |
<|file_sep|>original/package.json
"version": "0.4.1",
"description": "Plugin to take a pattern and rename each matched file",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git@github.com:alex-ketch/metalsmith-renamer.git"
},
"scripts": {
"test": "echo \"Error: no test specified\... | },
"keywords": [
"metalsmith",
"rename",
"file"
],
"author": "Alex Ketch",
"license": "MIT",
"dependencies": {
"minimatch": "^3.0.0"
},
"devDependencies": {
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"prettier": "^2.0.5"
},
"eslint": {
"e... | <|file_sep|>original/package.json
"version": "0.4.1",
"description": "Plugin to take a pattern and rename each matched file",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git@github.com:alex-ketch/metalsmith-renamer.git"
},
"scripts": {
"test": "echo \"Error: no test specified\... | 16e2fc3329ecee882a7c99002d1700ffc54d8950 | package.json | package.json | JSON |
<|file_sep|>original/utils/packaging/packaging_ubuntu.yml
---
- name: Create temporary mount point
file: dest=temp state=directory
- shell: "mount"
- shell: "df"
- shell: "umount {{ chrootpath }}/dev"
- shell: "lsof {{ chrootpath }}/proc"
- shell: "umount -l {{ chrootpath }}/proc"
- shell: "fallocat... | ---
- name: Create temporary mount point
file: dest=temp state=directory
- shell: "mount"
- shell: "df"
- shell: "umount {{ chrootpath }}/dev"
- shell: "lsof {{ chrootpath }}/proc"
- shell: "umount -l {{ chrootpath }}/proc"
- shell: "fallocate -l {{ rootfs_size }} rootfs.img"
- shell: "mkfs.ext4 -... | <|file_sep|>original/utils/packaging/packaging_ubuntu.yml
---
- name: Create temporary mount point
file: dest=temp state=directory
- shell: "mount"
- shell: "df"
- shell: "umount {{ chrootpath }}/dev"
- shell: "lsof {{ chrootpath }}/proc"
- shell: "umount -l {{ chrootpath }}/proc"
- shell: "fallocat... | bc89c2e8f252d44ee46e6657a532087c8cae207c | utils/packaging/packaging_ubuntu.yml | utils/packaging/packaging_ubuntu.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.4.0
addons:
postgresql: "9.3"
services:
- redis-server
before_install: gem install bundler -v 1.12.5
before_script:
- bundle exec rake db:create
- bundle exec rake db:schema:load
env:
global:
- RAILS_ENV=test
- AWS_BUCKET=fictional_winnitron_b... | language: ruby
rvm:
- 2.5.3
addons:
postgresql: "9.3"
services:
- redis-server
before_install: gem install bundler -v 1.12.5
before_script:
- bundle exec rake db:create
- bundle exec rake db:schema:load
env:
global:
- RAILS_ENV=test
- AWS_BUCKET=fictional_winnitron_bucket
- AWS_ACCESS_KEY_ID=abc... | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.4.0
addons:
postgresql: "9.3"
services:
- redis-server
before_install: gem install bundler -v 1.12.5
before_script:
- bundle exec rake db:create
- bundle exec rake db:schema:load
env:
global:
- RAILS_ENV=test
- AWS_BUCKET=fictional_winnitron_b... | 6860d13439063ebc2bd67d5c9f82213409463d44 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/bin/deploy.sh
#!/usr/bin/env bash
rm -rf lib
tsc -p .
for nm in lib/*.js lib/**/*.js; do
mv "$nm" "${nm%.js}.mjs";
done
tsc -p . --module commonjs
rollup -c rollup.config.js
cp package.json lib
cp README.md lib
<|file_sep|>current/bin/deploy.sh
#!/usr/bin/env bash
rm -rf lib
tsc -p .
for nm in ... | #!/usr/bin/env bash
rm -rf lib
tsc -p .
for nm in lib/*.js lib/**/*.js; do
mv "$nm" "${nm%.js}.mjs";
done
tsc -p . --module commonjs
rollup -c rollup.config.js
cp package.json lib
cp README.md lib
find ./lib -name '*.test.js' -or -name '*.test.mjs' -or -name '*.test.d.ts' | xargs rm | <|file_sep|>original/bin/deploy.sh
#!/usr/bin/env bash
rm -rf lib
tsc -p .
for nm in lib/*.js lib/**/*.js; do
mv "$nm" "${nm%.js}.mjs";
done
tsc -p . --module commonjs
rollup -c rollup.config.js
cp package.json lib
cp README.md lib
<|file_sep|>current/bin/deploy.sh
#!/usr/bin/env bash
rm -rf lib
tsc -p .
for nm in ... | 08cc277d7414f3ed6dbcaffb3a1fef40d036561e | bin/deploy.sh | bin/deploy.sh | Shell |
<|file_sep|>original/git/aliases.zsh
alias g="git"
# See `scmpuff/env.zsh` for the `gl` alias
alias gap="git add -p"
alias gcob="git checkout -b"
alias gc="git commit"
alias gdt="git difftool"
alias gpl="git pull"
alias gps="git push"
alias gaa="git add --all"
alias gca="git commit --amend"
# amend commit without edi... | alias g="git"
# See `scmpuff/env.zsh` for the `gl` alias
alias gap="git add -p"
alias gcob="git checkout -b"
alias gc="git commit"
alias gdt="git difftool"
alias gpl="git pull && git submodule update --init --recursive"
alias gps="git push"
alias gaa="git add --all"
alias gca="git commit --amend"
# amend commit witho... | <|file_sep|>original/git/aliases.zsh
alias g="git"
# See `scmpuff/env.zsh` for the `gl` alias
alias gap="git add -p"
alias gcob="git checkout -b"
alias gc="git commit"
alias gdt="git difftool"
alias gpl="git pull"
alias gps="git push"
alias gaa="git add --all"
alias gca="git commit --amend"
# amend commit without edi... | 785ea7985806c390936034ffb6f5f7e14899032a | git/aliases.zsh | git/aliases.zsh | Shell |
<|file_sep|>.travis.yml.diff
original:
- sbt test
updated:
<|file_sep|>original/.travis.yml
- 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- sbt test
- cd public
- grunt test
- cd ..
- sbt dist
deploy:
provider: heroku
... | - 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- cd public
- grunt test
- cd ..
- sbt clean compile test dist
deploy:
provider: heroku
api_key:
secure: RwSpEp49ALY8s4x6/HonZXrm0URSl8rgyLsZ8PhRQHN/P/pgPnUwsEWh6yxcHK... | <|file_sep|>.travis.yml.diff
original:
- sbt test
updated:
<|file_sep|>original/.travis.yml
- 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- sbt test
- cd public
- grunt test
- cd ..
- sbt dist
deploy:
provider: heroku
... | ca14ca75b31c15bb78c040e8877552b18b41d341 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/server/start.sh
#!/bin/bash
service postgresql start
service redis-server start # Required for celery
pid_file=/app/_citydash_django.pid
server_out=/app/django.log
server_err=/app/error.log
if [ -f $pid_file ]; then
pid=$(cat $pid_file);
echo "Killing server ($pid)";
kill -KILL $(cat ... | #!/bin/bash
service postgresql start
service redis-server start # Required for celery
pid_file=/var/run/_citydash_django.pid
server_out=/app/django.log
server_err=/app/error.log
if [ -f $pid_file ]; then
pid=$(cat $pid_file);
echo "Killing server ($pid)";
kill -KILL $(cat $pid_file);
rm -f $pid_file
f... | <|file_sep|>original/server/start.sh
#!/bin/bash
service postgresql start
service redis-server start # Required for celery
pid_file=/app/_citydash_django.pid
server_out=/app/django.log
server_err=/app/error.log
if [ -f $pid_file ]; then
pid=$(cat $pid_file);
echo "Killing server ($pid)";
kill -KILL $(cat ... | f08d2801e66f9034079fb2f03a6cc395745fcc41 | server/start.sh | server/start.sh | Shell |
<|file_sep|>original/server/publications.js
}
return isLoggedIn && (isAdmin || isWhitelisted);
}
Meteor.publish('authorizedPub', function () {
if (isAuthorized.call(this)) {
let cursors = [];
cursors.push(Changes.find({}));
cursors.push(Characters.find({}));
cursors.push(Errors.find({}));
c... | }
return isLoggedIn && (isAdmin || isWhitelisted);
}
Meteor.publish('authorizedPub', function () {
if (isAuthorized.call(this)) {
let cursors = [
Changes.find({}),
Characters.find({}),
Errors.find({}),
Keys.find({}),
Whitelist.find({}, {fields: {characterID: 1}})
];
re... | <|file_sep|>original/server/publications.js
}
return isLoggedIn && (isAdmin || isWhitelisted);
}
Meteor.publish('authorizedPub', function () {
if (isAuthorized.call(this)) {
let cursors = [];
cursors.push(Changes.find({}));
cursors.push(Characters.find({}));
cursors.push(Errors.find({}));
c... | d79bf7424dafa06e25b4193955278d42ec81c090 | server/publications.js | server/publications.js | JavaScript |
<|file_sep|>original/_data/menu.yml
href: "/"
- title: "Blog"
href: "/blog/"
- title: "Resume"
href: "/AlexVallejoResume.pdf"
new_tab: true
- title: "Experience"
href: "/experience/"
- title: "Personal"
href: "/personal/"
subcategories:
- subtitle: "Family"
subhref: "/personal/family/"
-... | href: "/"
- title: "Blog"
href: "/blog/"
- title: "Resume"
href: "/AlexVallejoResume.pdf"
new_tab: true
- title: "Experience"
href: "/experience/"
#- title: "Personal"
# href: "/personal/"
# subcategories:
# - subtitle: "Family"
# subhref: "/personal/family/"
# - subtitle: "Fitness"
# su... | <|file_sep|>original/_data/menu.yml
href: "/"
- title: "Blog"
href: "/blog/"
- title: "Resume"
href: "/AlexVallejoResume.pdf"
new_tab: true
- title: "Experience"
href: "/experience/"
- title: "Personal"
href: "/personal/"
subcategories:
- subtitle: "Family"
subhref: "/personal/family/"
-... | a2b9de146164c9ee68d4ad25892cdc2818d3ead5 | _data/menu.yml | _data/menu.yml | YAML |
<|file_sep|>original/test/CodeGen/X86/fastcc.ll
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | grep ecx | grep 0
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | grep xmm0 | grep 8
@d = external global double ; <double*> [#uses=1]
@c = external global double ; <double*> [#us... | ; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | FileCheck %s
; CHECK: movsd %xmm0, 8(%esp)
; CHECK: xorl %ecx, %ecx
@d = external global double ; <double*> [#uses=1]
@c = external global double ; <double*> [#uses=1]
@b = external global double ; <double*> [#uses=1]
@a = external global double ; <double*>... | <|file_sep|>original/test/CodeGen/X86/fastcc.ll
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | grep ecx | grep 0
; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | grep mov | grep xmm0 | grep 8
@d = external global double ; <double*> [#uses=1]
@c = external global double ; <double*> [#us... | 79d4646f4b7066d54314919c3a4f30deb57eaf84 | test/CodeGen/X86/fastcc.ll | test/CodeGen/X86/fastcc.ll | LLVM |
<|file_sep|>original/camel-core/src/main/java/org/apache/camel/Processor.java
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel;
/**
* A <a href="http://camel.apache.org/processor.html">processor</a> is used to implement the
* <a hre... | * See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel;
/**
* A <a href="http://camel.apache.org/processor.html">processor</a> is used to implement the
* <a href="http://camel.apache.org/event-driven-consumer.html"> Event Driven Consumer<... | <|file_sep|>original/camel-core/src/main/java/org/apache/camel/Processor.java
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel;
/**
* A <a href="http://camel.apache.org/processor.html">processor</a> is used to implement the
* <a hre... | c4f97a1cc3c80b9e961e6c98d8b14486b2cc0456 | camel-core/src/main/java/org/apache/camel/Processor.java | camel-core/src/main/java/org/apache/camel/Processor.java | Java |
<|file_sep|>lib/charlotte.js.diff
original:
updated:
// Charlotte takes care of stuffs that can't be done easily from shell
<|file_sep|>lib/charlotte.js.diff
original:
updated:
// bump major/minor/build number in package.json's version field
<|file_sep|>lib/charlotte.js.diff
original:
fs.writeFileSync(CON... | // process variables in template files
function template() {
_.keys(conf.bob.template).forEach(function (file) {
// TODO: add file check handling
var data = fs.readFileSync(file).toString();
conf.bob.template[file].forEach(function (prop) {
data = tool... | <|file_sep|>lib/charlotte.js.diff
original:
updated:
// Charlotte takes care of stuffs that can't be done easily from shell
<|file_sep|>lib/charlotte.js.diff
original:
updated:
// bump major/minor/build number in package.json's version field
<|file_sep|>lib/charlotte.js.diff
original:
fs.writeFileSync(CON... | 103d07819f209516350907f20109731d95491c9a | lib/charlotte.js | lib/charlotte.js | JavaScript |
<|file_sep|>original/src/puppeteer/domain/entity/message.clj
(ns puppeteer.domain.entity.message)
(defrecord Field
[title value short?])
(defrecord Attachment
[text color fields])
(defrecord Message
[channel-id user-id text timestamp attachments for-me?])
<|file_sep|>current/src/puppeteer/domain/entity/message... | (ns puppeteer.domain.entity.message)
(defrecord Field
[title value short?])
(defrecord Attachment
[text color fields])
(defrecord Message
[channel-id user-id text timestamp attachments for-me? from-me?]) | <|file_sep|>original/src/puppeteer/domain/entity/message.clj
(ns puppeteer.domain.entity.message)
(defrecord Field
[title value short?])
(defrecord Attachment
[text color fields])
(defrecord Message
[channel-id user-id text timestamp attachments for-me?])
<|file_sep|>current/src/puppeteer/domain/entity/message... | 0b8bb8c7578fe1f0d00a9c35ac779189b1d6e21e | src/puppeteer/domain/entity/message.clj | src/puppeteer/domain/entity/message.clj | Clojure |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.