diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
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
@@ -2826,7 +2826,7 @@ def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=CFG_SITE_LA
for irec in range(irec_max, irec_min, -1):
... | removed.. it is a list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ classifiers = [
]
setup(name='PyEventEmitter',
- version='1.0.1',
+ version='1.0.2',
description='Simple python events library',
long_description=long_description,
author='Etie... | minor update to fix the Readme on pypi | py |
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -726,8 +726,6 @@ class FormatChecker(BaseTokenChecker):
def process_module(self, module):
self._keywords_with_parens = set()
- if "prin... | Do not add print as a keyword any longer for superfluous-parens. Found in #<I> | py |
diff --git a/mobly/utils.py b/mobly/utils.py
index <HASH>..<HASH> 100644
--- a/mobly/utils.py
+++ b/mobly/utils.py
@@ -107,7 +107,7 @@ def create_alias(target_path, alias_path):
"""
if platform.system() == 'Windows' and not alias_path.endswith('.lnk'):
alias_path += '.lnk'
- if os.path.exists(alia... | Fix cleaning up log aliases which are broken symlinks. (#<I>) os.path.exists() returns False for broken symlinks, so we weren't removing it, causing us to fail later when we tried to recreate it. | py |
diff --git a/dateparser/freshness_date_parser.py b/dateparser/freshness_date_parser.py
index <HASH>..<HASH> 100644
--- a/dateparser/freshness_date_parser.py
+++ b/dateparser/freshness_date_parser.py
@@ -232,12 +232,15 @@ class FreshnessDateDataParser(object):
return date, period
def apply_replacements(s... | Regex updated after Marko's review. | py |
diff --git a/analysis/server/app.py b/analysis/server/app.py
index <HASH>..<HASH> 100644
--- a/analysis/server/app.py
+++ b/analysis/server/app.py
@@ -13,6 +13,8 @@ DEBUG = False
SECRET_KEY = os.environ.get('ANALYSIS_SECRET_KEY') or 'thisIsNotSecret!'
BOOTSTRAP_SERVE_LOCAL = True
SQLALCHEMY_DATABASE_URI = os.environ... | add pool recycle option for mysql connections | py |
diff --git a/jaraco/util/logging.py b/jaraco/util/logging.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/logging.py
+++ b/jaraco/util/logging.py
@@ -1,12 +1,32 @@
from __future__ import absolute_import
+import logging
+import time
+import warnings
+
from jaraco import dateutil
-import logging, time
de... | Added support for ArgumentParser in jaraco.util.logging | py |
diff --git a/hamper/plugins/questions.py b/hamper/plugins/questions.py
index <HASH>..<HASH> 100644
--- a/hamper/plugins/questions.py
+++ b/hamper/plugins/questions.py
@@ -611,7 +611,7 @@ class YesNoPlugin(ChatPlugin):
self.canq(bot, comm)
else:
self... | cut back the interjecting on questions | py |
diff --git a/py3status/argparsers.py b/py3status/argparsers.py
index <HASH>..<HASH> 100644
--- a/py3status/argparsers.py
+++ b/py3status/argparsers.py
@@ -89,7 +89,7 @@ def parse_cli_args():
dest="i3status_config_path",
help="load config",
metavar="FILE",
- type=str,
+ type=Path... | argparsers: make sure FILE and PATH options are Path objects fixes #<I>, | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,6 +38,9 @@ if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wheel upload -r pypi')
sys.exit()
+with open('README.rst', 'r') as readme_file:
+ readme = readme_file.read()
+
setup(
na... | [IMP] Add depends in setup.py | py |
diff --git a/scanpy/preprocessing/_simple.py b/scanpy/preprocessing/_simple.py
index <HASH>..<HASH> 100644
--- a/scanpy/preprocessing/_simple.py
+++ b/scanpy/preprocessing/_simple.py
@@ -821,6 +821,11 @@ def _regress_out_chunk(data):
def scale(data, zero_center=True, max_value=None, copy=False):
"""Scale data to ... | scale does not return nans anymore | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,12 +37,9 @@ setup(
url=about['__url__'],
license=about['__license__'],
long_description=readme,
- include_package_data=True,
install_requires=install_requires,
packages=['pyphi', 'pyphi.compute'... | setup.py: Remove `package_data` argument This is handled by the `MANIFEST.in` file. | py |
diff --git a/master/buildbot/reporters/bitbucket.py b/master/buildbot/reporters/bitbucket.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/reporters/bitbucket.py
+++ b/master/buildbot/reporters/bitbucket.py
@@ -115,6 +115,8 @@ class BitbucketStatusPush(http.HttpStatusPushBase):
if path.endswith('.git'):
... | remove trailing / in the repo url | py |
diff --git a/unicum/server.py b/unicum/server.py
index <HASH>..<HASH> 100644
--- a/unicum/server.py
+++ b/unicum/server.py
@@ -111,6 +111,8 @@ class Session(object):
item = dict(zip(keys, values))
elif isinstance(item, list):
item = [_prepickle(i) for i in item]
+ ... | tuples work in _prepickle in server.py | py |
diff --git a/indra/sources/bel/__init__.py b/indra/sources/bel/__init__.py
index <HASH>..<HASH> 100644
--- a/indra/sources/bel/__init__.py
+++ b/indra/sources/bel/__init__.py
@@ -1,6 +1,6 @@
-from .bel_api import process_ndex_neighborhood
-from .bel_api import process_belrdf
-from .bel_api import process_belscript
-fro... | Refactor: bel_api to api | py |
diff --git a/bin/cache_gc.py b/bin/cache_gc.py
index <HASH>..<HASH> 100755
--- a/bin/cache_gc.py
+++ b/bin/cache_gc.py
@@ -36,6 +36,7 @@ oqpath.set_oq_path()
from openquake import job
from openquake import kvs
+from openquake import logs
from openquake.utils import config | returned to cache_gc import removed by mistake | py |
diff --git a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py
index <HASH>..<HASH> 100644
--- a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py
+++ b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py
@@ -28,10... | pushtotalk: relative import boilerplate This is necesarry to make the script executable with python pushtotalk.py as well as python -m googlesamples.assistant.grpc.pushtotalk Change-Id: If<I>aafa<I>ad6a<I>fb0fbe6e<I>af5a<I>f<I>fe2c | py |
diff --git a/vexbot/adapters/messaging.py b/vexbot/adapters/messaging.py
index <HASH>..<HASH> 100644
--- a/vexbot/adapters/messaging.py
+++ b/vexbot/adapters/messaging.py
@@ -35,16 +35,7 @@ class ZmqMessaging:
self.pub_socket = context.socket(zmq.PUB)
self.sub_socket = context.socket(zmq.SUB)
... | removed except zmq error message because using the connect method over the bind method in zmq | py |
diff --git a/dependencies/contrib/_django.py b/dependencies/contrib/_django.py
index <HASH>..<HASH> 100644
--- a/dependencies/contrib/_django.py
+++ b/dependencies/contrib/_django.py
@@ -11,8 +11,7 @@ def view(injector):
handler = create_handler(View)
apply_http_methods(handler, injector)
- handler.http_... | Fix django view closure issue. | py |
diff --git a/lhc/filetools/flexible_opener.py b/lhc/filetools/flexible_opener.py
index <HASH>..<HASH> 100644
--- a/lhc/filetools/flexible_opener.py
+++ b/lhc/filetools/flexible_opener.py
@@ -1,16 +1,18 @@
-import bz2
import gzip
from Bio import bgzf
+from StringIO import StringIO
def open_flexibly(fname):
- ... | added string io to flexible opener | py |
diff --git a/gwpy/timeseries/statevector.py b/gwpy/timeseries/statevector.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/statevector.py
+++ b/gwpy/timeseries/statevector.py
@@ -145,6 +145,21 @@ class StateTimeSeries(TimeSeriesBase):
return super(StateTimeSeries, self).__array_wrap__(
obj, co... | StateTimeSeries.diff: added custom implementation uses xor, not sub | py |
diff --git a/SALib/sample/optimal_trajectories.py b/SALib/sample/optimal_trajectories.py
index <HASH>..<HASH> 100644
--- a/SALib/sample/optimal_trajectories.py
+++ b/SALib/sample/optimal_trajectories.py
@@ -35,7 +35,7 @@ def model(N, k_choices, distance_matrix):
m = Model("distance1")
I = range(N)
-# di... | Removed erroneous option | py |
diff --git a/pyflycap2/__init__.py b/pyflycap2/__init__.py
index <HASH>..<HASH> 100644
--- a/pyflycap2/__init__.py
+++ b/pyflycap2/__init__.py
@@ -22,4 +22,6 @@ It is read only.
if isdir(_bins):
os.environ["PATH"] += os.pathsep + _bins
+ if hasattr(os, 'add_dll_directory'):
+ os.add_dll_directory(... | Add support for <I>. | py |
diff --git a/pmxbot/web/viewer.py b/pmxbot/web/viewer.py
index <HASH>..<HASH> 100644
--- a/pmxbot/web/viewer.py
+++ b/pmxbot/web/viewer.py
@@ -313,6 +313,7 @@ def patch_compat(config):
def startup(config):
patch_compat(config)
+ pmxbot.config.update(config)
pmxbot.web.config.update(config)
config = pmxbot.web.... | Make sure the config values are available in pmxbot.config as well (for classes that refer to it directly). | py |
diff --git a/tests/support/case.py b/tests/support/case.py
index <HASH>..<HASH> 100644
--- a/tests/support/case.py
+++ b/tests/support/case.py
@@ -173,7 +173,7 @@ class ShellCase(TestCase, AdaptedConfigurationTestCaseMixin, ScriptPathMixin):
import salt.output
import salt.runner
- opts = salt... | Minor fixes to the `run_run_plus` method | py |
diff --git a/rest_registration/__init__.py b/rest_registration/__init__.py
index <HASH>..<HASH> 100644
--- a/rest_registration/__init__.py
+++ b/rest_registration/__init__.py
@@ -1,2 +1,2 @@
-__version__ = "0.3.4"
+__version__ = "0.3.5"
default_app_config = 'rest_registration.apps.RestRegistrationConfig' | Bumped version to <I> | py |
diff --git a/script/upload.py b/script/upload.py
index <HASH>..<HASH> 100755
--- a/script/upload.py
+++ b/script/upload.py
@@ -66,8 +66,9 @@ def main():
# Upload Electron with GitHub Releases API.
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME),
args.upload_to_s3)
- upload_e... | Do not upload symbols for mips<I>el | py |
diff --git a/Test/verified_test.py b/Test/verified_test.py
index <HASH>..<HASH> 100644
--- a/Test/verified_test.py
+++ b/Test/verified_test.py
@@ -306,6 +306,12 @@ True
>>> cm.weighted_average("F1")
0.26666666666666666
>>> cm = ConfusionMatrix([0, 1, 2, 2, 2],[0, 0, 2, 2, 1]) # Verified Case -- (https://bit.ly/2yidC... | add verified test for average method #<I> | py |
diff --git a/tests/test_hosts.py b/tests/test_hosts.py
index <HASH>..<HASH> 100644
--- a/tests/test_hosts.py
+++ b/tests/test_hosts.py
@@ -11,7 +11,6 @@ def test_add_single_ipv4_host(tmpdir):
"""
hosts_file = tmpdir.mkdir("etc").join("hosts")
hosts_file.write("127.0.0.1\tlocalhost")
- print hosts_file... | remove debug statement that caused error in python <I>. | py |
diff --git a/rfc.py b/rfc.py
index <HASH>..<HASH> 100644
--- a/rfc.py
+++ b/rfc.py
@@ -1,7 +1,4 @@
-'''
-Parse messages into logical python args, kwargs
-according to the various rfcs
-'''
+''' Parse messages into python args, kwargs according to rfc 2812 '''
# http://tools.ietf.org/html/rfc2812
import re
@@ -250,... | Update rfc docstrings | py |
diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_operator.py
+++ b/tests/python/unittest/test_operator.py
@@ -1263,13 +1263,13 @@ def test_expand_dims():
def test_crop():
for ndim in range(1, 6):
- fo... | Update test_operator.py | py |
diff --git a/sentinelsat/sentinel.py b/sentinelsat/sentinel.py
index <HASH>..<HASH> 100644
--- a/sentinelsat/sentinel.py
+++ b/sentinelsat/sentinel.py
@@ -51,7 +51,8 @@ class SentinelAPI(object):
def __init__(self, user, password, api_url='https://scihub.copernicus.eu/apihub/'):
self.session = requests.... | Fix requests deprecation warning Should not pass (None, None) to auth. | py |
diff --git a/cpt/packager.py b/cpt/packager.py
index <HASH>..<HASH> 100644
--- a/cpt/packager.py
+++ b/cpt/packager.py
@@ -286,7 +286,7 @@ class ConanMultiPackager(object):
# Retrocompatibility iterating
self.printer.print_message("WARNING",
"\n\n\n******* ITERATING... | fixed warning. Closes #<I> | py |
diff --git a/app/resonant-laboratory/server/datasetItem.py b/app/resonant-laboratory/server/datasetItem.py
index <HASH>..<HASH> 100644
--- a/app/resonant-laboratory/server/datasetItem.py
+++ b/app/resonant-laboratory/server/datasetItem.py
@@ -104,7 +104,10 @@ class DatasetItem(Resource):
extraParameters['f... | Only require read access to compute histograms | py |
diff --git a/modeltranslation/tests/settings.py b/modeltranslation/tests/settings.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/tests/settings.py
+++ b/modeltranslation/tests/settings.py
@@ -2,6 +2,7 @@
"""
Settings overrided for test time
"""
+import django
from django.conf import settings
@@ -23,4 +24... | Set empty MIGRATION_MODULES setting for Django <I>. Should make the tests run again. | py |
diff --git a/cartoframes/data/observatory/catalog/entity.py b/cartoframes/data/observatory/catalog/entity.py
index <HASH>..<HASH> 100644
--- a/cartoframes/data/observatory/catalog/entity.py
+++ b/cartoframes/data/observatory/catalog/entity.py
@@ -33,7 +33,7 @@ class CatalogEntity(ABC):
id_field = 'id'
_enti... | remove geom_coverage from to_dict | py |
diff --git a/mangopay/fields.py b/mangopay/fields.py
index <HASH>..<HASH> 100644
--- a/mangopay/fields.py
+++ b/mangopay/fields.py
@@ -404,10 +404,11 @@ class OneToOneField(ForeignKeyField):
class ForeignRelatedObject(object):
- def __init__(self, to, name):
+ def __init__(self, to, name, old_field):
... | Inherited properties bug fix param | py |
diff --git a/mambustruct.py b/mambustruct.py
index <HASH>..<HASH> 100644
--- a/mambustruct.py
+++ b/mambustruct.py
@@ -586,9 +586,9 @@ class MambuStruct(object):
field_name += '_'+str(custom['customFieldSetGroupIndex'])
custom['name'] = field_name
try:
... | Fix variable name error on MambuStruct's preprocess method | py |
diff --git a/onnxutils/onnxtk/optimizer.py b/onnxutils/onnxtk/optimizer.py
index <HASH>..<HASH> 100644
--- a/onnxutils/onnxtk/optimizer.py
+++ b/onnxutils/onnxtk/optimizer.py
@@ -363,10 +363,10 @@ class FanInSolution(Solution):
['fan_in_adjustment_in' + str(FanInSolution.number)],
['fa... | sync optimizer from keras-onnx (#<I>) | py |
diff --git a/pysoundfile.py b/pysoundfile.py
index <HASH>..<HASH> 100644
--- a/pysoundfile.py
+++ b/pysoundfile.py
@@ -762,7 +762,7 @@ def read(file, sample_rate=None, channels=None, subtype=None, endian=None,
"""
if frames >= 0 and stop is not None:
- raise RuntimeError("Only one of {frames, stop} m... | Change a RuntimeError to TypeError | py |
diff --git a/salt/client/ssh/shell.py b/salt/client/ssh/shell.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/shell.py
+++ b/salt/client/ssh/shell.py
@@ -339,8 +339,8 @@ class Shell(object):
else:
term.sendline('no')
ret_stdout = ('The host key... | The terminal is closed in the `finally` section. | py |
diff --git a/src/bioutils/seqfetcher.py b/src/bioutils/seqfetcher.py
index <HASH>..<HASH> 100644
--- a/src/bioutils/seqfetcher.py
+++ b/src/bioutils/seqfetcher.py
@@ -119,6 +119,7 @@ def _fetch_seq_ensembl(ac, start_i=None, end_i=None):
Raises:
RequestException: if request is unsuccessful.
+ KeyE... | Throw KeyError on wrong Ensembl transcript version | py |
diff --git a/tests/test_models.py b/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -33,6 +33,14 @@ def test_model_list():
assert(model.shape() == (2, 3))
assert(materialize(model) == [[1, 2, 3], [1, 2, 3]])
+def test_model_list_hdr_idx():
+ model... | Test header/index handling in list models. | py |
diff --git a/test/test_project.py b/test/test_project.py
index <HASH>..<HASH> 100644
--- a/test/test_project.py
+++ b/test/test_project.py
@@ -13,15 +13,15 @@ except ImportError:
class ProjectTests(unittest.TestCase):
"""docstring for ProjectTests"""
- def setUp(self):
- self.url = 'https://redcap.van... | Initialize projects for testing only once setUp runs before every test! This vastly speeds up running the test suite. | py |
diff --git a/pyinfra/api/connectors/ssh.py b/pyinfra/api/connectors/ssh.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/connectors/ssh.py
+++ b/pyinfra/api/connectors/ssh.py
@@ -197,7 +197,16 @@ def _put_file(host, filename_or_io, remote_location):
with get_file_io(filename_or_io) as file_io:
# Upload it... | Capture IOErrors uploading files and point to full disk where the mismatch size is 0. | py |
diff --git a/broqer/op/sink.py b/broqer/op/sink.py
index <HASH>..<HASH> 100644
--- a/broqer/op/sink.py
+++ b/broqer/op/sink.py
@@ -1,4 +1,5 @@
from typing import Any, Callable, Optional
+from functools import partial
from broqer import Disposable, Publisher, Subscriber
@@ -6,8 +7,12 @@ from ._operator import buil... | add partial functionality to op.sink | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,7 @@
+#!/usr/bin/env python3
+
import distutils.core
+import subprocess, shlex
# Uploading to PyPI
# =================
@@ -9,12 +12,16 @@ import distutils.core
# $ git tag <version>; git push
# $ python setup.py... | Have setup.py automatically figure out the version. | py |
diff --git a/tools/im2rec.py b/tools/im2rec.py
index <HASH>..<HASH> 100644
--- a/tools/im2rec.py
+++ b/tools/im2rec.py
@@ -83,7 +83,15 @@ def read_list(path_in):
if not line:
break
line = [i.strip() for i in line.strip().split('\t')]
- item = [int(line[0])] + [li... | Skip the line in lst, if the format is incorrect (#<I>) | py |
diff --git a/canvas_object.py b/canvas_object.py
index <HASH>..<HASH> 100644
--- a/canvas_object.py
+++ b/canvas_object.py
@@ -1,3 +1,8 @@
+from datetime import datetime
+import re
+
+DATE_PATTERN = re.compile('[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')
+
class CanvasObject(object):
"""
Base class fo... | Generate type-specific objects based on string response (i.e. datetime objects) | py |
diff --git a/dataviews/collector.py b/dataviews/collector.py
index <HASH>..<HASH> 100644
--- a/dataviews/collector.py
+++ b/dataviews/collector.py
@@ -28,6 +28,16 @@ class ViewGroup(object):
View('data1', label='', metadata={}, name='view1', title='{label}')
"""
+ @classmethod
+ def merge(cls, viewgro... | Added a merge classmethod to ViewGroup | py |
diff --git a/pyannotate_tools/annotations/__main__.py b/pyannotate_tools/annotations/__main__.py
index <HASH>..<HASH> 100644
--- a/pyannotate_tools/annotations/__main__.py
+++ b/pyannotate_tools/annotations/__main__.py
@@ -4,6 +4,7 @@ import argparse
import json
import logging
import os
+import sys
from lib2to3.m... | Print nicer error when type_info.json not found Fixes #<I> | py |
diff --git a/fmtstr/fmtstr.py b/fmtstr/fmtstr.py
index <HASH>..<HASH> 100644
--- a/fmtstr/fmtstr.py
+++ b/fmtstr/fmtstr.py
@@ -71,8 +71,10 @@ class BaseFmtStr(object):
class FmtStr(object):
def __init__(self, *components):
- assert all(isinstance(x, BaseFmtStr) for x in components), "use the constructor ... | Sped up summing and constructing FmtStrs | py |
diff --git a/test/test_line_orthopy.py b/test/test_line_orthopy.py
index <HASH>..<HASH> 100644
--- a/test/test_line_orthopy.py
+++ b/test/test_line_orthopy.py
@@ -443,10 +443,10 @@ def test_compute_moments():
5
)
- reference = [
- 3**(sympy.S(n-2) / 3) * sympy.gamma(sympy.S(n+1) / ... | use numpy.vectorize in test | py |
diff --git a/pyang/syntax.py b/pyang/syntax.py
index <HASH>..<HASH> 100644
--- a/pyang/syntax.py
+++ b/pyang/syntax.py
@@ -29,9 +29,9 @@ length_str = r'((min|max|[0-9]+)\s*' \
r'(min|max|[0-9]+)\s*)?)'
length_expr = length_str + r'(\|\s*' + length_str + r')*'
re_length_part = re.compile(length_str)
-ran... | INF is not a valid range value | py |
diff --git a/ca/django_ca/managers.py b/ca/django_ca/managers.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/managers.py
+++ b/ca/django_ca/managers.py
@@ -64,8 +64,10 @@ from .utils import get_cert_builder
from .utils import int_to_hex
from .utils import parse_expires
from .utils import parse_hash_algorithm
+fro... | do not use subject.Subject as intermediate when not necessary | py |
diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py
index <HASH>..<HASH> 100644
--- a/salt/states/saltmod.py
+++ b/salt/states/saltmod.py
@@ -159,16 +159,7 @@ def state(
state_ret['comment'] = 'Passed invalid value for \'allow_fail\', must be an int'
return state_ret
- if env is not None... | Removed deprecated states/saltmod.py code | py |
diff --git a/Corrfunc/theory/DD.py b/Corrfunc/theory/DD.py
index <HASH>..<HASH> 100644
--- a/Corrfunc/theory/DD.py
+++ b/Corrfunc/theory/DD.py
@@ -23,9 +23,10 @@ def DD(autocorr, nthreads, binfile, X1, Y1, Z1, weights1=None, periodic=True,
Calculate the 3-D pair-counts corresponding to the real-space correlation
... | Fix DD docstring about weights [ci skip] | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '3.21.1'
+VERSION = '3.21.2.dev' | start working on <I>.dev | py |
diff --git a/django_extensions/management/commands/shell_plus.py b/django_extensions/management/commands/shell_plus.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/shell_plus.py
+++ b/django_extensions/management/commands/shell_plus.py
@@ -227,7 +227,8 @@ class Command(NoArgsCommand):
... | Allow customizing IPython by passing command line argument using Django setting: IPYTHON_ARGUMENTS Fixes django-extensions/django-extensions#<I> | py |
diff --git a/sdk/core/azure-core/azure/core/version.py b/sdk/core/azure-core/azure/core/version.py
index <HASH>..<HASH> 100644
--- a/sdk/core/azure-core/azure/core/version.py
+++ b/sdk/core/azure-core/azure/core/version.py
@@ -9,4 +9,4 @@
# regenerated.
# --------------------------------------------------------------... | update version to <I>b1 | py |
diff --git a/bugwarrior/services/__init__.py b/bugwarrior/services/__init__.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/__init__.py
+++ b/bugwarrior/services/__init__.py
@@ -444,8 +444,6 @@ def aggregate_issues(conf):
log.name('bugwarrior').info("Done aggregating remote issues.")
-from .activecoll... | Make activecollab optional (mostly due to the pandoc dep). | py |
diff --git a/proso_user/models.py b/proso_user/models.py
index <HASH>..<HASH> 100644
--- a/proso_user/models.py
+++ b/proso_user/models.py
@@ -70,7 +70,7 @@ class UserProfile(models.Model):
UserProfileProperty.objects.filter(user_profile=self.id)]),
'user': {
'id': self.us... | change object type of user json | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,17 +10,17 @@ readme = f.read()
f.close()
setup_kwargs = {}
+cython_installed = True
try:
from Cython.Distutils import build_ext
from Cython import __version__ as cython_version
if StrictVersion(cython_v... | workaround for issue <I> (Cython support is disabled for old Cython versions) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ REQUIREMENTS = [
'Whoosh>=2.7.0',
# revproxy
- 'django-revproxy[diazo]>=0.9.8',
+ 'django-revproxy[diazo]>=0.9.9',
# Async Signals
'celery[redis]>=3.1.2',
@@ -42,7 +42,7 @@ EXCLUDE_... | Bump revproxy and colab version | py |
diff --git a/geomdl/NURBS.py b/geomdl/NURBS.py
index <HASH>..<HASH> 100644
--- a/geomdl/NURBS.py
+++ b/geomdl/NURBS.py
@@ -311,7 +311,7 @@ class Surface(BSpline.Surface):
"""
if not self._cache['ctrlpts']:
c, w = compatibility.separate_ctrlpts_weights(self._control_points)
- se... | Issue <I> forgot to commit cache updates for Surface class | py |
diff --git a/stanfordnlp/pipeline/lemma_processor.py b/stanfordnlp/pipeline/lemma_processor.py
index <HASH>..<HASH> 100644
--- a/stanfordnlp/pipeline/lemma_processor.py
+++ b/stanfordnlp/pipeline/lemma_processor.py
@@ -30,7 +30,7 @@ class LemmaProcessor(UDProcessor):
self._trainer = Trainer(model_file=conf... | fix bug with accessing config dictionary | py |
diff --git a/bakery/project/state.py b/bakery/project/state.py
index <HASH>..<HASH> 100644
--- a/bakery/project/state.py
+++ b/bakery/project/state.py
@@ -160,14 +160,13 @@ def project_state_save(project, state = None, local = None):
if not local:
local = project.config['local']
- state_yml = os.path... | state.py Rename state yamls to be the same throughout codebase | py |
diff --git a/pyemma/coordinates/api.py b/pyemma/coordinates/api.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/api.py
+++ b/pyemma/coordinates/api.py
@@ -574,8 +574,8 @@ def save_trajs(traj_inp, indexes, prefix='set_', fmt=None, outfiles=None, inmemo
_, fmt = os.path.splitext(traj_inp.trajfiles[0])
... | [coor/api] fix idention | py |
diff --git a/scripts/build_upload.py b/scripts/build_upload.py
index <HASH>..<HASH> 100644
--- a/scripts/build_upload.py
+++ b/scripts/build_upload.py
@@ -358,7 +358,7 @@ def upload_cdn(cdn_token, cdn_id):
content_type = "text/css"
for name in ('bokeh', 'bokeh-widgets'):
for suffix in ('css', 'min.cs... | fix path for CSS upload (#<I>) | py |
diff --git a/pyemu/utils/gw_utils.py b/pyemu/utils/gw_utils.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/gw_utils.py
+++ b/pyemu/utils/gw_utils.py
@@ -1742,10 +1742,7 @@ def load_sfr_out(sfr_out_file, selection=None):
tag = " stream listing"
lcount = 0
sfr_dict = {}
- if selection is None:
- ... | squashed SFR warning about flow aggregation | py |
diff --git a/hs_restclient/__init__.py b/hs_restclient/__init__.py
index <HASH>..<HASH> 100644
--- a/hs_restclient/__init__.py
+++ b/hs_restclient/__init__.py
@@ -489,7 +489,7 @@ class HydroShare(object):
resource.
:raises: HydroShareNotFound if the resource was not found.
:raises: HydroS... | [#<I>] typo fix | py |
diff --git a/src/poetry/utils/helpers.py b/src/poetry/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/src/poetry/utils/helpers.py
+++ b/src/poetry/utils/helpers.py
@@ -98,13 +98,13 @@ def download_file(
get = requests.get if not session else session.get
- with get(url, stream=True) as response:
- ... | [helpers] Fix get() call in download_file() (#<I>) get() is a function and not an object with __enter__ (aka context manager) | py |
diff --git a/allennlp/modules/token_embedders/pretrained_transformer_mismatched_embedder.py b/allennlp/modules/token_embedders/pretrained_transformer_mismatched_embedder.py
index <HASH>..<HASH> 100644
--- a/allennlp/modules/token_embedders/pretrained_transformer_mismatched_embedder.py
+++ b/allennlp/modules/token_embed... | Fix typo in PretrainedTransformerMismatchedEmbedder docstring (#<I>) | py |
diff --git a/django_extensions/management/commands/reset_db.py b/django_extensions/management/commands/reset_db.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/reset_db.py
+++ b/django_extensions/management/commands/reset_db.py
@@ -107,12 +107,12 @@ Type 'yes' to continue, or 'no' to cancel: ... | Fix indent problem, sorry! | py |
diff --git a/ryu/controller/dpset.py b/ryu/controller/dpset.py
index <HASH>..<HASH> 100644
--- a/ryu/controller/dpset.py
+++ b/ryu/controller/dpset.py
@@ -170,16 +170,23 @@ class DPSet(app_manager.RyuApp):
port = msg.desc
ofproto = datapath.ofproto
- LOG.debug('port status %s', reason)
-
... | dpset: improve debug message Could not understand "reason" number at a glance. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -3217,6 +3217,11 @@ class NativeGaviotaTestCase(unittest.TestCase):
board = chess.Board("8/8/1p2K3/8/8/3k4/8/8 b - - 0 1")
self.assertEqual(self.tablebases.get_wdl(board), 1)
+ @catchAndSkip(chess.gaviota.Mi... | Test multiple ep moves with native Gaviota | py |
diff --git a/uni_form/helpers.py b/uni_form/helpers.py
index <HASH>..<HASH> 100644
--- a/uni_form/helpers.py
+++ b/uni_form/helpers.py
@@ -9,7 +9,7 @@ from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.conf import settings
-FAIL_SILENTLY = getattr(settings,... | Refactoring code a little bit and fixing a bug in FAIL_SILENTLY feature within MultiField | py |
diff --git a/ipywidgets/tests/test_embed.py b/ipywidgets/tests/test_embed.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/tests/test_embed.py
+++ b/ipywidgets/tests/test_embed.py
@@ -7,7 +7,7 @@ import shutil
import traitlets
-from .. import IntSlider, IntText, Widget, jslink, HBox, widget_serialization
+from ..wi... | Fix A change was left behind in the editor | py |
diff --git a/resolwe/flow/management/commands/list_docker_images.py b/resolwe/flow/management/commands/list_docker_images.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/management/commands/list_docker_images.py
+++ b/resolwe/flow/management/commands/list_docker_images.py
@@ -86,8 +86,6 @@ class Command(BaseCommand):... | Remove static rnaseq image | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,8 @@ setup(
'man/en/sos-mask.1']),
('share/man/man5', ['man/en/sos.conf.5']),
('share/licenses/sos', ['LICENSE']),
- ('share/doc/sos', ['AUTHORS', 'README.md'])
+... | [build] Add sos.conf to distutils config Adds sos.conf to the distutils config so that it will be included in manual installations and source distribution tarballs. | py |
diff --git a/stmhal/make-stmconst.py b/stmhal/make-stmconst.py
index <HASH>..<HASH> 100644
--- a/stmhal/make-stmconst.py
+++ b/stmhal/make-stmconst.py
@@ -26,7 +26,7 @@ class LexerError(Exception):
class Lexer:
re_io_reg = r'__IO uint(?P<bits>8|16|32)_t +(?P<reg>[A-Z0-9]+)'
- re_comment = r'(?P<comment>[A-Za... | stmhal: Add missing regex property for parsing header comments | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -961,7 +961,7 @@ ARGS = {8}\n'''.format(self.minion_config,
'The salt thin transfer was corrupted'
),
(
- ... | Looks like we missed a couple of exitcodes | py |
diff --git a/tests/test_BSpline_Curve3D.py b/tests/test_BSpline_Curve3D.py
index <HASH>..<HASH> 100644
--- a/tests/test_BSpline_Curve3D.py
+++ b/tests/test_BSpline_Curve3D.py
@@ -175,9 +175,9 @@ def test_bspline_curve3d_deriv1():
curve.knotvector = [0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 0.3, 0.5, 0.7, 0.9, 1.0, 1.0, 1.0, ... | Update derivative order to a more higher value in tests | py |
diff --git a/spyder/widgets/variableexplorer/collectionseditor.py b/spyder/widgets/variableexplorer/collectionseditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/collectionseditor.py
+++ b/spyder/widgets/variableexplorer/collectionseditor.py
@@ -1150,6 +1150,9 @@ class BaseTableView(QTableView)... | Add check on collectionseditor Ctrl+V handler It was raising an AttributeError when `data` was a list, and not a dict | py |
diff --git a/firetv/__init__.py b/firetv/__init__.py
index <HASH>..<HASH> 100644
--- a/firetv/__init__.py
+++ b/firetv/__init__.py
@@ -86,6 +86,8 @@ class FireTV:
def app_state(self, app):
""" Informs if application is running """
+ if self.state != STATE_PLAYING:
+ return STATE_OFF
... | Change so that apps arnt on unless firetv is playing | py |
diff --git a/common/vr/common/models.py b/common/vr/common/models.py
index <HASH>..<HASH> 100644
--- a/common/vr/common/models.py
+++ b/common/vr/common/models.py
@@ -674,3 +674,6 @@ class Release(BaseResource):
data = dict(host=host, port=port, proc=proc, config_name=config_name)
resp = self._vr.sess... | Add parsed_config to Release model (client). | py |
diff --git a/snapcast/control/protocol.py b/snapcast/control/protocol.py
index <HASH>..<HASH> 100644
--- a/snapcast/control/protocol.py
+++ b/snapcast/control/protocol.py
@@ -25,6 +25,7 @@ class SnapcastProtocol(asyncio.Protocol):
self._transport = None
self._buffer = {}
self._callbacks = cal... | Buffering data received from Snapserver until it ends in a line break (\r\n). | py |
diff --git a/googleplaces/__init__.py b/googleplaces/__init__.py
index <HASH>..<HASH> 100644
--- a/googleplaces/__init__.py
+++ b/googleplaces/__init__.py
@@ -15,6 +15,7 @@ production environment.
from __future__ import absolute_import
import cgi
+from decimal import Decimal
try:
import json
except ImportErr... | Parse floats with Decimal when parsing the response from Google. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -83,6 +83,15 @@ extras_require = {
'cryptography', # for message signing
],
}
+extras_require['all'] = [
+ requirement
+ for requirements in extras_require.values()
+ for requirement in requirements
... | Add an 'all' extra to setup.py Allow users to install fedmsg with all extra functionality using a command like ``pip install fedmsg[all]``. | py |
diff --git a/assembly/base.py b/assembly/base.py
index <HASH>..<HASH> 100644
--- a/assembly/base.py
+++ b/assembly/base.py
@@ -50,9 +50,12 @@ class Library (object):
def __init__(self, library_name):
self.library_name = library_name
- pf, size = library_name.split("-")
- assert pf in types... | allow Library() to treat filenames that are not properly encoded as single-end PE | py |
diff --git a/swift_sync.py b/swift_sync.py
index <HASH>..<HASH> 100755
--- a/swift_sync.py
+++ b/swift_sync.py
@@ -24,7 +24,7 @@ def get_account():
def get_files(args):
swift_url = os.environ['OS_SWIFT_URL']
account = get_account()
- container_url = '{0}/v1/{1}/{2}?format=json'.format(
+ container_url ... | v1 is in the swift_url. | py |
diff --git a/canister.py b/canister.py
index <HASH>..<HASH> 100644
--- a/canister.py
+++ b/canister.py
@@ -168,8 +168,8 @@ class SessionCache:
# Note Daemon threads are abruptly stopped at shutdown.
# Their resources (such as open files, database transactions, etc.) may not be released properly.
... | improved compatibility with py <I> and fixed typo ...I'm suprised this didn't popped up during tests | py |
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instrument.py
+++ b/pysat/tests/test_instrument.py
@@ -432,17 +432,14 @@ class TestBasics():
self.testInst.load(2009, 1)
# Ensure the desired data variable is present and d... | BUG: fixed text for xarray Fixed unittest with less data for xarray. | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100644
--- a/main.py
+++ b/main.py
@@ -32,9 +32,9 @@ def main():
try:
handle_moban_file(options)
except exceptions.DirectoryNotFound as e:
- reporter.report_error_message(e)
+ reporter.report_error_message(str(e))
... | :umbrella: fix potential warnings | py |
diff --git a/tests/system/test_gbq.py b/tests/system/test_gbq.py
index <HASH>..<HASH> 100644
--- a/tests/system/test_gbq.py
+++ b/tests/system/test_gbq.py
@@ -421,6 +421,14 @@ class TestReadGBQIntegration(object):
page_array, columns=['title', 'id', 'is_bot', 'ts'])
tm.assert_frame_equal(df, expec... | Add test for single row & column (#<I>) * add test for single row & column * remove old comment | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -130,10 +130,14 @@ class Results(object):
class Solr(object):
def __init__(self, url):
self.url = url
- self.o = urlsplit(url)
- self.host = self.o.hostname
- self.port = self.o.port
- ... | Fixed Python <I>-ism. | py |
diff --git a/tests/scripts/thread-cert/Cert_5_6_07_NetworkDataRequestREED.py b/tests/scripts/thread-cert/Cert_5_6_07_NetworkDataRequestREED.py
index <HASH>..<HASH> 100755
--- a/tests/scripts/thread-cert/Cert_5_6_07_NetworkDataRequestREED.py
+++ b/tests/scripts/thread-cert/Cert_5_6_07_NetworkDataRequestREED.py
@@ -89,7 ... | [tests] fix the unstable Cert_5_6_<I> (#<I>) | py |
diff --git a/pycrosscall/wineserver.py b/pycrosscall/wineserver.py
index <HASH>..<HASH> 100644
--- a/pycrosscall/wineserver.py
+++ b/pycrosscall/wineserver.py
@@ -190,7 +190,7 @@ class wineserver_session_class:
# Timeout
timeout_after_seconds = 30.0
# Already waited for ...
- waited_for_seconds = 0.0
+ start... | fixed nonsensical timer code | py |
diff --git a/twitter_bot_utils/helpers.py b/twitter_bot_utils/helpers.py
index <HASH>..<HASH> 100644
--- a/twitter_bot_utils/helpers.py
+++ b/twitter_bot_utils/helpers.py
@@ -14,7 +14,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
import re
-from ... | No longer urlencode when queryizing | py |
diff --git a/pykechain/models/widgets/widgets_manager.py b/pykechain/models/widgets/widgets_manager.py
index <HASH>..<HASH> 100644
--- a/pykechain/models/widgets/widgets_manager.py
+++ b/pykechain/models/widgets/widgets_manager.py
@@ -716,7 +716,7 @@ class WidgetsManager(Sized):
... | Bug fix in pykechain setting title for html widgets | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.