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|>src/gui/init.js.diff
original:
updated:
const __GIT_PATH = "https://github.com/";
<|file_sep|>original/src/gui/init.js
/**
* Creo le variabili globali necessarie per il corretto funzionamento di
* Chronos.
*
* Created by amantova on 21/02/16.
*/
// Ogni plugin dovra' specificare in questa variabile ... | /**
* Creo le variabili globali necessarie per il corretto funzionamento di
* Chronos.
*
* Created by amantova on 21/02/16.
*/
// Ogni plugin dovra' specificare in questa variabile il suo nome, in tal
// maniera si potra' eseguire la procedura d'esecuzione dei moduli senza
// specificare il nome del plugin, accor... | <|file_sep|>src/gui/init.js.diff
original:
updated:
const __GIT_PATH = "https://github.com/";
<|file_sep|>original/src/gui/init.js
/**
* Creo le variabili globali necessarie per il corretto funzionamento di
* Chronos.
*
* Created by amantova on 21/02/16.
*/
// Ogni plugin dovra' specificare in questa variabile ... | 2fc782452ecc8d777c92dbaa5488579fb60cb678 | src/gui/init.js | src/gui/init.js | JavaScript |
<|file_sep|>original/src/Problems/PairsWithDifferenceK.js
<|file_sep|>current/src/Problems/PairsWithDifferenceK.js
<|file_sep|>updated/src/Problems/PairsWithDifferenceK.js | const test = require('tape')
/**
* Given an array arr of distinct integers and a nonnegative integer k,
* write a function that returns an array of all pairs [x,y],
* such that x - y = k. If no such pairs exist, return an empty array.
*
* Examples:
*
* input = [0, -1, -2, 2, 1], k = 1
* output: [[0, -1], [-1, ... | <|file_sep|>original/src/Problems/PairsWithDifferenceK.js
<|file_sep|>current/src/Problems/PairsWithDifferenceK.js
<|file_sep|>updated/src/Problems/PairsWithDifferenceK.js
const test = require('tape')
/**
* Given an array arr of distinct integers and a nonnegative integer k,
* write a function that returns an arra... | f6b2e366048308c44de85eb573417d9d12472974 | src/Problems/PairsWithDifferenceK.js | src/Problems/PairsWithDifferenceK.js | JavaScript |
<|file_sep|>original/setup.py
from setuptools import setup
setup(
name='auth_tkt',
version='0.1.0',
description='Python implementation of mod_auth_tkt cookies',
author='Yola',
license='MIT (Expat)',
author_email='engineers@yola.com',
url='http://github.com/yola/auth_tkt',
packages=['aut... | from setuptools import setup
setup(
name='auth_tkt',
version='0.1.0',
description='Python implementation of mod_auth_tkt cookies',
author='Yola',
license='MIT (Expat)',
author_email='engineers@yola.com',
url='http://github.com/yola/auth_tkt',
packages=['auth_tkt'],
test_suite='nose.... | <|file_sep|>original/setup.py
from setuptools import setup
setup(
name='auth_tkt',
version='0.1.0',
description='Python implementation of mod_auth_tkt cookies',
author='Yola',
license='MIT (Expat)',
author_email='engineers@yola.com',
url='http://github.com/yola/auth_tkt',
packages=['aut... | 96d01bb9a5f6fae28a25db2ef8c429d69333565b | setup.py | setup.py | Python |
<|file_sep|>src/python/borg/tools/bench_bellman.py.diff
original:
# need a place to dump profiling results
from tempfile import NamedTemporaryFile
updated:
from borg.portfolio.bellman import compute_bellman_plan
from borg.portfolio.test.test_bellman import build_real_model
<|file_sep|>src/pyth... |
if __name__ == "__main__":
from borg.tools.bench_bellman import main
raise SystemExit(main())
def main():
"""
Benchmark the Bellman plan computation code.
"""
from borg.portfolio.bellman import compute_bellman_plan
from borg.portfolio.test.test_bellman import build_real_model
... | <|file_sep|>src/python/borg/tools/bench_bellman.py.diff
original:
# need a place to dump profiling results
from tempfile import NamedTemporaryFile
updated:
from borg.portfolio.bellman import compute_bellman_plan
from borg.portfolio.test.test_bellman import build_real_model
<|file_sep|>src/pyth... | b4d3fbb0535074f2153b2b9bad53fdf654ddedd1 | src/python/borg/tools/bench_bellman.py | src/python/borg/tools/bench_bellman.py | Python |
<|file_sep|>original/tracing/tracing/ui/analysis/analysis_sub_view.html
'use strict';
tr.exportTo('tr.ui.analysis.behaviors', function() {
var AnalysisSubView = {
set tabLabel(label) {
Polymer.dom(this).setAttribute('tab-label', label);
},
get tabLabel() {
return Polymer.dom(this).getAttrib... | 'use strict';
tr.exportTo('tr.ui.analysis.behaviors', function() {
var AnalysisSubView = {
set tabLabel(label) {
Polymer.dom(this).setAttribute('tab-label', label);
},
get tabLabel() {
return this.getAttribute('tab-label');
},
get requiresTallView() {
return false;
},
... | <|file_sep|>original/tracing/tracing/ui/analysis/analysis_sub_view.html
'use strict';
tr.exportTo('tr.ui.analysis.behaviors', function() {
var AnalysisSubView = {
set tabLabel(label) {
Polymer.dom(this).setAttribute('tab-label', label);
},
get tabLabel() {
return Polymer.dom(this).getAttrib... | 703986f6bc400ec69cdaa72c05eaf9b94f50f695 | tracing/tracing/ui/analysis/analysis_sub_view.html | tracing/tracing/ui/analysis/analysis_sub_view.html | HTML |
<|file_sep|>original/src/resourceloader.ts
/**
* Map a resource name to a URL.
*
* This particular mapping function works in a nodejs context.
*
* @param resourceName relative path to the resource from the main src directory.
* @return a URL which points to the resource.
*/
export function toUrl(resourceName: s... | /**
* Map a resource name to a URL.
*
* This particular mapping function works in a nodejs context.
*
* @param resourceName relative path to the resource from the main src directory.
* @return a URL which points to the resource.
*/
export function toUrl(resourceName: string): string {
let mainPath = __dirname... | <|file_sep|>original/src/resourceloader.ts
/**
* Map a resource name to a URL.
*
* This particular mapping function works in a nodejs context.
*
* @param resourceName relative path to the resource from the main src directory.
* @return a URL which points to the resource.
*/
export function toUrl(resourceName: s... | 3e84010c4b4fa3016ffaf5afab529aa50fe9575f | src/resourceloader.ts | src/resourceloader.ts | TypeScript |
<|file_sep|>original/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb
<|file_sep|>current/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb
<|file_sep|>updated/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb | <% content_for :head do %>
<script type="text/javascript">
$(window).load(function() {
$("label:contains('<%= payment_method.name %>')").hide();
$("label:contains('<%= payment_method.name %>') input").attr('disabled', true);
});
</script>
<% end %> | <|file_sep|>original/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb
<|file_sep|>current/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb
<|file_sep|>updated/app/views/spree/admin/payments/source_forms/_paysiocom.html.erb
<% content_for :head do %>
<script type="text/javascript">
... | 2bcfe88da1270bd7888ff8fcee6d530278f98808 | app/views/spree/admin/payments/source_forms/_paysiocom.html.erb | app/views/spree/admin/payments/source_forms/_paysiocom.html.erb | HTML+ERB |
<|file_sep|>original/lib/rails_development_boost.rb
module RailsDevelopmentBoost
ActiveSupport.on_load(:after_initialize) do
ReferencePatch.apply!
DependenciesPatch.apply!
DescendantsTrackerPatch.apply!
end
ActiveSupport.on_load(:action_controller) do
ActiveSupport.on_load(:after_initialize) do... | module RailsDevelopmentBoost
ActiveSupport.on_load(:after_initialize) do
ReferencePatch.apply!
DependenciesPatch.apply!
DescendantsTrackerPatch.apply!
end
ActiveSupport.on_load(:action_controller) do
ActiveSupport.on_load(:after_initialize) do
ViewHelpersPatch.apply!
if defin... | <|file_sep|>original/lib/rails_development_boost.rb
module RailsDevelopmentBoost
ActiveSupport.on_load(:after_initialize) do
ReferencePatch.apply!
DependenciesPatch.apply!
DescendantsTrackerPatch.apply!
end
ActiveSupport.on_load(:action_controller) do
ActiveSupport.on_load(:after_initialize) do... | 36a28bf44bc2c1555f5c6554d261a8adc08844d7 | lib/rails_development_boost.rb | lib/rails_development_boost.rb | Ruby |
<|file_sep|>original/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java
<|file_sep|>current/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java
<|file_sep|>updated/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/res... | package gr.demokritos.iit.ydsapi.responses;
import com.google.gson.GsonBuilder;
public class DashboardConfigSaveResponse extends BaseResponse implements IResponse {
private Object dashboard_config_id;
public DashboardConfigSaveResponse(Status status, String message) {
super(status, message);
}
... | <|file_sep|>original/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java
<|file_sep|>current/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java
<|file_sep|>updated/BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/res... | 8daaab5bbb540f43822edf51ae9e74bfc28a4d11 | BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java | BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/responses/DashboardConfigSaveResponse.java | Java |
<|file_sep|>original/mgsv_names.py
adj = cursor.execute(_select_random.format('adjective', 'adjectives')).fetchone()[0]
anim = cursor.execute(_select_random.format('animal', 'animals')).fetchone()[0]
rare = cursor.execute(_select_random.format('name', 'rares')).fetchone()[0]
uncommon_anim = cursor.execu... |
adj = cursor.execute(_select_random.format('adjective', 'adjectives')).fetchone()[0]
anim = cursor.execute(_select_random.format('animal', 'animals')).fetchone()[0]
rare = cursor.execute(_select_random.format('name', 'rares')).fetchone()[0]
uncommon_anim = cursor.execute(_select_uncommon, [adj]).fetcho... | <|file_sep|>original/mgsv_names.py
adj = cursor.execute(_select_random.format('adjective', 'adjectives')).fetchone()[0]
anim = cursor.execute(_select_random.format('animal', 'animals')).fetchone()[0]
rare = cursor.execute(_select_random.format('name', 'rares')).fetchone()[0]
uncommon_anim = cursor.execu... | 54bb12bdeec33e98451451837dce90665413bd67 | mgsv_names.py | mgsv_names.py | Python |
<|file_sep|>.travis.yml.diff
original:
updated:
- 5.5
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
before_script: composer install --dev
notifications:
email: matthiasnoback@gmail.com
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
before_script: composer inst... | language: php
php:
- 5.3
- 5.4
- 5.5
env:
- DEPENDENCY_INJECTION_VERSION=2.2.* EXPRESSION_LANGUAGE_VERSION=2.4.*
- DEPENDENCY_INJECTION_VERSION=2.3.* EXPRESSION_LANGUAGE_VERSION=2.4.*
- DEPENDENCY_INJECTION_VERSION=2.4.* EXPRESSION_LANGUAGE_VERSION=2.4.*
- DEPENDENCY_INJECTION_VERSION=2.5.*@dev EXPRESSI... | <|file_sep|>.travis.yml.diff
original:
updated:
- 5.5
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3
- 5.4
before_script: composer install --dev
notifications:
email: matthiasnoback@gmail.com
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3
- 5.4
- 5.5
before_script: composer inst... | 0393c75474b058ab221c03883290436e249039ac | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/simpleoregen/options.cfg
}
debug {
# Enables more printouts to the chat. WARNING: Will spam the log file. Good for bug reports. Not recommended for regular play.
B:debugMode=false
}
general {
# True will disable spawn of the CheshireRose flower.
B:gfFlowerDisable=false
... | }
debug {
# Enables more printouts to the chat. WARNING: Will spam the log file. Good for bug reports. Not recommended for regular play.
B:debugMode=false
}
general {
# True will disable spawn of the CheshireRose flower.
B:gfFlowerDisable=true
# Makes new ores be smelted straight to their ingot... | <|file_sep|>original/config/simpleoregen/options.cfg
}
debug {
# Enables more printouts to the chat. WARNING: Will spam the log file. Good for bug reports. Not recommended for regular play.
B:debugMode=false
}
general {
# True will disable spawn of the CheshireRose flower.
B:gfFlowerDisable=false
... | 9f26b418160ebc8b14a0d6e7383a78594c555783 | config/simpleoregen/options.cfg | config/simpleoregen/options.cfg | INI |
<|file_sep|>original/scala_core/src/org/jetbrains/plugins/scala/lang/structureView/ScalaStructureViewFactory.scala
package org.jetbrains.plugins.scala.lang.structureView
import com.intellij.lang.PsiStructureViewFactory
import com.intellij.psi.PsiFile
import com.intellij.ide.structureView.StructureViewBuilder
import ps... | package org.jetbrains.plugins.scala.lang.structureView
import com.intellij.lang.PsiStructureViewFactory
import com.intellij.psi.PsiFile
import com.intellij.ide.structureView.StructureViewBuilder
import psi._
import psi.api.ScalaFile
/**
* @author Alexander Podkhalyuzin
* Date: 04.05.2008
*/
class ScalaStructureViewF... | <|file_sep|>original/scala_core/src/org/jetbrains/plugins/scala/lang/structureView/ScalaStructureViewFactory.scala
package org.jetbrains.plugins.scala.lang.structureView
import com.intellij.lang.PsiStructureViewFactory
import com.intellij.psi.PsiFile
import com.intellij.ide.structureView.StructureViewBuilder
import ps... | 7df346431a2cd1c4197e01b2f64cfd123dbeb52c | scala_core/src/org/jetbrains/plugins/scala/lang/structureView/ScalaStructureViewFactory.scala | scala_core/src/org/jetbrains/plugins/scala/lang/structureView/ScalaStructureViewFactory.scala | Scala |
<|file_sep|>original/lib/src/filename/ast/filename-node-conditional.cpp
#include "filename/ast/filename-node-conditional.h"
#include "filename/ast/filename-visitor.h"
FilenameNodeConditional::FilenameNodeConditional(FilenameNodeCondition *condition, FilenameNode *ifTrue, FilenameNode *ifFalse)
: condition(condition)... | #include "filename/ast/filename-node-conditional.h"
#include "filename/ast/filename-node-condition.h"
#include "filename/ast/filename-visitor.h"
FilenameNodeConditional::FilenameNodeConditional(FilenameNodeCondition *condition, FilenameNode *ifTrue, FilenameNode *ifFalse)
: condition(condition), ifTrue(ifTrue), ifFa... | <|file_sep|>original/lib/src/filename/ast/filename-node-conditional.cpp
#include "filename/ast/filename-node-conditional.h"
#include "filename/ast/filename-visitor.h"
FilenameNodeConditional::FilenameNodeConditional(FilenameNodeCondition *condition, FilenameNode *ifTrue, FilenameNode *ifFalse)
: condition(condition)... | 2522ae416e0e9bdd7f49db1c4164fd21d8f52466 | lib/src/filename/ast/filename-node-conditional.cpp | lib/src/filename/ast/filename-node-conditional.cpp | C++ |
<|file_sep|>original/src/main/java/fr/insee/rmes/api/codes/cj/CJQueries.java
public class CJQueries {
public static String getCategorieJuridiqueNiveauIII(String code) {
return "SELECT ?uri ?intitule WHERE { \n"
+ "?uri skos:notation '" + code + "' . \n"
+ "?lastCJThirdLevel skos:member ?uri . \n"
+ "?ur... | public class CJQueries {
public static String getCategorieJuridiqueNiveauIII(String code) {
return "SELECT ?uri ?intitule WHERE { \n"
+ "?uri skos:notation '" + code + "' . \n"
+ "?lastCJThirdLevel skos:member ?uri . \n"
+ "?uri skos:prefLabel ?intitule \n"
+ "FILTER (lang(?intitule) = 'fr') \n"
... | <|file_sep|>original/src/main/java/fr/insee/rmes/api/codes/cj/CJQueries.java
public class CJQueries {
public static String getCategorieJuridiqueNiveauIII(String code) {
return "SELECT ?uri ?intitule WHERE { \n"
+ "?uri skos:notation '" + code + "' . \n"
+ "?lastCJThirdLevel skos:member ?uri . \n"
+ "?ur... | e987619b90ae7e144491ee6da1f2e8b196529f04 | src/main/java/fr/insee/rmes/api/codes/cj/CJQueries.java | src/main/java/fr/insee/rmes/api/codes/cj/CJQueries.java | Java |
<|file_sep|>original/config.json
{
"archversion": "2015.11.01",
"isochecksum": "de1876320317586ec84259df3bc3cfbafcf3242c",
"isochecksumtype": "sha1",
"pathtoiso": "http://archlinux.mirror.dkm.cz/pub/archlinux/iso"
}
<|file_sep|>current/config.json
{
"archversion": "2015.11.01",
"isochecksum": "de18763203175... | {
"archversion": "2015.12.01",
"isochecksum": "7de3315b1384e5d2769eca13453e87a8d303050e",
"isochecksumtype": "sha1",
"pathtoiso": "http://archlinux.mirror.dkm.cz/pub/archlinux/iso"
} | <|file_sep|>original/config.json
{
"archversion": "2015.11.01",
"isochecksum": "de1876320317586ec84259df3bc3cfbafcf3242c",
"isochecksumtype": "sha1",
"pathtoiso": "http://archlinux.mirror.dkm.cz/pub/archlinux/iso"
}
<|file_sep|>current/config.json
{
"archversion": "2015.11.01",
"isochecksum": "de18763203175... | c442074687c24cae6535a9af06e5b482b8ecc84e | config.json | config.json | JSON |
<|file_sep|>original/README.md
======
[Travis CI](https://travis-ci.org/) is great and all, but it has horribly outdated software for C and C++.
It can be a huge pain to try and figure out how to manually update or install the necessary software.
This repository is meant to put an end to that:
we've done most of the ha... | travis
======
[Travis CI](https://travis-ci.org/) is great and all, but it has horribly outdated software for C and C++.
It can be a huge pain to try and figure out how to manually update or install the necessary software.
This repository is meant to put an end to that:
we've done most of the hard work for you, and you... | <|file_sep|>original/README.md
======
[Travis CI](https://travis-ci.org/) is great and all, but it has horribly outdated software for C and C++.
It can be a huge pain to try and figure out how to manually update or install the necessary software.
This repository is meant to put an end to that:
we've done most of the ha... | 2a4b7b235a736e2118fe6d55a9e537ff087c9b2d | README.md | README.md | Markdown |
<|file_sep|>layouts/index.html.diff
original:
{{ range .Data.Pages.GroupBy "Section" }}
<section class="section" id="section-{{ .Key }}" style="background-image: url(img/{{ .Key }}/header.jpg);">
updated:
{{ range (where .Site.AllPages "Kind" "section").Reverse }}
<section class="section" id="section-{{... | <article class="section__entry entry">
<h3 class="entry__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<time class="entry__timestamp" datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006 15:04" }} {{ if isset .Params "timezone" }}{{ .Params.timezone }... | <|file_sep|>layouts/index.html.diff
original:
{{ range .Data.Pages.GroupBy "Section" }}
<section class="section" id="section-{{ .Key }}" style="background-image: url(img/{{ .Key }}/header.jpg);">
updated:
{{ range (where .Site.AllPages "Kind" "section").Reverse }}
<section class="section" id="section-{{... | 227b5bc3061799ac7ab1caf615d4889d3d6dd7ba | layouts/index.html | layouts/index.html | HTML |
<|file_sep|>original/rice-framework/krad-web/src/main/webapp/themes/kboot/theme.properties
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/ecl2.php
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,... | # You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/ecl2.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 Licen... | <|file_sep|>original/rice-framework/krad-web/src/main/webapp/themes/kboot/theme.properties
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/ecl2.php
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,... | 68ea2d58bcf18ecefe6ca09bb2e4c868815f9d99 | rice-framework/krad-web/src/main/webapp/themes/kboot/theme.properties | rice-framework/krad-web/src/main/webapp/themes/kboot/theme.properties | INI |
<|file_sep|>original/google-calendar.py
<|file_sep|>current/google-calendar.py
<|file_sep|>updated/google-calendar.py | import pprint
import pytz
from datetime import datetime, timedelta
import httplib2
from apiclient.discovery import build
from oauth2client.client import SignedJwtAssertionCredentials
with open('privatekey.p12', 'rb') as f:
key = f.read()
service_account_name = '...@developer.gserviceaccount.com'
calendarId = '.... | <|file_sep|>original/google-calendar.py
<|file_sep|>current/google-calendar.py
<|file_sep|>updated/google-calendar.py
import pprint
import pytz
from datetime import datetime, timedelta
import httplib2
from apiclient.discovery import build
from oauth2client.client import SignedJwtAssertionCredentials
with open('pri... | bcbcf37f4451fa87e89c527e8990181b24e3402c | google-calendar.py | google-calendar.py | Python |
<|file_sep|>original/docker/local_jupyter.sh
#!/bin/bash
set -euf -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR=$(dirname "$SCRIPT_DIR")
OUT_DIR="${SCRIPT_DIR}/out"
IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci01:v1.2.0'
PORT=8888
while [[ "$#" -gt 0 ]... | #!/bin/bash
set -euf -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR=$(dirname "$SCRIPT_DIR")
OUT_DIR="${SCRIPT_DIR}/out"
IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci01:v1.3.0'
PORT=8888
while [[ "$#" -gt 0 ]]; do
case "$1" in
-i|--image) IMAGE="$... | <|file_sep|>original/docker/local_jupyter.sh
#!/bin/bash
set -euf -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR=$(dirname "$SCRIPT_DIR")
OUT_DIR="${SCRIPT_DIR}/out"
IMAGE='registry.spin.nersc.gov/metatlas_test/metatlas_ci01:v1.2.0'
PORT=8888
while [[ "$#" -gt 0 ]... | eda072bed78de877068b07957443b56e27544dfb | docker/local_jupyter.sh | docker/local_jupyter.sh | Shell |
<|file_sep|>original/tests/test_format.py
<|file_sep|>current/tests/test_format.py
<|file_sep|>updated/tests/test_format.py | from unittest.mock import MagicMock, patch
import pytest
from hypothesis_auto import auto_pytest_magic
import isort.format
auto_pytest_magic(isort.format.show_unified_diff)
def test_ask_whether_to_apply_changes_to_file():
with patch("isort.format.input", MagicMock(return_value="y")):
assert isort.forma... | <|file_sep|>original/tests/test_format.py
<|file_sep|>current/tests/test_format.py
<|file_sep|>updated/tests/test_format.py
from unittest.mock import MagicMock, patch
import pytest
from hypothesis_auto import auto_pytest_magic
import isort.format
auto_pytest_magic(isort.format.show_unified_diff)
def test_ask_whe... | fef896afa8a763fdd93bc52e6d47a69f7dda5f9b | tests/test_format.py | tests/test_format.py | Python |
<|file_sep|>original/spec/factories/notifications.rb
factory :notification do
user
association :notifiable, factory: :proposal
trait :read do
read_at { Time.current }
end
end
factory :admin_notification do
title { |n| "Admin Notification title #{n}" }
body ... | factory :notification do
user
association :notifiable, factory: :proposal
trait :read do
read_at { Time.current }
end
end
factory :admin_notification do
sequence(:title) { |n| "Admin Notification title #{n}" }
sequence(:body) { |n| "Admin Notification body #{n}" }
link ... | <|file_sep|>original/spec/factories/notifications.rb
factory :notification do
user
association :notifiable, factory: :proposal
trait :read do
read_at { Time.current }
end
end
factory :admin_notification do
title { |n| "Admin Notification title #{n}" }
body ... | a0ee0e661fab71e22aca985a90a5925a2d3b9d9b | spec/factories/notifications.rb | spec/factories/notifications.rb | Ruby |
<|file_sep|>original/emacs/fsharp-mode-pkg.el
(define-package
"fsharp-mode"
"0.9"
"F# mode for Emacs"
'((popup "0.5")
(pos-tip "0.4.5")
(s "1.3.1")
(dash "1.1.0")))
<|file_sep|>current/emacs/fsharp-mode-pkg.el
(define-package
"fsharp-mode"
"0.9"
"F# mode for Emacs"
'((... | (define-package
"fsharp-mode"
"0.9"
"F# mode for Emacs"
'((popup "0.5")
(pos-tip "0.4.5")
(s "1.3.1")
(dash "1.1.0")
(auto-complete "1.4"))) | <|file_sep|>original/emacs/fsharp-mode-pkg.el
(define-package
"fsharp-mode"
"0.9"
"F# mode for Emacs"
'((popup "0.5")
(pos-tip "0.4.5")
(s "1.3.1")
(dash "1.1.0")))
<|file_sep|>current/emacs/fsharp-mode-pkg.el
(define-package
"fsharp-mode"
"0.9"
"F# mode for Emacs"
'((... | d94f8f848aab28128983b14848c6e3a965af6757 | emacs/fsharp-mode-pkg.el | emacs/fsharp-mode-pkg.el | Emacs Lisp |
<|file_sep|>original/src/main/java/model/transform/tasks/StoreOptions.java
package model.transform.tasks;
import model.transform.base.ImageTransformTask;
public class StoreOptions extends ImageTransformTask {
public StoreOptions() {
super("store");
}
public static class Builder {
pri... | package model.transform.tasks;
import model.transform.base.ImageTransformTask;
public class StoreOptions extends ImageTransformTask {
// Constructor left public because this task can be used with default options
public StoreOptions() {
super("store");
}
public static class Builder {
... | <|file_sep|>original/src/main/java/model/transform/tasks/StoreOptions.java
package model.transform.tasks;
import model.transform.base.ImageTransformTask;
public class StoreOptions extends ImageTransformTask {
public StoreOptions() {
super("store");
}
public static class Builder {
pri... | 1b3ac2e1dfbc09c6b3fa73ded9c6fb59cd86cac4 | src/main/java/model/transform/tasks/StoreOptions.java | src/main/java/model/transform/tasks/StoreOptions.java | Java |
<|file_sep|>original/mongo_retry_with_rescue.rb
<|file_sep|>current/mongo_retry_with_rescue.rb
<|file_sep|>updated/mongo_retry_with_rescue.rb | def rescue_connection_failure(max_retries=60)
retries = 0
begin
yield
rescue Mongo::ConnectionFailure => ex
retries += 1
raise ex if retries > max_retries
sleep(0.5)
retry
end
end
# usage
rescue_connection_failure do
# do something with db here...
end | <|file_sep|>original/mongo_retry_with_rescue.rb
<|file_sep|>current/mongo_retry_with_rescue.rb
<|file_sep|>updated/mongo_retry_with_rescue.rb
def rescue_connection_failure(max_retries=60)
retries = 0
begin
yield
rescue Mongo::ConnectionFailure => ex
retries += 1
raise ex if retries > max_retries
... | 03efab178c49c21341433866ef050399bfca94b9 | mongo_retry_with_rescue.rb | mongo_retry_with_rescue.rb | Ruby |
<|file_sep|>original/tests/test_location.py
from SUASSystem import *
import math
import numpy
import unittest
from dronekit import LocationGlobalRelative
class locationTestCase(unittest.TestCase):
def setUp(self):
self.position = Location(5, 12, 20)
def test_get_lat(self):
self.assertEquals(5... | import math
import numpy
import unittest
from dronekit import LocationGlobalRelative
class locationTestCase(unittest.TestCase):
def setUp(self):
self.position = Location(5, 12, 20)
def test_get_lat(self):
self.assertEquals(5, self.position.get_lat())
def test_get_lon(self):
self.... | <|file_sep|>original/tests/test_location.py
from SUASSystem import *
import math
import numpy
import unittest
from dronekit import LocationGlobalRelative
class locationTestCase(unittest.TestCase):
def setUp(self):
self.position = Location(5, 12, 20)
def test_get_lat(self):
self.assertEquals(5... | f1496f7f5babdf1f9fa8f527f42442aeccab46d7 | tests/test_location.py | tests/test_location.py | Python |
<|file_sep|>original/.travis.yml
osx_image: xcode7.3
xcode_project: 'xcodeProject/ObjectiveC.xcodeproj'
xcode_scheme: 'xobjectivecTest'
before_install:
- gem install bundler
- gem install danger
- brew cask uninstall oclint
- brew tap oclint/formulae
- brew install oclint
script:
- bin/fetch-configlet
- b... | osx_image: xcode7.3
xcode_project: 'xcodeProject/ObjectiveC.xcodeproj'
xcode_scheme: 'xobjectivecTest'
before_install:
- gem install bundler
- gem install danger
- brew cask uninstall oclint
- brew tap oclint/formulae
- brew install oclint
script:
- bin/fetch-configlet
- bin/configlet lint .
- xctool te... | <|file_sep|>original/.travis.yml
osx_image: xcode7.3
xcode_project: 'xcodeProject/ObjectiveC.xcodeproj'
xcode_scheme: 'xobjectivecTest'
before_install:
- gem install bundler
- gem install danger
- brew cask uninstall oclint
- brew tap oclint/formulae
- brew install oclint
script:
- bin/fetch-configlet
- b... | bbdd9aa140e9f81cbdebfa4460861ffc0a6771fe | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/config/deploy.rb
# Configuration
set :scm, :git
set :branch, "master"
ssh_options[:forward_agent] = true
set :use_sudo, false
set :deploy_via, :remote_cache
set :git_enable_submodules, 1
set :copy_exclude, [".git", "spec"]
# Restart passenger
namespace :deploy do
task :start do ; end
task :sto... |
set :deploy_to, '/srv/cyt.ch/bookyt'
role :web, "bookyt.cyt" # Your HTTP server, Apache/etc
role :app, "bookyt.cyt" # This may be the same as your `Web` server
role :db, "bookyt.cyt", :primary => true # This is where Rails migrations will run
# Configuration
s... | <|file_sep|>original/config/deploy.rb
# Configuration
set :scm, :git
set :branch, "master"
ssh_options[:forward_agent] = true
set :use_sudo, false
set :deploy_via, :remote_cache
set :git_enable_submodules, 1
set :copy_exclude, [".git", "spec"]
# Restart passenger
namespace :deploy do
task :start do ; end
task :sto... | 8c50de60ff835d228734920038886b1a0dbb3244 | config/deploy.rb | config/deploy.rb | Ruby |
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/base.txt
# Bleeding edge Django
django==2.1.7
# Configuration
django-environ==0.4.5
# Models
django-model-utils==3.1.2
# Images
Pillow==5.4.1
{% if cookiecutter.windows == 'y' -%}
# On Windows, you must download/install psycopg2 manually
# from http://... | # Bleeding edge Django
django==2.1.7
# Configuration
django-environ==0.4.5
# Models
django-model-utils==3.1.2
# Images
Pillow==7.1.2
{% if cookiecutter.windows == 'y' -%}
# On Windows, you must download/install psycopg2 manually
# from http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
{% else %}
# Python-PostgreSQ... | <|file_sep|>original/{{cookiecutter.project_slug}}/requirements/base.txt
# Bleeding edge Django
django==2.1.7
# Configuration
django-environ==0.4.5
# Models
django-model-utils==3.1.2
# Images
Pillow==5.4.1
{% if cookiecutter.windows == 'y' -%}
# On Windows, you must download/install psycopg2 manually
# from http://... | 2d1e971e7bfb0e4e30b53a43840646bb29a7c416 | {{cookiecutter.project_slug}}/requirements/base.txt | {{cookiecutter.project_slug}}/requirements/base.txt | Text |
<|file_sep|>spec/controllers/device_tokens_controller_spec.rb.diff
original:
updated:
<|file_sep|>original/spec/controllers/device_tokens_controller_spec.rb
require 'spec_helper'
describe FwtPushNotificationServer::DeviceTokensController do
let(:user1) { FactoryGirl.create(:user) }
it "creates a new de... | require 'spec_helper'
describe FwtPushNotificationServer::DeviceTokensController do
let(:user1) { FactoryGirl.create(:user) }
it "creates a new device token" do
post :create, :token => "ABC123", :user_id => user1.email, :provider => :apns
FwtPushNotificationServer::DeviceToken.count.should == 1
... | <|file_sep|>spec/controllers/device_tokens_controller_spec.rb.diff
original:
updated:
<|file_sep|>original/spec/controllers/device_tokens_controller_spec.rb
require 'spec_helper'
describe FwtPushNotificationServer::DeviceTokensController do
let(:user1) { FactoryGirl.create(:user) }
it "creates a new de... | c385090469ac411643c50b930a5941a7c0f2c204 | spec/controllers/device_tokens_controller_spec.rb | spec/controllers/device_tokens_controller_spec.rb | Ruby |
<|file_sep|>original/saleor/product/migrations/0117_auto_20200423_0737.py
<|file_sep|>current/saleor/product/migrations/0117_auto_20200423_0737.py
<|file_sep|>updated/saleor/product/migrations/0117_auto_20200423_0737.py | # Generated by Django 3.0.5 on 2020-04-23 12:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0116_auto_20200225_0237'),
]
operations = [
migrations.AlterField(
model_name='producttranslation',
name=... | <|file_sep|>original/saleor/product/migrations/0117_auto_20200423_0737.py
<|file_sep|>current/saleor/product/migrations/0117_auto_20200423_0737.py
<|file_sep|>updated/saleor/product/migrations/0117_auto_20200423_0737.py
# Generated by Django 3.0.5 on 2020-04-23 12:37
from django.db import migrations, models
class ... | ae7b39075f3dde712e50f09a388ccbf9e187eab9 | saleor/product/migrations/0117_auto_20200423_0737.py | saleor/product/migrations/0117_auto_20200423_0737.py | Python |
<|file_sep|>original/Gruntfile.js
'test/**/*.js'
],
watch_files: [
'src/**/*.js',
'test/**/*.js'
]
}
}
},
watch: {
all: {
files: ['src/**/*.js', 'test/**/*.js'],
tasks: ['jshint']
}
}
});
grunt.l... | ],
watch_files: [
'src/**/*.js',
'test/**/*.js'
]
}
}
},
watch: {
all: {
files: ['src/**/*.js', 'test/**/*.js'],
tasks: ['jshint']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('gr... | <|file_sep|>original/Gruntfile.js
'test/**/*.js'
],
watch_files: [
'src/**/*.js',
'test/**/*.js'
]
}
}
},
watch: {
all: {
files: ['src/**/*.js', 'test/**/*.js'],
tasks: ['jshint']
}
}
});
grunt.l... | 4569b78d22781ff28486368c10278cb9d6276ef6 | Gruntfile.js | Gruntfile.js | JavaScript |
<|file_sep|>app/models/ontology_version/states.rb.diff
original:
ontology.state = state
# unset logic_id to pass the logic_id_check in case of failures
ontology.logic_id = nil if state=='failed'
updated:
ontology.state = state.to_s
<|file_sep|>original/app/models/ontology_version/states.rb
elsif... | msg << out.sub(URI.regexp,"...").sub(/ \/[A-Za-z0-9\/.]*/," ...")
elsif last_error.include?("exited with status")
msg << last_error[0,50]+" ... "+last_error.match("exited with status.*")[0]
else
msg << lines.first
end
end
msg.join(": ")
end
protected
def aft... | <|file_sep|>app/models/ontology_version/states.rb.diff
original:
ontology.state = state
# unset logic_id to pass the logic_id_check in case of failures
ontology.logic_id = nil if state=='failed'
updated:
ontology.state = state.to_s
<|file_sep|>original/app/models/ontology_version/states.rb
elsif... | 3caef45020e4e733e0385c215b0035a8ef287a04 | app/models/ontology_version/states.rb | app/models/ontology_version/states.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
before_install: "gem update bundler"
<|file_sep|>.travis.yml.diff
original:
updated:
- 2.4.2
<|file_sep|>.travis.yml.diff
original:
- rbx-2
updated:
<|file_sep|>original/.travis.yml
script: "bundle exec rake ci"
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3... | bundler_args: --without yard benchmarks
script: "bundle exec rake ci"
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3.1
- 2.4.2
- jruby-9000
- jruby-head
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
fast_finish: true
branches:
only: master
notifications:
email: fa... | <|file_sep|>.travis.yml.diff
original:
updated:
before_install: "gem update bundler"
<|file_sep|>.travis.yml.diff
original:
updated:
- 2.4.2
<|file_sep|>.travis.yml.diff
original:
- rbx-2
updated:
<|file_sep|>original/.travis.yml
script: "bundle exec rake ci"
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3... | f98ff8f3414d94c2f625eb7ffc406ffacf0ef640 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/deployments/data8xv2/image/environment.yml
dependencies:
- matplotlib==3.0.2
- pandas==0.23.4
- scipy==1.2.0
- numpy==1.16.0
- pip
- pip:
- nbforms==0.5.1
- datascience==0.15.4
# For grading
- git+https://github.com/ucbds-infra/Gofer-Grader.git@dbf3500
- gofer-submit==0.... | dependencies:
- matplotlib==3.0.2
- pandas==0.23.4
- scipy==1.2.0
- numpy==1.16.0
- pip
# Visual Studio Code!
- jupyter-vscode-proxy
- code-server
- pip:
- nbforms==0.5.1
- datascience==0.15.4
# For grading
- git+https://github.com/ucbds-infra/Gofer-Grader.git@dbf3500
- gofer-submit=... | <|file_sep|>original/deployments/data8xv2/image/environment.yml
dependencies:
- matplotlib==3.0.2
- pandas==0.23.4
- scipy==1.2.0
- numpy==1.16.0
- pip
- pip:
- nbforms==0.5.1
- datascience==0.15.4
# For grading
- git+https://github.com/ucbds-infra/Gofer-Grader.git@dbf3500
- gofer-submit==0.... | 6804e6f56a400b5e97743cfa6ec9007d078805d3 | deployments/data8xv2/image/environment.yml | deployments/data8xv2/image/environment.yml | YAML |
<|file_sep|>original/lib/views/global_nav.erb
<ul class='unstyled custom-container'>
<li class='nav-selected'>
<a href='<%= Drop.settings[:url] %>' title='Drop'><div class='nav-icon picto picto-file icon-2x'></div></a>
</li>
<li id='auth-button'>
</li>
</ul>
<|file_sep|>current/lib/views/global_nav.erb
<ul... | <ul class='unstyled custom-container'>
<li class='nav-selected'>
<a href='<%= Drop.settings[:url] %>' title='Files'><div class='nav-icon picto picto-file icon-2x'></div></a>
</li>
<li id='auth-button'>
</li>
</ul> | <|file_sep|>original/lib/views/global_nav.erb
<ul class='unstyled custom-container'>
<li class='nav-selected'>
<a href='<%= Drop.settings[:url] %>' title='Drop'><div class='nav-icon picto picto-file icon-2x'></div></a>
</li>
<li id='auth-button'>
</li>
</ul>
<|file_sep|>current/lib/views/global_nav.erb
<ul... | 4e8e2967dfdae4e96e856c95a227d268d5634852 | lib/views/global_nav.erb | lib/views/global_nav.erb | HTML+ERB |
<|file_sep|>original/examples/www-demo.g
@prefix sys "http://www.genyris.org/lang/system#"
df httpd-serve (request)
print request
list 200 "text/html"
template
html()
head()
title() "Genyris demo"
body()
pre() ,sys:argv
... | @prefix sys "http://www.genyris.org/lang/system#"
df httpd-serve (request)
print request
list 200 "text/html"
template
html()
head()
title() "Genyris demo"
body()
pre()
verbatim() ,sys:argv
,(r... | <|file_sep|>original/examples/www-demo.g
@prefix sys "http://www.genyris.org/lang/system#"
df httpd-serve (request)
print request
list 200 "text/html"
template
html()
head()
title() "Genyris demo"
body()
pre() ,sys:argv
... | 63493911e0f682f2b2fe83e34eab9963faa3d85d | examples/www-demo.g | examples/www-demo.g | G-code |
<|file_sep|>original/KugelmatikFirmware/config.h
uint32_t tickTime;
uint32_t homeTime;
uint32_t fixTime;
int16_t maxSteps; // Maximale Anzahl an Schritten die die Firmware maximal machen darf (nach unten)
int16_t homeSteps;
int16_t fixSteps; // Anzahl an Schritten die die Firmware macht um eine Kugel nach unte... |
uint32_t tickTime;
uint32_t homeTime;
uint32_t fixTime;
int16_t maxSteps; // Maximale Anzahl an Schritten die die Firmware maximal machen darf (nach unten)
int16_t homeSteps;
int16_t fixSteps; // Anzahl an Schritten die die Firmware macht um eine Kugel nach unten zu fahren (ignoriert dabei maxSteps)
uint16_t... | <|file_sep|>original/KugelmatikFirmware/config.h
uint32_t tickTime;
uint32_t homeTime;
uint32_t fixTime;
int16_t maxSteps; // Maximale Anzahl an Schritten die die Firmware maximal machen darf (nach unten)
int16_t homeSteps;
int16_t fixSteps; // Anzahl an Schritten die die Firmware macht um eine Kugel nach unte... | 914aa3e86b039d935ae322bf2c0b654dd9de42ad | KugelmatikFirmware/config.h | KugelmatikFirmware/config.h | C |
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
require 'uri'
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
# where do we store fixtures?
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
# what are we using to mock our HTTP connection?
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
... |
def test_fetch_loans
library = LibrariesWest.new
library.send_authentication
response = library.fetch_loans
assert_match(/<loans>/, response)
end
def test_renew_loan
library = LibrariesWest.new
library.send_authentication
response = library.renew_loan(ENV['LOAN_ID'])
xml = XmlSim... | <|file_sep|>tests/vcr_test.rb.diff
original:
updated:
require 'uri'
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
# where do we store fixtures?
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
# what are we using to mock our HTTP connection?
<|file_sep|>tests/vcr_test.rb.diff
original:
updated:
... | 059044fdf98b6dddf811d9ad71388a8845cf4b2e | tests/vcr_test.rb | tests/vcr_test.rb | Ruby |
<|file_sep|>original/web/css/main.css
#main
{
display:table-row;
}
#navigation
{
display:table-cell;
width: 20%;
background-color: #110011;
color: #0000aa;
border-right: 1px solid #000033;
}
#navigation ul
{
list-style-type: none;
}
#content
<|file_sep|>current/web/css/main.css
#main
{
display:table-row;
}
#navig... |
#main
{
display:table-row;
}
#navigation
{
display:table-cell;
width: 20%;
background-color: ##f5f5f5;
color: #0000aa;
border-right: 1px solid #000033;
}
#navigation ul
{
list-style-type: none;
}
#content | <|file_sep|>original/web/css/main.css
#main
{
display:table-row;
}
#navigation
{
display:table-cell;
width: 20%;
background-color: #110011;
color: #0000aa;
border-right: 1px solid #000033;
}
#navigation ul
{
list-style-type: none;
}
#content
<|file_sep|>current/web/css/main.css
#main
{
display:table-row;
}
#navig... | 1485fcfbbc073182d11620a0ab8de1269696873b | web/css/main.css | web/css/main.css | CSS |
<|file_sep|>original/src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.kt
*
* 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" BAS... | *
* 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 governi... | <|file_sep|>original/src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.kt
*
* 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" BAS... | 838fed9017a800b6a4ab9ba73b711bf8d7104b40 | src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.kt | src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.kt | Kotlin |
<|file_sep|>original/resources/clj-kondo.exports/funcool/promesa/config.edn
{:lint-as {promesa.core/-> clojure.core/->
promesa.core/->> clojure.core/->>
promesa.core/as-> clojure.core/as->
promesa.core/let clojure.core/let
promesa.core/plet clojure.core/let
... | {:lint-as {promesa.core/-> clojure.core/->
promesa.core/->> clojure.core/->>
promesa.core/as-> clojure.core/as->
promesa.core/let clojure.core/let
promesa.core/plet clojure.core/let
promesa.core/loop clojure.core/loop
... | <|file_sep|>original/resources/clj-kondo.exports/funcool/promesa/config.edn
{:lint-as {promesa.core/-> clojure.core/->
promesa.core/->> clojure.core/->>
promesa.core/as-> clojure.core/as->
promesa.core/let clojure.core/let
promesa.core/plet clojure.core/let
... | ea515502a96f697a8fe45e1a02e1857eccdd23e7 | resources/clj-kondo.exports/funcool/promesa/config.edn | resources/clj-kondo.exports/funcool/promesa/config.edn | edn |
<|file_sep|>original/lib/scan/manager.rb
module Scan
class Manager
def work(options)
Scan.config = options
FastlaneCore::PrintTable.print_values(config: options, hide_keys: [], title: "Summary")
return Runner.new.run
end
end
end
<|file_sep|>current/lib/scan/manager.rb
module Scan
class... | module Scan
class Manager
def work(options)
Scan.config = options
FastlaneCore::PrintTable.print_values(config: options, hide_keys: [:destination], title: "Summary")
return Runner.new.run
end
end
end | <|file_sep|>original/lib/scan/manager.rb
module Scan
class Manager
def work(options)
Scan.config = options
FastlaneCore::PrintTable.print_values(config: options, hide_keys: [], title: "Summary")
return Runner.new.run
end
end
end
<|file_sep|>current/lib/scan/manager.rb
module Scan
class... | 1fb2fd89f1bad04fdbde7f4f5583aa78db5db356 | lib/scan/manager.rb | lib/scan/manager.rb | Ruby |
<|file_sep|>test/test_models.rb.diff
original:
serialize :value, CustomSerialize
updated:
<|file_sep|>original/test/test_models.rb
end
def self.default_things
[1, 2, 3]
end
def validate_favourite_colour
errors.add(:value, "invalid is invalid WERD") if value == "invalid"
end
class CustomSe... | [1, 2, 3]
end
def validate_favourite_colour
errors.add(:value, "invalid is invalid WERD") if value == "invalid"
end
class CustomSerialize
def self.load(val)
ActiveRecord::Coders::YAMLColumn.new.load(val)
end
def self.dump(val)
val = 'bar' if val == 'foo'
ActiveReco... | <|file_sep|>test/test_models.rb.diff
original:
serialize :value, CustomSerialize
updated:
<|file_sep|>original/test/test_models.rb
end
def self.default_things
[1, 2, 3]
end
def validate_favourite_colour
errors.add(:value, "invalid is invalid WERD") if value == "invalid"
end
class CustomSe... | c6f348aaaf75d6cc200ac7ed974b2a979e78c693 | test/test_models.rb | test/test_models.rb | Ruby |
<|file_sep|>salt/utils/saltminionservice.py.diff
original:
import win32api
updated:
<|file_sep|>salt/utils/saltminionservice.py.diff
original:
def console_event_handler(event):
if event == 5:
# Do nothing on CTRL_LOGOFF_EVENT
return True
return False
updated:
<|file_sep|>original/salt/utils/sa... | pass
#self.sleep(10)
#self.log("I'm alive ...")
def stop(self):
self.runflag = False
self.log("Shutting down the Salt Minion")
def _main():
servicename = 'salt-minion'
try:
status = win32serviceutil.QueryServiceStatus(servicename)
except win... | <|file_sep|>salt/utils/saltminionservice.py.diff
original:
import win32api
updated:
<|file_sep|>salt/utils/saltminionservice.py.diff
original:
def console_event_handler(event):
if event == 5:
# Do nothing on CTRL_LOGOFF_EVENT
return True
return False
updated:
<|file_sep|>original/salt/utils/sa... | 8a544ac2db71d4041c77fdb0ddfe27b84b565bb5 | salt/utils/saltminionservice.py | salt/utils/saltminionservice.py | Python |
<|file_sep|>validatish/error.py.diff
original:
updated:
<|file_sep|>original/validatish/error.py
@property
def errors(self):
return list(_flatten(self._fetch_errors(), _keepstrings))
def _fetch_errors(self):
if self.exceptions is None:
yield self.message
el... | def errors(self):
return list(_flatten(self._fetch_errors(), _keepstrings))
def _fetch_errors(self):
if self.exceptions is None:
yield self.message
else:
for e in self.exceptions:
yield e._fetch_errors()
# Hide Python 2.6 deprecation warning.... | <|file_sep|>validatish/error.py.diff
original:
updated:
<|file_sep|>original/validatish/error.py
@property
def errors(self):
return list(_flatten(self._fetch_errors(), _keepstrings))
def _fetch_errors(self):
if self.exceptions is None:
yield self.message
el... | 65fd070a88e06bb040e8c96babc6b4c86ca29730 | validatish/error.py | validatish/error.py | Python |
<|file_sep|>original/package.json
"name": "threeflows",
"version": "0.1.0",
"engines": {
"node": "6.2.1"
},
"main": "server/index.js",
"scripts": {
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch... | "name": "threeflows",
"version": "0.1.0",
"engines": {
"node": "6.2.1"
},
"main": "server/index.js",
"scripts": {
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch": "cd ui && npm run watch && cd .... | <|file_sep|>original/package.json
"name": "threeflows",
"version": "0.1.0",
"engines": {
"node": "6.2.1"
},
"main": "server/index.js",
"scripts": {
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch... | dd765d19881afbb98a58832f053ff8e70f48b8c6 | package.json | package.json | JSON |
<|file_sep|>original/bash/golang.dot.12.sh
export GOPATH=$HOME/golang
mkdir -p "$GOPATH"
,path-add ~/golang/bin
# Generally I prob won't use <= 1.7 now, but I'll keep this just in case.
export GO15VENDOREXPERIMENT=1
<|file_sep|>current/bash/golang.dot.12.sh
export GOPATH=$HOME/golang
mkdir -p "$GOPATH"
,path-add ~/gol... | export GOPATH=$HOME/golang
mkdir -p "$GOPATH"
,path-add ~/golang/bin
# Generally I prob won't use <= 1.7 now, but I'll keep this just in case.
export GO15VENDOREXPERIMENT=1
alias golinux="GOOS=linux GOARCH=amd64 go"
alias godarwin="GOOS=darwin GOARCH=amd64 go" | <|file_sep|>original/bash/golang.dot.12.sh
export GOPATH=$HOME/golang
mkdir -p "$GOPATH"
,path-add ~/golang/bin
# Generally I prob won't use <= 1.7 now, but I'll keep this just in case.
export GO15VENDOREXPERIMENT=1
<|file_sep|>current/bash/golang.dot.12.sh
export GOPATH=$HOME/golang
mkdir -p "$GOPATH"
,path-add ~/gol... | 8b6449d787fb5a3c88ad9e68bd870397ed158f92 | bash/golang.dot.12.sh | bash/golang.dot.12.sh | Shell |
<|file_sep|>original/xhprof_lib/templates/footer.phtml
<script src='http://code.jquery.com/jquery-1.4.2.min.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.tooltip.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.autocomplete.js' type="text/javascript"></script... | <script src='third-party/jquery/jquery-1.4.2.min.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.tooltip.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.autocomplete.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter-function.js' ... | <|file_sep|>original/xhprof_lib/templates/footer.phtml
<script src='http://code.jquery.com/jquery-1.4.2.min.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.tooltip.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.autocomplete.js' type="text/javascript"></script... | 8a1a9b4c84b146e352ca78f29d4a3a7315afd3c4 | xhprof_lib/templates/footer.phtml | xhprof_lib/templates/footer.phtml | HTML+PHP |
<|file_sep|>original/circle.yml
dependencies:
pre:
- git config --global user.email "circleci@ignore"
- git config --global user.name "CircleCI"
test:
override:
- lein midje
deployment:
production_deploy:
branch: circle-automatic-master-deploy
commands:
- git push heroku circle-automatic... | dependencies:
pre:
- git config --global user.email "circleci@ignore"
- git config --global user.name "CircleCI"
- heroku git:remote -a $APP
test:
override:
- lein midje
deployment:
production_deploy:
branch: circle-automatic-master-deploy
commands:
- git push heroku circle-automatic... | <|file_sep|>original/circle.yml
dependencies:
pre:
- git config --global user.email "circleci@ignore"
- git config --global user.name "CircleCI"
test:
override:
- lein midje
deployment:
production_deploy:
branch: circle-automatic-master-deploy
commands:
- git push heroku circle-automatic... | 96002edb6f7b3f9a987bebd24c81263c58536dd5 | circle.yml | circle.yml | YAML |
<|file_sep|>original/lib/install/template.rb
INSTALL_PATH = File.dirname(__FILE__)
directory "#{INSTALL_PATH}/javascript", 'app/javascript'
directory "#{INSTALL_PATH}/bin", 'bin'
chmod 'bin', 0755 & ~File.umask, verbose: false
directory "#{INSTALL_PATH}/config", 'config/webpack'
run './bin/yarn add webpack lodash b... | INSTALL_PATH = File.dirname(__FILE__)
directory "#{INSTALL_PATH}/javascript", 'app/javascript'
directory "#{INSTALL_PATH}/bin", 'bin'
chmod 'bin', 0755 & ~File.umask, verbose: false
directory "#{INSTALL_PATH}/config", 'config/webpack'
run './bin/yarn add --dev webpack lodash babel-loader babel-core babel-preset-es2... | <|file_sep|>original/lib/install/template.rb
INSTALL_PATH = File.dirname(__FILE__)
directory "#{INSTALL_PATH}/javascript", 'app/javascript'
directory "#{INSTALL_PATH}/bin", 'bin'
chmod 'bin', 0755 & ~File.umask, verbose: false
directory "#{INSTALL_PATH}/config", 'config/webpack'
run './bin/yarn add webpack lodash b... | 5afa88259c4fa7d3ed101ea354f769377a7c4688 | lib/install/template.rb | lib/install/template.rb | Ruby |
<|file_sep|>original/prepare.sh
#!/bin/sh
sudo apt-get update
sudo apt-get install -qy curl tmux
sudo apt-get dist-upgrade -qy
curl -fsSL https://get.docker.com/ | sh
docker build -t omnirom-ether .
docker run omnirom-ether
<|file_sep|>current/prepare.sh
#!/bin/sh
sudo apt-get update
sudo apt-get install -qy curl tmux
... | #!/bin/sh
sudo apt-get update
sudo apt-get install -qy curl tmux
sudo apt-get dist-upgrade -qy
curl -fsSL https://get.docker.com/ | sh
docker build -t omnirom-ether .
sudo usermod -aG docker $(whoami)
sudo docker run omnirom-ether | <|file_sep|>original/prepare.sh
#!/bin/sh
sudo apt-get update
sudo apt-get install -qy curl tmux
sudo apt-get dist-upgrade -qy
curl -fsSL https://get.docker.com/ | sh
docker build -t omnirom-ether .
docker run omnirom-ether
<|file_sep|>current/prepare.sh
#!/bin/sh
sudo apt-get update
sudo apt-get install -qy curl tmux
... | 3155d8d0800f938a6c78fb606ba918d779f41647 | prepare.sh | prepare.sh | Shell |
<|file_sep|>original/lib/cli.js
var harmonyFlags = [
'--harmony_scoping',
// '--harmony_modules', // We have `require` and ES6 modules are still in flux
'--harmony_symbols', // `Symbol('s')` throws
// '--harmony_proxies', // `new Proxy({}, {})` throws
'--harmony_generators',
'--harmony_numeric_li... |
var harmonyFlags = [
'--harmony_scoping',
// '--harmony_modules', // We have `require` and ES6 modules are still in flux
'--harmony_symbols', // `Symbol('s')` throws
// '--harmony_proxies', // `new Proxy({}, {})` throws
'--harmony_generators',
'--harmony_numeric_literals',
'--harmony_strings'... | <|file_sep|>original/lib/cli.js
var harmonyFlags = [
'--harmony_scoping',
// '--harmony_modules', // We have `require` and ES6 modules are still in flux
'--harmony_symbols', // `Symbol('s')` throws
// '--harmony_proxies', // `new Proxy({}, {})` throws
'--harmony_generators',
'--harmony_numeric_li... | cb867c23ecee7b7e468602ede8b1f15f7cc82167 | lib/cli.js | lib/cli.js | JavaScript |
<|file_sep|>original/composer.json
"aura/di": "~2.1",
"aura/sql" : "~2.0",
"aura/sqlquery": "~2.0",
"aura/router": "~3.0",
"aura/view": "~2.0.0",
"aura/web": "~2.0",
"monolog/monolog": "~1.5",
"pagerfanta/pagerfanta": "v1.0.1",
"aura/auth": "~2.0",... | "aura/di": "~2.1",
"aura/sql" : "~2.0",
"aura/sqlquery": "~2.0",
"aura/router": "~3.0",
"aura/view": "~2.0.0",
"aura/web": "~2.0",
"monolog/monolog": "~1.5",
"pagerfanta/pagerfanta": "v1.0.1",
"aura/auth": "~2.0",
"aura/html": "~2.1.0",
... | <|file_sep|>original/composer.json
"aura/di": "~2.1",
"aura/sql" : "~2.0",
"aura/sqlquery": "~2.0",
"aura/router": "~3.0",
"aura/view": "~2.0.0",
"aura/web": "~2.0",
"monolog/monolog": "~1.5",
"pagerfanta/pagerfanta": "v1.0.1",
"aura/auth": "~2.0",... | c2329917296d1f75bbb2d3dced0fcca5857c71ee | composer.json | composer.json | JSON |
<|file_sep|>original/src/Test/Ast/OrderedListStart.ts
#. Hello, world!
# Goodbye, world!
#) Goodbye, world!`
expect(listStart(text)).to.be.eql(null)
})
it('does not have an explicit starting ordinal even if the second list item has a numeral bullet', () => {
const text =
`
#. Hello, world!
5 Goodbye,... | #. Hello, world!
# Goodbye, world!
#) Goodbye, world!`
expect(listStart(text)).to.be.eql(null)
})
it('does not have an explicit starting ordinal even if the second list item has a numeral bullet', () => {
const text =
`
#. Hello, world!
5) Goodbye, world!
#) Goodbye, world!`
expect(listStart(text... | <|file_sep|>original/src/Test/Ast/OrderedListStart.ts
#. Hello, world!
# Goodbye, world!
#) Goodbye, world!`
expect(listStart(text)).to.be.eql(null)
})
it('does not have an explicit starting ordinal even if the second list item has a numeral bullet', () => {
const text =
`
#. Hello, world!
5 Goodbye,... | c67fb558bd62123ca6add635884e349469e0a999 | src/Test/Ast/OrderedListStart.ts | src/Test/Ast/OrderedListStart.ts | TypeScript |
<|file_sep|>.goreleaser.yml.diff
original:
updated:
- linux
<|file_sep|>.goreleaser.yml.diff
original:
- linux
updated:
<|file_sep|>.goreleaser.yml.diff
original:
updated:
- freebsd
- netbsd
- openbsd
<|file_sep|>original/.goreleaser.yml
goos:
- windo... | goos:
- linux
- windows
- darwin
- freebsd
- netbsd
- openbsd
goarch:
- amd64
archive:
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch}}"
... | <|file_sep|>.goreleaser.yml.diff
original:
updated:
- linux
<|file_sep|>.goreleaser.yml.diff
original:
- linux
updated:
<|file_sep|>.goreleaser.yml.diff
original:
updated:
- freebsd
- netbsd
- openbsd
<|file_sep|>original/.goreleaser.yml
goos:
- windo... | 7972b139bdddd19f5324e3ff0cfe2bba488dbf7e | .goreleaser.yml | .goreleaser.yml | YAML |
<|file_sep|>original/appveyor.yml
version: 1.0.{build}
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
before_build:
- cmd: nuget restore
build:
project: NLog.Kafka.sln
publish_nuget: false
publish_nuget_symbols: false
include_nuget_references: false
verbosity: normal
after_build:
- n... | version: 1.0.{build}
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
before_build:
- cmd: nuget restore
build:
project: NLog.Kafka.sln
publish_nuget: false
publish_nuget_symbols: false
include_nuget_references: false
verbosity: normal
after_build:
- nuget pack NLog.Targets.Kafka\NLog.... | <|file_sep|>original/appveyor.yml
version: 1.0.{build}
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
before_build:
- cmd: nuget restore
build:
project: NLog.Kafka.sln
publish_nuget: false
publish_nuget_symbols: false
include_nuget_references: false
verbosity: normal
after_build:
- n... | 91c73aa21efcf752fd2a7f7a6043bf3eb2b02756 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>src/anol/geocoder/base.js.diff
original:
updated:
})
.fail(function() {
deferred.resolve([]);
<|file_sep|>original/src/anol/geocoder/base.js
deferred.resolve(results);
});
} else {
$.get(self.getUrl(... | deferred.resolve(results);
})
.fail(function() {
deferred.resolve([]);
});
} else {
$.get(self.getUrl(searchString))
.success(function(response) {
var results = self.handleResp... | <|file_sep|>src/anol/geocoder/base.js.diff
original:
updated:
})
.fail(function() {
deferred.resolve([]);
<|file_sep|>original/src/anol/geocoder/base.js
deferred.resolve(results);
});
} else {
$.get(self.getUrl(... | 1a420d9d243983fad908021fc13e90a101f8e58b | src/anol/geocoder/base.js | src/anol/geocoder/base.js | JavaScript |
<|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt
// until the changes can be landed upstream.
// TODO(podivilov): Remove on next roll.
BUG_PODIVILOV MAC : svg/custom/clip-path-child-changes.svg = TEXT
// TODO(ager): started crashing after the v8 roll of r52309.
// http://crbug.com/49099
BUG_AGER L... | // 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.
// TODO(podivilov): Re... | <|file_sep|>original/webkit/tools/layout_tests/test_expectations.txt
// until the changes can be landed upstream.
// TODO(podivilov): Remove on next roll.
BUG_PODIVILOV MAC : svg/custom/clip-path-child-changes.svg = TEXT
// TODO(ager): started crashing after the v8 roll of r52309.
// http://crbug.com/49099
BUG_AGER L... | 10bc49e8325074c3be2f9bf8015f80b411236e21 | webkit/tools/layout_tests/test_expectations.txt | webkit/tools/layout_tests/test_expectations.txt | Text |
<|file_sep|>original/web/app/pages/list-games/index.js
import ATV from 'atvjs';
import template from './template.hbs';
let Page = ATV.Page.create({
name: 'list-games',
template: template,
ready(options, resolve, reject) {
ATV.Navigation.showLoading("Loading Games…");
let heheGames = 'http://h... | import ATV from 'atvjs';
import template from './template.hbs';
let Page = ATV.Page.create({
name: 'list-games',
template: template,
ready(options, resolve, reject) {
ATV.Navigation.showLoading("Loading Games…");
let heheGames = 'http://hehestreams.xyz/api/v1/nba/games';
ATV
.... | <|file_sep|>original/web/app/pages/list-games/index.js
import ATV from 'atvjs';
import template from './template.hbs';
let Page = ATV.Page.create({
name: 'list-games',
template: template,
ready(options, resolve, reject) {
ATV.Navigation.showLoading("Loading Games…");
let heheGames = 'http://h... | 1072a58990275794491586e32988f713dca88dfb | web/app/pages/list-games/index.js | web/app/pages/list-games/index.js | JavaScript |
<|file_sep|>LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs.diff
original:
using System;
updated:
using LtiLibrary.Core.Outcomes.v1;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.IO;
<|file_sep|>LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs.diff
original:
using Lt... | private static readonly XmlSerializer ImsxRequestSerializer = new XmlSerializer(typeof(imsx_POXEnvelopeType),
null, null, new XmlRootAttribute("imsx_POXEnvelopeRequest"),
"http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0");
public Task BindModelAsync(ModelBindingContext... | <|file_sep|>LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs.diff
original:
using System;
updated:
using LtiLibrary.Core.Outcomes.v1;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.IO;
<|file_sep|>LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs.diff
original:
using Lt... | 8527b470e810059d36fccf6979ef6582e09d5e77 | LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs | LtiLibrary.AspNet/Outcomes/v1/ImsxXmlMediaTypeModelBinder.cs | C# |
<|file_sep|>spring-cloud-skipper-server-core/src/main/resources/application.yml.diff
original:
updated:
mustache:
check-template-location: false
<|file_sep|>original/spring-cloud-skipper-server-core/src/main/resources/application.yml
springRepo:
url: https://repo.spring.io/libs-snapshot
logging:
... | url: https://repo.spring.io/libs-snapshot
logging:
level:
org.springframework.beans: 'WARN'
org.springframework.context: 'WARN'
org.springframework.core.io: 'WARN'
org.springframework.data: 'WARN'
org.springframework.jmx: 'WARN'
org.springframework.web: 'WARN'
org.springframework... | <|file_sep|>spring-cloud-skipper-server-core/src/main/resources/application.yml.diff
original:
updated:
mustache:
check-template-location: false
<|file_sep|>original/spring-cloud-skipper-server-core/src/main/resources/application.yml
springRepo:
url: https://repo.spring.io/libs-snapshot
logging:
... | 3c48f51c31387d034170aacc611bc316c1aa5a2c | spring-cloud-skipper-server-core/src/main/resources/application.yml | spring-cloud-skipper-server-core/src/main/resources/application.yml | YAML |
<|file_sep|>original/release.sh
#!/bin/sh
set -e
FILES="
asn1.js oids.js base64.js hex.js int10.js dom.js test.js
index.css index.js index.html
README.md LICENSE
update.sh check.sh
"
sha256sum </dev/null >/dev/null 2>&1 && SHA256=sha256sum || SHA256=gsha256sum
$SHA256 -t $FILES | gpg --clearsign > sha256sums.as... | #!/bin/sh
set -e
FILES="
asn1.js oids.js base64.js hex.js int10.js dom.js test.js
index.css index.js index.html
README.md LICENSE
update.sh check.sh
"
type gsha256sum >/dev/null && SHA256=gsha256sum || SHA256=sha256sum
$SHA256 -t $FILES | gpg --clearsign > sha256sums.asc
7z a -tzip -mx=9 asn1js.zip $FILES sha25... | <|file_sep|>original/release.sh
#!/bin/sh
set -e
FILES="
asn1.js oids.js base64.js hex.js int10.js dom.js test.js
index.css index.js index.html
README.md LICENSE
update.sh check.sh
"
sha256sum </dev/null >/dev/null 2>&1 && SHA256=sha256sum || SHA256=gsha256sum
$SHA256 -t $FILES | gpg --clearsign > sha256sums.as... | 5f95beb61857925f751a231a3be5dc12995ef18e | release.sh | release.sh | Shell |
<|file_sep|>original/tests/unittest.py
# 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 permissions an... |
# logging doesn't have a "don't log anything at all EVARRRR setting,
# but since the highest value is 50, 1000000 should do ;)
NEVER = 1000000
logging.getLogger().addHandler(logging.StreamHandler())
logging.getLogger().setLevel(NEVER)
class TestCase(unittest.TestCase):
def __init__(self, *args, **kwargs):
... | <|file_sep|>original/tests/unittest.py
# 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 permissions an... | ca8349a897c233d72ea74128dabdd1311f00c13c | tests/unittest.py | tests/unittest.py | Python |
<|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.diff
original:
updated:
$this->package('barryvdh/laravel-debugbar');
<|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.diff
original:
$this->package('barryvdh/laravel-debugbar');
updated:
<|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.... |
$this->app['command.debugbar.publish'] = $this->app->share(function($app)
{
return new Console\PublishCommand($app['asset.publisher']);
});
$this->commands('command.debugbar.publish');
}
/**
* Get the services provided by the provider.
*
... | <|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.diff
original:
updated:
$this->package('barryvdh/laravel-debugbar');
<|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.diff
original:
$this->package('barryvdh/laravel-debugbar');
updated:
<|file_sep|>src/Barryvdh/Debugbar/ServiceProvider.php.... | 7c8ea17f3fa62cf44378b94244dfbf20ec5ebeb9 | src/Barryvdh/Debugbar/ServiceProvider.php | src/Barryvdh/Debugbar/ServiceProvider.php | PHP |
<|file_sep|>original/java/leetcode/maximal_rectangle/Solution.java
<|file_sep|>current/java/leetcode/maximal_rectangle/Solution.java
<|file_sep|>updated/java/leetcode/maximal_rectangle/Solution.java | package leetcode.maximal_rectangle;
import java.util.Random;
import java.util.Stack;
public class Solution {
public int maximalRectangle(char[][] matrix) {
if(matrix == null || matrix.length == 0 || matrix[0].length == 0) return 0;
int height = matrix.length;
int width = matrix[0].length;
int[... | <|file_sep|>original/java/leetcode/maximal_rectangle/Solution.java
<|file_sep|>current/java/leetcode/maximal_rectangle/Solution.java
<|file_sep|>updated/java/leetcode/maximal_rectangle/Solution.java
package leetcode.maximal_rectangle;
import java.util.Random;
import java.util.Stack;
public class Solution {
publ... | fdd9b4503b42b470ec3a7e81776780b3c5dd2825 | java/leetcode/maximal_rectangle/Solution.java | java/leetcode/maximal_rectangle/Solution.java | Java |
<|file_sep|>original/mapcache/src/main/java/mil/nga/mapcache/preferences/BasemapSettingsActivity.java
import androidx.appcompat.app.AppCompatActivity;
import mil.nga.mapcache.R;
public class BasemapSettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
import androidx.appcompat.app.AppCompatActivity;
import mil.nga.mapcache.R;
public class BasemapSettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preferences);
... | <|file_sep|>original/mapcache/src/main/java/mil/nga/mapcache/preferences/BasemapSettingsActivity.java
import androidx.appcompat.app.AppCompatActivity;
import mil.nga.mapcache.R;
public class BasemapSettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | f77ce81a7032bd5149c4e6e5936259b943156f1b | mapcache/src/main/java/mil/nga/mapcache/preferences/BasemapSettingsActivity.java | mapcache/src/main/java/mil/nga/mapcache/preferences/BasemapSettingsActivity.java | Java |
<|file_sep|>original/us_ignite/common/sanitizer.py
'blockquote',
'code',
'em',
'i',
'li',
'ol',
'strong',
'ul',
'p',
'br',
]
ALLOWED_ATTRIBUTES = {
'a': ['href', 'title'],
'abbr': ['title'],
'acronym': ['title'],
}
ALLOWED_STYLES = []
<|file_sep|>current/us_ignite... | 'blockquote',
'code',
'em',
'i',
'li',
'ol',
'strong',
'ul',
'p',
'br',
'h3',
'h4',
'h5',
'h6',
]
ALLOWED_ATTRIBUTES = {
'a': ['href', 'title'],
'abbr': ['title'],
'acronym': ['title'],
} | <|file_sep|>original/us_ignite/common/sanitizer.py
'blockquote',
'code',
'em',
'i',
'li',
'ol',
'strong',
'ul',
'p',
'br',
]
ALLOWED_ATTRIBUTES = {
'a': ['href', 'title'],
'abbr': ['title'],
'acronym': ['title'],
}
ALLOWED_STYLES = []
<|file_sep|>current/us_ignite... | 4d5c8ec9c2006b78a42461af43944de8ab7bc9ea | us_ignite/common/sanitizer.py | us_ignite/common/sanitizer.py | Python |
<|file_sep|>winthrop/people/admin.py.diff
original:
admin.site.register(Person)
admin.site.register(Residence)
updated:
class ResidenceInline(admin.TabularInline):
'''Inline class for Residence'''
model = Residence
class PersonAdmin(admin.ModelAdmin):
inlines = [
ResidenceInline
]
admin.sit... | from django.contrib import admin
from .models import Person, Residence, RelationshipType, Relationship
class ResidenceInline(admin.TabularInline):
'''Inline class for Residence'''
model = Residence
class PersonAdmin(admin.ModelAdmin):
inlines = [
ResidenceInline
]
admin.site.register(Pers... | <|file_sep|>winthrop/people/admin.py.diff
original:
admin.site.register(Person)
admin.site.register(Residence)
updated:
class ResidenceInline(admin.TabularInline):
'''Inline class for Residence'''
model = Residence
class PersonAdmin(admin.ModelAdmin):
inlines = [
ResidenceInline
]
admin.sit... | d054180fe1ff5ff7f4a0bc5b62f8dfcbb15a9c09 | winthrop/people/admin.py | winthrop/people/admin.py | Python |
<|file_sep|>.travis.yml.diff
original:
- pyenv global 3.6.10
updated:
- pyenv global 3.6.11
<|file_sep|>.travis.yml.diff
original:
- pyenv global 3.7.6
updated:
- pyenv global 3.7.8
<|file_sep|>original/.travis.yml
jobs:
include:
- name: "Python 3.6"
before_install:
-... | jobs:
include:
- name: "Python 3.6"
before_install:
- pyenv global 3.6.11
- name: "Python 3.7"
before_install:
- pyenv global 3.7.8
- name: "Python 3.8"
before_install:
- pyenv global 3.8.3
cache:
directories:
- $HOME/.cache/pip
- node_modules
env:
- D... | <|file_sep|>.travis.yml.diff
original:
- pyenv global 3.6.10
updated:
- pyenv global 3.6.11
<|file_sep|>.travis.yml.diff
original:
- pyenv global 3.7.6
updated:
- pyenv global 3.7.8
<|file_sep|>original/.travis.yml
jobs:
include:
- name: "Python 3.6"
before_install:
-... | 6859d120d9b09900a82a30bd1c08fc438acc3f33 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ios-sdk.podspec
s.description = 'Mapzen iOS SDK'
s.homepage = 'https://mapzen.com/projects/mobile/'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.author = { 'Mapzen' => 'ios-support@mapzen.com' }
s.social_media_url = 'https://twitter.com/mapz... | s.homepage = 'https://mapzen.com/projects/mobile/'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.author = { 'Mapzen' => 'ios-support@mapzen.com' }
s.social_media_url = 'https://twitter.com/mapzen'
s.documentation_url = 'https://mapzen.com/documentation/ios/'
s.source... | <|file_sep|>original/ios-sdk.podspec
s.description = 'Mapzen iOS SDK'
s.homepage = 'https://mapzen.com/projects/mobile/'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.author = { 'Mapzen' => 'ios-support@mapzen.com' }
s.social_media_url = 'https://twitter.com/mapz... | 75ada5da0155fd7eede8bf5941c5c62fea9a1aa5 | ios-sdk.podspec | ios-sdk.podspec | Ruby |
<|file_sep|>Interfaces/Http/Shared/CurrentRequestInterface.php.diff
original:
updated:
use Psr\Http\Message\RequestInterface;
<|file_sep|>Interfaces/Http/Shared/CurrentRequestInterface.php.diff
original:
* <p>When injecting this instance, instead of saving it in a class property as usual, you should instead save the
... | * of this class as if it was the request itself.
*
* <p>Routers and middleware runners can set the current request by calling `set()`.
*/
interface CurrentRequestInterface extends RequestInterface
{
/**
* Gets the current request instance.
*
* @return ServerRequestInterface|null NULL if there is no reque... | <|file_sep|>Interfaces/Http/Shared/CurrentRequestInterface.php.diff
original:
updated:
use Psr\Http\Message\RequestInterface;
<|file_sep|>Interfaces/Http/Shared/CurrentRequestInterface.php.diff
original:
* <p>When injecting this instance, instead of saving it in a class property as usual, you should instead save the
... | 04e581900990762f64ae9fdf5a3e7f3adb01a79f | Interfaces/Http/Shared/CurrentRequestInterface.php | Interfaces/Http/Shared/CurrentRequestInterface.php | PHP |
<|file_sep|>original/_protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Parsable.interface.php
/***************************************************************************
* @author Pierre-Henry Soria <ph7software@gmail.com>
* @category PH7 Template Engine
* @package PH7 / Framework / La... | /***************************************************************************
* @author Pierre-Henry Soria <ph7software@gmail.com>
* @category PH7 Template Engine
* @package PH7 / Framework / Layout / Tpl / Engine / PH7Tpl / Syntax
* @copyright (c) 2018, Pierre-Henry Soria. All Righ... | <|file_sep|>original/_protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Parsable.interface.php
/***************************************************************************
* @author Pierre-Henry Soria <ph7software@gmail.com>
* @category PH7 Template Engine
* @package PH7 / Framework / La... | 607db68d7caf921967aa8b90f6c7a761eb377d14 | _protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Parsable.interface.php | _protected/framework/Layout/Tpl/Engine/PH7Tpl/Syntax/Parsable.interface.php | PHP |
<|file_sep|>original/tests/pytests/unit/runners/test_spacewalk.py
<|file_sep|>current/tests/pytests/unit/runners/test_spacewalk.py
<|file_sep|>updated/tests/pytests/unit/runners/test_spacewalk.py | """
Unit tests for Spacewalk runner
"""
import salt.runners.spacewalk as spacewalk
from tests.support.mock import Mock, call, patch
def test_api_command_must_have_namespace():
_get_session_mock = Mock(return_value=(None, None))
with patch.object(spacewalk, "_get_session", _get_session_mock):
result =... | <|file_sep|>original/tests/pytests/unit/runners/test_spacewalk.py
<|file_sep|>current/tests/pytests/unit/runners/test_spacewalk.py
<|file_sep|>updated/tests/pytests/unit/runners/test_spacewalk.py
"""
Unit tests for Spacewalk runner
"""
import salt.runners.spacewalk as spacewalk
from tests.support.mock import Mock, ca... | 8a48b9517a844a426319f584ea27ba341d79c8b0 | tests/pytests/unit/runners/test_spacewalk.py | tests/pytests/unit/runners/test_spacewalk.py | Python |
<|file_sep|>_posts/2015-12-13-HelloJykll.md.diff
original:
h1. Hello Jykll
updated:
## Hello Jykll
<|file_sep|>_posts/2015-12-13-HelloJykll.md.diff
original:
Please uploaded well.
updated:
Jykll works fine.
<|file_sep|>original/_posts/2015-12-13-HelloJykll.md
---
layout: post
title: "첫 포스트"
date: 2015-12-13 21:01:00... | ---
layout: post
title: "첫 포스트"
date: 2015-12-13 21:01:00
---
## Hello Jykll
Jykll works fine.
## Writing Markdown language
To study Markdown language, please refer [This page|http://www.jekyllnow.com/Markdown-Style-Guide/].
This page is generated from [this original document|https://raw.githubusercontent.com/ba... | <|file_sep|>_posts/2015-12-13-HelloJykll.md.diff
original:
h1. Hello Jykll
updated:
## Hello Jykll
<|file_sep|>_posts/2015-12-13-HelloJykll.md.diff
original:
Please uploaded well.
updated:
Jykll works fine.
<|file_sep|>original/_posts/2015-12-13-HelloJykll.md
---
layout: post
title: "첫 포스트"
date: 2015-12-13 21:01:00... | f24721a00a1547809b120cfea98fd1b4d269e2f5 | _posts/2015-12-13-HelloJykll.md | _posts/2015-12-13-HelloJykll.md | Markdown |
<|file_sep|>original/requirements.txt
cached-property==1.3.0
click==6.7
Flask-Sockets==0.2.1
Flask==0.12.2
future==0.16.0
gevent==1.2.2
greenlet==0.4.12
gunicorn==19.7.1
localconfig==0.4.2
pexpect==4.2.1
psycopg2==2.7.3
redis==2.10.5
requests==2.18.3
rq==0.8.1
selenium==3.4.3
SQLAlchemy==1.1.12
sqlalchemy-postgres-copy... | cached-property==1.3.0
click==6.7
Flask-Sockets==0.2.1
Flask==0.12.2
future==0.16.0
gevent==1.2.2
greenlet==0.4.12
gunicorn==19.7.1
localconfig==0.4.2
pexpect==4.2.1
psycopg2==2.7.3
redis==2.10.5
requests==2.18.3
rq==0.8.1
selenium==3.4.3
SQLAlchemy==1.1.13
sqlalchemy-postgres-copy==0.5.0
tablib==0.11.5
ua-parser==0.7.... | <|file_sep|>original/requirements.txt
cached-property==1.3.0
click==6.7
Flask-Sockets==0.2.1
Flask==0.12.2
future==0.16.0
gevent==1.2.2
greenlet==0.4.12
gunicorn==19.7.1
localconfig==0.4.2
pexpect==4.2.1
psycopg2==2.7.3
redis==2.10.5
requests==2.18.3
rq==0.8.1
selenium==3.4.3
SQLAlchemy==1.1.12
sqlalchemy-postgres-copy... | 799f1569ee43ff9810e5a0e7a1811c7b2faba5b0 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/README.md
'plugins/custom'
]
PLUGINS = [
# [...]
'deadlinks'
]
```
# Settings
To enable dead link checker, set the `DEADLINK_VALIDATE` option in your
Pelican configuration file to True.
Additionally following options might be changed:
```python
DEADLINK... | 'plugins/custom'
]
PLUGINS = [
# [...]
'deadlinks'
]
```
# Settings
To enable dead link checker, set the `DEADLINK_VALIDATION` option in your
Pelican configuration file to True.
Additionally following options might be changed:
```python
DEADLINK_OPTS = {
'archive': ... | <|file_sep|>original/README.md
'plugins/custom'
]
PLUGINS = [
# [...]
'deadlinks'
]
```
# Settings
To enable dead link checker, set the `DEADLINK_VALIDATE` option in your
Pelican configuration file to True.
Additionally following options might be changed:
```python
DEADLINK... | 7109374c4f1adda431a11c9dbc6fe4028cf66cee | README.md | README.md | Markdown |
<|file_sep|>Converter/src/main/java/processors/availability/HttpBodyFilter.java.diff
original:
updated:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.Simple... | import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import converters.JsonConverter;
import datamodel.HttpResponseForAvailability;
import processors.Processor;
public clas... | <|file_sep|>Converter/src/main/java/processors/availability/HttpBodyFilter.java.diff
original:
updated:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.Simple... | e88a4564863d273ea0920283379bc2f794df340d | Converter/src/main/java/processors/availability/HttpBodyFilter.java | Converter/src/main/java/processors/availability/HttpBodyFilter.java | Java |
<|file_sep|>original/.github/workflows/go_test.yml
<|file_sep|>current/.github/workflows/go_test.yml
<|file_sep|>updated/.github/workflows/go_test.yml | on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Chec... | <|file_sep|>original/.github/workflows/go_test.yml
<|file_sep|>current/.github/workflows/go_test.yml
<|file_sep|>updated/.github/workflows/go_test.yml
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-latest]
runs-on: ${{... | 30840d616d29f29258877cc7423814eb6f30375c | .github/workflows/go_test.yml | .github/workflows/go_test.yml | YAML |
<|file_sep|>src/LinkORB/Component/ObjectStorage/Client.php.diff
original:
updated:
private $prefix;
<|file_sep|>src/LinkORB/Component/ObjectStorage/Client.php.diff
original:
public function __construct($driver)
updated:
public function __construct($driver, $prefix = '')
<|file_sep|>src/LinkORB/Component/Ob... | {
$this->driver->delete($this->prefix . $key);
}
public function upload($key, $filename)
{
if (!file_exists($filename)) {
throw new RuntimeException("File not found: " . $filename);
}
$data = file_get_contents($filename);
$this->set($this->prefix . $... | <|file_sep|>src/LinkORB/Component/ObjectStorage/Client.php.diff
original:
updated:
private $prefix;
<|file_sep|>src/LinkORB/Component/ObjectStorage/Client.php.diff
original:
public function __construct($driver)
updated:
public function __construct($driver, $prefix = '')
<|file_sep|>src/LinkORB/Component/Ob... | 4a531a8a64cdff9aede0c1779342644e0a90ff21 | src/LinkORB/Component/ObjectStorage/Client.php | src/LinkORB/Component/ObjectStorage/Client.php | PHP |
<|file_sep|>original/src/index.ts
export {
TransitionEvent,
TimelineType,
IAbstractTransitionControllerOptions,
ICreateTimelineOptions,
} from 'transition-controller';
// Export util classes
export { default as FlowManager } from './lib/util/FlowManager';
export {
default as AbstractTransitionController,
} f... | export {
TransitionEvent,
TimelineType,
TransitionDirection,
IAbstractTransitionControllerOptions,
ICreateTimelineOptions,
} from 'transition-controller';
// Export util classes
export { default as FlowManager } from './lib/util/FlowManager';
export {
default as AbstractTransitionController,
} from './lib/... | <|file_sep|>original/src/index.ts
export {
TransitionEvent,
TimelineType,
IAbstractTransitionControllerOptions,
ICreateTimelineOptions,
} from 'transition-controller';
// Export util classes
export { default as FlowManager } from './lib/util/FlowManager';
export {
default as AbstractTransitionController,
} f... | 9074c44233aa4fa506f855a4367d38baadecc644 | src/index.ts | src/index.ts | TypeScript |
<|file_sep|>original/lib/soprano/smart_assets.rb
<|file_sep|>current/lib/soprano/smart_assets.rb
<|file_sep|>updated/lib/soprano/smart_assets.rb | Capistrano::Configuration.instance(:must_exist).load do
# This skips assets precompilation if nothing changed
namespace :deploy do
namespace :assets do
task :precompile, :roles => :web, :except => { :no_release => true } do
from = source.next_revision(current_revision)
if capture("cd #{lat... | <|file_sep|>original/lib/soprano/smart_assets.rb
<|file_sep|>current/lib/soprano/smart_assets.rb
<|file_sep|>updated/lib/soprano/smart_assets.rb
Capistrano::Configuration.instance(:must_exist).load do
# This skips assets precompilation if nothing changed
namespace :deploy do
namespace :assets do
task :p... | 741cb260684c373a884cf67961cac87261d547f2 | lib/soprano/smart_assets.rb | lib/soprano/smart_assets.rb | Ruby |
<|file_sep|>src/index.html.diff
original:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
updated:
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<|file_sep|>original/src/index.htm... | <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf8" />
<title sqid-title>SQID - Wikidata Explorer</title>
<link rel="stylesheet" href="lib/bootstrap-3.3.6-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/loading-bar.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="https://tools... | <|file_sep|>src/index.html.diff
original:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
updated:
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<|file_sep|>original/src/index.htm... | 5b205bd01d7bf25ab1620651beb171e92c74ebaa | src/index.html | src/index.html | HTML |
<|file_sep|>original/.travis.yml
# unfortunately we do temporarily require sudo as a workaround for
# https://github.com/travis-ci/travis-ci/issues/8836
sudo: required
language: node_js
node_js:
# make sure we work with a range of node versions.
#
# Current status of node versions: https://github.com/nodej... | # unfortunately we do temporarily require sudo as a workaround for
# https://github.com/travis-ci/travis-ci/issues/8836
sudo: required
language: node_js
node_js:
# make sure we work with a range of node versions.
#
# Current status of node versions: https://github.com/nodejs/LTS/
- 6
- 8
- 10
a... | <|file_sep|>original/.travis.yml
# unfortunately we do temporarily require sudo as a workaround for
# https://github.com/travis-ci/travis-ci/issues/8836
sudo: required
language: node_js
node_js:
# make sure we work with a range of node versions.
#
# Current status of node versions: https://github.com/nodej... | 1fea7c022e3a361902aac0ce308de79696e120f7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/test/java/org/inferred/cjp39/j8stages/ExceptionClonerTest.java
}
}
@Test
public void clone_matches_original() {
MyUnfriendlyException x =
new MyUnfriendlyException("Clone this, baby!", new RuntimeException("cause"));
MyUnfriendlyException clo... | }
@Test
public void modifying_clone_does_not_modify_original() {
MyUnfriendlyException x =
new MyUnfriendlyException("Clone this, baby!", new RuntimeException("cause"));
MyUnfriendlyException clone = ExceptionCloner.clone(x);
clone.addSuppressed(new RuntimeException(... | <|file_sep|>original/src/test/java/org/inferred/cjp39/j8stages/ExceptionClonerTest.java
}
}
@Test
public void clone_matches_original() {
MyUnfriendlyException x =
new MyUnfriendlyException("Clone this, baby!", new RuntimeException("cause"));
MyUnfriendlyException clo... | c11f4384335288a1f95c919c153ca523907850d1 | src/test/java/org/inferred/cjp39/j8stages/ExceptionClonerTest.java | src/test/java/org/inferred/cjp39/j8stages/ExceptionClonerTest.java | Java |
<|file_sep|>original/shorturls/codeclubprojects-org-redirects.yaml
<|file_sep|>current/shorturls/codeclubprojects-org-redirects.yaml
<|file_sep|>updated/shorturls/codeclubprojects-org-redirects.yaml | # Redirect codeclubprojects.org/<locale>/<project-type>/<project-name> to projects.raspberrypi.org/<locale>/<project-name>
default: https://projects.raspberrypi.org/en/codeclub
# en-GB
en-GB/scratch/rock-band: https://projects.raspberrypi.org/en/projects/rock-band
en-GB/scratch/chatbot: https://projects.raspberrypi.or... | <|file_sep|>original/shorturls/codeclubprojects-org-redirects.yaml
<|file_sep|>current/shorturls/codeclubprojects-org-redirects.yaml
<|file_sep|>updated/shorturls/codeclubprojects-org-redirects.yaml
# Redirect codeclubprojects.org/<locale>/<project-type>/<project-name> to projects.raspberrypi.org/<locale>/<project-na... | c70feee366e3a19a8c679ff613acf10d1be9b4f4 | shorturls/codeclubprojects-org-redirects.yaml | shorturls/codeclubprojects-org-redirects.yaml | YAML |
<|file_sep|>original/frontend/menupage/src/router/index.js
import Vue from 'vue';
import VueRouter from 'vue-router';
import RestaurantList from '../components/RestaurantList.vue'
Vue.use(VueRouter);
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/solna',
component: RestaurantL... | import Vue from 'vue';
import VueRouter from 'vue-router';
import RestaurantList from '../components/RestaurantList.vue'
Vue.use(VueRouter);
const router = new VueRouter({
mode: 'hash',
base: '/menu/',
routes: [
{
path: '/solna',
component: RestaurantList,
props: { list_type: 'solna' },
... | <|file_sep|>original/frontend/menupage/src/router/index.js
import Vue from 'vue';
import VueRouter from 'vue-router';
import RestaurantList from '../components/RestaurantList.vue'
Vue.use(VueRouter);
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/solna',
component: RestaurantL... | cb93f0712d0e6a2630c4f17fb8ae63bfbdd60a2b | frontend/menupage/src/router/index.js | frontend/menupage/src/router/index.js | JavaScript |
<|file_sep|>original/public/scripts/global.js
$.getJSON('/data/feed/' + data.id + '/articles', function (articles) {
articles.forEach(function (article) {
var li = $('<li class="app-button">' + article.title + '</li>');
li.on('click', function () {
App.load('article', article);
});
... | $.getJSON('/data/feed/' + data.id + '/articles', function (articles) {
articles.forEach(function (article) {
var li = $('<li class="app-button">' + article.title + '</li>');
li.on('click', function () {
App.load('article', article);
});
$(page).find('.app-list').append(li);
});... | <|file_sep|>original/public/scripts/global.js
$.getJSON('/data/feed/' + data.id + '/articles', function (articles) {
articles.forEach(function (article) {
var li = $('<li class="app-button">' + article.title + '</li>');
li.on('click', function () {
App.load('article', article);
});
... | b98a7e399a90115907fd13e5edbeb28475c4ed3e | public/scripts/global.js | public/scripts/global.js | JavaScript |
<|file_sep|>original/README.md
[](https://waffle.io/atteroTheGreatest/tubylcy)
#Installation
```
virtualenv -p /usr/bin/python3.4 .
. bin/activate
pip install -r requirements.txt
vary on distributions but you need spatia... | [](https://drone.io/github.com/atteroTheGreatest/tubylcy/latest)
[](https://waffle.io/atteroTheGreatest/tubylcy)
#Installation
```
virtualen... | <|file_sep|>original/README.md
[](https://waffle.io/atteroTheGreatest/tubylcy)
#Installation
```
virtualenv -p /usr/bin/python3.4 .
. bin/activate
pip install -r requirements.txt
vary on distributions but you need spatia... | 934f1e5dfcf77d9701722cc4f2c2a4652b184ec3 | README.md | README.md | Markdown |
<|file_sep|>chrome-extension/manifest.json.diff
original:
updated:
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsMuwZSorjRRe/BAYMCCH11+pts1xndPhylBRVgLi9jCc9Al+3253VxB467uib2+QUUjptkaEOPss44F1+TEuxKF/ugTkpXtt4HmAG+lJMCR+HyayBxJal9X5zOOldr6kndja/svZYq7Zlowao4HfNjQWnajE+NwOTo27rwweD388JfT5FtyS22vuDk9Kz6IGyTky... | "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsMuwZSorjRRe/BAYMCCH11+pts1xndPhylBRVgLi9jCc9Al+3253VxB467uib2+QUUjptkaEOPss44F1+TEuxKF/ugTkpXtt4HmAG+lJMCR+HyayBxJal9X5zOOldr6kndja/svZYq7Zlowao4HfNjQWnajE+NwOTo27rwweD388JfT5FtyS22vuDk9Kz6IGyTkyKKvGBIc09aCq+3OktOQI/+s3n0C20K/M0BcGLhzOgvdo1fXlFF5bsma/2z7jAFv/GTfu... | <|file_sep|>chrome-extension/manifest.json.diff
original:
updated:
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsMuwZSorjRRe/BAYMCCH11+pts1xndPhylBRVgLi9jCc9Al+3253VxB467uib2+QUUjptkaEOPss44F1+TEuxKF/ugTkpXtt4HmAG+lJMCR+HyayBxJal9X5zOOldr6kndja/svZYq7Zlowao4HfNjQWnajE+NwOTo27rwweD388JfT5FtyS22vuDk9Kz6IGyTky... | d2dc936a7af5efa3a909afab3fe3dcac926be21d | chrome-extension/manifest.json | chrome-extension/manifest.json | JSON |
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
cache: bundler
rvm:
- 2.3.1
install: bundle install --jobs=3 --retry=3 --without production
script:
- 'HANAMI_ENV=test bundle exec hanami db create'
- 'HANAMI_ENV=test bundle exec hanami db migrate'
- 'bundle exec rake test'
<|file_sep|>current/.tra... | language: ruby
sudo: false
cache: bundler
rvm:
- 2.3.1
install: bundle install --jobs=3 --retry=3 --without production
script:
- 'HANAMI_ENV=test bundle exec hanami db create'
- 'HANAMI_ENV=test bundle exec hanami db migrate'
- 'bundle exec rake test'
- 'bundle exec rubocop' | <|file_sep|>original/.travis.yml
language: ruby
sudo: false
cache: bundler
rvm:
- 2.3.1
install: bundle install --jobs=3 --retry=3 --without production
script:
- 'HANAMI_ENV=test bundle exec hanami db create'
- 'HANAMI_ENV=test bundle exec hanami db migrate'
- 'bundle exec rake test'
<|file_sep|>current/.tra... | b9922aea78bd63a76303f926897193fc079838c8 | .travis.yml | .travis.yml | YAML |
<|file_sep|>css/CalendarMonth.scss.diff
original:
updated:
caption: {
caption-side: initial;
}
<|file_sep|>original/css/CalendarMonth.scss
.CalendarMonth--vertical {
display: block;
}
.CalendarMonth__caption {
color: $react-dates-color-gray-dark;
margin-top: 7px;
font-size: 18px;
text-align: c... | display: block;
}
.CalendarMonth__caption {
color: $react-dates-color-gray-dark;
margin-top: 7px;
font-size: 18px;
text-align: center;
// necessary to not hide borders in FF
margin-bottom: 2px;
caption-side: initial;
}
.CalendarMonth--horizontal .CalendarMonth__caption,
.CalendarMonth--vertical .Calen... | <|file_sep|>css/CalendarMonth.scss.diff
original:
updated:
caption: {
caption-side: initial;
}
<|file_sep|>original/css/CalendarMonth.scss
.CalendarMonth--vertical {
display: block;
}
.CalendarMonth__caption {
color: $react-dates-color-gray-dark;
margin-top: 7px;
font-size: 18px;
text-align: c... | 35d9f5cfc1462cecce76d2c246861e83bef02f92 | css/CalendarMonth.scss | css/CalendarMonth.scss | SCSS |
<|file_sep|>original/practice03/02.cpp
<|file_sep|>current/practice03/02.cpp
<|file_sep|>updated/practice03/02.cpp | #include <stdio.h>
#include <math.h>
int main(void)
{
int num;
printf("Enter num= ");
scanf("%d", &num);
printf("Result: %d\n", (int)sqrt(num) * (int)sqrt(num));
return 0;
} | <|file_sep|>original/practice03/02.cpp
<|file_sep|>current/practice03/02.cpp
<|file_sep|>updated/practice03/02.cpp
#include <stdio.h>
#include <math.h>
int main(void)
{
int num;
printf("Enter num= ");
scanf("%d", &num);
printf("Result: %d\n", (int)sqrt(num) * (int)sqrt(num));
return 0;
} | 4fce70df5f0e049993d837cc24e79715685e9a9c | practice03/02.cpp | practice03/02.cpp | C++ |
<|file_sep|>original/requirements/dev.txt
# ulid/requirements/dev.txt
#
# Requirements for using developing package.
-r base.txt
bumpversion==0.5.3
mypy==0.670; python_version <= '3.4' # pyup: ignore
mypy==0.770; python_version > '3.4'
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_versi... | # ulid/requirements/dev.txt
#
# Requirements for using developing package.
-r base.txt
bumpversion==0.6.0
mypy==0.670; python_version <= '3.4' # pyup: ignore
mypy==0.770; python_version > '3.4'
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_version < '3.4') # pyup: ignore
pylint==2.3.1;... | <|file_sep|>original/requirements/dev.txt
# ulid/requirements/dev.txt
#
# Requirements for using developing package.
-r base.txt
bumpversion==0.5.3
mypy==0.670; python_version <= '3.4' # pyup: ignore
mypy==0.770; python_version > '3.4'
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_versi... | 00a675b11ba6b9d7a854fa6e8f02f3be02ccece4 | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>corehq/messaging/scheduling/scheduling_partitioned/dbaccessors.py.diff
original:
updated:
from corehq.sql_db.util import (
get_object_from_partitioned_database,
save_object_to_partitioned_database,
run_query_across_partitioned_databases,
)
from datetime import datetime
from django.db.models imp... | from django.db.models import Q
def get_schedule_instance(schedule_instance_id):
from corehq.messaging.scheduling.scheduling_partitioned.models import ScheduleInstance
return get_object_from_partitioned_database(ScheduleInstance, str(schedule_instance_id))
def save_schedule_instance(instance):
from core... | <|file_sep|>corehq/messaging/scheduling/scheduling_partitioned/dbaccessors.py.diff
original:
updated:
from corehq.sql_db.util import (
get_object_from_partitioned_database,
save_object_to_partitioned_database,
run_query_across_partitioned_databases,
)
from datetime import datetime
from django.db.models imp... | 05f220d6090be58ee465b6f30d01e14079bcbeba | corehq/messaging/scheduling/scheduling_partitioned/dbaccessors.py | corehq/messaging/scheduling/scheduling_partitioned/dbaccessors.py | Python |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk7
sudo: false
script: buildViaTravis.sh
env:
global:
- secure: Ps7+oTi5FfjwJ7tQ8G51wk30ZHqB1P4ZNXsGisn+r/8IJRxPs6VNIF/dPSkWLERs1tBvMG2sRz9nxaIwxXJwHXOkoBL/SXZHzOYwKTlsNcu72B6czxepIb0OAGWKAv6aCk9vAJkRzGX2Ogy+Hnn8AuQlPAPOplRjZm1AXj6smGM=
- secure: C/Ro... | language: java
jdk:
- oraclejdk7
script: ./buildViaTravis.sh
env:
global:
- secure: Ps7+oTi5FfjwJ7tQ8G51wk30ZHqB1P4ZNXsGisn+r/8IJRxPs6VNIF/dPSkWLERs1tBvMG2sRz9nxaIwxXJwHXOkoBL/SXZHzOYwKTlsNcu72B6czxepIb0OAGWKAv6aCk9vAJkRzGX2Ogy+Hnn8AuQlPAPOplRjZm1AXj6smGM=
- secure: C/RoUcQGZ6wB1nHnLN7dGMCbpjOObaviuXFxv5ZtocKfALm... | <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk7
sudo: false
script: buildViaTravis.sh
env:
global:
- secure: Ps7+oTi5FfjwJ7tQ8G51wk30ZHqB1P4ZNXsGisn+r/8IJRxPs6VNIF/dPSkWLERs1tBvMG2sRz9nxaIwxXJwHXOkoBL/SXZHzOYwKTlsNcu72B6czxepIb0OAGWKAv6aCk9vAJkRzGX2Ogy+Hnn8AuQlPAPOplRjZm1AXj6smGM=
- secure: C/Ro... | 556ffd1286f9c417de045c7f25c7fc00a9d6dcc4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/Validator/StringValidator.php
/*
* @author Serkin Akexander <serkin.alexander@gmail.com>
*/
namespace Volan\Validator;
class StringValidator extends AbstractValidator
{
/**
* Validate wether given data is string.
*
* @param mixed $nodeData
*
* @return bool
... |
/*
* @author Serkin Akexander <serkin.alexander@gmail.com>
*/
namespace Volan\Validator;
class StringValidator extends AbstractValidator
{
/**
* Validate wether given data is string.
*
* @param mixed $nodeData
*
* @return bool
*/
public function isValid($nodeData)
{
... | <|file_sep|>original/src/Validator/StringValidator.php
/*
* @author Serkin Akexander <serkin.alexander@gmail.com>
*/
namespace Volan\Validator;
class StringValidator extends AbstractValidator
{
/**
* Validate wether given data is string.
*
* @param mixed $nodeData
*
* @return bool
... | 427428f18ed442d207a1d59b13e0100ac7086af9 | src/Validator/StringValidator.php | src/Validator/StringValidator.php | PHP |
<|file_sep|>original/modules/spinner/main/theme.scss
.hx-spinner {
border: 0.2em solid $spinner-col;
border-right-color: transparent;
}
.hx-spinner-wide::after {
background: $spinner-col;
}
<|file_sep|>current/modules/spinner/main/theme.scss
.hx-spinner {
border: 0.2em solid $spinner-col;
border-right-color:... | .hx-spinner {
border: 0.2em solid $spinner-col;
border-right-color: transparent;
}
.hx-spinner-wide:before {
background: $spinner-col;
} | <|file_sep|>original/modules/spinner/main/theme.scss
.hx-spinner {
border: 0.2em solid $spinner-col;
border-right-color: transparent;
}
.hx-spinner-wide::after {
background: $spinner-col;
}
<|file_sep|>current/modules/spinner/main/theme.scss
.hx-spinner {
border: 0.2em solid $spinner-col;
border-right-color:... | 7cfade6173c0026285b4f8c0a492570c35df83fe | modules/spinner/main/theme.scss | modules/spinner/main/theme.scss | SCSS |
<|file_sep|>original/.github/workflows/build.yml
[push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore Messag... | [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore Messaging.sln
- name: Build
run: dotnet build... | <|file_sep|>original/.github/workflows/build.yml
[push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore Messag... | 5a0a51dbf3b318c0a2c90217a2a42b5056937b82 | .github/workflows/build.yml | .github/workflows/build.yml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.