diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -62,6 +62,13 @@ autodoc_mock_imports = list(autodoc_mock_imports) + [
]
autodoc_mock_imports.remove("sphinx_autodoc_typehints")
+autodoc_mock_imports.remove("sphinx-autodoc-typehints")
+autodoc_mock_imports... | do not mock sphinx extensions | py |
diff --git a/regions/core/tests/test_mask.py b/regions/core/tests/test_mask.py
index <HASH>..<HASH> 100644
--- a/regions/core/tests/test_mask.py
+++ b/regions/core/tests/test_mask.py
@@ -128,3 +128,11 @@ def test_mask_multiply_fill_value():
xypos = ((20, 20), (5, 5), (5, 35), (35, 5), (35, 35))
for x, y in xy... | Add test for get_overlap_slices | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,17 @@
+""" BHMM: A toolkit for Bayesian hidden Markov model analysis of single-molecule trajectories.
+
+This project provides tools for estimating the number of metastable states, rate
+constants between the states, e... | [setup] fix description and added long description from readme | py |
diff --git a/winchester/pipeline_handler.py b/winchester/pipeline_handler.py
index <HASH>..<HASH> 100644
--- a/winchester/pipeline_handler.py
+++ b/winchester/pipeline_handler.py
@@ -358,14 +358,14 @@ class UsageHandler(PipelineHandlerBase):
'state': exists.get('state', ''),
'state_descrip... | Fix default values for usage verified event. Fix the default values in the compute.instance.verified notification generated by the UsageHandler. Bandwidth values should be int (0), not empty string. Options value should also be '0', not empty string. Change-Id: I<I>dc<I>a<I>adcd<I>e<I>e<I>cc<I>e<I>b | py |
diff --git a/rb/clients.py b/rb/clients.py
index <HASH>..<HASH> 100644
--- a/rb/clients.py
+++ b/rb/clients.py
@@ -7,7 +7,11 @@ from itertools import izip
from redis import StrictRedis
from redis.client import list_or_args
-from redis.exceptions import ConnectionError, TimeoutError
+from redis.exceptions import Con... | Make this work without TimeoutError | py |
diff --git a/runcommands/runners/remote.py b/runcommands/runners/remote.py
index <HASH>..<HASH> 100644
--- a/runcommands/runners/remote.py
+++ b/runcommands/runners/remote.py
@@ -80,11 +80,11 @@ class RemoteRunner(Runner):
recv_stdout = partial(
self.recv, channel.recv_ready, channel.rec... | Fixed mirroring in RemoteRunner.recv() When receiving bytes from the remote host, don't attempt to decode those bytes since that might cause a decoding error. Instead, write the bytes directly to the out stream using `os.write()`. Removed the `encoding` arg since it's no longer used. | py |
diff --git a/albumentations/augmentations/functional.py b/albumentations/augmentations/functional.py
index <HASH>..<HASH> 100644
--- a/albumentations/augmentations/functional.py
+++ b/albumentations/augmentations/functional.py
@@ -82,11 +82,17 @@ def rot90(img, factor):
def normalize(img, mean, std, max_pixel_valu... | More efficient normalization op. On <I>x<I>x4 image it's ~3X times faster than previous implementation. <I>x<I>x4 ``` normalize_old <I> <I> <I> normalize_fast <I> <I> <I> ``` <I>x<I>x3 ``` normalize_old <I> <I> <I> normalize_fast <I> <I> <I> ``` | py |
diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_file.py
+++ b/tests/unit/states/test_file.py
@@ -1189,8 +1189,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
patch('os.path.isdir', mock_t), \
pat... | _check_user is not called under Windows, so the comment should empty. | py |
diff --git a/django_postgrespool/base.py b/django_postgrespool/base.py
index <HASH>..<HASH> 100644
--- a/django_postgrespool/base.py
+++ b/django_postgrespool/base.py
@@ -134,6 +134,14 @@ class DatabaseWrapper(Psycopg2DatabaseWrapper):
cursor.tzinfo_factory = utc_tzinfo_factory if settings.USE_TZ else None
... | Handle rollback/commit with failed connection If a rollback or commit is attempted after the connection has failed Django's BaseDatabaseWrapper does not know to check the validity of the database connection and may fail due to the connection already being closed. This is especially a problem when django is attempting ... | py |
diff --git a/pymc3/plots/__init__.py b/pymc3/plots/__init__.py
index <HASH>..<HASH> 100644
--- a/pymc3/plots/__init__.py
+++ b/pymc3/plots/__init__.py
@@ -53,9 +53,6 @@ densityplot = map_args(az.plot_density)
pairplot = map_args(az.plot_pair)
# addition arg mapping for compare plot
-swaps = [
- ('varnames', 'var... | remove unnecessary mapping compareplot is model level (i.e., no need to map between varnames and var_names kwarg) | py |
diff --git a/pykechain/client.py b/pykechain/client.py
index <HASH>..<HASH> 100644
--- a/pykechain/client.py
+++ b/pykechain/client.py
@@ -486,7 +486,7 @@ class Client(object):
if response.status_code != requests.codes.ok: # pragma: no cover
raise NotFoundError("Could not retrieve properties")
... | typo in the merge conflict resolution (r -> response) | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -106,13 +106,14 @@ class PackageLoaderTestCase(LoaderTestCaseMixin, unittest.TestCase):
self.assertEqual(len(packages), 2)
for pkg in packages:
- self.assertIsInstance(pkg, ModuleType)
+ ... | Fixed <I> compat problem with assertIsInstance usage in test, and removed an assumption on module ordering. | py |
diff --git a/pypmc/sampler/markov_chain.py b/pypmc/sampler/markov_chain.py
index <HASH>..<HASH> 100644
--- a/pypmc/sampler/markov_chain.py
+++ b/pypmc/sampler/markov_chain.py
@@ -351,10 +351,11 @@ class AdaptiveMarkovChain(MarkovChain):
+ time_dependent_damping_factor * covar_estimator
... | [markov_chain] increate adapt_count before proposal update | py |
diff --git a/gutenberg/corpus.py b/gutenberg/corpus.py
index <HASH>..<HASH> 100644
--- a/gutenberg/corpus.py
+++ b/gutenberg/corpus.py
@@ -1,7 +1,9 @@
from . import api
import collections
import contextlib
+import functools
import gzip
+import jellyfish
import logging
import os
import sqlite3
@@ -65,7 +67,6 @@ c... | Sort matched authors by similarity with query | py |
diff --git a/examples/sparkfun_redbot/sparkfun_experiments/Exp2_DriveForward.py b/examples/sparkfun_redbot/sparkfun_experiments/Exp2_DriveForward.py
index <HASH>..<HASH> 100644
--- a/examples/sparkfun_redbot/sparkfun_experiments/Exp2_DriveForward.py
+++ b/examples/sparkfun_redbot/sparkfun_experiments/Exp2_DriveForward.... | Add a log to Exp2 | py |
diff --git a/graphql_server/__init__.py b/graphql_server/__init__.py
index <HASH>..<HASH> 100644
--- a/graphql_server/__init__.py
+++ b/graphql_server/__init__.py
@@ -203,6 +203,7 @@ def load_json_body(data):
__all__ = [
+ "HttpQueryError",
"default_format_error",
"SkipException",
"run_http_query... | Expose `HttpQueryError` in `__all__` `HttpQueryError` not part of `__all__` is a breaking change to libraries like `sanic-graphql` who rely on importing it: <URL> | py |
diff --git a/spyderlib/plugins/inspector.py b/spyderlib/plugins/inspector.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/inspector.py
+++ b/spyderlib/plugins/inspector.py
@@ -132,7 +132,7 @@ class ObjectInspectorConfigPage(PluginConfigPage):
connections_label.setWordWrap(True)
editor_box = se... | Bump required jedi version to <I>. | py |
diff --git a/exchangelib/extended_properties.py b/exchangelib/extended_properties.py
index <HASH>..<HASH> 100644
--- a/exchangelib/extended_properties.py
+++ b/exchangelib/extended_properties.py
@@ -68,8 +68,9 @@ class ExtendedProperty(EWSElement):
__slots__ = ('value',)
- def __init__(self, value):
- ... | Call super(), and make sure val is list-like | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
packages=find_packages(),
include_package_data=True,
install_requires=[
- 'vr.runners>=2.8',
+ 'vr.runners>=2.10,<3',
'path.py>=7.1',
'yg.lockfile',
... | Bumping vr.runners | py |
diff --git a/phy/io/mock/artificial.py b/phy/io/mock/artificial.py
index <HASH>..<HASH> 100644
--- a/phy/io/mock/artificial.py
+++ b/phy/io/mock/artificial.py
@@ -65,10 +65,12 @@ class MockModel(BaseModel):
n_samples_waveforms = 40
n_clusters = 10
- def __init__(self, n_spikes=None):
+ def __init__(se... | n_clusters can be changed in MockModel. | py |
diff --git a/python/deepwater/models/test_utils.py b/python/deepwater/models/test_utils.py
index <HASH>..<HASH> 100644
--- a/python/deepwater/models/test_utils.py
+++ b/python/deepwater/models/test_utils.py
@@ -405,7 +405,7 @@ def cat_dog_mouse_must_converge(name,
learning_rate = initial_learning_rate
... | Fix python TF test generator to work with Python 2 and 3 | py |
diff --git a/pydsl/Grammar/BNF.py b/pydsl/Grammar/BNF.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/BNF.py
+++ b/pydsl/Grammar/BNF.py
@@ -120,11 +120,13 @@ class BNFGrammar(Grammar):
if isinstance(symbol, (TerminalSymbol, NullSymbol)):
return [symbol]
result = []
- for x in se... | improves first_lookup readability | py |
diff --git a/tests/config/test_config.py b/tests/config/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/config/test_config.py
+++ b/tests/config/test_config.py
@@ -99,7 +99,8 @@ reports = true
check_configuration_file_reader(config_file)
-def test_can_read_env_variable(tmp_path: PosixPath) -> None:
+def... | Rename test_can_read_env_variable so it has 'toml' in it It permits to launch the toml test easily with pytest -k toml | py |
diff --git a/img_proof/ipa_gce.py b/img_proof/ipa_gce.py
index <HASH>..<HASH> 100644
--- a/img_proof/ipa_gce.py
+++ b/img_proof/ipa_gce.py
@@ -24,7 +24,7 @@ import json
import os
import time
-from contextlib import contextmanager
+from contextlib import contextmanager, suppress
from img_proof import ipa_utils
f... | Fix error in python<I>. Error content when running in python<I> is bytes not string. | py |
diff --git a/sklearn_evaluation/plots.py b/sklearn_evaluation/plots.py
index <HASH>..<HASH> 100644
--- a/sklearn_evaluation/plots.py
+++ b/sklearn_evaluation/plots.py
@@ -222,19 +222,19 @@ def feature_importances_from_list(features, feature_importances, top_n=None):
def precision_at_proportions(y_true, y_score, ax=N... | updates precision_at_proportions to use proportion instead of percents | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py b/python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/schema/asset_graph.py
+++ b/python_modules/dagster-graphql/dagster_graphql/schema/asse... | Fix GQL error when loading assets whose graph name does not match their graph definition name. (#<I>) | py |
diff --git a/indra/reach/processor.py b/indra/reach/processor.py
index <HASH>..<HASH> 100644
--- a/indra/reach/processor.py
+++ b/indra/reach/processor.py
@@ -550,7 +550,7 @@ class ReachProcessor(object):
@staticmethod
def _parse_mutation(s):
- m = re.match(r'([A-Z])([0-9]+)([A-Z])', s)
+ m = ... | Extract more mutated forms from REACH | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ def readme():
setup(
name="pyrecoil",
- version="0.1",
+ version="0.1.1",
packages=find_packages(),
ext_modules=[recoil_module],
include_package_data=True, | version bump because PyPI is being obnoxious | py |
diff --git a/tensorflow_probability/python/bijectors/split.py b/tensorflow_probability/python/bijectors/split.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/bijectors/split.py
+++ b/tensorflow_probability/python/bijectors/split.py
@@ -79,7 +79,10 @@ class Split(bijector.AutoCompositeTensorBijector):... | Interpet num_or_size_splits in tfb.Splits a shape tensor. PiperOrigin-RevId: <I> | py |
diff --git a/xplenty/xplenty_api.py b/xplenty/xplenty_api.py
index <HASH>..<HASH> 100644
--- a/xplenty/xplenty_api.py
+++ b/xplenty/xplenty_api.py
@@ -398,8 +398,8 @@ class XplentyClient(object):
return limit
- def get_packages(self):
- method_path = 'packages'
+ def get_packages(self, offset=... | Add offset and limit to get_packages() When an account surpases <I> packages, the default values that were implicitly used in the API call (offset = 0, limit = <I>) are no longer sufficient for the client to access all packages. Exposing these supported API parameters allows clients with more packages to access them a... | py |
diff --git a/vent/api/actions.py b/vent/api/actions.py
index <HASH>..<HASH> 100644
--- a/vent/api/actions.py
+++ b/vent/api/actions.py
@@ -689,12 +689,16 @@ class Action:
except Exception as e: # pragma: no cover
error_message += "Error removing Vent containers: " + str(e) + "\n"
- # rem... | factory reset now works with image dependencies | py |
diff --git a/synapse/models/infotech.py b/synapse/models/infotech.py
index <HASH>..<HASH> 100644
--- a/synapse/models/infotech.py
+++ b/synapse/models/infotech.py
@@ -6,7 +6,7 @@ class ItMod(CoreModule):
def getBaseModels():
modl = {
'types': (
-
+
('it:host',... | WIP - docstrings for infotech.py | py |
diff --git a/a99/introspection.py b/a99/introspection.py
index <HASH>..<HASH> 100644
--- a/a99/introspection.py
+++ b/a99/introspection.py
@@ -7,6 +7,7 @@ import imp
import importlib
import inspect
import a99
+import time
__all__ = ["import_module", "ExeInfo", "get_exe_info", "collect_doc",
@@ -79,12 +80... | added sys.exit() protection while inspecting scripts | py |
diff --git a/penaltymodel_mip/tests/test_generation.py b/penaltymodel_mip/tests/test_generation.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_mip/tests/test_generation.py
+++ b/penaltymodel_mip/tests/test_generation.py
@@ -369,3 +369,22 @@ class TestGeneration(unittest.TestCase):
bqm, gap = mip.generate_bq... | Add unit test for all possible decision configs with aux | py |
diff --git a/mapillary_tools/process_import_meta_properties.py b/mapillary_tools/process_import_meta_properties.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/process_import_meta_properties.py
+++ b/mapillary_tools/process_import_meta_properties.py
@@ -7,6 +7,7 @@ from tqdm import tqdm
from . import processing
... | fix: version metadata (#<I>) | py |
diff --git a/photutils/psf/photometry.py b/photutils/psf/photometry.py
index <HASH>..<HASH> 100644
--- a/photutils/psf/photometry.py
+++ b/photutils/psf/photometry.py
@@ -347,7 +347,9 @@ class BasicPSFPhotometry:
raise ValueError('Finder cannot be None if init_guesses are '
... | Fix check if no sources are found | py |
diff --git a/rtv/terminal.py b/rtv/terminal.py
index <HASH>..<HASH> 100644
--- a/rtv/terminal.py
+++ b/rtv/terminal.py
@@ -275,7 +275,8 @@ class Terminal(object):
text = self.clean(text, n_cols)
params = [] if attr is None else [attr]
window.addstr(row, col, text, *params)
- ... | Catch unexpected null-byte errors when adding strings to curses | py |
diff --git a/gridmap/job.py b/gridmap/job.py
index <HASH>..<HASH> 100644
--- a/gridmap/job.py
+++ b/gridmap/job.py
@@ -298,6 +298,10 @@ def _append_job_to_session(session, job, uniq_id, job_num, temp_dir='/scratch/',
jt.outputPath = ":" + temp_dir
jt.errorPath = ":" + temp_dir
+ # Create temp directory i... | Create temporary directory if it doesn't exist when scheduling jobs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,9 @@ http://<thumbor-server>/300x200/smart/s.glbimg.com/et/bb/f/original/2011/03/24/V
install_requires=[
"tornado",
"redis",
- "pyCrypto"
+ "pyCrypto",
+ "pycurl",
+ ... | As thumbor defaults to http_loader and to PIL image engine lets add then to the required libraries | py |
diff --git a/rllib/rollout.py b/rllib/rollout.py
index <HASH>..<HASH> 100755
--- a/rllib/rollout.py
+++ b/rllib/rollout.py
@@ -8,10 +8,10 @@ from gym import wrappers as gym_wrappers
import json
import os
from pathlib import Path
-import pickle
import shelve
import ray
+import ray.cloudpickle as cloudpickle
from... | [RLlib] Issue with pickle versions (breaks rollout test cases in RLlib). (#<I>) | py |
diff --git a/src/ocrmypdf/_plugin_manager.py b/src/ocrmypdf/_plugin_manager.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_plugin_manager.py
+++ b/src/ocrmypdf/_plugin_manager.py
@@ -82,6 +82,8 @@ def _setup_plugins(
module = importlib.import_module(name)
pm.register(module)
+ pm.load_set... | Insert setuptools plugins with ocrmypdf prefix | py |
diff --git a/datetime_tz/detect_windows.py b/datetime_tz/detect_windows.py
index <HASH>..<HASH> 100644
--- a/datetime_tz/detect_windows.py
+++ b/datetime_tz/detect_windows.py
@@ -116,7 +116,12 @@ def _detect_timezone_windows():
win32timezone.TimeZoneInfo._get_indexed_time_zone_keys("Std"))
win32tz_key_n... | Apply PR#<I> (Windows locale fix) When the default locale cannot be detected, `locale.getdefaultlocale` may return `(None, None)`. This works around the issue. | py |
diff --git a/phoebe/__init__.py b/phoebe/__init__.py
index <HASH>..<HASH> 100644
--- a/phoebe/__init__.py
+++ b/phoebe/__init__.py
@@ -92,6 +92,9 @@ def logger(*args, **kwargs):
def open(*args, **kwargs):
return Bundle.open(*args, **kwargs)
+def load(*args, **kwargs):
+ return Bundle.open(*args, **kwargs)
+
... | create alias for load (calls open) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,7 +70,7 @@ def setup_extensions(metadata):
# check for cython
try:
- # build with cython
+ print('[scikit-allel] build with cython')
from Cython.Build import cythonize... | log from setup.py to debug appveyor build | py |
diff --git a/FlowCytometryTools/GUI/fc_widget.py b/FlowCytometryTools/GUI/fc_widget.py
index <HASH>..<HASH> 100644
--- a/FlowCytometryTools/GUI/fc_widget.py
+++ b/FlowCytometryTools/GUI/fc_widget.py
@@ -636,8 +636,8 @@ class FCToolBar(object):
'FCS files (*.fcs)|*.fcs', parent=parent)
... | removed hlog transformation for data loaded from file and changed warning | py |
diff --git a/python/pcs_api/models.py b/python/pcs_api/models.py
index <HASH>..<HASH> 100644
--- a/python/pcs_api/models.py
+++ b/python/pcs_api/models.py
@@ -276,7 +276,7 @@ class RequestInvoker(object):
Determine if the request can be retried, or if we should give up right now.
:returns True is re... | python: changed log level of http errors (not always a library error) | py |
diff --git a/pgpy/keys.py b/pgpy/keys.py
index <HASH>..<HASH> 100644
--- a/pgpy/keys.py
+++ b/pgpy/keys.py
@@ -24,6 +24,9 @@ class PGPKeyCollection(object):
if item == "packets":
return [ pkt for keys in list(self.pubkeys.values()) + list(self.seckeys.values()) for pkt in keys.packets]
+ ... | changed TODO comments to be more specific | py |
diff --git a/metpy/interpolate/grid.py b/metpy/interpolate/grid.py
index <HASH>..<HASH> 100644
--- a/metpy/interpolate/grid.py
+++ b/metpy/interpolate/grid.py
@@ -264,9 +264,9 @@ def interpolate_to_grid(x, y, z, interp_type='linear', hres=50000,
Parameters
----------
x: array_like
- x coordinate
+... | Improves documtation for interpolate_to_grid to specify that linear distance or degrees can be the units of the input coordinates (and resultantly, the resolution of the grid). Fixes #<I>. | py |
diff --git a/aiodocker/containers.py b/aiodocker/containers.py
index <HASH>..<HASH> 100644
--- a/aiodocker/containers.py
+++ b/aiodocker/containers.py
@@ -218,6 +218,15 @@ class DockerContainer:
):
pass
+ async def rename(self, newname):
+ async with self.docker._query(
+ "c... | Added Docker rename (#<I>) | py |
diff --git a/nanoget/nanoget.py b/nanoget/nanoget.py
index <HASH>..<HASH> 100644
--- a/nanoget/nanoget.py
+++ b/nanoget/nanoget.py
@@ -44,10 +44,10 @@ def get_input(source, files, threads=4, readtype="1D", combine="simple", names=N
Multiple files of the same type can be used to extract info from
'''
proc... | processing_functions should contain functions, not strings | py |
diff --git a/dispatch/modules/content/models.py b/dispatch/modules/content/models.py
index <HASH>..<HASH> 100644
--- a/dispatch/modules/content/models.py
+++ b/dispatch/modules/content/models.py
@@ -153,6 +153,7 @@ class Publishable(Model):
return self
# Overriding
+ @transaction.atomic
def save... | add integrity check for if two articles are set to head, make transaction atomic | py |
diff --git a/sixel/__init__.py b/sixel/__init__.py
index <HASH>..<HASH> 100644
--- a/sixel/__init__.py
+++ b/sixel/__init__.py
@@ -36,6 +36,19 @@ except:
from sixel import SixelWriter, SixelConverter
from cellsize import CellSizeDetector
+
+def _filenize(f):
+ import stat
+
+ mode = os.fstat(f.fileno()).st_mo... | Add _filenize function and prevent file seek error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,14 +9,14 @@ with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name='hexdi',
- version='0.1.2b2',
+ version='0.1.3',
packages=find_packages(include=('hexdi',)),
classifiers=[
... | Bumped version to <I> | py |
diff --git a/mtcnn/mtcnn.py b/mtcnn/mtcnn.py
index <HASH>..<HASH> 100644
--- a/mtcnn/mtcnn.py
+++ b/mtcnn/mtcnn.py
@@ -202,6 +202,8 @@ class MTCNN(object):
self.__onet = ONet(self.__session, False)
self.__onet.set_weights(weights['ONet'])
+ weights_file.close()
+
@property
d... | Fixed unclosed file resource warning. | py |
diff --git a/lint.py b/lint.py
index <HASH>..<HASH> 100644
--- a/lint.py
+++ b/lint.py
@@ -531,15 +531,14 @@ This is used by the global evaluation report (R0004).'}),
def get_astng(self, filepath, modname):
"""return a astng representation for a module"""
try:
- return MANAGER.astng_fr... | force source to true when explicitly asked to analyze a file | py |
diff --git a/master/buildbot/worker/docker.py b/master/buildbot/worker/docker.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/docker.py
+++ b/master/buildbot/worker/docker.py
@@ -28,6 +28,7 @@ from twisted.python import log
from buildbot import config
from buildbot.interfaces import LatentWorkerFailedTo... | Pass bytes to hashlib.sha1() to fix Python 3. | py |
diff --git a/master/buildbot/worker/manager.py b/master/buildbot/worker/manager.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/manager.py
+++ b/master/buildbot/worker/manager.py
@@ -79,7 +79,7 @@ class WorkerManager(MeasuredBuildbotServiceManager):
def workers(self):
# self.workers contains a... | rename "slave" attr to "worker" in comment | py |
diff --git a/cachebuster/templatetags/cachebuster.py b/cachebuster/templatetags/cachebuster.py
index <HASH>..<HASH> 100644
--- a/cachebuster/templatetags/cachebuster.py
+++ b/cachebuster/templatetags/cachebuster.py
@@ -71,5 +71,10 @@ class CacheBusterTag(template.Node):
return url_prepend + path + '?' + unique... | rather than have an file path operation related exception triggered when the static/media file can't be found, catch the exception and put something identifiable (ie. <I>) in the cache busting query string. | py |
diff --git a/test/custom_sharding.py b/test/custom_sharding.py
index <HASH>..<HASH> 100755
--- a/test/custom_sharding.py
+++ b/test/custom_sharding.py
@@ -123,6 +123,10 @@ primary key (id)
utils.run_vtctl(['ApplySchema', '-sql=' + sql, 'test_keyspace'],
auto_log=True)
+ # reload schema ev... | Removing one source of flakiness in this test. | py |
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index <HASH>..<HASH> 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -189,8 +189,8 @@ class IOLoop(Configurable):
one.
.. versionchanged:: 4.1
- Added ``instance`` argument to control the
-
+ Added ``instance`` argument... | Finish incomplete sentence in docstring. Fixes #<I> | py |
diff --git a/jenkins/janitor.py b/jenkins/janitor.py
index <HASH>..<HASH> 100755
--- a/jenkins/janitor.py
+++ b/jenkins/janitor.py
@@ -31,7 +31,6 @@ DEMOLISH_ORDER = [
Resource('instances', 'zone', None),
Resource('addresses', 'region', None),
Resource('disks', 'zone', None),
- Resource('health-checks... | Healthcheck need to be cleaned after backend-service (#<I>) | py |
diff --git a/api/urls.py b/api/urls.py
index <HASH>..<HASH> 100644
--- a/api/urls.py
+++ b/api/urls.py
@@ -202,9 +202,13 @@ Auth
Create a new :class:`~api.models.UserRegistration`.
-.. http:post:: /api/auth/???
+.. http:post:: /api/auth/login
- TODO: document the important rest_framework login URLs
+ Authent... | Fixed #<I> -- doc the 2 restframework methods. | py |
diff --git a/geomdl/multi.py b/geomdl/multi.py
index <HASH>..<HASH> 100644
--- a/geomdl/multi.py
+++ b/geomdl/multi.py
@@ -645,9 +645,9 @@ class SurfaceContainer(AbstractContainer):
name=elem.name, color=color[1], plot_type='evalpts')
# Visualize the trim curve
- ... | Fix an indexing bug in rendering trimming curves for multi-surfaces | py |
diff --git a/lark/lexer.py b/lark/lexer.py
index <HASH>..<HASH> 100644
--- a/lark/lexer.py
+++ b/lark/lexer.py
@@ -271,6 +271,8 @@ class Scanner:
self.use_bytes = use_bytes
self.match_whole = match_whole
+ self.allowed_types = {t.name for t in self.terminals}
+
self._mres = self._bui... | lexer.py: Small simplification | py |
diff --git a/sperment/__init__.py b/sperment/__init__.py
index <HASH>..<HASH> 100644
--- a/sperment/__init__.py
+++ b/sperment/__init__.py
@@ -4,4 +4,4 @@ from __future__ import division, print_function, unicode_literals
from experiment import Experiment
from utils import InfoUpdater
-__version__ = "0.1"
\ No newli... | set version number to <I> | py |
diff --git a/vent/api/actions.py b/vent/api/actions.py
index <HASH>..<HASH> 100644
--- a/vent/api/actions.py
+++ b/vent/api/actions.py
@@ -1,3 +1,4 @@
+import json
import os
import shutil
import subprocess
@@ -591,6 +592,7 @@ class Action:
self.logger.info('Template changed')
# TODO better ... | Empty sections are deleted from plugin_manifest | py |
diff --git a/dbmail/providers/apple/apns2.py b/dbmail/providers/apple/apns2.py
index <HASH>..<HASH> 100644
--- a/dbmail/providers/apple/apns2.py
+++ b/dbmail/providers/apple/apns2.py
@@ -26,8 +26,7 @@ def send(token_hex, message, **kwargs):
}
}
data['aps'].update(kwargs)
- payload = dumps(
- ... | APNs/2: fix utf8 | py |
diff --git a/py/h2o_glm.py b/py/h2o_glm.py
index <HASH>..<HASH> 100644
--- a/py/h2o_glm.py
+++ b/py/h2o_glm.py
@@ -203,15 +203,15 @@ def simpleCheckGLMGrid(self, glmGridResult, colX=None, allowFailWarning=False, *
h2o.verboseprint("Inspect of destination_key", destination_key,":\n", h2o.dump_json(inspectGG))
... | GLM inspect response has changed, but was never parsed | py |
diff --git a/tests/unit/utils/test_chcp.py b/tests/unit/utils/test_chcp.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_chcp.py
+++ b/tests/unit/utils/test_chcp.py
@@ -15,6 +15,9 @@ class CHCPTest(TestCase):
Test case for salt.utils.chcp
"""
def __init__(self, *args, **kwargs):
+ # Stor... | No try/except in test_chcp | py |
diff --git a/fost_authn/middleware.py b/fost_authn/middleware.py
index <HASH>..<HASH> 100644
--- a/fost_authn/middleware.py
+++ b/fost_authn/middleware.py
@@ -34,6 +34,9 @@ class Middleware:
user = django.contrib.auth.authenticate(
request = request, key = key, hmac = hmac)
else:
... | Added some extra logging to the middleware so we can see if we should be processing a signed URL. | py |
diff --git a/cathub/folderreader.py b/cathub/folderreader.py
index <HASH>..<HASH> 100644
--- a/cathub/folderreader.py
+++ b/cathub/folderreader.py
@@ -606,9 +606,9 @@ class FolderReader:
self.prefactors_TS,
self.energy_corrections)
- except BaseException:
+ exce... | ellaborate on error when reaction energy fails | py |
diff --git a/gspread/client.py b/gspread/client.py
index <HASH>..<HASH> 100644
--- a/gspread/client.py
+++ b/gspread/client.py
@@ -191,10 +191,14 @@ class Client(object):
'mimeType': 'application/vnd.google-apps.spreadsheet',
}
+ params = {
+ "supportsAllDrives": True,
+ ... | Improvement - allow creation of spreadsheets in shared drives If the `folder_id` is located in a shared drive, this parameter must be `True` for the API to find the folder. This does not have any effect in regular drives, keep it set to `True`. | py |
diff --git a/pyroSAR/tests/test_spatial.py b/pyroSAR/tests/test_spatial.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/tests/test_spatial.py
+++ b/pyroSAR/tests/test_spatial.py
@@ -109,6 +109,9 @@ def test_Raster(tmpdir, testdata):
ras.assign(mat)
# ras.reduce()
ras.rescale(lambda x: 10 * x)
+ ... | [test_spatial.test_Raster] added tests for Raster.extract | py |
diff --git a/pandas/tseries/period.py b/pandas/tseries/period.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/period.py
+++ b/pandas/tseries/period.py
@@ -50,7 +50,8 @@ class Period(PandasObject):
value : Period or compat.string_types, default None
The time period represented (e.g., '4Q2005')
fre... | CLN: tiny typo from GH<I>: Period() docstring | py |
diff --git a/worker/buildbot_worker/test/unit/test_scripts_create_worker.py b/worker/buildbot_worker/test/unit/test_scripts_create_worker.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/test/unit/test_scripts_create_worker.py
+++ b/worker/buildbot_worker/test/unit/test_scripts_create_worker.py
@@ -645,7 +64... | rename "slave" constant in test | py |
diff --git a/test/settings.py b/test/settings.py
index <HASH>..<HASH> 100644
--- a/test/settings.py
+++ b/test/settings.py
@@ -2,4 +2,6 @@ from squad.settings import * # noqa
LOGGING = {}
+# see https://github.com/evansd/whitenoise/issues/94
+MIDDLEWARE_CLASSES.remove('whitenoise.middleware.WhiteNoiseMiddleware'... | test.settings: remove whitenoise middleware | py |
diff --git a/helpers/textutils.py b/helpers/textutils.py
index <HASH>..<HASH> 100644
--- a/helpers/textutils.py
+++ b/helpers/textutils.py
@@ -20,7 +20,7 @@
import re
from requests import get
from html.parser import HTMLParser
-from random import random, choice
+from random import random, choice, randrange
def ... | fwilson, now with more random | py |
diff --git a/charmhelpers/fetch/ubuntu.py b/charmhelpers/fetch/ubuntu.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/fetch/ubuntu.py
+++ b/charmhelpers/fetch/ubuntu.py
@@ -650,14 +650,17 @@ def _add_apt_repository(spec):
:param spec: the parameter to pass to add_apt_repository
:type spec: str
"""
+ ... | Set cmd_env for trusty and xenial only (#<I>) Only set the command environment for the supported releases which require it. | py |
diff --git a/scss/functions/core.py b/scss/functions/core.py
index <HASH>..<HASH> 100644
--- a/scss/functions/core.py
+++ b/scss/functions/core.py
@@ -60,7 +60,7 @@ def rgba2(color, a=None):
if a is None:
alpha = 1
else:
- alpha = _interpret_percentage(a, relto=100)
+ alpha = _interpret... | Alpha is relative to 1, not <I>. | py |
diff --git a/xbee1.py b/xbee1.py
index <HASH>..<HASH> 100644
--- a/xbee1.py
+++ b/xbee1.py
@@ -187,8 +187,17 @@ class XBee1(XBee):
try:
data = kwargs[param]
except KeyError:
+ try:
+ field_length = cmd_spec[param]
+ except KeyEr... | Improved clarify of exception message when API order list has a typo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,10 @@
from distutils.core import setup
setup(name='bettercache',
- version='0.5.1',
+ version='0.5.2',
description='A replacement template cache',
author='Calvin Spealman',
author_email='ironf... | [release/<I>] Mark the version in setup.py | py |
diff --git a/pyinfra/facts/server.py b/pyinfra/facts/server.py
index <HASH>..<HASH> 100644
--- a/pyinfra/facts/server.py
+++ b/pyinfra/facts/server.py
@@ -324,6 +324,7 @@ class LinuxDistribution(FactBase):
r'(Debian) GNU/Linux ([0-9])()',
r'(Gentoo) Base System release ([0-9])\.([0-9])',
r'(F... | Add support for Alpine Linux in `linux_distribution` fact. | py |
diff --git a/django_mobile/loader.py b/django_mobile/loader.py
index <HASH>..<HASH> 100644
--- a/django_mobile/loader.py
+++ b/django_mobile/loader.py
@@ -5,6 +5,7 @@ from django.template.loader import get_template_from_string
from django.template.loaders.cached import Loader as DjangoCachedLoader
from django_mobile ... | Add cache_key method to be used by Django <I> | py |
diff --git a/scout/adapter/mongo/case.py b/scout/adapter/mongo/case.py
index <HASH>..<HASH> 100644
--- a/scout/adapter/mongo/case.py
+++ b/scout/adapter/mongo/case.py
@@ -446,7 +446,7 @@ class CaseHandler(object):
LOG.info("Saving case %s", case_obj['_id'])
# update updated_at of case to "today"
- ... | Update case.py Fix #<I> - I believe. Thanks @patrikgrenfeldt for explaining what you are doing - that made the location obvious. In a twist of irony it appears it was your code.. 😉 | py |
diff --git a/lint.py b/lint.py
index <HASH>..<HASH> 100644
--- a/lint.py
+++ b/lint.py
@@ -706,11 +706,10 @@ def report_messages_by_module_stats(sect, stats, _):
# utilities ###################################################################
# this may help to import modules using gettext
+# XXX syt, actually neede... | use lgc.compat to access builtins for cross-interpreters compat | py |
diff --git a/adrest/tests/__init__.py b/adrest/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/adrest/tests/__init__.py
+++ b/adrest/tests/__init__.py
@@ -1,6 +1,6 @@
""" Adrest test utils. """
-from .utils import AdrestClient, AdrestTestCase, reverse
+from .utils import AdrestClient, AdrestTestCase, reverse, re... | Shortcut to request_resource. | py |
diff --git a/mocpy/stmoc/stmoc.py b/mocpy/stmoc/stmoc.py
index <HASH>..<HASH> 100644
--- a/mocpy/stmoc/stmoc.py
+++ b/mocpy/stmoc/stmoc.py
@@ -48,11 +48,13 @@ class STMOC(serializer.IO):
@property
def max_time(self):
- return Time(mocpy.coverage_2d_max_time(self.__index), format='jd', scale='tdb')
+ ... | Fix microseconds -> jd in STMOC min_time and max_time | py |
diff --git a/tests/dotnetexample/conf.py b/tests/dotnetexample/conf.py
index <HASH>..<HASH> 100644
--- a/tests/dotnetexample/conf.py
+++ b/tests/dotnetexample/conf.py
@@ -18,6 +18,5 @@ htmlhelp_basename = 'dotnetexampledoc'
extensions = ['autoapi.extension', 'sphinxcontrib.dotnetdomain']
autoapi_type = 'dotnet'
-au... | Remove outdated test deps from dotnet | py |
diff --git a/nodeconductor/core/tasks.py b/nodeconductor/core/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/tasks.py
+++ b/nodeconductor/core/tasks.py
@@ -284,7 +284,10 @@ class Task(CeleryTask):
@classmethod
def get_description(cls, *args, **kwargs):
- """ Add additional information ... | Add details to "get_description" method docs. - nc-<I> | py |
diff --git a/tests/supervisors/test_statreload.py b/tests/supervisors/test_statreload.py
index <HASH>..<HASH> 100644
--- a/tests/supervisors/test_statreload.py
+++ b/tests/supervisors/test_statreload.py
@@ -1,7 +1,10 @@
import os
import signal
+import sys
from pathlib import Path
+import pytest
+
from uvicorn.con... | Skip should_reload test on windows, due to low time resolution | py |
diff --git a/phoebe/algorithms/reflection.py b/phoebe/algorithms/reflection.py
index <HASH>..<HASH> 100644
--- a/phoebe/algorithms/reflection.py
+++ b/phoebe/algorithms/reflection.py
@@ -363,7 +363,7 @@ def single_heating_reflection(irradiated, irradiator, update_temperature=True,\
irradiated.intensity(ref=['_... | lowered heating/refl message priority from warning to info | py |
diff --git a/hdf5storage/core.py b/hdf5storage/core.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/core.py
+++ b/hdf5storage/core.py
@@ -645,7 +645,7 @@ class MarshallerCollection(object):
return None
-def write(filename='data.h5', name='/data', data=None,
+def write(filename='data.h5', name='/', dat... | Changed default names to read and write data to in the high level functions. | py |
diff --git a/uproot/interp/auto.py b/uproot/interp/auto.py
index <HASH>..<HASH> 100644
--- a/uproot/interp/auto.py
+++ b/uproot/interp/auto.py
@@ -52,9 +52,9 @@ def _ftype2dtype(fType, awkward):
elif fType in (uproot.const.kBits, uproot.const.kUInt, uproot.const.kCounter):
return awkward.numpy.dtype(">u4"... | Remove platform dependence in interpreting 'long' and 'unsigned long' types. | py |
diff --git a/great_expectations/data_context/types/base.py b/great_expectations/data_context/types/base.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/types/base.py
+++ b/great_expectations/data_context/types/base.py
@@ -1102,7 +1102,7 @@ class NotebookConfig(DictDot):
class NotebookConfigSchema(... | fix: update module_name in NoteBookConfigSchema from v2 path to v3 (#<I>) | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -323,6 +323,12 @@ class Client:
This function can be used in two different ways.
+ .. warning::
+
+ Logging on with a user token is against the Discord
+ ... | Add a warning for self-bots in Client.login Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,11 @@ Run:
to install this package.
"""
-from distutils.core import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
from distutils.command.install import ... | Fixed up setup.py to be properly alpha, and to include setuptools. See <URL> | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1208,13 +1208,18 @@ class MainWindow(QMainWindow):
else:
# Load last project if a project was active when Spyder
# was close... | Main Window: Load previous session if Projects is disabled | py |
diff --git a/wal_e/blobstore/wabs/wabs_util.py b/wal_e/blobstore/wabs/wabs_util.py
index <HASH>..<HASH> 100644
--- a/wal_e/blobstore/wabs/wabs_util.py
+++ b/wal_e/blobstore/wabs/wabs_util.py
@@ -132,7 +132,7 @@ def uri_get_file(creds, uri, conn=None):
part = conn.get_blob(url_tup.netloc,
... | Inspect .errno only on EnvironmentError in WABS support Previously, it would seem other exceptions would crash the program if an errno was not present, and EnvironmentError typically is a parent of exceptions that yield an errno. | py |
diff --git a/multiqc/modules/picard/VariantCallingMetrics.py b/multiqc/modules/picard/VariantCallingMetrics.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/picard/VariantCallingMetrics.py
+++ b/multiqc/modules/picard/VariantCallingMetrics.py
@@ -26,7 +26,7 @@ def parse_reports(parent_module):
derive_data(... | Fix a typo in picars/VariantCallingMetrics Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
version='0.8.0',
description='AFIP integration for django',
author='Hugo Osvaldo Barrera',
- author_email='hbarrera@z47.io',
+ author_email='hugo@barrera.io',
url='https://gitlab.c... | Change author_email to my own email My personal email is definitely the one that'll keep working in the long run. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.