diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/guake/guake_app.py b/guake/guake_app.py
index <HASH>..<HASH> 100644
--- a/guake/guake_app.py
+++ b/guake/guake_app.py
@@ -733,7 +733,6 @@ class Guake(SimpleGladeApp):
# The box was showed, but out of focus
# Don't hide it, re-grab the focus to search entry
... | Fix multiple block on notebook on_button_press | py |
diff --git a/tensorflow_probability/python/distributions/distribution_properties_test.py b/tensorflow_probability/python/distributions/distribution_properties_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/distribution_properties_test.py
+++ b/tensorflow_probability/python/distrib... | Include `batch_shape` as a non-tensor parameter in ParameterPropertiesTest.testCanConstructAndSampleDistribution This covers the SphericalUniform distribution, which Guitar found as a counterexample. PiperOrigin-RevId: <I> | py |
diff --git a/pyaxiom/netcdf/grids/collection.py b/pyaxiom/netcdf/grids/collection.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/netcdf/grids/collection.py
+++ b/pyaxiom/netcdf/grids/collection.py
@@ -78,7 +78,12 @@ class Collection(object):
nc = netCDF4.Dataset(filepath)
if datase... | Fall back to default dataset_name if we can't find one | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -214,8 +214,7 @@ setup(
"Topic :: Text Processing :: Linguistic",
],
setup_requires=[
- 'setuptools-scm == 1.11.1', # pinned because upstream keeps breaking things
- 'setuptools-scm-git-ar... | Another attempt at py <I>/<I> Revert to exactly what the previous passing build specified. | py |
diff --git a/fixes/fix_future_package.py b/fixes/fix_future_package.py
index <HASH>..<HASH> 100644
--- a/fixes/fix_future_package.py
+++ b/fixes/fix_future_package.py
@@ -10,7 +10,7 @@ Use like this to port Python 2 code:
Or, to make existing Python 3 code compatible with Python 2 using the
``future`` package:
- $... | Temporary: add changes to fix_future_package.py in old location, just in case | py |
diff --git a/pyocd/flash/loader.py b/pyocd/flash/loader.py
index <HASH>..<HASH> 100755
--- a/pyocd/flash/loader.py
+++ b/pyocd/flash/loader.py
@@ -122,7 +122,11 @@ class FileProgrammer(object):
try:
# Open the file if a path was provided.
if isPath:
- file_obj = open(fi... | flash/loader: fix python3 compatibility issue with hex files | py |
diff --git a/tofu/benchmarks/benchmarks_02_spectralfit_time.py b/tofu/benchmarks/benchmarks_02_spectralfit_time.py
index <HASH>..<HASH> 100644
--- a/tofu/benchmarks/benchmarks_02_spectralfit_time.py
+++ b/tofu/benchmarks/benchmarks_02_spectralfit_time.py
@@ -206,6 +206,8 @@ class HighLevel:
dprepare=None,
... | [#<I>] Updated benchmark with fit2d-dinput(phi) | py |
diff --git a/graphite_influxdb.py b/graphite_influxdb.py
index <HASH>..<HASH> 100644
--- a/graphite_influxdb.py
+++ b/graphite_influxdb.py
@@ -40,9 +40,13 @@ class InfluxdbReader(object):
self.path = path
def fetch(self, start_time, end_time):
+ # in graphite,
+ # from is exclusive (from=f... | assure from/end behavior is same as graphite | py |
diff --git a/test/unit/test_utils.py b/test/unit/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_utils.py
+++ b/test/unit/test_utils.py
@@ -9,6 +9,7 @@ from pathlib import Path
import pytest
from ansible_runner.utils import (
+ cleanup_folder,
isplaybook,
isinventory,
dump_artifacts... | Add a simple set of unit tests for cleanup_folder | py |
diff --git a/example/dj/apps/test_chamber/tests/models/fields.py b/example/dj/apps/test_chamber/tests/models/fields.py
index <HASH>..<HASH> 100644
--- a/example/dj/apps/test_chamber/tests/models/fields.py
+++ b/example/dj/apps/test_chamber/tests/models/fields.py
@@ -27,6 +27,11 @@ class ModelFieldsTestCase(TransactionT... | Added a test for PersistenceException __str__ method | py |
diff --git a/rtv/content.py b/rtv/content.py
index <HASH>..<HASH> 100644
--- a/rtv/content.py
+++ b/rtv/content.py
@@ -430,7 +430,10 @@ class SubredditContent(Content):
if query:
if listing in ['u', 'user'] and '/m/' not in name:
reddit.config.API_PATHS['search'] = 'r/{subreddit}/... | Search works for logged in user's submissions | py |
diff --git a/deezer/resources.py b/deezer/resources.py
index <HASH>..<HASH> 100644
--- a/deezer/resources.py
+++ b/deezer/resources.py
@@ -329,7 +329,7 @@ class Playlist(Resource):
:returns: iterator of :mod:`User <deezer.resources.User>` instances
"""
- return self.iter_relation("tracks", **... | Fix browniebroke#<I> - fix typo in `Playlist.iter_fans` | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -561,10 +561,7 @@ class Single(object):
'sudo': sudo,
'tty': tty,
'mods': self.mods}
- minio... | Process `ssh_minion_opts` from master config Taking the minion config from the master system is dangerous, because there may be an actual minion on the system and if we're not careful we may override options we don't want to, resulting in hard-to-track-down errors. Instead, allow for explicit minion config defined in ... | py |
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/GenericTransport.py
+++ b/openpnm/algorithms/GenericTransport.py
@@ -375,7 +375,7 @@ class GenericTransport(GenericAlgorithm):
phase = self.project.phases()[self... | Force A matrix to be of type float Sending int conductance values to laplacian leads to weird behavior | py |
diff --git a/indra/tests/test_bioregistry.py b/indra/tests/test_bioregistry.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_bioregistry.py
+++ b/indra/tests/test_bioregistry.py
@@ -60,5 +60,3 @@ def test_ensure_prefix_if_needed():
'CHEBI:3696'
assert bioregistry_client.ensure_prefix_if_needed('CHEBI... | Remove CLO test case since its banana was removed | py |
diff --git a/salt/scripts.py b/salt/scripts.py
index <HASH>..<HASH> 100644
--- a/salt/scripts.py
+++ b/salt/scripts.py
@@ -253,8 +253,6 @@ def salt_run():
SystemExit('\nExiting gracefully on Ctrl-c'),
err,
hardcrash, trace=trace)
- except SystemExit:
- os._exit(0) # Kic... | Fixing failing tests This might have negative impacts for --async but we'll address those later | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -1030,6 +1030,9 @@ class SpreadsheetCollectionTestCase(BaseDocumentTestCase):
with self.assertRaises(KeyError):
del self.document.sheets['Missing']
+
+class SheetTestCase(BaseDocumentTestCase):
+
def t... | Test new delete_rows and delete_columns methods. | py |
diff --git a/nodeconductor/iaas/admin.py b/nodeconductor/iaas/admin.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/admin.py
+++ b/nodeconductor/iaas/admin.py
@@ -154,10 +154,17 @@ class TemplateMappingInline(admin.TabularInline):
extra = 3
+class LicenseInline(admin.TabularInline):
+ model = models... | Expose TemplateLicenses in admin | py |
diff --git a/pypy/interpreter/astcompiler/astbuilder.py b/pypy/interpreter/astcompiler/astbuilder.py
index <HASH>..<HASH> 100644
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -973,7 +973,7 @@ class ASTBuilder(object):
comp_type = comp_node.type
if... | [*] one more. Down to <I>. | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -4,7 +4,7 @@
# fmt: off
__title__ = "spacy-nightly"
-__version__ = "2.1.0a6.dev0"
+__version__ = "2.1.0a6.dev1"
__summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and ... | Set version to <I>a6.dev1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ setuptools.setup(
long_description=long_description,
long_description_content_type="text/x-rst",
packages=setuptools.find_packages(exclude=["test*"]),
- package_data={"pathvalidate": ["py.typed... | Fix a key for py.typed | py |
diff --git a/carrot/messaging.py b/carrot/messaging.py
index <HASH>..<HASH> 100644
--- a/carrot/messaging.py
+++ b/carrot/messaging.py
@@ -1,4 +1,5 @@
from amqplib import client_0_8 as amqp
+import warnings
try:
# cjson is the fastest
@@ -132,8 +133,8 @@ class Consumer(object):
discarded_count = d... | Use warnings.warn with DeprecationWarning instead of raise | py |
diff --git a/helusers/models.py b/helusers/models.py
index <HASH>..<HASH> 100644
--- a/helusers/models.py
+++ b/helusers/models.py
@@ -66,6 +66,16 @@ class AbstractUser(DjangoAbstractUser):
else:
return self.email
+ def get_short_name(self):
+ if self.first_name:
+ return se... | Make default User methods work nicer with 'u-' usernames | py |
diff --git a/django_performance_testing/serializer.py b/django_performance_testing/serializer.py
index <HASH>..<HASH> 100644
--- a/django_performance_testing/serializer.py
+++ b/django_performance_testing/serializer.py
@@ -19,14 +19,14 @@ class Writer:
self.fpath = fpath
def start(self):
- self.f... | only open the file just before starting the write | py |
diff --git a/juicer/common/RPM.py b/juicer/common/RPM.py
index <HASH>..<HASH> 100644
--- a/juicer/common/RPM.py
+++ b/juicer/common/RPM.py
@@ -18,7 +18,7 @@
import os.path
import juicer.utils
import juicer.utils.Log
-
+import re
class RPM(object):
def __init__(self, source):
@@ -30,7 +30,9 @@ class RPM(objec... | Add a regex for url checking. Closes #<I> | py |
diff --git a/mutagen/id3.py b/mutagen/id3.py
index <HASH>..<HASH> 100644
--- a/mutagen/id3.py
+++ b/mutagen/id3.py
@@ -430,7 +430,7 @@ class ID3(DictProxy, mutagen.Metadata):
order = dict(zip(order, range(len(order))))
last = len(order)
frames = self.items()
- frames.sort(key=lambda a:... | id3: deterministic sorting of frames. (Fixes issue #<I>) | py |
diff --git a/tests/test_gatherer_request.py b/tests/test_gatherer_request.py
index <HASH>..<HASH> 100644
--- a/tests/test_gatherer_request.py
+++ b/tests/test_gatherer_request.py
@@ -295,4 +295,8 @@ class WhenMakingSpecialRequest(unittest.TestCase):
def should_include_special_option_in_url(self):
request ... | Add test for inferring special queries. | py |
diff --git a/send2trash/plat_other.py b/send2trash/plat_other.py
index <HASH>..<HASH> 100644
--- a/send2trash/plat_other.py
+++ b/send2trash/plat_other.py
@@ -33,8 +33,9 @@ EXTERNAL_CANDIDATES = [
def find_mount_point(path):
# Even if something's wrong, "/" is a mount point, so the loop will exit.
+ path = o... | Fixed an infinite loop in plat_other when using a relative path in a mounted directory. | py |
diff --git a/torchtext/data/utils.py b/torchtext/data/utils.py
index <HASH>..<HASH> 100644
--- a/torchtext/data/utils.py
+++ b/torchtext/data/utils.py
@@ -112,7 +112,17 @@ def get_tokenizer(tokenizer, language='en'):
if tokenizer == "spacy":
try:
import spacy
- spacy = spacy.load(l... | Replace model with full name when spacy load is used (#<I>) | py |
diff --git a/dftimewolf/lib/exporters/timesketch.py b/dftimewolf/lib/exporters/timesketch.py
index <HASH>..<HASH> 100644
--- a/dftimewolf/lib/exporters/timesketch.py
+++ b/dftimewolf/lib/exporters/timesketch.py
@@ -86,8 +86,8 @@ class TimesketchExporter(module.BaseModule):
sketch = self.timesketch_api.get_sketch... | Fixed sketch-id error message (#<I>) * Fixed error message, which throws an exception because of wrong data type * Fixed line exceeding <I> characters | py |
diff --git a/src/automate/extensions/arduino/arduino_service.py b/src/automate/extensions/arduino/arduino_service.py
index <HASH>..<HASH> 100644
--- a/src/automate/extensions/arduino/arduino_service.py
+++ b/src/automate/extensions/arduino/arduino_service.py
@@ -249,6 +249,7 @@ class ArduinoService(AbstractSystemServic... | Arduino: Configure analog reference during initialization | py |
diff --git a/telethon/client/chats.py b/telethon/client/chats.py
index <HASH>..<HASH> 100644
--- a/telethon/client/chats.py
+++ b/telethon/client/chats.py
@@ -864,10 +864,7 @@ class ChatMethods:
"""
entity = await self.get_input_entity(entity)
user = await self.get_input_entity(user)
- ... | Allow edit_admin on yourself (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ setup(
platforms = ['any'],
packages = packages,
package_data = package_data,
- requires=["QScintilla2 (>2.1)", "PyQt4 (>4.3)"],
+ requires=["pyflakes (>0.3.0)", "QScintilla2 (... | setup.py: added pyflakes to external requirements | py |
diff --git a/animatplot/blocks/title.py b/animatplot/blocks/title.py
index <HASH>..<HASH> 100644
--- a/animatplot/blocks/title.py
+++ b/animatplot/blocks/title.py
@@ -35,12 +35,6 @@ class Title(Block):
"""
def __init__(self, text, ax=None, mpl_kwargs=None, *args, **kwargs):
- axis = kwargs.pop('axis'... | Removed uneeded check for old axis argument | py |
diff --git a/steam/tf2.py b/steam/tf2.py
index <HASH>..<HASH> 100644
--- a/steam/tf2.py
+++ b/steam/tf2.py
@@ -405,7 +405,7 @@ class backpack:
def get_item_level(self, item):
""" Returns the item's level (e.g. 10 for The Axtinguisher) if it has one """
- return item.get("level", 0)
+ retur... | Return None instead of 0 for level getters | py |
diff --git a/flask_ldap_login/__init__.py b/flask_ldap_login/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_ldap_login/__init__.py
+++ b/flask_ldap_login/__init__.py
@@ -169,6 +169,7 @@ class LDAPLoginManager(object):
except ldap.INVALID_CREDENTIALS:
self.conn.simple_bind_s(us... | Update __init__.py Fix right username with wrong password was accepted. | py |
diff --git a/src/ossos-pipeline/ossos/gui/persistence.py b/src/ossos-pipeline/ossos/gui/persistence.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/persistence.py
+++ b/src/ossos-pipeline/ossos/gui/persistence.py
@@ -1,10 +1,10 @@
__author__ = "David Rusk <drusk@uvic.ca>"
import collections
-impor... | Switched progress managers to use CADC username instead of Unix username. | py |
diff --git a/zipline/testing/core.py b/zipline/testing/core.py
index <HASH>..<HASH> 100644
--- a/zipline/testing/core.py
+++ b/zipline/testing/core.py
@@ -1194,7 +1194,7 @@ def parameter_space(__fail_fast=_FAIL_FAST_DEFAULT, **params):
if unspecified:
raise AssertionError(
"Functi... | TST: fix parameter_space error handling Fix error message when the function has parameters that are not provided by parameter_space. I saw this when I removed a parameter from the decorator but forgot to update the function signature. | py |
diff --git a/test/high_availability/test_ha.py b/test/high_availability/test_ha.py
index <HASH>..<HASH> 100644
--- a/test/high_availability/test_ha.py
+++ b/test/high_availability/test_ha.py
@@ -14,6 +14,11 @@
"""Test replica set operations and failures."""
+# These test methods exuberantly violate the "one assert... | Explain why test_ha methods are so large | py |
diff --git a/tests/test_tokenize.py b/tests/test_tokenize.py
index <HASH>..<HASH> 100644
--- a/tests/test_tokenize.py
+++ b/tests/test_tokenize.py
@@ -240,9 +240,6 @@ class TestTokenizePackage(unittest.TestCase):
def test_word_tokenize_deepcut(self):
self.assertEqual(tokenize_deepcut.segment(None), [])
... | Update test_tokenize.py | py |
diff --git a/packages/vaex-core/vaex/dataframe.py b/packages/vaex-core/vaex/dataframe.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/dataframe.py
+++ b/packages/vaex-core/vaex/dataframe.py
@@ -2823,7 +2823,7 @@ class DataFrame(object):
chunks = da.core.normalize_chunks(chunks, shape=self.shape, d... | fix(core): converting to dask array was missing a to_arrays() also, since dask will be multithreaded by itself, we don't want the evaluate to be multithreaded. | py |
diff --git a/tests/parser.py b/tests/parser.py
index <HASH>..<HASH> 100644
--- a/tests/parser.py
+++ b/tests/parser.py
@@ -77,6 +77,15 @@ class GcvsParserTestCase(unittest.TestCase):
self.assertEqual(ra, '05:55:10.3')
self.assertEqual(dec, '+07:24:25')
+ def test_parse_empty_coordinates(self):
+ ... | Added test for parsing empty coordinates. | py |
diff --git a/datajoint/settings.py b/datajoint/settings.py
index <HASH>..<HASH> 100644
--- a/datajoint/settings.py
+++ b/datajoint/settings.py
@@ -52,7 +52,7 @@ default = OrderedDict({
'display.width': 14
})
-logger = logging.getLogger()
+logger = logging.getLogger(__name__)
log_levels = {
'INFO': logging... | Associate name with logger in settings.py | py |
diff --git a/source/rafcon/gui/start.py b/source/rafcon/gui/start.py
index <HASH>..<HASH> 100755
--- a/source/rafcon/gui/start.py
+++ b/source/rafcon/gui/start.py
@@ -142,13 +142,16 @@ def setup_gui():
def open_state_machines(paths):
+ first_sm = None
for path in paths:
try:
- state_mac... | Open all statemachines passed with -o When starting RAFCON with gui/start.py all statemachines are opened and the first one is started if the -ss flag is set (same behavior as core/start.py). | py |
diff --git a/cobra/core/Metabolite.py b/cobra/core/Metabolite.py
index <HASH>..<HASH> 100644
--- a/cobra/core/Metabolite.py
+++ b/cobra/core/Metabolite.py
@@ -28,10 +28,8 @@ class Metabolite(Species):
name: str
A human readable name.
- compartment: None or a dictionary indicating the cell... | doc: clarify Metabolite docstring regarding compartment arg (#<I>) | py |
diff --git a/mmcv/runner/epoch_based_runner.py b/mmcv/runner/epoch_based_runner.py
index <HASH>..<HASH> 100644
--- a/mmcv/runner/epoch_based_runner.py
+++ b/mmcv/runner/epoch_based_runner.py
@@ -99,10 +99,11 @@ class EpochBasedRunner(BaseRunner):
work_dir = self.work_dir if self.work_dir is not None else 'NONE... | Reordered the hooks and use attributes rather than args. (#<I>) * Reordered the hooks and use attributes rather than args. Formated. * Reordering may cause conflict, assign the value first than update such as max_iter Rewind back the order. * Rewind back to just use attributes, the update of max_iter and s... | py |
diff --git a/bcbio/ngsalign/bwa.py b/bcbio/ngsalign/bwa.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/bwa.py
+++ b/bcbio/ngsalign/bwa.py
@@ -174,9 +174,7 @@ def _align_backtrack(fastq_file, pair_file, ref_file, out_file, names, rg_info,
def _bwa_args_from_config(config):
num_cores = config["algorithm"].get... | Remove obsolete -I flag from bwa aln (handled by seqtk now). | py |
diff --git a/lifelines/utils.py b/lifelines/utils.py
index <HASH>..<HASH> 100644
--- a/lifelines/utils.py
+++ b/lifelines/utils.py
@@ -309,7 +309,7 @@ def k_fold_cross_validation(fitter, df, duration_col='T', event_col='E',
# fit the fitter to the training data
fitter.fit(training_data, duration_col... | not sure why I made this change... | py |
diff --git a/pytplot/__init__.py b/pytplot/__init__.py
index <HASH>..<HASH> 100644
--- a/pytplot/__init__.py
+++ b/pytplot/__init__.py
@@ -6,7 +6,7 @@
import numpy as np
from _collections import OrderedDict
from . import HTMLPlotter
-
+import sys
# This variable will be constantly changed depending on what x valu... | Making a fix to pyqtgraph that is necessary for windows to be able to run | py |
diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py
index <HASH>..<HASH> 100644
--- a/pydle/features/rfc1459/client.py
+++ b/pydle/features/rfc1459/client.py
@@ -316,17 +316,20 @@ class RFC1459Support(BasicClient):
## IRC helpers.
+ def normalize(self, s):
+ return parsin... | Add normalize function for RFC<I> client. This will normalize strings using the client's case mapping. | py |
diff --git a/tests/test_babel.py b/tests/test_babel.py
index <HASH>..<HASH> 100644
--- a/tests/test_babel.py
+++ b/tests/test_babel.py
@@ -77,16 +77,19 @@ def test_get_translations_existing_and_missing_mo(app):
assert isinstance(d.get_translations(), NullTranslations)
-def test_set_locale(app):
- ""... | test: split set locale to work outside of app ctx | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -4478,7 +4478,9 @@ def check_perms(name, ret, user, group, mode, attrs=None, follow_symlinks=False)
is_dir = os.path.isdir(name)
is_link = os.path.islink(name)
- i... | archive.extracted: Don't run lsattr when enforcing user/group ownership This changes file.check_perms such that it doesn't run lsattr if no attrs are passed in. | py |
diff --git a/grimoire_elk/elk/git.py b/grimoire_elk/elk/git.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/git.py
+++ b/grimoire_elk/elk/git.py
@@ -337,7 +337,10 @@ class GitEnrich(Enrich):
eitem[map_fields[fn]] = commit[fn]
else:
eitem[map_fields[fn]] = None
- ... | [elk] Handle empty message commits This patch allows to handle commits with empty messages. Thus, it includes a condition to check that the attribute message exists in the commit item. | py |
diff --git a/taxi/app.py b/taxi/app.py
index <HASH>..<HASH> 100755
--- a/taxi/app.py
+++ b/taxi/app.py
@@ -136,3 +136,7 @@ Available commands:
def term_unicode(string):
return unicode(string, sys.stdin.encoding)
+
+def main():
+ app = Taxi()
+ app.run() | redo main() method in app.py | py |
diff --git a/mot/runtime_configuration.py b/mot/runtime_configuration.py
index <HASH>..<HASH> 100644
--- a/mot/runtime_configuration.py
+++ b/mot/runtime_configuration.py
@@ -1,6 +1,6 @@
from contextlib import contextmanager
from .cl_environments import CLEnvironmentFactory
-from .load_balance_strategies import EvenD... | Reverted the default runtime configuration settings to all devices with GPUPreferred load balancer. | py |
diff --git a/tests/test_runtime_typecheck.py b/tests/test_runtime_typecheck.py
index <HASH>..<HASH> 100644
--- a/tests/test_runtime_typecheck.py
+++ b/tests/test_runtime_typecheck.py
@@ -65,7 +65,7 @@ def test_dict():
assert dummy_fun_with_nonoptional(10, **param_dic) == 25
-def test_raises():
+def test_raises... | Add tests for dictionary-style argument passing | py |
diff --git a/uni_form/helpers.py b/uni_form/helpers.py
index <HASH>..<HASH> 100644
--- a/uni_form/helpers.py
+++ b/uni_form/helpers.py
@@ -108,7 +108,7 @@ class Fieldset(object):
self.css = args['css_class']
else:
self.css = None
- self.legend_html = legend and ('<legend>%s</le... | Removing a hard coded <hr /> for our newspaper friends at Washington Times/Corey OOrdt | py |
diff --git a/andes/routines/eig.py b/andes/routines/eig.py
index <HASH>..<HASH> 100644
--- a/andes/routines/eig.py
+++ b/andes/routines/eig.py
@@ -304,10 +304,7 @@ class EIG(BaseRoutine):
t2, s = elapsed(t1)
self.exec_time = t2 - t1
- logger.info(' Positive %6g', self.n_positive)
- l... | Separate statistics into `EIG.stats()`. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,11 +22,7 @@ packages = [
setup(
name='lassie',
version=__version__,
- install_requires=[
- 'requests==2.6.0',
- 'beautifulsoup4==4.3.2',
- 'html5lib==1.0b3'
- ],
+ install_requires=... | read requirements from file instead of inline | py |
diff --git a/rockfinder/orbfit_ephemeris.py b/rockfinder/orbfit_ephemeris.py
index <HASH>..<HASH> 100644
--- a/rockfinder/orbfit_ephemeris.py
+++ b/rockfinder/orbfit_ephemeris.py
@@ -17,7 +17,7 @@ from fundamentals import tools
from subprocess import Popen, PIPE, STDOUT
from os.path import expanduser
import collecti... | using pathos version of multiprocess instead of multiprocessing | py |
diff --git a/gwpy/cli/coherence.py b/gwpy/cli/coherence.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/coherence.py
+++ b/gwpy/cli/coherence.py
@@ -158,7 +158,6 @@ class Coherence(CliProduct):
' problems (avaiability or constant values)')
# if the specified frequency limits adjust ... | cli.coherence: removed duplicate import | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -198,6 +198,7 @@ class patch_files(object):
patch('pyinfra.modules.files.path.isfile', self.isfile),
patch('pyinfra.modules.files.path.isdir', self.isdir),
patch('pyin... | Patch out `makedirs` in directory tests. | py |
diff --git a/sos/plugins/subscription_manager.py b/sos/plugins/subscription_manager.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/subscription_manager.py
+++ b/sos/plugins/subscription_manager.py
@@ -29,6 +29,7 @@ class SubscriptionManager(Plugin, RedHatPlugin):
# rhsm config and logs
self.add_copy... | [subscription_manager] collect /var/lib/rhsm/ The directory contains usefull info about subscription status and facts the RHSM server gets from this client. Resolves: #<I> | py |
diff --git a/cub/models.py b/cub/models.py
index <HASH>..<HASH> 100644
--- a/cub/models.py
+++ b/cub/models.py
@@ -256,9 +256,10 @@ class SKU(CubObject):
pass
-class Order(CreatableObject, ListableObject):
+class Order(CreatableObject, UpdatableObject, RemovableObject, ListableObject):
pass
-class Ord... | make Order and OrderItem models also updatable and removable | py |
diff --git a/scripts/bcbio_nextgen_install.py b/scripts/bcbio_nextgen_install.py
index <HASH>..<HASH> 100755
--- a/scripts/bcbio_nextgen_install.py
+++ b/scripts/bcbio_nextgen_install.py
@@ -212,7 +212,7 @@ def check_dependencies():
(["wget", "--version"], "wget"),
(["bzip2",... | Enable python <I> compatibility by removing poorly introduced check_output. | py |
diff --git a/salt/modules/sensors.py b/salt/modules/sensors.py
index <HASH>..<HASH> 100644
--- a/salt/modules/sensors.py
+++ b/salt/modules/sensors.py
@@ -45,7 +45,7 @@ def sense(chip, fahrenheit=False):
extra_args = ''
if fahrenheit is True:
extra_args = '-f'
- sensors = __salt__['cmd.run']('/usr... | this cmd should be safe with a shell=False | py |
diff --git a/mopidy_spotify/search.py b/mopidy_spotify/search.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/search.py
+++ b/mopidy_spotify/search.py
@@ -49,7 +49,7 @@ def search(
)
if search_count > 50:
- logger.warn(
+ logger.warning(
"Spotify currently allows maximum 50 se... | Update logging statement to not use deprecated warn() call (#<I>) | py |
diff --git a/allennlp/data/fields/metadata_field.py b/allennlp/data/fields/metadata_field.py
index <HASH>..<HASH> 100644
--- a/allennlp/data/fields/metadata_field.py
+++ b/allennlp/data/fields/metadata_field.py
@@ -58,9 +58,8 @@ class MetadataField(Field[DataArray], Mapping[str, Any]):
def empty_field(self) -> 'Me... | fix MetadataField.batch_tensors (#<I>) | py |
diff --git a/jaraco/text.py b/jaraco/text.py
index <HASH>..<HASH> 100644
--- a/jaraco/text.py
+++ b/jaraco/text.py
@@ -85,10 +85,9 @@ class FoldedCase(six.text_type):
return hash(self.lower())
# cache lower since it's likely to be called frequently.
+ @jaraco.functools.method_cache
def lower(self):
- self._lo... | Use method_cache from jaraco.functools for elegant simplicity. | py |
diff --git a/test_script.py b/test_script.py
index <HASH>..<HASH> 100644
--- a/test_script.py
+++ b/test_script.py
@@ -74,7 +74,7 @@ def test_create_token():
folderType='Folder',
type='rich text', name='test token',
value=token_value)
-... | add unicode support to test_script for <I> | py |
diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -13,6 +13,10 @@ from six.moves.urllib.parse import urlparse
from types import ModuleType
+TOXIPROXY_HOST = "127.0.0.1"
+TOXIPROXY_PORT = 8474
+
+
@pytest.yield_fixture
def mock_producer()... | use constants for toxiproxy host and port | py |
diff --git a/titlecase/__init__.py b/titlecase/__init__.py
index <HASH>..<HASH> 100755
--- a/titlecase/__init__.py
+++ b/titlecase/__init__.py
@@ -20,7 +20,7 @@ except ImportError:
import re as regex
__all__ = ['titlecase']
-__version__ = '2.0.0'
+__version__ = '2.1.0'
SMALL = r'a|an|and|as|at|but|by|en|for|... | <I> Some small fixes to the install process. Kicking out as a point release in case the regex/re change has any unexpected side-effects. - #<I>: regex now optional, fallback to re (thanks @rkhwaja!) - #<I>: Fix UnicodeDecodeError on Windows pip (thanks @Gateswong!) | py |
diff --git a/demag_gui.py b/demag_gui.py
index <HASH>..<HASH> 100755
--- a/demag_gui.py
+++ b/demag_gui.py
@@ -148,8 +148,8 @@ class Zeq_GUI(wx.Frame):
self.preferences={}
self.preferences=preferences
- # inialize selecting criteria
- self.COORDINATE_SYSTEM='specimen'
+ # initia... | fixed display to automatically reflect default (geographic) coordinates When opening demag GUI, default coordinate system is geographic, but the display was not reflecting this (it displayed specimen coordinates) | py |
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/flag.py
+++ b/gwpy/segments/flag.py
@@ -49,7 +49,6 @@ from astropy.io import registry as io_registry
from astropy.utils.data import get_readable_fileobj
from ..time import to_gps
-from ..utils.deps import with... | segments.flag: don't use with_import its just confusing | py |
diff --git a/tests/unit/modules/linux_lvm_test.py b/tests/unit/modules/linux_lvm_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/linux_lvm_test.py
+++ b/tests/unit/modules/linux_lvm_test.py
@@ -218,11 +218,11 @@ class AtTestCase(TestCase):
'''
Test to return information about the logical ... | pylint bug fixing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ install_requires = [
setup(
name='nodeconductor',
- version='0.15.0',
+ version='0.16.0',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/openn... | Preparing new release: <I> | py |
diff --git a/src/txkube/testing/strategies.py b/src/txkube/testing/strategies.py
index <HASH>..<HASH> 100644
--- a/src/txkube/testing/strategies.py
+++ b/src/txkube/testing/strategies.py
@@ -23,6 +23,11 @@ from .. import (
# Without some attempt to cap the size of collection strategies (lists,
# dictionaries), the sl... | Add some advice to the comment explaining the constants. | py |
diff --git a/ObjectPathPy/core/parser.py b/ObjectPathPy/core/parser.py
index <HASH>..<HASH> 100644
--- a/ObjectPathPy/core/parser.py
+++ b/ObjectPathPy/core/parser.py
@@ -6,7 +6,7 @@
# - specialized to work with ObjectPath,
# - optimized
from cStringIO import StringIO
-from core import *
+#from core import *
symb... | parser has now support for /RegEx/ notation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,9 @@ import os
from setuptools import setup
ROOT = os.path.dirname(os.path.realpath(__file__))
+with open('README.md') as inp:
+ README_CONTENT = inp.read()
+
setup(
# Meta data
@@ -14,7 +17,8 @@ setup(
... | Fix setup.py/README issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ setup(
packages=find_packages(exclude=["tests", "examples"]),
install_requires=[
"requests[socks]>=2.11.1",
- "requests_oauthlib>=0.7.0",
+ "requests_oauthlib>=1.0.0",
],
... | Update requests_oauthlib dependency requirement to >= <I> | py |
diff --git a/backtrader/plot/locator.py b/backtrader/plot/locator.py
index <HASH>..<HASH> 100644
--- a/backtrader/plot/locator.py
+++ b/backtrader/plot/locator.py
@@ -216,6 +216,8 @@ class AutoDateLocator(ADLocator):
locator = RRuleLocator(self._dates, rrule, self.tz)
else:
+ if usemi... | Make sure that interval is always defined if usemicro was forced | py |
diff --git a/pelix/remote/json_rpc.py b/pelix/remote/json_rpc.py
index <HASH>..<HASH> 100644
--- a/pelix/remote/json_rpc.py
+++ b/pelix/remote/json_rpc.py
@@ -143,9 +143,6 @@ class JsonRpcServiceExporter(object):
# Bundle context
self._context = None
- # Framework UID
- self._fw_uid = ... | JSON-RPC: Small code cleanup - Removed an unused member (fw_uid) - Simplified endpoint_removed | py |
diff --git a/tests/test_bugzilla.py b/tests/test_bugzilla.py
index <HASH>..<HASH> 100644
--- a/tests/test_bugzilla.py
+++ b/tests/test_bugzilla.py
@@ -20,6 +20,7 @@ class TestBugzillaService(ServiceTest):
arbitrary_record = {
'component': 'Something',
'priority': 'urgent',
+ ... | Ooops, add status field to tests | py |
diff --git a/multigtfs/tests/shape.py b/multigtfs/tests/shape.py
index <HASH>..<HASH> 100644
--- a/multigtfs/tests/shape.py
+++ b/multigtfs/tests/shape.py
@@ -147,6 +147,28 @@ S1,36.425288,-117.133162,1,1.1
self.assertEqual(trip.geometry, shape.geometry)
self.assertEqual(route.geometry, MultiLineStrin... | Add test for <I>% branch coverage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
import platform
import os
@@ -149,7 +149,7 @@ setup (name = 'phoebe',
url = 'http://github.com/phoebe-project/phoeb... | Start to use setuptools instead of distutils. | py |
diff --git a/stagpy/field.py b/stagpy/field.py
index <HASH>..<HASH> 100644
--- a/stagpy/field.py
+++ b/stagpy/field.py
@@ -47,10 +47,7 @@ def plot_scalar(args, stgdat, var):
plt.axis([stgdat.rcmb, np.amax(xmesh), 0, np.amax(ymesh)])
plt.axis('off')
- plt.tight_layout()
- plt.savefig(misc.file_... | Field.plot_scalar return figure ID Instead of closing the figure, one can use plot_scalar in an other function to enrich the plot before closing it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -104,8 +104,6 @@ setup(
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'P... | Dropped Py<I> from the setup.py since we aren't testing it any more | py |
diff --git a/zubbi/models.py b/zubbi/models.py
index <HASH>..<HASH> 100644
--- a/zubbi/models.py
+++ b/zubbi/models.py
@@ -251,14 +251,18 @@ def class_from_block_type(block_type):
def init_elasticsearch(app):
- init_elasticsearch_con(
- app.config["ES_HOST"],
- app.config.get("ES_USER"),
- ... | Simplify notation for Elasticsearch configuration in config file This simplifies the notation for the Elasticsearch configuration in the settings.cfg. While the old format 'ES_*' is still compatible, we should remove that some time. | py |
diff --git a/ot/lp/__init__.py b/ot/lp/__init__.py
index <HASH>..<HASH> 100644
--- a/ot/lp/__init__.py
+++ b/ot/lp/__init__.py
@@ -323,7 +323,7 @@ def emd2(a, b, M, processes=multiprocessing.cpu_count(),
The maximum number of iterations before stopping the optimization
algorithm if it has not converge... | Docs correction (#<I>) | py |
diff --git a/ml-agents/mlagents/envs/rpc_communicator.py b/ml-agents/mlagents/envs/rpc_communicator.py
index <HASH>..<HASH> 100644
--- a/ml-agents/mlagents/envs/rpc_communicator.py
+++ b/ml-agents/mlagents/envs/rpc_communicator.py
@@ -55,6 +55,7 @@ class RpcCommunicator(Communicator):
add_UnityToExternalSe... | Bug fix for the pytests of the worker-id | py |
diff --git a/unzip_requirements.py b/unzip_requirements.py
index <HASH>..<HASH> 100644
--- a/unzip_requirements.py
+++ b/unzip_requirements.py
@@ -6,7 +6,8 @@ import zipfile
pkgdir = '/tmp/sls-py-req'
-sys.path.append(pkgdir)
+# We want our path to look like [working_dir, serverless_requirements, ...]
+sys.path.in... | Insert zipped packages at beginning of path #<I> | py |
diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py
index <HASH>..<HASH> 100644
--- a/xarray/core/dataset.py
+++ b/xarray/core/dataset.py
@@ -4429,12 +4429,7 @@ class Dataset(DataWithCoords, DatasetArithmetic, Mapping):
-------
obj : Dataset
The dataset without the given dimensio... | Correct bad extra returns in drop_dims docstr (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
from setuptools import setup
import os
+import platform
data = list()
@@ -8,8 +9,10 @@ for d in os.walk('appkit/'):
path_list = [str.join('/', os.path.join(d[0], x).split('/')[1:]) for x in d[2]]
... | Fix setup.py for debian-7 installation (and other linux distro). Require pygobject in windows platform only, | py |
diff --git a/python/src/cm_api/endpoints/cms.py b/python/src/cm_api/endpoints/cms.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/cms.py
+++ b/python/src/cm_api/endpoints/cms.py
@@ -404,3 +404,22 @@ class ClouderaManager(BaseApiResource):
if gpg_key_custom_url:
host_install_args['gpgKeyCusto... | [py] Add API client bindings for the trial license. The methods begin_trial and end_trial use the endpoints /cm/trial/begin and /cm/trial/end respectively to begin and end the trial license. | py |
diff --git a/intranet/apps/eighth/views/admin/general.py b/intranet/apps/eighth/views/admin/general.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/views/admin/general.py
+++ b/intranet/apps/eighth/views/admin/general.py
@@ -17,7 +17,7 @@ from ...models import EighthActivity, EighthBlock, EighthRoom, EighthSp... | clear cache on admin page should clear database cache as well | py |
diff --git a/pytablewriter/writer/text/_csv.py b/pytablewriter/writer/text/_csv.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/writer/text/_csv.py
+++ b/pytablewriter/writer/text/_csv.py
@@ -27,8 +27,10 @@ class CsvTableWriter(TextTableWriter):
def __init__(self) -> None:
super().__init__()
+ ... | Modify initialization to be more properly for CsvTableWriter class | py |
diff --git a/torext/mongodb/dstruct.py b/torext/mongodb/dstruct.py
index <HASH>..<HASH> 100644
--- a/torext/mongodb/dstruct.py
+++ b/torext/mongodb/dstruct.py
@@ -150,9 +150,12 @@ def validate_dict(doc, struct, allow_None_types=[], brother_types=[]):
if not isinstance(o, typ):
_pass = False
... | now allow all fields to be None when validating a struct | py |
diff --git a/thefuck/entrypoints/shell_logger.py b/thefuck/entrypoints/shell_logger.py
index <HASH>..<HASH> 100644
--- a/thefuck/entrypoints/shell_logger.py
+++ b/thefuck/entrypoints/shell_logger.py
@@ -16,9 +16,11 @@ def _read(f, fd):
try:
f.write(data)
except ValueError:
- f.move(0, const.LO... | #N/A: Fix mmap log cleanup | py |
diff --git a/networking_cisco/tests/unit/cisco/device_manager/test_vif_hotplug_plugging_driver.py b/networking_cisco/tests/unit/cisco/device_manager/test_vif_hotplug_plugging_driver.py
index <HASH>..<HASH> 100644
--- a/networking_cisco/tests/unit/cisco/device_manager/test_vif_hotplug_plugging_driver.py
+++ b/networking... | Replace assertEqual(None, *) with assertIsNone in tests Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: Id7b3df<I>d6a5ae3f0c<I>a5b8d<I>e<I>f<I>b Closes-bug: #<I> | py |
diff --git a/salt/log.py b/salt/log.py
index <HASH>..<HASH> 100644
--- a/salt/log.py
+++ b/salt/log.py
@@ -217,7 +217,7 @@ if logging.getLoggerClass() is not SaltLoggingClass:
logging.addLevelName(TRACE, 'TRACE')
logging.addLevelName(GARBAGE, 'GARBAGE')
- if not logging.Logger.manager.loggerDict:
+ if... | Previous logging configuration should be checked against `logging.root.handlers`. Refs #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.