message
stringlengths
13
484
diff
stringlengths
38
4.63k
Removed unused mkdir data path It never worked because data_path is a "special" address, so it always generated an exception, and in case the folder is created by init cache
@@ -242,11 +242,6 @@ class GlobalVariables(object): self.settings_monitor_suspend(False) # Reset the value in case of addon crash - try: - os.mkdir(self.DATA_PATH) - except OSError: - pass - self._init_cache() def _init_database(self, initialize):
Filtering hotfix Bug caused by an outdated function signature in a previous commit in the PR
@@ -240,7 +240,13 @@ class Filtering(Cog): # We also do not need to worry about filters that take the full message, # since all we have is an arbitrary string. if _filter["enabled"] and _filter["content_only"]: - match, reason = await _filter["function"](result) + filter_result = await _filter["function"](result) + rea...
avoid calling front() on empty working set Summary: Pull Request resolved: ghimport-source-id:
@@ -865,6 +865,9 @@ class AliasDb::WorkingSet { private: bool hasDataDependency(Node* n) const { + if (!mover_ && nodes_.empty()) { + return false; + } const Node* pivot = mover_ ? mover_ : nodes_.front(); if (n->isAfter(pivot)) { return producesFor(n);
fix(get_sector_futures): fix get_sector_futures interface fix get_sector_futures interface
@@ -84,15 +84,16 @@ short_headers = { } long_headers = { - 'Accept': 'text/plain, */*; q=0.01', - 'Accept-Encoding': 'gzip, deflate, br', - 'Accept-Language': 'zh-CN,zh;q=0.8', - 'Connection': 'keep-alive', - 'Content-Length': '143', - 'Content-Type': 'application/x-www-form-urlencoded', - 'Host': 'cn.investing.com', -...
make the filename as md5 hash when passing raw data fixed the following: 1. change from filename to _file = human readable name 2. filename = md5 hash when loaded as raw data. This is so that the session will have a proper filename
@@ -4,6 +4,7 @@ standard_library.install_aliases() from androguard import session from androguard.decompiler import decompiler from androguard.core import androconf +import hashlib import logging log = logging.getLogger("androguard.misc") @@ -25,13 +26,13 @@ def get_default_session(): return androconf.CONF["SESSION"] -...
Fix bug of KG train.py script. It cannot work when only mxnet backend is installed.
from dataloader import EvalDataset, TrainDataset, NewBidirectionalOneShotIterator from dataloader import get_dataset -import torch.multiprocessing as mp import argparse import os @@ -9,10 +8,12 @@ import time backend = os.environ.get('DGLBACKEND') if backend.lower() == 'mxnet': + import multiprocessing as mp from train...
Fix model test error When testing models, mixer raises an error and assert couldn't catch IntegrityError.
@@ -2,6 +2,7 @@ from django.test import TestCase from django.core.exceptions import ValidationError from django.db.utils import IntegrityError from mixer.backend.django import mixer +from server.models import Label, DocumentAnnotation, SequenceAnnotation, Seq2seqAnnotation class TestProject(TestCase): @@ -12,7 +13,7 @@...
Add missing dependencies for fedora image Problem: We use `mock` now to build against different fedora versions. Solution: Install `mock` during bootstrapping.
FROM fedora:35 RUN dnf update -y RUN dnf install -y libev-devel gmp-devel hidapi-devel libffi-devel zlib-devel libpq-devel m4 perl git pkg-config \ - rpmdevtools python3-devel python3-setuptools wget opam rsync which cargo autoconf systemd systemd-rpm-macros + rpmdevtools python3-devel python3-setuptools wget opam rsyn...
Loosen the upper bound of flatbuffer to make it work with TF[1]. [1]
@@ -182,7 +182,7 @@ def make_extra_packages_examples(): # Required for bert examples in tfx/examples/bert 'tensorflow-text>=1.15.1,<3', # Required for tfx/examples/cifar10 - 'flatbuffers>=1.12,<2', + 'flatbuffers>=1.12,<3', 'tflite-support>=0.1.0a1,<0.1.1', # Required for tfx/examples/penguin/experimental # LINT.IfChan...
txid --> id KISS: A transaction is a resource as every other. Let's not give it a special id (like 'txid'), but simply a regular id.
@@ -42,15 +42,15 @@ with something like the following in the body: Transactions ------------------- -.. http:get:: /transactions/{txid} +.. http:get:: /transactions/{id} - Get the transaction with the ID ``txid``. + Get the transaction with the ID ``id``. This endpoint returns only a transaction from a ``VALID`` or ``U...
Add environment dict to lint calls Expose standard MOLECULE environment variables to the lint commands to improve processing
@@ -93,7 +93,13 @@ def execute(self): try: LOG.info("Executing: %s" % cmd) - run(cmd, shell=True, universal_newlines=True, check=True) + run( + cmd, + env=self._config.env, + shell=True, + universal_newlines=True, + check=True, + ) except Exception as e: util.sysexit_with_message("Lint failed: %s: %s" % (e, e))
container: don't install the engine on all clients We only need the container engine to be installed on the first clients node in order to execute the pools/keys operation. We already do the same worflow with the ceph-container-common role which pull the ceph container image.
- import_role: name: ceph-container-engine tags: with_pkg + when: (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first) - import_role: name: ceph-container-common tags: fetch_container_image
DOC: added `See Also` section Improved docstring by pointing user to information about correct format options for `supported_tags` kwarg.
@@ -66,8 +66,9 @@ def list_files(tag=None, inst_id=None, data_path=None, format_str=None, User specified file format. If None is specified, the default formats associated with the supplied tags are used. (default=None) supported_tags : dict or NoneType - keys are inst_id, each containing a dict keyed by tag - where the...
Update LICENSE * Update LICENSE STFC --> UKRI current year * Date range 2012 is the date of the first commit. The project began in 2011 though
-Copyright (c) 2015 Diamond Light Source, Lawrence Berkeley National Laboratory, and the Science and Technology Facilities Council. +Copyright (c) 2012-2019 Diamond Light Source, Lawrence Berkeley National Laboratory, and United Kingdom Research and Innovation. All rights reserved. Redistribution and use in source and ...
DOC: minor formatting tweak to sample notebooks This pull request fixes the mis-aligned indentation in the "sample notebooks" page in the docs introduced in
@@ -8,8 +8,7 @@ Sample Notebooks These tools include three types of example Jupyter notebooks. -1. `Sample Jdaviz notebooks <https://github.com/spacetelescope/jdaviz/tree/main/notebooks>`_ that illustrate how to use Jdaviz and various API calls. These notebooks are located in the ``notebooks`` sub-directory -of the git...
MNT: move column filtering up in BEC When we moved the table logic below the plotting we no longer were over-writing the `columns` local which change which code path we went down in the plotting.
@@ -245,6 +245,10 @@ class BestEffortCallback(QtAwareCallback): **share_kwargs) axes = fig.axes + # Ensure that no independent variables ('dimensions') are + # duplicated here. + columns = [c for c in columns if c not in self.all_dim_fields] + # ## LIVE PLOT AND PEAK ANALYSIS ## # if ndims == 1: @@ -337,13 +341,10 @@ c...
Use correct keys from group_info in group_install. Fixes
@@ -2597,9 +2597,9 @@ def group_install(name, targets = [] for group in groups: group_detail = group_info(group) - targets.extend(group_detail.get('mandatory packages', [])) + targets.extend(group_detail.get('mandatory', [])) targets.extend( - [pkg for pkg in group_detail.get('default packages', []) + [pkg for pkg in g...
Fixing speech rate and PEP 8 Changing the speech rate to 170 for smoother voice experience and adding blank lines to adapt to PEP 8 guidelines.
@@ -10,13 +10,13 @@ if IS_MACOS: else: import pyttsx3 -def create_voice(self, gtts_status, rate=120): +def create_voice(self, gtts_status, rate=180): """ Checks that status of gtts engine, and calls the correct speech engine :param rate: Speech rate for the engine (if supported by the OS) """ - if gtts_status==True: + ...
Add CHANGELOG entries for 0.6.6 See also the 0.6-maintenance branch.
+0.6.6 2018-08-27 +---------------- + +* Bugfix add type conversion to getlist (on multidicts) +* Bugfix correct ASGI client usage (allows for None) +* Bugfix ensure overlapping requests work without destroying the + others context. +* Bugfix ensure only integer status codes are accepted. + 0.6.5 2018-08-05 -----------...
FFU support for ceph_nfs This change introduces the steps needed to dump the set of playbook used to perform the ceph-nfs update. Depends-On:
@@ -71,7 +71,49 @@ outputs: dport: # We support only NFS 4.1 to start - 2049 - upgrade_tasks: [] + upgrade_tasks: + - name: Create hiera data to upgrade ceph_nfs in a stepwise manner. + when: + - step|int == 1 + - cluster_recreate|bool + block: + - name: set ceph_nfs upgrade node facts in a single-node environment + se...
Remove useless options from CORS init This can be merged only after is merged
@@ -61,20 +61,7 @@ def create_app(*, debug=False, threads=4): app = Flask(__name__) - CORS(app, - allow_headers=( - 'x-requested-with', - 'content-type', - 'accept', - 'origin', - 'authorization', - 'x-csrftoken', - 'withcredentials', - 'cache-control', - 'cookie', - 'session-id', - ), - supports_credentials=True) + CO...
Filter out all header links through tags Replacing the paragraph sign on the string missed some other symbols that were used for permalinks.
@@ -129,6 +129,9 @@ def get_signatures(start_signature: PageElement) -> List[str]: start_signature, *_find_next_siblings_until_tag(start_signature, ("dd",), limit=2), )[-MAX_SIGNATURE_AMOUNT:]: + for tag in element.find_all("a", class_="headerlink", recursive=False): + tag.decompose() + signature = _UNWANTED_SIGNATURE_...
Fix tooltip again Fixes
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/main.css') }}"> <script> - window.addEventListener('DOMContentLoaded', (event) => { - - var kb = document.getElementById("keyboard"); - for (var i = 0; i < codepage.length; i++) { - kb.innerHTML += (`<span class="key" style="text-align:cent...
[otBase] fix array-reader to return list, not array.array Was not noticed because it was for the most part unused.
@@ -146,7 +146,7 @@ class OTTableReader(object): value = array.array(typecode, self.data[pos:newpos]) if sys.byteorder != "big": value.byteswap() self.pos = newpos - return value + return value.tolist() def readInt8(self): return self.readValue("b", staticSize=1)
Use heartbeat period for HTEX worker watchdog Previously, this used 1000 x the tight loop poll period. This was awkward to understand and describe. The heartbeat period is more relevant as a configuration option for setting the time scale on which broken components will be discovered.
@@ -109,7 +109,8 @@ class Manager(object): assumes that the interchange is lost and the manager shuts down. Default:120 heartbeat_period : int - Number of seconds after which a heartbeat message is sent to the interchange + Number of seconds after which a heartbeat message is sent to the interchange, and workers + are ...
no mocking at all testing out mocks in read the docs
@@ -52,7 +52,7 @@ MOCK_MODULES = ['json', 'skimage', 'skimage.transform', 'skimage.transform._geometric'] -sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) +#sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) # If extensions (or modules to document with autodoc) are in another direct...
Implement a fake "cr_frame" property for Cython async coroutines that always returns None, just to prevent an AttributeError. Closes
@@ -1226,6 +1226,13 @@ static void __Pyx_Coroutine_del(PyObject *self) { #endif } +static PyObject * +__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self) +{ + // Fake implementation that always returns None, but at least does not raise an AttributeError. + Py_RETURN_NONE; +} + static PyObject * __Pyx_Coroutine_get_n...
handle missing description for html reporting `report.description` is not properly configured, when the test execution fails. In such case, we should print the original error, not traceback related to missing description.
@@ -18,7 +18,10 @@ def pytest_html_results_table_row(report, cells): """ Add content to the column Description """ + try: cells.insert(2, html.td(report.description)) + except AttributeError: + cells.insert(2, html.td('--- no description ---')) @pytest.mark.hookwrapper
codacy coverage codacy coverage codacy coverage
@@ -16,6 +16,10 @@ cache: notifications: email: false +before_install: + - sudo apt-get install jq + - curl -LSs "$(curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r '.assets | map({name, browser_download_url} | select(.name | endswith(".jar"))) | .[0].browser_download_url')...
Add quaternary screenshot for AR Capture hospital information tab, tested locally!
@@ -371,6 +371,19 @@ tertiary: quaternary: + AR: + renderSettings: + clipRectangle: + width: 1400 + height: 1400 + overseerScript: > + page.manualWait(); + await page.waitForSelector("span.ember-view.tab-title:nth-of-type(7)"); + page.click("span.ember-view.tab-title:nth-of-type(7)"); + await page.waitForDelay(10000); ...
Added chromosome filter Creates a whitelist of chromosomes to be considered. Highly tailored to Drosophila.
@@ -34,9 +34,20 @@ rule reads2fragments: "awk -v OFS='\\t' -v pos_offset=\"4\" -v neg_offset=\"5\" " "'{{ print($1, $2 - pos_offset , $6 + neg_offset ) }}' > {output}" -rule filterFragments: +rule filterChromosomes: input: os.path.join(outdir_MACS2, "{sample}.all.bedpe") + output: + os.path.join(outdir_MACS2, "{sample}...
Add some fixed/distinct colors Fixes
@@ -3,7 +3,21 @@ import randomColor from "randomcolor"; import { RESERVED_FIELDS } from "./labels"; -const FIXED_COLORS = ["red", "green", "blue"]; +const FIXED_COLORS = [ + "#ee0000", + "#ee6600", + "#993300", + "#996633", + "#999900", + "#009900", + "#003300", + "#009999", + "#000099", + "#0066ff", + "#6600ff", + "#c...
Remove periodic timeout in interchange task pull loop This loop was to check the kill event, which is no longer used by this thread (see PR so there is no need to loop repeatedly in the absence of messages.
@@ -141,7 +141,6 @@ class Interchange(object): self.context = zmq.Context() self.task_incoming = self.context.socket(zmq.DEALER) self.task_incoming.set_hwm(0) - self.task_incoming.RCVTIMEO = 10 # in milliseconds self.task_incoming.connect("tcp://{}:{}".format(client_address, client_ports[0])) self.results_outgoing = se...
Update postSonarr.py fix episodefile endpoint using moviefile
@@ -98,16 +98,16 @@ def updateEpisode(baseURL, headers, new, episodeid, log): def getEpisodeFile(baseURL, headers, episodefileid, log): - url = baseURL + "/api/v3/moviefile/" + str(episodefileid) - log.debug("Requesting moviefile from Sonarr for moviefile via %s." % url) + url = baseURL + "/api/v3/episodefile/" + str(e...
[modules/bluetooth] Make dbus destination configurable Add a parameter "dbus_destination" that allows a user to specify the DBUS destination. fixes
@@ -4,6 +4,7 @@ right click toggles bluetooth. Needs dbus-send to toggle bluetooth state. Parameters: * bluetooth.device : the device to read state from (default is hci0) * bluetooth.manager : application to launch on click (blueman-manager) + * bluetooth.dbus_destination : dbus destination (defaults to org.blueman.Mec...
btcpayserver update to v1.4.4 verify with nicolasdorier signature do not exit install if btcpay user exists
# https://github.com/dgarage/NBXplorer/tags NBXplorerVersion="v2.2.20" # https://github.com/btcpayserver/btcpayserver/releases -BTCPayVersion="v1.4.0" +BTCPayVersion="v1.4.4" PGPsigner="nicolasdorier" PGPpubkeyLink="https://keybase.io/nicolasdorier/pgp_keys.asc" @@ -257,7 +257,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ];...
Actually require Python 3.7 in setup.py I had forgotten the bottom part of `setup.py`. Now it requires 3.7 and read the docs should work.
@@ -48,7 +48,6 @@ setuptools.setup( # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8',
pofile.py: Added new exception called PoFileError and thrown if flagged This new exception is thrown when the po parser finds an invalid pofile. This helps handle invalid po files that are parsed. Invalid po files may cause other possible errors such as a UnicodeEncodeError. Closes
@@ -19,6 +19,7 @@ from babel.util import wraptext from babel._compat import text_type + def unescape(string): r"""Reverse `escape` the given string. @@ -73,6 +74,15 @@ def denormalize(string): return unescape(string) +class PoFileError(Exception): + """Exception thrown by PoParser when an invalid po file is encountered...
Fix some typos Closes
@@ -135,7 +135,7 @@ Read API Methods All search/request parameters inside square brackets are **optional**. Methods such as :py:meth:`Zotero.top()`, :py:meth:`Zotero.items()` etc. can be called with no additional parameters if you wish. .. tip:: - The Read API returns 25 results by default (the API documentation claims...
GlsaDirSet: improve warnings for bad glsa data To help pkgcheck be able to catch these cases.
@@ -70,23 +70,25 @@ class GlsaDirSet(metaclass=generic_equality): yield packages.KeyedAndRestriction( pkgatoms[pkgname], packages.OrRestriction(*pkgs[pkgname]), key=pkgname) - def iter_vulnerabilities(self): """generator yielding each GLSA restriction""" for path in self.paths: for fn in listdir_files(path): # glsa-123...
fix: if response content-type is bin, try guessing downloaded content type
@@ -734,6 +734,9 @@ def get_web_image(file_url: str) -> Tuple["ImageFile", str, str]: extn = None extn = get_extension(filename, extn, response=r) + if extn == "bin": + extn = get_extension(filename, extn, content=r.content) or "png" + filename = "/files/" + strip(unquote(filename)) return image, filename, extn
overlays: Fix stream edit click-through bug. Fixes
@@ -476,6 +476,8 @@ exports.initialize = function () { $("#stream_privacy_modal").remove(); $("#subscriptions_table").append(change_privacy_modal); overlays.open_modal('stream_privacy_modal'); + e.preventDefault(); + e.stopPropagation(); }); $("#subscriptions_table").on('click', '#change-stream-privacy-button',
Wrap chain_head call in py.allow_threads The RwLock in the chain controller caused a race condition when not called from within a py.allow_threads. This function was the last remaining FFI wrapper function for chain controller that did not release the GIL before calling back into rust code.
@@ -373,13 +373,17 @@ pub extern "C" fn chain_controller_chain_head( ) -> ErrorCode { check_null!(chain_controller); unsafe { - let chain_head = (*(chain_controller - as *mut ChainController<PyBlockCache, PyBlockValidator>)) - .chain_head(); - let gil_guard = Python::acquire_gil(); let py = gil_guard.python(); + let co...
Better error message handling, the error is not removed but kept In the old implementation the error object is modified, and so the error message is lost afterwords. In the new implementation the message is just read and the error object is left unchanged.
@@ -1612,7 +1612,7 @@ class Request(MutableMapping): 'edit-already-exists', 'actionthrottledtext', # T192912 ) - messages = error.pop('messages', None) + messages = error.get('messages') message = None # bug T68619; after Wikibase breaking change 1ca9cee change we have a # list of messages
Added column for pre school education occurring. This is an integer because booleans cannot be added as nullable
"is_nullable": true, "column_id": "image_name", "type": "expression" + }, + { + "comment": "Preschool Education conducted on this day", + "column_id": "pse_conducted", + "type": "expression", + "datatype": "integer", + "is_nullable": true, + "is_primary_key": false, + "expression": { + "type": "conditional", + "test": ...
Rename test param Incorporating review feedback.
@@ -811,13 +811,13 @@ class TestRemoteState(object): self.remote_state.resource_exists(foo) @pytest.mark.parametrize( - 'resource_topic,deployed_topic,resource_exists,expected_result', [ + 'resource_topic,deployed_topic,is_current,expected_result', [ ('mytopic', 'mytopic', True, True), ('mytopic-new', 'mytopic-old', Fa...
Update README.md as sugested by
@@ -21,7 +21,7 @@ You can [read the docs here](http://docs.aiogram.dev/en/latest/). - Community: [@aiogram](https://t.me/aiogram) - Russian community: [@aiogram_ru](https://t.me/aiogram_ru) - Pip: [aiogram](https://pypi.python.org/pypi/aiogram) - - Docs: [AiOGram Dev](https://docs.aiogram.dev/en/latest/) + - Docs: [aio...
tests: temporarily use david's flavor master nfs ganesha builds are broken, let's use this flavor instead for now.
@@ -7,4 +7,5 @@ ganesha_conf_overrides: | } nfs_ganesha_stable: true nfs_ganesha_dev: false -nfs_ganesha_flavor: "ceph_master" +#nfs_ganesha_flavor: "ceph_master" +nfs_ganesha_flavor: ceph_dgalloway \ No newline at end of file
Update load_profile.py Remove comments around generator_fuel_use_gal
@@ -368,10 +368,10 @@ def bau_outage_check(critical_loads_kw, existing_pv_kw_list, gen_existing_kw, ge :param time_steps_per_hour: int :return: bool, int for number of time steps the existing generator and PV can meet the critical load, and boolean for if the entire critical load is met - ## TODO: add generator_fuel_us...
Submitting a change to description of nnz This is in accordance with pull request
@@ -42,7 +42,7 @@ class dia_matrix(_data_matrix): ndim : int Number of dimensions (this is always 2) nnz - Number of nonzero elements + Number of stored values, including explicit zeros data DIA format data array of the matrix offsets
output_mask_tests Added an instance in the test with no outdir Added an instance with a color image to test if statements with len(np.shape(img))==3
@@ -1252,15 +1252,18 @@ def test_plantcv_output_mask(): pcv.params.debug_outdir = cache_dir # Read in test data img = cv2.imread(os.path.join(TEST_DATA, TEST_INPUT_GRAY), -1) + img_color = cv2.imread(os.path.join(TEST_DATA, TEST_INPUT_COLOR), -1) mask = cv2.imread(os.path.join(TEST_DATA, TEST_INPUT_BINARY), -1) # Test ...
notification settings: Reorder notification settings labels. This is pre-refactoring commit for notification settings template deduplication using a loop. This commit refactors notifications section and reorder labels to match the ordering in the templates.
@@ -4,28 +4,39 @@ var exports = {}; var stream_notification_settings = [ "enable_stream_desktop_notifications", - "enable_stream_push_notifications", "enable_stream_audible_notifications", + "enable_stream_push_notifications", "enable_stream_email_notifications", ]; var pm_mention_notification_settings = [ "enable_desk...
update sigpipe test to be correct sigpipe on a _piped process should kill the process, but it should not bubble up as an exception, since sigpipe is expected in pipelines
@@ -1507,10 +1507,13 @@ while True: exit(0) """) - def fn(): - python(python("-u", py1.name, _piped="out"), "-u", py2.name) + p1 = python("-u", py1.name, _piped="out") + p2 = python(p1, "-u", py2.name) - self.assertRaises(sh.SignalException_SIGPIPE, fn) + # SIGPIPE should happen, but it shouldn't be an error, since _pi...
remove fail from kitura 5.1 underlying issue was addressed in
"action": "BuildSwiftPackage", "configuration": "release", "tags": "sourcekit-disabled swiftpm" - ,"xfail": { - "issue": "https://bugs.swift.org/browse/SR-15146", - "compatibility": "5.1", - "branch": "master" - } } ] },
ArnoldAttributesUI : Add UI for subdiv_smooth_derivs Otherwise it is outside any section and the ArnoldUITest unit tests fail.
@@ -395,6 +395,21 @@ Gaffer.Metadata.registerNode( ], + "attributes.subdivSmoothDerivs" : [ + + "layout:section", "Subdivision", + "label", "Smooth Derivatives", + + "description", + """ + Computes smooth UV derivatives (dPdu and dPdv) per + vertex. This can be needed to remove faceting + from anisotropic specular and ...
Changed Gitter link to Rasa Community link **Proposed changes**: Changed Gitter links to Rasa Community Forum links **Status (please check what you already did)**: [x] made PR ready for code review [ ] added some tests for the functionality [x] updated the documentation [ ] updated the changelog
@@ -42,7 +42,7 @@ Hence, the solution is to add more training samples. As this is only a warning, I have an issue, can you help me? --------------------------------- -We'd love to help you. If you are unsure if your issue is related to your setup, you should state your problem in the `gitter chat <https://gitter.im/Ras...
Add option to docs I'm not sure where the best place is for this, so I placed it around various options similar to it (at least as far as I can tell).
@@ -231,6 +231,19 @@ Forces line endings to the specified value. If not set, values will be guessed p - --le - --line-ending +## Sort Re-exports + +Specifies whether to sort re-exports (`__all__` collections) automatically. + +**Type:** Bool +**Default:** `False` +**Config default:** `false` +**Python & Config File Nam...
delete log file on first opening Do this to reduce massive log file sizes
@@ -57,6 +57,12 @@ from view_image import DialogCodeImage path = os.path.abspath(os.path.dirname(__file__)) home = os.path.expanduser('~') logfile = home + '/QualCoder.log' +# Delete log file on first opening so that file sizes are more managable +try: + os.remove(logfile) +except OSError: + pass + logging.basicConfig(...
remove "fuck these guys" from Robinhood I don't like Robinhood either, but not everyone who is going to use/see this in the future is going to have the same context. Let's keep the code clean and professional.
@@ -56,7 +56,7 @@ class PortfolioController: f"\nCurrent Brokers : {('None', ', '.join(broker_list))[bool(broker_list)]}" ) print("\nCurrently Supported :") - print(" rh Robinhood - fuck these guys") + print(" rh Robinhood") print(" alp Alpaca") print(" ally Ally Invest") print("\nCommands (login required):")
Update gpu-driver-install.sh Fixed the tab indentation
@@ -56,7 +56,9 @@ function skip_test() { fi fi if [[ $DISTRO == "suse_12" ]]; then - # skip others except SLES 12 SP2 + # skip others except SLES 12 SP2 BYOS and SAP, + # However, they use default-kernel and no repo to Azure customer. + # This test will fail until SUSE enables azure-kernel for GRID driver installation ...
Support running setup.py from other directories. This incorporates changes from by
# pyOCD debugger -# Copyright (c) 2012-2019 Arm Limited +# Copyright (c) 2012-2020 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,6 +19,11 @@ import os from setuptools import setup, find_packages import zipfile +# Get the directory containing...
ENH: suspender pre/post plans may be callables If so, they are called with no arguments. This allows adaptive pre/post plans
@@ -723,8 +723,7 @@ class RunEngine: def request_suspend(self, fut, *, pre_plan=None, post_plan=None, justification=None): - """ - Request that the run suspend itself until the future is finished. + """Request that the run suspend itself until the future is finished. The two plans will be run before and after waiting f...
random: fix type for sample Fixes
# ----- random classes ----- import _random -from typing import ( - Any, TypeVar, Sequence, List, Callable, AbstractSet, Union, - overload -) +from typing import AbstractSet, Any, Callable, Iterator, List, Protocol, Sequence, TypeVar, Union, overload -_T = TypeVar('_T') +_T = TypeVar("_T") +_T_co = TypeVar('_T_co', cov...
Use remote support for runs list Enables completion for remote option.
@@ -49,11 +49,7 @@ def runs_list_options(fn): runs_support.all_filters, click.Option(("--json",), help="Format runs as JSON.", is_flag=True), click.Option(("-v", "--verbose"), help="Show run details.", is_flag=True), - click.Option( - ("-r", "--remote",), - metavar="REMOTE", - help="List runs on REMOTE rather than loca...
Update devops-command-center.rst * Update devops-command-center.rst Added note about ad-hoc tasks. * Update source/administration/devops-command-center.rst
@@ -178,12 +178,16 @@ If the incident channel is private, an existing member of the incident channel m Working with tasks ~~~~~~~~~~~~~~~~~~ -Tasks can be part of pre-configured task templates in playbooks and they can also be added, edited, and removed as needed during an active incident. Any member of the incident ch...
Fix Type Error When PAR is Empty Hail should not signal an error if the PAR is empty. This change provides an explicit type to the PAR before handing it to filter_intervals.
@@ -215,7 +215,10 @@ def impute_sex(call, aaf_threshold=0.0, include_par=False, female_threshold=0.2, hl.map(lambda x_contig: hl.parse_locus_interval(x_contig, rg), rg.x_contigs), keep=True) if not include_par: - mt = hl.filter_intervals(mt, rg.par, keep=False) + interval_type = hl.tarray(hl.tinterval(hl.tlocus(rg))) +...
Add a note when type hint is provided to DataFrame.apply This PR adds some documentations for the fact that index is switched to the default index when type hints are specified. See also
@@ -2062,23 +2062,27 @@ defaultdict(<class 'list'>, {'col..., 'col...})] potentially expensive, for instance, when the dataset is created after aggregations or sorting. - To avoid this, specify return type in ``func``, for instance, as below: + To avoid this, specify the return type as `Series` or scalar value in ``fun...
improve import of rqda date Hours was missing the first digit of 2 digit hours
@@ -95,16 +95,20 @@ class Rqda_import(): return: standard format date """ - yyyy = r_date[-4:] # remove day string + yyyy = r_date[-4:] months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] mm = str(months.index(r_date[4:7]) + 1) if len(mm) == 1: mm = "0" + mm # TODO check if day...
schemas/journal: All relevant events already have SystemAddress So there's no need to document it as an augmentation. This was an error based on examining the EDMC code.
@@ -76,11 +76,6 @@ You MUST add a `StarSystem` key/value pair representing the name of the system this event occurred in. Source this from either `Location`, `FSDJump` or `CarrierJump` as appropriate. -#### SystemAddress -You MUST add a `SystemAddress` key/value pair representing the numerical ID -of the system this ev...
Fix assignment of `flow` or `values` in constructor The `values` parameter always won, even if it wasn't supplied. This is wrong. Instead, the parameter which is supplied and therefore non-`Null` should be the only one which is set.
@@ -276,8 +276,7 @@ class Edge(Node): if input is None or output is None: self._delay_registration_ = True super().__init__(label=Edge.Label(input, output)) - self.flow = flow - self.values = values + self.values = values if values is not None else flow if input is not None and output is not None: input.outputs[output]...
FIX deleting instances from events with multiple EXDATEs fixes
@@ -109,6 +109,7 @@ def expand(vevent, href=''): dtstartl = {vevent['DTSTART'].dt} def get_dates(vevent, key): + # TODO replace with get_all_properties dates = vevent.get(key) if dates is None: return @@ -271,62 +272,46 @@ def invalid_timezone(prop): return False -def _add_exdate(vevent, instance): - """remove a recurr...
corrected grammatical error in readme fixed a grammatical error in readme
@@ -44,7 +44,7 @@ Biblatex entry: ## Community -You can use Gitter to communicate with people who also interested in Auto-Keras. +You can use Gitter to communicate with people who are also interested in Auto-Keras. <a href="https://gitter.im/autokeras/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_co...
Small fixes in test pool (windows) * Small fixes. Updated versions numbers and removing an odd -1. * Small fixes * Format fixing. Ofc. * Added missing import.
@@ -7,7 +7,7 @@ import logging from tqdm import tqdm -from ansys.mapdl.core import launch_mapdl +from ansys.mapdl.core import launch_mapdl, get_ansys_path from ansys.mapdl.core.misc import threaded from ansys.mapdl.core.misc import create_temp_dir, threaded_daemon from ansys.mapdl.core.launcher import (
update INVENTREE_LOG_LEVEL param Turn INVENTREE_DEBUG_LEVEL => INVENTREE_LOG_LEVEL
# Set DEBUG to True for a development setup INVENTREE_DEBUG=True -INVENTREE_DEBUG_LEVEL=INFO +INVENTREE_LOG_LEVEL=INFO # Database configuration options # Note: The example setup is for a PostgreSQL database (change as required)
refactor: Rename bugdown to markdown in message_edit.py. This commit is part of series of commits aimed at renaming bugdown to markdown.
@@ -8,7 +8,6 @@ from django.utils.timezone import now as timezone_now from django.utils.translation import ugettext as _ from zerver.decorator import REQ, has_request_variables -from zerver.lib import markdown as bugdown from zerver.lib.actions import ( do_delete_messages, do_update_message, @@ -17,6 +16,7 @@ from zerv...
[modules/memory] Use /proc/meminfo instead of psutil Try to be more accurate in calculating memory by using the /proc/meminfo interface directly. fixes
@@ -9,22 +9,24 @@ Parameters: * memory.usedonly: Only show the amount of RAM in use (defaults to False). Same as memory.format="{used}" """ -try: - import psutil -except ImportError: - pass +import re import bumblebee.util import bumblebee.input import bumblebee.output import bumblebee.engine +class Container(object): ...
fix PE doc, add a note Because WINDOWS does not support NCCL. It will raise an error when users try to run the multi-GPUs program on WINDOWS machine. So add a note to remind users to replace parallel executor to executor.
@@ -16,6 +16,8 @@ Image classification, which is an important field of computer vision, is to clas Running sample code in this directory requires PaddelPaddle Fluid v0.13.0 and later, the latest release version is recommended, If the PaddlePaddle on your device is lower than v0.13.0, please follow the instructions in [...
Add type and example for 'class_order' in ClassIncremental. Close
@@ -22,6 +22,7 @@ class ClassIncremental(_BaseCLLoader): Desactivated if `increment` is a list. :param transformations: A list of transformations applied to all tasks. :param class_order: An optional custom class order, used for NC. + e.g. [0,1,2,3,4,5,6,7,8,9] or [5,2,4,1,8,6,7,9,0,3] """ def __init__( @@ -31,7 +32,7 ...
When not generated, raise a Program_Error in unparsers TN:
@@ -241,7 +241,7 @@ package ${ada_lib_name}.Analysis.Implementation is (Node : access ${root_node_value_type}) return String is abstract; % else: function Unparse (Node : access ${root_node_value_type}) return String is - ("Unparser not generated"); + (raise Program_Error with "Unparser not generated"); % endif % if ct...
a Auto, got moved after the execute and batch. o Origin, got spooled as part of auto. q Quit, got spooled as part of auto, or sets the flag if -a not set.
@@ -295,6 +295,7 @@ def run(): kernel_root.execute("Debug Device") if args.input is not None: + # Load any input file import os kernel_root.load(os.path.realpath(args.input.name)) @@ -306,9 +307,6 @@ def run(): device.setting(bool, "mock", True) device.mock = True - if args.quit: - device._quit = True - if args.set is ...
Provide fallback for disabled port security extension The push notification logic always assumed the port security object would exist but it is not present on the port when the extension is disabled. This defaults it to true like the server side code.[1] 1. Closes-Bug:
@@ -254,7 +254,8 @@ class CacheBackedPluginApi(PluginApi): 'allowed_address_pairs': [{'mac_address': o.mac_address, 'ip_address': o.ip_address} for o in port_obj.allowed_address_pairs], - 'port_security_enabled': port_obj.security.port_security_enabled, + 'port_security_enabled': getattr(port_obj.security, + 'port_secu...
[ReTrigger] Set default size if resize is less than 0 Make smallest resize smaller
@@ -175,8 +175,10 @@ class ReTrigger(getattr(commands, "Cog", object)): return msg def resize_image(self, size, image): - length, width = (32, 32) # Start with the smallest size we want to upload + length, width = (16, 16) # Start with the smallest size we want to upload im = Image.open(image) + if size <= 0: + size = ...
handler: do not validate the server certificate against the CA Otherwise rgw handler ends up with an error when using https.
@@ -44,11 +44,11 @@ check_socket() { check_for_curl_or_wget() { local i=$1 if ${DOCKER_EXECS[i]} command -v wget &>/dev/null; then - rgw_test_command="wget --tries 1 --quiet -O /dev/null" + rgw_test_command="wget --no-check-certificate --tries 1 --quiet -O /dev/null" elif ${DOCKER_EXECS[i]} command -v curl &>/dev/null;...
Fixed failing windows test This test works, but verifying the equality using elementwise comparison as done raises a DeprecationWarning which causes some tests to fail. Skipping this test for now.
@@ -168,6 +168,9 @@ def test_ne_shapes( tensor2 == tensor1 +@pytest.mark.skip( + reason="Testing this works causes a DeprecationWarning due to ele-wise comp" +) def test_eq_ndarray(row_data: List) -> None: """Test equality between a SEPT and a simple type (int, float, bool, np.ndarray)""" sub_row_data: SEPT = row_data[...
Add a TODO to track migrating Controller summaries/files when TrainerTpu checkpointing is on.
@@ -149,7 +149,8 @@ tf.flags.DEFINE_float('saver_keep_checkpoint_every_n_hours', None, tf.flags.DEFINE_bool( 'checkpoint_in_trainer_tpu', False, 'Whether to enable checkpointing in TrainerTpu, allowing for ' - 'operation without a separate Controller task.') + 'operation without a separate Controller task.' + 'TODO(b/1...
[bugfix] Do not iterate over sys.modules See:
@@ -507,7 +507,7 @@ def writelogheader() -> None: # imported modules log('MODULES:') - for module in sys.modules.values(): + for module in sys.modules.copy().values(): filename = version.get_module_filename(module) if not filename: continue
Coverage: add patterns to ignore some debug-related statements TN:
@@ -5,3 +5,12 @@ omit = */langkit/gdb/* */langkit/setup.py */langkit/stylechecks/* + +[report] +exclude_lines = + def __repr__ + raise NotImplementedError() + raise not_implemented_error + assert False + if .*\.verbosity\..*: + # no-code-coverage
Split up form and module rearrangements They're actually pretty different - doesn't make sense to pretend otherwise
@@ -311,13 +311,20 @@ hqDefine('app_manager/js/app_manager', function () { // another, do a check to see if this is the sortable list we're moving the item to if ($sortable.find(ui.item).length < 1) { return; } - var toModuleUid = $sortable.parents('.edit-module-li').data('uid'), + if ($sortable.hasClass('sortable-form...
Added min_order_pct (default 2%) to SimpleOrders. This stops multiple remedial orders flowing through when net_worth fluctuates.
@@ -248,6 +248,8 @@ class SimpleOrders(TensorTradeActionScheme): quantity = (size * instrument).quantize() + price = ep.price + value = size*float(price) if size < 10 ** -instrument.precision \ or value < min_order_pct*portfolio.net_worth: return []
Fix License in setup.py See the "license" field should be a single statement (content other than the description with double newlines breaks the metadata).
@@ -135,7 +135,7 @@ setup( }, include_package_data=True, install_requires=DEPS, - license=read("LICENSE"), + license="MIT License", zip_safe=False, keywords='simpleflow amazon swf simple workflow', classifiers=[
Fix - removed double copy of already copied file Fix - remove double creation of hardlink resulting in WindowError
@@ -544,9 +544,10 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): transfers = instance.data.get("transfers", list()) for src, dest in transfers: self.copy_file(src, dest) - if os.path.exists(dest): # TODO needs to be updated during site implementation integrated_file_sizes[dest] = os.path.getsize(dest) + # alre...
DOC: removed comment Removed outdated comment.
@@ -408,8 +408,6 @@ class TestNetCDF4Integration(object): if False """ - # TODO(#585): consider moving to class with netCDF tests - # Create an instrument object that has a meta with some # variables allowed to be nan within metadata when exporting self.testInst = pysat.Instrument('pysat', 'testing')
Clients: fix incorrect message about having replicas on tape. The message was printed even in cases when sources was initially empty. Also the sources list was changed while iterating over it. Fix this too.
@@ -1152,12 +1152,13 @@ class DownloadClient: # filtering out tape sources if self.is_tape_excluded: for file_item in file_items: - sources = file_item['sources'] - for src in file_item['sources']: + unfiltered_sources = copy.copy(file_item['sources']) + for src in unfiltered_sources: if src in tape_rses: - sources.rem...
Reset config changes in server unit tests Leaking config changes can make later tests accidentally depend on the test ordering, which can break running smaller subsets of the test suite and break tests when renaming.
@@ -71,6 +71,18 @@ def _create_report_finished_msg(status) -> ForwardMsg: class ServerTest(ServerTestCase): _next_report_id = 0 + def setUp(self) -> None: + self.original_ws_compression = config.get_option( + "server.enableWebsocketCompression" + ) + return super().setUp() + + def tearDown(self): + config.set_option( +...
Site.page_restrictions(): Do not raise NoPage Nonexistent pages can be protected, so treat all pages the same.
@@ -3148,8 +3148,6 @@ class APISite(BaseSite): def page_restrictions(self, page): """Return a dictionary reflecting page protections.""" - if not page.exists(): - raise NoPage(page) if not hasattr(page, '_protection'): self.loadpageinfo(page) return page._protection
Removed processing of edited commands Apparently this causes issues when links are added - and then previewed by discord - it counts as a message post and then edit - so things are processed twice when they're not supposed to be.
@@ -384,15 +384,13 @@ async def on_message(message): async def on_message_edit(before, message): # Run through the on_message commands, but on edits. if not message.server: - # This wasn't said in a server, process commands, then return - await bot.process_commands(message) + # This wasn't said in a server, return retu...
Grep fix for chaining Grep fix for chaining
@@ -356,17 +356,22 @@ def _grep(path, options = '' # prepare the command + cmd = None + if path: cmd = ( r'''grep {options} {pattern} {path}''' - .format( - options=options, - pattern=pattern, - path=path, - ) + .format(options=options, pattern=pattern, path=path,) ) + else: + # in stdin mode + options = [] if options ...
Warn against using workbench with the rest of lib Doing so may cause issues because the workbench overwrites the STIX Object mapping.
"cell_type": "markdown", "metadata": {}, "source": [ - "## Using A Workbench" + "## Using The Workbench" ] }, { "source": [ "Defaults can also be set for the [created timestamp](../api/datastore/stix2.workbench.rst#stix2.workbench.set_default_created), [external references](../api/datastore/stix2.workbench.rst#stix2.wo...
Minor update to fix crawler for worlnovel.online Sorting TOC by chapter number in title Fix error while getting chapter body because of change in novel site
@@ -7,6 +7,7 @@ import json import logging import re from ..utils.crawler import Crawler +from operator import itemgetter, attrgetter logger = logging.getLogger('WORLDNOVEL_ONLINE') search_url = 'https://www.worldnovel.online/?s=%s' @@ -85,10 +86,18 @@ class WorldnovelonlineCrawler(Crawler): chapters = soup.select('div...
remove gh_pages_master.yml CI remove CI badge update jsonschema workflow to push to 'pages' directory instead of 'pages/devel' and rename workflow name
-| |license| |docs| |codecov| |slack| |release| |installation| |regressiontest| |gh_pages_master| |gh_pages_devel| |checkurls| |dailyurlcheck| |codefactor| |blackformat| |black| |isort| |issues| |open_pr| |commit_activity_yearly| |commit_activity_monthly| |core_infrastructure| |zenodo| +| |license| |docs| |codecov| |sl...