prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs
<|file_sep|>current/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs
<|file_sep|>updated/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
namespace osu.Game.Online.Rooms
{
public class MultiplayerBeatmapTracker : D... | <|file_sep|>original/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs
<|file_sep|>current/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs
<|file_sep|>updated/osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file i... | da9c23f3478356b9183fecbe82d0d416c039a26d | osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs | osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs | C# |
<|file_sep|>original/lib/hotdog/commands/hosts.rb
module Hotdog
module Commands
class Hosts < BaseCommand
def run(args=[])
if args.empty?
result = execute("SELECT DISTINCT host_id FROM hosts_tags").to_a.reduce(:+)
else
if args.map { |host_name| glob?(host_name) }.all?
... |
module Hotdog
module Commands
class Hosts < BaseCommand
def run(args=[])
if args.empty?
result = execute("SELECT DISTINCT host_id FROM hosts_tags").to_a.reduce(:+)
else
result = args.map { |host_name|
if glob?(host_name)
execute(<<-EOS, host_nam... | <|file_sep|>original/lib/hotdog/commands/hosts.rb
module Hotdog
module Commands
class Hosts < BaseCommand
def run(args=[])
if args.empty?
result = execute("SELECT DISTINCT host_id FROM hosts_tags").to_a.reduce(:+)
else
if args.map { |host_name| glob?(host_name) }.all?
... | 33800c80c40a2ccaad4c4a7175ca3dbd37b42235 | lib/hotdog/commands/hosts.rb | lib/hotdog/commands/hosts.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
# * https://github.com/supermarin/xcpretty#usage
updated:
<|file_sep|>original/.travis.yml
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
language: objective-c
osx_image: xcode7.3
cache: cocoapods
xcode_sdk: iphonesim... | # references:
# * http://www.objc.io/issue-6/travis-ci.html
language: objective-c
osx_image: xcode7.3
xcode_sdk: iphonesimulator9.3
before_install:
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- pod repo update --silent
- pod install --project-directory=Example
script:
- xctool test -workspace ... | <|file_sep|>.travis.yml.diff
original:
# * https://github.com/supermarin/xcpretty#usage
updated:
<|file_sep|>original/.travis.yml
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
language: objective-c
osx_image: xcode7.3
cache: cocoapods
xcode_sdk: iphonesim... | f0afff237c684ef5ab091231666e28946783958b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/tests/test_rule.py
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_PriceRule_matches_when_it_meets_the_condition(self):
"""Tests if tru... |
def test_a_PriceRule_matches_when_it_meets_the_condition(self):
"""Tests if true is returned when an exchange matches a rule.
"""
rule = PriceRule("GOOG", lambda stock: stock.price > 10)
self.assertTrue(rule.matches(self.exchange))
def test_a_PriceRule_is_False_if_the_conditio... | <|file_sep|>original/tests/test_rule.py
class TestPriceRule(TestCase):
@classmethod
def setUpClass(cls):
goog = Stock("GOOG")
goog.update(datetime(2014, 2, 10), 11)
cls.exchange = {"GOOG": goog}
def test_a_PriceRule_matches_when_it_meets_the_condition(self):
"""Tests if tru... | 32be37d7b43d9cc8a85b292ab324ebab95bc1aca | tests/test_rule.py | tests/test_rule.py | Python |
<|file_sep|>original/composer.json
{
"name": "wordplate/wordplate",
"description": "A WordPress boilerplate",
"keywords": ["wordplate", "wordpress", "boilerplate"],
"license": "MIT",
"require": {
"wordplate/framework": "3.0.*",
"roots/soil": "^3.4.0"
},
"repositories": [
... | {
"name": "wordplate/wordplate",
"description": "A WordPress boilerplate",
"keywords": ["wordplate", "wordpress", "boilerplate"],
"license": "MIT",
"require": {
"wordplate/framework": "3.0.*",
"roots/soil": "^3.5.0"
},
"repositories": [
{
"type": "composer... | <|file_sep|>original/composer.json
{
"name": "wordplate/wordplate",
"description": "A WordPress boilerplate",
"keywords": ["wordplate", "wordpress", "boilerplate"],
"license": "MIT",
"require": {
"wordplate/framework": "3.0.*",
"roots/soil": "^3.4.0"
},
"repositories": [
... | 370acbab663401cdc201ca22fe2af7e3b362e5c7 | composer.json | composer.json | JSON |
<|file_sep|>README.md.diff
original:
$ brew install gifsicle imagemagick
updated:
$ brew install gifsicle imagemagick ffmpeg
<|file_sep|>original/README.md
gif-maker
=========
Make animated gifs from video clips
Installation
------------
$ brew install gifsicle imagemagick
Usage
-----
$ ./gif-maker... |
$ brew install gifsicle imagemagick ffmpeg
Usage
-----
$ ./gif-maker video.mp4 out.gif
Produces a 300x167, animated gif, 10fps, 10ms spaced
How it works
------------
* Use ffmpeg to produce a lot of jpegs from the video
* Convert jpegs to gifs
* Combine gifs to one animated gif
License
-------
BSD, shor... | <|file_sep|>README.md.diff
original:
$ brew install gifsicle imagemagick
updated:
$ brew install gifsicle imagemagick ffmpeg
<|file_sep|>original/README.md
gif-maker
=========
Make animated gifs from video clips
Installation
------------
$ brew install gifsicle imagemagick
Usage
-----
$ ./gif-maker... | 541c4d0030a08b01528997ba09016068d9c7cc3f | README.md | README.md | Markdown |
<|file_sep|>original/resources/views/enrollments/export.blade.php
<!DOCTYPE html>
<html>
<table>
<tr>
<th>Course</th>
<th>Student ID</th>
<th>Student Name</th>
<th>Student E-mail</th>
<th>Enrollment Date</th>
</tr>
@foreach($enrollments as $enrollment)
<tr>
... | <!DOCTYPE html>
<html>
<table>
<tr>
<th>Course ID</th>
<th>Course</th>
<th>Student ID</th>
<th>Student Name</th>
<th>Student E-mail</th>
<th>Enrollment Date</th>
</tr>
@foreach($enrollments as $enrollment)
<tr>
<td>{{ $enrollment->course->id }}</td... | <|file_sep|>original/resources/views/enrollments/export.blade.php
<!DOCTYPE html>
<html>
<table>
<tr>
<th>Course</th>
<th>Student ID</th>
<th>Student Name</th>
<th>Student E-mail</th>
<th>Enrollment Date</th>
</tr>
@foreach($enrollments as $enrollment)
<tr>
... | be53b8f2cceb3b33fbc7ee7d80eda3e4e516b706 | resources/views/enrollments/export.blade.php | resources/views/enrollments/export.blade.php | PHP |
<|file_sep|>packages/hs/hslogger-template.yaml.diff
original:
hash: 1cc4e138dde44c5123da8e3ec35fa6b6f47355768b36dcfc29fb8a9bafd25486
updated:
hash: e36a7644807b7a7d2fb971574297bbb309f07febf5897a0853ae4742f8198856
<|file_sep|>packages/hs/hslogger-template.yaml.diff
original:
updated:
- '2.0.4'
<|file_sep|>original/pack... | mtl: ! '>=1.1 && <2.3'
template-haskell: ==2.*
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
- '2.0.0'
- '2.0.1'
- '2.0.2'
- '2.0.3'
- '2.0.4'
author: Brian Lewis <brian@lorf.org>, Ian Taylor <ian@lorf.org>
latest: '2.0.4'
description-type: haddock
description: Library fo... | <|file_sep|>packages/hs/hslogger-template.yaml.diff
original:
hash: 1cc4e138dde44c5123da8e3ec35fa6b6f47355768b36dcfc29fb8a9bafd25486
updated:
hash: e36a7644807b7a7d2fb971574297bbb309f07febf5897a0853ae4742f8198856
<|file_sep|>packages/hs/hslogger-template.yaml.diff
original:
updated:
- '2.0.4'
<|file_sep|>original/pack... | d8600321941fac785aa73f984d7cb1e80d7d2e74 | packages/hs/hslogger-template.yaml | packages/hs/hslogger-template.yaml | YAML |
<|file_sep|>src/cljs/app.cljs.diff
original:
updated:
(:require-macros [cljs.core.async.macros :refer [go]])
<|file_sep|>src/cljs/app.cljs.diff
original:
updated:
[cljs.core.async :as async :refer [<! >!]]
<|file_sep|>src/cljs/app.cljs.diff
original:
(lively/start "/js/app.js" {:on-reload #(.log js/cons... | [domina.css :refer [sel]]
[domina.events :refer [listen!]]
[cljs.core.async :as async :refer [<! >!]]
[lively.core :as lively]))
;(lively/start "/js/app.js" {:on-reload #(.log js/console "Reloaded!")})
(def c (async/chan))
(defn set-result! [result]
(set-text! (by-id... | <|file_sep|>src/cljs/app.cljs.diff
original:
updated:
(:require-macros [cljs.core.async.macros :refer [go]])
<|file_sep|>src/cljs/app.cljs.diff
original:
updated:
[cljs.core.async :as async :refer [<! >!]]
<|file_sep|>src/cljs/app.cljs.diff
original:
(lively/start "/js/app.js" {:on-reload #(.log js/cons... | 392d26b893d92041df1f957e9354fd003e852e79 | src/cljs/app.cljs | src/cljs/app.cljs | Clojure |
<|file_sep|>cli.js.diff
original:
return chalk.red('✘ ' + el.title) + (el.message ? ' - ' + el.message : '');
updated:
return chalk.red('✘ ') + el.title + (el.message ? ' - ' + el.message : '');
<|file_sep|>original/cli.js
return console.log(require('./package').version);
}
envcheck(function (err, results) {
i... | return console.log(require('./package').version);
}
envcheck(function (err, results) {
if (err) {
throw err;
}
var fail = false;
console.log(chalk.underline('\nEnvironment check\n') + results.map(function (el) {
if (el.fail) {
fail = true;
return chalk.red('✘ ') + el.title + (el.message ? ' - ' + el.m... | <|file_sep|>cli.js.diff
original:
return chalk.red('✘ ' + el.title) + (el.message ? ' - ' + el.message : '');
updated:
return chalk.red('✘ ') + el.title + (el.message ? ' - ' + el.message : '');
<|file_sep|>original/cli.js
return console.log(require('./package').version);
}
envcheck(function (err, results) {
i... | 459789b073728a25705fd643ac30477bed010acd | cli.js | cli.js | JavaScript |
<|file_sep|>test/metrics-rails_test.rb.diff
original:
updated:
end
test '#increment exists' do
assert Metrics::Rails.respond_to?(:increment)
Metrics::Rails.increment :baz, 5
<|file_sep|>original/test/metrics-rails_test.rb
assert metric_names.include?('rails.bar'), 'rails.bar should be present'
... |
foo = client.fetch 'rails.foo', :count => 10
assert_equal 1, foo['unassigned'].length
assert_equal 2, foo['unassigned'][0]['value']
bar = client.fetch 'rails.bar', :count => 10
assert_equal 1, bar['unassigned'].length
assert_equal 2, bar['unassigned'][0]['value']
end
test 'count... | <|file_sep|>test/metrics-rails_test.rb.diff
original:
updated:
end
test '#increment exists' do
assert Metrics::Rails.respond_to?(:increment)
Metrics::Rails.increment :baz, 5
<|file_sep|>original/test/metrics-rails_test.rb
assert metric_names.include?('rails.bar'), 'rails.bar should be present'
... | b6068440c1848a07da20b32372cb843f4860798c | test/metrics-rails_test.rb | test/metrics-rails_test.rb | Ruby |
<|file_sep|>original/tests/core/parse/test_parse_literal.py
<|file_sep|>current/tests/core/parse/test_parse_literal.py
<|file_sep|>updated/tests/core/parse/test_parse_literal.py | import unittest
from mygrations.core.parse.rule_literal import rule_literal
class test_parse_regexp( unittest.TestCase ):
def get_rule( self, name, literal ):
return rule_literal( False, { 'name': name, 'value': literal }, {} )
def test_name_not_required( self ):
rule = self.get_rule( '', ... | <|file_sep|>original/tests/core/parse/test_parse_literal.py
<|file_sep|>current/tests/core/parse/test_parse_literal.py
<|file_sep|>updated/tests/core/parse/test_parse_literal.py
import unittest
from mygrations.core.parse.rule_literal import rule_literal
class test_parse_regexp( unittest.TestCase ):
def get_rul... | 029de4a3a10f31b2d300e100db7767722698f00a | tests/core/parse/test_parse_literal.py | tests/core/parse/test_parse_literal.py | Python |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO_VERSION=1.2.7
- DJANGO_VERSION=1.3.1
- DJANGO_VERSION=1.4
install:
- pip install -q Django==$DJANGO_VERSION
script: python run_tests.py
<|file_sep|>current/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
... | language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO_VERSION=1.2.7
- DJANGO_VERSION=1.3.3
- DJANGO_VERSION=1.4.1
install:
- pip install -q Django==$DJANGO_VERSION
script: python run_tests.py | <|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO_VERSION=1.2.7
- DJANGO_VERSION=1.3.1
- DJANGO_VERSION=1.4
install:
- pip install -q Django==$DJANGO_VERSION
script: python run_tests.py
<|file_sep|>current/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
... | 20e60df4f4098472eae6c7a76b768fa77d76bd7a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper
# Enable parameter wrapping for JSON.
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json] if respond_to?(... | # Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper
# Enable parameter wrapping for JSON.
ActiveSupport.on_load(:action_controller) do
include ActionController::ParamsWrapper
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
... | <|file_sep|>original/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper
# Enable parameter wrapping for JSON.
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json] if respond_to?(... | ec39b748b4fd6460005afd7849145c7c78876ced | config/initializers/wrap_parameters.rb | config/initializers/wrap_parameters.rb | Ruby |
<|file_sep|>original/EEEOperationCenter.podspec
Pod::Spec.new do |s|
s.name = "EEEOperationCenter"
s.version = "1.0.0.b1"
s.summary = "Say 'no' to God-classes, chop them up with the operation center"
s.homepage = "https://github.com/epologee/EEEOperationCenter"
s.license ... | Pod::Spec.new do |s|
s.name = "EEEOperationCenter"
s.version = "1.0.0"
s.summary = "Say 'no' to God-classes, chop them up with the operation center"
s.homepage = "https://github.com/epologee/EEEOperationCenter"
s.license = 'Unlicense'
s.author = { "Er... | <|file_sep|>original/EEEOperationCenter.podspec
Pod::Spec.new do |s|
s.name = "EEEOperationCenter"
s.version = "1.0.0.b1"
s.summary = "Say 'no' to God-classes, chop them up with the operation center"
s.homepage = "https://github.com/epologee/EEEOperationCenter"
s.license ... | 12e2776571df82b2da884ccd5030c8a5a7e617ac | EEEOperationCenter.podspec | EEEOperationCenter.podspec | Ruby |
<|file_sep|>original/announcements/_posts/2016-10-25-election-night-hackathon.md
<|file_sep|>current/announcements/_posts/2016-10-25-election-night-hackathon.md
<|file_sep|>updated/announcements/_posts/2016-10-25-election-night-hackathon.md | ---
author: Justin W. Flory
title: "Fall 2016 Week 8: Security-Enhanced Linux"
layout: post
---
Hey RITluggers!
This is a friendly reminder that RITlug will be meeting again today (Friday, Oct. 14, 2016) from 4pm to 6pm in the GOL/70-2620 computer lab. Today's talk covers an important feature in newer Linux distribut... | <|file_sep|>original/announcements/_posts/2016-10-25-election-night-hackathon.md
<|file_sep|>current/announcements/_posts/2016-10-25-election-night-hackathon.md
<|file_sep|>updated/announcements/_posts/2016-10-25-election-night-hackathon.md
---
author: Justin W. Flory
title: "Fall 2016 Week 8: Security-Enhanced Linux... | 7f5dcc3c4241f34336fc082dbee00621e8cb2458 | announcements/_posts/2016-10-25-election-night-hackathon.md | announcements/_posts/2016-10-25-election-night-hackathon.md | Markdown |
<|file_sep|>original/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java
<|file_sep|>current/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java
<|file_sep|>updated/c... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | <|file_sep|>original/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java
<|file_sep|>current/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java
<|file_sep|>updated/c... | ee54c4dce0d8789a8b9a12ea4ccac558b2cc3e3d | components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java | components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java | Java |
<|file_sep|>tasks/main.yml.diff
original:
- name: Create MySQL user
updated:
- name: Ensure MySQL user exists
<|file_sep|>tasks/main.yml.diff
original:
# Check for the user
updated:
<|file_sep|>tasks/main.yml.diff
original:
# If not present, create
updated:
<|file_sep|>original/tasks/main.yml
enabled=yes
... | - name: Ensure MySQL user exists
shell: >
(echo "SELECT user, host FROM mysql.user;" | mysql | grep {{ mysql_database_user }})
||
(echo "CREATE USER '{{ mysql_database_user }}'@'localhost' IDENTIFIED BY '{{ mysql_database_user_password }}';" | mysql)
- name: Generate new database script
template:
s... | <|file_sep|>tasks/main.yml.diff
original:
- name: Create MySQL user
updated:
- name: Ensure MySQL user exists
<|file_sep|>tasks/main.yml.diff
original:
# Check for the user
updated:
<|file_sep|>tasks/main.yml.diff
original:
# If not present, create
updated:
<|file_sep|>original/tasks/main.yml
enabled=yes
... | 94c64fcb9ef623478ffed79b28e5ba8e6de0a13f | tasks/main.yml | tasks/main.yml | YAML |
<|file_sep|>original/requirements_dev.txt
pip==18.1
bumpversion==0.5.3
wheel==0.32.3
watchdog==0.9.0
flake8==3.6.0
tox==3.5.3
coverage==4.5.2
pytest-aiohttp==0.3.0
Sphinx==1.8.2
cryptography==2.4.1
PyYAML==4.2b4
pytest==4.0.0
docutils==0.14
<|file_sep|>current/requirements_dev.txt
pip==18.1
bumpversion==0.5.3
wheel==0.... | pip==18.1
bumpversion==0.5.3
wheel==0.32.3
watchdog==0.9.0
flake8==3.6.0
tox==3.5.3
coverage==4.5.2
pytest-aiohttp==0.3.0
Sphinx==1.8.2
cryptography==2.4.1
PyYAML==4.2b4
pytest==4.0.0
docutils==0.15.2 | <|file_sep|>original/requirements_dev.txt
pip==18.1
bumpversion==0.5.3
wheel==0.32.3
watchdog==0.9.0
flake8==3.6.0
tox==3.5.3
coverage==4.5.2
pytest-aiohttp==0.3.0
Sphinx==1.8.2
cryptography==2.4.1
PyYAML==4.2b4
pytest==4.0.0
docutils==0.14
<|file_sep|>current/requirements_dev.txt
pip==18.1
bumpversion==0.5.3
wheel==0.... | 6f4b10ab73725fe1460b58f349c5c55f6511e17e | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/README.md
# XML Calabash DiTAA Step
This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1)
extension steps that supports
[DiTAA](http://ditaa.sourceforge.net/) diagrams. (This has nothing to do
with DITA, the Darwin Information Typing Architecture.)
This step should wo... | # XML Calabash DiTAA Step
[](https://travis-ci.org/ndw/xmlcalabash1-ditaa.svg?branch=master)
This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1)
extension steps that supports
[DiTAA](http://ditaa.sourceforge.... | <|file_sep|>original/README.md
# XML Calabash DiTAA Step
This repository contains an [XML Calabash 1.0](http://github.com/ndw/xmlcalabash1)
extension steps that supports
[DiTAA](http://ditaa.sourceforge.net/) diagrams. (This has nothing to do
with DITA, the Darwin Information Typing Architecture.)
This step should wo... | acb758bf0944683bc6123b5206fe85df9180ad2a | README.md | README.md | Markdown |
<|file_sep|>lib/closeio/resources/lead.rb.diff
original:
def list_leads(options = {}, paginate = false)
updated:
def list_leads(options = {}, paginate = false, fields = nil)
params = { query: options }
params.merge!( _fields: fields ) if fields
<|file_sep|>lib/closeio/resources/lead.rb.diff... | class Client
module Lead
def list_leads(options = {}, paginate = false, fields = nil)
params = { query: options }
params.merge!( _fields: fields ) if fields
if paginate
paginate(lead_path, params)
else
get(lead_path, params)
end
end
... | <|file_sep|>lib/closeio/resources/lead.rb.diff
original:
def list_leads(options = {}, paginate = false)
updated:
def list_leads(options = {}, paginate = false, fields = nil)
params = { query: options }
params.merge!( _fields: fields ) if fields
<|file_sep|>lib/closeio/resources/lead.rb.diff... | 98ce587f093939c9764667e9a4927bf6d98c4042 | lib/closeio/resources/lead.rb | lib/closeio/resources/lead.rb | Ruby |
<|file_sep|>gulpTasks/new-component.js.diff
original:
console.log(chalk.green('Folder "%s" created'), argv.name);
updated:
console.log('');
console.log(chalk.green('✓ Folder "%s" created'), argv.name);
<|file_sep|>gulpTasks/new-component.js.diff
original:
console.log(chal... | componentPath = path.join(partialsPath, argv.name);
fs.mkdirSync(componentPath);
console.log('');
console.log(chalk.green('✓ Folder "%s" created'), argv.name);
fs.writeFileSync(path.join(componentPath, hbsFileName), '<h1>' + argv.name +'</h1>', 'utf8');
... | <|file_sep|>gulpTasks/new-component.js.diff
original:
console.log(chalk.green('Folder "%s" created'), argv.name);
updated:
console.log('');
console.log(chalk.green('✓ Folder "%s" created'), argv.name);
<|file_sep|>gulpTasks/new-component.js.diff
original:
console.log(chal... | 7c8ca810ba47a9c218b58b1fa09cf7d7860a3520 | gulpTasks/new-component.js | gulpTasks/new-component.js | JavaScript |
<|file_sep|>src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs.diff
original:
string tmpFile = Path.Combine(directory, Path.GetRandomFileName());
updated:
string tmpDirectory = Path.Combine(directory, "arkade-writeaccess-test");
<|file_sep|>src/Arkivverket.Arkade.GUI/Util/Ark... |
string tmpDirectory = Path.Combine(directory, "arkade-writeaccess-test");
try
{
Directory.CreateDirectory(tmpDirectory);
return true;
}
catch
{
return false;
}
finally
... | <|file_sep|>src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs.diff
original:
string tmpFile = Path.Combine(directory, Path.GetRandomFileName());
updated:
string tmpDirectory = Path.Combine(directory, "arkade-writeaccess-test");
<|file_sep|>src/Arkivverket.Arkade.GUI/Util/Ark... | 9691f78cbf0d1e4fa9abaf3213592ec59302c0bd | src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs | src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs | C# |
<|file_sep|>app/controllers/restful_redirect_controller.rb.diff
original:
updated:
before_action :check_privileges
<|file_sep|>original/app/controllers/restful_redirect_controller.rb
class RestfulRedirectController < ApplicationController
def index
case params[:model]
when 'MiqRequest'
redirect_to :... | class RestfulRedirectController < ApplicationController
before_action :check_privileges
def index
case params[:model]
when 'MiqRequest'
redirect_to :controller => 'miq_request', :action => 'show', :id => params[:id]
when 'VmOrTemplate'
klass = VmOrTemplate.select(:id, :type).find(params[:id... | <|file_sep|>app/controllers/restful_redirect_controller.rb.diff
original:
updated:
before_action :check_privileges
<|file_sep|>original/app/controllers/restful_redirect_controller.rb
class RestfulRedirectController < ApplicationController
def index
case params[:model]
when 'MiqRequest'
redirect_to :... | f9eeeb47301388c04590657e63f30953378770f8 | app/controllers/restful_redirect_controller.rb | app/controllers/restful_redirect_controller.rb | Ruby |
<|file_sep|>original/src/templates/registration/login.html
{% block registration %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}" name="login">
{% csrf_token %}
{% include "partials/messages.html" %}
<h3>Login</h3>
<div class="form-group" has-er... | {% block registration %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}" name="login">
{% csrf_token %}
{% include "partials/messages.html" %}
<h3>Login</h3>
<div class="form-group" has-error>
<div class="label label-danger">{{ for... | <|file_sep|>original/src/templates/registration/login.html
{% block registration %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}" name="login">
{% csrf_token %}
{% include "partials/messages.html" %}
<h3>Login</h3>
<div class="form-group" has-er... | 75d30284e2cec467ceb28fdcbaa5812ca75383bf | src/templates/registration/login.html | src/templates/registration/login.html | HTML |
<|file_sep|>src/config.h.diff
original:
updated:
#include <inttypes.h>
<|file_sep|>original/src/config.h
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <pwd.h>
#include <sys/time.h>
#include <signal... | #include <sys/stat.h>
#include <sys/un.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <pwd.h>
#include <sys/time.h>
#include <signal.h>
#include <inttypes.h>
#endif
/* Common section */
#include <stdlib.h>
#include <sys/types.h>
#inclu... | <|file_sep|>src/config.h.diff
original:
updated:
#include <inttypes.h>
<|file_sep|>original/src/config.h
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <pwd.h>
#include <sys/time.h>
#include <signal... | 35c70ef4e01c901d577e27113b761138f0769a03 | src/config.h | src/config.h | C |
<|file_sep|>original/example/user_timeline.py
fetchCount = 0
@defer.deferredGenerator
def getSome(tw, user):
global fetchCount
fetchCount = 0
def gotEntry(msg):
global fetchCount
fetchCount += 1
assert msg.title.startswith(user + ": ")
l = len(user)
print msg.title[... | fetchCount = 0
@defer.deferredGenerator
def getSome(tw, user):
global fetchCount
fetchCount = 0
def gotEntry(msg):
global fetchCount
fetchCount += 1
assert msg.title.lower().startswith(user.lower() + ": ")
l = len(user)
print msg.title[l+2:]
page = 1
while ... | <|file_sep|>original/example/user_timeline.py
fetchCount = 0
@defer.deferredGenerator
def getSome(tw, user):
global fetchCount
fetchCount = 0
def gotEntry(msg):
global fetchCount
fetchCount += 1
assert msg.title.startswith(user + ": ")
l = len(user)
print msg.title[... | c45d872be07fd58981580372a2c32f0b1993c1e2 | example/user_timeline.py | example/user_timeline.py | Python |
<|file_sep|>tools/Android.mk.diff
original:
updated:
ifeq ($(TARGET_BUILD_APPS),)
<|file_sep|>original/tools/Android.mk
# 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.apac... | #
# Copyright (C) 2010 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/licenses/LICENSE-2.0
#
# Unless required by applicable la... | <|file_sep|>tools/Android.mk.diff
original:
updated:
ifeq ($(TARGET_BUILD_APPS),)
<|file_sep|>original/tools/Android.mk
# 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.apac... | 4da2f9caaab5ad95528eece0453ea95a1aa3a4e5 | tools/Android.mk | tools/Android.mk | Makefile |
<|file_sep|>.travis.yml.diff
original:
updated:
sudo: false
<|file_sep|>.travis.yml.diff
original:
updated:
cache: pip
<|file_sep|>.travis.yml.diff
original:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
updated:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6'
- pypy
- pypy3
<|file_sep|>original/.t... | cache: pip
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6'
- pypy
- pypy3
script: scripts/runtest.sh
deploy:
provider: pypi
user: uncovertruth
password:
secure: EbuYCrzrV4X9cJhj832zikWP9KUn6mEpf+/Ajm40amMS2jY5j9sJaLZulf3D+Ff3/I5K2fIjYrzzr+M+UxoD56eg2wfMmn3tvsngtDMhwMU5CCMWKJrcponEmCi5PYwp5lSQgmCjZlgaWS2reSzsD... | <|file_sep|>.travis.yml.diff
original:
updated:
sudo: false
<|file_sep|>.travis.yml.diff
original:
updated:
cache: pip
<|file_sep|>.travis.yml.diff
original:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
updated:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6'
- pypy
- pypy3
<|file_sep|>original/.t... | b40f35d34739e43d5006594e183d4f5fef9a69db | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Casks/pastor.rb
cask :v1 => 'pastor' do
version '1.8.2'
sha256 'ac41e7f300d722fcd9733a4f13a984d211b20f95c94db4dc07ab537fd45f8370'
url "https://mehlau.net/pastor/Pastor#{version.gsub('.','')}-signed.dmg"
name 'Pastor'
homepage 'http://mehlau.net/pastor'
license :unknown # todo: chang... | cask :v1 => 'pastor' do
version '1.8.2'
sha256 'ac41e7f300d722fcd9733a4f13a984d211b20f95c94db4dc07ab537fd45f8370'
url "https://mehlau.net/pastor/Pastor#{version.gsub('.','')}-signed.dmg"
name 'Pastor'
homepage 'https://mehlau.net/pastor/'
license :unknown # todo: change license and remove this comment; ... | <|file_sep|>original/Casks/pastor.rb
cask :v1 => 'pastor' do
version '1.8.2'
sha256 'ac41e7f300d722fcd9733a4f13a984d211b20f95c94db4dc07ab537fd45f8370'
url "https://mehlau.net/pastor/Pastor#{version.gsub('.','')}-signed.dmg"
name 'Pastor'
homepage 'http://mehlau.net/pastor'
license :unknown # todo: chang... | 076d49298aba701fdd1b4381f96792f1168aeac1 | Casks/pastor.rb | Casks/pastor.rb | Ruby |
<|file_sep|>original/runtime/ms-rest-azure/.vscode/launch.json
<|file_sep|>current/runtime/ms-rest-azure/.vscode/launch.json
<|file_sep|>updated/runtime/ms-rest-azure/.vscode/launch.json | {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha All",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999",
"--colors",
... | <|file_sep|>original/runtime/ms-rest-azure/.vscode/launch.json
<|file_sep|>current/runtime/ms-rest-azure/.vscode/launch.json
<|file_sep|>updated/runtime/ms-rest-azure/.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name"... | e50db72b80f8e943a7412f0a7c9f06f0fe38c75e | runtime/ms-rest-azure/.vscode/launch.json | runtime/ms-rest-azure/.vscode/launch.json | JSON |
<|file_sep|>tox.ini.diff
original:
envlist = py{27,34,35},pylint,docs
updated:
envlist = py{27,34,35},pylint,docs,packaging
<|file_sep|>tox.ini.diff
original:
# confirm that items checked into git are in sdist
check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
... | pip install .[test]
# run pylint
pylint --rcfile=.pylintrc resolwe_api
[testenv:docs]
basepython=python
commands=
# install documentation requirements
pip install .[docs]
# build documentation
python setup.py build_sphinx
[testenv:packaging]
commands =
# install testing requirements
pip install .[... | <|file_sep|>tox.ini.diff
original:
envlist = py{27,34,35},pylint,docs
updated:
envlist = py{27,34,35},pylint,docs,packaging
<|file_sep|>tox.ini.diff
original:
# confirm that items checked into git are in sdist
check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
... | 39bbe8d863e19ff7d0c13d5c2e4f567431c50f43 | tox.ini | tox.ini | INI |
<|file_sep|>original/src/scripts/test_graphing.ml
open Printf
let () =
let arg_length = Array.length Sys.argv in
if !Sys.interactive then
()
else if arg_length <= 1 then
print_endline "Please specify IMGT alignments directory."
else
let dir = Sys.argv.(1) in
let num_alt_to_add, fname =
i... |
open Printf
let () =
let arg_length = Array.length Sys.argv in
if !Sys.interactive then
()
else if arg_length <= 1 then
print_endline "Please specify IMGT alignments directory."
else
let dir = Sys.argv.(1) in
let num_alt_to_add, fname =
if arg_length > 2 then
let n = int_of_strin... | <|file_sep|>original/src/scripts/test_graphing.ml
open Printf
let () =
let arg_length = Array.length Sys.argv in
if !Sys.interactive then
()
else if arg_length <= 1 then
print_endline "Please specify IMGT alignments directory."
else
let dir = Sys.argv.(1) in
let num_alt_to_add, fname =
i... | 08024f09869958d2c7d769bce84ca7a8cbeeac4e | src/scripts/test_graphing.ml | src/scripts/test_graphing.ml | OCaml |
<|file_sep|>original/package.json
},
"engines": {
"node": ">=4"
},
"homepage": "https://github.com/kevinkace/posthtml-pseudo",
"keywords": [
"html",
"posthtml",
"posthtml-plugin",
"pseudo",
"css"
],
"license": "MIT",
"main": "lib",
"repository": "kevinkace/posthtml-pseudo",
"... | "mocha": "^3.0.0"
},
"engines": {
"node": ">=4"
},
"homepage": "https://github.com/kevinkace/posthtml-pseudo",
"keywords": [
"html",
"posthtml",
"posthtml-plugin",
"pseudo",
"css"
],
"license": "MIT",
"main": "lib",
"repository": "kevinkace/posthtml-pseudo",
"scripts": {
... | <|file_sep|>original/package.json
},
"engines": {
"node": ">=4"
},
"homepage": "https://github.com/kevinkace/posthtml-pseudo",
"keywords": [
"html",
"posthtml",
"posthtml-plugin",
"pseudo",
"css"
],
"license": "MIT",
"main": "lib",
"repository": "kevinkace/posthtml-pseudo",
"... | e28046d9c85b4df162e6cb42e7dbb403107b1aba | package.json | package.json | JSON |
<|file_sep|>lib/core-common/src/utils/normalize-stories.ts.diff
original:
updated:
const isDirectory = (configDir: string, entry: string) => {
try {
return fs.lstatSync(resolve(configDir, entry)).isDirectory();
} catch (err) {
return false;
}
};
<|file_sep|>original/lib/core-common/src/utils/normalize-s... |
export const normalizeStoriesEntry = (
entry: StoriesEntry,
configDir: string
): NormalizedStoriesEntry => {
let glob;
let directory;
let files;
let titlePrefix;
if (typeof entry === 'string') {
if (!entry.includes('**') && isDirectory(configDir, entry)) {
directory = entry;
titlePrefix =... | <|file_sep|>lib/core-common/src/utils/normalize-stories.ts.diff
original:
updated:
const isDirectory = (configDir: string, entry: string) => {
try {
return fs.lstatSync(resolve(configDir, entry)).isDirectory();
} catch (err) {
return false;
}
};
<|file_sep|>original/lib/core-common/src/utils/normalize-s... | a1091a424f26f58b46a03a9e263abc711509150e | lib/core-common/src/utils/normalize-stories.ts | lib/core-common/src/utils/normalize-stories.ts | TypeScript |
<|file_sep|>original/AndroidGatewayPlugin/Testdriver/Consumer.py
<|file_sep|>current/AndroidGatewayPlugin/Testdriver/Consumer.py
<|file_sep|>updated/AndroidGatewayPlugin/Testdriver/Consumer.py | import AndroidConnector
import uuid
import sys
import time
import datetime
import AmmoMessages_pb2
from twisted.internet import reactor
def onDataReceived(connector, msg):
messageType = AmmoMessages_pb2._MESSAGEWRAPPER_MESSAGETYPE.values_by_number[msg.type].name
print messageType, datetime.datetime.now(),
if ms... | <|file_sep|>original/AndroidGatewayPlugin/Testdriver/Consumer.py
<|file_sep|>current/AndroidGatewayPlugin/Testdriver/Consumer.py
<|file_sep|>updated/AndroidGatewayPlugin/Testdriver/Consumer.py
import AndroidConnector
import uuid
import sys
import time
import datetime
import AmmoMessages_pb2
from twisted.internet imp... | d6f04cb1b9383122e673a4d8d314c2fdc0191608 | AndroidGatewayPlugin/Testdriver/Consumer.py | AndroidGatewayPlugin/Testdriver/Consumer.py | Python |
<|file_sep|>packages/hl/hls-pragmas-plugin.yaml.diff
original:
hash: 8d8d6aa2183fec1568cdebc602d1b59b1ae573feecf4a557bc511ddbbed38ed1
updated:
hash: 8c09221de48bf9299978ad398a9cb8124ebbad47aca11e40404523134f417876
<|file_sep|>original/packages/hl/hls-pragmas-plugin.yaml
lsp-types: -any
maintainer: alan.zimm@gmail.com... | lsp-types: -any
maintainer: alan.zimm@gmail.com
synopsis: Pragmas plugin for Haskell Language Server
changelog: ''
basic-deps:
lsp: -any
extra: -any
base: '>=4.12 && <5'
unordered-containers: -any
text: -any
ghcide: '>=1.2 && <1.5'
lens: -any
fuzzy: -any
transformers: -any
hls-plugin-api: ^>=1.1
a... | <|file_sep|>packages/hl/hls-pragmas-plugin.yaml.diff
original:
hash: 8d8d6aa2183fec1568cdebc602d1b59b1ae573feecf4a557bc511ddbbed38ed1
updated:
hash: 8c09221de48bf9299978ad398a9cb8124ebbad47aca11e40404523134f417876
<|file_sep|>original/packages/hl/hls-pragmas-plugin.yaml
lsp-types: -any
maintainer: alan.zimm@gmail.com... | 7a6903fe7d5f7312d740e904ed41be7d0fd907c5 | packages/hl/hls-pragmas-plugin.yaml | packages/hl/hls-pragmas-plugin.yaml | YAML |
<|file_sep|>original/src/Editor/DropHandler.js
export default class DropHandler extends React.Component {
handleDrop = (files) => {
this.props.importSequenceFromFile(files[0]);
};
render() {
const { children, style, className, disabled } = this.props;
return (
<Dropzone
disabled={disabl... |
export default class DropHandler extends React.Component {
handleDrop = (files) => {
this.props.importSequenceFromFile(files[0]);
};
render() {
const { children, style, className, disabled } = this.props;
return (
<Dropzone
disabled={disabled}
onClick={evt => evt.preventDefault(... | <|file_sep|>original/src/Editor/DropHandler.js
export default class DropHandler extends React.Component {
handleDrop = (files) => {
this.props.importSequenceFromFile(files[0]);
};
render() {
const { children, style, className, disabled } = this.props;
return (
<Dropzone
disabled={disabl... | 3ea41072ad831bf2a9efb4d861ad29c0e626d76e | src/Editor/DropHandler.js | src/Editor/DropHandler.js | JavaScript |
<|file_sep|>csv-validator-core/build.sbt.diff
original:
updated:
import AssemblyKeys._
<|file_sep|>original/csv-validator-core/build.sbt
parallelExecution in Test := true
publishTo := Some("Artifactory Realm" at "http://wb-d-tfs2.web.local:8081/artifactory/libs-release-local")
credentials += Credentials(Path.userHo... | parallelExecution in Test := true
publishTo := Some("Artifactory Realm" at "http://wb-d-tfs2.web.local:8081/artifactory/libs-release-local")
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishMavenStyle := true
resolvers += "artifactory-external-releases" at "http://wb-d-tfs2.web.local:8081... | <|file_sep|>csv-validator-core/build.sbt.diff
original:
updated:
import AssemblyKeys._
<|file_sep|>original/csv-validator-core/build.sbt
parallelExecution in Test := true
publishTo := Some("Artifactory Realm" at "http://wb-d-tfs2.web.local:8081/artifactory/libs-release-local")
credentials += Credentials(Path.userHo... | 87960bdaf8b3d06683d62cb0b5162a4ef0c080e7 | csv-validator-core/build.sbt | csv-validator-core/build.sbt | Scala |
<|file_sep|>original/utils/utils.go
package utils
import "math"
func IsPrime(num int) bool {
floatNum := float64(num)
for i := 2; i <= int(math.Floor(math.Sqrt(floatNum))); i++ {
if num%i == 0 {
return false
}
}
return true
}
<|file_sep|>current/utils/utils.go
package utils
import "math"
func IsPrime(num... |
func IsPrime(num int) bool {
floatNum := float64(num)
for i := 2; i <= int(math.Floor(math.Sqrt(floatNum))); i++ {
if num%i == 0 {
return false
}
}
return true
}
func Gcd(a, b int) int {
var min, max int
if a < b {
min, max = a, b
} else {
min, max = b, a
}
for min != 0 {
max, min = min, max%min... | <|file_sep|>original/utils/utils.go
package utils
import "math"
func IsPrime(num int) bool {
floatNum := float64(num)
for i := 2; i <= int(math.Floor(math.Sqrt(floatNum))); i++ {
if num%i == 0 {
return false
}
}
return true
}
<|file_sep|>current/utils/utils.go
package utils
import "math"
func IsPrime(num... | fbe3145728ced5e18f3c139446c1208fd805670a | utils/utils.go | utils/utils.go | Go |
<|file_sep|>original/Tools/SwapWithStagingSlots_az_upgraded.ps1
<|file_sep|>current/Tools/SwapWithStagingSlots_az_upgraded.ps1
<|file_sep|>updated/Tools/SwapWithStagingSlots_az_upgraded.ps1 | # make sure the script stops if one of the swaps failed
$ErrorActionPreference = "Stop"
Select-AzSubscription -Subscription "Websites migration"
$ParametersObject = @{
targetSlot = "staging"
}
Write-Host swapping bay site ....
Invoke-AzResourceAction -ResourceGroupName explorer-bay -ResourceType Microsoft.Web/sites... | <|file_sep|>original/Tools/SwapWithStagingSlots_az_upgraded.ps1
<|file_sep|>current/Tools/SwapWithStagingSlots_az_upgraded.ps1
<|file_sep|>updated/Tools/SwapWithStagingSlots_az_upgraded.ps1
# make sure the script stops if one of the swaps failed
$ErrorActionPreference = "Stop"
Select-AzSubscription -Subscription "We... | 40e3dbefaa8436077479e4c0d0e4c00173e94d6a | Tools/SwapWithStagingSlots_az_upgraded.ps1 | Tools/SwapWithStagingSlots_az_upgraded.ps1 | PowerShell |
<|file_sep|>original/spec/password_crypt_spec.rb
require './src/password_crypt.rb'
describe PasswordCrypt do
it 'should use default key file if none given' do
pc = PasswordCrypt.new
pc.keyfile.should == PasswordCrypt::DEFAULT_KEY_FILE
end
it 'should not be case sensitive unless said so' do
pc ... | describe PasswordCrypt do
it 'should use default key file if none given' do
pc = PasswordCrypt.new
pc.keyfile.should == PasswordCrypt::DEFAULT_KEY_FILE
end
it 'should not be case sensitive unless said so' do
pc = PasswordCrypt.new
pc.case_sensitive.should be_false
end
it 'should be cas... | <|file_sep|>original/spec/password_crypt_spec.rb
require './src/password_crypt.rb'
describe PasswordCrypt do
it 'should use default key file if none given' do
pc = PasswordCrypt.new
pc.keyfile.should == PasswordCrypt::DEFAULT_KEY_FILE
end
it 'should not be case sensitive unless said so' do
pc ... | 73643a50fda660922e17b166797749271d380bed | spec/password_crypt_spec.rb | spec/password_crypt_spec.rb | Ruby |
<|file_sep|>original/src/make_new_entry.rb
<|file_sep|>current/src/make_new_entry.rb
<|file_sep|>updated/src/make_new_entry.rb | ################################################################################
#This program will connect to a world model at a user-provided address and port
#and push a sensor entry into it. For use with the gwt owl demo.
################################################################################
#Require rub... | <|file_sep|>original/src/make_new_entry.rb
<|file_sep|>current/src/make_new_entry.rb
<|file_sep|>updated/src/make_new_entry.rb
################################################################################
#This program will connect to a world model at a user-provided address and port
#and push a sensor entry into ... | 2938235f6e80e7bd6f7e5c4cd0f7d5055401ea1f | src/make_new_entry.rb | src/make_new_entry.rb | Ruby |
<|file_sep|>original/README.md
# tree-chooser
A simple Tree Chooser for Angular
## Installation
``` npm install tree-chooser --save ```
## Documentation
See [here](http://randdusing.com/tree-chooser/).
## Todo
- Reset scroll on open
- Use options object
- Allow templates for pills and list
- Improve default pill sty... | # tree-chooser
A simple Tree Chooser for Angular
## Requirements
Angular must be at least version 1.5.0
## Installation
``` npm install tree-chooser --save ```
## Documentation
See [here](http://randdusing.com/tree-chooser/).
## Todo
- Reset scroll on open
- Use options object
- Allow templates for pills and list
-... | <|file_sep|>original/README.md
# tree-chooser
A simple Tree Chooser for Angular
## Installation
``` npm install tree-chooser --save ```
## Documentation
See [here](http://randdusing.com/tree-chooser/).
## Todo
- Reset scroll on open
- Use options object
- Allow templates for pills and list
- Improve default pill sty... | 5b9571a1c8ba194168a2abd816d51daed3f40335 | README.md | README.md | Markdown |
<|file_sep|>original/android/src/main/java/com/devfd/RNGeocoder/RNGeocoderPackage.java
public class RNGeocoderPackage implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Arrays.<NativeModule>asList(
new RNGeocoderModule(react... | import com.facebook.react.bridge.JavaScriptModule;
public class RNGeocoderPackage implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Arrays.<NativeModule>asList(
new RNGeocoderModule(reactContext)
);
}
public List... | <|file_sep|>original/android/src/main/java/com/devfd/RNGeocoder/RNGeocoderPackage.java
public class RNGeocoderPackage implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Arrays.<NativeModule>asList(
new RNGeocoderModule(react... | e49cdb31605b68bdf3cfa40b0f033fa09db7006d | android/src/main/java/com/devfd/RNGeocoder/RNGeocoderPackage.java | android/src/main/java/com/devfd/RNGeocoder/RNGeocoderPackage.java | Java |
<|file_sep|>.travis/deploy_07_script_pre_deploy.sh.diff
original:
chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verge-qt
chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verged
updated:
<|file_sep|>original/.travis/deploy_07_script_pre_deploy.sh
#!/usr/bin/env bash
#
# Copyright (c) 2019 The ... | #!/usr/bin/env bash
#
# Copyright (c) 2019 The Verge Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
if [[ $SHOULD_DEPLOY = 1 ]]; then
cp $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verge-qt $TRAVIS_BUILD_DIR/ve... | <|file_sep|>.travis/deploy_07_script_pre_deploy.sh.diff
original:
chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verge-qt
chmod a+xr $TRAVIS_BUILD_DIR/build/verge-$HOST/src/qt/verged
updated:
<|file_sep|>original/.travis/deploy_07_script_pre_deploy.sh
#!/usr/bin/env bash
#
# Copyright (c) 2019 The ... | af47ace3ac910665af2fa2ca9ba9fed890b56584 | .travis/deploy_07_script_pre_deploy.sh | .travis/deploy_07_script_pre_deploy.sh | Shell |
<|file_sep|>original/CHANGELOG.md
change log
========================================
This project tries to adhere to the [semantic versioning](http://semver.org/) and [change log](http://keepachangelog.com/) guidelines.
# v0.5.0
### Fixed
- logger initialisation possible again (root logger initialisation competed w... | change log
========================================
This project tries to adhere to the [semantic versioning](http://semver.org/) and [change log](http://keepachangelog.com/) guidelines.
# v0.5.1
### Added
- minimal test specification via the [Spek](http://jetbrains.github.io/spek/) library
# v0.5.0
### Fixed
- l... | <|file_sep|>original/CHANGELOG.md
change log
========================================
This project tries to adhere to the [semantic versioning](http://semver.org/) and [change log](http://keepachangelog.com/) guidelines.
# v0.5.0
### Fixed
- logger initialisation possible again (root logger initialisation competed w... | 10ea59a4bd792bd7ce0da3344cd6c29e484b74e4 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/oh-my-zsh/custom/aliases.zsh
# Wget with no certificate
alias wget="wget --no-check-certificate"
# Untar
alias xtar="tar -xvzf"
alias ctar="tar -cvzf"
# Extract using file-roller
alias extract="file-roller -h"
# Numerical CHMOD
alias perms="stat --format '%a'"
# IRC client
alias irc="weechat"
... |
# Untar
alias xtar="tar -xvzf"
alias ctar="tar -cvzf"
# Extract using file-roller
alias extract="file-roller -h"
# Numerical CHMOD
alias perms="stat --format '%a'"
# IRC client
alias irc="weechat"
# Safety (prompts)
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
# Better `cat` code formatting
alias c="pygment... | <|file_sep|>original/oh-my-zsh/custom/aliases.zsh
# Wget with no certificate
alias wget="wget --no-check-certificate"
# Untar
alias xtar="tar -xvzf"
alias ctar="tar -cvzf"
# Extract using file-roller
alias extract="file-roller -h"
# Numerical CHMOD
alias perms="stat --format '%a'"
# IRC client
alias irc="weechat"
... | 2b3092996664dee0bf98327c516b8d954a707a58 | oh-my-zsh/custom/aliases.zsh | oh-my-zsh/custom/aliases.zsh | Shell |
<|file_sep|>original/.travis.yml
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy nose
# Coverage package... | - sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy nose
# Coverage packages are on my binstar channel
- conda install --yes -c dan_blanchard python-coveralls nose-cov
- sudo apt-get update -qq
- sudo apt-get in... | <|file_sep|>original/.travis.yml
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy nose
# Coverage package... | 0b33075e2127978c4702bb366a2e701f217baec3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/main.go
now.Month(),
now.Day(),
now.Hour()+1,
0,
0,
0,
now.Location(),
)
sleep := next.Sub(now)
fmt.Printf("%v until first tweet\n", sleep)
time.Sleep(sleep)
if c, err := wiki.NewClient(&b); err != nil {
panic(err)
} else {
c.Start(1 * time.Hour)
}
}
<|file_sep|>current... | 0,
0,
now.Location(),
)
sleep := next.Sub(now)
fmt.Printf("%v until first tweet\n", sleep)
time.Sleep(sleep)
if c, err := wiki.NewClient(&b); err != nil {
panic(err)
} else {
c.Start(1 * time.Hour)
}
if err := b.Stop(); err != nil {
panic(err)
}
} | <|file_sep|>original/main.go
now.Month(),
now.Day(),
now.Hour()+1,
0,
0,
0,
now.Location(),
)
sleep := next.Sub(now)
fmt.Printf("%v until first tweet\n", sleep)
time.Sleep(sleep)
if c, err := wiki.NewClient(&b); err != nil {
panic(err)
} else {
c.Start(1 * time.Hour)
}
}
<|file_sep|>current... | eac0ab520e2f49ac76a92c3b3e072756008a077c | main.go | main.go | Go |
<|file_sep|>project.clj.diff
original:
:plugins [[lein-environ "1.1.0"]]
updated:
<|file_sep|>original/project.clj
(defproject lacinia-tut "0.1.0"
:description "A simple Lacinia tutorial"
:license {:name "MIT License"}
:dependencies [[org.clojure/clojure "1.8.0"]
[honeysql "0.9.1"]
... | (defproject lacinia-tut "0.1.0"
:description "A simple Lacinia tutorial"
:license {:name "MIT License"}
:dependencies [[org.clojure/clojure "1.8.0"]
[honeysql "0.9.1"]
[org.clojure/java.jdbc "0.3.5"]
[org.xerial/sqlite-jdbc "3.7.2"]
[com.walmartl... | <|file_sep|>project.clj.diff
original:
:plugins [[lein-environ "1.1.0"]]
updated:
<|file_sep|>original/project.clj
(defproject lacinia-tut "0.1.0"
:description "A simple Lacinia tutorial"
:license {:name "MIT License"}
:dependencies [[org.clojure/clojure "1.8.0"]
[honeysql "0.9.1"]
... | 6f2b97eaafb86f27ed0a176a4397eacaa82ec063 | project.clj | project.clj | Clojure |
<|file_sep|>src/selection/clone.js.diff
original:
return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);
updated:
var clone = this.cloneNode(false), parent = this.parentNode;
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
<|file_sep|>original/src/selection/clone.js
fu... | function selection_cloneShallow() {
var clone = this.cloneNode(false), parent = this.parentNode;
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
}
function selection_cloneDeep() {
var clone = this.cloneNode(true), parent = this.parentNode;
return parent ? parent.insertBefore(clone, this.n... | <|file_sep|>src/selection/clone.js.diff
original:
return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);
updated:
var clone = this.cloneNode(false), parent = this.parentNode;
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
<|file_sep|>original/src/selection/clone.js
fu... | 80c8014524bd54bdc83eab90eccc8629a9f14593 | src/selection/clone.js | src/selection/clone.js | JavaScript |
<|file_sep|>original/lib/reevoocop.yml
LineLength:
Max: 120
Documentation:
Enabled: false
AndOr:
Enabled: false
# Allow use of empty lines to visually group code into 'paragraphs'
EmptyLines:
Enabled: false
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Styl... | LineLength:
Max: 120
Metrics/MethodLength:
Max: 15
Documentation:
Enabled: false
AndOr:
Enabled: false
# Allow use of empty lines to visually group code into 'paragraphs'
EmptyLines:
Enabled: false
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/Empty... | <|file_sep|>original/lib/reevoocop.yml
LineLength:
Max: 120
Documentation:
Enabled: false
AndOr:
Enabled: false
# Allow use of empty lines to visually group code into 'paragraphs'
EmptyLines:
Enabled: false
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Styl... | dbf1583ed60bd816b739f96ba5b02d6947349a7b | lib/reevoocop.yml | lib/reevoocop.yml | YAML |
<|file_sep|>original/utc_offset.sh
#!/bin/bash
#Copyright 2014 Brendan Perrine
# This is a simple bash script that shows the offset to UTC from your current time zone
echo " $(date +%H) - $(date -u +%H) "|bc
<|file_sep|>current/utc_offset.sh
#!/bin/bash
#Copyright 2014 Brendan Perrine
# This is a simple bash scr... | #!/bin/bash
#Copyright 2014 Brendan Perrine
# This is a simple bash script that shows the offset to UTC from your current time zone
#note that can't have same day on different years as are not that many time zones
if [ $(date +%j) -eq $(date -u +%j) ] ; then
echo " $(date +%H) - $(date -u +%H) "|bc
#new yea... | <|file_sep|>original/utc_offset.sh
#!/bin/bash
#Copyright 2014 Brendan Perrine
# This is a simple bash script that shows the offset to UTC from your current time zone
echo " $(date +%H) - $(date -u +%H) "|bc
<|file_sep|>current/utc_offset.sh
#!/bin/bash
#Copyright 2014 Brendan Perrine
# This is a simple bash scr... | 79c6d7e0f983753ba2d75327f136757292fefbba | utc_offset.sh | utc_offset.sh | Shell |
<|file_sep|>original/setup.py
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.2',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
... | from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.3',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.c... | <|file_sep|>original/setup.py
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.2',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
... | a0c5589060725004b6baadaa32cc0d23d157bacf | setup.py | setup.py | Python |
<|file_sep|>original/tools/browser_attach_nacl64-gdb.sh
<|file_sep|>current/tools/browser_attach_nacl64-gdb.sh
<|file_sep|>updated/tools/browser_attach_nacl64-gdb.sh | #!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Attaches GDB to x86-64 Chromium process running a NaCl module.
#
# Assumes:
# * there is only one NaCl module running on the whole s... | <|file_sep|>original/tools/browser_attach_nacl64-gdb.sh
<|file_sep|>current/tools/browser_attach_nacl64-gdb.sh
<|file_sep|>updated/tools/browser_attach_nacl64-gdb.sh
#!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can b... | 89d0be86f20168e3fbf567cf460017b6b1c5ecd0 | tools/browser_attach_nacl64-gdb.sh | tools/browser_attach_nacl64-gdb.sh | Shell |
<|file_sep|>original/requirements.txt
Babel==2.6.0
click==6.7
coverage==4.5.1
docutils==0.14
flake8==3.0.4
Flask==0.12.2
Flask-Babel==0.11.2
Flask-Caching==1.4.0
Flask-Classful==0.14.1
flup6==1.1.1
hypothesis==3.71.9
imagesize==1.1.0
ipgetter==0.7
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
mccabe==0.6.1
mock==2.0.... | Babel==2.6.0
click==6.7
coverage==4.5.1
docutils==0.14
flake8==3.0.4
Flask==0.12.2
Flask-Babel==0.11.2
Flask-Caching==1.4.0
Flask-Classful==0.14.1
flup6==1.1.1
hypothesis==3.71.10
imagesize==1.1.0
ipgetter==0.7
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
mccabe==0.6.1
mock==2.0.0
pbr==4.1.1
psutil==5.0.0
pycodestyl... | <|file_sep|>original/requirements.txt
Babel==2.6.0
click==6.7
coverage==4.5.1
docutils==0.14
flake8==3.0.4
Flask==0.12.2
Flask-Babel==0.11.2
Flask-Caching==1.4.0
Flask-Classful==0.14.1
flup6==1.1.1
hypothesis==3.71.9
imagesize==1.1.0
ipgetter==0.7
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
mccabe==0.6.1
mock==2.0.... | a907a01879506a0fdf7e76d9890bdc3896366b97 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/t1-git-blog.html
<|file_sep|>current/t1-git-blog.html
<|file_sep|>updated/t1-git-blog.html | <!DOCTYPE html>
<head>
<title>Short and Straight to the Point</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>Version Control, Git and GitHub</h1>
<h2>Short and Straight to the Point</h2>
<h4>Friday, February 27, 2015</h4>
<s... | <|file_sep|>original/t1-git-blog.html
<|file_sep|>current/t1-git-blog.html
<|file_sep|>updated/t1-git-blog.html
<!DOCTYPE html>
<head>
<title>Short and Straight to the Point</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>Version ... | 2de35ac1b8c411d545fc025d35667fe457612d4d | t1-git-blog.html | t1-git-blog.html | HTML |
<|file_sep|>original/requirements.txt
numpy>=1.8
scipy>=0.17
xarray
nose>=1.3
Shapely>=1.3
netcdf4
pyyaml
numpydoc
jinja2
<|file_sep|>current/requirements.txt
numpy>=1.8
scipy>=0.17
xarray
nose>=1.3
Shapely>=1.3
netcdf4
pyyaml
numpydoc
jinja2
<|file_sep|>updated/requirements.txt | numpy>=1.8
scipy>=0.17
matplotlib
xarray
nose>=1.3
Shapely>=1.3
netcdf4
pyyaml
numpydoc
jinja2 | <|file_sep|>original/requirements.txt
numpy>=1.8
scipy>=0.17
xarray
nose>=1.3
Shapely>=1.3
netcdf4
pyyaml
numpydoc
jinja2
<|file_sep|>current/requirements.txt
numpy>=1.8
scipy>=0.17
xarray
nose>=1.3
Shapely>=1.3
netcdf4
pyyaml
numpydoc
jinja2
<|file_sep|>updated/requirements.txt
numpy>=1.8
scipy>=0.17
matplotlib
xarray... | 7921b590fe795ec07e847f6b414ab19f9ac66442 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/plugins/resources/VARIANT_EFFECT_PREDICTOR_2.8/config.xml
~ by the license of a specific plugin. See the file LGPL3.license in this distribution
~ for a copy of the LGPL license.
~
~ When a plugin is not released under the LGPL3 license, the comments at the top of
~ the plugin's config... | ~ by the license of a specific plugin. See the file LGPL3.license in this distribution
~ for a copy of the LGPL license.
~
~ When a plugin is not released under the LGPL3 license, the comments at the top of
~ the plugin's config.xml will indicate how that specific plugin is released/licensed.
-->
<resour... | <|file_sep|>original/plugins/resources/VARIANT_EFFECT_PREDICTOR_2.8/config.xml
~ by the license of a specific plugin. See the file LGPL3.license in this distribution
~ for a copy of the LGPL license.
~
~ When a plugin is not released under the LGPL3 license, the comments at the top of
~ the plugin's config... | c463e31dbc7f653132a64e0429ddfbfc00d48a54 | plugins/resources/VARIANT_EFFECT_PREDICTOR_2.8/config.xml | plugins/resources/VARIANT_EFFECT_PREDICTOR_2.8/config.xml | XML |
<|file_sep|>original/phpcs.xml
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- scripts folder is utilized only in development, no need for cs -->
<exclude-pattern>./scripts/*</exclude-pattern>
<!-- Rules -->
<rule ref="./lib/Ebanx/vendor/magent... | <exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- scripts folder is utilized only in development, no need for cs -->
<exclude-pattern>./scripts/*</exclude-pattern>
<!-- Rules -->
<rule ref="./lib/Ebanx/vendor/magento-ecg/coding-standard/Ecg" />
... | <|file_sep|>original/phpcs.xml
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- scripts folder is utilized only in development, no need for cs -->
<exclude-pattern>./scripts/*</exclude-pattern>
<!-- Rules -->
<rule ref="./lib/Ebanx/vendor/magent... | 2782fe98386c25e747fee3e701233640b7b7da88 | phpcs.xml | phpcs.xml | XML |
<|file_sep|>test/LanguageServiceTest.php.diff
original:
updated:
$env = $this->createTestEnvironment();
<|file_sep|>original/test/LanguageServiceTest.php
/**
* Class LanguageServiceTest
* @package justso\justtexts\test
*/
class LanguageServiceTest extends ServiceTestBase
{
public function testGetLangua... | /**
* Class LanguageServiceTest
* @package justso\justtexts\test
*/
class LanguageServiceTest extends ServiceTestBase
{
public function testGetLanguages()
{
$env = $this->createTestEnvironment();
$config = array(
'environments' => array('test' => array('approot' => '/var/www')),
... | <|file_sep|>test/LanguageServiceTest.php.diff
original:
updated:
$env = $this->createTestEnvironment();
<|file_sep|>original/test/LanguageServiceTest.php
/**
* Class LanguageServiceTest
* @package justso\justtexts\test
*/
class LanguageServiceTest extends ServiceTestBase
{
public function testGetLangua... | b6748e31a5baf88a7109cf8db66a4be6cfea0761 | test/LanguageServiceTest.php | test/LanguageServiceTest.php | PHP |
<|file_sep|>original/Scripting/Script/Menu.cs
partial class Script
{
public static void CreateTrayMenu()
{
if (Environment.OSVersion.Platform != PlatformID.Win32NT)
return;
var menu = new NotifyIcon { ContextMenu = new ContextMenu() };
menu.Co... |
var menu = new NotifyIcon { ContextMenu = new ContextMenu() };
menu.ContextMenu.MenuItems.Add(new MenuItem("&Reload", delegate { Application.Restart(); }));
menu.ContextMenu.MenuItems.Add(new MenuItem("&Exit", delegate { Environment.Exit(0); }));
var favicon = Assembly.... | <|file_sep|>original/Scripting/Script/Menu.cs
partial class Script
{
public static void CreateTrayMenu()
{
if (Environment.OSVersion.Platform != PlatformID.Win32NT)
return;
var menu = new NotifyIcon { ContextMenu = new ContextMenu() };
menu.Co... | a805a8ee500a492f33b889b249a6466ae5e5c4e8 | Scripting/Script/Menu.cs | Scripting/Script/Menu.cs | C# |
<|file_sep|>original/setup.cfg
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python
Programming Language :: Python... | License :: OSI Approved :: BSD License
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language ... | <|file_sep|>original/setup.cfg
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python
Programming Language :: Python... | 8fe09de4ac046be8a8858fbfdd2bf8a77f312dfa | setup.cfg | setup.cfg | INI |
<|file_sep|>original/app/assets/stylesheets/styles/components/pages/_featured_crops.css.scss
.featured-crops-grid {
margin-top: 30px;
.featured-crop-container {
margin-bottom: 30px;
.featured-crop {
position: relative;
height: 280px;
&:hover {
.blackness {
... | .featured-crops-grid {
margin-top: 30px;
.featured-crop-container {
margin-bottom: 30px;
.featured-crop {
position: relative;
height: 280px;
.row {
margin: 0;
width: 100%;
}
&:hover {
.blackness {
opacity: 1;
... | <|file_sep|>original/app/assets/stylesheets/styles/components/pages/_featured_crops.css.scss
.featured-crops-grid {
margin-top: 30px;
.featured-crop-container {
margin-bottom: 30px;
.featured-crop {
position: relative;
height: 280px;
&:hover {
.blackness {
... | 7b9554fe07a8ebad4d43b05e6dd06a75a0d33557 | app/assets/stylesheets/styles/components/pages/_featured_crops.css.scss | app/assets/stylesheets/styles/components/pages/_featured_crops.css.scss | SCSS |
<|file_sep|>original/WebServer/Judge/CppJudge.php
namespace Judge;
class CppJudge extends Judger {
protected $filename = 'main.cpp';
/**
* 测试命令行
* @return string
*/
protected function command() {
return sprintf(
'docker run -v %s:/mnt/main.cpp:ro -i --rm --net none lim... |
namespace Judge;
class CppJudge extends Judger {
protected $filename = 'main.cpp';
/**
* 测试命令行
* @return string
*/
protected function command() {
return sprintf(
'docker run -v %s:/mnt/main.cpp:ro -i --rm --net none --security-opt seccomp=unconfined liming/cpp -t %d -m... | <|file_sep|>original/WebServer/Judge/CppJudge.php
namespace Judge;
class CppJudge extends Judger {
protected $filename = 'main.cpp';
/**
* 测试命令行
* @return string
*/
protected function command() {
return sprintf(
'docker run -v %s:/mnt/main.cpp:ro -i --rm --net none lim... | bfe23ba477c4d451c0bf8c306eb8da54d0906f65 | WebServer/Judge/CppJudge.php | WebServer/Judge/CppJudge.php | PHP |
<|file_sep|>original/spec/features/support/helpers.rb
end
def init_git_repo
cd_tmp_aruba do
system "git init ."
end
end
def config_git
cd_tmp_aruba do
system "git config user.name Ron Burgundy"
system "git config user.email scotchyscotch@example.com"
end
end
def commit(m... | end
def init_git_repo
cd_tmp_aruba do
system "git init ."
end
end
def config_git
cd_tmp_aruba do
system "git config --local user.name Ron Burgundy"
system "git config --local user.email scotchyscotch@example.com"
end
end
def commit(message)
cd_tmp_aruba do
File... | <|file_sep|>original/spec/features/support/helpers.rb
end
def init_git_repo
cd_tmp_aruba do
system "git init ."
end
end
def config_git
cd_tmp_aruba do
system "git config user.name Ron Burgundy"
system "git config user.email scotchyscotch@example.com"
end
end
def commit(m... | a35b82fa279356490640db090927caa3d106d4e3 | spec/features/support/helpers.rb | spec/features/support/helpers.rb | Ruby |
<|file_sep|>original/spec/opal/core/runtime/constants_spec.rb
module RuntimeFixtures
class A
end
class A::B
module C
end
end
end
describe "Constants access via .$$ with dots (regression for #1418)" do
it "allows to acces scopes on `Opal`" do
`Opal.Object.$$.RuntimeFixtures.$$.A.$$.B`.should == ... | module RuntimeFixtures
class A
end
class A::B
module C
end
end
end
describe "Constants access via .$$ with dots (regression for #1418)" do
it "allows to acces scopes on `Opal`" do
`Opal.Object.$$.RuntimeFixtures.$$.A.$$.B.$$.C`.should == RuntimeFixtures::A::B::C
end
end | <|file_sep|>original/spec/opal/core/runtime/constants_spec.rb
module RuntimeFixtures
class A
end
class A::B
module C
end
end
end
describe "Constants access via .$$ with dots (regression for #1418)" do
it "allows to acces scopes on `Opal`" do
`Opal.Object.$$.RuntimeFixtures.$$.A.$$.B`.should == ... | dc4a27caa0f0cf4a0649f1d5251ba247d82edc48 | spec/opal/core/runtime/constants_spec.rb | spec/opal/core/runtime/constants_spec.rb | Ruby |
<|file_sep|>original/Primes/pollard_rho.py
<|file_sep|>current/Primes/pollard_rho.py
<|file_sep|>updated/Primes/pollard_rho.py | import random
def gcd( a, b):
if(b == 0): return a;
return gcd(b, a % b);
def pollardRho(N):
if N%2==0:
return 2
x = random.randint(1, N-1)
y = x
c = random.randint(1, N-1)
g = 1
while g==1:
x = ((x*x)%N+c)%N
... | <|file_sep|>original/Primes/pollard_rho.py
<|file_sep|>current/Primes/pollard_rho.py
<|file_sep|>updated/Primes/pollard_rho.py
import random
def gcd( a, b):
if(b == 0): return a;
return gcd(b, a % b);
def pollardRho(N):
if N%2==0:
return 2
x = random.randint(1, N-1)
... | 5b23140f2b9e6f24ddf6162cb0b110640bc3b203 | Primes/pollard_rho.py | Primes/pollard_rho.py | Python |
<|file_sep|>original/_config.yml
# Site settings
title: 차현진 블로그
email:
description: > # this means to ignore newlines until "baseurl:"
저엔트로피를 지향하는 개발자
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://gumpcha.github.io" # the base hostname & protocol for your site
twitter_username: gumpcha
github_usern... | # Site settings
title: 차현진 블로그
email:
description: > # this means to ignore newlines until "baseurl:"
저엔트로피를 지향하는 개발자
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://gumpcha.github.io" # the base hostname & protocol for your site
twitter_username: gumpcha
github_username: gumpcha
# Outputting
perma... | <|file_sep|>original/_config.yml
# Site settings
title: 차현진 블로그
email:
description: > # this means to ignore newlines until "baseurl:"
저엔트로피를 지향하는 개발자
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://gumpcha.github.io" # the base hostname & protocol for your site
twitter_username: gumpcha
github_usern... | 7c892e6b0fe253a11ee68bb394299d57345b27fe | _config.yml | _config.yml | YAML |
<|file_sep|>original/README.md
# BitPeel Default Template
### Recommended build command
```
rails new --database=postgresql --skip-turbolinks --skip-test-unit -m https://raw.githubusercontent.com/bitpeel/railstemplate/master/template.rb APPNAME
```
<|file_sep|>current/README.md
# BitPeel Default Template
### Recommen... | # BitPeel Default Template
### Recommended build command
```
rails new APPNAME --database=postgresql --skip-test-unit -m https://raw.githubusercontent.com/bitpeel/railstemplate/master/template.rb
``` | <|file_sep|>original/README.md
# BitPeel Default Template
### Recommended build command
```
rails new --database=postgresql --skip-turbolinks --skip-test-unit -m https://raw.githubusercontent.com/bitpeel/railstemplate/master/template.rb APPNAME
```
<|file_sep|>current/README.md
# BitPeel Default Template
### Recommen... | bdc81df1d4a89210893f3db0c632fec23dff8502 | README.md | README.md | Markdown |
<|file_sep|>original/app/scripts/controllers/main.js
'use strict';
/**
* @ngdoc function
* @name worldOfWorkCraftApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the worldOfWorkCraftApp
*/
angular.module('worldOfWorkCraftApp')
.controller('MainCtrl', ['$scope', '$http', function ($scope, $ht... |
/**
* @ngdoc function
* @name worldOfWorkCraftApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the worldOfWorkCraftApp
*/
angular.module('worldOfWorkCraftApp')
.controller('MainCtrl', ['$scope', '$http', 'UserData', function ($scope, $http, UserData) {
$scope.UserData = UserData;
if ... | <|file_sep|>original/app/scripts/controllers/main.js
'use strict';
/**
* @ngdoc function
* @name worldOfWorkCraftApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the worldOfWorkCraftApp
*/
angular.module('worldOfWorkCraftApp')
.controller('MainCtrl', ['$scope', '$http', function ($scope, $ht... | aeef75b4f56b2db326d72bc4e35612cf5d2970b7 | app/scripts/controllers/main.js | app/scripts/controllers/main.js | JavaScript |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
install:
- "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm"
- "npm install -g grunt-cli"
- "npm install"
- "./node_modules/.bin/node-gyp install"
matrix:
allow_failures:
- node_js: "0.11"
<|file_sep|>current/... | language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
install:
- "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm"
- "npm install -g npm"
- "npm install -g grunt-cli"
- "npm install"
- "./node_modules/.bin/node-gyp install"
matrix:
allow_failures:
- node_js: "0.11" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
install:
- "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm"
- "npm install -g grunt-cli"
- "npm install"
- "./node_modules/.bin/node-gyp install"
matrix:
allow_failures:
- node_js: "0.11"
<|file_sep|>current/... | e7d678cf9230e4776598f42af16b3fc03553f5e7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/vagrant-vbguest/vagrant_compat.rb.diff
original:
}[1]
updated:
}
<|file_sep|>original/lib/vagrant-vbguest/vagrant_compat.rb
vagrant_version = Gem::Version.new(Vagrant::VERSION)
supported_version = {
"< 1.1.0" => "1_0",
"~> 1.1.0" => "1_1",
"~> 1.2.0" => "1_2",
"~> 1.3.0" => "1_3",
}
compat_vers... | vagrant_version = Gem::Version.new(Vagrant::VERSION)
supported_version = {
"< 1.1.0" => "1_0",
"~> 1.1.0" => "1_1",
"~> 1.2.0" => "1_2",
"~> 1.3.0" => "1_3",
}
compat_version = supported_version.find { |requirement, version|
Gem::Requirement.new(requirement).satisfied_by?(vagrant_version)
}
if compat_versio... | <|file_sep|>lib/vagrant-vbguest/vagrant_compat.rb.diff
original:
}[1]
updated:
}
<|file_sep|>original/lib/vagrant-vbguest/vagrant_compat.rb
vagrant_version = Gem::Version.new(Vagrant::VERSION)
supported_version = {
"< 1.1.0" => "1_0",
"~> 1.1.0" => "1_1",
"~> 1.2.0" => "1_2",
"~> 1.3.0" => "1_3",
}
compat_vers... | a0813417a8ca3223b100c1305d5105fcd9960208 | lib/vagrant-vbguest/vagrant_compat.rb | lib/vagrant-vbguest/vagrant_compat.rb | Ruby |
<|file_sep|>original/CHANGELOG.md
# Changelog
## 1.0.2 (2014-10-23)
[FIXED] Upgraded `request` to 2.45.0 to prevent DoS vulnerability caused by `qs` dependency.
## 1.0.1 (2014-08-11)
[CHANGED] Incorrect arguments to `authenticate` will raise an error
## 1.0.0 (2014-07-14)
First stable release.
<|file_sep|>current... | # Changelog
## 1.0.3 (2015-01-28)
[FIXED] Fixed trigger not accepting '=', '@', ',', '.' and ';' in channel names
## 1.0.2 (2014-10-23)
[FIXED] Upgraded `request` to 2.45.0 to prevent DoS vulnerability caused by `qs` dependency.
## 1.0.1 (2014-08-11)
[CHANGED] Incorrect arguments to `authenticate` will raise an e... | <|file_sep|>original/CHANGELOG.md
# Changelog
## 1.0.2 (2014-10-23)
[FIXED] Upgraded `request` to 2.45.0 to prevent DoS vulnerability caused by `qs` dependency.
## 1.0.1 (2014-08-11)
[CHANGED] Incorrect arguments to `authenticate` will raise an error
## 1.0.0 (2014-07-14)
First stable release.
<|file_sep|>current... | 63d55e1cca00c6a768f9e758ade640fa021bc15e | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/cli/src/main/resources/logback.xml
<|file_sep|>current/cli/src/main/resources/logback.xml
<|file_sep|>updated/cli/src/main/resources/logback.xml | <?xml version="1.0" encoding="UTF-8"?>
<!-- Logging config for server deploys, with automatic date based log rollover -->
<configuration>
<!-- Enable JMX-based changing of log levels, reloading of config, etc. -->
<jmxConfigurator />
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppe... | <|file_sep|>original/cli/src/main/resources/logback.xml
<|file_sep|>current/cli/src/main/resources/logback.xml
<|file_sep|>updated/cli/src/main/resources/logback.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Logging config for server deploys, with automatic date based log rollover -->
<configuration>
<!-- Enab... | 948e64a0be233262c1ad19b4255b1d6796df7c67 | cli/src/main/resources/logback.xml | cli/src/main/resources/logback.xml | XML |
<|file_sep|>original/.travis.yml
language: scala
scala:
- 2.11.8
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
services:
- docker
before_script:
- docker run -d -p 127.0.0.1:6119:5432 flowcommerce/delta-postgresql:latest
script:
- sbt ++$TRAVIS_SCALA_VERSION clean comp... | language: scala
scala:
- 2.11.8
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
services:
- docker
before_script:
- docker run -d -p 127.0.0.1:6119:5432 flowcommerce/dependency-postgresql:latest
script:
- sbt ++$TRAVIS_SCALA_VERSION clean compile test
# Tricks to avoid... | <|file_sep|>original/.travis.yml
language: scala
scala:
- 2.11.8
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
services:
- docker
before_script:
- docker run -d -p 127.0.0.1:6119:5432 flowcommerce/delta-postgresql:latest
script:
- sbt ++$TRAVIS_SCALA_VERSION clean comp... | 0d9f269cf9ef84d61fb949b8435c700ef33c185e | .travis.yml | .travis.yml | YAML |
<|file_sep|>spec/standalone_appserver_spec.rb.diff
original:
machine.image_size = '10G'
updated:
machine.modify_storage({ '/'.to_sym => { :size => '10G' } })
<|file_sep|>original/spec/standalone_appserver_spec.rb
end
host("e1-timcyclic-001.mgmt.space.net.local") do |host|
host.to_enc.shoul... | end
host("e1-timcyclic-001.mgmt.space.net.local") do |host|
host.to_enc.should eql({
'role::http_app'=> {
'application' => 'TIM',
'group' => 'blue',
'environment' => 'e1',
'port' => '8000',
'dependencies' => [],
'dependant_instances' => []
}... | <|file_sep|>spec/standalone_appserver_spec.rb.diff
original:
machine.image_size = '10G'
updated:
machine.modify_storage({ '/'.to_sym => { :size => '10G' } })
<|file_sep|>original/spec/standalone_appserver_spec.rb
end
host("e1-timcyclic-001.mgmt.space.net.local") do |host|
host.to_enc.shoul... | 659783c527ee0aa36c31487ecc62adb2cd6e62a4 | spec/standalone_appserver_spec.rb | spec/standalone_appserver_spec.rb | Ruby |
<|file_sep|>package.json.diff
original:
updated:
"dependencies": {
"prelude-ls": "^1.1.2"
},
<|file_sep|>original/package.json
],
"author": {
"name": "Matheus Brasil",
"email": "matheus.brasil10@gmail.com",
"url": "https://github.com/mabrasil/resistance.js"
},
"license": {
"type": "MIT"... | "name": "Matheus Brasil",
"email": "matheus.brasil10@gmail.com",
"url": "https://github.com/mabrasil/resistance.js"
},
"license": {
"type": "MIT",
"url": ""
},
"bugs": {
"url": "https://github.com/mabrasil/resistance.js/issues"
},
"homepage": "https://github.com/mabrasil/resistance.j... | <|file_sep|>package.json.diff
original:
updated:
"dependencies": {
"prelude-ls": "^1.1.2"
},
<|file_sep|>original/package.json
],
"author": {
"name": "Matheus Brasil",
"email": "matheus.brasil10@gmail.com",
"url": "https://github.com/mabrasil/resistance.js"
},
"license": {
"type": "MIT"... | 1731cf19b4b6eff5d8cf127ecc19128bd4fb87f2 | package.json | package.json | JSON |
<|file_sep|>original/metadata/com.duckduckgo.mobile.android.txt
Repo Type:git
Repo:https://github.com/duckduckgo/android.git
Build:2.1.1,52
commit=v2.1.1
srclibs=1:NetCipher@4fe34ede3f44d968e55
Build:2.1.2,53
commit=v2.1.2
submodules=yes
Build:2.1.3,54
commit=v2.1.3
submodules=yes
Auto Upda... | Build:2.1.1,52
commit=v2.1.1
srclibs=1:NetCipher@4fe34ede3f44d968e55
Build:2.1.2,53
commit=v2.1.2
submodules=yes
Build:2.1.3,54
commit=v2.1.3
submodules=yes
Build:2.1.4,55
commit=v2.1.4
submodules=yes
Auto Update Mode:None
Update Check Mode:Tags
Current Version:2.1.4
Current Version ... | <|file_sep|>original/metadata/com.duckduckgo.mobile.android.txt
Repo Type:git
Repo:https://github.com/duckduckgo/android.git
Build:2.1.1,52
commit=v2.1.1
srclibs=1:NetCipher@4fe34ede3f44d968e55
Build:2.1.2,53
commit=v2.1.2
submodules=yes
Build:2.1.3,54
commit=v2.1.3
submodules=yes
Auto Upda... | d0de21b7ab24b6200b36e692f56415503197f61a | metadata/com.duckduckgo.mobile.android.txt | metadata/com.duckduckgo.mobile.android.txt | Text |
<|file_sep|>configurations/node.js.diff
original:
updated:
"ecmaFeatures": {
"arrowFunctions": true
},
<|file_sep|>configurations/node.js.diff
original:
updated:
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"after": true, "before": true}],
<|file_se... | module.exports = {
"extends": "chiton/configurations/default",
"env": {
"node": true
},
"ecmaFeatures": {
"arrowFunctions": true
},
"rules": {
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"after": true, "before": true}],
"callback-retu... | <|file_sep|>configurations/node.js.diff
original:
updated:
"ecmaFeatures": {
"arrowFunctions": true
},
<|file_sep|>configurations/node.js.diff
original:
updated:
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, {"after": true, "before": true}],
<|file_se... | 719d1fe8fb2fc65d454df9297c20af4d29800b02 | configurations/node.js | configurations/node.js | JavaScript |
<|file_sep|>src/Homestead.yaml.diff
original:
- map: singlecringle.dev
to: /home/vagrant/Code/SingleCringle/public
- map: blog.dev
to: /home/vagrant/Code/blog/public
updated:
- map: deta.dev
to: /home/vagrant/Code/Deta/public
- map: fresh.app
to: /home/vagrant/Code/fresh/public
<... | - map: larasocial.dev
to: /home/vagrant/Code/Larasocial/public
- map: deta.dev
to: /home/vagrant/Code/Deta/public
- map: fresh.app
to: /home/vagrant/Code/fresh/public
- map: laracogs.dev
to: /home/vagrant/Code/laracogs/public
- map: galaxy.edu
to: /home/vagrant/Code/Gal... | <|file_sep|>src/Homestead.yaml.diff
original:
- map: singlecringle.dev
to: /home/vagrant/Code/SingleCringle/public
- map: blog.dev
to: /home/vagrant/Code/blog/public
updated:
- map: deta.dev
to: /home/vagrant/Code/Deta/public
- map: fresh.app
to: /home/vagrant/Code/fresh/public
<... | 5479f0eb10af1953643e29d69011ec06c5eb719a | src/Homestead.yaml | src/Homestead.yaml | YAML |
<|file_sep|>original/src/app/client/emailList/searchBar/searchBar.component.css
:host {
width: 100%;
}
.sr-input {
border: medium none;
border-radius: 4px 0 0 4px;
box-shadow: none;
color: #8a8a8a;
height: 40px;
padding: 0 10px;
border-bottom: 1px solid #b5b2b2;
}
.sr-btn {
background: none;
borde... | :host {
width: 100%;
padding-left: 10px;
}
.sr-input {
border: medium none;
border-radius: 4px 0 0 4px;
box-shadow: none;
color: #8a8a8a;
height: 40px;
padding: 0 10px;
border-bottom: 1px solid #b5b2b2;
}
.sr-btn {
background: none;
border: medium none;
border-radius: 0 4px 4px 0;
color: bla... | <|file_sep|>original/src/app/client/emailList/searchBar/searchBar.component.css
:host {
width: 100%;
}
.sr-input {
border: medium none;
border-radius: 4px 0 0 4px;
box-shadow: none;
color: #8a8a8a;
height: 40px;
padding: 0 10px;
border-bottom: 1px solid #b5b2b2;
}
.sr-btn {
background: none;
borde... | d0e33595b87be0aa9fb9b4ec0a6a3400a5e62741 | src/app/client/emailList/searchBar/searchBar.component.css | src/app/client/emailList/searchBar/searchBar.component.css | CSS |
<|file_sep|>tests/grafana_dashboards/test_config.py.diff
original:
def test_dict():
updated:
def test_existent_config_file():
<|file_sep|>original/tests/grafana_dashboards/test_config.py
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed ... | import os
from grafana_dashboards.config import Config
__author__ = 'Jakub Plichta <jakub.plichta@gmail.com>'
def test_existent_config_file():
config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.yaml')
config = Config(config_file)
assert config.get_config('context') == {'comp... | <|file_sep|>tests/grafana_dashboards/test_config.py.diff
original:
def test_dict():
updated:
def test_existent_config_file():
<|file_sep|>original/tests/grafana_dashboards/test_config.py
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed ... | 350e8bdcb9c6f3eace7839e5dc7270bfeb51e50f | tests/grafana_dashboards/test_config.py | tests/grafana_dashboards/test_config.py | Python |
<|file_sep|>original/vcloud/box/skyscape/govuk_offsitebackups.yaml
<|file_sep|>current/vcloud/box/skyscape/govuk_offsitebackups.yaml
<|file_sep|>updated/vcloud/box/skyscape/govuk_offsitebackups.yaml | ---
vapps:
- name: 'offsite-backup-1'
vdc_name: 'GOV.UK Off-site Backups (IL2-PROD-STANDARD)'
catalog_name: 'Packer'
vapp_template_name: 'ubuntu_trusty64_20150707'
vm:
hardware_config:
memory: '2048'
cpu: '2'
network_connections:
- name: Default
ip_address: '192.168.152.10'
ext... | <|file_sep|>original/vcloud/box/skyscape/govuk_offsitebackups.yaml
<|file_sep|>current/vcloud/box/skyscape/govuk_offsitebackups.yaml
<|file_sep|>updated/vcloud/box/skyscape/govuk_offsitebackups.yaml
---
vapps:
- name: 'offsite-backup-1'
vdc_name: 'GOV.UK Off-site Backups (IL2-PROD-STANDARD)'
catalog_name: 'Packer... | c92ab4ae5171166ded02a62c7af998964e5010c0 | vcloud/box/skyscape/govuk_offsitebackups.yaml | vcloud/box/skyscape/govuk_offsitebackups.yaml | YAML |
<|file_sep|>original/README.md
# jak_oni_to_robia_prezentacja
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
<|file_sep|>current/README.md
# jak_oni_to_robia_prezentacja
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
<|file_sep|>updated/README.md | # jak_oni_to_robia_prezentacja
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
How to [install apktool](http://ibotpeaches.github.io/Apktool/install/) | <|file_sep|>original/README.md
# jak_oni_to_robia_prezentacja
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
<|file_sep|>current/README.md
# jak_oni_to_robia_prezentacja
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
<|file_sep|>updated/README.md
# jak_oni_to_robia_prezentacja
... | 9aba2facd6e0003b8b33d95f0889d49588089169 | README.md | README.md | Markdown |
<|file_sep|>original/lib/events.js
if (listener.element) {
listener.selector = "[data-element='" + listener.element + "']";
delete listener.element;
}
var elms = dom.querySelectorAll(listener.selector || listener.sel);
if (elms) {
Array.from(elms).forEach(function (elm) {
... | delete listener.element;
}
var elms = dom.querySelectorAll(listener.selector || listener.sel);
if (elms) {
Array.from(elms).forEach(function (elm) {
elm.addEventListener(listener.on, function (domEvent) {
// dont prevent default browser actions
... | <|file_sep|>original/lib/events.js
if (listener.element) {
listener.selector = "[data-element='" + listener.element + "']";
delete listener.element;
}
var elms = dom.querySelectorAll(listener.selector || listener.sel);
if (elms) {
Array.from(elms).forEach(function (elm) {
... | b5169369bea5ccdde34b214641f0c8eec09f64dd | lib/events.js | lib/events.js | JavaScript |
<|file_sep|>original/app/consumers/trace_consumer.rb
consume '#'
if ENV['QUEUE_IDENT'].present?
queue_name "mnemosyne.server.#{ENV['QUEUE_IDENT'].strip}"
else
queue_name 'mnemosyne.server'
end
def process(message)
return if message.body.fetch(:platform, 'default') == 'default'
try = 0
... |
consume '#'
if ENV['QUEUE_IDENT'].present?
queue_name "mnemosyne.server.#{ENV['QUEUE_IDENT'].strip}"
else
queue_name 'mnemosyne.server'
end
def process(message)
try = 0
begin
::Mnemosyne::Builder.create!(message.body)
rescue ActiveRecord::RecordNotUnique
retry if (try += 1) ... | <|file_sep|>original/app/consumers/trace_consumer.rb
consume '#'
if ENV['QUEUE_IDENT'].present?
queue_name "mnemosyne.server.#{ENV['QUEUE_IDENT'].strip}"
else
queue_name 'mnemosyne.server'
end
def process(message)
return if message.body.fetch(:platform, 'default') == 'default'
try = 0
... | fccb13e6b515ac288173ef65d6a863943a349e84 | app/consumers/trace_consumer.rb | app/consumers/trace_consumer.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
- "4.4"
- "6.3"
updated:
- "4"
- "6"
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "4.4"
- "6.3"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -... | sudo: false
language: node_js
node_js:
- "4"
- "6"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -g bob coveralls --loglevel error
script:
- DEBUG=canihaz bob build
after_success:
- cat .bob/coverage/buster-istanbul... | <|file_sep|>.travis.yml.diff
original:
- "4.4"
- "6.3"
updated:
- "4"
- "6"
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- "4.4"
- "6.3"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -... | 876d238edf82937a5c70827e784459113741f888 | .travis.yml | .travis.yml | YAML |
<|file_sep|>junit/generator/javatests/com/google/j2cl/junit/integration/stacktrace/data/ExceptionWithCauseStacktraceTest.stacktrace_j2cl.txt.diff
original:
__OPTIONAL__ # TODO(b/63645442): add caused-by chain when reported by js unit tests.
updated:
<|file_sep|>original/junit/generator/javatests/com/google/j2cl/juni... | java.lang.RuntimeException: __the_message__!
at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.test(ExceptionWithCauseStacktraceTest.java:29)
__OPTIONAL__
# TODO(cl/161369341): add support for cause message in stacktrace deobufscator
at [INVALID 'Caused by: Error: java.lang.Runti... | <|file_sep|>junit/generator/javatests/com/google/j2cl/junit/integration/stacktrace/data/ExceptionWithCauseStacktraceTest.stacktrace_j2cl.txt.diff
original:
__OPTIONAL__ # TODO(b/63645442): add caused-by chain when reported by js unit tests.
updated:
<|file_sep|>original/junit/generator/javatests/com/google/j2cl/juni... | 2c33e129b43d1e81ec624a27da79432fecb3a29c | junit/generator/javatests/com/google/j2cl/junit/integration/stacktrace/data/ExceptionWithCauseStacktraceTest.stacktrace_j2cl.txt | junit/generator/javatests/com/google/j2cl/junit/integration/stacktrace/data/ExceptionWithCauseStacktraceTest.stacktrace_j2cl.txt | Text |
<|file_sep|>original/spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
require 'webmock/rspec'
require 'codeclimate-test-reporter'
require 'pry'
WebMock.disable_net_connect!(allow: 'codeclimate.com')
CodeClimate::TestReporter.start
SimpleCov.start do
add_filter '/s... | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
require 'webmock/rspec'
require 'codeclimate-test-reporter'
require 'pry'
WebMock.disable_net_connect!(allow: 'codeclimate.com')
CodeClimate::TestReporter.start if RUBY_ENGINE == 'ruby'
SimpleCov.start do
add_filter '/spec'
formatter... | <|file_sep|>original/spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
require 'webmock/rspec'
require 'codeclimate-test-reporter'
require 'pry'
WebMock.disable_net_connect!(allow: 'codeclimate.com')
CodeClimate::TestReporter.start
SimpleCov.start do
add_filter '/s... | 8be26834b9ab435d3ef1bd5b8d2c29eaf23ffe01 | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>lib/usps/test.rb.diff
original:
#
if(USPS.config.username.nil?)
updated:
if(ENV['USPS_USER'].nil?)
<|file_sep|>original/lib/usps/test.rb
# Running this test suite should fullfil all requirements for access to the production
# system for the APIs supported by the library.
class Test < Test:... | class Test < Test::Unit::TestCase
require 'usps/test/zip_code_lookup'
require 'usps/test/address_verification'
require 'usps/test/city_and_state_lookup'
require 'usps/test/tracking_lookup'
if(ENV['USPS_USER'].nil?)
raise 'USPS_USER must be set in the environment to run these tests'
end
... | <|file_sep|>lib/usps/test.rb.diff
original:
#
if(USPS.config.username.nil?)
updated:
if(ENV['USPS_USER'].nil?)
<|file_sep|>original/lib/usps/test.rb
# Running this test suite should fullfil all requirements for access to the production
# system for the APIs supported by the library.
class Test < Test:... | 3ed21ceecba25a5265a407a8643f050d00df69f5 | lib/usps/test.rb | lib/usps/test.rb | Ruby |
<|file_sep|>original/frappe/utils/pdf.py
def get_pdf(html, options=None):
if not options:
options = {}
options.update({
"print-media-type": None,
"background": None,
"images": None,
'margin-top': '15mm',
'margin-right': '15mm',
'margin-bottom': '15mm',
'margin-left': '15mm',
'encoding': "UTF-8",
... |
def get_pdf(html, options=None):
if not options:
options = {}
options.update({
"print-media-type": None,
"background": None,
"images": None,
# 'margin-top': '10mm',
# 'margin-right': '1mm',
# 'margin-bottom': '10mm',
# 'margin-left': '1mm',
'encoding': "UTF-8",
'no-outline': None
})
if not op... | <|file_sep|>original/frappe/utils/pdf.py
def get_pdf(html, options=None):
if not options:
options = {}
options.update({
"print-media-type": None,
"background": None,
"images": None,
'margin-top': '15mm',
'margin-right': '15mm',
'margin-bottom': '15mm',
'margin-left': '15mm',
'encoding': "UTF-8",
... | 033b17a8be5be32188ca9b5f286fe023fc07d34a | frappe/utils/pdf.py | frappe/utils/pdf.py | Python |
<|file_sep|>ajah-rest-api/src/main/java/com/ajah/rest/api/model/relay/user/UserNameRelay.java.diff
original:
* @author <a href="http://efsavage.com">Eric F. Savage</a>, <a
* href="mailto:code@efsavage.com">code@efsavage.com</a>.
updated:
* @author <a href="http://efsavage.com">Eric F. Savage</a>,
* ... | * @author <a href="http://efsavage.com">Eric F. Savage</a>,
* <a href="mailto:code@efsavage.com">code@efsavage.com</a>.
*/
@JsonInclude(Include.NON_NULL)
public class UserNameRelay {
public String first;
public String middle;
public String last;
public String suffix;
public String display;
@Deprecated... | <|file_sep|>ajah-rest-api/src/main/java/com/ajah/rest/api/model/relay/user/UserNameRelay.java.diff
original:
* @author <a href="http://efsavage.com">Eric F. Savage</a>, <a
* href="mailto:code@efsavage.com">code@efsavage.com</a>.
updated:
* @author <a href="http://efsavage.com">Eric F. Savage</a>,
* ... | 2602c576bc80c0b23c6968bfa33d0d6783c31d39 | ajah-rest-api/src/main/java/com/ajah/rest/api/model/relay/user/UserNameRelay.java | ajah-rest-api/src/main/java/com/ajah/rest/api/model/relay/user/UserNameRelay.java | Java |
<|file_sep|>.travis.yml.diff
original:
before_script:
- composer install --dev
updated:
matrix:
fast_finish: true
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- composer install --dev
script: phpunit -c phpunit.xml.dist
notifications:
... | php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
- composer self-update && composer install --no-interaction
script:
- phpunit
notifications:
email:
- info@endroid.nl | <|file_sep|>.travis.yml.diff
original:
before_script:
- composer install --dev
updated:
matrix:
fast_finish: true
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- composer install --dev
script: phpunit -c phpunit.xml.dist
notifications:
... | e8e213bcc3db1fe7383669cb6042f3c891772f58 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/bgg_graphql_proxy/main.clj
(ns bgg-graphql-proxy.main
(:require
[io.pedestal.http :as http]
[bgg-graphql-proxy.schema :refer [bgg-schema]]
[bgg-graphql-proxy.server :refer [pedestal-server]]))
(defn stop-server
[server]
(http/stop server)
nil)
(defn start-server
"Creates... | (ns bgg-graphql-proxy.main
(:require
[io.pedestal.http :as http]
[com.walmartlabs.graphql :refer [execute]]
[bgg-graphql-proxy.schema :refer [bgg-schema]]
[bgg-graphql-proxy.server :refer [pedestal-server]]))
(defn stop-server
[server]
(http/stop server)
nil)
(defn start-server
"Creates and ... | <|file_sep|>original/src/bgg_graphql_proxy/main.clj
(ns bgg-graphql-proxy.main
(:require
[io.pedestal.http :as http]
[bgg-graphql-proxy.schema :refer [bgg-schema]]
[bgg-graphql-proxy.server :refer [pedestal-server]]))
(defn stop-server
[server]
(http/stop server)
nil)
(defn start-server
"Creates... | 145c2c6746d4ca13e826a8ac65848bc37c70e414 | src/bgg_graphql_proxy/main.clj | src/bgg_graphql_proxy/main.clj | Clojure |
<|file_sep|>original/gpu/src/GrGLUtil.cpp
void GrGLClearErr(const GrGLInterface* gl) {
while (GR_GL_NO_ERROR != gl->fGetError()) {}
}
void GrGLCheckErr(const GrGLInterface* gl,
const char* location,
const char* call) {
uint32_t err = GR_GL_GET_ERROR(gl);
if (GR_GL_NO_ER... |
void GrGLClearErr(const GrGLInterface* gl) {
while (GR_GL_NO_ERROR != gl->fGetError()) {}
}
void GrGLCheckErr(const GrGLInterface* gl,
const char* location,
const char* call) {
uint32_t err = GR_GL_GET_ERROR(gl);
if (GR_GL_NO_ERROR != err) {
GrPrintf("---- glGet... | <|file_sep|>original/gpu/src/GrGLUtil.cpp
void GrGLClearErr(const GrGLInterface* gl) {
while (GR_GL_NO_ERROR != gl->fGetError()) {}
}
void GrGLCheckErr(const GrGLInterface* gl,
const char* location,
const char* call) {
uint32_t err = GR_GL_GET_ERROR(gl);
if (GR_GL_NO_ER... | d990a8c88bb583dccf4a084f6268807ac37008a6 | gpu/src/GrGLUtil.cpp | gpu/src/GrGLUtil.cpp | C++ |
<|file_sep|>original/config/i18n-tasks.yml
- config/locales/**/*.%{locale}.yml
# Locale files to write new keys to, based on a list of key pattern => file
# rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules
write:
- ['*_sidebar.*', 'config/... | - config/locales/**/*.%{locale}.yml
# Locale files to write new keys to, based on a list of key pattern => file
# rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules
write:
- ['*_sidebar.*', 'config/locales/sidebars.%{locale}.yml']
- conf... | <|file_sep|>original/config/i18n-tasks.yml
- config/locales/**/*.%{locale}.yml
# Locale files to write new keys to, based on a list of key pattern => file
# rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules
write:
- ['*_sidebar.*', 'config/... | 28948c581227148530365f6aac589f323f63834c | config/i18n-tasks.yml | config/i18n-tasks.yml | YAML |
<|file_sep|>original/wagtail_embed_videos/migrations/0002_collections.py
# Generated by Django 2.0.1 on 2018-01-28 01:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.models
class Migration(migrations.Migration):
dependencies = [
... | # Generated by Django 2.0.1 on 2018-01-28 01:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from wagtail.wagtailcore.models import Collection
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
... | <|file_sep|>original/wagtail_embed_videos/migrations/0002_collections.py
# Generated by Django 2.0.1 on 2018-01-28 01:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.models
class Migration(migrations.Migration):
dependencies = [
... | ac3819cc978c83db10d4bdd151cc2db4d3c28eaf | wagtail_embed_videos/migrations/0002_collections.py | wagtail_embed_videos/migrations/0002_collections.py | Python |
<|file_sep|>features/view_key_results.feature.diff
original:
@view_key_results
updated:
@view_key_results @wip
<|file_sep|>original/features/view_key_results.feature
@view_key_results
Feature: View Key Results
In Trello, a single checklist item (checkItem) in a specific checklist
represents each Key Result belonging t... | checkitems to be the Key Result and append each checkitem with "[0.0]" to
represent the starting score "0.0". As progress is made against each Key Result,
individuals update the score appended to each checkitem. The maximum score for
each Key Result is "1.0".
As a member of a team tracking quarterly OKRs on a Trello b... | <|file_sep|>features/view_key_results.feature.diff
original:
@view_key_results
updated:
@view_key_results @wip
<|file_sep|>original/features/view_key_results.feature
@view_key_results
Feature: View Key Results
In Trello, a single checklist item (checkItem) in a specific checklist
represents each Key Result belonging t... | 4ed47ed88c456a0467d5ba298d3b6fe571b8ac5c | features/view_key_results.feature | features/view_key_results.feature | Cucumber |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.