message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add note to MultiIndex.is_monotonic* `MultiIndex.is_monotonic_increasing` and `MultiIndex.is_monotonic_decreasing` won't work in Koalas < 1.7.0 with PySpark 3.1.1 without disabling the `spark.sql.optimizer.nestedSchemaPruning.enabled`. We should mention this to the docs.
@@ -767,6 +767,9 @@ class IndexOpsMixin(object, metaclass=ABCMeta): which is potentially expensive. In case of multi-index, all data are transferred to single node which can easily cause out-of-memory error currently. + .. note:: Disable the Spark config `spark.sql.optimizer.nestedSchemaPruning.enabled` + for multi-ind...
doc/delay: fix warning. Add space between a note admonition and the preceding paragraph.
@@ -121,6 +121,7 @@ class DelayInstrument(Instrument): Temperature (in device-specific units) the device must cool down to just before the actual workload execution (after setup has been performed). + .. note:: This cannot be specified at the same time as ``fixed_between_jobs`` """),
Try to lowercase virtualenv locations Fixes
@@ -201,6 +201,11 @@ class Project(object): return False + def _get_virtualenv_location(cls, name): + """Get the path to a virtualenv from its name""" + venv = delegator.run('{0} -m pipenv.pew dir "{1}"'.format(escape_grouped_arguments(sys.executable), name)).out + return venv.strip() + @property def virtualenv_name(se...
Update .travis.yml Added test coverage analysis
language: python +env: + global: + - CC_TEST_REPORTER_ID=[6304c25454062b12a30c7471d682dc2a7e67a7e8830b625b278222a752d09db7] +before_script: + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter + - ./cc-test-reporter before-buil...
Make more comfortable get_page_id behaviour If get_pade_id exec with wrong id parameter, don't raise 'AttributeError: 'NoneType' object has no attribute 'get''
@@ -58,7 +58,7 @@ class Confluence(AtlassianRestAPI): :param title: title :return: """ - return self.get_page_by_title(space, title).get('id') + return (self.get_page_by_title(space, title) or {}).get('id') def get_page_space(self, page_id): """
(Failing) test for icalendar.new_event() Discovered by following warnings about mismatched types
+import datetime as dt import random import textwrap import icalendar +from freezegun import freeze_time -from khal.icalendar import split_ics +from khal.icalendar import new_vevent, split_ics -from .utils import LOCALE_BERLIN, _get_text, normalize_component +from .utils import LOCALE_BERLIN, _get_text, _replace_uid, n...
added fuel use, energy produced to null_generator_results test_custom_rates now passing
@@ -956,6 +956,9 @@ function add_null_generator_results(m, p, r::Dict) r["GENERATORtoBatt"] = [] r["GENERATORtoGrid"] = [] r["GENERATORtoLoad"] = [] + r["fuel_used_gal"] = 0 + r["year_one_gen_energy_produced"] = 0.0 + r["average_yearly_gen_energy_produced"] = 0.0 nothing end
Fix test_WbMonolingualText_invalid_text Apparently the error message has changed, update it.
@@ -168,8 +168,7 @@ class TestWikibaseSaveTest(WikibaseTestCase): language='en') self.assertRaisesRegex( OtherPageSaveError, - r'Edit to page \[\[(wikidata:test:)?Q68]] failed:\n' - r'invalid-snak: Invalid snak data.', + r'Edit to page \[\[(wikidata:test:)?Q68]] failed:', item.addClaim, claim) def test_math_invalid_fun...
DOC: correct kind for numericaltype code doc Code documentation of numpy scalar types indicated the wrong type (number) for the kind 'i'. This edit moves the indication to the right type (unsignedinteger).
generic +-> bool_ (kind=b) - +-> number (kind=i) + +-> number | integer - | signedinteger (intxx) + | signedinteger (intxx) (kind=i) | byte | short | intc
tests: rework lntransport test a bit send multiple messages, and not only short ones
@@ -4,6 +4,8 @@ from electrum.ecc import ECPrivkey from electrum.lnutil import LNPeerAddr from electrum.lntransport import LNResponderTransport, LNTransport +from aiorpcx import TaskGroup + from . import ElectrumTestCase from .test_bitcoin import needs_test_with_all_chacha20_implementations @@ -46,27 +48,53 @@ class Te...
clean-venv-cache: Directly import functions from 'hash_reqs.py'. Instead of running the 'hash_reqs.py' as a script, directly import functions from it to calculate the hash. This will speed up the script.
#!/usr/bin/env python3 import argparse -import datetime import os -import subprocess import sys -import time if False: from typing import Set, Text ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(ZULIP_PATH) +from scripts.lib.hash_reqs import expand_reqs, hash_deps from scripts....
Update code for pycryptodome backwards incompatibility from the 3.0 Jun 2014 release:
@@ -43,7 +43,7 @@ def b64_aes_encrypt(message): """ key = settings.SECRET_KEY if isinstance(settings.SECRET_KEY, bytes) else settings.SECRET_KEY.encode('ascii') secret = pad(key, AES_BLOCK_SIZE)[:AES_KEY_MAX_LEN] - aes = AES.new(secret) + aes = AES.new(secret, AES.MODE_ECB) message_bytes = message if isinstance(message...
enter_summary_scope decorator * enter_summary_scope decorator It can be used to make all the summary within method of a class run in a new summary scope. * Address review comments
@@ -337,3 +337,29 @@ class push_summary_writer(object): def __exit__(self, type, value, traceback): _summary_writer_stack.pop() + + +def enter_summary_scope(method): + """A decorator to run the wrapped method in a new summary scope. + + The class the method belongs to must have attribute '_name' and it + will be used a...
output_processors/postgres: Fix incorrect parameter When verifying the database schema the connection instead of a cursor should be passed.
@@ -521,7 +521,7 @@ class PostgresqlResultProcessor(OutputProcessor): self.conn.reset() def verify_schema_versions(self): - local_schema_version, db_schema_version = get_schema_versions(self.cursor) + local_schema_version, db_schema_version = get_schema_versions(self.conn) if local_schema_version != db_schema_version: ...
Add some options to skip certain normalization steps in the RL workflow Summary: Make box cox and quantiles optional in the normalization flow.
@@ -42,6 +42,8 @@ def identify_parameter( max_unique_enum_values=DEFAULT_MAX_UNIQUE_ENUM, quantile_size=DEFAULT_MAX_QUANTILE_SIZE, quantile_k2_threshold=DEFAULT_QUANTILE_K2_THRESHOLD, + skip_box_cox=False, + skip_quantiles=False, ): feature_type = identify_types.identify_type(values, max_unique_enum_values) @@ -88,9 +9...
Fix reshape on Dense fortran arrays The algorithm here is much slower than necessary, but is at least correct, unlike the old version. I should revisit it and get it properly up to speed.
@@ -50,6 +50,12 @@ cpdef CSR reshape_csr(CSR matrix, idxint n_rows_out, idxint n_cols_out): return out +# We have to use a signed integer type because the standard library doesn't +# provide overloads for unsigned types. +cdef inline idxint _reshape_dense_reindex(idxint idx, idxint size): + cdef div_t res = div(idx, si...
[ceph_cmd_json_parsing] Fix commands in the docstring The commands associated with the parser name were incorrect.
@@ -3,7 +3,7 @@ Ceph status commands ==================== This module provides processing for the output of the following ceph related -commands with `-f json-pretty` parameter. +commands with ``-f json-pretty`` parameter. CephOsdDump - command ``ceph osd dump -f json-pretty`` ------------------------------------------...
Discuss the special case where metadata is marked obselete and deleted Also document the assumption that the metadata store is the latest and exists in _update_metadata()
@@ -1081,16 +1081,19 @@ class Updater(object): # do we blindly trust the downloaded root metadata here? self._update_root_metadata(root_metadata) - # Ensure the role and key information of the top-level roles is updated. - # We do this whether or not root needed to be updated, in order to ensure - # that, e.g., the ent...
code comments incorrectness Closes-Bug:
@@ -118,8 +118,8 @@ def get_datastore(session, cluster, datastore_regex=None, "get_object_property", cluster, "datastore") - # If there are no hosts in the cluster then an empty string is - # returned + # If there are no datastores in the cluster then an exception is + # raised if not datastore_ret: raise exception.Dat...
tests: run dev_setup and lvm_setup on secondary cluster for rgw_multisite Otherwise, the deployment of the second cluster fails.
@@ -172,7 +172,8 @@ commands= bash -c "cd {changedir}/secondary && vagrant up --no-provision {posargs:--provider=virtualbox}" bash -c "cd {changedir}/secondary && bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}/secondary" ansible-playbook --ssh-extra-args='-F {changedir}/secondary/vagrant_ssh_config' ...
Update enumerate-pe-sections.yml Resolving comment
@@ -5,7 +5,7 @@ rule: author: "@Ana06" scope: function mbc: - - Data::Code::Enumerate PE Sections [C0062.001] + - Discovery::Code Discovery::Enumerate PE Sections [B0046.001] references: - https://0x00sec.org/t/reflective-dll-injection/3080 - https://www.ired.team/offensive-security/code-injection-process-injection/ref...
Update to preserve expected sid output This allows the use in conjunction with load_problems.py
# instance. If using a custom APP_SETTINGS_FILE, ensure the appropriate # environment variable is set prior to running this script. This script is best # run from the pico-web role (ansible/roles/pico-web/tasks/main.yml) +# +# Script outputs the `sid` of the shell server to use in a call to load_problems.py import sys ...
fix nonlinear expressions in reopt.jl moved division of variables to after value.() is called to prevent julia throwing a nonlinear epxression error for our MILP formulation
@@ -1212,14 +1212,13 @@ function add_chp_results(m, p, r::Dict) ##Hot thermal energy storage results go here; need to populate expressions for first collection if !isempty(p.HotTES) - @expression(REopt, HotTESSizeMMBTU, sum(dvStorageCapEnergy[b] for b in HotTES)) + @expression(REopt, HotTESSizeMMBTU, sum(dvStorageCapEn...
Update cloud.rst rtd -> docs.studio.ml
@@ -4,8 +4,8 @@ Cloud computing Studio can be configured to submit jobs to the cloud. Right now, only Google Cloud is supported (CPU only), as well as Amazon EC2 (CPU and GPU). Specifically, once configured (see -`here <http://studioml.readthedocs.io/en/latest/gcloud_setup.html>`__ for configuration instructions for Go...
Clarify note in Zoom docs The existing note isn't clear to me, updated slightly
@@ -41,7 +41,7 @@ Zoom Setup Guide .. important:: To generate an **API Key** and **API Secret** requires a `Pro, Business, Education, or API Zoom plan <https://zoom.us/pricing>`__. - Only one paid account is required to generate an **API Key** and **API Secret**. The free Zoom plan can be used for other user accounts. ...
Correct small typo `te` -> `the`
@@ -6,7 +6,7 @@ This example demonstrates explicit setting of heartbeat and blocked connection t Starting with RabbitMQ 3.5.5, the broker's default hearbeat timeout decreased from 580 seconds to 60 seconds. As a result, applications that perform lengthy processing in the same thread that also runs their Pika connection...
Change the error type to match sklearn. Change the error type when trying to predict before fitting SVM to match sklearn. Fixes Authors: - Artem M. Chirkin (https://github.com/achirkin) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL:
@@ -326,9 +326,9 @@ class SVMBase(Base, @cuml.internals.api_base_return_array_skipall def coef_(self): if self._c_kernel != LINEAR: - raise RuntimeError("coef_ is only available for linear kernels") + raise AttributeError("coef_ is only available for linear kernels") if self._model is None: - raise RuntimeError("Call f...
Update bulkresizer.py file Implement valid_path function in bulkresizer.py file With this function bulkresizer will check if the given path form the user leads to a directory
@@ -6,6 +6,9 @@ from plugin import plugin from colorama import Fore +def valid_path(path): + return True if os.path.isdir(path) else False + def bulk_resizer(input_path, output_path, desired_size=32, color=[0, 0, 0], rename=True): img_no = 0
Leave in opt_in on instance config until the branch cut Summary: To prevent unneeded dagster.yaml breakage Test Plan: BK, load dagit Reviewers: alangenfeld
@@ -55,4 +55,5 @@ def dagster_instance_config_schema(): "run_coordinator": config_field_for_configurable_class(), "run_launcher": config_field_for_configurable_class(), "telemetry": Field({"enabled": Field(Bool, is_required=False)}), + "opt_in": Field({"local_servers": Field(Bool, is_required=False)}), }
Only log warning when more than 10 seconds. Pre-validation can take a while since it's validating many blocks at once, including clvm and VDFs.
@@ -909,7 +909,7 @@ class FullNode: List[PreValidationResult] ] = await self.blockchain.pre_validate_blocks_multiprocessing(blocks_to_validate, {}, wp_summaries=wp_summaries) pre_validate_end = time.time() - if pre_validate_end - pre_validate_start > 1: + if pre_validate_end - pre_validate_start > 10: self.log.warning(...
Drop unused function & attribute Made unused in I meant to drop it then, but forgot
@@ -81,7 +81,6 @@ class ResourceManager(object): def __init__(self, sm=None): self.sm = sm or get_storage_manager() - self.task_mapping = _create_task_mapping() def list_executions(self, include=None, is_include_system_workflows=False, filters=None, pagination=None, sort=None, @@ -2664,19 +2663,6 @@ def get_resource_ma...
Support parameters in PowerShell Update the PowerShell alias so it passes thefuck parameters (e.g. `-y` or `-r`).
@@ -6,7 +6,7 @@ class Powershell(Generic): return 'function ' + alias_name + ' {\n' \ ' $history = (Get-History -Count 1).CommandLine;\n' \ ' if (-not [string]::IsNullOrWhiteSpace($history)) {\n' \ - ' $fuck = $(thefuck $history);\n' \ + ' $fuck = $(thefuck $args $history);\n' \ ' if (-not [string]::IsNullOrWhiteSpace(...
Update fonduer deps With the latest release of matplotlib 3.0.0, we need to add some new system dependencies.
@@ -15,11 +15,12 @@ For OS X using homebrew_:: $ brew install poppler $ brew install postgresql + $ brew install libpng freetype pkg-config On Debian-based distros:: $ sudo apt update - $ sudo apt install libxml2-dev libxslt-dev python3-dev + $ sudo apt install libxml2-dev libxslt-dev python3-dev build-dep python-matpl...
Fix don't work with senlin actions We can't do run senlin actions because have an error when init client senlin. We need an other way to init client to run client with cron trigger and manual. Closes-Bug:
@@ -18,6 +18,7 @@ from oslo_config import cfg from oslo_log import log from oslo_utils import importutils +from keystoneauth1.identity import v3 as ks_identity_v3 from keystoneauth1 import session as ks_session from keystoneauth1.token_endpoint import Token from keystoneclient import httpclient @@ -846,9 +847,30 @@ cla...
Catch and log unhandled consensus driver exception Log any unhandled exceptions from the python consensus sdk driver.
@@ -67,6 +67,7 @@ class ZmqDriver(Driver): driver_thread.join() def _driver_loop(self): + try: while True: if self._exit: self._engine.stop() @@ -80,6 +81,8 @@ class ZmqDriver(Driver): result = self._process(message) self._updates.put(result) + except Exception: # pylint: disable=broad-except + LOGGER.exception("Uncaug...
Updated ramdisk API docstrings Added information about raised exceptions and conditions under which they are raised.
@@ -93,7 +93,10 @@ class LookupController(rest.RestController): :param node_uuid: UUID of a node. :raises: NotFound if requested API version does not allow this endpoint. - :raises: NotFound if suitable node was not found. + :raises: NotFound if suitable node was not found or node's provision + state is not allowed for...
Update Sphinx dependency version and check RTD performance Pinned Sphinx version to more recent version (==4.2.0), thanks to Joshua Newton's keen observations.
@@ -39,7 +39,7 @@ setup( extras_require={ 'docs': [ # pin sphinx to match what RTD uses: # https://github.com/readthedocs/readthedocs.org/blob/ecac31de54bbb2c100f933e86eb22b0f4389ba84/requirements/pip.txt#L16 - 'sphinx<2', + 'sphinx==4.2.0', 'sphinx-rtd-theme<0.5', ], 'dev': ["pre-commit>=2.10.0"]
Update isolated_labels.py fix iso label silhouette
import pandas as pd from sklearn.metrics import f1_score +from sklearn.metrics import silhouette_samples from .clustering import cluster_optimal_resolution from .silhouette import silhouette @@ -227,7 +228,9 @@ def score_isolated_label( else: # AWS score between isolated label vs rest adata.obs[iso_label_key] = adata.o...
Caps the length of the circuit string in dataset-loading functions. When there are really big circuits it's annoying to have warnings printed that are super long, so this truncates what is printed to 40 characters (adding an ellipsis when needed).
@@ -365,10 +365,14 @@ class StdInputParser(object): self._fillDataCountDict(countDict, fillInfo, valueList) if all([(abs(v) < 1e-9) for v in list(countDict.values())]): if ignoreZeroCountLines: - if not bBad: warnings.append("Dataline for circuit '%s' has zero counts and will be ignored" % circuitStr) + if not bBad: + ...
[AIR] Fix Categorizer.__repr__ attribute error __repr__ fails because stats_ attribute is not assigned until _fit is called.
@@ -168,7 +168,8 @@ class Categorizer(Preprocessor): return df def __repr__(self): - return f"<Categorizer columns={self.columns} stats={self.stats_}>" + stats = getattr(self, "stats_", None) + return f"<Categorizer columns={self.columns} stats={stats}>" def _get_unique_value_indices(
Update astar.py * Update astar.py Improved comments added punctuations. * Update astar.py * Update machine_learning/astar.py * Update astar.py
""" -The A* algorithm combines features of uniform-cost search and pure -heuristic search to efficiently compute optimal solutions. -A* algorithm is a best-first search algorithm in which the cost -associated with a node is f(n) = g(n) + h(n), -where g(n) is the cost of the path from the initial state to node n and -h(...
Event for lures Added lure support
@@ -18,6 +18,7 @@ import urllib2 from geopy.geocoders import GoogleV3 from pgoapi import PGoApi +from pgoapi import RpcApi from pgoapi.utilities import f2i, get_cell_ids from s2sphere import Cell, CellId, LatLng @@ -431,6 +432,10 @@ class PokemonGoBot(object): ) self.event_manager.register_event('no_pokeballs') self.ev...
[cleanup] Avoid deeply nested control flow in imagerecat.py Problem reported by codeclimate.com
@@ -80,8 +80,9 @@ def categorizeImages(generator, onlyFilter, onlyUncat): """ for page in generator: - if page.exists() and (page.namespace() == 6) and \ - (not page.isRedirectPage()): + if not page.exists() or page.namespace() != 6 or page.isRedirectPage(): + continue + imagepage = pywikibot.FilePage(page.site, page.t...
Fix FastRL Summary: Fast RL model manager names need to be updated after our refactor
@@ -97,9 +97,10 @@ class DenseNormalization: for k in self.keys: value, presence = data[k] - data[k] = self._preprocessor( - value.to(self.device), presence.to(self.device) - ) + value, presence = value.to(self.device), presence.to(self.device) + presence[torch.isnan(value)] = 0 + value[torch.isnan(value)] = 0 + data[k...
Update edit.py Tweak user.paste
@@ -4,7 +4,7 @@ ctx = Context() mod = Module() -def get_selected_text(default=None): +def get_selected_text(): try: with clip.capture() as s: actions.edit.copy() @@ -24,6 +24,9 @@ class edit_actions: class Actions: def paste(text: str): """Pastes text and preserves clipboard""" + with clip.revert(): clip.set(text) + # ...
Update Makefile Summary: After need to install Airflow manually or clean installs won't work Test Plan: caught in buildkite image builds Reviewers: #ft, prha
@@ -22,7 +22,10 @@ install_dev_python_modules: # On machines with less memory, pyspark install will fail... see: # https://stackoverflow.com/a/31526029/11295366 - pip --no-cache-dir install pyspark==2.4.0 $(QUIET) + pip --no-cache-dir install pyspark==2.4.4 $(QUIET) + +# Need to manually install Airflow because we no l...
Update CONTRIBUTING.md punctuation
@@ -197,7 +197,7 @@ Finally, if your contribution is accepted, the Rasa team member will merge it to #### 9. Share your contributions with the world! -Contributing to open source can take a lot of time and effort so you should be proud of the great work you have done! +Contributing to open source can take a lot of time...
Update phishtank.py blakf formatted
@@ -15,7 +15,8 @@ class PhishTank(Feed): default_values = { "frequency": timedelta(hours=4), "name": "PhishTank", - "source": "http://data.phishtank.com/data/%s/online-valid.csv" % yeti_config.get("phishtank", "key"), + "source": "http://data.phishtank.com/data/%s/online-valid.csv" + % yeti_config.get("phishtank", "key...
Removing unnecessary lines in HybridAlluvium component These float conversions are superseded by code just below this block that tests for different possible input types (e.g. field name as a string).
@@ -225,14 +225,10 @@ class HybridAlluvium(Component): #store other constants self.m_sp = float(m_sp) self.n_sp = float(n_sp) - self.K_sed = float(K_sed) - self.K_br = float(K_br) self.F_f = float(F_f) self.phi = float(phi) self.H_star = float(H_star) self.v_s = float(v_s) - self.sp_crit_sed = float(sp_crit_sed) - self...
Remove duplicate `Transport for India` is already included in the `Open Government, India` link in the Government section
@@ -1444,7 +1444,6 @@ API | Description | Auth | HTTPS | CORS | | [Transport for Grenoble, France](https://www.metromobilite.fr/pages/opendata/OpenDataApi.html) | Grenoble public transport | No | No | No | | [Transport for Hessen, Germany](https://opendata.rmv.de/site/start.html) | RMV API (Public Transport in Hessen) ...
Update CovidDatasets.py Fail anytime a file is missing
@@ -303,6 +303,11 @@ class JHUDataset(Dataset): _logger.info('Received a 404 for date {}. Ending iteration.'.format(snapshot_date)) break raise + except FileNotFoundError: + # assuming we're pointing to a locally cached repository + _logger.info('File not found for date {}. Ending iteration.'.format(snapshot_date)) + b...
Fixed bug of Masked Arrays and bootstrapping code This bug was causing a fatal error when bootstrapping. Changed numpy.ma.append to numpy.append because the append was done on a non-masked Array and the masked array is created lated with the fill value.
@@ -455,7 +455,7 @@ def get_resampled_arrs(dt_arr, values_arr, year_to_eliminate, year_to_duplicate) # we add slices to duplicate in the end dt_arr_result = numpy.append(dt_arr_subsetted, dt_arr_year_to_duplicate) - values_arr_result = numpy.ma.append(values_arr_subsetted, values_arr_year_to_duplicate, axis=0) + values...
Github Actions CD Github Actions readiness for CD
@@ -3,7 +3,6 @@ on: release: types: [created] - jobs: release: runs-on: ubuntu-latest @@ -38,11 +37,13 @@ jobs: - name: Build run: | - python setup.py sdist bdist_wheel - pip install dist/terraform_compliance-${{ steps.strip-tag.outputs.tag }}-*.whl + python setup.py sdist bdist_wheel && \ + ls -al dist/* && \ + pip in...
Re-apply patch to application.py It did not make it in the merge. Original commit says: Do not initialize gi in gaphor main We want to do as long as possible without requiring toolkit logic.
@@ -13,8 +13,6 @@ import logging import inspect import importlib_metadata -from gi.repository import Gio, Gtk - from gaphor.event import ServiceInitializedEvent, ServiceShutdownEvent from gaphor.abc import Service @@ -106,6 +104,12 @@ class _Application: The file_manager service is used here to load a Gaphor model if o...
Populate rename text [#OSF-7151]
@@ -1701,12 +1701,14 @@ var FGInput = { var placeholder = args.placeholder || ''; var id = args.id || ''; var helpTextId = args.helpTextId || ''; + var oninput = args.oninput || noop; var onkeypress = args.onkeypress || noop; var value = args.value ? '[value="' + args.value + '"]' : ''; return m('span', [ m('input' + v...
[modules/pacman] Update url filtering Arch mirrors can also have rsync protocol
@@ -27,7 +27,7 @@ def get_pacman_info(widget, path): count = len(repos)*[0] for line in result.splitlines(): - if line.startswith("http"): + if line.startswith(("http", "rsync")): for i in range(len(repos)-1): if "/" + repos[i] + "/" in line: count[i] += 1
[stream-refactor] mark py24 as allow-fail This needs a day or two's worth of soaking to fix all the remaining nits
@@ -29,6 +29,11 @@ script: # newest->oldest in various configuartions. matrix: + allow_failures: + # Python 2.4 tests are still unreliable + - language: c + env: MODE=mitogen_py24 DISTRO=centos5 + include: # Mitogen tests. # 2.4 -> 2.4
Render node : Protect `hash()` and `execute()` methods These have been protected on the base class for some time - TaskPlug is responsible for providing the public interface.
@@ -81,9 +81,6 @@ class GAFFERSCENE_API Render : public GafferDispatch::TaskNode ScenePlug *outPlug(); const ScenePlug *outPlug() const; - IECore::MurmurHash hash( const Gaffer::Context *context ) const override; - void execute() const override; - protected : // Constructor for derived classes which wish to hardcode th...
Remove redundant method parameter. ``ignore_cert_errors`` is passed to ``Chrome`` via ``Browser`` via ``BrowserPool` here: it is not doing anything in ``Browser.browser_page``.
@@ -376,7 +376,7 @@ class Browser: return self.websock_url is not None def browse_page( - self, page_url, ignore_cert_errors=False, extra_headers=None, + self, page_url, extra_headers=None, user_agent=None, behavior_parameters=None, on_request=None, on_response=None, on_screenshot=None, username=None, password=None, ha...
Fixed a few problems with pathlib2 stub It was using a type alias with a forward definition and a bunch of unused imports.
import os -import sys -from _typeshed import OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, OpenBinaryModeWriting, OpenTextMode -from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper from types import TracebackType -from typing import IO, Any, BinaryIO, Generator, List, Op...
Update custom-server.rst Relax the item about public IP address? Currently the install does **not** report "Done!"
@@ -36,14 +36,15 @@ Step 1: Installing The Littlest JupyterHub .. code-block:: bash export http_proxy=<your_proxy> - export https_proxy=<your_proxy> -#. Some requests will fail if your certs are self-signed: +#. Some requests will fail if your certs are self-signed. Copy the text below and paste it + into the terminal ...
update VariableTimeStepper for current AdaptiveTimeSteppingSolver allow setting current step in .set_step() update .advance(), .iter_from_current() new .iter_from()
@@ -164,14 +164,16 @@ class VariableTimeStepper(TimeStepper): if step is None: step = 0 - if step > 0: - raise ValueError('cannot set step > 0 in VariableTimeStepper!') + if (step > 0) and (step != self.step): + msg = 'cannot set step != self.step or 0 in VariableTimeStepper!' + raise ValueError(msg) + if step == 0: se...
Fix variable name and also use 10 for the buffer (same as it was originally)
@@ -142,9 +142,9 @@ plt.show() # Note that by default ``dense_lucaskanade`` uses a 5-pixel buffer. # with buffer -buffer = 5 +buffer = 10 fd_kwargs2 = {"buffer_mask" : buffer} -xy, uv = LK_optflow(R, dense=False, fd_kwargs=fd_kwargs2) +xy, uv = dense_lucaskanade(R, dense=False, fd_kwargs=fd_kwargs2) plt.imshow(ref_dbr,...
Add a link to the gitlab repo Using the official icon.
@@ -96,7 +96,14 @@ html_theme_options = { "external_links": [ {"name": "Source code", "url": "https://gitlab.com/pgjones/quart"}, {"name": "Issues", "url": "https://gitlab.com/pgjones/quart/issues"}, - ] + ], + "icon_links": [ + { + "name": "GitLab", + "url": "https://gitlab.com/pgjones/quart", + "icon": "fab fa-gitlab...
fix mismatched destination path variable name data_dir -> dest_dir
@@ -78,7 +78,7 @@ def __extract_rar(rar_path, dest_dir): logging.info("Extraction failed.") exit(1) else: - logging.info("Skipping extracting. Data already there {0}.".format(data_dir)) + logging.info("Skipping extracting. Data already there {0}.".format(dest_dir)) def __convert_waves(wavedir, converted_wavedir, wavena...
models: Move UserProfile.property_types to UserBaseSettings. Since all the display settings are defined in UserBaseSettings, we should shift the property_types dict to UserBaseSettings.
@@ -1246,6 +1246,22 @@ class UserBaseSettings(models.Model): realm_name_in_notifications: bool = models.BooleanField(default=False) presence_enabled: bool = models.BooleanField(default=True) + # Define the types of the various automatically managed properties + property_types = dict( + color_scheme=int, + default_langu...
FIX TelegramObject.__setitem__ * FIX TelegramObject.__setitem__ Removed 'raise KeyError(key)' * Add warning and log in TelegramObject.__setitem__ When Telegram adds a new field -> Aiogram will warn about this. * Removed warnings.warn * Set logger to 'aiogram' * Removed 'f' before string
from __future__ import annotations import io +import logging import typing from typing import TypeVar @@ -26,6 +27,9 @@ Float = TypeVar('Float', bound=float) Boolean = TypeVar('Boolean', bound=bool) T = TypeVar('T') +# Main aiogram logger +log = logging.getLogger('aiogram') + class MetaTelegramObject(type): """ @@ -225...
Flip default value of jax_unique_mhlo_module_names to False. This should help avoid unnecessary cache misses.
@@ -876,7 +876,7 @@ config.define_bool_state( config.define_bool_state( name='jax_unique_mhlo_module_names', - default=True, + default=False, help='Enables the generation of unique MHLO module names. This is useful ' 'to clients that expect modules to have unique names (e.g, trace data).')
Consolidating disabled styles. Fixing odd line height for smaller description text. Fixing styles when radiobuttons are inlined. Moving custom radio buttons back on top of native inputs.
<template> <!-- HTML makes clicking label apply to input by default --> - <label class="k-radio-button"> + <label :class="['k-radio-button', {disabled}]"> <!-- v-model listens for @input event by default --> <!-- @input has compatibility issues for input of type radio --> <!-- Here, manually listen for @change (no comp...
Fix test_create_ops_arg_constant Fixed identation. Added new parameter to the create_ops_arg call.
@@ -197,7 +197,7 @@ class TestOPSExpression(object): def test_create_ops_arg_constant(self): a = Constant(name='*a') - res = create_ops_arg(a, {}, {}) + res = create_ops_arg(a, {}, {}, {}) assert type(res) == namespace['ops_arg_gbl'] assert str(res.args[0]) == str(Byref(Constant(name='a')))
Update crawler.py Fixes issues with many sources when searching. e.g.: With the string slice you get: Without:
@@ -141,7 +141,7 @@ class Crawler: elif url.find('//') >= 0: return url elif url.startswith('/'): - return self.home_url + url[1:] + return self.home_url + url elif page_url: return page_url.strip('/') + '/' + url else:
Make 'tags' an error in runtests.py We've now got rid of all legacy uses of "tags". Therefore make it an error instead of a warning to avoid new uses sneaking in.
@@ -537,8 +537,7 @@ def parse_tags(filepath): if tag in ('coding', 'encoding'): continue if tag == 'tags': - tag = 'tag' - print("WARNING: test tags use the 'tag' directive, not 'tags' (%s)" % filepath) + raise RuntimeError("test tags use the 'tag' directive, not 'tags' (%s)" % filepath) if tag not in ('mode', 'tag', '...
[IMPR] Remove '.py' before matching the string Improve string matching by removing '.py' ending. See T217195 for further information. Also ignore __init__.py scripts use set to hold the script names to hold the script path (used later to let the user the choice to start it)
@@ -196,22 +196,23 @@ def main(): print('ERROR: {} not found! Misspelling?'.format(filename), file=sys.stderr) - scripts = [] + scripts = {} for file_package in script_paths: path = file_package.split('.') for script_name in os.listdir(os.path.join(*path)): - if script_name.endswith('.py'): - scripts.append(script_name...
Fix a small README error. In [google-cloud-python](https://github.com/googleapis/google-cloud-python), we do not use the `google-cloud-` prefix in the directory for each individual API.
@@ -27,7 +27,7 @@ cd google-cloud-python/ Navigate to the destination directory to generate the library. ``` -cd google-cloud-tasks/ +cd tasks/ ``` ### Running `synthtool` @@ -59,7 +59,7 @@ Find examples below in different programming languages (Cloud Tasks API used as ``` - Navigate to the destination directory to gen...
[ROCm] Remove installation of ca-certificates and apt-transport-https in test.sh Summary: These packages are now part of the base docker image. Pull Request resolved:
@@ -37,7 +37,6 @@ fi if [[ "$BUILD_ENVIRONMENT" == *rocm* ]]; then # TODO: Move this to Docker - sudo apt-get -qq install --no-install-recommends apt-transport-https ca-certificates sudo apt-get -qq update sudo apt-get -qq install --no-install-recommends libsndfile1 fi
Fix - switched from raise to six.reraise Small formatting changes
@@ -115,7 +115,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): # clean destination self.log.critical("Error when registering", exc_info=True) self.handle_destination_files(self.integrated_file_sizes, 'remove') - raise + six.reraise(*sys.exc_info()) def register(self, instance): # Required environment variable...
Kia Ceed: fix eps ECU type should be eps
@@ -845,7 +845,7 @@ FW_VERSIONS = { }, CAR.KIA_CEED: { (Ecu.fwdRadar, 0x7D0, None): [b'\xf1\000CD__ SCC F-CUP 1.00 1.02 99110-J7000 ', ], - (Ecu.esp, 0x7D4, None): [b'\xf1\000CD MDPS C 1.00 1.06 56310-XX000 4CDEC106', ], + (Ecu.eps, 0x7D4, None): [b'\xf1\000CD MDPS C 1.00 1.06 56310-XX000 4CDEC106', ], (Ecu.fwdCamera, ...
Fix non regression. blender_object is None when not needed
@@ -411,8 +411,8 @@ def extract_primitives(glTF, blender_mesh, library, blender_object, blender_vert # Skin must be ignored if the object is parented to a bone of the armature # (This creates an infinite recursive error) - # SO ignoring skin in that case - if blender_object.parent_type == "BONE" and blender_object.pare...
Transfers: don't sleep in preparer if fully loaded Otherwise the queue can grow while we don't do much work.
@@ -35,7 +35,7 @@ from rucio.daemons.conveyor.common import HeartbeatHandler from rucio.db.sqla.constants import RequestState if TYPE_CHECKING: - from typing import Optional + from typing import Optional, Tuple from sqlalchemy.orm import Session graceful_stop = threading.Event() @@ -104,8 +104,9 @@ def preparer(once, s...
Fixes Remove default serviceaccount creation (not needed, breaks on 4.4) Remove --for=pull since this was used by the default account. Made the code in-line since there was only one call now.
@@ -52,19 +52,6 @@ class TestCouchbaseWorkload(E2ETest): cb_worker = OCS() cb_examples = OCS() - def add_serviceaccount_secret(self, acct_name, dockerstr): - """ - Add secret for serviceaccount - - Args: - acct_name (str): Name of the service account - dockerstr (str): Docker secret - - """ - self.secretsadder.exec_oc_...
Work in progress on scenewidget... ... including debugging console print statements.
@@ -111,6 +111,7 @@ class SelectionWidget(Widget): def event(self, window_pos=None, space_pos=None, event_type=None): elements = self.elements + print(event_type) if event_type == "hover_start": self.cursor = wx.CURSOR_SIZING self.scene.context.gui.SetCursor(wx.Cursor(self.cursor)) @@ -123,47 +124,53 @@ class Selection...
Standalone: Do not change PATH before running depends.exe * This can cause finding the wrong DLLs for some users and is too agressive. We already add the package directory and its children for packages, that ought to be sufficient.
@@ -695,28 +695,6 @@ def _detectBinaryPathDLLsMacOS(original_dir, binary_filename): return result -def _makeBinaryPathPathDLLSearchEnv(package_name): - # Put the PYTHONPATH into the system "PATH", DLLs frequently live in - # the package directories. - env = os.environ.copy() - path = env.get("PATH","").split(os.pathsep...
Fix issue when remote-deps generated twice If `make remote-deps` is run twice in a row without running `make clean`, `/node/config/config/...` is created, possibly preventing some changes from being applied.
@@ -150,6 +150,7 @@ remote-deps: mod-download # Recreate the directory so that we are sure to clean up any old files. rm -rf filesystem/etc/calico/confd mkdir -p filesystem/etc/calico/confd + rm -rf config rm -rf bin/bpf mkdir -p bin/bpf rm -rf filesystem/usr/lib/calico/bpf/
test: Use osrelease instead of lsb_distrib_release Replace `lsb_distrib_release` by `osrelease` in the tests to avoid needing to set the lsb_* values.
@@ -622,7 +622,7 @@ class Repo: """ if ( self.grains["osfullname"] == "Ubuntu" - and self.grains["lsb_distrib_release"] == "22.04" + and self.grains["osrelease"] == "22.04" ): return True return False @@ -659,7 +659,7 @@ class Repo: ) repo_content = "deb {opts} https://repo.saltproject.io/py3/{}/{}/{arch}/latest {} mai...
Pin celery to <4.2 for now. Refs Closes
@@ -95,7 +95,7 @@ boto3==1.7.67 \ --hash=sha256:e225d9fa3f313049547bf510a54d5f0af82f70d53fe0c0f891a0a9f8d4474681 celery==4.1.1 \ --hash=sha256:6fc4678d1692af97e137b2a9f1c04efd8e7e2fb7134c5c5ad60738cdd927762f \ - --hash=sha256:d1f2a3359bdbdfb344edce98b8e891f5fe64f8a11c5a45538ec20ac237c971f5 + --hash=sha256:d1f2a3359bdbd...
img_tools.pxi: Fix incorrect rowlen for alignment Fixes the k % rowlen == 0 test
@@ -57,6 +57,7 @@ cdef inline convert_to_gl_format(data, fmt, width, height): if rowlen * height < datasize: # FIXME: warn/fail if pitch * height != datasize: pitchalign = pitch - rowlen + rowlen -= 1 # to match 0-based k below # note, this is the fastest copying method. copying element by element # from a memoryview i...
Remove mention of that this is impossible in mpl Maybe I am misunderstanding, but why does it not count that you can do it via ax.spine?
"Removing axes spines\n", "--------------------\n", "\n", - "Both the ``white`` and ``ticks`` styles can benefit from removing the top and right axes spines, which are not needed. It's impossible to do this through the matplotlib parameters, but you can call the seaborn function :func:`despine` to remove them:" + "Both...
Added some default values for configuration items which had none before mix/videocaps: video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 mix/audiocaps: audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 previews/videocaps: video/x-raw,width=1024,height=576,framerate=25/...
@@ -107,34 +107,34 @@ class VocConfigParser(SafeConfigParser): self.add_section_if_missing('audio') self.set('audio', 'volumecontrol', "true" if show else "false") - def getVideoCaps(self, section='mix'): - return self.get(section, 'videocaps') + def getVideoCaps(self): + return self.get('mix', 'videocaps', fallback="v...
fix readme formatting asdf and asdf-standard use different file types (sigh)
@@ -345,8 +345,8 @@ More information on the ASDF Standard itself can be found There are two mailing lists for ASDF: -* [asdf-users](https://groups.google.com/forum/#!forum/asdf-users) -* [asdf-developers](https://groups.google.com/forum/#!forum/asdf-developers) +* `asdf-users <https://groups.google.com/forum/#!forum/as...
scene/infile argument in snap.util.geocode Argument for the scene's path is named different in the geocode functions of snap and gamma
@@ -96,7 +96,7 @@ matching OSV type for processing. from pyroSAR.snap import geocode scene = 'S1A_IW_GRDH_1SDV_20180101T170648_20180101T170713_019964_021FFD_DA78.zip' - geocode(scene=scene, + geocode(infile=scene, outdir='outdir', allow_RES_OSV=True)
Test that endpoints can all be made into clients Test that endpoints can all be made into clients
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. +import os +import json from nose.tools import assert_equal from botocore.session import get_session @@ -32,6...
Use GuildChannel abc for CategoryChannel edit I noticed nothing happened when I did `ch.edit(overwrites=oh.overwrites)` `http.edit_channel` doesn't do anything with the `overwrites` keyword, it's processed as `permission_overwrites` instead which `self._edit` takes care of. I feel this was an oversight at some point.
@@ -791,17 +791,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable): Editing the category failed. """ - try: - position = options.pop('position') - except KeyError: - pass - else: - await self._move(position, reason=reason) - self.position = position - - if options: - data = await self._state.http.edit_chann...
Detect openSUSE and SLES + For openSUSE Leap and SLES >= 15 Python 3 is used and the distro is identified as "opensuse" and "sles" while in Python 2 both were lumped together as "suse" + Closes
@@ -69,7 +69,7 @@ def get_osutil(distro_name=DISTRO_NAME, if distro_name == "coreos" or distro_code_name == "coreos": return CoreOSUtil() - if distro_name == "suse": + if distro_name in ("suse", "sles", "opensuse"): if distro_full_name == 'SUSE Linux Enterprise Server' \ and Version(distro_version) < Version('12') \ or...
Handle case where flag is provided that isn't defined by model This is a perfectly valid case and needed to support broken model defs or simply to pass through options to the command module/script.
@@ -181,10 +181,13 @@ def _flag_cmd_arg_vals(opdef): vals = {} for name, flag_val in opdef.flag_values().items(): flagdef = opdef.get_flagdef(name) + if flagdef: if flagdef.options: _apply_option_args(flagdef, flag_val, vals) else: _apply_flag_arg(flagdef, flag_val, vals) + else: + vals[name] = flag_val return vals def...
added test changed getrecentlist to getlist
@@ -120,6 +120,11 @@ script: demisto.incidents(incidents) demisto.setLastRun({'time': now}) + def test(): + now = datetime.datetime.utcnow() + getRecentList(now) + demisto.results('ok') + def getRecentList(time): result = [] @@ -212,9 +217,9 @@ script: body = """<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope x...
fix: change subctl--linux-amd64 with subctl This commit changes subctl--linux-amd64 with subctl--linux-amd64 because is the new name for this binary.
docker save $IDS -o /tmp/submariner_images.tar # Backup the binary files - cp ~/submariner-operator/bin/subctl--linux-amd64 ~/subctl + cp ~/submariner-operator/bin/subctl ~/subctl tar -cvf /tmp/submariner_binaries.tar ~/subctl args: executable: /bin/bash
[fix] fix `getting started` link in readme The current getting started link is broken. I replaced it by the correct one. Closes
@@ -26,7 +26,7 @@ It is a Python library built on [JAX](https://github.com/google/jax). ## Installation and Usage Netket supports MacOS and Linux. We reccomend to install NetKet using `pip` -For instructions on how to install the latest stable/beta release of NetKet see the [Getting Started](https://www.netket.org/webs...
Update IronDefense.yml Reviewed and updated
@@ -21,7 +21,7 @@ configuration: name: requestTimeout required: false type: 0 -description: The IronDefense Integration for Demisto allows users to interact with +description: The IronDefense Integration allows users to interact with IronDefense alerts within Demisto. The Integration provides the ability to rate alerts...
Fix DepolarizingChannel documentation In commit the formula for `DepolarizingChannel` got changed, and I'm pretty sure it should be ` p / (4**n - 1) \sum _i P_i \rho P_i` instead, given that's what the ` AsymmetricDepolarizingChannel` does.
@@ -263,7 +263,7 @@ class DepolarizingChannel(gate_features.SupportsOnEachGate, raw_types.Gate): This channel evolves a density matrix via $$ - \rho \rightarrow (1 - p) \rho + 1 / (4**n - 1) \sum _i P_i X P_i + \rho \rightarrow (1 - p) \rho + p / (4**n - 1) \sum _i P_i \rho P_i $$ where $P_i$ are the $4^n - 1$ Pauli ga...
Fixed more pycodestyle. Fixed too broad except clause.
@@ -564,7 +564,7 @@ class LocalGeometryFinder: self.valences = [int(site.specie.oxi_state) for site in self.structure] else: self.valences = valences - except: + except AttributeError: self.valences = valences else: self.valences = valences