diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/curtsies/window.py b/curtsies/window.py index <HASH>..<HASH> 100644 --- a/curtsies/window.py +++ b/curtsies/window.py @@ -310,6 +310,10 @@ class CursorAwareWindow(BaseWindow, ContextManager["CursorAwareWindow"]): """Returns the terminal (row, column) of the cursor 0-indexed, like blesse...
Use blessed to get the cursor position
py
diff --git a/src/_pytest/main.py b/src/_pytest/main.py index <HASH>..<HASH> 100644 --- a/src/_pytest/main.py +++ b/src/_pytest/main.py @@ -756,8 +756,6 @@ class Session(nodes.FSCollector): resultnodes = [] # type: List[Union[nodes.Item, nodes.Collector]] for node in matching: ...
main: remove impossible condition in matchnodes Already covered in a condition above.
py
diff --git a/tinman/cache.py b/tinman/cache.py index <HASH>..<HASH> 100644 --- a/tinman/cache.py +++ b/tinman/cache.py @@ -17,10 +17,10 @@ def memoize_write(*args): # Append the value if the key exists, otherwise just set it if args[0].tinman_memoize_key in local_cache: - debug('memoize append: %s' %...
Bug-fix in the debug statement
py
diff --git a/examples/glyphs/prim.py b/examples/glyphs/prim.py index <HASH>..<HASH> 100644 --- a/examples/glyphs/prim.py +++ b/examples/glyphs/prim.py @@ -66,6 +66,7 @@ make_plot('rect', Rect(x="x", y="y", width=0.5, height=0.8, angle=-0.6)) make_plot('text', Text(x="x", y="y", text="foo", angle=0.6)) make_plot('wedg...
adding helpful text at the end of prim.py example with plot server URL
py
diff --git a/tests/test_folder.py b/tests/test_folder.py index <HASH>..<HASH> 100644 --- a/tests/test_folder.py +++ b/tests/test_folder.py @@ -259,13 +259,11 @@ class FolderTest(EWSTest): self.assertEqual(getattr(f, field.name), old_values[field.name], (f, field.name)) # Test refresh of ...
Let test survive new folders popping up randomly
py
diff --git a/salt/utils/minion.py b/salt/utils/minion.py index <HASH>..<HASH> 100644 --- a/salt/utils/minion.py +++ b/salt/utils/minion.py @@ -14,6 +14,9 @@ import salt.utils import salt.payload from salt.utils.network import remote_port_tcp as _remote_port_tcp +# Import 3rd-party libs +import salt.ext.six as six +...
Under Py3, what we get from `.read()` is `bytes`. Using `six.b()` in this particular case is all we need to do.
py
diff --git a/datajoint/autopopulate.py b/datajoint/autopopulate.py index <HASH>..<HASH> 100644 --- a/datajoint/autopopulate.py +++ b/datajoint/autopopulate.py @@ -108,7 +108,7 @@ class AutoPopulate: :param display_progress: if True, report progress_bar :param limit: if not None, checks at most that ma...
apply changes requested by dmitri
py
diff --git a/tests/test_connectors/test_ssh.py b/tests/test_connectors/test_ssh.py index <HASH>..<HASH> 100644 --- a/tests/test_connectors/test_ssh.py +++ b/tests/test_connectors/test_ssh.py @@ -292,10 +292,9 @@ class TestSSHConnector(TestCase): ('somehost', {'ssh_key': 'testkey'}), )), Config()) ...
Update private key missing test expected exception.
py
diff --git a/chartpress.py b/chartpress.py index <HASH>..<HASH> 100755 --- a/chartpress.py +++ b/chartpress.py @@ -235,10 +235,10 @@ def build_images(prefix, images, tag=None, push=False, chart_tag=None, skip_buil if n_commits > 0 or long: if "-" in chart_tag: # append...
Fix image tag bug: use of - instead of .
py
diff --git a/src/ossos/core/ossos/__version__.py b/src/ossos/core/ossos/__version__.py index <HASH>..<HASH> 100644 --- a/src/ossos/core/ossos/__version__.py +++ b/src/ossos/core/ossos/__version__.py @@ -1 +1 @@ -version = "0.9.1" +version = "0.9.2"
Push the pipeline files into the main distro
py
diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/__init__.py +++ b/lib/svtplay_dl/__init__.py @@ -50,11 +50,12 @@ class Options: self.password = None def get_media(url, options): - stream = service_handler(url) - if not stream: - ...
get_media: Check for embed videos first. sydsvenskan.se are using qbrick for their own videos. but they used tv4play.se for some videos ex: obama visit in sweden.
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -91,11 +91,17 @@ def test_clear(): def test_update(): set1 = OrderedSet('abcd') - set1.update('efgh') + result = set1.update('efgh') + assert result == 7 assert len(set1) == 8 - assert set1[0] == 'a' - ...
test that update() works with existing elements
py
diff --git a/www/speed/benchmarks/pystone_proc8.py b/www/speed/benchmarks/pystone_proc8.py index <HASH>..<HASH> 100644 --- a/www/speed/benchmarks/pystone_proc8.py +++ b/www/speed/benchmarks/pystone_proc8.py @@ -30,6 +30,8 @@ Version History: """ +from __future__ import print_function + LOOPS = 5000 from time i...
Use print() function in both Python 2 and Python 3
py
diff --git a/demo/views.py b/demo/views.py index <HASH>..<HASH> 100755 --- a/demo/views.py +++ b/demo/views.py @@ -138,3 +138,8 @@ def flot_demo(request): 'bar_chart': bar_chart, 'point_chart': point_chart} return render(request, 'demo/flot.html', context) + + +def mongodb_source_de...
added basic demo_mongodb_source view
py
diff --git a/source/test/common/test_z_source_editor.py b/source/test/common/test_z_source_editor.py index <HASH>..<HASH> 100644 --- a/source/test/common/test_z_source_editor.py +++ b/source/test/common/test_z_source_editor.py @@ -80,7 +80,7 @@ def trigger_source_editor_signals(main_window_controller): source_edit...
source editor test: small path and gui config fix - path to default_script.py is now relative to rafcon package path - pylint test is active disabled in source editor test
py
diff --git a/master/buildbot/test/unit/test_process_buildstep.py b/master/buildbot/test/unit/test_process_buildstep.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_process_buildstep.py +++ b/master/buildbot/test/unit/test_process_buildstep.py @@ -377,7 +377,7 @@ class TestBuildStep(steps.BuildStepMi...
'bytestring' must be bytes Fixes a test in Python 3
py
diff --git a/GITenberg.py b/GITenberg.py index <HASH>..<HASH> 100755 --- a/GITenberg.py +++ b/GITenberg.py @@ -20,6 +20,8 @@ from filetypes import IGNORE_FILES from secrets import GH_USER from secrets import GH_PASSWORD +import models + PICKLE_PATH = u'./catalog.pickle' ARCHIVE_ROOT = u'/media/gitenberg' ...
WIP metadata_sql WARN:broken
py
diff --git a/deploy_stack.py b/deploy_stack.py index <HASH>..<HASH> 100755 --- a/deploy_stack.py +++ b/deploy_stack.py @@ -400,11 +400,7 @@ def add_juju_args(parser): def get_juju_path(args): - if args.new_juju_bin is None: - raise Exception('Either --new-juju-bin or --run-startup must be' - ...
Remove exception...--new-juju-bin is required.
py
diff --git a/stanza/models/tagger.py b/stanza/models/tagger.py index <HASH>..<HASH> 100644 --- a/stanza/models/tagger.py +++ b/stanza/models/tagger.py @@ -207,8 +207,13 @@ def train(args): print("Training ended with {} steps.".format(global_step)) - best_f, best_eval = max(dev_score_history)*100, np.argmax(...
Save instead of going haywire when the dev set is never evaluated
py
diff --git a/carmen/resolvers/geocode.py b/carmen/resolvers/geocode.py index <HASH>..<HASH> 100644 --- a/carmen/resolvers/geocode.py +++ b/carmen/resolvers/geocode.py @@ -43,7 +43,12 @@ class GeocodeResolver(AbstractResolver): self.location_map[cell].append(location) def resolve_tweet(self, tweet): ...
Fix potential AttributeError in geocode resolver
py
diff --git a/teneto/test/plot/plot.py b/teneto/test/plot/plot.py index <HASH>..<HASH> 100644 --- a/teneto/test/plot/plot.py +++ b/teneto/test/plot/plot.py @@ -1,7 +1,8 @@ import teneto +import matplotlib +from matplotlib.testing.decorators import image_comparison import matplotlib.pyplot as plt - def test_slicep...
attempt at fixing plot tests (otherwise will remove)
py
diff --git a/salt/states/ssh_auth.py b/salt/states/ssh_auth.py index <HASH>..<HASH> 100644 --- a/salt/states/ssh_auth.py +++ b/salt/states/ssh_auth.py @@ -237,7 +237,12 @@ def present( return ret -def absent(name, user, config='.ssh/authorized_keys'): +def absent(name, + user, + enc='ssh-rs...
Add enc, comment and options for ssh_auth.absent These are present for ssh_auth.present, but not for ssh_auth.absent. This poses a problem further into the code in ssh.check_key (or rather _refine_enc() in the ssh module) when it is validating the encryption type. Fixes #<I>.
py
diff --git a/palladium/fit.py b/palladium/fit.py index <HASH>..<HASH> 100644 --- a/palladium/fit.py +++ b/palladium/fit.py @@ -157,7 +157,7 @@ def grid_search(dataset_loader_train, model, grid_search): cv = grid_search_kwargs.get('cv', None) if callable(cv): - grid_search_kwargs['cv'] = apply_kwargs(...
Also pass X to CV generator if required
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,21 +7,17 @@ import os def extra_dependencies(): import sys - ret = [] - if sys.version_info < (2, 7): - ret.append('argparse') - return ret - + return = ['argparse'] if sys.version_info < (2, 7) e...
Simplify extra_dependencies() and close open files in read()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( long_description=readme_text, long_description_content_type="text/markdown", author="Executable Book Project", - url="https://github.com/ExecutableBookProject/sphinx-copybutton", + ur...
🔧 MAINT: Fix GitHub link to new organization name (#<I>)
py
diff --git a/tests/cli/_demo_basic_usage.py b/tests/cli/_demo_basic_usage.py index <HASH>..<HASH> 100644 --- a/tests/cli/_demo_basic_usage.py +++ b/tests/cli/_demo_basic_usage.py @@ -120,6 +120,10 @@ def _unittest_slow_cli_demo_basic_usage( if not pathlib.Path('uavcan').exists(): run_cli_tool('dsdl-gen-pk...
Maybe the Windows errors are caused by the pipe overflow? This change defers the start of the subscribers until the very last moment to avoid this.
py
diff --git a/test/test_excel_ui.py b/test/test_excel_ui.py index <HASH>..<HASH> 100644 --- a/test/test_excel_ui.py +++ b/test/test_excel_ui.py @@ -667,9 +667,9 @@ class TestLoadFCSFromTable(unittest.TestCase): # Expected output fcs_files_expected = [] fcs_files_expected.append(fc.io.FCSData("...
Minor style change in test_excel_ui.py.
py
diff --git a/src/__init__.py b/src/__init__.py index <HASH>..<HASH> 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -15,5 +15,6 @@ gnupg.__license__ = copyleft.disclaimer __all__ = ["GPG"] +del gnupg del copyleft del get_versions
Add "del gnupg" in src/__init__.py to get rid of gnupg.gnupg in API.
py
diff --git a/peeweedbevolve.py b/peeweedbevolve.py index <HASH>..<HASH> 100644 --- a/peeweedbevolve.py +++ b/peeweedbevolve.py @@ -14,7 +14,7 @@ DEBUG = False # peewee doesn't do defaults in the database - doh! DIFF_DEFAULTS = False -__version__ = '0.4.3' +__version__ = '0.4.4' try: @@ -333,7 +333,7 @@ def cal...
fixed bug when default is 'False'
py
diff --git a/slither/detectors/functions/external_function.py b/slither/detectors/functions/external_function.py index <HASH>..<HASH> 100644 --- a/slither/detectors/functions/external_function.py +++ b/slither/detectors/functions/external_function.py @@ -143,7 +143,7 @@ class ExternalFunction(AbstractDetector): ...
Fixed an issue in external-functions detector that iterated on a contract instead of its function properties.
py
diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py index <HASH>..<HASH> 100644 --- a/salt/modules/debian_ip.py +++ b/salt/modules/debian_ip.py @@ -1822,7 +1822,8 @@ def down(iface, iface_type): # Slave devices are controlled by the master. # Source 'interfaces' aren't brought down. if ifa...
Replace use of deprecated ifup|ifdown iface with ip link set iface up|down
py
diff --git a/devassistant/package_managers.py b/devassistant/package_managers.py index <HASH>..<HASH> 100644 --- a/devassistant/package_managers.py +++ b/devassistant/package_managers.py @@ -490,10 +490,6 @@ class EmergePackageManager(PackageManager): "You must install the following packages before run thi...
remove redundant (for system package menagers) method
py
diff --git a/test/unit/Network/MatFileTest.py b/test/unit/Network/MatFileTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Network/MatFileTest.py +++ b/test/unit/Network/MatFileTest.py @@ -6,6 +6,8 @@ import os class MatFileTest: def setup_class(self): self.fname = os.path.join(FIXTURE_DIR, 'example_ne...
Travis is not finding the FIXTURE_DIR global for the MatFileTest class, but is for all the others...not sure what that means.
py
diff --git a/PyTest/test_suite.py b/PyTest/test_suite.py index <HASH>..<HASH> 100644 --- a/PyTest/test_suite.py +++ b/PyTest/test_suite.py @@ -1,8 +1,9 @@ from unittest import TestCase -#from pydbc import connect import pyodbc as pydbc +#import pydbc dsn = "DSN=PostgreSQL R&D test database" +#dsn = "PostgreSQL R&D...
added select <I> test case
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -20,5 +20,6 @@ __copyright__ = "Copyright (C) 2017 Dan Tès <https://github.com/delivrance>" __license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)" __version__ ...
Expose the Error class from the main package
py
diff --git a/coalaip/plugin.py b/coalaip/plugin.py index <HASH>..<HASH> 100644 --- a/coalaip/plugin.py +++ b/coalaip/plugin.py @@ -34,6 +34,20 @@ class AbstractPlugin(ABC): """ @abstractmethod + def is_same_user(self, user_a, user_b): + """Compare the given user representations to see if they ...
feat(plugin): add ability to check if two user models represent the same user
py
diff --git a/pyoko/manage.py b/pyoko/manage.py index <HASH>..<HASH> 100644 --- a/pyoko/manage.py +++ b/pyoko/manage.py @@ -565,6 +565,8 @@ and .js extensions will be loaded."""}, ext = 'csv' if self.typ is self.CSV else 'js' for file in glob(os.path.join(self.manager.args.path, "*.%s" % ext)):...
LoadData command bug is fixed
py
diff --git a/ballet/eng/missing.py b/ballet/eng/missing.py index <HASH>..<HASH> 100644 --- a/ballet/eng/missing.py +++ b/ballet/eng/missing.py @@ -25,6 +25,7 @@ class NullFiller(BaseTransformer): def __init__(self, isnull=pd.isnull, replacement=0.0): super().__init__() self.replacement = replacem...
Fix bug with isnull not set
py
diff --git a/stomp/connect.py b/stomp/connect.py index <HASH>..<HASH> 100755 --- a/stomp/connect.py +++ b/stomp/connect.py @@ -415,13 +415,15 @@ class Connection(object): del keyword_headers['wait'] self.__send_frame_helper('CONNECT', '', utils.merge_headers([self.__connect_headers, headers, keywo...
add facility to not send a disconnect frame on disconnect
py
diff --git a/lib/websession_webinterface.py b/lib/websession_webinterface.py index <HASH>..<HASH> 100644 --- a/lib/websession_webinterface.py +++ b/lib/websession_webinterface.py @@ -684,7 +684,7 @@ class WebInterfaceYourAccountPages(WebInterfaceDirectory): else: # Fake parameters for p_un & p_pw ...
When using SSO the local session should be stored in a session cookie that expires when the browser is closed.
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -1468,10 +1468,6 @@ class OverlayPlot(GenericOverlayPlot, LegendPlot): for k, subplot in self.subplots.items(...
Fixed bogus overlay warnings in bokeh OverlayPlot (#<I>)
py
diff --git a/pyrallelsa/examples/tsp/__init__.py b/pyrallelsa/examples/tsp/__init__.py index <HASH>..<HASH> 100644 --- a/pyrallelsa/examples/tsp/__init__.py +++ b/pyrallelsa/examples/tsp/__init__.py @@ -131,7 +131,9 @@ class TSPProblem(Problem): else: chunk_size = 1 for subgroup in chunks...
Don't return empty set of cities
py
diff --git a/dedupe/api.py b/dedupe/api.py index <HASH>..<HASH> 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -217,7 +217,7 @@ class DedupeMatching(Matching) : combinations = itertools.combinations - pairs = (combinations(block, 2) for block in blocks) + pairs = (combinations(sorted(block...
fix sorted blocks in just the right place
py
diff --git a/openquake/hazardlib/calc/gmf.py b/openquake/hazardlib/calc/gmf.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/gmf.py +++ b/openquake/hazardlib/calc/gmf.py @@ -193,8 +193,10 @@ class GmfComputer(object): total_residual = stddev_total * rvs( distribution, num_sids...
Fill sig and eps with NaNs when it is the case [skip hazardlib]
py
diff --git a/categories/admin.py b/categories/admin.py index <HASH>..<HASH> 100644 --- a/categories/admin.py +++ b/categories/admin.py @@ -103,9 +103,18 @@ admin.site.register(Category, CategoryAdmin) for model,modeladmin in admin.site._registry.items(): if model in registry.values() and modeladmin.fieldsets: -...
Added logic to skip adding categories that are already defined for a modeladmin
py
diff --git a/tests/www/views/test_views_connection.py b/tests/www/views/test_views_connection.py index <HASH>..<HASH> 100644 --- a/tests/www/views/test_views_connection.py +++ b/tests/www/views/test_views_connection.py @@ -180,3 +180,26 @@ def test_duplicate_connection_error(admin_client): assert resp.status_code ...
Add test case for views connections muldelete function (#<I>)
py
diff --git a/tests/journey/test_chamber_of_deputies_official_missions_dataset.py b/tests/journey/test_chamber_of_deputies_official_missions_dataset.py index <HASH>..<HASH> 100644 --- a/tests/journey/test_chamber_of_deputies_official_missions_dataset.py +++ b/tests/journey/test_chamber_of_deputies_official_missions_data...
Update testes (Chamber of Deputies changed real world data)
py
diff --git a/collective/elephantvocabulary/vocabulary.py b/collective/elephantvocabulary/vocabulary.py index <HASH>..<HASH> 100644 --- a/collective/elephantvocabulary/vocabulary.py +++ b/collective/elephantvocabulary/vocabulary.py @@ -29,10 +29,13 @@ class VocabularyFactory(object): self.hidden_terms = hidden_...
registry should be not be loaded at __init__ time
py
diff --git a/numina/array/peaks/peakdet.py b/numina/array/peaks/peakdet.py index <HASH>..<HASH> 100644 --- a/numina/array/peaks/peakdet.py +++ b/numina/array/peaks/peakdet.py @@ -158,3 +158,24 @@ def refine_peaks3(arr, ipeaks, window): xc = ipeaks + 0.5 * (window-1) * uc return xc, yc + + +def refine_peaks4...
Add peakdet version that runs polyfit
py
diff --git a/python/mxnet/context.py b/python/mxnet/context.py index <HASH>..<HASH> 100644 --- a/python/mxnet/context.py +++ b/python/mxnet/context.py @@ -29,8 +29,8 @@ class Context(object): """ # static class variable default_ctx = None - devtype2str = {1: 'cpu', 2: 'gpu', 3: 'cpu'} - devstr2type...
[python] add cpu_pinned on context
py
diff --git a/axes/decorators.py b/axes/decorators.py index <HASH>..<HASH> 100644 --- a/axes/decorators.py +++ b/axes/decorators.py @@ -197,24 +197,25 @@ def is_user_lockable(request): # not a valid user return True - # Django 1.5 does not support profile anymore, ask directly to user if hasa...
Improved the way we ask if a user is lockable Fixes #<I>
py
diff --git a/tests/test_labelarray.py b/tests/test_labelarray.py index <HASH>..<HASH> 100644 --- a/tests/test_labelarray.py +++ b/tests/test_labelarray.py @@ -61,7 +61,7 @@ class LabelArrayTestCase(ZiplineTestCase): check_arrays(arr.endswith(s), np_endswith(strs)) np_contains = np.vectorize(lambda e...
BUG: contains was renamed to has_substring
py
diff --git a/ginga/aggw/ImageViewAgg.py b/ginga/aggw/ImageViewAgg.py index <HASH>..<HASH> 100644 --- a/ginga/aggw/ImageViewAgg.py +++ b/ginga/aggw/ImageViewAgg.py @@ -46,8 +46,8 @@ class ImageViewAgg(ImageView.ImageViewBase): def get_rgb_image_as_bytes(self, format='png', quality=90): # TO BE DEPRECATED...
Fix for a broken method - method had moved to the renderer
py
diff --git a/cwltool/process.py b/cwltool/process.py index <HASH>..<HASH> 100644 --- a/cwltool/process.py +++ b/cwltool/process.py @@ -375,7 +375,7 @@ def relocateOutputs(outputObj, # type: Union[Dict[Text, Any],List[Di return outputObj -def cleanIntermediate(output_dirs): # type: (Set[Text]) -> N...
Loosen type hint on cleanIntermediate
py
diff --git a/cartoframes/data/observatory/catalog/entity.py b/cartoframes/data/observatory/catalog/entity.py index <HASH>..<HASH> 100644 --- a/cartoframes/data/observatory/catalog/entity.py +++ b/cartoframes/data/observatory/catalog/entity.py @@ -214,4 +214,13 @@ class CatalogList(list): catalog = Cata...
Exclude reserved fields in Catalog to_dataframe
py
diff --git a/galpy/df/streamdf.py b/galpy/df/streamdf.py index <HASH>..<HASH> 100644 --- a/galpy/df/streamdf.py +++ b/galpy/df/streamdf.py @@ -1276,6 +1276,7 @@ class streamdf(df): obskwargs['ro']= ro obskwargs['vo']= vo obskwargs['obs']= obs + obskwargs['quantity']= False sel...
Make sure to not get quantity output in streamdf setup
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,7 @@ setup( 'flask-migrate==1.5.1', 'flask-script==2.0.5', 'flask-testing==0.5.0', + 'flask-sqlalchemy==2.0', 'humanize==0.5.1', 'gunicorn==19.6.0', 'markd...
fix development env req (#<I>) when i install for development, get an error: error: Flask-SQLAlchemy <I> is installed but Flask-SQLAlchemy==<I> is required by set(['flask-appbuilder'])
py
diff --git a/app/readers/tsv.py b/app/readers/tsv.py index <HASH>..<HASH> 100644 --- a/app/readers/tsv.py +++ b/app/readers/tsv.py @@ -26,8 +26,9 @@ def generate_tsv_psms_line(fn): def get_psm_id(line): - return '{0}_{1}'.format(line[mzidtsvdata.HEADER_SPECFILE], - line[mzidtsvdata.HE...
psm_id is now composed of scannr, fn, and sequence, since multiple sequences can be found per scan (e.g isoleucine)
py
diff --git a/manager.py b/manager.py index <HASH>..<HASH> 100644 --- a/manager.py +++ b/manager.py @@ -123,15 +123,18 @@ class ASTNGManager(OptionsProviderMixIn): directory = abspath(directory) return Package(directory, modname, self) - def astng_from_file(self, filepath, modname=None, fallback=T...
support source argument to force consideration of file as a python source file --HG-- branch : stable
py
diff --git a/pyemma/coordinates/api.py b/pyemma/coordinates/api.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/api.py +++ b/pyemma/coordinates/api.py @@ -440,6 +440,7 @@ def save_traj(traj_inp, indexes, outfile): If set to None, the trajectory object is returned to memory """ + pass i...
implemented save_traj, test pending to be ported from ipynb to .py
py
diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py index <HASH>..<HASH> 100644 --- a/holoviews/operation/datashader.py +++ b/holoviews/operation/datashader.py @@ -323,12 +323,14 @@ class aggregate(AggregationOperation): if category and df[category].dtype.name != 'category': ...
Handle datashader regression introduced by cftime handling (#<I>)
py
diff --git a/climlab/utils/data_source.py b/climlab/utils/data_source.py index <HASH>..<HASH> 100644 --- a/climlab/utils/data_source.py +++ b/climlab/utils/data_source.py @@ -70,7 +70,9 @@ def load_data_source(local_path, for source in remote_source_list: path = source try...
Backwards compatibility for Py<I> -- union of two dicts
py
diff --git a/nupic/engine/__init__.py b/nupic/engine/__init__.py index <HASH>..<HASH> 100644 --- a/nupic/engine/__init__.py +++ b/nupic/engine/__init__.py @@ -735,7 +735,7 @@ class Network(engine.Network): Adds the package to the list of packages the network can access for regions package: name of Python pack...
changed name to match nupic.core
py
diff --git a/src/urh/controller/ProtocolSniffDialogController.py b/src/urh/controller/ProtocolSniffDialogController.py index <HASH>..<HASH> 100644 --- a/src/urh/controller/ProtocolSniffDialogController.py +++ b/src/urh/controller/ProtocolSniffDialogController.py @@ -17,6 +17,7 @@ class ProtocolSniffDialogController(Sen...
hide receive ui items for send dialog
py
diff --git a/indra/reach/reach_api.py b/indra/reach/reach_api.py index <HASH>..<HASH> 100644 --- a/indra/reach/reach_api.py +++ b/indra/reach/reach_api.py @@ -94,6 +94,10 @@ def process_pubmed_abstract(pubmed_id, offline=False): if abs_txt is None: return None rp = process_text(abs_txt, citation=pubm...
Set abstract section type when reading abstract in REACH
py
diff --git a/tests/guid/test_modern.py b/tests/guid/test_modern.py index <HASH>..<HASH> 100644 --- a/tests/guid/test_modern.py +++ b/tests/guid/test_modern.py @@ -221,7 +221,7 @@ def test_invalid_format(): for item in guids: r = Guid.parse(item) - assert r is None + assert r.valid is False...
Updated tests to support the latest `Guid` changes
py
diff --git a/is_core/version.py b/is_core/version.py index <HASH>..<HASH> 100644 --- a/is_core/version.py +++ b/is_core/version.py @@ -1,4 +1,4 @@ -VERSION = (0, 6, 46) +VERSION = (0, 6, 47) def get_version():
<I> Fixed rest urls
py
diff --git a/zipline/data/bundles/core.py b/zipline/data/bundles/core.py index <HASH>..<HASH> 100644 --- a/zipline/data/bundles/core.py +++ b/zipline/data/bundles/core.py @@ -6,6 +6,7 @@ import warnings from contextlib2 import ExitStack import click +from logbook import Logger import pandas as pd from trading_cal...
DOC: [WIP] Improvements on logging
py
diff --git a/tests/test_connection.py b/tests/test_connection.py index <HASH>..<HASH> 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1,13 +1,21 @@ +from unittest.case import skipIf + from nose.tools import assert_dict_contains_subset from nose.tools import assert_in from nose.tools import a...
Skipped auto connecting tests if no serial ports are available
py
diff --git a/examples/ale.py b/examples/ale.py index <HASH>..<HASH> 100644 --- a/examples/ale.py +++ b/examples/ale.py @@ -117,13 +117,10 @@ def main(): logger.info("Episode reward: {}".format(r.episode_rewards[-1])) logger.info("Average of last 500 rewards: {}".format(sum(r.episode_rewards[-5...
Backing out stuff that leaked in from another branch.
py
diff --git a/sdk/search/azure-search-documents/azure/search/documents/_index/aio/_search_index_client_async.py b/sdk/search/azure-search-documents/azure/search/documents/_index/aio/_search_index_client_async.py index <HASH>..<HASH> 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_index/aio/_search...
Azure-Search-Documents Docs.MS Mandated Cleanup (#<I>) * admonition directives MUST have a trailing whitespace line.
py
diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py index <HASH>..<HASH> 100755 --- a/buildbot/slave/commands.py +++ b/buildbot/slave/commands.py @@ -2098,9 +2098,14 @@ class Git(SourceBase): return False return True - def _didSubmodules(self, res): - command = ['submo...
Further git submodule support. Using a more backwards-compatible sequence as well as a submodule clean, we can ensure more consistent builds with a wider variety of versions of git.
py
diff --git a/katcp/resource_client.py b/katcp/resource_client.py index <HASH>..<HASH> 100644 --- a/katcp/resource_client.py +++ b/katcp/resource_client.py @@ -28,7 +28,7 @@ from katcp.core import (AsyncCallbackEvent, AsyncEvent, AsyncState, AttrDict, # TODO NM 2017-04-13 Importing IOLoopThreadwrapper here for backward...
Reverted back to commit # <I>c<I>, as removing `IOLoopThreadWrapper` import broke functionality. See usage: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ setup( 'psutil', 'pyyaml', 'requests', + 'terminaltables', 'ttlser', 'werkzeug', # for IterIO which can probably just be copied one off ],
setup.py added terminaltables dep for clifun, break into own package like htmlfn
py
diff --git a/conu/apidefs/container.py b/conu/apidefs/container.py index <HASH>..<HASH> 100644 --- a/conu/apidefs/container.py +++ b/conu/apidefs/container.py @@ -20,9 +20,12 @@ Abstract class definitions for containers. from __future__ import print_function, unicode_literals from conu.apidefs.image import Image +f...
Add http_client context property for containers
py
diff --git a/stix2validator/v21/enums.py b/stix2validator/v21/enums.py index <HASH>..<HASH> 100644 --- a/stix2validator/v21/enums.py +++ b/stix2validator/v21/enums.py @@ -188,13 +188,6 @@ MALWARE_CAPABILITIES_OV = [ "steals-authentication-credentials", "violates-system-operational-integrity", ] -OPINION_ENUM...
delete opinion enum. enforced via json-schema
py
diff --git a/src/dynamic_fixtures/management/commands/load_dynamic_fixtures.py b/src/dynamic_fixtures/management/commands/load_dynamic_fixtures.py index <HASH>..<HASH> 100644 --- a/src/dynamic_fixtures/management/commands/load_dynamic_fixtures.py +++ b/src/dynamic_fixtures/management/commands/load_dynamic_fixtures.py @...
Fix Command compatibility with Django>= <I>
py
diff --git a/torchtext/datasets/amazonreviewpolarity.py b/torchtext/datasets/amazonreviewpolarity.py index <HASH>..<HASH> 100644 --- a/torchtext/datasets/amazonreviewpolarity.py +++ b/torchtext/datasets/amazonreviewpolarity.py @@ -4,7 +4,6 @@ from typing import Union, Tuple from torchtext._internal.module_utils import...
Remove _add_docstring_header decorator from amazon review polarity (#<I>)
py
diff --git a/timeline_logger/management/commands/report_mailing.py b/timeline_logger/management/commands/report_mailing.py index <HASH>..<HASH> 100644 --- a/timeline_logger/management/commands/report_mailing.py +++ b/timeline_logger/management/commands/report_mailing.py @@ -19,6 +19,7 @@ logger = logging.getLogger('tim...
Added get_context() hook and template_name property
py
diff --git a/pytds/__init__.py b/pytds/__init__.py index <HASH>..<HASH> 100644 --- a/pytds/__init__.py +++ b/pytds/__init__.py @@ -1,7 +1,7 @@ """DB-SIG compliant module for communicating with MS SQL servers""" __author__ = 'Mikhail Denisenko <denisenkom@gmail.com>' -__version__ = '1.8.0' +__version__ = '1.8.1' ...
Bumped version to <I>
py
diff --git a/salt/modules/inspectlib/query.py b/salt/modules/inspectlib/query.py index <HASH>..<HASH> 100644 --- a/salt/modules/inspectlib/query.py +++ b/salt/modules/inspectlib/query.py @@ -65,11 +65,8 @@ class SysInfo(object): Get available file systems and their types. ''' - out = __salt__...
Bugfix: Use new blkid parser, compatible with different platforms.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( read('README.rst'), read('CHANGES.rst'))), classifiers=[ - 'Development Status :: 3 - Alpha', + 'Development Status :: 4 - Beta', 'Environment :: Web Environm...
Mark package as beta, not alpha in trove classifiers
py
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py index <HASH>..<HASH> 100644 --- a/kafka/consumer/fetcher.py +++ b/kafka/consumer/fetcher.py @@ -698,7 +698,7 @@ class Fetcher(six.Iterator): return res def has_more(self): - return self.message_idx < len(self.messages)...
Bugfix on max_poll_records - TypeError: object of type NoneType has no len()
py
diff --git a/pysc2/env/sc2_env.py b/pysc2/env/sc2_env.py index <HASH>..<HASH> 100644 --- a/pysc2/env/sc2_env.py +++ b/pysc2/env/sc2_env.py @@ -552,7 +552,8 @@ class SC2Env(environment.Base): for c, f in zip(self._controllers, self._features))) game_loop = self._agent_obs[0].game_loop[0] - if game_l...
It is possible that we don't receive the requested game loop - when the game ends. PiperOrigin-RevId: <I>
py
diff --git a/txaws/testing/ec2.py b/txaws/testing/ec2.py index <HASH>..<HASH> 100644 --- a/txaws/testing/ec2.py +++ b/txaws/testing/ec2.py @@ -37,10 +37,10 @@ class FakeEC2Client(object): self.keypairs_deleted.append(name) return succeed(True) - def describe_volumes(self): + def describe_volum...
Fix signature of the test methods [trivial]
py
diff --git a/lib/numina/user.py b/lib/numina/user.py index <HASH>..<HASH> 100644 --- a/lib/numina/user.py +++ b/lib/numina/user.py @@ -145,6 +145,9 @@ def mode_run(args, logger, options): recipe = recipeClass(parameters, runinfo) + os.chdir(datadir) + recip...
setup is called to initialize the data
py
diff --git a/megaman/geometry/tests/test_geometry.py b/megaman/geometry/tests/test_geometry.py index <HASH>..<HASH> 100644 --- a/megaman/geometry/tests/test_geometry.py +++ b/megaman/geometry/tests/test_geometry.py @@ -45,6 +45,7 @@ def test_compute_adjacency_matrix_args(almost_equal_decimals=5): ...
PEP8 change to trigger new Travis build
py
diff --git a/django_base64field/tests.py b/django_base64field/tests.py index <HASH>..<HASH> 100644 --- a/django_base64field/tests.py +++ b/django_base64field/tests.py @@ -69,7 +69,7 @@ class TestBase64Field(TestCase): same_planet_but_fresh = Planet.objects.get(pk=planet.pk) self.assertEqual(same_pla...
self.assertNotEquals is deprecated
py
diff --git a/splunklib/modularinput/validation_definition.py b/splunklib/modularinput/validation_definition.py index <HASH>..<HASH> 100755 --- a/splunklib/modularinput/validation_definition.py +++ b/splunklib/modularinput/validation_definition.py @@ -20,6 +20,7 @@ except ImportError as ie: from utils import parse_xm...
PEP 8 change: two lines between imports and start of class definition
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,12 @@ def readme(): return f.read() # Run the manual f2py build script -try: - from numpy.distutils import fcompiler - compiler = fcompiler.get_default_fcompiler() - import build_fortran_extensio...
Temporarily remove the call to build script from setup.py. I do not understand why RTD keeps trying to run the build script.
py
diff --git a/pymacaron_core/swagger/spec.py b/pymacaron_core/swagger/spec.py index <HASH>..<HASH> 100644 --- a/pymacaron_core/swagger/spec.py +++ b/pymacaron_core/swagger/spec.py @@ -161,14 +161,18 @@ class ApiSpec(): data = EndpointData(path, method) # Which server method handles th...
Allow operationId as a synonym to x-bind-server
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -132,7 +132,7 @@ class StormCliTestCase(unittest.TestCase): for custom_option in custom_options: self.assertIn(custom_option.encode('ascii'), out) - for general_option, value in general_options.i...
iteritems is not compatible with py3k.
py
diff --git a/svtyper/parsers.py b/svtyper/parsers.py index <HASH>..<HASH> 100644 --- a/svtyper/parsers.py +++ b/svtyper/parsers.py @@ -116,7 +116,8 @@ class Vcf(object): def sample_to_col(self, sample): return self.sample_list.index(sample) + 9 - def _init_bnd_breakpoint_func(self): + @staticmetho...
+ convert to staticmethods - i'm not really using self in the methods
py
diff --git a/rdomanager_oscplugin/v1/overcloud_image.py b/rdomanager_oscplugin/v1/overcloud_image.py index <HASH>..<HASH> 100644 --- a/rdomanager_oscplugin/v1/overcloud_image.py +++ b/rdomanager_oscplugin/v1/overcloud_image.py @@ -152,13 +152,14 @@ class BuildOvercloudImage(command.Command): "--run-rhos-re...
Utilize environment variables properly USE_DELOREAN_TRUNK and RUN_RHOS_RELEASE were not being handled properly. This ensures that when they are set to 1 in the environment, it will trigger them to True. Change-Id: I9ad<I>fe<I>df6e<I>f<I>ef<I>b9fc<I>dffba<I>
py
diff --git a/src/future/backports/misc.py b/src/future/backports/misc.py index <HASH>..<HASH> 100644 --- a/src/future/backports/misc.py +++ b/src/future/backports/misc.py @@ -922,10 +922,14 @@ _cmp_to_key = cmp_to_key # from the standard library: if sys.version_info >= (2, 7): from collections import OrderedDict...
Ignore ImportError with `subprocess.check_output` for GAE compatibility (issue #<I>)
py
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index <HASH>..<HASH> 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -96,7 +96,7 @@ def list_upgrades(refresh=True): list_updates = salt.utils.alias_function(list_upgrades, 'list_updates') -def info_installed(*names): +def info_instal...
Incorporate lowpkg.info into info_installed
py
diff --git a/autotweet/database.py b/autotweet/database.py index <HASH>..<HASH> 100644 --- a/autotweet/database.py +++ b/autotweet/database.py @@ -52,6 +52,8 @@ def add_document(session, question, answer): def _add_doc(session, question, answer): + question = question.strip() + answer = answer.strip() i...
strip strings before insert to DB.
py
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py index <HASH>..<HASH> 100644 --- a/holoviews/core/spaces.py +++ b/holoviews/core/spaces.py @@ -669,6 +669,7 @@ class DynamicMap(HoloMap): This method allows any of the available stream parameters (renamed as appropriate) to be updated in ...
DynamicMap.event now returns immediately if there are no streams
py
diff --git a/sand/matrix.py b/sand/matrix.py index <HASH>..<HASH> 100644 --- a/sand/matrix.py +++ b/sand/matrix.py @@ -49,7 +49,6 @@ def _to_json(g, title, scale, date): def write_site(g, title, output_root_dir, scale=400): - # site_name = str(uuid.uuid4()) site_name = "{}_{}".format(io.legalize(title), t....
Reference templates from path relative to source file
py
diff --git a/numina/core/recipes.py b/numina/core/recipes.py index <HASH>..<HASH> 100644 --- a/numina/core/recipes.py +++ b/numina/core/recipes.py @@ -73,6 +73,14 @@ class _BaseRecipeMethods(object): if 'runinfo' in kwds: self.runinfo = kwds['runinfo'] + + @classmethod + def create_require...
Add new method create_requirements to Recipe
py