diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/stanza/utils/training/run_pos.py b/stanza/utils/training/run_pos.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/training/run_pos.py
+++ b/stanza/utils/training/run_pos.py
@@ -49,6 +49,11 @@ def run_treebank(mode, paths, treebank, short_name,
"--shorthand", short_name,
... | A few languages don't have pretrains for POS | py |
diff --git a/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py b/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
index <HASH>..<HASH> 100755
--- a/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
+++ b/examples/pytorch/speech-recognition/run_speech_recognit... | Update run_speech_recognition_seq2seq.py (#<I>) | py |
diff --git a/trimesh/viewer/windowed.py b/trimesh/viewer/windowed.py
index <HASH>..<HASH> 100644
--- a/trimesh/viewer/windowed.py
+++ b/trimesh/viewer/windowed.py
@@ -154,7 +154,7 @@ class SceneViewer(pyglet.window.Window):
if self.callback is not None:
self.callback(self.scene)
for name,... | Avoid KeyError for real-time updation and rendering | py |
diff --git a/crasync/core.py b/crasync/core.py
index <HASH>..<HASH> 100644
--- a/crasync/core.py
+++ b/crasync/core.py
@@ -39,7 +39,8 @@ class Client:
BASE = 'http://api.cr-api.com'
- def __init__(self, session=None):
+ def __init__(self, session=None, timeout=10):
+ self.timeout = timeout
... | Added an async timeout | py |
diff --git a/warehouse/macaroons/caveats.py b/warehouse/macaroons/caveats.py
index <HASH>..<HASH> 100644
--- a/warehouse/macaroons/caveats.py
+++ b/warehouse/macaroons/caveats.py
@@ -86,5 +86,8 @@ class Verifier:
try:
return self.verifier.verify(self.macaroon, key)
- except pymacaroons.ex... | Catch more pymacaroons exceptions (#<I>) | py |
diff --git a/salt/modules/win_file.py b/salt/modules/win_file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_file.py
+++ b/salt/modules/win_file.py
@@ -1172,7 +1172,14 @@ def readlink(path):
if target.startswith('\\??\\'):
target = target[4:]
- # comes out in 8.3 form; convert it to LFN to mak... | More compatibility changes - win_file.readlink now returns path regardless of if it is valid. | py |
diff --git a/dtool_s3/storagebroker.py b/dtool_s3/storagebroker.py
index <HASH>..<HASH> 100644
--- a/dtool_s3/storagebroker.py
+++ b/dtool_s3/storagebroker.py
@@ -464,6 +464,9 @@ class S3StorageBroker(object):
for identifier in manifest["items"]:
self.make_key_public(self.data_key_prefix + identif... | Fix defect in http_enable; write out missing http_manifest and make public | 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
@@ -900,14 +900,11 @@ class AssetFinderCachedEquities(AssetFinder):
fuzzy_symbol, []
).append(asset)
- def _convert_row_to_equity(... | PERF: Fewer conversions in _convert_row_to_equity. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
include_package_data=True,
# Package dependencies.
- install_requires=['oauth2'],
+ install_requires=['twython', 'oauth2'],
# Metadata for PyPI.
author='Antonio Hinojo Monter... | added twython as package dependency | py |
diff --git a/cbamf/comp/psfs.py b/cbamf/comp/psfs.py
index <HASH>..<HASH> 100644
--- a/cbamf/comp/psfs.py
+++ b/cbamf/comp/psfs.py
@@ -603,7 +603,7 @@ class GaussianMomentExpansion(PSF4D):
skew = self._poly(z, self._skew_coeffs(d))
skewval = top*(np.tanh(skew) + 1) - top
- return skewval*(3 -... | wrong skew polynomial | py |
diff --git a/ibm_mq/datadog_checks/ibm_mq/collectors/stats_collector.py b/ibm_mq/datadog_checks/ibm_mq/collectors/stats_collector.py
index <HASH>..<HASH> 100644
--- a/ibm_mq/datadog_checks/ibm_mq/collectors/stats_collector.py
+++ b/ibm_mq/datadog_checks/ibm_mq/collectors/stats_collector.py
@@ -73,7 +73,10 @@ class Stat... | Add try-catch on queue closure (#<I>) * Add try-catch on queue closure | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ instructions.
setup(
name="django-prometheus",
- version="1.0.5",
+ version="1.0.6",
author="Uriel Corfa",
author_email="uriel@corfa.fr",
description=(
@@ -25,7 +25,6 @@ setup(
... | Release <I> Fixes #<I> as use of pip is no longer required. | py |
diff --git a/securitycenter/sc4.py b/securitycenter/sc4.py
index <HASH>..<HASH> 100644
--- a/securitycenter/sc4.py
+++ b/securitycenter/sc4.py
@@ -8,6 +8,7 @@ import httplib
import logging
import mimetypes
import os
+import ssl
import random
from StringIO import StringIO
from urllib import urlencode
@@ -214,7 +21... | Updated SC4 to no longer check Cert validity | py |
diff --git a/crackmapexec.py b/crackmapexec.py
index <HASH>..<HASH> 100755
--- a/crackmapexec.py
+++ b/crackmapexec.py
@@ -2655,6 +2655,10 @@ if __name__ == '__main__':
bgroup.add_argument("--upload", nargs=2, metavar=('SRC', 'DST'), help="Upload a file to the remote systems")
bgroup.add_argument("--delete", ... | usage will now display if called script is called with no arguments | py |
diff --git a/raincloudy/faucet.py b/raincloudy/faucet.py
index <HASH>..<HASH> 100644
--- a/raincloudy/faucet.py
+++ b/raincloudy/faucet.py
@@ -106,8 +106,10 @@ class RainCloudyFaucetCore(object):
@property
def battery(self):
"""Return faucet battery."""
- battery_level = self._lookup_attr('act... | Fix faucet battery property (#<I>) | py |
diff --git a/draw_test.py b/draw_test.py
index <HASH>..<HASH> 100644
--- a/draw_test.py
+++ b/draw_test.py
@@ -15,7 +15,7 @@ class App(pyxel.App):
'550f99f999f99f05', '550f00f000f00f05', '5509009050900905',
'5550550555055055'
]
- self.image.set(0, 0, 16, 16, image_data)
+ ... | Removed the unnecessary arguments of the Image set method | py |
diff --git a/tests/lax_numpy_einsum_test.py b/tests/lax_numpy_einsum_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_numpy_einsum_test.py
+++ b/tests/lax_numpy_einsum_test.py
@@ -22,7 +22,6 @@ import itertools
import numpy as onp
from absl.testing import absltest
from absl.testing import parameterized
-import si... | Enable the remaining einsum tests. Fixes #<I>. | py |
diff --git a/udiskie/cli.py b/udiskie/cli.py
index <HASH>..<HASH> 100644
--- a/udiskie/cli.py
+++ b/udiskie/cli.py
@@ -51,7 +51,6 @@ def udisks_service_object(clsname, version=None):
class _EntryPoint(object):
"""
Base class for other entry points.
-
"""
def __init__(self, **kwargs):
self.... | Use the config file program options as defaults In a first run of the optparse.OptionParser the name of the config file is determined. In the second run the parser is initialized with the default values from the config file. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,13 +22,13 @@ install_requires = [
setup(
name='figgypy',
- version='0.2.5',
+ version='0.3.dev',
description='Simple configuration tool. Get config from yaml, json, or xml.',
long_description=readme... | Update setup.py to develop version | py |
diff --git a/graphcommons.py b/graphcommons.py
index <HASH>..<HASH> 100644
--- a/graphcommons.py
+++ b/graphcommons.py
@@ -122,7 +122,7 @@ class Graph(Entity):
def sync(self, graph_commons):
"""Synchronize local and remote representations."""
if self['id'] is None:
- return {}
+ ... | Consistent return value from no-op path | py |
diff --git a/core/eolearn/core/eodata_io.py b/core/eolearn/core/eodata_io.py
index <HASH>..<HASH> 100644
--- a/core/eolearn/core/eodata_io.py
+++ b/core/eolearn/core/eodata_io.py
@@ -298,11 +298,17 @@ class FeatureIO:
return np.save(file, data)
if file_format is MimeType.GPKG:
- # Tem... | Fixed an issue with index column being saved for empty dataframes for geopandas <I> and suppressed a warning | py |
diff --git a/tests/laser/transaction/create_transaction_test.py b/tests/laser/transaction/create_transaction_test.py
index <HASH>..<HASH> 100644
--- a/tests/laser/transaction/create_transaction_test.py
+++ b/tests/laser/transaction/create_transaction_test.py
@@ -41,7 +41,10 @@ def test_sym_exec():
)
sym = S... | Fix the timelimit of calls.sol execution | py |
diff --git a/suds/sax/element.py b/suds/sax/element.py
index <HASH>..<HASH> 100644
--- a/suds/sax/element.py
+++ b/suds/sax/element.py
@@ -783,7 +783,7 @@ class Element(UnicodeMixin):
"""
if ns is None:
return
- if not isinstance(ns, (tuple, list)):
+ if not isinstance(ns, (... | make minor coding style details consistent (stylistic) | py |
diff --git a/allennlp/commands/elmo.py b/allennlp/commands/elmo.py
index <HASH>..<HASH> 100644
--- a/allennlp/commands/elmo.py
+++ b/allennlp/commands/elmo.py
@@ -97,7 +97,8 @@ class Elmo(Subcommand):
subparser = parser.add_parser(
name, description=description, help='Create word vectors using... | Fixed ELMO command's lack of encoding specification when reading from… (#<I>) Fixes #<I> Running the "allennlp elmo" command might produce sequences of length different than the original intended one. The issue lies without not being able to specify an encoding type with which to read the input file, which will have... | py |
diff --git a/motor/__init__.py b/motor/__init__.py
index <HASH>..<HASH> 100644
--- a/motor/__init__.py
+++ b/motor/__init__.py
@@ -54,7 +54,7 @@ if pymongo.version != expected_pymongo_version:
"Motor %s requires PyMongo at exactly version %s. "
"You have PyMongo %s. "
"Do pip install "
- ... | Update PyMongo dependency to f<I>. This commit includes a fix for PYTHON-<I>, a GridOut bug. | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100755
--- a/consul/base.py
+++ b/consul/base.py
@@ -878,7 +878,7 @@ class Consul(object):
if tags:
payload['tags'] = tags
if meta:
- payload['meta'] = meta
+ pa... | Service metadata should be in form map<string|string> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ if os.environ.get("CI_VERSION_SUFFIX"):
c_sources = []
for root, dirs, files in os.walk("c"):
for name in files:
- if name.endswith(".c"):
+ if name.endswith(".c") or name.endswith(".cpp"):
... | Tweak some compilation flags to ensure that .cpp files can be compiled properly (#<I>) | py |
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -81,7 +81,7 @@ MSGS = {
'Used when a line is longer than a given number of characters.'),
'C0302': ('Too many lines in module (%s/%s)', #... | Change 'much' to 'many' for consistency | py |
diff --git a/user_messages/models.py b/user_messages/models.py
index <HASH>..<HASH> 100644
--- a/user_messages/models.py
+++ b/user_messages/models.py
@@ -20,7 +20,7 @@ class Thread(models.Model):
@property
@cached_attribute
def latest_message(self):
- return self.messages.all()[0]
+ return... | revert the message ordering fix and put it localized | py |
diff --git a/hamster/db.py b/hamster/db.py
index <HASH>..<HASH> 100644
--- a/hamster/db.py
+++ b/hamster/db.py
@@ -16,7 +16,7 @@ class Storage(hamster.storage.Storage):
def __change_category(self, id, category_id):
query = "SELECT max(activity_order) + 1 FROM activities WHERE category_id = ?"
- m... | found and fixed bug on moving activities in newly created category svn path=/trunk/; revision=<I> | py |
diff --git a/owncloud/__init__.py b/owncloud/__init__.py
index <HASH>..<HASH> 100644
--- a/owncloud/__init__.py
+++ b/owncloud/__init__.py
@@ -467,6 +467,34 @@ class Client():
)
raise ResponseError(res)
+ def get_config(self):
+ """Returns ownCloud config information as JSON
+ :... | Added function get_config() - the name speaks for itself | py |
diff --git a/fades/main.py b/fades/main.py
index <HASH>..<HASH> 100644
--- a/fades/main.py
+++ b/fades/main.py
@@ -257,6 +257,8 @@ def go(argv):
if create_venv:
# Check if the requested packages exists in pypi.
if not args.no_precheck_availability:
+ logger.info("Checking the availabil... | add a INFO log advertising the user we are hitting the network | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -214,6 +214,9 @@ class Shape(object):
@property
def __geo_interface__(self):
+ if not self.parts or not self.points:
+ Exception('Invalid shape, cannot create GeoJSON represent... | Better handling of shape __geo_interface__ exceptions Based on and fixes #<I>. | py |
diff --git a/groupy/api/groups.py b/groupy/api/groups.py
index <HASH>..<HASH> 100644
--- a/groupy/api/groups.py
+++ b/groupy/api/groups.py
@@ -39,6 +39,22 @@ class Groups(base.Manager):
return pagers.GroupList(self, self._raw_list, page=page,
per_page=per_page, omit=omit)
+ ... | Duh. Provide the easy way to list all groups | py |
diff --git a/usb/backend/libusb1.py b/usb/backend/libusb1.py
index <HASH>..<HASH> 100644
--- a/usb/backend/libusb1.py
+++ b/usb/backend/libusb1.py
@@ -42,14 +42,14 @@ __all__ = [
'LIBUSB_ERROR_INTERRUPTED',
'LIBUSB_ERROR_NO_MEM',
'LIBUSB_ERROR_NOT_SUPPORTED',
- 'LIBUSB_... | Add missing comma in string list (#<I>) In Python, two adjacent strings get concatenated implicitely. Missing commas in multi-line string lists is a common source of bugs causing unwanted string concatenation. In this case, it is clear that this comma is missing by mistake and there should not be a concatenation. | py |
diff --git a/mambustruct.py b/mambustruct.py
index <HASH>..<HASH> 100644
--- a/mambustruct.py
+++ b/mambustruct.py
@@ -38,8 +38,11 @@ class RequestsCounter(object):
cls.requests.append(temp)
cls.cnt += 1
def reset(cls):
- cls.requests = [cls.requests.pop()]
- cls.cnt = 1
+ cl... | Fix mambustruct.RequestCounter.reset method. It should reset to 0 It should not fail when there's no previous count made | py |
diff --git a/fedmsg/consumers/__init__.py b/fedmsg/consumers/__init__.py
index <HASH>..<HASH> 100644
--- a/fedmsg/consumers/__init__.py
+++ b/fedmsg/consumers/__init__.py
@@ -81,7 +81,8 @@ class FedmsgConsumer(moksha.hub.api.consumer.Consumer):
# This call "completes" registration of this consumer with the hub... | If validate signatures is turned off, we sholdn't try to pull them from the config | py |
diff --git a/openquake/baselib/runtests.py b/openquake/baselib/runtests.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/runtests.py
+++ b/openquake/baselib/runtests.py
@@ -50,6 +50,8 @@ class TestResult(unittest.TextTestResult):
f.write('%s %s\n' % (name, value))
print(''.join(open(fnam... | runtests must exit with an error code > 0 if there were errors/failures | py |
diff --git a/mock.py b/mock.py
index <HASH>..<HASH> 100644
--- a/mock.py
+++ b/mock.py
@@ -499,7 +499,7 @@ magic_methods = (
"complex int float index "
)
-numerics = "add sub mul div truediv floordiv mod lshift rshift and xor or "
+numerics = "add sub mul div truediv floordiv mod lshift rshift and xor or po... | Reorganise magic methods slightly. | py |
diff --git a/fedmsg/commands/tail.py b/fedmsg/commands/tail.py
index <HASH>..<HASH> 100644
--- a/fedmsg/commands/tail.py
+++ b/fedmsg/commands/tail.py
@@ -237,7 +237,9 @@ class TailCommand(BaseCommand):
if not packages.intersection(actual):
continue
- self.log.info(for... | Only output if there is something to output. | py |
diff --git a/alot/db/manager.py b/alot/db/manager.py
index <HASH>..<HASH> 100644
--- a/alot/db/manager.py
+++ b/alot/db/manager.py
@@ -242,6 +242,16 @@ class DBManager:
return db.count_messages(querystring,
exclude_tags=settings.get('exclude_tags'))
+ def collect_tags(sel... | db/manager: provide collect_tags() This used to be available in the old notmuch bindings. Use direct access with the new cffi bindings. The request to upstream for exposing this library function is pending. | py |
diff --git a/bulbs/indexable/management/commands/synces.py b/bulbs/indexable/management/commands/synces.py
index <HASH>..<HASH> 100644
--- a/bulbs/indexable/management/commands/synces.py
+++ b/bulbs/indexable/management/commands/synces.py
@@ -24,11 +24,10 @@ class Command(NoArgsCommand):
for index, mappings in... | Create index mappings independently of index, just update settings? | py |
diff --git a/seriously/SeriouslyCommands.py b/seriously/SeriouslyCommands.py
index <HASH>..<HASH> 100755
--- a/seriously/SeriouslyCommands.py
+++ b/seriously/SeriouslyCommands.py
@@ -1030,7 +1030,7 @@ def caret_fn(srs):
def divisors_fn(srs):
a = srs.pop()
- srs.push((x for x in range(1, a) if a%x==0)... | fix divisors and transpose so that they push lists | py |
diff --git a/elabapy/Manager.py b/elabapy/Manager.py
index <HASH>..<HASH> 100644
--- a/elabapy/Manager.py
+++ b/elabapy/Manager.py
@@ -57,7 +57,7 @@ class Manager(BaseAPI):
"""
Get an uploaded file from ID
"""
- retrn self.get_data("uploads/" + str(id))
+ return self.get_dat... | Fixed typo in get_upload function. | py |
diff --git a/osfclient/models/storage.py b/osfclient/models/storage.py
index <HASH>..<HASH> 100644
--- a/osfclient/models/storage.py
+++ b/osfclient/models/storage.py
@@ -18,8 +18,9 @@ class Storage(OSFCore):
self.node = self._get_attribute(storage, 'attributes', 'node')
self.provider = self._get_attr... | Refactor key to access files from a folder's JSON | py |
diff --git a/pylint/message/message_handler_mix_in.py b/pylint/message/message_handler_mix_in.py
index <HASH>..<HASH> 100644
--- a/pylint/message/message_handler_mix_in.py
+++ b/pylint/message/message_handler_mix_in.py
@@ -95,15 +95,11 @@ class MessagesHandlerMixIn:
return
# msgid is a category?... | [pylint.message] category_id does not need to be a function | py |
diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index <HASH>..<HASH> 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -446,7 +446,7 @@ def str_contains(arr, pat, case=True, flags=0, na=np.nan, regex=True):
stacklevel=3,
)
- f = lambda x: bool(regex.... | Switch to using is not None (#<I>) | py |
diff --git a/can/interfaces/socketcan_ctypes.py b/can/interfaces/socketcan_ctypes.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/socketcan_ctypes.py
+++ b/can/interfaces/socketcan_ctypes.py
@@ -75,7 +75,7 @@ class Bus(BusABC):
def send(self, msg):
- sendPacket(self.socket, message)
+ sen... | #4 Typo in python 2 ctype interface | py |
diff --git a/lib/topology_lib_ip/library.py b/lib/topology_lib_ip/library.py
index <HASH>..<HASH> 100644
--- a/lib/topology_lib_ip/library.py
+++ b/lib/topology_lib_ip/library.py
@@ -63,7 +63,7 @@ def _parse_ip_addr_show(raw_result):
if not (re_result):
# match top two lines for serveral 'always there' va... | fixes re Regular expresion for ip addr doesnt work with cases where the interface has a name like `1@if<I>` | py |
diff --git a/neural/utils.py b/neural/utils.py
index <HASH>..<HASH> 100644
--- a/neural/utils.py
+++ b/neural/utils.py
@@ -135,7 +135,7 @@ def run(command,products=None,working_directory='.',force_local=False):
%s
-----------------------
Return code: %d
-''' % (command[0],' '.join(command),e.output,e.returncode),lev... | fixed a typo in nl.run | py |
diff --git a/pyang/plugin.py b/pyang/plugin.py
index <HASH>..<HASH> 100644
--- a/pyang/plugin.py
+++ b/pyang/plugin.py
@@ -122,15 +122,22 @@ class PyangPlugin(object):
return
def setup_fmt(self, ctx):
- """Modify the Context at setup time. Called for the selected plugin.
+ """Modify the C... | Define separate plugin.setup_xform() method Previously setup_xform was an alias for setup_fmt, which would have allowed transform plugins (erroneously) to implement setup_fmt() rather than setup_xform(). | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100755
--- a/install.py
+++ b/install.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
from __future__ import print_function
import os
import stat | change the install command's hashbang to just python | py |
diff --git a/jsonrpc_http/MiddlewareEngine.py b/jsonrpc_http/MiddlewareEngine.py
index <HASH>..<HASH> 100644
--- a/jsonrpc_http/MiddlewareEngine.py
+++ b/jsonrpc_http/MiddlewareEngine.py
@@ -507,7 +507,7 @@ class MiddlewareEngine(object):
pylab.gca().set_xticks(range(num_cols)[1::2])
pylab.gca().set_xtick... | change title of feature_z matrix plot | py |
diff --git a/test/test_zippack.py b/test/test_zippack.py
index <HASH>..<HASH> 100644
--- a/test/test_zippack.py
+++ b/test/test_zippack.py
@@ -101,7 +101,8 @@ def test_create_and_open(writable_filename):
part = pack['/test/part.xml']
assert part.data == '<test>hi there</test>'.encode('ascii')
rendered_children = ... | Tests pass on Python 2 again. | py |
diff --git a/pip_utils/outdated.py b/pip_utils/outdated.py
index <HASH>..<HASH> 100644
--- a/pip_utils/outdated.py
+++ b/pip_utils/outdated.py
@@ -156,7 +156,6 @@ class ListCommand(object):
editables_only=options.get('editable'),
)
for dist in installed_packages:
- ... | Remove (presumably) unnecessary declaration of typ with a default value | py |
diff --git a/urbansim/models/yamlmodelrunner.py b/urbansim/models/yamlmodelrunner.py
index <HASH>..<HASH> 100644
--- a/urbansim/models/yamlmodelrunner.py
+++ b/urbansim/models/yamlmodelrunner.py
@@ -161,7 +161,11 @@ def lcm_simulate(choosers, locations, cfgname, outdf, output_fname):
"""
print "Running locati... | update lcm_simulate in yamlmodelrunner | py |
diff --git a/nosedjangotests/polls/tests/transaction_tester.py b/nosedjangotests/polls/tests/transaction_tester.py
index <HASH>..<HASH> 100644
--- a/nosedjangotests/polls/tests/transaction_tester.py
+++ b/nosedjangotests/polls/tests/transaction_tester.py
@@ -1,4 +1,7 @@
-from django.db.transaction import atomic
+try:
+... | refs #<I> dj<I> try except for atomic | py |
diff --git a/dataviews/ndmapping.py b/dataviews/ndmapping.py
index <HASH>..<HASH> 100644
--- a/dataviews/ndmapping.py
+++ b/dataviews/ndmapping.py
@@ -372,8 +372,9 @@ class NdIndexableMapping(param.Parameterized):
return repr(self)
- def dim_max(self, dim):
- return np.max([k[self.dim_index(dim)]... | Replaced dim_max with dim_range | py |
diff --git a/src/flags.py b/src/flags.py
index <HASH>..<HASH> 100644
--- a/src/flags.py
+++ b/src/flags.py
@@ -25,6 +25,8 @@ __license__ = 'MIT'
def unique(flags_class):
""" A decorator for flags classes to forbid flag aliases. """
+ if not _is_flags_class_final(flags_class):
+ raise TypeError('unique... | nice error message when someone applies @unique to a non-final flags class | py |
diff --git a/simuvex/s_run.py b/simuvex/s_run.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_run.py
+++ b/simuvex/s_run.py
@@ -95,10 +95,10 @@ class SimRun(object):
# Categorize and add a sequence of refs to this run
def add_actions(self, *refs):
for r in refs:
- if o.SYMBOLIC not in self.... | don't filter actions on symbolicity for now | py |
diff --git a/src/deploy.py b/src/deploy.py
index <HASH>..<HASH> 100644
--- a/src/deploy.py
+++ b/src/deploy.py
@@ -1,13 +1,14 @@
from error import FileNotFoundError, WrongFormatError, MissingKeyError, RemoveFolderError, FileNotWritableError
import json
import os
-from shutil import copytree, rmtree
+from shutil impo... | fixed deployment class - added distutils to use copy_tree for better copying of the build output - fixed os.getcwd() typo - fixed description for copy failure | py |
diff --git a/{{cookiecutter.repo_name}}/config/settings/common.py b/{{cookiecutter.repo_name}}/config/settings/common.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.repo_name}}/config/settings/common.py
+++ b/{{cookiecutter.repo_name}}/config/settings/common.py
@@ -256,11 +256,14 @@ LOGGING = {
}
}
{% if co... | Switch celery default serialization to JSON, to avoid pickle related deprecation warnings | py |
diff --git a/quilt/utils.py b/quilt/utils.py
index <HASH>..<HASH> 100644
--- a/quilt/utils.py
+++ b/quilt/utils.py
@@ -23,6 +23,7 @@
import os
import os.path
+import shutil
import subprocess
from quilt.error import QuiltError
@@ -113,6 +114,10 @@ class Directory(object):
subdirectories """
... | Add Directory delete method The Directory delete methods deletes the directory and all its content (subdirs and containing files) from the filesystem. | py |
diff --git a/mpds_client/retrieve_MPDS.py b/mpds_client/retrieve_MPDS.py
index <HASH>..<HASH> 100755
--- a/mpds_client/retrieve_MPDS.py
+++ b/mpds_client/retrieve_MPDS.py
@@ -318,7 +318,12 @@ class MPDSDataRetrieval(object):
Helper method for representing the MPDS crystal structures in two flavors:
ei... | A more explicit statement that this client currentlty DOES NOT handle the disordered structures | py |
diff --git a/nifstd/nifstd_tools/ontree.py b/nifstd/nifstd_tools/ontree.py
index <HASH>..<HASH> 100755
--- a/nifstd/nifstd_tools/ontree.py
+++ b/nifstd/nifstd_tools/ontree.py
@@ -810,10 +810,8 @@ def main():
sgv.api_key = api_key
sgc.api_key = api_key
scs = OntTerm.query.services[... | ontree use the 'proper' way of passing the api to ontquery services 'proper' but obviously not correct | py |
diff --git a/mrivis/base.py b/mrivis/base.py
index <HASH>..<HASH> 100644
--- a/mrivis/base.py
+++ b/mrivis/base.py
@@ -7,7 +7,7 @@ from matplotlib.image import AxesImage
from matplotlib.axis import Axis
from collections import Iterable
-from mrivis.utils import check_num_slices, check_views, row_wise_rescale
+from ... | allowing a path to be supplied | py |
diff --git a/jarn/mkrelease/setuptools.py b/jarn/mkrelease/setuptools.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/setuptools.py
+++ b/jarn/mkrelease/setuptools.py
@@ -203,19 +203,19 @@ import pkg_resources
from os.path import basename
def walk_revctrl(dirname=''):
- found = False
+ finder = False
... | Rename bool found -> finder in walk_revctrl. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,6 +1,6 @@
"""Define global fixtures."""
-from os.path import abspath, join
+from os.path import join
from pathlib import Path
from pickle import load as _load
@@ -43,38 +43,6 @@ de... | removed test_all and pytest_addoption which seem irrelevant | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,6 @@ install_requires = [
'pyparsing>=1.5.7',
'pytz',
'six',
- 'structlog',
'tzlocal',
]
@@ -18,6 +17,9 @@ if sys.version_info < (2, 7):
install_requires.append('importlib')
instal... | Don't use structlog versions newer than <I> for python <I> | py |
diff --git a/pandas/stats/moments.py b/pandas/stats/moments.py
index <HASH>..<HASH> 100644
--- a/pandas/stats/moments.py
+++ b/pandas/stats/moments.py
@@ -97,7 +97,7 @@ ignore_na : boolean, default False
_ewm_notes = r"""
Notes
-----
-Either center of mass or span must be specified
+Either center of mass, span or ha... | DOC: Included halflife as one 3 optional params that must be specified | py |
diff --git a/cellpy/utils/ica.py b/cellpy/utils/ica.py
index <HASH>..<HASH> 100644
--- a/cellpy/utils/ica.py
+++ b/cellpy/utils/ica.py
@@ -248,7 +248,7 @@ class Converter(object):
"""perform the dq-dv transform"""
# NOTE TO ASBJOERN: Probably insert method for "binning" instead of
- # TODO: A... | fix a spelling mistake in one comment... | py |
diff --git a/bitmerchant/bip32/wallet.py b/bitmerchant/bip32/wallet.py
index <HASH>..<HASH> 100644
--- a/bitmerchant/bip32/wallet.py
+++ b/bitmerchant/bip32/wallet.py
@@ -147,6 +147,24 @@ class Wallet(wallet.Wallet):
return eq
+ def __ne__(self, other):
+ return not self.__eq__(other)
+
+ def ... | Don't allow comparisons other than == & != | py |
diff --git a/salt/modules/pip.py b/salt/modules/pip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pip.py
+++ b/salt/modules/pip.py
@@ -1143,7 +1143,7 @@ def list_upgrades(bin_env=None,
packages = {}
for line in result['stdout'].splitlines():
- match = re.search(r'(\S*)\s+\(.*Latest:\s+(.*)\)', li... | Correct pip parsing for lines like: protobuf (<I>) - Latest: <I> [wheel] | py |
diff --git a/juicer/juicer/Juicer.py b/juicer/juicer/Juicer.py
index <HASH>..<HASH> 100644
--- a/juicer/juicer/Juicer.py
+++ b/juicer/juicer/Juicer.py
@@ -191,8 +191,15 @@ class Juicer(object):
return cart
def show(self, cart_name):
- cart = juicer.common.Cart.Cart(cart_name)
- cart.load(c... | show remote carts for #<I> next up, globbing! | py |
diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/symbolic.py
+++ b/mythril/analysis/symbolic.py
@@ -96,10 +96,10 @@ class SymExecWrapper:
raise ValueError("Invalid strategy argument supplied")
creator_account = Account(
-... | Virtual account don't need dynloader | py |
diff --git a/indra/tools/live_curation.py b/indra/tools/live_curation.py
index <HASH>..<HASH> 100644
--- a/indra/tools/live_curation.py
+++ b/indra/tools/live_curation.py
@@ -155,6 +155,15 @@ class Corpus(object):
logger.exception('Failed to put on s3: %s' % e)
return None
+ @staticmethod... | Add helper method uploading single file sto s3 | py |
diff --git a/yoti_python_sdk/activity_details.py b/yoti_python_sdk/activity_details.py
index <HASH>..<HASH> 100644
--- a/yoti_python_sdk/activity_details.py
+++ b/yoti_python_sdk/activity_details.py
@@ -123,10 +123,11 @@ class ActivityDetails:
][config.KEY_FORMATTED_ADDRESS]
def __iter__(self):
... | SDK-<I>: Adding remember_me_id to iterator in ActivityDetails Preserving the existing user_id key/value pair to avoid a breaking change, but ensuring it bypasses the deprecated getter method, so that using the iterator doesn't generate a spurious deprecation warning | py |
diff --git a/doppel/version.py b/doppel/version.py
index <HASH>..<HASH> 100644
--- a/doppel/version.py
+++ b/doppel/version.py
@@ -1 +1 @@
-version = '0.3.0'
+version = '0.4.0.dev0' | Update version to <I>.dev0 | py |
diff --git a/mbuild/tests/base_test.py b/mbuild/tests/base_test.py
index <HASH>..<HASH> 100644
--- a/mbuild/tests/base_test.py
+++ b/mbuild/tests/base_test.py
@@ -162,3 +162,8 @@ class BaseTest:
mb.translate(ch['b'], [0, 0.07, 0])
mb.rotate_around_z(ch['b'], -120.0 * (np.pi/180.0))
return ch... | Add pytest fixture for silane | py |
diff --git a/pyvex/lift/util/syntax_wrapper.py b/pyvex/lift/util/syntax_wrapper.py
index <HASH>..<HASH> 100644
--- a/pyvex/lift/util/syntax_wrapper.py
+++ b/pyvex/lift/util/syntax_wrapper.py
@@ -211,6 +211,7 @@ class VexValue(object):
return self.irsb_c.op_cmp_ult(self.rdt, right.rdt)
@checkparams()... | Fix VexValue returning RdTmp on __mod__ | py |
diff --git a/angr/analyses/cfg/cfg_accurate.py b/angr/analyses/cfg/cfg_accurate.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_accurate.py
+++ b/angr/analyses/cfg/cfg_accurate.py
@@ -2518,15 +2518,12 @@ class CFGAccurate(ForwardAnalysis, CFGBase): # pylint: disable=abstract-metho
symbolic_initia... | Replace use of Factory#block to obtain start block of function. | py |
diff --git a/hazelcast/cluster.py b/hazelcast/cluster.py
index <HASH>..<HASH> 100644
--- a/hazelcast/cluster.py
+++ b/hazelcast/cluster.py
@@ -220,7 +220,7 @@ class _InternalClusterService(object):
)
current = self._member_list_snapshot
- if version >= current.version:
+ if version... | Apply membership events only if the memberlist version is greater than the current version (#<I>) We couldn't find a reason to apply membership events with the same memberlist version while evaluating this part of the code base in the Java client. Here, we are doing the same and making the check more strict. | py |
diff --git a/librosa/filters.py b/librosa/filters.py
index <HASH>..<HASH> 100644
--- a/librosa/filters.py
+++ b/librosa/filters.py
@@ -364,8 +364,6 @@ def constant_q(sr, fmin=None, n_bins=84, bins_per_octave=12, tuning=0.0,
window : function or `None`
Windowing function to apply to filters.
- If ... | Fix constant-Q frequency drift when rounding window size | py |
diff --git a/simuvex/storage/paged_memory.py b/simuvex/storage/paged_memory.py
index <HASH>..<HASH> 100644
--- a/simuvex/storage/paged_memory.py
+++ b/simuvex/storage/paged_memory.py
@@ -263,9 +263,9 @@ class SimPagedMemory(object):
start_backer = new_page_addr - addr
if isinstance(sta... | Change some < to <= | py |
diff --git a/ELiDE/ELiDE/funcsed.py b/ELiDE/ELiDE/funcsed.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/funcsed.py
+++ b/ELiDE/ELiDE/funcsed.py
@@ -142,17 +142,19 @@ class FuncsEditor(BoxLayout):
def on_storelist(self, *args):
self.storelist.bind(selection=self._pull_func)
- def _save(self, *args)... | Get the code editor to save stuff again | py |
diff --git a/yadi/dataStructures/element.py b/yadi/dataStructures/element.py
index <HASH>..<HASH> 100644
--- a/yadi/dataStructures/element.py
+++ b/yadi/dataStructures/element.py
@@ -19,11 +19,19 @@ class Variable(Element):
class Constant(Element):
def __init__(self,value = ''):
+
+ # Check if it is quot... | Fixed quotation marks at the beggining of constants. | py |
diff --git a/angr/vexer.py b/angr/vexer.py
index <HASH>..<HASH> 100644
--- a/angr/vexer.py
+++ b/angr/vexer.py
@@ -142,7 +142,7 @@ class VEXer:
l.debug("Creating pyvex.IRSB of arch %s at 0x%x", self.arch.name, addr)
if self.use_cache:
- cache_key = (buff, addr, num_inst, self.arch.vex_arc... | put max_size into consideration for irsb cache key in vexer. | py |
diff --git a/pyicloud/base.py b/pyicloud/base.py
index <HASH>..<HASH> 100644
--- a/pyicloud/base.py
+++ b/pyicloud/base.py
@@ -60,9 +60,9 @@ class PyiCloudService(object):
self.session = requests.Session()
self.session.verify = verify
self.session.headers.update({
- 'host': 'setup.... | Normalize HTTP header names to title case The spec says they are case insensitive, so this is just for consistency (with eg. Chrome). | py |
diff --git a/code/png.py b/code/png.py
index <HASH>..<HASH> 100755
--- a/code/png.py
+++ b/code/png.py
@@ -1333,7 +1333,7 @@ class Reader:
"""
if ((_guess is not None and len(kw) != 0) or
- (_guess is None and len(kw) != 1)):
+ (_guess is None and len(kw) != 1)):
... | Fix flake8 indent problems | py |
diff --git a/backoff.py b/backoff.py
index <HASH>..<HASH> 100644
--- a/backoff.py
+++ b/backoff.py
@@ -1,4 +1,5 @@
# coding:utf-8
+from __future__ import unicode_literals
"""
Function decoration for pluggable backoff and retry
@@ -154,7 +155,7 @@ def constant(interval):
# Formats a function invocation as a unic... | Add support for python 3 The unicode function is not in python 3 as string literals are by default unicode strings. see: <URL> | py |
diff --git a/warehouse/legacy/api/xmlrpc.py b/warehouse/legacy/api/xmlrpc.py
index <HASH>..<HASH> 100644
--- a/warehouse/legacy/api/xmlrpc.py
+++ b/warehouse/legacy/api/xmlrpc.py
@@ -27,7 +27,12 @@ from warehouse.packaging.models import (
)
-pypi_xmlrpc = functools.partial(xmlrpc_method, endpoint="pypi")
+pypi_xml... | Exempt XMLRPC from CSRF and set required methods to POST | py |
diff --git a/allauth/account/migrations/0002_email_max_length.py b/allauth/account/migrations/0002_email_max_length.py
index <HASH>..<HASH> 100644
--- a/allauth/account/migrations/0002_email_max_length.py
+++ b/allauth/account/migrations/0002_email_max_length.py
@@ -2,6 +2,9 @@
from __future__ import unicode_literals
... | New migration does not check ACCOUNT_UNIQUE_EMAIL setting | py |
diff --git a/c7n/resources/asg.py b/c7n/resources/asg.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/asg.py
+++ b/c7n/resources/asg.py
@@ -1579,6 +1579,8 @@ class LaunchConfig(query.QueryResourceManager):
filter_type = 'list'
config_type = 'AWS::AutoScaling::LaunchConfiguration'
+ retry = sta... | asg launch-config - retry on throttle when fetching resources (#<I>) | py |
diff --git a/fbchat/models.py b/fbchat/models.py
index <HASH>..<HASH> 100644
--- a/fbchat/models.py
+++ b/fbchat/models.py
@@ -1,8 +1,10 @@
from __future__ import unicode_literals
+import sys
class Base():
def __repr__(self):
- return self.__unicode__().encode('utf-8')
+ uni = self.__unicode__()
... | bugfix to make Users compatible for python2 and 3 | py |
diff --git a/topiary/commandline_args.py b/topiary/commandline_args.py
index <HASH>..<HASH> 100644
--- a/topiary/commandline_args.py
+++ b/topiary/commandline_args.py
@@ -76,20 +76,26 @@ variant_arg_group.add_argument("--json-variant-files",
def variant_collection_from_args(args):
variant_collections = []
+
+ ... | pass genome to load_vcf instead of reference_name | py |
diff --git a/isc.py b/isc.py
index <HASH>..<HASH> 100644
--- a/isc.py
+++ b/isc.py
@@ -59,5 +59,4 @@ def handler(return_format=None):
def infocon(return_format=None):
"""Returns the current infocon level (green, yellow, orange, red)."""
- uri = 'infocon'
return _get('infocon', return_format) | Removed an unused line left over from the last commit. | py |
diff --git a/lib/svtplay_dl/service/bigbrother.py b/lib/svtplay_dl/service/bigbrother.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/bigbrother.py
+++ b/lib/svtplay_dl/service/bigbrother.py
@@ -12,7 +12,7 @@ from svtplay_dl.log import log
from svtplay_dl.fetcher.hds import hdsparse
from svtplay_dl.fetche... | bigbrother: support for OpenGraphThumbMixin | py |
diff --git a/gbdxtools/ipe/interface.py b/gbdxtools/ipe/interface.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/ipe/interface.py
+++ b/gbdxtools/ipe/interface.py
@@ -158,7 +158,7 @@ class DaskProps(object):
for x in xrange(img_md['minTileX'], img_md["maxTileX"]+1)}
-class Op(DaskMeta, DaskProps):
... | fixing the way ipe Op inherits from DaskProps and DaskMeta | py |
diff --git a/thinc/api.py b/thinc/api.py
index <HASH>..<HASH> 100644
--- a/thinc/api.py
+++ b/thinc/api.py
@@ -135,18 +135,18 @@ def with_flatten(layer):
return layer.ops.unflatten(X, lengths), finish_update
model = layerize(begin_update)
model._layers.append(layer)
+ model.on_data_hooks.append(_w... | Refine the way chlld hooks are run | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,10 @@ BASE_PKGS=find_packages('src', exclude=['drp', 'drp.*'])
NAMESPACE_PKGS = ['numina.pipelines', 'numina.pipelines.emir']
ALL_PKGS = BASE_PKGS + NAMESPACE_PKGS
+# There is a problem installing/uninstalling with... | Added a note about pip uninstalling pyemir AND numina | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.