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/shavar.ini
qualname = gunicorn
[handler_console]
class = StreamHandler
args = (sys.stdout,)
formatter = generic
[formatter_generic]
class = mozsvc.util.JsonLogFormatter
[shavar]
default_proto_ver = 2.0
lists_served = mozpub-track-digest256
moz-abp-shavar
lists_root = tests
[mozp... | qualname = gunicorn
[handler_console]
class = StreamHandler
args = (sys.stdout,)
formatter = generic
[formatter_generic]
class = mozsvc.util.JsonLogFormatter
[mozsvc]
dont_fuzz = True
[shavar]
default_proto_ver = 2.0
lists_served = mozpub-track-digest256
moz-abp-shavar
lists_root = tests
[mozpub-tra... | <|file_sep|>original/shavar.ini
qualname = gunicorn
[handler_console]
class = StreamHandler
args = (sys.stdout,)
formatter = generic
[formatter_generic]
class = mozsvc.util.JsonLogFormatter
[shavar]
default_proto_ver = 2.0
lists_served = mozpub-track-digest256
moz-abp-shavar
lists_root = tests
[mozp... | 92f0e6633566eb2d278379e07958c037c207b623 | shavar.ini | shavar.ini | INI |
<|file_sep|>original/setup.cfg
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
[flake8]
max-line-length = 99
exclude =
.git,
__pycache__,
data,
temp
<|file_sep|>current/setup.cfg
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
[flake8]
max-line-length = 99
exclud... | [metadata]
description-file = README.md
[bdist_wheel]
universal=1
[flake8]
max-line-length = 99
exclude =
.git,
__pycache__,
data,
temp
count = True | <|file_sep|>original/setup.cfg
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
[flake8]
max-line-length = 99
exclude =
.git,
__pycache__,
data,
temp
<|file_sep|>current/setup.cfg
[metadata]
description-file = README.md
[bdist_wheel]
universal=1
[flake8]
max-line-length = 99
exclud... | 0edfaa02d6c85fbd7a2262f05ec93d95f75f5964 | setup.cfg | setup.cfg | INI |
<|file_sep|>original/.travis.yml
- DM_MAPFILE="metastation"
- DM_MAPFILE="ministation"
before_install:
- sudo apt-get update -qq
- sudo apt-get install libc6:i386 libgcc1:i386 libstdc++6:i386 -qq
- sudo apt-get install python -qq
- sudo apt-get install python-pip -qq
- sudo pip install PyYaml -q
- ... |
before_install:
- sudo apt-get update -qq
- sudo apt-get install libc6:i386 libgcc1:i386 libstdc++6:i386 -qq
- sudo apt-get install python -qq
- sudo apt-get install python-pip -qq
- sudo pip install PyYaml -q
- sudo pip install beautifulsoup4 -q
install:
- curl "http://www.byond.com/download/build/${BY... | <|file_sep|>original/.travis.yml
- DM_MAPFILE="metastation"
- DM_MAPFILE="ministation"
before_install:
- sudo apt-get update -qq
- sudo apt-get install libc6:i386 libgcc1:i386 libstdc++6:i386 -qq
- sudo apt-get install python -qq
- sudo apt-get install python-pip -qq
- sudo pip install PyYaml -q
- ... | 0a29ca90a07aedd768b957d91cad62c2d4306610 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/setup.py
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan Smirnov',
author_email='i.s.smirnov@gmail.com',
license='MIT',
version=version,
url... |
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan Smirnov',
author_email='i.s.smirnov@gmail.com',
license='MIT',
version=version,
url='http://github.com/aldanor/ip... | <|file_sep|>original/setup.py
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan Smirnov',
author_email='i.s.smirnov@gmail.com',
license='MIT',
version=version,
url... | b68fbd9deefddac10328be172af4932e2149280a | setup.py | setup.py | Python |
<|file_sep|>example/graphite_example/recipes/carbon_cache.rb.diff
original:
user: nil,
updated:
user: "graphite",
<|file_sep|>example/graphite_example/recipes/carbon_cache.rb.diff
original:
enable_udp_listener: false,
updated:
udp_receiver_port: 2003,
pickle_receiver_port: 2004,
enab... | pickle_receiver_port: 2004,
enable_udp_listener: true,
cache_query_port: "7002",
cache_write_strategy: "sorted",
use_flow_control: true,
log_updates: false,
log_cache_hits: false,
whisper_autoflush: false
})
end
graphite_carbon_cache "a" do
config ({
line_rec... | <|file_sep|>example/graphite_example/recipes/carbon_cache.rb.diff
original:
user: nil,
updated:
user: "graphite",
<|file_sep|>example/graphite_example/recipes/carbon_cache.rb.diff
original:
enable_udp_listener: false,
updated:
udp_receiver_port: 2003,
pickle_receiver_port: 2004,
enab... | 85aa9a8c5f48b62f3421ed13e1d9ba55db154488 | example/graphite_example/recipes/carbon_cache.rb | example/graphite_example/recipes/carbon_cache.rb | Ruby |
<|file_sep|>original/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java
<|file_sep|>current/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java
<|file_sep|>updated/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java | /*
Copyright (C) 2003 EBI, GRL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in... | <|file_sep|>original/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java
<|file_sep|>current/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java
<|file_sep|>updated/src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java
/*
Copyright (C) 2003 EBI, GRL
This library is free software;... | aee524158dfd799ab4788d58bc39fc7f251d2d5b | src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java | src/org/ensembl/healthcheck/testcase/generic/SequenceLevel.java | Java |
<|file_sep|>original/.github/workflows/format_tests.yml
<|file_sep|>current/.github/workflows/format_tests.yml
<|file_sep|>updated/.github/workflows/format_tests.yml | name: Format Tests
on: [push, pull_request]
jobs:
format_tests:
name: Format tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Check out data
uses: actions/che... | <|file_sep|>original/.github/workflows/format_tests.yml
<|file_sep|>current/.github/workflows/format_tests.yml
<|file_sep|>updated/.github/workflows/format_tests.yml
name: Format Tests
on: [push, pull_request]
jobs:
format_tests:
name: Format tests
runs-on: ubuntu-latest
strategy:
fail-fast: fal... | f14511a52a8ae0fd0f2b619d38cedbb533642264 | .github/workflows/format_tests.yml | .github/workflows/format_tests.yml | YAML |
<|file_sep|>lib/email/mboxrd/message.rb.diff
original:
updated:
def best_from
if parsed.from.is_a? Enumerable
parsed.from.each do |addr|
if addr
return addr
end
end
end
if parsed.envelope_from
return parsed.envelope_from
end
if p... | return parsed.envelope_from
end
if parsed.return_path
return parsed.return_path
end
return ''
end
def from
best_from + " " + asctime
end
def mboxrd_body
return @mboxrd_body if @mboxrd_body
@mboxrd_body = supplied_body.gsub(/\n(>*From)/, "\n>\\... | <|file_sep|>lib/email/mboxrd/message.rb.diff
original:
updated:
def best_from
if parsed.from.is_a? Enumerable
parsed.from.each do |addr|
if addr
return addr
end
end
end
if parsed.envelope_from
return parsed.envelope_from
end
if p... | b9cfd7dd73649718ed853f28527aec936354acf7 | lib/email/mboxrd/message.rb | lib/email/mboxrd/message.rb | Ruby |
<|file_sep|>original/public/stylesheets/stylesheet-mobile.css
html, body {
width: 100%;
-webkit-text-size-adjust: none;
}
#content {
padding: 0px;
}
.section {
width: 90%;
margin: 0px;
border: 1px solid black;
background: #e1ebfb;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}
<|file_sep|>cu... | html, body {
width: auto;
height: auto;
-webkit-text-size-adjust: none;
}
#content {
padding: 0px;
}
.section {
width: 90%;
margin: 0px;
border: 1px solid black;
background: #e1ebfb;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
} | <|file_sep|>original/public/stylesheets/stylesheet-mobile.css
html, body {
width: 100%;
-webkit-text-size-adjust: none;
}
#content {
padding: 0px;
}
.section {
width: 90%;
margin: 0px;
border: 1px solid black;
background: #e1ebfb;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}
<|file_sep|>cu... | eb05a4c84ce7957c2b1e0e51aa0f0de0620c4276 | public/stylesheets/stylesheet-mobile.css | public/stylesheets/stylesheet-mobile.css | CSS |
<|file_sep|>original/recipes/pbbam/meta.yaml
build:
- llvm # [osx]
- gcc # [linux]
- cmake
- boost {{CONDA_BOOST}}*
- zlib
run:
- libgcc # [linux]
- htslib
test:
commands:
- bam2sam --help
- pbindex --help
- pbindexdump --help
- pbmerge --help
about:
home: https://... | build:
- llvm # [osx]
- gcc # [linux]
- cmake
- boost {{CONDA_BOOST}}*
- zlib
run:
- libgcc # [linux]
- htslib
- zlib
test:
commands:
- bam2sam --help
- pbindex --help
- pbindexdump --help
- pbmerge --help
about:
home: https://github.com/PacificBiosciences/{{ n... | <|file_sep|>original/recipes/pbbam/meta.yaml
build:
- llvm # [osx]
- gcc # [linux]
- cmake
- boost {{CONDA_BOOST}}*
- zlib
run:
- libgcc # [linux]
- htslib
test:
commands:
- bam2sam --help
- pbindex --help
- pbindexdump --help
- pbmerge --help
about:
home: https://... | 1563de52a9eb31c96961153ca49159646dd4f4fe | recipes/pbbam/meta.yaml | recipes/pbbam/meta.yaml | YAML |
<|file_sep|>.conda/libndtypes/meta.yaml.diff
original:
updated:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: {{ GIT_BUILD_STR }}
<|file_sep|>original/.conda/libndtypes/meta.yaml
package:
name: libndtypes
version: 0.2.0b2
test:
skip: True # tests are in build.sh
about:
home: https://github.com/plure... | package:
name: libndtypes
version: 0.2.0b2
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: {{ GIT_BUILD_STR }}
test:
skip: True # tests are in build.sh
about:
home: https://github.com/plures/
license: BSD 3-clause
source:
git_url: ../../ | <|file_sep|>.conda/libndtypes/meta.yaml.diff
original:
updated:
build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: {{ GIT_BUILD_STR }}
<|file_sep|>original/.conda/libndtypes/meta.yaml
package:
name: libndtypes
version: 0.2.0b2
test:
skip: True # tests are in build.sh
about:
home: https://github.com/plure... | d152f8859fd21a713fafe8d56c5e7c2f2a716aff | .conda/libndtypes/meta.yaml | .conda/libndtypes/meta.yaml | YAML |
<|file_sep|>original/README.md
# Hopefully
"Hopefully it works this time"
## What is this?
This is a very simple C# framework for dealing with unreliable services.
Sometimes the best way is to just retry it until it works.
We don't really know where to take this, but it was useful for our needs so we
figured we'd p... | # Hopefully 
"Hopefully it works this time"
## What is this?
This is a very simple C# framework for dealing with unreliable services.
Sometimes the best way is to just retry it until it works.
We don't really know where to take this, but it was useful for our ne... | <|file_sep|>original/README.md
# Hopefully
"Hopefully it works this time"
## What is this?
This is a very simple C# framework for dealing with unreliable services.
Sometimes the best way is to just retry it until it works.
We don't really know where to take this, but it was useful for our needs so we
figured we'd p... | 544e385583b38d19d2e5891184b006a683511313 | README.md | README.md | Markdown |
<|file_sep|>original/lib/virus_scanner.rb
require 'open3'
# Simple wrapper around ClamAV
#
# This expects govuk_clamscan to exist on the PATH, and be a symlink
# to either clamscan or clamdscan
class VirusScanner
class Error < StandardError; end
# Used for sending exception notices on infection
class InfectedFi... | require 'open3'
# Simple wrapper around ClamAV
#
# This expects govuk_clamscan to exist on the PATH, and be a symlink
# to either clamscan or clamdscan
class VirusScanner
class Error < StandardError; end
class InfectedFile < StandardError; end
def scan(file_path)
out_str, status = Open3.capture2e('govuk_cla... | <|file_sep|>original/lib/virus_scanner.rb
require 'open3'
# Simple wrapper around ClamAV
#
# This expects govuk_clamscan to exist on the PATH, and be a symlink
# to either clamscan or clamdscan
class VirusScanner
class Error < StandardError; end
# Used for sending exception notices on infection
class InfectedFi... | 9bf7ac4987783d12bb046e1a4f0039a56a0d0039 | lib/virus_scanner.rb | lib/virus_scanner.rb | Ruby |
<|file_sep|>original/.github/quarkus-github-lottery.yml
<|file_sep|>current/.github/quarkus-github-lottery.yml
<|file_sep|>updated/.github/quarkus-github-lottery.yml | notifications:
createIssues:
repository: "quarkusio/quarkus-github-lottery-reports"
buckets:
triage:
needsTriageLabel: "triage/needs-triage"
notificationExpiration: P3D
labels:
needsTriage: "triage/needs-triage"
participants:
- username: "yrodiere"
timezone: "Europe/Paris"
days: ["MONDAY", "... | <|file_sep|>original/.github/quarkus-github-lottery.yml
<|file_sep|>current/.github/quarkus-github-lottery.yml
<|file_sep|>updated/.github/quarkus-github-lottery.yml
notifications:
createIssues:
repository: "quarkusio/quarkus-github-lottery-reports"
buckets:
triage:
needsTriageLabel: "triage/needs-triage"... | 86cb777d3fe1ac409b4dce2b1b638fa49232be1b | .github/quarkus-github-lottery.yml | .github/quarkus-github-lottery.yml | YAML |
<|file_sep|>common/application_info_win.cc.diff
original:
updated:
#include "base/file_version_info.h"
#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
<|file_sep|>common/application_info_win.cc.diff
original:
return std::string();
updated:
auto info = make_scoped_ptr(FileVersionInfo::... | #include "common/application_info.h"
#include "base/file_version_info.h"
#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
namespace brightray {
std::string GetApplicationName() {
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)));
re... | <|file_sep|>common/application_info_win.cc.diff
original:
updated:
#include "base/file_version_info.h"
#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
<|file_sep|>common/application_info_win.cc.diff
original:
return std::string();
updated:
auto info = make_scoped_ptr(FileVersionInfo::... | 2948f0a3a8e98f34f4bcb3bb75cdb34bd7acdb56 | common/application_info_win.cc | common/application_info_win.cc | C++ |
<|file_sep|>original/_posts/2015-01-13-upcoming-dates.md
---
layout: post
title: Upcoming dates
subtitle: "Plan your adventure today"
cover_image: blog-cover.jpg
excerpt: "Dates, times, and more information about booking your hunt."
author:
name: Nick Spacek
---
Upcoming dates:
* March 5-6, 2015
* March 12-13, 2... | ---
layout: post
title: Upcoming dates
subtitle: "Plan your adventure today"
cover_image: blog-cover.jpg
excerpt: "Dates, times, and more information about booking your hunt."
author:
name: Springbrook Camp Outfitters
---
Upcoming dates:
* March 5-6, 2015
* March 12-13, 2015 | <|file_sep|>original/_posts/2015-01-13-upcoming-dates.md
---
layout: post
title: Upcoming dates
subtitle: "Plan your adventure today"
cover_image: blog-cover.jpg
excerpt: "Dates, times, and more information about booking your hunt."
author:
name: Nick Spacek
---
Upcoming dates:
* March 5-6, 2015
* March 12-13, 2... | 80560bad52ca1dc99734ab628262b77993f445a5 | _posts/2015-01-13-upcoming-dates.md | _posts/2015-01-13-upcoming-dates.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
language: java
jdk:
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- openjdk12
#before_script:
# - pip install --user codecov
updated:
language: minimal
<|file_sep|>.travis.yml.diff
original:
#after_success:
# - codecov
updated:
services:
- docker
<|file_sep|>original... | language: minimal
services:
- docker
jobs:
include:
- env: DOCKER_IMAGE=maven:3.6.2-jdk-8
- env: DOCKER_IMAGE=maven:3.5.4-jdk-9 # There are no newer images with Maven for this JDK
- env: DOCKER_IMAGE=maven:3.6.0-jdk-10 # There are no newer images with Maven for this JDK
- env: DOCKER_IMAGE=maven:3... | <|file_sep|>.travis.yml.diff
original:
language: java
jdk:
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- openjdk12
#before_script:
# - pip install --user codecov
updated:
language: minimal
<|file_sep|>.travis.yml.diff
original:
#after_success:
# - codecov
updated:
services:
- docker
<|file_sep|>original... | a3ddec1450b643b75f7069af01816fb6e32d9dd9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/walk-in-interview/src/main/webapp/update-job/update-job.html
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div class="header-container">
<input id="update-job-cancel">
<div id="update-job-page-t... |
<body>
<div class="header-container">
<input id="update-job-cancel">
<div id="update-job-page-title">Update Job Post</div>
<input id="update-job-submit">
</div>
<div class="content-container">
<input class="job-field" id="job-title"/>
... | <|file_sep|>original/walk-in-interview/src/main/webapp/update-job/update-job.html
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div class="header-container">
<input id="update-job-cancel">
<div id="update-job-page-t... | a6ce3b95a57574a2b3b352d56020da87de9e9a5b | walk-in-interview/src/main/webapp/update-job/update-job.html | walk-in-interview/src/main/webapp/update-job/update-job.html | HTML |
<|file_sep|>original/examples/k8s/ui.yaml
kind: Service
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- name: web
port: 80
targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: traefik-web-ui
namespace: kube... | kind: Service
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- name: web
port: 80
targetPort: 8081
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
rules:
- host: traefik-u... | <|file_sep|>original/examples/k8s/ui.yaml
kind: Service
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- name: web
port: 80
targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: traefik-web-ui
namespace: kube... | 354f69b2f66312691f1382eaad28316629cf1e2e | examples/k8s/ui.yaml | examples/k8s/ui.yaml | YAML |
<|file_sep|>original/resources/assets/components/ReviewBlock/index.js
render() {
const post = this.props.post;
return (
<div>
<ul className="form-actions -inline" style={{'marginTop': 0}}>
<li><StatusButton type="accepted" label="accept" status={post.status} setStatus={this.setStatus.... | render() {
const post = this.props.post;
return (
<div>
<ul className="form-actions -inline" style={{'marginTop': 0}}>
<li><StatusButton type="accepted" label="accept" status={post.status} setStatus={this.setStatus.bind(this)}/></li>
<li><StatusButton type="rejected" label="... | <|file_sep|>original/resources/assets/components/ReviewBlock/index.js
render() {
const post = this.props.post;
return (
<div>
<ul className="form-actions -inline" style={{'marginTop': 0}}>
<li><StatusButton type="accepted" label="accept" status={post.status} setStatus={this.setStatus.... | 85ee4e2b89a5611c6c55aee3e351a2ec71d7f920 | resources/assets/components/ReviewBlock/index.js | resources/assets/components/ReviewBlock/index.js | JavaScript |
<|file_sep|>.github/workflows/continuous-integration.yml.diff
original:
name: "Continuous Integration"
updated:
name: Continuous Integration
<|file_sep|>.github/workflows/continuous-integration.yml.diff
original:
name: "Tests"
runs-on: "ubuntu-latest"
updated:
name: CI on ${{ matrix.operating-system }} wit... | - name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
extensions: intl
php-version: ${{ matrix.php-version }}
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"... | <|file_sep|>.github/workflows/continuous-integration.yml.diff
original:
name: "Continuous Integration"
updated:
name: Continuous Integration
<|file_sep|>.github/workflows/continuous-integration.yml.diff
original:
name: "Tests"
runs-on: "ubuntu-latest"
updated:
name: CI on ${{ matrix.operating-system }} wit... | 8bd7e33d08212a9e0380ae34b1be7ad543f6551d | .github/workflows/continuous-integration.yml | .github/workflows/continuous-integration.yml | YAML |
<|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md
## What is this PR trying to achieve?
## Who is this change for?
## Have the following been considered/are they needed?
- [ ] Tests?
- [ ] Docs?
- [ ] Spoken to the right people?
<|file_sep|>current/.github/PULL_REQUEST_TEMPLATE.md
## What is this PR trying to ac... | ## What is this PR trying to achieve?
## Who is this change for?
## Have the following been considered/are they needed?
- [ ] Tests?
- [ ] Docs?
- [ ] Spoken to the right people?
---
<!-- Remove this section if you don't have Terraform changes -->
- [ ] Run `terraform apply`. | <|file_sep|>original/.github/PULL_REQUEST_TEMPLATE.md
## What is this PR trying to achieve?
## Who is this change for?
## Have the following been considered/are they needed?
- [ ] Tests?
- [ ] Docs?
- [ ] Spoken to the right people?
<|file_sep|>current/.github/PULL_REQUEST_TEMPLATE.md
## What is this PR trying to ac... | 750e9414e549479a285298c3e33819ca3313b5ec | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | Markdown |
<|file_sep|>original/client/js/controls/inputmanager.js
function addCapture(name, outname) {
if (!outname) {
outname = name;
}
document.addEventListener(name, function(e) {
self._handleEvent(outname, e);
}, false );
}
addElCapture('mousedown');
addElCapture('mouseup');
addElCaptur... | function addCapture(name, outname) {
if (!outname) {
outname = name;
}
document.addEventListener(name, function(e) {
self._handleEvent(outname, e);
}, false );
}
addElCapture('mousedown');
addCapture('mouseup');
addCapture('mousemove');
addCapture('keydown');
addCapture('keyup... | <|file_sep|>original/client/js/controls/inputmanager.js
function addCapture(name, outname) {
if (!outname) {
outname = name;
}
document.addEventListener(name, function(e) {
self._handleEvent(outname, e);
}, false );
}
addElCapture('mousedown');
addElCapture('mouseup');
addElCaptur... | e67e74d31a4e54da5e61f45490202ba7eb68bf6d | client/js/controls/inputmanager.js | client/js/controls/inputmanager.js | JavaScript |
<|file_sep|>original/README.md
metson
======
[](https://magnum.travis-ci.com/cloudant/python-cloudant)
Prototype cloudant API. If it all goes wrong, you can just blame Metson.
<|file_sep|>current/README... | metson
======
[](https://magnum.travis-ci.com/cloudant/python-cloudant)
Prototype cloudant API. If it all goes wrong, you can just blame Metson. | <|file_sep|>original/README.md
metson
======
[](https://magnum.travis-ci.com/cloudant/python-cloudant)
Prototype cloudant API. If it all goes wrong, you can just blame Metson.
<|file_sep|>current/README... | 617ef6e81c36c76c5ee8c15fbdc7a6a1bfd5ca6b | README.md | README.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
- pip install -r requirements.txt -U pytest
updated:
- pip install -r requirements.txt -U pytest==$PYTEST_VERSION
<|file_sep|>.travis.yml.diff
original:
- env: RUN_COMMAND=python run.py
updated:
- env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http... | install:
- pip install -r requirements.txt -U pytest==$PYTEST_VERSION
jobs:
include:
- env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http://plugincompat.herokuapp.com
python: '2.7'
- env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http://plugincompat.heroku... | <|file_sep|>.travis.yml.diff
original:
- pip install -r requirements.txt -U pytest
updated:
- pip install -r requirements.txt -U pytest==$PYTEST_VERSION
<|file_sep|>.travis.yml.diff
original:
- env: RUN_COMMAND=python run.py
updated:
- env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http... | fc65d65e3f380731904944da3ba2ec966a0c0f3a | .travis.yml | .travis.yml | YAML |
<|file_sep|>setup.cfg.diff
original:
Framework :: Django :: 2.2
updated:
<|file_sep|>setup.cfg.diff
original:
django>=2.2
updated:
django>=3.2
<|file_sep|>original/setup.cfg
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Framework :: Dj... | License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Framework :: Django
Framework :: Django :: 3.2
Topic :: Software Development :: Libraries :: Python Modules
[options]
package_dir =
= .
packages =... | <|file_sep|>setup.cfg.diff
original:
Framework :: Django :: 2.2
updated:
<|file_sep|>setup.cfg.diff
original:
django>=2.2
updated:
django>=3.2
<|file_sep|>original/setup.cfg
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Framework :: Dj... | dcea09329a3e1051f1e469228679311fe6c64f5c | setup.cfg | setup.cfg | INI |
<|file_sep|>original/src/CommandListener.java
Player player = event.getPlayer();
String message = event.getMessage().toLowerCase();
/* Important: The spaces afterwards are necessary. Otherwise we get something like this being activated on /world because of /w */
if (message.startsWith("/tell ")
|| message... | Player player = event.getPlayer();
String message = event.getMessage().toLowerCase();
/* Important: The spaces afterwards are necessary. Otherwise we get something like this being activated on /world because of /w */
if (message.startsWith("/tell ")
|| message.startsWith("/me ")
|| message.startsWith(... | <|file_sep|>original/src/CommandListener.java
Player player = event.getPlayer();
String message = event.getMessage().toLowerCase();
/* Important: The spaces afterwards are necessary. Otherwise we get something like this being activated on /world because of /w */
if (message.startsWith("/tell ")
|| message... | 84b41e0321572a700b6ecc0b99323092a2b7f92d | src/CommandListener.java | src/CommandListener.java | Java |
<|file_sep|>server/publications.js.diff
original:
var daysAgo = new Date();
daysAgo.setDate(daysAgo.getDate()-90);
updated:
<|file_sep|>original/server/publications.js
if(this.userId){
return [
Users.find({_id: this.userId})
];
}
this.ready();
});
Meteor.publish("jobs", function(){
var daysAgo = new Date... | if(this.userId){
return [
Users.find({_id: this.userId})
];
}
this.ready();
});
Meteor.publish("jobs", function(){
check(arguments, [Match.Any]);
return [
Jobs.find({})
];
});
Meteor.publish("experts", function(){
check(arguments, [Match.Any]);
return [
Experts.find({})
];
}); | <|file_sep|>server/publications.js.diff
original:
var daysAgo = new Date();
daysAgo.setDate(daysAgo.getDate()-90);
updated:
<|file_sep|>original/server/publications.js
if(this.userId){
return [
Users.find({_id: this.userId})
];
}
this.ready();
});
Meteor.publish("jobs", function(){
var daysAgo = new Date... | 412a686c8767d0636222d432f5b13f1e7c60cfb0 | server/publications.js | server/publications.js | JavaScript |
<|file_sep|>metadata/com.nkanaev.comics.txt.diff
original:
updated:
Build:1.5.0,6
commit=v1.5.0
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.nkanaev.comics.txt
gradle=yes
Build:1.2.0,3
commit=v1.2.0
subdir=app
gradle=yes
Build:1.3.0,4
commit=v1.3.0
subdir=app
gradl... | gradle=yes
Build:1.3.0,4
commit=v1.3.0
subdir=app
gradle=yes
Build:1.4.0,5
commit=v1.4.0
subdir=app
gradle=yes
Build:1.5.0,6
commit=v1.5.0
subdir=app
gradle=yes
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:1.5.0
Current Version Code:6 | <|file_sep|>metadata/com.nkanaev.comics.txt.diff
original:
updated:
Build:1.5.0,6
commit=v1.5.0
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.nkanaev.comics.txt
gradle=yes
Build:1.2.0,3
commit=v1.2.0
subdir=app
gradle=yes
Build:1.3.0,4
commit=v1.3.0
subdir=app
gradl... | 4beb6bbcf4c8a0c2a077c8fb9df2c478a49869f5 | metadata/com.nkanaev.comics.txt | metadata/com.nkanaev.comics.txt | Text |
<|file_sep|>original/lib/puffer/backends/controllers/tree_base.rb
class TreeBase < Puffer::Base
helper 'puffer/helpers/puffer_tree'
define_fieldset :tree, :fallbacks => :index
def index
return super if puffer_filters.any?
@records = resource.collection_scope
if session[:expanded].pres... | class TreeBase < Puffer::Base
helper 'puffer/helpers/puffer_tree'
define_fieldset :tree, :fallbacks => :index
def index
return super if puffer_filters.any?
@records = resource.collection_scope
if session[:expanded].present?
table = resource.model.arel_table
@records = ... | <|file_sep|>original/lib/puffer/backends/controllers/tree_base.rb
class TreeBase < Puffer::Base
helper 'puffer/helpers/puffer_tree'
define_fieldset :tree, :fallbacks => :index
def index
return super if puffer_filters.any?
@records = resource.collection_scope
if session[:expanded].pres... | 54bfc0a2d5b30e479f37c6a69d620795124b95ee | lib/puffer/backends/controllers/tree_base.rb | lib/puffer/backends/controllers/tree_base.rb | Ruby |
<|file_sep|>original/src/cs437/som/network/package-info.java
<|file_sep|>current/src/cs437/som/network/package-info.java
<|file_sep|>updated/src/cs437/som/network/package-info.java | /**
* The {@code network} package contains classes implementing self-organizing
* maps. These classes all implement
* {@link cs437.som.TrainableSelfOrganizingMap} in {@link cs437.som}, either
* directly or indirectly.
*/
package cs437.som.network; | <|file_sep|>original/src/cs437/som/network/package-info.java
<|file_sep|>current/src/cs437/som/network/package-info.java
<|file_sep|>updated/src/cs437/som/network/package-info.java
/**
* The {@code network} package contains classes implementing self-organizing
* maps. These classes all implement
* {@link cs437.so... | d4b101f0e887dfeb6500eb0390c0e2c654a06223 | src/cs437/som/network/package-info.java | src/cs437/som/network/package-info.java | Java |
<|file_sep|>original/scripts/fix_system_tags.py
<|file_sep|>current/scripts/fix_system_tags.py
<|file_sep|>updated/scripts/fix_system_tags.py | # -*- coding: utf-8 -*-
"""Add system tags that weren't added during the Toku->Postgres migration.
Pass a path to a JSON file that has node IDs as keys and lists of system tag names
as values.
"""
import sys
import logging
import json
from website.app import setup_django
setup_django()
from osf.models import AbstractNo... | <|file_sep|>original/scripts/fix_system_tags.py
<|file_sep|>current/scripts/fix_system_tags.py
<|file_sep|>updated/scripts/fix_system_tags.py
# -*- coding: utf-8 -*-
"""Add system tags that weren't added during the Toku->Postgres migration.
Pass a path to a JSON file that has node IDs as keys and lists of system tag ... | c269f2e7a161ee0fdcafed2beb0883cabe1a960f | scripts/fix_system_tags.py | scripts/fix_system_tags.py | Python |
<|file_sep|>original/spec/file_storage_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'odf/text'
require "tempfile"
describe "file storage" do
before do
@default_internal = Encoding.default_internal
@tempfilename = Tempfile.create("text") { |f| f.path }
end
after do... |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'odf/text'
require "tempfile"
describe "file storage" do
before do
@default_internal = Encoding.default_internal
@tempfilename = Tempfile.new("text").path
end
after do
Encoding.default_internal = @default_internal
File.... | <|file_sep|>original/spec/file_storage_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'odf/text'
require "tempfile"
describe "file storage" do
before do
@default_internal = Encoding.default_internal
@tempfilename = Tempfile.create("text") { |f| f.path }
end
after do... | e43aaf34a1b0813c3e9fcc684877d72e6547113d | spec/file_storage_spec.rb | spec/file_storage_spec.rb | Ruby |
<|file_sep|>original/fastlane/travis.sh
#!/bin/sh
if [[ "TRAVIS_PULL_REQUEST" != false]]; then
gem install bundler
bundle install
bundle exec fastlane test
exit $?
fi
<|file_sep|>current/fastlane/travis.sh
#!/bin/sh
if [[ "TRAVIS_PULL_REQUEST" != false]]; then
gem install bundler
bundle install
b... | #!/bin/sh
if [[ "${TRAVIS_BRANCH}" == "swift-3"]]; then
gem install bundler
bundle install
bundle exec fastlane test
exit $?
fi
if [[ "TRAVIS_PULL_REQUEST" != false]]; then
gem install bundler
bundle install
bundle exec fastlane test
exit $?
fi | <|file_sep|>original/fastlane/travis.sh
#!/bin/sh
if [[ "TRAVIS_PULL_REQUEST" != false]]; then
gem install bundler
bundle install
bundle exec fastlane test
exit $?
fi
<|file_sep|>current/fastlane/travis.sh
#!/bin/sh
if [[ "TRAVIS_PULL_REQUEST" != false]]; then
gem install bundler
bundle install
b... | 0a15a4e38e6398758a9a99cde35c7b22d780e00e | fastlane/travis.sh | fastlane/travis.sh | Shell |
<|file_sep|>original/app/views/users/private_message_threads/new.html.haml
%section.new-thread
%header
%h1= t '.message_for_html', other: link_to_profile(@user)
%p= t '.introduction_html', other: link_to_profile(@user)
= semantic_form_for @thread, as: :thread, url: {action: :create}, html: {class: 'guided'}... | %section.new-thread
%header
%h1= t '.message_for_html', other: link_to_profile(@user)
%p= t '.introduction_html', other: link_to_profile(@user)
= semantic_form_for @thread, as: :thread, url: {action: :create}, html: {class: 'guided'} do |f|
= f.semantic_errors
= f.inputs do
= f.input :title, i... | <|file_sep|>original/app/views/users/private_message_threads/new.html.haml
%section.new-thread
%header
%h1= t '.message_for_html', other: link_to_profile(@user)
%p= t '.introduction_html', other: link_to_profile(@user)
= semantic_form_for @thread, as: :thread, url: {action: :create}, html: {class: 'guided'}... | 016c024eb7e4fd888b4a3d359d9b7d240588c35d | app/views/users/private_message_threads/new.html.haml | app/views/users/private_message_threads/new.html.haml | Haml |
<|file_sep|>original/.kitchen.yml
driver:
name: vagrant
platforms:
- name: centos-5.10
- name: centos-6.5
- name: fedora-19
- name: macosx-10.9
- name: debian-7.4
run_list: recipe[apt::default]
- name: ubuntu-10.04
run_list: recipe[apt::default]
- name: ubuntu-12.04
run_list: recipe[apt::de... | driver:
name: vagrant
platforms:
- name: centos-5.10
- name: centos-6.5
- name: fedora-19
- name: freebsd-9.2
- name: macosx-10.9
- name: debian-7.4
run_list: recipe[apt::default]
- name: ubuntu-10.04
run_list: recipe[apt::default]
- name: ubuntu-12.04
run_list: recipe[apt::default]
- n... | <|file_sep|>original/.kitchen.yml
driver:
name: vagrant
platforms:
- name: centos-5.10
- name: centos-6.5
- name: fedora-19
- name: macosx-10.9
- name: debian-7.4
run_list: recipe[apt::default]
- name: ubuntu-10.04
run_list: recipe[apt::default]
- name: ubuntu-12.04
run_list: recipe[apt::de... | 4dd5f2b63d0c821bffc9f5ac09c7f292de2df8ed | .kitchen.yml | .kitchen.yml | YAML |
<|file_sep|>original/etc/README.md
## Builds
Builds are run from a docker build image that is configured with the node and go we support.
Our circle.yml uses this docker container to build, test and create release packages.
### Updating new node/go versions
After updating the Dockerfile_build run
`docker build -t qu... | ## Builds
Builds are run from a docker build image that is configured with the node and go we support.
Our circle.yml uses this docker container to build, test and create release packages.
### Updating new node/go versions
After updating the Dockerfile_build run
`docker build -t quay.io/influxdb/builder:chronograf-$... | <|file_sep|>original/etc/README.md
## Builds
Builds are run from a docker build image that is configured with the node and go we support.
Our circle.yml uses this docker container to build, test and create release packages.
### Updating new node/go versions
After updating the Dockerfile_build run
`docker build -t qu... | 7bd56cea7cc7f739b9375c01292d6db6fc29ffbc | etc/README.md | etc/README.md | Markdown |
<|file_sep|>original/Resources/translations/flashes.en.yml
<|file_sep|>current/Resources/translations/flashes.en.yml
<|file_sep|>updated/Resources/translations/flashes.en.yml | # This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
sylius:
product_variant:
cannot_generate_variants: 'Cannot generate variants for a product without options values.' | <|file_sep|>original/Resources/translations/flashes.en.yml
<|file_sep|>current/Resources/translations/flashes.en.yml
<|file_sep|>updated/Resources/translations/flashes.en.yml
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski
sylius:
product_variant:
cannot_generate_variants: 'Cannot gen... | 8b9cbf2610dfedffd3070d76a7574200de1bc8d9 | Resources/translations/flashes.en.yml | Resources/translations/flashes.en.yml | YAML |
<|file_sep|>original/extension/manifest.json
{
"manifest_version": 2,
"name": "My Style",
"description": "Insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.",
"version": "0.1",
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
... | {
"manifest_version": 2,
"name": "My Style",
"description": "Insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.",
"version": "0.2",
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
"css": ["my-style.css"],
"js": ["my-styl... | <|file_sep|>original/extension/manifest.json
{
"manifest_version": 2,
"name": "My Style",
"description": "Insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.",
"version": "0.1",
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
... | a34fdb80bdc0580fa29dfaa47a1cee9684a959b0 | extension/manifest.json | extension/manifest.json | JSON |
<|file_sep|>original/src/edu/ames/frc/robot/InputManager.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.ames.frc.robot;
/* List of buttons/toggles needed
* Manual pivot toggle: 2
* Speed boost button: Active joystick push
* Force shoot button: 4 ... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.ames.frc.robot;
/* List of buttons/toggles needed
* Manual pivot toggle: 2
* Speed boost button: Active joystick push
* Force shoot button: 4
* Force Realign button: 7
* Stop auto-target toggle: 10
* ... | <|file_sep|>original/src/edu/ames/frc/robot/InputManager.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.ames.frc.robot;
/* List of buttons/toggles needed
* Manual pivot toggle: 2
* Speed boost button: Active joystick push
* Force shoot button: 4 ... | 613261ba7349db4ec5ba0a35f3c1ae7441895f69 | src/edu/ames/frc/robot/InputManager.java | src/edu/ames/frc/robot/InputManager.java | Java |
<|file_sep|>original/Cargo.toml
[package]
name = "litecraft"
version = "0.1.0"
authors = ["Miguel Peláez <kernelfreeze@protonmail.com>"]
[dependencies]
image = "0.19"
zip = "0.4"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.8"
log = "0.4"
cgmath = "0.16.1"
lazy_static = "1.1"
simple_logger = "... | [package]
name = "litecraft"
version = "0.1.0"
authors = ["Miguel Peláez <kernelfreeze@protonmail.com>"]
[dependencies]
image = "0.19"
zip = "0.4"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.8"
log = "0.4"
cgmath = "0.16.1"
lazy_static = "1.1"
simple_logger = "0.5.0"
threadpool = "1.0"
rhai =... | <|file_sep|>original/Cargo.toml
[package]
name = "litecraft"
version = "0.1.0"
authors = ["Miguel Peláez <kernelfreeze@protonmail.com>"]
[dependencies]
image = "0.19"
zip = "0.4"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.8"
log = "0.4"
cgmath = "0.16.1"
lazy_static = "1.1"
simple_logger = "... | 3c0aa1ea131af06a4e0260a5cbafe763fd641261 | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/evaluation/packages/colours.py
<|file_sep|>current/evaluation/packages/colours.py
<|file_sep|>updated/evaluation/packages/colours.py | """@package Colours
This module provides the colourmaps used in globOpt to display primitives
according to their gid
"""
import packages.primitive as primitive
import packages.orderedSet as orderedSet
class Colours(object):
def __init__(self):
self.colListMedium = ['#F15A60', '#7AC36A', '#5A9BD4', '#FA... | <|file_sep|>original/evaluation/packages/colours.py
<|file_sep|>current/evaluation/packages/colours.py
<|file_sep|>updated/evaluation/packages/colours.py
"""@package Colours
This module provides the colourmaps used in globOpt to display primitives
according to their gid
"""
import packages.primitive as primitive
i... | f290dd020b2cb3e586c8de6c4e8e3c1bc80f3583 | evaluation/packages/colours.py | evaluation/packages/colours.py | Python |
<|file_sep|>original/tournament.md
Tally the results of a small football competition. Based on an input file
containing which team played against which and what the outcome was
create a file with a table like this:
```
Team | MP | W | D | L | P
Devastating Donkeys | 3 | 2 | ... | Tally the results of a small football competition. Based on an input file
containing which team played against which and what the outcome was
create a file with a table like this:
```
Team | MP | W | D | L | P
Devastating Donkeys | 3 | 2 | 1 | 0 | 7
Allegoric Alaskians ... | <|file_sep|>original/tournament.md
Tally the results of a small football competition. Based on an input file
containing which team played against which and what the outcome was
create a file with a table like this:
```
Team | MP | W | D | L | P
Devastating Donkeys | 3 | 2 | ... | 1febf8d3ba4ac491805e0f26b0191fea084a194c | tournament.md | tournament.md | Markdown |
<|file_sep|>original/docker-compose.yml
image: postgres:9.5
environment:
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASS
volumes:
- data:/var/lib/postgresql
ports:
- "127.0.0.1:5432:5432"
app:
image: quay.io/levlaz/braindump:latest
enviro... | image: postgres:9.5
environment:
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASS
volumes:
- data:/var/lib/postgresql
ports:
- "127.0.0.1:5432:5432"
app:
image: quay.io/levlaz/braindump:stable
environment:
MAIL_USERNAME: $MAIL_USERNA... | <|file_sep|>original/docker-compose.yml
image: postgres:9.5
environment:
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASS
volumes:
- data:/var/lib/postgresql
ports:
- "127.0.0.1:5432:5432"
app:
image: quay.io/levlaz/braindump:latest
enviro... | 9e609d71a0059afab52c7985615b7a7bee3bdd7e | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>original/annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
/**
* Annotation for constr... | import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
/**
* Annotation for constructors of AutoCloseables or methods that return an AutoCloseable and require
* that the resource i... | <|file_sep|>original/annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
/**
* Annotation for constr... | ea48c2d6765736b2429658b82a10988995ed68ad | annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java | annotations/src/main/java/com/google/errorprone/annotations/MustBeClosed.java | Java |
<|file_sep|>original/deploy_tag.sh
#!/bin/bash
set -e
HOST=yuca.yunity.org
DIR=release
if [ "x$CIRCLE_TAG" = "x" ]; then
echo "Error! CIRCLE_TAG was not set"
exit 1
fi
echo "deploying frontend branch [$CIRCLE_TAG] to [$HOST] in [$DIR] dir"
# write the release version into "version" file
echo $CIRCLE_TAG > dist... | set -e
HOST=yuca.yunity.org
DIR=release
if [ "x$CIRCLE_TAG" = "x" ]; then
echo "Error! CIRCLE_TAG was not set"
exit 1
fi
echo "deploying frontend branch [$CIRCLE_TAG] to [$HOST] in [$DIR] dir"
# write the release version into "version" file
echo $CIRCLE_TAG > dist/version
# create a downloadable archive too
(c... | <|file_sep|>original/deploy_tag.sh
#!/bin/bash
set -e
HOST=yuca.yunity.org
DIR=release
if [ "x$CIRCLE_TAG" = "x" ]; then
echo "Error! CIRCLE_TAG was not set"
exit 1
fi
echo "deploying frontend branch [$CIRCLE_TAG] to [$HOST] in [$DIR] dir"
# write the release version into "version" file
echo $CIRCLE_TAG > dist... | 9236b72acec8aa270b02dbc242c0716002bebc53 | deploy_tag.sh | deploy_tag.sh | Shell |
<|file_sep|>original/setup.py
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:
README = readme.read()
setup(
name='django-postgres-extra',
version='1.21a2',
packages=find_packages(),
include_package... | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:
README = readme.read().split('h1>', 2)[1]
setup(
name='django-postgres-extra',
version='1.21a2',
packages=find_packages(),
include_package_data=True,... | <|file_sep|>original/setup.py
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:
README = readme.read()
setup(
name='django-postgres-extra',
version='1.21a2',
packages=find_packages(),
include_package... | ad889be15a374ff07492b549ba454bafd3a76fd7 | setup.py | setup.py | Python |
<|file_sep|>original/doc/input_examples/generic.json
{
"publishing_app": "base-hostname-of-app-that-owns-this-content", // must be resolvable with Plek.new.find(publishing_app)
"rendering_app": "base-hostname-of-app-that-renders-this-content", // must be resolvable with Plek.new.find(rendering_app)
"routes": [
... | // Everything in output_examples/generic.json (excluding updated_at) plus:
{
"publishing_app": "base-hostname-of-app-that-owns-this-content", // must be resolvable with Plek.new.find(publishing_app)
"rendering_app": "base-hostname-of-app-that-renders-this-content", // must be resolvable with Plek.new.find(rendering... | <|file_sep|>original/doc/input_examples/generic.json
{
"publishing_app": "base-hostname-of-app-that-owns-this-content", // must be resolvable with Plek.new.find(publishing_app)
"rendering_app": "base-hostname-of-app-that-renders-this-content", // must be resolvable with Plek.new.find(rendering_app)
"routes": [
... | 9714557d42c90f0e836cb2da40c017994153b4b7 | doc/input_examples/generic.json | doc/input_examples/generic.json | JSON |
<|file_sep|>original/package.json
},
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"dependencies": {
"raptor-async": "^0.2.10-beta",
"raptor-loader": "^0.1.1-beta",
"raptor-logging": "^0.2.6-beta",
"raptor-util": "^0.2.7-be... | "author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"dependencies": {
"raptor-async": "^0.2.10-beta",
"raptor-loader": "^0.1.1-beta",
"raptor-logging": "^0.2.6-beta",
"raptor-util": "^0.2.7-beta"
},
"devDependencies": {
"ch... | <|file_sep|>original/package.json
},
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>",
"dependencies": {
"raptor-async": "^0.2.10-beta",
"raptor-loader": "^0.1.1-beta",
"raptor-logging": "^0.2.6-beta",
"raptor-util": "^0.2.7-be... | c4ad16e29d3bd8f1d5481104cff216a38a3c5736 | package.json | package.json | JSON |
<|file_sep|>original/ejaydj.gemspec
spec.email = ["ejaypcanaria@gmail.com"]
spec.summary = %q{A bot that tweets a song based on your spotify playlists}
spec.description = %q{A bot that tweets a song based on your spotify playlists}
spec.homepage = ""
spec.license = "MIT"
spec.fil... | spec.summary = %q{A bot that tweets a song based on your spotify playlists}
spec.description = %q{A bot that tweets a song based on your spotify playlists}
spec.homepage = ""
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{... | <|file_sep|>original/ejaydj.gemspec
spec.email = ["ejaypcanaria@gmail.com"]
spec.summary = %q{A bot that tweets a song based on your spotify playlists}
spec.description = %q{A bot that tweets a song based on your spotify playlists}
spec.homepage = ""
spec.license = "MIT"
spec.fil... | 63e7aa205d209f63f289a1debbb7e4090008443e | ejaydj.gemspec | ejaydj.gemspec | Ruby |
<|file_sep|>original/lib/speed_gun/railtie.rb
require 'speed_gun/middleware'
class SpeedGun::Railtie < ::Rails::Railtie
initializer 'speed_gun' do |app|
app.middleware.insert(0, SpeedGun::Middleware)
SpeedGun.config[:enable_on] = -> { Rails.env.development? }
SpeedGun.config[:backtrace_remove] = Rails.r... | require 'speed_gun/middleware'
class SpeedGun::Railtie < ::Rails::Railtie
initializer 'speed_gun' do |app|
app.middleware.insert(0, SpeedGun::Middleware)
SpeedGun.config[:enable_on] = -> { Rails.env.development? }
SpeedGun.config[:backtrace_remove] = Rails.root.to_s + '/'
SpeedGun.config[:backtrace_... | <|file_sep|>original/lib/speed_gun/railtie.rb
require 'speed_gun/middleware'
class SpeedGun::Railtie < ::Rails::Railtie
initializer 'speed_gun' do |app|
app.middleware.insert(0, SpeedGun::Middleware)
SpeedGun.config[:enable_on] = -> { Rails.env.development? }
SpeedGun.config[:backtrace_remove] = Rails.r... | b587a5a8f0b1029138f0bb0a3db02b83af6e0d49 | lib/speed_gun/railtie.rb | lib/speed_gun/railtie.rb | Ruby |
<|file_sep|>original/usr/local/sbin/sync-to-usb.sh
<|file_sep|>current/usr/local/sbin/sync-to-usb.sh
<|file_sep|>updated/usr/local/sbin/sync-to-usb.sh | #!/bin/bash -x
function clean {
sync && sync && sync
umount /mnt/usbroot
umount /mnt/rootsnap
lvremove -f /dev/memvg/root-snap
}
clean
lvcreate -s -l100%FREE -n root-snap /dev/memvg/root
mkdir -p /mnt/rootsnap
mount -o defaults,data=writeback,noatime,nodiratime,rw /dev/memvg/root-snap /mnt/rootsnap
mkdir -p ... | <|file_sep|>original/usr/local/sbin/sync-to-usb.sh
<|file_sep|>current/usr/local/sbin/sync-to-usb.sh
<|file_sep|>updated/usr/local/sbin/sync-to-usb.sh
#!/bin/bash -x
function clean {
sync && sync && sync
umount /mnt/usbroot
umount /mnt/rootsnap
lvremove -f /dev/memvg/root-snap
}
clean
lvcreate -s -l100%FREE ... | d3172f780b4e922c56a2d0351b0423f3e4667368 | usr/local/sbin/sync-to-usb.sh | usr/local/sbin/sync-to-usb.sh | Shell |
<|file_sep|>original/apps/hortonworks/hdp2/ambari/scripts/common/agent-start.sh
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | # You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the L... | <|file_sep|>original/apps/hortonworks/hdp2/ambari/scripts/common/agent-start.sh
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 0cce1c94c4fdb503ee9937666f94c585877d8739 | apps/hortonworks/hdp2/ambari/scripts/common/agent-start.sh | apps/hortonworks/hdp2/ambari/scripts/common/agent-start.sh | Shell |
<|file_sep|>docs/architecture/page.rst.diff
original:
<a href="{% url "page:details" slug="your-slug" %}">Text for the link</a>
updated:
<a href="{% url "page:details" slug="terms-of-service" %}">Terms of Service</a>
<|file_sep|>original/docs/architecture/page.rst
in the proper template.
For example in default Sale... | Saleor Pages
===================
Setting up custom pages
-----------------------
You can set up your own pages such as "About us" or "Important Announcement!" in the Pages menu in dashboard.
Note that if you are not an admin, you need to be in group with proper permissions.
Providing an URL to your page in storefr... | <|file_sep|>docs/architecture/page.rst.diff
original:
<a href="{% url "page:details" slug="your-slug" %}">Text for the link</a>
updated:
<a href="{% url "page:details" slug="terms-of-service" %}">Terms of Service</a>
<|file_sep|>original/docs/architecture/page.rst
in the proper template.
For example in default Sale... | 83611fc5e97e92d82abc348a38561cac3d64c5f2 | docs/architecture/page.rst | docs/architecture/page.rst | reStructuredText |
<|file_sep|>index.php.diff
original:
updated:
include 'Core/Services.php';
<|file_sep|>original/index.php
define('PS', PATH_SEPARATOR);
define('BP', dirname(__FILE__));
// Display errors
ini_set('display_errors', 1);
// Set error reporting level
error_reporting(E_ALL | E_STRICT);
// Add include paths
$paths = array... |
// Display errors
ini_set('display_errors', 1);
// Set error reporting level
error_reporting(E_ALL | E_STRICT);
// Add include paths
$paths = array();
$paths[] = BP.DS.'app';
$appPath = implode(PS, $paths);
set_include_path($appPath . PS . get_include_path());
// Initialize and run the app
include 'Core/Services.p... | <|file_sep|>index.php.diff
original:
updated:
include 'Core/Services.php';
<|file_sep|>original/index.php
define('PS', PATH_SEPARATOR);
define('BP', dirname(__FILE__));
// Display errors
ini_set('display_errors', 1);
// Set error reporting level
error_reporting(E_ALL | E_STRICT);
// Add include paths
$paths = array... | 9315a32b13bd3a30194c336579058bd4907ce7be | index.php | index.php | PHP |
<|file_sep|>original/src/test/resources/com/akiban/sql/optimizer/rule/promote-outer/README.txt
dangerous-function: condition that is satified when NULL does not promote
direct-condition: condition on column of optional table itself
function: condition involving normal function on optional table
inner: inner join unm... | dangerous-function: condition that is satified when NULL does not promote
direct-condition: condition on column of optional table itself
function: condition involving normal function on optional table
in-condition: IN (turned into ANY) condition
inner: inner join unmolested
or-condition: neither side allows NULL
... | <|file_sep|>original/src/test/resources/com/akiban/sql/optimizer/rule/promote-outer/README.txt
dangerous-function: condition that is satified when NULL does not promote
direct-condition: condition on column of optional table itself
function: condition involving normal function on optional table
inner: inner join unm... | 04881f74e6b926fe251aaa59d84129a1ba1f03a7 | src/test/resources/com/akiban/sql/optimizer/rule/promote-outer/README.txt | src/test/resources/com/akiban/sql/optimizer/rule/promote-outer/README.txt | Text |
<|file_sep|>original/src/components/organisms/todo-list/todo-list.jsx
getDefaultProps: function() {
return {
todos: {}
};
},
render: function() {
var todos = Object.keys(this.props.todos).map(function(todo_id) {
var todo = this.props.todos[todo_id];
return (
<Card>
... | getDefaultProps: function() {
return {
todos: {}
};
},
render: function() {
var todos = Object.keys(this.props.todos).map(function(todo_id) {
var todo = this.props.todos[todo_id];
return (
<Card key={todo._id}>
<TodoItem todo={todo} />
</Card>
);
... | <|file_sep|>original/src/components/organisms/todo-list/todo-list.jsx
getDefaultProps: function() {
return {
todos: {}
};
},
render: function() {
var todos = Object.keys(this.props.todos).map(function(todo_id) {
var todo = this.props.todos[todo_id];
return (
<Card>
... | 172786be0182117fe2893dcf9bde25cf80e6dac0 | src/components/organisms/todo-list/todo-list.jsx | src/components/organisms/todo-list/todo-list.jsx | JSX |
<|file_sep|>metadata/se.leap.bitmaskclient.txt.diff
original:
commit=0.7.0
buildjni=no
gradle=yes
subdir=app
build=misc/build-native.sh
updated:
commit=0.7.0
subdir=app
gradle=yes
build=misc/build-native.sh
buildjni=no
<|file_sep|>original/metadata/se.leap.bitmaskclient.txt
You can choose ... | You can choose among several different service providers or start your own.
Currently, Bitmask supports encrypted internet (VPN) with encrypted email
coming soon.
.
Repo Type:git
Repo:https://github.com/leapcode/bitmask_android.git
Binaries:https://dl.bitmask.net/client/android/Bitmask-Android-%v.apk
Build:0.7.0,93
... | <|file_sep|>metadata/se.leap.bitmaskclient.txt.diff
original:
commit=0.7.0
buildjni=no
gradle=yes
subdir=app
build=misc/build-native.sh
updated:
commit=0.7.0
subdir=app
gradle=yes
build=misc/build-native.sh
buildjni=no
<|file_sep|>original/metadata/se.leap.bitmaskclient.txt
You can choose ... | 91f2be023ef7e7856b7d68fac751593ab526b2ac | metadata/se.leap.bitmaskclient.txt | metadata/se.leap.bitmaskclient.txt | Text |
<|file_sep|>original/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs
<|file_sep|>current/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs
<|file_sep|>updated/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs | using DotNetNuke.Security.Roles;
using System;
namespace Dnn.PersonaBar.Prompt.Models
{
public class RoleModel : RoleModelBase
{
public string Description;
public DateTime CreatedDate;
public int CreatedBy;
#region Constructors
public RoleModel()
{
}
... | <|file_sep|>original/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs
<|file_sep|>current/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs
<|file_sep|>updated/src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs
using DotNetNuke.Security.Roles;
using System;
namespace Dnn.PersonaBar.... | 20c719fa7e3b5c6cdafcf81de9825de58582ad9d | src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs | src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs | C# |
<|file_sep|>original/azure-pipelines.yml
# Package your Ruby application.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/ruby
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.... | # https://docs.microsoft.com/vsts/pipelines/languages/ruby
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.5'
- script: |
git config --global user.email "foo@example.com"
git config --global user.name "Foo Bar"
displayName: 'Configure Git for tests that ca... | <|file_sep|>original/azure-pipelines.yml
# Package your Ruby application.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/ruby
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.... | 5ad01bb09bbee5a831c349b74314cb6f5a0061be | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>original/.github/workflows/updateVersions.yml
runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v3
- name: Get the release branch version
uses: valadas/get-release-branch-version@v1... | runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v3
- name: Get the release branch version
uses: valadas/get-release-branch-version@v1.0.1
id: branchVersion
- name: Set versions... | <|file_sep|>original/.github/workflows/updateVersions.yml
runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v3
- name: Get the release branch version
uses: valadas/get-release-branch-version@v1... | 689509503c76fadc758cfa5db1e8a63ec4373047 | .github/workflows/updateVersions.yml | .github/workflows/updateVersions.yml | YAML |
<|file_sep|>original/appveyor.yml
version: {build}
build: false
environment:
matrix:
- PYTHON: "C:\\Python26"
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python33"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
init:
- "ECHO %PYTHON%"
- ps: "ls C:/Python*"
install:
- "%PYTHON%/Scripts/pip... | version: "#{build}"
build: false
environment:
matrix:
- PYTHON: "C:\\Python26"
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python33"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
init:
- "ECHO %PYTHON%"
- ps: "ls C:/Python*"
install:
- "%PYTHON%/Scripts/pip.exe install -e ."
- "%PYTHON... | <|file_sep|>original/appveyor.yml
version: {build}
build: false
environment:
matrix:
- PYTHON: "C:\\Python26"
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python33"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
init:
- "ECHO %PYTHON%"
- ps: "ls C:/Python*"
install:
- "%PYTHON%/Scripts/pip... | 0ebfcf8e315763778ba4aa4eaa91677d1a329a68 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/wildfly-config-api/src/main/resources/generator-config.json
"pass" : "passWord123"
},
"generatorTargets" : [
{
"sourceAddress": "/subsystem=datasources",
"targetPackage": "org.wildfly.swarm.config.datasources"
},
{
"sourceA... | "sourceAddress": "/subsystem=datasources",
"targetPackage": "org.wildfly.swarm.config.datasources"
},
{
"sourceAddress": "/subsystem=logging",
"targetPackage": "org.wildfly.swarm.config.logging"
},
{
"sourceAddress": "/subsystem... | <|file_sep|>original/wildfly-config-api/src/main/resources/generator-config.json
"pass" : "passWord123"
},
"generatorTargets" : [
{
"sourceAddress": "/subsystem=datasources",
"targetPackage": "org.wildfly.swarm.config.datasources"
},
{
"sourceA... | dc1571de4cefb1fe3ec0b600b9ff585ff03b84ae | wildfly-config-api/src/main/resources/generator-config.json | wildfly-config-api/src/main/resources/generator-config.json | JSON |
<|file_sep|>original/inst/tests/test-path.r
<|file_sep|>current/inst/tests/test-path.r
<|file_sep|>updated/inst/tests/test-path.r | context('Find module path relative files')
test_that('module_file works in global namespace', {
expect_that(module_file(), equals(getwd()))
expect_true(nchar(module_file('run-all.r')) > 0)
throws_error(module_file('XXX-does-not-exist', mustWork = TRUE),
'no file found')
})
test_that('modu... | <|file_sep|>original/inst/tests/test-path.r
<|file_sep|>current/inst/tests/test-path.r
<|file_sep|>updated/inst/tests/test-path.r
context('Find module path relative files')
test_that('module_file works in global namespace', {
expect_that(module_file(), equals(getwd()))
expect_true(nchar(module_file('run-all.... | 0ea5fb3a2a9d78a9de7356779260e5332602bd2a | inst/tests/test-path.r | inst/tests/test-path.r | R |
<|file_sep|>original/app/views/layouts/active_admin_logged_out.html.erb
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title><%= [@page_title, render_or_call_method_or_proc_on(self, ActiveAdmin.application.site_title)].compact.join(" | ") %></title>
<% Active... | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title><%= [@page_title, render_or_call_method_or_proc_on(self, ActiveAdmin.application.site_title)].compact.join(" | ") %></title>
<% ActiveAdmin.application.stylesheets.each do |style| %>
<%= stylesheet_link... | <|file_sep|>original/app/views/layouts/active_admin_logged_out.html.erb
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title><%= [@page_title, render_or_call_method_or_proc_on(self, ActiveAdmin.application.site_title)].compact.join(" | ") %></title>
<% Active... | 0c8144899a12f65380cd6cb3bca86d1bf3cea2b6 | app/views/layouts/active_admin_logged_out.html.erb | app/views/layouts/active_admin_logged_out.html.erb | HTML+ERB |
<|file_sep|>original/app/helpers/textual_mixins/textual_os_info.rb
module TextualMixins::TextualOsInfo
def textual_osinfo
h = {:label => _("Operating System")}
os = @record.operating_system.nil? ? nil : @record.operating_system.product_name
if os.blank?
h[:value] = _("Unknown")
else
h[:ima... | module TextualMixins::TextualOsInfo
def textual_osinfo
h = {:label => _("Operating System")}
os = @record.operating_system.nil? ? nil : @record.operating_system.product_name
if os.blank?
h[:value] = _("Unknown")
else
h[:image] = "os-#{@record.os_image_name.downcase}"
h[:value] = os
... | <|file_sep|>original/app/helpers/textual_mixins/textual_os_info.rb
module TextualMixins::TextualOsInfo
def textual_osinfo
h = {:label => _("Operating System")}
os = @record.operating_system.nil? ? nil : @record.operating_system.product_name
if os.blank?
h[:value] = _("Unknown")
else
h[:ima... | 4eee1592f3017d1b2b0ac648f72dbd23b00018d0 | app/helpers/textual_mixins/textual_os_info.rb | app/helpers/textual_mixins/textual_os_info.rb | Ruby |
<|file_sep|>original/fastapi/__init__.py
"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
__version__ = "0.1.16"
from .applications import FastAPI
from .routing import APIRouter
from .params import Body, Path, Query, Header, Cookie, Form, File, Security, Depends
<|file_sep|... | """FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
__version__ = "0.1.17"
from .applications import FastAPI
from .routing import APIRouter
from .params import Body, Path, Query, Header, Cookie, Form, File, Security, Depends | <|file_sep|>original/fastapi/__init__.py
"""FastAPI framework, high performance, easy to learn, fast to code, ready for production"""
__version__ = "0.1.16"
from .applications import FastAPI
from .routing import APIRouter
from .params import Body, Path, Query, Header, Cookie, Form, File, Security, Depends
<|file_sep|... | e5b341c7ddbd085e7203276398bdf10a1d86446b | fastapi/__init__.py | fastapi/__init__.py | Python |
<|file_sep|>original/cli/index.js
#!/usr/bin/env node
const cli = require('commander');
const path = require('path');
const glob = require('glob');
const options = {
realpath: true,
cwd: path.resolve(__dirname, './lib'),
};
glob
.sync('*/index.js', options)
.map(require)
.forEach(fn => fn(cli));
cli.versi... | #!/usr/bin/env node
const cli = require('commander');
const path = require('path');
const glob = require('glob');
const options = {
realpath: true,
cwd: path.resolve(__dirname, './lib'),
};
glob
.sync('*/index.js', options)
.map(require)
.forEach(fn => fn(cli));
cli.version('0.0.7-alpha');
cli.parse(proce... | <|file_sep|>original/cli/index.js
#!/usr/bin/env node
const cli = require('commander');
const path = require('path');
const glob = require('glob');
const options = {
realpath: true,
cwd: path.resolve(__dirname, './lib'),
};
glob
.sync('*/index.js', options)
.map(require)
.forEach(fn => fn(cli));
cli.versi... | 7b090d0d9144546c583702d04b41b74f6f408861 | cli/index.js | cli/index.js | JavaScript |
<|file_sep|>original/src/DBAL/Types/OrderedGuidType.php
class OrderedGuidType extends GuidType
{
const ORDEREDGUID = 'ordered_guid';
/**
* {@inheritdoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$field['length'] = 36;
$field['... |
class OrderedGuidType extends GuidType
{
const ORDEREDGUID = 'ordered_guid';
/**
* {@inheritdoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$field['length'] = 16;
$field['fixed'] = true;
// TODO: Would prefer to allow... | <|file_sep|>original/src/DBAL/Types/OrderedGuidType.php
class OrderedGuidType extends GuidType
{
const ORDEREDGUID = 'ordered_guid';
/**
* {@inheritdoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$field['length'] = 36;
$field['... | 775cb5ff996c4db5ac088010c4b2cff48c369691 | src/DBAL/Types/OrderedGuidType.php | src/DBAL/Types/OrderedGuidType.php | PHP |
<|file_sep|>original/app/views/layouts/_navbar.haml
%nav.navbar.navbar-default.with-icon
.container-fluid
.navbar-header
%a.navbar-brand{href: root_path}= image_tag 'favicon.png'
- if user_signed_in?
= link_to new_bus_stop_path do
%button.btn.btn-default.navbar-btn.navbar-left New Stop
... | %nav.navbar.navbar-default.with-icon
.container-fluid
.navbar-header
%a.navbar-brand{href: root_path}= image_tag 'favicon.png'
- if user_signed_in?
- if current_user.admin?
= link_to new_user_path do
%button.btn.btn-default.navbar-btn.navbar-left New User
= link_to manage... | <|file_sep|>original/app/views/layouts/_navbar.haml
%nav.navbar.navbar-default.with-icon
.container-fluid
.navbar-header
%a.navbar-brand{href: root_path}= image_tag 'favicon.png'
- if user_signed_in?
= link_to new_bus_stop_path do
%button.btn.btn-default.navbar-btn.navbar-left New Stop
... | 42344198d0b21d6cb6f81aff076f3c0c076b2607 | app/views/layouts/_navbar.haml | app/views/layouts/_navbar.haml | Haml |
<|file_sep|>original/tools/static-assets/skel-typescript/package.json
},
"dependencies": {
"@babel/runtime": "^7.6.0",
"meteor-node-stubs": "^1.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0"
},
"devDependencies": {
"@types/meteor": "^1.4.30",
"@types/mocha": "^5.2.7",
"@types/react... | "dependencies": {
"@babel/runtime": "^7.6.0",
"meteor-node-stubs": "^1.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0"
},
"devDependencies": {
"@types/meteor": "^1.4.30",
"@types/mocha": "^5.2.7",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"typescript": "^3.6.3"... | <|file_sep|>original/tools/static-assets/skel-typescript/package.json
},
"dependencies": {
"@babel/runtime": "^7.6.0",
"meteor-node-stubs": "^1.0.0",
"react": "^16.9.0",
"react-dom": "^16.9.0"
},
"devDependencies": {
"@types/meteor": "^1.4.30",
"@types/mocha": "^5.2.7",
"@types/react... | d0781233e85c611e1f6bf1d839031f95a4b8fa20 | tools/static-assets/skel-typescript/package.json | tools/static-assets/skel-typescript/package.json | JSON |
<|file_sep|>src/dependument.manager.ts.diff
original:
updated:
import { IOptions } from './options/options.i';
<|file_sep|>src/dependument.manager.ts.diff
original:
updated:
public options: IOptions;
<|file_sep|>original/src/dependument.manager.ts
import { IFileSystem } from './filesystem/filesystem.i';
import { IT... | import { ITemplateFileSystem } from './templates/templatefilesystem.i';
import { IOptions } from './options/options.i';
import * as Path from 'path';
export class DependumentManager {
private _fileSystem : IFileSystem;
private _templateFileSystem : ITemplateFileSystem;
public options: IOptions;
constructor(fi... | <|file_sep|>src/dependument.manager.ts.diff
original:
updated:
import { IOptions } from './options/options.i';
<|file_sep|>src/dependument.manager.ts.diff
original:
updated:
public options: IOptions;
<|file_sep|>original/src/dependument.manager.ts
import { IFileSystem } from './filesystem/filesystem.i';
import { IT... | b326b81d845f1adbe5a05370fd840bd21942ea0c | src/dependument.manager.ts | src/dependument.manager.ts | TypeScript |
<|file_sep|>original/lib/Parrot/SHA1.pm
# Copyright (C) 2010-2011 Parrot Foundation.
=head1 NAME
Parrot::SHA1 - Git SHA1 of Parrot
=head1 SYNOPSIS
use Parrot::SHA1;
print $Parrot::SHA1::current;
=head1 DESCRIPTION
Get Parrot's current and configure time SHA1.
=cut
package Parrot::SHA1;
use strict;
<|f... | # Copyright (C) 2010-2011, Parrot Foundation.
=head1 NAME
Parrot::SHA1 - Git SHA1 of Parrot
=head1 SYNOPSIS
use Parrot::SHA1;
print $Parrot::SHA1::current;
=head1 DESCRIPTION
Get Parrot's current and configure time SHA1.
=cut
package Parrot::SHA1;
use strict; | <|file_sep|>original/lib/Parrot/SHA1.pm
# Copyright (C) 2010-2011 Parrot Foundation.
=head1 NAME
Parrot::SHA1 - Git SHA1 of Parrot
=head1 SYNOPSIS
use Parrot::SHA1;
print $Parrot::SHA1::current;
=head1 DESCRIPTION
Get Parrot's current and configure time SHA1.
=cut
package Parrot::SHA1;
use strict;
<|f... | e9b3e894c7d8b9b55e4284a21dc45de9c8512da2 | lib/Parrot/SHA1.pm | lib/Parrot/SHA1.pm | Perl |
<|file_sep|>original/README.md
# Model
This is a simple class for modelling test data. It is based on our experience with Watirmark::Model::Factory.
Please see [spec/model_spec.rb](spec/model_spec.rb) for examples.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'model'
```
And then execu... | # Model
This is a simple class for modelling test data. It is based on our experience with [Watirmark::Model::Factory](https://github.com/watirmark/watirmark/blob/master/spec/model_factory_spec.rb).
Please see [spec/model_spec.rb](spec/model_spec.rb) for examples.
## Installation
Add this line to your application's... | <|file_sep|>original/README.md
# Model
This is a simple class for modelling test data. It is based on our experience with Watirmark::Model::Factory.
Please see [spec/model_spec.rb](spec/model_spec.rb) for examples.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'model'
```
And then execu... | 7b543d9605ca58a34a9fd5cbb31bd9ea94a3c49d | README.md | README.md | Markdown |
<|file_sep|>original/requirements/requirements-docs.txt
Sphinx==4.3.2
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==1.0.0
<|file_sep|>current/requirements/requirements-docs.txt
Sphinx==4.3.2
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==1.0.0
<|file_sep|>updated/requirements/requirements-docs.txt | Sphinx==4.4.0
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==1.0.0 | <|file_sep|>original/requirements/requirements-docs.txt
Sphinx==4.3.2
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==1.0.0
<|file_sep|>current/requirements/requirements-docs.txt
Sphinx==4.3.2
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==1.0.0
<|file_sep|>updated/requirements/requirements-docs.txt
Sphinx==4.4.0
sphinx-a... | 715fc3f90a3fdb7802ef0f6cf93df8706c2be235 | requirements/requirements-docs.txt | requirements/requirements-docs.txt | Text |
<|file_sep|>src/common/InlineEventHandlerRewrite.js.diff
original:
// Rewrite in-line event handlers (eg. <input ... onclick=""> for a sub-set of common standard events)
updated:
opera.isReady(function() {
<|file_sep|>src/common/InlineEventHandlerRewrite.js.diff
original:
document.addEventListener('DOMContentLoaded', f... |
var selectors = ['load', 'beforeunload', 'unload', 'click', 'dblclick', 'mouseover', 'mousemove',
'mousedown', 'mouseup', 'mouseout', 'keydown', 'keypress', 'keyup', 'blur', 'focus'];
for(var i = 0, l = selectors.length; i < l; i++) {
var els = document.querySelectorAll('[on' ... | <|file_sep|>src/common/InlineEventHandlerRewrite.js.diff
original:
// Rewrite in-line event handlers (eg. <input ... onclick=""> for a sub-set of common standard events)
updated:
opera.isReady(function() {
<|file_sep|>src/common/InlineEventHandlerRewrite.js.diff
original:
document.addEventListener('DOMContentLoaded', f... | 81590311253a17958945b30786b4b30674ab6ca3 | src/common/InlineEventHandlerRewrite.js | src/common/InlineEventHandlerRewrite.js | JavaScript |
<|file_sep|>original/spec/http_spec.rb
async 'returns the response body as a string' do
HTTP.get('data/simple.txt') do |response|
run_async { response.body.should == "hey" }
end
end
end
describe '#ok?' do
async 'returns true when the request was a sucess' do
HTTP.get('data/sim... | async 'returns the response body as a string' do
HTTP.get('data/simple.txt') do |response|
run_async { response.body.should == "hey" }
end
end
end
describe '#ok?' do
async 'returns true when the request was a sucess' do
HTTP.get('data/simple.txt') do |response|
run_asy... | <|file_sep|>original/spec/http_spec.rb
async 'returns the response body as a string' do
HTTP.get('data/simple.txt') do |response|
run_async { response.body.should == "hey" }
end
end
end
describe '#ok?' do
async 'returns true when the request was a sucess' do
HTTP.get('data/sim... | 70283b0eeb351568a57c3e266b7f48e9f71b8161 | spec/http_spec.rb | spec/http_spec.rb | Ruby |
<|file_sep|>original/pkgs/development/libraries/java/libmatthew-java/default.nix
{stdenv, fetchurl, jdk}:
stdenv.mkDerivation {
name = "libmatthew-java-0.8";
src = fetchurl {
url = http://www.matthew.ath.cx/projects/java/libmatthew-java-0.8.tar.gz;
sha256 = "1yldkhsdzm0a41a0i881bin2jklhp85y3ah245jd6fz3npcx... | {stdenv, fetchurl, jdk}:
stdenv.mkDerivation {
name = "libmatthew-java-0.8";
src = fetchurl {
url = http://pkgs.fedoraproject.org/repo/pkgs/libmatthew-java/libmatthew-java-0.8.tar.gz/8455b8751083ce25c99c2840609271f5/libmatthew-java-0.8.tar.gz;
sha256 = "1yldkhsdzm0a41a0i881bin2jklhp85y3ah245jd6fz3npcx7l85"... | <|file_sep|>original/pkgs/development/libraries/java/libmatthew-java/default.nix
{stdenv, fetchurl, jdk}:
stdenv.mkDerivation {
name = "libmatthew-java-0.8";
src = fetchurl {
url = http://www.matthew.ath.cx/projects/java/libmatthew-java-0.8.tar.gz;
sha256 = "1yldkhsdzm0a41a0i881bin2jklhp85y3ah245jd6fz3npcx... | 30a941aa88c301bee6c7d1c33887eb1cd455a7e6 | pkgs/development/libraries/java/libmatthew-java/default.nix | pkgs/development/libraries/java/libmatthew-java/default.nix | Nix |
<|file_sep|>original/examples/simple.js
var Redular = require('../index');
var redular = new Redular();
var redular2 = new Redular();
redular.defineHandler('goodbye', function(name){
console.log('Goodbye!');
});
redular.defineHandler('test', function(name){
console.log(name);
});
var date = new Date();
date.set... | var Redular = require('../index');
var redular = new Redular();
redular.defineHandler('goodbye', function(name){
console.log('Goodbye!');
});
redular.defineHandler('test', function(name){
console.log(name);
});
var date = new Date();
date.setSeconds(date.getSeconds() + 6);
redular.scheduleEvent('goodbye', date)... | <|file_sep|>original/examples/simple.js
var Redular = require('../index');
var redular = new Redular();
var redular2 = new Redular();
redular.defineHandler('goodbye', function(name){
console.log('Goodbye!');
});
redular.defineHandler('test', function(name){
console.log(name);
});
var date = new Date();
date.set... | d32e6bfc41c4e86ecd1b6e7b05a7e3d74a3d40a6 | examples/simple.js | examples/simple.js | JavaScript |
<|file_sep|>original/assertions/published_gem.rb
def display_name
"published gem"
end
def gem_file
"#{@engine.project_name}-#{@engine.version}.gem"
end
def check
begin
json = RestClient.get("http://rubygems.org/api/v1/versions/#{engine.project_name}.json")
rescue Re... | def display_name
"published gem"
end
def gem_file
"#{@engine.project_name}-#{@engine.version}.gem"
end
def check
begin
json = RestClient.get("https://rubygems.org/api/v1/versions/#{engine.project_name}.json")
rescue RestClient::ResourceNotFound
return nil
... | <|file_sep|>original/assertions/published_gem.rb
def display_name
"published gem"
end
def gem_file
"#{@engine.project_name}-#{@engine.version}.gem"
end
def check
begin
json = RestClient.get("http://rubygems.org/api/v1/versions/#{engine.project_name}.json")
rescue Re... | d3dcd84a51a8c3c307b473d362a440faac958da8 | assertions/published_gem.rb | assertions/published_gem.rb | Ruby |
<|file_sep|>original/build/fbcode_builder_config.py
builder.step('Build bistro', [
# Future: should this share some code with `cmake_install()`?
builder.run(ShellQuoted(
'PATH="$PATH:"{p}/bin '
'TEMPLATES_PATH={p}/include/thrift/templat... | builder.step('Build bistro', [
# Future: should this share some code with `cmake_install()`?
builder.run(ShellQuoted(
'PATH="$PATH:"{p}/bin '
'TEMPLATES_PATH={p}/include/thrift/templates '
'./cmake/run-cmake.sh Debug... | <|file_sep|>original/build/fbcode_builder_config.py
builder.step('Build bistro', [
# Future: should this share some code with `cmake_install()`?
builder.run(ShellQuoted(
'PATH="$PATH:"{p}/bin '
'TEMPLATES_PATH={p}/include/thrift/templat... | e620068b67f965915cd6713a42380b8136a9feae | build/fbcode_builder_config.py | build/fbcode_builder_config.py | Python |
<|file_sep|>original/src/layout.js
info = {};
g.setGraph(info);
dag.nodes().forEach(n => g.setNode(n.id, n));
dag.links().forEach(l => g.setEdge(l.source.id, l.target.id, l));
dagre.layout(g);
// Rescale
dag.links().forEach(({source, target, points}) => {
// XXX This seems to be a b... | info = {};
g.setGraph(info);
dag.nodes().forEach(n => g.setNode(n.id, n));
dag.links().forEach(l => g.setEdge(l.source.id, l.target.id, l));
dagre.layout(g);
// Rescale
dag.links().forEach(link => {
const { source, target, points } = link;
// XXX These are because of perceived... | <|file_sep|>original/src/layout.js
info = {};
g.setGraph(info);
dag.nodes().forEach(n => g.setNode(n.id, n));
dag.links().forEach(l => g.setEdge(l.source.id, l.target.id, l));
dagre.layout(g);
// Rescale
dag.links().forEach(({source, target, points}) => {
// XXX This seems to be a b... | 02fc6dab5673a5581620994cebd53115de756be8 | src/layout.js | src/layout.js | JavaScript |
<|file_sep|>original/core/app/assets/stylesheets/base/reset.css.less
ul {
margin: 0;
padding: 0;
> li {
list-style-type: none;
margin: 0;
padding: 0;
}
}
input, textarea {
font-family: inherit;
}
<|file_sep|>current/core/app/assets/stylesheets/base/reset.css.less
ul {
margin: 0;
padding: 0;
... | ul {
margin: 0;
padding: 0;
> li {
list-style-type: none;
margin: 0;
padding: 0;
}
}
input, textarea {
font-family: inherit;
font-size: inherit;
} | <|file_sep|>original/core/app/assets/stylesheets/base/reset.css.less
ul {
margin: 0;
padding: 0;
> li {
list-style-type: none;
margin: 0;
padding: 0;
}
}
input, textarea {
font-family: inherit;
}
<|file_sep|>current/core/app/assets/stylesheets/base/reset.css.less
ul {
margin: 0;
padding: 0;
... | 63fee037ecd6cb1c098ccf5a3c8cfcf35dfcf4ef | core/app/assets/stylesheets/base/reset.css.less | core/app/assets/stylesheets/base/reset.css.less | Less |
<|file_sep|>metadata/pcmagas.vodafone_fu_h300s.yml.diff
original:
updated:
- versionName: v2022-01-22
versionCode: 20220122
commit: bb85f2d2513c10a4f1ae1bfa9304ce63b7d8e440
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/pcmagas.vodafone_fu_h300s.yml
AuthorWebSite: https://pcmagas.word... | Repo: https://github.com/pc-magas/sercommH300sVoipCredentialsRecovery
Builds:
- versionName: v2022-01-03
versionCode: 20220103
commit: v20220103
subdir: app
gradle:
- yes
- versionName: v2022-01-22
versionCode: 20220122
commit: bb85f2d2513c10a4f1ae1bfa9304ce63b7d8e440
subdir: app... | <|file_sep|>metadata/pcmagas.vodafone_fu_h300s.yml.diff
original:
updated:
- versionName: v2022-01-22
versionCode: 20220122
commit: bb85f2d2513c10a4f1ae1bfa9304ce63b7d8e440
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/pcmagas.vodafone_fu_h300s.yml
AuthorWebSite: https://pcmagas.word... | d81fff39441ae6b032bae14e7781e2b110cac09f | metadata/pcmagas.vodafone_fu_h300s.yml | metadata/pcmagas.vodafone_fu_h300s.yml | YAML |
<|file_sep|>original/project.clj
(defproject potoo "0.1.0-SNAPSHOT"
:description "A mini twitter clone backend using clojure and datomic"
:url "https://github.com/kongeor/potoo"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | (defproject potoo "0.1.0-SNAPSHOT"
:description "A mini twitter clone backend using clojure and datomic"
:url "https://github.com/kongeor/potoo"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[c... | <|file_sep|>original/project.clj
(defproject potoo "0.1.0-SNAPSHOT"
:description "A mini twitter clone backend using clojure and datomic"
:url "https://github.com/kongeor/potoo"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | 3cf72b0ffc032f8792460c39ad114b1a522855fb | project.clj | project.clj | Clojure |
<|file_sep|>original/requirements_for_test.txt
-r requirements.txt
pytest==5.0.0
pytest-mock==1.10.4
pytest-cov==2.7.1
pytest-xdist==1.29.0
requests-mock==1.6.0
freezegun==0.3.12
flake8==3.7.7
flake8-print==3.1.0
<|file_sep|>current/requirements_for_test.txt
-r requirements.txt
pytest==5.0.0
pytest-mock==1.10.4
pytest-... | -r requirements.txt
pytest==5.0.1
pytest-mock==1.10.4
pytest-cov==2.7.1
pytest-xdist==1.29.0
requests-mock==1.6.0
freezegun==0.3.12
flake8==3.7.7
flake8-print==3.1.0 | <|file_sep|>original/requirements_for_test.txt
-r requirements.txt
pytest==5.0.0
pytest-mock==1.10.4
pytest-cov==2.7.1
pytest-xdist==1.29.0
requests-mock==1.6.0
freezegun==0.3.12
flake8==3.7.7
flake8-print==3.1.0
<|file_sep|>current/requirements_for_test.txt
-r requirements.txt
pytest==5.0.0
pytest-mock==1.10.4
pytest-... | 93471eeadeed8b6907a20c8ffee36097d10285f3 | requirements_for_test.txt | requirements_for_test.txt | Text |
<|file_sep|>original/regtests/ado-drivers-tests.ads
<|file_sep|>current/regtests/ado-drivers-tests.ads
<|file_sep|>updated/regtests/ado-drivers-tests.ads | -----------------------------------------------------------------------
-- ado-drivers-tests -- Unit tests for database drivers
-- Copyright (C) 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... | <|file_sep|>original/regtests/ado-drivers-tests.ads
<|file_sep|>current/regtests/ado-drivers-tests.ads
<|file_sep|>updated/regtests/ado-drivers-tests.ads
-----------------------------------------------------------------------
-- ado-drivers-tests -- Unit tests for database drivers
-- Copyright (C) 2014 Stephane Car... | 752bf742c903771675043ab532f7af8829238c29 | regtests/ado-drivers-tests.ads | regtests/ado-drivers-tests.ads | Ada |
<|file_sep|>original/ruby/example_code/s3/s3_ruby_bucket_website.rb
<|file_sep|>current/ruby/example_code/s3/s3_ruby_bucket_website.rb
<|file_sep|>updated/ruby/example_code/s3/s3_ruby_bucket_website.rb | # Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This file is d... | <|file_sep|>original/ruby/example_code/s3/s3_ruby_bucket_website.rb
<|file_sep|>current/ruby/example_code/s3/s3_ruby_bucket_website.rb
<|file_sep|>updated/ruby/example_code/s3/s3_ruby_bucket_website.rb
# Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the A... | f30b006bb763239b0682e6bdd751f32dbf7d4e27 | ruby/example_code/s3/s3_ruby_bucket_website.rb | ruby/example_code/s3/s3_ruby_bucket_website.rb | Ruby |
<|file_sep|>original/README.md
Pocket-ImAT
===========
Pocket Image Analysis Tools
Version: 1.0
License: MIT
For License/Copying information check COPYING file.
Program that aims to bring a set of features to help you analyzing images.
- This program is coded in my free time, probably there is a lot of bugs and th... | Pocket-ImAT
===========
Pocket Image Analysis Tools
Version: 1.0
License: MIT
For License/Copying information check COPYING file.
Program that aims to bring a set of features to help you analyzing images.
- This program is coded in my free time, probably there is a lot of bugs and the OOP is not really good. Sorr... | <|file_sep|>original/README.md
Pocket-ImAT
===========
Pocket Image Analysis Tools
Version: 1.0
License: MIT
For License/Copying information check COPYING file.
Program that aims to bring a set of features to help you analyzing images.
- This program is coded in my free time, probably there is a lot of bugs and th... | 1e565a36c1415974ad95c463604cd70972837048 | README.md | README.md | Markdown |
<|file_sep|>original/README.md
# mapview client in PureScript
This is a rewrite of the Fay mapview code with PureScript.
## Installing
### Get dependencies
```bash
sudo yum install npm
git clone git://github.com/w8upd/mapview-psc.git # Anonymous clone
git clone git@github.com:w8upd/mapview-psc.git # Authorized clon... | # mapview client in PureScript
This is a rewrite of the Fay mapview code with PureScript.
## Installing
### Get dependencies
```bash
sudo yum install npm
git clone git://github.com/noexc/mapview-psc.git # Anonymous clone
git clone git@github.com:noexc/mapview-psc.git # Authorized clone
cd mapview-psc
```
### Build... | <|file_sep|>original/README.md
# mapview client in PureScript
This is a rewrite of the Fay mapview code with PureScript.
## Installing
### Get dependencies
```bash
sudo yum install npm
git clone git://github.com/w8upd/mapview-psc.git # Anonymous clone
git clone git@github.com:w8upd/mapview-psc.git # Authorized clon... | 3645b2b25ed636d5ed73f788098754007481532b | README.md | README.md | Markdown |
<|file_sep|>starbowmodweb/site/templatetags/bbformat.py.diff
original:
updated:
def bbcode_email(tag_name, value, options, parent, context):
return '<a href="mailto:{}">{}</a>'.format(value, value)
def bbcode_font(tag_name, value, options, parent, context):
return '<span style="font-family: {}">{}</span>'.fo... | return ('<img src="{}" '+attrs+' />').format(value, *options.values())
def bbcode_email(tag_name, value, options, parent, context):
return '<a href="mailto:{}">{}</a>'.format(value, value)
def bbcode_font(tag_name, value, options, parent, context):
return '<span style="font-family: {}">{}</span>'.format... | <|file_sep|>starbowmodweb/site/templatetags/bbformat.py.diff
original:
updated:
def bbcode_email(tag_name, value, options, parent, context):
return '<a href="mailto:{}">{}</a>'.format(value, value)
def bbcode_font(tag_name, value, options, parent, context):
return '<span style="font-family: {}">{}</span>'.fo... | 88bd75c4b0e039c208a1471d84006cdfb4bbaf93 | starbowmodweb/site/templatetags/bbformat.py | starbowmodweb/site/templatetags/bbformat.py | Python |
<|file_sep|>original/app/views/layouts/mocks/show.html.erb
<%= stylesheet_link_tag "base" %>
<%= stylesheet_link_tag "layouts/application" %>
<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "user" %>
<%= javascript_include_tag "scrollto" %>
<%= javascript_include_tag "plugins/j... | <%= stylesheet_link_tag "base" %>
<%= stylesheet_link_tag "layouts/application" %>
<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "user" %>
<%= javascript_include_tag "scrollto" %>
<%= javascript_include_tag "plugins/jquery.form" %>
<%= javascript_include_tag "plugins/jque... | <|file_sep|>original/app/views/layouts/mocks/show.html.erb
<%= stylesheet_link_tag "base" %>
<%= stylesheet_link_tag "layouts/application" %>
<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "user" %>
<%= javascript_include_tag "scrollto" %>
<%= javascript_include_tag "plugins/j... | 9ac181f897b25068eacb99daea15109668654196 | app/views/layouts/mocks/show.html.erb | app/views/layouts/mocks/show.html.erb | HTML+ERB |
<|file_sep|>original/core/src/main/scala/stainless/extraction/imperative/TransformerWithPC.scala
/* Copyright 2009-2018 EPFL, Lausanne */
package stainless
package extraction
package imperative
trait TransformerWithPC extends innerfuns.TransformerWithPC {
val s: Trees
val t: Trees
override def transform(e: s.E... |
package stainless
package extraction
package imperative
trait TransformerWithPC extends innerfuns.TransformerWithPC {
val s: Trees
val t: Trees
override def transform(e: s.Expr, env: Env): t.Expr = e match {
case s.LetVar(vd, v, b) =>
t.LetVar(transform(vd, env), transform(v, env), transform(b, env w... | <|file_sep|>original/core/src/main/scala/stainless/extraction/imperative/TransformerWithPC.scala
/* Copyright 2009-2018 EPFL, Lausanne */
package stainless
package extraction
package imperative
trait TransformerWithPC extends innerfuns.TransformerWithPC {
val s: Trees
val t: Trees
override def transform(e: s.E... | 0fb49eff4df1250fbfa25ac59f8b8e53df796c48 | core/src/main/scala/stainless/extraction/imperative/TransformerWithPC.scala | core/src/main/scala/stainless/extraction/imperative/TransformerWithPC.scala | Scala |
<|file_sep|>original/Projects/Win32/BCC.551/Xerces-all/readme.txt
Feb 27, 2003 - Xerces C and Borland C++ Compiler v 5.5.1
========================================================
- changes for Xerces C 2.2.0
How to build dll with Win95 support (tasm32 required, so only for BCB5):
make -f Xerces-all.mak -DWITHASM=Y... | Aug 23, 2002 - Xerces C and Borland C++ Compiler v 5.5.1
========================================================
Before build:
MakeBuildDirs.bat
How to build dll (without deprecated DOM API) and tests:
make -f Xerces-all.mak
How to build dll (with deprecated DOM API, approx. 300k larger) and tests:
make -f Xerce... | <|file_sep|>original/Projects/Win32/BCC.551/Xerces-all/readme.txt
Feb 27, 2003 - Xerces C and Borland C++ Compiler v 5.5.1
========================================================
- changes for Xerces C 2.2.0
How to build dll with Win95 support (tasm32 required, so only for BCB5):
make -f Xerces-all.mak -DWITHASM=Y... | 12b35e2d4eb12bb95dbf49d14dac87d2206fd315 | Projects/Win32/BCC.551/Xerces-all/readme.txt | Projects/Win32/BCC.551/Xerces-all/readme.txt | Text |
<|file_sep|>src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyProviderInterface.php.diff
original:
* Returns list of unique currency codes from entity that contains multi-currency fields
updated:
* Return translated label of entity
<|file_sep|>src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyPr... |
interface RepositoryCurrencyProviderInterface
{
/**
* Return translated label of entity
*
* @return string
*/
public function getEntityLabel();
/**
* @param array $availableCurrencies
* @param Organization|null $organization
*
* @return bool
*/
... | <|file_sep|>src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyProviderInterface.php.diff
original:
* Returns list of unique currency codes from entity that contains multi-currency fields
updated:
* Return translated label of entity
<|file_sep|>src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyPr... | 93e069be0ab53bc969ebbb5b8bc78d4daa4311a1 | src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyProviderInterface.php | src/Oro/Bundle/CurrencyBundle/Provider/RepositoryCurrencyProviderInterface.php | PHP |
<|file_sep|>original/.github/workflows/publish_folder.yml
- name: Set commiter details
run: |
git config user.name "$(git log -1 --pretty=format:%an)"
git config user.email "$(git log -1 --pretty=format:%ae)"
- name: Run Webpack
run: npm install --also=dev && npm run buil... | - name: Set commiter details
run: |
git config user.name "$(git log -1 --pretty=format:%an)"
git config user.email "$(git log -1 --pretty=format:%ae)"
- name: Run Webpack
run: npm install --also=dev && npm run build
- name: Update branch
run: |
git... | <|file_sep|>original/.github/workflows/publish_folder.yml
- name: Set commiter details
run: |
git config user.name "$(git log -1 --pretty=format:%an)"
git config user.email "$(git log -1 --pretty=format:%ae)"
- name: Run Webpack
run: npm install --also=dev && npm run buil... | 5016216f58c3195c297cb6e5d52ff4e778a653df | .github/workflows/publish_folder.yml | .github/workflows/publish_folder.yml | YAML |
<|file_sep|>original/packages/grpc-tools/CMakeLists.txt
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/protobuf)
add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake deps/protobuf)
set(protobuf_BUILD_TESTS OFF CACHE BOOL "Buil... | set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/protobuf)
add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake deps/protobuf)
set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
set(protobuf_WITH_ZLIB OFF CACHE BOOL... | <|file_sep|>original/packages/grpc-tools/CMakeLists.txt
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/protobuf)
add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake deps/protobuf)
set(protobuf_BUILD_TESTS OFF CACHE BOOL "Buil... | a9514ad92c3e37778d7b82c17f1a5dfb7fbad051 | packages/grpc-tools/CMakeLists.txt | packages/grpc-tools/CMakeLists.txt | Text |
<|file_sep|>README.md.diff
original:
Personal ESLint config.
updated:
Personal ESLint configuration.
<|file_sep|>README.md.diff
original:
## Rules sets
updated:
## Configurations
<|file_sep|>README.md.diff
original:
* [Flowtype](/rules/flow.js)
* [Import](/rules/import.js)
* [ES6](/rules/es6.js)
updated:
* [Flowtype](... |
In order to use the basic ES5 ESLint rules, the following file can be added.
`.eslintrc`
```json
{
"extends": "njakob"
}
```
More configurations are available in the repository.
`.eslintrc`
```json
{
"extends": [
"njakob",
"njakob/babel",
"njakob/node",
"njakob/flow"
] | <|file_sep|>README.md.diff
original:
Personal ESLint config.
updated:
Personal ESLint configuration.
<|file_sep|>README.md.diff
original:
## Rules sets
updated:
## Configurations
<|file_sep|>README.md.diff
original:
* [Flowtype](/rules/flow.js)
* [Import](/rules/import.js)
* [ES6](/rules/es6.js)
updated:
* [Flowtype](... | a70f9015929c17afa9d35de5ec6dcb51530a0489 | README.md | README.md | Markdown |
<|file_sep|>contracts/test/TokenDistributionMock.sol.diff
original:
updated:
import "zeppelin-solidity/contracts/math/SafeMath.sol";
<|file_sep|>contracts/test/TokenDistributionMock.sol.diff
original:
updated:
using SafeMath for uint256;
<|file_sep|>original/contracts/test/TokenDistributionMock.sol
contract Toke... |
contract TokenDistributionMock is ITokenDistribution {
using SafeMath for uint256;
// End time of the distribution
uint256 endTime;
// Is the distribution over
bool over;
function TokenDistributionMock(uint256 _timeToEnd) public {
endTime = now.add(_timeToEnd);
over = false;
... | <|file_sep|>contracts/test/TokenDistributionMock.sol.diff
original:
updated:
import "zeppelin-solidity/contracts/math/SafeMath.sol";
<|file_sep|>contracts/test/TokenDistributionMock.sol.diff
original:
updated:
using SafeMath for uint256;
<|file_sep|>original/contracts/test/TokenDistributionMock.sol
contract Toke... | ece20be712502becbc5dffef13502c1989259299 | contracts/test/TokenDistributionMock.sol | contracts/test/TokenDistributionMock.sol | Solidity |
<|file_sep|>original/server.js
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(express.session(
{
secret: "Superdupersecret",
cookie: { maxAge: 3600000 * 24 * 365 }
}));
app.use(passp... | app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(express.session(
{
secret: "Superdupersecret",
cookie: { maxAge: 3600000 * 24 * 365 }
}));
app.use(passport.initialize());
app.use(passport.session());
passport.use(Us... | <|file_sep|>original/server.js
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(express.session(
{
secret: "Superdupersecret",
cookie: { maxAge: 3600000 * 24 * 365 }
}));
app.use(passp... | af49b43d194f9fae28e2c7b56bc81fa5f27048ee | server.js | server.js | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.