prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/lib/SimpleSAML/Error/UnserializableException.php
<|file_sep|>current/lib/SimpleSAML/Error/UnserializableException.php
<|file_sep|>updated/lib/SimpleSAML/Error/UnserializableException.php | <?php
/**
* Class for saving normal exceptions for serialization.
*
* This class is used by the SimpleSAML_Auth_State class when it needs
* to serialize an exception which doesn't subclass the
* SimpleSAML_Error_Exception class.
*
* It creates a new exception which contains the backtrace and message
* of the o... | <|file_sep|>original/lib/SimpleSAML/Error/UnserializableException.php
<|file_sep|>current/lib/SimpleSAML/Error/UnserializableException.php
<|file_sep|>updated/lib/SimpleSAML/Error/UnserializableException.php
<?php
/**
* Class for saving normal exceptions for serialization.
*
* This class is used by the SimpleSAML... | c2d23ab92293d8059943b5cbaa3b7a2b6d49266b | lib/SimpleSAML/Error/UnserializableException.php | lib/SimpleSAML/Error/UnserializableException.php | PHP |
<|file_sep|>pkgs/development/interpreters/starlark/default.nix.diff
original:
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
updated:
{ stdenv, lib, fetchFromGitHub, buildGoModule, fetchpatch }:
<|file_sep|>pkgs/development/interpreters/starlark/default.nix.diff
original:
updated:
patches = [
# Fix floating po... |
vendorSha256 = "sha256-lgL5o3MQfZekZ++BNESwV0LeoTxwEZfziQAe99zm4RY=";
patches = [
# Fix floating point imprecision issue in the test suite.
# https://github.com/google/starlark-go/pull/409
(fetchpatch {
url = "https://github.com/google/starlark-go/commit/be6ed3bfcc376e5bf6fe2257ae89ddfb00d14e2c.... | <|file_sep|>pkgs/development/interpreters/starlark/default.nix.diff
original:
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
updated:
{ stdenv, lib, fetchFromGitHub, buildGoModule, fetchpatch }:
<|file_sep|>pkgs/development/interpreters/starlark/default.nix.diff
original:
updated:
patches = [
# Fix floating po... | 699a374e8a24edbd3296240f6da5d454e7fb3c21 | pkgs/development/interpreters/starlark/default.nix | pkgs/development/interpreters/starlark/default.nix | Nix |
<|file_sep|>original/src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy
}
} catch (IOException ignored) {
// ignore
}
}
/**
* Create a progress logger for an arbitrary project and class.
*
* @param project the project to create a ProgressLogge... | toClose.close()
}
} catch (IOException ignored) {
// ignore
}
}
/**
* Create a progress logger for an arbitrary project and class.
*
* @param project the project to create a ProgressLogger for.
* @param clazz optional class to pair the... | <|file_sep|>original/src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy
}
} catch (IOException ignored) {
// ignore
}
}
/**
* Create a progress logger for an arbitrary project and class.
*
* @param project the project to create a ProgressLogge... | c0ae71b52281cdd107aacf56286af97d2b4b9d6b | src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy | src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy | Groovy |
<|file_sep|>original/app.json
"description":"Send and receive messages from a Habitica Party Chat to a Slack Channel",
"repository":"https://github.com/niteshpatel/habitica-slack",
"keywords":[
"habitica",
"slack"
],
"env":{
"DJANGO_SECRETKEY":{
"description":"Secret key ... | "description": "Send and receive messages from a Habitica Party Chat to a Slack Channel",
"repository": "https://github.com/niteshpatel/habitica-slack",
"keywords": [
"habitica",
"slack"
],
"env": {
"DJANGO_SECRETKEY": {
"description": "Secret key for your Django instance (autogenerated).",
... | <|file_sep|>original/app.json
"description":"Send and receive messages from a Habitica Party Chat to a Slack Channel",
"repository":"https://github.com/niteshpatel/habitica-slack",
"keywords":[
"habitica",
"slack"
],
"env":{
"DJANGO_SECRETKEY":{
"description":"Secret key ... | 9728be88389c1ff45fd79413bb3751f2b74e9c50 | app.json | app.json | JSON |
<|file_sep|>original/admin/app/views/transactions/forms/_delete.html.erb
<%= form_tag("/generate_delete_transaction", remote: true) do %>
<%= text_field_tag 'public_key', creator_address, hidden: true %>
<%= text_field_tag 'payload', payload, hidden: true %>
<%= text_field_tag 'priv_key', private_key, hidden: tru... | <%= form_tag("/generate_delete_transaction", remote: true) do %>
<%= text_field_tag 'public_key', creator_address, hidden: true %>
<%= text_field_tag 'payload', payload, hidden: true %>
<%= text_field_tag 'priv_key', private_key, hidden: true %>
<%= submit_tag submit_name, class: "btn btn-default", data: { disa... | <|file_sep|>original/admin/app/views/transactions/forms/_delete.html.erb
<%= form_tag("/generate_delete_transaction", remote: true) do %>
<%= text_field_tag 'public_key', creator_address, hidden: true %>
<%= text_field_tag 'payload', payload, hidden: true %>
<%= text_field_tag 'priv_key', private_key, hidden: tru... | fe87adc4d4567f2c162a5bffb97f21c7d819550c | admin/app/views/transactions/forms/_delete.html.erb | admin/app/views/transactions/forms/_delete.html.erb | HTML+ERB |
<|file_sep|>original/common_audio/signal_processing/cross_correlation.c
/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */
void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,
const int16_t* seq1,
const int16_t* seq2,
... | #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */
void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,
const int16_t* seq1,
const int16_t* ... | <|file_sep|>original/common_audio/signal_processing/cross_correlation.c
/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */
void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,
const int16_t* seq1,
const int16_t* seq2,
... | 8504c7c838219029c7e92818f663c777b8bbe5b6 | common_audio/signal_processing/cross_correlation.c | common_audio/signal_processing/cross_correlation.c | C |
<|file_sep|>original/roles/simple/graphviz/tasks/main.yml
- name: Install graphviz
homebrew:
name: graphviz
install_options: with-app
state: present
when: ansible_distribution == "MacOSX"
- name: Install graphviz
become: yes
apt:
name: graphviz
state: present
when: ansible_os_fa... | - name: Install graphviz
homebrew:
name: graphviz
install_options: with-app, with-bindings
state: present
when: ansible_distribution == "MacOSX"
- name: Install graphviz
become: yes
apt:
name: graphviz
state: present
when: ansible_os_family == "Debian"
- name: Install graphviz
... | <|file_sep|>original/roles/simple/graphviz/tasks/main.yml
- name: Install graphviz
homebrew:
name: graphviz
install_options: with-app
state: present
when: ansible_distribution == "MacOSX"
- name: Install graphviz
become: yes
apt:
name: graphviz
state: present
when: ansible_os_fa... | d9f054c1a36da903820e6ebbd444ad926408fb8c | roles/simple/graphviz/tasks/main.yml | roles/simple/graphviz/tasks/main.yml | YAML |
<|file_sep|>tests/parser/parserTests.txt.diff
original:
!! Version 2
updated:
!! options
version=2
parsoid-compatible
requirements=extension:Disambiguator
!! end
<|file_sep|>original/tests/parser/parserTests.txt
!! article
Disambig
!! text
This is a disambig page.
__DISAMBIG__
!! endarticle
!! article
Normal
!! text
T... | This is a normal page.
!! endarticle
!! test
Link to disambig and non-disambig page
!! wikitext
I am linking to [[Disambig]] and [[Normal]].
!! html
<p>I am linking to <a href="/wiki/Disambig" class="mw-disambig" title="Disambig">Disambig</a> and <a href="/wiki/Normal" title="Normal">Normal</a>.
</p>
!! end
!! test
E... | <|file_sep|>tests/parser/parserTests.txt.diff
original:
!! Version 2
updated:
!! options
version=2
parsoid-compatible
requirements=extension:Disambiguator
!! end
<|file_sep|>original/tests/parser/parserTests.txt
!! article
Disambig
!! text
This is a disambig page.
__DISAMBIG__
!! endarticle
!! article
Normal
!! text
T... | f9e5a56bf8d41d90b3dd220e7c8497a56c8f62ce | tests/parser/parserTests.txt | tests/parser/parserTests.txt | Text |
<|file_sep|>original/assets/be/views/elements/dataTableForm.html
<div class="detail" ng-controller="FormEditController as fec">
<form ng-submit="fec.onSubmit()" novalidate class="form-horizontal" name="fec.edit" ng-init='fec.init(row);'>
<formly-form model="fec.model" fields="fec.fields" options="fec.options" for... | <div class="detail" ng-controller="FormEditController as fec">
<form novalidate class="form-horizontal" name="fec.edit" ng-init='fec.init(row);'>
<formly-form model="fec.model" fields="fec.fields" options="fec.options" form="fec.form" editable-form onaftersave="fec.onSubmit()" root-el="form">
<div class="f... | <|file_sep|>original/assets/be/views/elements/dataTableForm.html
<div class="detail" ng-controller="FormEditController as fec">
<form ng-submit="fec.onSubmit()" novalidate class="form-horizontal" name="fec.edit" ng-init='fec.init(row);'>
<formly-form model="fec.model" fields="fec.fields" options="fec.options" for... | de4202964111fc6aa792122052c19a78d8902e6b | assets/be/views/elements/dataTableForm.html | assets/be/views/elements/dataTableForm.html | HTML |
<|file_sep|>original/bower.json
"dist/neue.css",
"dist/neue.min.js"
],
"dependencies": {
"jquery": "^1.7",
"susy": "2.2.0.rc.2"
},
"devDependencies": {
"jquery": "1.8.3",
"almond": "~0.2.9",
"html5shiv": "~3.7.2",
"respond": "~1.4.2",
"highlightjs": "~8.0.0",
"filament-st... | "dist/neue.css",
"dist/neue.min.js"
],
"dependencies": {
"jquery": "^1.7",
"susy": "2.2.0.rc.2"
},
"devDependencies": {
"jquery": "1.8.3",
"almond": "~0.2.9",
"html5shiv": "~3.7.2",
"respond": "~1.4.2",
"highlightjs": "~8.0.0",
"filament-sticky": "~0.1.4",
"dosomethin... | <|file_sep|>original/bower.json
"dist/neue.css",
"dist/neue.min.js"
],
"dependencies": {
"jquery": "^1.7",
"susy": "2.2.0.rc.2"
},
"devDependencies": {
"jquery": "1.8.3",
"almond": "~0.2.9",
"html5shiv": "~3.7.2",
"respond": "~1.4.2",
"highlightjs": "~8.0.0",
"filament-st... | 08f1a3d5d15ab79c6c0ce7467e570acbee30b568 | bower.json | bower.json | JSON |
<|file_sep|>Tools/idle/ZoomHeight.py.diff
original:
height = top.winfo_screenheight()
updated:
newheight = top.winfo_screenheight()
<|file_sep|>Tools/idle/ZoomHeight.py.diff
original:
y = 0
height = height - 72
updated:
newy = 0
newheight = newheight - 72
... |
def zoom_height_event(self, event):
top = self.editwin.top
geom = top.wm_geometry()
m = re.match(r"(\d+)x(\d+)\+(-?\d+)\+(-?\d+)", geom)
if not m:
top.bell()
return
width, height, x, y = map(int, m.groups())
newheight = top.winfo_screenheight(... | <|file_sep|>Tools/idle/ZoomHeight.py.diff
original:
height = top.winfo_screenheight()
updated:
newheight = top.winfo_screenheight()
<|file_sep|>Tools/idle/ZoomHeight.py.diff
original:
y = 0
height = height - 72
updated:
newy = 0
newheight = newheight - 72
... | ffd1ba9eee804fdd55e86908b158a4ad94f2f366 | Tools/idle/ZoomHeight.py | Tools/idle/ZoomHeight.py | Python |
<|file_sep|>original/config/fish/env.fish
append-to-path ~/projects/git-toolbelt
set -gx WORKON_HOME ~/.virtualenvs
set -gx PYTHONPATH ~/.local/bin
append-to-path ~/.local/bin
append-to-path /Applications/Postgres.app/Contents/Versions/9.5/bin
<|file_sep|>current/config/fish/env.fish
append-to-path ~/projects/git-too... | append-to-path ~/projects/git-toolbelt
set -gx WORKON_HOME ~/.virtualenvs
set -gx PYTHONPATH ~/.local/bin
append-to-path ~/.local/bin
append-to-path /Applications/Postgres.app/Contents/Versions/9.6/bin | <|file_sep|>original/config/fish/env.fish
append-to-path ~/projects/git-toolbelt
set -gx WORKON_HOME ~/.virtualenvs
set -gx PYTHONPATH ~/.local/bin
append-to-path ~/.local/bin
append-to-path /Applications/Postgres.app/Contents/Versions/9.5/bin
<|file_sep|>current/config/fish/env.fish
append-to-path ~/projects/git-too... | af1f95bde61eb9553d26ca6ee3adf8e95ca8e35b | config/fish/env.fish | config/fish/env.fish | fish |
<|file_sep|>index.js.diff
original:
updated:
var confluenceUrl = process.env.CONFLUENCE_URL
<|file_sep|>original/index.js
#!/usr/bin/env node
var program = require('commander');
var userArgs = process.argv.splice(2);
var message = userArgs.join(' ');
if (message.length > 140) {
console.log('Message was too long. C... | #!/usr/bin/env node
var program = require('commander');
var userArgs = process.argv.splice(2);
var message = userArgs.join(' ');
var confluenceUrl = process.env.CONFLUENCE_URL
if (message.length > 140) {
console.log('Message was too long. Can only be 140 characters. It was: ', message.length);
process.exit(1);
}
... | <|file_sep|>index.js.diff
original:
updated:
var confluenceUrl = process.env.CONFLUENCE_URL
<|file_sep|>original/index.js
#!/usr/bin/env node
var program = require('commander');
var userArgs = process.argv.splice(2);
var message = userArgs.join(' ');
if (message.length > 140) {
console.log('Message was too long. C... | 65bb0ff4fce04e58febe70936adf503d432f9d41 | index.js | index.js | JavaScript |
<|file_sep|>original/server/websocket.js
var clients = {}
wss.on('connection', (ws) => {
ws.on('message', (data) => {
var req = JSON.parse(data)
if (req.message === 'ping') {
ws.id = req.id
clients[ws.id] = ws
clients[ws.id].send(JSON.stringify({message: 'pong'}))
}
else if (req.m... | var clients = {}
wss.on('connection', (ws) => {
ws.on('message', (data) => {
var req = JSON.parse(data)
if (req.message === 'ping') {
ws.id = req.id
clients[ws.id] = ws
clients[ws.id].send(JSON.stringify({message: 'pong', id: ws.id}))
}
else if (req.message === 'gems') {
ds.... | <|file_sep|>original/server/websocket.js
var clients = {}
wss.on('connection', (ws) => {
ws.on('message', (data) => {
var req = JSON.parse(data)
if (req.message === 'ping') {
ws.id = req.id
clients[ws.id] = ws
clients[ws.id].send(JSON.stringify({message: 'pong'}))
}
else if (req.m... | af6314d64914d4450ceabb197b2c451e97ac2a62 | server/websocket.js | server/websocket.js | JavaScript |
<|file_sep|>oh-my-zsh.sh.diff
original:
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file
updated:
<|file_sep|>original/oh-my-zsh.sh
# Load and run compinit
autoload -U compinit
compinit -i
# Load all of your custom configurations from custom/
for config_fi... | autoload -U compinit
compinit -i
# Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins); do
if [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH/plugins/$plugin/$plugin.plugin.zsh
fi
done
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*... | <|file_sep|>oh-my-zsh.sh.diff
original:
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file
updated:
<|file_sep|>original/oh-my-zsh.sh
# Load and run compinit
autoload -U compinit
compinit -i
# Load all of your custom configurations from custom/
for config_fi... | 58a7cf19b7af136c5f59ee706ffe4772871f00fa | oh-my-zsh.sh | oh-my-zsh.sh | Shell |
<|file_sep|>kitchen.yml.diff
original:
- name: ubuntu-14.04
updated:
- name: centos-8
<|file_sep|>original/kitchen.yml
environments_path: test/fixtures/environments
data_bags_path: test/fixtures/data_bags
client_rb:
environment: test
platforms:
- name: centos-6
- name: centos-7
- name: ubuntu-14.04... | environments_path: test/fixtures/environments
data_bags_path: test/fixtures/data_bags
client_rb:
environment: test
platforms:
- name: centos-6
- name: centos-7
- name: centos-8
- name: ubuntu-16.04
- name: ubuntu-18.04
suites:
- name: default
run_list:
- recipe[chef-vault]
- reci... | <|file_sep|>kitchen.yml.diff
original:
- name: ubuntu-14.04
updated:
- name: centos-8
<|file_sep|>original/kitchen.yml
environments_path: test/fixtures/environments
data_bags_path: test/fixtures/data_bags
client_rb:
environment: test
platforms:
- name: centos-6
- name: centos-7
- name: ubuntu-14.04... | cbd6ab722422548f0ce8a4436831f9c6a23310cb | kitchen.yml | kitchen.yml | YAML |
<|file_sep|>original/setup/shells.sh
#!/bin/sh
. ./utils.sh || exit 1
# add shells to /etc/shells
shells="zsh bash dash fish ksh pdksh xonsh"
for shell in $shells; do
_test_executable "$shell" || return 1
shell_path="$(command -v "$shell")"
if grep -Fqx "$shell_path" /etc/shells; then
printf "Shell %s is already... | #!/bin/sh
. ./utils.sh || exit 1
# add shells to /etc/shells
shells="zsh bash dash fish ksh pdksh xonsh"
for shell in $shells; do
_test_executable "$shell" || return 1
shell_path="$(command -v "$shell")"
if grep -Fqx "$shell_path" /etc/shells; then
printf "Shell %s is already installed\n" "$shell_path"
else
p... | <|file_sep|>original/setup/shells.sh
#!/bin/sh
. ./utils.sh || exit 1
# add shells to /etc/shells
shells="zsh bash dash fish ksh pdksh xonsh"
for shell in $shells; do
_test_executable "$shell" || return 1
shell_path="$(command -v "$shell")"
if grep -Fqx "$shell_path" /etc/shells; then
printf "Shell %s is already... | 796ca0bf40baa76320a07ca6525fc60d0aff53c0 | setup/shells.sh | setup/shells.sh | Shell |
<|file_sep|>original/requirements/base.txt
dj-database-url==0.5.0
django-apiblueprint-view==1.1.2
django-basicauth==0.5.1
django-extensions==2.1.3
django-localflavor==2.1
django-markdown-deux==1.0.5
django==1.11.16 # pyup: >=1.11,<2.0
djangorestframework==3.7.7
djangorestframework-gis==0.12.0
django-cors-headers==2.4.... | dj-database-url==0.5.0
django-apiblueprint-view==2.0.0
django-basicauth==0.5.1
django-extensions==2.1.3
django-localflavor==2.1
django-markdown-deux==1.0.5
django==1.11.16 # pyup: >=1.11,<2.0
djangorestframework==3.7.7
djangorestframework-gis==0.12.0
django-cors-headers==2.4.0
fastkml==0.11
lxml==4.2.5
psycopg2-binary... | <|file_sep|>original/requirements/base.txt
dj-database-url==0.5.0
django-apiblueprint-view==1.1.2
django-basicauth==0.5.1
django-extensions==2.1.3
django-localflavor==2.1
django-markdown-deux==1.0.5
django==1.11.16 # pyup: >=1.11,<2.0
djangorestframework==3.7.7
djangorestframework-gis==0.12.0
django-cors-headers==2.4.... | afdc86a98581935edd45b94a9d754d2dddac030d | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>original/requirements-dev.txt
coverage
cython>=0.18
mock>=1.0
nose>=1.2
numpy
https://bitbucket.org/birkenfeld/sphinx/get/default.tar.gz
<|file_sep|>current/requirements-dev.txt
coverage
cython>=0.18
mock>=1.0
nose>=1.2
numpy
https://bitbucket.org/birkenfeld/sphinx/get/default.tar.gz
<|file_sep|>updated/req... | coverage
cython>=0.18
mock>=1.0
nose==1.2.1
numpy
https://bitbucket.org/birkenfeld/sphinx/get/default.tar.gz | <|file_sep|>original/requirements-dev.txt
coverage
cython>=0.18
mock>=1.0
nose>=1.2
numpy
https://bitbucket.org/birkenfeld/sphinx/get/default.tar.gz
<|file_sep|>current/requirements-dev.txt
coverage
cython>=0.18
mock>=1.0
nose>=1.2
numpy
https://bitbucket.org/birkenfeld/sphinx/get/default.tar.gz
<|file_sep|>updated/req... | 05a4cc53dad9360bfa643e34f113697c52e3ad54 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>src/Allegro/C.hsc.diff
original:
foreign import ccall "al_install_system"
updated:
foreign import ccall unsafe "al_install_system"
<|file_sep|>original/src/Allegro/C.hsc
{-# LANGUAGE ForeignFunctionInterface #-}
module Allegro.C (al_init) where
import Foreign
import Foreign.C.Types
#include <allegro5/all... | {-# LANGUAGE ForeignFunctionInterface #-}
module Allegro.C (al_init) where
import Foreign
import Foreign.C.Types
#include <allegro5/allegro.h>
al_init :: IO Bool
al_init = al_install_system #{const ALLEGRO_VERSION_INT} fp_atexit
foreign import ccall unsafe "al_install_system"
al_install_system :: CInt -> FunPtr ... | <|file_sep|>src/Allegro/C.hsc.diff
original:
foreign import ccall "al_install_system"
updated:
foreign import ccall unsafe "al_install_system"
<|file_sep|>original/src/Allegro/C.hsc
{-# LANGUAGE ForeignFunctionInterface #-}
module Allegro.C (al_init) where
import Foreign
import Foreign.C.Types
#include <allegro5/all... | 87adce0d38a35398ee200484d02d2975a6b4126e | src/Allegro/C.hsc | src/Allegro/C.hsc | Haskell |
<|file_sep|>metadata/mf.asciitext.lite.yml.diff
original:
updated:
- versionName: 2.4.0
versionCode: 13
commit: 2.4.0
subdir: base/
gradle:
- yes
<|file_sep|>original/metadata/mf.asciitext.lite.yml
AuthorWebSite: https://oss.mobilefirst.me/
SourceCode: https://github.com/MobileFirstLLC/irregul... | Repo: https://github.com/MobileFirstLLC/irregular-expressions
Builds:
- versionName: 2.3.0
versionCode: 12
commit: 2.3.0
subdir: base/
gradle:
- yes
- versionName: 2.4.0
versionCode: 13
commit: 2.4.0
subdir: base/
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMod... | <|file_sep|>metadata/mf.asciitext.lite.yml.diff
original:
updated:
- versionName: 2.4.0
versionCode: 13
commit: 2.4.0
subdir: base/
gradle:
- yes
<|file_sep|>original/metadata/mf.asciitext.lite.yml
AuthorWebSite: https://oss.mobilefirst.me/
SourceCode: https://github.com/MobileFirstLLC/irregul... | e60cec9826471920ab393bfe386f2b3dc36206a8 | metadata/mf.asciitext.lite.yml | metadata/mf.asciitext.lite.yml | YAML |
<|file_sep|>spec/api-system-preferences-spec.js.diff
original:
if (process.platform !== 'darwin') {
return
}
updated:
describe('systemPreferences.getAccentColor', function () {
if (process.platform !== 'win32') {
return
}
it('should return a non-empty string', function () {
let accent... | }
it('should return a non-empty string', function () {
let accentColor = systemPreferences.getAccentColor();
assert.notEqual(accentColor, null);
assert(accentColor.length > 0);
})
})
describe('systemPreferences.getUserDefault(key, type)', function () {
if (process.platform !== 'd... | <|file_sep|>spec/api-system-preferences-spec.js.diff
original:
if (process.platform !== 'darwin') {
return
}
updated:
describe('systemPreferences.getAccentColor', function () {
if (process.platform !== 'win32') {
return
}
it('should return a non-empty string', function () {
let accent... | 9f946527929d65607c0d42d33733d370fee27f83 | spec/api-system-preferences-spec.js | spec/api-system-preferences-spec.js | JavaScript |
<|file_sep|>original/config/routes.rb
end
scope :path => Refinery::Products.products_categories_path do
resources :categories, :path => '', :as => :categories, :controller => 'categories'
end
end
# Admin routes
namespace :products, :path => '' do
namespace :admin, :path => Refinery::Core.b... | end
scope :path => Refinery::Products.products_categories_path do
resources :categories, :path => '', :as => :categories, :controller => 'categories'
end
end
# Admin routes
namespace :products, :path => '' do
namespace :admin, :path => Refinery::Core.backend_route do
scope :path => R... | <|file_sep|>original/config/routes.rb
end
scope :path => Refinery::Products.products_categories_path do
resources :categories, :path => '', :as => :categories, :controller => 'categories'
end
end
# Admin routes
namespace :products, :path => '' do
namespace :admin, :path => Refinery::Core.b... | bfdfd0b50ad78a31a93485b19e74b1a83e11e51a | config/routes.rb | config/routes.rb | Ruby |
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/base.txt
Django==1.11.1
wagtail==1.10.1
wagtailfontawesome==1.0.6
celery==4.0.2
django-cachalot==1.4.1
django-compressor==2.1.1
django-environ==0.4.3
django-foundation-formtags==0.0.8
django-wagtail-feeds==0.0.7
django-libsass==0.7
django-redis==4.8.0
libs... | Django==1.11.1
wagtail==1.10.1
wagtailfontawesome==1.0.6
celery==4.0.2
django-cachalot==1.5.0
django-compressor==2.1.1
django-environ==0.4.3
django-foundation-formtags==0.0.8
django-wagtail-feeds==0.0.7
django-libsass==0.7
django-redis==4.8.0
libsass==0.12.3
psycopg2==2.7.1
wand==0.4.4
{% if cookiecutter.use_wagalytics... | <|file_sep|>original/{{cookiecutter.project_slug}}/requirements/base.txt
Django==1.11.1
wagtail==1.10.1
wagtailfontawesome==1.0.6
celery==4.0.2
django-cachalot==1.4.1
django-compressor==2.1.1
django-environ==0.4.3
django-foundation-formtags==0.0.8
django-wagtail-feeds==0.0.7
django-libsass==0.7
django-redis==4.8.0
libs... | cdeb40250439322fb444633545abef3c0e82eb61 | {{cookiecutter.project_slug}}/requirements/base.txt | {{cookiecutter.project_slug}}/requirements/base.txt | Text |
<|file_sep|>original/package.json
{
"name": "cloudcp",
"version": "0.1.0",
"description": "Copy local files to any cloud storage provider supported by pkgcloud",
"main": "index.js",
"scripts": {
"test": "tap test/index.js",
"test-ci": "standard && istanbul cover test/index.js",
"preversion": "npm ... | {
"name": "cloudcp",
"version": "0.1.0",
"description": "Copy local files to any cloud storage provider supported by pkgcloud",
"main": "index.js",
"scripts": {
"test": "tap test/index.js",
"test-ci": "standard && istanbul cover test/index.js"
},
"keywords": [
"copy",
"fs",
"cp",
"... | <|file_sep|>original/package.json
{
"name": "cloudcp",
"version": "0.1.0",
"description": "Copy local files to any cloud storage provider supported by pkgcloud",
"main": "index.js",
"scripts": {
"test": "tap test/index.js",
"test-ci": "standard && istanbul cover test/index.js",
"preversion": "npm ... | 9fce8b4849a712e559929feac34cc5c1fa8b6c76 | package.json | package.json | JSON |
<|file_sep|>plugins/cache_reload.js.diff
original:
url: "",
initialized: false
updated:
url: ""
<|file_sep|>plugins/cache_reload.js.diff
original:
if(this.initalized)
updated:
if(!impl.url)
<|file_sep|>original/plugins/cache_reload.js
if(this.initalized)
return this;
BOOMR.subscribe(
"page_ready",
... | if(!impl.url)
return this;
// we use document and not BOOMR.window.document since
// we can run inside the boomerang iframe if any
var i=document.createElement('iframe');
i.style.display="none";
i.src=impl.url;
document.body.appendChild(i);
return this;
},
is_complete: function() {
// we alway... | <|file_sep|>plugins/cache_reload.js.diff
original:
url: "",
initialized: false
updated:
url: ""
<|file_sep|>plugins/cache_reload.js.diff
original:
if(this.initalized)
updated:
if(!impl.url)
<|file_sep|>original/plugins/cache_reload.js
if(this.initalized)
return this;
BOOMR.subscribe(
"page_ready",
... | 60a2b50f5c49c3c109f3f90e53897a1601bdd256 | plugins/cache_reload.js | plugins/cache_reload.js | JavaScript |
<|file_sep|>original/.travis.yml
before_install:
- node -v
- npm -v
install:
- npm install
- npm install -g grunt-cli@0.1.13
- grunt build
- mvn install -DskipTests=true
script:
- mvn test
after_success:
- git config --global user.email "simon@simondean.org"
- git config --global user.name "Simon Dean"
- mvn --batch... | language: java
jdk:
- oraclejdk8
before_install:
- node -v
- npm -v
install:
- npm install
- npm install -g grunt-cli@0.1.13
- grunt build
- mvn install -DskipTests=true
script:
- mvn test
- mvn --batch-mode deploy -DskipTests=true --settings settings.xml
env:
secure: aKqIEWlkoAdsMALaxp6lvdIQjvMgBw9a27Wzssp2imRM... | <|file_sep|>original/.travis.yml
before_install:
- node -v
- npm -v
install:
- npm install
- npm install -g grunt-cli@0.1.13
- grunt build
- mvn install -DskipTests=true
script:
- mvn test
after_success:
- git config --global user.email "simon@simondean.org"
- git config --global user.name "Simon Dean"
- mvn --batch... | ce5fd980f05a32a21b1a1747c3864c4ede8e4a97 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/manifest.json
{
"manifest_version": 2,
"name": "AutoFlix",
"version": "1.1.3",
"description": "Simplifies the access to Netflix for all users.",
"icons": {
"16": "icon-16.png",
"32": "icon-32.png",
"48": "icon-48.png",
"64": "icon-64.png" ,
"128": "icon-128.png"
},
"browser_acti... | {
"manifest_version": 2,
"name": "AutoFlix",
"version": "1.1.4",
"description": "Simplifies the access to Netflix for all users.",
"icons": {
"16": "icon-16.png",
"32": "icon-32.png",
"48": "icon-48.png",
"64": "icon-64.png" ,
"128": "icon-128.png"
},
"browser_action": {
"default_icon": "icon-128.... | <|file_sep|>original/manifest.json
{
"manifest_version": 2,
"name": "AutoFlix",
"version": "1.1.3",
"description": "Simplifies the access to Netflix for all users.",
"icons": {
"16": "icon-16.png",
"32": "icon-32.png",
"48": "icon-48.png",
"64": "icon-64.png" ,
"128": "icon-128.png"
},
"browser_acti... | dc06a0292108738f657197352142ce459c9e14df | manifest.json | manifest.json | JSON |
<|file_sep|>original/Casks/tomtom-mysports-connect.rb
<|file_sep|>current/Casks/tomtom-mysports-connect.rb
<|file_sep|>updated/Casks/tomtom-mysports-connect.rb | cask 'tomtom-mysports-connect' do
version :latest
sha256 :no_check
url 'http://download.tomtom.com/sweet/fitness/MySportsConnectDesktop/current/TomTomMySportsConnectInstaller.pkg'
name 'TomTom MySports Connect'
homepage 'http://www.tomtom.com/de_ch/mysports/getstarted/'
license :gpl
pkg 'TomTomMySportsC... | <|file_sep|>original/Casks/tomtom-mysports-connect.rb
<|file_sep|>current/Casks/tomtom-mysports-connect.rb
<|file_sep|>updated/Casks/tomtom-mysports-connect.rb
cask 'tomtom-mysports-connect' do
version :latest
sha256 :no_check
url 'http://download.tomtom.com/sweet/fitness/MySportsConnectDesktop/current/TomTomM... | b513cbe1839215d107b620e897e279e26dcbcb70 | Casks/tomtom-mysports-connect.rb | Casks/tomtom-mysports-connect.rb | Ruby |
<|file_sep|>original/.travis.yml
r_packages:
# - gWidgets
# - gWidgetstcltk
- stringdist
- igraph
# - covr
# r packages directly installed from github
r_github_pages:
- jimhester/covr
# before_install:
# - sudo apt-get install tk
after_success:
- Rscript -e 'covr::codecov()'
# or coveralls
- Rscri... | # - gWidgetstcltk
- stringdist
- igraph
# - covr
# r packages directly installed from github
r_github_pages:
- jimhester/covr
# before_install:
# - sudo apt-get install tk
after_success:
- Rscript -e 'covr::codecov()'
# or coveralls
- Rscript -e 'covr::coveralls()'
notifications:
email:
on_s... | <|file_sep|>original/.travis.yml
r_packages:
# - gWidgets
# - gWidgetstcltk
- stringdist
- igraph
# - covr
# r packages directly installed from github
r_github_pages:
- jimhester/covr
# before_install:
# - sudo apt-get install tk
after_success:
- Rscript -e 'covr::codecov()'
# or coveralls
- Rscri... | c8f8edb7d88164336319247459b3b11a8002e1e4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>modules/hdo/templates/deployer.json.diff
original:
"command": ["cap", "staging", "deploy:web:disable", "deploy:migrations", "cache:precompute", "deploy:web:enable"],
updated:
<|file_sep|>original/modules/hdo/templates/deployer.json
{
"logdir": "<%= logdir %>",
"github_client_id": "<%= github_clie... | {
"logdir": "<%= logdir %>",
"github_client_id": "<%= github_client_id %>",
"github_client_secret": "<%= github_client_secret %>",
"statsd": "ops1.holderdeord.no:8125",
"projects": {
"holderdeord/hdo-site#master": {
"directory": "<%= appdir %>",
"token": "<%= token %>",
"timeout": 180,
... | <|file_sep|>modules/hdo/templates/deployer.json.diff
original:
"command": ["cap", "staging", "deploy:web:disable", "deploy:migrations", "cache:precompute", "deploy:web:enable"],
updated:
<|file_sep|>original/modules/hdo/templates/deployer.json
{
"logdir": "<%= logdir %>",
"github_client_id": "<%= github_clie... | 350ff106b2d356700eb24e8b9ceb819af263b7f4 | modules/hdo/templates/deployer.json | modules/hdo/templates/deployer.json | JSON |
<|file_sep|>lib/mix/lib/mix/tasks/do.ex.diff
original:
updated:
<|file_sep|>lib/mix/lib/mix/tasks/do.ex.diff
original:
{current, commands} =
case String.split(arg, ",") do
[arg] -> {[arg | current], commands}
# special care if the argument contains a comma
args -> update_commands(ar... | defp gather_commands([], current, commands) do
[current | commands]
|> Enum.reject(&(&1 == []))
|> Enum.map(&Enum.reverse(&1))
|> Enum.reverse
end
defp gather_commands([arg | rest], current, commands) do
case String.split(arg, ",", parts: 2) do
[arg] ->
gather_commands(rest, [ar... | <|file_sep|>lib/mix/lib/mix/tasks/do.ex.diff
original:
updated:
<|file_sep|>lib/mix/lib/mix/tasks/do.ex.diff
original:
{current, commands} =
case String.split(arg, ",") do
[arg] -> {[arg | current], commands}
# special care if the argument contains a comma
args -> update_commands(ar... | 70ba8464c9fb2745aaeb0f53783c1361b8db982e | lib/mix/lib/mix/tasks/do.ex | lib/mix/lib/mix/tasks/do.ex | Elixir |
<|file_sep|>original/examples/wfs.html
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, layer;
function init(){
map = new OpenLayers.Map('map');
... | height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, layer;
function init(){
OpenLayers.ProxyHost = '/dev/examples/proxy.cgi?url=';
map = ... | <|file_sep|>original/examples/wfs.html
height: 475px;
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
<!--
var map, layer;
function init(){
map = new OpenLayers.Map('map');
... | 1a3d466f2a681cd5f3f9bff74a6eddf15d4a7c6b | examples/wfs.html | examples/wfs.html | HTML |
<|file_sep|>original/requirements_dev.txt
# Database
psycopg2-binary==2.7.7
pip==19.0.1
bumpversion==0.5.3
wheel==0.32.3
watchdog==0.9.0
flake8==3.7.5
tox==3.7.0
cryptography==2.5
Sphinx==1.8.4
coverage==4.5.2
pytest==4.2.0
pytest-runner==4.2
pytest-cov==2.6.1
# miscellaneous
sphinx_rtd_theme==0.4.2
pre-commit==1.14... |
# Database
psycopg2-binary==2.7.7
pip==19.0.1
bumpversion==0.5.3
wheel==0.33.0
watchdog==0.9.0
flake8==3.7.5
tox==3.7.0
cryptography==2.5
Sphinx==1.8.4
coverage==4.5.2
pytest==4.2.0
pytest-runner==4.2
pytest-cov==2.6.1
# miscellaneous
sphinx_rtd_theme==0.4.2
pre-commit==1.14.3
| <|file_sep|>original/requirements_dev.txt
# Database
psycopg2-binary==2.7.7
pip==19.0.1
bumpversion==0.5.3
wheel==0.32.3
watchdog==0.9.0
flake8==3.7.5
tox==3.7.0
cryptography==2.5
Sphinx==1.8.4
coverage==4.5.2
pytest==4.2.0
pytest-runner==4.2
pytest-cov==2.6.1
# miscellaneous
sphinx_rtd_theme==0.4.2
pre-commit==1.14... | 0f41d6a1639841697d16fe0ee84664f8c41b3a78 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/LICENSE.md
The MIT License (MIT)
Copyright (c) 2015 Patrick M. Jensen, patmjen@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including withou... | The MIT License (MIT)
Copyright (c) 2016 Patrick M. Jensen, patmjen@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | <|file_sep|>original/LICENSE.md
The MIT License (MIT)
Copyright (c) 2015 Patrick M. Jensen, patmjen@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including withou... | 148f46220e7c3028936032307706d4a7ddc85330 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/app/widgets/ChatOmemo/locales.ini
[omemo]
fingerprints_title = Fingerprints
fingerprints = OMEMO Fingerprints
generating_bundle = "Generating the encryption keys, please wait…"
generated_bundle = Encryption keys generated
resolving_devices = Resolving OMEMO devices
building... | [omemo]
fingerprints_title = Fingerprints
fingerprints = OMEMO Fingerprints
generating_bundle = "Generating the encryption keys, please wait…"
generated_bundle = Encryption keys generated
resolving_devices = Resolving OMEMO devices
building_sessions = Building encryption sessions
building_o... | <|file_sep|>original/app/widgets/ChatOmemo/locales.ini
[omemo]
fingerprints_title = Fingerprints
fingerprints = OMEMO Fingerprints
generating_bundle = "Generating the encryption keys, please wait…"
generated_bundle = Encryption keys generated
resolving_devices = Resolving OMEMO devices
building... | 3a6212ea81b8689041e898df1fa458c6e1c7e806 | app/widgets/ChatOmemo/locales.ini | app/widgets/ChatOmemo/locales.ini | INI |
<|file_sep|>original/app/jobs/geocode_firm_job.rb
require 'geocoder'
class GeocodeFirmJob < ActiveJob::Base
def perform(firm)
coordinates = Geocoder.coordinates(firm.full_street_address)
coordinates ? stat(:success) : stat(:failed)
firm.geocode!(coordinates)
end
private
def stat(key)
Stats.in... | require 'geocoder'
class GeocodeFirmJob < ActiveJob::Base
def perform(firm)
coordinates = Geocoder.coordinates(firm.full_street_address)
coordinates ? stat(:success) : stat(:failed)
firm.geocode!(coordinates)
end
private
def stat(key)
Stats.increment("radsignup.geocode.firm.#{key}")
end
end | <|file_sep|>original/app/jobs/geocode_firm_job.rb
require 'geocoder'
class GeocodeFirmJob < ActiveJob::Base
def perform(firm)
coordinates = Geocoder.coordinates(firm.full_street_address)
coordinates ? stat(:success) : stat(:failed)
firm.geocode!(coordinates)
end
private
def stat(key)
Stats.in... | 3d03fc9be9ab1e2e661ca56ef87bf4f10b2fe993 | app/jobs/geocode_firm_job.rb | app/jobs/geocode_firm_job.rb | Ruby |
<|file_sep|>original/2d/skeleton/README.md
# Skeleton2D Demo
This demo shows how to create a rigged and animated character in 2D using
Godot's Skeleton2D node. There are several movement-related animations and
there is a simple character controller that controls the animations.
Language: GDScript
Renderer: GLES 2
#... | # Skeleton2D Demo
This demo shows how to create a rigged and animated character in 2D using
Godot's Skeleton2D node. There are several movement-related animations and
there is a simple character controller that controls the animations.
Language: GDScript
Renderer: GLES 2
Check out this demo on the asset library: ht... | <|file_sep|>original/2d/skeleton/README.md
# Skeleton2D Demo
This demo shows how to create a rigged and animated character in 2D using
Godot's Skeleton2D node. There are several movement-related animations and
there is a simple character controller that controls the animations.
Language: GDScript
Renderer: GLES 2
#... | 9ea18370d3ba71d2bad7b944eb521dc309b3f513 | 2d/skeleton/README.md | 2d/skeleton/README.md | Markdown |
<|file_sep|>original/requirements/prod.txt
beautifulsoup4==4.8.2
eventlet==0.25.1
gunicorn==20.0.4
# CSS/JS Assets
flask_assets==2.0
yuicompressor==2.4.8
# Sockets
flask_socketio==4.2.1
python_socketio==4.4.0
python_engineio==3.11.2
# Celery
celery==4.4.1
redis==3.4.1
# Octave interaction
scipy==1.4.1
numpy==1.18.1... | beautifulsoup4==4.8.2
eventlet==0.25.1
gunicorn==20.0.4
# CSS/JS Assets
flask_assets==2.0
yuicompressor==2.4.8
# Sockets
flask_socketio==4.2.1
python_socketio==4.5.0
python_engineio==3.11.2
# Celery
celery==4.4.1
redis==3.4.1
# Octave interaction
scipy==1.4.1
numpy==1.18.1
octave-kernel==0.31.0 | <|file_sep|>original/requirements/prod.txt
beautifulsoup4==4.8.2
eventlet==0.25.1
gunicorn==20.0.4
# CSS/JS Assets
flask_assets==2.0
yuicompressor==2.4.8
# Sockets
flask_socketio==4.2.1
python_socketio==4.4.0
python_engineio==3.11.2
# Celery
celery==4.4.1
redis==3.4.1
# Octave interaction
scipy==1.4.1
numpy==1.18.1... | 3c0e8bc67d8226e121f18ff917cde81ed46e8a94 | requirements/prod.txt | requirements/prod.txt | Text |
<|file_sep|>original/package.json
"main": "index.js",
"scripts": {
"test": "find . \\( -name node_modules -prune \\) -o -name \"*.js\" -exec jshint \"{}\" \\;"
},
"author": "Edward Faulkner <ef@alum.mit.edu>",
"license": "MIT",
"repository": "https://github.com/ef4/ember-code-snippet",
"dependencies":... | "main": "index.js",
"scripts": {
"test": "find . \\( -name node_modules -prune \\) -o -name \"*.js\" -exec jshint \"{}\" \\;"
},
"author": "Edward Faulkner <ef@alum.mit.edu>",
"license": "MIT",
"repository": "https://github.com/ef4/ember-code-snippet",
"dependencies": {
"highlight.js": "^8.1.0",
... | <|file_sep|>original/package.json
"main": "index.js",
"scripts": {
"test": "find . \\( -name node_modules -prune \\) -o -name \"*.js\" -exec jshint \"{}\" \\;"
},
"author": "Edward Faulkner <ef@alum.mit.edu>",
"license": "MIT",
"repository": "https://github.com/ef4/ember-code-snippet",
"dependencies":... | 91f8e4f0f4a5d06e4a6fd9b622966df633c2e34b | package.json | package.json | JSON |
<|file_sep|>lib/alchemy/logger.rb.diff
original:
# Logs a warning to the Rails standard logger and adds some nicer formatting
updated:
# Logs a debug message to the Rails standard logger and adds some nicer formatting
<|file_sep|>original/lib/alchemy/logger.rb
module Alchemy
module Logger
# Logs a warnin... | module Alchemy
module Logger
# Logs a debug message to the Rails standard logger and adds some nicer formatting
def self.warn(message, caller_string)
Rails.logger.debug %(\n++++ WARNING: #{message}\nCalled from: #{caller_string}\n)
return nil
end
def log_warning(message)
Alchemy::L... | <|file_sep|>lib/alchemy/logger.rb.diff
original:
# Logs a warning to the Rails standard logger and adds some nicer formatting
updated:
# Logs a debug message to the Rails standard logger and adds some nicer formatting
<|file_sep|>original/lib/alchemy/logger.rb
module Alchemy
module Logger
# Logs a warnin... | 07f8826eddc964d46e3476c279f7819ec9e1cfd1 | lib/alchemy/logger.rb | lib/alchemy/logger.rb | Ruby |
<|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
updated:
use Psy\Input\CodeArgument;
<|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
updated:
use Symfony\Component\Console\Input\InputArgument;
<|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
use Symfony\Component\Console\Input\In... |
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$code = $input->getArgument('code');
/** @var Shell $shell */
$shell = $this->getApplication();
$sh = new Shell(new Configuration());
$sh->setOutput($output... | <|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
updated:
use Psy\Input\CodeArgument;
<|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
updated:
use Symfony\Component\Console\Input\InputArgument;
<|file_sep|>src/Psy/Command/TimeitCommand.php.diff
original:
use Symfony\Component\Console\Input\In... | eee4305f71d53dfaeed6b0042926e74f8530bece | src/Psy/Command/TimeitCommand.php | src/Psy/Command/TimeitCommand.php | PHP |
<|file_sep|>original/.travis.yml
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 3.5
env: TOXENV=flake... | - python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.8-dev
env: TOXENV=py38
- python: 3.5
env: TOXENV=flake
- python: 3.5
env:... | <|file_sep|>original/.travis.yml
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 3.5
env: TOXENV=flake... | 269134b873751b0fe68e5442f04e0ef36656568c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/recipes/trigger_recipe_roller.txt
No-op file. Edit this to kick recipes.
This is a beginning of a story in this silly file.
Once upon a time, a budding web browser dev team needed a CI system.
All they had was one poor machine under a desk, and its name was Batty,
the Build and Test Yeti.
As the ... | No-op file. Edit this to kick recipes.
This is a beginning of a story in this silly file.
Once upon a time, a budding web browser dev team needed a CI system.
All they had was one poor machine under a desk, and its name was Batty,
the Build and Test Yeti.
As the CI needs of the browser grew, Batty, the Build and Test... | <|file_sep|>original/recipes/trigger_recipe_roller.txt
No-op file. Edit this to kick recipes.
This is a beginning of a story in this silly file.
Once upon a time, a budding web browser dev team needed a CI system.
All they had was one poor machine under a desk, and its name was Batty,
the Build and Test Yeti.
As the ... | b63c4663d478bcf8d4fd163a52dc42eb85861ea7 | recipes/trigger_recipe_roller.txt | recipes/trigger_recipe_roller.txt | Text |
<|file_sep|>teknologr/members/static/js/applicant.js.diff
original:
$('#unknown_degree input').val('');
updated:
$('#id_degree_programme').val('');
<|file_sep|>original/teknologr/members/static/js/applicant.js
$(document).ready(function() {
$('#id_degree_programme_options').change(function(... | $(document).ready(function() {
$('#id_degree_programme_options').change(function() {
console.log('hello');
if (this.value === 'extra') {
$('#unknown_degree').show();
$('#id_degree_programme').val('');
} else {
$('#unknown_degree').hide();
$('#... | <|file_sep|>teknologr/members/static/js/applicant.js.diff
original:
$('#unknown_degree input').val('');
updated:
$('#id_degree_programme').val('');
<|file_sep|>original/teknologr/members/static/js/applicant.js
$(document).ready(function() {
$('#id_degree_programme_options').change(function(... | d6ce1424c5d99ba80ad0f13532d20140ae195e60 | teknologr/members/static/js/applicant.js | teknologr/members/static/js/applicant.js | JavaScript |
<|file_sep|>original/LICENSE.txt
<|file_sep|>current/LICENSE.txt
<|file_sep|>updated/LICENSE.txt | Copyright (c) 2013, Sergey Vinokurov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fol... | <|file_sep|>original/LICENSE.txt
<|file_sep|>current/LICENSE.txt
<|file_sep|>updated/LICENSE.txt
Copyright (c) 2013, Sergey Vinokurov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributio... | 8654eba3046dcc0eab7ce43497e58df05f719480 | LICENSE.txt | LICENSE.txt | Text |
<|file_sep|>src/main/webapp/src/app/app.module.ts.diff
original:
import {TestPageComponent} from './test-page/test-page.component';
updated:
<|file_sep|>original/src/main/webapp/src/app/app.module.ts
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingMo... |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {MaterialComponents} from './material-components';
import {BrowserAnimationsModule} from '@angular/platform-brows... | <|file_sep|>src/main/webapp/src/app/app.module.ts.diff
original:
import {TestPageComponent} from './test-page/test-page.component';
updated:
<|file_sep|>original/src/main/webapp/src/app/app.module.ts
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingMo... | 02e010d7e85345d26632897972bb735134bf225d | src/main/webapp/src/app/app.module.ts | src/main/webapp/src/app/app.module.ts | TypeScript |
<|file_sep|>original/dist_chrome/content-script.js
}
});
port.start();
}
// let ember-debug know that content script has executed
document.documentElement.dataset.emberExtension = 1;
// Allow older versions of Ember (< 1.4) to detect the extension.
if (document.body) {
document.body.datas... | port.postMessage(message);
}
});
port.start();
}
// let ember-debug know that content script has executed
document.documentElement.dataset.emberExtension = 1;
// clear a possible previous Ember icon
chrome.extension.sendMessage({ type: 'resetEmberIcon' });
// inject JS into the pa... | <|file_sep|>original/dist_chrome/content-script.js
}
});
port.start();
}
// let ember-debug know that content script has executed
document.documentElement.dataset.emberExtension = 1;
// Allow older versions of Ember (< 1.4) to detect the extension.
if (document.body) {
document.body.datas... | ae530367b59848c2259bf50e85e087634dab9bb1 | dist_chrome/content-script.js | dist_chrome/content-script.js | JavaScript |
<|file_sep|>ElCapitan/brew-casks.sh.diff
original:
updated:
brew cask install cyberduck
<|file_sep|>original/ElCapitan/brew-casks.sh
echo "Installing brew casks"
brew cask install alfred
brew cask install android-studio
brew cask install appcleaner
brew cask install atom
brew cask install carbon-copy-cloner
brew cask ... | brew cask install android-studio
brew cask install appcleaner
brew cask install atom
brew cask install carbon-copy-cloner
brew cask install ccmenu
brew cask install cyberduck
brew cask install dash
brew cask install dropbox
brew cask install firefox
brew cask install flux
brew cask install handbrake
brew cask install C... | <|file_sep|>ElCapitan/brew-casks.sh.diff
original:
updated:
brew cask install cyberduck
<|file_sep|>original/ElCapitan/brew-casks.sh
echo "Installing brew casks"
brew cask install alfred
brew cask install android-studio
brew cask install appcleaner
brew cask install atom
brew cask install carbon-copy-cloner
brew cask ... | c561feb49f4d60bd4dc189f2617e6101cd717824 | ElCapitan/brew-casks.sh | ElCapitan/brew-casks.sh | Shell |
<|file_sep|>original/thrifty-bunny.gemspec
spec.email = ["bsiggelkow@me.com"]
spec.summary = "RabbitMQ adapter for Apache Thrift"
spec.description = "RabbitMQ adapter for Apache Thrift"
spec.homepage = "http://github.com/bsiggelkow/thrifty-bunny"
spec.license = 'MIT'
spec.files ... | spec.email = ["bsiggelkow@me.com"]
spec.summary = "RabbitMQ adapter for Apache Thrift"
spec.description = "RabbitMQ adapter for Apache Thrift"
spec.homepage = "http://github.com/bsiggelkow/thrifty-bunny"
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
s... | <|file_sep|>original/thrifty-bunny.gemspec
spec.email = ["bsiggelkow@me.com"]
spec.summary = "RabbitMQ adapter for Apache Thrift"
spec.description = "RabbitMQ adapter for Apache Thrift"
spec.homepage = "http://github.com/bsiggelkow/thrifty-bunny"
spec.license = 'MIT'
spec.files ... | 334d3daf95eb8940163352ecb06ee5b3c372020b | thrifty-bunny.gemspec | thrifty-bunny.gemspec | Ruby |
<|file_sep|>original/.idea/artifacts/ProgrammingLife_jar.xml
<|file_sep|>current/.idea/artifacts/ProgrammingLife_jar.xml
<|file_sep|>updated/.idea/artifacts/ProgrammingLife_jar.xml | <component name="ArtifactManager">
<artifact type="jar" name="ProgrammingLife:jar">
<output-path>$PROJECT_DIR$/out/artifacts/ProgrammingLife_jar</output-path>
<root id="archive" name="ProgrammingLife.jar">
<element id="module-output" name="ProgrammingLife" />
<element id="extracted-dir" path="$MAV... | <|file_sep|>original/.idea/artifacts/ProgrammingLife_jar.xml
<|file_sep|>current/.idea/artifacts/ProgrammingLife_jar.xml
<|file_sep|>updated/.idea/artifacts/ProgrammingLife_jar.xml
<component name="ArtifactManager">
<artifact type="jar" name="ProgrammingLife:jar">
<output-path>$PROJECT_DIR$/out/artifacts/Progra... | 8d12bc080ef9f976533434f78a674578bdeef189 | .idea/artifacts/ProgrammingLife_jar.xml | .idea/artifacts/ProgrammingLife_jar.xml | XML |
<|file_sep|>app/Console/Kernel.php.diff
original:
->weeklyOn(5, '4:00');
updated:
->weeklyOn(6, '4:00'); // 6 = Saturday
<|file_sep|>original/app/Console/Kernel.php
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protect... |
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule) {
// Synchronise student list with the LDAP
$schedule->command('syncstudents')
->weeklyOn(6, '4:00'); // 6 = Saturday
//... | <|file_sep|>app/Console/Kernel.php.diff
original:
->weeklyOn(5, '4:00');
updated:
->weeklyOn(6, '4:00'); // 6 = Saturday
<|file_sep|>original/app/Console/Kernel.php
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protect... | 21d3ccd3493a340fa0168f17df9ce2baab7f1347 | app/Console/Kernel.php | app/Console/Kernel.php | PHP |
<|file_sep|>original/test/lib/rubycritic/metric_adapters/flog_adapter_test.rb
describe Rubycritic::SmellAdapter::Flog do
before do
sample_path = "test/samples/flog/smelly.rb"
flog = Rubycritic::Analyser::Flog.new([sample_path])
@adapter = Rubycritic::SmellAdapter::Flog.new(flog)
end
it "detects smell... | describe Rubycritic::SmellAdapter::Flog do
before do
sample_path = "test/samples/flog/smelly.rb"
flog = Rubycritic::Analyser::Flog.new([sample_path])
@adapter = Rubycritic::SmellAdapter::Flog.new(flog)
end
it "detects smells" do
@adapter.smells.wont_be_empty
end
it "has smells with messages"... | <|file_sep|>original/test/lib/rubycritic/metric_adapters/flog_adapter_test.rb
describe Rubycritic::SmellAdapter::Flog do
before do
sample_path = "test/samples/flog/smelly.rb"
flog = Rubycritic::Analyser::Flog.new([sample_path])
@adapter = Rubycritic::SmellAdapter::Flog.new(flog)
end
it "detects smell... | e1da8c877977b5a6d5a42aa6d7d88694b2e92e34 | test/lib/rubycritic/metric_adapters/flog_adapter_test.rb | test/lib/rubycritic/metric_adapters/flog_adapter_test.rb | Ruby |
<|file_sep|>original/hieradata/common.yaml
---
message: "This node is using common data"
#Puppet Server Tuning
puppet_enterprise::master::puppetserver::jruby_max_requests_per_instance: 0
<|file_sep|>current/hieradata/common.yaml
---
message: "This node is using common data"
#Puppet Server Tuning
puppet_enterprise::ma... | ---
message: "This node is using common data" | <|file_sep|>original/hieradata/common.yaml
---
message: "This node is using common data"
#Puppet Server Tuning
puppet_enterprise::master::puppetserver::jruby_max_requests_per_instance: 0
<|file_sep|>current/hieradata/common.yaml
---
message: "This node is using common data"
#Puppet Server Tuning
puppet_enterprise::ma... | 5497d199b3c851a317638905e77f44f2fafc64d4 | hieradata/common.yaml | hieradata/common.yaml | YAML |
<|file_sep|>original/packages/opencv/opencv-samples_git.bb
<|file_sep|>current/packages/opencv/opencv-samples_git.bb
<|file_sep|>updated/packages/opencv/opencv-samples_git.bb | DESCRIPTION = "Opencv : The Open Computer Vision Library"
HOMEPAGE = "http://sourceforge.net/projects/opencvlibrary"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
PR = "r3"
DEPENDS = "opencv"
SRCREV = "fb7cc87ed6a7425f3edc58e2d1eb44599496ac09"
SRC_URI = "git://github.com/nzjrs/opencv.git;protocol=git;bran... | <|file_sep|>original/packages/opencv/opencv-samples_git.bb
<|file_sep|>current/packages/opencv/opencv-samples_git.bb
<|file_sep|>updated/packages/opencv/opencv-samples_git.bb
DESCRIPTION = "Opencv : The Open Computer Vision Library"
HOMEPAGE = "http://sourceforge.net/projects/opencvlibrary"
SECTION = "libs"
PRIORITY ... | 3c871af940959b5543908e909d7747ba0b4affaa | packages/opencv/opencv-samples_git.bb | packages/opencv/opencv-samples_git.bb | BitBake |
<|file_sep|>original/LICENSE.txt
Copyright (c) 2015 Bouke van der Bijl
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to ... | Copyright (c) 2015 Shopify
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribut... | <|file_sep|>original/LICENSE.txt
Copyright (c) 2015 Bouke van der Bijl
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to ... | 336086d5b6c8a5289aa9a3cdd3751118d1f087dd | LICENSE.txt | LICENSE.txt | Text |
<|file_sep|>setup/optional_setup_steps.sh.diff
original:
updated:
# Dependencies for Sublime Text (from https://www.sublimetext.com/docs/3/linux_repositories.html#apt)
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install -yq apt-transport-https
echo "deb https://downl... | emacs \
gitk \
sublime-text
terminator \
vim \
wget
# Allow SSH into this machine
sudo apt-get install -yq openssh-server
# Set the default settings for gedit to be OK for programming
gsettings set org.gnome.gedit.preferences.editor auto-indent true
gsettings set org.gnome.gedit.preferences.editor bracket... | <|file_sep|>setup/optional_setup_steps.sh.diff
original:
updated:
# Dependencies for Sublime Text (from https://www.sublimetext.com/docs/3/linux_repositories.html#apt)
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install -yq apt-transport-https
echo "deb https://downl... | e63b0192ed841977faec8dd321edfae27e7c8fa2 | setup/optional_setup_steps.sh | setup/optional_setup_steps.sh | Shell |
<|file_sep|>original/src/com/kduda/battleships/Main.java
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
... | import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
Parent r... | <|file_sep|>original/src/com/kduda/battleships/Main.java
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
... | 4a351c628fe8e9c16132c02592936232c54093a1 | src/com/kduda/battleships/Main.java | src/com/kduda/battleships/Main.java | Java |
<|file_sep|>original/Formula/php70-uuid.rb
<|file_sep|>current/Formula/php70-uuid.rb
<|file_sep|>updated/Formula/php70-uuid.rb | require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php70Uuid < AbstractPhp70Extension
init
desc "UUID extension"
homepage "https://pecl.php.net/package/uuid"
stable do
url "https://pecl.php.net/get/uuid-1.0.4.tgz"
sha256 "63079b6a62a9d43691ecbcd4eb52e5e5fe17b5a3d0f8e46e3... | <|file_sep|>original/Formula/php70-uuid.rb
<|file_sep|>current/Formula/php70-uuid.rb
<|file_sep|>updated/Formula/php70-uuid.rb
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php70Uuid < AbstractPhp70Extension
init
desc "UUID extension"
homepage "https://pecl.php.net/package/u... | 25c265f64b7c26bfd68c12c8179fa631b89c3617 | Formula/php70-uuid.rb | Formula/php70-uuid.rb | Ruby |
<|file_sep|>original/rules/management/commands/CorpusLogicUpdate.py
<|file_sep|>current/rules/management/commands/CorpusLogicUpdate.py
<|file_sep|>updated/rules/management/commands/CorpusLogicUpdate.py | import logging
from django.core.management.base import BaseCommand, CommandError
from plyara import YaraParser
from rules.models import YaraRule
# Configure Logging
logging.basicConfig(level=logging.INFO)
class Command(BaseCommand):
help = 'Recalculate the logic hashes of the entire rule corpus'
def handl... | <|file_sep|>original/rules/management/commands/CorpusLogicUpdate.py
<|file_sep|>current/rules/management/commands/CorpusLogicUpdate.py
<|file_sep|>updated/rules/management/commands/CorpusLogicUpdate.py
import logging
from django.core.management.base import BaseCommand, CommandError
from plyara import YaraParser
from... | b3f8be5b6ab7e4e713004447a3cfbda743d80394 | rules/management/commands/CorpusLogicUpdate.py | rules/management/commands/CorpusLogicUpdate.py | Python |
<|file_sep|>original/scripts/roles/cikit-php/tasks/xdebug.yml
---
- name: Set name of directory for XDebug
set_fact:
cikit_php_xdebug: "xdebug-{{ php.xdebug }}"
- name: Download XDebug
get_url:
url: "https://xdebug.org/files/{{ cikit_php_xdebug }}.tgz"
dest: "/tmp/{{ cikit_php_xdebug }}.tgz"
- name: U... | get_url:
url: "https://xdebug.org/files/{{ cikit_php_xdebug }}.tgz"
dest: "/tmp/{{ cikit_php_xdebug }}.tgz"
- name: Unarchive XDebug
shell: "tar -xf /tmp/{{ cikit_php_xdebug }}.tgz -C /tmp/"
args:
# Unarchive module does not work properly in Ansible 2.1.1.0.
warn: no
- include_tasks: fixtures/co... | <|file_sep|>original/scripts/roles/cikit-php/tasks/xdebug.yml
---
- name: Set name of directory for XDebug
set_fact:
cikit_php_xdebug: "xdebug-{{ php.xdebug }}"
- name: Download XDebug
get_url:
url: "https://xdebug.org/files/{{ cikit_php_xdebug }}.tgz"
dest: "/tmp/{{ cikit_php_xdebug }}.tgz"
- name: U... | ad7610ebdb647411307b2353fb01f7bc9e97b8ad | scripts/roles/cikit-php/tasks/xdebug.yml | scripts/roles/cikit-php/tasks/xdebug.yml | YAML |
<|file_sep|>recipes/_nginx.rb.diff
original:
service 'nginx' do
action [:enable, :start]
supports :restart => true, :start => true, :stop => true, :reload => true
end
updated:
<|file_sep|>original/recipes/_nginx.rb
include_recipe 'oc-graphite::_uwsgi'
service 'nginx' do
action [:enable, :start]
supports :res... | group 'root'
mode 0644
notifies :reload, 'service[nginx]', :delayed
end
link '/etc/nginx/sites-enabled/graphite' do
to '/etc/nginx/sites-available/graphite'
end
file '/etc/nginx/sites-enabled/default' do
action :delete
notifies :reload, 'service[nginx]', :delayed
only_if { node['oc-graphite']['nginx']... | <|file_sep|>recipes/_nginx.rb.diff
original:
service 'nginx' do
action [:enable, :start]
supports :restart => true, :start => true, :stop => true, :reload => true
end
updated:
<|file_sep|>original/recipes/_nginx.rb
include_recipe 'oc-graphite::_uwsgi'
service 'nginx' do
action [:enable, :start]
supports :res... | 765a9399a7716e7b85e3c6f9a343bb602044f9b3 | recipes/_nginx.rb | recipes/_nginx.rb | Ruby |
<|file_sep|>original/install-manpages.sh
<|file_sep|>current/install-manpages.sh
<|file_sep|>updated/install-manpages.sh | #!/bin/sh -e
[ -z "$PREFIX" ] && PREFIX="/usr/local"
[ -z "$MANDIR" ] && MANDIR="$PREFIX/share/man"
install -d "$DESTDIR/$MANDIR/man1"
for manpage in man/*; do
install "$manpage" "$DESTDIR/$MANDIR/man1/`basename $manpage`"
done | <|file_sep|>original/install-manpages.sh
<|file_sep|>current/install-manpages.sh
<|file_sep|>updated/install-manpages.sh
#!/bin/sh -e
[ -z "$PREFIX" ] && PREFIX="/usr/local"
[ -z "$MANDIR" ] && MANDIR="$PREFIX/share/man"
install -d "$DESTDIR/$MANDIR/man1"
for manpage in man/*; do
install "$manpage" "$DESTDIR/$M... | 2dc7414413bd2a17e7bb65a0cb1ba1ae8bf91dc9 | install-manpages.sh | install-manpages.sh | Shell |
<|file_sep|>original/tests/test_server.py
from unittest.mock import ANY
from queue_functions import do_work
from server import handle_post
from uploaders.s3 import get_url
from uploaders.s3 import upload
def test_post():
q = Mock()
filename = 'afakefilename'
files = {'file': [{'body': b'a-fake-file-body'... | from unittest.mock import ANY
from queue_functions import do_work
from server import handle_post
from uploaders.s3 import get_url
from uploaders.s3 import upload
def test_post():
q = Mock()
filename = 'afakefilename'
files = {'file': [{'body': b'a-fake-file-body', 'filename': filename}]}
hash_object... | <|file_sep|>original/tests/test_server.py
from unittest.mock import ANY
from queue_functions import do_work
from server import handle_post
from uploaders.s3 import get_url
from uploaders.s3 import upload
def test_post():
q = Mock()
filename = 'afakefilename'
files = {'file': [{'body': b'a-fake-file-body'... | 3b7dcc4d2a19b5ac03eebae35600c25dd038fe33 | tests/test_server.py | tests/test_server.py | Python |
<|file_sep|>original/perftest.py
<|file_sep|>current/perftest.py
<|file_sep|>updated/perftest.py | """
Simple peformance tests.
"""
import sys
import time
import couchdb
def main():
print 'sys.version : %r' % (sys.version,)
print 'sys.platform : %r' % (sys.platform,)
tests = [create_doc, create_bulk_docs]
if len(sys.argv) > 1:
tests = [test for test in tests if test.__name__ in sys.argv... | <|file_sep|>original/perftest.py
<|file_sep|>current/perftest.py
<|file_sep|>updated/perftest.py
"""
Simple peformance tests.
"""
import sys
import time
import couchdb
def main():
print 'sys.version : %r' % (sys.version,)
print 'sys.platform : %r' % (sys.platform,)
tests = [create_doc, create_bulk_d... | 877406927bc4754daeab10b9bfb0f7879e8f6092 | perftest.py | perftest.py | Python |
<|file_sep|>original/tests/testMustache.php
<|file_sep|>current/tests/testMustache.php
<|file_sep|>updated/tests/testMustache.php | <?php
/*
* Mustache PHP Compiler - Test the Mustache class
*
* (c) July 2011 - Manuel Odendahl - wesen@ruinwesen.com
*/
require_once(dirname(__FILE__)."/../vendor/simpletest/autorun.php");
require_once(dirname(__FILE__)."/../Mustache.php");
function __filename($file) {
return dirname(__FILE__).'/files/'.$file;... | <|file_sep|>original/tests/testMustache.php
<|file_sep|>current/tests/testMustache.php
<|file_sep|>updated/tests/testMustache.php
<?php
/*
* Mustache PHP Compiler - Test the Mustache class
*
* (c) July 2011 - Manuel Odendahl - wesen@ruinwesen.com
*/
require_once(dirname(__FILE__)."/../vendor/simpletest/autorun.... | 266132d339ca83c84b54841ff14804a6932289ae | tests/testMustache.php | tests/testMustache.php | PHP |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- tip
gobuild_args: -tags no_pkg_config
dist: xenial
addons:
apt:
packages:
- bison
- flex
- automake
- autoconf
- libtool
- make
<|file_sep|>current/.travis.yml
language: g... | language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- tip
gobuild_args: -tags no_pkg_config
dist: xenial
addons:
apt:
packages:
- bison
- flex
- automake
- autoconf
- libtool
- make
- gcc | <|file_sep|>original/.travis.yml
language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- tip
gobuild_args: -tags no_pkg_config
dist: xenial
addons:
apt:
packages:
- bison
- flex
- automake
- autoconf
- libtool
- make
<|file_sep|>current/.travis.yml
language: g... | ce52fb9bf92529e068f200314fd6cbbbb251c7c2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/templates/ubuntu-14.04-server-amd64/vbox.sh
# Without libdbus virtualbox would not start automatically after compile
apt-get -y install --no-install-recommends libdbus-1-3
# Remove existing VirtualBox guest additions
/etc/init.d/virtualbox-ose-guest-utils stop
rmmod vboxguest
aptitude -y purge vir... | apt-get -y install --no-install-recommends libdbus-1-3
# Remove existing VirtualBox guest additions
/etc/init.d/virtualbox-ose-guest-utils stop
rmmod vboxguest
aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils
aptitude -y install dkms
# Install the VirtualBox guest additi... | <|file_sep|>original/templates/ubuntu-14.04-server-amd64/vbox.sh
# Without libdbus virtualbox would not start automatically after compile
apt-get -y install --no-install-recommends libdbus-1-3
# Remove existing VirtualBox guest additions
/etc/init.d/virtualbox-ose-guest-utils stop
rmmod vboxguest
aptitude -y purge vir... | 3c0deaa545084ad95c0ce614b6ab01bfda2dcb0d | templates/ubuntu-14.04-server-amd64/vbox.sh | templates/ubuntu-14.04-server-amd64/vbox.sh | Shell |
<|file_sep|>original/src/OpenConext/EngineBlock/CompatibilityBundle/Bridge/MailSenderInterface.php
<?php
namespace OpenConext\EngineBlock\CompatibilityBundle\Bridge;
interface MailSenderInterface
{
/**
* @param MailMessage $message
* @return void
* @throws \Zend_Mail_Exception
*/
public fu... | <?php
namespace OpenConext\EngineBlock\CompatibilityBundle\Bridge;
interface MailSenderInterface
{
/**
* @param MailMessage $message
* @return void
*/
public function send(MailMessage $message);
} | <|file_sep|>original/src/OpenConext/EngineBlock/CompatibilityBundle/Bridge/MailSenderInterface.php
<?php
namespace OpenConext\EngineBlock\CompatibilityBundle\Bridge;
interface MailSenderInterface
{
/**
* @param MailMessage $message
* @return void
* @throws \Zend_Mail_Exception
*/
public fu... | a2532cd8abb5adccf29b5136c4ba23ecf46d3b36 | src/OpenConext/EngineBlock/CompatibilityBundle/Bridge/MailSenderInterface.php | src/OpenConext/EngineBlock/CompatibilityBundle/Bridge/MailSenderInterface.php | PHP |
<|file_sep|>original/package.json
"type": "git",
"url": "git://github.com/glaubinix/changelog-builder.git"
},
"license": "MIT",
"author": {
"name": "Stephan Vock",
"email": "stephan.vock@gmail.com"
},
"keywords": [
"git",
"svn",
"changelog"
],
"dependencies": {
"jira": "git... | "type": "git",
"url": "git://github.com/glaubinix/changelog-builder.git"
},
"license": "MIT",
"author": {
"name": "Stephan Vock",
"email": "stephan.vock@gmail.com"
},
"keywords": [
"git",
"svn",
"changelog"
],
"dependencies": {
"jira": "^0.10.0"
},
"devDependencies": {
... | <|file_sep|>original/package.json
"type": "git",
"url": "git://github.com/glaubinix/changelog-builder.git"
},
"license": "MIT",
"author": {
"name": "Stephan Vock",
"email": "stephan.vock@gmail.com"
},
"keywords": [
"git",
"svn",
"changelog"
],
"dependencies": {
"jira": "git... | b6462822ad53c586fd737e016fc92b9487a1182b | package.json | package.json | JSON |
<|file_sep|>original/composer.json
"homepage": "http://mickael-vieira.com"
}
],
"require": {
"php": ">=7.0",
"psr/link": "^1.0"
},
"require-dev": {
"phpspec/phpspec": "^3.0",
"squizlabs/php_codesniffer": "^3.0",
"henrikbjorn/phpspec-code-covera... | "homepage": "http://mickael-vieira.com"
}
],
"require": {
"php": ">=7.0",
"psr/link": "^1.0"
},
"require-dev": {
"phpspec/phpspec": "^3.0",
"squizlabs/php_codesniffer": "^3.0",
"satooshi/php-coveralls": "^1.0",
"leanphp/phpspec-code-cov... | <|file_sep|>original/composer.json
"homepage": "http://mickael-vieira.com"
}
],
"require": {
"php": ">=7.0",
"psr/link": "^1.0"
},
"require-dev": {
"phpspec/phpspec": "^3.0",
"squizlabs/php_codesniffer": "^3.0",
"henrikbjorn/phpspec-code-covera... | 05b3d4913f7f95bf2d0a970a8a99d2656b3e2ea7 | composer.json | composer.json | JSON |
<|file_sep|>lib/learn_web/client/user/me.rb.diff
original:
exit
updated:
exit 1
<|file_sep|>lib/learn_web/client/user/me.rb.diff
original:
exit
updated:
exit 1
<|file_sep|>original/lib/learn_web/client/user/me.rb
populate_attributes!
elsif si... | populate_attributes!
elsif silent_output == false
case response.status
when 401
puts "It seems your OAuth token is incorrect. Please re-run config with: learn reset"
exit 1
when 500
puts "Something went wrong. Please try... | <|file_sep|>lib/learn_web/client/user/me.rb.diff
original:
exit
updated:
exit 1
<|file_sep|>lib/learn_web/client/user/me.rb.diff
original:
exit
updated:
exit 1
<|file_sep|>original/lib/learn_web/client/user/me.rb
populate_attributes!
elsif si... | d0ad83967a024eb655b048d2a5cd48db1d54469a | lib/learn_web/client/user/me.rb | lib/learn_web/client/user/me.rb | Ruby |
<|file_sep|>data/building-hours/3-2-print-center.yaml.diff
original:
closedForChapelTime: true
updated:
# closedForChapelTime: true
<|file_sep|>original/data/building-hours/3-2-print-center.yaml
name: Print Center
image: print
category: Mail and Packages
schedule:
- title: Hours
closedForChapelTime: true... | name: Print Center
image: print
category: Mail and Packages
schedule:
- title: Hours
# closedForChapelTime: true
hours:
# - {days: [Mo, Tu, We, Th, Fr], from: '8:00am', to: '5:00pm'}
- {days: [Mo, Tu, We, Th], from: '8:00am', to: '3:00pm'}
- {days: [Fr], from: '8:00am', to: '12:00pm'}
brea... | <|file_sep|>data/building-hours/3-2-print-center.yaml.diff
original:
closedForChapelTime: true
updated:
# closedForChapelTime: true
<|file_sep|>original/data/building-hours/3-2-print-center.yaml
name: Print Center
image: print
category: Mail and Packages
schedule:
- title: Hours
closedForChapelTime: true... | 57c09ab37b8adcee99e375931404311acf0de878 | data/building-hours/3-2-print-center.yaml | data/building-hours/3-2-print-center.yaml | YAML |
<|file_sep|>original/generators/rspec/rspec_generator.rb
def initialize(runtime_args, runtime_options = {})
Dir.mkdir('lib/tasks') unless File.directory?('lib/tasks')
super
end
def manifest
record do |m|
script_options = { :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? n... | def initialize(runtime_args, runtime_options = {})
Dir.mkdir('lib/tasks') unless File.directory?('lib/tasks')
super
end
def manifest
record do |m|
script_options = { :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? nil : options[:shebang] }
m.file 'rspec.rake',... | <|file_sep|>original/generators/rspec/rspec_generator.rb
def initialize(runtime_args, runtime_options = {})
Dir.mkdir('lib/tasks') unless File.directory?('lib/tasks')
super
end
def manifest
record do |m|
script_options = { :chmod => 0755, :shebang => options[:shebang] == DEFAULT_SHEBANG ? n... | 469315829dce46c37c337b260d67ca581189763f | generators/rspec/rspec_generator.rb | generators/rspec/rspec_generator.rb | Ruby |
<|file_sep|>libs/utils.py.diff
original:
#get the cache key for storage
updated:
<|file_sep|>libs/utils.py.diff
original:
updated:
"""Get the cache key for storage"""
<|file_sep|>libs/utils.py.diff
original:
#decorator for caching functions
updated:
<|file_sep|>libs/utils.py.diff
original:
updated:
"""Decor... | if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
def cache_for(time):
"""Decorator for caching functions"""
def decorator(fn):
def wrapper(*args, **kwargs):
... | <|file_sep|>libs/utils.py.diff
original:
#get the cache key for storage
updated:
<|file_sep|>libs/utils.py.diff
original:
updated:
"""Get the cache key for storage"""
<|file_sep|>libs/utils.py.diff
original:
#decorator for caching functions
updated:
<|file_sep|>libs/utils.py.diff
original:
updated:
"""Decor... | 709b9e57d8ea664715fd9bb89729f99324c3e0c2 | libs/utils.py | libs/utils.py | Python |
<|file_sep|>original/.travis.yml
addons:
firefox: latest
google-chrome: latest
install:
- npm install
- bower install
before_script:
- gulp lint version:check
- polymer lint --rules polymer-2 --input ./src/*.html ./theme/*.html
- xvfb-run -s '-screen 0 1024x768x24' wct
script:
- if [[ "$TRAVIS_EVENT... |
addons:
firefox: latest
google-chrome: latest
install:
- npm install
- bower install
before_script:
- gulp lint version:check
- polymer lint --rules polymer-2 --input ./src/*.html ./theme/**/*.html
- xvfb-run -s '-screen 0 1024x768x24' wct
script:
- if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$... | <|file_sep|>original/.travis.yml
addons:
firefox: latest
google-chrome: latest
install:
- npm install
- bower install
before_script:
- gulp lint version:check
- polymer lint --rules polymer-2 --input ./src/*.html ./theme/*.html
- xvfb-run -s '-screen 0 1024x768x24' wct
script:
- if [[ "$TRAVIS_EVENT... | cb748883f94154aac65822eca34966a8b4ca83e8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/remove_symlinks.sh
<|file_sep|>current/remove_symlinks.sh
<|file_sep|>updated/remove_symlinks.sh | #!/bin/bash
# -polka-
# Get the current directory
DIR="$( cd "$(dirname "$0" )" && pwd )"
# Link dot files to $HOME
for dotfile in $(find $DIR -maxdepth 1 -type f -name ".*"); do
if [[ $(uname) == 'Linux' && "$(basename $dotfile)" == '.tmux.linux.conf' ]]; then
rm -v "${HOME}/.tmux.conf"
cp -v $dotfile "${H... | <|file_sep|>original/remove_symlinks.sh
<|file_sep|>current/remove_symlinks.sh
<|file_sep|>updated/remove_symlinks.sh
#!/bin/bash
# -polka-
# Get the current directory
DIR="$( cd "$(dirname "$0" )" && pwd )"
# Link dot files to $HOME
for dotfile in $(find $DIR -maxdepth 1 -type f -name ".*"); do
if [[ $(uname) ==... | 8b15d01bb2c722bded40046c57fe052993d78ef4 | remove_symlinks.sh | remove_symlinks.sh | Shell |
<|file_sep|>original/DevMachineInstall/devApps.ps1
# Dev apps to install
# Visual studio stuff
cinstm VisualStudio2013Ultimate
cinstm VisualStudio2012Ultimate
# Visual studio add-ins
cinstm xUnit.vs2012
cinstm WebEssentials2012
cinstm resharper -Version 7.1.3000.2254
cinstm typescript
cinstm typescript.vs
# database... | # Dev apps to install
# Visual studio stuff
cinstm VisualStudio2013Ultimate
cinstm VisualStudio2012Ultimate
# Visual studio add-ins
cinstm xUnit.vs2012
cinstm WebEssentials2012
cinstm resharper -Version 7.1.3000.2254 # Use only resharper if you want the latests. This is what I have a license for
cinstm typescript
cin... | <|file_sep|>original/DevMachineInstall/devApps.ps1
# Dev apps to install
# Visual studio stuff
cinstm VisualStudio2013Ultimate
cinstm VisualStudio2012Ultimate
# Visual studio add-ins
cinstm xUnit.vs2012
cinstm WebEssentials2012
cinstm resharper -Version 7.1.3000.2254
cinstm typescript
cinstm typescript.vs
# database... | 2fd17380c9cac9b5fd69af3fddf1b01807cdbd0e | DevMachineInstall/devApps.ps1 | DevMachineInstall/devApps.ps1 | PowerShell |
<|file_sep|>original/tests/units/FinderTest.php
<|file_sep|>current/tests/units/FinderTest.php
<|file_sep|>updated/tests/units/FinderTest.php | <?php
use Ktp\Finder;
use Ktp\Contracts\HttpClient as HttpClientContract;
class FinderTest extends PHPUnit_Framework_TestCase {
/** @test */
function finder_has_http_client()
{
$finder = new Finder;
$this->assertInstanceOf(HttpClientContract::class, $finder->httpClient());
}
/** ... | <|file_sep|>original/tests/units/FinderTest.php
<|file_sep|>current/tests/units/FinderTest.php
<|file_sep|>updated/tests/units/FinderTest.php
<?php
use Ktp\Finder;
use Ktp\Contracts\HttpClient as HttpClientContract;
class FinderTest extends PHPUnit_Framework_TestCase {
/** @test */
function finder_has_http_... | 96cb061f49e469957c440a2dae5a01bf6bda39fd | tests/units/FinderTest.php | tests/units/FinderTest.php | PHP |
<|file_sep|>original/README.md
#### TaskRunner / Building
* Grunt
* Webpack
* Babel
#### Testing
* Mocha
* Sinon
* Chai
#### Backend + DB
* Node.js
* Express
* Mongoose
* MongoDB
#### Map / Geolocation
* Leaflet.js
#### Graphic Icon
Front Lawn House by Alfredo Hernandez from the Noun Project
<|file_sep|>current/REA... | #### TaskRunner / Building
* Grunt
* Webpack
* Babel
#### Testing
* Mocha
* Sinon
* Chai
#### Backend + DB
* Node.js
* Express
* Mongoose
* MongoDB
#### Map / Geolocation
* Leaflet.js
#### Graphic Icon
* House by Vishwas Shetty from the Noun Project | <|file_sep|>original/README.md
#### TaskRunner / Building
* Grunt
* Webpack
* Babel
#### Testing
* Mocha
* Sinon
* Chai
#### Backend + DB
* Node.js
* Express
* Mongoose
* MongoDB
#### Map / Geolocation
* Leaflet.js
#### Graphic Icon
Front Lawn House by Alfredo Hernandez from the Noun Project
<|file_sep|>current/REA... | 89858de26d73818bf48ff9915087cdea34a3fd21 | README.md | README.md | Markdown |
<|file_sep|>original/PATREON.md
Patreon Support
---------------
The Espruino Web IDE (and Espruino in general) is supported by generous
donations from many supporters on <a href="https://www.patreon.com/espruino" target="_blank">Patreon</a>
Supporters that pay $10/month or more to help support Espruino are:
Matt Ec... | Patreon Support
---------------
The Espruino Web IDE (and Espruino in general) is supported by generous
donations from many supporters on <a href="https://www.patreon.com/espruino" target="_blank">Patreon</a>
Supporters that pay $10/month or more to help support Espruino are:
Matt Eckman, Michael Leibman, Orry S, E... | <|file_sep|>original/PATREON.md
Patreon Support
---------------
The Espruino Web IDE (and Espruino in general) is supported by generous
donations from many supporters on <a href="https://www.patreon.com/espruino" target="_blank">Patreon</a>
Supporters that pay $10/month or more to help support Espruino are:
Matt Ec... | 33af531a529df7382a32aeb79d1057808239a870 | PATREON.md | PATREON.md | Markdown |
<|file_sep|>app/views/questions/_votes.html.erb.diff
original:
<%= form_for question, url: questions_upvote_path, method: :post do |f| %>
updated:
<%= form_for question, url: questions_upvote_path, method: :post, html: {class: "upvote_question"} do |f| %>
<|file_sep|>original/app/views/questions/_votes.html.erb
<di... | <div class="vote">
<%= form_for question, url: questions_upvote_path, method: :post, html: {class: "upvote_question"} do |f| %>
<input type="image" src="<%= image_path("upArrow.png") %>" alt="submit"/>
<input type="hidden" name="id" value="<%= question.id %>"/>
<% end %>
<%= form_for question, url: questi... | <|file_sep|>app/views/questions/_votes.html.erb.diff
original:
<%= form_for question, url: questions_upvote_path, method: :post do |f| %>
updated:
<%= form_for question, url: questions_upvote_path, method: :post, html: {class: "upvote_question"} do |f| %>
<|file_sep|>original/app/views/questions/_votes.html.erb
<di... | 2edd043877ba222f7ad0761761a9379a660378cd | app/views/questions/_votes.html.erb | app/views/questions/_votes.html.erb | HTML+ERB |
<|file_sep|>README.md.diff
original:
updated:
[](https://travis-ci.org/praekeltfoundation/debian-wheel-mirror)
[](https://travis-ci.org/praekeltfoundation/debian-wheel-mirror)
[](https://requ... | <|file_sep|>README.md.diff
original:
updated:
[](https://travis-ci.org/praekeltfoundation/debian-wheel-mirror)
[
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'benchmark/perf/version'
Gem::Specification.new do |spec|
spec.name = "benchmark-... | require 'benchmark/perf/version'
Gem::Specification.new do |spec|
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.descripti... | <|file_sep|>benchmark-perf.gemspec.diff
original:
# coding: utf-8
updated:
<|file_sep|>original/benchmark-perf.gemspec
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'benchmark/perf/version'
Gem::Specification.new do |spec|
spec.name = "benchmark-... | d2f12484c620c7056d028fa552ee56a03233bf71 | benchmark-perf.gemspec | benchmark-perf.gemspec | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- "npm install -g markdownlint-cli"
<|file_sep|>original/.travis.yml
cache: "pip"
before_script:
# Run linters
- "flake8 ."
- "prospector --strictness veryhigh"
- "pylint src/vws"
- "mypy src tests"
# Make sure that imports are sorted as expec... | - "npm install -g markdownlint-cli"
cache: "pip"
before_script:
# Run linters
- "flake8 ."
- "prospector --strictness veryhigh"
- "pylint src/vws"
- "mypy src tests"
- "markdownlint README.md"
# Make sure that imports are sorted as expected.
- "isort --recursive --check-only"
# C... | <|file_sep|>.travis.yml.diff
original:
updated:
- "npm install -g markdownlint-cli"
<|file_sep|>original/.travis.yml
cache: "pip"
before_script:
# Run linters
- "flake8 ."
- "prospector --strictness veryhigh"
- "pylint src/vws"
- "mypy src tests"
# Make sure that imports are sorted as expec... | 93e3ecf683d789df795c9bd1d7186268916ceeb0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/mw/mwc-probability-transition.yaml.diff
original:
hash: 42d82dd5cb90933637d7e247e88f0935fc75f8ea3e968e6abd1cec469ba9be8e
updated:
hash: abeae477b2f800f78cf4f4f9fc86b103472cdde5b2ef4761abfecbf2076b0e08
<|file_sep|>packages/mw/mwc-probability-transition.yaml.diff
original:
updated:
- '0.3.0.1'
<|fil... | mtl: -any
transformers: -any
mwc-probability: -any
primitive: -any
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.3.0.0'
- '0.3.0.1'
author: Marco Zocca
latest: '0.3.0.1'
description-type: markdown
description: ! '# mwc-probability-transition
[
{
for (;;) {
if (!str_catb(out,
in->io.buffer+in->io.bufstart,
in->io.buflen-in->io.bufstart))
return 0;
in->io.... | #include <iobuf/iobuf.h>
#include <str/str.h>
/** Read the remainder of the \c ibuf into the \c str. */
int ibuf_readall(ibuf* in, str* out)
{
if (ibuf_eof(in)) return 1;
if (ibuf_error(in)) return 0;
for (;;) {
if (!str_catb(out,
in->io.buffer+in->io.bufstart,
in->io.buflen-in->io.bufstart))
r... | <|file_sep|>original/iobuf/ibuf_readall.c
#include <iobuf/iobuf.h>
#include <str/str.h>
/** Read the remainder of the \c ibuf into the \c str. */
int ibuf_readall(ibuf* in, str* out)
{
for (;;) {
if (!str_catb(out,
in->io.buffer+in->io.bufstart,
in->io.buflen-in->io.bufstart))
return 0;
in->io.... | 17530c3d7eceb106a74066446404117158e8aa93 | iobuf/ibuf_readall.c | iobuf/ibuf_readall.c | C |
<|file_sep|>original/.travis.yml
sudo: true
language: cpp
os:
- osx
compiler:
- gcc
cache:
directories:
- "$HOME/Library/Caches/Homebrew"
script:
- curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
- chmod u+x macpython-down... | sudo: true
language: cpp
os:
- osx
compiler:
- gcc
cache:
directories:
- "$HOME/Library/Caches/Homebrew"
script:
- curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
- chmod u+x macpython-download-cache-and-build-module-wheel... | <|file_sep|>original/.travis.yml
sudo: true
language: cpp
os:
- osx
compiler:
- gcc
cache:
directories:
- "$HOME/Library/Caches/Homebrew"
script:
- curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
- chmod u+x macpython-down... | 4757fb4442dfb1b1b4444a281fc3b246b0952cb7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spec/models/user_spec.rb
<|file_sep|>current/spec/models/user_spec.rb
<|file_sep|>updated/spec/models/user_spec.rb | require 'rails_helper'
require 'factory_girl_rails'
describe User do
let(:user){ FactoryGirl.create(:user) }
it "has a valid FACTORY" do
expect(FactoryGirl.create(:user)).to be_valid
end
it "should have an email address" do
#when left blank, this tests for truthiness
expect(user.email).to be
en... | <|file_sep|>original/spec/models/user_spec.rb
<|file_sep|>current/spec/models/user_spec.rb
<|file_sep|>updated/spec/models/user_spec.rb
require 'rails_helper'
require 'factory_girl_rails'
describe User do
let(:user){ FactoryGirl.create(:user) }
it "has a valid FACTORY" do
expect(FactoryGirl.create(:user)).t... | a1a1830a4cee6d50d7a58b2ddf82105e9c5d255b | spec/models/user_spec.rb | spec/models/user_spec.rb | Ruby |
<|file_sep|>README.md.diff
original:
updated:
## Getting going
Here's how to give this a try. First, you'll need Postgres installed and
running. Next, run these commands:
```bash
$ git clone https://github.com/oestrich/hypermedia_rails.git
$ cd hypermedia_rails
$ bundle
$ RAILS_ENV=test bundle exec rake db:create db... |
```bash
$ git clone https://github.com/oestrich/hypermedia_rails.git
$ cd hypermedia_rails
$ bundle
$ RAILS_ENV=test bundle exec rake db:create db:migrate
$ RAILS_ENV=development bundle exec rake db:create db:migrate
$ bundle exec rake spec
```
You should see all the tests pass.
## Hypermedia client
A basic example... | <|file_sep|>README.md.diff
original:
updated:
## Getting going
Here's how to give this a try. First, you'll need Postgres installed and
running. Next, run these commands:
```bash
$ git clone https://github.com/oestrich/hypermedia_rails.git
$ cd hypermedia_rails
$ bundle
$ RAILS_ENV=test bundle exec rake db:create db... | 82ae82332ff37ffdbc17a4d1ae420a01ba4d88cc | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
{
"name": "nexylan/paybox-direct-plus",
"description": "PayBox Direct Plus API wrapper",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Sullivan SENECHAL",
"email": "soullivaneuh@gmail.com"
}
],
"require... | {
"name": "nexylan/paybox-direct",
"description": "PayBox Direct and Direct Plus API wrapper",
"keywords": ["Paybox", "Direct", "API", "Symfony"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Sullivan SENECHAL",
"email": "soullivaneuh@gmail.com"
... | <|file_sep|>original/composer.json
{
"name": "nexylan/paybox-direct-plus",
"description": "PayBox Direct Plus API wrapper",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Sullivan SENECHAL",
"email": "soullivaneuh@gmail.com"
}
],
"require... | 130cbf5603488eeea3fe6394353bad93ed1f7dd7 | composer.json | composer.json | JSON |
<|file_sep|>original/README.md
# HAProxy Documentation Converter
Made to convert the HAProxy documentation into HTML.
More than HTML, the main goal is to provide easy navigation.
## Documentations
A bot periodically fetches last commits for HAProxy 1.4 and 1.5 to produce up-to-date documentations.
Converted docume... | # HAProxy Documentation Converter
Made to convert the HAProxy documentation into HTML.
More than HTML, the main goal is to provide easy navigation.
## Documentations
A bot periodically fetches last commits for HAProxy 1.4 and 1.5 to produce up-to-date documentations.
Converted documentations are then stored online... | <|file_sep|>original/README.md
# HAProxy Documentation Converter
Made to convert the HAProxy documentation into HTML.
More than HTML, the main goal is to provide easy navigation.
## Documentations
A bot periodically fetches last commits for HAProxy 1.4 and 1.5 to produce up-to-date documentations.
Converted docume... | 584104a2b67cb2e775987a8321349b8e64341e66 | README.md | README.md | Markdown |
<|file_sep|>original/zeus/utils/revisions.py
) -> Revision:
"""
Attempt to transform a a commit-like reference into a valid revision.
"""
# try to find it from the database first
if len(ref) == 40:
revision = Revision.query.filter(
Revision.repository_id == repository.id, Revisio... | # try to find it from the database first
if len(ref) == 40:
revision = Revision.query.filter(
Revision.repository_id == repository.id, Revision.sha == ref
).first()
if revision:
return revision
if not with_vcs:
raise UnknownRevision
try:
... | <|file_sep|>original/zeus/utils/revisions.py
) -> Revision:
"""
Attempt to transform a a commit-like reference into a valid revision.
"""
# try to find it from the database first
if len(ref) == 40:
revision = Revision.query.filter(
Revision.repository_id == repository.id, Revisio... | 209fef39f72a625e154f4455eaa6754d6a85e98b | zeus/utils/revisions.py | zeus/utils/revisions.py | Python |
<|file_sep|>original/package.json
{
"name": "time-logger",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tabalinas/time-logger.git"
},
"author": ... | "description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tabalinas/time-logger.git"
},
"author": "Artem Tabalin <tabalinas@gmail.com> (http://tabalin.net/)",
"license": "MIT",
... | <|file_sep|>original/package.json
{
"name": "time-logger",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tabalinas/time-logger.git"
},
"author": ... | 3a99f1c29284f0dd05db477080a117fc9699ce84 | package.json | package.json | JSON |
<|file_sep|>original/Sample-App/scripts/tsconfig.json
<|file_sep|>current/Sample-App/scripts/tsconfig.json
<|file_sep|>updated/Sample-App/scripts/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"out": "www/scripts/appBundle.js",
"sourceMap": true,
"removeComments": true,
"sourceRoot": "/"
}
} | <|file_sep|>original/Sample-App/scripts/tsconfig.json
<|file_sep|>current/Sample-App/scripts/tsconfig.json
<|file_sep|>updated/Sample-App/scripts/tsconfig.json
{
"compilerOptions": {
"target": "es5",
"out": "www/scripts/appBundle.js",
"sourceMap": true,
"removeComments": true,
... | e612feecb82179877ce5abb959e42498eb138806 | Sample-App/scripts/tsconfig.json | Sample-App/scripts/tsconfig.json | JSON |
<|file_sep|>docs/4.0/extend/icons.md.diff
original:
updated:
<|file_sep|>docs/4.0/extend/icons.md.diff
original:
- [Entypo](http://www.entypo.com/)
updated:
<|file_sep|>original/docs/4.0/extend/icons.md
---
Bootstrap doesn't include an icon library by default, but we have a handful of recommendations for you to cho... |
Bootstrap doesn't include an icon library by default, but we have a handful of recommendations for you to choose from. While most icon sets include multiple file formats, we prefer SVG implementations for their improved accessibility and vector support.
## Preferred
We've tested and used these icon sets ourselves.
... | <|file_sep|>docs/4.0/extend/icons.md.diff
original:
updated:
<|file_sep|>docs/4.0/extend/icons.md.diff
original:
- [Entypo](http://www.entypo.com/)
updated:
<|file_sep|>original/docs/4.0/extend/icons.md
---
Bootstrap doesn't include an icon library by default, but we have a handful of recommendations for you to cho... | dd041e7bd5760c74b23a9ca1e9a76dc3de1d7e24 | docs/4.0/extend/icons.md | docs/4.0/extend/icons.md | Markdown |
<|file_sep|>original/src/CMakeLists.txt
#
# Building libreset
#
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
libreset/ll.c
)
#
# Libreset will be a shared object
#
add_librar... |
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
libreset/ll.c
)
#
# General compile options
#
add_compile_options(-Wall -Wextra -Wunused -Wformat -Wno-unused-parameter -pedantic)... | <|file_sep|>original/src/CMakeLists.txt
#
# Building libreset
#
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
libreset/ll.c
)
#
# Libreset will be a shared object
#
add_librar... | 2ddd0aa55f44a25dfe08bc3dc6b01e9d8514520c | src/CMakeLists.txt | src/CMakeLists.txt | Text |
<|file_sep|>original/coverage.bash
#!/bin/bash
base_package=github.com/mitsuse/bullet
base_path=${GOPATH}/src/${base_package}
package_list=(
${base_package}
)
if [ ! -d ${base_path}/coverprofile ]
then
mkdir ${base_path}/coverprofile
else
rm ${base_path}/coverprofile/*.coverprofile
fi
for package in ${... | #!/bin/bash
base_package=github.com/mitsuse/bullet
base_path=${GOPATH}/src/${base_package}
package_list=(
${base_package}
${base_package}/pushbullet
${base_package}/pushbullet/pushes
)
if [ ! -d ${base_path}/coverprofile ]
then
mkdir ${base_path}/coverprofile
else
rm ${base_path}/coverprofile/*.... | <|file_sep|>original/coverage.bash
#!/bin/bash
base_package=github.com/mitsuse/bullet
base_path=${GOPATH}/src/${base_package}
package_list=(
${base_package}
)
if [ ! -d ${base_path}/coverprofile ]
then
mkdir ${base_path}/coverprofile
else
rm ${base_path}/coverprofile/*.coverprofile
fi
for package in ${... | 8ae118a96e9c5b009e92bb694dc914108636edf5 | coverage.bash | coverage.bash | Shell |
<|file_sep|>resources/views/admin/modalities_index.blade.php.diff
original:
updated:
<p>Click a modality to edit</p>
<|file_sep|>resources/views/admin/modalities_index.blade.php.diff
original:
<td>{{ $modality->modality }}</td>
<form action="/admin/modalities/{{ $modality->id }}/edit" method="POST">
<button ... | <tr>
@foreach ($chunk as $modality)
<td>{{ $modality->id }}</td>
<td><a href="/admin/modalities/{{ $modality->id }}/edit">{{ $modality->modality }}</a></td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
<h2>Add a Modality</h2>
<!-- Add a new modality -->
<form class="form-inline" action="/admin/modali... | <|file_sep|>resources/views/admin/modalities_index.blade.php.diff
original:
updated:
<p>Click a modality to edit</p>
<|file_sep|>resources/views/admin/modalities_index.blade.php.diff
original:
<td>{{ $modality->modality }}</td>
<form action="/admin/modalities/{{ $modality->id }}/edit" method="POST">
<button ... | 664be3667730e7e723fb4d50844da530640e66a3 | resources/views/admin/modalities_index.blade.php | resources/views/admin/modalities_index.blade.php | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.