message
stringlengths
13
484
diff
stringlengths
38
4.63k
adding logo for license, version, download, status add slack channel link
+| |license| |status| |versions| |downloads| + +.. |license| image:: https://img.shields.io/pypi/l/buildtest-framework.svg +.. |status| image:: https://img.shields.io/pypi/status/buildtest-framework.svg +.. |versions| image:: https://img.shields.io/pypi/pyversions/buildtest-framework.svg +.. |downloads| image:: https:/...
Fix broken link on installing Qiskit Terra from Source Fix broken link on how to install Qiskit Terra from source in the file CONTRIBUTING.md. Fixes
@@ -121,10 +121,8 @@ Issue #190: Short summary of the issue Installing Qiskit Terra from source ----------------------------------- - Please see the [Installing Qiskit Terra from -Source](https://qiskit.org/documentation/install/terra.html) section of -the Qiskit documentation. +Source](https://qiskit.org/documentation...
selector form fixed HG-- branch : feature/microservices
@@ -132,9 +132,8 @@ Ext.define("NOC.sa.managedobjectselector.Application", { { xtype: "fieldset", title: __("Filter by Object Attributes"), - layout: "hbox", defaults: { - labelAlign: "top", + labelAlign: "left", padding: 4 }, items: [ @@ -174,9 +173,8 @@ Ext.define("NOC.sa.managedobjectselector.Application", { { xtype...
function/FHNIntegrator: Update to devel version ("functions/FHNIntegrator: cast input to 1d array") ("function/FHNIntegrator: Make sure dv value is always a vector") both made local modifications that did not make it to devel. Revert back to devel version.
@@ -7703,7 +7703,10 @@ class FHNIntegrator(Integrator): # -------------------------------------------- #Gilzenrat paper - hardcoded for testing # val = (v - 0.5*w) - return np.broadcast_to(val, np.atleast_1d(variable).shape) + if not np.isscalar(variable): + val = np.broadcast_to(val, variable.shape) + + return val def...
cirrus CI build: fix docker context to make COPY instructions work see : > CIRRUS_DOCKER_CONTEXT: Docker build's context directory to use for Dockerfile as a CI environment. Defaults to project's root directory.
@@ -168,6 +168,7 @@ task: path: "contrib/build-wine/dist/*" env: CIRRUS_WORKING_DIR: /opt/wine64/drive_c/electrum + CIRRUS_DOCKER_CONTEXT: contrib/build-wine task: name: Android build @@ -206,6 +207,8 @@ task: - ./contrib/build-linux/appimage/make_appimage.sh binaries_artifacts: path: "dist/*" + env: + CIRRUS_DOCKER_CO...
DOC: add `printoptions` as a context manager to `set_printoptions` DOC: add `printoptions` as a context manager to `set_printoptions`
@@ -200,6 +200,8 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None, ----- `formatter` is always reset with a call to `set_printoptions`. + Use `printoptions` as a context manager to set the values temporarily. + Examples -------- Floating point precision can be set: @@ -239,6 +241,13 @@ def set_pri...
Added deprecation warning Added deprecation warning to untransform_grad method of NormalizationTransformer class. Related to issue
@@ -587,9 +587,10 @@ class NormalizationTransformer(Transformer): return z * y_stds def untransform_grad(self, grad, tasks): - """ - Undo transformation on gradient. - """ + """DEPRECATED. DO NOT USE.""" + logger.warning( + "NormalizationTransformer.untransform_grad is DEPRECATED and will be removed in a future version...
robocorp-code: update basic tutorial URL - Allows us to get rid of an old redirect
@@ -24,7 +24,7 @@ Note: the use of cloud-based orchestration in [Robocorp Cloud](https://robocorp. 1. Install this extension together with the [Robot Framework Language Server extension](https://marketplace.visualstudio.com/items?itemName=robocorp.robotframework-lsp). -1. Download [Robocorp VS Code extension - basic tu...
[Core] fix wrong memory size reporting The current resource reporting is run in OSS. Revert the change. For example it reported InitialConfigResources: {node:172.31.45.118: 1.000000}, {object_store_memory: 468605759.960938 GiB}, For 10GB memory object_store.
@@ -197,8 +197,7 @@ double ResourceSet::GetNumCpusAsDouble() const { std::string format_resource(std::string resource_name, double quantity) { if (resource_name == "object_store_memory" || resource_name.find(kMemory_ResourceLabel) == 0) { - // The memory resources (in 50MiB unit) are converted to GiB - return std::to_s...
Migrate from louie/dispatcher to eventdispatcher: media_renderer_client.py Add/fix module documentation and renames events as following: - Coherence.UPnP.DeviceClient.detection_completed => device_client_detection_completed
# http://opensource.org/licenses/mit-license.php # Copyright 2006, Frank Scholz <coherence@beebits.net> +# Copyright 2018, Pol Canelles <canellestudi@gmail.com> + +''' +:class:`MediaRendererClient` +---------------------------- + +A class representing an media renderer client device. +''' + +from eventdispatcher import...
Fixed Mouser API missing data cases No Availability declared No price list declared
@@ -214,7 +214,7 @@ class MouserPartSearchRequest(MouserBaseRequest): part_data = parts[0] # Merge for key in cleaned_data: - cleaned_data[key] = part_data[key] + cleaned_data[key] = part_data.get(key, cleaned_data[key]) return cleaned_data def print_clean_response(self): @@ -346,7 +346,7 @@ class api_mouser(distributo...
Close sys.stdin before assigning to it This is an attempt to fix issue (ResourceWarning: unclosed file). I cannot reproduce it myself, but closing sys.stdin before assigning to it seems to be the right thing to do.
@@ -360,6 +360,7 @@ def reader_process(file, file2, connections, queue, buffer_size, stdin_fd): and finally sends "poison pills" (the value -1) to all connections. """ if stdin_fd != -1: + sys.stdin.close() sys.stdin = os.fdopen(stdin_fd) try: with xopen(file, 'rb') as f:
CLN: Remove character Remove extra 9
@@ -189,4 +189,4 @@ https://github.com/statsmodels/statsmodels/issues .. |Conda Version| image:: https://anaconda.org/conda-forge/statsmodels/badges/version.svg :target: https://anaconda.org/conda-forge/statsmodels/ .. |License| image:: https://img.shields.io/pypi/l/statsmodels.svg - :9target: https://github.com/statsm...
Print more helpful error message for corrupt event fixes
@@ -218,9 +218,18 @@ class Event: @property def recurring(self): - return 'RRULE' in self._vevents[self.ref] or \ + try: + rval = 'RRULE' in self._vevents[self.ref] or \ 'RECURRENCE-ID' in self._vevents[self.ref] or \ 'RDATE' in self._vevents[self.ref] + except KeyError: + logger.fatal( + f"The event at {self.href} mig...
make 'is_active' of payment modifiers use the identifier instead of the namespace of the payment_provider (the latter is used by default nevertheless if there is no identifier set)
@@ -35,7 +35,7 @@ class PaymentModifier(BaseCartModifier): :returns: ``True`` if this payment modifier is active. """ assert hasattr(self, 'payment_provider'), "A Payment Modifier requires a Payment Provider" - return payment_modifier == self.payment_provider.namespace + return payment_modifier == self.identifier def i...
Minor updates to Install documentation Update Python download link Move jupyter server extension troubleshooting steps close to the expected result from "jupyter serverextension list" command.
@@ -16,11 +16,11 @@ limitations under the License. {% endcomment %} --> ## Installation -Elyra can be installed via PyPi: +Elyra can be installed via PyPI: ### Prerequisites -* [NodeJS 12+](https://nodejs.org/en/) -* [Python 3.X](https://www.anaconda.com/distribution/) +* [Node.js 12+](https://nodejs.org/en/) +* [Pytho...
Update README about python to use We now run python 3.6 in production and there are issues with marshmallow-sqlalchemy using 3.5.
@@ -12,7 +12,7 @@ Contains: ### Python version -This codebase is Python 3 only. At the moment we run 3.5 in production. You will run into problems if you try to use Python 3.4 or older, or Python 3.7 or newer. +This codebase is Python 3 only. At the moment we run 3.6 in production. You will run into problems if you try...
Removing invalid imports and urls patterns urls for upgrade_patch and upgrade_patch_retry were removed
@@ -29,7 +29,6 @@ from logical.views import database_details, database_hosts, \ database_credentials, database_resizes, database_backup, database_dns, \ database_metrics, database_destroy, database_delete_host, \ database_upgrade, database_upgrade_retry, database_resize_retry, \ - database_upgrade_patch, database_upgra...
Improve multiple create server tests multiple create server tests just verify the reservation id in response. Let's check whether the requested number of servers got created or not.
# under the License. from tempest.api.compute import base +from tempest.common import compute from tempest.lib import decorators @@ -21,13 +22,16 @@ class MultipleCreateTestJSON(base.BaseV2ComputeTest): @decorators.idempotent_id('61e03386-89c3-449c-9bb1-a06f423fd9d1') def test_multiple_create(self): - body = self.creat...
Avoid executing the cell that starts TensorBoard for docs generation. Why? TensorBoard integration is not yet supported in TF docs generation.
}, "outputs": [], "source": [ + "#docs_infra: no_execute\n", + "\n", "# Get the URI of the output artifact representing the training logs,\n", "# which is a directory\n", "model_dir = train_uri\n",
Update skfda/misc/metrics.py Fixing doctest
@@ -95,7 +95,7 @@ def vectorial_norm(fdatagrid, p=2): Examples: >>> from skfda.datasets import make_multimodal_samples - >>> from skfda.preprocessing.dim_reduction import vectorial_norm + >>> from skfda.misc.metrics import vectorial_norm First we will construct an example dataset with curves in :math:`\mathbb{R}^2`.
ENH: add full_output to f2py.compile fixes by providing a straightforward way to return the stdout/stderr from compiling the FORTRAN module to the caller
@@ -21,7 +21,8 @@ def compile(source, extra_args='', verbose=True, source_fn=None, - extension='.f' + extension='.f', + full_output=False ): """ Build extension module from a Fortran 77 source string with f2py. @@ -55,10 +56,19 @@ def compile(source, .. versionadded:: 1.11.0 + full_output : bool, optional + If True, re...
Removed the self.sig_close_split.emit() logic Replaced the signal by a slot that explicitely close the editorstack if it is closable.
@@ -463,7 +463,6 @@ class EditorStack(QWidget): edit_goto = Signal(str, int, str) sig_split_vertically = Signal() sig_split_horizontally = Signal() - sig_close_split = Signal() sig_new_file = Signal((str,), ()) sig_save_as = Signal() sig_prev_edit_pos = Signal() @@ -736,7 +735,7 @@ def create_shortcuts(self): context="...
Intents: initial setup For now, we require the privileged 'Guild Members' intent, to maintain all current functionality (e.g. Member convertors working with IDs). In the future, we may look into disabling this intent.
@@ -204,8 +204,18 @@ class SeasonalBot(commands.Bot): _allowed_roles = [discord.Object(id_) for id_ in MODERATION_ROLES] + +_intents = discord.Intents().all() +_intents.bans = False +_intents.integrations = False +_intents.invites = False +_intents.presences = False +_intents.typing = False +_intents.webhooks = False +...
Textual correction on TLS Authentication Correct wording on the TLS Authentication section of the configure.rst page.
@@ -238,7 +238,7 @@ TLS Authentication ------------------ Ray can be configured to use TLS on it's gRPC channels. -This has means that connecting to the Ray client on the head node will +This means that connecting to the Ray client on the head node will require an appropriate set of credentials and also that data excha...
opt_code_ada.mako: refactor references to the subparser TN:
-- Start opt_code -${parser.parser.generate_code()} - <% -parser_type = parser.parser.type +subparser = parser.parser + +parser_type = subparser.type if parser._booleanize: base = parser.booleanized_type if not base.is_bool_type: alt_true, alt_false = base._alternatives %> -if ${parser.parser.pos_var} = No_Token_Index ...
renamed parallel_measurement to parallel_meas for consistency reasons implemented WAT wait_time method
@@ -918,7 +918,7 @@ class AgilentB1500(Instrument): ###################################### @property - def parallel_measurement(self): + def parallel_meas(self): """ Enable/Disable parallel measurements. Effective for SMUs using HSADC and measurement modes 1,2,10,18. (``PAD``) """ @@ -926,8 +926,8 @@ class AgilentB1500...
Use IPv6 addresses with brackets also when not using hostnames Fixes using IPv6 address for master within minion configuration
@@ -1745,7 +1745,7 @@ def dns_check(addr, port, safe=False, ipv6=None): for h in hostnames: # It's an IP address, just return it if h[4][0] == addr: - resolved = addr + resolved = salt.utils.zeromq.ip_bracket(addr) break if h[0] == socket.AF_INET and ipv6 is True:
Update setup.py Update setup.py to find pip dependencies for > pip 10
@@ -24,8 +24,12 @@ import time from setuptools import find_packages from setuptools import setup -from pip.req import parse_requirements +try: # for pip >= 10 + from pip._internal.download import PipSession + from pip._internal.req import parse_requirements +except ImportError: # for pip <= 9.0.3 from pip.download impo...
Bugfix accept bytes as cookie value argument Werkzeug accepted either and dealt accordingly, now Quart does the same.
@@ -550,10 +550,10 @@ class Response(_BaseRequestResponse, JSONMixin): if self.automatically_set_content_length: self.headers['Content-Length'] = str(len(bytes_data)) - def set_cookie( + def set_cookie( # type: ignore self, key: str, - value: str='', + value: AnyStr='', max_age: Optional[Union[int, timedelta]]=None, ex...
use requests brings uniformity closes
# !!! This uses the https://newsapi.org/ api. TO comply with the TOU # !!! we must link back to this site whenever we display results. import json +import requests import webbrowser -from six import PY3 from colorama import Fore from plugin import plugin, require -if PY3: - import urllib.request -else: - import urllib ...
Update show_nbar.py Updated to remove pdb imports and changed keys to lower case as per request on naming standards
@@ -13,14 +13,14 @@ class ShowIpNbarDiscoverySchema(MetaParser): Any(): { 'protocol': { Any(): { - 'IN Packet Count': int, - 'OUT Packet Count': int, - 'IN Byte Count': int, - 'OUT Byte Count': int, - 'IN 5min Bit Rate (bps)': int, - 'OUT 5min Bit Rate (bps)': int, - 'IN 5min Max Bit Rate (bps)': int, - 'OUT 5min Max B...
BM - Add encoding as parameter for reading data files Add encoding as paramter for HIReader class, defaulted to latin-1. The DataReader class gets the encoding value for a specific manifest row and uses that value in its init.
@@ -26,18 +26,19 @@ class HIReader(object): File can be local (path_type="file") or remote (path_type="s3"). Note, local files are preferred when possible for faster processing time and lower bandwidth usage. """ - def __init__(self, path, path_type="file"): + def __init__(self, path, path_type="file", encoding="latin-...
refactor(cli): add back --version and remove subcommand required constraint these changes will apply when move into 2.0
@@ -20,10 +20,16 @@ data = { "arguments": [ {"name": "--debug", "action": "store_true", "help": "use debug mode"}, {"name": ["-n", "--name"], "help": "use the given commitizen"}, + { + "name": ["--version"], + "action": "store_true", + "help": "get the version of the installed commitizen", + }, ], "subcommands": { "tit...
Update elf_ransomware.txt Minus socks-proxy address, not an IoC.
@@ -27,7 +27,68 @@ sg3dwqfpnr4sl5hh.onion y7mfrrjkzql32nwcmgzwp3zxaqktqywrwvzfni4hm4sebtpw5kuhjzqd.onion # Reference: https://twitter.com/joakimkennedy/status/1268243062611984384 +# Reference: https://unit42.paloaltonetworks.com/ech0raix-ransomware-soho/ # Reference: https://www.virustotal.com/gui/file/88a73f1c1e5a7c92...
Better addon handling in Kubeflow addon As a workaround for specifically waits for enabled addons to finish setting up before proceeding to bootstrapping Juju. Also runs black formatter over kubeflow enable script and fixes lints
@@ -41,12 +41,12 @@ def run(*args, die=True, debug=False, stdout=True): else: raise - result_stdout = result.stdout.decode('utf-8') + result_stdout = result.stdout.decode("utf-8") if debug and stdout: print(result_stdout) if result.stderr: - print(result.stderr.decode('utf-8')) + print(result.stderr.decode("utf-8")) re...
re.search in function _regex_to_static() should support re.MULTILINE or cause bug modified: file.py
@@ -1555,7 +1555,7 @@ def _regex_to_static(src, regex): return None try: - src = re.search(regex, src) + src = re.search(regex, src, re.M) except Exception as ex: raise CommandExecutionError("{0}: '{1}'".format(_get_error_message(ex), regex))
TST: Fixup string cast test to not use `tiny` There is not much value in these values anyway probably, but tiny isn't reliably for double-double (maybe it should be, but that is a different issue). Fixup for and
@@ -90,8 +90,8 @@ def test_string_comparisons_empty(op, ufunc, sym, dtypes): def test_float_to_string_cast(str_dt, float_dt): float_dt = np.dtype(float_dt) fi = np.finfo(float_dt) - arr = np.array([np.nan, np.inf, -np.inf, fi.max, fi.tiny], dtype=float_dt) - expected = ["nan", "inf", "-inf", repr(fi.max), repr(fi.tiny)...
Check CERT_MANAGER_API if True or False Follow-up on "Change 529818" to check variable value "True" or "False". Related-bug:
@@ -57,7 +57,7 @@ if [ -n "$TRUST_ID" ]; then KUBE_CONTROLLER_MANAGER_ARGS="$KUBE_CONTROLLER_MANAGER_ARGS --cloud-config=/etc/kubernetes/kube_openstack_config --cloud-provider=openstack" fi -if [ -n "$CERT_MANAGER_API" ]; then +if [ "$(echo $CERT_MANAGER_API | tr '[:upper:]' '[:lower:]')" = "true" ]; then KUBE_CONTROLL...
Use full spacy pipeline for dependency parse needed for sentence tokenization
@@ -843,7 +843,7 @@ class RnnEntityGuesser(AbstractGuesser): guesser.learning_rate = params['learning_rate'] guesser.max_grad_norm = params['max_grad_norm'] guesser.model = torch.load(os.path.join(directory, 'rnn_entity.pt')) - guesser.nlp = spacy.load('en', create_pipeline=custom_spacy_pipeline) + guesser.nlp = spacy....
Removed the sorting of the input files, based on code review David was right in the code review - the user should be able to control the ordering. I also improved the task documentation a bit.
@@ -16,7 +16,7 @@ from robot.libraries.BuiltIn import RobotNotRunningError class RobotLibDoc(BaseTask): task_options = { "path": { - "description": "The path to the robot library to be documented. Can be a python file or a .robot file.", + "description": "The path to the robot library to be documented. Can be single a ...
Update Recursion.md Fixed the factorial function so that factorial(0) returns 1 (as it should)
@@ -39,7 +39,7 @@ For example, this function will perform multiplication by recursively adding : Exercise -------- -Define a new function called `factorial()` that will compute the factorial by recursive multiplication (5! = 5 x 4 x 3 x 2 x 1). +Define a new function called `factorial()` that will compute the factorial...
utils/doc: Add support for dicts to format literal Now supports cleaner outputing of python dicts
@@ -263,6 +263,9 @@ def format_literal(lit): return '``\'{}\'``'.format(lit) elif hasattr(lit, 'pattern'): # regex return '``r\'{}\'``'.format(lit.pattern) + elif isinstance(lit, dict): + content = indent(',\n'.join("{}: {}".format(key,val) for (key,val) in lit.iteritems())) + return '::\n\n{}'.format(indent('{{\n{}\n}...
fix direction of NZ exchange arrow North Island is generally to the east of South Island. Thus an arrow for transfer from North to South must point west :)
@@ -392,6 +392,6 @@ exports.addExchangesConfiguration = function(exchanges) { } exchanges['NZ-NZN->NZ-NZS'] = { lonlat: [174.424066, -41.140732], - rotation: 90 + rotation: -90 }; }
Minor Changes Made Code changed to check if directory exists under the name you need to check and if directory exists , output:"The directory exists" . No directory will be created.
# Description : Tests to see if the directory testdir exists, if not it will create the directory for you -import os # Import the OS module -DirCheck = raw_input("Please enter directory name to check : ") +import os #Import the OS Module +CheckDir = raw_input("Enter the name of the directory to check : ") print -print ...
Clear caches on DynamicRateDefinition deletion for completeness and to help with tests
@@ -10,6 +10,13 @@ class DynamicRateDefinition(models.Model): per_second = models.FloatField(default=None, blank=True, null=True) def save(self, *args, **kwargs): + self._clear_caches() + super().save(*args, **kwargs) + + def delete(self, *args, **kwargs): + self._clear_caches() + super().delete(*args, **kwargs) + + de...
Update setup.py add missing Python 3.7 tag
@@ -56,5 +56,6 @@ setup( 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ] )
Predicate: fix the generated debug image TN:
@@ -459,8 +459,8 @@ class Predicate(AbstractExpression): # Append the debug image for the predicate closure_exprs.append(untyped_literal_expr('"{}.{}"'.format( - self.pred_property.name.camel_with_underscores, - self.pred_property.struct.name.camel_with_underscores + self.pred_property.struct.name.camel_with_underscore...
add docker-ce to docker subtype grains check Fixes
@@ -699,9 +699,10 @@ def _virtual(osdata): with salt.utils.fopen('/proc/1/cgroup', 'r') as fhr: if ':/lxc/' in fhr.read(): grains['virtual_subtype'] = 'LXC' + dstrings = (':/system.slice/docker', ':/docker/', ':/docker-ce/') with salt.utils.fopen('/proc/1/cgroup', 'r') as fhr: fhr_contents = fhr.read() - if ':/docker/'...
[kern] Allow compiling kern tables with more than 64k entries Fixes
@@ -161,7 +161,7 @@ class KernTable_format_0(object): len(data) - 6 * nPairs) def compile(self, ttFont): - nPairs = len(self.kernTable) + nPairs = min(len(self.kernTable), 0xFFFF) searchRange, entrySelector, rangeShift = getSearchRange(nPairs, 6) searchRange &= 0xFFFF data = struct.pack(
some minor doc fixes to make the defaults clearer. (They're still pretty hard to navigate though.)
@@ -670,22 +670,25 @@ def process(configfile='salt://hubblestack_pulsar/hubblestack_pulsar_config.yaml * attrib - File metadata changed * close_nowrite - Unwritable file closed * close_write - Writable file closed - * create - File created in watched directory - * delete - File deleted from watched directory + * create...
Include the guild ID in mod-log embed. This gives easier access to the Guild ID in the place where you're most likely to want to use the whitelist command.
@@ -111,7 +111,7 @@ class Filtering(Cog): def _get_allowlist_items(self, allow: bool, list_type: str, compiled: Optional[bool] = False) -> list: """Fetch items from the allow_deny_list_cache.""" - items = self.bot.allow_deny_list_cache[f"{list_type}.{allow}"] + items = self.bot.allow_deny_list_cache.get(f"{list_type.up...
Remove broad-except pylint directive The block of code distinguishes among enough categories of exceptions that pylint doesn't feel the need to complain.
@@ -46,7 +46,6 @@ def run(): # handled only there; it is just reraised here. except KeyboardInterrupt as err: raise err - # pylint: disable=broad-except except BaseException as err: raise StratisCliActionError(command_line_args, result) from err except StratisCliActionError as err:
settings: Fix display_emoji_reaction_users org setting save/discard. Follow-up to commit The new display setting introduced in above commit was not registered properly and enabling/disabling it from Organization settings > Default user settings did not display a "Save/Discard" widget. This has been fixed by modifying t...
@@ -211,6 +211,9 @@ function get_subsection_property_elements(element) { // Because the emojiset widget has a unique radio button // structure, it needs custom code. const $color_scheme_elem = $subsection.find(".setting_color_scheme"); + const $display_emoji_reaction_users_elem = $subsection.find( + ".display_emoji_rea...
fixed crash when --domain not provided for rasa train command An Error message will be displayed in case of invalid domain file provided or no domain file provided at all for 'rasa train core' only
@@ -247,6 +247,13 @@ async def train_core_async( skill_imports = SkillSelector.load(config, stories) + if isinstance(domain, type(None)): + print_error( + "Core training is skipped because no domain was found. " + "Please specify a valid domain using '--domain' argument or check if provided domain file does exists" + )...
Fix typo ``Revision.commment`` to ``Revision.comment``
@@ -68,7 +68,7 @@ django-reversion changelog 3.0.0 - 2018-07-19 ------------------ -- **Breaking:** ``Revision.commment`` now contains the raw JSON change message generated by django admin, rather than +- **Breaking:** ``Revision.comment`` now contains the raw JSON change message generated by django admin, rather than ...
modify SelectToggle to use JSONEncoder so we can pass gettext_lazy text choices and fix spacing
@@ -9,6 +9,8 @@ from django.utils.safestring import mark_safe from django.utils.html import format_html, conditional_escape from django.utils.translation import gettext_noop +from corehq.util.json import CommCareJSONEncoder + from dimagi.utils.dates import DateSpan from corehq.apps.hqwebapp.templatetags.hq_shared_tags ...
bugfix set_tags Bugfix to `BaseObject.clone_tags`: `set_tags` was called incorrectly from `clone_tags` without the kwargs symbol.
@@ -190,7 +190,7 @@ class BaseObject(_BaseEstimator): update_dict = {key: tags_est[key] for key in tag_names} - self.set_tags(update_dict) + self.set_tags(**update_dict) return self
Fix - handle inputLinks and hero version Hero version doesn't store inputLinks, but with changes in comparing it should work.
@@ -164,7 +164,6 @@ def get_linked_representation_id( # Recursive graph lookup for inputs {"$graphLookup": graph_lookup} ] - conn = get_project_connection(project_name) result = conn.aggregate(query_pipeline) referenced_version_ids = _process_referenced_pipeline_result( @@ -213,7 +212,7 @@ def _process_referenced_pipel...
feat(stock_wc_hot_top): add stock_wc_hot_top interface add stock_wc_hot_top interface
@@ -369,13 +369,13 @@ def stock_zh_a_minute( if __name__ == "__main__": - stock_zh_a_daily_hfq_df_one = stock_zh_a_daily(symbol="sz000001", start_date="20201103", end_date="20201104", adjust="qfq") + stock_zh_a_daily_hfq_df_one = stock_zh_a_daily(symbol="sz000002", start_date="20201103", end_date="20201104", adjust="qf...
tools: Rename server to zulip in fetch-contributor-data. This was missed out in
@@ -106,12 +106,12 @@ def update_contributor_data_file() -> None: with open(duplicate_commits_file) as f: duplicate_commits = json.load(f) for committer in duplicate_commits: - if committer in contributor_username_to_data and contributor_username_to_data[committer].get('server'): - total_commits = contributor_username_...
Update vidar.txt > netwire
@@ -1419,33 +1419,3 @@ sinelnikovd.ru wzqyuwtdxyee.ru zpuxmwmwdxxk.ru zyzkikpfewuf.ru - -# Reference: https://www.virustotal.com/gui/file/196e5f9c769a45e6cebd587d193d53eb6aa8872ffb6f627988cb0ce457dad88e/detection - -riotvalorantgame.com - -# Reference: https://www.virustotal.com/gui/file/be4a188bcaa832f0adc28a0ab376a0b...
Support PyG Linear in GraphGym pipeline. Lazy init can be used in GraphGym now
@@ -3,6 +3,7 @@ from dataclasses import dataclass, replace import torch import torch.nn as nn +from torch_geometric.nn import Linear as Linear_pyg import torch.nn.functional as F import torch_geometric as pyg @@ -161,7 +162,7 @@ class Linear(nn.Module): """ def __init__(self, layer_config: LayerConfig, **kwargs): super...
works ok, but still backup project first. Works by looking for identical String segments in the replacement file to match codings, annotations. If the replacement file contains multiple matches, then only the first match is used.
@@ -101,10 +101,11 @@ class ReplaceTextFile: return self.get_codings_annotations_case() self.load_file_text() - self.update_annotation_positions() - self.update_code_positions() - self.update_case_positions() - Message(self.app,_("File replaced"), _("Text file replaced.")).exec_() + errs = self.update_annotation_positi...
Optionally create items in harvest_template.py Needs both WikidataBot and harvest_template.py rewrites. Depends-On: Depends-On:
@@ -21,6 +21,10 @@ These command line parameters can be used to specify which pages to work on: &params; +You can also use additional parameters: + +-create Create missing items before importing. + The following command line parameters can be used to change the bot's behavior. If you specify them before all parameters,...
New entry: young woman shot in the head by rubber bullet Added a new entry.
@@ -29,3 +29,12 @@ While the prison transport vehicle was being pushed around, the police open fire **Links** * https://old.reddit.com/r/PublicFreakout/comments/gutezm/multiple_kentucky_state_police_troopers_tackled/ + +### Young woman shot in the head by a rubber bullet | May 30th + +A young woman was injured by a rub...
measurement location routine Added routine to calculate lat/lon of points measured by the JRO ISR using the instrument's data keys.
@@ -200,3 +200,48 @@ def clean(self): self.data = self[idx] return + +def calc_measurement_loc(self): + """ Calculate the instrument measurement location in geographic coordinates + + Returns + ------- + Void : adds 'gdlat#', 'gdlon#' to the instrument, for all directions that + have azimuth and elevation keys that mat...
Update morphology.py Fixing backprop problems
@@ -71,7 +71,7 @@ def dilation( neighborhood = torch.zeros_like(kernel) neighborhood[kernel == 0] = -max_val else: - neighborhood = structuring_element + neighborhood = structuring_element.clone() neighborhood[kernel == 0] = -max_val output = output.unfold(2, se_h, 1).unfold(3, se_w, 1) @@ -148,7 +148,7 @@ def erosion(...
Update robotstxt.py Add message to IgnoreRequest exception so that it can be detectedin the errbak method of a spider
@@ -45,7 +45,7 @@ class RobotsTxtMiddleware(object): to_native_str(self._useragent), request.url): logger.debug("Forbidden by robots.txt: %(request)s", {'request': request}, extra={'spider': spider}) - raise IgnoreRequest() + raise IgnoreRequest("Forbidden by robots.txt") def robot_parser(self, request, spider): url = ...
bugfix Fixed bug introduced into scale_units, which didn't account for the key difference between the accepted units dictionary and the scales dicitonary.
@@ -689,8 +689,11 @@ def scale_units(out_unit, in_unit): if in_key != out_key: raise ValueError('Cannot scale {:s} and {:s}'.format(out_unit, in_unit)) + # Recast units as keys for the scales dictionary + out_key = out_unit + in_key = in_unit - unit_scale = scales[out_unit.lower()] / scales[in_unit.lower()] + unit_scal...
Fix "trove module-instances" command which don't work. The "trove module-instances" command don't work. cat <<EOF>> myping.data message=Module.V1 EOF trove module-create myping ping myping.data trove module-apply \ myping trove module-instances myping ERROR: Module with ID \ could not be found. Closes-Bug:
@@ -310,6 +310,8 @@ def _print_instances(instances, is_admin=False): setattr(instance, 'datastore_version', instance.datastore['version']) setattr(instance, 'datastore', instance.datastore['type']) + if not hasattr(instance, 'region'): + setattr(instance, 'region', '') fields = ['id', 'name', 'datastore', 'datastore_ve...
Update README.md Added environmental variable setup in windows
@@ -60,7 +60,7 @@ Temporarily set the environment variable(accesible only during the current cli s ```bash set SENDGRID_API_KEY=YOUR_API_KEY ``` -Permanently set the environment variable: +Permanently set the environment variable(accessible in all subsequent cli sessions): ```bash setx SENDGRID_API_KEY "YOUR_API_KEY" `...
Fix Inotify FSStore throws an error when detecting inotify events, due to missing flag_to_human attribute.
@@ -69,7 +69,7 @@ from coherence.upnp.core import utils try: from twisted.internet.inotify import ( INotify, IN_CREATE, IN_DELETE, IN_MOVED_FROM, IN_MOVED_TO, - IN_ISDIR, IN_CHANGED) + IN_ISDIR, IN_CHANGED, _FLAG_TO_HUMAN) except Exception as msg: INotify = None no_inotify_reason = msg @@ -847,7 +847,7 @@ class FSStore...
refactor: add default to pop [skip ci]
@@ -354,7 +354,7 @@ def login(): args = frappe.form_dict ldap: LDAPSettings = frappe.get_doc("LDAP Settings") - user = ldap.authenticate(frappe.as_unicode(args.usr), frappe.as_unicode(args.pop("pwd"))) + user = ldap.authenticate(frappe.as_unicode(args.usr), frappe.as_unicode(args.pop("pwd", None))) frappe.local.login_m...
Update publish-flow-graphql.md Small bug fix: replace "branin" stuff (wrong) with "ocean-subgraph" / "data NFTs". Other minor tweaks to streamline UX
@@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0 # Quickstart: Publish & Consume Flow for GraphQL data type -This quickstart describes a flow to publish & consume GraphQL-style URIs. +This quickstart describes a flow to publish & consume GraphQL-style URIs. In our example, the data asset is a query to find data NFTs...
Add setup details Add details of prerequisites needed for development environment to function.
@@ -17,11 +17,15 @@ This is the open source repository for the free interactive tutorial websites: Please feel free to contribute your tutorials or exercises by sending a pull request and adding yourself on the list. +Developers will require the programming language Python https://www.python.org/ and the web framework ...
Fix vlan in Qtech.QSW2800 config parser HG-- branch : feature/microservices
@@ -170,8 +170,11 @@ class BaseQSW2800Parser(BaseParser): :param tokens: :return: """ - if "-" not in tokens[-1] or "database" not in tokens: + if "-" not in tokens[-1] and "database" not in tokens: self.get_vlan_fact(int(tokens[-1].strip())) + elif "-" in tokens[-1]: + for v in ranges_to_list(tokens[-1].strip()): + se...
Mathematicalize 2nd `ExtractionTurbineCHP` equation Besides adding one more symbol which needs to be explained, this also means we can put the timestep and variable quantification at the bottom to have it range over both equations. This means less repetition, which IMHO is easier to understand and less error prone.
@@ -894,7 +894,14 @@ class ExtractionTurbineCHPBlock(SimpleBlock): & f(i, n, t) = \frac{(f(n, o_m, t) + f(n, o_t, t) \cdot I_{mfl}(n, t))} - {E_c(n, t)} \\ + {E_c(n, t)}. + + Out flow relation :attr:`om.ExtractionTurbineCHP.relation[i,o,t]` + .. math:: + & + f(n, o_m, t) = f(n, o_t, t) \cdot + \frac{\eta(n, o_m, t)} + ...
misc/rewriting: fix coding style issue TN:
with Ada.Text_IO; use Ada.Text_IO; with Libfoolang.Analysis; use Libfoolang.Analysis; -with Libfoolang.Rewriting; use Libfoolang.Rewriting; with Libfoolang.Common; +with Libfoolang.Rewriting; use Libfoolang.Rewriting; with Process_Apply;
include actual exception type and message in bug report tickets and format it the way the python shell does
@@ -80,6 +80,22 @@ def is_deploy_in_progress(): return cache.get(DEPLOY_IN_PROGRESS_FLAG) is not None +def format_traceback_the_way_python_does(type, exc, tb): + """ + Returns a traceback that looks like the one python gives you in the shell, e.g. + + Traceback (most recent call last): + File "<stdin>", line 2, in <mod...
Redirect + snackbar notification on resource selection save. Moving resource array shaping responsibility to template. Adding light validation.
@@ -4,6 +4,7 @@ import { setClassState } from './main'; import { LearnerGroupResource, LessonResource, ContentNodeResource } from 'kolibri.resources'; import { ContentNodeKinds } from 'kolibri.coreVue.vuex.constants'; import { createTranslator } from 'kolibri.utils.i18n'; +import every from 'lodash/every'; const transl...
fix: correct stacklevel for warnings Stacklevel=2 just points to frame that called warning and not frame where it originated. This frame is useless in most cases as you can just `grep` for it instead of looking at log. stacklevel=3 gives frame which is calling the code with warnings. [skip ci]
@@ -59,7 +59,7 @@ def log(message, colour=""): print(colour + message + end_line) -def warn(message, category=None, stacklevel=2): +def warn(message, category=None, stacklevel=3): from warnings import warn warn(message=message, category=category, stacklevel=stacklevel)
More readable, link to log of example test suite I really have to break my markdown habits!
@@ -13,15 +13,12 @@ Introduction :target: https://travis-ci.org/adafruit/Adafruit__Micropython_Blinka :alt: Build Status -Description -=========== - This repository contains a selection of packages mirroring the CircuitPython API -on hosts running micropython. At the time of writing drafts exist for +on hosts running m...
Add more log messages around exiting This is to help understand ongoing issues with parsl not exiting cleanly / hanging at exit.
@@ -1075,6 +1075,7 @@ class DataFlowKernel(object): logger.info("Closing flowcontrol") self.flowcontrol.close() + logger.info("Terminated flow control") logger.info("Scaling in and shutting down executors") @@ -1093,14 +1094,17 @@ class DataFlowKernel(object): self.monitoring.send(MessageType.BLOCK_INFO, msg) logger.in...
Handle empty yaml documents in annotations When a service annotation has an empty yaml document, ambassador is crashlooping. This can happen when a developer is commenting the yaml doc for testing, or with a bad deployment. Ambassador should not crash in this case and continue to process the other documents.
@@ -856,7 +856,7 @@ class ResourceFetcher: else: self.logger.debug(f"not saving K8s Service {resource_name}.{resource_namespace} with no ports") - objects: List[Any] = [] + result: List[Any] = [] if annotations: if (self.filename is not None) and (not self.filename.endswith(":annotation")): @@ -866,15 +866,19 @@ class ...
[BUG] Fixing overlap in `NaiveVariance` train/test set due to inclusive indexing for timestamp limits Fixes issue Pandas treats slicing with integer vs timestamp index / period index differently (the first has an exclusive end and the second inclusive). Use of `get_slice` in `NaiveVariance` ensures that both are exclus...
@@ -19,6 +19,7 @@ import numpy as np import pandas as pd from scipy.stats import norm +from sktime.datatypes._utilities import get_slice from sktime.forecasting.base._base import DEFAULT_ALPHA, BaseForecaster from sktime.forecasting.base._sktime import _BaseWindowForecaster from sktime.forecasting.compose import Column...
Update export_tflite_ssd_graph_lib.py Correcting comments
@@ -41,7 +41,7 @@ def get_const_center_size_encoded_anchors(anchors): boxes Returns: - encoded_anchors: a float32 constant tensor of shape [4, num_anchors] + encoded_anchors: a float32 constant tensor of shape [num_anchors, 4] containing the anchor boxes. """ anchor_boxlist = box_list.BoxList(anchors) @@ -83,10 +83,10 ...
[cleanup] use codes instead of languages_by_size languages_by_size was never sorted by site size but contains the site codes in alphabetical order. Use codes tuple instead to hold the site codes Create a class property for languages_by_size for compatibility purpose
@@ -18,14 +18,20 @@ class Family(family.SubdomainFamily, family.FandomFamily): name = 'wowwiki' domain = 'wowwiki.fandom.com' - languages_by_size = [ + codes = ( 'ar', 'cs', 'da', 'de', 'el', 'en', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hu', 'is', 'it', 'ja', 'ko', 'lt', 'lv', 'nl', 'nn', 'no', 'pl', 'pt', 'pt-br', 'ru',...
[dagit] Store whitespace state in localStorage ## Summary Resolves Track the "toggle whitespace" launchpad setting in localStorage. ## Test Plan View launchpad, turn on whitespace visibility. Reload page, verify persistence. Turn it off, repeat, verify same.
@@ -33,6 +33,7 @@ import { responseToYamlValidationResult, } from '../configeditor/ConfigEditorUtils'; import {isHelpContextEqual} from '../configeditor/isHelpContextEqual'; +import {useStateWithStorage} from '../hooks/useStateWithStorage'; import {DagsterTag} from '../runs/RunTag'; import {RepositorySelector} from '.....
no longer accept HTML entities in xml files the script that produces these files has been updated to produce utf8 rather HTML entities.
@@ -17,12 +17,6 @@ end def load_volume_xml(xml_data) xml_data.force_encoding('UTF-8').encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => '') - xml_data.gsub!(/&amp;/, '&amp;amp;') # three chars that need to stay - xml_data.gsub!(/&gt;/, '&amp;gt;') # escaped in xml - xml_data.gsub!(/&lt;/, '&amp;lt;'...
Strip splitted list And not initial string
@@ -43,7 +43,7 @@ AUTH_MODULES = { def generate_auth_options(auth_list): auth_options = {} - methods = auth_list.strip().split(',') + methods = [item.strip() for item in auth_list.split(',')] for m in methods: if m in AUTH_MODULES: auth_options[m] = AUTH_MODULES[m]
change mode At Snwp=0, we have no invasion sequence, so we won't calculate Keff for that point. (masking for calculation of the saturation points is based on inv_seq<i)
@@ -89,11 +89,11 @@ class RelativePermeability(GenericAlgorithm): wp = self.project[self.settings['wp']] modelwp = models.physics.multiphase.conduit_conductance wp.add_model(model=modelwp, propname=prop, - throat_conductance=prop_q, mode='loose') + throat_conductance=prop_q, mode='medium') nwp = self.project[self.setti...
Remove test_generic_storage_with_old_parameters With explicit kwargs, the test will no longer be needed.
@@ -97,37 +97,6 @@ def test_generic_storage_4(): ) -def test_generic_storage_with_old_parameters(): - deprecated = { - "nominal_capacity": 45, - "initial_capacity": 0, - "capacity_loss": 0, - "capacity_min": 0, - "capacity_max": 0, - } - # Make sure an `AttributeError` is raised if we supply all deprecated - # paramete...
Add ordered list styling for /help/ pages. This adds a styling that puts the numbers in a Zulip brand green bubble with white text for the number.
@@ -57,10 +57,51 @@ body { font-size: 17px; } -li { +.markdown ul, +.markdown ol { + margin-left: 30px; +} + +.markdown li { line-height: 150%; } +.markdown ol { + counter-reset: item; + list-style: none; +} + +.markdown ol li { + counter-increment: item; + margin-bottom: 5px; +} + +.markdown ol li:before { + content: ...
integrations: Update HomeAssistant Documentation. I have updated the docs for the homeassistant integration to include numbers to increase visibility. Fixies part of
-{!create-stream.md!} +1. {!create-stream.md!} -Next, on your {{ settings_html|safe }}, create a bot and +1. Next, on your {{ settings_html|safe }}, create a bot and note its email and API key. -In Home Assistant, you need to add the `notify` service to your +1. In Home Assistant, you need to add the `notify` service t...
Bugfix be clear about header encoding latin1 is technically allowed.
@@ -40,7 +40,7 @@ class ASGIHTTPConnection: headers = CIMultiDict() headers['Remote-Addr'] = (self.scope.get('client') or ['<local>'])[0] for name, value in self.scope['headers']: - headers.add(name.decode().title(), value.decode()) + headers.add(name.decode("latin1").title(), value.decode("latin1")) if self.scope['htt...
utils/files remove temp file upon move failure Fixes
@@ -26,6 +26,16 @@ REMOTE_PROTOS = ('http', 'https', 'ftp', 'swift', 's3') VALID_PROTOS = ('salt', 'file') + REMOTE_PROTOS +def __clean_tmp(tmp): + ''' + Remove temporary files + ''' + try: + salt.utils.rm_rf(tmp) + except Exception: + pass + + def guess_archive_type(name): ''' Guess an archive type (tar, zip, or rar) ...
Add the changelog entry Add the changelog entry about the addition of nologo to RCFLAGS in MSVC tool.
@@ -38,6 +38,8 @@ RELEASE 3.0.5.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE From Bernhard M. Wiedemann: - Do not store build host+user name if reproducible builds are wanted + From Maciej Kumorek: + - Update the MSVC tool to include the nologo flag by default in RCFLAGS RELEASE 3.0.4 - Mon, 20 Jan 2019 22:49:27 +00...
MockBot needs to be aware of redis_ready Forgot to update the additional_spec_asyncs when changing the name of this Bot attribute to be public.
@@ -287,7 +287,7 @@ class MockBot(CustomMockMixin, unittest.mock.MagicMock): For more information, see the `MockGuild` docstring. """ spec_set = Bot(command_prefix=unittest.mock.MagicMock(), loop=_get_mock_loop()) - additional_spec_asyncs = ("wait_for", "_redis_ready") + additional_spec_asyncs = ("wait_for", "redis_rea...
[BUG] fixed loc/iloc indexing bug in nested_df_has_nans This PR fixes the following bug: The `_nested_dataframe_has_nans` utility function did not work for nested data frames where index was not integer starting at zero - fixed replacing `loc` indexing by `iloc`.
@@ -278,11 +278,11 @@ def _nested_dataframe_has_nans(X: pd.DataFrame) -> bool: """ cases = len(X) dimensions = len(X.columns) - for i in range(0, cases): - for j in range(0, dimensions): + for i in range(cases): + for j in range(dimensions): s = X.iloc[i, j] - for k in range(0, s.size): - if pd.isna(s[k]): + for k in r...