diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/organization.py b/tests/organization.py
index <HASH>..<HASH> 100644
--- a/tests/organization.py
+++ b/tests/organization.py
@@ -251,7 +251,30 @@ class organization(Spec):
eq_(changelog[rel], issues)
def plus_annotations_let_old_lines_continue_getting_released(self):
- skip(... | First failing test, not requiring changeup of 'line' stuff yet | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,7 @@ setup(
author_email="liris.pp@gmail.com",
license="LGPL",
url="https://github.com/websocket-client/websocket-client.git",
+ python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
cla... | Add python_requires to help pip | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ class BuildExt(build_ext):
extension.extra_compile_args.extend(config['compiler']['CFLAGS'].split())
extension.extra_link_args.extend(config['compiler']['LIBS'].split())
if... | Disable optimisation when building for coverage This should make the coverage reports more accurate. | py |
diff --git a/src/arcrest/security/security.py b/src/arcrest/security/security.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/security/security.py
+++ b/src/arcrest/security/security.py
@@ -391,6 +391,8 @@ class AGSTokenSecurityHandler(abstract.BaseSecurityHandler):
_proxy_url = None
_proxy_port = None
... | Added referer_url to agssecurity handler | py |
diff --git a/src/REST/__init__.py b/src/REST/__init__.py
index <HASH>..<HASH> 100644
--- a/src/REST/__init__.py
+++ b/src/REST/__init__.py
@@ -8,7 +8,7 @@ from robot.api import logger
from .keywords import Keywords
-__version__ = '1.0.0.dev11'
+__version__ = '1.0.0b1'
class REST(Keywords): | Set version to '<I>b1' | py |
diff --git a/beetle/builder.py b/beetle/builder.py
index <HASH>..<HASH> 100644
--- a/beetle/builder.py
+++ b/beetle/builder.py
@@ -57,9 +57,11 @@ def build_destination(page, folder):
else:
dest_template = '{folder}/{path}'
- if not page['url'].endswith('.html'):
- # Handle the case where the u... | Handling pretty urls better. | py |
diff --git a/src/run.py b/src/run.py
index <HASH>..<HASH> 100644
--- a/src/run.py
+++ b/src/run.py
@@ -59,7 +59,8 @@ def run():
raise DirtyRepoException("Changes to the index or working tree."
"Commit them first .")
- story_fold_cross_validation()
+ train("na", "fbank_... | Retraining our best model without the bracket bug. | py |
diff --git a/axiom/userbase.py b/axiom/userbase.py
index <HASH>..<HASH> 100644
--- a/axiom/userbase.py
+++ b/axiom/userbase.py
@@ -33,6 +33,11 @@ class Preauthenticated(object):
def __init__(self, username):
self.username = username
+ def checkPassword(self, password):
+ # XXX should we really... | Fix SIP unit test failures. Remove all remaining references to atop. Add pyflakes to .pth file for combinator. | py |
diff --git a/astrocats/catalog/catalog.py b/astrocats/catalog/catalog.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/catalog.py
+++ b/astrocats/catalog/catalog.py
@@ -487,14 +487,18 @@ class Catalog:
"""Perform a 'git clone' for each data repository that doesnt exist.
"""
all_repos = ... | ENH: support depth 0 clone to save disk space for CI | py |
diff --git a/gwpy/data/array.py b/gwpy/data/array.py
index <HASH>..<HASH> 100644
--- a/gwpy/data/array.py
+++ b/gwpy/data/array.py
@@ -84,6 +84,9 @@ class Array(Quantity):
name=None, epoch=None, channel=None):
"""Define a new `Array`, potentially from an existing one
"""
+ if d... | Array.__new__: use dtype of incoming data by default - if dtype=None is given, use value.dtype so that astropy doesn't force it into a float<I> | py |
diff --git a/gaspar/producers.py b/gaspar/producers.py
index <HASH>..<HASH> 100644
--- a/gaspar/producers.py
+++ b/gaspar/producers.py
@@ -8,7 +8,6 @@ import struct
from socket import error
from uuid import uuid4
-import msgpack
import eventlet
from multiprocessing import Process, cpu_count | do not import msgpack as it's not used and not a dep of gaspar (yet?) | py |
diff --git a/tests/tests/test_cluster.py b/tests/tests/test_cluster.py
index <HASH>..<HASH> 100644
--- a/tests/tests/test_cluster.py
+++ b/tests/tests/test_cluster.py
@@ -356,7 +356,7 @@ class ClusterTest(TestCase):
# queried instance is more specific
self.assertEqual(
- list(beatles.memb... | Fix a couple of references to shared chefs/restuarants | py |
diff --git a/lexicon/providers/yandex.py b/lexicon/providers/yandex.py
index <HASH>..<HASH> 100644
--- a/lexicon/providers/yandex.py
+++ b/lexicon/providers/yandex.py
@@ -72,11 +72,22 @@ class Provider(BaseProvider):
next_url = None
for record in payload["records"]:
+ if r... | Fix Yandex provider (SRV, MX qtypes) (#<I>) | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -29,9 +29,11 @@ def main():
if args.output:
output.generateHierarchy(args.output)
+ document.fetchImages(dirname = args.output)
content.OPSContent(args.input, args.output, document.front,
... | Main.py has been modified to produce a new workflow in document creation | py |
diff --git a/salt/modules/rabbitmq.py b/salt/modules/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rabbitmq.py
+++ b/salt/modules/rabbitmq.py
@@ -115,11 +115,11 @@ def add_user(name, password=None, runas=None):
salt '*' rabbitmq.add_user rabbit_user password
'''
- clear_password = False
... | rabbitmq.add_user bugfix: local var & called external func have same name | py |
diff --git a/django_q/__init__.py b/django_q/__init__.py
index <HASH>..<HASH> 100644
--- a/django_q/__init__.py
+++ b/django_q/__init__.py
@@ -1,9 +1,9 @@
-import os
-import sys
+# import os
+# import sys
import django
-myPath = os.path.dirname(os.path.abspath(__file__))
-sys.path.insert(0, myPath)
+# myPath = os.pa... | Change path location of django q | py |
diff --git a/cyphi/compute.py b/cyphi/compute.py
index <HASH>..<HASH> 100644
--- a/cyphi/compute.py
+++ b/cyphi/compute.py
@@ -226,9 +226,7 @@ def _evaluate_partition(subsystem, partition, unpartitioned_constellation):
subsystem=subsystem)
# Choose minimal unidirectional cut.
mip = min(forward_mip, b... | Return BigMip regardless of Phi value | py |
diff --git a/smartfile/decorators.py b/smartfile/decorators.py
index <HASH>..<HASH> 100644
--- a/smartfile/decorators.py
+++ b/smartfile/decorators.py
@@ -9,7 +9,7 @@ from smartfile.exceptions import SmartFileConnException
from smartfile.exceptions import SmartFileResponseException
-def throttle_wait(func=None, th... | Limit to time to receive non-throttled response Add a limit to how long the client will continue to attempt a non-throttled response from the server. This prevents a request from never returning or at least not returning in a timely manner assuming the server continues to throttle the client. This could happen if ei... | py |
diff --git a/spinoff/actor/runner.py b/spinoff/actor/runner.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/runner.py
+++ b/spinoff/actor/runner.py
@@ -110,6 +110,7 @@ class Wrapper(Actor):
if self.keep_running:
after(1.0).do(self._do_spawn)
else:
+ log("acto... | Emit an informative message when keeprunning is not set and the actor terminates | py |
diff --git a/sockeye/train.py b/sockeye/train.py
index <HASH>..<HASH> 100644
--- a/sockeye/train.py
+++ b/sockeye/train.py
@@ -176,7 +176,7 @@ def create_checkpoint_decoder(args: argparse.Namespace,
if args.use_cpu or args.decode_and_evaluate_use_cpu:
context = mx.cpu()
elif args.decode_and_evaluate_... | fixed decode-and-evaluate-device-id (#<I>) | py |
diff --git a/openpnm/models/physics/poisson_shape_factors.py b/openpnm/models/physics/poisson_shape_factors.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/physics/poisson_shape_factors.py
+++ b/openpnm/models/physics/poisson_shape_factors.py
@@ -83,6 +83,10 @@ def ball_and_stick(target, pore_area='pore.area',
... | added raise error to poisson SF file | py |
diff --git a/lexicon/discovery.py b/lexicon/discovery.py
index <HASH>..<HASH> 100644
--- a/lexicon/discovery.py
+++ b/lexicon/discovery.py
@@ -43,7 +43,7 @@ def _resolve_requirements(provider, distribution):
# Extra is defined
try:
for requirement in requirements:
- pkg_res... | Fix resolution of dependencies in a regular install of lexicon distribution | py |
diff --git a/porespy/filters/__funcs__.py b/porespy/filters/__funcs__.py
index <HASH>..<HASH> 100644
--- a/porespy/filters/__funcs__.py
+++ b/porespy/filters/__funcs__.py
@@ -94,10 +94,20 @@ def hold_peaks(im, axis=-1):
Parameters
----------
- im : ND-image
- A greyscale image whose peaks are to
+... | added explanations to docstring and automatic conversion to float for a boolean input [ci skip] | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -142,6 +142,9 @@ class BaseCalculator(with_metaclass(abc.ABCMeta)):
"""
Update the current calculation parameters and save e... | Ssetting `hazard_calculation_id` in the job.ini is now possible Former-commit-id: 2a6ce2f9d8e<I>b<I>b<I>fbb0e<I>b8e<I>e<I> | py |
diff --git a/openquake/hazardlib/calc/hazard_curve.py b/openquake/hazardlib/calc/hazard_curve.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/hazard_curve.py
+++ b/openquake/hazardlib/calc/hazard_curve.py
@@ -140,8 +140,9 @@ def pmap_from_trt(sources, src_filter, gsims, param, monitor=Monitor()):
... | Cleanup [skip CI] | py |
diff --git a/dwave/cloud/package_info.py b/dwave/cloud/package_info.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/package_info.py
+++ b/dwave/cloud/package_info.py
@@ -14,7 +14,7 @@
__packagename__ = 'dwave-cloud-client'
__title__ = 'D-Wave Cloud Client'
-__version__ = '0.8.1'
+__version__ = '0.8.2'
__author__ ... | Release <I> Changes since <I>: New Features --- - Support for python <I> (#<I>) Fixes --- - Improve error messages for multipart upload failures (#<I>) - Accept looser file-like for upload (#<I>) | py |
diff --git a/delphi/apps/rest_api/api.py b/delphi/apps/rest_api/api.py
index <HASH>..<HASH> 100644
--- a/delphi/apps/rest_api/api.py
+++ b/delphi/apps/rest_api/api.py
@@ -435,11 +435,11 @@ def createCausemosExperiment(modelID):
print(experiment_type)
'''
- projection_result = G.generate_causemos_projecti... | I have forgotten to save some changes I made to delphi/apps/rest_api/api.py when I was explaining things to Aishwarya. Just committing them. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,13 @@ setup(
author='CJ Carey',
author_email='perimosocordiae@gmail.com',
description='All things graph.',
+ url='http://github.com/perimosocordiae/graphs',
license='MIT',
packages=['graphs'... | Adding install_requires | py |
diff --git a/ftpretty.py b/ftpretty.py
index <HASH>..<HASH> 100644
--- a/ftpretty.py
+++ b/ftpretty.py
@@ -14,16 +14,19 @@
"""
from __future__ import print_function
+import datetime
+import ftplib
import os
import re
-import datetime
+
from ftplib import FTP
+from dateutil import parser
+from compat import buffe... | re-organize imports, and add missing ftplib | py |
diff --git a/tests/test_dtw.py b/tests/test_dtw.py
index <HASH>..<HASH> 100644
--- a/tests/test_dtw.py
+++ b/tests/test_dtw.py
@@ -87,6 +87,13 @@ def test_dtw_incompatible_sigma_mul():
librosa.dtw(X=X, Y=Y, weights_mul=np.arange(10))
+@raises(librosa.ParameterError)
+def test_dtw_incompatible_sigma_diag():
+ ... | dtw test coverage: y longer than x | py |
diff --git a/police_api/crime.py b/police_api/crime.py
index <HASH>..<HASH> 100644
--- a/police_api/crime.py
+++ b/police_api/crime.py
@@ -108,10 +108,11 @@ class Crime(NoLocationCrime):
return self.Outcome(self.api, data)
def _hydrate(self, data):
- data['location'].update({
- 'ty... | Fix AttributeError when hydrating a crime with no location | py |
diff --git a/bcbio/variation/varscan.py b/bcbio/variation/varscan.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/varscan.py
+++ b/bcbio/variation/varscan.py
@@ -3,7 +3,7 @@
http://varscan.sourceforge.net/
"""
import contextlib
-import itertools
+from distuils.version import LooseVersion
import os
import shut... | Require most recent VarScan version. #<I> | py |
diff --git a/py3status/modules/mpris.py b/py3status/modules/mpris.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/mpris.py
+++ b/py3status/modules/mpris.py
@@ -538,6 +538,9 @@ class Py3status:
index = event['index']
button = event['button']
+ if not index:
+ return
+
... | Fix AttributeError when click on mpris without a running player | py |
diff --git a/src/salicml/metrics/finance/operation_code_receipts.py b/src/salicml/metrics/finance/operation_code_receipts.py
index <HASH>..<HASH> 100644
--- a/src/salicml/metrics/finance/operation_code_receipts.py
+++ b/src/salicml/metrics/finance/operation_code_receipts.py
@@ -1,6 +1,7 @@
from salicml.data.query impo... | Grouping itens by receipt id. | py |
diff --git a/test/integration_test.py b/test/integration_test.py
index <HASH>..<HASH> 100644
--- a/test/integration_test.py
+++ b/test/integration_test.py
@@ -59,6 +59,7 @@ class IntegrationTests(BaseIntegrationTest):
def test_integration_default(self):
self._run(private_token=None, **self.default_kwargs)... | Skip curl integration test if pycurl cannot be imported. | py |
diff --git a/src/transformers/configuration_xlnet.py b/src/transformers/configuration_xlnet.py
index <HASH>..<HASH> 100644
--- a/src/transformers/configuration_xlnet.py
+++ b/src/transformers/configuration_xlnet.py
@@ -111,7 +111,11 @@ class XLNetConfig(PretrainedConfig):
end_n_top (:obj:`int`, optional, d... | Improve doc of use_cache (#<I>) * Improve doc of use_cache * Update src/transformers/configuration_xlnet.py | py |
diff --git a/juju/model.py b/juju/model.py
index <HASH>..<HASH> 100644
--- a/juju/model.py
+++ b/juju/model.py
@@ -818,7 +818,7 @@ class Model(object):
)
await app_facade.Deploy([app])
- return [await self._wait_for_new('application', service_name)]
+ return await self.... | If deploying a single app, return the App instead of a list | py |
diff --git a/jf_agent/bb_download.py b/jf_agent/bb_download.py
index <HASH>..<HASH> 100644
--- a/jf_agent/bb_download.py
+++ b/jf_agent/bb_download.py
@@ -178,7 +178,7 @@ def get_default_branch_commits(
except stashy.errors.NotFoundException as e:
print(
- f'WARN: Got ... | Handle case for Bitbucket server where the repo apparently has no default branch | py |
diff --git a/winpty/__init__.py b/winpty/__init__.py
index <HASH>..<HASH> 100644
--- a/winpty/__init__.py
+++ b/winpty/__init__.py
@@ -16,5 +16,5 @@ from .winpty_wrapper import PTY
PTY
PtyProcess
-VERSION_INFO = (0, 4, 1)
+VERSION_INFO = (0, 4, 2, 'dev0')
__version__ = '.'.join(map(str, VERSION_INFO)) | Set release development version to <I>.dev0 | py |
diff --git a/rinoh/backend/pdf/__init__.py b/rinoh/backend/pdf/__init__.py
index <HASH>..<HASH> 100644
--- a/rinoh/backend/pdf/__init__.py
+++ b/rinoh/backend/pdf/__init__.py
@@ -200,12 +200,11 @@ class Canvas(StringIO):
print('{0} {1} {2} rg'.format(r, g, b), file=self)
def stroke(self, line_width=None... | PDF backend: fix two Canvas.stroke() issues 1) don't saving the canvas state; it is managed by the caller 2) do not close the path; this should be handled by a close_path() call | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -343,8 +343,13 @@ def test_parse_joliet_onefile(tmpdir):
iso = pyiso.PyIso()
iso.open(open(str(outfile), 'rb'))
check_joliet_onefile(iso, os.stat(str(outfile)).st_size... | Add joliet onefile round-trip test. | py |
diff --git a/slither/tools/erc_conformance/erc/ercs.py b/slither/tools/erc_conformance/erc/ercs.py
index <HASH>..<HASH> 100644
--- a/slither/tools/erc_conformance/erc/ercs.py
+++ b/slither/tools/erc_conformance/erc/ercs.py
@@ -47,6 +47,7 @@ def _check_signature(erc_function, contract, ret):
return
... | Fix slither-erc when checking state variable as function | py |
diff --git a/tsfresh/feature_selection/significance_tests.py b/tsfresh/feature_selection/significance_tests.py
index <HASH>..<HASH> 100644
--- a/tsfresh/feature_selection/significance_tests.py
+++ b/tsfresh/feature_selection/significance_tests.py
@@ -182,7 +182,7 @@ def target_real_feature_real_test(x, y):
__check... | use asymptotic method to derive kendal tau (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def read(fname):
setup(
name='gittar',
- version='0.1dev',
+ version='0.2dev',
description='The inverse of git archive. Adds a new commit from an archive'
'or the filesystem.'... | Next version will be <I>. | py |
diff --git a/src/beliefs/beliefstate.py b/src/beliefs/beliefstate.py
index <HASH>..<HASH> 100644
--- a/src/beliefs/beliefstate.py
+++ b/src/beliefs/beliefstate.py
@@ -433,9 +433,9 @@ class BeliefState(DictCell):
low = max(1, tlow)
high = min([t+ 1, thigh+1, t-(dlow+1)])
#if low =... | initial branch for representing the anti-members/distractors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ except ImportError:
long_description = 'Tool for parsing Variant Call Format (VCF) files. Works like a lightweight version of PyVCF.'
setup(name='vcf_parser',
- version='1.3.1',
+ version='1.3.2',
... | Bumped version to <I> | py |
diff --git a/djangocms_text_ckeditor/widgets.py b/djangocms_text_ckeditor/widgets.py
index <HASH>..<HASH> 100644
--- a/djangocms_text_ckeditor/widgets.py
+++ b/djangocms_text_ckeditor/widgets.py
@@ -3,6 +3,7 @@ import json
from copy import deepcopy
from django.conf import settings
+from django.core.serializers.json... | Added missing DjangoJSONEncoder to json.dumps | py |
diff --git a/lazy_tags/utils.py b/lazy_tags/utils.py
index <HASH>..<HASH> 100644
--- a/lazy_tags/utils.py
+++ b/lazy_tags/utils.py
@@ -1,4 +1,5 @@
import json
+from collections import OrderedDict
from django.utils import six
@@ -28,7 +29,7 @@ def get_tag_html(tag, args=None, kwargs=None):
kwargs_str = ''
... | Try to fix dictionary sorting for kwargs | py |
diff --git a/pandas/conftest.py b/pandas/conftest.py
index <HASH>..<HASH> 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -126,7 +126,7 @@ def all_arithmetic_operators(request):
# use sorted as dicts in py<3.6 have random order, which xdist doesn't like
_cython_table = sorted(((key, value) for key, value ... | fix for #<I> wrong sort order (#<I>) | py |
diff --git a/pyroSAR/spatial/raster.py b/pyroSAR/spatial/raster.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/spatial/raster.py
+++ b/pyroSAR/spatial/raster.py
@@ -11,13 +11,10 @@ from __future__ import division
import os
import re
import shutil
-import subprocess as sp
from math import sqrt
from time import gmtime... | [spatial.raster] removed redundant import statements | py |
diff --git a/pylds/states.py b/pylds/states.py
index <HASH>..<HASH> 100644
--- a/pylds/states.py
+++ b/pylds/states.py
@@ -137,8 +137,8 @@ class LDSStates(object):
assert is_symmetric(E_xt_xtT)
assert is_symmetric(E_xtp1_xtp1T)
- self.E_emission_stats = (EyyT, EyxT, ExxT, self.T)
- sel... | set expected stats to be arrays | py |
diff --git a/salt/modules/localemod.py b/salt/modules/localemod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/localemod.py
+++ b/salt/modules/localemod.py
@@ -316,7 +316,7 @@ def gen_locale(locale, **kwargs):
append_if_not_found=True
)
- if salt.utils.which('locale-gen') is not None:
+ ... | Remove "is not None" checks salt.utils.which if statements These checks are extraneous as salt.utils.which either returns a path or "None". | py |
diff --git a/tests/test_oauth.py b/tests/test_oauth.py
index <HASH>..<HASH> 100644
--- a/tests/test_oauth.py
+++ b/tests/test_oauth.py
@@ -365,7 +365,6 @@ class TestRequest(unittest.TestCase):
'oauth_consumer_key': "0685bd9184jfhq22",
'oauth_signature_method': "HMAC-SHA1",
'oauth_... | cleaning up this test a bit - oauth_signature is not needed for a base test case | py |
diff --git a/compiler/js.py b/compiler/js.py
index <HASH>..<HASH> 100644
--- a/compiler/js.py
+++ b/compiler/js.py
@@ -356,6 +356,8 @@ class generator(object):
self.used_components.add(name)
self.used_packages.add(package)
self.startup.append("\tqml._context.start(qml.%s)" %name)
+ else:
+ name = package... | rebuilt composite name after package mangling | py |
diff --git a/ceam/modules/opportunistic_screening.py b/ceam/modules/opportunistic_screening.py
index <HASH>..<HASH> 100644
--- a/ceam/modules/opportunistic_screening.py
+++ b/ceam/modules/opportunistic_screening.py
@@ -52,7 +52,7 @@ def _hypertensive_categories(population):
class OpportunisticScreeningModule(Simul... | This is the stupid typo that was throwing off all the results | py |
diff --git a/resync/resource.py b/resync/resource.py
index <HASH>..<HASH> 100644
--- a/resync/resource.py
+++ b/resync/resource.py
@@ -5,6 +5,13 @@ other metadata such as timestamp, length, md5. The lastmod property
provides ISO8601 format string access to the timestamp.
The timestamp is assumed to be stored in UTC... | Fix __repr__ so that it works when extra __slots__ added in subclass | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -115,3 +115,24 @@ npc.avatar["physical"].travel_to("downtown", weight="km")
while lise.tick < 142:
test_advance(lise)
+
+lise.close()
+clear_off()
+# More complex test
+def sickle_cell_test(
+ engine,
+ n_cre... | the beginnings of a new test, natural selection on sickle cell anemia | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='twentyc.database',
- version='0.1.0',
+ version='0.1.1',
author='Twentieth Century',
author_email='code@20c.com',
description='database abstra... | hardcode requirements in setup.py for now | py |
diff --git a/pcef/python/modes/syntax_highlighter.py b/pcef/python/modes/syntax_highlighter.py
index <HASH>..<HASH> 100644
--- a/pcef/python/modes/syntax_highlighter.py
+++ b/pcef/python/modes/syntax_highlighter.py
@@ -291,6 +291,9 @@ class PyHighlighterMode(SyntaxHighlighter, Mode):
state = 0
origina... | Fix highlighting issue with triple quoted string when not used a docstrings | py |
diff --git a/spacy/language.py b/spacy/language.py
index <HASH>..<HASH> 100644
--- a/spacy/language.py
+++ b/spacy/language.py
@@ -334,7 +334,7 @@ class Language(object):
>>> tokens[0].text, tokens[0].head.tag_
('An', 'NN')
"""
- if len(text) >= self.max_length:
+ if len... | Allow input text of length up to max_length, inclusive (#<I>) | py |
diff --git a/schedula/ext/autosummary.py b/schedula/ext/autosummary.py
index <HASH>..<HASH> 100644
--- a/schedula/ext/autosummary.py
+++ b/schedula/ext/autosummary.py
@@ -193,7 +193,12 @@ def setup(app):
# replace callback process_generate_options of 'builder-inited' event.
import sphinx.ext.autosummary as md... | fix(doc), #7: Catch exception for sphinx <I> (listeners are moved in EventManager). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,5 +11,6 @@ setup(
url='https://github.com/ExoticObjects/django-better-filter-widget',
include_package_data=True,
long_description=open('README.md').read(),
+ description='A better filter widget for foreig... | Update setup.py Adding `description` to setup.py to prevent project being listed as UNKNOWN on pypi | py |
diff --git a/anyconfig/backend/yaml_.py b/anyconfig/backend/yaml_.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/yaml_.py
+++ b/anyconfig/backend/yaml_.py
@@ -39,11 +39,13 @@ if SUPPORTED:
@classmethod
def dumps(cls, data, *args, **kwargs):
- return yaml.dump(data, None)
+ ... | convert from internal container repr. to normal dict when dump[s] w/ yaml config loader | py |
diff --git a/pyinfra/modules/pacman.py b/pyinfra/modules/pacman.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/pacman.py
+++ b/pyinfra/modules/pacman.py
@@ -1,5 +1,5 @@
'''
-Manage pacman packages.
+Manage pacman packages. (Arch Linux package manager)
'''
from pyinfra.api import operation
@@ -45,6 +45,16 @@ ... | add pacman example in doc; could not get pacman to update due to gpg key errors | py |
diff --git a/py3status/modules/net_iplist.py b/py3status/modules/net_iplist.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/net_iplist.py
+++ b/py3status/modules/net_iplist.py
@@ -75,8 +75,8 @@ class Py3status:
def post_config_hook(self):
self.iface_re = re.compile(r'\d+: (?P<iface>\w+):')
- ... | Fix regexp to work with peered interfaces | py |
diff --git a/h2o-r/tests/run.py b/h2o-r/tests/run.py
index <HASH>..<HASH> 100755
--- a/h2o-r/tests/run.py
+++ b/h2o-r/tests/run.py
@@ -1593,12 +1593,6 @@ def main(argv):
possible_h2o_jar_parent_dir = next_possible_h2o_jar_parent_dir
- if (h2o_jar is None):
- print("")
- print("ERROR: C... | Tweak check for existence of h2o.jar to tolerate --wipeall when it's not present. | py |
diff --git a/flubber/queue.py b/flubber/queue.py
index <HASH>..<HASH> 100644
--- a/flubber/queue.py
+++ b/flubber/queue.py
@@ -5,19 +5,19 @@ import heapq
from collections import deque
from time import time as _time
+import six
+
from flubber.lock import Semaphore, Condition
__all__ = ['Empty', 'Full', 'Queue', ... | Don't redefine Empty and Full exceptions in queue | py |
diff --git a/spyder/plugins/completion/kite/utils/tests/test_install.py b/spyder/plugins/completion/kite/utils/tests/test_install.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/completion/kite/utils/tests/test_install.py
+++ b/spyder/plugins/completion/kite/utils/tests/test_install.py
@@ -25,8 +25,9 @@ INSTALL_TIM... | Testing: Improve test that verifies Kite installation | py |
diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py
index <HASH>..<HASH> 100755
--- a/src/transformers/modeling_utils.py
+++ b/src/transformers/modeling_utils.py
@@ -1668,9 +1668,9 @@ def apply_chunking_to_forward(
"""
assert len(input_tensors) > 0, "{} has to be a tuple/lis... | Bug fix for modeling utilities function: apply_chunking_to_forward, chunking should be in the chunking dimension, an exception was raised if the complete shape of the inputs was not the same rather than only the chunking dimension (#<I>) | py |
diff --git a/freezegun/api.py b/freezegun/api.py
index <HASH>..<HASH> 100644
--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -351,6 +351,7 @@ class _freeze_time(object):
copyreg.dispatch_table.pop(real_date)
for module, module_attribute, original_value in self.undo_changes:
s... | Improve memory usage: forget about undo_changes after they are undone | py |
diff --git a/generate_migrations.py b/generate_migrations.py
index <HASH>..<HASH> 100755
--- a/generate_migrations.py
+++ b/generate_migrations.py
@@ -17,6 +17,8 @@ import local_settings
# missing or badly-configured settings.
from django.core import management
+from refactor_migrations import refactor
+
def gen... | Refactor migrations after generating to ensure custom user model compatibility. | py |
diff --git a/pystock_crawler/tests/test_loaders.py b/pystock_crawler/tests/test_loaders.py
index <HASH>..<HASH> 100644
--- a/pystock_crawler/tests/test_loaders.py
+++ b/pystock_crawler/tests/test_loaders.py
@@ -98,14 +98,20 @@ class ReportItemLoaderTest(TestCaseBase):
'doc_type': '10-Q',
'peri... | Test AAPL <I> Q3 report | py |
diff --git a/faker/providers/nl_NL/person.py b/faker/providers/nl_NL/person.py
index <HASH>..<HASH> 100644
--- a/faker/providers/nl_NL/person.py
+++ b/faker/providers/nl_NL/person.py
@@ -8,12 +8,10 @@ class Provider(PersonProvider):
'{{first_name_male}} {{last_name}}',
'{{first_name_male}} {{last_name... | Apply Dutch naming convention for married partners | py |
diff --git a/tests/contrib/charmsupport/test_nrpe.py b/tests/contrib/charmsupport/test_nrpe.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/charmsupport/test_nrpe.py
+++ b/tests/contrib/charmsupport/test_nrpe.py
@@ -76,7 +76,7 @@ class NRPETestCase(NRPEBaseTestCase):
"""Test that nagios_servicegroups gets s... | [gnuoy, trivial] Fix unit test for previous commit | py |
diff --git a/sos/report/plugins/mysql.py b/sos/report/plugins/mysql.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/mysql.py
+++ b/sos/report/plugins/mysql.py
@@ -34,10 +34,7 @@ class Mysql(Plugin):
self.add_copy_spec([
self.mysql_cnf,
- # Required for MariaDB under pacemaker ... | [mysql] Capture mysqlrouter config and logs Adds collection of mysqlrouter config and log files to the `mysql` plugin. Closes: #<I> | py |
diff --git a/drivers/python/rethinkdb/net.py b/drivers/python/rethinkdb/net.py
index <HASH>..<HASH> 100644
--- a/drivers/python/rethinkdb/net.py
+++ b/drivers/python/rethinkdb/net.py
@@ -70,6 +70,7 @@ class Cursor(object):
self.outstanding_requests = 0
self.end_flag = False
self.connection_cl... | Implement Python2 and 3 `next` methods on cursors. | py |
diff --git a/Template.py b/Template.py
index <HASH>..<HASH> 100755
--- a/Template.py
+++ b/Template.py
@@ -22,11 +22,17 @@ from WeatherStation import pressure_trend_text, wind_dir_text
def Template(hourly_data, daily_data, template_file, output_file):
def jump(idx, count):
- while idx != None and count >... | Now ensures "jump" can't go outside limits of stored data | py |
diff --git a/salt/modules/smartos_imgadm.py b/salt/modules/smartos_imgadm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/smartos_imgadm.py
+++ b/salt/modules/smartos_imgadm.py
@@ -56,7 +56,7 @@ def _parse_image_meta(image=None, detail=False):
if image and 'Error' in image:
ret = image
- elif image... | imgadm module should deal with invalid images better | py |
diff --git a/iktomi/forms/widgets.py b/iktomi/forms/widgets.py
index <HASH>..<HASH> 100644
--- a/iktomi/forms/widgets.py
+++ b/iktomi/forms/widgets.py
@@ -192,30 +192,11 @@ class FieldListWidget(AggregateWidget):
template = 'widgets/fieldlist'
- def get_media(self):
- media = Widget.get_media(self)
-... | deleting get_media methods; deleting unused render_template_field method from FieldList widget | py |
diff --git a/import-js.py b/import-js.py
index <HASH>..<HASH> 100644
--- a/import-js.py
+++ b/import-js.py
@@ -75,8 +75,11 @@ class ImportJsCommand(sublime_plugin.TextCommand):
if(meta.get('messages')):
sublime.status_message(meta.get('messages'))
if(meta.get('ask_for_selections')):
- reru... | Prevent infinite reruns when no selection is made The way we rerun the import_js command if you are asked to make selections would result in an infinite loop if you escaped out of the selection list. I'm adding a guard so that reruns only happen when there's at least one selection. | py |
diff --git a/maga.py b/maga.py
index <HASH>..<HASH> 100644
--- a/maga.py
+++ b/maga.py
@@ -69,7 +69,11 @@ class Maga(asyncio.DatagramProtocol):
transport, _ = self.loop.run_until_complete(coro)
for signame in ('SIGINT', 'SIGTERM'):
- self.loop.add_signal_handler(getattr(signal, signame), ... | Don't fail when signals are not implemented. Prevent Maga from failing during initialization on Windows, as signals are not implemented on that platform. | py |
diff --git a/rtv/page.py b/rtv/page.py
index <HASH>..<HASH> 100644
--- a/rtv/page.py
+++ b/rtv/page.py
@@ -412,22 +412,6 @@ class BasePage(object):
s.catch = False
self.refresh_content()
- @BaseController.register('s')
- def get_subscriptions(self):
- """
- Displays subsc... | Remove old method (moved in SubredditController) | py |
diff --git a/umi_tools/dedup.py b/umi_tools/dedup.py
index <HASH>..<HASH> 100644
--- a/umi_tools/dedup.py
+++ b/umi_tools/dedup.py
@@ -1033,7 +1033,8 @@ def main(argv=None):
post_cluster_stats_null = []
topology_counts = collections.Counter()
node_counts = collections.Counter()
- read_... | ensures umi_separator option is used when generating stats as well | py |
diff --git a/demos/chat/chatdemo.py b/demos/chat/chatdemo.py
index <HASH>..<HASH> 100755
--- a/demos/chat/chatdemo.py
+++ b/demos/chat/chatdemo.py
@@ -49,7 +49,7 @@ class MessageBuffer(object):
break
new_count += 1
if new_count:
- result_future.set_resul... | Fix a dangling reference to callback in chatdemo.py. | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -177,6 +177,16 @@ class path(unicode):
"""
return cls
+ @classmethod
+ def _always_unicode(cls, path):
+ """
+ Ensure the path as retrieved from a Python API, such as os.listdir,
+ is... | Add method for ensuring a path is always unicode. | py |
diff --git a/publ/rendering.py b/publ/rendering.py
index <HASH>..<HASH> 100644
--- a/publ/rendering.py
+++ b/publ/rendering.py
@@ -392,7 +392,7 @@ def render_entry(entry_id, slug_text='', category=''):
record = model.Entry.get(id=entry_id)
# see if the file still exists
- if not os.path.isfile(record.fil... | Don't try to check the file path on a not-found record Fixes #<I> | py |
diff --git a/odinweb/decorators.py b/odinweb/decorators.py
index <HASH>..<HASH> 100644
--- a/odinweb/decorators.py
+++ b/odinweb/decorators.py
@@ -192,14 +192,14 @@ class Operation(object):
"""
return dict_filter(
operationId=self.operation_id,
- description=(self.callback.__do... | Simplified generation using or None and ensure list is returned instead of a tags | py |
diff --git a/swift/storage.py b/swift/storage.py
index <HASH>..<HASH> 100644
--- a/swift/storage.py
+++ b/swift/storage.py
@@ -1,5 +1,6 @@
from StringIO import StringIO
import re
+import mimetypes
import os
import posixpath
import urlparse
@@ -133,9 +134,14 @@ class SwiftStorage(Storage):
if self.name_pre... | Fixes for collectstatic - guess mimetype so JS and CSS files are not served with "text/plain" which breaks in IE - get_available_name now simply returns the name as we do want the file to be over written | py |
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/engine.py
+++ b/LiSE/LiSE/engine.py
@@ -618,8 +618,6 @@ class Engine(AbstractEngine, gORM):
if not os.path.isdir(prefix):
raise FileExistsError("Need a directory")
self.keep_rules_journal = ... | Delete some old profiling gunk | py |
diff --git a/mpop/saturn/tasklist.py b/mpop/saturn/tasklist.py
index <HASH>..<HASH> 100644
--- a/mpop/saturn/tasklist.py
+++ b/mpop/saturn/tasklist.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (c) 2010.
+# Copyright (c) 2010, 2012.
# SMHI,
# Folkborgsvägen 1,
@@ -69,6 +69,8 @@ cla... | RUN: add possibility to get prerequisites for a list of areas. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,8 +25,7 @@ setup(
license='Mozilla Public License 2.0',
classifiers=[
'Development Status :: 4 - Beta',
- 'License :: OSI Approved :: GNU General Public License (GPL)',
- 'Programming Langu... | fix some bad refs in setup.py | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -2183,9 +2183,9 @@ class Cmd(cmd.Cmd):
if index == cmd_index:
# Complete token against topics and visible commands
- topics = self.get_help_topics()
- visible_commands = self.get_visib... | Forgot that topic and command names can overlap | py |
diff --git a/dosagelib/plugins/h.py b/dosagelib/plugins/h.py
index <HASH>..<HASH> 100644
--- a/dosagelib/plugins/h.py
+++ b/dosagelib/plugins/h.py
@@ -11,7 +11,7 @@ class HagarTheHorrible(_BasicScraper):
stripUrl = 'http://www.hagardunor.net/comicstrips_us.php?serietype=9&colortype=1&serieno=%s'
firstStripUrl... | Fix hagarthehorrible | py |
diff --git a/werkzeug/serving.py b/werkzeug/serving.py
index <HASH>..<HASH> 100644
--- a/werkzeug/serving.py
+++ b/werkzeug/serving.py
@@ -45,7 +45,7 @@ import signal
try:
import termcolor
except ImportError:
- pass
+ termcolor = None
try:
import ssl | Correctly handle termcolor not being imported | py |
diff --git a/talkey/engines/mary.py b/talkey/engines/mary.py
index <HASH>..<HASH> 100644
--- a/talkey/engines/mary.py
+++ b/talkey/engines/mary.py
@@ -66,7 +66,7 @@ class MaryTTS(AbstractTTSEngine):
return {}
def _get_languages(self):
- res = requests.get(self._makeurl('voices')).text
+ re... | Added timeout to mary transport | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -76,6 +76,6 @@ setup(name = "VESPA",
],
install_requires=['pandas>=0.13','simpledist>=0.1.11', 'emcee',
'isochrones>=0.8.1', 'acor', 'numba>=0.20', 'batman-package>=2.1',
- ... | removed silly cython requirement in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,11 @@ long_description="""Simple module to parse ISO 8601 dates
This module parses the most common forms of ISO 8601 date strings (e.g.
2007-01-14T20:34:22+00:00) into datetime objects.
+>>> import iso8601
+>>> iso... | Added example to package long description. | py |
diff --git a/theanets/main.py b/theanets/main.py
index <HASH>..<HASH> 100644
--- a/theanets/main.py
+++ b/theanets/main.py
@@ -175,13 +175,13 @@ class Experiment:
factory = trainer.Scipy
elif factory.lower().startswith('l'):
if len(args) == 1:
- # use NA... | Use rmsprop by default in layerwise (pre-)trainers. | py |
diff --git a/panoply/datasource.py b/panoply/datasource.py
index <HASH>..<HASH> 100644
--- a/panoply/datasource.py
+++ b/panoply/datasource.py
@@ -121,8 +121,6 @@ def validate_token(refresh_url, exceptions=(), callback=None,
else:
_callback = getattr(self, callback)... | Moved second function call out of try-except block | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,13 +36,13 @@ setup(
]
},
install_requires=[
- "fonttools>=3.9.0",
+ "fonttools>=3.9.1",
"cu2qu>=1.1.1",
- "glyphsLib>=1.5.2",
- "ufo2ft>=0.4.0",
- "MutatorMath... | [setup.py] update minimum requirements to latest versions - fonttools from <I> to <I> - glyphsLib from <I> to <I> - ufo2ft from <I> to <I> - MutatorMath from <I> to <I> - defcon from <I> to <I> - booleanOperations from <I> to <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.