hash stringlengths 40 40 | diff stringlengths 131 26.7k | message stringlengths 7 694 | project stringlengths 5 67 | split stringclasses 1
value | diff_languages stringlengths 2 24 |
|---|---|---|---|---|---|
c8b9527a143bb18528d53093a365b6fa1ae9f26d | diff --git a/spec/controllers/hyrax/dashboard/collections_controller_with_resource_spec.rb b/spec/controllers/hyrax/dashboard/collections_controller_with_resource_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/controllers/hyrax/dashboard/collections_controller_with_resource_spec.rb
+++ b/spec/controllers/hyrax/dashboar... | mark collection controller for resources pending for tests that use basic metadata
These will be resolved when there is a collection resource to use that does include basic metadata. | samvera_hyrax | train | rb |
79973dcfa5a614b4c350542551ce7a8dc69f776f | diff --git a/packages/webiny-api/src/graphql/utils/attributeToType.js b/packages/webiny-api/src/graphql/utils/attributeToType.js
index <HASH>..<HASH> 100644
--- a/packages/webiny-api/src/graphql/utils/attributeToType.js
+++ b/packages/webiny-api/src/graphql/utils/attributeToType.js
@@ -39,6 +39,10 @@ export default (
... | feat(types): add support for entity's object attribute.
affects: webiny-api | Webiny_webiny-js | train | js |
5fa787171072239fe06fd4dc948e8ee3f0f59694 | diff --git a/dftimewolf/lib/collectors/grr_base.py b/dftimewolf/lib/collectors/grr_base.py
index <HASH>..<HASH> 100644
--- a/dftimewolf/lib/collectors/grr_base.py
+++ b/dftimewolf/lib/collectors/grr_base.py
@@ -1,6 +1,5 @@
"""Base GRR module class. GRR modules should extend it."""
-import logging
import tempfile
i... | Type fix (#<I>)
* Type fix
* linter appeasement | log2timeline_dftimewolf | train | py |
514cb144730f6a180aaa3f97e4bb3b3d38ad90f9 | diff --git a/app/libraries/Setups/MetaBoxes/AbstractMetaBox.php b/app/libraries/Setups/MetaBoxes/AbstractMetaBox.php
index <HASH>..<HASH> 100644
--- a/app/libraries/Setups/MetaBoxes/AbstractMetaBox.php
+++ b/app/libraries/Setups/MetaBoxes/AbstractMetaBox.php
@@ -11,7 +11,7 @@ abstract class AbstractMetaBox extends Abst... | Add missing variable name in doc block | GrottoPress_jentil | train | php |
b8074329a8813f036aae9d43feb6847a0f287c4a | diff --git a/pricedb/app.py b/pricedb/app.py
index <HASH>..<HASH> 100644
--- a/pricedb/app.py
+++ b/pricedb/app.py
@@ -47,7 +47,7 @@ class PriceDbApplication:
if existing:
# Update existing price.
new_value = Decimal(price.value) / Decimal(price.denom)
- self.logger.info(f"... | displaying price message only if really added | MisterY_price-database | train | py |
c8859356f6affb1364bd5830c93b0b9529dc7114 | diff --git a/src/youtube.js b/src/youtube.js
index <HASH>..<HASH> 100644
--- a/src/youtube.js
+++ b/src/youtube.js
@@ -53,8 +53,7 @@ module.exports = function(robot) {
robot.respond(/yf add (.*?)$/i, function(msg) {
var name = msg.match[1];
- console.log(msg.room);
- if(notificationList.ad... | fix: pull the room from the correct place in the msg variable | Insorum_hubot-youtube-feed | train | js |
1862465b008e3b40aad7fbb2b26329fd4bddc37f | diff --git a/lib/requester/requester.js b/lib/requester/requester.js
index <HASH>..<HASH> 100644
--- a/lib/requester/requester.js
+++ b/lib/requester/requester.js
@@ -371,7 +371,7 @@ _.assign(Requester.prototype, /** @lends Requester.prototype */ {
// we can't trust the integrity of this request
// ba... | fix: typo extenstions for extensions | postmanlabs_postman-runtime | train | js |
610d29dce1dae75f34b5dd5c700a7bbb4174eca1 | diff --git a/spec/wordlist_spec.rb b/spec/wordlist_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/wordlist_spec.rb
+++ b/spec/wordlist_spec.rb
@@ -7,10 +7,10 @@ describe Wordlist do
let(:words) { %w[foo bar baz] }
before(:all) do
- @path = Tempfile.open('ronin-support-wordlist') do |file|
+ Tempfile.open(... | Tempfile.open doesn't return the value of the block on Ruby <I>. | ronin-ruby_ronin-support | train | rb |
281b8e744dd2f8677d41d9e97c9b8ceeeddff450 | diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/FileSystemJobResultStore.java b/flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/FileSystemJobResultStore.java
index <HASH>..<HASH> 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/F... | [FLINK-<I>][runtime] Adds closing and flushing to OutputStream | apache_flink | train | java |
9f0224adf9c33d466292c5917533cee15c8536ed | diff --git a/js/reveal.js b/js/reveal.js
index <HASH>..<HASH> 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1843,6 +1843,7 @@
updateProgress();
updateBackground( true );
updateSlideNumber();
+ updateSlidesVisibility();
} | update visibility of slides as part of sync | hakimel_reveal.js | train | js |
0ada4b57ef3f515847830a27a5b096ee838bc0fc | diff --git a/lib/pages.js b/lib/pages.js
index <HASH>..<HASH> 100644
--- a/lib/pages.js
+++ b/lib/pages.js
@@ -1232,8 +1232,6 @@ module.exports = function(self) {
// cases without crashing the site.
self.callLoadersForPage = function(req, page, callback) {
-<<<<<<< HEAD
-=======
// Useful for debugging red... | sigh accidentally committed a merge notice | apostrophecms_apostrophe | train | js |
b257eb9e5d1b93ea008c8f5bafddfd87f9998a42 | diff --git a/lib/haml_assets/haml_sprockets_engine.rb b/lib/haml_assets/haml_sprockets_engine.rb
index <HASH>..<HASH> 100644
--- a/lib/haml_assets/haml_sprockets_engine.rb
+++ b/lib/haml_assets/haml_sprockets_engine.rb
@@ -27,8 +27,12 @@ module HamlAssets
@_view_renderer ||= ActionView::Renderer.new(lookup_con... | Find partials anywhere in the asset pipeline | carezone_haml_assets | train | rb |
ffb47479df42a55830f908b06c370cc47eabed4d | diff --git a/test/tc_rgb.rb b/test/tc_rgb.rb
index <HASH>..<HASH> 100644
--- a/test/tc_rgb.rb
+++ b/test/tc_rgb.rb
@@ -197,7 +197,9 @@ class TC_RGB < Test::Unit::TestCase
end
def test_plus
- assert_equal RGB( 1 + 4, 2 + 5, 3 + 6 ), RGB( 1, 2, 3 ) + RGB( 4, 5, 6 )
+ assert_equal RGB( 5, 7, 9 ), RGB( 1, 2, ... | Added some tests for RGB#+ | wedesoft_multiarray | train | rb |
d8f60b4824e66053dc646b132e9ace7c607663f5 | diff --git a/packages/examples/pages/linking/index.js b/packages/examples/pages/linking/index.js
index <HASH>..<HASH> 100644
--- a/packages/examples/pages/linking/index.js
+++ b/packages/examples/pages/linking/index.js
@@ -20,8 +20,10 @@ export default class LinkingPage extends PureComponent {
<Text
... | Fix one of the Linking code examples
Close #<I> | necolas_react-native-web | train | js |
f21441dda6483f4d1112678690486107c823db0f | diff --git a/metrology/exceptions.py b/metrology/exceptions.py
index <HASH>..<HASH> 100644
--- a/metrology/exceptions.py
+++ b/metrology/exceptions.py
@@ -2,6 +2,10 @@ class MetrologyException(Exception):
pass
+class RegistryException(MetrologyException):
+ pass
+
+
class ArgumentException(MetrologyExcepti... | raise a RegistryException rahter than a RuntimeError | cyberdelia_metrology | train | py,py |
d08f571225c20eb126c3e691d5cf7f88ae01fa06 | diff --git a/features/php/support/db.rb b/features/php/support/db.rb
index <HASH>..<HASH> 100644
--- a/features/php/support/db.rb
+++ b/features/php/support/db.rb
@@ -1,15 +1,8 @@
-client = Mysql2::Client.new(:host => "localhost", :username => "renalware", :password => "password")
-
-client.query("CREATE DATABASE IF NO... | Ensured that php test doesn't drop the database | airslie_renalware-core | train | rb |
de824d41e380479b00c6238a397fc2e4c747caaa | diff --git a/parcel-boundary.js b/parcel-boundary.js
index <HASH>..<HASH> 100644
--- a/parcel-boundary.js
+++ b/parcel-boundary.js
@@ -12,6 +12,10 @@ document.addEventListener('DOMContentLoaded', () => {
// Get the bounds of the parcel
var parcels = sceneMetadata.scene.parcels.map(p => p.split(',')).map((p) =... | offset the boundary, centering it where the player is | decentraland_cli | train | js |
a56a7bc05c0a3f0515d333de1b3dce8df0e8c2e1 | diff --git a/src/DoctrineModule/Form/Element/Proxy.php b/src/DoctrineModule/Form/Element/Proxy.php
index <HASH>..<HASH> 100644
--- a/src/DoctrineModule/Form/Element/Proxy.php
+++ b/src/DoctrineModule/Form/Element/Proxy.php
@@ -326,7 +326,7 @@ class Proxy implements ObjectManagerAwareInterface
throw new... | initialize findMethodParams as array | doctrine_DoctrineModule | train | php |
e5cb215a4d843cd81c5dee21adeaebafbeedeebc | diff --git a/test/methods/index_test.js b/test/methods/index_test.js
index <HASH>..<HASH> 100644
--- a/test/methods/index_test.js
+++ b/test/methods/index_test.js
@@ -3,11 +3,11 @@
const { collect } = require('../../dist');
module.exports = (it, expect) => {
- it('collect should be a function', () => {
+ it('shou... | Update test name in index_test.js file | ecrmnn_collect.js | train | js |
e222bffa416c7538626ab8c1e5926f5f5f05582e | diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
import versioneer
def readme():
- with open('README.md') as f:
+ with open('README.md', , encoding="utf-8") as f:
return f.read()
def pip_requireme... | Fix issue with Python3 decoding error for Readme file | ioos_compliance-checker | train | py |
68dec6bffd68e62d151758d8ac7378bf9b40ac20 | diff --git a/src/transformers/models/detr/modeling_detr.py b/src/transformers/models/detr/modeling_detr.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/detr/modeling_detr.py
+++ b/src/transformers/models/detr/modeling_detr.py
@@ -36,6 +36,7 @@ from ...file_utils import (
)
from ...modeling_outputs import... | Fix DETR model deprecation warnings for int div (#<I>) | huggingface_pytorch-pretrained-BERT | train | py |
82be9700bbc1240b6561cd8e4f877b44ca5f0fe9 | diff --git a/src/Calendar.js b/src/Calendar.js
index <HASH>..<HASH> 100644
--- a/src/Calendar.js
+++ b/src/Calendar.js
@@ -258,7 +258,7 @@ class Calendar extends React.Component {
* Callback fired when the visible date range changes. Returns an Array of dates
* or an object with start and end dates for BUIL... | docs: Minor typo fix (#<I>) | intljusticemission_react-big-calendar | train | js |
47c3f92817065eadb0ffda7b63f4c36876243d0a | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -6,7 +6,6 @@ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
Dir[File.expand_path('../workers/**/*.rb', __FILE__)].each { |f| require f }
RSpec.confi... | For some reasons there's no `color_enabled` method on RSpec config anymore. | jamesotron_sidekiq-promise | train | rb |
e9e9dac5e0cab083f96401c101039a6930953b89 | diff --git a/server/src/main/java/org/openqa/selenium/server/SeleniumDriverResourceHandler.java b/server/src/main/java/org/openqa/selenium/server/SeleniumDriverResourceHandler.java
index <HASH>..<HASH> 100644
--- a/server/src/main/java/org/openqa/selenium/server/SeleniumDriverResourceHandler.java
+++ b/server/src/main/... | NPE protection when writing result/command
r<I> | SeleniumHQ_selenium | train | java |
5205530befbce8c2e0883e145b22fbfb82587e66 | diff --git a/seamless-immutable.js b/seamless-immutable.js
index <HASH>..<HASH> 100644
--- a/seamless-immutable.js
+++ b/seamless-immutable.js
@@ -135,13 +135,13 @@
// If we weren't given an array, use the arguments list.
if (!(keysToRemove instanceof Array)) {
- keysToRemove = Array.slice.call(argumen... | Fix without and refactor slightly. | rtfeldman_seamless-immutable | train | js |
b235ce89733e17997ad7192e10064d47da9ccfb4 | diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/simple.py
+++ b/kafka/consumer/simple.py
@@ -344,9 +344,12 @@ class SimpleConsumer(Consumer):
try:
check_error(resp)
- except (UnknownTopicOrPartitionE... | SimpleConsumer should refresh metadata and retry on leadership changes; only raise on UnknownTopicOrPartition | dpkp_kafka-python | train | py |
1bb6c112efc578f5965469692111ed76c3bf1483 | diff --git a/pages/http.py b/pages/http.py
index <HASH>..<HASH> 100644
--- a/pages/http.py
+++ b/pages/http.py
@@ -113,6 +113,11 @@ def pages_view(view):
only_context=True, delegation=False)
context = response
kwargs.update(context)
+ extra_context_var = kwargs.pop(... | pass extra_context_var to pages_view to specify the name of the variable that is supposed to hold the extra context | batiste_django-page-cms | train | py |
121c41a9ec658a5b1d62ab746efd2080414f2966 | diff --git a/ssllabs-scan-v3.go b/ssllabs-scan-v3.go
index <HASH>..<HASH> 100644
--- a/ssllabs-scan-v3.go
+++ b/ssllabs-scan-v3.go
@@ -67,7 +67,7 @@ var maxAssessments = -1
var requestCounter uint64 = 0
-var apiLocation = "https://api.dev.ssllabs.com/api/v3"
+var apiLocation = "https://api.ssllabs.com/api/v3"
v... | Added Bleichenbacher (ROBOT) field | ssllabs_ssllabs-scan | train | go |
d00ff7866f6c064fe62159042029bbb7bbbfdb61 | diff --git a/src/main/java/com/stripe/model/StripeCollection.java b/src/main/java/com/stripe/model/StripeCollection.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/stripe/model/StripeCollection.java
+++ b/src/main/java/com/stripe/model/StripeCollection.java
@@ -79,7 +79,7 @@ public abstract class StripeCollect... | Grammar fix: s/fetch/fetched/ | stripe_stripe-java | train | java |
6aaf0d0f6aa9ae27267b6c6e055825ab81313eca | diff --git a/wafer/talks/admin.py b/wafer/talks/admin.py
index <HASH>..<HASH> 100644
--- a/wafer/talks/admin.py
+++ b/wafer/talks/admin.py
@@ -60,7 +60,7 @@ class TalkAdmin(CompareVersionAdmin, admin.ModelAdmin):
class TalkTypeAdmin(VersionAdmin, admin.ModelAdmin):
- list_display = ('name', 'css_class')
+ li... | Add extra TalkType fields to admin list view | CTPUG_wafer | train | py |
117fd1d4fd5724d125d3822e099424d108504fba | diff --git a/i18n/it.js b/i18n/it.js
index <HASH>..<HASH> 100644
--- a/i18n/it.js
+++ b/i18n/it.js
@@ -28,7 +28,7 @@ export default {
noData: 'Nessun dato disponibile',
noResults: 'Nessuna corrispondenza trovata',
loader: 'Caricamento...',
- selectedRows: rows => `${rows} riga/he selezionata/e.`,
+ ... | Update it.js (#<I>) | quasarframework_quasar | train | js |
4d48fe8db25001c44267d6575083051e791eb9e4 | diff --git a/lib/mbidle/unique_queue.rb b/lib/mbidle/unique_queue.rb
index <HASH>..<HASH> 100644
--- a/lib/mbidle/unique_queue.rb
+++ b/lib/mbidle/unique_queue.rb
@@ -3,9 +3,13 @@ module MBidle
def push(*items)
EM.schedule do
items.each do |item|
- @items.push(item) unless @items.include?(... | Update for EM::Queue internal API change | leoc_mbidle | train | rb |
439cbd4fa4a2cc7684b9e08b2ce6b0a73ee59112 | diff --git a/src/Tokenly/CurrencyLib/Quantity.php b/src/Tokenly/CurrencyLib/Quantity.php
index <HASH>..<HASH> 100644
--- a/src/Tokenly/CurrencyLib/Quantity.php
+++ b/src/Tokenly/CurrencyLib/Quantity.php
@@ -14,6 +14,16 @@ class Quantity implements QuantityContract {
protected $satoshis_qty = 0;
+
+ /**
+ ... | Added static function to create a new Quantity from a float. | tokenly_bitcoin-currency-lib | train | php,php |
f9816ba7190fafe0cd2992c9217c8d2ebaf7623e | diff --git a/core/delete.go b/core/delete.go
index <HASH>..<HASH> 100644
--- a/core/delete.go
+++ b/core/delete.go
@@ -1,16 +1,14 @@
-// Copyright 2012 Matthew Baird
-//
+// Copyright 2013 Matthew Baird
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... | documentation update so godoc doesn't replicate license information. Also improved comments to conform to godoc | mattbaird_elastigo | train | go |
64939e8f11761990f72d9f657731985a13e3861b | diff --git a/lib/bud/errors.rb b/lib/bud/errors.rb
index <HASH>..<HASH> 100644
--- a/lib/bud/errors.rb
+++ b/lib/bud/errors.rb
@@ -1,6 +1,6 @@
module Bud
# Root Bud exception type.
- class BudError < Exception; end
+ class BudError < StandardError; end
# Raised (at runtime) when a type mismatch occurs (e.g.,... | Make BudError subclass StandardError, not Exception.
This is apparently what you're supposed to do when defining custom Ruby
exceptions. | bloom-lang_bud | train | rb |
20b85afa6b8fb4c2de57c70e445271484c0930a4 | diff --git a/sos/jupyter/test/test_kernel.py b/sos/jupyter/test/test_kernel.py
index <HASH>..<HASH> 100644
--- a/sos/jupyter/test/test_kernel.py
+++ b/sos/jupyter/test/test_kernel.py
@@ -27,6 +27,7 @@
# % nosetests test_kernel.py
#
#
+import os
import unittest
from contextlib import contextmanager
from ipykernel.... | Fix tests for jupyter kernel | vatlab_SoS | train | py |
71c8adc434462a2d2f442feefcff8f7f6f594526 | diff --git a/generators/heroku/index.js b/generators/heroku/index.js
index <HASH>..<HASH> 100644
--- a/generators/heroku/index.js
+++ b/generators/heroku/index.js
@@ -397,6 +397,9 @@ module.exports = class extends BaseGenerator {
this.log('');
this.prompt(prompts).then((props... | Fix spaces issue with registry's username/password when using heroku | jhipster_generator-jhipster | train | js |
4ae3fbb073d221536a10806e5d950a7fe111bb27 | diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/StanzaBuilder.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/StanzaBuilder.java
index <HASH>..<HASH> 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/StanzaBuilder.java
+++ b/smack-core/src/main/java/org/jivesoftware/s... | Add removeExtension methods to StanzaBuilder. | igniterealtime_Smack | train | java |
9417dab5caf0872c9424bff79d29bcaafeb26d12 | diff --git a/openid.js b/openid.js
index <HASH>..<HASH> 100644
--- a/openid.js
+++ b/openid.js
@@ -1160,12 +1160,12 @@ var _verifyAssertionAgainstProviders = function(providers, params, stateless, ex
for(var i = 0; i < providers.length; ++i)
{
var provider = providers[i];
- if(!provider.version || provide... | Fix for issue reported in #<I>, also only do <I> checks if required information is present | havard_node-openid | train | js |
2a2b968775ba9b765178603bd1b733cf41e6cf5e | diff --git a/lib/regexp_preview/multi_line.rb b/lib/regexp_preview/multi_line.rb
index <HASH>..<HASH> 100644
--- a/lib/regexp_preview/multi_line.rb
+++ b/lib/regexp_preview/multi_line.rb
@@ -39,8 +39,6 @@ module RegexpPreview
result
end
- private
-
def detect_chunk(lines)
whole = ""
... | Remove duplicated `private`
The first `private` is at L<I>. | fluent_fluentd-ui | train | rb |
15c2a3e3f53d78c57abd5237bb793d5aa609f45a | diff --git a/src/Helper/ProcessHelper.php b/src/Helper/ProcessHelper.php
index <HASH>..<HASH> 100644
--- a/src/Helper/ProcessHelper.php
+++ b/src/Helper/ProcessHelper.php
@@ -64,9 +64,17 @@ class ProcessHelper extends Helper implements OutputAwareInterface
->setTimeout(3600)
;
$process = ... | plug verbosity check for greater than 2 | gushphp_gush | train | php |
5ddc2bff0db9357524829c3a0dde63cfc91d6535 | diff --git a/functional/platform/nspawn.go b/functional/platform/nspawn.go
index <HASH>..<HASH> 100644
--- a/functional/platform/nspawn.go
+++ b/functional/platform/nspawn.go
@@ -471,7 +471,11 @@ func (nc *nspawnCluster) ReplaceMember(m Member) (Member, error) {
// the nspawn container, so we must use systemctl
cmd... | functional: ignore errors from poweroff
A follow up to <I>, tests are constantly failing with a dbus error
which is probably a bug in systemd or systemctl. Not worth spending lots
of time on right now so just ignore it. If the container really fails to
shutdown the wait will eventually time out instead. | coreos_fleet | train | go |
67ab7256d4ca0a854221072ad1dfd636b68336f8 | diff --git a/tests/api/test_symbolTable.py b/tests/api/test_symbolTable.py
index <HASH>..<HASH> 100644
--- a/tests/api/test_symbolTable.py
+++ b/tests/api/test_symbolTable.py
@@ -3,7 +3,7 @@
import unittest
from unittest import TestCase
-from StringIO import StringIO
+from six import StringIO
# Initialize import... | refact: uses six.StringIO
Needed for convergente from py2 to py3 | boriel_zxbasic | train | py |
660577201e70e46b8b1362694b051378ef583185 | diff --git a/lib/builderator/interface/packer.rb b/lib/builderator/interface/packer.rb
index <HASH>..<HASH> 100644
--- a/lib/builderator/interface/packer.rb
+++ b/lib/builderator/interface/packer.rb
@@ -26,7 +26,7 @@ module Builderator
}.tap do |json|
Config.profile.current.packer.build.each do |_, ... | Only include tags if they actually exist. Otherwise we get an empty hash. | rapid7_builderator | train | rb |
1295b952edf9b3ed7b7c11b48b59634c9d93ca4d | diff --git a/eventsourcing/application.py b/eventsourcing/application.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application.py
+++ b/eventsourcing/application.py
@@ -2,6 +2,7 @@ import os
from abc import ABC, abstractmethod
from copy import deepcopy
from dataclasses import dataclass
+from inspect import ism... | Adjusted collect_events() method, to support alternative aggregate and event types. | johnbywater_eventsourcing | train | py |
af54e6f49be13bcb96ba1a5b8954d76ee50ead6a | diff --git a/gitenberg/book.py b/gitenberg/book.py
index <HASH>..<HASH> 100644
--- a/gitenberg/book.py
+++ b/gitenberg/book.py
@@ -122,6 +122,7 @@ class Book():
else:
self.local_repo = clone(self.repo_name)
self.local_path = self.local_repo.repo_path
+ self.parse_book_metad... | cloned repos need to reload metadata.yaml | gitenberg-dev_gitberg | train | py |
48b8c43eff2193fc3707ee46346509b51d9717f8 | diff --git a/Calculus.js b/Calculus.js
index <HASH>..<HASH> 100644
--- a/Calculus.js
+++ b/Calculus.js
@@ -1934,6 +1934,7 @@ if((typeof module) !== 'undefined' && typeof nerdamer === 'undefined') {
}, false);
},
defint: function(symbol, from, to, dx) {
+ dx = dx || 'x'; //ma... | fix #<I>, fix #<I>
Temporarily disabling symbolic roots since this contains erroneous
output. | jiggzson_nerdamer | train | js,js |
0481e51f5f4d79d62db437278aa37a8df828ad5a | diff --git a/includes/constants.php b/includes/constants.php
index <HASH>..<HASH> 100755
--- a/includes/constants.php
+++ b/includes/constants.php
@@ -30,7 +30,7 @@
*
*/
#TAO version number
-define('TAO_VERSION', '3.1.0-sprint27');
+define('TAO_VERSION', '3.1.0-sprint28');
$version = TAO_VERSION; | update constant to sprint <I> | oat-sa_tao-core | train | php |
720619e271e68d5848185c2a7e45175b18e98f90 | diff --git a/presto-main/src/main/java/com/facebook/presto/failureDetector/HeartbeatFailureDetector.java b/presto-main/src/main/java/com/facebook/presto/failureDetector/HeartbeatFailureDetector.java
index <HASH>..<HASH> 100644
--- a/presto-main/src/main/java/com/facebook/presto/failureDetector/HeartbeatFailureDetector.... | Fix node state returned by FailureDetector
- "GONE" means either the host or the Presto process is gone. So
ConnectException will be considered as "GONE".
- SocketTimeoutException can happen when host is gone, or host is up but
the process is not listening. Consider it as "UNRESPONSIVE" for now. | prestodb_presto | train | java |
642cade95bdbdcdec04aba73d3b49bbf37431d7e | diff --git a/pystache/tests/test_renderengine.py b/pystache/tests/test_renderengine.py
index <HASH>..<HASH> 100644
--- a/pystache/tests/test_renderengine.py
+++ b/pystache/tests/test_renderengine.py
@@ -230,7 +230,7 @@ class RenderTests(unittest.TestCase, AssertStringMixin):
#
# we need to resort to b... | Fixed the built-in type integer unit test for Python 3. | defunkt_pystache | train | py |
1456b3c5011bc6ea36e5f58f0e329b501ecfaabc | diff --git a/agrona/src/main/java/org/agrona/collections/ObjectHashSet.java b/agrona/src/main/java/org/agrona/collections/ObjectHashSet.java
index <HASH>..<HASH> 100644
--- a/agrona/src/main/java/org/agrona/collections/ObjectHashSet.java
+++ b/agrona/src/main/java/org/agrona/collections/ObjectHashSet.java
@@ -530,6 +53... | [Java] Java <I> compile issues. | real-logic_agrona | train | java,java |
76cb0e90eab7e480ac8f28b5cf0c001181bfd5e3 | diff --git a/src/ViKon/DbExporter/Meta/MigrationTable.php b/src/ViKon/DbExporter/Meta/MigrationTable.php
index <HASH>..<HASH> 100644
--- a/src/ViKon/DbExporter/Meta/MigrationTable.php
+++ b/src/ViKon/DbExporter/Meta/MigrationTable.php
@@ -110,7 +110,7 @@ class MigrationTable {
$source .= ';' . "\n";
... | Trim source method's result in migration table | vi-kon_laravel-db-exporter | train | php |
4300039d015e64d10cc220819d77ba118190847c | diff --git a/release/.buildkite/build_pipeline.py b/release/.buildkite/build_pipeline.py
index <HASH>..<HASH> 100644
--- a/release/.buildkite/build_pipeline.py
+++ b/release/.buildkite/build_pipeline.py
@@ -1,6 +1,7 @@
import copy
import logging
import os
+import re
import sys
import yaml
@@ -445,6 +446,14 @@ de... | [ci/release] Display commit hash in buildkite overview (#<I>) | ray-project_ray | train | py |
babc319d716bfb9caede1d9e86045a08ac7ca8f1 | diff --git a/lib/pact/consumer_contract/consumer_contract.rb b/lib/pact/consumer_contract/consumer_contract.rb
index <HASH>..<HASH> 100644
--- a/lib/pact/consumer_contract/consumer_contract.rb
+++ b/lib/pact/consumer_contract/consumer_contract.rb
@@ -13,6 +13,7 @@ require 'pact/consumer_contract/pact_file'
require 'pa... | feat: add custom contract parsers to front of pact parsers list so that customised parsers are tried first | pact-foundation_pact-support | train | rb |
41dc2e5ea1cc88c844dff2f71ae840c64a861401 | diff --git a/modules/es6.math.imul.js b/modules/es6.math.imul.js
index <HASH>..<HASH> 100644
--- a/modules/es6.math.imul.js
+++ b/modules/es6.math.imul.js
@@ -3,7 +3,7 @@ var $def = require('./$.def');
// WebKit fails with big numbers
$def($def.S + $def.F * require('./$.throws')(function(){
- return Math.imul(0xff... | strange output, trying break travis tests | zloirock_core-js | train | js |
df1200a2860ed93f3460174209d023b61ea01824 | diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -796,6 +796,16 @@ def stream_parameters(streams, no_duplicates=True):
return names
+def dimensionless_contents(streams, kdims):
+ """
+ Return a list of st... | Added core.util.dimensionless_contents utility | pyviz_holoviews | train | py |
4a3be86bb2091326d7f185a341e8cbbaa4a77727 | diff --git a/src/Lexer.php b/src/Lexer.php
index <HASH>..<HASH> 100644
--- a/src/Lexer.php
+++ b/src/Lexer.php
@@ -202,7 +202,9 @@ class Lexer
&& in_array($rawTagData[0], $this->whitespaceCharacters, true)
) {
// Begins with a whitespace followed by... | Fix CS issues, per phpcs | phly_phly-mustache | train | php,php |
335f1de1120e658f4e87dcbbcaf882146df895bb | diff --git a/zounds/__init__.py b/zounds/__init__.py
index <HASH>..<HASH> 100644
--- a/zounds/__init__.py
+++ b/zounds/__init__.py
@@ -15,7 +15,7 @@ from node.learn import KMeans, BinaryRbm, LinearRbm, Learned
from node.onset import \
MeasureOfTransience, MovingAveragePeakPicker, SparseTimestampDecoder, \
- ... | Add onset detection processing node to top-level exports | JohnVinyard_zounds | train | py |
8bcaa4a8fced8fc7128d687c5748a5e9fc1b14f4 | diff --git a/symphony/lib/toolkit/fields/field.checkbox.php b/symphony/lib/toolkit/fields/field.checkbox.php
index <HASH>..<HASH> 100755
--- a/symphony/lib/toolkit/fields/field.checkbox.php
+++ b/symphony/lib/toolkit/fields/field.checkbox.php
@@ -59,7 +59,7 @@
$status = self::__OK__;
return array(
- 'va... | Allow for a negative value ('no') to be sent in the POST array to un-tick a checkbox. | symphonycms_symphony-2 | train | php |
41eceea1a0d747fa705448de36063b94cd625ade | diff --git a/emma2/coordinates/tica.py b/emma2/coordinates/tica.py
index <HASH>..<HASH> 100644
--- a/emma2/coordinates/tica.py
+++ b/emma2/coordinates/tica.py
@@ -92,6 +92,10 @@ class Amuse:
if not files:
raise Exception('No input trajectories were given.')
+ # case for a single f... | [tica] is a single file is given to compute() wrap it in a list. | markovmodel_PyEMMA | train | py |
77724ae26609e8f06d344f06777bf9d017dbff21 | diff --git a/youtube/plugin.js b/youtube/plugin.js
index <HASH>..<HASH> 100755
--- a/youtube/plugin.js
+++ b/youtube/plugin.js
@@ -133,9 +133,9 @@
'default' : editor.config.youtube_width != null ? editor.config.youtube_width : '640',
validate : function () {
if (this.getValue()) {
-... | fix width and height validation
use `Number()` instead of `parseInt()` to validate user input for
height and width properties.
Since `parseInt` stops to the first non-digit and return what it had
parsed so far it allows to enter input such as `<I>" onload="alert()` | fonini_ckeditor-youtube-plugin | train | js |
3b896b4e0c171c63a3cb43c0ae08be2053ffcd93 | diff --git a/mongo.js b/mongo.js
index <HASH>..<HASH> 100644
--- a/mongo.js
+++ b/mongo.js
@@ -400,7 +400,7 @@ _.extend(Mongo.prototype, {
collectionName,
JSON.stringify(query)
);
- var doc = {};
+ var doc;
return this._cursor(
collectionName,
query,
@@ -412,7 +412,7 @@ _.ext... | Accidental change of behavior caused v1 bug | airbrite_muni | train | js |
7112b01ff4f0fd056b8055513546356c0547cdbc | diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -60,11 +60,19 @@ exports.transformCursor = function(range, ops, rootNode) {
newrange.startContainer = start.container
newrange.startOffset = start.offset
}
+ else {
+ newrange.startContainer = range.startConta... | Fix transformCursor to not kick ranges outside of document | marcelklehr_dom-ot | train | js |
0bc830395fed7248b31f1477bdf82fa1214be911 | diff --git a/safe_qgis/impact_statistics/aggregator.py b/safe_qgis/impact_statistics/aggregator.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/impact_statistics/aggregator.py
+++ b/safe_qgis/impact_statistics/aggregator.py
@@ -546,11 +546,10 @@ class Aggregator(QtCore.QObject):
error = ... | aggregator doesnt have getFunctionID anymore, so I remved it | inasafe_inasafe | train | py |
264d01c6cf44807b02b2302663def4c5e6594135 | diff --git a/test/unit/utils.spec.js b/test/unit/utils.spec.js
index <HASH>..<HASH> 100644
--- a/test/unit/utils.spec.js
+++ b/test/unit/utils.spec.js
@@ -141,8 +141,8 @@ describe('Utilities', () => {
it('can show the number of frames multiplying the decimal portion of time by the frames per second indicated', () =>... | Updated timecode test values
Some of the timecode values used in the test were based off of truncated decimal values, rather than rounded decimal values. | mediaelement_mediaelement | train | js |
27de3a65ff65eb6781375a33dfee60f8108e4a07 | diff --git a/bcbio/install.py b/bcbio/install.py
index <HASH>..<HASH> 100644
--- a/bcbio/install.py
+++ b/bcbio/install.py
@@ -588,7 +588,7 @@ def _install_kraken_db(datadir, args):
db = os.path.join(kraken, base)
tooldir = args.tooldir or get_defaults()["tooldir"]
requests.packages.urllib3.disable_warni... | Fix urllib usage in install.py
`getheader()` is no more in Python 3, use `get()` instead. | bcbio_bcbio-nextgen | train | py |
fd364090e874ef296a39455196324da7b9dd30e4 | diff --git a/lib/lifx/network_context.rb b/lib/lifx/network_context.rb
index <HASH>..<HASH> 100644
--- a/lib/lifx/network_context.rb
+++ b/lib/lifx/network_context.rb
@@ -101,7 +101,7 @@ module LIFX
time = light && light.time
end
- delay = (messages.count + 1) * (1.0 / message_rate)
+ delay ... | Message rate has been moved to the transport manager | LIFX_lifx-gem | train | rb |
5ef4a30ed2bbe3757bbaf6bf6e2a85dc68f550fe | diff --git a/core/ArchiveProcessing.php b/core/ArchiveProcessing.php
index <HASH>..<HASH> 100644
--- a/core/ArchiveProcessing.php
+++ b/core/ArchiveProcessing.php
@@ -527,8 +527,7 @@ abstract class Piwik_ArchiveProcessing
$flag = Piwik_ArchiveProcessing::DONE_OK_TEMPORARY;
}
$this->insertNumericRecord($done, ... | Fixing performance regression introduced in previous commits
git-svn-id: <URL> | matomo-org_matomo | train | php |
8af8f64bec0e397afb00dd9cfcd148da7448e49a | diff --git a/shreduling.rb b/shreduling.rb
index <HASH>..<HASH> 100644
--- a/shreduling.rb
+++ b/shreduling.rb
@@ -55,13 +55,15 @@ module Ruck
end
def sim
- min = @shreds.min.now
- (min - @now).times do
- dac.next
+ min = @shreds.min
+ min_now = min.now
+ @dac = dac
+ ... | Optimization of shreduling tight loop | alltom_ruck | train | rb |
04d45f9838b848f3a9f4f21b22672cf37da4cec7 | diff --git a/lib/auth.js b/lib/auth.js
index <HASH>..<HASH> 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -128,6 +128,7 @@ function loginFromNode (endpoint, config) {
const options = {
method: 'HEAD',
hostname: parsedUrl.hostname,
+ port: parsedUrl.port,
path: parsedUrl.path,
timeo... | Respect port from provided endpoint on node login | solid_solid-auth-tls | train | js,js |
6c8f1f0520f786e295c9c3bd4a1a9f8dae8b4c13 | diff --git a/src/main/java/com/github/theholywaffle/lolchatapi/ChatServer.java b/src/main/java/com/github/theholywaffle/lolchatapi/ChatServer.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/github/theholywaffle/lolchatapi/ChatServer.java
+++ b/src/main/java/com/github/theholywaffle/lolchatapi/ChatServer.java
@... | Add NA2 with "chat.na2.lol.riotgames.com" address.
After patch <I>, "chat.na1.lol.riotgames.com" doesn't work anymore. Changing the address to "chat.na2.lol.riotgames.com" seems to resolves this issue. This is most likely temporary.
See more here:
<URL> | TheHolyWaffle_League-of-Legends-XMPP-Chat-Library | train | java |
61d66f43da6371885feab16835cdea24dafa5029 | diff --git a/secedgar/filings/_index.py b/secedgar/filings/_index.py
index <HASH>..<HASH> 100644
--- a/secedgar/filings/_index.py
+++ b/secedgar/filings/_index.py
@@ -49,13 +49,13 @@ class IndexFilings(AbstractFiling):
@abstractmethod
def quarter(self):
"""Passed to children classes."""
- pass... | TEST: Add no coverage for abstract properties | coyo8_sec-edgar | train | py |
5a4c55886571246733551916620cfcc00e131e9a | diff --git a/lib/Doctrine/ORM/Query/Parser.php b/lib/Doctrine/ORM/Query/Parser.php
index <HASH>..<HASH> 100644
--- a/lib/Doctrine/ORM/Query/Parser.php
+++ b/lib/Doctrine/ORM/Query/Parser.php
@@ -3411,7 +3411,7 @@ class Parser
$function = is_string($functionClass)
? new $functionClass($functionNa... | Fixed #<I> to support non-closure callables on PHP <I> | doctrine_orm | train | php |
34175c130ddcd4858dc604978aede18dba6f5369 | diff --git a/plenum/test/monitoring/test_instances_throughput_ratio.py b/plenum/test/monitoring/test_instances_throughput_ratio.py
index <HASH>..<HASH> 100644
--- a/plenum/test/monitoring/test_instances_throughput_ratio.py
+++ b/plenum/test/monitoring/test_instances_throughput_ratio.py
@@ -126,7 +126,7 @@ def test_inst... | INDY-<I>: Corrected comment | hyperledger_indy-plenum | train | py |
f5c263836db4b9ff14afa5fb110420b5da2f5218 | diff --git a/cache/classes/definition.php b/cache/classes/definition.php
index <HASH>..<HASH> 100644
--- a/cache/classes/definition.php
+++ b/cache/classes/definition.php
@@ -756,7 +756,7 @@ class cache_definition {
*/
public function set_identifiers(array $identifiers = array()) {
foreach ($this->r... | MDL-<I> cache: Identifiers should never be passed as null to cache::make() | moodle_moodle | train | php |
072d4c91689305281d07b568db17c538baaca8af | diff --git a/lib/reporters/default.js b/lib/reporters/default.js
index <HASH>..<HASH> 100644
--- a/lib/reporters/default.js
+++ b/lib/reporters/default.js
@@ -5,8 +5,8 @@
module.exports = {
name: 'default',
report: function report (results) {
- results.forEach(function (result) {
- var outp... | Rewrite default reporter to ES6 | lesshint_lesshint | train | js |
53dccd4e71357ba68fbdea91e8ce60684dd77faf | diff --git a/test/Immutable.spec.js b/test/Immutable.spec.js
index <HASH>..<HASH> 100644
--- a/test/Immutable.spec.js
+++ b/test/Immutable.spec.js
@@ -82,6 +82,16 @@ var getTestUtils = require("./TestUtils.js");
});
});
+ it("doesn't wrap the promise rejection reason", function() {
+ var r... | Add test to cover the behavior of rejected promises | rtfeldman_seamless-immutable | train | js |
d5f7a506bfe5257d952eee019427caf096adce0c | diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index <HASH>..<HASH> 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -280,10 +280,10 @@ class ExternalCommand(Command):
ret = str(e)
else:
_, err = await proc.communicate(stdin.read() ... | Fix UnboundLocalError
The local variable proc was not defined in these branches. | pazz_alot | train | py,py |
f6983fe082c905fe8341fe2e6ddb943acca7a57b | diff --git a/backbone.localStorage.js b/backbone.localStorage.js
index <HASH>..<HASH> 100644
--- a/backbone.localStorage.js
+++ b/backbone.localStorage.js
@@ -37,7 +37,10 @@ _.extend(Backbone.LocalStorage.prototype, {
// Add a model, giving it a (hopefully)-unique GUID, if it doesn't already
// have an id of it's... | Hopefully closes #<I> (Can use collection.get only after fetch()) | jeromegn_Backbone.localStorage | train | js |
ef6df8e90f2ecc13eb78328ad0b0156dd8874434 | diff --git a/pyrtl/simulation.py b/pyrtl/simulation.py
index <HASH>..<HASH> 100644
--- a/pyrtl/simulation.py
+++ b/pyrtl/simulation.py
@@ -109,7 +109,7 @@ class Simulation(object):
raise core.PyrtlError(
'step provided a value for input for "%s" which is '
'not... | Fixed bug where simulation will not accept long integers | UCSBarchlab_PyRTL | train | py |
9140b657f10d6e1a645af68573d9448bc2f94deb | diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php
index <HASH>..<HASH> 100755
--- a/src/Illuminate/Database/Query/Builder.php
+++ b/src/Illuminate/Database/Query/Builder.php
@@ -1586,7 +1586,7 @@ class Builder {
*/
public function count($column = '*')
{
- return ... | Fix `count` method return value.
Return number represented as integer instead of string. | laravel_framework | train | php |
be62419f773b68e8c16f458e2e36034591f0c9de | diff --git a/lex.go b/lex.go
index <HASH>..<HASH> 100644
--- a/lex.go
+++ b/lex.go
@@ -128,25 +128,24 @@ func (l *lexer) errorf(format string, args ...interface{}) stateFn {
}
func (l *lexer) nextToken() token {
- if l.eofd {
- return token{eofType, ""}
- }
if l.peekBuffer != nil {
tmp := *l.peekBuffer
l.p... | Fixed peek to not check if it errored first | zeebo_bencode | train | go |
a52b0a789bac123644f926139ea39a4a42a06279 | diff --git a/lib/active_scaffold/helpers/list_column_helpers.rb b/lib/active_scaffold/helpers/list_column_helpers.rb
index <HASH>..<HASH> 100644
--- a/lib/active_scaffold/helpers/list_column_helpers.rb
+++ b/lib/active_scaffold/helpers/list_column_helpers.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
module ActiveScaffold
mo... | fix for ruby <I> by dale.hofkens | activescaffold_active_scaffold | train | rb |
f8ecb69c85f91450c3f29ab5ead7006a9131f9ca | diff --git a/src/com/cctintl/c3dfx/skins/C3DTabPaneSkin.java b/src/com/cctintl/c3dfx/skins/C3DTabPaneSkin.java
index <HASH>..<HASH> 100644
--- a/src/com/cctintl/c3dfx/skins/C3DTabPaneSkin.java
+++ b/src/com/cctintl/c3dfx/skins/C3DTabPaneSkin.java
@@ -834,10 +834,13 @@ public class C3DTabPaneSkin extends BehaviorSkinBas... | fixed minor ui isse in c3d tabs controls arrows ( it was showing even when its not needed) | jfoenixadmin_JFoenix | train | java |
b0013d9cad9dae8d2a6c02012c7a6a60466536cb | diff --git a/src/scrapy_redis/spiders.py b/src/scrapy_redis/spiders.py
index <HASH>..<HASH> 100644
--- a/src/scrapy_redis/spiders.py
+++ b/src/scrapy_redis/spiders.py
@@ -69,7 +69,7 @@ class RedisMixin(object):
self.redis_encoding = settings.get('REDIS_ENCODING', defaults.REDIS_ENCODING)
self.lo... | add ')' to spiders.py (#<I>) | rmax_scrapy-redis | train | py |
34bbb3e3a17dbc5687caa57eb77fc1a65a8579db | diff --git a/src/commands/util/help.js b/src/commands/util/help.js
index <HASH>..<HASH> 100644
--- a/src/commands/util/help.js
+++ b/src/commands/util/help.js
@@ -75,7 +75,7 @@ module.exports = class HelpCommand extends Command {
try {
messages.push(await msg.direct(stripIndents`
${oneLine`
- To run... | Specify that the guild's name is needed in help | discordjs_Commando | train | js |
8dba3bc091bee3b6c706ef519b2b7e1a41b470b7 | diff --git a/tmuxp/testsuite/window.py b/tmuxp/testsuite/window.py
index <HASH>..<HASH> 100644
--- a/tmuxp/testsuite/window.py
+++ b/tmuxp/testsuite/window.py
@@ -33,7 +33,8 @@ class WindowNewTestCase(TmuxTestCase):
#tmux('display-panes')
def test_newest_pane_data(self):
- self.session.select_win... | select_window to attached_window | tmux-python_tmuxp | train | py |
440142e6df1d68b193a5128461c09de85d99e16e | diff --git a/harvestingkit/html_utils.py b/harvestingkit/html_utils.py
index <HASH>..<HASH> 100644
--- a/harvestingkit/html_utils.py
+++ b/harvestingkit/html_utils.py
@@ -19,10 +19,24 @@
"""HTML utils."""
-from HTMLParser import HTMLParser
+# HACK: this is needed to load local HTMLParser from Python 2.7
+# in case... | html_utils: always use Python <I> version of HTMLParser
* Adds a new dependency in HTMLParser for better results
when running Harvesting-Kit in Python <I> environments. | inspirehep_harvesting-kit | train | py,py |
79facd8c256cdbbebefe0082e2df72497bae6471 | diff --git a/lib/maltese/sitemap.rb b/lib/maltese/sitemap.rb
index <HASH>..<HASH> 100644
--- a/lib/maltese/sitemap.rb
+++ b/lib/maltese/sitemap.rb
@@ -14,6 +14,8 @@ module Maltese
@sitemap_bucket = attributes[:sitemap_bucket].presence || "search.datacite.org"
@from_date = attributes[:from_date].presence |... | /api no longer allows solr queries directly, instead use solr exposed with authentication. | datacite_maltese | train | rb |
d5584c7207e094aa833358285f749e01f907aa00 | diff --git a/src/_pytest/_io/terminalwriter.py b/src/_pytest/_io/terminalwriter.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/_io/terminalwriter.py
+++ b/src/_pytest/_io/terminalwriter.py
@@ -83,7 +83,7 @@ class TerminalWriter:
assert file is not None
self._file = file
self.hasmark... | terminalwriter: compute width_of_current_line lazily
Currently this property is computed eagerly, which means
get_line_width() is computed on everything written, but that is a slow
function.
Compute it lazily, so that get_line_width() only runs when needed. | pytest-dev_pytest | train | py |
780cc1ad40e64d1dea6d6c71915f9b385bb32947 | diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py
index <HASH>..<HASH> 100755
--- a/src/toil/cwl/cwltoil.py
+++ b/src/toil/cwl/cwltoil.py
@@ -593,7 +593,11 @@ class CWLJob(Job):
tmp_outdir_prefix = os.path.join(
_makeNestedTempDir(top=top_tmp_outdir, seed=outdir, levels=2),
... | Make sure we have a level of directory we can delete | DataBiosphere_toil | train | py |
a229eba8cce7c19b629d64226c1b4584aa779295 | diff --git a/iktomi/web/http.py b/iktomi/web/http.py
index <HASH>..<HASH> 100644
--- a/iktomi/web/http.py
+++ b/iktomi/web/http.py
@@ -36,14 +36,6 @@ class RouteState(object):
return path
@property
- def path_qs(self):
- path = self.request.path_qs
- if self._prefixes:
- leng... | removed unused property of RouteState | SmartTeleMax_iktomi | train | py |
0549198cf0e97c267cb78eb08118b33be034792f | diff --git a/lib/moodlelib.php b/lib/moodlelib.php
index <HASH>..<HASH> 100644
--- a/lib/moodlelib.php
+++ b/lib/moodlelib.php
@@ -194,6 +194,9 @@ function clean_param($param, $options) {
if ($options & PARAM_CLEAN) {
$param = clean_text($param); // Sweep for scripts, etc
+ $param = str_repla... | A fix for kses problems with quotes ... | moodle_moodle | train | php,php |
cb4d9539b899526c178000e6cbad96609265516f | diff --git a/lib/middleware/proxy.js b/lib/middleware/proxy.js
index <HASH>..<HASH> 100644
--- a/lib/middleware/proxy.js
+++ b/lib/middleware/proxy.js
@@ -34,7 +34,8 @@ function create(options) {
target: server,
secure: false,
cookieDomainRewrite: '',
- changeOrigin: true
+ chan... | enable autoRewrite for proxy configuration
this is needed to run appserver in front of App Suite MW with oidc configured.
Otherwise there will be redirects to the original server in use after
successful logins. | Open-Xchange-Frontend_appserver | train | js |
dde81b52997f5aff00b0bd91f4db4d6ea70ffa96 | diff --git a/src/__tests__/App.test.js b/src/__tests__/App.test.js
index <HASH>..<HASH> 100644
--- a/src/__tests__/App.test.js
+++ b/src/__tests__/App.test.js
@@ -1,8 +1,24 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from '../App';
+import { HashRouter } from 'react-router-dom';
+
+// ... | Test: App.test.js | primefaces_primereact | train | js |
e30f3c722588c18aad778a639a884342bf0dec57 | diff --git a/tests/integration/test_base.py b/tests/integration/test_base.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_base.py
+++ b/tests/integration/test_base.py
@@ -131,6 +131,23 @@ class Test_StateInvestigator(unittest.TestCase):
self.assertEqual(opponent.y_max, mana_max_spec)
self.... | Added missing error case coverage for get_versus(). | kobejohn_PQHelper | train | py |
264033908053a9d1d8aaf37e3cffba6f5a1ace77 | diff --git a/src/Traits/AuthController.php b/src/Traits/AuthController.php
index <HASH>..<HASH> 100644
--- a/src/Traits/AuthController.php
+++ b/src/Traits/AuthController.php
@@ -82,9 +82,13 @@ trait AuthController
if ($query) {
// remove "token" from the target's query string
$params... | Add shop to parameter if we already have it (#<I>)
* Add shop to parameter if we already have it
This will fix Safari related issue
* fix
* Update AuthController.php | ohmybrew_laravel-shopify | train | php |
70c84dfd42afc5634d072f098ac3533cb3c98db2 | diff --git a/src/artist.py b/src/artist.py
index <HASH>..<HASH> 100644
--- a/src/artist.py
+++ b/src/artist.py
@@ -26,7 +26,7 @@ class Artist(Entity):
if attr in Artist.summary_attrs and not self.fetched_summary:
self.fetch_summary()
return getattr(self, attr)
- if len(attr.spl... | works with deeper heirarchy ts | musicmetric_mmpy | train | py |
5f9d9ea0197a89f8958a3bc6c4bf558ab97646aa | diff --git a/stripe/http_client.py b/stripe/http_client.py
index <HASH>..<HASH> 100644
--- a/stripe/http_client.py
+++ b/stripe/http_client.py
@@ -144,6 +144,12 @@ class RequestsClient(HTTPClient):
class UrlFetchClient(HTTPClient):
name = 'urlfetch'
+ def __init__(self, verify_ssl_certs=True, deadline=55):
+... | Allow custom deadline for urlfetch HTTP client. | stripe_stripe-python | train | py |
40400d6d7637204fcaae91f084dcdf25886a19fe | diff --git a/astropy_helpers/setup_helpers.py b/astropy_helpers/setup_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/setup_helpers.py
+++ b/astropy_helpers/setup_helpers.py
@@ -554,7 +554,7 @@ def generate_build_ext_command(packagename, release):
# Update cython_version.py if building with Cython... | Update setup_helpers.py
Along the same lines as #<I>, prevent the cython_version.py file from being rewritten every time | astropy_astropy-helpers | train | py |
Subsets and Splits
Java Commits in Train Set
Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.
Java Commits Test Data
Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.
Java Commits Sample
Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.
Java Commits Validation Sample
Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.
Java Commits in Validation
This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.
Java Commits Sample
This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.
Java Commits Sample
Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.
Java Commits Sample
Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.
Java Commits Validation Sample
Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.
Java Commits Sample
This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.