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/client/package.json
{
"name": "superdesk",
"license": "GPL-3.0",
"dependencies": {
"superdesk-core": "superdesk/superdesk-client-core#25c3ea7"
}
}
<|file_sep|>current/client/package.json
{
"name": "superdesk",
"license": "GPL-3.0",
"dependencies": {
"supe... | {
"name": "superdesk",
"license": "GPL-3.0",
"dependencies": {
"superdesk-core": "superdesk/superdesk-client-core#c163aa5"
}
} | <|file_sep|>original/client/package.json
{
"name": "superdesk",
"license": "GPL-3.0",
"dependencies": {
"superdesk-core": "superdesk/superdesk-client-core#25c3ea7"
}
}
<|file_sep|>current/client/package.json
{
"name": "superdesk",
"license": "GPL-3.0",
"dependencies": {
"supe... | d55a47a9167a3185e9f58c8263450bf33e7ca206 | client/package.json | client/package.json | JSON |
<|file_sep|>build.py.diff
original:
updated:
import os
<|file_sep|>original/build.py
file.write( content )
file.close()
out_folder = "output/"
src_folder = "src/"
includes_folder = src_folder + "includes/"
header = loadFile( includes_folder + "header.html", "" )
header = header.replace( "[STYLE]", loadF... |
out_folder = "output/"
src_folder = "src/"
includes_folder = src_folder + "includes/"
header = loadFile( includes_folder + "header.html", "" )
header = header.replace( "[STYLE]", loadFile( includes_folder + "style.css", "\t" ) )
header = header.replace( "[SCRIPT]", loadFile( includes_folder + "script.js", "\t" ) ... | <|file_sep|>build.py.diff
original:
updated:
import os
<|file_sep|>original/build.py
file.write( content )
file.close()
out_folder = "output/"
src_folder = "src/"
includes_folder = src_folder + "includes/"
header = loadFile( includes_folder + "header.html", "" )
header = header.replace( "[STYLE]", loadF... | 13f857978378df38a4d52cc92aec750c3804f069 | build.py | build.py | Python |
<|file_sep|>original/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0.0</version>
<build>
<sourceD... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0.1</version>
<build>
<sourceDirectory>src\main\java</sourc... | <|file_sep|>original/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0.0</version>
<build>
<sourceD... | 7462f41f384e3b0888176bf18e82070d531e8ae0 | pom.xml | pom.xml | XML |
<|file_sep|>original/install/install-golang.sh
GOLANG_VERSION=1.13.4
cd /tmp
wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz
mkdir -p ~/code/go/src
mkdir -p ~/code/go/pkg
mkdir -p ~/code/go/bin
<|file_sep|>current/install/install-... | GOLANG_VERSION=1.13.4
cd /tmp
wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go/
sudo tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz
mkdir -p ~/code/go/src
mkdir -p ~/code/go/pkg
mkdir -p ~/code/go/bin | <|file_sep|>original/install/install-golang.sh
GOLANG_VERSION=1.13.4
cd /tmp
wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz
mkdir -p ~/code/go/src
mkdir -p ~/code/go/pkg
mkdir -p ~/code/go/bin
<|file_sep|>current/install/install-... | 925b1bf3e2d05856cc8d3bc292bc5c039cfc2205 | install/install-golang.sh | install/install-golang.sh | Shell |
<|file_sep|>app/assets/stylesheets/home.scss.diff
original:
updated:
body {
background-color: #F2F2F2;
}
<|file_sep|>app/assets/stylesheets/home.scss.diff
original:
top: 10%;
updated:
top: 9%;
<|file_sep|>original/app/assets/stylesheets/home.scss
#notification-list {
position: fixed;
top: 10%;
right: 10%... | height: 5em;
margin-top: 20px;
margin-bottom: 20px
}
#notification-list {
position: fixed;
top: 9%;
right: 10%;
list-style-type: none;
background-color: #D3D3D3;
z-index: 10;
}
#flex-container {
display: flex;
}
#notification-list li {
padding: 0.5em 2em 0.5em 0.5em;
} | <|file_sep|>app/assets/stylesheets/home.scss.diff
original:
updated:
body {
background-color: #F2F2F2;
}
<|file_sep|>app/assets/stylesheets/home.scss.diff
original:
top: 10%;
updated:
top: 9%;
<|file_sep|>original/app/assets/stylesheets/home.scss
#notification-list {
position: fixed;
top: 10%;
right: 10%... | ccb2f85acf77f9891bb8d598aaa24b2ec30ed73c | app/assets/stylesheets/home.scss | app/assets/stylesheets/home.scss | SCSS |
<|file_sep|>_includes/ga.html.diff
original:
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
updated:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagN... | <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/ana... | <|file_sep|>_includes/ga.html.diff
original:
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
updated:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagN... | 6c335416e27da0f33c407ab323c93ef46a04314a | _includes/ga.html | _includes/ga.html | HTML |
<|file_sep|>lib/registration.js.diff
original:
alert('Error registering service worker:'+error);
updated:
console.error('Error registering service worker:'+error);
<|file_sep|>original/lib/registration.js
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js', {scope: '... | if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js', {scope: './'})
.catch(function(error) {
console.error('Error registering service worker:'+error);
});
} else {
console.log('service worker not supported');
} | <|file_sep|>lib/registration.js.diff
original:
alert('Error registering service worker:'+error);
updated:
console.error('Error registering service worker:'+error);
<|file_sep|>original/lib/registration.js
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js', {scope: '... | a73508bdc6301e616eb15a7f3ee88a5eb982e466 | lib/registration.js | lib/registration.js | JavaScript |
<|file_sep|>static/core.css.diff
original:
font: 100%/175% Ubuntu, sans-serif;
updated:
font: 100%/125% Ubuntu, sans-serif;
<|file_sep|>static/core.css.diff
original:
.plan .task-done {
width: 1.5em;
text-align: center;
}
.plan .task-title {
updated:
.plan .task-done, .plan .task-title {
padding: 0.4em 0;
<|... | outline: none;
}
.plan.idle .task-title {
/* Give the whole cell that cursor, not just the text inside */
cursor: text;
}
.plan.idle .task-title:hover {
border-color: #ccc;
}
.plan.idle .task-title:active,
.plan.editing .task-title[contenteditable="true"] {
border-color: #333;
}
.plan.locked {
cursor: d... | <|file_sep|>static/core.css.diff
original:
font: 100%/175% Ubuntu, sans-serif;
updated:
font: 100%/125% Ubuntu, sans-serif;
<|file_sep|>static/core.css.diff
original:
.plan .task-done {
width: 1.5em;
text-align: center;
}
.plan .task-title {
updated:
.plan .task-done, .plan .task-title {
padding: 0.4em 0;
<|... | 114d07cb54aaf7764588f5a06d83fa30f108b998 | static/core.css | static/core.css | CSS |
<|file_sep|>sack/shell_init.go.diff
original:
alias F="${sack} -e"
updated:
alias E="${sack} -e"
<|file_sep|>original/sack/shell_init.go
fmt.Println(sh)
}
func shellEval(c *cli.Context) {
sh := "eval \"$(sack init)\""
fmt.Println(sh)
}
/*
// TODO: Add bash and zsh autocomplete
_cli_bash_autocomplete()... | fmt.Println(sh)
}
func shellEval(c *cli.Context) {
sh := "eval \"$(sack init)\""
fmt.Println(sh)
}
/*
// TODO: Add bash and zsh autocomplete
CREDIT: https://github.com/codegangsta/cli/blob/master/autocomplete/bash_autocomplete
_cli_bash_autocomplete() {
local cur prev opts base
COMPREPLY=()
... | <|file_sep|>sack/shell_init.go.diff
original:
alias F="${sack} -e"
updated:
alias E="${sack} -e"
<|file_sep|>original/sack/shell_init.go
fmt.Println(sh)
}
func shellEval(c *cli.Context) {
sh := "eval \"$(sack init)\""
fmt.Println(sh)
}
/*
// TODO: Add bash and zsh autocomplete
_cli_bash_autocomplete()... | 8d4a94bd00f829b4d290625a6870ca30f2614e5f | sack/shell_init.go | sack/shell_init.go | Go |
<|file_sep|>client/app/components/home/home.spec.js.diff
original:
updated:
import Authentication from "../../common/authentication/authentication";
<|file_sep|>original/client/app/components/home/home.spec.js
import HomeModule from "./home";
describe("Home", () => {
let $rootScope, $componentController;
beforeE... | import HomeModule from "./home";
import Authentication from "../../common/authentication/authentication";
describe("Home", () => {
let $rootScope, $componentController;
beforeEach(window.module(Authentication)); //to load hookProvider
beforeEach(window.module(HomeModule));
beforeEach(inject(($injector) => {
... | <|file_sep|>client/app/components/home/home.spec.js.diff
original:
updated:
import Authentication from "../../common/authentication/authentication";
<|file_sep|>original/client/app/components/home/home.spec.js
import HomeModule from "./home";
describe("Home", () => {
let $rootScope, $componentController;
beforeE... | 0ededb60deed3ed3e6a4d0af5a9b7269f2a24f87 | client/app/components/home/home.spec.js | client/app/components/home/home.spec.js | JavaScript |
<|file_sep|>original/requirements_test.txt
pytest==3.9.1
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
bumpversion==0.5.3
<|file_sep|>current/requirements_test.txt
pytest==3.9.1
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
bumpversion==0.5.3
<|file_sep|>updated/requirements_test.txt | pytest==3.9.3
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
bumpversion==0.5.3 | <|file_sep|>original/requirements_test.txt
pytest==3.9.1
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
bumpversion==0.5.3
<|file_sep|>current/requirements_test.txt
pytest==3.9.1
pytest-cov==2.6.0
mock==2.0.0
flake8==3.5.0
bumpversion==0.5.3
<|file_sep|>updated/requirements_test.txt
pytest==3.9.3
pytest-cov==2.6.0
mock==2... | 59475e5ab7fcdfc2b040e6663e85e43cf18c54db | requirements_test.txt | requirements_test.txt | Text |
<|file_sep|>original/3_5.go
"Sends invalid connection preface",
"The endpoint MUST terminate the TCP connection.",
func(ctx *Context) (expected []Result, actual Result) {
expected = []Result{
&ResultConnectionClose{},
}
tcpConn := CreateTcpConn(ctx)
defer tcpConn.conn.Close()
fmt.Fprintf(tcpC... | "Sends invalid connection preface",
"The endpoint MUST terminate the TCP connection.",
func(ctx *Context) (expected []Result, actual Result) {
expected = []Result{
&ResultConnectionClose{},
}
tcpConn := CreateTcpConn(ctx)
defer tcpConn.conn.Close()
fmt.Fprintf(tcpConn.conn, "INVALID CONNECTIO... | <|file_sep|>original/3_5.go
"Sends invalid connection preface",
"The endpoint MUST terminate the TCP connection.",
func(ctx *Context) (expected []Result, actual Result) {
expected = []Result{
&ResultConnectionClose{},
}
tcpConn := CreateTcpConn(ctx)
defer tcpConn.conn.Close()
fmt.Fprintf(tcpC... | 3d78e31d70e89f16af82e0a0b82f802bbcb59f9a | 3_5.go | 3_5.go | Go |
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.6
- 7.0
- hhvm
env:
global:
- setup=basic
- coverage=no
before_script:
- travis_retry composer self-update
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --... | language: php
sudo: false
php:
- 5.6
- 7.0
- 7.1
env:
global:
- setup=basic
- coverage=no
before_script:
- travis_retry composer self-update
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
- if [[ $setu... | <|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.6
- 7.0
- hhvm
env:
global:
- setup=basic
- coverage=no
before_script:
- travis_retry composer self-update
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --... | 37c85d433babec590a00d9af0eed9bf2940a91eb | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/media_wiki/exception.rb
# General exception occurred within MediaWiki::Gateway, and parent class for MediaWiki::APIError, MediaWiki::Unauthorized.
class Exception < Exception
end
# Wrapper for errors returned by MediaWiki API. Possible codes are defined in http://www.mediawiki.org/wik... | # Wrapper for errors returned by MediaWiki API. Possible codes are defined in http://www.mediawiki.org/wiki/API:Errors_and_warnings.
#
# Warnings also throw errors with code 'warning', unless MediaWiki::Gateway#new was called with :ignorewarnings.
class APIError < MediaWiki::Exception
attr_reader :code, :i... | <|file_sep|>original/lib/media_wiki/exception.rb
# General exception occurred within MediaWiki::Gateway, and parent class for MediaWiki::APIError, MediaWiki::Unauthorized.
class Exception < Exception
end
# Wrapper for errors returned by MediaWiki API. Possible codes are defined in http://www.mediawiki.org/wik... | 24f5c67fe1c7146115a2fed72ca3a6e673e17b79 | lib/media_wiki/exception.rb | lib/media_wiki/exception.rb | Ruby |
<|file_sep|>original/rancher-config/rancher-compose.yml
version: '2'
services:
gp-finder-frontend:
scale: 1
start_on_create: true
health_check:
response_timeout: 5000
healthy_threshold: 2
port: 3000
unhealthy_threshold: 3
initializing_timeout: 60000
interval: 5000
... | version: '2'
services:
gp-finder-frontend:
scale: $INITIAL_CONTAINER_SCALE
start_on_create: true
health_check:
response_timeout: 5000
healthy_threshold: 2
port: 3000
unhealthy_threshold: 3
initializing_timeout: 60000
interval: 5000
strategy: recreate
reque... | <|file_sep|>original/rancher-config/rancher-compose.yml
version: '2'
services:
gp-finder-frontend:
scale: 1
start_on_create: true
health_check:
response_timeout: 5000
healthy_threshold: 2
port: 3000
unhealthy_threshold: 3
initializing_timeout: 60000
interval: 5000
... | 684b0c0e693bc9d3cb2e0e90f8256c657405982c | rancher-config/rancher-compose.yml | rancher-config/rancher-compose.yml | YAML |
<|file_sep|>original/src/pages/components/ConfigWarning.qml
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
import QtQuick 2.2
import Sailfish.Silica 1.0
ConfirmDialog {
property Item browserPage
//: Warning of changing bro... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
import QtQuick 2.2
import Sailfish.Silica 1.0
ConfirmDialog {
property Item browserPage
//: Warning of c... | <|file_sep|>original/src/pages/components/ConfigWarning.qml
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
import QtQuick 2.2
import Sailfish.Silica 1.0
ConfirmDialog {
property Item browserPage
//: Warning of changing bro... | 868a2c009aafad35d208166e86c39a614147c9ea | src/pages/components/ConfigWarning.qml | src/pages/components/ConfigWarning.qml | QML |
<|file_sep|>original/requirements/base.txt
bleach==4.1.0
Django==3.2.13 # pyup: < 3.3
django-allauth==0.50.0
django-autoslug==1.9.8
django-background-tasks==1.2.5
django-ckeditor==6.4.0
django-enumfield==2.0.2
django-filter==21.1
django-multiselectfield==0.1.12
django-widget-tweaks==1.4.12
djangorestframework==3.13.1
e... | bleach==4.1.0
Django==3.2.13 # pyup: < 3.3
django-allauth==0.50.0
django-autoslug==1.9.8
django-background-tasks==1.2.5
django-ckeditor==6.4.1
django-enumfield==2.0.2
django-filter==21.1
django-multiselectfield==0.1.12
django-widget-tweaks==1.4.12
djangorestframework==3.13.1
easy-thumbnails==2.8.1
html5lib==1.1
jsonfie... | <|file_sep|>original/requirements/base.txt
bleach==4.1.0
Django==3.2.13 # pyup: < 3.3
django-allauth==0.50.0
django-autoslug==1.9.8
django-background-tasks==1.2.5
django-ckeditor==6.4.0
django-enumfield==2.0.2
django-filter==21.1
django-multiselectfield==0.1.12
django-widget-tweaks==1.4.12
djangorestframework==3.13.1
e... | d631551db95817a8d93b5a8884e855dffbd774c3 | requirements/base.txt | requirements/base.txt | Text |
<|file_sep|>original/library/monitor/new_cond_spec.rb
<|file_sep|>current/library/monitor/new_cond_spec.rb
<|file_sep|>updated/library/monitor/new_cond_spec.rb | require_relative '../../spec_helper'
require 'monitor'
describe "Monitor#new_cond" do
it "creates a MonitorMixin::ConditoinVariable" do
m = Monitor.new
c = m.new_cond
c.class.should == MonitorMixin::ConditionVariable
end
it 'returns a condition variable which can be waited on by a thread holding the... | <|file_sep|>original/library/monitor/new_cond_spec.rb
<|file_sep|>current/library/monitor/new_cond_spec.rb
<|file_sep|>updated/library/monitor/new_cond_spec.rb
require_relative '../../spec_helper'
require 'monitor'
describe "Monitor#new_cond" do
it "creates a MonitorMixin::ConditoinVariable" do
m = Monitor.new... | d1bc13d1ab8a2fe114e1cabc33892de37cd69b58 | library/monitor/new_cond_spec.rb | library/monitor/new_cond_spec.rb | Ruby |
<|file_sep|>app/app.php.diff
original:
'meta.service' => 'unnamed-service',
updated:
<|file_sep|>original/app/app.php
$startTime = microtime(true);
require_once __DIR__ . '/../vendor/autoload.php';
// This is the default config. See `deploy_config/README.md' for more info.
$config = array(
'debug' => true,
... | $startTime = microtime(true);
require_once __DIR__ . '/../vendor/autoload.php';
// This is the default config. See `deploy_config/README.md' for more info.
$config = array(
'debug' => true,
'timer.start' => $startTime,
'monolog.name' => 'silex-bootstrap',
'monolog.level' => \Monolog\Logger::DEBUG,
... | <|file_sep|>app/app.php.diff
original:
'meta.service' => 'unnamed-service',
updated:
<|file_sep|>original/app/app.php
$startTime = microtime(true);
require_once __DIR__ . '/../vendor/autoload.php';
// This is the default config. See `deploy_config/README.md' for more info.
$config = array(
'debug' => true,
... | 7cd8688b6e3f6a6c354023336b1dc7f4b0537e6c | app/app.php | app/app.php | PHP |
<|file_sep|>original/.kitchen.yml
suites:
- name: default
run_list:
- recipe[margarine]
attributes: {}
- name: tinge
run_list:
- recipe[margarine::tinge]
attributes: {}
- name: blend
run_list:
- recipe[margarine::blend]
attributes: {}
- name: spread
run_list:
- recipe[margarine::spread... | - name: default
run_list:
- recipe[margarine]
attributes: {}
- name: tinge
run_list:
- recipe[margarine::tinge]
attributes: {}
- name: tinge-nginx
run_list:
- recipe[margarine::tinge]
attributes:
margarine:
service:
proxy: nginx
- name: blend
run_list:
- recipe[margari... | <|file_sep|>original/.kitchen.yml
suites:
- name: default
run_list:
- recipe[margarine]
attributes: {}
- name: tinge
run_list:
- recipe[margarine::tinge]
attributes: {}
- name: blend
run_list:
- recipe[margarine::blend]
attributes: {}
- name: spread
run_list:
- recipe[margarine::spread... | 68d226d0d4a1502713f8cf2c300d07c72060eb31 | .kitchen.yml | .kitchen.yml | YAML |
<|file_sep|>original/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy
<|file_sep|>current/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy
<|file_sep|>updated/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy | String where = """
collection = 'bib'
AND data#>>'{@graph,1,marc:hasImmediateSourceOfAcquisitionNote}' LIKE '%\"marc:isPrivate\"%'
"""
selectBySqlWhere(where) { data ->
boolean modified
asList(data.graph[1]["marc:hasImmediateSourceOfAcquisitionNote"]).each { note ->
modified |= note.removeAll... | <|file_sep|>original/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy
<|file_sep|>current/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy
<|file_sep|>updated/whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy
Strin... | 7c7d526c57d2b1d4022bd1494a23573ac360bc14 | whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy | whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy | Groovy |
<|file_sep|>original/bin/cm.php
#!/usr/bin/env php
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$bootloader = new CM_Bootloader(dirname(__DIR__) . '/');
$bootloader->load();
$manager = new CM_Cli_CommandManager();
$manager->autoloadCommands();
$returnCode = $manager->run(new CM_Cli_Arguments($argv));... | #!/usr/bin/env php
<?php
function includeIfExists($file) {
return file_exists($file) && include $file;
}
if (!includeIfExists(__DIR__.'/../vendor/autoload.php') && !includeIfExists(__DIR__.'/../../../autoload.php')) {
die('Please install project dependencies with `composer install`.' . PHP_EOL);
}
$bootloader = new... | <|file_sep|>original/bin/cm.php
#!/usr/bin/env php
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$bootloader = new CM_Bootloader(dirname(__DIR__) . '/');
$bootloader->load();
$manager = new CM_Cli_CommandManager();
$manager->autoloadCommands();
$returnCode = $manager->run(new CM_Cli_Arguments($argv));... | 66a3954be401976be42d7d312a983533e1a8451e | bin/cm.php | bin/cm.php | PHP |
<|file_sep|>original/glitter/assets/apps.py
# -*- coding: utf-8 -*-
from django.apps import AppConfig
class GlitterBasicAssetsConfig(AppConfig):
name = 'glitter.assets'
label = 'glitter_assets'
def ready(self):
super(GlitterBasicAssetsConfig, self).ready()
from . import listeners # noqa... | # -*- coding: utf-8 -*-
from django.apps import AppConfig
class GlitterBasicAssetsConfig(AppConfig):
name = 'glitter.assets'
label = 'glitter_assets'
verbose_name = 'Assets'
def ready(self):
super(GlitterBasicAssetsConfig, self).ready()
from . import listeners # noqa | <|file_sep|>original/glitter/assets/apps.py
# -*- coding: utf-8 -*-
from django.apps import AppConfig
class GlitterBasicAssetsConfig(AppConfig):
name = 'glitter.assets'
label = 'glitter_assets'
def ready(self):
super(GlitterBasicAssetsConfig, self).ready()
from . import listeners # noqa... | 962f26299a7038879eb1efeb8f16b0801fd9a04a | glitter/assets/apps.py | glitter/assets/apps.py | Python |
<|file_sep|>original/spec/helpers/application_helper/buttons/db_delete_sepc.rb
<|file_sep|>current/spec/helpers/application_helper/buttons/db_delete_sepc.rb
<|file_sep|>updated/spec/helpers/application_helper/buttons/db_delete_sepc.rb | describe ApplicationHelper::Button::DbDelete do
let(:view_context) { setup_view_context_with_sandbox({}) }
let(:dashboard) { FactoryGirl.create(:miq_widget_set, :read_only => read_only) }
let(:button) { described_class.new(view_context, {}, {'db' => dashboard}, {}) }
describe '#calculate_properties' do
bef... | <|file_sep|>original/spec/helpers/application_helper/buttons/db_delete_sepc.rb
<|file_sep|>current/spec/helpers/application_helper/buttons/db_delete_sepc.rb
<|file_sep|>updated/spec/helpers/application_helper/buttons/db_delete_sepc.rb
describe ApplicationHelper::Button::DbDelete do
let(:view_context) { setup_view_c... | 521d32433bdf36ea670c85817c2caa7840f1e7b5 | spec/helpers/application_helper/buttons/db_delete_sepc.rb | spec/helpers/application_helper/buttons/db_delete_sepc.rb | Ruby |
<|file_sep|>original/src/shared/buxtonkey.h
<|file_sep|>current/src/shared/buxtonkey.h
<|file_sep|>updated/src/shared/buxtonkey.h | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton 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... | <|file_sep|>original/src/shared/buxtonkey.h
<|file_sep|>current/src/shared/buxtonkey.h
<|file_sep|>updated/src/shared/buxtonkey.h
/*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser G... | f94601e977ea6bf7c466e30d62cce8f05d9973fd | src/shared/buxtonkey.h | src/shared/buxtonkey.h | C |
<|file_sep|>test/svg-test-helper.js.diff
original:
const SvgTestHelper = {
updated:
const expectations = {
<|file_sep|>original/test/svg-test-helper.js
const SvgTestHelper = {
expectIsRectangular(wrapper) {
expect(exhibitsShapeSequence(wrapper, RECTANGULAR_SEQUENCE)).to.be.true;
},
expectIsCircular(wrapper) ... | const expectations = {
expectIsRectangular(wrapper) {
expect(exhibitsShapeSequence(wrapper, RECTANGULAR_SEQUENCE)).to.be.true;
},
expectIsCircular(wrapper) {
expect(exhibitsShapeSequence(wrapper, CIRCULAR_SEQUENCE)).to.be.true;
}
};
const helpers = {
getBarHeight(wrapper) {
expectations.expectIs... | <|file_sep|>test/svg-test-helper.js.diff
original:
const SvgTestHelper = {
updated:
const expectations = {
<|file_sep|>original/test/svg-test-helper.js
const SvgTestHelper = {
expectIsRectangular(wrapper) {
expect(exhibitsShapeSequence(wrapper, RECTANGULAR_SEQUENCE)).to.be.true;
},
expectIsCircular(wrapper) ... | 665337b8ea125f179f58e9ffd4cee4e1f5272743 | test/svg-test-helper.js | test/svg-test-helper.js | JavaScript |
<|file_sep|>lib/editor.js.diff
original:
updated:
import Path from 'path'
<|file_sep|>lib/editor.js.diff
original:
import {aggressiveDebounce} from './helpers'
updated:
import {getGrammarByName} from './helpers'
<|file_sep|>lib/editor.js.diff
original:
updated:
javascript: boolean;
<|file_sep|>lib/editor.js.diff
or... | this.connection = null
this.javascript = Path.extname(textEditor.getPath()) === '.js'
this.subscriptions.add(this.emitter)
this.subscriptions.add(atom.config.observe('flint.liveReload', liveReload => {
this.liveReload = liveReload
}))
this.subscriptions.add(textEditor.onDidDestroy(() => {... | <|file_sep|>lib/editor.js.diff
original:
updated:
import Path from 'path'
<|file_sep|>lib/editor.js.diff
original:
import {aggressiveDebounce} from './helpers'
updated:
import {getGrammarByName} from './helpers'
<|file_sep|>lib/editor.js.diff
original:
updated:
javascript: boolean;
<|file_sep|>lib/editor.js.diff
or... | 33dc4a4e3c394b13dea72a935799564539903b80 | lib/editor.js | lib/editor.js | JavaScript |
<|file_sep|>original/lib/puppet/provider/runtime_fail/default.rb
Puppet::Type.type(:runtime_fail).provide(
:default,
) do
def ready
if resource[:fail]
fail(resource[:message])
end
end
def ready=(val)
# do nothing
end
end
<|file_sep|>current/lib/puppet/provider/runtime_fail/default.rb
Pupp... | Puppet::Type.type(:runtime_fail).provide(
:default,
) do
def ready
if resource[:fail]
fail(resource[:message])
end
true
end
def ready=(val)
# do nothing
end
end | <|file_sep|>original/lib/puppet/provider/runtime_fail/default.rb
Puppet::Type.type(:runtime_fail).provide(
:default,
) do
def ready
if resource[:fail]
fail(resource[:message])
end
end
def ready=(val)
# do nothing
end
end
<|file_sep|>current/lib/puppet/provider/runtime_fail/default.rb
Pupp... | 34ac88bf07eda9a44d1014300eea5eb811213acb | lib/puppet/provider/runtime_fail/default.rb | lib/puppet/provider/runtime_fail/default.rb | Ruby |
<|file_sep|>original/docker_sql_express.ps1
<|file_sep|>current/docker_sql_express.ps1
<|file_sep|>updated/docker_sql_express.ps1 | IF ($(docker ps -aq).Length -gt 0) {
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
}
Write-Host "Starting docker container..."
$container_id = docker run -d -p 1433:1433 -e sa_password=G!a7eZZM -e ACCEPT_EULA=Y microsoft/mssql-server-windows-express
Start-Sleep -Seconds 30
docker exec $container_id s... | <|file_sep|>original/docker_sql_express.ps1
<|file_sep|>current/docker_sql_express.ps1
<|file_sep|>updated/docker_sql_express.ps1
IF ($(docker ps -aq).Length -gt 0) {
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
}
Write-Host "Starting docker container..."
$container_id = docker run -d -p 1433:1433 ... | 9e7a00545cb54a2417562a32d5a308ca99191c05 | docker_sql_express.ps1 | docker_sql_express.ps1 | PowerShell |
<|file_sep|>src/main/java/edu/cwru/sicu_sms/TemporalPlot.java.diff
original:
updated:
import javafx.fxml.FXML;
import javafx.scene.chart.LineChart;
<|file_sep|>original/src/main/java/edu/cwru/sicu_sms/TemporalPlot.java
** SICU Stress Measurement System **
** ... | ** Case Western Reserve University **
** 2016 Fall Semester **
\* */
package edu.cwru.sicu_sms;
import javafx.fxml.FXML;
import javafx.scene.chart.LineChart;
/**... | <|file_sep|>src/main/java/edu/cwru/sicu_sms/TemporalPlot.java.diff
original:
updated:
import javafx.fxml.FXML;
import javafx.scene.chart.LineChart;
<|file_sep|>original/src/main/java/edu/cwru/sicu_sms/TemporalPlot.java
** SICU Stress Measurement System **
** ... | eac95dda71d81dfefbf99364ae448def49714cc1 | src/main/java/edu/cwru/sicu_sms/TemporalPlot.java | src/main/java/edu/cwru/sicu_sms/TemporalPlot.java | Java |
<|file_sep|>original/dev-requirements.txt
mypy-lang==0.4.6
pytest==3.0.7
pytest-cov==2.4.0
pytest-asyncio==0.5.0
jedi==0.10.2
coverage==4.3.4
pylint==1.7.0
typed-ast==1.0.3
alembic==0.9.1
<|file_sep|>current/dev-requirements.txt
mypy-lang==0.4.6
pytest==3.0.7
pytest-cov==2.4.0
pytest-asyncio==0.5.0
jedi==0.10.2
coverag... | mypy-lang==0.4.6
pytest==3.0.7
pytest-cov==2.4.0
pytest-asyncio==0.5.0
jedi==0.10.2
coverage==4.3.4
pylint==1.7.1
typed-ast==1.0.3
alembic==0.9.1 | <|file_sep|>original/dev-requirements.txt
mypy-lang==0.4.6
pytest==3.0.7
pytest-cov==2.4.0
pytest-asyncio==0.5.0
jedi==0.10.2
coverage==4.3.4
pylint==1.7.0
typed-ast==1.0.3
alembic==0.9.1
<|file_sep|>current/dev-requirements.txt
mypy-lang==0.4.6
pytest==3.0.7
pytest-cov==2.4.0
pytest-asyncio==0.5.0
jedi==0.10.2
coverag... | 73c5da5d925202c82182b971297b8814ac96d8ba | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>assets/template/single.php.diff
original:
updated:
<?php
$google_review = get_post_meta( $post->ID, 're-google-review-google-place-id', true );
?>
<|file_sep|>original/assets/template/single.php
<?php
/**
* Single Re Google Review
*
* @package Google Review
*/
?>
<?php get_header(); ?>
<div class="ope... | <?php
/**
* Single Re Google Review
*
* @package Google Review
*/
?>
<?php get_header(); ?>
<?php
$google_review = get_post_meta( $post->ID, 're-google-review-google-place-id', true );
?>
<div class="open-review">
<h2>Use <span>Google</span><br>to leave your review?</h2>
<a href="http://search.google.com/local/w... | <|file_sep|>assets/template/single.php.diff
original:
updated:
<?php
$google_review = get_post_meta( $post->ID, 're-google-review-google-place-id', true );
?>
<|file_sep|>original/assets/template/single.php
<?php
/**
* Single Re Google Review
*
* @package Google Review
*/
?>
<?php get_header(); ?>
<div class="ope... | 0b827758042f0f9716662b7cea9644a07c308866 | assets/template/single.php | assets/template/single.php | PHP |
<|file_sep|>original/app/view/hatena_star_view.rb
module HBFav2
class HatenaStarView < UIImageView
@@blank_image = UIImage.imageNamed('blank')
@@is_retina = UIScreen.mainScreen.scale == 2.0
def initWithFrame(frame)
if super
self.userInteractionEnabled = true
end
self
end
... | module HBFav2
class HatenaStarView < UIImageView
@@blank_image = UIImage.imageNamed('blank')
@@is_retina = UIScreen.mainScreen.scale >= 2.0
def initWithFrame(frame)
if super
self.userInteractionEnabled = true
end
self
end
def set_url(url, &block)
api_url = "http... | <|file_sep|>original/app/view/hatena_star_view.rb
module HBFav2
class HatenaStarView < UIImageView
@@blank_image = UIImage.imageNamed('blank')
@@is_retina = UIScreen.mainScreen.scale == 2.0
def initWithFrame(frame)
if super
self.userInteractionEnabled = true
end
self
end
... | dc99c6afdaf375648792ad87a8cebf97dc9ee11f | app/view/hatena_star_view.rb | app/view/hatena_star_view.rb | Ruby |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml |
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '2.2.200'
- script: dotnet restore
- script: dotnet build -c $(buildConfiguration) --no-restore -v minimal
- script: dotnet test -c $(buildConfiguration) --no... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '2.2.200'
- script: dotnet restore
... | 50a219947e5c2900096e0cddcfef32da6629f9e0 | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>renderdata/extrabees-texture.txt.diff
original:
updated:
var:item_hive=0,hive=0
<|file_sep|>renderdata/extrabees-texture.txt.diff
original:
block:id=item_hive,data=0,allsides=0,topbottom=1,txtid=blk0
updated:
block:id=item_hive,id=hive,data=0,allsides=0,topbottom=1,txtid=blk0
<|file_sep|>renderdata/extrab... | # ExtraBees Block mapping
modname:mod_ExtraBees,ExtraBees
var:item_hive=0,hive=0
# configuration file
cfgfile:config/forestry/extrabees/main.conf
# Files
texturefile:id=blk0,filename=gfx/extrabees/extrabees.png,xcount=16,ycount=16
#Hives
# hive:0 - Water Beehive
block:id=item_hive,id=hive,data=0,allsides=0,topbottom... | <|file_sep|>renderdata/extrabees-texture.txt.diff
original:
updated:
var:item_hive=0,hive=0
<|file_sep|>renderdata/extrabees-texture.txt.diff
original:
block:id=item_hive,data=0,allsides=0,topbottom=1,txtid=blk0
updated:
block:id=item_hive,id=hive,data=0,allsides=0,topbottom=1,txtid=blk0
<|file_sep|>renderdata/extrab... | e18c433baacde9f9a8a0ded1066454f9e43872c5 | renderdata/extrabees-texture.txt | renderdata/extrabees-texture.txt | Text |
<|file_sep|>src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java.diff
original:
updated:
import info.u_team.u_team_test.TestMod;
<|file_sep|>original/src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java
package info.u_team.u_team_test.init;
import info.u_team.u_team_core.api.construc... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.api.construct.*;
import info.u_team.u_team_core.util.registry.BusRegister;
import info.u_team.u_team_test.TestMod;
@Construct(modid = TestMod.MODID)
public class TestCommonBusRegister implements IModConstruct {
@Override
public void construct() ... | <|file_sep|>src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java.diff
original:
updated:
import info.u_team.u_team_test.TestMod;
<|file_sep|>original/src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java
package info.u_team.u_team_test.init;
import info.u_team.u_team_core.api.construc... | c3ed67d7598cde71c3fb4fdb7204e13c4c3a7526 | src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java | src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java | Java |
<|file_sep|>i18n/en.json.diff
original:
"Kudu"
updated:
"Kudu",
"Southparkfan"
<|file_sep|>original/i18n/en.json
"Kudu"
]
},
"action-createwiki": "create a wiki",
"createwiki": "Create a wiki",
"createwiki-desc": "Create a new wiki on a wiki farm",
"createwiki-label-comment": "Comment",
"createwiki-... | "Southparkfan"
]
},
"action-createwiki": "create a wiki",
"createwiki": "Create a wiki",
"createwiki-desc": "Create a new wiki on a wiki farm",
"createwiki-label-comment": "Comment",
"createwiki-label-create": "Create",
"createwiki-label-dbname": "Database name",
"createwiki-label-founder": "Founder",
"cr... | <|file_sep|>i18n/en.json.diff
original:
"Kudu"
updated:
"Kudu",
"Southparkfan"
<|file_sep|>original/i18n/en.json
"Kudu"
]
},
"action-createwiki": "create a wiki",
"createwiki": "Create a wiki",
"createwiki-desc": "Create a new wiki on a wiki farm",
"createwiki-label-comment": "Comment",
"createwiki-... | da275503b01b1d637bf9ad13081d723d1ac9bcbd | i18n/en.json | i18n/en.json | JSON |
<|file_sep|>original/.github/workflows/nodejs.yml
<|file_sep|>current/.github/workflows/nodejs.yml
<|file_sep|>updated/.github/workflows/nodejs.yml | name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
... | <|file_sep|>original/.github/workflows/nodejs.yml
<|file_sep|>current/.github/workflows/nodejs.yml
<|file_sep|>updated/.github/workflows/nodejs.yml
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v... | ee90b6d291732f07d97bc40219df41e82e7fb14a | .github/workflows/nodejs.yml | .github/workflows/nodejs.yml | YAML |
<|file_sep|>original/rust-showcase/src/bin/image_nobg.rs
<|file_sep|>current/rust-showcase/src/bin/image_nobg.rs
<|file_sep|>updated/rust-showcase/src/bin/image_nobg.rs | extern crate simple_csv;
extern crate png;
use std::env;
use std::fs::File;
use std::io::{BufWriter, BufReader};
use std::str::FromStr;
use png::HasParameters;
use simple_csv::SimpleCsvReader;
fn main(){
let f = File::open("../long-cadence.csv").unwrap();
let buf = BufReader::new(f);
let mut reader = Simp... | <|file_sep|>original/rust-showcase/src/bin/image_nobg.rs
<|file_sep|>current/rust-showcase/src/bin/image_nobg.rs
<|file_sep|>updated/rust-showcase/src/bin/image_nobg.rs
extern crate simple_csv;
extern crate png;
use std::env;
use std::fs::File;
use std::io::{BufWriter, BufReader};
use std::str::FromStr;
use png::Has... | 1c40099381e5ac592db37120617365fc54f21d80 | rust-showcase/src/bin/image_nobg.rs | rust-showcase/src/bin/image_nobg.rs | Rust |
<|file_sep|>.travis.yml.diff
original:
# Get and install the Bash Automated Testing System (bats)
before_script:
- git clone https://github.com/sstephenson/bats.git /tmp/bats
- mkdir -p /tmp/local
- bash /tmp/bats/install.sh /tmp/local
- export PATH=$PATH:/tmp/local/bin
updated:
addons:
apt:
packages:
... | - gcc
- clang
addons:
apt:
packages:
- tree
- bats
# We don't store generated files (configure and Makefile) in GIT,
# so we must customize the default build script to run ./autogen.sh
script:
- ./autogen.sh
- ./configure --prefix=
- make clean
- make V=1
- DESTDIR=~/tmp make install-s... | <|file_sep|>.travis.yml.diff
original:
# Get and install the Bash Automated Testing System (bats)
before_script:
- git clone https://github.com/sstephenson/bats.git /tmp/bats
- mkdir -p /tmp/local
- bash /tmp/bats/install.sh /tmp/local
- export PATH=$PATH:/tmp/local/bin
updated:
addons:
apt:
packages:
... | f880669cac49cb4498da2cae6b48932ee59b7c4e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/hydrachain/__init__.py
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'hydrachain')):
# not installed, but there is another version that *is*
raise DistributionNotFound
__version__ = _dist.version
except DistributionNotFound:
pass
if... | here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'hydrachain')):
# not installed, but there is another version that *is*
raise DistributionNotFound
__version__ = _dist.version
except DistributionNotFound:
pass
if not __version__:
try:
rev = sub... | <|file_sep|>original/hydrachain/__init__.py
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'hydrachain')):
# not installed, but there is another version that *is*
raise DistributionNotFound
__version__ = _dist.version
except DistributionNotFound:
pass
if... | b4207380bc5b8639397e3d1d9a4b70069ef8d6e7 | hydrachain/__init__.py | hydrachain/__init__.py | Python |
<|file_sep|>.travis.yml.diff
original:
- 5.5
updated:
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 7.0
before_install:
- travis_retry composer self-update
install:
- travis_retry composer install --prefer-source --no-in... | language: php
sudo: false
php:
- 5.6
- 7.0
- hhvm
before_install:
- travis_retry composer self-update
install:
- travis_retry composer install --prefer-source --no-interaction
script:
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then phpunit; fi
- if [ "$TRAVIS_PHP_... | <|file_sep|>.travis.yml.diff
original:
- 5.5
updated:
<|file_sep|>original/.travis.yml
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 7.0
before_install:
- travis_retry composer self-update
install:
- travis_retry composer install --prefer-source --no-in... | 8d79919afa10eb41ca99effa531b6ffebb597ca0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>{{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile.diff
original:
updated:
gettext \
libpq5 \
nginx \
<|file_sep|>{{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile.diff
original:
nginx \
updated:
libpq-dev \
<|file_sep|>... | gettext \
libpq5 \
nginx \
gcc \
libpq-dev \
python3-dev \
&& pip --disable-pip-version-check --no-cache-dir \
install -r ${REQUIREMENTS} \
&& apt-get purge -y \
gcc \
libpq-dev \
python3-dev \
&& apt-get autoremove -y --purge \
&& apt-get clean \
&& ln -sfv /app/deployment/... | <|file_sep|>{{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile.diff
original:
updated:
gettext \
libpq5 \
nginx \
<|file_sep|>{{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile.diff
original:
nginx \
updated:
libpq-dev \
<|file_sep|>... | 2e6ae5ec06742a774d9ae9c0d02d7e5469f3cd9f | {{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile | {{cookiecutter.project_slug}}/_/deployment/python/deployment/application/Dockerfile | unknown |
<|file_sep|>metadata/ml.vivekthazhathattil.chalachithram.yml.diff
original:
updated:
- versionName: '1.3'
versionCode: 3
commit: 006d2dcd999959e0afe380eed3c8bda5e728409b
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/ml.vivekthazhathattil.chalachithram.yml
SourceCode: https://github.c... | Repo: https://github.com/VivekThazhathattil/Chalachithram/
Builds:
- versionName: '1.2'
versionCode: 2
commit: 8bb34bf7ead6ccf5aef20f8cb5a0c1422525d1e0
subdir: app
gradle:
- yes
- versionName: '1.3'
versionCode: 3
commit: 006d2dcd999959e0afe380eed3c8bda5e728409b
subdir: app
g... | <|file_sep|>metadata/ml.vivekthazhathattil.chalachithram.yml.diff
original:
updated:
- versionName: '1.3'
versionCode: 3
commit: 006d2dcd999959e0afe380eed3c8bda5e728409b
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/ml.vivekthazhathattil.chalachithram.yml
SourceCode: https://github.c... | 2e1870fdf0ef6c825e917ceaff1004fb2ebcc50c | metadata/ml.vivekthazhathattil.chalachithram.yml | metadata/ml.vivekthazhathattil.chalachithram.yml | YAML |
<|file_sep|>original/lib/reconn/analyzer/project_elements/class.rb
@complexity = 0
end
def add_dependency(class_name)
@dependencies << class_name.to_s
end
def add_method(method_name)
@methods << method_name
end
def methods_number
methods.size
end
def to_s
... | end
def add_method(method_name)
@methods << method_name
end
def methods_number
methods.size
end
def +(other)
other.methods.each do |method|
if !@methods.index(method)
@methods << method
end
end
@dependencies += other.dependencies
s... | <|file_sep|>original/lib/reconn/analyzer/project_elements/class.rb
@complexity = 0
end
def add_dependency(class_name)
@dependencies << class_name.to_s
end
def add_method(method_name)
@methods << method_name
end
def methods_number
methods.size
end
def to_s
... | ad4fd019f5f7b6f5cfef852cfc0045c4b720d298 | lib/reconn/analyzer/project_elements/class.rb | lib/reconn/analyzer/project_elements/class.rb | Ruby |
<|file_sep|>original/package.json
"jsdom": "^9.0.0"
},
"devDependencies": {
"qunit": "^0.7.6",
"saucie": "0.1.3",
"standard": "^6.0.8",
"testem": "^0.8.2",
"watchify": "^2.5.0"
},
"engines": {
"node": "^4"
},
"keywords": [
"markdown"
],
"license": "MIT",
"main": "index.... | "jsdom": "^9.0.0"
},
"devDependencies": {
"qunit": "^0.7.6",
"saucie": "0.1.3",
"standard": "^6.0.8",
"testem": "^0.8.2",
"watchify": "^2.5.0"
},
"engines": {
"node": ">=4"
},
"keywords": [
"markdown"
],
"license": "MIT",
"main": "index.js",
"repository": {
"type"... | <|file_sep|>original/package.json
"jsdom": "^9.0.0"
},
"devDependencies": {
"qunit": "^0.7.6",
"saucie": "0.1.3",
"standard": "^6.0.8",
"testem": "^0.8.2",
"watchify": "^2.5.0"
},
"engines": {
"node": "^4"
},
"keywords": [
"markdown"
],
"license": "MIT",
"main": "index.... | 026bf560d05bae16a1ca9c13e05eccb591825498 | package.json | package.json | JSON |
<|file_sep|>original/.travis.yml
language: java
before_script:
- echo "MAVEN_OPTS='-server -Xms512m -Xmx1024m -Xss16m'" > ~/.mavenrc
script: ./travis-build.sh
jdk:
- oraclejdk8
<|file_sep|>current/.travis.yml
language: java
before_script:
- echo "MAVEN_OPTS='-server -Xms512m -Xmx1024m -Xss16m'" > ~/.mavenrc
scri... | language: java
before_script:
- echo "MAVEN_OPTS='-server -Xms512m -Xmx1024m -Xss16m'" > ~/.mavenrc
script: ./travis-build.sh
cache:
directories:
- $HOME/.m2
jdk:
- oraclejdk8 | <|file_sep|>original/.travis.yml
language: java
before_script:
- echo "MAVEN_OPTS='-server -Xms512m -Xmx1024m -Xss16m'" > ~/.mavenrc
script: ./travis-build.sh
jdk:
- oraclejdk8
<|file_sep|>current/.travis.yml
language: java
before_script:
- echo "MAVEN_OPTS='-server -Xms512m -Xmx1024m -Xss16m'" > ~/.mavenrc
scri... | e7831694407e025ac570750541cc89dd6ec48dbf | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/docs/http_proxy.md
## Using Minikube with an HTTP Proxy
Minikube creates a Virtual Machine that includes Kubernetes and a Docker daemon.
When Kubernetes attempts to schedule containers using Docker, the Docker daemon may require external network access to pull containers.
If you are behind an HTT... | ## Using Minikube with an HTTP Proxy
Minikube creates a Virtual Machine that includes Kubernetes and a Docker daemon.
When Kubernetes attempts to schedule containers using Docker, the Docker daemon may require external network access to pull containers.
If you are behind an HTTP proxy, you may need to supply Docker w... | <|file_sep|>original/docs/http_proxy.md
## Using Minikube with an HTTP Proxy
Minikube creates a Virtual Machine that includes Kubernetes and a Docker daemon.
When Kubernetes attempts to schedule containers using Docker, the Docker daemon may require external network access to pull containers.
If you are behind an HTT... | 25f7224b15af09ac6db6e851e8c70daac81b82c3 | docs/http_proxy.md | docs/http_proxy.md | Markdown |
<|file_sep|>original/xbob/learn/linear/__init__.py
from ._library import *
from ._library import __version__, __api_version__
def get_include():
"""Returns the directory containing the C/C++ API include directives"""
return __import__('pkg_resources').resource_filename(__name__, 'include')
# gets sphinx autodoc ... | from ._library import *
from ._library import __version__, __api_version__
def get_include():
"""Returns the directory containing the C/C++ API include directives"""
return __import__('pkg_resources').resource_filename(__name__, 'include')
# gets sphinx autodoc done right - don't remove it
__all__ = [_ for _ in ... | <|file_sep|>original/xbob/learn/linear/__init__.py
from ._library import *
from ._library import __version__, __api_version__
def get_include():
"""Returns the directory containing the C/C++ API include directives"""
return __import__('pkg_resources').resource_filename(__name__, 'include')
# gets sphinx autodoc ... | ee61a63acce97ef878e761678a0069f8fa459ea8 | xbob/learn/linear/__init__.py | xbob/learn/linear/__init__.py | Python |
<|file_sep|>original/lib/paperclip/geometry_detector_factory.rb
def make
geometry = GeometryParser.new(geometry_string.strip).make
geometry || raise(Errors::NotIdentifiedByImageMagickError.new)
end
private
def geometry_string
begin
silence_stream(STDERR) do
Papercli... | def make
geometry = GeometryParser.new(geometry_string.strip).make
geometry || raise(Errors::NotIdentifiedByImageMagickError.new)
end
private
def geometry_string
begin
Paperclip.run(
"identify",
"-format '%wx%h,%[exif:orientation]' :file", {
:f... | <|file_sep|>original/lib/paperclip/geometry_detector_factory.rb
def make
geometry = GeometryParser.new(geometry_string.strip).make
geometry || raise(Errors::NotIdentifiedByImageMagickError.new)
end
private
def geometry_string
begin
silence_stream(STDERR) do
Papercli... | 73d40d165e739193a268b54baba170ed457799ac | lib/paperclip/geometry_detector_factory.rb | lib/paperclip/geometry_detector_factory.rb | Ruby |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk7
script: "./gradlew :plugin:jpi
after_success: if [ $TRAVIS_SECURE_ENV_VARS -eq true ]; then ./gradlew :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER
-x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenL... | language: java
jdk:
- oraclejdk7
script: ./gradlew :plugin:jpi
after_success: if [ $TRAVIS_SECURE_ENV_VARS -eq true ]; then ./gradlew :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER
-x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenLocal"; fi
env:
global:
secur... | <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk7
script: "./gradlew :plugin:jpi
after_success: if [ $TRAVIS_SECURE_ENV_VARS -eq true ]; then ./gradlew :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER
-x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenL... | f868f3607af014c0613013fffaaf9384f5b3ce6e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
Radium is a toolchain for handling modifiers, states, computed styles and
responsive styles for react component styling. It allows you to handle complex
component styling in a declarative, easy to write way. Component styling in
React provides a number of benefits over traditional CSS:
-... | - Highly expressive
Inspired by <a href="https://speakerdeck.com/vjeux/react-css-in-js">React: CSS
in JS</a> by <a href="https://twitter.com/Vjeux">Christopher Chedeau</a>.
## What does it look like?
Write a style object and you're done:
```
Code example
```
## Examples
To see local examples in action, do this:
... | <|file_sep|>original/README.md
Radium is a toolchain for handling modifiers, states, computed styles and
responsive styles for react component styling. It allows you to handle complex
component styling in a declarative, easy to write way. Component styling in
React provides a number of benefits over traditional CSS:
-... | d32ff2d7599eb1899ac8c74e590f7f8c05163e24 | README.md | README.md | Markdown |
<|file_sep|>original/skyfield/documentation/_templates/layout.html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title|striptags|e }}</title>
<link rel="stylesheet" type... | <!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title|striptags|e }} — {% if title != 'Skyfield' %}Skyfield {% endif %}documentation</title>
<link rel="stylesheet" type="t... | <|file_sep|>original/skyfield/documentation/_templates/layout.html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title|striptags|e }}</title>
<link rel="stylesheet" type... | 9be88261e4e1375c99f891386848521e7b2856c4 | skyfield/documentation/_templates/layout.html | skyfield/documentation/_templates/layout.html | HTML |
<|file_sep|>original/.github/workflows/deploy.yml
name: Deploy
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Inst... | name: Deploy
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run:... | <|file_sep|>original/.github/workflows/deploy.yml
name: Deploy
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Inst... | 7dfcb4a4037970e32ca7597c84dfd5e4845102d7 | .github/workflows/deploy.yml | .github/workflows/deploy.yml | YAML |
<|file_sep|>gulp/tasks/clean.js.diff
original:
updated:
'dist/cnc/app',
'dist/cnc/web',
<|file_sep|>original/gulp/tasks/clean.js
import gulp from 'gulp';
import del from 'del';
const list = [
'src/web/**/*.css',
'src/web/**/*.css.map',
'src/web/**/*.js.map',
'dist/**/*',
// exclusion
'... | import gulp from 'gulp';
import del from 'del';
const list = [
'dist/cnc/app',
'dist/cnc/web',
'src/web/**/*.css',
'src/web/**/*.css.map',
'src/web/**/*.js.map',
// exclusion
'!src/web/vendor/**'
];
export default (options) => {
gulp.task('clean', (callback) => {
del(list).then... | <|file_sep|>gulp/tasks/clean.js.diff
original:
updated:
'dist/cnc/app',
'dist/cnc/web',
<|file_sep|>original/gulp/tasks/clean.js
import gulp from 'gulp';
import del from 'del';
const list = [
'src/web/**/*.css',
'src/web/**/*.css.map',
'src/web/**/*.js.map',
'dist/**/*',
// exclusion
'... | 29ec5b25a9a10568e98eee4bd6964e58090ac470 | gulp/tasks/clean.js | gulp/tasks/clean.js | JavaScript |
<|file_sep|>packages/do/dominion.yaml.diff
original:
hash: 520869f32852ac947161e709ce79d4ed74321dddf16305f90514cfe3b4d61db1
updated:
hash: 7161099301957a5c1a5770fd6f833495a9a1e8895f708510168539defd3d198f
<|file_sep|>packages/do/dominion.yaml.diff
original:
base: ==4.6.*
hspec: ==1.7.2.1
lens: ==3.9.0.2
random-e... | maintainer: bluemangroupie@gmail.com
synopsis: A simulator for the board game Dominion.
changelog: ''
basic-deps:
base: <5
containers: -any
lens: -any
mtl: -any
random: -any
all-versions:
- '0.1.0.0'
- '0.1.0.1'
- '0.1.0.2'
- '0.1.0.3'
- '0.1.0.4'
- '0.1.1.0'
author: Aditya Bhargava
latest: '0.1.1.0'
descript... | <|file_sep|>packages/do/dominion.yaml.diff
original:
hash: 520869f32852ac947161e709ce79d4ed74321dddf16305f90514cfe3b4d61db1
updated:
hash: 7161099301957a5c1a5770fd6f833495a9a1e8895f708510168539defd3d198f
<|file_sep|>packages/do/dominion.yaml.diff
original:
base: ==4.6.*
hspec: ==1.7.2.1
lens: ==3.9.0.2
random-e... | 5a9d622467815953973d3ed072131b4370661faf | packages/do/dominion.yaml | packages/do/dominion.yaml | YAML |
<|file_sep|>original/net.resheim.eclipse.equationwriter-feature/feature.xml
</description>
<copyright>
%copyright
</copyright>
<license>
%license
</license>
<plugin
id="net.resheim.eclipse.equationwriter.core"
download-size="0"
install-size="0"
versio... | </description>
<copyright>
%copyright
</copyright>
<license>
%license
</license>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.ui.browser"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.jface.text"/>
<im... | <|file_sep|>original/net.resheim.eclipse.equationwriter-feature/feature.xml
</description>
<copyright>
%copyright
</copyright>
<license>
%license
</license>
<plugin
id="net.resheim.eclipse.equationwriter.core"
download-size="0"
install-size="0"
versio... | abef1d285eb426d4811821101d3090634d09b6c7 | net.resheim.eclipse.equationwriter-feature/feature.xml | net.resheim.eclipse.equationwriter-feature/feature.xml | XML |
<|file_sep|>test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs.diff
original:
string contents = Encoding.UTF8.GetString(file.GetData());
updated:
string contents = Encoding.UTF8.GetString(file.GetData()).Replace("\r", "");
<|file_sep|>original/test/AsmResolver.DotNet.Tests/Bundles/BundleFil... | ""runtimeOptions"": {
""tfm"": ""net6.0"",
""framework"": {
""name"": ""Microsoft.NETCore.App"",
""version"": ""6.0.0""
},
""configProperties"": {
""System.Reflection.Metadata.MetadataUpdater.IsSupported"": false
}
}
}".Replace("\r", ""), contents);
}
[Fact]
... | <|file_sep|>test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs.diff
original:
string contents = Encoding.UTF8.GetString(file.GetData());
updated:
string contents = Encoding.UTF8.GetString(file.GetData()).Replace("\r", "");
<|file_sep|>original/test/AsmResolver.DotNet.Tests/Bundles/BundleFil... | b43b84afce38dd4a9aeefa847e6a2096f93b59b0 | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | C# |
<|file_sep|>original/go/src/socialapi/workers/sitemap/sitemapinitializer/main.go
Name = "SitemapInitializer"
)
func main() {
r := runner.New(Name)
if err := r.Init(); err != nil {
fmt.Println(err)
return
}
defer r.Close()
redisConn := helper.MustInitRedisConn(r.Conf)
defer redisConn.Close()
controller :=... | )
func main() {
r := runner.New(Name)
if err := r.Init(); err != nil {
fmt.Println(err)
return
}
defer r.Close()
conf := *r.Conf
conf.Redis.DB = r.Conf.Sitemap.RedisDB
redisConn := helper.MustInitRedisConn(r.Conf)
defer redisConn.Close()
controller := feeder.New(r.Log)
if err := controller.Start(); e... | <|file_sep|>original/go/src/socialapi/workers/sitemap/sitemapinitializer/main.go
Name = "SitemapInitializer"
)
func main() {
r := runner.New(Name)
if err := r.Init(); err != nil {
fmt.Println(err)
return
}
defer r.Close()
redisConn := helper.MustInitRedisConn(r.Conf)
defer redisConn.Close()
controller :=... | dc03a6bdf11bfe36757e96e7fa2b765d30f8a308 | go/src/socialapi/workers/sitemap/sitemapinitializer/main.go | go/src/socialapi/workers/sitemap/sitemapinitializer/main.go | Go |
<|file_sep|>original/src/views/layout/footer.blade.php
<?php
use Illuminate\Support\Facades\Request;
use Orchestra\Support\Facades\Asset; ?>
<footer>
<div class="container">
<hr>
<p>© 2012 Orchestra Platform</p>
</div>
</footer>
<?php
$asset = Asset::container('orchestra/foundation::footer');
$asset->sc... | <?php
use Illuminate\Support\Facades\Request;
use Orchestra\Support\Facades\Asset; ?>
<footer>
<div class="container">
<hr>
<p>
Powered by <a href="http://orchestraplatform.com" target="_blank">Orchestra Platform</a>.
</p>
</div>
</footer>
<?php
$asset = Asset::container('orchestra/foundation::footer');
... | <|file_sep|>original/src/views/layout/footer.blade.php
<?php
use Illuminate\Support\Facades\Request;
use Orchestra\Support\Facades\Asset; ?>
<footer>
<div class="container">
<hr>
<p>© 2012 Orchestra Platform</p>
</div>
</footer>
<?php
$asset = Asset::container('orchestra/foundation::footer');
$asset->sc... | d497b63edf55f6bb2c114271335107d71f733b50 | src/views/layout/footer.blade.php | src/views/layout/footer.blade.php | PHP |
<|file_sep|>original/camoco/Exceptions.py
def __init__(self,expr,message='',*args):
self.expr = expr
self.message = 'Gene names must be unique:' + message.format(args)
class CamocoAccessionNameError(CamocoError):
'''
Accession names must be Unique.
'''
def __init__(self,expr,mes... | '''
Accession names must be Unique.
'''
def __init__(self,expr,message='',*args):
self.expr = expr
self.message = (
'Accession names must be unique:' + message.format(args)
)
class CamocoZeroWindowError(CamocoError):
def __init__(self,expr,message,*args):
... | <|file_sep|>original/camoco/Exceptions.py
def __init__(self,expr,message='',*args):
self.expr = expr
self.message = 'Gene names must be unique:' + message.format(args)
class CamocoAccessionNameError(CamocoError):
'''
Accession names must be Unique.
'''
def __init__(self,expr,mes... | f5e8bfaf5c4f7a2131fbe0ffd0f8d14a316b907e | camoco/Exceptions.py | camoco/Exceptions.py | Python |
<|file_sep|>original/algorithms/DynamicProgramming/TheMaximumSubarray.scala
<|file_sep|>current/algorithms/DynamicProgramming/TheMaximumSubarray.scala
<|file_sep|>updated/algorithms/DynamicProgramming/TheMaximumSubarray.scala | object Solution {
def maxSumOfContiguousSubarray(nums: Array[Int]): Int = {
var sum = 0
var result = sum
for (n <- nums){
sum += n
result = result max sum
if (sum <= 0) sum = 0
}
result
}
def main(args: Array[String]) {
val t = readLine.toInt
for (_ <- 1 to t) {
... | <|file_sep|>original/algorithms/DynamicProgramming/TheMaximumSubarray.scala
<|file_sep|>current/algorithms/DynamicProgramming/TheMaximumSubarray.scala
<|file_sep|>updated/algorithms/DynamicProgramming/TheMaximumSubarray.scala
object Solution {
def maxSumOfContiguousSubarray(nums: Array[Int]): Int = {
var sum =... | a08c6b1c5da5a477ff49f4bd65bbe7681c21943c | algorithms/DynamicProgramming/TheMaximumSubarray.scala | algorithms/DynamicProgramming/TheMaximumSubarray.scala | Scala |
<|file_sep|>original/functions/dc_grep.sh
<|file_sep|>current/functions/dc_grep.sh
<|file_sep|>updated/functions/dc_grep.sh | dc_grep(){
if [[ ! "$1" == "" ]]; then
if [[ ! "$2" == "" ]]; then
watch 'docker-compose logs '"$1"' | grep '"$2"' | sed "s/^[^|]*|[^\ ]*\ .*\]/\n==>/" | tail'
else
watch 'docker-compose logs | grep '"$1"' | sed "s/^[^|]*|[^\ ]*\ .*\]/\n==>/" | tail'
fi
else
... | <|file_sep|>original/functions/dc_grep.sh
<|file_sep|>current/functions/dc_grep.sh
<|file_sep|>updated/functions/dc_grep.sh
dc_grep(){
if [[ ! "$1" == "" ]]; then
if [[ ! "$2" == "" ]]; then
watch 'docker-compose logs '"$1"' | grep '"$2"' | sed "s/^[^|]*|[^\ ]*\ .*\]/\n==>/" | tail'
el... | 4c571c23cb565ab31ec811353bb53ccfd17ea660 | functions/dc_grep.sh | functions/dc_grep.sh | Shell |
<|file_sep|>original/app/views/ranking/_ranking.html.erb
<|file_sep|>current/app/views/ranking/_ranking.html.erb
<|file_sep|>updated/app/views/ranking/_ranking.html.erb | <table class="table table-hover">
<thead>
<tr>
<th style="width:100px">Posição</th>
<th>Usuário</th>
<th>Quantidade</th>
</tr>
</thead>
<tbody>
<% @i = 0 %>
<% top_users.each do |user| %>
<tr>
<td> <center><span class="ranking-potision"><%= "#{@i += 1} º"%></span></center></td>
<td>
<div ... | <|file_sep|>original/app/views/ranking/_ranking.html.erb
<|file_sep|>current/app/views/ranking/_ranking.html.erb
<|file_sep|>updated/app/views/ranking/_ranking.html.erb
<table class="table table-hover">
<thead>
<tr>
<th style="width:100px">Posição</th>
<th>Usuário</th>
<th>Quantidade</th>
</tr>
</thead... | 428ba19f5a079f245e2d2c9e373ddb43747ff60f | app/views/ranking/_ranking.html.erb | app/views/ranking/_ranking.html.erb | HTML+ERB |
<|file_sep|>original/src/CMakeLists.txt
#
# Building libreset
#
include_directories(${PROJECT_SOURCE_DIR}/include)
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
libreset/avl.... | #
# Building libreset
#
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src/libreset)
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
... | <|file_sep|>original/src/CMakeLists.txt
#
# Building libreset
#
include_directories(${PROJECT_SOURCE_DIR}/include)
#
# We use the var SOURCE_FILES to hold all source files to be linked together
# into libreset. Additionally, checks checky may be performed on that source
# files.
#
set(SOURCE_FILES
libreset/avl.... | c05f95eec47b690712a68146336068e0db8eb1d0 | src/CMakeLists.txt | src/CMakeLists.txt | Text |
<|file_sep|>original/faraday-request-timer.gemspec
Gem::Specification.new do |spec|
spec.name = "faraday-request-timer"
spec.version = FaradayRequestTimer::VERSION
spec.authors = ["Brandon Weiss"]
spec.email = ["brandon@anti-pattern.com"]
spec.summary = %q{Faraday request t... | Gem::Specification.new do |spec|
spec.name = "faraday-request-timer"
spec.version = FaradayRequestTimer::VERSION
spec.authors = ["Brandon Weiss"]
spec.email = ["brandon@anti-pattern.com"]
spec.summary = %q{Faraday request timing}
spec.description = %q{Includes the reques... | <|file_sep|>original/faraday-request-timer.gemspec
Gem::Specification.new do |spec|
spec.name = "faraday-request-timer"
spec.version = FaradayRequestTimer::VERSION
spec.authors = ["Brandon Weiss"]
spec.email = ["brandon@anti-pattern.com"]
spec.summary = %q{Faraday request t... | 96d04a8f85f886378017b6b3feb43e96d7297bfe | faraday-request-timer.gemspec | faraday-request-timer.gemspec | Ruby |
<|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "https://github.com/Yimgo/sndcld.git"
},
"dependencies": {
"express": "~4",
"express-handlebars": "~2.0",
"express-session": "~1.11",
"follow-redirects": "0.0.3",
"passport": "~0.2",
"passport-soundcloud": "~0.... | "type": "git",
"url": "https://github.com/Yimgo/sndcld.git"
},
"dependencies": {
"express": "~4",
"express-handlebars": "~2.0",
"express-session": "~1.11",
"follow-redirects": "0.0.3",
"passport": "~0.2",
"passport-soundcloud": "~0.1",
"q": "~1.2",
"querystring": "~0.2.0",
... | <|file_sep|>original/package.json
"repository": {
"type": "git",
"url": "https://github.com/Yimgo/sndcld.git"
},
"dependencies": {
"express": "~4",
"express-handlebars": "~2.0",
"express-session": "~1.11",
"follow-redirects": "0.0.3",
"passport": "~0.2",
"passport-soundcloud": "~0.... | 46441a772d0bb6d4c4c3981ebe52451947c29404 | package.json | package.json | JSON |
<|file_sep|>imports/startup/server/start-cron.js.diff
original:
updated:
console.log('ENV=', process.env.REPORTS_HOUR);
console.log(typeof process.env.REPORTS_HOUR);
<|file_sep|>imports/startup/server/start-cron.js.diff
original:
.on(11)
updated:
.on(Number(process.env.REPORTS_HOUR))
<|file_sep|>or... | },
job() {
sendReports(undefined, EndOfMonthEnum.LAST_DAY);
},
});
SyncedCron.add({
name: 'Send reports for users with end of month on day 20',
schedule(parser) {
return parser.recur()
.on(21)
.dayOfMonth()
.on(Number(process.env.REPORTS_HOUR))
.hour();
},
job() {
send... | <|file_sep|>imports/startup/server/start-cron.js.diff
original:
updated:
console.log('ENV=', process.env.REPORTS_HOUR);
console.log(typeof process.env.REPORTS_HOUR);
<|file_sep|>imports/startup/server/start-cron.js.diff
original:
.on(11)
updated:
.on(Number(process.env.REPORTS_HOUR))
<|file_sep|>or... | 314c0aca61f4aa426702e1f6c36baf5b58c536d2 | imports/startup/server/start-cron.js | imports/startup/server/start-cron.js | JavaScript |
<|file_sep|>original/integrationtests/mayavi/test_mlab_envisage.py
from mayavi import mlab
from pyface.api import GUI
def close():
"""Close the scene."""
f = mlab.gcf()
e = mlab.get_engine()
e.window.workbench.prompt_on_exit = False
e.window.close()
def test_mlab_envisage():
"""Test if mlab ru... | from mayavi import mlab
from pyface.api import GUI
def close():
"""Close the scene."""
f = mlab.gcf()
e = mlab.get_engine()
e.window.workbench.prompt_on_exit = False
e.window.close()
# Hack: on Linux the splash screen does not go away so we force it.
GUI.invoke_after(500, e.window.workbench... | <|file_sep|>original/integrationtests/mayavi/test_mlab_envisage.py
from mayavi import mlab
from pyface.api import GUI
def close():
"""Close the scene."""
f = mlab.gcf()
e = mlab.get_engine()
e.window.workbench.prompt_on_exit = False
e.window.close()
def test_mlab_envisage():
"""Test if mlab ru... | 6ee60074bfcf9fcd0e1b1f36b4c0324f41532d6d | integrationtests/mayavi/test_mlab_envisage.py | integrationtests/mayavi/test_mlab_envisage.py | Python |
<|file_sep|>original/contact/index.html
<a href="{{ contact.url }}">
{{ contact.alternative }}
<img src="{{ site.baseurl }}{{ contact.icon }}" alt="{{ contact.text }}" />
</a>
</li>
{% endfor %}
</ul>
<address>
P... | <ul class="vertical-contact-list">
{% assign sorted_contact = site.data.contact | sort: 'contact_order' %}
{% for contact in sorted_contact %}
<li>
<a href="{{ contact.url }}">
{{ contact.alternative }}
<img src="{{ site.baseurl }}{... | <|file_sep|>original/contact/index.html
<a href="{{ contact.url }}">
{{ contact.alternative }}
<img src="{{ site.baseurl }}{{ contact.icon }}" alt="{{ contact.text }}" />
</a>
</li>
{% endfor %}
</ul>
<address>
P... | 690fc50e71ad44da11e809e809a3fa4af7c337a7 | contact/index.html | contact/index.html | HTML |
<|file_sep|>app/assets/stylesheets/application.css.scss.diff
original:
body { padding-top: 70px; }
updated:
body { padding-top: 7rem; }
<|file_sep|>app/assets/stylesheets/application.css.scss.diff
original:
body { margin-bottom: 40px; }
updated:
body { margin-bottom: 4rem; }
<|file_sep|>app/assets/stylesheets/applicati... | }
img.disabled {
//see http://blog.nmsdvid.com/css-filter-property/
//see http://stackoverflow.com/a/11842712
filter: grayscale(100%) contrast(30%);
opacity: 0.3;
}
.drink-panel img {
height: 10rem;
width: 10rem;
}
.panel-body {
flex: 1 1 0;
overflow: hidden;
}
#user-page-avatar-holder img {
wi... | <|file_sep|>app/assets/stylesheets/application.css.scss.diff
original:
body { padding-top: 70px; }
updated:
body { padding-top: 7rem; }
<|file_sep|>app/assets/stylesheets/application.css.scss.diff
original:
body { margin-bottom: 40px; }
updated:
body { margin-bottom: 4rem; }
<|file_sep|>app/assets/stylesheets/applicati... | 4195bd2542e16d5f74ba8b1b3d2811fcd31cf904 | app/assets/stylesheets/application.css.scss | app/assets/stylesheets/application.css.scss | SCSS |
<|file_sep|>original/source/custom_rules.xml
<|file_sep|>current/source/custom_rules.xml
<|file_sep|>updated/source/custom_rules.xml | <?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<target name="-pre-build">
<echo message="Generating res/raw/oauth.properties, key is ${oauth.api_key}, callback is ${oauth.callback}" />
<propertyfile file="res/raw/oauth.properties" comment="OAuth properties">
<entry ... | <|file_sep|>original/source/custom_rules.xml
<|file_sep|>current/source/custom_rules.xml
<|file_sep|>updated/source/custom_rules.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<target name="-pre-build">
<echo message="Generating res/raw/oauth.properties, key is ${oauth.api_key}, ... | 8da42bd6a8160e18c26331dda7ad87159ca78e14 | source/custom_rules.xml | source/custom_rules.xml | XML |
<|file_sep|>metadata/org.billthefarmer.editor.txt.diff
original:
updated:
Build:1.01,101
commit=v1.01
gradle=yes
<|file_sep|>original/metadata/org.billthefarmer.editor.txt
Auto Name:Editor
Summary:Simple generic text editor
Description:
This is a very simple generic text editor which may be used standalone or... | show or edit any sort of text file from another app. If you select a text file
in a file manager or similar app you will be offered the option of using this
editor along with whatever other apps you have installed that can show or edit a
text file.
.
Repo Type:git
Repo:https://github.com/billthefarmer/editor
Build:1.... | <|file_sep|>metadata/org.billthefarmer.editor.txt.diff
original:
updated:
Build:1.01,101
commit=v1.01
gradle=yes
<|file_sep|>original/metadata/org.billthefarmer.editor.txt
Auto Name:Editor
Summary:Simple generic text editor
Description:
This is a very simple generic text editor which may be used standalone or... | b86a6305137200d369cb78db419c39905960b677 | metadata/org.billthefarmer.editor.txt | metadata/org.billthefarmer.editor.txt | Text |
<|file_sep|>original/src/Configuration/MenuConfiguration.php
<|file_sep|>current/src/Configuration/MenuConfiguration.php
<|file_sep|>updated/src/Configuration/MenuConfiguration.php | <?php
namespace LAG\AdminBundle\Configuration;
use JK\Configuration\Configuration;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
class MenuConfiguration extends Configuration
{
/**
* @var string
*/
private $menuName;
public function __con... | <|file_sep|>original/src/Configuration/MenuConfiguration.php
<|file_sep|>current/src/Configuration/MenuConfiguration.php
<|file_sep|>updated/src/Configuration/MenuConfiguration.php
<?php
namespace LAG\AdminBundle\Configuration;
use JK\Configuration\Configuration;
use Symfony\Component\OptionsResolver\Options;
use S... | 9d349828587aa5647d6797f7bb7fe0dd3565640d | src/Configuration/MenuConfiguration.php | src/Configuration/MenuConfiguration.php | PHP |
<|file_sep|>original/package.json
"email": "pdubroy@gmail.com",
"url": "http://dubroy.com"
},
"license": "MIT",
"main": "main.js",
"dependencies": {},
"devDependencies": {
"browserify": "^5.9.1",
"jshint": "^2.5.2",
"tape": "^2.13.4",
"watchify": "^1.0.1"
},
"scripts": {
"init-... | "email": "pdubroy@gmail.com",
"url": "http://dubroy.com"
},
"license": "MIT",
"main": "main.js",
"dependencies": {},
"devDependencies": {
"browserify": "^5.9.1",
"jshint": "^2.5.2",
"tape": "^2.13.4",
"watchify": "^1.0.1"
},
"scripts": {
"init-repo": "mkdir bin dist lib third_p... | <|file_sep|>original/package.json
"email": "pdubroy@gmail.com",
"url": "http://dubroy.com"
},
"license": "MIT",
"main": "main.js",
"dependencies": {},
"devDependencies": {
"browserify": "^5.9.1",
"jshint": "^2.5.2",
"tape": "^2.13.4",
"watchify": "^1.0.1"
},
"scripts": {
"init-... | 59e7848be183fba8fc9b890a73338438854b32e8 | package.json | package.json | JSON |
<|file_sep|>original/js/misc.js
}
}
return new_all;
}
var count_object_keys = function(obj)
{
var result = 0;
for (var prop in obj)
{
if (obj.hasOwnProperty(prop))
result++
}
return result
}
var warn = function()
{
console.log.apply(console, arguments)
}
<|file_sep|>current/js/misc.js
... | var count_object_keys = function(obj)
{
var result = 0;
for (var prop in obj)
{
if (obj.hasOwnProperty(prop))
result++
}
return result
}
var warn = function()
{
console.log.apply(console, arguments)
}
var die = function(e)
{
throw new Error(e)
} | <|file_sep|>original/js/misc.js
}
}
return new_all;
}
var count_object_keys = function(obj)
{
var result = 0;
for (var prop in obj)
{
if (obj.hasOwnProperty(prop))
result++
}
return result
}
var warn = function()
{
console.log.apply(console, arguments)
}
<|file_sep|>current/js/misc.js
... | 3b79034d68b983a3d2250c9c2b25eefa93c1a335 | js/misc.js | js/misc.js | JavaScript |
<|file_sep|>src/browser/settings/settings-dialog/settings-dialog.ts.diff
original:
import { Injectable } from '@angular/core';
updated:
import { Injectable, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
<|file_sep|>src/browser/settings/settings-dialog/settings-dialog.ts.diff
original:
export cl... | SettingsDialogData,
void>(
SettingsDialogComponent,
{
width: '500px',
maxHeight: '75vh',
disableBackdropClickClose: true,
data,
},
);
// If subscription exists, unsubscribe first.... | <|file_sep|>src/browser/settings/settings-dialog/settings-dialog.ts.diff
original:
import { Injectable } from '@angular/core';
updated:
import { Injectable, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
<|file_sep|>src/browser/settings/settings-dialog/settings-dialog.ts.diff
original:
export cl... | 073b7074a5da2b70b4afb83e2bf0f7df93e3bed6 | src/browser/settings/settings-dialog/settings-dialog.ts | src/browser/settings/settings-dialog/settings-dialog.ts | TypeScript |
<|file_sep|>bin/ci-publish.sh.diff
original:
set -euo pipefail
updated:
set -eu
<|file_sep|>original/bin/ci-publish.sh
#!/usr/bin/env bash
set -euo pipefail
if [[ "$TRAVIS_SECURE_ENV_VARS" == true && "$CI_PUBLISH" == true ]]; then
echo "Publishing..."
git log | head -n 20
echo "$PGP_SECRET" | base64 --decode | g... | #!/usr/bin/env bash
set -eu
if [[ "$TRAVIS_SECURE_ENV_VARS" == true && "$CI_PUBLISH" == true ]]; then
echo "Publishing..."
git log | head -n 20
echo "$PGP_SECRET" | base64 --decode | gpg --import
if [[ -n "$TRAVIS_TAG" ]]; then
echo "Tag push, publishing stable release to Sonatype."
sbt ci-release sona... | <|file_sep|>bin/ci-publish.sh.diff
original:
set -euo pipefail
updated:
set -eu
<|file_sep|>original/bin/ci-publish.sh
#!/usr/bin/env bash
set -euo pipefail
if [[ "$TRAVIS_SECURE_ENV_VARS" == true && "$CI_PUBLISH" == true ]]; then
echo "Publishing..."
git log | head -n 20
echo "$PGP_SECRET" | base64 --decode | g... | ecb37f35612464a5c73469ed961f21c4b97bb483 | bin/ci-publish.sh | bin/ci-publish.sh | Shell |
<|file_sep|>original/src/lib/finalMetrics.ts
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Un... | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | <|file_sep|>original/src/lib/finalMetrics.ts
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Un... | c8c72182da705f9a0b813ef18f7735eef050bbf4 | src/lib/finalMetrics.ts | src/lib/finalMetrics.ts | TypeScript |
<|file_sep|>trimwhitespace.py.diff
original:
handle = open(filepath, 'r')
updated:
handle = open(filepath, 'rb')
<|file_sep|>trimwhitespace.py.diff
original:
updated:
print('FAIL: %s' % filepath)
<|file_sep|>trimwhitespace.py.diff
original:
updated:
else:
print('OK: %s' % filepath)
<|file_sep|>original/... | stripped = ''
flag = False
for line in handle.readlines():
stripped_line = line.rstrip() + '\n'
if line != stripped_line:
flag = True
stripped += stripped_line
handle.close()
if flag:
print('FAIL: %s' % filepath)
overwritefile(filepath, stripped)
else:
print('OK: %s' % filepath... | <|file_sep|>trimwhitespace.py.diff
original:
handle = open(filepath, 'r')
updated:
handle = open(filepath, 'rb')
<|file_sep|>trimwhitespace.py.diff
original:
updated:
print('FAIL: %s' % filepath)
<|file_sep|>trimwhitespace.py.diff
original:
updated:
else:
print('OK: %s' % filepath)
<|file_sep|>original/... | 3640a5b1976ea6c5b21617cda11324d73071fb9f | trimwhitespace.py | trimwhitespace.py | Python |
<|file_sep|>original/lib/options.js
'use strict';
const { publicFolder } = require('unleash-frontend');
const isDev = () => process.env.NODE_ENV === 'development';
const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000;
const DEFAULT_OPTIONS = {
databaseUrl: process.env.DATABASE_URL,
port: process.env.HTTP_PORT || pro... | 'use strict';
const { publicFolder } = require('unleash-frontend');
const isDev = () => process.env.NODE_ENV === 'development';
const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000;
const DEFAULT_OPTIONS = {
databaseUrl: process.env.DATABASE_URL,
port: process.env.HTTP_PORT || process.env.PORT || 4242,
host: pro... | <|file_sep|>original/lib/options.js
'use strict';
const { publicFolder } = require('unleash-frontend');
const isDev = () => process.env.NODE_ENV === 'development';
const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000;
const DEFAULT_OPTIONS = {
databaseUrl: process.env.DATABASE_URL,
port: process.env.HTTP_PORT || pro... | e0f2866be60d3cd23ec8561fa1c1ba8980a6a410 | lib/options.js | lib/options.js | JavaScript |
<|file_sep|>.ycm_extra_conf.py.diff
original:
updated:
import subprocess
<|file_sep|>original/.ycm_extra_conf.py
import os
def FlagsForFile(filename, **kwargs):
flags = ['-std=c++14', '-I/usr/local/include']
proj_root = os.path.dirname(os.path.abspath(__file__))
libcanon_include = ''.join(['-I', proj_ro... | import os
import subprocess
def FlagsForFile(filename, **kwargs):
flags = ['-std=c++14', '-I/usr/local/include']
proj_root = os.path.dirname(os.path.abspath(__file__))
libcanon_include = ''.join(['-I', proj_root, '/deps/libcanon/include'])
python_include = subprocess.run(
["pkg-config", '--cf... | <|file_sep|>.ycm_extra_conf.py.diff
original:
updated:
import subprocess
<|file_sep|>original/.ycm_extra_conf.py
import os
def FlagsForFile(filename, **kwargs):
flags = ['-std=c++14', '-I/usr/local/include']
proj_root = os.path.dirname(os.path.abspath(__file__))
libcanon_include = ''.join(['-I', proj_ro... | a85d148eb00f83052a97d66da8ff9dd79b40f172 | .ycm_extra_conf.py | .ycm_extra_conf.py | Python |
<|file_sep|>original/.travis.yml
env:
global: |
export PATH="/usr/local/opt/ccache/libexec:$PATH"
CODECOV_TOKEN=4bd3d3ee-ecc8-4130-90d7-276626099dc4
PATH=${PATH}:${HOME}/kcov/bin
before_install: |
wget https://github.com/SimonKagstrom/kcov/archive/master.zip
/bin/bash -c "$(curl -fsSL https://... |
env:
global: |
export PATH="/usr/local/opt/ccache/libexec:$PATH"
CODECOV_TOKEN=4bd3d3ee-ecc8-4130-90d7-276626099dc4
PATH=${PATH}:${HOME}/kcov/bin
before_install: |
wget https://github.com/SimonKagstrom/kcov/archive/master.zip
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebre... | <|file_sep|>original/.travis.yml
env:
global: |
export PATH="/usr/local/opt/ccache/libexec:$PATH"
CODECOV_TOKEN=4bd3d3ee-ecc8-4130-90d7-276626099dc4
PATH=${PATH}:${HOME}/kcov/bin
before_install: |
wget https://github.com/SimonKagstrom/kcov/archive/master.zip
/bin/bash -c "$(curl -fsSL https://... | 54cc74e4084c3a5b9d2e64ae0746acaaaed7e46f | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/releaf-core/app/assets/config/releaf_core_manifest.js
//= link_tree ../images
//= link releaf/application.css
//= link releaf/application.js
<|file_sep|>current/releaf-core/app/assets/config/releaf_core_manifest.js
//= link_tree ../images
//= link releaf/application.css
//= link releaf/application.... | //= link_tree ../images
//= link_tree ../javascripts/ckeditor
//= link releaf/application.css
//= link releaf/application.js | <|file_sep|>original/releaf-core/app/assets/config/releaf_core_manifest.js
//= link_tree ../images
//= link releaf/application.css
//= link releaf/application.js
<|file_sep|>current/releaf-core/app/assets/config/releaf_core_manifest.js
//= link_tree ../images
//= link releaf/application.css
//= link releaf/application.... | c025d9457aa000d0f23252e07ce6f2e2c3c5d971 | releaf-core/app/assets/config/releaf_core_manifest.js | releaf-core/app/assets/config/releaf_core_manifest.js | JavaScript |
<|file_sep|>Casks/libreoffice.rb.diff
original:
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
updated:
if Hardware::CPU.is_64_bit? && OS::Mac.version >= '10.8'
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/Li... | class Libreoffice < Cask
if Hardware::CPU.is_64_bit? && OS::Mac.version >= '10.8'
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
sha256 'b54917f4784b17c2c6a0778559f3f9de03480bc4528b181681336d9cc2dba904'
else
url 'http://download.docume... | <|file_sep|>Casks/libreoffice.rb.diff
original:
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
updated:
if Hardware::CPU.is_64_bit? && OS::Mac.version >= '10.8'
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/Li... | 9258122be0d40784d07208796b9827def84f08e5 | Casks/libreoffice.rb | Casks/libreoffice.rb | Ruby |
<|file_sep|>original/lib/tentd/models/entity.rb
module TentD
module Model
class Entity < Sequel::Model(TentD.database[:entities])
def self.first_or_create(entity_uri)
first(:entity => entity_uri) || create(:entity => entity_uri)
end
end
end
end
<|file_sep|>current/lib/tentd/models/en... | module TentD
module Model
class Entity < Sequel::Model(TentD.database[:entities])
def self.first_or_create(entity_uri)
first(:entity => entity_uri) || create(:entity => entity_uri)
rescue Sequel::UniqueConstraintViolation
first(:entity => entity_uri)
end
end
end
end | <|file_sep|>original/lib/tentd/models/entity.rb
module TentD
module Model
class Entity < Sequel::Model(TentD.database[:entities])
def self.first_or_create(entity_uri)
first(:entity => entity_uri) || create(:entity => entity_uri)
end
end
end
end
<|file_sep|>current/lib/tentd/models/en... | 17048dff053b70088e1f8e23bb75e82b6eaaa026 | lib/tentd/models/entity.rb | lib/tentd/models/entity.rb | Ruby |
<|file_sep|>original/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md
<|file_sep|>current/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md
<|file_sep|>updated/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md | ---
title: How to use Web Inspector and debug Safari on iPhone/iPad
date: 2022-09-07 13:32:33
tags:
---
Prerequisites:
- iPhone / iPad / iPod and the Macbook on the same version of Safari
- a genuine Apple lightning or USB cable
Step by step:
- On iPad, iPhone or iPod touch, go to menu Settings > Safari > Advanced ... | <|file_sep|>original/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md
<|file_sep|>current/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md
<|file_sep|>updated/source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md
---
title: How to use Web Inspector... | a29c3ccbb8a51e8894aa6ce7a56214332afa3ced | source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md | source/_posts/How-to-use-Web-Inspector-and-debug-Safari-on-iPhone-iPad.md | Markdown |
<|file_sep|>original/.travis.yml
language: java
before_install:
- wget http://openengsb.org/travis/oeb_bootstrap_m2_repo.zip
- unzip oeb_bootstrap_m2_repo.zip
- rm -rf ~/.m2/repository
- mv repository ~/.m2/
- rm oeb_bootstrap_m2_repo.zip
install:
script: mvn install -Pitests,checkstyle,licenseCheck
noti... | language: java
before_install:
- wget http://openengsb.org/travis/oeb_bootstrap_m2_repo.zip
- unzip oeb_bootstrap_m2_repo.zip
- rm -rf ~/.m2/repository
- mv repository ~/.m2/
- rm oeb_bootstrap_m2_repo.zip
install: mvn validate
script: mvn install -Pitests,checkstyle,licenseCheck
notifications:
email:
... | <|file_sep|>original/.travis.yml
language: java
before_install:
- wget http://openengsb.org/travis/oeb_bootstrap_m2_repo.zip
- unzip oeb_bootstrap_m2_repo.zip
- rm -rf ~/.m2/repository
- mv repository ~/.m2/
- rm oeb_bootstrap_m2_repo.zip
install:
script: mvn install -Pitests,checkstyle,licenseCheck
noti... | b8d1fa9bce042b3738294089219a2a9b2087b29f | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/webview/css/css.js.diff
original:
updated:
import { Platform } from 'react-native';
<|file_sep|>src/webview/css/css.js.diff
original:
updated:
/**
* Fix KaTeX frac-line elements disappearing.
*
* This is a hack, but it's probably better than not having fraction lines on
* low-resolution phones. I... | */
const katexFraclineHackStyle = `<style id="katex-frac-line-hack">
.katex .mfrac .frac-line { border-bottom-width: 1px !important; }
</style>`;
export default (theme: ThemeName) => `
<link rel='stylesheet' type='text/css' href='./base.css'>
<link rel='stylesheet' type='text/css' href='./katex/katex.min.css'>
<style... | <|file_sep|>src/webview/css/css.js.diff
original:
updated:
import { Platform } from 'react-native';
<|file_sep|>src/webview/css/css.js.diff
original:
updated:
/**
* Fix KaTeX frac-line elements disappearing.
*
* This is a hack, but it's probably better than not having fraction lines on
* low-resolution phones. I... | 420a874785ee91389c39736b3bd60ad7fab79225 | src/webview/css/css.js | src/webview/css/css.js | JavaScript |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "node"
cache:
timeout: 600
directories:
- node_modules
- $HOME/.electron
install:
- npm install
script:
- npm run lint
- npm run build:prod
- npm run test:unit
- npm run test:integration
after_success:
- npm run publish
<|file_s... |
language: node_js
node_js:
- "node"
cache:
timeout: 600
directories:
- node_modules
- $HOME/.electron
install:
- npm install
script:
- npm run lint
- npm run build:prod
- npm test
after_success:
- npm run publish | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "node"
cache:
timeout: 600
directories:
- node_modules
- $HOME/.electron
install:
- npm install
script:
- npm run lint
- npm run build:prod
- npm run test:unit
- npm run test:integration
after_success:
- npm run publish
<|file_s... | 892de728996fec93720ad2dde4a176f7b53da486 | .travis.yml | .travis.yml | YAML |
<|file_sep|>docs/op-delete.md.diff
original:
Delete the rows 1-3 (inclusive) of a CSV file:
updated:
Delete the rows 1-4 (inclusive) of a CSV file:
<|file_sep|>original/docs/op-delete.md
## delete
delete {range}
range = comma separated range of row indices (0 based) e.g.
0 # delete row 0
1,2,5 ... | ## delete
delete {range}
range = comma separated range of row indices (0 based) e.g.
0 # delete row 0
1,2,5 # delete row 1,2,5
1:5,10:15 # delete row 1 to 5 and row 10 to 15
1,3,5:10 # delete row 1,3 and 5 to 10
### Examples
Delete the rows 1-4 (inclusive) of a CSV file:
... | <|file_sep|>docs/op-delete.md.diff
original:
Delete the rows 1-3 (inclusive) of a CSV file:
updated:
Delete the rows 1-4 (inclusive) of a CSV file:
<|file_sep|>original/docs/op-delete.md
## delete
delete {range}
range = comma separated range of row indices (0 based) e.g.
0 # delete row 0
1,2,5 ... | d5b2be48a1a0c7416bec0fa2c76b8e3a3d3092eb | docs/op-delete.md | docs/op-delete.md | Markdown |
<|file_sep|>original/README.md
nginx-demo
======================
## Purpose
A 6.5MB Docker image running
- [Alpine Linux](https://github.com/gliderlabs/docker-alpine)
- [Nginx](http://nginx.org/)
- Microbot image/unique html content
Intended use is to demo docker orchestration
- Docker
- Mesos
- Marathon
- Kubernetes... | docker-microbot
======================
## Purpose
A 6.5MB Docker image running
- [Alpine Linux](https://github.com/gliderlabs/docker-alpine)
- [Nginx](http://nginx.org/)
- Microbot image/unique html content
Intended use is to demo docker orchestration
- Docker
- Mesos
- Marathon
- Kubernetes
## Usage
### From your m... | <|file_sep|>original/README.md
nginx-demo
======================
## Purpose
A 6.5MB Docker image running
- [Alpine Linux](https://github.com/gliderlabs/docker-alpine)
- [Nginx](http://nginx.org/)
- Microbot image/unique html content
Intended use is to demo docker orchestration
- Docker
- Mesos
- Marathon
- Kubernetes... | 9ceaf4292bee17742183024715cf4d21876e6725 | README.md | README.md | Markdown |
<|file_sep|>original/home/.config/i3/spotify_info.sh
#!/bin/bash
IFS=$'\n'
CURRENT_SONG=($(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A2 "artist|title"|grep -oP '(?<=string \... | #!/bin/bash
IFS=$'\n'
CURRENT_SONG=($(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A2 "artist|title"|grep -oP '(?<=string \")(?!xesam).*(?=\")'))
echo "${CURRENT_SONG[0]} - $(e... | <|file_sep|>original/home/.config/i3/spotify_info.sh
#!/bin/bash
IFS=$'\n'
CURRENT_SONG=($(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A2 "artist|title"|grep -oP '(?<=string \... | aa8cca4bcd5602889fbc1fedfda410ae357a3c52 | home/.config/i3/spotify_info.sh | home/.config/i3/spotify_info.sh | Shell |
<|file_sep|>docs/index.rst.diff
original:
updated:
======================
vidme.py Documentation
======================
<|file_sep|>original/docs/index.rst
<|file_sep|>current/docs/index.rst
======================
vidme.py Documentation
======================
<|file_sep|>updated/docs/index.rst | ======================
vidme.py Documentation
======================
.. contents::
Introduction
------------
Welcome to the vidme.py documentation!
Vidme.py is an API wrapper for the Vidme API, written in Python.
Another Section
---------------
This is pointless information. | <|file_sep|>docs/index.rst.diff
original:
updated:
======================
vidme.py Documentation
======================
<|file_sep|>original/docs/index.rst
<|file_sep|>current/docs/index.rst
======================
vidme.py Documentation
======================
<|file_sep|>updated/docs/index.rst
======================... | 711f9d1244fdf1b0b2bfefe48264bf48cdb9b995 | docs/index.rst | docs/index.rst | reStructuredText |
<|file_sep|>original/oddbaby.libraries.yml
global:
css:
theme:
dist/css/main.css: {}
dist/css/print.css: { media: print }
js:
dist/js/bundle.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
<|file_sep|>current/oddbaby.libraries.yml
global:
css:
theme:
... | global:
css:
theme:
dist/css/main.css: {}
dist/css/print.css: { media: print }
js:
dist/js/bundle.js: { minified: true }
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings | <|file_sep|>original/oddbaby.libraries.yml
global:
css:
theme:
dist/css/main.css: {}
dist/css/print.css: { media: print }
js:
dist/js/bundle.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
<|file_sep|>current/oddbaby.libraries.yml
global:
css:
theme:
... | fdc558a787d0d6251785f35ff8bfa4568d53806b | oddbaby.libraries.yml | oddbaby.libraries.yml | YAML |
<|file_sep|>original/pygotham/admin/schedule.py
'Rooms',
CATEGORY,
column_default_sort='order',
form_columns=('name', 'order'),
)
SlotModelView = model_view(
models.Slot,
'Slots',
CATEGORY,
column_list=('day', 'rooms', 'kind', 'start', 'end'),
form_columns=('day', 'rooms', 'kind', ... | CATEGORY,
column_default_sort='order',
form_columns=('name', 'order'),
)
SlotModelView = model_view(
models.Slot,
'Slots',
CATEGORY,
column_default_sort='start',
column_list=('day', 'rooms', 'kind', 'start', 'end'),
form_columns=('day', 'rooms', 'kind', 'start', 'end', 'content_ove... | <|file_sep|>original/pygotham/admin/schedule.py
'Rooms',
CATEGORY,
column_default_sort='order',
form_columns=('name', 'order'),
)
SlotModelView = model_view(
models.Slot,
'Slots',
CATEGORY,
column_list=('day', 'rooms', 'kind', 'start', 'end'),
form_columns=('day', 'rooms', 'kind', ... | 9d79893f119d696ead124d9e34b21acf34cd6f8f | pygotham/admin/schedule.py | pygotham/admin/schedule.py | Python |
<|file_sep|>.github/workflows/validate-pr.yaml.diff
original:
runs-on: ubuntu-latest
updated:
runs-on: ${{ matrix.os }}
strategy:
matrix:
features: [--all-features, --no-default-features]
os: [ubuntu-latest, windows-latest, macOS-latest]
<|file_sep|>original/.github/workflows/validate... | jobs:
test:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
features: [--all-features, --no-default-features]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@master
- uses: textbook/git-checkout-submodule-action@master
- ... | <|file_sep|>.github/workflows/validate-pr.yaml.diff
original:
runs-on: ubuntu-latest
updated:
runs-on: ${{ matrix.os }}
strategy:
matrix:
features: [--all-features, --no-default-features]
os: [ubuntu-latest, windows-latest, macOS-latest]
<|file_sep|>original/.github/workflows/validate... | 37edf64e17578d690e0f8b44cb8a3a223d1a861f | .github/workflows/validate-pr.yaml | .github/workflows/validate-pr.yaml | YAML |
<|file_sep|>original/.travis.yml
- COMPOSER_DISABLE_XDEBUG_WARN=1
- PREFER_LOWEST=""
matrix:
fast_finish: true
include:
- php: 7.1
env: CODESTYLE="yes"
- php: 7.1
env: PREFER_LOWEST="--prefer-lowest"
before_script:
- if [[ $TRAVIS_PHP_VERSION = hhvm ]]; then cat tests/travis.hhvm.ini... | - COMPOSER_DISABLE_XDEBUG_WARN=1
- PREFER_LOWEST=""
matrix:
fast_finish: true
include:
- php: 7.1
env: CODESTYLE="yes"
- php: 7.1
env: PREFER_LOWEST="--prefer-lowest"
allow_failures:
- php: nightly
before_script:
- if [[ $TRAVIS_PHP_VERSION = hhvm ]]; then cat tests/travis.hhvm... | <|file_sep|>original/.travis.yml
- COMPOSER_DISABLE_XDEBUG_WARN=1
- PREFER_LOWEST=""
matrix:
fast_finish: true
include:
- php: 7.1
env: CODESTYLE="yes"
- php: 7.1
env: PREFER_LOWEST="--prefer-lowest"
before_script:
- if [[ $TRAVIS_PHP_VERSION = hhvm ]]; then cat tests/travis.hhvm.ini... | 4f954b1e4368a797dc28d6b36006456fce074d2b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/admin.py
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Crash
class CrashAdmin(admin.ModelAdmin):
search_fields = ('report',)
list_display = ('application', 'build',
'crdate', 'tstamp',
'is_solved', 'is_obsolete')
li... | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Crash
class CrashAdmin(admin.ModelAdmin):
search_fields = ('report',)
list_display = ('application', 'build',
'crdate', 'tstamp',
'is_solved', 'is_obsolete')
list_filter = ('application', 'b... | <|file_sep|>original/admin.py
# -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Crash
class CrashAdmin(admin.ModelAdmin):
search_fields = ('report',)
list_display = ('application', 'build',
'crdate', 'tstamp',
'is_solved', 'is_obsolete')
li... | 67913476c33a4f8b3635f63c379bde0a48a5e714 | admin.py | admin.py | Python |
<|file_sep|>original/README.md
# gin-logger
[](https://travis-ci.org/miclle/gin-logger)
[](https://coveralls.io/github/miclle/gin-logger?branch=deve... | # gin-logger
[](https://travis-ci.org/miclle/gin-logger)
[](https://coveralls.io/github/miclle/gin-logger?branch=develop)
[](https://travis-ci.org/miclle/gin-logger)
[](https://coveralls.io/github/miclle/gin-logger?branch=deve... | 1e3efece816a9abf435cd593d367c241855c9ed0 | README.md | README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.