diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py b/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/plugins/implementations/dependency_pruner.py
+++ b/mythril/laser/ethereum/plugins/implementations/dependency_pru... | Add FIXME for potential bug | py |
diff --git a/hypermap/settings/default.py b/hypermap/settings/default.py
index <HASH>..<HASH> 100644
--- a/hypermap/settings/default.py
+++ b/hypermap/settings/default.py
@@ -107,6 +107,7 @@ MEDIA_URL = "/media/"
# celery stuff
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERY_RESULT_BACKEND = 'd... | Providing defult BROKER_URL setting | py |
diff --git a/enamlnativecli/main.py b/enamlnativecli/main.py
index <HASH>..<HASH> 100644
--- a/enamlnativecli/main.py
+++ b/enamlnativecli/main.py
@@ -1855,7 +1855,8 @@ class EnamlNativeCli(Atom):
def check_dependencies(self):
try:
info = json.loads(str(self.conda("info", "--json")))
- ... | Include test as an inactive env | py |
diff --git a/.buildkite/dagster-buildkite/dagster_buildkite/steps/integration.py b/.buildkite/dagster-buildkite/dagster_buildkite/steps/integration.py
index <HASH>..<HASH> 100644
--- a/.buildkite/dagster-buildkite/dagster_buildkite/steps/integration.py
+++ b/.buildkite/dagster-buildkite/dagster_buildkite/steps/integrat... | Fix Buildkite integration tests Test Plan: integration Reviewers: alangenfeld, dgibson, johann Reviewed By: johann Differential Revision: <URL> | py |
diff --git a/zinnia/tests/test_views.py b/zinnia/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/test_views.py
+++ b/zinnia/tests/test_views.py
@@ -740,6 +740,7 @@ class ViewsTestCase(ViewsBaseCase):
'Hello *World* !')
quick_entry.MARKUP_LANGUAGE = original_markup_language
+
... | Fix and correct CustomDetailViewsTestCase | py |
diff --git a/nosedjango/nosedjango.py b/nosedjango/nosedjango.py
index <HASH>..<HASH> 100644
--- a/nosedjango/nosedjango.py
+++ b/nosedjango/nosedjango.py
@@ -97,9 +97,8 @@ class NoseDjango(Plugin):
# project/..
if not SETTINGS_PATH:
- sys.stderr.write("Can't find Django settings file!\n"... | Raise RuntimeError if settings file is not found | py |
diff --git a/sprinter/formula/eggscript.py b/sprinter/formula/eggscript.py
index <HASH>..<HASH> 100644
--- a/sprinter/formula/eggscript.py
+++ b/sprinter/formula/eggscript.py
@@ -9,6 +9,7 @@ links = http://github.com/toumorokoshi/sprinter/tarball/master#egg=sprinter-0.6
redownload = true
"""
from __future__ import u... | pip output should be debug level | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -638,7 +638,7 @@ class Connection(object):
:raise OperationalError: If the connection to the MySQL server is lost.
:raise InternalError: If the packet s... | Optimize reading huge packet (#<I>) | py |
diff --git a/AppiumLibrary/keywords/_touch.py b/AppiumLibrary/keywords/_touch.py
index <HASH>..<HASH> 100644
--- a/AppiumLibrary/keywords/_touch.py
+++ b/AppiumLibrary/keywords/_touch.py
@@ -124,6 +124,18 @@ class _TouchKeywords(KeywordGroup):
el = self._element_find(locator, True, True)
action = Tou... | Add tap with number of taps keyword | py |
diff --git a/svtplay_dl.py b/svtplay_dl.py
index <HASH>..<HASH> 100755
--- a/svtplay_dl.py
+++ b/svtplay_dl.py
@@ -1129,6 +1129,13 @@ class Svtplay():
download_hds(options, manifest, swf)
else:
download_http(options, test["url"])
+ if options.subtitle:
+ try:
+ ... | svtplay: support for subtitle | py |
diff --git a/tensorflow_datasets/scripts/document_datasets.py b/tensorflow_datasets/scripts/document_datasets.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/scripts/document_datasets.py
+++ b/tensorflow_datasets/scripts/document_datasets.py
@@ -49,6 +49,12 @@ all modifications will be erased, please edit the ... | Move the note above usage to make it visible enough to notice. PiperOrigin-RevId: <I> | py |
diff --git a/torchvision/models/inception.py b/torchvision/models/inception.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/inception.py
+++ b/torchvision/models/inception.py
@@ -17,6 +17,10 @@ def inception_v3(pretrained=False, **kwargs):
r"""Inception v3 model architecture from
`"Rethinking the Ince... | Added size information for inception v3 (#<I>) * Added size information for inception v3 Since inception v3 expects in contrast to the other models a size of <I>x<I>x3 I added a small note in the docstring to point that out (addresses #<I>) * inception size info in note box; fixed line length * removed trai... | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -2272,6 +2272,15 @@ class Instrument(object):
friend.load(date=date, end_date=end_date)
yield friend
+ # Add last loaded data/metadata ... | ENH: Added data and meta at end of iter | py |
diff --git a/src/scs_core/sys/disk_usage_datum.py b/src/scs_core/sys/disk_usage_datum.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/sys/disk_usage_datum.py
+++ b/src/scs_core/sys/disk_usage_datum.py
@@ -3,11 +3,8 @@ Created on 16 Apr 2018
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
-http://code.... | Added disk_usage(..) method to node. | py |
diff --git a/marathon/models/info.py b/marathon/models/info.py
index <HASH>..<HASH> 100644
--- a/marathon/models/info.py
+++ b/marathon/models/info.py
@@ -55,6 +55,7 @@ class MarathonConfig(MarathonObject):
:param bool checkpoint:
:param str executor:
:param int failover_timeout:
+ :param type feature... | Added features attribute to MarathonConfig | py |
diff --git a/tests/test_workspacebuilder.py b/tests/test_workspacebuilder.py
index <HASH>..<HASH> 100644
--- a/tests/test_workspacebuilder.py
+++ b/tests/test_workspacebuilder.py
@@ -148,10 +148,10 @@ def test_suppress_history(session):
{'window_name': 'isMissing'}).attached_pane
def assertHistory(cmd, ... | Ignore bash prompt when comparing history command. The `sent_cmd` includes the bash prompt on the captured line (or at least could depending on timing) so compare with `endswith()` to ignore any prefix containing the prompt string. | py |
diff --git a/charmhelpers/contrib/openstack/amulet/utils.py b/charmhelpers/contrib/openstack/amulet/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/amulet/utils.py
+++ b/charmhelpers/contrib/openstack/amulet/utils.py
@@ -463,16 +463,13 @@ class OpenStackAmuletUtils(AmuletUtils):
deplo... | update amulet helper to fix cinder authentication with keystone v3 (#<I>) | py |
diff --git a/MesoPy.py b/MesoPy.py
index <HASH>..<HASH> 100755
--- a/MesoPy.py
+++ b/MesoPy.py
@@ -321,7 +321,7 @@ class Meso(object):
e.g., start='201306011800'
end: string, mandatory
End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC
- ... | Minor comment section changes Additional minor changes to string text in comment section | py |
diff --git a/pyang/statements.py b/pyang/statements.py
index <HASH>..<HASH> 100644
--- a/pyang/statements.py
+++ b/pyang/statements.py
@@ -1973,7 +1973,7 @@ def find_target_node(ctx, stmt, is_augment=False):
return None
else:
chs = [c for c in stmt.parent.parent.i_children \
- ... | keep uses path in i_uses | py |
diff --git a/raven/contrib/celery/__init__.py b/raven/contrib/celery/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/celery/__init__.py
+++ b/raven/contrib/celery/__init__.py
@@ -29,15 +29,15 @@ class CeleryClient(CeleryMixin, Client):
def register_signal(client):
- def process_failure_signal(except... | Fix celery task_failure signal definition | py |
diff --git a/owslib/feature/wfs200.py b/owslib/feature/wfs200.py
index <HASH>..<HASH> 100644
--- a/owslib/feature/wfs200.py
+++ b/owslib/feature/wfs200.py
@@ -176,7 +176,7 @@ class WebFeatureService_2_0_0(WebFeatureService_):
(url) = self.getGETGetFeatureRequest(typename, filter, bbox, featureid,
... | fix WFS <I> getfeature | py |
diff --git a/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_definitions.py b/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_definitions.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_definitions.py
+++ b/python_... | added test to ensure that version is passed properly from solid decorator to solid definition. Summary: Ran into this issue with ResourceDefinition, figured while I was at it might as well do the same type of test for solid. Test Plan: Added test Reviewers: sandyryza, yuhan Reviewed By: sandyryza Differential Revi... | py |
diff --git a/examples/matrix_demo.py b/examples/matrix_demo.py
index <HASH>..<HASH> 100644
--- a/examples/matrix_demo.py
+++ b/examples/matrix_demo.py
@@ -34,7 +34,7 @@ def demo(n, block_orientation):
"India", "November", "Golf", " "
]
- virtual = viewport(device, width=64, height=len(words) * 8)
+ ... | Fix width when using multiple cascaded devices | py |
diff --git a/marshmallow_sqlalchemy/schema.py b/marshmallow_sqlalchemy/schema.py
index <HASH>..<HASH> 100644
--- a/marshmallow_sqlalchemy/schema.py
+++ b/marshmallow_sqlalchemy/schema.py
@@ -180,12 +180,13 @@ class ModelSchema(with_metaclass(ModelSchemaMeta, ma.Schema)):
:param instance: Optional existing inst... | bugfix: model instance stays permanent on schema instance if load fails with exception | py |
diff --git a/spyder/plugins/completion/plugin.py b/spyder/plugins/completion/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/completion/plugin.py
+++ b/spyder/plugins/completion/plugin.py
@@ -166,10 +166,10 @@ class CompletionManager(SpyderCompletionPlugin):
return responses
def gather_defaul... | Completions: Make the default response to be None instead of '' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
- 'requests >= 2.5.2',
+ 'requests >= 2.5.2, < 2.11',
'six >= 1.4.0',
'websocket-client >= 0.32.0',
] | Exclude requests <I> from setup.py to work around unicode bug | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,11 +15,14 @@ setup(
author_email='jcarbaugh@sunlightfoundation.com',
url='http://github.com/sunlightlabs/django-mediasync/',
packages=find_packages(),
- package_data = {
+ package_data={
'medi... | add boto to install_requires in setup.py | py |
diff --git a/odinweb/content_type_resolvers.py b/odinweb/content_type_resolvers.py
index <HASH>..<HASH> 100644
--- a/odinweb/content_type_resolvers.py
+++ b/odinweb/content_type_resolvers.py
@@ -14,25 +14,18 @@ def accepts_header():
"""
Resolve content type from the accepts header.
"""
- def inner(req... | Removed DefaultString and updated the name to match what it is | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -310,5 +310,5 @@ v = Validator()
# -- Options for extlinks extension --------------------------------------------
extlinks = {
- 'issue': ('https://github.com/sphinx-doc/sphinx/issues/%s', '#')
+ 'iss... | Fixes base url for issues in docs/conf.py Closes #<I>. | py |
diff --git a/astroplan/tests/test_constraints.py b/astroplan/tests/test_constraints.py
index <HASH>..<HASH> 100644
--- a/astroplan/tests/test_constraints.py
+++ b/astroplan/tests/test_constraints.py
@@ -364,6 +364,7 @@ constraint_tests = [
]
@pytest.mark.parametrize('constraint', constraint_tests)
+@pytest.mark.ski... | skip test if pyephem not installed | py |
diff --git a/tornado/test/locks_test.py b/tornado/test/locks_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/locks_test.py
+++ b/tornado/test/locks_test.py
@@ -11,11 +11,11 @@
# under the License.
from datetime import timedelta
-import unittest
from tornado import gen, locks
from tornado.gen import Timeo... | Import unittest2 in locks_test if needed. | py |
diff --git a/nfc/dev/__init__.py b/nfc/dev/__init__.py
index <HASH>..<HASH> 100644
--- a/nfc/dev/__init__.py
+++ b/nfc/dev/__init__.py
@@ -20,7 +20,3 @@
# -----------------------------------------------------------------------------
__all__ = ["pn53x"]
-
-# uncomment the following line for LLCP testing with a TCP/I... | 'ipsim' module no longer needed in __all__ since device can be specified at clf instantiation | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -163,6 +163,25 @@ def get_os_version_package(pkg, fatal=True):
#error_out(e)
+os_rel = None
+... | Cached os_release(). | py |
diff --git a/paramz/tests/parameterized_tests.py b/paramz/tests/parameterized_tests.py
index <HASH>..<HASH> 100644
--- a/paramz/tests/parameterized_tests.py
+++ b/paramz/tests/parameterized_tests.py
@@ -37,6 +37,7 @@ def test_constraints_in_init():
self.x = Param('x', np.random.uniform(0,1,(3,4)), transfor... | [constrainable] default fixed was bugged | py |
diff --git a/test/scenario_test/addpath_test.py b/test/scenario_test/addpath_test.py
index <HASH>..<HASH> 100644
--- a/test/scenario_test/addpath_test.py
+++ b/test/scenario_test/addpath_test.py
@@ -13,18 +13,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
... | addpath_test: Enable to run without root privilege see the comment of 4d7e3bd<I>fa<I>f<I>a0a3f5f<I>c<I>b<I>ee<I>d | py |
diff --git a/tests/test_cluster.py b/tests/test_cluster.py
index <HASH>..<HASH> 100644
--- a/tests/test_cluster.py
+++ b/tests/test_cluster.py
@@ -31,7 +31,7 @@ class TestClusterList(QdsCliTestCase):
print_command()
Connection._api_call = Mock(return_value=[])
qds.main()
- Connection._... | Fix test_label. Needed after 3db<I>dfb<I> | py |
diff --git a/src/SALib/analyze/morris.py b/src/SALib/analyze/morris.py
index <HASH>..<HASH> 100755
--- a/src/SALib/analyze/morris.py
+++ b/src/SALib/analyze/morris.py
@@ -11,7 +11,7 @@ from ..sample.morris import compute_delta
def analyze(problem, X, Y,
- num_resamples=1000,
+ num_resamples=1... | Update morris.py update morris num_resamples from <I> to <I> samples | py |
diff --git a/vedo/io.py b/vedo/io.py
index <HASH>..<HASH> 100644
--- a/vedo/io.py
+++ b/vedo/io.py
@@ -1929,6 +1929,7 @@ class Video:
cap = cv2.VideoCapture(os.path.join(self.tmp_dir.name, "%1d.png"))
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
w,h = settings.plotter_instance.window.... | scale w, h according to settings.screeshotScale while using opencv w and h are not scaled according to settings.screeshotScale while using opencv. This causes video saving to fail. | py |
diff --git a/openfisca_core/formulas.py b/openfisca_core/formulas.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/formulas.py
+++ b/openfisca_core/formulas.py
@@ -946,6 +946,11 @@ class FormulaColumnMetaclass(type):
entity_class_by_key_plural = base_class.entity_class_by_key_plural
entity_clas... | Get the entity class cloned by the reform if relevant | py |
diff --git a/datajoint/external.py b/datajoint/external.py
index <HASH>..<HASH> 100644
--- a/datajoint/external.py
+++ b/datajoint/external.py
@@ -103,6 +103,7 @@ class Bucket:
:param lpath: local path
"""
try:
+ self.connect()
self._s3.Object(self._bucket, rpath).uplo... | external.py: consistently call connect in methods & do operations w/i try blocks | py |
diff --git a/niworkflows/reports/core.py b/niworkflows/reports/core.py
index <HASH>..<HASH> 100644
--- a/niworkflows/reports/core.py
+++ b/niworkflows/reports/core.py
@@ -258,7 +258,7 @@ class Report:
self.packagename = packagename
self.subject_id = subject_id
if subject_id is not None:
- ... | FIX: Purge troublesome lstrip | py |
diff --git a/chains/links/dns_meta.py b/chains/links/dns_meta.py
index <HASH>..<HASH> 100644
--- a/chains/links/dns_meta.py
+++ b/chains/links/dns_meta.py
@@ -167,7 +167,7 @@ class DNSMeta(link.Link):
# Is the subdomain name especially long or have high entropy?
for query in record['queries']:
- ... | couple small changes to dns_meta | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -1606,7 +1606,7 @@ class AbstractElement(object):
for child in self:
if self.TEXTCONTAINER and isstring(child):
jsonnode['children'].append(chi... | bad fix bad, good fix still bad, try again | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -662,8 +662,6 @@ def parseArgs():
args = parser.parse_args()
- # Decode path so we can work properly with cyrillic symbols on different versions on Python... | Move path decode to proper place. | py |
diff --git a/pymc/step_methods/hmc/base_hmc.py b/pymc/step_methods/hmc/base_hmc.py
index <HASH>..<HASH> 100644
--- a/pymc/step_methods/hmc/base_hmc.py
+++ b/pymc/step_methods/hmc/base_hmc.py
@@ -60,7 +60,7 @@ class BaseHMC(GradientSharedStep):
t0=10,
adapt_step_size=True,
step_rand=None,
- ... | Fix AttributeError in HMC bad initial energy warning (#<I>) * Fix AttributeError in HMC bad initial energy warning * Make pre-commit happy | py |
diff --git a/tests/test_flex_fields_model_serializer.py b/tests/test_flex_fields_model_serializer.py
index <HASH>..<HASH> 100644
--- a/tests/test_flex_fields_model_serializer.py
+++ b/tests/test_flex_fields_model_serializer.py
@@ -32,8 +32,8 @@ class TestFlexFieldModelSerializer(TestCase):
def test_clean_fields(... | Fix usage of _get_fields_names_to_remove in tests | py |
diff --git a/thunder/series/series.py b/thunder/series/series.py
index <HASH>..<HASH> 100755
--- a/thunder/series/series.py
+++ b/thunder/series/series.py
@@ -955,7 +955,7 @@ class Series(Data):
if n == 0:
b = zeros((s.shape[0],))
else:
- y /= norm(y)
+ ... | No need to recompute the norm of y | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -1487,9 +1487,9 @@ def get_locked_packages(pattern=None, full=True):
_pat = r'\d\:({0}\-\S+)'.format(pattern)
else:
if full:
- _pat ... | Fix regular expression so it now matches packages with '.' or '-' at pkg name. | py |
diff --git a/reana_commons/snakemake.py b/reana_commons/snakemake.py
index <HASH>..<HASH> 100644
--- a/reana_commons/snakemake.py
+++ b/reana_commons/snakemake.py
@@ -73,6 +73,7 @@ def snakemake_load(workflow_file, **kwargs):
"environment": rule._container_img.replace("docker://", ""),
... | snakemake: include outputs in workflow representation closes reanahub/reana-client#<I> | py |
diff --git a/synapse/lib/types.py b/synapse/lib/types.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/types.py
+++ b/synapse/lib/types.py
@@ -262,7 +262,7 @@ class CompType(DataType):
vals = deMsgB64(valu)
frobs = [ t.frob(v) for v,(n,t) in self._zipvals(vals) ]
- return enMsgB64(norms)
... | frob: fix typo in frob method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ def copy_glpk_header():
class Build_ext_first(install):
def run(self):
self.run_command("build_ext")
- super(Build_ext_first, self).run()
+ install.run()
# Copy and process glpk.h... | Don't use super to make py 2 happy | 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
@@ -1168,7 +1168,8 @@ class TestDataset(unittest.TestCase):
np.testing.assert_array_almost_equal(df['x... | fix: with filtering, actually the count is 9, since nan < <I> is false | py |
diff --git a/beetle/builder.py b/beetle/builder.py
index <HASH>..<HASH> 100644
--- a/beetle/builder.py
+++ b/beetle/builder.py
@@ -154,16 +154,17 @@ def make_slug(page):
return None
def make_url(page):
- try:
- if 'url' in page:
- return page['url']
- elif 'url_pattern' in page:
... | Cleaned up url making a little. | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -135,7 +135,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/pyls/python_ls.py b/pyls/python_ls.py
index <HASH>..<HASH> 100644
--- a/pyls/python_ls.py
+++ b/pyls/python_ls.py
@@ -242,7 +242,7 @@ class PythonLanguageServer(MethodDispatcher):
def m_text_document__did_open(self, textDocument=None, **_kwargs):
self.workspace.put_document(textDocument['uri'... | Set is_saved to True in m_text_document__did_open (#<I>) (#<I>) | py |
diff --git a/moztelemetry/__init__.py b/moztelemetry/__init__.py
index <HASH>..<HASH> 100644
--- a/moztelemetry/__init__.py
+++ b/moztelemetry/__init__.py
@@ -1,3 +1,12 @@
# flake8: noqa
from .spark import *
from .histogram import *
+
+
+print(
+ "WARNING: python_moztelemetry will stop working *VERY SOON* "
+ ... | Add a deprecation notice when people try to import this library | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='plucky',
- version='0.3.4',
+ version='0.3.5',
description='Plucking (deep) keys/paths safely from python collections has never been easier.',
long... | bumped to <I> | py |
diff --git a/lenses/userlens.py b/lenses/userlens.py
index <HASH>..<HASH> 100644
--- a/lenses/userlens.py
+++ b/lenses/userlens.py
@@ -94,7 +94,7 @@ class UserLens(object):
both_ = _carry_lens(Lens.both)
decode_ = _carry_lens(Lens.decode)
- from_getter_setter_ = _carry_lens(Lens.from_getter_setter)
+ ... | renamed UserLens.from_getter_setter_ to remove "from_" makes more sense since the UserLens methods don't create lenses, they refine the focus. | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -69,7 +69,7 @@ STATE_RUNTIME_KEYWORDS = frozenset([
'fun',
'state',
'check_cmd',
- 'fail_hard',
+ 'failhard',
'onlyif',
'unless',
'order', | Correct fail_hard typo Closes #<I> | py |
diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/netutil_test.py
+++ b/tornado/test/netutil_test.py
@@ -26,6 +26,7 @@ else:
try:
import twisted
+ import twisted.names
except ImportError:
twisted = None
else: | twisted can be installed without twisted.names fixes #<I> | py |
diff --git a/openquake/hazardlib/source/point.py b/openquake/hazardlib/source/point.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/source/point.py
+++ b/openquake/hazardlib/source/point.py
@@ -112,7 +112,10 @@ def calc_average(pointsources):
acc['upper_seismogenic_depth'].append(src.upper_seismogenic... | Rounding avg lon, lat | py |
diff --git a/wpull/processor.py b/wpull/processor.py
index <HASH>..<HASH> 100644
--- a/wpull/processor.py
+++ b/wpull/processor.py
@@ -583,12 +583,12 @@ class WebProcessorSession(object):
if self._should_fetch_reason(url_info, url_record)[0]:
linked_url_infos.add(url_info)
- ... | WIP: Only call queued_url-hook for newly added URLs | py |
diff --git a/mysql2pgsql/lib/converter.py b/mysql2pgsql/lib/converter.py
index <HASH>..<HASH> 100644
--- a/mysql2pgsql/lib/converter.py
+++ b/mysql2pgsql/lib/converter.py
@@ -20,7 +20,9 @@ class Converter(object):
print_start_table('>>>>>>>>>> STARTING <<<<<<<<<<\n\n')
tables = [t for t in (t fo... | load tables in the order given by only_tables from config | py |
diff --git a/test_quickcache.py b/test_quickcache.py
index <HASH>..<HASH> 100644
--- a/test_quickcache.py
+++ b/test_quickcache.py
@@ -312,7 +312,6 @@ class QuickcacheTest(TestCase):
dt_naive = datetime.datetime(2018, 3, 30)
# Test naive datetimes
- self.assertNotEqual(dt, dt_naive)
... | Remove naive date comparison: breaks in python <I> | py |
diff --git a/timepiece/models.py b/timepiece/models.py
index <HASH>..<HASH> 100644
--- a/timepiece/models.py
+++ b/timepiece/models.py
@@ -876,3 +876,6 @@ class PersonSchedule(models.Model):
class UserProfile(models.Model):
user = models.OneToOneField(User, unique=True, related_name='profile')
default_activi... | added unicode --HG-- branch : feature/user_settings | py |
diff --git a/devpi_metawheel/main.py b/devpi_metawheel/main.py
index <HASH>..<HASH> 100644
--- a/devpi_metawheel/main.py
+++ b/devpi_metawheel/main.py
@@ -46,7 +46,7 @@ def devpiserver_on_upload(stage, project, version, link):
threadlog.info("Stored %s to: %s", metadata, json_path)
# We symlink the ... | Fix devpiserver_on_upload function We want the simlink to be in the old place Also fixd a typo | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -254,6 +254,7 @@ def test_score():
tpot_obj = TPOT()
tpot_obj._training_classes = training_classes
tpot_obj._training_features = training_features
+ tpot_obj.pbar = tqdm(total=1, disable=True)
known_scor... | Re-add gp_new_generation test and update score() test since merge | py |
diff --git a/xtuml/model.py b/xtuml/model.py
index <HASH>..<HASH> 100644
--- a/xtuml/model.py
+++ b/xtuml/model.py
@@ -329,7 +329,10 @@ def _is_null(inst, name):
value = getattr(inst, name)
if value:
return False
-
+
+ elif value is None:
+ return True
+
for attr_name, attr_ty ... | model: treat None-values as null | py |
diff --git a/nat/paramSample.py b/nat/paramSample.py
index <HASH>..<HASH> 100644
--- a/nat/paramSample.py
+++ b/nat/paramSample.py
@@ -5,8 +5,10 @@ Created on Tue Aug 15 17:14:30 2017
@author: oreilly
"""
-from quantities import Quantity
import numpy as np
+import os
+import json
+from quantities import Quantity
... | Adding save/load functions to ParamSample. | py |
diff --git a/.ci/localhost_ansible_tests.py b/.ci/localhost_ansible_tests.py
index <HASH>..<HASH> 100755
--- a/.ci/localhost_ansible_tests.py
+++ b/.ci/localhost_ansible_tests.py
@@ -21,8 +21,14 @@ with ci_lib.Fold('unit_tests'):
with ci_lib.Fold('job_setup'):
os.chmod(KEY_PATH, int('0600', 8))
+ # NOTE: ssh... | azure tests don't like sshpass <I> so pegging to <I> | py |
diff --git a/datawrap/tableloader.py b/datawrap/tableloader.py
index <HASH>..<HASH> 100644
--- a/datawrap/tableloader.py
+++ b/datawrap/tableloader.py
@@ -286,7 +286,7 @@ def get_data_csv(file_name, encoding='utf-8', file_contents=None, on_demand=Fals
csv_file = StringIO(file_contents)
else:
# Do... | Upgraded csv reader to convert all newlines correctly | py |
diff --git a/salt/states/glusterfs.py b/salt/states/glusterfs.py
index <HASH>..<HASH> 100644
--- a/salt/states/glusterfs.py
+++ b/salt/states/glusterfs.py
@@ -89,7 +89,7 @@ def peered(name):
newpeers = __salt__['glusterfs.list_peers']()
# if newpeers was null, we know something didn't work.
- if newpeers... | Fixed glusterfs.peered output (#<I>) Fixed 'NoneType' object is not iterable and removed existing peers from newpeers list Fixes #<I> | py |
diff --git a/mpop/satout/cfscene.py b/mpop/satout/cfscene.py
index <HASH>..<HASH> 100644
--- a/mpop/satout/cfscene.py
+++ b/mpop/satout/cfscene.py
@@ -101,9 +101,12 @@ class CFScene(object):
chn_min = chn.data.min()
scale = ((chn_max - chn_min) /
- ... | Bugfix: netcdf saving didn't work if only one value was available. | py |
diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/client/__init__.py
+++ b/elasticsearch/client/__init__.py
@@ -480,7 +480,6 @@ class Elasticsearch(object):
:arg index: Default index for items which don't provide one
:arg d... | Update __init__.py Removed duplicate line in docstring. | py |
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade.py
+++ b/openupgradelib/openupgrade.py
@@ -2661,7 +2661,7 @@ def cow_templates_mark_if_equal_to_upstream(cr, mark_colname=None):
cr.execute("""
SELECT id, arch_db, key, w... | [FIX] wrong operator @Tecnativa TT<I> | py |
diff --git a/keepalive/keepalive.py b/keepalive/keepalive.py
index <HASH>..<HASH> 100644
--- a/keepalive/keepalive.py
+++ b/keepalive/keepalive.py
@@ -421,7 +421,7 @@ class HTTPResponse(httplib.HTTPResponse):
self._rbuf = self._rbuf[amt:]
return s
- s = self._rbuf + self._raw_... | patched to void TypeError exceptions (Can't convert 'bytes' object to str implicitly) in Python 3.x | py |
diff --git a/detect_secrets/filters/common.py b/detect_secrets/filters/common.py
index <HASH>..<HASH> 100644
--- a/detect_secrets/filters/common.py
+++ b/detect_secrets/filters/common.py
@@ -17,7 +17,7 @@ def is_invalid_file(filename: str) -> bool:
def is_baseline_file(filename: str) -> bool:
- return filename ... | updating filters.common.is_baseline_file to support alternative root scanning | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ setup(
author = 'Brian May',
author_email = 'brian@vpac.org',
description = 'Collection of Django apps to manage a clusters',
- licence = "GPL3+",
+ license = "GPL3+",
packages = packag... | Rename licence to license. Change-Id: Icbb<I>aececa<I>f<I>b7a0bd<I>c6be<I>ff | py |
diff --git a/pyjade/convert.py b/pyjade/convert.py
index <HASH>..<HASH> 100644
--- a/pyjade/convert.py
+++ b/pyjade/convert.py
@@ -21,7 +21,7 @@ def convert_file():
help="Write output to FILE", metavar="FILE")
# use a default compiler here to sidestep making a particular
# compiler abso... | Choose first available compiler after sorting, not before | py |
diff --git a/cheroot/__main__.py b/cheroot/__main__.py
index <HASH>..<HASH> 100644
--- a/cheroot/__main__.py
+++ b/cheroot/__main__.py
@@ -14,10 +14,13 @@ Basic usage::
import argparse
from importlib import import_module
import os
+import re
import sys
from .wsgi import Server
+RE_ADDRESS = r'^(\S+)(?::)([0-9]... | Add support for UNIX sockets to cheroot.__main__ | py |
diff --git a/openxc/generator/structures.py b/openxc/generator/structures.py
index <HASH>..<HASH> 100644
--- a/openxc/generator/structures.py
+++ b/openxc/generator/structures.py
@@ -328,7 +328,7 @@ class Signal(object):
def merge_signal(self, data):
self.name = data.get('name', self.name)
self.e... | Use name of signal if no generic name is provided. | py |
diff --git a/anyconfig/cli.py b/anyconfig/cli.py
index <HASH>..<HASH> 100644
--- a/anyconfig/cli.py
+++ b/anyconfig/cli.py
@@ -3,6 +3,7 @@
# License: MIT
#
import anyconfig.api as A
+import anyconfig.compat as C
import codecs
import locale
@@ -11,10 +12,18 @@ import optparse
import sys
-__enc = locale.getde... | make CLI frontend works w/ python 3.x | py |
diff --git a/authorization_django/middleware.py b/authorization_django/middleware.py
index <HASH>..<HASH> 100644
--- a/authorization_django/middleware.py
+++ b/authorization_django/middleware.py
@@ -208,7 +208,7 @@ def authorization_middleware(get_response):
x_unique_id = request.META.get('HTTP_X_UNIQUE_ID... | Only check min_scope if min_scope is not empty | py |
diff --git a/localized_fields/fields/localized_value.py b/localized_fields/fields/localized_value.py
index <HASH>..<HASH> 100644
--- a/localized_fields/fields/localized_value.py
+++ b/localized_fields/fields/localized_value.py
@@ -15,9 +15,12 @@ class LocalizedValue:
different language.
"""
... | String constructor for LocalizedValue This allows you to do: LocalizedValue('thing'), which would result in a LocalizedValue looking like this: {'en': 'thing', 'ar': None} | py |
diff --git a/src/python/pants/python/python_chroot.py b/src/python/pants/python/python_chroot.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/python/python_chroot.py
+++ b/src/python/pants/python/python_chroot.py
@@ -99,7 +99,7 @@ class PythonChroot(object):
add_function(src, path)
self.debug(' Dum... | Really fix the thing I said I fixed. | py |
diff --git a/jax/test_util.py b/jax/test_util.py
index <HASH>..<HASH> 100644
--- a/jax/test_util.py
+++ b/jax/test_util.py
@@ -718,7 +718,8 @@ class JaxTestLoader(absltest.TestLoader):
names = super().getTestCaseNames(testCaseClass)
if FLAGS.test_targets:
pattern = re.compile(FLAGS.test_targets)
- ... | Use re.search and include test class name | 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
@@ -1095,7 +1095,7 @@ def os_data():
grains['osfinger'] = '{os}-{ver}'.format(
os=grains['osfullname'],
ver=grains['osrelease'])
- elif grains['osf... | BUG: Use grains.get for osfullname since the key may not exist on some platforms | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -7,7 +7,6 @@ from django.utils.encoding import force_str
from phonenumbers import phonenumberutil
from phonenumber_field import formfields, modelfields
-from phonenumber_field.modelfields import Pho... | Cleanup import in tests Prefer specifying what module the field is coming from. Reviewed-by: stefanfoulis | py |
diff --git a/cqlengine/tests/query/test_queryoperators.py b/cqlengine/tests/query/test_queryoperators.py
index <HASH>..<HASH> 100644
--- a/cqlengine/tests/query/test_queryoperators.py
+++ b/cqlengine/tests/query/test_queryoperators.py
@@ -19,7 +19,7 @@ class TestQuerySetOperation(BaseCassEngTestCase):
where = ... | fixed timeuuid. again | py |
diff --git a/pyathenajdbc/__init__.py b/pyathenajdbc/__init__.py
index <HASH>..<HASH> 100644
--- a/pyathenajdbc/__init__.py
+++ b/pyathenajdbc/__init__.py
@@ -7,7 +7,7 @@ from pyathenajdbc.error import * # noqa
__version__ = '1.1.1'
-__athena_driver_version__ = '1.0.1'
+__athena_driver_version__ = '1.1.0'
# ... | Update JDBC driver to <I> (fix #<I>) | py |
diff --git a/belpy/biopax/processor.py b/belpy/biopax/processor.py
index <HASH>..<HASH> 100644
--- a/belpy/biopax/processor.py
+++ b/belpy/biopax/processor.py
@@ -332,6 +332,12 @@ class BiopaxProcessor(object):
return names
+ def _get_uniprot_id(self, bp_entref):
+ xrefs = bp_entref.getXref().toA... | Querying UniProt ID in BioPAX processor | py |
diff --git a/dciclient/v1/tripleo_helper.py b/dciclient/v1/tripleo_helper.py
index <HASH>..<HASH> 100644
--- a/dciclient/v1/tripleo_helper.py
+++ b/dciclient/v1/tripleo_helper.py
@@ -60,8 +60,10 @@ def run_tests(context, undercloud_ip, key_filename, remoteci_id,
# Retrieve the certification_id data field. In ord... | certification_id: avoid failure if data is None Avoid failure if the data field is not defined on the server. Change-Id: Ibc6c<I>df<I>a0b<I>b<I>cd<I>c<I> | py |
diff --git a/pyforms/gui/Controls/ControlCodeEditor.py b/pyforms/gui/Controls/ControlCodeEditor.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlCodeEditor.py
+++ b/pyforms/gui/Controls/ControlCodeEditor.py
@@ -174,7 +174,7 @@ class ControlCodeEditor(ControlBase):
QsciScintilla.keyPressEvent(se... | Added public method to verify if there are changes on the editor Only save if there are changes | py |
diff --git a/src/hamster/db.py b/src/hamster/db.py
index <HASH>..<HASH> 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -123,7 +123,7 @@ class Storage(storage.Storage):
# if not there, copy from the defaults
try:
import defs
- data_dir = os.path.join(d... | geez louise, didn't catch a silly path bug. fix by @klugjohannes | py |
diff --git a/ipyrad/assemble/refmap.py b/ipyrad/assemble/refmap.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/refmap.py
+++ b/ipyrad/assemble/refmap.py
@@ -81,10 +81,11 @@ def index_reference_sequence(data, force=False):
## error handling
if proc1.returncode:
raise IPyradWarningExit(error1)
- ... | Adjusted fix to bgzip test. | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -264,6 +264,7 @@ SETTINGS = {
'http_proxy': None,
'http_proxy_user': None,
'http_proxy_password': None,
+ 'include_request_body': False,
}
_CURRENT_LAMBDA_CONTE... | Add a configuration option 'include_request_body' to toggle whether to include the raw body of Django requests (#<I>) | py |
diff --git a/gnupg/gnupg.py b/gnupg/gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg/gnupg.py
+++ b/gnupg/gnupg.py
@@ -977,7 +977,7 @@ class GPGUtilities(object):
return bool(result.key)
def is_encrypted(self, raw_data):
- self.is_encrypted_asym() or self.is_encrypted_sym()
+ return self.i... | Add missing param to utilities methods. | py |
diff --git a/src/urh/dev/EndlessSender.py b/src/urh/dev/EndlessSender.py
index <HASH>..<HASH> 100644
--- a/src/urh/dev/EndlessSender.py
+++ b/src/urh/dev/EndlessSender.py
@@ -15,7 +15,6 @@ class EndlessSender(object):
self.ringbuffer = RingBuffer(int(constants.CONTINUOUS_BUFFER_SIZE_MB * 10 ** 6) // 8)
... | ensure endless sender sets num_sending_repeats to zero this prevents the simulator from stopping too early | py |
diff --git a/spacy/tests/regression/test_issue910.py b/spacy/tests/regression/test_issue910.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/regression/test_issue910.py
+++ b/spacy/tests/regression/test_issue910.py
@@ -1,4 +1,6 @@
+# coding: utf8
from __future__ import unicode_literals
+
import json
import random
i... | Fix syntax error and formatting in test (see #<I>) | py |
diff --git a/cairocffi/__init__.py b/cairocffi/__init__.py
index <HASH>..<HASH> 100644
--- a/cairocffi/__init__.py
+++ b/cairocffi/__init__.py
@@ -36,7 +36,7 @@ def dlopen(ffi, *names):
ffi = FFI()
ffi.cdef(constants._CAIRO_HEADERS)
-cairo = dlopen(ffi, 'libcairo.so.2', 'libcairo-2.dll', 'cairo', 'libcairo-2')
+cai... | Add an explicit library name for OS X | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.