diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/telemetry/telemetry/core/browser_finder.py b/telemetry/telemetry/core/browser_finder.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/browser_finder.py
+++ b/telemetry/telemetry/core/browser_finder.py
@@ -78,13 +78,13 @@ def FindBrowser(options):
logging.warning('--browser omitted. Us... | [Telemetry] Always update device apk. This allows the bisect bot to rely on Telemetry to do apk installation of the most recently built local ChromeShell. BUG=<I> Review URL: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
include_package_data = True,
install_requires = ['httplib2', 'simplejson'],
license='LICENSE.txt',
- url = 'https://github.com/maxeventbrite/zendesk/tree/master',
+ url = 'https://github.com/eventbr... | correcting for matching public github repo | py |
diff --git a/src/feat/test/integration/test_agencies_standalone_agency.py b/src/feat/test/integration/test_agencies_standalone_agency.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/integration/test_agencies_standalone_agency.py
+++ b/src/feat/test/integration/test_agencies_standalone_agency.py
@@ -152,15 +152,7 @@ ... | Use wait_for_state to avoid races | py |
diff --git a/demo/TestSuites/PlayBack/Selection/TestScript.py b/demo/TestSuites/PlayBack/Selection/TestScript.py
index <HASH>..<HASH> 100644
--- a/demo/TestSuites/PlayBack/Selection/TestScript.py
+++ b/demo/TestSuites/PlayBack/Selection/TestScript.py
@@ -22,7 +22,7 @@ def step1():
@expected Description of the exp... | #<I> Fix a regression introduced - wrong tab selection | py |
diff --git a/tests/test_facets.py b/tests/test_facets.py
index <HASH>..<HASH> 100644
--- a/tests/test_facets.py
+++ b/tests/test_facets.py
@@ -119,9 +119,9 @@ class FacetSearchTestCase(ESTestCase):
self.assertEquals(resultset.total, 3)
self.assertEquals(resultset.facets.date_facet.entries, [{u'count':... | Fixed facet test to use UTC timestamp | py |
diff --git a/mistletoe/span_token.py b/mistletoe/span_token.py
index <HASH>..<HASH> 100644
--- a/mistletoe/span_token.py
+++ b/mistletoe/span_token.py
@@ -24,7 +24,7 @@ def tokenize_inner(content):
See also: span_tokenizer.tokenize, block_token.tokenize.
"""
- yield from tokenizer.tokenize(content, _toke... | 🐎 removed yield from in tokenize_inner | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -1335,6 +1335,7 @@ class CoincInspiral(object):
def get_ifos(self):
return instrument_set_from_ifos(self.ifos)
+
CoincInspiralTable.RowType = CoincInspira... | Put whitespace back in lsctables.py (accidently deleted). | py |
diff --git a/pachyderm/plot.py b/pachyderm/plot.py
index <HASH>..<HASH> 100644
--- a/pachyderm/plot.py
+++ b/pachyderm/plot.py
@@ -9,6 +9,7 @@ import logging
from typing import Optional, Union
import matplotlib
+import matplotlib.axes
import matplotlib.colors
import numpy as np | Fix import issues I have no idea why mypy doesn't catch this. I'm guessing because it shows up as Any | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ requires = [
setup(
name='amaascore',
- version='0.4.0',
+ version='0.4.1',
description='Asset Management as a Service - Core SDK',
license='Apache License 2.0',
url='https://github.... | AMAAS-<I> increase sdk version | py |
diff --git a/ipyrad/__init__.py b/ipyrad/__init__.py
index <HASH>..<HASH> 100644
--- a/ipyrad/__init__.py
+++ b/ipyrad/__init__.py
@@ -165,7 +165,11 @@ def _getbins():
_platform = _sys.platform
## get current location
- path = _os.path.abspath(_os.path.dirname(__file__))
+ if 'VIRTUAL_ENV' in _os.envi... | Add support for finding bins in a virtualenv environment installed with pip | py |
diff --git a/persephone/model.py b/persephone/model.py
index <HASH>..<HASH> 100644
--- a/persephone/model.py
+++ b/persephone/model.py
@@ -177,10 +177,7 @@ class Model:
"""
def __init__(self, exp_dir: Union[Path, str], corpus_reader: CorpusReader) -> None:
- if isinstance(exp_dir, Path):
- ... | Hack around mypy isinstance check for type generating error | py |
diff --git a/vaex/dataset.py b/vaex/dataset.py
index <HASH>..<HASH> 100644
--- a/vaex/dataset.py
+++ b/vaex/dataset.py
@@ -1444,7 +1444,7 @@ class Dataset(object):
@docsubst
@stat_1d
- def median_approx(self, expression, percentage=50., binby=[], limits=None, shape=default_shape, percentile_shape=1024*16, percent... | change: median_approx uses less memory by default | py |
diff --git a/fluent_contents/plugins/sharedcontent/templatetags/sharedcontent_tags.py b/fluent_contents/plugins/sharedcontent/templatetags/sharedcontent_tags.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/plugins/sharedcontent/templatetags/sharedcontent_tags.py
+++ b/fluent_contents/plugins/sharedcontent/template... | Fix sharedcontent tag in multisite environments | py |
diff --git a/respite/serializers/base.py b/respite/serializers/base.py
index <HASH>..<HASH> 100644
--- a/respite/serializers/base.py
+++ b/respite/serializers/base.py
@@ -20,7 +20,7 @@ class Serializer(object):
"""
def serialize(anything):
-
+
def serialize_dictionary(dictio... | Add serializer for image_field_files | py |
diff --git a/can/interfaces/usb2can.py b/can/interfaces/usb2can.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/usb2can.py
+++ b/can/interfaces/usb2can.py
@@ -12,6 +12,10 @@ handle = c_long
timeout = c_ulong
filter = c_ulong
+#flags mappings
+IS_ERROR_FRAME = 4
+IS_REMOTE_FRAME = 2
+IS_ID_TYPE = 1 | Added mappings for the flags | py |
diff --git a/tests/integration/states/file.py b/tests/integration/states/file.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/file.py
+++ b/tests/integration/states/file.py
@@ -103,3 +103,16 @@ class FileTest(integration.ModuleCase):
result = ret[ret.keys()[0]]['result']
self.assertTrue(... | Add test interface test for file.managed | py |
diff --git a/pyatv/__main__.py b/pyatv/__main__.py
index <HASH>..<HASH> 100644
--- a/pyatv/__main__.py
+++ b/pyatv/__main__.py
@@ -160,7 +160,7 @@ class GlobalCommands:
if pairing.has_paired:
print('Pairing seems to have succeeded, yey!')
print('You may now use these credentials: {0}'... | fixed credentials reference to .service.credentials | py |
diff --git a/kuyruk/worker.py b/kuyruk/worker.py
index <HASH>..<HASH> 100644
--- a/kuyruk/worker.py
+++ b/kuyruk/worker.py
@@ -379,7 +379,7 @@ class Worker:
lost during the execution of the task.
"""
- logger.warning("Catched SIGHUP")
+ logger.debug("Catched SIGHUP")
exc_info ... | sighup message is debug level | py |
diff --git a/djedi/admin/api.py b/djedi/admin/api.py
index <HASH>..<HASH> 100644
--- a/djedi/admin/api.py
+++ b/djedi/admin/api.py
@@ -195,7 +195,7 @@ class NodeEditor(JSONResponseMixin, DjediContextMixin, APIView):
def post(self, request, uri):
uri = self.decode_uri(uri)
data, meta = self.get_po... | Remove usages of user.username and try to use user.get_username if available. | py |
diff --git a/ethpm/package.py b/ethpm/package.py
index <HASH>..<HASH> 100644
--- a/ethpm/package.py
+++ b/ethpm/package.py
@@ -222,7 +222,7 @@ class Package(object):
)
for deployment_data in deployments.values()
}
- validate_deployments_tx_receipt(deployments, self.w3)
+ ... | Set all_missing_data to default to True in Package.deployments: validate_deployments_tx_receipt | py |
diff --git a/rtv/content.py b/rtv/content.py
index <HASH>..<HASH> 100644
--- a/rtv/content.py
+++ b/rtv/content.py
@@ -338,7 +338,6 @@ class SubredditContent(BaseContent):
"""
Grab the `i`th submission, with the title field formatted to fit inside
of a window of width `n`
-
"""
... | /top and /new functionality added | py |
diff --git a/bakery/tasks.py b/bakery/tasks.py
index <HASH>..<HASH> 100644
--- a/bakery/tasks.py
+++ b/bakery/tasks.py
@@ -208,11 +208,12 @@ def process_project(login, project_id, conn, log):
# login — user login
# project_id - database project_id
# conn - redis connection
+ state = project_state_get(... | Put state variable back into process_project() 8) | py |
diff --git a/androguard/gui/TextDecorators.py b/androguard/gui/TextDecorators.py
index <HASH>..<HASH> 100644
--- a/androguard/gui/TextDecorators.py
+++ b/androguard/gui/TextDecorators.py
@@ -175,7 +175,7 @@ class HighlightASCII(PageDecorator):
off = self.dataModel.getOffset()
- Match = [(m.start(), ... | fix regex to work on binary data | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -5,6 +5,7 @@ import logging
import os
import sys
+import celery
import psutil
import pytest
import wrapt
@@ -16,6 +17,11 @@ from scout_apm.core.config import SCOUT_PYTHON_VALUES, scou... | Update pytest setup for Celery 5 (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
install_requires=[
'boto >= 2.32',
- 'httpretty==0.8.6',
+ 'httpretty>=0.8.8',
'bz2file',
'requests',
], | Upgraded httpretty version; fixing #<I> | py |
diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py
index <HASH>..<HASH> 100644
--- a/tests/test_route53/test_route53.py
+++ b/tests/test_route53/test_route53.py
@@ -58,6 +58,16 @@ def test_rrset():
changes = ResourceRecordSets(conn, zoneid)
changes.add_change("DELETE", "foo... | Updated test_route<I>.test_rrset() for batch update * This should provide a test for [spulec/moto#<I>]. * Prior to deleting the existing A record, it sends a batch update that includes DELETE and a CREATE, which is what boto performs when updating a ResourceRecord. | py |
diff --git a/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py b/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
index <HASH>..<HASH> 100644
--- a/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
+... | Adding default scope if missing to make MSAL happy | py |
diff --git a/iota/commands/extended/replay_bundle.py b/iota/commands/extended/replay_bundle.py
index <HASH>..<HASH> 100644
--- a/iota/commands/extended/replay_bundle.py
+++ b/iota/commands/extended/replay_bundle.py
@@ -47,7 +47,7 @@ class ReplayBundleCommand(FilterCommand):
minWeightMagnitude = min_weight_magni... | Fixes replayed bundle being reversed | py |
diff --git a/scripts/daemon.py b/scripts/daemon.py
index <HASH>..<HASH> 100755
--- a/scripts/daemon.py
+++ b/scripts/daemon.py
@@ -37,6 +37,7 @@ class OpenFlowHandler(BaseRequestHandler):
#TODO: Create method to handle header + raw_message
if header.ofp_type == OFPType.OFPT_HELLO:
... | Fixed a minor error in OFP Type IF statement. | py |
diff --git a/loam/manager.py b/loam/manager.py
index <HASH>..<HASH> 100644
--- a/loam/manager.py
+++ b/loam/manager.py
@@ -63,7 +63,7 @@ class Section:
"""
def __init__(self, **options: ConfOpt):
- self._def = {}
+ super().__setattr__("_def", {})
for opt_name, opt_meta in options.item... | Protect Section against illicit setattr | py |
diff --git a/test/test_relative_date.py b/test/test_relative_date.py
index <HASH>..<HASH> 100644
--- a/test/test_relative_date.py
+++ b/test/test_relative_date.py
@@ -29,6 +29,7 @@ class RelativeDateTester(TopydoTest):
self.today = date(2015, 11, 6)
self.tomorrow = date(2015, 11, 7)
self.mond... | Add test to check weekday pattern for today's weekday. This corresponds to the change made in commit <I>. | py |
diff --git a/WrightTools/_dataset.py b/WrightTools/_dataset.py
index <HASH>..<HASH> 100644
--- a/WrightTools/_dataset.py
+++ b/WrightTools/_dataset.py
@@ -117,9 +117,12 @@ class Dataset(h5py.Dataset):
@property
def _leaf(self):
out = self.natural_name
+ if self.size == 1:
+ out += f... | print_tree with values for scalars (#<I>) | py |
diff --git a/tests/main_test.py b/tests/main_test.py
index <HASH>..<HASH> 100644
--- a/tests/main_test.py
+++ b/tests/main_test.py
@@ -179,7 +179,7 @@ def run(args=[], agnostic_target=None, use_run_arg=False):
run_src()
if use_run_arg:
- comp_extras(["--run"] + agnostic_args + (["--jo... | Removes a potentially unnecessary test option | py |
diff --git a/lenstronomy/LightModel/light_model_base.py b/lenstronomy/LightModel/light_model_base.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/LightModel/light_model_base.py
+++ b/lenstronomy/LightModel/light_model_base.py
@@ -91,6 +91,9 @@ class LightModelBase(object):
elif profile_type == 'STARLETS':... | Add support of Starlets second generation as light profile | py |
diff --git a/hedgehog/client/client_registry.py b/hedgehog/client/client_registry.py
index <HASH>..<HASH> 100644
--- a/hedgehog/client/client_registry.py
+++ b/hedgehog/client/client_registry.py
@@ -32,6 +32,13 @@ class _EventHandler(object):
self.backend = backend
self.handler = handler
+ def __... | make _EventHandler a context manager | py |
diff --git a/salt/runners/survey.py b/salt/runners/survey.py
index <HASH>..<HASH> 100644
--- a/salt/runners/survey.py
+++ b/salt/runners/survey.py
@@ -152,7 +152,7 @@ def _get_pool_results(*args, **kwargs):
expr_form = kwargs.get('expr_form', 'compound')
if expr_form not in ['compound', 'pcre']:
- ex... | regular expressions in specifiing targets for salt-run survey.diff, hash | py |
diff --git a/src/collectors/filestat/filestat.py b/src/collectors/filestat/filestat.py
index <HASH>..<HASH> 100644
--- a/src/collectors/filestat/filestat.py
+++ b/src/collectors/filestat/filestat.py
@@ -235,7 +235,7 @@ class FilestatCollector(diamond.collector.Collector):
data = self.process_lsof(self.get_... | filestat : reduce log at info level | py |
diff --git a/abilian/web/views/object.py b/abilian/web/views/object.py
index <HASH>..<HASH> 100644
--- a/abilian/web/views/object.py
+++ b/abilian/web/views/object.py
@@ -464,6 +464,7 @@ class ObjectDelete(ObjectEdit):
"""
Delete object. Supports DELETE verb.
"""
+ methods = ['POST']
activity_verb = 'delet... | ObjectDelete: ensure only POST is allowed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,8 @@ setup(
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
+ 'Framework :: Django :: 1.10',
+ 'Framework :: Django :: 1.11',
'Inte... | Update classifiers in setup.py with Django <I> and <I> | py |
diff --git a/registration/backends/hmac/views.py b/registration/backends/hmac/views.py
index <HASH>..<HASH> 100644
--- a/registration/backends/hmac/views.py
+++ b/registration/backends/hmac/views.py
@@ -148,12 +148,11 @@ class ActivationView(BaseActivationView):
"""
User = get_user_model()
- ... | Don't need to put that in a variable when it's only used once. | py |
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/screen.py
+++ b/ELiDE/ELiDE/screen.py
@@ -156,16 +156,16 @@ class TimePanel(BoxLayout):
self.screen.charmenu._switch_to_menu()
@mainthread
- def _upd_branch_hint(self, *args):
- self.ids.br... | Fix some tests I really don't think this is going to come up in prod | py |
diff --git a/gandi/cli/core/utils/__init__.py b/gandi/cli/core/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/core/utils/__init__.py
+++ b/gandi/cli/core/utils/__init__.py
@@ -5,6 +5,7 @@ Also custom exceptions and method to generate a random string.
import time
+import click
class MissingConfigu... | Exit cleanly if domain is not available | py |
diff --git a/airtest/utils/version.py b/airtest/utils/version.py
index <HASH>..<HASH> 100644
--- a/airtest/utils/version.py
+++ b/airtest/utils/version.py
@@ -1,4 +1,4 @@
-__version__ = "1.1.11"
+__version__ = "1.2.0"
import os
import sys | level up to <I> (cherry picked from commit 0dd<I>ae<I>e<I>f<I>a<I>c<I>ab<I>c<I>ed) | py |
diff --git a/coaster/utils/classes.py b/coaster/utils/classes.py
index <HASH>..<HASH> 100644
--- a/coaster/utils/classes.py
+++ b/coaster/utils/classes.py
@@ -223,6 +223,9 @@ class LabeledEnum(six.with_metaclass(_LabeledEnumMeta)):
return list((name, title) for name, title in cls.values())
+_marker = [] #... | Bugfix: support empty InspectableSet instances. | py |
diff --git a/odl/set/space.py b/odl/set/space.py
index <HASH>..<HASH> 100644
--- a/odl/set/space.py
+++ b/odl/set/space.py
@@ -803,6 +803,16 @@ class LinearSpaceElement(object):
"""Return ``+self``."""
return self.copy()
+ def __cmp__(self, other):
+ """Comparsion not implemented.
+
+ ... | MAINT: Disable hashing and comparsion where it shouldnt be possible, see #<I> | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -26,7 +26,7 @@ class Gitlab(object):
self.host = host[:-1]
else:
self.host = host
- if self.host[7:] != 'http://':
+ if self.host[:7] != ... | fixed the hostname, i was slicing the incorrect part! | py |
diff --git a/oauthlib/oauth1/rfc5849/signature.py b/oauthlib/oauth1/rfc5849/signature.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/signature.py
+++ b/oauthlib/oauth1/rfc5849/signature.py
@@ -82,6 +82,8 @@ def collect_parameters(uri_query='', body=[], headers=None,
Body parameters must be supplied a... | Document that collect_parameters expects headers as a dict | py |
diff --git a/pycbc/filter/matchedfilter.py b/pycbc/filter/matchedfilter.py
index <HASH>..<HASH> 100644
--- a/pycbc/filter/matchedfilter.py
+++ b/pycbc/filter/matchedfilter.py
@@ -121,8 +121,8 @@ def matchedfilter(template,data,psd=None,low_frequency_cutoff=None,
N = (len(stilde)-1) * 2
kmin,kmax = get_cu... | fixed bug in matchedfilter temporary memory | py |
diff --git a/tests/commands/autoupdate_test.py b/tests/commands/autoupdate_test.py
index <HASH>..<HASH> 100644
--- a/tests/commands/autoupdate_test.py
+++ b/tests/commands/autoupdate_test.py
@@ -114,10 +114,8 @@ def test_autoupdate_out_of_date_repo(
)
write_config('.', config)
- runner = Runner('.', C.CO... | Keep original test as is, for real | py |
diff --git a/mythril/support/signatures.py b/mythril/support/signatures.py
index <HASH>..<HASH> 100644
--- a/mythril/support/signatures.py
+++ b/mythril/support/signatures.py
@@ -10,7 +10,7 @@ def add_signatures_from_file(file, sigs={}):
code = f.read()
- funcs = re.findall(r'function[\s]+(.*?\))', code... | Change regex to the following: function + minimum 1 whitespace + minimum 1 word letter + ( + * characters that are not ) + ) | py |
diff --git a/mtcnn/__init__.py b/mtcnn/__init__.py
index <HASH>..<HASH> 100644
--- a/mtcnn/__init__.py
+++ b/mtcnn/__init__.py
@@ -24,4 +24,4 @@
#SOFTWARE.
__author__ = "Iván de Paz Centeno"
-__version__= "0.0.5"
\ No newline at end of file
+__version__= "0.0.6" | Changed to version <I> | py |
diff --git a/src/rez/utils/colorize.py b/src/rez/utils/colorize.py
index <HASH>..<HASH> 100644
--- a/src/rez/utils/colorize.py
+++ b/src/rez/utils/colorize.py
@@ -298,6 +298,7 @@ class Printer(object):
def __call__(self, msg='', style=None):
print >> self.buf, self.get(msg, style)
+ self.buf.flus... | Call the flush method every time a Printer instance is called (so everytime it prints) | py |
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -170,9 +170,9 @@ class TestEasyInstallTest:
sdist_zip.close()
return str(sdist)
+ @pyte... | Change order of xfail, giving the unfiltered one precedence. | py |
diff --git a/blockstore/lib/config.py b/blockstore/lib/config.py
index <HASH>..<HASH> 100644
--- a/blockstore/lib/config.py
+++ b/blockstore/lib/config.py
@@ -84,9 +84,9 @@ DEFAULT_BITCOIND_PASSWD = 'opennamesystem'
""" block indexing configs
"""
-REINDEX_FREQUENCY = 30 # seconds
+REINDEX_FREQUENCY = 60 # seconds
... | Bump reindex frequency and start block | py |
diff --git a/ibis/backends/tests/test_temporal.py b/ibis/backends/tests/test_temporal.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/tests/test_temporal.py
+++ b/ibis/backends/tests/test_temporal.py
@@ -1,3 +1,4 @@
+import datetime
import operator
import warnings
from operator import methodcaller
@@ -776,3 +777,... | test(backends): add failing test for big timestamps | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -1810,6 +1810,10 @@ class StaticFileHandler(RequestHandler):
size = self.get_content_size()
if start < 0:
start += size
+ # Note: only return HTTP 2... | Note about conditional return of HTTP <I> | py |
diff --git a/tests/test_hx.py b/tests/test_hx.py
index <HASH>..<HASH> 100644
--- a/tests/test_hx.py
+++ b/tests/test_hx.py
@@ -918,7 +918,9 @@ def test_NTU_from_P_basic():
# We have to compare the re calculated P1 values, because for many values of NTU1,
# at the initial far guess of 10000 P1 = 1 and ... | Fix a test tolerance for Python <I> and <I> tests to pass | py |
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/test/test_ssl.py
+++ b/OpenSSL/test/test_ssl.py
@@ -1158,6 +1158,12 @@ class ServerNameCallbackTests(TestCase, _LoopbackMixin):
del callback
context.set_tlsext_servername_callback(replacement)
... | Add a second `collect()` call which hopefully will make the test pass on PyPy. | py |
diff --git a/hvac/tests/test_kubernetes_methods.py b/hvac/tests/test_kubernetes_methods.py
index <HASH>..<HASH> 100644
--- a/hvac/tests/test_kubernetes_methods.py
+++ b/hvac/tests/test_kubernetes_methods.py
@@ -252,8 +252,10 @@ class TestKubernetesMethods(TestCase):
'lease_duration': 10000,
... | Fix mock response for Kubernetes auth unit test | py |
diff --git a/tilequeue/command.py b/tilequeue/command.py
index <HASH>..<HASH> 100755
--- a/tilequeue/command.py
+++ b/tilequeue/command.py
@@ -988,7 +988,7 @@ def tilequeue_prune_tiles_of_interest(cfg, peripherals):
cur.execute("""
select x, y, z, tilesize, count(*)
from t... | Use getdate\(\) instead of current_date in RedShift query current_date would return only the date, not the whole datetime. getdate\(\) returns the current datetime. | py |
diff --git a/datatableview/utils.py b/datatableview/utils.py
index <HASH>..<HASH> 100644
--- a/datatableview/utils.py
+++ b/datatableview/utils.py
@@ -15,11 +15,11 @@ MINIMUM_PAGE_LENGTH = 5
DEFAULT_OPTIONS = {
'columns': [], # table headers
- 'ordering': [], # override to Model._meta.ordering
+ 'orderi... | Adjust DEFAULT_OPTIONS to reflect normalization algorithm | py |
diff --git a/tests/test_examples.py b/tests/test_examples.py
index <HASH>..<HASH> 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -277,6 +277,17 @@ class TestExamples(unittest.TestCase):
else:
self.fail("Failed while running example number %d" % i)
+ def test_large... | Test added to check large db crash | py |
diff --git a/tests/test_snippets.py b/tests/test_snippets.py
index <HASH>..<HASH> 100644
--- a/tests/test_snippets.py
+++ b/tests/test_snippets.py
@@ -762,6 +762,20 @@ def test_escaped_string():
assert(output(s, schema_name="layer") == exp)
+@pytest.mark.xfail
+def test_filename():
+
+ s = """
+ WEB
+ ... | Failing filename with number, see #<I> | py |
diff --git a/karaage/applications/views/admin.py b/karaage/applications/views/admin.py
index <HASH>..<HASH> 100644
--- a/karaage/applications/views/admin.py
+++ b/karaage/applications/views/admin.py
@@ -82,7 +82,7 @@ def send_invitation(request):
@login_required
def application_list(request):
- apps = Applicatio... | Reverse order of applications in admin site | py |
diff --git a/localshop/packages/models.py b/localshop/packages/models.py
index <HASH>..<HASH> 100644
--- a/localshop/packages/models.py
+++ b/localshop/packages/models.py
@@ -115,4 +115,4 @@ class ReleaseFile(models.Model):
url = reverse('packages:download', kwargs={
'pk': self.pk, 'filename': sel... | Fix error after renaming ReleaseFile.digest -> .md5_digest | py |
diff --git a/copy_stream.py b/copy_stream.py
index <HASH>..<HASH> 100755
--- a/copy_stream.py
+++ b/copy_stream.py
@@ -17,9 +17,8 @@ def copy(location, from_stream, to_stream, dry_run=False, verbose=False):
index = json.load(index_file)
from_key = STREAM_KEY_TEMPLATE.format(from_stream)
to_key = STRE... | It is not an error to redfine the devel stanza to use the released product file; juju preserves it. | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -702,8 +702,10 @@ class path(unicode):
:example:
- >>> for chunk in path("file.txt").chunk(8192):
- ... print(chunk)
+ >>> import hashlib
+ >>> hash = hash... | Update doctest in .chunks for correctness and so it actually passes. | py |
diff --git a/lib/search_engine.py b/lib/search_engine.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine.py
+++ b/lib/search_engine.py
@@ -1454,6 +1454,10 @@ def browse_pattern(req, colls, p, f, rg, ln=cdslang):
if not f:
return browse_in_bibwords(req, p, f)
+ ## is p enclosed in quotes? (coming ... | Updated browse_pattern() in order to discard enclosing double quotes should the search pattern have them around. Useful if the search pattern comes from explicit exact phrase search kind of searches. | py |
diff --git a/peri/states.py b/peri/states.py
index <HASH>..<HASH> 100644
--- a/peri/states.py
+++ b/peri/states.py
@@ -83,7 +83,7 @@ class State(ParameterGroup):
return self.params
def _grad_one_param(self, func, p, dl=1e-3, f0=None, rts=True, **kwargs):
- vals = self.get_values(p)
+ vals ... | need np arrays for grads, hess | py |
diff --git a/gpiozero/input_devices.py b/gpiozero/input_devices.py
index <HASH>..<HASH> 100644
--- a/gpiozero/input_devices.py
+++ b/gpiozero/input_devices.py
@@ -149,8 +149,8 @@ class WaitableInputDevice(InputDevice):
This can be set to a function which accepts no (mandatory) parameters,
or a Python ... | Fix speling and grandma mistakes Several in WaitableInputDevice's attribute docstrings. | py |
diff --git a/etrago/appl.py b/etrago/appl.py
index <HASH>..<HASH> 100644
--- a/etrago/appl.py
+++ b/etrago/appl.py
@@ -154,6 +154,7 @@ def etrago(args):
minimize_loading : bool
False,
+ ...
k_mean_clustering : bool
False, | changed RTD see #<I> | py |
diff --git a/m9dicts/tests/api.py b/m9dicts/tests/api.py
index <HASH>..<HASH> 100644
--- a/m9dicts/tests/api.py
+++ b/m9dicts/tests/api.py
@@ -99,9 +99,9 @@ class Test_20_make(unittest.TestCase):
self.assertTrue(isinstance(md2, MD.UpdateWoReplaceDict))
self.assertTrue(isinstance(md3, MD.UpdateWithMerg... | refactor: add index for debug | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,8 @@ import subprocess
# in development set version to none and ...
-PYPI_VERSION = 1.2.0
-
+PYPI_VERSION = "1.2.0
+"
# Return the git revision as a string (from numpy)
def git_version(): | Update setup.py I am an idiot | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -463,7 +463,7 @@ devel_all = (all_dbs + atlas + aws + azure + celery + cgroups + datadog + devel
sendgrid + sentry + singularity + slack + snowflake + ssh + statsd + tableau +
virtualenv + webhdfs ... | Fix grammar in setup.py (#<I>) | py |
diff --git a/bcbio/ngsalign/tophat.py b/bcbio/ngsalign/tophat.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/tophat.py
+++ b/bcbio/ngsalign/tophat.py
@@ -42,7 +42,8 @@ def align(fastq_file, pair_file, ref_file, out_base, align_dir, config):
with file_transaction([os.path.join(out_dir, f) for f in _out_fna... | Avoid symlinking tophat output file if previously exists | py |
diff --git a/mtools/mlaunch/mlaunch.py b/mtools/mlaunch/mlaunch.py
index <HASH>..<HASH> 100755
--- a/mtools/mlaunch/mlaunch.py
+++ b/mtools/mlaunch/mlaunch.py
@@ -288,7 +288,7 @@ class MLaunchTool(BaseCmdLineTool):
t = threading.Thread(target=pingMongoDS, args=(host, 1.0, 30))
t.start()
if se... | mlaunch verbose output prints host:port information for all processes. | py |
diff --git a/patchboard/endpoints.py b/patchboard/endpoints.py
index <HASH>..<HASH> 100644
--- a/patchboard/endpoints.py
+++ b/patchboard/endpoints.py
@@ -34,6 +34,7 @@ class Endpoints(object):
# the endpoint method takes parameters and instantiates a
# resource of the correct class.
... | Restore (more) correct implementation for endpoint | py |
diff --git a/claripy/ast/bv.py b/claripy/ast/bv.py
index <HASH>..<HASH> 100644
--- a/claripy/ast/bv.py
+++ b/claripy/ast/bv.py
@@ -89,8 +89,10 @@ class BV(Bits):
:param size: the number of bytes to extract
:return: A BV of size ``size * 8``
"""
- pos = self.size() // 8 - 1 - index
- ... | fixed and simplified incorrect indexing computations | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -119,7 +119,7 @@ try:
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
pass
-except Exception, e:
+except:
html_theme = 'default'
# Theme options... | Update docs/conf.py for python 3 | py |
diff --git a/salt/runner.py b/salt/runner.py
index <HASH>..<HASH> 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -306,7 +306,7 @@ class Runner(RunnerClient):
is reached.
'''
if timeout is None:
- timeout = self.opts['timeout']
+ timeout = self.opts['timeout'] * 2
... | Use double the default timeout for runners This isn't a great solution but we need to account for cases where a runner might kick off a findjob and we don't know about it. There is almost certainly a better way to do this but this should suffice for now. | py |
diff --git a/troposphere/autoscaling.py b/troposphere/autoscaling.py
index <HASH>..<HASH> 100644
--- a/troposphere/autoscaling.py
+++ b/troposphere/autoscaling.py
@@ -107,7 +107,7 @@ class AutoScalingGroup(AWSObject):
'HealthCheckGracePeriod': (int, False),
'HealthCheckType': (basestring, False),
... | Fixes #<I> Makes InstanceId and LaunchConfigurationName mutually exclusive, and conditionally requires one or the other. <URL> | py |
diff --git a/tests/test_library.py b/tests/test_library.py
index <HASH>..<HASH> 100644
--- a/tests/test_library.py
+++ b/tests/test_library.py
@@ -125,7 +125,6 @@ def test_library_add_edit_delete(plex, movies, photos):
# Create Other Videos library = No external metadata scanning
section_name = "plexapi_test_... | removing testing with `Path` object | py |
diff --git a/tests/test_parser.py b/tests/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -125,6 +125,11 @@ class WordTokenizeTestCase(unittest.TestCase):
text='one two 3 four',
)) == [('one', ), ('two', ), ('four', )]
+ def test_retains_cas... | Add illustrative test case | py |
diff --git a/astrobase/plotbase.py b/astrobase/plotbase.py
index <HASH>..<HASH> 100644
--- a/astrobase/plotbase.py
+++ b/astrobase/plotbase.py
@@ -10,6 +10,7 @@ Contains various useful functions for plotting light curves and associated data.
'''
import os
import os.path
+import gzip
try:
import cPickle as pi... | plotbase.make_checkplot: transparently handle gzipped LSP pickles | py |
diff --git a/plenum/server/request_managers/request_manager.py b/plenum/server/request_managers/request_manager.py
index <HASH>..<HASH> 100644
--- a/plenum/server/request_managers/request_manager.py
+++ b/plenum/server/request_managers/request_manager.py
@@ -37,8 +37,8 @@ class RequestManager(AbstractRequestManager):
... | ST-<I>: Fix for plugins integration | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ entry_points = {
setup(name='filterbank',
version=version,
description='Python utilities for Breakthrough Listen SETI observations',
- install_requires=['astropy', 'numpy'],
+ install_re... | Update setup.py with dependencies | py |
diff --git a/salt/modules/win_servermanager.py b/salt/modules/win_servermanager.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_servermanager.py
+++ b/salt/modules/win_servermanager.py
@@ -74,14 +74,17 @@ def list_installed():
salt '*' win_servermanager.list_installed
'''
ret = {}
- for line... | Fix win_servermanager for services or features with long names that might contain dots | py |
diff --git a/salt/modules/portage_config.py b/salt/modules/portage_config.py
index <HASH>..<HASH> 100644
--- a/salt/modules/portage_config.py
+++ b/salt/modules/portage_config.py
@@ -3,11 +3,10 @@
Configure ``portage(5)``
'''
-from __future__ import absolute_import
-
# Import python libs
import os
import shutil
... | List call not needed. Changing it back to what it was | py |
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/run_info.py
+++ b/bcbio/pipeline/run_info.py
@@ -1073,6 +1073,8 @@ def _add_algorithm_defaults(algorithm, analysis, is_cwl):
"ensemble": None,
"exclude_regions": [],
... | CWL: attempt two to provide default svcaller for seq2c | py |
diff --git a/certsuite/gaiautils.py b/certsuite/gaiautils.py
index <HASH>..<HASH> 100644
--- a/certsuite/gaiautils.py
+++ b/certsuite/gaiautils.py
@@ -7,7 +7,7 @@ import os
__all__ = ["Settings", "LockScreen", "Screen"]
-atoms_dir = os.path.join(__file__, os.path.pardir, "atoms")
+atoms_dir = os.path.abspath(os.pa... | fixup! Bug <I>: Disable screen lock, display sleep, and switch on screen in super harness | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -150,9 +150,13 @@ def cqt(y, sr=22050, hop_length=512, fmin=None, n_bins=84,
basis[i] = util.pad_center(basis[i], n_fft)
basis = np.asarray(basi... | compute CQT only over positive frequencies for efficiency | py |
diff --git a/pykube/objects.py b/pykube/objects.py
index <HASH>..<HASH> 100644
--- a/pykube/objects.py
+++ b/pykube/objects.py
@@ -29,6 +29,10 @@ class APIObject(object):
def name(self):
return self.obj["metadata"]["name"]
+ @property
+ def annotations(self):
+ return self.obj["metadata"].g... | Added APIObject.annotations | py |
diff --git a/internals/states.py b/internals/states.py
index <HASH>..<HASH> 100644
--- a/internals/states.py
+++ b/internals/states.py
@@ -1102,9 +1102,6 @@ class HSMMStatesIntegerNegativeBinomial(_HSMMStatesIntegerNegativeBinomialBase):
self.stateseq = stateseq
self.stateseq_norep, self.durations = u... | removed incorrect assert from HSMMIntNegBin | py |
diff --git a/nfc/llcp/tco.py b/nfc/llcp/tco.py
index <HASH>..<HASH> 100644
--- a/nfc/llcp/tco.py
+++ b/nfc/llcp/tco.py
@@ -126,7 +126,8 @@ class TransmissionControlObject(object):
with self.recv_ready:
try: return self.recv_queue.popleft()
except IndexError: self.recv_ready.wait()
- ... | fix: in LLCP operation 'pop from an empty deque' was raised when closing a TransmissionControlObject while a consumer thread was waiting to receive data | py |
diff --git a/lint.py b/lint.py
index <HASH>..<HASH> 100644
--- a/lint.py
+++ b/lint.py
@@ -780,7 +780,7 @@ them in the generated configuration.'''}),
('generate-man',
{'action' : 'callback', 'callback' : self.cb_generate_manpage,
'group': 'Commands',
- 'help' : "Ge... | [#<I>,#<I>] generate-man option has a new key in its dictionnary : 'hide' : True and will not be print in man or --help | py |
diff --git a/starlette/status.py b/starlette/status.py
index <HASH>..<HASH> 100644
--- a/starlette/status.py
+++ b/starlette/status.py
@@ -4,6 +4,7 @@ See RFC 2616 - https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
And RFC 6585 - https://tools.ietf.org/html/rfc6585
And RFC 4918 - https://tools.ietf.org/html/rf... | Add <I> I'm A Teapot status code (#<I>) | py |
diff --git a/test_projects/django/testproj/settings.py b/test_projects/django/testproj/settings.py
index <HASH>..<HASH> 100644
--- a/test_projects/django/testproj/settings.py
+++ b/test_projects/django/testproj/settings.py
@@ -69,7 +69,6 @@ CELERY_RESULT_BACKEND = 'cache'
from celery import VERSION
if VERSION[0] < 3:... | Removed a commented-out settings line | py |
diff --git a/indra/java_vm.py b/indra/java_vm.py
index <HASH>..<HASH> 100644
--- a/indra/java_vm.py
+++ b/indra/java_vm.py
@@ -2,6 +2,7 @@
to set JVM options while the VM is already running."""
import os
+import warnings
import jnius_config
if '-Xmx4g' not in jnius_config.get_options(): | Fix missing import in java_vm | py |
diff --git a/pympfr.py b/pympfr.py
index <HASH>..<HASH> 100644
--- a/pympfr.py
+++ b/pympfr.py
@@ -60,10 +60,11 @@ def format_finite(digits, dot_pos):
################################################################################
# Locate and load the library
-#mpfr = ctypes.cdll.LoadLibrary(ctypes.util.find_libr... | Better library location, still a hack | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,12 @@ setup(
name='simple-ai',
version='0.1',
description=u'An implementation of AI algorithms based on aima-python',
- long_description=__doc__,
+ long_description=open('README.md').read(),
... | Changed description and included tests on package | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.