diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/infi/clickhouse_orm/fields.py b/src/infi/clickhouse_orm/fields.py
index <HASH>..<HASH> 100644
--- a/src/infi/clickhouse_orm/fields.py
+++ b/src/infi/clickhouse_orm/fields.py
@@ -79,6 +79,8 @@ class DateField(Field):
def to_python(self, value):
if isinstance(value, datetime.date):
... | Accept datetime values for date fields (by Zloool) | py |
diff --git a/cfgrib/messages.py b/cfgrib/messages.py
index <HASH>..<HASH> 100644
--- a/cfgrib/messages.py
+++ b/cfgrib/messages.py
@@ -271,8 +271,8 @@ class FileIndex(collections.abc.Mapping):
value = 'undef'
if isinstance(value, (np.ndarray, list)):
value = tu... | Stop codestyle form complaining on a comment | py |
diff --git a/djangochannelsrestframework/observer/model_observer.py b/djangochannelsrestframework/observer/model_observer.py
index <HASH>..<HASH> 100644
--- a/djangochannelsrestframework/observer/model_observer.py
+++ b/djangochannelsrestframework/observer/model_observer.py
@@ -121,7 +121,10 @@ class ModelObserver(Base... | * set the "old group names" to an empty set in the post_change_receiver (model observer) if the performed action is a create | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,12 +4,17 @@ except ImportError:
from distutils.core import setup
import sys
+import os
+import atexit
sys.path.insert(0, '.')
version = __import__('voluptuous').__version__
try:
import pypandoc
long_d... | Also include README.rst in distribution. | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -688,8 +688,11 @@ class SyndicOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
def setup_config(self):
opts = config.master_config(self.get_config... | Fix parser forsyndic to use master user | py |
diff --git a/source/rafcon/core/state_elements/state_element.py b/source/rafcon/core/state_elements/state_element.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/state_elements/state_element.py
+++ b/source/rafcon/core/state_elements/state_element.py
@@ -111,7 +111,7 @@ class StateElement(Observable, YAMLObject... | fix(state element): for invalid element _parent always weakref or None | py |
diff --git a/indra/tools/assemble_corpus.py b/indra/tools/assemble_corpus.py
index <HASH>..<HASH> 100644
--- a/indra/tools/assemble_corpus.py
+++ b/indra/tools/assemble_corpus.py
@@ -497,11 +497,7 @@ def filter_genes_only(stmts_in, **kwargs):
stmts_out : list[indra.statements.Statement]
A list of filtered... | Streamline assemble_corpus code with update logic 1. collapsed the logic of the if statement directly to the assignment 2. Switched order of if statement to make the continue happen faster and decrease code indentation | py |
diff --git a/test/test_transactions.py b/test/test_transactions.py
index <HASH>..<HASH> 100644
--- a/test/test_transactions.py
+++ b/test/test_transactions.py
@@ -71,12 +71,13 @@ def test_query_inside_transaction():
def test_set_connection_works():
- assert APerson(name='New guy').save()
+ assert APerson(nam... | fix connection test after update (#<I>) | py |
diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/tmpdir.py
+++ b/src/_pytest/tmpdir.py
@@ -10,6 +10,7 @@ import warnings
import attr
import py
+import six
import pytest
from .pathlib import ensure_reset_dir
@@ -28,8 +29,11 @@ class TempPathFactory(object):... | Fix call to os.path.abspath: the argument might already be a Path instance There's Path.absolute(), but it is not public, see <URL> | py |
diff --git a/traffic/data/samples/__init__.py b/traffic/data/samples/__init__.py
index <HASH>..<HASH> 100644
--- a/traffic/data/samples/__init__.py
+++ b/traffic/data/samples/__init__.py
@@ -67,6 +67,7 @@ def __getattr__(name: str) -> Union[Flight, Traffic]:
airbus_tree = cast(Flight, __getattr__("airbus_tree"))
be... | additional sample flight by default in py<I>, need for demo | py |
diff --git a/irclib.py b/irclib.py
index <HASH>..<HASH> 100644
--- a/irclib.py
+++ b/irclib.py
@@ -601,6 +601,13 @@ class ServerConnection(Connection):
"""
apply(self.irclibobj.add_global_handler, args)
+ def remove_global_handler(self, *args):
+ """Remove global handler.
+
+ See do... | Added Connection.remove_global_handler method (patch by Brandon Beck). | py |
diff --git a/phy/plot/features.py b/phy/plot/features.py
index <HASH>..<HASH> 100644
--- a/phy/plot/features.py
+++ b/phy/plot/features.py
@@ -630,6 +630,30 @@ class FeatureView(BaseSpikeCanvas):
@_wrap_vispy
def plot_features(features, **kwargs):
+ """Plot features.
+
+ Parameters
+ ----------
+
+ feat... | plot_features() docstring. | py |
diff --git a/ayrton/utils.py b/ayrton/utils.py
index <HASH>..<HASH> 100644
--- a/ayrton/utils.py
+++ b/ayrton/utils.py
@@ -47,3 +47,16 @@ def patch_logging ():
logging.Logger.debug3= debug3
patch_logging ()
+
+def dump_dict (d, level=0):
+ strings= []
+
+ strings.append ("%s%r: {\n" % ( ' '*level, k)... | [+] dump_dict() pretty prints dicts. | py |
diff --git a/test/base_test.py b/test/base_test.py
index <HASH>..<HASH> 100644
--- a/test/base_test.py
+++ b/test/base_test.py
@@ -41,7 +41,7 @@ class BaseTest(TestCase):
def test_activate_session_with_one_session_then_clearing_and_activating_with_another_session_shoul_request_to_correct_shop(self):
sho... | Add missing parentheses to method call. | py |
diff --git a/onecodex/models/sample.py b/onecodex/models/sample.py
index <HASH>..<HASH> 100644
--- a/onecodex/models/sample.py
+++ b/onecodex/models/sample.py
@@ -1,4 +1,3 @@
-import json
from requests.exceptions import HTTPError
from six import string_types
import warnings
@@ -194,19 +193,6 @@ class Samples(OneCode... | Remove coercion of pd.Series objects for Metadata.custom field | py |
diff --git a/anonymizer/management/commands/anonymize_data.py b/anonymizer/management/commands/anonymize_data.py
index <HASH>..<HASH> 100644
--- a/anonymizer/management/commands/anonymize_data.py
+++ b/anonymizer/management/commands/anonymize_data.py
@@ -2,6 +2,11 @@
anonymize_data command
"""
+from __future__ impo... | print running anonymizer and the time they take | py |
diff --git a/salt/modules/dpkg.py b/salt/modules/dpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dpkg.py
+++ b/salt/modules/dpkg.py
@@ -364,7 +364,8 @@ def info(*packages):
pkg[pkg_ext_k] = pkg_ext_v
# Remove "technical" keys
for t_key in ['installed_size', 'depends', 'recommen... | Enhance filter for the "technical" fields that are not generally needed as a package information for the CMDB | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -566,15 +566,18 @@ class Playable(object):
self._server.query(key)
self.reload()
- def updateTimeline(self, time, state='stopped'):
+ def updateTimeline(self, time,... | updateTimeline with option duration Without the option duration the video progres will not be updated. | py |
diff --git a/master/buildbot/process/remotecommand.py b/master/buildbot/process/remotecommand.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/remotecommand.py
+++ b/master/buildbot/process/remotecommand.py
@@ -141,18 +141,13 @@ class RemoteCommand(base.RemoteCommandImpl):
while self.rc is None and... | process: Simplify RemoteCommand._finish() We can wait on self.remoteComplete() to finish, because _finished() is only ever called without waiting for results | py |
diff --git a/PyMI/src/wmi/__init__.py b/PyMI/src/wmi/__init__.py
index <HASH>..<HASH> 100644
--- a/PyMI/src/wmi/__init__.py
+++ b/PyMI/src/wmi/__init__.py
@@ -272,8 +272,16 @@ class _Connection(object):
instance._instance, six.text_type(method_name), params) as op:
l = []
r = ... | Sorts method call return params by name | py |
diff --git a/telethon/utils.py b/telethon/utils.py
index <HASH>..<HASH> 100644
--- a/telethon/utils.py
+++ b/telethon/utils.py
@@ -922,7 +922,8 @@ def resolve_bot_file_id(file_id):
dc_id=dc_id,
volume_id=volume_id,
secret=secret,
- local_id=local_id
+ ... | Add yet another missing file_reference | py |
diff --git a/marshmallow_sqlalchemy/fields.py b/marshmallow_sqlalchemy/fields.py
index <HASH>..<HASH> 100644
--- a/marshmallow_sqlalchemy/fields.py
+++ b/marshmallow_sqlalchemy/fields.py
@@ -53,7 +53,8 @@ class Related(fields.Field):
@property
def session(self):
- return self.parent.session
+ ... | Fix accessing Schema's session | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
name='awss',
packages=['awss'],
entry_points={'console_scripts': ['awss=awss:main']},
- version='0.9.4',
+ version='0.9.5',
author="Robert Peteuil",
author_email="robert.s.p... | setup.py for <I> release | py |
diff --git a/metaseq/test/examples/ctcf_peaks_settings.py b/metaseq/test/examples/ctcf_peaks_settings.py
index <HASH>..<HASH> 100644
--- a/metaseq/test/examples/ctcf_peaks_settings.py
+++ b/metaseq/test/examples/ctcf_peaks_settings.py
@@ -9,7 +9,7 @@ DOWNSTREAM = 1000
BINS = 100
FRAGMENT_SIZE = 200
GENOME = 'hg19'
-... | use chr1 and 2 instead of <I> for examples | py |
diff --git a/synapse/__init__.py b/synapse/__init__.py
index <HASH>..<HASH> 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -3,8 +3,8 @@ The synapse distributed key-value hypergraph analysis framework.
'''
import sys
-if (sys.version_info.major, sys.version_info.minor) < (3, 6): # pragma: no cover
- ... | Bump required python version. Also improved error description | py |
diff --git a/packages/vaex-viz/vaex/viz/mpl.py b/packages/vaex-viz/vaex/viz/mpl.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-viz/vaex/viz/mpl.py
+++ b/packages/vaex-viz/vaex/viz/mpl.py
@@ -843,7 +843,7 @@ def plot(self, x=None, y=None, z=None, what="count(*)", vwhat=None, reduce=["col
if show:
pylab... | Removed unused, undefined variable in the `plot` method. | py |
diff --git a/icekit/plugins/child_pages/tests.py b/icekit/plugins/child_pages/tests.py
index <HASH>..<HASH> 100644
--- a/icekit/plugins/child_pages/tests.py
+++ b/icekit/plugins/child_pages/tests.py
@@ -77,9 +77,9 @@ class ChildPagesTestCase(WebTest):
self.assertEqual(len(self.child_pages_1.get_child_pages()),... | Test ids instead of object equality on draft pages | py |
diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch/test_server/test_common.py
+++ b/test_elasticsearch/test_server/test_common.py
@@ -152,15 +152,19 @@ class YamlTestCase(ElasticsearchTestCase):
def run_s... | Skip in yaml tests can have multiple values | py |
diff --git a/pybar/ViTablesPlugin/__init__.py b/pybar/ViTablesPlugin/__init__.py
index <HASH>..<HASH> 100644
--- a/pybar/ViTablesPlugin/__init__.py
+++ b/pybar/ViTablesPlugin/__init__.py
@@ -1 +0,0 @@
-__all__ = ['pybar_vitables_plugin.py'] # only these modules will be visible in ViTables | BUG: addressing #<I> | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -546,7 +546,7 @@ class Minion(object):
last = time.time()
while True:
try:
- socks = dict(poller.poll(self.opts['sub_timeout']))
+ ... | Change the poll wait times in tune in This makes the minion more reponsive and less resource hungry | py |
diff --git a/src/fonduer/utils/data_model_utils/tabular.py b/src/fonduer/utils/data_model_utils/tabular.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/utils/data_model_utils/tabular.py
+++ b/src/fonduer/utils/data_model_utils/tabular.py
@@ -5,7 +5,7 @@ from builtins import range
from collections import defaultdict
... | Annotate type to axes | py |
diff --git a/nudibranch/models.py b/nudibranch/models.py
index <HASH>..<HASH> 100644
--- a/nudibranch/models.py
+++ b/nudibranch/models.py
@@ -355,6 +355,9 @@ class Submission(BasicBase, Base):
retval[testable] = testable_result
return retval
+ def testables_with_statuses(self):
+ ... | Only testables that aren't pending have statuses. | py |
diff --git a/inverse_covariance/statistical_power.py b/inverse_covariance/statistical_power.py
index <HASH>..<HASH> 100644
--- a/inverse_covariance/statistical_power.py
+++ b/inverse_covariance/statistical_power.py
@@ -65,7 +65,7 @@ class StatisticalPower(object):
self.results = np.zeros((self.n_grid_points, s... | Amp up alpha just to test | py |
diff --git a/test/test_process_pool_fork.py b/test/test_process_pool_fork.py
index <HASH>..<HASH> 100644
--- a/test/test_process_pool_fork.py
+++ b/test/test_process_pool_fork.py
@@ -73,7 +73,9 @@ def long_function(value=1):
def pid_function():
time.sleep(0.1)
- return os.getpid()
+ pid = os.getpid()
+ ... | travis: MAC OS test failure investigations | py |
diff --git a/monitor/report/app.py b/monitor/report/app.py
index <HASH>..<HASH> 100644
--- a/monitor/report/app.py
+++ b/monitor/report/app.py
@@ -31,5 +31,9 @@ def zonedata(key, zone):
ret[ts] = [{'date': k, 'value': v} for k,v in dd.iteritems()]
return jsonify(ret)
+@app.route("/histogram/<zone>")
+de... | give histogram data as json uri | 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
@@ -48,12 +48,12 @@ def scenario_risk(riskinputs, riskmodel, rlzs_assoc, monitor):
:class:`openquake... | Fixed docstring (again) | py |
diff --git a/workshift/views.py b/workshift/views.py
index <HASH>..<HASH> 100644
--- a/workshift/views.py
+++ b/workshift/views.py
@@ -851,9 +851,10 @@ def adjust_hours_view(request, semester):
pool_hour_forms = []
for workshifter in workshifters:
+ forms_list = []
for pool in pools:
... | Fxied adjust_hours view | py |
diff --git a/telemetry/telemetry/android_browser_finder.py b/telemetry/telemetry/android_browser_finder.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/android_browser_finder.py
+++ b/telemetry/telemetry/android_browser_finder.py
@@ -7,6 +7,7 @@ import os
import logging as real_logging
import re
import subp... | [Telemetry] Put adb on the path if it is not already there. There is a linux adb binary checked in to platform-tools. We use it if on linux and the adb command isn't found. BUG=None TEST=tools/perf/run_multipage_benchmarks --browser=list -v Review URL: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,14 +30,14 @@ setup(
setup_requires=pytest_runner + wheel + ["setuptools_scm"],
tests_require=["pytest>=2.8"],
install_requires=[
- "fonttools[ufo]>=4.11.0",
- "cu2qu>=1.6.6",
+ "fonttool... | setup.py: bump minimum requirements | py |
diff --git a/tests/test_command__devenv.py b/tests/test_command__devenv.py
index <HASH>..<HASH> 100644
--- a/tests/test_command__devenv.py
+++ b/tests/test_command__devenv.py
@@ -40,12 +40,6 @@ class DevEnvTestCase(TestCase):
else:
self.projector("devenv pack")
- def test_build__no_bo... | HOSTDEV-<I> removing unessary test now we are not using bootstrap.py | py |
diff --git a/src/toil_lib/tools/aligners.py b/src/toil_lib/tools/aligners.py
index <HASH>..<HASH> 100644
--- a/src/toil_lib/tools/aligners.py
+++ b/src/toil_lib/tools/aligners.py
@@ -59,11 +59,12 @@ def run_star(job, r1_id, r2_id, star_index_url, wiggle=False):
# Write to fileStore
transcriptome_id = job.file... | Return log.final.out from STAR (resolves #<I>) Needed by CKCC for QC. This breaks backwards compatability but only toil-rnaseq uses this function as of now. | py |
diff --git a/tests/parser/test_parse_inreach.py b/tests/parser/test_parse_inreach.py
index <HASH>..<HASH> 100644
--- a/tests/parser/test_parse_inreach.py
+++ b/tests/parser/test_parse_inreach.py
@@ -1,6 +1,7 @@
import unittest
from ogn.parser.aprs_comment.inreach_parser import InreachParser
+
class TestStringMetho... | Add a blank line in the test case for CI? | py |
diff --git a/ncdjango/interfaces/arcgis/views.py b/ncdjango/interfaces/arcgis/views.py
index <HASH>..<HASH> 100644
--- a/ncdjango/interfaces/arcgis/views.py
+++ b/ncdjango/interfaces/arcgis/views.py
@@ -374,9 +374,9 @@ class LegendView(ArcGisMapServerMixin, LegendViewBase):
bottom_image.paste(full_imag... | Fixed bug with ordering of legend labels relative to legend image for stretched renderer | py |
diff --git a/workshift/models.py b/workshift/models.py
index <HASH>..<HASH> 100644
--- a/workshift/models.py
+++ b/workshift/models.py
@@ -49,9 +49,9 @@ class Semester(models.Model):
blank=True,
help_text="Workshift rate for this semester.",
)
- self_sign_out = models.BooleanField(
+ self_sign_off = models.Boo... | Renamed self_sign_out to self_sign_off | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,8 +21,8 @@ setup(
author="UW-IT AXDD",
author_email="aca-it@uw.edu",
include_package_data=True,
- install_requires=['UW-RestClients-Core>0.8,<1.0',
- 'UW-RestClients-PWS<1.0',
+ in... | update restclient, pws version | py |
diff --git a/gruvi/endpoints.py b/gruvi/endpoints.py
index <HASH>..<HASH> 100644
--- a/gruvi/endpoints.py
+++ b/gruvi/endpoints.py
@@ -372,9 +372,6 @@ class Server(Endpoint):
callback = functools.partial(self._on_new_connection, ssl, ssl_args)
handle.listen(callback, backlog)
addr... | Server: no need to work around pyuv #<I> anymore | py |
diff --git a/iota/commands/extended/send_trytes.py b/iota/commands/extended/send_trytes.py
index <HASH>..<HASH> 100644
--- a/iota/commands/extended/send_trytes.py
+++ b/iota/commands/extended/send_trytes.py
@@ -2,7 +2,7 @@
from __future__ import absolute_import, division, print_function, \
unicode_literals
-from ... | Added missing import for type hint. | py |
diff --git a/svg/charts/graph.py b/svg/charts/graph.py
index <HASH>..<HASH> 100644
--- a/svg/charts/graph.py
+++ b/svg/charts/graph.py
@@ -586,12 +586,14 @@ class Graph(object):
return
styles = self.parse_css()
- for node in xpath.Evaluate('//*[@class]', self.root):
- cl = node.getAttribute('class')
+ for ... | Updated Graph.render_inline_styles, correcting errors such that now tests pass. | py |
diff --git a/everest/missions/k2/k2.py b/everest/missions/k2/k2.py
index <HASH>..<HASH> 100755
--- a/everest/missions/k2/k2.py
+++ b/everest/missions/k2/k2.py
@@ -446,9 +446,8 @@ def GetData(EPIC, season = None, cadence = 'lc', clobber = False, delete_raw = F
elif (i-2 >= 0) and aperture[i-2,j] == 1:
... | Extended saturated columns to conserve flux; working awesomely | py |
diff --git a/doc2dash/parsers/sphinx/parser.py b/doc2dash/parsers/sphinx/parser.py
index <HASH>..<HASH> 100644
--- a/doc2dash/parsers/sphinx/parser.py
+++ b/doc2dash/parsers/sphinx/parser.py
@@ -91,8 +91,8 @@ def _get_type(text):
_IN_MODULE = '_in_module'
TYPE_MAPPING = [
- (re.compile(r'(.*)\(\S+ method\)$'... | Don't collect () as part of func and method names Complying with dash's default style. | py |
diff --git a/src/anyconfig/processors.py b/src/anyconfig/processors.py
index <HASH>..<HASH> 100644
--- a/src/anyconfig/processors.py
+++ b/src/anyconfig/processors.py
@@ -10,6 +10,9 @@ r"""Abstract processor module.
- Add to abstract processors such like Parsers (loaders and dumpers).
"""
import operator
+import ... | change: ensure anyconfig.processors.load_plugins not raise exceptions Ensure anyconfig.processors.load_plugins not raise exceptions and ignore errors during load of plugins with warnings to protect from broken plugin modules. | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -19,6 +19,7 @@
import os.path
import logging
import collections
+import itertools
import operator
import nump... | Avoided zmq for few events [skip hazardlib] | py |
diff --git a/progressbar/bar.py b/progressbar/bar.py
index <HASH>..<HASH> 100644
--- a/progressbar/bar.py
+++ b/progressbar/bar.py
@@ -347,7 +347,7 @@ class ProgressBar(StdRedirectMixin, ResizableMixin, ProgressBarBase):
if max_value is None:
try:
self.max_value = len(iterable)
- ... | Added correct exception type to ProgressBar.__call__ | py |
diff --git a/maildir_deduplicate/tests/test_deduplicate.py b/maildir_deduplicate/tests/test_deduplicate.py
index <HASH>..<HASH> 100644
--- a/maildir_deduplicate/tests/test_deduplicate.py
+++ b/maildir_deduplicate/tests/test_deduplicate.py
@@ -290,9 +290,9 @@ class TestDateStrategy(TestDeduplicate):
maildir_path = ... | Fix call to deprecated Arrow time shifting methods. | py |
diff --git a/puput/models.py b/puput/models.py
index <HASH>..<HASH> 100644
--- a/puput/models.py
+++ b/puput/models.py
@@ -140,6 +140,19 @@ class EntryPage(Entry, Page):
parent_page_types = ['puput.BlogPage']
subpage_types = []
+ def get_sitemap_urls(self, request=None):
+ from .urls import get_en... | Duplicate pages #<I>: Define a get_sitemap_urls method to include the year/month/day prefix (#<I>) | py |
diff --git a/abydos/distance/_meta_levenshtein.py b/abydos/distance/_meta_levenshtein.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_meta_levenshtein.py
+++ b/abydos/distance/_meta_levenshtein.py
@@ -240,7 +240,16 @@ class MetaLevenshtein(_Distance):
if src == tar:
return 0.0
- ret... | adjusted normalization if a corpus is available | py |
diff --git a/pysat/_params.py b/pysat/_params.py
index <HASH>..<HASH> 100644
--- a/pysat/_params.py
+++ b/pysat/_params.py
@@ -164,7 +164,7 @@ class Parameters(object):
"""
dir_path = os.path.split(self.file_path)[0]
- out_str = ''.join(('pysat._params.Parameters(path="', dir_path, '")'))
+ ... | BUG: Ensure path string is a raw string | py |
diff --git a/test/file_test.py b/test/file_test.py
index <HASH>..<HASH> 100644
--- a/test/file_test.py
+++ b/test/file_test.py
@@ -177,8 +177,8 @@ class LocalTargetTest(unittest.TestCase, FileSystemTargetTestMixin):
bt=['', 'b', 't'],
plus=['', '+']):
p = itertools.product(rwax, plus,... | next time, I'll read pep8 | py |
diff --git a/src/satellitelink.py b/src/satellitelink.py
index <HASH>..<HASH> 100644
--- a/src/satellitelink.py
+++ b/src/satellitelink.py
@@ -49,6 +49,8 @@ class SatelliteLink(Item):
def create_connexion(self):
self.uri = "PYROLOC://"+self.address+":"+str(self.port)+"/ForArbiter"
self.con = Pyro... | Add a timeout for satellite and scheduler connexions. Sets to 5 seconds. | py |
diff --git a/graphics/canvas.py b/graphics/canvas.py
index <HASH>..<HASH> 100644
--- a/graphics/canvas.py
+++ b/graphics/canvas.py
@@ -9,9 +9,11 @@ from . import shapes
class Canvas:
"""
size = (int width, int height)
+ fullscreen = bool
background = char
center = bool
b... | Updated docstring and repr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,6 @@ setup(name='icetea',
"icetea=icetea_lib:icetea_main"
]
},
- dependency_links=["git+https://github.com/ARMmbed/mbed-flasher@v0.6.3#egg=mbed-flasher"],
install_requires... | Removed dependency link to mbed-flasher since that is no longer needed. (#<I>) | py |
diff --git a/projects/ninux/ninux/wsgi.py b/projects/ninux/ninux/wsgi.py
index <HASH>..<HASH> 100755
--- a/projects/ninux/ninux/wsgi.py
+++ b/projects/ninux/ninux/wsgi.py
@@ -28,7 +28,7 @@ application = get_wsgi_application()
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
# applica... | Enabled code change monitor for development environment (DEBUG = True) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -178,6 +178,22 @@ if install:
path_out = prep(hydpy.docs.rst.__path__[0], filename)
source2target(path_in, path_out)
+ # Make all additional data files available.
+ print_('\nCopy data files:'... | Let `setup.py` copy all contents of subpackage `data` into the site-package folder. | py |
diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1,5 +1,5 @@
import unittest
-import os, shutil, tempfile
+import os, shutil, tempfile, types
import pdb
from fragman.__main__ import ExecutionError, init, stat, add... | make sure command attribute is set properly to avoid mysterious test failures (self will be passed as first argument to command) | py |
diff --git a/nodeconductor/structure/handlers.py b/nodeconductor/structure/handlers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/handlers.py
+++ b/nodeconductor/structure/handlers.py
@@ -59,17 +59,17 @@ def log_project_save(sender, instance, created=False, **kwargs):
if created:
event_logg... | Change event types names NC-<I> | py |
diff --git a/test/test_mail_v2.py b/test/test_mail_v2.py
index <HASH>..<HASH> 100644
--- a/test/test_mail_v2.py
+++ b/test/test_mail_v2.py
@@ -98,7 +98,10 @@ class TestSendGrid(unittest.TestCase):
}
'''))
- self.assertEqual(url, test_url)
+ try:
+ self.asser... | We don't care about the order of the result, only that they match. | py |
diff --git a/woven/project.py b/woven/project.py
index <HASH>..<HASH> 100644
--- a/woven/project.py
+++ b/woven/project.py
@@ -74,7 +74,7 @@ def deploy_project():
if env.verbosity:
print env.host,"DEPLOYING project", env.project_fullname
#Exclude a few things that we don't want deployed as part of th... | deploy_project now excludes local_settings | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -1433,16 +1433,16 @@ def _pkl_finder_objectinfo(objectinfo,
if ((300.0 - annotatex) > 50.0):
offx = annota... | lcproc: add neighbor stuff to parallel_cp workers and driver | py |
diff --git a/pifpaf/drivers/__init__.py b/pifpaf/drivers/__init__.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/__init__.py
+++ b/pifpaf/drivers/__init__.py
@@ -154,9 +154,9 @@ class Driver(fixtures.Fixture):
stdout_fd = subprocess.DEVNULL
if stdin:
- stdout_fd = subprocess.PIPE... | fix: typo in stdout handling | py |
diff --git a/django_q/models.py b/django_q/models.py
index <HASH>..<HASH> 100644
--- a/django_q/models.py
+++ b/django_q/models.py
@@ -141,6 +141,7 @@ class Schedule(models.Model):
return self.func
success.boolean = True
+ last_run.allow_tags = True
class Meta:
app_label = 'django_q' | fixed regression of task link in schedule admin | py |
diff --git a/andes/plot.py b/andes/plot.py
index <HASH>..<HASH> 100644
--- a/andes/plot.py
+++ b/andes/plot.py
@@ -717,6 +717,7 @@ def set_latex(enable=True):
if has_dvipng and enable:
mpl.rc('text', usetex=True)
+ logger.info('Using LaTeX for rendering. If it takes too long, use option `-d` to d... | Added info for LaTeX rendering | py |
diff --git a/src/MQTTLibrary/version.py b/src/MQTTLibrary/version.py
index <HASH>..<HASH> 100644
--- a/src/MQTTLibrary/version.py
+++ b/src/MQTTLibrary/version.py
@@ -1 +1 @@
-VERSION = '0.1.0.dev1'
+VERSION = '0.2.0.dev1' | Update version to publish to pypi | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
## This file is part of Invenio.
-## Copyright (C) 2011, 2012, 2013, 2014 CERN.
+## Copyright (C) 2011, 2012, 2013, 2014, 2015 CERN.
##
## Invenio is free software; you can redis... | oauthclient: local account discovery improvement * Uses userEXT table to do a lookup of the external identifier in order to find the local account corresponding to the user that logs in using oauth. (closes #<I>) | py |
diff --git a/lib/svtplay_dl/utils/output.py b/lib/svtplay_dl/utils/output.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/utils/output.py
+++ b/lib/svtplay_dl/utils/output.py
@@ -135,10 +135,10 @@ def formatname(output, config, extension):
if key == "title" and output[key]:
name = name.replace... | output.formatname: this should be ints | py |
diff --git a/openquake/hazardlib/nrml.py b/openquake/hazardlib/nrml.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/nrml.py
+++ b/openquake/hazardlib/nrml.py
@@ -74,13 +74,12 @@ supplemented by a dictionary of validators.
import io
import re
import sys
-import logging
import operator
import collections.ab... | Removed unused imports [skip CI] | py |
diff --git a/salt/modules/cmd.py b/salt/modules/cmd.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmd.py
+++ b/salt/modules/cmd.py
@@ -127,7 +127,7 @@ def has_exec(cmd):
return True
return False
-def exec_code(lang, code):
+def exec_code(lang, code, cwd=DEFAULT_CWD):
'''
Pass in two st... | Fixed two syntax issues with cmd.exec_code | py |
diff --git a/pycbc/workflow/jobsetup.py b/pycbc/workflow/jobsetup.py
index <HASH>..<HASH> 100644
--- a/pycbc/workflow/jobsetup.py
+++ b/pycbc/workflow/jobsetup.py
@@ -635,6 +635,7 @@ class PyCBCInspiralExecutable(Executable):
constant_psd_segs = int(self.get_opt('psd-recalculate-segments'))
if constan... | use min analysis segs when constant segs not given in inspiral job | py |
diff --git a/tests/unit/test_ticketed_features.py b/tests/unit/test_ticketed_features.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_ticketed_features.py
+++ b/tests/unit/test_ticketed_features.py
@@ -869,7 +869,10 @@ def test_api_to_allow_custom_diff_and_output_stream_1583(capsys, tmpdir):
assert not error
... | Update test_ticketed_features.py Update test to be OS newline agnostic for diff | py |
diff --git a/nanoplot/NanoPlot.py b/nanoplot/NanoPlot.py
index <HASH>..<HASH> 100755
--- a/nanoplot/NanoPlot.py
+++ b/nanoplot/NanoPlot.py
@@ -76,6 +76,7 @@ def main():
plots.extend(
make_plots(dfbarc, settings)
)
+ settings["path"] = path.join(args.outd... | reset path after processing all barcodes | py |
diff --git a/wright/stage/c.py b/wright/stage/c.py
index <HASH>..<HASH> 100644
--- a/wright/stage/c.py
+++ b/wright/stage/c.py
@@ -59,10 +59,12 @@ int main() {
}
'''
- def __call__(self, name, args=()):
+ def __call__(self, name, headers=()):
source = self.source % (name,)
+ for header in head... | c: pass headers in CheckDefine | py |
diff --git a/datasette/utils.py b/datasette/utils.py
index <HASH>..<HASH> 100644
--- a/datasette/utils.py
+++ b/datasette/utils.py
@@ -221,8 +221,11 @@ def detect_fts_sql(table):
return r'''
select name from sqlite_master
where rootpage = 0
- and sql like '%VIRTUAL TABLE%USING FTS%... | ?_search=x now works directly against fts virtual table Closes #<I> | py |
diff --git a/teneto/neuroimagingtools/fmriutils.py b/teneto/neuroimagingtools/fmriutils.py
index <HASH>..<HASH> 100644
--- a/teneto/neuroimagingtools/fmriutils.py
+++ b/teneto/neuroimagingtools/fmriutils.py
@@ -67,7 +67,7 @@ def make_parcellation(data_path, atlas, template='MNI152NLin2009cAsym', atlas_de
data = re... | update extension in make_parcellation | py |
diff --git a/lp.py b/lp.py
index <HASH>..<HASH> 100644
--- a/lp.py
+++ b/lp.py
@@ -89,7 +89,7 @@ class TokenStreamer(object):
@staticmethod
def tokenize(line):
- token_iter = (m.group(0) for m in re.finditer(r'[-+*/(){}=%]|[A-Za-z]+|\d+', line))
+ token_iter = (m.group(0) for m in re.finditer(... | Fixed regex to support alphanumeric variable names. | py |
diff --git a/charmhelpers/contrib/hahelpers/cluster.py b/charmhelpers/contrib/hahelpers/cluster.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/hahelpers/cluster.py
+++ b/charmhelpers/contrib/hahelpers/cluster.py
@@ -12,11 +12,13 @@ import os
from socket import gethostname as get_unit_hostname
from charmh... | Fix log vs juju_log usage. | py |
diff --git a/pyemu/utils/helpers.py b/pyemu/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/helpers.py
+++ b/pyemu/utils/helpers.py
@@ -4098,7 +4098,7 @@ class PstFrom(object):
self.logger.statement("all done")
-
+
def setup_mult_dirs(self): | a little more on the refactor | py |
diff --git a/spacy/language.py b/spacy/language.py
index <HASH>..<HASH> 100644
--- a/spacy/language.py
+++ b/spacy/language.py
@@ -1,4 +1,5 @@
-from typing import Optional, Any, Dict, Callable, Iterable, Union, List, Pattern
+from typing import Iterator, Optional, Any, Dict, Callable, Iterable, TypeVar
+from typing imp... | Add the right return type for Language.pipe and an overload for the as_tuples case (#<I>) * Add the right return type for Language.pipe and an overload for the as_tuples version * Reformat, tidy up | py |
diff --git a/billy/bin/update.py b/billy/bin/update.py
index <HASH>..<HASH> 100755
--- a/billy/bin/update.py
+++ b/billy/bin/update.py
@@ -306,7 +306,7 @@ def main():
args.types.append('events')
if 'speeches' in metadata['feature_flags']:
- args.types.append('events')
+ ... | typo - events --> speeches | py |
diff --git a/salt/cli/salt.py b/salt/cli/salt.py
index <HASH>..<HASH> 100644
--- a/salt/cli/salt.py
+++ b/salt/cli/salt.py
@@ -253,6 +253,8 @@ class SaltCMD(parsers.SaltCMDOptionParser):
not_connected_minions = []
for each_minion in ret:
minion_ret = ret[each_minion]
+ if isins... | fix salt --summary to count not responding minions correctly (#<I>) In case a minion is not responding a dict is returned instead of a string. | py |
diff --git a/dipper/config.py b/dipper/config.py
index <HASH>..<HASH> 100644
--- a/dipper/config.py
+++ b/dipper/config.py
@@ -12,16 +12,17 @@ conf = {}
'''
Load the configuration file 'conf.json', if it exists.
it isn't always required, but may be for some sources.
+ conf.json may contain sensitive info ... | make what 'config' is specific in comments | py |
diff --git a/treebeard/templatetags/admin_tree.py b/treebeard/templatetags/admin_tree.py
index <HASH>..<HASH> 100644
--- a/treebeard/templatetags/admin_tree.py
+++ b/treebeard/templatetags/admin_tree.py
@@ -12,7 +12,10 @@ from django.db import models
from django.conf import settings
from django.contrib.admin.template... | Fixed ImportError in current Django `master` because `django.contrib.admin.util` became `django.contrib.admin.utils` | py |
diff --git a/spyder/plugins/editor/widgets/base.py b/spyder/plugins/editor/widgets/base.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/base.py
+++ b/spyder/plugins/editor/widgets/base.py
@@ -43,7 +43,7 @@ if is_dark_interface():
MAIN_BG_COLOR = '#19232D'
MAIN_DEFAULT_FG_COLOR = '#ffffff'
... | Internal console: Change color of traceback links in dark mode | py |
diff --git a/dev/prepare-distribution.py b/dev/prepare-distribution.py
index <HASH>..<HASH> 100755
--- a/dev/prepare-distribution.py
+++ b/dev/prepare-distribution.py
@@ -58,7 +58,7 @@ def main():
# Create virtualenv.
subprocess.check_call(
- ["virtualenv", "--python", base_python_path, v... | Adjusted prepare-distribution.py. | py |
diff --git a/rows/utils.py b/rows/utils.py
index <HASH>..<HASH> 100644
--- a/rows/utils.py
+++ b/rows/utils.py
@@ -143,6 +143,12 @@ class ProgressBar:
)
self.started = False
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, exc_value, traceback):
+ self.close(... | Make CsvLazyDictWriter and ProgressBar context managers | py |
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/element.py
+++ b/holoviews/plotting/mpl/element.py
@@ -174,9 +174,6 @@ class ElementPlot(GenericElementPlot, MPLPlot):
if dimensions:
self._se... | Set matplotlib axis ranges after ticks | py |
diff --git a/monolithe/generators/sdk/cli.py b/monolithe/generators/sdk/cli.py
index <HASH>..<HASH> 100755
--- a/monolithe/generators/sdk/cli.py
+++ b/monolithe/generators/sdk/cli.py
@@ -76,8 +76,7 @@ def main(argv=sys.argv):
metavar="branches",
help="The branches of th... | -b is not required for folder generation | py |
diff --git a/programs/pmag_gui.py b/programs/pmag_gui.py
index <HASH>..<HASH> 100755
--- a/programs/pmag_gui.py
+++ b/programs/pmag_gui.py
@@ -233,7 +233,7 @@ class MagMainFrame(wx.Frame):
bSizer2.AddSpacer(20)
#---sizer 3 ----
- bSizer3 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY,... | clarify wording about uploads (creates a MagIC file, does not yet directly connect to database) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,7 @@ setup(
, author = "Stephen Moore"
, author_email = "delfick755@gmail.com"
, description = "Python library to discover commit times of all files under a git repository"
+ , long_description = op... | Show readme in pypi | py |
diff --git a/tests/risk_job_unittest.py b/tests/risk_job_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/risk_job_unittest.py
+++ b/tests/risk_job_unittest.py
@@ -17,6 +17,7 @@
# version 3 along with OpenQuake. If not, see
# <http://www.gnu.org/licenses/lgpl-3.0.txt> for a copy of the LGPLv3 License.
+import n... | using allclose to test AlmostEquality | py |
diff --git a/tests/test_get.py b/tests/test_get.py
index <HASH>..<HASH> 100644
--- a/tests/test_get.py
+++ b/tests/test_get.py
@@ -99,14 +99,8 @@ class GetTest(unittest.TestCase):
self.assertEqual(o['get'], qs)
def test_timeout(self):
- try:
- r = None
+ with self.assertRaises(s... | test timeout: assertRaises | py |
diff --git a/docker/api/service.py b/docker/api/service.py
index <HASH>..<HASH> 100644
--- a/docker/api/service.py
+++ b/docker/api/service.py
@@ -197,7 +197,8 @@ class ServiceApiMixin(object):
into the service inspect output.
Returns:
- ``True`` if successful.
+ (dict)... | Fix incorrect return info for inspect_service | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.