diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/peppy/project.py b/peppy/project.py
index <HASH>..<HASH> 100644
--- a/peppy/project.py
+++ b/peppy/project.py
@@ -292,17 +292,6 @@ class Project(AttMap):
"""
return self._subproject
- @subproject.setter
- def subproject(self, sp):
- """
- Set the subproject property ... | only set subproject during construtor or subproject activation; <URL> | py |
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py
index <HASH>..<HASH> 100644
--- a/fitsio/fitslib.py
+++ b/fitsio/fitslib.py
@@ -910,6 +910,7 @@ class FITSHDU:
text.append("%sdims: [%s]" % (cspacing,dimstr))
else:
+ text.append('%srows: %d' % (spacing,self.info['numrows']))
... | added number of rows to repr for table columns | py |
diff --git a/tornado/test/routing_test.py b/tornado/test/routing_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/routing_test.py
+++ b/tornado/test/routing_test.py
@@ -238,6 +238,5 @@ class WSGIContainerTestCase(AsyncHTTPTestCase):
self.assertEqual(response.body, b"WSGI")
def test_delegate_not_fo... | routing_test: Remove test of log message | py |
diff --git a/tests/fields/test_message.py b/tests/fields/test_message.py
index <HASH>..<HASH> 100644
--- a/tests/fields/test_message.py
+++ b/tests/fields/test_message.py
@@ -55,3 +55,16 @@ class TestMessageField(TestCase):
self.assertRaises(ValueError, failure)
+ def test_set_repeated_field(self):
+ ... | Added test for updating repeated fields with embedded messages | py |
diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py
index <HASH>..<HASH> 100644
--- a/testing/deprecated_test.py
+++ b/testing/deprecated_test.py
@@ -70,7 +70,7 @@ def test_terminal_reporter_writer_attr(pytestconfig):
assert terminal_reporter.writer is terminal_reporter._tw
-@pytest.mark.param... | Sort parametrize params to test_external_plugins_integrated This might cause problems during collection with pytest-xdist; we didn't see any so far mostly by luck I think. Shame on me for letting that slip in. | py |
diff --git a/internetarchive/iarequest.py b/internetarchive/iarequest.py
index <HASH>..<HASH> 100644
--- a/internetarchive/iarequest.py
+++ b/internetarchive/iarequest.py
@@ -300,15 +300,6 @@ def prepare_metadata(metadata, source_metadata=None, append=False):
# Index all items which contain an index.
for ke... | Don't convert "true"/"false" to True/False in upload. | py |
diff --git a/salt/modules/apt.py b/salt/modules/apt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/apt.py
+++ b/salt/modules/apt.py
@@ -71,7 +71,7 @@ def version(name):
salt '*' pkg.version <package name>
'''
# check for :i386 appended to 32bit name installed on 64bit machine
- name32bit = ''.j... | use format instead of string join. per s0undtech's suggestion. Much cleaner | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -82,7 +82,7 @@ setuptools.setup(
},
classifiers=[
- "Development Status :: 3 - Alpha",
+ "Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: In... | Change development status from alpha to beta | py |
diff --git a/salt/ssh/__init__.py b/salt/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/ssh/__init__.py
+++ b/salt/ssh/__init__.py
@@ -150,6 +150,7 @@ class Single(multiprocessing.Process):
Deploy salt-thin
'''
thin = salt.utils.thin.gen_thin(self.opts['cachedir'])
+ print thin... | cmd does not take an arg anymore | py |
diff --git a/vyper/functions/functions.py b/vyper/functions/functions.py
index <HASH>..<HASH> 100644
--- a/vyper/functions/functions.py
+++ b/vyper/functions/functions.py
@@ -1429,15 +1429,14 @@ def get_create_forwarder_to_bytecode():
from vyper.compile_lll import assembly_to_evm
loader_asm = [
- "RE... | fix: simplify loader bytecode, shift target address | py |
diff --git a/argonauts/tests.py b/argonauts/tests.py
index <HASH>..<HASH> 100644
--- a/argonauts/tests.py
+++ b/argonauts/tests.py
@@ -16,6 +16,7 @@ from django.template import Template, Context
from django.utils.datastructures import SortedDict
from django.views.generic import View
from django.test import RequestFa... | django <I> support | py |
diff --git a/keepkeylib/transport_udp.py b/keepkeylib/transport_udp.py
index <HASH>..<HASH> 100644
--- a/keepkeylib/transport_udp.py
+++ b/keepkeylib/transport_udp.py
@@ -17,7 +17,7 @@ class FakeRead(object):
class UDPTransport(Transport):
def __init__(self, device, *args, **kwargs):
- self.buffer = ''
+... | UDPTransport buffer must be bytes, not str | py |
diff --git a/keyring/backends/Google.py b/keyring/backends/Google.py
index <HASH>..<HASH> 100644
--- a/keyring/backends/Google.py
+++ b/keyring/backends/Google.py
@@ -13,6 +13,10 @@ from keyring import credentials
import keyring.py25compat
from keyring.backend import KeyringBackend
+# Fix Python 2.x.-3.x
+try: inpu... | Handle change of name of raw_input to input under python 3 --HG-- branch : issue_<I> | py |
diff --git a/udiskie/cli.py b/udiskie/cli.py
index <HASH>..<HASH> 100644
--- a/udiskie/cli.py
+++ b/udiskie/cli.py
@@ -41,6 +41,9 @@ def common_program_options():
parser.add_option('-v', '--verbose', action='store_const',
dest='log_level', default=logging.INFO,
const=l... | Add -1 option to explicitly request udisks1 In future versions of udiskie udisks2 might become the default backend. The explicit option to use udisks1 provides forward compatibility. | py |
diff --git a/neo/Wallets/Wallet.py b/neo/Wallets/Wallet.py
index <HASH>..<HASH> 100755
--- a/neo/Wallets/Wallet.py
+++ b/neo/Wallets/Wallet.py
@@ -1220,8 +1220,7 @@ be 100. Issuing 'wallet rebuild' restarts the syncing process.")
Returns:
bool: True if wallet is synced.
"""
- self.... | Changed back to solution from UserWallet, this works. Its just that the case does not occur often on private net. | py |
diff --git a/src/pyramid_orb/utils.py b/src/pyramid_orb/utils.py
index <HASH>..<HASH> 100644
--- a/src/pyramid_orb/utils.py
+++ b/src/pyramid_orb/utils.py
@@ -3,11 +3,20 @@ import orb
from orb import Query as Q
+CONSTANT_EVALS = {
+ 'true': True,
+ 'false': False,
+ 'null': None
+}
+
def safe_eval(value)... | checking for json constants in the params | py |
diff --git a/sculpt/debug/__init__.py b/sculpt/debug/__init__.py
index <HASH>..<HASH> 100755
--- a/sculpt/debug/__init__.py
+++ b/sculpt/debug/__init__.py
@@ -7,8 +7,26 @@ import datetime
#
# settings:
#
-# SCULPT_DUMP_SQL whether to dump data on all SQL queries made during a request, as well as request timing... | Updated comments. Proper documentation would be better. | py |
diff --git a/rqalpha/const.py b/rqalpha/const.py
index <HASH>..<HASH> 100644
--- a/rqalpha/const.py
+++ b/rqalpha/const.py
@@ -82,7 +82,7 @@ class RUN_TYPE(CustomEnum):
# noinspection PyPep8Naming
class DEFAULT_ACCOUNT_TYPE(CustomEnum):
"""
- * 关于 ACCOUNT_TYPE,目前主要表示为交易账户。STOCK / FUTURE / OPTION 目前均表示为中国 对应... | remoce DEFAULT_ACCOUNT_TYPE.OPTION | py |
diff --git a/rinoh/style.py b/rinoh/style.py
index <HASH>..<HASH> 100644
--- a/rinoh/style.py
+++ b/rinoh/style.py
@@ -305,6 +305,9 @@ class Styled(DocumentElement, metaclass=StyledMeta):
try:
base_style = document.stylesheet[exception.base_name]
return base_style.get_value(exception.... | Fix: handle ParentStyleException in base style | py |
diff --git a/mongo_connector/connector.py b/mongo_connector/connector.py
index <HASH>..<HASH> 100644
--- a/mongo_connector/connector.py
+++ b/mongo_connector/connector.py
@@ -340,6 +340,8 @@ class Connector(threading.Thread):
shard_conn = MongoClient(
hosts, replicaSet=repl... | authenticate connections to shards as well | py |
diff --git a/photutils/segmentation/tests/test_core.py b/photutils/segmentation/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/photutils/segmentation/tests/test_core.py
+++ b/photutils/segmentation/tests/test_core.py
@@ -282,6 +282,13 @@ class TestSegmentationImage:
segm = SegmentationImage(self.data... | Add segmentation test for removing border labels when no segments remain. | py |
diff --git a/hamster/graphics.py b/hamster/graphics.py
index <HASH>..<HASH> 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -54,7 +54,7 @@ class Area(gtk.DrawingArea):
self.__prev_mouse_regions = None
self.tweener = pytweener.Tweener(0.4, pytweener.Easing.Cubic.easeInOut)
- ... | looked on the queue_draw did not figure anything. maybe broke something though, ahahah | py |
diff --git a/i3ipc.py b/i3ipc.py
index <HASH>..<HASH> 100644
--- a/i3ipc.py
+++ b/i3ipc.py
@@ -506,14 +506,16 @@ class Con(object):
return None
def find_named(self, pattern):
- return [c for c in self.descendents() if re.search(pattern, c.name)]
+ return [c for c in self.descendents()
... | bugfix: check if con has property before searching Fixes an exception when searching for cons of certain properties when there are some containers in the tree that do not have those properties. | py |
diff --git a/tofu/geom/_comp_solidangles.py b/tofu/geom/_comp_solidangles.py
index <HASH>..<HASH> 100644
--- a/tofu/geom/_comp_solidangles.py
+++ b/tofu/geom/_comp_solidangles.py
@@ -210,11 +210,11 @@ def calc_solidangle_particle(
# block
if block:
kwdargs = config.get_kwdargs_LOS_isVis()
- # ... | [Issue<I>_SolidAngleParticleVectorized] Added reference to issue <I> in _comp_solidangles.py | py |
diff --git a/sphinx-prompt/__init__.py b/sphinx-prompt/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinx-prompt/__init__.py
+++ b/sphinx-prompt/__init__.py
@@ -43,6 +43,13 @@ PROMPTS = {
"batch": r"C:\\>",
"powershell": r"PS C:\\>",
}
+LEXERS = {
+ "bash": BashLexer,
+ "batch": BatchLexer,
+ "pow... | Put lexer classes into a mapping | py |
diff --git a/openquake/engine/calculators/hazard/event_based/core.py b/openquake/engine/calculators/hazard/event_based/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/event_based/core.py
+++ b/openquake/engine/calculators/hazard/event_based/core.py
@@ -149,10 +149,13 @@ def compute_gmf(job... | Measure the time to read the ruptures Former-commit-id: ba0e<I>cebaeaf<I>caa4aa<I>cecd<I>fcc<I>a2c | py |
diff --git a/fpbox.py b/fpbox.py
index <HASH>..<HASH> 100644
--- a/fpbox.py
+++ b/fpbox.py
@@ -72,16 +72,19 @@ class Array(Sequence):
"""
def __init__(self, *items):
- if len(items) == 1:
+ if len(items) == 1: # Deconstructs single instances of generator and list
if isinstance(he... | Code cleanup & exceptions on mixed Arrays Arrays now throw exceptions when you try to mix types | py |
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -243,10 +243,10 @@ class Project(object):
for func in unresolved:
l.info("[U] %s", func.name)
- self.set_sim_procedure(obj, func.name,
- ... | use the noreturnunconstrained simproc if it's a good idea | py |
diff --git a/tests/test_mongo_collection.py b/tests/test_mongo_collection.py
index <HASH>..<HASH> 100644
--- a/tests/test_mongo_collection.py
+++ b/tests/test_mongo_collection.py
@@ -1,4 +1,3 @@
-import json
import unittest
from config import *
from smappdragon import MongoCollection | got rid of unused json import in test | py |
diff --git a/basis_set_exchange/bundle.py b/basis_set_exchange/bundle.py
index <HASH>..<HASH> 100644
--- a/basis_set_exchange/bundle.py
+++ b/basis_set_exchange/bundle.py
@@ -5,7 +5,6 @@ Functions for creating archives of all basis sets
import os
import zipfile
import tarfile
-import bz2
import io
from . import ap... | Remove unused imports/variables | py |
diff --git a/src/test/test_location_info.py b/src/test/test_location_info.py
index <HASH>..<HASH> 100644
--- a/src/test/test_location_info.py
+++ b/src/test/test_location_info.py
@@ -1,4 +1,5 @@
import pytest
+import pytz
from astral import LocationInfo
@@ -22,3 +23,6 @@ class TestLocationInfo:
def test_time... | Added test for tzinfo property | py |
diff --git a/library/exportcsv.py b/library/exportcsv.py
index <HASH>..<HASH> 100644
--- a/library/exportcsv.py
+++ b/library/exportcsv.py
@@ -254,7 +254,7 @@ def exportCsv(db, filename, delimiter=','):
if filename is not None:
# save file
- with open(filename, 'w') as thefile:
+ with open(filename, 'w', ... | Explicitly open csv export file with utf8 encoding. | py |
diff --git a/asv/plugins/git.py b/asv/plugins/git.py
index <HASH>..<HASH> 100644
--- a/asv/plugins/git.py
+++ b/asv/plugins/git.py
@@ -98,7 +98,7 @@ class Git(Repo):
def get_hashes_from_range(self, range_spec):
args = ['log', '--quiet', '--first-parent', '--format=format:%H']
if range_spec != "":... | Allow multi-argument range spec for Git Based on Robert McGibbon's patch | py |
diff --git a/jax/random.py b/jax/random.py
index <HASH>..<HASH> 100644
--- a/jax/random.py
+++ b/jax/random.py
@@ -670,7 +670,7 @@ def _cauchy(key, shape, dtype):
def dirichlet(key, alpha, shape=None, dtype=onp.float64):
- """Sample Cauchy random values with given shape and float dtype.
+ """Sample Dirichlet ran... | Docstring typo (#<I>) | py |
diff --git a/pmxbot/botbase.py b/pmxbot/botbase.py
index <HASH>..<HASH> 100644
--- a/pmxbot/botbase.py
+++ b/pmxbot/botbase.py
@@ -427,6 +427,11 @@ class Logger(SQLiteStorage):
time, nick, message = self.db.execute(query, [channel]).fetchone()
return dict(time=time, nick=nick, message=message)
+ def all_message... | Added .all_messages to Logger classes | py |
diff --git a/suspect/io/lcmodel.py b/suspect/io/lcmodel.py
index <HASH>..<HASH> 100644
--- a/suspect/io/lcmodel.py
+++ b/suspect/io/lcmodel.py
@@ -50,6 +50,11 @@ def write_all_files(filename, data, wref_data=None, params=None):
# about where to save the output (.ps, .csv, .table etc.) that should also
# be sa... | lcmodel write files creates directory if it does not exist | py |
diff --git a/visidata/freeze.py b/visidata/freeze.py
index <HASH>..<HASH> 100644
--- a/visidata/freeze.py
+++ b/visidata/freeze.py
@@ -5,7 +5,6 @@ globalCommand("'", 'addColumn(StaticColumn(sheet.rows, cursorCol), cursorColInde
globalCommand("g'", 'vd.push(StaticSheet(sheet)); status("pushed frozen copy of "+name)', '... | [freeze] use None instead of aborting on exception | py |
diff --git a/git/objects/base.py b/git/objects/base.py
index <HASH>..<HASH> 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -77,10 +77,14 @@ class Object(LazyMixin):
def __eq__(self, other):
""":return: True if the objects have the same SHA1"""
+ if not hasattr(other, 'binsha'):
+ return False... | Making comparisons with non-GitPython objects more tolerant. | py |
diff --git a/astroclasses.py b/astroclasses.py
index <HASH>..<HASH> 100644
--- a/astroclasses.py
+++ b/astroclasses.py
@@ -345,6 +345,7 @@ class Planet(StarAndPlanetCommon):
def tempType(self):
return assum.planetTempType(self.T)
+ @property
def mu(self): # TODO make getter look in params first... | made mu a property so its acts like a variable not a method | py |
diff --git a/pandoc_source_exec.py b/pandoc_source_exec.py
index <HASH>..<HASH> 100644
--- a/pandoc_source_exec.py
+++ b/pandoc_source_exec.py
@@ -12,7 +12,10 @@ try:
from pexpect import replwrap
except ImportError:
pass
-import panflute as pf
+try:
+ import panflute as pf
+except ImportError:
+ pass
... | Fixing installation 'chicken-egg-problem' by making source-exec importable without having panflute installed (yet) to read the version. | py |
diff --git a/treeherder/autoclassify/matchers.py b/treeherder/autoclassify/matchers.py
index <HASH>..<HASH> 100644
--- a/treeherder/autoclassify/matchers.py
+++ b/treeherder/autoclassify/matchers.py
@@ -170,11 +170,6 @@ class PreciseTestMatcher(Matcher):
class ElasticSearchTestMatcher(Matcher):
"""Looks for exi... | Remove ElasticSearchTestMatcher.calls now it's unused | py |
diff --git a/autograder_sandbox/autograder_sandbox.py b/autograder_sandbox/autograder_sandbox.py
index <HASH>..<HASH> 100644
--- a/autograder_sandbox/autograder_sandbox.py
+++ b/autograder_sandbox/autograder_sandbox.py
@@ -17,8 +17,9 @@ SANDBOX_USERNAME = 'autograder'
SANDBOX_DOCKER_IMAGE = os.environ.get('SANDBOX_DOC... | Intentionally introducing pydocstyle error to test ci settings. | py |
diff --git a/pyarlo/camera.py b/pyarlo/camera.py
index <HASH>..<HASH> 100644
--- a/pyarlo/camera.py
+++ b/pyarlo/camera.py
@@ -112,7 +112,9 @@ class ArloCamera(object):
if self._cached_videos is None:
self.make_video_cache()
- return self._cached_videos[0]
+ if self._cached_videos:... | Make sure to return None if no videos were found | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,17 +8,19 @@ or write to emin.martinian@gmail.com for more information.
from setuptools import setup, find_packages
from os import path
-here = path.abspath(path.dirname(__file__))
+def get_readme():
+ 'Get the long d... | Fix minor issue in setup.py | py |
diff --git a/src/apexpy/__init__.py b/src/apexpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/apexpy/__init__.py
+++ b/src/apexpy/__init__.py
@@ -6,9 +6,10 @@ from . import helpers
try:
from . import fortranapex
except ImportError:
- print("ERROR: fortranapex module could not be imported. apexpy probably... | PEP8 and version Made pep8 changes and updated version number | py |
diff --git a/angr/analyses/complete_calling_conventions.py b/angr/analyses/complete_calling_conventions.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/complete_calling_conventions.py
+++ b/angr/analyses/complete_calling_conventions.py
@@ -40,7 +40,7 @@ class CompleteCallingConventionsAnalysis(Analysis):
fo... | CompleteCCA: Reanalyze a function if it doesn't have a CC or a prototype. (#<I>) | py |
diff --git a/api/views.py b/api/views.py
index <HASH>..<HASH> 100644
--- a/api/views.py
+++ b/api/views.py
@@ -23,7 +23,7 @@ from rest_framework.exceptions import PermissionDenied
from rest_framework.generics import get_object_or_404
from rest_framework.response import Response
-from api import models, serializers
... | remove dupe release, fix rollback publishing | py |
diff --git a/experimental/alberti.py b/experimental/alberti.py
index <HASH>..<HASH> 100755
--- a/experimental/alberti.py
+++ b/experimental/alberti.py
@@ -7,7 +7,7 @@ from sebastian.core import VSeq, HSeq, Point, OSequence
from sebastian.core.transforms import midi_pitch, degree_in_key_with_octave, add
from sebastian... | use simpler MIDI writing in alberti example | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setuptools.setup(
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=io.open('README.rst', encoding='utf-8').read(),
- packages = ['jsonpath_rw'],
+... | Fix setup.py so that it will include jsonpath_rw/bin subdirectory into the distribution. | py |
diff --git a/hamlpy/nodes.py b/hamlpy/nodes.py
index <HASH>..<HASH> 100644
--- a/hamlpy/nodes.py
+++ b/hamlpy/nodes.py
@@ -185,8 +185,9 @@ class TagNode(HamlNode):
'block':'endblock',
'filter':'endfilter',
'autoescape':'endautoescape',
+ ... | adding with/endwith to the TagNode class | py |
diff --git a/mythril/support/truffle.py b/mythril/support/truffle.py
index <HASH>..<HASH> 100644
--- a/mythril/support/truffle.py
+++ b/mythril/support/truffle.py
@@ -40,7 +40,7 @@ def analyze_truffle_project(sigs, args):
if len(bytecode) < 4:
continue
- sigs.import_from_solid... | Problem: truffle project analysis ignores --solc-args This prevents passing custom `solc` arguments which is important in some cases (for example, `--allow-paths` is a very useful option) Solution: pass solc_args through | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
include_package_data=True,
install_requires=[
'eth-utils>=1.2.0,<2.0.0',
- 'eth-typing<=2',
+ 'eth-typing<2',
'parsimonious==0.8.0',
],
setup_requires=[... | Fix eth-typing major version constraint | py |
diff --git a/ostrich/utils/path.py b/ostrich/utils/path.py
index <HASH>..<HASH> 100644
--- a/ostrich/utils/path.py
+++ b/ostrich/utils/path.py
@@ -27,7 +27,7 @@ def check_arg_types(funcname, *args):
elif isinstance(arg, bytes):
hasbytes = True
else:
- raise TypeError('{}() argu... | anonymous format specifiers not supported on Python <I>..? | py |
diff --git a/plex_metadata/guid.py b/plex_metadata/guid.py
index <HASH>..<HASH> 100644
--- a/plex_metadata/guid.py
+++ b/plex_metadata/guid.py
@@ -72,7 +72,7 @@ class Guid(object):
agent = Agents.get(agent_name)
if agent is None:
- log.warn('Unsupported metadata agent: %r', agent_name)
+ ... | Adjusted `Unsupported metadata agent...` message to create separate events in sentry | py |
diff --git a/dxf/main.py b/dxf/main.py
index <HASH>..<HASH> 100644
--- a/dxf/main.py
+++ b/dxf/main.py
@@ -151,8 +151,11 @@ def doit(args, environ):
elif args.op == "del-alias":
for name in args.args:
- for dgst in dxf_obj.del_alias(name):
- print(dgst)
+ ... | delete aliases: next on error Print a message on error and go to the next item. | py |
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -92,6 +92,7 @@ def test_pandas_datareader():
pandas_datareader.get_data_google('AAPL')
+@pytest.mark.skip(reason="import issu... | CI: temp skip geopandas downstream tests (GH<I>) (#<I>) | py |
diff --git a/source/rafcon/core/execution/execution_engine.py b/source/rafcon/core/execution/execution_engine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/execution/execution_engine.py
+++ b/source/rafcon/core/execution/execution_engine.py
@@ -66,7 +66,9 @@ class ExecutionEngine(Observable):
def pause(s... | fix(execution engine): avoid activation of execution engine without active_state_machine_id | py |
diff --git a/tests/unit/modules/test_portage_config.py b/tests/unit/modules/test_portage_config.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_portage_config.py
+++ b/tests/unit/modules/test_portage_config.py
@@ -119,4 +119,4 @@ class PortageConfigTestCase(TestCase, LoaderModuleMockMixin):
... | Lint: Add empty line at end of file | py |
diff --git a/karaage/applications/views/base.py b/karaage/applications/views/base.py
index <HASH>..<HASH> 100644
--- a/karaage/applications/views/base.py
+++ b/karaage/applications/views/base.py
@@ -73,13 +73,13 @@ def get_email_link(application):
# don't use secret_token unless we have to
if (application.con... | Use named URLs in get_email_link Use named URLs rather than hardcoding the application URL. Change-Id: Ie<I>b2dc<I>aef1f<I>adae<I>a7f<I>c | py |
diff --git a/tests/test_multiprocessing_logging.py b/tests/test_multiprocessing_logging.py
index <HASH>..<HASH> 100644
--- a/tests/test_multiprocessing_logging.py
+++ b/tests/test_multiprocessing_logging.py
@@ -82,7 +82,7 @@ class WhenMultipleProcessesLogRecords(unittest.TestCase):
logger.info("Workers started... | Adds hack to tests for Pypy3. | py |
diff --git a/oplus/version.py b/oplus/version.py
index <HASH>..<HASH> 100644
--- a/oplus/version.py
+++ b/oplus/version.py
@@ -1 +1 @@
-version='7.0.1.dev4.0.0'
+version='7.0.1.dev4.5.0' | [skip ci] updated version as <I>.de<I> | py |
diff --git a/indra/assemblers/pybel/assembler.py b/indra/assemblers/pybel/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/pybel/assembler.py
+++ b/indra/assemblers/pybel/assembler.py
@@ -400,7 +400,7 @@ def belgraph_to_signed_graph(
rel = edge_data.get('relation')
pos_edge = \
... | Fix creation of annotation propogated pybeledge Since this v will always be an instance of a dictionary where the keys are the annotations, just directly tuple(v) to get the tuple of all values for that annotation | py |
diff --git a/prospector/adaptor/libraries.py b/prospector/adaptor/libraries.py
index <HASH>..<HASH> 100644
--- a/prospector/adaptor/libraries.py
+++ b/prospector/adaptor/libraries.py
@@ -4,7 +4,7 @@ from prospector.adaptor.base import AdaptorBase
class DjangoAdaptor(AdaptorBase):
name = 'django'
ignore_patte... | South migrations directory for South <I> | py |
diff --git a/ayrton/tests/__init__.py b/ayrton/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/__init__.py
+++ b/ayrton/tests/__init__.py
@@ -0,0 +1,18 @@
+# (c) 2013 Marcos Dione <mdione@grulic.org.ar>
+
+# This file is part of ayrton.
+#
+# ayrton is free software: you can redistribute it and/or modi... | + license, even for an empty file. | py |
diff --git a/sc/lame.py b/sc/lame.py
index <HASH>..<HASH> 100644
--- a/sc/lame.py
+++ b/sc/lame.py
@@ -24,7 +24,7 @@ class Progressbar(object):
sys.stdout.flush()
-def compress(filename, artist=None, title=None, album=None, year=None, bitrate=320, callback=Progressbar):
+def compress(filename, artist='', t... | Use '' instead of None to prevent errors with argparse. | py |
diff --git a/datacats/environment.py b/datacats/environment.py
index <HASH>..<HASH> 100644
--- a/datacats/environment.py
+++ b/datacats/environment.py
@@ -356,7 +356,8 @@ class Environment(object):
cp = SafeConfigParser()
try:
cp.read(self.target + '/development.ini')
- return ... | Add more checks for datapusher. Issues were happening where users who had their datapusher hosted somewhere else (not with Datacats) would have datapusher start up and fail because the datapusher source directory didn't exist. Therefore we now check for the datapusher directory in addition to the ckan.plugins. | py |
diff --git a/travis-ci/settings.py b/travis-ci/settings.py
index <HASH>..<HASH> 100644
--- a/travis-ci/settings.py
+++ b/travis-ci/settings.py
@@ -54,17 +54,11 @@ MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middlewa... | Dropping remote user middleware for travis | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -142,6 +142,7 @@ EXTENSIONS = {
'rs': {'text', 'rust'},
'rst': {'text', 'rst'},
's': {'text', 'asm'},
+ 'sass': {'text', 'sass'},
'sbt': {'text', '... | Add 'sass' files extension | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ except ImportError:
setup(
name='sphinx-autoapi',
- version='0.2.0',
+ version='0.3.0',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='http://github.com/ericholsc... | Release <I> with `autoapi_dirs` setting | py |
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -288,6 +288,8 @@ class SoCo(_SocoSingletonBase): # pylint: disable=R0904
""" Play a track from the queue by index. The index number is
required as an argument, where the first index is 0.
+... | Added argument explanation in remove_from_queue, play_from_queue. | py |
diff --git a/test/test_notification_warning.py b/test/test_notification_warning.py
index <HASH>..<HASH> 100755
--- a/test/test_notification_warning.py
+++ b/test/test_notification_warning.py
@@ -47,7 +47,7 @@ class TestConfig(ShinkenTest):
self.sched.actions[n.id] = n
self.sched.put_results(n)
... | Fix : ok let go for a utf8 match with kenkins. Last time he won, this time I get back again and I hope I'll win :) | py |
diff --git a/src/experi/pbs.py b/src/experi/pbs.py
index <HASH>..<HASH> 100644
--- a/src/experi/pbs.py
+++ b/src/experi/pbs.py
@@ -107,7 +107,7 @@ class SchedulerOptions:
def get_mail(self) -> str:
if self.email:
- return "{} Email: {}".format(self.prefix, self.email)
+ return "{} ... | BUG Include newlines after mail options This ensures each of the mail options is on it's own line by putting a newline after each. | py |
diff --git a/bonobo/structs/graphs.py b/bonobo/structs/graphs.py
index <HASH>..<HASH> 100644
--- a/bonobo/structs/graphs.py
+++ b/bonobo/structs/graphs.py
@@ -29,12 +29,13 @@ class GraphCursor:
def __rshift__(self, other):
""" Self >> Other """
- if other == ...:
+ nodes = other.nodes if h... | Complain if an elipsis is in the chain | py |
diff --git a/pyoko/manage.py b/pyoko/manage.py
index <HASH>..<HASH> 100644
--- a/pyoko/manage.py
+++ b/pyoko/manage.py
@@ -145,6 +145,8 @@ class FlushDB(Command):
HELP = 'REALLY DELETES the contents of buckets'
PARAMS = [{'name': 'model', 'required': True,
'help': 'Models name(s) to be cleared... | exclude support for flush_db commannd | py |
diff --git a/backtrader/indicators/basicops.py b/backtrader/indicators/basicops.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicators/basicops.py
+++ b/backtrader/indicators/basicops.py
@@ -28,7 +28,14 @@ from six.moves import xrange
from backtrader import Indicator
-class OperationN(Indicator):
+class Period... | Subclass OperationN from new PeriodN to allow for subclasses of basic PeriodN with no need to define "func" | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -244,8 +244,8 @@ class ClassicalCalculator(base.HazardCalculator):
oq = self.oqparam
N = len(self.siteco... | Removed maxweight limit to 1E6 [skip CI] Former-commit-id: 1ad<I>f<I>c<I>c<I>ccf<I>db<I>a<I>fa9f1bd | py |
diff --git a/salt/modules/cryptdev.py b/salt/modules/cryptdev.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cryptdev.py
+++ b/salt/modules/cryptdev.py
@@ -8,6 +8,7 @@ from __future__ import absolute_import
import json
import logging
import os
+import re
# Import salt libraries
import salt.utils
@@ -103,6 +10... | List active mapped crypt devices with `cryptdev.active` See #<I> | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -572,7 +572,7 @@ def apply_master_config(overrides=None, defaults=None):
# Let's make sure `worker_threads` does not drop bellow 3 which has proven
# to make `salt.modules.publish` not work ... | Only force to 3 if the peer interface is configured | py |
diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py
index <HASH>..<HASH> 100644
--- a/docker/Dockerfile.py
+++ b/docker/Dockerfile.py
@@ -28,7 +28,7 @@ dependencies = ' '.join(['libffi-dev', # For client side encryption for 'azure'
'wget',
'curl',
... | Mesos version to <I>. | py |
diff --git a/pyxmpp/presence.py b/pyxmpp/presence.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/presence.py
+++ b/pyxmpp/presence.py
@@ -29,7 +29,7 @@ import libxml2
from pyxmpp.utils import to_utf8,from_utf8
from pyxmpp.stanza import Stanza,StanzaError
-presence_types=("available","unavailable","subscribe","unsubscr... | - presence type 'probe' added | py |
diff --git a/peyotl/phylesystem/__init__.py b/peyotl/phylesystem/__init__.py
index <HASH>..<HASH> 100644
--- a/peyotl/phylesystem/__init__.py
+++ b/peyotl/phylesystem/__init__.py
@@ -83,10 +83,10 @@ def create_new_path_for_study_id(study_id):
finally:
_study_index_lock.release()
-try:
- get_paths_for... | commenting out index trigger cruft | py |
diff --git a/s_tui/Sources/TemperatureSource.py b/s_tui/Sources/TemperatureSource.py
index <HASH>..<HASH> 100644
--- a/s_tui/Sources/TemperatureSource.py
+++ b/s_tui/Sources/TemperatureSource.py
@@ -20,6 +20,10 @@ class TemperatureSource(Source):
self.is_available = True
self.update() # Inital updat... | Add a check for max_temp > 0 | py |
diff --git a/superset/viz.py b/superset/viz.py
index <HASH>..<HASH> 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -853,7 +853,7 @@ class NVD3TimeSeriesViz(NVD3Viz):
chart_data.append(d)
return chart_data
- def get_data(self, df):
+ def process_data(self, df):
fd = self.for... | Apply advanced analytics processing to comparison time series (#<I>) | py |
diff --git a/gwpy/io/cache.py b/gwpy/io/cache.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/cache.py
+++ b/gwpy/io/cache.py
@@ -140,7 +140,7 @@ def is_cache(cache):
if isinstance(cache, string_types + FILE_LIKE):
try:
c = read_cache(cache)
- except (TypeError, ValueError, UnicodeDecodeE... | io.cache.is_cache: fail on ImportError since we won't be able to validate the contents, or use them (most likely) | py |
diff --git a/can/interfaces/pcan/basic.py b/can/interfaces/pcan/basic.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/pcan/basic.py
+++ b/can/interfaces/pcan/basic.py
@@ -14,6 +14,8 @@ from ctypes import *
from string import *
import platform
import logging
+import winreg
+
logger = logging.getLogger("can.pca... | Added keycheck for windows platform (#<I>) * Added keycheck for windows platform PCANBasic will log an error when the PEAK-Driver key could not be found. * Forgot the import winreg statement * added empty line between imports and rest of code * added finally statement for closing registery | py |
diff --git a/telebot/types.py b/telebot/types.py
index <HASH>..<HASH> 100644
--- a/telebot/types.py
+++ b/telebot/types.py
@@ -548,7 +548,10 @@ class ReplyKeyboardMarkup(JsonSerializable):
i = 1
row = []
for button in args:
- row.append(button.to_dic())
+ if isinstance(b... | ReplyKeyboardMarkup support string. | py |
diff --git a/startup.py b/startup.py
index <HASH>..<HASH> 100644
--- a/startup.py
+++ b/startup.py
@@ -25,7 +25,7 @@ apiproxy_stub_map.apiproxy.RegisterStub('taskqueue', tq_stub)
os.environ['APPLICATION_ID'] = '_'
class Employee(Model):
- name = StringProperty(u'\u1234')
+ name = StringProperty()
age = Integer... | Revert accidental checkin to startup.py. | py |
diff --git a/utils/p2o.py b/utils/p2o.py
index <HASH>..<HASH> 100755
--- a/utils/p2o.py
+++ b/utils/p2o.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Perceval2Ocean tool | [utils] Use the 1st interpreter on $PATH It adds more flexibility and ensures you are using the right interpreter when using virtual envs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,10 +13,16 @@ exec(compile(
open("saltcloud/version.py").read(), "saltcloud/version.py", 'exec')
)
+saltcloud_reqs = os.path.join(os.path.abspath(
+ os.path.dirname(__file__)), 'requirements.txt')
+
NAME = '... | Have setup.py properly pull in requirements | py |
diff --git a/src/arcrest/hostedservice/service.py b/src/arcrest/hostedservice/service.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/hostedservice/service.py
+++ b/src/arcrest/hostedservice/service.py
@@ -198,7 +198,7 @@ class Services(BaseAGOLClass):
name = item['serviceName']
... | fixed bad urls for hosted services | py |
diff --git a/pyvera/__init__.py b/pyvera/__init__.py
index <HASH>..<HASH> 100755
--- a/pyvera/__init__.py
+++ b/pyvera/__init__.py
@@ -152,7 +152,7 @@ class VeraController(object):
item.get('deviceInfo').get('categoryName') ==
'Door lock'):
doorlock = VeraLock(item... | Changed double to single quotes in comparison. | py |
diff --git a/tests/unit/remote/test_webhdfs.py b/tests/unit/remote/test_webhdfs.py
index <HASH>..<HASH> 100644
--- a/tests/unit/remote/test_webhdfs.py
+++ b/tests/unit/remote/test_webhdfs.py
@@ -15,8 +15,8 @@ use_https = True
user = "test"
-@pytest.fixture()
-def webhdfs_config():
+@pytest.fixture(name="webhdfs_co... | tests: webhdfs: fix linter | py |
diff --git a/src/python/tmclient/cli.py b/src/python/tmclient/cli.py
index <HASH>..<HASH> 100644
--- a/src/python/tmclient/cli.py
+++ b/src/python/tmclient/cli.py
@@ -602,7 +602,8 @@ microscope_file_upload_parser.add_argument(
)
)
microscope_file_upload_parser.add_argument(
- '--retries', type=int, metavar='N... | Fix "TypeError: unsupported operands for `+=`" | py |
diff --git a/psamm/commands/primarypairs.py b/psamm/commands/primarypairs.py
index <HASH>..<HASH> 100644
--- a/psamm/commands/primarypairs.py
+++ b/psamm/commands/primarypairs.py
@@ -207,7 +207,6 @@ class PrimaryPairsCommand(SolverCommandMixin, Command):
reaction.equation, compound_form... | Removed extra printing from primarypairs mapmaker ambiguous | py |
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index <HASH>..<HASH> 100755
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -56,14 +56,14 @@ def make_test_repo(name):
return post
-class TestFindHooks(unittest.TestCase):
+class TestFindHooks(object):
repo_path = 'tests/test-hooks'
- de... | Change TestFindHooks to use pytest setup and teardown | py |
diff --git a/flowcraft/templates/sample_fastq.py b/flowcraft/templates/sample_fastq.py
index <HASH>..<HASH> 100755
--- a/flowcraft/templates/sample_fastq.py
+++ b/flowcraft/templates/sample_fastq.py
@@ -55,8 +55,8 @@ logger = get_logger(__file__)
if __file__.endswith(".command.sh"):
SAMPLE_ID = '$sample_id'
... | Change genome size and depth to floats | py |
diff --git a/lib/bibworkflow_model.py b/lib/bibworkflow_model.py
index <HASH>..<HASH> 100644
--- a/lib/bibworkflow_model.py
+++ b/lib/bibworkflow_model.py
@@ -315,6 +315,9 @@ class BibWorkflowObject(db.Model):
uri = db.Column(db.String(500), default="")
id_user = db.Column(db.Integer, default=0, nullable=Fals... | BibWorkflow: model relationship addition * Adds SQLAlchemy relationship for already existing foreign key between BibWorkflowObject and Workflow. | py |
diff --git a/webview/platforms/winforms.py b/webview/platforms/winforms.py
index <HASH>..<HASH> 100644
--- a/webview/platforms/winforms.py
+++ b/webview/platforms/winforms.py
@@ -252,7 +252,8 @@ class BrowserView:
self.url = None
self.ishtml = False
- _allow_localhost()
+ ... | [EdgeHTML] Do not show admin prompt for non-local URLs | py |
diff --git a/start_jupyter_cm/linux.py b/start_jupyter_cm/linux.py
index <HASH>..<HASH> 100644
--- a/start_jupyter_cm/linux.py
+++ b/start_jupyter_cm/linux.py
@@ -21,7 +21,7 @@ import subprocess
folders = [path for path in sys.argv[1:] if os.path.isdir(path)]
any_file_selected = len(folders) < len(sys.argv[1:])
-if... | Unlike nautilus, in caja the shortcuts are available when nothing is selected and the scripts was broken because the folders list was empty. | py |
diff --git a/parsl/monitoring/monitoring.py b/parsl/monitoring/monitoring.py
index <HASH>..<HASH> 100644
--- a/parsl/monitoring/monitoring.py
+++ b/parsl/monitoring/monitoring.py
@@ -343,9 +343,9 @@ class MonitoringHub(RepresentationMixin):
self.logger.error(f"MonitoringRouter sent an error message: {comm_... | Remove the only reference to 'dish' in the monitoring code (#<I>) This comes from some outdated terminology to go along with UDPRadio. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.