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|>gulpfile.babel.js.diff
original:
import babel from 'gulp-babel';
updated:
import babel from 'babel-core/register';
<|file_sep|>original/gulpfile.babel.js
import injectModules from 'gulp-inject-modules';
import dotenv from 'dotenv';
dotenv.config();
process.env.NODE_ENV = 'test';
gulp.task('coverage', (cb... | .pipe(istanbul())
.pipe(istanbul.hookRequire())
.on('finish', () => {
gulp.src('test/**/*.js')
.pipe(babel())
.pipe(injectModules())
.pipe(mocha())
.pipe(istanbul.writeReports())
.pipe(istanbul.enforceThresholds({ thresholds: { global: 90 } }))
.on('end'... | <|file_sep|>gulpfile.babel.js.diff
original:
import babel from 'gulp-babel';
updated:
import babel from 'babel-core/register';
<|file_sep|>original/gulpfile.babel.js
import injectModules from 'gulp-inject-modules';
import dotenv from 'dotenv';
dotenv.config();
process.env.NODE_ENV = 'test';
gulp.task('coverage', (cb... | 39d0a239aa6b93a2853269a1280c5e838128b34b | gulpfile.babel.js | gulpfile.babel.js | JavaScript |
<|file_sep|>eureka-service/src/test/resources/bootstrap.yml.diff
original:
#Disable discovery
eureka:
client:
enabled: false
updated:
<|file_sep|>original/eureka-service/src/test/resources/bootstrap.yml
#Disable discovery
eureka:
client:
enabled: false
#Disable cloud config and config discovery
spring:
... | #Disable cloud config and config discovery
spring:
cloud:
config:
enabled: false | <|file_sep|>eureka-service/src/test/resources/bootstrap.yml.diff
original:
#Disable discovery
eureka:
client:
enabled: false
updated:
<|file_sep|>original/eureka-service/src/test/resources/bootstrap.yml
#Disable discovery
eureka:
client:
enabled: false
#Disable cloud config and config discovery
spring:
... | 2b9a1153c5cc18c21545cab757d1b2ded83ee97e | eureka-service/src/test/resources/bootstrap.yml | eureka-service/src/test/resources/bootstrap.yml | YAML |
<|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def create
user = User.find_by_username(params[:username])
if user && user.authenticate(params[:password])
session[:user_id] = user.id
redirect_to root_url, notice: "Logged in"
else
... | class SessionsController < ApplicationController
def create
@user = User.find_by_username(params[:username])
if @user && @user.authenticate(params[:password])
session[:user_id] = @user.id
redirect_to root_url, notice: "Logged in"
else
flash.now.alert = "Username or password is invalid"
... | <|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def create
user = User.find_by_username(params[:username])
if user && user.authenticate(params[:password])
session[:user_id] = user.id
redirect_to root_url, notice: "Logged in"
else
... | 3596c216adafa56fac9a93aaf0832c09e0a29982 | app/controllers/sessions_controller.rb | app/controllers/sessions_controller.rb | Ruby |
<|file_sep|>original/_layouts/atom.html
<|file_sep|>current/_layouts/atom.html
<|file_sep|>updated/_layouts/atom.html | ---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.title }}</title>
<link type="application/atom+xml" href="atom_feed_url" rel="self"/>
<link type="text/html" href="home_url_canonical" rel="alternate"/>
<updated>{{ site.... | <|file_sep|>original/_layouts/atom.html
<|file_sep|>current/_layouts/atom.html
<|file_sep|>updated/_layouts/atom.html
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.title }}</title>
<link type="application/atom+xml" hr... | f1a4bba362b485b56a4bf959007734235f38254a | _layouts/atom.html | _layouts/atom.html | HTML |
<|file_sep|>original/src/main/java/openmods/api/INeighbourAwareTile.java
package openmods.api;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
public interface INeighbourAwareTile {
public void onNeighbourChanged(BlockPos pos, Block block);
}
<|file_sep|>current/src/main/java/openmods/api... | package openmods.api;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
public interface INeighbourAwareTile {
public void onNeighbourChanged(BlockPos neighbourPos, Block neigbourBlock);
} | <|file_sep|>original/src/main/java/openmods/api/INeighbourAwareTile.java
package openmods.api;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
public interface INeighbourAwareTile {
public void onNeighbourChanged(BlockPos pos, Block block);
}
<|file_sep|>current/src/main/java/openmods/api... | 72984db143d5e41ac04dcd04b6fc6db92b04fd63 | src/main/java/openmods/api/INeighbourAwareTile.java | src/main/java/openmods/api/INeighbourAwareTile.java | Java |
<|file_sep|>original/projects/invoice-hyperledger-fabric/containers/k8s-peer-service.yaml
apiVersion: v1
kind: Service
metadata:
name: peer-id
labels:
run: peer-id
spec:
type: NodePort
selector:
app: peer-id
ports:
- name: peer-gossip
port: 7051
protocol: TCP
- name: peer-chainc... | apiVersion: v1
kind: Service
metadata:
name: peer-id
labels:
run: peer-id
spec:
type: NodePort
selector:
app: peer-id
ports:
- name: peer-chaincode
port: 30002
protocol: TCP
- name: peer-listen
port: 7051
protocol: TCP | <|file_sep|>original/projects/invoice-hyperledger-fabric/containers/k8s-peer-service.yaml
apiVersion: v1
kind: Service
metadata:
name: peer-id
labels:
run: peer-id
spec:
type: NodePort
selector:
app: peer-id
ports:
- name: peer-gossip
port: 7051
protocol: TCP
- name: peer-chainc... | ec86f6169554b65c500601670b334927a8cc5289 | projects/invoice-hyperledger-fabric/containers/k8s-peer-service.yaml | projects/invoice-hyperledger-fabric/containers/k8s-peer-service.yaml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- 3.6
<|file_sep|>original/.travis.yml
# http://travis-ci.org/#!/FSX/misaka
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- nightly
# - pypy
before_install:
- sudo apt-get install tidy
script:
- python setup.py test
<|file_sep|>current/.travis... | # http://travis-ci.org/#!/FSX/misaka
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
- nightly
- pypy
before_install:
- sudo apt-get install tidy
script:
- python setup.py test | <|file_sep|>.travis.yml.diff
original:
updated:
- 3.6
<|file_sep|>original/.travis.yml
# http://travis-ci.org/#!/FSX/misaka
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- nightly
# - pypy
before_install:
- sudo apt-get install tidy
script:
- python setup.py test
<|file_sep|>current/.travis... | 2f8fee2f863e1ee761e0f4086fe7bfd41f16ddb2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/layouts/blog/single.html
<div class="front-matter">
<div class="title-container">
{{ partial "page-heading" . }}
</div>
<div class="meta">
<div class="date" title="{{ .Date.Format .Site.Params.datefo... | <div class="front-matter">
<div class="title-container">
{{ partial "page-heading" . }}
</div>
<div class="meta">
<div class="date" title="{{ .Date.Format .Site.Params.dateformfull }}">{{ .Date.Format .Site.Params.datefo... | <|file_sep|>original/layouts/blog/single.html
<div class="front-matter">
<div class="title-container">
{{ partial "page-heading" . }}
</div>
<div class="meta">
<div class="date" title="{{ .Date.Format .Site.Params.datefo... | 444932ca590db54c6ba968409547a895d7dfa52d | layouts/blog/single.html | layouts/blog/single.html | HTML |
<|file_sep|>original/rollup.config.js
},
// CommonJS (for Node) and ES module (for bundlers) build.
// (We could have three entries in the configuration array
// instead of two, but it's quicker to generate multiple
// builds from a single configuration where possible, using
// the `targets` option which c... | },
// CommonJS (for Node) and ES module (for bundlers) build.
// (We could have three entries in the configuration array
// instead of two, but it's quicker to generate multiple
// builds from a single configuration where possible, using
// the `targets` option which can specify `dest` and `format`)
{
... | <|file_sep|>original/rollup.config.js
},
// CommonJS (for Node) and ES module (for bundlers) build.
// (We could have three entries in the configuration array
// instead of two, but it's quicker to generate multiple
// builds from a single configuration where possible, using
// the `targets` option which c... | c2570489eb47db56ff496ea1ea923a9710937828 | rollup.config.js | rollup.config.js | JavaScript |
<|file_sep|>original/include/ygo/data/CardData.h
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbility;
int level;
int ... |
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
const char* name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbility;
int level;
int attack;
int defense;
int lpendulum; | <|file_sep|>original/include/ygo/data/CardData.h
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbility;
int level;
int ... | b1d45cb3b9f9ad2089d57de0ec3fa75ea1cf7fc4 | include/ygo/data/CardData.h | include/ygo/data/CardData.h | C |
<|file_sep|>README.md.diff
original:
## System Requirements
updated:
## Pre-requisites
<|file_sep|>original/README.md
## Summary
A hands-on training workshop where you will learn to visualise the code release
process as a pipeline and experience the possibilities that this concept
unlocks.
We will start by building a... | A hands-on training workshop where you will learn to visualise the code release
process as a pipeline and experience the possibilities that this concept
unlocks.
We will start by building a simple pipeline that will continuously deploy a
Rails app. Within minutes, we will add zero-downtime deploys, tests, database
mig... | <|file_sep|>README.md.diff
original:
## System Requirements
updated:
## Pre-requisites
<|file_sep|>original/README.md
## Summary
A hands-on training workshop where you will learn to visualise the code release
process as a pipeline and experience the possibilities that this concept
unlocks.
We will start by building a... | 9ad0e4552c64ae82e7de596cd77e1a322c9e9cbf | README.md | README.md | Markdown |
<|file_sep|>original/tenets/codelingo/cockroachdb/lingo_bundle.yaml
description: Best Practices for CockroachDB from their contributor docs.
version: 0.0.0
tenets:
- avoid-bool-params
- line-length-limit
- wrapping-func-signatures
tags:
- golang
- go
- cockroach
- cockroachdb
<|file_sep|>current/tenets/co... | description: Best Practices for CockroachDB from their contributor docs.
version: 0.0.0
tenets:
- avoid-bool-params
- fmt-verbs
- line-length-limit
- wrapping-func-signatures
tags:
- golang
- go
- cockroach
- cockroachdb | <|file_sep|>original/tenets/codelingo/cockroachdb/lingo_bundle.yaml
description: Best Practices for CockroachDB from their contributor docs.
version: 0.0.0
tenets:
- avoid-bool-params
- line-length-limit
- wrapping-func-signatures
tags:
- golang
- go
- cockroach
- cockroachdb
<|file_sep|>current/tenets/co... | 3e893670a036c5ddb8e7855d6af883439ce1f781 | tenets/codelingo/cockroachdb/lingo_bundle.yaml | tenets/codelingo/cockroachdb/lingo_bundle.yaml | YAML |
<|file_sep|>original/circle.yml
machine:
python:
version: 3.4.2
environment:
PROJECT_NAME: your_project
dependencies:
override:
- pip install "Django>=1.8.3,<1.9.0"
test:
override:
- cd $HOME && django-admin.py startproject --template=$HOME/django_template --extension=json,py,rst $PROJECT_NAME &... | machine:
python:
version: 3.4.2
environment:
PROJECT_NAME: your_project
dependencies:
override:
- pip install "Django>=1.8.3,<1.9.0"
test:
override:
- cd $HOME && django-admin.py startproject --template=$HOME/django_template --extension=json,py,rst $PROJECT_NAME && cd $PROJECT_NAME && pip instal... | <|file_sep|>original/circle.yml
machine:
python:
version: 3.4.2
environment:
PROJECT_NAME: your_project
dependencies:
override:
- pip install "Django>=1.8.3,<1.9.0"
test:
override:
- cd $HOME && django-admin.py startproject --template=$HOME/django_template --extension=json,py,rst $PROJECT_NAME &... | 3c207b991c8b2f127ab4255284cb05da4eea7361 | circle.yml | circle.yml | YAML |
<|file_sep|>original/modules/lang/haskell/+lsp.el
;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
(def-package! lsp-haskell
:after haskell-mode
:init (add-hook 'haskell-mode-hook #'+lsp|init)
:config
;; Does some strange indentation if it pastes in the snippet
(setq yas-indent-line 'fixed))
<|file_sep|>... | ;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
(def-package! lsp-haskell
:after haskell-mode
:init (add-hook 'haskell-mode-hook #'+lsp|init)
:config
;; Does some strange indentation if it pastes in the snippet
(setq-hook! 'haskell-mode-hook yas-indent-line 'fixed)) | <|file_sep|>original/modules/lang/haskell/+lsp.el
;;; lang/haskell/+lsp.el -*- lexical-binding: t; -*-
(def-package! lsp-haskell
:after haskell-mode
:init (add-hook 'haskell-mode-hook #'+lsp|init)
:config
;; Does some strange indentation if it pastes in the snippet
(setq yas-indent-line 'fixed))
<|file_sep|>... | 9c085c0553450084a96f7c4ccf83c90d63331ca8 | modules/lang/haskell/+lsp.el | modules/lang/haskell/+lsp.el | Emacs Lisp |
<|file_sep|>src/Types.hs.diff
original:
, _publishedAt :: UTCTime
updated:
, _publishedAt :: ZonedTime
<|file_sep|>original/src/Types.hs
<$> v .! 0
<*> (v .! 1 >>= parseTime')
<*> v .! 2
| otherwise = mzero
instance ToRecord ArticleMetaData where
toRecord ArticleMetaData{... | <$> v .! 0
<*> (v .! 1 >>= parseTime')
<*> v .! 2
| otherwise = mzero
instance ToRecord ArticleMetaData where
toRecord ArticleMetaData{..} = record [
toField _title,
toField (unparseTime _publishedAt),
toField _link
]
parseTime' :: (Monad m, ParseTime t) => LT.Te... | <|file_sep|>src/Types.hs.diff
original:
, _publishedAt :: UTCTime
updated:
, _publishedAt :: ZonedTime
<|file_sep|>original/src/Types.hs
<$> v .! 0
<*> (v .! 1 >>= parseTime')
<*> v .! 2
| otherwise = mzero
instance ToRecord ArticleMetaData where
toRecord ArticleMetaData{... | d4605fea05a59a9000e267d40554f17fed18f54a | src/Types.hs | src/Types.hs | Haskell |
<|file_sep|>original/update-schemas.py
<|file_sep|>current/update-schemas.py
<|file_sep|>updated/update-schemas.py | #!/usr/bin/env python
import os
import re
import sys
import subprocess as sp
def get_schemas(pattern):
cmd = ['git', 'grep', '--name-only']
output = sp.check_output(cmd + [pattern, '--', 'schemas']).decode('utf8')
names = output.split()
print(names)
dedupe = dict()
for name in names:
... | <|file_sep|>original/update-schemas.py
<|file_sep|>current/update-schemas.py
<|file_sep|>updated/update-schemas.py
#!/usr/bin/env python
import os
import re
import sys
import subprocess as sp
def get_schemas(pattern):
cmd = ['git', 'grep', '--name-only']
output = sp.check_output(cmd + [pattern, '--', 'sch... | 51e516f260858e699ee828ac6fc91af39c67254c | update-schemas.py | update-schemas.py | Python |
<|file_sep|>update-iso-checksum.sh.diff
original:
updated:
template_filename="packer-debian9-qemu-kvm.json"
<|file_sep|>update-iso-checksum.sh.diff
original:
iso_checksum_type="$(jq --raw-output '.variables.iso_checksum_type' packer-debian9-qemu-kvm.json)"
iso_file_url="$(jq --raw-output '.variables.remote_mirror_ur... | #!/bin/bash -x
# Downloads the latest iso checksum and updates the variables in the json template
template_filename="packer-debian9-qemu-kvm.json"
which jq || { echo "ERROR: 'jq' not found in PATH"; exit 1; }
which curl || { echo "ERROR: 'curl' not found in PATH"; exit 1; }
which sed || { echo "ERROR: 'sed' not foun... | <|file_sep|>update-iso-checksum.sh.diff
original:
updated:
template_filename="packer-debian9-qemu-kvm.json"
<|file_sep|>update-iso-checksum.sh.diff
original:
iso_checksum_type="$(jq --raw-output '.variables.iso_checksum_type' packer-debian9-qemu-kvm.json)"
iso_file_url="$(jq --raw-output '.variables.remote_mirror_ur... | b1936a44eaa79554246b4131fa3b5b6f8d9aed52 | update-iso-checksum.sh | update-iso-checksum.sh | Shell |
<|file_sep|>original/.github/workflows/python-publish.yml
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install ... | deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build ... | <|file_sep|>original/.github/workflows/python-publish.yml
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install ... | 8c3087686f62f6a9ad5e3863549680755dc2b7ae | .github/workflows/python-publish.yml | .github/workflows/python-publish.yml | YAML |
<|file_sep|>extra/project-euler/ave-time/ave-time.factor.diff
original:
USING: arrays effects inference io kernel math math.functions math.parser
updated:
USING: arrays combinators io kernel math math.functions math.parser
<|file_sep|>extra/project-euler/ave-time/ave-time.factor.diff
original:
: clean-stack ( quot -- ... | USING: arrays combinators io kernel math math.functions math.parser
math.statistics namespaces sequences tools.time ;
IN: project-euler.ave-time
<PRIVATE
: ave-benchmarks ( seq -- pair )
flip [ mean round ] map ;
PRIVATE>
: collect-benchmarks ( quot n -- seq )
[
>r >r datastack r> [ benchmark 2array ,... | <|file_sep|>extra/project-euler/ave-time/ave-time.factor.diff
original:
USING: arrays effects inference io kernel math math.functions math.parser
updated:
USING: arrays combinators io kernel math math.functions math.parser
<|file_sep|>extra/project-euler/ave-time/ave-time.factor.diff
original:
: clean-stack ( quot -- ... | 9760eb4fb197d265eb04a8c1a00432987c3153f2 | extra/project-euler/ave-time/ave-time.factor | extra/project-euler/ave-time/ave-time.factor | Factor |
<|file_sep|>original/copy/var/zoneinit/includes/05-delegated-dataset.sh
#!/bin/bash
UUID=$(mdata-get sdc:uuid)
DDS=zones/${UUID}/data
if zfs list ${DDS} 1>/dev/null 2>&1; then
zfs create ${DDS}/etc_ircd
zfs set mountpoint=/opt/local/etc/ircd ${DDS}/etc_ircd
chown ircd:ircd /opt/local/etc/ircd || true
fi
<|file_sep|... | #!/bin/bash
UUID=$(mdata-get sdc:uuid)
DDS=zones/${UUID}/data
if zfs list ${DDS} 1>/dev/null 2>&1; then
zfs create ${DDS}/etc_ircd || true
zfs set mountpoint=/opt/local/etc/ircd ${DDS}/etc_ircd
chown ircd:ircd /opt/local/etc/ircd || true
fi | <|file_sep|>original/copy/var/zoneinit/includes/05-delegated-dataset.sh
#!/bin/bash
UUID=$(mdata-get sdc:uuid)
DDS=zones/${UUID}/data
if zfs list ${DDS} 1>/dev/null 2>&1; then
zfs create ${DDS}/etc_ircd
zfs set mountpoint=/opt/local/etc/ircd ${DDS}/etc_ircd
chown ircd:ircd /opt/local/etc/ircd || true
fi
<|file_sep|... | f5e5075ad91f6f72909a5cafa915c415c94d3e02 | copy/var/zoneinit/includes/05-delegated-dataset.sh | copy/var/zoneinit/includes/05-delegated-dataset.sh | Shell |
<|file_sep|>original/benchmark-perf.gemspec
spec.name = "benchmark-perf"
spec.version = Benchmark::Perf::VERSION
spec.authors = ["Piotr Murach"]
spec.email = [""]
spec.summary = %q{Execution time and iteration performance benchmarking}
spec.description = %q{Execution tim... | spec.name = "benchmark-perf"
spec.version = Benchmark::Perf::VERSION
spec.authors = ["Piotr Murach"]
spec.email = [""]
spec.summary = %q{Execution time and iteration performance benchmarking}
spec.description = %q{Execution time and iteration performance benchmarking}
... | <|file_sep|>original/benchmark-perf.gemspec
spec.name = "benchmark-perf"
spec.version = Benchmark::Perf::VERSION
spec.authors = ["Piotr Murach"]
spec.email = [""]
spec.summary = %q{Execution time and iteration performance benchmarking}
spec.description = %q{Execution tim... | 46b13678dbbd2b3e21a1bc2f594a17617dc0a2da | benchmark-perf.gemspec | benchmark-perf.gemspec | Ruby |
<|file_sep|>original/.travis.yml
language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com]
<|file_sep|>current/.travis.yml
language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-ph... | language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com] | <|file_sep|>original/.travis.yml
language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-php-driver-installer
- composer install
script: phpunit -c app
notifications:
email: [haircut@gmail.com]
<|file_sep|>current/.travis.yml
language: php
php: [5.3, 5.4]
before_script:
- app/Resources/mongo-ph... | 0f4191318dd43f1e63965017a84d364134fbca38 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/assets/javascripts/catalog-admin/summernote_init.coffee
init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
$(document).ready(init)
<|file_sep|>current/app/assets/javascripts/catalog-admin/summernote_init.coffee
init = ->
$("[data... | init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
toolbar: [
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'clear']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
... | <|file_sep|>original/app/assets/javascripts/catalog-admin/summernote_init.coffee
init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
$(document).ready(init)
<|file_sep|>current/app/assets/javascripts/catalog-admin/summernote_init.coffee
init = ->
$("[data... | 5abe54bc6adbb1625be0f72a3662847ce7c74062 | app/assets/javascripts/catalog-admin/summernote_init.coffee | app/assets/javascripts/catalog-admin/summernote_init.coffee | CoffeeScript |
<|file_sep|>view/theme/frio/templates/settings/oauth_edit.tpl.diff
original:
updated:
<div class="generic-page-wrapper">
<|file_sep|>original/view/theme/frio/templates/settings/oauth_edit.tpl
<h2 class="heading">{{$title}}</h2>
<form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_secu... | <div class="generic-page-wrapper">
<h2 class="heading">{{$title}}</h2>
<form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
{{include file="field_input.tpl" field=$name}}
{{include file="field_input.tpl" field=$key}}
{{include file="field_input.tpl" field=$secret}... | <|file_sep|>view/theme/frio/templates/settings/oauth_edit.tpl.diff
original:
updated:
<div class="generic-page-wrapper">
<|file_sep|>original/view/theme/frio/templates/settings/oauth_edit.tpl
<h2 class="heading">{{$title}}</h2>
<form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_secu... | dc7e6edca9bbf1b26cda130b1000159b00a7af63 | view/theme/frio/templates/settings/oauth_edit.tpl | view/theme/frio/templates/settings/oauth_edit.tpl | Smarty |
<|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as a string
<|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as an array
<|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as a low... | windows_feature 'remove SNMP' do
feature_name ['SNMP']
action :remove
end
# pass feature name as a lowercase value on 2012+
windows_feature 'Install SNMP again' do
feature_name node['platform_version'].to_f < 6.2 ? 'SNMP' : 'snmp' # lowercase on purpose
end
# array of feature names
windows_feature_dism %w(Telne... | <|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as a string
<|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as an array
<|file_sep|>test/cookbooks/test/recipes/feature.rb.diff
original:
updated:
# pass feature name as a low... | 086d07bf98f2bab7d8fcf822a9cbbfcb07f1f668 | test/cookbooks/test/recipes/feature.rb | test/cookbooks/test/recipes/feature.rb | Ruby |
<|file_sep|>original/README.md
## Dependence
* [jQuery 1.10.2](https://developers.google.com/speed/libraries/devguide#jquery)
<|file_sep|>current/README.md
## Dependence
* [jQuery 1.10.2](https://developers.google.com/speed/libraries/devguide#jquery)
<|file_sep|>updated/README.md | ## Usage
Create simple div container, and fill it with img tags.
Specifying the tag attributes: src and alt.
Example:
```html
<div class="simple-class">
<img src="img/new-york.jpg" alt="New York">
<img src="img/sydney.jpg" alt="Sydney">
<img src="img/bern.jpg" alt="Bern">
<img src="img/cologne.jpg" alt="Cologne... | <|file_sep|>original/README.md
## Dependence
* [jQuery 1.10.2](https://developers.google.com/speed/libraries/devguide#jquery)
<|file_sep|>current/README.md
## Dependence
* [jQuery 1.10.2](https://developers.google.com/speed/libraries/devguide#jquery)
<|file_sep|>updated/README.md
## Usage
Create simple div container,... | 6e7c2dc1fb395ba139a1b2d35f8b3de53436855c | README.md | README.md | Markdown |
<|file_sep|>original/code/MenuAdmin.php
<?php
class MenuAdmin extends ModelAdmin {
private static $url_segment = 'menus';
private static $menu_title = 'Menus';
private static $managed_models = array('Menu');
private $showImportForm = false;
}
<|file_sep|>current/code/MenuAdmin.php
<?php
class MenuAdmi... | <?php
class MenuAdmin extends ModelAdmin {
private static $url_segment = 'menus';
private static $menu_title = 'Menus';
private static $managed_models = array('Menu');
public $showImportForm = false;
} | <|file_sep|>original/code/MenuAdmin.php
<?php
class MenuAdmin extends ModelAdmin {
private static $url_segment = 'menus';
private static $menu_title = 'Menus';
private static $managed_models = array('Menu');
private $showImportForm = false;
}
<|file_sep|>current/code/MenuAdmin.php
<?php
class MenuAdmi... | 525ebdabd935ac0fe0416add37f5927970cd2cbd | code/MenuAdmin.php | code/MenuAdmin.php | PHP |
<|file_sep|>original/requirements.txt
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.17.1
python-dateutil==2.8.0
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six==1.12.0
tornado==6.0.3
urllib3>=1.24.2
Werkzeug==0.15.5
pandas==0.25.1
scipy==1.3.0
astropy==3.1.2
matplotlib==3.1.0
git+https://gith... | itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.17.1
python-dateutil==2.8.0
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six==1.12.0
tornado==6.0.3
urllib3>=1.24.2
Werkzeug==0.15.5
pandas==0.25.1
scipy==1.3.1
astropy==3.1.2
matplotlib==3.1.0
git+https://github.com/mpld3/mpld3@master
tables==3.5.... | <|file_sep|>original/requirements.txt
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
numpy==1.17.1
python-dateutil==2.8.0
pyyaml>=4.2b1
requests>=2.20.0
singledispatch==3.4.0.3
six==1.12.0
tornado==6.0.3
urllib3>=1.24.2
Werkzeug==0.15.5
pandas==0.25.1
scipy==1.3.0
astropy==3.1.2
matplotlib==3.1.0
git+https://gith... | efef6d0de01960415aa51f853d72dd43bdcbc1d7 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/tests/bootstrap-dist.php
<?php
require_once 'lib/Proem/Loader/Autoloader.php';
use Proem\Loader\Autoloader;
$loader = new AutoLoader();
$loader->registerNamespaces([
'Proem\\Tests' => 'tests/lib',
'Proem' => 'lib'
])->registerPearPrefix('PHPUnit_', '/usr/share/php/PHPUnit')->regis... | <?php
require_once 'lib/Proem/Loader/Autoloader.php';
use Proem\Loader\Autoloader;
$loader = new AutoLoader();
$loader->registerNamespaces([
'Proem\\Tests' => 'tests/lib',
'Proem' => 'lib'
])->register(); | <|file_sep|>original/tests/bootstrap-dist.php
<?php
require_once 'lib/Proem/Loader/Autoloader.php';
use Proem\Loader\Autoloader;
$loader = new AutoLoader();
$loader->registerNamespaces([
'Proem\\Tests' => 'tests/lib',
'Proem' => 'lib'
])->registerPearPrefix('PHPUnit_', '/usr/share/php/PHPUnit')->regis... | 7daff87dfcd59376ebddb3fc9113848409f6b140 | tests/bootstrap-dist.php | tests/bootstrap-dist.php | PHP |
<|file_sep|>package.json.diff
original:
updated:
"incremental-dom": "^0.3.0",
<|file_sep|>original/package.json
"web-components"
],
"dependencies": {
"debounce": "^1.0.0",
"object-assign": "^4.0.1"
},
"devDependencies": {
"eslint": "2.8.0",
"gulp": "gulpjs/gulp#73eced0",
"skatejs-bu... | ],
"dependencies": {
"debounce": "^1.0.0",
"object-assign": "^4.0.1"
},
"devDependencies": {
"eslint": "2.8.0",
"gulp": "gulpjs/gulp#73eced0",
"incremental-dom": "^0.3.0",
"skatejs-build": "skatejs/build#22dc0e2",
"skatejs-named-slots": "~0.1.5",
"webcomponents.js": "0.7.22"
},... | <|file_sep|>package.json.diff
original:
updated:
"incremental-dom": "^0.3.0",
<|file_sep|>original/package.json
"web-components"
],
"dependencies": {
"debounce": "^1.0.0",
"object-assign": "^4.0.1"
},
"devDependencies": {
"eslint": "2.8.0",
"gulp": "gulpjs/gulp#73eced0",
"skatejs-bu... | 46050fa3049ee0bc2f7977ea3f839156302029a2 | package.json | package.json | JSON |
<|file_sep|>goslow.go.diff
original:
// main starts a slow HTTP server that responds with errors.
updated:
// main starts a server.
<|file_sep|>goslow.go.diff
original:
// GOMAXPROCS call is ignored if NumCPU returns 1 (GOMAXPROCS(0) doesn't change anything)
runtime.GOMAXPROCS(runtime.NumCPU() / 2)
updated:
useSever... |
import (
"log"
"runtime"
)
// main starts a server.
func main() {
useSeveralCPU()
config := NewConfigFromArgs()
server := NewServer(config)
log.Fatal(server.ListenAndServe())
}
func useSeveralCPU() {
if runtime.NumCPU() > 1 {
runtime.GOMAXPROCS(runtime.NumCPU() / 2)
}
} | <|file_sep|>goslow.go.diff
original:
// main starts a slow HTTP server that responds with errors.
updated:
// main starts a server.
<|file_sep|>goslow.go.diff
original:
// GOMAXPROCS call is ignored if NumCPU returns 1 (GOMAXPROCS(0) doesn't change anything)
runtime.GOMAXPROCS(runtime.NumCPU() / 2)
updated:
useSever... | d1d27cccd1df27afc49874cc9408e301dc94f971 | goslow.go | goslow.go | Go |
<|file_sep|>original/mayavi/__init__.py
# Author: Prabhu Ramachandran, Gael Varoquaux
# Copyright (c) 2004-2014, Enthought, Inc.
# License: BSD Style.
""" A tool for easy and interactive visualization of data.
Part of the Mayavi project of the Enthought Tool Suite.
"""
__version__ = '5.0.0'
__requires__ = [
'... | # Author: Prabhu Ramachandran, Gael Varoquaux
# Copyright (c) 2004-2014, Enthought, Inc.
# License: BSD Style.
""" A tool for easy and interactive visualization of data.
Part of the Mayavi project of the Enthought Tool Suite.
"""
__version__ = '4.4.0'
__requires__ = [
'apptools',
'traits',
'traitsui',... | <|file_sep|>original/mayavi/__init__.py
# Author: Prabhu Ramachandran, Gael Varoquaux
# Copyright (c) 2004-2014, Enthought, Inc.
# License: BSD Style.
""" A tool for easy and interactive visualization of data.
Part of the Mayavi project of the Enthought Tool Suite.
"""
__version__ = '5.0.0'
__requires__ = [
'... | b12f869f169cd44c8dba633c4707d1a60b092893 | mayavi/__init__.py | mayavi/__init__.py | Python |
<|file_sep|>original/packages/codemirror-extension/schema/commands.json
"keyMap": {
"type": "string",
"title": "Key Map",
"description": "Configures the keymap to use",
"default": "default"
},
"theme": {
"type": "string",
"title": "Theme",
"description": "CSS file d... | "keyMap": {
"type": "string",
"title": "Key Map",
"description": "Configures the keymap to use",
"default": "default"
},
"theme": {
"type": "string",
"title": "Theme",
"description": "CSS file defining the corresponding\n.cm-s-[name] styles is loaded",
"defaul... | <|file_sep|>original/packages/codemirror-extension/schema/commands.json
"keyMap": {
"type": "string",
"title": "Key Map",
"description": "Configures the keymap to use",
"default": "default"
},
"theme": {
"type": "string",
"title": "Theme",
"description": "CSS file d... | 5ff2562f7472e11b889d41db445b8da4f9a99a45 | packages/codemirror-extension/schema/commands.json | packages/codemirror-extension/schema/commands.json | JSON |
<|file_sep|>original/_wocscripts/make-woc-min.sh
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
uglifyjs woc.w/comptree.js woc.w/contexts.js woc.w/loader.js woc.w/loader-w.js woc.w/main.js woc.w/serv-ajax.js woc.w/serv-log.js woc.w/serv-router.js woc.w/utils.js -o woc.min.js
<|file... | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
uglifyjs woc.w/comptree.js woc.w/contexts.js woc.w/loader.js woc.w/loader-w.js woc.w/main.js woc.w/serv-ajax.js woc.w/serv-log.js woc.w/serv-router.js woc.w/utils.js woc.w/lib/promise-1.0.0.min.js -o woc.min.js
| <|file_sep|>original/_wocscripts/make-woc-min.sh
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
uglifyjs woc.w/comptree.js woc.w/contexts.js woc.w/loader.js woc.w/loader-w.js woc.w/main.js woc.w/serv-ajax.js woc.w/serv-log.js woc.w/serv-router.js woc.w/utils.js -o woc.min.js
<|file... | d58cc81096670da08dfce2fc822c56f391e312f7 | _wocscripts/make-woc-min.sh | _wocscripts/make-woc-min.sh | Shell |
<|file_sep|>original/app/lib/services.rb
require "gds_api/publishing_api_v2"
require "gds_api/calendars"
require "gds_api/link_checker_api"
module Services
def self.publishing_api
@publishing_api ||= GdsApi::PublishingApiV2.new(
Plek.new.find("publishing-api"),
bearer_token: ENV["PUBLISHING_API_BEARE... | require "gds_api/link_checker_api"
module Services
def self.publishing_api
@publishing_api ||= GdsApi::PublishingApiV2.new(
Plek.new.find("publishing-api"),
bearer_token: ENV["PUBLISHING_API_BEARER_TOKEN"] || "example"
)
end
def self.calendars
@calendars ||= GdsApi::Calendars.new(Plek.ne... | <|file_sep|>original/app/lib/services.rb
require "gds_api/publishing_api_v2"
require "gds_api/calendars"
require "gds_api/link_checker_api"
module Services
def self.publishing_api
@publishing_api ||= GdsApi::PublishingApiV2.new(
Plek.new.find("publishing-api"),
bearer_token: ENV["PUBLISHING_API_BEARE... | c847cf993eb3b644045d9c3671d0ecc4f4105392 | app/lib/services.rb | app/lib/services.rb | Ruby |
<|file_sep|>original/_includes/credit-jake.html
<footer class="site-footer light-text-dark-box">
<div class="container-fluid">
<p class="site-footer__credit">Photos and drawings by <a href="http://eightfoldstudios.com" target="_blank">Eightfold Studios</a>.</p>
</div>
</footer>
<|file_sep|>current/_includes/cre... | <footer class="site-footer light-text-dark-box">
<div class="container-fluid">
<p class="site-footer__credit">Photos and drawings by <a href="https://www.facebook.com/EightfoldStudios" target="_blank">Eightfold Studios</a>.</p>
</div>
</footer> | <|file_sep|>original/_includes/credit-jake.html
<footer class="site-footer light-text-dark-box">
<div class="container-fluid">
<p class="site-footer__credit">Photos and drawings by <a href="http://eightfoldstudios.com" target="_blank">Eightfold Studios</a>.</p>
</div>
</footer>
<|file_sep|>current/_includes/cre... | 51b4b8849c29577a7019f5d321949d0d38c3831b | _includes/credit-jake.html | _includes/credit-jake.html | HTML |
<|file_sep|>counterpartylib/test/config_context_test.py.diff
original:
assert config.BTC_NAME == "Bitcoin"
updated:
assert config.BTC_NAME == "Monacoin"
<|file_sep|>counterpartylib/test/config_context_test.py.diff
original:
with util_test.ConfigContext(BTC_NAME="Bitcoin Testing"):
assert config.BTC_... | assert config.BTC_NAME == "Monacoin"
with util_test.ConfigContext(BTC_NAME="Monacoin Testing"):
assert config.BTC_NAME == "Monacoin Testing"
with util_test.ConfigContext(BTC_NAME="Monacoin Testing Testing"):
assert config.BTC_NAME == "Monacoin Testing Testing"
assert confi... | <|file_sep|>counterpartylib/test/config_context_test.py.diff
original:
assert config.BTC_NAME == "Bitcoin"
updated:
assert config.BTC_NAME == "Monacoin"
<|file_sep|>counterpartylib/test/config_context_test.py.diff
original:
with util_test.ConfigContext(BTC_NAME="Bitcoin Testing"):
assert config.BTC_... | 921ec4fce301dd98fc18d81fc7c78347486ea4f0 | counterpartylib/test/config_context_test.py | counterpartylib/test/config_context_test.py | Python |
<|file_sep|>libmariadb/UnpackedTarball_mariadb.mk.diff
original:
updated:
# This was generated on a 64-bit linux, will have to conditionalize it if it is broken
# for another configuration.
<|file_sep|>original/libmariadb/UnpackedTarball_mariadb.mk
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# ... | # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
... | <|file_sep|>libmariadb/UnpackedTarball_mariadb.mk.diff
original:
updated:
# This was generated on a 64-bit linux, will have to conditionalize it if it is broken
# for another configuration.
<|file_sep|>original/libmariadb/UnpackedTarball_mariadb.mk
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# ... | bb4d0e1135bd026b7a39433000664c3626c96cc0 | libmariadb/UnpackedTarball_mariadb.mk | libmariadb/UnpackedTarball_mariadb.mk | Makefile |
<|file_sep|>original/v7/versions/fedora-23.sh
<|file_sep|>current/v7/versions/fedora-23.sh
<|file_sep|>updated/v7/versions/fedora-23.sh | #!/bin/bash
# to use this script, from its parent dir, run: ./versions/<script>.sh <target>
# you'll want to edit the below bash variables to match your use cases :)
# eg: ./versions/fedora-23.sh upload
# to make your own base image and upload it to your own server somewhere.
VERSION='fedora-23' # pick from the outp... | <|file_sep|>original/v7/versions/fedora-23.sh
<|file_sep|>current/v7/versions/fedora-23.sh
<|file_sep|>updated/v7/versions/fedora-23.sh
#!/bin/bash
# to use this script, from its parent dir, run: ./versions/<script>.sh <target>
# you'll want to edit the below bash variables to match your use cases :)
# eg: ./version... | bf2e7a09754ae5a6b18feb13cd3be9ed9513605f | v7/versions/fedora-23.sh | v7/versions/fedora-23.sh | Shell |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.10'
before_script:
- mysql -e 'create database feathers-orm-service'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '0.10'
before_script:
- mysql -e 'create database feathers-orm-service'
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- '0.10'
before_script:
- mysql -e 'create database \'feathers-orm-service\'' | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.10'
before_script:
- mysql -e 'create database feathers-orm-service'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '0.10'
before_script:
- mysql -e 'create database feathers-orm-service'
<|file_sep|>updated/.travis.yml
langu... | b1ff458d5cd405e1abb8a75c8879637407e62410 | .travis.yml | .travis.yml | YAML |
<|file_sep|>README.md.diff
original:
This is a lookup module for generic secrets in [HashiCorp Vault](https://vaultproject.io/).
updated:
This is a lookup module for secrets stored in [HashiCorp Vault](https://vaultproject.io/).
<|file_sep|>original/README.md
### Usage
The address to the Vault server and the auth toke... |
### Usage
The address to the Vault server and the auth token are fetched from environment variables
export VAULT_ADDR=http://192.168.33.10:8200/
export VAULT_TOKEN=56f48aef-8ad3-a0c4-447b-8e96990776ff
ansible-vault then works as any other lookup plugin.
```yaml
- debug: msg="{{ lookup('vault', 'secret/foo',... | <|file_sep|>README.md.diff
original:
This is a lookup module for generic secrets in [HashiCorp Vault](https://vaultproject.io/).
updated:
This is a lookup module for secrets stored in [HashiCorp Vault](https://vaultproject.io/).
<|file_sep|>original/README.md
### Usage
The address to the Vault server and the auth toke... | c3d38d9578a2346e73413dce923716dbf8c04c0e | README.md | README.md | Markdown |
<|file_sep|>original/README.md
Numeric Computing in JavaScript
===
> Talk for [Node.js Interactive][nodejs-interactive] (2015).
## Abstract
Traditionally, if you wanted to write fast code for numeric computation, you used Fortran or C. Within the past two decades, we have seen an enormous shift toward languages whic... | Numeric Computing in JavaScript
===
> Talk for [Node.js Interactive][nodejs-interactive] (2015).
## Abstract
Traditionally, if you wanted to write fast code for numeric computation, you used Fortran or C. Within the past two decades, we have seen an enormous shift toward languages which favor expressiveness over abs... | <|file_sep|>original/README.md
Numeric Computing in JavaScript
===
> Talk for [Node.js Interactive][nodejs-interactive] (2015).
## Abstract
Traditionally, if you wanted to write fast code for numeric computation, you used Fortran or C. Within the past two decades, we have seen an enormous shift toward languages whic... | bc8c6ae4f370c664d136150ed9c74aaf52756a29 | README.md | README.md | Markdown |
<|file_sep|>readme-template/README.md.diff
original:
updated:
bs=$BIONITIO_SRC
mkdir $SCRATCH_DIR
<|file_sep|>readme-template/README.md.diff
original:
$BIONITIO_SRC/githelper/bionitio-git.sh -c clone
updated:
${bs}/githelper/bionitio-git.sh -c clone
<|file_sep|>original/readme-template/README.md
# Example usage
```
... | # Example usage
```
bionitio-readme.sh -t TEMPLATE.md -l python -i $HOME/bionitio-python/readme_includes > $HOME/bionitio-python/README.md
```
# How to update all the bionitio READMEs for all the different language implementations
1. Clone all the repositories using the helpful git wrapper:
```
bs=$BIONITIO_SRC
mkdi... | <|file_sep|>readme-template/README.md.diff
original:
updated:
bs=$BIONITIO_SRC
mkdir $SCRATCH_DIR
<|file_sep|>readme-template/README.md.diff
original:
$BIONITIO_SRC/githelper/bionitio-git.sh -c clone
updated:
${bs}/githelper/bionitio-git.sh -c clone
<|file_sep|>original/readme-template/README.md
# Example usage
```
... | 3f8e5ffaf3ae7c5aebcac04da800fd3418511f41 | readme-template/README.md | readme-template/README.md | Markdown |
<|file_sep|>original/.travis.yml
sudo: false
matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: hhvm-3.9
dist: trusty
before_script:
- curl --version
- composer self-update
- composer update -... |
sudo: false
matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
before_script:
- curl --version
- composer self-update
- composer update --no-interaction --no-progress $COMPOSER_FLAGS
script:
- ./vendor/bin/phpunit ... | <|file_sep|>original/.travis.yml
sudo: false
matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: hhvm-3.9
dist: trusty
before_script:
- curl --version
- composer self-update
- composer update -... | e267c421fd0cca3e48774d47750ec995012604f0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4.2'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# bu... | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4.2'
- '5.1'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# build output.
before_ins... | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4.2'
branches:
only:
- master
- travis-ci
# Not using `npm install --dev` because it is recursive. It will pull in the all
# development dependencies for CoffeeScript. Way too much spew in the Travis CI
# bu... | 85ac8c90b3195f2e9566a52d4932b758003505b6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>config/oaipmh.php.diff
original:
'url' => 'https://bibsys-k.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
updated:
'url' => 'https://bibsys.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
<|file_sep|>original/config/oaipmh.php
| collection name sto... | | collection name stored in the local database.
|
*/
'harvests' => [
'samling42' => [
// 'url' => 'https://sandbox-eu.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
'url' => 'https://bibsys.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
... | <|file_sep|>config/oaipmh.php.diff
original:
'url' => 'https://bibsys-k.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
updated:
'url' => 'https://bibsys.alma.exlibrisgroup.com/view/oai/47BIBSYS_UBO/request',
<|file_sep|>original/config/oaipmh.php
| collection name sto... | 2bcaea75b55cb8d9484e450e9a9979c07e34b567 | config/oaipmh.php | config/oaipmh.php | PHP |
<|file_sep|>original/webdoc.conf.json
"plugins": [
"plugins/markdown"
],
"opts": {
"encoding" : "utf8",
"destination" : "docs",
"export" : "docs/melonjs.api.json"
},
"template": {
"applicationName": "melonJS",
"outputSourceFiles": false,
... | },
"template": {
"applicationName": "melonJS",
"outputSourceFiles": false,
"readme": "./README.md",
"repository": "https://github.com/melonjs/melonJS/",
"assets": ["./node_modules/@melonjs/webdoc-theme/static"],
"stylesheets": [
"./node_modules/@melonjs/... | <|file_sep|>original/webdoc.conf.json
"plugins": [
"plugins/markdown"
],
"opts": {
"encoding" : "utf8",
"destination" : "docs",
"export" : "docs/melonjs.api.json"
},
"template": {
"applicationName": "melonJS",
"outputSourceFiles": false,
... | b678027510a5cd1dd9771f24054914fb8d1bf6be | webdoc.conf.json | webdoc.conf.json | JSON |
<|file_sep|>original/LPGoogleFunctions.podspec
Pod::Spec.new do |s|
s.name = "LPGoogleFunctions"
s.version = "1.0.6"
s.summary = "LPGoogleFunctions is an iOS library that provides easy access to certain Google API functions."
s.homepage = "https://github.com/luka1995/LPGoogleFunctions.git"... | Pod::Spec.new do |s|
s.name = "LPGoogleFunctions"
s.version = "1.0.6"
s.summary = "LPGoogleFunctions is an iOS library that provides easy access to certain Google API functions."
s.homepage = "https://github.com/luka1995/LPGoogleFunctions.git"
s.license = { :type => 'MIT', :file => ... | <|file_sep|>original/LPGoogleFunctions.podspec
Pod::Spec.new do |s|
s.name = "LPGoogleFunctions"
s.version = "1.0.6"
s.summary = "LPGoogleFunctions is an iOS library that provides easy access to certain Google API functions."
s.homepage = "https://github.com/luka1995/LPGoogleFunctions.git"... | aaef8d451f26173633f100627f25b9557051b450 | LPGoogleFunctions.podspec | LPGoogleFunctions.podspec | Ruby |
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/production.txt
-r base.txt
django-celery==3.2.2
django-redis-cache==1.8.0
gunicorn==19.9.0
redis==2.10.6
<|file_sep|>current/{{cookiecutter.project_slug}}/requirements/production.txt
-r base.txt
django-celery==3.2.2
django-redis-cache==1.8.0
gunicorn==19.9... | -r base.txt
django-celery==3.2.2
django-redis-cache==1.8.1
gunicorn==19.9.0
redis==2.10.6 | <|file_sep|>original/{{cookiecutter.project_slug}}/requirements/production.txt
-r base.txt
django-celery==3.2.2
django-redis-cache==1.8.0
gunicorn==19.9.0
redis==2.10.6
<|file_sep|>current/{{cookiecutter.project_slug}}/requirements/production.txt
-r base.txt
django-celery==3.2.2
django-redis-cache==1.8.0
gunicorn==19.9... | e8200dd908c9c30acc15999ca6b047f7d5b48584 | {{cookiecutter.project_slug}}/requirements/production.txt | {{cookiecutter.project_slug}}/requirements/production.txt | Text |
<|file_sep|>Source/AngularApplication/App/Views/Index.html.diff
original:
<article>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h1>Organisaatiot</h1>
<div class="help-text">
<p>
Organisaatiot-osio... | Organisaatiot-osiossa organisaation ylläpitäjä voi selailla oman organisaation tietoja ja organisaation pääkäyttäjä voi ylläpitää organisaation tietoja ja organisaatiorakennetta.
</p>
</div>
<div class="organization-map closed">
<div class="map... | <|file_sep|>Source/AngularApplication/App/Views/Index.html.diff
original:
<article>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h1>Organisaatiot</h1>
<div class="help-text">
<p>
Organisaatiot-osio... | ff92175bcb6e09e2ac28b1816976f0c90c40a2ab | Source/AngularApplication/App/Views/Index.html | Source/AngularApplication/App/Views/Index.html | HTML |
<|file_sep|>original/wafer/management/commands/pycon_speaker_contact_details.py
<|file_sep|>current/wafer/management/commands/pycon_speaker_contact_details.py
<|file_sep|>updated/wafer/management/commands/pycon_speaker_contact_details.py | import sys
import csv
from optparse import make_option
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from wafer.conf_registration.models import RegisteredAttendee
from wafer.talks.models import ACCEPTED
class Command(BaseCommand):
help = "List contact details fo... | <|file_sep|>original/wafer/management/commands/pycon_speaker_contact_details.py
<|file_sep|>current/wafer/management/commands/pycon_speaker_contact_details.py
<|file_sep|>updated/wafer/management/commands/pycon_speaker_contact_details.py
import sys
import csv
from optparse import make_option
from django.core.managem... | 87460f7ff5d5079cffb7f1c02930fea2f891d3f0 | wafer/management/commands/pycon_speaker_contact_details.py | wafer/management/commands/pycon_speaker_contact_details.py | Python |
<|file_sep|>src/main/bash/sdkman-env.sh.diff
original:
if [[ ! $line =~ ^([[:lower:]]+)=(.+)$ ]]; then
updated:
if [[ ! $line =~ ^[[:lower:]]+=.+$ ]]; then
<|file_sep|>original/src/main/bash/sdkman-env.sh
if [[ ! -f "$sdkmanrc" ]]; then
__sdkman_echo_red "$sdkmanrc not found."
return 1
fi
local... |
if [[ ! -f "$sdkmanrc" ]]; then
__sdkman_echo_red "$sdkmanrc not found."
return 1
fi
local line_number=0
while IFS= read -r line || [[ -n $line ]]; do
if [[ ! $line =~ ^[[:lower:]]+=.+$ ]]; then
__sdkman_echo_red "${sdkmanrc}:${line_number}: Invalid candidate format! Expected 'candidate=ve... | <|file_sep|>src/main/bash/sdkman-env.sh.diff
original:
if [[ ! $line =~ ^([[:lower:]]+)=(.+)$ ]]; then
updated:
if [[ ! $line =~ ^[[:lower:]]+=.+$ ]]; then
<|file_sep|>original/src/main/bash/sdkman-env.sh
if [[ ! -f "$sdkmanrc" ]]; then
__sdkman_echo_red "$sdkmanrc not found."
return 1
fi
local... | fb6db6376ccd7f2a98c36caf47d3511fedb47041 | src/main/bash/sdkman-env.sh | src/main/bash/sdkman-env.sh | Shell |
<|file_sep|>original/.travis.yml
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
before_script:
- composer self-update
- composer install --no-interaction
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/config_si.php > config_si.php
- php -r "\$_SERVER['HTTP_HOST'] = 'localhost'... | language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
before_script:
- composer self-update
- composer install --no-interaction
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/config_si.php > config_si.php
- php -r "\$_SERVER['HTTP_HOST'] = 'localhost'; \$_SERVER['R... | <|file_sep|>original/.travis.yml
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
before_script:
- composer self-update
- composer install --no-interaction
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/config_si.php > config_si.php
- php -r "\$_SERVER['HTTP_HOST'] = 'localhost'... | fdbf8f311dc13bea546d3f414805ebfd1d538820 | .travis.yml | .travis.yml | YAML |
<|file_sep|>testing/ubuntu/presubmit/run_if_changed.sh.diff
original:
if [[-z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 $PWD`]]
updated:
if [ -z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 $PWD` ]
<|file_sep|>original/testing/ubuntu/presu... | then
echo "TEST IGNORED; directory not modified in pull request $KOKORO_GITHUB_PULL_REQUEST_NUMBER"
exit 0
fi
### Common setup
sudo apt-get install python-dev python-pip
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
sudo pip install virtualenv
virtualenv ... | <|file_sep|>testing/ubuntu/presubmit/run_if_changed.sh.diff
original:
if [[-z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 $PWD`]]
updated:
if [ -z `git diff $KOKORO_GITHUB_PULL_REQUEST_COMMIT ${KOKORO_GITHUB_PULL_REQUEST_COMMIT}~1 $PWD` ]
<|file_sep|>original/testing/ubuntu/presu... | cfcd40bcd77e369298626060d08fbcb421aa5524 | testing/ubuntu/presubmit/run_if_changed.sh | testing/ubuntu/presubmit/run_if_changed.sh | Shell |
<|file_sep|>assets/game_state.coffee.diff
original:
customers.pop(customer)
updated:
@customers.filter((item) ->
item != customer
)
<|file_sep|>assets/game_state.coffee.diff
original:
updated:
calculateBudgetChange: ->
budget = 0
for agent in @agents
budget -= agent.salary
for cu... | for agent in @agents
budget -= agent.salary
for customer in @customers
budget += customer.worth
budget
constructor: ->
@level = new Level
numberOfRequests: ->
requests = 0
for queue of @requestQueues
requests += @requestQueues[queue].length()
requests
toString: ->
... | <|file_sep|>assets/game_state.coffee.diff
original:
customers.pop(customer)
updated:
@customers.filter((item) ->
item != customer
)
<|file_sep|>assets/game_state.coffee.diff
original:
updated:
calculateBudgetChange: ->
budget = 0
for agent in @agents
budget -= agent.salary
for cu... | 4c23bfe382c8013ac6cc91d8a4f07a7b598c148a | assets/game_state.coffee | assets/game_state.coffee | CoffeeScript |
<|file_sep|>original/examples/example-1.html
<script src="build/js/bundle.js"></script>
<link rel="stylesheet" href="less/main.css">
</head>
<body>
<h1>Example One</h1>
<section id="stage">
</section>
<script>
var stage = document.querySelector('#stage'... | <script src="build/js/bundle.js"></script>
<link rel="stylesheet" href="less/main.css">
</head>
<body>
<h1>Example One</h1>
<section id="stage">
</section>
<script>
var stage = document.querySelector('#stage');
var options = {
el: ... | <|file_sep|>original/examples/example-1.html
<script src="build/js/bundle.js"></script>
<link rel="stylesheet" href="less/main.css">
</head>
<body>
<h1>Example One</h1>
<section id="stage">
</section>
<script>
var stage = document.querySelector('#stage'... | 90664d4ecb090906cc5fa095f9ba0da64bca2b6f | examples/example-1.html | examples/example-1.html | HTML |
<|file_sep|>original/js/simple_lottery.js
let possibilites = 1;
for (let i = 53; i >= 48; i--) {
possibilites *= i;
}
console.log('The odds are %d to 1', possibilites);
<|file_sep|>current/js/simple_lottery.js
let possibilites = 1;
for (let i = 53; i >= 48; i--) {
possibilites *= i;
}
console.log('The odds are ... | let possibilites = 1;
for (let i = 53; i >= 48; i--) {
possibilites *= i;
}
console.log('The odds are %d to 1', possibilites); | <|file_sep|>original/js/simple_lottery.js
let possibilites = 1;
for (let i = 53; i >= 48; i--) {
possibilites *= i;
}
console.log('The odds are %d to 1', possibilites);
<|file_sep|>current/js/simple_lottery.js
let possibilites = 1;
for (let i = 53; i >= 48; i--) {
possibilites *= i;
}
console.log('The odds are ... | f406e16d6084c38a714fa532f93eccffe1a826b1 | js/simple_lottery.js | js/simple_lottery.js | JavaScript |
<|file_sep|>original/examples/ndfd/genbindings.sh
-r || exit
if [ ! -f ${PREFIX}.py ] ; then
echo "from raw.${PREFIX} import *" > ${PREFIX}.py
fi
# Retrieve the wsdl. Heck, show it off even. Just not using it yet.
WSDL_URI='http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
if [ ! -f ndfdXML.wsdl ]... | -r || exit
if [ ! -f ${PREFIX}.py ] ; then
echo "from raw.${PREFIX} import *" > ${PREFIX}.py
fi
# Retrieve the wsdl. Heck, show it off even. Just not using it yet.
WSDL_URI='http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
if [ ! -f ndfdXML.wsdl ] ; then
wget ${WSDL_URI}
fi
rm raw/ndfd.py
../..... | <|file_sep|>original/examples/ndfd/genbindings.sh
-r || exit
if [ ! -f ${PREFIX}.py ] ; then
echo "from raw.${PREFIX} import *" > ${PREFIX}.py
fi
# Retrieve the wsdl. Heck, show it off even. Just not using it yet.
WSDL_URI='http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
if [ ! -f ndfdXML.wsdl ]... | aa45d50a4bf8f8696f00a9cf4a03734944cb56bc | examples/ndfd/genbindings.sh | examples/ndfd/genbindings.sh | Shell |
<|file_sep|>README.md.diff
original:
A test adapter to run NSpec tests from Test Explorer in Visual Studio 2012 and later.
updated:
A test adapter to run NSpec tests from Test Explorer in Visual Studio 2013 and later.
<|file_sep|>original/README.md
# NSpec.VsAdapter
A test adapter to run NSpec tests from Test Explorer... | # NSpec.VsAdapter
A test adapter to run NSpec tests from Test Explorer in Visual Studio 2013 and later.
## Project status
This project is currently in early stage of development.
## Configuration
This Visual Studio test adapter can be configured by using a `.runsettings` file (see [MSDN](https://msdn.microsoft.co... | <|file_sep|>README.md.diff
original:
A test adapter to run NSpec tests from Test Explorer in Visual Studio 2012 and later.
updated:
A test adapter to run NSpec tests from Test Explorer in Visual Studio 2013 and later.
<|file_sep|>original/README.md
# NSpec.VsAdapter
A test adapter to run NSpec tests from Test Explorer... | d2f1582929a41254dd0b90346a3e84256360d6b3 | README.md | README.md | Markdown |
<|file_sep|>original/metadata.json
{
"name" : "link0-openntpd",
"summary" : "Puppet openntpd module",
"author" : "Link0",
"project_page" : "https://github.com/link0/puppet-openntpd",
"issues_url" : "https://github.com/link0/puppet-openntpd/issues",
"source" : "https://github.com/link0/puppet-openntpd"... | {
"name" : "link0-openntpd",
"summary" : "Puppet openntpd module",
"author" : "Link0",
"project_page" : "https://github.com/link0/puppet-openntpd",
"issues_url" : "https://github.com/link0/puppet-openntpd/issues",
"source" : "https://github.com/link0/puppet-openntpd",
"version" : "0.0.1",
"tags"... | <|file_sep|>original/metadata.json
{
"name" : "link0-openntpd",
"summary" : "Puppet openntpd module",
"author" : "Link0",
"project_page" : "https://github.com/link0/puppet-openntpd",
"issues_url" : "https://github.com/link0/puppet-openntpd/issues",
"source" : "https://github.com/link0/puppet-openntpd"... | 8154946e69762e301f3d2995ce373407dd2d70a9 | metadata.json | metadata.json | JSON |
<|file_sep|>original/.buildkite/steps/build-apple-silicon-binary.sh
#!/bin/bash
set -euo pipefail
echo "--- :${1}: Building ${1}/${2}"
rm -rf pkg
go get golang.org/dl/gotip
gotip download 272258
gotip version
./scripts/build-binary.sh "${1}" "${2}" "${BUILDKITE_BUILD_NUMBER}"
<|file_sep|>current/.buildkite/steps... | #!/bin/bash
set -euo pipefail
echo "--- :${1}: Building ${1}/${2}"
rm -rf pkg
go get golang.org/dl/gotip
gotip download
gotip version
./scripts/build-binary.sh "${1}" "${2}" "${BUILDKITE_BUILD_NUMBER}" | <|file_sep|>original/.buildkite/steps/build-apple-silicon-binary.sh
#!/bin/bash
set -euo pipefail
echo "--- :${1}: Building ${1}/${2}"
rm -rf pkg
go get golang.org/dl/gotip
gotip download 272258
gotip version
./scripts/build-binary.sh "${1}" "${2}" "${BUILDKITE_BUILD_NUMBER}"
<|file_sep|>current/.buildkite/steps... | d38703145834e5d7ce7efd6d6040453dc3cf9283 | .buildkite/steps/build-apple-silicon-binary.sh | .buildkite/steps/build-apple-silicon-binary.sh | Shell |
<|file_sep|>original/resources/cask.rb
end
end
action :uninstall do
execute "uninstalling cask #{new_resource.name}" do
command "/usr/local/bin/brew cask uninstall #{new_resource.name}"
user Homebrew.owner
environment lazy { { 'HOME' => ::Dir.home(Homebrew.owner), 'USER' => Homebrew.owner } }
only_... | not_if { casked? }
end
end
action :uninstall do
execute "uninstalling cask #{new_resource.name}" do
command "/usr/local/bin/brew cask uninstall #{new_resource.name}"
user Homebrew.owner
environment lazy { { 'HOME' => ::Dir.home(Homebrew.owner), 'USER' => Homebrew.owner } }
only_if { casked? }
... | <|file_sep|>original/resources/cask.rb
end
end
action :uninstall do
execute "uninstalling cask #{new_resource.name}" do
command "/usr/local/bin/brew cask uninstall #{new_resource.name}"
user Homebrew.owner
environment lazy { { 'HOME' => ::Dir.home(Homebrew.owner), 'USER' => Homebrew.owner } }
only_... | f9760e0b7f6f4e57dd6c6485ca7d37fa47a67f28 | resources/cask.rb | resources/cask.rb | Ruby |
<|file_sep|>original/.bumpversion.cfg
[bumpversion]
commit = True
tag = True
current_version = 0.5.0-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:bumpversion/__i... | current_version = 0.5.0-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:bumpversion/__init__.py]
[bumpversion:file:README.rst]
search = **unreleased**
replace = **... | <|file_sep|>original/.bumpversion.cfg
[bumpversion]
commit = True
tag = True
current_version = 0.5.0-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
[bumpversion:file:bumpversion/__i... | 3beb6ddf2800f38ca8bdb60960d0b19b5957d577 | .bumpversion.cfg | .bumpversion.cfg | INI |
<|file_sep|>original/_config.yml
# Site settings
title: The Classical Language Toolkit
#email: kyle@kyle-p-johnson.com
description: > # this means to ignore newlines until "baseurl:"
NLP for the ancient world
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://cltk.org" # the base hostname & protocol for... | # Site settings
title: The Classical Language Toolkit
#email: kyle@kyle-p-johnson.com
description: > # this means to ignore newlines until "baseurl:"
NLP for the ancient world
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://cltk.org" # the base hostname & protocol for your site
#twitter_username: kyl... | <|file_sep|>original/_config.yml
# Site settings
title: The Classical Language Toolkit
#email: kyle@kyle-p-johnson.com
description: > # this means to ignore newlines until "baseurl:"
NLP for the ancient world
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://cltk.org" # the base hostname & protocol for... | ec43fa822ab90c5e89741c40d3a18d3771871c76 | _config.yml | _config.yml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.2"
install:
- pip install --use-mirrors -r test-requirements.pip
script: nosetests
<|file_sep|>current/.travis.yml
language: python
python:
- "3.2"
install:
- pip install --use-mirrors -r test-requirements.pip
script: nosetests
<|file_sep|>updat... | language: python
python:
- "3.2"
- "3.3"
- "3.4"
install:
- pip install --use-mirrors -r test-requirements.pip
script: nosetests | <|file_sep|>original/.travis.yml
language: python
python:
- "3.2"
install:
- pip install --use-mirrors -r test-requirements.pip
script: nosetests
<|file_sep|>current/.travis.yml
language: python
python:
- "3.2"
install:
- pip install --use-mirrors -r test-requirements.pip
script: nosetests
<|file_sep|>updat... | 52c09628e747a67df33319b650bea1a17422ba3b | .travis.yml | .travis.yml | YAML |
<|file_sep|>plugoo/assets.py.diff
original:
updated:
def parse_line(self, line):
"""
Override this method if you need line
by line parsing of an Asset.
"""
return line.replace('\n','')
<|file_sep|>original/plugoo/assets.py
return i + 1
def next_asset(self):
... | return line.replace('\n','')
def next_asset(self):
"""
Return the next asset.
"""
# XXX this is really written with my feet.
# clean me up please...
line = self.fh.readline()
if line:
parsed_line = self.parse_line(line)
if ... | <|file_sep|>plugoo/assets.py.diff
original:
updated:
def parse_line(self, line):
"""
Override this method if you need line
by line parsing of an Asset.
"""
return line.replace('\n','')
<|file_sep|>original/plugoo/assets.py
return i + 1
def next_asset(self):
... | 2e9472e4989985ebdb770c193856a02616a3d8e4 | plugoo/assets.py | plugoo/assets.py | Python |
<|file_sep|>.travis.yml.diff
original:
before_install:
- sudo apt-get -y update
- sudo apt-get -y install libicu-dev libmozjs185-dev pkg-config help2man libcurl4-openssl-dev
- sudo apt-get -y install libtool automake autoconf autoconf-archive
- sudo apt-get -y install shunit2
before_script: ./configure -c -... | # - ./configure -c
# Then comment this section out
before_script:
- ./configure -c --disable-docs --disable-fauxton
script:
- make check
# Re-enable once test suite is reliable
#notifications:
# email: false
# irc:
# channels:
# "irc.freenode.org#couchdb-dev"
# on_success: change
# on_failure: alwa... | <|file_sep|>.travis.yml.diff
original:
before_install:
- sudo apt-get -y update
- sudo apt-get -y install libicu-dev libmozjs185-dev pkg-config help2man libcurl4-openssl-dev
- sudo apt-get -y install libtool automake autoconf autoconf-archive
- sudo apt-get -y install shunit2
before_script: ./configure -c -... | e38b1d611d381fbb4415bc632fbeeb28ab46d667 | .travis.yml | .travis.yml | YAML |
<|file_sep|>example/oh-dear.txt.diff
original:
We'd like to hire an fucking awesome java script dude, please. A proper web ninja!
updated:
We'd like to hire a fucking awesome java script dude, please. A proper web ninja!
<|file_sep|>original/example/oh-dear.txt
Sup.
We'd like to hire an fucking awesome java script du... |
Sup.
We'd like to hire a fucking awesome java script dude, please. A proper web ninja!
If you're good at javascript then please apply and we can crush code together!
Our site is damn sexy, it was all built with MS Frontpage originally but now we use Dreamweaver mostly. It's important to us that you're at the top of ... | <|file_sep|>example/oh-dear.txt.diff
original:
We'd like to hire an fucking awesome java script dude, please. A proper web ninja!
updated:
We'd like to hire a fucking awesome java script dude, please. A proper web ninja!
<|file_sep|>original/example/oh-dear.txt
Sup.
We'd like to hire an fucking awesome java script du... | a9a196f3873b6f8b54526132caf40e63ef13070c | example/oh-dear.txt | example/oh-dear.txt | Text |
<|file_sep|>package.json.diff
original:
"basic-auth": "0.0.1"
updated:
"basic-auth": "~0.0.1"
<|file_sep|>original/package.json
"email": "thom@seddonmedia.co.uk"
}
],
"main": "lib/oauth2server.js",
"dependencies": {
"basic-auth": "0.0.1"
},
"devDependencies": {
"body-parser": "^1.3.1... | "email": "thom@seddonmedia.co.uk"
}
],
"main": "lib/oauth2server.js",
"dependencies": {
"basic-auth": "~0.0.1"
},
"devDependencies": {
"body-parser": "~1.3.1",
"express": "~4.4.3",
"mocha": "~1.20.1",
"should": "~4.0.4",
"supertest": "~0.13.0"
},
"licenses": [
{
... | <|file_sep|>package.json.diff
original:
"basic-auth": "0.0.1"
updated:
"basic-auth": "~0.0.1"
<|file_sep|>original/package.json
"email": "thom@seddonmedia.co.uk"
}
],
"main": "lib/oauth2server.js",
"dependencies": {
"basic-auth": "0.0.1"
},
"devDependencies": {
"body-parser": "^1.3.1... | 9b67849851727f611d1109539c27f3ef1454b8fa | package.json | package.json | JSON |
<|file_sep|>src/components/OAuthLogin.js.diff
original:
updated:
import {AnchorButton, Intent} from '@blueprintjs/core';
<|file_sep|>src/components/OAuthLogin.js.diff
original:
<a href={`${provider.login}${loginUrlQueryString}`} className="pt-button pt-intent-primary pt-icon-log-in">
updated:
<AnchorButton... | const OAuthLogin = ({providers, onLogin}) => {
const location = window.location;
const targetUrl = `${location.protocol}//${location.host}/login`;
const loginUrlQueryString = `?next=${encodeURIComponent(targetUrl)}`;
return <div className="pt-button-group pt-vertical pt-align-left pt-large">
{providers.map... | <|file_sep|>src/components/OAuthLogin.js.diff
original:
updated:
import {AnchorButton, Intent} from '@blueprintjs/core';
<|file_sep|>src/components/OAuthLogin.js.diff
original:
<a href={`${provider.login}${loginUrlQueryString}`} className="pt-button pt-intent-primary pt-icon-log-in">
updated:
<AnchorButton... | b3e10b4bc710a4892d430efeb2f41ef6900fb72c | src/components/OAuthLogin.js | src/components/OAuthLogin.js | JavaScript |
<|file_sep|>original/app/controllers/users_controller.rb
@user.icon = user_hash[:user_icon][:attributes][:src]
if @user.save
render :text => ""
else
respond_error_to_mercury [ @user ]
end
else
redirect_to new_user_session_path
end
end
def specify_paypal... | end
def specify_paypal
if user_signed_in?
@user = User.find params[:id]
authorize! :update, @user
else
render :template => "devise/sessions/new"
end
end
def verify_paypal
if user_signed_in?
@user = User.find params[:id]
authorize! :update, @user
if (payment... | <|file_sep|>original/app/controllers/users_controller.rb
@user.icon = user_hash[:user_icon][:attributes][:src]
if @user.save
render :text => ""
else
respond_error_to_mercury [ @user ]
end
else
redirect_to new_user_session_path
end
end
def specify_paypal... | b0e74a9ef9daa0c81066c9031cdae5f519bf81d8 | app/controllers/users_controller.rb | app/controllers/users_controller.rb | Ruby |
<|file_sep|>app/controllers/nobelists_controller.rb.diff
original:
def base(facet=nil)
updated:
def base(name=nil)
<|file_sep|>original/app/controllers/nobelists_controller.rb
render
end
def visualize
@search = params[:search] || ''
render
end
# webservice bases
protected
def base(facet... |
def index
@search = params[:search] || ''
render
end
def visualize
@search = params[:search] || ''
render
end
# webservice bases
protected
def base(name=nil)
search = "%#{params[:search]}%"
base = Nobelist.where(["name ilike ?", search])
name ? base.facet(name) : base... | <|file_sep|>app/controllers/nobelists_controller.rb.diff
original:
def base(facet=nil)
updated:
def base(name=nil)
<|file_sep|>original/app/controllers/nobelists_controller.rb
render
end
def visualize
@search = params[:search] || ''
render
end
# webservice bases
protected
def base(facet... | 90118500693f5e43ac44b407eb9afeca7183ebda | app/controllers/nobelists_controller.rb | app/controllers/nobelists_controller.rb | Ruby |
<|file_sep|>original/services/migrations/0012_unit_data_source.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0011_unit_extensions'),
]
operations = [
migra... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0011_unit_extensions'),
]
operations = [
migrations.AddField(
model_name='unit',
name='d... | <|file_sep|>original/services/migrations/0012_unit_data_source.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0011_unit_extensions'),
]
operations = [
migra... | c8a7a53f09f72d9dbe44b1bcb5b85c8ee5ba2c2c | services/migrations/0012_unit_data_source.py | services/migrations/0012_unit_data_source.py | Python |
<|file_sep|>original/src/FullyBaked/Pslackr/Pslackr.php
<|file_sep|>current/src/FullyBaked/Pslackr/Pslackr.php
<|file_sep|>updated/src/FullyBaked/Pslackr/Pslackr.php | <?php
namespace FullyBaked\Pslackr;
class Pslackr
{
protected $token;
protected $domain;
public function __construct($config)
{
$this->token = $config['token'];
$this->domain = $config['domain'];
}
} | <|file_sep|>original/src/FullyBaked/Pslackr/Pslackr.php
<|file_sep|>current/src/FullyBaked/Pslackr/Pslackr.php
<|file_sep|>updated/src/FullyBaked/Pslackr/Pslackr.php
<?php
namespace FullyBaked\Pslackr;
class Pslackr
{
protected $token;
protected $domain;
public function __construct($config)
{
... | 79912007a224de97f4bfec1127f7854ee3d9f147 | src/FullyBaked/Pslackr/Pslackr.php | src/FullyBaked/Pslackr/Pslackr.php | PHP |
<|file_sep|>original/example/README.md
(the files starting with "tb_") is added as simulation-only files.
### Clocking
Add a clock generator using the Clocking Wizard. To seamlessly integrate
it into the design, name it "clock_generator". Choose the following options:
* Frequency Synthesis
* Safe Clock Startup
Set ... | (the files starting with "tb_") is added as simulation-only files.
### Clocking
Add a clock generator using the Clocking Wizard. To seamlessly integrate
it into the design, name it "clock_generator". Choose the following options:
* Frequency Synthesis
* Safe Clock Startup
Set up two output clocks, `clk_out1` with f... | <|file_sep|>original/example/README.md
(the files starting with "tb_") is added as simulation-only files.
### Clocking
Add a clock generator using the Clocking Wizard. To seamlessly integrate
it into the design, name it "clock_generator". Choose the following options:
* Frequency Synthesis
* Safe Clock Startup
Set ... | add351f83b0f28c8b76d28252a5d435f442bcab2 | example/README.md | example/README.md | Markdown |
<|file_sep|>original/logistic_order/model/sale_order.py
'res.partner',
'Requesting Entity',
readonly=True,
states={'draft': [('readonly', False)],
'sent': [('readonly', False)]},
required=True,
change_default=True,
s... | 'res.partner',
string='Consignee',
required=True),
'incoterm_address': fields.char(
'Incoterm Place',
help="Incoterm Place of Delivery. "
"International Commercial Terms are a series of "
"predefined commercial terms u... | <|file_sep|>original/logistic_order/model/sale_order.py
'res.partner',
'Requesting Entity',
readonly=True,
states={'draft': [('readonly', False)],
'sent': [('readonly', False)]},
required=True,
change_default=True,
s... | 4095b95930a57e78e35592dba413a776959adcde | logistic_order/model/sale_order.py | logistic_order/model/sale_order.py | Python |
<|file_sep|>BHCDatabase/app/views/service_users_homepage/index.html.erb.diff
original:
<%= @user.feedback_due %>
updated:
<|file_sep|>BHCDatabase/app/views/service_users_homepage/index.html.erb.diff
original:
<%= link_to 'Leave feedback', new_feedback_path %>
updated:
<%= link_to 'Leave feedback', new_fe... | <% provide(:title, @user.name) %>
<h1>Home</h1>
<div class="stdcontainer">
<% if @user.feedback_due <= Date.today %>
Your feedback was due <%= (Date.today - @user.feedback_due).to_i %> day(s) ago <br>
<%= link_to 'Leave feedback', new_feedback_path, class: 'btn btn-success' %>
<% else %>
Your f... | <|file_sep|>BHCDatabase/app/views/service_users_homepage/index.html.erb.diff
original:
<%= @user.feedback_due %>
updated:
<|file_sep|>BHCDatabase/app/views/service_users_homepage/index.html.erb.diff
original:
<%= link_to 'Leave feedback', new_feedback_path %>
updated:
<%= link_to 'Leave feedback', new_fe... | 137c53b11f4457f0774e13ba4b4d75c399cc73b0 | BHCDatabase/app/views/service_users_homepage/index.html.erb | BHCDatabase/app/views/service_users_homepage/index.html.erb | HTML+ERB |
<|file_sep|>original/.travis.yml
language: ruby
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install openjdk-7-jdk
script: bundle exec make
<|file_sep|>current/.travis.yml
language: ruby
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install openjdk-7-jdk
script: bund... | language: ruby
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install cups openjdk-7-jdk
script: bundle exec make | <|file_sep|>original/.travis.yml
language: ruby
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install openjdk-7-jdk
script: bundle exec make
<|file_sep|>current/.travis.yml
language: ruby
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install openjdk-7-jdk
script: bund... | fd02fc95ffc589f98d22db34e35595a7ddda8817 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_meta.php.diff
original:
updated:
if ($table->hasForeignKey('project_id')) {
$table->dropForeignKey('project_id');
}
<|file_sep|>original/src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_m... | ->save();
}
}
public function down()
{
$table = $this->table('build_meta');
if (!$table->hasColumn('project_id')) {
$table
->addColumn(
'project_id',
'integer', [
'default' =... | <|file_sep|>src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_meta.php.diff
original:
updated:
if ($table->hasForeignKey('project_id')) {
$table->dropForeignKey('project_id');
}
<|file_sep|>original/src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_m... | 53585b2451a12ee72085ffa8ea0b4670000e57a6 | src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_meta.php | src/PHPCensor/Migrations/20171014173348_removed_project_id_from_build_meta.php | PHP |
<|file_sep|>original/doc/gettingstarted.rst
Getting Started
===============
Introduction
------------
DPLib is a Python library that makes you able to write scripts that react on some in-game events
Installation
------------
.. code-block:: sh
git clone https://github.com/mRokita/DPLib.git
cd DPLib
pytho... | Getting Started
===============
Introduction
------------
DPLib is a Python library that makes you able to write scripts that react on some in-game events
Installation
------------
.. code-block:: sh
git clone https://github.com/mRokita/DPLib.git
cd DPLib
python3 -m pip install DPLib # Only python 3 is s... | <|file_sep|>original/doc/gettingstarted.rst
Getting Started
===============
Introduction
------------
DPLib is a Python library that makes you able to write scripts that react on some in-game events
Installation
------------
.. code-block:: sh
git clone https://github.com/mRokita/DPLib.git
cd DPLib
pytho... | 40ea13018a46598167e5bca3f7a829b29f21077c | doc/gettingstarted.rst | doc/gettingstarted.rst | reStructuredText |
<|file_sep|>.travis.yml.diff
original:
updated:
- "1.10.x"
<|file_sep|>original/.travis.yml
go:
- 1.4
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip
before_install:
- if [[ $TRAVIS_GO_VERSION == 1.9* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
# - sudo add-apt-repositor... | go:
- 1.4
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- "1.10.x"
- tip
matrix:
exclude:
- os: osx
go: 1.4
- os: osx
go: 1.5.x
- os: osx
go: 1.6.x
before_install:
- if [[ $TRAVIS_GO_VERSION == 1.9* ]]; then go get github.com/axw/gocov/gocov github... | <|file_sep|>.travis.yml.diff
original:
updated:
- "1.10.x"
<|file_sep|>original/.travis.yml
go:
- 1.4
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip
before_install:
- if [[ $TRAVIS_GO_VERSION == 1.9* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
# - sudo add-apt-repositor... | c2a0373a193bac1daf8b6691e2ece069c5d7ac7f | .travis.yml | .travis.yml | YAML |
<|file_sep|>server/index.js.diff
original:
updated:
var pgp = require('pg-promise')();
<|file_sep|>original/server/index.js
// structure data in response
// list of items
/*
[
{
id: ,
name: ,
notes: ,
needToRestock: ,
username:
},
{
id: ,
name: ,
note... | { houseId: req.body.houseId })
.then(data => {
console.log('Successful DB query: ', data)
res.send(data);
})
.catch(err => console.log('Bad DB query: ', err));
});
app.post('/restock', function(req, res) {
res.send('Need to restock item...');
});
app.post('/claim', function(req, res) {
... | <|file_sep|>server/index.js.diff
original:
updated:
var pgp = require('pg-promise')();
<|file_sep|>original/server/index.js
// structure data in response
// list of items
/*
[
{
id: ,
name: ,
notes: ,
needToRestock: ,
username:
},
{
id: ,
name: ,
note... | b62c09d37911567a17a287eac6ecf6fb0ec78317 | server/index.js | server/index.js | JavaScript |
<|file_sep|>original/Documentation/features/locking/queued-rwlocks/arch-support.txt
<|file_sep|>current/Documentation/features/locking/queued-rwlocks/arch-support.txt
<|file_sep|>updated/Documentation/features/locking/queued-rwlocks/arch-support.txt | #
# Feature name: queued-rwlocks
# Kconfig: ARCH_USE_QUEUED_RWLOCKS
# description: arch supports queued rwlocks
#
-----------------------
| arch |status|
-----------------------
| alpha: | TODO |
| arc: | TODO |
| arm: | TODO |
|... | <|file_sep|>original/Documentation/features/locking/queued-rwlocks/arch-support.txt
<|file_sep|>current/Documentation/features/locking/queued-rwlocks/arch-support.txt
<|file_sep|>updated/Documentation/features/locking/queued-rwlocks/arch-support.txt
#
# Feature name: queued-rwlocks
# Kconfig: A... | 2eda9972bbd12b9feb92ec057deac8e8846e650d | Documentation/features/locking/queued-rwlocks/arch-support.txt | Documentation/features/locking/queued-rwlocks/arch-support.txt | Text |
<|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
skip_before_filter :authenticate_user!, :only => :new
def new
redirect_to buckets_path if current_user
render :layout => false
end
def destroy
logout!
redirect_to root_url
end
end
<|... | class SessionsController < ApplicationController
skip_before_filter :authenticate_user!, :only => :new
def new
if current_user
redirect_to buckets_path
else
render :layout => false
end
end
def destroy
logout!
redirect_to root_url
end
end | <|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
skip_before_filter :authenticate_user!, :only => :new
def new
redirect_to buckets_path if current_user
render :layout => false
end
def destroy
logout!
redirect_to root_url
end
end
<|... | 20019c8e9b76c7ef219f17d2f5e2f7c89c966a43 | app/controllers/sessions_controller.rb | app/controllers/sessions_controller.rb | Ruby |
<|file_sep|>original/usr/bin/json_readable.py
<|file_sep|>current/usr/bin/json_readable.py
<|file_sep|>updated/usr/bin/json_readable.py | #!/usr/bin/env python
import json, os
for filename in os.listdir('.'):
if os.path.isfile(filename) and os.path.splitext(filename)[1].lower() == '.json':
with open(filename) as in_file:
data = json.load(in_file)
with open(filename, 'w') as out_file:
json.dump(data, out_file,... | <|file_sep|>original/usr/bin/json_readable.py
<|file_sep|>current/usr/bin/json_readable.py
<|file_sep|>updated/usr/bin/json_readable.py
#!/usr/bin/env python
import json, os
for filename in os.listdir('.'):
if os.path.isfile(filename) and os.path.splitext(filename)[1].lower() == '.json':
with open(filen... | f06a71a87daaaf0bc4b1f5701ce4c59805b70f6b | usr/bin/json_readable.py | usr/bin/json_readable.py | Python |
<|file_sep|>original/wangle/concurrent/FiberIOExecutor.h
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... | * All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once
#include <folly/fibers/FiberManagerMap.... | <|file_sep|>original/wangle/concurrent/FiberIOExecutor.h
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... | 4903f961a88751e684f703aaf08511cd5c486a84 | wangle/concurrent/FiberIOExecutor.h | wangle/concurrent/FiberIOExecutor.h | C |
<|file_sep|>original/app/models/pano/filter.rb
<|file_sep|>current/app/models/pano/filter.rb
<|file_sep|>updated/app/models/pano/filter.rb | module Pano
class Filter
attr_accessor :dimension, :selected, :url
def initialize(dimension, selected, url)
self.dimension = dimension
self.selected = selected
self.url = url
end
def to_label
return "#{dimension}: #{selected}" if dimension == 'Sort By'
return "#... | <|file_sep|>original/app/models/pano/filter.rb
<|file_sep|>current/app/models/pano/filter.rb
<|file_sep|>updated/app/models/pano/filter.rb
module Pano
class Filter
attr_accessor :dimension, :selected, :url
def initialize(dimension, selected, url)
self.dimension = dimension
self.selected = sel... | 12d2a3dc55fddbd46d3b516e2b2ae22fc38e1e81 | app/models/pano/filter.rb | app/models/pano/filter.rb | Ruby |
<|file_sep|>original/ode/app/managers/nodes/UserManager.java
package managers.nodes;
import com.fasterxml.jackson.databind.JsonNode;
import play.libs.F.Promise;
public class UserManager extends LabeledNodeWithPropertiesManager {
public UserManager() {
this.label = "User";
}
@Override
protec... | package managers.nodes;
import com.fasterxml.jackson.databind.JsonNode;
import play.libs.F.Promise;
public class UserManager extends LabeledNodeWithPropertiesManager {
public UserManager() {
this.label = "User";
}
// CREATE
@Override
protected Promise<Boolean> create(JsonNode propertie... | <|file_sep|>original/ode/app/managers/nodes/UserManager.java
package managers.nodes;
import com.fasterxml.jackson.databind.JsonNode;
import play.libs.F.Promise;
public class UserManager extends LabeledNodeWithPropertiesManager {
public UserManager() {
this.label = "User";
}
@Override
protec... | 3f6a8afc49aa83d74a1541e88daf65cca593473d | ode/app/managers/nodes/UserManager.java | ode/app/managers/nodes/UserManager.java | Java |
<|file_sep|>original/yarn_api_client/__init__.py
# -*- coding: utf-8 -*-
__version__ = '1.0.0'
__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']
from .application_master import ApplicationMaster
from .history_server import HistoryServer
from .node_manager import NodeManager
from .resou... | # -*- coding: utf-8 -*-
__version__ = '2.0.0.dev0'
__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']
from .application_master import ApplicationMaster
from .history_server import HistoryServer
from .node_manager import NodeManager
from .resource_manager import ResourceManager | <|file_sep|>original/yarn_api_client/__init__.py
# -*- coding: utf-8 -*-
__version__ = '1.0.0'
__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']
from .application_master import ApplicationMaster
from .history_server import HistoryServer
from .node_manager import NodeManager
from .resou... | c6d042ee5d4867750a54ab9f6c3576928e4ba457 | yarn_api_client/__init__.py | yarn_api_client/__init__.py | Python |
<|file_sep|>original/requirements.txt
../pysflib
pecan
gerritlib
python-ldap
requests>=2.2.1
nose
mock
<|file_sep|>current/requirements.txt
../pysflib
pecan
gerritlib
python-ldap
requests>=2.2.1
nose
mock
<|file_sep|>updated/requirements.txt | -e git+https://github.com/enovance/pysflib.git#egg=pysflib
pecan
gerritlib
python-ldap
requests>=2.2.1
nose
mock | <|file_sep|>original/requirements.txt
../pysflib
pecan
gerritlib
python-ldap
requests>=2.2.1
nose
mock
<|file_sep|>current/requirements.txt
../pysflib
pecan
gerritlib
python-ldap
requests>=2.2.1
nose
mock
<|file_sep|>updated/requirements.txt
-e git+https://github.com/enovance/pysflib.git#egg=pysflib
pecan
gerritlib
pyt... | d1ed6f42e645b23c029b7311039e276aa7596997 | requirements.txt | requirements.txt | Text |
<|file_sep|>spec/controllers/tags_controller_spec.rb.diff
original:
get :show, {id: 2}
updated:
get :show, {id: 5}
<|file_sep|>original/spec/controllers/tags_controller_spec.rb
expect(response).to render_template("index")
end
end
describe "#show" do
it "has a 200 status code" do
get... | expect(response).to render_template("index")
end
end
describe "#show" do
it "has a 200 status code" do
get :show, {id: 5}
expect(response.status).to eq(200)
end
it "renders show template" do
get :show, {id: 5}
expect(response).to render_template("show")
end
i... | <|file_sep|>spec/controllers/tags_controller_spec.rb.diff
original:
get :show, {id: 2}
updated:
get :show, {id: 5}
<|file_sep|>original/spec/controllers/tags_controller_spec.rb
expect(response).to render_template("index")
end
end
describe "#show" do
it "has a 200 status code" do
get... | 175b47fba439fc63bd70652264b6b090d14c7a9f | spec/controllers/tags_controller_spec.rb | spec/controllers/tags_controller_spec.rb | Ruby |
<|file_sep|>original/package.json
"bin": {
"npmrc": "./npmrc.js"
},
"repository": {
"type": "git",
"url": "git://github.com/deoxxa/npmrc.git"
},
"keywords": [
"npmrc",
"utility",
"shell"
],
"author": "Conrad Pankoff <deoxxa@fknsrs.biz> (http://www.fknsrs.biz/)",
"license": "BSD",... | "bin": {
"npmrc": "./npmrc.js"
},
"repository": {
"type": "git",
"url": "git://github.com/deoxxa/npmrc.git"
},
"keywords": [
"npmrc",
"utility",
"shell",
"npm"
],
"author": "Conrad Pankoff <deoxxa@fknsrs.biz> (http://www.fknsrs.biz/)",
"license": "BSD",
"devDependencies": {... | <|file_sep|>original/package.json
"bin": {
"npmrc": "./npmrc.js"
},
"repository": {
"type": "git",
"url": "git://github.com/deoxxa/npmrc.git"
},
"keywords": [
"npmrc",
"utility",
"shell"
],
"author": "Conrad Pankoff <deoxxa@fknsrs.biz> (http://www.fknsrs.biz/)",
"license": "BSD",... | 02e73d7e4d76fa3de397f86b7ac37c4d2f368661 | package.json | package.json | JSON |
<|file_sep|>src/storyController.js.diff
original:
console.log(new Date(), 'ping');
updated:
console.log('ping');
<|file_sep|>src/storyController.js.diff
original:
console.log(new Date(), 'searchStories');
updated:
console.log('searchStories');
<|file_sep|>src/storyController.js.diff
original:
console.log(new ... |
'default': () => {
"use strict";
res.status(406).send('Not Acceptable');
}
});
};
exports.getStoryScene = (req, res) => {
const {storyKey, sceneKey} = req.params;
console.log('getStoryScene', `storyKey=${storyKey}`, `sceneKey=${sceneKey}`);
res.format({
'application/json': ()... | <|file_sep|>src/storyController.js.diff
original:
console.log(new Date(), 'ping');
updated:
console.log('ping');
<|file_sep|>src/storyController.js.diff
original:
console.log(new Date(), 'searchStories');
updated:
console.log('searchStories');
<|file_sep|>src/storyController.js.diff
original:
console.log(new ... | 02b4b53a1de23ae0d0665f262340f79e527e75ae | src/storyController.js | src/storyController.js | JavaScript |
<|file_sep|>original/package.json
{
"name": "iotrp-upnp-service",
"version": "0.0.1",
"description": "Makes the device discoverable using UPnP",
"main": "src/upnp-service.js",
"dependencies": {
"peer-upnp": "https://github.com/fraunhoferfokus/peer-upnp.git",
"xml2js" : "https://github.com/fraunhoferfo... | {
"name": "iotrp-upnp-service",
"version": "0.0.1",
"description": "Makes the device discoverable using UPnP",
"main": "src/upnp-service.js",
"dependencies": {
"peer-upnp": "*",
"xml2js" : "https://github.com/fraunhoferfokus/node-xml2js.git"
},
"author": "Intel Corporation",
"license": "MIT"
}
| <|file_sep|>original/package.json
{
"name": "iotrp-upnp-service",
"version": "0.0.1",
"description": "Makes the device discoverable using UPnP",
"main": "src/upnp-service.js",
"dependencies": {
"peer-upnp": "https://github.com/fraunhoferfokus/peer-upnp.git",
"xml2js" : "https://github.com/fraunhoferfo... | a9525a2604d043c103dc3d8a19311b0eda65e519 | package.json | package.json | JSON |
<|file_sep|>original/app/views/housing_forms/edit.html.erb
<div id="error_explanation">
<h2><%= pluralize(@housing_form.errors.count, "error") %> prohibited this housing_form from being saved:</h2>
<ul>
<% @housing_form.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% en... | <%= bootstrap_form_for @housing_form, remote: true do |f| %>
<% if @housing_form.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@housing_form.errors.count, "error") %> prohibited this housing_form from being saved:</h2>
<ul>
<% @housing_form.errors.full_messages.each do |msg| %>
... | <|file_sep|>original/app/views/housing_forms/edit.html.erb
<div id="error_explanation">
<h2><%= pluralize(@housing_form.errors.count, "error") %> prohibited this housing_form from being saved:</h2>
<ul>
<% @housing_form.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% en... | 644206ad9f72de4eab7a502d468844306c7ccc78 | app/views/housing_forms/edit.html.erb | app/views/housing_forms/edit.html.erb | HTML+ERB |
<|file_sep|>packages/co/convert.yaml.diff
original:
hash: 7c7fcc5f75e2dec9adf10cadab6e00eb9802ea6e7167829fc12605b4f3db7928
updated:
hash: 3ad90cc24e7ea7630080ec5da8cfce82036d796b3bb01c3805078cf502d1d906
<|file_sep|>packages/co/convert.yaml.diff
original:
updated:
impossible: -any
<|file_sep|>packages/co/convert.yaml... | bytestring: -any
ansi-wl-pprint: -any
base: ! '>=4.10 && <4.12'
text: -any
data-default: -any
impossible: -any
containers: -any
lens: -any
utf8-string: -any
template-haskell: -any
all-versions:
- '1.0'
- '1.0.1'
- '1.0.2'
- '1.4.2'
- '1.5'
author: Luna Team
latest: '1.5'
description-type: haddock
de... | <|file_sep|>packages/co/convert.yaml.diff
original:
hash: 7c7fcc5f75e2dec9adf10cadab6e00eb9802ea6e7167829fc12605b4f3db7928
updated:
hash: 3ad90cc24e7ea7630080ec5da8cfce82036d796b3bb01c3805078cf502d1d906
<|file_sep|>packages/co/convert.yaml.diff
original:
updated:
impossible: -any
<|file_sep|>packages/co/convert.yaml... | 0a4ac11a91aad6d9458e034e569d4cd3d5ed07dd | packages/co/convert.yaml | packages/co/convert.yaml | YAML |
<|file_sep|>original/files/unifiedpush-cookbooks/unifiedpush/templates/default/sv-cassandra-control-d.erb
#!/bin/sh
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/disablegossip
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/disablethrift
<%= node['unifiedpush']['cassandra']['installati... | #!/bin/sh
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/nodetool disablegossip
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/nodetool disablethrift
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/nodetool drain | <|file_sep|>original/files/unifiedpush-cookbooks/unifiedpush/templates/default/sv-cassandra-control-d.erb
#!/bin/sh
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/disablegossip
<%= node['unifiedpush']['cassandra']['installation_dir'] %>/bin/disablethrift
<%= node['unifiedpush']['cassandra']['installati... | 0ada83f7a26e218e5110ae5afcc13aa6ad999eaa | files/unifiedpush-cookbooks/unifiedpush/templates/default/sv-cassandra-control-d.erb | files/unifiedpush-cookbooks/unifiedpush/templates/default/sv-cassandra-control-d.erb | HTML+ERB |
<|file_sep|>original/code/extensions/ElementPublishChildren.php
class ElementPublishChildren extends DataExtension {
public function onBeforeVersionedPublish() {
$staged = array();
foreach($this->owner->Elements() as $widget) {
$staged[] = $widget->ID;
$widget->publish('Stage', 'Live');
}
// remove a... | class ElementPublishChildren extends DataExtension {
public function onBeforeVersionedPublish() {
$staged = array();
foreach($this->owner->Elements() as $widget) {
$staged[] = $widget->ID;
$widget->publish('Stage', 'Live');
}
// remove any elements that are on live but not in draft.
$widgets = Vers... | <|file_sep|>original/code/extensions/ElementPublishChildren.php
class ElementPublishChildren extends DataExtension {
public function onBeforeVersionedPublish() {
$staged = array();
foreach($this->owner->Elements() as $widget) {
$staged[] = $widget->ID;
$widget->publish('Stage', 'Live');
}
// remove a... | 1e47451cc16b041e5162f6675d234378465d8ed1 | code/extensions/ElementPublishChildren.php | code/extensions/ElementPublishChildren.php | PHP |
<|file_sep|>.travis.yml.diff
original:
- 0.9
updated:
- "0.11"
- "0.10"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- 0.9
- 0.8
- 0.6
before_install: "npm install -g bob"
script: "bob clean lint test coverage"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
... | language: node_js
node_js:
- "0.11"
- "0.10"
- 0.8
before_install: "npm install -g bob --loglevel error"
script: "bob build" | <|file_sep|>.travis.yml.diff
original:
- 0.9
updated:
- "0.11"
- "0.10"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- 0.9
- 0.8
- 0.6
before_install: "npm install -g bob"
script: "bob clean lint test coverage"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
... | 542558eeaceb8b4d5b0bdf09f9b37544649062e7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/pskb_website/templates/profile.html
{% block body %}
<div class="col-md-8">
{% if user.bio %}
<p>{{user.bio}}</p>
{% endif %}
{% if articles %}
<h2>{{user.login}}'s articles</h2>
<ul>
{% for article in articles %}
<li><a href="/revie... | {% block body %}
<div class="col-md-8">
{% if user.bio %}
<p>{{user.bio}}</p>
{% endif %}
<h2>{{user.login}}'s articles</h2>
{% for article in articles %}
{% if loop.index0 == 0 %}
<ul>
{% endif %}
<li><a href="/review/{{article.path}}">{{article.title}}</... | <|file_sep|>original/pskb_website/templates/profile.html
{% block body %}
<div class="col-md-8">
{% if user.bio %}
<p>{{user.bio}}</p>
{% endif %}
{% if articles %}
<h2>{{user.login}}'s articles</h2>
<ul>
{% for article in articles %}
<li><a href="/revie... | 912343de710bbb5cab08a4c73c320988ab46465e | pskb_website/templates/profile.html | pskb_website/templates/profile.html | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.