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|>pact/group.py.diff
original:
updated:
self._pacts = list(pacts)
<|file_sep|>original/pact/group.py
from .base import PactBase
from .utils import GroupWaitPredicate
class PactGroup(PactBase):
def __init__(self, pacts):
super(PactGroup, self).__init__()
self._pacts = list(pacts... | from .base import PactBase
from .utils import GroupWaitPredicate
class PactGroup(PactBase):
def __init__(self, pacts):
self._pacts = list(pacts)
super(PactGroup, self).__init__()
def __iadd__(self, other):
self._pacts.append(other)
return self
def _is_finished(self):
... | <|file_sep|>pact/group.py.diff
original:
updated:
self._pacts = list(pacts)
<|file_sep|>original/pact/group.py
from .base import PactBase
from .utils import GroupWaitPredicate
class PactGroup(PactBase):
def __init__(self, pacts):
super(PactGroup, self).__init__()
self._pacts = list(pacts... | 91bd7690c1e48b52a270bc45626e771663828c28 | pact/group.py | pact/group.py | Python |
<|file_sep|>lingcod/raster_stats/views.py.diff
original:
data = serializers.serialize("json", zqs)
return HttpResponse(data, mimetype='application/javascript')
updated:
data = serializers.serialize("json", zqs, fields=('avg','min','max','median','mode','stdev','nulls','pixels','date_modified','raster'))
... | geom = fromstr(geom_txt)
except:
return HttpResponse("Must supply a parsable geom_txt parameter (wkt or json)", status=404)
# Confirm raster with pk exists
try:
raster = RasterDataset.objects.get(name=raster_name)
except:
return HttpResponse("No raster with pk of %s" % ... | <|file_sep|>lingcod/raster_stats/views.py.diff
original:
data = serializers.serialize("json", zqs)
return HttpResponse(data, mimetype='application/javascript')
updated:
data = serializers.serialize("json", zqs, fields=('avg','min','max','median','mode','stdev','nulls','pixels','date_modified','raster'))
... | 7cd2f582c444c483b9f8a677063f03dfe9ce0e0a | lingcod/raster_stats/views.py | lingcod/raster_stats/views.py | Python |
<|file_sep|>original/requirements.txt
boto3==1.5.2
botocore==1.8.19
certifi==2017.11.5
chardet==3.0.4
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.7
django-grappelli==2.10.1
django-haystack==2.6.1
django-linkcheck==1.5
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
elasticsearch==5.5.1
futu... | boto3==1.5.2
botocore==1.8.20
certifi==2017.11.5
chardet==3.0.4
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.7
django-grappelli==2.10.1
django-haystack==2.6.1
django-linkcheck==1.5
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
elasticsearch==5.5.1
futures==3.2.0
gunicorn==19.7.1
idna==2.6
... | <|file_sep|>original/requirements.txt
boto3==1.5.2
botocore==1.8.19
certifi==2017.11.5
chardet==3.0.4
dj-database-url==0.4.2
dj-static==0.0.6
Django==1.11.7
django-grappelli==2.10.1
django-haystack==2.6.1
django-linkcheck==1.5
django-s3-folder-storage==0.5
django-storages==1.6.5
docutils==0.14
elasticsearch==5.5.1
futu... | 641ff7a81dc0966448a542be8f044b6797974e37 | requirements.txt | requirements.txt | Text |
<|file_sep|>src/Shaker/PluginConfig.hs.diff
original:
("Compile",Compile),
("FullCompile",FullCompile),
("Help", Help),
updated:
("compile",Compile),
("fullcompile",FullCompile),
("help", Help),
<|file_sep|>original/src/Shaker/PluginConfig.hs
... | (Clean,runClean),
(Quit,runExit)
]
defaultCommandMap :: CommandMap
defaultCommandMap = M.fromList list
where list = [
("compile",Compile),
("fullcompile",FullCompile),
("help", Help),
-- ("Execute", Execute),
("... | <|file_sep|>src/Shaker/PluginConfig.hs.diff
original:
("Compile",Compile),
("FullCompile",FullCompile),
("Help", Help),
updated:
("compile",Compile),
("fullcompile",FullCompile),
("help", Help),
<|file_sep|>original/src/Shaker/PluginConfig.hs
... | 327f6a633011496950c80b01eae3e7ff04218023 | src/Shaker/PluginConfig.hs | src/Shaker/PluginConfig.hs | Haskell |
<|file_sep|>original/lib/parsable.rb
require 'parsable/parsed_item'
require 'parsable/remote'
require 'parsable/uri_helper'
module Parsable
def self.crunch args={}
original = args.fetch(:string).to_s
parsed_parts = Parsable::Parser.new(args).parse
context = args[:context] || Parsable::Contex... | module Parsable
def self.crunch args={}
original = args.fetch(:string).to_s
parsed_parts = Parsable::Parser.new(args).parse
context = args[:context] || Parsable::Context.new
crunched = original.dup
parsed_parts.each do |item|
# Using the block form of this method here due to h... | <|file_sep|>original/lib/parsable.rb
require 'parsable/parsed_item'
require 'parsable/remote'
require 'parsable/uri_helper'
module Parsable
def self.crunch args={}
original = args.fetch(:string).to_s
parsed_parts = Parsable::Parser.new(args).parse
context = args[:context] || Parsable::Contex... | b3fee59e029dfc3d156f147f003a0ad372eec0ed | lib/parsable.rb | lib/parsable.rb | Ruby |
<|file_sep|>original/features/ftp_server/allo.feature
Feature: Port
As a client
I want to reserve file system space
So that my put will succeed
Background:
Given the test server is started
Scenario: With count
Given a successful login
When the client successfully sends "ALLO 1024"
Then the ... | Feature: ALLO
As a client
I want to reserve file system space
So that my put will succeed
Background:
Given the test server is started
Scenario: With count
Given a successful login
When the client successfully sends "ALLO 1024"
Then the server returns a not necessary reply
Scenario: With... | <|file_sep|>original/features/ftp_server/allo.feature
Feature: Port
As a client
I want to reserve file system space
So that my put will succeed
Background:
Given the test server is started
Scenario: With count
Given a successful login
When the client successfully sends "ALLO 1024"
Then the ... | 753c07a251164c4da5628e0c1d832c476858e7b5 | features/ftp_server/allo.feature | features/ftp_server/allo.feature | Cucumber |
<|file_sep|>original/pages/release-notes/v6-1/9030-ibp.rst
.. _ibp-rn:
Issues with Image Based Provisioning
====================================
Known issues with image based provisioning
------------------------------------------
Rebooting any node of a cluster with a Ubuntu image based provisioning
two times in a... |
.. _ibp-rn:
Issues with Image Based Provisioning
====================================
Known issues with image based provisioning
------------------------------------------
Rebooting any node of a cluster with a Ubuntu image based provisioning
two times in a row will stop at the GRUB screen. The node will not
automa... | <|file_sep|>original/pages/release-notes/v6-1/9030-ibp.rst
.. _ibp-rn:
Issues with Image Based Provisioning
====================================
Known issues with image based provisioning
------------------------------------------
Rebooting any node of a cluster with a Ubuntu image based provisioning
two times in a... | f2efa9f9bb32c1b5f4ba6e0a0d9b84a89971f88b | pages/release-notes/v6-1/9030-ibp.rst | pages/release-notes/v6-1/9030-ibp.rst | reStructuredText |
<|file_sep|>README.md.diff
original:
import { register, state } from 'kickflip';
import { properties } from 'skatejs';
updated:
import kickflip from 'kickflip';
<|file_sep|>README.md.diff
original:
register('x-counter', {
updated:
kickflip.register('x-counter', {
<|file_sep|>README.md.diff
original:
count: properti... | import kickflip from 'kickflip';
const intervals = new WeakMap();
kickflip.register('x-counter', {
properties: {
count: { default: 0 }
},
attached (elem) {
intervals.set(elem, setInterval(function () {
kickflip.state(elem, { count: elem.count + 1 });
}, 1000));
},
detached (elem) {
cle... | <|file_sep|>README.md.diff
original:
import { register, state } from 'kickflip';
import { properties } from 'skatejs';
updated:
import kickflip from 'kickflip';
<|file_sep|>README.md.diff
original:
register('x-counter', {
updated:
kickflip.register('x-counter', {
<|file_sep|>README.md.diff
original:
count: properti... | 4c020fed0068d83976dab895409c4a9f0c90d821 | README.md | README.md | Markdown |
<|file_sep|>CHANGES.txt.diff
original:
- Morepath 0.1 had a security system, but it was undocumented. Now it's
documented (docs now in :doc:`security`), and some of its behavior was slightly tweaked:
updated:
- Morepath 0.1 had a security system, but it was undocumented. Now
it's documented (docs now in `Morepath S... | slightly tweaked:
* new ``verify_identity`` directive.
* ``permission`` directive was renamed to ``permission_rule``.
* default unauthorized error is 403 Forbidden, not 401 Unauthorized.
* ``morepath.remember`` and ``morepath.forbet`` renamed to
``morepath.remember_identity`` and ``morepath.forget_ide... | <|file_sep|>CHANGES.txt.diff
original:
- Morepath 0.1 had a security system, but it was undocumented. Now it's
documented (docs now in :doc:`security`), and some of its behavior was slightly tweaked:
updated:
- Morepath 0.1 had a security system, but it was undocumented. Now
it's documented (docs now in `Morepath S... | 081aac8ad0e39865a3d0d295623b93f08f2bf974 | CHANGES.txt | CHANGES.txt | Text |
<|file_sep|>original/.github/CONTRIBUTING.md
- [Updating your Pull Request](#updating-your-pull-request)
## Adding to this list
Please ensure your pull request adheres to the following guidelines:
- Search previous suggestions before making a new one, as yours may be a duplicate.
- Use the following format: ``[Compa... | - [Updating your Pull Request](#updating-your-pull-request)
## Adding to this list
Please ensure your pull request adheres to the following guidelines:
- Search previous suggestions before making a new one, as yours may be a duplicate.
- Use the following format: ``[Company Name](link) `tag` - description``
- Entrie... | <|file_sep|>original/.github/CONTRIBUTING.md
- [Updating your Pull Request](#updating-your-pull-request)
## Adding to this list
Please ensure your pull request adheres to the following guidelines:
- Search previous suggestions before making a new one, as yours may be a duplicate.
- Use the following format: ``[Compa... | 0a6607e26bb074e2b576226f8b8ff828f96fb616 | .github/CONTRIBUTING.md | .github/CONTRIBUTING.md | Markdown |
<|file_sep|>assets/javascripts/modules/xhr-link.js.diff
original:
updated:
const hasXhrClass = target.classList.contains(this.selector.substring(1))
const shouldXhr = target.tagName === 'A' && this.isGlobal ? true : hasXhrClass
<|file_sep|>assets/javascripts/modules/xhr-link.js.diff
original:
const path = ... |
handleClick (evt) {
const target = evt.target || evt.srcElement
const url = target.getAttribute('href')
const hasXhrClass = target.classList.contains(this.selector.substring(1))
const shouldXhr = target.tagName === 'A' && this.isGlobal ? true : hasXhrClass
if (!url || url.match(/^http:\/\//)) { ... | <|file_sep|>assets/javascripts/modules/xhr-link.js.diff
original:
updated:
const hasXhrClass = target.classList.contains(this.selector.substring(1))
const shouldXhr = target.tagName === 'A' && this.isGlobal ? true : hasXhrClass
<|file_sep|>assets/javascripts/modules/xhr-link.js.diff
original:
const path = ... | affe6c7ed16f295faa65c616debf32834d544795 | assets/javascripts/modules/xhr-link.js | assets/javascripts/modules/xhr-link.js | JavaScript |
<|file_sep|>original/cluster/addons/kube-ui/kube-ui-rc.yaml
labels:
k8s-app: kube-ui
version: v1
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-ui
version: v1
template:
metadata:
labels:
k8s-app: kube-ui
version: v1
kubernete... | spec:
replicas: 1
selector:
k8s-app: kube-ui
version: v1
template:
metadata:
labels:
k8s-app: kube-ui
version: v1
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: kube-ui
image: gcr.io/google_containers/kube-ui:v1
resources:
... | <|file_sep|>original/cluster/addons/kube-ui/kube-ui-rc.yaml
labels:
k8s-app: kube-ui
version: v1
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-ui
version: v1
template:
metadata:
labels:
k8s-app: kube-ui
version: v1
kubernete... | 747f84d5535b74f278acd665c742524cfccc53bc | cluster/addons/kube-ui/kube-ui-rc.yaml | cluster/addons/kube-ui/kube-ui-rc.yaml | YAML |
<|file_sep|>original/contentcuration/contentcuration/collectstatic_settings.py
<|file_sep|>current/contentcuration/contentcuration/collectstatic_settings.py
<|file_sep|>updated/contentcuration/contentcuration/collectstatic_settings.py | # Settings used by containers running collectstatic. Scope our services
# to the only ones needed to run collectstatic.
from .settings import *
CACHES['default']['BACKEND'] = "django_prometheus.cache.backends.locmem.LocMemCache" | <|file_sep|>original/contentcuration/contentcuration/collectstatic_settings.py
<|file_sep|>current/contentcuration/contentcuration/collectstatic_settings.py
<|file_sep|>updated/contentcuration/contentcuration/collectstatic_settings.py
# Settings used by containers running collectstatic. Scope our services
# to the o... | ddcc269f0f3a7d0e2e2505b0700197e4a4500984 | contentcuration/contentcuration/collectstatic_settings.py | contentcuration/contentcuration/collectstatic_settings.py | Python |
<|file_sep|>README.md.diff
original:
This repository provides source material for the (still under construction) [BetterScientificSoftware.io](https://bssw.io) web portal. Better Scientific Software (BSSw) community members can contribute content using standard GitHub tools and processes. Contributions can be made via:... | ### betterscientificsoftware.github.io
#### Who We Are
**Better Scientific Software** is an organization dedicated to [improving developer productivity](Site/Categories/Topics/WhatIsProductivity.md) and [improving software sustainability](Site/Categories/Topics/WhatIsSustainability.md) for computational science and e... | <|file_sep|>README.md.diff
original:
This repository provides source material for the (still under construction) [BetterScientificSoftware.io](https://bssw.io) web portal. Better Scientific Software (BSSw) community members can contribute content using standard GitHub tools and processes. Contributions can be made via:... | c6f080069211fc505ef76779c6930c3072f1062d | README.md | README.md | Markdown |
<|file_sep|>package.json.diff
original:
"version": "1.0.1",
updated:
"version": "1.0.2",
<|file_sep|>package.json.diff
original:
updated:
"eslint-config-standard": ">=10.2.1",
<|file_sep|>original/package.json
"description": "Javascript Xinix Style",
"main": "index.js",
"scripts": {
"test": "echo \"E... | "main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Ganesha <reekoheek@gmail.com>",
"license": "MIT",
"devDependencies": {
"eslint": ">=3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standar... | <|file_sep|>package.json.diff
original:
"version": "1.0.1",
updated:
"version": "1.0.2",
<|file_sep|>package.json.diff
original:
updated:
"eslint-config-standard": ">=10.2.1",
<|file_sep|>original/package.json
"description": "Javascript Xinix Style",
"main": "index.js",
"scripts": {
"test": "echo \"E... | cd28c2f41bd444f5949b284ad795ceb726a092fe | package.json | package.json | JSON |
<|file_sep|>original/project.clj
(defproject exegesis "0.2.0-SNAPSHOT"
:description "Simplify reflection of annotations on Java types."
:url "http://github.com/tobyclemson/exegesis"
:license {:name "The MIT License"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.... | (defproject exegesis "0.2.0-SNAPSHOT"
:description "Simplify reflection of annotations on Java types."
:url "http://github.com/tobyclemson/exegesis"
:license {:name "The MIT License"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.8.0"]]
:source-paths ["src/cloj... | <|file_sep|>original/project.clj
(defproject exegesis "0.2.0-SNAPSHOT"
:description "Simplify reflection of annotations on Java types."
:url "http://github.com/tobyclemson/exegesis"
:license {:name "The MIT License"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.... | 027d4ba159b1b849eb326178e592656e363c655d | project.clj | project.clj | Clojure |
<|file_sep|>lib/ajax-datatables-rails/datatable/datatable.rb.diff
original:
@orders ||= options[:order].map { |_, order_options| SimpleOrder.new(self, order_options) }
updated:
return @orders if @orders
@orders = []
options[:order].each do |_, order_options|
@orders << SimpleOr... | end
# ----------------- COLUMN METHODS --------------------
def columns
return @columns if @columns
@columns = []
options[:columns].each do |index, column_options|
@columns << Column.new(datatable, index, column_options)
end
@columns
end
... | <|file_sep|>lib/ajax-datatables-rails/datatable/datatable.rb.diff
original:
@orders ||= options[:order].map { |_, order_options| SimpleOrder.new(self, order_options) }
updated:
return @orders if @orders
@orders = []
options[:order].each do |_, order_options|
@orders << SimpleOr... | 594058c524da90af0e82814a139c5d480dc55324 | lib/ajax-datatables-rails/datatable/datatable.rb | lib/ajax-datatables-rails/datatable/datatable.rb | Ruby |
<|file_sep|>docs/architectural-decisions.rst.diff
original:
We record major architectural decisions for Kitsune/SUMO in Architecture Decision Records,
updated:
We record major architectural decisions for Kitsune/SUMO in Architecture Decision Records (ADR),
<|file_sep|>original/docs/architectural-decisions.rst
.. This S... | .. This Source Code Form is subject to the terms of the Mozilla Public
.. License, v. 2.0. If a copy of the MPL was not distributed with this
.. file, You can obtain one at http://mozilla.org/MPL/2.0/.
.. _architectural-decisions:
==============================
Architectural Decision Records
=========================... | <|file_sep|>docs/architectural-decisions.rst.diff
original:
We record major architectural decisions for Kitsune/SUMO in Architecture Decision Records,
updated:
We record major architectural decisions for Kitsune/SUMO in Architecture Decision Records (ADR),
<|file_sep|>original/docs/architectural-decisions.rst
.. This S... | a7cf49ab1bfcf4e770938116968824b2b0fa5bb1 | docs/architectural-decisions.rst | docs/architectural-decisions.rst | reStructuredText |
<|file_sep|>original/.settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers>
<server>
<id>repo.spring.io</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>
<|file_sep|>current/.settings.xml
<?xml version="1... | <?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers>
<server>
<id>repo.spring.io</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<!--
N.B. this profile is only here to support users and ... | <|file_sep|>original/.settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers>
<server>
<id>repo.spring.io</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>
<|file_sep|>current/.settings.xml
<?xml version="1... | c93174c6eacd326bcba0251b5585ab2a1df8213d | .settings.xml | .settings.xml | XML |
<|file_sep|>original/www/css/beaglek.css
div.col-xs-6 {
padding-left: 0;
}
svg * {
vector-effect: non-scaling-stroke;
font-family: sans-serif;
}
.yacht-position {
}
.yacht-position-indicator {
width: 20px;
height: 20px;
background-image: url("../images/yacht-position.svg");
}
.infobox-conta... |
div.col-xs-6 {
padding-left: 0;
}
svg * {
vector-effect: non-scaling-stroke;
font-family: sans-serif;
}
.leaflet-container {
cursor: none;
}
.yacht-position {
}
.yacht-position-indicator {
width: 20px;
height: 20px;
background-image: url("../images/yacht-position.svg"); | <|file_sep|>original/www/css/beaglek.css
div.col-xs-6 {
padding-left: 0;
}
svg * {
vector-effect: non-scaling-stroke;
font-family: sans-serif;
}
.yacht-position {
}
.yacht-position-indicator {
width: 20px;
height: 20px;
background-image: url("../images/yacht-position.svg");
}
.infobox-conta... | 1ec70ec6987b95cdecfe4895e6a48ad946959176 | www/css/beaglek.css | www/css/beaglek.css | CSS |
<|file_sep|>.travis.yml.diff
original:
updated:
language: java
sudo: required
jdk:
- oraclejdk8
install: true
<|file_sep|>original/.travis.yml
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --bac... | language: java
sudo: required
jdk:
- oraclejdk8
install: true
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
script:
- sud... | <|file_sep|>.travis.yml.diff
original:
updated:
language: java
sudo: required
jdk:
- oraclejdk8
install: true
<|file_sep|>original/.travis.yml
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --bac... | baccd913f9f617ffb2c29db7946e906e02a3aeaf | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/djangae/tests/test_meta_queries.py
<|file_sep|>current/djangae/tests/test_meta_queries.py
<|file_sep|>updated/djangae/tests/test_meta_queries.py | from django.db import models
from djangae.test import TestCase
from djangae.contrib import sleuth
class MetaQueryTestModel(models.Model):
field1 = models.CharField(max_length=32)
class PrimaryKeyFilterTests(TestCase):
def test_pk_in_with_slicing(self):
i1 = MetaQueryTestModel.objects.create();
... | <|file_sep|>original/djangae/tests/test_meta_queries.py
<|file_sep|>current/djangae/tests/test_meta_queries.py
<|file_sep|>updated/djangae/tests/test_meta_queries.py
from django.db import models
from djangae.test import TestCase
from djangae.contrib import sleuth
class MetaQueryTestModel(models.Model):
field1 ... | 8b467efd1f998d05da0272a284773501f0b330ff | djangae/tests/test_meta_queries.py | djangae/tests/test_meta_queries.py | Python |
<|file_sep|>.travis.yml.diff
original:
node_js:
- '4.1.1'
updated:
before_install:
- nvm install 4.1.1
- nvm use 4.1.1
<|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.6'
- '7.0'
node_js:
- '4.1.1'
install:
- npm install
script:
- npm run compile
- npm test
sudo: false
<|file_sep|>current/.tra... | language: php
php:
- '5.4'
- '5.6'
- '7.0'
before_install:
- nvm install 4.1.1
- nvm use 4.1.1
install:
- npm install
script:
- npm run compile --silent
- npm test --silent
sudo: false | <|file_sep|>.travis.yml.diff
original:
node_js:
- '4.1.1'
updated:
before_install:
- nvm install 4.1.1
- nvm use 4.1.1
<|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.6'
- '7.0'
node_js:
- '4.1.1'
install:
- npm install
script:
- npm run compile
- npm test
sudo: false
<|file_sep|>current/.tra... | fa2c2167755b6e55663eaed42a5249b38d938347 | .travis.yml | .travis.yml | YAML |
<|file_sep|>tests/Phug/CasesTest.php.diff
original:
updated:
use DateTimeImmutable;
<|file_sep|>original/tests/Phug/CasesTest.php
class CasesTest extends AbstractRendererTest
{
public function caseProvider()
{
return array_map(function ($file) {
$file = realpath($file);
$pugFi... | }, glob(__DIR__.'/../cases/*.html'));
}
/**
* @dataProvider caseProvider
*/
public function testRender($expected, $actual, $message)
{
self::assertSameLines(file_get_contents($expected), $this->renderer->render($actual), $message);
}
/**
* @group update
*/
... | <|file_sep|>tests/Phug/CasesTest.php.diff
original:
updated:
use DateTimeImmutable;
<|file_sep|>original/tests/Phug/CasesTest.php
class CasesTest extends AbstractRendererTest
{
public function caseProvider()
{
return array_map(function ($file) {
$file = realpath($file);
$pugFi... | bed0cd95238d43707ea53dd71bb8a34a2b29d4f2 | tests/Phug/CasesTest.php | tests/Phug/CasesTest.php | PHP |
<|file_sep|>original/assertsharp/assertsharp.d.ts
// Type definitions for assertsharp
// Project: https://www.npmjs.com/package/assertsharp
// Definitions by: Bruno Leonardo Michels <https://github.com/brunolm>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "assertsharp" {
export def... | // Type definitions for assertsharp
// Project: https://www.npmjs.com/package/assertsharp
// Definitions by: Bruno Leonardo Michels <https://github.com/brunolm>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "assertsharp" {
export default class Assert {
static AreEqual<T>(exp... | <|file_sep|>original/assertsharp/assertsharp.d.ts
// Type definitions for assertsharp
// Project: https://www.npmjs.com/package/assertsharp
// Definitions by: Bruno Leonardo Michels <https://github.com/brunolm>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "assertsharp" {
export def... | 64eccdfcb734df89956a8b3db75d9aa0c185f88f | assertsharp/assertsharp.d.ts | assertsharp/assertsharp.d.ts | TypeScript |
<|file_sep|>.travis.yml.diff
original:
- 1.8.7
- ree
updated:
- jruby
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
cache: bundler
rvm:
- ruby-head
- 2.2
- 2.1
- 2.0
- 1.9.3
- 1.8.7
- ree
- jruby-head
- jruby-18mode # JRuby in 1.8 mode
- jruby-19mode # JRuby in 1.9 mode
env:
gl... | language: ruby
sudo: false
cache: bundler
rvm:
- ruby-head
- 2.2
- 2.1
- 2.0
- 1.9.3
- jruby
- jruby-head
- jruby-19mode # JRuby in 1.9 mode
env:
global:
- CODECLIMATE_REPO_TOKEN=d4c34cd6f4f50eb092a1f01e1b7e24acb0b9c59b266dfc91bcd26df15a48b8f5
- JRUBY_OPTS='--dev -J-Xmx1024M'
matrix:
allow_f... | <|file_sep|>.travis.yml.diff
original:
- 1.8.7
- ree
updated:
- jruby
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
cache: bundler
rvm:
- ruby-head
- 2.2
- 2.1
- 2.0
- 1.9.3
- 1.8.7
- ree
- jruby-head
- jruby-18mode # JRuby in 1.8 mode
- jruby-19mode # JRuby in 1.9 mode
env:
gl... | fc516897ae2e77308ae4e80c4c362e35fdb6960e | .travis.yml | .travis.yml | YAML |
<|file_sep|>install/ubuntu/base.sh.diff
original:
apt install -y \
updated:
apt upgrade
apt install -y --fix-missing \
<|file_sep|>original/install/ubuntu/base.sh
#!/bin/bash
# Installs apt packages needed by other packages
apt update
apt install -y \
apt-transport-https \
ca-certificates \
curl \
software-propert... | #!/bin/bash
# Installs apt packages needed by other packages
apt update
apt upgrade
apt install -y --fix-missing \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
openssl \
jq \
python-dev
| <|file_sep|>install/ubuntu/base.sh.diff
original:
apt install -y \
updated:
apt upgrade
apt install -y --fix-missing \
<|file_sep|>original/install/ubuntu/base.sh
#!/bin/bash
# Installs apt packages needed by other packages
apt update
apt install -y \
apt-transport-https \
ca-certificates \
curl \
software-propert... | 06a635ecd466baafe8151a8b36ada6d254391618 | install/ubuntu/base.sh | install/ubuntu/base.sh | Shell |
<|file_sep|>original/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py
<|file_sep|>current/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py
<|file_sep|>updated/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py | """migrate to jsonb
Revision ID: fa8cf884aa8e
Revises: a7e8a70b1772
Create Date: 2018-02-05 16:13:38.229076
"""
# revision identifiers, used by Alembic.
revision = 'fa8cf884aa8e'
down_revision = 'a7e8a70b1772'
from alembic import op
import sqlalchemy as sa
tables = ['user', 'task', 'task_run', 'result']
def upgra... | <|file_sep|>original/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py
<|file_sep|>current/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py
<|file_sep|>updated/alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py
"""migrate to jsonb
Revision ID: fa8cf884aa8e
Revises: a7e8a70b1772
Create Date: 2018-02-05 16:13:38.22907... | 096fbae1461d66f84b203d8a49ea3ae65a3f4bd4 | alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py | alembic/versions/fa8cf884aa8e_migrate_to_jsonb.py | Python |
<|file_sep|>original/src/Components/Menu/Installer.php
*/
final class Installer extends AbstractInstaller
{
/**
* {@inheritdoc}
*/
protected $name = 'install:menu';
/**
* {@inheritdoc}
*/
protected $description = 'Menu: Build beautiful CLI interactive menus';
/**
* {@inhe... | */
final class Installer extends AbstractInstaller
{
/**
* {@inheritdoc}
*/
protected $name = 'install:menu';
/**
* {@inheritdoc}
*/
protected $description = 'Menu: Build beautiful CLI interactive menus';
/**
* {@inheritdoc}
*/
public function install(): void
... | <|file_sep|>original/src/Components/Menu/Installer.php
*/
final class Installer extends AbstractInstaller
{
/**
* {@inheritdoc}
*/
protected $name = 'install:menu';
/**
* {@inheritdoc}
*/
protected $description = 'Menu: Build beautiful CLI interactive menus';
/**
* {@inhe... | d731e7797eb44906f36e5c4582059751693831a6 | src/Components/Menu/Installer.php | src/Components/Menu/Installer.php | PHP |
<|file_sep|>package.json.diff
original:
"6to5": "^2.0.4"
updated:
"6to5": "~2.0.4"
<|file_sep|>original/package.json
"linker",
"resolve",
"serialize"
],
"author": "Johann Pardanaud <pardanaud.j@gmail.com> (http://jpardanaud.com/)",
"license": "MIT",
"dependencies": {
"6to5": "^2.0.4"
}... | "linker",
"resolve",
"serialize"
],
"author": "Johann Pardanaud <pardanaud.j@gmail.com> (http://jpardanaud.com/)",
"license": "MIT",
"dependencies": {
"6to5": "~2.0.4"
},
"devDependencies": {
"6to5-browserify": "~1.3.0",
"browserify": "^6.3.3",
"chai": "^1.10.0",
"exorcist": ... | <|file_sep|>package.json.diff
original:
"6to5": "^2.0.4"
updated:
"6to5": "~2.0.4"
<|file_sep|>original/package.json
"linker",
"resolve",
"serialize"
],
"author": "Johann Pardanaud <pardanaud.j@gmail.com> (http://jpardanaud.com/)",
"license": "MIT",
"dependencies": {
"6to5": "^2.0.4"
}... | 7b89fdfbd3c7c618b4d1bd12b1a303b344ac4bc7 | package.json | package.json | JSON |
<|file_sep|>original/django/publicmapping/redisutils.py
<|file_sep|>current/django/publicmapping/redisutils.py
<|file_sep|>updated/django/publicmapping/redisutils.py | ## Utilities for Redis - mostly just a function for generating keys ##
def key_gen(**kwargs):
"""
Key generator for linux. Determines key based on
parameters supplied in kwargs.
Keyword Parameters:
@keyword geounit1: portable_id of a geounit
@keyword geounit2: portable_id of a geounit
@key... | <|file_sep|>original/django/publicmapping/redisutils.py
<|file_sep|>current/django/publicmapping/redisutils.py
<|file_sep|>updated/django/publicmapping/redisutils.py
## Utilities for Redis - mostly just a function for generating keys ##
def key_gen(**kwargs):
"""
Key generator for linux. Determines key based... | 38481618f02521d31f69fccb3bfc72a708d25d35 | django/publicmapping/redisutils.py | django/publicmapping/redisutils.py | Python |
<|file_sep|>original/lib/misc.zsh
## pager
export PAGER="less"
export LESS="-R"
## super user alias
alias _='sudo'
alias please='sudo'
## more intelligent acking for ubuntu users
if which ack-grep > /dev/null;
then
alias afind='ack-grep -il'
else
alias afind='ack -il'
fi
# only define LC_CTYPE if undefined
if [... |
## pager
export PAGER="less"
export LESS="-R"
## super user alias
alias _='sudo'
alias please='sudo'
## more intelligent acking for ubuntu users
if which ack-grep &> /dev/null;
then
alias afind='ack-grep -il'
else
alias afind='ack -il'
fi
# only define LC_CTYPE if undefined
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ... | <|file_sep|>original/lib/misc.zsh
## pager
export PAGER="less"
export LESS="-R"
## super user alias
alias _='sudo'
alias please='sudo'
## more intelligent acking for ubuntu users
if which ack-grep > /dev/null;
then
alias afind='ack-grep -il'
else
alias afind='ack -il'
fi
# only define LC_CTYPE if undefined
if [... | 5692638b1f2f20c55e995275c1fed58f1a94d0a7 | lib/misc.zsh | lib/misc.zsh | Shell |
<|file_sep|>.github/workflows/go.yml.diff
original:
go-version: [ "1.15", "1.16", "1.17" ]
updated:
go-version: [ "1.16", "1.17", "1.18" ]
<|file_sep|>.github/workflows/go.yml.diff
original:
go-version: 1.17
updated:
go-version: 1.18
<|file_sep|>original/.github/workflows/go.yml
... | - name: run
run: |
./ycat .github/workflows/go.yml
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: checkout
uses: actions/checkout@v2
- name: measur... | <|file_sep|>.github/workflows/go.yml.diff
original:
go-version: [ "1.15", "1.16", "1.17" ]
updated:
go-version: [ "1.16", "1.17", "1.18" ]
<|file_sep|>.github/workflows/go.yml.diff
original:
go-version: 1.17
updated:
go-version: 1.18
<|file_sep|>original/.github/workflows/go.yml
... | 4d0f296574d0dd2260903fec2af70ee287bc5a4b | .github/workflows/go.yml | .github/workflows/go.yml | YAML |
<|file_sep|>original/WinRSJS.Runtime/Collections.cs
using System;
using System.Collections.Generic;
namespace WinRSJS
{
public sealed class Collections
{
static public object /* IMap<?, ?> */ createMap(string keyTypeName, string valTypeName)
{
Type typeKey = Type.GetType(keyTypeNam... | using System;
using System.Collections.Generic;
namespace WinRSJS
{
public sealed class Collections
{
static public object /* IMap<?, ?> */ CreateMap(string keyTypeName, string valTypeName)
{
Type typeKey = Type.GetType(keyTypeName);
if (typeKey == null)
{
... | <|file_sep|>original/WinRSJS.Runtime/Collections.cs
using System;
using System.Collections.Generic;
namespace WinRSJS
{
public sealed class Collections
{
static public object /* IMap<?, ?> */ createMap(string keyTypeName, string valTypeName)
{
Type typeKey = Type.GetType(keyTypeNam... | 316948064199493c6823bf97d4493c0869983ede | WinRSJS.Runtime/Collections.cs | WinRSJS.Runtime/Collections.cs | C# |
<|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md
<!-- Please create/claim an issue before sending a PR -->
<!-- Add issue number (Eg: fixes #123) -->
Fixes #
### Checklist
- [ ] My branch is up-to-date with upstream/develop branch.
- [ ] Everything works and tested for Python 3.5.2 and above.
- [ ] I have create... | <!-- Please create/claim an issue before sending a PR -->
<!-- Add issue number (Eg: fixes #123) -->
Fixes #
### Checklist
- [ ] My branch is up-to-date with upstream/develop branch.
- [ ] Everything works and tested for Python 3.5.2 and above.
- [ ] I have created/claimed the issue that this PR resolves.
### Descri... | <|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md
<!-- Please create/claim an issue before sending a PR -->
<!-- Add issue number (Eg: fixes #123) -->
Fixes #
### Checklist
- [ ] My branch is up-to-date with upstream/develop branch.
- [ ] Everything works and tested for Python 3.5.2 and above.
- [ ] I have create... | 016596c2ab3e5170d9b16fef26696a694587030f | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | Markdown |
<|file_sep|>original/resources/views/bookmarks/index.blade.php
@section('title')
Bookmarks «
@stop
@section('content')
<div class="h-feed">
@foreach($bookmarks as $bookmark)
<div class="h-entry">
<a class="u-bookmark-of<?php if ($bookmark->name !== null) { echo ' h-cite'; } ?>" href="{{ $bookmark->url }}">
... | @section('title')
Bookmarks «
@stop
@section('content')
<div class="h-feed">
@foreach($bookmarks as $bookmark)
<div class="h-entry">
<a class="u-bookmark-of<?php if ($bookmark->name !== null) { echo ' h-cite'; } ?>" href="{{ $bookmark->url }}">
@isset($bookmark->name)
{{ $bookmark->name }}
@e... | <|file_sep|>original/resources/views/bookmarks/index.blade.php
@section('title')
Bookmarks «
@stop
@section('content')
<div class="h-feed">
@foreach($bookmarks as $bookmark)
<div class="h-entry">
<a class="u-bookmark-of<?php if ($bookmark->name !== null) { echo ' h-cite'; } ?>" href="{{ $bookmark->url }}">
... | aaf25c32b833e75f71c653dafceb3be9be5d68c0 | resources/views/bookmarks/index.blade.php | resources/views/bookmarks/index.blade.php | PHP |
<|file_sep|>original/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst
======
Tintri
======
<|file_sep|>current/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst
======
Tintri
======
<|file_sep|>updated/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rs... | ======
Tintri
======
Tintri VMstore is a smart storage that sees, learns, and adapts for cloud and
virtualization. The Tintri Block Storage driver interacts with configured
VMstore running Tintri OS 4.0 and above. It supports various operations using
Tintri REST APIs and NFS protocol.
To configure the use of a Tintri... | <|file_sep|>original/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst
======
Tintri
======
<|file_sep|>current/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst
======
Tintri
======
<|file_sep|>updated/doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rs... | f8b9a83d001d6d893684b288a81bab623d293b7f | doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst | doc/config-ref-rst/source/block-storage/drivers/tintri-volume-driver.rst | reStructuredText |
<|file_sep|>original/build-ubuntu.sh
#!/bin/bash
BUILD_OSNAME="ubuntu"
BUILD_OSTYPE="Ubuntu_64"
# last 'LTS' version
BOX="ubuntu-14.04-amd64"
ISO_URL="http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso"
ISO_MD5="01545fa976c8367b4f0d59169ac4866c"
./build.sh ${BUILD_OSNAME} ${BUILD_OSTYPE} ${BOX} ${ISO_URL... | #!/bin/bash
BUILD_OSNAME="ubuntu"
BUILD_OSTYPE="Ubuntu_64"
# last 'LTS' version
BOX="ubuntu-14.04-amd64"
ISO_URL="http://old-releases.ubuntu.com/releases/14.04.0/ubuntu-14.04-server-amd64.iso"
ISO_MD5="01545fa976c8367b4f0d59169ac4866c"
./build.sh ${BUILD_OSNAME} ${BUILD_OSTYPE} ${BOX} ${ISO_URL} ${ISO_MD5} | <|file_sep|>original/build-ubuntu.sh
#!/bin/bash
BUILD_OSNAME="ubuntu"
BUILD_OSTYPE="Ubuntu_64"
# last 'LTS' version
BOX="ubuntu-14.04-amd64"
ISO_URL="http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso"
ISO_MD5="01545fa976c8367b4f0d59169ac4866c"
./build.sh ${BUILD_OSNAME} ${BUILD_OSTYPE} ${BOX} ${ISO_URL... | 9e06c26ff00e0d44cf8c1c7e88f2b680553508b4 | build-ubuntu.sh | build-ubuntu.sh | Shell |
<|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
updated:
let version = "0.03.13"; in
<|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
version = "0.03.11";
updated:
<|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
sha256 = "01pshnqb75c0g4pwcz5i1gh2a6ijy3dlz8... |
meta = with stdenv.lib; {
description = "Stress test a computer system";
longDescription = ''
Stress test a computer system in various selectable ways, by exercising
various physical subsystems of a computer as well as the various
operating system kernel interfaces. Stress-ng features:
... | <|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
updated:
let version = "0.03.13"; in
<|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
version = "0.03.11";
updated:
<|file_sep|>pkgs/tools/system/stress-ng/default.nix.diff
original:
sha256 = "01pshnqb75c0g4pwcz5i1gh2a6ijy3dlz8... | b7a4231be7d7f9a8c21671bbd55e7d146c68bcbc | pkgs/tools/system/stress-ng/default.nix | pkgs/tools/system/stress-ng/default.nix | Nix |
<|file_sep|>original/entrypoint.sh
fi
if [ -z "${GIT_USER_EMAIL}" ]; then
die "GIT_USER_EMAIL must be specified!"
fi
if [ -z "${GIT_REPO_URL}" ]; then
die "GIT_REPO_URL must be specified!"
fi
# Set git author info
git config --global user.name "${GIT_USER_NAME}"
git config --global user.email "${GIT_USER_EMAIL}"
... | die "GIT_USER_EMAIL must be specified!"
fi
if [ -z "${GIT_REPO_URL}" ]; then
die "GIT_REPO_URL must be specified!"
fi
# Set git author info
git config --global user.name "${GIT_USER_NAME}"
git config --global user.email "${GIT_USER_EMAIL}"
# Use default push behavior of Git 2.0
git config --global push.default si... | <|file_sep|>original/entrypoint.sh
fi
if [ -z "${GIT_USER_EMAIL}" ]; then
die "GIT_USER_EMAIL must be specified!"
fi
if [ -z "${GIT_REPO_URL}" ]; then
die "GIT_REPO_URL must be specified!"
fi
# Set git author info
git config --global user.name "${GIT_USER_NAME}"
git config --global user.email "${GIT_USER_EMAIL}"
... | a6112d333e6a76d68259b920af01caeeceb0679d | entrypoint.sh | entrypoint.sh | Shell |
<|file_sep|>original/README.md
# Hymn to Beauty
C++/OpenGL 3D Engine
## Building
1. Clone the GitHub repository.
2. Run `git submodule update --init`
3. Use CMake to generate make/project files for Hymn to Beauty.
4. Build Hymn to Beauty.
## License
Released under the [MIT license](LICENSE).
<|file_sep|>current/READM... | C++/OpenGL 3D Engine
## Building
1. Clone the GitHub repository.
2. Run `git submodule update --init`
3. Use CMake to generate make/project files for Hymn to Beauty.
4. Build Hymn to Beauty.
## License
Released under the [MIT license](LICENSE).
Hymn to Beauty uses several third party libraries with their own license... | <|file_sep|>original/README.md
# Hymn to Beauty
C++/OpenGL 3D Engine
## Building
1. Clone the GitHub repository.
2. Run `git submodule update --init`
3. Use CMake to generate make/project files for Hymn to Beauty.
4. Build Hymn to Beauty.
## License
Released under the [MIT license](LICENSE).
<|file_sep|>current/READM... | ee13ea4ef9262203b0ee08633b4f282bed88d997 | README.md | README.md | Markdown |
<|file_sep|>original/core/json/variables.examples.json
"infos": {
"site_name" : "Worldopole",
"city" : "Weuuurld",
"logo_path" : "core/img/logo.jpg",
"site_title" : "We ❤️ Pokémon and Data",
"site_claim" : "Find all collected and proccessed datas about PokémonGo."
},
"system": {
"map_cent... | "city" : "Weuuurld",
"logo_path" : "core/img/logo.jpg",
"site_title" : "We ❤️ Pokémon and Data",
"site_claim" : "Find all collected and proccessed datas about PokémonGo."
},
"system": {
"map_center_lat" : "50.844441",
"map_center_long" : "4.363557",
"zomm_level" : "13",
"time_inverval... | <|file_sep|>original/core/json/variables.examples.json
"infos": {
"site_name" : "Worldopole",
"city" : "Weuuurld",
"logo_path" : "core/img/logo.jpg",
"site_title" : "We ❤️ Pokémon and Data",
"site_claim" : "Find all collected and proccessed datas about PokémonGo."
},
"system": {
"map_cent... | 9961bdb4c743cf834ef6092f17508cf5b3ceb95e | core/json/variables.examples.json | core/json/variables.examples.json | JSON |
<|file_sep|>original/osu.Game.Rulesets.Mania/Judgements/HoldNoteTickJudgement.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mania.Judgements
{
publ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mania.Judgements
{
public class HoldNoteTickJudgement : ManiaJudgement
{
protected override ... | <|file_sep|>original/osu.Game.Rulesets.Mania/Judgements/HoldNoteTickJudgement.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mania.Judgements
{
publ... | 19eb6fad7fca29af8f163ace52ba95e70383f542 | osu.Game.Rulesets.Mania/Judgements/HoldNoteTickJudgement.cs | osu.Game.Rulesets.Mania/Judgements/HoldNoteTickJudgement.cs | C# |
<|file_sep|>appveyor.yml.diff
original:
updated:
#node.js
<|file_sep|>original/appveyor.yml
init:
- git config --global core.autocrlf input
# what combinations to test
environment:
matrix:
- nodejs_version: 0.10
- nodejs_version: 0.11
- nodejs_version: 0.12
install:
- ps: Update-NodeJsInstallat... | init:
- git config --global core.autocrlf input
# what combinations to test
environment:
matrix:
#node.js
- nodejs_version: 0.10
- nodejs_version: 0.11
- nodejs_version: 0.12
#io.js
- nodejs_version: 2.5.0
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_versio... | <|file_sep|>appveyor.yml.diff
original:
updated:
#node.js
<|file_sep|>original/appveyor.yml
init:
- git config --global core.autocrlf input
# what combinations to test
environment:
matrix:
- nodejs_version: 0.10
- nodejs_version: 0.11
- nodejs_version: 0.12
install:
- ps: Update-NodeJsInstallat... | 1e27ddf305b749696b96c09fad4e42fc3287dbc2 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/config/jobs/kubernetes/kops/kops-presets-do.yaml
name: spaces-digitalocean-s3
key: access-key
- name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spaces-digitalocean-s3
key: secret-key
- labels:
preset-do-ssh: "true"
env:
- name: DO_SSH_PU... | - name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spaces-digitalocean-s3
key: secret-key
- labels:
preset-do-ssh: "true"
env:
- name: DO_SSH_PUBLIC_KEY_FILE
value: /etc/do-ssh/public-ssh-key
- name: DO_SSH_PRIVATE_KEY_FILE
value: /etc/do-ssh/private-ssh-key
volu... | <|file_sep|>original/config/jobs/kubernetes/kops/kops-presets-do.yaml
name: spaces-digitalocean-s3
key: access-key
- name: S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spaces-digitalocean-s3
key: secret-key
- labels:
preset-do-ssh: "true"
env:
- name: DO_SSH_PU... | 6580b388e01cd9d605d2b492054685370b9d4d5d | config/jobs/kubernetes/kops/kops-presets-do.yaml | config/jobs/kubernetes/kops/kops-presets-do.yaml | YAML |
<|file_sep|>original/public/js/main.js
onload = function() {
var canvas = document.getElementById('canvas');
var socket = io();
socket.on('state', function(state) {
// console.log('update state');
});
var game = new Game();
(function animate(){ // Recursive animation call
requestAnimationFrame(an... | onload = function() {
var canvas = document.getElementById('canvas');
var socket = io();
socket.on('state', function(state) {
// console.log('update state');
});
// var game = new Game();
(function animate(){ // Recursive animation call
requestAnimationFrame(animate);
})();
date = Date.now();... | <|file_sep|>original/public/js/main.js
onload = function() {
var canvas = document.getElementById('canvas');
var socket = io();
socket.on('state', function(state) {
// console.log('update state');
});
var game = new Game();
(function animate(){ // Recursive animation call
requestAnimationFrame(an... | 4adca1e40fa74b16c892b3c26eb20537970944fb | public/js/main.js | public/js/main.js | JavaScript |
<|file_sep|>original/spectral_cube/__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is an Astropy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is an Astropy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init im... | <|file_sep|>original/spectral_cube/__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is an Astropy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------... | 88a31ebcd7b65f9282bb0d0a19ad299c1ad431ec | spectral_cube/__init__.py | spectral_cube/__init__.py | Python |
<|file_sep|>original/wikilink/db/connection.py
from sqlalchemy_utils import functions
from sqlalchemy.orm import sessionmaker
from .base import Base
class Connection:
def __init__(self, db, name, password, ip, port):
if db == "postgresql":
connection = "postgresql+psycopg2://" + name + ":" + password + "@" + ip ... | from sqlalchemy_utils import functions
from sqlalchemy.orm import sessionmaker
from .base import Base
class Connection:
def __init__(self, db, name, password, ip, port):
if db == "postgresql":
connection = "postgresql+psycopg2://" + name + ":" + password + "@" + ip + ":" + port
elif db == "mysql":
connec... | <|file_sep|>original/wikilink/db/connection.py
from sqlalchemy_utils import functions
from sqlalchemy.orm import sessionmaker
from .base import Base
class Connection:
def __init__(self, db, name, password, ip, port):
if db == "postgresql":
connection = "postgresql+psycopg2://" + name + ":" + password + "@" + ip ... | 2fac490ed8926bf04e396ded35340f880e9c49b6 | wikilink/db/connection.py | wikilink/db/connection.py | Python |
<|file_sep|>original/package.json
{
"name": "cache-manifest-middleware",
"description": "Dynamic cache.manifest generation connect middleware plugin",
"version": "1.0.0",
"author": "Isaac Simmons <isaac.simmons@gmail.com>",
"homepage": "https://github.com/isaacsimmons/cache-manifest-middleware",
"repository... | {
"name": "cache-manifest-middleware",
"description": "Dynamic cache.manifest generation connect middleware plugin",
"version": "0.1.0",
"author": "Isaac Simmons <isaac.simmons@gmail.com>",
"homepage": "https://github.com/isaacsimmons/cache-manifest-middleware",
"repository": {
"type": "git",
"url":... | <|file_sep|>original/package.json
{
"name": "cache-manifest-middleware",
"description": "Dynamic cache.manifest generation connect middleware plugin",
"version": "1.0.0",
"author": "Isaac Simmons <isaac.simmons@gmail.com>",
"homepage": "https://github.com/isaacsimmons/cache-manifest-middleware",
"repository... | 5d698db846569d7ebb8429a9d3e8357c8bff5eb1 | package.json | package.json | JSON |
<|file_sep|>original/TitanTest/ShareCodeDecoderTest.cs
using Titan.Sharecode;
using Xunit;
namespace TitanTest
{
public class ShareCodeDecoderTest
{
[Fact]
public void TestDecoder()
{
if(ShareCode.Decode("CSGO-727c4-5oCG3-PurVX-sJkdn-LsXfE").MatchID == 3208347562318757960)... | using Titan.MatchID.Sharecode;
using Xunit;
namespace TitanTest
{
public class ShareCodeDecoderTest
{
[Fact]
public void TestDecoder()
{
if(ShareCode.Decode("CSGO-727c4-5oCG3-PurVX-sJkdn-LsXfE").MatchID == 3208347562318757960)
{
Assert.True(true... | <|file_sep|>original/TitanTest/ShareCodeDecoderTest.cs
using Titan.Sharecode;
using Xunit;
namespace TitanTest
{
public class ShareCodeDecoderTest
{
[Fact]
public void TestDecoder()
{
if(ShareCode.Decode("CSGO-727c4-5oCG3-PurVX-sJkdn-LsXfE").MatchID == 3208347562318757960)... | 7910e4c04c9f576739c862cdb23a9a2692ad8370 | TitanTest/ShareCodeDecoderTest.cs | TitanTest/ShareCodeDecoderTest.cs | C# |
<|file_sep|>original/README.md
<a target="_blank href="http://kickassbrocksamson.github.io/AngularJS-HealthCare-UI">Link to Functional Example</a>
<a target="_blank" href="http://kickassbrocksamson.github.io/Accessibility">Eaxmple Link</a>
# How to instructions:
Step 1: Need to have a node.js installed on your machi... | <a target="_blank" href="http://kickassbrocksamson.github.io/AngularJS-HealthCare-UI">Link to Functional Example</a>
# How to instructions:
Step 1: Need to have a node.js installed on your machine [link to Node](https://nodejs.org/en/download/)
Step 2: Install Gulp using NPM [link to Gulp](https://github.com/gulpjs/... | <|file_sep|>original/README.md
<a target="_blank href="http://kickassbrocksamson.github.io/AngularJS-HealthCare-UI">Link to Functional Example</a>
<a target="_blank" href="http://kickassbrocksamson.github.io/Accessibility">Eaxmple Link</a>
# How to instructions:
Step 1: Need to have a node.js installed on your machi... | 286f0741a6137e6b2eda0a63dea421b71e1065f9 | README.md | README.md | Markdown |
<|file_sep|>lib/primix/analyzer/tokenizer.rb.diff
original:
updated:
filter_tokens(split_contents)
end
def split_contents
<|file_sep|>original/lib/primix/analyzer/tokenizer.rb
tokens << char
current_token = ""
when " ", "\n", "\t" then
to... | tokens << current_token if current_token != ""
tokens << char
current_token = ""
when " ", "\n", "\t" then
tokens << current_token if current_token != ""
current_token = ""
else
current_token << char
... | <|file_sep|>lib/primix/analyzer/tokenizer.rb.diff
original:
updated:
filter_tokens(split_contents)
end
def split_contents
<|file_sep|>original/lib/primix/analyzer/tokenizer.rb
tokens << char
current_token = ""
when " ", "\n", "\t" then
to... | f0e4b1734446a26c44e5431f523e58337767b9a2 | lib/primix/analyzer/tokenizer.rb | lib/primix/analyzer/tokenizer.rb | Ruby |
<|file_sep|>original/demo/assets/js/script.js
/*jslint devel: true, browser: true, indent: 2, nomen: true */
/*global define */
define([], function () {
'use strict';
console.log('it works');
});
<|file_sep|>current/demo/assets/js/script.js
/*jslint devel: true, browser: true, indent: 2, nomen: true */
/*global d... | /*jslint devel: true, browser: true, indent: 2, nomen: true */
/*global define */
define([], function () {
'use strict';
// console.log('it works');
}); | <|file_sep|>original/demo/assets/js/script.js
/*jslint devel: true, browser: true, indent: 2, nomen: true */
/*global define */
define([], function () {
'use strict';
console.log('it works');
});
<|file_sep|>current/demo/assets/js/script.js
/*jslint devel: true, browser: true, indent: 2, nomen: true */
/*global d... | 0e8a21eea09024ba9fbfca0ac2efebc87253d46f | demo/assets/js/script.js | demo/assets/js/script.js | JavaScript |
<|file_sep|>original/releasenotes/notes/add-domain-dropdown-65006187e5605735.yaml
---
features:
- |
Added settings OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN (boolean) and
OPENSTACK_KEYSTONE_DOMAIN_CHOICES (tuple of tuples) to support a dropdown
list of keystone domains to choose from at login. This should NOT be... | ---
features:
- |
Added settings OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN (boolean) and
OPENSTACK_KEYSTONE_DOMAIN_CHOICES (tuple of tuples) to support a dropdown
list of keystone domains to choose from at login. This should NOT be enabled
for public clouds, as advertising enabled domains to unauthenticated ... | <|file_sep|>original/releasenotes/notes/add-domain-dropdown-65006187e5605735.yaml
---
features:
- |
Added settings OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN (boolean) and
OPENSTACK_KEYSTONE_DOMAIN_CHOICES (tuple of tuples) to support a dropdown
list of keystone domains to choose from at login. This should NOT be... | 2b011289cdc771d27813b7b1f47f87518c524726 | releasenotes/notes/add-domain-dropdown-65006187e5605735.yaml | releasenotes/notes/add-domain-dropdown-65006187e5605735.yaml | YAML |
<|file_sep|>metadata.rb.diff
original:
version "1.1.0"
updated:
version "1.1.1"
<|file_sep|>original/metadata.rb
name "admin-user"
maintainer "HipSnip Ltd."
maintainer_email "adam@hipsnip.com"
license "Apache 2.0"
description "Sets up a shared admin user to manage the s... | name "admin-user"
maintainer "HipSnip Ltd."
maintainer_email "adam@hipsnip.com"
license "Apache 2.0"
description "Sets up a shared admin user to manage the system"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.1.1"
supports 'ubuntu', ">= 10.... | <|file_sep|>metadata.rb.diff
original:
version "1.1.0"
updated:
version "1.1.1"
<|file_sep|>original/metadata.rb
name "admin-user"
maintainer "HipSnip Ltd."
maintainer_email "adam@hipsnip.com"
license "Apache 2.0"
description "Sets up a shared admin user to manage the s... | 5b7cef104a3ccbb96fabf1030650424029ab61cb | metadata.rb | metadata.rb | Ruby |
<|file_sep|>original/app/controllers/survey_notifications_controller.rb
class SurveyNotificationsController < ApplicationController
before_action :require_admin_permissions
def update
@notification = SurveyNotification.find(params[:survey_notification][:id])
if @notification.update(notification_params)
... | class SurveyNotificationsController < ApplicationController
def update
@notification = SurveyNotification.find(params[:survey_notification][:id])
if @notification.update(notification_params)
render json: { success: true }
else
render json: { error: @notification.errors }
end
end
def n... | <|file_sep|>original/app/controllers/survey_notifications_controller.rb
class SurveyNotificationsController < ApplicationController
before_action :require_admin_permissions
def update
@notification = SurveyNotification.find(params[:survey_notification][:id])
if @notification.update(notification_params)
... | 1aa27555a4f2ca5bab3a86bdf3b807a34369458f | app/controllers/survey_notifications_controller.rb | app/controllers/survey_notifications_controller.rb | Ruby |
<|file_sep|>original/index.php
include 'lib/php/load.php';
include 'html/templates/Header.php';
include 'lib/php/html/tabs.php';
//Check to see which template is needed
if (isset($_GET['i']))
{
$pg = load($_GET['i']);
}
else
{
$pg = load('Login.php');
}
<|file_sep|>current/index.php... | include 'lib/php/load.php';
include 'html/templates/Header.php';
include 'lib/php/html/tabs.php';
//Check to see which template is needed
if (isset($_GET['i']))
{
//load session checker to ensure user is authorized to see page.
include 'lib/php/auth/session_check.php';
$pg = load($_GET['i']);
... | <|file_sep|>original/index.php
include 'lib/php/load.php';
include 'html/templates/Header.php';
include 'lib/php/html/tabs.php';
//Check to see which template is needed
if (isset($_GET['i']))
{
$pg = load($_GET['i']);
}
else
{
$pg = load('Login.php');
}
<|file_sep|>current/index.php... | 609dff22af0ea32437ea0ed6b029ce64ca75a5fd | index.php | index.php | PHP |
<|file_sep|>original/README.md
Temperature Probe Python program on a Rapbserry PI.
# About
This python script get temperature from a prob installed on a Raspberry PI, and send information to differnet output (stdout, database, file)
Databases supported :
. sqlite
# How to use it
# Installation
PyMySQL module i... |
Temperature Probe Python program on a Rapbserry PI.
# About
This python script get temperature from a prob installed on a Raspberry PI, and send information to differnet output (stdout, database, file)
Databases supported :
. sqlite
**Warning** : you must have Python 3 or superior installed on your local machine ... | <|file_sep|>original/README.md
Temperature Probe Python program on a Rapbserry PI.
# About
This python script get temperature from a prob installed on a Raspberry PI, and send information to differnet output (stdout, database, file)
Databases supported :
. sqlite
# How to use it
# Installation
PyMySQL module i... | 34c910bf05726af6cdb63da527207bde12eb7e92 | README.md | README.md | Markdown |
<|file_sep|>source/css/main.css.diff
original:
updated:
background: #212121;
}
pre,
.highlight {
<|file_sep|>original/source/css/main.css
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #2e2e2e;
color: #ddd;
line-height: 0.8em
}
pre .constan... | h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #212121;
}
pre,
.highlight {
background: #2e2e2e;
color: #ddd;
line-height: 0.8em
}
pre .constant, .highlight .constant {
color: #66d9ef;
} | <|file_sep|>source/css/main.css.diff
original:
updated:
background: #212121;
}
pre,
.highlight {
<|file_sep|>original/source/css/main.css
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #2e2e2e;
color: #ddd;
line-height: 0.8em
}
pre .constan... | c0e16958204a0df038718add2d19037dbe803e49 | source/css/main.css | source/css/main.css | CSS |
<|file_sep|>original/src/loader.coffee
((url)->
# Section 1
iframe = document.createElement('iframe')
iframe.src = "javascript:false"
iframe.title = ""
# iframe.role = "presentation" # a11y
(iframe.frameElement or iframe).style.cssText =
"position: absolute; top: 0; left: 0; width: 1px; height: 1px; op... | ((url)->
# Section 1
iframe = document.createElement('iframe')
iframe.src = "javascript:false"
iframe.title = ""
# iframe.role = "presentation" # a11y
(iframe.frameElement or iframe).style.cssText =
"position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; border: none;"
if document... | <|file_sep|>original/src/loader.coffee
((url)->
# Section 1
iframe = document.createElement('iframe')
iframe.src = "javascript:false"
iframe.title = ""
# iframe.role = "presentation" # a11y
(iframe.frameElement or iframe).style.cssText =
"position: absolute; top: 0; left: 0; width: 1px; height: 1px; op... | f7a6f0a38eef58379604817013941282ae156184 | src/loader.coffee | src/loader.coffee | CoffeeScript |
<|file_sep|>original/src/app/components/PanelItemComponent.js
return Ember.Component.extend({
layout: layout,
tagName: "li",
classNames: [ "panel-item-component" ],
didInsertElement: function() {
var self = this;
this.$( "a" ).addClass( "external-link" ).click(function( e ) {
e.preventDefault();
... | return Ember.Component.extend({
layout: layout,
tagName: "li",
classNames: [ "panel-item-component" ],
didInsertElement: function() {
var self = this;
this.$( "a" )
.addClass( "external-link" )
.each(function() {
this.setAttribute( "title", this.href );
})
.click(function( e ) {
... | <|file_sep|>original/src/app/components/PanelItemComponent.js
return Ember.Component.extend({
layout: layout,
tagName: "li",
classNames: [ "panel-item-component" ],
didInsertElement: function() {
var self = this;
this.$( "a" ).addClass( "external-link" ).click(function( e ) {
e.preventDefault();
... | dc4f94e9c78210566326217b5257118e36b805c0 | src/app/components/PanelItemComponent.js | src/app/components/PanelItemComponent.js | JavaScript |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.7
- tip
matrix:
allow_failures:
- go: tip
script:
- go build ./cmd/...
- go run ./cmd/gotty-client/main.go --help || true
<|file_sep|>current/.travis.yml
language: go
go:
- 1.7
- tip
matrix:
allow_failures:
- go: tip
script:
- go build ./cmd/...
- go r... | language: go
go:
- 1.7
- 1.8
- tip
matrix:
allow_failures:
- go: tip
script:
- go build ./cmd/...
- go run ./cmd/gotty-client/main.go --help || true | <|file_sep|>original/.travis.yml
language: go
go:
- 1.7
- tip
matrix:
allow_failures:
- go: tip
script:
- go build ./cmd/...
- go run ./cmd/gotty-client/main.go --help || true
<|file_sep|>current/.travis.yml
language: go
go:
- 1.7
- tip
matrix:
allow_failures:
- go: tip
script:
- go build ./cmd/...
- go r... | 154c4573b9227e617c4c30a47ba4a5ef0cb6cdd9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/plugins.txt
workflow-aggregator-plugin
blueocean-plugin
github-oauth-plugin
azure-vm-agents-plugin
<|file_sep|>current/plugins.txt
workflow-aggregator-plugin
blueocean-plugin
github-oauth-plugin
azure-vm-agents-plugin
<|file_sep|>updated/plugins.txt | workflow-aggregator-plugin
blueocean-plugin
github-oauth-plugin
azure-vm-agents-plugin
matrix-auth-plugin | <|file_sep|>original/plugins.txt
workflow-aggregator-plugin
blueocean-plugin
github-oauth-plugin
azure-vm-agents-plugin
<|file_sep|>current/plugins.txt
workflow-aggregator-plugin
blueocean-plugin
github-oauth-plugin
azure-vm-agents-plugin
<|file_sep|>updated/plugins.txt
workflow-aggregator-plugin
blueocean-plugin
githu... | 210c415a5a2397bcef2d67be5d60a2b457dc9523 | plugins.txt | plugins.txt | Text |
<|file_sep|>original/rails_stats.gemspec
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rails_stats/version'
Gem::Specification.new do |spec|
spec.name = "rails_stats"
spec.version = RailsStats::VERSION
spec.authors = ["Brian Leonard"]
spec.email = ["brian@bleonar... | Gem::Specification.new do |spec|
spec.name = "rails_stats"
spec.version = RailsStats::VERSION
spec.authors = ["Brian Leonard"]
spec.email = ["brian@bleonard.com"]
spec.summary = %q{Analyze a Rails project}
spec.description = %q{Point it to a directory and see stuff about... | <|file_sep|>original/rails_stats.gemspec
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rails_stats/version'
Gem::Specification.new do |spec|
spec.name = "rails_stats"
spec.version = RailsStats::VERSION
spec.authors = ["Brian Leonard"]
spec.email = ["brian@bleonar... | 48c0a249a8d95eb18524bc299c99921c91bdcba9 | rails_stats.gemspec | rails_stats.gemspec | Ruby |
<|file_sep|>original/requirements.txt
gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.10"
<|file_sep|>current/requirements.txt
gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.10"
<|file_sep|>updated/requirements.txt | gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.8" | <|file_sep|>original/requirements.txt
gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.10"
<|file_sep|>current/requirements.txt
gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.10"
<|file_sep|>updated/requirements.txt
gitdb>=4.0.1,<5
typing-extensions>=3.7.4.3;python_version<"3.8" | 62131f3905ac37ff841142e2bb04bb585401a3d8 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/README.md
## Controls
| Action | Key |
| -------------- | ------ |
| Player 1 Start | 1 |
| Player 2 Start | 2 |
| Rotate Left | A |
| Rotate Right | D |
| Thrust | W |
| Fire Photon | E |
| Hyperspace | Space |
| Left Coin | 🡨 ... | | Player 1 Start | 1 |
| Player 2 Start | 2 |
| Rotate Left | A |
| Rotate Right | D |
| Thrust | W |
| Fire Photon | E |
| Hyperspace | Space |
| Left Coin | 🡨 |
| Center Coin | 🡫 |
| Right Coin | 🡪 |
| Exit | Escape |
## Downl... | <|file_sep|>original/README.md
## Controls
| Action | Key |
| -------------- | ------ |
| Player 1 Start | 1 |
| Player 2 Start | 2 |
| Rotate Left | A |
| Rotate Right | D |
| Thrust | W |
| Fire Photon | E |
| Hyperspace | Space |
| Left Coin | 🡨 ... | 1da14ad4c4007c6003794a46210f4ff0d728c2d7 | README.md | README.md | Markdown |
<|file_sep|>original/coffee/simulate.coffee
unless Offline
throw new Error("Offline simulate brought in without offline.js")
for state in ['up', 'down']
if document.querySelector("script[data-simulate='#{ state }']") or localStorage.OFFLINE_SIMULATE is state
Offline.options ?= {}
Offline.options.checks ?= ... | unless Offline
throw new Error("Offline simulate brought in without offline.js")
for state in ['up', 'down']
if document.querySelector("script[data-simulate='#{ state }']") or localStorage?.OFFLINE_SIMULATE is state
Offline.options ?= {}
Offline.options.checks ?= {}
Offline.options.checks.active = stat... | <|file_sep|>original/coffee/simulate.coffee
unless Offline
throw new Error("Offline simulate brought in without offline.js")
for state in ['up', 'down']
if document.querySelector("script[data-simulate='#{ state }']") or localStorage.OFFLINE_SIMULATE is state
Offline.options ?= {}
Offline.options.checks ?= ... | 5b33812749d1d662e3570236f6e6e286cd1b36b5 | coffee/simulate.coffee | coffee/simulate.coffee | CoffeeScript |
<|file_sep|>original/lib/overlord/connection/finalized_connection.rb
module CarbonMU
class Connection
private
class FinalizedConnection < ConnectionState
def handle_input(input)
command_context = CommandContext.new(@conn)
Parser.parse(input, command_context)
end
end
end
end... | module CarbonMU
class Connection
private
class FinalizedConnection < ConnectionState
def handle_input(input)
command_context = CommandContext.new(enacting_connection_id: @conn.id, command: input)
Parser.parse(command_context)
end
end
end
end | <|file_sep|>original/lib/overlord/connection/finalized_connection.rb
module CarbonMU
class Connection
private
class FinalizedConnection < ConnectionState
def handle_input(input)
command_context = CommandContext.new(@conn)
Parser.parse(input, command_context)
end
end
end
end... | 56c8ca132599e2bb722cb0605c65e86d4fd1a031 | lib/overlord/connection/finalized_connection.rb | lib/overlord/connection/finalized_connection.rb | Ruby |
<|file_sep|>app/importers/cma_import/mapper.rb.diff
original:
updated:
original_url_message,
<|file_sep|>original/app/importers/cma_import/mapper.rb
super(document)
end
def import_notes
super.concat(messages)
end
private
attr_reader :data
def messages
[
body_m... | private
attr_reader :data
def messages
[
original_url_message,
body_missing_message,
].compact
end
def body_missing_message
"`body` field not defined" unless data.has_key?("body")
end
def original_url_message
url = data.fetch("original_url", "unknown"... | <|file_sep|>app/importers/cma_import/mapper.rb.diff
original:
updated:
original_url_message,
<|file_sep|>original/app/importers/cma_import/mapper.rb
super(document)
end
def import_notes
super.concat(messages)
end
private
attr_reader :data
def messages
[
body_m... | 5531c63df8437eec9c068ef7fe03eb70ea46b4b9 | app/importers/cma_import/mapper.rb | app/importers/cma_import/mapper.rb | Ruby |
<|file_sep|>original/requirements/build.txt
# ydf/requirements/build.txt
#
# Requirements necessary to build the ydf package.
setuptools==39.1.0
<|file_sep|>current/requirements/build.txt
# ydf/requirements/build.txt
#
# Requirements necessary to build the ydf package.
setuptools==39.1.0
<|file_sep|>updated/requireme... | # ydf/requirements/build.txt
#
# Requirements necessary to build the ydf package.
setuptools==39.2.0 | <|file_sep|>original/requirements/build.txt
# ydf/requirements/build.txt
#
# Requirements necessary to build the ydf package.
setuptools==39.1.0
<|file_sep|>current/requirements/build.txt
# ydf/requirements/build.txt
#
# Requirements necessary to build the ydf package.
setuptools==39.1.0
<|file_sep|>updated/requireme... | cb4a7534321c196fc9b5405668315705752a5b6f | requirements/build.txt | requirements/build.txt | Text |
<|file_sep|>original/packages/ge/general-games.yaml
homepage: https://github.com/cgorski/general-games
changelog-type: ''
hash: f05016fa9a25581bbadc43713773b745f39c055c96883ae05be057c5527a381d
test-bench-deps:
base: -any
HUnit: -any
containers: -any
general-games: -any
maintainer: cgorski@cgorski.org
synopsis: ... | homepage: https://github.com/cgorski/general-games
changelog-type: ''
hash: e7ec30c71c150646969b52420bfd621a606a13d03ccf445b51cccfaa54d6cd29
test-bench-deps:
base: -any
HUnit: -any
containers: -any
general-games: -any
maintainer: cgorski@cgorski.org
synopsis: Library supporting simulation of a number of games
c... | <|file_sep|>original/packages/ge/general-games.yaml
homepage: https://github.com/cgorski/general-games
changelog-type: ''
hash: f05016fa9a25581bbadc43713773b745f39c055c96883ae05be057c5527a381d
test-bench-deps:
base: -any
HUnit: -any
containers: -any
general-games: -any
maintainer: cgorski@cgorski.org
synopsis: ... | 3519093d23a7be7f6616883f94297d50e54be2b0 | packages/ge/general-games.yaml | packages/ge/general-games.yaml | YAML |
<|file_sep|>original/templates/Includes/HailPublicationPreview.ss
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo.ServiceData"></div>
<img class="embed-responsive-item" src="$HeroVideo.Url500">
... | <% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo.ServiceData"></div>
<img class="embed-responsive-item" src="$HeroVideo.Url500">
<% else_if $HeroImage %>
<a href="$Link" cla... | <|file_sep|>original/templates/Includes/HailPublicationPreview.ss
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo.ServiceData"></div>
<img class="embed-responsive-item" src="$HeroVideo.Url500">
... | a700e027ac466797bd0d48777e9d60e97f9bdbc2 | templates/Includes/HailPublicationPreview.ss | templates/Includes/HailPublicationPreview.ss | Scheme |
<|file_sep|>original/package.json
{
"name": "woven",
"version": "0.0.10",
"description": "",
"repository": "gjtorikian/woven.js",
"main": "dist/woven.js",
"license": "MIT",
"keywords": [],
"dependencies": {},
"devDependencies": {},
"scripts": {
"postversion": "script/npm_scripts/bower_update && ... | {
"name": "woven",
"version": "0.0.10",
"description": "",
"repository": "gjtorikian/woven.js",
"main": "dist/woven.js",
"license": "MIT",
"keywords": [],
"dependencies": {},
"devDependencies": {},
"scripts": {
"version": "script/npm_scripts/bower_update",
"postversion": "git push && git pus... | <|file_sep|>original/package.json
{
"name": "woven",
"version": "0.0.10",
"description": "",
"repository": "gjtorikian/woven.js",
"main": "dist/woven.js",
"license": "MIT",
"keywords": [],
"dependencies": {},
"devDependencies": {},
"scripts": {
"postversion": "script/npm_scripts/bower_update && ... | 46d278f6e55957fcd0dfafcf6f58c5de39192fc3 | package.json | package.json | JSON |
<|file_sep|>activesupport/lib/active_support/test_case.rb.diff
original:
autorun_enabled = MiniTest::Unit.class_variable_get('@@installed_at_exit')
MiniTest::Unit.disable_autorun
updated:
autorun_enabled = MiniTest::Unit.send(:class_variable_get, '@@installed_at_exit')
if MiniTest::Unit.respond_to?(:dis... | require 'minitest/unit'
# Hack around the test/unit autorun.
autorun_enabled = MiniTest::Unit.send(:class_variable_get, '@@installed_at_exit')
if MiniTest::Unit.respond_to?(:disable_autorun)
MiniTest::Unit.disable_autorun
else
MiniTest::Unit.send(:class_variable_set, '@@installed_at_exi... | <|file_sep|>activesupport/lib/active_support/test_case.rb.diff
original:
autorun_enabled = MiniTest::Unit.class_variable_get('@@installed_at_exit')
MiniTest::Unit.disable_autorun
updated:
autorun_enabled = MiniTest::Unit.send(:class_variable_get, '@@installed_at_exit')
if MiniTest::Unit.respond_to?(:dis... | 3a33ee28e9babc5a1a78079f5ca50ea6249f2643 | activesupport/lib/active_support/test_case.rb | activesupport/lib/active_support/test_case.rb | Ruby |
<|file_sep|>original/test/fixtures/phone_numbers.yml
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
#### Test Data for phone_numbers table
ph_1_of_1:
phone_type: Home
phone_number: '2224567532'
user: has_one_phone
ph_1_of_2:
phone_type: Home
phone_number: '3214560987'
us... | user: has_one_phone
ph_1_of_2:
phone_type: Home
phone_number: '3214560987'
user: has_two_phone
ph_2_of_2:
phone_type: Work
phone_number: '4561970032'
user: has_two_phone
minimum_printable:
phone_type: Home
phone_number: '2345678899'
user: minimum_printable
forms:
phone_type: Home
phone_number: '444... | <|file_sep|>original/test/fixtures/phone_numbers.yml
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
#### Test Data for phone_numbers table
ph_1_of_1:
phone_type: Home
phone_number: '2224567532'
user: has_one_phone
ph_1_of_2:
phone_type: Home
phone_number: '3214560987'
us... | 27cb9e6c3f6a52a5ce3ea7c329cff1f1543e0c04 | test/fixtures/phone_numbers.yml | test/fixtures/phone_numbers.yml | YAML |
<|file_sep|>original/byceps/blueprints/core_admin/views.py
from ...services.brand import service as brand_service
from ...util.framework.blueprint import create_blueprint
from ..authorization.registry import permission_registry
from .authorization import AdminPermission
blueprint = create_blueprint('core_admin', __... | from ...services.brand import service as brand_service
from ...util.framework.blueprint import create_blueprint
from ..authorization.registry import permission_registry
from .authorization import AdminPermission
blueprint = create_blueprint('core_admin', __name__)
permission_registry.register_enum(AdminPermission... | <|file_sep|>original/byceps/blueprints/core_admin/views.py
from ...services.brand import service as brand_service
from ...util.framework.blueprint import create_blueprint
from ..authorization.registry import permission_registry
from .authorization import AdminPermission
blueprint = create_blueprint('core_admin', __... | 9b19d366c7e1cf41ffc6af4eaed789995ddc5cc2 | byceps/blueprints/core_admin/views.py | byceps/blueprints/core_admin/views.py | Python |
<|file_sep|>original/environment/transpiler/targets/javascript/environment/function-source.lisp
;;;; tré - Copyright (c) 2011 Sven Klose <pixel@copei.de>
(defun function-arguments (fun)
(awhen fun.__source
!.))
(defun function-body (fun)
(awhen fun.__source
.!))
<|file_sep|>current/environment/transpiler/... | ;;;; tré - Copyright (c) 2011 Sven Klose <pixel@copei.de>
(defun function-arguments (fun)
(? fun
(aif fun.__source
!.
'(&rest unknown-args))
'(&rest unknown-args)))
(defun function-body (fun)
(awhen fun.__source
.!)) | <|file_sep|>original/environment/transpiler/targets/javascript/environment/function-source.lisp
;;;; tré - Copyright (c) 2011 Sven Klose <pixel@copei.de>
(defun function-arguments (fun)
(awhen fun.__source
!.))
(defun function-body (fun)
(awhen fun.__source
.!))
<|file_sep|>current/environment/transpiler/... | 9379a4ba0b9da00b7199dcf20e6267dae810df8f | environment/transpiler/targets/javascript/environment/function-source.lisp | environment/transpiler/targets/javascript/environment/function-source.lisp | Common Lisp |
<|file_sep|>original/test/plugs/authenticated_test.exs
test "assign current_user when logged in", context do
conn = context.conn
|> put_session(:current_user, "bob")
refute Map.has_key?(conn.assigns, :current_user)
conn = Auth.call(conn, @authenticated_opts)
assert conn.assigns.current_user =... |
test "assign current_user when logged in", context do
conn = context.conn
|> put_session(:current_user, "bob")
refute Map.has_key?(conn.assigns, :current_user)
conn = Auth.call(conn, @authenticated_opts)
assert conn.assigns.current_user == "bob"
end
test "redirect when not logged in", co... | <|file_sep|>original/test/plugs/authenticated_test.exs
test "assign current_user when logged in", context do
conn = context.conn
|> put_session(:current_user, "bob")
refute Map.has_key?(conn.assigns, :current_user)
conn = Auth.call(conn, @authenticated_opts)
assert conn.assigns.current_user =... | 66163f35dbe1ae3f6de1688e1bfd9f0bb3a9e571 | test/plugs/authenticated_test.exs | test/plugs/authenticated_test.exs | Elixir |
<|file_sep|>lib/lazy/pp/json/version.rb.diff
original:
updated:
# -*- coding: utf-8 -*-
<|file_sep|>original/lib/lazy/pp/json/version.rb
module Lazy
module PP
module JSON
VERSION = "0.0.1"
end
end
end
<|file_sep|>current/lib/lazy/pp/json/version.rb
# -*- coding: utf-8 -*-
module Lazy
module PP
... | # -*- coding: utf-8 -*-
module Lazy
module PP
class JSON < String
VERSION = "0.0.1"
end
end
end | <|file_sep|>lib/lazy/pp/json/version.rb.diff
original:
updated:
# -*- coding: utf-8 -*-
<|file_sep|>original/lib/lazy/pp/json/version.rb
module Lazy
module PP
module JSON
VERSION = "0.0.1"
end
end
end
<|file_sep|>current/lib/lazy/pp/json/version.rb
# -*- coding: utf-8 -*-
module Lazy
module PP
... | 8501bfc7fee8271aa518126901743110ffb4d7a5 | lib/lazy/pp/json/version.rb | lib/lazy/pp/json/version.rb | Ruby |
<|file_sep|>original/README.md
# Arrow.js - the correlation engine
[](https://travis-ci.org/amos-ws16/amos-ws16-arrowjs?branch=master)
[](https://travis-ci.org/amos-ws16/amos-ws16-arrowjs?branch=master) [](https://coveralls.io/gi... | <|file_sep|>original/README.md
# Arrow.js - the correlation engine
[](https://travis-ci.org/amos-ws16/amos-ws16-arrowjs?branch=master)
[ {
var version = require('./package.json').version;
return eventStream.merge(
getSources()
.pipe(zip('operator-status-plugin-' + version + '.zip')),
getSources()
.pipe(tar('operator-status-plugin-' +... | gulp.task('prepare-release', function() {
var version = require('./package.json').version;
return eventStream.merge(
getSources()
.pipe(zip('operator-status-plugin-' + version + '.zip')),
getSources()
.pipe(tar('operator-status-plugin-' + version + '.tar'))
.... | <|file_sep|>original/gulpfile.js
gulp.task('prepare-release', function() {
var version = require('./package.json').version;
return eventStream.merge(
getSources()
.pipe(zip('operator-status-plugin-' + version + '.zip')),
getSources()
.pipe(tar('operator-status-plugin-' +... | 84c94f427a55b2cf466de59b0f82d99921069479 | gulpfile.js | gulpfile.js | JavaScript |
<|file_sep|>original/lib/generate/template.js
} catch(e) {
return hljs.highlightAuto(code).value;
}
});
// Convert a level into a deep level
swig.setFilter('lvl', function(lvl) {
return lvl.split(".").length;
});
// Join path
swig.setFilter('pathJoin', function(base, _path) {
return path.join(... | } catch(e) {
return hljs.highlightAuto(code).value;
}
});
// Convert a level into a deep level
swig.setFilter('lvl', function(lvl) {
return lvl.split(".").length;
});
// Join path
swig.setFilter('pathJoin', function(base, _path) {
return links.join(base, _path);
});
// Is a link an absolute l... | <|file_sep|>original/lib/generate/template.js
} catch(e) {
return hljs.highlightAuto(code).value;
}
});
// Convert a level into a deep level
swig.setFilter('lvl', function(lvl) {
return lvl.split(".").length;
});
// Join path
swig.setFilter('pathJoin', function(base, _path) {
return path.join(... | d8030524616196fcc184b45ab08edc67ba4a760f | lib/generate/template.js | lib/generate/template.js | JavaScript |
<|file_sep|>original/spec/lib/resume/decoder_spec.rb
before do
allow(Base64).to \
receive(:strict_decode64).with(encoded_string).
and_return(decoded_string)
end
describe '.decode' do
it 'strictly decodes the string, forcing UTF-8 encoding' do
expect(decoded_string).to ... | require 'resume/decoder'
module Resume
RSpec.describe Decoder do
let(:encoded_string) { '3|\|c0D3d 1N|=0' }
let(:decoded_string) { 'Encoded info' }
before do
allow(Base64).to \
receive(:strict_decode64).with(encoded_string).
and_return(decoded_string)
end
# describe '.de... | <|file_sep|>original/spec/lib/resume/decoder_spec.rb
before do
allow(Base64).to \
receive(:strict_decode64).with(encoded_string).
and_return(decoded_string)
end
describe '.decode' do
it 'strictly decodes the string, forcing UTF-8 encoding' do
expect(decoded_string).to ... | 4b1e224fb0ce5c9a4fb1d27db187df4290eeb98c | spec/lib/resume/decoder_spec.rb | spec/lib/resume/decoder_spec.rb | Ruby |
<|file_sep|>original/ckanext/datasetversions/logic/action/create.py
def dataset_version_create(context, data_dict):
id = data_dict.get('id')
parent_name = data_dict.get('base_name')
owner_org = data_dict.get('owner_org')
parent_dict = {
'name': parent_name,
'__parent': True,
}
... |
def dataset_version_create(context, data_dict):
id = data_dict.get('id')
parent_name = data_dict.get('base_name')
owner_org = data_dict.get('owner_org')
parent_dict = {
'name': parent_name,
'type': data_dict.get('type', 'dataset'),
'__parent': True,
}
if owner_org:
... | <|file_sep|>original/ckanext/datasetversions/logic/action/create.py
def dataset_version_create(context, data_dict):
id = data_dict.get('id')
parent_name = data_dict.get('base_name')
owner_org = data_dict.get('owner_org')
parent_dict = {
'name': parent_name,
'__parent': True,
}
... | 2c7907c6516ded896000dec610bde09f7721915d | ckanext/datasetversions/logic/action/create.py | ckanext/datasetversions/logic/action/create.py | Python |
<|file_sep|>original/tests/cmd/test_manage.py
<|file_sep|>current/tests/cmd/test_manage.py
<|file_sep|>updated/tests/cmd/test_manage.py | # Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | <|file_sep|>original/tests/cmd/test_manage.py
<|file_sep|>current/tests/cmd/test_manage.py
<|file_sep|>updated/tests/cmd/test_manage.py
# Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with... | e44e50d16726b8517d497f50a276a9851be7fcf0 | tests/cmd/test_manage.py | tests/cmd/test_manage.py | Python |
<|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.2 # Test coverage
flake8==3.7.7 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.2 ... | # Testing
coverage==4.5.3 # Test coverage
flake8==3.7.7 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints | <|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.2 # Test coverage
flake8==3.7.7 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.2 ... | aae213d68f57bd2da2bedcdc6e19ac16e7e29229 | requirements-test.txt | requirements-test.txt | Text |
<|file_sep|>original/canonical-rails.gemspec
require "canonical-rails/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "canonical-rails"
s.version = CanonicalRails::VERSION
s.authors = ["Denis Ivanov"]
s.email = ["visible@jumph4x.net"]
s.h... | require "canonical-rails/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "canonical-rails"
s.version = CanonicalRails::VERSION
s.authors = ["Denis Ivanov"]
s.email = ["visible@jumph4x.net"]
s.homepage = "https://github.com/jumph4x/cano... | <|file_sep|>original/canonical-rails.gemspec
require "canonical-rails/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "canonical-rails"
s.version = CanonicalRails::VERSION
s.authors = ["Denis Ivanov"]
s.email = ["visible@jumph4x.net"]
s.h... | b175cf87f216802a0eb712dfbeea6d21692d9298 | canonical-rails.gemspec | canonical-rails.gemspec | Ruby |
<|file_sep|>original/src/scripts/uptime.coffee
intervals = {}
intervals.day = Math.floor(uptime_seconds / 86400)
intervals.hour = Math.floor((uptime_seconds % 86400) / 3600)
intervals.minute = Math.floor(((uptime_seconds % 86400) % 3600) / 60)
intervals.second = ((uptime_seconds % 86400) % 3600) % 60
eleme... | uptime_seconds = Math.floor((now - start) / 1000)
intervals = {}
intervals.day = Math.floor(uptime_seconds / 86400)
intervals.hour = Math.floor((uptime_seconds % 86400) / 3600)
intervals.minute = Math.floor(((uptime_seconds % 86400) % 3600) / 60)
intervals.second = ((uptime_seconds % 86400) % 3600) % 60
... | <|file_sep|>original/src/scripts/uptime.coffee
intervals = {}
intervals.day = Math.floor(uptime_seconds / 86400)
intervals.hour = Math.floor((uptime_seconds % 86400) / 3600)
intervals.minute = Math.floor(((uptime_seconds % 86400) % 3600) / 60)
intervals.second = ((uptime_seconds % 86400) % 3600) % 60
eleme... | c40e0b209c792ae72a174f117fb5cdd4b3763c2c | src/scripts/uptime.coffee | src/scripts/uptime.coffee | CoffeeScript |
<|file_sep|>original/.travis.yml
# reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
script:
- xctool -project SwiftColorsExamples.xcodeproj -scheme SwiftColorsExamples -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
<|file_sep|>current/.travis.yml
# reference: http://www.objc.io/issue-6/travis-ci.ht... | # reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
xcode_project: SwiftColorsExamples.xcodeproj
xcode_scheme: SwiftColorsExamplesTests | <|file_sep|>original/.travis.yml
# reference: http://www.objc.io/issue-6/travis-ci.html
language: objective-c
script:
- xctool -project SwiftColorsExamples.xcodeproj -scheme SwiftColorsExamples -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
<|file_sep|>current/.travis.yml
# reference: http://www.objc.io/issue-6/travis-ci.ht... | 1d18ff7edf6cf8dd09ab3eeb06c951201858bf3a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/library/etc/nprocessors_spec.rb
require File.expand_path('../../../spec_helper', __FILE__)
require 'etc'
describe "Etc.nprocessors" do
it "returns the number of online processors" do
Etc.nprocessors.should be_kind_of(Integer)
Etc.nprocessors.should >= 1
end
end
<|file_sep|>current/libr... | require File.expand_path('../../../spec_helper', __FILE__)
require 'etc'
ruby_version_is "2.2" do
describe "Etc.nprocessors" do
it "returns the number of online processors" do
Etc.nprocessors.should be_kind_of(Integer)
Etc.nprocessors.should >= 1
end
end
end | <|file_sep|>original/library/etc/nprocessors_spec.rb
require File.expand_path('../../../spec_helper', __FILE__)
require 'etc'
describe "Etc.nprocessors" do
it "returns the number of online processors" do
Etc.nprocessors.should be_kind_of(Integer)
Etc.nprocessors.should >= 1
end
end
<|file_sep|>current/libr... | 96ba5d539892ed3436cf667d396b10458f95b6d0 | library/etc/nprocessors_spec.rb | library/etc/nprocessors_spec.rb | Ruby |
<|file_sep|>original/S24-testing/13-cmp-ok.t
<|file_sep|>current/S24-testing/13-cmp-ok.t
<|file_sep|>updated/S24-testing/13-cmp-ok.t | use v6;
use lib <t/spec/packages>;
use Test;
use Test::Util;
plan 1;
# Some things don't stringify well, so cmp-ok should show something better
# for them, like .gist or .perl:
is_run 「use Test; cmp-ok 'foo', '~~', class {
method perl { 'meowbar' }
method gist { 'meowbar' }
method Str { die 'test failed'... | <|file_sep|>original/S24-testing/13-cmp-ok.t
<|file_sep|>current/S24-testing/13-cmp-ok.t
<|file_sep|>updated/S24-testing/13-cmp-ok.t
use v6;
use lib <t/spec/packages>;
use Test;
use Test::Util;
plan 1;
# Some things don't stringify well, so cmp-ok should show something better
# for them, like .gist or .perl:
is_run... | 1287ea5ab3fcef13a16735a731bacb6f8529150e | S24-testing/13-cmp-ok.t | S24-testing/13-cmp-ok.t | Perl |
<|file_sep|>original/requirements.txt
matplotlib==3.0.2
networkx==2.2
pandas==0.23.4
hiveplot==2017.10.17.21.7
nxviz==0.6.0
numpy==1.16.0
jupyter==1.0.0
scipy==1.2.0
python-louvain==0.13
tqdm==4.29.1
<|file_sep|>current/requirements.txt
matplotlib==3.0.2
networkx==2.2
pandas==0.23.4
hiveplot==2017.10.17.21.7
nxviz==0.6... | matplotlib==3.0.2
networkx==2.2
pandas==0.24.0
hiveplot==2017.10.17.21.7
nxviz==0.6.0
numpy==1.16.0
jupyter==1.0.0
scipy==1.2.0
python-louvain==0.13
tqdm==4.29.1 | <|file_sep|>original/requirements.txt
matplotlib==3.0.2
networkx==2.2
pandas==0.23.4
hiveplot==2017.10.17.21.7
nxviz==0.6.0
numpy==1.16.0
jupyter==1.0.0
scipy==1.2.0
python-louvain==0.13
tqdm==4.29.1
<|file_sep|>current/requirements.txt
matplotlib==3.0.2
networkx==2.2
pandas==0.23.4
hiveplot==2017.10.17.21.7
nxviz==0.6... | 0e9dbf06a52c1ea4a39117db3fea2905499b43c2 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/_config.yml
# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
# Used for Sitemap.xml and your RSS feed
url: http://onewithnow.com
#
# !! You don't need to change any of the configuration flags below !!
#
markdown: redcarpet
highlighter: pygments
permalink: /:titl... |
# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
# Used for Sitemap.xml and your RSS feed
url: http://onewithnow.com
#
# !! You don't need to change any of the configuration flags below !!
#
markdown: kramdown
highlighter: rouge
permalink: /:title/
# The release of Jekyll Now that ... | <|file_sep|>original/_config.yml
# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
# Used for Sitemap.xml and your RSS feed
url: http://onewithnow.com
#
# !! You don't need to change any of the configuration flags below !!
#
markdown: redcarpet
highlighter: pygments
permalink: /:titl... | 8c5abf6ae8929687f2d8e89baf78c9b162541dac | _config.yml | _config.yml | YAML |
<|file_sep|>original/.travis.yml
import: Activiti/activiti-scripts:.travis.java.yml@master
stages:
- name: verify
- name: tag_deploy_updatebot
if: type != pull_request
jobs:
include:
- name: Verify build
stage: verify
script:
- mvn verify -B
- name: Create a tag deploy to nexus run updatebot
sta... | import:
- source: Activiti/activiti-scripts:.travis.java.yml@master
- source: Activiti/activiti-scripts:.travis.maven_cache_repo_no_snapshots.yml@master
stages:
- name: verify
- name: tag_deploy_updatebot
if: type != pull_request
jobs:
include:
- name: Verify build
stage: verify
script:
- mvn veri... | <|file_sep|>original/.travis.yml
import: Activiti/activiti-scripts:.travis.java.yml@master
stages:
- name: verify
- name: tag_deploy_updatebot
if: type != pull_request
jobs:
include:
- name: Verify build
stage: verify
script:
- mvn verify -B
- name: Create a tag deploy to nexus run updatebot
sta... | e43d0dc09394de91d28bb1f289849b6a73d0d01d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.rubocop.yml
# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
AllowSafeAssignment: true
# Require lines to fit in pull requests.
Metrics/LineLength:
Max: 92
# Allow and/or for control flow only
Style/AndOr:
EnforcedStyle: conditionals
# Dot at end of line makes it clearer that ... | AllCops:
Exclude:
- 'tmp/**/*'
# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
AllowSafeAssignment: true
# Require lines to fit in pull requests.
Metrics/LineLength:
Max: 92
# Allow and/or for control flow only
Style/AndOr:
EnforcedStyle: conditionals
# Dot at end of line makes it clearer t... | <|file_sep|>original/.rubocop.yml
# Allow if (foo = get_foo) style
Lint/AssignmentInCondition:
AllowSafeAssignment: true
# Require lines to fit in pull requests.
Metrics/LineLength:
Max: 92
# Allow and/or for control flow only
Style/AndOr:
EnforcedStyle: conditionals
# Dot at end of line makes it clearer that ... | eb530979e79e654ae239314e780ab9c46a3e1994 | .rubocop.yml | .rubocop.yml | YAML |
<|file_sep|>packages/ip/ipcvar.yaml.diff
original:
hash: fea29b06444d641ab0899e8d858676f5f68dc69cfe827193e8e3f6be12974220
updated:
hash: c7a005e1b20f13ab02318dc30e5a2bc0e019375c484c35fc8dc06fc53eb50bbd
<|file_sep|>packages/ip/ipcvar.yaml.diff
original:
updated:
text: ! '>=0.11.3.1'
uuid: ! '>=1.3.3'
<|file_sep|>pa... | basic-deps:
bytestring: ! '>=0.9.2.1'
unix: ! '>=2.5.1.1'
base: ! '>=3 && <5'
text: ! '>=0.11.3.1'
uuid: ! '>=1.3.3'
binary: ! '>=0.5.1.1'
directory: ! '>=1.2.0.1'
all-versions:
- '0.0.1'
- '0.1.1'
author: John Wiegley
latest: '0.1.1'
description-type: haddock
description: ! 'IPCVars allows you to communi... | <|file_sep|>packages/ip/ipcvar.yaml.diff
original:
hash: fea29b06444d641ab0899e8d858676f5f68dc69cfe827193e8e3f6be12974220
updated:
hash: c7a005e1b20f13ab02318dc30e5a2bc0e019375c484c35fc8dc06fc53eb50bbd
<|file_sep|>packages/ip/ipcvar.yaml.diff
original:
updated:
text: ! '>=0.11.3.1'
uuid: ! '>=1.3.3'
<|file_sep|>pa... | 4339f710767e733c085e8d16e55fc11c7c87e93e | packages/ip/ipcvar.yaml | packages/ip/ipcvar.yaml | YAML |
<|file_sep|>original/lib/dom.js
});
// Setup option list
this.$optionList = $('<ul />', {
'class': [this.options.classes.optionList, this.options.classes.isHidden].join(' ')
});
this.renderOptions();
this.renderSelect(this.getContent());
this.setActiveOption(this.getValue(), true);
// Go!
this.$... | });
// Setup option list
this.$optionList = $('<ul />', {
'class': [this.options.classes.optionList, this.options.classes.isHidden].join(' ')
});
this.renderOptions();
this.renderSelect(this.getContent());
this.setActiveOption(this.getValue(), true);
this.setFocusedOption(this.getValue());
// Go... | <|file_sep|>original/lib/dom.js
});
// Setup option list
this.$optionList = $('<ul />', {
'class': [this.options.classes.optionList, this.options.classes.isHidden].join(' ')
});
this.renderOptions();
this.renderSelect(this.getContent());
this.setActiveOption(this.getValue(), true);
// Go!
this.$... | 4a9885d043b48e372af8dfb8ff698a4e5c86e593 | lib/dom.js | lib/dom.js | JavaScript |
<|file_sep|>original/rust/etl/src/lib.rs
use std::collections::BTreeMap;
use std::ascii::AsciiExt;
pub fn transform(input: &BTreeMap<i32, Vec<char>>) -> BTreeMap<char, i32> {
let mut result: BTreeMap<char, i32> = BTreeMap::new();
for (k, v) in input {
for c in v {
result.entry((*c).to_asci... | use std::collections::BTreeMap;
use std::ascii::AsciiExt;
pub fn transform(input: &BTreeMap<i32, Vec<char>>) -> BTreeMap<char, i32> {
input
.iter()
.flat_map(|(k, v)| v.iter().map(move |x| (x.to_ascii_lowercase(), *k)))
.collect()
} | <|file_sep|>original/rust/etl/src/lib.rs
use std::collections::BTreeMap;
use std::ascii::AsciiExt;
pub fn transform(input: &BTreeMap<i32, Vec<char>>) -> BTreeMap<char, i32> {
let mut result: BTreeMap<char, i32> = BTreeMap::new();
for (k, v) in input {
for c in v {
result.entry((*c).to_asci... | ac8b8159f8da6a9776ee58cae0a12db953a69aca | rust/etl/src/lib.rs | rust/etl/src/lib.rs | Rust |
<|file_sep|>original/src/Language/Docopt/Solver/Ungroup.purs
-- | Ungroup groups into their super groups if they only have one branch and all
-- | contained elements are optional.
module Language.Docopt.Solver.Ungroup where
import Prelude
import Data.List (List(), singleton)
import Language.Docopt
unGroup :: Specifi... | {-
# Simplify the spec by unnesting groups.
* Singleton groups that contain only a single other group, or "required" groups
that contain only a single required element. Since the set of "required"
arguments changes with the 'options.requireFlags' setting, only consider
positional arguments and commands truely re... | <|file_sep|>original/src/Language/Docopt/Solver/Ungroup.purs
-- | Ungroup groups into their super groups if they only have one branch and all
-- | contained elements are optional.
module Language.Docopt.Solver.Ungroup where
import Prelude
import Data.List (List(), singleton)
import Language.Docopt
unGroup :: Specifi... | b8e3953705e5f7ccb5c72a7e373d0547da8944ac | src/Language/Docopt/Solver/Ungroup.purs | src/Language/Docopt/Solver/Ungroup.purs | PureScript |
<|file_sep|>original/README.md
RxExamples
==========
This is source code that accompanies a five part blog post series on Notification Patterns in Rx.
https://timothyk.github.io/blog/2014/RxNotify/Intro/
This repository is unlicensed, public domain.
<|file_sep|>current/README.md
RxExamples
==========
This is sou... | RxExamples
==========
This is source code that accompanies a five part blog post series on Notification Patterns in Rx.
https://codemonkeyprojectiles.com/blog/2014/RxNotify/Intro/
This repository is unlicensed, public domain.
| <|file_sep|>original/README.md
RxExamples
==========
This is source code that accompanies a five part blog post series on Notification Patterns in Rx.
https://timothyk.github.io/blog/2014/RxNotify/Intro/
This repository is unlicensed, public domain.
<|file_sep|>current/README.md
RxExamples
==========
This is sou... | 6d1c61f33286e3859a2ecde3f37a4d14b6ccfcac | README.md | README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.