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
12376486d6659f35b6f339da2321fc2dce6a3c62
diff --git a/flate/reader_test.go b/flate/reader_test.go index <HASH>..<HASH> 100644 --- a/flate/reader_test.go +++ b/flate/reader_test.go @@ -601,7 +601,7 @@ func TestReader(t *testing.T) { inIdx: 93, outIdx: 4, }, { - desc: "issue 3816 - large HLitTree caused a panic", + desc: "issue 3815 - large HLitTree ...
flate: fix typo in issue number
dsnet_compress
train
go
4fe0c3789de0eef6a3e5b941485ab9f508ca9473
diff --git a/anonlink/identifier_types.py b/anonlink/identifier_types.py index <HASH>..<HASH> 100644 --- a/anonlink/identifier_types.py +++ b/anonlink/identifier_types.py @@ -47,3 +47,28 @@ basic_types = { 'PHONE freetext': IdentifierType(unigram=True, toremove='()-') } +# Weighted Types +# Zip Code, Birth Year...
Add weighted identifier types
data61_clkhash
train
py
536e93afbb9b864b22d35a6a01c26c96079e3847
diff --git a/classes/Kohana/Jam.php b/classes/Kohana/Jam.php index <HASH>..<HASH> 100755 --- a/classes/Kohana/Jam.php +++ b/classes/Kohana/Jam.php @@ -119,7 +119,7 @@ abstract class Kohana_Jam { * * FALSE is returned on failure. * - * @param string|Jam_Model $model + * @param string|Jam_Validated $mode...
Adjust Jam::meta() @param annotation as it should accept Jam_Validated as well
OpenBuildings_jam
train
php
181a9eabaa4c96de6f28a8df2f9c6ccad76afbed
diff --git a/lib/View.php b/lib/View.php index <HASH>..<HASH> 100644 --- a/lib/View.php +++ b/lib/View.php @@ -22,25 +22,41 @@ namespace Opis\View; class View implements ViewableInterface { - + /** @var string */ protected $name; - + + /** @var array */ protected $arguments; - + + ...
Added comments & fixed CS
opis_view
train
php,php
dc1c79e628e6f4fc3d9ca4ae8fbbb54100050c7b
diff --git a/src/Mural.php b/src/Mural.php index <HASH>..<HASH> 100644 --- a/src/Mural.php +++ b/src/Mural.php @@ -95,7 +95,7 @@ class Mural throw new \InvalidArgumentException('Value set in config mural.default_commentable was not instance of ' . Commentable::class); } - retu...
fix bug findOrFail should use $content-id instead of object
laravolt_mural
train
php
b325f8572f7b4452a4363f46fb2aff955b5ad58e
diff --git a/storm-compatibility/src/java/backtype/storm/utils/Utils.java b/storm-compatibility/src/java/backtype/storm/utils/Utils.java index <HASH>..<HASH> 100644 --- a/storm-compatibility/src/java/backtype/storm/utils/Utils.java +++ b/storm-compatibility/src/java/backtype/storm/utils/Utils.java @@ -38,7 +38,7 @@ pub...
Add extra info when failed to create new instance of class (#<I>)
apache_incubator-heron
train
java,java
09a6c021b693e5eab33e0309b3f15f7381160731
diff --git a/app/decorators/camaleon_cms/site_decorator.rb b/app/decorators/camaleon_cms/site_decorator.rb index <HASH>..<HASH> 100644 --- a/app/decorators/camaleon_cms/site_decorator.rb +++ b/app/decorators/camaleon_cms/site_decorator.rb @@ -148,6 +148,7 @@ class CamaleonCms::SiteDecorator < CamaleonCms::TermTaxonomyD...
Fixed site.the_url called to different site from visited site
owen2345_camaleon-cms
train
rb
2af288ee619cdc23ae31253f489713f83ddcb27e
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -295,7 +295,21 @@ class TestSolveValuesNearSkewT(unittest.TestCase): self._generator('Tlcl', 1.) def test_calculate_thetae(self): - self._generator('thetae', 1.) + quantity = 'Tw' + skew_T_valu...
altered thetae test to calculate Tlcl as intermediate quantity
atmos-python_atmos
train
py
ca3e1a62f0817cd486b6563205be3993fceb7080
diff --git a/locksmith/hub/views.py b/locksmith/hub/views.py index <HASH>..<HASH> 100644 --- a/locksmith/hub/views.py +++ b/locksmith/hub/views.py @@ -145,8 +145,8 @@ def confirm_registration(request, key, template="locksmith/confirmed.html"): context['error'] = 'Key Already Activated' else: ...
Changed order of key activation status write op. key publication task queue op.
sunlightlabs_django-locksmith
train
py
d640a6975b18e52da95b6a6b475161947d981876
diff --git a/salt/states/boto_iot.py b/salt/states/boto_iot.py index <HASH>..<HASH> 100644 --- a/salt/states/boto_iot.py +++ b/salt/states/boto_iot.py @@ -504,7 +504,8 @@ def topic_rule_present(name, ruleName, sql, actions, description='', actions = json.loads(actions) need_update = False - r = cmp(_...
cmp() function is deprecated in Python 3 - use an alternate comparison
saltstack_salt
train
py
29f95818ab0f1c19e8b727f8c0e84a22017986a2
diff --git a/daemon/status.go b/daemon/status.go index <HASH>..<HASH> 100644 --- a/daemon/status.go +++ b/daemon/status.go @@ -71,9 +71,6 @@ func checkLocks(d *Daemon) { option.Config.ConfigPatchMutex.Lock() option.Config.ConfigPatchMutex.Unlock() - - d.GetCompilationLock().Lock() - d.GetCompilationLock().Unlock(...
agent: Fix periodic agent unhealthiness due to CompilationLock contention The agent status report acquire the CompilationLock in attempt to detect deadlocks. This lock can receive a lot of contention as it is being held throughout entire compilation cycles. At times, when many endpoints need to be rebuilt. Waiting for...
cilium_cilium
train
go
5057a1ad02adaa0059a32cf829a3f2d10a88cd00
diff --git a/jsf-spring-boot-autoconfigure/src/main/java/org/joinfaces/richfaces/RichfacesSpringBootAutoConfiguration.java b/jsf-spring-boot-autoconfigure/src/main/java/org/joinfaces/richfaces/RichfacesSpringBootAutoConfiguration.java index <HASH>..<HASH> 100644 --- a/jsf-spring-boot-autoconfigure/src/main/java/org/joi...
Updates the @ConditionalOnClass at the Richfaces AutoConfigure
joinfaces_joinfaces
train
java
a2104ed567e9ef57f7c9a7f20922d6c622de38b5
diff --git a/closure/goog/dom/classlist.js b/closure/goog/dom/classlist.js index <HASH>..<HASH> 100644 --- a/closure/goog/dom/classlist.js +++ b/closure/goog/dom/classlist.js @@ -146,8 +146,9 @@ goog.dom.classlist.remove = goog.dom.classlist.NATIVE_DOM_TOKEN_LIST_ ? */ goog.dom.classlist.removeAll = goog.dom.classli...
Optimized goog.dom.classlist.removeAll. goog.partial is slow because it has to create the 'arguments' array at every call. R=jeffschiller,gboyer DELTA=3 (1 added, 0 deleted, 2 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=<I> git-svn-id: <URL>
google_closure-library
train
js
d1ff82a07c44cb53ab909b61833296f38257eabd
diff --git a/index.js b/index.js index <HASH>..<HASH> 100644 --- a/index.js +++ b/index.js @@ -39,8 +39,8 @@ exports.parse = function parse (s, env) { else if (/^"/.test(s)) { return s .replace(/^"|"$/g, '') - .replace(/(^|[^\\])\$(\w+)/g, getVar) - ....
add the special vars to the replace regex but the chunker breaks on them
substack_node-shell-quote
train
js
dc631c2e04d37878872f23c69ff69e07308625a1
diff --git a/concrete/blocks/page_list/controller.php b/concrete/blocks/page_list/controller.php index <HASH>..<HASH> 100644 --- a/concrete/blocks/page_list/controller.php +++ b/concrete/blocks/page_list/controller.php @@ -303,9 +303,9 @@ class Controller extends BlockController $start = "$year-01-01 0...
Minor code optimization in PageList::action_filter_by_date
concrete5_concrete5
train
php
2b3ae300d299ba2941a53ccabd73a4698cf08289
diff --git a/dramatiq/worker.py b/dramatiq/worker.py index <HASH>..<HASH> 100644 --- a/dramatiq/worker.py +++ b/dramatiq/worker.py @@ -466,6 +466,7 @@ class _WorkerThread(Thread): Parameters: message(MessageProxy) """ + actor = None try: self.logger.debug("Recei...
worker: fix potential unbound local errors Closes #<I>.
Bogdanp_dramatiq
train
py
b1e5e9e5281673da56e5ed05820825c0f49ae409
diff --git a/lang/sv.php b/lang/sv.php index <HASH>..<HASH> 100644 --- a/lang/sv.php +++ b/lang/sv.php @@ -1,4 +1,4 @@ -<?php +<?php $translations = array( 'General_Locale' => 'sv_SE.UTF-8', 'General_TranslatorName' => 'Fredrik Astrom',
fixing sv translation file according to tests git-svn-id: <URL>
matomo-org_matomo
train
php
a6c1caf3d22730de6f424a9e2266e83506239ac3
diff --git a/src/Jade/Stream/Template.php b/src/Jade/Stream/Template.php index <HASH>..<HASH> 100644 --- a/src/Jade/Stream/Template.php +++ b/src/Jade/Stream/Template.php @@ -64,4 +64,16 @@ class Template { { return $this->position >= strlen($this->data); } -} \ No newline at end of file + + + /**...
Dummy PHP bug prevention Added dummy url_stat method to Jade\Stream\Template that just returns blank stat info to prevent PHP "undefined" errors
pug-php_pug
train
php
e9e1a2429794626b4f383ad733e1b5ce32519b33
diff --git a/src/LeagueWrap/Dto/AbstractDto.php b/src/LeagueWrap/Dto/AbstractDto.php index <HASH>..<HASH> 100644 --- a/src/LeagueWrap/Dto/AbstractDto.php +++ b/src/LeagueWrap/Dto/AbstractDto.php @@ -21,7 +21,8 @@ Abstract class AbstractDto { /** * Check if an attribute exists * - * @param array $info + * @par...
Fixed param and return in PHPDoc bloc of __isset() function in AbstractDTO
paquettg_leaguewrap
train
php
deda90b749750281bece98f1fe313bfdfd0454a2
diff --git a/cmd/influx_inspect/buildtsi/buildtsi.go b/cmd/influx_inspect/buildtsi/buildtsi.go index <HASH>..<HASH> 100644 --- a/cmd/influx_inspect/buildtsi/buildtsi.go +++ b/cmd/influx_inspect/buildtsi/buildtsi.go @@ -14,9 +14,9 @@ import ( "strings" "sync/atomic" - "github.com/influxdata/influxdb/toml" "githu...
fix: buildtsi should use the platform toml package instead of influxdb
influxdata_influxdb
train
go
6fa2d84162f56c7593a6c9f3360be11dfa05590d
diff --git a/mqtt-server.js b/mqtt-server.js index <HASH>..<HASH> 100644 --- a/mqtt-server.js +++ b/mqtt-server.js @@ -158,6 +158,7 @@ function authenticate(client, username, password, callback) { uuid: username.toString(), token: password.toString(), socketid: username.toString(), + ipAddress...
enable proxy protocol for mqtt and set client ip
octoblu_meshblu
train
js
85204550425b69990c0c3b28e66296b013901a33
diff --git a/tests/color_test.py b/tests/color_test.py index <HASH>..<HASH> 100644 --- a/tests/color_test.py +++ b/tests/color_test.py @@ -1,5 +1,6 @@ from __future__ import unicode_literals +import os import sys import mock @@ -50,3 +51,20 @@ def test_use_color_tty_without_color_support(): def test_use_color_r...
Add tests for NO_COLOR support
pre-commit_pre-commit
train
py
c38ca6f1bdf4752f978bd00768a2eafd9536daf0
diff --git a/gcs/conn_test.go b/gcs/conn_test.go index <HASH>..<HASH> 100644 --- a/gcs/conn_test.go +++ b/gcs/conn_test.go @@ -69,7 +69,7 @@ func (t *ConnTest) NonExistentBucket() { func (t *ConnTest) BadCredentials() { var err error - const name = "golang" + const name = "foobar" _, err = t.conn.OpenBucket(t.ct...
conn_test: change the bucket used for BadCredentials. golang apparently now allows public listing.
jacobsa_gcloud
train
go
633dd28bd5c4e837a8ed02c747747e40c0ac7778
diff --git a/lib/devices-service.js b/lib/devices-service.js index <HASH>..<HASH> 100644 --- a/lib/devices-service.js +++ b/lib/devices-service.js @@ -11,18 +11,18 @@ function hasDevices(platform) { var platformsServices = getPlatformServices(platform); - return Q.fcall(hasDevicesOfPlatforms, _.toArray(platform...
Optimize the "hasDevices" method to run in O(n) instead of O(n*n)
Icenium_icenium-cli
train
js
bb46db06f9d4ce82615e83b0c72e481d35bec862
diff --git a/ironman/communicator.py b/ironman/communicator.py index <HASH>..<HASH> 100644 --- a/ironman/communicator.py +++ b/ironman/communicator.py @@ -6,6 +6,7 @@ from zope.interface import implements from ironman.interfaces import ICommunicationSlave, ICommunicationDriver +from ironman.constructs.ipbus import ...
Now we don't need to rely on the controllers to give us the right format -- we convert from the string to the integers we need
kratsg_ironman
train
py
78c32872642bd5c0bdbcc117f84cac955e8e73af
diff --git a/src/main/java/net/malisis/core/client/gui/GuiRenderer.java b/src/main/java/net/malisis/core/client/gui/GuiRenderer.java index <HASH>..<HASH> 100644 --- a/src/main/java/net/malisis/core/client/gui/GuiRenderer.java +++ b/src/main/java/net/malisis/core/client/gui/GuiRenderer.java @@ -590,10 +590,10 @@ public ...
Fixed stackSize being displayed even if stackSize < 2
Ordinastie_MalisisCore
train
java
a70b4c6a8663a0b8e562566cc3ae50597feebee2
diff --git a/tests/test_apps/txnid-selfcheck2/src/txnIdSelfCheck/procedures/UpdateBaseProc.java b/tests/test_apps/txnid-selfcheck2/src/txnIdSelfCheck/procedures/UpdateBaseProc.java index <HASH>..<HASH> 100644 --- a/tests/test_apps/txnid-selfcheck2/src/txnIdSelfCheck/procedures/UpdateBaseProc.java +++ b/tests/test_apps/...
selfcheck2 fix: add a race-condition fix to the adhoc path which was added to the non-adhoc path a while ago.
VoltDB_voltdb
train
java
d951f52538fc6423f0ac221ccb72473954465ca3
diff --git a/src/java/org/apache/cassandra/service/AntiEntropyService.java b/src/java/org/apache/cassandra/service/AntiEntropyService.java index <HASH>..<HASH> 100644 --- a/src/java/org/apache/cassandra/service/AntiEntropyService.java +++ b/src/java/org/apache/cassandra/service/AntiEntropyService.java @@ -39,6 +39,7 @@...
Check for dead neighbors before starting repair patch by slebresne; reviewed by jbellis for CASSANDRA-<I> git-svn-id: <URL>
Stratio_stratio-cassandra
train
java
747f124d185e08c3c5432abbcbc3c121ec5e5bb0
diff --git a/torf/_magnet.py b/torf/_magnet.py index <HASH>..<HASH> 100644 --- a/torf/_magnet.py +++ b/torf/_magnet.py @@ -85,7 +85,7 @@ class Magnet(): urn:btih:3bb9561e35b06175bb6d2c2330578dc83846cc5d - For convenience, this property may be set to the info hash with the + For convenienc...
Magnet.xt: Fix typo in docstring
rndusr_torf
train
py
be23dc7a9f4de65d858d403fb3cca07177c05c04
diff --git a/src/Admin/AdminInterface.php b/src/Admin/AdminInterface.php index <HASH>..<HASH> 100644 --- a/src/Admin/AdminInterface.php +++ b/src/Admin/AdminInterface.php @@ -44,12 +44,25 @@ interface AdminInterface public function getLabel(); /** - * Should return one of VoterInterface::ACCESS_XXX cons...
Add isGranted and getAccess to the interface
wanjee_ShuweeAdminBundle
train
php
cf0d1a8f2aa06fd6a7e4051469f09c7969e6ccec
diff --git a/spyder/api/plugins.py b/spyder/api/plugins.py index <HASH>..<HASH> 100644 --- a/spyder/api/plugins.py +++ b/spyder/api/plugins.py @@ -574,7 +574,6 @@ class Plugins: """ Application = 'application' Breakpoints = 'breakpoints' - CodeAnalysis = 'code_analysis' CodeCompletion = 'code_com...
Add (temporarily) internal plugins to the list used to solve deps
spyder-ide_spyder
train
py,py
8594cbdb84cf8504f676bba0302cec78bdc5998c
diff --git a/remarkup.js b/remarkup.js index <HASH>..<HASH> 100644 --- a/remarkup.js +++ b/remarkup.js @@ -222,15 +222,6 @@ ReMarkup.defaultRawElementMetric = function (e1, e2, e1i, e2i, e1pl, e2pl) { return distance; }; -// Return the index of an DOM node in a list of nodes -function getElementIndex (list, elemen...
replace isSameNode testing by equality testing
addaleax_remarkup
train
js
32b005edb1883d179ebc2bf9ef3c6e89760b1167
diff --git a/cqlengine/tests/management/test_compaction_settings.py b/cqlengine/tests/management/test_compaction_settings.py index <HASH>..<HASH> 100644 --- a/cqlengine/tests/management/test_compaction_settings.py +++ b/cqlengine/tests/management/test_compaction_settings.py @@ -119,8 +119,12 @@ class AlterTableTest(Bas...
fixed broken test due to weird copying issue
cqlengine_cqlengine
train
py
ca1f384e7bb6eb81f89fd518ec2289a2449933d8
diff --git a/LeanMapper/Fluent.php b/LeanMapper/Fluent.php index <HASH>..<HASH> 100644 --- a/LeanMapper/Fluent.php +++ b/LeanMapper/Fluent.php @@ -24,6 +24,15 @@ class Fluent extends DibiFluent { /** @var array */ + public static $masks = array( // fixes missing UNION in dibi + 'SELECT' => array('SELECT', 'DISTIN...
Added missing UNION in Fluent:: (TODO: send pull to dibi)
Tharos_LeanMapper
train
php
56a7f31c443551c0f0c83635dc685a4ff166bfcf
diff --git a/lib/Bacon/Loader.php b/lib/Bacon/Loader.php index <HASH>..<HASH> 100644 --- a/lib/Bacon/Loader.php +++ b/lib/Bacon/Loader.php @@ -1,7 +1,7 @@ <?php /** - Copyright 2012-2013 Brainsware + Copyright Brainsware Licensed under the Apache License, Version 2.0 (the "License"); you may not use t...
fix(twig): fixed loader getSourceContext for twig 2.*
Brainsware_bacon
train
php
d1f4eebc6d7de69d2058b8f10c7564ca49887944
diff --git a/lib/Ouzo/Helper/FormHelper.php b/lib/Ouzo/Helper/FormHelper.php index <HASH>..<HASH> 100644 --- a/lib/Ouzo/Helper/FormHelper.php +++ b/lib/Ouzo/Helper/FormHelper.php @@ -285,6 +285,11 @@ function formTag($url, $method = 'POST', $attributes = array()) return $form; } +function endTag() +{ + retur...
Add end from tag to FormHelper.
letsdrink_ouzo
train
php
47dbe6e84c9591aec6c3681646394a00ed734259
diff --git a/src/EoC/Info/DbInfo.php b/src/EoC/Info/DbInfo.php index <HASH>..<HASH> 100644 --- a/src/EoC/Info/DbInfo.php +++ b/src/EoC/Info/DbInfo.php @@ -11,9 +11,8 @@ namespace EoC\Info; -use EoC\Helper; - use ToolBag\Extension; +use ToolBag\Helper; /** diff --git a/src/EoC/Message/Message.php b/src/EoC/Me...
refactored using THelper
dedalozzo_eoc-client
train
php,php,php
fa62451761b69e5e015c9d630430053905d92a0d
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( version=version, license='MIT', description='EVE CREST access tool', - url='https://git.celeodor.com/Celeo/Prest', + url='http://git.celeodor.com/Celeo/Prest', platforms='any', ...
Removed HTTPS in favor of HTTP for git repo Some devices won't recognzie the Let's Encrypt CA and will throw security errors
Celeo_Preston
train
py
00e476cc4912c9ec05a1c46522cac35b03988045
diff --git a/apiserver/testing/stub_network.go b/apiserver/testing/stub_network.go index <HASH>..<HASH> 100644 --- a/apiserver/testing/stub_network.go +++ b/apiserver/testing/stub_network.go @@ -249,6 +249,26 @@ func (f *FakeSubnet) GoString() string { return fmt.Sprintf("&FakeSubnet{%#v}", f.info) } +func (f *Fak...
Implement required methods on FakeSubnet
juju_juju
train
go
f46fdd896495b09292d6871d36092cd8d2d6ece7
diff --git a/src/runez/program.py b/src/runez/program.py index <HASH>..<HASH> 100644 --- a/src/runez/program.py +++ b/src/runez/program.py @@ -10,7 +10,7 @@ import time from runez.base import decode from runez.convert import flattened, represented_args, SHELL, short -from runez.system import abort, is_dryrun +from ...
Don't abort twice on external program invocation
zsimic_runez
train
py
3a13ea6992ac204560132c0190adc19de048067c
diff --git a/client/my-sites/themes/theme-filters.js b/client/my-sites/themes/theme-filters.js index <HASH>..<HASH> 100644 --- a/client/my-sites/themes/theme-filters.js +++ b/client/my-sites/themes/theme-filters.js @@ -71,6 +71,7 @@ const taxonomies = { "microformats", "multiple-menus", "one-...
Update/theme taxonomies (#<I>)
Automattic_wp-calypso
train
js
7a3c6a9ebb4e01d0bd20b54e11859ed47d4130ae
diff --git a/py/h2o_import2.py b/py/h2o_import2.py index <HASH>..<HASH> 100644 --- a/py/h2o_import2.py +++ b/py/h2o_import2.py @@ -255,7 +255,13 @@ def import_parse(node=None, schema='local', bucket=None, path=None, # do SummaryPage here too, just to get some coverage if doSummary: + # if parse blows...
add some stack trace isolation after parse, before the next thing
h2oai_h2o-2
train
py
4f7f2bc63d66c0b5519e672f8d816c99797ad74f
diff --git a/src/Variations/ReadModel/Search/Doctrine/DBALRepository.php b/src/Variations/ReadModel/Search/Doctrine/DBALRepository.php index <HASH>..<HASH> 100644 --- a/src/Variations/ReadModel/Search/Doctrine/DBALRepository.php +++ b/src/Variations/ReadModel/Search/Doctrine/DBALRepository.php @@ -94,8 +94,9 @@ class D...
III-<I>: Replace offset with page number
cultuurnet_udb3-php
train
php,php
e13e4fc26d50326417fafc999b735db81c6024b7
diff --git a/java/client/test/org/openqa/selenium/TypingTest.java b/java/client/test/org/openqa/selenium/TypingTest.java index <HASH>..<HASH> 100644 --- a/java/client/test/org/openqa/selenium/TypingTest.java +++ b/java/client/test/org/openqa/selenium/TypingTest.java @@ -133,7 +133,10 @@ public class TypingTest extends ...
DouniaBerrada: Disabling testShouldBeAbleToUseArraowKeys for Android. This test fails due an an ICS bug where the meta shoft key stays blocked on after the first upper case letter is sent. r<I>
SeleniumHQ_selenium
train
java
79a54a3929028a7fd45632d4257f4df93f31794c
diff --git a/src/Crawler/CacheDownloader.php b/src/Crawler/CacheDownloader.php index <HASH>..<HASH> 100644 --- a/src/Crawler/CacheDownloader.php +++ b/src/Crawler/CacheDownloader.php @@ -150,15 +150,22 @@ class CacheDownloader */ protected function setCache($content) { - if (is_writable($this->ge...
[fix] Fixed cache downloader not creating directory
capimichi_crawler
train
php
2a6403a6a79dd4cd37f303ad51bf6f27de1a92fa
diff --git a/extensions/mentions/js/src/post-reply-action.js b/extensions/mentions/js/src/post-reply-action.js index <HASH>..<HASH> 100644 --- a/extensions/mentions/js/src/post-reply-action.js +++ b/extensions/mentions/js/src/post-reply-action.js @@ -16,7 +16,6 @@ export default function() { if (component) {...
Reset original content before inserting the mention
flarum_core
train
js
aa94f6d2d700d93e1153a090511d7b0e2810d0de
diff --git a/src/Auth/EmailVerification/EmailVerificationRepository.php b/src/Auth/EmailVerification/EmailVerificationRepository.php index <HASH>..<HASH> 100644 --- a/src/Auth/EmailVerification/EmailVerificationRepository.php +++ b/src/Auth/EmailVerification/EmailVerificationRepository.php @@ -111,7 +111,7 @@ class Ema...
updated email config typo in emailVerificationsRepository
nodes-php_api
train
php
03f7ff48c233f24c6a5325e837a1e65ecc795f5a
diff --git a/lib/8583.js b/lib/8583.js index <HASH>..<HASH> 100644 --- a/lib/8583.js +++ b/lib/8583.js @@ -719,7 +719,7 @@ class Main { for (let i = 0; i < bitmaps_127.length; i++) { let field = '127.'+ (Number(i) + 1); if(field==='127.1'){ - continue + ...
undo ignored field <I> un assemble <I> extensions
zemuldo_iso_8583
train
js
c57ffa30a2aeb7dcf01f7a3cd72e2b0475d17142
diff --git a/src/Base.php b/src/Base.php index <HASH>..<HASH> 100644 --- a/src/Base.php +++ b/src/Base.php @@ -72,9 +72,6 @@ class Base //if it's a registered method if(isset(self::$invokables[$name])) { - //do them a favor and pass the instance - //into the last part of the argument - $args[] = $this; ...
Removing this, because callbacks are binded anyways
Eden-PHP_Core
train
php
12eafc6e71ce6bc8ac94e78d3ae6cf1a158720c7
diff --git a/boom.js b/boom.js index <HASH>..<HASH> 100644 --- a/boom.js +++ b/boom.js @@ -122,6 +122,12 @@ var boom = { this.sound.muted = true; return this; } + this.unmute = function() { + if ( !supported ) return this; + + this.sound.muted ...
Add unmute method and add forgotten pause method to group
jaysalvat_buzz
train
js
f123b9f978b72368c4357401e73351f50aa1e8a7
diff --git a/taxtastic/utils.py b/taxtastic/utils.py index <HASH>..<HASH> 100644 --- a/taxtastic/utils.py +++ b/taxtastic/utils.py @@ -245,6 +245,8 @@ def add_database_args(parser): help=('Database string URI or filename. If no database scheme ' 'specified \"sqlite:///\" will be prepended. [%(d...
check suffix of url before assuming it is a config file
fhcrc_taxtastic
train
py
c19952dfeac530fd334f29a7f8557fe6b786ccec
diff --git a/webpack.config.js b/webpack.config.js index <HASH>..<HASH> 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,6 +20,7 @@ const dependencies = [ 'lodash/isEmpty', 'lodash/isString', 'lodash/isFunction', + 'lodash/cloneDeep', 'lodash/size', 'lodash/find', 'lodash/map',
Exclude lodash/cloneDeep from bundle
RasCarlito_axios-cache-adapter
train
js
65f449ef60f55dc05f2d3b2057283fb95e40920e
diff --git a/lib/codemirror.js b/lib/codemirror.js index <HASH>..<HASH> 100644 --- a/lib/codemirror.js +++ b/lib/codemirror.js @@ -2656,7 +2656,8 @@ var CodeMirror = (function() { } nextChange = markpos < marked.length ? marked[markpos].from : Infinity; for (var i = 0; i < marks.length;...
Fix bug in marked-text drawing Implicit conversion to bool was used where ==null was intended. Closes #<I>
codemirror_CodeMirror
train
js
edf92e7152d65dc95f07133f2310e05fb317daf1
diff --git a/src/main/java/org/minimalj/security/UserPasswordAuthentication.java b/src/main/java/org/minimalj/security/UserPasswordAuthentication.java index <HASH>..<HASH> 100644 --- a/src/main/java/org/minimalj/security/UserPasswordAuthentication.java +++ b/src/main/java/org/minimalj/security/UserPasswordAuthenticatio...
UserPasswordAuthentication: make empty method abstract
BrunoEberhard_minimal-j
train
java
5c55c99735142b3917f69f9894753603a7cbd957
diff --git a/examples/mesos_ec2.py b/examples/mesos_ec2.py index <HASH>..<HASH> 100644 --- a/examples/mesos_ec2.py +++ b/examples/mesos_ec2.py @@ -38,10 +38,10 @@ def main(): delta = decider.should_scale(reporter) if delta: - print 'Scaling {asg} in {region} by {delta}'.format(asg=args.asg, regio...
Changed to function syntax for print() instead of the removed keyword syntax
thefactory_autoscale-python
train
py
f0a578492abfae3e08bdc808ee93928ad6a5cd8c
diff --git a/plugins/inputs/ping/ping.go b/plugins/inputs/ping/ping.go index <HASH>..<HASH> 100644 --- a/plugins/inputs/ping/ping.go +++ b/plugins/inputs/ping/ping.go @@ -293,10 +293,12 @@ func (p *Ping) pingToURLNative(destination string, acc telegraf.Accumulator) { if strings.Contains(err.Error(), "not permitte...
Fix incorrect results in ping plugin (#<I>)
influxdata_telegraf
train
go,go
c974f9778dbce8c18dab0a2ae5b42ca47e0e6893
diff --git a/lib/index.js b/lib/index.js index <HASH>..<HASH> 100644 --- a/lib/index.js +++ b/lib/index.js @@ -95,7 +95,9 @@ function onPart (part) { function onEnd () { part.removeListener('data', onData); part.removeListener('end', onEnd); - ws.once('close', done); + ws.once('close', function (_) {...
fixed; writeStream!close arg handling
aheckmann_gridform
train
js
4e5d3c9728c2ac9d5102ce801e3a150bbc41e029
diff --git a/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php b/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php index <HASH>..<HASH> 100644 --- a/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php +++ b/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php @@ -98,6 +98,7 @@ function ewiki_html_tag_balancer(&$html) { #-- cdata ...
mod/wiki: HTML fix <![CDATA tags were being lowercased preventing Firefox from displayign the page in standards compliance mode.
moodle_moodle
train
php
d8757e53925dca13faf8eab5056eab8baa1be98e
diff --git a/core/src/main/java/io/ddf/DDF.java b/core/src/main/java/io/ddf/DDF.java index <HASH>..<HASH> 100644 --- a/core/src/main/java/io/ddf/DDF.java +++ b/core/src/main/java/io/ddf/DDF.java @@ -351,6 +351,10 @@ public abstract class DDF extends ALoggable // return this.mCreatedTime; } + public void setC...
add method to setCreatedTime
ddf-project_DDF
train
java
c61200454aa8eadf8f331b80e81bbc7f909bd861
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -143,13 +143,10 @@ def compute_gmfs(ruptures, sitecol, rlzs_by_gsim, param, monitor): """ Compute GMFs a...
Changed compute_gmfs to not return the useless ruptures [skip hazardlib]
gem_oq-engine
train
py
7b7e02110e85fa927a12e0c854b77d596067f52b
diff --git a/src/test/java/org/redisson/RedissonSetTest.java b/src/test/java/org/redisson/RedissonSetTest.java index <HASH>..<HASH> 100644 --- a/src/test/java/org/redisson/RedissonSetTest.java +++ b/src/test/java/org/redisson/RedissonSetTest.java @@ -13,6 +13,7 @@ import java.util.concurrent.ExecutionException; import...
RSet.removeAll test added
redisson_redisson
train
java
a1923926222e8e33941acb24735d610997da8073
diff --git a/packages/xod-func-tools/src/types.js b/packages/xod-func-tools/src/types.js index <HASH>..<HASH> 100644 --- a/packages/xod-func-tools/src/types.js +++ b/packages/xod-func-tools/src/types.js @@ -38,7 +38,7 @@ const typeUrl = R.curry( // hasType :: Type -> (x -> Boolean) export const hasType = R.curry( -...
fix(xod-func-tools): fix currying of ‘hasType’
xodio_xod
train
js
bf8ffc47a482df2cdbc7e896fd8f965c97fb6d68
diff --git a/src/Symfony/Framework/WebBundle/Bundle.php b/src/Symfony/Framework/WebBundle/Bundle.php index <HASH>..<HASH> 100644 --- a/src/Symfony/Framework/WebBundle/Bundle.php +++ b/src/Symfony/Framework/WebBundle/Bundle.php @@ -3,10 +3,8 @@ namespace Symfony\Framework\WebBundle; use Symfony\Foundation\Bundle\Bun...
[WebBundle] removed unneeded code
symfony_symfony
train
php
a2f228df5f2105aa29b6cbd0ed4067c567ffe550
diff --git a/src/main/java/com/buschmais/jqassistant/plugin/rdbms/api/RdbmsScope.java b/src/main/java/com/buschmais/jqassistant/plugin/rdbms/api/RdbmsScope.java index <HASH>..<HASH> 100644 --- a/src/main/java/com/buschmais/jqassistant/plugin/rdbms/api/RdbmsScope.java +++ b/src/main/java/com/buschmais/jqassistant/plugin...
Renamed methods in the Scope interface and added some JavaDoc.
buschmais_jqa-rdbms-plugin
train
java
9822ea93502151066472ed624db38579a8e6c906
diff --git a/src/i18n/fi.js b/src/i18n/fi.js index <HASH>..<HASH> 100644 --- a/src/i18n/fi.js +++ b/src/i18n/fi.js @@ -50,7 +50,7 @@ export default { password_strength_error: 'Salasana on liian heikko.', user_exists: 'Käyttäjä on jo olemassa.', username_exists: 'Käyttäjätunnus on jo olemassa.', - ...
fix: Typographical error in finnish translation
auth0_lock
train
js
dd83385dd39c41c2cae5de2191429de503c9199b
diff --git a/vsphere/provider.go b/vsphere/provider.go index <HASH>..<HASH> 100644 --- a/vsphere/provider.go +++ b/vsphere/provider.go @@ -53,19 +53,19 @@ func Provider() terraform.ResourceProvider { Type: schema.TypeBool, Optional: true, DefaultFunc: schema.EnvDefaultFunc("VSPHERE_CLIENT_DEBUG...
Fix typo in provider.go The name of Go library for the VMware vSphere API is govmomi.
terraform-providers_terraform-provider-vsphere
train
go
3da34d6c725e5e6100c8a34d3e377687aadfe395
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -92,7 +92,7 @@ language = None exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The name of the Pygments (syntax highlighting) style to use. -pygments_style = None +pygments_style = 'tango' high...
docs: Set code-block style to tango
lablup_backend.ai-client-py
train
py
8e6fdbc459b61f30f1d2f0919c2dc95a749f5bd8
diff --git a/dbkit.py b/dbkit.py index <HASH>..<HASH> 100644 --- a/dbkit.py +++ b/dbkit.py @@ -439,6 +439,7 @@ class Pool(PoolBase): conn.close() except: # pragma: no cover pass + self._pool.clear() self._cond.release() # }}} diff --git a/tests/test_pool...
Ensure finalisation is done correctly and empty connections hang around.
kgaughan_dbkit
train
py,py
4dfbe2a70b28e0871b27c8a41d6401755cc920ca
diff --git a/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java b/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java index <HASH>..<HASH> 100644 --- a/host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java +++ b/host-controller/src/main/java/o...
[WFLY-<I>] only send stop operation if the server is started
wildfly_wildfly-core
train
java
2b8f029004f4f93b9bdadc47e32fe587591f88f4
diff --git a/sos/report/plugins/rabbitmq.py b/sos/report/plugins/rabbitmq.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/rabbitmq.py +++ b/sos/report/plugins/rabbitmq.py @@ -59,6 +59,13 @@ class RabbitMQ(Plugin, IndependentPlugin): "/var/log/rabbitmq/*", ]) + # Crash dump can be ...
[rabbitmq] Capture Erlang crash dump from RabbitMQ When RabbitMQ process crashes, it sometimes generates erl_crash.dump in its log directory. This file is is useful to understand the cause. This change ensures that file is captured in sosreport even without --all-logs.
sosreport_sos
train
py
86ccd3067a3ef9c86b70cbe8f0dbeffa7265000b
diff --git a/app/models/role.rb b/app/models/role.rb index <HASH>..<HASH> 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -165,8 +165,8 @@ class Role < ActiveRecord::Base end Permission.joins(:verbs, :resource_type).joins( - "left outer join 'permissions_tags' on permissions.id == permiss...
fixing sql error to hopefully work with postgresql
Katello_katello
train
rb
34a3f6d9a6121b860d36f7c5b80f5bb96a251119
diff --git a/master/buildbot/status/web/baseweb.py b/master/buildbot/status/web/baseweb.py index <HASH>..<HASH> 100644 --- a/master/buildbot/status/web/baseweb.py +++ b/master/buildbot/status/web/baseweb.py @@ -377,8 +377,6 @@ class WebStatus(service.MultiService): (self.http_port, self.distrib_port, h...
Fix race condition during web status reconfig. Service.setServiceParent starts the current service, if the parent is already started. Thus, the current service needs to be ready to run when we call it. Fixes #<I>.
buildbot_buildbot
train
py
24d352da98ed0d16a9556b43ddebb5b1ae132ad4
diff --git a/code/SSTwitter.php b/code/SSTwitter.php index <HASH>..<HASH> 100644 --- a/code/SSTwitter.php +++ b/code/SSTwitter.php @@ -1,6 +1,6 @@ <?php -require_once (dirname(dirname(__FILE__)) . '/vendor/jublonet/codebird-php/src/codebird.php'); +require_once (dirname(dirname(dirname(__FILE__))) . '/vendor/jublone...
NEW: Amending require in relation to composer changes
kmayo-ss_twitter-stripe
train
php
0b1c444ac676dc87ff8b9d75ce9a892b582c3834
diff --git a/src/main/java/stormpot/whirlpool/Whirlpool.java b/src/main/java/stormpot/whirlpool/Whirlpool.java index <HASH>..<HASH> 100644 --- a/src/main/java/stormpot/whirlpool/Whirlpool.java +++ b/src/main/java/stormpot/whirlpool/Whirlpool.java @@ -160,7 +160,7 @@ public class Whirlpool<T extends Poolable> implements...
fix a deadlock where a release by the WpAllocThread and one other client-thread could end up hanging forever.
chrisvest_stormpot
train
java
8ee7b13fc2b4d38f1e5b7807a9c4e7cdbf8f0ff4
diff --git a/greenhouse/utils.py b/greenhouse/utils.py index <HASH>..<HASH> 100644 --- a/greenhouse/utils.py +++ b/greenhouse/utils.py @@ -272,10 +272,10 @@ class Semaphore(object): def release(self): "release or increment the semaphore" - if self._value or not self._waiters: - self._v...
make a method's logic clearer
teepark_greenhouse
train
py
caade01f897ab8ec52cec7ef8ed49a9285ff451b
diff --git a/src/gremlinscript.js b/src/gremlinscript.js index <HASH>..<HASH> 100644 --- a/src/gremlinscript.js +++ b/src/gremlinscript.js @@ -70,17 +70,17 @@ module.exports = (function() { * @public * @param {String} line */ - GremlinScript.prototype.line = function(line, identifier) { + GremlinScript.pr...
Rename line to statement in GremlinScript.line()
jbmusso_grex
train
js
a179eeacc2d2c311f7bbfc7b54e186ac1b851cff
diff --git a/tests/Basic/StatusCodeTest.php b/tests/Basic/StatusCodeTest.php index <HASH>..<HASH> 100644 --- a/tests/Basic/StatusCodeTest.php +++ b/tests/Basic/StatusCodeTest.php @@ -17,6 +17,6 @@ class StatusCodeTest extends TestCase $this->assertEquals($this->pathTo('/404.php'), $this->getSession()->getCur...
Be less strict on the assertion for the <I> page The PhantomJS driver does not play well with non-HTML content. And being a browser abstraction, we cannot really complain there. The <I>.php page does not send HTML content but plaintext. But asserting that it contains the text is enough for the tested feature.
minkphp_driver-testsuite
train
php
b6b978053833db09a23448c5c57330dec7fe9398
diff --git a/lib/cronofy/client.rb b/lib/cronofy/client.rb index <HASH>..<HASH> 100644 --- a/lib/cronofy/client.rb +++ b/lib/cronofy/client.rb @@ -119,7 +119,9 @@ module Cronofy # start: Time.utc(2014, 8, 5, 15, 30), # end: Time.utc(2014, 8, 5, 17, 30), # location: { - # descriptio...
Update upsert event example with geo location
cronofy_cronofy-ruby
train
rb
2405d1f80bbdf9534f62ac97ff09112ce0c0e6bf
diff --git a/test/creation_api_spec.js b/test/creation_api_spec.js index <HASH>..<HASH> 100644 --- a/test/creation_api_spec.js +++ b/test/creation_api_spec.js @@ -1,6 +1,8 @@ var levelgraph = require('../lib/levelgraph') - , level = require('level-test')(); + , level = require('level-test')(), + os = require('os'...
Make the creation_api_spec test work on Windows, by using system tempdir instead of /tmp/.
levelgraph_levelgraph
train
js
74cc8c7317a4739392887f46d6737f448f078103
diff --git a/include/app_class.php b/include/app_class.php index <HASH>..<HASH> 100644 --- a/include/app_class.php +++ b/include/app_class.php @@ -164,7 +164,9 @@ class App { print Profiler::Display(); } Profiler::StopTimer("WebApp::TimeToDisplay"); + Profiler::StartTimer("WebApp::Display(...
- Output timing for app class
jbaicoianu_elation
train
php
e6d8635e835e762bb976bd279d0de1730d6c2be0
diff --git a/examples/osc2csv.py b/examples/osc2csv.py index <HASH>..<HASH> 100644 --- a/examples/osc2csv.py +++ b/examples/osc2csv.py @@ -56,7 +56,7 @@ cut_new_file('ways') cut_new_file('relations') sys.stdout.write('%8d changesets, %10d nodes, %10d ways, %10d relations' % (counter.changesets, counter.nodes, count...
Switch to using day diffs for catchup.
iandees_pyosm
train
py
a3f43de82621c8ea559b2134028a7befb314830a
diff --git a/src/main/java/com/likethecolor/alchemy/api/Client.java b/src/main/java/com/likethecolor/alchemy/api/Client.java index <HASH>..<HASH> 100644 --- a/src/main/java/com/likethecolor/alchemy/api/Client.java +++ b/src/main/java/com/likethecolor/alchemy/api/Client.java @@ -38,7 +38,7 @@ public class Client { ...
issue 5: open setAPIKey to public
likethecolor_Alchemy-API
train
java
7ab228f05ef99f73b91f7e84cfa36ca1ec6f2fe1
diff --git a/test/LockFile_spec.rb b/test/LockFile_spec.rb index <HASH>..<HASH> 100644 --- a/test/LockFile_spec.rb +++ b/test/LockFile_spec.rb @@ -30,6 +30,8 @@ require 'perobs/LockFile' describe PEROBS::LockFile do before(:each) do + PEROBS.log.open($stderr) + PEROBS.log.level = Logger::INFO @dir = Fi...
Fix: Fix Log test suite so that it sets the log level on its own
scrapper_perobs
train
rb
4b5c65e1e2e2c1ba42cdad954a480a1b8cd73bca
diff --git a/tests/Embera/Provider/HiHaHoTest.php b/tests/Embera/Provider/HiHaHoTest.php index <HASH>..<HASH> 100644 --- a/tests/Embera/Provider/HiHaHoTest.php +++ b/tests/Embera/Provider/HiHaHoTest.php @@ -21,7 +21,7 @@ final class HiHaHoTest extends ProviderTester { protected $tasks = [ 'valid_urls' =>...
Updated tests on HiHaHo
mpratt_Embera
train
php
53bda954dbf3e061e0a9e1803660c6a04805473d
diff --git a/src/Parser.js b/src/Parser.js index <HASH>..<HASH> 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -87,8 +87,9 @@ export function parsePage(url: string, parseCallback: parseCallbackType, filter: .then(body => ( body.includes('502: Bad gateway') || body.includes('403 F...
added check for Cloudflare DNS error (#<I>) * added check for DNS error * update rejection message
t3chnoboy_thepiratebay
train
js
1f0a3f0e5a7601679611302b0d339695190a3400
diff --git a/import_export/widgets.py b/import_export/widgets.py index <HASH>..<HASH> 100644 --- a/import_export/widgets.py +++ b/import_export/widgets.py @@ -288,6 +288,9 @@ class ForeignKeyWidget(Widget): :class:`~import_export.widgets.ForeignKeyWidget` to lookup related objects using ``Author.name`` instea...
Edit docblock for ForeignKeyWidget Adds import statements to the example in the ForeignKeyWidget docblock.
django-import-export_django-import-export
train
py
4a35080694bbd39bd1975811c74292863197c863
diff --git a/dev/com.ibm.ws.jaxrs.2.0_fat/fat/src/com/ibm/ws/jaxrs20/fat/security/ssl/SecuritySSLTest.java b/dev/com.ibm.ws.jaxrs.2.0_fat/fat/src/com/ibm/ws/jaxrs20/fat/security/ssl/SecuritySSLTest.java index <HASH>..<HASH> 100644 --- a/dev/com.ibm.ws.jaxrs.2.0_fat/fat/src/com/ibm/ws/jaxrs20/fat/security/ssl/SecuritySS...
Wait for CWWKF<I>I before starting test
OpenLiberty_open-liberty
train
java
409b59bd0c2b6f2726c39b453d9b6e5d18e65dc9
diff --git a/app/reducers/pins.js b/app/reducers/pins.js index <HASH>..<HASH> 100644 --- a/app/reducers/pins.js +++ b/app/reducers/pins.js @@ -12,7 +12,6 @@ export const getLastId = (state) => { // -1 is important because if nodes store doesn't contain nodes then we should return 0 as newId return R.reduce(R.max,...
refactor(pinsReducer): remove unnecessary method and variable
xodio_xod
train
js
ec434bd8e50f906c96258551b346ad38cc5eeaa5
diff --git a/src/main/java/com/stratio/qa/specs/GosecSpec.java b/src/main/java/com/stratio/qa/specs/GosecSpec.java index <HASH>..<HASH> 100644 --- a/src/main/java/com/stratio/qa/specs/GosecSpec.java +++ b/src/main/java/com/stratio/qa/specs/GosecSpec.java @@ -1797,7 +1797,9 @@ public class GosecSpec extends BaseGSpec { ...
[CROSSDATA-<I>] Fix createAsset when getKeys response is big (#<I>)
Stratio_bdt
train
java
54bccabb959090230dbb37f632e3ba9f0878aa9d
diff --git a/fastlane/lib/fastlane/actions/hockey.rb b/fastlane/lib/fastlane/actions/hockey.rb index <HASH>..<HASH> 100644 --- a/fastlane/lib/fastlane/actions/hockey.rb +++ b/fastlane/lib/fastlane/actions/hockey.rb @@ -182,7 +182,7 @@ module Fastlane optional: true), Fa...
Update hockey.rb (#<I>)
fastlane_fastlane
train
rb
08f94d1fd14f58a673e6cda97c51239ce311902b
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,12 @@ import sys import os +import mock + +MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot', 'scipy.interpolate'] +for mod_name in MOCK_MODULES: + sys.modules[mod_name] = mo...
Trying to build Sphinx for ReadTheDocs. Mocking numpy et., al.
rlabbe_filterpy
train
py
406bea4d333cf5747bcb72587990d0f4c4a15c4b
diff --git a/src/SQLRequest/SQLRequest.php b/src/SQLRequest/SQLRequest.php index <HASH>..<HASH> 100644 --- a/src/SQLRequest/SQLRequest.php +++ b/src/SQLRequest/SQLRequest.php @@ -56,6 +56,15 @@ abstract class SQLRequest { } /** + * Get object as string + * + * @return string + */ + public function __toStrin...
SQlRequest toString
Sowapps_orpheus-sqladapter
train
php
072c2132f195b4fafd12133020b578befbc40ec9
diff --git a/luigi/rpc.py b/luigi/rpc.py index <HASH>..<HASH> 100644 --- a/luigi/rpc.py +++ b/luigi/rpc.py @@ -96,7 +96,7 @@ class RemoteScheduler(Scheduler): 'You need to install requests-unixsocket for Unix socket support.', ) - self._url = url + self._url = url.rstrip('/') ...
Fix error when connecting to the central luigi scheduler
spotify_luigi
train
py
8302284ad73d7f815fd813e032a262320a3d4850
diff --git a/ariba/clusters.py b/ariba/clusters.py index <HASH>..<HASH> 100644 --- a/ariba/clusters.py +++ b/ariba/clusters.py @@ -273,7 +273,8 @@ class Clusters: continue for seq_name in sorted(self.cluster_ids[seq_type]): - assert seq_name in self.cluster_to_dir + ...
Skip seqs that did not make cluster
sanger-pathogens_ariba
train
py
5ac4eff09b8514a5b46bdff464605a60051abc83
diff --git a/src/_pytest/main.py b/src/_pytest/main.py index <HASH>..<HASH> 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -542,7 +542,15 @@ class Session(nodes.FSCollector): col = root._collectfile(argpath) if col: self._node_cache[argpath] = col - ...
Fix __init__.py as argument also including other package files
pytest-dev_pytest
train
py
02a4f4c03e616cc480853db1f77e45ad8e3abf84
diff --git a/index.js b/index.js index <HASH>..<HASH> 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,22 @@ var src = require('src-stream'); module.exports = function(options) { return function fn(app) { - if (this.isRegistered('assemble-streams')) return; + if (!isValidInstance(this)) { + return fn;...
add `toStream` to views and items always return the plugin fn to fall through to views validate instance to ensure only apps, collections, and views get a toStream function
assemble_assemble-streams
train
js
5308f15ef7a74aee571bb9c904c81e8a63a88c41
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 @@ -135,10 +135,17 @@ RSpec.configure do |config| client.database.users.create(MONGOID_ROOT_USER) rescue Exception => e end + Mongoid.purge! end # Drop all c...
Don't drop all collections after each test, just delete all
mongodb_mongoid
train
rb
762925b9ab535a22d45f050a7973fa0d7c718e6f
diff --git a/kerncraft/kernel.py b/kerncraft/kernel.py index <HASH>..<HASH> 100755 --- a/kerncraft/kernel.py +++ b/kerncraft/kernel.py @@ -1421,8 +1421,10 @@ class KernelCode(Kernel): if not executable: compiler_args.append('-c') - cmd = [compiler] + [in_filename, 'dummy.s'] + compiler_ar...
switched dummy.s refereence to absolute
RRZE-HPC_kerncraft
train
py
b3184880a5f25d4e188bb5fd85050d109ddd8066
diff --git a/test/test_scp.rb b/test/test_scp.rb index <HASH>..<HASH> 100755 --- a/test/test_scp.rb +++ b/test/test_scp.rb @@ -44,6 +44,7 @@ class AllHandler < Oj::ScHandler def hash_key(key) @calls << [:hash_key, key] return 'too' if 'two' == key + return :symbol if 'symbol' == key key end @@...
add failing test case for hash_key returning a Symbol - results in "can't modify frozen Symbol"
ohler55_oj
train
rb
cedf6793505d8fe9f7ea434ee71b39d80e6a6269
diff --git a/java/client/test/org/openqa/selenium/build/DevMode.java b/java/client/test/org/openqa/selenium/build/DevMode.java index <HASH>..<HASH> 100644 --- a/java/client/test/org/openqa/selenium/build/DevMode.java +++ b/java/client/test/org/openqa/selenium/build/DevMode.java @@ -26,7 +26,17 @@ public class DevMode {...
[java] Fixing devmode detection in IDEA
SeleniumHQ_selenium
train
java