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/test/CodeGenCXX/member-pointer-type-convert.cpp // RUN: clang-cc -emit-llvm %s -o - | FileCheck %s struct A; typedef int A::*param_t; struct { const char *name; param_t par; } *ptr; // CHECK: type { i8*, i32 } <|file_sep|>current/test/CodeGenCXX/member-pointer-type-convert.cpp // RUN: clang-c...
// RUN: clang-cc -emit-llvm %s -o - | FileCheck %s struct A; typedef int A::*param_t; struct { const char *name; param_t par; } *ptr; // CHECK: type { i8*, {{i..}} }
<|file_sep|>original/test/CodeGenCXX/member-pointer-type-convert.cpp // RUN: clang-cc -emit-llvm %s -o - | FileCheck %s struct A; typedef int A::*param_t; struct { const char *name; param_t par; } *ptr; // CHECK: type { i8*, i32 } <|file_sep|>current/test/CodeGenCXX/member-pointer-type-convert.cpp // RUN: clang-c...
2d09ed028a626d2ebccc6d7971f8c1066a177954
test/CodeGenCXX/member-pointer-type-convert.cpp
test/CodeGenCXX/member-pointer-type-convert.cpp
C++
<|file_sep|>original/README.md # haxproxy-session-scaler This provides horizontal pod scaling in OpenShift by using session counts from HAProxy. # Tests To run the tests: ```.shell python -m doctest haproxy_session_scaler.rst ``` # Building with S2I To build with S2I: ```.shell s2i build https://github.com/ajsmi...
# haxproxy-session-scaler This provides horizontal pod scaling in OpenShift by using session counts from HAProxy. # Tests To run the tests: ```.shell python -m doctest -v haproxy_session_scaler.rst ``` # Building with S2I To build with S2I: ```.shell s2i build https://github.com/ajsmith/haproxy-session-scaler.gi...
<|file_sep|>original/README.md # haxproxy-session-scaler This provides horizontal pod scaling in OpenShift by using session counts from HAProxy. # Tests To run the tests: ```.shell python -m doctest haproxy_session_scaler.rst ``` # Building with S2I To build with S2I: ```.shell s2i build https://github.com/ajsmi...
a6df36409743fe15fab618717303ca72f0c83298
README.md
README.md
Markdown
<|file_sep|>original/Menu/Code/UI.h // // Mapping.h // Menu // // Created by Matt on 21/07/15. // Copyright (c) 2015 Blue Rocket. All rights reserved. // #import <BRMenu/UI/BRMenuPlusMinusButton.h> #import <BRMenu/UI/BRMenuStepper.h> #import <BRMenu/UI/BRMenuUIStyle.h> <|file_sep|>current/Menu/Code/UI.h // // Map...
// // Mapping.h // Menu // // Created by Matt on 21/07/15. // Copyright (c) 2015 Blue Rocket. All rights reserved. // #import <BRMenu/UI/BRMenuBackBarButtonItemView.h> #import <BRMenu/UI/BRMenuBarButtonItemView.h> #import <BRMenu/UI/BRMenuPlusMinusButton.h> #import <BRMenu/UI/BRMenuStepper.h> #import <BRMenu/UI/BR...
<|file_sep|>original/Menu/Code/UI.h // // Mapping.h // Menu // // Created by Matt on 21/07/15. // Copyright (c) 2015 Blue Rocket. All rights reserved. // #import <BRMenu/UI/BRMenuPlusMinusButton.h> #import <BRMenu/UI/BRMenuStepper.h> #import <BRMenu/UI/BRMenuUIStyle.h> <|file_sep|>current/Menu/Code/UI.h // // Map...
41b1fefc4ecf7317d4e8ca4529edde1d5fad6ac0
Menu/Code/UI.h
Menu/Code/UI.h
C
<|file_sep|>original/scripts/cluster/craq/start_craq_router.py #!/usr/bin/python import sys import subprocess import time def main(): subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router-32 -d meru -p 10499 -z 192.168.1.30:9888', shell=True) subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router...
#!/usr/bin/python import sys import subprocess import time def main(): subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router-32 -d meru -p 10499 -z 192.168.1.7:9888', shell=True) subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router-32 -d meru -p 10498 -z 192.168.1.7:9888', shell=True) r...
<|file_sep|>original/scripts/cluster/craq/start_craq_router.py #!/usr/bin/python import sys import subprocess import time def main(): subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router-32 -d meru -p 10499 -z 192.168.1.30:9888', shell=True) subprocess.Popen('/home/meru/bmistree/new-craq-dist/craq-router...
454e8203295c7f51e1d660adcaf3d282ded5652f
scripts/cluster/craq/start_craq_router.py
scripts/cluster/craq/start_craq_router.py
Python
<|file_sep|>original/src/routes/file.ts import * as fs from 'fs'; import {ReadStream} from 'fs'; export default { test: (uri: string): boolean => /^\.|^\//.test(uri) || /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri), read: (path: string): Promise<ReadStream> => { return new Promise((resolve, reject) => { let readStre...
import * as fs from 'fs'; import {ReadStream} from 'fs'; export default { test: (uri: string): boolean => { if (process.platform === 'win32') { return /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri); } return /^\.|^\//.test(uri) }, read: (path: string): Promise<ReadStream> => { return new Promise((resolve, rej...
<|file_sep|>original/src/routes/file.ts import * as fs from 'fs'; import {ReadStream} from 'fs'; export default { test: (uri: string): boolean => /^\.|^\//.test(uri) || /^[a-zA-Z]:\\[\\\S|*\S]?.*$/g.test(uri), read: (path: string): Promise<ReadStream> => { return new Promise((resolve, reject) => { let readStre...
041e6bf2579b964e57f3b0a80dc56d2aa9fb8d80
src/routes/file.ts
src/routes/file.ts
TypeScript
<|file_sep|>original/auto-updater.js autoUpdater.on('update-not-available', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.on('error', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.setFeedURL('https://electron-api-demos.githubapp.com/mac') aut...
autoUpdater.on('update-not-available', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.on('error', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.setFeedURL('https://electron-api-demos.githubapp.com/updates') autoUpdater.checkForUpdates() } exp...
<|file_sep|>original/auto-updater.js autoUpdater.on('update-not-available', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.on('error', function () { state = 'no-update' exports.updateMenu() }) autoUpdater.setFeedURL('https://electron-api-demos.githubapp.com/mac') aut...
98596d7e98dfdf253d95511ccad880ce07c6c898
auto-updater.js
auto-updater.js
JavaScript
<|file_sep|>original/_posts/2022-06-29-Trust-Thy-Coworker.md <|file_sep|>current/_posts/2022-06-29-Trust-Thy-Coworker.md <|file_sep|>updated/_posts/2022-06-29-Trust-Thy-Coworker.md
--- layout: post title: Trust Thy Coworker header: header-eng --- As software engineers, we often want to make sure that the code being added to the project is of high quality, which is often achieved by having code review process. Taking a small detour from Gradle, I wanted to share a few changes in the code review ...
<|file_sep|>original/_posts/2022-06-29-Trust-Thy-Coworker.md <|file_sep|>current/_posts/2022-06-29-Trust-Thy-Coworker.md <|file_sep|>updated/_posts/2022-06-29-Trust-Thy-Coworker.md --- layout: post title: Trust Thy Coworker header: header-eng --- As software engineers, we often want to make sure that the code being...
49e490510cc7af93f1dc17feef9b1f41cb879a70
_posts/2022-06-29-Trust-Thy-Coworker.md
_posts/2022-06-29-Trust-Thy-Coworker.md
Markdown
<|file_sep|>original/js/Config.js /** * Copyright 2015-present 650 Industries. All rights reserved. * * @providesModule Config */ 'use strict'; export default { api: { // host: 'https://exp.host', host: 'https://ed56a018.ngrok.io', }, }; <|file_sep|>current/js/Config.js /** * Copyright 2015-present 65...
/** * Copyright 2015-present 650 Industries. All rights reserved. * * @providesModule Config */ 'use strict'; export default { api: { host: 'https://exp.host', // host: 'https://ed56a018.ngrok.io', }, };
<|file_sep|>original/js/Config.js /** * Copyright 2015-present 650 Industries. All rights reserved. * * @providesModule Config */ 'use strict'; export default { api: { // host: 'https://exp.host', host: 'https://ed56a018.ngrok.io', }, }; <|file_sep|>current/js/Config.js /** * Copyright 2015-present 65...
86d8c8d76715c8559c3d78e5e4025bbbba182153
js/Config.js
js/Config.js
JavaScript
<|file_sep|>organise/templates/todos.html.diff original: <h1>Todos</h1> updated: <h1>Todos <span class="btn-group pull-right" style="display: inline-block"> <a href="#" class="btn btn-primary btn-lg pull-right" data-toggle="modal" data-target="#addTodoModal">Add Todo</a> </span> ...
<ul class="entries"> {% for todo in todos %} <li> <h2>{{ todo.title }}</h2> <p>{{ todo.description|safe }}</p> </li> {% else %} <em>Damn, nothing to do!</em> {% endfor %} </ul> <div class="modal" id="addTodoModal"> ...
<|file_sep|>organise/templates/todos.html.diff original: <h1>Todos</h1> updated: <h1>Todos <span class="btn-group pull-right" style="display: inline-block"> <a href="#" class="btn btn-primary btn-lg pull-right" data-toggle="modal" data-target="#addTodoModal">Add Todo</a> </span> ...
e64d45490201de403a5d5d67a1a029ac6c0e26e6
organise/templates/todos.html
organise/templates/todos.html
HTML
<|file_sep|>original/src/main/java/me/prettyprint/cassandra/service/ClusterFactory.java package me.prettyprint.cassandra.service; import java.util.HashMap; import java.util.Map; import me.prettyprint.cassandra.service.CassandraHostConfigurator; public class ClusterFactory { private static Map<String, Cluster> clu...
package me.prettyprint.cassandra.service; import java.util.HashMap; import java.util.Map; import me.prettyprint.cassandra.service.CassandraHostConfigurator; public class ClusterFactory { private static final Map<String, Cluster> clusters = new HashMap<String, Cluster>(); public static Cluster get(String clus...
<|file_sep|>original/src/main/java/me/prettyprint/cassandra/service/ClusterFactory.java package me.prettyprint.cassandra.service; import java.util.HashMap; import java.util.Map; import me.prettyprint.cassandra.service.CassandraHostConfigurator; public class ClusterFactory { private static Map<String, Cluster> clu...
9e6b2868b24b4db4f0743a19860dcb7d0d8c846b
src/main/java/me/prettyprint/cassandra/service/ClusterFactory.java
src/main/java/me/prettyprint/cassandra/service/ClusterFactory.java
Java
<|file_sep|>original/lib/specinfra/command/freebsd/v10/package.rb class Specinfra::Command::Freebsd::V10::Package < Specinfra::Command::Freebsd::Base::Package class << self def check_is_installed(package, version=nil) if version "pkg query %v #{escape(package)} | grep -- #{escape(version)}" el...
class Specinfra::Command::Freebsd::V10::Package < Specinfra::Command::Freebsd::Base::Package class << self def check_is_installed(package, version=nil) if version "pkg query %v #{escape(package)} | grep -- #{escape(version)}" else "pkg info #{escape(package)}" end end al...
<|file_sep|>original/lib/specinfra/command/freebsd/v10/package.rb class Specinfra::Command::Freebsd::V10::Package < Specinfra::Command::Freebsd::Base::Package class << self def check_is_installed(package, version=nil) if version "pkg query %v #{escape(package)} | grep -- #{escape(version)}" el...
920d06da56942962e25a035fe34a5bd490d28446
lib/specinfra/command/freebsd/v10/package.rb
lib/specinfra/command/freebsd/v10/package.rb
Ruby
<|file_sep|>original/bluesky/tests/test_olog_cb.py <|file_sep|>current/bluesky/tests/test_olog_cb.py <|file_sep|>updated/bluesky/tests/test_olog_cb.py
from bluesky import Msg from bluesky.callbacks.olog import logbook_cb_factory text = [] def f(**kwargs): text.append(kwargs['text']) def test_default_template(fresh_RE): text.clear() fresh_RE.subscribe('start', logbook_cb_factory(f)) fresh_RE([Msg('open_run', plan_args={}), Msg('close_run')]) a...
<|file_sep|>original/bluesky/tests/test_olog_cb.py <|file_sep|>current/bluesky/tests/test_olog_cb.py <|file_sep|>updated/bluesky/tests/test_olog_cb.py from bluesky import Msg from bluesky.callbacks.olog import logbook_cb_factory text = [] def f(**kwargs): text.append(kwargs['text']) def test_default_template...
cf3cae6493a369173244e05d190cceae41b9abbd
bluesky/tests/test_olog_cb.py
bluesky/tests/test_olog_cb.py
Python
<|file_sep|>original/.github/workflows/build-ubuntu.yml <|file_sep|>current/.github/workflows/build-ubuntu.yml <|file_sep|>updated/.github/workflows/build-ubuntu.yml
# Copyright (c) 2021 Morwenn # SPDX-License-Identifier: MIT name: Ubuntu Builds on: push: paths: - 'CMakeLists.txt' - 'cmake/**' - 'examples/**' - 'include/**' - 'testsuite/**' pull_request: paths: - 'CMakeLists.txt' - 'cmake/**' - 'examples/**' - 'inc...
<|file_sep|>original/.github/workflows/build-ubuntu.yml <|file_sep|>current/.github/workflows/build-ubuntu.yml <|file_sep|>updated/.github/workflows/build-ubuntu.yml # Copyright (c) 2021 Morwenn # SPDX-License-Identifier: MIT name: Ubuntu Builds on: push: paths: - 'CMakeLists.txt' - 'cmake/**' ...
1de7526fc01d0f173d18d0ea93f55af57b850d38
.github/workflows/build-ubuntu.yml
.github/workflows/build-ubuntu.yml
YAML
<|file_sep|>original/src/ContextTypes/Organization.php /** * Property structure * * @var array */ private $extendedStructure = [ 'address' => PostalAddress::class, 'logo' => ImageObject::class, 'contactPoint' => ContactPoint::class, 'email' => null, ]; ...
/** * Property structure * * @var array */ private $extendedStructure = [ 'address' => PostalAddress::class, 'logo' => ImageObject::class, 'contactPoint' => ContactPoint::class, 'email' => null, 'telephone' => null, ]; /** * Organization ...
<|file_sep|>original/src/ContextTypes/Organization.php /** * Property structure * * @var array */ private $extendedStructure = [ 'address' => PostalAddress::class, 'logo' => ImageObject::class, 'contactPoint' => ContactPoint::class, 'email' => null, ]; ...
cc6bdea1cdef0091103a78f98f50b36aace61e73
src/ContextTypes/Organization.php
src/ContextTypes/Organization.php
PHP
<|file_sep|>original/vulndb/tests/test_proper_data_installation.py import subprocess import unittest class TestDataIsInstalled(unittest.TestCase): TEST_CMD = "python -c 'from vulndb import DBVuln; DBVuln.from_id(123)'" def test_data_is_installed_in_virtualenv(self): # When we run this in the current ...
import subprocess import unittest class TestDataIsInstalled(unittest.TestCase): TEST_CMD = "python -c 'from vulndb import DBVuln; DBVuln.from_id(1)'" def test_data_is_installed_in_virtualenv(self): # When we run this in the current CMD it will load the python class # and db files from this di...
<|file_sep|>original/vulndb/tests/test_proper_data_installation.py import subprocess import unittest class TestDataIsInstalled(unittest.TestCase): TEST_CMD = "python -c 'from vulndb import DBVuln; DBVuln.from_id(123)'" def test_data_is_installed_in_virtualenv(self): # When we run this in the current ...
a5d1879ce858618179258cca6eaed3ff087a8f42
vulndb/tests/test_proper_data_installation.py
vulndb/tests/test_proper_data_installation.py
Python
<|file_sep|>original/lib/tasks/talk.rake # -*- mode: ruby -*- # vi: set ft=ruby : namespace :talk do desc "import owners and collaborators as admins of their talk instances" task :create_admins do client = TalkApiClient.new Project.find_each(&:create_talk_admin) end end <|file_sep|>current/lib/tasks/talk...
# -*- mode: ruby -*- # vi: set ft=ruby : namespace :talk do desc "import owners and collaborators as admins of their talk instances" task :create_admins do client = TalkApiClient.new Project.find_each do |project| project.create_talk_admin client end end end
<|file_sep|>original/lib/tasks/talk.rake # -*- mode: ruby -*- # vi: set ft=ruby : namespace :talk do desc "import owners and collaborators as admins of their talk instances" task :create_admins do client = TalkApiClient.new Project.find_each(&:create_talk_admin) end end <|file_sep|>current/lib/tasks/talk...
df0468a6d15a9059006abbed65d61eb90213216e
lib/tasks/talk.rake
lib/tasks/talk.rake
Ruby
<|file_sep|>src/Model/UrlInterface.php.diff original: public function addAlternative(AlternativeUrlInterface $image): void; updated: public function addAlternative(AlternativeUrlInterface $alternative): void; <|file_sep|>src/Model/UrlInterface.php.diff original: public function hasAlternative(AlternativeUrl...
/** * @param AlternativeUrlInterface[] $alternatives */ public function setAlternatives(iterable $alternatives): void; public function addAlternative(AlternativeUrlInterface $alternative): void; public function hasAlternative(AlternativeUrlInterface $alternative): bool; public function...
<|file_sep|>src/Model/UrlInterface.php.diff original: public function addAlternative(AlternativeUrlInterface $image): void; updated: public function addAlternative(AlternativeUrlInterface $alternative): void; <|file_sep|>src/Model/UrlInterface.php.diff original: public function hasAlternative(AlternativeUrl...
32cb7b862399ec9a7e297316cf3e7a781229b086
src/Model/UrlInterface.php
src/Model/UrlInterface.php
PHP
<|file_sep|>original/.vscode/workflows/runtest.yaml <|file_sep|>current/.vscode/workflows/runtest.yaml <|file_sep|>updated/.vscode/workflows/runtest.yaml
name: Node.js CI on: - push - pull_request jobs: build-test: name: Build and Test runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - run: npm ci - run: npm run build --if-present - run: npm test
<|file_sep|>original/.vscode/workflows/runtest.yaml <|file_sep|>current/.vscode/workflows/runtest.yaml <|file_sep|>updated/.vscode/workflows/runtest.yaml name: Node.js CI on: - push - pull_request jobs: build-test: name: Build and Test runs-on: ubuntu-latest steps: - name: Checkout code ...
babee5a99e2fb02a6377de006be2117fd6c11b9c
.vscode/workflows/runtest.yaml
.vscode/workflows/runtest.yaml
YAML
<|file_sep|>original/.travis.yml - 3.5 - 3.6 - nightly sudo: false addons: apt: packages: - oracle-java8-set-default before_install: - pip install --upgrade setuptools install: - python bootstrap.py - sed -ir "s/SQLAlchemy.*/SQLAlchemy = ${SA_VERSION}/g" versions.cfg - bin/buildout -c base.c...
- 3.5 - 3.6 - nightly sudo: false addons: apt: packages: - oracle-java8-set-default before_install: # clean existing dependencies to avoid clashes - pip freeze | xargs pip uninstall -y - pip install --upgrade setuptools install: - python bootstrap.py - sed -ir "s/SQLAlchemy.*/SQLAlchemy = ...
<|file_sep|>original/.travis.yml - 3.5 - 3.6 - nightly sudo: false addons: apt: packages: - oracle-java8-set-default before_install: - pip install --upgrade setuptools install: - python bootstrap.py - sed -ir "s/SQLAlchemy.*/SQLAlchemy = ${SA_VERSION}/g" versions.cfg - bin/buildout -c base.c...
b763284733492cbd81cf0266407501dc83c71086
.travis.yml
.travis.yml
YAML
<|file_sep|>.travis.yml.diff original: updated: env: - PCP_PMDA_CPP_VERSION=v0.4.0 - PCP_PMDA_CPP_VERSION=v0.4.1 - PCP_PMDA_CPP_VERSION=v0.4.2 - PCP_PMDA_CPP_VERSION=v0.4.3 - PCP_PMDA_CPP_VERSION=master matrix: allow_failures: - env:PCP_PMDA_CPP_VERSION=master <|file_sep|>.travis.yml.diff original: ...
before_install: - sudo apt-get update -qq install: - > sudo apt-get install -qq cppcheck libboost-{program-options,system}-dev libpcp{,-pmda}3{,-dev} libqmfconsole2-dev libqpidclient2-dev libqpidcommon2-dev libqpidtypes1-dev pcp before_script: - mkdir -p /tmp/pcp-pmda-cpp - > curl -Ls https://git...
<|file_sep|>.travis.yml.diff original: updated: env: - PCP_PMDA_CPP_VERSION=v0.4.0 - PCP_PMDA_CPP_VERSION=v0.4.1 - PCP_PMDA_CPP_VERSION=v0.4.2 - PCP_PMDA_CPP_VERSION=v0.4.3 - PCP_PMDA_CPP_VERSION=master matrix: allow_failures: - env:PCP_PMDA_CPP_VERSION=master <|file_sep|>.travis.yml.diff original: ...
7e9f89dd2fd1912e85606f0347e1ecf09abec77a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" env: - PYTHONPATH='.' branches: only: - next before_install: - sudo apt-get update - sudo apt-get install nodejs - curl http://npmjs.org/install.sh | sh - npm update zombie - npm install zombie install: - pip in...
language: python python: - "2.6" - "2.7" - "3.2" env: - PYTHONPATH='.' branches: only: - master - next before_install: - sudo apt-get update - sudo apt-get install nodejs - curl http://npmjs.org/install.sh | sh - npm update zombie - npm install zombie install: - pip install . --use-mirror...
<|file_sep|>original/.travis.yml language: python python: - "2.6" - "2.7" - "3.2" env: - PYTHONPATH='.' branches: only: - next before_install: - sudo apt-get update - sudo apt-get install nodejs - curl http://npmjs.org/install.sh | sh - npm update zombie - npm install zombie install: - pip in...
cf332e31631a6d154a88d29130c30fdadbba4e06
.travis.yml
.travis.yml
YAML
<|file_sep|>application/modules/g/views/scripts/partials/google-tag-manager.phtml.diff original: $ini = Zend_Registry::get('config'); if (!$ini->google->tagmanager->id) { throw new Exception("Please set google.tagmanager.id in your ini config"); } if (APPLICATION_ENV === 'production'): ?> updated: $ini = Zend_R...
<?php $ini = Zend_Registry::get('config'); if (!$ini->google->tagmanager->id): throw new Exception("Please set google.tagmanager.id in your ini config"); endif; if (APPLICATION_ENV === 'production'): ?> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=<?php echo $ini->google-...
<|file_sep|>application/modules/g/views/scripts/partials/google-tag-manager.phtml.diff original: $ini = Zend_Registry::get('config'); if (!$ini->google->tagmanager->id) { throw new Exception("Please set google.tagmanager.id in your ini config"); } if (APPLICATION_ENV === 'production'): ?> updated: $ini = Zend_R...
56321d62b3b46a679f0ee9086e6193a27acc2892
application/modules/g/views/scripts/partials/google-tag-manager.phtml
application/modules/g/views/scripts/partials/google-tag-manager.phtml
HTML+PHP
<|file_sep|>bluebottle/mail/__init__.py.diff original: updated: from bluebottle.clients import properties <|file_sep|>original/bluebottle/mail/__init__.py if hasattr(to, 'primary_language') and to.primary_language: translation.activate(to.primary_language) kwargs.update({ 'receiver': to, ...
kwargs.update({ 'receiver': to, 'site': 'https://{0}'.format(Site.objects.get_current().domain) }) context = ClientContext(kwargs) subject = unicode(subject) # Unlazy the translatable string subject within activated language. text_content = get_template('{0}.txt'.format(template_...
<|file_sep|>bluebottle/mail/__init__.py.diff original: updated: from bluebottle.clients import properties <|file_sep|>original/bluebottle/mail/__init__.py if hasattr(to, 'primary_language') and to.primary_language: translation.activate(to.primary_language) kwargs.update({ 'receiver': to, ...
dd51e13a2a7b4e4005127ca0e409d0882179b39f
bluebottle/mail/__init__.py
bluebottle/mail/__init__.py
Python
<|file_sep|>original/rb-inotify.gemspec spec.platform = Gem::Platform::RUBY spec.summary = 'A Ruby wrapper for Linux inotify, using FFI' spec.authors = ['Natalie Weizenbaum', 'Samuel Williams'] spec.email = ['nex342@gmail.com', 'samuel.williams@oriontransfer.co.nz'] spec.homepage = 'https://...
spec.platform = Gem::Platform::RUBY spec.summary = 'A Ruby wrapper for Linux inotify, using FFI' spec.authors = ['Natalie Weizenbaum', 'Samuel Williams'] spec.email = ['nex342@gmail.com', 'samuel.williams@oriontransfer.co.nz'] spec.homepage = 'https://github.com/ioquatix/rb-inotify' spec.l...
<|file_sep|>original/rb-inotify.gemspec spec.platform = Gem::Platform::RUBY spec.summary = 'A Ruby wrapper for Linux inotify, using FFI' spec.authors = ['Natalie Weizenbaum', 'Samuel Williams'] spec.email = ['nex342@gmail.com', 'samuel.williams@oriontransfer.co.nz'] spec.homepage = 'https://...
ffcb45237cbb041846fb9b2d1472081fb079c7b5
rb-inotify.gemspec
rb-inotify.gemspec
Ruby
<|file_sep|>original/server/models/user.js }; User.prototype.validatePassword = (password, savedPassword) => { return bcrypt.compareSync(password, savedPassword); }; User.prototype.generateJWT = (id, role) => { return jwt.sign({ id, role, }, process.env.JWT_SECRET, { expiresIn: '24h' }...
}; User.prototype.validatePassword = (password, savedPassword) => { return bcrypt.compareSync(password, savedPassword); }; User.prototype.generateJWT = (id, role) => { return jwt.sign({ id, role, }, process.env.JWT_SECRET, { expiresIn: '72h' }); }; User.associate = (models) => { ...
<|file_sep|>original/server/models/user.js }; User.prototype.validatePassword = (password, savedPassword) => { return bcrypt.compareSync(password, savedPassword); }; User.prototype.generateJWT = (id, role) => { return jwt.sign({ id, role, }, process.env.JWT_SECRET, { expiresIn: '24h' }...
b27c7f950194ea577363b5fc61d8504f63eb857a
server/models/user.js
server/models/user.js
JavaScript
<|file_sep|>README.md.diff original: # Contributors updated: # Contributions ## Direct contributors <|file_sep|>original/README.md # Install 1. Open Chrome browser. 2. Download zip file on [GitHub](https://github.com/holyhope/Chrome-QRCodes "Chrome-QRCodes repository") 3. Extract it 4. then go to [chrome://extension...
5. Activate `Developer mode` 6. Click on `Load unpacked extension` 7. Enjoy ! # TODO List * Add transition on display and hide qrcodes. * Replace alert with something better in case of long url. * Write a better description. # Contributions ## Direct contributors * Project initiated and maintained by [Pierre Pronn...
<|file_sep|>README.md.diff original: # Contributors updated: # Contributions ## Direct contributors <|file_sep|>original/README.md # Install 1. Open Chrome browser. 2. Download zip file on [GitHub](https://github.com/holyhope/Chrome-QRCodes "Chrome-QRCodes repository") 3. Extract it 4. then go to [chrome://extension...
869141f10a67bbe629faf344a156ee89b9a80f1e
README.md
README.md
Markdown
<|file_sep|>api/base/exceptions.py.diff original: elif isinstance(message, (list, tuple)): for error in message: errors.append({'detail': error}) updated: <|file_sep|>original/api/base/exceptions.py if isinstance(message, dict): for key, value in message.iteri...
if isinstance(message, dict): for key, value in message.iteritems(): if key in top_level_error_keys: errors.append({key: value}) else: if isinstance(value, str): value = [value] error...
<|file_sep|>api/base/exceptions.py.diff original: elif isinstance(message, (list, tuple)): for error in message: errors.append({'detail': error}) updated: <|file_sep|>original/api/base/exceptions.py if isinstance(message, dict): for key, value in message.iteri...
5e7d73215d17aa52b6aae4dbb1d8e369d785b31d
api/base/exceptions.py
api/base/exceptions.py
Python
<|file_sep|>groker.go.diff original: "fmt" "flag" "bufio" "os" "encoding/json" "github.com/gemsi/grok" updated: "bufio" "encoding/json" "flag" "fmt" "os" "github.com/gemsi/grok" <|file_sep|>groker.go.diff original: pattern := flag.String("pattern", "%{GREEDYDATA:msg}", "a grok express...
flag.Parse() var g *grok.Grok if *namedcapture { g = grok.NewWithConfig(&grok.Config{NamedCapturesOnly: true}) } else { g = grok.New() } scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { line := scanner.Text() values, _ := g.Parse(*pattern, line) delete(values, "") encoded, _ := json.Ma...
<|file_sep|>groker.go.diff original: "fmt" "flag" "bufio" "os" "encoding/json" "github.com/gemsi/grok" updated: "bufio" "encoding/json" "flag" "fmt" "os" "github.com/gemsi/grok" <|file_sep|>groker.go.diff original: pattern := flag.String("pattern", "%{GREEDYDATA:msg}", "a grok express...
3bfd0189e135d14a3da6af7ee26638660dd80b63
groker.go
groker.go
Go
<|file_sep|>log_rewriter.awk.diff original: $1 = "" $2 = "" updated: <|file_sep|>original/log_rewriter.awk BEGIN{ now = systime() format = "%Y/%m/%d %H:%M:%S" } { split($1, DATE, "/") split($2, TIME, ":") $1 = "" $2 = "" t = mktim...
BEGIN{ now = systime() format = "%Y/%m/%d %H:%M:%S" } { split($1, DATE, "/") split($2, TIME, ":") t = mktime(DATE[1] " " DATE[2] " " DATE[3] " " TIME[1] " " TIME[2] " " TIME[3]) if (delta == "") { delta = now - t } out = st...
<|file_sep|>log_rewriter.awk.diff original: $1 = "" $2 = "" updated: <|file_sep|>original/log_rewriter.awk BEGIN{ now = systime() format = "%Y/%m/%d %H:%M:%S" } { split($1, DATE, "/") split($2, TIME, ":") $1 = "" $2 = "" t = mktim...
86e0f63ada393327a76f1ba5bdfc1e4ff633aa1b
log_rewriter.awk
log_rewriter.awk
Awk
<|file_sep|>README.md.diff original: Install **Harp** on **Arch Linux**: updated: Install **Harp** on **Arch Linux** / **Arch Linux 32**: <|file_sep|>original/README.md ``` Install **Harp** on **Ubuntu Server LTS x86-64**: ``` $ sudo npm i harp -g ... /usr/local/bin/harp -> /usr/local/lib/node_modules/harp/bin/harp ....
Install **Harp** on **Ubuntu Server LTS x86-64**: ``` $ sudo npm i harp -g ... /usr/local/bin/harp -> /usr/local/lib/node_modules/harp/bin/harp ... └─┬ harp@0.29.0 ``` Install **Harp** on **Arch Linux** / **Arch Linux 32**: ``` $ sudo npm i harp -g --unsafe-perm # <== Arch Linux $ sudo LIBSASS_EXT=...
<|file_sep|>README.md.diff original: Install **Harp** on **Arch Linux**: updated: Install **Harp** on **Arch Linux** / **Arch Linux 32**: <|file_sep|>original/README.md ``` Install **Harp** on **Ubuntu Server LTS x86-64**: ``` $ sudo npm i harp -g ... /usr/local/bin/harp -> /usr/local/lib/node_modules/harp/bin/harp ....
93b0686780c65cde7aa8ccf95409497638b34aa8
README.md
README.md
Markdown
<|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff original: updated: import Faker <|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff original: updated: let faker = Faker() <|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff orig...
title = post!.text let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC))) dispatch_after(delayTime, dispatch_get_main_queue()) { self.posts = self.generatePosts(1, to: 3) } } func generatePosts(from: Int, to: Int) -> [Post] { var posts = [Post]() va...
<|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff original: updated: import Faker <|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff original: updated: let faker = Faker() <|file_sep|>Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift.diff orig...
4cf089178b651654520643c6ddeb6e39f87d59d5
Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift
Demos/InfiniteScroll/InfiniteScroll/DetailViewController.swift
Swift
<|file_sep|>original/lib/tasks/uploader.rake #domain = DomainGenerator.generate_domain_hash args[:name] #puts "# Domain correctly generated!" domain_hash = { "project_name" => args[:name] } domain = RailsERD::Domain.generate() domain_hash.merge!({ "models" => domain.entities.map(&:name) }) gra...
#domain = DomainGenerator.generate_domain_hash args[:name] #puts "# Domain correctly generated!" domain_hash = { "project_name" => args[:name] } domain = RailsERD::Domain.generate() domain_hash.merge!({ "models" => domain.entities.map(&:name) }) graph = GraphGenerator.generate_graph(domain) ...
<|file_sep|>original/lib/tasks/uploader.rake #domain = DomainGenerator.generate_domain_hash args[:name] #puts "# Domain correctly generated!" domain_hash = { "project_name" => args[:name] } domain = RailsERD::Domain.generate() domain_hash.merge!({ "models" => domain.entities.map(&:name) }) gra...
a75a272334158dfa83bffa2c6bbbd6dd8b145edd
lib/tasks/uploader.rake
lib/tasks/uploader.rake
Ruby
<|file_sep|>original/foosball/templates/pages/about.jinja {% extends "base.jinja" %} {% block nav_about %}active{% endblock %} <|file_sep|>current/foosball/templates/pages/about.jinja {% extends "base.jinja" %} {% block nav_about %}active{% endblock %} <|file_sep|>updated/foosball/templates/pages/about.jinja
{% extends "base.jinja" %} {% block nav_about %}active{% endblock %} {% block content %} <ul> <li><a href="http://www.table-soccer.org/">{ _("International Table Soccer Federation") }</a></li> <li><a href="http://www.table-soccer.org/rules/documents/2016_Rulebook.pdf">{ _("Official ITSF Rulebook 2016") }</a...
<|file_sep|>original/foosball/templates/pages/about.jinja {% extends "base.jinja" %} {% block nav_about %}active{% endblock %} <|file_sep|>current/foosball/templates/pages/about.jinja {% extends "base.jinja" %} {% block nav_about %}active{% endblock %} <|file_sep|>updated/foosball/templates/pages/about.jinja {% exten...
3ef1dea60cfb68a72c31619b8399aa8fc491fdfc
foosball/templates/pages/about.jinja
foosball/templates/pages/about.jinja
HTML+Django
<|file_sep|>original/packages/fi/fib.yaml homepage: https://github.com/chessai/fib changelog-type: markdown hash: 29347a6b1ca2d76a1235b3b001730f5ac8d83f9db07cd2f1ee91cb83edd11128 test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Ve...
homepage: https://github.com/chessai/fib changelog-type: markdown hash: 908695e8f5089f0b9ad05ba663a407c269c0553e9cd913a64f1b2543238427de test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Versioning][1]. The changelog is available...
<|file_sep|>original/packages/fi/fib.yaml homepage: https://github.com/chessai/fib changelog-type: markdown hash: 29347a6b1ca2d76a1235b3b001730f5ac8d83f9db07cd2f1ee91cb83edd11128 test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Ve...
6665be92c5f9da47f9ae49342768e87cd21b772d
packages/fi/fib.yaml
packages/fi/fib.yaml
YAML
<|file_sep|>src/pose.py.diff original: from nav_msgs.msg import Odometry updated: from geometry_msgs.msg import Twist <|file_sep|>original/src/pose.py #!/usr/bin/env python import rospy from nav_msgs.msg import Odometry publisher = None def send_computed_control_actions(msg): publisher.publish(msg) if __nam...
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist publisher = None def send_computed_control_actions(msg): publisher.publish(msg) if __name__ == '__main__': rospy.init_node('twist') subscriber = rospy.Subscriber('computed_control_actions', Twist, send_computed_control_actions) ...
<|file_sep|>src/pose.py.diff original: from nav_msgs.msg import Odometry updated: from geometry_msgs.msg import Twist <|file_sep|>original/src/pose.py #!/usr/bin/env python import rospy from nav_msgs.msg import Odometry publisher = None def send_computed_control_actions(msg): publisher.publish(msg) if __nam...
244e760f27303fcfad220d364cd2d40f3de1cc99
src/pose.py
src/pose.py
Python
<|file_sep|>original/infra/adaptors/snapshot/parameters.xml <parameters> <shared> <results.dir value="${checkouts.dir}/snapshot/results"/> <arch.dir value="${cc.log.dir}"/> <jre value="${checkouts.dir}/snapshot/hdk/jdk/jre"/> <jdk value="${checkouts.dir}/snapshot/hdk/jdk"/> ...
<parameters> <shared> <arch.dir value="${cc.log.dir}"/> <jre value="${checkouts.dir}/snapshot/hdk/jdk/jre"/> <jdk value="${checkouts.dir}/snapshot/hdk/jdk"/> <hdk value="${checkouts.dir}/snapshot/hdk"/> <jvm.location value="${checkouts.dir}/snapshot/hdk/jdk/jre/bin/java${exe...
<|file_sep|>original/infra/adaptors/snapshot/parameters.xml <parameters> <shared> <results.dir value="${checkouts.dir}/snapshot/results"/> <arch.dir value="${cc.log.dir}"/> <jre value="${checkouts.dir}/snapshot/hdk/jdk/jre"/> <jdk value="${checkouts.dir}/snapshot/hdk/jdk"/> ...
190201d2abf3abf028484034dad6f4d6c4445b8c
infra/adaptors/snapshot/parameters.xml
infra/adaptors/snapshot/parameters.xml
XML
<|file_sep|>original/src/Controller.php * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissio...
* * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language gov...
<|file_sep|>original/src/Controller.php * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissio...
f57efa0d8311e847b5adf6427955841c66a5090c
src/Controller.php
src/Controller.php
PHP
<|file_sep|>original/generate-wrapper.sh #!/bin/bash # # Recursive swift code wrapper generator for gobject-introspection (.gir) files. # This calls the non-recursive gir-to-swift.sh to do the heavy lifting. # . ./config.sh ./package.sh resolve if ! pushd .build/gir2swift >/dev/null 2>&1 ; then mkdir -p .build pushd ...
#!/bin/bash # # Recursive swift code wrapper generator for gobject-introspection (.gir) files. # This calls the non-recursive gir-to-swift.sh to do the heavy lifting. # . ./config.sh ./package.sh update if ! pushd .build/gir2swift >/dev/null 2>&1 ; then mkdir -p .build pushd .build >/dev/null git clone https://githu...
<|file_sep|>original/generate-wrapper.sh #!/bin/bash # # Recursive swift code wrapper generator for gobject-introspection (.gir) files. # This calls the non-recursive gir-to-swift.sh to do the heavy lifting. # . ./config.sh ./package.sh resolve if ! pushd .build/gir2swift >/dev/null 2>&1 ; then mkdir -p .build pushd ...
c28ddce4b9dc3524a25e949f6cf62b5d5c6249ff
generate-wrapper.sh
generate-wrapper.sh
Shell
<|file_sep|>original/.emacs.d/config/options.el ; don't show menu bar (menu-bar-mode -1) ; be more interactive ;) (ido-mode 1) ; show line number (global-linum-mode 1) (setq linum-format "%4d ") ; display column number in status bar (setq column-number-mode t) ; show matching pairs of parentheses (show-paren-mode ...
(ido-mode 1) ; show line number (global-linum-mode 1) (setq linum-format "%4d ") ; display column number in status bar (setq column-number-mode t) ; show matching pairs of parentheses (show-paren-mode 1) (setq show-paren-delay 0) ; when splitting screen try to put new window on bottom (setq split-height-threshold 0...
<|file_sep|>original/.emacs.d/config/options.el ; don't show menu bar (menu-bar-mode -1) ; be more interactive ;) (ido-mode 1) ; show line number (global-linum-mode 1) (setq linum-format "%4d ") ; display column number in status bar (setq column-number-mode t) ; show matching pairs of parentheses (show-paren-mode ...
6480f08affe5b2b71aceaf35a9a7c5f1c9b42a5c
.emacs.d/config/options.el
.emacs.d/config/options.el
Emacs Lisp
<|file_sep|>original/pivo.gemspec Gem::Specification.new do |spec| spec.name = "pivo" spec.version = Pivo::VERSION spec.authors = ["AKAMATSU Yuki"] spec.email = ["y.akamatsu@ukstudio.jp"] spec.summary = %q{for pivotal tracker} spec.description = %q{for pivotal tracker} ...
Gem::Specification.new do |spec| spec.name = "pivo" spec.version = Pivo::VERSION spec.authors = ["AKAMATSU Yuki"] spec.email = ["y.akamatsu@ukstudio.jp"] spec.summary = %q{for pivotal tracker} spec.description = %q{for pivotal tracker} spec.homepage = "https://git...
<|file_sep|>original/pivo.gemspec Gem::Specification.new do |spec| spec.name = "pivo" spec.version = Pivo::VERSION spec.authors = ["AKAMATSU Yuki"] spec.email = ["y.akamatsu@ukstudio.jp"] spec.summary = %q{for pivotal tracker} spec.description = %q{for pivotal tracker} ...
cb03ba75136c7704f1d647990c2051e956f561ad
pivo.gemspec
pivo.gemspec
Ruby
<|file_sep|>original/public/javascripts/game.photography.coffee jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> return <|file_sep|>current/public/javascripts/game.photography.coffee jQuery(document).ready -> class photographyGame constructor: (@debug, @map) ...
jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> class location constructor: (@position, @name, @icon) -> @marker addTo: (map) -> if @icon marker = new google.maps.Marker({ position: @position, map: map, i...
<|file_sep|>original/public/javascripts/game.photography.coffee jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> return <|file_sep|>current/public/javascripts/game.photography.coffee jQuery(document).ready -> class photographyGame constructor: (@debug, @map) ...
d48aa6deaee0beb09453486fddf2689a1678951f
public/javascripts/game.photography.coffee
public/javascripts/game.photography.coffee
CoffeeScript
<|file_sep|>.travis.yml.diff original: - PUPPET_GEM_VERSION="~> 3.8.0" STRICT_VARIABLES=yes FUTURE_PARSER=yes updated: <|file_sep|>original/.travis.yml --- language: ruby bundler_args: --without development before_install: - rm Gemfile.lock || true - gem update bundler rvm: - 2.0.0 - 2.1.0 - 2.2.0 - 2.3....
--- language: ruby bundler_args: --without development before_install: - rm Gemfile.lock || true - gem update bundler rvm: - 2.0.0 - 2.1.0 - 2.2.0 - 2.3.0 script: bundle exec rake test env: - PUPPET_GEM_VERSION="~> 4.0.0" STRICT_VARIABLES=yes - PUPPET_GEM_VERSION="~> 4.6.0" STRICT_VARIABLES=yes - PUPP...
<|file_sep|>.travis.yml.diff original: - PUPPET_GEM_VERSION="~> 3.8.0" STRICT_VARIABLES=yes FUTURE_PARSER=yes updated: <|file_sep|>original/.travis.yml --- language: ruby bundler_args: --without development before_install: - rm Gemfile.lock || true - gem update bundler rvm: - 2.0.0 - 2.1.0 - 2.2.0 - 2.3....
0cf9ce3f36d7955e74ec2c1283920bc77585e315
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md TileMill is a modern map design studio powered by open source technology. Installation instructions, development docs and other information are available at [tilemill.com](http://tilemill.com). <|file_sep|>current/README.md TileMill is a modern map design studio powered by open source tec...
TileMill is a modern map design studio powered by open source technology. Installation instructions, development docs and other information are now available at `index.html` or [tilemill.com](http://tilemill.com).
<|file_sep|>original/README.md TileMill is a modern map design studio powered by open source technology. Installation instructions, development docs and other information are available at [tilemill.com](http://tilemill.com). <|file_sep|>current/README.md TileMill is a modern map design studio powered by open source tec...
a60b5ac440f54fbd5b7eafcf411fb5df91ae498f
README.md
README.md
Markdown
<|file_sep|>original/app/views/projets/_projet.haml .projet .contenu = link_to '', projet_path(projet), class: 'clic-fiche' %h2= projet.titre %h4= projet.objectif %p= projet.description.truncate(120) .bandeau %p Emilien A. <|file_sep|>current/app/views/projets/_projet.haml .projet .contenu ...
.projet .contenu = link_to '', projet_path(projet), class: 'clic-fiche' %h2= projet.titre %h4= projet.objectif %p= projet.description.try(:truncate, 120) .bandeau %p Emilien A.
<|file_sep|>original/app/views/projets/_projet.haml .projet .contenu = link_to '', projet_path(projet), class: 'clic-fiche' %h2= projet.titre %h4= projet.objectif %p= projet.description.truncate(120) .bandeau %p Emilien A. <|file_sep|>current/app/views/projets/_projet.haml .projet .contenu ...
2a79515c38cd1e342eec5e36180cd53dbe5c6245
app/views/projets/_projet.haml
app/views/projets/_projet.haml
Haml
<|file_sep|>original/Modules/ToFProcessing/Testing/CMakeLists.txt MITK_CREATE_MODULE_TESTS() if(BUILD_TESTING AND MODULE_IS_ENABLED) mitkAddCustomModuleTest("mitkToFImageDownsamplingFilterTest" #name of the test "mitkToFImageDownsamplingFilterTest" #call the corresponding test "PMDCamCube2_MF0_IT0_20...
MITK_CREATE_MODULE_TESTS() if(BUILD_TESTING AND MODULE_IS_ENABLED) mitkAddCustomModuleTest(mitkToFImageDownsamplingFilterTest_20 mitkToFImageDownsamplingFilterTest PMDCamCube2_MF0_IT0_20Images_DistanceImage.pic) mitkAddCustomModuleTest(mitkToFImageDownsamplingFilterTest_1 mitkToFImageDownsamplingFilterTest PMDCam...
<|file_sep|>original/Modules/ToFProcessing/Testing/CMakeLists.txt MITK_CREATE_MODULE_TESTS() if(BUILD_TESTING AND MODULE_IS_ENABLED) mitkAddCustomModuleTest("mitkToFImageDownsamplingFilterTest" #name of the test "mitkToFImageDownsamplingFilterTest" #call the corresponding test "PMDCamCube2_MF0_IT0_20...
afd380212f8e7678decd0b7d1e747065ae4cdd37
Modules/ToFProcessing/Testing/CMakeLists.txt
Modules/ToFProcessing/Testing/CMakeLists.txt
Text
<|file_sep|>original/requirements.txt dj-database-url==0.5.0 Django==1.11.15 django-cors-middleware==1.3.1 django-crispy-forms==1.7.2 django-filter==1.1.0 django-guardian==1.4.9 django-model-utils==3.1.1 djangorestframework==3.8.2 djoser==0.7.0 djangorestframework-jwt==1.11.0 gunicorn==19.9.0 psycopg2==2.7.5 pytz==2018...
dj-database-url==0.5.0 Django==1.11.15 django-cors-middleware==1.3.1 django-crispy-forms==1.7.2 django-filter==1.1.0 django-guardian==1.4.9 django-model-utils==3.1.1 djangorestframework==3.8.2 djoser==0.7.0 djangorestframework-jwt==1.11.0 gunicorn==19.9.0 psycopg2==2.7.5 pytz==2018.5 requests==2.19.1 requests-mock==1.5...
<|file_sep|>original/requirements.txt dj-database-url==0.5.0 Django==1.11.15 django-cors-middleware==1.3.1 django-crispy-forms==1.7.2 django-filter==1.1.0 django-guardian==1.4.9 django-model-utils==3.1.1 djangorestframework==3.8.2 djoser==0.7.0 djangorestframework-jwt==1.11.0 gunicorn==19.9.0 psycopg2==2.7.5 pytz==2018...
ec42740e2236533ea8d59ea62cd061f88b06a93d
requirements.txt
requirements.txt
Text
<|file_sep|>original/roles/profile/tasks/main.yml --- - name: Create bin directory file: path=~/bin state=directory - name: Copy provision script template: src=provision.sh dest=~/bin/provision.sh mode=0744 - name: Set zsh as default shell command: chsh -s '/bin/zsh' - name: Copy .zshenv ...
--- - name: Create bin directory file: path=~/bin state=directory - name: Copy provision script template: src=provision.sh dest=~/bin/provision.sh mode=0744 # - name: Set zsh as default shell # command: chsh -s '/bin/zsh' - name: Copy .zshenv template: src=.zshenv dest=~/.zshenv - na...
<|file_sep|>original/roles/profile/tasks/main.yml --- - name: Create bin directory file: path=~/bin state=directory - name: Copy provision script template: src=provision.sh dest=~/bin/provision.sh mode=0744 - name: Set zsh as default shell command: chsh -s '/bin/zsh' - name: Copy .zshenv ...
3e4a7ac4edaec82343cd3a9b0e4ab9eba3f08f3c
roles/profile/tasks/main.yml
roles/profile/tasks/main.yml
YAML
<|file_sep|>original/lib/meetupanator.rb require 'meetupanator/app' require 'meetupanator/event_finder' require 'meetupanator/event_list_file_writer' require 'meetupanator/meetup_api' require 'meetupanator/version' require 'meetupanator/input_file_reader' <|file_sep|>current/lib/meetupanator.rb require 'meetupanator/ap...
require 'meetupanator/app' require 'meetupanator/cli' require 'meetupanator/event_finder' require 'meetupanator/event_list_file_writer' require 'meetupanator/meetup_api' require 'meetupanator/version' require 'meetupanator/input_file_reader'
<|file_sep|>original/lib/meetupanator.rb require 'meetupanator/app' require 'meetupanator/event_finder' require 'meetupanator/event_list_file_writer' require 'meetupanator/meetup_api' require 'meetupanator/version' require 'meetupanator/input_file_reader' <|file_sep|>current/lib/meetupanator.rb require 'meetupanator/ap...
a8a6974d065cd70705aac5645c398f833967606e
lib/meetupanator.rb
lib/meetupanator.rb
Ruby
<|file_sep|>original/deploy-devstack.sh <|file_sep|>current/deploy-devstack.sh <|file_sep|>updated/deploy-devstack.sh
set timeout 160 spawn /usr/bin/ssh [lindex $argv 0]@[lindex $argv 1] expect "$ " send "git clone https://github.com/openstack-dev/devstack\r" expect "$ " send "touch devstack/localrc\r" expect "$ " send "echo \"ADMIN_PASSWORD=111\" >> devstack/localrc\r" expect "$ " send "echo \"MYSQL_PASSWORD=111\" >> devstack/localr...
<|file_sep|>original/deploy-devstack.sh <|file_sep|>current/deploy-devstack.sh <|file_sep|>updated/deploy-devstack.sh set timeout 160 spawn /usr/bin/ssh [lindex $argv 0]@[lindex $argv 1] expect "$ " send "git clone https://github.com/openstack-dev/devstack\r" expect "$ " send "touch devstack/localrc\r" expect "$ " s...
c859e7772f260c0d680463d9e43a9188d8c69cc4
deploy-devstack.sh
deploy-devstack.sh
Shell
<|file_sep|>original/cli/CMakeLists.txt endif(UNIX) link_directories(${MonkeyCAM_BINARY_DIR}/util) link_directories(${MonkeyCAM_BINARY_DIR}/core) link_directories(${MonkeyCAM_BINARY_DIR}/clipper) add_executable(MonkeyCAM monkey-cam.cpp ) target_link_libraries(MonkeyCAM util core clipper...
endif(UNIX) link_directories(${MonkeyCAM_BINARY_DIR}/util) link_directories(${MonkeyCAM_BINARY_DIR}/core) link_directories(${MonkeyCAM_BINARY_DIR}/clipper) add_executable(MonkeyCAM monkey-cam.cpp ) target_link_libraries(MonkeyCAM core clipper util) install(CODE " message(\"Signing ${...
<|file_sep|>original/cli/CMakeLists.txt endif(UNIX) link_directories(${MonkeyCAM_BINARY_DIR}/util) link_directories(${MonkeyCAM_BINARY_DIR}/core) link_directories(${MonkeyCAM_BINARY_DIR}/clipper) add_executable(MonkeyCAM monkey-cam.cpp ) target_link_libraries(MonkeyCAM util core clipper...
e3603380d91f370072a4ea0e53fa94484514104f
cli/CMakeLists.txt
cli/CMakeLists.txt
Text
<|file_sep|>original/Ductus.FluentDocker/Model/Containers/ContainerState.cs // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; ...
// ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; } public bool Restarting { get; set; } public bool OOMKilled { get; ...
<|file_sep|>original/Ductus.FluentDocker/Model/Containers/ContainerState.cs // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; ...
d8022904aaaa686d25c44a4d33b8848ca7476871
Ductus.FluentDocker/Model/Containers/ContainerState.cs
Ductus.FluentDocker/Model/Containers/ContainerState.cs
C#
<|file_sep|>original/src/AbstractSerializer.php } /** * {@inheritdoc} * * @throws LogicException */ public function getRelationship($model, $name) { if (method_exists($this, $name)) { $relationship = $this->$name($model); if (! ($relationship instanc...
} /** * {@inheritdoc} * * @throws LogicException */ public function getRelationship($model, $name) { if (method_exists($this, $name)) { $relationship = $this->$name($model); if ($relationship !== null && ! ($relationship instanceof Relationship)) { ...
<|file_sep|>original/src/AbstractSerializer.php } /** * {@inheritdoc} * * @throws LogicException */ public function getRelationship($model, $name) { if (method_exists($this, $name)) { $relationship = $this->$name($model); if (! ($relationship instanc...
78f02bd9b8720287fedfb4b79f4ab59db8edc61e
src/AbstractSerializer.php
src/AbstractSerializer.php
PHP
<|file_sep|>original/azure-pipelines.yml - '*' pr: branches: include: - '*' jobs: - job: typecheck pool: vmImage: 'ubuntu-16.04' container: mdernst/cf-ubuntu-jdk8:latest strategy: matrix: formatterJob: typechecker: formatter indexJob: typechecker: index in...
- '*' pr: branches: include: - '*' jobs: - job: typecheck pool: vmImage: 'ubuntu-latest' container: mdernst/cf-ubuntu-jdk8:latest strategy: matrix: formatterJob: typechecker: formatter indexJob: typechecker: index interningJob: typechecker: interni...
<|file_sep|>original/azure-pipelines.yml - '*' pr: branches: include: - '*' jobs: - job: typecheck pool: vmImage: 'ubuntu-16.04' container: mdernst/cf-ubuntu-jdk8:latest strategy: matrix: formatterJob: typechecker: formatter indexJob: typechecker: index in...
3da9f053de1e9d3816c5b9437f399266ceea3f6c
azure-pipelines.yml
azure-pipelines.yml
YAML
<|file_sep|>test/path/end-with-slash.js.diff original: var normalize = require('../../lib/path/normalize') updated: var join = require('path').join <|file_sep|>original/test/path/end-with-slash.js 'use strict'; var normalize = require('../../lib/path/normalize') , separator = require('../../lib/path/separator')...
'use strict'; var join = require('path').join , separator = require('../../lib/path/separator'); module.exports = function (t, a) { a(t('raz/dwa/'), join('raz/dwa') + separator, "With ending slash"); a(t('/raz/dwa'), join('/raz/dwa') + separator, "Without ending slash"); a(t(''), '', "Empty"); a(t('/'), se...
<|file_sep|>test/path/end-with-slash.js.diff original: var normalize = require('../../lib/path/normalize') updated: var join = require('path').join <|file_sep|>original/test/path/end-with-slash.js 'use strict'; var normalize = require('../../lib/path/normalize') , separator = require('../../lib/path/separator')...
09b28b8da6e663edfeff4dce9de5aa6f01bb0341
test/path/end-with-slash.js
test/path/end-with-slash.js
JavaScript
<|file_sep|>original/support/cas-server-support-token-core/src/main/java/org/apereo/cas/token/config/TokenCoreConfiguration.java package org.apereo.cas.token.config; import org.apereo.cas.configuration.CasConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import ...
package org.apereo.cas.token.config; import org.apereo.cas.configuration.CasConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Configuration; /** * This is {@link TokenCoreConfiguration}. * * @author Misagh Moayye...
<|file_sep|>original/support/cas-server-support-token-core/src/main/java/org/apereo/cas/token/config/TokenCoreConfiguration.java package org.apereo.cas.token.config; import org.apereo.cas.configuration.CasConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import ...
7b8b761caa2184fac773531cb040451d59dc80aa
support/cas-server-support-token-core/src/main/java/org/apereo/cas/token/config/TokenCoreConfiguration.java
support/cas-server-support-token-core/src/main/java/org/apereo/cas/token/config/TokenCoreConfiguration.java
Java
<|file_sep|>original/composer.json "type": "library", "description": "A client for the Salesforce REST API", "keywords": [ "salesforce", "rest", "force.com", "web services" ], "license": "MIT", "authors": [ { "name": "David de Boer", "email": "david@ddeboer.nl" ...
"type": "library", "description": "A client for the Salesforce REST API", "keywords": [ "salesforce", "rest", "force.com", "web services" ], "license": "MIT", "authors": [ { "name": "David de Boer", "email": "david@ddeboer.nl" } ], "require": { ...
<|file_sep|>original/composer.json "type": "library", "description": "A client for the Salesforce REST API", "keywords": [ "salesforce", "rest", "force.com", "web services" ], "license": "MIT", "authors": [ { "name": "David de Boer", "email": "david@ddeboer.nl" ...
63bbcf7ebe045f7d338e6a8ee59d5437221dda9b
composer.json
composer.json
JSON
<|file_sep|>original/CMakeModules/UseTriangle.cmake find_library (TRIANGLE_LIBRARY NAMES triangle TRIANGLE DOC "Location of the Triangle package") find_path (TRIANGLE_INCLUDE_DIR triangle.h PATH_SUFFIXES triangle) # TODO: Fail if triangle is not found, or perhaps compile without TriangularDecompositions if (TRIANGLE_L...
find_path (TRIANGLE_INCLUDE_DIR triangle.h PATH_SUFFIXES triangle) # TODO: Fail if triangle is not found, or perhaps compile without TriangularDecompositions if (TRIANGLE_LIBRARY AND TRIANGLE_INCLUDE_DIR) find_package_handle_standard_args(triangle DEFAULT_MSG TRIANGLE_LIBRARY TRIANGLE_INCLUDE_DIR) message (STA...
<|file_sep|>original/CMakeModules/UseTriangle.cmake find_library (TRIANGLE_LIBRARY NAMES triangle TRIANGLE DOC "Location of the Triangle package") find_path (TRIANGLE_INCLUDE_DIR triangle.h PATH_SUFFIXES triangle) # TODO: Fail if triangle is not found, or perhaps compile without TriangularDecompositions if (TRIANGLE_L...
e098865f11a6a597ac9b47dc47683c85281828b3
CMakeModules/UseTriangle.cmake
CMakeModules/UseTriangle.cmake
CMake
<|file_sep|>original/Week9_VecAddition_With_OpenACC/main.c <|file_sep|>current/Week9_VecAddition_With_OpenACC/main.c <|file_sep|>updated/Week9_VecAddition_With_OpenACC/main.c
#include <wb.h> int main(int argc, char** argv) { wbArg_t args; int inputLength; float* h_A; float* h_B; float* h_O; args = wbArg_read(argc, argv); wbTime_start(Generic, "Importing data and creating memory on host"); h_A = (float*)wbImport(wbArg_getInputFile(args, 0), &inputLength); ...
<|file_sep|>original/Week9_VecAddition_With_OpenACC/main.c <|file_sep|>current/Week9_VecAddition_With_OpenACC/main.c <|file_sep|>updated/Week9_VecAddition_With_OpenACC/main.c #include <wb.h> int main(int argc, char** argv) { wbArg_t args; int inputLength; float* h_A; float* h_B; float* h_O; ...
27d40160f8b2ab19ff6114d4598ff21d972b2fb5
Week9_VecAddition_With_OpenACC/main.c
Week9_VecAddition_With_OpenACC/main.c
C
<|file_sep|>spec/aws/url_spec.rb.diff original: updated: <|file_sep|>spec/aws/url_spec.rb.diff original: should { include @base_url } updated: should include @base_url <|file_sep|>spec/aws/url_spec.rb.diff original: should { match /Signature=[^&]+$/ } updated: should match /Signature=[...
it 'includes a signature version' do should include 'SignatureVersion' end it 'includes a signature method' do should include 'SignatureMethod' end it 'includes a timestamp' do should include 'Timestamp' end end describe '#update' do it 'upda...
<|file_sep|>spec/aws/url_spec.rb.diff original: updated: <|file_sep|>spec/aws/url_spec.rb.diff original: should { include @base_url } updated: should include @base_url <|file_sep|>spec/aws/url_spec.rb.diff original: should { match /Signature=[^&]+$/ } updated: should match /Signature=[...
9be9568dd77d963fba019adbea221085e45bf4a8
spec/aws/url_spec.rb
spec/aws/url_spec.rb
Ruby
<|file_sep|>metadata/tk.giesecke.disaster_radio.yml.diff original: updated: - versionName: '1.7' versionCode: 17 commit: '1.7' subdir: app gradle: - yes <|file_sep|>original/metadata/tk.giesecke.disaster_radio.yml Repo: https://github.com/beegee-tokyo/disaster-radio-android.git Builds: - ve...
gradle: - yes - versionName: '1.5' versionCode: 15 commit: '1.5' subdir: app gradle: - yes - versionName: '1.7' versionCode: 17 commit: '1.7' subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags CurrentVersion: '1.7' CurrentVersionCode: ...
<|file_sep|>metadata/tk.giesecke.disaster_radio.yml.diff original: updated: - versionName: '1.7' versionCode: 17 commit: '1.7' subdir: app gradle: - yes <|file_sep|>original/metadata/tk.giesecke.disaster_radio.yml Repo: https://github.com/beegee-tokyo/disaster-radio-android.git Builds: - ve...
b8a8c2268d71c045e8e8cdca7925653400385824
metadata/tk.giesecke.disaster_radio.yml
metadata/tk.giesecke.disaster_radio.yml
YAML
<|file_sep|>original/util/tarsnap-gui.rb class TarsnapGui < Formula desc "Cross-platform GUI front-end for the Tarsnap command-line client." homepage "https://github.com/Tarsnap/tarsnap-gui/wiki/Tarsnap" url "https://github.com/Tarsnap/tarsnap-gui/archive/v1.0.1.tar.gz" sha256 "502e53a4eacb2795bfbe62b9e6ef236cc...
class TarsnapGui < Formula desc "Cross-platform GUI front-end for the Tarsnap command-line client." homepage "https://github.com/Tarsnap/tarsnap-gui/wiki/Tarsnap" url "https://github.com/Tarsnap/tarsnap-gui/archive/v1.0.2.tar.gz" sha256 "3b271f474abc0bbeb3d5d62ee76b82785c7d64145e6e8b51fa7907b724c83eae" head "...
<|file_sep|>original/util/tarsnap-gui.rb class TarsnapGui < Formula desc "Cross-platform GUI front-end for the Tarsnap command-line client." homepage "https://github.com/Tarsnap/tarsnap-gui/wiki/Tarsnap" url "https://github.com/Tarsnap/tarsnap-gui/archive/v1.0.1.tar.gz" sha256 "502e53a4eacb2795bfbe62b9e6ef236cc...
7f3fe559f9c727a7363fe8d676270a9bb44e4893
util/tarsnap-gui.rb
util/tarsnap-gui.rb
Ruby
<|file_sep|>original/build.sbt import play.PlayImport.PlayKeys._ name := "lib-play" organization := "io.flow" scalaVersion in ThisBuild := "2.11.7" crossScalaVersions := Seq("2.11.7") version := "0.0.34" lazy val root = project .in(file(".")) .enablePlugins(PlayScala) .settings( libraryDependencies ++= ...
import play.PlayImport.PlayKeys._ name := "lib-play" organization := "io.flow" scalaVersion in ThisBuild := "2.11.7" crossScalaVersions := Seq("2.11.7") version := "0.0.35" lazy val root = project .in(file(".")) .enablePlugins(PlayScala) .settings( libraryDependencies ++= Seq( ws, "org.scala...
<|file_sep|>original/build.sbt import play.PlayImport.PlayKeys._ name := "lib-play" organization := "io.flow" scalaVersion in ThisBuild := "2.11.7" crossScalaVersions := Seq("2.11.7") version := "0.0.34" lazy val root = project .in(file(".")) .enablePlugins(PlayScala) .settings( libraryDependencies ++= ...
99db61559985a36df78e440941cb33b18584e18a
build.sbt
build.sbt
Scala
<|file_sep|>original/setup/environment36.yml - arrow=0.12.1 - attrdict=2.0.0 - cheroot=6.2.*=py36_0 - future=0.16.0 - geojson=2.3.0 - google-auth=1.2.1 - jsonpickle=0.9.6 - numpy=1.12.1=py36_0 - pandas=0.20.1=np112py36_0 - pip=9.0.1=py36_1 - python=3.6.* - python-dateutil=2.6.0=py36_0 - pytz=2017.2=py36_0 - requests=2....
- arrow=0.12.1 - attrdict=2.0.0 - cheroot=6.2.*=py36_0 - future=0.16.0 - geojson=2.3.0 - google-auth=1.2.1 - jsonpickle=0.9.6 - numpy=1.12.1=py36_0 - pandas=0.20.1=np112py36_0 - pip=9.0.1=py36_1 - python=3.6.1=2 - python-dateutil=2.6.0=py36_0 - pytz=2017.2=py36_0 - requests=2.14.2=py36_0 - scikit-learn=0.18.1=np112py36...
<|file_sep|>original/setup/environment36.yml - arrow=0.12.1 - attrdict=2.0.0 - cheroot=6.2.*=py36_0 - future=0.16.0 - geojson=2.3.0 - google-auth=1.2.1 - jsonpickle=0.9.6 - numpy=1.12.1=py36_0 - pandas=0.20.1=np112py36_0 - pip=9.0.1=py36_1 - python=3.6.* - python-dateutil=2.6.0=py36_0 - pytz=2017.2=py36_0 - requests=2....
249010d1ed2ed16978bcdd01999eba8305085b7c
setup/environment36.yml
setup/environment36.yml
YAML
<|file_sep|>original/zsh/config.zsh export PATH=$HOME/.bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH # Source the super-secret .localrc file if it's there. [[ -s ~/.localrc ]] && source ~/.localrc # Add rbenv to PATH. export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" # And set ...
# Source the super-secret .localrc file if it's there. [[ -s ~/.localrc ]] && source ~/.localrc # Add rbenv to PATH. export PATH="$HOME/.rbenv/bin:$PATH" if hash rbenv &> /dev/null; then eval "$(rbenv init -)" fi # And set the editor as MacVim if available, vim if not. if hash mvim &> /dev/null; ...
<|file_sep|>original/zsh/config.zsh export PATH=$HOME/.bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH # Source the super-secret .localrc file if it's there. [[ -s ~/.localrc ]] && source ~/.localrc # Add rbenv to PATH. export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" # And set ...
6c445c74e61bc7648a38cb18cf4b147186b39c5c
zsh/config.zsh
zsh/config.zsh
Shell
<|file_sep|>original/blog/_posts/2012-12-14-profiler-updated-with-zoomable-timeline.md --- title: Profiler updated with zoomable timeline authors: - david-hasather tags: - dragonfly license: cc-by-3.0 --- <p>Today we&#39;re releasing an update to the profiler, which now offers variable zooming capabilities. Above the ...
--- title: Profiler updated with zoomable timeline authors: - david-hasather tags: - dragonfly license: cc-by-3.0 --- Today we’re releasing an update to the profiler, which now offers variable zooming capabilities. Above the main timeline, there is now a mini-timeline where all events are shown. To zoom in on a specif...
<|file_sep|>original/blog/_posts/2012-12-14-profiler-updated-with-zoomable-timeline.md --- title: Profiler updated with zoomable timeline authors: - david-hasather tags: - dragonfly license: cc-by-3.0 --- <p>Today we&#39;re releasing an update to the profiler, which now offers variable zooming capabilities. Above the ...
b8fd5c63e2ee073b848446e2cacbf5e577e335a0
blog/_posts/2012-12-14-profiler-updated-with-zoomable-timeline.md
blog/_posts/2012-12-14-profiler-updated-with-zoomable-timeline.md
Markdown
<|file_sep|>original/shared/config.json { "collector": { "host": "192.168.1.100", "port": 3000 }, "trigger": { "triggerPin": 16, "echoPin": 18, "distanceThresholdCm": 10, "logDistance": true }, "printer": { "outputDir": "/tmp", "noPrintTimeoutSecs": 2 }, "snapper": { "i...
{ "collector": { "host": "192.168.1.100", "port": 3000 }, "trigger": { "triggerPin": 16, "echoPin": 18, "distanceThresholdCm": 100, "logDistance": false }, "printer": { "outputDir": "/tmp", "noPrintTimeoutSecs": 2 }, "snapper": { "imageBasePath": "/home/pi/whe/emitter/s...
<|file_sep|>original/shared/config.json { "collector": { "host": "192.168.1.100", "port": 3000 }, "trigger": { "triggerPin": 16, "echoPin": 18, "distanceThresholdCm": 10, "logDistance": true }, "printer": { "outputDir": "/tmp", "noPrintTimeoutSecs": 2 }, "snapper": { "i...
dfd4fde6a6520ddc7998380ef163fca8a3e388cb
shared/config.json
shared/config.json
JSON
<|file_sep|>original/typescript/dnd-character/dnd-character.ts public charisma: number; public hitpoints: number; public constructor() { this.strength = DnDCharacter.generateAbilityScore() this.dexterity = DnDCharacter.generateAbilityScore() this.constitution = DnDCharacter.generateAbilityScore() ...
public charisma: number; public hitpoints: number; public constructor() { this.strength = DnDCharacter.generateAbilityScore() this.dexterity = DnDCharacter.generateAbilityScore() this.constitution = DnDCharacter.generateAbilityScore() this.intelligence = DnDCharacter.generateAbilityScore() th...
<|file_sep|>original/typescript/dnd-character/dnd-character.ts public charisma: number; public hitpoints: number; public constructor() { this.strength = DnDCharacter.generateAbilityScore() this.dexterity = DnDCharacter.generateAbilityScore() this.constitution = DnDCharacter.generateAbilityScore() ...
a3988f34b21e8c7b4ddf5fb7e12b29495344e874
typescript/dnd-character/dnd-character.ts
typescript/dnd-character/dnd-character.ts
TypeScript
<|file_sep|>original/_includes/header.html {% capture header_cls %}{% if page.title == "Home" %}{{ "Header" }}{% else %}{{ "Header Header--cozy with-Button--cozy" }}{% endif %}{% endcapture %} <header class="{{ header_cls }}" role="banner"> <div class="Header-titles"> <h1 class="Header-title"><a href="{{ '/' | ab...
{% capture header_cls %}{% if page.title == "Home" %}{{ "Header" }}{% else %}{{ "Header Header--cozy with-Button--cozy" }}{% endif %}{% endcapture %} <header class="{{ header_cls }}" role="banner"> <div class="Header-titles"> <h1 class="Header-title"><a href="{{ '/' | absolute }}">Solved <i>by</i> Flexbox</a></h1...
<|file_sep|>original/_includes/header.html {% capture header_cls %}{% if page.title == "Home" %}{{ "Header" }}{% else %}{{ "Header Header--cozy with-Button--cozy" }}{% endif %}{% endcapture %} <header class="{{ header_cls }}" role="banner"> <div class="Header-titles"> <h1 class="Header-title"><a href="{{ '/' | ab...
3105b0c3ebcec8eb2924d72ac00c2e2ed6b10613
_includes/header.html
_includes/header.html
HTML
<|file_sep|>original/index.html <p> Here, you'll find a little information <a href="about">about me</a> and what I do for a living, my <a href="{{site.blog_url}}">blog</a> on all sorts of interesting (and also non-interesting) stuff, my <a href="portfolio">po...
<h2>Hello there!</h2> <p>My name is Joe Nyland and welcome to my little site!</p> <p> Here, you'll find a little information <a href="about">about me</a> and what I do for a living, my <a href="{{site.blog_url}}">blog</a> on all sorts of interesting ...
<|file_sep|>original/index.html <p> Here, you'll find a little information <a href="about">about me</a> and what I do for a living, my <a href="{{site.blog_url}}">blog</a> on all sorts of interesting (and also non-interesting) stuff, my <a href="portfolio">po...
78ca5088d851b86b2d24eb0c8d65e8737aeb05b9
index.html
index.html
HTML
<|file_sep|>original/requirements.txt Twisted[tls]==18.4.0 beautifulsoup4==4.6.0 lxml==4.2.2 psutil==5.4.6 python-dateutil==2.7.3 ply==3.11 enum34==1.1.6 twitter==1.18.0 requests==2.19.1 pytimeparse==1.1.8 pymysql==0.8.1 pycryptodome==3.6.3 pyasn1==0.4.3 isodate==0.6.0 google-api-python-client==1.7.3 pyxDamerauLevensht...
Twisted[tls]==18.4.0 beautifulsoup4==4.6.0 lxml==4.2.3 psutil==5.4.6 python-dateutil==2.7.3 ply==3.11 enum34==1.1.6 twitter==1.18.0 requests==2.19.1 pytimeparse==1.1.8 pymysql==0.8.1 pycryptodome==3.6.3 pyasn1==0.4.3 isodate==0.6.0 google-api-python-client==1.7.3 pyxDamerauLevenshtein==1.5 numpy==1.14.5 Cython==0.28.3 ...
<|file_sep|>original/requirements.txt Twisted[tls]==18.4.0 beautifulsoup4==4.6.0 lxml==4.2.2 psutil==5.4.6 python-dateutil==2.7.3 ply==3.11 enum34==1.1.6 twitter==1.18.0 requests==2.19.1 pytimeparse==1.1.8 pymysql==0.8.1 pycryptodome==3.6.3 pyasn1==0.4.3 isodate==0.6.0 google-api-python-client==1.7.3 pyxDamerauLevensht...
1cb1678c56548f5078b50c3ea738a711ad9ae214
requirements.txt
requirements.txt
Text
<|file_sep|>original/templates/base/Table.html </tbody> </table> </div> </div> <!-- End: Table Body --> </div> <script src="{{ url_for('static', filename='js/jquery-1.12.0.min.js') }}"></script> <script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script> <script src="{{ u...
</table> </div> </div> <!-- End: Table Body --> </div> <script src="{{ url_for('static', filename='js/jquery-1.12.0.min.js') }}"></script> <script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script> <script src="{{ url_for('static', filename='js/dataTables.bootstrap.min.js') }...
<|file_sep|>original/templates/base/Table.html </tbody> </table> </div> </div> <!-- End: Table Body --> </div> <script src="{{ url_for('static', filename='js/jquery-1.12.0.min.js') }}"></script> <script src="{{ url_for('static', filename='js/jquery.dataTables.min.js') }}"></script> <script src="{{ u...
dd4a6e3b2cd647034613cccd9075272de3cf22ec
templates/base/Table.html
templates/base/Table.html
HTML
<|file_sep|>app/assets/stylesheets/posts.css.scss.diff original: updated: body { background-color: #f4f4f4; } <|file_sep|>original/app/assets/stylesheets/posts.css.scss // Place all the styles related to the posts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) ...
// Place all the styles related to the posts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ body { background-color: #f4f4f4; } #container { width: 800px; margin-left: auto; margin-right: auto; background-color: white; } .post ...
<|file_sep|>app/assets/stylesheets/posts.css.scss.diff original: updated: body { background-color: #f4f4f4; } <|file_sep|>original/app/assets/stylesheets/posts.css.scss // Place all the styles related to the posts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) ...
5a8cef5928df6f5ce4adb43af257ad2f9032e820
app/assets/stylesheets/posts.css.scss
app/assets/stylesheets/posts.css.scss
SCSS
<|file_sep|>original/.teamcity/Gradle_Util/Project.kt object Project : Project({ uuid = "077cff89-d1d3-407b-acc0-88446a99dec7" id("Gradle_Util") parentId("Gradle") name = "Util" buildType(Gradle_Util_AdHocFunctionalTestWindows) buildType(Gradle_Util_AdHocFunctionalTestLinux) features { ...
object Project : Project({ uuid = "077cff89-d1d3-407b-acc0-88446a99dec7" id("Gradle_Util") parentId("Gradle") name = "Util" buildType(Gradle_Util_AdHocFunctionalTestWindows) buildType(Gradle_Util_AdHocFunctionalTestLinux) params { password("teamcity.user.bot-gradle.token", "creden...
<|file_sep|>original/.teamcity/Gradle_Util/Project.kt object Project : Project({ uuid = "077cff89-d1d3-407b-acc0-88446a99dec7" id("Gradle_Util") parentId("Gradle") name = "Util" buildType(Gradle_Util_AdHocFunctionalTestWindows) buildType(Gradle_Util_AdHocFunctionalTestLinux) features { ...
09d1206469286d05edd5cdd4c515a052d357d882
.teamcity/Gradle_Util/Project.kt
.teamcity/Gradle_Util/Project.kt
Kotlin
<|file_sep|>original/resources/views/partials/footer.blade.php <footer class="footer"> @if(Setting::get('show_support')) <p>{{ trans('cachet.powered_by', ['app' => Setting::get('app_name')]) }}</p> @endif <p><a href="/rss"><i class="ion-social-rss"></i> {{ trans('cachet.rss-feed') }}</a>&nbsp;-&nbsp;<a ...
<footer class="footer"> @if(Setting::get('show_support')) <p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p> @endif <p><a href="/rss"><i class="ion-social-rss"></i> {{ trans('cachet.rss-feed') }}</a>&nbsp;-&nbsp;<a href="/atom"><i class="ion-social-rss"></i> {{ trans('cachet....
<|file_sep|>original/resources/views/partials/footer.blade.php <footer class="footer"> @if(Setting::get('show_support')) <p>{{ trans('cachet.powered_by', ['app' => Setting::get('app_name')]) }}</p> @endif <p><a href="/rss"><i class="ion-social-rss"></i> {{ trans('cachet.rss-feed') }}</a>&nbsp;-&nbsp;<a ...
e61cae2dddf273b45a90c8d6c2aaff2e625828f1
resources/views/partials/footer.blade.php
resources/views/partials/footer.blade.php
PHP
<|file_sep|>original/views/new.erb <h2>Add new post</h2> <p> We will add a new post here </p> <|file_sep|>current/views/new.erb <h2>Add new post</h2> <p> We will add a new post here </p> <|file_sep|>updated/views/new.erb
<h2>Add new post</h2> <p> <form> <textarea class="form-control" rows="6"></textarea> <br> <button type="submit" class="btn btn-default">Submit</button> </form> </p>
<|file_sep|>original/views/new.erb <h2>Add new post</h2> <p> We will add a new post here </p> <|file_sep|>current/views/new.erb <h2>Add new post</h2> <p> We will add a new post here </p> <|file_sep|>updated/views/new.erb <h2>Add new post</h2> <p> <form> <textarea class="form-control" rows="6"></textarea> <b...
6f94937e2739c1bf1bb6904da62d6a295ea476d8
views/new.erb
views/new.erb
HTML+ERB
<|file_sep|>original/src/main/java/com/quantxt/io/model/Cell.java CellStyle getCellStyle(); void setCellStyle(CellStyle cellStyle); String getStringCellValue(); String getFormulaCellValue(); boolean getBooleanCellValue(); double getNumericCellValue(); void setCellValue(String value); ...
void setCellStyle(CellStyle cellStyle); String getStringCellValue(); String getFormulaCellValue(); boolean getBooleanCellValue(); double getNumericCellValue(); void setCellValue(String value); void setCellValue(boolean value); void setCellValue(double value); void setCellType...
<|file_sep|>original/src/main/java/com/quantxt/io/model/Cell.java CellStyle getCellStyle(); void setCellStyle(CellStyle cellStyle); String getStringCellValue(); String getFormulaCellValue(); boolean getBooleanCellValue(); double getNumericCellValue(); void setCellValue(String value); ...
820a0d160a3387e65d624d0289440931552e9c9e
src/main/java/com/quantxt/io/model/Cell.java
src/main/java/com/quantxt/io/model/Cell.java
Java
<|file_sep|>original/.github/workflows/actions.yml - "3.0" - "3.1" - "3.2" - "4.0" python-version: - "3.6" - "3.7" - "3.8" - "3.9" - "3.10" steps: - uses: actions/checkout@v1 with: fetch-depth:...
- "3.0" - "3.1" - "3.2" - "4.0" python-version: - "3.6" - "3.7" - "3.8" - "3.9" - "3.10" exclude: - python-version: "3.6" django-version: "4.0" - python-version: "3.7" dj...
<|file_sep|>original/.github/workflows/actions.yml - "3.0" - "3.1" - "3.2" - "4.0" python-version: - "3.6" - "3.7" - "3.8" - "3.9" - "3.10" steps: - uses: actions/checkout@v1 with: fetch-depth:...
1adbdbb7cbdbf85e15bc68b09be13821bc3d3ca4
.github/workflows/actions.yml
.github/workflows/actions.yml
YAML
<|file_sep|>assets/scss/components/_page-error.scss.diff original: background: url("/assets/img/backgrounds/browser-compatibility.jpg") center/cover no-repeat; updated: background-image: url("/assets/img/backgrounds/browser-compatibility.jpg"); background-position: center; background-re...
@include background-filter; background-image: url("/assets/img/backgrounds/browser-compatibility.jpg"); background-position: center; background-repeat: no-repeat; background-size: cover; .error-body { text-align: left; margin: 100px 20px 20px...
<|file_sep|>assets/scss/components/_page-error.scss.diff original: background: url("/assets/img/backgrounds/browser-compatibility.jpg") center/cover no-repeat; updated: background-image: url("/assets/img/backgrounds/browser-compatibility.jpg"); background-position: center; background-re...
bd0511cac0782424ccddacef5d8e9bf35c54dc02
assets/scss/components/_page-error.scss
assets/scss/components/_page-error.scss
SCSS
<|file_sep|>original/composer.json ], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-user", "issues": "https://github.com/dreamfactorysoftware/df-user/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "dev"...
], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-user", "issues": "https://github.com/dreamfactorysoftware/df-user/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "dev", "prefer-stable": true, "r...
<|file_sep|>original/composer.json ], "support": { "email": "dspsupport@dreamfactory.com", "source": "https://github.com/dreamfactorysoftware/df-user", "issues": "https://github.com/dreamfactorysoftware/df-user/issues", "wiki": "https://wiki.dreamfactory.com" }, "minimum-stability": "dev"...
50f3da63ddfce2e71d00c826dfbe2d93355d7d84
composer.json
composer.json
JSON
<|file_sep|>original/gulpfile.babel.js/tasks/serve.js const server = browsersync.create(); const serve = () => { const compiler = webpack('development'); config.middleware = [ webpackDevMiddleware(compiler, { quiet: true, stats: { colors: true } }), webpackHotMiddleware(comp...
const server = browsersync.create(); const serve = () => { const compiler = webpack('development'); config.middleware = [ webpackDevMiddleware(compiler, { quiet: true, stats: { colors: true, modules: false } }), webpackHotMiddleware(compiler, { log: () => {} ...
<|file_sep|>original/gulpfile.babel.js/tasks/serve.js const server = browsersync.create(); const serve = () => { const compiler = webpack('development'); config.middleware = [ webpackDevMiddleware(compiler, { quiet: true, stats: { colors: true } }), webpackHotMiddleware(comp...
373d991ce474bb74fe51053d80c33c92abb1685b
gulpfile.babel.js/tasks/serve.js
gulpfile.babel.js/tasks/serve.js
JavaScript
<|file_sep|>original/gradle.properties # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 ...
# Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in ...
<|file_sep|>original/gradle.properties # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 ...
03511411e39789821194485c644dea04535d10a6
gradle.properties
gradle.properties
INI
<|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt // This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots...
// This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots // until the changes can be landed upstream. BUG32308 LINUX : fast/...
<|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt // This file should almost always be empty. Normally Chromium test expectations // are found in // src/third_party/WebKit/LayoutTests/platform/chromium/test_expectations.txt // // Only add expectations here to temporarily suppress messages on the bots...
7dc5d1777853aeaf87fee7543bfc0423989b0f87
webkit/tools/layout_tests/test_expectations.txt
webkit/tools/layout_tests/test_expectations.txt
Text
<|file_sep|>original/actions/get_st2_token.yaml --- name: "get_st2_token" runner_type: "run-remote" description: "Authenticate to St2" enabled: true entry_point: "" parameters: st2_username: type: "string" default: "" required: true st2_password: type: "string" default...
--- name: "get_st2_token" runner_type: "run-remote" description: "Authenticate to St2" enabled: true entry_point: "" parameters: st2_username: type: "string" default: "" required: true st2_password: type: "string" default: "" required: true cmd: immuta...
<|file_sep|>original/actions/get_st2_token.yaml --- name: "get_st2_token" runner_type: "run-remote" description: "Authenticate to St2" enabled: true entry_point: "" parameters: st2_username: type: "string" default: "" required: true st2_password: type: "string" default...
736c45faf92950e3ceffd7e5c6044954ad2bfd9f
actions/get_st2_token.yaml
actions/get_st2_token.yaml
YAML
<|file_sep|>stories/Timestamp.js.diff original: const customFormatter = timestamp => `Yes!: ${timestamp}` updated: let count = 0 const customFormatter = timestamp => { const now = (new Date()).toISOString() return `${timestamp} (update ${count++} at ${now})` } <|file_sep|>stories/Timestamp.js.diff original: <Tim...
const stories = storiesOf('Timestamp', module) let count = 0 const customFormatter = timestamp => { const now = (new Date()).toISOString() return `${timestamp} (update ${count++} at ${now})` } stories.add('default', () => ( <Timestamp timestamp='10:41am' /> )) stories.add('live', () => ( <Timestamp timesta...
<|file_sep|>stories/Timestamp.js.diff original: const customFormatter = timestamp => `Yes!: ${timestamp}` updated: let count = 0 const customFormatter = timestamp => { const now = (new Date()).toISOString() return `${timestamp} (update ${count++} at ${now})` } <|file_sep|>stories/Timestamp.js.diff original: <Tim...
06e8a00f1260bad05fc9284afc35e7d3c89e81bd
stories/Timestamp.js
stories/Timestamp.js
JavaScript
<|file_sep|>package.json.diff original: "watch-css": "nodemon -e scss -x \"npm run build-css\"" updated: "watch-css": "node-sass -w scss/ -o css/" <|file_sep|>original/package.json "scripts": { "test": "build-css", "build-css": "node-sass --include-path scss scss/main.scss css/main.css", "watch-cs...
"main": "index.js", "scripts": { "test": "build-css", "build-css": "node-sass --include-path scss scss/main.scss css/main.css", "watch-css": "node-sass -w scss/ -o css/" }, "repository": { "type": "git", "url": "git+https://github.com/johnsardine/weather-app.git" }, "author": "João Sardi...
<|file_sep|>package.json.diff original: "watch-css": "nodemon -e scss -x \"npm run build-css\"" updated: "watch-css": "node-sass -w scss/ -o css/" <|file_sep|>original/package.json "scripts": { "test": "build-css", "build-css": "node-sass --include-path scss scss/main.scss css/main.css", "watch-cs...
9f30402d81b884bc0d5442567b1da74f8b853ef3
package.json
package.json
JSON
<|file_sep|>original/package.json "name": "markdown-doctest", "version": "0.3.1", "description": "Test all the code in your markdown docs!", "main": "lib/doctest.js", "files": ["lib", "src", "bin"], "bin": { "markdown-doctest": "bin/cmd.js" }, "scripts": { "precompile-lib": "rm -rf lib/ && mkdir...
"name": "markdown-doctest", "version": "0.3.1", "description": "Test all the code in your markdown docs!", "main": "lib/doctest.js", "files": ["lib", "src", "bin"], "bin": { "markdown-doctest": "bin/cmd.js" }, "scripts": { "precompile-lib": "rm -rf lib/ && mkdir -p lib", "compile-lib": "./no...
<|file_sep|>original/package.json "name": "markdown-doctest", "version": "0.3.1", "description": "Test all the code in your markdown docs!", "main": "lib/doctest.js", "files": ["lib", "src", "bin"], "bin": { "markdown-doctest": "bin/cmd.js" }, "scripts": { "precompile-lib": "rm -rf lib/ && mkdir...
00f90f31d14257aef39e7249a488b111cf5d9987
package.json
package.json
JSON
<|file_sep|>original/requirements/base.txt dj-database-url==0.5.0 django-apiblueprint-view==2.1.0 django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==2.2.4 # pyup: >=2.2,<3.0 djangorestframework==3.10.2 djangorestframework-gis==0.14 django-cors-headers==3.1.0 fa...
dj-database-url==0.5.0 django-apiblueprint-view==2.1.0 django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==2.2.5 # pyup: >=2.2,<3.0 djangorestframework==3.10.2 djangorestframework-gis==0.14 django-cors-headers==3.1.0 fastkml==0.11 fuzzywuzzy==0.17.0 lxml==4.4.1 ...
<|file_sep|>original/requirements/base.txt dj-database-url==0.5.0 django-apiblueprint-view==2.1.0 django-basicauth==0.5.2 django-extensions==2.1.9 django-localflavor==2.2 django-markdown-deux==1.0.5 django==2.2.4 # pyup: >=2.2,<3.0 djangorestframework==3.10.2 djangorestframework-gis==0.14 django-cors-headers==3.1.0 fa...
cd2b8012dfc0ee343d3fdafd6279dae00721d153
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>original/layers/vu_csv_stats.sh <|file_sep|>current/layers/vu_csv_stats.sh <|file_sep|>updated/layers/vu_csv_stats.sh
#! /bin/bash # Basic count stats from the VU database in CSV format for spreadsheet loading. # Usage: ./vu_csv_stats.sh > stats.csv set -o errexit set -o nounset COUNT="grep -c" INFILE="./vk_validation_error_database.txt" if [ ! -r "$INFILE" ] then echo "ERROR: \"$INFILE\" is not readable." >&2 exit 1 fi e...
<|file_sep|>original/layers/vu_csv_stats.sh <|file_sep|>current/layers/vu_csv_stats.sh <|file_sep|>updated/layers/vu_csv_stats.sh #! /bin/bash # Basic count stats from the VU database in CSV format for spreadsheet loading. # Usage: ./vu_csv_stats.sh > stats.csv set -o errexit set -o nounset COUNT="grep -c" INFILE=...
b886884f6401785179efe755fe9755cc696d7599
layers/vu_csv_stats.sh
layers/vu_csv_stats.sh
Shell
<|file_sep|>original/.github/workflows/main.yml on: [push,pull_request] name: Static analysis jobs: phpstan: name: PHPStan runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: PHPStan uses: docker://oskarstark/phpstan-ga wi...
on: [push,pull_request] name: Static analysis jobs: phpstan: name: PHPStan runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: PHPStan uses: docker://oskarstark/phpstan-ga env: REQUIRE_DEV: true ...
<|file_sep|>original/.github/workflows/main.yml on: [push,pull_request] name: Static analysis jobs: phpstan: name: PHPStan runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: PHPStan uses: docker://oskarstark/phpstan-ga wi...
d7d027ada5391b8c4edc3a14a24c29cd59254864
.github/workflows/main.yml
.github/workflows/main.yml
YAML
<|file_sep|>original/tests/model/test_range.py <|file_sep|>current/tests/model/test_range.py <|file_sep|>updated/tests/model/test_range.py
# Copyright (c) 2021. The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details from datetime import datetime, timedelta import pytz from sqlalchemy import Column, literal, cast, TEXT from...
<|file_sep|>original/tests/model/test_range.py <|file_sep|>current/tests/model/test_range.py <|file_sep|>updated/tests/model/test_range.py # Copyright (c) 2021. The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. S...
713658c3dfa2ff70511057868d44647e5f67d065
tests/model/test_range.py
tests/model/test_range.py
Python
<|file_sep|>original/src/main/java/com/vaguehope/onosendai/model/TweetBuilder.java private String username; private String body; private long unitTimeSeconds; private String avatarUrl; // TODO include metas? public TweetBuilder () { reset(); } public void reset () { this.id = 0L; this.username = null; ...
private String username; private String body; private long unitTimeSeconds; private String avatarUrl; // TODO include metas? public TweetBuilder () { reset(); } public final void reset () { this.id = 0L; this.username = null; this.body = null; this.unitTimeSeconds = 0L; this.avatarUrl = null; } ...
<|file_sep|>original/src/main/java/com/vaguehope/onosendai/model/TweetBuilder.java private String username; private String body; private long unitTimeSeconds; private String avatarUrl; // TODO include metas? public TweetBuilder () { reset(); } public void reset () { this.id = 0L; this.username = null; ...
5d5e5895f4ba62c5f6ea69360738455123f46d28
src/main/java/com/vaguehope/onosendai/model/TweetBuilder.java
src/main/java/com/vaguehope/onosendai/model/TweetBuilder.java
Java
<|file_sep|>original/mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop',...
import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('ShutdownHook quietly deleting temporary DB data directory')
<|file_sep|>original/mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop',...
b47feb8122cbfb9b56ab135402a4be0f94bbc46c
mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy
mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy
Groovy
<|file_sep|>original/copy/var/zoneinit/includes/32-nginx.sh # configure ssl for nginx host=$(mdata-get sdc:hostname) cert_dir='/opt/local/etc/nginx/ssl/' # SSL log "nginx ssl setup" if mdata-get nginx_ssl 1>/dev/null 2>&1; then mdata-get nginx_ssl > ${cert_dir}nginx.pem else openssl req -newkey rsa:2048 -keyout ${c...
# configure ssl for nginx host=$(mdata-get sdc:hostname) cert_dir='/opt/local/etc/nginx/ssl/' # SSL log "nginx ssl setup" if mdata-get nginx_ssl 1>/dev/null 2>&1; then mdata-get nginx_ssl > ${cert_dir}nginx.pem else openssl req -newkey rsa:2048 -keyout ${cert_dir}nginx.key \ -out ${cert_dir}nginx.csr -nodes \ ...
<|file_sep|>original/copy/var/zoneinit/includes/32-nginx.sh # configure ssl for nginx host=$(mdata-get sdc:hostname) cert_dir='/opt/local/etc/nginx/ssl/' # SSL log "nginx ssl setup" if mdata-get nginx_ssl 1>/dev/null 2>&1; then mdata-get nginx_ssl > ${cert_dir}nginx.pem else openssl req -newkey rsa:2048 -keyout ${c...
672a8d9d6f0aa197d36c9930bb420d7f7447eaa9
copy/var/zoneinit/includes/32-nginx.sh
copy/var/zoneinit/includes/32-nginx.sh
Shell
<|file_sep|>original/ATL.test/FactoryTest.cs public void TestGetPlaylistFormats() { StringBuilder filter = new StringBuilder(""); foreach (Format f in ATL.PlaylistReaders.PlaylistReaderFactory.GetInstance().getFormats()) { if (f.Readable) ...
public void TestGetPlaylistFormats() { StringBuilder filter = new StringBuilder(""); foreach (Format f in ATL.PlaylistReaders.PlaylistReaderFactory.GetInstance().getFormats()) { if (f.Readable) { foreach (String ext...
<|file_sep|>original/ATL.test/FactoryTest.cs public void TestGetPlaylistFormats() { StringBuilder filter = new StringBuilder(""); foreach (Format f in ATL.PlaylistReaders.PlaylistReaderFactory.GetInstance().getFormats()) { if (f.Readable) ...
c0c8448f385483479f7e75a52255c10c7b7b9951
ATL.test/FactoryTest.cs
ATL.test/FactoryTest.cs
C#
<|file_sep|>qlf/run.sh.diff original: export PYTHONPATH=$PYTHONPATH:$(pwd) updated: <|file_sep|>qlf/run.sh.diff original: updated: export PYTHONPATH=$PYTHONPATH:$(pwd) if [ "$QLF_ROOT" == "" ]; then echo "Set QLF_ROOT environment variable first. Example:" echo "export QLF_ROOT=$HOME/quicklook" exit 1 fi echo "Se...
done echo "Initializing QLF database..." # Test user for the development db export TEST_USER=nobody export TEST_USER_EMAIL=${TEST_USER}@example.com export TEST_USER_PASSWD=nobody # Initialize the development database DEVDB="db.sqlite3" if [ -f $DEVDB ]; then rm $DEVDB fi python -Wi manage.py migrate # Create dj...
<|file_sep|>qlf/run.sh.diff original: export PYTHONPATH=$PYTHONPATH:$(pwd) updated: <|file_sep|>qlf/run.sh.diff original: updated: export PYTHONPATH=$PYTHONPATH:$(pwd) if [ "$QLF_ROOT" == "" ]; then echo "Set QLF_ROOT environment variable first. Example:" echo "export QLF_ROOT=$HOME/quicklook" exit 1 fi echo "Se...
56f1bb0c824e849c74472c8187fcc5b01e4f639d
qlf/run.sh
qlf/run.sh
Shell
<|file_sep|>original/whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy "/auth/1" | "hftwp11146kkhc1" "/auth/12345" | "zw9c5x6h3bj0c87" "/bib/12345" | "5ng15x6h05ft7lr" "/hold/12345" | "bgmp5x6h1ct51qd" "/auth/123551211" | "53nnvnsp2...
"/auth/1" | "hftwp11146kkhc1" "/auth/12345" | "zw9c5x6h3bj0c87" "/bib/12345" | "5ng15x6h05ft7lr" "/hold/12345" | "bgmp5x6h1ct51qd" "/auth/123551211" | "53nnvnsp2gq1qpz" "/hold/999999999" | "59snjbd943p7s0x" } def "should get marc ...
<|file_sep|>original/whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy "/auth/1" | "hftwp11146kkhc1" "/auth/12345" | "zw9c5x6h3bj0c87" "/bib/12345" | "5ng15x6h05ft7lr" "/hold/12345" | "bgmp5x6h1ct51qd" "/auth/123551211" | "53nnvnsp2...
1bfde6a087a2600109961234709d85830406ceaf
whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy
whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy
Groovy
<|file_sep|>original/postcss.config.js const autoprefixer = require('autoprefixer'); const precss = require('precss'); const stylelint = require('stylelint'); const fontMagician = require('postcss-font-magician'); module.exports = { plugins: [ stylelint, fontMagician, precss, autoprefixer, ], }; <|...
const autoprefixer = require('autoprefixer'); const precss = require('precss'); const stylelint = require('stylelint'); const fontMagician = require('postcss-font-magician')({ // this is required due to a weird bug where if we let PFM use the `//` protocol Webpack style-loader // thinks it's a relative URL and won'...
<|file_sep|>original/postcss.config.js const autoprefixer = require('autoprefixer'); const precss = require('precss'); const stylelint = require('stylelint'); const fontMagician = require('postcss-font-magician'); module.exports = { plugins: [ stylelint, fontMagician, precss, autoprefixer, ], }; <|...
6a4828db23e966086d92f2ea53b35c37ae1f153a
postcss.config.js
postcss.config.js
JavaScript
<|file_sep|>original/src/main/resources/assets/fluidconverters/blood.json { "groupId": "blood", "groupName": "Blood", "fluidElements": [ { "fluidName": "evilcraftblood", "value": 1.0 }, { "fluidName": "life essence", "value": 1.0 }, { "fluidName": "blood", "...
{ "groupId": "blood", "groupName": "Blood", "fluidElements": [ { "fluidName": "evilcraftblood", "value": 1.0 }, { "fluidName": "lifeessence", "value": 1.0 }, { "fluidName": "blood", "value": 1.0 }, { "fluidName": "hell_blood", "value": 1....
<|file_sep|>original/src/main/resources/assets/fluidconverters/blood.json { "groupId": "blood", "groupName": "Blood", "fluidElements": [ { "fluidName": "evilcraftblood", "value": 1.0 }, { "fluidName": "life essence", "value": 1.0 }, { "fluidName": "blood", "...
b49a3d236e6ca9636d466382a14403235d3414d8
src/main/resources/assets/fluidconverters/blood.json
src/main/resources/assets/fluidconverters/blood.json
JSON
<|file_sep|>original/website/en/docs/_install/compiler-babel.md ```json { "presets": ["flow"] } ``` If you then put all your source files in a `src` directory you can compile them to another directory by running: ```sh {{include.run_command}}babel src/ -d lib/ ``` You can add this to your `package.json` scripts ea...
```json { "presets": ["flow"] } ``` If you then put all your source files in a `src` directory you can compile them to another directory by running: ```sh {{include.run_command}}babel -- src/ -d lib/ ``` You can add this to your `package.json` scripts easily. ```json { "name": "my-project", "main": "lib/index...
<|file_sep|>original/website/en/docs/_install/compiler-babel.md ```json { "presets": ["flow"] } ``` If you then put all your source files in a `src` directory you can compile them to another directory by running: ```sh {{include.run_command}}babel src/ -d lib/ ``` You can add this to your `package.json` scripts ea...
de4f892a86a18704b49b299c8f93b7602f855a30
website/en/docs/_install/compiler-babel.md
website/en/docs/_install/compiler-babel.md
Markdown
<|file_sep|>original/Formula/wxpython.rb <|file_sep|>current/Formula/wxpython.rb <|file_sep|>updated/Formula/wxpython.rb
require 'formula' class FrameworkPython < Requirement fatal true satisfy do q = `python -c "import distutils.sysconfig as c; print(c.get_config_var('PYTHONFRAMEWORK'))"` not q.chomp.empty? end def message "Python needs to be built as a framework." end end class Wxpython < Formula homepage 'h...
<|file_sep|>original/Formula/wxpython.rb <|file_sep|>current/Formula/wxpython.rb <|file_sep|>updated/Formula/wxpython.rb require 'formula' class FrameworkPython < Requirement fatal true satisfy do q = `python -c "import distutils.sysconfig as c; print(c.get_config_var('PYTHONFRAMEWORK'))"` not q.chomp.e...
ee0e4395246ddbf03828219198ead88e6daf192c
Formula/wxpython.rb
Formula/wxpython.rb
Ruby