message
stringlengths
13
484
diff
stringlengths
38
4.63k
utils/trace_cmd: move params to __init__() Move the check_for_markers and events parameters from parser() to __init__(). These parameters control the behavior of the parser, and do not relate to a particular trace file, so it makes more sense to have them there.
@@ -235,7 +235,7 @@ class TraceCmdParser(object): """ - def __init__(self, filter_markers=True): + def __init__(self, filter_markers=True, check_for_markers=True, events=None): """ Initialize a new trace parser. @@ -245,27 +245,29 @@ class TraceCmdParser(object): markers will be reported). This maybe overriden based on...
Update nyc-tlc-trip-records-pds.yaml Update entry to reflect availability of new parquet objects / requirement for signed requests.
Name: New York City Taxi and Limousine Commission (TLC) Trip Record Data -Description: "*Note this data is currently inaccessible. We are working with the data provider to reenable access.* Data of trips taken by taxis and for-hire vehicles in New York City." -Documentation: http://www.nyc.gov/html/tlc/html/about/trip_...
Corrected years for Prii w/ good steering sensor This was already noted in PR#1198 comments by ...
@@ -3,7 +3,7 @@ Version 0.7.4 (2020-03-20) * New driving model: improved lane changes and lead car detection * Improved driver monitoring model: improve eye detection * Improved calibration stability - * Improved lateral control on some 2018 and 2019 Toyota Prius + * Improved lateral control on some 2019 and 2020 Toyot...
flask_env is deprecated FLASK_DEBUG=1 is the proper way to have the debug stack trace screen appear
@@ -32,7 +32,7 @@ export FIRETEXT_API_KEY='FIRETEXT_ACTUAL_KEY' export NOTIFICATION_QUEUE_PREFIX='YOUR_OWN_PREFIX' export FLASK_APP=application.py -export FLASK_ENV=development +export FLASK_DEBUG=1 export WERKZEUG_DEBUG_PIN=off "> environment.sh ```
Fix geom_map geopandas 0.6.0 refactored to use pandas ExtensionArray. That led to an issue where we cannot concat a geopandas array without copying it. This will get resolved in pandas 0.26.0. Then we can maybe revert this commit.
@@ -88,7 +88,7 @@ class geom_map(geom): }, inplace=True) - data = pd.concat([data, bounds], axis=1, copy=False) + data = pd.concat([data, bounds], axis=1) return data def draw_panel(self, data, panel_params, coord, ax, **params):
readme: remove proxy from job configuration It has been removed in
@@ -104,7 +104,6 @@ however everything else is optional. For details, see `<job-conf.rst>`_. id: myjob time_limit: 60 # seconds - proxy: 127.0.0.1:8000 # point at warcprox for archiving ignore_robots: false warcprox_meta: null metadata: {}
fix: load best epoch and value from prior validations fixes
@@ -330,6 +330,14 @@ class Application: # epoch -> value dictionary values = SortedDict() + # load best epoch and value from past executions + if params_yml.exists(): + with open(params_yml, 'r') as fp: + params = yaml.load(fp, Loader=yaml.SafeLoader) + best_epoch = params['epoch'] + best_value = params[metric] + value...
Use prune option in Pygit2 provider when fetching Pygit2 version 0.26.2 added support for pruning when fetching. In this way Pygit2 provider will no longer need to leverage git commanand line utility for pruning the remote.
@@ -1611,11 +1611,19 @@ class Pygit2(GitProvider): ''' Clean stale local refs so they don't appear as fileserver environments ''' + try: + if pygit2.GIT_FETCH_PRUNE: + # Don't need to clean anything, pygit2 can do it by itself + return [] + except AttributeError: + # However, only in 0.26.2 and newer + pass if self.cre...
Making error message more descriptive While starting the server, an error "[Errno 111] Connection refused" is thrown without specifying any reason. This commit makes the error message more descriptive.
@@ -16,10 +16,12 @@ from hwilib.errors import ( DeviceFailureError, UnavailableActionError, ) +import logging import hashlib from binascii import a2b_base64, b2a_base64 py_enumerate = enumerate +logger = logging.getLogger(__name__) class SpecterClient(HardwareWalletClient): @@ -240,9 +242,10 @@ def enumerate(password="...
Update 6-ldap.md - AUTH_LDAP_USER_DN_TEMPLATE to none for windows 2012+ changed When using Windows Server 2012, `AUTH_LDAP_USER_DN_TEMPLATE` should be set to None. to Windows Server 2012+
@@ -74,7 +74,7 @@ STARTTLS can be configured by setting `AUTH_LDAP_START_TLS = True` and using the ### User Authentication !!! info - When using Windows Server 2012, `AUTH_LDAP_USER_DN_TEMPLATE` should be set to None. + When using Windows Server 2012+, `AUTH_LDAP_USER_DN_TEMPLATE` should be set to None. ```python from ...
Fixing temporary bug with inputs and bucketing when series are bucketed (i.e. batches() do not return data in the same order as get_series()), inputs were returned in the wrong order.
@@ -317,6 +317,8 @@ def run_on_dataset(tf_manager: TensorFlowManager, feedables = set.union(*[runner.feedables for runner in runners]) feedables |= dataset_runner.feedables + fetched_input = {s: [] for s in dataset.series} # type: Dict[str, List] + processed_examples = 0 for batch in dataset.batches(): if 0 < log_progr...
DOC: Add missing description to `brute_force` parameter. Add missing description to the `brute_force` parameter to the docstrings of the `ndimage.morphology.binary_dilation` and `ndimage.morphology.binary_erosion` methods. Also made the `origin` parameter description come after the one for `border_value` to match the m...
@@ -309,10 +309,16 @@ def binary_erosion(input, structure=None, iterations=1, mask=None, output=None, output : ndarray, optional Array of the same shape as input, into which the output is placed. By default, a new array is created. - origin : int or tuple of ints, optional - Placement of the filter, by default 0. borde...
make import simpler the minimum version is 3.9
@@ -12,7 +12,7 @@ import os import subprocess from typing import OrderedDict -from importlib import reload +from importlib import reload, metadata from django.apps import apps from django.conf import settings @@ -22,12 +22,6 @@ from django.urls import clear_url_caches from django.contrib import admin from django.utils....
Replace RuntimeError in _lookup_task with deferred error. * Replace RuntimeError in _lookup_task with deferred error. This allows unknown tasks to be created (e.g., when parsing autotvm log files) but not invoked. * Format. * Update python/tvm/autotvm/task/task.py
@@ -40,11 +40,11 @@ from .space import ConfigSpace def _lookup_task(name): task = TASK_TABLE.get(name) if task is None: - raise RuntimeError( - f"Could not find a registered function for the task {name}. It is " - "possible that the function is registered in a python file which was " - "not imported in this run." - ) +...
Update settings.py 1) (see port-list). 2) Sample from 1) is in ```elf_doki```: .
@@ -75,7 +75,7 @@ HIGH_PRIORITY_REFERENCES = ("bambenekconsulting.com", "github.com/stamparm/black CONSONANTS = "bcdfghjklmnpqrstvwxyz" BAD_TRAIL_PREFIXES = ("127.", "192.168.", "localhost") LOCALHOST_IP = { 4: "127.0.0.1", 6: "::1" } -POTENTIAL_INFECTION_PORTS = (445, 1433) +POTENTIAL_INFECTION_PORTS = (445, 1433, 338...
Fixup to gaphor/diagram/general/tests/test_simpleitem.py Changed Line into Box for respective test
"""Unit tests for simple items.""" -from gaphor.diagram.general.simpleitem import Ellipse, Line +from gaphor.diagram.general.simpleitem import Box, Ellipse, Line def test_line(case): @@ -10,7 +10,7 @@ def test_line(case): def test_box(case): """""" - case.diagram.create(Line) + case.diagram.create(Box) def test_ellipse...
Check base_doc, not is_deleted id_deleted() is a property function, not an attribute, so it isn't present in the JSON representation of a user. We have to check the value of base_doc to determine whether the user is deleted.
{ "expression": { "type": "property_name", - "property_name": "is_deleted", + "property_name": "base_doc", "datatype": null }, - "operator": "eq", - "property_value": false, + "operator": "not_eq", + "property_value": "CouchUser-Deleted", "type": "boolean_expression", "comment": null }
Fix, the --recompile-c-only option wasn't working without C11 compiler. * This affected MSVC mainly and prevented this approach of debugging and trying things out during development.
@@ -1374,7 +1374,7 @@ def discoverSourceFiles(): # Scan for Nuitka created source files, and add them too. for filename in os.listdir(source_dir): # Only C files are of interest here. - if not filename.endswith(".c") or \ + if not filename.endswith((".c", "cpp")) or \ not filename.startswith(("module.", "__")): continu...
TH: Updated Capacity from August 2022 For detailed breakdown see
], "capacity": { "battery storage": 0, - "biomass": 1006.95, + "biomass": 1040.79, "coal": 6067.5, - "gas": 28695, + "gas": 29358, "geothermal": 0.3, - "hydro": 7015.73, + "hydro": 7530.03, "hydro storage": 1000, "nuclear": 0, "oil": 1497.4,
Update README.md To reflect that bot support multibot functon
@@ -42,7 +42,9 @@ If this is your first time making a PR or aren't sure of the standard practice o ## Features - [x] Based on Python for botting on any operating system - Windows, macOS and Linux -- [x] Allow custom hash service provider [NEW] +- [x] Multi-bot supported +- [x] Able to edit bot if certain level has reac...
llvm, debug: Store base parameters in alloca-ted location. This avoids relying on memory analysis to propagate constants.
@@ -220,6 +220,7 @@ class LLVMBuilderContext: if "const_params" in debug_env: const_params = params.type.pointee(composition._get_param_initializer(None)) + params = builder.alloca(const_params.type) builder.store(const_params, params) # Call input CIM
Add **kwargs back into mine function in cache runner This was removed during the deprecation removal process and shouldn't have been.
@@ -76,7 +76,7 @@ def pillar(tgt=None, tgt_type='glob'): return cached_pillar -def mine(tgt=None, tgt_type='glob'): +def mine(tgt=None, tgt_type='glob', **kwargs): ''' .. versionchanged:: 2017.7.0 The ``expr_form`` argument has been renamed to ``tgt_type``, earlier
Update conf.py Testing redirect for licensing and subscriptions.
@@ -91,7 +91,7 @@ redirects = { "https://docs.mattermost.com/about/security.html", "overview/integrations": "https://docs.mattermost.com/about/integrations.html", - "about/subscription": "https://docs.mattermost.com/about/licensing-and-subscription.html", + "about/subscription": "https://docs.mattermost.com/overview/li...
Typo fix Should read top-level, not to-level.
@@ -9,7 +9,7 @@ If you're confused by the many names, please check out `names` for clarification What follows is the API explanation, if you'd like a more hands-on introduction, have a look at `examples`. -As of version 21.3.0, ``attrs`` consists of **two** to-level package names: +As of version 21.3.0, ``attrs`` consi...
navbar: Reset searchbox text on calling ".exit_search()". This commit makes sure that we replace the text in the search box every time a user calls `exit_search()` eg via the escape hotkey or by clicking the `x` icon, so that the search box discards any input and always starts at the current narrow.
@@ -84,6 +84,10 @@ exports.exit_search = function () { if (!filter || filter.is_common_narrow()) { // for common narrows, we change the UI (and don't redirect) exports.close_search_bar_and_open_narrow_description(); + + // reset searchbox text + const search_string = narrow_state.search_string(); + $("#search_query").v...
Fix type of indent in JSONEncoder A None value for indent means the most compact representation (no newlines), it is also the default value.
@@ -73,7 +73,7 @@ class JSONEncoder(object): check_circular = ... # type: bool allow_nan = ... # type: bool sort_keys = ... # type: bool - indent = ... # type: int + indent = ... # type: Optional[int] def __init__(self, skipkeys: bool = ..., @@ -81,7 +81,7 @@ class JSONEncoder(object): check_circular: bool = ..., allow...
Stop requiring accessKey/secret when updating an S3 assetstore This was missed in
@@ -217,9 +217,7 @@ class Assetstore(Resource): assetstore['shard'] = shard elif assetstore['type'] == AssetstoreType.S3: self.requireParams({ - 'bucket': bucket, - 'accessKeyId': accessKeyId, - 'secret': secret + 'bucket': bucket }) assetstore['bucket'] = bucket assetstore['prefix'] = prefix
fix:check keyerror fix bug: avoid KeyError when config field missing
@@ -41,7 +41,7 @@ class SFTPArtifactRepository(ArtifactRepository): if 'hostname' in user_config: self.config['host'] = user_config['hostname'] - if self.config['username'] is None and 'username' in user_config: + if self.config.get('username', None) is None and 'username' in user_config: self.config['username'] = user...
Adds PoS websocket endpoint Receives all payments to a pos
@@ -3,7 +3,7 @@ import asyncio from loguru import logger from lnbits.core.models import Payment -from lnbits.core.services import create_invoice, pay_invoice +from lnbits.core.services import create_invoice, pay_invoice, websocketUpdater from lnbits.helpers import get_current_extension_name from lnbits.tasks import reg...
refactor: Add is_new_member property. Only the getter of the is_new_member property is added, to the UserProfile class. This is done to deduplicate action of checking whether a user is a new member or not.
@@ -1091,6 +1091,13 @@ class UserProfile(AbstractBaseUser, PermissionsMixin): def __str__(self) -> str: return "<UserProfile: %s %s>" % (self.email, self.realm) + @property + def is_new_member(self) -> bool: + diff = (timezone_now() - self.date_joined).days + if diff < self.realm.waiting_period_threshold: + return True...
Fix libClusterFuzz env vars. bot/env.yaml does not exist in libClusterFuzz. Just set the ones we need.
@@ -18,10 +18,12 @@ import os if not os.getenv('ROOT_DIR') and not os.getenv('GAE_ENV'): # If ROOT_DIR isn't set by the time we import this and we're not on GAE, # assume we're libClusterFuzz. + # Actual value does not matter, it just needs to be set. + os.environ['ROOT_DIR'] = '/tmp' + os.environ['LIB_CF'] = 'True' th...
workloads/rt-app: fix Change "pull_file" to "pull" when exacting results. "pull_file" was WA2 API which somehow got missed.
@@ -274,7 +274,7 @@ class RtApp(Workload): self.target.execute(tar_command, timeout=300) target_path = self.target.path.join(self.target_working_directory, TARBALL_FILENAME) host_path = os.path.join(context.output_directory, TARBALL_FILENAME) - self.target.pull_file(target_path, host_path, timeout=120) + self.target.pu...
Adapt release notes after 3.6.1 release fix syntax error in qualifiers
@@ -12,10 +12,13 @@ the proposed changes so you can be ready. ## Version 3.7 (as yet unreleased) +## [Version 3.6.1](https://pypi.python.org/pypi/pyfakefs/3.6.1) + ### Fixes * avoid rare side effect during module iteration in test setup (see [#338](../../issues/338)) - + * make sure real OS tests are not executed by de...
LegendasTV: Don't discard provider when BadRarFile or BadZipFile Show a 'Invalid subtitle' warning instead
@@ -11,9 +11,9 @@ from dogpile.cache.api import NO_VALUE from guessit import guessit import pytz import rarfile -from rarfile import RarFile, is_rarfile +from rarfile import BadRarFile, RarFile, is_rarfile from requests import Session -from zipfile import ZipFile, is_zipfile +from zipfile import BadZipfile, ZipFile, is...
use kubeflow/pipelines branch for deployment in test /assign
@@ -27,21 +27,13 @@ tar -xzf ks_${KS_VERSION}_linux_amd64.tar.gz chmod +x ./ks_${KS_VERSION}_linux_amd64/ks mv ./ks_${KS_VERSION}_linux_amd64/ks /usr/local/bin/ -# Download kubeflow master -KUBEFLOW_MASTER=${DIR}/kubeflow_master -git clone https://github.com/kubeflow/kubeflow.git ${KUBEFLOW_MASTER} - ## Download latest...
langkit_support/diagnostics_output: fix compilation warning TN:
@@ -24,7 +24,7 @@ procedure Main is return To_Text (Self.Lines (Line_Number)); end; - B : Simple_Buffer := + B : constant Simple_Buffer := (Size => 1, Lines => (1 => To_Unbounded_Text ("A simple line")));
don't overspecify required python version Summary: Pull Request resolved: We don't care which python version, and github actions has changed the versions available, breaking our CI. So just pin it to 3-something to make it more future proof Test Plan: Imported from OSS
@@ -13,7 +13,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.7.4 + python-version: 3.x architecture: x64 - name: Checkout PyTorch uses: actions/checkout@master @@ -28,7 +28,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.7.4 + python-versio...
Update requirements.txt Remove unnecessary requirements for docs
Sphinx >= 1.7.5 sphinx_rtd_theme >= 0.4.0 +tensorflow==1.4.0 keras >= 2.0.5 jieba >= 0.39 many_stop_words >= 0.2.2 @@ -7,17 +8,7 @@ nltk >= 3.2.3 numpy >= 1.12.1 six >= 1.10.0 h5py >= 2.7.0 -tqdm >= 4.19.4 -coverage >= 4.3.4 -codecov >= 2.0.15 -pytest >= 3.6.0 -pytest-cov >= 2.4.0 -mock >= 2.0.0 -flake8 >= 3.2.1 -flake...
dash: dont use the the same init file for every video. fixes:
@@ -92,7 +92,7 @@ def parsesegments(content, url): bitrate = int(i.attrib["bandwidth"]) if vinit is None: init = i.find("{urn:mpeg:dash:schema:mpd:2011}SegmentTemplate").attrib["initialization"] - vinit = init.replace("$RepresentationID$", id) + vidinit = init.replace("$RepresentationID$", id) if media is None: scheme ...
Regex match IB NICs Recent changes to the ip show regex made IB devices no longer show up in node.nics.
@@ -70,11 +70,17 @@ class Nics(InitializableMixin): 4: enP13530s1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 ... qdisc mq master eth0 state UP group default qlen 1000 link/ether 00:22:48:79:6c:c2 brd ff:ff:ff:ff:ff:ff + 6: ib0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2044 qdisc mq state UP ... + link/infiniband 00...
Add "Trailer Addict" api added Trailer Addict
@@ -1661,6 +1661,7 @@ API | Description | Auth | HTTPS | CORS | | [The Vampire Diaries](https://vampire-diaries-api.netlify.app/) | TV Show Data | `apiKey` | Yes | Yes | | [ThronesApi](https://thronesapi.com/) | Game Of Thrones Characters Data with imagery | No | Yes | Unknown | | [TMDb](https://www.themoviedb.org/docu...
test: Corrected selectors and shorten them (Using the added testing-library)
@@ -13,8 +13,8 @@ context('Dashboard links', () => { //Adding a new contact cy.get('.btn[data-doctype="Contact"]').click(); - cy.get('.has-error > .form-group > .control-input-wrapper > .control-input > .input-with-feedback').type('Admin'); - cy.get('#page-Contact > .page-head > .container > .row > .col > .standard-act...
Update README.md Removed the extra |
@@ -476,7 +476,7 @@ API | Description | Auth | HTTPS | Link | | Gfycat | Jiffier GIFs | `OAuth` | Yes | [Go!](https://developers.gfycat.com/api/) | | Giphy | Get all your gifs | No | Yes | [Go!](https://github.com/Giphy/GiphyAPI) | | Imgur | Images | `OAuth` | Yes | [Go!](https://apidocs.imgur.com/) | -| PiXhost | Uplo...
Fix divide by zero exception again. encode_times_a is an array, which can't be compared to 0.
@@ -303,20 +303,20 @@ def bdrate(file1, file2, anchorfile, fullrange): # handle encode time and decode time separately encode_times_a = a[:,3+met_index['Encoding Time']]; encode_times_b = b[:,3+met_index['Encoding Time']]; - if encode_times_a != 0.0: + try: # compute a percent change for each qp encode_times = (encode_...
Switch from -dev to released 3.11 version As in title, switching Python 3.11 in CI from beta to full release
@@ -28,7 +28,7 @@ jobs: strategy: matrix: os: [Ubuntu, macOS, Windows] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] include: - os: Ubuntu image: ubuntu-22.04 @@ -83,11 +83,6 @@ jobs: # Using `timeout` is a safeguard against the Poetry command hangin...
Update dataset.py Added square and curly brace tags to dimensionize naming rules.
@@ -4762,7 +4762,10 @@ class DataSet(object): """ def fix(string): - tags = ["'", '"', ' ', '&', '(', ')', '.', '/', '-'] + tags = [ + "'", '"', ' ', '&', '.', '/', '-', + '(', ')', '[', ']', '{', '}' + ] for tag in tags: string = string.replace(tag, '_') return string
rbd-mirror: bring back compatibility with jewel deployment rbd-mirror can't start when deploying jewel because it needs admin keyring. Getting back this task brings backward compatibility for jewel deployment.
tags: - package-install +- name: copy ceph admin key + copy: + src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring" + dest: "/etc/ceph/{{ cluster }}.client.admin.keyring" + owner: "{{ ceph_uid }}" + group: "{{ ceph_uid }}" + mode: "0600" + when: + - cephx + - ceph_release_num[ceph_release...
Typo in the conda install command conda install flag should be -c instead of -f to choose a channel
@@ -45,7 +45,7 @@ Installation The easiest way to install *cfgrib* and all its binary dependencies is via `Conda <https://conda.io/>`_:: - $ conda install -f conda-forge cfgrib + $ conda install -c conda-forge cfgrib alternatively, if you install the binary dependencies yourself, you can install the Python package from...
Add test case using on_conflict with BinaryJSONField. Refs
@@ -843,6 +843,18 @@ class TestBinaryJsonField(BaseJsonFieldTestCase, ModelTestCase): (5, 7), ('k4', None)]) + def test_conflict_update(self): + b1 = BJson.create(data={'k1': 'v1'}) + iq = (BJson + .insert(id=b1.id, data={'k1': 'v1-x'}) + .on_conflict('update', conflict_target=[BJson.id], + update={BJson.data: {'k1': '...
Allow kwargs in nova_volume_attach As a part of the scenario/manager.py stabilization tracked by the below BP the patch adds kwargs argument for nova_volume_attach method so that the consumers are able to pass additional parameters if needed. Implements: blueprint tempest-scenario-manager-stable
@@ -697,17 +697,20 @@ class ScenarioTest(tempest.test.BaseTestCase): image_name, server['name']) return snapshot_image - def nova_volume_attach(self, server, volume_to_attach): + def nova_volume_attach(self, server, volume_to_attach, **kwargs): """Compute volume attach This utility attaches volume from compute and wait...
langkit.diagnostics.source_listing: avoid confusing var name reuse For GitLab issue
@@ -591,12 +591,12 @@ def source_listing(highlight_sloc: Location, lines_after: int = 0) -> str: append_line("", col(caret_line, Colors.RED + Colors.BOLD)) # Append following lines up to ``lines_after`` lines - for line_nb, line in enumerate( + for cur_line_nb, cur_line in enumerate( source_buffer[line_nb + 1: min(line...
Importing: Add support importing from egg files directly * Adding a ".egg" file on the PYTHONPATH is allowed, but wasn't working with Nuitka yet. * Transparently unpacks the .egg file for use there.
@@ -37,9 +37,11 @@ the ``os`` module like it's done in ``isStandardLibraryPath`` of this module. from __future__ import print_function +import hashlib import imp import os import sys +import zipfile from logging import warning from nuitka import Options @@ -47,6 +49,7 @@ from nuitka.containers.oset import OrderedSet fr...
Change quotes to make link work I am not sure why this needs to happen, but using double quotes within single quotes screws up the link-parsing in the browser.
@@ -12,7 +12,7 @@ def total_spending(request, format=None): spending_type = utils.get_spending_type(codes) if spending_type is False: - err = 'Error: BNF Codes must all be the same length if written in the same search box. For example, you cannot search for Cerazette_Tab 75mcg (0703021Q0BBAAAA) and Cerelle (0703021Q0BD...
Removes basis debug printing and deprecation warnings. Removes basis-name printing (a debug statement) and removes the deprecation warnings that were applied to the string-basis versions of build_gateset, build_gate, build_vector, etc.
@@ -14,7 +14,6 @@ import scipy.linalg as _spl from ..tools import gatetools as _gt from ..tools import basis as _basis -from ..tools import deprecated_fn as _deprecated_fn from ..objects import gate as _gate from ..objects import gateset as _gateset from ..objects import gaugegroup as _gg @@ -69,7 +68,6 @@ def basis_bu...
Update README.md tiny clean up
- [Loader User Guide](./tools/loader.md) - [Performance Tuning](op-guide/tune-TiKV.md) - [Reading Data from History Versions](op-guide/history-read.md) - - [Troubleshooting](./trouble-shooting.md) ++ [Troubleshooting](./trouble-shooting.md) + More Resources - [Frequently Used Tools](https://github.com/pingcap/tidb-tool...
Doc: Link to Windows PyGTK packages built for Inkscape 0.92.4 The binaries shipped with this PyGTK packages now exactly match the version used for building Inkscape 0.92.4 on Windows.
@@ -55,6 +55,8 @@ Install the Python bindings for the graphical user interface of Install PyGTK2 (recommended) ---------------------------- +.. _inkscape-0.92.4-64-bit: https://github.com/textext/pygtk-for-inkscape-windows/releases/download/0.92.4/Install-PyGTK-2.24-Inkscape-0.92.4-64bit.exe +.. _inkscape-0.92.4-32-bit...
Random seed use float instead of datetime object. Originally passing datetime object implicitly used hash value of it, but it is deprecated from 3.9 and raises pytype error.
"""Common utilities for testing various runners.""" import contextlib -import datetime import os import random import string @@ -53,11 +52,10 @@ def random_id() -> str: Returns: A random string valid for Kubernetes DNS name. """ - random.seed(datetime.datetime.now()) - - choices = string.ascii_lowercase + string.digits...
fix docs build Fix a typo in SRP's docs that makes the documentation build fail.
@@ -48,7 +48,7 @@ class SRPClassifier(base.WrapperMixin, base.EnsembleMixin, base.Classifier): Drift detector. warning_detector Warning detector. - disable_detector: + disable_detector Option to disable drift detectors:<br/> * If `'off'`, detectors are enabled.<br/> * If `'drift'`, disables concept drift detection and ...
Encode path only for old versions of hfh encode path only for old versions of hfh
@@ -2,7 +2,11 @@ from typing import Optional from urllib.parse import quote import huggingface_hub as hfh +from packaging import version def hf_hub_url(repo_id: str, path: str, revision: Optional[str] = None) -> str: - return hfh.hf_hub_url(repo_id, quote(path), repo_type="dataset", revision=revision) + if version.pars...
Skips `unit.modules.test_groupadd` on Windows There is a test_win_groupadd modules for testing the win_groupadd module on Windows.
# Import Python libs from __future__ import absolute_import +try: import grp +except ImportError: + pass # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin @@ -13,10 +16,12 @@ from tests.support.unit import TestCase, skipIf from tests.support.mock import MagicMock, patch, NO_MOCK, NO_MOCK...
fix: Better metatags fallback Set metatag title from context.title
@@ -225,33 +225,44 @@ def add_sidebar_data(context): def add_metatags(context): tags = frappe._dict(context.get("metatags") or {}) - if tags: if "og:type" not in tags: tags["og:type"] = "article" - name = tags.get('name') or tags.get('title') - if name: - tags["og:title"] = tags["twitter:title"] = name + if "title" not...
Update pgc-rema.yaml add asdi tag
@@ -4,6 +4,10 @@ Documentation: https://www.pgc.umn.edu/data/rema/ Contact: pgc-support@umn.edu ManagedBy: "[Polar Geospatial Center](http://www.pgc.umn.edu/)" UpdateFrequency: New DEM strips are added twice yearly. Mosaic products are added as soon as they are available. +Collabs: + ASDI: + Tags: + - satelitte imagery...
Add NonConvex option. Since the flow in the diesel genset represents a combination of NonConvex and Investment options, both NonConvex and Investment option has to be defined in the flow.
@@ -145,6 +145,7 @@ diesel_genset = solph.components.Transformer( ep_costs=epc_diesel_genset * n_days / n_days_in_year, maximum=2 * peak_demand, ), + nonconvex=solph.NonConvex(), ) }, conversion_factors={b_el_ac: 0.33},
config.central: CompatConfigManager: fix recursion error When running under a thread/process pool.
@@ -267,6 +267,8 @@ class CompatConfigManager: self._manager = manager def __getattr__(self, attr): + if attr == '_manager': + return object.__getattribute__(self, '_manager') obj = getattr(self._manager, attr, _singleton) if obj is _singleton: obj = getattr(self._manager.objects, attr)
Removed an unidentified location, ref in desc. Location identified in commit
@@ -7,14 +7,6 @@ Police officers are seen pushing around and even driving into crowds of people. * https://twitter.com/perfectlyg0lden/status/1267014293628870656 -### Police shove a person to the ground and put a weapon into their hand | (Believed) May 31st - -Police shove a person to the ground and put a weapon into t...
speedometer: fix methods which declare attributes We need to make those attributes class-attributes, to make sure they are still defined in subsequent jobs. We still access them through 'self', however.
@@ -128,7 +128,7 @@ class Speedometer(Workload): @once def initialize(self, context): super(Speedometer, self).initialize(context) - self.archive_server = ArchiveServer() + Speedometer.archive_server = ArchiveServer() if not self.target.is_rooted: raise WorkloadError( "Device must be rooted for the speedometer workload...
Enhance collectd Ceph python plugins This patch adds supports for ceph collectd python plugins for OSP17.
shell: ls /var/run/ceph/ceph-osd.*.asok | head -n 1 | egrep -o '[0-9]+' register: cephstorage_osd_socket become: true - when: "('CephStorage' in group_names and ceph_storage_collectd_plugin)" + when: "('CephStorage' in group_names and ceph_storage_collectd_plugin) and (rhosp_version is version('17.0', '<'))" # End Ceph...
[Hexagon] Fix use of subprocess.run in _check_call_verbose It uses parameters that are not present in Python 3.6, plus it catches generic exception, which may not have `stdout` or `stderr` members.
@@ -47,8 +47,15 @@ def _check_call_verbose(cmd, **kwargs) -> None: the stdout/stderr provided by the subprocess. """ try: - subprocess.run(cmd, capture_output=True, check=True, text=True, **kwargs) - except Exception as err: + subprocess.run( + cmd, + check=True, + encoding="UTF-8", + stdout=subprocess.PIPE, + stderr=s...
Update README.md added youtube.py
@@ -60,3 +60,5 @@ In the scripts the comments etc are lined up correctly when they are viewed in [ - `Google_News.py` - Uses BeautifulSoup to provide Latest News Headline along with news link. - `cricket_live_score` - Uses BeautifulSoup to provide live cricket score. + +- `youtube.py` - Takes input a song name and fetc...
Correct types, add missing functions to c_distributions.pxd Correct floating point types on several npyrandom functions exposed for Cython in c_distributions.pyx, add missing float functions
ctypedef s_binomial_t binomial_t + float random_standard_uniform_f(bitgen_t *bitgen_state) nogil double random_standard_uniform(bitgen_t *bitgen_state) nogil void random_standard_uniform_fill(bitgen_t* bitgen_state, npy_intp cnt, double *out) nogil + void random_standard_uniform_fill_f(bitgen_t *bitgen_state, npy_intp ...
Pin pylint for build stability Changes on stable branches should be kept minimal; we don't want to change their code purely for new pylint minutiae.
@@ -23,7 +23,8 @@ dependencies: - xarray - redis-py # redis client lib, used by celery - redis # redis server -- pylint # testing +- pylint = 1.7 # testing +- astroid = 1.5 # needed to match pylint - pep8 # testing - fiona # movie generator app - mock # testing
Update changelog for 0.6.2 release Summary: title Test Plan: none Reviewers: #ft, prha
# Changelog -## 0.6.2 (Upcoming) +## 0.6.2 - Changed composition functions `@pipeline` and `@composite_solid` to automatically give solids aliases with an incrementing integer suffix when there are conflicts. This removes to the need to manually alias solid definitions that are used multiple times. +- Add `dagster sche...
lnAdress fix link to docs Fixes:
Charge people for using your domain name...<br /> <a - href="https://github.com/lnbits/lnbits/tree/master/lnbits/extensions/lnaddress" + href="https://github.com/lnbits/lnbits-legend/tree/main/lnbits/extensions/lnaddress" >More details</a > <br />
HelpChannels: fix role not resetting after dormant command Resetting permissions relied on getting the member from the cache, but the member was already removed from the cache prior to resetting the role. Now the member is passed directly rather than relying on the cache.
@@ -230,7 +230,7 @@ class HelpChannels(Scheduler, commands.Cog): del self.help_channel_claimants[ctx.channel] with suppress(discord.errors.HTTPException, discord.errors.NotFound): - await self.reset_claimant_send_permission(ctx.channel) + await self.reset_claimant_send_permission(ctx.author) await self.move_to_dormant(...
Update why-xarray.rst with clearer expression in one sentence.
@@ -62,9 +62,8 @@ The power of the dataset over a plain dictionary is that, in addition to pulling out arrays by name, it is possible to select or combine data along a dimension across all arrays simultaneously. Like a :py:class:`~pandas.DataFrame`, datasets facilitate array operations with -heterogeneous data -- the d...
Send 400 in case of missed required parameters While creating OS-kubespray cluster if some parameters were missed, 500 was sent. Also use get method for checking avalibility zone, since it is optional paramater
@@ -616,15 +616,22 @@ class OpenStack: self.meta["dns"] = [validate_ip(ip) for ip in self.cluster.metadata.get("dns_nameservers", []).split(",")] - self.meta["ext_net"] = self.c.get_network(self.cluster.metadata["floating_network"]) - if self.meta["ext_net"] is None: - raise ValueError("External network '%s' is not fou...
update Reepater.get in zapier_subscription_post_delete the changes are covered by corehq.apps.zapier.tests.test_zapier_hooks:TestZapierIntegration
@@ -6,7 +6,7 @@ from tastypie.http import HttpBadRequest from corehq.apps.zapier.consts import CASE_TYPE_REPEATER_CLASS_MAP, EventTypes from corehq.apps.zapier.models import ZapierSubscription -from corehq.motech.repeaters.models import FormRepeater +from corehq.motech.repeaters.models import FormRepeater, SQLFormRepea...
Fix emojis Fix emojis breaking with shortcodes containing dashes - Fix emojis breaking with variants - Add tests for both cases
/* eslint-disable */ -// We only need this one function of Twemoji to locate the CDN emoji image, -// so we copy it instead of importing the whole library. + +// We only need a few functions of Twemoji to locate the CDN emoji image, +// so we copy them instead of importing the whole library. + // https://github.com/twi...
[bugfix] Fix parameter order of userPut method reorder userPut parameters to enable tagging pages for speedy deletion.
@@ -72,8 +72,8 @@ and arguments can be: # # (C) Daniel Herding, 2004 # (C) Purodha Blissenbach, 2009 -# (C) xqt, 2009-2018 -# (C) Pywikibot team, 2004-2018 +# (C) xqt, 2009-2019 +# (C) Pywikibot team, 2004-2019 # # Distributed under the terms of the MIT license. # @@ -481,7 +481,7 @@ class RedirectRobot(SingleSiteBot, ...
Update elf_coinminer.txt ```220.194.237.43:43768``` returns ```hello```-message.
@@ -126,3 +126,11 @@ w2wz.com # Reference: https://twitter.com/bad_packets/status/1123473023313616896 45.67.14.152:1337 + +# Reference: https://twitter.com/liuya0904/status/1135901420958281729 +# Reference: https://pastebin.com/5Ee4Xevs + +220.194.237.43:43768 +w.21-3n.xyz +w.3ei.xyz +w.lazer-n.com
[IMPR] derive ReplaceRobot from ExistingPageBot use ExistingPageBot to skip NoPage exception move isTitleExcepted and has_permission() checking to skip_page method directly leave treat method if isTextExcepted or new_text == original_text after replacements
@@ -156,7 +156,7 @@ from pywikibot.exceptions import ArgumentDeprecationWarning # Imports predefined replacements tasks from fixes.py from pywikibot import fixes from pywikibot import i18n, textlib, pagegenerators -from pywikibot.bot import SingleSiteBot +from pywikibot.bot import ExistingPageBot, SingleSiteBot from py...
Don't set the_geom_webmercator explicitly Cartodbfied tables should handle it automatically via triggers
@@ -164,10 +164,6 @@ def _geocode_query(table, street, city, state, country, metadata): UPDATE {table} SET the_geom = _g.the_geom, - the_geom_webmercator = CASE - WHEN _g.the_geom IS NULL THEN NULL - ELSE ST_Transform(_g.the_geom, 3857) - END, {metadata_assignment} {hash_column} = {hash_expression} FROM (SELECT * FROM ...
Update kubernetesmod.py Added CLI Example to top of documentation
@@ -19,6 +19,8 @@ The data format for `kubernetes.kubeconfig-data` value is the content of Only `kubeconfig` or `kubeconfig-data` should be provided. In case both are provided `kubeconfig` entry is preferred. +CLI Example: + .. code-block:: bash salt '*' kubernetes.nodes kubeconfig=/etc/salt/k8s/kubeconfig context=mini...
DOC: Add testing dependencies to build workflow instructions Adds note on how to install the test dependencies when building numpy from source.
@@ -8,7 +8,7 @@ source. Your choice depends on your operating system and familiarity with the command line. Gitpod ------------- +------ Gitpod is an open-source platform that automatically creates the correct development environment right in your browser, reducing the need to @@ -21,7 +21,7 @@ in-depth instructions fo...
Added site: codeforces Added using response_URL method
"username_claimed": "blue", "username_unclaimed": "noonewouldeverusethis7" }, + "Codeforces": { + "errorType": "response_url", + "errorUrl": "https://codeforces.com/", + "url": "https://codeforces.com/profile/{}", + "urlMain": "https://www.codeforces.com/", + "username_claimed": "tourist", + "username_unclaimed": "noon...
Implement psutil within blackbox tests Psutil is a well-established python package that is currently used elsewhere in the code for a similar purpose to that of process_exists, and should therefore be expanded to the blackbox tests as well.
@@ -20,6 +20,9 @@ import random import string from subprocess import PIPE, Popen +# isort: THIRDPARTY +import psutil + # Name prefix, so that we hopefully don't destroy any end user data by mistake! TEST_PREF = os.getenv("STRATIS_UT_PREFIX", "STRATI$_DE$TROY_ME!_") @@ -53,16 +56,20 @@ def random_string(length=4): def p...
Update cea/interfaces/dashboard/inputs/routes.py does this work? then let's commit it!
@@ -169,5 +169,6 @@ def route_table_post(db): def df_to_json(file_location): table_df = geopandas.GeoDataFrame.from_file(file_location) - table_df = table_df.to_crs(epsg=4326) # make sure that the geojson is coded in latitude / longitude + from cea.utilities.standardize_coordinates import get_geographic_coordinate_syst...
issue : `print_call_args` function was introduced when starting adding support for displaying arguments on function calls but is not used anymore, we can safely remove it
@@ -1606,22 +1606,6 @@ class X86(Architecture): taken, reason = val&(1<<flags["sign"]), "S" return taken, reason - def print_call_args(self): - offsets = [0, 4, 8, 12, 16, 20] - sp = get_register("$esp") - for i, offset in enumerate(offsets): - addr = sp + offset - line = "arg[{:d}] (sp+{:#x}) ".format(i, offset) - lin...
MAINT: modernised test.G_fit to rely on numpy arrays [CHANGED] now rely on array operations. Simplifies code.
@@ -297,26 +297,20 @@ def G_fit(obs, exp, williams=1): See Sokal and Rohlf chapter 17. """ + obs = array(obs) + exp = array(exp) + if obs.shape != exp.shape: + raise ValueError("requires data with equal dimensions.") + elif (obs < 0).any(): + raise ValueError("requires all observed values to be positive.") + elif (exp ...
Fixing filename creation for dplay Encoding of show name failed. Fixed that! fixes:
@@ -85,8 +85,10 @@ class Dplay(Service): name = jsondata["data"]["attributes"]["name"] if is_py2: show = filenamify(show).encode("latin1") + name = filenamify(name).encode("latin1") else: show = filenamify(show) + return filenamify("{0}.s{1:02d}e{2:02d}.{3}".format(show, int(season), int(episode), name)) def find_all_e...
Select different minio docker release to fix the zombie issue Issue
@@ -45,7 +45,7 @@ services: minio-protected: # This is for protected data, should only be exposed via an internal link # in nginx - image: minio/minio:RELEASE.2019-02-20T22-44-29Z + image: minio/minio:RELEASE.2019-04-04T18-31-46Z environment: MINIO_ACCESS_KEY: minioprotected MINIO_SECRET_KEY: minioprotected12345
Point API for staging at email and sms stubs for the soak tests. This is done to avoid sending real email and sms and incurring unnecessary charges while we run the soak tests.
@@ -468,6 +468,9 @@ class Staging(Config): API_RATE_LIMIT_ENABLED = True CHECK_PROXY_HEADER = True REDIS_ENABLED = True + SES_STUB_URL = 'https://notify-email-provider-stub-staging.cloudapps.digital/ses' + MMG_URL = 'https://notify-sms-provider-stub-staging.cloudapps.digital/mmg' + FIRETEXT_URL = 'https://notify-sms-pr...
Time display changes Changes the return time format to Min:Sec
@@ -369,7 +369,7 @@ class Sniper(BaseTask): exists = False self._log('Sniping distance is more than supported distance, abort sniping') else: - self._log('Base on distance, pausing for {0:.2f} Mins'.format(sleep_time/60)) + self._log('Base on distance, pausing for '+time.strftime("%M:%S", time.gmtime(sleep_time))) # Te...
Update release-process.md Made a note about marketing if release falls on a Friday.
@@ -86,6 +86,7 @@ Day when Leads and PMs decide which major features are included in the release, - Create meta issue for release in GitHub (see [example](https://github.com/mattermost/mattermost-server/issues/3702)) 3. Logistics: - Confirm date of marketing announcement for the release date with Marketing, and update ...
[Logs] Avoid logging an error when we successfully retry submission as otherwise we see errors in the logs, and this is confusing If we successfully retry, then it is not an error
@@ -91,9 +91,8 @@ def safe_submit_log(s, log): try: send_entry(s, log) except Exception as e: - err_message = 'Error sending the log line. Exception: {}'.format(str(e)) + # retry once s = connect_to_datadog(host, ssl_port) - send_entry(s, err_message) send_entry(s, log) return s
Type fixes for tempfile.TemporaryDirectory If no arguments are passed to the TemporaryDirectory constructor, then the class defaults to using str. Overload the __init__ function to cover this case.
@@ -310,7 +310,10 @@ class SpooledTemporaryFile(IO[AnyStr]): def __next__(self) -> AnyStr: ... class TemporaryDirectory(Generic[AnyStr]): - name: str + name: AnyStr + @overload + def __init__(self: TemporaryDirectory[str], suffix: None = ..., prefix: None = ..., dir: None = ...) -> None: ... + @overload def __init__( s...
Minor fix for quantizing the Ads complex model Summary: Remove Int8Relu in quantized model Suppress log warnings if verbose is false Test Plan: TBD
@@ -95,8 +95,8 @@ void DynamicHistogram::Add(float f) { max_ = std::max(max_, f); if (histogram_ == nullptr) { - histogram_ = std::make_unique<Histogram>( - nbins_ * OVER_BINNING_FACTOR, min_, max_); + histogram_ = + std::make_unique<Histogram>(nbins_ * OVER_BINNING_FACTOR, min_, max_); histogram_->Add(f); return; } @@...
[hailctl][devdeploy] improve error messages Previously we get a stack trace without the http response body. I tested this locally on a branch that does not exist: # hailctl dev deploy --branch danking/hail:shuffler-deploymefdsafdsa --steps test_shuffler HTTP Response code was 400 error finding {"repo": {"owner": "danki...
import asyncio import webbrowser import aiohttp +import sys from hailtop.config import get_deploy_config from hailtop.auth import service_auth_headers @@ -27,7 +28,7 @@ class CIClient: async def __aenter__(self): headers = service_auth_headers(self._deploy_config, 'ci') self._session = ssl_client_session( - raise_for_s...
fix Unicode multipart/form-data values in python3 Multipart form uploads are not affected by the WSGI/PEP-3333 'latin1' default encoding quirk and already properly decoded as utf8, so we have to disable FormsDict.recode_unicode for these.
@@ -1248,6 +1248,7 @@ class BaseRequest(object): :class:`FormsDict`. All keys and values are strings. File uploads are stored separately in :attr:`files`. """ forms = FormsDict() + forms.recode_unicode = self.POST.recode_unicode for name, item in self.POST.allitems(): if not isinstance(item, FileUpload): forms[name] = ...
override ceph_release with ceph_stable_release when `ceph_origin` is set to `'repository'` and `ceph_repository` to `'community'` we need to ensure `ceph_release` reflect `ceph_stable_release`. simply removed the override while it should just have to be run only when the condition mentioned above is satisfied.
tags: - always +- name: set_fact ceph_release - override ceph_release with ceph_stable_release + set_fact: + ceph_release: "{{ ceph_stable_release }}" + when: + - ceph_origin == 'repository' + tags: + - always + - name: include facts_mon_fsid.yml include_tasks: facts_mon_fsid.yml run_once: true