diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/misc/log-analytics/tests/tests.py b/misc/log-analytics/tests/tests.py
index <HASH>..<HASH> 100644
--- a/misc/log-analytics/tests/tests.py
+++ b/misc/log-analytics/tests/tests.py
@@ -30,6 +30,8 @@ def add_multiple_spaces_to_file(path):
contents = '"'.join(contents)
import_logs.logging.debug(conten... | Add sanity check to python tests for log importer for testing multiple spaces are parsed. | py |
diff --git a/pythonforandroid/recipes/pygame_bootstrap_components/__init__.py b/pythonforandroid/recipes/pygame_bootstrap_components/__init__.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recipes/pygame_bootstrap_components/__init__.py
+++ b/pythonforandroid/recipes/pygame_bootstrap_components/__init__.py
@@ -1... | cosmetic fixed minor logging in pygame bootstrap | py |
diff --git a/django_distill/renderer.py b/django_distill/renderer.py
index <HASH>..<HASH> 100644
--- a/django_distill/renderer.py
+++ b/django_distill/renderer.py
@@ -3,6 +3,7 @@
import os
import sys
import types
+import errno
from shutil import copy2
from django.utils import (six, translation)
@@ -152,9 +153,13... | fix for py2 compatability | py |
diff --git a/spyderlib/widgets/shell.py b/spyderlib/widgets/shell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/shell.py
+++ b/spyderlib/widgets/shell.py
@@ -724,7 +724,11 @@ class PythonShellWidget(ShellBaseWidget):
def copy_without_prompts(self):
"""Copy text to clipboard without prompts"""
... | Console/"Copy without prompts": improved feature (fixed some bugs) | py |
diff --git a/bumpversion/cli.py b/bumpversion/cli.py
index <HASH>..<HASH> 100644
--- a/bumpversion/cli.py
+++ b/bumpversion/cli.py
@@ -111,16 +111,7 @@ def main(original_args=None):
new_version = _parse_new_version(args, new_version, vc)
_determine_files(file_names, files, positionals, vc)
vcs = _determi... | Extract method from main: _check_files_contain_version | py |
diff --git a/tests/test_mocks.py b/tests/test_mocks.py
index <HASH>..<HASH> 100644
--- a/tests/test_mocks.py
+++ b/tests/test_mocks.py
@@ -360,7 +360,7 @@ class MockedRelationsTest(TestCase):
@mocked_relations(Manufacturer, Car)
def test_mocked_relations_create_foreign_key_with_kwargs(self):
make = M... | Update test_mocks.py flake8 is whining about unused underscore variables. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -84,7 +84,7 @@ install_requires = [
'pyyaml~=3.12',
'aiohttp~=2.3',
'python-rapidjson-schema==0.1.1',
- 'abci==0.4.3',
+ 'abci==0.4.4',
'setproctitle~=1.1.0',
]
@@ -131,7 +131,7 @@ setup(
... | Problem: py-abci not upgraded (#<I>) Solution: Upgrade py-abci to the latest fix | py |
diff --git a/lib/websearch_blueprint.py b/lib/websearch_blueprint.py
index <HASH>..<HASH> 100644
--- a/lib/websearch_blueprint.py
+++ b/lib/websearch_blueprint.py
@@ -552,6 +552,7 @@ def export():
recids = request.values.getlist('recid', type=int)
rg = request.args.get('rg', len(recids), type=int)
page =... | WebSearch: fix division by zero in Pagination | py |
diff --git a/pew/pew.py b/pew/pew.py
index <HASH>..<HASH> 100644
--- a/pew/pew.py
+++ b/pew/pew.py
@@ -254,7 +254,7 @@ def packages(site_packages):
def showvirtualenv(env):
columns, _ = get_terminal_size()
- pkgs = packages(sitepackages_dir(env))
+ pkgs = sorted(packages(sitepackages_dir(env)))
env_p... | Sorted package lists and files Sorting the lists and having file paths on separate lines makes it easy visually to verify the items. | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -19,9 +19,19 @@ def cleanMedia():
def runPytest():
import pytest
- opts = [arg for arg in sys.argv[1:] if arg.startswith("-")]
- labels = ["ls/joyous/tests/"+arg for arg in sys.argv[1:]
- ... | Default runPytest to running in parallel | py |
diff --git a/unleash/plugins/pypi.py b/unleash/plugins/pypi.py
index <HASH>..<HASH> 100644
--- a/unleash/plugins/pypi.py
+++ b/unleash/plugins/pypi.py
@@ -20,6 +20,10 @@ def setup(cli):
['--identity', '-i'],
help='Identity to use when signing.'
))
+ cli.commands['publish'].params.append(Option... | Added upload_docs options. | py |
diff --git a/alphatwirl/concurrently/HTCondorJobSubmitter.py b/alphatwirl/concurrently/HTCondorJobSubmitter.py
index <HASH>..<HASH> 100755
--- a/alphatwirl/concurrently/HTCondorJobSubmitter.py
+++ b/alphatwirl/concurrently/HTCondorJobSubmitter.py
@@ -254,6 +254,8 @@ class HTCondorJobSubmitter(object):
... | log stdout and stderr in terminate() | py |
diff --git a/backlash/utils.py b/backlash/utils.py
index <HASH>..<HASH> 100644
--- a/backlash/utils.py
+++ b/backlash/utils.py
@@ -21,6 +21,11 @@ def escape(s, quote=False):
return s.__html__()
if not isinstance(s, (text_type, binary_type)):
s = text_type(s)
+ if isinstance(s, binary_type):
+ ... | This should fix issue with utf8 exceptions | py |
diff --git a/master/buildbot/status/web/build.py b/master/buildbot/status/web/build.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/build.py
+++ b/master/buildbot/status/web/build.py
@@ -67,10 +67,8 @@ class ForceBuildActionResource(ActionResource):
msg += "could not get builder con... | Don't test types too carefully (long is not an int) This code really just needs to know whether there was an error. Fixes #<I>. | py |
diff --git a/utils/loggers.py b/utils/loggers.py
index <HASH>..<HASH> 100644
--- a/utils/loggers.py
+++ b/utils/loggers.py
@@ -1,7 +1,7 @@
import logging
-LOG_NAMES = ['webant', 'fsdb', 'presets', 'agherant', 'config_utils', 'libreantdb', 'archivant', 'users']
+LOG_NAMES = ['webant', 'fsdb', 'presets', 'agherant',... | added werkzeug to handled loggers | py |
diff --git a/zipline/finance/performance/tracker.py b/zipline/finance/performance/tracker.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance/tracker.py
+++ b/zipline/finance/performance/tracker.py
@@ -275,11 +275,10 @@ class PerformanceTracker(object):
'cumulative_risk_metrics': self.cumulati... | MAINT: Use setitem syntax instead of update for tracker dict addition. Since only value is being changed, use the setitem brackets intsead of calling updated. | py |
diff --git a/lib/emir/instrument/headers.py b/lib/emir/instrument/headers.py
index <HASH>..<HASH> 100644
--- a/lib/emir/instrument/headers.py
+++ b/lib/emir/instrument/headers.py
@@ -153,13 +153,27 @@ _spectrum_extra_fits_headers = {
])
}
-_image_fits_headers = _common_fits_headers.ascard.extend(_image_extra_fits_h... | Using a function to merge different headers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ from setuptools import setup
description = open(join(dirname(__file__), 'README.rst')).read()
setup(
name='pprofile',
- version='2.0.1',
+ version='2.0.2',
author='Vincent Pelletier',
auth... | Bump to <I> . | py |
diff --git a/librosa/version.py b/librosa/version.py
index <HASH>..<HASH> 100644
--- a/librosa/version.py
+++ b/librosa/version.py
@@ -3,4 +3,4 @@
"""Version info"""
short_version = '0.4'
-version = '0.4.0rc1'
+version = '0.4.0rc2' | bumped up version to rc2 | py |
diff --git a/src/passa/candidates.py b/src/passa/candidates.py
index <HASH>..<HASH> 100644
--- a/src/passa/candidates.py
+++ b/src/passa/candidates.py
@@ -43,6 +43,8 @@ def _find_versions_from_pip(ireq, sources, allows_pre):
matching_icans = list(_filter_matching_python_requirement(icans))
icans = matching_ic... | If no stable releases are available, try pre | py |
diff --git a/openquake/calculators/tests/event_based_risk_test.py b/openquake/calculators/tests/event_based_risk_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/event_based_risk_test.py
+++ b/openquake/calculators/tests/event_based_risk_test.py
@@ -254,7 +254,8 @@ class EventBasedRiskTestCase(Calc... | Tested only on reference OS Former-commit-id: 2ac<I>cf<I>aa4d9aa<I>a<I>ae<I>c<I>eaf<I>c | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from pyp2rpmlib.version import version
+from pyp2rpm.version import version
try:
from setuptools import setup | have setup call local pyp2rpm version | py |
diff --git a/textblob/classifiers.py b/textblob/classifiers.py
index <HASH>..<HASH> 100644
--- a/textblob/classifiers.py
+++ b/textblob/classifiers.py
@@ -83,11 +83,11 @@ def basic_extractor(document, train_set):
el_zero = iter(train_set).next() #Infer input from first element.
except StopIteration:
... | Base_Classifier wasn't unicode-ready. Fixed bug where _word_set was based on train_set, even if train_set is filelike instead of iterable. | py |
diff --git a/faq/admin.py b/faq/admin.py
index <HASH>..<HASH> 100644
--- a/faq/admin.py
+++ b/faq/admin.py
@@ -109,7 +109,6 @@ class QuestionAdmin(FAQAdminBase):
list_display = ('question', 'topic', 'status', 'ordering')
list_filter = ('status', 'topic', 'modified', 'created')
prepopulated_fields = {'slu... | Removed save_as=True from question admin. It was silly. Save and add another makes more sense. | py |
diff --git a/_pytest/__init__.py b/_pytest/__init__.py
index <HASH>..<HASH> 100644
--- a/_pytest/__init__.py
+++ b/_pytest/__init__.py
@@ -1,2 +1,2 @@
#
-__version__ = '2.8.3'
+__version__ = '2.8.4.dev1' | bump to <I>.dev | py |
diff --git a/magic.py b/magic.py
index <HASH>..<HASH> 100644
--- a/magic.py
+++ b/magic.py
@@ -69,7 +69,7 @@ class Magic:
return magic_file(self.cookie, filename)
def __del__(self):
- if self.cookie:
+ if self.cookie and magic_close:
magic_close(self.cookie)
self.... | Check for magic_close as well. When python is exiting it can be None already. | py |
diff --git a/ipyvolume/test_all.py b/ipyvolume/test_all.py
index <HASH>..<HASH> 100644
--- a/ipyvolume/test_all.py
+++ b/ipyvolume/test_all.py
@@ -4,6 +4,8 @@ import ipyvolume.examples
import ipyvolume.datasets
import numpy as np
import os
+import pytest
+
if not os.path.exists("tmp"):
os.makedirs("tmp")
@@ ... | test: reflects changes in ipywidgets (upcoming) | py |
diff --git a/treeherder/settings/base.py b/treeherder/settings/base.py
index <HASH>..<HASH> 100644
--- a/treeherder/settings/base.py
+++ b/treeherder/settings/base.py
@@ -9,8 +9,8 @@ from datetime import timedelta
from treeherder import path
# Insure the vendor libraries are added to the python path
-# in productio... | Bug <I> - Use vendor packages in preference to globally installed There is currently duplication between the packages in vendor/ and those globally installed on stage/production. This change ensures we use those in vendor/ in preference to those in site-packages & so are using the version we expected. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@ along with frmt. If not, see <http://www.gnu.org/licenses/>.
"""
from setuptools import setup
+from io import open # Necessary for Python 2.7
with open('README.rst', encoding='utf-8') as f:
long_des... | Added io for setup.py to support Python <I> | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -1,7 +1,6 @@
import doctest
import locale
import os
-import shutil
import subprocess
import sys
import tarfile
@@ -551,7 +550,7 @@ class TestConfiguration(unittest.TestCase):
check_manifest.IGNORE_REGEXPS = self... | Use our rmtree() everywhere | py |
diff --git a/pycbc/inference/sampler/dynesty.py b/pycbc/inference/sampler/dynesty.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/sampler/dynesty.py
+++ b/pycbc/inference/sampler/dynesty.py
@@ -525,7 +525,7 @@ def sample_rwalk_mod(args):
# Check proposed point.
v_prop = prior_transform(numpy.arra... | only accept points that have larger logl in dynesty (#<I>) | py |
diff --git a/pwnypack/oracle.py b/pwnypack/oracle.py
index <HASH>..<HASH> 100644
--- a/pwnypack/oracle.py
+++ b/pwnypack/oracle.py
@@ -51,7 +51,7 @@ def check_padding_decrypt(event, oracle, block_len, chunk, block, plain, i, j):
def decrypt_block(oracle, block_len, alphabet, pool, params):
- prev, block, prefix... | Fix padding oracle decrypt with small suffix. If a known suffix smaller than a complete block was provided decryption would fail. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,13 +25,13 @@ setup(
url='http://versae.github.com/qbe/',
description='Django admin tool for custom reports',
long_description=read('README.rst'),
- license='AGPL 3',
+ license='MIT',
keywords='qbe... | Updated setup.py with license change, too. | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -54,7 +54,7 @@ else:
USER_AGENTS = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0',
- 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Ge... | Add missing comma in user agent string | py |
diff --git a/openquake/commonlib/datastore.py b/openquake/commonlib/datastore.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/datastore.py
+++ b/openquake/commonlib/datastore.py
@@ -118,8 +118,10 @@ def read(calc_id, mode='r', datadir=DATADIR):
if calc_id < 0: # retrieve an old datastore
calc_id... | Changed two assertions to proper errors | py |
diff --git a/ufork/test.py b/ufork/test.py
index <HASH>..<HASH> 100644
--- a/ufork/test.py
+++ b/ufork/test.py
@@ -170,8 +170,9 @@ def redirect_fork_test():
def daemon_test(addr = ("0.0.0.0", 8888)):
- arb = ufork.gevent_wsgi_arbiter(wsgi_hello, addr)
- arb.spawn_daemon("test.pid")
+ if not ufork.spawn_da... | re-organizing daemon_test | py |
diff --git a/simuvex/vex/statements/cas.py b/simuvex/vex/statements/cas.py
index <HASH>..<HASH> 100644
--- a/simuvex/vex/statements/cas.py
+++ b/simuvex/vex/statements/cas.py
@@ -17,7 +17,7 @@ class SimIRStmt_CAS(SimIRStmt):
# read the old values
old_cnt = self.state.memory.load(addr.expr, l... | properly get the length of the expected low bits | py |
diff --git a/jwcrypto/jwe.py b/jwcrypto/jwe.py
index <HASH>..<HASH> 100644
--- a/jwcrypto/jwe.py
+++ b/jwcrypto/jwe.py
@@ -528,9 +528,12 @@ class JWE(object):
for invalid in 'aad', 'unprotected':
if invalid in self.objects:
raise InvalidJWEOperation("Can't use compact ... | JWE: Fix compact serialization Compact was failing for single recipient JWEs | py |
diff --git a/lambda_uploader/package.py b/lambda_uploader/package.py
index <HASH>..<HASH> 100644
--- a/lambda_uploader/package.py
+++ b/lambda_uploader/package.py
@@ -235,17 +235,19 @@ class Package(object):
LOG.info('Copying lib64 site packages')
utils.copy_tree(lib64_path, package)
... | Ensuring the ignore list is used for extra files as well | py |
diff --git a/ceph_deploy/tests/unit/util/test_net.py b/ceph_deploy/tests/unit/util/test_net.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/tests/unit/util/test_net.py
+++ b/ceph_deploy/tests/unit/util/test_net.py
@@ -1,3 +1,13 @@
+try:
+ from urllib.error import HTTPError
+except ImportError:
+ from urllib2 imp... | [RM-<I>] tests: add a unit test for the url utility | py |
diff --git a/simpleauth2/__init__.py b/simpleauth2/__init__.py
index <HASH>..<HASH> 100644
--- a/simpleauth2/__init__.py
+++ b/simpleauth2/__init__.py
@@ -39,7 +39,7 @@ def login(adapter, provider_name, callback=None, report_errors=True,
raise exceptions.ConfigError('Class name not specified for provider {}!'.... | Fixed a bug when there was no scope. | py |
diff --git a/acos_client/v30/route.py b/acos_client/v30/route.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/route.py
+++ b/acos_client/v30/route.py
@@ -14,7 +14,7 @@
from __future__ import absolute_import
from __future__ import unicode_literals
-
+from acos_client import errors as acos_errors
from acos_clie... | Added exists() method to route.py for extra functionality. | py |
diff --git a/simple_unit_tests.py b/simple_unit_tests.py
index <HASH>..<HASH> 100644
--- a/simple_unit_tests.py
+++ b/simple_unit_tests.py
@@ -25,7 +25,7 @@ class PyparsingExpressionTestCase(unittest.TestCase):
given text strings. Subclasses must define a class attribute 'tests' which
is a list of PpTestSpec ... | force order of simple unit tests to make it easier to see test output corresponding to each test case | py |
diff --git a/heimdall/heimdall.py b/heimdall/heimdall.py
index <HASH>..<HASH> 100644
--- a/heimdall/heimdall.py
+++ b/heimdall/heimdall.py
@@ -5,7 +5,7 @@ from collections import namedtuple
from PIL import Image
-from devices import heimdallDevice
+from heimdall.devices import heimdallDevice
Screenshot = namedt... | Update heimdall.py This update is needed in order for heimdall to work with Python3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,10 +10,6 @@ root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root, 'README.rst')) as f:
README = f.read()
-extra = {}
-if sys.version_info >= (3,):
- extra['use_2to3'] = True
-
setup(
... | Removed useless "extras" variable | py |
diff --git a/tests/output_unittest.py b/tests/output_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/output_unittest.py
+++ b/tests/output_unittest.py
@@ -33,6 +33,7 @@ import unittest
from osgeo import gdal, gdalconst
+from openquake import writer
from openquake import shapes
from tests.utils import helpers... | Added tests for the CompositeWriter | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,6 @@ SETUP = {
'Tempita',
'Jinja2',
'six',
- 'psutil',
],
'packages': find_packages(exclude=('tests', 'tests.*', 'tools', 'tools.*')),
'scripts': [ | Remove ``psutil`` from c-h setup (#<I>) This module is conditionally used in some parts of the library and we should not force it upon everyone. | py |
diff --git a/src/ansiblelint/config.py b/src/ansiblelint/config.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/config.py
+++ b/src/ansiblelint/config.py
@@ -120,12 +120,14 @@ def ansible_collections_path() -> str:
def parse_ansible_version(stdout: str) -> Tuple[str, Optional[str]]:
"""Parse output of 'ans... | Allow use of ansible debug mode (#<I>) Fixes: #<I> | py |
diff --git a/rb/clients.py b/rb/clients.py
index <HASH>..<HASH> 100644
--- a/rb/clients.py
+++ b/rb/clients.py
@@ -409,8 +409,10 @@ class MappingClient(RoutingBaseClient):
# network is low and redis is super quick in sending. It
# does not make a lot of sense to complicate things here... | Ensure a connection is released to the pool after receiving a response, even if the result is an error. | py |
diff --git a/sphinxcontrib/katex.py b/sphinxcontrib/katex.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/katex.py
+++ b/sphinxcontrib/katex.py
@@ -17,6 +17,9 @@ from sphinx.errors import ExtensionError
from sphinx.ext.mathbase import setup_math as mathbase_setup
+katex_version = '0.9.0-alpha2'
+
+
def html_vi... | Switch to KaTeX <I>-alpha2 | py |
diff --git a/floc_model.py b/floc_model.py
index <HASH>..<HASH> 100644
--- a/floc_model.py
+++ b/floc_model.py
@@ -4,10 +4,8 @@ Created on Mon Jun 26 16:50:46 2017
@author: Sage Weber-Shirk
-Last revised: Tue Aug 8 2017
+Last revised: Fri Aug 11 2017
By: Sage Weber-Shirk
-
-dens_physical/chemical unit processes f... | removed DENS_CLAY and an errant docstring | py |
diff --git a/tests/execution/contexts/test_node.py b/tests/execution/contexts/test_node.py
index <HASH>..<HASH> 100644
--- a/tests/execution/contexts/test_node.py
+++ b/tests/execution/contexts/test_node.py
@@ -186,7 +186,7 @@ def test_node_tuple_dict():
def test_node_lifecycle_natural():
- func = MagicMock()
+... | [tests] adding a spec to magicmock of nodes to avoid it being seen as partially configured nodes | py |
diff --git a/speake3.py b/speake3.py
index <HASH>..<HASH> 100644
--- a/speake3.py
+++ b/speake3.py
@@ -54,7 +54,8 @@ class Speake:
self.status_output = ''
self.status_error = ''
# Condition to check if espeak-tts-engine is installed
- if not os.path.exists('/usr/bin/espeak'):
+ ... | Generalize espeak existance condition | py |
diff --git a/skitai/server/bin/cron.py b/skitai/server/bin/cron.py
index <HASH>..<HASH> 100644
--- a/skitai/server/bin/cron.py
+++ b/skitai/server/bin/cron.py
@@ -77,6 +77,8 @@ class CronManager (daemon.Daemon):
try:
try:
self.loop ()
+ except KeyboardInterrupt:
+ pass
except:
self.logger.trac... | handle KeyboardInterrupt on posix | py |
diff --git a/parse_rest/connection.py b/parse_rest/connection.py
index <HASH>..<HASH> 100644
--- a/parse_rest/connection.py
+++ b/parse_rest/connection.py
@@ -109,8 +109,7 @@ class ParseBase(object):
if ACCESS_KEYS.get('session_token'):
request.add_header('X-Parse-Session-Token', ACCESS_... | Changed to avoid adding master key if session token is active, in response to #<I> | py |
diff --git a/histutils/cp_parents.py b/histutils/cp_parents.py
index <HASH>..<HASH> 100644
--- a/histutils/cp_parents.py
+++ b/histutils/cp_parents.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
"""
This acts like bash cp --parents in Python
inspiration from | shebang [ci skip] | py |
diff --git a/tests/test_funcs.py b/tests/test_funcs.py
index <HASH>..<HASH> 100644
--- a/tests/test_funcs.py
+++ b/tests/test_funcs.py
@@ -3,6 +3,7 @@ from __future__ import print_function # python 2/3 compatibility
from sc2common import commonUtilFuncs as cu
from sc2common import containers as cn
+from sc2common i... | - added testing for determineRace() function | py |
diff --git a/fost_authn_debug/views.py b/fost_authn_debug/views.py
index <HASH>..<HASH> 100644
--- a/fost_authn_debug/views.py
+++ b/fost_authn_debug/views.py
@@ -3,7 +3,7 @@ from django.shortcuts import render_to_response
def root(request):
- return HttpResponse("Debug helper", mimetype='text/plain')
+ retu... | The signed view just returns the username that is logged in when the request has been signed. | py |
diff --git a/openquake/calculators/tests/gmf_ebrisk_test.py b/openquake/calculators/tests/gmf_ebrisk_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/gmf_ebrisk_test.py
+++ b/openquake/calculators/tests/gmf_ebrisk_test.py
@@ -123,8 +123,10 @@ class GmfEbRiskTestCase(CalculatorTestCase):
# ... | Commented out a breaking test [skip hazardlib] | py |
diff --git a/pymc3/examples/disaster_model_arbitrary_deterministic.py b/pymc3/examples/disaster_model_arbitrary_deterministic.py
index <HASH>..<HASH> 100644
--- a/pymc3/examples/disaster_model_arbitrary_deterministic.py
+++ b/pymc3/examples/disaster_model_arbitrary_deterministic.py
@@ -7,6 +7,7 @@ Note that gradient ba... | Fixed import error in disaster_model_arbitrary_deterministic | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,4 +17,5 @@ setup(
'requests',
'simplejson'
],
+ zip_safe=True
) | add zip_safe flag to install with .egg | py |
diff --git a/fake_filesystem_test.py b/fake_filesystem_test.py
index <HASH>..<HASH> 100755
--- a/fake_filesystem_test.py
+++ b/fake_filesystem_test.py
@@ -3293,11 +3293,7 @@ class DiskSpaceTest(TestCase):
self.assertEqual((100, 5, 95), self.filesystem.GetDiskUsage())
def testFileSystemSizeAfterAsciiStringFile... | Second go to fix the test - do not use unicode in Python 2 | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,5 +1,4 @@
import os
-import simplejson as json
from os.path import dirname
import sys
from django.core.management import call_command
@@ -80,6 +79,8 @@ def pytest_runtest_teardown(ite... | fix test setup to allow model migrations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup, find_packages
def handle_possible_ci_error(message, code):
print(message)
if any(filter(lambda x: x == "--ci", sys.argv)):
- print(sys.exc_info()[0])
+ print(... | Add more verbose error reporting | py |
diff --git a/khard/carddav_object.py b/khard/carddav_object.py
index <HASH>..<HASH> 100644
--- a/khard/carddav_object.py
+++ b/khard/carddav_object.py
@@ -288,7 +288,7 @@ class VCardWrapper:
# versions.
self._delete_vcard_object("REV")
rev = self.vcard.add('rev')
- rev.value = datetime... | Add missing '%' to date format for REV fields | py |
diff --git a/src/REST/keywords.py b/src/REST/keywords.py
index <HASH>..<HASH> 100644
--- a/src/REST/keywords.py
+++ b/src/REST/keywords.py
@@ -147,6 +147,8 @@ class Keywords(object):
found = self._find_by_field(field, show_found=False)
except AssertionError:
return None
+ self.... | Show found if 'Missing' fails | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,11 +51,11 @@ version = readfile("VERSION").strip()
with open('README.md') as f:
long_description = f.read()
-NAME = "cloudmesh.common"
+NAME = "cloudmesh-common"
DESCRIPTION = "A set of useful APIs for cloudmesh"
... | rename the package to cloudmesh-common | py |
diff --git a/indra/literature/pmc_client.py b/indra/literature/pmc_client.py
index <HASH>..<HASH> 100644
--- a/indra/literature/pmc_client.py
+++ b/indra/literature/pmc_client.py
@@ -270,3 +270,7 @@ def _namespace_unaware_xpath(*tag_list, direct_only=True):
for tag in tag_list:
out += "/*[local-name()='%s... | Add function to create union of xpaths | py |
diff --git a/gtdoit/test/test_logbook.py b/gtdoit/test/test_logbook.py
index <HASH>..<HASH> 100644
--- a/gtdoit/test/test_logbook.py
+++ b/gtdoit/test/test_logbook.py
@@ -100,6 +100,10 @@ class TestLogbook(unittest.TestCase):
self.assertEqual(received_event.task_created.name,
... | Making a test stub for proxy ordering test | py |
diff --git a/src/rammbock/Rammbock.py b/src/rammbock/Rammbock.py
index <HASH>..<HASH> 100755
--- a/src/rammbock/Rammbock.py
+++ b/src/rammbock/Rammbock.py
@@ -99,8 +99,11 @@ class Rammbock(object):
def modify_information_element(self, name, value):
self.message.ie[self._id_to_name(self.message.ie, name)] ... | but different handling if to add header, if value is None | py |
diff --git a/datapackage/datapackage.py b/datapackage/datapackage.py
index <HASH>..<HASH> 100644
--- a/datapackage/datapackage.py
+++ b/datapackage/datapackage.py
@@ -591,7 +591,7 @@ class DataPackage(Specification):
descriptor = self.open_resource('datapackage.json')
# Load the descriptor json cont... | Fix for UTF-8 formatted datapackage.json files The .decode() call was throwing errors on UTF8 files with accented characters. I found that removing it had no issues with importing, and fixed the bug. I've tested with the example CSV on the README file and it appears to work as expected. | py |
diff --git a/src/transformers/models/wav2vec2_with_lm/processing_wav2vec2_with_lm.py b/src/transformers/models/wav2vec2_with_lm/processing_wav2vec2_with_lm.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/wav2vec2_with_lm/processing_wav2vec2_with_lm.py
+++ b/src/transformers/models/wav2vec2_with_lm/processi... | [Wav2Vec2ProcessorWithLM] improve multi processing (#<I>) * [Wav2Vec2ProcessorWithLM] improve multi processing * close pool | py |
diff --git a/karaage/applications/models.py b/karaage/applications/models.py
index <HASH>..<HASH> 100644
--- a/karaage/applications/models.py
+++ b/karaage/applications/models.py
@@ -101,10 +101,10 @@ class Application(models.Model):
self._class = klass.get_accessor_name()
brea... | Save before logging. When creating an object, the pk isn't set yet, so we shouldn't log anything until after the object is saved. Otherwise the log entry will contain a reference to a pk of "None" (string), which is an invalid pk value for the object. Change-Id: I2ba0e<I>f<I>c7b<I>bac<I>c7c0a<I>b | py |
diff --git a/tests/integration/test_application.py b/tests/integration/test_application.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_application.py
+++ b/tests/integration/test_application.py
@@ -117,7 +117,7 @@ async def test_upgrade_charm_switch(event_loop):
@pytest.mark.asyncio
async def test_upgrad... | Resource wasn't found for tests Updated to a juju-qa resource charm so that we can manage the life cycle of the charm. | py |
diff --git a/great_expectations/dataset/util.py b/great_expectations/dataset/util.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/util.py
+++ b/great_expectations/dataset/util.py
@@ -219,10 +219,16 @@ def is_valid_continuous_partition_object(partition_object):
"""
if (partition_object is None)... | Changed is_valid_continuous_partition_object to handle tail_weights | 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 find_packages
setup(
name='django-two-factor-auth',
- version='0.1.2',
+ version='0.2.0-dev',
author='Bouke Haarsma',
author_email='bouke@webatoom.nl',
packages=... | Bumped version (<I>-dev) | py |
diff --git a/salt/states/git.py b/salt/states/git.py
index <HASH>..<HASH> 100644
--- a/salt/states/git.py
+++ b/salt/states/git.py
@@ -201,7 +201,10 @@ def latest(name,
if force:
log.debug(('target {0} found, but not a git repository. Since '
'force option is in... | handle symlinks to directories in git when force applied | py |
diff --git a/nameko/testing/services.py b/nameko/testing/services.py
index <HASH>..<HASH> 100644
--- a/nameko/testing/services.py
+++ b/nameko/testing/services.py
@@ -109,7 +109,7 @@ def worker_factory(service_cls, **injections):
"""
service = service_cls()
- for name, attr in inspect.getmembers(service)... | inspect the service class, not the instance works better with descriptors | py |
diff --git a/teryt_tree/management/commands/load_terc.py b/teryt_tree/management/commands/load_terc.py
index <HASH>..<HASH> 100644
--- a/teryt_tree/management/commands/load_terc.py
+++ b/teryt_tree/management/commands/load_terc.py
@@ -69,4 +69,4 @@ class Command(BaseCommand):
item.save()
def... | Fix logging progress to stdout | py |
diff --git a/troposphere/elasticbeanstalk.py b/troposphere/elasticbeanstalk.py
index <HASH>..<HASH> 100644
--- a/troposphere/elasticbeanstalk.py
+++ b/troposphere/elasticbeanstalk.py
@@ -92,6 +92,7 @@ class ConfigurationTemplate(AWSObject):
'Description': (basestring, False),
'EnvironmentId': (basestr... | Added platformArn to Environment and ConfigurationTemplate (#<I>) | py |
diff --git a/rtv/content.py b/rtv/content.py
index <HASH>..<HASH> 100644
--- a/rtv/content.py
+++ b/rtv/content.py
@@ -310,14 +310,7 @@ class SubredditContent(BaseContent):
else:
if '/' in name:
- parse = name.split('/')
- name = parse[0]
-
- ... | Removed parse and added more descriptive taglines | py |
diff --git a/src/birding/__init__.py b/src/birding/__init__.py
index <HASH>..<HASH> 100644
--- a/src/birding/__init__.py
+++ b/src/birding/__init__.py
@@ -3,15 +3,11 @@ from __future__ import absolute_import, print_function
import logging
from . import bolt, config, follow, search, spout, twitter_api
-from .search ... | Remove unnecessary objects from root namespace. | py |
diff --git a/start_jupyter_cm/macos.py b/start_jupyter_cm/macos.py
index <HASH>..<HASH> 100644
--- a/start_jupyter_cm/macos.py
+++ b/start_jupyter_cm/macos.py
@@ -301,17 +301,10 @@ def add_jupyter_here():
os.makedirs(script_dir)
document_path = os.path.join(script_dir, "document.wflow")
... | Removed check for jupyter path from install script. The problem that this check was designed to catch is caused by a bug in conda - so that is the place to fix it, not here. | py |
diff --git a/instabot/bot/bot_comment.py b/instabot/bot/bot_comment.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_comment.py
+++ b/instabot/bot/bot_comment.py
@@ -26,6 +26,24 @@ def comment(self, media_id, comment_text):
self.logger.info("Out of comments for today.")
return False
+def reply_to_c... | Added def reply_to_comment Added function to reply to comments | py |
diff --git a/pyxel/editor/piano_keyboard.py b/pyxel/editor/piano_keyboard.py
index <HASH>..<HASH> 100644
--- a/pyxel/editor/piano_keyboard.py
+++ b/pyxel/editor/piano_keyboard.py
@@ -82,7 +82,12 @@ class PianoKeyboard(Widget):
data = self.parent.get_data(0)
- if not self.parent.is_playing and self.n... | Fixed the piano keyboard hilighting bug | py |
diff --git a/grimoire_elk/enriched/askbot.py b/grimoire_elk/enriched/askbot.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/askbot.py
+++ b/grimoire_elk/enriched/askbot.py
@@ -54,6 +54,9 @@ class Mapping(BaseMapping):
},
"summary": {
"type": "text"
+ ... | [enrich-askbot] Update id attribute mapping This code updates the mapping for the attribute id, which is generated as a concatenation of ids (e.g., question + answer + comment). | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -478,6 +478,20 @@ class TaskInstance(Base):
"&execution_date={iso}"
).format(**locals())
+ @property
+ def mark_success_url(self):
+ iso = self.execution... | Adding a link to Mark Success directly from the failure email | py |
diff --git a/tests/test_var_builtin.py b/tests/test_var_builtin.py
index <HASH>..<HASH> 100644
--- a/tests/test_var_builtin.py
+++ b/tests/test_var_builtin.py
@@ -18,13 +18,6 @@ class TestVAR(unittest.TestCase):
def tearDown(self):
pass
- def test_simulate(self):
- var = VAR(2)
- var.co... | Removed simulation test from higher level VAR testing | py |
diff --git a/wrappers/pyrichdem/setup.py b/wrappers/pyrichdem/setup.py
index <HASH>..<HASH> 100644
--- a/wrappers/pyrichdem/setup.py
+++ b/wrappers/pyrichdem/setup.py
@@ -64,7 +64,7 @@ It can flood or breach depressions, as well as calculate flow accumulation, slop
#TODO: https://packaging.python.org/tutorials/distrib... | Bump PyRichDEM version. | py |
diff --git a/django_jenkins/tasks/run_pep8.py b/django_jenkins/tasks/run_pep8.py
index <HASH>..<HASH> 100644
--- a/django_jenkins/tasks/run_pep8.py
+++ b/django_jenkins/tasks/run_pep8.py
@@ -39,7 +39,13 @@ class Task(BaseTask):
pep8.process_options(self.pep8_options + locations)
# run pep8 tool with... | Trying to make pep8 output copatible with pylint | py |
diff --git a/multiqc/modules/checkqc/checkqc.py b/multiqc/modules/checkqc/checkqc.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/checkqc/checkqc.py
+++ b/multiqc/modules/checkqc/checkqc.py
@@ -41,6 +41,10 @@ class MultiqcModule(BaseMultiqcModule):
if not self.checkqc_content:
raise UserWarni... | Add code comment to make CI pass for checkqc | py |
diff --git a/pyphi/distribution.py b/pyphi/distribution.py
index <HASH>..<HASH> 100644
--- a/pyphi/distribution.py
+++ b/pyphi/distribution.py
@@ -90,7 +90,7 @@ def purview(repertoire):
if repertoire is None:
return None
- return tuple(np.where(np.array(repertoire.shape) == 2)[0])
+ return tuple(i... | Use native Python in `distribution.purview` | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -31,6 +31,8 @@ def linux_installation():
for file in glob.glob("Holodeck/*.py"):
shutil.copyfile(file, os.path.join(path, "Holodeck", "Holodeck", file.split("/")[-1]))
+ os.chmod(worlds_p... | Added chmod to allow worlds to be written to and allow binary to run | py |
diff --git a/salt/modules/mod_random.py b/salt/modules/mod_random.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mod_random.py
+++ b/salt/modules/mod_random.py
@@ -151,7 +151,7 @@ def seed(range=10, hash=None):
Returns a random number within a range. Optional hash argument can
be any hashable object. If ha... | Change versionadded tag from <I> to Beryllium for new mod_random func | 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="qds_sdk",
- version="1.9.4",
+ version="unreleased",
author="Qubole",
author_email="dev@qubole.com",
description=("Python SDK for coding to the Qubole D... | chg: pkg: fix overwritten version info in unreleased branch d<I>ae3 overwrote the version information causing the develop builds to fail. reverting back to unreleased version | py |
diff --git a/bakery/models.py b/bakery/models.py
index <HASH>..<HASH> 100644
--- a/bakery/models.py
+++ b/bakery/models.py
@@ -6,6 +6,7 @@ The magic relies on your view being class-based and having a build_object
method, like the BuildableDetailView included in this app.
"""
from django.db import models
+from django... | I think that transaction needs to atomic. For #<I>. | py |
diff --git a/openpnm/algorithms/InvasionPercolation.py b/openpnm/algorithms/InvasionPercolation.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/InvasionPercolation.py
+++ b/openpnm/algorithms/InvasionPercolation.py
@@ -159,7 +159,8 @@ class InvasionPercolation(GenericAlgorithm):
# Perform initial analy... | Fix codestyle issue to make codefactor happy | py |
diff --git a/dynaphopy/__init__.py b/dynaphopy/__init__.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/__init__.py
+++ b/dynaphopy/__init__.py
@@ -460,8 +460,6 @@ class Calculation:
def plot_power_spectrum_full(self):
- print(self.dynamic.structure.get_force_constants())
-
fig, ax1 = plt.subplo... | Added more effient algorithm in get_full_power_spectrum to make it more efficient (specially with memmap) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,8 @@ setup(
'couchdb>=1.0.1',
'requests>=2.10.0',
'voluptuous>=0.8.11',
- 'click>=5'
+ 'click>=5',
+ 'PyYAML>=3.12'
],
extras_require={
"test": [ | Add PyYaml to deps | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ desc = ('Flexible, extensible Web CMS framework built on Tornado,'
'including map showing, map overlaying, GIS data editing. ')
setup(
name='torcms',
- version='0.5.26',
+ version='0.6.0',
... | update the version to <I> . | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.