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/src/NHibernate/Engine/IMapping.cs
using System;
using NHibernate.Type;
namespace NHibernate.Engine {
/// <summary>
/// Defines operations common to "compiled" mappings (ie. <c>SessionFactory</c>) and
/// "uncompiled" mappings (ie <c>Configuration</c> that are used by implementors of <c>IType</c... | using System;
using NHibernate.Type;
namespace NHibernate.Engine {
/// <summary>
/// Defines operations common to "compiled" mappings (ie. <c>SessionFactory</c>) and
/// "uncompiled" mappings (ie <c>Configuration</c> that are used by implementors of <c>IType</c>
/// </summary>
public interface IMapping {
IType ... | <|file_sep|>original/src/NHibernate/Engine/IMapping.cs
using System;
using NHibernate.Type;
namespace NHibernate.Engine {
/// <summary>
/// Defines operations common to "compiled" mappings (ie. <c>SessionFactory</c>) and
/// "uncompiled" mappings (ie <c>Configuration</c> that are used by implementors of <c>IType</c... | cadda3f78610f6258e625b89d48bad4544439211 | src/NHibernate/Engine/IMapping.cs | src/NHibernate/Engine/IMapping.cs | C# |
<|file_sep|>original/pants.travis-ci.ini
# Overrides for TravisCI runs.
[DEFAULT]
# Turn off all nailgun use.
use_nailgun: False
<|file_sep|>current/pants.travis-ci.ini
# Overrides for TravisCI runs.
[DEFAULT]
# Turn off all nailgun use.
use_nailgun: False
<|file_sep|>updated/pants.travis-ci.ini | # Overrides for TravisCI runs.
[DEFAULT]
# Turn off all nailgun use.
use_nailgun: False
[compile.zinc]
# In the absence of nailgun, zinc has concurrency issues with bootstrapping.
worker_count: 1 | <|file_sep|>original/pants.travis-ci.ini
# Overrides for TravisCI runs.
[DEFAULT]
# Turn off all nailgun use.
use_nailgun: False
<|file_sep|>current/pants.travis-ci.ini
# Overrides for TravisCI runs.
[DEFAULT]
# Turn off all nailgun use.
use_nailgun: False
<|file_sep|>updated/pants.travis-ci.ini
# Overrides for Travi... | c904250f80caa971e699ce15aacb93afb8709783 | pants.travis-ci.ini | pants.travis-ci.ini | INI |
<|file_sep|>Typhoon.podspec.diff
original:
updated:
spec.ios.deployment_target = '5.0'
spec.osx.deployment_target = '10.7'
<|file_sep|>original/Typhoon.podspec
Pod::Spec.new do |spec|
spec.name = 'Typhoon'
spec.version = '1.6.5'
spec.license = 'Apache2.0'
spec.summary =... | Pod::Spec.new do |spec|
spec.name = 'Typhoon'
spec.version = '1.6.5'
spec.license = 'Apache2.0'
spec.summary = 'A dependency injection container for Objective-C. Light-weight, yet flexible and full-featured.'
spec.homepage = 'http://www.typhoonframework.org'
spec.autho... | <|file_sep|>Typhoon.podspec.diff
original:
updated:
spec.ios.deployment_target = '5.0'
spec.osx.deployment_target = '10.7'
<|file_sep|>original/Typhoon.podspec
Pod::Spec.new do |spec|
spec.name = 'Typhoon'
spec.version = '1.6.5'
spec.license = 'Apache2.0'
spec.summary =... | 03c1e013ee0bf287a4379f7f356d07f1f624af1c | Typhoon.podspec | Typhoon.podspec | Ruby |
<|file_sep|>original/scripts/steam-info.coffee
<|file_sep|>current/scripts/steam-info.coffee
<|file_sep|>updated/scripts/steam-info.coffee | # Description
# Grab the title of a youtube video
#
# Dependencies:
# cheerio
# request
#
# Configuration:
# None
#
# Commands:
# None
#
# Notes:
# steam also sucks (but mostly I'm lazy)
#
# Author:
# ~~justinwoo~~ sshirokov without copy and paste at all!
url = require 'url'
path = require 'path' | <|file_sep|>original/scripts/steam-info.coffee
<|file_sep|>current/scripts/steam-info.coffee
<|file_sep|>updated/scripts/steam-info.coffee
# Description
# Grab the title of a youtube video
#
# Dependencies:
# cheerio
# request
#
# Configuration:
# None
#
# Commands:
# None
#
# Notes:
# steam also sucks (but mos... | 67069742fdd790a4d23cc4b16121b62248ada26c | scripts/steam-info.coffee | scripts/steam-info.coffee | CoffeeScript |
<|file_sep|>original/config/locales/en.yml
# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
application:
title_html: "BobCat"
<|file_sep|>current/config/locales/en.yml
# Sa... | # Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
application:
title_html: BobCat | <|file_sep|>original/config/locales/en.yml
# Sample localization file for English. Add more files in this directory for other locales.
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
application:
title_html: "BobCat"
<|file_sep|>current/config/locales/en.yml
# Sa... | 8071b8c0d97aeebcce818290f8db2a9c129a208f | config/locales/en.yml | config/locales/en.yml | YAML |
<|file_sep|>original/.travis.yml
sudo: no
language: python
python: "3.5"
env:
global:
- PIP_DOWNLOAD_CACHE="pip_cache"
- SECRET_KEY="foo"
cache:
directories:
- pip_cache
install: pip install -r requirements-dev.txt
before_script: python manage.py collectstatic --noinput -c
script: python manage.py ... | sudo: no
language: python
python: "3.5"
env:
global:
- PIP_DOWNLOAD_CACHE="pip_cache"
- SECRET_KEY="foo"
cache:
directories:
- pip_cache
install: pip install -r requirements-dev.txt
before_script: python manage.py collectstatic --noinput
script: python manage.py test | <|file_sep|>original/.travis.yml
sudo: no
language: python
python: "3.5"
env:
global:
- PIP_DOWNLOAD_CACHE="pip_cache"
- SECRET_KEY="foo"
cache:
directories:
- pip_cache
install: pip install -r requirements-dev.txt
before_script: python manage.py collectstatic --noinput -c
script: python manage.py ... | 68e14ba4719ab11afbc9077f917ec9644342c653 | .travis.yml | .travis.yml | YAML |
<|file_sep|>aliases.sh.diff
original:
# Calendar in a normal, non-stupid format. Weeks start on Monday!
alias cal='ncal -bM'
updated:
<|file_sep|>original/aliases.sh
# grep
alias grep='grep --color=auto --exclude-dir=.git --exclude=tags --exclude=*.swp'
alias cgrep='grep --color=always --exclude-dir=.git --exclude=t... | alias l='ls -CF'
alias l1='ls -1'
alias la1='ls -A1'
# grep
alias grep='grep --color=auto --exclude-dir=.git --exclude=tags --exclude=*.swp'
alias cgrep='grep --color=always --exclude-dir=.git --exclude=tags --exclude=*.swp'
# Get colour for diffstat
alias diffstat='diffstat -C'
# Syntax highlighting for bashdb
alia... | <|file_sep|>aliases.sh.diff
original:
# Calendar in a normal, non-stupid format. Weeks start on Monday!
alias cal='ncal -bM'
updated:
<|file_sep|>original/aliases.sh
# grep
alias grep='grep --color=auto --exclude-dir=.git --exclude=tags --exclude=*.swp'
alias cgrep='grep --color=always --exclude-dir=.git --exclude=t... | 5955c7462e4c26e1c9b9e0adfb6bdea6c84a2e84 | aliases.sh | aliases.sh | Shell |
<|file_sep|>original/test/CodeGen/PowerPC/pr26193.ll
<|file_sep|>current/test/CodeGen/PowerPC/pr26193.ll
<|file_sep|>updated/test/CodeGen/PowerPC/pr26193.ll | ; RUN: llc -mcpu=pwr7 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
define <8 x i16> @test(<4 x i32> %a) {
entry:
%0 = tail call <8 x i16> @llvm.ppc.altivec.vpkswss(<4 x i32> %a, <4 x i32> %a)
ret <8 x i16> %0
}
; CHECK: vpkswss 2,
declare <8 x i16> @llvm.ppc.altivec.vpkswss(<4 x i32>, <4 x i32>) | <|file_sep|>original/test/CodeGen/PowerPC/pr26193.ll
<|file_sep|>current/test/CodeGen/PowerPC/pr26193.ll
<|file_sep|>updated/test/CodeGen/PowerPC/pr26193.ll
; RUN: llc -mcpu=pwr7 -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s
define <8 x i16> @test(<4 x i32> %a) {
entry:
%0 = tail call <8 x i16> @llvm.ppc... | 9a3ee3636c44afc901089bd125ac8cf856da506c | test/CodeGen/PowerPC/pr26193.ll | test/CodeGen/PowerPC/pr26193.ll | LLVM |
<|file_sep|>original/src/sdk/apis/business/appointment/book-a-business-for-me-request/otws-book-a-business-for-me-request-request.ts
setPlacesURL(placesURL: string) {
this._placesURL = placesURL;
}
setPlacesID(placesID: string) {
this._placesID = placesID;
}
setBusinessID(businessI... | this._placesURL = placesURL;
}
setPlacesID(placesID: string) {
this._placesID = placesID;
}
setBusinessID(businessID: number) {
this._businessID = businessID;
}
getData(): any {
let data = super.getData();
data.business_id = this._getBusinessID();
... | <|file_sep|>original/src/sdk/apis/business/appointment/book-a-business-for-me-request/otws-book-a-business-for-me-request-request.ts
setPlacesURL(placesURL: string) {
this._placesURL = placesURL;
}
setPlacesID(placesID: string) {
this._placesID = placesID;
}
setBusinessID(businessI... | e1e79c6857d57b3e6b5016c1038558775669b4fd | src/sdk/apis/business/appointment/book-a-business-for-me-request/otws-book-a-business-for-me-request-request.ts | src/sdk/apis/business/appointment/book-a-business-for-me-request/otws-book-a-business-for-me-request-request.ts | TypeScript |
<|file_sep|>original/src/util/valid-auth-type.js
/*global module */
module.exports = function validAuthType(type) {
'use strict';
var authTypes = ['AWS_IAM', 'NONE', 'CUSTOM'];
return (authTypes.indexOf(type) >= 0);
};
<|file_sep|>current/src/util/valid-auth-type.js
/*global module */
module.exports = function valid... | /*global module */
module.exports = function validAuthType(type) {
'use strict';
var authTypes = ['AWS_IAM', 'NONE', 'CUSTOM', 'COGNITO_USER_POOLS'];
return (authTypes.indexOf(type) >= 0);
}; | <|file_sep|>original/src/util/valid-auth-type.js
/*global module */
module.exports = function validAuthType(type) {
'use strict';
var authTypes = ['AWS_IAM', 'NONE', 'CUSTOM'];
return (authTypes.indexOf(type) >= 0);
};
<|file_sep|>current/src/util/valid-auth-type.js
/*global module */
module.exports = function valid... | 14382c87363ebc85f58b0da4b5689f8d0f0140bd | src/util/valid-auth-type.js | src/util/valid-auth-type.js | JavaScript |
<|file_sep|>original/Resources/views/Default/sidebar.html.twig
{% set lowestTopChild = adminmenu.lowestTopChild %}
{% set navigationChildren = lowestTopChild.navigationChildren %}
{% if lowestTopChild and navigationChildren | length > 0 %}
<aside class="sidebar">
<div class="search_wrp">
<form ... | {% set lowestTopChild = adminmenu.lowestTopChild %}
{% if lowestTopChild %}
{% set navigationChildren = lowestTopChild.navigationChildren %}
{% endif %}
{% if lowestTopChild and navigationChildren | length > 0 %}
<aside class="sidebar">
<div class="search_wrp">
<form id="treeform">
... | <|file_sep|>original/Resources/views/Default/sidebar.html.twig
{% set lowestTopChild = adminmenu.lowestTopChild %}
{% set navigationChildren = lowestTopChild.navigationChildren %}
{% if lowestTopChild and navigationChildren | length > 0 %}
<aside class="sidebar">
<div class="search_wrp">
<form ... | 7a62a6152de52682bb1a3f2bd4a379d3ccf593d1 | Resources/views/Default/sidebar.html.twig | Resources/views/Default/sidebar.html.twig | Twig |
<|file_sep|>war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html.diff
original:
盡可能使用這個 Slave
updated:
盡可能使用這個節點
<|file_sep|>war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html.diff
original:
這個模式下,Jenkins 會不受限制的使用 Slave。一旦有建置作業可以在這個 Slave 上完成,Jenkins 就會用它。
updated:
... | <dl>
<dt><b>
盡可能使用這個節點
</b></dt>
<dd>
預設值,也是最常用的設定。
這個模式下,Jenkins 會不受拘束的使用 Slave。一旦有建置作業可以在這個 Slave 上完成,Jenkins 就會用它。
</dd>
<dt><b>
只保留給限定節點的作業
</b></dt>
<dd>
這個模式下,Jenkins 只會在這部機器上建置那些明確指定只能在這裡跑的專案。
將節點保留給特定種類的作業。
例如讓 Jenkins 持續執行效能測試,您還可以同時將執行程... | <|file_sep|>war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html.diff
original:
盡可能使用這個 Slave
updated:
盡可能使用這個節點
<|file_sep|>war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html.diff
original:
這個模式下,Jenkins 會不受限制的使用 Slave。一旦有建置作業可以在這個 Slave 上完成,Jenkins 就會用它。
updated:
... | 14fc6de7a1e0c81aaf3cf08800d93a3d84044d52 | war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html | war/src/main/webapp/help/system-config/master-slave/usage_zh_TW.html | HTML |
<|file_sep|>original/{{cookiecutter.project_slug}}/.travis.yml
dist: xenial
sudo: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb
- sudo apt-get install -qq libjpeg8-dev libfreetype6-dev libwebp-dev
- sudo apt-get install -qq... | dist: xenial
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb
- sudo apt-get install -qq libjpeg8-dev libfreetype6-dev libwebp-dev
- sudo apt-get install -qq graphviz-dev python-setuptools python3-dev python-virtualenv python-pip
... | <|file_sep|>original/{{cookiecutter.project_slug}}/.travis.yml
dist: xenial
sudo: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb
- sudo apt-get install -qq libjpeg8-dev libfreetype6-dev libwebp-dev
- sudo apt-get install -qq... | 611373cac24cae480a0ad5ded780d7db078497aa | {{cookiecutter.project_slug}}/.travis.yml | {{cookiecutter.project_slug}}/.travis.yml | YAML |
<|file_sep|>original/vim/bundle/autoformat/plugin/autoformat.vim
%s/\(@\w\+\)\n\n Scenario/\1\r Scenario/e
"Remove trailing newlines
%s/\n*\%$//e
"CSS-only fixes
if expand('%:e') == 'css' || expand('%:e') == 'scss'
"Insert a space after all colons
%s/:\s*\(\w\)/: \1/e
"Insert a return charact... | %s/\(@\w\+\)\n\n Scenario/\1\r Scenario/e
"Remove trailing newlines
%s/\n*\%$//e
"CSS-only fixes
if expand('%:e') == 'css' || expand('%:e') == 'scss'
"Insert a space after all colons
%s/:\s*\(\w\)/: \1/e
"Remove space if it's a declaration like :hover
%s/: \(.*[{,]\)/:\1/e
"Insert a ... | <|file_sep|>original/vim/bundle/autoformat/plugin/autoformat.vim
%s/\(@\w\+\)\n\n Scenario/\1\r Scenario/e
"Remove trailing newlines
%s/\n*\%$//e
"CSS-only fixes
if expand('%:e') == 'css' || expand('%:e') == 'scss'
"Insert a space after all colons
%s/:\s*\(\w\)/: \1/e
"Insert a return charact... | cb145c4c8dc1c802ae14e2728faf36474b759591 | vim/bundle/autoformat/plugin/autoformat.vim | vim/bundle/autoformat/plugin/autoformat.vim | VimL |
<|file_sep|>packages/lambda/src/api/dbCreateItems/index.js.diff
original:
// failed due to the unknown SNS topic.
updated:
// setStatusPageURL always fails due to the unknown SNS topic. So ignore the error here.
// TODO: improve error handling. There may be other kinds of errors.
<|file_sep|>original/packag... | }
try {
await new SNS().notifyIncidentToTopic(incidentNotificationTopic)
if (adminPageURL) {
await settings.setAdminPageURL(adminPageURL)
}
if (cognitoPoolID) {
await settings.setCognitoPoolID(cognitoPoolID)
}
await settings.createApiKey()
response.send(event, context, re... | <|file_sep|>packages/lambda/src/api/dbCreateItems/index.js.diff
original:
// failed due to the unknown SNS topic.
updated:
// setStatusPageURL always fails due to the unknown SNS topic. So ignore the error here.
// TODO: improve error handling. There may be other kinds of errors.
<|file_sep|>original/packag... | a416b0a1f674d8ab05472c961da780d69df8aa5b | packages/lambda/src/api/dbCreateItems/index.js | packages/lambda/src/api/dbCreateItems/index.js | JavaScript |
<|file_sep|>lib/active_record/turntable/active_record_ext/association_preloader.rb.diff
original:
if sharded_by_same_key? && owners_have_same_shard_key?
returning_scope = returning_scope.where(klass.turntable_shard_key => owners.first.send(klass.turntable_shard_key))
updated:
if should_use_sha... |
def foreign_shard_key
options[:foreign_shard_key] || model.turntable_shard_key
end
def should_use_shard_key?
sharded_by_same_key? || !!options[:foreign_shard_key]
end
def sharded_by_same_key?
model.turntable_enabled? &&
klass.turntable_enabled? &&
... | <|file_sep|>lib/active_record/turntable/active_record_ext/association_preloader.rb.diff
original:
if sharded_by_same_key? && owners_have_same_shard_key?
returning_scope = returning_scope.where(klass.turntable_shard_key => owners.first.send(klass.turntable_shard_key))
updated:
if should_use_sha... | c9f88e6cbb508be509fa69b9da52d3497700a9a7 | lib/active_record/turntable/active_record_ext/association_preloader.rb | lib/active_record/turntable/active_record_ext/association_preloader.rb | Ruby |
<|file_sep|>tasks/manage_services.yml.diff
original:
updated:
when: "redis_manage_redis_server | bool"
<|file_sep|>original/tasks/manage_services.yml
---
# Redis services management tasks
- name: 'SERVICE | Manage Redis Server service'
service:
name: "{{ redis_server_service_name }}"
state: "{{ redis_ser... | ---
# Redis services management tasks
- name: 'SERVICE | Manage Redis Server service'
service:
name: "{{ redis_server_service_name }}"
state: "{{ redis_server_service_state }}"
enabled: "{{ redis_server_service_enabled }}"
when: "redis_manage_redis_server | bool"
- name: 'SERVICE | Manage Redis Sent... | <|file_sep|>tasks/manage_services.yml.diff
original:
updated:
when: "redis_manage_redis_server | bool"
<|file_sep|>original/tasks/manage_services.yml
---
# Redis services management tasks
- name: 'SERVICE | Manage Redis Server service'
service:
name: "{{ redis_server_service_name }}"
state: "{{ redis_ser... | 28e6584970a2348cf20f978443b8df3aa2febcb4 | tasks/manage_services.yml | tasks/manage_services.yml | YAML |
<|file_sep|>bash/aliases.sh.diff
original:
updated:
PLATFORM=`uname`
if [[ "$PLATFORM" == "Darwin" ]]; then
alias ls='ls -Gh'
elif [[ "$PLATFORM" == "Linux" ]]; then
alias ls='ls --color=auto -h'
fi
<|file_sep|>original/bash/aliases.sh
alias ...='cd ..'
alias more='less'
alias ls='ls -G'
alias la='ls -al'
alias ... | if [[ "$PLATFORM" == "Darwin" ]]; then
alias ls='ls -Gh'
elif [[ "$PLATFORM" == "Linux" ]]; then
alias ls='ls --color=auto -h'
fi
alias h=history
alias ll="ls -al"
alias ...='cd ..'
alias more='less'
alias la='ls -al'
alias lsd='ls -d */' # List only subdirectories
alias sls='screen -ls'
alias tls='tmux ls'
ta() ... | <|file_sep|>bash/aliases.sh.diff
original:
updated:
PLATFORM=`uname`
if [[ "$PLATFORM" == "Darwin" ]]; then
alias ls='ls -Gh'
elif [[ "$PLATFORM" == "Linux" ]]; then
alias ls='ls --color=auto -h'
fi
<|file_sep|>original/bash/aliases.sh
alias ...='cd ..'
alias more='less'
alias ls='ls -G'
alias la='ls -al'
alias ... | 4dfa818c13e146fc49a5ec9f3c864613ab7c2d48 | bash/aliases.sh | bash/aliases.sh | Shell |
<|file_sep|>original/artifacts/firmware_password_status.py
<|file_sep|>current/artifacts/firmware_password_status.py
<|file_sep|>updated/artifacts/firmware_password_status.py | import subprocess
factoid = 'firmware_password_status'
def fact():
'''Returns whether or not a firmware password is set'''
result = 'None'
try:
proc = subprocess.Popen(
['/usr/sbin/firmwarepasswd', '-check'],
stdout=subprocess.PIPE,
stderr=subproce... | <|file_sep|>original/artifacts/firmware_password_status.py
<|file_sep|>current/artifacts/firmware_password_status.py
<|file_sep|>updated/artifacts/firmware_password_status.py
import subprocess
factoid = 'firmware_password_status'
def fact():
'''Returns whether or not a firmware password is set'''
result = ... | 224f977a60fc94893228f9372386de8ca0551fde | artifacts/firmware_password_status.py | artifacts/firmware_password_status.py | Python |
<|file_sep|>original/DOC/Capabilities/README.md
**Delayed Extra Sources**
Add extra enrichment sources which require DTD; for example SNIa channels.
Delayed_extra_sources.ipynb
**Extra Source**
Add extra yields to existing stellar yield input; choose mass range.
Extra_source.ipynb
**Net Yields Input**
De... |
**Extra Source**
Add extra yields to existing stellar yield input; choose mass range.
Extra_source.ipynb
**Net Yields Input**
Describing how to add net yields.
Netyields.ipynb
**Timesteps Size Management**
Describing the different options to deal with timestep sizes.
Timesteps_size_management.ipynb.ipy... | <|file_sep|>original/DOC/Capabilities/README.md
**Delayed Extra Sources**
Add extra enrichment sources which require DTD; for example SNIa channels.
Delayed_extra_sources.ipynb
**Extra Source**
Add extra yields to existing stellar yield input; choose mass range.
Extra_source.ipynb
**Net Yields Input**
De... | 95f7b5e829c8bc10ec8a35b13101e202771dc1c8 | DOC/Capabilities/README.md | DOC/Capabilities/README.md | Markdown |
<|file_sep|>original/app/views/ecm/pictures/backend/pictures/_table.html.haml
= table.association :gallery, sortable: :gallery_name
= table.column(:preview_picture) do |picture|
%img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
= table.column :name, sortable: true, class: 'truncate-chars t... | = table.association :gallery # , sortable: :gallery_name
= table.column(:preview_picture) do |picture|
%img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
= table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
= table.column :description, sortable: true, class: 'trun... | <|file_sep|>original/app/views/ecm/pictures/backend/pictures/_table.html.haml
= table.association :gallery, sortable: :gallery_name
= table.column(:preview_picture) do |picture|
%img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
= table.column :name, sortable: true, class: 'truncate-chars t... | 80c1cea18b04fd2d6752c29ad5f6e7cb1689a2f6 | app/views/ecm/pictures/backend/pictures/_table.html.haml | app/views/ecm/pictures/backend/pictures/_table.html.haml | Haml |
<|file_sep|>original/sparkplug-server/src/test/resources/log4j.properties
<|file_sep|>current/sparkplug-server/src/test/resources/log4j.properties
<|file_sep|>updated/sparkplug-server/src/test/resources/log4j.properties | # This silences Spark output during tests
log4j.rootCategory=ERROR, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=System.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
... | <|file_sep|>original/sparkplug-server/src/test/resources/log4j.properties
<|file_sep|>current/sparkplug-server/src/test/resources/log4j.properties
<|file_sep|>updated/sparkplug-server/src/test/resources/log4j.properties
# This silences Spark output during tests
log4j.rootCategory=ERROR, console
log4j.appender.consol... | 87bc650ddba49e4573e92568369b29bcb90f7bf0 | sparkplug-server/src/test/resources/log4j.properties | sparkplug-server/src/test/resources/log4j.properties | INI |
<|file_sep|>original/mp4parse_capi/cbindgen.toml
header = """/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY... | header = """/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen. */
#ifn... | <|file_sep|>original/mp4parse_capi/cbindgen.toml
header = """/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY... | 43fe2cdf5fe44f993d93d8ca6e7edeb73ef215e7 | mp4parse_capi/cbindgen.toml | mp4parse_capi/cbindgen.toml | TOML |
<|file_sep|>original/cumulus/ansible/tasks/playbooks/ec2.yml
aws_access_key: "{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}"
aws_secret_key: "{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}"
ec2_pod_spec:
key: "{{ aws_keyname }}"
cluster_name: "{{ cluster_id }}"
rules:
- proto: tcp # ssh
... | aws_access_key: "{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}"
aws_secret_key: "{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}"
ec2_pod_spec:
key: "{{ aws_keyname }}"
cluster_name: "{{ cluster_id }}"
rules:
- proto: tcp # ssh
from_port: 22
to_port: 22
cidr_... | <|file_sep|>original/cumulus/ansible/tasks/playbooks/ec2.yml
aws_access_key: "{{ lookup('env', 'AWS_ACCESS_KEY_ID') }}"
aws_secret_key: "{{ lookup('env', 'AWS_SECRET_ACCESS_KEY') }}"
ec2_pod_spec:
key: "{{ aws_keyname }}"
cluster_name: "{{ cluster_id }}"
rules:
- proto: tcp # ssh
... | 42bd569a144744257c291fe35f68426424b035e0 | cumulus/ansible/tasks/playbooks/ec2.yml | cumulus/ansible/tasks/playbooks/ec2.yml | YAML |
<|file_sep|>original/norman.gemspec
s.authors = "Norman Clarke"
s.email = "norman@njclarke.com"
s.files = `git ls-files`.split("\n").reject {|f| f =~ /^\./}
s.homepage = "http://github.com/norman/norman"
s.name = "norman"
s.platform = Gem::Pla... | s.email = "norman@njclarke.com"
s.files = `git ls-files`.split("\n").reject {|f| f =~ /^\./}
s.homepage = "http://github.com/norman/norman"
s.name = "norman"
s.platform = Gem::Platform::RUBY
s.rubyforge_project = "[none]"
s.summary = "An Act... | <|file_sep|>original/norman.gemspec
s.authors = "Norman Clarke"
s.email = "norman@njclarke.com"
s.files = `git ls-files`.split("\n").reject {|f| f =~ /^\./}
s.homepage = "http://github.com/norman/norman"
s.name = "norman"
s.platform = Gem::Pla... | 33b6f44a5382bbe623cd76847fcb01cc6118929e | norman.gemspec | norman.gemspec | Ruby |
<|file_sep|>original/move_emails_to_folders.py
<|file_sep|>current/move_emails_to_folders.py
<|file_sep|>updated/move_emails_to_folders.py | import logging
from csv_email import get_move_folder, type_accepts_message
from settings import get_csv_file_types, get_email_client, LOGGING_KWARGS
logger = logging.getLogger(__name__)
def get_message_folder_name(message, csv_file_types):
for csv_type in csv_file_types:
match_dict = type_accepts_message(messag... | <|file_sep|>original/move_emails_to_folders.py
<|file_sep|>current/move_emails_to_folders.py
<|file_sep|>updated/move_emails_to_folders.py
import logging
from csv_email import get_move_folder, type_accepts_message
from settings import get_csv_file_types, get_email_client, LOGGING_KWARGS
logger = logging.getLogger(... | 54bbc3ea51e1242b7553883e28e3e792b987063a | move_emails_to_folders.py | move_emails_to_folders.py | Python |
<|file_sep|>original/bin/lazy_quotes.pl
#!/usr/bin/env perl
# WARNING: This can screw up valid Markdown if there are code snippets. Only
# run on prose that is actually broken and check the results.
use utf8;
use open ':std', ':encoding(UTF-8)';
# Convert lazy double quote entry styles to something sane
while (<>) {... | #!/usr/bin/env perl
# WARNING: This can screw up valid Markdown if there are code snippets. Only
# run on prose that is actually broken and check the results.
use utf8;
use open ':std', ':encoding(UTF-8)';
# Convert lazy double quote entry styles to something sane
while (<>) {
s#(?<!\s)['‘’`]{3}#'"#g;
s#['‘’`]{3... | <|file_sep|>original/bin/lazy_quotes.pl
#!/usr/bin/env perl
# WARNING: This can screw up valid Markdown if there are code snippets. Only
# run on prose that is actually broken and check the results.
use utf8;
use open ':std', ':encoding(UTF-8)';
# Convert lazy double quote entry styles to something sane
while (<>) {... | f8eb6683db888e1bf1f2f45d8d7bd10075720349 | bin/lazy_quotes.pl | bin/lazy_quotes.pl | Perl |
<|file_sep|>original/run_server.sh
# Script to run the server on my AWS Linux instance
# Uses nohup to keep the process running even after the ssh session is closed
#!/bin/sh
npm install
nohup node src/index.js 1> logs/cronbot-stdout.txt 2> logs/cronbot-stderr.txt &
<|file_sep|>current/run_server.sh
# Script to run the... | # Script to run the server on my AWS Linux instance
# Uses nohup to keep the process running even after the ssh session is closed
#!/bin/sh
npm install
nohup node src/index.js 1> logs/server-stdout.txt 2> logs/server-stderr.txt & | <|file_sep|>original/run_server.sh
# Script to run the server on my AWS Linux instance
# Uses nohup to keep the process running even after the ssh session is closed
#!/bin/sh
npm install
nohup node src/index.js 1> logs/cronbot-stdout.txt 2> logs/cronbot-stderr.txt &
<|file_sep|>current/run_server.sh
# Script to run the... | a3c9970c70e4433ee4b2af371d6724c11b6897c0 | run_server.sh | run_server.sh | Shell |
<|file_sep|>packages/ba/basement.yaml.diff
original:
hash: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
updated:
hash: 28de529209e39003a87c343fa7c6e7614abde48ccd06faf470b3e41c5f8081da
<|file_sep|>original/packages/ba/basement.yaml
homepage: https://github.com/haskell-foundation/foundation#readme
cha... | homepage: https://github.com/haskell-foundation/foundation#readme
changelog-type: ''
hash: 28de529209e39003a87c343fa7c6e7614abde48ccd06faf470b3e41c5f8081da
test-bench-deps: {}
maintainer: vincent@snarc.org
synopsis: Foundation scrap box of array & string
changelog: ''
basic-deps:
base: ! '>=4.9.0.0'
ghc-prim: -any
... | <|file_sep|>packages/ba/basement.yaml.diff
original:
hash: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
updated:
hash: 28de529209e39003a87c343fa7c6e7614abde48ccd06faf470b3e41c5f8081da
<|file_sep|>original/packages/ba/basement.yaml
homepage: https://github.com/haskell-foundation/foundation#readme
cha... | c154e14e5df72327876d97eca3196eb0262f6661 | packages/ba/basement.yaml | packages/ba/basement.yaml | YAML |
<|file_sep|>original/merge/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.commonsware.cwac.merge"
android:versionCode="1"
android:versionName="1.0">
<application android:allowBackup="false">
</application>
</manifest>
<... | <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.commonsware.cwac.merge"
android:versionCode="1"
android:versionName="1.0">
</manifest> | <|file_sep|>original/merge/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.commonsware.cwac.merge"
android:versionCode="1"
android:versionName="1.0">
<application android:allowBackup="false">
</application>
</manifest>
<... | 5e73008b9d275719455be3c1fbba1775baae94b0 | merge/AndroidManifest.xml | merge/AndroidManifest.xml | XML |
<|file_sep|>original/Magic/src/main/resources/defaults/classes/base.yml
base:
storage:
# Path needs to be set first here so we can identify if mana is coming from the path or
# The base class
path: subclass
# mana can be provided by the subclass (path controlled)
# or by the base class (shared bet... | storage:
# Path needs to be set first here so we can identify if mana is coming from the path or
# The base class
path: subclass
# mana can be provided by the subclass (path controlled)
# or by the base class (shared between subclasses)
mana_max: subclass,class
mana_regeneration: subclass,... | <|file_sep|>original/Magic/src/main/resources/defaults/classes/base.yml
base:
storage:
# Path needs to be set first here so we can identify if mana is coming from the path or
# The base class
path: subclass
# mana can be provided by the subclass (path controlled)
# or by the base class (shared bet... | 58eb5f3a2e035db8efd20546f043ddbdf455ecff | Magic/src/main/resources/defaults/classes/base.yml | Magic/src/main/resources/defaults/classes/base.yml | YAML |
<|file_sep|>original/rs/simple_jni_lib/README.md
## How to JNI with Rust and Bazel
* https://docs.rs/jni/latest/jni/
* [Bazel: Java app with JNI dependency](https://stackoverflow.com/questions/46256118/bazel-java-app-with-jni-dependency) and related [answer](https://github.com/hlopko/bazel-jni-example) is useful to un... | ## How to JNI with Rust and Bazel
* https://docs.rs/jni/latest/jni/
* [Bazel: Java app with JNI dependency](https://stackoverflow.com/questions/46256118/bazel-java-app-with-jni-dependency) and related [answer](https://github.com/hlopko/bazel-jni-example) is useful to understand how it works in bazel for C++. But requi... | <|file_sep|>original/rs/simple_jni_lib/README.md
## How to JNI with Rust and Bazel
* https://docs.rs/jni/latest/jni/
* [Bazel: Java app with JNI dependency](https://stackoverflow.com/questions/46256118/bazel-java-app-with-jni-dependency) and related [answer](https://github.com/hlopko/bazel-jni-example) is useful to un... | 86175f16a62d5cb1352d0a41732ad8453947a9f8 | rs/simple_jni_lib/README.md | rs/simple_jni_lib/README.md | Markdown |
<|file_sep|>crypto.py.diff
original:
f = open('key.pem', 'w')
f.write(key.exportKey('PEM'))
f.close()
updated:
with open('key.pem', 'w') as f:
f.write(key.exportKey('PEM'))
<|file_sep|>crypto.py.diff
original:
f = open('key.pem', 'r')
key = RSA.importKey(f.read())
return key
updated:... | def retrieve_key():
with open('key.pem', 'r') as f:
key = RSA.importKey(f.read())
return key
def get_public_bytestring():
key = retrieve_key()
return key.publickey().exportKey()
# Use own private key to decrypt broadcasted message
def decrypt_message(message):
key = retrieve_key()
... | <|file_sep|>crypto.py.diff
original:
f = open('key.pem', 'w')
f.write(key.exportKey('PEM'))
f.close()
updated:
with open('key.pem', 'w') as f:
f.write(key.exportKey('PEM'))
<|file_sep|>crypto.py.diff
original:
f = open('key.pem', 'r')
key = RSA.importKey(f.read())
return key
updated:... | e0c70b2b20349b8f1c0f6df8cc641c3267a63a06 | crypto.py | crypto.py | Python |
<|file_sep|>.travis.yml.diff
original:
language: sh
updated:
language: generic
<|file_sep|>original/.travis.yml
language: sh
os: osx
osx_image: xcode8.2
script: pwd
<|file_sep|>current/.travis.yml
language: generic
os: osx
osx_image: xcode8.2
script: pwd
<|file_sep|>updated/.travis.yml | language: generic
os: osx
script: echo $TRAVIS_OS_NAME && xcodebuild -version | <|file_sep|>.travis.yml.diff
original:
language: sh
updated:
language: generic
<|file_sep|>original/.travis.yml
language: sh
os: osx
osx_image: xcode8.2
script: pwd
<|file_sep|>current/.travis.yml
language: generic
os: osx
osx_image: xcode8.2
script: pwd
<|file_sep|>updated/.travis.yml
language: generic
os: osx
script:... | 18f3d3bf90f5a7f2b8d2863a3dc4c7dd378672d0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test/helpers/xnat_test_helper.py
@param source: the input parent directory
@param pattern: the subject directory name match pattern
(default L{airc.AIRCCollection.subject_pattern})
@return: the subject name => directory dictionary
"""
airc_coll = airc.collection_with_nam... | import os, re
from base64 import b64encode as encode
from qipipe.staging import airc_collection as airc
from qipipe.staging.staging_helper import SUBJECT_FMT
from qipipe.helpers import xnat_helper
import logging
logger = logging.getLogger(__name__)
def generate_subject_name(name):
"""
Makes a subject name tha... | <|file_sep|>original/test/helpers/xnat_test_helper.py
@param source: the input parent directory
@param pattern: the subject directory name match pattern
(default L{airc.AIRCCollection.subject_pattern})
@return: the subject name => directory dictionary
"""
airc_coll = airc.collection_with_nam... | ceebd0b345fe7221577bfcfe18632267897871e8 | test/helpers/xnat_test_helper.py | test/helpers/xnat_test_helper.py | Python |
<|file_sep|>original/api/requirements.txt
httplib2==0.18.1
idna==2.10
itsdangerous==1.1.0
Jinja2==2.11.2
jmespath==0.10.0
MarkupSafe==1.1.1
networkx==2.5
psycopg2-binary==2.8.6
python-dateutil==2.8.1
python-http-client==3.3.1
pytz==2020.5
PyYAML==5.3.1
requests==2.25.1
s3transfer==0.3.3
sendgrid==6.4.8
setuptools==51.1... | httplib2==0.18.1
idna==2.10
itsdangerous==1.1.0
Jinja2==2.11.2
jmespath==0.10.0
MarkupSafe==1.1.1
networkx==2.5
psycopg2-binary==2.8.6
python-dateutil==2.8.1
python-http-client==3.3.1
pytz==2020.5
PyYAML==5.3.1
requests==2.25.1
s3transfer==0.3.3
sendgrid==6.4.8
setuptools==51.1.1
six==1.15.0
SQLAlchemy==1.3.22
starkban... | <|file_sep|>original/api/requirements.txt
httplib2==0.18.1
idna==2.10
itsdangerous==1.1.0
Jinja2==2.11.2
jmespath==0.10.0
MarkupSafe==1.1.1
networkx==2.5
psycopg2-binary==2.8.6
python-dateutil==2.8.1
python-http-client==3.3.1
pytz==2020.5
PyYAML==5.3.1
requests==2.25.1
s3transfer==0.3.3
sendgrid==6.4.8
setuptools==51.1... | 77589649da0de4a9237ef55564187e9033add96b | api/requirements.txt | api/requirements.txt | Text |
<|file_sep|>original/init-templates/buildspec.yml
phases:
install:
commands:
- npm install --global npm@5.0.3
- npm install --global npx
# pre_build:
# commands:
# - aws ssm get-parameters --names "npmrc" --with-decryption > .npmrc
build:
commands:
- npm install
- npx ... |
phases:
install:
commands:
- npm install --global npm@5.0.3
- npm install --global npx
# pre_build:
# commands:
# - npx lenticular secret get npmrc > .npmrc
build:
commands:
- npm install
- npx lenticular generate
# ---------------------------------------------------... | <|file_sep|>original/init-templates/buildspec.yml
phases:
install:
commands:
- npm install --global npm@5.0.3
- npm install --global npx
# pre_build:
# commands:
# - aws ssm get-parameters --names "npmrc" --with-decryption > .npmrc
build:
commands:
- npm install
- npx ... | 4112a537dd16628e664a78a5d851eda6843910af | init-templates/buildspec.yml | init-templates/buildspec.yml | YAML |
<|file_sep|>original/week-4/4-5.md
<|file_sep|>current/week-4/4-5.md
<|file_sep|>updated/week-4/4-5.md | ### 4.5.1
[good guess](good-guess/my_solution.rb)
### 4.5.2
[calc letter grade](calculate-grade/my_solution.rb)
### 4.5.3
[triangle sides](triangle-side/my_solution.rb)
### 4.5.4
[detecting leap years](leap-year/my_solution.rb)
### 4.5.5
[detecting simple substrings](11-simple-substrings/my_solution.rb) | <|file_sep|>original/week-4/4-5.md
<|file_sep|>current/week-4/4-5.md
<|file_sep|>updated/week-4/4-5.md
### 4.5.1
[good guess](good-guess/my_solution.rb)
### 4.5.2
[calc letter grade](calculate-grade/my_solution.rb)
### 4.5.3
[triangle sides](triangle-side/my_solution.rb)
### 4.5.4
[detecting leap years](leap-year... | 02a6c892283defbdf86b043bf3f61f9668be65ff | week-4/4-5.md | week-4/4-5.md | Markdown |
<|file_sep|>package.json.diff
original:
"express": "3.0.x",
"socket.io": "0.9.10"
updated:
"express": "3.1.x",
"socket.io": "0.9.13"
<|file_sep|>original/package.json
{
"name": "glark.io",
"version": "0.0.1",
"description": "Drag and Collaborate editor.",
"author": "Glark <staff@glark.io>",
"p... | {
"name": "glark.io",
"version": "0.0.1",
"description": "Drag and Collaborate editor.",
"author": "Glark <staff@glark.io>",
"private": true,
"dependencies": {
"express": "3.1.x",
"socket.io": "0.9.13"
},
"engine": "node >= 0.10.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contri... | <|file_sep|>package.json.diff
original:
"express": "3.0.x",
"socket.io": "0.9.10"
updated:
"express": "3.1.x",
"socket.io": "0.9.13"
<|file_sep|>original/package.json
{
"name": "glark.io",
"version": "0.0.1",
"description": "Drag and Collaborate editor.",
"author": "Glark <staff@glark.io>",
"p... | 08cac6c0c8e5d4108636842c369ead7af6e89ca6 | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: go
go: 1.1
before_install:
- cd
- wget https://leveldb.googlecode.com/files/leveldb-1.10.0.tar.gz
- tar xzf leveldb-1.10.0.tar.gz
- cd leveldb-1.10.0
- make
- export CGO_CFLAGS="-I`pwd`/include"
- export CGO_LDFLAGS="-L`pwd`"
- export LD_LIBRARY_PATH="`pwd`"
... | language: go
go: 1.1
script: make test
before_install:
- cd
- wget https://leveldb.googlecode.com/files/leveldb-1.10.0.tar.gz
- tar xzf leveldb-1.10.0.tar.gz
- cd leveldb-1.10.0
- make
- export CGO_CFLAGS="-I`pwd`/include"
- export CGO_LDFLAGS="-L`pwd`"
- export LD_LIBRARY_PATH="`pwd`"
- cd $TRAVIS_BU... | <|file_sep|>original/.travis.yml
language: go
go: 1.1
before_install:
- cd
- wget https://leveldb.googlecode.com/files/leveldb-1.10.0.tar.gz
- tar xzf leveldb-1.10.0.tar.gz
- cd leveldb-1.10.0
- make
- export CGO_CFLAGS="-I`pwd`/include"
- export CGO_LDFLAGS="-L`pwd`"
- export LD_LIBRARY_PATH="`pwd`"
... | 1bcb52ba46af1b55e2db92d70a0b976ce69ec4e4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/vulcan-i18n/lib/modules/message.js.diff
original:
const FormattedMessage = ({ id, values, defaultMessage = '', html = false }, { intl }) => {
updated:
const FormattedMessage = ({ id, values, defaultMessage = '', html = false, className = '' }, { intl }) => {
<|file_sep|>packages/vulcan-i18n/lib/mod... | import React, { Component } from 'react';
import { intlShape } from './shape';
const FormattedMessage = ({ id, values, defaultMessage = '', html = false, className = '' }, { intl }) => {
const message = intl.formatMessage({ id, defaultMessage }, values);
const cssClass = `i18n-message ${className}`;
return html... | <|file_sep|>packages/vulcan-i18n/lib/modules/message.js.diff
original:
const FormattedMessage = ({ id, values, defaultMessage = '', html = false }, { intl }) => {
updated:
const FormattedMessage = ({ id, values, defaultMessage = '', html = false, className = '' }, { intl }) => {
<|file_sep|>packages/vulcan-i18n/lib/mod... | ad9f94f213d301d79d28b9197122fd661765166f | packages/vulcan-i18n/lib/modules/message.js | packages/vulcan-i18n/lib/modules/message.js | JavaScript |
<|file_sep|>original/README.md
### Purpose
The Sinatra Skeleton:
1. Provides a foundation for building challenges.
2. Demonstrates a reasonable set of practices around building Sinatra applications.
3. Eases the transition to Rails for Dev Bootcamp students
### Quickstart
1. `bundle install`
2. `thin start`
### C... | ### Purpose
The Sinatra Skeleton:
1. Provides a foundation for building challenges.
2. Demonstrates a reasonable set of practices around building Sinatra applications.
3. Eases the transition to Rails for Dev Bootcamp students
### Quickstart
1. `bundle install`
2. `shotgun config.ru`
### Contributing
We would lo... | <|file_sep|>original/README.md
### Purpose
The Sinatra Skeleton:
1. Provides a foundation for building challenges.
2. Demonstrates a reasonable set of practices around building Sinatra applications.
3. Eases the transition to Rails for Dev Bootcamp students
### Quickstart
1. `bundle install`
2. `thin start`
### C... | d411a35e6c013da9b6d86e923d887b3c470ca430 | README.md | README.md | Markdown |
<|file_sep|>examples/instances.js.diff
original:
updated:
var seed = require('./../seed-random');
<|file_sep|>original/examples/instances.js
var instances = require('./../taillard');
var NEH = require('./../neh');
var seed = require('./../seed-random');
// Iterate over filtered Taillard instances
var filteredInstance... | var instances = require('./../taillard');
var seed = require('./../seed-random');
var NEH = require('./../neh');
// Iterate over filtered Taillard instances
var filteredInstances = instances.filter(50, 20);
for(var i = 0; i < filteredInstances.length; i++) {
// Overwrite Math.random by number generator with seed
... | <|file_sep|>examples/instances.js.diff
original:
updated:
var seed = require('./../seed-random');
<|file_sep|>original/examples/instances.js
var instances = require('./../taillard');
var NEH = require('./../neh');
var seed = require('./../seed-random');
// Iterate over filtered Taillard instances
var filteredInstance... | af74dcd92c72a6694fcce3a00421245e8013bb09 | examples/instances.js | examples/instances.js | JavaScript |
<|file_sep|>original/create_admin.py
<|file_sep|>current/create_admin.py
<|file_sep|>updated/create_admin.py | from getpass import getpass
from md5 import md5
from redis import Redis
def main():
database = Redis()
database.set("user:admin:password", md5(getpass()).hexdigest())
database.delete("user:admin:profiles")
database.rpush("user:admin:profiles", "admin")
if __name__ == "__main__":
main() | <|file_sep|>original/create_admin.py
<|file_sep|>current/create_admin.py
<|file_sep|>updated/create_admin.py
from getpass import getpass
from md5 import md5
from redis import Redis
def main():
database = Redis()
database.set("user:admin:password", md5(getpass()).hexdigest())
database.delete("user:admin:... | 5a641395fb336313f091d28ffb17625df836d2a3 | create_admin.py | create_admin.py | Python |
<|file_sep|>app/assets/stylesheets/views/template.scss.diff
original:
top: 16.5%; // align bottom edge to bottom of address
updated:
top: 14.65%; // align bottom edge to bottom of address
<|file_sep|>original/app/assets/stylesheets/views/template.scss
}
}
.edit-template-link-letter-contact {
@extend %edit-tem... | }
}
.edit-template-link-letter-contact {
@extend %edit-template-link;
right: -25px;
top: 13.3%; // align to top of contact block
}
.edit-template-link-letter-address {
@extend %edit-template-link;
top: 14.65%; // align bottom edge to bottom of address
left: -5px;
}
.edit-template-link-letter-body {
... | <|file_sep|>app/assets/stylesheets/views/template.scss.diff
original:
top: 16.5%; // align bottom edge to bottom of address
updated:
top: 14.65%; // align bottom edge to bottom of address
<|file_sep|>original/app/assets/stylesheets/views/template.scss
}
}
.edit-template-link-letter-contact {
@extend %edit-tem... | 0ba7d1109761198be1a645b294e3f37926a9b774 | app/assets/stylesheets/views/template.scss | app/assets/stylesheets/views/template.scss | SCSS |
<|file_sep|>original/txircd/modules/cmode_k.py
from twisted.words.protocols import irc
from txircd.modbase import Mode
class PasswordMode(Mode):
def commandPermission(self, user, cmd, data):
if cmd != "JOIN":
return data
channels = data["targetchan"]
keys = data["keys"]
removeChannels = []
for index, cha... | from twisted.words.protocols import irc
from txircd.modbase import Mode
class PasswordMode(Mode):
def checkUnset(self, user, target, param):
if param == target.mode["k"]:
return True
return False
def commandPermission(self, user, cmd, data):
if cmd != "JOIN":
return data
channels = data["targetchan"]... | <|file_sep|>original/txircd/modules/cmode_k.py
from twisted.words.protocols import irc
from txircd.modbase import Mode
class PasswordMode(Mode):
def commandPermission(self, user, cmd, data):
if cmd != "JOIN":
return data
channels = data["targetchan"]
keys = data["keys"]
removeChannels = []
for index, cha... | 52cb99d09cd71efa0e4fc5f5554fc948410315a1 | txircd/modules/cmode_k.py | txircd/modules/cmode_k.py | Python |
<|file_sep|>original/org.jkiss.dbeaver.ext.exasol.feature/feature.xml
<|file_sep|>current/org.jkiss.dbeaver.ext.exasol.feature/feature.xml
<|file_sep|>updated/org.jkiss.dbeaver.ext.exasol.feature/feature.xml | <?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jkiss.dbeaver.ext.exasol.feature"
label="%featureName"
version="0.0.1"
provider-name="%providerName"
plugin="org.jkiss.dbeaver.ext.exasol">
<description>
%description
</description>
<copyright>
%copyright
</c... | <|file_sep|>original/org.jkiss.dbeaver.ext.exasol.feature/feature.xml
<|file_sep|>current/org.jkiss.dbeaver.ext.exasol.feature/feature.xml
<|file_sep|>updated/org.jkiss.dbeaver.ext.exasol.feature/feature.xml
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jkiss.dbeaver.ext.exasol.feature"
label="%... | 30a299391012b0fe2feee420673829cb8246633d | org.jkiss.dbeaver.ext.exasol.feature/feature.xml | org.jkiss.dbeaver.ext.exasol.feature/feature.xml | XML |
<|file_sep|>distributed/docker-compose.yml.diff
original:
web:
updated:
flask:
<|file_sep|>distributed/docker-compose.yml.diff
original:
dockerfile: FlaskDockerfile
updated:
dockerfile: Dockerfile.flask
<|file_sep|>distributed/docker-compose.yml.diff
original:
worker:
updated:
celery:
<|file_sep|>or... | version: '3'
services:
flask:
build:
context: ./
dockerfile: Dockerfile.flask
restart: always
ports:
- "5000:5000"
depends_on:
- redis
celery:
build:
context: ./
dockerfile: Dockerfile.celery
depends_on:
- redis
redis:
image: redis | <|file_sep|>distributed/docker-compose.yml.diff
original:
web:
updated:
flask:
<|file_sep|>distributed/docker-compose.yml.diff
original:
dockerfile: FlaskDockerfile
updated:
dockerfile: Dockerfile.flask
<|file_sep|>distributed/docker-compose.yml.diff
original:
worker:
updated:
celery:
<|file_sep|>or... | ae01a7c1aad2efd8e67fc0c5599db36a434c5e14 | distributed/docker-compose.yml | distributed/docker-compose.yml | YAML |
<|file_sep|>original/test/asan/TestCases/Windows/shadow_mapping_failure.cc
// RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
char bigchunk[1 << 30];
int main() {
printf("Hello, world!\n");
scanf("%s", bigchunk);
// CHECK-NOT: Hello, world!
// CHECK: Shadow memory rang... | // RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
// REQUIRES: asan-32-bits
#include <stdio.h>
char bigchunk[1 << 30];
int main() {
printf("Hello, world!\n");
scanf("%s", bigchunk);
// CHECK-NOT: Hello, world!
// CHECK: Shadow memory range interleaves with an existing memory mapping.
//... | <|file_sep|>original/test/asan/TestCases/Windows/shadow_mapping_failure.cc
// RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
char bigchunk[1 << 30];
int main() {
printf("Hello, world!\n");
scanf("%s", bigchunk);
// CHECK-NOT: Hello, world!
// CHECK: Shadow memory rang... | 9b0d7caa7159c3ade65cdfc642ab4c20d97d40c4 | test/asan/TestCases/Windows/shadow_mapping_failure.cc | test/asan/TestCases/Windows/shadow_mapping_failure.cc | C++ |
<|file_sep|>about.md.diff
original:
## Lusitania Mægan Heather Artemis Julian Davinhart
updated:
## Lucy Mægan Heather Artemis Davinhart
<|file_sep|>original/about.md
---
layout: page
title: About
permalink: /about/
---
## Lusitania Mægan Heather Artemis Julian Davinhart
Yes, that technically makes ... | ---
layout: page
title: About
permalink: /about/
---
## Lucy Mægan Heather Artemis Davinhart
Yes, that technically makes my initials LMHAD, but LMHD rolls off the tongue better.
(Also, I bought lmhd.me before I added the additional names, and I'm too lazy to update my namespacing)
See also: [my name api](http... | <|file_sep|>about.md.diff
original:
## Lusitania Mægan Heather Artemis Julian Davinhart
updated:
## Lucy Mægan Heather Artemis Davinhart
<|file_sep|>original/about.md
---
layout: page
title: About
permalink: /about/
---
## Lusitania Mægan Heather Artemis Julian Davinhart
Yes, that technically makes ... | e00efd0b0be609832fd1ba5def11a105745f0ca8 | about.md | about.md | Markdown |
<|file_sep|>original/HISTORY.rst
.. :changelog:
History
-------
Pending release
---------------
* New release notes go here
1.0.0 (2016-09-19)
------------------
* Initial version with ``record()`` that can record database queries and cache
operations and error if they change between test runs.
<|file_sep|>curr... | .. :changelog:
History
=======
Pending release
---------------
* New release notes go here
1.0.0 (2016-09-19)
------------------
* Initial version with ``record()`` that can record database queries and cache
operations and error if they change between test runs. | <|file_sep|>original/HISTORY.rst
.. :changelog:
History
-------
Pending release
---------------
* New release notes go here
1.0.0 (2016-09-19)
------------------
* Initial version with ``record()`` that can record database queries and cache
operations and error if they change between test runs.
<|file_sep|>curr... | 6c5a088325e40e3f93723b131daa7df9201d34da | HISTORY.rst | HISTORY.rst | reStructuredText |
<|file_sep|>original/_assets/stylesheets/_social-buttons.sass
// Social Buttons
aside.social-buttons
visibility: hidden
height: 22px
// Fix Tweet button width bug.
iframe
width: auto !important
// Like button is misaligned because it sets vertical-align: bottom
div.fb-like.fb_iframe_widget > span
... | // Social Buttons
aside.social-buttons
visibility: hidden
height: 22px
// Fix Tweet button width bug.
iframe
max-width: 150px !important
// Like button is misaligned because it sets vertical-align: bottom
div.fb-like.fb_iframe_widget > span
vertical-align: initial !important
// Hide Google +1 b... | <|file_sep|>original/_assets/stylesheets/_social-buttons.sass
// Social Buttons
aside.social-buttons
visibility: hidden
height: 22px
// Fix Tweet button width bug.
iframe
width: auto !important
// Like button is misaligned because it sets vertical-align: bottom
div.fb-like.fb_iframe_widget > span
... | 7e9f0e7621ae068004dc8195d6831c969cb715cb | _assets/stylesheets/_social-buttons.sass | _assets/stylesheets/_social-buttons.sass | Sass |
<|file_sep|>original/lib/active_job/queue_adapters/resque_adapter.rb
require 'resque'
require 'active_support/core_ext/enumerable'
require 'active_support/core_ext/array/access'
begin
require 'resque-scheduler'
rescue LoadError => e
$stderr.puts 'The ActiveJob resque adapter requires resque-scheduler. Please add i... | require 'resque'
require 'active_support/core_ext/enumerable'
require 'active_support/core_ext/array/access'
begin
require 'resque-scheduler'
rescue LoadError
begin
require 'resque_scheduler'
rescue LoadError
$stderr.puts 'The ActiveJob resque adapter requires resque-scheduler. Please add it to your Gemf... | <|file_sep|>original/lib/active_job/queue_adapters/resque_adapter.rb
require 'resque'
require 'active_support/core_ext/enumerable'
require 'active_support/core_ext/array/access'
begin
require 'resque-scheduler'
rescue LoadError => e
$stderr.puts 'The ActiveJob resque adapter requires resque-scheduler. Please add i... | 38ee4fd8d3c46616bc8a09f7486de4a5069df91a | lib/active_job/queue_adapters/resque_adapter.rb | lib/active_job/queue_adapters/resque_adapter.rb | Ruby |
<|file_sep|>css/theme/source/serif.scss.diff
original:
* to the default theme. The accent color is darkblue.
updated:
* to the default theme. The accent color is brown.
<|file_sep|>css/theme/source/serif.scss.diff
original:
* This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is... |
// Override theme settings (see ../template/settings.scss)
$mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
$mainColor: #000;
$headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
$headingColor: #383D3D;
$headingTextShadow: none;
$headingTextTransform: none;
$backgro... | <|file_sep|>css/theme/source/serif.scss.diff
original:
* to the default theme. The accent color is darkblue.
updated:
* to the default theme. The accent color is brown.
<|file_sep|>css/theme/source/serif.scss.diff
original:
* This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is... | cc133679be3e2902dccaf66e87922967996d1f57 | css/theme/source/serif.scss | css/theme/source/serif.scss | SCSS |
<|file_sep|>src/app/modules/search/search_controller.js.diff
original:
updated:
this.searchText = null;
<|file_sep|>original/src/app/modules/search/search_controller.js
$state.go('packages', {search: this.searchText});
};
/**
* Callback when a suggested item is selected
* Redirect to the package vie... | $state.go('packages', {search: this.searchText});
this.searchText = null;
};
/**
* Callback when a suggested item is selected
* Redirect to the package view page
*/
this.itemSelected = function(item) {
$state.go('package', {name: item.name});
this.searchText = null;
};
/**
* Auto... | <|file_sep|>src/app/modules/search/search_controller.js.diff
original:
updated:
this.searchText = null;
<|file_sep|>original/src/app/modules/search/search_controller.js
$state.go('packages', {search: this.searchText});
};
/**
* Callback when a suggested item is selected
* Redirect to the package vie... | b9996ceb51ab20ad35a222aa784783326f5b568c | src/app/modules/search/search_controller.js | src/app/modules/search/search_controller.js | JavaScript |
<|file_sep|>plim/adapters/babelplugin.py.diff
original:
from ..util import StringIO
updated:
from ..util import StringIO, PY3K
<|file_sep|>original/plim/adapters/babelplugin.py
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim ... |
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim templates.
:param fileobj: the file-like object the messages should be extracted from
:param keywords: a list of keywords (i.e. function names) that should be
recognized as translation functions
... | <|file_sep|>plim/adapters/babelplugin.py.diff
original:
from ..util import StringIO
updated:
from ..util import StringIO, PY3K
<|file_sep|>original/plim/adapters/babelplugin.py
from .. import lexer
from ..util import StringIO
def extract(fileobj, keywords, comment_tags, options):
"""Extract messages from Plim ... | 88263748a1ec742e514b6f321002d06e6e79b36e | plim/adapters/babelplugin.py | plim/adapters/babelplugin.py | Python |
<|file_sep|>static/locales/en-GB/messages.properties.diff
original:
navigation-developers=Developers
updated:
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
navigation-developers=Developers
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
headline-2=In Plac... | # Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you.
context-desc=By localising web page on the page itself, you no longer need to worry if the wo... | <|file_sep|>static/locales/en-GB/messages.properties.diff
original:
navigation-developers=Developers
updated:
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
navigation-developers=Developers
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
headline-2=In Plac... | 0db3fb91532565709ec61f715e66a6ef9353421b | static/locales/en-GB/messages.properties | static/locales/en-GB/messages.properties | INI |
<|file_sep|>original/django_messages/urls.py
from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_... | from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(permanent=True, url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$'... | <|file_sep|>original/django_messages/urls.py
from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from django_messages.views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(url='inbox/'), name='messages_redirect'),
url(r'^inbox/$', inbox, name='messages_... | c23570f528b3ad27e256ea402fc02231b528b000 | django_messages/urls.py | django_messages/urls.py | Python |
<|file_sep|>original/src/components/Navigation/styles/NavigationBar.js
displayName: 'NavigationBar',
})`
background: ${get('colors.primary.default')};
color: ${get('colors.text.inverted')};
border-bottom: ${get('thicknesses.normal')} solid
${get('colors.shadow.default')};
padding: 0 ${get('spacing.large')... | displayName: 'NavigationBar',
})`
background: ${get('colors.primary.default')};
color: ${get('colors.text.inverted')};
border-bottom: ${get('thicknesses.normal')} solid
${get('colors.shadow.default')};
padding: 0 ${get('spacing.large')};
display: flex;
flex-shrink: 0;
justify-content: space-between;... | <|file_sep|>original/src/components/Navigation/styles/NavigationBar.js
displayName: 'NavigationBar',
})`
background: ${get('colors.primary.default')};
color: ${get('colors.text.inverted')};
border-bottom: ${get('thicknesses.normal')} solid
${get('colors.shadow.default')};
padding: 0 ${get('spacing.large')... | 1137924797b9265fd67fe51ab1ccbfd17554f886 | src/components/Navigation/styles/NavigationBar.js | src/components/Navigation/styles/NavigationBar.js | JavaScript |
<|file_sep|>README.md.diff
original:
- etc
- etc
updated:
- React-native 0.38.0
<|file_sep|>README.md.diff
original:
sudo npm install -g bower
updated:
<|file_sep|>original/README.md
- etc
- etc
## Development
### Installing Dependencies
From within the root directory:
```sh
sudo npm install -g bower
npm install
b... | - React-native 0.38.0
## Development
### Installing Dependencies
From within the root directory:
```sh
npm install
react-native link
```
iOS dependencies:
- *FB Auth*
```sh
npm run ios:install-fb-auth
```
- *Mapbox*<br />
Follow instructions [here](https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/... | <|file_sep|>README.md.diff
original:
- etc
- etc
updated:
- React-native 0.38.0
<|file_sep|>README.md.diff
original:
sudo npm install -g bower
updated:
<|file_sep|>original/README.md
- etc
- etc
## Development
### Installing Dependencies
From within the root directory:
```sh
sudo npm install -g bower
npm install
b... | 827005a2abfd88f46991c92c77d94733d8d88a02 | README.md | README.md | Markdown |
<|file_sep|>original/phpunit.xml.dist
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" verbose="true" bootstrap="tests/bootstrap.php">
<testsuites>
<testsuite name="Rych\Random Tests">
<directory suffix="Test.php" phpVersion="5.3.8" phpVersionOperator=">=">./tests</directory>
... | <?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" verbose="true" bootstrap="tests/bootstrap.php">
<testsuites>
<testsuite name="Rych\Random Tests">
<directory suffix="Test.php" phpVersion="5.3.4" phpVersionOperator=">=">./tests</directory>
</testsuite>
</testsuites>
</php... | <|file_sep|>original/phpunit.xml.dist
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" verbose="true" bootstrap="tests/bootstrap.php">
<testsuites>
<testsuite name="Rych\Random Tests">
<directory suffix="Test.php" phpVersion="5.3.8" phpVersionOperator=">=">./tests</directory>
... | 2e4b7c4cc6b0baa3f2ca7f403d6cf7c053a00336 | phpunit.xml.dist | phpunit.xml.dist | unknown |
<|file_sep|>original/quantum/ovs.sls
- openvswitch-switch
- openvswitch-datapath-dkms
- quantum-plugin-openvswitch
- quantum-plugin-openvswitch-agent
- require:
- file: '/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini'
- user: quantum-user
service.running:
- name: ... | - openvswitch-switch
- openvswitch-datapath-dkms
- quantum-plugin-openvswitch
- quantum-plugin-openvswitch-agent
- require:
- file: '/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini'
- user: quantum-user
service.running:
- name: quantum-plugin-openvswitch-agent
... | <|file_sep|>original/quantum/ovs.sls
- openvswitch-switch
- openvswitch-datapath-dkms
- quantum-plugin-openvswitch
- quantum-plugin-openvswitch-agent
- require:
- file: '/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini'
- user: quantum-user
service.running:
- name: ... | d55bfdad496eb7e5fc044bbb685ce13d2e17c7f2 | quantum/ovs.sls | quantum/ovs.sls | SaltStack |
<|file_sep|>original/requirements-dev.txt
aiounittest==1.3.1
codecov==2.0.22
coverage==5.1
flit==2.3.0
mypy==0.770
pylint==2.4.4
twine==1.15.0 # pyup: >=1.15,<2
<|file_sep|>current/requirements-dev.txt
aiounittest==1.3.1
codecov==2.0.22
coverage==5.1
flit==2.3.0
mypy==0.770
pylint==2.4.4
twine==1.15.0 # pyup: >=1.15,... | aiounittest==1.3.1
codecov==2.0.22
coverage[toml]==5.1
flit==2.3.0
mypy==0.770
pylint==2.4.4
twine==1.15.0 # pyup: >=1.15,<2 | <|file_sep|>original/requirements-dev.txt
aiounittest==1.3.1
codecov==2.0.22
coverage==5.1
flit==2.3.0
mypy==0.770
pylint==2.4.4
twine==1.15.0 # pyup: >=1.15,<2
<|file_sep|>current/requirements-dev.txt
aiounittest==1.3.1
codecov==2.0.22
coverage==5.1
flit==2.3.0
mypy==0.770
pylint==2.4.4
twine==1.15.0 # pyup: >=1.15,... | 9a1a37540f3e6b6efae1cd6a38153aa3bd824501 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/packs/git/README.md
<|file_sep|>current/packs/git/README.md
<|file_sep|>updated/packs/git/README.md | # Git Integration Pack
Pack which allows integration with Git repositories.
## Configuration
* ``url`` - URL to the Git repository you want to monitor (e.g.
`git@demo-git:/home/git/repos/test.git`)
## Sensors
### GitCommitSensor
This sensors periodically polls defined Git repository for new commits. When a
new ... | <|file_sep|>original/packs/git/README.md
<|file_sep|>current/packs/git/README.md
<|file_sep|>updated/packs/git/README.md
# Git Integration Pack
Pack which allows integration with Git repositories.
## Configuration
* ``url`` - URL to the Git repository you want to monitor (e.g.
`git@demo-git:/home/git/repos/test.... | 72815be4f204cdf39613a954009c82da9b2b0c12 | packs/git/README.md | packs/git/README.md | Markdown |
<|file_sep|>original/templates/home.html
{% extends "skel.html" %}
{% block content %}
{% if user.welcome %}
{% include "welcome.html "%}
{% else %}
<div class="row">
<div class="small-12 columns">
<h1>DocHub</h1>
<h3><i class="fi-list-thumbnails"></i> Flux d'actualités</h3>
</div>
</div>
{% ... | {% extends "skel.html" %}
{% block content %}
{% if user.welcome %}
{% include "welcome.html" %}
{% else %}
<div class="row">
<div class="small-12 columns">
<h1>DocHub</h1>
<h3><i class="fi-list-thumbnails"></i> Flux d'actualités</h3>
</div>
</div>
{% endif %}
<div class="row">
<div class="... | <|file_sep|>original/templates/home.html
{% extends "skel.html" %}
{% block content %}
{% if user.welcome %}
{% include "welcome.html "%}
{% else %}
<div class="row">
<div class="small-12 columns">
<h1>DocHub</h1>
<h3><i class="fi-list-thumbnails"></i> Flux d'actualités</h3>
</div>
</div>
{% ... | a0fc04a4c4ddb7b775f83fd0ce268174add0aa3d | templates/home.html | templates/home.html | HTML |
<|file_sep|>original/package.json
{
"name": "fran",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"test"
],
"author": "Johan Andersson",
"license": "MIT"
}
<|file_sep|>current/package.json
{
"n... | {
"name": "fran",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"test"
],
"author": "Johan Andersson",
"license": "MIT",
"dependencies": {
"coffee-script": "^1.8.0"
}
} | <|file_sep|>original/package.json
{
"name": "fran",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"test"
],
"author": "Johan Andersson",
"license": "MIT"
}
<|file_sep|>current/package.json
{
"n... | b1277fe045fdb06182d997cc4bfc994dff5d6327 | package.json | package.json | JSON |
<|file_sep|>src/Enum.php.diff
original:
public function expose()
updated:
public static function expose()
<|file_sep|>src/Enum.php.diff
original:
return $this->identifiers();
updated:
return self::identifiers();
<|file_sep|>src/Enum.php.diff
original:
protected function identifiers()
updated:
protected st... | namespace Bolt;
use ReflectionClass;
abstract class Enum
{
public static function expose()
{
return self::identifiers();
}
protected static function identifiers()
{
$refl = new ReflectionClass(get_called_class());
$constants = $refl->getConstants();
asort($constants);
return $constants;... | <|file_sep|>src/Enum.php.diff
original:
public function expose()
updated:
public static function expose()
<|file_sep|>src/Enum.php.diff
original:
return $this->identifiers();
updated:
return self::identifiers();
<|file_sep|>src/Enum.php.diff
original:
protected function identifiers()
updated:
protected st... | b582402c292d94ffe084838b920eb8657b39578f | src/Enum.php | src/Enum.php | PHP |
<|file_sep|>test_classy/test_route_base.py.diff
original:
BasicView.register(app, route_base="/rb_test/")
BasicView.register(app)
updated:
<|file_sep|>test_classy/test_route_base.py.diff
original:
RouteBaseView.register(app)
def test_registered_route_base():
client = app.test_client()
resp = client.get('/rb_... | from flask import Flask
from .view_classes import BasicView, RouteBaseView
from nose.tools import *
app = Flask('route_base')
RouteBaseView.register(app, route_base="/rb_test2/")
def test_route_base_override():
client = app.test_client()
resp = client.get('/rb_test2/')
eq_(b"Index", resp.data) | <|file_sep|>test_classy/test_route_base.py.diff
original:
BasicView.register(app, route_base="/rb_test/")
BasicView.register(app)
updated:
<|file_sep|>test_classy/test_route_base.py.diff
original:
RouteBaseView.register(app)
def test_registered_route_base():
client = app.test_client()
resp = client.get('/rb_... | b75e19bcc20f4b35a1712633fe941fdab1fd1029 | test_classy/test_route_base.py | test_classy/test_route_base.py | Python |
<|file_sep|>original/.travis.yml
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda upd... | - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update --yes conda
install:
# Dow... | <|file_sep|>original/.travis.yml
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda upd... | dea3cee204fd4b07c976461537a5724968f46ed8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/mentoring/templates/html/mentoring.html
<div class="mentoring">
<div class="missing-dependency warning" data-missing="{{ self.has_missing_dependency }}">
You need to complete <a href="{{ missing_dependency_url }}">the previous step</a> before
attempting this step.
</div>
{% for name, ... | <div class="mentoring">
<div class="missing-dependency warning" data-missing="{{ self.has_missing_dependency }}">
You need to complete <a href="{{ missing_dependency_url }}">the previous step</a> before
attempting this step.
</div>
{% for name, c in named_children %}
{{c.body_html|safe}}
{% endfor %}
... | <|file_sep|>original/mentoring/templates/html/mentoring.html
<div class="mentoring">
<div class="missing-dependency warning" data-missing="{{ self.has_missing_dependency }}">
You need to complete <a href="{{ missing_dependency_url }}">the previous step</a> before
attempting this step.
</div>
{% for name, ... | c9d4e861d01fd840bd5221b410534406a2fcf784 | mentoring/templates/html/mentoring.html | mentoring/templates/html/mentoring.html | HTML |
<|file_sep|>original/app/assets/javascripts/components/post-comment.js
Hummingbird.PostCommentComponent = Ember.Component.extend({
classNames: ["status-update-panel"],
didInsertElement: function() {
this.$(".status-form").focus(function() {
self.$(".status-form").autosize({append: "\n"});
self.$(".... | Hummingbird.PostCommentComponent = Ember.Component.extend({
classNames: ["status-update-panel"],
didInsertElement: function() {
var self = this;
this.$(".status-form").focus(function() {
self.$(".status-form").autosize({append: "\n"});
self.$(".panel-footer").slideDown(200);
});
this.$(... | <|file_sep|>original/app/assets/javascripts/components/post-comment.js
Hummingbird.PostCommentComponent = Ember.Component.extend({
classNames: ["status-update-panel"],
didInsertElement: function() {
this.$(".status-form").focus(function() {
self.$(".status-form").autosize({append: "\n"});
self.$(".... | 74a1f655b6eb6b754a9e9f465f4abe26f7c324b9 | app/assets/javascripts/components/post-comment.js | app/assets/javascripts/components/post-comment.js | JavaScript |
<|file_sep|>Databrary/Web/JSHint.hs.diff
original:
updated:
import System.Posix.IO.ByteString (openFd, OpenMode(WriteOnly), defaultFileFlags, closeFd)
<|file_sep|>Databrary/Web/JSHint.hs.diff
original:
setFileTimestamps h ft ft
updated:
<|file_sep|>original/Databrary/Web/JSHint.hs
import Paths_databrary.Node
... | import Databrary.Web.Types
import Databrary.Web.Generate
checkJSHint :: WebGenerator
checkJSHint fo@(f, _)
| takeExtensions (webFileRel f) == ".js" = do
r <- fileNewer f fo
when r $ liftIO $ do
ht <- fmap snd <$> fileInfo h
ft <- modificationTimestamp <$> getFileStatus f
when (Fold.all (ft ... | <|file_sep|>Databrary/Web/JSHint.hs.diff
original:
updated:
import System.Posix.IO.ByteString (openFd, OpenMode(WriteOnly), defaultFileFlags, closeFd)
<|file_sep|>Databrary/Web/JSHint.hs.diff
original:
setFileTimestamps h ft ft
updated:
<|file_sep|>original/Databrary/Web/JSHint.hs
import Paths_databrary.Node
... | c22aa70c1fa230e647ab8b3a41dbc6b0cc24285b | Databrary/Web/JSHint.hs | Databrary/Web/JSHint.hs | Haskell |
<|file_sep|>tests/CMakeLists.txt.diff
original:
add_executable(${TESTS_NAME}
updated:
set(${TESTS_NAME}_SOURCES
<|file_sep|>original/tests/CMakeLists.txt
option.cpp
section_iterator.cpp
section.cpp
config_iterator.cpp
config.cpp
exception.cpp
parser.cpp
option_schema.cpp
section_schema.cpp
string_utils.cpp
s... | option.cpp
section_iterator.cpp
section.cpp
config_iterator.cpp
config.cpp
exception.cpp
parser.cpp
option_schema.cpp
section_schema.cpp
string_utils.cpp
schema.cpp)
add_executable(${TESTS_NAME} ${${TESTS_NAME}_SOURCES})
# Link with Google libraries
target_link_libraries(${TESTS_NAME} gtest gtest_main)
tar... | <|file_sep|>tests/CMakeLists.txt.diff
original:
add_executable(${TESTS_NAME}
updated:
set(${TESTS_NAME}_SOURCES
<|file_sep|>original/tests/CMakeLists.txt
option.cpp
section_iterator.cpp
section.cpp
config_iterator.cpp
config.cpp
exception.cpp
parser.cpp
option_schema.cpp
section_schema.cpp
string_utils.cpp
s... | 3e39aac5a35eb77d866d57c6025074f3acb7de00 | tests/CMakeLists.txt | tests/CMakeLists.txt | Text |
<|file_sep|>original/src/site/app/lib/components/pioneer-tree-node/pioneer-tree-node.component.ts
import { IPioneerTreeExpandedNode } from "../../models/pioneer-tree-expanded-node.model"
import { PioneerTreeService } from "../../services/pioneer-tree.service"
@Component({
selector: '[pioneer-tree-node],[pt-node]'... | import { IPioneerTreeExpandedNode } from "../../models/pioneer-tree-expanded-node.model"
import { PioneerTreeService } from "../../services/pioneer-tree.service"
@Component({
selector: '[pioneer-tree-node],[pt-node]',
template: `
<div class="pioneer-tree-node"
(click)="onClicked()">
<div class="pione... | <|file_sep|>original/src/site/app/lib/components/pioneer-tree-node/pioneer-tree-node.component.ts
import { IPioneerTreeExpandedNode } from "../../models/pioneer-tree-expanded-node.model"
import { PioneerTreeService } from "../../services/pioneer-tree.service"
@Component({
selector: '[pioneer-tree-node],[pt-node]'... | 31f5757421fba3e93d01fe101bb11a15ba355f91 | src/site/app/lib/components/pioneer-tree-node/pioneer-tree-node.component.ts | src/site/app/lib/components/pioneer-tree-node/pioneer-tree-node.component.ts | TypeScript |
<|file_sep|>original/doc/release-notes-16060.md
<|file_sep|>current/doc/release-notes-16060.md
<|file_sep|>updated/doc/release-notes-16060.md | Low-level RPC changes
----------------------
- Soft fork reporting in the `getblockchaininfo` return object has been
updated. For full details, see the RPC help text. In summary:
- The `bip9_softforks` sub-object is no longer returned
- The `softforks` sub-object now returns an object keyed by soft fork name,
... | <|file_sep|>original/doc/release-notes-16060.md
<|file_sep|>current/doc/release-notes-16060.md
<|file_sep|>updated/doc/release-notes-16060.md
Low-level RPC changes
----------------------
- Soft fork reporting in the `getblockchaininfo` return object has been
updated. For full details, see the RPC help text. In sum... | ea8e293945bcadd633357861c691e885ad3703e0 | doc/release-notes-16060.md | doc/release-notes-16060.md | Markdown |
<|file_sep|>original/.github/comment-template.md
Howdy 🖐 {{ .author }} ! Thank you for your interest in this project. We value your feedback and will respond soon.
If you want to contribute to this project, please make yourself familiar with the `CONTRIBUTION` [guidelines](./../CONTRIBUTING.md).
<|file_sep|>cu... | Howdy 🖐 {{ .author }} ! Thank you for your interest in this project. We value your feedback and will respond soon.
If you want to contribute to this project, please make yourself familiar with the `CONTRIBUTION` [guidelines](https://github.com/vmware/govmomi/blob/master/CONTRIBUTING.md). | <|file_sep|>original/.github/comment-template.md
Howdy 🖐 {{ .author }} ! Thank you for your interest in this project. We value your feedback and will respond soon.
If you want to contribute to this project, please make yourself familiar with the `CONTRIBUTION` [guidelines](./../CONTRIBUTING.md).
<|file_sep|>cu... | b4e1f9658d2f6c7fe8eebf3b364863aae9cd74d8 | .github/comment-template.md | .github/comment-template.md | Markdown |
<|file_sep|>butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java.diff
original:
updated:
import com.android.tools.lint.detector.api.ApiKt;
<|file_sep|>original/butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java
package butterknife.lint;
import com.android.tools.lint.client.api.IssueRegistr... | package butterknife.lint;
import com.android.tools.lint.client.api.IssueRegistry;
import com.android.tools.lint.detector.api.ApiKt;
import com.android.tools.lint.detector.api.Issue;
import com.google.common.collect.ImmutableList;
import java.util.List;
/**
* Contains references to all custom lint checks for butterkn... | <|file_sep|>butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java.diff
original:
updated:
import com.android.tools.lint.detector.api.ApiKt;
<|file_sep|>original/butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java
package butterknife.lint;
import com.android.tools.lint.client.api.IssueRegistr... | 84db08e99c16d5bf3e5c035880adb440e02099fd | butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java | butterknife-lint/src/main/java/butterknife/lint/LintRegistry.java | Java |
<|file_sep|>original/.travis.yml
allow_failures:
- php: nightly
env:
matrix:
- PREFER_LOWEST = "--prefer-lowest --prefer-stable"
- PREFER_LOWEST = ""
before_script:
- travis_retry composer self-update
- travis_retry composer update $PREFER_LOWEST --no-interaction
script:
-... | allow_failures:
- php: nightly
env:
matrix:
- PREFER_LOWEST = "--prefer-lowest --prefer-stable"
- PREFER_LOWEST = ""
before_script:
- travis_retry composer self-update
- travis_retry composer update $PREFER_LOWEST --no-interaction
script:
- make travis
after_success:
... | <|file_sep|>original/.travis.yml
allow_failures:
- php: nightly
env:
matrix:
- PREFER_LOWEST = "--prefer-lowest --prefer-stable"
- PREFER_LOWEST = ""
before_script:
- travis_retry composer self-update
- travis_retry composer update $PREFER_LOWEST --no-interaction
script:
-... | 17d69e5c9d8b83a0ef4a60646e01d870c19e3a13 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/public/configurations/queries/vss-domain-flow-explorer.json
{
"id":"vss-domain-flow-explorer",
"title":"Flow Information",
"service":"elasticsearch",
"query":{
"index":"{{index:nuage_flow}}",
"type":"{{type:nuage_doc_type}}",
"body":{
"size": 5000,
... | {
"id":"vss-domain-flow-explorer",
"title":"Flow Information",
"service":"elasticsearch",
"query":{
"index":"{{index:nuage_flow}}",
"type":"{{type:nuage_doc_type}}",
"body":{
"size": 1000,
"sort": [
{ "timestamp": { "order": "desc" } }
],... | <|file_sep|>original/public/configurations/queries/vss-domain-flow-explorer.json
{
"id":"vss-domain-flow-explorer",
"title":"Flow Information",
"service":"elasticsearch",
"query":{
"index":"{{index:nuage_flow}}",
"type":"{{type:nuage_doc_type}}",
"body":{
"size": 5000,
... | 6221dbaf26cec064d5ac6db903a53e8bebfa270c | public/configurations/queries/vss-domain-flow-explorer.json | public/configurations/queries/vss-domain-flow-explorer.json | JSON |
<|file_sep|>spec/models/spree/shipment_spec.rb.diff
original:
updated:
context "with a canceled order" do
before { shipment.order.update_columns(state: 'canceled') }
<|file_sep|>spec/models/spree/shipment_spec.rb.diff
original:
context "with a risky order" do
before { allow(shipment.order).to recei... | end
context "with an approved order" do
before { shipment.order.contents.approve(name: 'test approver') }
it "pending shipments remain pending" do
expect(subject).to eq "pending"
end
end
[:shipped, :ready].each do |state|
context "the shipment is #{state}" do
b... | <|file_sep|>spec/models/spree/shipment_spec.rb.diff
original:
updated:
context "with a canceled order" do
before { shipment.order.update_columns(state: 'canceled') }
<|file_sep|>spec/models/spree/shipment_spec.rb.diff
original:
context "with a risky order" do
before { allow(shipment.order).to recei... | 23e541263196d57b4653c7deb392e04d72b715ec | spec/models/spree/shipment_spec.rb | spec/models/spree/shipment_spec.rb | Ruby |
<|file_sep|>satori.tools/satori/tools/console/__init__.py.diff
original:
from satori.tools import setup
updated:
from satori.tools import options, setup
<|file_sep|>satori.tools/satori/tools/console/__init__.py.diff
original:
setup()
updated:
options.add_argument('--ipython', help='Use IPython', action=... | # vim:ts=4:sts=4:sw=4:expandtab
def main():
from satori.tools import options, setup
options.add_argument('--ipython', help='Use IPython', action='store_true')
flags = setup()
from satori.client.common import want_import
want_import(globals(), "*")
if flags.ipython:
print 'IPython nee... | <|file_sep|>satori.tools/satori/tools/console/__init__.py.diff
original:
from satori.tools import setup
updated:
from satori.tools import options, setup
<|file_sep|>satori.tools/satori/tools/console/__init__.py.diff
original:
setup()
updated:
options.add_argument('--ipython', help='Use IPython', action=... | 81fc712a28c44bc9aca2b7dd48449285dcd32bcc | satori.tools/satori/tools/console/__init__.py | satori.tools/satori/tools/console/__init__.py | Python |
<|file_sep|>original/test/application_system_test_case.rb
# frozen_string_literal: true
# Copyright the CII Best Practices badge contributors
# SPDX-License-Identifier: MIT
require 'test_helper'
# Must run headless and disable sandbox, see:
# https://medium.com/@john200Ok/running-rails-6-system-tests-using-chrome-he... | require 'test_helper'
# Must run headless and disable sandbox, see:
# https://medium.com/@john200Ok/running-rails-6-system-tests-using-chrome-headless-and-selenium-on-gitlab-ci-9b4de5cafcd0
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_chrome, screen_size: [1... | <|file_sep|>original/test/application_system_test_case.rb
# frozen_string_literal: true
# Copyright the CII Best Practices badge contributors
# SPDX-License-Identifier: MIT
require 'test_helper'
# Must run headless and disable sandbox, see:
# https://medium.com/@john200Ok/running-rails-6-system-tests-using-chrome-he... | ec2973a0b494f8cea8c842a79619c1e5b0a8bc61 | test/application_system_test_case.rb | test/application_system_test_case.rb | Ruby |
<|file_sep|>original/.travis.yml
language: erlang
otp_release:
- 22.1
- 21.3
- 20.1
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis"
<|file_sep|>current/.travis.yml
language: erlang
otp_release:
- 22.1
- 21.3
- 20.1... | language: erlang
otp_release:
- 22.1
- 21.3
- 20.1
- 19.3
- 18.3
- 17.5
- R16B03-1
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis" | <|file_sep|>original/.travis.yml
language: erlang
otp_release:
- 22.1
- 21.3
- 20.1
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis"
<|file_sep|>current/.travis.yml
language: erlang
otp_release:
- 22.1
- 21.3
- 20.1... | 00635a38c2d288feb29940ac01ced46913fc7a27 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java
<|file_sep|>current/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java
<|file_sep|>updated/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java | package org.jenkins.tools.test.hook;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jenkins.tools.test.model.PomData;
public class AwsJavaSdkHook extends AbstractMultiParentHook {
private static final Logger LOGGER = Logger.getLogger(AwsJavaSdkHook.class.getName(... | <|file_sep|>original/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java
<|file_sep|>current/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java
<|file_sep|>updated/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java
packa... | c45dc47dc7ce6a8630899bb612384527b6b0ad5d | plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java | plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AwsJavaSdkHook.java | Java |
<|file_sep|>original/spec/main-spec.js
it('works', function() {
waitsForPromise(function() {
return StreamPromise.create(FS.createReadStream(`${__dirname}/fixtures/something.txt`))
.then(function(contents) {
expect(contents).toBe(`Something\n`)
})
})
})
it('limits by bytes'... | let Threw = false
return StreamPromise.create(FS.createReadStream(`${__dirname}/fixtures/something.txt`), 1)
.catch(function() {
Threw = true
})
.then(function() {
expect(Threw).toBe(true)
})
})
})
it('rejects promise on stream error', function() {... | <|file_sep|>original/spec/main-spec.js
it('works', function() {
waitsForPromise(function() {
return StreamPromise.create(FS.createReadStream(`${__dirname}/fixtures/something.txt`))
.then(function(contents) {
expect(contents).toBe(`Something\n`)
})
})
})
it('limits by bytes'... | fded4d32e273e3d2183005c803bcecc68fa616e0 | spec/main-spec.js | spec/main-spec.js | JavaScript |
<|file_sep|>original/requirements.txt
cookiecutter==1.4.0
flake8==3.0.4
sh==1.11
virtualenv==15.0.3
Sphinx==1.4.6
sphinx-rtd-theme==0.1.9
# Testing
pytest==3.0.3
pep8==1.7.0
pyflakes==1.3.0
tox==2.3.1
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.4.0
flake8==3.0.4
sh==1.11
virtualenv==15.0... | cookiecutter==1.4.0
flake8==3.0.4
sh==1.11
virtualenv==15.0.3
Sphinx==1.4.8
sphinx-rtd-theme==0.1.9
# Testing
pytest==3.0.3
pep8==1.7.0
pyflakes==1.3.0
tox==2.3.1
pytest-cookies==0.2.0 | <|file_sep|>original/requirements.txt
cookiecutter==1.4.0
flake8==3.0.4
sh==1.11
virtualenv==15.0.3
Sphinx==1.4.6
sphinx-rtd-theme==0.1.9
# Testing
pytest==3.0.3
pep8==1.7.0
pyflakes==1.3.0
tox==2.3.1
pytest-cookies==0.2.0
<|file_sep|>current/requirements.txt
cookiecutter==1.4.0
flake8==3.0.4
sh==1.11
virtualenv==15.0... | d02695c01c732252979ce7c663d287cc4cb31494 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/doc/README.md
# Documentation for bform
- [Intro to the whole stack](stack.md)
- [Setup develop environment]
<|file_sep|>current/doc/README.md
# Documentation for bform
- [Intro to the whole stack](stack.md)
- [Setup develop environment]
<|file_sep|>updated/doc/README.md | # Documentation for bform
- [Intro to the whole stack](stack.md)
- [Setup develop environment](setup.md)
## Test
- `composer test` | <|file_sep|>original/doc/README.md
# Documentation for bform
- [Intro to the whole stack](stack.md)
- [Setup develop environment]
<|file_sep|>current/doc/README.md
# Documentation for bform
- [Intro to the whole stack](stack.md)
- [Setup develop environment]
<|file_sep|>updated/doc/README.md
# Documentation for bform... | f8a17af1840cc25dd4c388fa14dfb87cbe022b36 | doc/README.md | doc/README.md | Markdown |
<|file_sep|>lib/mangaeden_api/configuration.rb.diff
original:
HOST = 'https://www.mangaeden.com/'
updated:
HOST = 'http://www.mangaeden.com/'
<|file_sep|>original/lib/mangaeden_api/configuration.rb
# Define some usefull constant.
module MangaedenApi
HOST = 'https://www.mangaeden.com/'
API_HOST = "#{HOST}api/"
... | # Define some usefull constant.
module MangaedenApi
HOST = 'http://www.mangaeden.com/'
API_HOST = "#{HOST}api/"
IMAGE_HOST = 'http://cdn.mangaeden.com/mangasimg/'
end | <|file_sep|>lib/mangaeden_api/configuration.rb.diff
original:
HOST = 'https://www.mangaeden.com/'
updated:
HOST = 'http://www.mangaeden.com/'
<|file_sep|>original/lib/mangaeden_api/configuration.rb
# Define some usefull constant.
module MangaedenApi
HOST = 'https://www.mangaeden.com/'
API_HOST = "#{HOST}api/"
... | d90de7fe4a1c270bcfb1134180f9f6679c5bbeaa | lib/mangaeden_api/configuration.rb | lib/mangaeden_api/configuration.rb | Ruby |
<|file_sep|>original/himan-scripts/snwc-copy-smartmet.lua
<|file_sep|>current/himan-scripts/snwc-copy-smartmet.lua
<|file_sep|>updated/himan-scripts/snwc-copy-smartmet.lua | --
-- SmartMet NWC parameters
--
-- Copy certain set of parameters from Smartmet data so that they
-- look like created from NWC (same analysis time etc)
--
local MISS = missing
local editor_prod = producer(181, "SMARTMET")
editor_prod:SetCentre(86)
editor_prod:SetProcess(181)
local editor_origintime = raw_time(rad... | <|file_sep|>original/himan-scripts/snwc-copy-smartmet.lua
<|file_sep|>current/himan-scripts/snwc-copy-smartmet.lua
<|file_sep|>updated/himan-scripts/snwc-copy-smartmet.lua
--
-- SmartMet NWC parameters
--
-- Copy certain set of parameters from Smartmet data so that they
-- look like created from NWC (same analysis ti... | 67f16855887dff3d89a04fc65fea3513420f74cf | himan-scripts/snwc-copy-smartmet.lua | himan-scripts/snwc-copy-smartmet.lua | Lua |
<|file_sep|>original/deploy_requirements.txt
-r pip_requirements.txt
psycopg2==2.4
gunicorn==19.1.0
pysolr==2.0.13
dnspython==1.11.0
launchpadlib==1.9.8
django-redis-cache==0.9.5
django-mailgun==0.2.2
# Payments
stripe==1.19.1
#For resizing images
pillow
#Uncomment this if you want to index things in solr.
cssselect... | -r pip_requirements.txt
psycopg2==2.4
gunicorn==19.1.0
pysolr==2.0.13
dnspython==1.11.0
launchpadlib==1.9.8
django-redis-cache==0.9.5
django-mailgun==0.2.2
#For resizing images
pillow
#Uncomment this if you want to index things in solr.
cssselect==0.7.1 | <|file_sep|>original/deploy_requirements.txt
-r pip_requirements.txt
psycopg2==2.4
gunicorn==19.1.0
pysolr==2.0.13
dnspython==1.11.0
launchpadlib==1.9.8
django-redis-cache==0.9.5
django-mailgun==0.2.2
# Payments
stripe==1.19.1
#For resizing images
pillow
#Uncomment this if you want to index things in solr.
cssselect... | c1c26eb6634ae65d46b9375cfe1eeb0730e2d942 | deploy_requirements.txt | deploy_requirements.txt | Text |
<|file_sep|>original/app/controllers/responses_controller.rb
class ResponsesController < ApplicationController
def new
@parent = parent_object
@parent_name = @parent.class.name.downcase.pluralize
@response = Response.new
end
def create
@parent = parent_object
@response = @parent.responses.bu... | class ResponsesController < ApplicationController
def new
if logged_in?
@parent = parent_object
@parent_name = @parent.class.name.downcase.pluralize
@response = Response.new
else
redirect_to login_path
end
end
def create
@parent = parent_object
@response = @parent.res... | <|file_sep|>original/app/controllers/responses_controller.rb
class ResponsesController < ApplicationController
def new
@parent = parent_object
@parent_name = @parent.class.name.downcase.pluralize
@response = Response.new
end
def create
@parent = parent_object
@response = @parent.responses.bu... | 85e51af9dbf95b790809dfb5940dfa53439a5850 | app/controllers/responses_controller.rb | app/controllers/responses_controller.rb | Ruby |
<|file_sep|>original/README.md
# Rspec::RuntimeLogger [](https://travis-ci.org/mrkn/rspec-runtime_logger) [](https://codeclimate.com/github/mrkn/rspec-runtime_logger)
TODO: W... | # Rspec::RuntimeLogger [](https://travis-ci.org/mrkn/rspec-runtime_logger) [](https://codeclimate.com/github/mrkn/rspec-runtime_logger) [](https://travis-ci.org/mrkn/rspec-runtime_logger) [](https://codeclimate.com/github/mrkn/rspec-runtime_logger)
TODO: W... | a881d19284ff653ebdf2eca2fc1e22391ccc0997 | README.md | README.md | Markdown |
<|file_sep|>original/pyproject.toml
[tool.poetry]
name = "pydle"
version = "1.0.0"
description = "A compact, flexible, and standards-abiding IRC library for python3."
authors = ["Shiz <hi@shiz.me>"]
repository = "https://github.com/Shizmob/pydle"
keywords = ["irc", "library","python3","compact","flexible"]
license = "B... | [tool.poetry]
name = "pydle"
version = "1.0.0"
description = "A compact, flexible, and standards-abiding IRC library for python3."
authors = ["Shiz <hi@shiz.me>"]
repository = "https://github.com/Shizmob/pydle"
keywords = ["irc", "library","python3","compact","flexible"]
license = "BSD"
[tool.poetry.dependencies]
pyth... | <|file_sep|>original/pyproject.toml
[tool.poetry]
name = "pydle"
version = "1.0.0"
description = "A compact, flexible, and standards-abiding IRC library for python3."
authors = ["Shiz <hi@shiz.me>"]
repository = "https://github.com/Shizmob/pydle"
keywords = ["irc", "library","python3","compact","flexible"]
license = "B... | 133f72d0590664a7deeae75fe59571eaeea55bdd | pyproject.toml | pyproject.toml | TOML |
<|file_sep|>original/performance-test.py
<|file_sep|>current/performance-test.py
<|file_sep|>updated/performance-test.py | #!/usr/bin/env python
import time
import logging
from ina219 import INA219
SHUNT_OHMS = 0.1
MAX_EXPECTED_AMPS = 0.2
READS = 100
ina = INA219(SHUNT_OHMS, MAX_EXPECTED_AMPS, log_level=logging.INFO)
def init():
ina.configure(ina.RANGE_16V, ina.GAIN_AUTO)
def read():
for x in range(0, READS):
v = ina... | <|file_sep|>original/performance-test.py
<|file_sep|>current/performance-test.py
<|file_sep|>updated/performance-test.py
#!/usr/bin/env python
import time
import logging
from ina219 import INA219
SHUNT_OHMS = 0.1
MAX_EXPECTED_AMPS = 0.2
READS = 100
ina = INA219(SHUNT_OHMS, MAX_EXPECTED_AMPS, log_level=logging.IN... | 1a1d390ce80ffe3fea7e1e132090f38072f38117 | performance-test.py | performance-test.py | Python |
<|file_sep|>original/source/php/App.php
<?php
namespace WpListings;
class App
{
public static $uploadDir;
public function __construct()
{
self::$uploadDir = $this->getUploadDir();
add_filter('acf/settings/load_json', array($this, 'jsonLoadPath'));
new \WpListings\Listings();
... | <?php
namespace WpListings;
class App
{
public static $uploadDir;
public function __construct()
{
add_action('plugins_loaded', array($this, 'init'));
}
public function init()
{
if (!function_exists('get_field') && !function_exists('acf_add_options_page')) {
add_ac... | <|file_sep|>original/source/php/App.php
<?php
namespace WpListings;
class App
{
public static $uploadDir;
public function __construct()
{
self::$uploadDir = $this->getUploadDir();
add_filter('acf/settings/load_json', array($this, 'jsonLoadPath'));
new \WpListings\Listings();
... | 0328a54a35731d264b70c1eded2dc925dd0bafa1 | source/php/App.php | source/php/App.php | PHP |
<|file_sep|>original/package.json
"homepage": "https://github.com/Becklyn/mojave",
"bugs": {
"url": "https://github.com/Becklyn/mojave/issues"
},
"license": "BSD-3-Clause",
"dependencies": {
"mitt": "1.1.3",
"preact": "8.3.1",
"promiscuous": "0.7.2",
"unfetch"... | "homepage": "https://github.com/Becklyn/mojave",
"bugs": {
"url": "https://github.com/Becklyn/mojave/issues"
},
"license": "BSD-3-Clause",
"dependencies": {
"mitt": "1.1.3",
"preact": "8.3.1",
"promiscuous": "0.7.2",
"unfetch": "3.1.1",
"unistore": "3.... | <|file_sep|>original/package.json
"homepage": "https://github.com/Becklyn/mojave",
"bugs": {
"url": "https://github.com/Becklyn/mojave/issues"
},
"license": "BSD-3-Clause",
"dependencies": {
"mitt": "1.1.3",
"preact": "8.3.1",
"promiscuous": "0.7.2",
"unfetch"... | 8734d5583f341197d642b24defabb76edda3a684 | package.json | package.json | JSON |
<|file_sep|>test/specs/selector_manager/model/SelectorModels.js.diff
original:
describe('Selectors', () => {
updated:
describe.only('Selectors', () => {
var obj;
beforeEach(() => {
obj = new Selectors();
});
<|file_sep|>original/test/specs/selector_manager/model/SelectorModel... | beforeEach(() => {
obj = new Selectors();
});
it('Creates collection item correctly', () => {
var c = new Selectors();
var m = c.add({});
expect(m instanceof Selector).toEqual(true);
});
it('getFullString with single class', () => {
... | <|file_sep|>test/specs/selector_manager/model/SelectorModels.js.diff
original:
describe('Selectors', () => {
updated:
describe.only('Selectors', () => {
var obj;
beforeEach(() => {
obj = new Selectors();
});
<|file_sep|>original/test/specs/selector_manager/model/SelectorModel... | 056b353fcfa89db060af9037cd03eb164a125280 | test/specs/selector_manager/model/SelectorModels.js | test/specs/selector_manager/model/SelectorModels.js | JavaScript |
<|file_sep|>original/SIGS/app/views/reports/by_discipline.html.erb
<h1>Relatório por Disciplina</h1>
<%= form_for :reports_by_discipline, url: reports_by_discipline_post_path do |f| %>
<%= f.text_field :discipline, class: 'form-control', placeholder: 'Buscar por disciplinas' %>
<%= f.submit "Gerar", class: 'pull-r... | <h1>Relatório por Disciplina</h1>
<%= form_for :reports_by_discipline, url: reports_by_discipline_post_path do |f| %>
<%= f.text_field :discipline, class: 'form-control', placeholder: 'Buscar por disciplinas' %>
<%= f.submit "Pesquisar", class: 'pull-right btn btn-default btn-success' %>
<% end %>
<h1>Salas</h1>... | <|file_sep|>original/SIGS/app/views/reports/by_discipline.html.erb
<h1>Relatório por Disciplina</h1>
<%= form_for :reports_by_discipline, url: reports_by_discipline_post_path do |f| %>
<%= f.text_field :discipline, class: 'form-control', placeholder: 'Buscar por disciplinas' %>
<%= f.submit "Gerar", class: 'pull-r... | 0a2d691a45746215bcfb1883cd8b34b4dd96ce82 | SIGS/app/views/reports/by_discipline.html.erb | SIGS/app/views/reports/by_discipline.html.erb | HTML+ERB |
<|file_sep|>original/lib/webmock/test_unit.rb
require 'test/unit'
require 'webmock'
WebMock.enable!
module Test
module Unit
class TestCase
include WebMock::API
alias_method :teardown_without_webmock, :teardown
def teardown_with_webmock
teardown_without_webmock
WebMock.reset!
... | require 'webmock'
WebMock.enable!
module Test
module Unit
class TestCase
include WebMock::API
alias_method :teardown_without_webmock, :teardown
def teardown_with_webmock
teardown_without_webmock
WebMock.reset!
end
alias_method :teardown, :teardown_with_webmock
... | <|file_sep|>original/lib/webmock/test_unit.rb
require 'test/unit'
require 'webmock'
WebMock.enable!
module Test
module Unit
class TestCase
include WebMock::API
alias_method :teardown_without_webmock, :teardown
def teardown_with_webmock
teardown_without_webmock
WebMock.reset!
... | 73a84a7dc6db07885818a68edf34d6212e57f15b | lib/webmock/test_unit.rb | lib/webmock/test_unit.rb | Ruby |
<|file_sep|>original/migrations/20170530-add_auto_approve_flag_to_user.js
'use strict';
var models = require('../lib/model/db');
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.describeTable('Companies').then(function(attributes){
if (attributes.hasOwnProperty('auto_approve... |
'use strict';
var models = require('../lib/model/db');
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.describeTable('Users').then(function(attributes){
if (attributes.hasOwnProperty('auto_approve')) {
return 1;
}
return queryInterface.addColumn(
... | <|file_sep|>original/migrations/20170530-add_auto_approve_flag_to_user.js
'use strict';
var models = require('../lib/model/db');
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.describeTable('Companies').then(function(attributes){
if (attributes.hasOwnProperty('auto_approve... | cb6dc9ace61c795dfa5d0a63bc2b153a0c00a27f | migrations/20170530-add_auto_approve_flag_to_user.js | migrations/20170530-add_auto_approve_flag_to_user.js | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.