diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scanpy/plotting.py b/scanpy/plotting.py
index <HASH>..<HASH> 100755
--- a/scanpy/plotting.py
+++ b/scanpy/plotting.py
@@ -73,7 +73,7 @@ def plot_tool(dplot, adata,
if smp in adata.smp_keys():
if adata.smp[smp].dtype.char in ['S', 'U']:
categorical = True
- ... | threshold for categorical plotting at <I> categories | py |
diff --git a/treeplacing/models.py b/treeplacing/models.py
index <HASH>..<HASH> 100644
--- a/treeplacing/models.py
+++ b/treeplacing/models.py
@@ -69,7 +69,9 @@ class Node(object):
def search(self, variants):
assert self.children[0].parent is not None
assert self.children[1].parent is not None
- ov... | Use & sharing instead of count for unbalanced choice | py |
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/character.py
+++ b/LiSE/LiSE/character.py
@@ -127,9 +127,12 @@ class AbstractCharacter(MutableMapping):
if name not in self.node:
self.add_thing(name, location, **kwargs)
return se... | Don't try to autoincrement thing names if the name is not a string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -868,8 +868,8 @@ class SaltDistribution(distutils.dist.Distribution):
'Salt\'s pre-configured SPM formulas directory'),
('salt-spm-pillar-dir=', None,
'Salt\'s pre-configured SPM pillar directory')... | Adding home_dir to SaltDistribution.global_options. | py |
diff --git a/glances/plugins/glances_batpercent.py b/glances/plugins/glances_batpercent.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_batpercent.py
+++ b/glances/plugins/glances_batpercent.py
@@ -101,11 +101,8 @@ class glancesGrabBat:
Update the stats
"""
if self.initok:
- ... | Fix bug when batinfo library is installed but no battery is available on the system | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -92,7 +92,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+html_theme = 'classic'
# Theme option... | Actually this change is needed just to be able to verify the documentation is ok with sphinx <I>. | py |
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/new_builder.py
+++ b/pmagpy/new_builder.py
@@ -1200,6 +1200,12 @@ class MagicDataFrame(object):
if name not in ['measurement', 'age']:
self.df[name] = self.df.index
elif name == 'measuremen... | MagicDataFrame: deal with number/treat_step_num in both places where self.df[‘measurement’] is set | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,10 +5,11 @@
from setuptools import setup
setup(name='FoxPuppet',
- version='0.1.0',
+ use_scm_version=True,
description='Firefox user interface testing model for use with Selenium',
long_descript... | Switch to setuptools_scm for managing versions | py |
diff --git a/ai/backend/client/kernel.py b/ai/backend/client/kernel.py
index <HASH>..<HASH> 100644
--- a/ai/backend/client/kernel.py
+++ b/ai/backend/client/kernel.py
@@ -28,7 +28,8 @@ class BaseKernel(BaseFunction):
envs: Optional[Mapping[str, str]]=None,
max_mem: int=0,... | Fix the client-side validation of client token length. | py |
diff --git a/aioinflux/__init__.py b/aioinflux/__init__.py
index <HASH>..<HASH> 100644
--- a/aioinflux/__init__.py
+++ b/aioinflux/__init__.py
@@ -11,6 +11,6 @@ except ModuleNotFoundError:
warnings.warn(no_pandas_warning)
from .client import InfluxDBClient, InfluxDBError, logger
-from .iterutils import iterpoin... | Expose InfluxDBResult and InfluxDBChunkedResult | py |
diff --git a/utils/gh2k.py b/utils/gh2k.py
index <HASH>..<HASH> 100755
--- a/utils/gh2k.py
+++ b/utils/gh2k.py
@@ -254,7 +254,8 @@ Thank you very much,
def publish_twitter(twitter_contact, owner):
""" Publish in twitter the dashboard """
dashboard_url = CAULDRON_DASH_URL + "/%s" % (owner)
- tweet = "@%s y... | [gh2k] Remove #opendevmetrics to avoid using more than <I> chars in a tweet. | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -101,7 +101,7 @@ LANG_RELEASE_MATRIX = {
'v1.7.4': None
},
{
- 'v1.8... | Add go release versions to client_matrix.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
'Topic :: Software Development :: Testing'
],
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
- download_url='https://github.com/avihad/twistes/tarball/... | Update github source link in pypi setup file | py |
diff --git a/publ/rendering.py b/publ/rendering.py
index <HASH>..<HASH> 100644
--- a/publ/rendering.py
+++ b/publ/rendering.py
@@ -290,10 +290,10 @@ def render_entry(entry_id, slug_text='', category=''):
raise http_error.NotFound("No such entry")
# Show an access denied error if the entry has been set t... | Fix PonyORM-related DRAFT/GONE regression | py |
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/tests/test_validators.py
+++ b/jsonschema/tests/test_validators.py
@@ -100,14 +100,6 @@ class TestLegacyTypeCheckCreation(TestCase):
self.smelly = mock.MagicMock()
self.v... | This is private, no need to unit test it directly. | py |
diff --git a/src/psd_tools/decoder/tagged_blocks.py b/src/psd_tools/decoder/tagged_blocks.py
index <HASH>..<HASH> 100644
--- a/src/psd_tools/decoder/tagged_blocks.py
+++ b/src/psd_tools/decoder/tagged_blocks.py
@@ -136,13 +136,13 @@ def _decode_type_tool_object_setting(data):
# This decoder needs to be updated if ... | preserve raw data if descriptor can't be parsed | py |
diff --git a/custodia/server/__init__.py b/custodia/server/__init__.py
index <HASH>..<HASH> 100644
--- a/custodia/server/__init__.py
+++ b/custodia/server/__init__.py
@@ -26,16 +26,16 @@ logger = logging.getLogger('custodia')
CONFIG_SPECIALS = ['authenticators', 'authorizers', 'consumers', 'stores']
-argparser = a... | Provide an API to run server with custom argparser custodia.server.main() now accepts an optional argparser to replace the default argparser with a custom argparser instance. It allows easy customization of server, e.g. for different default config file, prog name etc. I plan to use the feature in FreeIPA to provide ... | py |
diff --git a/raiden/tests/integration/test_stress.py b/raiden/tests/integration/test_stress.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/test_stress.py
+++ b/raiden/tests/integration/test_stress.py
@@ -296,6 +296,7 @@ def assert_channels(raiden_network, token_network_identifier, deposit):
@pytest.mark... | Skip stress test due to being flaky Related to: <URL> | py |
diff --git a/tests/integration-tests/virtual_environments.py b/tests/integration-tests/virtual_environments.py
index <HASH>..<HASH> 100644
--- a/tests/integration-tests/virtual_environments.py
+++ b/tests/integration-tests/virtual_environments.py
@@ -55,7 +55,7 @@ def prepare_virtualenv(packages=()):
vpython = os.... | Fix tests: run pip from python not directly | py |
diff --git a/aioapp/amqp.py b/aioapp/amqp.py
index <HASH>..<HASH> 100644
--- a/aioapp/amqp.py
+++ b/aioapp/amqp.py
@@ -92,8 +92,8 @@ class Channel:
'amqp:publish {} {}'.format(exchange_name, routing_key),
CLIENT
)
- context_span.tag(SPAN_TYPE, SPAN_TYPE_AMQP, Tr... | fix tracer span tag for amqp | py |
diff --git a/nba_py/shotchart.py b/nba_py/shotchart.py
index <HASH>..<HASH> 100644
--- a/nba_py/shotchart.py
+++ b/nba_py/shotchart.py
@@ -45,7 +45,7 @@ class ShotChart:
'OpponentTeamID' : opponent_team_id,
'VsConference' : vs_conf,
... | Changes Position to PlayerPosition to appease the shotchart endpoint | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,7 @@ setup(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
... | Update python support. | py |
diff --git a/testproject/tests/tests/test_restframework.py b/testproject/tests/tests/test_restframework.py
index <HASH>..<HASH> 100644
--- a/testproject/tests/tests/test_restframework.py
+++ b/testproject/tests/tests/test_restframework.py
@@ -34,14 +34,14 @@ class MockModelSerializer(serializers.ModelSerializer):
... | Fix tests to run with drf <I> & <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ REQUIRES = []
setup(
name='stackinabox',
version='0.1',
- description='OpenStack/Rackspace Service Testing Suite',
+ description='RESTful API Testing Suite',
license='Apache License 2.0',
... | Updated package description to match the README | py |
diff --git a/bcbio/provenance/programs.py b/bcbio/provenance/programs.py
index <HASH>..<HASH> 100644
--- a/bcbio/provenance/programs.py
+++ b/bcbio/provenance/programs.py
@@ -44,6 +44,7 @@ def _broad_versioner(type):
elif type == "picard":
return runner.get_picard_version("ViewSam")
elif ... | bcbio/provenance/programs.py fixed for mutect version detection | py |
diff --git a/command/build_ext.py b/command/build_ext.py
index <HASH>..<HASH> 100644
--- a/command/build_ext.py
+++ b/command/build_ext.py
@@ -748,7 +748,7 @@ class build_ext(Command):
if sysconfig.get_config_var('Py_ENABLE_SHARED'):
pythonlib = 'python{}.{}{}'.format(
... | - Issue #<I>: Fix linking extension modules for cross builds. Patch by Xavier de Gaye. | py |
diff --git a/chef/lib/chef/provider/package/yum-dump.py b/chef/lib/chef/provider/package/yum-dump.py
index <HASH>..<HASH> 100644
--- a/chef/lib/chef/provider/package/yum-dump.py
+++ b/chef/lib/chef/provider/package/yum-dump.py
@@ -120,10 +120,17 @@ def dump_packages(yb, list):
pkg.type = 'a'
packages[str(pkg)... | Lame fix for RHEL4 - mark all installed packages as available for reinstall. | py |
diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py
index <HASH>..<HASH> 100644
--- a/aiohttp/multipart.py
+++ b/aiohttp/multipart.py
@@ -647,15 +647,22 @@ class MultipartReader:
if chunk == b'':
raise ValueError("Could not find starting boundary %r"
... | Correctly handle newline detection not only for open boundary but for close mark too (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
install_requires=['requests>=1.2.3',
'requests_oauthlib>=0.3.3',
'tlslite>=0.4.4'],
- setup_requires=['sphinx', 'requests_oauthlib'],
+ setup_requi... | remove `requests_oauthlib` from `setup_requires` I can't see why this is needed (install works without it), but if a conflicting (older) version of e.g. oauthlib is already installed, the install fails with pkg_resources.VersionConflict | py |
diff --git a/pysc2/env/sc2_env.py b/pysc2/env/sc2_env.py
index <HASH>..<HASH> 100644
--- a/pysc2/env/sc2_env.py
+++ b/pysc2/env/sc2_env.py
@@ -626,6 +626,8 @@ class SC2Env(environment.Base):
if (self._save_replay_episodes > 0 and
self._episode_count % self._save_replay_episodes == 0):
self.sa... | Note the reason for ending after 2^<I> steps. PiperOrigin-RevId: <I> | py |
diff --git a/grlc.py b/grlc.py
index <HASH>..<HASH> 100755
--- a/grlc.py
+++ b/grlc.py
@@ -2,9 +2,9 @@
#!/usr/bin/env python
from flask import Flask, request, jsonify, render_template
+import urllib
import urllib2
import json
-from SPARQLWrapper import SPARQLWrapper, JSON
import StringIO
import logging
import ... | Bypassing accept headers, removing SPARQLWrapper | py |
diff --git a/controller/api/models.py b/controller/api/models.py
index <HASH>..<HASH> 100644
--- a/controller/api/models.py
+++ b/controller/api/models.py
@@ -381,7 +381,7 @@ class App(UuidAuditedModel):
# HACK (bacongobbler): we need to wait until publisher has a chance to publish each
# service to e... | ref(controller): switch to xrange `range` returns a copy of the list in-memory at the first iteration, whereas `xrange` lazily evaluates, causing only one value present during runtime. Ergo, it is faster and more efficient. | py |
diff --git a/examples/sampleserver.py b/examples/sampleserver.py
index <HASH>..<HASH> 100644
--- a/examples/sampleserver.py
+++ b/examples/sampleserver.py
@@ -76,14 +76,16 @@ class ConcreteServer(OpenIDServer):
def get_lifetime(self, req):
return self.lifespan
-## def get_user_setup_url(self, req):
... | [project @ reimplement get_user_setup_url] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,7 @@ setup(
classifiers=[
'Private :: Do Not Upload to pypi server',
],
+ packages=[],
install_requires=[
'pip',
], | fix: main setup.py packages should be given explicitly | py |
diff --git a/msk/util.py b/msk/util.py
index <HASH>..<HASH> 100644
--- a/msk/util.py
+++ b/msk/util.py
@@ -37,9 +37,8 @@ from msk import __version__
from msk.exceptions import PRModified, MskException, SkillNameTaken
ASKPASS = '''#!/usr/bin/env python3
-import sys
-print(r"""{token}"""
-)'''
+print(r"""{token}""")
... | Simplify ask-pass script sys isn't used, it only needs to print the token to stdout for both user and password. | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -3,7 +3,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy-nightly'
-__version__ = '2.0.0a18'
+__version__ = '2.0.0a19'
__summary__ = 'Industrial-strengt... | Increment version to <I>a<I> | py |
diff --git a/teslajsonpy/controller.py b/teslajsonpy/controller.py
index <HASH>..<HASH> 100644
--- a/teslajsonpy/controller.py
+++ b/teslajsonpy/controller.py
@@ -149,7 +149,7 @@ async def wake_up(wrapped, instance, args, kwargs) -> Callable:
is_wake_command = False
is_energysite_command = False
if wrapp... | fix: fix extraction of car_id from api call | py |
diff --git a/drench/peer.py b/drench/peer.py
index <HASH>..<HASH> 100644
--- a/drench/peer.py
+++ b/drench/peer.py
@@ -249,6 +249,8 @@ class Peer(object):
# Write out
byte_index = piece_index * self.torrent.piece_length
+ self.piece = self.init_piece()
+ ... | Stop waiting to write out before requesting next piece | py |
diff --git a/mailqueue/models.py b/mailqueue/models.py
index <HASH>..<HASH> 100644
--- a/mailqueue/models.py
+++ b/mailqueue/models.py
@@ -6,6 +6,7 @@
#
#---------------------------------------------#
import datetime
+from django.utils.timezone import utc
from django.db import models
from django.core.mail import... | Fixed warning when timezone support is enabled. | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -1720,7 +1720,7 @@ class Gitlab(object):
else:
return False
- def createfile(self, project_id, file_path, branch_name, content, commit_message):
+ def creat... | Add a parameter 'encoding' to function createfile() to support upload file that is in text or encoded in base<I> | py |
diff --git a/asana/client.py b/asana/client.py
index <HASH>..<HASH> 100644
--- a/asana/client.py
+++ b/asana/client.py
@@ -1,19 +1,19 @@
+from types import ModuleType
+import json
+import platform
+import time
+
+import requests
+
from . import session
from . import resources
from . import error
from . import versi... | use try block for conditional import in order to support <I> and earlier | py |
diff --git a/tensor2tensor/models/video/sv2p.py b/tensor2tensor/models/video/sv2p.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/models/video/sv2p.py
+++ b/tensor2tensor/models/video/sv2p.py
@@ -132,10 +132,7 @@ class NextFrameSv2p(base.NextFrameBase, base_vae.NextFrameBaseVae):
enc2, input_reward, "rewa... | Rolling back an SV2P modification which completely broke the model. PiperOrigin-RevId: <I> | py |
diff --git a/cacheback/base.py b/cacheback/base.py
index <HASH>..<HASH> 100644
--- a/cacheback/base.py
+++ b/cacheback/base.py
@@ -384,7 +384,8 @@ class Job(object):
# ASYNC HELPER METHODS
# --------------------
- def job_refresh(klass_str, obj_args, obj_kwargs, call_args, call_kwargs):
+ @classmethod... | Added missing classmethod decorator. | py |
diff --git a/bin/build.py b/bin/build.py
index <HASH>..<HASH> 100755
--- a/bin/build.py
+++ b/bin/build.py
@@ -16,6 +16,10 @@ def main():
for dirname in dirs:
if not dirname.startswith('de'):
continue
+ if not os.path.isdir(dirname):
+ os.mkdir(dirname)
+ with open(os... | Script build.py now saves numpy arrays to directories with names like "de<I>". | py |
diff --git a/src/cobra/test/test_flux_analysis/test_variability.py b/src/cobra/test/test_flux_analysis/test_variability.py
index <HASH>..<HASH> 100644
--- a/src/cobra/test/test_flux_analysis/test_variability.py
+++ b/src/cobra/test/test_flux_analysis/test_variability.py
@@ -6,7 +6,6 @@ from __future__ import absolute_i... | refactor: remove six usage in test_variability.py | py |
diff --git a/SpiffWorkflow/serializer/dict.py b/SpiffWorkflow/serializer/dict.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/serializer/dict.py
+++ b/SpiffWorkflow/serializer/dict.py
@@ -691,14 +691,15 @@ class DictionarySerializer(Serializer):
# As we serialize back up, keep only one copy of any sub_workf... | Assure we pull all the sub-workflow definitions to the top. Not adding a specific test for this, but save/restore tests this well across many workflows. | py |
diff --git a/downhill/base.py b/downhill/base.py
index <HASH>..<HASH> 100644
--- a/downhill/base.py
+++ b/downhill/base.py
@@ -8,7 +8,6 @@ import numpy as np
import theano
import theano.tensor as TT
import warnings
-import sys
from . import util
@@ -110,10 +109,7 @@ class Optimizer(util.Registrar(str('Base'), (... | Don't bother with utf-8 grad symbol. :-/ | py |
diff --git a/rinoh/style.py b/rinoh/style.py
index <HASH>..<HASH> 100644
--- a/rinoh/style.py
+++ b/rinoh/style.py
@@ -95,7 +95,10 @@ class Style(dict):
return copy
def __getattr__(self, attribute):
- return self[attribute]
+ if attribute in self._supported_attributes():
+ retur... | Only forward *style* attribute to item lookups Avoids trouble when Sphinx tries to access __getstate__ and __setstate__ | py |
diff --git a/salt/utils/lazy.py b/salt/utils/lazy.py
index <HASH>..<HASH> 100644
--- a/salt/utils/lazy.py
+++ b/salt/utils/lazy.py
@@ -98,8 +98,16 @@ class LazyDict(collections.MutableMapping):
'''
Check if the name is in the dict and return it if it is
'''
- if name in self._dict:
- ... | Makes changes as suggested by Thomas so the loader does not break | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,8 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.4',
+ ... | Should support Python <I>/<I> | py |
diff --git a/foolbox/attacks/ead.py b/foolbox/attacks/ead.py
index <HASH>..<HASH> 100644
--- a/foolbox/attacks/ead.py
+++ b/foolbox/attacks/ead.py
@@ -177,7 +177,7 @@ class EADAttack(MinimizationAttack):
break # stop optimization if there has been no progress
loss_at_previ... | Fix bug when adversarial check is performed at y_k (#<I>) | py |
diff --git a/hvac/api/system_backend/health.py b/hvac/api/system_backend/health.py
index <HASH>..<HASH> 100644
--- a/hvac/api/system_backend/health.py
+++ b/hvac/api/system_backend/health.py
@@ -63,7 +63,7 @@ class Health(SystemBackendMixin):
api_path = utils.format_url('/v1/sys/health')
retur... | fix health.py read_health_status GET method to use query-strings intead of post body | py |
diff --git a/eulfedora/models.py b/eulfedora/models.py
index <HASH>..<HASH> 100644
--- a/eulfedora/models.py
+++ b/eulfedora/models.py
@@ -1027,8 +1027,10 @@ class DigitalObject(object):
self.default_pidspace = default_pidspace
except AttributeError:
# allow extending cl... | revise default pidspace warning to include more information, only warn if there is a conflict | py |
diff --git a/examples/blueprints.py b/examples/blueprints.py
index <HASH>..<HASH> 100644
--- a/examples/blueprints.py
+++ b/examples/blueprints.py
@@ -18,7 +18,7 @@ async def foo2(request):
return json({'msg': 'hi from blueprint2'})
-app.register_blueprint(blueprint)
-app.register_blueprint(blueprint2)
+app.bl... | use blueprint method instead of deprecated register_blueprint | py |
diff --git a/auth0/v3/management/__init__.py b/auth0/v3/management/__init__.py
index <HASH>..<HASH> 100644
--- a/auth0/v3/management/__init__.py
+++ b/auth0/v3/management/__init__.py
@@ -9,6 +9,7 @@ from .email_templates import EmailTemplates
from .emails import Emails
from .grants import Grants
from .guardian impor... | Import hooks in management __init__ so that 'from auth0.v3.management import Hooks' is possible | py |
diff --git a/pgpy/packet/types.py b/pgpy/packet/types.py
index <HASH>..<HASH> 100644
--- a/pgpy/packet/types.py
+++ b/pgpy/packet/types.py
@@ -157,9 +157,19 @@ class HashAlgo(PFIntEnum):
@property
def digestlen(self):
- if self == HashAlgo.SHA1:
+ if self == HashAlgo.MD5:
+ return 1... | completed HashAlgo.digestlen | py |
diff --git a/openxc/tools/diagnostics.py b/openxc/tools/diagnostics.py
index <HASH>..<HASH> 100644
--- a/openxc/tools/diagnostics.py
+++ b/openxc/tools/diagnostics.py
@@ -47,7 +47,7 @@ class ResponseHandler(object):
if arguments.pid is not None:
request['request']['pid'] = int(arguments.pid, 0)
... | When sending a diag request, put frequency in request object not parent. | py |
diff --git a/tests/python/unittest/test_optimizer.py b/tests/python/unittest/test_optimizer.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_optimizer.py
+++ b/tests/python/unittest/test_optimizer.py
@@ -702,7 +702,7 @@ class PySignum(mx.optimizer.Optimizer):
else:
weight[:] = (1 - ... | removed fixed from test_optimizer.test_signum (#<I>) | py |
diff --git a/h2o-py/h2o/frame.py b/h2o-py/h2o/frame.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/frame.py
+++ b/h2o-py/h2o/frame.py
@@ -664,7 +664,7 @@ class H2OVec:
# whole vec replacement
self._len_check(b)
# lazy update in-place of the whole vec
- self._expr = Expr("=", Expr("[", self._e... | handle assign null over 0 ... as well as assign 0 over null | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -277,7 +277,7 @@ class LabelledData(param.Parameterized):
label = param.String(default='', constant=True, doc="""
Optional label describi... | Temporarily reverted typo fix to get tests passing | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -9198,6 +9198,7 @@ def aniso_magic(infile='specimens.txt', samp_file='samples.txt', site_file='site
vec=vec, num_bootstraps=num_bootstraps, title=site)
fi... | fix aniso_magic error when there are no figures for server, #<I> | py |
diff --git a/unittests/test_xml_generators.py b/unittests/test_xml_generators.py
index <HASH>..<HASH> 100644
--- a/unittests/test_xml_generators.py
+++ b/unittests/test_xml_generators.py
@@ -35,6 +35,7 @@ class Test(parser_test_case.parser_test_case_t):
self.assertFalse(gen.is_gccxml)
self.assertTrue(... | Test if the version is correctly set | py |
diff --git a/scuba/__main__.py b/scuba/__main__.py
index <HASH>..<HASH> 100644
--- a/scuba/__main__.py
+++ b/scuba/__main__.py
@@ -246,7 +246,14 @@ class ScubaDive(object):
raise ScubaError(str(e))
verbose_msg('{0} Cmd: "{1}"'.format(self.config.image, cmd))
- self.docker_cmd = cm... | scuba: Run user command via generated shell script See #<I> | py |
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/utils/__init__.py
+++ b/lib/svtplay_dl/utils/__init__.py
@@ -5,6 +5,7 @@ import sys
import logging
import re
import unicodedata
+import platform
from operator import itemgetter
try:
@... | utils: implement a function to find program in path | py |
diff --git a/test/test_plyfile.py b/test/test_plyfile.py
index <HASH>..<HASH> 100644
--- a/test/test_plyfile.py
+++ b/test/test_plyfile.py
@@ -286,6 +286,20 @@ def test_write_read_str_filename(tmpdir, tet_ply_txt):
verify(ply0, ply1)
+def test_memmap(tmpdir, tet_ply_txt):
+ vertex = tet_ply_txt['vertex']
+ ... | Add test case with sandwiched "simple" element | py |
diff --git a/autolab_core/yaml_config.py b/autolab_core/yaml_config.py
index <HASH>..<HASH> 100644
--- a/autolab_core/yaml_config.py
+++ b/autolab_core/yaml_config.py
@@ -92,7 +92,7 @@ class YamlConfig(object):
def recursive_load(matchobj, path):
first_spacing = matchobj.group(1)
othe... | remove trailing spaces for recursive loading | py |
diff --git a/pymc3/step_methods/step_sizes.py b/pymc3/step_methods/step_sizes.py
index <HASH>..<HASH> 100644
--- a/pymc3/step_methods/step_sizes.py
+++ b/pymc3/step_methods/step_sizes.py
@@ -67,15 +67,15 @@ class DualAverageAdaptation:
mean_accept = np.mean(accept)
target_accept = self._target
... | reduce sigfigs for acceptance probability warning | py |
diff --git a/src/feat/database/tools.py b/src/feat/database/tools.py
index <HASH>..<HASH> 100644
--- a/src/feat/database/tools.py
+++ b/src/feat/database/tools.py
@@ -223,7 +223,7 @@ def migration_script(connection):
include_docs=True)
migrated += len(fetched)
- ... | Fix typo making the migration script stuck in a loop. | py |
diff --git a/django_inlines/inlines.py b/django_inlines/inlines.py
index <HASH>..<HASH> 100644
--- a/django_inlines/inlines.py
+++ b/django_inlines/inlines.py
@@ -61,7 +61,7 @@ def parse_inline(text):
if kwtxt:
for kws in kwtxt.split():
k, v = kws.split('=')
- kwargs[k] = v
+ ... | Keys must be strings, not unicode to use it with **kwargs later. | py |
diff --git a/pychromecast/controllers/plex.py b/pychromecast/controllers/plex.py
index <HASH>..<HASH> 100644
--- a/pychromecast/controllers/plex.py
+++ b/pychromecast/controllers/plex.py
@@ -59,7 +59,7 @@ def media_to_chromecast_command(
**kwargs
): # noqa: 501 pylint: disable=invalid-name, too-many-arguments, t... | docs: fix simple typo, neeeded -> needed (#<I>) There is a small typo in pychromecast/controllers/plex.py. Should read `needed` rather than `neeeded`. | py |
diff --git a/multiqc/modules/skewer/skewer.py b/multiqc/modules/skewer/skewer.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/skewer/skewer.py
+++ b/multiqc/modules/skewer/skewer.py
@@ -92,8 +92,8 @@ class MultiqcModule(BaseMultiqcModule):
""" Go through log file looking for skewer output """
fh ... | Made regex more relaxed to capture any input filename. See #<I>. | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -172,7 +172,7 @@ class TestAPI(object):
class Bar(Resource):
def get(self):
return 'bar'
- major, minor = map(int, flask_version.split("."))[:2]... | fix test A map in Python 3 doesn't return a list like it does in python 2. | py |
diff --git a/ags_publishing_tools/MapServicePublisher.py b/ags_publishing_tools/MapServicePublisher.py
index <HASH>..<HASH> 100644
--- a/ags_publishing_tools/MapServicePublisher.py
+++ b/ags_publishing_tools/MapServicePublisher.py
@@ -138,11 +138,13 @@ class MapServicePublisher:
mxd = arcpy.mapping.MapDocume... | Uses full paths for workspace replacement GES-<I> | py |
diff --git a/colin/core/target.py b/colin/core/target.py
index <HASH>..<HASH> 100644
--- a/colin/core/target.py
+++ b/colin/core/target.py
@@ -15,6 +15,7 @@
#
import enum
+import io
import logging
import os
@@ -57,17 +58,22 @@ class Target(object):
"""
Get the Container/Image instance for the ... | Add support for the dockerfile as file-like object | py |
diff --git a/pyinfra/operations/python.py b/pyinfra/operations/python.py
index <HASH>..<HASH> 100644
--- a/pyinfra/operations/python.py
+++ b/pyinfra/operations/python.py
@@ -23,11 +23,14 @@ def call(function, *args, **kwargs):
command = 'echo hello'
if hello:
command = comman... | Fix the example in `python.call` operation doc. | py |
diff --git a/skorch/callbacks/__init__.py b/skorch/callbacks/__init__.py
index <HASH>..<HASH> 100644
--- a/skorch/callbacks/__init__.py
+++ b/skorch/callbacks/__init__.py
@@ -13,8 +13,25 @@ from .scoring import *
from .training import *
from .lr_scheduler import *
-__all__ = ['Callback', 'EpochTimer', 'NeptuneLogge... | Add tensorboard to __all__ list | py |
diff --git a/phypno/ioeeg/fieldtrip.py b/phypno/ioeeg/fieldtrip.py
index <HASH>..<HASH> 100644
--- a/phypno/ioeeg/fieldtrip.py
+++ b/phypno/ioeeg/fieldtrip.py
@@ -10,7 +10,7 @@ except ImportError:
lg.warning('scipy (optional dependency) is not installed. You will not '
'be able to read and write in... | fieldtrip wants data, not rawdata | py |
diff --git a/demo/fitz2jpg.py b/demo/fitz2jpg.py
index <HASH>..<HASH> 100644
--- a/demo/fitz2jpg.py
+++ b/demo/fitz2jpg.py
@@ -5,17 +5,9 @@ from PIL import Image
import sys
from __future__ import print_function
'''
-demonstrates how to output a JPEG image from PyMuPDF using PIL / Pillow
+Given any pixmap, use Pil / ... | Turned into a generalized Code Snippet | py |
diff --git a/mapillary_tools/process_video.py b/mapillary_tools/process_video.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/process_video.py
+++ b/mapillary_tools/process_video.py
@@ -175,6 +175,9 @@ def insert_video_frame_timestamp(video_filename, video_sampling_path, start_time
def get_video_start_time(vide... | add: write warning when getting start time if video file doesnt exist | py |
diff --git a/arcana/__about__.py b/arcana/__about__.py
index <HASH>..<HASH> 100644
--- a/arcana/__about__.py
+++ b/arcana/__about__.py
@@ -1,5 +1,5 @@
-__version__ = '0.3.1'
+__version__ = '0.4'
__authors__ = [
("Thomas G. Close", "tom.g.close@gmail.com"), | Upped version number to <I> | py |
diff --git a/synapse/tests/test_telepath.py b/synapse/tests/test_telepath.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_telepath.py
+++ b/synapse/tests/test_telepath.py
@@ -122,6 +122,7 @@ class TeleTest(s_test.SynTest):
def test_telepath_basics(self):
foo = Foo()
+ evt = threading.Even... | Add a test showing that a proxy is fini'd when a daemon is shut down. | py |
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py
index <HASH>..<HASH> 100644
--- a/pandas/core/window/rolling.py
+++ b/pandas/core/window/rolling.py
@@ -872,6 +872,17 @@ class Window(_Window):
3 NaN
4 NaN
+ Rolling sum with a window length of 2, using the 'gaussian'
+ windo... | :pencil: add example of rolling with win_type gaussian (#<I>) | py |
diff --git a/instabot/bot/bot_stats.py b/instabot/bot/bot_stats.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_stats.py
+++ b/instabot/bot/bot_stats.py
@@ -38,7 +38,7 @@ def save_user_stats(self, username, path=""):
infodict = self.get_user_info(user_id)
if infodict:
data_to_save = {
- ... | From date in save_stats removed microseconds. | py |
diff --git a/ckanext/oauth2/oauth2.py b/ckanext/oauth2/oauth2.py
index <HASH>..<HASH> 100644
--- a/ckanext/oauth2/oauth2.py
+++ b/ckanext/oauth2/oauth2.py
@@ -102,10 +102,14 @@ class OAuth2Helper(object):
headers = {
'Accept': 'application/json',
'Content-Type': 'application/x-www-for... | Using the Authorization header on the get_token method is only required when using a legacy version of KeyRock | py |
diff --git a/phypno/viz/plot_1d.py b/phypno/viz/plot_1d.py
index <HASH>..<HASH> 100644
--- a/phypno/viz/plot_1d.py
+++ b/phypno/viz/plot_1d.py
@@ -1,23 +1,16 @@
-import pyqtgraph as pg
-
-
-win = pg.GraphicsWindow(title="Basic plotting examples")
-win.resize(1000,600)
-win.setWindowTitle('pyqtgraph example: Plotting')
... | pyqtgraph works well in ipython with gui qt | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ install_requires = [
'croniter==0.3.4',
'gevent-socketio>=0.3.6,<0.4',
'virtualenv>=1.11.6,<1.12',
+ 'requests',
]
dev_requires = [
@@ -67,4 +68,4 @@ setup(
'Framework :: Django',
... | Added requests module to setup.py Added requests module to install_requires in setup.py | py |
diff --git a/flask_permissions/models.py b/flask_permissions/models.py
index <HASH>..<HASH> 100644
--- a/flask_permissions/models.py
+++ b/flask_permissions/models.py
@@ -110,7 +110,18 @@ class UserMixin(db.Model):
@hybrid_property
def _id_column_name(self):
- for k, v in self.__dict__.items():
+
+ ... | Add back two reasonable methods to UserMixin subclass ... after figuring out how to refer to the model's id before it is dynamically set | py |
diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py
index <HASH>..<HASH> 100644
--- a/adafruit_platformdetect/chip.py
+++ b/adafruit_platformdetect/chip.py
@@ -104,9 +104,9 @@ class Chip:
if compatible and 'amlogic, g12b' in compatible:
linux_id = S922X
- ... | Change detection of Onion Omega boards based on its 'cpu model' | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -1409,7 +1409,7 @@ def _pkl_finder_objectinfo(objectinfo,
dust_timeout = 10.0
gaia_submit_timeout = 7.0
gaia_max_timeout = 10.0
- gaia_s... | checkplot: set fast_mode gaia_submit_tries = 2 | py |
diff --git a/pypd/models/entity.py b/pypd/models/entity.py
index <HASH>..<HASH> 100644
--- a/pypd/models/entity.py
+++ b/pypd/models/entity.py
@@ -260,7 +260,7 @@ class Entity(ClientMixin):
endpoint = cls.get_endpoint()
inst = cls(api_key=api_key)
- parse_key = cls.sanitize_ep(endpoint)
+... | Use only the last path component when constructing data key Resources like integrations are nested beneath a service. The key should read 'integration', not 'services/ID/integration'. | py |
diff --git a/src/com/dtmilano/android/plot.py b/src/com/dtmilano/android/plot.py
index <HASH>..<HASH> 100644
--- a/src/com/dtmilano/android/plot.py
+++ b/src/com/dtmilano/android/plot.py
@@ -29,7 +29,7 @@ from mpl_toolkits.axes_grid1 import host_subplot
from com.dtmilano.android.adb.dumpsys import Dumpsys
-__versi... | Exchanged colors in framestats plot | py |
diff --git a/www/speed/benchmarks/function_call_complex.py b/www/speed/benchmarks/function_call_complex.py
index <HASH>..<HASH> 100644
--- a/www/speed/benchmarks/function_call_complex.py
+++ b/www/speed/benchmarks/function_call_complex.py
@@ -1,5 +1,5 @@
def f(x, y=0, *args, **kw):
return x
-for i in range(100000... | Less loops in speed/benchmarks/function_call_complex.py | py |
diff --git a/pydevd_breakpoints.py b/pydevd_breakpoints.py
index <HASH>..<HASH> 100644
--- a/pydevd_breakpoints.py
+++ b/pydevd_breakpoints.py
@@ -95,18 +95,25 @@ def _excepthook(exctype, value, tb):
return
frames = []
+ debugger = GetGlobalDebugger()
+ user_frames = []
while tb:
+ f... | PY-<I> Debugger: Ignore library files stops at exception breakpoints inside libraries if On termination policy is active (cherry picked from commit ff1dcc8b<I>fd8c3f<I>d<I>fb9d<I>cf9e<I>dfc<I>) | py |
diff --git a/hwt/serializer/verilog/statements.py b/hwt/serializer/verilog/statements.py
index <HASH>..<HASH> 100644
--- a/hwt/serializer/verilog/statements.py
+++ b/hwt/serializer/verilog/statements.py
@@ -33,11 +33,7 @@ class ToHdlAstVerilog_statements():
return a
def can_pop_process_wrap(self, stms, ... | ToHdlAstVerilog_statements: add process label to a body block stm. | py |
diff --git a/loguru/_logger.py b/loguru/_logger.py
index <HASH>..<HASH> 100644
--- a/loguru/_logger.py
+++ b/loguru/_logger.py
@@ -1255,6 +1255,11 @@ class Logger:
``Level``
A namedtuple containing information about the level.
+ Raises
+ ------
+ ValueError
+ If t... | Document ValueError exception raised by ".level()" | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -23,7 +23,6 @@ from xml.etree import ElementTree as etree
import numpy
from openquake.baselib.general import AccumDict, groupby, block_spl... | Removed dependence from cost.TRT | py |
diff --git a/manage/sawtooth_manage/subproc.py b/manage/sawtooth_manage/subproc.py
index <HASH>..<HASH> 100644
--- a/manage/sawtooth_manage/subproc.py
+++ b/manage/sawtooth_manage/subproc.py
@@ -19,6 +19,7 @@ import subprocess
import time
import yaml
import re
+import sys
from sawtooth_manage.node import NodeCont... | Missing library in subprocess manage type The sys library was needed but missing. Added import of sys. | py |
diff --git a/pymola/parser.py b/pymola/parser.py
index <HASH>..<HASH> 100644
--- a/pymola/parser.py
+++ b/pymola/parser.py
@@ -597,13 +597,17 @@ class ASTListener(ModelicaListener):
sym.class_modification = mod
else:
# Assignment of value, which we turn into a ... | Fix parsing combination of mods and direct value This bug was introduced in commit d<I>, where the (wrong) assumption was made that combinations of symbol modifications and value assignments were not possible. In other words, the assumption was made that something like the following could not occur: Real x(nominal=<I... | py |
diff --git a/tensorboard/compat/proto/proto_test.py b/tensorboard/compat/proto/proto_test.py
index <HASH>..<HASH> 100644
--- a/tensorboard/compat/proto/proto_test.py
+++ b/tensorboard/compat/proto/proto_test.py
@@ -174,7 +174,27 @@ The proper fix is:
./tensorboard/compat/proto/update.sh PATH_TO_TENSORFLOW_REPO
... | Improve error message for proto_test. (#<I>) Improve error message for proto_test * Add step for generating protos for RustBoard. * Add instructions on how to handle new files that must be copied over to TB for the BUILD to succeed. | py |
diff --git a/textx/metamodel.py b/textx/metamodel.py
index <HASH>..<HASH> 100644
--- a/textx/metamodel.py
+++ b/textx/metamodel.py
@@ -51,8 +51,8 @@ class TextXMetaModel(dict):
Attributes:
rootcls(TextXClass): A language class that is a root of the metamodel.
- file_name(str): A file name if meta... | Small update in docstring and comment | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.