diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/msmbuilder/cluster/regularspatial.py b/msmbuilder/cluster/regularspatial.py
index <HASH>..<HASH> 100644
--- a/msmbuilder/cluster/regularspatial.py
+++ b/msmbuilder/cluster/regularspatial.py
@@ -54,7 +54,8 @@ class _RegularSpatial(ClusterMixin, TransformerMixin):
Attributes
----------
cluster... | RegularSpatial: move _split_indices call to RegularSpatial instead of _RegularSpatial | py |
diff --git a/src/wormhole/test/test_cli.py b/src/wormhole/test/test_cli.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/test/test_cli.py
+++ b/src/wormhole/test/test_cli.py
@@ -1248,12 +1248,15 @@ class Server(unittest.TestCase):
'--websocket-protocol-option=b=true',
'--websocket-pro... | test_cli: one more test, with argument split off from the name This is probably an easier way to pass in JSON with embedded spaces: wormhole-server start --websocket-protocol-option 'x=["foo": "bar"]' | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -219,7 +219,7 @@ class ForwardCommand(Command):
else: # attach original mode
# attach original msg
- mail.set_default_type('messag... | fix ctype in forward --attach this correctly sets the content type of attached forwarded mails to 'message/rfc<I>'. | py |
diff --git a/glue/lal.py b/glue/lal.py
index <HASH>..<HASH> 100644
--- a/glue/lal.py
+++ b/glue/lal.py
@@ -203,6 +203,8 @@ class LIGOTimeGPS(object):
"""
return LIGOTimeGPS(self.seconds * other, self.nanoseconds * other)
+ __rmul__ = __mul__
+
def __div__(self, other):
"""
Divide a LIGOTimeGPS by a numb... | Multiplication of a LIGOTimeGPS by a scalar commutes. | py |
diff --git a/pynlpl/formats/folia.py b/pynlpl/formats/folia.py
index <HASH>..<HASH> 100644
--- a/pynlpl/formats/folia.py
+++ b/pynlpl/formats/folia.py
@@ -6800,6 +6800,14 @@ class Document(object):
self.annotationdefaults[annotationtype] = {}
self.annotationdefaults[annotationtype][set] = kwargs
... | implemented sanity checks for aliases on declaration #<I> | py |
diff --git a/wsproto/frame_protocol.py b/wsproto/frame_protocol.py
index <HASH>..<HASH> 100644
--- a/wsproto/frame_protocol.py
+++ b/wsproto/frame_protocol.py
@@ -520,9 +520,6 @@ class FrameProtocol(object):
def _serialize_frame(self, opcode, payload=b'', fin=True):
rsv = RsvBits(False, False, False)
... | If an extension is in our list then it's enabled. | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -149,7 +149,7 @@ IEMD5NotFound = 31079 # File md5 not found, you should use upload API to upload
# ==== NOTE ====
# I use server auth, because it's the only possible method to protect the SecretKey.
# If you don't like that an... | Automatically set ServerAuth to false if there's no SecretKey | py |
diff --git a/deploy-cluster-aws/launch_ec2_nodes.py b/deploy-cluster-aws/launch_ec2_nodes.py
index <HASH>..<HASH> 100644
--- a/deploy-cluster-aws/launch_ec2_nodes.py
+++ b/deploy-cluster-aws/launch_ec2_nodes.py
@@ -53,6 +53,23 @@ ec2 = boto3.resource(service_name='ec2')
# See http://boto3.readthedocs.org/en/latest/gui... | Ensure newly-launched AWS instances don't have same tag as existing instances | py |
diff --git a/backtrader/observers/buysell.py b/backtrader/observers/buysell.py
index <HASH>..<HASH> 100644
--- a/backtrader/observers/buysell.py
+++ b/backtrader/observers/buysell.py
@@ -28,7 +28,7 @@ from ..observer import LineObserver, ObserverPot
class _BuySellObserver(LineObserver):
lines = ('buy', 'sell',)
... | buysell change of plotting param (adapt to new plot) | py |
diff --git a/hwt/code.py b/hwt/code.py
index <HASH>..<HASH> 100644
--- a/hwt/code.py
+++ b/hwt/code.py
@@ -119,10 +119,7 @@ class Switch(StmCntx):
"""
s = self
for val, statements in tupesValStmnts:
- if val is None:
- s = s.Default(*statements)
- else:
- ... | Switch rm case with val == None is default functionality | py |
diff --git a/textx/export.py b/textx/export.py
index <HASH>..<HASH> 100644
--- a/textx/export.py
+++ b/textx/export.py
@@ -127,7 +127,7 @@ def model_export(model, file_name):
attr_value.replace('\n', r'\n')
attrs += "{}{}:{}={}\\l".format(
... | Escaping for quotation marks in export. | py |
diff --git a/avatar/models.py b/avatar/models.py
index <HASH>..<HASH> 100644
--- a/avatar/models.py
+++ b/avatar/models.py
@@ -9,7 +9,7 @@ from django.core.files import File
from django.core.files.base import ContentFile
from django.core.files.storage import get_storage_class
from django.utils.module_loading import ... | Django <I>: ugettext_lazy -> gettext_lazy ugettext_lazy` was deprecated in <I> and no longer used in django v3 <URL> | py |
diff --git a/pghoard/transfer.py b/pghoard/transfer.py
index <HASH>..<HASH> 100644
--- a/pghoard/transfer.py
+++ b/pghoard/transfer.py
@@ -173,10 +173,11 @@ class TransferAgent(Thread):
if result.get("call_callback", True) and file_to_transfer.get("callback_queue"):
file_to_transfer["callb... | transfer: Log origin host of transferred files This helps in debugging problems of where did we get a particular file. | py |
diff --git a/MicroTokenizer/DAG/dictionary/dictionary.py b/MicroTokenizer/DAG/dictionary/dictionary.py
index <HASH>..<HASH> 100644
--- a/MicroTokenizer/DAG/dictionary/dictionary.py
+++ b/MicroTokenizer/DAG/dictionary/dictionary.py
@@ -15,15 +15,7 @@ class DictionaryData(object):
with open(dict_file) as fd:
... | Update code for new dict.txt format | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,5 +65,5 @@ setup(
"ray": ray_deps,
"all": all_deps,
},
- python_requires=">=3.5",
+ python_requires=">=3.6.1",
) | Updated required python version to <I>+ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,11 @@ from distutils.spawn import find_executable
from setuptools import setup
from setuptools.command.build_py import build_py
+<<<<<<< HEAD
import gameversion_autogen as ver
+=======
+import gameversion_autoge... | Initial autogen commit for testing <I> | py |
diff --git a/lexicon/providers/online.py b/lexicon/providers/online.py
index <HASH>..<HASH> 100644
--- a/lexicon/providers/online.py
+++ b/lexicon/providers/online.py
@@ -25,24 +25,12 @@ class Provider(BaseProvider):
def __init__(self, options, engine_overrides=None):
super(Provider, self).__init__(option... | online api change: domain_id became simply domain name | py |
diff --git a/sentry_sdk/transport.py b/sentry_sdk/transport.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/transport.py
+++ b/sentry_sdk/transport.py
@@ -136,7 +136,7 @@ class HttpTransport(Transport):
try:
if response.status == 429:
self._disabled_until = datetime.utcnow() + tim... | fix: Default to sixty seconds if no Retry-After is given | py |
diff --git a/django_afip/admin.py b/django_afip/admin.py
index <HASH>..<HASH> 100644
--- a/django_afip/admin.py
+++ b/django_afip/admin.py
@@ -170,9 +170,13 @@ class ReceiptAdmin(admin.ModelAdmin):
friendly_total_amount.short_description = _('total amount')
def validated(self, obj):
- return (
- ... | Use icon instead of '-' for non-validated receipts | py |
diff --git a/mobly/base_test.py b/mobly/base_test.py
index <HASH>..<HASH> 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -605,7 +605,9 @@ class BaseTestClass(object):
except signals.TestAbortSignal:
raise
except Exception as e:
- logging.exception(e)
+ logging... | Make a logging statement more contextual. (#<I>) | py |
diff --git a/flink-python/pyflink/fn_execution/beam/beam_sdk_worker_main.py b/flink-python/pyflink/fn_execution/beam/beam_sdk_worker_main.py
index <HASH>..<HASH> 100644
--- a/flink-python/pyflink/fn_execution/beam/beam_sdk_worker_main.py
+++ b/flink-python/pyflink/fn_execution/beam/beam_sdk_worker_main.py
@@ -25,6 +25,... | [FLINK-<I>][python] Disable cleanup the Python UDFs which are inactive for a few minutes This would avoid reinitializing the Python UDFs which usually is a heavy operation in scenarios such as machine learning, e.g., loading a big ML model This closes #<I>. | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -911,7 +911,7 @@ class CondorDAGNode:
self.__input_files = []
self.__dax_collapse = None
self.__vds_group = None
- if isinstance(self,CondorDAGJob) and job.get_universe()=='sta... | ihope working in standard and vanilla | py |
diff --git a/plexapi/__init__.py b/plexapi/__init__.py
index <HASH>..<HASH> 100644
--- a/plexapi/__init__.py
+++ b/plexapi/__init__.py
@@ -14,9 +14,9 @@ CONFIG = PlexConfig(CONFIG_PATH)
# PlexAPI Settings
PROJECT = 'PlexAPI'
-VERSION = '3.0.3'
+VERSION = '3.0.4'
TIMEOUT = CONFIG.get('plexapi.timeout', 30, int)
-X_... | Long time since a release lets make one. | py |
diff --git a/BAC0/core/utils/notes.py b/BAC0/core/utils/notes.py
index <HASH>..<HASH> 100644
--- a/BAC0/core/utils/notes.py
+++ b/BAC0/core/utils/notes.py
@@ -85,6 +85,7 @@ def update_log_level(
update_stdout_lvl = False
if level:
+ logging.getLogger("BAC0_Root.BAC0.scripts.Base.Base").disabled = Fal... | Fix a bug in log_level definition, if using error it would fail | py |
diff --git a/pyzotero/tests.py b/pyzotero/tests.py
index <HASH>..<HASH> 100644
--- a/pyzotero/tests.py
+++ b/pyzotero/tests.py
@@ -92,6 +92,7 @@ def mock_response(req):
class MyHTTPSHandler(urllib2.HTTPSHandler):
""" Mock response for urllib2
"""
+ # Change HTTPSHandler and https_open to http for non-http... | Adding a comment about http/https handlers to the tests | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -29,6 +29,7 @@ if not settings.configured:
'django.contrib.admin',
'django.contrib.sessions',
'parler',
+ 'parler.tests.testapp',
),
TEST_RUNNER='... | runtests: include testapp in INSTALLED_APPS by default | py |
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_service.py
+++ b/raiden/raiden_service.py
@@ -28,19 +28,9 @@ from raiden.utils import (
isaddress,
pex,
GLOBAL_CTX,
- camel_to_snake_case,
netting_channel_to_api_dict
)
-from raiden... | Fixes after rebase to master | py |
diff --git a/xbee/backend/zigbee.py b/xbee/backend/zigbee.py
index <HASH>..<HASH> 100644
--- a/xbee/backend/zigbee.py
+++ b/xbee/backend/zigbee.py
@@ -233,6 +233,14 @@ class ZigBee(object):
{'name': 'reserved', 'len': 1}
]
},
+ b'\xA4': {
+ 'name': 'regi... | Added 'register_device_status' support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
author_email = "mgreene@securityinnovation.com",
license = pgpy._author.__license__,
url = "https://github.com/Commod0re/PGPy",
- download_url = "",
+ do... | added download_url since I know it, now! | 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 find_packages, setup
setup(
name='graphene-django',
- version='1.0',
+ version='1.1.0',
description='Graphene Django integration',
long_description=open('README.rst... | Updated version to <I> | py |
diff --git a/check50.py b/check50.py
index <HASH>..<HASH> 100755
--- a/check50.py
+++ b/check50.py
@@ -89,7 +89,7 @@ def main():
"print_success": False
}
username, commit_hash = submit50.submit("check50", identifier, prompts=prompts)
-
+
# Wait until p... | spawn -> spawnu in python3 | py |
diff --git a/pifpaf/drivers/gnocchi.py b/pifpaf/drivers/gnocchi.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/gnocchi.py
+++ b/pifpaf/drivers/gnocchi.py
@@ -117,6 +117,10 @@ class GnocchiDriver(drivers.Driver):
storage_config = {
"ceph_conffile": storage_parsed.path,
}
+... | gnocchi: allow to use redis as storage | py |
diff --git a/lib/svtplay_dl/service/hbo.py b/lib/svtplay_dl/service/hbo.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/hbo.py
+++ b/lib/svtplay_dl/service/hbo.py
@@ -9,7 +9,7 @@ from svtplay_dl.utils.urllib import urlparse
from svtplay_dl.service import Service
from svtplay_dl.utils import get_http_data,... | hbo: convert into new video fetcher | py |
diff --git a/ledgerautosync/converter.py b/ledgerautosync/converter.py
index <HASH>..<HASH> 100644
--- a/ledgerautosync/converter.py
+++ b/ledgerautosync/converter.py
@@ -116,7 +116,7 @@ class Posting(object):
self.unit_price = unit_price
def format(self, indent=4):
- space_count = 52 - indent - ... | ledger-mode uses <I> spaces to align ledger transactions | py |
diff --git a/bcbio/ngsalign/postalign.py b/bcbio/ngsalign/postalign.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/postalign.py
+++ b/bcbio/ngsalign/postalign.py
@@ -149,7 +149,9 @@ def _sam_to_grouped_umi_cl(data, umi_consensus, tx_out_file):
cmd += "fgbio {jvm_opts} AnnotateBamWithUmis -i /dev/stdin -f ... | umis: use python2 executable when installed in conda environment | py |
diff --git a/skyfield/sgp4lib.py b/skyfield/sgp4lib.py
index <HASH>..<HASH> 100644
--- a/skyfield/sgp4lib.py
+++ b/skyfield/sgp4lib.py
@@ -189,7 +189,12 @@ class EarthSatellite(VectorFunction):
half_second = 0.5 / DAY_S
orbits_per_minute = self.model.no_kozai / tau
orbits_per_day = 24 * 60 * ... | Fix #<I> by protecting against zero orbits per day Otherwise, the user gets `ZeroDivisionError: float division by zero`. | py |
diff --git a/dev/run-tests.py b/dev/run-tests.py
index <HASH>..<HASH> 100755
--- a/dev/run-tests.py
+++ b/dev/run-tests.py
@@ -405,10 +405,11 @@ def run_scala_tests(build_tool, hadoop_version, test_modules, excluded_tags):
test_profiles += ['-Dtest.exclude.tags=' + ",".join(excluded_tags)]
# set up java... | [SPARK-<I>][INFRA][FOLLOWUP] Fix the key error when looking in os.environ ### What changes were proposed in this pull request? i broke run-tests.py for non-PRB builds in this PR: <URL> | py |
diff --git a/src/hunter.py b/src/hunter.py
index <HASH>..<HASH> 100644
--- a/src/hunter.py
+++ b/src/hunter.py
@@ -145,7 +145,7 @@ class Event(object):
@CachedProperty
def module(self):
- return self.frame.f_globals.get('__name__', None)
+ return self.frame.f_globals.get('__name__', '')
... | Use "" as default for module. | py |
diff --git a/gnupg/_parsers.py b/gnupg/_parsers.py
index <HASH>..<HASH> 100644
--- a/gnupg/_parsers.py
+++ b/gnupg/_parsers.py
@@ -820,7 +820,7 @@ class GenKey(object):
#: 'P':= primary, 'S':= subkey, 'B':= both
self.type = None
self.fingerprint = None
- self.status = None
+ sel... | Handle TRUST_ and PKA_TRUST_ statuses during key generation. * FIXES Issue #<I>: <URL> | py |
diff --git a/tests/integration/cloud/clouds/test_vmware.py b/tests/integration/cloud/clouds/test_vmware.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cloud/clouds/test_vmware.py
+++ b/tests/integration/cloud/clouds/test_vmware.py
@@ -110,3 +110,28 @@ class VMWareTest(CloudTest):
self.assertIn(i_clone_... | introduce a test that should also clean up snapshots in vmware tests | py |
diff --git a/tests/test_codec.py b/tests/test_codec.py
index <HASH>..<HASH> 100644
--- a/tests/test_codec.py
+++ b/tests/test_codec.py
@@ -37,3 +37,12 @@ def test_translit_one_ascii():
assert data.encode('translit/one/ascii', 'replace') == '? ? woof meaw'
+def test_ascii_level_characters_remain():
+ assert ... | Added tests for zero width and ascii character conversion | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(
name = "pyapi-gitlab",
- version = "7.5.3",
+ version = "7.5.4",
packages = find_packages(),
install_requires = ['requests'],
extras_r... | Bump the version and change the license on the setup.py | py |
diff --git a/aioftp/server.py b/aioftp/server.py
index <HASH>..<HASH> 100644
--- a/aioftp/server.py
+++ b/aioftp/server.py
@@ -107,6 +107,9 @@ class BaseServer:
def close(self):
self.server.close()
+ for reader, writer in self.connections:
+
+ writer.close()
@asyncio.coroutine
... | closing connection when shutdown the server cleaning exceptions | py |
diff --git a/cider/_sh.py b/cider/_sh.py
index <HASH>..<HASH> 100644
--- a/cider/_sh.py
+++ b/cider/_sh.py
@@ -143,7 +143,7 @@ def spawn(args, **kwargs):
tty.putdebug(" ".join(args), debug)
if check_output:
- return subprocess.check_output(args, **params)
+ return subprocess.check_output(args,... | Fix exception when restoring on Python 3 (#<I>) | py |
diff --git a/gunicorn_console.py b/gunicorn_console.py
index <HASH>..<HASH> 100755
--- a/gunicorn_console.py
+++ b/gunicorn_console.py
@@ -125,19 +125,23 @@ def handle_keypress(screen):
move_selection(reverse=True)
elif key in ("A", "+"):
send_signal("TTIN")
- gunicorns[selected_pid]["work... | Add more "no gunicorn selected" protection. Trying a command before cursoring into a selection was aborting. | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -25,11 +25,20 @@ class OpenIDServer(object):
mode = args['openid.mode']
if mode == 'associate':
- return self.doAssociate(args)
+ return self.do_associate(args)
- raise No... | [project @ Changed naming conventions to work better with openid names] | py |
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_multilevel.py
+++ b/pandas/tests/test_multilevel.py
@@ -534,7 +534,22 @@ class TestMultiLevel(unittest.TestCase):
self.assert_((df[2000, 1, 10] == df[2000, 1, 7]).all())
def... | TST: test case for MultiIndex data alignment | py |
diff --git a/scapy/contrib/isotp.py b/scapy/contrib/isotp.py
index <HASH>..<HASH> 100644
--- a/scapy/contrib/isotp.py
+++ b/scapy/contrib/isotp.py
@@ -664,17 +664,11 @@ class CANReceiverThread(Thread):
ins = self.socket
while 1:
- pkts = ins.sniff(timeout=1, count=1)
- if len(p... | Refactoring of ReceiveThread in ISOTPSoftSocket This should remove packet losses in ISOTPSoftSocket | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -1379,7 +1379,7 @@ def check_state_result(running):
# return false when hosts return a list instead of a dict
return False
- if state_r... | It's `result` not `return`. | py |
diff --git a/osmnx/plot.py b/osmnx/plot.py
index <HASH>..<HASH> 100644
--- a/osmnx/plot.py
+++ b/osmnx/plot.py
@@ -559,7 +559,7 @@ def plot_footprints(
dpi=600,
):
"""
- Plot a GeoDataFrame of footprints.
+ Plot a GeoDataFrame of geospatial entities' footprints.
Parameters
----------
@@ -59... | only plot polygon and multipolygon footprints | py |
diff --git a/datajoint/table.py b/datajoint/table.py
index <HASH>..<HASH> 100644
--- a/datajoint/table.py
+++ b/datajoint/table.py
@@ -412,7 +412,7 @@ class Table(QueryExpression):
'Set dj.config["safemode"] = False or complete the ongoing transaction first.')
graph = conn.dep... | use dict rather than OrderDict in table.py in Python <I>+ | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -84,6 +84,8 @@ def classical(srcs, tile, cmaker, monitor):
"""
cmaker.init_monitoring(monitor)
if tile is N... | Added comments [ci skip] | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -920,4 +920,4 @@ def _dump_list(v):
def _dump_float(v):
- return "{0:.16g}".format(v).replace("e+0", "e+").replace("e-0", "e-")
+ return "{0:.16}".format(v).replace("e+0", "e+").replace("e-0", "e-") | #<I>: floats like <I> should remain floats when dumped | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -99,11 +99,16 @@ def __get_version(version, version_info):
return version, version_info
elif parsed_version_info < version_info:
warnings.warn(
+ 'T... | Show the information about the parser vs defined version numbers. | py |
diff --git a/AlphaTwirl/HeppyResult/ReadComponentConfig.py b/AlphaTwirl/HeppyResult/ReadComponentConfig.py
index <HASH>..<HASH> 100755
--- a/AlphaTwirl/HeppyResult/ReadComponentConfig.py
+++ b/AlphaTwirl/HeppyResult/ReadComponentConfig.py
@@ -3,11 +3,14 @@
##____________________________________________________________... | log warning when cannot open the config file in ReadComponentConfig | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -314,6 +314,25 @@ class LoginTest(UserMixin, TestCase):
"step in the wizard.",
'token')
+ @patch('two_factor.views.utils.logger')
+ def test_login_different_user_on_exi... | Added a test that reproduces issue #<I> | py |
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_fast.py
+++ b/angr/analyses/cfg_fast.py
@@ -1532,6 +1532,12 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
ptr_str = self._ffi.unpack(self._ff... | correctly handle pointers that are out of the scope of current binary. | py |
diff --git a/geomdl/visualization/VisPlotly.py b/geomdl/visualization/VisPlotly.py
index <HASH>..<HASH> 100644
--- a/geomdl/visualization/VisPlotly.py
+++ b/geomdl/visualization/VisPlotly.py
@@ -12,6 +12,14 @@ import numpy as np
import plotly
from plotly import graph_objs
+# Migrate to Plotly v4.x
+try:
+ # Onli... | Add support for Plotly v4.x | py |
diff --git a/bingo/models.py b/bingo/models.py
index <HASH>..<HASH> 100644
--- a/bingo/models.py
+++ b/bingo/models.py
@@ -40,7 +40,7 @@ class Word(models.Model):
"""
word = models.CharField(max_length=255, unique=True)
is_middle = models.BooleanField(default=False)
- site = models.ManyToManyField(Sit... | fix: allow Word.site to be empty, so a Word can be disabled | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -22,10 +22,10 @@ def assertDeepAlmostEqual(expected, actual, *args, **kwargs):
precision).
"""
- is_root = not '__trace' in kwargs
+ is_root = '__trace' not in kwar... | Additional minor linting fix. | py |
diff --git a/otree_redwood/views.py b/otree_redwood/views.py
index <HASH>..<HASH> 100644
--- a/otree_redwood/views.py
+++ b/otree_redwood/views.py
@@ -82,8 +82,9 @@ def AppSpecificExportCSV(app_name, display_name, get_output_table):
)
w = csv.writer(response)
- for table in sessio... | Write table as csv. | py |
diff --git a/zipline/gens/sort.py b/zipline/gens/sort.py
index <HASH>..<HASH> 100644
--- a/zipline/gens/sort.py
+++ b/zipline/gens/sort.py
@@ -20,9 +20,10 @@ import logbook
from collections import deque
from zipline import ndict
-from zipline.gens.utils import \
- assert_datasource_unframe_protocol, \
+from zip... | Changes import to use tuple-like syntax. | py |
diff --git a/lib/flows/cron/data_retention.py b/lib/flows/cron/data_retention.py
index <HASH>..<HASH> 100644
--- a/lib/flows/cron/data_retention.py
+++ b/lib/flows/cron/data_retention.py
@@ -128,7 +128,7 @@ class CleanInactiveClients(cronjobs.SystemCronFlow):
deadline = rdfvalue.RDFDatetime().Now() - inactive_cl... | Reduced batch size for InactiveClients since recursive deletes can take a long time | py |
diff --git a/src/mockito.py b/src/mockito.py
index <HASH>..<HASH> 100644
--- a/src/mockito.py
+++ b/src/mockito.py
@@ -194,6 +194,7 @@ def verifyNoMoreInteractions(*mocks):
def verifyZeroInteractions(*mocks):
verifyNoMoreInteractions(*mocks)
+#TODO how to generate documentation from python?
def a... | added TODO about generating docs | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -40,7 +40,7 @@ def next_release(major=False, minor=False, patch=True):
import semantic_version
prev = run('git describe --abbrev=0 --tags', hide=True).stdout
- ver = semantic_version.Version(prev)
+ ver = sem... | [TASK] Update tasks Make sure selecting the next version works correctly, and the ability to clean up the workspace cleans up items in the sub directories. | py |
diff --git a/flowcraft/templates/mapping2json.py b/flowcraft/templates/mapping2json.py
index <HASH>..<HASH> 100755
--- a/flowcraft/templates/mapping2json.py
+++ b/flowcraft/templates/mapping2json.py
@@ -273,12 +273,12 @@ def main(depth_file, json_dict, cutoff, sample_id):
}],
"sample": sample_id,
... | fixed plotData for mapping patlas | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,4 +30,3 @@ setup(name='bong',
'Programming Language :: Python :: 3.4',
'Topic :: Office/Business'
])
- | Remove trailing newline from setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ reqs = [str(ir.req) for ir in install_reqs]
setup(
name="napalm-base",
- version='0.19.2',
+ version='0.20.0',
packages=find_packages(),
author="David Barroso",
author_email="dbarros... | Version bump to <I> (#<I>) | py |
diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py
index <HASH>..<HASH> 100644
--- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py
+++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py
@... | add '_is_deinited()' to guard against reads/writes on an inactive pin. | py |
diff --git a/tests/test_context.py b/tests/test_context.py
index <HASH>..<HASH> 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -27,7 +27,7 @@ class ContextTest(unittest.TestCase):
#print(res)
# At Home
# Phone is charging, sitting still
- self.assertEqual(r... | build failed due to different context on CI - testing string len instead | py |
diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py
index <HASH>..<HASH> 100755
--- a/tests/test_cookiecutter_generation.py
+++ b/tests/test_cookiecutter_generation.py
@@ -282,3 +282,20 @@ def test_error_if_incompatible(cookies, context, invalid_context):
assert result.exit... | Adding test to validate pycharm docs are removed appropriately | py |
diff --git a/modpypes/__init__.py b/modpypes/__init__.py
index <HASH>..<HASH> 100755
--- a/modpypes/__init__.py
+++ b/modpypes/__init__.py
@@ -6,3 +6,4 @@ __version__ = '0.2.4'
from . import pdu
from . import app
+ | trailing EOL at EOF | py |
diff --git a/tests/unit/states/test_environ.py b/tests/unit/states/test_environ.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_environ.py
+++ b/tests/unit/states/test_environ.py
@@ -27,12 +27,11 @@ class TestEnvironState(TestCase, LoaderModuleMockMixin):
return {envstate: loader_globals, envmodule... | Fixing cleanUp method to restore environment The clean-up method was not reliabliy restoring sys.environment on windows. Using Mock's patch to cleanup more reliably. | py |
diff --git a/IndexedRedis/fields/chain.py b/IndexedRedis/fields/chain.py
index <HASH>..<HASH> 100644
--- a/IndexedRedis/fields/chain.py
+++ b/IndexedRedis/fields/chain.py
@@ -15,8 +15,6 @@ try:
except NameError:
unicode = str
-# TODO: Maybe should be using _isIrNull instead of _isNullValue ?
-
class IRFieldChain(... | Update field chain to use new internal _fromStorage and _fromInput, reducing the amount of checks and flipflopping | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -727,3 +727,12 @@ def test_keep_comments():
"from a import c # My Comment2\n")
assert SortImports(file_contents=test_input_wll_merge, combine_as_imports=True).output == \
... | Add test case for when comments would cause first line to go past line length | py |
diff --git a/scdl/scdl.py b/scdl/scdl.py
index <HASH>..<HASH> 100755
--- a/scdl/scdl.py
+++ b/scdl/scdl.py
@@ -572,6 +572,7 @@ def download_track(track, playlist_name=None, playlist_file=None):
logger.info('{0} Downloaded.\n'.format(filename))
record_download_archive(track)
+ return filename
def can... | Return filename from the download functon | py |
diff --git a/bcbio/variation/coverage.py b/bcbio/variation/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage.py
+++ b/bcbio/variation/coverage.py
@@ -123,6 +123,7 @@ def incomplete_regions(chanjo_db, batch_name, out_dir):
with file_transaction(out_file) as tx_out_file:
with open(tx_ou... | Fix output formatting for poor coverage regions. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
description='Blanc Basic Assets for Django',
long_description=readme,
url='https://github.com/developersociety/blanc-basic-assets',
- maintainer='Developer Society',
+ maintainer='The... | Update setup.py files for DEV | 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, find_packages
setup(
name="transfer",
- version="0.36",
+ version="0.37",
description="Transfer learning for deep image classification",
packages=find_packages... | Update to version <I> to fix training | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ url="http://www.cherrypy.org"
cp_license="BSD"
packages=[
"cherrypy", "cherrypy.lib", "cherrypy.lib.filter",
- "cherrypy.tutorial", "cherrypy.test",
+ "cherrypy.tutorial", "cherrypy.test", "cherrypy... | added cherrypy.filters to the created packages | py |
diff --git a/ps_mem.py b/ps_mem.py
index <HASH>..<HASH> 100755
--- a/ps_mem.py
+++ b/ps_mem.py
@@ -36,7 +36,7 @@
# Patch from patrice.bouchand.fedora@gmail.com
# V1.9 20 Feb 2008 Fix invalid values reported when PSS is available.
# Reported by Andrey Borze... | use /proc/$pid/smaps_rollup where available This is a more efficient equivalent to /proc/$pid/smaps See: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ setup(
"pytest_check_links",
"recommonmark",
],
- "dev": ["black==18.4a4", "mypy", "flake8", "isort"],
+ "dev": ["black==18.4a4", "mypy", "flake8", "isort", "twin... | Add twine to dev dependencies | py |
diff --git a/salt/utils/vmware.py b/salt/utils/vmware.py
index <HASH>..<HASH> 100644
--- a/salt/utils/vmware.py
+++ b/salt/utils/vmware.py
@@ -715,7 +715,8 @@ def get_mor_by_property(service_instance, object_type, property_value, property_
object_list = get_mors_with_properties(service_instance, object_type, prope... | Make the match more specific (#<I>) | py |
diff --git a/kubernetes/client/api/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py
index <HASH>..<HASH> 100644
--- a/kubernetes/client/api/custom_objects_api.py
+++ b/kubernetes/client/api/custom_objects_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://gi... | generated client change for custom_objects | py |
diff --git a/pyvirtualdisplay/abstractdisplay.py b/pyvirtualdisplay/abstractdisplay.py
index <HASH>..<HASH> 100644
--- a/pyvirtualdisplay/abstractdisplay.py
+++ b/pyvirtualdisplay/abstractdisplay.py
@@ -63,8 +63,8 @@ class AbstractDisplay(EasyProcess):
def search_for_display(self):
# search for free dis... | Cast map() -> list to support Py2/3, allows len(ls) to work | py |
diff --git a/account/forms.py b/account/forms.py
index <HASH>..<HASH> 100644
--- a/account/forms.py
+++ b/account/forms.py
@@ -31,7 +31,10 @@ class SignupForm(forms.Form):
label=_("Password (again)"),
widget=forms.PasswordInput(render_value=False)
)
- email = forms.EmailField(widget=forms.Text... | Provide a label for the email field | py |
diff --git a/categories/migration.py b/categories/migration.py
index <HASH>..<HASH> 100644
--- a/categories/migration.py
+++ b/categories/migration.py
@@ -11,8 +11,10 @@ def migrate_app(app, *args, **kwargs):
Migrate all models of this app registered
"""
# pull the information from the registry
+ if n... | Added a check in migrate_app to see if the app is a string or not. | py |
diff --git a/pymatgen/analysis/local_env.py b/pymatgen/analysis/local_env.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/local_env.py
+++ b/pymatgen/analysis/local_env.py
@@ -238,7 +238,7 @@ class NearNeighbors(object):
return [e['site'] for e in self.get_nn_info(structure, n)]
- def get_weights... | fix clear bug in NearNeighbors interface | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -171,8 +171,6 @@ setup(name='pythran',
entry_points={'console_scripts':
['pythran = pythran.run:run',
'pythran-config = pythran.config:run']},
- setup_requires=["pytest-ru... | Remove pytest-runner references According to upstream, pytest-runner is obsolete Fix #<I> | py |
diff --git a/alerta/app/auth.py b/alerta/app/auth.py
index <HASH>..<HASH> 100644
--- a/alerta/app/auth.py
+++ b/alerta/app/auth.py
@@ -466,3 +466,12 @@ def gitlab():
token = create_token(profile['id'], profile.get('name', None) or '@'+login, login, provider='gitlab',
customer=customer, ro... | Add userinfo endpoint for user claims | py |
diff --git a/asteval/asteval.py b/asteval/asteval.py
index <HASH>..<HASH> 100644
--- a/asteval/asteval.py
+++ b/asteval/asteval.py
@@ -129,8 +129,6 @@ class Interpreter(object):
usersyms = {}
symtable = make_symbol_table(use_numpy=use_numpy, **usersyms)
- symtable['print'] = self.... | fixes for having removed print node/statement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -53,10 +53,8 @@ setup(
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.6",
"Programm... | SDK-<I>: Cleanup classifiers in setup.py to reflect Python versions tested against | py |
diff --git a/mautrix/bridge/matrix.py b/mautrix/bridge/matrix.py
index <HASH>..<HASH> 100644
--- a/mautrix/bridge/matrix.py
+++ b/mautrix/bridge/matrix.py
@@ -36,6 +36,11 @@ try:
except ImportError:
EncryptionManager = None
+try:
+ from mautrix.crypto.attachments import encrypt_attachment
+except ImportError... | Add warning if media encryption dependencies aren't installed | py |
diff --git a/simpl/middleware/cors.py b/simpl/middleware/cors.py
index <HASH>..<HASH> 100644
--- a/simpl/middleware/cors.py
+++ b/simpl/middleware/cors.py
@@ -41,7 +41,7 @@ class CORSMiddleware(object): # pylint: disable=R0903
"""Responds to CORS requests."""
- default_methods = ('GET', 'OPTIONS', 'POST', ... | feat(cors): add DELETE as a valid, default method | py |
diff --git a/src/feat/agents/base/agent.py b/src/feat/agents/base/agent.py
index <HASH>..<HASH> 100644
--- a/src/feat/agents/base/agent.py
+++ b/src/feat/agents/base/agent.py
@@ -169,7 +169,7 @@ class BaseAgent(mro.FiberMroMixin, log.Logger, log.LogProxy, replay.Replayable,
def on_agent_configuration_change(self, ... | Don't raise an error if agent didn't define callback for changing his configuration. | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -344,8 +344,8 @@ class Solr(object):
# ``commit=true`` to the URL and have the commit happen without a
# second request.
query_vars = []
- if commit:
- query_vars.append('commit... | Always send commit if its not-null | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -609,6 +609,7 @@ def getRunArgs(heap="$((HEAP))"):
'-XX:-DontCompileHugeMethods',
'-Xms%sk' % heap,
'-Xmx%sk' % heap,
+ '-Xss512k',
'-XX:ThreadStackSize=2048',
'-classpath',
classPath, | Added "-Xss<I>k" to runtime properties. | py |
diff --git a/distutils/cygwinccompiler.py b/distutils/cygwinccompiler.py
index <HASH>..<HASH> 100644
--- a/distutils/cygwinccompiler.py
+++ b/distutils/cygwinccompiler.py
@@ -341,7 +341,9 @@ class Mingw32CCompiler(CygwinCCompiler):
def runtime_library_dir_option(self, dir):
raise DistutilsPlatformError(... | DOC: Extend Windows rpath error message with likely cause Extend the error message for attempting to call `runtime_library_dir_option` on Windows with the most likely way I have found to trigger the call, creating an `Extension` that specifies `runtime_library_dirs`. Hopefully this will give users something to sear... | py |
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index <HASH>..<HASH> 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -200,7 +200,7 @@ def _maybe_convert_int(arr):
casted = arr.astype(int)
if (np.abs(casted - arr) < 1e-10).all():
return casted
- exce... | BUF: missing parens in catching multiple exception types | py |
diff --git a/bigquery_storage/setup.py b/bigquery_storage/setup.py
index <HASH>..<HASH> 100644
--- a/bigquery_storage/setup.py
+++ b/bigquery_storage/setup.py
@@ -22,7 +22,7 @@ import setuptools
name = 'google-cloud-bigquery-storage'
description = 'BigQuery Storage API API client library'
version = '0.1.0'
-release_... | Correct release_status for bigquery_storage (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.