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|>test/playbook.yml.diff
original:
updated:
<|file_sep|>original/test/playbook.yml
- fail:
msg: papertrail_test_log_domain is empty
when: papertrail_test_log_domain == ''
- name: Add the test host
add_host:
groups: test
name: "{{ papertrail_test_host... |
- fail:
msg: papertrail_test_log_domain is empty
when: papertrail_test_log_domain == ''
- name: Add the test host
add_host:
groups: test
name: "{{ papertrail_test_hostname }}"
ansible_connection: "{{ papertrail_test_connection }}"
ansible_ssh_port: "{{ paper... | <|file_sep|>test/playbook.yml.diff
original:
updated:
<|file_sep|>original/test/playbook.yml
- fail:
msg: papertrail_test_log_domain is empty
when: papertrail_test_log_domain == ''
- name: Add the test host
add_host:
groups: test
name: "{{ papertrail_test_host... | 6477cec9d16d64a30636542fdc1bb654e32dbd4d | test/playbook.yml | test/playbook.yml | YAML |
<|file_sep|>original/app/controllers/ems_middleware_controller.rb
class EmsMiddlewareController < ApplicationController
include EmsCommon
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
def self.model
ManageIQ::Providers::Midd... | class EmsMiddlewareController < ApplicationController
include EmsCommon
include Mixins::EmsCommonAngular
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
def self.model
ManageIQ::Providers::MiddlewareManager
end
def self... | <|file_sep|>original/app/controllers/ems_middleware_controller.rb
class EmsMiddlewareController < ApplicationController
include EmsCommon
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
def self.model
ManageIQ::Providers::Midd... | e576087ca91b0a76d7b7e635539eeb63274874ac | app/controllers/ems_middleware_controller.rb | app/controllers/ems_middleware_controller.rb | Ruby |
<|file_sep|>original/README.md
Docker image that serves a hugo site from dropbox
### Setup
Environment variable `DROPBOX_FOLDER` sets which dropbox folder to use for
hugo files.
First start a container:
```
docker run --rm -ti -e DROPBOX_FOLDER="hugo test" -p 8080:80 test
```
After a while you will see log messages... |
Docker image that serves a hugo site from dropbox
### Setup
Environment variable `DROPBOX_FOLDER` sets which dropbox folder to use for
hugo files.
First start a container:
```
docker run --rm -ti -e DROPBOX_FOLDER="hugo test" -p 8080:8080 test
```
After a while you will see log messages from dropboxd:
```
This c... | <|file_sep|>original/README.md
Docker image that serves a hugo site from dropbox
### Setup
Environment variable `DROPBOX_FOLDER` sets which dropbox folder to use for
hugo files.
First start a container:
```
docker run --rm -ti -e DROPBOX_FOLDER="hugo test" -p 8080:80 test
```
After a while you will see log messages... | 6834271c7c631ebc6c6d37639f4d10c449931d75 | README.md | README.md | Markdown |
<|file_sep|>original/Cargo.toml
[package]
name = "wgmeeting_github_ircbot"
version = "0.4.0"
authors = ["L. David Baron <dbaron@dbaron.org>"]
build = "build.rs"
edition = "2018"
[dependencies]
failure = "0.1"
futures = { version = "0.3" }
log = "0.4"
env_logger = "0.7"
irc = { version = "0.14", default-features = fals... | [package]
name = "wgmeeting_github_ircbot"
version = "0.4.0"
authors = ["L. David Baron <dbaron@dbaron.org>"]
build = "build.rs"
edition = "2018"
[dependencies]
failure = "0.1"
futures = "0.3"
log = "0.4"
env_logger = "0.7"
irc = { version = "0.14", default-features = false, features = ["ctcp", "tls-native", "serde"] ... | <|file_sep|>original/Cargo.toml
[package]
name = "wgmeeting_github_ircbot"
version = "0.4.0"
authors = ["L. David Baron <dbaron@dbaron.org>"]
build = "build.rs"
edition = "2018"
[dependencies]
failure = "0.1"
futures = { version = "0.3" }
log = "0.4"
env_logger = "0.7"
irc = { version = "0.14", default-features = fals... | da957f33705d78d4b73981fedce2a75b5845853f | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/scripts/publishdocs.js
<|file_sep|>current/scripts/publishdocs.js
<|file_sep|>updated/scripts/publishdocs.js | #!env node
let package = require('../package.json').name;
let version = require('../package.json').version;
let corePackage = require('../../core/package.json').name;
let coreVersion = require('../../core/package.json').version;
let PAGES_DIR = "../ui-router.github.io";
let sh = require('shelljs');
let readlineSync ... | <|file_sep|>original/scripts/publishdocs.js
<|file_sep|>current/scripts/publishdocs.js
<|file_sep|>updated/scripts/publishdocs.js
#!env node
let package = require('../package.json').name;
let version = require('../package.json').version;
let corePackage = require('../../core/package.json').name;
let coreVersion = r... | c8b7743ca97145c6b0691788d80d9cca8af8bdc5 | scripts/publishdocs.js | scripts/publishdocs.js | JavaScript |
<|file_sep|>original/.github/workflows/java-ci.yml
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11, 15]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- name: Check Docs
... | - master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 15, 17]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- name: Check Docs
run: ./util/check_docs.py
- name: Set up JD... | <|file_sep|>original/.github/workflows/java-ci.yml
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11, 15]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- name: Check Docs
... | 1aec2769af1377dd9f598e32631c827a7bdb8fb7 | .github/workflows/java-ci.yml | .github/workflows/java-ci.yml | YAML |
<|file_sep|>S06-advanced/callsame.t.diff
original:
multi rt71754( Num $x ) { #OK not used
push @called, 'Num';
updated:
multi rt71754( Numeric $x ) { #OK not used
push @called, 'Numeric';
<|file_sep|>original/S06-advanced/callsame.t
{
my @called;
multi rt71754( Num $x ) { #OK no... | {
my @called;
multi rt71754( Numeric $x ) { #OK not used
push @called, 'Numeric';
}
multi rt71754( Int $x ) { #OK not used
push @called, 'Int';
callsame;
}
lives_ok { rt71754( 71754 ) }, 'Can call multi that uses "callsame"';
is @called, <Int Numeric>, 'multi wi... | <|file_sep|>S06-advanced/callsame.t.diff
original:
multi rt71754( Num $x ) { #OK not used
push @called, 'Num';
updated:
multi rt71754( Numeric $x ) { #OK not used
push @called, 'Numeric';
<|file_sep|>original/S06-advanced/callsame.t
{
my @called;
multi rt71754( Num $x ) { #OK no... | 41c9d28aeb9e8b11fef21ca7b482d45b384c50c8 | S06-advanced/callsame.t | S06-advanced/callsame.t | Perl |
<|file_sep|>packages/st/strict-io.yaml.diff
original:
hash: fc568cfba989d5e6eac766428cc840a11c68225754619f26bff8f72ed722dca9
updated:
hash: 1cc96f9a123a919ff9ee479f740cbc9fa9edf7c8ac65334de3fdce07638949ed
<|file_sep|>packages/st/strict-io.yaml.diff
original:
base: ! '>=3.0 && <5'
deepseq: ! '>=1.1 && <1.4'
updated:... | changelog: ''
basic-deps:
extensible-exceptions: -any
base: ! '>=4.6 && <5'
deepseq: ! '>=1.1 && <1.5'
all-versions:
- '0.1'
- '0.1.1'
- '0.1.2'
- '0.2.0'
- '0.2.1'
- '0.2.2'
author: Nicolas Pouillard
latest: '0.2.2'
description-type: haddock
description: ! 'A thin layer on top standard IO modules like System.IO
... | <|file_sep|>packages/st/strict-io.yaml.diff
original:
hash: fc568cfba989d5e6eac766428cc840a11c68225754619f26bff8f72ed722dca9
updated:
hash: 1cc96f9a123a919ff9ee479f740cbc9fa9edf7c8ac65334de3fdce07638949ed
<|file_sep|>packages/st/strict-io.yaml.diff
original:
base: ! '>=3.0 && <5'
deepseq: ! '>=1.1 && <1.4'
updated:... | 62691b3029fc54bee91c0086a03dedb0462c87c7 | packages/st/strict-io.yaml | packages/st/strict-io.yaml | YAML |
<|file_sep|>original/DependencyInjection/IvoryCKEditorExtension.php
/**
* Ivory CKEditor extension
*
* @author GeLo <geloen.eric@gmail.com>
*/
class IvoryCKEditorExtension extends Extension
{
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$co... | * {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$container->setParameter('twig.form.resources', array_merge(
$container->getParameter('twig.form.resources'),
array('IvoryCKEditorBundle:Form:ckeditor_widget.html.twig')
));
... | <|file_sep|>original/DependencyInjection/IvoryCKEditorExtension.php
/**
* Ivory CKEditor extension
*
* @author GeLo <geloen.eric@gmail.com>
*/
class IvoryCKEditorExtension extends Extension
{
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$co... | d9e0476f5733b10f6c3f58047348039725ec44ae | DependencyInjection/IvoryCKEditorExtension.php | DependencyInjection/IvoryCKEditorExtension.php | PHP |
<|file_sep|>packages/rotonde-plugin-chat/src/index.js.diff
original:
updated:
import ChatClientPlugin from './client';
import ChatServerPlugin from './server';
<|file_sep|>packages/rotonde-plugin-chat/src/index.js.diff
original:
updated:
export {
ChatClientPlugin,
ChatServerPlugin
};
// Plugin export.
<|file_sep... | import { PLUGIN_TYPE } from 'rotonde-plugin';
import ChatClientPlugin from './client';
import ChatServerPlugin from './server';
export {
ChatClientPlugin,
ChatServerPlugin
};
// Plugin export.
export const TYPE = PLUGIN_TYPE.ISOMORPHIC;
export const ClientPlugin = ChatClientPlugin;
export const ServerPlugin = Cha... | <|file_sep|>packages/rotonde-plugin-chat/src/index.js.diff
original:
updated:
import ChatClientPlugin from './client';
import ChatServerPlugin from './server';
<|file_sep|>packages/rotonde-plugin-chat/src/index.js.diff
original:
updated:
export {
ChatClientPlugin,
ChatServerPlugin
};
// Plugin export.
<|file_sep... | 5cd9024bbc121cdcd3590d84cc5e3bb9e6efde64 | packages/rotonde-plugin-chat/src/index.js | packages/rotonde-plugin-chat/src/index.js | JavaScript |
<|file_sep|>original/navigation/navigation-common-ktx/src/main/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the Licens... | <?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/l... | <|file_sep|>original/navigation/navigation-common-ktx/src/main/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2018 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the Licens... | 934cbdc4fe18341cc16ed38ee88142f4d3a5fed8 | navigation/navigation-common-ktx/src/main/AndroidManifest.xml | navigation/navigation-common-ktx/src/main/AndroidManifest.xml | XML |
<|file_sep|>original/public/css/game.css
.image_grid {
list-style: none;
width: auto;
}
.image_grid li {
display: inline-block;
padding: 5px;
border: 1px solid #DDD;
vertical-align: bottom;
max-width: 45%;
}
.image_grid img {
margin: 5px;
max-width: 75%;
height: auto;
}
.question_order {
<|file_... | .image_grid {
list-style: none;
width: auto;
}
.image_grid li {
display: inline-block;
padding: 5px;
border: 1px solid #DDD;
vertical-align: bottom;
width: 45%;
height: 45%;
}
.image_grid img {
margin: 5px;
max-width: 75%;
height: auto;
}
| <|file_sep|>original/public/css/game.css
.image_grid {
list-style: none;
width: auto;
}
.image_grid li {
display: inline-block;
padding: 5px;
border: 1px solid #DDD;
vertical-align: bottom;
max-width: 45%;
}
.image_grid img {
margin: 5px;
max-width: 75%;
height: auto;
}
.question_order {
<|file_... | 192d5037c7c3c7e61fbbbf9638ebb4107808cfe3 | public/css/game.css | public/css/game.css | CSS |
<|file_sep|>source/includes/comparison_table.html.haml.diff
original:
- if (feature.competitor_one)
%i.fa.fa-check
updated:
- if (feature.competitor_one == "sortof")
%img{ src: "/images/comparison/maybe-icon.svg", alt: "sort of" }
- if (feature.competitor_... | %tbody.header.first
- comparison_block.features.each do |feature|
%tr
%td
%strong= feature.title
%br
= feature.description
%td.ce-col.text-center
- if (feature.competitor_one == "sortof")
%img{ src: "/images/comparison/m... | <|file_sep|>source/includes/comparison_table.html.haml.diff
original:
- if (feature.competitor_one)
%i.fa.fa-check
updated:
- if (feature.competitor_one == "sortof")
%img{ src: "/images/comparison/maybe-icon.svg", alt: "sort of" }
- if (feature.competitor_... | 86c6370d108b8e026c44d260c40815f393f3e51f | source/includes/comparison_table.html.haml | source/includes/comparison_table.html.haml | Haml |
<|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
s: 'secs',
updated:
s: 'seconds',
<|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
mm: '%d mins',
updated:
mm: '%d minutes',
<|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
hh: '%d hrs',
updated:
hh: '%d hours',
<|file_... | import moment from 'moment';
moment.updateLocale('en', {
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d yea... | <|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
s: 'secs',
updated:
s: 'seconds',
<|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
mm: '%d mins',
updated:
mm: '%d minutes',
<|file_sep|>src/js/utils/MomentJSConfig.js.diff
original:
hh: '%d hrs',
updated:
hh: '%d hours',
<|file_... | 5047e74bd8da4a9d405800a5526dc99bd28543c4 | src/js/utils/MomentJSConfig.js | src/js/utils/MomentJSConfig.js | JavaScript |
<|file_sep|>original/README.md
Presentation Git Recommended Uses (Work in Progress)
## Installation
```sh
$ git clone https://github.com/jetm/git-recommended-uses.git
$ cd git-recommended-uses
$ python -m SimpleHTTPServer
```
Open http://localhost:8000/ in a browser
With Python 3 use this command line:
```sh
$ pyt... | Presentation Git Recommended Uses (Work in Progress)
## Installation
```sh
$ git clone https://github.com/jetm/git-recommended-uses.git
$ cd git-recommended-uses
$ python -m SimpleHTTPServer
```
Open http://localhost:8000/ in a browser
With Python 3 use this command line:
```sh
$ python -m http.server
```
To avoi... | <|file_sep|>original/README.md
Presentation Git Recommended Uses (Work in Progress)
## Installation
```sh
$ git clone https://github.com/jetm/git-recommended-uses.git
$ cd git-recommended-uses
$ python -m SimpleHTTPServer
```
Open http://localhost:8000/ in a browser
With Python 3 use this command line:
```sh
$ pyt... | 9548cbf146e1e07e4cb9aed9c83461232de0ec4d | README.md | README.md | Markdown |
<|file_sep|>website/app/application/core/projects/project/samples/samples-controller.js.diff
original:
SamplesController.$inject = ["$state", "project", "$filter", "samples", "processTemplates"];
updated:
SamplesController.$inject = ["$state", "project", "$filter", "samples"];
<|file_sep|>website/app/applicatio... | ctrl.samples = samples;
ctrl.createSample = createSample;
if (ctrl.samples.length !== 0) {
var sortedSamples = $filter('orderBy')(ctrl.samples, 'name');
ctrl.current = sortedSamples[0];
$state.go('projects.project.samples.list.edit', {sample_id: ctrl.current.... | <|file_sep|>website/app/application/core/projects/project/samples/samples-controller.js.diff
original:
SamplesController.$inject = ["$state", "project", "$filter", "samples", "processTemplates"];
updated:
SamplesController.$inject = ["$state", "project", "$filter", "samples"];
<|file_sep|>website/app/applicatio... | 0cc2490960492d82db52a82cf7037bb624cdf388 | website/app/application/core/projects/project/samples/samples-controller.js | website/app/application/core/projects/project/samples/samples-controller.js | JavaScript |
<|file_sep|>original/tests/LoadConfigurationsTest.php
declare(strict_types=1);
namespace Tests;
use App\Commands\FakeDefaultCommand;
use App\Commands\FakeFooCommand;
use App\HiddenCommands\FakeHiddenCommand;
use App\OtherCommands\FakeOtherCommand;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facade... |
declare(strict_types=1);
namespace Tests;
use App\Commands\FakeDefaultCommand;
use App\Commands\FakeFooCommand;
use App\HiddenCommands\FakeHiddenCommand;
use App\OtherCommands\FakeOtherCommand;
use Illuminate\Support\Facades\Artisan;
final class LoadConfigurationsTest extends TestCase
{
public function testThat... | <|file_sep|>original/tests/LoadConfigurationsTest.php
declare(strict_types=1);
namespace Tests;
use App\Commands\FakeDefaultCommand;
use App\Commands\FakeFooCommand;
use App\HiddenCommands\FakeHiddenCommand;
use App\OtherCommands\FakeOtherCommand;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facade... | 653f8ebd47d71c9700cbe3a24e7792b45060ae12 | tests/LoadConfigurationsTest.php | tests/LoadConfigurationsTest.php | PHP |
<|file_sep|>original/package.json
{
"name": "graphql-todo-list",
"version": "1.0.0",
"description": "",
"scripts": {
"start": "node index.js",
"dev": "./node_modules/.bin/nodemon index.js"
},
"author": "Michał Ostruszka",
"license": "MIT",
"dependencies": {
"babel": "^5.6.14",
"express":... | {
"name": "graphql-todo-list",
"version": "1.0.0",
"description": "",
"scripts": {
"start": "node index.js",
"dev": "./node_modules/.bin/nodemon index.js"
},
"author": "Michał Ostruszka",
"license": "MIT",
"dependencies": {
"babel": "^5.6.14",
"express": "^4.13.1",
"graphql": "^0.1.3... | <|file_sep|>original/package.json
{
"name": "graphql-todo-list",
"version": "1.0.0",
"description": "",
"scripts": {
"start": "node index.js",
"dev": "./node_modules/.bin/nodemon index.js"
},
"author": "Michał Ostruszka",
"license": "MIT",
"dependencies": {
"babel": "^5.6.14",
"express":... | 1dfe53ed1a0bdebbbb2d3bc9cc0c97a831fe1737 | package.json | package.json | JSON |
<|file_sep|>packages/config_template.cfg.diff
original:
updated:
#Name of the program such as Firefox or Notepad++
<|file_sep|>packages/config_template.cfg.diff
original:
updated:
#Main URL where information about the program can be found:
#EX: Firefox: http://www.mozilla.org/en-US/firefox/new/
#EX: Notepad++ : htt... | #EX: Notepad++ : http://notepad-plus-plus.org/
url=
#A regular expression that matches a version number in the raw HTML returned by a page
#A good starting place is: (?<=PREFIX)[0-9]+(?:\.[0-9]+)* where PREFIX is some string
#That version numbers are preceded by (Ex: "firefox-")
versionRegex=
#The URL to download the... | <|file_sep|>packages/config_template.cfg.diff
original:
updated:
#Name of the program such as Firefox or Notepad++
<|file_sep|>packages/config_template.cfg.diff
original:
updated:
#Main URL where information about the program can be found:
#EX: Firefox: http://www.mozilla.org/en-US/firefox/new/
#EX: Notepad++ : htt... | 63feea9376508d25452ab3f49d8c28999a4445ef | packages/config_template.cfg | packages/config_template.cfg | INI |
<|file_sep|>original/test-requirements.txt
pytest==5.3.3
flask-testing==0.7.1
requests>=2.20.0
<|file_sep|>current/test-requirements.txt
pytest==5.3.3
flask-testing==0.7.1
requests>=2.20.0
<|file_sep|>updated/test-requirements.txt | pytest==5.3.4
flask-testing==0.7.1
requests>=2.20.0 | <|file_sep|>original/test-requirements.txt
pytest==5.3.3
flask-testing==0.7.1
requests>=2.20.0
<|file_sep|>current/test-requirements.txt
pytest==5.3.3
flask-testing==0.7.1
requests>=2.20.0
<|file_sep|>updated/test-requirements.txt
pytest==5.3.4
flask-testing==0.7.1
requests>=2.20.0 | e45164cae65b598381bed672eae6d379e1744767 | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>cmd/client/main.go.diff
original:
"github.com/itsankoff/gotcha/common"
updated:
<|file_sep|>cmd/client/main.go.diff
original:
input := make(chan *common.Message)
updated:
<|file_sep|>original/cmd/client/main.go
package main
import (
"github.com/itsankoff/gotcha/client"
"github.com/itsankoff/gotcha/co... | package main
import (
"github.com/itsankoff/gotcha/client"
"log"
"time"
)
func main() {
ws := client.NewWebSocketClient()
c := client.New(ws)
err := c.Connect("ws://127.0.0.1:9000/websocket")
log.Println("connected", err)
userId, err := c.Register("pesho", "123")
log.Println("registered", err)
err = c.Auth... | <|file_sep|>cmd/client/main.go.diff
original:
"github.com/itsankoff/gotcha/common"
updated:
<|file_sep|>cmd/client/main.go.diff
original:
input := make(chan *common.Message)
updated:
<|file_sep|>original/cmd/client/main.go
package main
import (
"github.com/itsankoff/gotcha/client"
"github.com/itsankoff/gotcha/co... | c8cf4af9674e1d4eb0747ba32be38d9849b74ab1 | cmd/client/main.go | cmd/client/main.go | Go |
<|file_sep|>original/greatbigcrane/project/views.py
from django.views.generic.list_detail import object_list
from django.views.generic.create_update import create_object
from project.models import Project
def index(request):
'''We should move this to a different app'''
return render_to_response('index.html')
... | from django.shortcuts import render_to_response
from django.views.generic.list_detail import object_list
from django.views.generic.create_update import create_object
from project.models import Project
def index(request):
'''We should move this to a different app'''
return render_to_response('index.html')
def ... | <|file_sep|>original/greatbigcrane/project/views.py
from django.views.generic.list_detail import object_list
from django.views.generic.create_update import create_object
from project.models import Project
def index(request):
'''We should move this to a different app'''
return render_to_response('index.html')
... | 61fb5216d12eb1a604a4a0f913eefc6006caf534 | greatbigcrane/project/views.py | greatbigcrane/project/views.py | Python |
<|file_sep|>examples/systray-example.rs.diff
original:
Err(e) => panic!("Can't create window!")
updated:
Err(_) => panic!("Can't create window!")
<|file_sep|>examples/systray-example.rs.diff
original:
app.set_icon_from_file(&"/usr/share/gxkb/flags/ua.png".to_string());
app.add_menu_item(&"Print ... | app.add_menu_item(&"Print a thing".to_string(), |_| {
println!("Printing a thing!");
}).ok();
app.add_menu_item(&"Add Menu Item".to_string(), |window| {
window.add_menu_item(&"Interior item".to_string(), |_| {
println!("what");
}).ok();
window.add_menu_separator()... | <|file_sep|>examples/systray-example.rs.diff
original:
Err(e) => panic!("Can't create window!")
updated:
Err(_) => panic!("Can't create window!")
<|file_sep|>examples/systray-example.rs.diff
original:
app.set_icon_from_file(&"/usr/share/gxkb/flags/ua.png".to_string());
app.add_menu_item(&"Print ... | 9830ae079f9e1bdb6ad6cb3e88093d6882322921 | examples/systray-example.rs | examples/systray-example.rs | Rust |
<|file_sep|>src/AppBundle/Resources/views/User/activate.html.twig.diff
original:
{% include 'AppBundle:Components/Page:_page-section-description.html.twig' with {
transDomain: translationDomain,
pageSectionDescription: 'page.pageSectionDescription'
} %}
updated:
<|file_sep|>original/src/AppBundle/Reso... | {{ form_errors_list(form) }}
{% endblock %}
{% block pageBody %}
{{ form_start(form, {attr: {novalidate: 'novalidate' }}) }}
{{ form_input(form.email,'email', { 'labelClass': 'required' }) }}
{{ form_input(form.password.first,'password', { 'labelClass': 'required' } ) }}
{{ form_input(form.pas... | <|file_sep|>src/AppBundle/Resources/views/User/activate.html.twig.diff
original:
{% include 'AppBundle:Components/Page:_page-section-description.html.twig' with {
transDomain: translationDomain,
pageSectionDescription: 'page.pageSectionDescription'
} %}
updated:
<|file_sep|>original/src/AppBundle/Reso... | 6da43aacbb236f51edb4783c7f632eea89c43f03 | src/AppBundle/Resources/views/User/activate.html.twig | src/AppBundle/Resources/views/User/activate.html.twig | Twig |
<|file_sep|>original/cmake/DARTCoreConfig.cmake.in
#===============================================================================
# DARTCore_LIBRARY_DIRS
#===============================================================================
set(DARTCore_LIBRARY_DIRS "@CMAKE_INSTALL_PREFIX@/lib" "@Boost_LIBRARY_DIRS@")
#==... | #===============================================================================
# DARTCore_LIBRARY_DIRS
#===============================================================================
set(DARTCore_LIBRARY_DIRS "@CMAKE_INSTALL_PREFIX@/lib" "@Boost_LIBRARY_DIRS@")
#=====================================================... | <|file_sep|>original/cmake/DARTCoreConfig.cmake.in
#===============================================================================
# DARTCore_LIBRARY_DIRS
#===============================================================================
set(DARTCore_LIBRARY_DIRS "@CMAKE_INSTALL_PREFIX@/lib" "@Boost_LIBRARY_DIRS@")
#==... | b975db2c3230bcb9dd423abfb9ba89300353bc01 | cmake/DARTCoreConfig.cmake.in | cmake/DARTCoreConfig.cmake.in | unknown |
<|file_sep|>original/packages/gh/ghc-check.yaml
<|file_sep|>current/packages/gh/ghc-check.yaml
<|file_sep|>updated/packages/gh/ghc-check.yaml | homepage: ''
changelog-type: ''
hash: 1cc8ed9b3da88ca3d769aa2974d6cde0928f0df921c3d5309a2e93ad22136af3
test-bench-deps: {}
maintainer: pepeiborra@gmail.com
synopsis: detect mismatches between compile-time and run-time versions of the ghc
api
changelog: ''
basic-deps:
ghc: -any
base: ! '>=4.10.0.0 && <5.0'
ghc-p... | <|file_sep|>original/packages/gh/ghc-check.yaml
<|file_sep|>current/packages/gh/ghc-check.yaml
<|file_sep|>updated/packages/gh/ghc-check.yaml
homepage: ''
changelog-type: ''
hash: 1cc8ed9b3da88ca3d769aa2974d6cde0928f0df921c3d5309a2e93ad22136af3
test-bench-deps: {}
maintainer: pepeiborra@gmail.com
synopsis: detect mis... | 3a6769b5dd15e48d6a464f3161c685b1fb125835 | packages/gh/ghc-check.yaml | packages/gh/ghc-check.yaml | YAML |
<|file_sep|>release-as-zip.sh.diff
original:
rm -rf tmp
updated:
<|file_sep|>original/release-as-zip.sh
# package npm and extract it
echo "Packaging locally"
npm pack
tar -xzf "${PKG_NAME}-${VERSION}.tgz"
cd package
# install production deps (no devDeps)
echo "Installing only production deps"
npm install --producti... | echo "Packaging locally"
npm pack
tar -xzf "${PKG_NAME}-${VERSION}.tgz"
cd package
# install production deps (no devDeps)
echo "Installing only production deps"
npm install --production &>/dev/null
# push everything inside package to 'latest' branch
git init
git remote add origin git@github.com:sphereio/sphere-node-pr... | <|file_sep|>release-as-zip.sh.diff
original:
rm -rf tmp
updated:
<|file_sep|>original/release-as-zip.sh
# package npm and extract it
echo "Packaging locally"
npm pack
tar -xzf "${PKG_NAME}-${VERSION}.tgz"
cd package
# install production deps (no devDeps)
echo "Installing only production deps"
npm install --producti... | a656d348f73e50d1c451d9407636c9ae0244296c | release-as-zip.sh | release-as-zip.sh | Shell |
<|file_sep|>src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy.diff
original:
updated:
import org.gradle.testkit.runner.UnexpectedBuildFailure
<|file_sep|>src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy.diff
original:
public void fortifyPlugin() {
updated:
public void mis... |
@Test
public void missingFortifyBuildID() {
BuildResult result = GradleRunner.create()
.withProjectDir(testProjectDir.getRoot())
.withArguments('fortify')
.build()
assertTrue(result.getOutput().contains('Mandatory parameter fortifyBuildID has not... | <|file_sep|>src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy.diff
original:
updated:
import org.gradle.testkit.runner.UnexpectedBuildFailure
<|file_sep|>src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy.diff
original:
public void fortifyPlugin() {
updated:
public void mis... | 977cf0ab5e63119821729573d208676419fb3c57 | src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy | src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy | Groovy |
<|file_sep|>original/.travis.yml
language: java
jdk: oraclejdk8
script:
- mvn clean install package validate -e -X
#- cd Authentication
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainClass=test.Main -Dexec.args="dev"
#- cd ../Maintenance
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainC... | language: java
jdk: oraclejdk8
script:
- mvn clean install package validate -e
#- cd Authentication
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainClass=test.Main -Dexec.args="dev"
#- cd ../Maintenance
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainClass=test.Main -Dexec.args="dev"
... | <|file_sep|>original/.travis.yml
language: java
jdk: oraclejdk8
script:
- mvn clean install package validate -e -X
#- cd Authentication
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainClass=test.Main -Dexec.args="dev"
#- cd ../Maintenance
#- mvn clean install
##- nohup mvn exec:java -Dexec.mainC... | c4484518bdf13414088518e7145d21f915e22dcf | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.2
services:
- redis-server
install:
- yes '' | pecl install -f redis
script:
- phpunit --testsuite Basic --exclude-group Auth,UnixSocket
<|file_sep|>current/.travis.yml
language: php
ph... | language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.0
- php: 7.1
- php: 7.2
services:
- redis-server
install:
- yes '' | pecl install -f redis
script: | <|file_sep|>original/.travis.yml
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.2
services:
- redis-server
install:
- yes '' | pecl install -f redis
script:
- phpunit --testsuite Basic --exclude-group Auth,UnixSocket
<|file_sep|>current/.travis.yml
language: php
ph... | b069065633c73dcd62213923f3fcb06d8c860a5d | .travis.yml | .travis.yml | YAML |
<|file_sep|>config/nvim/coc-settings.json.diff
original:
"diagnostic.displayByAle": true,
updated:
<|file_sep|>config/nvim/coc-settings.json.diff
original:
"python.formatting.provider": "black",
updated:
<|file_sep|>config/nvim/coc-settings.json.diff
original:
"go.goplsOptions": {
"completeUnimported": true... | "javascript",
"json",
"jsonc",
"python",
"ruby",
"typescript",
],
"solargraph.completion": true,
"solargraph.formatting": true,
"solargraph.hover": true,
"solargraph.rename": true,
"solargraph.symbols": true,
"solargraph.definitions": true,
"solargraph.references": true,
"sugge... | <|file_sep|>config/nvim/coc-settings.json.diff
original:
"diagnostic.displayByAle": true,
updated:
<|file_sep|>config/nvim/coc-settings.json.diff
original:
"python.formatting.provider": "black",
updated:
<|file_sep|>config/nvim/coc-settings.json.diff
original:
"go.goplsOptions": {
"completeUnimported": true... | cb589d253a339868e435ca9cb16cb3d5da1500cf | config/nvim/coc-settings.json | config/nvim/coc-settings.json | JSON |
<|file_sep|>src/resources/views/form.blade.php.diff
original:
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">@lang('twofactor-auth::twofactor-auth.title')</div>
<div class="panel-body">
updated... | <input id="token" type="text" class="form-control{{ $errors->has('token') ? ' is-invalid' : '' }}" name="token" value="{{ old('token') }}" required autofocus>
@if ($errors->has('token'))
<span class="invalid-feedback" r... | <|file_sep|>src/resources/views/form.blade.php.diff
original:
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">@lang('twofactor-auth::twofactor-auth.title')</div>
<div class="panel-body">
updated... | dc354fbb667072011c4c3fa2e053db11c30ba60c | src/resources/views/form.blade.php | src/resources/views/form.blade.php | PHP |
<|file_sep|>original/setup.py
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
... | 'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web En... | <|file_sep|>original/setup.py
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
... | d265ec5127a8ab51b1812786f4e1eef79ef2a9a3 | setup.py | setup.py | Python |
<|file_sep|>package.json.diff
original:
"build": "babel modules/ -d transforms",
updated:
"build": "rimraf transforms && babel modules/ -d transforms",
<|file_sep|>original/package.json
"keywords": [
"react",
"codemod",
"rackt"
],
"author": "Jimmy Jia",
"license": "MIT",
"bugs": {
"url... | "react",
"codemod",
"rackt"
],
"author": "Jimmy Jia",
"license": "MIT",
"bugs": {
"url": "https://github.com/rackt/rackt-codemod/issues"
},
"homepage": "https://github.com/rackt/rackt-codemod#readme",
"dependencies": {
"history": "^1.14.0"
},
"devDependencies": {
"babel": "^5.8... | <|file_sep|>package.json.diff
original:
"build": "babel modules/ -d transforms",
updated:
"build": "rimraf transforms && babel modules/ -d transforms",
<|file_sep|>original/package.json
"keywords": [
"react",
"codemod",
"rackt"
],
"author": "Jimmy Jia",
"license": "MIT",
"bugs": {
"url... | 3fe17e1f504e085ab4b879b5909f66382152ba69 | package.json | package.json | JSON |
<|file_sep|>packagelist-ubuntu-12.04-apt.txt.diff
original:
libboost-dev
updated:
libboost1.48-dev
<|file_sep|>original/packagelist-ubuntu-12.04-apt.txt
postgresql-9.3
imagemagick
gcc
gfortran
apt-file
python2.7-dev
libpq-dev
libgraphicsmagick++1-dev
graphicsmagick
libhdf5-serial-dev
libboost-dev
virtualenvwrapper
libb... | postgresql-9.3
imagemagick
gcc
gfortran
apt-file
python2.7-dev
libpq-dev
libgraphicsmagick++1-dev
graphicsmagick
libhdf5-serial-dev
libboost1.48-dev
virtualenvwrapper
libboost-python1.48-dev
uuid-dev
libxml2-dev
libxslt1-dev
libjpeg-dev
libtiff-dev
libblas-dev
liblapack-dev | <|file_sep|>packagelist-ubuntu-12.04-apt.txt.diff
original:
libboost-dev
updated:
libboost1.48-dev
<|file_sep|>original/packagelist-ubuntu-12.04-apt.txt
postgresql-9.3
imagemagick
gcc
gfortran
apt-file
python2.7-dev
libpq-dev
libgraphicsmagick++1-dev
graphicsmagick
libhdf5-serial-dev
libboost-dev
virtualenvwrapper
libb... | 174c4699fea93470989dadb5ba06b6631e7e5a25 | packagelist-ubuntu-12.04-apt.txt | packagelist-ubuntu-12.04-apt.txt | Text |
<|file_sep|>original/cmake/Depthai/DepthaiDeviceSideConfig.cmake
# Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "73f5dfe7a318e713481dd00d134c2c597112afff")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_... | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "bfb509700962dc4d8d78de9be30a49efa98e25f8")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "") | <|file_sep|>original/cmake/Depthai/DepthaiDeviceSideConfig.cmake
# Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "73f5dfe7a318e713481dd00d134c2c597112afff")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_... | 630b461b5c14085862c020020e352ce49c98e56a | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | CMake |
<|file_sep|>instruments/bbn.py.diff
original:
updated:
<|file_sep|>instruments/bbn.py.diff
original:
updated:
"""BBN 3 Channel Instrument"""
<|file_sep|>instruments/bbn.py.diff
original:
"""BBN 3 Channel Instrument"""
updated:
<|file_sep|>instruments/bbn.py.diff
original:
#Clear "unknown command" ... | def query(self, query_string):
val = self._resource.query(query_string)
assert self.read() == "END"
return val
self.interface.query = MethodType(query, self.interface, VisaInterface)
@classmethod
def channel_check(cls, chan):
""" Assert the channel r... | <|file_sep|>instruments/bbn.py.diff
original:
updated:
<|file_sep|>instruments/bbn.py.diff
original:
updated:
"""BBN 3 Channel Instrument"""
<|file_sep|>instruments/bbn.py.diff
original:
"""BBN 3 Channel Instrument"""
updated:
<|file_sep|>instruments/bbn.py.diff
original:
#Clear "unknown command" ... | dde6e451a9e434b980d1ebac84626ec7515485c5 | instruments/bbn.py | instruments/bbn.py | Python |
<|file_sep|>lib/travis/services/github/fetch_config.rb.diff
original:
parse(fetch) || { '.result' => 'not_found' }
updated:
retries = 0
config = nil
until retries > 3
config = parse(fetch)
break if config
retries += 1
end
co... | end
instrument :run
def config_url
request.config_url
end
private
def fetch
content = GH[config_url]['content']
Travis.logger.info("Got empty content for #{config_url}") if content.nil?
content = content.to_s.unpack('m').... | <|file_sep|>lib/travis/services/github/fetch_config.rb.diff
original:
parse(fetch) || { '.result' => 'not_found' }
updated:
retries = 0
config = nil
until retries > 3
config = parse(fetch)
break if config
retries += 1
end
co... | 12206fd8aa96b184cf7cf453ad827aa1170fbee3 | lib/travis/services/github/fetch_config.rb | lib/travis/services/github/fetch_config.rb | Ruby |
<|file_sep|>original/packages/wramp-react/package.json
"scripts": {
"@link:from": ":",
"@link:to": "yarn link wramp",
"build": "babel src --out-dir dist",
"watch": "babel src --out-dir dist --watch",
"lint:src": "eslint --fix src",
"test": ":"
},
"peerDependencies": {
"react": ">= 15.4... | "scripts": {
"@link:from": ":",
"@link:to": "yarn link wramp",
"build": "babel src --out-dir dist",
"watch": "babel src --out-dir dist --watch",
"lint:src": "eslint --fix src",
"test": ":"
},
"peerDependencies": {
"react": ">= 15.4.0",
"wramp": ">= 0.0.0"
},
"devDependencies": ... | <|file_sep|>original/packages/wramp-react/package.json
"scripts": {
"@link:from": ":",
"@link:to": "yarn link wramp",
"build": "babel src --out-dir dist",
"watch": "babel src --out-dir dist --watch",
"lint:src": "eslint --fix src",
"test": ":"
},
"peerDependencies": {
"react": ">= 15.4... | d831d5b0e641604c8649af60da4c1cd6865f794e | packages/wramp-react/package.json | packages/wramp-react/package.json | JSON |
<|file_sep|>original/Casks/intellij-idea.rb
cask :v1 => 'intellij-idea' do
version '14.1.2'
sha256 'ea3326004a8e1dd113ea54b825494f60be0f506c5e6a25743481a719931ce896'
url "http://download.jetbrains.com/idea/ideaIU-#{version}.dmg"
name 'IntelliJ IDEA'
homepage 'https://www.jetbrains.com/idea/'
license :comme... | cask :v1 => 'intellij-idea' do
version '14.1.3'
sha256 'a7045dd58a6d632724a0444b46b71de55ee237a8f8fa31aa9a82b685d8d8bef2'
url "http://download.jetbrains.com/idea/ideaIU-#{version}.dmg"
name 'IntelliJ IDEA'
homepage 'https://www.jetbrains.com/idea/'
license :commercial
app 'IntelliJ IDEA 14.app'
zap :... | <|file_sep|>original/Casks/intellij-idea.rb
cask :v1 => 'intellij-idea' do
version '14.1.2'
sha256 'ea3326004a8e1dd113ea54b825494f60be0f506c5e6a25743481a719931ce896'
url "http://download.jetbrains.com/idea/ideaIU-#{version}.dmg"
name 'IntelliJ IDEA'
homepage 'https://www.jetbrains.com/idea/'
license :comme... | 67fec30db3da0e064984ae963e43dba7d340dc79 | Casks/intellij-idea.rb | Casks/intellij-idea.rb | Ruby |
<|file_sep|>docs/index.md.diff
original:
- What it is
- Why it exists
- How to obtain it
- Requirements
- Installation steps
updated:
- What it is
- Why it exists
- How to obtain it
- Requirements
- Installation steps
<|file_sep|>original/docs/index.md
Some things to consider:
- Introduc... |
Some things to consider:
- Introduction
- What it is
- Why it exists
- How to obtain it
- Requirements
- Installation steps
- Quickstart.
- ie. what's the quickest way for someone to get up and running,
covering the most common use cases.
- Architecture
- Configuration
- Different use ca... | <|file_sep|>docs/index.md.diff
original:
- What it is
- Why it exists
- How to obtain it
- Requirements
- Installation steps
updated:
- What it is
- Why it exists
- How to obtain it
- Requirements
- Installation steps
<|file_sep|>original/docs/index.md
Some things to consider:
- Introduc... | 4b3936a0a289b88c0ae4d1ca54b1c027765feb30 | docs/index.md | docs/index.md | Markdown |
<|file_sep|>original/README.md
riemann-sumd
============
Agent for scheduling event generating processes and sending the results to Riemann
<|file_sep|>current/README.md
riemann-sumd
============
Agent for scheduling event generating processes and sending the results to Riemann
<|file_sep|>updated/README.md | riemann-sumd
============
Python agent for scheduling event generating processes and sending the results to Riemann
Why?
----
While configuring my Riemann install, I noticed that the already-built clients were single-purpose daemons that sent their own events to Riemann. The operationalize such a thing, I'd have to ... | <|file_sep|>original/README.md
riemann-sumd
============
Agent for scheduling event generating processes and sending the results to Riemann
<|file_sep|>current/README.md
riemann-sumd
============
Agent for scheduling event generating processes and sending the results to Riemann
<|file_sep|>updated/README.md
riemann-s... | 377a1638a2040e5694118291217874c03f52aec0 | README.md | README.md | Markdown |
<|file_sep|>original/source/_posts/2016-06-07-custom-mix-task.md
<|file_sep|>current/source/_posts/2016-06-07-custom-mix-task.md
<|file_sep|>updated/source/_posts/2016-06-07-custom-mix-task.md | ---
layout: post
title: "Custom Mix Task"
keywords: "mix, task"
category: "mix"
comments: true
---
Create a custom `mix` task:
{% highlight elixir %}
# lib/mix/tasks/mytask.ex
defmodule Mix.Tasks.MyTask do
use Mix.Task
@shortdoc "A simple mix task"
def run(_) do
IO.puts "YO!"
end
end
{% endhighlight %} | <|file_sep|>original/source/_posts/2016-06-07-custom-mix-task.md
<|file_sep|>current/source/_posts/2016-06-07-custom-mix-task.md
<|file_sep|>updated/source/_posts/2016-06-07-custom-mix-task.md
---
layout: post
title: "Custom Mix Task"
keywords: "mix, task"
category: "mix"
comments: true
---
Create a custom `mix` ta... | 2b047cf639a1ae1c17bec6735644d7e25aa59a2d | source/_posts/2016-06-07-custom-mix-task.md | source/_posts/2016-06-07-custom-mix-task.md | Markdown |
<|file_sep|>Tests/DisplayTests/FullScreen.cs.diff
original:
updated:
string text = "Press Esc or Tilde to exit." + Environment.NewLine + "Starting Text";
<|file_sep|>Tests/DisplayTests/FullScreen.cs.diff
original:
updated:
Keyboard.KeyDown += new InputEventHandler(Keyboard_KeyDown);
FontSurface font = Font... | Keyboard.Keys[KeyCode.Tilde] == false)
{
Display.BeginFrame();
Display.Clear(Color.DarkGreen);
font.DrawText(text);
mySurface.Draw(Mouse.X, Mouse.Y);
Display.EndFrame();
Core.KeepAlive();
}
}
}
void Keyboard_KeyDown(InputEventArgs e)
{
text += e.KeyString;
}
... | <|file_sep|>Tests/DisplayTests/FullScreen.cs.diff
original:
updated:
string text = "Press Esc or Tilde to exit." + Environment.NewLine + "Starting Text";
<|file_sep|>Tests/DisplayTests/FullScreen.cs.diff
original:
updated:
Keyboard.KeyDown += new InputEventHandler(Keyboard_KeyDown);
FontSurface font = Font... | 391576039c6f7fc6dfaae300d5447a1888a34b6d | Tests/DisplayTests/FullScreen.cs | Tests/DisplayTests/FullScreen.cs | C# |
<|file_sep|>original/metadata/am.ed.importcontacts.txt
your Android device without the need to upload them to Google first. Contacts
(vCard “.vcf” files) are imported from your SD card directly in to the phones
contact list.
.
Repo Type:bzr
Repo:http://bzr.ed.am/android/import-contacts
#Build Version:1.1,2,27
#Change... | .
Repo Type:bzr
Repo:http://bzr.ed.am/android/import-contacts
#Build Version:1.1,2,27
#Change package id
Build:1.3.1,10301
commit=1.3.1
Build:1.3.3,10303
commit=1.3.3
Build:1.3.4,10304
commit=1.3.4
Auto Update Mode:None
Update Check Mode:Tags
Current Version:1.3.4
Current Version Code:10304
| <|file_sep|>original/metadata/am.ed.importcontacts.txt
your Android device without the need to upload them to Google first. Contacts
(vCard “.vcf” files) are imported from your SD card directly in to the phones
contact list.
.
Repo Type:bzr
Repo:http://bzr.ed.am/android/import-contacts
#Build Version:1.1,2,27
#Change... | f23e8bad3c6713f604eee798693f0a75787f836a | metadata/am.ed.importcontacts.txt | metadata/am.ed.importcontacts.txt | Text |
<|file_sep|>original/.travis.yml
language: r
sudo: required
r_binary_packages:
- ggplot2
- jsonlite
- R.oo
- plyr
scripts:
- mvn test
<|file_sep|>current/.travis.yml
language: r
sudo: required
r_binary_packages:
- ggplot2
- jsonlite
- R.oo
- plyr
scripts:
- mvn test
<|file_sep|>updated/.travis.yml | language: r
sudo: required
r_binary_packages:
- ggplot2 | <|file_sep|>original/.travis.yml
language: r
sudo: required
r_binary_packages:
- ggplot2
- jsonlite
- R.oo
- plyr
scripts:
- mvn test
<|file_sep|>current/.travis.yml
language: r
sudo: required
r_binary_packages:
- ggplot2
- jsonlite
- R.oo
- plyr
scripts:
- mvn test
<|file_sep|>updated/.travis.yml
l... | c6d5d615d4143a5d77f8bcfdba70acd01a2a4ef7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/capistrano-chatwork.gemspec
Gem::Specification.new do |spec|
spec.name = 'capistrano-chatwork'
spec.version = Capistrano::ChatWork::VERSION
spec.authors = ['Kazuya Takeshima']
spec.email = ['mail@mitukiii.jp']
spec.summary = %q{Capistrano extension for ... | Gem::Specification.new do |spec|
spec.name = 'capistrano-chatwork'
spec.version = Capistrano::ChatWork::VERSION
spec.authors = ['Kazuya Takeshima']
spec.email = ['mail@mitukiii.jp']
spec.summary = %q{Capistrano extension for notify to ChatWork}
spec.description = %q{Capi... | <|file_sep|>original/capistrano-chatwork.gemspec
Gem::Specification.new do |spec|
spec.name = 'capistrano-chatwork'
spec.version = Capistrano::ChatWork::VERSION
spec.authors = ['Kazuya Takeshima']
spec.email = ['mail@mitukiii.jp']
spec.summary = %q{Capistrano extension for ... | 866362f2a37c2bb6a8a566bb2822a64e43ac15f3 | capistrano-chatwork.gemspec | capistrano-chatwork.gemspec | Ruby |
<|file_sep|>original/composer.json
"require": {
"php": ">=5.5.9"
},
"require-dev": {
"phpunit/phpunit": "^4.6",
"way/phpunit-wrappers": "dev-master",
"way/laravel-test-helpers": "dev-master",
"mockery/mockery": "^0.9.4",
"orchestra/testbench": "^3.1",
"doctrine/dbal": "^2.5.1"
},
"... | "php": ">=5.5.9"
},
"require-dev": {
"phpunit/phpunit": "^4.6",
"way/phpunit-wrappers": "dev-master",
"way/laravel-test-helpers": "dev-master",
"mockery/mockery": "^0.9.4",
"orchestra/testbench": "^3.1",
"doctrine/dbal": "^2.5.1"
},
"replace": {
"franzose/closure-table": "*"
},... | <|file_sep|>original/composer.json
"require": {
"php": ">=5.5.9"
},
"require-dev": {
"phpunit/phpunit": "^4.6",
"way/phpunit-wrappers": "dev-master",
"way/laravel-test-helpers": "dev-master",
"mockery/mockery": "^0.9.4",
"orchestra/testbench": "^3.1",
"doctrine/dbal": "^2.5.1"
},
"... | 4fa89fc20a40c9a95bc18cf62d2638825d04ae58 | composer.json | composer.json | JSON |
<|file_sep|>original/app/models/omnisocial/login_account.rb
module Omnisocial
class LoginAccount < ActiveRecord::Base
belongs_to :user
def self.find_or_create_from_auth_hash(auth_hash)
if (account = find_by_remote_account_id(auth_hash['uid']))
account.assign_account_info(auth_hash)
acco... | module Omnisocial
class LoginAccount < ActiveRecord::Base
belongs_to :user
serialize :auth_hash
def self.find_or_create_from_auth_hash(auth_hash)
if (account = find_by_remote_account_id(auth_hash['uid']))
account.assign_account_info(auth_hash)
account.save
account
else... | <|file_sep|>original/app/models/omnisocial/login_account.rb
module Omnisocial
class LoginAccount < ActiveRecord::Base
belongs_to :user
def self.find_or_create_from_auth_hash(auth_hash)
if (account = find_by_remote_account_id(auth_hash['uid']))
account.assign_account_info(auth_hash)
acco... | 9b371957f6f0b2508de9eca1aa15fde47293cbc9 | app/models/omnisocial/login_account.rb | app/models/omnisocial/login_account.rb | Ruby |
<|file_sep|>original/README.md
# binary-style
Style system and guide for Binary.com
### Projects (that should be) using this:
* [Binary Static](https://github.com/binary-com/binary-static)
* [Next Gen](https://github.com/binary-com/binary-next-gen)
* [Binary Developer's Portal](https://github.com/binary-com/websocke... | # binary-style
Style system and guide for Binary.com
### Style guides this will be based on
* [Material Design](https://www.google.com/design/spec/material-design/introduction.html)
* [Lightning Design System](https://www.lightningdesignsystem.com/)
* [U.S. Web Design Standards](https://playbook.cio.gov/designstanda... | <|file_sep|>original/README.md
# binary-style
Style system and guide for Binary.com
### Projects (that should be) using this:
* [Binary Static](https://github.com/binary-com/binary-static)
* [Next Gen](https://github.com/binary-com/binary-next-gen)
* [Binary Developer's Portal](https://github.com/binary-com/websocke... | bbd3378a37611b0af2a96e2255c3b442a0b9f27a | README.md | README.md | Markdown |
<|file_sep|>app/html/highscore.html.diff
original:
<link rel="stylesheet" type="text/css" href="../styles/main.css">
updated:
<|file_sep|>original/app/html/highscore.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Feierabend - Highscore</title>
<link rel="stylesheet" type="te... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Feierabend - Highscore</title>
<link rel="stylesheet" type="text/css" href="../styles/highscore.css">
</head>
<body>
<a id="zurueck" href="../index.html"><img src="../img/zurueck-button_1.svg"></a>
<main id="highscore-lists">
<section... | <|file_sep|>app/html/highscore.html.diff
original:
<link rel="stylesheet" type="text/css" href="../styles/main.css">
updated:
<|file_sep|>original/app/html/highscore.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Feierabend - Highscore</title>
<link rel="stylesheet" type="te... | dfe4c9009ed0ff3f3f0732d2ff6a694a90cd57ad | app/html/highscore.html | app/html/highscore.html | HTML |
<|file_sep|>original/src/CacheInterface.php
* is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
/**
* @param string $key
*
* @return mixed|null
*/
public function get($key);
/**
* Returns true if the data was stored.
*
* @pa... | * is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
const VERSION = '3.0.0';
/**
* @param string $key
*
* @return mixed|null
*/
public function get($key);
/**
* Returns true if the data was stored. | <|file_sep|>original/src/CacheInterface.php
* is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
/**
* @param string $key
*
* @return mixed|null
*/
public function get($key);
/**
* Returns true if the data was stored.
*
* @pa... | 54430c93c9e3c000a2846161ab382d8ca62be9bb | src/CacheInterface.php | src/CacheInterface.php | PHP |
<|file_sep|>TheKeyOAuth2.podspec.diff
original:
s.version = "0.5.2"
updated:
s.version = "0.5.3"
<|file_sep|>original/TheKeyOAuth2.podspec
Pod::Spec.new do |s|
s.name = "TheKeyOAuth2"
s.version = "0.5.2"
s.summary = "TheKey OAuth2 Client Library."
s.homepage = "http://thekey.... | Pod::Spec.new do |s|
s.name = "TheKeyOAuth2"
s.version = "0.5.3"
s.summary = "TheKey OAuth2 Client Library."
s.homepage = "http://thekey.me/"
s.license = { :type => 'Modified BSD', :file => 'LICENSE.txt' }
s.author = { "Brian Zoetewey" => "brian.zoetewey@ccci.org" }
s.sour... | <|file_sep|>TheKeyOAuth2.podspec.diff
original:
s.version = "0.5.2"
updated:
s.version = "0.5.3"
<|file_sep|>original/TheKeyOAuth2.podspec
Pod::Spec.new do |s|
s.name = "TheKeyOAuth2"
s.version = "0.5.2"
s.summary = "TheKey OAuth2 Client Library."
s.homepage = "http://thekey.... | 4d2f0757177a4a3fe5e2947987a26ce789f6ee0a | TheKeyOAuth2.podspec | TheKeyOAuth2.podspec | Ruby |
<|file_sep|>AudioKit/Common/Internals/AKDevice.swift.diff
original:
updated:
#if os(OSX)
public typealias DeviceID = AudioDeviceID
#else
public typealias DeviceID = String
#endif
<|file_sep|>AudioKit/Common/Internals/AKDevice.swift.diff
original:
#if os(OSX)
updated:
<|file_sep|>AudioKit/Common/Internal... | public var name: String
/// The device identifier.
public private(set) var deviceID: DeviceID
/// Initialize the device
///
/// - parameter name: The human-readable name for the device.
/// - parameter deviceID: The device identifier.
///
public init(name: String, deviceID: Dev... | <|file_sep|>AudioKit/Common/Internals/AKDevice.swift.diff
original:
updated:
#if os(OSX)
public typealias DeviceID = AudioDeviceID
#else
public typealias DeviceID = String
#endif
<|file_sep|>AudioKit/Common/Internals/AKDevice.swift.diff
original:
#if os(OSX)
updated:
<|file_sep|>AudioKit/Common/Internal... | 09eb894d29a8a64d0de2a33a6e94ba318cdb4f92 | AudioKit/Common/Internals/AKDevice.swift | AudioKit/Common/Internals/AKDevice.swift | Swift |
<|file_sep|>original/package.json
"laravel-elixir-livereload": "^1.1.4",
"laravel-elixir-webpack-ex": "0.0.4",
"sass-loader": "^3.1.2",
"vue-html-loader": "^1.2.0",
"vue-loader": "8.2.3",
"vue-style-loader": "^1.0.0"
},
"dependencies": {
"bootstrap-sass": "^3.0.0",
"deep-extend": "^0... | "laravel-elixir-livereload": "^1.1.4",
"laravel-elixir-webpack-ex": "0.0.4",
"sass-loader": "^3.1.2",
"vue-html-loader": "^1.2.0",
"vue-loader": "8.2.3",
"vue-style-loader": "^1.0.0"
},
"dependencies": {
"bootstrap-sass": "^3.0.0",
"deep-extend": "^0.4.1",
"laravel-elixir": "^6.0... | <|file_sep|>original/package.json
"laravel-elixir-livereload": "^1.1.4",
"laravel-elixir-webpack-ex": "0.0.4",
"sass-loader": "^3.1.2",
"vue-html-loader": "^1.2.0",
"vue-loader": "8.2.3",
"vue-style-loader": "^1.0.0"
},
"dependencies": {
"bootstrap-sass": "^3.0.0",
"deep-extend": "^0... | f068df2bce94b6ec60cb951409ad40d24b3c70c3 | package.json | package.json | JSON |
<|file_sep|>original/README.md
# Weld
A proxy server service which can be used for integration testing.
Weld has a RESTful api which can be used to programmatically set up, interogate and tear down proxy servers.
Weld is written in [node.js][node]
[node]: https://github.com/joyent/node
<|file_sep|>current/README.... | # Weld
A proxy server service which can be used for integration testing.
Weld has a RESTful api which can be used to programmatically set up, interogate and tear down proxy servers.
Weld is written in [node.js][node]
[node]: https://github.com/joyent/node
## Integration testing with weld | <|file_sep|>original/README.md
# Weld
A proxy server service which can be used for integration testing.
Weld has a RESTful api which can be used to programmatically set up, interogate and tear down proxy servers.
Weld is written in [node.js][node]
[node]: https://github.com/joyent/node
<|file_sep|>current/README.... | 3f95a3245003f60c33bd7db6367781524f8e96a4 | README.md | README.md | Markdown |
<|file_sep|>original/utils/src/main/java/org/zstack/utils/BOMUtils.java
<|file_sep|>current/utils/src/main/java/org/zstack/utils/BOMUtils.java
<|file_sep|>updated/utils/src/main/java/org/zstack/utils/BOMUtils.java | package org.zstack.utils;
import org.apache.commons.io.ByteOrderMark;
import org.apache.commons.io.input.BOMInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import static java.util.Arrays.asList;
/**
* Created by kayo on 2018/10/9.
*/
public class BOMUtils {
public s... | <|file_sep|>original/utils/src/main/java/org/zstack/utils/BOMUtils.java
<|file_sep|>current/utils/src/main/java/org/zstack/utils/BOMUtils.java
<|file_sep|>updated/utils/src/main/java/org/zstack/utils/BOMUtils.java
package org.zstack.utils;
import org.apache.commons.io.ByteOrderMark;
import org.apache.commons.io.inpu... | 1d5fc71ba1fb8d3329c1254e033ddbef26e4d257 | utils/src/main/java/org/zstack/utils/BOMUtils.java | utils/src/main/java/org/zstack/utils/BOMUtils.java | Java |
<|file_sep|>test/index.js.diff
original:
updated:
var vm = require('vm');
<|file_sep|>original/test/index.js
var test = require('tape');
var isError = require('../index.js');
test('isError is a function', function t(assert) {
assert.equal(typeof isError, 'function');
assert.end();
});
test('returns true for... | assert.equal(isError(Error('foo')), true);
assert.end();
});
test('returns false for non-error', function t(assert) {
assert.equal(isError(null), false);
assert.equal(isError(undefined), false);
assert.equal(isError({message: 'hi'}), false);
assert.end();
});
test('errors that inherit from Err... | <|file_sep|>test/index.js.diff
original:
updated:
var vm = require('vm');
<|file_sep|>original/test/index.js
var test = require('tape');
var isError = require('../index.js');
test('isError is a function', function t(assert) {
assert.equal(typeof isError, 'function');
assert.end();
});
test('returns true for... | 74632c81aa309e7d4cfab2bc4fb80effd49da773 | test/index.js | test/index.js | JavaScript |
<|file_sep|>original/requirements-dev.txt
pip-tools==1.10.1
ipython==6.2.1
requests-mock==1.3.0
tblib==1.3.2
autopep8==1.3.2
<|file_sep|>current/requirements-dev.txt
pip-tools==1.10.1
ipython==6.2.1
requests-mock==1.3.0
tblib==1.3.2
autopep8==1.3.2
<|file_sep|>updated/requirements-dev.txt | pip-tools==1.10.1
ipython==6.2.1
requests-mock==1.3.0
tblib==1.3.2
autopep8==1.3.3 | <|file_sep|>original/requirements-dev.txt
pip-tools==1.10.1
ipython==6.2.1
requests-mock==1.3.0
tblib==1.3.2
autopep8==1.3.2
<|file_sep|>current/requirements-dev.txt
pip-tools==1.10.1
ipython==6.2.1
requests-mock==1.3.0
tblib==1.3.2
autopep8==1.3.2
<|file_sep|>updated/requirements-dev.txt
pip-tools==1.10.1
ipython==6.2... | 286f850a0a94022f3df62b07aee7e9e54ca94449 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/requirements.txt
celery==4.0.2
Django==1.10.4
django-anymail==0.6.1
# django-cors-headers does not currently support 1.9.
# Use the fork for now.
django-cors-middleware==1.3.1
django-localflavor==1.4.1
djangorestframework==3.5.3
djangorestframework-jsonapi==2.1.1
djangorestframework-jwt==1.9.0
requ... | celery==4.0.2
Django==1.10.4
django-anymail==0.6.1
# django-cors-headers does not currently support 1.9.
# Use the fork for now.
django-cors-middleware==1.3.1
django-localflavor==1.4.1
djangorestframework==3.5.3
djangorestframework-jsonapi==2.1.1
djangorestframework-jwt==1.9.0
requests==2.9.1
rollbar==0.13.10
wal-e[aws... | <|file_sep|>original/requirements.txt
celery==4.0.2
Django==1.10.4
django-anymail==0.6.1
# django-cors-headers does not currently support 1.9.
# Use the fork for now.
django-cors-middleware==1.3.1
django-localflavor==1.4.1
djangorestframework==3.5.3
djangorestframework-jsonapi==2.1.1
djangorestframework-jwt==1.9.0
requ... | a14871af70b3a42aeea1853fcd01f9e8adfdd678 | requirements.txt | requirements.txt | Text |
<|file_sep|>packages/br/brainheck.yaml.diff
original:
hash: 5d30a9afdece33e5d53cab7303a448a49bd6c4b9a8941bd87f9b0f753e291349
test-bench-deps:
base: -any
brainheck: -any
updated:
hash: cbf5325a0174c0fee31963425bebbb9aca9e1bac2ffe680687186ee4e0a1f41d
test-bench-deps: {}
<|file_sep|>packages/br/brainheck.yaml.diff
ori... | megaparsec: -any
containers: -any
lens: -any
mtl: -any
optparse-applicative: -any
brainheck: -any
recursion-schemes: -any
vector: -any
all-versions:
- '0.1.0.0'
- '0.1.0.1'
author: Vanessa McHale
latest: '0.1.0.1'
description-type: markdown
description: ! "# Brainheck intrepreter\n\nThis is a brainh\\*c... | <|file_sep|>packages/br/brainheck.yaml.diff
original:
hash: 5d30a9afdece33e5d53cab7303a448a49bd6c4b9a8941bd87f9b0f753e291349
test-bench-deps:
base: -any
brainheck: -any
updated:
hash: cbf5325a0174c0fee31963425bebbb9aca9e1bac2ffe680687186ee4e0a1f41d
test-bench-deps: {}
<|file_sep|>packages/br/brainheck.yaml.diff
ori... | 36c39685e22abadc9ca57db4ce8eb70627e21881 | packages/br/brainheck.yaml | packages/br/brainheck.yaml | YAML |
<|file_sep|>original/http-commands.gemspec
Gem::Specification.new do |s|
s.name = 'http-commands'
s.version = '0.0.2.4'
s.summary = 'Convenience abstractions for common HTTP operations, such as post and get'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.c... | Gem::Specification.new do |s|
s.name = 'http-commands'
s.version = '0.0.2.5'
s.summary = 'Convenience abstractions for common HTTP operations, such as post and get'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s.homepage = 'https://github.com/obsi... | <|file_sep|>original/http-commands.gemspec
Gem::Specification.new do |s|
s.name = 'http-commands'
s.version = '0.0.2.4'
s.summary = 'Convenience abstractions for common HTTP operations, such as post and get'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.c... | 6d5091144e04c7b78d21cce2a6d139ff5bdba81d | http-commands.gemspec | http-commands.gemspec | Ruby |
<|file_sep|>original/indico/htdocs/sass/partials/_jquery-indico-clearableinput.scss
.input-clear {
&:hover {
color: $red;
}
&:active {
color: $dark-red;
}
}
.input-action {
&:hover {
co... |
&:active {
color: $dark-red;
}
}
.input-action {
&:hover {
color: $green;
}
&:active {
color: $dark-green;
}
}
}
}
// Fix fox clearableinput within qtips
.qtip .clearabl... | <|file_sep|>original/indico/htdocs/sass/partials/_jquery-indico-clearableinput.scss
.input-clear {
&:hover {
color: $red;
}
&:active {
color: $dark-red;
}
}
.input-action {
&:hover {
co... | c7af7b4b76e581121faddc3215a49be03e3011c3 | indico/htdocs/sass/partials/_jquery-indico-clearableinput.scss | indico/htdocs/sass/partials/_jquery-indico-clearableinput.scss | SCSS |
<|file_sep|>original/README.md
# openworks-status-api
API for a OpenWorks Status Page
<|file_sep|>current/README.md
# openworks-status-api
API for a OpenWorks Status Page
<|file_sep|>updated/README.md | # openworks-status-api
API for an OpenWorks Status Page
## Things to track
* Internet
* Power
* Water
* Sewer
* HVAC
* Printer
* Refrigerator
* Security
* Key Fobs
* Doors
* Noise
* Seats/desks available
## Example Status Pages
* https://www.apple.com/support/systemstatus/ | <|file_sep|>original/README.md
# openworks-status-api
API for a OpenWorks Status Page
<|file_sep|>current/README.md
# openworks-status-api
API for a OpenWorks Status Page
<|file_sep|>updated/README.md
# openworks-status-api
API for an OpenWorks Status Page
## Things to track
* Internet
* Power
* Water
* Sewer
* HVAC
... | 2bb20887a9653b8012789e4f8499b0428659341c | README.md | README.md | Markdown |
<|file_sep|>original/README.md
# meteor-velocity-travis-ci
Travis CI support for meteor packages running velocity tests
<|file_sep|>current/README.md
# meteor-velocity-travis-ci
Travis CI support for meteor packages running velocity tests
<|file_sep|>updated/README.md | # meteor-velocity-travis-ci
Travis CI support for meteor packages running velocity tests
# Instructions
Perform the following steps to add travis ci tests to your project:
* Copy .travis-example.yml to your package directory, rename it to .travis.yml
* Login to travis-ci.org website using your github account.
* Enable... | <|file_sep|>original/README.md
# meteor-velocity-travis-ci
Travis CI support for meteor packages running velocity tests
<|file_sep|>current/README.md
# meteor-velocity-travis-ci
Travis CI support for meteor packages running velocity tests
<|file_sep|>updated/README.md
# meteor-velocity-travis-ci
Travis CI support for m... | f69949aebf641eef2d21f134b040b9a1700165a2 | README.md | README.md | Markdown |
<|file_sep|>original/Resolver.php
*
* @param string $groupName
*
* @return array An array of group names
*/
public function resolve($groupName)
{
$groupNames = [$groupName];
if (isset($this->groups[$groupName])) {
if (!$this->authorizationChecker->isGranted(... | *
* @param string $groupName
*
* @return array An array of group names
*/
public function resolve($groupName)
{
$groupNames = [$groupName];
if (isset($this->groups[$groupName])) {
if (0 < count($this->groups[$groupName]['roles']) && !$this->authorizationChec... | <|file_sep|>original/Resolver.php
*
* @param string $groupName
*
* @return array An array of group names
*/
public function resolve($groupName)
{
$groupNames = [$groupName];
if (isset($this->groups[$groupName])) {
if (!$this->authorizationChecker->isGranted(... | d230af881cb4824829d541378a0ebaf4ef0a94a6 | Resolver.php | Resolver.php | PHP |
<|file_sep|>original/lib/action_controller/serialization.rb
included do
class_attribute :_serialization_scope
self._serialization_scope = :current_user
end
def serialization_scope
send(_serialization_scope)
end
def _render_option_json(json, options)
if json.is_a?(Array)
... | included do
class_attribute :_serialization_scope
self._serialization_scope = :current_user
end
def serialization_scope
send(_serialization_scope)
end
def _render_option_json(json, options)
if json.respond_to?(:to_ary)
options[:root] ||= controller_name
end
... | <|file_sep|>original/lib/action_controller/serialization.rb
included do
class_attribute :_serialization_scope
self._serialization_scope = :current_user
end
def serialization_scope
send(_serialization_scope)
end
def _render_option_json(json, options)
if json.is_a?(Array)
... | c083774f9c873e86e2696353b69cf50cd30aeb22 | lib/action_controller/serialization.rb | lib/action_controller/serialization.rb | Ruby |
<|file_sep|>original/start.js
/**
* Listens for the app launching then creates the window
*
*/
chrome.app.runtime.onLaunched.addListener(function() {
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var width = screenWidth;
var height = screenHeight;
chrome.app.window.... | /**
* Listens for the app launching then creates the window
*
*/
chrome.app.runtime.onLaunched.addListener(function() {
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var width = screenWidth;
var height = screenHeight;
chrome.app.window.create('index.html', {
... | <|file_sep|>original/start.js
/**
* Listens for the app launching then creates the window
*
*/
chrome.app.runtime.onLaunched.addListener(function() {
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var width = screenWidth;
var height = screenHeight;
chrome.app.window.... | fb66334d59bf7a8fe84c526afbdf5f1705aee30f | start.js | start.js | JavaScript |
<|file_sep|>original/webpack.config.js
entry: ['./docs/index.js'],
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
publicPath: 'build/',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ['babel-loader'],
}, {
... | entry: ['./docs/index.js'],
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
publicPath: 'build/',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: [/node_modules/, /modules/],
loaders: ['babel-loader'],
}, {
test: /\.jsx$/,
... | <|file_sep|>original/webpack.config.js
entry: ['./docs/index.js'],
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
publicPath: 'build/',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ['babel-loader'],
}, {
... | e7152179b88136bb89ae77beb8f029589270624f | webpack.config.js | webpack.config.js | JavaScript |
<|file_sep|>original/lib/fog/brightbox/models/compute/firewall_policy.rb
def apply_to(server_group_id)
requires :identity
options = {
:server_group => server_group_id
}
data = connection.apply_to_firewall_policy(identity, options)
merge_attributes(da... | def apply_to(server_group_id)
requires :identity
options = {
:server_group => server_group_id
}
data = connection.apply_to_firewall_policy(identity, options)
merge_attributes(data)
true
end
def remove(server_group_id)
... | <|file_sep|>original/lib/fog/brightbox/models/compute/firewall_policy.rb
def apply_to(server_group_id)
requires :identity
options = {
:server_group => server_group_id
}
data = connection.apply_to_firewall_policy(identity, options)
merge_attributes(da... | b7091ce648944c0088b7043bb1d5a0bdc1252c5e | lib/fog/brightbox/models/compute/firewall_policy.rb | lib/fog/brightbox/models/compute/firewall_policy.rb | Ruby |
<|file_sep|>original/app/controllers/apps_controller.rb
class AppsController < ApplicationController
before_action :authenticate_user!
before_filter :find_app, only: [:edit, :show, :setup, :wait, :update, :destroy]
def index
authorize! :index, App
@apps = current_user.apps.order(:name)
end
def new
... | class AppsController < ApplicationController
before_action :authenticate_user!
before_filter :find_app, only: [:edit, :show, :setup, :wait, :update, :destroy]
def index
authorize! :index, App
@apps = current_user.apps.order(:name)
end
def new
@app = current_user.apps.new
authorize! :new, @ap... | <|file_sep|>original/app/controllers/apps_controller.rb
class AppsController < ApplicationController
before_action :authenticate_user!
before_filter :find_app, only: [:edit, :show, :setup, :wait, :update, :destroy]
def index
authorize! :index, App
@apps = current_user.apps.order(:name)
end
def new
... | 32578b40f619b370db3835a79aa807705fb6ea03 | app/controllers/apps_controller.rb | app/controllers/apps_controller.rb | Ruby |
<|file_sep|>original/test/config.js
asmCrypto.random.skipSystemRNGWarning = true;
localStorage.minLogLevel = 50;
<|file_sep|>current/test/config.js
asmCrypto.random.skipSystemRNGWarning = true;
localStorage.minLogLevel = 50;
<|file_sep|>updated/test/config.js | asmCrypto.random.skipSystemRNGWarning = true;
localStorage.minLogLevel = 30;
localStorage.d = 1; | <|file_sep|>original/test/config.js
asmCrypto.random.skipSystemRNGWarning = true;
localStorage.minLogLevel = 50;
<|file_sep|>current/test/config.js
asmCrypto.random.skipSystemRNGWarning = true;
localStorage.minLogLevel = 50;
<|file_sep|>updated/test/config.js
asmCrypto.random.skipSystemRNGWarning = true;
localStorage.m... | 22a08e546ea857cb92b49cfa9db638d9518c3524 | test/config.js | test/config.js | JavaScript |
<|file_sep|>original/examples/HelloKirin/package.json
"kirin": {
"shared": "lib",
"platforms": {
"ios": {
"project": "platforms/ios/HelloKirin-iOS.xcodeproj",
"build": "xcodebuild clean build",
"build.debug": "xcodebuild -configuration Debug clean build",
"build.releas... | "kirin": {
"shared": "lib",
"platforms": {
"ios": {
"project": "platforms/ios/HelloKirin-iOS.xcodeproj",
"build": "xcodebuild clean build",
"build.debug": "xcodebuild -configuration Debug clean build",
"build.release": "xcodebuild -configuration Release clean build"
... | <|file_sep|>original/examples/HelloKirin/package.json
"kirin": {
"shared": "lib",
"platforms": {
"ios": {
"project": "platforms/ios/HelloKirin-iOS.xcodeproj",
"build": "xcodebuild clean build",
"build.debug": "xcodebuild -configuration Debug clean build",
"build.releas... | cf1cb2d94fb2e01efda649974d36556a848f0093 | examples/HelloKirin/package.json | examples/HelloKirin/package.json | JSON |
<|file_sep|>package.json.diff
original:
"async": "^0.9.0",
updated:
<|file_sep|>original/package.json
],
"author": "Andrew Hart <hello@andrewfhart.com>",
"license": "Apache Software License Version 2",
"bugs": {
"url": "https://github.com/andrewfhart/openassets/issues"
},
"homepage": "https://githu... | "author": "Andrew Hart <hello@andrewfhart.com>",
"license": "Apache Software License Version 2",
"bugs": {
"url": "https://github.com/andrewfhart/openassets/issues"
},
"homepage": "https://github.com/andrewfhart/openassets",
"devDependencies": {
"assert": "^1.1.2",
"chai": "^1.9.2",
"mocha":... | <|file_sep|>package.json.diff
original:
"async": "^0.9.0",
updated:
<|file_sep|>original/package.json
],
"author": "Andrew Hart <hello@andrewfhart.com>",
"license": "Apache Software License Version 2",
"bugs": {
"url": "https://github.com/andrewfhart/openassets/issues"
},
"homepage": "https://githu... | 946ec0081b68f0af6747080cbe48551e2acd2091 | package.json | package.json | JSON |
<|file_sep|>original/app/_fr_tools/search_engine.md
---
number: 3
header: "Changer votre moteur de recherche par défaut"
time: "5'"
skills: 1
spy_reduction: 3
incomfort: 1
---
Utiliser un autre moteur de recherche :
- [DuckDuckGo](https://duckduckgo.com/)
- [StartPage](https://www.startpage.com/)/[ixquick](https://www... | ---
number: 3
header: "Changer votre moteur de recherche par défaut"
time: "5'"
skills: 1
spy_reduction: 3
incomfort: 1
---
Utiliser un autre moteur de recherche :
- [DuckDuckGo](https://duckduckgo.com/)
- [StartPage](https://www.startpage.com/)/[ixquick](https://www.ixquick.com/)
- [Qwant](https://www.qwant.com/)
- [... | <|file_sep|>original/app/_fr_tools/search_engine.md
---
number: 3
header: "Changer votre moteur de recherche par défaut"
time: "5'"
skills: 1
spy_reduction: 3
incomfort: 1
---
Utiliser un autre moteur de recherche :
- [DuckDuckGo](https://duckduckgo.com/)
- [StartPage](https://www.startpage.com/)/[ixquick](https://www... | 74497551e080764351cde6fb81f0224d9b2f6c64 | app/_fr_tools/search_engine.md | app/_fr_tools/search_engine.md | Markdown |
<|file_sep|>original/README.md
# VMS
<|file_sep|>current/README.md
# VMS
<|file_sep|>updated/README.md | # VMS
[](https://styleci.io/repos/38728555) | <|file_sep|>original/README.md
# VMS
<|file_sep|>current/README.md
# VMS
<|file_sep|>updated/README.md
# VMS
[](https://styleci.io/repos/38728555) | be705a03a836b501139856cc15c92451c5878e18 | README.md | README.md | Markdown |
<|file_sep|>js/stats/variation.js.diff
original:
function Variation( name, color, participants, conversions ) {
this.name = name;
this.color = color;
this.participants = participants;
this.conversions = conversions;
this.proportion = new SampleProportion( participants, conversions );
updated:
class Variation {
co... | let SampleProportion = require( './sample-proportion' );
class Variation {
constructor( name, color, participants, conversions ) {
this.name = name;
this.color = color;
this.participants = participants;
this.conversions = conversions;
this.proportion = new SampleProportion( participants, conversions );
}
... | <|file_sep|>js/stats/variation.js.diff
original:
function Variation( name, color, participants, conversions ) {
this.name = name;
this.color = color;
this.participants = participants;
this.conversions = conversions;
this.proportion = new SampleProportion( participants, conversions );
updated:
class Variation {
co... | 1c8a38094003e3398a468877efafdb7367a36083 | js/stats/variation.js | js/stats/variation.js | JavaScript |
<|file_sep|>original/lowmagic-migrations.gemspec
Gem::Specification.new do |gem|
gem.name = "lowmagic-migrations"
gem.version = "0.0.1"
gem.authors = ["Jacob Helwig"]
gem.email = ["jacob@technosorcery.net"]
gem.description = %q{}
gem.summary = %q{}
gem.homepage = ... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |gem|
gem.name = "lowmagic-migrations"
gem.version = "0.0.1"
gem.authors = ["Jacob Helwig"]
gem.email = ["jacob@technosorcery.net"]
gem.description = %q{}
gem.summary = %q{}
gem.homepage = "http://github.com/jhel... | <|file_sep|>original/lowmagic-migrations.gemspec
Gem::Specification.new do |gem|
gem.name = "lowmagic-migrations"
gem.version = "0.0.1"
gem.authors = ["Jacob Helwig"]
gem.email = ["jacob@technosorcery.net"]
gem.description = %q{}
gem.summary = %q{}
gem.homepage = ... | a02dd6b3b9244bd3f28b364d1141baa646184d0e | lowmagic-migrations.gemspec | lowmagic-migrations.gemspec | Ruby |
<|file_sep|>original/docs/conf.py
'sphinxcontrib.napoleon',
]
intersphinx_mapping = {'http://docs.python.org/': None}
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
rst_prolog = """
**Version**: {}
""".format(release)
exclude_patterns = [
'_build',
'_includes',
'updates/... | 'sphinxcontrib.napoleon',
]
intersphinx_mapping = {'http://docs.python.org/': None}
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
rst_prolog = """
**Version**: {0}
""".format(release)
exclude_patterns = [
'_build',
'_includes',
'updates/cybox/cybox*.rst',
'updates/s... | <|file_sep|>original/docs/conf.py
'sphinxcontrib.napoleon',
]
intersphinx_mapping = {'http://docs.python.org/': None}
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
rst_prolog = """
**Version**: {}
""".format(release)
exclude_patterns = [
'_build',
'_includes',
'updates/... | 14f0b7e25a795a853b79f781632edb2b82c3b904 | docs/conf.py | docs/conf.py | Python |
<|file_sep|>original/appveyor.yml
- "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "%PYTHON%\\python.exe -m pip install --disable-pip-version-check --upgrade pip"
# Install At... | - "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "%PYTHON%\\python.exe -m pip install --disable-pip-version-check --upgrade pip"
# Install AtlassianBot requirements
- "%PYTH... | <|file_sep|>original/appveyor.yml
- "%PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "%PYTHON%\\python.exe -m pip install --disable-pip-version-check --upgrade pip"
# Install At... | 7141601caefa00c03554661c639b29ad1131c8b1 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/client/src/new/Layout.js
import React from 'react'
import Alert from 'react-s-alert';
const Layout = ({ children }) => (
<div>
{children}
<Alert stack={{ limit: 3 }} position="top-left" effect="stackslide" />
</div>
)
Layout.propTypes = {
children: React.PropTypes.element.isRequired... | import React from 'react'
import Alert from 'react-s-alert';
const Layout = ({ children }) => (
<div>
{children}
<Alert stack={{ limit: 3 }} position="top-left" timeout={5000} html effect="stackslide" />
</div>
)
Layout.propTypes = {
children: React.PropTypes.element.isRequired,
}
export default Layout | <|file_sep|>original/client/src/new/Layout.js
import React from 'react'
import Alert from 'react-s-alert';
const Layout = ({ children }) => (
<div>
{children}
<Alert stack={{ limit: 3 }} position="top-left" effect="stackslide" />
</div>
)
Layout.propTypes = {
children: React.PropTypes.element.isRequired... | 51c93537835da84d3f57aaba92e7df440efcbc49 | client/src/new/Layout.js | client/src/new/Layout.js | JavaScript |
<|file_sep|>original/templates/registration/register.html.twig
{% block title 'Register' %}
{% block body_class 'hold-transition register-page' %}
{% block body %}
<div class="register-box">
<div class="register-logo">
<a href="{{ url('home') }}"><strong>Register an account</strong></a>
</div>
{%... |
{% block title 'Register' %}
{% block body_class 'hold-transition register-page' %}
{% block body %}
<div class="register-box">
<div class="register-logo">
<a href="{{ url('home') }}"><strong>Register an account</strong></a>
</div>
{% form_theme form 'bootstrap_3_layout.html.twig' %}
<div cl... | <|file_sep|>original/templates/registration/register.html.twig
{% block title 'Register' %}
{% block body_class 'hold-transition register-page' %}
{% block body %}
<div class="register-box">
<div class="register-logo">
<a href="{{ url('home') }}"><strong>Register an account</strong></a>
</div>
{%... | 2f2f1bdb909a0278fd72ae7a248784ff5225eb32 | templates/registration/register.html.twig | templates/registration/register.html.twig | Twig |
<|file_sep|>LICENSE.md.diff
original:
The MIT License (MIT)
updated:
# The MIT License (MIT)
<|file_sep|>original/LICENSE.md
The MIT License (MIT)
Copyright (c) 2015 Kristaps Berzinch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... | # The MIT License (MIT)
Copyright (c) 2016 Kristaps Berzinch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | <|file_sep|>LICENSE.md.diff
original:
The MIT License (MIT)
updated:
# The MIT License (MIT)
<|file_sep|>original/LICENSE.md
The MIT License (MIT)
Copyright (c) 2015 Kristaps Berzinch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... | 91c8f1c7b604a90c2beccd1f175c7777eb00dc58 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>original/useragent.go
package main
import (
"net/http"
"strings"
)
var (
// Whitelist crawlers here
crawlerPatterns = [...]string{
"Googlebot",
"bingbot",
"MSNbot",
"facebookexternalhit",
"PlurkBot",
"Twitterbot",
"CloudFlare-AlwaysOnline",
}
)
func isCrawlerUserAgent(r *http.Request) ... | package main
import (
"net/http"
"strings"
)
var (
// Whitelist crawlers here
crawlerPatterns = [...]string{
"Google (+https://developers.google.com/+/web/snippet/)",
"Googlebot",
"bingbot",
"MSNbot",
"facebookexternalhit",
"PlurkBot",
"Twitterbot",
"CloudFlare-AlwaysOnline",
}
)
| <|file_sep|>original/useragent.go
package main
import (
"net/http"
"strings"
)
var (
// Whitelist crawlers here
crawlerPatterns = [...]string{
"Googlebot",
"bingbot",
"MSNbot",
"facebookexternalhit",
"PlurkBot",
"Twitterbot",
"CloudFlare-AlwaysOnline",
}
)
func isCrawlerUserAgent(r *http.Request) ... | 4c43f8c181776bc705d97d6bf3c7818d58f220e5 | useragent.go | useragent.go | Go |
<|file_sep|>packages/mm/mmsyn7s.yaml.diff
original:
hash: b8d1ce5eaf73efe073fe517148e3edeafc3844a56ac37639ae1b75586b450a49
updated:
hash: 728a0bb06412b04da44ad60f59956c77b48d178db8f57e2f46ba5aeab535e5e6
<|file_sep|>packages/mm/mmsyn7s.yaml.diff
original:
changelog: |
updated:
changelog: |+
<|file_sep|>packages/mm/mmsyn... |
## 0.1.0.0 -- 2020-01-09
* First version. Released on an unsuspecting world.
## 0.1.1.0 -- 2020-01-10
* First version revised A. Added a function show7s2 for the usage in the mmsyn7ukr package.
basic-deps:
base: ! '>=4.7 && <4.14'
mmsyn6ukr: ! '>=0.6.2 && <1'
vector: ! '>=0.11 && <0.14'
all-versions:... | <|file_sep|>packages/mm/mmsyn7s.yaml.diff
original:
hash: b8d1ce5eaf73efe073fe517148e3edeafc3844a56ac37639ae1b75586b450a49
updated:
hash: 728a0bb06412b04da44ad60f59956c77b48d178db8f57e2f46ba5aeab535e5e6
<|file_sep|>packages/mm/mmsyn7s.yaml.diff
original:
changelog: |
updated:
changelog: |+
<|file_sep|>packages/mm/mmsyn... | 0c7381e06e89e7a316c52f3b547ac7b977e88bb4 | packages/mm/mmsyn7s.yaml | packages/mm/mmsyn7s.yaml | YAML |
<|file_sep|>original/.pre-commit-config.yaml
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.16.3
hooks:
- id: pyupgrade
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
hooks:
- id: f... | repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.16.3
hooks:
- id: pyupgrade
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
- id: black
language_version:python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
hooks:
- id: flake8
additional_dependencies: ["flake8-bugb... | <|file_sep|>original/.pre-commit-config.yaml
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.16.3
hooks:
- id: pyupgrade
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
hooks:
- id: f... | 219720ac97cc118f65ff559fe6b878c18766db7f | .pre-commit-config.yaml | .pre-commit-config.yaml | YAML |
<|file_sep|>original/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs
<|file_sep|>current/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs
<|file_sep|>updated/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs | // Problem: You need to register in Unity factory method that has single type parameters (a.k.a generic) to produce some generics
// var logger = ILoggerFactory.CreateLogger<T>()
// var logger = container.Resolve<ILogger<T>>();
public static class LoggerFactoryExtensions
{
/// <summary>
/// Creates a new ILogge... | <|file_sep|>original/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs
<|file_sep|>current/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs
<|file_sep|>updated/dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs
// Problem: You need to register in Unity factory method that has single type parameters (a.k.a generic) to pr... | 0921c00ad8f9ba97b165b8acf093aded5369b9e0 | dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs | dotNet/IOC/Unity/RegisterGenericFactoryMethod.cs | C# |
<|file_sep|>original/.travis.yml
rvm:
- 1.9.3
script: bundle exec rspec --color
<|file_sep|>current/.travis.yml
rvm:
- 1.9.3
script: bundle exec rspec --color
<|file_sep|>updated/.travis.yml | rvm:
- 1.9.3
- 2.0.0
script: bundle exec rspec --color --formatter progress | <|file_sep|>original/.travis.yml
rvm:
- 1.9.3
script: bundle exec rspec --color
<|file_sep|>current/.travis.yml
rvm:
- 1.9.3
script: bundle exec rspec --color
<|file_sep|>updated/.travis.yml
rvm:
- 1.9.3
- 2.0.0
script: bundle exec rspec --color --formatter progress | 6417c5980e9107306aeb354b2de2eabf51c9f059 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/gpx.rb
require 'time'
require 'nokogiri'
require File.expand_path('gpx/version', __dir__)
require File.expand_path('gpx/gpx', __dir__)
require File.expand_path('gpx/gpx_file', __dir__)
require File.expand_path('gpx/bounds', __dir__)
require File.expand_path('gpx/track', __dir__)
require File.e... | require 'time'
require 'nokogiri'
require File.expand_path('gpx/version', __dir__)
require File.expand_path('gpx/gpx', __dir__)
require File.expand_path('gpx/gpx_file', __dir__)
require File.expand_path('gpx/bounds', __dir__)
require File.expand_path('gpx/track', __dir__)
require File.expand_path('gpx/route', __dir__)... | <|file_sep|>original/lib/gpx.rb
require 'time'
require 'nokogiri'
require File.expand_path('gpx/version', __dir__)
require File.expand_path('gpx/gpx', __dir__)
require File.expand_path('gpx/gpx_file', __dir__)
require File.expand_path('gpx/bounds', __dir__)
require File.expand_path('gpx/track', __dir__)
require File.e... | a2355e0b9aac8d0bc9f926709040a2b9cdc4eda1 | lib/gpx.rb | lib/gpx.rb | Ruby |
<|file_sep|>original/freezer_api/tests/freezer_api_tempest_plugin/clients.py
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR ... | # a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the ... | <|file_sep|>original/freezer_api/tests/freezer_api_tempest_plugin/clients.py
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR ... | 1d0cd4bcc35042bf5146339a817a953e20229f30 | freezer_api/tests/freezer_api_tempest_plugin/clients.py | freezer_api/tests/freezer_api_tempest_plugin/clients.py | Python |
<|file_sep|>original/config.yml
credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
project-id: 1
<|file_sep|>current/config.yml
credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
project-id: 1
<|file_sep|>updated/config.yml | credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
project-id: 26005 | <|file_sep|>original/config.yml
credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
project-id: 1
<|file_sep|>current/config.yml
credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
project-id: 1
<|file_sep|>updated/config.yml
credentials:
account: testou
username: W0TLPnbZJgiGPegO4gr5
... | 7c8c618abcc2aac4bb146cade4dba0f53367234a | config.yml | config.yml | YAML |
<|file_sep|>original/tests/cluster/tests/15-cluster-slots.tcl
create_cluster_with_mixedSlot 5 15
}
test "Cluster is up" {
assert_cluster_state ok
}
test "Cluster is writable" {
cluster_write_test 0
}
test "Instance #5 is a slave" {
assert {[RI 5 role] eq {slave}}
}
test "client do not break when clu... |
test "Cluster is writable" {
cluster_write_test 0
}
test "Instance #5 is a slave" {
assert {[RI 5 role] eq {slave}}
}
test "client do not break when cluster slot" {
R 0 config set client-output-buffer-limit "normal 33554432 16777216 60"
if { [catch {R 0 cluster slots}] } {
fail "output overfl... | <|file_sep|>original/tests/cluster/tests/15-cluster-slots.tcl
create_cluster_with_mixedSlot 5 15
}
test "Cluster is up" {
assert_cluster_state ok
}
test "Cluster is writable" {
cluster_write_test 0
}
test "Instance #5 is a slave" {
assert {[RI 5 role] eq {slave}}
}
test "client do not break when clu... | eb2c8b2c612f6885485eda356144a6a62863e425 | tests/cluster/tests/15-cluster-slots.tcl | tests/cluster/tests/15-cluster-slots.tcl | Tcl |
<|file_sep|>original/numpy/distutils/msvccompiler.py
import distutils.msvccompiler
from distutils.msvccompiler import *
from .system_info import platform_bits
class MSVCCompiler(distutils.msvccompiler.MSVCCompiler):
def __init__(self, verbose=0, dry_run=0, force=0):
distutils.msvccompiler.MSVCCompiler.__... |
from .system_info import platform_bits
class MSVCCompiler(distutils.msvccompiler.MSVCCompiler):
def __init__(self, verbose=0, dry_run=0, force=0):
distutils.msvccompiler.MSVCCompiler.__init__(self, verbose, dry_run, force)
def initialize(self, plat_name=None):
environ_lib = os.getenv('lib')
... | <|file_sep|>original/numpy/distutils/msvccompiler.py
import distutils.msvccompiler
from distutils.msvccompiler import *
from .system_info import platform_bits
class MSVCCompiler(distutils.msvccompiler.MSVCCompiler):
def __init__(self, verbose=0, dry_run=0, force=0):
distutils.msvccompiler.MSVCCompiler.__... | cdb1b2b2a90010f6395abc813e27977560c659ba | numpy/distutils/msvccompiler.py | numpy/distutils/msvccompiler.py | Python |
<|file_sep|>original/requirements-dev.txt
coverage==4.3.4
git+https://github.com/hayd/pep8radius.git@c8aebd0e1d272160896124e104773b97a6249c3e#egg=pep8radius
pytest==3.0.7
pytest-cov==2.4.0
Sphinx==1.5.5
tox==2.7.0
twine==1.8.1
<|file_sep|>current/requirements-dev.txt
coverage==4.3.4
git+https://github.com/hayd/pep8radi... | coverage==4.3.4
git+https://github.com/hayd/pep8radius.git@c8aebd0e1d272160896124e104773b97a6249c3e#egg=pep8radius
mock==2.0.0
pytest==3.0.7
pytest-cov==2.4.0
Sphinx==1.5.5
tox==2.7.0
twine==1.8.1 | <|file_sep|>original/requirements-dev.txt
coverage==4.3.4
git+https://github.com/hayd/pep8radius.git@c8aebd0e1d272160896124e104773b97a6249c3e#egg=pep8radius
pytest==3.0.7
pytest-cov==2.4.0
Sphinx==1.5.5
tox==2.7.0
twine==1.8.1
<|file_sep|>current/requirements-dev.txt
coverage==4.3.4
git+https://github.com/hayd/pep8radi... | e1f413c5e170efa164de7018ad0e5231e6b4082e | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/app/models/spree/issue.rb
has_many :shipped_issues
delegate :subscriptions, :to => :magazine
validates :name,
:presence => true,
:unless => "magazine_issue.present?"
def name
magazine_issue.present? ? magazine_issue.name : read_attribute(:name)
end
def sh... | end
def ship!
subscriptions.eligible_for_shipping.each{ |s| s.ship!(self) }
update_attribute(:shipped_at, Time.now)
end
def shipped?
!shipped_at.nil?
end
def magazine
# override getter method to include deleted products, as per https://github.com/radar/paranoia
Spree::Product.unsc... | <|file_sep|>original/app/models/spree/issue.rb
has_many :shipped_issues
delegate :subscriptions, :to => :magazine
validates :name,
:presence => true,
:unless => "magazine_issue.present?"
def name
magazine_issue.present? ? magazine_issue.name : read_attribute(:name)
end
def sh... | 89e311bac10b0a32cd8c4af266b6d74b64a66993 | app/models/spree/issue.rb | app/models/spree/issue.rb | Ruby |
<|file_sep|>original/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java
<|file_sep|>current/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java
<|file_sep|>updated/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java | package com.cloudera.crunch.io;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.junit.Test;
import com.clo... | <|file_sep|>original/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java
<|file_sep|>current/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java
<|file_sep|>updated/src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java
package com.cloudera.crunch.io;
import static org.ju... | bd0532084679776d80be533f5ecb6d5662d4377a | src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java | src/test/java/com/cloudera/crunch/io/CompositePathIterableTest.java | Java |
<|file_sep|>web/locales/ga-IE/messages.ftl.diff
original:
updated:
datasets = Tacair sonraí
profile = Próifíl
help = Cabhair
<|file_sep|>original/web/locales/ga-IE/messages.ftl
content-license-text = Tá an t-ábhar seo ar fáil de réir téarmaí <licenseLink>Cheadúnas Creative Commons</licenseLink>
## Home Page
## Proj... | contact = Teagmháil
cookies = Fianáin
faq = Ceisteanna Coitianta
content-license-text = Tá an t-ábhar seo ar fáil de réir téarmaí <licenseLink>Cheadúnas Creative Commons</licenseLink>
## Home Page
## ProjectStatus
status-loading = Á lódáil...
## ProfileForm
profile-form-language =
.label = Teanga
profile-form... | <|file_sep|>web/locales/ga-IE/messages.ftl.diff
original:
updated:
datasets = Tacair sonraí
profile = Próifíl
help = Cabhair
<|file_sep|>original/web/locales/ga-IE/messages.ftl
content-license-text = Tá an t-ábhar seo ar fáil de réir téarmaí <licenseLink>Cheadúnas Creative Commons</licenseLink>
## Home Page
## Proj... | f5b81e09e6e053229f696915edeafa69b7dd5a08 | web/locales/ga-IE/messages.ftl | web/locales/ga-IE/messages.ftl | FreeMarker |
<|file_sep|>original/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html
<|file_sep|>current/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html
<|file_sep|>updated/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html | <div class="block block-leaderboard-link">
<div class="block-title">Leaderboard</div>
<div class="block-content">
<a href="{{ leaderboard_url }}">See the Leaders!</a>
</div>
<div class="leaderboard-link-image">
<a href="{{ leaderboard_link }}"><img src="/soc/content/{{ app_version }}/images/v2/gci/block... | <|file_sep|>original/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html
<|file_sep|>current/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html
<|file_sep|>updated/app/soc/templates/v2/modules/gci/homepage/_leaderboard.html
<div class="block block-leaderboard-link">
<div class="block-title">Leaderb... | 3f947276a8b6b2d99b52e9165b1cd9edcdda3d2e | app/soc/templates/v2/modules/gci/homepage/_leaderboard.html | app/soc/templates/v2/modules/gci/homepage/_leaderboard.html | HTML |
<|file_sep|>original/package.json
"git",
"svn"
],
"version": "0.0.2",
"homepage": "http://github.com/cliffano/repoman",
"author": "Cliffano Subagio <blah@cliffano.com> (http://blog.cliffano.com)",
"bin": {
"repoman": "./bin/repoman"
},
"scripts": {
"test": "npm install -g bob; bob clean li... | "git",
"svn"
],
"version": "0.0.2",
"homepage": "http://github.com/cliffano/repoman",
"author": "Cliffano Subagio <blah@cliffano.com> (http://blog.cliffano.com)",
"bin": {
"repoman": "./bin/repoman"
},
"scripts": {
"test": "npm install -g bob; bob clean lint test coverage;"
},
"reposit... | <|file_sep|>original/package.json
"git",
"svn"
],
"version": "0.0.2",
"homepage": "http://github.com/cliffano/repoman",
"author": "Cliffano Subagio <blah@cliffano.com> (http://blog.cliffano.com)",
"bin": {
"repoman": "./bin/repoman"
},
"scripts": {
"test": "npm install -g bob; bob clean li... | 0fb992f02d76be9e9332cfbe22269db704d43729 | package.json | package.json | JSON |
<|file_sep|>original/static_src/sass/README.md
<|file_sep|>current/static_src/sass/README.md
<|file_sep|>updated/static_src/sass/README.md | # Main file
The main file (usually labelled `main.scss`) should be the only Sass file from the whole code base not to begin with an underscore. This file should not contain anything but `@import` and comments.
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architectur... | <|file_sep|>original/static_src/sass/README.md
<|file_sep|>current/static_src/sass/README.md
<|file_sep|>updated/static_src/sass/README.md
# Main file
The main file (usually labelled `main.scss`) should be the only Sass file from the whole code base not to begin with an underscore. This file should not contain anyth... | 81254e0dc79128723ef1e958a8d3f44c17fa5cab | static_src/sass/README.md | static_src/sass/README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.