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|>EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java.diff
original:
updated:
import android.annotation.SuppressLint;
<|file_sep|>EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java.diff
original:
updated:
import android.view.WindowManager;
import android.webkit.WebView;
... | import android.view.WindowManager;
import android.webkit.WebView;
public class LoginScreen extends Activity {
@SuppressLint("SetJavaScriptEnabled")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login_screen);
WebView log... | <|file_sep|>EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java.diff
original:
updated:
import android.annotation.SuppressLint;
<|file_sep|>EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java.diff
original:
updated:
import android.view.WindowManager;
import android.webkit.WebView;
... | 8680f27450840ca2f9a2f65a7fd21cc499905f8a | EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java | EdXVideoViewer/src/com/github/krooken/edxvideoviewer/LoginScreen.java | Java |
<|file_sep|>week-7/group_project_solution.js.diff
original:
##USER STORIES
updated:
<|file_sep|>original/week-7/group_project_solution.js
##USER STORIES
// /As a user i’d like to do three things to a list of numbers.
// Using “sum” and the list I want to add together all the numbers whether the list is even or odd in... |
##PSEUDOCODE
input: An array of numbers
output: 1) the sum of all the numbers inside the array, 2) the "mean" average of the numbers inside the array, 3) the median number from the array
# Create an array of single-digit numbers
# Iterate through the array of numbers to calculate and return its sum (non-destructive... | <|file_sep|>week-7/group_project_solution.js.diff
original:
##USER STORIES
updated:
<|file_sep|>original/week-7/group_project_solution.js
##USER STORIES
// /As a user i’d like to do three things to a list of numbers.
// Using “sum” and the list I want to add together all the numbers whether the list is even or odd in... | 2dd2d76ade4b71628417d7712509e35b75d90f5b | week-7/group_project_solution.js | week-7/group_project_solution.js | JavaScript |
<|file_sep|>index.md.diff
original:
Simple shell for now, to enable github pages for projects
updated:
## References
* #### Markdown
* <a href="https://help.github.com/articles/markdown-basics">Basics</a>
* <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a>
<|file_sep|... | * <a href="https://help.github.com/articles/markdown-basics">Basics</a>
* <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a>
## Projects
* <a href="https://www.udacity.com/">Udacity</a> Frontend Web Developer NanoDegree
* <a href="http://mmerlin.github.io/mug-mockup... | <|file_sep|>index.md.diff
original:
Simple shell for now, to enable github pages for projects
updated:
## References
* #### Markdown
* <a href="https://help.github.com/articles/markdown-basics">Basics</a>
* <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a>
<|file_sep|... | b93131549564db94698196191f367a2ad97731fa | index.md | index.md | Markdown |
<|file_sep|>original/Library/Formula/csshx.rb
<|file_sep|>current/Library/Formula/csshx.rb
<|file_sep|>updated/Library/Formula/csshx.rb | require 'formula'
class Csshx < Formula
url 'http://csshx.googlecode.com/files/csshX-0.72.tgz'
homepage 'http://code.google.com/p/csshx/'
md5 '15178bbdaaa8f949bd583bd639577232'
head 'http://csshx.googlecode.com/svn/trunk/'
def install
bin.install 'csshX'
end
end | <|file_sep|>original/Library/Formula/csshx.rb
<|file_sep|>current/Library/Formula/csshx.rb
<|file_sep|>updated/Library/Formula/csshx.rb
require 'formula'
class Csshx < Formula
url 'http://csshx.googlecode.com/files/csshX-0.72.tgz'
homepage 'http://code.google.com/p/csshx/'
md5 '15178bbdaaa8f949bd583bd639577232... | 11757ba63c9f9240e5f99787e2fc7034e77e6471 | Library/Formula/csshx.rb | Library/Formula/csshx.rb | Ruby |
<|file_sep|>original/tests/unsigned_int_hm.rs
<|file_sep|>current/tests/unsigned_int_hm.rs
<|file_sep|>updated/tests/unsigned_int_hm.rs | #![cfg(not(feature = "preserve_order"))]
#[derive(serde::Deserialize, Eq, PartialEq, Debug)]
struct Container<T> {
inner: T,
}
#[derive(serde::Deserialize, Eq, PartialEq, Debug)]
struct Unsigned {
unsigned: u16,
}
impl Default for Unsigned {
fn default() -> Self {
Self { unsigned: 128 }
}
}
... | <|file_sep|>original/tests/unsigned_int_hm.rs
<|file_sep|>current/tests/unsigned_int_hm.rs
<|file_sep|>updated/tests/unsigned_int_hm.rs
#![cfg(not(feature = "preserve_order"))]
#[derive(serde::Deserialize, Eq, PartialEq, Debug)]
struct Container<T> {
inner: T,
}
#[derive(serde::Deserialize, Eq, PartialEq, Debug... | b7688b7f5792e784a4b0e5175141aa0c317e2e10 | tests/unsigned_int_hm.rs | tests/unsigned_int_hm.rs | Rust |
<|file_sep|>original/package.json
{
"name": "TabAttack",
"devDependencies": {
"marked": "0.x",
"mousetrap": "1.x",
"babel": "4.x",
"babel-loader": "4.x",
"webpack": "1.x"
}
}
<|file_sep|>current/package.json
{
"name": "TabAttack",
"devDependencies": {
"marked": "0.x",
"mousetrap": ... | {
"name": "TabAttack",
"scripts": {
"build": "rm build.zip; zip -vr build.zip src/ -x '*.DS_Store'"
},
"devDependencies": {
"marked": "0.x",
"mousetrap": "1.x",
"babel": "4.x",
"babel-loader": "4.x",
"webpack": "1.x"
}
} | <|file_sep|>original/package.json
{
"name": "TabAttack",
"devDependencies": {
"marked": "0.x",
"mousetrap": "1.x",
"babel": "4.x",
"babel-loader": "4.x",
"webpack": "1.x"
}
}
<|file_sep|>current/package.json
{
"name": "TabAttack",
"devDependencies": {
"marked": "0.x",
"mousetrap": ... | 6aa9c205109601211b3602c082e4ffb0cc2cce18 | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: rust
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-... | language: rust
rust:
- nightly
- beta
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n ... | <|file_sep|>original/.travis.yml
language: rust
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-... | 0c9e3bef70ded3883604c1c8167cd49d820d0382 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements.txt
pytest==3.6.0
pytest-cookies==0.3.0
pyaml==17.12.1
testinfra==1.13.1
tox==3.0.0
<|file_sep|>current/requirements.txt
pytest==3.6.0
pytest-cookies==0.3.0
pyaml==17.12.1
testinfra==1.13.1
tox==3.0.0
<|file_sep|>updated/requirements.txt | pytest==3.6.1
pytest-cookies==0.3.0
pyaml==17.12.1
testinfra==1.13.1
tox==3.0.0 | <|file_sep|>original/requirements.txt
pytest==3.6.0
pytest-cookies==0.3.0
pyaml==17.12.1
testinfra==1.13.1
tox==3.0.0
<|file_sep|>current/requirements.txt
pytest==3.6.0
pytest-cookies==0.3.0
pyaml==17.12.1
testinfra==1.13.1
tox==3.0.0
<|file_sep|>updated/requirements.txt
pytest==3.6.1
pytest-cookies==0.3.0
pyaml==17.12... | 284470d3584e720ec4ee8677f46c73079f369d5c | requirements.txt | requirements.txt | Text |
<|file_sep|>original/app/views/layouts/application.html.haml
%body
#layout
%a#menuLink.menu-link{href: '#menu'}
#menu
.pure-menu.pure-menu-open
%a.pure-menu-heading= Setting.ctf_name
%ul
%li
%a Rules
%li
%a Challenges
... | .pure-menu.pure-menu-open
%a.pure-menu-heading= Setting.ctf_name
%ul
%li
%a Rules
%li
%a Challenges
%li
%a Ranking
- if admin_signed_in?
= link_to 'Admin', admin_path, class: 'pure-menu-headin... | <|file_sep|>original/app/views/layouts/application.html.haml
%body
#layout
%a#menuLink.menu-link{href: '#menu'}
#menu
.pure-menu.pure-menu-open
%a.pure-menu-heading= Setting.ctf_name
%ul
%li
%a Rules
%li
%a Challenges
... | bac88846a67ff38886692d96b7331bd995097c95 | app/views/layouts/application.html.haml | app/views/layouts/application.html.haml | Haml |
<|file_sep|>txircd/modules/cmd_user.py.diff
original:
def onUse(self, user, params):
updated:
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
<|file_sep|>txircd/modules/cmd_user.py.diff
original:
self.sendMessage(irc.ERR_A... | if user.registered == 0:
user.sendMessage(irc.ERR_ALREADYREGISTRED, ":Unauthorized command (already registered)")
return {}
if params and len(params) < 4:
user.sendMessage(irc.ERR_NEEDMOREPARAMS, "USER", ":Not enough parameters")
return {}
ident = filter(lambda x: x in string.ascii_letters + string.di... | <|file_sep|>txircd/modules/cmd_user.py.diff
original:
def onUse(self, user, params):
updated:
def onUse(self, user, data):
if not user.username:
user.registered -= 1
user.username = data["ident"]
user.realname = data["gecos"]
<|file_sep|>txircd/modules/cmd_user.py.diff
original:
self.sendMessage(irc.ERR_A... | c4c71dd65675f904c34a0d86a80d5abe7bafdbb1 | txircd/modules/cmd_user.py | txircd/modules/cmd_user.py | Python |
<|file_sep|>original/app/services/order_tax_adjustments_fetcher.rb
hash.update(tax_rates_hash) { |_tax_rate, amount1, amount2| amount1 + amount2 }
end
end
private
attr_reader :order
def all
order.adjustments.with_tax +
order.line_items.includes(:adjustments).map { |li|
li.adjustme... | hash.update(tax_rates_hash) { |_tax_rate, amount1, amount2| amount1 + amount2 }
end
end
private
attr_reader :order
def all
Spree::Adjustment
.with_tax
.where(adjustable_id: order.id, adjustable_type: 'Spree::Order')
.order('created_at ASC') +
Spree::Adjustment
.... | <|file_sep|>original/app/services/order_tax_adjustments_fetcher.rb
hash.update(tax_rates_hash) { |_tax_rate, amount1, amount2| amount1 + amount2 }
end
end
private
attr_reader :order
def all
order.adjustments.with_tax +
order.line_items.includes(:adjustments).map { |li|
li.adjustme... | 00c9dd7ece951260af878367d31d3bfc070cc8da | app/services/order_tax_adjustments_fetcher.rb | app/services/order_tax_adjustments_fetcher.rb | Ruby |
<|file_sep|>original/app/workers/backup_worker.rb
class BackupWorker
include Sidekiq::Worker
def perform
PgDrive.perform
end
end
<|file_sep|>current/app/workers/backup_worker.rb
class BackupWorker
include Sidekiq::Worker
def perform
PgDrive.perform
end
end
<|file_sep|>updated/app/workers/backup_wo... | class BackupWorker
include Sidekiq::Worker
def perform
Timeout::timeout(120) {
PgDrive.perform
}
rescue Timeout::Error
logger.error("Backup timeout")
end
end | <|file_sep|>original/app/workers/backup_worker.rb
class BackupWorker
include Sidekiq::Worker
def perform
PgDrive.perform
end
end
<|file_sep|>current/app/workers/backup_worker.rb
class BackupWorker
include Sidekiq::Worker
def perform
PgDrive.perform
end
end
<|file_sep|>updated/app/workers/backup_wo... | cd47f4bd72f1170f6453b4f2d0dd68f9eb7f24af | app/workers/backup_worker.rb | app/workers/backup_worker.rb | Ruby |
<|file_sep|>original/README.md
# PicoBramble
A lightweight library for running jobs across multiple machines. Originally designed for a cluster of Raspberry Pis.
Built as a learning exercise - you should probably use something like the [JPPF](http://www.jppf.org/) framework for serious projects.
This project is built... | # PicoBramble
A lightweight library for running jobs across multiple machines. Originally designed for a cluster of Raspberry Pis.
Built as a learning exercise - you should probably use something like the [JPPF](http://www.jppf.org/) framework for serious projects.
This project is built using [Maven](https://maven.ap... | <|file_sep|>original/README.md
# PicoBramble
A lightweight library for running jobs across multiple machines. Originally designed for a cluster of Raspberry Pis.
Built as a learning exercise - you should probably use something like the [JPPF](http://www.jppf.org/) framework for serious projects.
This project is built... | 2662594d49c2d5189c2b17100de8bde8f539f7d4 | README.md | README.md | Markdown |
<|file_sep|>STTweetLabel/STTweetLabel.h.diff
original:
typedef enum {
updated:
typedef NS_ENUM(NSInteger, STTweetHotWord) {
<|file_sep|>original/STTweetLabel/STTweetLabel.h
// STTweetLabel
//
// Created by Sebastien Thiebaud on 09/29/13.
// Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.
//
typedef enum... | // STTweetLabel
//
// Created by Sebastien Thiebaud on 09/29/13.
// Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.
//
typedef NS_ENUM(NSInteger, STTweetHotWord) {
STTweetHandle = 0,
STTweetHashtag,
STTweetLink
};
@interface STTweetLabel : UILabel
@property (nonatomic, strong) NSArray *val... | <|file_sep|>STTweetLabel/STTweetLabel.h.diff
original:
typedef enum {
updated:
typedef NS_ENUM(NSInteger, STTweetHotWord) {
<|file_sep|>original/STTweetLabel/STTweetLabel.h
// STTweetLabel
//
// Created by Sebastien Thiebaud on 09/29/13.
// Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.
//
typedef enum... | 2a655bcf9e5c30077197d314690ffbf86a042712 | STTweetLabel/STTweetLabel.h | STTweetLabel/STTweetLabel.h | C |
<|file_sep|>original/lib/story_branch/version.rb
# frozen_string_literal: true
module StoryBranch
VERSION = '0.3.1'
end
<|file_sep|>current/lib/story_branch/version.rb
# frozen_string_literal: true
module StoryBranch
VERSION = '0.3.1'
end
<|file_sep|>updated/lib/story_branch/version.rb | # frozen_string_literal: true
module StoryBranch
VERSION = '0.3.2'
end | <|file_sep|>original/lib/story_branch/version.rb
# frozen_string_literal: true
module StoryBranch
VERSION = '0.3.1'
end
<|file_sep|>current/lib/story_branch/version.rb
# frozen_string_literal: true
module StoryBranch
VERSION = '0.3.1'
end
<|file_sep|>updated/lib/story_branch/version.rb
# frozen_string_literal: tr... | bc69907bc8a13111b3f136baa7c1b47f142b3e46 | lib/story_branch/version.rb | lib/story_branch/version.rb | Ruby |
<|file_sep|>original/lib/qiita/client/users.rb
module Qiita
class Client
module Users
def user_items(url_name=nil, params={})
path = url_name ? "/users/#{url_name}/items" : '/items'
get path, params
end
def user_following_users(url_name, params={})
get "/users/#{url_name... | module Qiita
class Client
module Users
def user_items(url_name=nil, params={})
path = url_name ? "/users/#{url_name}/items" : '/items'
get path, params
end
def user_following_tags(url_name, params={})
get "/users/#{url_name}/following_tags", params
end
def u... | <|file_sep|>original/lib/qiita/client/users.rb
module Qiita
class Client
module Users
def user_items(url_name=nil, params={})
path = url_name ? "/users/#{url_name}/items" : '/items'
get path, params
end
def user_following_users(url_name, params={})
get "/users/#{url_name... | f30698ff8ba46254ac113c6b432ecd520956afa0 | lib/qiita/client/users.rb | lib/qiita/client/users.rb | Ruby |
<|file_sep|>lib/opskit/vhost.rb.diff
original:
PROVIDERS = [:apache, :nginx]
updated:
PROVIDERS = Dir.entries( File.join( File.dirname(__FILE__), "templates/" ) ).select {|f| !File.directory? f}.map{ |e| e.split('.').first.to_sym }
<|file_sep|>original/lib/opskit/vhost.rb
def initialize( provider = nil, con... | def initialize( provider = nil, conf = {} )
@provider = provider
@conf = conf
end
def render
raise NotImplementedError "No template specified" unless @provider
if PROVIDERS.include? @provider.to_sym
file_path = File.join( File.dirname(__FILE__), "templates/#{ @provider }.er... | <|file_sep|>lib/opskit/vhost.rb.diff
original:
PROVIDERS = [:apache, :nginx]
updated:
PROVIDERS = Dir.entries( File.join( File.dirname(__FILE__), "templates/" ) ).select {|f| !File.directory? f}.map{ |e| e.split('.').first.to_sym }
<|file_sep|>original/lib/opskit/vhost.rb
def initialize( provider = nil, con... | 93217e36b065a326dfac54bd4b142a14990e6dee | lib/opskit/vhost.rb | lib/opskit/vhost.rb | Ruby |
<|file_sep|>guides/getting-started-osx.md.diff
original:
mkdir -p $HOME/mygo/src # create a place to put source code
updated:
```bash
mkdir -p $HOME/mygo/src # create a place to put source code
```
<|file_sep|>guides/getting-started-osx.md.diff
original:
export GOPATH=$HOME/mygo
export PATH=$PATH:$HOME/mygo... | ```
## Build
```bash
cd ${GOPATH}/src/github.com/matttproud/prometheus
make build
```
## Configure
```bash
cp prometheus.conf.example prometheus.conf
```
## Run
```bash
./prometheus
``` | <|file_sep|>guides/getting-started-osx.md.diff
original:
mkdir -p $HOME/mygo/src # create a place to put source code
updated:
```bash
mkdir -p $HOME/mygo/src # create a place to put source code
```
<|file_sep|>guides/getting-started-osx.md.diff
original:
export GOPATH=$HOME/mygo
export PATH=$PATH:$HOME/mygo... | 5caa2333ab705deffecdd1423f1b7ff6e5d550f9 | guides/getting-started-osx.md | guides/getting-started-osx.md | Markdown |
<|file_sep|>original/build-all.ps1
Param(
[switch] $Verbose
)
If (!$Verbose) {
$quietFlag = '--quiet'
}
Else {
$quietFlag = ''
}
$dnu = Get-Command dnu
& $dnu build 'src\HTTPlease*' 'test\HTTPlease*' $quietFlag
<|file_sep|>current/build-all.ps1
Param(
[switch] $Verbose
)
If (!$Verbose) {
$quietF... | Param(
[switch] $Verbose
)
If (!$Verbose) {
$quietFlag = '--quiet'
}
Else {
$quietFlag = ''
}
$dnu = Get-Command dnu
& $dnu build 'src\HTTPlease*' 'test\HTTPlease*' $quietFlag
# Ugh - dnu build returns a non-zero exit code when building multiple projects, even if they all succeed.
Return 0 | <|file_sep|>original/build-all.ps1
Param(
[switch] $Verbose
)
If (!$Verbose) {
$quietFlag = '--quiet'
}
Else {
$quietFlag = ''
}
$dnu = Get-Command dnu
& $dnu build 'src\HTTPlease*' 'test\HTTPlease*' $quietFlag
<|file_sep|>current/build-all.ps1
Param(
[switch] $Verbose
)
If (!$Verbose) {
$quietF... | 9c1ac6ae2c5f6843cf24296815a81a0f9e277c70 | build-all.ps1 | build-all.ps1 | PowerShell |
<|file_sep|>README.md.diff
original:
updated:
The "einbeinige" is a mysterious creature from the german radio scene. He allows scheduling calls for call-in shows with a simple proposal system.
<|file_sep|>original/README.md
#einbeiniger
## local testing
Install the ruby bundler gem and run bundle to install the gem... | #einbeiniger
The "einbeinige" is a mysterious creature from the german radio scene. He allows scheduling calls for call-in shows with a simple proposal system.
## local testing
Install the ruby bundler gem and run bundle to install the gems:
gem install bundler --no-ri --no-rdoc
bundle install
## deploymen... | <|file_sep|>README.md.diff
original:
updated:
The "einbeinige" is a mysterious creature from the german radio scene. He allows scheduling calls for call-in shows with a simple proposal system.
<|file_sep|>original/README.md
#einbeiniger
## local testing
Install the ruby bundler gem and run bundle to install the gem... | cead0423ce31f6a8c54186e8278605a15ce5b238 | README.md | README.md | Markdown |
<|file_sep|>original/CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (HydroMath)
add_executable(test_hydromath stats.c hydromath.c test.c)
add_library(hydromath SHARED stats.c hydromath.c)
<|file_sep|>current/CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (HydroMath)
add_executable(test_hydro... | cmake_minimum_required (VERSION 2.6)
project (HydroMath)
add_executable(test_hydromath stats.c hydromath.c test.c)
add_library(hydromath SHARED stats.c hydromath.c)
target_link_libraries(test_hydromath hydromath m) | <|file_sep|>original/CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (HydroMath)
add_executable(test_hydromath stats.c hydromath.c test.c)
add_library(hydromath SHARED stats.c hydromath.c)
<|file_sep|>current/CMakeLists.txt
cmake_minimum_required (VERSION 2.6)
project (HydroMath)
add_executable(test_hydro... | bca522d5db8391a852434a2a2c9198660a67f6ca | CMakeLists.txt | CMakeLists.txt | Text |
<|file_sep|>src/SAML2/Compat/AbstractContainer.php.diff
original:
abstract public function redirect($url, array $data = []);
updated:
abstract public function redirect($url, $data = []);
<|file_sep|>original/src/SAML2/Compat/AbstractContainer.php
*/
abstract public function debugMessage($message, $type... | */
abstract public function debugMessage($message, $type);
/**
* Trigger the user to perform a GET to the given URL with the given data.
*
* @param string $url
* @param array $data
* @return void
*/
abstract public function redirect($url, $data = []);
/**
* Trig... | <|file_sep|>src/SAML2/Compat/AbstractContainer.php.diff
original:
abstract public function redirect($url, array $data = []);
updated:
abstract public function redirect($url, $data = []);
<|file_sep|>original/src/SAML2/Compat/AbstractContainer.php
*/
abstract public function debugMessage($message, $type... | 49c183010e1a15bddc38dc26f252026718306f1d | src/SAML2/Compat/AbstractContainer.php | src/SAML2/Compat/AbstractContainer.php | PHP |
<|file_sep|>README.md.diff
original:
Swing Component to display MathML
updated:
## A Swing Component to display MathML
<|file_sep|>README.md.diff
original:
This library provides a component that can display MathML. It is meant to be better than JEuclid in supporting mover and munder tags, and automatically aligning the... | ## Current support
All tags are currently supported, but very few attributes are supported. Other attributes will be supported if needed. Feel free to ask, or participate.
Attributes currently supported:
- mathcolor
- color
- columnspacing
- rowspacing
## Maven
The steps to getting in the Maven Central repository ... | <|file_sep|>README.md.diff
original:
Swing Component to display MathML
updated:
## A Swing Component to display MathML
<|file_sep|>README.md.diff
original:
This library provides a component that can display MathML. It is meant to be better than JEuclid in supporting mover and munder tags, and automatically aligning the... | 412fb198a05a3a68ddf31584a6a0699e8e4698f3 | README.md | README.md | Markdown |
<|file_sep|>original/dev-requirements.txt
pytest
pytest-django
pytest-cov
# sugar is optional but pretty
pytest-sugar
django-debug-toolbar
<|file_sep|>current/dev-requirements.txt
pytest
pytest-django
pytest-cov
# sugar is optional but pretty
pytest-sugar
django-debug-toolbar
<|file_sep|>updated/dev-requirements.txt | pytest
pytest-django
pytest-cov
# sugar is optional but pretty
pytest-sugar
django-debug-toolbar
# for asana commit hook
asana
colorama | <|file_sep|>original/dev-requirements.txt
pytest
pytest-django
pytest-cov
# sugar is optional but pretty
pytest-sugar
django-debug-toolbar
<|file_sep|>current/dev-requirements.txt
pytest
pytest-django
pytest-cov
# sugar is optional but pretty
pytest-sugar
django-debug-toolbar
<|file_sep|>updated/dev-requirements.txt
py... | dcfd11f96b33e5f8c29f8ce169c06cbdc66ad00e | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>original/easy-settings.cmake
set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "kata-os-rootserver" CACHE STRING "")
set(PLATFORM "sparrow" CACHE STRING "The one and only seL4 platform f... | set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "kata-os-rootserver" CACHE STRING "")
set(PLATFORM "sparrow" CACHE STRING "The one and only seL4 platform for Sparrow")
set(RUST_TARGET "riscv32imac... | <|file_sep|>original/easy-settings.cmake
set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "kata-os-rootserver" CACHE STRING "")
set(PLATFORM "sparrow" CACHE STRING "The one and only seL4 platform f... | 7bef3289dd97d0c200635693ccd85e684915d31c | easy-settings.cmake | easy-settings.cmake | CMake |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- 0.12
- 4
- 6
- node
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- 0.12
- 4
- 6
- node
<|file_sep|>updated/.travis.yml | sudo: false
language: node_js
node_js:
- 4
- 6
- node | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- 0.12
- 4
- 6
- node
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- 0.12
- 4
- 6
- node
<|file_sep|>updated/.travis.yml
sudo: false
language: node_js
node_js:
- 4
- 6
- node | bf36f5a524d2498e257c123b4bd73ef464a49eab | .travis.yml | .travis.yml | YAML |
<|file_sep|>setmagic/models.py.diff
original:
updated:
from django.utils.encoding import python_2_unicode_compatible
<|file_sep|>original/setmagic/models.py
from django.db import models
class Setting(models.Model):
name = models.CharField(max_length=40, unique=True)
label = models.CharField(max_length=60)
... | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Setting(models.Model):
name = models.CharField(max_length=40, unique=True)
label = models.CharField(max_length=60)
help_text = models.TextField()
current_value = models.TextFie... | <|file_sep|>setmagic/models.py.diff
original:
updated:
from django.utils.encoding import python_2_unicode_compatible
<|file_sep|>original/setmagic/models.py
from django.db import models
class Setting(models.Model):
name = models.CharField(max_length=40, unique=True)
label = models.CharField(max_length=60)
... | d2c552b8996ce1ef8a2d5ef64f6a2b60ce306cf3 | setmagic/models.py | setmagic/models.py | Python |
<|file_sep|>original/requirements/prod.txt
flask_socketio==3.0.1
python-engineio==2.2.0
python-socketio==2.0.0
# Celery
celery==4.2.1
redis==2.10.6
# Octave interaction
scipy==1.1.0
numpy==1.14.5
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.2
# Database
SQLAlchemy==1.2.10
Flask-SQL... | flask_socketio==3.0.1
python-engineio==2.2.0
python-socketio==2.0.0
# Celery
celery==4.2.1
redis==2.10.6
# Octave interaction
scipy==1.1.0
numpy==1.15.0
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.2
# Database
SQLAlchemy==1.2.10
Flask-SQLAlchemy==2.3.2
| <|file_sep|>original/requirements/prod.txt
flask_socketio==3.0.1
python-engineio==2.2.0
python-socketio==2.0.0
# Celery
celery==4.2.1
redis==2.10.6
# Octave interaction
scipy==1.1.0
numpy==1.14.5
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.2
# Database
SQLAlchemy==1.2.10
Flask-SQL... | 1dc2e5c81b7e1a54a05d00f5acbe4cf7fe329e9c | requirements/prod.txt | requirements/prod.txt | Text |
<|file_sep|>original/govuk-content-schema-test-helpers.gemspec
require 'govuk-content-schema-test-helpers/version'
Gem::Specification.new do |s|
s.name = 'govuk-content-schema-test-helpers'
s.version = GovukContentSchemaTestHelpers::VERSION
s.date = '2015-03-10'
s.summary = "Test helpers... | require 'govuk-content-schema-test-helpers/version'
Gem::Specification.new do |s|
s.name = 'govuk-content-schema-test-helpers'
s.version = GovukContentSchemaTestHelpers::VERSION
s.date = '2015-03-10'
s.summary = "Test helpers for working with GOV.UK content schemas"
s.description = "Thi... | <|file_sep|>original/govuk-content-schema-test-helpers.gemspec
require 'govuk-content-schema-test-helpers/version'
Gem::Specification.new do |s|
s.name = 'govuk-content-schema-test-helpers'
s.version = GovukContentSchemaTestHelpers::VERSION
s.date = '2015-03-10'
s.summary = "Test helpers... | 0001c9f5d4345d0588ac815c279edac79aca80ba | govuk-content-schema-test-helpers.gemspec | govuk-content-schema-test-helpers.gemspec | Ruby |
<|file_sep|>original/app/views/31/ni/ni_side_bar_mqp.html
<div>
<h2 class="heading-small">Summary</h2>
<nav role="navigation" aria-labelledby="parent-subsection">
<ul class="list-bullets">
<li><span style="font-size: 24px; font-weight: 700">6</span><br>years of full contributions</li>
<li><span style="font-s... | <div>
<h2 class="heading-small">Summary</h2>
<nav role="navigation" aria-labelledby="parent-subsection">
<ul class="list-bullets">
<li><span style="font-size: 24px; font-weight: 700">6</span><br>years of full contributions</li>
<li><span style="font-size: 24px; font-weight: 700">10</span><br>years when you d... | <|file_sep|>original/app/views/31/ni/ni_side_bar_mqp.html
<div>
<h2 class="heading-small">Summary</h2>
<nav role="navigation" aria-labelledby="parent-subsection">
<ul class="list-bullets">
<li><span style="font-size: 24px; font-weight: 700">6</span><br>years of full contributions</li>
<li><span style="font-s... | 9fbb7f57341bfb8df46529a07f13b795126edb0e | app/views/31/ni/ni_side_bar_mqp.html | app/views/31/ni/ni_side_bar_mqp.html | HTML |
<|file_sep|>original/cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst
installed):
.. tabbed-parsed-literal::
$ cd cdap-sdk-|version|
$ ./bin/cdap.sh start
. . .
$ ./bin/cdap.sh stop
.. include:: /_includes/windows-note.txt
Note that starting CDAP is not necessary if you use ... |
.. tabbed-parsed-literal::
$ cd cdap-sdk-|version|
$ ./bin/cdap.sh start
. . .
$ ./bin/cdap.sh stop
.. include:: /_includes/windows-note.txt
Note that starting CDAP is not necessary if you use either the Virtual Machine or the
Docker image, as they both start the Standalone CDAP automatically on ... | <|file_sep|>original/cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst
installed):
.. tabbed-parsed-literal::
$ cd cdap-sdk-|version|
$ ./bin/cdap.sh start
. . .
$ ./bin/cdap.sh stop
.. include:: /_includes/windows-note.txt
Note that starting CDAP is not necessary if you use ... | b669d79d670f9f621be834335e1b8a91dfcaba1e | cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst | cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst | reStructuredText |
<|file_sep|>original/app/views/appointment_summaries/new.html.erb
<% if @appointment_summary.errors.any? %>
<ul>
<% @appointment_summary.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end %>
<%= form_for @appointment_summary, url: appointment_summaries_path do |f| %>
<... | <% if @appointment_summary.errors.any? %>
<ul>
<% @appointment_summary.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end %>
<%= form_for @appointment_summary, url: appointment_summaries_path do |f| %>
<div class="l-form-row">
<%= f.label :name %>
<%= f.text_fi... | <|file_sep|>original/app/views/appointment_summaries/new.html.erb
<% if @appointment_summary.errors.any? %>
<ul>
<% @appointment_summary.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end %>
<%= form_for @appointment_summary, url: appointment_summaries_path do |f| %>
<... | b173bd8e08854d080d97e55694d28d4546249699 | app/views/appointment_summaries/new.html.erb | app/views/appointment_summaries/new.html.erb | HTML+ERB |
<|file_sep|>original/src/index.html
<!DOCTYPE html>
<html>
<head>
<title>Blink Computational Thinking</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes, minimal-ui=yes">
<link href='https://fonts.googleapis.com/css... | <!DOCTYPE html>
<html>
<head>
<title>Blink Computational Thinking</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes, minimal-ui=yes">
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono|Lato:400,700" re... | <|file_sep|>original/src/index.html
<!DOCTYPE html>
<html>
<head>
<title>Blink Computational Thinking</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes, minimal-ui=yes">
<link href='https://fonts.googleapis.com/css... | 3ec7df497324cf2558579dbf692306e5a1b89f80 | src/index.html | src/index.html | HTML |
<|file_sep|>original/.circleci/config.yml
export NVM_DIR=${HOME}/.nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"
nvm install ${NODE_VERSION}
nvm alias default ${NODE_VERSION}
... | nvm install ${NODE_VERSION}
nvm alias default ${NODE_VERSION}
echo "[ -s \"${NVM_DIR}/nvm.sh\" ] && . \"${NVM_DIR}/nvm.sh\"" >> $BASH_ENV
- run: npm install --build-from-source=@atom/watcher
- run: npm run ci:circle
- store_test_results:
path: test-results
- store_a... | <|file_sep|>original/.circleci/config.yml
export NVM_DIR=${HOME}/.nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"
nvm install ${NODE_VERSION}
nvm alias default ${NODE_VERSION}
... | 8a0f859b1ac77525d58d5ad90bfff197a12eeff5 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/README.md
# bitcoincash
This is the repository for [bitcoincash.org](https://bitcoincash.org). As the Bitcoin Cash community expands, we hope that many will participate and improve this project over time.
Build & Run the Docker Image
----------------------------
1. `docker build .`
2. `docker ru... | # bitcoincash
This is the repository for [bitcoincash.org](https://bitcoincash.org). As the Bitcoin Cash community expands, we hope that many will participate and improve this project over time.
Build & Run the Docker Image
----------------------------
1. `docker build -t bitcoincash .`
2. `docker run -d -p 8888:80 ... | <|file_sep|>original/README.md
# bitcoincash
This is the repository for [bitcoincash.org](https://bitcoincash.org). As the Bitcoin Cash community expands, we hope that many will participate and improve this project over time.
Build & Run the Docker Image
----------------------------
1. `docker build .`
2. `docker ru... | 0cb1d1187713af93117d5a7e199d511c667afa59 | README.md | README.md | Markdown |
<|file_sep|>original/website/source/intro/getting-started/next.html.markdown
That concludes the getting started guide for Packer. You should now be comfortable with basic Packer usage, should understand templates, defining builds, provisioners, etc. At this point you're ready to begin playing with and using Packer in... | That concludes the getting started guide for Packer. You should now be comfortable with basic Packer usage, should understand templates, defining builds, provisioners, etc. At this point you're ready to begin playing with and using Packer in real scenarios.
---
# Next Steps
That concludes the getting started guide ... | <|file_sep|>original/website/source/intro/getting-started/next.html.markdown
That concludes the getting started guide for Packer. You should now be comfortable with basic Packer usage, should understand templates, defining builds, provisioners, etc. At this point you're ready to begin playing with and using Packer in... | a3bf467378f60e363bb5621496d46afd0bdc64a5 | website/source/intro/getting-started/next.html.markdown | website/source/intro/getting-started/next.html.markdown | Markdown |
<|file_sep|>original/app/dashboard/templates/date_range.html
<|file_sep|>current/app/dashboard/templates/date_range.html
<|file_sep|>updated/app/dashboard/templates/date_range.html | <div class="row">
<div class="col-lg-12">
<h2>{{ results_title|default('Latest Results')|safe }}</h2>
<p>
The results shown here cover the last <strong>15 days</strong> of available data. The starting date is calculated from today,
{{ server_date }}, at midnight UTC.
... | <|file_sep|>original/app/dashboard/templates/date_range.html
<|file_sep|>current/app/dashboard/templates/date_range.html
<|file_sep|>updated/app/dashboard/templates/date_range.html
<div class="row">
<div class="col-lg-12">
<h2>{{ results_title|default('Latest Results')|safe }}</h2>
<p>
The... | e52059f13b4365a18dbb67e51af8ee8e2d29abc4 | app/dashboard/templates/date_range.html | app/dashboard/templates/date_range.html | HTML |
<|file_sep|>original/README.md
# mouse-capability-extender
Mouse capability extender for Windows
<|file_sep|>current/README.md
# mouse-capability-extender
Mouse capability extender for Windows
<|file_sep|>updated/README.md | # [WIP]mouse capability extender
Mouse capability extender for Windows.
This program is under work in progress and does not work at this time.
## Functions
- Clicks a specific point by a short cut key.
- V[gJbgL[łWNbN
- Moves the mouse cursor to the opposite edge when the cursor on the edge of the screen.
- }EXJ[... | <|file_sep|>original/README.md
# mouse-capability-extender
Mouse capability extender for Windows
<|file_sep|>current/README.md
# mouse-capability-extender
Mouse capability extender for Windows
<|file_sep|>updated/README.md
# [WIP]mouse capability extender
Mouse capability extender for Windows.
This program is under wor... | cdd0bb0ed5d96eb37ce1c995e0d53bc602193037 | README.md | README.md | Markdown |
<|file_sep|>src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs.diff
original:
updated:
using Microsoft.CodeAnalysis.Editor.Shared.Extensions;
<|file_sep|>original/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs
[Export(typeof(IAsyncQuic... | [ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public QuickInfoSourceProvider(
IThreadingContext threadingContext,
Lazy<IStreamingFindUsagesPresenter> streamingPresenter)
{
_threadingContext = threadingConte... | <|file_sep|>src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs.diff
original:
updated:
using Microsoft.CodeAnalysis.Editor.Shared.Extensions;
<|file_sep|>original/src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs
[Export(typeof(IAsyncQuic... | 3db81d6de439e250196721629e78c65f922cdb37 | src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs | src/EditorFeatures/Core/Implementation/IntelliSense/QuickInfo/QuickInfoSourceProvider.cs | C# |
<|file_sep|>original/app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
# frozen_string_literal: true
xml = builder
# temp hack until XSD updated to include missing code 34
cause_code = cause.code
cause_code = 99 if cause_code == 34
xml.CauseOfDeath do
xml.DiagnosisType "final"
xml.Diag... | # frozen_string_literal: true
xml = builder
# temp hack until XSD updated to include missing code 34
cause_code = cause.code
cause_code = 99 if cause_code == 34
xml.CauseOfDeath do
xml.DiagnosisType "final"
xml.Diagnosis do
xml.CodingStandard "EDTA_COD"
xml.Code cause_code
end
xml.EnteredOn cause.cre... | <|file_sep|>original/app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
# frozen_string_literal: true
xml = builder
# temp hack until XSD updated to include missing code 34
cause_code = cause.code
cause_code = 99 if cause_code == 34
xml.CauseOfDeath do
xml.DiagnosisType "final"
xml.Diag... | 209e2dd2ed4c2c22d0fbd59179057f85326f01fd | app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder | app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder | Ruby |
<|file_sep|>dojopuzzles/core/urls.py.diff
original:
updated:
from core import views
<|file_sep|>dojopuzzles/core/urls.py.diff
original:
from core import views
updated:
<|file_sep|>original/dojopuzzles/core/urls.py
from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("ho... | from core import views
from django.urls import path
app_name = "core"
urlpatterns = [
path("", views.home, name="home"),
path("about/", views.about, name="about"),
] | <|file_sep|>dojopuzzles/core/urls.py.diff
original:
updated:
from core import views
<|file_sep|>dojopuzzles/core/urls.py.diff
original:
from core import views
updated:
<|file_sep|>original/dojopuzzles/core/urls.py
from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("ho... | d5e3d6c3ca285f1037f284cfb78e279c2d1032ec | dojopuzzles/core/urls.py | dojopuzzles/core/urls.py | Python |
<|file_sep|>original/ci/release-staging.sh
#!/usr/bin/env bash
set -eou pipefail
: "${VERSION?Need to set VERSION (eg 0.0.1)}"
PUBLISHING_USER=$(security find-generic-password -a "${USER}" -s PELLET_PUBLISHING_USER -w)
: "${PUBLISHING_USER?Need to set PUBLISHING_USER}"
export PUBLISHING_USER
PUBLISHING_PASSWORD=$(se... | #!/usr/bin/env bash
set -eou pipefail
: "${VERSION?Need to set VERSION (eg 0.0.1)}"
PUBLISHING_USER=$(security find-generic-password -a "${USER}" -s PELLET_PUBLISHING_USER -w)
: "${PUBLISHING_USER?Need to set PUBLISHING_USER}"
export PUBLISHING_USER
PUBLISHING_PASSWORD=$(security find-generic-password -a "${USER}" -... | <|file_sep|>original/ci/release-staging.sh
#!/usr/bin/env bash
set -eou pipefail
: "${VERSION?Need to set VERSION (eg 0.0.1)}"
PUBLISHING_USER=$(security find-generic-password -a "${USER}" -s PELLET_PUBLISHING_USER -w)
: "${PUBLISHING_USER?Need to set PUBLISHING_USER}"
export PUBLISHING_USER
PUBLISHING_PASSWORD=$(se... | e8d3392071ef1e995ba0b07ecb96aafe0888e0b7 | ci/release-staging.sh | ci/release-staging.sh | Shell |
<|file_sep|>original/build.rs
extern crate pkg_config;
use pkg_config::Config;
fn main() {
Config::new().atleast_version("2.36").find("gobject-2.0").unwrap();
}
<|file_sep|>current/build.rs
extern crate pkg_config;
use pkg_config::Config;
fn main() {
Config::new().atleast_version("2.36").find("gobject-2.0")... | extern crate pkg_config;
use pkg_config::Config;
fn main() {
Config::new().atleast_version("2.47").find("gobject-2.0").unwrap();
} | <|file_sep|>original/build.rs
extern crate pkg_config;
use pkg_config::Config;
fn main() {
Config::new().atleast_version("2.36").find("gobject-2.0").unwrap();
}
<|file_sep|>current/build.rs
extern crate pkg_config;
use pkg_config::Config;
fn main() {
Config::new().atleast_version("2.36").find("gobject-2.0")... | b16352be75de7b5f274769517eb582bb83090cc1 | build.rs | build.rs | Rust |
<|file_sep|>original/.travis.yml
- 2.3.0
- rbx-2
- ruby-head
matrix:
include:
- rvm: jruby
env: JRUBY_OPTS='--2.0 --server -Xcompile.invokedynamic=false'
- rvm: jruby-head
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
allow_failures:
- rvm: jruby
- rvm: jruby-head
- ... | matrix:
include:
- rvm: jruby
env: JRUBY_OPTS='--2.0 --server -Xcompile.invokedynamic=false'
- rvm: jruby-head
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
allow_failures:
- rvm: jruby
- rvm: jruby-head
- rvm: rbx-2
- rvm: ruby-head
fast_finish: true
notifications:
... | <|file_sep|>original/.travis.yml
- 2.3.0
- rbx-2
- ruby-head
matrix:
include:
- rvm: jruby
env: JRUBY_OPTS='--2.0 --server -Xcompile.invokedynamic=false'
- rvm: jruby-head
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
allow_failures:
- rvm: jruby
- rvm: jruby-head
- ... | 75a4d43f1370b9d41357c2cf686448ff87cbe1d5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/hashtable.py
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string
class HashTable(object):
def __init__(self):
self.table = [None]*10000
def store(self, string):
hash_value = self.calculate_hash_value(string)
if ha... | self.table = [None]*10000
def store(self, string):
hash_value = self.calculate_hash_value(string)
if hash_value != -1:
if self.table[hash_value] != None:
self.table[hash_value].append(string)
else:
self.table[hash_value] = [string]
def search(self, string):
hash_value = self.calculate_hash_val... | <|file_sep|>original/hashtable.py
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string
class HashTable(object):
def __init__(self):
self.table = [None]*10000
def store(self, string):
hash_value = self.calculate_hash_value(string)
if ha... | 3bcc646e1120e69a9aab412e22a4f85cce4da7bf | hashtable.py | hashtable.py | Python |
<|file_sep|>app/models/manual_with_sections.rb.diff
original:
unless section_order.sort == @sections.map(&:id).sort
updated:
unless section_order.sort == sections.map(&:id).sort
<|file_sep|>app/models/manual_with_sections.rb.diff
original:
@sections.sort_by! { |sec| section_order.index(sec.id) }
updated:
... | end
sections.sort_by! { |sec| section_order.index(sec.id) }
end
def remove_section(section_id)
found_section = sections.find { |d| d.id == section_id }
return if found_section.nil?
removed = sections.delete(found_section)
return if removed.nil?
removed_sections << removed
end
... | <|file_sep|>app/models/manual_with_sections.rb.diff
original:
unless section_order.sort == @sections.map(&:id).sort
updated:
unless section_order.sort == sections.map(&:id).sort
<|file_sep|>app/models/manual_with_sections.rb.diff
original:
@sections.sort_by! { |sec| section_order.index(sec.id) }
updated:
... | 213ba6b1fe8a2081673d707ad4e74e5e8e7e0bdc | app/models/manual_with_sections.rb | app/models/manual_with_sections.rb | Ruby |
<|file_sep|>original/lib/active_cleaner/utf8mb3_cleaner.rb
# encoding: utf-8
module ActiveCleaner
class Utf8mb3Cleaner < BaseCleaner
def clean_value(old_value, record=nil)
unless old_value.nil?
old_value.each_char.select { |char| char.bytes.length < 4 }.join('')
end
end
end
end
<|file... | # encoding: utf-8
module ActiveCleaner
class Utf8mb3Cleaner < BaseCleaner
def clean_value(old_value, record=nil)
unless old_value.nil?
old_value.each_char.select { |char| char.bytesize < 4 }.join('')
end
end
end
end | <|file_sep|>original/lib/active_cleaner/utf8mb3_cleaner.rb
# encoding: utf-8
module ActiveCleaner
class Utf8mb3Cleaner < BaseCleaner
def clean_value(old_value, record=nil)
unless old_value.nil?
old_value.each_char.select { |char| char.bytes.length < 4 }.join('')
end
end
end
end
<|file... | 5c4cc50395c1f2b6eaf5ba56438380d87ceba2f0 | lib/active_cleaner/utf8mb3_cleaner.rb | lib/active_cleaner/utf8mb3_cleaner.rb | Ruby |
<|file_sep|>original/templates/nav.html
$if(contents)$
<ul>
$for(contents)$
<a href="$it.path$">$if(it.meta.title)$$it.meta.title$$else$$it.name$$endif$</a>
<li>${it.contents:nav()}</li>
$endfor$
</ul>
$endif$
<|file_sep|>current/templates/nav.html
$if(contents)$
<ul>
$for(contents)$
<a href="$it.path$">$if(it.meta.tit... | $if(contents)$
<ul>
$for(contents)$
<li>
$if(it.link)$
<a href="$it.link$">$if(it.meta.title)$$it.meta.title$$else$$it.name$$endif$</a>
$elseif(it.frontmatter.link)$
<a href="$it.frontmatter.link$">$if(it.frontmatter.meta.title)$$it.frontmatter.meta.title$$else$$it.frontmatter.name$$endif$</a>
$else$
<span>$if(it.meta.... | <|file_sep|>original/templates/nav.html
$if(contents)$
<ul>
$for(contents)$
<a href="$it.path$">$if(it.meta.title)$$it.meta.title$$else$$it.name$$endif$</a>
<li>${it.contents:nav()}</li>
$endfor$
</ul>
$endif$
<|file_sep|>current/templates/nav.html
$if(contents)$
<ul>
$for(contents)$
<a href="$it.path$">$if(it.meta.tit... | 35b16cfefce23fe264f3e1fcb17ec43e55b896ae | templates/nav.html | templates/nav.html | HTML |
<|file_sep|>original/template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/Disable2fa.cshtml
ViewData["ActivePage"] = "TwoFactorAuthentication";
}
<h2>@ViewData["Title"]</h2>
<div class="alert alert-warning" role="alert">
<p>
<span class="glyphicon g... | ViewData["ActivePage"] = "TwoFactorAuthentication";
}
<h2>@ViewData["Title"]</h2>
<div class="alert alert-warning" role="alert">
<p>
<span class="glyphicon glyphicon-warning-sign"></span>
<strong>This action only disables 2FA.</strong>
</p>
<p>
Disabling 2FA does not change the... | <|file_sep|>original/template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/Disable2fa.cshtml
ViewData["ActivePage"] = "TwoFactorAuthentication";
}
<h2>@ViewData["Title"]</h2>
<div class="alert alert-warning" role="alert">
<p>
<span class="glyphicon g... | 97658c2c8c479c035458ffaa41db3311f8f2435e | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/Disable2fa.cshtml | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/Disable2fa.cshtml | C# |
<|file_sep|>original/sass/libguides/_admin.scss
/* ==========================================================================
Admin Stuff
========================================================================== */
/* "Edit Box" link */
.boxeditlink {
@include adjust-font-size-to($s);
}
<|file_sep|>current/... | /* ==========================================================================
Admin Stuff
========================================================================== */
/* "Edit Box" link */
.boxeditlink {
@include adjust-font-size-to($m, 4, ($headerbox-size + $heading-size-adjustment));
font-family: $tex... | <|file_sep|>original/sass/libguides/_admin.scss
/* ==========================================================================
Admin Stuff
========================================================================== */
/* "Edit Box" link */
.boxeditlink {
@include adjust-font-size-to($s);
}
<|file_sep|>current/... | 96acdaf2ba517e99a91ded17616ba46db30db276 | sass/libguides/_admin.scss | sass/libguides/_admin.scss | SCSS |
<|file_sep|>original/webpack-aot.config.js
'use strict';
const path = require('path');
const webpackConfig = require('./webpack.config.js');
const loaders = require('./webpack/loaders');
const AotPlugin = require('@ngtools/webpack').AotPlugin;
webpackConfig.module.rules = [
loaders.tslint,
loaders.ts,
loaders.h... | 'use strict';
const path = require('path');
const webpackConfig = require('./webpack.config.js');
const loaders = require('./webpack/loaders');
const AotPlugin = require('@ngtools/webpack').AotPlugin;
webpackConfig.module.rules = [
loaders.tslint,
loaders.ts,
loaders.html,
{ test: /\.css$/, use: 'raw-loader',... | <|file_sep|>original/webpack-aot.config.js
'use strict';
const path = require('path');
const webpackConfig = require('./webpack.config.js');
const loaders = require('./webpack/loaders');
const AotPlugin = require('@ngtools/webpack').AotPlugin;
webpackConfig.module.rules = [
loaders.tslint,
loaders.ts,
loaders.h... | 727b7206e69a2b7d8bc303821d537ade315c310e | webpack-aot.config.js | webpack-aot.config.js | JavaScript |
<|file_sep|>build.sbt.diff
original:
organization := "com.geeksville"
updated:
organization := "com.3drobotics"
<|file_sep|>build.sbt.diff
original:
version := "1.0-SNAPSHOT"
updated:
version := "0.1-SNAPSHOT"
<|file_sep|>build.sbt.diff
original:
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.2.3"
up... | version := "0.1-SNAPSHOT"
scalaVersion := "2.10.3"
autoScalaLibrary := false // This is a pure java project
crossPaths := false // disable using the Scala version in output paths and artifacts
libraryDependencies += "com.google.protobuf" % "protobuf-java" % "2.5.0"
mainClass in (Compile, run) := Some( "com.geeksvi... | <|file_sep|>build.sbt.diff
original:
organization := "com.geeksville"
updated:
organization := "com.3drobotics"
<|file_sep|>build.sbt.diff
original:
version := "1.0-SNAPSHOT"
updated:
version := "0.1-SNAPSHOT"
<|file_sep|>build.sbt.diff
original:
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.2.3"
up... | a88ed0ed4aa8c1b0147ef9ff4a62bb5c494a89bf | build.sbt | build.sbt | Scala |
<|file_sep|>original/circle.yml
cache_directories:
- .tox
override:
# Deactivate the CircleCI venv so project is installed in penv venv.
- deactivate; make build devinstall
# Set up tox environments so they are cached across builds.
- tox --notest
test:
override:
- make test
post:
#... | - .tox
override:
# Deactivate the CircleCI venv so project is installed in penv venv.
- deactivate; make build devinstall
# Set up tox environments so they are cached across builds.
- tox --notest
test:
override:
- make test
post:
# Deactivate the CircleCI venv so coverage is tested o... | <|file_sep|>original/circle.yml
cache_directories:
- .tox
override:
# Deactivate the CircleCI venv so project is installed in penv venv.
- deactivate; make build devinstall
# Set up tox environments so they are cached across builds.
- tox --notest
test:
override:
- make test
post:
#... | ce8c28568215aef175791528e7538bb83984faab | circle.yml | circle.yml | YAML |
<|file_sep|>config/fish/interactive/ll.fish.diff
original:
function ll --wraps ls --description "List contents of directory using long format"
updated:
# detect if flag supported
if ls --group-directories-first &> /dev/null
function ll --wraps ls --description "List contents of directory using long format"
<|file_sep... | # detect if flag supported
if ls --group-directories-first &> /dev/null
function ll --wraps ls --description "List contents of directory using long format"
ls -lh --group-directories-first $argv
end
end | <|file_sep|>config/fish/interactive/ll.fish.diff
original:
function ll --wraps ls --description "List contents of directory using long format"
updated:
# detect if flag supported
if ls --group-directories-first &> /dev/null
function ll --wraps ls --description "List contents of directory using long format"
<|file_sep... | b3e4bc2a7916c272589991498f51ba890c6415cb | config/fish/interactive/ll.fish | config/fish/interactive/ll.fish | fish |
<|file_sep|>public_html/js/template.js.diff
original:
$(".navbar").fadeOut();
updated:
// $(".navbar").fadeOut();
<|file_sep|>original/public_html/js/template.js
// jQuery to unhide + collapse the navbar on scroll
$(window).scroll(function () {
"use strict";
if ($(".navbar").offset().top > 50) ... |
// jQuery to unhide + collapse the navbar on scroll
$(window).scroll(function () {
"use strict";
if ($(".navbar").offset().top > 50) {
//fade-in unhide
// $(".navbar").fadeOut();
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
//fade-out hide
// $(".nav... | <|file_sep|>public_html/js/template.js.diff
original:
$(".navbar").fadeOut();
updated:
// $(".navbar").fadeOut();
<|file_sep|>original/public_html/js/template.js
// jQuery to unhide + collapse the navbar on scroll
$(window).scroll(function () {
"use strict";
if ($(".navbar").offset().top > 50) ... | ad68aa688333358e924028abe9a92b25c43847c0 | public_html/js/template.js | public_html/js/template.js | JavaScript |
<|file_sep|>original/init-flyspell.el
(dolist (hook '(lisp-mode-hook
emacs-lisp-mode-hook
scheme-mode-hook
ruby-mode-hook
yaml-mode
python-mode-hook
shell-mode-hook
php-mode-hook
css-mode-hook... | (dolist (hook '(lisp-mode-hook
emacs-lisp-mode-hook
scheme-mode-hook
clojure-mode-hook
ruby-mode-hook
yaml-mode
python-mode-hook
shell-mode-hook
php-mode-hook
css-mode-hook
... | <|file_sep|>original/init-flyspell.el
(dolist (hook '(lisp-mode-hook
emacs-lisp-mode-hook
scheme-mode-hook
ruby-mode-hook
yaml-mode
python-mode-hook
shell-mode-hook
php-mode-hook
css-mode-hook... | 2e3feaa05de82545dc4542d54e00ae12474f7709 | init-flyspell.el | init-flyspell.el | Emacs Lisp |
<|file_sep|>freeciv/version.txt.diff
original:
# Previous:29296
FCREV=29306
updated:
# Previous:29306
FCREV=29307
<|file_sep|>original/freeciv/version.txt
# I keep previous version easily available here so I don't need to check
# version history constantly when handling ruleset differences.
# Previous:29296
FCREV=29306... | # I keep previous version easily available here so I don't need to check
# version history constantly when handling ruleset differences.
# Previous:29306
FCREV=29307
FCBRANCH=trunk
ORIGCAPSTR="+Freeciv.Devel-3.0-2015.Aug.03"
# There's no need to bump this constantly as current freeciv-web
# makes no connections to ou... | <|file_sep|>freeciv/version.txt.diff
original:
# Previous:29296
FCREV=29306
updated:
# Previous:29306
FCREV=29307
<|file_sep|>original/freeciv/version.txt
# I keep previous version easily available here so I don't need to check
# version history constantly when handling ruleset differences.
# Previous:29296
FCREV=29306... | 04629e38a05a0242450957ca8e67c4f480365587 | freeciv/version.txt | freeciv/version.txt | Text |
<|file_sep|>original/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>current/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>updated/mangaki/mangaki/migrations/0013_auto_20150616_0919.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('mangaki', '0012_auto_20150616_0832'),
]
operations = [
migrations.AddField(
model_name='anime',
name... | <|file_sep|>original/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>current/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>updated/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, ... | 3caef811ab9f60988dd06bc2161f373b61bb9c8d | mangaki/mangaki/migrations/0013_auto_20150616_0919.py | mangaki/mangaki/migrations/0013_auto_20150616_0919.py | Python |
<|file_sep|>composer.json.diff
original:
"psr-0": { "Doctrine\\Bundle\\FixturesBundle": "" }
updated:
"psr-4": { "Doctrine\\Bundle\\FixturesBundle\\": "" }
<|file_sep|>original/composer.json
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
... | },
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"require": {
"php": ">=5.3.2",
"symfony/doctrine-bridge": "~2.1",
"doctrine/doctrine-bundle": "~1.0",
"doctrine/data-fixtures": "~1.0"
},
"... | <|file_sep|>composer.json.diff
original:
"psr-0": { "Doctrine\\Bundle\\FixturesBundle": "" }
updated:
"psr-4": { "Doctrine\\Bundle\\FixturesBundle\\": "" }
<|file_sep|>original/composer.json
{
"name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
... | 271f5ebf8296223581208e6250a0ab7109a8ddef | composer.json | composer.json | JSON |
<|file_sep|>loopback/common/models/geojson-feature.json.diff
original:
"principalType": "Role",
"principalId": "admin",
updated:
"principalType": "ROLE",
"principalId": "$authenticated",
<|file_sep|>original/loopback/common/models/geojson-feature.json
},
"validations": [],
"relations": {},
"acls... | },
"validations": [],
"relations": {},
"acls": [{
"model": "GeoJSONFeature",
"property": "*",
"accessType": "*",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
},
{
"model": "GeoJSONFeature",
"property": "*",
"accessType": "*",
"princi... | <|file_sep|>loopback/common/models/geojson-feature.json.diff
original:
"principalType": "Role",
"principalId": "admin",
updated:
"principalType": "ROLE",
"principalId": "$authenticated",
<|file_sep|>original/loopback/common/models/geojson-feature.json
},
"validations": [],
"relations": {},
"acls... | 7dd2bf64d23299ca10d78346de21687bc21a5a66 | loopback/common/models/geojson-feature.json | loopback/common/models/geojson-feature.json | JSON |
<|file_sep|>original/tests/ImageInfoTest.php
'width' => self::TEST_IMAGE_WIDTH,
'height' => self::TEST_IMAGE_HEIGHT,
'size' => self::TEST_IMAGE_SIZE,
'mime' => self::TEST_IMAGE_MIME,
]);
}
public function testGuzzle()
{
$info = Embed\ImageInfo... | 'width' => self::TEST_IMAGE_WIDTH,
'height' => self::TEST_IMAGE_HEIGHT,
'size' => self::TEST_IMAGE_SIZE,
'mime' => self::TEST_IMAGE_MIME,
]);
}
public function testGuzzle()
{
$info = Embed\ImageInfo\Guzzle5::getImagesInfo([[
'value... | <|file_sep|>original/tests/ImageInfoTest.php
'width' => self::TEST_IMAGE_WIDTH,
'height' => self::TEST_IMAGE_HEIGHT,
'size' => self::TEST_IMAGE_SIZE,
'mime' => self::TEST_IMAGE_MIME,
]);
}
public function testGuzzle()
{
$info = Embed\ImageInfo... | 6df8330952d0475a8a84b7c545f6cf1a0231a600 | tests/ImageInfoTest.php | tests/ImageInfoTest.php | PHP |
<|file_sep|>original/circle.yml
dependencies:
override:
- npm install
- bower install
cache_directories:
- "node_modules"
- "bower_components"
<|file_sep|>current/circle.yml
dependencies:
override:
- npm install
- bower install
cache_directories:
- "node_modules"
- "bower_compone... | machine:
node:
version: 5.1.0
dependencies:
override:
- npm install
- bower install
cache_directories:
- "node_modules"
- "bower_components" | <|file_sep|>original/circle.yml
dependencies:
override:
- npm install
- bower install
cache_directories:
- "node_modules"
- "bower_components"
<|file_sep|>current/circle.yml
dependencies:
override:
- npm install
- bower install
cache_directories:
- "node_modules"
- "bower_compone... | 173dd5e67392dffb8de6f8ca343654e803ee1432 | circle.yml | circle.yml | YAML |
<|file_sep|>original/cmake/scripts/local_install.cmake
# Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCM... | # Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
set(ENV{DESTDIR} "")
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCMAKE_INSTALL_COMPONENT=${component}... | <|file_sep|>original/cmake/scripts/local_install.cmake
# Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCM... | e058513e6c7e8cc3a7f2a0e04c5f7a861a5e27d6 | cmake/scripts/local_install.cmake | cmake/scripts/local_install.cmake | CMake |
<|file_sep|>original/kernel/core/misc.rb
# depends on: module.rb class.rb
def self.to_s
"main"
end
module Rubinius
AtExit = []
end
class NilClass
alias_method :|, :^
def call(*a)
raise LocalJumpError, "not callable"
end
end
NIL = nil
class TrueClass
<|file_sep|>current/kernel/core/misc.rb
# depends ... | # depends on: module.rb class.rb
class << MAIN
def include(*mods)
self.metaclass.include(*mods)
end
def public(*methods)
self.metaclass.public(*methods)
end
def private(*methods)
self.metaclass.private(*methods)
end
def protected(*methods)
self.metaclass.protected(*methods)
end
e... | <|file_sep|>original/kernel/core/misc.rb
# depends on: module.rb class.rb
def self.to_s
"main"
end
module Rubinius
AtExit = []
end
class NilClass
alias_method :|, :^
def call(*a)
raise LocalJumpError, "not callable"
end
end
NIL = nil
class TrueClass
<|file_sep|>current/kernel/core/misc.rb
# depends ... | 8020ebb588622db62c0d13f9654aa795ad8f6002 | kernel/core/misc.rb | kernel/core/misc.rb | Ruby |
<|file_sep|>original/src/styles/global.scss
@import "~styles/typography.scss";
:global {
body {
padding-top: 50px; // Compensate for top navbar
padding-bottom: 25vh; // Leave some extra scrolling room at bottom
font-family: "SharpSansNo1-Bold", "Raleway", sans-serif;
font-size: $fontSizeBase;
}
... | @import "~styles/typography.scss";
:global {
body {
padding-top: 50px; // Compensate for top navbar
padding-bottom: 15vh; // Leave some extra scrolling room at bottom
font-family: "SharpSansNo1-Bold", "Raleway", sans-serif;
font-size: $fontSizeBase;
}
// Display dropdown menus by hovering
@med... | <|file_sep|>original/src/styles/global.scss
@import "~styles/typography.scss";
:global {
body {
padding-top: 50px; // Compensate for top navbar
padding-bottom: 25vh; // Leave some extra scrolling room at bottom
font-family: "SharpSansNo1-Bold", "Raleway", sans-serif;
font-size: $fontSizeBase;
}
... | 60a0e880492543963877666ff59e8589734ecbdc | src/styles/global.scss | src/styles/global.scss | SCSS |
<|file_sep|>original/requirements/base.txt
# After the first "pip install -r", just run "pip freeze" and add the version
# to each package in each requirements/*.txt.
Django==1.7.9
django-widget-tweaks==1.3
slumber==0.6.2
python-dateutil==2.4.0
git+git://github.com/ministryofjustice/cla_common.git@0.3.0#egg=cla_com... | # After the first "pip install -r", just run "pip freeze" and add the version
# to each package in each requirements/*.txt.
Django==1.7.9
django-widget-tweaks==1.3
slumber==0.6.2
python-dateutil==2.4.0
git+git://github.com/ministryofjustice/cla_common.git@b7b64cc132a602796e71b8b0cebbe8d4137d4795#egg=cla_common==b7b... | <|file_sep|>original/requirements/base.txt
# After the first "pip install -r", just run "pip freeze" and add the version
# to each package in each requirements/*.txt.
Django==1.7.9
django-widget-tweaks==1.3
slumber==0.6.2
python-dateutil==2.4.0
git+git://github.com/ministryofjustice/cla_common.git@0.3.0#egg=cla_com... | 6a08bd7c3e137a2a60a99caabc11cfdf0db503e5 | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>whipped-cream.gemspec.diff
original:
spec.name = "whipped-cream"
updated:
spec.name = 'whipped-cream'
<|file_sep|>whipped-cream.gemspec.diff
original:
spec.description = %q{TODO: Write a gem description}
spec.summary = %q{TODO: Write a gem summary}
spec.homepage = ""... | spec.summary = "HTTP topping for Raspberry Pi"
spec.homepage = 'https://github.com/justincampbell/whipped-cream'
spec.license = 'MIT'
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(... | <|file_sep|>whipped-cream.gemspec.diff
original:
spec.name = "whipped-cream"
updated:
spec.name = 'whipped-cream'
<|file_sep|>whipped-cream.gemspec.diff
original:
spec.description = %q{TODO: Write a gem description}
spec.summary = %q{TODO: Write a gem summary}
spec.homepage = ""... | 8b5baf63ed8826364895fdbfed9ccda6407a1a0f | whipped-cream.gemspec | whipped-cream.gemspec | Ruby |
<|file_sep|>app/scripts/api.ts.diff
original:
updated:
const defaultOptions: RequestInit = {
credentials: 'same-origin'
}
<|file_sep|>original/app/scripts/api.ts
}
const parseJSON = (response: Response): any => {
return response.json()
}
// Exported only so that it can be tested.
export const get = (input: Re... | throw new Error(`HTTP error ${response.status}: ${response.statusText}`);
}
}
const parseJSON = (response: Response): any => {
return response.json()
}
// Exported only so that it can be tested.
export const get = (input: RequestInfo, init?: RequestInit): Promise<any> => {
const options = { ...defau... | <|file_sep|>app/scripts/api.ts.diff
original:
updated:
const defaultOptions: RequestInit = {
credentials: 'same-origin'
}
<|file_sep|>original/app/scripts/api.ts
}
const parseJSON = (response: Response): any => {
return response.json()
}
// Exported only so that it can be tested.
export const get = (input: Re... | 13567a1588cd21158a9db0dd07a5a4df095200c3 | app/scripts/api.ts | app/scripts/api.ts | TypeScript |
<|file_sep|>original/packages/lesswrong/lib/collections/posts/parameters.js
import moment from 'moment';
import { addCallback } from 'meteor/vulcan:core';
// Add 'after' and 'before' properties to terms which can be used to limit posts in time.
function PostsAddBeforeAfterParameters (parameters, terms, apolloClient) {... | import moment from 'moment';
import { addCallback } from 'meteor/vulcan:core';
// Add 'after' and 'before' properties to terms which can be used to limit posts in time.
function PostsAddBeforeAfterParameters (parameters, terms, apolloClient) {
if (!parameters.selector.postedAt) {
let postedAt = {};
if (term... | <|file_sep|>original/packages/lesswrong/lib/collections/posts/parameters.js
import moment from 'moment';
import { addCallback } from 'meteor/vulcan:core';
// Add 'after' and 'before' properties to terms which can be used to limit posts in time.
function PostsAddBeforeAfterParameters (parameters, terms, apolloClient) {... | ee55a0a68710a31a89f72898223b7a3edf6f6837 | packages/lesswrong/lib/collections/posts/parameters.js | packages/lesswrong/lib/collections/posts/parameters.js | JavaScript |
<|file_sep|>bibliography_management.php.diff
original:
<?php require 'header.php' ?>
<!--TODO: replace this with a list of class "actions"-->
<nav>
<a href="my_bibliographies.php">My Bibliographies</a>
<br><br>
<a href="create_new_bibliography.php">Create a new Bibliography</a>
updated:
<?php require 'he... | <!DOCTYPE html>
<html>
<head>
<title>Manage your bibliographies</title>
</head>
<body>
<?php require 'header.php' ?>
<ul class="actions">
<li><a href="my_bibliographies.php">My Bibliographies</a></li>
<li><a href="create_new_bibliography.php">Create a new Bibliography</a></li>
</ul>
<?php require ... | <|file_sep|>bibliography_management.php.diff
original:
<?php require 'header.php' ?>
<!--TODO: replace this with a list of class "actions"-->
<nav>
<a href="my_bibliographies.php">My Bibliographies</a>
<br><br>
<a href="create_new_bibliography.php">Create a new Bibliography</a>
updated:
<?php require 'he... | 4673396bf4c289fb39e26d356b1f368e12750513 | bibliography_management.php | bibliography_management.php | PHP |
<|file_sep|>original/packages/flint/runner/editor/helpers.js
}
export function transformText(text, {
log = null,
writeStyle = null,
onMeta = null,
onImports = null,
onExports = null
}) {
let toReturn = ''
Parser.pre('unknown', text, function(text) {
toReturn = babelTransform(text, getBabelConfig({
... | }
export function transformText(text, {
log = null,
writeStyle = null,
onMeta = null,
onImports = null,
onExports = null
}) {
let toReturn = ''
// Setting this key so it's easier to distinguish in debug output
Parser.pre('__editor__', text, function(text) {
toReturn = babelTransform(text, getBabelC... | <|file_sep|>original/packages/flint/runner/editor/helpers.js
}
export function transformText(text, {
log = null,
writeStyle = null,
onMeta = null,
onImports = null,
onExports = null
}) {
let toReturn = ''
Parser.pre('unknown', text, function(text) {
toReturn = babelTransform(text, getBabelConfig({
... | fec7199703cf5e06d979ffeb09a0b09d6c22fd74 | packages/flint/runner/editor/helpers.js | packages/flint/runner/editor/helpers.js | JavaScript |
<|file_sep|>original/salt/migration/patrons_imported.sls
patrons_import:
cmd.run:
- name: docker run
-e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
-e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
-e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
-e "M... |
patrons_import:
cmd.run:
- name: docker run
-rm
-e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
-e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
-e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
-e "MYSQLHOST=db"
-e "BCRYPT=t... | <|file_sep|>original/salt/migration/patrons_imported.sls
patrons_import:
cmd.run:
- name: docker run
-e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
-e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
-e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
-e "M... | aa2a216571a286601442754939bb4b8c4575f553 | salt/migration/patrons_imported.sls | salt/migration/patrons_imported.sls | SaltStack |
<|file_sep|>original/.travis.yml
language: php
php:
- 7.0
- 5.6
- 5.5
- 5.4
- hhvm
install: composer install --no-interaction --prefer-source
script:
- phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:... | language: php
php:
- 7.0
- 5.6
- hhvm
install: composer install --no-interaction --prefer-source
script:
- phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover | <|file_sep|>original/.travis.yml
language: php
php:
- 7.0
- 5.6
- 5.5
- 5.4
- hhvm
install: composer install --no-interaction --prefer-source
script:
- phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:... | 365ec2876ff9ca9b8a8fbd38309b513ac5aa22a1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/exports.js
var Game = require('./game');
var GameArtist = require('./artists/gameartist');
var EventDispatcher = require('./eventdispatcher');
var utils = require('./utils');
var EventLogger = require('./eventLogger');
var PlaybackDispatcher = require('./playbackdispatcher');
var Landmine = wi... | var Game = require('./game');
var GameArtist = require('./artists/gameartist');
var EventDispatcher = require('./eventdispatcher');
var utils = require('./utils');
var EventLogger = require('./eventlogger');
var PlaybackDispatcher = require('./playbackdispatcher');
var Landmine = window.Landmine || {};
Landmine.start... | <|file_sep|>original/src/exports.js
var Game = require('./game');
var GameArtist = require('./artists/gameartist');
var EventDispatcher = require('./eventdispatcher');
var utils = require('./utils');
var EventLogger = require('./eventLogger');
var PlaybackDispatcher = require('./playbackdispatcher');
var Landmine = wi... | b91aee96a7e3ecb45e1b70e7bb54c1c4e32547a5 | src/exports.js | src/exports.js | JavaScript |
<|file_sep|>original/algorithms/warmup/AlternatingCharacters.scala
<|file_sep|>current/algorithms/warmup/AlternatingCharacters.scala
<|file_sep|>updated/algorithms/warmup/AlternatingCharacters.scala | object Solution {
def numberOfDeletion(s: String): Int = {
var previousC = ' '
val ns = for (c <- s if c != previousC) yield { previousC = c; c }
s.size - ns.size
}
def main(args: Array[String]) {
val t = readLine.toInt
for (_ <- 1 to t) {
val s = readLine
println(numberOfDeletio... | <|file_sep|>original/algorithms/warmup/AlternatingCharacters.scala
<|file_sep|>current/algorithms/warmup/AlternatingCharacters.scala
<|file_sep|>updated/algorithms/warmup/AlternatingCharacters.scala
object Solution {
def numberOfDeletion(s: String): Int = {
var previousC = ' '
val ns = for (c <- s if c != ... | 9ee68015473b2834ab77abcd1d25f80fb30aa73a | algorithms/warmup/AlternatingCharacters.scala | algorithms/warmup/AlternatingCharacters.scala | Scala |
<|file_sep|>original/_drafts/compiling-media-elch.md
<|file_sep|>current/_drafts/compiling-media-elch.md
<|file_sep|>updated/_drafts/compiling-media-elch.md | ---
layout: post
title: Compiling MediaElch
---
The best program I could find to organize my media files for
[XBMC](http://xbmc.org/) (download information, create nfo files and rename
files) is [MediaElch](http://www.kvibes.de/mediaelch/).
It is not in the official repositories, but the authors provide a
[PPA](http:... | <|file_sep|>original/_drafts/compiling-media-elch.md
<|file_sep|>current/_drafts/compiling-media-elch.md
<|file_sep|>updated/_drafts/compiling-media-elch.md
---
layout: post
title: Compiling MediaElch
---
The best program I could find to organize my media files for
[XBMC](http://xbmc.org/) (download information, cre... | 003e2907df66426d04bb2044e0770d9cc91758cf | _drafts/compiling-media-elch.md | _drafts/compiling-media-elch.md | Markdown |
<|file_sep|>original/travis.hs
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-get install nsis"
system_ "makensis --version"
<|file_sep|>current/travis.hs
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-ge... |
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-get install nsis"
system_ "runhaskell Main --build" | <|file_sep|>original/travis.hs
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-get install nsis"
system_ "makensis --version"
<|file_sep|>current/travis.hs
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-ge... | a671d14e19e802eb0e8969d0673b381d1891ab54 | travis.hs | travis.hs | Haskell |
<|file_sep|>original/README.md
[](https://travis-ci.org/vsruby91/tactician-for-laravel)
[](https://packa... | # Tactician-For-Laravel
[](https://travis-ci.org/vsruby91/tactician-for-laravel)
[](https://packagist.or... | <|file_sep|>original/README.md
[](https://travis-ci.org/vsruby91/tactician-for-laravel)
[](https://packa... | d65c9ceebcf4099f763a3dfffac8b36e173c0726 | README.md | README.md | Markdown |
<|file_sep|>scripts/posttoggle.js.diff
original:
$(function () {
$("img").not(":visible").each(function () {
$(this).data("src", this.src);
this.src = "";
});
updated:
// $(function () {
// $("img").not(":visible").each(function () {
// $(this).data("src", this.src);
// this.src = "... | // $(function () {
// $("img").not(":visible").each(function () {
// $(this).data("src", this.src);
// this.src = "";
// });
// var reveal = function (selector) {
// var img = $(selector);
// img[0].src = img.data("src");
// }
// });
$("#post_link6").click(function() {
event.p... | <|file_sep|>scripts/posttoggle.js.diff
original:
$(function () {
$("img").not(":visible").each(function () {
$(this).data("src", this.src);
this.src = "";
});
updated:
// $(function () {
// $("img").not(":visible").each(function () {
// $(this).data("src", this.src);
// this.src = "... | 642a5de297500db1d743df7c71fc9c29a074c3ac | scripts/posttoggle.js | scripts/posttoggle.js | JavaScript |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
services:
- mongodb
script:
- make setup && make test
<|file_sep|>current/.travis.yml
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
services:
- mongodb
script:
- make setup && make test
<|file_sep|>updated/.travis.yml | language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
services:
- mongodb
script:
- make setup && make test | <|file_sep|>original/.travis.yml
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
services:
- mongodb
script:
- make setup && make test
<|file_sep|>current/.travis.yml
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
services:
- mongodb
script:
- make setup && make test
<|file_sep|>updated/.travis.yml
langu... | 677179709a88589fddbd969660c97a06cc8c9f71 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md | #javascript-koans
This is a copy of the work I did on a private repo, originally a project from
[Hack Reactor's](http://hackreactor.com) curriculum. This project was worked
on with a pair; it's representative of the kind of problems that I've tackled,
but not of my solo work. | <|file_sep|>original/README.md
<|file_sep|>current/README.md
<|file_sep|>updated/README.md
#javascript-koans
This is a copy of the work I did on a private repo, originally a project from
[Hack Reactor's](http://hackreactor.com) curriculum. This project was worked
on with a pair; it's representative of the kind of pr... | 46bc60ddc411c239c6f5b9ce19f5f2c7e1634de4 | README.md | README.md | Markdown |
<|file_sep|>original/src/docs/using-with-rails.md
<|file_sep|>current/src/docs/using-with-rails.md
<|file_sep|>updated/src/docs/using-with-rails.md | *Note: These instructions describe setting up the alpha version of govuk_frontend and can/will change*
## Add to Gemfile
From this repo build a local version of the gem:
```bash
gulp package
```
This will create a gem in `dist/gem`, which you can reference from your app's Gemfile.
```ruby
gem 'govuk_frontend_alpha... | <|file_sep|>original/src/docs/using-with-rails.md
<|file_sep|>current/src/docs/using-with-rails.md
<|file_sep|>updated/src/docs/using-with-rails.md
*Note: These instructions describe setting up the alpha version of govuk_frontend and can/will change*
## Add to Gemfile
From this repo build a local version of the gem... | 359f7658d0dbdeddbe1ad0e35ba11cbe3708cab0 | src/docs/using-with-rails.md | src/docs/using-with-rails.md | Markdown |
<|file_sep|>src/platforms/esp/32/led_sysdefs_esp32.h.diff
original:
updated:
#else
#define FASTLED_XTENSA
<|file_sep|>original/src/platforms/esp/32/led_sysdefs_esp32.h
#endif
#define FASTLED_ESP32
#if CONFIG_IDF_TARGET_ARCH_RISCV
#define FASTLED_RISCV
#endif
#if CONFIG_IDF_TARGET_ARCH_XTENSA || CONFIG_XTENSA_IMPL
#... | #endif
#define FASTLED_ESP32
#if CONFIG_IDF_TARGET_ARCH_RISCV
#define FASTLED_RISCV
#else
#define FASTLED_XTENSA
#endif
// Handling for older versions of ESP32 Arduino core
#if !defined(ESP_IDF_VERSION)
// Older versions of ESP_IDF only supported ESP32
#define CONFIG_IDF_TARGET_ESP32 1
// Define missing version macr... | <|file_sep|>src/platforms/esp/32/led_sysdefs_esp32.h.diff
original:
updated:
#else
#define FASTLED_XTENSA
<|file_sep|>original/src/platforms/esp/32/led_sysdefs_esp32.h
#endif
#define FASTLED_ESP32
#if CONFIG_IDF_TARGET_ARCH_RISCV
#define FASTLED_RISCV
#endif
#if CONFIG_IDF_TARGET_ARCH_XTENSA || CONFIG_XTENSA_IMPL
#... | 25955e1264eec2fec804d7786e2f640bf9e0d189 | src/platforms/esp/32/led_sysdefs_esp32.h | src/platforms/esp/32/led_sysdefs_esp32.h | C |
<|file_sep|>original/dangerfile.js
const pkg = require('./package.json'); // eslint-disable-line import/newline-after-import
const prLogConfig = pkg['pr-log'];
const Versions = {
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR',
};
const branchVersion = Versions.PATCH;
const checkRequiredLabels = labels => {
... |
const pkg = require('./package.json'); // eslint-disable-line import/newline-after-import
const prLogConfig = pkg['pr-log'];
const Versions = {
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR',
};
const branchVersion = Versions.MAJOR;
const checkRequiredLabels = labels => {
const forbiddenLabels = flatten([
... | <|file_sep|>original/dangerfile.js
const pkg = require('./package.json'); // eslint-disable-line import/newline-after-import
const prLogConfig = pkg['pr-log'];
const Versions = {
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR',
};
const branchVersion = Versions.PATCH;
const checkRequiredLabels = labels => {
... | 3d5d1bea69a399b909268924988c0913b599dc92 | dangerfile.js | dangerfile.js | JavaScript |
<|file_sep|>plugins/PerObjectSettingsTool/PerObjectSettingsTool.py.diff
original:
self.setExposedProperties("Model", "SelectedIndex", "PrintSequence")
updated:
self.setExposedProperties("Model", "SelectedIndex")
<|file_sep|>original/plugins/PerObjectSettingsTool/PerObjectSettingsTool.py
class PerObject... | from UM.Scene.Selection import Selection
from UM.Application import Application
from . import PerObjectSettingsModel
class PerObjectSettingsTool(Tool):
def __init__(self):
super().__init__()
self.setExposedProperties("Model", "SelectedIndex")
def event(self, event):
return False
... | <|file_sep|>plugins/PerObjectSettingsTool/PerObjectSettingsTool.py.diff
original:
self.setExposedProperties("Model", "SelectedIndex", "PrintSequence")
updated:
self.setExposedProperties("Model", "SelectedIndex")
<|file_sep|>original/plugins/PerObjectSettingsTool/PerObjectSettingsTool.py
class PerObject... | a6581409971a8670a5195924feb27fb890d297c5 | plugins/PerObjectSettingsTool/PerObjectSettingsTool.py | plugins/PerObjectSettingsTool/PerObjectSettingsTool.py | Python |
<|file_sep|>original/source/manual/alerts/search-spelling-suggestions.html.md
---
owner_slack: "#search-team"
title: Check for spelling suggestions failed
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-06-27
review_in: 3 months
---
Indicates that the Jenkins [search_test_spe... | ---
owner_slack: "#search-team"
title: Check for spelling suggestions failed
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-10-02
review_in: 3 months
---
Indicates that the Jenkins [search_test_spelling_suggestions healthcheck job]
(https://deploy.publishing.service.gov.uk/j... | <|file_sep|>original/source/manual/alerts/search-spelling-suggestions.html.md
---
owner_slack: "#search-team"
title: Check for spelling suggestions failed
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-06-27
review_in: 3 months
---
Indicates that the Jenkins [search_test_spe... | 7aa993329c31ca1a2b1e6f8a9abc6d6406b76fd9 | source/manual/alerts/search-spelling-suggestions.html.md | source/manual/alerts/search-spelling-suggestions.html.md | Markdown |
<|file_sep|>README.md.diff
original:
curl -s https://raw.github.com/zachlatta/pwned/master/pwned.sh > /tmp/pwned.sh && sh /tmp/pwned.sh
updated:
$ curl -s https://raw.github.com/zachlatta/pwned/master/pwned.sh > /tmp/pwned.sh && sh /tmp/pwned.sh
<|file_sep|>original/README.md
# Pwned
Ludum Dare 27 entry. Based... | # Pwned
Ludum Dare 27 entry. Based on http://xkcd.com/91/
## Running the Game
One-liner:
$ curl -s https://raw.github.com/zachlatta/pwned/master/pwned.sh > /tmp/pwned.sh && sh /tmp/pwned.sh
This downloads the game, stores it in `/tmp/pwned.sh`, and runs it. If you'd
prefer to see the contents of the script bef... | <|file_sep|>README.md.diff
original:
curl -s https://raw.github.com/zachlatta/pwned/master/pwned.sh > /tmp/pwned.sh && sh /tmp/pwned.sh
updated:
$ curl -s https://raw.github.com/zachlatta/pwned/master/pwned.sh > /tmp/pwned.sh && sh /tmp/pwned.sh
<|file_sep|>original/README.md
# Pwned
Ludum Dare 27 entry. Based... | 97a9bec32c77b4678827875b3810a64a9da943c6 | README.md | README.md | Markdown |
<|file_sep|>appveyor.yml.diff
original:
updated:
environment:
PATH: '%PATH%;C:\msys64\mingw64\bin;C:\Rust\bin'
matrix:
- RUST_CHANNEL: beta
- RUST_CHANNEL: nightly
<|file_sep|>appveyor.yml.diff
original:
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.exe'
- r... | environment:
PATH: '%PATH%;C:\msys64\mingw64\bin;C:\Rust\bin'
matrix:
- RUST_CHANNEL: beta
- RUST_CHANNEL: nightly
install:
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-${env:RUST_CHANNEL}-x86_64-pc-windows-gnu.msi'
- msiexec /passive /i "rust-%RUST_CHANNEL%-x86_64-pc-windows-gnu.msi" AD... | <|file_sep|>appveyor.yml.diff
original:
updated:
environment:
PATH: '%PATH%;C:\msys64\mingw64\bin;C:\Rust\bin'
matrix:
- RUST_CHANNEL: beta
- RUST_CHANNEL: nightly
<|file_sep|>appveyor.yml.diff
original:
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.exe'
- r... | 91b359d9535b427f5c007a975d46c09b251b50e6 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/init.rb
def relative_url_root
"/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}"
end
end
class UrlRewriter
def link_to_canvas?(params)
#yes, we do really want to see i... | def relative_url_root
"/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}"
end
end
class UrlRewriter
def link_to_canvas?(params)
#yes, we do really want to see if it is false. nil means use ... | <|file_sep|>original/init.rb
def relative_url_root
"/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}"
end
end
class UrlRewriter
def link_to_canvas?(params)
#yes, we do really want to see i... | f44290be331a7198b6546d34adda530ed31aac0c | init.rb | init.rb | Ruby |
<|file_sep|>packages/be/bearriver.yaml.diff
original:
hash: c3195940f0e3004ea5f08f190d61b65bb635766c8d8800105bd401ba5454ced0
updated:
hash: 88e45691253e544ec28d4133fc012cc1bfbb9861ac2c85cf9adf27faf4797370
<|file_sep|>packages/be/bearriver.yaml.diff
original:
updated:
- '0.10.4.1'
<|file_sep|>original/packages/be/bearr... | homepage: keera.co.uk
changelog-type: ''
hash: 88e45691253e544ec28d4133fc012cc1bfbb9861ac2c85cf9adf27faf4797370
test-bench-deps: {}
maintainer: ivan.perez@keera.co.uk
synopsis: A replacement of Yampa based on Monadic Stream Functions.
changelog: ''
basic-deps:
dunai: -any
base: ! '>=4.7 && <5'
mtl: -any
transfo... | <|file_sep|>packages/be/bearriver.yaml.diff
original:
hash: c3195940f0e3004ea5f08f190d61b65bb635766c8d8800105bd401ba5454ced0
updated:
hash: 88e45691253e544ec28d4133fc012cc1bfbb9861ac2c85cf9adf27faf4797370
<|file_sep|>packages/be/bearriver.yaml.diff
original:
updated:
- '0.10.4.1'
<|file_sep|>original/packages/be/bearr... | ab4c217b17e72e33ce87072411496a2ed1df3b5e | packages/be/bearriver.yaml | packages/be/bearriver.yaml | YAML |
<|file_sep|>original/tests/nodeGraphTests.js
const chai = require('chai')
const sinon = require('sinon')
const sinonChai = require('sinon-chai')
const expect = chai.expect;
chai.use(sinonChai);
import Graph from '../src/nodeGraph'
import * as Actions from '../src/gameActions'
var graph;
// TODO: Unit-test this.
<|f... | const sinonChai = require('sinon-chai')
const expect = chai.expect;
chai.use(sinonChai);
import Graph from '../src/nodeGraph'
import * as Actions from '../src/gameActions'
var graph;
describe("completePassage", function() {
context("when it is the last passage in the node", function() {
it("should transition ... | <|file_sep|>original/tests/nodeGraphTests.js
const chai = require('chai')
const sinon = require('sinon')
const sinonChai = require('sinon-chai')
const expect = chai.expect;
chai.use(sinonChai);
import Graph from '../src/nodeGraph'
import * as Actions from '../src/gameActions'
var graph;
// TODO: Unit-test this.
<|f... | 5308bb379fdc2855000d6167df33eaf3f8989e41 | tests/nodeGraphTests.js | tests/nodeGraphTests.js | JavaScript |
<|file_sep|>original/index.js
schema.add({ deletedBy: Schema.Types.ObjectId });
}
schema.pre('save', function (next) {
if (!this.deleted) {
this.deleted = false;
}
next();
});
var queries = ['find', 'findOne', 'findOneAndUpdate', 'count'];
queries.forEa... | schema.add({ deletedBy: Schema.Types.ObjectId });
}
schema.pre('save', function (next) {
if (!this.deleted) {
this.deleted = false;
}
next();
});
var queries = ['find', 'findOne', 'findOneAndUpdate', 'update', 'count'];
queries.forEach(function(query) {... | <|file_sep|>original/index.js
schema.add({ deletedBy: Schema.Types.ObjectId });
}
schema.pre('save', function (next) {
if (!this.deleted) {
this.deleted = false;
}
next();
});
var queries = ['find', 'findOne', 'findOneAndUpdate', 'count'];
queries.forEa... | d581154e814915eb182550cfd0c18b2ae61cb1bf | index.js | index.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
updated:
- '9'
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '8'
- '6'
- '4'
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '9'
- '8'
- '6'
- '4'
<|file_sep|>updated/.travis.yml | sudo: false
language: node_js
node_js:
- '9'
- '8'
- '6' | <|file_sep|>.travis.yml.diff
original:
updated:
- '9'
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '8'
- '6'
- '4'
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '9'
- '8'
- '6'
- '4'
<|file_sep|>updated/.travis.yml
sudo: false
language: node_js
node_js:
... | 32073c21eb1b3e10f735e471f025c7711a63a8ad | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/public/stylesheets/style.css
margin: 0;
padding: 0;
}
html, body {
height: 100vh;
}
body {
font: 2rem "Lucida Grande", Helvetica, Arial, sans-serif;
background-color: #2387A8;
}
#container {
height: 100%;
width: 30rem;
margin: 0 auto;
position: relative;
}
p, button {
<|file_s... | margin: 0;
padding: 0;
}
html, body {
height: 100vh;
}
body {
font: 2rem "Lucida Grande", Helvetica, Arial, sans-serif;
background-color: #2387a8;
}
#container {
height: 100%;
width: 30rem;
margin: 0 auto;
position: relative;
}
p, button { | <|file_sep|>original/public/stylesheets/style.css
margin: 0;
padding: 0;
}
html, body {
height: 100vh;
}
body {
font: 2rem "Lucida Grande", Helvetica, Arial, sans-serif;
background-color: #2387A8;
}
#container {
height: 100%;
width: 30rem;
margin: 0 auto;
position: relative;
}
p, button {
<|file_s... | 18f4bbbfc09c663933ec11183a2c6675ad6d4cd3 | public/stylesheets/style.css | public/stylesheets/style.css | CSS |
<|file_sep|>time.go.diff
original:
updated:
After(InstanceTime) bool
<|file_sep|>time.go.diff
original:
After(InstanceTime) bool
updated:
<|file_sep|>original/time.go
InstanceDuration int64
)
const (
RealGameTick = time.Second / 20
RealPeriodicalTick = time.Second / 2
RealRegenerationTick = time.Seco... |
Second = InstanceDuration(time.Second / RealGameTick)
)
type InstanceClock interface {
Now() InstanceTime
Add(InstanceDuration) InstanceTime
After(InstanceTime) bool
Before(InstanceTime) bool
}
// Now returns the InstanceTime
func (t InstanceTime) Now() InstanceTime {
return t
}
// Add returns the InstanceTim... | <|file_sep|>time.go.diff
original:
updated:
After(InstanceTime) bool
<|file_sep|>time.go.diff
original:
After(InstanceTime) bool
updated:
<|file_sep|>original/time.go
InstanceDuration int64
)
const (
RealGameTick = time.Second / 20
RealPeriodicalTick = time.Second / 2
RealRegenerationTick = time.Seco... | d63b52c0bea7604e7bfa0d2756833397767a113b | time.go | time.go | Go |
<|file_sep|>original/lab/hookspec.py
# no longer makes sense. Roles can now disappear before the historic
# hook can be triggered. Any plugin that cares about having a complete
# canonical list of roles should talk directly to the role manager
# instead.
@pytest.hookspec(historic=True)
def pytest_lab_role_created(confi... | """Called when a new role controller is created (and loaded) at a
location.
"""
@pytest.hookspec
def pytest_lab_role_destroyed(config, ctl):
"""Called when a role controller is destroyed.
"""
@pytest.hookspec
def pytest_lab_location_destroyed(config, location):
"""Called when a location is r... | <|file_sep|>original/lab/hookspec.py
# no longer makes sense. Roles can now disappear before the historic
# hook can be triggered. Any plugin that cares about having a complete
# canonical list of roles should talk directly to the role manager
# instead.
@pytest.hookspec(historic=True)
def pytest_lab_role_created(confi... | f63a174dd35731b6737e4f653139d92bd2f57aef | lab/hookspec.py | lab/hookspec.py | Python |
<|file_sep|>original/openslides/agenda/static/templates/agenda/item-sort.html
<div ui-tree="treeOptions" id="tree-root">
<ol ui-tree-nodes ng-model="items">
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
</ol>
</div>
<p class="spacer">* <translate>Internal item</tran... |
<div ui-tree="treeOptions" id="tree-root">
<ol ui-tree-nodes ng-model="items">
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
</ol>
</div>
<p class="spacer">* <translate>Internal item</translate</p>
</div>
<!-- Nested node template -->
<script type="text/ng-templat... | <|file_sep|>original/openslides/agenda/static/templates/agenda/item-sort.html
<div ui-tree="treeOptions" id="tree-root">
<ol ui-tree-nodes ng-model="items">
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
</ol>
</div>
<p class="spacer">* <translate>Internal item</tran... | f5125d0d23caf303def722237f6dd3b4ad4c98b1 | openslides/agenda/static/templates/agenda/item-sort.html | openslides/agenda/static/templates/agenda/item-sort.html | HTML |
<|file_sep|>original/src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.... |
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
@Configuration
public class DigiDocConfiguration {
@Bean
@Profi... | <|file_sep|>original/src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.... | e7aca443a1a0597bdb7c69406e1dbefb99df1624 | src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java | src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java | Java |
<|file_sep|>original/src/js/disability-benefits/components/AskVAQuestions.jsx
import React from 'react';
class AskVAQuestions extends React.Component {
render() {
return (
<div className="ask-va-questions claims-sidebar-box">
<h4 className="claims-sidebar-header">Questions?</h4>
<p classNam... | import React from 'react';
class AskVAQuestions extends React.Component {
render() {
return (
<div className="ask-va-questions claims-sidebar-box">
<h4 className="claims-sidebar-header">Questions?</h4>
<p className="talk">Ask the vets.gov Help Desk</p>
<p className="phone-number">
... | <|file_sep|>original/src/js/disability-benefits/components/AskVAQuestions.jsx
import React from 'react';
class AskVAQuestions extends React.Component {
render() {
return (
<div className="ask-va-questions claims-sidebar-box">
<h4 className="claims-sidebar-header">Questions?</h4>
<p classNam... | 124cdaa88d80451c6109daefbda672c561337cf7 | src/js/disability-benefits/components/AskVAQuestions.jsx | src/js/disability-benefits/components/AskVAQuestions.jsx | JSX |
<|file_sep|>original/app/javascript/retrospring/initializers/bootstrap.ts
import 'bootstrap';
import $ from 'jquery';
/**
* This module sets up Bootstraps JavaScript
*
* Inside of the exported function below, initialize Bootstrap
* modules that require explicit initilization, like tooltips
*/
export default funct... | import 'bootstrap';
import $ from 'jquery';
/**
* This module sets up Bootstrap's JavaScript
*
* Inside of the exported function below, initialize Bootstrap
* modules that require explicit initilization, like tooltips
*/
export default function (): void {
$(document).ready(() => {
$('[data-toggle="tooltip"]... | <|file_sep|>original/app/javascript/retrospring/initializers/bootstrap.ts
import 'bootstrap';
import $ from 'jquery';
/**
* This module sets up Bootstraps JavaScript
*
* Inside of the exported function below, initialize Bootstrap
* modules that require explicit initilization, like tooltips
*/
export default funct... | 9d9216d7269f09b445c117f53d2a9b4ebfc3edc8 | app/javascript/retrospring/initializers/bootstrap.ts | app/javascript/retrospring/initializers/bootstrap.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.