prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/requirements-dev.txt
py==1.4.34
pyenchant==1.6.8
Pygments==2.2.0
pyparsing==2.2.0
pytest-django==3.1.2
pytest==3.1.2
pytz==2017.2
requests==2.18.1
six==1.10.0
snowballstemmer==1.2.1
sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.7.0
vine==1.1.3
virtualenv==15.1.0
waitress==1.0.2
WebOb==1.7.2
we... | py==1.4.34
pyenchant==1.6.8
Pygments==2.2.0
pyparsing==2.2.0
pytest-django==3.1.2
pytest==3.1.2
pytz==2017.2
requests==2.18.1
six==1.10.0
snowballstemmer==1.2.1
sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.7.0
vine==1.1.3
virtualenv==15.1.0
waitress==1.0.2
WebOb==1.7.3
webtest==2.0.27
# The following packages ar... | <|file_sep|>original/requirements-dev.txt
py==1.4.34
pyenchant==1.6.8
Pygments==2.2.0
pyparsing==2.2.0
pytest-django==3.1.2
pytest==3.1.2
pytz==2017.2
requests==2.18.1
six==1.10.0
snowballstemmer==1.2.1
sphinx==1.6.3
sphinxcontrib-spelling==2.3.0
tox==2.7.0
vine==1.1.3
virtualenv==15.1.0
waitress==1.0.2
WebOb==1.7.2
we... | c2405e412da37a49bc26fec64efcc59513e74f6c | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/app/controllers/users_controller.rb
class UsersController < ApplicationController
include WithUserParams
before_action :authenticate!, except: :terms
before_action :set_user!
skip_before_action :validate_accepted_role_terms!
def show
@messages = current_user.messages.to_a
@watch... | class UsersController < ApplicationController
include WithUserParams
before_action :authenticate!, except: :terms
before_action :set_user!
skip_before_action :validate_accepted_role_terms!
def show
@messages = current_user.messages_in_organization
@watched_discussions = current_user.watched_discussi... | <|file_sep|>original/app/controllers/users_controller.rb
class UsersController < ApplicationController
include WithUserParams
before_action :authenticate!, except: :terms
before_action :set_user!
skip_before_action :validate_accepted_role_terms!
def show
@messages = current_user.messages.to_a
@watch... | 80a836d48c870dd8ded5233e9450a104561d3898 | app/controllers/users_controller.rb | app/controllers/users_controller.rb | Ruby |
<|file_sep|>original/src/store/application/definition.js
/**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = function(){
return {
'summaryComponent': 'summaryComponent',
'barContentLeftComponent': 'barContentLeftComponent',
'cartridgeComponent':... | /**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = () => {
return ['summaryComponent', 'barContentLeftComponent', 'barContentRightComponent', 'cartridgeComponent', 'actions', 'mode', 'route']
.reduce((def, node) => {
def[node] = node;
re... | <|file_sep|>original/src/store/application/definition.js
/**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = function(){
return {
'summaryComponent': 'summaryComponent',
'barContentLeftComponent': 'barContentLeftComponent',
'cartridgeComponent':... | 9559c3e1ddb72056cf76854ec3862d1e95444fa0 | src/store/application/definition.js | src/store/application/definition.js | JavaScript |
<|file_sep|>original/bin/devenv_update.sh
#!/bin/bash -ex
source bin/devenv_start.sh
sleep 20
echo 'delete from key_value_store_entries;' | docker exec -i mysql_autobet mysql -pmysql autobet
java -jar target/autobet-0.1-SNAPSHOT-executable.jar stats -c 10000
java -jar target/autobet-0.1-SNAPSHOT-executable.jar eval ... | #!/bin/bash -ex
source bin/devenv_start.sh
sleep 20
java -jar target/autobet-0.1-SNAPSHOT-executable.jar stats -c 10000
java -jar target/autobet-0.1-SNAPSHOT-executable.jar eval -c 1000 -s random
java -jar target/autobet-0.1-SNAPSHOT-executable.jar eval -c 1000 -s goal_based | <|file_sep|>original/bin/devenv_update.sh
#!/bin/bash -ex
source bin/devenv_start.sh
sleep 20
echo 'delete from key_value_store_entries;' | docker exec -i mysql_autobet mysql -pmysql autobet
java -jar target/autobet-0.1-SNAPSHOT-executable.jar stats -c 10000
java -jar target/autobet-0.1-SNAPSHOT-executable.jar eval ... | 7c2572466206c7b23db0c2ebf0cdc8af36471894 | bin/devenv_update.sh | bin/devenv_update.sh | Shell |
<|file_sep|>original/index.js
Textile: require('./src/core/textile'),
Accessories: require('./src/core/accessories'),
Sparepart: require('./src/core/sparepart'),
UoM: require('./src/core/UoM').UoM,
UoM_Template: require('./src/core/UoM').UoM_Template,
GeneralMerchandise: ... | Accessories: require('./src/core/accessories'),
Sparepart: require('./src/core/sparepart'),
UoM: require('./src/core/UoM').UoM,
UoM_Template: require('./src/core/UoM').UoM_Template,
GeneralMerchandise: require('./src/core/general-merchandise')
},
po: {
PurchaseOrd... | <|file_sep|>original/index.js
Textile: require('./src/core/textile'),
Accessories: require('./src/core/accessories'),
Sparepart: require('./src/core/sparepart'),
UoM: require('./src/core/UoM').UoM,
UoM_Template: require('./src/core/UoM').UoM_Template,
GeneralMerchandise: ... | 2b8b10784d1689083d3bfe420fbe4f5dc4ab6606 | index.js | index.js | JavaScript |
<|file_sep|>original/app/controllers/nexaas/async/collector/async_resource_controller.rb
render_for_request(format)
end
end
private
def render_for_request(format)
format.js { render :show }
format.all do
send_data(@result.content, {
... | render_for_request(format)
end
end
private
def render_for_request(format)
format.js { render :show }
format.all do
send_data(@result.content, {
filename: "#{@result.filename}.#{@result.extension}", type: @result.content_type,
... | <|file_sep|>original/app/controllers/nexaas/async/collector/async_resource_controller.rb
render_for_request(format)
end
end
private
def render_for_request(format)
format.js { render :show }
format.all do
send_data(@result.content, {
... | 755f04645fa10cc2ba6d2009bd8455b1c181d61f | app/controllers/nexaas/async/collector/async_resource_controller.rb | app/controllers/nexaas/async/collector/async_resource_controller.rb | Ruby |
<|file_sep|>test/DebugInfo/trap-optimized.swift.diff
original:
updated:
import StdlibUnittest
<|file_sep|>original/test/DebugInfo/trap-optimized.swift
// RUN: %target-swift-frontend -O -primary-file %s -emit-ir -g -o - | FileCheck %s
// CHECK-LABEL: define{{.*}}2fn
func fn() {
print("two")
// CHECK-DAG: ![[LOC:.*]]... | // RUN: %target-swift-frontend -O -primary-file %s -emit-ir -g -o - | FileCheck %s
import StdlibUnittest
// CHECK-LABEL: define{{.*}}2fn
public var i : UInt32 = 1
public func fn() {
_blackHole(i)
// CHECK-DAG: ![[LOC:.*]] = !DILocation(line: [[@LINE+1]], column: 16,
_blackHole(0 - i)
// CHECK-DAG: ![[LOC2:.*]] = !D... | <|file_sep|>test/DebugInfo/trap-optimized.swift.diff
original:
updated:
import StdlibUnittest
<|file_sep|>original/test/DebugInfo/trap-optimized.swift
// RUN: %target-swift-frontend -O -primary-file %s -emit-ir -g -o - | FileCheck %s
// CHECK-LABEL: define{{.*}}2fn
func fn() {
print("two")
// CHECK-DAG: ![[LOC:.*]]... | 91d70575b27f4580554f4b6cd637ace66b141b3d | test/DebugInfo/trap-optimized.swift | test/DebugInfo/trap-optimized.swift | Swift |
<|file_sep|>original/roles/flannel_register/defaults/main.yaml
---
flannel_network: "{{ openshift.master.portal_net | default('172.16.1.1/16') }}"
flannel_min_network: "{{ min_network | default('172.16.5.0') }}"
flannel_subnet_len: "{{ subnet_len | default(24) }}"
flannel_etcd_key: /openshift.com/network
etcd_hosts: "{... | ---
flannel_network: "{{ openshift.master.portal_net | default('172.16.1.1/16', true) }}"
flannel_min_network: "{{ min_network | default('172.16.5.0', true) }}"
flannel_subnet_len: "{{ subnet_len | default(24, true) }}"
flannel_etcd_key: /openshift.com/network
etcd_hosts: "{{ etcd_urls }}"
etcd_conf_dir: "{{ openshift.... | <|file_sep|>original/roles/flannel_register/defaults/main.yaml
---
flannel_network: "{{ openshift.master.portal_net | default('172.16.1.1/16') }}"
flannel_min_network: "{{ min_network | default('172.16.5.0') }}"
flannel_subnet_len: "{{ subnet_len | default(24) }}"
flannel_etcd_key: /openshift.com/network
etcd_hosts: "{... | 490c50fe358a88d7ebdf3f473a2fb3131d6773c9 | roles/flannel_register/defaults/main.yaml | roles/flannel_register/defaults/main.yaml | YAML |
<|file_sep|>original/virtool/tests/test_users.py
<|file_sep|>current/virtool/tests/test_users.py
<|file_sep|>updated/virtool/tests/test_users.py | import hashlib
from virtool.utils import random_alphanumeric
from virtool.users import hash_password, check_password, check_legacy_password
class TestHashPassword:
def test_basic(self):
assert check_password("hello_world", hash_password("hello_world"))
class TestLegacyHashPassword:
def test_basic... | <|file_sep|>original/virtool/tests/test_users.py
<|file_sep|>current/virtool/tests/test_users.py
<|file_sep|>updated/virtool/tests/test_users.py
import hashlib
from virtool.utils import random_alphanumeric
from virtool.users import hash_password, check_password, check_legacy_password
class TestHashPassword:
d... | 0ef78781d0c4048f2fbe26c05cf81b3ec4f59d26 | virtool/tests/test_users.py | virtool/tests/test_users.py | Python |
<|file_sep|>original/web/views/shared_view.ex
defmodule VerkWeb.SharedView do
use VerkWeb.Web, :view
def enqueued_at(nil), do: "N/A"
def enqueued_at(timestamp) do
timestamp |> Timex.from_seconds |> Timex.format!("{ISO}")
end
end
<|file_sep|>current/web/views/shared_view.ex
defmodule VerkWeb.SharedView do
... | defmodule VerkWeb.SharedView do
use VerkWeb.Web, :view
def enqueued_at(nil), do: "N/A"
def enqueued_at(timestamp) do
timestamp |> Timex.DateTime.from_seconds |> Timex.format!("{ISO}")
end
end | <|file_sep|>original/web/views/shared_view.ex
defmodule VerkWeb.SharedView do
use VerkWeb.Web, :view
def enqueued_at(nil), do: "N/A"
def enqueued_at(timestamp) do
timestamp |> Timex.from_seconds |> Timex.format!("{ISO}")
end
end
<|file_sep|>current/web/views/shared_view.ex
defmodule VerkWeb.SharedView do
... | 442eaab12bb06c89d17c27c2be1f1c7365ed38df | web/views/shared_view.ex | web/views/shared_view.ex | Elixir |
<|file_sep|>original/mopidy/__init__.py
from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
... | from __future__ import absolute_import, print_function, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa... | <|file_sep|>original/mopidy/__init__.py
from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
... | 98ca748996fe462cedf284ad91a74bdd30eb81f3 | mopidy/__init__.py | mopidy/__init__.py | Python |
<|file_sep|>original/macos/README.md
<|file_sep|>current/macos/README.md
<|file_sep|>updated/macos/README.md | # macos
Automation for getting macOS up and running.
**N.B.** that this assumes both `curl` and `git` are available (which they
appear to be on a fresh MacBook Pro).
## usage
For first time installation, open a terminal and run:
```shell
export MF_HOMEBREW_STYLE=personal; curl -Ls https://mfgo.link/macos | bash
``... | <|file_sep|>original/macos/README.md
<|file_sep|>current/macos/README.md
<|file_sep|>updated/macos/README.md
# macos
Automation for getting macOS up and running.
**N.B.** that this assumes both `curl` and `git` are available (which they
appear to be on a fresh MacBook Pro).
## usage
For first time installation, o... | cc88cf75798a5374ea2bb109dcc3241689498604 | macos/README.md | macos/README.md | Markdown |
<|file_sep|>original/angular/core/services/exception_handler.coffee
client = new airbrakeJs.Client
projectId: AppConfig.errbit.key
projectKey: AppConfig.errbit.key
reporter: 'xhr'
host: AppConfig.errbit.url
client.addFilter (notice) ->
notice.context.environment = AppConfig.environmen... | client = new airbrakeJs.Client
projectId: AppConfig.errbit.key
projectKey: AppConfig.errbit.key
reporter: 'xhr'
host: AppConfig.errbit.url
client.addFilter (notice) ->
notice.context.environment = AppConfig.environment
if notice.errors[0].type == ""
null
else
notice... | <|file_sep|>original/angular/core/services/exception_handler.coffee
client = new airbrakeJs.Client
projectId: AppConfig.errbit.key
projectKey: AppConfig.errbit.key
reporter: 'xhr'
host: AppConfig.errbit.url
client.addFilter (notice) ->
notice.context.environment = AppConfig.environmen... | 3b3f3893c505a4fcb32efca285d8b7e769242311 | angular/core/services/exception_handler.coffee | angular/core/services/exception_handler.coffee | CoffeeScript |
<|file_sep|>lib/ext/promise/invoke.js.diff
original:
, isFunction = require('es5-ext/lib/Function/is-function')
updated:
, isCallable = require('es5-ext/lib/Object/is-callable')
<|file_sep|>original/lib/ext/promise/invoke.js
, silent = require('es5-ext/lib/Function/prototype/silent');
require('../../extend')... | , silent = require('es5-ext/lib/Function/prototype/silent');
require('../../extend')('invoke', null, function (args, resolve) {
var fn;
if (this.failed) {
resolve(this.promise);
return;
}
fn = args[0];
args = slice.call(args, 1);
if (!isCallable(fn)) {
if (!isCallable(this.value[fn])) {
resolve(ne... | <|file_sep|>lib/ext/promise/invoke.js.diff
original:
, isFunction = require('es5-ext/lib/Function/is-function')
updated:
, isCallable = require('es5-ext/lib/Object/is-callable')
<|file_sep|>original/lib/ext/promise/invoke.js
, silent = require('es5-ext/lib/Function/prototype/silent');
require('../../extend')... | 0d9238d85ea5b9b654d511ab45b24a195f57ac6a | lib/ext/promise/invoke.js | lib/ext/promise/invoke.js | JavaScript |
<|file_sep|>index.html.diff
original:
<script data-main="js/src/main" src="js/third-party/requirejs/require.js"></script>
updated:
<!-- <script data-main="js/src/main" src="js/third-party/requirejs/require.js"></script> -->
<|file_sep|>original/index.html
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> ... | <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Basic JS App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
<!-- // CSS Reset – http://meyerweb.com/eric/tools/... | <|file_sep|>index.html.diff
original:
<script data-main="js/src/main" src="js/third-party/requirejs/require.js"></script>
updated:
<!-- <script data-main="js/src/main" src="js/third-party/requirejs/require.js"></script> -->
<|file_sep|>original/index.html
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> ... | d0eed5099512531fa96ec84787f80648092c4775 | index.html | index.html | HTML |
<|file_sep|>plugins/github.rb.diff
original:
issuenum = issuenum.to_i
if issuenum < 1
m.reply 'Invalid Issue count!'
return
end
updated:
<|file_sep|>original/plugins/github.rb
match /ghpull (.+) (.+)/, method: :ghissue
def ghissue(m, repo, issuenum)
issuenum = issuenum.to_i
if issu... | match /ghpull (.+) (.+)/, method: :ghissue
def ghissue(m, repo, issuenum)
issueurl = "https://api.github.com/repos/#{repo}/issues/#{issuenum}"
begin
parsed = JSON.parse(RestClient.get(issueurl))
rescue
m.reply 'Invalid Repo or Issue number!'
return
end
issuenum = parsed['numbe... | <|file_sep|>plugins/github.rb.diff
original:
issuenum = issuenum.to_i
if issuenum < 1
m.reply 'Invalid Issue count!'
return
end
updated:
<|file_sep|>original/plugins/github.rb
match /ghpull (.+) (.+)/, method: :ghissue
def ghissue(m, repo, issuenum)
issuenum = issuenum.to_i
if issu... | f4ce4e5e5c7f3fb77983a92fec6ce9e6ddea0c0b | plugins/github.rb | plugins/github.rb | Ruby |
<|file_sep|>original/build.sbt
Library.http4sCore,
Library.http4sDsl,
Library.http4sBlazeServer,
Library.logbackClassic,
Library.properly,
Library.scalaLogging,
Library.scalacheck % "test"
)
// sbt-native-packager
enablePlugins(JavaServerAppPackaging, DebianPlugin)
debianPackageDependencies in Debian ++=... | Library.scalaLogging,
Library.scalacheck % "test"
)
// sbt-native-packager
enablePlugins(JavaServerAppPackaging, DebianPlugin)
debianPackageDependencies in Debian ++= Seq(
"libreoffice-writer",
"pandoc",
"texlive",
"wkhtmltopdf",
"xvfb"
)
serverLoading in Debian := com.typesafe.sbt.packager.archetypes.Se... | <|file_sep|>original/build.sbt
Library.http4sCore,
Library.http4sDsl,
Library.http4sBlazeServer,
Library.logbackClassic,
Library.properly,
Library.scalaLogging,
Library.scalacheck % "test"
)
// sbt-native-packager
enablePlugins(JavaServerAppPackaging, DebianPlugin)
debianPackageDependencies in Debian ++=... | 81a7b60a5ae8af098fc2fd44f1a15ba99ae45adc | build.sbt | build.sbt | Scala |
<|file_sep|>src/Sylius/Component/Grid/Sorting/Sorter.php.diff
original:
use Sylius\Component\Grid\Definition\Field;
updated:
<|file_sep|>original/src/Sylius/Component/Grid/Sorting/Sorter.php
/**
* @author Paweł Jędrzejewski <pawel@sylius.org>
*/
final class Sorter implements SorterInterface
{
/**
* {@inheri... | final class Sorter implements SorterInterface
{
/**
* {@inheritdoc}
*/
public function sort(DataSourceInterface $dataSource, Grid $grid, Parameters $parameters)
{
$expressionBuilder = $dataSource->getExpressionBuilder();
$sorting = $parameters->get('sorting', $grid->getSorting());... | <|file_sep|>src/Sylius/Component/Grid/Sorting/Sorter.php.diff
original:
use Sylius\Component\Grid\Definition\Field;
updated:
<|file_sep|>original/src/Sylius/Component/Grid/Sorting/Sorter.php
/**
* @author Paweł Jędrzejewski <pawel@sylius.org>
*/
final class Sorter implements SorterInterface
{
/**
* {@inheri... | 7a0f3b20cec73a5f4beb63e3c2fff2a8448eda98 | src/Sylius/Component/Grid/Sorting/Sorter.php | src/Sylius/Component/Grid/Sorting/Sorter.php | PHP |
<|file_sep|>original/spec/roadmap.md
### Milestone 0
**目标:可用**
M0 将提供一个可用的 V2Ray Point Server,包含 Windows、Mac OS 和 Linux(Debian 为主)的预编译文件。主要功能和限制如下:
* SOCKS 4 / 5 协议,仅提供 TCP 代理;
* 使用自有 [VMess 协议](https://github.com/V2Ray/v2ray-core/blob/master/spec/vmess.md)做隧道;
* 服务器端支持多用户;
* 客户端支持多服务器,暂不支持负载平衡,多服务器时随机选择服务器;
### Mile... | # V2Ray 开发计划
## 版本号
V2Ray 的版本号形如 X.Y.Z,其中 X 表示 Milestone,Y 表示 Release,如 2.3 表示第二个 Milestone 的第三个 Release;Z 仅作为修复紧急 Bug 之后的发布使用,一般不出现。
## 周期
V2Ray 将在每周一发布一个 [Release](https://github.com/v2ray/v2ray-core/releases),每 12 周左右完成一个 Milestone。
| <|file_sep|>original/spec/roadmap.md
### Milestone 0
**目标:可用**
M0 将提供一个可用的 V2Ray Point Server,包含 Windows、Mac OS 和 Linux(Debian 为主)的预编译文件。主要功能和限制如下:
* SOCKS 4 / 5 协议,仅提供 TCP 代理;
* 使用自有 [VMess 协议](https://github.com/V2Ray/v2ray-core/blob/master/spec/vmess.md)做隧道;
* 服务器端支持多用户;
* 客户端支持多服务器,暂不支持负载平衡,多服务器时随机选择服务器;
### Mile... | 280c138cb4e583a4e329cdd5b709a1e415202911 | spec/roadmap.md | spec/roadmap.md | Markdown |
<|file_sep|>original/docs/changes.rst
==========
Change Log
==========
1.2.1
-----
- Add tests for stripping away unquoted escape characters in the `match` pseudo-selector (#100)
- Make cnx-easybake python3 compatible (#101)
- Add Jenkinsfile (#102)
1.2.0
-----
- Update to depend on cnx-cssselect2 instead of a git... | ==========
Change Log
==========
1.2.2
-----
- Re-release of 1.2.1
1.2.1
-----
- Add tests for stripping away unquoted escape characters in the `match` pseudo-selector (#100)
- Make cnx-easybake python3 compatible (#101)
- Add Jenkinsfile (#102)
1.2.0
-----
- Update to depend on cnx-cssselect2 instead of a githu... | <|file_sep|>original/docs/changes.rst
==========
Change Log
==========
1.2.1
-----
- Add tests for stripping away unquoted escape characters in the `match` pseudo-selector (#100)
- Make cnx-easybake python3 compatible (#101)
- Add Jenkinsfile (#102)
1.2.0
-----
- Update to depend on cnx-cssselect2 instead of a git... | 919419895bea6fb86ce6d06bd78e855416f76a3c | docs/changes.rst | docs/changes.rst | reStructuredText |
<|file_sep|>original/views/layout.jade
head
title= title
link(rel='stylesheet', href='/javascripts/vendor/bootstrap-css/css/bootstrap.css')
link(rel='stylesheet', href='/stylesheets/style.css')
block head
body
include menu
.container
block content
... | head
title= title
link(rel='stylesheet', href='/javascripts/vendor/bootstrap-css/css/bootstrap.css')
link(rel='stylesheet', href='/stylesheets/style.css')
block head
body
include menu
.container
block content
script(src="/javascripts/vendor... | <|file_sep|>original/views/layout.jade
head
title= title
link(rel='stylesheet', href='/javascripts/vendor/bootstrap-css/css/bootstrap.css')
link(rel='stylesheet', href='/stylesheets/style.css')
block head
body
include menu
.container
block content
... | 8e8ed41dca11ff1a09be04a544881d71f064b3f2 | views/layout.jade | views/layout.jade | Jade |
<|file_sep|>original/alchemy-devise.gemspec
s.homepage = "http://alchemy-cms.com"
s.summary = "Devise based user authentication for AlchemyCMS."
s.description = "Devise based user authentication for AlchemyCMS."
s.files = Dir["{app,config,db,lib}/**/*", "LICENSE", "Rakefile", "README.md"]
s.add_depen... | s.homepage = "http://alchemy-cms.com"
s.summary = "Devise based user authentication for AlchemyCMS."
s.description = "Devise based user authentication for AlchemyCMS."
s.files = Dir["{app,config,db,lib}/**/*", "LICENSE", "Rakefile", "README.md"]
s.add_dependency "alchemy_cms", [">= 4.1.0.beta", "< 4.... | <|file_sep|>original/alchemy-devise.gemspec
s.homepage = "http://alchemy-cms.com"
s.summary = "Devise based user authentication for AlchemyCMS."
s.description = "Devise based user authentication for AlchemyCMS."
s.files = Dir["{app,config,db,lib}/**/*", "LICENSE", "Rakefile", "README.md"]
s.add_depen... | 3dfefb9ccdbe2f6ea272e6f74e09d4ab9cc4eaee | alchemy-devise.gemspec | alchemy-devise.gemspec | Ruby |
<|file_sep|>original/README.md
# <img src="http://i.imgur.com/h51t4bA.png" alt="AWESOME - Aberystwyth Web Evaluation Surveys Of Module Experiences" height="88px" />
Dev branch: [](https://magnum.travis-ci.co... | # <img src="http://i.imgur.com/h51t4bA.png" alt="AWESOME - Aberystwyth Web Evaluation Surveys Of Module Experiences" height="88px" />
Dev branch: [](https://magnum.travis-ci.com/bbrks/AWESOME)
---
AWESOME ... | <|file_sep|>original/README.md
# <img src="http://i.imgur.com/h51t4bA.png" alt="AWESOME - Aberystwyth Web Evaluation Surveys Of Module Experiences" height="88px" />
Dev branch: [](https://magnum.travis-ci.co... | bb9bb1af2ffce904da788ce87cfe87bf4a67a725 | README.md | README.md | Markdown |
<|file_sep|>assassins/assassins/views.py.diff
original:
updated:
from django.views.decorators.http import require_POST
<|file_sep|>original/assassins/assassins/views.py
from django.shortcuts import render, redirect
from django.contrib.auth import views as auth_views
# Create your views here.
def index(request):
pass... | from django.shortcuts import render, redirect
from django.contrib.auth import views as auth_views
from django.views.decorators.http import require_POST
# Create your views here.
def index(request):
pass
@require_POST
def login(request, **kwargs):
if request.user.is_authenticated():
return redirect('index')
else:... | <|file_sep|>assassins/assassins/views.py.diff
original:
updated:
from django.views.decorators.http import require_POST
<|file_sep|>original/assassins/assassins/views.py
from django.shortcuts import render, redirect
from django.contrib.auth import views as auth_views
# Create your views here.
def index(request):
pass... | 97940ed6ddd7d50feb47a932be096be5b223b1f0 | assassins/assassins/views.py | assassins/assassins/views.py | Python |
<|file_sep|>js/components/developer/secure/secure.js.diff
original:
import { Spinner } from 'native-base';
updated:
<|file_sep|>js/components/developer/secure/secure.js.diff
original:
updated:
import JASpinner from '../../common/spinner/JASpinner';
<|file_sep|>original/js/components/developer/secure/secure.js
rende... | render() {
const { authenticated, loading, children } = this.props;
// Render children component(s) if the user is authenticated
if (authenticated) {
return children;
}
// Display loading spinner while authenticating
if (loading) {
return (
<JASpinner />
);
}
... | <|file_sep|>js/components/developer/secure/secure.js.diff
original:
import { Spinner } from 'native-base';
updated:
<|file_sep|>js/components/developer/secure/secure.js.diff
original:
updated:
import JASpinner from '../../common/spinner/JASpinner';
<|file_sep|>original/js/components/developer/secure/secure.js
rende... | 6a0ab086398ac43355586c6cdcc2f73131b3a409 | js/components/developer/secure/secure.js | js/components/developer/secure/secure.js | JavaScript |
<|file_sep|>original/README.md
```python
import time
import json
from cfnresponse import send, SUCCESS
def handler(event, context):
if event['RequestType'] == 'Delete':
send(event, context, SUCCESS)
print("Received event: " + json.dumps(event, indent=2))
time.sleep(5)
send(event, context, SUC... |
```python
import time
import json
from cfnresponse import send, SUCCESS
def handler(event, context):
if event['RequestType'] == 'Delete':
send(event, context, SUCCESS)
return
print("Received event: " + json.dumps(event, indent=2))
time.sleep(5)
send(event, context, SUCCESS)
```
Refe... | <|file_sep|>original/README.md
```python
import time
import json
from cfnresponse import send, SUCCESS
def handler(event, context):
if event['RequestType'] == 'Delete':
send(event, context, SUCCESS)
print("Received event: " + json.dumps(event, indent=2))
time.sleep(5)
send(event, context, SUC... | 5a095865e39e82b6bb0cc4785a8abb3865767f3c | README.md | README.md | Markdown |
<|file_sep|>original/package.json
"scripts": {
"test": "standard && mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli-app",
"cli",
""
],
"dependencies": {
"got": "^3.3.0",
"log-symbols": "^1.0.2",
"meow": "^3.0.0"
},
"devDependencies": {
"mocha": "... | "scripts": {
"test": "standard && mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"github",
"check",
"username",
"taken",
"availability",
"gh",
"users",
"api"
],
"dependencies": {
"got": "^3.3.0", | <|file_sep|>original/package.json
"scripts": {
"test": "standard && mocha"
},
"files": [
"index.js",
"cli.js"
],
"keywords": [
"cli-app",
"cli",
""
],
"dependencies": {
"got": "^3.3.0",
"log-symbols": "^1.0.2",
"meow": "^3.0.0"
},
"devDependencies": {
"mocha": "... | 4cb3c89c4fc9b5c208c87701470d2323d241638f | package.json | package.json | JSON |
<|file_sep|>garfield/sims/tests.py.diff
original:
updated:
from django.test import override_settings
<|file_sep|>garfield/sims/tests.py.diff
original:
updated:
@override_settings(TWILIO_PHONE_NUMBER="+15558675309")
<|file_sep|>original/garfield/sims/tests.py
@patch('sms.tasks.save_sms_message.apply_async')
d... |
@patch('sms.tasks.save_sms_message.apply_async')
def test_sim_send_sms(self, mock_save_sms_message):
response = self.client.sms("Test.",
path="/sims/sms/send/")
self.assert_twiml(response)
self.assertTrue(mock_save_sms_message.called)
@override_sett... | <|file_sep|>garfield/sims/tests.py.diff
original:
updated:
from django.test import override_settings
<|file_sep|>garfield/sims/tests.py.diff
original:
updated:
@override_settings(TWILIO_PHONE_NUMBER="+15558675309")
<|file_sep|>original/garfield/sims/tests.py
@patch('sms.tasks.save_sms_message.apply_async')
d... | 0ba616bbd037a1c84f20221a95a623d853da9db9 | garfield/sims/tests.py | garfield/sims/tests.py | Python |
<|file_sep|>original/src/Phansible/Provider/RolesServiceProvider.php
use Phansible\RoleManager;
class RolesServiceProvider implements ServiceProviderInterface
{
/**
* {@inheritdoc}
*/
public function register(Application $app)
{
$app['roles'] = $app->share(
function ($app) {
... | use Phansible\RoleManager;
class RolesServiceProvider implements ServiceProviderInterface
{
/**
* {@inheritdoc}
*/
public function register(Application $app)
{
$app['roles'] = $app->share(
function () {
return new RoleManager();
}
);
}
... | <|file_sep|>original/src/Phansible/Provider/RolesServiceProvider.php
use Phansible\RoleManager;
class RolesServiceProvider implements ServiceProviderInterface
{
/**
* {@inheritdoc}
*/
public function register(Application $app)
{
$app['roles'] = $app->share(
function ($app) {
... | 7bec6880ac2c0e834c720e6d019d47342da8dde1 | src/Phansible/Provider/RolesServiceProvider.php | src/Phansible/Provider/RolesServiceProvider.php | PHP |
<|file_sep|>common/predictive-text/unit_tests/in_browser/cases/lmlayer-integration.js.diff
original:
it('should take a function and convert it into a blob function', function () {
updated:
it('should take a function and convert it into a blob function', function (done) {
<|file_sep|>common/predictive-text/unit_... | });
});
describe('#asBlobURI', function () {
it('should take a function and convert it into a blob function', function (done) {
let uri = LMLayer.asBlobURI(function dummyHandler() {
// Post something weird, so we can be reasonably certain it's not a fluke.
// WARNING: Do NOT factor ... | <|file_sep|>common/predictive-text/unit_tests/in_browser/cases/lmlayer-integration.js.diff
original:
it('should take a function and convert it into a blob function', function () {
updated:
it('should take a function and convert it into a blob function', function (done) {
<|file_sep|>common/predictive-text/unit_... | 6cc20cfd8340dc14d1219c7eb64ead988e5bdb1d | common/predictive-text/unit_tests/in_browser/cases/lmlayer-integration.js | common/predictive-text/unit_tests/in_browser/cases/lmlayer-integration.js | JavaScript |
<|file_sep|>original/utils/get_collection_object_count.py
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to collection")
parser.add_a... | from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to collection")
parser.add_argument('--pynuxrc', default='~/.pynuxrc-prod', help="rcfi... | <|file_sep|>original/utils/get_collection_object_count.py
from deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo
def main(argv=None):
parser = argparse.ArgumentParser(description='Print count of objects for a given collection.')
parser.add_argument('path', help="Nuxeo path to collection")
parser.add_a... | 1b1715c4c44c162f650d6da79f5571ac2c0f994b | utils/get_collection_object_count.py | utils/get_collection_object_count.py | Python |
<|file_sep|>original/LICENSE.md
Copyright (c) 2015, Little Mike
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of co... | Copyright (c) 201?, <YOUR NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following discl... | <|file_sep|>original/LICENSE.md
Copyright (c) 2015, Little Mike
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of co... | 3c01df3a55cdbf8da33f554c437e1550e4c7d2c6 | LICENSE.md | LICENSE.md | Markdown |
<|file_sep|>app/views/games/show.html.erb.diff
original:
updated:
<p>First, we will deal the cards.</p>
<p>Your cards:</p>
<|file_sep|>original/app/views/games/show.html.erb
<p>Let's play 500!</p>
<ul>
<% @game.hands[:south].each do |card| %>
<li><%= card.to_s %></li>
<% end %>
</ul>
<|file_sep|>current/app/vi... | <p>Let's play 500!</p>
<p>First, we will deal the cards.</p>
<p>Your cards:</p>
<ul>
<% @game.hands[:south].each do |card| %>
<li><%= card.to_s %></li>
<% end %>
</ul>
<p>Now is the bidding phase.</p>
<p>West passes.</p>
<p>North passes.</p>
<p>East passes.</p>
<p>It is now your chance to make a bid.</p>
<p>For... | <|file_sep|>app/views/games/show.html.erb.diff
original:
updated:
<p>First, we will deal the cards.</p>
<p>Your cards:</p>
<|file_sep|>original/app/views/games/show.html.erb
<p>Let's play 500!</p>
<ul>
<% @game.hands[:south].each do |card| %>
<li><%= card.to_s %></li>
<% end %>
</ul>
<|file_sep|>current/app/vi... | 6e0016455992ce2dfa4e49b2de41eb217fb1b295 | app/views/games/show.html.erb | app/views/games/show.html.erb | HTML+ERB |
<|file_sep|>original/articles/client-platforms/jquery/00-intro.md
To integrate your jQuery application with Auth0, you will need to add the following dependency:
- [Lock Widget](/libraries/lock) is the default authentication widget provided by Auth0.
From [npm](https://www.npmjs.com/package/auth0-lock):
`npm in... |
To integrate your jQuery application with Auth0, you will need to add the following dependency:
- [Lock Widget](/libraries/lock) is the default authentication widget provided by Auth0.
From [npm](https://www.npmjs.com/package/auth0-lock):
`npm install --save auth0-lock`
From [bower](http://bower.io):
`bow... | <|file_sep|>original/articles/client-platforms/jquery/00-intro.md
To integrate your jQuery application with Auth0, you will need to add the following dependency:
- [Lock Widget](/libraries/lock) is the default authentication widget provided by Auth0.
From [npm](https://www.npmjs.com/package/auth0-lock):
`npm in... | 16a47112a1c49ea4bb7c8e9681d3e3b433336a58 | articles/client-platforms/jquery/00-intro.md | articles/client-platforms/jquery/00-intro.md | Markdown |
<|file_sep|>original/.github/workflows/build.yml
on: push
name: build
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--... | on: push
name: build
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:12.1
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: acti... | <|file_sep|>original/.github/workflows/build.yml
on: push
name: build
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--... | e7143eface23933a10215f59e50325f5d264c458 | .github/workflows/build.yml | .github/workflows/build.yml | YAML |
<|file_sep|>gradle.properties.diff
original:
assertJVersion = 3.6.0
updated:
assertJVersion = 3.6.2
<|file_sep|>original/gradle.properties
group = org.junit.jupiter
version = 5.0.0-SNAPSHOT
platformGroup = org.junit.platform
platformVersion = 1.0.0-SNAPSHOT
vintageGroup = or... | group = org.junit.jupiter
version = 5.0.0-SNAPSHOT
platformGroup = org.junit.platform
platformVersion = 1.0.0-SNAPSHOT
vintageGroup = org.junit.vintage
vintageVersion = 4.12.0-SNAPSHOT
sourceCompatibility = 1.8
targetCompatibility = 1.8
assertJVersion = 3.6.2
junit4Ve... | <|file_sep|>gradle.properties.diff
original:
assertJVersion = 3.6.0
updated:
assertJVersion = 3.6.2
<|file_sep|>original/gradle.properties
group = org.junit.jupiter
version = 5.0.0-SNAPSHOT
platformGroup = org.junit.platform
platformVersion = 1.0.0-SNAPSHOT
vintageGroup = or... | b2b8cc2a9e2b781a5a9c24cccb8491ab39fa1c89 | gradle.properties | gradle.properties | INI |
<|file_sep|>original/etc/metadefs/compute-guest-shutdown.json
<|file_sep|>current/etc/metadefs/compute-guest-shutdown.json
<|file_sep|>updated/etc/metadefs/compute-guest-shutdown.json | {
"namespace": "OS::Compute::GuestShutdownBehavior",
"display_name": "Shutdown Behavior",
"description": "These properties allow modifying the shutdown behavior for stop, rescue, resize, and shelve operations.",
"visibility": "public",
"protected": true,
"resource_type_associations": [
{... | <|file_sep|>original/etc/metadefs/compute-guest-shutdown.json
<|file_sep|>current/etc/metadefs/compute-guest-shutdown.json
<|file_sep|>updated/etc/metadefs/compute-guest-shutdown.json
{
"namespace": "OS::Compute::GuestShutdownBehavior",
"display_name": "Shutdown Behavior",
"description": "These properties... | 5fcb3aa2e35e9af17cb8be9e24c6613626036f2b | etc/metadefs/compute-guest-shutdown.json | etc/metadefs/compute-guest-shutdown.json | JSON |
<|file_sep|>original/app/config/config_dev.yml
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
firephp:
type: firephp
le... | web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
channels: ['!event']
firephp:
type: firephp
level: info
hwi_... | <|file_sep|>original/app/config/config_dev.yml
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: %kernel.logs_dir%/%kernel.environment%.log
level: debug
firephp:
type: firephp
le... | 8e9a3cc4ee2c57fea1d84f13f162ef03b76fdcf7 | app/config/config_dev.yml | app/config/config_dev.yml | YAML |
<|file_sep|>original/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql
<|file_sep|>current/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql
<|file_sep|>updated/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql | CREATE OR REPLACE FUNCTION add_vm_device_soundcard_0730()
RETURNS void
AS $function$
DECLARE
-- get all VM desktops
v_cur CURSOR FOR SELECT * FROM vm_static where entity_type='VM' and vm_type=0;
v_record vm_static%ROWTYPE;
v_soundcard varchar(10);
v_device_id UUID;
v_spec_params text;
BEGIN
... | <|file_sep|>original/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql
<|file_sep|>current/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql
<|file_sep|>updated/backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql
CREATE OR REPLACE FUNCTION add_vm_devi... | 29c9f2caa1ce3387ff7b742fbc338194c3d66a0f | backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql | backend/manager/dbscripts/upgrade/03_01_0730_add_vm_device_soundcard.sql | SQL |
<|file_sep|>original/buildspec.yml
version: 0.1
phases:
pre_build:
commands:
- echo Starting
build:
commands:
- echo Build started on `date`
- npm --production install
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- **/*
<|file_... | version: 0.1
phases:
pre_build:
commands:
- echo Starting
build:
commands:
- echo Build started on `date`
- npm --production install
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- '**/*' | <|file_sep|>original/buildspec.yml
version: 0.1
phases:
pre_build:
commands:
- echo Starting
build:
commands:
- echo Build started on `date`
- npm --production install
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- **/*
<|file_... | 4667023db1088807a08280718b8fa5b6a7611a94 | buildspec.yml | buildspec.yml | YAML |
<|file_sep|>original/install.sh
#!/bin/bash
mkdir app/cache app/logs app/db
sudo setfacl -R -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs
<|file_sep|>current/install.sh
#!/bin/bash
mkdir app/cache app/logs app/db
sudo setfacl -R -m u:www-d... | #!/bin/bash
mkdir app/cache app/logs app/db
sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs | <|file_sep|>original/install.sh
#!/bin/bash
mkdir app/cache app/logs app/db
sudo setfacl -R -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:marian0:rwx app/cache app/logs
<|file_sep|>current/install.sh
#!/bin/bash
mkdir app/cache app/logs app/db
sudo setfacl -R -m u:www-d... | a45a1d33695960eac194f243329c5c556a217374 | install.sh | install.sh | Shell |
<|file_sep|>original/app/views/minutes/show.html.haml
- @minute.tags.each do |tag|
= tag_label(tag)
= render partial: 'content', locals: {text: @minute.cooked_content, organization: @minute.organization}
= link_to 'Edit', edit_minute_path(@minute)
|
= link_to 'Back', minutes_path
<|file_sep|>current/app/views/minutes... | - location = @minute.location.present? ? @minute.location : "???"
- dtstart = @minute.dtstart.strftime("%Y-%m-%d %H:%M:%S") rescue "???"
- dtend = @minute.dtend.strftime("%Y-%m-%d %H:%M:%S") rescue "???"
%h2
= user_avatar_icon_tag(@minute.author)
= @minute.title + " at " + location
= link_to minute_path(@minute, ... | <|file_sep|>original/app/views/minutes/show.html.haml
- @minute.tags.each do |tag|
= tag_label(tag)
= render partial: 'content', locals: {text: @minute.cooked_content, organization: @minute.organization}
= link_to 'Edit', edit_minute_path(@minute)
|
= link_to 'Back', minutes_path
<|file_sep|>current/app/views/minutes... | 7dfbdd7ab4f1d374e0a6b894e51977e62c9113e1 | app/views/minutes/show.html.haml | app/views/minutes/show.html.haml | Haml |
<|file_sep|>original/requirements.txt
pytest==3.3.0
pytest-cookies==0.3.0
pyaml==17.10.0
testinfra==1.10.1
tox==2.9.1
<|file_sep|>current/requirements.txt
pytest==3.3.0
pytest-cookies==0.3.0
pyaml==17.10.0
testinfra==1.10.1
tox==2.9.1
<|file_sep|>updated/requirements.txt | pytest==3.3.1
pytest-cookies==0.3.0
pyaml==17.10.0
testinfra==1.10.1
tox==2.9.1 | <|file_sep|>original/requirements.txt
pytest==3.3.0
pytest-cookies==0.3.0
pyaml==17.10.0
testinfra==1.10.1
tox==2.9.1
<|file_sep|>current/requirements.txt
pytest==3.3.0
pytest-cookies==0.3.0
pyaml==17.10.0
testinfra==1.10.1
tox==2.9.1
<|file_sep|>updated/requirements.txt
pytest==3.3.1
pytest-cookies==0.3.0
pyaml==17.10... | 3af028e06280e0e34fdfe20edb45852d001fe240 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/package.json
"scripts": {
"test": "grunt test -v"
},
"dependencies": {
"async": "^1.5.0",
"gaze": "^1.1.0",
"lodash": "^4.0.0",
"tiny-lr": "^0.2.1"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-internal": "^1.2.0",
"grunt-contrib-jshint": "^1.0.... | "scripts": {
"test": "grunt test -v"
},
"dependencies": {
"async": "^1.5.0",
"gaze": "^1.1.0",
"lodash": "^4.0.0",
"tiny-lr": "^0.2.1"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-internal": "^1.2.0",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-nodeunit": ... | <|file_sep|>original/package.json
"scripts": {
"test": "grunt test -v"
},
"dependencies": {
"async": "^1.5.0",
"gaze": "^1.1.0",
"lodash": "^4.0.0",
"tiny-lr": "^0.2.1"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-internal": "^1.2.0",
"grunt-contrib-jshint": "^1.0.... | ab6771e0975dc394997b86af0b9e9f4f4a1eedb5 | package.json | package.json | JSON |
<|file_sep|>original/README.md
----

GIF image recorded using [ScreenToGif](http://screentogif.codeplex.com/)
Configuration
-------------
Configuration is stored in `config/` directory as `app.php` for production
and `app_test.php` for unit ... | 
GIF image recorded using [ScreenToGif](http://screentogif.codeplex.com/)
Configuration
-------------
Configuration is stored in `config/` directory as `app.php` for production
and `app_test.php` for unit tests.
Deployment
----------
Requir... | <|file_sep|>original/README.md
----

GIF image recorded using [ScreenToGif](http://screentogif.codeplex.com/)
Configuration
-------------
Configuration is stored in `config/` directory as `app.php` for production
and `app_test.php` for unit ... | c41d6a262d2e0f4ce0968aae08a26dc6c2e598bb | README.md | README.md | Markdown |
<|file_sep|>original/requirements.txt
chewie==0.0.9
datadiff
eventlet==0.22.1 # pyup: ignore
influxdb
msgpack
msgpack-python
networkx
pbr>=1.9
prometheus_client<0.4.0
pyyaml
ryu==4.29
beka==0.3.3
pytricia
<|file_sep|>current/requirements.txt
chewie==0.0.9
datadiff
eventlet==0.22.1 # pyup: ignore
influxdb
msgpack
msgpac... | chewie==0.0.9
datadiff
eventlet==0.22.1 # pyup: ignore
influxdb
msgpack
msgpack-python
networkx
pbr>=1.9
prometheus_client<0.4.0
pyyaml
ryu==4.27
beka==0.3.3
pytricia | <|file_sep|>original/requirements.txt
chewie==0.0.9
datadiff
eventlet==0.22.1 # pyup: ignore
influxdb
msgpack
msgpack-python
networkx
pbr>=1.9
prometheus_client<0.4.0
pyyaml
ryu==4.29
beka==0.3.3
pytricia
<|file_sep|>current/requirements.txt
chewie==0.0.9
datadiff
eventlet==0.22.1 # pyup: ignore
influxdb
msgpack
msgpac... | 937ff193c799ee437cf9bb201e4d8894251d5cd7 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/requirements/docs.txt
# adbwp/requirements/docs.txt
#
# Requirements for generating package documentation.
-r base.txt
sphinx==1.6.4
sphinx_rtd_theme==0.1.9
<|file_sep|>current/requirements/docs.txt
# adbwp/requirements/docs.txt
#
# Requirements for generating package documentation.
-r base.txt
... | # adbwp/requirements/docs.txt
#
# Requirements for generating package documentation.
-r base.txt
sphinx==1.6.4
sphinx_rtd_theme==0.2.4 | <|file_sep|>original/requirements/docs.txt
# adbwp/requirements/docs.txt
#
# Requirements for generating package documentation.
-r base.txt
sphinx==1.6.4
sphinx_rtd_theme==0.1.9
<|file_sep|>current/requirements/docs.txt
# adbwp/requirements/docs.txt
#
# Requirements for generating package documentation.
-r base.txt
... | f872887ea833b6977e916603b6bcc8cdec0f9e40 | requirements/docs.txt | requirements/docs.txt | Text |
<|file_sep|>pkgs/build-support/fetchpatch/default.nix.diff
original:
{ stripLen ? 0, extraPrefix ? null, excludes ? [], ... }@args:
updated:
{ stripLen ? 0, extraPrefix ? null, excludes ? [], includes ? [], ... }@args:
<|file_sep|>pkgs/build-support/fetchpatch/default.nix.diff
original:
updated:
${builtins.toStr... | tmpfile="$TMPDIR/${args.sha256}"
"${patchutils}/bin/lsdiff" "$out" \
| sort -u | sed -e 's/[*?]/\\&/g' \
| xargs -I{} \
"${patchutils}/bin/filterdiff" \
--include={} \
--strip=${toString stripLen} \
${lib.optionalString (extraPrefix != null) ''
--addoldpref... | <|file_sep|>pkgs/build-support/fetchpatch/default.nix.diff
original:
{ stripLen ? 0, extraPrefix ? null, excludes ? [], ... }@args:
updated:
{ stripLen ? 0, extraPrefix ? null, excludes ? [], includes ? [], ... }@args:
<|file_sep|>pkgs/build-support/fetchpatch/default.nix.diff
original:
updated:
${builtins.toStr... | 57bb96d6593040dbc7088e4f8d7dc065ea492d14 | pkgs/build-support/fetchpatch/default.nix | pkgs/build-support/fetchpatch/default.nix | Nix |
<|file_sep|>original/index.rst
.. toctree::
:maxdepth: 3
:numbered:
intro.rst
Setting up <setup.rst>
Components and Libraries <components.rst>
development.rst
YAMLScripts.rst
playbooks.rst
license.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`sear... |
.. toctree::
:maxdepth: 3
:numbered:
intro.rst
Setting up <setup.rst>
Components and Libraries <components.rst>
development.rst
YAMLScripts.rst
JSONScripts.rst
playbooks.rst
license.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex` | <|file_sep|>original/index.rst
.. toctree::
:maxdepth: 3
:numbered:
intro.rst
Setting up <setup.rst>
Components and Libraries <components.rst>
development.rst
YAMLScripts.rst
playbooks.rst
license.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`sear... | 9f2b2c4d24d912b600bef01ffe73c48d678d5d95 | index.rst | index.rst | reStructuredText |
<|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly
before_script:
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/f7dccb1fad965fb3d2b2fa0f7ba0e1d4ef52cddb/config_si.php > config_si.php
- php -B "\$_REQUEST = array('goto' =... | language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly
before_script:
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/f7dccb1fad965fb3d2b2fa0f7ba0e1d4ef52cddb/config_si.php > config_si.php
- php -r "\$_SERVER['HTTP_HOST'] = 'localhost'; \$_SERVER['REQUEST_URI... | <|file_sep|>original/.travis.yml
language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly
before_script:
- curl -L https://gist.githubusercontent.com/JimMackin/c3db403bae59c2c9a27c/raw/f7dccb1fad965fb3d2b2fa0f7ba0e1d4ef52cddb/config_si.php > config_si.php
- php -B "\$_REQUEST = array('goto' =... | ba636d9ef5134397fc3227f2faf95959f4419282 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/requirements-testing.txt
codecov==2.0.15
pytest-django==3.4.3
pytest-cov==2.6.0
-r requirements.txt
<|file_sep|>current/requirements-testing.txt
codecov==2.0.15
pytest-django==3.4.3
pytest-cov==2.6.0
-r requirements.txt
<|file_sep|>updated/requirements-testing.txt | codecov==2.0.15
pytest-django==3.4.4
pytest-cov==2.6.0
-r requirements.txt | <|file_sep|>original/requirements-testing.txt
codecov==2.0.15
pytest-django==3.4.3
pytest-cov==2.6.0
-r requirements.txt
<|file_sep|>current/requirements-testing.txt
codecov==2.0.15
pytest-django==3.4.3
pytest-cov==2.6.0
-r requirements.txt
<|file_sep|>updated/requirements-testing.txt
codecov==2.0.15
pytest-django==3.4... | 75108d9783b5974439a16608734165f22e140b57 | requirements-testing.txt | requirements-testing.txt | Text |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
- 'iojs'
notifications:
slack:
secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk=
<|file_sep|>cur... | language: node_js
node_js:
- '0.12'
- '0.10'
- 'iojs'
notifications:
slack:
secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk= | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
- 'iojs'
notifications:
slack:
secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk=
<|file_sep|>cur... | 5c2e014c046aa0788037073125380e87b7aea171 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/layouts/_activity_wrapper.html.haml
.activity.clearfix
.avatar
- if a.owner
= image_tag a.owner.image, size: '60x60', class: 'img-circle'
.body
.title
- if a.owner
= link_to a.owner.name, a.owner
- else
someone
= content_for :action
... | .activity.clearfix
.avatar
- if a.owner
= image_tag a.owner.image, size: '60x60', class: 'img-circle'
.body
.title
- if a.owner
= link_to a.owner.name, a.owner
- else
someone
= content_for :action
.details
= yield
.timestamp
= timeago a.trackable.t... | <|file_sep|>original/app/views/layouts/_activity_wrapper.html.haml
.activity.clearfix
.avatar
- if a.owner
= image_tag a.owner.image, size: '60x60', class: 'img-circle'
.body
.title
- if a.owner
= link_to a.owner.name, a.owner
- else
someone
= content_for :action
... | 410ea8707536dd4b53814bfdb6fffde4206f2ba4 | app/views/layouts/_activity_wrapper.html.haml | app/views/layouts/_activity_wrapper.html.haml | Haml |
<|file_sep|>original/LICENSE.txt
<|file_sep|>current/LICENSE.txt
<|file_sep|>updated/LICENSE.txt | MIT License
Copyright (c) 2017 Jampp
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, publish, distribute,... | <|file_sep|>original/LICENSE.txt
<|file_sep|>current/LICENSE.txt
<|file_sep|>updated/LICENSE.txt
MIT License
Copyright (c) 2017 Jampp
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 res... | 99b41dafd0d8f1f880b123020f9ae23cb4b40227 | LICENSE.txt | LICENSE.txt | Text |
<|file_sep|>original/test/unit/image_test.rb
def test_titles
assert_equal "The%20world!.gif", images(:the_world).filename
assert_equal "The World!", images(:the_world).title
assert_equal "car-wallpapers19.jpg", images(:our_car).filename
assert_equal "Car Wallpapers19", images(:our_car).title
end
... |
def test_titles
assert_equal "The%20world!.gif", images(:the_world).filename
assert_equal "The World!", images(:the_world).title
assert_equal "car-wallpapers19.jpg", images(:our_car).filename
assert_equal "Car Wallpapers19", images(:our_car).title
end
def test_per_page
assert_equal 12, Imag... | <|file_sep|>original/test/unit/image_test.rb
def test_titles
assert_equal "The%20world!.gif", images(:the_world).filename
assert_equal "The World!", images(:the_world).title
assert_equal "car-wallpapers19.jpg", images(:our_car).filename
assert_equal "Car Wallpapers19", images(:our_car).title
end
... | b8cc78ff0b112ff38e01b5e25923fcfb1c323b6b | test/unit/image_test.rb | test/unit/image_test.rb | Ruby |
<|file_sep|>original/contrib/00README.txt
<|file_sep|>current/contrib/00README.txt
<|file_sep|>updated/contrib/00README.txt |
This directory holds ivykis example programs and contributed ivykis
modules.
kojines/
Application that accepts connections forwarded to it by the
iptables REDIRECT target, and forwards them to a remote SOCKS5
proxy, using the original destination address of the REDIRECTed
connection as the destination address in... | <|file_sep|>original/contrib/00README.txt
<|file_sep|>current/contrib/00README.txt
<|file_sep|>updated/contrib/00README.txt
This directory holds ivykis example programs and contributed ivykis
modules.
kojines/
Application that accepts connections forwarded to it by the
iptables REDIRECT target, and forwards them... | 50ae558a372d39b6a6d7599f01412782a801fdbc | contrib/00README.txt | contrib/00README.txt | Text |
<|file_sep|>src/main/java/software/committed/rejux/utils/MiddlewareUtils.java.diff
original:
updated:
import java.util.function.Supplier;
<|file_sep|>src/main/java/software/committed/rejux/utils/MiddlewareUtils.java.diff
original:
import software.committed.rejux.interfaces.State;
updated:
<|file_sep|>src/main/java/so... | }
public static <S> Dispatcher createChain(final Dispatcher firstDispatcher,
final Supplier<S> store, final List<Middleware<? super S>> middlewares,
final Dispatcher lastDispatcher) {
Dispatcher dispatcher = lastDispatcher;
if (middlewares != null && !middlewares.isEmpty()) {
for (int i ... | <|file_sep|>src/main/java/software/committed/rejux/utils/MiddlewareUtils.java.diff
original:
updated:
import java.util.function.Supplier;
<|file_sep|>src/main/java/software/committed/rejux/utils/MiddlewareUtils.java.diff
original:
import software.committed.rejux.interfaces.State;
updated:
<|file_sep|>src/main/java/so... | 921eb96423fe3365ca2c0b8a7c0878f30367bd9e | src/main/java/software/committed/rejux/utils/MiddlewareUtils.java | src/main/java/software/committed/rejux/utils/MiddlewareUtils.java | Java |
<|file_sep|>index.js.diff
original:
_ = require('underscore');
updated:
underscore = require('underscore');
<|file_sep|>index.js.diff
original:
module.exports.configure = function(options) {
updated:
module.exports.configure = function (options) {
<|file_sep|>original/index.js
var config = require('./config'),
_ = r... | var config = require('./config'),
underscore = require('underscore');
module.exports = require('./lib/api').Api.buildFromFile(config);
module.exports.configure = function (options) {
options = options || {};
underscore.defaults(options, config);
return require('./lib/api').Api.buildFromFile(options);
};
module... | <|file_sep|>index.js.diff
original:
_ = require('underscore');
updated:
underscore = require('underscore');
<|file_sep|>index.js.diff
original:
module.exports.configure = function(options) {
updated:
module.exports.configure = function (options) {
<|file_sep|>original/index.js
var config = require('./config'),
_ = r... | d27bcc3e5cfa824dabbb4f16bf9dcee17764ff77 | index.js | index.js | JavaScript |
<|file_sep|>original/business.gemspec
require "business/version"
Gem::Specification.new do |spec|
spec.name = "business"
spec.version = Business::VERSION
spec.authors = ["Harry Marr"]
spec.email = ["developers@gocardless.com"]
spec.summary = "Date calculations based on busi... | require "business/version"
Gem::Specification.new do |spec|
spec.name = "business"
spec.version = Business::VERSION
spec.authors = ["Harry Marr"]
spec.email = ["developers@gocardless.com"]
spec.summary = "Date calculations based on business calendars"
spec.description =... | <|file_sep|>original/business.gemspec
require "business/version"
Gem::Specification.new do |spec|
spec.name = "business"
spec.version = Business::VERSION
spec.authors = ["Harry Marr"]
spec.email = ["developers@gocardless.com"]
spec.summary = "Date calculations based on busi... | 7bd38ab6ec5a61541f2adb94d6f2230f90b39b7a | business.gemspec | business.gemspec | Ruby |
<|file_sep|>.travis.yml.diff
original:
- curl https://ready-steady.github.io/travis/install_gfortran.sh | bash
updated:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CGO_LDFLAGS="-L$(dirname $(find $(brew --prefix) -name libgfortran.dylib | grep -v i386))";
echo $CGO_LDFLAGS;
fi
<|file_sep|>.trav... | before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CGO_LDFLAGS="-L$(dirname $(find $(brew --prefix) -name libgfortran.dylib | grep -v i386))";
echo $CGO_LDFLAGS;
fi
install:
- echo $CGO_LDFLAGS
- go get -d -t ./...
- make install
script:
- echo $CGO_LDFLAGS
- go test -v
noti... | <|file_sep|>.travis.yml.diff
original:
- curl https://ready-steady.github.io/travis/install_gfortran.sh | bash
updated:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CGO_LDFLAGS="-L$(dirname $(find $(brew --prefix) -name libgfortran.dylib | grep -v i386))";
echo $CGO_LDFLAGS;
fi
<|file_sep|>.trav... | 50d39de1d9fcd70947f9f1c5258f47aa5c9e8b59 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/drone-io.sh
<|file_sep|>current/drone-io.sh
<|file_sep|>updated/drone-io.sh | #!/bin/sh
set -x
export ANDROID_SDK_TOOLS_VERSION=24.3.4
PATH=$(echo $PATH | sed 's/\/opt\/android-sdk-linux//')
export ANDROID_HOME=$PWD/android-sdk-linux
wget https://dl.google.com/android/android-sdk_r$ANDROID_SDK_TOOLS_VERSION-linux.tgz -nv
tar xzf android-sdk_r$ANDROID_SDK_TOOLS_VERSION-linux.tgz
export PATH... | <|file_sep|>original/drone-io.sh
<|file_sep|>current/drone-io.sh
<|file_sep|>updated/drone-io.sh
#!/bin/sh
set -x
export ANDROID_SDK_TOOLS_VERSION=24.3.4
PATH=$(echo $PATH | sed 's/\/opt\/android-sdk-linux//')
export ANDROID_HOME=$PWD/android-sdk-linux
wget https://dl.google.com/android/android-sdk_r$ANDROID_SDK... | 2a98af285b7c0fe478f1cb558eba38a1e1ace47f | drone-io.sh | drone-io.sh | Shell |
<|file_sep|>original/src/compare_meta_data.py
<|file_sep|>current/src/compare_meta_data.py
<|file_sep|>updated/src/compare_meta_data.py | import argparse
import json
import re
from os.path import join
file_regex = re.compile("(^[a-z\-]*)")
results_log = "query_results.json"
def extract_arXiv_topic(filename):
return_topic = ""
matches = file_regex.match(filename).groups()
if len(matches) > 0:
return_topic = matches[0]
return r... | <|file_sep|>original/src/compare_meta_data.py
<|file_sep|>current/src/compare_meta_data.py
<|file_sep|>updated/src/compare_meta_data.py
import argparse
import json
import re
from os.path import join
file_regex = re.compile("(^[a-z\-]*)")
results_log = "query_results.json"
def extract_arXiv_topic(filename):
r... | d6b11eec630d3709d69e3b3878a7859b67cb0fd4 | src/compare_meta_data.py | src/compare_meta_data.py | Python |
<|file_sep|>original/README.md
```
var services = zosconnect.getServices();
```
#### Get a service
```
var service = zosconnect.getService('serviceName');
```
### Invoke a service
```
var service = zosconnect.getService('serviceName');
service.invoke({action: 'PUT', JSON.stringify({firstName:'Joe',lastName:'Bloggs'... | ```
var services = zosconnect.getServices();
```
#### Get a service
```
var service = zosconnect.getService('serviceName');
```
#### Invoke a service
```
var service = zosconnect.getService('serviceName');
service.invoke({action: 'PUT', JSON.stringify({firstName:'Joe',lastName:'Bloggs'}), function(data, err){
... | <|file_sep|>original/README.md
```
var services = zosconnect.getServices();
```
#### Get a service
```
var service = zosconnect.getService('serviceName');
```
### Invoke a service
```
var service = zosconnect.getService('serviceName');
service.invoke({action: 'PUT', JSON.stringify({firstName:'Joe',lastName:'Bloggs'... | cdf65b628cf49fbeb6a087d60d1c3cbcb1e6222a | README.md | README.md | Markdown |
<|file_sep|>resultapp/resultapp/templates/results.html.diff
original:
{% block navbar %}
{{ super() }}
<form class="form-inline" action="{{ url_for('show_results',compID=comp.ID,seasonID=season.ID) }}" method=post>
<select id="comp-matchday" name="roundID">
{% for round in rounds %}
<option valu... | {% extends 'competition.html' %}
{% block title %}
{{ super() }}: Results (Round {{ roundnum }})
{% endblock title %}
{% block minibar %}
<ul id="table-nav" class="nav nav-pills">
<li class="active">
<a href="{{ url_for('show_results',compID=comp.ID,seasonID=season.ID) }}">Results</a>
</li>
<li>
... | <|file_sep|>resultapp/resultapp/templates/results.html.diff
original:
{% block navbar %}
{{ super() }}
<form class="form-inline" action="{{ url_for('show_results',compID=comp.ID,seasonID=season.ID) }}" method=post>
<select id="comp-matchday" name="roundID">
{% for round in rounds %}
<option valu... | 26f3a5ebf6c09974a78ae228cf6c87aef3c612dc | resultapp/resultapp/templates/results.html | resultapp/resultapp/templates/results.html | HTML |
<|file_sep|>server/src/test/resources/logback-test.xml.diff
original:
<logger name="org.eclipse.hono.TelemetryDataReadStream" level="INFO"/>
updated:
<|file_sep|>server/src/test/resources/logback-test.xml.diff
original:
<logger name="org.eclipse.hono.impl.ProtonSenderWriteStream" level="INFO"/>
<logger name="org... | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
<logger name="org.apache.activemq" level="INFO"/>
<logger name="org.apache.activemq.transport.amqp" level="INFO"/>
<logger name="org.e... | <|file_sep|>server/src/test/resources/logback-test.xml.diff
original:
<logger name="org.eclipse.hono.TelemetryDataReadStream" level="INFO"/>
updated:
<|file_sep|>server/src/test/resources/logback-test.xml.diff
original:
<logger name="org.eclipse.hono.impl.ProtonSenderWriteStream" level="INFO"/>
<logger name="org... | a2a71f28af813334abe567eb5fd5e21248a97476 | server/src/test/resources/logback-test.xml | server/src/test/resources/logback-test.xml | XML |
<|file_sep|>spec/rspec/rails/rails_version_spec.rb.diff
original:
before do
updated:
def clear_memoized_version
<|file_sep|>original/spec/rspec/rails/rails_version_spec.rb
require "spec_helper"
describe RSpec::Rails, "version" do
before do
if RSpec::Rails.instance_variable_defined?(:@rails_version)
RSp... | require "spec_helper"
describe RSpec::Rails, "version" do
def clear_memoized_version
if RSpec::Rails.instance_variable_defined?(:@rails_version)
RSpec::Rails.send(:remove_instance_variable, :@rails_version)
end
end
before { clear_memoized_version }
after { clear_memoized_version }
describe "... | <|file_sep|>spec/rspec/rails/rails_version_spec.rb.diff
original:
before do
updated:
def clear_memoized_version
<|file_sep|>original/spec/rspec/rails/rails_version_spec.rb
require "spec_helper"
describe RSpec::Rails, "version" do
before do
if RSpec::Rails.instance_variable_defined?(:@rails_version)
RSp... | ec8a08203746d8ba2df5a6f78cb563dbffcf73a7 | spec/rspec/rails/rails_version_spec.rb | spec/rspec/rails/rails_version_spec.rb | Ruby |
<|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==2.0.1
PyYAML==3.12
pytest==3.1.3
numpy==1.13.1
scipy==0.19.1
scikit-learn==0.18.2
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.... | pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==2.0.2
PyYAML==3.12
pytest==3.1.3
numpy==1.13.1
scipy==0.19.1
scikit-learn==0.18.2 | <|file_sep|>original/requirements_dev.txt
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
Sphinx==1.6.3
cryptography==2.0.1
PyYAML==3.12
pytest==3.1.3
numpy==1.13.1
scipy==0.19.1
scikit-learn==0.18.2
<|file_sep|>current/requirements_dev.txt
pip==9.0.1
bumpversion==0.... | a8e10a627867dcdc1b2ba3c45c576852abb71502 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/setup/python/venvs.txt
ocrmypdf
pandas-cookbook -p python2 -a "$PROJECT_HOME"/pandas-cookbook
pgcli
prompt_toolkit
ptpython
pymux
pyvim
ranger
raven # python client for sentry
sanic
scientific-python --system-site-packages -r "./python/requirements_scientific-python.txt"
scrapy
sendgrid
speedtest-c... | ocrmypdf
pandas-cookbook -p python2 -a "$PROJECT_HOME"/pandas-cookbook
pgcli
prompt_toolkit
ptpython
pymux
pyvim
ranger
raven # python client for sentry
sanic
scientific-python --system-site-packages -r "$PROJECT_HOME"/dotfiles/setup/python/requirements_scientific-python.txt
scrapy
sendgrid
speedtest-cli
retext --syste... | <|file_sep|>original/setup/python/venvs.txt
ocrmypdf
pandas-cookbook -p python2 -a "$PROJECT_HOME"/pandas-cookbook
pgcli
prompt_toolkit
ptpython
pymux
pyvim
ranger
raven # python client for sentry
sanic
scientific-python --system-site-packages -r "./python/requirements_scientific-python.txt"
scrapy
sendgrid
speedtest-c... | 1622a4c7459654cbf985a9d84f85fc7de6c9aa2b | setup/python/venvs.txt | setup/python/venvs.txt | Text |
<|file_sep|>original/src/scripts/modules/header/header-template.html
<div class="page-header">
<a href="/">
<div class="logo"></div>
</a>
<div class="links">
<div class="login">
<ul>
<li><a href="http://cnx.org/join_form">Sign Up</a></li>
<li><a href="http://cnx.org/login_form">Login... | <div class="page-header">
<a href="/">
<div class="logo"></div>
</a>
<div class="links">
<div class="login">
<ul>
<li><a href="http://cnx.org/join_form">Sign Up</a></li>
<li><a href="/login">Login</a></li>
{{#if url}}
<li><a href="{{url}}" title="Switch to the CNX l... | <|file_sep|>original/src/scripts/modules/header/header-template.html
<div class="page-header">
<a href="/">
<div class="logo"></div>
</a>
<div class="links">
<div class="login">
<ul>
<li><a href="http://cnx.org/join_form">Sign Up</a></li>
<li><a href="http://cnx.org/login_form">Login... | 39bfde18c52a7aa2d7d370e3aa94e3f945e8b3ce | src/scripts/modules/header/header-template.html | src/scripts/modules/header/header-template.html | HTML |
<|file_sep|>original/Server/encryptedServer.py
<|file_sep|>current/Server/encryptedServer.py
<|file_sep|>updated/Server/encryptedServer.py | __author__ = 'masudurrahman'
import sys
from twisted.protocols import ftp
from twisted.protocols.ftp import FTPFactory, FTPAnonymousShell, FTPRealm, FTP, FTPShell, IFTPShell
from twisted.cred.portal import Portal
from twisted.cred import checkers
from twisted.cred.checkers import AllowAnonymousAccess, FilePasswordDB
f... | <|file_sep|>original/Server/encryptedServer.py
<|file_sep|>current/Server/encryptedServer.py
<|file_sep|>updated/Server/encryptedServer.py
__author__ = 'masudurrahman'
import sys
from twisted.protocols import ftp
from twisted.protocols.ftp import FTPFactory, FTPAnonymousShell, FTPRealm, FTP, FTPShell, IFTPShell
from... | 6bd6203813bc4ca377baed842d7934a50f86f37e | Server/encryptedServer.py | Server/encryptedServer.py | Python |
<|file_sep|>original/opps/core/__init__.py
'tagging',)
settings.MIDDLEWARE_CLASSES += (
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',)
# Opps
getattr(settings, 'OPPS_SHORT', 'googl')
getattr(settings, 'OPPS_SHORT_URL', 'googl.short.GooglUrlShort')
# Sitemap
if not hasattr(settings, 'STATI... | 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',)
# Opps
getattr(settings, 'OPPS_SHORT', 'googl')
getattr(settings, 'OPPS_SHORT_URL', 'googl.short.GooglUrlShort')
# Sitemap
if not hasattr(settings, 'STATICSITEMAPS_ROOT_SITEMAP'):
settings.STATICSITEMAPS_ROOT_SITEMAP = 'opps.sitemaps.feed.site... | <|file_sep|>original/opps/core/__init__.py
'tagging',)
settings.MIDDLEWARE_CLASSES += (
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',)
# Opps
getattr(settings, 'OPPS_SHORT', 'googl')
getattr(settings, 'OPPS_SHORT_URL', 'googl.short.GooglUrlShort')
# Sitemap
if not hasattr(settings, 'STATI... | 59066fc1def071aa51a87a6393c8bdf34f081188 | opps/core/__init__.py | opps/core/__init__.py | Python |
<|file_sep|>original/UWPHook/Resources/KnownApps.json
{
"Microsoft.SeaofThieves": "Sea of Thieves",
"Microsoft.DeltaPC": "Gears of War: Ultimate Edition",
"MotionTwin.DeadCellsWin10": "Dead Cells",
"SystemEraSoftworks.29415440E1269_ftk5pbg2rayv2!ASTRONEER": "ASTRONEER",
"T Tablet": "Taiko no Tatsujin: The Dru... | {
"Microsoft.SeaofThieves": "Sea of Thieves",
"Microsoft.DeltaPC": "Gears of War: Ultimate Edition",
"MotionTwin.DeadCellsWin10": "Dead Cells",
"SystemEraSoftworks.29415440E1269": "ASTRONEER",
"NAMCOBANDAIGamesInc.TTablet": "Taiko no Tatsujin: The Drum Master!"
} | <|file_sep|>original/UWPHook/Resources/KnownApps.json
{
"Microsoft.SeaofThieves": "Sea of Thieves",
"Microsoft.DeltaPC": "Gears of War: Ultimate Edition",
"MotionTwin.DeadCellsWin10": "Dead Cells",
"SystemEraSoftworks.29415440E1269_ftk5pbg2rayv2!ASTRONEER": "ASTRONEER",
"T Tablet": "Taiko no Tatsujin: The Dru... | 15e0911930a59532e4818663aeac650f2e187b1f | UWPHook/Resources/KnownApps.json | UWPHook/Resources/KnownApps.json | JSON |
<|file_sep|>original/Structures/MaxFlow.cpp
<|file_sep|>current/Structures/MaxFlow.cpp
<|file_sep|>updated/Structures/MaxFlow.cpp | #include <bits/stdc++.h>
using namespace std;
#define V 6
bool bfs(int rGraph[V][V], int s, int t, int parent[]){
bool visited[V];
memset(visited, 0, sizeof(visited));
queue <int> q;
q.push(s);
visited[s] = true;
parent[s] = -1;
while (!q.empty()){
int u = q.front();
q.pop();
for (int v=0; v<V; v++){
if... | <|file_sep|>original/Structures/MaxFlow.cpp
<|file_sep|>current/Structures/MaxFlow.cpp
<|file_sep|>updated/Structures/MaxFlow.cpp
#include <bits/stdc++.h>
using namespace std;
#define V 6
bool bfs(int rGraph[V][V], int s, int t, int parent[]){
bool visited[V];
memset(visited, 0, sizeof(visited));
queue <int> q;
q... | c28512db9bc024e4c47b6ae5177f9637d60be917 | Structures/MaxFlow.cpp | Structures/MaxFlow.cpp | C++ |
<|file_sep|>original/src/android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.plugin.gcm.CordovaPushPlugin" android:versionName="1.0" android:versionCode="1">
</manifest>
<|file_sep|>current/src/android/AndroidManifest... | <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.plugin.gcm.CordovaPushPlugin" android:versionName="1.0" android:versionCode="1">
<uses-sdk android:minSdkVersion="13" />
</manifest> | <|file_sep|>original/src/android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.plugin.gcm.CordovaPushPlugin" android:versionName="1.0" android:versionCode="1">
</manifest>
<|file_sep|>current/src/android/AndroidManifest... | 24e7255afe9a025b2a4f2233e6f6286d3336c560 | src/android/AndroidManifest.xml | src/android/AndroidManifest.xml | XML |
<|file_sep|>original/config/jobs/kubernetes/sig-gcp/sig-gcp-windows.yaml
periodics:
- name: ci-kubernetes-e2e-windows-gce-poc
decorate: true
extra_refs:
- org: pjh
repo: kubernetes
base_ref: windows-up
path_alias: k8s.io/kubernetes
interval: 1h
labels:
preset-k8s-ssh: "true"
preset-service... | periodics:
- name: ci-kubernetes-e2e-windows-gce-poc
decorate: true
extra_refs:
- org: pjh
repo: kubernetes
base_ref: windows-up
path_alias: k8s.io/kubernetes
- org: kubernetes
repo: release
base_ref: master
path_alias: k8s.io/release
interval: 1h
labels:
preset-k8s-ssh: "true"
... | <|file_sep|>original/config/jobs/kubernetes/sig-gcp/sig-gcp-windows.yaml
periodics:
- name: ci-kubernetes-e2e-windows-gce-poc
decorate: true
extra_refs:
- org: pjh
repo: kubernetes
base_ref: windows-up
path_alias: k8s.io/kubernetes
interval: 1h
labels:
preset-k8s-ssh: "true"
preset-service... | 81fba72b13e630c877308698c476e570d1912961 | config/jobs/kubernetes/sig-gcp/sig-gcp-windows.yaml | config/jobs/kubernetes/sig-gcp/sig-gcp-windows.yaml | YAML |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "8" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "8" | 49e014bb76389589a8812dd4ccd481d5ca71a31b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/Contributing.md
Contributing to CodeIgniter Ion Auth.
===================================
First of all thanks for your interest. But contributing to this repo has some requirements.
Those requirements are listed below.
### Issue tracker.
The issue tracker is the preferred channel for bug reports,... |
First of all thanks for your interest. But contributing to this repo has some requirements.
Those requirements are listed below.
### Issue tracker.
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests, but please respect the following restrictions:
- Please do no... | <|file_sep|>original/Contributing.md
Contributing to CodeIgniter Ion Auth.
===================================
First of all thanks for your interest. But contributing to this repo has some requirements.
Those requirements are listed below.
### Issue tracker.
The issue tracker is the preferred channel for bug reports,... | 78804ce0354a0278d8657d9ff1f70340ba706a31 | Contributing.md | Contributing.md | Markdown |
<|file_sep|>original/app/services/manage_action.rb
class ManageAction
def initialize(params)
@params = params
end
def create
Action.find_or_create_by( action_user: action_user, page: page ) do |action|
action.form_data = @params
end
end
private
def previous_action
Action.where(actio... | class ManageAction
def initialize(params)
@params = params
end
def create
Action.find_or_create_by( action_user: action_user, page: page ) do |action|
queue_message = {type: 'action', params: {slug: page.slug, email: action_user.email}.merge(@params)}
ChampaignQueue.push(queue_message)
... | <|file_sep|>original/app/services/manage_action.rb
class ManageAction
def initialize(params)
@params = params
end
def create
Action.find_or_create_by( action_user: action_user, page: page ) do |action|
action.form_data = @params
end
end
private
def previous_action
Action.where(actio... | aaa6567e9ae53e99370dc7188d2ecaaeb01e35c9 | app/services/manage_action.rb | app/services/manage_action.rb | Ruby |
<|file_sep|>original/app/views/patron_statuses/index.html.erb
<h1>Listing patron statuses</h1>
<%= form_tag patron_statuses_path, :class => "form-inline clearfix", :method => :get do %>
<%= hidden_field_tag :direction, params[:direction] %>
<%= hidden_field_tag :sort, params[:sort] %>
<div class="input-append pu... | <h1>Listing patron statuses</h1>
<%= form_tag patron_statuses_path, :class => "form-inline clearfix", :method => :get do %>
<%= hidden_field_tag :direction, params[:direction] %>
<%= hidden_field_tag :sort, params[:sort] %>
<p>
<label for="q" class="sr-only">Search...</label>
<input class="search_q q for... | <|file_sep|>original/app/views/patron_statuses/index.html.erb
<h1>Listing patron statuses</h1>
<%= form_tag patron_statuses_path, :class => "form-inline clearfix", :method => :get do %>
<%= hidden_field_tag :direction, params[:direction] %>
<%= hidden_field_tag :sort, params[:sort] %>
<div class="input-append pu... | 07a5fe8b60a4e0aec717ed2a7c4d31b484daecf4 | app/views/patron_statuses/index.html.erb | app/views/patron_statuses/index.html.erb | HTML+ERB |
<|file_sep|>original/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md
<|file_sep|>current/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md
<|file_sep|>updated/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md | ---
layout: post
title: The Surpring Behaviour Of `set -e` In Shell Functions
---
Today I just learned something about shell/bash that I never knew before which caused me quite a bit of confusion.
If you have `set -e` on in a bash/shell script, as you probably know the shell will exit if any line has a non-zero exit ... | <|file_sep|>original/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md
<|file_sep|>current/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md
<|file_sep|>updated/_posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md
---
layout: post
title: The Surprin... | e4c3f510b858dc4e081811b90ac28dc1d747db23 | _posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md | _posts/2021-03-08-the-surprising-behaviour-of-set-e-in-shell-functions.md | Markdown |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "4"
- "6"
services:
- mongodb
sudo: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "4"
- "6"
services:
- mongodb
sudo: false
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "4"
- "6"
- "8"
services:
- mongodb
sudo: false | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "4"
- "6"
services:
- mongodb
sudo: false
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "4"
- "6"
services:
- mongodb
sudo: false
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "4"
- "6"
- "8"
services:
- mong... | 942ef14af5bb8776abc7d643b018f6222cc9a5ef | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# Mistype
> A simple CSS prototyping framework
Mistype is a set of styles that helps you to design a new site. It's a simple
CSS prototyping framework.
## Download
- [**ZIP package**](https://github.com/ZDroid/sanitize.css/archive/master.zip)
- **Bower:** `bower install mistype`
## C... | # Mistype
> A simple CSS prototyping framework
Mistype is a set of styles that helps you to design a new site. It's a simple
CSS prototyping framework, put in a 2.6 kB file.
## Download
- [**ZIP package**](https://github.com/ZDroid/sanitize.css/archive/master.zip)
- **Bower:** `bower install mistype`
## Components... | <|file_sep|>original/README.md
# Mistype
> A simple CSS prototyping framework
Mistype is a set of styles that helps you to design a new site. It's a simple
CSS prototyping framework.
## Download
- [**ZIP package**](https://github.com/ZDroid/sanitize.css/archive/master.zip)
- **Bower:** `bower install mistype`
## C... | 1715c706f9561332e25400b52300e03a8ab32f9e | README.md | README.md | Markdown |
<|file_sep|>pubspec.yaml.diff
original:
version: 0.9.0
updated:
version: 0.9.1
<|file_sep|>original/pubspec.yaml
name: watcher
version: 0.9.0
author: "Dart Team <misc@dartlang.org>"
homepage: http://www.dartlang.org
description: >
A file watcher. It monitors (currently by polling) for changes to contents
of directo... | name: watcher
version: 0.9.1
author: "Dart Team <misc@dartlang.org>"
homepage: http://www.dartlang.org
description: >
A file watcher. It monitors (currently by polling) for changes to contents
of directories and notifies you when files have been added, removed, or
modified.
dependencies:
crypto: ">=0.9.0 <0.10.... | <|file_sep|>pubspec.yaml.diff
original:
version: 0.9.0
updated:
version: 0.9.1
<|file_sep|>original/pubspec.yaml
name: watcher
version: 0.9.0
author: "Dart Team <misc@dartlang.org>"
homepage: http://www.dartlang.org
description: >
A file watcher. It monitors (currently by polling) for changes to contents
of directo... | 336f4ab3acb204f49f170d25164838e5b24ec3c2 | pubspec.yaml | pubspec.yaml | YAML |
<|file_sep|>original/nbgrader/tests/apps/test_nbgrader.py
"""Is the config file properly generated?"""
# it already exists, because we create it in conftest.py
os.remove("nbgrader_config.py")
# try recreating it
run_nbgrader(["--generate-config"])
assert os.path.isfile(... | """Is the config file properly generated?"""
# it already exists, because we create it in conftest.py
os.remove("nbgrader_config.py")
# try recreating it
run_nbgrader(["--generate-config"])
assert os.path.isfile("nbgrader_config.py")
# does it fail if it alread... | <|file_sep|>original/nbgrader/tests/apps/test_nbgrader.py
"""Is the config file properly generated?"""
# it already exists, because we create it in conftest.py
os.remove("nbgrader_config.py")
# try recreating it
run_nbgrader(["--generate-config"])
assert os.path.isfile(... | 5a39d00cf39e80a4e9f1ca8bbf0eac767d39f61d | nbgrader/tests/apps/test_nbgrader.py | nbgrader/tests/apps/test_nbgrader.py | Python |
<|file_sep|>original/reg/compat.py
PY3 = sys.version_info[0] == 3
if PY3:
string_types = (str,)
else: # pragma: no cover
string_types = (basestring,) # noqa
if PY3:
def create_method_for_class(callable, type):
return MethodType(callable, type)
def create_method_for_instance(callable, obj)... | PY3 = sys.version_info[0] == 3
if PY3:
string_types = (str,)
else: # pragma: no cover
string_types = (basestring,) # noqa
if PY3:
def create_method_for_class(callable, type):
return MethodType(callable, type)
def create_method_for_instance(callable, obj):
return MethodType(callabl... | <|file_sep|>original/reg/compat.py
PY3 = sys.version_info[0] == 3
if PY3:
string_types = (str,)
else: # pragma: no cover
string_types = (basestring,) # noqa
if PY3:
def create_method_for_class(callable, type):
return MethodType(callable, type)
def create_method_for_instance(callable, obj)... | 05e651b0e606f216a78c61ccfb441ce7ed41d852 | reg/compat.py | reg/compat.py | Python |
<|file_sep|>src/Pingpong/Modules/Commands/ListCommand.php.diff
original:
updated:
use Symfony\Component\Console\Input\InputOption;
<|file_sep|>src/Pingpong/Modules/Commands/ListCommand.php.diff
original:
$this->table(['Name', 'Status', 'Priority', 'Path'], $this->getRows());
updated:
$this->table(['Nam... | $module->getStudlyName(),
$module->enabled() ? 'Enabled' : 'Disabled',
$module->get('order'),
$module->getPath(),
];
}
return $rows;
}
public function getModules()
{
switch ($this->option('only')) {
... | <|file_sep|>src/Pingpong/Modules/Commands/ListCommand.php.diff
original:
updated:
use Symfony\Component\Console\Input\InputOption;
<|file_sep|>src/Pingpong/Modules/Commands/ListCommand.php.diff
original:
$this->table(['Name', 'Status', 'Priority', 'Path'], $this->getRows());
updated:
$this->table(['Nam... | 4f90d4e8b443bfe110d5672e5474b196dfd540d2 | src/Pingpong/Modules/Commands/ListCommand.php | src/Pingpong/Modules/Commands/ListCommand.php | PHP |
<|file_sep|>original/modeling/main.tf
<|file_sep|>current/modeling/main.tf
<|file_sep|>updated/modeling/main.tf | # Configure the AWS Provider
provider "aws" {
region = "us-east-2"
}
# Create a web server
resource "aws_spot_instance_request" "gpu" {
ami = "ami-4c614629" # Deep learning AMI on what-is-my-fish AWS account
instance_type = "p2.xlarge"
spot_price = "0.20"
iam_instance_profile = "Modeler"
subnet_id = "sub... | <|file_sep|>original/modeling/main.tf
<|file_sep|>current/modeling/main.tf
<|file_sep|>updated/modeling/main.tf
# Configure the AWS Provider
provider "aws" {
region = "us-east-2"
}
# Create a web server
resource "aws_spot_instance_request" "gpu" {
ami = "ami-4c614629" # Deep learning AMI on what-is-my-fish AW... | 0641c6492ed77bb8469aacd6f51ebd33d12866e4 | modeling/main.tf | modeling/main.tf | HCL |
<|file_sep|>original/tensorflow/examples/README.md
# TensorFlow C++ Examples
This directory contains examples of the TensorFlow C++ API (and some redirects).
If that's not what you're looking for here are some links:
* For TensorFlow python examples see
[the tutorials on tensorflow.org](https://tensorflow.org/tutor... | # TensorFlow C++ Examples
This directory contains examples of the TensorFlow C++ API (and some redirects).
If that's not what you're looking for here are some links:
* For TensorFlow python examples see
[the tutorials on tensorflow.org](https://tensorflow.org/tutorials)
* For community maintained keras examples got... | <|file_sep|>original/tensorflow/examples/README.md
# TensorFlow C++ Examples
This directory contains examples of the TensorFlow C++ API (and some redirects).
If that's not what you're looking for here are some links:
* For TensorFlow python examples see
[the tutorials on tensorflow.org](https://tensorflow.org/tutor... | 0abef65d5de9420852cd10ef6989b74726a8e63d | tensorflow/examples/README.md | tensorflow/examples/README.md | Markdown |
<|file_sep|>original/javascript/atoms/README.md
<|file_sep|>current/javascript/atoms/README.md
<|file_sep|>updated/javascript/atoms/README.md | # Javascript Atoms
These "atoms" provide reusable building blocks for browser automation
(which is why we call them "atoms"!) They're currently built with the
Google Closure Compiler, but at some point, we'd love to migrate them
to TypeScript since Closure isn't as widely known.
## Testing the Atoms
### Iteratively
... | <|file_sep|>original/javascript/atoms/README.md
<|file_sep|>current/javascript/atoms/README.md
<|file_sep|>updated/javascript/atoms/README.md
# Javascript Atoms
These "atoms" provide reusable building blocks for browser automation
(which is why we call them "atoms"!) They're currently built with the
Google Closure C... | 4829bfcaa95b85bda4837ff9008e647cfa8601b0 | javascript/atoms/README.md | javascript/atoms/README.md | Markdown |
<|file_sep|>original/README.md
# Medium volcano
Medium volcano is a browser extension which calculates weighted average at VULCAN log.
## Installation
- [Mozilla Firefox](https://addons.mozilla.org/pl/firefox/addon/medium-volcano/)
## Usage
Log in to your VULCAN account, navigate to `Uczeń` → `Oceny`.
In url bar s... | # Medium volcano
Medium volcano is a browser extension which calculates weighted average at VULCAN log.
## Installation
- [Mozilla Firefox](https://addons.mozilla.org/pl/firefox/addon/medium-volcano/)
- [Opera](https://addons.opera.com/pl/extensions/details/medium-volcano/)
## Usage
Log in to your VULCAN account, ... | <|file_sep|>original/README.md
# Medium volcano
Medium volcano is a browser extension which calculates weighted average at VULCAN log.
## Installation
- [Mozilla Firefox](https://addons.mozilla.org/pl/firefox/addon/medium-volcano/)
## Usage
Log in to your VULCAN account, navigate to `Uczeń` → `Oceny`.
In url bar s... | fc25f5900f20f40b5da71e20cdc6a0583ca57f31 | README.md | README.md | Markdown |
<|file_sep|>app/assets/styles/_react-select.scss.diff
original:
.Select .Select-control {
updated:
// Increase specificity with class name repetition
.Select.Select .Select-control {
<|file_sep|>original/app/assets/styles/_react-select.scss
.Select-clear {
font-size: 30px;
color: #000000;
}
.Select-place... | }
.Select-clear {
font-size: 30px;
color: #000000;
}
.Select-placeholder {
color: $dark-gray;
}
}
.has-value.has-value.Select--single
> .Select-control
.Select-value
.Select-value-label {
color: $black;
}
.Select {
&.is-focused:not(.is-open) > .Select-control {
border-color: $inpu... | <|file_sep|>app/assets/styles/_react-select.scss.diff
original:
.Select .Select-control {
updated:
// Increase specificity with class name repetition
.Select.Select .Select-control {
<|file_sep|>original/app/assets/styles/_react-select.scss
.Select-clear {
font-size: 30px;
color: #000000;
}
.Select-place... | ad76ac0e4837404ae66e3332c9cb08d1aef0a902 | app/assets/styles/_react-select.scss | app/assets/styles/_react-select.scss | SCSS |
<|file_sep|>Cargo.toml.diff
original:
version = "0.1.2"
updated:
version = "0.2.0"
<|file_sep|>Cargo.toml.diff
original:
dsp-chain = { version = "0.11.0", optional = true }
updated:
dsp-chain = { version = "0.12.0", optional = true }
<|file_sep|>original/Cargo.toml
authors = [
"mitchmindtree <mitchell.nordine@gmail... | authors = [
"mitchmindtree <mitchell.nordine@gmail.com>",
"JoshuaBatty"
]
description = "A high performance digital signal compressor, designed for compressing the amplitude of audio data."
readme = "README.md"
keywords = ["limiter", "dsp", "rms", "peak", "dynamics"]
license = "Apache-2.0/MIT"
repository = "htt... | <|file_sep|>Cargo.toml.diff
original:
version = "0.1.2"
updated:
version = "0.2.0"
<|file_sep|>Cargo.toml.diff
original:
dsp-chain = { version = "0.11.0", optional = true }
updated:
dsp-chain = { version = "0.12.0", optional = true }
<|file_sep|>original/Cargo.toml
authors = [
"mitchmindtree <mitchell.nordine@gmail... | e7cb90260af39f73a418bbc0ce077169dd925906 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/.travis.yml
# Use Travis's cointainer based infrastructure
sudo: false
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
# Don't `bundle install`
install: echo "skip bundle install"
branches:
only:
- master
# Ensure we make ChefDK's Ruby the default
befor... | # Use Travis's cointainer based infrastructure
sudo: false
addons:
apt:
sources:
- chef-current-precise
packages:
- chefdk
# Don't `bundle install`
install: echo "skip bundle install"
branches:
only:
- master
# Ensure we make ChefDK's Ruby the default
before_script:
- eval "$(/opt/chefd... | <|file_sep|>original/.travis.yml
# Use Travis's cointainer based infrastructure
sudo: false
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
# Don't `bundle install`
install: echo "skip bundle install"
branches:
only:
- master
# Ensure we make ChefDK's Ruby the default
befor... | 7364464047df2f842cf50d37bdc7630d06d06db6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/signin-twitter.html
<div ng-show="twitterSession" class="twitter-session">
<img id="home-view-user-avatar" ng-click="toggleOptions()" ng-src="{{twitterSession.profile_image_url_https}}" class="user-image" alt="{{twitterSession.name}}">
<div class="hidden-user-info hide">
<ul class=... | <div ng-show="twitterSession" class="twitter-session">
<img id="home-view-user-avatar" ng-click="toggleOptions()" ng-src="{{twitterSession.profile_image_url_https}}" class="user-image" alt="{{twitterSession.name}}">
<div class="hidden-user-info hide">
<ul class="top-options">
<li>
<a href="./home">
... | <|file_sep|>original/app/views/signin-twitter.html
<div ng-show="twitterSession" class="twitter-session">
<img id="home-view-user-avatar" ng-click="toggleOptions()" ng-src="{{twitterSession.profile_image_url_https}}" class="user-image" alt="{{twitterSession.name}}">
<div class="hidden-user-info hide">
<ul class=... | 099d5aa9b825f196f1a48b8010fd0133397d69df | app/views/signin-twitter.html | app/views/signin-twitter.html | HTML |
<|file_sep|>original/.travis.yml
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
before_install:
- wget https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel_0.3.1-linux-x86_64.deb
- sudo dpkg -i bazel_0.3.1-linux-x86_64.deb
scrip... | dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
before_install:
- wget https://github.com/bazelbuild/bazel/releases/download/0.9.0/bazel_0.9.0-linux-x86_64.deb
- sudo dpkg -i bazel_0.9.0-linux-x86_64.deb
script:
- bazel build ... | <|file_sep|>original/.travis.yml
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
before_install:
- wget https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel_0.3.1-linux-x86_64.deb
- sudo dpkg -i bazel_0.3.1-linux-x86_64.deb
scrip... | ed8517917613e3b0469fb067f22cbf79d1d1c50b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/Types.ts
* Simple utility Hash array type
*/
export type ObjectMap<T> = {[key: string]: T};
/**
* A Valid HTTP operation
*/
export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
/**
* An HTTP Request response containing both the response's message information an... | * Simple utility Hash array type
*/
export type ObjectMap<T> = {[key: string]: T};
/**
* A Valid HTTP operation
*/
export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
/**
* Enumaration of valid HTTP verbs.
*/
export const HttpVerbs: ObjectMap<HttpVerb> = {
GET: 'GET',
... | <|file_sep|>original/src/Types.ts
* Simple utility Hash array type
*/
export type ObjectMap<T> = {[key: string]: T};
/**
* A Valid HTTP operation
*/
export type HttpVerb = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
/**
* An HTTP Request response containing both the response's message information an... | 81e1841b1c3bb88b8e6e14b74ffddabe3711ee43 | src/Types.ts | src/Types.ts | TypeScript |
<|file_sep|>original/_posts/2016-11-28-course-x-mobile-cloud.markdown
---
published: true
title: (Course) Cross-Platform Mobile App with Cloud Architecture
layout: post
comments: true
categories: course
---
# A Complementary Course Material
ใช้ประกอบการอบรมและทำ workshop สำหรับ Cross-Platform Mobile App with Cloud Arc... | published: true
title: (Course) Cross-Platform Mobile App with Cloud Architecture
layout: post
comments: true
categories: course
---
# A Complementary Course Material
ใช้ประกอบการอบรมและทำ workshop สำหรับ Cross-Platform Mobile App with Cloud Architecture
<!-- break -->
For the workshop you might need to register to:... | <|file_sep|>original/_posts/2016-11-28-course-x-mobile-cloud.markdown
---
published: true
title: (Course) Cross-Platform Mobile App with Cloud Architecture
layout: post
comments: true
categories: course
---
# A Complementary Course Material
ใช้ประกอบการอบรมและทำ workshop สำหรับ Cross-Platform Mobile App with Cloud Arc... | c1b41cf63128673640ac281b210908a3eda86ef2 | _posts/2016-11-28-course-x-mobile-cloud.markdown | _posts/2016-11-28-course-x-mobile-cloud.markdown | Markdown |
<|file_sep|>original/src/graphics/EvolutionSelector.java
private static final String HTML_Formatting = "<html><body style='width: 100px'>";
public static JCheckBox xEquation = new JCheckBox("x");
public static JCheckBox yEquation = new JCheckBox("y");
public static JCheckBox zEquation = new JCheckBox("... | private static final String HTML_Formatting = "<html><body style='width: 100px'>";
public static JCheckBox xEquation = new JCheckBox("x");
public static JCheckBox yEquation = new JCheckBox("y");
public static JCheckBox zEquation = new JCheckBox("z");
public static JCheckBox colorEquation = new JChe... | <|file_sep|>original/src/graphics/EvolutionSelector.java
private static final String HTML_Formatting = "<html><body style='width: 100px'>";
public static JCheckBox xEquation = new JCheckBox("x");
public static JCheckBox yEquation = new JCheckBox("y");
public static JCheckBox zEquation = new JCheckBox("... | 2281aaa8403743578678dcb313cc05c438e692f5 | src/graphics/EvolutionSelector.java | src/graphics/EvolutionSelector.java | Java |
<|file_sep|>2_0/templates/index.html.diff
original:
<form id="search-form">
updated:
<form id="search-form" onsubmit="return false">
<|file_sep|>2_0/templates/index.html.diff
original:
<input type="submit" value="Search" />
updated:
<input type="submit" value="Search" onclick="submitSearch()" />
<|f... | <thead>
<tr style="text-align: left;">
<th width="40%">Title</th>
<th width="30%">Author</th>
<th width="10%">Year</th>
<th width="20%">ID</th>
</tr>
</thead>
<tbody id="search-results"></tbody>
</table>
<script type="text/javascript"
... | <|file_sep|>2_0/templates/index.html.diff
original:
<form id="search-form">
updated:
<form id="search-form" onsubmit="return false">
<|file_sep|>2_0/templates/index.html.diff
original:
<input type="submit" value="Search" />
updated:
<input type="submit" value="Search" onclick="submitSearch()" />
<|f... | bff5f14c13640beee0186b75f233917bc83d0b90 | 2_0/templates/index.html | 2_0/templates/index.html | HTML |
<|file_sep|>modules/do/droplet/variables.tf.diff
original:
default = "false"
updated:
default = false
<|file_sep|>modules/do/droplet/variables.tf.diff
original:
default = "false"
updated:
default = false
<|file_sep|>original/modules/do/droplet/variables.tf
variable "size" {
default = "512mb"
}
variable "bac... |
variable "size" {
default = "512mb"
}
variable "backups" {
default = false
}
variable "ipv6" {
default = false
}
variable "private_networking" {
default = false
}
variable "tags" {
type = "list"
default = []
} | <|file_sep|>modules/do/droplet/variables.tf.diff
original:
default = "false"
updated:
default = false
<|file_sep|>modules/do/droplet/variables.tf.diff
original:
default = "false"
updated:
default = false
<|file_sep|>original/modules/do/droplet/variables.tf
variable "size" {
default = "512mb"
}
variable "bac... | 1e867aa18d6cd2c5b98c48f28cacc78a3705b238 | modules/do/droplet/variables.tf | modules/do/droplet/variables.tf | HCL |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.