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/server/lib/server.js
const chokidar = require('chokidar');
const constructHierarchy = require('./roblox-tree.js');
module.exports = function startServer(dir, port) {
console.log(`Server started on http://localhost:${port}`)
console.log(`Using: ${dir}`)
let objects = constructHierarchy(dir)... | const constructHierarchy = require('./roblox-tree.js');
module.exports = function startServer(dir, port) {
console.log(`Server started on http://localhost:${port}`)
console.log(`Using: ${dir}`)
let objects = constructHierarchy(dir);
// Rebuilds the hierarchy each time a file is changed.
// Previously we wo... | <|file_sep|>original/server/lib/server.js
const chokidar = require('chokidar');
const constructHierarchy = require('./roblox-tree.js');
module.exports = function startServer(dir, port) {
console.log(`Server started on http://localhost:${port}`)
console.log(`Using: ${dir}`)
let objects = constructHierarchy(dir)... | 831427fbba2dc61622fdb67ba2ff28de66bdade5 | server/lib/server.js | server/lib/server.js | JavaScript |
<|file_sep|>original/background.js
chrome.contextMenus.create(
{
"title": "Define \"%s\"",
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
{url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText)
... | chrome.contextMenus.create(
{
"title": "Define \"%s\"",
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
{url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText).replace(/%20/g, "+")
});
... | <|file_sep|>original/background.js
chrome.contextMenus.create(
{
"title": "Define \"%s\"",
"contexts":["selection"],
"onclick": function(info, tab){
chrome.tabs.create(
{url: "http://www.google.com/search?q=define" + encodeURIComponent(" " + info.selectionText)
... | c530d6bee2bc659945b711c215b9f0368f0a8981 | background.js | background.js | JavaScript |
<|file_sep|>original/core/lib/torquebox/version.rb
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is... | # This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# ... | <|file_sep|>original/core/lib/torquebox/version.rb
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is... | 74c19cbe07a2965ff21838f685a28e519d5ac7ac | core/lib/torquebox/version.rb | core/lib/torquebox/version.rb | Ruby |
<|file_sep|>original/app/views/settings/_intouch.html.erb
<% intouch_tabs = [
{name: 'common', partial: 'settings/common', label: 'intouch.label.common'},
{name: 'telegram', partial: 'settings/telegram', label: 'intouch.label.telegram'},
{name: 'settings_templates', partial: 'settings/settings_templates', l... | <% intouch_tabs = [
{name: 'common', partial: 'settings/common', label: 'intouch.label.common'},
{name: 'telegram', partial: 'settings/telegram', label: 'intouch.label.telegram'},
{name: 'settings_templates', partial: 'settings/settings_templates', label: 'intouch.label.settings_templates'},
{name: 'sid... | <|file_sep|>original/app/views/settings/_intouch.html.erb
<% intouch_tabs = [
{name: 'common', partial: 'settings/common', label: 'intouch.label.common'},
{name: 'telegram', partial: 'settings/telegram', label: 'intouch.label.telegram'},
{name: 'settings_templates', partial: 'settings/settings_templates', l... | 5ab840c838425e1e8c14d7e8704254f332315a75 | app/views/settings/_intouch.html.erb | app/views/settings/_intouch.html.erb | HTML+ERB |
<|file_sep|>original/resources/scripts/aliases.bash
alias dash="open dash://$1"
alias gst='git status'
alias gup="git pull --rebase"
alias gp="git push"
alias gap="git add -p"
alias duet='git duet --global'
alias solo='git solo --global'
alias be='bundle exec'
alias bx='be'
alias show="ps auxww | grep -v grep | grep "
... | alias dash="open dash://$1"
alias gst='git status'
alias gup="git pull --rebase"
alias gp="git push"
alias gap="git add -p"
alias duet='git duet --global'
alias solo='git solo --global'
alias be='bundle exec'
alias bx='be'
alias show="ps auxww | grep -v grep | grep "
alias vim=nvim
alias fixow='/System/Library/Framewor... | <|file_sep|>original/resources/scripts/aliases.bash
alias dash="open dash://$1"
alias gst='git status'
alias gup="git pull --rebase"
alias gp="git push"
alias gap="git add -p"
alias duet='git duet --global'
alias solo='git solo --global'
alias be='bundle exec'
alias bx='be'
alias show="ps auxww | grep -v grep | grep "
... | 057794d21e72afd5ea4ee3f3dacb81d013cda3d1 | resources/scripts/aliases.bash | resources/scripts/aliases.bash | Shell |
<|file_sep|>src/Oro/Bundle/LocaleBundle/EventListener/LocaleListener.php.diff
original:
public function __construct(
LocaleSettings $localeSettings,
TranslatorInterface $translator
) {
updated:
public function __construct(LocaleSettings $localeSettings, TranslatorInterface $translator)
{... | }
public function onKernelRequest(GetResponseEvent $event)
{
$request = $event->getRequest();
$this->setRequest($request);
}
public function setPhpDefaultLocale($locale)
{
\Locale::setDefault($locale);
}
public static function getSubscribedEvents()
{
... | <|file_sep|>src/Oro/Bundle/LocaleBundle/EventListener/LocaleListener.php.diff
original:
public function __construct(
LocaleSettings $localeSettings,
TranslatorInterface $translator
) {
updated:
public function __construct(LocaleSettings $localeSettings, TranslatorInterface $translator)
{... | 1fdf343bcf9fe895228b721693ce499bcd11b5cf | src/Oro/Bundle/LocaleBundle/EventListener/LocaleListener.php | src/Oro/Bundle/LocaleBundle/EventListener/LocaleListener.php | PHP |
<|file_sep|>.travis.yml.diff
original:
- stack
updated:
<|file_sep|>original/.travis.yml
packages:
- stack
# Haskell requires libgmp for big integers.
- libgmp-dev
cache:
directories:
- $HOME/.stack
- $TRAVIS_BUILD_DIR/server/.stack-work
- $TRAVIS_BUILD_DIR/client-haskell/.st... | packages:
# Haskell requires libgmp for big integers.
- libgmp-dev
cache:
directories:
- $HOME/.stack
- $TRAVIS_BUILD_DIR/server/.stack-work
- $TRAVIS_BUILD_DIR/client-haskell/.stack-work
before_install:
# Download and unpack the stack executable
# We need the latest version to work arou... | <|file_sep|>.travis.yml.diff
original:
- stack
updated:
<|file_sep|>original/.travis.yml
packages:
- stack
# Haskell requires libgmp for big integers.
- libgmp-dev
cache:
directories:
- $HOME/.stack
- $TRAVIS_BUILD_DIR/server/.stack-work
- $TRAVIS_BUILD_DIR/client-haskell/.st... | 221764f3aa8255d6765c528848a09604b87310c8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/rocketmq-babel/README.md
<|file_sep|>current/rocketmq-babel/README.md
<|file_sep|>updated/rocketmq-babel/README.md | ###Introduction
Module `rocketmq-babel` gets its name from Holly Bible, Tower of Babel, meaning everyone speaks one common language.
This module is to enable virtually all other languages supported by [Thrift Project](http://thrift.apache.org) to
send/receive message to/from RocketMQ broker.
###Example Usage
You may f... | <|file_sep|>original/rocketmq-babel/README.md
<|file_sep|>current/rocketmq-babel/README.md
<|file_sep|>updated/rocketmq-babel/README.md
###Introduction
Module `rocketmq-babel` gets its name from Holly Bible, Tower of Babel, meaning everyone speaks one common language.
This module is to enable virtually all other lang... | a45b82badf6dfd5bbd83452bd3edcfe4739ad9df | rocketmq-babel/README.md | rocketmq-babel/README.md | Markdown |
<|file_sep|>original/setup.cfg
[flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
ignore = D100,D203,D204
statistics=true
application-import-names = pgcrypto
import-order-style = google
<|file_sep|>current/setup.cfg
[flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
ignore = ... | [flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
ignore = D100,D203,D204
statistics=true
application-import-names = pgcrypto
import-order-style = smarkets | <|file_sep|>original/setup.cfg
[flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
ignore = D100,D203,D204
statistics=true
application-import-names = pgcrypto
import-order-style = google
<|file_sep|>current/setup.cfg
[flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
ignore = ... | 234bfc901f5ecfe4f3caf2865330a96056878f63 | setup.cfg | setup.cfg | INI |
<|file_sep|>original/Casks/evernote-beta.rb
<|file_sep|>current/Casks/evernote-beta.rb
<|file_sep|>updated/Casks/evernote-beta.rb | class EvernoteBeta < Cask
url 'http://cdn1.evernote.com/mac-smd/prerelease/Evernote_BETA_5.6.0_Beta_6_450650.zip'
homepage 'https://evernote.com/'
version '5.6beta6'
sha256 '4cdd361c873ce94ba5b3abfe98d967267644f99be700c1af1a2c56b2bfe06f54'
link 'Evernote.app'
end | <|file_sep|>original/Casks/evernote-beta.rb
<|file_sep|>current/Casks/evernote-beta.rb
<|file_sep|>updated/Casks/evernote-beta.rb
class EvernoteBeta < Cask
url 'http://cdn1.evernote.com/mac-smd/prerelease/Evernote_BETA_5.6.0_Beta_6_450650.zip'
homepage 'https://evernote.com/'
version '5.6beta6'
sha256 '4cdd36... | 20eb191a7a92d704a9b8374f3b1e2042151d4b28 | Casks/evernote-beta.rb | Casks/evernote-beta.rb | Ruby |
<|file_sep|>original/fri/utils.py
def distance(u, v):
"""
Distance measure custom made for feature comparison.
Parameters
----------
u: first feature
v: second feature
Returns
-------
"""
u = np.asarray(u)
v = np.asarray(v)
# Euclidean differences
diff = (u - v) **... | -------
"""
u = np.asarray(u)
v = np.asarray(v)
# Euclidean differences
diff = (u - v) ** 2
# Nullify pairwise contribution
diff[u == 0] = 0
diff[v == 0] = 0
return np.sqrt(np.sum(diff))
def permutate_feature_in_data(data, feature_i, random_state):
X, y = data
X_copy =... | <|file_sep|>original/fri/utils.py
def distance(u, v):
"""
Distance measure custom made for feature comparison.
Parameters
----------
u: first feature
v: second feature
Returns
-------
"""
u = np.asarray(u)
v = np.asarray(v)
# Euclidean differences
diff = (u - v) **... | 729d3160f974c521ab6605c02cf64861be0fb6ab | fri/utils.py | fri/utils.py | Python |
<|file_sep|>app/services/order_tax_adjustments_fetcher.rb.diff
original:
.where(adjustable_id: order.id, adjustable_type: 'Spree::Order')
.order('created_at ASC') +
updated:
.where(order_adjustments.or(line_item_adjustments))
.order('created_at ASC')
end
<|file_sep|>original/app/services/order... | attr_reader :order
def all
Spree::Adjustment
.with_tax
.where(order_adjustments.or(line_item_adjustments))
.order('created_at ASC')
end
def order_adjustments
table[:adjustable_id].eq(order.id)
.and(table[:adjustable_type].eq('Spree::Order'))
end
def line_item_adjustments
... | <|file_sep|>app/services/order_tax_adjustments_fetcher.rb.diff
original:
.where(adjustable_id: order.id, adjustable_type: 'Spree::Order')
.order('created_at ASC') +
updated:
.where(order_adjustments.or(line_item_adjustments))
.order('created_at ASC')
end
<|file_sep|>original/app/services/order... | ff4d7fbc45f9ef303cedff64fc0ca710e11a48e2 | app/services/order_tax_adjustments_fetcher.rb | app/services/order_tax_adjustments_fetcher.rb | Ruby |
<|file_sep|>original/util/hashes.lua
local softreq = function (...) return select(2, pcall(require, ...)); end
local error = error;
module "hashes"
local md5 = softreq("md5");
if md5 then
if md5.digest then
local md5_digest = md5.digest;
local sha1_digest = sha1.digest;
function _M.md5(input)
return md5_di... |
local softreq = function (...) local ok, lib = pcall(require, ...); if ok then return lib; else return nil; end end
local error = error;
module "hashes"
local md5 = softreq("md5");
if md5 then
if md5.digest then
local md5_digest = md5.digest;
local sha1_digest = sha1.digest;
function _M.md5(input)
return ... | <|file_sep|>original/util/hashes.lua
local softreq = function (...) return select(2, pcall(require, ...)); end
local error = error;
module "hashes"
local md5 = softreq("md5");
if md5 then
if md5.digest then
local md5_digest = md5.digest;
local sha1_digest = sha1.digest;
function _M.md5(input)
return md5_di... | 4f2789ca0df4b51af264f11c2de3510c1db874d2 | util/hashes.lua | util/hashes.lua | Lua |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- rbx-19mode
script: bundle exec rspec spec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- rbx-19mode
script: bundle exec rspec spec
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- rbx-19mode | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- rbx-19mode
script: bundle exec rspec spec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- rbx-19mode
script: bundle exec rspec spec
<|file_sep|>updated/.travis.yml
language: ruby
... | f3a2d67960c9ce871857889062a3648b306ec1eb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/views/service-map-disclaimers.coffee
'i18next',
'app/views/base'
],
(
{t: t},
{SMItemView: SMItemView}
) ->
ServiceMapDisclaimersView: class ServiceMapDisclaimersView extends SMItemView
template: 'description-of-service'
className: 'content modal-dialog about... | 'i18next',
'app/views/base'
],
(
{t: t},
{SMItemView: SMItemView}
) ->
ServiceMapDisclaimersView: class ServiceMapDisclaimersView extends SMItemView
template: 'description-of-service'
className: 'content modal-dialog about'
events:
'click .uservoice-link': 'openUs... | <|file_sep|>original/src/views/service-map-disclaimers.coffee
'i18next',
'app/views/base'
],
(
{t: t},
{SMItemView: SMItemView}
) ->
ServiceMapDisclaimersView: class ServiceMapDisclaimersView extends SMItemView
template: 'description-of-service'
className: 'content modal-dialog about... | bf0b596073218c84e8336d73ba9cc944af6af51b | src/views/service-map-disclaimers.coffee | src/views/service-map-disclaimers.coffee | CoffeeScript |
<|file_sep|>original/app/helpers/icons_helper.rb
module IconsHelper
def boolean_to_icon(value)
if value.to_s == "true"
content_tag :i, nil, class: 'icon-ok cgreen'
else
content_tag :i, nil, class: 'icon-off clgray'
end
end
def public_icon
content_tag :i, nil, class: 'icon-globe'
end... | module IconsHelper
def boolean_to_icon(value)
if value.to_s == "true"
content_tag :i, nil, class: 'icon-circle cgreen'
else
content_tag :i, nil, class: 'icon-off clgray'
end
end
def public_icon
content_tag :i, nil, class: 'icon-globe'
end
def internal_icon
content_tag :i, nil... | <|file_sep|>original/app/helpers/icons_helper.rb
module IconsHelper
def boolean_to_icon(value)
if value.to_s == "true"
content_tag :i, nil, class: 'icon-ok cgreen'
else
content_tag :i, nil, class: 'icon-off clgray'
end
end
def public_icon
content_tag :i, nil, class: 'icon-globe'
end... | 6afc34f7b05231ac2f393a68a8e31febb5f88f96 | app/helpers/icons_helper.rb | app/helpers/icons_helper.rb | Ruby |
<|file_sep|>original/public/index.php
<?php
declare(strict_types = 1);
include('../src/common.php');
use Monolog\Handler\RotatingFileHandler;
use Monolog\Logger;
use unreal4u\MonologHandler;
use unreal4u\TelegramAPI\TgLog;
use unreal4u\TelegramBots\RequestHandler;
$logger = new Logger('TGBot');
$streamHandler = new... | <?php
declare(strict_types = 1);
include('../src/common.php');
use Monolog\Handler\RotatingFileHandler;
use Monolog\Logger;
use unreal4u\MonologHandler;
use unreal4u\TelegramAPI\TgLog;
use unreal4u\TelegramBots\RequestHandler;
$logger = new Logger('TGBot');
$streamHandler = new RotatingFileHandler('telegramApiLogs/... | <|file_sep|>original/public/index.php
<?php
declare(strict_types = 1);
include('../src/common.php');
use Monolog\Handler\RotatingFileHandler;
use Monolog\Logger;
use unreal4u\MonologHandler;
use unreal4u\TelegramAPI\TgLog;
use unreal4u\TelegramBots\RequestHandler;
$logger = new Logger('TGBot');
$streamHandler = new... | c6cf43ce7b1ba89ca91f5dd5cfcc8eb23acfa9a7 | public/index.php | public/index.php | PHP |
<|file_sep|>original/README.md
# posts-words-counter
To aggregate the frequency of words that are use in stackoverflow.com.
<|file_sep|>current/README.md
# posts-words-counter
To aggregate the frequency of words that are use in stackoverflow.com.
<|file_sep|>updated/README.md | posts-words-counter
================================
[](https://circleci.com/gh/fitzr/posts-words-counter/)
To aggregate the frequency of words that are use in stackoverflow.com. | <|file_sep|>original/README.md
# posts-words-counter
To aggregate the frequency of words that are use in stackoverflow.com.
<|file_sep|>current/README.md
# posts-words-counter
To aggregate the frequency of words that are use in stackoverflow.com.
<|file_sep|>updated/README.md
posts-words-counter
=====================... | cda1a43b912a6d82f511b7c88238473931a71a71 | README.md | README.md | Markdown |
<|file_sep|>original/client/imports/discourse/sso.component.ts
MeteorObservable.call("discourse.sso",
currentRoute.queryParams['sso'],
currentRoute.queryParams['sig']).
subscribe((result) => {
this.ngZone.run(() => {
this.step = 'redirect';
... |
MeteorObservable.call("discourse.sso",
currentRoute.queryParams['sso'],
currentRoute.queryParams['sig']).
subscribe((result) => {
this.ngZone.run(() => {
this.step = 'redirect';
});
if (Meteor.isCordova) {
window.open(result[... | <|file_sep|>original/client/imports/discourse/sso.component.ts
MeteorObservable.call("discourse.sso",
currentRoute.queryParams['sso'],
currentRoute.queryParams['sig']).
subscribe((result) => {
this.ngZone.run(() => {
this.step = 'redirect';
... | 33e00468c0dc7b886baf58ba341d2d50a3393aa0 | client/imports/discourse/sso.component.ts | client/imports/discourse/sso.component.ts | TypeScript |
<|file_sep|>original/setup.py
from distutils.core import setup
setup(
name='ohmysportsfeedspy',
packages=['ohmysportsfeedspy'],
version='0.1.2',
author = ['Brad Barkhouse', 'MySportsFeeds'],
author_email='brad.barkhouse@mysportsfeeds.com',
url='https://github.com/MySportsFeeds/mysportsfeeds-pyt... | from distutils.core import setup
setup(
name='ohmysportsfeedspy',
packages=['ohmysportsfeedspy'],
version='0.1.3',
author = ['Brad Barkhouse', 'MySportsFeeds'],
author_email='brad.barkhouse@mysportsfeeds.com',
url='https://github.com/MySportsFeeds/mysportsfeeds-python',
license='MIT',
d... | <|file_sep|>original/setup.py
from distutils.core import setup
setup(
name='ohmysportsfeedspy',
packages=['ohmysportsfeedspy'],
version='0.1.2',
author = ['Brad Barkhouse', 'MySportsFeeds'],
author_email='brad.barkhouse@mysportsfeeds.com',
url='https://github.com/MySportsFeeds/mysportsfeeds-pyt... | fe5a980dd36c24008efe8e4900a675b568e5fb9d | setup.py | setup.py | Python |
<|file_sep|>original/spec/lib/sanitize_config_spec.rb
require 'rails_helper'
require Rails.root.join('app', 'lib', 'sanitize_config.rb')
describe Sanitize::Config do
describe '::MASTODON_STRICT' do
subject { Sanitize::Config::MASTODON_STRICT }
it 'keeps h1' do
expect(Sanitize.fragment('<h1>Foo</h1>',... | # frozen_string_literal: true
require 'rails_helper'
require Rails.root.join('app', 'lib', 'sanitize_config.rb')
describe Sanitize::Config do
describe '::MASTODON_STRICT' do
subject { Sanitize::Config::MASTODON_STRICT }
it 'keeps h1' do
expect(Sanitize.fragment('<h1>Foo</h1>', subject)).to eq '<h1>Fo... | <|file_sep|>original/spec/lib/sanitize_config_spec.rb
require 'rails_helper'
require Rails.root.join('app', 'lib', 'sanitize_config.rb')
describe Sanitize::Config do
describe '::MASTODON_STRICT' do
subject { Sanitize::Config::MASTODON_STRICT }
it 'keeps h1' do
expect(Sanitize.fragment('<h1>Foo</h1>',... | 3407ae8683b36fd3514aa518b5b1634d0e88d0c7 | spec/lib/sanitize_config_spec.rb | spec/lib/sanitize_config_spec.rb | Ruby |
<|file_sep|>metadata/me.danielbarnett.addresstogps.txt.diff
original:
Maintainer Notes:
AM.xml has 1.05 (5), but gradle overrides this with 1.0 (1). See https://github.com/DanielBarnett714/AddressToGPS/issues/5 .
.
updated:
Build:1.09,9
commit=1.09
subdir=app
gradle=yes
Build:1.1,10
disable=package id ... |
Build:1.0,1
commit=v1.05
subdir=app
gradle=yes
Build:1.09,9
commit=1.09
subdir=app
gradle=yes
Build:1.1,10
disable=package id changed
commit=1.1
subdir=app
gradle=yes
Auto Update Mode:None
Update Check Mode:Tags
Current Version:1.1
Current Version Code:10 | <|file_sep|>metadata/me.danielbarnett.addresstogps.txt.diff
original:
Maintainer Notes:
AM.xml has 1.05 (5), but gradle overrides this with 1.0 (1). See https://github.com/DanielBarnett714/AddressToGPS/issues/5 .
.
updated:
Build:1.09,9
commit=1.09
subdir=app
gradle=yes
Build:1.1,10
disable=package id ... | 7b275cf38c824e62a8b7fdab577f960b7dd4b60b | metadata/me.danielbarnett.addresstogps.txt | metadata/me.danielbarnett.addresstogps.txt | Text |
<|file_sep|>original/modules/mod_ginger_base/templates/search/components/input-text.tpl
<input class="input-search do_search_cmp_input_text" type="text" name="qs" data-live="{{ instant }}" value="" />
<button type="submit" class="global-search__submit" title="{_ Search _}">{_ Search _}</button>
<|file_sep|>current/modu... | <input class="input-search do_search_cmp_input_text" type="text" name="qs" data-instant="{{ instant }}" value="" />
<button type="submit" class="global-search__submit" title="{_ Search _}">{_ Search _}</button> | <|file_sep|>original/modules/mod_ginger_base/templates/search/components/input-text.tpl
<input class="input-search do_search_cmp_input_text" type="text" name="qs" data-live="{{ instant }}" value="" />
<button type="submit" class="global-search__submit" title="{_ Search _}">{_ Search _}</button>
<|file_sep|>current/modu... | a2d740a937020bc47dcc79f0780c4dce1f0142c4 | modules/mod_ginger_base/templates/search/components/input-text.tpl | modules/mod_ginger_base/templates/search/components/input-text.tpl | Smarty |
<|file_sep|>original/public/javascripts/pages/index.js
window.location = '/rooms';
}
if (this.status === 401) {
document.getElementById('signin-message').innerHTML = 'Le mot de passe ou le pseudonyme est incorrect. <br /> Avez-vous confirmé votre inscription ?';
... | }
if (this.status === 401) {
document.getElementById('signin-message').innerHTML = 'Le mot de passe ou le pseudonyme est incorrect. <br /> Avez-vous confirmé votre inscription ?';
}
}
};
xhr.open('POST', '/signin', true);
xhr.setRequestHeader('co... | <|file_sep|>original/public/javascripts/pages/index.js
window.location = '/rooms';
}
if (this.status === 401) {
document.getElementById('signin-message').innerHTML = 'Le mot de passe ou le pseudonyme est incorrect. <br /> Avez-vous confirmé votre inscription ?';
... | 49c652b034e8f2c9238282c67e0c3394e6165382 | public/javascripts/pages/index.js | public/javascripts/pages/index.js | JavaScript |
<|file_sep|>original/webrtc/build/ios-webrtc.sh
<|file_sep|>current/webrtc/build/ios-webrtc.sh
<|file_sep|>updated/webrtc/build/ios-webrtc.sh | #!/bin/sh
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing... | <|file_sep|>original/webrtc/build/ios-webrtc.sh
<|file_sep|>current/webrtc/build/ios-webrtc.sh
<|file_sep|>updated/webrtc/build/ios-webrtc.sh
#!/bin/sh
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICEN... | 1fea17dae4ec577897791b2e3f2c36d44885462b | webrtc/build/ios-webrtc.sh | webrtc/build/ios-webrtc.sh | Shell |
<|file_sep|>lib/schema/relationshipGraph.json.diff
original:
updated:
"name": {
"type": "string"
},
<|file_sep|>original/lib/schema/relationshipGraph.json
"source": {
"type": "integer"
},
"target": {
"type": "integer"
},
"type": {
... | "source": {
"type": "integer"
},
"target": {
"type": "integer"
},
"type": {
"type": "integer"
},
"suspect": {
"type": "boolean"
}
},
"required": ["id", "source", "target", "typ... | <|file_sep|>lib/schema/relationshipGraph.json.diff
original:
updated:
"name": {
"type": "string"
},
<|file_sep|>original/lib/schema/relationshipGraph.json
"source": {
"type": "integer"
},
"target": {
"type": "integer"
},
"type": {
... | 61c13cc74d144d7747de129584e38a60346576ae | lib/schema/relationshipGraph.json | lib/schema/relationshipGraph.json | JSON |
<|file_sep|>original/.travis.yml
- 2.6
- 2.7
- 3.2
- 3.3
env:
- DJANGO_VERSION=1.4.13
- DJANGO_VERSION=1.5.8
- DJANGO_VERSION=1.6.5
install:
- pip install -q Django==$DJANGO_VERSION
- pip install coveralls
- python setup.py -q install
before_script:
- rm -rf build
script:
- coverage run --so... | - 2.6
- 2.7
- 3.2
- 3.3
env:
- DJANGO_VERSION=1.4.13
- DJANGO_VERSION=1.5.8
- DJANGO_VERSION=1.6.5
matrix:
exclude:
- python: 3.2
env: DJANGO=Django==1.4.13
- python: 3.3
env: DJANGO=Django==1.4.13
install:
- pip install -q Django==$DJANGO_VERSION
- pip install coveralls
- p... | <|file_sep|>original/.travis.yml
- 2.6
- 2.7
- 3.2
- 3.3
env:
- DJANGO_VERSION=1.4.13
- DJANGO_VERSION=1.5.8
- DJANGO_VERSION=1.6.5
install:
- pip install -q Django==$DJANGO_VERSION
- pip install coveralls
- python setup.py -q install
before_script:
- rm -rf build
script:
- coverage run --so... | 594143d2a48cab43d1de25c569eb83cbc8f41efd | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# Cartridge Images [](https://travis-ci.org/cartridge/cartridge-images)
> Image optimisation expansion pack for cartridge
To use this module, you will need [cartridge-cli](https://github.com/cartridge/car... | # Cartridge Images [](https://travis-ci.org/cartridge/cartridge-images)
> Image optimisation expansion pack for cartridge
To use this module, you will need [cartridge-cli](https://github.com/cartridge/cartridge-cli) installed.
You wil... | <|file_sep|>original/README.md
# Cartridge Images [](https://travis-ci.org/cartridge/cartridge-images)
> Image optimisation expansion pack for cartridge
To use this module, you will need [cartridge-cli](https://github.com/cartridge/car... | 1911af406529362f75c880293593b9a041414cab | README.md | README.md | Markdown |
<|file_sep|>original/app/query_api/query_api.js
/**
* Created by codaphillips on 4/18/15.
*/
(function() {
angular.module('wikiMiner.services.query_api', ['ngResource'])
.factory('query_api', ['$resource', function($resource){
return $resource('http://104.236.226.8/w/api.php', {
... | /**
* Created by codaphillips on 4/18/15.
*/
(function() {
angular.module('wikiMiner.services.query_api', ['ngResource'])
.factory('query_api', ['$resource', function($resource){
return $resource('http://104.236.226.8/w/api.php', {
action:'query',
prop:'revision... | <|file_sep|>original/app/query_api/query_api.js
/**
* Created by codaphillips on 4/18/15.
*/
(function() {
angular.module('wikiMiner.services.query_api', ['ngResource'])
.factory('query_api', ['$resource', function($resource){
return $resource('http://104.236.226.8/w/api.php', {
... | c236c165cbb606fa40607df7a933c6695ae5efef | app/query_api/query_api.js | app/query_api/query_api.js | JavaScript |
<|file_sep|>ansible/roles/docker_compose/tasks/main.yml.diff
original:
shell: curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
updated:
shell: curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`... | ---
- name: Install docker-compose via curl
shell: curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
creates=/usr/local/bin/docker-compose
- name: Make docker-compose executable
file:
path=/usr/local/bin/docke... | <|file_sep|>ansible/roles/docker_compose/tasks/main.yml.diff
original:
shell: curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
updated:
shell: curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`... | aa1b453465f2b21209be7bc3a2bb836ccec74f77 | ansible/roles/docker_compose/tasks/main.yml | ansible/roles/docker_compose/tasks/main.yml | YAML |
<|file_sep|>src/RouteCollection.php.diff
original:
* Class RouteCollection
* @package SiberianWolf\Router
updated:
* Class RouteCollection.
<|file_sep|>src/RouteCollection.php.diff
original:
* @var array $routes
updated:
* @var array
<|file_sep|>src/RouteCollection.php.diff
original:
updated:
*
<|fil... |
/**
* @param string $offset
* @param RouteInterface $value
*/
public function offsetSet($offset, $value)
{
if (!$value instanceof Route) {
throw new \InvalidArgumentException('Route collection accept only SiberianWolf\\Router\\Route object');
}
$t... | <|file_sep|>src/RouteCollection.php.diff
original:
* Class RouteCollection
* @package SiberianWolf\Router
updated:
* Class RouteCollection.
<|file_sep|>src/RouteCollection.php.diff
original:
* @var array $routes
updated:
* @var array
<|file_sep|>src/RouteCollection.php.diff
original:
updated:
*
<|fil... | a2b219d55eac5b4beae79d663b4271ac844a080e | src/RouteCollection.php | src/RouteCollection.php | PHP |
<|file_sep|>original/.github/workflows/ccpp.yml
name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt update
run: sudo apt update
- name: apt
run: sudo apt install ninja-build lua5.1 pasmo libz80ex-dev flex libbsd-dev libre... | name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: apt update
run: sudo apt update
- name: apt
run: sudo apt install ninja-build lua5.1 pasmo libz80ex-dev flex libbsd-dev libreadline-dev bison binutils-arm-linux-gnueabihf bin... | <|file_sep|>original/.github/workflows/ccpp.yml
name: C/C++ CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt update
run: sudo apt update
- name: apt
run: sudo apt install ninja-build lua5.1 pasmo libz80ex-dev flex libbsd-dev libre... | 166ed3443114d0487132a05fbd51c47ad694c114 | .github/workflows/ccpp.yml | .github/workflows/ccpp.yml | YAML |
<|file_sep|>original/support/bootstrap-ubuntu.sh
sudo apt-get update -y
# Install basic Python support
sudo apt-get install -y python3 python3-setuptools python3-pip python-virtualenv
# Install aws cli tools
sudo apt-get install -y awscli
# Install git
sudo apt-get install -y git
# Install lxc
sudo apt-get install... |
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:awstools-dev/awstools
sudo apt-get update -y
# Install basic Python support
sudo apt-get install -y python3 python3-setuptools python3-pip python-virtualenv
# Install aws cli tools
sudo apt-get install -y aw... | <|file_sep|>original/support/bootstrap-ubuntu.sh
sudo apt-get update -y
# Install basic Python support
sudo apt-get install -y python3 python3-setuptools python3-pip python-virtualenv
# Install aws cli tools
sudo apt-get install -y awscli
# Install git
sudo apt-get install -y git
# Install lxc
sudo apt-get install... | d8ac0b691688d5e34a03c1857a48c1caf629d909 | support/bootstrap-ubuntu.sh | support/bootstrap-ubuntu.sh | Shell |
<|file_sep|>original/.github/workflows/build.yml
name: build
on: [push]
jobs:
build:
runs-on: windows-latest
env:
COMPILER: MSVC
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
wi... | on: [push]
jobs:
build:
runs-on: windows-latest
env:
COMPILER: MSVC
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
with:
packages: conan
- run: ./.github/workflow... | <|file_sep|>original/.github/workflows/build.yml
name: build
on: [push]
jobs:
build:
runs-on: windows-latest
env:
COMPILER: MSVC
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
wi... | 69b363c2159d01837e2a716138b61bbb323b2345 | .github/workflows/build.yml | .github/workflows/build.yml | YAML |
<|file_sep|>src/main.cpp.diff
original:
#include "Network/NetworkBalancer.hpp"
updated:
#include "Tests/Unit/Network/TestNetworkBalancer.hpp"
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/ui/text/TestRunner.h>
using namespace std;
using namespace CppUnit;
<|file_sep|>original/src/main.cpp
#include <Q... | #include <QCoreApplication>
#include "Tests/Unit/Network/TestNetworkBalancer.hpp"
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/ui/text/TestRunner.h>
using namespace std;
using namespace CppUnit;
int main(int argc, char *argv[])
{
// Initialice test runner
CppUnit::TextUi::TestRunner aRunner... | <|file_sep|>src/main.cpp.diff
original:
#include "Network/NetworkBalancer.hpp"
updated:
#include "Tests/Unit/Network/TestNetworkBalancer.hpp"
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/ui/text/TestRunner.h>
using namespace std;
using namespace CppUnit;
<|file_sep|>original/src/main.cpp
#include <Q... | 175fb05eaa9f60c4a4a2405034b8d993be44a55a | src/main.cpp | src/main.cpp | C++ |
<|file_sep|>original/styles/modules/modals/_moderatorDetails.scss
.moderatorDetails {
.contentBox.mDetailWrapper {
min-height: 90px;
& > .mDetail,
& > .verifiedWrapper {
min-width: 20%;
flex-grow: 1;
}
& > .mDetail > * {
max-width: 100%;
overflow: hidden;
}
.veri... | .moderatorDetails {
.contentBox.mDetailWrapper {
min-height: 90px;
& > .mDetail,
& > .verifiedWrapper {
min-width: 20%;
flex-grow: 1;
max-width: 50%;
word-break: break-word;
}
.verifiedWrapper {
display: flex;
align-self: stretch;
flex-shrink: 0;
f... | <|file_sep|>original/styles/modules/modals/_moderatorDetails.scss
.moderatorDetails {
.contentBox.mDetailWrapper {
min-height: 90px;
& > .mDetail,
& > .verifiedWrapper {
min-width: 20%;
flex-grow: 1;
}
& > .mDetail > * {
max-width: 100%;
overflow: hidden;
}
.veri... | 76af7aa2bde154d090c0ea8a510b79642d5139de | styles/modules/modals/_moderatorDetails.scss | styles/modules/modals/_moderatorDetails.scss | SCSS |
<|file_sep|>original/config.json
{
"slug": "ecmascript",
"language": "ECMAScript",
"repository": "https://github.com/exercism/xecmascript",
"active": false,
"problems": [
"palindrome-products"
],
"deprecated": [
],
"ignore": [
"node_modules"
]
}
<|file_sep|>current/config.json
{
"slug": "... | {
"slug": "ecmascript",
"language": "ECMAScript",
"repository": "https://github.com/exercism/xecmascript",
"active": false,
"problems": [
"palindrome-products"
],
"deprecated": [
],
"ignored": [
"node_modules"
]
} | <|file_sep|>original/config.json
{
"slug": "ecmascript",
"language": "ECMAScript",
"repository": "https://github.com/exercism/xecmascript",
"active": false,
"problems": [
"palindrome-products"
],
"deprecated": [
],
"ignore": [
"node_modules"
]
}
<|file_sep|>current/config.json
{
"slug": "... | be1e2eaeffbbf1a23b28e1cddabac0f8b291fb12 | config.json | config.json | JSON |
<|file_sep|>renderscript/v8/Android.mk.diff
original:
# Don't build the library in unbundled branches.
ifeq (,$(TARGET_BUILD_APPS))
updated:
<|file_sep|>original/renderscript/v8/Android.mk
# Don't build the library in unbundled branches.
ifeq (,$(TARGET_BUILD_APPS))
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VAR... | # limitations under the License.
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.support.v8.renderscript
#LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, java/src)
include $(BUILD_STATIC_JAVA_LIBRARY)
# Include this library in the build server's output directory... | <|file_sep|>renderscript/v8/Android.mk.diff
original:
# Don't build the library in unbundled branches.
ifeq (,$(TARGET_BUILD_APPS))
updated:
<|file_sep|>original/renderscript/v8/Android.mk
# Don't build the library in unbundled branches.
ifeq (,$(TARGET_BUILD_APPS))
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VAR... | b56ff1171e9e3f94229134cd3b0c5d31fa7ad332 | renderscript/v8/Android.mk | renderscript/v8/Android.mk | Makefile |
<|file_sep|>original/watch-dns.sh
<|file_sep|>current/watch-dns.sh
<|file_sep|>updated/watch-dns.sh | #!/usr/bin/env bash
INTERFACE=${1:-enp0s31f6}
CMD="sudo tcpdump -i ${INTERFACE} -n udp port 53"
echo ${CMD}
${CMD} | <|file_sep|>original/watch-dns.sh
<|file_sep|>current/watch-dns.sh
<|file_sep|>updated/watch-dns.sh
#!/usr/bin/env bash
INTERFACE=${1:-enp0s31f6}
CMD="sudo tcpdump -i ${INTERFACE} -n udp port 53"
echo ${CMD}
${CMD} | eac3e9f07f26c223ec5c72079eec9c95f714543c | watch-dns.sh | watch-dns.sh | Shell |
<|file_sep|>addon/serializers/contributor.js.diff
original:
id: snapshot.record.get('userId') || snapshot.record.id.split('-')[1],
updated:
// TODO changeme when https://github.com/CenterForOpenScience/osf.io/pull/5824 goes in
id: snapshot.record.get('id') || snapshot.recor... | import OsfSerializer from './osf-serializer';
export default OsfSerializer.extend({
serialize: function(snapshot, options) {
// Restore relationships to serialized data
var serialized = this._super(snapshot, options);
// APIv2 expects contributor information to be nested under relationships... | <|file_sep|>addon/serializers/contributor.js.diff
original:
id: snapshot.record.get('userId') || snapshot.record.id.split('-')[1],
updated:
// TODO changeme when https://github.com/CenterForOpenScience/osf.io/pull/5824 goes in
id: snapshot.record.get('id') || snapshot.recor... | 8af1dea1587cc7e27fced244782bef5556bc86b4 | addon/serializers/contributor.js | addon/serializers/contributor.js | JavaScript |
<|file_sep|>docker/keystone/start.sh.diff
original:
#!/bin/bash
updated:
#!/bin/bash -xe
<|file_sep|>original/docker/keystone/start.sh
#!/bin/bash
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
puppet apply -v /etc/puppet/module... | #!/bin/bash -xe
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
exitcode=0
puppet apply --detailed-exitcodes -v /etc/puppet/modules/nailgun/examples/keystone-only.pp || exitcode=$?
if [ $exitcode -ge 4 ]; then
echo Puppet apply... | <|file_sep|>docker/keystone/start.sh.diff
original:
#!/bin/bash
updated:
#!/bin/bash -xe
<|file_sep|>original/docker/keystone/start.sh
#!/bin/bash
# Clean rpm locks before puppet run.
# See ticket https://bugs.launchpad.net/fuel/+bug/1339236
rm -f /var/lib/rpm/__db.*
rpm --rebuilddb
puppet apply -v /etc/puppet/module... | 74ad3dd68020aac3042f62c59c137498474ecbee | docker/keystone/start.sh | docker/keystone/start.sh | Shell |
<|file_sep|>original/app/src/main/res/values/strings.xml
<resources>
<string name="app_name">Conversion Calculator</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="length">Distance</string>
<string name="volume">Volume</string>... | <resources>
<string name="app_name">Conversion Calculator</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="length">Distance</string>
<string name="volume">Volume</string>
<string name="weight">Weight</string>
<string na... | <|file_sep|>original/app/src/main/res/values/strings.xml
<resources>
<string name="app_name">Conversion Calculator</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="length">Distance</string>
<string name="volume">Volume</string>... | 8d864471ff7441d268efc53a4f7d1b6e2d37dbc4 | app/src/main/res/values/strings.xml | app/src/main/res/values/strings.xml | XML |
<|file_sep|>original/package.json
"url": "git://github.com/ssbc/ssb-config.git"
},
"scripts": {
"test": "tape tests/*.test.js",
"test:lite": "SKIP_SERVER=true npm test"
},
"dependencies": {
"deep-extend": "^0.6.0",
"lodash.get": "^4.4.2",
"non-private-ip": "^1.2.1",
"os-homedir": "^1... | },
"scripts": {
"test": "tape tests/*.test.js",
"test:lite": "SKIP_SERVER=true npm test"
},
"dependencies": {
"deep-extend": "^0.6.0",
"lodash.get": "^4.4.2",
"non-private-ip": "^1.2.1",
"os-homedir": "^1.0.1",
"rc": "^1.1.6",
"ssb-keys": "^7.1.4"
},
"devDependencies": {
... | <|file_sep|>original/package.json
"url": "git://github.com/ssbc/ssb-config.git"
},
"scripts": {
"test": "tape tests/*.test.js",
"test:lite": "SKIP_SERVER=true npm test"
},
"dependencies": {
"deep-extend": "^0.6.0",
"lodash.get": "^4.4.2",
"non-private-ip": "^1.2.1",
"os-homedir": "^1... | bedae173bd5e2039af45c364c6b70b11b491f1b0 | package.json | package.json | JSON |
<|file_sep|>src/Propellor/Property/LightDM.hs.diff
original:
updated:
import qualified Propellor.Property.Apt as Apt
<|file_sep|>original/src/Propellor/Property/LightDM.hs
{-# LANGUAGE FlexibleInstances #-}
-- | Maintainer: Sean Whitton <spwhitton@spwhitton.name>
module Propellor.Property.LightDM where
import Prope... | {-# LANGUAGE FlexibleInstances #-}
-- | Maintainer: Sean Whitton <spwhitton@spwhitton.name>
module Propellor.Property.LightDM where
import Propellor.Base
import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.ConfFile as ConfFile
installed :: Property NoInfo
installed = Apt.installed ["l... | <|file_sep|>src/Propellor/Property/LightDM.hs.diff
original:
updated:
import qualified Propellor.Property.Apt as Apt
<|file_sep|>original/src/Propellor/Property/LightDM.hs
{-# LANGUAGE FlexibleInstances #-}
-- | Maintainer: Sean Whitton <spwhitton@spwhitton.name>
module Propellor.Property.LightDM where
import Prope... | c01b693e655ce146e8be281b2dda93a64a7d4bca | src/Propellor/Property/LightDM.hs | src/Propellor/Property/LightDM.hs | Haskell |
<|file_sep|>base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java.diff
original:
updated:
// Convenience method, probably shouldn't be here...
<|file_sep|>original/base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java
* @author jfoley
*/
class ReadableBuf... | * @author jfoley
*/
class ReadableBufferStaticStream implements StaticStream {
private final long start;
private final long end;
private final ReadableBuffer file;
// Convenience method, probably shouldn't be here...
public ReadableBufferStaticStream(DiskBTreeIterator iterator) throws IOException {
this(... | <|file_sep|>base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java.diff
original:
updated:
// Convenience method, probably shouldn't be here...
<|file_sep|>original/base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java
* @author jfoley
*/
class ReadableBuf... | 9c96ab17b1a2686fa5d391b756ba714d0288b8ca | base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java | base/src/main/java/edu/umass/cs/ciir/waltz/io/galago/ReadableBufferStaticStream.java | Java |
<|file_sep|>original/lib/liquid/static_registers.rb
def delete(key)
@registers.delete(key)
end
UNDEFINED = Object.new
def fetch(key, default = UNDEFINED, &block)
if @registers.key?(key)
@registers.fetch(key)
elsif default != UNDEFINED
@static.fetch(key, default, &bloc... | def delete(key)
@registers.delete(key)
end
UNDEFINED = Object.new
def fetch(key, default = UNDEFINED, &block)
if @registers.key?(key)
@registers.fetch(key)
elsif default != UNDEFINED
if block_given?
@static.fetch(key, &block)
else
@static.f... | <|file_sep|>original/lib/liquid/static_registers.rb
def delete(key)
@registers.delete(key)
end
UNDEFINED = Object.new
def fetch(key, default = UNDEFINED, &block)
if @registers.key?(key)
@registers.fetch(key)
elsif default != UNDEFINED
@static.fetch(key, default, &bloc... | 01e6eec97aa73955394a1699224e3a09d8d77eff | lib/liquid/static_registers.rb | lib/liquid/static_registers.rb | Ruby |
<|file_sep|>original/src/config.ini
[preprocessing]
resolution = 1
min_mz = 11
max_mz = 2010
remove_precursor = True
remove_precursor_tolerance = 0.25
min_intensity = 0.001
min_peaks = 10
min_mz_range = 250
max_peaks_used = 50
scaling = rank
[ann]
num_trees = 100
<|file_sep|>current/src/config.ini
[preprocessin... | [preprocessing]
resolution = 1
min_mz = 100
max_mz = 1500
remove_precursor = True
remove_precursor_tolerance = 0.25
min_intensity = 0.001
min_peaks = 10
min_mz_range = 250
max_peaks_used = 50
scaling = rank
[ann]
num_trees = 100
| <|file_sep|>original/src/config.ini
[preprocessing]
resolution = 1
min_mz = 11
max_mz = 2010
remove_precursor = True
remove_precursor_tolerance = 0.25
min_intensity = 0.001
min_peaks = 10
min_mz_range = 250
max_peaks_used = 50
scaling = rank
[ann]
num_trees = 100
<|file_sep|>current/src/config.ini
[preprocessin... | 5bb2ad62213dd4ecd97def106f7c4af3cc9270f3 | src/config.ini | src/config.ini | INI |
<|file_sep|>src/Hans/Layer/Tcp/Monad.hs.diff
original:
type Thread = IO ()
updated:
type Tcp = Layer TcpState
<|file_sep|>src/Hans/Layer/Tcp/Monad.hs.diff
original:
type Tcp = Layer (TcpState Thread)
data TcpState t = TcpState
updated:
data TcpState = TcpState
<|file_sep|>original/src/Hans/Layer/Tcp/Monad.hs
type Thr... |
type Tcp = Layer TcpState
data TcpState = TcpState
{ tcpSelf :: TcpHandle
, tcpIP4 :: IP4Handle
, tcpTimers :: TimerHandle
, tcpConns :: Connections
}
emptyTcpState :: TcpHandle -> IP4Handle -> TimerHandle -> TcpState
emptyTcpState tcp ip4 timer = TcpState
{ tcpSelf = tcp
, tcpIP4 = ip4
, ... | <|file_sep|>src/Hans/Layer/Tcp/Monad.hs.diff
original:
type Thread = IO ()
updated:
type Tcp = Layer TcpState
<|file_sep|>src/Hans/Layer/Tcp/Monad.hs.diff
original:
type Tcp = Layer (TcpState Thread)
data TcpState t = TcpState
updated:
data TcpState = TcpState
<|file_sep|>original/src/Hans/Layer/Tcp/Monad.hs
type Thr... | d76e8a468190cac4410c493268e2ecafcdb0051a | src/Hans/Layer/Tcp/Monad.hs | src/Hans/Layer/Tcp/Monad.hs | Haskell |
<|file_sep|>original/ghost/magic-link/package.json
"posttest": "yarn lint"
},
"files": [
"index.js",
"lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/jsonwebtoken": "8.3.3",
"@types/node": "12.7.5",
"@types/nodemailer": "6.2.1",
"mocha": "6.2.0",... | "posttest": "yarn lint"
},
"files": [
"index.js",
"lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/jsonwebtoken": "8.3.4",
"@types/node": "12.7.5",
"@types/nodemailer": "6.2.1",
"mocha": "6.2.0",
"should": "13.2.3",
"sinon": "7.4.2"
},
... | <|file_sep|>original/ghost/magic-link/package.json
"posttest": "yarn lint"
},
"files": [
"index.js",
"lib"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/jsonwebtoken": "8.3.3",
"@types/node": "12.7.5",
"@types/nodemailer": "6.2.1",
"mocha": "6.2.0",... | 2c79eec3114a985116773142bf116fa1d0bd5e65 | ghost/magic-link/package.json | ghost/magic-link/package.json | JSON |
<|file_sep|>roles/common/tasks/main.yml.diff
original:
- git
updated:
<|file_sep|>original/roles/common/tasks/main.yml
---
- name: Dump all variables
connection: local
local_action: template src=environment.j2 dest={{ inventory_dir }}/environment.log
- name: ensure the bashrc file is present
copy: src=bash... | ---
- name: Dump all variables
connection: local
local_action: template src=environment.j2 dest={{ inventory_dir }}/environment.log
- name: ensure the bashrc file is present
copy: src=bashrc dest={{ ansible_env.HOME }}/.bashrc mode=0700
- name: ensure common packages are present
apt: name={{ item }} state=pr... | <|file_sep|>roles/common/tasks/main.yml.diff
original:
- git
updated:
<|file_sep|>original/roles/common/tasks/main.yml
---
- name: Dump all variables
connection: local
local_action: template src=environment.j2 dest={{ inventory_dir }}/environment.log
- name: ensure the bashrc file is present
copy: src=bash... | 20a6d29df7eb05fcbf263a6e8d51d7fede0f2c9c | roles/common/tasks/main.yml | roles/common/tasks/main.yml | YAML |
<|file_sep|>original/app/uploaders/avatar_uploader.rb
# storage :file
# storage :fog
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"uploads/#{Apartment::Tenant.current}" \
"/#{model.class.to_s.und... | # This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"uploads/#{Apartment::Tenant.current}" \
"/#{model.class.to_s.underscore}" \
"/#{mounted_as}/#{model.id}"
end
version :v1 do
process resize_to_fill: [270, 260]
end
version :v1_large do
process re... | <|file_sep|>original/app/uploaders/avatar_uploader.rb
# storage :file
# storage :fog
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
def store_dir
"uploads/#{Apartment::Tenant.current}" \
"/#{model.class.to_s.und... | 45d845e18b90901dac6374d4d723675f477dea58 | app/uploaders/avatar_uploader.rb | app/uploaders/avatar_uploader.rb | Ruby |
<|file_sep|>original/javascript/signup.js
var button = document.getElementById('submit');
button.onclick = function() {
var parent = document.getElementById('parent').value;
var phone = document.getElementById('phone-number').value;
var student = document.getElementById('student').value;
var age = d... | var button = document.getElementById('submit');
button.onclick = function() {
var parent = document.getElementById('parent').value;
var phone = document.getElementById('phone-number').value;
var student = document.getElementById('student').value;
var age = document.getElementById('age').value;
v... | <|file_sep|>original/javascript/signup.js
var button = document.getElementById('submit');
button.onclick = function() {
var parent = document.getElementById('parent').value;
var phone = document.getElementById('phone-number').value;
var student = document.getElementById('student').value;
var age = d... | dc706a5bc91d647fade86d3f9d948a95e447be35 | javascript/signup.js | javascript/signup.js | JavaScript |
<|file_sep|>original/requirements.txt
Django==1.11.1
django-compressor==2.1.1
django-debug-toolbar==1.8
django-form-utils==1.0.3
django-libsass==0.7
django-npm==1.0.0
django-recaptcha==1.3.0
djangocms-admin-style==1.2.7
ipython==6.0.0
psycopg2==2.7.1
pypugjs==4.2.2
pytz>=2017.2
<|file_sep|>current/requirements.txt
Djan... | Django==1.11.2
django-compressor==2.1.1
django-debug-toolbar==1.8
django-form-utils==1.0.3
django-libsass==0.7
django-npm==1.0.0
django-recaptcha==1.3.0
djangocms-admin-style==1.2.7
ipython==6.0.0
psycopg2==2.7.1
pypugjs==4.2.2
pytz>=2017.2 | <|file_sep|>original/requirements.txt
Django==1.11.1
django-compressor==2.1.1
django-debug-toolbar==1.8
django-form-utils==1.0.3
django-libsass==0.7
django-npm==1.0.0
django-recaptcha==1.3.0
djangocms-admin-style==1.2.7
ipython==6.0.0
psycopg2==2.7.1
pypugjs==4.2.2
pytz>=2017.2
<|file_sep|>current/requirements.txt
Djan... | 890aaefda79b71f79f39ee17092e96c90d47c72e | requirements.txt | requirements.txt | Text |
<|file_sep|>original/OpenCV-Face-Recognition-Python.ipynb
<|file_sep|>current/OpenCV-Face-Recognition-Python.ipynb
<|file_sep|>updated/OpenCV-Face-Recognition-Python.ipynb | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# OpenCV Face Recognition"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": { | <|file_sep|>original/OpenCV-Face-Recognition-Python.ipynb
<|file_sep|>current/OpenCV-Face-Recognition-Python.ipynb
<|file_sep|>updated/OpenCV-Face-Recognition-Python.ipynb
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# OpenCV Face Recognition"
]
},
{
"cell_type": "cod... | 4ac8ac4f7e4b342e002a213828c508de0b9bc5bc | OpenCV-Face-Recognition-Python.ipynb | OpenCV-Face-Recognition-Python.ipynb | Jupyter Notebook |
<|file_sep|>app/templates/views/service-settings/set-email-branding.html.diff
original:
{% from "components/radios.html" import radios %}
updated:
<|file_sep|>original/app/templates/views/service-settings/set-email-branding.html
) }}
{% call form_wrapper(data_kwargs={'preview-type': 'email'}) %}
<div class="go... | {% call form_wrapper(data_kwargs={'preview-type': 'email'}) %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full preview-pane">
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
{{ live_search(
target_selector='.multiple-choic... | <|file_sep|>app/templates/views/service-settings/set-email-branding.html.diff
original:
{% from "components/radios.html" import radios %}
updated:
<|file_sep|>original/app/templates/views/service-settings/set-email-branding.html
) }}
{% call form_wrapper(data_kwargs={'preview-type': 'email'}) %}
<div class="go... | 22e64217990a10b17120e2ad51517a466cc92f1c | app/templates/views/service-settings/set-email-branding.html | app/templates/views/service-settings/set-email-branding.html | HTML |
<|file_sep|>cookbooks/libffi/recipes/default.rb.diff
original:
updated:
# Compile libffi
<|file_sep|>original/cookbooks/libffi/recipes/default.rb
util_autotools "libffi" do
file "libffi-3.0.10.tar.gz"
end
<|file_sep|>current/cookbooks/libffi/recipes/default.rb
# Compile libffi
util_autotools "libffi" do
file "libf... | # Compile libffi
util_autotools "libffi" do
file "libffi-3.0.10.tar.gz"
end
# Move libffi headers. libffi installs its headers in a
# really strange place, so we move them into the standard
# location.
execute "libffi-headers-move" do
command "mv #{embedded_dir}/lib/libffi-*/include/* #{embedded_dir}/include"
end | <|file_sep|>cookbooks/libffi/recipes/default.rb.diff
original:
updated:
# Compile libffi
<|file_sep|>original/cookbooks/libffi/recipes/default.rb
util_autotools "libffi" do
file "libffi-3.0.10.tar.gz"
end
<|file_sep|>current/cookbooks/libffi/recipes/default.rb
# Compile libffi
util_autotools "libffi" do
file "libf... | 90cfce197070656c5b68fec950949173000b238c | cookbooks/libffi/recipes/default.rb | cookbooks/libffi/recipes/default.rb | Ruby |
<|file_sep|>original/README.md
# requests-rs
Rust HTTP client library styled after awesome Python requests
<|file_sep|>current/README.md
# requests-rs
Rust HTTP client library styled after awesome Python requests
<|file_sep|>updated/README.md | # requests-rs
Rust HTTP client library styled after awesome Python requests
Building on OSX 10.11+
```
export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include
cargo clean
cargo build
``` | <|file_sep|>original/README.md
# requests-rs
Rust HTTP client library styled after awesome Python requests
<|file_sep|>current/README.md
# requests-rs
Rust HTTP client library styled after awesome Python requests
<|file_sep|>updated/README.md
# requests-rs
Rust HTTP client library styled after awesome Python requests
... | c29e52bf57d70e23abf8423629d5bd170e36fd01 | README.md | README.md | Markdown |
<|file_sep|>original/py-requirements/base.txt
# Github
github3.py==1.0.2
uritemplate==3.0.0
uritemplate.py==3.0.2
# Misc
boto==2.48.0
psycopg2==2.7.4
pytz==2018.3
requests==2.18.4
six==1.11.0
# Celery
amqp==2.2.2
celery[redis]==4.1.0
billiard==3.5.0.3
kombu==4.1.0
redis==2.10.6
vine==1.1.4
<|file_sep|>current/py-re... |
# Github
github3.py==1.0.2
uritemplate==3.0.0
uritemplate.py==3.0.2
# Misc
boto==2.48.0
psycopg2==2.7.4
pytz==2018.3
requests==2.19.1
six==1.11.0
# Celery
amqp==2.2.2
celery[redis]==4.1.0
billiard==3.5.0.3
kombu==4.1.0
redis==2.10.6
vine==1.1.4
| <|file_sep|>original/py-requirements/base.txt
# Github
github3.py==1.0.2
uritemplate==3.0.0
uritemplate.py==3.0.2
# Misc
boto==2.48.0
psycopg2==2.7.4
pytz==2018.3
requests==2.18.4
six==1.11.0
# Celery
amqp==2.2.2
celery[redis]==4.1.0
billiard==3.5.0.3
kombu==4.1.0
redis==2.10.6
vine==1.1.4
<|file_sep|>current/py-re... | 8b0f6bd572c394dda07054f40c883fb92ce2b285 | py-requirements/base.txt | py-requirements/base.txt | Text |
<|file_sep|>original/basil/HL/agilent_e3644a.yaml
<|file_sep|>current/basil/HL/agilent_e3644a.yaml
<|file_sep|>updated/basil/HL/agilent_e3644a.yaml | # Device description for the Agilent Technologies E3644A Power supply.
# set_ function expect a parameter, get_ function return a parameter.
# Just the very basic commands are imlemented here.
identifier: Agilent Technologies,E3644A
get_voltage: MEAS:VOLT:DC?
get_current: MEAS:CURR:DC?
set_enable: OUTP:STAT
get_enable... | <|file_sep|>original/basil/HL/agilent_e3644a.yaml
<|file_sep|>current/basil/HL/agilent_e3644a.yaml
<|file_sep|>updated/basil/HL/agilent_e3644a.yaml
# Device description for the Agilent Technologies E3644A Power supply.
# set_ function expect a parameter, get_ function return a parameter.
# Just the very basic comman... | 3db5940e213fd21b771cfc9ef8fc63f4299cfb5d | basil/HL/agilent_e3644a.yaml | basil/HL/agilent_e3644a.yaml | YAML |
<|file_sep|>.travis.yml.diff
original:
updated:
- 8
<|file_sep|>original/.travis.yml
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
... | # http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
- 8
- 10
- 12
os:
- linux
- osx
- windows
before_script:
- npm run lint
... | <|file_sep|>.travis.yml.diff
original:
updated:
- 8
<|file_sep|>original/.travis.yml
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/
filter_secrets: false
language: node_js
node_js:
... | d8cdde0c653cc5aca920630147509cc6b1ab4c15 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/url/urlutil/open.go.diff
original:
return nil, err
updated:
return nil,
errors.New("error getting: " + rawurl + ": " + err.Error())
<|file_sep|>original/lib/url/urlutil/open.go
func open(rawurl string) (io.ReadCloser, error) {
u, err := url.Parse(rawurl)
if err != nil {
return nil, err
}... | u, err := url.Parse(rawurl)
if err != nil {
return nil, err
}
if u.Scheme == "file" {
return os.Open(u.Path)
}
if u.Scheme == "http" || u.Scheme == "https" {
resp, err := http.Get(rawurl)
if err != nil {
return nil,
errors.New("error getting: " + rawurl + ": " + err.Error())
}
if resp.StatusCod... | <|file_sep|>lib/url/urlutil/open.go.diff
original:
return nil, err
updated:
return nil,
errors.New("error getting: " + rawurl + ": " + err.Error())
<|file_sep|>original/lib/url/urlutil/open.go
func open(rawurl string) (io.ReadCloser, error) {
u, err := url.Parse(rawurl)
if err != nil {
return nil, err
}... | 3cf19149ca2655b235f941f012f74a422eafed4c | lib/url/urlutil/open.go | lib/url/urlutil/open.go | Go |
<|file_sep|>original/pkgs/racket-test/tests/generic/info.rkt
#lang info
(define test-responsibles '((all (asumu stamourv cce))))
<|file_sep|>current/pkgs/racket-test/tests/generic/info.rkt
#lang info
(define test-responsibles '((all (asumu stamourv cce))))
<|file_sep|>updated/pkgs/racket-test/tests/generic/info.rkt | #lang info
(define test-responsibles '((all (asumu stamourv cce))))
(define test-timeouts
'(("benchmark.rkt" 300)))
(define test-randoms
'("benchmark.rkt")) | <|file_sep|>original/pkgs/racket-test/tests/generic/info.rkt
#lang info
(define test-responsibles '((all (asumu stamourv cce))))
<|file_sep|>current/pkgs/racket-test/tests/generic/info.rkt
#lang info
(define test-responsibles '((all (asumu stamourv cce))))
<|file_sep|>updated/pkgs/racket-test/tests/generic/info.rkt
#... | 1e5ec02262e588512d225f4212badf4ce36b40d7 | pkgs/racket-test/tests/generic/info.rkt | pkgs/racket-test/tests/generic/info.rkt | Racket |
<|file_sep|>.travis.yml.diff
original:
updated:
addons:
apt:
packages:
- libc++-dev
<|file_sep|>.travis.yml.diff
original:
updated:
addons:
apt:
packages:
- libc++-dev
<|file_sep|>original/.travis.yml
apt:
packages:
... | env: BUILD=autotools
addons:
apt:
packages:
- valgrind
- compiler: clang
env: BUILD=autotools
addons:
apt:
packages:
- libc++-dev
- valgrind
- compiler: gcc
env: BUILD=cmake_coverage
- compiler: gcc
... | <|file_sep|>.travis.yml.diff
original:
updated:
addons:
apt:
packages:
- libc++-dev
<|file_sep|>.travis.yml.diff
original:
updated:
addons:
apt:
packages:
- libc++-dev
<|file_sep|>original/.travis.yml
apt:
packages:
... | c127d3b1cd49728647567bbd194cd380f19c7c23 | .travis.yml | .travis.yml | YAML |
<|file_sep|>_posts/2016-07-15-multi-hop-ssh.md.diff
original:
proxycommand ssh -q host02 nc %h %p
updated:
proxycommand ssh -q -W %h:%h host02
<|file_sep|>original/_posts/2016-07-15-multi-hop-ssh.md
```
[host01]# vim $HOME/.ssh/config
```
...with the following
```conf
host host03
proxycommand ssh -q host0... | ```
[host01]# vim $HOME/.ssh/config
```
...with the following
```conf
host host03
proxycommand ssh -q -W %h:%h host02
host host04
proxycommand ssh -q -W %h:%h host03
```
Setup ssh keys and copy the public key to the servers for automatic login
```
[host01]# ls $HOME/.ssh/id_rsa 2> /dev/null || ssh-keygen -t... | <|file_sep|>_posts/2016-07-15-multi-hop-ssh.md.diff
original:
proxycommand ssh -q host02 nc %h %p
updated:
proxycommand ssh -q -W %h:%h host02
<|file_sep|>original/_posts/2016-07-15-multi-hop-ssh.md
```
[host01]# vim $HOME/.ssh/config
```
...with the following
```conf
host host03
proxycommand ssh -q host0... | 9829372c9fd62abf9eebd9c91d090dde9293fd47 | _posts/2016-07-15-multi-hop-ssh.md | _posts/2016-07-15-multi-hop-ssh.md | Markdown |
<|file_sep|>original/Cargo.toml
"Alexander Dmitriev <alexander.dmitriev2580@gmail.com>"
]
readme = "README.md"
repository = "https://github.com/svenstaro/bvh"
documentation = "https://docs.rs/crate/bvh"
keywords = ["bvh", "bounding", "volume", "sah", "aabb"]
license = "MIT"
[dependencies]
approx = "0.3"
nalgebra =... | "Alexander Dmitriev <alexander.dmitriev2580@gmail.com>"
]
readme = "README.md"
repository = "https://github.com/svenstaro/bvh"
documentation = "https://docs.rs/crate/bvh"
keywords = ["bvh", "bounding", "volume", "sah", "aabb"]
license = "MIT"
[dependencies]
approx = "0.3"
nalgebra = "0.18"
rand = "0.6"
log = "0.4"... | <|file_sep|>original/Cargo.toml
"Alexander Dmitriev <alexander.dmitriev2580@gmail.com>"
]
readme = "README.md"
repository = "https://github.com/svenstaro/bvh"
documentation = "https://docs.rs/crate/bvh"
keywords = ["bvh", "bounding", "volume", "sah", "aabb"]
license = "MIT"
[dependencies]
approx = "0.3"
nalgebra =... | eba4aa1d0a841afb4366b400847d629bec15e0f8 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/tests/_stackoverflowtest.txt
<|file_sep|>current/tests/_stackoverflowtest.txt
<|file_sep|>updated/tests/_stackoverflowtest.txt |
Import namespaces:
(require '[cats.core :as m])
(require '[cats.monad.state :as state])
Define function:
(def sum (fn [nums]
(reduce (fn [acc val] (m/mlet [a acc] (m/return (+ a val))))
(state/put-state 0) nums)))
Run the state monad:
(state/run-state (sum (repeat 15900 2)) 0) | <|file_sep|>original/tests/_stackoverflowtest.txt
<|file_sep|>current/tests/_stackoverflowtest.txt
<|file_sep|>updated/tests/_stackoverflowtest.txt
Import namespaces:
(require '[cats.core :as m])
(require '[cats.monad.state :as state])
Define function:
(def sum (fn [nums]
(reduce (fn [acc val] (m/mlet ... | 2cb3c2f4c21d031bf6e25aecfc954f477c8f4810 | tests/_stackoverflowtest.txt | tests/_stackoverflowtest.txt | Text |
<|file_sep|>original/.github/workflows/bach.yml
name: Bach.java
on: push
jobs:
build:
name: "${{ matrix.os }} + Java ${{ matrix.java }}"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 13]
runs-on: ${{ matrix.os }}
steps:
... | on: push
jobs:
build:
name: "${{ matrix.os }} + Java ${{ matrix.java }}"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 13]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout'
uses: actions/checkout@v1
- name: '... | <|file_sep|>original/.github/workflows/bach.yml
name: Bach.java
on: push
jobs:
build:
name: "${{ matrix.os }} + Java ${{ matrix.java }}"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 13]
runs-on: ${{ matrix.os }}
steps:
... | 1762054ceaf143fd0fc66351cfd7a3e3962b3408 | .github/workflows/bach.yml | .github/workflows/bach.yml | YAML |
<|file_sep|>original/index.js
module.exports = require('./lib-js/kayvee');
module.exports.logger = require('./lib-js/kayvee/logger')
<|file_sep|>current/index.js
module.exports = require('./lib-js/kayvee');
module.exports.logger = require('./lib-js/kayvee/logger')
<|file_sep|>updated/index.js | module.exports = require('./lib-js/kayvee');
module.exports.logger = require('./lib-js/logger/logger') | <|file_sep|>original/index.js
module.exports = require('./lib-js/kayvee');
module.exports.logger = require('./lib-js/kayvee/logger')
<|file_sep|>current/index.js
module.exports = require('./lib-js/kayvee');
module.exports.logger = require('./lib-js/kayvee/logger')
<|file_sep|>updated/index.js
module.exports = require('... | 8593c1d75fd9fd0ee9515a37fb596d1f24f3cc2e | index.js | index.js | JavaScript |
<|file_sep|>main.py.diff
original:
updated:
<|file_sep|>main.py.diff
original:
# start the game
connect_four.start()
updated:
menu_choice = 1
while menu_choice == 1:
# start the game
connect_four.start_new()
# menu
print("Menu")
print("1 - Play again")
p... | from connect_four import ConnectFour
def main():
""" Play a game!
"""
connect_four = ConnectFour()
menu_choice = 1
while menu_choice == 1:
# start the game
connect_four.start_new()
# menu
print("Menu")
print("1 - Play again")
print("2 - Quit")
... | <|file_sep|>main.py.diff
original:
updated:
<|file_sep|>main.py.diff
original:
# start the game
connect_four.start()
updated:
menu_choice = 1
while menu_choice == 1:
# start the game
connect_four.start_new()
# menu
print("Menu")
print("1 - Play again")
p... | e3aa12af05003222b295a4cea39a1c05c911024a | main.py | main.py | Python |
<|file_sep|>original/src/framework/index.coffee
base = require '../base'
module.exports = class Generator extends base
Generator::checkUpdate = ->
@update = fs.existsSync 'tamia'
Generator::tamia = ->
done = @async()
tempPath = path.join @sourceRoot(), 'tamia'
distUrl = 'https://github.com/sapegin/tamia/archive/... | base = require '../base'
module.exports = class Generator extends base
Generator::checkUpdate = ->
@update = fs.existsSync 'tamia'
Generator::tamia = ->
done = @async()
tempPath = path.join @sourceRoot(), 'tamia'
distUrl = 'https://github.com/sapegin/tamia/archive/master.tar.gz'
@delete tempPath, {force: true} ... | <|file_sep|>original/src/framework/index.coffee
base = require '../base'
module.exports = class Generator extends base
Generator::checkUpdate = ->
@update = fs.existsSync 'tamia'
Generator::tamia = ->
done = @async()
tempPath = path.join @sourceRoot(), 'tamia'
distUrl = 'https://github.com/sapegin/tamia/archive/... | 5df633f7a20d8eb34bfad2cb740453b1840e29a5 | src/framework/index.coffee | src/framework/index.coffee | CoffeeScript |
<|file_sep|>original/UIFontComplete.podspec
Pod::Spec.new do |s|
s.name = 'UIFontComplete'
s.version = '1.1.0'
s.summary = 'Make working with UIFont faster and less error-prone'
s.description = <<-DESC
Make working with UIFont faster and less error-prone
This mico library is... | Pod::Spec.new do |s|
s.name = 'UIFontComplete'
s.version = '2.0.0'
s.summary = 'Make working with UIFont faster and less error-prone'
s.description = <<-DESC
Make working with UIFont faster and less error-prone
This mico library is simply just one giant `Font` enum
that can... | <|file_sep|>original/UIFontComplete.podspec
Pod::Spec.new do |s|
s.name = 'UIFontComplete'
s.version = '1.1.0'
s.summary = 'Make working with UIFont faster and less error-prone'
s.description = <<-DESC
Make working with UIFont faster and less error-prone
This mico library is... | 5ec08793b5d571d47a5ab5b2430845b1c4f9de9d | UIFontComplete.podspec | UIFontComplete.podspec | Ruby |
<|file_sep|>original/app/workers/asyncapi/server/job_worker.rb
job_message = runner_class.call(job.params)
rescue => e
job_status = :error
job_message = [e.message, e.backtrace].flatten.join("\n")
raise e
ensure
if job
job.update_attributes(status: job_status)
repor... | job_message = runner_class.call(job.params)
rescue => e
job_status = :error
job_message = [e.message, e.backtrace].flatten.join("\n")
raise e
ensure
if job
job.update_attributes(status: job_status)
report_job_status(job, job_message)
else
# For some re... | <|file_sep|>original/app/workers/asyncapi/server/job_worker.rb
job_message = runner_class.call(job.params)
rescue => e
job_status = :error
job_message = [e.message, e.backtrace].flatten.join("\n")
raise e
ensure
if job
job.update_attributes(status: job_status)
repor... | 6ab9a0cae23dbc5c14eea0a93f5ade0a79607300 | app/workers/asyncapi/server/job_worker.rb | app/workers/asyncapi/server/job_worker.rb | Ruby |
<|file_sep|>original/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml
<|file_sep|>current/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml
<|file_sep|>updated/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml | <?xml version="1.0" encoding="UTF-8"?>
<testsuites name="PHP_CodeSniffer 3.5.5" errors="0" tests="2" failures="0">
<testsuite name="Unit/Testsuite1.php" errors="0" tests="1" failures="0">
<testcase name="Unit/Testsuite1.php" />
</testsuite>
<testsuite name="Unit/Testsuite2.php" errors="0" tests="1" ... | <|file_sep|>original/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml
<|file_sep|>current/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml
<|file_sep|>updated/src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="PHP_CodeSniffer 3.5.5" errors="0" tests="2" failures="0"... | a983509140bd66f8491ae86e2e2569757d41ca7a | src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml | src/Test/Unit/Fixtures/normal/phpcs-junit-1.xml | XML |
<|file_sep|>original/Casks/kaomoji.rb
cask 'kaomoji' do
version '1.9'
sha256 '04f7e6dc47b469eb90a74d5c569959f2218cc8f3b354edf85117b9f52574b071'
url 'https://kaomojiformac.github.io/download/Kaomoji.zip'
appcast 'https://kaomojiformac.github.io/download/kaomojiupdate.xml',
checkpoint: 'c80344948d45063... | cask 'kaomoji' do
version '1.9'
sha256 '04f7e6dc47b469eb90a74d5c569959f2218cc8f3b354edf85117b9f52574b071'
# kaomojiformac.github.io was verified as official when first introduced to the cask
url 'https://kaomojiformac.github.io/download/Kaomoji.zip'
appcast 'https://kaomojiformac.github.io/download/kaomojiup... | <|file_sep|>original/Casks/kaomoji.rb
cask 'kaomoji' do
version '1.9'
sha256 '04f7e6dc47b469eb90a74d5c569959f2218cc8f3b354edf85117b9f52574b071'
url 'https://kaomojiformac.github.io/download/Kaomoji.zip'
appcast 'https://kaomojiformac.github.io/download/kaomojiupdate.xml',
checkpoint: 'c80344948d45063... | 745e25a52f56f0a9b29ad09185b2cf2e45387162 | Casks/kaomoji.rb | Casks/kaomoji.rb | Ruby |
<|file_sep|>original/test/LLVMC/C++/just-compile.cpp
<|file_sep|>current/test/LLVMC/C++/just-compile.cpp
<|file_sep|>updated/test/LLVMC/C++/just-compile.cpp | // Test that the -c flag works.
// RUN: llvmc -c %s -o %t.o
// RUN: llvmc --linker=c++ %t.o -o %t
// RUN: %abs_tmp | grep hello
// XFAIL: vg
#include <iostream>
int main() {
std::cout << "hello" << '\n';
} | <|file_sep|>original/test/LLVMC/C++/just-compile.cpp
<|file_sep|>current/test/LLVMC/C++/just-compile.cpp
<|file_sep|>updated/test/LLVMC/C++/just-compile.cpp
// Test that the -c flag works.
// RUN: llvmc -c %s -o %t.o
// RUN: llvmc --linker=c++ %t.o -o %t
// RUN: %abs_tmp | grep hello
// XFAIL: vg
#include <iostream>
... | 900152bf88c2d6e55010050ba04c379021b8ed0b | test/LLVMC/C++/just-compile.cpp | test/LLVMC/C++/just-compile.cpp | C++ |
<|file_sep|>original/src/ModalContainer/index.jsx
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as styles from './styles';
export default class ModalContaner extends Component {
static propTypes = {
children: PropTypes.node,
onOverlayClick: PropTypes.func.isRequired,... | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as styles from './styles';
export default class ModalContainer extends Component {
static propTypes = {
children: PropTypes.node,
onOverlayClick: PropTypes.func.isRequired,
};
componentDidUpdate(prevProps) {
cons... | <|file_sep|>original/src/ModalContainer/index.jsx
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as styles from './styles';
export default class ModalContaner extends Component {
static propTypes = {
children: PropTypes.node,
onOverlayClick: PropTypes.func.isRequired,... | d02fccdd343817cb5dfbdc12de69377c2b07edc0 | src/ModalContainer/index.jsx | src/ModalContainer/index.jsx | JSX |
<|file_sep|>original/GeneratedResults/Paging.swift
//
// Created by Marcin Krzyzanowski on 22/06/15.
// Copyright (c) 2015 Marcin Krzyżanowski. All rights reserved.
//
import Foundation
//MARK: Generator
protocol AsyncGeneratorType {
typealias Element
typealias Fetch
mutating func next(fetchNextBatch: ... | //
// Created by Marcin Krzyzanowski on 22/06/15.
// Copyright (c) 2015 Marcin Krzyżanowski. All rights reserved.
//
import Foundation
//MARK: Generator
protocol AsyncGeneratorType {
associatedtype Element
associatedtype Fetch
mutating func next(fetchNextBatch: Fetch, onFinish: ((Element) -> Void)?)
}
... | <|file_sep|>original/GeneratedResults/Paging.swift
//
// Created by Marcin Krzyzanowski on 22/06/15.
// Copyright (c) 2015 Marcin Krzyżanowski. All rights reserved.
//
import Foundation
//MARK: Generator
protocol AsyncGeneratorType {
typealias Element
typealias Fetch
mutating func next(fetchNextBatch: ... | cc319b90aa9e393afc4d42c6ab2b6f01503edcb4 | GeneratedResults/Paging.swift | GeneratedResults/Paging.swift | Swift |
<|file_sep|>lib/cloud_conductor/converters/open_stack_converter.rb.diff
original:
updated:
# rubocop:disable MethodLength
<|file_sep|>lib/cloud_conductor/converters/open_stack_converter.rb.diff
original:
updated:
# Remove unimplemented properties from Instance
properties = []
properties ... | properties << :RamDiskId
properties << :SourceDestCheck
properties << :Tenancy
add_patch Patches::RemoveProperty.new 'AWS::EC2::Instance', properties
# Remove unimplemented properties from LoadBalancer
properties = []
properties << :AppCookieStickinessPolicy
... | <|file_sep|>lib/cloud_conductor/converters/open_stack_converter.rb.diff
original:
updated:
# rubocop:disable MethodLength
<|file_sep|>lib/cloud_conductor/converters/open_stack_converter.rb.diff
original:
updated:
# Remove unimplemented properties from Instance
properties = []
properties ... | 5c35acc6c973cdb07e34d7829bb9d14d2b6540a2 | lib/cloud_conductor/converters/open_stack_converter.rb | lib/cloud_conductor/converters/open_stack_converter.rb | Ruby |
<|file_sep|>original/fix-perm.py
"""
from __future__ import print_function
import os
import stat
import sys
if __name__ == '__main__':
for line in sys.stdin:
path = line.rstrip('\n')
if path == '':
continue
if not os.path.isfile(path):
continue
st = os.s... | import stat
import sys
if __name__ == '__main__':
for line in sys.stdin:
path = line.rstrip('\n')
if path == '':
continue
if not os.path.isfile(path):
continue
st = os.stat(path)
mode = int('644', 8)
if st.st_mode & stat.S_IXUSR != 0:
... | <|file_sep|>original/fix-perm.py
"""
from __future__ import print_function
import os
import stat
import sys
if __name__ == '__main__':
for line in sys.stdin:
path = line.rstrip('\n')
if path == '':
continue
if not os.path.isfile(path):
continue
st = os.s... | e326cef4ae66d4d2dd500e933ff4f7c6fc619b28 | fix-perm.py | fix-perm.py | Python |
<|file_sep|>Casks/appcode-eap.rb.diff
original:
version '3.2.0'
sha256 'fa78dc8e2a7430e7173cecec7b6e369f3d2cf442facd7ee0df46592788b00715'
updated:
version '141.1399.2'
sha256 '2dd8a0a9246067ae6e092b9934cbadac6730a74fe400c8929b09792a0c0cda83'
<|file_sep|>Casks/appcode-eap.rb.diff
original:
url 'http://download... | cask :v1 => 'appcode-eap' do
version '141.1399.2'
sha256 '2dd8a0a9246067ae6e092b9934cbadac6730a74fe400c8929b09792a0c0cda83'
url "https://download.jetbrains.com/objc/AppCode-#{version}.dmg"
name 'AppCode'
homepage 'https://confluence.jetbrains.com/display/OBJC/AppCode+EAP'
license :commercial
app 'AppCod... | <|file_sep|>Casks/appcode-eap.rb.diff
original:
version '3.2.0'
sha256 'fa78dc8e2a7430e7173cecec7b6e369f3d2cf442facd7ee0df46592788b00715'
updated:
version '141.1399.2'
sha256 '2dd8a0a9246067ae6e092b9934cbadac6730a74fe400c8929b09792a0c0cda83'
<|file_sep|>Casks/appcode-eap.rb.diff
original:
url 'http://download... | aa1fc181a510903f41b8bf6fe33ba10e74bd1736 | Casks/appcode-eap.rb | Casks/appcode-eap.rb | Ruby |
<|file_sep|>original/db/migrate/20131207103717_add_custom_forum_topic_views.rb
<|file_sep|>current/db/migrate/20131207103717_add_custom_forum_topic_views.rb
<|file_sep|>updated/db/migrate/20131207103717_add_custom_forum_topic_views.rb | class AddCustomForumTopicViews < ActiveRecord::Migration
def change
create_table :forum_topic_views do |t|
t.integer :topic_id
t.integer :user_id
t.timestamps
end
add_index :forum_topic_views, [:topic_id]
end
end | <|file_sep|>original/db/migrate/20131207103717_add_custom_forum_topic_views.rb
<|file_sep|>current/db/migrate/20131207103717_add_custom_forum_topic_views.rb
<|file_sep|>updated/db/migrate/20131207103717_add_custom_forum_topic_views.rb
class AddCustomForumTopicViews < ActiveRecord::Migration
def change
create_ta... | 71982a249c459a4dd31b2c8ca6cc6377d023c7fc | db/migrate/20131207103717_add_custom_forum_topic_views.rb | db/migrate/20131207103717_add_custom_forum_topic_views.rb | Ruby |
<|file_sep|>Sources/StyledString.swift.diff
original:
updated:
enum Type {
case bold
case strike
case link(url: String)
case image(url: String)
}
<|file_sep|>original/Sources/StyledString.swift
struct StyledString {
let string: String
let styles: ... | struct StyledString {
let string: String
let styles: [Style]
}
struct Style {
let range: Range<String.Index>
let type: Type
enum Type {
case bold
case strike
case link(url: String)
case image(url: String)
}
} | <|file_sep|>Sources/StyledString.swift.diff
original:
updated:
enum Type {
case bold
case strike
case link(url: String)
case image(url: String)
}
<|file_sep|>original/Sources/StyledString.swift
struct StyledString {
let string: String
let styles: ... | 1dd51b2e842e01a6752938320b7c96c1348d004f | Sources/StyledString.swift | Sources/StyledString.swift | Swift |
<|file_sep|>original/ci_environment/haskell/recipes/default.rb
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | # all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE ... | <|file_sep|>original/ci_environment/haskell/recipes/default.rb
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | b7dd204c57e50f94f20c207cbd12d813771e77fb | ci_environment/haskell/recipes/default.rb | ci_environment/haskell/recipes/default.rb | Ruby |
<|file_sep|>source/_patterns/01-atoms/05-forms/dob-field.twig.diff
original:
<input type="number" class="form-control" placeholder="date" maxlength="2" size="3"/>
updated:
<input type="number" min="1" max="31" class="form-control" placeholder="date" maxlength="2" size="3"/>
<|file_sep|>source/_patterns/01-a... | <div class="row">
<div class="col-xs-12 col-md-4 col-lg-4">
<div class="input-group">
<input type="number" min="1" max="31" class="form-control" placeholder="date" maxlength="2" size="3"/>
<span class="input-group-addon">/</span>
<input type="number" min="1" max="12" class="form-control" placeho... | <|file_sep|>source/_patterns/01-atoms/05-forms/dob-field.twig.diff
original:
<input type="number" class="form-control" placeholder="date" maxlength="2" size="3"/>
updated:
<input type="number" min="1" max="31" class="form-control" placeholder="date" maxlength="2" size="3"/>
<|file_sep|>source/_patterns/01-a... | df67a5cc40e4546b832da44787db9f2df1b40417 | source/_patterns/01-atoms/05-forms/dob-field.twig | source/_patterns/01-atoms/05-forms/dob-field.twig | Twig |
<|file_sep|>original/example_project/urls.py
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^selectable/', include('selectable.urls')),
url(r'', include('timepiece.urls')),
# authentication views
url(r'^a... | from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover() # For Django 1.6
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^selectable/', include('selectable.urls')),
url(r'', include('timepiece.urls')),
# authentication views
url(r'^accou... | <|file_sep|>original/example_project/urls.py
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^selectable/', include('selectable.urls')),
url(r'', include('timepiece.urls')),
# authentication views
url(r'^a... | 0cb807470ee56207251f36ad78d35c48f6e9361b | example_project/urls.py | example_project/urls.py | Python |
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 7.1
- 7.2
env:
global:
- coverage=no
matrix:
- setup=basic
- setup=lowest
- setup=stable
before_script:
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --... | language: php
sudo: false
php:
- 7.1
- 7.2
- nightly
env:
global:
- coverage=no
matrix:
- setup=basic
- setup=lowest
- setup=stable
before_script:
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
... | <|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 7.1
- 7.2
env:
global:
- coverage=no
matrix:
- setup=basic
- setup=lowest
- setup=stable
before_script:
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --... | 7f5bd1fbfe3ada6e54a341307c977c7d35d9baa4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/spk/nzbconfig/src/dsm-control.sh
#!/bin/sh
# Package
PACKAGE="nzbconfig"
DNAME="NZB Config"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
RUNAS="root"
RUN_FILE="${INSTALL_DIR}/var/${PACKAGE}.run"
start_daemon ()
{
touch ${RUN_FILE}
}
stop_daemon ()
{
rm -f ${RUN_FILE}
}
<|file_sep|>curr... | #!/bin/sh
# Package
PACKAGE="nzbconfig"
DNAME="NZB Config"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
RUN_FILE="${INSTALL_DIR}/var/${PACKAGE}.run"
start_daemon ()
{
touch ${RUN_FILE}
}
stop_daemon ()
{
rm -f ${RUN_FILE}
}
| <|file_sep|>original/spk/nzbconfig/src/dsm-control.sh
#!/bin/sh
# Package
PACKAGE="nzbconfig"
DNAME="NZB Config"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
RUNAS="root"
RUN_FILE="${INSTALL_DIR}/var/${PACKAGE}.run"
start_daemon ()
{
touch ${RUN_FILE}
}
stop_daemon ()
{
rm -f ${RUN_FILE}
}
<|file_sep|>curr... | ff2dff30535a6671725c8c261d52856a9df56fd8 | spk/nzbconfig/src/dsm-control.sh | spk/nzbconfig/src/dsm-control.sh | Shell |
<|file_sep|>original/app/controllers/skills_controller.rb
class SkillsController < ApplicationController
def show
@skill = skill
@coaches = Member.includes(:skills)
.with_skill(skill)
.paginate(page: page)
end
private
def skill
params.permit(:id)[:id]
... | class SkillsController < ApplicationController
def show
@skill = skill
@coaches = Member.includes(:skills)
.with_skill(skill)
.paginate(page: page)
end
private
def skill
params.permit(:id)[:id]
end
def page
params.permit(:page)[:page]
end
end | <|file_sep|>original/app/controllers/skills_controller.rb
class SkillsController < ApplicationController
def show
@skill = skill
@coaches = Member.includes(:skills)
.with_skill(skill)
.paginate(page: page)
end
private
def skill
params.permit(:id)[:id]
... | 448ead6b2cdf5c71cf36f67df17a649e80f01eee | app/controllers/skills_controller.rb | app/controllers/skills_controller.rb | Ruby |
<|file_sep|>original/opal/management/commands/create_singletons.py
<|file_sep|>current/opal/management/commands/create_singletons.py
<|file_sep|>updated/opal/management/commands/create_singletons.py | """
Create singletons that may have been dropped
"""
import collections
import json
from optparse import make_option
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import BaseCommand
from opal.models import Patient, Episode, PatientSubrecord, EpisodeSubrecord
class Comman... | <|file_sep|>original/opal/management/commands/create_singletons.py
<|file_sep|>current/opal/management/commands/create_singletons.py
<|file_sep|>updated/opal/management/commands/create_singletons.py
"""
Create singletons that may have been dropped
"""
import collections
import json
from optparse import make_option
f... | 31822d7cdc77647bf06d2b3d32c6e72c80f55815 | opal/management/commands/create_singletons.py | opal/management/commands/create_singletons.py | Python |
<|file_sep|>node-tests/unit/utils/validate-platforms-test.js.diff
original:
updated:
const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];
<|file_sep|>node-tests/unit/utils/validate-platforms-test.js.diff
original:
const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];
update... | const expect = require('../../helpers/expect');
const ValidatePlatforms = require('../../../src/utils/validate-platforms');
describe('ValidatePlatforms', () => {
context('when platforms contain valid platforms', () => {
const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];
it('return... | <|file_sep|>node-tests/unit/utils/validate-platforms-test.js.diff
original:
updated:
const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];
<|file_sep|>node-tests/unit/utils/validate-platforms-test.js.diff
original:
const platforms = ['all', 'ios', 'android', 'blackberry', 'windows'];
update... | ed3c2a0de70dd7e96fcb376d2199425f0130809a | node-tests/unit/utils/validate-platforms-test.js | node-tests/unit/utils/validate-platforms-test.js | JavaScript |
<|file_sep|>original/CONTRIBUTING.md
<|file_sep|>current/CONTRIBUTING.md
<|file_sep|>updated/CONTRIBUTING.md | # Contributing to Atom
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
The following is a set of guidelines for contributing to
[my personal website](https://sprimed.com).
I am still working around what this guide will be, but for now, if you want to
contribute, just head over to the
[i... | <|file_sep|>original/CONTRIBUTING.md
<|file_sep|>current/CONTRIBUTING.md
<|file_sep|>updated/CONTRIBUTING.md
# Contributing to Atom
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
The following is a set of guidelines for contributing to
[my personal website](https://sprimed.com).
I am s... | 7eedba7b55d3aaab837340bff1f5ac26971dc374 | CONTRIBUTING.md | CONTRIBUTING.md | Markdown |
<|file_sep|>original/.circleci/config.yml
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:11-jdk
# Specify service dependencies ... | # Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk
# Specify service dependencies here if necessary
# CircleCI maintain... | <|file_sep|>original/.circleci/config.yml
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:11-jdk
# Specify service dependencies ... | c2382bbf511c4d7fdade31ab0b5068bec3e14890 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>billjobs/tests/tests_export_account_email.py.diff
original:
updated:
class MockRequest(object):
pass
<|file_sep|>billjobs/tests/tests_export_account_email.py.diff
original:
updated:
def setUp(self):
self.site = AdminSite()
self.query_set = User.objects.all()
<|file_sep|>b... | """ Test admin can select the action in dropdown list """
self.assertTrue(hasattr(UserAdmin, 'export_email'))
def test_method_is_model_admin_action(self):
""" Test method is an custom action for user admin """
self.assertTrue('export_email' in UserAdmin.actions)
def test_action... | <|file_sep|>billjobs/tests/tests_export_account_email.py.diff
original:
updated:
class MockRequest(object):
pass
<|file_sep|>billjobs/tests/tests_export_account_email.py.diff
original:
updated:
def setUp(self):
self.site = AdminSite()
self.query_set = User.objects.all()
<|file_sep|>b... | 54dbc3638ba376f29aa619e897c9b87238559ac3 | billjobs/tests/tests_export_account_email.py | billjobs/tests/tests_export_account_email.py | Python |
<|file_sep|>original/_assets/stylesheets/app.css.sass.erb
//= require deck.js/core/deck.core
//= require deck.js/themes/transition/fade
//= require deck.js/themes/style/web-2.0
@import "css-modal/modal"
.notes
@extend %modal
@extend %modal-theme
<% if site.config['social'] %>
// Fix Twitter button positioning.
i... | //= require deck.js/core/deck.core
//= require deck.js/themes/transition/fade
//= require deck.js/themes/style/web-2.0
@import "css-modal/modal"
.notes
@extend %modal
@extend %modal-theme
// CSS Modal sets overflow-y: scroll
html
overflow-y: hidden
<% if site.config['social'] %>
// Fix Twitter button position... | <|file_sep|>original/_assets/stylesheets/app.css.sass.erb
//= require deck.js/core/deck.core
//= require deck.js/themes/transition/fade
//= require deck.js/themes/style/web-2.0
@import "css-modal/modal"
.notes
@extend %modal
@extend %modal-theme
<% if site.config['social'] %>
// Fix Twitter button positioning.
i... | 9efb6f2e068f7e959dfeddee55a6cc386bd3d07a | _assets/stylesheets/app.css.sass.erb | _assets/stylesheets/app.css.sass.erb | HTML+ERB |
<|file_sep|>original/composer.json
"authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"symfony/yaml": "^2.5|^3.0",
"php": "^7.0"
},
"require-dev": {
... | "authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"symfony/yaml": "^2.5|^3.0",
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5",
... | <|file_sep|>original/composer.json
"authors": [{
"name": "Craig Duncan",
"email": "git@duncanc.co.uk",
"homepage": "https://github.com/duncan3dc",
"role": "Developer"
}],
"require": {
"symfony/yaml": "^2.5|^3.0",
"php": "^7.0"
},
"require-dev": {
... | d4a470d1deeb80323243eb2f804eb92e841ea586 | composer.json | composer.json | JSON |
<|file_sep|>original/lib/istwox/issn.rb
<|file_sep|>current/lib/istwox/issn.rb
<|file_sep|>updated/lib/istwox/issn.rb | module Istwox
class ISSN
attr_accessor :code, :original, :ponderated, :check_digit
NB_CHAR = 8
PRIME_NUMBER = 11
def initialize(original)
@original = original if original.is_a? String
@ponderated = []
@code = []
extract_c... | <|file_sep|>original/lib/istwox/issn.rb
<|file_sep|>current/lib/istwox/issn.rb
<|file_sep|>updated/lib/istwox/issn.rb
module Istwox
class ISSN
attr_accessor :code, :original, :ponderated, :check_digit
NB_CHAR = 8
PRIME_NUMBER = 11
def initialize(original)
@origin... | c547d937a2bb636714f1ce7a584c6324f2ebd97c | lib/istwox/issn.rb | lib/istwox/issn.rb | Ruby |
<|file_sep|>original/lib/artus/page_title.ex
defmodule Artus.PageTitle do
@suffix "BIAS"
def page_title(assigns), do: assigns |> get |> put_suffix
defp put_suffix(nil), do: @suffix
defp put_suffix(title), do: title <> " - " <> @suffix
defp get(%{ view_module: Artus.Admin.PageView }), do: "Admin"
defp get(%{ vi... | defmodule Artus.PageTitle do
@suffix "BIAS"
def page_title(assigns), do: assigns |> get |> put_suffix
defp put_suffix(nil), do: @suffix
defp put_suffix(title), do: title <> " - " <> @suffix
defp get(%{ view_module: Artus.Admin.PageView }), do: "Admin"
defp get(%{ view_module: Artus.EntryView, view_template: "s... | <|file_sep|>original/lib/artus/page_title.ex
defmodule Artus.PageTitle do
@suffix "BIAS"
def page_title(assigns), do: assigns |> get |> put_suffix
defp put_suffix(nil), do: @suffix
defp put_suffix(title), do: title <> " - " <> @suffix
defp get(%{ view_module: Artus.Admin.PageView }), do: "Admin"
defp get(%{ vi... | 38bc76deebb2596ac5575cd7ca7589b4395352b2 | lib/artus/page_title.ex | lib/artus/page_title.ex | Elixir |
<|file_sep|>original/linux-headers/plan.sh
pkg_name=linux-headers
pkg_origin=core
pkg_version=4.3
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('gplv2')
pkg_source=http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-${pkg_version}.tar.xz
pkg_shasum=4a622cc84b8a3c38d39bc17195b0c064d2b46945dfde0... | pkg_name=linux-headers
pkg_origin=core
pkg_version=4.3
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('gplv2')
pkg_source=https://www.kernel.org/pub/linux/kernel/v4.x/linux-${pkg_version}.tar.xz
pkg_shasum=4a622cc84b8a3c38d39bc17195b0c064d2b46945dfde0dae18f77b120bc9f3ae
pkg_dirname=linux-$pkg... | <|file_sep|>original/linux-headers/plan.sh
pkg_name=linux-headers
pkg_origin=core
pkg_version=4.3
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('gplv2')
pkg_source=http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-${pkg_version}.tar.xz
pkg_shasum=4a622cc84b8a3c38d39bc17195b0c064d2b46945dfde0... | a4da0f1900807548dc1d204b75f7c7e44bd07f57 | linux-headers/plan.sh | linux-headers/plan.sh | Shell |
<|file_sep|>original/package.json
"devDependencies": {
"jshint": "~2.4.1",
"mocha": "~1.17.0"
},
"scripts": {
"test": "mocha --ui tdd",
"jshint": "jshint lib/ test/",
"ci": "npm run jshint && npm test"
},
"author": "Mike Pennisi",
"license": "MIT-Expat",
"directories": {
"test": "t... | "devDependencies": {
"jshint": "~2.4.1",
"mocha": "~1.17.0"
},
"scripts": {
"test": "mocha --ui tdd",
"jshint": "jshint lib/ test/",
"ci": "npm run jshint && npm test"
},
"author": "Mike Pennisi",
"license": "MIT",
"directories": {
"test": "test"
},
"repository": {
"type": ... | <|file_sep|>original/package.json
"devDependencies": {
"jshint": "~2.4.1",
"mocha": "~1.17.0"
},
"scripts": {
"test": "mocha --ui tdd",
"jshint": "jshint lib/ test/",
"ci": "npm run jshint && npm test"
},
"author": "Mike Pennisi",
"license": "MIT-Expat",
"directories": {
"test": "t... | 4329c661186c976ffe556826f518167256ca7ab3 | package.json | package.json | JSON |
<|file_sep|>original/requirements-test.txt
coverage==5.5
freezegun==1.1.0
pytest==6.2.4
pytest-cov==2.12.1
requests-mock==1.9.2
<|file_sep|>current/requirements-test.txt
coverage==5.5
freezegun==1.1.0
pytest==6.2.4
pytest-cov==2.12.1
requests-mock==1.9.2
<|file_sep|>updated/requirements-test.txt | coverage==5.5
freezegun==1.1.0
pytest==6.2.4
pytest-cov==2.12.1
requests-mock==1.9.3 | <|file_sep|>original/requirements-test.txt
coverage==5.5
freezegun==1.1.0
pytest==6.2.4
pytest-cov==2.12.1
requests-mock==1.9.2
<|file_sep|>current/requirements-test.txt
coverage==5.5
freezegun==1.1.0
pytest==6.2.4
pytest-cov==2.12.1
requests-mock==1.9.2
<|file_sep|>updated/requirements-test.txt
coverage==5.5
freezegun... | 8b7538b481a7c4ce69954573c04a3a56e414a35d | requirements-test.txt | requirements-test.txt | Text |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.