diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/trezorlib/tests/device_tests/test_multisig.py b/trezorlib/tests/device_tests/test_multisig.py
index <HASH>..<HASH> 100644
--- a/trezorlib/tests/device_tests/test_multisig.py
+++ b/trezorlib/tests/device_tests/test_multisig.py
@@ -254,4 +254,4 @@ class TestMultisig(TrezorTest):
self.client.sign... | device_tests: in test_multisig, T1 raises a different message expected: "Pubkey not found in multisig script" actual: "signing.c:<I>:Pubkey not found in multisig script" | py |
diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/phonenumberutil.py
+++ b/python/phonenumbers/phonenumberutil.py
@@ -390,7 +390,8 @@ class ValidationResult(object):
# Derived data structures
SUPPORTED_REGIONS = set([_i... | Cope with missing <I> code in supported regions. This occurs in particular when building new-style metadata (including <I>) but the existing metadata doesn't include <I>. | py |
diff --git a/salesforce/tests/test_integration.py b/salesforce/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/salesforce/tests/test_integration.py
+++ b/salesforce/tests/test_integration.py
@@ -8,6 +8,7 @@
from decimal import Decimal
import datetime
import pytz
+import random
from django.conf import ... | add a random slug to emails to prevent multiple test runs from clobbering each other | py |
diff --git a/pyblish_nuke/lib.py b/pyblish_nuke/lib.py
index <HASH>..<HASH> 100644
--- a/pyblish_nuke/lib.py
+++ b/pyblish_nuke/lib.py
@@ -60,7 +60,8 @@ def show():
"""
- window = (_discover_gui() or _show_no_gui)()
+ parent = QtGui.QApplication.activeWindow()
+ window = (_discover_gui() or _show_no_g... | Parent Pyblish UI to main window. | py |
diff --git a/salt/modules/chocolatey.py b/salt/modules/chocolatey.py
index <HASH>..<HASH> 100644
--- a/salt/modules/chocolatey.py
+++ b/salt/modules/chocolatey.py
@@ -334,7 +334,8 @@ def install(name,
force=False,
install_args=None,
override_args=False,
- force_x86=Fals... | Added package arguments to chocolatey install | py |
diff --git a/src/python/dxpy/utils/env.py b/src/python/dxpy/utils/env.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/utils/env.py
+++ b/src/python/dxpy/utils/env.py
@@ -39,7 +39,7 @@ def get_session_conf_dir():
sessions_dir = os.path.join(get_user_conf_dir(), 'sessions')
parent_process = psutil.Process(... | Apparently, on Darwin init is its own parent. | py |
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py
index <HASH>..<HASH> 100644
--- a/astrobase/lcproc.py
+++ b/astrobase/lcproc.py
@@ -400,7 +400,7 @@ def makelclist(basedir,
# dereference the column
thiscol = col.split('.')
thiscol = thiscol[-1]
- lclistdict['objec... | lcproc: getlclist, makelclist now have column-filtering and cone-search | py |
diff --git a/astroplan/scheduling.py b/astroplan/scheduling.py
index <HASH>..<HASH> 100644
--- a/astroplan/scheduling.py
+++ b/astroplan/scheduling.py
@@ -852,7 +852,7 @@ class Transitioner(object):
# use the constraints cache for now, but should move that machinery
# to observer
... | update schedules to work w/ broadcast constraints | py |
diff --git a/pyparsing.py b/pyparsing.py
index <HASH>..<HASH> 100644
--- a/pyparsing.py
+++ b/pyparsing.py
@@ -2556,9 +2556,12 @@ class ParserElement(object):
# catch and re-raise exception from here, clears out pyparsing internal stack trace
raise exc
- def __eq__(self,other):
+ ... | Update `__eq__` to Py2/Py3 compat | py |
diff --git a/aioinflux/client.py b/aioinflux/client.py
index <HASH>..<HASH> 100644
--- a/aioinflux/client.py
+++ b/aioinflux/client.py
@@ -274,6 +274,10 @@ class InfluxDBClient:
except KeyError as e:
raise ValueError(f'Missing argument "{e.args[0]}" in {repr(q)}')
+ # InfluxDB documentati... | Force `chunked` to be a boolean | py |
diff --git a/python/gumbo/__init__.py b/python/gumbo/__init__.py
index <HASH>..<HASH> 100644
--- a/python/gumbo/__init__.py
+++ b/python/gumbo/__init__.py
@@ -31,5 +31,15 @@ are exported from this module. They include:
"""
from gumbo.gumboc import *
-from gumbo import html5lib_adapter as html5lib
-from gumbo.soup_... | Catch ImportErrors around html5lib_adapter and soup_adapter, so the library can be used even if those pre-reqs aren't installed. | py |
diff --git a/salt/modules/debconfmod.py b/salt/modules/debconfmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debconfmod.py
+++ b/salt/modules/debconfmod.py
@@ -22,7 +22,6 @@ def __virtual__():
return False
if salt.utils.which('debconf-get-selections') is None:
- log.warning('The package de... | Failing virtual functions should not log warrnings Fix #<I> | py |
diff --git a/blockstack_client/proxy.py b/blockstack_client/proxy.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/proxy.py
+++ b/blockstack_client/proxy.py
@@ -1028,6 +1028,7 @@ def get_names_owned_by_address(address, proxy=None):
return resp['names']
+# DEPRECATED
def get_num_historic_names_by_address... | mark some methods as deprecated | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -109,6 +109,16 @@ class OpenIDServer(object):
pass
secret, expiry = ret
+ if expiry < time.time():
+ # XXX: protocol error: using an expired handle
+ ... | [project @ More checkid_immediate work, and some documentation fixups] | py |
diff --git a/cobald/composite/weighted.py b/cobald/composite/weighted.py
index <HASH>..<HASH> 100644
--- a/cobald/composite/weighted.py
+++ b/cobald/composite/weighted.py
@@ -15,8 +15,12 @@ class WeightedComposite(CompositePool):
def demand(self, value):
self._demand = value
total_supply = self.s... | Distribute demand equaly over pools, if total_supply is zero (#<I>) | 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="django-extra-tools",
- version='0.1.0b2',
+ version='0.2.0b1',
author='Tomasz Jakub Rup',
author_email='tomasz.rup@gmail.com',
... | New version <I>b1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ setup(
include_package_data=True,
zip_safe=False,
extras_require={
- "dev": ["zope.datetime"],
+ "dev": ["zope.datetime", "boto3"],
},
**extra_setup_args
) | Depend on boto3 The integration test helpers need boto3 to work (fixes #<I>) | py |
diff --git a/tests/test_basic.py b/tests/test_basic.py
index <HASH>..<HASH> 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -741,7 +741,10 @@ class TestBasic(unittest.TestCase):
assert myp.my_int == 5
assert MyHasProps._props['not_my_int'].doc == ''
-
+ assert properties.equal(
... | Add test for deserializing with renamed properties | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ def main():
setup(
name='strategyease_sdk',
- version='2.1.0b1',
+ version='2.1.0b2',
description=u'策略易(StrategyEase)Python SDK,策略自动化交易 API。',
long_description=l... | Increment version to <I>b2 | py |
diff --git a/seleniumbase/fixtures/js_utils.py b/seleniumbase/fixtures/js_utils.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/js_utils.py
+++ b/seleniumbase/fixtures/js_utils.py
@@ -274,7 +274,7 @@ def wait_for_css_query_selector(
)
-def highlight_with_js(driver, selector, loops, o_bs):
+def highl... | Set default args for a few methods from "js_utils.py" | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -233,7 +233,7 @@ def install(inst, version):
print('Created %s' % inst.VENV)
if sys.platform == 'win32':
- if (os.path.exists('\\python\\python._pth.old')):
+ if (os.path.exists('python\\p... | set correct path to inst<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ setup(
description = ("A django app that allows the easy addition of Stack Overflow's 'PageDown' markdown editor to a django form field"),
long_description=open('README.md').read(),
packages=['pagedown'... | Added include_package_data to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from __future__ import print_function
from setuptools import setup, find_packages
import axolotl
-deps = ["protobuf>=2.6", "pycrypto", "python-axolotl-curve25519"]
+deps = ["protobuf>=2.6,<3.0.0-alpha-2", "pyc... | Don't use protobuf <I>-alpha-2 until they fix it! | py |
diff --git a/anyconfig/schema.py b/anyconfig/schema.py
index <HASH>..<HASH> 100644
--- a/anyconfig/schema.py
+++ b/anyconfig/schema.py
@@ -99,13 +99,13 @@ def array_to_schema(arr, **options):
typemap = options.get("ac_schema_typemap", _SIMPLETYPE_MAP)
strict = options.get("ac_schema_type", False) == _STRICT_S... | fix: ensure .schema.array_to_schema processing arr correctly even if it's not a list (generator, etc.) | py |
diff --git a/treebeard/mp_tree.py b/treebeard/mp_tree.py
index <HASH>..<HASH> 100644
--- a/treebeard/mp_tree.py
+++ b/treebeard/mp_tree.py
@@ -640,7 +640,7 @@ class MP_Node(Node):
# child" to become a "move to sibling" if possible (if it can't
# be done, it means that we are adding the first child)
... | Refactoring: removing unused vars | py |
diff --git a/tests/integration/netapi/rest_cherrypy/test_app.py b/tests/integration/netapi/rest_cherrypy/test_app.py
index <HASH>..<HASH> 100644
--- a/tests/integration/netapi/rest_cherrypy/test_app.py
+++ b/tests/integration/netapi/rest_cherrypy/test_app.py
@@ -75,6 +75,7 @@ class TestLogin(BaseRestCherryPyTest):
... | Add integration test for logging out of the rest_cherrypy app | 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
@@ -266,11 +266,11 @@ def get_uid(user=None):
it will return None.
"""
if pwd is None:
- result = None
+ result = None
elif user is None:
... | fix pylint issues | py |
diff --git a/great_expectations/dataset/pandas_dataset.py b/great_expectations/dataset/pandas_dataset.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/pandas_dataset.py
+++ b/great_expectations/dataset/pandas_dataset.py
@@ -192,7 +192,9 @@ class MetaPandasDataset(Dataset):
element_count = ... | Simplify nonnull_count computation in PandasDataset Accommodates error raised in pandas <I> (plus it's simpler). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,14 +1,7 @@
from distutils.core import setup
from setuptools import find_packages
-from pip.req import parse_requirements
-# parse_requirements() returns generator of pip.req.InstallRequirement objects
-install_requires ... | dicom2nifti-3: Fix installation | py |
diff --git a/openquake/server/manage.py b/openquake/server/manage.py
index <HASH>..<HASH> 100755
--- a/openquake/server/manage.py
+++ b/openquake/server/manage.py
@@ -49,9 +49,12 @@ def dbcmd(action, *args):
if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "openquake.server.set... | Call the db server in manage.py only for runserver Former-commit-id: <I>db<I>bcbb<I>f<I>fa<I>ee9c6e<I>db5b<I>cb9 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,9 +8,10 @@ from setuptools import setup
setup(
name='coursera',
- version='0.0.0', # FIXME
- author='fixme',
- author_email='fixme',
+ version='0.0.0',
+ maintainer='Rogério Theodoro de Brito',
+ ... | setup.py: Fill in some data. This is still not really satisfactory, as it seems that we have a limitation in the number of authors (or it seems that we should use an ad-hoc format) for specifying who the authors are, according to various sources, including: <URL> author of this program, as John should be equally cred... | py |
diff --git a/climlab/convection/convadj.py b/climlab/convection/convadj.py
index <HASH>..<HASH> 100644
--- a/climlab/convection/convadj.py
+++ b/climlab/convection/convadj.py
@@ -62,7 +62,7 @@ class ConvectiveAdjustment(TimeDependentProcess):
pflip = self.pnew[..., ::-1]
Tflip = Tcol[..., ::-1... | Cast adj_lapse_rate as array to avoid problems trying to flip a scalar | py |
diff --git a/playhouse/tests/test_reflection.py b/playhouse/tests/test_reflection.py
index <HASH>..<HASH> 100644
--- a/playhouse/tests/test_reflection.py
+++ b/playhouse/tests/test_reflection.py
@@ -45,7 +45,7 @@ class ColTypes(BaseModel):
class Meta:
indexes = (
(('f10', 'f11'), True),
- ... | Fix index with unspecified length. | py |
diff --git a/pdfwatermarker/__init__.py b/pdfwatermarker/__init__.py
index <HASH>..<HASH> 100644
--- a/pdfwatermarker/__init__.py
+++ b/pdfwatermarker/__init__.py
@@ -1,7 +1,8 @@
-__all__ = ["set_destination", "upscale", "rotate", "Watermark", "WatermarkGUI"]
+__all__ = ["set_destination", "resource_path", "upscale", "... | Added resource path function to __init__.py to handle resource location once executable has been built | py |
diff --git a/scout/commands/delete/delete_command.py b/scout/commands/delete/delete_command.py
index <HASH>..<HASH> 100644
--- a/scout/commands/delete/delete_command.py
+++ b/scout/commands/delete/delete_command.py
@@ -4,6 +4,7 @@ import click
from flask.cli import with_appcontext
from scout.server.extensions import ... | removed unused code and set log level to debug for delete cli | py |
diff --git a/tests/test_validator.py b/tests/test_validator.py
index <HASH>..<HASH> 100755
--- a/tests/test_validator.py
+++ b/tests/test_validator.py
@@ -231,10 +231,11 @@ if __name__ == '__main__':
break
print(len(unique_fields))
- features = [i for i in sorted(unique_fields.items(), key=la... | Continues testing improvements to validator.py methods. | py |
diff --git a/tmc/files.py b/tmc/files.py
index <HASH>..<HASH> 100644
--- a/tmc/files.py
+++ b/tmc/files.py
@@ -86,10 +86,11 @@ def submit_exercise(exercise, request_review=False, pastebin=False):
zipfp = zipfile.ZipFile(tmpfile, "w")
for root, _, files in os.walk(outpath):
for file in fil... | Refactoring: another 'oneliner' split for readability | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -18,6 +18,9 @@ from db import db_session, init_db
from models import Participant
from sqlalchemy import or_
+# Importing dashboard
+import dashboard
+
from config import config
@@ -508,6 +511,15 @@ def dashbaord():
"""
... | Imported dashboard model. Added RESTful interface for backbone model syncing. | py |
diff --git a/filer/admin/folderadmin.py b/filer/admin/folderadmin.py
index <HASH>..<HASH> 100644
--- a/filer/admin/folderadmin.py
+++ b/filer/admin/folderadmin.py
@@ -1020,15 +1020,17 @@ class FolderAdmin(PrimitivePermissionAwareModelAdmin):
try:
selected_destination_folder = int(request.POST.get(... | Fix for #<I>: make 'copy files and/or folders' work when the current folder is the root folder. | py |
diff --git a/acos_client/v30/responses.py b/acos_client/v30/responses.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/responses.py
+++ b/acos_client/v30/responses.py
@@ -192,7 +192,7 @@ RESPONSE_CODES = {
},
1208008960: {
"*": {
- "/axapi/v3/logon": ae.AuthenticationFailure
+ ... | Reduced specificity of auth err code | py |
diff --git a/synth.py b/synth.py
index <HASH>..<HASH> 100644
--- a/synth.py
+++ b/synth.py
@@ -19,6 +19,9 @@ import subprocess
logging.basicConfig(level=logging.DEBUG)
+AUTOSYNTH_MULTIPLE_COMMITS = True
+
+
gapic = gcp.GAPICMicrogenerator()
versions = ['v2', 'v2beta1']
for version in versions: | build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ if __name__ == '__main__':
url=package_about['__url__'],
packages=find_packages(),
# dependencies
- install_requires=['typing'],
+ install_requires=['typing', 'pyyaml'],
... | added YAML parser requirement | py |
diff --git a/master/buildbot/scripts/runner.py b/master/buildbot/scripts/runner.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/scripts/runner.py
+++ b/master/buildbot/scripts/runner.py
@@ -499,7 +499,7 @@ rotateLength = %(log-size)s
maxRotatedFiles = %(log-count)s
# Default umask for server
-umask = 077
+umas... | changed to have default umask None, which should default the umask to twistd's default (currently <I>) | py |
diff --git a/grandalf/graphs.py b/grandalf/graphs.py
index <HASH>..<HASH> 100644
--- a/grandalf/graphs.py
+++ b/grandalf/graphs.py
@@ -217,10 +217,10 @@ class graph_core(object):
# remove Edge :
# this procedure checks that the resulting graph is connex.
def remove_edge(self,e):
- if e.deg==0 or ... | fix remove_edge when deg of edge is 0 | py |
diff --git a/folium/features.py b/folium/features.py
index <HASH>..<HASH> 100644
--- a/folium/features.py
+++ b/folium/features.py
@@ -814,8 +814,10 @@ class RectangleMarker(Marker):
Example
-------
- >>> RectangleMarker(bounds=[[35.681, 139.766], [35.691, 139.776]],
- ... | Rename Polygon to PolygonMarker | py |
diff --git a/holoviews/operation/normalization.py b/holoviews/operation/normalization.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/normalization.py
+++ b/holoviews/operation/normalization.py
@@ -108,7 +108,8 @@ class Normalization(ElementOperation):
if keys is None:
specs = ranges
... | Improved exception messages in Normalization.get_ranges | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,13 +11,14 @@ with open(join(this_dir, "README.rst"), encoding="utf-8") as file:
with open(join(this_dir, "requirements.txt")) as f:
requirements = f.read().split("\n")
+version = environ.get("VERSION", "1.0.dev0... | Get version of deps from env variable | py |
diff --git a/tornado/websocket.py b/tornado/websocket.py
index <HASH>..<HASH> 100644
--- a/tornado/websocket.py
+++ b/tornado/websocket.py
@@ -1501,6 +1501,8 @@ class WebSocketClientConnection(simple_httpclient._HTTPConnection):
Exception raised on a closed stream changed from `.StreamClosedError`
... | Fix websocket client already closed raise error does not match As doc says "If the stream is closed, raises WebSocketClosedError" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
long_description=open("README.rst").read(),
author='Andrew McFague',
author_email='amcfague@wgen.net',
- url='http://pypi.python.org/pypi/webunit2',
+ url='https://github.com/amcfague... | Updating URL to point at GitHub instead of PyPi | py |
diff --git a/tests/basic_map_operations_test.py b/tests/basic_map_operations_test.py
index <HASH>..<HASH> 100644
--- a/tests/basic_map_operations_test.py
+++ b/tests/basic_map_operations_test.py
@@ -19,6 +19,11 @@ class TestBasicMapOperations(unittest.TestCase):
self.assertTrue(y >= 0, "y is within bo... | test: testing distance Former-commit-id: <I>e3bd<I>da<I>ff9fb<I>f<I>e<I>c2eb<I> | py |
diff --git a/kafka/client_async.py b/kafka/client_async.py
index <HASH>..<HASH> 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -314,14 +314,21 @@ class KafkaClient(object):
else:
task_future.success(result)
- timeout = min(
- timeout_m... | If a completed future is polled, do not block | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -1430,7 +1430,7 @@ class Torrent():
except OSError as e:
raise error.WriteError(e.errno, filepath)
- def magnet(self, name=True, size=True, trackers=True, tracker=Fals... | Torrent.magnet(): validate() is always called in infohash property | py |
diff --git a/flashpolicies/policies.py b/flashpolicies/policies.py
index <HASH>..<HASH> 100644
--- a/flashpolicies/policies.py
+++ b/flashpolicies/policies.py
@@ -88,6 +88,14 @@ class Policy(object):
``all``) so if this is desired (and, for security, it
typically is), this method does not need to be c... | Update the docstring on Policy.metapolicy to explain behavior when metapolicy is 'none'. | py |
diff --git a/katcp/test/test_resource_client.py b/katcp/test/test_resource_client.py
index <HASH>..<HASH> 100644
--- a/katcp/test/test_resource_client.py
+++ b/katcp/test/test_resource_client.py
@@ -156,7 +156,7 @@ class test_KATCPClientResource(tornado.testing.AsyncTestCase):
address=('testhost', 12345))
... | Align test with previous changes to class footprint | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -330,7 +330,11 @@ class Predictor(object):
self.print_training_summary_to_viewer = print_training_summary_to_viewer
if self.type_of_estimator == 'regressor':
... | allows the user to pass in a single string for model_names | py |
diff --git a/werobot/robot.py b/werobot/robot.py
index <HASH>..<HASH> 100644
--- a/werobot/robot.py
+++ b/werobot/robot.py
@@ -99,14 +99,19 @@ class BaseRoBot(object):
"""
session_storage = self.session_storage
if session_storage:
- id = message.source
- session = sessio... | Disable session when message.source isn't exist. #<I> | py |
diff --git a/tests/contrib/test_sqlalchemy_handler.py b/tests/contrib/test_sqlalchemy_handler.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/test_sqlalchemy_handler.py
+++ b/tests/contrib/test_sqlalchemy_handler.py
@@ -1,23 +1,27 @@
# -*- coding: utf-8 -*-
import unittest
-from flask import Flask
from flask.ex... | Reuse fixtures in sqlalchemy tests. | py |
diff --git a/ella/core/views.py b/ella/core/views.py
index <HASH>..<HASH> 100755
--- a/ella/core/views.py
+++ b/ella/core/views.py
@@ -59,6 +59,10 @@ class EllaCoreView(object):
context = self.get_context(request, **kwargs)
return self.render(request, context, self.get_templates(context))
+
+def arc... | Added caching for CategoryDetail._archive_entry_year | py |
diff --git a/canmatrix/convert.py b/canmatrix/convert.py
index <HASH>..<HASH> 100644
--- a/canmatrix/convert.py
+++ b/canmatrix/convert.py
@@ -99,16 +99,22 @@ def convert(infile, outfileName, **options):
for frame in deleteFrameList:
db.delFrame(frame)
if 'skipLongDlc' in options ... | fix deletion of frames/signals for issue #<I>. | py |
diff --git a/looper/models.py b/looper/models.py
index <HASH>..<HASH> 100644
--- a/looper/models.py
+++ b/looper/models.py
@@ -426,6 +426,9 @@ class ProjectContext(object):
# Dispatch attribute request to Project.
return getattr(self.prj, item)
+ def __getitem__(self, item):
+ retu... | allow the getitem wrapper on ProjectContext to access underlying Project | py |
diff --git a/hydra_base/lib/scenario.py b/hydra_base/lib/scenario.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/scenario.py
+++ b/hydra_base/lib/scenario.py
@@ -268,7 +268,7 @@ def update_scenario(scenario,update_data=True,update_groups=True,flush=True,**kw
#lazy load resource grou items from the DB
s... | Don't clone resource group items if there are none | py |
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index <HASH>..<HASH> 100644
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -165,7 +165,7 @@ class test_RedBeatScheduler_tick(RedBeatSchedulerTestBase):
class NotSentinelRedBeatCase(AppCase):
config_dict = {
- 'BROKER_URL':... | fix for celery <I> | py |
diff --git a/asammdf/blocks/mdf_v4.py b/asammdf/blocks/mdf_v4.py
index <HASH>..<HASH> 100755
--- a/asammdf/blocks/mdf_v4.py
+++ b/asammdf/blocks/mdf_v4.py
@@ -5966,7 +5966,10 @@ class MDF4(MDF_Common):
self._file.close()
if Path(self.name).parent == Path(gettempdir()):
- Path(... | keep Python <I> compatibility | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='azurerm',
- version='0.5.8',
+ version='0.5.9',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
... | Adding media services functions - msleal | py |
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py
index <HASH>..<HASH> 100644
--- a/astrobase/lcproc.py
+++ b/astrobase/lcproc.py
@@ -684,8 +684,6 @@ def getlclist(listpickle,
filteredlcfnames = [os.path.join(lclist['basedir'], x)
for x in lclist['objects']['lcfname'][finalfilterind]]... | lcproc.getlclist: also copy matching light curves to requested dir | py |
diff --git a/src/transformers/pipelines.py b/src/transformers/pipelines.py
index <HASH>..<HASH> 100755
--- a/src/transformers/pipelines.py
+++ b/src/transformers/pipelines.py
@@ -1226,7 +1226,7 @@ class FillMaskPipeline(Pipeline):
values = tf.gather_nd(values, tf.reshape(sort_inds, (-1, 1))).numpy(... | tensor.nonzero() is deprecated in PyTorch <I> (#<I>) | py |
diff --git a/tofu/tests/tests09_tutorials/tests01_tutorials.py b/tofu/tests/tests09_tutorials/tests01_tutorials.py
index <HASH>..<HASH> 100644
--- a/tofu/tests/tests09_tutorials/tests01_tutorials.py
+++ b/tofu/tests/tests09_tutorials/tests01_tutorials.py
@@ -161,7 +161,7 @@ class Test00_tuto(object):
os.remove... | [Issue<I>] Fixed unit tests and removed saved files automatically | py |
diff --git a/pywws/YoWindow.py b/pywws/YoWindow.py
index <HASH>..<HASH> 100644
--- a/pywws/YoWindow.py
+++ b/pywws/YoWindow.py
@@ -18,6 +18,7 @@ from datetime import datetime, timedelta
import DataStore
from Logger import ApplicationLogger
from TimeZone import Local, utc
+from WeatherStation import apparent_temp
... | Added 'feels_like' apparent temperature to YoWindow output. | py |
diff --git a/qds_sdk/commands.py b/qds_sdk/commands.py
index <HASH>..<HASH> 100644
--- a/qds_sdk/commands.py
+++ b/qds_sdk/commands.py
@@ -91,7 +91,7 @@ class Command(Resource):
# vars to keep track of actual logs bytes (err, tmp) and new bytes seen in each iteration
err_pointer, tmp_pointer, new_by... | fix: dev: SDK-<I>: bug fix for run command (#<I>) Squashed commit of the following: commit <I>c<I>a8ee1be<I>acdee<I>d6f<I>b1ac | py |
diff --git a/salt/modules/ps.py b/salt/modules/ps.py
index <HASH>..<HASH> 100755
--- a/salt/modules/ps.py
+++ b/salt/modules/ps.py
@@ -82,11 +82,13 @@ def top(num_processes=5, interval=3):
'user': process.username,
'status': process.status,
'pid': process.pid,
- ... | Group mem/cpu output of ps.top | py |
diff --git a/starlette/middleware/base.py b/starlette/middleware/base.py
index <HASH>..<HASH> 100644
--- a/starlette/middleware/base.py
+++ b/starlette/middleware/base.py
@@ -27,7 +27,7 @@ class BaseHTTPMiddleware:
async def call_next(self, request: Request) -> Response:
loop = asyncio.get_event_loop()
... | Remove maxsize arg from Queue constructor in BaseHTTPMiddleware (#<I>) | py |
diff --git a/lib/external_authentication.py b/lib/external_authentication.py
index <HASH>..<HASH> 100644
--- a/lib/external_authentication.py
+++ b/lib/external_authentication.py
@@ -35,7 +35,7 @@ class external_auth_nice:
params = urllib.urlencode({'Username': username, 'Password': password})
heade... | Updated CERN-IT-IS server name for the CERN NICE authentication example. | py |
diff --git a/marbles/marbles.py b/marbles/marbles.py
index <HASH>..<HASH> 100644
--- a/marbles/marbles.py
+++ b/marbles/marbles.py
@@ -11,7 +11,6 @@ though unfortunately only on test failure currently.
import ast
import linecache
-import pdb
import sys
import textwrap
import traceback | Removing pdb import leftover from debugging. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ setup(
'Development Status :: 4 - Beta',
],
install_requires = [
- 'numpy', 'scipy', 'matplotlib', 'neuron', 'LFPy', 'mpi4py',
+ 'numpy', 'scipy', 'matplotlib', 'LFPy... | removed NEURON module from install_requires list as PyPi version is outdated | py |
diff --git a/tensorflow_datasets/core/api_utils.py b/tensorflow_datasets/core/api_utils.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/api_utils.py
+++ b/tensorflow_datasets/core/api_utils.py
@@ -46,12 +46,12 @@ _POSITIONAL_ARG_ERR_MSG = (
# `@typing.overload` to define both signatures.
@typing.overloa... | Fix or ignore type errors generated by the next release of pytype. PiperOrigin-RevId: <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,6 +74,7 @@ setup(
packages=["draco"],
entry_points={"console_scripts": ["draco=draco.cli:main"]},
install_requires=["clyngor"],
+ include_package_data=True,
extras_require={
"test": ["covera... | Copy asp and js files during installation. Fixes #<I> | py |
diff --git a/project.py b/project.py
index <HASH>..<HASH> 100644
--- a/project.py
+++ b/project.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
-
# pylint: disable=W0201
# pylint: disable=W0703
@@ -226,6 +225,9 @@ class Project(object): # pylint: disable=R0904,
s.store_reg(s.arch.sp_offset, 0x7fff0000, ... | initialize the THUMB state to a concrete value so that it doesn't overload the constraint solver | py |
diff --git a/penman/lexer.py b/penman/lexer.py
index <HASH>..<HASH> 100644
--- a/penman/lexer.py
+++ b/penman/lexer.py
@@ -195,16 +195,14 @@ def _lex(lines: Iterable[str], regex: Pattern[str]) -> Iterator[Token]:
if debug:
logger.debug('Line %d: %r', i, line)
matches = regex.finditer(line... | Simplify _lex loop without sacrificing performance | py |
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/converter.py
+++ b/discord/ext/commands/converter.py
@@ -353,14 +353,17 @@ class PartialMessageConverter(Converter[discord.PartialMessage]):
@staticmethod
def _resolve_ch... | [commands] Fix issue in PartialMessageConverter._resolve channel | py |
diff --git a/GooseMPL/__init__.py b/GooseMPL/__init__.py
index <HASH>..<HASH> 100644
--- a/GooseMPL/__init__.py
+++ b/GooseMPL/__init__.py
@@ -1827,6 +1827,8 @@ def histogram_bin_edges_mincount(data, min_count, bins):
k = idx + 2
bins = np.hstack((bins[:j], bins[k:]))
+ return bins
+
d... | Minor bugfix: adding return in `histogram_bin_edges_mincount` (#<I>) | py |
diff --git a/tests/pefile_test.py b/tests/pefile_test.py
index <HASH>..<HASH> 100644
--- a/tests/pefile_test.py
+++ b/tests/pefile_test.py
@@ -299,6 +299,13 @@ class Test_pefile(unittest.TestCase):
# Ensure the original image stayed the same
self.assertEqual(original_image_1, original_image_2)
+ ... | Add test for issue #<I> | py |
diff --git a/indra/tools/live_curation/live_curation.py b/indra/tools/live_curation/live_curation.py
index <HASH>..<HASH> 100644
--- a/indra/tools/live_curation/live_curation.py
+++ b/indra/tools/live_curation/live_curation.py
@@ -166,6 +166,25 @@ def save_curations():
return jsonify({})
+@app.route('/notify')... | Add notify endpoint doing <I> Response for now | py |
diff --git a/tests/grammar_copy_tests/RulesDeepcopyTest.py b/tests/grammar_copy_tests/RulesDeepcopyTest.py
index <HASH>..<HASH> 100644
--- a/tests/grammar_copy_tests/RulesDeepcopyTest.py
+++ b/tests/grammar_copy_tests/RulesDeepcopyTest.py
@@ -117,6 +117,24 @@ class RulesAddingTest(TestCase):
self.assertEqual(f... | Add tests of deep copy for start symbol | py |
diff --git a/eventsourcing/tests/test_declarative_syntax.py b/eventsourcing/tests/test_declarative_syntax.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/tests/test_declarative_syntax.py
+++ b/eventsourcing/tests/test_declarative_syntax.py
@@ -1271,6 +1271,36 @@ class TestDeclarativeSyntax(TestCase):
self.a... | Added test with created event called started that uses @aggregate. | py |
diff --git a/bcbio/distributed/ipythontasks.py b/bcbio/distributed/ipythontasks.py
index <HASH>..<HASH> 100644
--- a/bcbio/distributed/ipythontasks.py
+++ b/bcbio/distributed/ipythontasks.py
@@ -47,7 +47,7 @@ process_alignment.metadata = {"resources": ["novoalign", "bwa"]}
def align_prep_full(*args):
with _setup_... | Correctly set ipython metadata for piped alignment preparation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@ setup(
packages=[
'pygtkhelpers',
'pygtkhelpers.ui',
+ 'pygtkhelpers.ui.objectlist',
'pygtkhelpers.debug',
],
) | add the new objectlist package to the package list | py |
diff --git a/toolkit/srm/srm.py b/toolkit/srm/srm.py
index <HASH>..<HASH> 100644
--- a/toolkit/srm/srm.py
+++ b/toolkit/srm/srm.py
@@ -123,17 +123,6 @@ class SRM(BaseEstimator):
"""
- n_iter = 10
- features = 50
- rand_seed = 0
- verbose = False
-
- w_ = []
- s_ = None
- sigma_s_ = None
- ... | Remove superfluous class variables in SRM | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,9 @@ setup(
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.20.3, <=0.20.3',
- 'pypsa >=0.10.0, <=0.10.0'
+ 'pypsa >=0.10.0, <=0.10.0',
+ 'pyproj >= 1.9.... | add required geo packages to setup.py | py |
diff --git a/centinel/unit_test/http_unit_test.py b/centinel/unit_test/http_unit_test.py
index <HASH>..<HASH> 100644
--- a/centinel/unit_test/http_unit_test.py
+++ b/centinel/unit_test/http_unit_test.py
@@ -5,7 +5,6 @@ import os
class TestHTTPMethods(unittest.TestCase):
-
def test_URL_NotExist(self):
... | removing extra line(s) between functions. | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -191,8 +191,8 @@ class Party(object):
else:
raise NotImplementedError(
'Ambiguous add, only all... | Bug fix for Party.__add__ Address unexpected behavior in Party.__add__ | py |
diff --git a/etrago/cluster/gasclustering.py b/etrago/cluster/gasclustering.py
index <HASH>..<HASH> 100755
--- a/etrago/cluster/gasclustering.py
+++ b/etrago/cluster/gasclustering.py
@@ -146,8 +146,14 @@ def create_gas_busmap(etrago):
save="network_ch4_" + kmean_gas_settings["bus_weight_tocsv"],
... | Updated deprecated from_csv to pandas.read_csv() | py |
diff --git a/simuvex/s_type.py b/simuvex/s_type.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_type.py
+++ b/simuvex/s_type.py
@@ -332,6 +332,10 @@ _C_TYPE_TO_SIMTYPE = {
('uint32_t',): lambda _: SimTypeInt(32, False),
('int64_t',): lambda _: SimTypeInt(64, True),
('uint64_t',): lambda _: SimTypeInt(64, ... | A couple more ctypes. PS: uintptr_t should be in ctypes | py |
diff --git a/spdx/parsers/rdf.py b/spdx/parsers/rdf.py
index <HASH>..<HASH> 100644
--- a/spdx/parsers/rdf.py
+++ b/spdx/parsers/rdf.py
@@ -69,6 +69,15 @@ class Parser(object):
self.builder.set_creation_comment(self.doc, o)
except CardinalityError:
self.more_than_one_error(... | Adds license list version rdf support | py |
diff --git a/rootpy/classfactory.py b/rootpy/classfactory.py
index <HASH>..<HASH> 100644
--- a/rootpy/classfactory.py
+++ b/rootpy/classfactory.py
@@ -5,6 +5,7 @@ $ROOTPY_DATA for later use so they are not repeatedly regenerated
"""
import ROOT
import os
+import sys
import re
import atexit
import uuid
@@ -12,9 +1... | store dicts in separate dirs depending on if running in <I> or <I>bit mode | py |
diff --git a/salt/netapi/__init__.py b/salt/netapi/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/netapi/__init__.py
+++ b/salt/netapi/__init__.py
@@ -31,6 +31,17 @@ class NetapiClient(object):
def __init__(self, opts):
self.opts = opts
+ def is_master_running(self):
+ '''
+ Perform... | Add a method to NetapiClient to check if the master is running | py |
diff --git a/snmpclitools/cli/target.py b/snmpclitools/cli/target.py
index <HASH>..<HASH> 100644
--- a/snmpclitools/cli/target.py
+++ b/snmpclitools/cli/target.py
@@ -21,9 +21,13 @@ General communication options
-r RETRIES number of retries when sending request
-t TIMEOUT request timeout (in secon... | Add usage note on IPv6 address | py |
diff --git a/modeltranslation/admin.py b/modeltranslation/admin.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/admin.py
+++ b/modeltranslation/admin.py
@@ -28,10 +28,11 @@ class TranslationAdminBase(object):
if db_field.name in trans_opts.fields:
db_field.editable = False
- if ... | Ensured dict names are unique on a model-app-fieldname basis. | py |
diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_client.py
+++ b/tests/unit/test_client.py
@@ -184,12 +184,12 @@ def test_client_display_task(task_result, tristate, bool1, bool2, bool3,
else:
m_task_state.assert_called_once_with(task.stat... | fix tests for result in RETRY state | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,8 +22,8 @@ from distutils.core import setup
setup(
name='python-saml2',
- version='0.0.6',
- description='Python library for SAML Version 2',
+ version='0.1.0',
+ description='Python implementation of S... | Goosh forgot to update the version number :-) | py |
diff --git a/openpack/basepack.py b/openpack/basepack.py
index <HASH>..<HASH> 100644
--- a/openpack/basepack.py
+++ b/openpack/basepack.py
@@ -67,6 +67,7 @@ class Package(DictMixin, Relational):
self.relationships = rels = Relationships(self, self)
self[rels.name] = rels
self.content_types = ContentTypes()
+ ... | BUGFIX: .rels files are now added to the [Content-Types].xml file. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.