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/docs/datastores.md
Datastores
==========
Datastores are abstractions over the databases that datastored uses.
- `HashStore`
- `IndexStore`
- `RedisCollectionStore`
## `HashStore`
`HashStores` save hashes (objects) to the database and can also fetch them.
## `IndexStore`
`IndexStores` set keys... | Datastores
==========
Datastores are abstractions over the databases that datastored uses.
- `HashStore`
- `IndexStore`
- `RedisCollectionStore`
## `HashStore`
`HashStores` save hashes (objects) to the database and can also fetch them.
## `IndexStore`
`IndexStores` set keys to values and can also unset them.
## ... | <|file_sep|>original/docs/datastores.md
Datastores
==========
Datastores are abstractions over the databases that datastored uses.
- `HashStore`
- `IndexStore`
- `RedisCollectionStore`
## `HashStore`
`HashStores` save hashes (objects) to the database and can also fetch them.
## `IndexStore`
`IndexStores` set keys... | 94328d0dc4b5896b4db2bd4c4e8a41a61db6336a | docs/datastores.md | docs/datastores.md | Markdown |
<|file_sep|>original/tests/Fake/Put.php
<|file_sep|>current/tests/Fake/Put.php
<|file_sep|>updated/tests/Fake/Put.php | <?php
namespace Mimic\Test\Fake;
class Put {
public $one;
public $two;
protected $_internal = array();
public function __get($name) {
return $this->_internal[$name];
}
public function __set($name, $value) {
$this->_internal[$name] = $value;
}
} | <|file_sep|>original/tests/Fake/Put.php
<|file_sep|>current/tests/Fake/Put.php
<|file_sep|>updated/tests/Fake/Put.php
<?php
namespace Mimic\Test\Fake;
class Put {
public $one;
public $two;
protected $_internal = array();
public function __get($name) {
return $this->_internal[$name];
}
public function __s... | 12e48881718432bfb6047506c33afa46dd5c51be | tests/Fake/Put.php | tests/Fake/Put.php | PHP |
<|file_sep|>package.json.diff
original:
"devDependencies": {
updated:
"dependencies": {
<|file_sep|>package.json.diff
original:
updated:
"express": "^4.15.3",
"forever": "^0.15.3",
<|file_sep|>original/package.json
},
"repository": {
"type": "git",
"url": "git+https://github.com/localonomy/www.... | "test": "echo \"Error: no test specified\" && exit 1",
"heroku-postbuild": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/localonomy/www.git"
},
"keywords": [],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/localonomy/www/issues"... | <|file_sep|>package.json.diff
original:
"devDependencies": {
updated:
"dependencies": {
<|file_sep|>package.json.diff
original:
updated:
"express": "^4.15.3",
"forever": "^0.15.3",
<|file_sep|>original/package.json
},
"repository": {
"type": "git",
"url": "git+https://github.com/localonomy/www.... | 63e22bb329c096875606bffa0b325f157575537d | package.json | package.json | JSON |
<|file_sep|>original/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java
<|file_sep|>current/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java
<|file_sep|>updated/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java | /**
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
package com.codeup.application.actions;
import com.codeup.application.CategoriesConsole;
import com.codeup.movies.catalog.AddCategory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.Run... | <|file_sep|>original/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java
<|file_sep|>current/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java
<|file_sep|>updated/src/test/java/com/codeup/application/actions/AddCategoryActionTest.java
/**
* This source file is subject to the... | e6b2e029dcf81e502ce7f8b6547759abc6303084 | src/test/java/com/codeup/application/actions/AddCategoryActionTest.java | src/test/java/com/codeup/application/actions/AddCategoryActionTest.java | Java |
<|file_sep|>sql/drop_all.sql.diff
original:
EXECUTE IMMEDIATE ('DROP TABLE ' || T.table_name || ' CASCADE CONSTRAINTS');
updated:
EXECUTE IMMEDIATE ('DROP TABLE ' || T.table_name || ' CASCADE CONSTRAINTS');
<|file_sep|>sql/drop_all.sql.diff
original:
EXECUTE IMMEDIATE ('DROP VIEW ' || T.view_name);
updated:
... | /
-- types
BEGIN
FOR T IN (SELECT type_name FROM user_types) LOOP
EXECUTE IMMEDIATE ('DROP TYPE ' || T.type_name || ' FORCE');
END LOOP;
END;
/
-- sequences
BEGIN
FOR T in (SELECT sequence_name from user_sequences) LOOP
EXECUTE IMMEDIATE ('DROP SEQUENCE ' || T.sequence_name);
END LOOP;
END;
/
purge r... | <|file_sep|>sql/drop_all.sql.diff
original:
EXECUTE IMMEDIATE ('DROP TABLE ' || T.table_name || ' CASCADE CONSTRAINTS');
updated:
EXECUTE IMMEDIATE ('DROP TABLE ' || T.table_name || ' CASCADE CONSTRAINTS');
<|file_sep|>sql/drop_all.sql.diff
original:
EXECUTE IMMEDIATE ('DROP VIEW ' || T.view_name);
updated:
... | fdf6bec999f9f3761520efb1539ce82c9b1b5d54 | sql/drop_all.sql | sql/drop_all.sql | SQL |
<|file_sep|>original/spec/controllers/pups_controller_spec.rb
require 'spec_helper'
describe PupsController do
end
<|file_sep|>current/spec/controllers/pups_controller_spec.rb
require 'spec_helper'
describe PupsController do
end
<|file_sep|>updated/spec/controllers/pups_controller_spec.rb | require 'spec_helper'
describe PupsController do
describe "finding reviews for a specific breed" do
it "should find dogs with the single breed submitted" do
fake_dogs = [double('pup1'), double('pup2'), double('pup3')]
Pup.should_receive(:find_by_breed).with('shiba inu').and_return(fake_dogs)
av... | <|file_sep|>original/spec/controllers/pups_controller_spec.rb
require 'spec_helper'
describe PupsController do
end
<|file_sep|>current/spec/controllers/pups_controller_spec.rb
require 'spec_helper'
describe PupsController do
end
<|file_sep|>updated/spec/controllers/pups_controller_spec.rb
require 'spec_helper'
des... | e5109ecb11ca459ddefa795420cf75d1e51a4375 | spec/controllers/pups_controller_spec.rb | spec/controllers/pups_controller_spec.rb | Ruby |
<|file_sep|>original/config/interface_elements/industry/industry_aluminium.yml
- key: input_industry_metal_aluminium_electricity_demand
unit: 'TJ'
entsoe: |
EB = ("Final consumption - industry sector - metal aluminium - energy use", "Electricity")
- key: input_industry_metal_aluminium_networ... | - key: input_industry_metal_aluminium_electricity_demand
unit: 'TJ'
entsoe: |
EB = ("Final consumption - industry sector - metal aluminium - energy use", "Electricity")
- key: input_industry_metal_aluminium_network_gas_demand
unit: 'TJ'
entsoe: |
EB = ("Final consumption ... | <|file_sep|>original/config/interface_elements/industry/industry_aluminium.yml
- key: input_industry_metal_aluminium_electricity_demand
unit: 'TJ'
entsoe: |
EB = ("Final consumption - industry sector - metal aluminium - energy use", "Electricity")
- key: input_industry_metal_aluminium_networ... | a8aa79da1a347b600f0e1fee1611bea92126ff87 | config/interface_elements/industry/industry_aluminium.yml | config/interface_elements/industry/industry_aluminium.yml | YAML |
<|file_sep|>original/app/controllers/users_controller.rb
class UsersController < ApplicationController
def index
end
def show
@user = User.find(params[:id])
@question = Question.find(params[:id])
end
end
<|file_sep|>current/app/controllers/users_controller.rb
class UsersController < ApplicationContro... | class UsersController < ApplicationController
def index
end
def show
@user = User.find(params[:id])
end
end | <|file_sep|>original/app/controllers/users_controller.rb
class UsersController < ApplicationController
def index
end
def show
@user = User.find(params[:id])
@question = Question.find(params[:id])
end
end
<|file_sep|>current/app/controllers/users_controller.rb
class UsersController < ApplicationContro... | 7948a5b7e82916ab6106b4df2d7814d469448349 | app/controllers/users_controller.rb | app/controllers/users_controller.rb | Ruby |
<|file_sep|>Logmatic.podspec.diff
original:
spec.version = '0.1.2'
updated:
spec.version = '1.0.0'
<|file_sep|>Logmatic.podspec.diff
original:
spec.platform = 'ios', '7.0'
updated:
spec.platform = 'ios', '8.0'
<|file_sep|>original/Logmatic.podspec
Pod::Spec.new do |spec|
spec.name = ... | Pod::Spec.new do |spec|
spec.name = 'Logmatic'
spec.version = '1.0.0'
spec.authors = 'Logmatic.io'
spec.license = 'MIT'
spec.homepage = 'http://logmatic.io'
spec.summary = 'iOS version for Logmatic.io'
spec.platform = 'ios', '8.0'
spec.source = { :git => 'https:... | <|file_sep|>Logmatic.podspec.diff
original:
spec.version = '0.1.2'
updated:
spec.version = '1.0.0'
<|file_sep|>Logmatic.podspec.diff
original:
spec.platform = 'ios', '7.0'
updated:
spec.platform = 'ios', '8.0'
<|file_sep|>original/Logmatic.podspec
Pod::Spec.new do |spec|
spec.name = ... | 5dd31fd545d60c4d27b144a42c7a8d41ebb411c9 | Logmatic.podspec | Logmatic.podspec | Ruby |
<|file_sep|>addon/components/reflect-view.js.diff
original:
updated:
},
_validate(prop, value) {
if (!value || typeof value !== 'string') {
Ember.Logger.error(`Please pass a valid ${prop}.`);
return true;
}
return false;
<|file_sep|>original/addon/components/reflect-view.js
// and val... | // For this component, look over each event type.
Object.keys(eventTypes).forEach(eventType => {
// For each event type, setup all the callbacks.
eventTypes[eventType].map(cb => {
this.ui.on(slug, eventType, cb);
});
});
});
}
const proje... | <|file_sep|>addon/components/reflect-view.js.diff
original:
updated:
},
_validate(prop, value) {
if (!value || typeof value !== 'string') {
Ember.Logger.error(`Please pass a valid ${prop}.`);
return true;
}
return false;
<|file_sep|>original/addon/components/reflect-view.js
// and val... | b0b0a038cb6344ee56788c7f62f1eaf5e0ad9dd2 | addon/components/reflect-view.js | addon/components/reflect-view.js | JavaScript |
<|file_sep|>package.json.diff
original:
"eslint": "~1.5.0",
updated:
"eslint": "~1.6.0",
<|file_sep|>original/package.json
"author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.10.x"
},
"dependencies": {
"binary": "~0.3.0",
"hexy": "~0.2.7"
... | "author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.10.x"
},
"dependencies": {
"binary": "~0.3.0",
"hexy": "~0.2.7"
},
"scripts": {
"test": "grunt"
},
"devDependencies": {
"eslint": "~1.6.0",
"grunt": "~0.4.5",
... | <|file_sep|>package.json.diff
original:
"eslint": "~1.5.0",
updated:
"eslint": "~1.6.0",
<|file_sep|>original/package.json
"author": "Alberto Santini",
"license": "MIT",
"engines": {
"node": ">=0.10.x"
},
"dependencies": {
"binary": "~0.3.0",
"hexy": "~0.2.7"
... | f32046cfb02acacb50a26ccccfffee7dee03ce47 | package.json | package.json | JSON |
<|file_sep|>original/src/package.json
{
"name": "StyledElements",
"private": true,
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-uglify": "~0.9.1",
"grunt-jscs": "^2.8.0",
"grunt-jsdoc": "^2.1.0",
"grunt-karma": "^2.0.0",
"karma": "^1.1.0",
... | {
"name": "StyledElements",
"private": true,
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-uglify": "~0.9.1",
"grunt-jscs": "^2.8.0",
"grunt-jsdoc": "^2.1.0",
"grunt-karma": "^2.0.0",
"jasmine-core": "<2.5.0",
"karma": "^1.1.0",
"karma... | <|file_sep|>original/src/package.json
{
"name": "StyledElements",
"private": true,
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-uglify": "~0.9.1",
"grunt-jscs": "^2.8.0",
"grunt-jsdoc": "^2.1.0",
"grunt-karma": "^2.0.0",
"karma": "^1.1.0",
... | a23d44d3acc633ffdebed76b6f7fcc9322a72983 | src/package.json | src/package.json | JSON |
<|file_sep|>lib/metal_archives/cache/redis.rb.diff
original:
redis.exists? key
updated:
redis.exists? cache_key_for(key)
<|file_sep|>original/lib/metal_archives/cache/redis.rb
def clear
redis.keys(cache_key_for("*")).each { |key| redis.del key }
end
def include?(key)
... |
def clear
redis.keys(cache_key_for("*")).each { |key| redis.del key }
end
def include?(key)
redis.exists? cache_key_for(key)
end
def delete(key)
redis.del cache_key_for(key)
end
private
def cache_key_for(key)
"metal_archives.cache.#{ke... | <|file_sep|>lib/metal_archives/cache/redis.rb.diff
original:
redis.exists? key
updated:
redis.exists? cache_key_for(key)
<|file_sep|>original/lib/metal_archives/cache/redis.rb
def clear
redis.keys(cache_key_for("*")).each { |key| redis.del key }
end
def include?(key)
... | 230dc9bbb10fdb60b0da2649b2d9cd5a417ded28 | lib/metal_archives/cache/redis.rb | lib/metal_archives/cache/redis.rb | Ruby |
<|file_sep|>original/dev-requirements.txt
autoflake==1.2
check-manifest==0.37
codecov==2.0.15 # Upload coverage data
doc8==0.8.0
dodgy==0.1.9 # Look for uploaded secrets
dulwich==0.19.11
flake8-commas==2.0.0 # Require silicon valley commas
flake8-quotes==1.0.0 # Require single quotes
flake8==3.7.7 # Lint
isort==4.3... | autoflake==1.2
check-manifest==0.37
codecov==2.0.15 # Upload coverage data
doc8==0.8.0
dodgy==0.1.9 # Look for uploaded secrets
dulwich==0.19.11
flake8-commas==2.0.0 # Require silicon valley commas
flake8-quotes==1.0.0 # Require single quotes
flake8==3.7.7 # Lint
isort==4.3.14 # Lint imports
mypy-mypyc==0.670 # T... | <|file_sep|>original/dev-requirements.txt
autoflake==1.2
check-manifest==0.37
codecov==2.0.15 # Upload coverage data
doc8==0.8.0
dodgy==0.1.9 # Look for uploaded secrets
dulwich==0.19.11
flake8-commas==2.0.0 # Require silicon valley commas
flake8-quotes==1.0.0 # Require single quotes
flake8==3.7.7 # Lint
isort==4.3... | 6d7d44b85f18ba32088418b9ccbce95aee8bf600 | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>original/lib/core_ext/object.rb
class Object
def it(title, &block)
block.call
print '.'
end
end
<|file_sep|>current/lib/core_ext/object.rb
class Object
def it(title, &block)
block.call
print '.'
end
end
<|file_sep|>updated/lib/core_ext/object.rb | class Object
def it(title, &block)
block.call
print '.'
rescue Exception => e
print 'F'
puts
puts e.to_s
puts e.backtrace
end
end | <|file_sep|>original/lib/core_ext/object.rb
class Object
def it(title, &block)
block.call
print '.'
end
end
<|file_sep|>current/lib/core_ext/object.rb
class Object
def it(title, &block)
block.call
print '.'
end
end
<|file_sep|>updated/lib/core_ext/object.rb
class Object
def it(title, &block)
... | 89b8fcef2b34f9b8ee7dd89f206192ba32bd6a06 | lib/core_ext/object.rb | lib/core_ext/object.rb | Ruby |
<|file_sep|>composer.json.diff
original:
"campaignchain/activity-facebook": "dev-1.0.0-beta.1"
updated:
"campaignchain/activity-facebook": "1.0.0@beta"
<|file_sep|>original/composer.json
{
"name": "Sandro Groganz",
"email": "sandro@campaignchain.com"
}
],
... | "email": "sandro@campaignchain.com"
}
],
"require": {
"campaignchain/activity-facebook": "1.0.0@beta"
},
"autoload": {
"psr-4": { "CampaignChain\\Operation\\FacebookBundle\\": "" }
},
"extra": {
"branch-alias": {
"dev-1.0.0-beta.1": "1.0.0-... | <|file_sep|>composer.json.diff
original:
"campaignchain/activity-facebook": "dev-1.0.0-beta.1"
updated:
"campaignchain/activity-facebook": "1.0.0@beta"
<|file_sep|>original/composer.json
{
"name": "Sandro Groganz",
"email": "sandro@campaignchain.com"
}
],
... | dadbd166bd651e179b65a8a0fa794123bd9668ff | composer.json | composer.json | JSON |
<|file_sep|>src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy.diff
original:
updated:
public void start() throws FileNotFoundException {
<|file_sep|>original/src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy
/**
* Loads builds.properties.
* DW App will halt during start... |
/**
* Loads builds.properties.
* DW App will halt during startup if FileNotFoundException is thrown.
*
* @throws FileNotFoundException
*/
@Override
public void start() throws FileNotFoundException {
def stream = InfoResource.class.getResourceAsStream('/build.properties')
... | <|file_sep|>src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy.diff
original:
updated:
public void start() throws FileNotFoundException {
<|file_sep|>original/src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy
/**
* Loads builds.properties.
* DW App will halt during start... | c7b9fb24f9f02f7237fb5f50ad8b09a3f7eee2ad | src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy | src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy | Groovy |
<|file_sep|>original/src/authFilter.js
export class AuthFilterValueConverter {
toView(routes, isAuthenticated) {
console.log(isAuthenticated);
if (isAuthenticated)
return routes;
return routes.filter(r => !r.config.auth);
}
}
<|file_sep|>current/src/authFilter.js
export class AuthFilterValueConve... | export class AuthFilterValueConverter {
toView(routes, isAuthenticated) {
return routes.filter(r => r.config.auth === undefined || r.config.auth === isAuthenticated);
}
} | <|file_sep|>original/src/authFilter.js
export class AuthFilterValueConverter {
toView(routes, isAuthenticated) {
console.log(isAuthenticated);
if (isAuthenticated)
return routes;
return routes.filter(r => !r.config.auth);
}
}
<|file_sep|>current/src/authFilter.js
export class AuthFilterValueConve... | 1c3bc76ba6a3f83ef78fab2aae4638999dfea182 | src/authFilter.js | src/authFilter.js | JavaScript |
<|file_sep|>views/_other_pane.haml.diff
original:
%tr
%td.specialized{:colspan => 2} Masteries
- @character.properties.each do |k,v|
- next unless PropertiesHelper::is_type(k, :mastery)
updated:
- if @character.properties
<|file_sep|>views/_other_pane.haml.diff
original:
%td= PropertiesHel... | %tr
%td.specialized{:colspan => 2} Masteries
- @character.properties.each do |k,v|
- next unless PropertiesHelper::is_type(k, :mastery)
%tr
%td= PropertiesHelper::get_property_name(k)
%td= PropertiesHelper::get_mastery_name(k,v)
%tr
%td.specialized{:co... | <|file_sep|>views/_other_pane.haml.diff
original:
%tr
%td.specialized{:colspan => 2} Masteries
- @character.properties.each do |k,v|
- next unless PropertiesHelper::is_type(k, :mastery)
updated:
- if @character.properties
<|file_sep|>views/_other_pane.haml.diff
original:
%td= PropertiesHel... | cf976850ce6d6f30d08b2dba8b9c7d6f1a17a283 | views/_other_pane.haml | views/_other_pane.haml | Haml |
<|file_sep|>original/iReactionTest/Logger/LogWriterTest.java
<|file_sep|>current/iReactionTest/Logger/LogWriterTest.java
<|file_sep|>updated/iReactionTest/Logger/LogWriterTest.java | package Logger;
import Constant.FilePath;
import Database.Config;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import static org.junit.Assert.*;
public class LogWriterTest {
LogWriter logWriter;
@Before
public void setUp() throws Exception {
logW... | <|file_sep|>original/iReactionTest/Logger/LogWriterTest.java
<|file_sep|>current/iReactionTest/Logger/LogWriterTest.java
<|file_sep|>updated/iReactionTest/Logger/LogWriterTest.java
package Logger;
import Constant.FilePath;
import Database.Config;
import org.junit.After;
import org.junit.Before;
import org.junit.Test... | 6c0c35894936f78a24fcba06d07b4afef6b4621d | iReactionTest/Logger/LogWriterTest.java | iReactionTest/Logger/LogWriterTest.java | Java |
<|file_sep|>original/resources/views/errors/503.blade.php
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
... | <html>
<head>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: c... | <|file_sep|>original/resources/views/errors/503.blade.php
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
... | 8f6489ef2f3103df4f67498b479d5a001d9ece12 | resources/views/errors/503.blade.php | resources/views/errors/503.blade.php | PHP |
<|file_sep|>tests/unit/test_ls.py.diff
original:
output = self.run_line("globus ls -r -F json {}:/".format(GO_EP1_ID))
updated:
output = self.run_line(
"globus ls -r -F json {}:/share".format(GO_EP1_ID))
<|file_sep|>original/tests/unit/test_ls.py
Confirms --recursive ls on EP1:/share... | """
output = self.run_line("globus ls -r {}:/share/".format(GO_EP1_ID))
self.assertIn("file1.txt", output)
def test_depth(self):
"""
Confirms setting depth to 1 on a --recursive ls of EP1:/
finds godata but not file1.txt
"""
output = self.run_line(("g... | <|file_sep|>tests/unit/test_ls.py.diff
original:
output = self.run_line("globus ls -r -F json {}:/".format(GO_EP1_ID))
updated:
output = self.run_line(
"globus ls -r -F json {}:/share".format(GO_EP1_ID))
<|file_sep|>original/tests/unit/test_ls.py
Confirms --recursive ls on EP1:/share... | d95d817bdb1fba7eb0ce0cdabcd64a9908796d2a | tests/unit/test_ls.py | tests/unit/test_ls.py | Python |
<|file_sep|>original/controllers/users/collection.js
var instagramGranuals = yield InstagramManager.search(this.request.url)
// Flickr Requests
// var FlickrManager = require('../media/flickr');
// var flickrGranuals = yield FlickrManager.search(this.request.url);
// Creating a universal capsul object... | // Flickr Requests
// var FlickrManager = require('../media/flickr');
// var flickrGranuals = yield FlickrManager.search(this.request.url);
// Creating a universal capsul object
var capsul = {
"user_id": id,
"latitude": require('../../helpers').paramsForUrl(this.request.url).lat,
"longi... | <|file_sep|>original/controllers/users/collection.js
var instagramGranuals = yield InstagramManager.search(this.request.url)
// Flickr Requests
// var FlickrManager = require('../media/flickr');
// var flickrGranuals = yield FlickrManager.search(this.request.url);
// Creating a universal capsul object... | ea7900153fec19f534b9a6f5752436a553a4b6f8 | controllers/users/collection.js | controllers/users/collection.js | JavaScript |
<|file_sep|>original/_posts/2020-04-27-useful-vscode-keyboard-combinations.md
<|file_sep|>current/_posts/2020-04-27-useful-vscode-keyboard-combinations.md
<|file_sep|>updated/_posts/2020-04-27-useful-vscode-keyboard-combinations.md | ---
title: Useful VS Code Keyboard Combinations
author: YorkshireKev
layout: post
permalink: /useful-vscode-keyboard-combinations/
dsq_needs_sync:
- 1
---
These are a bunch of VS Code editing keyboard combinations that I find useful, but often struggle to recall.
### Multi line select and edit. ###
Highlight some te... | <|file_sep|>original/_posts/2020-04-27-useful-vscode-keyboard-combinations.md
<|file_sep|>current/_posts/2020-04-27-useful-vscode-keyboard-combinations.md
<|file_sep|>updated/_posts/2020-04-27-useful-vscode-keyboard-combinations.md
---
title: Useful VS Code Keyboard Combinations
author: YorkshireKev
layout: post
perm... | 626515776cf7927b5873aceb106e740f9b93d60f | _posts/2020-04-27-useful-vscode-keyboard-combinations.md | _posts/2020-04-27-useful-vscode-keyboard-combinations.md | Markdown |
<|file_sep|>original/requirements.txt
molecule==2.12.1
pytest==3.5.0
python-vagrant==0.5.15
testinfra==1.12.0
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.12.1
pytest==3.5.0
python-vagrant==0.5.15
testinfra==1.12.0
tox==3.0.0
<|file_sep|>updated/requirements.txt | molecule==2.12.1
pytest==3.5.1
python-vagrant==0.5.15
testinfra==1.12.0
tox==3.0.0 | <|file_sep|>original/requirements.txt
molecule==2.12.1
pytest==3.5.0
python-vagrant==0.5.15
testinfra==1.12.0
tox==3.0.0
<|file_sep|>current/requirements.txt
molecule==2.12.1
pytest==3.5.0
python-vagrant==0.5.15
testinfra==1.12.0
tox==3.0.0
<|file_sep|>updated/requirements.txt
molecule==2.12.1
pytest==3.5.1
python-vagr... | e4813392b6b0785032bbe63b02bf2ee3318108f6 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/docs/docker-on-arm.md
<|file_sep|>current/docs/docker-on-arm.md
<|file_sep|>updated/docs/docker-on-arm.md | # Running 64-bit docker images on ARM, why doesn't it work?
Imagine this:
```
$ docker run -it ubuntu /bin/bash
exec format error
Error response from daemon: Cannot start container 977d87157e: [8] System error: exec format error
```
What is the problem?
I just want to run ubuntu on my Pi.
## Explanation
Docker is ... | <|file_sep|>original/docs/docker-on-arm.md
<|file_sep|>current/docs/docker-on-arm.md
<|file_sep|>updated/docs/docker-on-arm.md
# Running 64-bit docker images on ARM, why doesn't it work?
Imagine this:
```
$ docker run -it ubuntu /bin/bash
exec format error
Error response from daemon: Cannot start container 977d8715... | ed6f07b5089c47bfe3a91366d54b4abbf7dbf42c | docs/docker-on-arm.md | docs/docker-on-arm.md | Markdown |
<|file_sep|>original/lua/reinsertUnprocessed.lua
local queue = KEYS[1]
local maxMessages = tonumber(ARGV[1])
local queueKey = '{' .. queue .. '}:messages'
local processingKey = '{' .. queue .. '}:processing'
local processingMessages = redis.call('LRANGE', processingKey, 0 - maxMessages, -1)
local ids = {}
for _, id in ... | local queue = KEYS[1]
local maxMessages = tonumber(ARGV[1])
local queueKey = '{' .. queue .. '}:messages'
local processingKey = '{' .. queue .. '}:processing'
local processingMessages = redis.call('LRANGE', processingKey, 0 - maxMessages, -1)
local ids = {}
for _, id in ipairs(processingMessages) do
local messageKey ... | <|file_sep|>original/lua/reinsertUnprocessed.lua
local queue = KEYS[1]
local maxMessages = tonumber(ARGV[1])
local queueKey = '{' .. queue .. '}:messages'
local processingKey = '{' .. queue .. '}:processing'
local processingMessages = redis.call('LRANGE', processingKey, 0 - maxMessages, -1)
local ids = {}
for _, id in ... | 6ed153ae0b7eb187f42f9e8e93f96b0cac0c0f34 | lua/reinsertUnprocessed.lua | lua/reinsertUnprocessed.lua | Lua |
<|file_sep|>original/.travis.yml
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench
after_success:
# measure code coverage and ... | # load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench
after_success:
# measure code coverage and upload to coveralls.io
- travis... | <|file_sep|>original/.travis.yml
# load travis-cargo
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
# the main build
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench
after_success:
# measure code coverage and ... | 4aa3153d1fbe4b1ba09842991bb9fc75079096c8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/semantics/latex/topmatter.tex
\setlength{\parindent}{1em}
\title{Formal Semantics of the LLVM IR}
\author{David Lazar and Chucky Ellison (\texttt{\{lazar6,celliso2\}@illinois.edu})}
\organization{University of Illinois at Urbana-Champaign}
\maketitle
\setlength{\parindent}{8em}
% FIXME use dragon... | \setlength{\parindent}{1em}
\title{Formal Semantics of the LLVM IR}
\author{David Lazar and Chucky Ellison (\texttt{\{lazar6,celliso2\}@illinois.edu})}
\organization{University of Illinois at Urbana-Champaign}
\maketitle
\setlength{\parindent}{8em}
% FIXME use dragon-vector.pdf for printing/high-quality
% some versio... | <|file_sep|>original/semantics/latex/topmatter.tex
\setlength{\parindent}{1em}
\title{Formal Semantics of the LLVM IR}
\author{David Lazar and Chucky Ellison (\texttt{\{lazar6,celliso2\}@illinois.edu})}
\organization{University of Illinois at Urbana-Champaign}
\maketitle
\setlength{\parindent}{8em}
% FIXME use dragon... | 1a0e96eca8a19231e94335874e91aa802837753f | semantics/latex/topmatter.tex | semantics/latex/topmatter.tex | TeX |
<|file_sep|>lib/mongomodel/railtie.rb.diff
original:
mongomodel_configuration = YAML::load(ERB.new(IO.read(config)).result)
updated:
<|file_sep|>original/lib/mongomodel/railtie.rb
module MongoModel
class Railtie < Rails::Railtie
initializer "mongomodel.logger" do
MongoModel.logger ||= ::Rails.logger
... | class Railtie < Rails::Railtie
initializer "mongomodel.logger" do
MongoModel.logger ||= ::Rails.logger
end
initializer "mongomodel.rescue_responses" do
ActionDispatch::ShowExceptions.rescue_responses['MongoModel::DocumentNotFound'] = :not_found
end
initializer "mongomodel.dat... | <|file_sep|>lib/mongomodel/railtie.rb.diff
original:
mongomodel_configuration = YAML::load(ERB.new(IO.read(config)).result)
updated:
<|file_sep|>original/lib/mongomodel/railtie.rb
module MongoModel
class Railtie < Rails::Railtie
initializer "mongomodel.logger" do
MongoModel.logger ||= ::Rails.logger
... | 57080c84390d9a994586c55e473e45dac480002f | lib/mongomodel/railtie.rb | lib/mongomodel/railtie.rb | Ruby |
<|file_sep|>original/sixquiprend/static/js/main_controller.js
'use strict';
app.controller('MainController', ['$rootScope', '$scope', '$http', 'growl',
function($rootScope, $scope, $http, growl) {
// UI
$scope.is_admin = function() {
return $rootScope.current_user && $rootScope.current_user.urole == ... | 'use strict';
app.controller('MainController', ['$rootScope', '$scope', '$http', 'growl',
function($rootScope, $scope, $http, growl) {
// UI
$scope.is_admin = function() {
return $rootScope.current_user && $rootScope.current_user.urole == 2;
};
}
]); | <|file_sep|>original/sixquiprend/static/js/main_controller.js
'use strict';
app.controller('MainController', ['$rootScope', '$scope', '$http', 'growl',
function($rootScope, $scope, $http, growl) {
// UI
$scope.is_admin = function() {
return $rootScope.current_user && $rootScope.current_user.urole == ... | 5e00fba2922bfc0d67bc7943e2fa0b0ca69ecff2 | sixquiprend/static/js/main_controller.js | sixquiprend/static/js/main_controller.js | JavaScript |
<|file_sep|>original/data/transition-sites/defra_engage.yml
<|file_sep|>current/data/transition-sites/defra_engage.yml
<|file_sep|>updated/data/transition-sites/defra_engage.yml | ---
site: defra_engage
whitehall_slug: department-for-environment-food-rural-affairs
title: Department for Environment, Food & Rural Affairs
redirection_date: 31st March 2014
homepage: https://www.gov.uk/government/organisations/department-for-environment-food-rural-affairs
tna_timestamp: 20201205150354
host: engag... | <|file_sep|>original/data/transition-sites/defra_engage.yml
<|file_sep|>current/data/transition-sites/defra_engage.yml
<|file_sep|>updated/data/transition-sites/defra_engage.yml
---
site: defra_engage
whitehall_slug: department-for-environment-food-rural-affairs
title: Department for Environment, Food & Rural Aff... | 36fb0fb0d4ce619c16f8a7564fd814b81c865580 | data/transition-sites/defra_engage.yml | data/transition-sites/defra_engage.yml | YAML |
<|file_sep|>original/src/ZF/ApiProblem/Factory/ApiProblemListenerFactory.php
class ApiProblemListenerFactory implements FactoryInterface
{
/**
* {@inheritDoc}
* @return ApiProblemListener
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$filters = null;
... |
class ApiProblemListenerFactory implements FactoryInterface
{
/**
* {@inheritDoc}
* @return ApiProblemListener
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$filters = null;
$config = array();
if ($serviceLocator->has('Config')) {
... | <|file_sep|>original/src/ZF/ApiProblem/Factory/ApiProblemListenerFactory.php
class ApiProblemListenerFactory implements FactoryInterface
{
/**
* {@inheritDoc}
* @return ApiProblemListener
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$filters = null;
... | 198e5075aaf8eef8bd27d0218abe3bce0765d36f | src/ZF/ApiProblem/Factory/ApiProblemListenerFactory.php | src/ZF/ApiProblem/Factory/ApiProblemListenerFactory.php | PHP |
<|file_sep|>original/manage.py
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
if 'test' in sys.argv and '--tag=pkg' in sys.argv:
settings = 'tola.settings.test_pkg'
os.environ['DJANGO_SETTINGS_MODULE'] = settings
elif 'test':
settings = 'tola.settings.test'
... | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
if 'test' in sys.argv and '--tag=pkg' in sys.argv:
settings = 'tola.settings.test_pkg'
os.environ['DJANGO_SETTINGS_MODULE'] = settings
elif 'test' in sys.argv:
settings = 'tola.settings.test'
os.environ['DJANG... | <|file_sep|>original/manage.py
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
if 'test' in sys.argv and '--tag=pkg' in sys.argv:
settings = 'tola.settings.test_pkg'
os.environ['DJANGO_SETTINGS_MODULE'] = settings
elif 'test':
settings = 'tola.settings.test'
... | d5122206fe5c8e0d60fd19f08a64962577be931e | manage.py | manage.py | Python |
<|file_sep|>_config.yml.diff
original:
url: http://nickymarino.com
updated:
url: https://nickymarino.com
<|file_sep|>original/_config.yml
paginate-path: 'page:num'
plugins:
- jekyll-paginate
- jemoji
- jekyll-redirect-from
- jekyll-sitemap
# About/contact
author:
name: ... | paginate-path: 'page:num'
plugins:
- jekyll-paginate
- jemoji
- jekyll-redirect-from
- jekyll-sitemap
# About/contact
author:
name: Nicky Marino
url: https://nickymarino.com
twitter: https://twitter.com/_NickyMarino
github: https://github.com/nickym... | <|file_sep|>_config.yml.diff
original:
url: http://nickymarino.com
updated:
url: https://nickymarino.com
<|file_sep|>original/_config.yml
paginate-path: 'page:num'
plugins:
- jekyll-paginate
- jemoji
- jekyll-redirect-from
- jekyll-sitemap
# About/contact
author:
name: ... | 7c3f8e1858165f6b14a61b3705f732b7eff4d579 | _config.yml | _config.yml | YAML |
<|file_sep|>original/spec/models/booking_template_spec.rb
require 'spec_helper'
describe BookingTemplate do
context 'Factory methods' do
describe '.build_booking' do
it 'should raise an exception if no matching template can be found' do
expect {BookingTemplate.build_booking('not found')}.to raise_e... | require 'spec_helper'
describe BookingTemplate do
context 'Factory methods' do
describe '.build_booking' do
it 'should raise an exception if no matching template can be found' do
expect {BookingTemplate.build_booking('not found')}.to raise_exception
end
it 'should call build_booking on... | <|file_sep|>original/spec/models/booking_template_spec.rb
require 'spec_helper'
describe BookingTemplate do
context 'Factory methods' do
describe '.build_booking' do
it 'should raise an exception if no matching template can be found' do
expect {BookingTemplate.build_booking('not found')}.to raise_e... | dcaf6ed542165217e13896c5cc108adb717cbaea | spec/models/booking_template_spec.rb | spec/models/booking_template_spec.rb | Ruby |
<|file_sep|>original/data/colo/phoenixnap-private.yaml
---
dnsclient::nameservers:
- '8.8.8.8'
- '8.8.4.4'
base::hosts:
host:
name: 'ldap3-us-west.apache.org'
ip: '10.41.0.12'
ldapclient::ldapservers: 'ldaps://ldap3-us-west.apache.org:636 ldaps://ldap2-us-west.apache.org:636 ldaps://harmonia.apache.org... | ---
dnsclient::nameservers:
- '8.8.8.8'
- '8.8.4.4'
base::hosts:
host:
name: 'ldap3-us-west.apache.org'
ip: '10.41.0.12'
host:
name: 'spamd1-us-west.apache.org'
ip: '10.40.0.7'
host:
name: 'spamd2-us-west.apache.org'
ip: '10.40.0.9'
host:
name: 'spamd3-us-west.apache.org'
i... | <|file_sep|>original/data/colo/phoenixnap-private.yaml
---
dnsclient::nameservers:
- '8.8.8.8'
- '8.8.4.4'
base::hosts:
host:
name: 'ldap3-us-west.apache.org'
ip: '10.41.0.12'
ldapclient::ldapservers: 'ldaps://ldap3-us-west.apache.org:636 ldaps://ldap2-us-west.apache.org:636 ldaps://harmonia.apache.org... | 1788e2482245cb7b6357256ace6d44e442d8b2b3 | data/colo/phoenixnap-private.yaml | data/colo/phoenixnap-private.yaml | YAML |
<|file_sep|>lib/souschef/template.rb.diff
original:
updated:
require 'souschef/template/rakefile'
<|file_sep|>original/lib/souschef/template.rb
require 'souschef/template/readme'
require 'souschef/template/rubocop'
require 'souschef/template/spec_helper'
require 'souschef/template/serverspec'
module Souschef
# Crea... | require 'souschef/template/spec_helper'
require 'souschef/template/serverspec'
require 'souschef/template/rakefile'
module Souschef
# Creates various files from predefined templates
class Template
# Public - Create needed standardised files
#
# Returns nil
def self.run(cookbook)
Souschef::Tem... | <|file_sep|>lib/souschef/template.rb.diff
original:
updated:
require 'souschef/template/rakefile'
<|file_sep|>original/lib/souschef/template.rb
require 'souschef/template/readme'
require 'souschef/template/rubocop'
require 'souschef/template/spec_helper'
require 'souschef/template/serverspec'
module Souschef
# Crea... | f4f9e78f93766c09649c4ed532e73cb01a487bd2 | lib/souschef/template.rb | lib/souschef/template.rb | Ruby |
<|file_sep|>original/package.json
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/auth0/express-brute-mongo.git"
},
"author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)",
"license": "BSD",
"devDependencies": {
"expect.js":... | "scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/auth0/express-brute-mongo.git"
},
"author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)",
"license": "BSD",
"devDependencies": {
"expect.js": "~0.3.1",
"express": "~4.14.0... | <|file_sep|>original/package.json
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/auth0/express-brute-mongo.git"
},
"author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)",
"license": "BSD",
"devDependencies": {
"expect.js":... | 45c8a3e6a24e1d19ba0a20185ac9727f063e0312 | package.json | package.json | JSON |
<|file_sep|>original/app/models/project.rb
class Project < ActiveRecord::Base
attr_accessible :description, :github_url, :name, :main_language
validates_presence_of :description, :github_url, :name, :main_language
validates_uniqueness_of :github_url, :message => "already been submitted"
validates_length_of :de... | class Project < ActiveRecord::Base
attr_accessible :description, :github_url, :name, :main_language
validates_presence_of :description, :github_url, :name, :main_language
validates_uniqueness_of :github_url, :message => "already been submitted"
validates_length_of :description, :within => 20..200
LANGUAGES ... | <|file_sep|>original/app/models/project.rb
class Project < ActiveRecord::Base
attr_accessible :description, :github_url, :name, :main_language
validates_presence_of :description, :github_url, :name, :main_language
validates_uniqueness_of :github_url, :message => "already been submitted"
validates_length_of :de... | 4aeb447af8be8c8c94dcd6ab880c679a8fb74391 | app/models/project.rb | app/models/project.rb | Ruby |
<|file_sep|>original/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java
<|file_sep|>current/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java
<|file_sep|>updated/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java | package de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.bulk;
/*
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
Copyright (C) 2011
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team
This progr... | <|file_sep|>original/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java
<|file_sep|>current/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java
<|file_sep|>updated/src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java... | 5117ddeb12f8af14e0a2681839d3ee691b5cf226 | src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java | src/de/lmu/ifi/dbs/elki/index/tree/spatial/rstarvariants/bulk/FileOrderBulkSplit.java | Java |
<|file_sep|>original/features/step_definitions/create_meeting_steps.rb
click_link 'Add Meeting'
end
When /^I submit the form to create a meeting$/ do
within '#new_meeting' do
fill_in 'meeting_date', with: Date.today.to_s
click_button 'Create Meeting'
end
end
When /^I click the "([^"]*)" link$/ do |tex... | within '#new_meeting' do
fill_in 'meeting_date', with: Date.today.to_s
click_button 'Create Meeting'
end
end
When /^I click the "([^"]*)" link$/ do |text|
click_link text
end
Then /^there should be (\d+) meetings?$/ do |count|
expect(Meeting.count).to eql count.to_i
end
Then /^I should be on the new... | <|file_sep|>original/features/step_definitions/create_meeting_steps.rb
click_link 'Add Meeting'
end
When /^I submit the form to create a meeting$/ do
within '#new_meeting' do
fill_in 'meeting_date', with: Date.today.to_s
click_button 'Create Meeting'
end
end
When /^I click the "([^"]*)" link$/ do |tex... | 21fb625f901c93fe6dbd0609550f9424db0570b9 | features/step_definitions/create_meeting_steps.rb | features/step_definitions/create_meeting_steps.rb | Ruby |
<|file_sep|>original/conversion_check.py
"""
Checks if MCP conversion is allowed for the given file.
MCP files are only created if the DIF has an ISO Topic Category of
"OCEANS".
"""
allowed = False
# Cannot use the following check:
# oceans_tag = '<ISO_Topic_Category>OCEANS</ISO_Topic_Category>'
# This is b... |
allowed = False
# Cannot use the following check:
# oceans_tag = '<ISO_Topic_Category>OCEANS</ISO_Topic_Category>'
# This is because some of these tags include a "uuid" attribute, so they
# will not be marked OK for conversion.
oceans_tag = '>OCEANS</ISO_Topic_Category>'
with open(input_file) as r:
content ... | <|file_sep|>original/conversion_check.py
"""
Checks if MCP conversion is allowed for the given file.
MCP files are only created if the DIF has an ISO Topic Category of
"OCEANS".
"""
allowed = False
# Cannot use the following check:
# oceans_tag = '<ISO_Topic_Category>OCEANS</ISO_Topic_Category>'
# This is b... | 67637039b95f4030a462edb35d614bb678426dd3 | conversion_check.py | conversion_check.py | Python |
<|file_sep|>original/requirements_dev.txt
-e .
alabaster==0.7.10
coverage==4.4.1
cryptography==2.0.2
flake8==3.4.1
punch.py==1.4.0
pytest==3.1.3
pyyaml==3.12
sphinx==1.6.2
sphinx-autodoc-typehints==1.2.1
tox==2.7.0
twine==1.9.1
wheel==0.29.0
watchdog==0.8.3
<|file_sep|>current/requirements_dev.txt
-e .
alabaster==0.7.1... | -e .
alabaster==0.7.10
coverage==4.4.1
cryptography==2.0.2
flake8==3.4.1
punch.py==1.4.0
pytest==3.2.1
pyyaml==3.12
sphinx==1.6.2
sphinx-autodoc-typehints==1.2.1
tox==2.7.0
twine==1.9.1
wheel==0.29.0
watchdog==0.8.3 | <|file_sep|>original/requirements_dev.txt
-e .
alabaster==0.7.10
coverage==4.4.1
cryptography==2.0.2
flake8==3.4.1
punch.py==1.4.0
pytest==3.1.3
pyyaml==3.12
sphinx==1.6.2
sphinx-autodoc-typehints==1.2.1
tox==2.7.0
twine==1.9.1
wheel==0.29.0
watchdog==0.8.3
<|file_sep|>current/requirements_dev.txt
-e .
alabaster==0.7.1... | 5dbc8261bd067ed0dcfed2e4d44e5b8df530ab35 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>run_linux_mac.sh.diff
original:
if [[ ! -d '.venv' ]]
updated:
if ! [[ -e .venv/bin/activate ]]
<|file_sep|>original/run_linux_mac.sh
elif printf '%s\n%s' "$python_version" "Python 3.6" | sort -CV
then
echo Python 3.6 or newer required. "$python_version" found.
read -rp "Press [Enter] to exit..."
exit... | elif printf '%s\n%s' "$python_version" "Python 3.6" | sort -CV
then
echo Python 3.6 or newer required. "$python_version" found.
read -rp "Press [Enter] to exit..."
exit 0
fi
# Create the virtual env if necessary
if ! [[ -e .venv/bin/activate ]]
then
echo Creating virtual environment
# Shield from systems ne... | <|file_sep|>run_linux_mac.sh.diff
original:
if [[ ! -d '.venv' ]]
updated:
if ! [[ -e .venv/bin/activate ]]
<|file_sep|>original/run_linux_mac.sh
elif printf '%s\n%s' "$python_version" "Python 3.6" | sort -CV
then
echo Python 3.6 or newer required. "$python_version" found.
read -rp "Press [Enter] to exit..."
exit... | 0bfa6c392ff31b1f989152493bf2e728fbc6bcf0 | run_linux_mac.sh | run_linux_mac.sh | Shell |
<|file_sep|>index.js.diff
original:
updated:
var fs = require("fs");
var path = require("path");
<|file_sep|>index.js.diff
original:
"body:start": function(current, output) {
var fs = require("fs");
var path = require("path");
updated:
"body:start": function(current) {
<|file_sep|>index.js... | var path = require("path");
module.exports = {
website: {
assets: ".",
html: {
"body:start": function(current) {
var BASE_PATH = current.basePath === "." ? "" : current.basePath;
var filePath = path.join(this.book.root, "HEADER.html");
try {
return ... | <|file_sep|>index.js.diff
original:
updated:
var fs = require("fs");
var path = require("path");
<|file_sep|>index.js.diff
original:
"body:start": function(current, output) {
var fs = require("fs");
var path = require("path");
updated:
"body:start": function(current) {
<|file_sep|>index.js... | 9858ac20b24d98ca17260f07664c51c22e11ba4b | index.js | index.js | JavaScript |
<|file_sep|>original/database/patch/patch-0008.php
<|file_sep|>current/database/patch/patch-0008.php
<|file_sep|>updated/database/patch/patch-0008.php | <?php
// Remove all usertypes other than technical and admin
/**
* DbPatch makes the following variables available to PHP patches:
*
* @var $this DbPatch_Command_Patch_PHP
* @var $writer DbPatch_Core_Writer
* @var $db Zend_Db_Adapter_Abstract
* @var $phpFile string
*/
$userRows = $db->fetc... | <|file_sep|>original/database/patch/patch-0008.php
<|file_sep|>current/database/patch/patch-0008.php
<|file_sep|>updated/database/patch/patch-0008.php
<?php
// Remove all usertypes other than technical and admin
/**
* DbPatch makes the following variables available to PHP patches:
*
* @var $this DbPatch_Com... | ea453f9e24c865c2d7595a7762c2dc1561f0e629 | database/patch/patch-0008.php | database/patch/patch-0008.php | PHP |
<|file_sep|>original/.travis.yml
env:
- PGUSER=postgres PGDATABASE=postgres
env:
- POSTGRESQL_VERSION="9.5"
- POSTGRESQL_VERSION="10"
node_js:
- "6"
- "8"
before_install:
- sudo service postgresql stop;
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests... | env:
- PGUSER=postgres PGDATABASE=postgres
env:
- POSTGRESQL_VERSION="9.5"
- POSTGRESQL_VERSION="10"
node_js:
- "6"
- "8"
- "10"
before_install:
- sudo service postgresql stop;
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-$POSTGRESQL_... | <|file_sep|>original/.travis.yml
env:
- PGUSER=postgres PGDATABASE=postgres
env:
- POSTGRESQL_VERSION="9.5"
- POSTGRESQL_VERSION="10"
node_js:
- "6"
- "8"
before_install:
- sudo service postgresql stop;
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests... | 398e16b72d13d7ed90dc513e40218ff72653c310 | .travis.yml | .travis.yml | YAML |
<|file_sep|>doc/index.rst.diff
original:
`National Genomics Infrastructure<https://portal.scilifelab.se/genomics/>` for easing
updated:
`National Genomics Infrastructure`_ for easing
<|file_sep|>original/doc/index.rst
Welcome to PM's documentation!
==============================
This is the documentation for PM.
PM s... | This is the documentation for PM.
PM stands for Project Management, and basically it is a set of tools used in the
`National Genomics Infrastructure`_ for easing
the day-to-day tasks of managing and organizing projects and data.
.. toctree::
:maxdepth: 2
Indices and tables
==================
* :ref:`genindex`
... | <|file_sep|>doc/index.rst.diff
original:
`National Genomics Infrastructure<https://portal.scilifelab.se/genomics/>` for easing
updated:
`National Genomics Infrastructure`_ for easing
<|file_sep|>original/doc/index.rst
Welcome to PM's documentation!
==============================
This is the documentation for PM.
PM s... | 091962cebd5828bda74ef2b4fac70dc8ecbdcca6 | doc/index.rst | doc/index.rst | reStructuredText |
<|file_sep|>original/Server/AzureLinkboard.Web/tests/spec/loginControllerSpec.js
it("should have empty login data", function () {
expect(scope.loginData).toBeDefined();
expect(scope.loginData.userName).toBe("");
expect(scope.loginData.password).toBe("");
});
it("should start with an... | });
it("should start with an empty message", function () {
expect(scope.message).toBe("");
});
it("login should go to links page", function () {
scope.login();
expect(location.path()).toBe('/links');
});
it("failed login should set message", function () {
authS... | <|file_sep|>original/Server/AzureLinkboard.Web/tests/spec/loginControllerSpec.js
it("should have empty login data", function () {
expect(scope.loginData).toBeDefined();
expect(scope.loginData.userName).toBe("");
expect(scope.loginData.password).toBe("");
});
it("should start with an... | 6fc0406716766762183fad16625ec63b48e350c1 | Server/AzureLinkboard.Web/tests/spec/loginControllerSpec.js | Server/AzureLinkboard.Web/tests/spec/loginControllerSpec.js | JavaScript |
<|file_sep|>original/exercises/chapter_03/exercise_03_06/exercise_03_06.py
<|file_sep|>current/exercises/chapter_03/exercise_03_06/exercise_03_06.py
<|file_sep|>updated/exercises/chapter_03/exercise_03_06/exercise_03_06.py | # 3-6 Guest List
guest_list = ["Albert Einstein", "Isac Newton", "Marie Curie", "Galileo Galilei"]
message = "Hi " + guest_list[0] + " you are invited to dinner at 7 on saturday."
print(message)
message = "Hi " + guest_list[1] + " you are invited to dinner at 7 on saturday."
print(message)
message = "Hi " + guest_l... | <|file_sep|>original/exercises/chapter_03/exercise_03_06/exercise_03_06.py
<|file_sep|>current/exercises/chapter_03/exercise_03_06/exercise_03_06.py
<|file_sep|>updated/exercises/chapter_03/exercise_03_06/exercise_03_06.py
# 3-6 Guest List
guest_list = ["Albert Einstein", "Isac Newton", "Marie Curie", "Galileo Galil... | 877a7b7449a1d88c14633376a2dfaca8c619c26a | exercises/chapter_03/exercise_03_06/exercise_03_06.py | exercises/chapter_03/exercise_03_06/exercise_03_06.py | Python |
<|file_sep|>original/emacs/README.md
<|file_sep|>current/emacs/README.md
<|file_sep|>updated/emacs/README.md | # Zeus.el
Package to run zeus commands and manage the zeus server from inside Emacs
## Installation
Put `zeus.el` inside your load path (`~/.emacs.d/site-lisp` for example)
```elisp
(setq site-lisp-dir (expand-file-name "site-lisp" user-emacs-directory))
(add-to-list 'load-path site-lisp-dir)
(require 'zeus)
```
##... | <|file_sep|>original/emacs/README.md
<|file_sep|>current/emacs/README.md
<|file_sep|>updated/emacs/README.md
# Zeus.el
Package to run zeus commands and manage the zeus server from inside Emacs
## Installation
Put `zeus.el` inside your load path (`~/.emacs.d/site-lisp` for example)
```elisp
(setq site-lisp-dir (ex... | aaedf030b428a6d0c43db17462156cd358cea65b | emacs/README.md | emacs/README.md | Markdown |
<|file_sep|>original/layers/b2qt/recipes-qt/automotive/qtapplicationmanager/sc-config.yaml
#
# Copyright Pelagicore 2017
#
formatVersion: 1
formatType: am-configuration
---
containers:
selection:
- com.pelagicore.radio: "softwarecontainer"
- "*": "process"
softwarecontainer:
dbus: system
plugins:
co... | #
# Copyright Pelagicore 2017
#
formatVersion: 1
formatType: am-configuration
---
containers:
selection:
- com.pelagicore.calendar: "softwarecontainer"
- "*": "process"
softwarecontainer:
dbus: system
plugins:
container: [ "/usr/lib/libsoftwarecontainer-plugin.so" ] | <|file_sep|>original/layers/b2qt/recipes-qt/automotive/qtapplicationmanager/sc-config.yaml
#
# Copyright Pelagicore 2017
#
formatVersion: 1
formatType: am-configuration
---
containers:
selection:
- com.pelagicore.radio: "softwarecontainer"
- "*": "process"
softwarecontainer:
dbus: system
plugins:
co... | d1a1780192c02a6681561df717f8bbd103d94454 | layers/b2qt/recipes-qt/automotive/qtapplicationmanager/sc-config.yaml | layers/b2qt/recipes-qt/automotive/qtapplicationmanager/sc-config.yaml | YAML |
<|file_sep|>original/README.md
##[markdown-pdf](https://atom.io/packages/markdown-pdf)
Convert markdown-formatted documents to pdf, png or jpeg files without ever leaving Atom.
###Usage
Just focus the window containing your markdown file and use the `convert` command.

You can set... | ##[markdown-pdf](https://atom.io/packages/markdown-pdf)
Convert markdown-formatted documents to pdf, png or jpeg files without ever leaving Atom.
###Usage
Just focus the window containing your markdown file and use the `convert` command.

Convert markdown-formatted documents to pdf, png or jpeg files without ever leaving Atom.
###Usage
Just focus the window containing your markdown file and use the `convert` command.

You can set... | 22707d9539192a031c2063deaba34a332778785a | README.md | README.md | Markdown |
<|file_sep|>original/test/index.js
var Flattenize = require ("../index")
, myImage = new Flattenize ()
;
myImage.convert("http://www.steegle.com/images/chrome.jpg");
<|file_sep|>current/test/index.js
var Flattenize = require ("../index")
, myImage = new Flattenize ()
;
myImage.convert("http://www.steegle.com/... | var Flattenize = require ("../index")
, myImage = new Flattenize ()
;
myImage._flatColors.splice(0, myImage._flatColors.length);
myImage._flatColors.push.apply(myImage._flatColors, [
[255, 255, 255] // white
, [55, 129, 194] // blue
, [77, 183, 73] // green
, [229, 67, 60] // red
, [252, 211, 9] ... | <|file_sep|>original/test/index.js
var Flattenize = require ("../index")
, myImage = new Flattenize ()
;
myImage.convert("http://www.steegle.com/images/chrome.jpg");
<|file_sep|>current/test/index.js
var Flattenize = require ("../index")
, myImage = new Flattenize ()
;
myImage.convert("http://www.steegle.com/... | 44366079615179a78a0f97b2ceedf03c07684001 | test/index.js | test/index.js | JavaScript |
<|file_sep|>original/packages/br/brain-bleep.yaml
<|file_sep|>current/packages/br/brain-bleep.yaml
<|file_sep|>updated/packages/br/brain-bleep.yaml | homepage: ''
changelog-type: markdown
hash: 0cc25043bf2e0f0691879fedf9b2219c488421a8301157baab952db9a6a98c02
test-bench-deps: {}
maintainer: hawk.alan@gmail.com
synopsis: primitive imperative language
changelog: ! '# Revision history for brain-bleep
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsu... | <|file_sep|>original/packages/br/brain-bleep.yaml
<|file_sep|>current/packages/br/brain-bleep.yaml
<|file_sep|>updated/packages/br/brain-bleep.yaml
homepage: ''
changelog-type: markdown
hash: 0cc25043bf2e0f0691879fedf9b2219c488421a8301157baab952db9a6a98c02
test-bench-deps: {}
maintainer: hawk.alan@gmail.com
synopsis:... | 52b2997a9853ae5c90e277450556cb28d080867a | packages/br/brain-bleep.yaml | packages/br/brain-bleep.yaml | YAML |
<|file_sep|>original/config/initializers/slack-ruby-bot/commands/base.rb
module SlackRubyBot
module Commands
class Base
class << self
alias_method :_invoke, :invoke
def invoke(client, data)
_invoke client, data
rescue Mongoid::Errors::Validations => e
logger.inf... |
module SlackRubyBot
module Commands
class Base
class << self
alias_method :_invoke, :invoke
def invoke(client, data)
_invoke client, data
rescue Mongoid::Errors::Validations => e
logger.info "#{name.demodulize.upcase}: #{client.owner}, error - #{e.document.class... | <|file_sep|>original/config/initializers/slack-ruby-bot/commands/base.rb
module SlackRubyBot
module Commands
class Base
class << self
alias_method :_invoke, :invoke
def invoke(client, data)
_invoke client, data
rescue Mongoid::Errors::Validations => e
logger.inf... | cc3782d903973953dfe5b475db646ba6ca82a2f9 | config/initializers/slack-ruby-bot/commands/base.rb | config/initializers/slack-ruby-bot/commands/base.rb | Ruby |
<|file_sep|>original/app/views/devise/registrations/edit.html.erb
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password, :autocomplete => "off" %></div>
<div><%= f.label :pass... |
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password, :autocomplete => "off" %></div>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confir... | <|file_sep|>original/app/views/devise/registrations/edit.html.erb
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password, :autocomplete => "off" %></div>
<div><%= f.label :pass... | 35204fae85c061a99359a8c07d01e5048ca37133 | app/views/devise/registrations/edit.html.erb | app/views/devise/registrations/edit.html.erb | HTML+ERB |
<|file_sep|>original/bower.json
"authors": [
"Jérôme Desboeufs <jerome.desboeufs@gmail.com>"
],
"description": "Dossier de Demande Simplifié",
"moduleType": [
"globals"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"app/bower_components",
"test",
... | "authors": [
"Jérôme Desboeufs <jerome.desboeufs@gmail.com>"
],
"description": "Dossier de Demande Simplifié",
"moduleType": [
"globals"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"app/bower_components",
"test",
"tests"
],
"dependencies": {... | <|file_sep|>original/bower.json
"authors": [
"Jérôme Desboeufs <jerome.desboeufs@gmail.com>"
],
"description": "Dossier de Demande Simplifié",
"moduleType": [
"globals"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"app/bower_components",
"test",
... | b4af1d6a22b83f27b9e697becafe604a1239f0f1 | bower.json | bower.json | JSON |
<|file_sep|>original/src/OrderStatus.php
<|file_sep|>current/src/OrderStatus.php
<|file_sep|>updated/src/OrderStatus.php | <?php
namespace Voronkovich\SberbankAcquiring;
/**
* Order statuses.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
*/
class OrderStatus
{
// An order was successfully registered, but is'nt paid yet
const REGISTERED = 0;
// An order's amount was successfully holded (for two-stage payments ... | <|file_sep|>original/src/OrderStatus.php
<|file_sep|>current/src/OrderStatus.php
<|file_sep|>updated/src/OrderStatus.php
<?php
namespace Voronkovich\SberbankAcquiring;
/**
* Order statuses.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
*/
class OrderStatus
{
// An order was successfully register... | 2b77700d242cd4f0ba64d50330974987a6a7b0f5 | src/OrderStatus.php | src/OrderStatus.php | PHP |
<|file_sep|>website/src/pages/errors.js.diff
original:
updated:
import {useLocation} from '@docusaurus/router';
<|file_sep|>website/src/pages/errors.js.diff
original:
import 'url-search-params-polyfill';
updated:
<|file_sep|>website/src/pages/errors.js.diff
original:
updated:
import 'url-search-params-polyfill';
<|f... | import {useLocation} from '@docusaurus/router';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
import styles from './styles.module.css'
import errorCodes from '../../../errors.json'
import 'url-search-params-polyfill';
function Errors() {
const location = useLocation();
const context = useDocu... | <|file_sep|>website/src/pages/errors.js.diff
original:
updated:
import {useLocation} from '@docusaurus/router';
<|file_sep|>website/src/pages/errors.js.diff
original:
import 'url-search-params-polyfill';
updated:
<|file_sep|>website/src/pages/errors.js.diff
original:
updated:
import 'url-search-params-polyfill';
<|f... | 6d19f9381e6e3773e70ebf5502678eed69017ddb | website/src/pages/errors.js | website/src/pages/errors.js | JavaScript |
<|file_sep|>original/.travis.yml
language: python
dist: trusty
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
install:
- pip install -r requirements.txt -r requirements-dev.txt
script:
- py.test --cache-clear --flake8 mdx_attr_cols.py tests.py
<|file_sep|>current/.travis.yml
language: python
dist:... | language: python
dist: trusty
matrix:
include:
- { python: "2.7" }
- { python: "3.4" }
- { python: "3.5" }
- { python: "3.6" }
- { python: "3.7", dist: xenial, sudo: true } # Python 3.7+ requires Xenial
install:
- pip install -r requirements.txt -r requirements-dev.txt
script:
- py.test --c... | <|file_sep|>original/.travis.yml
language: python
dist: trusty
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
install:
- pip install -r requirements.txt -r requirements-dev.txt
script:
- py.test --cache-clear --flake8 mdx_attr_cols.py tests.py
<|file_sep|>current/.travis.yml
language: python
dist:... | 071957cd1572aadccc449f461d6d09a3d430b7eb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.github/workflows/nodejs.yml
<|file_sep|>current/.github/workflows/nodejs.yml
<|file_sep|>updated/.github/workflows/nodejs.yml | name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version... | <|file_sep|>original/.github/workflows/nodejs.yml
<|file_sep|>current/.github/workflows/nodejs.yml
<|file_sep|>updated/.github/workflows/nodejs.yml
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/chec... | 7b714717268853fbb2f5697fede9a17ee06d7671 | .github/workflows/nodejs.yml | .github/workflows/nodejs.yml | YAML |
<|file_sep|>original/scripts/orchestration/getCertForElb.sh
#!/bin/bash
dsmFqdn=${1}
curl -O https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto --debug certonly --webroot -w /usr/share/nginx/html/ -d ${dsmFqdn} --non-interactive --agree-tos --email event@trenddemos.com
sudo chown -R ec2-user:ec2-user... | #!/bin/bash
dsmFqdn=${1}
curl -O https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto --debug certonly --webroot -w /usr/share/nginx/html/ -d ${dsmFqdn} --non-interactive --agree-tos --email event@trenddemos.com
sudo chown -R ec2-user:ec2-user /etc/letsencrypt
aws iam delete-server-certificate --server... | <|file_sep|>original/scripts/orchestration/getCertForElb.sh
#!/bin/bash
dsmFqdn=${1}
curl -O https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto --debug certonly --webroot -w /usr/share/nginx/html/ -d ${dsmFqdn} --non-interactive --agree-tos --email event@trenddemos.com
sudo chown -R ec2-user:ec2-user... | b6af14a98ec129314db5af81747b30c11c67f52e | scripts/orchestration/getCertForElb.sh | scripts/orchestration/getCertForElb.sh | Shell |
<|file_sep|>packages/ta/tasty-th.yaml.diff
original:
hash: d4554a41fd79a42c7e414a2cd04dfe4863bf8b8772f9c0e916030a1f56915b39
test-bench-deps: {}
updated:
hash: 8b8fbb608db5a4b36298ff3a95f4a75ecfa15d06ac93c055cbacd91a0c97944e
test-bench-deps:
tasty-th: -any
base: ! '>=4 && <5'
tasty-hunit: -any
<|file_sep|>packages... | changelog: ''
basic-deps:
base: ! '>=4 && <5'
haskell-src-exts: ! '>=1.18.0'
tasty: -any
template-haskell: -any
all-versions:
- '0.1.0'
- '0.1.1'
- '0.1.2'
- '0.1.3'
- '0.1.4'
- '0.1.5'
- '0.1.6'
- '0.1.7'
author: Oscar Finnsson & Emil Nordling & Benno Fünfstück
latest: '0.1.7'
description-type: haddock
descrip... | <|file_sep|>packages/ta/tasty-th.yaml.diff
original:
hash: d4554a41fd79a42c7e414a2cd04dfe4863bf8b8772f9c0e916030a1f56915b39
test-bench-deps: {}
updated:
hash: 8b8fbb608db5a4b36298ff3a95f4a75ecfa15d06ac93c055cbacd91a0c97944e
test-bench-deps:
tasty-th: -any
base: ! '>=4 && <5'
tasty-hunit: -any
<|file_sep|>packages... | 003d8e433fcc059ef02326b0f424bcd8ac520d50 | packages/ta/tasty-th.yaml | packages/ta/tasty-th.yaml | YAML |
<|file_sep|>original/chrome/browser/resources/options/password_manager_list.css
}
html[dir='ltr'] button.password-button {
right: 50px;
}
html[dir='rtl'] button.password-button {
left: 50px;
}
.inactive-password {
background: transparent;
border: none;
}
#saved-passwords-list .url {
box-sizing: border-box... | }
html[dir='ltr'] button.password-button {
right: 50px;
}
html[dir='rtl'] button.password-button {
left: 50px;
}
input[type="password"].inactive-password {
background: transparent;
border: none;
}
#saved-passwords-list .url {
box-sizing: border-box;
width: 40%;
}
#saved-passwords-list .name { | <|file_sep|>original/chrome/browser/resources/options/password_manager_list.css
}
html[dir='ltr'] button.password-button {
right: 50px;
}
html[dir='rtl'] button.password-button {
left: 50px;
}
.inactive-password {
background: transparent;
border: none;
}
#saved-passwords-list .url {
box-sizing: border-box... | 13786dd536bb42858d03db754b0dfe39a749a47f | chrome/browser/resources/options/password_manager_list.css | chrome/browser/resources/options/password_manager_list.css | CSS |
<|file_sep|>original/package.json
},
"keywords": [
"wallpaper",
"gnome",
"linux",
"lockscreen"
],
"author": {
"name": "Fahad Hossain",
"email": "8bit.demoncoder@gmail.com",
"url": "thewebaholic.ml"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/fa7ad/linux-locksc... | },
"keywords": [
"wallpaper",
"gnome",
"linux",
"lockscreen"
],
"author": {
"name": "Fahad Hossain",
"email": "8bit.demoncoder@gmail.com",
"url": "thewebaholic.ml"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/fa7ad/linux-lockscreen/issues"
},
"homepage": "h... | <|file_sep|>original/package.json
},
"keywords": [
"wallpaper",
"gnome",
"linux",
"lockscreen"
],
"author": {
"name": "Fahad Hossain",
"email": "8bit.demoncoder@gmail.com",
"url": "thewebaholic.ml"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/fa7ad/linux-locksc... | 06dfe55e9edc8490c479121691e5c92a29f40e50 | package.json | package.json | JSON |
<|file_sep|>original/src/Dependencies/Collections/README.md
# Microsoft.CodeAnalysis.Collections
This package contains shared code implementing specialized collection types.
* `SegmentedArray<T>`: This type behaves similarly to `T[]`, but segments the underlying storage to avoid allocating arrays in the Large Object... | # Microsoft.CodeAnalysis.Collections
This package contains shared code implementing specialized collection types.
* `SegmentedArray<T>`: This type behaves similarly to `T[]`, but segments the underlying storage to avoid allocating arrays in the Large Object Heap. This type is most applicable in scenarios where all o... | <|file_sep|>original/src/Dependencies/Collections/README.md
# Microsoft.CodeAnalysis.Collections
This package contains shared code implementing specialized collection types.
* `SegmentedArray<T>`: This type behaves similarly to `T[]`, but segments the underlying storage to avoid allocating arrays in the Large Object... | 5902ec51f3b1f2218fadb7a11b01853053ab5a43 | src/Dependencies/Collections/README.md | src/Dependencies/Collections/README.md | Markdown |
<|file_sep|>src/client/components/ThreadPost/ThreadPost.jsx.diff
original:
updated:
import uuid from 'uuid'
<|file_sep|>src/client/components/ThreadPost/ThreadPost.jsx.diff
original:
const { id, title, date, imgsrc, comment, ext } = post
updated:
const { id, title, date, imgsrc, comment, ext, references } = po... | <span className='thread-post-number'>No.{id}</span>
<span className='thread-post-backlink'>{renderRefs(references)}</span>
<span className='mdi mdi-dots-vertical thread-post-options'></span>
</div>
{createMediaIfExists(ID, SRC, ext)}
<b... | <|file_sep|>src/client/components/ThreadPost/ThreadPost.jsx.diff
original:
updated:
import uuid from 'uuid'
<|file_sep|>src/client/components/ThreadPost/ThreadPost.jsx.diff
original:
const { id, title, date, imgsrc, comment, ext } = post
updated:
const { id, title, date, imgsrc, comment, ext, references } = po... | 0742f02e92ff2f29c0b956288a5baed103e7c980 | src/client/components/ThreadPost/ThreadPost.jsx | src/client/components/ThreadPost/ThreadPost.jsx | JSX |
<|file_sep|>original/package.json
"cucumber"
],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@types/mocha": "9.0.0",
"@types/node": "14.17.... | "cucumber"
],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@types/mocha": "9.0.0",
"@types/node": "14.17.16",
"core-js": "3.17.3",
... | <|file_sep|>original/package.json
"cucumber"
],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@types/mocha": "9.0.0",
"@types/node": "14.17.... | 1087e27ff14753fba8352efe3b080d6c54e52e95 | package.json | package.json | JSON |
<|file_sep|>original/_config.yml
signoff: # Your name.
disqus_shortname: # disqus comment thread for post header options. ( leave blank if unwanted. )
facebook_appid: # appid for like button, remove from /_includes/share.html if unwanted.
google_analytics: # set tracking, remove from /javascripts/basic.js if... | title: Nails For Nickels
description: A jekyll theme. Because I scribble.
url: # Site url.
signoff: # Your name.
disqus_shortname: # disqus comment thread for post header options. ( leave blank if unwanted. )
facebook_appid: # appid for like button, remove from /_includes/share.h... | <|file_sep|>original/_config.yml
signoff: # Your name.
disqus_shortname: # disqus comment thread for post header options. ( leave blank if unwanted. )
facebook_appid: # appid for like button, remove from /_includes/share.html if unwanted.
google_analytics: # set tracking, remove from /javascripts/basic.js if... | 6abf3b86df8c0eca2c0b1bfcf30c5115c4f1d174 | _config.yml | _config.yml | YAML |
<|file_sep|>original/CHANGELOG.md
# 1.2.3
* Fixed: More exact (33% -> 33.33%) cube dimensions for cube grid spinner
# 1.2.2
* Fixed: Use variable for spinner size (defaults to 40px)
# 1.2.1
* Fixed: Two spinners were slightly broken on Android
* Changed: Bumped default top and bottom margin to 40px
# 1.2.0
* Add... | # 1.2.3
* Fixed: More exact (33% -> 33.33%) cube dimensions for cube grid spinner
* Fixed: Comment format for HTML inside CSS, for easier copy and pasting (removed * at the beginning of each row)
# 1.2.2
* Fixed: Use variable for spinner size (defaults to 40px)
# 1.2.1
* Fixed: Two spinners were slightly broken on... | <|file_sep|>original/CHANGELOG.md
# 1.2.3
* Fixed: More exact (33% -> 33.33%) cube dimensions for cube grid spinner
# 1.2.2
* Fixed: Use variable for spinner size (defaults to 40px)
# 1.2.1
* Fixed: Two spinners were slightly broken on Android
* Changed: Bumped default top and bottom margin to 40px
# 1.2.0
* Add... | f7a9515225730d0817bbb10dff0f436359be5a91 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/chrome/browser/cocoa/objc_zombie.h
#ifndef CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#pragma once
#import <Foundation/Foundation.h>
// You should think twice every single time you use anything from this
// namespace.
namespace ObjcEvilDoers {
// Enab... | #ifndef CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#pragma once
#import <Foundation/Foundation.h>
// You should think twice every single time you use anything from this
// namespace.
namespace ObjcEvilDoers {
// Enable zombie object debugging. This implements a variant of... | <|file_sep|>original/chrome/browser/cocoa/objc_zombie.h
#ifndef CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_
#pragma once
#import <Foundation/Foundation.h>
// You should think twice every single time you use anything from this
// namespace.
namespace ObjcEvilDoers {
// Enab... | 34140265c404df02af11ed7684b7c087dfe5b8c8 | chrome/browser/cocoa/objc_zombie.h | chrome/browser/cocoa/objc_zombie.h | C |
<|file_sep|>original/src/Grid.js
import React from 'react';
const styles = {
width: 200,
height: 200,
border: '1px solid cyan',
position: 'relative',
};
export default ({ children }) => ({
render() {
return (
<div style={styles}>{children}</div>
);
}
});
<|file_sep|>current/src/Grid.js
impor... | import React from 'react';
const styles = {
width: 200,
height: 200,
border: '1px solid cyan',
position: 'relative',
};
export default ({ children }) => (
<div style={styles}>{children}</div>
); | <|file_sep|>original/src/Grid.js
import React from 'react';
const styles = {
width: 200,
height: 200,
border: '1px solid cyan',
position: 'relative',
};
export default ({ children }) => ({
render() {
return (
<div style={styles}>{children}</div>
);
}
});
<|file_sep|>current/src/Grid.js
impor... | 8d2356d18b1c2d2d8ac8c12ebc7a0aec8f29a335 | src/Grid.js | src/Grid.js | JavaScript |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
- "5.11"
- "4.0"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
- "5.11"
- "4.0"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
# - "5.11"
# - "4.0" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
- "5.11"
- "4.0"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
- "5.11"
- "4.0"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "6.5"
- "6.1"
- "6"
# - "5.11"
#... | c46bc6fcc1bb44799ff11e94ba01d40f69006751 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java
<|file_sep|>current/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java
<|file_sep|>updated/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java | package com.ttaylorr.ctci.answers.trees;
import com.ttaylorr.ctci.answers.trees.util.TreeNode;
import com.ttaylorr.ctci.meta.Solution;
@Solution(chapter = 4, problem = 6)
public class CommonAncestor {
// Example usage: CommonAncestorFinder.of(foo, bar).in(baz);
public static CommonAncestor.Builder of(TreeNode... | <|file_sep|>original/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java
<|file_sep|>current/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java
<|file_sep|>updated/src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java
package com.ttaylorr.ctci.answers.trees;
import com.ttaylo... | 5f46f0353f8b597825019981e4b23b0d7337801b | src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java | src/main/java/com/ttaylorr/ctci/answers/trees/CommonAncestor.java | Java |
<|file_sep|>original/requirements.txt
pydplace==0.4
Django==1.11.4
django-appconf==1.0.2
django-bootstrap3==9.0.0
django-filter==1.0.4
djangorestframework==3.6.4
ete3==3.0.0b35
psycopg2==2.7.3
python-nexus==1.53
six==1.10.0
coverage==4.4.1
flake8==3.4.1
newick==0.8.0
clldutils==1.13.6
attrs==17.2.0
<|file_sep|>current/... | pydplace==0.4
Django==1.11.4
django-appconf==1.0.2
django-bootstrap3==9.0.0
django-filter==1.0.4
djangorestframework==3.6.4
ete3==3.0.0b35
psycopg2==2.7.3.1
python-nexus==1.53
six==1.10.0
coverage==4.4.1
flake8==3.4.1
newick==0.8.0
clldutils==1.13.6
attrs==17.2.0 | <|file_sep|>original/requirements.txt
pydplace==0.4
Django==1.11.4
django-appconf==1.0.2
django-bootstrap3==9.0.0
django-filter==1.0.4
djangorestframework==3.6.4
ete3==3.0.0b35
psycopg2==2.7.3
python-nexus==1.53
six==1.10.0
coverage==4.4.1
flake8==3.4.1
newick==0.8.0
clldutils==1.13.6
attrs==17.2.0
<|file_sep|>current/... | 398ae035414efffe6f7d06869bac7c51c638b56f | requirements.txt | requirements.txt | Text |
<|file_sep|>original/config/packages/security.yaml
security:
enable_authenticator_manager: true
access_control:
- { path: '^/api/doc', roles: PUBLIC_ACCESS }
- { path: '^/api$', roles: PUBLIC_ACCESS }
- { path: '^/lm/[a-zA-Z0-9]{64}$', roles: PUBLIC_ACCESS }
- { path: '^/ci-report-dl/[a-zA-Z0-9]{64}... | security:
enable_authenticator_manager: true
access_control:
- { path: '^/api/doc', roles: PUBLIC_ACCESS }
- { path: '^/api$', roles: PUBLIC_ACCESS }
- { path: '^/lm/[a-zA-Z0-9]{64}$', roles: PUBLIC_ACCESS }
- { path: '^/ci-report-dl/[a-zA-Z0-9]{64}$', roles: PUBLIC_ACCESS }
- { path: '^/applica... | <|file_sep|>original/config/packages/security.yaml
security:
enable_authenticator_manager: true
access_control:
- { path: '^/api/doc', roles: PUBLIC_ACCESS }
- { path: '^/api$', roles: PUBLIC_ACCESS }
- { path: '^/lm/[a-zA-Z0-9]{64}$', roles: PUBLIC_ACCESS }
- { path: '^/ci-report-dl/[a-zA-Z0-9]{64}... | 14199102efe82f71d29f07262b4f3bb76c995c5a | config/packages/security.yaml | config/packages/security.yaml | YAML |
<|file_sep|>original/roles/ic.rb
:prefix => "27",
:gateway => "193.63.75.97"
},
:inet6 => {
:prefix => "64",
:gateway => "fe80::5:73ff:fea0:1"
}
}
}
},
:web => {
:backends => %w(rails1 rails2 rails3),
:fileserver => "ironbelly"
}
)
... | :prefix => "27",
:gateway => "193.63.75.97"
},
:inet6 => {
:prefix => "64",
:gateway => "fe80::5:73ff:fea0:1"
}
}
}
},
:passenger => {
:ruby_version => "2.3"
},
:web => {
:backends => %w(rails1 rails2 rails3),
:fileserver => "... | <|file_sep|>original/roles/ic.rb
:prefix => "27",
:gateway => "193.63.75.97"
},
:inet6 => {
:prefix => "64",
:gateway => "fe80::5:73ff:fea0:1"
}
}
}
},
:web => {
:backends => %w(rails1 rails2 rails3),
:fileserver => "ironbelly"
}
)
... | e8f7df6aebc01023d9bb5bd0864fcfb2a0f99d03 | roles/ic.rb | roles/ic.rb | Ruby |
<|file_sep|>original/example/package.json
"author": {
"name": "Daniel Perez Alvarez",
"email": "unindented@gmail.com",
"url": "http://unindented.org/"
},
"private": true,
"main": "src/index.js",
"scripts": {
"clean": "rimraf dist",
"start": "electron .",
"exe32": "electron-packager . p... | "author": {
"name": "Daniel Perez Alvarez",
"email": "unindented@gmail.com",
"url": "http://unindented.org/"
},
"private": true,
"main": "src/index.js",
"scripts": {
"clean": "rimraf dist",
"start": "electron .",
"exe32": "electron-packager . poopie --platform linux --arch ia32 --out d... | <|file_sep|>original/example/package.json
"author": {
"name": "Daniel Perez Alvarez",
"email": "unindented@gmail.com",
"url": "http://unindented.org/"
},
"private": true,
"main": "src/index.js",
"scripts": {
"clean": "rimraf dist",
"start": "electron .",
"exe32": "electron-packager . p... | b6f7f7df969731e44983f9dbb772311761287111 | example/package.json | example/package.json | JSON |
<|file_sep|>original/fs.js
exports = module.exports = relative;
exports.readFile = readFile;
function relative(dirname) {
return {
readFile: readFileRelative
};
function* readFileRelative(path) {
if (path[0] === ".") path = pathjoin(dirname, path);
return yield* readFile(path);
}
}
function* read... |
// Wrapper around tedit's private APIs to provide access to the vfs.
exports = module.exports = relative;
exports.readFile = readFile;
function relative(dirname) {
return {
readFile: readFileRelative
};
function* readFileRelative(path) {
if (path[0] === ".") path = pathjoin(dirname, path);
return y... | <|file_sep|>original/fs.js
exports = module.exports = relative;
exports.readFile = readFile;
function relative(dirname) {
return {
readFile: readFileRelative
};
function* readFileRelative(path) {
if (path[0] === ".") path = pathjoin(dirname, path);
return yield* readFile(path);
}
}
function* read... | 6475a829e7caf0dec9618ed4fc6e74cb526089a8 | fs.js | fs.js | JavaScript |
<|file_sep|>original/library/Sofzo/Form.php
<?php
class Soflomo_Form extends Zend_Form
{
/**
* Constructor
*
* @return Soflomo_Form
*/
public function __construct ($options = null)
{
$this->addPrefixPath('Soflomo_Form_', 'Soflomo/Form/');
parent::__construct($options);
... | <?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In j... | <|file_sep|>original/library/Sofzo/Form.php
<?php
class Soflomo_Form extends Zend_Form
{
/**
* Constructor
*
* @return Soflomo_Form
*/
public function __construct ($options = null)
{
$this->addPrefixPath('Soflomo_Form_', 'Soflomo/Form/');
parent::__construct($options);
... | 07d4049cf1979439d8de18854acaf17975cbf3f6 | library/Sofzo/Form.php | library/Sofzo/Form.php | PHP |
<|file_sep|>original/app/common/resourceCache/reducer.js
import {
SET_RESOURCE,
MARK_DASHBOARD_DIRTY,
RESET_RESOURCE_CACHE
} from './actions';
const markAllDirty = (keys, state) => {
const dirty = {};
keys.forEach((key) => {
dirty[key] = { ...state[key], dirty: true };
});
return ... | import {
SET_RESOURCE,
MARK_DASHBOARD_DIRTY,
RESET_RESOURCE_CACHE
} from './actions';
const markAllDirty = (keys, state) => {
const dirty = {};
keys.forEach((key) => {
if (state[key]) {
dirty[key] = { ...state[key], dirty: true };
}
});
return dirty;
};
const ... | <|file_sep|>original/app/common/resourceCache/reducer.js
import {
SET_RESOURCE,
MARK_DASHBOARD_DIRTY,
RESET_RESOURCE_CACHE
} from './actions';
const markAllDirty = (keys, state) => {
const dirty = {};
keys.forEach((key) => {
dirty[key] = { ...state[key], dirty: true };
});
return ... | 8436bfbd641fd92d85116a4f6683d18fc23282a7 | app/common/resourceCache/reducer.js | app/common/resourceCache/reducer.js | JavaScript |
<|file_sep|>original/brew.sh
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
brew tap Homebrew/bundle
brew bundle
# Set up GNU core utilities (those that come with OS X are outdated).
echo 'Be sure to add `$(brew --prefix coreutils)/libexec/gnubi... | # Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
brew tap Homebrew/bundle
brew bundle
# Set up GNU core utilities (those that come with OS X are outdated).
echo 'Be sure to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.'
ln -s /usr/lo... | <|file_sep|>original/brew.sh
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
brew tap Homebrew/bundle
brew bundle
# Set up GNU core utilities (those that come with OS X are outdated).
echo 'Be sure to add `$(brew --prefix coreutils)/libexec/gnubi... | fa6f85b377577aed5b5d849b097f0fec6a064711 | brew.sh | brew.sh | Shell |
<|file_sep|>.gitlab-ci.yml.diff
original:
image: ruby:2.1
updated:
<|file_sep|>.gitlab-ci.yml.diff
original:
updated:
stage: deploy
image: ruby:2.1
<|file_sep|>.gitlab-ci.yml.diff
original:
- jekyll build -d public/
updated:
- gem install redcarpet
- jekyll build -d public
<|file_sep|>original/.gitlab-ci.y... | pages:
stage: deploy
image: ruby:2.1
script:
- gem install jekyll
- gem install redcarpet
- jekyll build -d public
artifacts:
paths:
- public
only:
- master | <|file_sep|>.gitlab-ci.yml.diff
original:
image: ruby:2.1
updated:
<|file_sep|>.gitlab-ci.yml.diff
original:
updated:
stage: deploy
image: ruby:2.1
<|file_sep|>.gitlab-ci.yml.diff
original:
- jekyll build -d public/
updated:
- gem install redcarpet
- jekyll build -d public
<|file_sep|>original/.gitlab-ci.y... | 8208d64a30cd01f25ac3bbede22f2f319a4c15ba | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>original/package.json
{
"name": "topmodel",
"version": "0.1.0",
"description": "TopModel",
"main": "index.js",
"directories": {
"example": "examples"
},
"dependencies": {
"babel": "^5.1.11",
"gremlin-client": "^0.3.1",
"is_js": "^0.7.3",
"lodash": "^3.7.0",
"merge-defau... | {
"name": "topmodel",
"version": "0.1.0",
"description": "TopModel",
"main": "index.js",
"directories": {
"example": "examples"
},
"dependencies": {
"babel": "^5.1.11",
"basho-riak-client": "^1.1.3",
"gremlin-client": "^0.3.1",
"is_js": "^0.7.3",
"lodash": "^3.7.0",
"merge-defa... | <|file_sep|>original/package.json
{
"name": "topmodel",
"version": "0.1.0",
"description": "TopModel",
"main": "index.js",
"directories": {
"example": "examples"
},
"dependencies": {
"babel": "^5.1.11",
"gremlin-client": "^0.3.1",
"is_js": "^0.7.3",
"lodash": "^3.7.0",
"merge-defau... | 3a0d39f802c1c5e209f99ab590410def2be79d5b | package.json | package.json | JSON |
<|file_sep|>original/plugin/pivo.rb
class Pivo
attr_reader :project
def initialize(token, project_id)
PivotalTracker::Client.use_ssl = true
PivotalTracker::Client.token = token
@project = PivotalTracker::Project.find(project_id)
end
def print_stories
project.stories.all.each do |story|
p... | PivotalTracker::Client.use_ssl = true
PivotalTracker::Client.token = token
@project = PivotalTracker::Project.find(project_id)
end
def print_stories
project.stories.all.each do |story|
puts " [##{story.id}] - {#{story.current_state}} #{story.name} {#{story.owned_by}}"
end
end
%w(sta... | <|file_sep|>original/plugin/pivo.rb
class Pivo
attr_reader :project
def initialize(token, project_id)
PivotalTracker::Client.use_ssl = true
PivotalTracker::Client.token = token
@project = PivotalTracker::Project.find(project_id)
end
def print_stories
project.stories.all.each do |story|
p... | e8c0b51145da6c182fd429c4b048f9bb9e725119 | plugin/pivo.rb | plugin/pivo.rb | Ruby |
<|file_sep|>frontend/upload_to_s3.sh.diff
original:
#!/bin/sh
updated:
#!/bin/bash
<|file_sep|>original/frontend/upload_to_s3.sh
#!/bin/sh
# This script syncs the current directory to S3 to be hosted as a static website
aws s3 sync dist s3://beta.after.heap.fi/ --profile heap --region eu-west-1 --exclude "*.map*" --e... | #!/bin/bash
# This script syncs the current directory to S3 to be hosted as a static website
# Bash strict mode
set -euo pipefail
REGION="eu-west-1"
PROFILE="heap"
BUCKET="after.heap.fi"
SYNC_BASE_ARGS="s3://$BUCKET/ --profile $PROFILE --region $REGION"
SYNC_FILE_ARGS="--exclude '*.map*' --exclude '*.gz'"
if [ $# ... | <|file_sep|>frontend/upload_to_s3.sh.diff
original:
#!/bin/sh
updated:
#!/bin/bash
<|file_sep|>original/frontend/upload_to_s3.sh
#!/bin/sh
# This script syncs the current directory to S3 to be hosted as a static website
aws s3 sync dist s3://beta.after.heap.fi/ --profile heap --region eu-west-1 --exclude "*.map*" --e... | 5734b1da95cf15a0105c3dfae3032afdd2dc9776 | frontend/upload_to_s3.sh | frontend/upload_to_s3.sh | Shell |
<|file_sep|>original/src/docs/deployment/amazon-s3.md
Amazon S3 deployment provider copies all or selected artifacts to Amazon S3 storage.
## Provider settings
* **Access key ID** (`access_key_id`) - AWS account access key.
* **Secret access key** (`secret_access_key`) - AWS secret access key.
* **Bucket name** (`buc... | Amazon S3 deployment provider copies all or selected artifacts to Amazon S3 storage.
## Provider settings
* **Access key ID** (`access_key_id`) - AWS account access key.
* **Secret access key** (`secret_access_key`) - AWS secret access key.
* **Bucket name** (`bucket`) - the name of bucket to copy artifacts to.
* **R... | <|file_sep|>original/src/docs/deployment/amazon-s3.md
Amazon S3 deployment provider copies all or selected artifacts to Amazon S3 storage.
## Provider settings
* **Access key ID** (`access_key_id`) - AWS account access key.
* **Secret access key** (`secret_access_key`) - AWS secret access key.
* **Bucket name** (`buc... | f0a7d8fb874bb91769a3309b427053dd04385df0 | src/docs/deployment/amazon-s3.md | src/docs/deployment/amazon-s3.md | Markdown |
<|file_sep|>src/utils/parseUrl.js.diff
original:
updated:
<|file_sep|>src/utils/parseUrl.js.diff
original:
throw new Error('Must provide scheme in url or baseUrl to parse.');
updated:
throw new Error(
`Must provide scheme in url or baseUrl to parse. \`url\` provided: ${url}. \`baseUrl\` provided: ... | if (!hasScheme(url)) {
if (!hasScheme(baseUrl)) {
throw new Error(
`Must provide scheme in url or baseUrl to parse. \`url\` provided: ${url}. \`baseUrl\` provided: ${baseUrl}.`
);
}
}
if (!hasScheme(url)) {
if (url[0] !== '/') {
throw new Error(
`Only absolute URLs a... | <|file_sep|>src/utils/parseUrl.js.diff
original:
updated:
<|file_sep|>src/utils/parseUrl.js.diff
original:
throw new Error('Must provide scheme in url or baseUrl to parse.');
updated:
throw new Error(
`Must provide scheme in url or baseUrl to parse. \`url\` provided: ${url}. \`baseUrl\` provided: ... | f1a86242849a9e75fd555dfdc95322d563b26646 | src/utils/parseUrl.js | src/utils/parseUrl.js | JavaScript |
<|file_sep|>original/Gui/opensim/view/src/org/opensim/threejs/VisualizerWindowAction.java
import org.opensim.view.pub.ViewDB;
@ActionID(
category = "Edit",
id = "org.opensim.threejs.VisualizerWindow"
)
@ActionRegistration(
displayName = "#CTL_VisualizerWindow"
)
@ActionReference(path = "Menu/Wi... | import org.opensim.view.pub.ViewDB;
@ActionID(
category = "Edit",
id = "org.opensim.threejs.VisualizerWindow"
)
@ActionRegistration(
displayName = "#CTL_VisualizerWindow"
)
@ActionReference(path = "Menu/Window", position = 3333)
@Messages("CTL_VisualizerWindow=Vis Browser")
public final class V... | <|file_sep|>original/Gui/opensim/view/src/org/opensim/threejs/VisualizerWindowAction.java
import org.opensim.view.pub.ViewDB;
@ActionID(
category = "Edit",
id = "org.opensim.threejs.VisualizerWindow"
)
@ActionRegistration(
displayName = "#CTL_VisualizerWindow"
)
@ActionReference(path = "Menu/Wi... | c277cbffd0811cf860cd5a1a9e023a94147a61e4 | Gui/opensim/view/src/org/opensim/threejs/VisualizerWindowAction.java | Gui/opensim/view/src/org/opensim/threejs/VisualizerWindowAction.java | Java |
<|file_sep|>README.md.diff
original:
This was created to help bridge the gap of a legacy project that uses SQLite.
Sqlite3 is commonly used in embedded products where C/C++ is the target language.
SqlToCpp is a python tools to help create structures that represent the database in C++.
updated:
## The problem this solve... |
# Requried for stable release
[x] Convert a SQlite3 schema into a C++ structure
[x] Create callback functions that are used with SQLite3 C API
[ ] Documentation in README.md on how this tools works
[ ] Create an API from the C++ structures to perform CRUD opperations
[ ] Create an API that performs SELECT with JOI... | <|file_sep|>README.md.diff
original:
This was created to help bridge the gap of a legacy project that uses SQLite.
Sqlite3 is commonly used in embedded products where C/C++ is the target language.
SqlToCpp is a python tools to help create structures that represent the database in C++.
updated:
## The problem this solve... | 6f372386f567796842ddce62433e98890bf67ee4 | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
sudo: false
language: python
python:
- 2.7
- 3.5
install:
- pip install pytest-cov
- pip install -r requirements.txt
script:
- py.test --cov=vnchart/
after_success:
- bash <(curl -s https://codecov.io/bash)
<|file_sep|>current/.travis.yml
sudo: false
language: python
... |
python:
- 2.7
- 3.5
install:
- pip install pytest-cov
- pip install -r requirements.txt
script:
- wget http://humdi.net/vnstat/vnstat-1.15.tar.gz
- tar zxf vnstat-1.15.tar.gz
- cd vnstat-1.15
- ./configure --prefix=/usr --sysconfdir=/etc && make
- make install
- cd -
- vnstat --version
- py.t... | <|file_sep|>original/.travis.yml
sudo: false
language: python
python:
- 2.7
- 3.5
install:
- pip install pytest-cov
- pip install -r requirements.txt
script:
- py.test --cov=vnchart/
after_success:
- bash <(curl -s https://codecov.io/bash)
<|file_sep|>current/.travis.yml
sudo: false
language: python
... | 203abe4b5a0bf8f85a4ceb8f95ad470454c1d836 | .travis.yml | .travis.yml | YAML |
<|file_sep|>enum34_custom.py.diff
original:
updated:
else:
raise ValueError("%s is not a valid %s" % (value, cls.__name__))
<|file_sep|>original/enum34_custom.py
def __call__(cls, value):
"""Return the appropriate instance with any of the values listed."""
for member in cls:
... |
def __call__(cls, value):
"""Return the appropriate instance with any of the values listed."""
for member in cls:
if value in member.value:
return member
else:
raise ValueError("%s is not a valid %s" % (value, cls.__name__))
class MultiValueEnum(E... | <|file_sep|>enum34_custom.py.diff
original:
updated:
else:
raise ValueError("%s is not a valid %s" % (value, cls.__name__))
<|file_sep|>original/enum34_custom.py
def __call__(cls, value):
"""Return the appropriate instance with any of the values listed."""
for member in cls:
... | e8f2f1c9db328dd8116a44d9d934ecef3bc7fb5e | enum34_custom.py | enum34_custom.py | Python |
<|file_sep|>original/bin/docker-bench-security.sh
#!/bin/bash
set -eu -o pipefail
docker run -it --net host --pid host --userns host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=1 \
-v /var/lib:/var/lib \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/lib/systemd:/usr/lib/systemd \
-v ... | #!/bin/bash
set -eu -o pipefail
docker run -it --rm --net host --pid host --userns host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=1 \
-v /var/lib:/var/lib \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/lib/systemd:/usr/lib/systemd \
-v /etc:/etc --label docker_bench_security \
... | <|file_sep|>original/bin/docker-bench-security.sh
#!/bin/bash
set -eu -o pipefail
docker run -it --net host --pid host --userns host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=1 \
-v /var/lib:/var/lib \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/lib/systemd:/usr/lib/systemd \
-v ... | 9f1d73721e3854ae869e8aeda33a805e2b06d3e8 | bin/docker-bench-security.sh | bin/docker-bench-security.sh | Shell |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properti... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properti... | 846e5da837f2c6a547c8e273d1268a2060b2b34a | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/src/cncta/inject/data/Player.hx
package cncta.inject.data;
@:native("ClientLib.Data.Player");
extern class Player
{
public function get_Name():String;
}
<|file_sep|>current/src/cncta/inject/data/Player.hx
package cncta.inject.data;
@:native("ClientLib.Data.Player");
extern class Player
{
... | package cncta.inject.data;
@:native("ClientLib.Data.Player")
extern class Player
{
public function get_Name():String;
} | <|file_sep|>original/src/cncta/inject/data/Player.hx
package cncta.inject.data;
@:native("ClientLib.Data.Player");
extern class Player
{
public function get_Name():String;
}
<|file_sep|>current/src/cncta/inject/data/Player.hx
package cncta.inject.data;
@:native("ClientLib.Data.Player");
extern class Player
{
... | d82ba1f6ac7de24b8dbbff24261c5e17fea9b346 | src/cncta/inject/data/Player.hx | src/cncta/inject/data/Player.hx | Haxe |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10.8"
- "0.10.7"
- "0.10.6"
- "0.10.5"
- "0.10.4"
- "0.10.3"
- "0.10.2"
- "0.10.1"
- "0.10"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10.8"
- "0.10.7"
- "0.10.6"
- "0.10.5"
- "0.10.4"
- "0.10.3"
- "0.1... | language: node_js
node_js:
- "0.10.10"
- "0.10.9"
- "0.10.8"
- "0.10.7"
- "0.10.6"
- "0.10.5"
- "0.10.4"
- "0.10.3"
- "0.10.2"
- "0.10.1"
- "0.10" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10.8"
- "0.10.7"
- "0.10.6"
- "0.10.5"
- "0.10.4"
- "0.10.3"
- "0.10.2"
- "0.10.1"
- "0.10"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10.8"
- "0.10.7"
- "0.10.6"
- "0.10.5"
- "0.10.4"
- "0.10.3"
- "0.1... | 220d8442825f7fefe70fcad59e786781b495f62e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Plafile.yml
release[version]:
- git status -s | egrep -c "^\s?[ADMR]" | grep -q 0
- git checkout -b release/%version%
- echo "__version__ = \"%version%\"" > pla/version.py
- git add pla/version.py
- git commit -m "Tagging release v%version%"
- git tag %version%
- git push origin %vers... | release[version]:
- git status -s | egrep -c "^\s?[ADMR]" | grep -q 0
- git checkout -b release/%version%
- echo "__version__ = \"%version%\"" > pla/version.py
- git add pla/version.py
- git commit -m "Tagging release v%version%"
- git tag %version%
- git push origin %version%
- =distribute
- git chec... | <|file_sep|>original/Plafile.yml
release[version]:
- git status -s | egrep -c "^\s?[ADMR]" | grep -q 0
- git checkout -b release/%version%
- echo "__version__ = \"%version%\"" > pla/version.py
- git add pla/version.py
- git commit -m "Tagging release v%version%"
- git tag %version%
- git push origin %vers... | cd5d76d76394f7019a16a6267a0b15f1f01966dc | Plafile.yml | Plafile.yml | YAML |
<|file_sep|>original/demo/templates/rating-buttons.html
<div class="rating-buttons-container">
<span ng-repeat="btn in ratingBtns track by $index"
ng-mouseenter="mouseOverHandler($index, true)"
ng-mouseleave="mouseOverHandler($index, false)"
ng-click="rateChart($index + 1)">
<i... | <div class="rating-buttons-container">
<span uib-rating
ng-model="rate"
state-on="'fa fa-star'"
state-off="'fa fa-star-o'"
max="3"
ng-click="rateChart(rate)"
titles="['Rate 1 star','Rate 2 stars','Rate 3 stars']"
aria-labelledby="default-rating">... | <|file_sep|>original/demo/templates/rating-buttons.html
<div class="rating-buttons-container">
<span ng-repeat="btn in ratingBtns track by $index"
ng-mouseenter="mouseOverHandler($index, true)"
ng-mouseleave="mouseOverHandler($index, false)"
ng-click="rateChart($index + 1)">
<i... | 11c4ab8aa26ce39b709030017b798de413a0a61e | demo/templates/rating-buttons.html | demo/templates/rating-buttons.html | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.