diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ndio/remote/boss/tests/int_test_group.py b/ndio/remote/boss/tests/int_test_group.py
index <HASH>..<HASH> 100644
--- a/ndio/remote/boss/tests/int_test_group.py
+++ b/ndio/remote/boss/tests/int_test_group.py
@@ -59,8 +59,6 @@ class ProjectGroupTest(unittest.TestCase):
self.existing_grp_name = 'int_t... | Moved creation of test group. No need to create test group in setUpClass(). | py |
diff --git a/enoslib/task.py b/enoslib/task.py
index <HASH>..<HASH> 100644
--- a/enoslib/task.py
+++ b/enoslib/task.py
@@ -49,8 +49,9 @@ def enostask(new=False):
try:
# Proceeds with the function execution
logger.info("- Task %s started -" % fn.__name__)
- f... | enostasks are now able to return values | py |
diff --git a/hwt/serializer/mode.py b/hwt/serializer/mode.py
index <HASH>..<HASH> 100644
--- a/hwt/serializer/mode.py
+++ b/hwt/serializer/mode.py
@@ -22,7 +22,10 @@ use serialize* methods to specify serialization mode for unit class
@internal
def freeze_dict(data):
keys = sorted(data.keys())
- frozen_type = ... | freeze_dict: support for empty dict | py |
diff --git a/payu/models/oasis.py b/payu/models/oasis.py
index <HASH>..<HASH> 100644
--- a/payu/models/oasis.py
+++ b/payu/models/oasis.py
@@ -52,6 +52,10 @@ class Oasis(Model):
if model == self:
continue
+ # Skip models without a work_path (like access)
+ if not ha... | oasis driver: add logic to skip models without work path | py |
diff --git a/openquake/server/tests/functional_test.py b/openquake/server/tests/functional_test.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/functional_test.py
+++ b/openquake/server/tests/functional_test.py
@@ -106,10 +106,6 @@ class EngineServerTestCase(unittest.TestCase):
@classmethod
def ... | Remove an old, wrong check about Django | py |
diff --git a/boa_test/example/demo/nex/token.py b/boa_test/example/demo/nex/token.py
index <HASH>..<HASH> 100644
--- a/boa_test/example/demo/nex/token.py
+++ b/boa_test/example/demo/nex/token.py
@@ -11,7 +11,7 @@ TOKEN_SYMBOL = 'NXT2'
TOKEN_DECIMALS = 8
# This is the script hash of the address for the owner of the ... | Update token.py small typo fixed: walet => wallet | py |
diff --git a/test/test_transforms.py b/test/test_transforms.py
index <HASH>..<HASH> 100644
--- a/test/test_transforms.py
+++ b/test/test_transforms.py
@@ -1852,8 +1852,10 @@ def test_randomperspective():
)
+@pytest.mark.parametrize("seed", range(10))
@pytest.mark.parametrize("mode", ["L", "RGB", "F"])
-de... | Set seed of test_randomperspective_fill (#<I>) * setting <I> seeds, let's see if it fails * Passed with <I>, so setting <I> | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100644
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -238,6 +238,7 @@ sqltype2blr = {
SQL_TYPE_TIMESTAMP: [35],
SQL_TYPE_BLOB: [9, 0],
SQL_TYPE_ARRAY: [9, 0],
+ SQL_TYPE_BOOLEAN: [23],
}
def calc_blr(x... | SQL_TYPE_BOOLEAN support | py |
diff --git a/projects/ninux/ninux/settings.example.py b/projects/ninux/ninux/settings.example.py
index <HASH>..<HASH> 100755
--- a/projects/ninux/ninux/settings.example.py
+++ b/projects/ninux/ninux/settings.example.py
@@ -461,7 +461,8 @@ NODESHOT = {
'nodeshot.community.mailing',
'nodeshot.ne... | added open<I> API to settings.example.py | py |
diff --git a/iktomi/forms/convs.py b/iktomi/forms/convs.py
index <HASH>..<HASH> 100644
--- a/iktomi/forms/convs.py
+++ b/iktomi/forms/convs.py
@@ -545,6 +545,7 @@ class Html(Char):
#: rendered back to HTML.
dom_callbacks = []
wrap_inline_tags = None
+ split_paragraphs_by_br = True
# Tags to wrap ... | adding split_paragraphs_by_br property for Html Cleaner | py |
diff --git a/smartmin/views.py b/smartmin/views.py
index <HASH>..<HASH> 100644
--- a/smartmin/views.py
+++ b/smartmin/views.py
@@ -159,7 +159,7 @@ class SmartView(object):
Looks for a field's value from the passed in obj. Note that this will strip
leading attributes to deal with subelements if possib... | deal with field names that aren't ascii | py |
diff --git a/example/settings.py b/example/settings.py
index <HASH>..<HASH> 100644
--- a/example/settings.py
+++ b/example/settings.py
@@ -76,6 +76,7 @@ INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
+ 'django.contrib.sites',
'django.contrib.ad... | Adding sites framework to example project. | py |
diff --git a/djset/djset.py b/djset/djset.py
index <HASH>..<HASH> 100644
--- a/djset/djset.py
+++ b/djset/djset.py
@@ -60,18 +60,22 @@ class DjSet(object):
self.set(key, '', glob)
-def _locate_settings():
+def _locate_settings(settings=''):
"Return the path to the DJANGO_SETTINGS_MODULE"
... | A less naive implementation that doesn't import the settings (fail!) | py |
diff --git a/pwkit/environments/casa/tasks.py b/pwkit/environments/casa/tasks.py
index <HASH>..<HASH> 100644
--- a/pwkit/environments/casa/tasks.py
+++ b/pwkit/environments/casa/tasks.py
@@ -3607,7 +3607,7 @@ def tsysplot (cfg):
antpols = apbyfield[ifield]
kt = fieldnames[ifield]
- ... | pwkit/environments/casa/tasks.py: fix plottsys when a field is fully flagged | py |
diff --git a/hydra_base/lib/project.py b/hydra_base/lib/project.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/project.py
+++ b/hydra_base/lib/project.py
@@ -138,7 +138,7 @@ def get_project(project_id, include_deleted_networks=False, **kwargs):
if include_deleted_networks==False and net_i.status.lower() =... | Hotfix to allow the projects page to load in hwi -- doesn't crap out when a user can't read a network within a project. | py |
diff --git a/telemetry/telemetry/core/chrome/inspector_backend.py b/telemetry/telemetry/core/chrome/inspector_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/chrome/inspector_backend.py
+++ b/telemetry/telemetry/core/chrome/inspector_backend.py
@@ -218,7 +218,7 @@ class InspectorBackend(object):
... | Expose in finally raised exception what type of error caused the tab crash. BUG=None R=<EMAIL> Review URL: <URL> | py |
diff --git a/zappa/handler.py b/zappa/handler.py
index <HASH>..<HASH> 100644
--- a/zappa/handler.py
+++ b/zappa/handler.py
@@ -122,6 +122,9 @@ class LambdaHandler(object):
handler = cls()
try:
return handler.handler(event, context)
+ except LambdaException as lex:
+ # do... | Do not handle LambdaExceptions, those are supposed to be handled by the wsgi app already. | py |
diff --git a/noseprogressive/result.py b/noseprogressive/result.py
index <HASH>..<HASH> 100644
--- a/noseprogressive/result.py
+++ b/noseprogressive/result.py
@@ -77,7 +77,7 @@ class ProgressiveResult(TextTestResult):
writeln = self.stream.writeln
write = self.stream.write
with self.bar.dodgi... | Standardize visual vocabulary: bold now means "failure of some kind". Skips are no longer bold. | py |
diff --git a/trackhub/helpers.py b/trackhub/helpers.py
index <HASH>..<HASH> 100644
--- a/trackhub/helpers.py
+++ b/trackhub/helpers.py
@@ -11,6 +11,10 @@ _here = __file__
def sanitize(s, strict=True):
"""
+ Sanitize a string.
+
+ Spaces are converted to underscore; if strict=True they are then removed.
+
... | rm spaces when sanitizing | py |
diff --git a/transformers/convert_pytorch_checkpoint_to_tf2.py b/transformers/convert_pytorch_checkpoint_to_tf2.py
index <HASH>..<HASH> 100644
--- a/transformers/convert_pytorch_checkpoint_to_tf2.py
+++ b/transformers/convert_pytorch_checkpoint_to_tf2.py
@@ -228,6 +228,7 @@ if __name__ == "__main__":
convert_all_p... | fix buf in convert_pt_chkpt_to_tf2 | py |
diff --git a/abodepy/helpers/errors.py b/abodepy/helpers/errors.py
index <HASH>..<HASH> 100644
--- a/abodepy/helpers/errors.py
+++ b/abodepy/helpers/errors.py
@@ -43,5 +43,8 @@ INVALID_AUTOMATION_EDIT_RESPONSE = (
TRIGGER_NON_QUICKACTION = (
17, "Can not trigger an automation that is not a manual quick-action.")
... | Added error for device class mapping failure. | py |
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/projectexplorer.py
+++ b/spyderlib/widgets/projectexplorer.py
@@ -186,6 +186,10 @@ class Project(object):
**ROPE_PREFS)
... | Fixed Issue <I>: Can't create a spyder project for and existing mercurial working copy | py |
diff --git a/examples/run_generation.py b/examples/run_generation.py
index <HASH>..<HASH> 100644
--- a/examples/run_generation.py
+++ b/examples/run_generation.py
@@ -145,6 +145,8 @@ def main():
help="Avoid using CUDA when available")
parser.add_argument('--seed', type=int, default=42,
... | Add option to use a 'stop token' which will be used to truncate the output text to everything till right before the 'stop token' | py |
diff --git a/crowdin/cli.py b/crowdin/cli.py
index <HASH>..<HASH> 100644
--- a/crowdin/cli.py
+++ b/crowdin/cli.py
@@ -151,7 +151,7 @@ VERSION:
def open_file(self, options_config):
# reading configuration file
location_to_configuration_file = 'crowdin.yaml'
- home = os.path.expanduser("~")... | Update cli.py import error when non-ascii characters are present in cwd or user name (windows) | py |
diff --git a/artifacts/exceptions.py b/artifacts/exceptions.py
index <HASH>..<HASH> 100644
--- a/artifacts/exceptions.py
+++ b/artifacts/exceptions.py
@@ -16,13 +16,20 @@ Exceptions raised by the Artifacts library.
from __future__ import print_function, division
+__all__ = [
+ 'ArtifactsError',
+ 'Artifactor... | Add __all__ variable to enforce ordering in docs | py |
diff --git a/synapse/tests/test_model_inet.py b/synapse/tests/test_model_inet.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_model_inet.py
+++ b/synapse/tests/test_model_inet.py
@@ -1064,6 +1064,9 @@ class InetModelTest(s_t_common.SynTest):
'file': 'sha256:' + 64 * 'F'
}
expected... | Additional model coverage on inet:web:mesg | py |
diff --git a/i3pystatus/weather/wunderground.py b/i3pystatus/weather/wunderground.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/weather/wunderground.py
+++ b/i3pystatus/weather/wunderground.py
@@ -206,7 +206,7 @@ class Wunderground(WeatherBackend):
pressure_trend = '+' if pressure_tendency == 'rising' el... | wunderground: Switch value used for weather condition name (#<I>) `wxPhraseShort` ends up being abbreviated a lot. `wxPhraseMedium` is equivalent to how wunderground worked before the recent rewrite. I just ended up missing this during the rewrite. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -75,7 +75,7 @@ def call_antlr4(arg):
"calls antlr4 on grammar file"
# pylint: disable=unused-argument, unused-variable
antlr_path = os.path.join(ROOT_DIR, "java", "antlr-4.7-complete.jar")
- classpath = ".:{:... | Fix ANTLR generation on Windows The path separator on Windows is ";", whereas we used to just use ":" without checking what platform we were running on. Python conveniently offers the correct separator to use with the "os.pathsep" variable. | py |
diff --git a/multiqc/modules/whatshap/whatshap.py b/multiqc/modules/whatshap/whatshap.py
index <HASH>..<HASH> 100755
--- a/multiqc/modules/whatshap/whatshap.py
+++ b/multiqc/modules/whatshap/whatshap.py
@@ -273,16 +273,21 @@ class MultiqcModule(BaseMultiqcModule):
configuration = {
'id': 'multiq... | Hide percentages, since we only show counts | py |
diff --git a/dvc/output/local.py b/dvc/output/local.py
index <HASH>..<HASH> 100644
--- a/dvc/output/local.py
+++ b/dvc/output/local.py
@@ -73,9 +73,9 @@ class LocalOutput(BaseOutput):
if os.path.isabs(self.def_path):
return False
- if self.repo and not self.path_info.isin(self.repo.root_d... | use realpath for is_in_repo calculation (#<I>) This is because, the repo root is used from a realpath, and the stage.wdir is abspath. We might need to use same kinds of path, but this patch seems to be the easiest/fastest way to fix the flaky tests (if all the tests agree). | py |
diff --git a/aikif/core_data.py b/aikif/core_data.py
index <HASH>..<HASH> 100644
--- a/aikif/core_data.py
+++ b/aikif/core_data.py
@@ -28,7 +28,7 @@ class CoreData():
define an object with a name
"""
self.name = name
- self.node = None # this is the node in the graph
+ self.d... | adding data variable and format record for CSV | py |
diff --git a/sos/plugins/ovn_central.py b/sos/plugins/ovn_central.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ovn_central.py
+++ b/sos/plugins/ovn_central.py
@@ -57,6 +57,8 @@ class OVNCentral(Plugin):
# Some user-friendly versions of DB output
cmds = [
+ 'ovn-nbctl show',
+ ... | [ovn_central] add additional show commands This patch is adding 'show' commands for both OVN NorthBound and SouthBound databases. | py |
diff --git a/scheduler/fleet.py b/scheduler/fleet.py
index <HASH>..<HASH> 100644
--- a/scheduler/fleet.py
+++ b/scheduler/fleet.py
@@ -268,7 +268,8 @@ class FleetHTTPClient(object):
chan.get_pty()
out = chan.makefile()
chan.exec_command(cmd)
- rc, output... | fix(controller): read from SSH channel before checking exit status | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -11,13 +11,14 @@ setup(
author_email="travis.parker@gmail.com"
)
+MANIFEST = (
+ "setup.py",
+ "paver-minilib.zip",
+)
+
@task
def manifest():
- fp = open('MANIFEST.in', 'w')
- try:
- f... | cleaned up and simplified pavement.py a bit | py |
diff --git a/opentargets_validator/helpers.py b/opentargets_validator/helpers.py
index <HASH>..<HASH> 100644
--- a/opentargets_validator/helpers.py
+++ b/opentargets_validator/helpers.py
@@ -63,7 +63,7 @@ class URLZSource(object):
f = requests.get(self.filename, *self.args, stream=True, **self.kwargs)
... | fix: remove read capabilities when the file is written to a file as it will be open as read only later on | py |
diff --git a/openfisca_core/tools/test_runner.py b/openfisca_core/tools/test_runner.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/tools/test_runner.py
+++ b/openfisca_core/tools/test_runner.py
@@ -58,7 +58,7 @@ def run_tests(tax_benefit_system, paths, options = None):
| Key | Type ... | Rename doc openfisca-run-test to openfisca_test | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -190,7 +190,7 @@ def _linux_gpu_data():
return {}
# dominant gpu vendors to search for (MUST be lowercase for matching below)
- known_vendors = ['nvidia', 'amd', '... | Update core.py grains to add Matrox and ASPEED. Matrox and ASPEED are used in a lot of server mainboards for embedded GPU chips. Add these as recognized chipset manufacturers. Drive-By: Align netbsd vendor data with linux vendor data, adding cirrus logic and vmware to the linux vendors. | py |
diff --git a/multimap.py b/multimap.py
index <HASH>..<HASH> 100644
--- a/multimap.py
+++ b/multimap.py
@@ -274,7 +274,7 @@ class MutableMultiMap(MultiMap, collections.MutableMapping):
def setlist(self, key, value):
key = self._conform_key(key)
- del self[key]
+ self.remove(key)
fo... | fixed a couple of bugs introduced into MultiMap a while ago | py |
diff --git a/yargy/tokenizer.py b/yargy/tokenizer.py
index <HASH>..<HASH> 100644
--- a/yargy/tokenizer.py
+++ b/yargy/tokenizer.py
@@ -32,7 +32,7 @@ class TokenRule(Record):
class RussianRule(TokenRule):
# TODO Why does it differ from LatinRule pattern?
- pattern = r'[а-яё][а-яё\-]*'
+ pattern = r'[а-яё]+... | Split by "-" in tokenizer #<I> | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -180,18 +180,11 @@ def create_job(user_name="openquake", log_level='progress', hc_id=None):
class EnginePerformanceMonitor(PerformanceMonitor):
+ ... | Small fix to the monitoring Former-commit-id: 5f4fd<I>d<I>f3f8faca<I>f9a4a<I>f<I> | py |
diff --git a/fandjango/middleware.py b/fandjango/middleware.py
index <HASH>..<HASH> 100644
--- a/fandjango/middleware.py
+++ b/fandjango/middleware.py
@@ -82,8 +82,8 @@ class FacebookMiddleware():
last_name = profile.get('last_name'),
profile_url = profile.get('link'),
... | Fix a bug that caused a KeyError when Facebook lists the user's hometown and location incorrectly Fixes #<I> | py |
diff --git a/epyc/lab.py b/epyc/lab.py
index <HASH>..<HASH> 100644
--- a/epyc/lab.py
+++ b/epyc/lab.py
@@ -192,7 +192,7 @@ class Lab(object):
for p in ps:
#print "Running {p}".format(p = p)
res = e.set(p).run()
- nb.addResults(res)
+ nb.addResult(res)
... | Reflected change of LabNotebook API | py |
diff --git a/molo/profiles/tests/test_views.py b/molo/profiles/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/molo/profiles/tests/test_views.py
+++ b/molo/profiles/tests/test_views.py
@@ -322,7 +322,7 @@ class MyProfileEditTest(TestCase, MoloTestCaseMixin):
'foo')
def test_email_... | adding test for emai showing in edit view | py |
diff --git a/malcolm/modules/ca/parts/cawaveformtablepart.py b/malcolm/modules/ca/parts/cawaveformtablepart.py
index <HASH>..<HASH> 100644
--- a/malcolm/modules/ca/parts/cawaveformtablepart.py
+++ b/malcolm/modules/ca/parts/cawaveformtablepart.py
@@ -1,4 +1,5 @@
-from malcolm.core import Part, Widget, PartRegistrar, Nu... | Swapped Runtime assert to raise BadValueError | py |
diff --git a/src/pytest_cov/engine.py b/src/pytest_cov/engine.py
index <HASH>..<HASH> 100644
--- a/src/pytest_cov/engine.py
+++ b/src/pytest_cov/engine.py
@@ -218,6 +218,7 @@ class DistMaster(CovController):
self.cov = coverage.Coverage(source=self.cov_source,
branch=sel... | Always enable data_suffix for --cov-append Setting `data_suffix=True` will also enable `parallel=True` and ensure the coverage processes do not conflict with each other. Because pytest-cov always combines the coverage result this is safe to enable. | py |
diff --git a/traces/timeseries.py b/traces/timeseries.py
index <HASH>..<HASH> 100644
--- a/traces/timeseries.py
+++ b/traces/timeseries.py
@@ -673,8 +673,7 @@ class TimeSeries(object):
for ts in timeseries_list:
if len(ts) == 0:
raise ValueError("Can't merge empty TimeSeries.")
-
... | changed not equals to equals for <I> compatibility | py |
diff --git a/zappa/utilities.py b/zappa/utilities.py
index <HASH>..<HASH> 100644
--- a/zappa/utilities.py
+++ b/zappa/utilities.py
@@ -143,7 +143,7 @@ def detect_flask_apps():
full = os.path.join(root, filename)
- with open(full, 'r') as f:
+ with open(full, 'r', encoding='utf8') ... | Adding Flask app detection encoding Seeking to fix issue #<I> | py |
diff --git a/soco/exceptions.py b/soco/exceptions.py
index <HASH>..<HASH> 100755
--- a/soco/exceptions.py
+++ b/soco/exceptions.py
@@ -107,12 +107,6 @@ class SoCoFault(object):
def __getitem__(self, item):
raise self.exception
- def __eq__(self, other):
- raise self.exception
-
- def __ne__... | SoCoFault: don't reraise on __eq__ | py |
diff --git a/code/photini/metadata_pyexiv2.py b/code/photini/metadata_pyexiv2.py
index <HASH>..<HASH> 100644
--- a/code/photini/metadata_pyexiv2.py
+++ b/code/photini/metadata_pyexiv2.py
@@ -55,7 +55,7 @@ class MetadataHandler(object):
def set_exif_tag_string(self, tag, value):
new_tag = pyexiv2.ExifTag... | Bug fix: EXIF strings need to be UTF-8 encoded. | py |
diff --git a/GPy/util/linalg.py b/GPy/util/linalg.py
index <HASH>..<HASH> 100644
--- a/GPy/util/linalg.py
+++ b/GPy/util/linalg.py
@@ -21,6 +21,8 @@ else:
try:
_blaslib = ctypes.cdll.LoadLibrary(np.core._dotblas.__file__) # @UndefinedVariable
_blas_available = True
+ assert hasattr('dsyrk_',_blaslib)
+ ... | fixed blaslib bug, I hope | py |
diff --git a/ipyrad/assemble/write_outfiles.py b/ipyrad/assemble/write_outfiles.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/write_outfiles.py
+++ b/ipyrad/assemble/write_outfiles.py
@@ -892,7 +892,10 @@ def get_edges(data, superints, splits):
for some reason make sure we copy the superints instead.
"... | support for new trim_loci param | py |
diff --git a/workshift/models.py b/workshift/models.py
index <HASH>..<HASH> 100644
--- a/workshift/models.py
+++ b/workshift/models.py
@@ -74,6 +74,12 @@ class Semester(models.Model):
help_text="If this semester is the current semester.",
)
+ @property
+ def sem_url(self):
+ if self.current:
+ ... | Added a sem_url property to semesters | py |
diff --git a/python/src/setup.py b/python/src/setup.py
index <HASH>..<HASH> 100644
--- a/python/src/setup.py
+++ b/python/src/setup.py
@@ -14,7 +14,7 @@ import setuptools
# To debug, set DISTUTILS_DEBUG env var to anything.
setuptools.setup(
name="GoogleAppEngineMapReduce",
- version="1.9.16.1",
+ version=... | bump pypi version to <I> and Pipeline dep to <I> | py |
diff --git a/cleverhans/tests/test_per_image_standardize.py b/cleverhans/tests/test_per_image_standardize.py
index <HASH>..<HASH> 100644
--- a/cleverhans/tests/test_per_image_standardize.py
+++ b/cleverhans/tests/test_per_image_standardize.py
@@ -11,8 +11,8 @@ def test_per_image_standardize():
input_shape = (128, ... | make pylint happy | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -4966,12 +4966,18 @@ class PyIso(object):
if self.eltorito_boot_catalog is None:
raise PyIsoException("The ISO must have an Eltorito Boot Record to add isohybrid support")
- # FIXME: we have to g... | Make sure the isolinux file has the correct signature. | py |
diff --git a/jax/abstract_arrays.py b/jax/abstract_arrays.py
index <HASH>..<HASH> 100644
--- a/jax/abstract_arrays.py
+++ b/jax/abstract_arrays.py
@@ -37,7 +37,7 @@ def make_shaped_array(x):
def zeros_like_array(x):
dtype = dtypes.canonicalize_dtype(dtypes.result_type(x))
- return np.broadcast_to(np.array(0, dty... | Optimize zeros_like_shaped_array This function is used a lot more now, because `ad.instantiate_zeros` now goes through that and not `zeros_like_array`. | py |
diff --git a/aioxmpp/testutils.py b/aioxmpp/testutils.py
index <HASH>..<HASH> 100644
--- a/aioxmpp/testutils.py
+++ b/aioxmpp/testutils.py
@@ -483,7 +483,7 @@ class TransportMock(InteractivityMock,
logging.info("got this: %r", data)
self._tester.assertEqual(
expected_data[:len... | testutils: improve readability of debug output | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -325,6 +325,7 @@ class Volume(AWSObject):
props = {
'AvailabilityZone': (basestring, True),
+ 'Encrypted': (boolean, False),
'Iops': (int, False),
... | added Encrypted option to AWS::EC2::Volume | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -153,6 +153,9 @@ class Linter(SimpleCommand):
sys.exit(-1)
+NEEDS_PYTEST = {'pytest', 'test', 'coverage'}.intersection(sys.argv)
+PYTEST_RUNNER = ['pytest-runner'] if NEEDS_PYTEST else []
+
# We are parsing t... | Require pytest-runner only when testing | py |
diff --git a/pyethereum/packeter.py b/pyethereum/packeter.py
index <HASH>..<HASH> 100644
--- a/pyethereum/packeter.py
+++ b/pyethereum/packeter.py
@@ -1,8 +1,9 @@
import logging
import rlp
-from utils import (big_endian_to_int as idec,
- int_to_big_endian4 as ienc4,
- recursive_int... | fix encoding when sending peers; this bug resulted in diconnects | py |
diff --git a/tests/unit/test_schema_version.py b/tests/unit/test_schema_version.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_schema_version.py
+++ b/tests/unit/test_schema_version.py
@@ -29,7 +29,12 @@ SFS = (SchemaFixture("5.2.0-ice35-b12", "2015-01"),
SchemaFixture("5.3.0-ice36-b59", "2016-06"),
... | Add test coverage for PEP <I> variants of version numbers | py |
diff --git a/pyowm/constants.py b/pyowm/constants.py
index <HASH>..<HASH> 100644
--- a/pyowm/constants.py
+++ b/pyowm/constants.py
@@ -2,6 +2,6 @@
Constants for the PyOWM library
"""
-PYOWM_VERSION = '2.6.1'
+PYOWM_VERSION = '2.7.0'
LATEST_OWM_API_VERSION = '2.5'
DEFAULT_API_KEY = 'b1b15e88fa797225412429c1c50c122... | Prepare bump to version <I> | py |
diff --git a/simplekv/__init__.py b/simplekv/__init__.py
index <HASH>..<HASH> 100644
--- a/simplekv/__init__.py
+++ b/simplekv/__init__.py
@@ -347,7 +347,7 @@ class TimeToLiveMixin(object):
if ttl_secs in (FOREVER, NOT_SET):
return ttl_secs
- if not isinstance(ttl_secs, int):
+ if ... | Allow floats as well as ints for ttl. | py |
diff --git a/packages/vaex-core/vaex/test/dataset.py b/packages/vaex-core/vaex/test/dataset.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/test/dataset.py
+++ b/packages/vaex-core/vaex/test/dataset.py
@@ -175,6 +175,7 @@ class TestDataset(unittest.TestCase):
f = ds.add_function('mul2', multiply(2))
... | test: call ds.state_get() to trigger serialialization | py |
diff --git a/soundcloud_cli/cli.py b/soundcloud_cli/cli.py
index <HASH>..<HASH> 100644
--- a/soundcloud_cli/cli.py
+++ b/soundcloud_cli/cli.py
@@ -186,8 +186,6 @@ def main():
upload_parser.add_argument('filename', help='filename to upload')
upload_parser.add_argument('--public', action='store_true', help='mak... | Don't compress files by default. --compress must be provided in order to compress files. No need for --no-compress option. | py |
diff --git a/galpy/potential_src/TwoPowerTriaxialPotential.py b/galpy/potential_src/TwoPowerTriaxialPotential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential_src/TwoPowerTriaxialPotential.py
+++ b/galpy/potential_src/TwoPowerTriaxialPotential.py
@@ -134,13 +134,14 @@ class TwoPowerTriaxialPotential(Potential):
... | First remove units from pa, then test whether it's zero | py |
diff --git a/pythonwhat/test_exercise.py b/pythonwhat/test_exercise.py
index <HASH>..<HASH> 100644
--- a/pythonwhat/test_exercise.py
+++ b/pythonwhat/test_exercise.py
@@ -3,7 +3,7 @@ from pythonwhat.local import run_exercise
from pythonwhat.sct_syntax import Ex, get_chains
from pythonwhat.utils import check_str, chec... | Simplify except in test_exercise | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = "9.2.7"
+__version__ = "9.2.8" | Increase version number to <I>. | py |
diff --git a/dclab/rtdc_dataset/load.py b/dclab/rtdc_dataset/load.py
index <HASH>..<HASH> 100644
--- a/dclab/rtdc_dataset/load.py
+++ b/dclab/rtdc_dataset/load.py
@@ -140,9 +140,10 @@ def check_dataset(path_or_ds):
if "samples per event" in ds.config["fluorescence"]:
spe = ds.config["fluorescence"... | enh: increase versbosity of dataset-checker | py |
diff --git a/angr/analyses/cfg_accurate.py b/angr/analyses/cfg_accurate.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_accurate.py
+++ b/angr/analyses/cfg_accurate.py
@@ -2158,7 +2158,7 @@ class CFGAccurate(ForwardAnalysis, CFGBase): # pylint: disable=abstract-metho
if old_proc.IS_SYSCALL:... | CFGAccurate: correctly pass in 'ret_to' when creating syscall stubs | py |
diff --git a/atomic_reactor/plugins/post_push_to_pulp.py b/atomic_reactor/plugins/post_push_to_pulp.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/post_push_to_pulp.py
+++ b/atomic_reactor/plugins/post_push_to_pulp.py
@@ -115,8 +115,12 @@ class PulpPushPlugin(PostBuildPlugin):
fd, compressed_fil... | pulp_push: omit '| tar --delete' without args | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,9 +14,9 @@ CURRENT_DIR = os.path.dirname(__file__)
# python setup.py register sdist upload
# and be sure to test it firstly using "python setup.py register sdist upload -r pypitest"
setup(name='russound',
- # versi... | Version bump, updated setup.py to accommodate changes in the PYPI API (#9) Added Long description to read the readme file, changed description to be really short with no line breaks, bumped version to be able to build and send to PYPI | py |
diff --git a/ipywidgets/embed.py b/ipywidgets/embed.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/embed.py
+++ b/ipywidgets/embed.py
@@ -15,7 +15,11 @@ from .widgets import Widget, DOMWidget
from .widgets.widget_link import Link
from ._version import __html_manager_version__
-snippet_template = u"""<script src="{... | Add require.js to the embedding snippet. | py |
diff --git a/pyfactor/tests/test_utils.py b/pyfactor/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/pyfactor/tests/test_utils.py
+++ b/pyfactor/tests/test_utils.py
@@ -14,13 +14,13 @@ from pandas import (
from pandas.util.testing import (assert_frame_equal,
assert_series_equal)... | TST rename to match returns naming convention | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,6 @@ setup(
url=url,
packages=find_packages(exclude=['tests', 'tests.*', 'qa_tests', 'qa_tests.*']),
install_requires=[
- 'openquake',
'numpy',
'scipy'
], | virtual package openquake removed from dependencies | py |
diff --git a/tests/metrics/cpu_psutil_tests.py b/tests/metrics/cpu_psutil_tests.py
index <HASH>..<HASH> 100644
--- a/tests/metrics/cpu_psutil_tests.py
+++ b/tests/metrics/cpu_psutil_tests.py
@@ -61,6 +61,7 @@ def test_cpu_mem_from_psutil():
cpu_linux = pytest.importorskip("elasticapm.metrics.sets.cpu_linux")
+@pyt... | skip flaky metrics comparison test (#<I>) Unfortunately, this test fails quite often on CI due to unpredictable load. | py |
diff --git a/coconut/compiler.py b/coconut/compiler.py
index <HASH>..<HASH> 100644
--- a/coconut/compiler.py
+++ b/coconut/compiler.py
@@ -1211,12 +1211,10 @@ class processor(object):
def setup(self, target=None, strict=False, minify=False, linenumbers=False):
"""Initializes target, strict, and minify."... | Improves comment and linenumber interaction | py |
diff --git a/genes/tests.py b/genes/tests.py
index <HASH>..<HASH> 100644
--- a/genes/tests.py
+++ b/genes/tests.py
@@ -456,7 +456,7 @@ class GeneSearchTestCase(ResourceTestCaseMixin, TestCase):
api_name = v.api_name
response = self.api_client.get(
- '/api/{}/gene/search/'.format(a... | Removing format='json' from parameters in a couple of tests in tests.py | py |
diff --git a/snakebacon/records.py b/snakebacon/records.py
index <HASH>..<HASH> 100644
--- a/snakebacon/records.py
+++ b/snakebacon/records.py
@@ -291,7 +291,7 @@ class CalibCurve:
return out
-def plot_acc_prior(mem_shape, mem_mean, thick):
+def plot_accmem_prior(mem_shape, mem_mean, thick):
"""Plot a... | Dumb correction of overloading plot function names. | py |
diff --git a/law/task/base.py b/law/task/base.py
index <HASH>..<HASH> 100644
--- a/law/task/base.py
+++ b/law/task/base.py
@@ -169,10 +169,7 @@ class BaseTask(luigi.Task):
raw = replace.get(name, getattr(self, name))
val = param.serialize(raw)
arg = "--{}".format(name.replace("_",... | [task/base] Fix serialization of bools in cli_args. | py |
diff --git a/bugzoo/server/__init__.py b/bugzoo/server/__init__.py
index <HASH>..<HASH> 100644
--- a/bugzoo/server/__init__.py
+++ b/bugzoo/server/__init__.py
@@ -27,6 +27,21 @@ def show_bug(uid: str):
return flask.jsonify(jsn)
+@app.route('/bugs/<uid>/build', methods=['POST'])
+def build_bug(uid: str):
+ t... | added POST /bug/<uid>/build | py |
diff --git a/session_security/tests/test_base.py b/session_security/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/session_security/tests/test_base.py
+++ b/session_security/tests/test_base.py
@@ -55,5 +55,7 @@ class BaseLiveServerTestCase(LiveServerTestCase):
def wait_for_pages_loaded(self):
for ... | Bugfix in wait_for_pages_loaded | py |
diff --git a/watermarker/utils.py b/watermarker/utils.py
index <HASH>..<HASH> 100644
--- a/watermarker/utils.py
+++ b/watermarker/utils.py
@@ -114,8 +114,8 @@ def determine_position(position, img, mark):
XxY: absolute positioning on both the X and Y axes
"""
- max_left = abs(img.size[0] - mark.size[0... | Fixed an error in calculating positioning values when the destination image is smaller than the watermark (GC #1) | py |
diff --git a/tests/test_api_plugins.py b/tests/test_api_plugins.py
index <HASH>..<HASH> 100644
--- a/tests/test_api_plugins.py
+++ b/tests/test_api_plugins.py
@@ -109,12 +109,12 @@ def test_repo_commits():
""" Test the repo_commits function """
instance = Plugin()
commits = instance.repo_commits('https:/... | mistake with asserting type rather than value | py |
diff --git a/pysat/tests/test_avg.py b/pysat/tests/test_avg.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_avg.py
+++ b/pysat/tests/test_avg.py
@@ -241,7 +241,7 @@ class Test2DConstellation:
for i in self.testC.instruments:
i.bounds = (pysat.datetime(2008,1,1), pysat.datetime(2008,2,1))
... | changed mlt to longitude in test_avg line <I> | py |
diff --git a/potpy/wsgi.py b/potpy/wsgi.py
index <HASH>..<HASH> 100644
--- a/potpy/wsgi.py
+++ b/potpy/wsgi.py
@@ -254,7 +254,7 @@ class App(object):
)
try:
response = context.inject(self.router)
- except MethodRouter.MethodNotAllowed as exc:
+ except MethodRouter.MethodNotA... | another old python fix | py |
diff --git a/pyathena/formatter.py b/pyathena/formatter.py
index <HASH>..<HASH> 100644
--- a/pyathena/formatter.py
+++ b/pyathena/formatter.py
@@ -44,17 +44,11 @@ def _format_default(formatter, escaper, val):
def _format_date(formatter, escaper, val):
- if escaper is _escape_presto:
- return "date'{0}'".... | Changed to use CAST function in date and datetime type conversion (fix #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -105,6 +105,8 @@ if sys.platform == 'darwin':
del flann_info['runtime_library_dirs'], flann_info['library_dirs']
flann_info['libraries'] = [
os.path.join(ld[0], lib) for lib in flann_info['librar... | setup.py: allow for having neither library dirs nor runtime library dirs | py |
diff --git a/pew/pew.py b/pew/pew.py
index <HASH>..<HASH> 100644
--- a/pew/pew.py
+++ b/pew/pew.py
@@ -159,7 +159,7 @@ def shell(env, cwd=None):
env = str(env)
shell = os.environ.get('SHELL', 'powershell' if windows else 'sh')
shell_name = Path(shell).stem
- if shell_name not in ('powershell', 'bash')... | Ignore shell_check for elvish | py |
diff --git a/usb/util.py b/usb/util.py
index <HASH>..<HASH> 100644
--- a/usb/util.py
+++ b/usb/util.py
@@ -301,12 +301,13 @@ def get_string(dev, index, langid = None):
buf = get_descriptor(
dev,
- 255, # Maximum descriptor size
+ 254, # maximum even length
... | Ignore last byte from string descriptors with odd number of bytes Some devices do not conform to the USB specification and return string descriptors with odd number of bytes. Instead of processing the invalid string as is, which would result in a UnicodeDecodeError, trim off the last byte and proceed. This is simila... | py |
diff --git a/sure/__init__.py b/sure/__init__.py
index <HASH>..<HASH> 100644
--- a/sure/__init__.py
+++ b/sure/__init__.py
@@ -903,13 +903,13 @@ if is_cpython and allows_new_syntax:
old_dir = dir
-@wraps(builtins.dir)
-def _new_dir(obj=None):
- if obj is None:
- frame = inspect.currentframe()
- re... | only patch `dir()` if the new syntax is allowed | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -96,7 +96,7 @@ DEFAULT_MINION_OPTS = {
'state_verbose': True,
'state_output': 'full',
'acceptance_wait_time': 10,
- 'loop_interval': 0.05,
+ 'loop_interval': 1,
'dns_check': Tr... | Update the loop_interval to 1, we have to play around with this more | py |
diff --git a/ssbio/pipeline/gempro.py b/ssbio/pipeline/gempro.py
index <HASH>..<HASH> 100644
--- a/ssbio/pipeline/gempro.py
+++ b/ssbio/pipeline/gempro.py
@@ -1192,7 +1192,9 @@ class GEMPRO(object):
log.info('Updated existing PDB dataframe.')
else:
cols = ['gene', 'pdb_id', 'pdb_chain... | Update headers in pdb metadata | py |
diff --git a/dolo/numeric/extern/lmmcp.py b/dolo/numeric/extern/lmmcp.py
index <HASH>..<HASH> 100644
--- a/dolo/numeric/extern/lmmcp.py
+++ b/dolo/numeric/extern/lmmcp.py
@@ -75,6 +75,7 @@ def lmmcp(fun, Dfun, x0, lb, ub, verbose=True, options={}):
null = opts['null']
Big = opts['Big']
preprocess = opts... | FIX: presteps option added to lmmcp.py | py |
diff --git a/src/you_get/extractors/youku.py b/src/you_get/extractors/youku.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/youku.py
+++ b/src/you_get/extractors/youku.py
@@ -74,6 +74,11 @@ class Youku(VideoExtractor):
video_page = get_content('http://www.youku.com/playlist_show/id_%s' % playlist... | [youku] support multi-page playlists | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -88,12 +88,13 @@ class BrokerConnection(local):
# instead we read directly from the socket fd buffer
# alternatively, we could read size bytes into a separate buffer
# and decode ... | Add size and correlation id decoding to try/except block in BrokerConnection | py |
diff --git a/qa_tests/hazard/disagg/case_1/test.py b/qa_tests/hazard/disagg/case_1/test.py
index <HASH>..<HASH> 100644
--- a/qa_tests/hazard/disagg/case_1/test.py
+++ b/qa_tests/hazard/disagg/case_1/test.py
@@ -30,7 +30,7 @@ from openquake.engine.export import hazard as haz_export
from qa_tests import _utils as qa_uti... | Increased the tolerance in the disaggregation test Former-commit-id: c1c<I>ee<I>ee<I>c<I>a3a<I>dd<I>b4bd5d5 | py |
diff --git a/pgmpy/Factor/Factor.py b/pgmpy/Factor/Factor.py
index <HASH>..<HASH> 100644
--- a/pgmpy/Factor/Factor.py
+++ b/pgmpy/Factor/Factor.py
@@ -296,6 +296,9 @@ class Factor:
return self.product(other)
def __eq__(self, other):
+ if type(self) != type(other):
+ return False
+
... | modified __eq__ method to return False if compared to some other type of variable | py |
diff --git a/alot/buffers.py b/alot/buffers.py
index <HASH>..<HASH> 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -253,7 +253,6 @@ class SearchBuffer(Buffer):
self.reversed = reverse
self.kill_filler_process()
- self.result_count = self.dbman.count_messages(self.querystring)
... | catch exception about malformed query strings .. when getting thread message count to build search buffers. We already had a try/except block for this. This commit just moves the one offending line into that block. Fixes #<I> | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -43,7 +43,7 @@ extensions = [
#'matplotlib.sphinxext.ipython_directive',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
- 'sphinx.ext.pngmath',
+ #'sphinx.ext.imgmath'... | Use sphinx.ext.mathjax only for math support and remove sphinx.ext.pngmath which is deprecated. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.