prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>test/credo/check/readability/parentheses_on_zero_arity_defs_test.exs.diff
original:
updated:
test "it should not crash on macros creating zero arity functions" do
"""
defmodule Credo.Sample.Module do
defmacro dynamic_methoder(attribute, value) do
quote do
def unquote(attribute)(), do: unquot... | def run() do
21
end
end
""" |> to_source_file
|> assert_issue(@described_check)
end
test "it should not crash on macros creating zero arity functions" do
"""
defmodule Credo.Sample.Module do
defmacro dynamic_methoder(attribute, value) do
quote do
def unquote(attribute)(), do: unquote(value)... | <|file_sep|>test/credo/check/readability/parentheses_on_zero_arity_defs_test.exs.diff
original:
updated:
test "it should not crash on macros creating zero arity functions" do
"""
defmodule Credo.Sample.Module do
defmacro dynamic_methoder(attribute, value) do
quote do
def unquote(attribute)(), do: unquot... | 124923a325fff2dcf0bef5157a9592dfaf927229 | test/credo/check/readability/parentheses_on_zero_arity_defs_test.exs | test/credo/check/readability/parentheses_on_zero_arity_defs_test.exs | Elixir |
<|file_sep|>spacy/__init__.py.diff
original:
updated:
import sys
<|file_sep|>original/spacy/__init__.py
# These are imported as part of the API
from thinc.neural.util import prefer_gpu, require_gpu
from .cli.info import info as cli_info
from .glossary import explain
from .about import __version__
from .errors import ... |
# These are imported as part of the API
from thinc.neural.util import prefer_gpu, require_gpu
from .cli.info import info as cli_info
from .glossary import explain
from .about import __version__
from .errors import Warnings, deprecation_warning
from . import util
if __version__ >= '2.1.0' and sys.maxunicode <= 65535:... | <|file_sep|>spacy/__init__.py.diff
original:
updated:
import sys
<|file_sep|>original/spacy/__init__.py
# These are imported as part of the API
from thinc.neural.util import prefer_gpu, require_gpu
from .cli.info import info as cli_info
from .glossary import explain
from .about import __version__
from .errors import ... | 6db1ddd9c7776cf07222ae58dc9b2c44135ac59a | spacy/__init__.py | spacy/__init__.py | Python |
<|file_sep|>original/requirements_dev.txt
pip==19.3.1
bumpversion==0.5.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.9
Sphinx==2.2.2
tox==3.14.2
coverage==4.5.4
PyYAML==5.2
pytest==5.3.1
<|file_sep|>current/requirements_dev.txt
pip==19.3.1
bumpversion==0.5.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.9
Sphinx==2.2.2
tox==... | pip==19.3.1
bumpversion==0.5.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.9
Sphinx==2.2.2
tox==3.14.2
coverage==5.0
PyYAML==5.2
pytest==5.3.1 | <|file_sep|>original/requirements_dev.txt
pip==19.3.1
bumpversion==0.5.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.9
Sphinx==2.2.2
tox==3.14.2
coverage==4.5.4
PyYAML==5.2
pytest==5.3.1
<|file_sep|>current/requirements_dev.txt
pip==19.3.1
bumpversion==0.5.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.9
Sphinx==2.2.2
tox==... | 241740dea2eb80527bf76cc84227a8211ebfbc1b | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/src/WireMock/Client/JsonValueMatchingStrategy.php
<?php
namespace WireMock\Client;
class JsonValueMatchingStrategy extends ValueMatchingStrategy
{
const COMPARE_MODE__NON_EXTENSIBLE = "NON_EXTENSIBLE";
const COMPARE_MODE__LENIENT = "LENIENT";
private $_jsonCompareMode;
function ... | <?php
namespace WireMock\Client;
class JsonValueMatchingStrategy extends ValueMatchingStrategy
{
const COMPARE_MODE__NON_EXTENSIBLE = "NON_EXTENSIBLE";
const COMPARE_MODE__LENIENT = "LENIENT";
const COMPARE_MODE__STRICT = "STRICT";
const COMPARE_MODE__STRICT_ORDER = "STRICT_ORDER";
private $_json... | <|file_sep|>original/src/WireMock/Client/JsonValueMatchingStrategy.php
<?php
namespace WireMock\Client;
class JsonValueMatchingStrategy extends ValueMatchingStrategy
{
const COMPARE_MODE__NON_EXTENSIBLE = "NON_EXTENSIBLE";
const COMPARE_MODE__LENIENT = "LENIENT";
private $_jsonCompareMode;
function ... | 632153908bc36c415fe22e3cb254fd44910bb82b | src/WireMock/Client/JsonValueMatchingStrategy.php | src/WireMock/Client/JsonValueMatchingStrategy.php | PHP |
<|file_sep|>original/README.md
bundle install
Then you have to run the server, the easiest way to do this is to
use foreman:
bundle exec foreman start
Now you can open [localhost:5000](http://localhost:5000)
By default it uses official API at `https://api.travis-ci.org`, but you
can set your own enpoint usi... | can set your own enpoint using:
API_ENDPOINT="http://localhost:300/" bundle exec foreman start
This will run against API run locally.
### Compiling assets manually
bundle exec rakep
ENV=production bundle exec rakep
### Running the spec suite
To run the test suite, you must first start the app (see ab... | <|file_sep|>original/README.md
bundle install
Then you have to run the server, the easiest way to do this is to
use foreman:
bundle exec foreman start
Now you can open [localhost:5000](http://localhost:5000)
By default it uses official API at `https://api.travis-ci.org`, but you
can set your own enpoint usi... | 8ed1226955d3a8a6fb34347f0d20f8cd95d5a000 | README.md | README.md | Markdown |
<|file_sep|>original/README.md
[](https://travis-ci.org/tradewave/tradewave-python)
[](https://coveralls.io/r/tradewave/tradewave-python?bra... | [](https://travis-ci.org/tradewave/tradewave-python)
[](https://coveralls.io/r/tradewave/tradewave-python?branch=master)
[](https://travis-ci.org/tradewave/tradewave-python)
[](https://coveralls.io/r/tradewave/tradewave-python?bra... | 542852bc44c2bb3a817711250e1630274d19f74f | README.md | README.md | Markdown |
<|file_sep|>original/utils.py
import os
import sys
import hashlib
def e(s):
if type(s) == str:
return str
return s.encode('utf-8')
def d(s):
if type(s) == unicode:
return s
return unicode(s, 'utf-8')
def mkid(s):
return hashlib.sha1(e(s)).hexdigest()[:2*4]
def running_in_tools_la... | import os
import sys
import hashlib
def e(s):
if type(s) == str:
return s
return s.encode('utf-8')
def d(s):
if type(s) == unicode:
return s
return unicode(s, 'utf-8')
def mkid(s):
return hashlib.sha1(e(s)).hexdigest()[:2*4]
def running_in_tools_labs():
return os.path.exists(... | <|file_sep|>original/utils.py
import os
import sys
import hashlib
def e(s):
if type(s) == str:
return str
return s.encode('utf-8')
def d(s):
if type(s) == unicode:
return s
return unicode(s, 'utf-8')
def mkid(s):
return hashlib.sha1(e(s)).hexdigest()[:2*4]
def running_in_tools_la... | 812fd79675590659b3dc4251ed998f84c4bf2395 | utils.py | utils.py | Python |
<|file_sep|>original/README.md
curldrop
========
WebApp for for easy file uploads via curl
<|file_sep|>current/README.md
curldrop
========
WebApp for for easy file uploads via curl
<|file_sep|>updated/README.md | curldrop
========
curldrop is a simple (less than 100 LOC) web application that allows you to upload files straight from the terminal with curl. It is inspired by great services like <a href="http://curl.io/">curl.io</a>, <a href="http://chunk.io/">chunk.io</a> and <a href="https://transfer.sh/">transfer.sh.</a>
Inst... | <|file_sep|>original/README.md
curldrop
========
WebApp for for easy file uploads via curl
<|file_sep|>current/README.md
curldrop
========
WebApp for for easy file uploads via curl
<|file_sep|>updated/README.md
curldrop
========
curldrop is a simple (less than 100 LOC) web application that allows you to upload files... | 32dcb363bf4e92f62a9e08ffef8f9530d4070b9f | README.md | README.md | Markdown |
<|file_sep|>original/docs/requirements.txt
sphinx==2.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.2.1
pyenchant==2.0.0
towncrier==19.2.0
<|file_sep|>current/docs/requirements.txt
sphinx==2.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.2.1
pyenchant==2.0.0
towncrier==19.2.0
<|file_sep|>updated... | sphinx==2.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.3.0
pyenchant==2.0.0
towncrier==19.2.0 | <|file_sep|>original/docs/requirements.txt
sphinx==2.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.2.1
pyenchant==2.0.0
towncrier==19.2.0
<|file_sep|>current/docs/requirements.txt
sphinx==2.1.1
sphinxcontrib-asyncio==0.2.0
sphinxcontrib-spelling==4.2.1
pyenchant==2.0.0
towncrier==19.2.0
<|file_sep|>updated... | 7f0d34982c0ef0d2049acfa55cf0de8352c466c3 | docs/requirements.txt | docs/requirements.txt | Text |
<|file_sep|>original/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java
<|file_sep|>current/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java
<|file_sep|>updated/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java | package com.easternedgerobotics.rov.control;
public final class AnalogToPowerLevel {
private AnalogToPowerLevel() {
}
/**
* Used to scale the value to the [0, 110] range.
*/
private static final int SCALAR = 110;
/**
* Used to shift the value to the [-5, 105] range.
*/
pri... | <|file_sep|>original/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java
<|file_sep|>current/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java
<|file_sep|>updated/src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java
package com.easternedgerobotics.rov... | 9ab899b5a2bf6041ae9ab7982348ac27bfb0b754 | src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java | src/main/java/com/easternedgerobotics/rov/control/AnalogToPowerLevel.java | Java |
<|file_sep|>packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx.diff
original:
import { registerComponent } from '../../lib/vulcan-lib';
import Popper from '@material-ui/core/Popper';
updated:
import { Components, registerComponent } from '../../lib/vulcan-lib';
<|file_sep|>packages/lesswrong/component... | classes: ClassesType,
hover: boolean,
anchorEl: HTMLElement|null,
width?: number,
}) => {
const { LWPopper } = Components;
return <LWPopper className={classes.root} open={hover} anchorEl={anchorEl} placement="left-start">
<div className={classes.hoverInfo} style={{width:width}}>
{ children }
<... | <|file_sep|>packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx.diff
original:
import { registerComponent } from '../../lib/vulcan-lib';
import Popper from '@material-ui/core/Popper';
updated:
import { Components, registerComponent } from '../../lib/vulcan-lib';
<|file_sep|>packages/lesswrong/component... | 49abb3186eebe50b16003998c71ea8440c66bc88 | packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx | packages/lesswrong/components/sunshineDashboard/SidebarHoverOver.tsx | TypeScript |
<|file_sep|>original/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<|file_sep|>current/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<|file_sep|>updated/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php | <?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | <|file_sep|>original/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<|file_sep|>current/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<|file_sep|>updated/tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php
<?php
/**
* Cake... | 83644ea4263915d58de8e95a09b513158fa97b68 | tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php | tests/test_app/Plugin/Company/TestPluginThree/tests/Fixture/ArticlesFixture.php | PHP |
<|file_sep|>original/HelloWorld/src/edu/berkeley/nlp/Test.java
package edu.berkeley.nlp;
import edu.berkeley.nlp.assignments.POSTaggerTester;
/**
* @author Dan Klein
*/
public class Test<E> {
public static void main(String[] args) {
POSTaggerTester.main(new String[]{
"-path",
".\... | package edu.berkeley.nlp;
import edu.berkeley.nlp.assignments.POSTaggerTester;
/**
* @author Dan Klein
*/
public class Test<E> {
public static void main(String[] args) {
POSTaggerTester.main(new String[]{
"-path",
".\\data\\wsj\\",
"-test", "test"
//,"... | <|file_sep|>original/HelloWorld/src/edu/berkeley/nlp/Test.java
package edu.berkeley.nlp;
import edu.berkeley.nlp.assignments.POSTaggerTester;
/**
* @author Dan Klein
*/
public class Test<E> {
public static void main(String[] args) {
POSTaggerTester.main(new String[]{
"-path",
".\... | 2574b393b77c1eef98346b73cac932e1f8e83a56 | HelloWorld/src/edu/berkeley/nlp/Test.java | HelloWorld/src/edu/berkeley/nlp/Test.java | Java |
<|file_sep|>original/.eslintrc.yml
env:
browser: true
amd: true
globals:
$: false
escapeHTML: false
OC: false
OCA: false
t: false
rules:
curly: error
eqeqeq: ["error", "smart"]
guard-for-in: error
no-console: off
no-fallthrough: error
no-mixed-spaces-and-tabs: error
no-unused-vars: error
... | env:
browser: true
amd: true
globals:
$: false
escapeHTML: false
OC: false
OCA: false
t: false
Backbone: false
_: false
oc_current_user: false
rules:
curly: error
eqeqeq: ["error", "smart"]
guard-for-in: error
no-console: off
no-fallthrough: error
no-mixed-spaces-and-tabs: error | <|file_sep|>original/.eslintrc.yml
env:
browser: true
amd: true
globals:
$: false
escapeHTML: false
OC: false
OCA: false
t: false
rules:
curly: error
eqeqeq: ["error", "smart"]
guard-for-in: error
no-console: off
no-fallthrough: error
no-mixed-spaces-and-tabs: error
no-unused-vars: error
... | ae4f6b146c34da2f8483085eb1612efd076332bf | .eslintrc.yml | .eslintrc.yml | YAML |
<|file_sep|>original/README.md
minipkg is a script to help install pkgsrc.
[][build-status]
python <(curl https://s3.amazonaws.com/minipkg.eliteraspberries.com/minipkg.py)
[build-status]: https://travis-ci.org/eliteraspberries/minipkg
<|file_sep|>current/RE... | minipkg is a script to help install pkgsrc.
[][build-status]
[build-status]: https://travis-ci.org/eliteraspberries/minipkg | <|file_sep|>original/README.md
minipkg is a script to help install pkgsrc.
[][build-status]
python <(curl https://s3.amazonaws.com/minipkg.eliteraspberries.com/minipkg.py)
[build-status]: https://travis-ci.org/eliteraspberries/minipkg
<|file_sep|>current/RE... | dc6dc4b99140adf285f3caeaafb8bf8b981d99c7 | README.md | README.md | Markdown |
<|file_sep|>app/account/regions/boards-list.js.diff
original:
events: {
'mouseout': 'onMouseOut',
'mouseover': 'onMouseOver'
},
updated:
<|file_sep|>original/app/account/regions/boards-list.js
keepEl: true,
view: require('account/views/boards-list'),
events: {
'mouseout': 'onMouseOut',
'mo... | module.exports = Z.Region.extend({
el: 'div.account-page-sidebar-list',
keepEl: true,
view: require('account/views/boards-list'),
setHeight: function() {
this.$el.height($(document).height() - 132);
return this;
},
onShow: function() {
this.setHeight();
}
}); | <|file_sep|>app/account/regions/boards-list.js.diff
original:
events: {
'mouseout': 'onMouseOut',
'mouseover': 'onMouseOver'
},
updated:
<|file_sep|>original/app/account/regions/boards-list.js
keepEl: true,
view: require('account/views/boards-list'),
events: {
'mouseout': 'onMouseOut',
'mo... | 10648461f8310d9bb107dacf5be890ebd0be21cf | app/account/regions/boards-list.js | app/account/regions/boards-list.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
- clang
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
<|file_sep|>.travis.yml.diff
original:
updated:
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
<|f... | language:
- cpp
dist:
- trusty
compiler:
- gcc
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
install:
- sudo apt-get install -y autoconf-archive
- sudo apt-get install -y libboost-all-dev
- sudo apt-get install -y libsndfile1-dev
- sudo apt-get install -qq g++-6
- su... | <|file_sep|>.travis.yml.diff
original:
- clang
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
<|file_sep|>.travis.yml.diff
original:
updated:
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
<|f... | a26ca90ccd364b25d5c13800d1bbe0a71cf80898 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/cronstrue-i18n.ts.diff
original:
updated:
export default ExpressionDescriptor;
<|file_sep|>original/src/cronstrue-i18n.ts
import { ExpressionDescriptor } from "./expressionDescriptor"
import { allLocalesLoader } from "./i18n/allLocalesLoader"
ExpressionDescriptor.initialize(new allLocalesLoader());
e... | import { ExpressionDescriptor } from "./expressionDescriptor"
import { allLocalesLoader } from "./i18n/allLocalesLoader"
ExpressionDescriptor.initialize(new allLocalesLoader());
export default ExpressionDescriptor;
let toString = ExpressionDescriptor.toString;
export { toString };
| <|file_sep|>src/cronstrue-i18n.ts.diff
original:
updated:
export default ExpressionDescriptor;
<|file_sep|>original/src/cronstrue-i18n.ts
import { ExpressionDescriptor } from "./expressionDescriptor"
import { allLocalesLoader } from "./i18n/allLocalesLoader"
ExpressionDescriptor.initialize(new allLocalesLoader());
e... | b379ecd03cf8faad81fc2b6e8beede28fa5fecc2 | src/cronstrue-i18n.ts | src/cronstrue-i18n.ts | TypeScript |
<|file_sep|>original/setup.sh
#!/usr/bin/env bash
set -euxo pipefail
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y postgresql postgresql-contrib postgresql-client
sudo apt-get install -y python3-psycopg2
<|file_sep|>current/setup.sh
#!/usr/bin/env bash
set -euxo pipefail
sudo apt-get install -y ... | #!/usr/bin/env bash
set -euxo pipefail
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y postgresql postgresql-contrib postgresql-client
sudo apt-get install -y python3-psycopg2
echo NOTE: you'll need to add your p99tunnel directory to your PYTHONPATH. | <|file_sep|>original/setup.sh
#!/usr/bin/env bash
set -euxo pipefail
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y postgresql postgresql-contrib postgresql-client
sudo apt-get install -y python3-psycopg2
<|file_sep|>current/setup.sh
#!/usr/bin/env bash
set -euxo pipefail
sudo apt-get install -y ... | 1470668c5b394aed6de9ceb78a188d72345238be | setup.sh | setup.sh | Shell |
<|file_sep|>docs/css/style-mobile.css.diff
original:
top: initial;
bottom: 2rem;
updated:
top: 2rem;
<|file_sep|>docs/css/style-mobile.css.diff
original:
updated:
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
<|file_sep|>docs/css/style-mobile.css.diff
original:
bottom: -100vh;
updated:
top: 100vh;
<|file_sep|>doc... | }
.featured_minimize {
right: 3.5rem;
display: initial;
}
/*--------------------------------------------------------------
# Location Switcher
--------------------------------------------------------------*/
.location_switcher_list_item {
height: 10rem;
}
/*
Disable heavy animation
*/
.location_switcher_list_it... | <|file_sep|>docs/css/style-mobile.css.diff
original:
top: initial;
bottom: 2rem;
updated:
top: 2rem;
<|file_sep|>docs/css/style-mobile.css.diff
original:
updated:
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
<|file_sep|>docs/css/style-mobile.css.diff
original:
bottom: -100vh;
updated:
top: 100vh;
<|file_sep|>doc... | 85b90b9fb6c4a2cd00163398d9c7d6a7550e62cb | docs/css/style-mobile.css | docs/css/style-mobile.css | CSS |
<|file_sep|>plugins/networking/webconsole_networks_help.md.diff
original:
* openstack
* neutron
updated:
* openstack
* neutron
<|file_sep|>plugins/networking/webconsole_networks_help.md.diff
original:
`openstack help network`
updated:
`openstack help network`
<|file_sep|>plugins/networking/webconsole_networks_hel... | ### Available Clients
* openstack
* neutron
### Quick Help
`openstack help network`
Get list of available network commands
`openstack help network <command>`
Show help for a specific network command
### Most Used Commands
`openstack network list`
`openstack network show <network>` | <|file_sep|>plugins/networking/webconsole_networks_help.md.diff
original:
* openstack
* neutron
updated:
* openstack
* neutron
<|file_sep|>plugins/networking/webconsole_networks_help.md.diff
original:
`openstack help network`
updated:
`openstack help network`
<|file_sep|>plugins/networking/webconsole_networks_hel... | d75ad1e5fca392ac496095fe652047a57c6e3f3a | plugins/networking/webconsole_networks_help.md | plugins/networking/webconsole_networks_help.md | Markdown |
<|file_sep|>original/_config.yml
rdiscount:
extensions: [smart]
permalink: /:title.html
paginate: 5
gems: [jekyll-paginate]
port: 3000
safe: true
# edit here to achieve your personal greatness
url: http://username.github.io/
baseurl: /
title: James Wen
author: James Wen
description: Personal blog and resume
avatar:... | rdiscount:
extensions: [smart]
permalink: /:title.html
paginate: 5
gems: [jekyll-paginate]
port: 3000
safe: true
# edit here to achieve your personal greatness
url: http://username.github.io/
baseurl: /
title: James Wen
author: James Wen
description: Personal blog and resume
avatar: profile.png
email: jrw2175@colum... | <|file_sep|>original/_config.yml
rdiscount:
extensions: [smart]
permalink: /:title.html
paginate: 5
gems: [jekyll-paginate]
port: 3000
safe: true
# edit here to achieve your personal greatness
url: http://username.github.io/
baseurl: /
title: James Wen
author: James Wen
description: Personal blog and resume
avatar:... | 08b0763b448c2b9c06da7cd84b449084f85ae616 | _config.yml | _config.yml | YAML |
<|file_sep|>original/examples/web_example.html
<pre id="display"></pre>
<script src="../dist/diff.js"></script>
<script>
var one = 'beep boop';
var other = 'beep boob blah';
var diff = JsDiff.diffChars(one, other);
diff.forEach(function(part){
// green for additions, red for deletions
// grey for common parts
v... | <script>
var one = 'beep boop';
var other = 'beep boob blah';
var diff = JsDiff.diffChars(one, other);
diff.forEach(function(part){
// green for additions, red for deletions
// grey for common parts
var color = part.added ? 'green' :
part.removed ? 'red' : 'grey';
var span = document.createElement('span')... | <|file_sep|>original/examples/web_example.html
<pre id="display"></pre>
<script src="../dist/diff.js"></script>
<script>
var one = 'beep boop';
var other = 'beep boob blah';
var diff = JsDiff.diffChars(one, other);
diff.forEach(function(part){
// green for additions, red for deletions
// grey for common parts
v... | 78b8857c155b2f145d368b92ed6b5b869f729c50 | examples/web_example.html | examples/web_example.html | HTML |
<|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.6.0 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.1 ... | # Testing
coverage==4.5.2 # Test coverage
flake8==3.6.0 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints | <|file_sep|>original/requirements-test.txt
# Testing
coverage==4.5.1 # Test coverage
flake8==3.6.0 # Python linting
mock==2.0.0 # Test mocks
typing==3.6.6 # Type hints
<|file_sep|>current/requirements-test.txt
# Testing
coverage==4.5.1 ... | 2afba6c3d3edbaed8c5ed304b37836e8a67cf147 | requirements-test.txt | requirements-test.txt | Text |
<|file_sep|>src/condor_tests/ornithology/plugin.py.diff
original:
updated:
import sys
<|file_sep|>original/src/condor_tests/ornithology/plugin.py
import pytest
from .scripts import SCRIPTS
# This module is loaded as a "plugin" by pytest by a setting in conftest.py
# Any fixtures defined here will be globally availabl... | import sys
import pytest
from .scripts import SCRIPTS
# This module is loaded as a "plugin" by pytest by a setting in conftest.py
# Any fixtures defined here will be globally available in tests,
# as if they were defined in conftest.py itself.
@pytest.fixture(scope="session")
def path_to_sleep():
return SCRIPTS[... | <|file_sep|>src/condor_tests/ornithology/plugin.py.diff
original:
updated:
import sys
<|file_sep|>original/src/condor_tests/ornithology/plugin.py
import pytest
from .scripts import SCRIPTS
# This module is loaded as a "plugin" by pytest by a setting in conftest.py
# Any fixtures defined here will be globally availabl... | 8bd738972cebd27b068250bd52db8aacea6c7876 | src/condor_tests/ornithology/plugin.py | src/condor_tests/ornithology/plugin.py | Python |
<|file_sep|>original/scripts/lint.sh
status=0
echo 'Running Black ...'
python3 -m black --check --diff .
status=$(( $status + $? ))
echo
echo
echo 'Running flake8 ...'
python2 -m flake8
status=$(( $status + $? ))
# We should add something like jshint for our JavaScript as well
# We add up all the exit statuses of ... | status=0
echo 'Running Black ...'
python3 -m black --check --diff .
status=$(( $status + $? ))
echo
echo
echo 'Running flake8 ...'
python2 -m flake8 --show-source
status=$(( $status + $? ))
# We should add something like jshint for our JavaScript as well
# We add up all the exit statuses of the lint commands. If t... | <|file_sep|>original/scripts/lint.sh
status=0
echo 'Running Black ...'
python3 -m black --check --diff .
status=$(( $status + $? ))
echo
echo
echo 'Running flake8 ...'
python2 -m flake8
status=$(( $status + $? ))
# We should add something like jshint for our JavaScript as well
# We add up all the exit statuses of ... | bfbe68645a8781fa1b5a966d92f98c15ca6becec | scripts/lint.sh | scripts/lint.sh | Shell |
<|file_sep|>.circleci/config.yml.diff
original:
- image: circleci/golang:1.9
updated:
- image: domainr/ci:latest
<|file_sep|>original/.circleci/config.yml
version: 2
jobs:
build:
working_directory: /go/src/github.com/domainr/whois
docker:
- image: circleci/golang:1.9
steps:
- check... | version: 2
jobs:
build:
working_directory: /go/src/github.com/domainr/whois
docker:
- image: domainr/ci:latest
steps:
- checkout
- run:
name: go get
command: go get -t -d -v ./...
- run:
name: go build
command: go build -v
- run: mkdir ... | <|file_sep|>.circleci/config.yml.diff
original:
- image: circleci/golang:1.9
updated:
- image: domainr/ci:latest
<|file_sep|>original/.circleci/config.yml
version: 2
jobs:
build:
working_directory: /go/src/github.com/domainr/whois
docker:
- image: circleci/golang:1.9
steps:
- check... | eb328e1b085a550e3e07a044957bd85e6cdd9dcf | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
<|file_sep|>updated/.travis.yml | language: ruby
sudo: false
rvm:
- 1.9.3
- 2.0.0
- 2.1 | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
<|file_sep|>updated/.travis.yml
language: ruby
sudo: false
rvm:
- 1.9.3
- 2.0.0
- 2.1 | 2d221f22020d465a14b9041bfb935a0652f2bbb0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# zend-paginator
[](https://secure.travis-ci.org/zendframework/zend-paginator)
[](https://coveral... | # zend-paginator
[](https://secure.travis-ci.org/zendframework/zend-paginator)
[](https://coveralls.io/r/zendframework/zend-pagi... | <|file_sep|>original/README.md
# zend-paginator
[](https://secure.travis-ci.org/zendframework/zend-paginator)
[](https://coveral... | 079730556ad7aa867f9d88f47d4881f087c65012 | README.md | README.md | Markdown |
<|file_sep|>zucchini-ui-frontend/app/scripts/browser-storage.js.diff
original:
var storedValue = storage.getItem(itemName);
if (_.isString(storedValue)) {
try {
_.merge(value, angular.fromJson(storedValue));
} catch (e) {
log.warn('Caught exception when loading filters from local st... | this.save = function (newValue) {
value = newValue;
storage.setItem(itemName, angular.toJson(value));
};
this.reset = function () {
value = defaultValueFactory();
storage.removeItem(itemName);
};
var storedValue = storage.getItem(itemName);
if (_.isString(storedValue)) ... | <|file_sep|>zucchini-ui-frontend/app/scripts/browser-storage.js.diff
original:
var storedValue = storage.getItem(itemName);
if (_.isString(storedValue)) {
try {
_.merge(value, angular.fromJson(storedValue));
} catch (e) {
log.warn('Caught exception when loading filters from local st... | c1b2edaba806b9329b74f1156015781d12321137 | zucchini-ui-frontend/app/scripts/browser-storage.js | zucchini-ui-frontend/app/scripts/browser-storage.js | JavaScript |
<|file_sep|>original/develop_requirements.txt
ansible==2.8.6
pip==19.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.8
tox==3.14.0
coverage==4.5.4
Sphinx==2.2.0
twine==2.0.0
rstcheck==3.3.1
pycodestyle==2.5.0
pylint==2.4.2
<|file_sep|>current/develop_requirements.txt
ansible==2.8.6
pip==19.3
wheel==0.33.6
watchdog==0.9.0
f... | ansible==2.8.6
pip==19.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.8
tox==3.14.0
coverage==4.5.4
Sphinx==2.2.0
twine==2.0.0
rstcheck==3.3.1
pycodestyle==2.5.0
pylint==2.4.3 | <|file_sep|>original/develop_requirements.txt
ansible==2.8.6
pip==19.3
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.8
tox==3.14.0
coverage==4.5.4
Sphinx==2.2.0
twine==2.0.0
rstcheck==3.3.1
pycodestyle==2.5.0
pylint==2.4.2
<|file_sep|>current/develop_requirements.txt
ansible==2.8.6
pip==19.3
wheel==0.33.6
watchdog==0.9.0
f... | 5593048e91e2611be79081fd1889c47a3adf2c67 | develop_requirements.txt | develop_requirements.txt | Text |
<|file_sep|>original/requirements.txt
# See python driver docs: futures and six have to be installed before
# cythonizing the driver, perhaps only on old pips.
# http://datastax.github.io/python-driver/installation.html#cython-based-extensions
futures
six
-e git+https://github.com/datastax/python-driver.git@cassandra-t... | # See python driver docs: futures and six have to be installed before
# cythonizing the driver, perhaps only on old pips.
# http://datastax.github.io/python-driver/installation.html#cython-based-extensions
futures
six
-e git+https://github.com/datastax/python-driver.git@cassandra-test#egg=cassandra-driver
# Used ccm ve... | <|file_sep|>original/requirements.txt
# See python driver docs: futures and six have to be installed before
# cythonizing the driver, perhaps only on old pips.
# http://datastax.github.io/python-driver/installation.html#cython-based-extensions
futures
six
-e git+https://github.com/datastax/python-driver.git@cassandra-t... | c0f4dfdfc9966cf90ce4a8240c3b390fcf222127 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/_assets/stylesheets/_toc.scss
/* ==========================================================================
TABLE OF CONTENTS
========================================================================== */
.toc {
margin-bottom: 2em;
padding: 0 1em 1em;
border-top: 8px solid #000;
}
.toc... | /* ==========================================================================
TABLE OF CONTENTS
========================================================================== */
.toc {
padding: 0 1em 1em;
border-top: 8px solid #000;
}
.toc__title {
margin: 1em 0;
font-size: 1.25rem;
color: #000;
text-tr... | <|file_sep|>original/_assets/stylesheets/_toc.scss
/* ==========================================================================
TABLE OF CONTENTS
========================================================================== */
.toc {
margin-bottom: 2em;
padding: 0 1em 1em;
border-top: 8px solid #000;
}
.toc... | 53418bcf8572b7bfd2957ed62aee1bcf83296133 | _assets/stylesheets/_toc.scss | _assets/stylesheets/_toc.scss | SCSS |
<|file_sep|>website/files/models/dataverse.py.diff
original:
import requests
updated:
<|file_sep|>website/files/models/dataverse.py.diff
original:
updated:
version_identifier = 'version'
<|file_sep|>website/files/models/dataverse.py.diff
original:
def touch(self, version=None, revision=None, **kwargs):
updat... | def update(self, revision, data):
"""Note: Dataverse only has psuedo versions, don't save them"""
self.name = data['name']
self.materialized_path = data['materialized']
version = FileVersion(identifier=revision)
version.update_metadata(data, save=False)
user = _get_... | <|file_sep|>website/files/models/dataverse.py.diff
original:
import requests
updated:
<|file_sep|>website/files/models/dataverse.py.diff
original:
updated:
version_identifier = 'version'
<|file_sep|>website/files/models/dataverse.py.diff
original:
def touch(self, version=None, revision=None, **kwargs):
updat... | 9f6d4d9e82ef575164535a8fb9ea80417458dd6b | website/files/models/dataverse.py | website/files/models/dataverse.py | Python |
<|file_sep|>original/plugins/MeshView/MeshView.py
from Cura.View.View import View
class MeshView(View):
def __init__(self):
super(MeshView, self).__init__()
def render(self):
scene = self.getController().getScene()
renderer = self.getRenderer()
self._renderObject(scene.getRoot... | from Cura.View.View import View
class MeshView(View):
def __init__(self):
super(MeshView, self).__init__()
def render(self):
scene = self.getController().getScene()
renderer = self.getRenderer()
self._renderObject(scene.getRoot(), renderer)
def _renderObject(self, object,... | <|file_sep|>original/plugins/MeshView/MeshView.py
from Cura.View.View import View
class MeshView(View):
def __init__(self):
super(MeshView, self).__init__()
def render(self):
scene = self.getController().getScene()
renderer = self.getRenderer()
self._renderObject(scene.getRoot... | ea39c4ebba3d5ab42dfa202f88f7d76386e505fe | plugins/MeshView/MeshView.py | plugins/MeshView/MeshView.py | Python |
<|file_sep|>README.md.diff
original:
StackStorm community contributions
==================================
updated:
# StackStorm community contributions
<|file_sep|>README.md.diff
original:
Contents of this repository are comprise of integrations and automations that are consumed by the StackStorm automation platform.
... |
Contents of this repository are comprise of integrations and automations that
are consumed by the StackStorm automation platform.
## Packs
Actions, Sensors and Rules all organized neatly into to domain or tool specific
packs.
## Extra
Related tools that help make it easier to integrate and consume StackStorm conte... | <|file_sep|>README.md.diff
original:
StackStorm community contributions
==================================
updated:
# StackStorm community contributions
<|file_sep|>README.md.diff
original:
Contents of this repository are comprise of integrations and automations that are consumed by the StackStorm automation platform.
... | 4f241cde8a575bd6db7c3fc6c0ae67aa2e3ac624 | README.md | README.md | Markdown |
<|file_sep|>original/composer.json
"authors": [
{
"name": "Joel Wurtz",
"email": "jwurtz@jolicode.com"
}
],
"require": {
"symfony/serializer": "^2.3|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
},
"autoload": {
"psr-4": {... | "authors": [
{
"name": "Joel Wurtz",
"email": "jwurtz@jolicode.com"
}
],
"require": {
"symfony/serializer": "^2.3|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.7|^5.5"
},
"autoload": {
"psr-4": {
"Joli\\Jane\\Runt... | <|file_sep|>original/composer.json
"authors": [
{
"name": "Joel Wurtz",
"email": "jwurtz@jolicode.com"
}
],
"require": {
"symfony/serializer": "^2.3|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
},
"autoload": {
"psr-4": {... | b834d8d328f23c8b40ccf9f79d55f4bdc1bacf55 | composer.json | composer.json | JSON |
<|file_sep|>original/setup.sh
#!/bin/bash
# 'Telegram Icon Updater' Setup Script
TELEDIR=~/.local/share/TelegramDesktop/tdata/ticons
[[ $1 == "--install" ]] && { [[ -d $TELEDIR ]] && { rm -rf $TELEDIR; }; mkdir -p $TELEDIR; cp -f ./icons/*.png $TELEDIR; cp -f ./icons/icomute_22_0.png ./icons/ico_22_0.png; for((i = 2; ... | #!/bin/bash
# 'Telegram Icon Updater' Setup Script
TELEDIR=~/.local/share/TelegramDesktop/tdata/ticons
[[ $1 == "--install" ]] && { [[ -d $TELEDIR ]] && { rm -rf $TELEDIR; }; mkdir -p $TELEDIR; cp -f ./icons/*.png $TELEDIR; cp -f ./icons/icomute_22_0.png ./icons/ico_22_0.png; for((i = 2; i < 9999; i++)); do ln -s $TEL... | <|file_sep|>original/setup.sh
#!/bin/bash
# 'Telegram Icon Updater' Setup Script
TELEDIR=~/.local/share/TelegramDesktop/tdata/ticons
[[ $1 == "--install" ]] && { [[ -d $TELEDIR ]] && { rm -rf $TELEDIR; }; mkdir -p $TELEDIR; cp -f ./icons/*.png $TELEDIR; cp -f ./icons/icomute_22_0.png ./icons/ico_22_0.png; for((i = 2; ... | 62f015e55fa9e98d1049cb9284a3beeb87bdf786 | setup.sh | setup.sh | Shell |
<|file_sep|>original/recipes-networking/ipset/ipset_6.38.bb
# Copyright (C) 2017 Aaron Brice <aaron.brice@datasoft.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Administration tool for IP sets"
HOMEPAGE = "http://ipset.netfilter.org"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file:/... | # Copyright (C) 2017 Aaron Brice <aaron.brice@datasoft.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Administration tool for IP sets"
HOMEPAGE = "http://ipset.netfilter.org"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
SECTION = "ba... | <|file_sep|>original/recipes-networking/ipset/ipset_6.38.bb
# Copyright (C) 2017 Aaron Brice <aaron.brice@datasoft.com>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Administration tool for IP sets"
HOMEPAGE = "http://ipset.netfilter.org"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file:/... | d763aa71181bdcee7cd3a41e9363e85652b9ddea | recipes-networking/ipset/ipset_6.38.bb | recipes-networking/ipset/ipset_6.38.bb | BitBake |
<|file_sep|>original/app/views/layouts/rails_admin/_secondary_navigation.html.haml
<|file_sep|>current/app/views/layouts/rails_admin/_secondary_navigation.html.haml
<|file_sep|>updated/app/views/layouts/rails_admin/_secondary_navigation.html.haml | %ul.nav.navbar-nav.navbar-right.root_links
- actions(:root).each do |action|
%li{class: "#{action.action_name}_root_link"}= link_to wording_for(:menu, action), { action: action.action_name, controller: 'rails_admin/main' }, class: action.pjax? ? "pjax" : ""
%li= link_to t('Home page'), main_app.store_url
- if... | <|file_sep|>original/app/views/layouts/rails_admin/_secondary_navigation.html.haml
<|file_sep|>current/app/views/layouts/rails_admin/_secondary_navigation.html.haml
<|file_sep|>updated/app/views/layouts/rails_admin/_secondary_navigation.html.haml
%ul.nav.navbar-nav.navbar-right.root_links
- actions(:root).each do |... | 24dbf2ee8934e55bb6186f8a7cfb5d0d27b85fad | app/views/layouts/rails_admin/_secondary_navigation.html.haml | app/views/layouts/rails_admin/_secondary_navigation.html.haml | Haml |
<|file_sep|>original/README.md
# Graphlib
Graphlib is a JavaScript library that provides data structures for undirected
and directed multi-graphs along with algorithms that can be used with them.
[](http://travis-ci.org/dagrejs/graphlib)
To learn more... | # Graphlib
Graphlib is a JavaScript library that provides data structures for undirected
and directed multi-graphs along with algorithms that can be used with them.
[](http://travis-ci.org/dagrejs/graphlib)
To learn more [see our Wiki](https://github.... | <|file_sep|>original/README.md
# Graphlib
Graphlib is a JavaScript library that provides data structures for undirected
and directed multi-graphs along with algorithms that can be used with them.
[](http://travis-ci.org/dagrejs/graphlib)
To learn more... | 3fe586deddd17a0dbaf3d7aa80735957a0851d81 | README.md | README.md | Markdown |
<|file_sep|>packages/rocketchat-message-snippet/client/page/snippetPage.js.diff
original:
} else {
message.html = message.msg;
let markdownCode = new RocketChat.MarkdownCode(message);
return markdownCode.tokens[0].text;
updated:
<|file_sep|>packages/rocketchat-message-snippet/client/page/snippetPage.js.diff... | date() {
let snippet = Messages.findOne({ _id: FlowRouter.getParam('snippetId') });
if (snippet !== undefined) {
return moment(snippet.ts).format(RocketChat.settings.get('Message_DateFormat'));
}
},
time() {
let snippet = Messages.findOne({ _id: FlowRouter.getParam('snippetId') });
if (snippet !== undef... | <|file_sep|>packages/rocketchat-message-snippet/client/page/snippetPage.js.diff
original:
} else {
message.html = message.msg;
let markdownCode = new RocketChat.MarkdownCode(message);
return markdownCode.tokens[0].text;
updated:
<|file_sep|>packages/rocketchat-message-snippet/client/page/snippetPage.js.diff... | 211cafdc6714bd63599630e8272e9113038b65d2 | packages/rocketchat-message-snippet/client/page/snippetPage.js | packages/rocketchat-message-snippet/client/page/snippetPage.js | JavaScript |
<|file_sep|>original/validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift
<|file_sep|>current/validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift
<|file_sep|>updated/validation-test/compiler_crashers/28235-swift-archety... | // RUN: not --crash %target-swift-frontend %s -parse
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
struct c:protocol A{typealias f{}func g:B
class B<T where f.h:b,f=c | <|file_sep|>original/validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift
<|file_sep|>current/validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift
<|file_sep|>updated/validation-test/compiler_crashers/28235-swift-archety... | f32ff1a0858b95470574f961226f6c5bbe736924 | validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift | validation-test/compiler_crashers/28235-swift-archetypebuilder-addsametyperequirementtoconcrete.swift | Swift |
<|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md | # The MIT License
Copyright Β© 2013-present Sergienko Anton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | <|file_sep|>original/LICENSE.md
<|file_sep|>current/LICENSE.md
<|file_sep|>updated/LICENSE.md
# The MIT License
Copyright Β© 2013-present Sergienko Anton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the S... | bdcc9a76fdef580715b13b00b316e869005344b2 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>lib/armok/token.rb.diff
original:
def initialize(s = '', pre = '', key = '', values = [], post = '')
updated:
def initialize(s = '', pre = '', post = '', key = '', values = [])
<|file_sep|>lib/armok/token.rb.diff
original:
Token.new('', @pre, @key, @values, @post)
updated:
Token.new('', ... | def initialize(s = '', pre = '', post = '', key = '', values = [])
@pre = pre
@post = post
parse(s) unless s.empty?
end
def parse(s)
@values = s.split(COLON)
@key = @values.shift
Token.new('', @pre, @post, @key, @values)
end
def to_s
if @values.empty?
... | <|file_sep|>lib/armok/token.rb.diff
original:
def initialize(s = '', pre = '', key = '', values = [], post = '')
updated:
def initialize(s = '', pre = '', post = '', key = '', values = [])
<|file_sep|>lib/armok/token.rb.diff
original:
Token.new('', @pre, @key, @values, @post)
updated:
Token.new('', ... | 47fb3b322b3048260d814cd26795c797d5b68b81 | lib/armok/token.rb | lib/armok/token.rb | Ruby |
<|file_sep|>original/py2deb/config/__init__.py
import os
config_dir = os.path.dirname(os.path.abspath(__file__))
# Destination of built packages.
PKG_REPO = '/tmp/'
<|file_sep|>current/py2deb/config/__init__.py
import os
config_dir = os.path.dirname(os.path.abspath(__file__))
# Destination of built packages.
PKG_RE... | import os
config_dir = os.path.dirname(os.path.abspath(__file__))
# Destination of built packages.
if os.getuid() == 0:
PKG_REPO = '/var/repos/deb-repo/repository/pl-py2deb'
else:
PKG_REPO = '/tmp' | <|file_sep|>original/py2deb/config/__init__.py
import os
config_dir = os.path.dirname(os.path.abspath(__file__))
# Destination of built packages.
PKG_REPO = '/tmp/'
<|file_sep|>current/py2deb/config/__init__.py
import os
config_dir = os.path.dirname(os.path.abspath(__file__))
# Destination of built packages.
PKG_RE... | fd061738d025b5371c1415a1f5466bcf5f6476b7 | py2deb/config/__init__.py | py2deb/config/__init__.py | Python |
<|file_sep|>original/src/Scripts/plot-sim.r
# png(filename="wat.png",width=800,height=600)
png(filename="talk.png",width=1600,height=1200)
# df <- read.csv(header=FALSE, file="wat.csv")
df <- read.csv(header=FALSE, file="talk.csv")
## df <- read.csv(file="wat.csv")
## munged <- melt(df)
## ggplot(munged, aes(x=variabl... | # png(filename="wat.png",width=800,height=600)
png(filename="talk.png",width=1600,height=1200)
# df <- read.csv(header=FALSE, file="wat.csv")
df <- read.csv(header=FALSE, file="talk.csv")
## df <- read.csv(file="wat.csv")
## munged <- melt(df)
## ggplot(munged, aes(x=variable, y=value)) + geom_point()
# plot single
# ... | <|file_sep|>original/src/Scripts/plot-sim.r
# png(filename="wat.png",width=800,height=600)
png(filename="talk.png",width=1600,height=1200)
# df <- read.csv(header=FALSE, file="wat.csv")
df <- read.csv(header=FALSE, file="talk.csv")
## df <- read.csv(file="wat.csv")
## munged <- melt(df)
## ggplot(munged, aes(x=variabl... | 1b2f4a42196fa48ac201d78a1b01e5431af35c33 | src/Scripts/plot-sim.r | src/Scripts/plot-sim.r | R |
<|file_sep|>original/project/Versions.scala
object Versions {
val algebraVersion = "1.0.1"
val argonautVersion = "6.2.3"
val catsVersion = "1.6.1"
val catsEffectVersion = "1.3.1"
val disciplineVersion = "0.11.1"
val jawnVersion = "0.14.2"
val jawnfs2Version = "0.14.2"
... |
object Versions {
val algebraVersion = "1.0.1"
val argonautVersion = "6.2.3"
val catsVersion = "1.6.1"
val catsEffectVersion = "1.3.1"
val disciplineVersion = "0.11.1"
val jawnVersion = "0.14.2"
val jawnfs2Version = "0.14.2"
val matryoshkaVersion = "0.18.3"
val mon... | <|file_sep|>original/project/Versions.scala
object Versions {
val algebraVersion = "1.0.1"
val argonautVersion = "6.2.3"
val catsVersion = "1.6.1"
val catsEffectVersion = "1.3.1"
val disciplineVersion = "0.11.1"
val jawnVersion = "0.14.2"
val jawnfs2Version = "0.14.2"
... | cedef42d93f8b944e4ed774e5a24c2f63af2ddd5 | project/Versions.scala | project/Versions.scala | Scala |
<|file_sep|>admin_panel/views.py.diff
original:
updated:
from django.urls import reverse
<|file_sep|>original/admin_panel/views.py
return self.get(request)
auth.login(request, user_object)
messages.success(request, "You've been logged in")
return http.HttpResponseRedirect(self.get_n... | messages.error(request, "Invalid credentials")
return self.get(request)
auth.login(request, user_object)
messages.success(request, "You've been logged in")
return http.HttpResponseRedirect(self.get_next_url(request))
def get_next_url(self, request):
if "next"... | <|file_sep|>admin_panel/views.py.diff
original:
updated:
from django.urls import reverse
<|file_sep|>original/admin_panel/views.py
return self.get(request)
auth.login(request, user_object)
messages.success(request, "You've been logged in")
return http.HttpResponseRedirect(self.get_n... | 889eed552f4e17797764a9d9a2da6bbaa6d5dd33 | admin_panel/views.py | admin_panel/views.py | Python |
<|file_sep|>packages/ba/basement.yaml.diff
original:
hash: bb488851a15f0e51e15955b508d64983ff58ae1e4dc39b455105c491a3c95e7b
updated:
hash: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
<|file_sep|>packages/ba/basement.yaml.diff
original:
base: <4.13
updated:
base: -any
<|file_sep|>packages/ba/bas... | basic-deps:
base: -any
ghc-prim: -any
all-versions:
- 0.0.0
- 0.0.1
- 0.0.2
- 0.0.3
- 0.0.4
- 0.0.5
- 0.0.6
- 0.0.7
- 0.0.8
- 0.0.9
- 0.0.10
- 0.0.11
author: ''
latest: 0.0.11
description-type: haddock
description: Foundation most basic primitives without any dependencies
license-name: BSD-3-Clause | <|file_sep|>packages/ba/basement.yaml.diff
original:
hash: bb488851a15f0e51e15955b508d64983ff58ae1e4dc39b455105c491a3c95e7b
updated:
hash: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
<|file_sep|>packages/ba/basement.yaml.diff
original:
base: <4.13
updated:
base: -any
<|file_sep|>packages/ba/bas... | d554db5ceb4a6459877af53fa86eb0b75883ab99 | packages/ba/basement.yaml | packages/ba/basement.yaml | YAML |
<|file_sep|>original/composer.json
"homepage": "https://github.com/omnipay/authorizenet/contributors"
}
],
"autoload": {
"psr-4": { "Omnipay\\AuthorizeNet\\" : "src/" }
},
"require": {
"omnipay/common": "~2.0"
},
"require-dev": {
"omnipay/tests": "~2.0... | },
{
"name": "Omnipay Contributors",
"homepage": "https://github.com/omnipay/authorizenet/contributors"
}
],
"autoload": {
"psr-4": { "Omnipay\\AuthorizeNet\\" : "src/" }
},
"require": {
"omnipay/common": "~2.0"
},
"require-dev": {
... | <|file_sep|>original/composer.json
"homepage": "https://github.com/omnipay/authorizenet/contributors"
}
],
"autoload": {
"psr-4": { "Omnipay\\AuthorizeNet\\" : "src/" }
},
"require": {
"omnipay/common": "~2.0"
},
"require-dev": {
"omnipay/tests": "~2.0... | 36d7c3ad60992abc640981859f36860297fce699 | composer.json | composer.json | JSON |
<|file_sep|>original/_config.yml
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
email: your-email@domain.com
description: > # this mea... | # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
email: your-email@domain.com
description: > # this means to ignore newlines until "base... | <|file_sep|>original/_config.yml
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Your awesome title
email: your-email@domain.com
description: > # this mea... | b8de80c19a470e479c82a549670bc720e76f09e0 | _config.yml | _config.yml | YAML |
<|file_sep|>original/init.sh
#!/bin/bash
# MDS - Script
#
# InicializaΓ§Γ£o dos requisitos do ambiente.
#
# autor: Marcelo dos Santos
#
git clone https://github.com/rakanalh/emacs-dashboard ~/.emacs.d/temp/dashboard
<|file_sep|>current/init.sh
#!/bin/bash
# MDS - Script
#
# InicializaΓ§Γ£o dos requisitos do ambiente.
#
# a... | #!/bin/bash
# MDS - Script
#
# InicializaΓ§Γ£o dos requisitos do ambiente.
#
# autor: Marcelo dos Santos
#
mkdir temp
git clone https://github.com/vermiculus/magithub ~/.emacs.d/temp/magithub
git clone https://github.com/zonuexe/right-click-context ~/.emacs.d/temp/right-click-context | <|file_sep|>original/init.sh
#!/bin/bash
# MDS - Script
#
# InicializaΓ§Γ£o dos requisitos do ambiente.
#
# autor: Marcelo dos Santos
#
git clone https://github.com/rakanalh/emacs-dashboard ~/.emacs.d/temp/dashboard
<|file_sep|>current/init.sh
#!/bin/bash
# MDS - Script
#
# InicializaΓ§Γ£o dos requisitos do ambiente.
#
# a... | 85994cfb21a16e4d60b2182212b9e9d9f76f4aa9 | init.sh | init.sh | Shell |
<|file_sep|>original/.github/scripts/run_linters.sh
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See th... |
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permis... | <|file_sep|>original/.github/scripts/run_linters.sh
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See th... | 8c554aaad8de32067c1cb12879fbdb63a9227a4c | .github/scripts/run_linters.sh | .github/scripts/run_linters.sh | Shell |
<|file_sep|>original/docs/tools/mailhog.md
mail:
hostname: mail
image: mailhog/mailhog
expose:
- "80"
environment:
- MH_API_BIND_ADDR=0.0.0.0:80
- MH_UI_BIND_ADDR=0.0.0.0:80
labels:
- io.docksal.virtual-host=webmail.${VIRTUAL_HOST}
```
Apply new configuration with `fin up`.
### PHP settings
... | mail:
hostname: mail
image: mailhog/mailhog
expose:
- "80"
environment:
- MH_API_BIND_ADDR=0.0.0.0:80
- MH_UI_BIND_ADDR=0.0.0.0:80
labels:
- io.docksal.virtual-host=webmail.${VIRTUAL_HOST}
user: root
```
Apply new configuration with `fin up`.
### PHP settings
In `.docksal/etc/php/php.ini`... | <|file_sep|>original/docs/tools/mailhog.md
mail:
hostname: mail
image: mailhog/mailhog
expose:
- "80"
environment:
- MH_API_BIND_ADDR=0.0.0.0:80
- MH_UI_BIND_ADDR=0.0.0.0:80
labels:
- io.docksal.virtual-host=webmail.${VIRTUAL_HOST}
```
Apply new configuration with `fin up`.
### PHP settings
... | 2e5853d9ff0edfb6a94baa53c97fa0a7dbaa44c2 | docs/tools/mailhog.md | docs/tools/mailhog.md | Markdown |
<|file_sep|>original/battletracker/web/templates/layout/app.html.eex
<title>Hello Phoenix!</title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
</head>
<body>
<div class="container" role="main">
<div class="header">
<ul class="nav nav-pills pull-right">
... | <title>Hello Phoenix!</title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
</head>
<body>
<div class="container" role="main">
<div class="header">
<ul class="nav nav-pills pull-right">
<li><a href="/">Homepage</a></li>
<li><a href="/users">U... | <|file_sep|>original/battletracker/web/templates/layout/app.html.eex
<title>Hello Phoenix!</title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
</head>
<body>
<div class="container" role="main">
<div class="header">
<ul class="nav nav-pills pull-right">
... | 8ef5ad372d5303f8e552ce31d00e9012c0bee594 | battletracker/web/templates/layout/app.html.eex | battletracker/web/templates/layout/app.html.eex | HTML+EEX |
<|file_sep|>original/node/path.zsh
# Load in NVM, even if we don't have it
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
<|file_sep|>current/node/path.zsh
# Load in NVM, ... | # Load in NVM, even if we don't have it
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | <|file_sep|>original/node/path.zsh
# Load in NVM, even if we don't have it
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
<|file_sep|>current/node/path.zsh
# Load in NVM, ... | cbc494d6f1e8b6c4a30c765dec6c7958a2d7706a | node/path.zsh | node/path.zsh | Shell |
<|file_sep|>original/requirements/test.txt
coverage==4.4
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0
<|file_sep|>current/requirements/test.txt
coverage==4.4
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0
<|file_sep|>updated/requirements/test.txt | coverage==4.4.1
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0 | <|file_sep|>original/requirements/test.txt
coverage==4.4
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0
<|file_sep|>current/requirements/test.txt
coverage==4.4
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0
<|file_sep|>updated/requirements/test.txt
coverage==4.4.1
pytest==3.0.7
flake8>=2.1.0
tox>=1.7.0 | e8eadfa73c9fd77f79770b141c49d4b5fc2045b9 | requirements/test.txt | requirements/test.txt | Text |
<|file_sep|>original/assets/less/variables.less
// Typography
// --------------------------------------------------
@base-font: 'source-sans-pro', sans-serif;
@heading-font: @base-font;
@caption-font: @base-font;
@code-font: 'source-code-pro', monospace;
@alt-font: 'volkorn', serif;
@doc-font-size: 16;
@doc-line-heig... | // Typography
// --------------------------------------------------
@base-font: 'source-sans-pro', sans-serif;
@heading-font: @base-font;
@caption-font: @base-font;
@code-font: 'source-code-pro', monospace;
@alt-font: 'volkhov', serif;
@doc-font-size: 16;
@doc-line-height: 24;
// set-up the body font-size / line-he... | <|file_sep|>original/assets/less/variables.less
// Typography
// --------------------------------------------------
@base-font: 'source-sans-pro', sans-serif;
@heading-font: @base-font;
@caption-font: @base-font;
@code-font: 'source-code-pro', monospace;
@alt-font: 'volkorn', serif;
@doc-font-size: 16;
@doc-line-heig... | daaaa9409fdc5fe7f2fd3a4bd70b9cf5cbed1d73 | assets/less/variables.less | assets/less/variables.less | Less |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- curl -s https://getcomposer.org/installer | php
- php ./composer.phar install --dev --prefer-source
script:
- ./vendor/bin/phpcs ./src/ --standard=PSR2 --extensions=php --ignore=*/vendor/* --report=summary --encoding=U... | language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- curl -s https://getcomposer.org/installer | php
- php ./composer.phar install --dev --prefer-source
script:
# - ./vendor/bin/phpcs ./src/ --standard=PSR2 --extensions=php --ignore=*/vendor/* --report=summary --encoding=UTF-8
- ./vendor/bin/phpunit -... | <|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- curl -s https://getcomposer.org/installer | php
- php ./composer.phar install --dev --prefer-source
script:
- ./vendor/bin/phpcs ./src/ --standard=PSR2 --extensions=php --ignore=*/vendor/* --report=summary --encoding=U... | 2686bb7dd374190f369d9ad7cb3908b1fd9ed946 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test/spec/dispatcher/dispatch_unhandled_message.rb
<|file_sep|>current/test/spec/dispatcher/dispatch_unhandled_message.rb
<|file_sep|>updated/test/spec/dispatcher/dispatch_unhandled_message.rb | require_relative 'dispatcher_init'
describe "Dispatch a Message That the Handler Doesn't Handle" do
it "Does not handle the message" do
dispatcher = EventStore::Messaging::Controls::Dispatcher::SomeDispatcher.new
message = EventStore::Messaging::Controls::Message::HandledMessage.new
event_data = EventSto... | <|file_sep|>original/test/spec/dispatcher/dispatch_unhandled_message.rb
<|file_sep|>current/test/spec/dispatcher/dispatch_unhandled_message.rb
<|file_sep|>updated/test/spec/dispatcher/dispatch_unhandled_message.rb
require_relative 'dispatcher_init'
describe "Dispatch a Message That the Handler Doesn't Handle" do
i... | e55a5f8980a8280517a7219634b247c51ea4b53e | test/spec/dispatcher/dispatch_unhandled_message.rb | test/spec/dispatcher/dispatch_unhandled_message.rb | Ruby |
<|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Pontoon allows you to localise we... | # Title tag
# Navigation
navigation-developers=Developers
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
headline-2=In Place.
call-to-action=Tell Me More
# What
what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you.
context-des... | <|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Pontoon allows you to localise we... | 8eecaefdb9b7fa09514b1f9349b8f7839533de9d | static/locales/en-GB/messages.properties | static/locales/en-GB/messages.properties | INI |
<|file_sep|>original/app/templates/views/service-settings/set-letters.html
{% block service_page_title %}
Send letters
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-five-sixths">
<h1 class="heading-large">Send letters</h1>
<p>
It costs between 30p ... | {% block service_page_title %}
Send letters
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-five-sixths">
<h1 class="heading-large">Send letters</h1>
<p>
It costs between 30p and 76p to send a letter using Notify.
</p>
<p>
See <a ... | <|file_sep|>original/app/templates/views/service-settings/set-letters.html
{% block service_page_title %}
Send letters
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-five-sixths">
<h1 class="heading-large">Send letters</h1>
<p>
It costs between 30p ... | 1a87126bb38d53dcc578b464b6960406af8e70a0 | app/templates/views/service-settings/set-letters.html | app/templates/views/service-settings/set-letters.html | HTML |
<|file_sep|>sniffer/deploy_sniffer.sh.diff
original:
mkdir -p logs
updated:
BASEDIR=$(dirname "$0")
mkdir -p $BASEDIR/logs
<|file_sep|>original/sniffer/deploy_sniffer.sh
#!/bin/bash
mkdir -p logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S")
echo '[*] Sniffer has been deployed.'
env/bin/python sniff.py 2>&1 | tee logs/$log_... | #!/bin/bash
BASEDIR=$(dirname "$0")
mkdir -p $BASEDIR/logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S")
echo '[*] Sniffer has been deployed.'
$BASEDIR/env/bin/python $BASEDIR/sniff.py 2>&1 | tee $BASEDIR/logs/$log_file.log | <|file_sep|>sniffer/deploy_sniffer.sh.diff
original:
mkdir -p logs
updated:
BASEDIR=$(dirname "$0")
mkdir -p $BASEDIR/logs
<|file_sep|>original/sniffer/deploy_sniffer.sh
#!/bin/bash
mkdir -p logs
log_file=$(date "+%Y_%m_%d-%H_%M_%S")
echo '[*] Sniffer has been deployed.'
env/bin/python sniff.py 2>&1 | tee logs/$log_... | ebb5b720b6eb73ef29cfcd02303b50d41e8ebc26 | sniffer/deploy_sniffer.sh | sniffer/deploy_sniffer.sh | Shell |
<|file_sep|>original/ws-php/files/workspace/README.md
-----------------------------------------------------------------
Hi there! Welcome to Cloud9 IDE!
To get you started, we have created a small hello world application.
1) Open the hello-world.php file
2) Follow the run instructions in the file's comments
... | -----------------------------------------------------------------
Hi there! Welcome to Cloud9 IDE!
To get you started, we have created a small hello world application.
1) Open the hello-world.php file
2) Follow the run instructions in the file's comments
3) If you want to look at the Apache logs, check out ~... | <|file_sep|>original/ws-php/files/workspace/README.md
-----------------------------------------------------------------
Hi there! Welcome to Cloud9 IDE!
To get you started, we have created a small hello world application.
1) Open the hello-world.php file
2) Follow the run instructions in the file's comments
... | 43cce7c9da3fe5c2df5bbfa2e08e724fef7ba50f | ws-php/files/workspace/README.md | ws-php/files/workspace/README.md | Markdown |
<|file_sep|>original/spec/onetimedownload_spec.rb
require 'spec_helper'
describe 'placeholder' do
expect(true).to be_truthy
end
<|file_sep|>current/spec/onetimedownload_spec.rb
require 'spec_helper'
describe 'placeholder' do
expect(true).to be_truthy
end
<|file_sep|>updated/spec/onetimedownload_spec.rb | require 'spec_helper'
describe 'placeholder' do
it 'works' do
expect(true).to be_truthy
end
end | <|file_sep|>original/spec/onetimedownload_spec.rb
require 'spec_helper'
describe 'placeholder' do
expect(true).to be_truthy
end
<|file_sep|>current/spec/onetimedownload_spec.rb
require 'spec_helper'
describe 'placeholder' do
expect(true).to be_truthy
end
<|file_sep|>updated/spec/onetimedownload_spec.rb
require 's... | 2f973be39e3102728d1d5801911169590856c697 | spec/onetimedownload_spec.rb | spec/onetimedownload_spec.rb | Ruby |
<|file_sep|>original/app/controllers/api/papers_controller.rb
class Api::PapersController < ApplicationController
def index
@papers = filtered_papers
render json: @papers, each_serializer: Api::PaperSerializer
end
def show
@paper = Paper.find params[:id]
render json: [@paper], each_serializer: Ap... | class Api::PapersController < ApplicationController
protect_from_forgery except: :update
def index
@papers = filtered_papers
render json: @papers, each_serializer: Api::PaperSerializer
end
def show
@paper = Paper.find params[:id]
render json: [@paper], each_serializer: Api::PaperSerializer
e... | <|file_sep|>original/app/controllers/api/papers_controller.rb
class Api::PapersController < ApplicationController
def index
@papers = filtered_papers
render json: @papers, each_serializer: Api::PaperSerializer
end
def show
@paper = Paper.find params[:id]
render json: [@paper], each_serializer: Ap... | f096c69d8e3208fcabbc5f7a776892014e25b7db | app/controllers/api/papers_controller.rb | app/controllers/api/papers_controller.rb | Ruby |
<|file_sep|>original/catalog/Documents_Reports/pdf_generation.yml
name: PDF Generation
description:
projects:
- acts_as_flying_saucer
- breezy_pdf
- combine_pdf
- doc_raptor
- gambas
- gimli
- invoice_printer
- kitabu
- pdfkit
- poppler
- prawn
- prawn-rails
- prawnto
- prawnto_2
- princel... | name: PDF Generation
description:
projects:
- acts_as_flying_saucer
- breezy_pdf
- breezy_pdf_lite
- combine_pdf
- doc_raptor
- gambas
- gimli
- invoice_printer
- kitabu
- pdfkit
- poppler
- prawn
- prawn-rails
- prawnto
- prawnto_2
- princely
- rghost
- rtex | <|file_sep|>original/catalog/Documents_Reports/pdf_generation.yml
name: PDF Generation
description:
projects:
- acts_as_flying_saucer
- breezy_pdf
- combine_pdf
- doc_raptor
- gambas
- gimli
- invoice_printer
- kitabu
- pdfkit
- poppler
- prawn
- prawn-rails
- prawnto
- prawnto_2
- princel... | df54478452b44b4954e321f033fb5fd545553a05 | catalog/Documents_Reports/pdf_generation.yml | catalog/Documents_Reports/pdf_generation.yml | YAML |
<|file_sep|>original/README.md
# udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
<|file_sep|>current/README.md
# udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
<|file_sep|>updated/README.md | # udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
Please paste in your TMDB API key in gradle.properties in the project root directory. | <|file_sep|>original/README.md
# udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
<|file_sep|>current/README.md
# udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
<|file_sep|>updated/README.md
# udacity-popular-movies
Udacity Project. Popular Movies using TMDB API
Please paste... | ae9036e73c06f4f2a84c52923978c75f47dce7f5 | README.md | README.md | Markdown |
<|file_sep|>README.md.diff
original:
updated:
This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
<|file_sep|>original/README.md
A Codeception module for managing test users on Drupal sites.
## Install with Compo... |
A Codeception module for managing test users on Drupal sites.
## Install with Composer
This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
{
"require": {
"codeception/codeception": "2.0.*"... | <|file_sep|>README.md.diff
original:
updated:
This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
<|file_sep|>original/README.md
A Codeception module for managing test users on Drupal sites.
## Install with Compo... | 1ec4c8a3d8153af9f7e2063136a09b5b84f83668 | README.md | README.md | Markdown |
<|file_sep|>original/README.md
sql-parser
=========
**WIP**
```js
require('sql-parser').parse('SELECT * FROM mytable');
{
type: 'QueryStatement',
start: 0,
end: 20,
body:[
{
type: 'Select',
columns: [ { type: 'Column', name: '*' } ],
from: 'mytable'
}
],
<|file_sep|>current/REA... | sql-parser
=========
**WIP**
SQL-92 definition: http://savage.net.au/SQL/sql-92.bnf.html
```js
require('sql-parser').parse('SELECT * FROM mytable');
{
type: 'QueryStatement',
start: 0,
end: 20,
body:[
{
type: 'Select',
columns: [ { type: 'Column', name: '*' } ],
from: 'mytable'
} | <|file_sep|>original/README.md
sql-parser
=========
**WIP**
```js
require('sql-parser').parse('SELECT * FROM mytable');
{
type: 'QueryStatement',
start: 0,
end: 20,
body:[
{
type: 'Select',
columns: [ { type: 'Column', name: '*' } ],
from: 'mytable'
}
],
<|file_sep|>current/REA... | ce9e529da4bedfdb227ee1c137b54abdf57e20c4 | README.md | README.md | Markdown |
<|file_sep|>original/dimod/package_info.py
# Copyright 2018 D-Wave Systems Inc.
#
# 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
... | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | <|file_sep|>original/dimod/package_info.py
# Copyright 2018 D-Wave Systems Inc.
#
# 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
... | 6041ecfa5b9bb89a7fa1502fe4d26868dc749b94 | dimod/package_info.py | dimod/package_info.py | Python |
<|file_sep|>config/switchboard.milestones.json.diff
original:
"date":"2010-09-18",
updated:
"date":"2011-09-24",
<|file_sep|>config/switchboard.milestones.json.diff
original:
"date":"2011-02-05",
"desc":"A chance to meet other competitors, the Student Robotics team, to get help and share ideas. You should have ... | {
"title":"Southampton Tech Day 2",
"date":"2012-02-04",
"desc":"Another opportunity to meet up with the other competitors and mentors. Your robot should be moving around on its own, and you should be developing both the code and mechanical parts to make it formidable."
},
{
"title":"Tech Day 3",
"date":"2... | <|file_sep|>config/switchboard.milestones.json.diff
original:
"date":"2010-09-18",
updated:
"date":"2011-09-24",
<|file_sep|>config/switchboard.milestones.json.diff
original:
"date":"2011-02-05",
"desc":"A chance to meet other competitors, the Student Robotics team, to get help and share ideas. You should have ... | 23765382b293f963b78c9adc2b855e07299b65ca | config/switchboard.milestones.json | config/switchboard.milestones.json | JSON |
<|file_sep|>original/src/plugins/spikeProbability.py
for f in files:
means = []
err = []
x = []
raw = []
for t in f['trials']:
count = []
x.append(t['xvalue'])
for p in t['passes']:
if len(p) > 0:
count.append(1)
else:
count.append(0)
means.append(SpikeDB.mean(count))
err.append(SpikeDB.st... | for t in f['trials']:
count = []
x.append(t['xvalue'])
for p in t['passes']:
if len(p) > 0:
count.append(1)
else:
count.append(0)
means.append(SpikeDB.mean(count))
err.append(SpikeDB.stddev(count))
SpikeDB.plotXLabel(f['xvar'])
SpikeDB.plotYLabel('Spike Probability')
SpikeDB.plotYMin(0)
Sp... | <|file_sep|>original/src/plugins/spikeProbability.py
for f in files:
means = []
err = []
x = []
raw = []
for t in f['trials']:
count = []
x.append(t['xvalue'])
for p in t['passes']:
if len(p) > 0:
count.append(1)
else:
count.append(0)
means.append(SpikeDB.mean(count))
err.append(SpikeDB.st... | e82ed9fcaa6745f849dfb65968ed44da30f6065b | src/plugins/spikeProbability.py | src/plugins/spikeProbability.py | Python |
<|file_sep|>original/app/models/concerns/hyrax/with_events.rb
# of activity on the target model of the mixin.
#
# @see Hyrax::Event
module WithEvents
def stream
Nest.new(event_class)[to_param]
end
# @return [String]
def event_class
self.class.name
end
def events(size = -1)
... | # of activity on the target model of the mixin.
#
# @see Hyrax::Event
module WithEvents
def stream
Nest.new(event_class)[to_param]
end
# @return [String]
def event_class
model_name.name
end
def events(size = -1)
event_stream.fetch(size)
end
def log_event(even... | <|file_sep|>original/app/models/concerns/hyrax/with_events.rb
# of activity on the target model of the mixin.
#
# @see Hyrax::Event
module WithEvents
def stream
Nest.new(event_class)[to_param]
end
# @return [String]
def event_class
self.class.name
end
def events(size = -1)
... | 0569a034f3355e8fc6c8b0021d286b53bc709ae3 | app/models/concerns/hyrax/with_events.rb | app/models/concerns/hyrax/with_events.rb | Ruby |
<|file_sep|>original/Sources/SwiftProtobuf/Google_Protobuf_NullValue+Extensions.swift
// -----------------------------------------------------------------------------
///
/// NullValue is a well-known message type that can be used to parse or encode
/// JSON Null values.
///
// -----------------------------------------... | //
// -----------------------------------------------------------------------------
///
/// NullValue is a well-known message type that can be used to parse or encode
/// JSON Null values.
///
// -----------------------------------------------------------------------------
extension Google_Protobuf_NullValue: _CustomJ... | <|file_sep|>original/Sources/SwiftProtobuf/Google_Protobuf_NullValue+Extensions.swift
// -----------------------------------------------------------------------------
///
/// NullValue is a well-known message type that can be used to parse or encode
/// JSON Null values.
///
// -----------------------------------------... | 148a105e5d59e5b386ba4056431481a30f010a5e | Sources/SwiftProtobuf/Google_Protobuf_NullValue+Extensions.swift | Sources/SwiftProtobuf/Google_Protobuf_NullValue+Extensions.swift | Swift |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- "2.3.0"
- "2.2.4"
- "2.1.5"
- "1.9.3"
- "1.8.7"
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- "2.3.0"
- "2.2.4"
- "2.1.5"
- "1.9.3"
- "1.8.7"
<|file_sep|>updated/.travis.yml | language: ruby
before_install: gem install bundler
rvm:
- "2.3.0"
- "2.2.4"
- "2.1.5"
- "1.9.3"
- "1.8.7" | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- "2.3.0"
- "2.2.4"
- "2.1.5"
- "1.9.3"
- "1.8.7"
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- "2.3.0"
- "2.2.4"
- "2.1.5"
- "1.9.3"
- "1.8.7"
<|file_sep|>updated/.travis.yml
language: ruby
before_install: gem install bundler
rvm:
- "2.... | fce12a4832630a6ec9b1fa74772eacb172f1ff6b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ReleaseNotes.md
### New in 1.0.0-alpha (Released 2016/02/26)
* Initial release
<|file_sep|>current/ReleaseNotes.md
### New in 1.0.0-alpha (Released 2016/02/26)
* Initial release
<|file_sep|>updated/ReleaseNotes.md | ### New in 1.0.0-alpha4 (Released 2016/02/26)
* Initial release | <|file_sep|>original/ReleaseNotes.md
### New in 1.0.0-alpha (Released 2016/02/26)
* Initial release
<|file_sep|>current/ReleaseNotes.md
### New in 1.0.0-alpha (Released 2016/02/26)
* Initial release
<|file_sep|>updated/ReleaseNotes.md
### New in 1.0.0-alpha4 (Released 2016/02/26)
* Initial release | a0b7ac6f8ecfa45a01e1c2fc9c909a005038fe6e | ReleaseNotes.md | ReleaseNotes.md | Markdown |
<|file_sep|>recipes/default.rb.diff
original:
c.content ControlGroups.build_config(node[:control_groups][:config])
updated:
c.content ControlGroups.build_config(node.run_state[:control_groups][:config])
<|file_sep|>original/recipes/default.rb
ruby_block 'control_groups[write configs]' do
block do
Control... |
ruby_block 'control_groups[write configs]' do
block do
ControlGroups.config_struct_init(node)
ControlGroups.rules_struct_init(node)
c = Chef::Resource::File.new('/etc/cgconfig.conf', run_context)
c.content ControlGroups.build_config(node.run_state[:control_groups][:config])
c.run_action(:create)
... | <|file_sep|>recipes/default.rb.diff
original:
c.content ControlGroups.build_config(node[:control_groups][:config])
updated:
c.content ControlGroups.build_config(node.run_state[:control_groups][:config])
<|file_sep|>original/recipes/default.rb
ruby_block 'control_groups[write configs]' do
block do
Control... | ebb936d00598ba44e3b58df13092368a6de917d0 | recipes/default.rb | recipes/default.rb | Ruby |
<|file_sep|>original/package.json
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/es128/node-hangman"
},
"keywords": [
"hang",
"hung",
"process",
"kill",
"terminate"
],
"author": "Elan Shanker",
"license": "ISC",
"bugs": {
"... | "type": "git",
"url": "https://github.com/es128/node-hangman"
},
"keywords": [
"hang",
"hung",
"process",
"kill",
"terminate"
],
"author": "Elan Shanker",
"license": "ISC",
"bugs": {
"url": "https://github.com/es128/node-hangman/issues"
},
"homepage": "https://github.com/... | <|file_sep|>original/package.json
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/es128/node-hangman"
},
"keywords": [
"hang",
"hung",
"process",
"kill",
"terminate"
],
"author": "Elan Shanker",
"license": "ISC",
"bugs": {
"... | 0385b938e0bbeb1eba0104e976d3dd70909c93a1 | package.json | package.json | JSON |
<|file_sep|>original/csc-mysql/docker-compose.yml
version: '3.5'
services:
csc-mysql:
image: mysql:latest
ports:
- 3308:3306
volumes:
- /docker-nfs/wd-mysql:/var/lib/mysql
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
... | version: '3.5'
services:
csc-mysql:
image: mysql:latest
ports:
- 3306:3306
volumes:
- /docker-nfs/wd-mysql:/var/lib/mysql
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
environment:
MYSQ... | <|file_sep|>original/csc-mysql/docker-compose.yml
version: '3.5'
services:
csc-mysql:
image: mysql:latest
ports:
- 3308:3306
volumes:
- /docker-nfs/wd-mysql:/var/lib/mysql
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
... | 500b320eb30f992322f344f645cc4317210725c4 | csc-mysql/docker-compose.yml | csc-mysql/docker-compose.yml | YAML |
<|file_sep|>original/_posts/2019-01-15-homebrew-system-util-breaking-change.md
<|file_sep|>current/_posts/2019-01-15-homebrew-system-util-breaking-change.md
<|file_sep|>updated/_posts/2019-01-15-homebrew-system-util-breaking-change.md | ---
layout: post
title: Homebrew >= v1.9.0 No Longer Links MacOS Provided Software
---
I recently had a bit of fun after upgrading to Homebrew `v1.9.0`, so wanted to write a quick PSA for others who may hit the same issue.
[Homebrew >= `v1.9.0`](https://brew.sh/2019/01/09/homebrew-1.9.0/) has a [breaking change to `b... | <|file_sep|>original/_posts/2019-01-15-homebrew-system-util-breaking-change.md
<|file_sep|>current/_posts/2019-01-15-homebrew-system-util-breaking-change.md
<|file_sep|>updated/_posts/2019-01-15-homebrew-system-util-breaking-change.md
---
layout: post
title: Homebrew >= v1.9.0 No Longer Links MacOS Provided Software
... | be9d4afacf241f0d8c95b43dc2ba779816e3aeb4 | _posts/2019-01-15-homebrew-system-util-breaking-change.md | _posts/2019-01-15-homebrew-system-util-breaking-change.md | Markdown |
<|file_sep|>README.md.diff
original:
updated:
Learning from these links
<|file_sep|>original/README.md
# README
https://www.html5rocks.com/en/tutorials/getusermedia/intro/
http://www.smartjava.org/content/record-audio-using-webrtc-chrome-and-speech-recognition-websockets
http://webaudiodemos.appspot.com/ <http://... | # README
Learning from these links
- [getusermedia](https://www.html5rocks.com/en/tutorials/getusermedia/intro/)
- [webrtc recording](http://www.smartjava.org/content/record-audio-using-webrtc-chrome-and-speech-recognition-websockets)
- [audio apps](http://webaudiodemos.appspot.com/) | <|file_sep|>README.md.diff
original:
updated:
Learning from these links
<|file_sep|>original/README.md
# README
https://www.html5rocks.com/en/tutorials/getusermedia/intro/
http://www.smartjava.org/content/record-audio-using-webrtc-chrome-and-speech-recognition-websockets
http://webaudiodemos.appspot.com/ <http://... | ebec5a03f91c0ddcbd6761a166a6b6dba4d440d4 | README.md | README.md | Markdown |
<|file_sep|>original/features/product/viewing_products/viewing_product_image.feature
<|file_sep|>current/features/product/viewing_products/viewing_product_image.feature
<|file_sep|>updated/features/product/viewing_products/viewing_product_image.feature | @viewing_products
Feature: Viewing a product's image on a product details page
In order to see images of a product
As a Visitor
I want to be able to view an image of a single product
Background:
Given the store operates on a single channel in "United States"
And the store has a product ... | <|file_sep|>original/features/product/viewing_products/viewing_product_image.feature
<|file_sep|>current/features/product/viewing_products/viewing_product_image.feature
<|file_sep|>updated/features/product/viewing_products/viewing_product_image.feature
@viewing_products
Feature: Viewing a product's image on a product... | d470a77a2431d672244280d35d03d7d1723587f0 | features/product/viewing_products/viewing_product_image.feature | features/product/viewing_products/viewing_product_image.feature | Cucumber |
<|file_sep|>original/sets/1/challenges/s1c5.py
import itertools
def MultipleCharacterXOR(input, key):
out = ""
for i, j in itertools.izip_longest(range(len(input)), range(len(key))):
vi = i
vj = j
if vi is None:
vi = vj % len(input)
elif vj is None:
vj = vi % len(key)
input_c = inpu... | import itertools
def MultipleCharacterXOR(input, key):
out = ""
j = 0
while j < max(len(input), len(key)):
i = j % len(input)
k = j % len(key)
j += 1
input_c = input[i]
key_c = key[k]
out += chr(ord(input_c) ^ ord(key_c))
return out.encode("hex")
if __name__ == "__main__":
input = ""... | <|file_sep|>original/sets/1/challenges/s1c5.py
import itertools
def MultipleCharacterXOR(input, key):
out = ""
for i, j in itertools.izip_longest(range(len(input)), range(len(key))):
vi = i
vj = j
if vi is None:
vi = vj % len(input)
elif vj is None:
vj = vi % len(key)
input_c = inpu... | 3ced7839a9afbd96d23617f60804d5d580ceb9e6 | sets/1/challenges/s1c5.py | sets/1/challenges/s1c5.py | Python |
<|file_sep|>.travis.yml.diff
original:
language: node_js
node_js:
- "7"
- "6"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "7"
- "6"
matrix:
include:
- os: linux
dist: trusty
# We don't really need sudo, but Firefox crashes on Linux when run
# via the launc... | matrix:
include:
- os: linux
dist: trusty
# We don't really need sudo, but Firefox crashes on Linux when run
# via the launcher script on the containers we get when sudo: false.
# TODO: figure out the cause of that bug and disable sudo.
sudo: required
- os: osx
language: node_js... | <|file_sep|>.travis.yml.diff
original:
language: node_js
node_js:
- "7"
- "6"
updated:
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "7"
- "6"
matrix:
include:
- os: linux
dist: trusty
# We don't really need sudo, but Firefox crashes on Linux when run
# via the launc... | 993e65412fdc588bd0a0bd07028d57e7baeb7004 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/content/issues/60.markdown
---
title: Issue 60
published: 2017-06-22
---
Welcome to another issue of Haskell Weekly!
Haskell is a purely functional programming language that focuses on robustness, concision, and correctness.
This is a weekly summary of what's going on in its community.
## Feature... | ---
title: Issue 60
published: 2017-06-22
---
Welcome to another issue of Haskell Weekly!
Haskell is a purely functional programming language that focuses on robustness, concision, and correctness.
This is a weekly summary of what's going on in its community.
## Featured
todo
## Package of the week
This week's pac... | <|file_sep|>original/content/issues/60.markdown
---
title: Issue 60
published: 2017-06-22
---
Welcome to another issue of Haskell Weekly!
Haskell is a purely functional programming language that focuses on robustness, concision, and correctness.
This is a weekly summary of what's going on in its community.
## Feature... | 2b7f174fb6c104f89d6da8155d482b2575fb1887 | content/issues/60.markdown | content/issues/60.markdown | Markdown |
<|file_sep|>original/app/services/cloud_topology_service.rb
if entity.try(:ems_id)
data[:provider] = entity.ext_management_system.name
end
data
end
def entity_status(entity)
if entity.kind_of?(ManageIQ::Providers::CloudManager)
entity.authentications.blank? ? 'Unknown' : entity.authent... | if entity.try(:ems_id)
data[:provider] = entity.ext_management_system.name
end
data
end
def entity_status(entity)
if entity.kind_of?(ManageIQ::Providers::CloudManager)
entity.authentications.blank? ? 'Unknown' : entity.authentications.first.status.try(:capitalize)
elsif entity.kind... | <|file_sep|>original/app/services/cloud_topology_service.rb
if entity.try(:ems_id)
data[:provider] = entity.ext_management_system.name
end
data
end
def entity_status(entity)
if entity.kind_of?(ManageIQ::Providers::CloudManager)
entity.authentications.blank? ? 'Unknown' : entity.authent... | 5eb8a5216d3bf0b26a2ec7f1054cc9d0fc962081 | app/services/cloud_topology_service.rb | app/services/cloud_topology_service.rb | Ruby |
<|file_sep|>original/e2e-tests-cleanup.sh
docker rm buffalotest
docker stop havenapi
docker rm havenapi
docker rm cucumber
docker stop gatekeeper
docker rm gatekeeper
docker rm cypress
docker stop db
docker rm db
docker rm configs
docker rm videos
docker rm certs
docker rm dockerize1
docker rm dockerize2
<|file... | docker rm buffalotest
docker stop havenapi
docker rm havenapi
docker rm cucumber
docker stop gatekeeper
docker rm gatekeeper
docker stop webui
docker rm webui
docker rm cypress
docker stop db
docker rm db
docker rm configs
docker rm videos
docker rm certs | <|file_sep|>original/e2e-tests-cleanup.sh
docker rm buffalotest
docker stop havenapi
docker rm havenapi
docker rm cucumber
docker stop gatekeeper
docker rm gatekeeper
docker rm cypress
docker stop db
docker rm db
docker rm configs
docker rm videos
docker rm certs
docker rm dockerize1
docker rm dockerize2
<|file... | b6da6c8ef29f35a1dbc1b60926ae6a5c5a8efd03 | e2e-tests-cleanup.sh | e2e-tests-cleanup.sh | Shell |
<|file_sep|>original/examples/QuickStart/Platform.Cocoa/GameViewController.mm
#import "GameViewController.h"
#import <Metal/Metal.h>
#import <simd/simd.h>
#import <MetalKit/MetalKit.h>
#import "SharedStructures.h"
#include <Pomdog/Math/Vector3.hpp>
#include <Pomdog/Math/Vector4.hpp>
#include <Pomdog/Math/Matrix3x3.hpp>... | #import "GameViewController.h"
#include "QuickStartGame.hpp"
#include <memory>
@implementation GameViewController
{
std::shared_ptr<Pomdog::Game> game;
}
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)loadAssetsPomdog:(std::shared_ptr<Pomdog::GameHost>)gameHost
{
game = std::make_shared<QuickStart:... | <|file_sep|>original/examples/QuickStart/Platform.Cocoa/GameViewController.mm
#import "GameViewController.h"
#import <Metal/Metal.h>
#import <simd/simd.h>
#import <MetalKit/MetalKit.h>
#import "SharedStructures.h"
#include <Pomdog/Math/Vector3.hpp>
#include <Pomdog/Math/Vector4.hpp>
#include <Pomdog/Math/Matrix3x3.hpp>... | 0441eafa28d84b24225c47870c2336d131ddbb51 | examples/QuickStart/Platform.Cocoa/GameViewController.mm | examples/QuickStart/Platform.Cocoa/GameViewController.mm | Objective-C++ |
<|file_sep|>original/Base/File/Name/BaseFileNameUtil.sh
<|file_sep|>current/Base/File/Name/BaseFileNameUtil.sh
<|file_sep|>updated/Base/File/Name/BaseFileNameUtil.sh | source Base/BaseUtil.sh
source String/StringUtil.sh
BaseFileNameUtil(){
getPath(){
path=${1}
if [[ $(BaseUtil getOS) =~ Windows ]]; then
_drive=${path:1:1}
drive=${_drive^}
headlessPath=${path/\/[a-z]/}
echo ${drive}:${headlessPath}
else
echo ${path}
fi
}
$@
} | <|file_sep|>original/Base/File/Name/BaseFileNameUtil.sh
<|file_sep|>current/Base/File/Name/BaseFileNameUtil.sh
<|file_sep|>updated/Base/File/Name/BaseFileNameUtil.sh
source Base/BaseUtil.sh
source String/StringUtil.sh
BaseFileNameUtil(){
getPath(){
path=${1}
if [[ $(BaseUtil getOS) =~ Windows ]]; then
_driv... | 6dabb2606bc47db38812a1945ff7cabe68c5ddea | Base/File/Name/BaseFileNameUtil.sh | Base/File/Name/BaseFileNameUtil.sh | Shell |
<|file_sep|>original/csunplugged/general/urls.py
"""URL routing for the general application."""
from django.conf.urls import url
from . import views
urlpatterns = [
url(r"^$", views.GeneralIndexView.as_view(), name="home"),
url(r"^about/$", views.GeneralAboutView.as_view(), name="about"),
url(r"^computat... | """URL routing for the general application."""
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^$",
views.GeneralIndexView.as_view(),
name="home"
),
url(
r"^about/$",
views.GeneralAboutView.as_view(),
name="about"
),
url(... | <|file_sep|>original/csunplugged/general/urls.py
"""URL routing for the general application."""
from django.conf.urls import url
from . import views
urlpatterns = [
url(r"^$", views.GeneralIndexView.as_view(), name="home"),
url(r"^about/$", views.GeneralAboutView.as_view(), name="about"),
url(r"^computat... | 5b8edee2b6fa13fc1b05e15961d8b7920e6f9739 | csunplugged/general/urls.py | csunplugged/general/urls.py | Python |
<|file_sep|>original/src/app/components/msp/application/sending/i18n/data/en/index.js
module.exports = {
pageTitle: 'Submitting your MSP enrollment application',
transmissionSuccess: 'You MSP enrollment application has been successfully submitted!',
transmissionInProgressMessage: 'Please do not close this browser... | module.exports = {
pageTitle: 'Submitting your MSP enrollment application',
transmissionSuccess: 'You MSP enrollment application has been successfully submitted!',
transmissionInProgressMessage: 'Please do not close this browser tab or window, it can take 1-2 minutes to complete the submission.',
transmissionEr... | <|file_sep|>original/src/app/components/msp/application/sending/i18n/data/en/index.js
module.exports = {
pageTitle: 'Submitting your MSP enrollment application',
transmissionSuccess: 'You MSP enrollment application has been successfully submitted!',
transmissionInProgressMessage: 'Please do not close this browser... | 673dc99c917f737a572e1d3ea71d7de5b57edca0 | src/app/components/msp/application/sending/i18n/data/en/index.js | src/app/components/msp/application/sending/i18n/data/en/index.js | JavaScript |
<|file_sep|>original/_posts/2018-09-23-Priority-Queue.md
<|file_sep|>current/_posts/2018-09-23-Priority-Queue.md
<|file_sep|>updated/_posts/2018-09-23-Priority-Queue.md | ---
layout: post
title: " μ°μ μμ ν "
categories: KeyPoint
tags: KeyPoint
author: goodGid
---
* content
{:toc}
## To Do
* μ°μ μμ νκ° μ΄λ€μμΌλ‘ λμκ°λμ§ μμ보μ.
| <|file_sep|>original/_posts/2018-09-23-Priority-Queue.md
<|file_sep|>current/_posts/2018-09-23-Priority-Queue.md
<|file_sep|>updated/_posts/2018-09-23-Priority-Queue.md
---
layout: post
title: " μ°μ μμ ν "
categories: KeyPoint
tags: KeyPoint
author: goodGid
---
* content
{:toc}
## To Do
* μ°μ μμ νκ° μ΄λ€μμΌλ‘ λμκ°λμ§ μμ보μ.
... | fec723b39f7fa62a3d4c0216cd38e6a6eb5f2aab | _posts/2018-09-23-Priority-Queue.md | _posts/2018-09-23-Priority-Queue.md | Markdown |
<|file_sep|>Cargo.toml.diff
original:
skeptic = "0.6"
updated:
skeptic = "0.13"
<|file_sep|>original/Cargo.toml
version = "0.2.2"
authors = ["Eduard Bopp <eduard.bopp@aepsil0n.de>"]
description = "Library for functional reactive programming"
documentation = "https://aepsil0n.github.io/carboxyl/"
homepage = "https://git... | version = "0.2.2"
authors = ["Eduard Bopp <eduard.bopp@aepsil0n.de>"]
description = "Library for functional reactive programming"
documentation = "https://aepsil0n.github.io/carboxyl/"
homepage = "https://github.com/aepsil0n/carboxyl"
repository = "https://github.com/aepsil0n/carboxyl"
readme = "README.md"
keywords = [... | <|file_sep|>Cargo.toml.diff
original:
skeptic = "0.6"
updated:
skeptic = "0.13"
<|file_sep|>original/Cargo.toml
version = "0.2.2"
authors = ["Eduard Bopp <eduard.bopp@aepsil0n.de>"]
description = "Library for functional reactive programming"
documentation = "https://aepsil0n.github.io/carboxyl/"
homepage = "https://git... | 8944827c417f63a3134cb42099fc53518d863654 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.6
- 2.3.2
- 2.4.0-preview3
before_install: gem install bundler
sudo: false
cache: bundler
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.6
- 2.3.2
- 2.4.0-preview3
before_install: gem install bundler
sudo: false
cache: bundler
<|f... | language: ruby
rvm:
- 2.2.6
- 2.3.3
- 2.4.0-rc1
before_install: gem install bundler
sudo: false
cache: bundler | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.6
- 2.3.2
- 2.4.0-preview3
before_install: gem install bundler
sudo: false
cache: bundler
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.6
- 2.3.2
- 2.4.0-preview3
before_install: gem install bundler
sudo: false
cache: bundler
<|f... | 5afdd8906a3f8f4bae4963dcfb17ff62f836157d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis-ci.sh
echo "ssh"
ssh-add ../deploy-key
echo "git clone"
git clone git@github.com:hazelgrove/hazel.git
echo "git conf"
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Push From Travis"
echo "move to hazel"
cd hazel
echo "switch to gh-pages"
git checkout... | echo "ssh"
ssh-add ../deploy-key
echo "git clone"
git clone git@github.com:hazelgrove/hazel.git
echo "git conf"
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Push From Travis"
echo "move to hazel"
cd hazel
echo "switch to gh-pages"
git checkout gh-pages
echo "get latest files"
c... | <|file_sep|>original/.travis-ci.sh
echo "ssh"
ssh-add ../deploy-key
echo "git clone"
git clone git@github.com:hazelgrove/hazel.git
echo "git conf"
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Push From Travis"
echo "move to hazel"
cd hazel
echo "switch to gh-pages"
git checkout... | a4f74b4b1ba72d41b9614e078852c29c185ecbe1 | .travis-ci.sh | .travis-ci.sh | Shell |
<|file_sep|>original/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java
<|file_sep|>current/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java
<|file_sep|>updated/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java | package uk.ac.ebi.gxa.loader.service;
import org.junit.Test;
/**
*/
public class TestNcdfConversion {
@Test
public void testExportExperiment() {
// Get an experiment from DB/NetCDF
// run update on it - not it'll rewrite the file
// make sure all the DB fields are shown in the NetCDF ... | <|file_sep|>original/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java
<|file_sep|>current/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java
<|file_sep|>updated/atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java
package uk.ac.ebi... | 2ec00f441ab7243d9d3e03adb0c4f42874100b74 | atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java | atlas-loader/src/test/java/uk/ac/ebi/gxa/loader/service/TestNcdfConversion.java | Java |
<|file_sep|>robot-name/RobotNameTest.fs.diff
original:
member tests.Robot_has_a_name() =
updated:
member tests.``Robot has a name``() =
<|file_sep|>robot-name/RobotNameTest.fs.diff
original:
member tests.Name_is_the_same_each_time() =
Assert.True(true)
updated:
member tests.``Name is the same ea... |
[<Test>]
[<Ignore>]
member tests.``Name is the same each time``() =
Assert.That(robot.Name, Is.EqualTo(robot.Name))
[<Test>]
[<Ignore>]
member this.``Different robots have different names``() =
let robot2 = RobotName()
Assert.That(robot.Name, Is.Not.EqualTo(robot2.Name... | <|file_sep|>robot-name/RobotNameTest.fs.diff
original:
member tests.Robot_has_a_name() =
updated:
member tests.``Robot has a name``() =
<|file_sep|>robot-name/RobotNameTest.fs.diff
original:
member tests.Name_is_the_same_each_time() =
Assert.True(true)
updated:
member tests.``Name is the same ea... | 96db6e8fd3d7ee1e29ed4b868f872375a3d9eee3 | robot-name/RobotNameTest.fs | robot-name/RobotNameTest.fs | F# |
<|file_sep|>applications/mail/src/app/components/composer/modals/PasswordInnerModal.scss.diff
original:
margin-block-start: 1.85em; // Magic number only for this case, otherwise impossible to align
updated:
margin-block-start: 1.8em; // Magic number only for this case, otherwise impossible to align
block-size: re... | @import '~@proton/styles/scss/config';
.password-inner-modal-copy {
&-container {
margin-block-start: 1.8em; // Magic number only for this case, otherwise impossible to align
block-size: rem($default-height-fields);
}
svg {
margin-block: auto;
}
} | <|file_sep|>applications/mail/src/app/components/composer/modals/PasswordInnerModal.scss.diff
original:
margin-block-start: 1.85em; // Magic number only for this case, otherwise impossible to align
updated:
margin-block-start: 1.8em; // Magic number only for this case, otherwise impossible to align
block-size: re... | 3210934237e36f5870285696940633f5a7397bd4 | applications/mail/src/app/components/composer/modals/PasswordInnerModal.scss | applications/mail/src/app/components/composer/modals/PasswordInnerModal.scss | SCSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.