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/.travis.yml
global:
- setup=basic
matrix:
include:
- php: 5.5.9
env: setup=lowest
- php: 5.5.9
env: setup=stable
sudo: false
before_install:
- travis_retry composer self-update
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interact... | - php: 5.5.9
env: setup=lowest
- php: 5.5.9
env: setup=stable
sudo: false
before_install:
- travis_retry composer self-update
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
- if [[ $setup = 'stable' ]]; then travis_retry compose... | <|file_sep|>original/.travis.yml
global:
- setup=basic
matrix:
include:
- php: 5.5.9
env: setup=lowest
- php: 5.5.9
env: setup=stable
sudo: false
before_install:
- travis_retry composer self-update
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interact... | ddbe239f92be1a344142914d397c75eff604a275 | .travis.yml | .travis.yml | YAML |
<|file_sep|>packages/hs/hs2ats.yaml.diff
original:
hash: b234b82cd4a7a12d465ead624beb3e9be1190bca078b43fb5bb084f6366eddad
updated:
hash: bf5519979d73869d84ad0e192754fd9842720a8ebbe5093861a0a86dd01cf963
<|file_sep|>packages/hs/hs2ats.yaml.diff
original:
updated:
- '0.2.0.1'
<|file_sep|>original/packages/hs/hs2ats.yaml
... | haskell-src-exts: -any
lens: -any
hs2ats: -any
deepseq: -any
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.2.0.0'
- '0.2.0.1'
author: Vanessa McHale
latest: '0.2.0.1'
description-type: markdown
description: ! '# hs2ats
This is a tool to convert Haskell types to ATS types. So far it works quite
well, but doc... | <|file_sep|>packages/hs/hs2ats.yaml.diff
original:
hash: b234b82cd4a7a12d465ead624beb3e9be1190bca078b43fb5bb084f6366eddad
updated:
hash: bf5519979d73869d84ad0e192754fd9842720a8ebbe5093861a0a86dd01cf963
<|file_sep|>packages/hs/hs2ats.yaml.diff
original:
updated:
- '0.2.0.1'
<|file_sep|>original/packages/hs/hs2ats.yaml
... | dc17e6b21d7573c13d09598ef55b5ed46471e3c7 | packages/hs/hs2ats.yaml | packages/hs/hs2ats.yaml | YAML |
<|file_sep|>original/lib/watcher.ex
path |> normalize |> reload
end
{:noreply, state}
end
defp reload(file) do
if Path.extname(file) == ".ex" do
try do
file
|> Code.load_file()
|> Enum.map(&elem(&1, 0))
|> Enum.find(&Runner.koan?/1)
|> Runner.modules... | path |> normalize |> reload
end
{:noreply, state}
end
defp reload(file) do
if Path.extname(file) == ".ex" do
try do
file
|> Code.compile_file()
|> Enum.map(&elem(&1, 0))
|> Enum.find(&Runner.koan?/1)
|> Runner.modules_to_run()
|> Runner.run()... | <|file_sep|>original/lib/watcher.ex
path |> normalize |> reload
end
{:noreply, state}
end
defp reload(file) do
if Path.extname(file) == ".ex" do
try do
file
|> Code.load_file()
|> Enum.map(&elem(&1, 0))
|> Enum.find(&Runner.koan?/1)
|> Runner.modules... | 8c0c314e78b40f4d5d19bc6755b09e4fa8cb3974 | lib/watcher.ex | lib/watcher.ex | Elixir |
<|file_sep|>integration.sh.diff
original:
if [[ $v == 1.2.* ]]; then
updated:
if [[ $version == 1.2.* ]]; then
<|file_sep|>original/integration.sh
#!/bin/bash
set -e
function run_tests() {
local version=$1
ccm create test -v $version -n 3 -s --debug
ccm status
if [[ $v == 1.2.* ]]; then
go test -v ./... -pr... | #!/bin/bash
set -e
function run_tests() {
local version=$1
ccm create test -v $version -n 3 -s --debug
ccm status
if [[ $version == 1.2.* ]]; then
go test -v ./... -proto 1
else
go test -v ./...
fi
ccm clear
}
run_tests $1 | <|file_sep|>integration.sh.diff
original:
if [[ $v == 1.2.* ]]; then
updated:
if [[ $version == 1.2.* ]]; then
<|file_sep|>original/integration.sh
#!/bin/bash
set -e
function run_tests() {
local version=$1
ccm create test -v $version -n 3 -s --debug
ccm status
if [[ $v == 1.2.* ]]; then
go test -v ./... -pr... | 4f65494ff3bf6581d315ee221bc53a05f7a4bddd | integration.sh | integration.sh | Shell |
<|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Darrell Hamilton",
"email": "darrell.noice@gmail.com"
}
],
"require": {
"php": ">=5.3.2",
"symfony/http-foundation": ">=2.0.4, <=2.3.x-dev",
"symfony/http-kernel":... | "license": "MIT",
"authors": [
{
"name": "Darrell Hamilton",
"email": "darrell.noice@gmail.com"
}
],
"require": {
"php": ">=5.3.2",
"symfony/http-foundation": ">=2.0.4, <=2.4.x-dev",
"symfony/http-kernel": ">=2.0.4, <=2.4.x-dev",
"s... | <|file_sep|>original/composer.json
"license": "MIT",
"authors": [
{
"name": "Darrell Hamilton",
"email": "darrell.noice@gmail.com"
}
],
"require": {
"php": ">=5.3.2",
"symfony/http-foundation": ">=2.0.4, <=2.3.x-dev",
"symfony/http-kernel":... | 73615e135b228cd948a54af3fc481808b49a50f6 | composer.json | composer.json | JSON |
<|file_sep|>test/CodeGen/ARM/alloca.ll.diff
original:
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | \
; RUN: grep {mov r11, sp}
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | \
; RUN: grep {mov sp, r11}
updated:
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s
<|file_sep|>test/CodeGen/ARM... | ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s
define void @f(i32 %a) {
entry:
; CHECK: mov r11, sp
%tmp = alloca i8, i32 %a ; <i8*> [#uses=1]
call void @g( i8* %tmp, i32 %a, i32 1, i32 2, i32 3 )
ret void
; CHECK: mov sp, r11
}
declare void @g(i8*, i32, i32, i... | <|file_sep|>test/CodeGen/ARM/alloca.ll.diff
original:
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | \
; RUN: grep {mov r11, sp}
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | \
; RUN: grep {mov sp, r11}
updated:
; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s
<|file_sep|>test/CodeGen/ARM... | 8bb080e71b4abcb0289c65143ffe837ffd8f4f45 | test/CodeGen/ARM/alloca.ll | test/CodeGen/ARM/alloca.ll | LLVM |
<|file_sep|>.travis.yml.diff
original:
updated:
- brew tap homebrew/dupes
- brew tap homebrew/versions
<|file_sep|>original/.travis.yml
env:
- APM_TEST_PACKAGES="language-typescript language-csharp language-marko"
before_install:
# Update Homebrew
- brew update
# Ruby language support
- gem install ru... | before_install:
# Update Homebrew
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/versions
# Ruby language support
- gem install ruby-beautify --verbose
# Python language support
- brew install python
- pip install --upgrade autopep8
# SQL language support
- pip install --upgrade sqlpa... | <|file_sep|>.travis.yml.diff
original:
updated:
- brew tap homebrew/dupes
- brew tap homebrew/versions
<|file_sep|>original/.travis.yml
env:
- APM_TEST_PACKAGES="language-typescript language-csharp language-marko"
before_install:
# Update Homebrew
- brew update
# Ruby language support
- gem install ru... | bf53760c094b90ebd20d11ce9e87f334f4b43ed9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>setup.py.diff
original:
version = "2.7",
updated:
version = "2012.1",
<|file_sep|>original/setup.py
requirements = ['httplib2', 'argparse', 'prettytable']
if sys.version_info < (2, 6):
requirements.append('simplejson')
setup(
name = "python-keystoneclient",
version = "2.7",
descrip... |
requirements = ['httplib2', 'argparse', 'prettytable']
if sys.version_info < (2, 6):
requirements.append('simplejson')
setup(
name = "python-keystoneclient",
version = "2012.1",
description = "Client library for OpenStack Keystone API",
long_description = read('README.rst'),
url = 'https://git... | <|file_sep|>setup.py.diff
original:
version = "2.7",
updated:
version = "2012.1",
<|file_sep|>original/setup.py
requirements = ['httplib2', 'argparse', 'prettytable']
if sys.version_info < (2, 6):
requirements.append('simplejson')
setup(
name = "python-keystoneclient",
version = "2.7",
descrip... | 1bb67543b4187ee05c616afb731c229aaa94fdd3 | setup.py | setup.py | Python |
<|file_sep|>original/script/install-emscripten.sh
#!/usr/bin/env bash
set -e
EMSCRIPTEN_DOWNLOAD_URL='https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz'
EMSDK_PATH="./emsdk_portable/emsdk"
if [ ! -f $EMSDK_PATH ]; then
echo 'Downloading emscripten SDK installer...'
curl $EMSCRIPTEN... | #!/usr/bin/env bash
set -e
rm -f $(find emsdk_portable -name CMakeCache.txt)
EMSCRIPTEN_DOWNLOAD_URL='https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz'
EMSDK_PATH="./emsdk_portable/emsdk"
if [ ! -f $EMSDK_PATH ]; then
echo 'Downloading emscripten SDK installer...'
curl $EMSCRIPTE... | <|file_sep|>original/script/install-emscripten.sh
#!/usr/bin/env bash
set -e
EMSCRIPTEN_DOWNLOAD_URL='https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz'
EMSDK_PATH="./emsdk_portable/emsdk"
if [ ! -f $EMSDK_PATH ]; then
echo 'Downloading emscripten SDK installer...'
curl $EMSCRIPTEN... | 288a86a40cce506da3078be1b40d9f361a02c875 | script/install-emscripten.sh | script/install-emscripten.sh | Shell |
<|file_sep|>original/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml
<|file_sep|>current/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml
<|file_sep|>updated/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml | ---
meta:
author: "Christian S.J. Peron"
enabled: true
name: "request-930-application-attack-lfi.yaml"
description: "Application attacks: Local file include"
tests:
-
test_title: "Path Traversal Attack (/../) encoded"
stages:
-
stage:
input:
... | <|file_sep|>original/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml
<|file_sep|>current/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml
<|file_sep|>updated/tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml
---
meta:
... | 19a5ac2bd24495ab5b8a074bd351aaa80018261b | tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml | tests/REQUEST-930-APPLICATION-ATTACK-LFI/request-930-application-attack-lfi.yaml | YAML |
<|file_sep|>original/test/CodeGen/unwind-attr.c
// RUN: %clang_cc1 -fexceptions -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck -check-prefix NOEXC %s
int opaque();
// CHECK: define [[INT:i.*]] @test0() {
// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind {
int test0(void) ... | // RUN: %clang_cc1 -fexceptions -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck -check-prefix NOEXC %s
int opaque();
// CHECK: define [[INT:i.*]] @test0() {
// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind {
int test0(void) {
return opaque();
}
// <rdar://problem/80874... | <|file_sep|>original/test/CodeGen/unwind-attr.c
// RUN: %clang_cc1 -fexceptions -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck -check-prefix NOEXC %s
int opaque();
// CHECK: define [[INT:i.*]] @test0() {
// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind {
int test0(void) ... | 03b0df95cdef76fcdbad84bb10817733bd03220f | test/CodeGen/unwind-attr.c | test/CodeGen/unwind-attr.c | C |
<|file_sep|>original/.github/workflows/build-data.yml
<|file_sep|>current/.github/workflows/build-data.yml
<|file_sep|>updated/.github/workflows/build-data.yml | name: Build Site Data
on:
schedule:
# Run at 08:15 UTC daily
# - cron: '*/15 * * * *'
- cron: '15 8 * * *'
jobs:
run:
name: Build Crag data
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Ruby
uses: actions/setup-ruby@v1
... | <|file_sep|>original/.github/workflows/build-data.yml
<|file_sep|>current/.github/workflows/build-data.yml
<|file_sep|>updated/.github/workflows/build-data.yml
name: Build Site Data
on:
schedule:
# Run at 08:15 UTC daily
# - cron: '*/15 * * * *'
- cron: '15 8 * * *'
jobs:
run:
name: Build Crag d... | 01bb4627c5a77cb4fb7b8010d1b2ede3418a3bfe | .github/workflows/build-data.yml | .github/workflows/build-data.yml | YAML |
<|file_sep|>original/requirements.txt
arrow==0.10.0
beautifulsoup4==4.5.3
blessed==1.14.1
Django==1.10.5
django-picklefield==0.3.2
django-q==0.7.18
fake-useragent==0.1.5
future==0.16.0
psycopg2==2.6.2
python-dateutil==2.6.0
requests==2.13.0
six==1.10.0
uWSGI==2.0.14
wcwidth==0.1.7
<|file_sep|>current/requirements.txt
a... | arrow==0.10.0
beautifulsoup4==4.5.3
blessed==1.14.1
Django==1.10.5
django-picklefield==0.3.2
django-q==0.7.18
fake-useragent==0.1.5
future==0.16.0
psycopg2==2.7
python-dateutil==2.6.0
requests==2.13.0
six==1.10.0
uWSGI==2.0.14
wcwidth==0.1.7 | <|file_sep|>original/requirements.txt
arrow==0.10.0
beautifulsoup4==4.5.3
blessed==1.14.1
Django==1.10.5
django-picklefield==0.3.2
django-q==0.7.18
fake-useragent==0.1.5
future==0.16.0
psycopg2==2.6.2
python-dateutil==2.6.0
requests==2.13.0
six==1.10.0
uWSGI==2.0.14
wcwidth==0.1.7
<|file_sep|>current/requirements.txt
a... | 825f84996465bc1e8f08e5a63a7d981d7ff934e1 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/composer.json
"CKEditor",
"wysiwyg",
"widget"
],
"license": "BSD-3-Clause",
"authors": [
{
"name": "MrAnger",
"email": "slava.sharapov1992@gmail.com"
}
],
"support": {
"issues": "https://github.com/MrAnger/yii2-ckeditor/issues",
"source": "https://g... | "CKEditor",
"wysiwyg",
"widget"
],
"license": "BSD-3-Clause",
"authors": [
{
"name": "MrAnger",
"email": "slava.sharapov1992@gmail.com"
}
],
"support": {
"issues": "https://github.com/MrAnger/yii2-ckeditor/issues",
"source": "https://github.com/MrAnger/yii2-ckeditor"
... | <|file_sep|>original/composer.json
"CKEditor",
"wysiwyg",
"widget"
],
"license": "BSD-3-Clause",
"authors": [
{
"name": "MrAnger",
"email": "slava.sharapov1992@gmail.com"
}
],
"support": {
"issues": "https://github.com/MrAnger/yii2-ckeditor/issues",
"source": "https://g... | 701e4185d7fba9bf1535dea9664281ca9d2e75c6 | composer.json | composer.json | JSON |
<|file_sep|>original/core/src/test/scala/pickling/custom-generic-pickler.scala
<|file_sep|>current/core/src/test/scala/pickling/custom-generic-pickler.scala
<|file_sep|>updated/core/src/test/scala/pickling/custom-generic-pickler.scala |
import scala.pickling._
import binary._
import org.scalatest.FunSuite
case class MyClass[A](myString: String, a: A)
class MyClassPickler[A](implicit val format: PickleFormat, aTypeTag: FastTypeTag[A],
aPickler: SPickler[A], aUnpickler: Unpickler[A])
extends SPickler[MyClass[A... | <|file_sep|>original/core/src/test/scala/pickling/custom-generic-pickler.scala
<|file_sep|>current/core/src/test/scala/pickling/custom-generic-pickler.scala
<|file_sep|>updated/core/src/test/scala/pickling/custom-generic-pickler.scala
import scala.pickling._
import binary._
import org.scalatest.FunSuite
case clas... | 20a1f10388550c2ed5a3e544171768a46ae52022 | core/src/test/scala/pickling/custom-generic-pickler.scala | core/src/test/scala/pickling/custom-generic-pickler.scala | Scala |
<|file_sep|>original/lib/ardes/response_for/bc.rb
<|file_sep|>current/lib/ardes/response_for/bc.rb
<|file_sep|>updated/lib/ardes/response_for/bc.rb | module Ardes
module ResponseFor
module Bc
def self.included(base)
base.class_eval do
alias_method_chain :template_exists?, :response_for
end
end
protected
def template_exists_with_repsonse_for?
action_responses.any? || template_exists_without_repsonse... | <|file_sep|>original/lib/ardes/response_for/bc.rb
<|file_sep|>current/lib/ardes/response_for/bc.rb
<|file_sep|>updated/lib/ardes/response_for/bc.rb
module Ardes
module ResponseFor
module Bc
def self.included(base)
base.class_eval do
alias_method_chain :template_exists?, :response_for
... | 805691be509b1413762c7e69d33148aeb33a45df | lib/ardes/response_for/bc.rb | lib/ardes/response_for/bc.rb | Ruby |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- "1.9.3"
- "2.0.0"
- "2.2.2"
gemfile:
- gemfiles/activerecord30.gemfile
- gemfiles/activerecord40.gemfile
- gemfiles/activerecord41.gemfile
- gemfiles/activerecord42.gemfile
script: "bundle exec rake spec"
<|file_sep|>current/.travis.yml
language: ... | language: ruby
rvm:
- "1.9.3"
- "2.0.0"
- "2.2.2"
gemfile:
- "gemfiles/activerecord30.gemfile"
- "gemfiles/activerecord40.gemfile"
- "gemfiles/activerecord41.gemfile"
- "gemfiles/activerecord42.gemfile"
matrix:
exclude:
- rvm: "2.2.2"
gemfile: "gemfiles/activerecord30.gemfile"
script: "bund... | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- "1.9.3"
- "2.0.0"
- "2.2.2"
gemfile:
- gemfiles/activerecord30.gemfile
- gemfiles/activerecord40.gemfile
- gemfiles/activerecord41.gemfile
- gemfiles/activerecord42.gemfile
script: "bundle exec rake spec"
<|file_sep|>current/.travis.yml
language: ... | 8f00d500518f79e304d23af6f6cf940ac724453a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/embedding_server/embedding_server.py
<|file_sep|>current/embedding_server/embedding_server.py
<|file_sep|>updated/embedding_server/embedding_server.py | from flask import Flask
from flask import request, abort, jsonify
import numpy as np
import gensim
import re
import string
app = Flask(__name__)
model = None
maxSeqLength = 70
numFeatures = 300
def get_tokens(s):
return re.sub('[{}]'.format(string.punctuation), '', s).lower().split()
def get_sequence_matrix(to... | <|file_sep|>original/embedding_server/embedding_server.py
<|file_sep|>current/embedding_server/embedding_server.py
<|file_sep|>updated/embedding_server/embedding_server.py
from flask import Flask
from flask import request, abort, jsonify
import numpy as np
import gensim
import re
import string
app = Flask(__name__)
... | e4d7375b2706dd46cf08831e5f005ce3a3c17553 | embedding_server/embedding_server.py | embedding_server/embedding_server.py | Python |
<|file_sep|>original/node_freebsd.go
import (
"os"
"syscall"
"time"
)
func (node *Node) OpenForReading() (*os.File, error) {
file, err := os.OpenFile(node.path, os.O_RDONLY, 0)
if os.IsPermission(err) {
return os.OpenFile(node.path, os.O_RDONLY, 0)
}
return file, err
}
func (node *Node) fillTimes(stat *sysc... | package restic
import (
"os"
"syscall"
"time"
)
func (node *Node) OpenForReading() (*os.File, error) {
return os.OpenFile(node.path, os.O_RDONLY, 0)
}
func (node *Node) fillTimes(stat *syscall.Stat_t) {
node.ChangeTime = time.Unix(stat.Ctimespec.Unix())
node.AccessTime = time.Unix(stat.Atimespec.Unix())
}
fun... | <|file_sep|>original/node_freebsd.go
import (
"os"
"syscall"
"time"
)
func (node *Node) OpenForReading() (*os.File, error) {
file, err := os.OpenFile(node.path, os.O_RDONLY, 0)
if os.IsPermission(err) {
return os.OpenFile(node.path, os.O_RDONLY, 0)
}
return file, err
}
func (node *Node) fillTimes(stat *sysc... | a8be9c32d0a9567773d06078682251d2efb53ccb | node_freebsd.go | node_freebsd.go | Go |
<|file_sep|>.travis.yml.diff
original:
updated:
- "0.9"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
- "0.6"
- "0.4"
before_install:
- '[ "${TRAVIS_NODE_VERSION}" != "0.6" ] || npm conf set strict-ssl false'
<|file_sep|>current/.travis.yml
language: node_js
node_... | language: node_js
node_js:
- "0.11"
- "0.10"
- "0.9"
- "0.8"
- "0.6"
- "0.4"
before_install:
- '[ "${TRAVIS_NODE_VERSION}" == "0.6" ] || npm install -g npm@~1.4.6'
matrix:
fast_finish: true
allow_failures:
- node_js: "0.11"
- node_js: "0.9"
- node_js: "0.6"
- node_js: "0.4"
| <|file_sep|>.travis.yml.diff
original:
updated:
- "0.9"
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
- "0.6"
- "0.4"
before_install:
- '[ "${TRAVIS_NODE_VERSION}" != "0.6" ] || npm conf set strict-ssl false'
<|file_sep|>current/.travis.yml
language: node_js
node_... | f666abd9d32b77a71469a1734652e0e0c0cd1de3 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
imv - X11/Wayland Image Viewer
==============================
`imv` is a command line image viewer intended for use with tiling window managers.
Currently `imv` is in **alpha**. Command line flags and shortcuts may change
without notice.
Features
--------
* Wayland Support
* Support f... | imv - X11/Wayland Image Viewer
==============================
`imv` is a command line image viewer intended for use with tiling window managers.
Features
--------
* Wayland Support
* Support for over 30 different image file formats including:
* Photoshop PSD files
* Animated GIFS
* Various RAW formats
Usage
-... | <|file_sep|>original/README.md
imv - X11/Wayland Image Viewer
==============================
`imv` is a command line image viewer intended for use with tiling window managers.
Currently `imv` is in **alpha**. Command line flags and shortcuts may change
without notice.
Features
--------
* Wayland Support
* Support f... | 04cc0097f9a65615c8744421dbc299a8d32728e2 | README.md | README.md | Markdown |
<|file_sep|>original/.github/dependabot.yml
<|file_sep|>current/.github/dependabot.yml
<|file_sep|>updated/.github/dependabot.yml | version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
day: 'wednesday'
time: '00:00'
timezone: 'America/Chicago' # 12am Central Time
commit-message:
prefix: '[DEPENDABOT]'
labels:
- 'dependencies'
- 'dependabot'
open-pu... | <|file_sep|>original/.github/dependabot.yml
<|file_sep|>current/.github/dependabot.yml
<|file_sep|>updated/.github/dependabot.yml
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
day: 'wednesday'
time: '00:00'
timezone: 'America/Chicago' # 12... | de78609e02f021197d3291b86224242b93462000 | .github/dependabot.yml | .github/dependabot.yml | YAML |
<|file_sep|>original/Resume/lib/tasks/sort_gemfile.rake
<|file_sep|>current/Resume/lib/tasks/sort_gemfile.rake
<|file_sep|>updated/Resume/lib/tasks/sort_gemfile.rake | namespace :sort_gemfile do
if Rails.env.development?
require 'ordinare'
desc 'Sorts Gemfile A to Z'
task :perform_sort do
puts 'Start sort of Gemfile'
sh 'ordinare'
puts 'Completed sort of Gemfile'
end
end
end | <|file_sep|>original/Resume/lib/tasks/sort_gemfile.rake
<|file_sep|>current/Resume/lib/tasks/sort_gemfile.rake
<|file_sep|>updated/Resume/lib/tasks/sort_gemfile.rake
namespace :sort_gemfile do
if Rails.env.development?
require 'ordinare'
desc 'Sorts Gemfile A to Z'
task :perform_sort do
puts 'Star... | a596d379fe446012cfd88ab41c043a46d04f2d2b | Resume/lib/tasks/sort_gemfile.rake | Resume/lib/tasks/sort_gemfile.rake | Ruby |
<|file_sep|>original/ushahidi/src/main/res/layout/fragment_map_post.xml
<|file_sep|>current/ushahidi/src/main/res/layout/fragment_map_post.xml
<|file_sep|>updated/ushahidi/src/main/res/layout/fragment_map_post.xml | <?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 Ushahidi Inc
~
~ This program is free software: you can redistribute it and/or modify it under
~ the terms of the GNU Affero General Public License as published by the Free
~ Software Foundation, either version 3 of the License, or (at your op... | <|file_sep|>original/ushahidi/src/main/res/layout/fragment_map_post.xml
<|file_sep|>current/ushahidi/src/main/res/layout/fragment_map_post.xml
<|file_sep|>updated/ushahidi/src/main/res/layout/fragment_map_post.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 Ushahidi Inc
~
~ This program is ... | c54690cdab1dd85a9e0ba8cc5654a601bbb12c01 | ushahidi/src/main/res/layout/fragment_map_post.xml | ushahidi/src/main/res/layout/fragment_map_post.xml | XML |
<|file_sep|>original/source/18_tooling.md
## Project Management
Managing tickets, milestones and progress all happens on the public GitHub repository.
There are two GitHub repositories:
- **osm2vectortile** contains the project
- **osm2vectortile-thesis** contains the thesis
## Development Environment
Development... |
Development happens independant.
## Version Control
Git
## Continuous Integration
TBD
# Quality Measures
## Documentation
## Project Management
# Guidelines
| <|file_sep|>original/source/18_tooling.md
## Project Management
Managing tickets, milestones and progress all happens on the public GitHub repository.
There are two GitHub repositories:
- **osm2vectortile** contains the project
- **osm2vectortile-thesis** contains the thesis
## Development Environment
Development... | 84a094580f1042381020c0e4ebc6caf443862341 | source/18_tooling.md | source/18_tooling.md | Markdown |
<|file_sep|>original/metadata/org.creativecommons.thelist.txt
Through The List, organizations will provide lists of locations,
people, and events that they need photographs of. And when users are
in the right place at the right time, they can claim an item from the
list and publish a photograph of it. All photos on The... | Through The List, organizations will provide lists of locations,
people, and events that they need photographs of. And when users are
in the right place at the right time, they can claim an item from the
list and publish a photograph of it. All photos on The List are openly
licensed, meaning that everyone can use them.... | <|file_sep|>original/metadata/org.creativecommons.thelist.txt
Through The List, organizations will provide lists of locations,
people, and events that they need photographs of. And when users are
in the right place at the right time, they can claim an item from the
list and publish a photograph of it. All photos on The... | a65ae8eb9715e46d99282e8ef6549fd3d625b53b | metadata/org.creativecommons.thelist.txt | metadata/org.creativecommons.thelist.txt | Text |
<|file_sep|>packages/pr/primitive-addr.yaml.diff
original:
hash: b85f99fdee69c5aa6d8672a195e638b6ab02c195bf94970c7e08c3f62ef1bee3
updated:
hash: 5731618f8f28d62300b07a1b1de64860a586741cb2158e1da941ddd584676745
<|file_sep|>packages/pr/primitive-addr.yaml.diff
original:
## 0.1.0.0 -- YYYY-mm-dd
updated:
## 0.1.0.1 --... | changelog: |
# Revision history for primitive-addr
## 0.1.0.1 -- 2019-06-18
* Allow building with GHCs as old as 7.4.2.
## 0.1.0.0 -- 2019-05-17
* First version. Released on an unsuspecting world.
basic-deps:
base: ! '>=4.5.1.0 && <5'
primitive: ! '>=0.7 && <0.8'
all-versions:
- 0.1.0.0
- 0.1.0.1
auth... | <|file_sep|>packages/pr/primitive-addr.yaml.diff
original:
hash: b85f99fdee69c5aa6d8672a195e638b6ab02c195bf94970c7e08c3f62ef1bee3
updated:
hash: 5731618f8f28d62300b07a1b1de64860a586741cb2158e1da941ddd584676745
<|file_sep|>packages/pr/primitive-addr.yaml.diff
original:
## 0.1.0.0 -- YYYY-mm-dd
updated:
## 0.1.0.1 --... | 51a305b8e4bce42e67fabaaeb65c12b600094fe8 | packages/pr/primitive-addr.yaml | packages/pr/primitive-addr.yaml | YAML |
<|file_sep|>original/.codeqlmanifest.json
{
"provide": [
"ql/src/qlpack.yml",
"ql/consistency-queries/qlpack.yml",
"ql/test/qlpack.yml",
"ql/examples/qlpack.yml",
"upgrades/qlpack.yml",
"extractor-pack/codeql-extractor.yml"
]
}
<|file_sep|>current/.codeqlmanifest.... | {
"provide": [
"ql/src/qlpack.yml",
"ql/consistency-queries/qlpack.yml",
"ql/test/qlpack.yml",
"ql/examples/qlpack.yml",
"extractor-pack/codeql-extractor.yml"
]
} | <|file_sep|>original/.codeqlmanifest.json
{
"provide": [
"ql/src/qlpack.yml",
"ql/consistency-queries/qlpack.yml",
"ql/test/qlpack.yml",
"ql/examples/qlpack.yml",
"upgrades/qlpack.yml",
"extractor-pack/codeql-extractor.yml"
]
}
<|file_sep|>current/.codeqlmanifest.... | 6203c9019a2f97328ca5cb5484109a516ba98381 | .codeqlmanifest.json | .codeqlmanifest.json | JSON |
<|file_sep|>original/app/views/articles/new.html.erb
<h2>New article</h2>
<%= form_for :article do |f| %>
<p>
Title
</p>
<% end %>
<|file_sep|>current/app/views/articles/new.html.erb
<h2>New article</h2>
<%= form_for :article do |f| %>
<p>
Title
</p>
<% end %>
<|file_sep|>updated/app/views/articles/new.html.e... | <h2>New article</h2>
<%= form_for :article do |f| %>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %>
</p>
<% end %> | <|file_sep|>original/app/views/articles/new.html.erb
<h2>New article</h2>
<%= form_for :article do |f| %>
<p>
Title
</p>
<% end %>
<|file_sep|>current/app/views/articles/new.html.erb
<h2>New article</h2>
<%= form_for :article do |f| %>
<p>
Title
</p>
<% end %>
<|file_sep|>updated/app/views/articles/new.html.e... | 08cfe034db09c237a740ebe56f9ef3d5b2971af1 | app/views/articles/new.html.erb | app/views/articles/new.html.erb | HTML+ERB |
<|file_sep|>original/requirements-dev.txt
# Runtime requirements
--requirement requirements.txt
# Documentation
Sphinx==1.4.5
sphinxcontrib-httpdomain==1.5.0
pygments==2.1.1
# Linting
flake8==2.5.4
# Unit testing
pytest==2.9.1
mock==2.0.0
webtest==2.0.20
pytest-cov==2.2.1
coveralls==1.1
<|file_sep|>current/requireme... | # Runtime requirements
--requirement requirements.txt
# Documentation
Sphinx==1.4.5
sphinxcontrib-httpdomain==1.5.0
pygments==2.2.0
# Linting
flake8==2.5.4
# Unit testing
pytest==2.9.1
mock==2.0.0
webtest==2.0.20
pytest-cov==2.2.1
coveralls==1.1 | <|file_sep|>original/requirements-dev.txt
# Runtime requirements
--requirement requirements.txt
# Documentation
Sphinx==1.4.5
sphinxcontrib-httpdomain==1.5.0
pygments==2.1.1
# Linting
flake8==2.5.4
# Unit testing
pytest==2.9.1
mock==2.0.0
webtest==2.0.20
pytest-cov==2.2.1
coveralls==1.1
<|file_sep|>current/requireme... | f7f650b9429e2f1f5dc3d5e0fd002e908a802841 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>background.js.diff
original:
updated:
}
function setCheckAlarm() {
chrome.alarms.create({'periodInMinutes': 1, 'delayInMinutes': 1});
<|file_sep|>background.js.diff
original:
var count = xhr.responseText.match(/Message: Unread/g).length;
if (count > 0) {
chrome.alarms... | );
notification.onclose = setCheckAlarm;
notification.show();
} else {
printError('Could not get message count from URL');
}
}
} else {
printError('Fetching failed');
}
};
xhr.open... | <|file_sep|>background.js.diff
original:
updated:
}
function setCheckAlarm() {
chrome.alarms.create({'periodInMinutes': 1, 'delayInMinutes': 1});
<|file_sep|>background.js.diff
original:
var count = xhr.responseText.match(/Message: Unread/g).length;
if (count > 0) {
chrome.alarms... | 31f5c127ca903b526342e7d14c15d3682164536a | background.js | background.js | JavaScript |
<|file_sep|>vs2015/terark-db/pack-bin.sh.diff
original:
rm -rf terark-db-win-x64
mkdir -p terark-db-win-x64
updated:
TarBall=terark-db-win-x64
rm -rf ${TarBall}
mkdir -p ${TarBall}/bin
mkdir -p ${TarBall}/lib
mkdir -p ${TarBall}/include/terark/db
mkdir -p ${TarBall}/include/terark/io
mkdir -p ${TarBall}/include/terark/... | mkdir -p ${TarBall}/include/terark/db
mkdir -p ${TarBall}/include/terark/io
mkdir -p ${TarBall}/include/terark/thread
mkdir -p ${TarBall}/include/terark/util
cp x64/Release/*.dll ${TarBall}/lib
cp x64/Release/terark-db-schema-compile.exe ${TarBall}/bin
cp ../../src/terark/db/db_conf.hpp ... | <|file_sep|>vs2015/terark-db/pack-bin.sh.diff
original:
rm -rf terark-db-win-x64
mkdir -p terark-db-win-x64
updated:
TarBall=terark-db-win-x64
rm -rf ${TarBall}
mkdir -p ${TarBall}/bin
mkdir -p ${TarBall}/lib
mkdir -p ${TarBall}/include/terark/db
mkdir -p ${TarBall}/include/terark/io
mkdir -p ${TarBall}/include/terark/... | bdfabff320bdbf7383cffbd0bd59f5e0ba38b517 | vs2015/terark-db/pack-bin.sh | vs2015/terark-db/pack-bin.sh | Shell |
<|file_sep|>original/docs/make.sh
#!/bin/bash
if [ "$TRAVIS" = "true" ] ; then
cd docs
MAKE="make"
else
# Run in docker
cd `dirname $0`/..
docker build -t xd-docker-docs -f docs/Dockerfile .
MAKE="docker run -v $PWD:/src -w /src/docs xd-docker-docs make"
fi
# Default make arguments
if [ $# -eq... | #!/bin/bash
if [ "$TRAVIS" = "true" ] ; then
cd docs
MAKE="make"
else
# Run in docker
cd `dirname $0`/..
docker build -t xd-docker-docs -f docs/Dockerfile .
MAKE="docker run --rm -v $PWD:/src -w /src/docs xd-docker-docs make"
fi
# Default make arguments
if [ $# -eq 0 ] ; then
MAKE+=" html"... | <|file_sep|>original/docs/make.sh
#!/bin/bash
if [ "$TRAVIS" = "true" ] ; then
cd docs
MAKE="make"
else
# Run in docker
cd `dirname $0`/..
docker build -t xd-docker-docs -f docs/Dockerfile .
MAKE="docker run -v $PWD:/src -w /src/docs xd-docker-docs make"
fi
# Default make arguments
if [ $# -eq... | 7982d305049d4e3f51ed1856a2bc415901b73b9d | docs/make.sh | docs/make.sh | Shell |
<|file_sep|>original/objc/MX3Snapshot.h
#import <Foundation/Foundation.h>
#ifdef __cplusplus
#include <memory>
#include <mx3/mx3.hpp>
#endif
@interface MX3Snapshot : NSObject
// adding this here allows you to include this file from non-objc++ files
// since it is using c++ types
#ifdef __cplusplus
- (instancetype)init... | #import <Foundation/Foundation.h>
#ifdef __cplusplus
#include <memory>
#include <mx3/mx3.hpp>
#endif
@interface MX3Snapshot : NSObject
// adding this here allows you to include this file from non-objc++ files
// since it is using c++ types
#ifdef __cplusplus
- (instancetype)initWithSnapshot:(std::unique_ptr<mx3::SqlSn... | <|file_sep|>original/objc/MX3Snapshot.h
#import <Foundation/Foundation.h>
#ifdef __cplusplus
#include <memory>
#include <mx3/mx3.hpp>
#endif
@interface MX3Snapshot : NSObject
// adding this here allows you to include this file from non-objc++ files
// since it is using c++ types
#ifdef __cplusplus
- (instancetype)init... | 00d1d12be797e41c5f89e905f438f85c1003d0db | objc/MX3Snapshot.h | objc/MX3Snapshot.h | C |
<|file_sep|>original/smoke_test.rb
#!/usr/bin/env ruby
require 'faraday'
domain = 'https://www.pensionwise.gov.uk'
pages = %w(
/
/6-steps-you-need-to-take
/benefits
/complaints
/divorce
/living-abroad
/making-money-last
/pension-complaints
/pension-pot-options
/pension-pot-value
/pension-types
... | #!/usr/bin/env ruby
require 'date'
require 'faraday'
domain = 'https://www.pensionwise.gov.uk'
pages = %w(
/
/6-steps-you-need-to-take
/benefits
/complaints
/divorce
/living-abroad
/making-money-last
/pension-complaints
/pension-pot-options
/pension-pot-value
/pension-types
/scams
/shop-arou... | <|file_sep|>original/smoke_test.rb
#!/usr/bin/env ruby
require 'faraday'
domain = 'https://www.pensionwise.gov.uk'
pages = %w(
/
/6-steps-you-need-to-take
/benefits
/complaints
/divorce
/living-abroad
/making-money-last
/pension-complaints
/pension-pot-options
/pension-pot-value
/pension-types
... | f3bf56892bb688c2be635884aab973e3cb75759d | smoke_test.rb | smoke_test.rb | Ruby |
<|file_sep|>original/tools/sensorama.py
<|file_sep|>current/tools/sensorama.py
<|file_sep|>updated/tools/sensorama.py | #!/usr/bin/env python
import sys
import json
def usage():
print "validate.py <jsonfilename>\n"
sys.exit(1)
def main():
if len(sys.argv) != 2:
usage()
fn = sys.argv[1]
print "# fn=" + fn
with open(fn, "r") as f:
js = json.load(f)
f.close()
js = json.dumps(js, sort_ke... | <|file_sep|>original/tools/sensorama.py
<|file_sep|>current/tools/sensorama.py
<|file_sep|>updated/tools/sensorama.py
#!/usr/bin/env python
import sys
import json
def usage():
print "validate.py <jsonfilename>\n"
sys.exit(1)
def main():
if len(sys.argv) != 2:
usage()
fn = sys.argv[1]
p... | 0d7401d0b651a9c2889a7b0a3ead41ef0c28cedb | tools/sensorama.py | tools/sensorama.py | Python |
<|file_sep|>original/www/gallery/markdown_exec.html
<|file_sep|>current/www/gallery/markdown_exec.html
<|file_sep|>updated/www/gallery/markdown_exec.html | <!doctype html>
<html>
<head>
<title>Python code in markdown</title>
<meta charset="utf-8">
<script type="text/javascript" src="/src/brython.js"></script>
<script type="text/python" src="show_source.py"></script>
<link rel="stylesheet" href="/brython.css">
</head>
<body onload="brython({debug:1})">
<script type="tex... | <|file_sep|>original/www/gallery/markdown_exec.html
<|file_sep|>current/www/gallery/markdown_exec.html
<|file_sep|>updated/www/gallery/markdown_exec.html
<!doctype html>
<html>
<head>
<title>Python code in markdown</title>
<meta charset="utf-8">
<script type="text/javascript" src="/src/brython.js"></script>
<script t... | 04d39b82b09f58bcc81c3de72d006ae4dfe139f3 | www/gallery/markdown_exec.html | www/gallery/markdown_exec.html | HTML |
<|file_sep|>original/tests/Settings/TestContainerRegistry.py
<|file_sep|>current/tests/Settings/TestContainerRegistry.py
<|file_sep|>updated/tests/Settings/TestContainerRegistry.py | # Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
import pytest
import os.path
import UM.Settings
from UM.Resources import Resources
from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase
@pytest.fixture
def container_registry():
Resources.addSearchPath(os.pa... | <|file_sep|>original/tests/Settings/TestContainerRegistry.py
<|file_sep|>current/tests/Settings/TestContainerRegistry.py
<|file_sep|>updated/tests/Settings/TestContainerRegistry.py
# Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
import pytest
import os.path
import ... | dc3bc21e8cf7c0a0244dd7d2584a206656bc8444 | tests/Settings/TestContainerRegistry.py | tests/Settings/TestContainerRegistry.py | Python |
<|file_sep|>original/web/public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<title>dogbot web</title>
</head>
... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<title>dogbot</title>
</head>
<body>
<noscript>You need to enable JavaSc... | <|file_sep|>original/web/public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<title>dogbot web</title>
</head>
... | 868ec35b4504193b43cdf32923ae30de3058325b | web/public/index.html | web/public/index.html | HTML |
<|file_sep|>original/lib/com.fasterxml.jackson.test/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>com.... | <modelVersion>4.0.0</modelVersion>
<artifactId>com.fasterxml.jackson.test</artifactId>
<version>2.4.3-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<parent>
<groupId>net.sf.etrakr</groupId>
<artifactId>net.sf.etrakr.aggregator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativ... | <|file_sep|>original/lib/com.fasterxml.jackson.test/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>com.... | 694eb9adb912a64b48cab9ab68c9bbcfb91986ad | lib/com.fasterxml.jackson.test/pom.xml | lib/com.fasterxml.jackson.test/pom.xml | XML |
<|file_sep|>packages/shared/test/helpers/string.spec.js.diff
original:
import { capitalize, getRandomString } from '../../lib/helpers/string';
updated:
import { capitalize, getRandomString, getInitial } from '../../lib/helpers/string';
<|file_sep|>original/packages/shared/test/helpers/string.spec.js
describe('getRa... | const cases = [0, [], {}];
const expected = ['', '', ''];
expect(cases.map(capitalize)).toEqual(expected);
});
it('should capitalize strings as expected', () => {
const cases = ['', 'n', 'A', 'NY', 'name', 'once upon a time...'];
const expected... | <|file_sep|>packages/shared/test/helpers/string.spec.js.diff
original:
import { capitalize, getRandomString } from '../../lib/helpers/string';
updated:
import { capitalize, getRandomString, getInitial } from '../../lib/helpers/string';
<|file_sep|>original/packages/shared/test/helpers/string.spec.js
describe('getRa... | 2b327a9b9c75a271066b88a6180adef051b192dc | packages/shared/test/helpers/string.spec.js | packages/shared/test/helpers/string.spec.js | JavaScript |
<|file_sep|>original/scripts/document_path_handlers.py
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
from nikola import nikola
n = nikola.Nikola()
n.init_plugins()
print(""".. title: Path Handlers for Nikola
.. slug: path-handlers
.. author: The Nikola Team
Nikola supports special lin... |
from __future__ import print_function, unicode_literals
from nikola import nikola
n = nikola.Nikola()
n.init_plugins()
print(""".. title: Path Handlers for Nikola
.. slug: path-handlers
.. author: The Nikola Team
Nikola supports special links with the syntax ``link://kind/name``. Here is
the description for all the ... | <|file_sep|>original/scripts/document_path_handlers.py
#!/usr/bin/env python
from __future__ import print_function, unicode_literals
from nikola import nikola
n = nikola.Nikola()
n.init_plugins()
print(""".. title: Path Handlers for Nikola
.. slug: path-handlers
.. author: The Nikola Team
Nikola supports special lin... | 0d7c0b045c4a2e930fe0d7aa68b96d5a99916a34 | scripts/document_path_handlers.py | scripts/document_path_handlers.py | Python |
<|file_sep|>original/app/views/people/_sub_header.html.haml
%h2
= person.name
%span.diaspora_handle
= person.diaspora_handle
.description
- if !person.tag_string.blank? && user_signed_in?
= Diaspora::Taggable.format_tags(person.profile.tag_string)
- if user_signed_in? && person == current... | %h2
= person.name
%span.diaspora_handle
= person.diaspora_handle
.description
- if !person.tag_string.blank? && user_signed_in?
= Diaspora::Taggable.format_tags(person.profile.tag_string)
- if user_signed_in? && person == current_user.person
%span.hover_edit
= link_to t(... | <|file_sep|>original/app/views/people/_sub_header.html.haml
%h2
= person.name
%span.diaspora_handle
= person.diaspora_handle
.description
- if !person.tag_string.blank? && user_signed_in?
= Diaspora::Taggable.format_tags(person.profile.tag_string)
- if user_signed_in? && person == current... | 1b3a2185ebfa2a9304c773af09b2e737f62176af | app/views/people/_sub_header.html.haml | app/views/people/_sub_header.html.haml | Haml |
<|file_sep|>original/html53/implementation-report.html
<|file_sep|>current/html53/implementation-report.html
<|file_sep|>updated/html53/implementation-report.html | <!DOCTYPE html>
<html lang="en">
<head>
<title>DRAFT: HTML 5.3 Implementation Report</title>
<link href="styles/styles-html.css" rel="stylesheet" type="text/css">
<link href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED" rel="stylesheet" type="text/css">
<style>
table { border-collapse: collapse;border-spa... | <|file_sep|>original/html53/implementation-report.html
<|file_sep|>current/html53/implementation-report.html
<|file_sep|>updated/html53/implementation-report.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>DRAFT: HTML 5.3 Implementation Report</title>
<link href="styles/styles-html.css" rel="stylesheet" type=... | e87e77db2595b7693800f6cb5aacd7adedf52817 | html53/implementation-report.html | html53/implementation-report.html | HTML |
<|file_sep|>original/requirements_dev.txt
-e .
pip>=8.1.2
bumpversion==0.5.3
wheel>=0.29.0
watchdog==0.8.3
flake8==3.4.1
tox==2.8.2
coverage==4.4.1
cryptography==2.0.3
PyYAML==3.12
pytest==3.2.2
pytest-runner==2.12.1
moto[server]==1.1.14
requests==2.18.4
Sphinx==1.6.4
pytest-asyncio==0.8.0
<|file_sep|>current/requireme... | -e .
pip>=8.1.2
bumpversion==0.5.3
wheel>=0.29.0
watchdog==0.8.3
flake8==3.4.1
tox==2.9.1
coverage==4.4.1
cryptography==2.0.3
PyYAML==3.12
pytest==3.2.2
pytest-runner==2.12.1
moto[server]==1.1.14
requests==2.18.4
Sphinx==1.6.4
pytest-asyncio==0.8.0 | <|file_sep|>original/requirements_dev.txt
-e .
pip>=8.1.2
bumpversion==0.5.3
wheel>=0.29.0
watchdog==0.8.3
flake8==3.4.1
tox==2.8.2
coverage==4.4.1
cryptography==2.0.3
PyYAML==3.12
pytest==3.2.2
pytest-runner==2.12.1
moto[server]==1.1.14
requests==2.18.4
Sphinx==1.6.4
pytest-asyncio==0.8.0
<|file_sep|>current/requireme... | ff429683093f0aa069dbfbb5d396a5ea3466a444 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/examples/todo/README.md
Run the example, it will spawn a GraphQL HTTP endpoint
```
go run main.go
```
Execute queries via shell.
```
// To get single ToDo item by ID
curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'
// To create a ToDo item
curl -g 'http://localhost:808... | ```
Execute queries via shell.
```
// To get single ToDo item by ID
curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'
// To create a ToDo item
curl -g 'http://localhost:8080/graphql?query=mutation+_{createTodo(text:"My+new+todo"){id,text,done}}'
// To get a list of ToDo items
curl -g 'http:... | <|file_sep|>original/examples/todo/README.md
Run the example, it will spawn a GraphQL HTTP endpoint
```
go run main.go
```
Execute queries via shell.
```
// To get single ToDo item by ID
curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'
// To create a ToDo item
curl -g 'http://localhost:808... | ba0cde979b7d20e0c4c851e5cce65da1471a20a0 | examples/todo/README.md | examples/todo/README.md | Markdown |
<|file_sep|>original/code/powershell/scan-nodes-in-node-group.ps1
$apiKey = "[API_KEY]"
$secretKey = "[SECRET_KEY]"
$headers = @{Authorization = 'Token token="' + $apiKey + $secretKey + '"'}
#Get the list of nodes in the node group
$nodeGroupsURI = "https://[SERVER]/api/v1/node_groups/[NODEGROUPID]/nodes.json"
$nod... | $apiKey = "[API_KEY]"
$secretKey = "[SECRET_KEY]"
$headers = @{Authorization = 'Token token="' + $apiKey + $secretKey + '"'}
#Get the list of nodes in the node group
$nodeGroupsURI = "https://[SERVER]/api/v2/node_groups/[NODEGROUPID]/nodes.json"
$nodes = Invoke-RestMethod -Method "GET" -Uri $nodeGroupsURI -Headers ... | <|file_sep|>original/code/powershell/scan-nodes-in-node-group.ps1
$apiKey = "[API_KEY]"
$secretKey = "[SECRET_KEY]"
$headers = @{Authorization = 'Token token="' + $apiKey + $secretKey + '"'}
#Get the list of nodes in the node group
$nodeGroupsURI = "https://[SERVER]/api/v1/node_groups/[NODEGROUPID]/nodes.json"
$nod... | 2969dab9e35c1e249c8cb0af1c1529ffe1831087 | code/powershell/scan-nodes-in-node-group.ps1 | code/powershell/scan-nodes-in-node-group.ps1 | PowerShell |
<|file_sep|>original/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java
<|file_sep|>current/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java
<|file_sep|>updated/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java | package nullnessAnnotations;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
public class TestFieldAnnotations {
@NonNull Object x;
@CheckForNull Object y;
void f() {
x = y;
}
void g() {
y = x;
}
void h() {
if (x == null) System.out.println("Huh?");
... | <|file_sep|>original/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java
<|file_sep|>current/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java
<|file_sep|>updated/findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java
package nullnessAnnotations;
import e... | 139e8da0ca4b8576f67de7e65b01cbb79655f36e | findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java | findbugsTestCases/src/java/nullnessAnnotations/TestFieldAnnotations.java | Java |
<|file_sep|>original/README.md
# Sidequarter Frontend
A [React](https://facebook.github.io/react/) frontend for monitoring multiple [Sidekiq](http://sidekiq.org) instances by using the [Sidequarter API](https://github.com/matsrietdijk/sidequarter-api).
## Flow
Within this project the following flow is used regarding... | # Sidequarter Frontend
A [React](https://facebook.github.io/react/) frontend for monitoring multiple [Sidekiq](http://sidekiq.org) instances by using the [Sidequarter API](https://github.com/matsrietdijk/sidequarter-api).
## Code Status
[ frontend for monitoring multiple [Sidekiq](http://sidekiq.org) instances by using the [Sidequarter API](https://github.com/matsrietdijk/sidequarter-api).
## Flow
Within this project the following flow is used regarding... | 84ccbf30bf201938dbce65901424d7fb30c2b461 | README.md | README.md | Markdown |
<|file_sep|>conf/planets/default.xml.diff
original:
<component name="manager-bouncer" type="htpasswd">
updated:
<component name="manager-bouncer" type="htpasswdcrypt">
<|file_sep|>original/conf/planets/default.xml
<planet>
<manager>
<component name="manager-bouncer" type="htpasswd">
<data><![CDATA[... | <planet>
<manager>
<component name="manager-bouncer" type="htpasswdcrypt">
<data><![CDATA[
test:PSfNpHTkpTx1M
]]></data>
</component>
</manager>
</planet> | <|file_sep|>conf/planets/default.xml.diff
original:
<component name="manager-bouncer" type="htpasswd">
updated:
<component name="manager-bouncer" type="htpasswdcrypt">
<|file_sep|>original/conf/planets/default.xml
<planet>
<manager>
<component name="manager-bouncer" type="htpasswd">
<data><![CDATA[... | 83c4763b5bda30f41d77b397434e946c9b6764ff | conf/planets/default.xml | conf/planets/default.xml | XML |
<|file_sep|>original/composer.json
"support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-limits",
"issues": "https://github.com/dreamfactorysoftware/df-limits/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev",... | "support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-limits",
"issues": "https://github.com/dreamfactorysoftware/df-limits/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev",
"prefer-stable": true,
"requir... | <|file_sep|>original/composer.json
"support": {
"email": "dspsupport@dreamfactory.com",
"source": "https://github.com/dreamfactorysoftware/df-limits",
"issues": "https://github.com/dreamfactorysoftware/df-limits/issues",
"wiki": "https://wiki.dreamfactory.com"
},
"minimum-stability": "dev",... | dbf58ca4bc11cc03860aa109e4a10e56eca8b6ee | composer.json | composer.json | JSON |
<|file_sep|>browserstack.json.diff
original:
updated:
"safari_8",
<|file_sep|>browserstack.json.diff
original:
"ie_latest",
updated:
"edge_12",
<|file_sep|>browserstack.json.diff
original:
updated:
"os_version": "7.0"
},
{
"os": "ios",
<|file_sep|>original/browserstack.json
"chrome_40",
"chrome_la... | "opera_latest",
"yandex_latest",
{
"os": "ios",
"os_version": "7.0"
},
{
"os": "ios",
"os_version": "8.3"
}
{
"os": "ios",
"os_version": "9.3"
},
{
"os":"winphone",
"os_version":"8.1"
},
{
"os": "android",
"os_version": "4.4" | <|file_sep|>browserstack.json.diff
original:
updated:
"safari_8",
<|file_sep|>browserstack.json.diff
original:
"ie_latest",
updated:
"edge_12",
<|file_sep|>browserstack.json.diff
original:
updated:
"os_version": "7.0"
},
{
"os": "ios",
<|file_sep|>original/browserstack.json
"chrome_40",
"chrome_la... | b0afb09d3def7c0be778ae7ea527952070c65bbc | browserstack.json | browserstack.json | JSON |
<|file_sep|>original/Importacions_F1_Q1/Fact_impF1_eliminar_Ja_existeix.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ooop import OOOP
import configdb
O = OOOP(**configdb.ooop)
imp_obj = O.GiscedataFacturacioImportacioLinia
imp_del_ids = imp_obj.search([('state','=','erroni'),('info','like','Ja existeix una ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ooop import OOOP
import configdb
O = OOOP(**configdb.ooop)
imp_obj = O.GiscedataFacturacioImportacioLinia
imp_del_ids = imp_obj.search([('state','=','erroni'),('info','=','Aquest fitxer XML ja s\'ha processat en els següents IDs')])
imp_del_ids = imp_obj.search([('s... | <|file_sep|>original/Importacions_F1_Q1/Fact_impF1_eliminar_Ja_existeix.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from ooop import OOOP
import configdb
O = OOOP(**configdb.ooop)
imp_obj = O.GiscedataFacturacioImportacioLinia
imp_del_ids = imp_obj.search([('state','=','erroni'),('info','like','Ja existeix una ... | 7e638636606a4f7f7b5b6a09ec508746c8ca8f32 | Importacions_F1_Q1/Fact_impF1_eliminar_Ja_existeix.py | Importacions_F1_Q1/Fact_impF1_eliminar_Ja_existeix.py | Python |
<|file_sep|>packages/react-router-dom/.size-snapshot.json.diff
original:
"bundled": 123588,
"minified": 46116,
"gzipped": 13531
updated:
"bundled": 171153,
"minified": 61995,
"gzipped": 16917
<|file_sep|>original/packages/react-router-dom/.size-snapshot.json
"treeshaked": {
"rollup": {... | "treeshaked": {
"rollup": {
"code": 1240,
"import_statements": 407
},
"webpack": {
"code": 3312
}
}
},
"umd/react-router-dom.js": {
"bundled": 171153,
"minified": 61995,
"gzipped": 16917
},
"umd/react-router-dom.min.js": {
"bundled": 106633... | <|file_sep|>packages/react-router-dom/.size-snapshot.json.diff
original:
"bundled": 123588,
"minified": 46116,
"gzipped": 13531
updated:
"bundled": 171153,
"minified": 61995,
"gzipped": 16917
<|file_sep|>original/packages/react-router-dom/.size-snapshot.json
"treeshaked": {
"rollup": {... | 2b2835d20efe3f14e2c953556d60cb583ffeeaff | packages/react-router-dom/.size-snapshot.json | packages/react-router-dom/.size-snapshot.json | JSON |
<|file_sep|>original/init.php
<?php
define('ROOT_DIR', dirname(__FILE__));
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(ROOT_DIR))));
?>
<|file_sep|>current/init.php
<?php
define('ROOT_DIR', dirname(__FILE__));
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (s... | <?php
if(!defined('ROOT_DIR')) {
define('ROOT_DIR', dirname(__FILE__));
}
if(!defined('ROOT_URL')) {
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(ROOT_DIR))));
}
?> | <|file_sep|>original/init.php
<?php
define('ROOT_DIR', dirname(__FILE__));
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(ROOT_DIR))));
?>
<|file_sep|>current/init.php
<?php
define('ROOT_DIR', dirname(__FILE__));
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (s... | 7df4c90c8650363d10e1bd729a947ffa672bdea8 | init.php | init.php | PHP |
<|file_sep|>original/app/models/georgia/link.rb
acts_as_list scope: :menu
has_ancestry orphan_strategy: :adopt
attr_accessible :parent_id, :menu_id if needs_attr_accessible?
scope :ordered, order('position ASC')
before_validation :ensure_forward_slash, on: :create
def ensure_forward_slash
... | acts_as_list scope: :menu
has_ancestry orphan_strategy: :adopt
attr_accessible :parent_id, :menu_id if needs_attr_accessible?
scope :ordered, order('position ASC')
before_validation :ensure_forward_slash, on: :create
def ensure_forward_slash
self.contents.each do |content|
conte... | <|file_sep|>original/app/models/georgia/link.rb
acts_as_list scope: :menu
has_ancestry orphan_strategy: :adopt
attr_accessible :parent_id, :menu_id if needs_attr_accessible?
scope :ordered, order('position ASC')
before_validation :ensure_forward_slash, on: :create
def ensure_forward_slash
... | a372743fefde76c45fb9e0da852c79a1671e4793 | app/models/georgia/link.rb | app/models/georgia/link.rb | Ruby |
<|file_sep|>client_factory.go.diff
original:
updated:
"crypto/tls"
<|file_sep|>client_factory.go.diff
original:
apiEndpoint string
updated:
apiEndpoint string
allowSelfSignedCertificates bool
<|file_sep|>client_factory.go.diff
original:
func NewClientFactory(apiEndpoint string) ClientFactory {
upda... | apiEndpoint: apiEndpoint,
allowSelfSignedCertificates: allowSelfSignedCertificates,
}
}
func (cf *clientFactory) Build(r *http.Request) concourse.Client {
transport := authorizationTransport{
Authorization: r.Header.Get("Authorization"),
Base: &http.Transport{
DisableKeepAlives: true, //... | <|file_sep|>client_factory.go.diff
original:
updated:
"crypto/tls"
<|file_sep|>client_factory.go.diff
original:
apiEndpoint string
updated:
apiEndpoint string
allowSelfSignedCertificates bool
<|file_sep|>client_factory.go.diff
original:
func NewClientFactory(apiEndpoint string) ClientFactory {
upda... | d00ba6eacdab6fa18dabf91fa7ca8883dd9177e4 | client_factory.go | client_factory.go | Go |
<|file_sep|>original/ci/images/get-jdk-url.sh
#!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u345+1/bellsoft-jdk8u345+1-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.ta... | #!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u345+1/bellsoft-jdk8u345+1-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16.1+1/bellsoft-jdk11.0.16.1+1-linux-amd64.tar.gz"
;;
java17)
echo "https://github... | <|file_sep|>original/ci/images/get-jdk-url.sh
#!/bin/bash
set -e
case "$1" in
java8)
echo "https://github.com/bell-sw/Liberica/releases/download/8u345+1/bellsoft-jdk8u345+1-linux-amd64.tar.gz"
;;
java11)
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jdk11.0.16+8-linux-amd64.ta... | 8081446ef048091fdda7bfc2a85de0865b0e3354 | ci/images/get-jdk-url.sh | ci/images/get-jdk-url.sh | Shell |
<|file_sep|>kboard/accounts/templates/registration/login.html.diff
original:
{% endif %}
updated:
<|file_sep|>original/kboard/accounts/templates/registration/login.html
{% extends 'base.html' %}
{% load i18n %}
{% block body %}
{% if user.is_authenticated %}
<p>이미 로그인 되어있습니다.</p>
<p>현재 계정을 로그아웃 하고 다른 ... | {% extends 'base.html' %}
{% load i18n %}
{% block body %}
{% if user.is_authenticated %}
<p>이미 로그인 되어있습니다.</p>
<p>현재 계정을 로그아웃 하고 다른 계정으로 로그인 하시겠습니까?</p>
<p><a href="{% url 'auth_logout' %}">{% trans "Log out" %}</a></p>
{% else %}
<div class="panel panel-primary block-center" style="width:400... | <|file_sep|>kboard/accounts/templates/registration/login.html.diff
original:
{% endif %}
updated:
<|file_sep|>original/kboard/accounts/templates/registration/login.html
{% extends 'base.html' %}
{% load i18n %}
{% block body %}
{% if user.is_authenticated %}
<p>이미 로그인 되어있습니다.</p>
<p>현재 계정을 로그아웃 하고 다른 ... | e8615f13d2eafb50d1b3fb0ca6a7f5e0d884550b | kboard/accounts/templates/registration/login.html | kboard/accounts/templates/registration/login.html | HTML |
<|file_sep|>original/src/RelationshipFieldTypeModifier.php
* This is for IDE support.
*
* @var RelationshipFieldType
*/
protected $fieldType;
/**
* Modify the value.
*
* @param $value
* @return integer
*/
public function modify($value)
{
if ($value i... | * @return integer
*/
public function modify($value)
{
if ($value instanceof EloquentModel) {
return $value->getId();
}
return (int)$value;
}
/**
* Restore the value from storage format.
*
* @param $value
* @return mixed
*/
pub... | <|file_sep|>original/src/RelationshipFieldTypeModifier.php
* This is for IDE support.
*
* @var RelationshipFieldType
*/
protected $fieldType;
/**
* Modify the value.
*
* @param $value
* @return integer
*/
public function modify($value)
{
if ($value i... | 80271ad9df86c225925b01cc5938509298d11599 | src/RelationshipFieldTypeModifier.php | src/RelationshipFieldTypeModifier.php | PHP |
<|file_sep|>original/static/templates/settings/image_upload_widget.hbs
<div id ="{{widget}}-upload-widget" class="inline-block image_upload_widget">
<div class="image_upload_button {{#unless is_editable_by_current_user}}hide{{/unless}}">
<div class="image-upload-background"></div>
<span class="image... | <div id ="{{widget}}-upload-widget" class="inline-block image_upload_widget">
<div class="image_upload_button {{#unless is_editable_by_current_user}}hide{{/unless}}">
<div class="image-upload-background"></div>
<span class="image-delete-button" aria-label="{{ delete_text }}" role="button" tabindex="... | <|file_sep|>original/static/templates/settings/image_upload_widget.hbs
<div id ="{{widget}}-upload-widget" class="inline-block image_upload_widget">
<div class="image_upload_button {{#unless is_editable_by_current_user}}hide{{/unless}}">
<div class="image-upload-background"></div>
<span class="image... | be8e7fdfb66f0344200c84073525133cefeed3ab | static/templates/settings/image_upload_widget.hbs | static/templates/settings/image_upload_widget.hbs | Handlebars |
<|file_sep|>original/requirements/base.txt
# Bleeding edge Django
django==1.9.9
# Configuration
django-environ==0.4.0
whitenoise==3.2.1
# Forms
django-braces==1.10.0
django-crispy-forms==1.6.0
django-floppyforms==1.7.0
# Models
django-model-utils==2.6
# Images
Pillow==3.3.1
# For user registration, either via emai... | # Bleeding edge Django
django==1.9.9
# Configuration
django-environ==0.4.0
whitenoise==3.2.2
# Forms
django-braces==1.10.0
django-crispy-forms==1.6.0
django-floppyforms==1.7.0
# Models
django-model-utils==2.6
# Images
Pillow==3.3.1
# For user registration, either via email or social
# Well-built with regular relea... | <|file_sep|>original/requirements/base.txt
# Bleeding edge Django
django==1.9.9
# Configuration
django-environ==0.4.0
whitenoise==3.2.1
# Forms
django-braces==1.10.0
django-crispy-forms==1.6.0
django-floppyforms==1.7.0
# Models
django-model-utils==2.6
# Images
Pillow==3.3.1
# For user registration, either via emai... | 5b622c4eaa2b0701dad315690a2d4c618be67695 | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>original/src/exercises/chaining_methods/problem.md
d3.select('body')
.attr('class', 'app')
.style('background-color', 'lightgrey');
```
There is a gotcha with method chaining, however: while most operations return the same selection, some methods return a new one! For example, `selection.append` re... | d3.select('body')
.attr('class', 'app')
.style('background-color', 'lightgrey');
```
There is a gotcha with method chaining, however: while most operations return the same selection, some methods return a new one! For example, `selection.append` returns a new selection containing the new elements. This conveni... | <|file_sep|>original/src/exercises/chaining_methods/problem.md
d3.select('body')
.attr('class', 'app')
.style('background-color', 'lightgrey');
```
There is a gotcha with method chaining, however: while most operations return the same selection, some methods return a new one! For example, `selection.append` re... | ee3c859d65661c060a2c8dd9493daf06a3450bf2 | src/exercises/chaining_methods/problem.md | src/exercises/chaining_methods/problem.md | Markdown |
<|file_sep|>byceps/blueprints/admin/core/templates/layout/admin/_header_nav_global.html.diff
original:
updated:
url_for('site_admin.index'),
_('Sites'),
id='sites_admin',
required_permission='site.view',
icon='site')
.add_item(
<|file_sep|>original/byceps/blueprints/admin/core/templat... | .add_item(
url_for('site_admin.index'),
_('Sites'),
id='sites_admin',
required_permission='site.view',
icon='site')
.add_item(
url_for('party_admin.index'),
_('Parties'),
id='parties_admin',
required_permission='party.view',
icon='date')
.add_item(... | <|file_sep|>byceps/blueprints/admin/core/templates/layout/admin/_header_nav_global.html.diff
original:
updated:
url_for('site_admin.index'),
_('Sites'),
id='sites_admin',
required_permission='site.view',
icon='site')
.add_item(
<|file_sep|>original/byceps/blueprints/admin/core/templat... | 8dac5baeade148ed7b03e9f7fe0b5b631e486da6 | byceps/blueprints/admin/core/templates/layout/admin/_header_nav_global.html | byceps/blueprints/admin/core/templates/layout/admin/_header_nav_global.html | HTML |
<|file_sep|>original/dev-server/server.js
'use strict';
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('../webpack.config');
var ip = '0.0.0.0';
var port = 3000;
new WebpackDevServer(webpack(config), {
contentBase: __dirname,
publicPath: config.ou... | 'use strict';
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('../webpack.config');
var ip = '0.0.0.0';
var port = 8080;
new WebpackDevServer(webpack(config), {
contentBase: __dirname,
publicPath: config.output.publicPath,
hot: true,
histor... | <|file_sep|>original/dev-server/server.js
'use strict';
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('../webpack.config');
var ip = '0.0.0.0';
var port = 3000;
new WebpackDevServer(webpack(config), {
contentBase: __dirname,
publicPath: config.ou... | 5d4d0b2af95f7d03754cbc68ab8c7b73dbfd51af | dev-server/server.js | dev-server/server.js | JavaScript |
<|file_sep|>package.json.diff
original:
"version": "1.2.1",
updated:
"version": "1.2.2",
<|file_sep|>package.json.diff
original:
"blanket": {
"pattern": "//^((?!(node_modules|test)).)*$/"
},
"coverage": "mocha -r blanket -R html-cov > coverage_loopback-datasource-juggler.html",
updated:
<|file_se... | "url": "https://github.com/strongloop/loopback-datasource-juggler"
},
"main": "index.js",
"scripts": {
"test": "make test"
},
"engines": [
"node >= 0.6"
],
"devDependencies": {
"should": "~1.2.2",
"mocha": "~1.12.1"
},
"dependencies": {
"async": "~0.2.9",
"inflection": "~1.... | <|file_sep|>package.json.diff
original:
"version": "1.2.1",
updated:
"version": "1.2.2",
<|file_sep|>package.json.diff
original:
"blanket": {
"pattern": "//^((?!(node_modules|test)).)*$/"
},
"coverage": "mocha -r blanket -R html-cov > coverage_loopback-datasource-juggler.html",
updated:
<|file_se... | 31c5504050a1ee5cb5f6c0692bfeb18f424ee899 | package.json | package.json | JSON |
<|file_sep|>kernel/core/test.c.diff
original:
#define TEST_RESULT_PORT_NUMBER 0xf4
updated:
#define Test_Result_Port_Number 0xf4
<|file_sep|>original/kernel/core/test.c
#include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log... | #include <arch/x64/port.h>
#include <truth/panic.h>
#define Test_Result_Port_Number 0xf4
void test_shutdown_status(enum status status) {
logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status);
write_port(status, Test_Result_Port_Number);
} | <|file_sep|>kernel/core/test.c.diff
original:
#define TEST_RESULT_PORT_NUMBER 0xf4
updated:
#define Test_Result_Port_Number 0xf4
<|file_sep|>original/kernel/core/test.c
#include <arch/x64/port.h>
#include <truth/panic.h>
#define TEST_RESULT_PORT_NUMBER 0xf4
void test_shutdown_status(enum status status) {
logf(Log... | 7508c0b8948668b45c38cfc3dd4e2a9c4709dd3e | kernel/core/test.c | kernel/core/test.c | C |
<|file_sep|>spec/unit/veritas/algebra/summarization/class_methods/new_spec.rb.diff
original:
let(:header) { [ [ :id, Integer ] ] }
let(:operand) { Relation.new(header, [ [ 1 ], [ 2 ] ]) }
let(:summarizers) { {} }
let(:object) { described_class ... |
describe Algebra::Summarization, '.new' do
subject { object.new(operand, summarize_per, summarizers) }
let(:header) { [ [ :id, Integer ], [ :name, String ] ] }
let(:operand) { Relation.new(header, [ [ 1, 'John Doe' ], [ 2, 'Jane Doe' ] ]) }
let(:summarizers) { {} ... | <|file_sep|>spec/unit/veritas/algebra/summarization/class_methods/new_spec.rb.diff
original:
let(:header) { [ [ :id, Integer ] ] }
let(:operand) { Relation.new(header, [ [ 1 ], [ 2 ] ]) }
let(:summarizers) { {} }
let(:object) { described_class ... | c50ce15e9ae2e8c2e758d2d5eb1b3d38d7addf62 | spec/unit/veritas/algebra/summarization/class_methods/new_spec.rb | spec/unit/veritas/algebra/summarization/class_methods/new_spec.rb | Ruby |
<|file_sep|>original/start.sh
#!/bin/bash
/opt/envsubst < /envsubst_template.json > /conf/runtime.json
exec java -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -jar /git-bridge.jar /conf/runtime.json
<|file_sep|>current/start.sh
#!/bin/bash
/opt/envsubst < /envsubst_template.json > /conf/runtime.json
exec java -XX:... | #!/bin/bash
/opt/envsubst < /envsubst_template.json > /conf/runtime.json
exec java -XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -jar /git-bridge.jar /conf/runtime.json | <|file_sep|>original/start.sh
#!/bin/bash
/opt/envsubst < /envsubst_template.json > /conf/runtime.json
exec java -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -jar /git-bridge.jar /conf/runtime.json
<|file_sep|>current/start.sh
#!/bin/bash
/opt/envsubst < /envsubst_template.json > /conf/runtime.json
exec java -XX:... | 20a0849ea819599c9459908b15e6f1634a0dff70 | start.sh | start.sh | Shell |
<|file_sep|>docs/Release.md.diff
original:
# 2017-07-16
updated:
# 2018-05-10
<|file_sep|>original/docs/Release.md
# 2017-07-16
- Add 2 new compliance rules for metrics "ComplexityHighest" and "NestingDepthHighest"
<|file_sep|>current/docs/Release.md
# 2018-05-10
- Add 2 new compliance rules for metrics... | # 2018-05-10
## Getting the per-function test coverage information is much more efficient
- `Get-FunctionTestCoverage` will not run the whole tests suite for each function anymore.
- It runs only test script(s) referencing/running the currently evaluated function. | <|file_sep|>docs/Release.md.diff
original:
# 2017-07-16
updated:
# 2018-05-10
<|file_sep|>original/docs/Release.md
# 2017-07-16
- Add 2 new compliance rules for metrics "ComplexityHighest" and "NestingDepthHighest"
<|file_sep|>current/docs/Release.md
# 2018-05-10
- Add 2 new compliance rules for metrics... | 8a0d63e968dc56d2214632a0c7f7beeb7400c147 | docs/Release.md | docs/Release.md | Markdown |
<|file_sep|>src/element_fa.erl.diff
original:
updated:
style = Style,
<|file_sep|>src/element_fa.erl.diff
original:
updated:
html_id = Htmlid,
<|file_sep|>original/src/element_fa.erl
-spec render_element(#fa{}) -> body().
render_element(_Record = #fa{text = Text... | style = Style,
size = Size,
html_id = Htmlid,
fa = Icon,
fw = FixedWidth}) ->
Class = [
"fa fa-" ++ wf:to_list(Icon),
?WF_IF(Size, "fa-" ++ wf:to_list(Size)... | <|file_sep|>src/element_fa.erl.diff
original:
updated:
style = Style,
<|file_sep|>src/element_fa.erl.diff
original:
updated:
html_id = Htmlid,
<|file_sep|>original/src/element_fa.erl
-spec render_element(#fa{}) -> body().
render_element(_Record = #fa{text = Text... | 958ed6ebdaa14863b18454fca3ee4f4b3d82b5f9 | src/element_fa.erl | src/element_fa.erl | Erlang |
<|file_sep|>Install.md.diff
original:
## Build and Install Google Test
updated:
## Ubuntu
### Build and Install Google Test
<|file_sep|>Install.md.diff
original:
## Build KAI
updated:
### Build KAI
<|file_sep|>original/Install.md
rm -rf /tmp/gtbuild
```
## Build KAI
```bash
git clone git@github.com:cschladetsch/KAI.... |
```bash
git clone git@github.com:cschladetsch/KAI.git
git submodule init
git submodule update
sudo apt-get install -y libboost-all-dev
mkdir build; cd build; cmake ..; make
cd ../Bin; ls
```
## Windows
You will need `cmake` installed. Then, from a Visual Studio 2017 command line, from the root of the KAI folder stru... | <|file_sep|>Install.md.diff
original:
## Build and Install Google Test
updated:
## Ubuntu
### Build and Install Google Test
<|file_sep|>Install.md.diff
original:
## Build KAI
updated:
### Build KAI
<|file_sep|>original/Install.md
rm -rf /tmp/gtbuild
```
## Build KAI
```bash
git clone git@github.com:cschladetsch/KAI.... | b45c8ac7a83d689ee372042c2af08a71969b932f | Install.md | Install.md | Markdown |
<|file_sep|>original/package.json
"petal",
"css",
"ui",
"framework",
"library"
],
"repository": {
"type": "git",
"url": "https://github.com/ShakrMedia/petal/"
},
"homepage": "http://shakrmedia.github.io/petal",
"license": "MIT",
"author": {
"name": "Shakr Media Co., Ltd.",
... | "petal",
"css",
"ui",
"framework",
"library"
],
"repository": {
"type": "git",
"url": "https://github.com/ShakrMedia/petal/"
},
"homepage": "https://shakrmedia.github.io/petal",
"license": "MIT",
"author": {
"name": "Shakr Media Co., Ltd.",
"url": "http://www.shakr.com"
... | <|file_sep|>original/package.json
"petal",
"css",
"ui",
"framework",
"library"
],
"repository": {
"type": "git",
"url": "https://github.com/ShakrMedia/petal/"
},
"homepage": "http://shakrmedia.github.io/petal",
"license": "MIT",
"author": {
"name": "Shakr Media Co., Ltd.",
... | 151b4e9bb7ec246a92d287fad53b285cd82de5e6 | package.json | package.json | JSON |
<|file_sep|>original/djng/router.py
from django.http import HttpResponse
from django_openid.request_factory import RequestFactory
from django.conf.urls.defaults import url
router = Router(
url('^foo/$', lambda r: HttpResponse('foo'), name='foo'),
url('^bar/$', lambda r: HttpResponse('bar... | from django.conf.urls.defaults import url
router = Router(
url('^foo/$', lambda r: HttpResponse('foo'), name='foo'),
url('^bar/$', lambda r: HttpResponse('bar'), name='bar')
)
rf = RequestFactory()
print router(rf.get('/bar/'))
"""
def __init__(self, *urlpairs):
self.... | <|file_sep|>original/djng/router.py
from django.http import HttpResponse
from django_openid.request_factory import RequestFactory
from django.conf.urls.defaults import url
router = Router(
url('^foo/$', lambda r: HttpResponse('foo'), name='foo'),
url('^bar/$', lambda r: HttpResponse('bar... | b7b0724b7f663a8a0d0e5c46d66f42726d700f45 | djng/router.py | djng/router.py | Python |
<|file_sep|>client/src/index.js.diff
original:
import HomeContainer from './routes/Home/HomeContainer';
import LoginContainer from './routes/Login/LoginContainer';
import SignUpContainer from './routes/SignUp/SignUpContainer';
updated:
import Home from './routes/Home/HomeContainer';
import Login from './routes/Login/Lo... | import SignUp from './routes/SignUp/SignUpContainer';
import requiresAuth from './shared/components/requiresAuth/requiresAuth'
import configureStore from './store/configureStore'
import './index.css';
const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store)
ReactDOM.render(
<Pr... | <|file_sep|>client/src/index.js.diff
original:
import HomeContainer from './routes/Home/HomeContainer';
import LoginContainer from './routes/Login/LoginContainer';
import SignUpContainer from './routes/SignUp/SignUpContainer';
updated:
import Home from './routes/Home/HomeContainer';
import Login from './routes/Login/Lo... | 7c6538d7c25278938f952559acd8c9d9baa8f360 | client/src/index.js | client/src/index.js | JavaScript |
<|file_sep|>config/ember-try.js.diff
original:
{
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': 'lts-2-8'
}
},
npm: {
devDependencies: {
'ember-source': null
... | scenarios: [
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
{
name: 'ember-lts-2.16',
npm: {
devDependencies: {
'ember-source': '~2.16.0'
}
}
},
{
name: 'ember-releas... | <|file_sep|>config/ember-try.js.diff
original:
{
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': 'lts-2-8'
}
},
npm: {
devDependencies: {
'ember-source': null
... | 8d524db8ebfa84a7d7d6a7c39e99b3389c266ff3 | config/ember-try.js | config/ember-try.js | JavaScript |
<|file_sep|>original/README.md
```
## Images
- `base` - Base image with build tools and packages
- `sandbox` - Sandbox image for SSH connections
### Language runtimes
- `ruby` - Ruby 2.0
- `nodejs` - Node.js 0.10
- `go` - Go 1.2
### Databases
- `elasticsearch` - ElasticSearch 0.90.x search engine with Op... |
## Images
- `base` - Base image with build tools and packages
- `sandbox` - Sandbox image for SSH connections
### Language runtimes
- `ruby` - Ruby 2.0
- `nodejs` - Node.js 0.10
- `go` - Go 1.2
- `erlang` - Erlang R16B03
### Databases
- `elasticsearch` - ElasticSearch 0.90.x search engine with OpenJRE 7
... | <|file_sep|>original/README.md
```
## Images
- `base` - Base image with build tools and packages
- `sandbox` - Sandbox image for SSH connections
### Language runtimes
- `ruby` - Ruby 2.0
- `nodejs` - Node.js 0.10
- `go` - Go 1.2
### Databases
- `elasticsearch` - ElasticSearch 0.90.x search engine with Op... | 3e28b3f6dafcfe712cb4dc165ef42a55489ecef4 | README.md | README.md | Markdown |
<|file_sep|>original/pre_publish.sh
set -e
./util/update_lints.py
git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
# abort if the files differ
diff "publish.files" "helper.txt"
rm helper.txt
# add all changed files
git add .
git commit -m "version bump"
set +e
cd clippy_lints && ca... | set -e
./util/update_lints.py
git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
# abort if the files differ
diff "publish.files" "helper.txt"
rm helper.txt
# add all changed files
git add .
git commit -m "Bump the version"
set +e
cd clippy_lints && cargo fmt -- --write-mode=overwrit... | <|file_sep|>original/pre_publish.sh
set -e
./util/update_lints.py
git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
# abort if the files differ
diff "publish.files" "helper.txt"
rm helper.txt
# add all changed files
git add .
git commit -m "version bump"
set +e
cd clippy_lints && ca... | 5aa41ffd06fb50228ad61422234a1cda10049065 | pre_publish.sh | pre_publish.sh | Shell |
<|file_sep|>original/.travis.yml
language: java
sudo: required
jdk:
- oraclejdk8
env:
- IDEA_VERSION=LATEST-EAP-SNAPSHOT
- IDEA_VERSION=IC-2019.1 # Current
- IDEA_VERSION=IC-2018.1 # Minimum Supported
install: true
script:
# Generate a gradle wrapper using a null gradle file so gradle < 4.6 does not fail p... | language: java
sudo: required
jdk:
- openjdk8
env:
- IDEA_VERSION=LATEST-EAP-SNAPSHOT
- IDEA_VERSION=IC-2019.1 # Current
- IDEA_VERSION=IC-2018.1 # Minimum Supported
install: true
script:
# Generate a gradle wrapper using a null gradle file so gradle < 4.6 does not fail parsing 'useJUnitPlatform()'.
- to... | <|file_sep|>original/.travis.yml
language: java
sudo: required
jdk:
- oraclejdk8
env:
- IDEA_VERSION=LATEST-EAP-SNAPSHOT
- IDEA_VERSION=IC-2019.1 # Current
- IDEA_VERSION=IC-2018.1 # Minimum Supported
install: true
script:
# Generate a gradle wrapper using a null gradle file so gradle < 4.6 does not fail p... | cee4d5c388b715d86149b1e7ec13bb6954c1b279 | .travis.yml | .travis.yml | YAML |
<|file_sep|>lib/containers/commit-preview-container.js.diff
original:
import MultiFilePatch from '../models/patch/multi-file-patch';
updated:
<|file_sep|>original/lib/containers/commit-preview-container.js
import LoadingView from '../views/loading-view';
import CommitPreviewController from '../controllers/commit-previ... | import LoadingView from '../views/loading-view';
import CommitPreviewController from '../controllers/commit-preview-controller';
export default class CommitPreviewContainer extends React.Component {
static propTypes = {
repository: PropTypes.object.isRequired,
}
fetchData = repository => {
return yubiki... | <|file_sep|>lib/containers/commit-preview-container.js.diff
original:
import MultiFilePatch from '../models/patch/multi-file-patch';
updated:
<|file_sep|>original/lib/containers/commit-preview-container.js
import LoadingView from '../views/loading-view';
import CommitPreviewController from '../controllers/commit-previ... | c23bbd25fa99480837d2824ec70af65c33ff192a | lib/containers/commit-preview-container.js | lib/containers/commit-preview-container.js | JavaScript |
<|file_sep|>original/docker-compose.yml
services:
api:
command: python3 server.py --redis-host=redis --es-hosts=elasticsearch
build: .
ports:
- "8888:8888"
links:
- redis
- elasticsearch
redis:
image: redis:latest
ports:
- "6379:6379"
elasticsearch:
image: el... | api:
command: python3 server.py --redis-host=redis --es-hosts=elasticsearch
build: .
ports:
- "8888:8888"
links:
- redis
- elasticsearch
redis:
image: redis:latest
ports:
- "6379:6379"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4... | <|file_sep|>original/docker-compose.yml
services:
api:
command: python3 server.py --redis-host=redis --es-hosts=elasticsearch
build: .
ports:
- "8888:8888"
links:
- redis
- elasticsearch
redis:
image: redis:latest
ports:
- "6379:6379"
elasticsearch:
image: el... | 84c2dd91a305172015074612ea13139bdb165c1e | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>original/lib/epp-client/hostmaster-connection.rb
module EPPClient
module HostmasterConnection
def send_frame(xml)
@sent_frame = xml
@socket.write([xml.bytesize + 4].pack("N") + xml)
sent_frame_to_xml
end
end
end
<|file_sep|>current/lib/epp-client/hostmaster-connection.rb
module... | module EPPClient
module HostmasterConnection
def send_frame(xml)
@sent_frame = xml
@socket.write [xml.bytesize + 4].pack("N")
@socket.write xml
sent_frame_to_xml
end
end
end | <|file_sep|>original/lib/epp-client/hostmaster-connection.rb
module EPPClient
module HostmasterConnection
def send_frame(xml)
@sent_frame = xml
@socket.write([xml.bytesize + 4].pack("N") + xml)
sent_frame_to_xml
end
end
end
<|file_sep|>current/lib/epp-client/hostmaster-connection.rb
module... | 25b7787536233ae5b3be4f5debc3e0b31b5fb04b | lib/epp-client/hostmaster-connection.rb | lib/epp-client/hostmaster-connection.rb | Ruby |
<|file_sep|>original/packages/Python/lldbsuite/test/lang/c/inlines/main.c
#include <stdio.h>
void test1(int) __attribute__ ((always_inline));
void test2(int) __attribute__ ((always_inline));
void test2(int b) {
printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["4... | #include <stdio.h>
inline void test1(int) __attribute__ ((always_inline));
inline void test2(int) __attribute__ ((always_inline));
void test2(int b) {
printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
}
void test1(int a) {
printf("test1(%d)\n", a);
... | <|file_sep|>original/packages/Python/lldbsuite/test/lang/c/inlines/main.c
#include <stdio.h>
void test1(int) __attribute__ ((always_inline));
void test2(int) __attribute__ ((always_inline));
void test2(int b) {
printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["4... | f1ab4741e908aef88a7ac7f0c375b75fe51c39b4 | packages/Python/lldbsuite/test/lang/c/inlines/main.c | packages/Python/lldbsuite/test/lang/c/inlines/main.c | C |
<|file_sep|>original/.travis.yml
matrix:
allow_failures:
- php: 7.0
before_script:
- echo Start travis
- echo Current dir is `pwd`
- echo Home dir is `echo ~`
- wget https://packages.zendframework.com/pyrus.phar
- php pyrus.phar . channel-discover packages.zendframework.com
- php pyrus.phar . in... | - 5.4
matrix:
allow_failures:
- php: 7.0
before_script:
- echo Start travis
- echo Current dir is `pwd`
- echo Home dir is `echo ~`
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash
- wget https://scrutinizer-ci.com/ocular.phar
script:
- phpcs -i
- phpcs --standard=PEAR /home/travis/bu... | <|file_sep|>original/.travis.yml
matrix:
allow_failures:
- php: 7.0
before_script:
- echo Start travis
- echo Current dir is `pwd`
- echo Home dir is `echo ~`
- wget https://packages.zendframework.com/pyrus.phar
- php pyrus.phar . channel-discover packages.zendframework.com
- php pyrus.phar . in... | 60c441e2fd03c2ff7bc11aaea3f96f719460eedb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
PluginUnloadingTest
===================
A proof of concept of dynamic plugin unloading.
<|file_sep|>current/README.md
PluginUnloadingTest
===================
A proof of concept of dynamic plugin unloading.
<|file_sep|>updated/README.md | PluginUnloadingTest
===================
A simple example of dynamic plugin unloading in java.
1. Run `mvn package`
2. Run `copy.sh`
3. Run `start.sh`
4. In another terminal check who's using plugin-1.jar `fuser plugin-1.jar`.
There shouldn't be anyone. Or at least process id of the JVM running the example shouldn't b... | <|file_sep|>original/README.md
PluginUnloadingTest
===================
A proof of concept of dynamic plugin unloading.
<|file_sep|>current/README.md
PluginUnloadingTest
===================
A proof of concept of dynamic plugin unloading.
<|file_sep|>updated/README.md
PluginUnloadingTest
===================
A simple e... | 9c864b5a6af44acd07e5b7f2a2c742dcf8f4aa30 | README.md | README.md | Markdown |
<|file_sep|>original/scripts/publish-helm-package.sh
HELM_REPO_DIR=$HELM_DIR/$HELM_REPO
PACKAGE_DIR=$HELM_REPO_DIR/docs
PACKAGE_PATH=$PACKAGE_DIR/$CHART-$VERSION.tgz
rm -rf build
mkdir build
cp -r $CHART build
pushd build
sed --in-place s/_ReplaceWithBuildNumber_/$BUILD_NUMBER/ $CHART/Chart.yaml
helm dependency updat... |
HELM_REPO_DIR=$HELM_DIR/$HELM_REPO
PACKAGE_DIR=$HELM_REPO_DIR/docs
PACKAGE_PATH=$PACKAGE_DIR/$CHART-$VERSION.tgz
rm -rf build
mkdir build
cp -r $CHART build
pushd build
sed --in-place s/_ReplaceWithBuildNumber_/$BUILD_NUMBER/ $CHART/Chart.yaml
helm dependency update $CHART
helm package -d $PACKAGE_DIR --version $VERS... | <|file_sep|>original/scripts/publish-helm-package.sh
HELM_REPO_DIR=$HELM_DIR/$HELM_REPO
PACKAGE_DIR=$HELM_REPO_DIR/docs
PACKAGE_PATH=$PACKAGE_DIR/$CHART-$VERSION.tgz
rm -rf build
mkdir build
cp -r $CHART build
pushd build
sed --in-place s/_ReplaceWithBuildNumber_/$BUILD_NUMBER/ $CHART/Chart.yaml
helm dependency updat... | 2af4bb4cf499d52bf64ca6d9ee1284150532277e | scripts/publish-helm-package.sh | scripts/publish-helm-package.sh | Shell |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml | # https://aka.ms/yaml
trigger:
- master
jobs:
- job: ShellBuild
displayName: "Build"
continueOnError: true
strategy:
matrix:
"Linux 2.1 Debug":
sdkVersion: "2.1.x"
config: Debug
imageName: ubuntu-latest
framework: netcoreapp2.1
"Linux 2.1 Release":
sdkVer... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
# https://aka.ms/yaml
trigger:
- master
jobs:
- job: ShellBuild
displayName: "Build"
continueOnError: true
strategy:
matrix:
"Linux 2.1 Debug":
sdkVersion: "2.1.x"
... | 15fe4f123e42d556bc16d3529f6e3897850ef518 | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>original/composer.json
"autoload": {
"psr-4": {
"Zend\\Memory\\": "src/"
}
},
"require": {
"php": "^5.5 || ^7.0"
},
"require-dev": {
"zendframework/zend-cache": "^2.7",
"squizlabs/php_codesniffer": "^2.3.1",
"phpunit/PHPUnit": "... | "autoload": {
"psr-4": {
"Zend\\Memory\\": "src/"
}
},
"require": {
"php": "^5.5 || ^7.0"
},
"require-dev": {
"zendframework/zend-cache": "^2.7",
"phpunit/PHPUnit": "^4.8",
"zendframework/zend-coding-standard": "~1.0.0"
},
"suggest"... | <|file_sep|>original/composer.json
"autoload": {
"psr-4": {
"Zend\\Memory\\": "src/"
}
},
"require": {
"php": "^5.5 || ^7.0"
},
"require-dev": {
"zendframework/zend-cache": "^2.7",
"squizlabs/php_codesniffer": "^2.3.1",
"phpunit/PHPUnit": "... | 771abb08edcd169266a86cc84385a7c914876ce9 | composer.json | composer.json | JSON |
<|file_sep|>perftests/CMakeLists.txt.diff
original:
updated:
if (NOT WJELEMENT)
return()
endif(NOT WJELEMENT)
<|file_sep|>original/perftests/CMakeLists.txt
set(SOURCES
WJValidator.cc
JsonPerformanceTests.cc
)
set(HEADERS
WJValidator.h
)
find_package(Boost COMPONENTS timer REQUIRED)
set(LIBS ${LIBS} ${Boos... | WJValidator.h
)
find_package(Boost COMPONENTS timer REQUIRED)
set(LIBS ${LIBS} ${Boost_LIBRARIES})
find_library(WJELEMENT wjelement)
if (NOT WJELEMENT)
return()
endif(NOT WJELEMENT)
set(LIBS ${LIBS} ${WJELEMENT})
find_library(WJREADER wjreader)
if (NOT WJREADER)
return()
endif(NOT WJREADER)
set(LIBS ${LIBS} ${WJ... | <|file_sep|>perftests/CMakeLists.txt.diff
original:
updated:
if (NOT WJELEMENT)
return()
endif(NOT WJELEMENT)
<|file_sep|>original/perftests/CMakeLists.txt
set(SOURCES
WJValidator.cc
JsonPerformanceTests.cc
)
set(HEADERS
WJValidator.h
)
find_package(Boost COMPONENTS timer REQUIRED)
set(LIBS ${LIBS} ${Boos... | 373e3a0f23f397869ec64d3dec5c648f96941cf1 | perftests/CMakeLists.txt | perftests/CMakeLists.txt | Text |
<|file_sep|>cookbooks/zookeeper/attributes/default.rb.diff
original:
default[:zookeeper][:installDir] = "/usr/local/share/zookeeper"
updated:
default[:zookeeper][:installDir] = "/opt/zookeeper"
<|file_sep|>original/cookbooks/zookeeper/attributes/default.rb
default[:zookeeper][:version] = "3.3.4"
default[:zookeeper][:i... | default[:zookeeper][:version] = "3.3.4"
default[:zookeeper][:installDir] = "/opt/zookeeper"
default[:zookeeper][:logDir] = '/var/log/zookeeper'
default[:zookeeper][:dataDir] = "/var/zookeeper"
default[:zookeeper][:snapshotDir] = "#{default[:zookeeper][:dataDir]}/snapshots"
default[:zookeeper][:tickTime] = 2000
defaul... | <|file_sep|>cookbooks/zookeeper/attributes/default.rb.diff
original:
default[:zookeeper][:installDir] = "/usr/local/share/zookeeper"
updated:
default[:zookeeper][:installDir] = "/opt/zookeeper"
<|file_sep|>original/cookbooks/zookeeper/attributes/default.rb
default[:zookeeper][:version] = "3.3.4"
default[:zookeeper][:i... | 59244d8f24eaeb8833ad430eaa615f408b3a289d | cookbooks/zookeeper/attributes/default.rb | cookbooks/zookeeper/attributes/default.rb | Ruby |
<|file_sep|>js/myapp/bcb-process.js.diff
original:
help: 'IDを入力してください'
updated:
help: 'ID を入力してください。'
<|file_sep|>original/js/myapp/bcb-process.js
initPopover() {
{
new PopoverController({
name: 'ID Popover',
selector: '#login-id-help',
help: 'IDを入力してください'
})... |
initPopover() {
{
new PopoverController({
name: 'ID Popover',
selector: '#login-id-help',
help: 'ID を入力してください。'
});
new PopoverController({
name: 'Password Popover',
selector: '#login-password-help',
help: 'パスワード を入力してください。'
});
new ... | <|file_sep|>js/myapp/bcb-process.js.diff
original:
help: 'IDを入力してください'
updated:
help: 'ID を入力してください。'
<|file_sep|>original/js/myapp/bcb-process.js
initPopover() {
{
new PopoverController({
name: 'ID Popover',
selector: '#login-id-help',
help: 'IDを入力してください'
})... | ffe51d3555c7d823ce647ed8ab60b236f717edb9 | js/myapp/bcb-process.js | js/myapp/bcb-process.js | JavaScript |
<|file_sep|>original/package.json
{
"name": "reviewdog",
"devDependencies": {
"textlint": "10.2.1",
"textlint-rule-common-misspellings": "1.0.1",
"textlint-rule-no-dead-link": "4.4.3",
"textlint-rule-write-good": "1.6.2"
}
}
<|file_sep|>current/package.json
{
"name": "reviewdog",
"devDependenc... | {
"name": "reviewdog",
"devDependencies": {
"textlint": "11.3.0",
"textlint-rule-common-misspellings": "1.0.1",
"textlint-rule-no-dead-link": "4.4.3",
"textlint-rule-write-good": "1.6.2"
}
} | <|file_sep|>original/package.json
{
"name": "reviewdog",
"devDependencies": {
"textlint": "10.2.1",
"textlint-rule-common-misspellings": "1.0.1",
"textlint-rule-no-dead-link": "4.4.3",
"textlint-rule-write-good": "1.6.2"
}
}
<|file_sep|>current/package.json
{
"name": "reviewdog",
"devDependenc... | e5ae743d63654d961fee5030886f7e83a61456a3 | package.json | package.json | JSON |
<|file_sep|>original/docs/_data/core-team.yml
- name: Mark Otto
user: mdo
gravatar: bc4ab438f7a4ce1c406aadc688427f2c
- name: Jacob Thornton
user: fat
gravatar: a98244cbdacaf1c0b55499466002f7a8
- name: Chris Rebert
user: cvrebert
gravatar: edec428c425453955f770095a7d26c50
- name: Julian Thilo
user: juth... | gravatar: bc4ab438f7a4ce1c406aadc688427f2c
- name: Jacob Thornton
user: fat
gravatar: a98244cbdacaf1c0b55499466002f7a8
- name: Chris Rebert
user: cvrebert
gravatar: edec428c425453955f770095a7d26c50
- name: Julian Thilo
user: juthilo
gravatar: 0f7dd3ce58a416be5685ea6194f82b11
- name: XhmikosR
user: x... | <|file_sep|>original/docs/_data/core-team.yml
- name: Mark Otto
user: mdo
gravatar: bc4ab438f7a4ce1c406aadc688427f2c
- name: Jacob Thornton
user: fat
gravatar: a98244cbdacaf1c0b55499466002f7a8
- name: Chris Rebert
user: cvrebert
gravatar: edec428c425453955f770095a7d26c50
- name: Julian Thilo
user: juth... | 28f4632e6c7e3bf6d03dcc7bd4b97e7a907f4554 | docs/_data/core-team.yml | docs/_data/core-team.yml | YAML |
<|file_sep|>app/controllers/json/status_controller.rb.diff
original:
updated:
total_listeners = 0
<|file_sep|>app/controllers/json/status_controller.rb.diff
original:
icecast_status = Rails.cache.read('icecast_status')
if icecast_status
updated:
rails_cache_keys = Rails.cache.instance_variable_get(:@da... |
icecast_status_keys.each do |icecast_status_key|
icecast_status = Rails.cache.read(icecast_status_key)
next unless icecast_status
icecast_sources = icecast_status['icestats']['source']
icecast_phateio_sources = Array(icecast_sources).select do |source|
source['listenurl'] =~ %r{/pha... | <|file_sep|>app/controllers/json/status_controller.rb.diff
original:
updated:
total_listeners = 0
<|file_sep|>app/controllers/json/status_controller.rb.diff
original:
icecast_status = Rails.cache.read('icecast_status')
if icecast_status
updated:
rails_cache_keys = Rails.cache.instance_variable_get(:@da... | d1c71271c31153ae9255b2cd948641064d168428 | app/controllers/json/status_controller.rb | app/controllers/json/status_controller.rb | Ruby |
<|file_sep|>syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py.diff
original:
updated:
from time import gmtime, strftime
<|file_sep|>syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py.diff
original:
updated:
when = strfti... | consistent.
"""
from time import gmtime, strftime
from django.core.management.base import BaseCommand
from syntacticframes.models import VerbNetClass
class Command(BaseCommand):
def handle(self, *args, **options):
when = strftime("%d/%m/%Y %H:%M:%S", gmtime())
verb_logger.info("{}: Start full u... | <|file_sep|>syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py.diff
original:
updated:
from time import gmtime, strftime
<|file_sep|>syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py.diff
original:
updated:
when = strfti... | ec1a25c541770a82953c743f13d525a447f3bd2d | syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py | syntacticframes_project/syntacticframes/management/commands/update_members_and_translations.py | Python |
<|file_sep|>var/spack/packages/ImageMagick/package.py.diff
original:
url = "http://www.imagemagick.org/download/ImageMagick-6.8.9-10.tar.gz"
updated:
<|file_sep|>var/spack/packages/ImageMagick/package.py.diff
original:
version('6.9.0-0', '2cf094cb86ec518fa5bc669ce2d21613')
version('6.8.9-10', 'aa050b... | # version('6.9.0-6', 'c1bce7396c22995b8bdb56b7797b4a1b',
# url="http://www.imagemagick.org/download/ImageMagick-6.9.0-6.tar.bz2")
#-------------------------------------------------------------------------
# *-10 versions are archived, so these versions should fetch reliably.
# ---------------------... | <|file_sep|>var/spack/packages/ImageMagick/package.py.diff
original:
url = "http://www.imagemagick.org/download/ImageMagick-6.8.9-10.tar.gz"
updated:
<|file_sep|>var/spack/packages/ImageMagick/package.py.diff
original:
version('6.9.0-0', '2cf094cb86ec518fa5bc669ce2d21613')
version('6.8.9-10', 'aa050b... | 959ce4f98577c872c69a29a30a2e0659e12cff75 | var/spack/packages/ImageMagick/package.py | var/spack/packages/ImageMagick/package.py | Python |
<|file_sep|>original/content/public/common/context_menu_params.cc
has_image_contents(true),
frame_id(0),
media_flags(0),
misspelling_hash(0),
speech_input_enabled(false),
spellcheck_enabled(false),
is_editable(false),
writing_direction_default(
blink::WebContext... | frame_id(0),
media_flags(0),
misspelling_hash(0),
speech_input_enabled(false),
spellcheck_enabled(false),
is_editable(false),
writing_direction_default(
blink::WebContextMenuData::CheckableMenuItemDisabled),
writing_direction_left_to_right(
blink::WebC... | <|file_sep|>original/content/public/common/context_menu_params.cc
has_image_contents(true),
frame_id(0),
media_flags(0),
misspelling_hash(0),
speech_input_enabled(false),
spellcheck_enabled(false),
is_editable(false),
writing_direction_default(
blink::WebContext... | 5e4eb5d6c5098f8a339941b8d7a1863bb70dbce3 | content/public/common/context_menu_params.cc | content/public/common/context_menu_params.cc | C++ |
<|file_sep|>original/data/transition-sites/directgov_carfueldata.yml
<|file_sep|>current/data/transition-sites/directgov_carfueldata.yml
<|file_sep|>updated/data/transition-sites/directgov_carfueldata.yml | ---
site: directgov_carfueldata
whitehall_slug: vehicle-certification-agency
homepage: https://www.gov.uk/co2-and-vehicle-tax-tools
tna_timestamp: 20171011124228
host: carfueldata.direct.gov.uk
global: =301 https://www.gov.uk/co2-and-vehicle-tax-tools
aliases:
- www.carfueldata.direct.gov.uk
- carfueldata.direct.go... | <|file_sep|>original/data/transition-sites/directgov_carfueldata.yml
<|file_sep|>current/data/transition-sites/directgov_carfueldata.yml
<|file_sep|>updated/data/transition-sites/directgov_carfueldata.yml
---
site: directgov_carfueldata
whitehall_slug: vehicle-certification-agency
homepage: https://www.gov.uk/co2-and... | 850fe53493df90d6b0cd69287900e584b8382f29 | data/transition-sites/directgov_carfueldata.yml | data/transition-sites/directgov_carfueldata.yml | YAML |
<|file_sep|>original/fm/mathengine/problemTypes/derivPolynomial.py
import random
from sympy import *
import fm.mathengine.problemTypes.problem as problem
class derivPolynomial(problem.Problem):
terms = [1,2,3,4,5]
exponents = [0,1,2,3,4,5,6]
coefficients = [1,2,3,4,5,6,7,8,9]
def generate_problem(self):
nterms... | import random
from sympy import *
import fm.mathengine.problemTypes.problem as problem
class derivPolynomial(problem.Problem):
terms = [1,2,3,4,5]
exponents = [0,1,2,3,4,5,6]
coefficients = [1,2,3,4,5,6,7,8,9]
def generate_problem(self):
nterms = random.choice(self.terms)
nexponents = random.sample(self.expo... | <|file_sep|>original/fm/mathengine/problemTypes/derivPolynomial.py
import random
from sympy import *
import fm.mathengine.problemTypes.problem as problem
class derivPolynomial(problem.Problem):
terms = [1,2,3,4,5]
exponents = [0,1,2,3,4,5,6]
coefficients = [1,2,3,4,5,6,7,8,9]
def generate_problem(self):
nterms... | cb747072b171882bcfceeeb720bba9e7c53c9357 | fm/mathengine/problemTypes/derivPolynomial.py | fm/mathengine/problemTypes/derivPolynomial.py | Python |
<|file_sep|>pkgs/applications/graphics/pqiv/default.nix.diff
original:
{ stdenv, fetchFromGitHub, getopt, which, pkgconfig, gtk3 } :
updated:
{ stdenv, fetchFromGitHub, getopt, which, pkgconfig, gtk3,
ffmpeg, imagemagick, libarchive, libspectre, libwebp, poppler
}:
<|file_sep|>original/pkgs/applications/graphics/pqiv/d... | version = "2.10.2";
src = fetchFromGitHub {
owner = "phillipberndt";
repo = "pqiv";
rev = version;
sha256 = "0zn7ps73lw04l9i4777c90ik07v3hkg66mnpz8vvvwjyi40i77a7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
getopt which gtk3
ffmpeg imagemagick libarchive libspectre libwebp... | <|file_sep|>pkgs/applications/graphics/pqiv/default.nix.diff
original:
{ stdenv, fetchFromGitHub, getopt, which, pkgconfig, gtk3 } :
updated:
{ stdenv, fetchFromGitHub, getopt, which, pkgconfig, gtk3,
ffmpeg, imagemagick, libarchive, libspectre, libwebp, poppler
}:
<|file_sep|>original/pkgs/applications/graphics/pqiv/d... | e11be36eaffd616696452813da5d0178cd6ffce5 | pkgs/applications/graphics/pqiv/default.nix | pkgs/applications/graphics/pqiv/default.nix | Nix |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.