message
stringlengths
13
484
diff
stringlengths
38
4.63k
Update paper.bib fix bug in one ref
Journal = {Frontiers in Marine Science, section Ocean Observation}, Title = {{Argo} 1999-2019: two million temperature-salinity profiles and subsurface velocity observations from a global array of profiling floats}, Volume = {in press}, - Doi = {10.3389/fmars.2020.00700} + Doi = {10.3389/fmars.2020.00700}, Year = {2020...
alert-words: Fix broken alert word UI. This fixes the alert word UI in settings by updating the CSS property referenced in the alert_word_settings_item.handlebars file. Fixes
</div> </div> {{else}} - <div class="alert-word-information-box list-container"> + <div class="alert-word-information-box grey-bg"> <div class="alert_word_listing"> <span class="value">{{word}}</span> </div>
webpack: Restart webpack-dev-server on config file changes. This should make the run-dev.py user experience a lot nicer when switching branches away from a branch that is at least as new as this commit, since we won't need to manually restart run-dev.py to restart webpack. Fixes
@@ -4,6 +4,8 @@ import argparse import os import sys import json +import subprocess +import pyinotify if False: from typing import NoReturn @@ -33,7 +35,7 @@ def build_for_prod_or_casper(quiet): os.execvp(webpack_args[0], webpack_args) def build_for_dev_server(host, port, minify, disable_host_check): - # type: (str, st...
Improve cache iteration speed getitem based iteration included operations that aren't necessary when iterating over the cache continuously. Adding an iter method to the class seems to have improved iteration speed by several orders of magnitude.
@@ -170,6 +170,16 @@ class MessageCache: else: raise TypeError(f"cache indices must be integers or slices, not {type(item)}") + def __iter__(self) -> t.Iterator[Message]: + if self._is_empty(): + return + + if self._start < self._end: + yield from self._messages[self._start:self._end] + else: + yield from self._message...
Fix typo in Subject sidebar view [#OSF-8284]
{% if perms.osf.view_metrics %} <li><a href="{% url 'metrics:metrics' %}"><i class='fa fa-link'></i> <span>OSF Metrics</span></a></li> {% endif %} - {% if perms.osf.view_subjects%} + {% if perms.osf.view_subject%} <li><a href="{% url 'subjects:list' %}"><i class='fa fa-link'></i> <span>OSF Subjects</span></a></li> {% e...
DOC: Make sure tutorial images are included notebooks that include local images were converted into html with missing images because: 1. plotnine-examples did not include tutorial/images as part of the package data. 2. The link_to_tutorials function did not search for images to include. Both have been resolved.
@@ -462,19 +462,30 @@ numpydoc_xref_ignore = {'type', 'optional', 'default'} def link_to_tutorials(): # Linking to the directory does not work well with # nbsphinx. We link to the files themselves - from glob import glob + from pathlib import Path, PurePath from plotnine_examples.tutorials import TUTPATH - dest_dir = o...
[App] Fixing race condition while setting servers to be free for next batch in the Loadbalancer rece condition fix when setting server to be free for next request
@@ -188,12 +188,6 @@ class _LoadBalancer(LightningWork): timeout=self._timeout_inference_request, headers=headers, ) as response: - # resetting the server status so other requests can be - # scheduled on this node - if server_url in self._server_status: - # TODO - if the server returns an error, track that so - # we do...
Prepare 2.2.1rc2 [ci skip-rust] [ci skip-build-wheels]
@@ -6,6 +6,12 @@ This is the first release to require having a Python 3.7 or 3.8 interpreter to r https://raw.githubusercontent.com/pantsbuild/setup/2f079cbe4fc6a1d9d87decba51f19d7689aee69e/pants` to update your `./pants` script to choose the correct interpreter. +## 2.2.1rc2 (Mar 17, 2021) + +### Bug fixes + +* Upgrad...
Don't apply no_completion_scopes behaviour unless enabled Also for
@@ -199,6 +199,10 @@ class CompletionHandler(sublime_plugin.ViewEventListener): debug('could not find completion item for inserted "{}"'.format(inserted)) def on_query_completions(self, prefix, locations): + if not self.initialized: + self.initialize() + + if self.enabled: if prefix != "" and self.view.match_selector(l...
Going back listing service in app.config The listing service was moved to Flask 'g' but that didn't work correctly. In particular it worked during tests but not when actually running the app and making requests through the browser.
@@ -33,8 +33,7 @@ def create_web_app() -> Flask: Base(app) app.register_blueprint(ui.blueprint) - with app.app_context(): - g.listing_service = FakeListingFilesService() + app.config['listing_service'] = FakeListingFilesService() ct_url_for = partial(create_ct_url, app.config.get( 'CLICKTHROUGH_SECRET'), url_for)
fix dd arguments count=0 and seek=big doesn't work on all platforms and can result in a 0 sized file. switch to using /dev/zero and a big block size, count =1
@@ -128,7 +128,7 @@ def sriov_vf_connection_test( dest_ssh.enable_public_key(source_ssh.generate_key_pairs()) # generate 200Mb file - source_node.execute("dd if=/dev/urandom of=large_file bs=100 count=0 seek=2M") + source_node.execute("dd if=/dev/zero of=large_file bs=200M count=1") max_retry_times = 10 for _, source_n...
Prevent filename glob expansion in _msg_opts in rosbash The `find` argument glob is not properly quoted resulting in bash filename expansion. This leads to incorrect `find` calls. This fixes issue
@@ -369,7 +369,7 @@ function _msg_opts { else path=$(rospack find ${pkgname}) if [ -d ${path}/msg ]; then - echo $(find -L ${path}/msg -maxdepth 1 -mindepth 1 -name *.msg ! -regex ".*/[.][^./].*" -print0 | tr '\000' '\n' | sed -e "s/.*\/\(.*\)\.msg/${pkgname}\/\1/g") + echo $(find -L ${path}/msg -maxdepth 1 -mindepth 1...
add python3 instruction to README Summary: add python3 instruction to README
@@ -20,7 +20,11 @@ For mac users, we recommend using [Anaconda](https://www.continuum.io/downloads) BlueWhale runs on any platform that supports caffe2. To install caffe2, follow this tutorial: [Installing Caffe2](https://caffe2.ai/docs/getting-started.html). -You may need to override caffe2's cmake defaults to use hom...
Update source.py Added a check for self.tess_mag. This is not necessarily a list, hence raised a TypeError if it was only an int. Only subscribes if it is a list now.
@@ -211,8 +211,9 @@ class Source(object): assert False, ("Source: one of the following keywords must be given: " "tic, gaia, coords, fn.") - + if isinstance(self.tess_mag,list): self.tess_mag = self.tess_mag[0] + self.locate_on_tess() self.tesscut_size = 31
added zone config zone attirbute check - updated default.rb to check for the zone param in the zone_config class if zone config is enabled. this prevents an empty zone file from creating if there is no zone set
@@ -19,6 +19,10 @@ region = node['bcpc']['cloud']['region'] zone_config = ZoneConfig.new(node, region, method(:data_bag_item)) if zone_config.enabled? && worknode? + if zone_config.zone.nil? + raise 'zones are enabled but this node is not configured to be in a zone' + end + unless File.file?(zone_config.state_file) Fil...
Fixed a recent break in Cloud Redis resource initialization. REVID=187532484
@@ -52,7 +52,7 @@ def GetCloudRedisClass(cloud): Raises: Exception: An invalid cloud was provided """ - resource.GetResourceClass(BaseCloudRedis, CLOUD=cloud) + return resource.GetResourceClass(BaseCloudRedis, CLOUD=cloud) class BaseCloudRedis(resource.BaseResource):
[docs] update CN docs * update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see
from typing import Any, cast, Dict, List, Optional, Tuple, Union + import torch from torch.nn.functional import pad
set correct url for rosunit repo I suppose this got moved at some point or that part of the package.xml was copied over? Either way, I just spend 5 minutes looking for this package in the wrong repository...
<license>BSD</license> <url type="website">http://ros.org/wiki/rosunit</url> - <url type="bugtracker">https://github.com/ros/ros_comm/issues</url> - <url type="repository">https://github.com/ros/ros_comm</url> + <url type="bugtracker">https://github.com/ros/ros/issues</url> + <url type="repository">https://github.com/r...
Fix `test_security_multistream` By passing initiator keypairs to node.
import asyncio -import multiaddr import pytest from libp2p import new_node from libp2p.crypto.rsa import create_new_key_pair -from libp2p.peer.peerinfo import info_from_p2p_addr from libp2p.protocol_muxer.multiselect_client import MultiselectClientError from libp2p.security.insecure.transport import InsecureSession, In...
handle different error in test_invalid_origin_value In Python 3.9.0 the error message of invalid value contains outer class name. This patch handles the error message.
@@ -76,7 +76,7 @@ class TransformationsFilterTest(object): def test_invalid_origin_value(self): with pytest.raises(ValueError) as excinfo: TransformationsFilter(Origin=5) - excinfo.match("is not a valid Origin") + excinfo.match("is not a valid (TransformationsFilter\.)?Origin") def test_empty_glyph(self, font): filter_...
TcpClient: Catch ConnectionError instead of its particular cases That can be more reliable, especially in the case of using PySocks.
@@ -113,7 +113,7 @@ class TcpClient: self._socket.sendall(data) except socket.timeout as e: raise TimeoutError() from e - except (BrokenPipeError, ConnectionAbortedError): + except ConnectionError: self._raise_connection_reset() except OSError as e: if e.errno == errno.EBADF: @@ -139,10 +139,7 @@ class TcpClient: parti...
Use correct config for hourly-scheduled pandas_hello_world Summary: The config was incorrect for this schedule Test Plan: Load schedule into config editor and execute Reviewers: #ft, sashank, alangenfeld
@@ -26,10 +26,10 @@ def define_scheduler(): "solids": { "sum_solid": { "inputs": { - "num": { + "num_df": { "csv": { "path": file_relative_path( - __file__, "../pandas_hello_world/data/num.csv" + __file__, "pandas_hello_world/data/num.csv" ) } }
Fixes to local cache update process - Make sure to source the shared_functions - git -C is 1.8.5 feature and pre 1.8.5 git doesn't support it
@@ -7,6 +7,8 @@ set -e if [[ ! -z "$BOOTSTRAP_HTTP_PROXY_URL" ]] || [[ ! -z "$BOOTSTRAP_HTTPS_PROXY_URL" ]] ; then echo "Testing configured proxies..." source "$REPO_ROOT/bootstrap/shared/shared_proxy_setup.sh" +else + source "$REPO_ROOT/bootstrap/shared/shared_functions.sh" fi REQUIRED_VARS=( BOOTSTRAP_CACHE_DIR REPO_...
Fix initialization of shared_storage_options The shared_storage_options is overwritten in all cases except EBS, where it represents a list of shared directories. The old code would generate shared directory list as ["None","/shared",...]
@@ -84,7 +84,7 @@ class ClusterCdkStack(core.Stack): self.instance_profiles = {} self.compute_security_groups = {} self.shared_storage_mappings = {storage_type: [] for storage_type in SharedStorageType} - self.shared_storage_options = {storage_type: "NONE" for storage_type in SharedStorageType} + self.shared_storage_op...
input events: use original request Since the view class has the original request in its object scope, there is no need to create new request objects for input events.
@@ -617,13 +617,8 @@ class ViewRuntime: payload[0], ) - request = Request( - view_runtime=self, - connection=connection, - ) - input_event = InputEvent( - request=request, + request=self.request, payload=payload, document=self.document, connection=connection,
Add kwargs argument to reactor caller local_salt_call: caller.cmd.run: - args: - "mkdir test" - kwargs: cwd: /tmp
@@ -348,10 +348,11 @@ class ReactWrap(object): ''' log.debug("in caller with fun {0} args {1} kwargs {2}".format(fun, args, kwargs)) args = kwargs.get('args', []) + kwargs = kwargs.get('kwargs', {}) if 'caller' not in self.client_cache: self.client_cache['caller'] = salt.client.Caller(self.opts['conf_file']) try: - sel...
dvc: do not check for isdir on recursive out collect The things is we create dirs as needed, so if outs are not checked out a directory contraining nothing but outs may be absent.
@@ -399,14 +399,13 @@ class Repo(object): abs_path = os.path.abspath(path) path_info = PathInfo(abs_path) - is_dir = self.tree.isdir(abs_path) match = path_info.__eq__ if strict else path_info.isin_or_eq def func(out): if out.scheme == "local" and match(out.path_info): return True - if is_dir and recursive and out.path...
Add param subset Handle None output_col
@@ -227,7 +227,7 @@ def rows(self): return df @staticmethod - def tag_duplicated(keep="first", output_col=None): + def tag_duplicated(keep="first", subset=None, output_col=None): """ Find the rows that have null values @@ -238,7 +238,10 @@ def rows(self): df = self - df[output_col] = df.duplicated(keep=keep) + if outpu...
TypeRepo: add a defer_root_node property TN:
@@ -2833,6 +2833,10 @@ class TypeRepo(object): """ return StructMetaclass.root_grammar_class + @property + def defer_root_node(self): + return self.Defer(lambda: self.root_node) + @property def env_md(self): """
Diagnostics: add a shortcut for check_source_language to emit warnings TN:
@@ -239,6 +239,16 @@ def check_source_language(predicate, message, severity=Severity.error): Diagnostics.has_pending_error = True +def warn_if(predicate, message): + """ + Shortcut for check_source_language with severity=Severity.warning. + + Note that the predicated is negated: the warning is emitted if predicate is +...
TST: added line to register modules Added a line to register Instrument modules when these modules are needed.
@@ -671,6 +671,11 @@ class TestAvailableInst(TestWithRegistration): plat_flag): """Test display_available_instruments options """ + # If using the pysat registry, make sure there is something registered + if inst_loc is None: + pysat.utils.registry.register(self.module_names) + + # Initialize the STDOUT stream new_stdo...
Update create-new-project.mdx fix a typing mistake.
@@ -38,7 +38,7 @@ Inside of the directory `PROJECT_NAME/`, the following files and directories are | `PROJECT_NAME/jobs/` | A Python package that contains JobDefinitions, which are built up from ops | | `PROJECT_NAME/schedules/` | A Python package that contains ScheduleDefinitions, to trigger recurring job runs based o...
[swarming] Be tolerant to inconsistent index This is to handle new logging code in
@@ -646,7 +646,16 @@ def cron_delete_old_bot_events(): if not first_ts: # Fetch the very first entity to get an idea of the range being # processed. - first_ts = keys[0].get().ts + while keys: + # It's possible that the query returns ndb.Key for entities that do + # not exist anymore due to an inconsistent index. Handl...
Use the controller for topic metadata requests Closes
@@ -473,7 +473,7 @@ class KafkaAdminClient(object): return response - def _get_cluster_metadata(self, topics=None, auto_topic_creation=False): + def _get_cluster_metadata(self, topics=None, auto_topic_creation=False, use_controller=False): """ topics == None means "get all topics" """ @@ -492,6 +492,9 @@ class KafkaAdm...
Specify output file encoding be utf-8. On windows the file encoding does not default to utf-8
@@ -670,7 +670,7 @@ async def build_set(session, set_name, language): json_ready = await apply_set_config_options(set_name, cards_holder) print('BuildSet: Generated JSON for {}'.format(set_stat)) - with (OUTPUT_DIR / '{}.json'.format(set_output)).open('w') as fp: + with (OUTPUT_DIR / '{}.json'.format(set_output)).open(...
Fix CORS configuration `CORS_ORIGIN_ALLOW_ALL` was renamed to `CORS_ALLOW_ALL_ORIGINS` More info:
@@ -174,7 +174,8 @@ TEMPLATES = [ # CORS -CORS_ORIGIN_ALLOW_ALL = True +# ------------------------------------------------------------------------------ +CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_HEADERS = list(default_cors_headers) + [ "if-match", "if-modified-since",
Update pyproject.toml Add --force sugar flag
[tool.pytest.ini_options] python_files = 'test_*.py' testpaths = 'test' # space seperated list of paths from root e.g test tests doc/testing -addopts = '--cov=git --cov-report=term --maxfail=10 --disable-warnings' +addopts = '--cov=git --cov-report=term --maxfail=10 --force-sugar --disable-warnings' filterwarnings = 'i...
Update docker_install.txt update cli
@@ -15,10 +15,10 @@ pip3 install pyproj==2.2.1 cd /PyRate && python3 setup.py install # Run workflow -pyrate converttogeotiff input_parameters.conf -pyrate prepifg input_parameters.conf -pyrate process input_parameters.conf -c 3 -r 4 -pyrate postprocess input_parameters.conf -c 3 -r 4 +pyrate converttogeotiff -f input_...
run_isolated: leave TODO to take isolated package/tag from luci-config This is spawned from crrev.com/c/1940395/8/client/run_isolated.py#764
@@ -109,8 +109,10 @@ ISOLATED_OUT_DIR = u'io' ISOLATED_TMP_DIR = u'it' ISOLATED_CLIENT_DIR = u'ic' +# TODO(tikuta): take these parameter from luci-config? # Take revision from # https://ci.chromium.org/p/infra-internal/g/infra-packagers/console +ISOLATED_PACKAGE = 'infra/tools/luci/isolated/${platform}' ISOLATED_REVISI...
Add policy required for test purpose Policy is required to be able to read from test bucket (e.g. to test pre/post_install scripts)
@@ -264,6 +264,26 @@ Resources: Version: '2012-10-17' Type: AWS::IAM::Role + ### INTEG-TESTS POLICIES + + IntegTestsPolicy: + Type: AWS::IAM::ManagedPolicy + Properties: + Roles: + - !Ref HeadNodeRoleSlurm + - !Ref ComputeNodeRoleSlurm + - !Ref HeadNodeRoleBatch + PolicyDocument: + Version: '2012-10-17' + Statement: + ...
Switched GridView back to old CompositeView style These docs say v4 CollectionView supports the same behavior as v2 CompositeView, but earlier commits already replaced our v2 CompositeViews for the v3 upgrade. This reverts to the previous code, jsut replacing the CompositeView with a CollectionView.
@@ -48,24 +48,10 @@ hqDefine("cloudcare/js/formplayer/apps/views", function() { }, }; - GridContainerView = Marionette.CollectionView.extend({ + GridView = Marionette.CollectionView.extend({ + template: _.template($("#grid-template").html() || ""), childView: GridItem, childViewContainer: ".js-application-container", -...
Fix random redeploy failure during certificate extraction During the extraction of the local certificate, the ansible task uses the output of an unregistered variable, so it passes based on a random input. Closes-Bug:
@@ -117,7 +117,8 @@ outputs: test -e ${ca_pem} && openssl x509 -checkend 0 -noout -in ${ca_pem} retries: 5 delay: 1 - until: result.rc == 0 + register: local_ca_extract_result + until: local_ca_extract_result.rc == 0 when: certmonger_ca != 'IPA' and (ipa_realm is not defined) - include_role: name: linux-system-roles.ce...
FIX Set temp dir fo pytest Fixes A100 testing errors of `OSError: could not create numbered dir with prefix pytest- in /tmp/pytest-of-jenkins after 10 tries`
@@ -120,9 +120,9 @@ GTEST_OUTPUT="xml:${WORKSPACE}/test-results/libcuml_cpp/" ./test/ml logger "Python pytest for cuml..." cd $WORKSPACE/python -pytest --cache-clear --junitxml=${WORKSPACE}/junit-cuml.xml -v -s -m "not memleak" --durations=50 --timeout=300 --ignore=cuml/test/dask --ignore=cuml/raft +pytest --cache-clea...
undo image_embeddings changes rm space
"source": [ "import collections\n", "\n", - "\n", "def generate_fiftyone_classification(embedding, collection_name=\"mnist\"):\n", " search_results = client.search(\n", " collection_name=collection_name,\n",
Add ISWAP_INV to zoo Had to wait for to be done before adding to zoo (chicken, meet egg. Egg, chicken)
}, "outputs": [], "source": [ - "display_gates(\"CX\", \"CZ\", \"SWAP\", \"ISWAP\", \"SQRT_ISWAP\", \"SQRT_ISWAP_INV\")" + "display_gates(\"CX\", \"CZ\", \"SWAP\", \"ISWAP\", \"ISWAP_INV\", \"SQRT_ISWAP\", \"SQRT_ISWAP_INV\")" ] }, {
Delete ec datapool during cleanup only when it exists Modified: tests/rbd/rbd_utils.py
@@ -83,6 +83,7 @@ class Rbd: self.exec_cmd(cmd='rm -rf {}'.format(kw.get('dir_name'))) if kw.get('pools'): pool_list = kw.get('pools') + if self.datapool: pool_list.append(self.datapool) for pool in pool_list: self.exec_cmd(cmd='ceph osd pool delete {pool} {pool} '
sources: curl max_workers 2 * num_cpus This changes the curl source to use the number of cpus times two for its thread count. A conservative number but a commonly used default.
@@ -84,7 +84,7 @@ SCHEMA = """ class CurlSource(sources.SourceService): content_type = "org.osbuild.files" - max_workers = 4 + max_workers = 2 * os.cpu_count() def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
Corrected Mis-Formatted Reference Links The in-line style was breaking link display on the website.
- Python provides a wide range of [ways to modify `lists`][ways to modify `lists`]. -[common sequence operations](https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range) -[constructed](https://docs.python.org/3/library/stdtypes.html#list) -[iterate over a list in python](https://www.geeksforgee...
style: make static code analysis happy flake8: E302 expected 2 blank lines, found 1 E305 expected 2 blank lines after class or function definition, found 1 ansible-lint: [206] Variables should have spaces before and after: {{ var_name }}
@@ -4,6 +4,7 @@ import sys from prometheus_client.core import GaugeMetricFamily, REGISTRY from prometheus_client import start_http_server + class CustomCollector(object): def __init__(self): pass @@ -21,6 +22,7 @@ class CustomCollector(object): g.add_metric(["nhc_exit_code"], retcode) yield g + if __name__ == '__main__...
GDB helpers: enhance GNAT encodings matching for env getter printer TN:
@@ -228,9 +228,12 @@ class EnvGetterPrinter(BasePrinter): return '<EnvGetter dynamic>' else: # With GNAT encodings, GDB exposes the variant part as a field that - # is an union. + # is an union. Sometimes it's half-decoded... + try: union = self.value['dynamic___XVN'] variant = union['O'] + except gdb.error: + variant ...
Travis py37 scipy0.19.1 fix Remove python-3.7, scipy-0.19.1 build from test matrix (since scipy-0.19.1 only claims support for python 2.7-3.6). This fixes issue
@@ -28,6 +28,12 @@ env: - SCIPY=scipy SLYCOT= # default, w/out slycot - SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot +# Exclude combinations that are very unlikely (and don't work) +matrix: + exclude: + - python: "3.7" # python3.7 should use latest scipy + env: SCIPY="scipy==0.19.1" SLYCOT= + # install ...
fix: disable react query cache Seems to be a weird bug with the experimental plugin where user sensitive data like messages and friends are not purged on logout
@@ -5,9 +5,7 @@ import { UseQueryOptions, UseQueryResult, } from "react-query"; -import { createLocalStoragePersistor } from "react-query/createLocalStoragePersistor-experimental"; import { ReactQueryDevtools } from "react-query/devtools"; -import { persistQueryClient } from "react-query/persistQueryClient-experimental...
Bug fix Wrong namespace on uniform call.
@@ -1295,7 +1295,7 @@ class Worker: @staticmethod async def random_sleep(minimum=10.1, maximum=14): """Sleeps for a bit""" - await sleep(random.uniform(minimum, maximum), loop=LOOP) + await sleep(uniform(minimum, maximum), loop=LOOP) @property def status(self):
Use bytes instead of a string Summary: - Fixes a bug where we were trying to concatanate string to bytes.
@@ -153,7 +153,7 @@ class ConsoleCommandSession(SSHCommandSession): def _send_clearline(self): self.send(b'\x15\r\n') - def _send_newline(self, end="\n"): + def _send_newline(self, end=b"\n"): self.send(b'\r', end) async def _setup_connection(self):
Fix stop_watcher function Apache should be reloaded after watcher-api is disabled.
@@ -318,6 +318,7 @@ function start_watcher { function stop_watcher { if [[ "$WATCHER_USE_MOD_WSGI" == "True" ]]; then disable_apache_site watcher-api + restart_apache_server else stop_process watcher-api fi
Add step to publish package on PyPI Note, this uses feature of PyPI. Instead of - I use the recent commit hash from the gh-action-pypi-publish repo to make action more stable. The secret used in ${{ secrets.PYPI_API_TOKEN }} needs to be created on the settings page of the mpmath project.
@@ -31,3 +31,9 @@ jobs: codecov --required - name: Make packages run: python setup.py sdist bdist_wheel + - name: Publish package on PyPI + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@f91f98d65eb3eb032447201d64f2c25d67c28efe + with: + user: __token__ ...
Turn log.exception into log.error Also, refactor error messages to be consistent and DRY throughout the file.
@@ -130,21 +130,24 @@ class RedisCache: async def _validate_cache(self) -> None: """Validate that the RedisCache is ready to be used.""" if self.bot is None: - log.exception("Attempt to use RedisCache with no `Bot` instance.") - raise RuntimeError( + error_message = ( "Critical error: RedisCache has no `Bot` instance. ...
get interactive command properly working Summary: There are instances where the devices are prefixing the prompts with extra characters followed by '\r' (e.g 'show lldb interface | xml' on nexus). This changes make sure the we can ignore these characters
@@ -131,7 +131,8 @@ class DeviceVendor(ServiceObj): # reduces the probability of this matching some random text in the # output. Not that we are matching at end of the text, not at the end of # each line in text (re.M is not specified) - return re.compile(b"^(?P<prompt>" + b"|".join(all_prompts) + b")\s*" + + return re...
Verification: set 'tasks_running' to 0 on suspicious 403s Prevent the tasks from starting again if the bot restarts.
@@ -307,6 +307,7 @@ class Verification(Cog): await request(member) except StopExecution as stop_execution: await self._alert_admins(stop_execution.reason) + await self.task_cache.set("tasks_running", 0) self._stop_tasks(gracefully=True) # Gracefully finish current iteration, then stop break except discord.HTTPException...
tests/EpisodicMemoryMechanism: Use 'size' instead of 'content_size' in construction The latter is deprecated.
@@ -48,7 +48,7 @@ names = [ @pytest.mark.parametrize('variable, func, params, expected', test_data, ids=names) def test_with_dictionary_memory(variable, func, params, expected, benchmark, mech_mode): f = func(seed=0, **params) - m = EpisodicMemoryMechanism(content_size=len(variable[0]), assoc_size=len(variable[1]), fun...
realm_logo: Fix incorrect display of realm logo delete button. This commit fixes the bug of incorrectly showing/hiding the realm logo delete button by using realm_night_logo_source for checking the source of night mode logo instead of previously used realm_logo_source for both day and night logos.
exports.build_realm_logo_widget = function (upload_function, is_night) { let logo_section_id = '#day-logo-section'; + let logo_source = page_params.realm_logo_source; + if (is_night) { logo_section_id = '#night-logo-section'; + logo_source = page_params.realm_night_logo_source; } const delete_button_elem = $(logo_secti...
Update pytests.yml add concurrency grouping
@@ -8,6 +8,10 @@ on: branches-ignore: - 'dependabot*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: detect-ci-trigger: @@ -235,7 +239,7 @@ jobs: fail_ci_if_error: true env_vars: RUNNER_OS,PYTHON_VERSION - free: + free-all: name: Env. all free - Py ${{matrix.python-ve...
Bug fix. Need a stills-specific version of this function for the case that treat_single_image_as_still=True. In that case, we don't want to run the close-to-spindle test etc., but we can't detect this as a still as the experiment contains a Scan and a Goniometer.
@@ -887,6 +887,25 @@ class StillsReflectionManager(ReflectionManager): _weighting_strategy = weighting_strategies.StillsWeightingStrategy() + def _id_refs_to_keep(self, obs_data): + """Create a selection of observations that pass certain conditions. + + Stills-specific version removes checks relevant only to experiment...
fix: Disable submit button while doing network request to avoid duplicate entries
@@ -115,6 +115,7 @@ frappe.ui.form.Review = class Review { label: __('Reason') }], primary_action: (values) => { + review_dialog.disable_primary_action(); if (values.points > this.points.review_points) { return frappe.msgprint(__('You do not have enough points')); } @@ -133,6 +134,8 @@ frappe.ui.form.Review = class Rev...
Clarify limitations & understanding with fixed_rows & table-layout: fixed Including related issues:
@@ -559,7 +559,7 @@ layout = html.Div( '''), - rc.Markdown("## Individual Column Widths"), + rc.Markdown("## Setting Column Widths"), rc.Markdown( ''' @@ -567,8 +567,7 @@ layout = html.Div( The widths of individual columns can be supplied through the `style_cell_conditional` property. These widths can be specified as -...
[GCB] Fix image tagging Don't add two tags in a single command. One is sufficient and two is an error.
@@ -31,10 +31,10 @@ steps: # Use two tags so that the image builds properly and we can push it to the # correct location. '--tag', - 'gcr.io/fuzzbench/builders/coverage:${_EXPERIMENT}:${_EXPERIMENT}', + 'gcr.io/fuzzbench/builders/coverage:${_EXPERIMENT}', '--tag', - '${_REPO}/builders/coverage:${_EXPERIMENT}:${_EXPERIM...
Adding a comment about NodeJS example, refs Thanks
@@ -128,6 +128,9 @@ request.post({ url: 'http://api-adresse.data.gouv.fr/search/csv/', formData: formData }).then(function (text) { + // You might want to use fs.writeFile instead because writeFileSync + // blocks the event loop. See section fs.writeFileSync() at + // http://www.daveeddy.com/2013/03/26/synchronous-file...
Prevent division by zero Problem: `rnd.getrandbits` can result in 0, so that `b` could equal to 0. This fix makes it that b is a pseudorandom number close, but not equal, to zero.
@@ -253,7 +253,7 @@ def shanks(ctx, seq, table=None, randomized=False): b = row[j-1] - table[i-1][j-1] if not b: if randomized: - b = rnd.getrandbits(10)*eps + b = (1 + rnd.getrandbits(10))*eps elif i & 1: return table[:-1] else:
fix: Now ScriptTask main_func can be determined in __init__ (so init from config is nicer).
@@ -14,10 +14,10 @@ class ScriptTask(Task): ScriptTask("folder/subfolder/main.py") ScriptTask("folder/subfolder/mytask.py") """ - main_func = "main" - def __init__(self, path, **kwargs): + def __init__(self, path, main_func=None, **kwargs): self.path = path + self.main_func = "main" if main_func is None else main_func ...
[NixIO] Test skipping: {setUp,tearDown}Class methods Class methods are not skipped when module is missing (by the unittest decorator), so we need the checks to avoid failing when there is no NIX module.
@@ -903,6 +903,7 @@ class NixIOReadTest(NixIOTest): @classmethod def setUpClass(cls): + if HAVE_NIX: cls.nixfile = cls.create_full_nix_file(cls.filename) def setUp(self): @@ -912,6 +913,7 @@ class NixIOReadTest(NixIOTest): @classmethod def tearDownClass(cls): + if HAVE_NIX: cls.nixfile.close() os.remove(cls.filename) @...
Fixed message truncation bug The length of the utf-8 encoded body may be different than the unicode length of the string. This causes message truncation on the response. This patch fixes the issue.
@@ -576,6 +576,8 @@ class ChaliceRequestHandler(BaseHTTPRequestHandler): def _send_http_response_with_body(self, code, headers, body): # type: (int, HeaderType, Union[str,bytes]) -> None self.send_response(code) + if not isinstance(body, bytes): + body = body.encode('utf-8') self.send_header('Content-Length', str(len(b...
Updated GoDjango video url GoDjango site does not exist anymore, so the URL for the screencast was not working.
@@ -30,7 +30,7 @@ Getting Started The easiest way to figure out what Django Extensions are all about is to watch the `excellent screencast by Eric Holscher`__ (`watch the video on vimeo`__). In a couple minutes Eric walks you through a half a dozen command extensions. There is also a -`short screencast on GoDjango`__ t...
[CI] Fix android build by constraining numpy version Temporarily constrain the version of numpy to workaround the deprecated value used in mxnet. See
@@ -251,7 +251,8 @@ CONSTRAINTS = [ ("h5py", "==2.10.0"), ("image", None), ("matplotlib", None), - ("numpy", None), + # Workaround, see https://github.com/apache/tvm/issues/13647 + ("numpy", "<=1.23.*"), ("onnx", None), ("onnxoptimizer", None), ("onnxruntime", None),
remove spurious mention of conda As pointed out by at
@@ -228,10 +228,9 @@ To view the documentation, and then navigate your web browser to the ``docs/_build/html/`` subdirectory. -To test out the *code*, you can either use conda (as described above), -or, if you change to the ``python/`` subdirectory, -run ``make`` to compile the C code, -and execute ``python`` from this...
Fix issue If the input parameter type to a traced model is tensor.cuda(), ct.convert fails with the below error TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
@@ -225,7 +225,7 @@ def _list_select(shape_var, index): def _construct_constant(val, name): # Converter cannot handle torch tensors. if isinstance(val, torch.Tensor): - val = val.numpy() + val = val.cpu().numpy() # MIL casts ints to int32, which can't represent the 64 bit magic number. # So we instead represent it with...
Fix matrix_to_marching_cubes offset The previous code produces an incorrect offset for the mesh produced by marching cubes, as illustrated by the below code. import numpy as np from trimesh.voxel import matrix_to_marching_cubes voxels = np.ones((3,3,3), dtype=np.bool) mesh = matrix_to_marching_cubes(voxels, 1.0, np.zer...
@@ -338,7 +338,7 @@ def matrix_to_marching_cubes(matrix, pitch, origin): vertices, faces, normals, vals = meshed # Return to the origin, add in the pad_width - vertices = np.subtract(np.add(vertices, origin), pad_width) + vertices = np.subtract(np.add(vertices, origin), pad_width*pitch) mesh = Trimesh(vertices=vertices...
Added incident report Added incident report: Philadelphia Police disperse crowd with batons | June 1st
@@ -67,6 +67,15 @@ Three protestors kneeling on the ground with their hands on their heads/covering * https://twitter.com/d0wnrrrrr/status/1267691766188310528 +### Philadelphia Police disperse crowd with batons | June 1st + +Police officers strike several unarmed protesters and one parked vehicle with batons. + +**Link...
Update AZ Primary and Quinary Screenshots Changing second await page.waitForDelay() from 20000 to 30000. More reliable - tested locally!
@@ -11,7 +11,7 @@ primary: page.manualWait(); await page.waitForDelay(10000); page.mouse.click(615, 1100); - await page.waitForDelay(20000); + await page.waitForDelay(30000); page.done(); message: clicking on cases for AZ primary @@ -723,7 +723,7 @@ quinary: page.manualWait(); await page.waitForDelay(10000); page.mouse...
[bugfix] enable "old" logentries tests use wowwiki:hu because cs is very small skip tests if there aren't any entries add tests for wowwiki:en
@@ -44,9 +44,14 @@ class TestLogentriesBase(TestCase): 'code': 'de', 'target': 'Hauptseite', }, + 'enwow': { + 'family': 'wowwiki', + 'code': 'en', + 'target': None, + }, 'old': { 'family': 'wowwiki', - 'code': 'cs', + 'code': 'hu', 'target': None, } } @@ -58,7 +63,11 @@ class TestLogentriesBase(TestCase): # MW version...
Fix - Harmony 21.1 messed up Javascript Qt API Removed missed logging
@@ -337,7 +337,6 @@ function start() { var host = '127.0.0.1'; /** port of the server */ var port = parseInt(System.getenv('AVALON_HARMONY_PORT')); - MessageLog.trace("port " + port.toString()); // Attach the client to the QApplication to preserve. var app = QCoreApplication.instance(); @@ -350,7 +349,6 @@ function sta...
fix typo the `ExportContainer` was broken before version 1183.
@@ -43,7 +43,7 @@ def exportAllInstances(): ''' possible keys: - ExportContiner: "woff", "woff2", "eot" + ExportContainer: "woff", "woff2", "eot" Destination: NSURL autoHint: bool (default = true) removeOverlap: bool (default = true)
Update Match typing to include re.Pattern Some `Match` properties support `str | re.Pattern | None` so let's type accordingly. Also updates the docstring to clarify this a bit.
@@ -37,6 +37,7 @@ from libqtile.command.base import CommandObject, expose_command from libqtile.log_utils import logger if TYPE_CHECKING: + import re from typing import Any, Callable, Iterable from libqtile.backend import base @@ -758,11 +759,9 @@ class Match: """ Match for dynamic groups or auto-floating windows. - It...
Fix add of js file Previous code is used when we build documentation using readthedocs, which is not the case for ROSS.
@@ -108,9 +108,6 @@ except KeyError: nbsphinx_execute = "always" html_theme = "bootstrap" htlm_theme_path = sphinx_bootstrap_theme.get_html_theme_path() -html_js_files = [ - "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" -] # Theme options are theme-specific and customize the look and feel of ...
Update CONTRIBUTING.md Fixed section links
@@ -6,16 +6,16 @@ We will document examples of excessive force being used by law enforcement offic Our goal in doing this is to assist journalists, politicians, prosecutors, activists and concerned citizens who can use the evidence accumulated here for political campaigns, news reporting, public education and prosecuti...
Project: make sure the issue template tells people where to get develop version. * This is in response to people asking the obvious question, how to do it. * Pointing to the download page, which probably should make a better job of distinguishing stable and develop versions top level.
@@ -4,6 +4,9 @@ Before submitting an Issue, please review the [Issue Guidelines](https://github. * Please check out if the develop version of Nuitka works better for you. + Download source, packages [from here](http://nuitka.net/pages/download.html) + where you will also find instructions how to do it via PyPI. + If yo...
Fixed some 404 end links FIxed and links
@@ -297,7 +297,7 @@ The `create` subcommand makes a new workflow using the nf-core base template. With a given pipeline name, description and author, it makes a starter pipeline which follows nf-core best practices. After creating the files, the command initialises the folder as a git repository and makes an initial co...
fix(stock_a_ttm_lyr): fix stock_a_ttm_lyr interface fix stock_a_ttm_lyr interface
@@ -328,18 +328,20 @@ def stock_a_ttm_lyr() -> pd.DataFrame: """ url = "https://www.legulegu.com/api/stock-data/market-ttm-lyr" params = { - 'marketId': '5', + "marketId": "5", "token": token, } r = requests.get(url, params=params) data_json = r.json() temp_df = pd.DataFrame(data_json["data"]) - temp_df['date'] = pd.to...
Update CHANGELOG for 1.8 Also fix line endings
+1.8: + * REMOVED SUPPORT FOR Python 2.6 + * LAST RELEASE TO SUPPORT 2.7 + * CHANGED REMOTE MONITOR PROTOCOL (security fix) + * Support Python 3 + * Add JSON logger + * Add 46elks SMS alerter + * Add PushBullet alerter + * Add Telegram alerter + * Add Notification Center alerter (for macOS) + * Add systemd unit monitor...
Update passive_dns.py finished review
@@ -36,16 +36,19 @@ class PassiveDNS(Feed): context_domain = dict(source=self.name) context_ip = dict(source=self.name) - domain_name = Hostname.get_or_create(value=item["Domain Name"]) + domain_name = Hostname.get_or_create(value=item["Domain name"]) ip = Ip.get_or_create(value=item["Current IP address"]) infos_ip = p...
ScorerModel is no longer there Consistency with module documentation
@@ -12,11 +12,11 @@ Wikipedia. Using a scorer_model to score a revision:: ``` import mwapi - from revscoring import ScorerModel + from revscoring import Model from revscoring.extractors.api.extractor import Extractor with open("models/enwiki.damaging.linear_svc.model") as f: - scorer_model = ScorerModel.load(f) + score...
Python 3 fix for flask-bcrypt Python 3 uses unicode string, which needed to be encoded for bcrypt.hashpw
@@ -116,7 +116,7 @@ def hash_password(password): Secure hash of password. """ - return bcrypt.hashpw(password, bcrypt.gensalt(8)) + return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt(8)) def get_team(uid=None): """
Address typos and layout Resolve some minor typos and line up long line wrap point
-For this project to work well in your pipeline, a commit convention -must be followed. +For this project to work well in your pipeline, a commit convention must be followed. -By default commitizen uses the known [conventional commits][conventional_commits], but you can create -your own following the docs information o...
wallet save.. adding a stake transaction failed to update the wallet files..
@@ -510,6 +510,8 @@ def post_block_logic(): f.send_stake_reveal_one() if chain.mining_address not in [s[0] for s in chain.next_stake_list_get()]: f.send_st_to_peers(chain.CreateStakeTransaction()) + wallet.f_save_winfo() + return
FIX: tweak the teleporter class decorator There were subtle bugs with multiply decorated sub-classes
@@ -24,21 +24,19 @@ def _maybe_use_teleporter(cls): @functools.wraps(orig_init) def __init__(self, *args, maybe_use_teleporter=True, **kwargs): orig_init(self, *args, **kwargs) - self._orig_init = orig_init - self._orig_call = orig_call - if Teleporter is not None and maybe_use_teleporter: + _orig_call = orig_call if n...
pkg_analysis_body_ada.mako: restore wrongly deleted comment line TN:
@@ -641,6 +641,7 @@ package body ${ada_lib_name}.Analysis is declare Unit : constant Analysis_Unit := Element (Cur); begin + -- As unloading a unit can change how any AST node property in the -- whole analysis context behaves, we have to invalidate caches. This -- is likely overkill, but kill all caches here as it's ea...
Fix dagster_home in dagster-aws CLI Test Plan: manually tested dagster-aws init Reviewers: sashank
from botocore.exceptions import ClientError +from dagster import DagsterInvariantViolationError +from dagster.utils import dagster_home_dir + from .config import HostConfig from .term import Spinner, Term def get_dagster_home(): '''Ensures that the user has set a valid DAGSTER_HOME in environment and that it exists '''...
fix: filter git diff from commit message When running `git commit --verbose` when using commitizen as a pre-commit we have a bug because of the diff that is incorrectly included. I have filtered out everything that is auto generated by git and that is normally excluded. See issue:
@@ -98,8 +98,35 @@ class Check: # Get commit messages from git log (--rev-range) return git.get_commits(end=self.rev_range) - def _filter_comments(self, msg: str) -> str: - lines = [line for line in msg.split("\n") if not line.startswith("#")] + @staticmethod + def _filter_comments(msg: str) -> str: + """Filter the com...
Change AuoGOAL to AutoGOAL Fix small typo
@@ -153,7 +153,7 @@ These are our consistency rules: This documentation is available online at [autogoal.github.io](https://autogoal.github.io). Check the following sections: -- [**User Guide**](https://autogoal.github.io/guide/): Step-by-step showcase of everything you need to know to use AuoGOAL. +- [**User Guide**](...
only use stdin if it has a value Closes
@@ -86,7 +86,7 @@ def main(*args): ) print_help() raise SystemExit(1) - + if stdin_raw_text: import_path = save_stdin_source(stdin_raw_text) ### Handle ingesting urls from a remote file/feed
Remove unused type ignores The latest mypy/typeshed is more accurate and hence these warnings can be removed.
@@ -248,13 +248,13 @@ def find_package(name: str) -> Tuple[Optional[Path], Path]: package_path = Path.cwd() else: if hasattr(loader, "get_filename"): - filename = loader.get_filename(module) # type: ignore + filename = loader.get_filename(module) else: __import__(name) filename = sys.modules[name].__file__ package_path...