diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/python/ray/experimental/raysort/main.py b/python/ray/experimental/raysort/main.py
index <HASH>..<HASH> 100644
--- a/python/ray/experimental/raysort/main.py
+++ b/python/ray/experimental/raysort/main.py
@@ -332,9 +332,14 @@ def sort_main(args: Args):
assert len(parts) == args.num_mappers
boundarie... | Fix the failure of sort_main in the case of num_cpus > 1 and not an integer (#<I>) The exception of 'ValueError("Resource quantities >1 must be whole numbers.")' will be raised if the `num_cpus` > 1 and not an integer. | py |
diff --git a/openpnm/io/PerGeos.py b/openpnm/io/PerGeos.py
index <HASH>..<HASH> 100644
--- a/openpnm/io/PerGeos.py
+++ b/openpnm/io/PerGeos.py
@@ -198,4 +198,4 @@ class PerGeos(GenericIO):
network = GenericNetwork()
network = cls._update_network(network=network, net=net)
- return network.... | adding line at end for pep8 | py |
diff --git a/issue.py b/issue.py
index <HASH>..<HASH> 100755
--- a/issue.py
+++ b/issue.py
@@ -29,10 +29,10 @@ issues = []
gzip_file = False
logging.basicConfig(format='%(levelname)s:%(message)s')
-def term_width():
+def term_size():
# http://stackoverflow.com/questions/566746/how-to-get-console-window-width-i... | Using ANSI escape codes instead of external command for screen clearing | py |
diff --git a/ot/bregman.py b/ot/bregman.py
index <HASH>..<HASH> 100644
--- a/ot/bregman.py
+++ b/ot/bregman.py
@@ -1867,12 +1867,6 @@ def screenkhorn(a, b, M, reg, ns_budget, nt_budget, uniform=True, restricted=Tru
a = np.asarray(a, dtype=np.float64)
b = np.asarray(b, dtype=np.float64)
-
- # if the... | delete "ArrayBox"-type test of dist. matrix M | py |
diff --git a/tests/test_extractors.py b/tests/test_extractors.py
index <HASH>..<HASH> 100644
--- a/tests/test_extractors.py
+++ b/tests/test_extractors.py
@@ -17,8 +17,8 @@ import spikeextractors as se
class TestExtractors(unittest.TestCase):
def setUp(self):
self.RX, self.RX2, self.RX3, self.SX, self.SX... | Use tmp folder for travis | py |
diff --git a/master/buildbot/db/migrate/versions/001_initial.py b/master/buildbot/db/migrate/versions/001_initial.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/db/migrate/versions/001_initial.py
+++ b/master/buildbot/db/migrate/versions/001_initial.py
@@ -186,8 +186,10 @@ def import_changes(migrate_engine):
... | Do not use binary mode to read change pickles | py |
diff --git a/autotweet/database.py b/autotweet/database.py
index <HASH>..<HASH> 100644
--- a/autotweet/database.py
+++ b/autotweet/database.py
@@ -63,13 +63,14 @@ class AutoAnswer():
if len(query) < GRAM_LENGTH:
return
- docs = {}
grams = self._get_grams(query)
- self._rec... | recalc all idfs that used to measure. | py |
diff --git a/src/pikepdf/models/outlines.py b/src/pikepdf/models/outlines.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/models/outlines.py
+++ b/src/pikepdf/models/outlines.py
@@ -160,7 +160,7 @@ class OutlineItem:
kwargs = dict(left=left, top=top, right=right, bottom=bottom, zoom=zoom)
self.page_l... | Change type of `OutlineItem.children` to `List[OutlineItem]` The ['Outlines' docs][1] has `main_item.children.append` in one of the examples, so it seems like `children` should be typed as a list and not simply an iterable. [1]: <URL> | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -576,19 +576,13 @@ def _get_reg_software():
search_key_userdata = 'Software\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products'
fo... | Fix a bug with pkg.list_pkgs on Windows pkg.list_pkgs on Windows was returning many things that aren't in the Add/Remove Programs such as Windows Updates and Software Upgrades. It was also failing to show other packages installed on the system as well. Some packages were being dropped because they were missing a versi... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='fauxtograph',
- version='1.0.2',
+ version='1.0.3',
author='TJ Torres',
author_email='ttorres@mit.edu',
license='MIT', | Changed version number to reflect changes before uploading to PyPI. | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -56,10 +56,10 @@ class DeviceTest(unittest.TestCase):
self.test_timeout()
self.test_set_configuration()
self.test_set_i... | Move clear_halt test case to the end. Since clear_halt can be problematic in Windows, we move it to the end of the tests so it cannot fail other tests. | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/backend/drivers/blockstack_storage_drivers/common.py b/blockstack_cli_0.14.1/blockstack_client/backend/drivers/blockstack_storage_drivers/common.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/backend/drivers/blockstack_storage_drivers/co... | include ISO <I> timestamps | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,9 @@ ez_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
name="smoqe",
- version="0.1.1",
+ version="0.1.2",
packages=find_packages(),
+ py_modules = ['ez_setup'],
# TBD:
... | added ez_setup to install script | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,7 @@ setup(
],
python_requires=">=3.6",
install_requires=[
- "Django>=2.0",
+ "Django>=2.0,<5.0",
"python-dateutil>=2.8.0,<=3.0.0",
"ansimarkup>=1.4.0,<=2.0.0",
], | Restrict Django dependency to currently supported version Maybe this will stop complaints about errors with Django versions that we don't support yet. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -84,7 +84,8 @@ extras_require = {
'pyproj >=1.9',
],
'dev': [
- 'nose >=1.3, <1.4',
+ 'nose >=1.3',
+ 'pytest >=4.5',
'flake8 >=3.5, <3.8',
'pdbpp',
'ipython'... | Add pytest to dev requirements Former-commit-id: <I>bcd8f<I>e<I>fbc<I>ecd0b<I>d | py |
diff --git a/datasette/cli.py b/datasette/cli.py
index <HASH>..<HASH> 100644
--- a/datasette/cli.py
+++ b/datasette/cli.py
@@ -550,7 +550,9 @@ def serve(
)
# De-duplicate files so 'datasette db.db db.db' only attaches one /db
- files = list(dict.fromkeys(files))
+ files_seen = set()
+ d... | Use de-dupe idiom that works with Python <I>, refs #<I> | py |
diff --git a/smore/apispec/core.py b/smore/apispec/core.py
index <HASH>..<HASH> 100644
--- a/smore/apispec/core.py
+++ b/smore/apispec/core.py
@@ -85,14 +85,19 @@ class APISpec(object):
https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#paths-object-
"""
path_config = {}
... | Path helper can return a collection of Paths | py |
diff --git a/abilian/core/models/subjects.py b/abilian/core/models/subjects.py
index <HASH>..<HASH> 100644
--- a/abilian/core/models/subjects.py
+++ b/abilian/core/models/subjects.py
@@ -87,8 +87,8 @@ def gen_random_password(length=15):
@add_metaclass(ABCMeta)
class PasswordStrategy(object):
- @abstractmethod
... | fix: last commit was buggy. | py |
diff --git a/gitenberg/book.py b/gitenberg/book.py
index <HASH>..<HASH> 100644
--- a/gitenberg/book.py
+++ b/gitenberg/book.py
@@ -157,6 +157,7 @@ class Book():
def tag(self, version='bump', message=''):
""" tag and commit
"""
+ self.clone_from_github()
self.github_repo.tag(versio... | clone of tag if needed | py |
diff --git a/scripts/generate_all_jobs.py b/scripts/generate_all_jobs.py
index <HASH>..<HASH> 100755
--- a/scripts/generate_all_jobs.py
+++ b/scripts/generate_all_jobs.py
@@ -15,8 +15,8 @@
# limitations under the License.
import argparse
+import imp
import os
-import subprocess
import sys
from ros_buildfarm.ar... | run all generation scripts in the same interpreter | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -4,13 +4,13 @@
# fmt: off
__title__ = "spacy-nightly"
-__version__ = "2.1.0a9.dev0"
+__version__ = "2.1.0a9.dev1"
__summary__ = "Industrial-strength Natural Language Processing (NLP) with Python an... | Set version to <I>a9.dev1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup(
'future>=0.14.0',
'futures; python_version<"3.2"',
'backports.functools_lru_cache; python_version<"3.2"',
- 'jedi>=0.13.2',
+ 'jedi>=0.13.2,<0.14',
'pytho... | Don't use Jedi <I> for now because it breaks the server (#<I>) | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-version = __version__ = "4.5.0.26 Unreleased Mac Buttons. Element size get/set. Screen Size. hide/unhide row, Button rebinding, Element.expand, Experimental Finalize,... | Fixed range parm on Slider.Update. Was only changing if value changed too. Now independent. | py |
diff --git a/openquake/hazardlib/calc/disagg.py b/openquake/hazardlib/calc/disagg.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/disagg.py
+++ b/openquake/hazardlib/calc/disagg.py
@@ -214,7 +214,7 @@ def _bdata_mean_std(gsim, site1, rctxs, imt):
U = len(rctxs)
bdata = BinData(mags=numpy.zeros(U... | Using <I> bit floats in mean_std | py |
diff --git a/sawtooth/cli.py b/sawtooth/cli.py
index <HASH>..<HASH> 100644
--- a/sawtooth/cli.py
+++ b/sawtooth/cli.py
@@ -510,7 +510,8 @@ def do_transaction(args):
tsctids = web_client.get_transaction_list()
else:
tsctids = web_client.get_transaction_list(args.blockcount)... | Print transaction as a simple list by default | py |
diff --git a/references/classification/utils.py b/references/classification/utils.py
index <HASH>..<HASH> 100644
--- a/references/classification/utils.py
+++ b/references/classification/utils.py
@@ -166,17 +166,7 @@ class ExponentialMovingAverage(torch.optim.swa_utils.AveragedModel):
def ema_avg(avg_model_para... | Simplify EMA to use Pytorch's update_parameters (#<I>) | py |
diff --git a/cm-mlops/automation/script/module.py b/cm-mlops/automation/script/module.py
index <HASH>..<HASH> 100644
--- a/cm-mlops/automation/script/module.py
+++ b/cm-mlops/automation/script/module.py
@@ -1776,10 +1776,17 @@ def convert_env_to_script(env, os_info, start_script = []):
if k.startswith('+'):
... | Added support for custom list separator | py |
diff --git a/estnltk/text.py b/estnltk/text.py
index <HASH>..<HASH> 100644
--- a/estnltk/text.py
+++ b/estnltk/text.py
@@ -84,6 +84,9 @@ class Text:
def text(self):
return self._text
+ def setup_structure(self):
+ return self._setup_structure()
+
def _setup_structure(self):
pairs... | Text.setup_structure is now public and updates Text.layers_to_attributes dict | py |
diff --git a/tensorflow_datasets/text/wikipedia_toxicity_subtypes.py b/tensorflow_datasets/text/wikipedia_toxicity_subtypes.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/text/wikipedia_toxicity_subtypes.py
+++ b/tensorflow_datasets/text/wikipedia_toxicity_subtypes.py
@@ -82,8 +82,10 @@ class WikipediaToxicit... | Add release notes for wikipedia_toxicity_subtypes | py |
diff --git a/sigtracker/form.py b/sigtracker/form.py
index <HASH>..<HASH> 100644
--- a/sigtracker/form.py
+++ b/sigtracker/form.py
@@ -5,8 +5,12 @@ from django.core.validators import MaxValueValidator, MinValueValidator
class SignatureForm(forms.Form):
sigtype = [('Wormhole', 'Wormhole'), ('Combat', 'Combat'), ... | Added Additonal Signature Types and Status | py |
diff --git a/yabt/buildcontext.py b/yabt/buildcontext.py
index <HASH>..<HASH> 100644
--- a/yabt/buildcontext.py
+++ b/yabt/buildcontext.py
@@ -209,7 +209,7 @@ class BuildContext:
docker_run.extend(cmd)
logger.info('Running command in build env "{}" using command {}',
buildenv_targ... | Propagate errors in buildenv container commands Needed to make `ybt` exit code reflect buildenv command exit codes (e.g. for CI) | py |
diff --git a/protowhat/checks/check_funcs.py b/protowhat/checks/check_funcs.py
index <HASH>..<HASH> 100644
--- a/protowhat/checks/check_funcs.py
+++ b/protowhat/checks/check_funcs.py
@@ -296,7 +296,8 @@ def has_equal_ast(
sol_str = get_str(state.solution_ast, state.solution_code, sql)
_msg = incorrect_msg.f... | Improve code reference if highlighting is disabled | py |
diff --git a/code/python/Zope/Selenium/FunctionalTestTool.py b/code/python/Zope/Selenium/FunctionalTestTool.py
index <HASH>..<HASH> 100644
--- a/code/python/Zope/Selenium/FunctionalTestTool.py
+++ b/code/python/Zope/Selenium/FunctionalTestTool.py
@@ -108,17 +108,19 @@ class FunctionalTestTool (Item, Persistent, Implici... | Modified addUser and deleteUser methods to raise exceptions on error. r<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
long_description=long_description,
packages=find_packages('.'),
install_requires = [
- 'prompt_toolkit==0.50',
+ 'prompt_toolkit==0.51',
'jedi>=0.9.0',
'doco... | Upgrade to prompt_toolkit <I>. | py |
diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py
index <HASH>..<HASH> 100644
--- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py
+++ b/azure-mgmt-recoveryservicesb... | Fixing extra-newline in recoveryservicesbackup/version.py (#<I>) | py |
diff --git a/fermipy/fits_utils.py b/fermipy/fits_utils.py
index <HASH>..<HASH> 100644
--- a/fermipy/fits_utils.py
+++ b/fermipy/fits_utils.py
@@ -105,7 +105,7 @@ def read_projection_from_fits(fitsfile, extname=None):
def write_tables_to_fits(filepath, tablelist, clobber=False,
- namelist=N... | add hdu_list argument to write_tables_to_fits function to allow user to also write some HDUs | py |
diff --git a/certsuite/cert.py b/certsuite/cert.py
index <HASH>..<HASH> 100755
--- a/certsuite/cert.py
+++ b/certsuite/cert.py
@@ -103,7 +103,7 @@ def install_app(logger, appname, version, apptype, apppath, all_perms,
package_app(apppath, files)
logger.debug('installing: %s' % appname)
- fxos_appgen.inst... | Fix handling of timeout for permissions tests. | py |
diff --git a/src/ipcalc.py b/src/ipcalc.py
index <HASH>..<HASH> 100644
--- a/src/ipcalc.py
+++ b/src/ipcalc.py
@@ -420,6 +420,12 @@ class IP(object):
else:
return self
+ def to_reverse(self):
+ if self.v == 4:
+ return '.'.join(list(self.dq.split('.')[::-1]) + ['in-addr', 'a... | Added IP.to_reverse() that will generate the reverse PTR (closing #<I>) | py |
diff --git a/src/toil/test/utils/utilsTest.py b/src/toil/test/utils/utilsTest.py
index <HASH>..<HASH> 100644
--- a/src/toil/test/utils/utilsTest.py
+++ b/src/toil/test/utils/utilsTest.py
@@ -219,6 +219,7 @@ class UtilsTest(ToilTest):
shutil.rmtree(jobstoreLoc)
@needs_cwl
+ @integrative
def testG... | Make new tests that use cwltool integrative. | py |
diff --git a/aospy/model.py b/aospy/model.py
index <HASH>..<HASH> 100644
--- a/aospy/model.py
+++ b/aospy/model.py
@@ -100,9 +100,12 @@ class Model(object):
setattr(self, name_int,
self._get_nc_grid_attr(nc_grid, name))
except KeyError:
- ... | Bugfix in model.py: set empty attrs to None to avoid AttributeErrors | py |
diff --git a/dramatiq/__init__.py b/dramatiq/__init__.py
index <HASH>..<HASH> 100644
--- a/dramatiq/__init__.py
+++ b/dramatiq/__init__.py
@@ -5,4 +5,4 @@ from .message import Message # noqa
from .middleware import Middleware # noqa
from .worker import Worker # noqa
-__version__ = "0.1.0"
+__version__ = "0.0.1" | chore: set version to <I> | py |
diff --git a/angr/simos.py b/angr/simos.py
index <HASH>..<HASH> 100644
--- a/angr/simos.py
+++ b/angr/simos.py
@@ -517,7 +517,8 @@ class SimLinux(SimOS):
},
'MIPS32': {
-
+ 4001: ('exit', 'exit'),
+ 4003: ('read', 'read'),
},
'MIPS64': { | added MIPS<I> syscalls | py |
diff --git a/src/observatoryControl/main.py b/src/observatoryControl/main.py
index <HASH>..<HASH> 100755
--- a/src/observatoryControl/main.py
+++ b/src/observatoryControl/main.py
@@ -149,7 +149,7 @@ if 'latitude' in obstory_status:
if 'longitude' in obstory_status:
longitude = obstory_status['longitude']
if 'alt... | Major bugfix to handling of GPS positions: Altitudes and longitudes were mixed up. | py |
diff --git a/spyderlib/plugins/externalconsole.py b/spyderlib/plugins/externalconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/externalconsole.py
+++ b/spyderlib/plugins/externalconsole.py
@@ -313,6 +313,8 @@ class ExternalConsole(SpyderPluginWidget):
layout = QVBoxLayout()
s... | Console/tabs: set document mode as True (if available: PyQt4 >=<I>) | py |
diff --git a/nion/instrumentation/test/ScanControl_test.py b/nion/instrumentation/test/ScanControl_test.py
index <HASH>..<HASH> 100644
--- a/nion/instrumentation/test/ScanControl_test.py
+++ b/nion/instrumentation/test/ScanControl_test.py
@@ -420,7 +420,7 @@ class TestScanControlClass(unittest.TestCase):
f... | Adjust sleep to try to make test more reliable. | py |
diff --git a/numina/array/__init__.py b/numina/array/__init__.py
index <HASH>..<HASH> 100644
--- a/numina/array/__init__.py
+++ b/numina/array/__init__.py
@@ -112,7 +112,7 @@ def combine_shape(shapes, offsets):
def resize_array(data, finalshape, region, window=None,
scale=1, fill=0, conserve=True):
... | Do not use array as boolean in 'resize_array' | py |
diff --git a/fuzzyhashlib/__init__.py b/fuzzyhashlib/__init__.py
index <HASH>..<HASH> 100644
--- a/fuzzyhashlib/__init__.py
+++ b/fuzzyhashlib/__init__.py
@@ -1,5 +1,6 @@
import libssdeep_wrapper
+
"""Wrapper for various fuzzy hashing libraries which attempts to be as similar
in interface to hashlib as possible. | updated: ssdeep initial implementation. | py |
diff --git a/src/rez/tests/util.py b/src/rez/tests/util.py
index <HASH>..<HASH> 100644
--- a/src/rez/tests/util.py
+++ b/src/rez/tests/util.py
@@ -216,7 +216,7 @@ def per_available_shell():
if hasattr(e, "args") and e.args:
try:
args = list(e.ar... | Minor fix e.arg[0] may be an int in some error type | py |
diff --git a/pymesos/scheduler.py b/pymesos/scheduler.py
index <HASH>..<HASH> 100644
--- a/pymesos/scheduler.py
+++ b/pymesos/scheduler.py
@@ -218,7 +218,7 @@ class MesosSchedulerDriver(Process, SchedulerDriver):
assert framework_id
accept_inverse_offers = dict(
- offer_ids=[offer_ids] if... | Fix construction of AcceptInverseOffers/DeclineInverseOffers They were passing a field called offer_ids, whereas the protocol expected inverse_offer_ids (see <URL>). | py |
diff --git a/GDAX/__init__.py b/GDAX/__init__.py
index <HASH>..<HASH> 100644
--- a/GDAX/__init__.py
+++ b/GDAX/__init__.py
@@ -2,3 +2,4 @@ from GDAX.AuthenticatedClient import AuthenticatedClient
from GDAX.PublicClient import PublicClient
from GDAX.WebsocketClient import WebsocketClient
from GDAX.OrderBook import Or... | Forgot to include Ticker in __init__ | py |
diff --git a/wandb/apis/public.py b/wandb/apis/public.py
index <HASH>..<HASH> 100644
--- a/wandb/apis/public.py
+++ b/wandb/apis/public.py
@@ -480,7 +480,8 @@ class File(object):
@normalize_exceptions
def download(self, replace=False):
- response = requests.get(self._attrs["url"], stream=True)
+ ... | Fixes download when login not called | py |
diff --git a/vulture/core.py b/vulture/core.py
index <HASH>..<HASH> 100644
--- a/vulture/core.py
+++ b/vulture/core.py
@@ -341,12 +341,8 @@ class Vulture(ast.NodeVisitor):
if ignore and ignore(self.filename, name):
self._log('Ignoring {typ} "{name}"'.format(**locals()))
else:
- ... | Remove special case for Python <I>. | py |
diff --git a/pytablewriter/writer/_table_writer.py b/pytablewriter/writer/_table_writer.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/writer/_table_writer.py
+++ b/pytablewriter/writer/_table_writer.py
@@ -834,8 +834,10 @@ class AbstractTableWriter(TableWriterInterface, metaclass=abc.ABCMeta):
def _to_header_... | Make it possible to apply part of the style filter to headers | py |
diff --git a/vertex/test/test_sslverify.py b/vertex/test/test_sslverify.py
index <HASH>..<HASH> 100644
--- a/vertex/test/test_sslverify.py
+++ b/vertex/test/test_sslverify.py
@@ -165,6 +165,12 @@ class OpenSSLOptions(unittest.TestCase):
# cResult.trap(SSL.Error)
# sResult.trap(SSL.Error)
+ ... | Put flushErrors calls back in until buildbot is fixed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,10 +39,11 @@ setup(
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License",
- "Progra... | chore: update supported versions in setup.py classifiers deprecate <I> add support for <I> and <I> | py |
diff --git a/nsq/util.py b/nsq/util.py
index <HASH>..<HASH> 100644
--- a/nsq/util.py
+++ b/nsq/util.py
@@ -3,20 +3,29 @@
import struct
+def pack_string(message):
+ '''Pack a single message in the TCP protocol format'''
+ # [ 4-byte message size ][ N-byte binary data ]
+ return struct.pack('>l', len(messag... | Fix failing test about passing nested iterables to pack | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -346,6 +346,10 @@ autodoc_member_order = 'bysource'
autosummary_generate = True
nbsphinx_execute = 'never'
+extlinks = {
+ 'issue': ('https://github.com/has2k1/plotnine/issues/%s', 'GH')
+}
+
def setup(ap... | DOC: Add extlinks to resolve github issue links | py |
diff --git a/tabs/tabs.py b/tabs/tabs.py
index <HASH>..<HASH> 100644
--- a/tabs/tabs.py
+++ b/tabs/tabs.py
@@ -27,8 +27,9 @@ class Tabs():
Example:
Using tabs for listing tables::
- from src.data.tabs import Tabs
- tabs = Tabs()
+ from tabs import Tabs
+ packa... | Updated docstring for Tabs | py |
diff --git a/lib/websession_webinterface.py b/lib/websession_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/websession_webinterface.py
+++ b/lib/websession_webinterface.py
@@ -102,6 +102,9 @@ class WebInterfaceYourAccountPages(WebInterfaceDirectory):
if uid == -1 or CFG_ACCESS_CONTROL_LEVEL_SITE >= 1:
... | Do not permit to guest users to edit account settings, fixing page availability test. | py |
diff --git a/openid/test/test_fetchers.py b/openid/test/test_fetchers.py
index <HASH>..<HASH> 100644
--- a/openid/test/test_fetchers.py
+++ b/openid/test/test_fetchers.py
@@ -8,7 +8,8 @@ from openid import fetchers
# XXX: make these separate test cases
def failUnlessResponseExpected(expected, actual):
- assert e... | [project @ test.test_fetchers.failUnlessResponseExpected: provide more information on failure] | py |
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/codeeditor.py
+++ b/spyderlib/widgets/sourcecode/codeeditor.py
@@ -62,10 +62,10 @@ try:
try: # Ipython 4
import nbformat as nbformat
... | limiting the exception to `import Error` | py |
diff --git a/ieml/constants.py b/ieml/constants.py
index <HASH>..<HASH> 100644
--- a/ieml/constants.py
+++ b/ieml/constants.py
@@ -16,7 +16,7 @@ LANGUAGES = {
'en'
}
-MORPHEME_SIZE_LIMIT = 5
+MORPHEME_SIZE_LIMIT = 6
MAX_NODES_IN_SENTENCE = 20
MAX_DEPTH_IN_HYPERTEXT = 8
MAX_NODES_IN_HYPERTEXT = 20 | Raise the morphem size limit to 6 | py |
diff --git a/pymatgen/transformations/advanced_transformations.py b/pymatgen/transformations/advanced_transformations.py
index <HASH>..<HASH> 100644
--- a/pymatgen/transformations/advanced_transformations.py
+++ b/pymatgen/transformations/advanced_transformations.py
@@ -2313,7 +2313,6 @@ class SQSTransformation(Abstrac... | MonteCarloRattleTransformation: move @requires to __init__ so that transformation is MSONable | py |
diff --git a/modeltranslation/fields.py b/modeltranslation/fields.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/fields.py
+++ b/modeltranslation/fields.py
@@ -190,15 +190,17 @@ class TranslationFieldDescriptor(object):
def __get__(self, instance, owner):
if instance is None:
return se... | Only fallback when there is no value for a given translation or the value is the field's default. For CharField(null=True) the default is None, so empty string becomes a proper value (it's sometimes useful to treat it differently than None). | py |
diff --git a/octodns/provider/route53.py b/octodns/provider/route53.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/route53.py
+++ b/octodns/provider/route53.py
@@ -931,8 +931,6 @@ class Route53Provider(BaseProvider):
if getattr(record, 'dynamic', False):
# Make a copy of the record ... | Remove some debugging pprints | py |
diff --git a/mike/app_version.py b/mike/app_version.py
index <HASH>..<HASH> 100644
--- a/mike/app_version.py
+++ b/mike/app_version.py
@@ -1 +1 @@
-version = '0.4.1'
+version = '0.5.0.dev0' | Update version to <I>.dev0 | py |
diff --git a/astroid/protocols.py b/astroid/protocols.py
index <HASH>..<HASH> 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -233,13 +233,12 @@ def _resolve_looppart(parts, assign_path, context):
for part in parts:
if part is util.Uninferable:
continue
- # XXX handle _... | Remove some unneeded comments and use yield from | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -56,7 +56,7 @@ def check(font_file):
logging.debug("Checking name table for items without platformID=1")
new_names = []
- for name in self.font['na... | Fix bug introduced from copy/paste | py |
diff --git a/ofp/v0x01/common/action.py b/ofp/v0x01/common/action.py
index <HASH>..<HASH> 100644
--- a/ofp/v0x01/common/action.py
+++ b/ofp/v0x01/common/action.py
@@ -48,6 +48,24 @@ class ActionType(enum.Enum):
# Classes
+class ActionHeader(base.GenericStruct):
+ """
+ Defines the Header that is common to al... | Creates ActionHeader class in common structures | py |
diff --git a/native_tags/registry.py b/native_tags/registry.py
index <HASH>..<HASH> 100644
--- a/native_tags/registry.py
+++ b/native_tags/registry.py
@@ -1,5 +1,5 @@
from django.conf import settings as djsettings
-from django.template import add_to_builtins, Library as DjLib
+from django.template import add_to_builti... | looks for boolean native tag attributes | py |
diff --git a/openid/tools/oiddiag.py b/openid/tools/oiddiag.py
index <HASH>..<HASH> 100644
--- a/openid/tools/oiddiag.py
+++ b/openid/tools/oiddiag.py
@@ -78,8 +78,20 @@
# or server: [___________________]
# or [Reset] this page.
-from mod_python import apache
-from mod_python.util import FieldStorage
+try:
+ fro... | [project @ catch mod_python import errors to be able to run in the unittest framework] | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -3298,6 +3298,7 @@ def browse(url):
----------
suppress_browser_output : bool
True if a text based browser is detected.
+ Must be initialized (as applicable) to use the API.
"""
if not parse_u... | Fix #<I>: attribute must be initialized before API usage. | py |
diff --git a/aegean.py b/aegean.py
index <HASH>..<HASH> 100755
--- a/aegean.py
+++ b/aegean.py
@@ -636,16 +636,21 @@ def load_globals(filename, hdu_index=0, bkgin=None, rmsin=None, beam=None, verb=
debug = logging.getLogger('Aegean').isEnabledFor(logging.DEBUG)
- if mask is not None and region_available:
+ ... | Aegean now warns when a region file has been supplied but cannot be used | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -335,16 +335,6 @@ intersphinx_mapping = {
'matplotlib' : ('http://matplotlib.sourceforge.net/', None),
}
-
-import ROOT
-
-def skip_ROOT_member(app, what, name, obj, skip, options):
- return skip... | DOCS: don't import ROOT if on readthedocs | py |
diff --git a/pyparsing/helpers.py b/pyparsing/helpers.py
index <HASH>..<HASH> 100644
--- a/pyparsing/helpers.py
+++ b/pyparsing/helpers.py
@@ -664,13 +664,21 @@ class OpAssoc(Enum):
RIGHT = 2
-InfixNotationOperatorSpec = Tuple[
- Union[
- ParserElement, str, Tuple[Union[ParserElement, str], Union[Par... | Better type matching for infix_notation operator specs | py |
diff --git a/test/test_lzma.py b/test/test_lzma.py
index <HASH>..<HASH> 100644
--- a/test/test_lzma.py
+++ b/test/test_lzma.py
@@ -514,7 +514,9 @@ class FileTestCase(unittest.TestCase):
f = LZMAFile(TESTFN)
try:
self.assertEqual(f.fileno(), f._fp.fileno())
- sel... | assertIsInstance added in Python <I> and <I> | py |
diff --git a/lackey/PlatformManagerWindows.py b/lackey/PlatformManagerWindows.py
index <HASH>..<HASH> 100644
--- a/lackey/PlatformManagerWindows.py
+++ b/lackey/PlatformManagerWindows.py
@@ -426,7 +426,8 @@ class PlatformManagerWindows(object):
("bmiColors", ctypes.wintypes.DWORD*3)]
H... | Testing a fix for #<I> Modifying the BitBlt call to include layered windows. | py |
diff --git a/lightflow/models/dag.py b/lightflow/models/dag.py
index <HASH>..<HASH> 100644
--- a/lightflow/models/dag.py
+++ b/lightflow/models/dag.py
@@ -120,7 +120,8 @@ class Dag:
self._graph.clear()
for parent, children in schema.items():
if children is not None:
- child... | Add missing check for children dict in the dag definition | py |
diff --git a/backoff.py b/backoff.py
index <HASH>..<HASH> 100644
--- a/backoff.py
+++ b/backoff.py
@@ -131,10 +131,10 @@ def on_predicate(wait_gen,
up. In the case of failure, the result of the last attempt
will be returned. The default value of None means their
is no limit to th... | Keep width of docstrings in check | py |
diff --git a/src/naarad/metrics/metric.py b/src/naarad/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/metric.py
+++ b/src/naarad/metrics/metric.py
@@ -170,8 +170,7 @@ class Metric(object):
def calculate_stats(self):
stats_to_calculate = ['mean', 'std', 'min', 'max'] # TODO: get input ... | finer grain (1 percent) CDF support instead of 5 percent | py |
diff --git a/pyqode/core/panels/folding.py b/pyqode/core/panels/folding.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/panels/folding.py
+++ b/pyqode/core/panels/folding.py
@@ -423,6 +423,7 @@ class FoldingPanel(Panel):
Collapses all triggers and makes all blocks with fold level > 0
invisible.
... | Fix a bug with successive collapse all, previous decorations must be removed | py |
diff --git a/juju/client/connection.py b/juju/client/connection.py
index <HASH>..<HASH> 100644
--- a/juju/client/connection.py
+++ b/juju/client/connection.py
@@ -651,10 +651,17 @@ class Connection:
# so in order to be compatible forwards and backwards we speak a
# common facade versions.
... | Handle no common facade version Ensure we handle issues where we can't find a common version of a facade | py |
diff --git a/tests/pyapi-gitlab_test.py b/tests/pyapi-gitlab_test.py
index <HASH>..<HASH> 100644
--- a/tests/pyapi-gitlab_test.py
+++ b/tests/pyapi-gitlab_test.py
@@ -126,6 +126,8 @@ class GitlabTest(unittest.TestCase):
assert isinstance(self.git.unprotectrepositorybranch(2, "master"), dict)
assert is... | updating tests for listrepositorycommits Tests for page and per_page attributes in listrepositorycommits | py |
diff --git a/tinman/data.py b/tinman/data.py
index <HASH>..<HASH> 100644
--- a/tinman/data.py
+++ b/tinman/data.py
@@ -66,7 +66,7 @@ class DataLayer:
else:
for connection in connections:
if connections[connection]['driver'] == 'SQLAlchemy':
- logging.debug('Comm... | Fix log output in begin() and rollback() | py |
diff --git a/fluids/jet_pump.py b/fluids/jet_pump.py
index <HASH>..<HASH> 100644
--- a/fluids/jet_pump.py
+++ b/fluids/jet_pump.py
@@ -352,7 +352,10 @@ def liquid_jet_pump(rhop, rhos, Kp=0.0, Ks=0.1, Km=.15, Kd=0.1,
Liquid Flow. 85032. ESDU International PLC, 1985.
'''
solution_vars = ['d_nozzle', 'd... | Compat fix for jet pump in python 3 | py |
diff --git a/spyderlib/rope_patch.py b/spyderlib/rope_patch.py
index <HASH>..<HASH> 100644
--- a/spyderlib/rope_patch.py
+++ b/spyderlib/rope_patch.py
@@ -193,9 +193,7 @@ def apply():
return doc
def _get_single_function_docstring(self, pyfunction):
- signature = self._g... | Rope patch: Eliminate unnecessary double return on a function Update Issue <I> Status: Fixed - Thanks to Sergey Satskiy for noticing it. | py |
diff --git a/test/test_context.py b/test/test_context.py
index <HASH>..<HASH> 100644
--- a/test/test_context.py
+++ b/test/test_context.py
@@ -768,12 +768,11 @@ class TestCartoContext(unittest.TestCase):
'int32': 'numeric',
'object': 'text',
'bool': 'boolean',
- 'dateti... | update test for date -> timestamp update | py |
diff --git a/salt/output/__init__.py b/salt/output/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/output/__init__.py
+++ b/salt/output/__init__.py
@@ -77,7 +77,7 @@ def get_printout(out, opts=None, **kwargs):
if opts.get('force_color', False):
opts['color'] = True
- elif opts.get('no_... | on windows, switch so that colors are off by default, since it isn’t supported by the default console. —force-color can still be used if it is needed. | py |
diff --git a/pykeepass/pykeepass.py b/pykeepass/pykeepass.py
index <HASH>..<HASH> 100644
--- a/pykeepass/pykeepass.py
+++ b/pykeepass/pykeepass.py
@@ -49,7 +49,8 @@ class PyKeePass():
@property
def entries(self):
res = self.__xpath('.//Entry', first_match_only=False)
- return [x for x in res i... | fix so entries doesnt throw exception when db is empty | py |
diff --git a/test/integration/containerized/test_container_management.py b/test/integration/containerized/test_container_management.py
index <HASH>..<HASH> 100644
--- a/test/integration/containerized/test_container_management.py
+++ b/test/integration/containerized/test_container_management.py
@@ -75,8 +75,9 @@ def tes... | Add a tag to skip test if podman is not available | py |
diff --git a/contract/migrations/12.0.4.0.0/pre-migration.py b/contract/migrations/12.0.4.0.0/pre-migration.py
index <HASH>..<HASH> 100644
--- a/contract/migrations/12.0.4.0.0/pre-migration.py
+++ b/contract/migrations/12.0.4.0.0/pre-migration.py
@@ -101,6 +101,13 @@ def create_contract_records(cr):
sql.Id... | [MIG] contract: Create contract sequence for allowing to create records | py |
diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/symbolic.py
+++ b/mythril/analysis/symbolic.py
@@ -12,9 +12,9 @@ from mythril.laser.ethereum.strategy.basic import (
ReturnWeightedRandomStrategy,
)
-from mythril.laser.ethereum.plugins.im... | use plugin loader and factory This removes the dependency between the actual implementations of plugins and other parts of mythril | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ setup(
author='Nigel Dokter',
author_email='nigeldokter@gmail.com',
url='https://github.com/ndokter/dsmr_parser',
- version='0.6',
+ version='0.7',
packages=find_packages(),
install_... | update version number to <I> | py |
diff --git a/redbeat/schedulers.py b/redbeat/schedulers.py
index <HASH>..<HASH> 100644
--- a/redbeat/schedulers.py
+++ b/redbeat/schedulers.py
@@ -130,6 +130,7 @@ def get_redis(app=None):
password=redis_options.get('password'),
db=redis_options.get('db', 0),
decode_res... | feature: support sentinel_kwargs config | py |
diff --git a/salt/modules/ansiblegate.py b/salt/modules/ansiblegate.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ansiblegate.py
+++ b/salt/modules/ansiblegate.py
@@ -124,6 +124,10 @@ class AnsibleModuleCaller(object):
'''
module = self._resolver.load_module(module)
+ if not hasattr(modul... | Prevent dummy modules to be executed to nothing | py |
diff --git a/python/segyio/segy.py b/python/segyio/segy.py
index <HASH>..<HASH> 100644
--- a/python/segyio/segy.py
+++ b/python/segyio/segy.py
@@ -1044,7 +1044,7 @@ class SegyFile(object):
return "Text(external_headers = {})".format(self.ext_headers)
def __str__(inner):
- ... | Coerce str in f.text.__str__ The zip(*iter) really works best on strings, and it covers over python 2-3 differences, which could lead to some inputs giving NULL to the segyio extension. | py |
diff --git a/pymc3/distributions/continuous.py b/pymc3/distributions/continuous.py
index <HASH>..<HASH> 100644
--- a/pymc3/distributions/continuous.py
+++ b/pymc3/distributions/continuous.py
@@ -170,10 +170,12 @@ class Uniform(Continuous):
Parameters
----------
- point : Point, optional
- ... | Edited random and logp docstrings | py |
diff --git a/pydev_coverage.py b/pydev_coverage.py
index <HASH>..<HASH> 100644
--- a/pydev_coverage.py
+++ b/pydev_coverage.py
@@ -50,7 +50,7 @@ def execute():
else:
invalid_files.append(v)
if invalid_files:
- sys.stderr.write('Invalid files not passed t... | More robust creation of the coverage.xml Added final line break to some stderr log messages. | py |
diff --git a/rtv/config.py b/rtv/config.py
index <HASH>..<HASH> 100644
--- a/rtv/config.py
+++ b/rtv/config.py
@@ -67,9 +67,6 @@ def build_parser():
parser.add_argument(
'--enable-media', dest='enable_media', action='store_const', const=True,
help='Open external links using programs defined in th... | removed command line flag for max-comment-cols | py |
diff --git a/Xlib/ext/xinput.py b/Xlib/ext/xinput.py
index <HASH>..<HASH> 100644
--- a/Xlib/ext/xinput.py
+++ b/Xlib/ext/xinput.py
@@ -618,6 +618,15 @@ DeviceEventData = rq.Struct(
ButtonState('buttons'),
)
+DeviceChangedEventData = rq.Struct(
+ DEVICEID('deviceid'),
+ rq.Card32('time'),
+ rq.LengthOf(... | xinput: add DeviceChangedEvent support | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.