diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scopus/scopus_search.py b/scopus/scopus_search.py
index <HASH>..<HASH> 100644
--- a/scopus/scopus_search.py
+++ b/scopus/scopus_search.py
@@ -1,4 +1,3 @@
-import warnings
from collections import namedtuple
from scopus.classes import Search
@@ -7,19 +6,6 @@ from scopus.utils import listify
class Scop... | Remove deprecated attribute EIDS | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -104,6 +104,7 @@ class clean(Command):
os.system("rm -f MANIFEST")
os.system("rm -rf build/")
os.system("rm -rf dist/")
+ os.system("rm -rf pynfft/*.c")
os.system("rm -rf pynfft/*.so"... | make sure clean command removes c-files | py |
diff --git a/simplesqlite/core.py b/simplesqlite/core.py
index <HASH>..<HASH> 100644
--- a/simplesqlite/core.py
+++ b/simplesqlite/core.py
@@ -1371,7 +1371,6 @@ class SimpleSQLite(object):
def __initialize_connection(self):
self.__database_path = None
self.__connection = None
- self.__curs... | Remove a private variable that no longer used | py |
diff --git a/spout/sources.py b/spout/sources.py
index <HASH>..<HASH> 100644
--- a/spout/sources.py
+++ b/spout/sources.py
@@ -89,5 +89,5 @@ class TweetStream(BufferedStream):
self.publish_stream.register(data)
def on_error(self, status_code, data):
- sys.stderr.write(status_code,... | Fixed misuse of stderr that caused errors to error! | py |
diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py
index <HASH>..<HASH> 100755
--- a/benchexec/tablegenerator/__init__.py
+++ b/benchexec/tablegenerator/__init__.py
@@ -623,7 +623,7 @@ class RunResult:
elif column.title.lower() == 'status':
value = sta... | Do not compare score for knowing whether a result is correct. | py |
diff --git a/amino/dat.py b/amino/dat.py
index <HASH>..<HASH> 100644
--- a/amino/dat.py
+++ b/amino/dat.py
@@ -102,7 +102,8 @@ class DatMeta(ImplicitsMeta):
def __new__(cls: type, name: str, bases: tuple, namespace: dict, **kw) -> type:
fs = Map(namespace).lift('__init__') / inspect.getfullargspec / init_... | don't override `Dat` fields in subclasses | py |
diff --git a/sanic_jwt/authentication.py b/sanic_jwt/authentication.py
index <HASH>..<HASH> 100644
--- a/sanic_jwt/authentication.py
+++ b/sanic_jwt/authentication.py
@@ -111,8 +111,7 @@ class Authentication(BaseAuthentication):
# with a `user_id` key
payload = await utils.call(
self.ex... | Remove debugging print in payload | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -441,8 +441,8 @@ class EventBasedCalculator(base.HazardCalculator):
self.cl.run(close=False)
... | Small improvement [skip CI] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -86,6 +86,7 @@ DATASET_FILES = [
'image/cbis_ddsm_patch_labels.txt',
'image/dtd_key_attributes.txt',
'image/food-101_classes.txt',
+ 'image/imagenet_resized_labels.txt',
'image/imagenet2012_labels.txt',
... | Fix missing label.txt file from setup.py for ImagenetResized PiperOrigin-RevId: <I> | py |
diff --git a/ipyrad/analysis/pca.py b/ipyrad/analysis/pca.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/pca.py
+++ b/ipyrad/analysis/pca.py
@@ -762,13 +762,18 @@ class Drawing:
icolor = next(self.colors)
ishape = next(self.shapes)
+ try:
+ color = toyplot.col... | fix to allow custom colors in pca | py |
diff --git a/djangocms_page_tags/utils.py b/djangocms_page_tags/utils.py
index <HASH>..<HASH> 100644
--- a/djangocms_page_tags/utils.py
+++ b/djangocms_page_tags/utils.py
@@ -3,8 +3,13 @@ def get_cache_key(request, page, lang, site_id, title):
"""
Create the cache key for the current page and tag type
""... | Fix compatibility with django CMS <I> | py |
diff --git a/eventsourcing/application/simple.py b/eventsourcing/application/simple.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application/simple.py
+++ b/eventsourcing/application/simple.py
@@ -212,7 +212,7 @@ class SimpleApplication(Pipeable, Generic[TVersionedEntity, TVersionedEvent]):
return self._... | Adjusted wording of error message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup
-version = "1.2.1"
+version = "1.2.2"
setup(name='MAVProxy',
version=version,
@@ -36,8 +36,6 @@ on how to use MAVProxy.''',
'MAVProxy.modules.lib.ANUGA',
... | removed more dependencies dependencies with pip are basically broken. They don't find system libs, so end up trying to download and rebuild the world | py |
diff --git a/salt/cloud/__init__.py b/salt/cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/__init__.py
+++ b/salt/cloud/__init__.py
@@ -179,11 +179,11 @@ class CloudClient(object):
if pillars:
cloud_args = pillars.copy()
- for name, provider in cloud_args.get('providers... | should be using pop for a clean update later | py |
diff --git a/tools/voltdb-install.py b/tools/voltdb-install.py
index <HASH>..<HASH> 100755
--- a/tools/voltdb-install.py
+++ b/tools/voltdb-install.py
@@ -189,7 +189,7 @@ class Metadata:
self.volt_root = None
self.options = options
self.args = args
- self.re_volt_jar = re.... | Fix regex to match the one used at runtime. | py |
diff --git a/python_modules/dagster/dagster_tests/cli_tests/command_tests/test_cli_commands.py b/python_modules/dagster/dagster_tests/cli_tests/command_tests/test_cli_commands.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/cli_tests/command_tests/test_cli_commands.py
+++ b/python_modules/dags... | [cli tests] use inprocess executor for jobs (#<I>) | py |
diff --git a/functional_tests/test_surface_surface.py b/functional_tests/test_surface_surface.py
index <HASH>..<HASH> 100644
--- a/functional_tests/test_surface_surface.py
+++ b/functional_tests/test_surface_surface.py
@@ -547,7 +547,7 @@ def test_surfaces1L_and_3L():
edge_inds1, edge_inds2)
... | Lint fix (using too many locals to define intersection pts). | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -65,7 +65,10 @@ def parse_info(response):
if line and not line.startswith('#'):
key, value = line.split(':')
try:
- info[key] = float(value) if '.' ... | Remove ternary operator to support Python <I> | py |
diff --git a/colorise/cluts.py b/colorise/cluts.py
index <HASH>..<HASH> 100644
--- a/colorise/cluts.py
+++ b/colorise/cluts.py
@@ -228,15 +228,13 @@ if 'windows' in colorise._SYSTEM_OS:
def get_num_colors():
"""Get the number of colors supported by the terminal."""
- conemu_ansi = os.environ.get(... | Simplified ConEmu color detection | py |
diff --git a/libfuturize/fixer_util.py b/libfuturize/fixer_util.py
index <HASH>..<HASH> 100644
--- a/libfuturize/fixer_util.py
+++ b/libfuturize/fixer_util.py
@@ -367,6 +367,7 @@ def check_future_import(node):
"""If this is a future import, return set of symbols that are imported,
else return None."""
# ... | libfuturize: Add more diagnostic info about undecipherable imports Thanks for Mike Dewhirst for the patch. | py |
diff --git a/pliers/stimuli/video.py b/pliers/stimuli/video.py
index <HASH>..<HASH> 100644
--- a/pliers/stimuli/video.py
+++ b/pliers/stimuli/video.py
@@ -19,8 +19,6 @@ class VideoFrameStim(ImageStim):
super(VideoFrameStim, self).__init__(filename, onset, duration, data)
if data is None:
... | dropped prepended video file in name to meet new convention | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -380,8 +380,6 @@ class CreateContainerWithLogConfigTest(BaseTestCase):
assert expected_msg in str(excinfo.value)
- @pytest.mark.skipif(True,
-... | Remove skip test It has been reported that the bug in docker has now been fixed so we can re-instate this test. | py |
diff --git a/tensorpack/models/regularize.py b/tensorpack/models/regularize.py
index <HASH>..<HASH> 100644
--- a/tensorpack/models/regularize.py
+++ b/tensorpack/models/regularize.py
@@ -53,7 +53,7 @@ def regularize_cost(regex, func, name='regularize_cost'):
@layer_register(log_shape=False, use_scope=False)
-def D... | add noise_shape in Dropout layer. (fix #<I>) | py |
diff --git a/airflow/cli/cli_parser.py b/airflow/cli/cli_parser.py
index <HASH>..<HASH> 100644
--- a/airflow/cli/cli_parser.py
+++ b/airflow/cli/cli_parser.py
@@ -68,13 +68,12 @@ class DefaultHelpParser(argparse.ArgumentParser):
raise ArgumentError(action, message)
if value == 'kubernetes':
... | Simplify import check in CLI (#<I>) * Simplify import chekc in CLI * fixup! Simplify import chekc in CLI * fixup! fixup! Simplify import chekc in CLI | py |
diff --git a/modin/pandas/dataframe.py b/modin/pandas/dataframe.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/dataframe.py
+++ b/modin/pandas/dataframe.py
@@ -5035,7 +5035,11 @@ class DataFrame(object):
return DataFrame(result)
else:
try:
- if len(result) == 2 and i... | Checking for type before we check the length to avoid spurious errors. (#<I>) * Checking for type before we check the length to avoid spurious errors. * Resolves #<I> * Prevents errors from DataFrames with 2 rows * Lint | py |
diff --git a/kernel_tuner/strategies/diff_evo.py b/kernel_tuner/strategies/diff_evo.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/strategies/diff_evo.py
+++ b/kernel_tuner/strategies/diff_evo.py
@@ -33,8 +33,9 @@ def tune(runner, kernel_options, device_options, tuning_options):
results = []
cache = {}
+... | fixes for diff evo following merge with minimize | py |
diff --git a/openquake/calculators/hazard/general.py b/openquake/calculators/hazard/general.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/general.py
+++ b/openquake/calculators/hazard/general.py
@@ -539,7 +539,6 @@ class BaseHazardCalculatorNext(base.CalculatorNext):
sa_peri... | calcs/hazard/general: Removed some log statements which were added temporarily for debugging. Former-commit-id: <I>cf8c7b9aec6b<I>c<I>f4a<I>f<I>e<I>f<I>c9d0 | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -299,7 +299,10 @@ class CommandLineTestCase(unittest.TestCase):
# Make sure the default localization conditions on this "system"
# support UTF-8 encoding.
loc = lo... | tests: Use en_US.UTF-8 locale when C.UTF-8 not available Some operating systems don't have the `C.UTF-8` locale installed yet (for instance, CentOS 7). In such a case, fallback to `en_US.UTF-8` so that tests can be run. This follows commit <I>ff<I>. | py |
diff --git a/moto/ecs/models.py b/moto/ecs/models.py
index <HASH>..<HASH> 100644
--- a/moto/ecs/models.py
+++ b/moto/ecs/models.py
@@ -85,6 +85,29 @@ class Service(BaseObject):
return response_object
+class ContainerInstance(BaseObject):
+ def __init__(self, ec2_instance_id):
+ self.ec2_instance_... | add ContainerInstance class in ecs models | py |
diff --git a/nupic/frameworks/opf/metrics.py b/nupic/frameworks/opf/metrics.py
index <HASH>..<HASH> 100644
--- a/nupic/frameworks/opf/metrics.py
+++ b/nupic/frameworks/opf/metrics.py
@@ -1456,6 +1456,9 @@ class MetricMulti(AggregateMetric):
raise ValueError("MetricMulti requires 'metrics' parameter as a [list of... | fixme burn-in for multi metric addInstance() | py |
diff --git a/wily/operators/cyclomatic.py b/wily/operators/cyclomatic.py
index <HASH>..<HASH> 100644
--- a/wily/operators/cyclomatic.py
+++ b/wily/operators/cyclomatic.py
@@ -39,7 +39,7 @@ class CyclomaticComplexityOperator(BaseOperator):
logger.debug("Running CC harvester")
results = {}
# TO... | convert cyclomatic results from generator to dict first | py |
diff --git a/bcbio/variation/effects.py b/bcbio/variation/effects.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/effects.py
+++ b/bcbio/variation/effects.py
@@ -236,6 +236,8 @@ def snpeff_version(args=None, data=None):
raw_version = ""
snpeff_version = "".join([x for x in str(raw_version)
... | snpeff: only return major version for DB lookups Fixes incorrect lookups for download. Fixes #<I> | py |
diff --git a/chess/pgn.py b/chess/pgn.py
index <HASH>..<HASH> 100644
--- a/chess/pgn.py
+++ b/chess/pgn.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import abc
import enum
import itertools
import l... | Make BaseVisitor.result() an abstract method | py |
diff --git a/libraries/botbuilder-adapters-slack/setup.py b/libraries/botbuilder-adapters-slack/setup.py
index <HASH>..<HASH> 100644
--- a/libraries/botbuilder-adapters-slack/setup.py
+++ b/libraries/botbuilder-adapters-slack/setup.py
@@ -8,6 +8,8 @@ REQUIRES = [
"botbuilder-schema==4.10.0",
"botframework-co... | Adding dependencies to setup.py | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -928,7 +928,8 @@ def _add_lambda_context_data(data):
"""
global _CURRENT_LAMBDA_CONTEXT
context = _CURRENT_LAMBDA_CONTEXT
- return if context is None:
+ if conte... | python is not ruby | py |
diff --git a/openquake/nrmllib/hazard/writers.py b/openquake/nrmllib/hazard/writers.py
index <HASH>..<HASH> 100644
--- a/openquake/nrmllib/hazard/writers.py
+++ b/openquake/nrmllib/hazard/writers.py
@@ -453,7 +453,7 @@ class SESXMLWriter(object):
for ses in data:
ses_elem = etree.SubElemen... | Fixed the case when the ordinal is None | py |
diff --git a/mordred/task_manager.py b/mordred/task_manager.py
index <HASH>..<HASH> 100644
--- a/mordred/task_manager.py
+++ b/mordred/task_manager.py
@@ -91,7 +91,8 @@ class TasksManager(threading.Thread):
for task in self.tasks:
try:
task.execute()
- e... | [task_manager] Log exception error directly from TaskManager to find error in logs during execution | py |
diff --git a/package/cloudshell/cp/vcenter/common/vcenter/task_waiter.py b/package/cloudshell/cp/vcenter/common/vcenter/task_waiter.py
index <HASH>..<HASH> 100644
--- a/package/cloudshell/cp/vcenter/common/vcenter/task_waiter.py
+++ b/package/cloudshell/cp/vcenter/common/vcenter/task_waiter.py
@@ -16,7 +16,7 @@ class S... | refactored task_waiter to be more pythonic | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,8 +35,6 @@ setup(
'six',
'decorator',
'mir_eval',
- ],
- extras_require={
- 'docs': ['numpydoc']
- }
+ 'numpydoc',
+ ]
) | Added numpydocs as requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ class PyTest(TestCommand):
setup(
name='reraiseit',
- version='1.0.0',
+ version='1.0.1',
author='Alexandre Andrade',
author_email='kaniabi@gmail.com', | Updating version to <I>. | py |
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py
index <HASH>..<HASH> 100644
--- a/src/saml2/mdstore.py
+++ b/src/saml2/mdstore.py
@@ -618,9 +618,13 @@ class InMemoryMetaData(MetaData):
try:
self.entities_descr = md.entities_descriptor_from_string(xmlstr)
except Exception as e:
- ... | nfc: reformat expression in src/saml2/mdstore.py as per review | py |
diff --git a/ait/core/dmc.py b/ait/core/dmc.py
index <HASH>..<HASH> 100644
--- a/ait/core/dmc.py
+++ b/ait/core/dmc.py
@@ -283,8 +283,10 @@ class UTCLeapSeconds(object):
)
try:
+ log.info('Attempting to load leapseconds.dat')
with open(ls_file, 'rb') as outfile:
... | Updated Logging info Added more logging information when loading leapsecond.dat Resolve Ticket #<I> | py |
diff --git a/pandas/tseries/tests/test_plotting.py b/pandas/tseries/tests/test_plotting.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/tests/test_plotting.py
+++ b/pandas/tseries/tests/test_plotting.py
@@ -132,7 +132,10 @@ class TestTSPlot(tm.TestCase):
first_line = ax.get_lines()[0]
firs... | TST: skip buggy test if can't form test comparison (GH<I>) | py |
diff --git a/jose/backends/cryptography_backend.py b/jose/backends/cryptography_backend.py
index <HASH>..<HASH> 100644
--- a/jose/backends/cryptography_backend.py
+++ b/jose/backends/cryptography_backend.py
@@ -1,5 +1,9 @@
import six
-import ecdsa
+
+try:
+ from ecdsa import SigningKey as EcdsaSigningKey, Verifying... | isolate ecdsa key class imports to allow for missing library | py |
diff --git a/emoticons/__init__.py b/emoticons/__init__.py
index <HASH>..<HASH> 100644
--- a/emoticons/__init__.py
+++ b/emoticons/__init__.py
@@ -1,5 +1,5 @@
"""django-emoticons"""
-__version__ = '0.1.1'
+__version__ = '1.0'
__license__ = 'BSD License'
__author__ = 'Fantomas42' | Bumping to version <I> | py |
diff --git a/zounds/learn/loss.py b/zounds/learn/loss.py
index <HASH>..<HASH> 100644
--- a/zounds/learn/loss.py
+++ b/zounds/learn/loss.py
@@ -9,7 +9,7 @@ from zounds.spectral import fir_filter_bank
from zounds.timeseries import SampleRate
-class PerceptualLoss(object):
+class PerceptualLoss(nn.Module):
"""
... | Add to() implementation for device-agnostic code | py |
diff --git a/bcbio/ngsalign/alignprep.py b/bcbio/ngsalign/alignprep.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/alignprep.py
+++ b/bcbio/ngsalign/alignprep.py
@@ -222,7 +222,7 @@ def _ready_gzip_fastq(in_files, data):
"""
all_gzipped = all([not x or x.endswith(".gz") for x in in_files])
needs_con... | Ensure gzipped files are bgzipped We more aggressively grabix index with automatic setting of align_split_size so should only skip converting to bgzipped if align_split_size set to false. Fixes #<I> | py |
diff --git a/Tree/Core.py b/Tree/Core.py
index <HASH>..<HASH> 100644
--- a/Tree/Core.py
+++ b/Tree/Core.py
@@ -217,17 +217,6 @@ class FractalTree:
return branches
- def set_config(self, scale=None, complexity=None, branch_angle=None, shift_angle=None):
- """Change some properties."""
- if ... | remove set_config, not working with current design | py |
diff --git a/src/app/actions/prottable/fdr.py b/src/app/actions/prottable/fdr.py
index <HASH>..<HASH> 100644
--- a/src/app/actions/prottable/fdr.py
+++ b/src/app/actions/prottable/fdr.py
@@ -51,7 +51,8 @@ def qvalue_generator(fdrheader, sorted_features):
tdcounter[outfeat['target_decoy']] += 1
if outf... | Previous target decoy calculation was for TD-competition where D=T+D and decoys are reported in the output | py |
diff --git a/pygreen.py b/pygreen.py
index <HASH>..<HASH> 100644
--- a/pygreen.py
+++ b/pygreen.py
@@ -54,6 +54,7 @@ class PyGreen:
self.templates = TemplateLookup(directories=[self.folder],
imports=["from markdown import markdown"],
input_encoding='iso-8859-1',
+ collectio... | Added some limit to mako collection size | py |
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index <HASH>..<HASH> 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -225,6 +225,7 @@ class TreeRebuilder:
self.check_type_comment(child, parent=newnode) for child in node.kwonlyargs
]
type_comment_posonlyargs = []
+... | Make sure type_comment_kwonlyargs is set as well | py |
diff --git a/pypiper/pypiper.py b/pypiper/pypiper.py
index <HASH>..<HASH> 100644
--- a/pypiper/pypiper.py
+++ b/pypiper/pypiper.py
@@ -226,6 +226,30 @@ class Pypiper:
return process_return_code
+ def checkprint(self, cmd, shell=False, nofail=False):
+ """
+ A wrapper around subprocess.check_output() that also ... | Add checkprint function This should be used instead of subprocess.check_output() to grab some results for reporting. | py |
diff --git a/mbed/__main__.py b/mbed/__main__.py
index <HASH>..<HASH> 100644
--- a/mbed/__main__.py
+++ b/mbed/__main__.py
@@ -1,2 +1,2 @@
-from mbed import main
+from .mbed import main
main() | Python 3: Add dot to import in mbed/__main__.py to run as module (#<I>) | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -315,6 +315,8 @@ class ToolchainCL(object):
default=False,
description='Copy libraries instead of using biglink (And... | restore call to _read_configuration in Toolchain | py |
diff --git a/mad/simulation/requests.py b/mad/simulation/requests.py
index <HASH>..<HASH> 100644
--- a/mad/simulation/requests.py
+++ b/mad/simulation/requests.py
@@ -29,11 +29,12 @@ class RequestStatus(Enum):
class Request:
TRANSMISSION_DELAY = 1
- def __init__(self, task, operation, priority):
+ def __i... | Factoring queries and triggers continuation out in request | py |
diff --git a/uncompyle6/semantics/make_function36.py b/uncompyle6/semantics/make_function36.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/semantics/make_function36.py
+++ b/uncompyle6/semantics/make_function36.py
@@ -17,7 +17,7 @@ All the crazy things we have to do to handle Python functions in 3.6 and above.
The sa... | Another case where we need code to set the generator bit.. via a dead-code "yield". | py |
diff --git a/sark/code/function.py b/sark/code/function.py
index <HASH>..<HASH> 100644
--- a/sark/code/function.py
+++ b/sark/code/function.py
@@ -103,11 +103,12 @@ class Function(object):
ea = idc.here()
if Function.is_function(ea):
- raise exceptions.SarkFunctionExists("function alr... | removed an unnecessary else in Function.create | py |
diff --git a/discord/app_commands/transformers.py b/discord/app_commands/transformers.py
index <HASH>..<HASH> 100644
--- a/discord/app_commands/transformers.py
+++ b/discord/app_commands/transformers.py
@@ -48,7 +48,7 @@ from .errors import AppCommandError, TransformerError
from .models import AppCommandChannel, AppCo... | Allow Transformer.transform to be synchronous as well. | py |
diff --git a/pyeapi/eapilib.py b/pyeapi/eapilib.py
index <HASH>..<HASH> 100644
--- a/pyeapi/eapilib.py
+++ b/pyeapi/eapilib.py
@@ -37,7 +37,6 @@ for sending and receiving calls over eAPI using a HTTP/S transport.
"""
import sys
-import json
import socket
import base64
import logging
@@ -45,6 +44,14 @@ import ssl... | Try importing ujson and rapidjson before json ujson and rapidjson are libraries that are faster to encode and decode JSON objects | py |
diff --git a/liquid_tags/liquid_tags.py b/liquid_tags/liquid_tags.py
index <HASH>..<HASH> 100644
--- a/liquid_tags/liquid_tags.py
+++ b/liquid_tags/liquid_tags.py
@@ -1,15 +1,16 @@
from pelican import signals
from mdx_liquid_tags import LiquidTags
-from pelican.readers import EXTENSIONS
+
def addLiquidTags(gen):
... | Import default markdown extensions from settings instead of readers Closes getpelican/pelican-plugins#<I> Due to change in pelican code, `import EXTENSIONS` was no longer working. | py |
diff --git a/ah_bootstrap.py b/ah_bootstrap.py
index <HASH>..<HASH> 100644
--- a/ah_bootstrap.py
+++ b/ah_bootstrap.py
@@ -421,7 +421,7 @@ def _check_submodule_using_git(path):
if p.returncode != 0 or stderr:
# Unfortunately the return code alone cannot be relied on, as
- # earler versions of git... | Typos pointed out by @mafagafo | py |
diff --git a/tests/db.py b/tests/db.py
index <HASH>..<HASH> 100644
--- a/tests/db.py
+++ b/tests/db.py
@@ -45,6 +45,7 @@ def drop_db():
"Drop test db"
if not db_state['drop']:
return
+ get_conn().close()
master = psycopg2.connect(database='postgres')
master.autocommit = True
cursor ... | Close connection before attempting to drop test db | 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
@@ -194,6 +194,7 @@ LANG_RELEASE_MATRIX = {
('v1.23.0', ReleaseInfo()),
('v1.24.0', ReleaseInfo... | Add Java <I> to interop matrix | py |
diff --git a/pythainlp/summarize/mt5.py b/pythainlp/summarize/mt5.py
index <HASH>..<HASH> 100644
--- a/pythainlp/summarize/mt5.py
+++ b/pythainlp/summarize/mt5.py
@@ -25,14 +25,12 @@ class mT5Summarizer:
f"""model_size \"{model_size}\" not found.
It might be a typo; if not, ple... | Fix mT5 model name placed in wrong line | py |
diff --git a/airflow/sensors/smart_sensor_operator.py b/airflow/sensors/smart_sensor_operator.py
index <HASH>..<HASH> 100644
--- a/airflow/sensors/smart_sensor_operator.py
+++ b/airflow/sensors/smart_sensor_operator.py
@@ -295,9 +295,6 @@ class SmartSensorOperator(BaseOperator, SkipMixin):
:type shard_min: int
... | Remove unused "poke_exception_cache_ttl" param from SmartSensorOperator (#<I>) These four places are the only places this param appears in the code base, and is likely left over from open sourcing the original feature. | 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
@@ -398,8 +398,13 @@ def managed(name,
ret['changes']['diff'] = 'New file'
# Apply the new file
if not __opts__['test']:
- if makedirs:
- ... | Add check for when the parent dir is not present | py |
diff --git a/tibiapy/character.py b/tibiapy/character.py
index <HASH>..<HASH> 100644
--- a/tibiapy/character.py
+++ b/tibiapy/character.py
@@ -22,6 +22,7 @@ death_regexp = re.compile(r'Level (?P<level>\d+) by (?P<killers>.*)\.</td>')
death_assisted = re.compile(r'(?P<killers>.+)\.<br/>Assisted by (?P<assists>.+)')
# ... | Fixed bug with death parsing - Assist were not being parsed if a player had "and" in their name. | py |
diff --git a/pystache/template.py b/pystache/template.py
index <HASH>..<HASH> 100644
--- a/pystache/template.py
+++ b/pystache/template.py
@@ -23,8 +23,11 @@ class Template(object):
def render_sections(self, template, context):
"""Expands sections."""
- match = SECTION_RE.search(template)
- ... | Avoid code duplication by restructuring loops slightly | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ with open('README.md') as readme_file:
setup(
name="ipuz",
- version="0.1",
+ version="0.1.1",
license="MIT",
description="Python library for reading and writing ipuz puzzle files",
lo... | Updated version in setup.py as well | py |
diff --git a/playitagainsam/recorder.py b/playitagainsam/recorder.py
index <HASH>..<HASH> 100644
--- a/playitagainsam/recorder.py
+++ b/playitagainsam/recorder.py
@@ -117,7 +117,8 @@ class Recorder(SocketCoordinator):
def _handle_open_terminal(self, client_sock):
# Fork a new shell behind a pty.
- ... | Set TERM to claim vt<I> compatability only, for now. This seems to make the player work much better with e.g. vim. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,18 +54,21 @@ try:
class DocServe(Command):
description = 'serve the documentation locally'
user_options = [
+ ('working', 'w', 'use the documentation in the working directory'),
... | Allow locally-serving docs from the working dir to check stuff out while editing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,13 @@ from distutils.core import setup
setup(
name='django-debug-toolbar-template-timings',
- version='0.1',
+ version='0.2',
packages=['template_timings_panel', 'template_timings_panel.panels'],
+ ... | Fixed setup.py not including templates | py |
diff --git a/cirq/experiments/qubit_characterizations.py b/cirq/experiments/qubit_characterizations.py
index <HASH>..<HASH> 100644
--- a/cirq/experiments/qubit_characterizations.py
+++ b/cirq/experiments/qubit_characterizations.py
@@ -574,8 +574,10 @@ def _matrix_bar_plot(mat: np.ndarray,
ax.set_zlim3d(ylim[0], yl... | Draw ket labels for both real and imaginary parts of density matrix (#<I>) | py |
diff --git a/bibliopixel/control/extractor.py b/bibliopixel/control/extractor.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/control/extractor.py
+++ b/bibliopixel/control/extractor.py
@@ -39,7 +39,7 @@ class Extractor:
want to see channel=1, type=note_on with each message.
"""
def to_s... | Fix bug in extracting values that are 0 in control/extractor.py | py |
diff --git a/dispatch/api/serializers.py b/dispatch/api/serializers.py
index <HASH>..<HASH> 100644
--- a/dispatch/api/serializers.py
+++ b/dispatch/api/serializers.py
@@ -97,15 +97,20 @@ class FullImageAttachmentSerializer(serializers.HyperlinkedModelSerializer):
Special fields:
image returns serialized... | restructuring ImageAttachment API representation | py |
diff --git a/crispy_forms/templatetags/crispy_forms_tags.py b/crispy_forms/templatetags/crispy_forms_tags.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/templatetags/crispy_forms_tags.py
+++ b/crispy_forms/templatetags/crispy_forms_tags.py
@@ -10,7 +10,7 @@ from crispy_forms.utils import TEMPLATE_PACK, get_template_... | Suppressed flake8 error (#<I>) Suppress error as tests fail if register variable is not created before importing filters | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ setup(
url = "https://github.com/virgoerns/subconvert",
download_url = "https://github.com/virgoerns/subconvert/zipball/master",
license = "GPLv3+",
+ install_requires = ['chardet'],
packa... | Added chardet to dependencies | py |
diff --git a/airflow/contrib/sensors/sagemaker_training_sensor.py b/airflow/contrib/sensors/sagemaker_training_sensor.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/sensors/sagemaker_training_sensor.py
+++ b/airflow/contrib/sensors/sagemaker_training_sensor.py
@@ -15,17 +15,14 @@
# KIND, either express or implie... | Fix import path for `SageMakerHook` in `airflow/contrib/sensors/sagemaker_training` (#<I>) | py |
diff --git a/tst.py b/tst.py
index <HASH>..<HASH> 100755
--- a/tst.py
+++ b/tst.py
@@ -1250,6 +1250,32 @@ class TestCase(unittest.TestCase):
with self.assertRaisesRegex(ValueError, 'dataclass instance'):
astuple(int)
+ def test_dynamic_class_creation(self):
+ cls_dict = {'__annotations... | Issue #<I>: I haven't removed make_class() yet, but added tests to ensure that its alternative does work. | py |
diff --git a/salt/modules/postgres.py b/salt/modules/postgres.py
index <HASH>..<HASH> 100644
--- a/salt/modules/postgres.py
+++ b/salt/modules/postgres.py
@@ -887,7 +887,7 @@ def user_list(user=None, host=None, port=None, maintenance_db=None,
try:
retrow[date_key] = datetime.datetime.strpt... | Remove superfluous KeyError handling. | py |
diff --git a/stone/backends/python_rsrc/stone_base.py b/stone/backends/python_rsrc/stone_base.py
index <HASH>..<HASH> 100644
--- a/stone/backends/python_rsrc/stone_base.py
+++ b/stone/backends/python_rsrc/stone_base.py
@@ -196,6 +196,7 @@ class Union(object):
return cls._tagmap[tag]
class Route(object):
+ ... | Use __slots__ for Route (#<I>) This will allow some modest memory savings. | py |
diff --git a/toot/tui/app.py b/toot/tui/app.py
index <HASH>..<HASH> 100644
--- a/toot/tui/app.py
+++ b/toot/tui/app.py
@@ -519,6 +519,11 @@ class TUI(urwid.Frame):
elif key == 'esc':
if self.overlay:
self.close_overlay()
+ elif self.timeline.name != "home":
+ ... | Let <Esc> move back to "home" timeline When not in overlay mode, we handle <Esc> key press to get back to the "home" timeline. This allows to navigate quickly from another timeline to the home one, without getting through the "go to" menu. | py |
diff --git a/salt/sdb/memcache.py b/salt/sdb/memcache.py
index <HASH>..<HASH> 100644
--- a/salt/sdb/memcache.py
+++ b/salt/sdb/memcache.py
@@ -38,12 +38,6 @@ import logging
# import Salt libs
import salt.utils.memcache
-# import third party libs
-try:
- import memcache
- HAS_MEMCACHE = True
-except ImportErro... | detect available libs without throwing off lint | py |
diff --git a/wrench/logtools/utils.py b/wrench/logtools/utils.py
index <HASH>..<HASH> 100644
--- a/wrench/logtools/utils.py
+++ b/wrench/logtools/utils.py
@@ -94,8 +94,18 @@ def default_logging_dict(log_dir, handlers=['file'], filename='debug.log'):
# ===================================================================... | Update docstring on silence_logging | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -3031,7 +3031,7 @@ class Instrument(object):
default_warn = "".join(["Metadata for variables [{:s}] set to ",
"defaults,... | BUG: Corrected missing metadata feedback. | py |
diff --git a/ca/django_ca/signals.py b/ca/django_ca/signals.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/signals.py
+++ b/ca/django_ca/signals.py
@@ -17,6 +17,10 @@
**django-ca** adds a few custom Django signals to important events to let you execute custom actions when
these events happen. Please see `Djangos d... | add paragraph on django apps | py |
diff --git a/src/pyechonest/artist.py b/src/pyechonest/artist.py
index <HASH>..<HASH> 100644
--- a/src/pyechonest/artist.py
+++ b/src/pyechonest/artist.py
@@ -57,7 +57,7 @@ class Artist(object):
self._video = document.WebDocumentSet(self._identifier, 'get_video')
return self._video[start:start + r... | Fixed problem where artist.familiarity() would be transmuted to an integer in certain cases. Changed the defaults refresh for all methods to be consistent and 'false' | py |
diff --git a/flake8_import_order/checker.py b/flake8_import_order/checker.py
index <HASH>..<HASH> 100644
--- a/flake8_import_order/checker.py
+++ b/flake8_import_order/checker.py
@@ -94,7 +94,7 @@ class ImportOrderChecker(object):
if codes_str is None:
return True
- codes = set(parse_comm... | Return parsed codes as a set() We can directly use a set comprehension here instead of building and returning an intermediate list. | py |
diff --git a/raven/transport.py b/raven/transport.py
index <HASH>..<HASH> 100644
--- a/raven/transport.py
+++ b/raven/transport.py
@@ -19,7 +19,12 @@ class DuplicateScheme(StandardError):
class Transport(object):
"""
- Implementations of transport need to implement
+ All transport implementations need to ... | made the docstring in the Transport class not gibberish | py |
diff --git a/vulture/core.py b/vulture/core.py
index <HASH>..<HASH> 100644
--- a/vulture/core.py
+++ b/vulture/core.py
@@ -38,7 +38,7 @@ import sys
from vulture import lines
from vulture import utils
-__version__ = '0.25'
+__version__ = '0.26'
DEFAULT_CONFIDENCE = 60 | Update version number to <I> for release. | py |
diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index <HASH>..<HASH> 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -2213,6 +2213,7 @@ _network_error_messages = (
'Temporary failure in name resolution',
'Name or service not known',
'Connection refused',
+ 'certificate... | TST: allow the network decorator to catch ssl certificate test failures (#<I>) | py |
diff --git a/photutils/segmentation/tests/test_deblend.py b/photutils/segmentation/tests/test_deblend.py
index <HASH>..<HASH> 100644
--- a/photutils/segmentation/tests/test_deblend.py
+++ b/photutils/segmentation/tests/test_deblend.py
@@ -173,3 +173,17 @@ class TestDeblendSources:
data[50, 50] = np.nan
... | Add regression test for watershed mask type | py |
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index <HASH>..<HASH> 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -647,11 +647,10 @@ def test_cmdloop_without_rawinput():
assert out == expected
+@pytest.mark.skipif(not cmd2.can_clip,
+ reason="CLI utility for interacting w... | Skip the pastebuffer_read_and_write test if tools for interacting with clipboard/pastebuffer are not available | py |
diff --git a/spyder/plugins/editor/widgets/tests/test_autoindent.py b/spyder/plugins/editor/widgets/tests/test_autoindent.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/tests/test_autoindent.py
+++ b/spyder/plugins/editor/widgets/tests/test_autoindent.py
@@ -212,6 +212,21 @@ def test_issue_5606():
... | Editor: Add test for autoindent following cases on issue <I> | py |
diff --git a/examples/advanced/create_ast.py b/examples/advanced/create_ast.py
index <HASH>..<HASH> 100644
--- a/examples/advanced/create_ast.py
+++ b/examples/advanced/create_ast.py
@@ -15,6 +15,7 @@ from typing import List
from dataclasses import dataclass
from lark import Lark, ast_utils, Transformer, v_args
+fr... | Examples: Added correct type-info to the create_ast example | py |
diff --git a/lib/webinterface_handler.py b/lib/webinterface_handler.py
index <HASH>..<HASH> 100644
--- a/lib/webinterface_handler.py
+++ b/lib/webinterface_handler.py
@@ -302,6 +302,7 @@ def create_handler(root):
required_sorts.append(sort)
if sys.hexversion < 0x02050000:
... | kwalitee: fix imports of package components * Plugged back explicit imports of module.submodule components that were not exported by the mother module implicitly, fixing a problem introduced in recent badzil/code-quality branch merge. (closes #<I>) | py |
diff --git a/pycomb/combinators.py b/pycomb/combinators.py
index <HASH>..<HASH> 100644
--- a/pycomb/combinators.py
+++ b/pycomb/combinators.py
@@ -71,10 +71,7 @@ def list(combinator_element, name=None):
for d in x:
new_ctx = context.create(new_ctx_list)
- if new_ctx.empty:
- ... | Useless copy-and-past stuff removed | py |
diff --git a/aiosqlite/core.py b/aiosqlite/core.py
index <HASH>..<HASH> 100644
--- a/aiosqlite/core.py
+++ b/aiosqlite/core.py
@@ -42,8 +42,8 @@ class Connection(Thread):
self._connector = connector
self._loop = loop
self._lock = asyncio.Lock(loop=loop)
- self._tx = Queue()
- se... | Add types for tx/rx | py |
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/classes.py
+++ b/Lib/glyphsLib/classes.py
@@ -1925,6 +1925,8 @@ class GSNode(GSBase):
else:
if self.type == CURVE:
content = "c"
+ elif self.type == QCURVE:
... | Fix saving quadratic curves in Glyphs 3 | py |
diff --git a/py/dynesty/plotting.py b/py/dynesty/plotting.py
index <HASH>..<HASH> 100644
--- a/py/dynesty/plotting.py
+++ b/py/dynesty/plotting.py
@@ -2071,7 +2071,7 @@ def cornerbound(results,
uidx = samples_id[r]
live_u[uidx] = samples[r]
# Draw samples.
- psamps = bo... | ensure that the rstate is passed to sampler | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.