diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyecore/resources/xmi.py b/pyecore/resources/xmi.py
index <HASH>..<HASH> 100644
--- a/pyecore/resources/xmi.py
+++ b/pyecore/resources/xmi.py
@@ -124,6 +124,8 @@ class XMIResource(Resource):
continue
if feature.is_attribute:
self._decode_eattribute... | Fix root element id not added to uuid_dict if its feature.ID is set. | py |
diff --git a/btceapi/public.py b/btceapi/public.py
index <HASH>..<HASH> 100644
--- a/btceapi/public.py
+++ b/btceapi/public.py
@@ -52,6 +52,7 @@ def getTradeHistory(pair):
result = []
for h in history:
t = Trade(**h)
+ t.pair = pair
result.append(t)
return result | Added line of code that was accidentally deleted. | py |
diff --git a/salt/grains/extra.py b/salt/grains/extra.py
index <HASH>..<HASH> 100644
--- a/salt/grains/extra.py
+++ b/salt/grains/extra.py
@@ -11,6 +11,7 @@ import logging
# Import salt libs
import salt.utils.files
+import salt.utils.platform
log = logging.getLogger(__name__)
@@ -21,7 +22,14 @@ def shell():
... | Return COMSPEC as the shell for Windows | py |
diff --git a/salt/returners/mysql.py b/salt/returners/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/returners/mysql.py
+++ b/salt/returners/mysql.py
@@ -70,6 +70,7 @@ Use the following mysql database schema::
DROP TABLE IF EXISTS `salt_events`;
CREATE TABLE `salt_events` (
+ `id` BIGINT NOT NULL AUTO_I... | Let's create an id field and make it large | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,10 @@ setup(
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
+ "Programming Language :: Python :: 2.6",
+ "Programmi... | Added pypi classifiers for Python 3 | py |
diff --git a/trimesh/io/urdf.py b/trimesh/io/urdf.py
index <HASH>..<HASH> 100644
--- a/trimesh/io/urdf.py
+++ b/trimesh/io/urdf.py
@@ -41,7 +41,9 @@ def export_urdf(mesh, directory, scale=1.0, color=[
# Perform a convex decomposition
convex_pieces = convex_decomposition(mesh, **kwargs)
-
+ if not isinsta... | Fixed a bug in urdf export which crashed when the convex decomp had only one component. | py |
diff --git a/html5lib/html5parser.py b/html5lib/html5parser.py
index <HASH>..<HASH> 100644
--- a/html5lib/html5parser.py
+++ b/html5lib/html5parser.py
@@ -1612,8 +1612,14 @@ def getPhases(debug):
self.parser.phase.characterTokens.append(token)
def processCharacters(self, token):
+ ori... | Make table text stuff look more like the spec | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from setuptools.command.test import test as TestCommand
REQUIRES = [
- 'click==2.0',
+ 'click>=2.0',
]
if 'win32' in str(sys.platform).lower(): | Don't pin click dependency Future upgrades are not expected to break functionality | py |
diff --git a/avatar/templatetags/avatar_tags.py b/avatar/templatetags/avatar_tags.py
index <HASH>..<HASH> 100644
--- a/avatar/templatetags/avatar_tags.py
+++ b/avatar/templatetags/avatar_tags.py
@@ -27,13 +27,19 @@ def avatar(user, size=settings.AVATAR_DEFAULT_SIZE, **kwargs):
if not isinstance(user, get_user_mode... | Don't expose user names through alt tags, solves #<I>, solves #<I>, relates to #<I> | py |
diff --git a/pcef/core/constants.py b/pcef/core/constants.py
index <HASH>..<HASH> 100644
--- a/pcef/core/constants.py
+++ b/pcef/core/constants.py
@@ -43,9 +43,9 @@ EDITOR_FOREGROUND = QColor("#000000")
EDITOR_WS_FOREGROUND = QColor("#dddddd")
SELECTION_BACKGROUND = QColor("#6182F3")
SELECTION_FOREGROUND = QColor("#... | Updated panel colors to look close to QtCreator | py |
diff --git a/salt/modules/virt.py b/salt/modules/virt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virt.py
+++ b/salt/modules/virt.py
@@ -307,6 +307,17 @@ def create(vm_):
return True
+def start(vm_):
+ '''
+ Alias for the obscurely named 'create' function
+
+ CLI Example::
+
+ salt '*' vi... | add an alias (start) for the poorly named create function in virt.py - this matches virsh | py |
diff --git a/apio/managers/unpacker.py b/apio/managers/unpacker.py
index <HASH>..<HASH> 100644
--- a/apio/managers/unpacker.py
+++ b/apio/managers/unpacker.py
@@ -11,6 +11,7 @@
from os import chmod
from os.path import splitext
+from pathlib import Path
from tarfile import open as tarfile_open
from time import mkt... | unpacker file: util.safe() removed | py |
diff --git a/pykechain/models/attachment.py b/pykechain/models/attachment.py
index <HASH>..<HASH> 100644
--- a/pykechain/models/attachment.py
+++ b/pykechain/models/attachment.py
@@ -63,4 +63,4 @@ class AttachmentProperty(Property):
data = ('plot.png', buffer.getvalue(), 'image/png')
- self._post_at... | fixed the plot upload (untested). See issue #<I> | py |
diff --git a/stripe/__init__.py b/stripe/__init__.py
index <HASH>..<HASH> 100644
--- a/stripe/__init__.py
+++ b/stripe/__init__.py
@@ -273,7 +273,7 @@ class APIRequestor(object):
try:
func = getattr(requests, meth)
- result = func(abs_url, headers=headers, data=data)
+ result = func(abs_url, hea... | Time out requests after <I> seconds | py |
diff --git a/aegea/version.py b/aegea/version.py
index <HASH>..<HASH> 100644
--- a/aegea/version.py
+++ b/aegea/version.py
@@ -1 +1 @@
-__version__ = '2.4.0'
+__version__ = '0.0.0' | Set dev tree version back to placeholder value | py |
diff --git a/elasticsearch/connection/thrift.py b/elasticsearch/connection/thrift.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/connection/thrift.py
+++ b/elasticsearch/connection/thrift.py
@@ -56,6 +56,7 @@ class ThriftConnection(PoolingConnection):
parameters=params, body=body)
st... | Make sure we clean up correctly after failed thrift connection | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ setup(
description='Tool and library for discovering package dependencies in PyPI world',
long_description=get_long_description(),
url='https://github.com/thoth-station/solver',
- license='ASL ... | Use proper license in setup.py | py |
diff --git a/pyinstrument/profiler.py b/pyinstrument/profiler.py
index <HASH>..<HASH> 100644
--- a/pyinstrument/profiler.py
+++ b/pyinstrument/profiler.py
@@ -173,8 +173,9 @@ class Profiler(object):
for stack_frame in self.stack_time.iteritems():
frame_for_stack(stack_frame[0]).time = stac... | Fix indentation problem with lazy-loaded property | py |
diff --git a/sqliteschema/_core.py b/sqliteschema/_core.py
index <HASH>..<HASH> 100644
--- a/sqliteschema/_core.py
+++ b/sqliteschema/_core.py
@@ -23,12 +23,12 @@ class SqliteSchemaExtractor(SqliteSchemaExtractorInterface):
return self.__writer.verbosity_level
def __init__(
- self, database_p... | Rename a argument to be more precisely represent the argument objective | py |
diff --git a/drf_haystack/filters.py b/drf_haystack/filters.py
index <HASH>..<HASH> 100644
--- a/drf_haystack/filters.py
+++ b/drf_haystack/filters.py
@@ -10,6 +10,8 @@ from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
+import haystack
+
from rest... | moved haystack import to top of file | py |
diff --git a/crochet/_eventloop.py b/crochet/_eventloop.py
index <HASH>..<HASH> 100644
--- a/crochet/_eventloop.py
+++ b/crochet/_eventloop.py
@@ -5,6 +5,7 @@ Expose Twisted's event loop to threaded programs.
from __future__ import absolute_import
import select
+import sys
import threading
import weakref
import ... | Fix a timeout overflow bug in <I>-bit machines Use "sys.maxsize" to override unlimited timeouts, instead of the definite number "2**<I>" that can lead to overflows. | py |
diff --git a/pyfolio/utils.py b/pyfolio/utils.py
index <HASH>..<HASH> 100644
--- a/pyfolio/utils.py
+++ b/pyfolio/utils.py
@@ -20,6 +20,7 @@ from os.path import (
getmtime,
join,
)
+import warnings
from datetime import datetime
@@ -116,7 +117,13 @@ def default_returns_func(symbol, start=None, end=None):... | ENH Turn IOError into warning when cache can not be written. | py |
diff --git a/tests/test_regr.py b/tests/test_regr.py
index <HASH>..<HASH> 100644
--- a/tests/test_regr.py
+++ b/tests/test_regr.py
@@ -30,11 +30,6 @@ from pylint import testutils
REGR_DATA = join(dirname(abspath(__file__)), "regrtest_data")
sys.path.insert(1, REGR_DATA)
-try:
- PYPY_VERSION_INFO = sys.pypy_versi... | Remove unused and bugged pypy_version_info | py |
diff --git a/carbonate/cli.py b/carbonate/cli.py
index <HASH>..<HASH> 100644
--- a/carbonate/cli.py
+++ b/carbonate/cli.py
@@ -243,13 +243,16 @@ def whisper_aggregate():
metrics_count = 0
for metric in metrics:
- name, t = metric.strip().split('|')
-
- mode = AGGREGATION[t]
- if mode is... | Handle aggregation input that cannot be split without dying | py |
diff --git a/sphinx_gallery/gen_rst.py b/sphinx_gallery/gen_rst.py
index <HASH>..<HASH> 100644
--- a/sphinx_gallery/gen_rst.py
+++ b/sphinx_gallery/gen_rst.py
@@ -1144,7 +1144,8 @@ def save_rst_example(example_rst, example_file, time_elapsed,
replace_py_ipynb(fname),
... | Honor show_signature (#<I>) | py |
diff --git a/thinc/tests/unit/test_exceptions.py b/thinc/tests/unit/test_exceptions.py
index <HASH>..<HASH> 100644
--- a/thinc/tests/unit/test_exceptions.py
+++ b/thinc/tests/unit/test_exceptions.py
@@ -16,7 +16,7 @@ def model():
@pytest.fixture
-def dummy():
+def dummy(*args, **kwargs):
def _dummy(*args, **k... | Add args and kwargs to dummy | py |
diff --git a/jaraco/mongodb/query.py b/jaraco/mongodb/query.py
index <HASH>..<HASH> 100644
--- a/jaraco/mongodb/query.py
+++ b/jaraco/mongodb/query.py
@@ -60,5 +60,5 @@ def upsert_and_fetch(coll, doc, **kwargs):
{"$setOnInsert": doc},
upsert=True,
return_document=pymongo.ReturnDocument.AFTER,... | Remove trailing comma, invalid on older Pythons | py |
diff --git a/yoke/build_deps.py b/yoke/build_deps.py
index <HASH>..<HASH> 100644
--- a/yoke/build_deps.py
+++ b/yoke/build_deps.py
@@ -340,7 +340,10 @@ class PythonDependencyBuilder(object):
export_installed_dependencies(
container,
self.install_dir,
- self.... | fix(build_deps): fix build export path The "extra" libs built for some functions need to be placed in a path relative to the yoke.yml/the project directory (rather than the current directory of execution). | py |
diff --git a/pystache/template.py b/pystache/template.py
index <HASH>..<HASH> 100644
--- a/pystache/template.py
+++ b/pystache/template.py
@@ -1,4 +1,5 @@
import re
+import cgi
class Template(object):
tag_re = None
@@ -58,12 +59,16 @@ class Template(object):
buffer.append(captures['whitespace'])
... | Adding basic escaped tag support. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,6 +51,7 @@ def write_version_py(path):
# changes we'll want to commit anyway.
version = get_version()
+write_version_py()
try:
from Cython.Distutils import build_ext | an embarrassing typo. I accidentally seem to have removed version writing altogether, rather than just making it nicer in read-only environments. I also tagged the resulting broken release, again. | py |
diff --git a/versions_tests/tests/test_models.py b/versions_tests/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/versions_tests/tests/test_models.py
+++ b/versions_tests/tests/test_models.py
@@ -19,6 +19,7 @@ from unittest import skip, skipUnless
import re
import uuid
+from django import get_version
from d... | ref: #<I> only execute post-migration dependent assert for postgresql and django <I>+ | py |
diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/client/__init__.py
+++ b/elasticsearch/client/__init__.py
@@ -1,5 +1,4 @@
from __future__ import unicode_literals
-import weakref
import logging
from ..transport import Transport
@@ -172... | Do not use weakref to refer to client | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1383,7 +1383,8 @@ def recurse(name,
keep.add(dest)
if os.path.isdir(fn_) and include_empty:
#create empty dir
- os.mkdir(de... | Use the built in salt function to set the dir perms | py |
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_autodetect.py
+++ b/netmiko/ssh_autodetect.py
@@ -188,9 +188,8 @@ class SSHDetect(object):
The confidence for each device_type between 0 and 99 after matching an output (default: 99).
"... | Reverting back a couple of the error strings | py |
diff --git a/anyconfig/backend/shellvars.py b/anyconfig/backend/shellvars.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/shellvars.py
+++ b/anyconfig/backend/shellvars.py
@@ -108,6 +108,7 @@ class Parser(anyconfig.backend.base.FromStreamLoader,
"""
_type = "shellvars"
_ordered = True
+ _dict_o... | change: add _dict_options member to .backend.shellvars.Parser | py |
diff --git a/gravatar/gravatar.py b/gravatar/gravatar.py
index <HASH>..<HASH> 100644
--- a/gravatar/gravatar.py
+++ b/gravatar/gravatar.py
@@ -22,7 +22,7 @@ def add_gravatar(generator, metadata):
#then add gravatar url
if 'email' in metadata.keys():
email_bytes = six.b(metadata['email']).lower()
- ... | Use https instead http to get secure resources content in blog over https | py |
diff --git a/jax/lax.py b/jax/lax.py
index <HASH>..<HASH> 100644
--- a/jax/lax.py
+++ b/jax/lax.py
@@ -841,13 +841,10 @@ class _OpaqueParam(object):
"""Wrapper that hashes on its identity, instead of its contents.
Used to pass unhashable parameters as primitive attributes."""
- __slots__ = ["val", "id"]
+ __s... | Simplify definition of _OpaqueParam to use object identity for hashing/equality. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,22 +34,22 @@ requirements = [
optimization_extra = [
- "qiskit-optimization>=0.2.2",
+ "qiskit-optimization>=0.3.0",
]
finance_extra = [
- "qiskit-finance>=0.2.1",
+ "qiskit-finance>=0.3.0",
]
... | Bump Applications minimum versions (#<I>) | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -58,7 +58,7 @@ elt_list_value=test aa aarrr kkkk mmmmm
\n"""
self.c = Config("linshare-cli",
- config_file=io.BytesIO(sample_config),
+ config_f... | fix tests (utf-8 errors) | py |
diff --git a/bootstrap3/tests.py b/bootstrap3/tests.py
index <HASH>..<HASH> 100644
--- a/bootstrap3/tests.py
+++ b/bootstrap3/tests.py
@@ -91,6 +91,10 @@ class TestForm(forms.Form):
required_css_class = 'bootstrap3-req'
+ # Set this to allow tests to work properly in Django 1.10+
+ # More information, se... | Fix tests for issue #<I> for now | py |
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/logger.py
+++ b/python/ray/tune/logger.py
@@ -95,7 +95,12 @@ class JsonLogger(Logger):
self.config = config
config_out = os.path.join(self.logdir, "params.json")
with open(conf... | [tune] Pretty print params json in logger.py (#<I>) | py |
diff --git a/wal_e/tar_partition.py b/wal_e/tar_partition.py
index <HASH>..<HASH> 100644
--- a/wal_e/tar_partition.py
+++ b/wal_e/tar_partition.py
@@ -402,10 +402,16 @@ def partition(pg_cluster_dir):
for ts_filename in ts_filenames:
matches.append(os.path.join(ts_ro... | Make sure symlinks to tablespaces do not make it into tar partitions. | py |
diff --git a/master/contrib/github_buildbot.py b/master/contrib/github_buildbot.py
index <HASH>..<HASH> 100755
--- a/master/contrib/github_buildbot.py
+++ b/master/contrib/github_buildbot.py
@@ -19,7 +19,7 @@ import os
import sys
import traceback
from hashlib import sha1
-from httplib import BAD_REQUEST
+from httpli... | fix exception logging and respond to the request with the error | py |
diff --git a/everest/resources/repository.py b/everest/resources/repository.py
index <HASH>..<HASH> 100644
--- a/everest/resources/repository.py
+++ b/everest/resources/repository.py
@@ -140,12 +140,7 @@ class RepositoryManager(object):
ent_store = entity_store_class(name,
... | Fixed a choreograhic issue (make sure messaging repo is initialized after messaging has been configured). | py |
diff --git a/bcbio/ngsalign/hisat2.py b/bcbio/ngsalign/hisat2.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/hisat2.py
+++ b/bcbio/ngsalign/hisat2.py
@@ -34,7 +34,10 @@ def align(fastq_file, pair_file, ref_file, names, align_dir, data):
"ref-transcripts-splicesites.txt")
... | Fix for hisat2 on unspliced transcriptomes. The splice sites file is empty if there are no splices in the transcriptome, which causes hisat2 to crash. This fixes that. | py |
diff --git a/pymatgen/apps/borg/tests/test_queen.py b/pymatgen/apps/borg/tests/test_queen.py
index <HASH>..<HASH> 100644
--- a/pymatgen/apps/borg/tests/test_queen.py
+++ b/pymatgen/apps/borg/tests/test_queen.py
@@ -33,7 +33,7 @@ class BorgQueenTest(unittest.TestCase):
drone = VaspToComputedEntryDrone()
... | Update `test_get_data` due to addition of extra test files | py |
diff --git a/tests/dsl.py b/tests/dsl.py
index <HASH>..<HASH> 100644
--- a/tests/dsl.py
+++ b/tests/dsl.py
@@ -268,6 +268,16 @@ class DslTestCase(unittest.TestCase):
from pyshould import patch_mockito
w | should.have_len(1)
w[0].category | should.be(DeprecationWarning)
+
+ def ... | Add test for compatibility with assert keyword | py |
diff --git a/karaage/applications/views/project.py b/karaage/applications/views/project.py
index <HASH>..<HASH> 100644
--- a/karaage/applications/views/project.py
+++ b/karaage/applications/views/project.py
@@ -453,7 +453,6 @@ class StateStepProject(base.State):
project_forms["existing"] = (
... | Don't set make_leader to False for new projects. There is no need to change this value. Change-Id: I<I>d<I>ecb<I>ebb<I>b<I>becdc<I>b<I>bc | py |
diff --git a/tests/test_transforms.py b/tests/test_transforms.py
index <HASH>..<HASH> 100644
--- a/tests/test_transforms.py
+++ b/tests/test_transforms.py
@@ -18,7 +18,6 @@ import numpy as np
import pandas as pd
from datetime import timedelta, datetime
-import unittest
from unittest import TestCase
from zipline... | STY: Remove unused import from transform tests. | py |
diff --git a/routes1846/find_best_routes.py b/routes1846/find_best_routes.py
index <HASH>..<HASH> 100644
--- a/routes1846/find_best_routes.py
+++ b/routes1846/find_best_routes.py
@@ -199,7 +199,7 @@ def _filter_invalid_routes(routes, board, railroad):
if route.contains_cell(CHICAGO_CONNECTIONS_CELL):
... | Fix validation typo. A break which should have been continue caused the validation loop to terminate early. | py |
diff --git a/entei.py b/entei.py
index <HASH>..<HASH> 100755
--- a/entei.py
+++ b/entei.py
@@ -83,7 +83,8 @@ def tokenize(template):
if tag_type != 'variable':
tag_key = ''
- tag_key += grab_literal(r_del).strip()
+ tag_key += grab_literal(r_del)
+ tag_key = tag_key.strip()
... | Fixed whitespace stripping In the last commit I changed how tag_key was being grabbed. This broke the way that I was stripping the whitespace. (whitespace from the front was staying) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name="querybuilder",
- version="0.1.10",
+ version="0.1.11",
packages=[
"querybuilder",
], | * Bump to <I> | py |
diff --git a/bokeh/properties.py b/bokeh/properties.py
index <HASH>..<HASH> 100644
--- a/bokeh/properties.py
+++ b/bokeh/properties.py
@@ -147,7 +147,7 @@ class HasProps(object):
""" Returns a duplicate of this object with all its properties
set appropriately. Values which are containers are shallow-... | clone function needs to use .properties() rather than __properties__ | py |
diff --git a/dedupe/convenience.py b/dedupe/convenience.py
index <HASH>..<HASH> 100644
--- a/dedupe/convenience.py
+++ b/dedupe/convenience.py
@@ -25,6 +25,9 @@ def dataSample(data, sample_size, constrained_matching=False):
else:
data_list_B.append(record)
+ data_list_A.append(dat... | Add the first element of data_list at the end again, as the probablity of it beign selected was zero | py |
diff --git a/HydraLib/python/HydraLib/PluginLib/connection.py b/HydraLib/python/HydraLib/PluginLib/connection.py
index <HASH>..<HASH> 100644
--- a/HydraLib/python/HydraLib/PluginLib/connection.py
+++ b/HydraLib/python/HydraLib/PluginLib/connection.py
@@ -171,10 +171,21 @@ class JsonConnection(object):
... | Add some nicer error messages when you acciendally point a json plugin to soap. | py |
diff --git a/zappa/middleware.py b/zappa/middleware.py
index <HASH>..<HASH> 100644
--- a/zappa/middleware.py
+++ b/zappa/middleware.py
@@ -25,7 +25,7 @@ class ZappaWSGIMiddleware(object):
"""
Middleware functions necessary for a Zappa deployment.
- Most hacks have now been remove except for Set-Cookie pe... | Typo Fix in docstring permutation | py |
diff --git a/filterpy/gh/gh_filter.py b/filterpy/gh/gh_filter.py
index <HASH>..<HASH> 100644
--- a/filterpy/gh/gh_filter.py
+++ b/filterpy/gh/gh_filter.py
@@ -147,7 +147,7 @@ class GHFilterOrder(object):
self.x[0] = x + dxdt + 0.5*ddx*T2 + g*self.residual
self.x[1] = dx + ddx*self.dt + ... | Fix a bug where 2nd order GH ignores k | py |
diff --git a/luigi/worker.py b/luigi/worker.py
index <HASH>..<HASH> 100644
--- a/luigi/worker.py
+++ b/luigi/worker.py
@@ -106,7 +106,7 @@ class TaskProcess(multiprocessing.Process):
try:
task_gen = self.task.run(tracking_url_callback=self.tracking_url_callback)
except TypeError as ex:
- ... | Use updated message check The previous code triggers a DeprecationWarning """ DeprecationWarning: BaseException.message has been deprecated as of Python <I> """ | py |
diff --git a/netpyne/cell/pointCell.py b/netpyne/cell/pointCell.py
index <HASH>..<HASH> 100644
--- a/netpyne/cell/pointCell.py
+++ b/netpyne/cell/pointCell.py
@@ -37,7 +37,7 @@ class PointCell (Cell):
Point Neuron that doesn't use v from Section eg. NetStim, IntFire1,
- '''
+ """
def __init... | fixed bug in pointCell.py | py |
diff --git a/src/manhole.py b/src/manhole.py
index <HASH>..<HASH> 100644
--- a/src/manhole.py
+++ b/src/manhole.py
@@ -55,6 +55,7 @@ try:
except ImportError: # python 3
_ORIGINAL_ALLOCATE_LOCK = _get_original('_thread.allocate_lock')
_ORIGINAL_THREAD = _get_original('threading.Thread')
+_ORIGINAL__ACTIVE = _get... | Do an extra check in reinstall (maybe thread is not in _active). Fixes issue with eventlet+forks (thread appears to get stuck). | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -3132,7 +3132,7 @@ class Document(object):
self.annotationdefaults = {}
self.annotations = [] #Ordered list of incorporated annotations ['token','pos', etc..]
self.ind... | e fix, variable conflicted with method | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -20,7 +20,7 @@ import sys
__copyright__ = "Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>".replace(
"\xe8",
- "e" if sys.getfilesystemencoding() == "a... | Yet another fix for the encoding problems | py |
diff --git a/vcs/backends/base.py b/vcs/backends/base.py
index <HASH>..<HASH> 100644
--- a/vcs/backends/base.py
+++ b/vcs/backends/base.py
@@ -719,6 +719,5 @@ class BaseInMemoryChangeset(object):
:raises ``CommitError``: if any error occurs while committing
"""
- #self.check_integrity(parents... | Fixes #<I> - inmemory changeset commit allow to pass parents paremter | py |
diff --git a/cyphi/subsystem.py b/cyphi/subsystem.py
index <HASH>..<HASH> 100644
--- a/cyphi/subsystem.py
+++ b/cyphi/subsystem.py
@@ -99,17 +99,7 @@ class Subsystem:
return hash((frozenset(self.nodes), self.current_state.tostring(),
self.past_state.tostring(), self.network))
- def _... | Remove _get_inputs, Nodes now have inputs | py |
diff --git a/examples/gtk/server.py b/examples/gtk/server.py
index <HASH>..<HASH> 100755
--- a/examples/gtk/server.py
+++ b/examples/gtk/server.py
@@ -5,6 +5,11 @@ An example of using GTK from Emacs.
* Manipulate GTK window from Emacs:
+ Python server exposes remote methods called `destroy` and
+ `set_button_lab... | Change docstring in examples/gtk/server.py | py |
diff --git a/launch_control/utils/json/decoder.py b/launch_control/utils/json/decoder.py
index <HASH>..<HASH> 100644
--- a/launch_control/utils/json/decoder.py
+++ b/launch_control/utils/json/decoder.py
@@ -140,7 +140,8 @@ class PluggableJSONDecoder(json.JSONDecoder):
obj = proxy_cls.from_json(json_doc)
... | When Proxy types don't map correctly raise a more descrptive exception | py |
diff --git a/sundial/__init__.py b/sundial/__init__.py
index <HASH>..<HASH> 100644
--- a/sundial/__init__.py
+++ b/sundial/__init__.py
@@ -5,6 +5,6 @@ from django.utils import version
__all__ = ['VERSION', '__version__']
-VERSION = (1, 0, 3, 'final', 0)
+VERSION = (1, 0, 4, 'alpha', 0)
__version__ = version.get... | Started <I> alpha development. | py |
diff --git a/sos/plugins/cgroups.py b/sos/plugins/cgroups.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/cgroups.py
+++ b/sos/plugins/cgroups.py
@@ -12,12 +12,14 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-from sos.plugintools imp... | Fix typo in cgroups module and set plugin_name Fix a typo in the plugin class import statement and set the base class's plugin_name. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -198,7 +198,7 @@ setup(
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
- "License :: Public Domain",
+ ... | setup.py -> license is MIT | py |
diff --git a/qless/job.py b/qless/job.py
index <HASH>..<HASH> 100755
--- a/qless/job.py
+++ b/qless/job.py
@@ -99,7 +99,7 @@ class Job(object):
def ttl(self):
'''How long until this expires, in seconds'''
- return time.time() - self.expires
+ return self.expires - time.time()
... | Now ttl reports the time to live in the right sign, as well. | py |
diff --git a/src/noseperf/stacks.py b/src/noseperf/stacks.py
index <HASH>..<HASH> 100644
--- a/src/noseperf/stacks.py
+++ b/src/noseperf/stacks.py
@@ -63,6 +63,7 @@ def get_lines_from_file(filename, lineno, context_lines, loader=None, module_nam
source = None
if source is not None:
so... | Ensure upper bound never exceeds number of lines in file | py |
diff --git a/mov.py b/mov.py
index <HASH>..<HASH> 100755
--- a/mov.py
+++ b/mov.py
@@ -176,7 +176,7 @@ def main():
ARGS.pattern = ARGS.pattern[0]
commands = ('create', 'update', 'destroy', 'ls', 'play')
# Call the respective function for the command entered.
- locals()[[command for command in comm... | Fix command functions being out of scope after creating main | py |
diff --git a/tpot/tpot.py b/tpot/tpot.py
index <HASH>..<HASH> 100644
--- a/tpot/tpot.py
+++ b/tpot/tpot.py
@@ -265,7 +265,7 @@ class TPOT(object):
func = self.toolbox.compile(expr=self.optimized_pipeline_)
result = func(training_testing_data)
- return result[result['group'] == 'testing', 'gue... | Fix predict function Needed to add `.loc` to the DataFrame lookup at the end of the function. | py |
diff --git a/sharepoint/lists/moderation.py b/sharepoint/lists/moderation.py
index <HASH>..<HASH> 100644
--- a/sharepoint/lists/moderation.py
+++ b/sharepoint/lists/moderation.py
@@ -8,6 +8,8 @@ LIST_WEBSERVICE = '_vti_bin/Lists.asmx'
class ModerationStatus(object):
def __init__(self, value, label):
self... | Added __repr__ to moderation | py |
diff --git a/syllabify.py b/syllabify.py
index <HASH>..<HASH> 100644
--- a/syllabify.py
+++ b/syllabify.py
@@ -272,6 +272,18 @@ def debreath(word):
return word
+def rebreath(word):
+ if word == "":
+ return word
+ if word.startswith("h"):
+ word = add_necessary_breathing(word[1:], ROUGH... | added rebreath method added rebreath function | py |
diff --git a/agents/ppo/algorithm.py b/agents/ppo/algorithm.py
index <HASH>..<HASH> 100644
--- a/agents/ppo/algorithm.py
+++ b/agents/ppo/algorithm.py
@@ -131,7 +131,8 @@ class PPOAlgorithm(object):
if self._last_state is None:
state = None
else:
- state = tf.gather(self._last_state, agent... | Fix carrying over nested state tuples in PPO. | py |
diff --git a/examples/gae/showcase/main.py b/examples/gae/showcase/main.py
index <HASH>..<HASH> 100644
--- a/examples/gae/showcase/main.py
+++ b/examples/gae/showcase/main.py
@@ -2,12 +2,17 @@
import os
import logging
+import sys
+reload(sys)
+sys.setdefaultencoding('utf-8')
import jinja2
import webapp2
from a... | Fixed utf-8 error. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
author='laughingman7743',
author_email='laughingman7743@gmail.com',
license='MIT License',
- packages=find_packages(),
+ packages=find_packages('.', exclude=['tests']),
package_d... | Stop bundling tests when packaging Before this the tests would be installed alongside the package, meaning that there'd be a global tests package installed alongside pyathena. As a user of pyathena I don't need the tests in production and would rather not have them installed. :) | py |
diff --git a/ecell4/util/viz.py b/ecell4/util/viz.py
index <HASH>..<HASH> 100644
--- a/ecell4/util/viz.py
+++ b/ecell4/util/viz.py
@@ -7,6 +7,7 @@ import os
import uuid
import json
import base64
+import copy
def init_ipynb():
"""Load all depending JavaScript libraries to IPython notebook.
@@ -18,7 +19,7 @@ d... | accept a species list for a visualization | py |
diff --git a/pygtail/core.py b/pygtail/core.py
index <HASH>..<HASH> 100755
--- a/pygtail/core.py
+++ b/pygtail/core.py
@@ -23,7 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from os import stat
-from os.path import exists
+from os.path import exists, getsize
import sys
impor... | Fix the case where an empty offset-file exists | py |
diff --git a/examples/example_stats.py b/examples/example_stats.py
index <HASH>..<HASH> 100755
--- a/examples/example_stats.py
+++ b/examples/example_stats.py
@@ -84,8 +84,10 @@ pickle.dump(nd,
open("dingo_grids_{0}-{1}.pkl".format(mvgd_first, mvgd_last), "wb"))
nodes_stats, edges_stats = nd.to_dataframe(... | Print no index to csv results | py |
diff --git a/FlowCal/mef.py b/FlowCal/mef.py
index <HASH>..<HASH> 100644
--- a/FlowCal/mef.py
+++ b/FlowCal/mef.py
@@ -28,7 +28,7 @@ else:
def clustering_gmm(data,
n_clusters,
tol=1e-7,
- min_covar=1e-2,
+ min_covar=5e-5,
s... | Changed log scaling in mef.clustering_gmm. | py |
diff --git a/tests/common.py b/tests/common.py
index <HASH>..<HASH> 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -9,6 +9,7 @@ def get_context() -> ModernGL.Context:
ctx = _static.get('context')
if ctx is None:
+ ModernGL.mgl.set_default_context_size(100, 100)
ctx = ModernGL.create_s... | resize context before tests (debug) | py |
diff --git a/tensorflow_probability/python/distributions/stochastic_process_properties_test.py b/tensorflow_probability/python/distributions/stochastic_process_properties_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/stochastic_process_properties_test.py
+++ b/tensorflow_probabil... | Assume no Cholesky failures in sample gradients test. PiperOrigin-RevId: <I> | py |
diff --git a/holoviews/ipython/magics.py b/holoviews/ipython/magics.py
index <HASH>..<HASH> 100644
--- a/holoviews/ipython/magics.py
+++ b/holoviews/ipython/magics.py
@@ -696,12 +696,11 @@ class TimerMagic(Magics):
@staticmethod
def elapsed_time():
- elapsed = time.time() - TimerMagic.start_time
- ... | Fixed Timer reporting for long durations | py |
diff --git a/umap/distances.py b/umap/distances.py
index <HASH>..<HASH> 100644
--- a/umap/distances.py
+++ b/umap/distances.py
@@ -311,7 +311,10 @@ def correlation(x, y):
norm_y += shifted_y ** 2
dot_product += shifted_x * shifted_y
- return (1.0 - dot_product) / np.sqrt(norm_x * norm_y)
+ if ... | Avoid NaNs in correlation distance in bad cases | py |
diff --git a/trezor_agent/gpg/keyring.py b/trezor_agent/gpg/keyring.py
index <HASH>..<HASH> 100644
--- a/trezor_agent/gpg/keyring.py
+++ b/trezor_agent/gpg/keyring.py
@@ -93,8 +93,9 @@ def _parse_ecdsa_sig(args):
return (util.bytes2num(sig_r),
util.bytes2num(sig_s))
-# DSA happens to have the same s... | gpg: add support for adding subkeys to EdDSA primary GPG keys | py |
diff --git a/tests/controller/test_controller.py b/tests/controller/test_controller.py
index <HASH>..<HASH> 100644
--- a/tests/controller/test_controller.py
+++ b/tests/controller/test_controller.py
@@ -201,7 +201,8 @@ def test_import_remote_gns3vm_1_x(controller, controller_config_path, async_run)
with open(os.pa... | Fix a test failure when test run and gns3server is running | py |
diff --git a/python/ray/monitor.py b/python/ray/monitor.py
index <HASH>..<HASH> 100644
--- a/python/ray/monitor.py
+++ b/python/ray/monitor.py
@@ -4,6 +4,7 @@ import argparse
import logging
import logging.handlers
import os
+import sys
import signal
import time
import traceback
@@ -345,6 +346,11 @@ if __name__ ==... | [Monitor] Log some diagnosis information on startup (#<I>) * . * done? * . * . | py |
diff --git a/examples/nc-chat.py b/examples/nc-chat.py
index <HASH>..<HASH> 100755
--- a/examples/nc-chat.py
+++ b/examples/nc-chat.py
@@ -20,8 +20,10 @@ def start():
greenhouse.schedule(get_name, args=(clientsock,))
except KeyboardInterrupt:
- print "KeyboardInterrupt caught, closing listene... | close ALL client connections when killing the server process | py |
diff --git a/ipopt/version.py b/ipopt/version.py
index <HASH>..<HASH> 100644
--- a/ipopt/version.py
+++ b/ipopt/version.py
@@ -13,4 +13,4 @@ URL: https://github.com/matthias-k/cyipopt
License: EPL 1.0
"""
-__version__ = '0.2.0.dev0'
+__version__ = '0.2.0' | Bump to version <I>. | py |
diff --git a/_pydevd_bundle/pydevd_constants.py b/_pydevd_bundle/pydevd_constants.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_constants.py
+++ b/_pydevd_bundle/pydevd_constants.py
@@ -139,6 +139,7 @@ def protect_libraries_from_patching():
del sys.modules[name]
# import for side effects
+ ... | Fix accidentally remove import (PY-<I>) (cherry picked from commit <I>bb<I>) | py |
diff --git a/vanilla/core.py b/vanilla/core.py
index <HASH>..<HASH> 100644
--- a/vanilla/core.py
+++ b/vanilla/core.py
@@ -1710,6 +1710,9 @@ class HTTPClient(HTTPSocket):
def consume(self):
return ''.join(self.body)
+ def __repr__(self):
+ return 'HTTPClient.Response(status=%r)... | and a __repr__ for HTTPClient.Response | py |
diff --git a/chess/engine.py b/chess/engine.py
index <HASH>..<HASH> 100644
--- a/chess/engine.py
+++ b/chess/engine.py
@@ -718,6 +718,10 @@ class UciOptionMap(collections.abc.MutableMapping):
return "{}({})".format(type(self).__name__, dict(self.items()))
+async def popen_uci(command, **kwargs):
+ retur... | add chess.engine.popen_uci | py |
diff --git a/holoviews/view/sheetviews.py b/holoviews/view/sheetviews.py
index <HASH>..<HASH> 100644
--- a/holoviews/view/sheetviews.py
+++ b/holoviews/view/sheetviews.py
@@ -341,8 +341,8 @@ class SheetMatrix(SheetCoordinateSystem, Matrix):
xdensity = xdensity if xdensity else dim1/(r-l)
ydensity = yd... | Fixed bug in SheetMatrix causing bounds not to be respected | py |
diff --git a/pycbc/distributions/angular.py b/pycbc/distributions/angular.py
index <HASH>..<HASH> 100644
--- a/pycbc/distributions/angular.py
+++ b/pycbc/distributions/angular.py
@@ -222,6 +222,10 @@ class SinAngle(UniformAngle):
self._domain = boundaries.Bounds(self._domainbounds[0],
self._domain... | Set bounds for SinAngle with domain of the class. (#<I>) | py |
diff --git a/salt/engines/logstash.py b/salt/engines/logstash.py
index <HASH>..<HASH> 100644
--- a/salt/engines/logstash.py
+++ b/salt/engines/logstash.py
@@ -41,7 +41,7 @@ def __virtual__():
log = logging.getLogger(__name__)
-def start(host, port=5959, tag='salt/engine/logstash', proto='tcp'):
+def start(host, po... | set logstash engine defaults to udp | py |
diff --git a/gql/client.py b/gql/client.py
index <HASH>..<HASH> 100644
--- a/gql/client.py
+++ b/gql/client.py
@@ -874,7 +874,7 @@ class SyncClientSession:
return result.data
def fetch_schema(self) -> None:
- """Fetch the GraphQL schema explicitely using introspection.
+ """Fetch the Graph... | DOC Minor Spelling Mistake (#<I>) | py |
diff --git a/samples/utilityimageformatconverter1.py b/samples/utilityimageformatconverter1.py
index <HASH>..<HASH> 100644
--- a/samples/utilityimageformatconverter1.py
+++ b/samples/utilityimageformatconverter1.py
@@ -24,7 +24,6 @@ def show_image(img, message):
image_array = img.GetArray()
print(image_array)... | programming sample fixed. ImageFormatConverter must be instantiated | py |
diff --git a/pyneuroml/pynml.py b/pyneuroml/pynml.py
index <HASH>..<HASH> 100644
--- a/pyneuroml/pynml.py
+++ b/pyneuroml/pynml.py
@@ -347,7 +347,7 @@ def get_value_in_si(nml2_quantity):
"""
try:
return float(nml2_quantity)
- except:
+ except ValueError:
model = get_lems_model_with_uni... | chore(pynml): specifically catch a ValueError | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.