diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/seriously/SeriouslyCommands.py b/seriously/SeriouslyCommands.py
index <HASH>..<HASH> 100755
--- a/seriously/SeriouslyCommands.py
+++ b/seriously/SeriouslyCommands.py
@@ -68,7 +68,9 @@ def fast_fib(n):
b2 = b*b
a,b = a*a+b2, (a<<1)*b+b2
if n%2 == 1:
+ fib_cache[n-1] = b
return... | Update SeriouslyCommands.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,11 @@ if sys.version_info[0] == 3:
swig_opts.append('-py3')
swig_opts.append('-c++')
+# Check command line args: are we making a source distribution?
+is_source_dist = 'sdist' in sys.argv
+# If we are making ... | Updated setup.py: the inclusion of 'preinstall' now depends on whether 'sdist' was used (required to compile source distributions from PyPi) | py |
diff --git a/ledger/stores/file_store.py b/ledger/stores/file_store.py
index <HASH>..<HASH> 100644
--- a/ledger/stores/file_store.py
+++ b/ledger/stores/file_store.py
@@ -51,7 +51,8 @@ class FileStore:
# Make sure data get written to the disk
self.dbFile.flush()
- os.fdatasync(self.dbFile.fil... | - Replaced back use of os.fdatasync with use of os.fsync in FileStore.put because os.fdatasync is not available on Windows and MacOS. - Added a comment about os.fsync slowness on Windows. | py |
diff --git a/djcelery/loaders.py b/djcelery/loaders.py
index <HASH>..<HASH> 100644
--- a/djcelery/loaders.py
+++ b/djcelery/loaders.py
@@ -17,6 +17,7 @@ class DjangoLoader(BaseLoader):
def read_configuration(self):
"""Load configuration from Django settings."""
from django.conf import settings
+ ... | Set Loader.configured = True after setting up django env. (needed by celeryd) | py |
diff --git a/nodeconductor/iaas/tasks.py b/nodeconductor/iaas/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/tasks.py
+++ b/nodeconductor/iaas/tasks.py
@@ -57,7 +57,6 @@ def delete_zabbix_host_and_service(instance_uuid):
@tracked_processing(models.Instance, processing_state='begin_provisioning', desired... | print was removed(NC-<I>) | py |
diff --git a/src/binwalk/core/settings.py b/src/binwalk/core/settings.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/core/settings.py
+++ b/src/binwalk/core/settings.py
@@ -66,8 +66,8 @@ class Settings:
system_binarch = self._system_path(self.BINWALK_MAGIC_DIR, self.BINARCH_MAGIC_FILE)
def list_fi... | Ignore dotfiles only while discovering magic files Some programs (which?) might create temporary files like `~name` or `_name`, but maybe there are people who actually rely on names like `_name`. Let's restrict the filter to just dotfiles for now. | py |
diff --git a/openpnm/algorithms/NernstPlanckMultiphysics.py b/openpnm/algorithms/NernstPlanckMultiphysics.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/NernstPlanckMultiphysics.py
+++ b/openpnm/algorithms/NernstPlanckMultiphysics.py
@@ -124,7 +124,7 @@ class NernstPlanckMultiphysics(GenericAlgorithm):
... | regenerate all phys attached to the project | py |
diff --git a/salt/modules/mac_ports.py b/salt/modules/mac_ports.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mac_ports.py
+++ b/salt/modules/mac_ports.py
@@ -306,13 +306,13 @@ def install(name=None, refresh=False, pkgs=None, **kwargs):
if pkgs is None:
version_num = kwargs.get('version')
var... | emit port cli version, variants as separate args | py |
diff --git a/python_modules/dagit/dagit/starlette.py b/python_modules/dagit/dagit/starlette.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagit/dagit/starlette.py
+++ b/python_modules/dagit/dagit/starlette.py
@@ -27,11 +27,9 @@ ROOT_ADDRESS_STATIC_RESOURCES = [
"/manifest.json",
"/favicon.ico",
"/f... | [dagit] Remove old favicons from static resource list (#<I>) | py |
diff --git a/egg/example_other_widgets.py b/egg/example_other_widgets.py
index <HASH>..<HASH> 100644
--- a/egg/example_other_widgets.py
+++ b/egg/example_other_widgets.py
@@ -29,7 +29,7 @@ top_row = window.place_object(egg.gui.GridLayout(False), 0,0, column_span=2)
# define a dummy functions to catch signals from bu... | Removed last of old dialogs API | py |
diff --git a/recordlinkage/utils.py b/recordlinkage/utils.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/utils.py
+++ b/recordlinkage/utils.py
@@ -2,6 +2,8 @@ import sys
import numpy
+from recordlinkage.types import is_list_like, is_numpy_like
+
# Errors and Exception handlers
class IndexError(Exception):
... | FEAT: make list of variable and make unique list | py |
diff --git a/exchangelib/properties.py b/exchangelib/properties.py
index <HASH>..<HASH> 100644
--- a/exchangelib/properties.py
+++ b/exchangelib/properties.py
@@ -216,6 +216,11 @@ class ConversationId(ItemId):
# MSDN: https://msdn.microsoft.com/en-us/library/office/dd899527(v=exchg.150).aspx
ELEMENT_NAME = 'C... | ConversationId.changekey is only required in some circumstances | py |
diff --git a/packages/snet_cli/snet/snet_cli/metadata/service.py b/packages/snet_cli/snet/snet_cli/metadata/service.py
index <HASH>..<HASH> 100644
--- a/packages/snet_cli/snet/snet_cli/metadata/service.py
+++ b/packages/snet_cli/snet/snet_cli/metadata/service.py
@@ -176,12 +176,18 @@ class MPEServiceMetadata:
... | Handle the case when metadata file does not have tags | py |
diff --git a/ceph_deploy/hosts/common.py b/ceph_deploy/hosts/common.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/common.py
+++ b/ceph_deploy/hosts/common.py
@@ -18,7 +18,7 @@ def mon_create(distro, args, monitor_keyring, hostname):
done_path = paths.mon.done(args.cluster, hostname)
init_path = paths... | fix ceph conf references in hosts.common | py |
diff --git a/dirty_models/model_types.py b/dirty_models/model_types.py
index <HASH>..<HASH> 100644
--- a/dirty_models/model_types.py
+++ b/dirty_models/model_types.py
@@ -1,8 +1,9 @@
"""
Internal types for dirty models
"""
-from dirty_models.base import BaseData
import itertools
+from dirty_models.base import BaseD... | Decorator not deleting function docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name='angr',
- version='0.8.1',
+ version='4.5.9.9',
description='The next-generation binary analysis platform from UC Santa Barbara\'s Seclab!',
pac... | ticked version number to <I> | py |
diff --git a/graphviz/lang.py b/graphviz/lang.py
index <HASH>..<HASH> 100644
--- a/graphviz/lang.py
+++ b/graphviz/lang.py
@@ -9,9 +9,9 @@ from .tools import mapping_items
__all__ = ['quote', 'attributes']
ID = re.compile(r'([a-zA-Z_][a-zA-Z0-9_]*|-?(\.\d+|\d+(\.\d*)?))$')
+KEYWORD = re.compile(r'((node)|(edge)|(gr... | Adding quotes to DOT keywords In DOT language, the keywords node, edge, graph, digraph, subgraph, and strict are case-independent. When adding a node with a DOR keyword as its name, the node's name must be surrounded with double quotation marks, otherwise it produces an invalid DOT file. | py |
diff --git a/holoviews/plotting/bokeh/styles.py b/holoviews/plotting/bokeh/styles.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/styles.py
+++ b/holoviews/plotting/bokeh/styles.py
@@ -27,7 +27,7 @@ base_properties = ['visible', 'muted']
line_properties = ['line_color', 'line_alpha', 'color', 'alpha', ... | allow customizing hover line_(width|join|cap|dash) properties (#<I>) | py |
diff --git a/allauth/socialaccount/providers/discord/provider.py b/allauth/socialaccount/providers/discord/provider.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/discord/provider.py
+++ b/allauth/socialaccount/providers/discord/provider.py
@@ -1,6 +1,7 @@
+from allauth.account.models import Email... | fix(pep8): Code style issue in Discord provider | py |
diff --git a/salt/states/schedule.py b/salt/states/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/states/schedule.py
+++ b/salt/states/schedule.py
@@ -136,8 +136,9 @@ def present(name,
Requires python-croniter.
run_on_start
- Whether the job will run when Salt minion start. Value should be
-... | Update schedule.py The documentation is incongruent with the module documentation. In the module the behaviour is stated as the fix (<URL>), while the current doc suggest the schedule will not run at all if the value is set to False (which is wrong) | py |
diff --git a/test/canonical_test.py b/test/canonical_test.py
index <HASH>..<HASH> 100644
--- a/test/canonical_test.py
+++ b/test/canonical_test.py
@@ -62,7 +62,7 @@ def canonicalImport(filename):
for (i, row) in enumerate(reader):
clean_row = [(k, preProcess(v)) for (k, v) in
... | Fix the error found while travis Build | py |
diff --git a/nameko/testing/services.py b/nameko/testing/services.py
index <HASH>..<HASH> 100644
--- a/nameko/testing/services.py
+++ b/nameko/testing/services.py
@@ -204,7 +204,10 @@ def entrypoint_waiter(container, method_name, timeout=30, callback=None):
yield waiter_result
-entrypoint_waiter.Ti... | don't create the exception class dynamically (too magic) | py |
diff --git a/airflow/operators/slack_operator.py b/airflow/operators/slack_operator.py
index <HASH>..<HASH> 100644
--- a/airflow/operators/slack_operator.py
+++ b/airflow/operators/slack_operator.py
@@ -86,7 +86,7 @@ class SlackAPIPostOperator(SlackAPIOperator):
:type attachments: array of hashes
"""
- t... | [AIRFLOW-<I>] Add channel to template fields of slack_operator Closes #<I> from Acehaidrey/AIRFLOW-<I> | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -231,6 +231,7 @@ class CardTransfer:
self.sender = sender
self.receivers = receivers
self.amount = amount
+ assert len(self.receivers) < 20, {"e... | cap max receivers to <I> for now | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@ from distutils.core import setup
setup(
name = 'idalink',
version = '0.01',
- packages = ['idalink'],
- package_data = { 'idalink': [ 'support/*.sh' ] }
+ packages = ['idalink', 'idalink.rpyc']... | add requirements and install the embedded rpyc | py |
diff --git a/graphene_django/converter.py b/graphene_django/converter.py
index <HASH>..<HASH> 100644
--- a/graphene_django/converter.py
+++ b/graphene_django/converter.py
@@ -7,6 +7,7 @@ from graphene.relay import is_node
from graphene.types.datetime import DateTime
from graphene.types.json import JSONString
from gr... | Fix #<I> by using choice keys as enum keys, not choice descriptions | py |
diff --git a/bson/son.py b/bson/son.py
index <HASH>..<HASH> 100644
--- a/bson/son.py
+++ b/bson/son.py
@@ -104,7 +104,7 @@ class SON(dict):
return "SON([%s])" % ", ".join(result)
def __setitem__(self, key, value):
- if key not in self:
+ if key not in self.__keys:
self.__keys.... | PYTHON-<I> Remove slow SON.__contains__ method. __setitem__ must now check self.__keys to avoid setting keys twice during "copy.copy(son_obj)". | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
author='Yan Kalchevskiy',
author_email='yan.kalchevskiy@gmail.ru',
classifiers=[
- 'Development Status :: 4 - Beta',
+ 'Development Status :: 5 - Production/Stable',
... | Moved development status to Production/Stable. | py |
diff --git a/eulfedora/__init__.py b/eulfedora/__init__.py
index <HASH>..<HASH> 100644
--- a/eulfedora/__init__.py
+++ b/eulfedora/__init__.py
@@ -15,7 +15,7 @@
# limitations under the License.
-__version_info__ = (0, 22, 0, 'dev')
+__version_info__ = (0, 22, 0, None)
# Dot-connect all but the last. Last is d... | set version to <I> final | py |
diff --git a/prospector/tools/pylint/__init__.py b/prospector/tools/pylint/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/tools/pylint/__init__.py
+++ b/prospector/tools/pylint/__init__.py
@@ -79,7 +79,6 @@ class PylintTool(ToolBase):
# allow the indentation specified in the pylint configuration file... | Fix test since mixed-indentation does not exists anymore | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,6 +12,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
+from datetime import date
import sys, os
# If extensions (or modules to document wit... | Fix the copyright date to keep up-to-date with last build time | py |
diff --git a/commitizen/cz/conventional_commits/conventional_commits.py b/commitizen/cz/conventional_commits/conventional_commits.py
index <HASH>..<HASH> 100644
--- a/commitizen/cz/conventional_commits/conventional_commits.py
+++ b/commitizen/cz/conventional_commits/conventional_commits.py
@@ -179,7 +179,7 @@ class Con... | fix(cz/conventional_commits): fix schema_pattern break due to rebase | py |
diff --git a/usb/core.py b/usb/core.py
index <HASH>..<HASH> 100644
--- a/usb/core.py
+++ b/usb/core.py
@@ -256,6 +256,9 @@ class USBError(IOError):
IOError.__init__(self, errno, strerror)
self.backend_error_code = error_code
+class NoBackendError(ValueError):
+ r"Exception class when a valid back... | Create a specialized class for "no backend" exception. Now when no backend is found, the exception NoBackendError is raised, allowing the application to handle it properly. closes #<I>. | py |
diff --git a/clancy.py b/clancy.py
index <HASH>..<HASH> 100755
--- a/clancy.py
+++ b/clancy.py
@@ -14,16 +14,16 @@ Usage:
clancy.py --version
Options:
- --time <time> Delgation time string.
+ --time <time> Delegation time string.
--usages <usages> Delegation usages.
--action <action... | I should probably turn spell check back on | py |
diff --git a/amt/wsman.py b/amt/wsman.py
index <HASH>..<HASH> 100644
--- a/amt/wsman.py
+++ b/amt/wsman.py
@@ -39,11 +39,9 @@ BOOT_DEVICES = {
FRIENDLY_POWER_STATE = {v: k for (k, v) in POWER_STATES.items()}
+
def friendly_power_state(state):
- try:
- return FRIENDLY_POWER_STATE[int(state)]
- except ... | return 'unknown' for unknown power states | py |
diff --git a/inbox/client/restful_models.py b/inbox/client/restful_models.py
index <HASH>..<HASH> 100644
--- a/inbox/client/restful_models.py
+++ b/inbox/client/restful_models.py
@@ -116,6 +116,9 @@ class Thread(InboxAPIObject):
def unarchive(self):
self.update_tags(['inbox'], ['archive'])
+ def tras... | [client/threads] Add trash method. | py |
diff --git a/generate_perfscale_results.py b/generate_perfscale_results.py
index <HASH>..<HASH> 100755
--- a/generate_perfscale_results.py
+++ b/generate_perfscale_results.py
@@ -6,6 +6,7 @@ from __future__ import print_function
import argparse
from collections import defaultdict, namedtuple
from datetime import dat... | Check for ENOENT and log accordingly. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,10 +52,7 @@ params = dict(
'jaraco.windows>=3.4',
],
':sys_platform=="darwin"': [
- 'richxerox>=1',
- # for now, declare the dependency as richxerox doesn't
- # see https://bitbucket.org/jeunice/richxerox/i... | Bump to richxerox <I> which avoids wheel builds and thus retains the necessary dependency. | py |
diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py
index <HASH>..<HASH> 100644
--- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py
+++ b/sdk/storage/azur... | added fix for http response regression fail (#<I>) | py |
diff --git a/stempeg/read.py b/stempeg/read.py
index <HASH>..<HASH> 100644
--- a/stempeg/read.py
+++ b/stempeg/read.py
@@ -121,6 +121,7 @@ def read_stems(
sp.call(cmd)
# read wav files
audio, rate = sf.read(tmps[tmp_id].name)
+ tmps[tmp_id].close()
os.remove(tmps[tmp_id].name)... | close file before removing it, addressing issue #3 | py |
diff --git a/fs/zipfs.py b/fs/zipfs.py
index <HASH>..<HASH> 100644
--- a/fs/zipfs.py
+++ b/fs/zipfs.py
@@ -158,11 +158,14 @@ class _ZipExtFile(RawWrapper):
"""
_whence = int(whence)
_pos = self.tell()
- if _whence == Seek.current or _whence == Seek.set:
+ if ... | Fix mechanism used to check for invalid `whence` in `fs.zipfs` | py |
diff --git a/python/ray/air/_internal/tensorflow_utils.py b/python/ray/air/_internal/tensorflow_utils.py
index <HASH>..<HASH> 100644
--- a/python/ray/air/_internal/tensorflow_utils.py
+++ b/python/ray/air/_internal/tensorflow_utils.py
@@ -3,6 +3,7 @@ from typing import Optional
import numpy as np
import pandas as pd
... | [Ray dataset] detect dataframe dtype as object (#<I>) * fix ci * not break master | py |
diff --git a/phy/utils/datasets.py b/phy/utils/datasets.py
index <HASH>..<HASH> 100644
--- a/phy/utils/datasets.py
+++ b/phy/utils/datasets.py
@@ -130,8 +130,9 @@ def download_sample_data(name, output_dir=None, base='cortexlab'):
# Try to download the requested file.
try:
download_file(ur... | Don't return paths of non-downloaded files. | py |
diff --git a/bokeh/charts/_chart.py b/bokeh/charts/_chart.py
index <HASH>..<HASH> 100644
--- a/bokeh/charts/_chart.py
+++ b/bokeh/charts/_chart.py
@@ -122,8 +122,10 @@ class Chart(Plot):
if self._options.tools:
# reset tools so a categorical builder can add only the
# supported tools
... | Temporarily fix where extra tools are added to chart. | py |
diff --git a/bgen_reader/test/test_large_file.py b/bgen_reader/test/test_large_file.py
index <HASH>..<HASH> 100644
--- a/bgen_reader/test/test_large_file.py
+++ b/bgen_reader/test/test_large_file.py
@@ -33,8 +33,8 @@ def test_large_file(capsys):
assert_equal(g["probs"].shape, (415, 3))
assert_allclo... | Issue #<I>, genotype part_size | py |
diff --git a/test/DetermineEndpointTest.py b/test/DetermineEndpointTest.py
index <HASH>..<HASH> 100644
--- a/test/DetermineEndpointTest.py
+++ b/test/DetermineEndpointTest.py
@@ -17,14 +17,14 @@ class TestDetermineUrl(unittest.TestCase):
url = self.adyen.client._determine_checkout_url("live", "payments")
... | Update the version to <I> for unit tests | py |
diff --git a/imutils/feature/helpers.py b/imutils/feature/helpers.py
index <HASH>..<HASH> 100755
--- a/imutils/feature/helpers.py
+++ b/imutils/feature/helpers.py
@@ -3,4 +3,9 @@ import cv2
def corners_to_keypoints(corners):
"""function to take the corners from cv2.GoodFeaturesToTrack and return cv2.KeyPoints""... | add None check to corners_to_keypoints | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages
setup(
name='sandstone',
- version='0.12.9',
+ version='0.12.10',
author=u'Zebula Sampedro',
author_email='sampedro@colorado.edu',
packages=find_pa... | Bumped version to <I> | py |
diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py
index <HASH>..<HASH> 100644
--- a/slither/solc_parsing/expressions/expression_parsing.py
+++ b/slither/solc_parsing/expressions/expression_parsing.py
@@ -47,7 +47,7 @@ def get_pointer_name(variab... | Improve support for library remapping | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -153,7 +153,7 @@ class ElementPlot(BokehPlot, GenericElementPlot):
return plot
- def _update_plot(self... | Updated signature of _update_plot to show element is not always used | py |
diff --git a/chatterbot/comparisons.py b/chatterbot/comparisons.py
index <HASH>..<HASH> 100644
--- a/chatterbot/comparisons.py
+++ b/chatterbot/comparisons.py
@@ -253,6 +253,15 @@ class JaccardSimilarity(Comparator):
nltk_download_corpus('corpora/wordnet')
+ def initialize_nltk_averaged_perceptron_tagge... | Download averaged_perceptron_tagger for comparisons.jaccard_similarity | py |
diff --git a/Plot.py b/Plot.py
index <HASH>..<HASH> 100755
--- a/Plot.py
+++ b/Plot.py
@@ -22,7 +22,7 @@ import xml.dom.minidom
import DataStore
from Localisation import charset
from TimeZone import Local
-from WeatherStation import dew_point
+from WeatherStation import dew_point, apparent_temp
class GraphPlotter... | Added 'apparent_temp' function to imports. | 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
@@ -564,9 +564,9 @@ def _mod_keyer(mod):
if rrset.get('GeoLocation', False):
unique_id = rrset['SetIdentifier']
else:
- try:
+ ... | Use if, else rather than try, except KeyError | py |
diff --git a/pcef/core/system.py b/pcef/core/system.py
index <HASH>..<HASH> 100644
--- a/pcef/core/system.py
+++ b/pcef/core/system.py
@@ -93,12 +93,6 @@ def inheritors(klass):
return subclasses
-def find_subpackages(pkgpath):
- import pkgutil
- for itm in pkgutil.iter_modules([pkgpath]):
- print(... | Remove unused function (since we plugin entry point this function is useless) | py |
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Droplet.py
+++ b/digitalocean/Droplet.py
@@ -331,7 +331,6 @@ class Droplet(BaseAPI):
"""
return Action.get_object(
api_token=self.token,
- droplet_id=self.id,
... | droplet_id is not required anymore to get an Action object. | py |
diff --git a/src/guake/guake_app.py b/src/guake/guake_app.py
index <HASH>..<HASH> 100644
--- a/src/guake/guake_app.py
+++ b/src/guake/guake_app.py
@@ -728,6 +728,16 @@ class Guake(SimpleGladeApp):
menu.popup(None, None, None, 3, event.get_time())
self.set_terminal_focus()
+ def middle_button_... | Close a tab with the middle button of the mouse | py |
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index <HASH>..<HASH> 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -273,13 +273,8 @@ def post_entity_categories(maps, **kwargs):
required = []
if kwargs["mds"]:
- try:
+ if "sp_entity_id" in kwargs:
... | Don't catch KeyError over too broad statement. Previously KeyError in lower level of implementation, MetadataStore.entity_categories(), was caught instead of being propagated. | py |
diff --git a/journals/fields/bd1xx.py b/journals/fields/bd1xx.py
index <HASH>..<HASH> 100644
--- a/journals/fields/bd1xx.py
+++ b/journals/fields/bd1xx.py
@@ -28,9 +28,14 @@ from ..model import journals
@journals.over('issn', '^022..')
+@utils.for_each_value
+@utils.filter_values
def issn(self, key, value):
... | dojson: fixes journal issn issue * Adds material field to issn. * Fixes issn field to support multiple issn. * Closes #<I>. | py |
diff --git a/drivers/python/setup.py b/drivers/python/setup.py
index <HASH>..<HASH> 100644
--- a/drivers/python/setup.py
+++ b/drivers/python/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name="rethinkdb",
zip_safe=True,
- version="1.15.0-1",
+ version="1.15.0-2",
description="This ... | Bump Python driver to <I>-2 | py |
diff --git a/eth_account/internal/transactions.py b/eth_account/internal/transactions.py
index <HASH>..<HASH> 100644
--- a/eth_account/internal/transactions.py
+++ b/eth_account/internal/transactions.py
@@ -16,6 +16,7 @@ from eth_utils.curried import (
apply_one_of_formatters,
hexstr_if_str,
is_0x_prefix... | (Pull Request) Use existing method from eth-utils | py |
diff --git a/eventsourcing/application.py b/eventsourcing/application.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application.py
+++ b/eventsourcing/application.py
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass
-from typing import Generic, List, Optional, TypeVar
+from ty... | Added **kwargs to Application's save method, passed to EventStore's put method, so that arbitrary objects can be passed down the stack and persisted atomically with the domain events. | py |
diff --git a/again/decorate.py b/again/decorate.py
index <HASH>..<HASH> 100644
--- a/again/decorate.py
+++ b/again/decorate.py
@@ -36,7 +36,7 @@ def silence_coroutine(target_exceptions:list, exception_handler=_default_handler
@wraps(func)
def wrapper(*args, **kwargs):
try:
- ... | Fix bug in silence_coroutine by returing the result | py |
diff --git a/mcash/mapi_client/mapi_client.py b/mcash/mapi_client/mapi_client.py
index <HASH>..<HASH> 100644
--- a/mcash/mapi_client/mapi_client.py
+++ b/mcash/mapi_client/mapi_client.py
@@ -504,16 +504,18 @@ class MapiClient(object):
self.base_url + '/shortlink/'
... | Handle retrieval of shortlink info by id or url | py |
diff --git a/pyrax/cf_wrapper/container.py b/pyrax/cf_wrapper/container.py
index <HASH>..<HASH> 100644
--- a/pyrax/cf_wrapper/container.py
+++ b/pyrax/cf_wrapper/container.py
@@ -68,6 +68,14 @@ class Container(object):
return ret
+ def get_object_names(self):
+ """
+ Returns a list of the ... | Added the 'get_object_names()' method to the Container class. | py |
diff --git a/bigfloat_cython/docs/conf.py b/bigfloat_cython/docs/conf.py
index <HASH>..<HASH> 100644
--- a/bigfloat_cython/docs/conf.py
+++ b/bigfloat_cython/docs/conf.py
@@ -17,12 +17,17 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.... | Use the Sphinx autodoc extension; adjust sys.path to add path to main build directory. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,24 +2,31 @@ from __future__ import print_function
import os
import sys
import pbs
+import subprocess
try: from distutils.core import setup
except ImportError: from setuptools import setup
if sys.argv[1] == "test... | making tests not totally dependent on pbs in the first place :) | py |
diff --git a/telethon/utils.py b/telethon/utils.py
index <HASH>..<HASH> 100644
--- a/telethon/utils.py
+++ b/telethon/utils.py
@@ -936,6 +936,27 @@ def resolve_invite_link(link):
return None, None, None
+def resolve_inline_message_id(inline_msg_id):
+ """
+ Resolves an inline message ID. Returns a tu... | Add method to resolve inline message IDs (#<I>) | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -29,6 +29,7 @@ import salt.utils as utils
import salt.version as version
import salt.utils.args
import salt.utils.xdg
+from salt.defaults import DEFAULT_TARGET_DELIM
from... | Fix ref to DEFAULT_TARGET_DELIM | py |
diff --git a/pymagicc/__init__.py b/pymagicc/__init__.py
index <HASH>..<HASH> 100644
--- a/pymagicc/__init__.py
+++ b/pymagicc/__init__.py
@@ -16,7 +16,7 @@ __version__ = get_versions()["version"]
del get_versions
-def run(scenario, magicc_version=6, out_temperature=1, **kwargs):
+def run(scenario, magicc_version=... | Undo changes to pymagicc.run, can wait until we test MAGICC7 properly | py |
diff --git a/pymatgen/io/lammps/output.py b/pymatgen/io/lammps/output.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/lammps/output.py
+++ b/pymatgen/io/lammps/output.py
@@ -170,6 +170,7 @@ class LammpsDump(MSONable):
fnames = glob.glob(self.filename)
if len(fnames) > 1:
pattern = r"%s" ... | try fixing backslashs in regexpattern | py |
diff --git a/docker/utils.py b/docker/utils.py
index <HASH>..<HASH> 100644
--- a/docker/utils.py
+++ b/docker/utils.py
@@ -38,7 +38,7 @@ def mkbuildcontext(dockerfile):
return f
-def tar(self, path):
+def tar(path):
f = tempfile.TemporaryFile()
t = tarfile.open(mode='w', fileobj=f)
t.add(path, a... | Update utils.py - the tar function in utils is a non member function but has a self. The problem explained in the title cause the build function of the client to fail when giving a folder parameter : the tar function is called with only one parameter. | py |
diff --git a/suds/xsd/sxbase.py b/suds/xsd/sxbase.py
index <HASH>..<HASH> 100644
--- a/suds/xsd/sxbase.py
+++ b/suds/xsd/sxbase.py
@@ -609,6 +609,9 @@ class Iter:
self.index += 1
return result
+ def __iter__(self):
+ return self
+
def __init__(self, sx):
... | Define missing __iter__ to fulfill Iterator interface. | py |
diff --git a/ipyrad/__main__.py b/ipyrad/__main__.py
index <HASH>..<HASH> 100644
--- a/ipyrad/__main__.py
+++ b/ipyrad/__main__.py
@@ -210,13 +210,6 @@ def merge_assemblies(args):
## Do the merge
merged_assembly = ip.merge(newname, assemblies)
- ## Set the values for some params that don't make sense ins... | moved setting of ['merged'] to replace filepath names to Assembly instead of main so that it also works for the API | py |
diff --git a/fluent_utils/django_compat/django14.py b/fluent_utils/django_compat/django14.py
index <HASH>..<HASH> 100644
--- a/fluent_utils/django_compat/django14.py
+++ b/fluent_utils/django_compat/django14.py
@@ -5,7 +5,7 @@ except ImportError:
# Django < 1.4
from datetime import datetime
now = datetim... | comment: clarify utc = None for django <I> compat | py |
diff --git a/chunkypipes/util/__init__.py b/chunkypipes/util/__init__.py
index <HASH>..<HASH> 100644
--- a/chunkypipes/util/__init__.py
+++ b/chunkypipes/util/__init__.py
@@ -1,4 +1,5 @@
import sys
+import os
import traceback
from importlib import import_module
@@ -8,6 +9,12 @@ def fetch_command_class(subcommand):... | ChunkyPipes now halts execution if it can't find an initialized hidden directory and asks the user to run chunky init | py |
diff --git a/astroid/manager.py b/astroid/manager.py
index <HASH>..<HASH> 100644
--- a/astroid/manager.py
+++ b/astroid/manager.py
@@ -140,6 +140,8 @@ class AstroidManager(OptionsProviderMixIn):
return self.ast_from_module(module, modname)
elif mp_type == imp.PY_COMPILED:
... | Explicitly raise if filepath is None in ast_from_module_name. | py |
diff --git a/pyontutils/nif_neuron.py b/pyontutils/nif_neuron.py
index <HASH>..<HASH> 100755
--- a/pyontutils/nif_neuron.py
+++ b/pyontutils/nif_neuron.py
@@ -14,7 +14,6 @@ from ilx_utils import ILXREPLACE
from parcellation import OntMeta, TODAY
from obo_io import OboFile
from scigraph_client import Graph, Vocabular... | nif neuron made table1 import done | py |
diff --git a/latools/latools.py b/latools/latools.py
index <HASH>..<HASH> 100644
--- a/latools/latools.py
+++ b/latools/latools.py
@@ -3833,6 +3833,9 @@ class analyse(object):
Adds dict to analyse object containing samples, analytes and
functions and data.
"""
+ if 'autorange' ... | refuse to calculate sample stats until autorange has been run. | py |
diff --git a/indra/tests/test_groundingmapper.py b/indra/tests/test_groundingmapper.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_groundingmapper.py
+++ b/indra/tests/test_groundingmapper.py
@@ -501,6 +501,22 @@ def test_gilda_disambiguation_local():
assert annotations['agents']['gilda'][1][0]['term']['db'... | Add test to check grounding map preferred to gilda | py |
diff --git a/salt/beacons/btmp.py b/salt/beacons/btmp.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/btmp.py
+++ b/salt/beacons/btmp.py
@@ -14,6 +14,7 @@ import os
import struct
# Import Salt Libs
+import salt.utils
from salt.ext.six.moves import range # pylint: disable=import-error,redefined-builtin
__virt... | Migrate btmp beacon to fopen | py |
diff --git a/testing/models/test_epic.py b/testing/models/test_epic.py
index <HASH>..<HASH> 100644
--- a/testing/models/test_epic.py
+++ b/testing/models/test_epic.py
@@ -6,6 +6,7 @@ except ImportError:
import mock
from k2catalogue import models
+from k2catalogue import detail_object
@pytest.fixture
@@ -22... | Add test for integration of DetailObject and EPIC | py |
diff --git a/shelter/core/processes.py b/shelter/core/processes.py
index <HASH>..<HASH> 100644
--- a/shelter/core/processes.py
+++ b/shelter/core/processes.py
@@ -209,6 +209,15 @@ class BaseProcess(six.with_metaclass(AddLoggerMeta, object)):
self.name = "{:s}: {:s}".format(
self.context.config.nam... | added initialize() method into BaseProcess class | py |
diff --git a/xbbg/__init__.py b/xbbg/__init__.py
index <HASH>..<HASH> 100644
--- a/xbbg/__init__.py
+++ b/xbbg/__init__.py
@@ -1,3 +1,3 @@
"""Bloomberg data toolkit for humans"""
-__version__ = '0.1.19'
+__version__ = '0.1.20' | version <I>: fixed decorator blp.with_bloomberg outside of xbbg | py |
diff --git a/bunq/sdk/context/user_context.py b/bunq/sdk/context/user_context.py
index <HASH>..<HASH> 100644
--- a/bunq/sdk/context/user_context.py
+++ b/bunq/sdk/context/user_context.py
@@ -41,6 +41,9 @@ class UserContext:
self._ERROR_UNEXPECTED_USER_INSTANCE.format(user.__class__))
def init_ma... | feature/python-sdk-psd2: Do not init monetary account if user_payment_service_provider is present. | py |
diff --git a/tests/contrib/openstack/test_os_contexts.py b/tests/contrib/openstack/test_os_contexts.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/openstack/test_os_contexts.py
+++ b/tests/contrib/openstack/test_os_contexts.py
@@ -557,8 +557,8 @@ class ContextTests(unittest.TestCase):
image_service = conte... | [hopem] fixed neutron_url bad port | py |
diff --git a/xml4h/nodes.py b/xml4h/nodes.py
index <HASH>..<HASH> 100644
--- a/xml4h/nodes.py
+++ b/xml4h/nodes.py
@@ -803,6 +803,11 @@ class Element(NameValueNodeMixin,
# Always process 'xmlns' namespace definitions first, in case other
# attributes belong to a newly-defined namespace
+ # TO... | Re-implement `cmp` function no longer in Python 3 | py |
diff --git a/onecodex/models/analysis.py b/onecodex/models/analysis.py
index <HASH>..<HASH> 100644
--- a/onecodex/models/analysis.py
+++ b/onecodex/models/analysis.py
@@ -136,19 +136,6 @@ class Classifications(Analyses):
"""
return self.results(json=False)
- def abundances(self, ids=None):
- ... | remove abundances method (#<I>) | py |
diff --git a/bugwarrior/services/bitbucket.py b/bugwarrior/services/bitbucket.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/bitbucket.py
+++ b/bugwarrior/services/bitbucket.py
@@ -185,8 +185,10 @@ class BitbucketService(IssueService):
log.name(self.target).debug(" Found {0} total.", len(issues))
... | Fix bitbucket undocumented API change. I'm getting `state` rather than `status` for issues, though `status` is the documented name <<URL> | py |
diff --git a/parsl/channels/base.py b/parsl/channels/base.py
index <HASH>..<HASH> 100644
--- a/parsl/channels/base.py
+++ b/parsl/channels/base.py
@@ -33,10 +33,12 @@ class Channel(metaclass=ABCMeta):
- walltime (int) : Timeout in seconds, optional
KWargs:
- - envs (dict) : Environmen... | clarify the type of execute_wait in documentation (#<I>) | py |
diff --git a/rootpy/logger/__init__.py b/rootpy/logger/__init__.py
index <HASH>..<HASH> 100644
--- a/rootpy/logger/__init__.py
+++ b/rootpy/logger/__init__.py
@@ -1,9 +1,6 @@
# Copyright 2012 the rootpy developers
# distributed under the terms of the GNU General Public License
"""
-:py:mod:`rootpy.logger`
-=========... | logger docs: rm title in .py | py |
diff --git a/scripts/macroeco/utils/workflow.py b/scripts/macroeco/utils/workflow.py
index <HASH>..<HASH> 100644
--- a/scripts/macroeco/utils/workflow.py
+++ b/scripts/macroeco/utils/workflow.py
@@ -206,7 +206,8 @@ class Parameters:
return
# Read parameter file
- logging.info('Reading par... | Log now reports location of params file as per #<I> | py |
diff --git a/beeswarm/server/db/session_persister.py b/beeswarm/server/db/session_persister.py
index <HASH>..<HASH> 100644
--- a/beeswarm/server/db/session_persister.py
+++ b/beeswarm/server/db/session_persister.py
@@ -260,8 +260,7 @@ class SessionPersister(gevent.Greenlet):
session.classification = db... | fixed bug that took the session persister down | py |
diff --git a/pyp2p/lib.py b/pyp2p/lib.py
index <HASH>..<HASH> 100644
--- a/pyp2p/lib.py
+++ b/pyp2p/lib.py
@@ -23,7 +23,7 @@ else:
ip = None
-def get_unused_port(port):
+def get_unused_port(port=None):
"""Checks if port is already in use."""
if port is None or port <= 1024 or port >= 65535:
... | Adding None to Make Same as Storjnode | py |
diff --git a/pymongo/mongo_replica_set_client.py b/pymongo/mongo_replica_set_client.py
index <HASH>..<HASH> 100644
--- a/pymongo/mongo_replica_set_client.py
+++ b/pymongo/mongo_replica_set_client.py
@@ -514,6 +514,11 @@ class MongoReplicaSetClient(common.BaseObject):
sure you call :meth:`~close` to ensure t... | Note that RS clients are invalid after a fork. | py |
diff --git a/atomic_reactor/plugins/pre_pull_base_image.py b/atomic_reactor/plugins/pre_pull_base_image.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/pre_pull_base_image.py
+++ b/atomic_reactor/plugins/pre_pull_base_image.py
@@ -181,6 +181,16 @@ class PullBaseImagePlugin(PreBuildPlugin):
... | Explain: _get_image_for_different_arch | py |
diff --git a/indra/assemblers/sbgn_assembler.py b/indra/assemblers/sbgn_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/sbgn_assembler.py
+++ b/indra/assemblers/sbgn_assembler.py
@@ -182,16 +182,13 @@ class SBGNAssembler(object):
def _assemble_regulateamount(self, stmt):
# Make glyphs for ... | Adapt to PySB RXN with no sources and sinks | py |
diff --git a/fusesoc/main.py b/fusesoc/main.py
index <HASH>..<HASH> 100644
--- a/fusesoc/main.py
+++ b/fusesoc/main.py
@@ -113,6 +113,7 @@ def init(cm, args):
xdg_data_home = os.environ.get('XDG_DATA_HOME') or \
os.path.join(os.path.expanduser('~'), '.local/share')
+ library_root = os.path.join(... | Fix init default library location Use the 'fusesoc' subdirectory for the user output and also for the directory exists check. | py |
diff --git a/trakt/interfaces/oauth/device.py b/trakt/interfaces/oauth/device.py
index <HASH>..<HASH> 100644
--- a/trakt/interfaces/oauth/device.py
+++ b/trakt/interfaces/oauth/device.py
@@ -3,6 +3,7 @@ from trakt.interfaces.base import Interface
from datetime import datetime, timedelta
from threading import Thread... | Fixed an issue where tokens generated with device authentication wouldn't refresh correctly #<I> | py |
diff --git a/example/handler.py b/example/handler.py
index <HASH>..<HASH> 100644
--- a/example/handler.py
+++ b/example/handler.py
@@ -1,22 +1,5 @@
-import json
+import requests
-def hello(event, context):
- body = {
- "message": "Go Serverless v1.0! Your function executed successfully!",
- "input": ... | Since test is called example, it might as well actually use requests | py |
diff --git a/einops/__init__.py b/einops/__init__.py
index <HASH>..<HASH> 100644
--- a/einops/__init__.py
+++ b/einops/__init__.py
@@ -1,4 +1,5 @@
__author__ = 'Alex Rogozhnikov'
__version__ = '0.1'
+__all__ = ['rearrange', 'reduce', 'parse_shape', 'asnumpy', 'EinopsError']
from .einops import rearrange, reduce, p... | add __all__ to minimize star-imports | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.