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/flink-python/dev/dev-requirements.txt
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apac... | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | <|file_sep|>original/flink-python/dev/dev-requirements.txt
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apac... | c078ccf89cf2781c754e8dc4fbac671349dfcc0f | flink-python/dev/dev-requirements.txt | flink-python/dev/dev-requirements.txt | Text |
<|file_sep|>original/src/rules/no-double-slash-css-comments/README.md
# no-double-slash-css-comments
Disallow double-slash comments (`//...`) which are not supported by CSS and could lead to unexpected results. See more at http://stackoverflow.com/a/20192639/130652
```css
a { // color: pink; }···
/** ↑
* ... | # no-double-slash-css-comments
Disallow double-slash comments (`//...`) which are not supported by CSS and could lead to unexpected results. See more at http://stackoverflow.com/a/20192639/130652 and http://www.xanthir.com/b4U10
```css
a { // color: pink; }···
/** ↑
* This comment */
```
The following ... | <|file_sep|>original/src/rules/no-double-slash-css-comments/README.md
# no-double-slash-css-comments
Disallow double-slash comments (`//...`) which are not supported by CSS and could lead to unexpected results. See more at http://stackoverflow.com/a/20192639/130652
```css
a { // color: pink; }···
/** ↑
* ... | e47f6cffa26a3bf15e7da43b1588fc027762b538 | src/rules/no-double-slash-css-comments/README.md | src/rules/no-double-slash-css-comments/README.md | Markdown |
<|file_sep|>.pre-commit-config.yaml.diff
original:
- id: check-json
updated:
<|file_sep|>.pre-commit-config.yaml.diff
original:
- id: check-xml
updated:
<|file_sep|>original/.pre-commit-config.yaml
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: che... | - id: autopep8-wrapper
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: flake8
- id: name-t... | <|file_sep|>.pre-commit-config.yaml.diff
original:
- id: check-json
updated:
<|file_sep|>.pre-commit-config.yaml.diff
original:
- id: check-xml
updated:
<|file_sep|>original/.pre-commit-config.yaml
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: che... | f131ae86c04c4e1f592beb995e918dd622b1f33e | .pre-commit-config.yaml | .pre-commit-config.yaml | YAML |
<|file_sep|>original/src/index.spec.ts
server.on('listening', () => {
get('http://localhost:' + server.address().port, (res) => {
const headers = http(res)
if (res.rawHeaders) {
expect(headers['Content-Type']).to.equal('application/json')
expect(headers['Cookie']).to.deep... |
server.on('listening', () => {
get('http://localhost:' + server.address().port, (res) => {
const headers = http(res)
if (res.rawHeaders) {
expect(headers['Content-Type']).to.equal('application/json')
expect(headers['Cookie']).to.deep.equal(['foo', 'bar', 'baz'])
}... | <|file_sep|>original/src/index.spec.ts
server.on('listening', () => {
get('http://localhost:' + server.address().port, (res) => {
const headers = http(res)
if (res.rawHeaders) {
expect(headers['Content-Type']).to.equal('application/json')
expect(headers['Cookie']).to.deep... | 3a62d8506bf196a46382566043023d92531b442f | src/index.spec.ts | src/index.spec.ts | TypeScript |
<|file_sep|>original/models/Update.pm6
#Search through the configs for a repo that matches the query.
my %repo = @repos.grep(*<path>.IO.basename.lc eq $search.lc).first;
$res.data<name> = %repo<path>.IO.basename;
start {
my $git = Git::Wrapper.new: gitdir => %repo<path>;
... |
#Search through the configs for a repo that matches the query.
my %repo = @repos.grep(*<path>.IO.basename.lc eq $search.lc).first;
$res.data<name> = %repo<path>.IO.basename;
my $git = Git::Wrapper.new: gitdir => %repo<path>;
#Check if any changes have been made since last pull,... | <|file_sep|>original/models/Update.pm6
#Search through the configs for a repo that matches the query.
my %repo = @repos.grep(*<path>.IO.basename.lc eq $search.lc).first;
$res.data<name> = %repo<path>.IO.basename;
start {
my $git = Git::Wrapper.new: gitdir => %repo<path>;
... | b4653375efec9dba3343c87a6975c42d15d29215 | models/Update.pm6 | models/Update.pm6 | Perl6 |
<|file_sep|>original/README.rst
================
nose-blacklist
================
nose-blacklist is a plugin for nose_ that provides a powerful way of skipping
tests without requiring code changes.
- Test cases are excluded by regex matching
- Tests cases are matched by their fully-qualified names, including the modu... | ================
nose-blacklist
================
.. image:: https://travis-ci.org/pglass/nose-blacklist.svg
:target: https://travis-ci.org/pglass/nose-blacklist
nose-blacklist is a plugin for nose_ that provides a powerful way of skipping
tests without requiring code changes.
- Test cases are excluded by regex ... | <|file_sep|>original/README.rst
================
nose-blacklist
================
nose-blacklist is a plugin for nose_ that provides a powerful way of skipping
tests without requiring code changes.
- Test cases are excluded by regex matching
- Tests cases are matched by their fully-qualified names, including the modu... | cfcfc63a1bfe6c4f725eab99ebbc6d6a818a2fee | README.rst | README.rst | reStructuredText |
<|file_sep|>original/etc/config.yml
| [supervisor]
| [department]
| [school]
# Report metadata
report_name: 'report'
classoption: draftfirst
copyright: Copyright (c) 2014 by Shane Martin. All Rights Reserved.
title: [paper title]
shorttitle:
abstract: |
Lorem ipsum dolor sit amet, consectetur adipisicing elit... | | [supervisor]
| [department]
| [school]
# Report metadata
report_name: 'report'
classoption: draftfirst
copyright: Copyright (c) 2014 by Shane Martin. All Rights Reserved.
title: [paper title]
shorttitle:
abstract: |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt u... | <|file_sep|>original/etc/config.yml
| [supervisor]
| [department]
| [school]
# Report metadata
report_name: 'report'
classoption: draftfirst
copyright: Copyright (c) 2014 by Shane Martin. All Rights Reserved.
title: [paper title]
shorttitle:
abstract: |
Lorem ipsum dolor sit amet, consectetur adipisicing elit... | cf70c28ca89ea6b69cb83b87cbaa75bf6fecc674 | etc/config.yml | etc/config.yml | YAML |
<|file_sep|>original/src/components/views/Search.sass
@import ../../vendor/lib
.SearchBar
max-width: rem(680)
padding: rem(20) rem(10) rem(10)
.Search .FormControl
max-width: none
.Search .SearchControl .FormControlInput
+sans-bold-family
font-size: rem(24)
.Search .SearchControl .FormControlLabel
displ... | @import ../../vendor/lib
.Search
padding-bottom: rem(80)
.SearchBar
max-width: rem(680)
padding: rem(20) rem(10) rem(10)
.Search .FormControl
max-width: none
.Search .SearchControl .FormControlInput
+sans-bold-family
font-size: rem(24)
.Search .SearchControl .FormControlLabel
display: none
.Search .... | <|file_sep|>original/src/components/views/Search.sass
@import ../../vendor/lib
.SearchBar
max-width: rem(680)
padding: rem(20) rem(10) rem(10)
.Search .FormControl
max-width: none
.Search .SearchControl .FormControlInput
+sans-bold-family
font-size: rem(24)
.Search .SearchControl .FormControlLabel
displ... | 6b38fd6cf9de7d97827e2b420ef941668e4335e3 | src/components/views/Search.sass | src/components/views/Search.sass | Sass |
<|file_sep|>original/lib/base.coffee
class Base
emitter: null
configure: (@emitter) ->
getEmitter: -> @emitter
emit: (event, data) ->
return unless @emitter
data.event = event unless data.event
@emitter.emit event, data
log: (level, module, text) ->
@emit "logger.#{level}.#{module}", leve... | class Base
emitter: null
configure: (@emitter) ->
getEmitter: -> @emitter
emit: (event, data) ->
return unless @emitter
data = {} unless data
data.event = event unless data.event
@emitter.emit event, data
log: (level, module, text) ->
@emit "logger.#{level}.#{module}", level: level, m... | <|file_sep|>original/lib/base.coffee
class Base
emitter: null
configure: (@emitter) ->
getEmitter: -> @emitter
emit: (event, data) ->
return unless @emitter
data.event = event unless data.event
@emitter.emit event, data
log: (level, module, text) ->
@emit "logger.#{level}.#{module}", leve... | 09a9d800387a5d33236e562bfe8a6e5ee5a3d897 | lib/base.coffee | lib/base.coffee | CoffeeScript |
<|file_sep|>original/gems/rubocop-canvas/lib/rubocop_canvas/cops/migration/primary_key.rb
module RuboCop
module Cop
module Migration
class PrimaryKey < Cop
def on_send(node)
_receiver, method_name, *args = *node
if method_name == :create_table
check_create_table(node,... | require 'parser/current'
module RuboCop
module Cop
module Migration
class PrimaryKey < Cop
def on_send(node)
_receiver, method_name, *args = *node
if method_name == :create_table
check_create_table(node, args)
end
end
NO_PK = Parser::Curren... | <|file_sep|>original/gems/rubocop-canvas/lib/rubocop_canvas/cops/migration/primary_key.rb
module RuboCop
module Cop
module Migration
class PrimaryKey < Cop
def on_send(node)
_receiver, method_name, *args = *node
if method_name == :create_table
check_create_table(node,... | 2073553507dcca22f80d82ed16791e6d5a63063e | gems/rubocop-canvas/lib/rubocop_canvas/cops/migration/primary_key.rb | gems/rubocop-canvas/lib/rubocop_canvas/cops/migration/primary_key.rb | Ruby |
<|file_sep|>original/test/setup_test.sh
# along with Alignak. If not, see <http://www.gnu.org/licenses/>.
set -e
THIS_PATH=$(dirname "$0")
BASE_PATH=$(dirname "$THIS_PATH")
cd $BASE_PATH
pip install --upgrade pip
# install prog AND tests requirements :
pip install -e .
pip install alignak-setup
pip install --upgr... | # You should have received a copy of the GNU Affero General Public License
# along with Alignak. If not, see <http://www.gnu.org/licenses/>.
set -e
THIS_PATH=$(dirname "$0")
BASE_PATH=$(dirname "$THIS_PATH")
cd $BASE_PATH
pip install --upgrade pip
# install prog AND tests requirements :
pip install -e .
pip insta... | <|file_sep|>original/test/setup_test.sh
# along with Alignak. If not, see <http://www.gnu.org/licenses/>.
set -e
THIS_PATH=$(dirname "$0")
BASE_PATH=$(dirname "$THIS_PATH")
cd $BASE_PATH
pip install --upgrade pip
# install prog AND tests requirements :
pip install -e .
pip install alignak-setup
pip install --upgr... | 301bcbce234ca9f757c4df183e4abb693299b17a | test/setup_test.sh | test/setup_test.sh | Shell |
<|file_sep|>original/src/SilentHunter.Core/Encoding.cs
namespace SilentHunter
{
public static class Encoding
{
/// <summary>
/// The default encoding to use for parsing Silent Hunter game files.
/// </summary>
public static System.Text.Encoding ParseEncoding { get; } = System.Text.Encoding.GetEncoding(1252);... | namespace SilentHunter
{
public static class Encoding
{
/// <summary>
/// The default encoding to use for parsing Silent Hunter game files.
/// </summary>
public static System.Text.Encoding ParseEncoding { get; } = System.Text.Encoding.GetEncoding("ISO-8859-1");
}
} | <|file_sep|>original/src/SilentHunter.Core/Encoding.cs
namespace SilentHunter
{
public static class Encoding
{
/// <summary>
/// The default encoding to use for parsing Silent Hunter game files.
/// </summary>
public static System.Text.Encoding ParseEncoding { get; } = System.Text.Encoding.GetEncoding(1252);... | cd91183a9787d9295efe4e252af2b7535ff21d5a | src/SilentHunter.Core/Encoding.cs | src/SilentHunter.Core/Encoding.cs | C# |
<|file_sep|>original/oweb/templates/oweb/planet_settings.html
<td><input value="{{ planet.name }}" name="planet_name" type="text" /></td>
</tr>
<tr>
<td>Coords:</td>
<td><input value="{{ planet.coord }}" name="planet_coord" type... | <td>Name:</td>
<td><input value="{{ planet.name }}" name="planet_name" type="text" /></td>
</tr>
<tr>
<td>Coords:</td>
<td><input value="{{ planet.coord }}" name="planet_coord" type="text" /></td>
... | <|file_sep|>original/oweb/templates/oweb/planet_settings.html
<td><input value="{{ planet.name }}" name="planet_name" type="text" /></td>
</tr>
<tr>
<td>Coords:</td>
<td><input value="{{ planet.coord }}" name="planet_coord" type... | d1b69855787defded80193cc97c066151dc199e0 | oweb/templates/oweb/planet_settings.html | oweb/templates/oweb/planet_settings.html | HTML |
<|file_sep|>original/src/Characters.js
"use strict"
const Characters = {
WIDE_BAR: "W",
NARROW_BAR: "N",
WIDE_SPACE: "w",
NARROW_SPACE: "n",
}
module.exports = Characters
<|file_sep|>current/src/Characters.js
"use strict"
const Characters = {
WIDE_BAR: "W",
NARROW_BAR: "N",
WIDE_SPACE: "w",
NARROW_SPACE: "n"... | export const WIDE_BAR = "W"
export const NARROW_BAR = "N"
export const WIDE_SPACE = "w"
export const NARROW_SPACE = "n" | <|file_sep|>original/src/Characters.js
"use strict"
const Characters = {
WIDE_BAR: "W",
NARROW_BAR: "N",
WIDE_SPACE: "w",
NARROW_SPACE: "n",
}
module.exports = Characters
<|file_sep|>current/src/Characters.js
"use strict"
const Characters = {
WIDE_BAR: "W",
NARROW_BAR: "N",
WIDE_SPACE: "w",
NARROW_SPACE: "n"... | 49af20920479ecd2772c929e301dbe48623f4a07 | src/Characters.js | src/Characters.js | JavaScript |
<|file_sep|>original/cmd/brew-cu.rb
#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
# encoding: UTF-8
#: * `cu` [`options`]
#: Upgrade every outdated app installed by `brew cask`.
#:
#: * `cu` cask [`options`]
#: Upgrade a specific app.
#:
#:OPTIONS:
#: If `--all` or ... | #!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
#: * `cu` [`options`]
#: Upgrade every outdated app installed by `brew cask`.
#:
#: * `cu` cask [`options`]
#: Upgrade a specific app.
#:
#:OPTIONS:
#: If `--all` or `-a` is passed, include apps that auto-update in the
#... | <|file_sep|>original/cmd/brew-cu.rb
#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
# encoding: UTF-8
#: * `cu` [`options`]
#: Upgrade every outdated app installed by `brew cask`.
#:
#: * `cu` cask [`options`]
#: Upgrade a specific app.
#:
#:OPTIONS:
#: If `--all` or ... | ddc95a9baec5d573d983e80c26281c11aad5dc88 | cmd/brew-cu.rb | cmd/brew-cu.rb | Ruby |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml | jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.401'
- script: |
export COREHOST_TRACE=0
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
which dotnet
dotnet --info
dotnet... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.401'
- script: |
export COREHOST_TRACE=0
export DOTNET_... | 14aacd0f4b4130c0b85491654bcf9cd4284e050c | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>original/matador/commands/deployment/deploy_sql_script.py
repo_folder = Session.matador_repository_folder
scriptPath = os.path.join(repo_folder, self.args[0])
commit = self.args[1]
subprocess.run(
['git', '-C', repo_folder, 'checkout', commit]... | class DeploySqlScript(DeploymentCommand):
def _execute(self):
scriptPath = self.args[0]
if len(os.path.dirname(scriptPath)) == 0:
script = os.path.join(Session.ticket_folder, scriptPath)
else:
repo_folder = Session.matador_repository_folder
scriptPath = ... | <|file_sep|>original/matador/commands/deployment/deploy_sql_script.py
repo_folder = Session.matador_repository_folder
scriptPath = os.path.join(repo_folder, self.args[0])
commit = self.args[1]
subprocess.run(
['git', '-C', repo_folder, 'checkout', commit]... | 0c833808e9c761a98e11ffb4834b8344221db1d5 | matador/commands/deployment/deploy_sql_script.py | matador/commands/deployment/deploy_sql_script.py | Python |
<|file_sep|>.travis.yml.diff
original:
- 2.0.0-preview1
updated:
- 2.0.0
<|file_sep|>.travis.yml.diff
original:
- rvm get stable
- rvm install ruby-2.0.0-preview1
- rvm reload
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0-preview1
before_install:
- rvm get stable
- rvm... | language: ruby
rvm:
- 1.9.3
- 2.0.0
before_install:
- gem install bundler
before_script:
- sudo apt-get update
- sudo apt-get install pdftk
- sudo updatedb -U /usr/bin
script:
- bundle exec rake test
notifications:
email:
- joneslee85@gmail.com
matrix:
allow_failures:
- rvm: 2.0.0 | <|file_sep|>.travis.yml.diff
original:
- 2.0.0-preview1
updated:
- 2.0.0
<|file_sep|>.travis.yml.diff
original:
- rvm get stable
- rvm install ruby-2.0.0-preview1
- rvm reload
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0-preview1
before_install:
- rvm get stable
- rvm... | 15025db2d58076d928d7aa6df1d3d55670363b9c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ci/scripts/run-errand.sh
#!/bin/bash -e
bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD
bosh download manifest cf-warden > manifest.yml
bosh deployment manifest.yml
bosh run errand $ERRAND_NAME
<|file_sep|>current/ci/scripts/run-errand.sh
#!/bin/bash -e
bosh -u ... | #!/bin/bash -e
bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD
bosh download manifest cf-warden > manifest.yml
bosh deployment manifest.yml
bosh run errand $ERRAND_NAME --keep-alive | <|file_sep|>original/ci/scripts/run-errand.sh
#!/bin/bash -e
bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD
bosh download manifest cf-warden > manifest.yml
bosh deployment manifest.yml
bosh run errand $ERRAND_NAME
<|file_sep|>current/ci/scripts/run-errand.sh
#!/bin/bash -e
bosh -u ... | 8d69d4ae20a62fbd30585b1d5fc85203dfcb46da | ci/scripts/run-errand.sh | ci/scripts/run-errand.sh | Shell |
<|file_sep|>packages/ed/EdisonCore.yaml.diff
original:
hash: c44775ed942dcf7a8f9762e1c4c665777be9d11575dbe1814b6d51f165ea7793
updated:
hash: 9a7852765c92b0d785b47daba02c48ae4e9262e1f77ac969009ca2693d408a24
<|file_sep|>original/packages/ed/EdisonCore.yaml
test-bench-deps: {}
maintainer: robdockins AT fastmail DOT fm
syn... | test-bench-deps: {}
maintainer: robdockins AT fastmail DOT fm
synopsis: A library of efficent, purely-functional data structures (Core Implementations)
changelog: ''
basic-deps:
EdisonAPI: -any
base: ==4.*
array: -any
containers: -any
mtl: -any
QuickCheck: ! '>=2.0 && <2.8.2'
all-versions:
- '1.2.1'
- '1.2.... | <|file_sep|>packages/ed/EdisonCore.yaml.diff
original:
hash: c44775ed942dcf7a8f9762e1c4c665777be9d11575dbe1814b6d51f165ea7793
updated:
hash: 9a7852765c92b0d785b47daba02c48ae4e9262e1f77ac969009ca2693d408a24
<|file_sep|>original/packages/ed/EdisonCore.yaml
test-bench-deps: {}
maintainer: robdockins AT fastmail DOT fm
syn... | fbab30e0bccddd5937a8ffc398497684850ebffc | packages/ed/EdisonCore.yaml | packages/ed/EdisonCore.yaml | YAML |
<|file_sep|>original/config/routes.rb
Rails.application.routes.draw do
resources :schools, only: [:show]
resources :items, only: [:show, :index]
resources :points, only: [:show], constraints: { id: /[^\/]+/ }
end
<|file_sep|>current/config/routes.rb
Rails.application.routes.draw do
resources :schools, only... | Rails.application.routes.draw do
root to: 'items#index'
resources :schools, only: [:show]
resources :items, only: [:show, :index]
resources :points, only: [:show], constraints: { id: /[^\/]+/ }
end | <|file_sep|>original/config/routes.rb
Rails.application.routes.draw do
resources :schools, only: [:show]
resources :items, only: [:show, :index]
resources :points, only: [:show], constraints: { id: /[^\/]+/ }
end
<|file_sep|>current/config/routes.rb
Rails.application.routes.draw do
resources :schools, only... | d0afbcfde8d162b78d135dd91405f01350118196 | config/routes.rb | config/routes.rb | Ruby |
<|file_sep|>original/lib/shared/mem.h
#include <stdlib.h>
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrndup (const char *str, size_t len);
void xfree (void *ptr);
... | #include <stdlib.h>
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrndup (const char *str, size_t len);
void xfree (void *ptr);
size_t xmembytes();
size_t xmemnew();
... | <|file_sep|>original/lib/shared/mem.h
#include <stdlib.h>
void *xmalloc (size_t size);
void *xcalloc (size_t count, size_t size);
void *xrealloc (void *ptr, size_t size);
char *xstralloc (size_t len);
void *xmemdupz (const void *data, size_t len);
char *xstrndup (const char *str, size_t len);
void xfree (void *ptr);
... | e8a46c51e607caedec168f26c73595fed10b3afb | lib/shared/mem.h | lib/shared/mem.h | C |
<|file_sep|>original/src/cljs_workers/core.cljs
(defn- do-request!
[worker {:keys [handler arguments transfer] :as request}]
(let [message
(-> {:handler handler, :arguments arguments}
clj->js)
transfer
(->> transfer
(select-keys arguments)
vals)]
... |
(if (seq transfer)
(.postMessage worker message (clj->js transfer))
(.postMessage worker message))))
(defn- handle-response!
[event]
(-> (.-data event)
(js->clj :keywordize-keys true)))
(defn do-with-worker!
([worker request]
(do-with-worker! worker request nil))
([worker {:keys [ha... | <|file_sep|>original/src/cljs_workers/core.cljs
(defn- do-request!
[worker {:keys [handler arguments transfer] :as request}]
(let [message
(-> {:handler handler, :arguments arguments}
clj->js)
transfer
(->> transfer
(select-keys arguments)
vals)]
... | 7b1ed0cbd3f788021043e6b9e11702ee4ffba715 | src/cljs_workers/core.cljs | src/cljs_workers/core.cljs | Clojure |
<|file_sep|>original/scripts/continuserv/index.html
<head>
<script>
window.onload = function() {
var url = new URL(window.location);
url.pathname += "api-docs.json";
var newLoc = "http://matrix.org/docs/api/client-server/?url=" + encodeURIComponent(url);
document.getElementById("apidocs").href = newLoc;... | <head>
<script>
window.onload = function() {
var url = new URL(window.location);
url.pathname += "api-docs.json";
var newLoc = "http://petstore.swagger.io/?url=" + encodeURIComponent(url);
document.getElementById("apidocs").href = newLoc;
};
</script>
</head>
<body><ul>
<li><a id="apidocs">api docs</a><... | <|file_sep|>original/scripts/continuserv/index.html
<head>
<script>
window.onload = function() {
var url = new URL(window.location);
url.pathname += "api-docs.json";
var newLoc = "http://matrix.org/docs/api/client-server/?url=" + encodeURIComponent(url);
document.getElementById("apidocs").href = newLoc;... | 0cbf533625b5c21b11a83134338c5b0a393976f7 | scripts/continuserv/index.html | scripts/continuserv/index.html | HTML |
<|file_sep|>cmake/PythonEnvironment.cmake.diff
original:
LIST(APPEND PYTHON_ENV_VARS PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${PYTHON_PACKAGES_PATH}:$ENV{PYTHONPATH})
updated:
LIST(APPEND PYTHON_ENV_VARS PYTHONPATH=${CMAKE_BINARY_DIR}/src/interfaces/python:${CMAKE_INSTALL_PREFIX}/${PYTHON_PACKAGES_PATH}:$ENV{PYTHONPATH})
... | MACRO(GET_PYTHON_ENV)
LIST(APPEND PYTHON_ENV_VARS GDB="gdb -x ${CMAKE_SOURCE_DIR}/src/.gdb --args")
LIST(APPEND PYTHON_ENV_VARS PYTHON=${PYTHON_EXECUTABLE})
LIST(APPEND PYTHON_ENV_VARS PYTHONPATH=${CMAKE_BINARY_DIR}/src/interfaces/python:${CMAKE_INSTALL_PREFIX}/${PYTHON_PACKAGES_PATH}:$ENV{PYTHONPATH})
if(WIN32)
... | <|file_sep|>cmake/PythonEnvironment.cmake.diff
original:
LIST(APPEND PYTHON_ENV_VARS PYTHONPATH=${CMAKE_INSTALL_PREFIX}/${PYTHON_PACKAGES_PATH}:$ENV{PYTHONPATH})
updated:
LIST(APPEND PYTHON_ENV_VARS PYTHONPATH=${CMAKE_BINARY_DIR}/src/interfaces/python:${CMAKE_INSTALL_PREFIX}/${PYTHON_PACKAGES_PATH}:$ENV{PYTHONPATH})
... | 7132a0b6f9a14c975455a60cb480fcbc3915356d | cmake/PythonEnvironment.cmake | cmake/PythonEnvironment.cmake | CMake |
<|file_sep|>check_setup.php.diff
original:
// PHP 5.3 minimum
updated:
// PHP 5.3.3 minimum
<|file_sep|>check_setup.php.diff
original:
// Short tags must be enabled for PHP < 5.4
updated:
// Checks for PHP < 5.4
<|file_sep|>check_setup.php.diff
original:
updated:
// Short tags must be enabled for PHP < 5.4
<|file_... | // PHP 5.3.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
die('This software require PHP 5.3.3 minimum');
}
// Checks for PHP < 5.4
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
// Short tags must be enabled for PHP < 5.4
if (! ini_get('short_open_tag')) {
die('This software requi... | <|file_sep|>check_setup.php.diff
original:
// PHP 5.3 minimum
updated:
// PHP 5.3.3 minimum
<|file_sep|>check_setup.php.diff
original:
// Short tags must be enabled for PHP < 5.4
updated:
// Checks for PHP < 5.4
<|file_sep|>check_setup.php.diff
original:
updated:
// Short tags must be enabled for PHP < 5.4
<|file_... | c8492793bcc81d7cba4e3c64e381701943b6cd20 | check_setup.php | check_setup.php | PHP |
<|file_sep|>original/CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
## 2.5.3 - TBD
### Added
- Nothing.
### Deprecated
- Nothing.
### Removed
- [#10](https://github.com/zendframework/zend-code/pull/10) removes a
developm... | # Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
## 2.5.3 - 2015-11-18
### Added
- Nothing.
### Deprecated
- Nothing.
### Removed
- [#10](https://github.com/zendframework/zend-code/pull/10) removes a
development dependency on zendframe... | <|file_sep|>original/CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
## 2.5.3 - TBD
### Added
- Nothing.
### Deprecated
- Nothing.
### Removed
- [#10](https://github.com/zendframework/zend-code/pull/10) removes a
developm... | 52f8c0fb9ca6e99a2357c30e1870bd5c38ff83a7 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/playbooks/init.yml
---
- hosts: kv:index:n1ql
tasks:
- yum: state=latest name=epel-release
- yum: state=latest name={{item}}
with_items:
- atop
- gdb
- htop
- iotop
- iperf
- iptraf
- moreutils
- net-tools
- numactl
- psmisc
... | ---
- hosts: kv:index:n1ql
tasks:
- yum: state=latest name=epel-release
- yum: state=latest name={{item}}
with_items:
- atop
- fio
- gdb
- htop
- iotop
- iperf
- iptraf
- moreutils
- net-tools
- numactl
- psmisc
- rsync
- sysstat
... | <|file_sep|>original/playbooks/init.yml
---
- hosts: kv:index:n1ql
tasks:
- yum: state=latest name=epel-release
- yum: state=latest name={{item}}
with_items:
- atop
- gdb
- htop
- iotop
- iperf
- iptraf
- moreutils
- net-tools
- numactl
- psmisc
... | 051f619fb76fc13be485038aabf07eee91187df0 | playbooks/init.yml | playbooks/init.yml | YAML |
<|file_sep|>original/templates/Layout/Page.ss
<div class="<% if $Children || $Parent %>large-9 large-push-3<% else %>large-12<% end_if %> columns">
<article>
<h2>$Title<h2>
$Content
$Form
</article>
</div>
<% if $Children || $Parent %><%--Determine if Side Nav should be rendered, you can change this logic--%>
<... | <div class="<% if $Children || $Parent %>large-9 large-push-3<% else %>large-12<% end_if %> columns">
<article>
<h2>$Title</h2>
$Content
$Form
</article>
</div>
<% if $Children || $Parent %><%--Determine if Side Nav should be rendered, you can change this logic--%>
<div class="large-3 large-pull-9 columns">
<d... | <|file_sep|>original/templates/Layout/Page.ss
<div class="<% if $Children || $Parent %>large-9 large-push-3<% else %>large-12<% end_if %> columns">
<article>
<h2>$Title<h2>
$Content
$Form
</article>
</div>
<% if $Children || $Parent %><%--Determine if Side Nav should be rendered, you can change this logic--%>
<... | d9654cbecd7689c852a679d36ee2dcb4212674b2 | templates/Layout/Page.ss | templates/Layout/Page.ss | Scheme |
<|file_sep|>original/composer.json
{
"name": "tuupola/slim-basic-auth",
"type": "library",
"description": "PSR-7 HTTP Basic Authentication Middleware",
"keywords": ["slim", "middleware", "auth", "psr-7"],
"homepage": "http://www.appelsiini.net/projects/slim-basic-auth",
"license": "MIT",
"au... | {
"name": "tuupola/slim-basic-auth",
"type": "library",
"description": "PSR-7 HTTP Basic Authentication Middleware",
"keywords": ["middleware", "auth", "psr-7"],
"homepage": "http://www.appelsiini.net/projects/slim-basic-auth",
"license": "MIT",
"authors": [
{
"name": "Mi... | <|file_sep|>original/composer.json
{
"name": "tuupola/slim-basic-auth",
"type": "library",
"description": "PSR-7 HTTP Basic Authentication Middleware",
"keywords": ["slim", "middleware", "auth", "psr-7"],
"homepage": "http://www.appelsiini.net/projects/slim-basic-auth",
"license": "MIT",
"au... | c219d8d9e40433fc7449f8034c15d473d11b4e11 | composer.json | composer.json | JSON |
<|file_sep|>app/views/pages/index.html.erb.diff
original:
<p><%= link_to "Learn more", stories_path, class: "btn btn-primary btn-lg" %></p>
updated:
<p><%= link_to "Explore", stories_path, class: "btn btn-primary btn-lg" %></p>
<|file_sep|>original/app/views/pages/index.html.erb
<div class="jumbotron">
<div c... | <div class="jumbotron">
<div class="container">
<h1>Plot out your next great adventure</h1>
<p>Use our system to map out your short story or novel.</p>
<p><%= link_to "Explore", stories_path, class: "btn btn-primary btn-lg" %></p>
</div>
</div>
<h1>Stories</h1>
<p>Explore stories currently being writte... | <|file_sep|>app/views/pages/index.html.erb.diff
original:
<p><%= link_to "Learn more", stories_path, class: "btn btn-primary btn-lg" %></p>
updated:
<p><%= link_to "Explore", stories_path, class: "btn btn-primary btn-lg" %></p>
<|file_sep|>original/app/views/pages/index.html.erb
<div class="jumbotron">
<div c... | a02c00c424778f5a38a824164f5b00a5676e0815 | app/views/pages/index.html.erb | app/views/pages/index.html.erb | HTML+ERB |
<|file_sep|>packages/po/polar-shader.yaml.diff
original:
hash: 9e034e039c5becb1c1e901696a6ddde342d29f8adee500a8934c037112325e3e
updated:
hash: fe892ba46a486b87369764cb9a674369aafb291dd2e502f4562a7e871fb73416
<|file_sep|>packages/po/polar-shader.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/po/... | hspec: ! '>=2.1'
containers: ! '>=0.5.5'
maintainer: David Farrell <shokku.ra@gmail.com>
synopsis: High-level shader compiler for Polar Game Engine
changelog: ''
basic-deps:
base: ! '>=4.8 && <5'
containers: ! '>=0.5.5'
lens: ! '>=4.12'
mtl: ! '>=2.2'
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.0.2'
- '0.1... | <|file_sep|>packages/po/polar-shader.yaml.diff
original:
hash: 9e034e039c5becb1c1e901696a6ddde342d29f8adee500a8934c037112325e3e
updated:
hash: fe892ba46a486b87369764cb9a674369aafb291dd2e502f4562a7e871fb73416
<|file_sep|>packages/po/polar-shader.yaml.diff
original:
updated:
- '0.1.0.3'
<|file_sep|>original/packages/po/... | e3e0bb565735195260527001b41f9079acf9043d | packages/po/polar-shader.yaml | packages/po/polar-shader.yaml | YAML |
<|file_sep|>original/packages/ha/haskell-admin-core.yaml
<|file_sep|>current/packages/ha/haskell-admin-core.yaml
<|file_sep|>updated/packages/ha/haskell-admin-core.yaml | homepage: https://github.com/martin-bednar/haskell-admin#readme
changelog-type: markdown
hash: 974fc59feeeb37a2c143141ea3c26a7e60fb4904f15a93cb3a11e341698ce066
test-bench-deps:
bytestring: -any
wai-cors: -any
wai: -any
base: '>=4.7 && <5'
hspec: -any
wai-middleware-bearer: -any
word8: -any
servant-serve... | <|file_sep|>original/packages/ha/haskell-admin-core.yaml
<|file_sep|>current/packages/ha/haskell-admin-core.yaml
<|file_sep|>updated/packages/ha/haskell-admin-core.yaml
homepage: https://github.com/martin-bednar/haskell-admin#readme
changelog-type: markdown
hash: 974fc59feeeb37a2c143141ea3c26a7e60fb4904f15a93cb3a11e3... | 9160d165a170de3ec76d6a7f7d056f67294c1d37 | packages/ha/haskell-admin-core.yaml | packages/ha/haskell-admin-core.yaml | YAML |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
- "nightly"
script: pytest
<|file_sep|>current/.travis.yml
language: python
python:
- "3.6"
- "nightly"
script: pytest
<|file_sep|>updated/.travis.yml | language: python
python:
- "3.6"
- "3.6-dev"
- "nightly"
script: pytest | <|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
- "nightly"
script: pytest
<|file_sep|>current/.travis.yml
language: python
python:
- "3.6"
- "nightly"
script: pytest
<|file_sep|>updated/.travis.yml
language: python
python:
- "3.6"
- "3.6-dev"
- "nightly"
script: pytest | c13b45d350ca6422a97306dcccb3171d2099a382 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/carts/_cart.html.erb
<h2>Your Cart</h2>
<table>
<%= render(cart.line_items) %>
<tr class="total_line">
<td colspan="2">Total</td>
<td class="total_cell"><%= number_to_currency(cart.total_price) %></td>
</tr>
</table>
<%= button_to "Checkout", new_order_path, method: :get... | <h2>Your Cart</h2>
<table>
<%= render(cart.line_items) %>
<tr class="total_line">
<td colspan="2">Total</td>
<td class="total_cell"><%= number_to_currency(cart.total_price) %></td>
</tr>
</table>
<% unless current_page?(:controller => 'orders', :action => 'new') %>
<%= button_to "Checkout", new_orde... | <|file_sep|>original/app/views/carts/_cart.html.erb
<h2>Your Cart</h2>
<table>
<%= render(cart.line_items) %>
<tr class="total_line">
<td colspan="2">Total</td>
<td class="total_cell"><%= number_to_currency(cart.total_price) %></td>
</tr>
</table>
<%= button_to "Checkout", new_order_path, method: :get... | 23f7ad7c6a9997f2c66aa303e398b7e8544047b6 | app/views/carts/_cart.html.erb | app/views/carts/_cart.html.erb | HTML+ERB |
<|file_sep|>assets/js/modules/tagmanager/datastore/__fixtures__/index.js.diff
original:
import ContainersAMPOnly from './get-containers--amp';
import ContainersWebOnly from './get-containers--web';
updated:
import ContainersAMPOnly from './get-containers--amp.json';
import ContainersWebOnly from './get-containers--web.... | * See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Internal dependencies
*/
import ContainersAMPOnly from './get-containers--amp.json';
import ContainersWebOnly from './get-containers--web.json';
export { default as accounts } from './accounts.json';
e... | <|file_sep|>assets/js/modules/tagmanager/datastore/__fixtures__/index.js.diff
original:
import ContainersAMPOnly from './get-containers--amp';
import ContainersWebOnly from './get-containers--web';
updated:
import ContainersAMPOnly from './get-containers--amp.json';
import ContainersWebOnly from './get-containers--web.... | 86118a7ce4ce179b649b0be735c1879bd1776bca | assets/js/modules/tagmanager/datastore/__fixtures__/index.js | assets/js/modules/tagmanager/datastore/__fixtures__/index.js | JavaScript |
<|file_sep|>original/test/issue346-redundant-flags.sh
#!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
${DUB} build --bare --force --compiler=${DC} -a x86 main | grep -e "-m32 -m32" 2>&1 && exit 1 || exit 0
<|file_sep|>current/test/issue346-redundant-flags.sh
#!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
${DUB} ... | #!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
${DUB} build --bare --force --compiler=${DC} -a x86_64 -v main 2>&1 | grep -e "-m64 -m64" -c && exit 1 || exit 0 | <|file_sep|>original/test/issue346-redundant-flags.sh
#!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
${DUB} build --bare --force --compiler=${DC} -a x86 main | grep -e "-m32 -m32" 2>&1 && exit 1 || exit 0
<|file_sep|>current/test/issue346-redundant-flags.sh
#!/bin/sh
cd ${CURR_DIR}/issue346-redundant-flags
${DUB} ... | 2d1df295b396e2b7a000ab5f82afde8177a3a841 | test/issue346-redundant-flags.sh | test/issue346-redundant-flags.sh | Shell |
<|file_sep|>original/src/manifest.json
{
"manifest_version": 2,
"name": "Stellar Photos",
"version": "1.12.0",
"description": "Experience a beautiful photo from Unsplash every time you open a new tab alongside current weather information for your city",
"icons": {
"48": "icons/48.png",
"64": "icons/6... | {
"manifest_version": 2,
"name": "Stellar Photos",
"version": "1.12.2",
"description": "Experience a beautiful photo from Unsplash every time you open a new tab alongside current weather information for your city",
"icons": {
"48": "icons/48.png",
"64": "icons/64.png",
"128": "icons/128.png"
},... | <|file_sep|>original/src/manifest.json
{
"manifest_version": 2,
"name": "Stellar Photos",
"version": "1.12.0",
"description": "Experience a beautiful photo from Unsplash every time you open a new tab alongside current weather information for your city",
"icons": {
"48": "icons/48.png",
"64": "icons/6... | 5a3ed087ead23f5c18fcf5a1aa076b308c3ad5ff | src/manifest.json | src/manifest.json | JSON |
<|file_sep|>original/scripts/localization_online_visualizer.sh
<|file_sep|>current/scripts/localization_online_visualizer.sh
<|file_sep|>updated/scripts/localization_online_visualizer.sh | #! /bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${DIR}/.."
source "${DIR}/apollo_base.sh"
$APOLLO_BIN_PREFIX/modules/localization/msf/local_tool/local_visualization/online_local_visualizer \
--flagfile=/apollo/modules/localization/conf/localization.conf \
--log_dir=/apollo/data/log | <|file_sep|>original/scripts/localization_online_visualizer.sh
<|file_sep|>current/scripts/localization_online_visualizer.sh
<|file_sep|>updated/scripts/localization_online_visualizer.sh
#! /bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${DIR}/.."
source "${DIR}/apollo_base.sh"
$APOLLO_BIN_PR... | 3330b760b351c21e2f1f25949fa30bca474d878d | scripts/localization_online_visualizer.sh | scripts/localization_online_visualizer.sh | Shell |
<|file_sep|>original/python_scripts/solr_query_immigrant.py
<|file_sep|>current/python_scripts/solr_query_immigrant.py
<|file_sep|>updated/python_scripts/solr_query_immigrant.py | #!/usr/bin/python
import ipdb
#import time
#import csv
import sys
import pysolr
import dateutil.parser
def get_word_counts( solr, query, date_str, count=1000 ) :
date = dateutil.parser.parse( date_str )
documents = []
date_str = date.isoformat() + 'Z'
date_query = "publish_date:[{0} TO {0}+7DAYS]... | <|file_sep|>original/python_scripts/solr_query_immigrant.py
<|file_sep|>current/python_scripts/solr_query_immigrant.py
<|file_sep|>updated/python_scripts/solr_query_immigrant.py
#!/usr/bin/python
import ipdb
#import time
#import csv
import sys
import pysolr
import dateutil.parser
def get_word_counts( solr, query, d... | 86dade7f56370d5c15176abb1b1b4277ae9226ee | python_scripts/solr_query_immigrant.py | python_scripts/solr_query_immigrant.py | Python |
<|file_sep|>original/tests/unit_tests.py
def test_get_db(self):
self.db, app.config['DATABASE'] = tempfile.mkstemp()
app.config['TESTING'] = True
self.app = app.test_client()
with app.app_context():
db = get_db()
assert isinstance(db, sqlite3.Connection)
... |
def test_get_db(self):
self.db, app.config['DATABASE'] = tempfile.mkstemp()
app.config['TESTING'] = True
self.app = app.test_client()
with app.app_context():
db = get_db()
assert isinstance(db, sqlite3.Connection)
def schema():
re... | <|file_sep|>original/tests/unit_tests.py
def test_get_db(self):
self.db, app.config['DATABASE'] = tempfile.mkstemp()
app.config['TESTING'] = True
self.app = app.test_client()
with app.app_context():
db = get_db()
assert isinstance(db, sqlite3.Connection)
... | 08116d65cad849a2b031f960ef5da29e7802f4b7 | tests/unit_tests.py | tests/unit_tests.py | Python |
<|file_sep|>resources/assets/less/bem/search-forum-options.less.diff
original:
updated:
padding: 0 10px;
<|file_sep|>original/resources/assets/less/bem/search-forum-options.less
font-weight: initial;
@media @desktop {
width: 300px;
position: relative;
}
&--buttons {
display: fle... | text-transform: initial;
font-weight: initial;
@media @desktop {
width: 300px;
position: relative;
}
&--buttons {
display: flex;
padding-left: 5px; // remaining 5px is provided by the buttons themselves
padding-right: $padding-left;
@media @desktop {
pa... | <|file_sep|>resources/assets/less/bem/search-forum-options.less.diff
original:
updated:
padding: 0 10px;
<|file_sep|>original/resources/assets/less/bem/search-forum-options.less
font-weight: initial;
@media @desktop {
width: 300px;
position: relative;
}
&--buttons {
display: fle... | 9f1df3b25c514c93ce2c83e1fe304234f8f7c98b | resources/assets/less/bem/search-forum-options.less | resources/assets/less/bem/search-forum-options.less | Less |
<|file_sep|>original/public/learn/Using-Signals.elm
port title = "Using Signals"
main = skeleton "Learn" (content << min 600) <~ Window.dimensions
content w = width w [markdown|
# Using Signals
Signals are values that change over time. You can learn more about the basics
of signals in [this post][frp] and in [the ... |
# Using Signals
Signals are values that change over time. You can learn more about the basics
of signals in [this post][frp] and in [the examples](/Examples.elm). This post
focuses on common design patterns that you will definitely see when programming
with signals in Elm.
[frp]: /learn/What-is-FRP.elm
## The Typic... | <|file_sep|>original/public/learn/Using-Signals.elm
port title = "Using Signals"
main = skeleton "Learn" (content << min 600) <~ Window.dimensions
content w = width w [markdown|
# Using Signals
Signals are values that change over time. You can learn more about the basics
of signals in [this post][frp] and in [the ... | 653a3ebf212910e29e521d4f6366a701274e689b | public/learn/Using-Signals.elm | public/learn/Using-Signals.elm | Elm |
<|file_sep|>Sources/Version.swift.diff
original:
class VersionTransform: TransformType {
updated:
struct VersionTransform: TransformType {
<|file_sep|>original/Sources/Version.swift
import ObjectMapper
class VersionTransform: TransformType {
typealias Object = Version
typealias JSON = String
func transfor... | import ObjectMapper
struct VersionTransform: TransformType {
typealias Object = Version
typealias JSON = String
func transformFromJSON(_ value: Any?) -> Version? {
var convertible: LosslessStringConvertible? = value as? String
convertible = convertible ?? value.flatMap({ $0 as? Double })
... | <|file_sep|>Sources/Version.swift.diff
original:
class VersionTransform: TransformType {
updated:
struct VersionTransform: TransformType {
<|file_sep|>original/Sources/Version.swift
import ObjectMapper
class VersionTransform: TransformType {
typealias Object = Version
typealias JSON = String
func transfor... | 28678a245184ce7ff76cac348b5adae129cb9674 | Sources/Version.swift | Sources/Version.swift | Swift |
<|file_sep|>original/spec/examples/hotel_booking_spec.rb
<|file_sep|>current/spec/examples/hotel_booking_spec.rb
<|file_sep|>updated/spec/examples/hotel_booking_spec.rb | require 'spec_helper'
require 'active_support/time'
describe 'Hotel Booking Example' do
module Request
def self.create(params, params_module)
value = self.create_value(params || {}, params_module)
if value.values.all?(&:success?)
Success(value)
else
Failure(value)
end
... | <|file_sep|>original/spec/examples/hotel_booking_spec.rb
<|file_sep|>current/spec/examples/hotel_booking_spec.rb
<|file_sep|>updated/spec/examples/hotel_booking_spec.rb
require 'spec_helper'
require 'active_support/time'
describe 'Hotel Booking Example' do
module Request
def self.create(params, params_module... | bf9d0387eef435dfdd5327c37c248e65c536eb4d | spec/examples/hotel_booking_spec.rb | spec/examples/hotel_booking_spec.rb | Ruby |
<|file_sep|>original/djangocms_page_sitemap/settings.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.sitemaps import CMSSitemap
from cms.utils import get_cms_setting
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
PA... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.sitemaps import CMSSitemap
from cms.utils.conf import get_cms_setting
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
PAGE_SITEMAP_CHANGEFREQ_DEFAULT_LIST = {
'always'... | <|file_sep|>original/djangocms_page_sitemap/settings.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.sitemaps import CMSSitemap
from cms.utils import get_cms_setting
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
PA... | 2c6ccdacc2c4e54cf0a12618d60c963d9c67ef62 | djangocms_page_sitemap/settings.py | djangocms_page_sitemap/settings.py | Python |
<|file_sep|>LICENSE.txt.diff
original:
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,... | 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 disclaimer.
* Redistributions in binary form mus... | <|file_sep|>LICENSE.txt.diff
original:
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,... | 17ba1b425701283a234662001b50d3fcdf146fca | LICENSE.txt | LICENSE.txt | Text |
<|file_sep|>original/tests/test_default.py
assert not f.exists
def test_command_line_tools_dir(host):
f = host.file('/Library/Developer/CommandLineTools')
assert f.exists
assert f.is_directory
assert f.user == 'root'
assert f.group == 'admin'
assert f.mode == 0o755
def test_clt_package_m... | assert not f.exists
def test_command_line_tools_dir(host):
f = host.file('/Library/Developer/CommandLineTools')
assert f.exists
assert f.is_directory
assert f.user == 'root'
assert f.group == 'admin'
assert f.mode == 0o755
def test_clt_package_metadata(host):
c = host.command('pkguti... | <|file_sep|>original/tests/test_default.py
assert not f.exists
def test_command_line_tools_dir(host):
f = host.file('/Library/Developer/CommandLineTools')
assert f.exists
assert f.is_directory
assert f.user == 'root'
assert f.group == 'admin'
assert f.mode == 0o755
def test_clt_package_m... | 8aeaac1afa501ddc2a7b7992ceeb42a3f409bac0 | tests/test_default.py | tests/test_default.py | Python |
<|file_sep|>original/mk/os/Linux.mk
# this file is included by the main Makefile automatically
tsim$(EXE_SUFFIX): LDLIBS += -ldl
<|file_sep|>current/mk/os/Linux.mk
# this file is included by the main Makefile automatically
tsim$(EXE_SUFFIX): LDLIBS += -ldl
<|file_sep|>updated/mk/os/Linux.mk | # this file is included by the main Makefile automatically
tsim$(EXE_SUFFIX): LDLIBS += -ldl
tsim$(EXE_SUFFIX): LDFLAGS += -rdynamic | <|file_sep|>original/mk/os/Linux.mk
# this file is included by the main Makefile automatically
tsim$(EXE_SUFFIX): LDLIBS += -ldl
<|file_sep|>current/mk/os/Linux.mk
# this file is included by the main Makefile automatically
tsim$(EXE_SUFFIX): LDLIBS += -ldl
<|file_sep|>updated/mk/os/Linux.mk
# this file is included by t... | d24332fe0e4f5d339057ad8589dc052ed946b51b | mk/os/Linux.mk | mk/os/Linux.mk | Makefile |
<|file_sep|>original/autorun.rb
<|file_sep|>current/autorun.rb
<|file_sep|>updated/autorun.rb | mtimes = {}
loop do
Dir.glob("*.{rb,csv}") do |path|
mtime = File.mtime(path)
if mtimes[path].nil? or
mtimes[path] != mtime
system("ruby", "test-calculator.rb")
mtimes[path] = mtime
end
end
sleep 1
end | <|file_sep|>original/autorun.rb
<|file_sep|>current/autorun.rb
<|file_sep|>updated/autorun.rb
mtimes = {}
loop do
Dir.glob("*.{rb,csv}") do |path|
mtime = File.mtime(path)
if mtimes[path].nil? or
mtimes[path] != mtime
system("ruby", "test-calculator.rb")
mtimes[path] = mtime
end
... | c845b9e961686c0180b847f64970c17ebce3503e | autorun.rb | autorun.rb | Ruby |
<|file_sep|>original/project/build.sbt
scalacOptions := Seq(
"-deprecation"
)
// For MimeLoader plugin. Dogfooding and hoping it doesn't clash with
// our other sbt plugins.
libraryDependencies ++= List(
"com.eed3si9n" %% "treehugger" % "0.4.4",
"io.circe" %% "circe-generic" % "0.13.0",
"org.http4s" %% "http4s... | scalacOptions := Seq(
"-deprecation"
)
// For MimeLoader plugin. Dogfooding and hoping it doesn't clash with
// our other sbt plugins.
libraryDependencies ++= List(
"com.eed3si9n" %% "treehugger" % "0.4.4",
"io.circe" %% "circe-generic" % "0.13.0",
"org.http4s" %% "http4s-blaze-client" % "0.21.19",
"org.http... | <|file_sep|>original/project/build.sbt
scalacOptions := Seq(
"-deprecation"
)
// For MimeLoader plugin. Dogfooding and hoping it doesn't clash with
// our other sbt plugins.
libraryDependencies ++= List(
"com.eed3si9n" %% "treehugger" % "0.4.4",
"io.circe" %% "circe-generic" % "0.13.0",
"org.http4s" %% "http4s... | 8d29f49f0f4778c6c370d1020b3e570460d779de | project/build.sbt | project/build.sbt | Scala |
<|file_sep|>original/requirements/doc.txt
sphinx==1.8.1
alagitpull==0.0.21
releases==1.6.1
sphinxcontrib-napoleon==0.6.1
<|file_sep|>current/requirements/doc.txt
sphinx==1.8.1
alagitpull==0.0.21
releases==1.6.1
sphinxcontrib-napoleon==0.6.1
<|file_sep|>updated/requirements/doc.txt | sphinx==1.8.1
alagitpull==0.0.21
releases==1.6.1
sphinxcontrib-napoleon==0.7 | <|file_sep|>original/requirements/doc.txt
sphinx==1.8.1
alagitpull==0.0.21
releases==1.6.1
sphinxcontrib-napoleon==0.6.1
<|file_sep|>current/requirements/doc.txt
sphinx==1.8.1
alagitpull==0.0.21
releases==1.6.1
sphinxcontrib-napoleon==0.6.1
<|file_sep|>updated/requirements/doc.txt
sphinx==1.8.1
alagitpull==0.0.21
relea... | e8d08c7464d8b5a78b3a2c8178040953a7ad26e1 | requirements/doc.txt | requirements/doc.txt | Text |
<|file_sep|>Main.hs.diff
original:
updated:
{-# LANGUAGE DeriveGeneric #-}
<|file_sep|>Main.hs.diff
original:
import Web.Scotty as S
updated:
import Web.Scotty
<|file_sep|>Main.hs.diff
original:
import Data.Aeson
updated:
import Data.Aeson (FromJSON, ToJSON, decode, encode)
<|file_sep|>Main.hs.diff
original:
updated:... |
pointsFree code = readProcess process (sanitizeArgs code) ""
sanitizeArgs = words
process = ".cabal-sandbox/bin/pointfree"
main = do
port <- liftM read $ getEnv "PORT"
scotty port $ do
middleware logStdoutDev
middleware $ staticPolicy (noDots >-> addBase "static")
get "/" $ file "static/index.html"
... | <|file_sep|>Main.hs.diff
original:
updated:
{-# LANGUAGE DeriveGeneric #-}
<|file_sep|>Main.hs.diff
original:
import Web.Scotty as S
updated:
import Web.Scotty
<|file_sep|>Main.hs.diff
original:
import Data.Aeson
updated:
import Data.Aeson (FromJSON, ToJSON, decode, encode)
<|file_sep|>Main.hs.diff
original:
updated:... | e89ebddce2a956d94454d6fecec7169107b6a12b | Main.hs | Main.hs | Haskell |
<|file_sep|>original/README.md
the traces in which the exception bubbled up when it was raised.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'exception_bindings', group: [:development]
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_bindings
... | # Exception Bindings
This gem adds `Exception#bindings` method to every exception.
`Exception#bindings` gets populated with `Binding` objects in the context of
the traces in which the exception bubbled up when it was raised.
## Usage
The code is in alpha quality! Give it a thought, before using it. With that in
min... | <|file_sep|>original/README.md
the traces in which the exception bubbled up when it was raised.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'exception_bindings', group: [:development]
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_bindings
... | b54c2c7e040ceecff994ec9023881f674a73e39d | README.md | README.md | Markdown |
<|file_sep|>test/front.coffee.diff
original:
updated:
logger.set_levels 'development'
<|file_sep|>test/front.coffee.diff
original:
client = new WebSocket("ws://localhost:3020")
updated:
client = new WebSocket("ws://localhost:3021")
<|file_sep|>original/test/front.coffee
@front.start
it 'should start a W... | it 'should initialize', ->
@front.start
it 'should start a WSS', ->
stub = new WebSocketServer({port: 3021, host: "0.0.0.0"});
stub.on 'connection', () ->
logger.info 'Stub got a connection'
stub.on 'message', (message) ->
logger.info "Stub got message:" + message
stub.send 'Hello... | <|file_sep|>test/front.coffee.diff
original:
updated:
logger.set_levels 'development'
<|file_sep|>test/front.coffee.diff
original:
client = new WebSocket("ws://localhost:3020")
updated:
client = new WebSocket("ws://localhost:3021")
<|file_sep|>original/test/front.coffee
@front.start
it 'should start a W... | 7589d02b064faf80b3aff240ac3fc72a8604f6db | test/front.coffee | test/front.coffee | CoffeeScript |
<|file_sep|>composer.json.diff
original:
"description": "A wrapper for ocramius/package-versions to get pretty versions strings",
updated:
"description": "A library to get pretty versions strings of installed dependencies",
<|file_sep|>composer.json.diff
original:
"composer/package-versions-deprecated":... | {
"name": "jean85/pretty-package-versions",
"description": "A library to get pretty versions strings of installed dependencies",
"type": "library",
"require": {
"php": "^7.0|^8.0",
"composer-runtime-api": "^2.0.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0|^8.5|^9.4"
... | <|file_sep|>composer.json.diff
original:
"description": "A wrapper for ocramius/package-versions to get pretty versions strings",
updated:
"description": "A library to get pretty versions strings of installed dependencies",
<|file_sep|>composer.json.diff
original:
"composer/package-versions-deprecated":... | 5197116bcf4cb14afde1de6805c2d24abfbe15e6 | composer.json | composer.json | JSON |
<|file_sep|>original/src/main/webapp/components/BuildSnapshotContainer.js
/**
* Fetch data when component is mounted.
* Pass in empty array as second paramater to prevent
* infinite callbacks as component refreshes.
* @see <a href="www.robinwieruch.de/react-hooks-fetch-data">Fetching</a>
*... |
/**
* Fetch data when component is mounted.
* Pass in empty array as second paramater to prevent
* infinite callbacks as component refreshes.
* @see <a href="www.robinwieruch.de/react-hooks-fetch-data">Fetching</a>
*/
React.useEffect(() => {
fetch(SOURCE)
.then(res => res... | <|file_sep|>original/src/main/webapp/components/BuildSnapshotContainer.js
/**
* Fetch data when component is mounted.
* Pass in empty array as second paramater to prevent
* infinite callbacks as component refreshes.
* @see <a href="www.robinwieruch.de/react-hooks-fetch-data">Fetching</a>
*... | f25134fc24b46a2cbb3b3f576dad8ffef0204414 | src/main/webapp/components/BuildSnapshotContainer.js | src/main/webapp/components/BuildSnapshotContainer.js | JavaScript |
<|file_sep|>original/tasks/compile-lattice-tgz/task.yml
---
platform: linux
image: docker:///cloudfoundry/lattice-ci
inputs:
- name: lattice-ci
- name: lattice-release
run:
path: lattice-ci/tasks/compile-lattice-tgz/run.sh
<|file_sep|>current/tasks/compile-lattice-tgz/task.yml
---
platform: linux
image: docker:///cl... | ---
platform: linux
image: docker:///cloudfoundry/lattice-ci
inputs:
- name: lattice-ci
- name: lattice-release
- name: lattice-tgz-version
run:
path: lattice-ci/tasks/compile-lattice-tgz/run.sh
| <|file_sep|>original/tasks/compile-lattice-tgz/task.yml
---
platform: linux
image: docker:///cloudfoundry/lattice-ci
inputs:
- name: lattice-ci
- name: lattice-release
run:
path: lattice-ci/tasks/compile-lattice-tgz/run.sh
<|file_sep|>current/tasks/compile-lattice-tgz/task.yml
---
platform: linux
image: docker:///cl... | 1416acce841a80d8ae07212e436f2dcf86f79e6f | tasks/compile-lattice-tgz/task.yml | tasks/compile-lattice-tgz/task.yml | YAML |
<|file_sep|>original/Readme.md
# Cap'n Proto serialization for Scala & Scala.js
Also hopefully RPC in the future
<|file_sep|>current/Readme.md
# Cap'n Proto serialization for Scala & Scala.js
Also hopefully RPC in the future
<|file_sep|>updated/Readme.md | # Cap'n Proto serialization for Scala & Scala.js
See [Cap'n Proto homepage](https://capnproto.org/index.html) for more details about the protocol and RPC system.
Also hopefully RPC in the future
| <|file_sep|>original/Readme.md
# Cap'n Proto serialization for Scala & Scala.js
Also hopefully RPC in the future
<|file_sep|>current/Readme.md
# Cap'n Proto serialization for Scala & Scala.js
Also hopefully RPC in the future
<|file_sep|>updated/Readme.md
# Cap'n Proto serialization for Scala & Scala.js
See [Cap'... | 7826007ab2d10a965b243f619f2d6b0dd10456b7 | Readme.md | Readme.md | Markdown |
<|file_sep|>original/examples/continuous_recordings.py
<|file_sep|>current/examples/continuous_recordings.py
<|file_sep|>updated/examples/continuous_recordings.py | #!/usr/bin/env python3
# One common issue is that Saleae records traces into memory, which means that
# it can't handle very long captures. This example shows how to use scripting to
# do long recordings over time. There will be brief gaps every time Saleae saves
# the old recording and starts a new one.
import os
im... | <|file_sep|>original/examples/continuous_recordings.py
<|file_sep|>current/examples/continuous_recordings.py
<|file_sep|>updated/examples/continuous_recordings.py
#!/usr/bin/env python3
# One common issue is that Saleae records traces into memory, which means that
# it can't handle very long captures. This example s... | 0d31f071b5a5ba76f484ffa49e32f34381b44281 | examples/continuous_recordings.py | examples/continuous_recordings.py | Python |
<|file_sep|>original/stdnum/br/__init__.py
# __init__.py - collection of Brazilian numbers
# coding: utf-8
#
# Copyright (C) 2012 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foun... | # coding: utf-8
#
# Copyright (C) 2012 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# Thi... | <|file_sep|>original/stdnum/br/__init__.py
# __init__.py - collection of Brazilian numbers
# coding: utf-8
#
# Copyright (C) 2012 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foun... | 69d22e9e7ff574d4f510269e589dafa45132047f | stdnum/br/__init__.py | stdnum/br/__init__.py | Python |
<|file_sep|>original/pillar/git_global.sls
git_global:
user.name: "Mayeul d'Avezac"
user.email: m.davezac@ucl.ac.uk
core.editor: vim
core.autoclrf: input
core.excludesfile: ~/.dotfiles/gitignore
color.ui: true
apply.whitespace: nowarn
branch.autosetupmerge: true
push.default: upstream
advice.statusH... | git_global:
user.name: "Mayeul d'Avezac"
user.email: m.davezac@ucl.ac.uk
core.editor: vim
core.autoclrf: input
core.excludesfile: ~/.dotfiles/gitignore
color.ui: true
apply.whitespace: nowarn
branch.autosetupmerge: true
push.default: upstream
advice.statusHints: false
format.pretty: format:%C(blue... | <|file_sep|>original/pillar/git_global.sls
git_global:
user.name: "Mayeul d'Avezac"
user.email: m.davezac@ucl.ac.uk
core.editor: vim
core.autoclrf: input
core.excludesfile: ~/.dotfiles/gitignore
color.ui: true
apply.whitespace: nowarn
branch.autosetupmerge: true
push.default: upstream
advice.statusH... | 36cd7954c6011c2f3e1fffa193b02ff663b8ab8b | pillar/git_global.sls | pillar/git_global.sls | SaltStack |
<|file_sep|>original/src/ui/overlay_test.js
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
base.require('ui.overlay');
base.unittest.testSuite('ui.overlay', function() {
test('sho... | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
base.require('ui.overlay');
base.unittest.testSuite('ui.overlay', function() {
test('instantiate', function() {
var dlg = new ui... | <|file_sep|>original/src/ui/overlay_test.js
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
base.require('ui.overlay');
base.unittest.testSuite('ui.overlay', function() {
test('sho... | d42ae5a30b93398740c0868399f7f4b0239d945d | src/ui/overlay_test.js | src/ui/overlay_test.js | JavaScript |
<|file_sep|>original/system/library/Message.php
<|file_sep|>current/system/library/Message.php
<|file_sep|>updated/system/library/Message.php | <?php
namespace Library;
/**
* For storing messages to displaying to the user later. Use \Library\Session
* for storing the message.
*
* @package Library
*
* @see \Library\Session
*/
class Message
{
private $msg = array();
private $flashCount = array(... | <|file_sep|>original/system/library/Message.php
<|file_sep|>current/system/library/Message.php
<|file_sep|>updated/system/library/Message.php
<?php
namespace Library;
/**
* For storing messages to displaying to the user later. Use \Library\Session
* for storing the message.
*
* @package L... | 8385e3d8bd45df364e3c9a696d46a2f0815efc41 | system/library/Message.php | system/library/Message.php | PHP |
<|file_sep|>original/ibmcnx/doc/DataSources.py
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check... | # Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Applications... | <|file_sep|>original/ibmcnx/doc/DataSources.py
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check... | 50ba0c2c576a4b9eddaa64537dadfd8684463794 | ibmcnx/doc/DataSources.py | ibmcnx/doc/DataSources.py | Python |
<|file_sep|>.codeclimate.yml.diff
original:
radon:
updated:
radon:
<|file_sep|>.codeclimate.yml.diff
original:
config:
updated:
config:
<|file_sep|>original/.codeclimate.yml
engines:
radon:
enabled: true
config:
python_version: 2
duplication:
enabled: true
config:
languag... | engines:
radon:
enabled: true
config:
python_version: 2
threshold: "C"
duplication:
enabled: true
config:
languages:
- python
pep8:
enabled: true
checks:
E501:
enabled: false
ratings:
paths:
- "**.py" | <|file_sep|>.codeclimate.yml.diff
original:
radon:
updated:
radon:
<|file_sep|>.codeclimate.yml.diff
original:
config:
updated:
config:
<|file_sep|>original/.codeclimate.yml
engines:
radon:
enabled: true
config:
python_version: 2
duplication:
enabled: true
config:
languag... | 3bce9060b241c48d2fabbb4fbc7d18185d31b670 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>original/app/views/notes/_resources.html.slim
#resource.tab-pane
.well
.text-center
h1 Add resource:
p
input.form-control placeholder="URL" type="text"
p
input.form-control placeholder="Title" type="text"
p
textarea.form-control placeholder="Description"... | #resource.tab-pane
.well
.text-center
h1 Add resource:
p
input.form-control placeholder="URL" type="text"
p
input.form-control placeholder="Title" type="text"
p
textarea.form-control placeholder="Description" rows="3"
p
button.btn.btn-primary data-targ... | <|file_sep|>original/app/views/notes/_resources.html.slim
#resource.tab-pane
.well
.text-center
h1 Add resource:
p
input.form-control placeholder="URL" type="text"
p
input.form-control placeholder="Title" type="text"
p
textarea.form-control placeholder="Description"... | 445bc3a909bd1927467ae56a2c2a094ff6d393ae | app/views/notes/_resources.html.slim | app/views/notes/_resources.html.slim | Slim |
<|file_sep|>original/package.json
"type": "git",
"url": "git://github.com/benjamn/recast.git"
},
"main": "main.js",
"scripts": {
"test": "node ./node_modules/mocha/bin/mocha --reporter spec"
},
"dependencies": {
"esprima": "~1.1.1",
"source-map": "0.1.32",
"private": "~0.1.2",
"cls... | "type": "git",
"url": "git://github.com/benjamn/recast.git"
},
"main": "main.js",
"scripts": {
"test": "node ./node_modules/mocha/bin/mocha --reporter spec"
},
"dependencies": {
"esprima": "~1.1.1",
"source-map": "0.1.32",
"private": "~0.1.2",
"cls": "~0.1.3",
"ast-types": "~0.... | <|file_sep|>original/package.json
"type": "git",
"url": "git://github.com/benjamn/recast.git"
},
"main": "main.js",
"scripts": {
"test": "node ./node_modules/mocha/bin/mocha --reporter spec"
},
"dependencies": {
"esprima": "~1.1.1",
"source-map": "0.1.32",
"private": "~0.1.2",
"cls... | 47e1fdcbc19bd0244ba22bcf7b0d71b9858d4322 | package.json | package.json | JSON |
<|file_sep|>original/src/templates/dashboard.html
<div class="dashboard-container">
<h1>
{{model.title}}
<span style="font-size: 16px" class="pull-right">
<a href="" ng-if="editMode" title="add new widget" ng-click="addWidgetDialog()">
<i class="glyphicon glyphicon-plus-sign"></i>
</a>
... | <div class="dashboard-container">
<div ng-if="model.htmlTitle">
<div ng-bind-html="model.htmlTitle"></div>
</div>
<div ng-if="!model.htmlTitle">
<h1>
{{model.title}}
<span style="font-size: 16px" class="pull-right">
<a href="" ng-if="editMode" title="add new widget" ng-click="addWidge... | <|file_sep|>original/src/templates/dashboard.html
<div class="dashboard-container">
<h1>
{{model.title}}
<span style="font-size: 16px" class="pull-right">
<a href="" ng-if="editMode" title="add new widget" ng-click="addWidgetDialog()">
<i class="glyphicon glyphicon-plus-sign"></i>
</a>
... | 2f4545612acb7e92f051f130e0fb6d0108799a7c | src/templates/dashboard.html | src/templates/dashboard.html | HTML |
<|file_sep|>README.md.diff
original:
Just playing around with a very simple virtual CPU along with a toy language that targets it.
updated:
Just playing around with a very simple virtual CPU along with toy languages that target it. Really, nothing original here. I'm doing this for my own edification.
<|file_sep|>origin... | Just playing around with a very simple virtual CPU along with toy languages that target it. Really, nothing original here. I'm doing this for my own edification.
This is being written in Java (JDK 6) and as such uses Eclipse. If you want to develop in that environment, then you'll need to load your workspace with all ... | <|file_sep|>README.md.diff
original:
Just playing around with a very simple virtual CPU along with a toy language that targets it.
updated:
Just playing around with a very simple virtual CPU along with toy languages that target it. Really, nothing original here. I'm doing this for my own edification.
<|file_sep|>origin... | bebe33f5ca1d956616c475f47498d7487b9e3fc5 | README.md | README.md | Markdown |
<|file_sep|>original/requirements.txt
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --no-annotate --output-file requirements.txt requirements.in
#
asn1crypto==0.22.0
attrs==17.2.0
automat==0.6.0
cffi==1.10.0; platform_python_implementation != 'PyPy'
constantly==15.1.0
cryptography==1.... | # This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --no-annotate --output-file requirements.txt requirements.in
#
asn1crypto==0.22.0
attrs==17.2.0
automat==0.6.0
cffi==1.10.0; platform_python_implementation != 'PyPy'
constantly==15.1.0
cryptography==1.9
enum34==1.1.6
idna==2.5
incremental=... | <|file_sep|>original/requirements.txt
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --no-annotate --output-file requirements.txt requirements.in
#
asn1crypto==0.22.0
attrs==17.2.0
automat==0.6.0
cffi==1.10.0; platform_python_implementation != 'PyPy'
constantly==15.1.0
cryptography==1.... | d0ea9959eb1b2585cf4c2c694034619181e53a80 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/.travis.yml
before_install:
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- wget -nc -P "$HOME/cache" "http://download.geofabrik.de/europe/liechtenst... | before_install:
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- wget -nc -P "$HOME/cache" "http://download.geofabrik.de/europe/liechtenstein-160101.osm.pbf"
- mkdir -p ... | <|file_sep|>original/.travis.yml
before_install:
- curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- wget -nc -P "$HOME/cache" "http://download.geofabrik.de/europe/liechtenst... | a2abe85b531696de776517a229601e28884235e2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/_posts/2018-09-10-DC-python.markdown
<|file_sep|>current/_posts/2018-09-10-DC-python.markdown
<|file_sep|>updated/_posts/2018-09-10-DC-python.markdown | ---
title: Data Carpentry Workshop (2 days) - Data analysis and visualization in Python
text: "Join us for a hands-on two-day Data Carpentry workshop covering core small research team skills
including data organization and cleaning, data analysis, and data visualization.
Workshop costs $25 and is open to everyone. Cli... | <|file_sep|>original/_posts/2018-09-10-DC-python.markdown
<|file_sep|>current/_posts/2018-09-10-DC-python.markdown
<|file_sep|>updated/_posts/2018-09-10-DC-python.markdown
---
title: Data Carpentry Workshop (2 days) - Data analysis and visualization in Python
text: "Join us for a hands-on two-day Data Carpentry works... | 4d432b8da7f1184d1921165239267b13c0ebae58 | _posts/2018-09-10-DC-python.markdown | _posts/2018-09-10-DC-python.markdown | Markdown |
<|file_sep|>src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs.diff
original:
internal class RelationNameFormatter : IJsonFormatter<RelationName>
updated:
internal class RelationNameFormatter : IJsonFormatter<RelationName>, IObjectPropertyNameFormatter<RelationName>
<|file_sep|>original/src/Nest/... | }
public void Serialize(ref JsonWriter writer, RelationName value, IJsonFormatterResolver formatterResolver)
{
if (value == null)
{
writer.WriteNull();
return;
}
var settings = formatterResolver.GetConnectionSettings();
writer.WriteString(settings.Inferrer.RelationName(value));
}
pub... | <|file_sep|>src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs.diff
original:
internal class RelationNameFormatter : IJsonFormatter<RelationName>
updated:
internal class RelationNameFormatter : IJsonFormatter<RelationName>, IObjectPropertyNameFormatter<RelationName>
<|file_sep|>original/src/Nest/... | 37cc088278498f8ad8e2f00c018d03e1389617da | src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs | src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs | C# |
<|file_sep|>test/es.yml.diff
original:
updated:
pilot:
image: pilot
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /:/host
environment:
FLUENTD_OUTPUT: elasticsearch
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
links:
- elasticsearch
<|file_se... | image: kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200/
labels:
aliyun.routing.port_5601: kibana
links:
- elasticsearch
pilot:
image: pilot
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /:/host
environme... | <|file_sep|>test/es.yml.diff
original:
updated:
pilot:
image: pilot
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /:/host
environment:
FLUENTD_OUTPUT: elasticsearch
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
links:
- elasticsearch
<|file_se... | e1c8ea7fb79e03061a56450220a9c77a98d8727a | test/es.yml | test/es.yml | YAML |
<|file_sep|>original/README.md
Motivation
==========
A TCP proxy is not very original and there are many implementations. I inherited the code for one at work which wasn't
very good. We also had three different versions of it lying around. I spent a morning replacing them with a cleaner,
single implementation. I wasn'... | ==========
A TCP proxy is not very original and there are many implementations. I inherited the code for one at work which wasn't
very good. We also had three different versions of it lying around. I spent a morning replacing them with a cleaner,
single implementation. I wasn't very happy with it though because it too... | <|file_sep|>original/README.md
Motivation
==========
A TCP proxy is not very original and there are many implementations. I inherited the code for one at work which wasn't
very good. We also had three different versions of it lying around. I spent a morning replacing them with a cleaner,
single implementation. I wasn'... | 8b6505f876340a0586f346644171ac2e9cc5c22c | README.md | README.md | Markdown |
<|file_sep|>chainer/training/triggers/__init__.py.diff
original:
updated:
from chainer.training.triggers.early_stopping_trigger import EarlyStoppingTrigger # NOQA
<|file_sep|>original/chainer/training/triggers/__init__.py
from chainer.training.triggers import interval_trigger # NOQA
from chainer.training.triggers im... | from chainer.training.triggers import interval_trigger # NOQA
from chainer.training.triggers import minmax_value_trigger # NOQA
# import class and function
from chainer.training.triggers.early_stopping_trigger import EarlyStoppingTrigger # NOQA
from chainer.training.triggers.interval_trigger import IntervalTrigger... | <|file_sep|>chainer/training/triggers/__init__.py.diff
original:
updated:
from chainer.training.triggers.early_stopping_trigger import EarlyStoppingTrigger # NOQA
<|file_sep|>original/chainer/training/triggers/__init__.py
from chainer.training.triggers import interval_trigger # NOQA
from chainer.training.triggers im... | dddf89e519e40ce118509dcb5823ad932fea88f8 | chainer/training/triggers/__init__.py | chainer/training/triggers/__init__.py | Python |
<|file_sep|>original/lib/cloudstrap/amazon/elb.rb
Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list
@list ||= list!
end
Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list!
@list = call... | Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list
@list ||= list!
end
Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list!
@list = call_api(:describe_load_balancers).load_balancer_descr... | <|file_sep|>original/lib/cloudstrap/amazon/elb.rb
Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list
@list ||= list!
end
Contract None => ArrayOf[::Aws::ElasticLoadBalancing::Types::LoadBalancerDescription]
def list!
@list = call... | 130616da57441646371e2931f8d72ebbd04f7b4c | lib/cloudstrap/amazon/elb.rb | lib/cloudstrap/amazon/elb.rb | Ruby |
<|file_sep|>original/ova/README.md
### Pre-Considerations
* This is a showcase of Graylog and its cluster mode. Please run this appliance always in a separated network that is isolated from the internet.
Read also the production readiness [notes](http://docs.graylog.org/en/latest/pages/installation/virtual_machi... | ### Pre-Considerations
* This is a showcase of Graylog and its cluster mode. Please run this appliance always in a separated network that is isolated from the internet.
Read also the production readiness [notes](http://docs.graylog.org/en/latest/pages/installation/virtual_machine_appliances.html#production-readi... | <|file_sep|>original/ova/README.md
### Pre-Considerations
* This is a showcase of Graylog and its cluster mode. Please run this appliance always in a separated network that is isolated from the internet.
Read also the production readiness [notes](http://docs.graylog.org/en/latest/pages/installation/virtual_machi... | 7224725f5859093c7f4dc25f775e2997b15fa58d | ova/README.md | ova/README.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
updated:
- MRUBY_VERSION=1.3.0
<|file_sep|>original/.travis.yml
- gperf
- libc6-dev
compiler:
- gcc
- clang
env:
- MRUBY_VERSION=1.2.0
- MRUBY_VERSION=master
before_install:
- sudo apt-get -qq update
matrix:
allow_failures:
- env: MRUBY_VERSION=mast... | - libc6-dev
compiler:
- gcc
- clang
env:
- MRUBY_VERSION=1.2.0
- MRUBY_VERSION=1.3.0
- MRUBY_VERSION=master
before_install:
- sudo apt-get -qq update
# matrix:
# allow_failures:
# - env: MRUBY_VERSION=master
branches:
only:
- master
script:
- rake format
- rake test | <|file_sep|>.travis.yml.diff
original:
updated:
- MRUBY_VERSION=1.3.0
<|file_sep|>original/.travis.yml
- gperf
- libc6-dev
compiler:
- gcc
- clang
env:
- MRUBY_VERSION=1.2.0
- MRUBY_VERSION=master
before_install:
- sudo apt-get -qq update
matrix:
allow_failures:
- env: MRUBY_VERSION=mast... | cc02c05ac64c9b3a8fce8a41e7201bcbd1fd0876 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/metro_accounts/metro_account.py
# -*- coding: utf-8 -*-
import time
from openerp.report import report_sxw
from openerp.osv import fields, osv
class account_account(osv.osv):
_inherit = "account.account"
_columns={
'name': fields.char('Name', size=256, required=True, select=True... | # -*- coding: utf-8 -*-
import time
from openerp.report import report_sxw
from openerp.osv import fields, osv
class account_account(osv.osv):
_inherit = "account.account"
_columns={
'name': fields.char('Name', size=256, required=True, select=True, translate=True),
'bal_direct': fields.selec... | <|file_sep|>original/metro_accounts/metro_account.py
# -*- coding: utf-8 -*-
import time
from openerp.report import report_sxw
from openerp.osv import fields, osv
class account_account(osv.osv):
_inherit = "account.account"
_columns={
'name': fields.char('Name', size=256, required=True, select=True... | 087925b336794b71675b31b70f845042e1f635fb | metro_accounts/metro_account.py | metro_accounts/metro_account.py | Python |
<|file_sep|>packages/ut/util.yaml.diff
original:
hash: f21e6fe6ab94833331a7795f35936043e50e3696fe26e05f9403661a64fff0b6
updated:
hash: 3e1050fd77f815854cf7fe549bf0f3b5e622e05e235267ad6be044e3d21627b1
<|file_sep|>packages/ut/util.yaml.diff
original:
updated:
- '0.1.3.0'
<|file_sep|>original/packages/ut/util.yaml
homepa... | homepage: ''
changelog-type: ''
hash: 3e1050fd77f815854cf7fe549bf0f3b5e622e05e235267ad6be044e3d21627b1
test-bench-deps: {}
maintainer: strake888@gmail.com
synopsis: Utilities
changelog: ''
basic-deps:
base: ! '>=4.9 && <4.12'
all-versions:
- '0.1.0.0'
- '0.1.1.0'
- '0.1.2.0'
- '0.1.2.1'
- '0.1.3.0'
author: M Farkas-D... | <|file_sep|>packages/ut/util.yaml.diff
original:
hash: f21e6fe6ab94833331a7795f35936043e50e3696fe26e05f9403661a64fff0b6
updated:
hash: 3e1050fd77f815854cf7fe549bf0f3b5e622e05e235267ad6be044e3d21627b1
<|file_sep|>packages/ut/util.yaml.diff
original:
updated:
- '0.1.3.0'
<|file_sep|>original/packages/ut/util.yaml
homepa... | 01cf51ac7da2d0f705be6552e72048015cd6a3fe | packages/ut/util.yaml | packages/ut/util.yaml | YAML |
<|file_sep|>original/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php
<|file_sep|>current/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php
<|file_sep|>updated/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveReviewSourceFromItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('reportback_items', function (Blueprint $t... | <|file_sep|>original/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php
<|file_sep|>current/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php
<|file_sep|>updated/database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php
<?php
use Illumi... | d00ea042d4099bbe4b00c181e464ff3ab47a9b8e | database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php | database/migrations/2016_11_14_193858_remove_review_source_from_items_table.php | PHP |
<|file_sep|>original/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql
<|file_sep|>current/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql
<|file_sep|>updated/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql | alter table translation_kit_not_found_text_unit_ids drop foreign key FK_aw1j6y6fkkgf1tsgqw45o95am;
alter table translation_kit_not_found_text_unit_ids
add constraint FK__TRANSLATION_KIT_NOT_FOUND_TEXT_UNIT_IDS__TRANSLATION_KIT__ID
foreign key (translation_kit_id) references translation_kit (id); | <|file_sep|>original/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql
<|file_sep|>current/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql
<|file_sep|>updated/webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql
alter table translation_kit_not_found_text_unit_ids drop fo... | 7212f96108e519f48208ca285e875a3f188f0265 | webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql | webapp/src/main/resources/db/migration/V51__Fix_fk_tknotfound.sql | SQL |
<|file_sep|>original/_posts/2018-06-25-code_smells_episode_1:_that_shit_is_vile.md
| **Duplicated code** | Same expression in two or more methods of the
same class | `Extract Method` |
| | Same expression in two sibling subclasses | `Extract
Method`, `Pull Up Method` |
| | Similar expressi... | | `Substitute Algorithm` |
| | Same expression in the middle of two or more methods
| `Extract Surrounding Method` |
| | Same expressions in two or more unrelated classes |
`Extract Class`, `Extract Module` |
| **Long method** | Too many temporary variables | `Replace Temp with
Query`, `R... | <|file_sep|>original/_posts/2018-06-25-code_smells_episode_1:_that_shit_is_vile.md
| **Duplicated code** | Same expression in two or more methods of the
same class | `Extract Method` |
| | Same expression in two sibling subclasses | `Extract
Method`, `Pull Up Method` |
| | Similar expressi... | db0f1e9168a3d30a1184d62bd5cd885fb3ef3fce | _posts/2018-06-25-code_smells_episode_1:_that_shit_is_vile.md | _posts/2018-06-25-code_smells_episode_1:_that_shit_is_vile.md | Markdown |
<|file_sep|>original/README.md
XML Search Engines Exporter/Importer (XSEEI)
--------------------------------------------
A lightweight add-on for Mozilla Firefox to import and export search engines from XML files in the [OpenSearch format] (https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Fi... | XML Search Engines Exporter/Importer (XSEEI)
--------------------------------------------
A lightweight add-on for Mozilla Firefox to import and export search engines from XML files in the [OpenSearch format] (https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Firefox).
The latest public relea... | <|file_sep|>original/README.md
XML Search Engines Exporter/Importer (XSEEI)
--------------------------------------------
A lightweight add-on for Mozilla Firefox to import and export search engines from XML files in the [OpenSearch format] (https://developer.mozilla.org/en-US/Add-ons/Creating_OpenSearch_plugins_for_Fi... | 045033c4fae3a3416988d51b4e7475f9b8c05ebf | README.md | README.md | Markdown |
<|file_sep|>README.rst.diff
original:
This library helps integrate RawES_ in a pyramid application.
updated:
This library helps integrate rawes_ in a pyramid application.
<|file_sep|>README.rst.diff
original:
RawES_ instance, you can use the pyramid settings file.
updated:
rawes_ instance, you can use the pyramid setti... | rawes.url = localhost:9500
rawes.connection_type = http
Once you have activated pyramid_rawes, a rawes_ instance is added to the registry.
Usage
-----
To get a rawes_ instance, call get_rawes with the current application registry.
Eg. in a view:
.. code-block:: python
from pyramid_rawes import get_raw... | <|file_sep|>README.rst.diff
original:
This library helps integrate RawES_ in a pyramid application.
updated:
This library helps integrate rawes_ in a pyramid application.
<|file_sep|>README.rst.diff
original:
RawES_ instance, you can use the pyramid settings file.
updated:
rawes_ instance, you can use the pyramid setti... | 8fe8bf87a79c0832e3811c693029d0fd59b0d59b | README.rst | README.rst | reStructuredText |
<|file_sep|>comics/accounts/admin.py.diff
original:
updated:
def subscription_count(obj):
return obj.comics.count()
<|file_sep|>original/comics/accounts/admin.py
from django.contrib import admin
from comics.accounts import models
class SubscriptionInline(admin.StackedInline):
model = models.Subscription
... |
class SubscriptionInline(admin.StackedInline):
model = models.Subscription
extra = 1
def email(obj):
return obj.user.email
def subscription_count(obj):
return obj.comics.count()
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', email, 'secret_key', subscription_count)
inli... | <|file_sep|>comics/accounts/admin.py.diff
original:
updated:
def subscription_count(obj):
return obj.comics.count()
<|file_sep|>original/comics/accounts/admin.py
from django.contrib import admin
from comics.accounts import models
class SubscriptionInline(admin.StackedInline):
model = models.Subscription
... | e2b77a2c98cbd51c5c0546e4146dd60af0a64c86 | comics/accounts/admin.py | comics/accounts/admin.py | Python |
<|file_sep|>original/.travis.yml
before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- yes | sudo add-apt-repository ppa:xorg-edgers/ppa
- yes | sudo add-apt-repository ppa:sven-eckelmann/ppa-wxwidgets2.9
- sudo apt-get update
install:
- sudo apt-get install rust-nightly libclang-3.3-dev libwxgt... | before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- yes | sudo add-apt-repository ppa:xorg-edgers/ppa
- yes | sudo apt-add-repository 'deb http://repos.codelite.org/wx2.9/ubuntu/ raring universe'
- sudo apt-get update
install:
- sudo apt-get install rust-nightly libclang-3.3-dev libwxgtk2.9-de... | <|file_sep|>original/.travis.yml
before_install:
- yes | sudo add-apt-repository ppa:hansjorg/rust
- yes | sudo add-apt-repository ppa:xorg-edgers/ppa
- yes | sudo add-apt-repository ppa:sven-eckelmann/ppa-wxwidgets2.9
- sudo apt-get update
install:
- sudo apt-get install rust-nightly libclang-3.3-dev libwxgt... | 8c191bdc1ae2bb4905a338c82ef982299e35ae59 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/tests/unit/opensrs/OpsTest.php
<|file_sep|>current/tests/unit/opensrs/OpsTest.php
<|file_sep|>updated/tests/unit/opensrs/OpsTest.php | <?php
use OpenSRS\Ops;
class OpsTest extends PHPUnit_Framework_TestCase
{
/**
* Should convert specials chars, & encode in utf8
*
* @return void
*/
public function testQuoteXMLChars()
{
$ops = new Ops;
$data = 'This is my & < > \' " string';
$result = $ops->_qu... | <|file_sep|>original/tests/unit/opensrs/OpsTest.php
<|file_sep|>current/tests/unit/opensrs/OpsTest.php
<|file_sep|>updated/tests/unit/opensrs/OpsTest.php
<?php
use OpenSRS\Ops;
class OpsTest extends PHPUnit_Framework_TestCase
{
/**
* Should convert specials chars, & encode in utf8
*
* @return vo... | 44ae6a154d5ea3b4a64de0feb1cb113b355dce8d | tests/unit/opensrs/OpsTest.php | tests/unit/opensrs/OpsTest.php | PHP |
<|file_sep|>original/recipes/rb-inotify/meta.yaml
requirements:
host:
- ruby {{ ruby }}
run:
- ruby
- rb-ffi >=1.0,<2
test:
commands:
- ruby -r {{ name }} -e 'exit 0'
about:
home: https://github.com/{{ github_org }}/{{ name }}
license: MIT
license_family: MIT
license_file: LICENSE.md
... |
requirements:
host:
- ruby {{ ruby }}
run:
- ruby
- rb-ffi >=1.0,<2
test:
commands:
- ruby -r {{ name }} -e 'exit 0' # [linux]
about:
home: https://github.com/{{ github_org }}/{{ name }}
license: MIT
license_family: MIT
license_file: LICENSE.md
summary: A Ruby wrapper for Linux inoti... | <|file_sep|>original/recipes/rb-inotify/meta.yaml
requirements:
host:
- ruby {{ ruby }}
run:
- ruby
- rb-ffi >=1.0,<2
test:
commands:
- ruby -r {{ name }} -e 'exit 0'
about:
home: https://github.com/{{ github_org }}/{{ name }}
license: MIT
license_family: MIT
license_file: LICENSE.md
... | 6f4bfb469b814c1fa0d892fd0a08523858acb391 | recipes/rb-inotify/meta.yaml | recipes/rb-inotify/meta.yaml | YAML |
<|file_sep|>original/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml
<|file_sep|>current/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml
<|file_sep|>updated/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml | ---
upgrade:
- Adds a config [amt]awake_interval for the interval to
wake up the AMT interface for a node. This should
correspond to the IdleTimeout config option on the
AMT interface. Setting to 0 will disable waking the
AMT interface, just like setting IdleTimeout=0 on the
AMT interface will dis... | <|file_sep|>original/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml
<|file_sep|>current/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml
<|file_sep|>updated/releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml
---
upgrade:
- Adds a config [amt]awake_interval for the interval to
wa... | 0f4bc99e5497267ad04375b820494d9facce1a19 | releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml | releasenotes/notes/amt-driver-wake-up-0880ed85476968be.yaml | YAML |
<|file_sep|>app/controllers/comments_controller.rb.diff
original:
expose(:post)
expose(:comments) { post.comments }
updated:
expose(:subject) { subject_from_params }
<|file_sep|>app/controllers/comments_controller.rb.diff
original:
updated:
before_action :add_subject, only: [:new, :edit, :create, :update]
<|fi... | authorize comment
comment.destroy
respond_with(campaign, game)
end
private
def comment_params
params.require(:comment).permit(:content)
end
def subject_from_params
if params.key?(:post_id)
Post.find(params[:post_id])
elsif params.key?(:idea_id)
Idea.find(params[:idea_id]... | <|file_sep|>app/controllers/comments_controller.rb.diff
original:
expose(:post)
expose(:comments) { post.comments }
updated:
expose(:subject) { subject_from_params }
<|file_sep|>app/controllers/comments_controller.rb.diff
original:
updated:
before_action :add_subject, only: [:new, :edit, :create, :update]
<|fi... | 7dbb899be9702b62890b0c6fd688cba3a189f7aa | app/controllers/comments_controller.rb | app/controllers/comments_controller.rb | Ruby |
<|file_sep|>original/cookbooks/blogs/templates/default/blogs-update.erb
#!/bin/sh
cd /srv/blogs.openstreetmap.org
/usr/local/bin/bundle<%= @ruby_version %> exec pluto \
--quieter \
--config=/srv/blogs.openstreetmap.org build \
--dbpath=/srv/blogs.openstreetmap.org \
--template=osm \
... | #!/bin/sh
cd /srv/blogs.openstreetmap.org
/usr/bin/bundle<%= @ruby_version %> exec pluto \
--quieter \
--config=/srv/blogs.openstreetmap.org build \
--dbpath=/srv/blogs.openstreetmap.org \
--template=osm \
--output=/srv/blogs.openstreetmap.org/build \
/srv/blogs.openstreetmap... | <|file_sep|>original/cookbooks/blogs/templates/default/blogs-update.erb
#!/bin/sh
cd /srv/blogs.openstreetmap.org
/usr/local/bin/bundle<%= @ruby_version %> exec pluto \
--quieter \
--config=/srv/blogs.openstreetmap.org build \
--dbpath=/srv/blogs.openstreetmap.org \
--template=osm \
... | 1b27f5b43b7a1503b1c1fd3635b9dbd18231440c | cookbooks/blogs/templates/default/blogs-update.erb | cookbooks/blogs/templates/default/blogs-update.erb | HTML+ERB |
<|file_sep|>original/app/models/image_decorator.rb
<|file_sep|>current/app/models/image_decorator.rb
<|file_sep|>updated/app/models/image_decorator.rb | module Spree
Image.class_eval do
# Move images under /system so that they are automatically symlinked by capistrano (deployments wont erase them then!)
has_attached_file :attachment,
styles: { mini: '48x48>', small: '100x100>', product: '240x240>', large: '600x600>' },
default_style: :product,
... | <|file_sep|>original/app/models/image_decorator.rb
<|file_sep|>current/app/models/image_decorator.rb
<|file_sep|>updated/app/models/image_decorator.rb
module Spree
Image.class_eval do
# Move images under /system so that they are automatically symlinked by capistrano (deployments wont erase them then!)
has_... | fa7052e067e6da8a3d8e5c6360f2ddce026cef39 | app/models/image_decorator.rb | app/models/image_decorator.rb | Ruby |
<|file_sep|>original/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java
<|file_sep|>current/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java
<|file_sep|>updated/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java | package org.codehaus.httpcache4j.payload;
import com.google.common.base.Charsets;
import com.google.common.io.ByteStreams;
import org.codehaus.httpcache4j.MIMEType;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.*;
public class PayloadTest {
@Test
public void generateByte... | <|file_sep|>original/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java
<|file_sep|>current/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java
<|file_sep|>updated/httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java
package org.codeh... | b784ab70bf2fbd8dbd9f15fc267afa2419b62169 | httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java | httpcache4j-api/src/test/java/org/codehaus/httpcache4j/payload/PayloadTest.java | Java |
<|file_sep|>docker/install_xdebug_beta.sh.diff
original:
#!/bin/bash
updated:
#!/bin/sh
<|file_sep|>docker/install_xdebug_beta.sh.diff
original:
pushd /tmp/;
wget "${URL}";
updated:
# Download, validate, and extract
(
cd /tmp/
wget "${URL}";
echo "${SHA}" "/tmp/${VERSION}.tgz" | sha256sum --check
tar... |
# Download, validate, and extract
(
cd /tmp/
wget "${URL}";
echo "${SHA}" "/tmp/${VERSION}.tgz" | sha256sum --check
tar -xzvf /tmp/${VERSION}.tgz;
)
# Installation steps
(
cd /tmp/${VERSION}/;
phpize;
./configure --enable-xdebug;
make clean;
make;
make install;
)
# Clean up... | <|file_sep|>docker/install_xdebug_beta.sh.diff
original:
#!/bin/bash
updated:
#!/bin/sh
<|file_sep|>docker/install_xdebug_beta.sh.diff
original:
pushd /tmp/;
wget "${URL}";
updated:
# Download, validate, and extract
(
cd /tmp/
wget "${URL}";
echo "${SHA}" "/tmp/${VERSION}.tgz" | sha256sum --check
tar... | 1705319acc117070861f707b12c7c954d6200454 | docker/install_xdebug_beta.sh | docker/install_xdebug_beta.sh | Shell |
<|file_sep|>views/vn.jade.diff
original:
h2 Aanwezigheidslijst
updated:
- count = 0
- for table in tables
for row in table.rows
- count++
h2= 'Aanwezigheidslijst (' + count + ')'
<|file_sep|>original/views/vn.jade
.container
.row(class='0%')
h2 Aa... | .container
.row(class='0%')
- count = 0
- for table in tables
for row in table.rows
- count++
h2= 'Aanwezigheidslijst (' + count + ')'
for table in tables
table.table
caption=verenigingen[table.name].name + ' (' + table.rows.length ... | <|file_sep|>views/vn.jade.diff
original:
h2 Aanwezigheidslijst
updated:
- count = 0
- for table in tables
for row in table.rows
- count++
h2= 'Aanwezigheidslijst (' + count + ')'
<|file_sep|>original/views/vn.jade
.container
.row(class='0%')
h2 Aa... | 2103fb7d87e2ef5d9aefde8121cd65afaf48f996 | views/vn.jade | views/vn.jade | Jade |
<|file_sep|>original/demo/analytics-pipeline/spark/service.spark.yaml
type: aptomi/code/kubernetes-helm
metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
master:
replicas: 1
... | metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
master:
replicas: 1
worker:
replicas: 1
service:
type: NodePort
zookeeper:
... | <|file_sep|>original/demo/analytics-pipeline/spark/service.spark.yaml
type: aptomi/code/kubernetes-helm
metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
master:
replicas: 1
... | 319fa749b4ba5264e7a9ee6bd0266c552c5f1650 | demo/analytics-pipeline/spark/service.spark.yaml | demo/analytics-pipeline/spark/service.spark.yaml | YAML |
<|file_sep|>original/db/migrate/20120129142117_rename_active_to_manual_enabled.rb
class RenameActiveToManualEnabled < ActiveRecord::Migration
def self.up
rename_column :listings, :active, :manual_enabled
change_column :listings, :manual_enabled, :boolean, :null => true
# Iterate over all listings to get l... | class RenameActiveToManualEnabled < ActiveRecord::Migration
def self.up
rename_column :listings, :active, :manual_enabled
change_column :listings, :manual_enabled, :boolean, :null => true
# Iterate over all listings to get listing_infos
Listing.includes(:listing_infos).where(:listing_infos => {:key =>... | <|file_sep|>original/db/migrate/20120129142117_rename_active_to_manual_enabled.rb
class RenameActiveToManualEnabled < ActiveRecord::Migration
def self.up
rename_column :listings, :active, :manual_enabled
change_column :listings, :manual_enabled, :boolean, :null => true
# Iterate over all listings to get l... | 24f93c1f8d88f2cf85cacd621c3c192730c6aabc | db/migrate/20120129142117_rename_active_to_manual_enabled.rb | db/migrate/20120129142117_rename_active_to_manual_enabled.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.