diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyAudioAnalysis/audioSegmentation.py b/pyAudioAnalysis/audioSegmentation.py
index <HASH>..<HASH> 100644
--- a/pyAudioAnalysis/audioSegmentation.py
+++ b/pyAudioAnalysis/audioSegmentation.py
@@ -15,6 +15,7 @@ from pyAudioAnalysis import audioBasicIO
from pyAudioAnalysis import audioTrainTest as at
from py... | replaced feature normalize_features from self_similarity | py |
diff --git a/tests/test_sync.py b/tests/test_sync.py
index <HASH>..<HASH> 100644
--- a/tests/test_sync.py
+++ b/tests/test_sync.py
@@ -377,6 +377,22 @@ class SyncTest(unittest.TestCase):
self.do_integration_test(['copy', '--force', 'foo', '.'],
{'foo': 'bar'})
+ def test_... | test nested copy Summary: The `copy` command should respect nested targets, like `peru copy a.b`. Reviewers: sean Differential Revision: <URL> | py |
diff --git a/tornado/platform/select.py b/tornado/platform/select.py
index <HASH>..<HASH> 100644
--- a/tornado/platform/select.py
+++ b/tornado/platform/select.py
@@ -47,7 +47,7 @@ class _Select(object):
# Closed connections are reported as errors by epoll and kqueue,
# but as zero-byte reads ... | Also fix flow control for the select IOLoop. | py |
diff --git a/pyinaturalist/session.py b/pyinaturalist/session.py
index <HASH>..<HASH> 100644
--- a/pyinaturalist/session.py
+++ b/pyinaturalist/session.py
@@ -240,7 +240,7 @@ def request(
session_kwargs['expire_after'] = expire_after
session_kwargs['refresh'] = refresh
response = session.send(req... | Bump response logging down to debug level | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
-version = '0.1.2.dev0'
+version = '0.1.2'
setup(
name="tasa", | Preparing release <I> | py |
diff --git a/py3nvml/__init__.py b/py3nvml/__init__.py
index <HASH>..<HASH> 100644
--- a/py3nvml/__init__.py
+++ b/py3nvml/__init__.py
@@ -3,4 +3,4 @@ from py3nvml import nvidia_smi
from py3nvml.utils import grab_gpus
__all__ = ['py3nvml', 'nvidia_smi', 'grab_gpus']
-__version__ = "0.1.0rc5"
+__version__ = "0.1.0rc... | Updated version to <I>rc6 | py |
diff --git a/psiturk/experiment.py b/psiturk/experiment.py
index <HASH>..<HASH> 100644
--- a/psiturk/experiment.py
+++ b/psiturk/experiment.py
@@ -635,6 +635,7 @@ def ppid():
# Insert "mode" into pages so it's carried from page to page done server-side
# to avoid breaking backwards compatibility with old templates.
... | fix utf-8 compatibility | py |
diff --git a/test/test_subsystem.py b/test/test_subsystem.py
index <HASH>..<HASH> 100644
--- a/test/test_subsystem.py
+++ b/test/test_subsystem.py
@@ -7,6 +7,7 @@ import example_networks
from pyphi.subsystem import Subsystem
from pyphi.models import Cut
+from pyphi import config
import numpy as np
@@ -18,9 +19... | Ensure state validation flag is set in subsystem validation test | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+# coding: utf8
from __future__ import unicode_literals
import hashlib | Unicode fixes in conftest.py. | py |
diff --git a/pyof/__init__.py b/pyof/__init__.py
index <HASH>..<HASH> 100644
--- a/pyof/__init__.py
+++ b/pyof/__init__.py
@@ -3,4 +3,4 @@
This package is a library that parses and creates OpenFlow Messages.
It contains all implemented versions of OpenFlow protocol
"""
-__version__ = '1.1.0a2'
+__version__ = '1.1.0a... | Increase lib version to make all projects compatible Please, publish this version on pypi | py |
diff --git a/ptpython/completer.py b/ptpython/completer.py
index <HASH>..<HASH> 100644
--- a/ptpython/completer.py
+++ b/ptpython/completer.py
@@ -553,9 +553,8 @@ class DictionaryCompleter(Completer):
def get_suffix(name: str) -> str:
try:
obj = getattr(result, name, N... | Show parentheses after the completions for methods when using the `DictionaryCompleter`. | py |
diff --git a/salt/modules/mac_system.py b/salt/modules/mac_system.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mac_system.py
+++ b/salt/modules/mac_system.py
@@ -50,7 +50,7 @@ def _atrun_enabled():
Check to see if atrun is enabled on the system
'''
name = 'com.apple.atrun'
- services = salt.utils... | Use __utils__ in mac_system to ensure context is packed in | py |
diff --git a/zombie/tests/test_browser.py b/zombie/tests/test_browser.py
index <HASH>..<HASH> 100644
--- a/zombie/tests/test_browser.py
+++ b/zombie/tests/test_browser.py
@@ -1,4 +1,4 @@
-from unittest import TestCase
+from unittest import TestCase, skip
import os
import fudge
@@ -185,6 +185,7 @@ class TestBrowser(... | Fixed tests Skipped back and dump functionality as it breaks with the current zombie version. | py |
diff --git a/test/test_dateranges.py b/test/test_dateranges.py
index <HASH>..<HASH> 100644
--- a/test/test_dateranges.py
+++ b/test/test_dateranges.py
@@ -122,7 +122,7 @@ class TestDataranges(AlignakTest):
now = time.localtime()
start = time.mktime((today.year, today.month, mondays[1], 0, 0, 0, 0, 0, ... | Fix: Tests - Condition for new value is on end | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
setup(
name='placebo',
- version='0.3.0',
+ version='0.4.0',
description='Make boto3 calls that look real but have no effect',
author='Mitch Garn... | Bumping version and fixing supported python versions. | py |
diff --git a/proso_models/models.py b/proso_models/models.py
index <HASH>..<HASH> 100644
--- a/proso_models/models.py
+++ b/proso_models/models.py
@@ -840,7 +840,7 @@ class Answer(models.Model):
result = {
'id': self.pk,
'object_type': 'answer',
- 'question_item_id': self.i... | fix a JSON repr of Answer issues: #<I> | py |
diff --git a/etrago/cluster/networkclustering.py b/etrago/cluster/networkclustering.py
index <HASH>..<HASH> 100755
--- a/etrago/cluster/networkclustering.py
+++ b/etrago/cluster/networkclustering.py
@@ -694,6 +694,7 @@ def busmap_by_shortest_path(etrago, scn_name, fromlvl, tolvl, cpu_cores=4):
tofill["path_length"... | Deleted duplicates after mp-calculation of paths in ehv-clustering | py |
diff --git a/m2bk/drivers/s3.py b/m2bk/drivers/s3.py
index <HASH>..<HASH> 100644
--- a/m2bk/drivers/s3.py
+++ b/m2bk/drivers/s3.py
@@ -91,12 +91,12 @@ def backup_file(*, file, host):
# If the destination bucket does not exist, create one
try:
if not _dry_run:
- bucket = conn.get_bucket(_bu... | whoopsies on s3 driver corrected | py |
diff --git a/explauto/evaluation/evaluation.py b/explauto/evaluation/evaluation.py
index <HASH>..<HASH> 100644
--- a/explauto/evaluation/evaluation.py
+++ b/explauto/evaluation/evaluation.py
@@ -19,8 +19,8 @@ class Evaluation(object):
errors = []
for s_g in self.testcases:
m =... | Fix bug in evaluation adapted to the novel environment interface | py |
diff --git a/SoftLayer/CLI/formatting.py b/SoftLayer/CLI/formatting.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/formatting.py
+++ b/SoftLayer/CLI/formatting.py
@@ -13,6 +13,7 @@ import os
import click
import prettytable
+from SoftLayer.CLI import exceptions
from SoftLayer import utils
FALSE_VALUES = ['0'... | added nice error handler for badly sorted tables | py |
diff --git a/hearthstone/hslog/parser.py b/hearthstone/hslog/parser.py
index <HASH>..<HASH> 100644
--- a/hearthstone/hslog/parser.py
+++ b/hearthstone/hslog/parser.py
@@ -230,7 +230,7 @@ class PowerHandler:
packet = packets.TagChange(ts, entity, tag, value)
self.current_node.packets.append(packet)
- if not ent... | hslog: Return the player's name as a string if we didn't find it | py |
diff --git a/vyked/decorators/tcp.py b/vyked/decorators/tcp.py
index <HASH>..<HASH> 100644
--- a/vyked/decorators/tcp.py
+++ b/vyked/decorators/tcp.py
@@ -3,11 +3,8 @@ from functools import wraps, partial
import time
import logging
-
-
_logger = logging.getLogger()
-
from again.utils import unique_hex
@@ -1... | Fix log to show timw in milliseconds not microseconds | py |
diff --git a/meshio/medit_io.py b/meshio/medit_io.py
index <HASH>..<HASH> 100644
--- a/meshio/medit_io.py
+++ b/meshio/medit_io.py
@@ -3,10 +3,15 @@
'''
I/O for Medit's format, cf.
<https://people.sc.fsu.edu/~jburkardt/data/medit/medit.html>.
+Check out
+<https://hal.inria.fr/inria-00069921/fr/>
+<https://www.ljll.m... | skip vertex cells in medit | py |
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based_risk.py
+++ b/openquake/calculators/event_based_risk.py
@@ -244,9 +244,11 @@ class EbrPostCalculator(base.RiskCalculator):
# happening when ... | Perhaps solving the heisenbug Former-commit-id: <I>bf<I>a7d<I>e<I>b9af<I>d<I>ff<I>d<I> | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -300,7 +300,11 @@ class Config(_Config):
combined_config["import_headings"] = import_headings
if "src_paths" not in combined_config:
- combined_config["src... | Ensure all provided src_paths are absolute | py |
diff --git a/engines/__init__.py b/engines/__init__.py
index <HASH>..<HASH> 100644
--- a/engines/__init__.py
+++ b/engines/__init__.py
@@ -41,7 +41,7 @@ def _init():
module_names = set()
for filename in filenames:
- match = re.match(r'^(?P<name>[^_\W]\w*)\.py[co]?$', filename)
+ match = re.mat... | Fix selection of dynamically loaded engine modules. | py |
diff --git a/lenstronomy/Extensions/Plots/output_plots.py b/lenstronomy/Extensions/Plots/output_plots.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/Extensions/Plots/output_plots.py
+++ b/lenstronomy/Extensions/Plots/output_plots.py
@@ -473,7 +473,7 @@ def plot_reconstruction(kwargs_data, kwargs_psf, kwargs_options, ... | plotting routine for more than four image lenses adopted | py |
diff --git a/src/mattermostdriver/websocket.py b/src/mattermostdriver/websocket.py
index <HASH>..<HASH> 100644
--- a/src/mattermostdriver/websocket.py
+++ b/src/mattermostdriver/websocket.py
@@ -96,10 +96,9 @@ class Websocket:
('seq_reply' in status and status['seq_reply'] == 1):
log.info('Websocket authenti... | Fix error message being sent, even if there was no error status | py |
diff --git a/python/wkw/wkw.py b/python/wkw/wkw.py
index <HASH>..<HASH> 100644
--- a/python/wkw/wkw.py
+++ b/python/wkw/wkw.py
@@ -163,6 +163,11 @@ class Dataset:
if not data.ndim in [3, 4]:
raise WKWException("Data must be three- or four-dimensional")
+ data = data.reshape((-1,) + data.s... | Python: Check number of channels before attempting write | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ setup(
description = 'Makes your terminal output totally fabulous',
download_url = ('http://lobstertech.com/media/file/fabulous/'
'fabulous-' + version + '... | Updating setup.py to use README.rst It was previously trying to read README, which doesn't exist | py |
diff --git a/services/managers/mumble_manager.py b/services/managers/mumble_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/mumble_manager.py
+++ b/services/managers/mumble_manager.py
@@ -17,7 +17,7 @@ class MumbleManager:
@staticmethod
def __santatize_username(username):
sanatized = u... | Escaped mysql character to prevent errors | py |
diff --git a/panphon/distance.py b/panphon/distance.py
index <HASH>..<HASH> 100644
--- a/panphon/distance.py
+++ b/panphon/distance.py
@@ -125,7 +125,7 @@ class Distance(object):
return previous_row[-1]
def fast_levenshtein_distance(self, source, target):
- """Wrapper for the distance function in... | Added fast_levenshtein_distance_div_maxlen | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ import textract
scripts = glob.glob("bin/*")
# read in the description from README
-with open("README.md") as stream:
+with open("README.rst") as stream:
long_description = stream.read()
github_url='ht... | forgot to rename the README.rst file in setup.py | py |
diff --git a/geocoder/tgos.py b/geocoder/tgos.py
index <HASH>..<HASH> 100644
--- a/geocoder/tgos.py
+++ b/geocoder/tgos.py
@@ -133,5 +133,5 @@ if __name__ == '__main__':
try:
g = Tgos('台北市內湖區內湖路一段735號')
g.debug()
- except Exception, ex:
+ except Exception as ex:
print(ex) | Fix Python 3.x try ... catch ... problem. | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -177,12 +177,14 @@ class TestFilters(unittest.TestCase):
pass
def test_filter_greater_than_or_equal(self,):
- data = self.yql.select('geo.countries',['name', 'placeTypeName']).whe... | #<I> : test filter less than or equal OK | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
-required_packages = ['pyparsing==2.1.0']
+required_packages = ['pyparsing==2.1.1']
if sys.version_info[:2] == (... | bumped pycparsing to <I> | py |
diff --git a/unit_tests/test_restore_cmd.py b/unit_tests/test_restore_cmd.py
index <HASH>..<HASH> 100644
--- a/unit_tests/test_restore_cmd.py
+++ b/unit_tests/test_restore_cmd.py
@@ -45,7 +45,7 @@ class TestListingInRestoreCmd:
, 'dir/location'
] ,self.original_locations)
- def test_with_... | Refactor: remove a duplicated method name | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -133,6 +133,12 @@ class SSHClientTest (unittest.TestCase):
"""
self._test_connection(key_filename=test_path('test_dss.key'))
+ def test_client_rsa(self):
+... | Add an explicit RSA test, which fails (!) | py |
diff --git a/salt/utils/raetevent.py b/salt/utils/raetevent.py
index <HASH>..<HASH> 100644
--- a/salt/utils/raetevent.py
+++ b/salt/utils/raetevent.py
@@ -45,7 +45,7 @@ class SaltEvent(object):
self.stack.addRemoteYard(self.router_yard)
route = {'dst': (None, self.router_yard.name, 'event_req'),
... | Pass the yid and dirpath to the event req | py |
diff --git a/src/python/pants/engine/fs.py b/src/python/pants/engine/fs.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/engine/fs.py
+++ b/src/python/pants/engine/fs.py
@@ -26,13 +26,6 @@ class FileContent(datatype([('path', text_type), ('content', binary_type)])):
return repr(self)
-class Path(datatype(... | Remove now-unused Path type (#<I>) The engine lost Paths from its Snapshots at some point, and we didn't clean up. | py |
diff --git a/pyforms/gui/Controls/ControlPlayer/VideoGLWidget.py b/pyforms/gui/Controls/ControlPlayer/VideoGLWidget.py
index <HASH>..<HASH> 100644
--- a/pyforms/gui/Controls/ControlPlayer/VideoGLWidget.py
+++ b/pyforms/gui/Controls/ControlPlayer/VideoGLWidget.py
@@ -326,6 +326,7 @@ class VideoGLWidget(QGLWidget):
... | Catch key events as soon as the mouse is over the video | py |
diff --git a/geomdl/Abstract.py b/geomdl/Abstract.py
index <HASH>..<HASH> 100644
--- a/geomdl/Abstract.py
+++ b/geomdl/Abstract.py
@@ -212,7 +212,7 @@ class Curve(object):
if self._bounding_box is None or len(self._bounding_box) == 0:
self._eval_bbox()
- return self._bounding_box
+ ... | Fixed a bug which causes issues when we try to reset bounding box | py |
diff --git a/patroni/dcs.py b/patroni/dcs.py
index <HASH>..<HASH> 100644
--- a/patroni/dcs.py
+++ b/patroni/dcs.py
@@ -123,7 +123,7 @@ class AbstractDCS:
"""
self._name = name
self._namespace = '/{}'.format(config.get('namespace', '/service/').strip('/'))
- self._base_path = '/'.join([... | Explicitly cast scope to string. Fixes issue #<I> | py |
diff --git a/extra_views/contrib/mixins.py b/extra_views/contrib/mixins.py
index <HASH>..<HASH> 100644
--- a/extra_views/contrib/mixins.py
+++ b/extra_views/contrib/mixins.py
@@ -89,7 +89,8 @@ class SearchableListMixin(object):
filters.extend([Q(**{field_name: dt}) for field_name in self.search... | No .distinct unless there's a query Avoid calling distinct unless we're actually doing something to the query. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,10 @@ from setuptools import setup, find_packages
from version import get_git_version
VERSION = get_git_version()
-PROJECT = 'kba.pipeline'
+PROJECT = 'streamcorpus.pipeline'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMA... | updating the setup.py to use the new package name. This combined with all of the tags that I just re-pushed to the repo, makes it so that `make install` constructs an egg called: streamcorpus.pipeline-<I>_<I>_g6af9-py<I>.egg | py |
diff --git a/cassandra/policies.py b/cassandra/policies.py
index <HASH>..<HASH> 100644
--- a/cassandra/policies.py
+++ b/cassandra/policies.py
@@ -17,7 +17,7 @@ import logging
from random import randint
from threading import Lock
-from cassandra import ConsistencyLevel
+from cassandra import ConsistencyLevel, Opera... | by default, don't convict a host based on heartbeat timeouts PYTHON-<I> | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '1.0.0-SNAPSHOT'
+VERSION = '1.0.0' | release a new version <I> | py |
diff --git a/aiohttp/signals.py b/aiohttp/signals.py
index <HASH>..<HASH> 100644
--- a/aiohttp/signals.py
+++ b/aiohttp/signals.py
@@ -20,7 +20,7 @@ class Signal(object):
for receiver in self._receivers:
receiver(**kwargs)
-class AsyncSignal(Signal):
+class CoroutineSignal(Signal):
def conn... | Rename AsyncSignal to CoroutineSignal for clarity of purpose | py |
diff --git a/pyxmpp/resolver.py b/pyxmpp/resolver.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/resolver.py
+++ b/pyxmpp/resolver.py
@@ -104,11 +104,12 @@ def reorder_srv(records):
tmp.append(rr)
continue
ret+=shuffle_srv(tmp)
+ tmp = [rr]
if tmp:
ret+=shuffle_srv(t... | SRV handling fix PyXMPP would twice connect to the same host if two SRV records with different priorities are available. This change fixes this behaviour and thus the SRV fall-back mechanism | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -2599,9 +2599,11 @@ class BaseHighState(object):
)
if found == 0:
- log.error('No contents found in top file. Please verify '
- 'that the \'file_roots\'... | Don't log an error when no top.sls is found It is a valid use case to only derive your SLS matches via master_tops, so it should not be considered an error if no top file matches are found. | py |
diff --git a/owslib/csw.py b/owslib/csw.py
index <HASH>..<HASH> 100644
--- a/owslib/csw.py
+++ b/owslib/csw.py
@@ -9,6 +9,7 @@
""" CSW request and response processor """
+import warnings
import StringIO
import random
from owslib.etree import etree
@@ -183,7 +184,7 @@ class CatalogueServiceWeb:
"""
... | fix warning to not exit (#<I>) | py |
diff --git a/planetaryimage/pds3image.py b/planetaryimage/pds3image.py
index <HASH>..<HASH> 100644
--- a/planetaryimage/pds3image.py
+++ b/planetaryimage/pds3image.py
@@ -127,15 +127,10 @@ class PDS3Image(PlanetaryImage):
Parameters
----------
+ filename: Set filename for the pds image to be ... | Removed python commands from the docstring. refs#<I> | py |
diff --git a/openquake/hazardlib/calc/filters.py b/openquake/hazardlib/calc/filters.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/filters.py
+++ b/openquake/hazardlib/calc/filters.py
@@ -288,6 +288,10 @@ class IntegrationDistance(collections.Mapping):
a2 = min(angular_distance(maxdist, lat), 18... | Fixed a pickling error in Python 2 | py |
diff --git a/mobly/controllers/android_device.py b/mobly/controllers/android_device.py
index <HASH>..<HASH> 100644
--- a/mobly/controllers/android_device.py
+++ b/mobly/controllers/android_device.py
@@ -738,14 +738,18 @@ class AndroidDevice(object):
def start_adb_logcat(self):
"""Starts a standing adb log... | Clearn cached logcat before starting collection. (#<I>) Clear cached logcat before starting collection. | py |
diff --git a/lettuce_webdriver/webdriver.py b/lettuce_webdriver/webdriver.py
index <HASH>..<HASH> 100644
--- a/lettuce_webdriver/webdriver.py
+++ b/lettuce_webdriver/webdriver.py
@@ -341,6 +341,18 @@ def dismiss_alert(step):
pass
+@step('I click on label "([^"]*)"')
+def click_on_label(step, label):
+ "... | I click on label This is used for clicking on a label and focusing an element. Useful for accessibility testing, and for dealing with radios and checkbuttons. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,10 +23,11 @@ setup(name = "svg.charts",
license = "MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
- "Intended Audience :: Developers",
- "Intended Audience :: Science/Research",
+ "Inte... | Updated Trove classifiers to match sourceforge | py |
diff --git a/MicroTokenizer/MicroTokenizer.py b/MicroTokenizer/MicroTokenizer.py
index <HASH>..<HASH> 100644
--- a/MicroTokenizer/MicroTokenizer.py
+++ b/MicroTokenizer/MicroTokenizer.py
@@ -44,7 +44,7 @@ class MicroTokenizer(object):
def read_dict(dict_file):
dict_data = {}
- with open(dict_file... | fix bug that file default encoding under Chinese windows OS is GBK not utf8 | py |
diff --git a/slave/buildslave/runprocess.py b/slave/buildslave/runprocess.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/runprocess.py
+++ b/slave/buildslave/runprocess.py
@@ -428,7 +428,17 @@ class RunProcess:
# then comes the secondary information
msg = " in dir %s" % (self.workdir,)
... | If maxTime is set, add it to the beginning of log. We do this for timeout, so good to be consistent. Also, fix up units in the case that timeout or maxTime is set to 1. | py |
diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index <HASH>..<HASH> 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -748,9 +748,9 @@ def pandasSQL_builder(con, schema: str | None = None):
return SQLDatabase(con, schema=schema)
warnings.warn(
- "pandas only support SQLAlchemy connectable... | FIX: clarify warning in read_sql_query() (#<I>) | py |
diff --git a/plexapi/server.py b/plexapi/server.py
index <HASH>..<HASH> 100644
--- a/plexapi/server.py
+++ b/plexapi/server.py
@@ -184,9 +184,11 @@ class PlexServer(PlexObject):
data = self.query(Account.key)
return Account(self, data)
- def agents(self):
+ def agents(self, mediaType=None):
... | add mediaType keyword to agents method Thanks @jonnywong<I> | py |
diff --git a/iapws/ammonia.py b/iapws/ammonia.py
index <HASH>..<HASH> 100644
--- a/iapws/ammonia.py
+++ b/iapws/ammonia.py
@@ -14,7 +14,7 @@ from __future__ import division
from math import exp, log, pi
import warnings
-from scipy.constants import Boltzmann as kb
+from scipy.constants import Boltzmann
from .iapws9... | Fix flake8 N<I> complaint. N<I> camelcase 'Boltzmann' imported as lowercase 'kb' | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -3568,8 +3568,13 @@ class Dot11SCField(LEShortField):
## Packet abstract class ##
###########################
+class Packet_metaclass(type):
+ def __getattr__(self, attr):
+ for k in self.fields_desc:
+ ... | Added Packet_metclass to add methods to Packet classes | py |
diff --git a/tests/test_config_utils.py b/tests/test_config_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_config_utils.py
+++ b/tests/test_config_utils.py
@@ -9,19 +9,6 @@ import bigchaindb
ORIGINAL_CONFIG = copy.deepcopy(bigchaindb._config)
-@pytest.fixture
-def ignore_local_config_file(monkeypatch):
- ... | Remove unnecessary fixture it was needed when the root fixture was using autouse | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ packageName = "clarent"
dependencies = [
"twisted>=13.2.0",
"txampext>=0.0.10",
- "PyOpenSSL"
+ "PyOpenSSL>=0.14.1"
]
import re | Require new version of PyOpenSSL | py |
diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py
index <HASH>..<HASH> 100644
--- a/vcr/stubs/__init__.py
+++ b/vcr/stubs/__init__.py
@@ -81,8 +81,9 @@ class VCRHTTPResponse(HTTPResponse):
# libraries trying to process a chunked response. By removing the
# transfer-encoding: chunked header, ... | python3 uses capital headers sometimes, let's do a case-agnostic header removal | py |
diff --git a/processors.py b/processors.py
index <HASH>..<HASH> 100644
--- a/processors.py
+++ b/processors.py
@@ -54,9 +54,13 @@ def convert_marcxml(source):
def _collection_in_record(record, collection):
- """Return a list of collections (lowercased) from 980__a."""
+ """Returns True if record is in collec... | dojson: _collection_in_record fix * Fixes implementation of _collection_in_record() to correctly recognize collections in <I>__a, no matter how many repeatable fields and subfields there are. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,6 @@ from setuptools import setup, find_packages
REQUIREMENTS = [
'Django==1.7.7',
- 'psycopg2==2.5.1',
'django-piston==0.2.3',
'pytz==2011n',
'chardet==1.0.1', | Removed postgresql from deps | py |
diff --git a/faadata/airports/models.py b/faadata/airports/models.py
index <HASH>..<HASH> 100644
--- a/faadata/airports/models.py
+++ b/faadata/airports/models.py
@@ -69,6 +69,24 @@ class Airport(models.Model):
def locator_point(self):
return self.point
+ def runway_types(self):
+ runway_types... | Add a couple convenience methods to quickly get the construction and length of the airports' runways. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ def read(file_name):
return filestring
setup(name = "kalibrate",
- version = "1.2",
+ version = "1.1.1",
author = "Ash Wilson",
author_email = "ash.d.wilson@gmail.com",
descr... | chg: usr: Corrected version in setup.py !minor | py |
diff --git a/dockermap/utils.py b/dockermap/utils.py
index <HASH>..<HASH> 100644
--- a/dockermap/utils.py
+++ b/dockermap/utils.py
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
import json
import os
+import six
from .functional import lazy_once
@@ -21,8 +22,10 @@ def parse_response(response):
:r... | Fix crash in utils.parse_response() under Python 3 We would crash if `response` was a string because it doesn't have a `decode()` method. | py |
diff --git a/ripe/atlas/cousteau/stream.py b/ripe/atlas/cousteau/stream.py
index <HASH>..<HASH> 100644
--- a/ripe/atlas/cousteau/stream.py
+++ b/ripe/atlas/cousteau/stream.py
@@ -28,15 +28,19 @@ class AtlasStream(object):
"error": CHANNEL_ERROR,
}
- def __init__(self, log_errors=True):
+ def __ini... | DAR-<I>: [Cousteau] allow to connect to specific server (debug mode) | py |
diff --git a/libre/apps/data_drivers/models.py b/libre/apps/data_drivers/models.py
index <HASH>..<HASH> 100644
--- a/libre/apps/data_drivers/models.py
+++ b/libre/apps/data_drivers/models.py
@@ -521,21 +521,9 @@ class SourceRESTAPI(Source):
verbose_name_plural = _('REST API sources')
-class SourceWS(Source... | Merge code from the WS and REST API Sources | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,13 +44,9 @@ def setup_package():
recommended = {"numba": ["numba>=0.28"]}
- if '_cffi_backend' not in sys.builtin_module_names:
- setup_requires += ["cffi>=1.1.0"]
- install_requires += ["cffi>=1.... | no need to cffi install again | py |
diff --git a/pymzn/_mzn/_minizinc.py b/pymzn/_mzn/_minizinc.py
index <HASH>..<HASH> 100644
--- a/pymzn/_mzn/_minizinc.py
+++ b/pymzn/_mzn/_minizinc.py
@@ -146,6 +146,8 @@ def minizinc(mzn, *dzn_files, data=None, keep=False, output_base=None,
elif mzn_model.mzn_file:
output_dir, mzn_name = os.path.... | minizinc: use current working directory if keep=True but a model string is used | py |
diff --git a/examples/py/binance-test-order.py b/examples/py/binance-test-order.py
index <HASH>..<HASH> 100644
--- a/examples/py/binance-test-order.py
+++ b/examples/py/binance-test-order.py
@@ -15,7 +15,7 @@ exchange = ccxt.binance({
'enableRateLimit': True,
})
-symbol = 'BTC/ETH' # bitcoin contract according... | minor edit to comments in examples/py/binance-test-order.py | py |
diff --git a/pyethereum/blocks.py b/pyethereum/blocks.py
index <HASH>..<HASH> 100644
--- a/pyethereum/blocks.py
+++ b/pyethereum/blocks.py
@@ -385,19 +385,19 @@ class Block(object):
@classmethod
def init_from_parent(cls, parent, coinbase, extra_data='',
- now=int(time.time())):
+ ... | fix: timestamp is not necessarily now | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -640,7 +640,6 @@ VALID_OPTS = immutabletypes.freeze(
"fileserver_backend": list,
"fileserver_followsymlinks": bool,
"fileserver_ignoresymli... | Removing the fileserver_limit_traversal option from the default configuration as this is option is no longer used in code. | py |
diff --git a/taskc/simple_test.py b/taskc/simple_test.py
index <HASH>..<HASH> 100644
--- a/taskc/simple_test.py
+++ b/taskc/simple_test.py
@@ -1,6 +1,8 @@
import unittest
import os
import time
+# import logging
+
from docker import Client
from simple import TaskdConnection
@@ -27,6 +29,7 @@ class TestRCParse(uni... | comment in logging for debug in future | py |
diff --git a/tests/test_aio.py b/tests/test_aio.py
index <HASH>..<HASH> 100644
--- a/tests/test_aio.py
+++ b/tests/test_aio.py
@@ -293,6 +293,24 @@ class TestAsyncioConsul(object):
loop.run_until_complete(keepalive())
+ def test_agent_checks_service_id(self, loop, consul_port):
+ @asyncio.corouti... | Added new tests for asyncio to tests registering a check with a service id | py |
diff --git a/cherrypy/test/test_wsgi_unix_socket.py b/cherrypy/test/test_wsgi_unix_socket.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_wsgi_unix_socket.py
+++ b/cherrypy/test/test_wsgi_unix_socket.py
@@ -8,12 +8,13 @@ import cherrypy
from cherrypy.test import helper
from cherrypy._cpcompat import HTTPConne... | Make sure we can run the unix socket test concurrently. | py |
diff --git a/plexapi/video.py b/plexapi/video.py
index <HASH>..<HASH> 100644
--- a/plexapi/video.py
+++ b/plexapi/video.py
@@ -158,7 +158,7 @@ class Video(PlexPartialObject):
tagKeys = ["Mobile", "TV", "Original Quality"]
tagIDs = tagKeys + tagValues
- if targetTagID not in tagIDs and (device... | is instead of == None correction found in Flake test | py |
diff --git a/discover_jenkins/tasks/run_jshint.py b/discover_jenkins/tasks/run_jshint.py
index <HASH>..<HASH> 100644
--- a/discover_jenkins/tasks/run_jshint.py
+++ b/discover_jenkins/tasks/run_jshint.py
@@ -82,7 +82,7 @@ class Task(object):
output, err = process.communicate()
retcode = process.poll()
... | Use string formatting so that the CalledProcessError doesn't cause a TypeError when output is None | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,6 @@ setuptools.setup(
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.3... | Drop support for Python <I> | py |
diff --git a/docker_squash/image.py b/docker_squash/image.py
index <HASH>..<HASH> 100644
--- a/docker_squash/image.py
+++ b/docker_squash/image.py
@@ -226,7 +226,7 @@ class Image(object):
if (size_after_mb >= size_before_mb):
self.log.info("If the squashed image is larger than original it means th... | Fix % decrease in size stat after squashing | py |
diff --git a/benchexec/tools/coveriteam-verifier-validator.py b/benchexec/tools/coveriteam-verifier-validator.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/coveriteam-verifier-validator.py
+++ b/benchexec/tools/coveriteam-verifier-validator.py
@@ -29,8 +29,8 @@ class Tool(coveriteam.Tool):
data_model_pa... | data_model is provided as variable now to coveriteam | py |
diff --git a/session_security/urls.py b/session_security/urls.py
index <HASH>..<HASH> 100644
--- a/session_security/urls.py
+++ b/session_security/urls.py
@@ -1,5 +1,5 @@
"""
-Two urls meant to be used by javascript.
+One url meant to be used by javascript.
session_security_ping
Checks and eventually update th... | Correction in urls module docstring | py |
diff --git a/dvc/command/repro.py b/dvc/command/repro.py
index <HASH>..<HASH> 100644
--- a/dvc/command/repro.py
+++ b/dvc/command/repro.py
@@ -89,11 +89,7 @@ class ReproChange(object):
self._recursive = recursive
self._force = force
- try:
- self.state = StateFile.load(data_item, s... | RFC: redo repro's init | py |
diff --git a/dataviews/options.py b/dataviews/options.py
index <HASH>..<HASH> 100644
--- a/dataviews/options.py
+++ b/dataviews/options.py
@@ -115,7 +115,7 @@ class Options(object):
Given a key which may contain spaces, such as a view label,
convert it to a string suitable for attribute access.
... | Option key normalization now replaces spaces with '' instead of '_' | py |
diff --git a/bokeh/resources.py b/bokeh/resources.py
index <HASH>..<HASH> 100644
--- a/bokeh/resources.py
+++ b/bokeh/resources.py
@@ -37,15 +37,15 @@ def _get_cdn_urls(version=None, minified=True):
else:
version = __version__.split('-')[0]
- # check the 'dev' fingerprint
- dev = version.s... | Get resources awared of the new format. | py |
diff --git a/trunk/examples/mesonet_station_plot.py b/trunk/examples/mesonet_station_plot.py
index <HASH>..<HASH> 100644
--- a/trunk/examples/mesonet_station_plot.py
+++ b/trunk/examples/mesonet_station_plot.py
@@ -32,6 +32,5 @@ m.bluemarble()
station_plot(data, ax=ax, proj=m, field_info=mesonet_var_map,
styles=d... | Remove call to shapfile which only exists in my local directory. git-svn-id: <URL> | py |
diff --git a/mistletoe/block_tokenizer.py b/mistletoe/block_tokenizer.py
index <HASH>..<HASH> 100644
--- a/mistletoe/block_tokenizer.py
+++ b/mistletoe/block_tokenizer.py
@@ -11,7 +11,7 @@ class MismatchException(Exception):
class FileWrapper:
def __init__(self, lines):
- self.lines = [line.replace('\t',... | universal newline mode is apparently a thing | py |
diff --git a/smbclient/_io.py b/smbclient/_io.py
index <HASH>..<HASH> 100644
--- a/smbclient/_io.py
+++ b/smbclient/_io.py
@@ -165,7 +165,7 @@ def _resolve_dfs(raw_io):
tree, fd_path = get_smb_tree(new_path, **connection_kwargs)
except SMBResponseException as link_exc:
- log.warning("... | Fix output (replace print()) (#<I>) | py |
diff --git a/test_ella/test_core/test_cache.py b/test_ella/test_core/test_cache.py
index <HASH>..<HASH> 100644
--- a/test_ella/test_core/test_cache.py
+++ b/test_ella/test_core/test_cache.py
@@ -14,7 +14,7 @@ from ella.core.models import Listing, Publishable
from ella.core.views import ListContentType
from ella.core.... | Date not timezoned by accident. | py |
diff --git a/etk/doc_retrieve_processor.py b/etk/doc_retrieve_processor.py
index <HASH>..<HASH> 100644
--- a/etk/doc_retrieve_processor.py
+++ b/etk/doc_retrieve_processor.py
@@ -50,8 +50,8 @@ class DocRetrieveProcessor(object):
'date': None,
'ifp': None,
'news_story':... | Corrected output_cdr_doc for process_by_sentence | py |
diff --git a/scripts/figures/model-complexity-tables.py b/scripts/figures/model-complexity-tables.py
index <HASH>..<HASH> 100644
--- a/scripts/figures/model-complexity-tables.py
+++ b/scripts/figures/model-complexity-tables.py
@@ -57,18 +57,19 @@ def table(s, datas, names, vary_func):
for i, (name, data) in enum... | working on state copy for model complexity table | py |
diff --git a/openquake/commonlib/tests/calculators/classical_test.py b/openquake/commonlib/tests/calculators/classical_test.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/tests/calculators/classical_test.py
+++ b/openquake/commonlib/tests/calculators/classical_test.py
@@ -198,4 +198,4 @@ hazard_uhs-smltp_SM2_... | Reduced the tolerance to 1e-7 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -84,6 +84,6 @@ setup(
],
entry_points={"console_scripts": ["allennlp=allennlp.__main__:run"]},
include_package_data=True,
- python_requires=">=3.6.1",
+ python_requires=">=3.7.1",
zip_safe=False,
) | require Python>=<I> (#<I>) | py |
diff --git a/salt/modules/mine.py b/salt/modules/mine.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mine.py
+++ b/salt/modules/mine.py
@@ -67,7 +67,7 @@ def _mine_send(load, opts):
def _mine_get(load, opts):
- if opts.get('transport', '') == 'zeromq':
+ if opts.get('transport', '') in ('zeromq', 'tcp'):
... | Allow for tcp transport in mine | py |
diff --git a/timed.py b/timed.py
index <HASH>..<HASH> 100644
--- a/timed.py
+++ b/timed.py
@@ -91,5 +91,9 @@ class Log:
return str({'id': self.id, 'category': self.category, 'start': self.start, 'end': self.end})
if __name__ == '__main__':
+
if len(sys.argv) == 1:
- list_categories()
\ No newline at e... | if category-name is given, start the timer | py |
diff --git a/dbussy.py b/dbussy.py
index <HASH>..<HASH> 100644
--- a/dbussy.py
+++ b/dbussy.py
@@ -2644,11 +2644,10 @@ class Connection :
addr = (DBUSX.SESSION_BUS_ADDRESS, DBUSX.SYSTEM_BUS_ADDRESS)[is_system_bus]
#end if
try :
- result = celf.open(addr, private... | use my open_async call in Connection.bus_get_async | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.