diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pgmpy/factors/CPD.py b/pgmpy/factors/CPD.py
index <HASH>..<HASH> 100644
--- a/pgmpy/factors/CPD.py
+++ b/pgmpy/factors/CPD.py
@@ -116,6 +116,7 @@ class TabularCPD(Factor):
def normalize(self):
"""
Normalizes the cpd table
+
Examples
--------
>>> from pgmpy.... | Corrected docstring of TabularCPD.normalize | py |
diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py
index <HASH>..<HASH> 100644
--- a/ryu/app/ofctl_rest.py
+++ b/ryu/app/ofctl_rest.py
@@ -230,7 +230,7 @@ class StatsController(ControllerBase):
if dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
ofctl_v1_0.delete_flow_entry(dp)
- ... | ofctl_rest: fix delete_flow_entry | py |
diff --git a/master/buildbot/db/dbconfig.py b/master/buildbot/db/dbconfig.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/db/dbconfig.py
+++ b/master/buildbot/db/dbconfig.py
@@ -18,6 +18,7 @@ from buildbot.db import enginestrategy
from buildbot.db import model
from buildbot.db import state
from sqlalchemy.exc i... | fix no such table test to work with mysql and pg | py |
diff --git a/dataviews/options.py b/dataviews/options.py
index <HASH>..<HASH> 100644
--- a/dataviews/options.py
+++ b/dataviews/options.py
@@ -340,9 +340,10 @@ class ChannelOpts(Opts):
self._kwargs = kwargs
def __repr__(self):
- return "%s(%s%s)" % (self.__class__.__name__,
+ return "%s(%s... | Fixed __repr__ of ChannelOpts | py |
diff --git a/pymatgen/io/vasp/tests/test_outputs.py b/pymatgen/io/vasp/tests/test_outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/tests/test_outputs.py
+++ b/pymatgen/io/vasp/tests/test_outputs.py
@@ -1659,6 +1659,12 @@ class XdatcarTest(PymatgenTest):
self.assertEqual(len(x.structures), 8)
... | Created new test for Xdatcar | py |
diff --git a/tests/kafka_cluster_manager/cluster_topology_test.py b/tests/kafka_cluster_manager/cluster_topology_test.py
index <HASH>..<HASH> 100644
--- a/tests/kafka_cluster_manager/cluster_topology_test.py
+++ b/tests/kafka_cluster_manager/cluster_topology_test.py
@@ -936,12 +936,6 @@ class TestClusterTopology(object... | Remove replica-imbalance flakiness | py |
diff --git a/airflow/executors/local_executor.py b/airflow/executors/local_executor.py
index <HASH>..<HASH> 100644
--- a/airflow/executors/local_executor.py
+++ b/airflow/executors/local_executor.py
@@ -46,7 +46,6 @@ locally, into just one `LocalExecutor` with multiple modes.
import multiprocessing
import subproces... | [AIRFLOW-<I>] Remove sleep in localexecutor (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def read(fname):
setup(
name='latex',
- version='0.6.5.dev1',
+ version='0.7.0.dev1',
description='Wrappers for calling LaTeX/building LaTeX documents.',
long_description=read('README.rst... | Bumped version, as escape changes are probably breaking changes for some people. | py |
diff --git a/tests/test_merge.py b/tests/test_merge.py
index <HASH>..<HASH> 100644
--- a/tests/test_merge.py
+++ b/tests/test_merge.py
@@ -7,7 +7,7 @@ from glob import glob
import pytest
from ocdsmerge import merge, merge_versioned, get_merge_rules
-from ocdsmerge.merge import get_latest_version, get_latest_release... | Add basic process_flattened test | py |
diff --git a/oplus/version.py b/oplus/version.py
index <HASH>..<HASH> 100644
--- a/oplus/version.py
+++ b/oplus/version.py
@@ -1 +1 @@
-version='8.1.1'
+version='8.1.2' | [skip ci] updated version as <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -86,7 +86,7 @@ setup(
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
- 'Developm... | upd python version support and set production status in setup.py | py |
diff --git a/raiden/network/transport/matrix/transport.py b/raiden/network/transport/matrix/transport.py
index <HASH>..<HASH> 100644
--- a/raiden/network/transport/matrix/transport.py
+++ b/raiden/network/transport/matrix/transport.py
@@ -525,7 +525,7 @@ class MatrixTransport(Runnable):
def _set_presence(self, s... | Reduce max presence update frequency Having nodes submit the presence up to once a second might degrade the service quality for other users too easily. | py |
diff --git a/tests/func/plots/test_show.py b/tests/func/plots/test_show.py
index <HASH>..<HASH> 100644
--- a/tests/func/plots/test_show.py
+++ b/tests/func/plots/test_show.py
@@ -716,7 +716,7 @@ def test_show_malformed_plots(tmp_dir, scm, dvc, caplog):
tmp_dir.gen("plot.json", '[{"m":1]')
with pytest.raises... | tests: plots: fix plots call (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ try:
read_md = lambda f: convert(f, 'rst')
except ImportError:
print('warning: pypandoc module not found, could not convert Markdown to RST')
- read_md = lambda f: open(f, 'r').read()
+ read... | open README file as binary, since contains non-ascii chars | py |
diff --git a/drongo/request.py b/drongo/request.py
index <HASH>..<HASH> 100644
--- a/drongo/request.py
+++ b/drongo/request.py
@@ -18,11 +18,25 @@ class Request(object):
inp = env.get('wsgi.input')
self._query = urllib.parse.parse_qs(env.setdefault('QUERY_STRING', ''))
+ if self.method == 'PO... | Adding support for processing POST query. | py |
diff --git a/salt/modules/boto_elb.py b/salt/modules/boto_elb.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_elb.py
+++ b/salt/modules/boto_elb.py
@@ -85,7 +85,7 @@ def __virtual__():
Only load if boto libraries exist.
'''
if not HAS_BOTO:
- return False
+ return (False, "The boto_e... | Add return messages on boto library load failure return false w/ reason on failure of boto library load | py |
diff --git a/varify/genes/models.py b/varify/genes/models.py
index <HASH>..<HASH> 100644
--- a/varify/genes/models.py
+++ b/varify/genes/models.py
@@ -127,6 +127,7 @@ class GeneSet(ObjectSet):
published = models.BooleanField(default=True)
set_object_rel = 'genes'
+ label_field = 'name'
def __unico... | Use 'name' as the label field for GeneSet model This fixes issues in the display where the PK was being used as the label field which is not nearly as informative or clear as using the name field. | py |
diff --git a/test/test_task.py b/test/test_task.py
index <HASH>..<HASH> 100644
--- a/test/test_task.py
+++ b/test/test_task.py
@@ -369,6 +369,7 @@ run: expand=True
wf = script.workflow()
#st = time.time()
env.config['sig_mode'] = 'force'
+ env.config['max_procs'] = 4
env.confi... | Try to fix a test affected by -j | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -30,7 +30,7 @@ def clean():
@task
def build():
- local("python setup.py sdist")
+ local("python setup.py sdist bdist_wheel")
@task | Updated build step in fabfile to include both source and wheel distributions | py |
diff --git a/pyspider/scheduler/scheduler.py b/pyspider/scheduler/scheduler.py
index <HASH>..<HASH> 100644
--- a/pyspider/scheduler/scheduler.py
+++ b/pyspider/scheduler/scheduler.py
@@ -1149,15 +1149,20 @@ class OneScheduler(Scheduler):
import random
import threading
+from pyspider.database.sqlite.sqlitebase impor... | only allow on thread for sqlite database backend avoid database is locked error | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -267,9 +267,9 @@ class PolygonPlotter():
def make_figure_sources(extractors, what):
"""
- $ oq plot sources?sm_id=0?limit=100
- $ oq plot so... | Improve a docstring with examples of plot sources? | py |
diff --git a/luigi/worker.py b/luigi/worker.py
index <HASH>..<HASH> 100644
--- a/luigi/worker.py
+++ b/luigi/worker.py
@@ -126,10 +126,10 @@ class TaskProcess(multiprocessing.Process):
raise
except BaseException as ex:
status = FAILED
- logger.exception("[pid %s][host %] Wo... | Fixed bug introduced in #<I> TaskProcess has no attribute host, not sure why nosetests ran | py |
diff --git a/salt/utils/pbm.py b/salt/utils/pbm.py
index <HASH>..<HASH> 100644
--- a/salt/utils/pbm.py
+++ b/salt/utils/pbm.py
@@ -145,3 +145,27 @@ def get_capability_definitions(profile_manager):
for cat in cap_categories:
cap_definitions.extend(cat.capabilityMetadata)
return cap_definitions
+
+
+de... | Added salt.utils.pbm.get_policies_by_id | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
setup(
name='zipline',
- version='0.5.2',
+ version='0.5.3',
description='A backtester for financial algorithms.',
author='Quantopian Inc.',
... | Relase <I> Main fix contained with in is the fix to the time step in risk metric benchmarks. | py |
diff --git a/source/rafcon/gui/views/menu_bar.py b/source/rafcon/gui/views/menu_bar.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/views/menu_bar.py
+++ b/source/rafcon/gui/views/menu_bar.py
@@ -111,7 +111,8 @@ class MenuBarView(View):
if menu_item_name in global_gui_config.get_config_value('SHORTC... | fix(set_menu_item_accelerator): Properly derive main shortcut The function set_menu_item_accelerator was often passed the wrong accel_code, as the calling method expected the config values of ["SHORTCUTS"][menu_item_name] always to be lists. With this commit, all menu accelerators are correctly installed and no more ... | py |
diff --git a/poco/proxy.py b/poco/proxy.py
index <HASH>..<HASH> 100644
--- a/poco/proxy.py
+++ b/poco/proxy.py
@@ -871,6 +871,8 @@ class UIObjectProxy(object):
if not self._evaluated or refresh:
self._nodes = self.poco.agent.hierarchy.select(self.query, multiple)
if len(self._nodes) =... | When the node is not found, reset the current node state, and force the node information to be re-queried for the next visit, which can be used to create a poco (xxx) and query it repeatedly. 找不到节点时,将当前节点状态重置,强制下一次访问时重新查询一次节点信息,可用于创建一个poco(xxx)并反复查询的情况 (cherry picked from commit b<I>ab<I>c<I>ee1be<I>ba9a2f<I>efecdccc8... | py |
diff --git a/invenio_communities/version.py b/invenio_communities/version.py
index <HASH>..<HASH> 100644
--- a/invenio_communities/version.py
+++ b/invenio_communities/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "2.5.0.dev1"
+__vers... | release: <I>.dev2 | py |
diff --git a/test/testplotting.py b/test/testplotting.py
index <HASH>..<HASH> 100644
--- a/test/testplotting.py
+++ b/test/testplotting.py
@@ -54,6 +54,7 @@ class image_comparison:
self.setup()
f()
plt.savefig(self.actualimage)
+ plt.close()
return self.tes... | close figure after comparison so mpl doesn't complain | py |
diff --git a/mordred/task_panels.py b/mordred/task_panels.py
index <HASH>..<HASH> 100644
--- a/mordred/task_panels.py
+++ b/mordred/task_panels.py
@@ -180,8 +180,8 @@ class TaskPanels(Task):
}
try:
- res = self.grimoire_con.requests.post(k6_init_url, headers=k6_ini... | [task_panels] Remove error in the creation of .kibana index for Kibiter6 | py |
diff --git a/f5/bigip/resource.py b/f5/bigip/resource.py
index <HASH>..<HASH> 100644
--- a/f5/bigip/resource.py
+++ b/f5/bigip/resource.py
@@ -797,7 +797,7 @@ class Resource(ResourceBase):
requests_params = self._handle_requests_params(kwargs)
self._check_create_parameters(**kwargs)
- # Reduc... | Kicking build to test Jenkins again. | py |
diff --git a/salt/utils/verify.py b/salt/utils/verify.py
index <HASH>..<HASH> 100644
--- a/salt/utils/verify.py
+++ b/salt/utils/verify.py
@@ -203,7 +203,7 @@ def verify_env(dirs, user, permissive=False, pki_dir=''):
err = ('Failed to prepare the Salt environment for user '
'{0}. The user is no... | Fixed 'defulats' typo in verify.py | py |
diff --git a/icekit_events/migrations/0013_auto_20160809_1215.py b/icekit_events/migrations/0013_auto_20160809_1215.py
index <HASH>..<HASH> 100644
--- a/icekit_events/migrations/0013_auto_20160809_1215.py
+++ b/icekit_events/migrations/0013_auto_20160809_1215.py
@@ -64,9 +64,10 @@ class Migration(migrations.Migration):... | Rename instead of removing MPTT parent field to enable legacy migrations Instead of removing the legacy 'parent' field previously provided by MPTT, rename it to our own field 'derived_from'. This avoid data loss and will make it possible to migrate projects using the legacy EventKit codebase. | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -25,7 +25,7 @@ options.paved.docs.rsync_location = 'eykd.net:webapps/net_eykd_worlds__static/pa
setup(
name = "Paved",
- version = "0.3",
+ version = "0.4",
url = "https://github.com/eykd/paved",... | Bumped version to <I> | py |
diff --git a/pyuavcan/transport/serial/_serial.py b/pyuavcan/transport/serial/_serial.py
index <HASH>..<HASH> 100644
--- a/pyuavcan/transport/serial/_serial.py
+++ b/pyuavcan/transport/serial/_serial.py
@@ -46,8 +46,6 @@ class SerialTransport(pyuavcan.transport.Transport):
Context: https://forum.uavcan.org/t/alter... | Remove note about the serial transport being unimplemented; it is now | py |
diff --git a/xdot/ui/window.py b/xdot/ui/window.py
index <HASH>..<HASH> 100644
--- a/xdot/ui/window.py
+++ b/xdot/ui/window.py
@@ -640,7 +640,7 @@ class DotWindow(Gtk.Window):
# Add Find text search
find_toolitem = uimanager.get_widget('/ToolBar/Find')
- self.textentry = Gtk.Entry(max_length=... | Remove unnecessary max_length from text search. With this commit it's now possible to search text of any length. | py |
diff --git a/ev3dev.py b/ev3dev.py
index <HASH>..<HASH> 100644
--- a/ev3dev.py
+++ b/ev3dev.py
@@ -70,7 +70,7 @@ class FileCache(object):
if path not in self._cache:
f = open(path, mode)
self._cache[path] = f
- elif reopen == True:
+ elif reopen:
self._cache... | PEP8: E<I> comparison to True should be 'if cond is True:' or 'if cond:' | py |
diff --git a/botox/aws.py b/botox/aws.py
index <HASH>..<HASH> 100644
--- a/botox/aws.py
+++ b/botox/aws.py
@@ -176,6 +176,22 @@ class AWS(object):
self._security_groups[group.name] = group.id
return self._security_groups[name]
+ def get_instance_subnet_name(self, instance):
+ """
+... | Format/lookup subnet IDs/names | py |
diff --git a/legit/scm.py b/legit/scm.py
index <HASH>..<HASH> 100644
--- a/legit/scm.py
+++ b/legit/scm.py
@@ -41,13 +41,14 @@ def unstash_index(sync=False):
for stash in stash_list.splitlines():
verb = 'syncing' if sync else 'switching'
+ branch = repo.head.ref.name
if (
... | more specific formatters. Fixes #7 | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -2841,7 +2841,7 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
if insns:
... | The party continues, WTF is this thing anyway | py |
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/__init__.py
+++ b/src/python/dxpy/__init__.py
@@ -415,7 +415,7 @@ def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True, timeou
# The only "break" above follows some code ... | Show extended stacktraces conditional on any truthy _DX_DEBUG | py |
diff --git a/lwr/lwr_client/transport/standard.py b/lwr/lwr_client/transport/standard.py
index <HASH>..<HASH> 100644
--- a/lwr/lwr_client/transport/standard.py
+++ b/lwr/lwr_client/transport/standard.py
@@ -1,6 +1,7 @@
"""
LWR HTTP Client layer based on Python Standard Library (urllib2)
"""
+from __future__ import w... | Fix for Python <I>. (Client needs to continue supporting python <I> until Galaxy drops support.) | py |
diff --git a/tests/core/contracts/test_contract_constructor_encoding.py b/tests/core/contracts/test_contract_constructor_encoding.py
index <HASH>..<HASH> 100644
--- a/tests/core/contracts/test_contract_constructor_encoding.py
+++ b/tests/core/contracts/test_contract_constructor_encoding.py
@@ -21,6 +21,19 @@ def test_c... | test: missing constructor function should not ignore constructor args | py |
diff --git a/pywb/warcserver/test/testutils.py b/pywb/warcserver/test/testutils.py
index <HASH>..<HASH> 100644
--- a/pywb/warcserver/test/testutils.py
+++ b/pywb/warcserver/test/testutils.py
@@ -65,7 +65,7 @@ class FakeRedisTests(object):
def setup_class(cls, redis_url='redis://localhost:6379/2'):
super(F... | tests: make redis test fix py<I> compatible also | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
config = {
"name": "bl",
- "version": "1.6.1",
+ "version": "1.7.0",
"description": "Black Earth core library",
"url": "https://github.com/BlackEarth/bl",
"author": "Sean Harrison", | <I> – new functionality in the File class | py |
diff --git a/heron/statemgrs/src/python/zkstatemanager.py b/heron/statemgrs/src/python/zkstatemanager.py
index <HASH>..<HASH> 100644
--- a/heron/statemgrs/src/python/zkstatemanager.py
+++ b/heron/statemgrs/src/python/zkstatemanager.py
@@ -93,6 +93,11 @@ class ZkStateManager(StateManager):
ret["result"] = data
... | [ISSUE-<I>] fix tracker crash when zk root topologies path does not … (#<I>) * [ISSUE-<I>] fix tracker crash when zk root topologies path does not exist. * Fix checksytle. | py |
diff --git a/cnxeasybake/oven.py b/cnxeasybake/oven.py
index <HASH>..<HASH> 100755
--- a/cnxeasybake/oven.py
+++ b/cnxeasybake/oven.py
@@ -127,14 +127,14 @@ class Oven():
rules, _ = tinycss2.parse_stylesheet_bytes(css, skip_whitespace=True)
for rule in rules:
- # HACK! - convert custom ps... | moved deferred hack Comments in the CSS would break on the existing deferred hack. | py |
diff --git a/django_rq/tests/tests.py b/django_rq/tests/tests.py
index <HASH>..<HASH> 100644
--- a/django_rq/tests/tests.py
+++ b/django_rq/tests/tests.py
@@ -328,6 +328,7 @@ class ViewTest(TestCase):
user.save()
self.client = Client()
self.client.login(username=user.username, password='pass'... | Flushall at tests setUP (clean redis db) | py |
diff --git a/svglib/svglib.py b/svglib/svglib.py
index <HASH>..<HASH> 100755
--- a/svglib/svglib.py
+++ b/svglib/svglib.py
@@ -1102,7 +1102,7 @@ class Svg2RlgShapeConverter(SvgShapeConverter):
logger.error("Unable to read the image %s. Skipping..." % img.path)
return None
grou... | Use y rather than x for y image translation | py |
diff --git a/zhmcclient/_client.py b/zhmcclient/_client.py
index <HASH>..<HASH> 100644
--- a/zhmcclient/_client.py
+++ b/zhmcclient/_client.py
@@ -80,7 +80,7 @@ class Client(object):
:exc:`~zhmcclient.ParseError`
:exc:`~zhmcclient.ConnectionError`
"""
- if self._api__version is Non... | Fixed two underscores in _api__version. | py |
diff --git a/pyemma/msm/models/msm.py b/pyemma/msm/models/msm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/models/msm.py
+++ b/pyemma/msm/models/msm.py
@@ -833,6 +833,12 @@ class MSM(_Model):
your interest with the following MSM functions: :func:`metastable_memberships`,
:func:`metastable_d... | [msm] added note about pcca set instability. Fixes #<I> | py |
diff --git a/OpenPNM/Algorithms/__Drainage__.py b/OpenPNM/Algorithms/__Drainage__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Algorithms/__Drainage__.py
+++ b/OpenPNM/Algorithms/__Drainage__.py
@@ -574,8 +574,10 @@ class Drainage(GenericAlgorithm):
temp_Pc = phys.models[key]['Pc'] # Store old Pc
... | Fixed error in network mapping that was always using pores, even when element was throat | py |
diff --git a/ipyrad/analysis/popgen.py b/ipyrad/analysis/popgen.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/popgen.py
+++ b/ipyrad/analysis/popgen.py
@@ -176,6 +176,9 @@ class Popgen(object):
if not self.quiet:
# Warn here because this is a valid way to remove samples
... | analysis.popgen: If no imap then all samples are considered from the same population. | py |
diff --git a/sciluigi/task.py b/sciluigi/task.py
index <HASH>..<HASH> 100644
--- a/sciluigi/task.py
+++ b/sciluigi/task.py
@@ -135,11 +135,16 @@ class WorkflowTask(audit.AuditTrailHelpers, luigi.Task):
def run(self):
# Write Audit log file
- with self.output()['audit'].open('w') as auditfile:
- ... | Raise Exception for an already existing audit log file | py |
diff --git a/pygubudesigner/uitreeeditor.py b/pygubudesigner/uitreeeditor.py
index <HASH>..<HASH> 100644
--- a/pygubudesigner/uitreeeditor.py
+++ b/pygubudesigner/uitreeeditor.py
@@ -713,7 +713,7 @@ class WidgetsTreeEditor(object):
if self.filter_prev_value:
self.filtervar.set(self.filter_prev_val... | Check if item was not deleted. | py |
diff --git a/angr/analyses/forward_analysis.py b/angr/analyses/forward_analysis.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/forward_analysis.py
+++ b/angr/analyses/forward_analysis.py
@@ -199,6 +199,49 @@ class FunctionGraphVisitor(GraphVisitor):
return sorted_nodes
+class CallGraphVisitor(GraphVisi... | Add a visitor for call graphs. | py |
diff --git a/pieshell/pipeline.py b/pieshell/pipeline.py
index <HASH>..<HASH> 100644
--- a/pieshell/pipeline.py
+++ b/pieshell/pipeline.py
@@ -115,7 +115,9 @@ class Pipeline(DescribableObject):
with copy.copy_session() as sess:
self = copy.deepcopy(self)
processes = self._run(redirect... | Support for retrieving the last executed pipeline | py |
diff --git a/zinnia/tests/urls.py b/zinnia/tests/urls.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/urls.py
+++ b/zinnia/tests/urls.py
@@ -8,6 +8,9 @@ from zinnia.urls import urlpatterns
admin.autodiscover()
+handler500 = 'django.views.defaults.server_error'
+handler404 = 'django.views.defaults.page_not_found'... | fixing handler<I> and handler<I> in tests | py |
diff --git a/bot/bot.py b/bot/bot.py
index <HASH>..<HASH> 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -28,9 +28,7 @@ class Bot:
self.api = Api(telegram_api, self.state)
self.cache.bot_info = self.api.getMe()
self.logger = AdminLogger(self.api, self.config.admin_chat_id, debug, self.config.sen... | Extract SchedulerApi creation logic to a private function in Bot | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,5 +16,8 @@ setup(
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search'
],
- url = 'http://github.com/toastdriven/pysolr/'
+ url = 'http://github.com/toastdriven/... | Added ``extra_requires`` to cover the ``BeautifulSoup`` dependency. Thanks to kylemacfarlane for the report! | py |
diff --git a/journal/global_store_manager.py b/journal/global_store_manager.py
index <HASH>..<HASH> 100644
--- a/journal/global_store_manager.py
+++ b/journal/global_store_manager.py
@@ -445,12 +445,12 @@ class KeyValueStore(object):
Returns:
object: The value associated with the key.
"""... | Replace recursion in KeyValueStore.get with iteration | py |
diff --git a/test/test_layers.py b/test/test_layers.py
index <HASH>..<HASH> 100644
--- a/test/test_layers.py
+++ b/test/test_layers.py
@@ -41,7 +41,5 @@ def test(lcar=0.05):
if __name__ == '__main__':
- from os.path import basename
import meshio
- meshio.write(basename(__file__).split('.')[0].split('_')... | simplified write-target as per review in nschloe/pygmsh#<I> | py |
diff --git a/Lib/fontParts/base/contour.py b/Lib/fontParts/base/contour.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/contour.py
+++ b/Lib/fontParts/base/contour.py
@@ -492,9 +492,7 @@ class BaseContour(
del segments[-1]
if lastWasOffCurve and not firstIsMove:
segment = segm... | Contour.segments: accept off-curves as starting and ending point | py |
diff --git a/lintly/parsers.py b/lintly/parsers.py
index <HASH>..<HASH> 100644
--- a/lintly/parsers.py
+++ b/lintly/parsers.py
@@ -209,24 +209,29 @@ class CfnLintParser(BaseLintParser):
"""
def parse_violations(self, output):
- violations = {}
+ violations = collections.defaultdict(list)
... | Fix line lengths, add comments, and clarify variable name | py |
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index <HASH>..<HASH> 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -47,6 +47,7 @@ class SFTPFile (BufferedFile):
self._prefetch_done = False
self._prefetch_so_far = 0
self._prefetch_data = {}
+ self._prefetc... | [project @ <EMAIL><I>-9dd7d3b<I>bbf] allow multiple prefetches to happen in rapid succession | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ setup(
package_data={
'maas.client.bones.testing': ['*.json'],
},
- install_requires={
+ install_requires=[
"aiohttp >= 2.0.0",
"argcomplete >= 1.0",
"bson >= ... | Use lists for install/test requires. (#<I>) | py |
diff --git a/cli_helpers/compat.py b/cli_helpers/compat.py
index <HASH>..<HASH> 100644
--- a/cli_helpers/compat.py
+++ b/cli_helpers/compat.py
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
-"""Python 2/3 compatibility support."""
+"""OS and Python compatibility support."""
import sys
PY2 = sys.version_info[0] == 2
+W... | Add windows constant and UserDict to compat module. | py |
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -37,6 +37,8 @@ class TypeMarshaller(object):
self.matlab_attributes = {'H5PATH'}
self.types = []
self.cpython_type_strings = []... | Fleshed out the rest of Marshallers.TypeMarshaller to support reading. | py |
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py
index <HASH>..<HASH> 100644
--- a/visidata/cmdlog.py
+++ b/visidata/cmdlog.py
@@ -336,5 +336,5 @@ def loadMacros():
return macrosheet
-vd().sessionlog = loadInternalSheet(CommandLog, Path(os.path.join(options.visidata_dir, 'history', date().to_string('%Y%m%d... | [history] autosave to per-day .vd (instead of per-session) | py |
diff --git a/tests/unit/py2/nupic/research/spatial_pooler_unit_test.py b/tests/unit/py2/nupic/research/spatial_pooler_unit_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/py2/nupic/research/spatial_pooler_unit_test.py
+++ b/tests/unit/py2/nupic/research/spatial_pooler_unit_test.py
@@ -141,7 +141,7 @@ class Spatial... | Update comment on test for exact SP output, per pull request feedback. | py |
diff --git a/pgallery/models.py b/pgallery/models.py
index <HASH>..<HASH> 100644
--- a/pgallery/models.py
+++ b/pgallery/models.py
@@ -105,10 +105,13 @@ class Photo(TimeStampedModel):
Updates EXIF data before saving.
"""
# you really should be doing this in a background task
- img = Im... | Wrapped exif extraction in a try-except block. | py |
diff --git a/comparable/base.py b/comparable/base.py
index <HASH>..<HASH> 100644
--- a/comparable/base.py
+++ b/comparable/base.py
@@ -107,13 +107,6 @@ class _Indent(object):
level = 0
- def __init__(self):
- raise NotImplementedError
-
- @classmethod
- def __str__(cls):
- return '| ' * ... | _Indent is now not instantiated | py |
diff --git a/cslbot/commands/seen.py b/cslbot/commands/seen.py
index <HASH>..<HASH> 100644
--- a/cslbot/commands/seen.py
+++ b/cslbot/commands/seen.py
@@ -53,6 +53,12 @@ def cmd(send, msg, args):
output += 'quiting and saying "%s"' % last.msg
elif last.type == 'kick':
output += 'kicking %s for "%... | Add more event types to seen, fixes #<I> | py |
diff --git a/slither/detectors/attributes/incorrect_solc.py b/slither/detectors/attributes/incorrect_solc.py
index <HASH>..<HASH> 100644
--- a/slither/detectors/attributes/incorrect_solc.py
+++ b/slither/detectors/attributes/incorrect_solc.py
@@ -43,7 +43,7 @@ Use Solidity 0.4.25 or 0.5.3. Consider using the latest ver... | fix(detectors/attributes/incorrect_solc): report <I> as old version This fixes the report that <I> is an old version. | py |
diff --git a/pymc/distributions/discrete.py b/pymc/distributions/discrete.py
index <HASH>..<HASH> 100644
--- a/pymc/distributions/discrete.py
+++ b/pymc/distributions/discrete.py
@@ -146,7 +146,7 @@ class Binomial(Discrete):
binomln(n, value) + logpow(p, value) + logpow(1 - p, n - value),
)
- ... | Allow n=0 in Binomial logp and logcdf | py |
diff --git a/discord/components.py b/discord/components.py
index <HASH>..<HASH> 100644
--- a/discord/components.py
+++ b/discord/components.py
@@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations
-from typing import Any, ClassVar, Dict, List, Optional, TYPE_CHECKING, Tuple, Type, TypeVar
... | Allow constructing SelectOption.emoji from a string as well | py |
diff --git a/gitlint/__init__.py b/gitlint/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlint/__init__.py
+++ b/gitlint/__init__.py
@@ -1 +1 @@
-__version__ = "0.1.0dev"
+__version__ = "0.1.0" | Bumped version to <I> Also releasing this version to pypi. | py |
diff --git a/PyFunceble/checker/availability/extra_rules.py b/PyFunceble/checker/availability/extra_rules.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/checker/availability/extra_rules.py
+++ b/PyFunceble/checker/availability/extra_rules.py
@@ -54,7 +54,7 @@ import functools
import socket
from typing import Callabl... | Fix issue with the import of box. This patch fixes #<I>. Contributors: * @spirillen * @ZeroDot1 | py |
diff --git a/confidence/io.py b/confidence/io.py
index <HASH>..<HASH> 100644
--- a/confidence/io.py
+++ b/confidence/io.py
@@ -229,7 +229,7 @@ def load(*fps: typing.IO, missing: typing.Any = Missing.silent) -> Configuration
def loadf(*fnames: str,
- default: typing.Union[typing.Mapping[str, typing.Any]] =... | Mark default argument to loadf as Any | py |
diff --git a/tests/test_setup.py b/tests/test_setup.py
index <HASH>..<HASH> 100644
--- a/tests/test_setup.py
+++ b/tests/test_setup.py
@@ -8,11 +8,12 @@ from django.core.management import call_command
@pytest.fixture
def db_conn():
- db_options = settings.DATABASES['default'].get('OPTIONS', {})
+ db_config = ... | Bug <I> - Clean up the db_conn fixture Since we're about to copy part of it to a new test. | py |
diff --git a/datacats/environment.py b/datacats/environment.py
index <HASH>..<HASH> 100644
--- a/datacats/environment.py
+++ b/datacats/environment.py
@@ -384,7 +384,8 @@ class Environment(object):
# venv isn't child-specific, the rest are.
makedirs(self.childdir + '/search')
if not is_boot2d... | Don't make a venv directory on Linux the second time around | py |
diff --git a/host/scan_fei4_self_trigger.py b/host/scan_fei4_self_trigger.py
index <HASH>..<HASH> 100644
--- a/host/scan_fei4_self_trigger.py
+++ b/host/scan_fei4_self_trigger.py
@@ -108,9 +108,7 @@ class FEI4SelfTriggerScan(ScanBase):
commands.extend(self.register.get_commands("wrfrontend", same_mask_for_all_... | BUG: now the IMON/HITBUS mask is set to make the scan work without manually changing configuration files | py |
diff --git a/sirmordred/task_panels.py b/sirmordred/task_panels.py
index <HASH>..<HASH> 100644
--- a/sirmordred/task_panels.py
+++ b/sirmordred/task_panels.py
@@ -77,7 +77,7 @@ COMMUNITY_MENU = {
]
}
-GITLAB_ISSUES = "gitlab_issues"
+GITLAB_ISSUES = "gitlab-issues"
GITLAB_ISSUES_PANEL_OVERALL = "panels/json/gi... | [task_panels] Change gitlab data source names This code changes the names for the data sources gitlab issues and merges. The previous names were not aligned to the convention used by kidash to identify a data source. | py |
diff --git a/haffmpeg/sensor.py b/haffmpeg/sensor.py
index <HASH>..<HASH> 100644
--- a/haffmpeg/sensor.py
+++ b/haffmpeg/sensor.py
@@ -108,7 +108,7 @@ class SensorMotion(HAFFmpegWorker):
STATE_REPEAT = 1
STATE_MOTION = 2
- MATCH = r"\d,.*(\d),.*\d,.*\d,.*\d,.*\w"
+ MATCH = r"\d,.*\d,.*\d,.*\d,.*\d,.*\... | change handling for older ffmpeg version | py |
diff --git a/daemonize.py b/daemonize.py
index <HASH>..<HASH> 100644
--- a/daemonize.py
+++ b/daemonize.py
@@ -243,6 +243,6 @@ class Daemonize(object):
try:
self.action(*privileged_action_result)
- except Exception as e:
- for line in traceback.format_exc(e).split("\n"):
+ ... | Fixed exception handling traceback.format_exc() doesn't take an exception object as argument. | py |
diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/indexes/datetimes/test_ops.py
+++ b/pandas/tests/indexes/datetimes/test_ops.py
@@ -41,9 +41,9 @@ class TestDatetimeIndexOps(Ops):
# sanity check that the behavio... | Fixing pandas/tests/indexes/datetimes/test_ops.py to utilize python3 format strings. (#<I>) | py |
diff --git a/src/cr/cube/dimension.py b/src/cr/cube/dimension.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/dimension.py
+++ b/src/cr/cube/dimension.py
@@ -1043,7 +1043,7 @@ class _NullSmoother:
class _SingleSideMovingAvgSmoother(object):
- """Apply smoothing using one side moving average algorithm"""
+ "... | rfctr: doctsring | py |
diff --git a/windows.py b/windows.py
index <HASH>..<HASH> 100644
--- a/windows.py
+++ b/windows.py
@@ -57,4 +57,5 @@ class PyMouse(PyMouseMeta):
def screen_size(self):
width = GetSystemMetrics(0)
- height = GetSystemMetrics(1)
\ No newline at end of file
+ height = GetSystemMetrics(1)
+ return width, height
\... | Needs an extra POINT structure? | py |
diff --git a/validator/txnserver/validator.py b/validator/txnserver/validator.py
index <HASH>..<HASH> 100644
--- a/validator/txnserver/validator.py
+++ b/validator/txnserver/validator.py
@@ -105,7 +105,6 @@ class Validator(object):
# ---------- Initialize the configuration ----------
self.initialize... | configure ledger in the ledger, not the validator Ledger objects should be the domain of the ledger, not the validator. This change is aiming for functional equivalence, thus, in the three previous commits: -- the use of static class variables is not being questioned -- static class variables are being set b... | py |
diff --git a/simanneal/anneal.py b/simanneal/anneal.py
index <HASH>..<HASH> 100644
--- a/simanneal/anneal.py
+++ b/simanneal/anneal.py
@@ -44,7 +44,7 @@ class Annealer(object):
best_state = None
def __init__(self, initial_state=None, load_state=None):
- if len(initial_state) > 0:
+ if initial_... | don't assume initial state is a list | py |
diff --git a/compliance_checker/acdd.py b/compliance_checker/acdd.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/acdd.py
+++ b/compliance_checker/acdd.py
@@ -384,7 +384,8 @@ class ACDDBaseCheck(BaseCheck):
vert_max = ds.geospatial_vertical_max
# identify vertical vars as per CF 4.3
- ... | BUGFIX #<I>, coordinate variables shouldn't have _FillValue. According to CF-<I>, coordinate variables shouldn't have a _FillValue attribute. But since acdd.check_vertical_extents() uses _FillValue, it was not possible to check for ACDD while complying with CF-<I>. | py |
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py
index <HASH>..<HASH> 100644
--- a/ryu/topology/switches.py
+++ b/ryu/topology/switches.py
@@ -206,10 +206,14 @@ class HostState(dict):
if not host:
return
- if ip_v4 != None and ip_v4 not in host.ipv4:
+ if ip_v4 != N... | topology: Make sure the last IP in the list is the newest IP. In the wireless network, when host attaches AP, it will send many ARP requests which Src IP were used before. This causes the last IP in the list may not be the newest one and we also cannot know which IP in the list is the newest. So this patch can solve... | py |
diff --git a/skflow/io/dask_io.py b/skflow/io/dask_io.py
index <HASH>..<HASH> 100644
--- a/skflow/io/dask_io.py
+++ b/skflow/io/dask_io.py
@@ -38,6 +38,14 @@ def _get_divisions(df):
divisions.insert(0, 0)
return divisions
+def _construct_dask_df_with_divisions(df):
+ divisions = _get_divisions(df)
+ n... | + _construct_dask_df_with_divisions for dask_io | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ history = open('CHANGES.rst').read()
requirements = [
'Flask>=0.10.1',
'six>=1.7.2',
- 'invenio-base>=0.2.1',
+ 'invenio-base>=0.3.0',
'invenio-celery>=0.1.0',
'invenio-documents>=0.1.... | installation: invenio-base>=<I> * Upgrades invenio-base minimum version to <I>. | py |
diff --git a/restore_all.py b/restore_all.py
index <HASH>..<HASH> 100755
--- a/restore_all.py
+++ b/restore_all.py
@@ -29,4 +29,4 @@ if __name__ == "__main__":
else:
for file in os.listdir(args.path):
if file.endswith('.txt'):
- write(json.loads(tagger.tagLemmatise(open(os.path... | Bug in batch diacritic restoration resolved | py |
diff --git a/pystache/view.py b/pystache/view.py
index <HASH>..<HASH> 100644
--- a/pystache/view.py
+++ b/pystache/view.py
@@ -36,7 +36,9 @@ class View(object):
return self.__class__.__name__
def get(self, attr, default):
- if hasattr(self, attr):
+ if attr in self.context:
+ re... | check the context before hitting a view method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ else:
version = version, # update this in netpyne/__init__.py; makes it accessible to python scripts too...
description = 'A Python package to develop, simulate and analyse biological neuronal... | Updated setup.py so PyPI website renders the README as markdown | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='blended',
- version='1.2',
+ version='1.3',
description='Static Site Generation Using HTML and Python',
url='https://github.com/johnroper100/Ble... | bumped the version to <I> | py |
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -284,7 +284,7 @@ class SimState(object): # pylint: disable=R0904
e = self._do_load(self.registers, offset, length)
if endness is None: endness = self.arch.register_en... | probably not a problem, but fix is vs == | py |
diff --git a/elasticsearch_dsl/aggs.py b/elasticsearch_dsl/aggs.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/aggs.py
+++ b/elasticsearch_dsl/aggs.py
@@ -228,7 +228,10 @@ class TopHits(Agg):
class Avg(Agg):
name = 'avg'
-
+
+class WeightedAvg(Agg):
+ name = 'weighted_avg'
+
class Cardinalit... | Update aggs.py add class support weighted average aggregation. <URL> | py |
diff --git a/lettuce/plugins/colored_shell_output.py b/lettuce/plugins/colored_shell_output.py
index <HASH>..<HASH> 100644
--- a/lettuce/plugins/colored_shell_output.py
+++ b/lettuce/plugins/colored_shell_output.py
@@ -106,7 +106,7 @@ def print_(string, color=term.white, comment_color=term.color(8)):
print str... | Handle lines that contain a # in the outputter (i.e. inside strings) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.