diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mambuloan.py b/mambuloan.py
index <HASH>..<HASH> 100644
--- a/mambuloan.py
+++ b/mambuloan.py
@@ -105,8 +105,10 @@ class MambuLoan(MambuStruct):
prods = dict((v['key'],k) for k,v in products.iteritems())
try:
self.attrs['productTypeName'] = prods[self.attrs['productTypeKey']]... | mambuloan informs of automatic charges for arrears | py |
diff --git a/doc/ext/restapi_parameters.py b/doc/ext/restapi_parameters.py
index <HASH>..<HASH> 100644
--- a/doc/ext/restapi_parameters.py
+++ b/doc/ext/restapi_parameters.py
@@ -17,7 +17,6 @@ import re
from docutils import nodes
from docutils.parsers.rst.directives.tables import Table
from docutils.statemachine imp... | fix docs check By remove the line of importing Directive which is not in use. Change-Id: I6fc5b<I>cdcde<I>ce<I>b<I>ea<I>d<I>f2be<I> | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -475,7 +475,7 @@ def _run(cmd,
else:
raise CommandExecutionError(
'Environment could not be retrieved for User \'{0}\':... | fix repr for the linter | py |
diff --git a/zinnia/url_shortener/backends/default.py b/zinnia/url_shortener/backends/default.py
index <HASH>..<HASH> 100644
--- a/zinnia/url_shortener/backends/default.py
+++ b/zinnia/url_shortener/backends/default.py
@@ -1,13 +1,22 @@
"""Default URL shortener backend for Zinnia"""
+import math
+import string
+
from... | Encode the PK under the base <I> | py |
diff --git a/cumulusci/tasks/push/pushfails.py b/cumulusci/tasks/push/pushfails.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/push/pushfails.py
+++ b/cumulusci/tasks/push/pushfails.py
@@ -12,10 +12,9 @@ from cumulusci.tasks.salesforce import BaseSalesforceApiTask
class ReportPushFailures(BaseSalesforceApiTa... | Stripping out any changes not specifically made to test_push_tasks.py and tasks.py | py |
diff --git a/src/pyglet2d.py b/src/pyglet2d.py
index <HASH>..<HASH> 100644
--- a/src/pyglet2d.py
+++ b/src/pyglet2d.py
@@ -90,7 +90,7 @@ class Shape:
start_angle : float, optional
Where to put the first point, relative to `center`,
in degrees counter-clockwise starting from the horizo... | don't use ** in docstrings | py |
diff --git a/Lib/fontParts/base/layer.py b/Lib/fontParts/base/layer.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/layer.py
+++ b/Lib/fontParts/base/layer.py
@@ -66,7 +66,7 @@ class _BaseGlyphVendor(BaseObject):
Subclasses may override this method.
"""
- names = self.keys()
+ ... | keys must be editable list but not changing the actual keys set | py |
diff --git a/demosys/loaders/scene/gltf.py b/demosys/loaders/scene/gltf.py
index <HASH>..<HASH> 100644
--- a/demosys/loaders/scene/gltf.py
+++ b/demosys/loaders/scene/gltf.py
@@ -99,8 +99,11 @@ class GLTF2(SceneLoader):
:param scene: The scene object
:param file: Resolved path if changed by finder
... | glft loader is responsible for resolving path | py |
diff --git a/tests/unit/algorithms/ReactiveTransportTest.py b/tests/unit/algorithms/ReactiveTransportTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/algorithms/ReactiveTransportTest.py
+++ b/tests/unit/algorithms/ReactiveTransportTest.py
@@ -37,6 +37,20 @@ class GenericTransportTest:
y = sp.unique(sp.arou... | Add test to make sure set_source doesn't override Dirichlet BCs | py |
diff --git a/ocrd_validators/ocrd_validators/workspace_validator.py b/ocrd_validators/ocrd_validators/workspace_validator.py
index <HASH>..<HASH> 100644
--- a/ocrd_validators/ocrd_validators/workspace_validator.py
+++ b/ocrd_validators/ocrd_validators/workspace_validator.py
@@ -155,7 +155,7 @@ class WorkspaceValidator(... | TIFF w/ more than 1 frame should be error not warning | py |
diff --git a/tests/test_discovery.py b/tests/test_discovery.py
index <HASH>..<HASH> 100644
--- a/tests/test_discovery.py
+++ b/tests/test_discovery.py
@@ -23,6 +23,7 @@ Unit tests for objects created from discovery documents.
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
+import gflags
import httplib2
impo... | Force raising an exception on utils.positional for one test. Reviewed in <URL> | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -514,10 +514,7 @@ class Gitlab(object):
:param project_id: id or namespace/project_name of the project
:return: False if not found, a dictionary if found
"""
-... | refactor: Legacy behaviour in response processor See also: #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name='PyHAML', | Switched to setuptools. | py |
diff --git a/ait/core/table.py b/ait/core/table.py
index <HASH>..<HASH> 100644
--- a/ait/core/table.py
+++ b/ait/core/table.py
@@ -620,7 +620,7 @@ class FSWTabDictCache (object):
def __init__ (self, filename=None):
if filename is None:
filename = os.path.join(os.path.dirname(__file__),
- ... | Issue #<I>: Baseline example configs across repos Modifying relative path to work with new dir structure. Should be changed to derive path from ait.config in future (see Issue #<I>) | py |
diff --git a/services/managers/teamspeak3_manager.py b/services/managers/teamspeak3_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/teamspeak3_manager.py
+++ b/services/managers/teamspeak3_manager.py
@@ -109,7 +109,7 @@ class Teamspeak3Manager:
server_groups = Teamspeak3Manager._group_list()
... | mistake forgot to change one instance of groupname to groupid | py |
diff --git a/scapy/packet.py b/scapy/packet.py
index <HASH>..<HASH> 100644
--- a/scapy/packet.py
+++ b/scapy/packet.py
@@ -757,6 +757,9 @@ Creates an EPS file describing a packet. If filename is not provided a temporary
def route(self):
return (None,None,None)
+
+ def fragment(self, *args, **kargs):
... | Added Packet.fragment() method | py |
diff --git a/pysat/instruments/dmsp_ivm.py b/pysat/instruments/dmsp_ivm.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/dmsp_ivm.py
+++ b/pysat/instruments/dmsp_ivm.py
@@ -269,7 +269,7 @@ def update_DMSP_ephemeris(ivm, ephem=None):
ivm.data = pds.DataFrame(None)
return
- if ephem.sat_id !=... | Update dmsp_ivm.py Fixed bug where instrument was given the wrong name | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -242,12 +242,6 @@ class Pillar(object):
for item in data:
if isinstance(item, string_types):
... | don't merge ext_nodes with pillar lookup, fix #<I> | py |
diff --git a/OpenSSL/rand.py b/OpenSSL/rand.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/rand.py
+++ b/OpenSSL/rand.py
@@ -140,7 +140,7 @@ def load_file(filename, maxbytes=_unspecified):
to read the entire file
:return: The number of bytes read
"""
- if not isinstance(filename, str):
... | bytes for filenames elsewhere, too. | py |
diff --git a/tinman/session/redis_adapter.py b/tinman/session/redis_adapter.py
index <HASH>..<HASH> 100644
--- a/tinman/session/redis_adapter.py
+++ b/tinman/session/redis_adapter.py
@@ -1,6 +1,10 @@
"""
The Redis Session Adapter
+This is synchronous because the Tornado prepare method does not support
+asynchronous... | Add a note as to why session redis usage is synchronous | py |
diff --git a/nestly/scripts/nestrun.py b/nestly/scripts/nestrun.py
index <HASH>..<HASH> 100755
--- a/nestly/scripts/nestrun.py
+++ b/nestly/scripts/nestrun.py
@@ -154,7 +154,7 @@ def parse_arguments():
# Make sure that either a template or a template file was given
if arguments.template_file:
# if gi... | Use basename of template in all cases | py |
diff --git a/synapse/lib/types.py b/synapse/lib/types.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/types.py
+++ b/synapse/lib/types.py
@@ -395,7 +395,7 @@ class TypeLib:
# add base synapse types
self.addType('syn:tag',subof='str', regex=r'^([\w]+\.)*[\w]+$', lower=1)
- self.addType('syn:p... | types: fix syn:prop regex to support globs | py |
diff --git a/master/buildbot/test/integration/test_latent.py b/master/buildbot/test/integration/test_latent.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_latent.py
+++ b/master/buildbot/test/integration/test_latent.py
@@ -418,8 +418,8 @@ class Tests(SynchronousTestCase):
for i in [... | Simplify test a little bit so that it passes on Python 2 and Python 3. The format of the exception stacktrace is quite different between Python 2 and Python 3, and the twisted.python.failure.Failure class doesn't try to present the exact same stacktrace on Python 2 and 3. The correct exception is being thrown, so we c... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,14 +4,18 @@ from distutils.core import setup
setup(
name='hapipy',
version='2.1.4',
- description='Python HubSpot Api Wrapper',
+ description="A python wrapper around HubSpot's APIs",
author='Adrian Mo... | build out the setup a bit more for the cheeseshop | py |
diff --git a/cassiopeia/type/dto/staticdata.py b/cassiopeia/type/dto/staticdata.py
index <HASH>..<HASH> 100644
--- a/cassiopeia/type/dto/staticdata.py
+++ b/cassiopeia/type/dto/staticdata.py
@@ -1136,7 +1136,7 @@ def _sa_bind_champion_spell():
key = sqlalchemy.Column(sqlalchemy.String(30), primary_key=True)
... | Increase sqlalchemy champion spell name length to <I> | py |
diff --git a/salt/fileserver/__init__.py b/salt/fileserver/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/__init__.py
+++ b/salt/fileserver/__init__.py
@@ -222,7 +222,9 @@ def reap_fileserver_cache_dir(cache_base, find_func):
# This will only remove the directory on the second time
... | Fix for issue #<I> This resolves issues when the freshly created directory is removed by fileserver.update. | py |
diff --git a/src/you_get/common.py b/src/you_get/common.py
index <HASH>..<HASH> 100755
--- a/src/you_get/common.py
+++ b/src/you_get/common.py
@@ -622,10 +622,13 @@ def url_save(
bar.done()
if not force and auto_rename:
path, ext = os.path.basename(... | A number bug fixed Now if you can have more than <I> videos that have same names. | py |
diff --git a/bel/resources/namespace.py b/bel/resources/namespace.py
index <HASH>..<HASH> 100644
--- a/bel/resources/namespace.py
+++ b/bel/resources/namespace.py
@@ -42,8 +42,14 @@ def load_terms(fo: IO, metadata: dict):
index_name = f"terms_{index_prefix}_{es_version}"
# Create index with mapping
... | Fix for not updating ES mappings when re-indexing | py |
diff --git a/jax/interpreters/partial_eval.py b/jax/interpreters/partial_eval.py
index <HASH>..<HASH> 100644
--- a/jax/interpreters/partial_eval.py
+++ b/jax/interpreters/partial_eval.py
@@ -372,9 +372,6 @@ class JaxprTracer(Tracer):
else:
return []
- def ispure(self):
- return self.pval.is_known()
-
... | Remove unused `ispure` method (#<I>) | py |
diff --git a/porespy/filters/__funcs__.py b/porespy/filters/__funcs__.py
index <HASH>..<HASH> 100644
--- a/porespy/filters/__funcs__.py
+++ b/porespy/filters/__funcs__.py
@@ -1542,7 +1542,10 @@ def chunked_func(func, divs=2, cores=None, im_arg=['input', 'image', 'im'],
>>> from skimage.morphology import ball
... | Updated doctest to handle progress bar output | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4588,7 +4588,9 @@ class MenuNode(object):
ignored internally by Kconfiglib, except when printing symbols.
filename/linenr:
- The location where the menu node appears.
+ The location... | Document that MenuNode.filename is relative to $srctree ..or to the current directory of $srctree isn't set. | py |
diff --git a/sniffer/scanner/base.py b/sniffer/scanner/base.py
index <HASH>..<HASH> 100644
--- a/sniffer/scanner/base.py
+++ b/sniffer/scanner/base.py
@@ -108,7 +108,7 @@ class BaseScanner(object):
The filepath can be assumed to be a file (not a directory).
"""
if self._validator is not None:... | fixed bug with is_valid_type method. (I really need to get unit tests in) | py |
diff --git a/authy/api/resources.py b/authy/api/resources.py
index <HASH>..<HASH> 100644
--- a/authy/api/resources.py
+++ b/authy/api/resources.py
@@ -62,9 +62,26 @@ class Instance(object):
def ok(self):
return self.response['status'] == '200'
+ def errors(self):
+ if self.ok():
+ r... | add method to get errors to User resource | py |
diff --git a/ppb/systems/inputs.py b/ppb/systems/inputs.py
index <HASH>..<HASH> 100644
--- a/ppb/systems/inputs.py
+++ b/ppb/systems/inputs.py
@@ -26,7 +26,7 @@ class EventPoller(SdlSubSystem):
"""
An event poller that converts Pygame events into PPB events.
"""
- _subsystems = SDL_INIT_EVENTS
+ _s... | ppb.systems.input: Typo'd "_sdl_subsystems" | py |
diff --git a/src/chisel/schema.py b/src/chisel/schema.py
index <HASH>..<HASH> 100644
--- a/src/chisel/schema.py
+++ b/src/chisel/schema.py
@@ -311,7 +311,7 @@ def get_referenced_types(types, type_name, referenced_types=None):
'name': 'Struct2'}}}
:param dict types: The map of user ty... | fix a few code doc types | py |
diff --git a/dataviews/boundingregion.py b/dataviews/boundingregion.py
index <HASH>..<HASH> 100644
--- a/dataviews/boundingregion.py
+++ b/dataviews/boundingregion.py
@@ -212,7 +212,10 @@ class BoundingBox(BoundingRegion):
def __eq__(self, other):
- return self.lbrt() == other.lbrt()
+ if isinsta... | Fixed implementation of equality operator for BoundingBoxes | py |
diff --git a/raven/events.py b/raven/events.py
index <HASH>..<HASH> 100644
--- a/raven/events.py
+++ b/raven/events.py
@@ -106,12 +106,12 @@ class Message(BaseEvent):
def to_string(self, data):
msg = data['sentry.interfaces.Message']
if msg.get('params'):
- return msg['message'] % tupl... | Remove params from message hash and allow dict params | py |
diff --git a/test/frame_get_all_nodes_information_ntf_test.py b/test/frame_get_all_nodes_information_ntf_test.py
index <HASH>..<HASH> 100644
--- a/test/frame_get_all_nodes_information_ntf_test.py
+++ b/test/frame_get_all_nodes_information_ntf_test.py
@@ -13,7 +13,6 @@ from pyvlx.parameter import Position
class TestFra... | another fix for pylint warnings | py |
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/codeeditor.py
+++ b/spyderlib/widgets/sourcecode/codeeditor.py
@@ -1903,11 +1903,10 @@ class CodeEditor(TextEditBaseWidget):
else:
... | Minor fix after PR #<I> | py |
diff --git a/tensorflow_datasets/core/download/extractor.py b/tensorflow_datasets/core/download/extractor.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/download/extractor.py
+++ b/tensorflow_datasets/core/download/extractor.py
@@ -69,7 +69,11 @@ class _Extractor(object):
... | extractor: delete destination dir if it exists, before renaming temp file to it. PiperOrigin-RevId: <I> | py |
diff --git a/ColonyDSL/GlobalConfig.py b/ColonyDSL/GlobalConfig.py
index <HASH>..<HASH> 100644
--- a/ColonyDSL/GlobalConfig.py
+++ b/ColonyDSL/GlobalConfig.py
@@ -41,15 +41,6 @@ def generate_memory_list() -> list:
result.append(ProcedureFileLibrary("/usr/share/ColonyDSL/lib_contrib/procedure/"))
result.append... | library is no longer loaded from WD | py |
diff --git a/pid/__init__.py b/pid/__init__.py
index <HASH>..<HASH> 100644
--- a/pid/__init__.py
+++ b/pid/__init__.py
@@ -103,9 +103,8 @@ class PidFile(object):
def sigterm_noop_handler(*args, **kwargs):
raise SystemExit(1)
- term_signal_handler = sigterm_noop_handler
- ... | cleanup left over mess from _register_term_signal | py |
diff --git a/plenum/server/router.py b/plenum/server/router.py
index <HASH>..<HASH> 100644
--- a/plenum/server/router.py
+++ b/plenum/server/router.py
@@ -3,6 +3,10 @@ from inspect import isawaitable
from typing import Callable, Any, NamedTuple, Union, Iterable
from typing import Tuple
+from stp_core.common.log imp... | INDY-<I>: Another attempt to fix plugin tests | py |
diff --git a/sos/sos_executor.py b/sos/sos_executor.py
index <HASH>..<HASH> 100755
--- a/sos/sos_executor.py
+++ b/sos/sos_executor.py
@@ -190,8 +190,11 @@ class SoS_Worker(mp.Process):
if k in env.sos_dict:
env.sos_dict.pop(k)
# if the step has its own context
- env.sos_di... | Fix an incorrect update of step context when auxiliary step is involved #<I> | py |
diff --git a/mizani/tests/test_bounds.py b/mizani/tests/test_bounds.py
index <HASH>..<HASH> 100644
--- a/mizani/tests/test_bounds.py
+++ b/mizani/tests/test_bounds.py
@@ -3,7 +3,7 @@ from datetime import datetime, timedelta
import numpy as np
import numpy.testing as npt
import pandas as pd
-import pandas.util.testin... | MAINT: pandas.util.testing is deprecated closes #<I> | py |
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/utils.py
+++ b/lib/ansiblelint/utils.py
@@ -120,3 +120,10 @@ def _look_for_role_files(basedir, role):
results.append({ 'path': thpath, 'type': th })
return results
+def rolename(filepat... | Add a function to get the rolename from a filepath | py |
diff --git a/compiler/grammar2.py b/compiler/grammar2.py
index <HASH>..<HASH> 100644
--- a/compiler/grammar2.py
+++ b/compiler/grammar2.py
@@ -47,7 +47,7 @@ COMPONENT_NAME = r'(?:[a-z][a-zA-Z0-9._]*\.)?[A-Z][A-Za-z0-9]*'
component_name = re.compile(COMPONENT_NAME)
component_name_lookahead = re.compile(COMPONENT_NAME ... | allow underscore in propery_type_re | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -50,6 +50,7 @@ setup(
long_description=open('README.rst').read(),
author="Terry Peng, Mikhail Korobov",
author_email="pengtaoo@gmail.com, kmike84@gmail.com",
+ license="MIT",
url='https://github.com/scra... | setup.py was missing license field | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1254,14 +1254,22 @@ class MainWindow(QMainWindow):
if not self.extconsole.isvisible and not ipy_visible:
self.historylog.add_history(get_c... | Main Window: Open a new file after start if there is nothing to show in the Editor | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -173,7 +173,7 @@ class AssetFinder(object):
return infos[0]
else:
raise MultipleSymbolsFound(symbol=symbol,
- ... | ENH: Adds the full Asset objects to the kwargs of MultipleSymbolsFound | py |
diff --git a/topydo/cli/Main.py b/topydo/cli/Main.py
index <HASH>..<HASH> 100755
--- a/topydo/cli/Main.py
+++ b/topydo/cli/Main.py
@@ -92,6 +92,7 @@ except ConfigError as config_error:
from topydo.lib.Commands import get_subcommand
from topydo.lib.ArchiveCommand import ArchiveCommand
+from topydo.lib.SortCommand im... | Re-add SortCommand, this module still uses it for auto-sorting. | py |
diff --git a/km3modules/plot.py b/km3modules/plot.py
index <HASH>..<HASH> 100644
--- a/km3modules/plot.py
+++ b/km3modules/plot.py
@@ -15,9 +15,6 @@ import time
import pandas as pd
import numpy as np
-import matplotlib
-# Force matplotlib to not use any Xwindows backend.
-matplotlib.use('Agg')
import matplotlib.py... | Remove Agg backend initialisation in km.plot This will probably break the monitoring scripts but it needs to be done, otherwise plots in Jupyter notebooks are not displayed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ setup(
version="0.5.0",
package_dir={'secretballot': 'secretballot'},
packages=['secretballot'],
+ include_package_data=True,
description='Django anonymous voting application',
author='... | Add missing include_package_data in setup.py | py |
diff --git a/pyzotero/zotero_errors.py b/pyzotero/zotero_errors.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero_errors.py
+++ b/pyzotero/zotero_errors.py
@@ -73,3 +73,19 @@ class CouldNotReachURL(PyZoteroError):
""" Raised when we can't reach a URL
"""
pass
+
+
+
+class Conflict(PyZoteroError):
+ ... | Adding HTTP <I> and <I> Write API errors | py |
diff --git a/fuse.py b/fuse.py
index <HASH>..<HASH> 100644
--- a/fuse.py
+++ b/fuse.py
@@ -287,8 +287,9 @@ class FUSE(object):
def read(self, path, buf, size, offset, fi):
ret = self.operations('read', path, size, offset, fi.contents.fh)
- memmove(buf, create_string_buffer(ret), size)
- ... | read can now return EOF (when using direct_io) credit goes to: paul.melis git-svn-id: <URL> | py |
diff --git a/visidata/extensible.py b/visidata/extensible.py
index <HASH>..<HASH> 100644
--- a/visidata/extensible.py
+++ b/visidata/extensible.py
@@ -29,7 +29,7 @@ class Extensible:
if oldcopy:
ret = oldcopy(self, *args, **kwargs)
else:
- ret = super().__copy__... | [api-] fix copy bug introduced in e5d3b<I>d<I>a7f<I>c<I>e<I>c<I>d | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,14 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import
+import codecs
from distutils.core import setup
setup(name='django-mathfilters',
version='0.2.1',
descr... | Read README as utf8 in setup.py | py |
diff --git a/src/core/scripts.py b/src/core/scripts.py
index <HASH>..<HASH> 100644
--- a/src/core/scripts.py
+++ b/src/core/scripts.py
@@ -59,10 +59,8 @@ class Script(QObject):
Parameter('save', False, bool,'check to automatically save data'),
]
- RAW_DATA_DIR = 'rd' # dir name for rawdata, try to ke... | changed names back to subscript_data and raw_data subfolder | py |
diff --git a/flask_permissions/models.py b/flask_permissions/models.py
index <HASH>..<HASH> 100644
--- a/flask_permissions/models.py
+++ b/flask_permissions/models.py
@@ -112,7 +112,7 @@ class UserMixin(db.Model):
for role in roles:
existing_role = Role.query.filter_by(name=role).first()
... | Swaps default_role for role | py |
diff --git a/custom_utils/sql.py b/custom_utils/sql.py
index <HASH>..<HASH> 100644
--- a/custom_utils/sql.py
+++ b/custom_utils/sql.py
@@ -1,5 +1,6 @@
import sqlalchemy
-from sqlalchemy import Column, ForeignKey, UniqueConstraint, Integer, String, DateTime, create_engine, update
+from sqlalchemy import Column, Foreign... | Added PrimaryKeyConstraint import from sqlalchemy | py |
diff --git a/intake/catalog/base.py b/intake/catalog/base.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/base.py
+++ b/intake/catalog/base.py
@@ -505,11 +505,4 @@ class RemoteCatalog(Catalog):
url=self.url,
http_args=self.http_args,
query=self._query + ((args, kwargs),),
- ... | Revert eval-able search repr; just make it name blank. | py |
diff --git a/openquake/calculators/scenario_risk.py b/openquake/calculators/scenario_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/scenario_risk.py
+++ b/openquake/calculators/scenario_risk.py
@@ -58,14 +58,7 @@ def scenario_risk(riskinput, riskmodel, monitor):
all_losses=AccumDict(... | Removed comment [skip CI] | py |
diff --git a/cumulusci/cli/tests/test_cci.py b/cumulusci/cli/tests/test_cci.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/tests/test_cci.py
+++ b/cumulusci/cli/tests/test_cci.py
@@ -355,10 +355,12 @@ class TestCCI(unittest.TestCase):
def test_service_list(self, cli_tbl):
config = mock.Mock()
... | Use OrderedDict to cover py2 test | py |
diff --git a/pysc2/env/sc2_env.py b/pysc2/env/sc2_env.py
index <HASH>..<HASH> 100644
--- a/pysc2/env/sc2_env.py
+++ b/pysc2/env/sc2_env.py
@@ -513,7 +513,7 @@ class SC2Env(environment.Base):
def save_replay(self, replay_dir, prefix=None):
if prefix is None:
- prefix = self._map_name
+ prefix = self.... | Fix breakage caused by typo. PiperOrigin-RevId: <I> | py |
diff --git a/wechatpy/client/__init__.py b/wechatpy/client/__init__.py
index <HASH>..<HASH> 100644
--- a/wechatpy/client/__init__.py
+++ b/wechatpy/client/__init__.py
@@ -38,6 +38,7 @@ class WeChatClient(BaseWeChatClient):
self.material = api.WeChatMaterial(weak_self)
self.semantic = api.WeChatSemanti... | Update WeChatClient. Close #<I> | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -20,10 +20,8 @@
import os, unittest, json, tempfile, subprocess, csv, shutil
def run(command):
- # print "Running", command... | Make dxclient tests not echo entire output of shell commands. | py |
diff --git a/salt/cloud/clouds/dimensiondata.py b/salt/cloud/clouds/dimensiondata.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/dimensiondata.py
+++ b/salt/cloud/clouds/dimensiondata.py
@@ -220,7 +220,6 @@ def create(vm_):
log.info('Creating Cloud VM %s', vm_['name'])
conn = get_conn()
- rootPw ... | Ensure 'auth' parameter is correctly passed to dimensiondata driver. Also ensure that it is nevertheless excluded from the event payload. saltstack/salt#<I> | py |
diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py
index <HASH>..<HASH> 100644
--- a/pysnmp/carrier/asyncore/dgram/base.py
+++ b/pysnmp/carrier/asyncore/dgram/base.py
@@ -10,10 +10,15 @@ sockErrors = { # Ignore these socket errors
errno.ECONNRESET: 0,
errno.ECONNREFUSED... | handle EBADFD socket error whenever present on the platform | py |
diff --git a/src/python/pants/backend/jvm/targets/jar_library.py b/src/python/pants/backend/jvm/targets/jar_library.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/targets/jar_library.py
+++ b/src/python/pants/backend/jvm/targets/jar_library.py
@@ -10,7 +10,7 @@ from pants.base.payload import JarLibra... | doc: kick jar_library out of the list of Python-related BUILD file things back when this was "dependencies", it made sense to list it with Pythonic things. Now, not so much. Reviewed at <URL> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -215,6 +215,7 @@ sys.modules['msgpack'].version = (1, 0, 0)
sys.modules['psutil'].version_info = (3, 0, 0)
sys.modules['pymongo'].version = '0.0.0'
sys.modules['tornado'].version_info = (0, 0, 0)
+sys.modules['b... | Adding missing line back into doc/conf.py | py |
diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debian_ip.py
+++ b/salt/modules/debian_ip.py
@@ -1448,7 +1448,7 @@ def _write_file_ifaces(iface, data, **settings):
tmp = source_template.render({'name': adapter, 'data': adapters[adapter]})
... | Fix ordering of generated interfaces in the /etc/network/interface file | py |
diff --git a/python/ray/tune/trial.py b/python/ray/tune/trial.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/trial.py
+++ b/python/ray/tune/trial.py
@@ -273,7 +273,7 @@ class Trial(object):
# Trial config
self.trainable_name = trainable_name
self.config = config or {}
- self.loca... | [tune] Later expansion of local_dir (#<I>) | py |
diff --git a/tests/unit/async/test_async.py b/tests/unit/async/test_async.py
index <HASH>..<HASH> 100644
--- a/tests/unit/async/test_async.py
+++ b/tests/unit/async/test_async.py
@@ -1,4 +1,5 @@
import six
+import sys
import unittest
import uuid
from multiprocessing import pool
@@ -83,6 +84,7 @@ class Test3Blocking... | it just doesn't work on <I> __shrug__ | py |
diff --git a/src/ansiblelint/rules/__init__.py b/src/ansiblelint/rules/__init__.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/rules/__init__.py
+++ b/src/ansiblelint/rules/__init__.py
@@ -89,7 +89,7 @@ class AnsibleLintRule(BaseRule):
# https://github.com/ansible-community/ansible-lint/issues/744
def m... | Asure matchtask is runs on supported file kinds (#<I>) Fixes bug where matchtasks() was called for file kinds that may not be containers for task. Fixes: #<I> | py |
diff --git a/test/unittests/dataset/test_multi.py b/test/unittests/dataset/test_multi.py
index <HASH>..<HASH> 100644
--- a/test/unittests/dataset/test_multi.py
+++ b/test/unittests/dataset/test_multi.py
@@ -31,8 +31,7 @@ class TestT1AndT2(TestCase):
fname))
def tearDown(self... | reactivated unittest tearDown | py |
diff --git a/bugwarrior/db.py b/bugwarrior/db.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/db.py
+++ b/bugwarrior/db.py
@@ -19,7 +19,7 @@ MARKUP = "(bw)"
DOGPILE_CACHE_PATH = os.path.expanduser('~/.cache/dagd.dbm')
if not os.path.isdir(os.path.dirname(DOGPILE_CACHE_PATH)):
- os.mkdirs(os.path.dirname(DOGPILE_... | Use os.makedirs for directory creation. On OSX, I was getting this error: AttributeError: 'module' object has no attribute 'mkdirs' As far as I can tell, there is no os.mkdirs function. Looks like just a typo. Also tested this change on Ubuntu <I>. It doesn't seem to break anything, but I'm getting a different er... | py |
diff --git a/IndexedRedis/__init__.py b/IndexedRedis/__init__.py
index <HASH>..<HASH> 100644
--- a/IndexedRedis/__init__.py
+++ b/IndexedRedis/__init__.py
@@ -394,8 +394,8 @@ class IndexedRedisModel(object):
def __getattribute__(self, keyName):
# If something on the class, just return it right away.
oga = objec... | Woah! Calling dir DOUBLED the amoutn of time IR took in benchmark... So remove calls to dir. | py |
diff --git a/openpnm/utils/misc.py b/openpnm/utils/misc.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/misc.py
+++ b/openpnm/utils/misc.py
@@ -5,10 +5,8 @@ import numpy as _np
import scipy as _sp
import time as _time
import copy
-from dataclasses import dataclass
from collections import OrderedDict
from docrep... | oops forgot to remove dataclasses import from a file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
name='yoti',
version=VERSION,
packages=find_packages(),
- license='OTHER',
+ license='MIT',
description='The Yoti Python SDK, providing API support for Login, Verify (2FA) and Ag... | [SDK-<I>]: Updated setup.py after changing license | py |
diff --git a/cwltool/cwltest.py b/cwltool/cwltest.py
index <HASH>..<HASH> 100755
--- a/cwltool/cwltest.py
+++ b/cwltool/cwltest.py
@@ -165,7 +165,7 @@ def main():
if args.l:
for i, t in enumerate(tests):
print "[%i] %s" % (i+1, t["doc"].strip())
- return 1
+ return 0
if a... | Fix cwltest list to exit 0 | py |
diff --git a/img_proof/ipa_gce.py b/img_proof/ipa_gce.py
index <HASH>..<HASH> 100644
--- a/img_proof/ipa_gce.py
+++ b/img_proof/ipa_gce.py
@@ -171,9 +171,9 @@ class GCECloud(IpaCloud):
def _get_ssh_public_key(self):
"""Generate SSH public key from private key."""
key = ipa_utils.get_public_ssh_ke... | Fix gce ssh key insertion The public key in openssh format will already have a user name or email appended. This prevents gce from creating a second broken key entry. | py |
diff --git a/NebulaPythonSDK/__init__.py b/NebulaPythonSDK/__init__.py
index <HASH>..<HASH> 100644
--- a/NebulaPythonSDK/__init__.py
+++ b/NebulaPythonSDK/__init__.py
@@ -1,3 +1 @@
-__author__ = 'Naor Livne'
-
from .sdk import Nebula
\ No newline at end of file | removing __author__ as i want this to be a team effort | py |
diff --git a/hamster/overview.py b/hamster/overview.py
index <HASH>..<HASH> 100644
--- a/hamster/overview.py
+++ b/hamster/overview.py
@@ -24,7 +24,7 @@ def format_duration(duration):
if hours > 0: formatted_duration = "%dh " % hours
if minutes > 0: formatted_duration += "%dm" % minutes
else:
- ... | changed "Just started!" to "started!" - takes up less space in panel svn path=/trunk/; revision=<I> | py |
diff --git a/pyepm/api.py b/pyepm/api.py
index <HASH>..<HASH> 100644
--- a/pyepm/api.py
+++ b/pyepm/api.py
@@ -3,7 +3,7 @@
# @Author: jorisbontje
# @Date: 2014-08-03 13:53:04
# @Last Modified by: caktux
-# @Last Modified time: 2015-02-25 17:50:15
+# @Last Modified time: 2015-02-25 18:25:13
import json
import... | setDefaultBlock to -1 while mine waiting | py |
diff --git a/python2/test/test_general.py b/python2/test/test_general.py
index <HASH>..<HASH> 100644
--- a/python2/test/test_general.py
+++ b/python2/test/test_general.py
@@ -76,11 +76,20 @@ def test_pickle():
print("Test passed")
+def test_bamfile_nosq():
+ print('Test parsing BAM file with no SQ field (e.... | Add PacBio test to python2 | py |
diff --git a/azure-kusto-data/azure/kusto/data/_version.py b/azure-kusto-data/azure/kusto/data/_version.py
index <HASH>..<HASH> 100644
--- a/azure-kusto-data/azure/kusto/data/_version.py
+++ b/azure-kusto-data/azure/kusto/data/_version.py
@@ -1,3 +1,3 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT... | Bump data to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -60,8 +60,8 @@ setup(
keywords='crypto pki x509 certificate rsa dsa ec',
install_requires=[
- 'asn1crypto>=0.13',
- 'oscrypto>=0.12'
+ 'asn1crypto>=0.18.1',
+ 'oscrypto>=0.16.0'
],
... | Update required versions of asn1crypto and oscrypto | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10185,6 +10185,40 @@ Series([], dtype: bool)
_sum_examples = """\
Examples
--------
+``MultiIndex`` series example of monthly rainfall
+
+>>> index = pd.MultiIndex.fr... | DOC: Added a Multi Index example for the Series.sum method (#<I>) | py |
diff --git a/oplus/tests/test_epw.py b/oplus/tests/test_epw.py
index <HASH>..<HASH> 100644
--- a/oplus/tests/test_epw.py
+++ b/oplus/tests/test_epw.py
@@ -41,7 +41,8 @@ class EPlusWeatherData(EPWTestCase):
for file_name in epw_files_l:
file_path = os.path.join(weather_dir, file_name)
- ... | file closed in test_epw (was staying open) | py |
diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py
index <HASH>..<HASH> 100644
--- a/salt/utils/jinja.py
+++ b/salt/utils/jinja.py
@@ -103,10 +103,10 @@ class SaltCacheLoader(BaseLoader):
# If there was no file_client passed to the class, create a cache_client
# and use that. This avoids opening a... | prevent reuse of fileclient if options have changed | py |
diff --git a/lib/emir/recipes/auxiliary.py b/lib/emir/recipes/auxiliary.py
index <HASH>..<HASH> 100644
--- a/lib/emir/recipes/auxiliary.py
+++ b/lib/emir/recipes/auxiliary.py
@@ -618,7 +618,7 @@ class SlitTransmissionRecipe(BaseRecipe):
version="0.1.0"
)
- @log_to_history(_logger)
+ @log_t... | Update log_to_history to use two arguments | py |
diff --git a/mapclassify.py b/mapclassify.py
index <HASH>..<HASH> 100644
--- a/mapclassify.py
+++ b/mapclassify.py
@@ -126,7 +126,7 @@ def binC(y, bins):
>>>
"""
- if np.rank(y) == 1:
+ if np.ndim(y) == 1:
k = 1
n = np.shape(y)[0]
else:
@@ -191,7 +191,7 @@ def bin(y, bins):
... | Replace deprecated np.rank with np.ndim | py |
diff --git a/Python/setup.py b/Python/setup.py
index <HASH>..<HASH> 100644
--- a/Python/setup.py
+++ b/Python/setup.py
@@ -23,7 +23,7 @@ def readme():
setup(name='ibmcloudsql',
version='0.2.23',
python_requires='>=2.7, <4',
- install_requires=['pandas','tornado<=4.5.2','ibm-cos-sdk-core','ibm-cos-sd... | Keeps setup.py consistent with Pipfile | py |
diff --git a/tools/pyboard.py b/tools/pyboard.py
index <HASH>..<HASH> 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -152,7 +152,7 @@ class ProcessToSerial:
def __init__(self, cmd):
import subprocess
- self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=True, preexec_fn=os.setsid,... | tools/pyboard: Run exec: command as a string. The Python documentation recommends to pass the command as a string when using Popen(..., shell=True). This is because "sh -c <string>" is used to execute the command and additional arguments after the command string are passed to the shell itself (not the executing comma... | py |
diff --git a/galpy/orbit_src/FullOrbit.py b/galpy/orbit_src/FullOrbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/FullOrbit.py
+++ b/galpy/orbit_src/FullOrbit.py
@@ -608,6 +608,16 @@ def _integrateFullOrbit(vxvv,pot,t,method):
HISTORY:
2010-08-01 - Written - Bovy (NYU)
"""
+ #First check t... | check for C implementations of all relevant potentials before integrating the orbit | py |
diff --git a/rednose.py b/rednose.py
index <HASH>..<HASH> 100644
--- a/rednose.py
+++ b/rednose.py
@@ -379,6 +379,16 @@ class ColourTextTestResult(nose.result.TextTestResult):
for (test_id, flavour, test, coloured_output_lines) in (self.test_failures_and_exceptions):
self._printError(flavour=flavo... | Update rednose.py Fix an issue of overriding a method from nose and not implementing all of the things. Increase compatibility. | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -411,6 +411,8 @@ def installed(
source is added, it is assigned to a given release. Consider the
following source configuration::
+ .. code-block::... | Don't show the APT sources.list entry as 'Python' code in the docs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,5 +59,5 @@ setup(name = 'twisted-mqtt',
url = 'http://github.com/astrorafael/twisted-mqtt/',
classifiers = classifiers,
packages = find_packages(exclude=['mqtt.tes... | upgraded requirements to twsited <I> | py |
diff --git a/ykman/piv.py b/ykman/piv.py
index <HASH>..<HASH> 100644
--- a/ykman/piv.py
+++ b/ykman/piv.py
@@ -263,12 +263,16 @@ class SW(IntEnum):
else:
return 0x63c0 <= sw <= 0x63cf
- @staticmethod
- def tries_left(sw, applet_version):
+ @classmethod
+ def tries_left(cls, sw, apple... | Validate status word range in SW.tries_left | py |
diff --git a/telethon/sessions/sqlite.py b/telethon/sessions/sqlite.py
index <HASH>..<HASH> 100644
--- a/telethon/sessions/sqlite.py
+++ b/telethon/sessions/sqlite.py
@@ -179,16 +179,8 @@ class SQLiteSession(MemorySession):
@staticmethod
def _create_table(c, *definitions):
- """
- Creates a ta... | Stop using without rowid altogether While something nice to have if supported, it just causes problems for people trying to use the same session accross systems having different sqlite versions. See <URL> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.