message
stringlengths
13
484
diff
stringlengths
38
4.63k
VOLTHA utests are run in non-deterministic order Reverse sort utest directories to ensure any host runs the tests in the same order.
@@ -256,12 +256,12 @@ test: venv protos run-as-root-tests utest: venv protos @ echo "Executing all unit tests" . ${VENVDIR}/bin/activate && \ - for d in $$(find ./tests/utests -depth -type d); do echo $$d:; nosetests $$d; done + for d in $$(find ./tests/utests -type d|sort -nr); do echo $$d:; nosetests $$d; done utest-...
fix bug when setting "tags" in report file. When tags not define we set this to empty string
@@ -162,7 +162,9 @@ def update_report(valid_builders): ]: entry[item] = builder.metadata[item] - # convert tags to string. + entry["tags"] = "" + # convert tags to string if defined in buildspec + if builder.metadata["tags"]: entry["tags"] = " ".join(builder.metadata["tags"]) # query over result attributes, we only ass...
Fix type assert Summary: To check if a tensor is a byte tensor, we should use `self.action.type() == "torch.ByteTensor"`.
@@ -482,7 +482,7 @@ class RawMemoryNetworkInput(RawBaseInput): action, ) else: - assert isinstance(self.action, torch.ByteTensor) + assert self.action.dtype == torch.uint8 return PreprocessedMemoryNetworkInput( self.reward, self.time_diff, @@ -514,7 +514,7 @@ class RawMemoryNetworkInput(RawBaseInput): action, ) else: -...
Update cdd.py Changed datetime format to sync with /www.cryptodatadownload.com
@@ -71,7 +71,7 @@ class CryptoDataDownload: if "d" in timeframe: df["date"] = pd.to_datetime(df["date"]) elif "h" in timeframe: - df["date"] = pd.to_datetime(df["date"], format="%Y-%m-%d %I-%p") + df["date"] = pd.to_datetime(df["date"], format="%Y-%m-%d %H:%M:%S") df = df.set_index("date") df.columns = [name.lower() fo...
Changelog for 0.7.1 Test Plan: N/A Reviewers: schrockn, alangenfeld, prha, nate
# Changelog -## 0.7.0 (Upcoming) +## 0.7.1 + +**Dagit** + +- Dagit now looks up an available port on which to run when the default port is + not available. (Thanks @rparrapy!) + +**dagster_pandas** + +- Hydration and materialization are now configurable on `dagster_pandas` dataframes. + +**dagster_aws** + +- The `s3_re...
Added an example from Pittsburgh Added a video of a woman in Pittsburgh who was not resisting arrest being pepper sprayed.
@@ -67,3 +67,12 @@ Three protestors kneeling on the ground with their hands on their heads/covering * https://twitter.com/d0wnrrrrr/status/1267691766188310528 +## Pittsburgh + +### Officer pepper-sprays a woman who is on her knees with her hands up + +A woman in East Liberty gets onto her knees and puts her hands in th...
Added Tensorboard Logging callback Additionally added log-dir argparse.
@@ -113,6 +113,20 @@ def create_callbacks(model, training_model, prediction_model, validation_generat lr_scheduler = keras.callbacks.ReduceLROnPlateau(monitor='loss', factor=0.1, patience=2, verbose=1, mode='auto', epsilon=0.0001, cooldown=0, min_lr=0) callbacks.append(lr_scheduler) + if args.log_dir: + tb = keras.call...
Fix sigmoid_cross_entropy doc about t functions.sigmoid_cross_entropy 's document has a wrong description about `t`. This PR fixes it.
@@ -77,9 +77,10 @@ def sigmoid_cross_entropy( (i, j)-th element indicates the unnormalized log probability of the j-th unit at the i-th example. t (:class:`~chainer.Variable` or :class:`numpy.ndarray` or \ - :class:`cupy.ndarray`): Variable holding a signed integer vector of - ground truth labels. If ``t[i] == -1``, co...
feat(project): j'abandonne, tout est en conflit xxxxxxxx de xxxxxx
@@ -10,6 +10,7 @@ class IncrementalAgent(Agent): def __init__(self, env, **kwargs): """ + Parameters ---------- env : Model @@ -19,8 +20,7 @@ class IncrementalAgent(Agent): @abstractmethod def partial_fit(self, fraction, **kwargs): - """ - Partially fits the agent, according to the fraction parameter. + """Partially fi...
Fix StorageHelper.delete() does not respect path substitutions Fixes allegroai/clearml#825 Make StorageHelper.get_object() call StorageHelper._canonized_url() to make path substitutions work.
@@ -1193,6 +1193,7 @@ class StorageHelper(object): :return: The remote object """ + path = self._canonize_url(path) object_name = self._normalize_object_name(path) try: return self._driver.get_object(
purge: fix rbd-mirror group name the default is rbdmirrors in ceph-defaults
- name: purge ceph rbd-mirror cluster vars: - rbdmirror_group_name: rbd-mirrors + rbdmirror_group_name: rbdmirrors hosts: - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
Disable controllers which have no endpoints Controllers without endpoints happen if the bootstrap fails before the controller instance is created. These cannot be used in future deploys, obviously, and will cause an error if selected. This disables them and provides information on how to clean them up. Fixes
@@ -40,16 +40,19 @@ class ControllerListView(BaseView): widget.append(Padding.line_break("")) cdict = defaultdict(lambda: defaultdict(list)) for cname, d in self.controllers.items(): - cdict[d['cloud']][d.get('region', None)].append(cname) + cdict[d['cloud']][d.get('region', None)].append((cname, d)) for cloudname, clo...
Update README.md Add the memory and disk requirement of DDG-DA.
@@ -4,16 +4,16 @@ This is the implementation of `DDG-DA` based on `Meta Controller` component prov Please refer to the paper for more details: *DDG-DA: Data Distribution Generation for Predictable Concept Drift Adaptation* [[arXiv](https://arxiv.org/abs/2201.04038)] -## Background +# Background In many real-world scena...
Arrow head length and head width option is added in nyquist_plot function Add option to change Nyquist plot arrow size: * Nyquist_plot changed to accommodate arrow size * color option is added
@@ -433,8 +433,9 @@ def bode_plot(syslist, omega=None, # Nyquist plot # -def nyquist_plot(syslist, omega=None, Plot=True, color=None, - labelFreq=0, *args, **kwargs): +def nyquist_plot(syslist, omega=None, Plot=True, + labelFreq=0, arrowhead_length=0.1, arrowhead_width=0.1, + color=None, *args, **kwargs): """ Nyquist p...
Fix call to fetchThreadList Use "self" instead of "client"
@@ -488,7 +488,7 @@ class Client(object): return [] while True: lastThreadTimestamp = Threads[-1].last_message_timestamp - candidates = client.fetchThreadList(before=lastThreadTimestamp, thread_location=thread_location) # return at max 20 threads before lastThreadTimestamp (included) + candidates = self.fetchThreadList...
add ThreatExchange until desc add ThreatExchange until desc
@@ -371,7 +371,7 @@ script: - name: since description: 'Returns malware collected after a timestamp, format: 1391813489' - name: until - description: "-" + description: 'Returns malware collected before a timestamp, format: 1391813489' outputs: - contextPath: URL.Data description: Bad URLs found
fix: compress for raw and compressed_encoding Previously only segmentation was compressed but this is too rough a guideline. Images are also often stored losslessly, but are uncompressed because they aren't 'segmentation'. This should improve future storage costs by about 1/3.
@@ -620,7 +620,7 @@ class CloudVolume(object): if self.encoding == 'jpeg': content_type == 'image/jpeg' - compress = (self.layer_type in ('segmentation')) + compress = (self.encoding in ('raw', 'compressed_segmentation')) with Storage(self.layer_cloudpath) as storage: storage.put_files(uploads, content_type=content_typ...
document delays with type conversions closes
@@ -1583,6 +1583,15 @@ Having `delay_before` in the second stage of the test is semantically identical to having `delay_after` in the first stage of the test - feel free to use whichever seems most appropriate. +A saved/config variable can be used by using a type token conversion, such as: + +```yaml +stages: + - name:...
Fix typo And test if new docs location works for Github
@@ -22,7 +22,7 @@ SimpleMonitor is a Python script which monitors hosts and network connectivity. * Windows DHCP scope (available IPs) * APC UPS monitoring (requires apcupsd to be installed and configured) * Running an arbitary command and checking the output -* A monitor which is a compond of a number of the above +* ...
Remove warning about building from source to use the NCCL backend Summary: I think this warning isn't true anymore, and the NCCL backend works without PyTorch needing to be built from source. Pull Request resolved:
@@ -348,7 +348,7 @@ def init_process_group(backend, group_name (str, optional, deprecated): Group name. To enable ``backend == Backend.MPI``, PyTorch needs to built from source - on a system that supports MPI. The same applies to NCCL as well. + on a system that supports MPI. """ global _pg_group_ranks
Fix integration link in the installation docs The link to the home assistant integration documentation was missing the leading slash which caused the path to be appended to the `/frigate` path of this page.
@@ -3,7 +3,7 @@ id: installation title: Installation --- -Frigate is a Docker container that can be run on any Docker host including as a [HassOS Addon](https://www.home-assistant.io/addons/). Note that a Home Assistant Addon is **not** the same thing as the integration. The [integration](integrations/home-assistant) i...
Make use of title in rotor plot call possible Calling rotor.plot_rotor(title=dict(text="title")) would cause an error, since the title kwarg argument would be passed twice to the update_layout call.
@@ -2036,7 +2036,8 @@ class Rotor(object): showgrid=False, mirror=True, ) - fig.update_layout(title=dict(text="Rotor Model"), **kwargs) + kwargs["title"] = kwargs.get("title", "Rotor Model") + fig.update_layout(**kwargs) return fig
Remove Optimize method signature for BlockMatrix Unused and incorrect -- if this method were used, it would not optimize any IRs in the DAG, which may contain relational or value IRs.
@@ -34,8 +34,6 @@ object Optimize { def apply(ir: MatrixIR): MatrixIR = apply(ir, true, true) - def apply(ir: BlockMatrixIR): BlockMatrixIR = ir //Currently no BlockMatrixIR that can be optimized - def apply(ir: IR, noisy: Boolean, canGenerateLiterals: Boolean, context: Option[String]): IR = optimize(ir, noisy, canGene...
Update generic.txt Moving to ```smokeloader```
@@ -5873,80 +5873,6 @@ bobbychiz.top http://35.224.233.140 -# Reference: https://twitter.com/peterkruse/status/1171685525377495040 -# Reference: https://twitter.com/tkanalyst/status/1173068957386866688 -# Reference: https://pastebin.com/kZVikTtP -# Reference: https://www.virustotal.com/gui/ip-address/5.101.181.35/relat...
docs: Update documentation for Bionic to Focal upgrade. Added -d Flag in do-release-upgrade for Bionic to Focal upgrade. The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS. Source
@@ -218,9 +218,13 @@ instructions for other supported platforms. ``` sudo -i # Or otherwise get a root shell - do-release-upgrade + do-release-upgrade -d ``` + The `-d` option to `do-release-upgrade` is required because Ubuntu + 20.04 is new; it will stop being necessary once the first point + release update of Ubuntu ...
ceph-osd: set 'openstack_keys_tmp' only when 'openstack_config' is defined. If 'openstack_config' is false this task shouldn't be executed.
openstack_keys_tmp: "{{ openstack_keys_tmp|default([]) + [ { 'key': item.key, 'name': item.name, 'caps': { 'mon': item.mon_cap, 'osd': item.osd_cap|default(''), 'mds': item.mds_cap|default(''), 'mgr': item.mgr_cap|default('') } , 'mode': item.mode } ] }}" with_items: "{{ openstack_keys }}" when: + - openstack_config - ...
Restrict comparison values for variable type strings This should avoid subtle bugs that could crop up when comparing against the wrong form (e.g. "category" instead of "categorical"). There might be a built-in way to do this, but I couldn't find it...
@@ -2,6 +2,7 @@ import warnings import itertools from copy import copy from functools import partial +from collections import UserString from collections.abc import Iterable, Sequence, Mapping from numbers import Number from datetime import datetime @@ -780,8 +781,10 @@ class VectorPlotter: wide_data = pd.DataFrame(dat...
update release notes for 4.2.2 (from 4.2.x branch)
+# Release 4.2.2 - (May 27, 2022) + * Lightning: + - watching onchain outputs: significant perf. improvements (#7781) + - enforce relative order of some msgs during chan reestablishment, + lack of which can lead to unwanted force-closures (#7830) + - fix: in case of a force-close containing incoming HTLCs, we were + re...
Fix slowdown in state machine check for global being set is needed. We should remove that global.
@@ -1101,6 +1101,7 @@ class AMRStateMachine: global entity_rules_json, entity_rule_stats, entity_rule_totals, entity_rule_fails assert self.entity_rules_path, "you need to provide entity_rules" + if not entity_rules_json: with open(self.entity_rules_path, 'r', encoding='utf8') as f: entity_rules_json = json.load(f)
Fix float focused autocomplete options being parsed According to the Discord docs these aren't validated
@@ -137,6 +137,7 @@ class Namespace: for option in options: opt_type = option['type'] name = option['name'] + focused = option.get('focused', False) if opt_type in (3, 4, 5): # string, integer, boolean value = option['value'] # type: ignore # Key is there self.__dict__[name] = value @@ -146,7 +147,11 @@ class Namespace...
ColumnEncodingUtility : make few system queries search_path independent FK and PK queries were relying on the search path. This is not the case anymore. Only queries using pg_table_def still depends on search_path
@@ -230,13 +230,6 @@ def get_pg_conn(): run_commands(conn, [set_name]) - # Set search_path - set_searchpath = "set search_path to '$user', public, %s;" % schema_name - if debug: - comment(set_searchpath) - - run_commands(conn, [set_searchpath]) - # turn off autocommit for the rest of the executions conn.autocommit = Fa...
Add simple unittest for -include Missing test was flagged by code coverage because the line was "touched" due to a variable rename.
@@ -810,11 +810,13 @@ sys.exit(0) "-fmerge-all-constants " "-fopenmp " "-mno-cygwin -mwindows " - "-arch i386 -isysroot /tmp " + "-arch i386 " + "-isysroot /tmp " "-iquote /usr/include/foo1 " "-isystem /usr/include/foo2 " "-idirafter /usr/include/foo3 " "-imacros /usr/include/foo4 " + "-include /usr/include/foo5 " "--p...
Memorize idp only if auth was successful This also means that we memorize the IdP regardless of the disco.
@@ -317,7 +317,9 @@ class SAMLBackend(BackendModule, SAMLBaseModule): raise SATOSAAuthenticationError(context.state, "State did not match relay state") context.decorate(Context.KEY_BACKEND_METADATA_STORE, self.sp.metadata) - + if self.config.get(SAMLBackend.KEY_MEMORIZE_DISCO_IDP): + issuer = authn_response.response.is...
Fixes a bug in Circuit indexing: circuit[:] now works like it should. Previously this would return an empty circuit, like circuit[0:0], which is obviously incorrect. We should create a unit test for this.
@@ -778,7 +778,7 @@ class Circuit(object): layers = list(range(len(self._labels))) elif isinstance(layers, slice): if layers.start is None and layers.stop is None: - layers = () + layers = list(range(len(self._labels))) # e.g. circuit[:] else: layers = _slct.indices(layers, len(self._labels)) elif not isinstance(layers...
fixed typo in file OCC.py line 59 missing reference to imported library multiclass
@@ -56,7 +56,7 @@ class OutputCodeClassifier(base.Wrapper, base.Classifier): >>> dataset = datasets.ImageSegments() >>> scaler = preprocessing.StandardScaler() - >>> ooc = OutputCodeClassifier( + >>> ooc = multiclass.OutputCodeClassifier( ... classifier=linear_model.LogisticRegression(), ... code_size=10, ... seed=24
Accelerate evaluable.derivative This patch adds a significant shortcut to function.derivative that returns zero when var is not in a function's arguments, rather than climbing up and down the function tree to arrive at the same result at much greater effort.
@@ -4031,11 +4031,10 @@ def derivative(func, var, seen=None): 'derivative' assert isinstance(var, DerivativeTargetBase), 'invalid derivative target {!r}'.format(var) - if var.dtype != float: + if var.dtype != float or var not in func.arguments: return Zeros(func.shape + var.shape, dtype=func.dtype) if seen is None: see...
Fix spelling `Gitbub` -> `GitHub`
- First take a look at the [Troubleshooting section](https://help.datadoghq.com/hc/en-us/sections/200763635-Amazon-Web-Services) of our [Knowledge Base](https://help.datadoghq.com/hc/en-us). - If you can't find anything useful, please contact our Solutions Team for assistance. -- Finally, you can open a Gitbub issue +-...
Update practices.rst fix a typo
@@ -238,7 +238,7 @@ Here are some tips to keep in mind when dealing with these kinds of sites: * if possible, use `Google cache`_ to fetch pages, instead of hitting the sites directly * use a pool of rotating IPs. For example, the free `Tor project`_ or paid - services like `ProxyMesh`_. An open source alterantive is `...
m1n1.hv.HV: Run passive tracers *before* issuing the MMIO write E.g. this means tracers run *before* an ASC command gets sent, which might be relevant if the same memory is used for commands and responses.
@@ -382,18 +382,12 @@ class HV(Reloadable): first = 0 val = data.data - if data.flags.WRITE: - if data.flags.WIDTH < 3: - wval = val[0] - else: - wval = val - if mode == TraceMode.HOOK: - if data.flags.WRITE: - self.shellwrap(lambda: write(data.addr, wval, 8 << data.flags.WIDTH, **kwargs), - f"Tracer {ident}:write (HOO...
[commands] Add support for stacking Cog.listener decorator. Fix
@@ -102,7 +102,8 @@ class CogMeta(type): except AttributeError: continue else: - listeners.append((value.__cog_listener_name__, value.__name__)) + for name in value.__cog_listener_names__: + listeners.append((name, value.__name__)) attrs['__cog_commands__'] = commands # this will be copied in Cog.__new__ attrs['__cog_l...
Add two missing `ForwardRef` attributes These look somewhat like implementation details, but no more so than any of the other dunder attributes that are already on the class.
@@ -1215,6 +1215,8 @@ if sys.version_info >= (3, 7): __forward_evaluated__: bool __forward_value__: Any | None __forward_is_argument__: bool + __forward_is_class__: bool + __forward_module__: Any | None if sys.version_info >= (3, 9): # The module and is_class arguments were added in later Python 3.9 versions. def __ini...
[Chore] Add Big Sur tezos-sappling-params bottle Problem: tezos-sapling-params formula is used as a dependency for the rest of the formulae with Octez binaries. However, we don't have Big Sur bottle for it. Solution: Since this formula isn't updated automatically, provide bottle hash manually.
@@ -15,6 +15,7 @@ class TezosSaplingParams < Formula root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosSaplingParams.version}/" sha256 cellar: :any, mojave: "4e89932b0626cffe80214ba45342280c340b34c58ebbf7c3e0185a6d4662732d" sha256 cellar: :any, catalina: "5f7a5687d67051eafcfb7cb5ac542143a32...
Fix file path handling in setuptools hack. Closes
@@ -851,7 +851,7 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet= if file not in m.sources: # Old setuptools unconditionally replaces .pyx with .c/.cpp - target_file = file.rsplit('.')[0] + ('.cpp' if m.language == 'c++' else '.c') + target_file = os.path.splitext(file)[0] + ('.cpp' i...
fix data storage warnings use the correct numpy ABC for numbers
@@ -142,7 +142,7 @@ def write_dict_to_hdf5(data_dict: dict, entry_point): """ for key, item in data_dict.items(): # Basic types - if isinstance(item, (str, float, int, bool, + if isinstance(item, (str, float, int, bool, np.number, np.float_, np.int_, np.bool_)): try: entry_point.attrs[key] = item
feat(option_commodity_sina.py): add option_commodity_sina interface add option_commodity_sina interface
@@ -672,8 +672,8 @@ def get_futures_index(df): if __name__ == "__main__": get_futures_daily_df = get_futures_daily( - start_day="20200415", end_day="20200416", market="DCE", index_bar=False + start_day="20200701", end_day="20200716", market="DCE", index_bar=False ) print(get_futures_daily_df) - get_dce_daily_df = get_d...
Allow inferred scaling in MultiheadSelfAttention for head_dim != 64 Summary: Rather than raise an exception whenever head_dim != 64, we can just infer the scaling value and continue to provide a warning. Also add an assertion in case embed_dim is not a multiple of num_heads (in which case forward will break).
+import logging +import math from typing import Optional, List, Union import torch from torch import nn from torch.nn import Module - -import math - from torch.nn import functional as F +logger = logging.getLogger(__name__) + class PositionalEmbedding(Module): - def __init__( - self, num_embeddings: int, embedding_dim:...
fix: Build crashes when printing message on Windows when code is in a different drive For compatibility with Windows. relpath() fails when the specified path is on a different drive.
@@ -158,8 +158,19 @@ def do_cli(function_identifier, # pylint: disable=too-many-locals click.secho("\nBuild Succeeded", fg="green") - msg = gen_success_msg(os.path.relpath(ctx.build_dir), - os.path.relpath(ctx.output_template_path), + # try to use relpath so the command is easier to understand, however, + # under Windo...
Update setup.py add comment about cx_freeze excludes behavior
@@ -52,6 +52,10 @@ install_requires = [ ] includes = [] +# WARNING: As of cx_freeze there is a bug? +# when this is empty, its hooks will not kick in +# and won't clean platform irrelevant modules +# like dbm mentioned above. excludes = [ "openpype" ]
Add appeal categories to mod categories This allows us to run moderation commands in the appeal categories
@@ -144,6 +144,8 @@ guild: logs: &LOGS 468520609152892958 moderators: &MODS_CATEGORY 749736277464842262 modmail: &MODMAIL 714494672835444826 + appeals: &APPEALS 890331800025563216 + appeals2: &APPEALS2 895417395261341766 voice: 356013253765234688 summer_code_jam: 861692638540857384 @@ -238,6 +240,8 @@ guild: - *MODS_CA...
spark/table/union: The original implementation is too resource-intensive, change the new implementation
@@ -134,8 +134,8 @@ class Table(CTableABC): return from_rdd(_subtract_by_key(self._rdd, other._rdd)) @computing_profile - def union(self, other: 'Table', func=lambda v1, v2: v1, **kwargs): - return from_rdd(_union(self._rdd, other._rdd, func)) + def union(self, other: 'Table', **kwargs): + return from_rdd(_union(self._...
fixed (hopefully) occasional memory error Altered the construction of c_arrays to hold references to strides and shapes arrays before being put into the struct
@@ -10,6 +10,8 @@ namespace py = pybind11; struct c_array py2c(py::buffer_info info) { char format[6]; strcpy(format, info.format.c_str()); + const ssize_t *shape = &info.shape[0]; + const ssize_t *strides = &info.strides[0]; struct c_array out = { info.ptr, @@ -17,8 +19,8 @@ struct c_array py2c(py::buffer_info info) {...
Simplifies Redundant Unsilence Target Test Removes redundant functionality from the `test_unsilence_helper_fail` test as it is covered by another test. Keeps the functionality that isn't being tested elsewhere.
@@ -688,42 +688,17 @@ class UnsilenceTests(unittest.IsolatedAsyncioTestCase): self.assertDictEqual(prev_overwrite_dict, new_overwrite_dict) - @mock.patch.object(silence.Silence, "_unsilence", return_value=False) - @mock.patch.object(silence.Silence, "send_message") - async def test_unsilence_helper_fail(self, send_mess...
Fix a minor bug for pb optional field In `Pubsub.continuously_read_stream`, it checks whether this is a control message enclosed in RPC message with `if rpc_incoming.control:`. However, in pb2, the condition is always true because a default value is returned when a field is not set. Solved it by changing it to `if rpc_...
@@ -159,7 +159,11 @@ class Pubsub: for message in rpc_incoming.subscriptions: self.handle_subscription(peer_id, message) - if rpc_incoming.control: + # pylint: disable=line-too-long + # NOTE: Check if `rpc_incoming.control` is set through `HasField`. + # This is necessary because `control` is an optional field in pb2. ...
Remove deadcode Summary: We don't need this in Lightning trainers
@@ -8,7 +8,6 @@ import reagent.types as rlt import torch from reagent.core.configuration import resolve_defaults from reagent.core.dataclasses import dataclass, field -from reagent.core.tracker import observable from reagent.optimizer import Optimizer__Union, SoftUpdate from reagent.parameters import EvaluationParamete...
(re)Added !clan command Now it works, chache goes vroooom.
@@ -2583,6 +2583,21 @@ async def clan_info(ctx: Context) -> Optional[str]: return "\n".join(msg) +@clan_commands.add(Privileges.NORMAL) +async def clan_leave(ctx: Context): + """Leaves the clan you're in.""" + p = await app.state.sessions.players.from_cache_or_sql(name=ctx.player.name) + + if p.clan == None: + return "...
Added: PReLU to caffe emitter. Also fixed unicode issues for python2.
@@ -74,7 +74,7 @@ def gen_weight(weight_file, model, prototxt): global __weights_dict __weights_dict = load_weights(weight_file) - net = caffe.Net(str(prototxt), caffe.TRAIN) + net = caffe.Net(prototxt, caffe.TRAIN) for key in __weights_dict: if 'weights' in __weights_dict[key]: @@ -88,6 +88,8 @@ def gen_weight(weight_...
docs/getting-started.rst: Add missing argument to init role The default driver is 'delegated' nowadays and this document is about using the 'docker' driver, so "--driver-name docker" has to be appended to the "molecule init role" command line. Ref:
@@ -32,7 +32,7 @@ To generate a new role with Molecule, simply run: .. code-block:: bash - $ molecule init role my-new-role + $ molecule init role my-new-role --driver-name docker You should then see a ``my-new-role`` folder in your current directory.
DOC: stats: Fix versionadded markup for odds_ratio [skip azp]
@@ -363,7 +363,7 @@ def odds_ratio(table, *, kind='conditional'): The conditional odds ratio was discussed by Fisher (see "Example 1" of [1]_). Texts that cover the odds ratio include [2]_ and [3]_. - .. versionadded:: 1.7.0 + .. versionadded:: 1.10.0 References ----------
slight tweaks to side-nav behavior toggle in both directions depending on tablet transitions also gets rid of lint warning
title(newVal, oldVal) { document.title = `${newVal} - Kolibri`; }, - 'windowSize.breakpoint': function (newVal, oldVal) { // eslint-disable-line object-shorthand - // Pop out the nav if transitioning from smaller viewport. - if (oldVal < 5 & newVal > 4) { + 'windowSize.breakpoint': function updateNav(newVal, oldVal) { ...
prod_settings_template: Standardize length of heading hashes. Adjust "mandatory settings" and "Gitlab OAuth" lengths to match the length of all of the rest of their same-level headings.
@@ -14,7 +14,7 @@ from typing import Any, Dict, Tuple ## su zulip -c /home/zulip/deployments/current/scripts/restart-server -################################ +################ ## Mandatory settings. ## ## These settings MUST be set in production. In a development environment, @@ -268,7 +268,7 @@ AUTH_LDAP_USER_ATTR_MAP...
Prepare 2.0.1rc4. [ci skip-rust]
@@ -6,6 +6,26 @@ This document describes releases leading up to the ``2.0.x`` ``stable`` series. See https://www.pantsbuild.org/v2.0/docs/release-notes-2-0 for an overview of the changes in this release, and https://www.pantsbuild.org/docs/plugin-upgrade-guide for a plugin upgrade guide. +2.0.1rc4 (12/09/2020) +-------...
[backwards incompatible] switch ItemLoader from .extract to .getall. This change is backwards incompatible if ItemLoader is used with a custom Selector subclass which overrides .extract without overriding .getall.
@@ -181,7 +181,7 @@ class ItemLoader(object): def _get_xpathvalues(self, xpaths, **kw): self._check_selector_method() xpaths = arg_to_iter(xpaths) - return flatten(self.selector.xpath(xpath).extract() for xpath in xpaths) + return flatten(self.selector.xpath(xpath).getall() for xpath in xpaths) def add_css(self, field_...
Updates ROUTING.md: fix typo in prefixes. improves
@@ -109,7 +109,7 @@ in addition to `hug.http` hug includes convience decorators for all common HTTP - `examples`: A list of or a single example set of parameters in URL query param format. For example: `examples="argument_1=x&argument_2=y"` - `versions`: A list of or a single integer version of the API this endpoint su...
Fix reference to `.first()` in docs. Replaces Fixes
@@ -581,9 +581,9 @@ For more information, see the documentation on: * :py:meth:`Model.get` * :py:meth:`Model.get_by_id` * :py:meth:`Model.get_or_none` - if no matching row is found, return ``None``. -* :py:meth:`Model.first` * :py:meth:`Model.select` * :py:meth:`SelectBase.get` +* :py:meth:`SelectBase.first` - return f...
[tests] Update FamilyTestGenerator in generate_family_file generate_family_file.FamilyFileGenerator.writefile has a verify parameter.
@@ -29,7 +29,7 @@ class FamilyTestGenerator(generate_family_file.FamilyFileGenerator): super().getapis() self.langs = save - def writefile(self): + def writefile(self, verify): """Pass writing.""" pass
Update connectionBuilder.js Add code snippet to use odbc-connect-string-extras set in postgres_odbc
params["UseDeclareFetch"] = "1"; params["Fetch"] = "2048"; + var odbcConnectStringExtrasMap = {}; + if ("odbc-connect-string-extras" in attr) + { + odbcConnectStringExtrasMap = connectionHelper.ParseODBCConnectString(attr["odbc-connect-string-extras"]); + } + for (var key in odbcConnectStringExtrasMap) + { + params[key...
trying to figure out why travis didn't load my tests removed the pypy check for now, so the pypy tests will definitely fail
@@ -52,8 +52,8 @@ install: - python -c 'import awkward; print(awkward.__version__)' - export AWKWARD_DEPLOYMENT=base - pip install --upgrade pyOpenSSL # for deployment - - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]] ; then pip install pybind11 ; fi - - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]] ; then ln -s ../awkward-cpp/a...
make jit logging visible, so it can be used in a TVM compiler Summary: Pull Request resolved:
#pragma once #include <string> +#include <torch/csrc/WindowsTorchApiMacro.h> + // To enable logging please set(export) PYTORCH_JIT_LOG_LEVEL to // the ordinal value of one of the following logging levels: 1 for GRAPH_DUMP, // 2 for GRAPH_UPDATE, 3 for GRAPH_DEBUG. @@ -23,15 +25,15 @@ enum class JitLoggingLevels { std::...
Replace deprecated BuildEnvironment.create_index() This function was deprecated in sphinx 1.6 and removed in 2.0. The function call is replaced with the recommended replacement according to
@@ -55,6 +55,7 @@ from sphinx.util.console import darkgreen, red from sphinx.util import SEP from sphinx.util import ustrftime from sphinx.environment import NoUri +from sphinx.environment.adapters.indexentries import IndexEntries from sphinx.locale import admonitionlabels, versionlabels if sphinx.__version__ >= '1.': ...
Add condition to os-net-config run during upgrade. This add two conditionals: - first check that os-net-config needs upgrade - second verify that the configuration file exist and non empty. This prevent unnecessary run of os-net-config and error in certain network configuration. Closes-Bug:
@@ -53,6 +53,16 @@ outputs: fail: msg="rpm-python package was not present before this run! Check environment before re-running" when: rpm_python_check.changed != false tags: step0 + - name: Check for os-net-config upgrade + shell: yum check-upgrade | grep os-net-config + register: os_net_config_need_upgrade + ignore_er...
Add testdir examples to CONTRIBUTING guide Hopefully Closes:
@@ -280,6 +280,37 @@ Here is a simple overview, with pytest-specific bits: base: features # if it's a feature +Writing Tests +---------------------------- + +Writing tests for plugins or for pytest itself is done using the `testdir fixture <https://docs.pytest.org/en/latest/reference.html#testdir>`_, + +For example: + ...
Shuffle AssociationItem code So post_update() is no longer needed.
@@ -139,12 +139,6 @@ class AssociationItem(LinePresentation[UML.Association], Named): """Handle events and update text on association end.""" for end in (self._head_end, self._tail_end): end.set_text() - self.request_update() - - def post_update(self, context): - """Update the shapes and sub-items of the association.""...
Generalize setting the specified function Use a function to set up the wrapper function and call it properly.
@@ -108,23 +108,38 @@ except DbusClientGenerationError as err: # pragma: no cover ) from err -try: - orig_method = Manager.Methods.CreatePool # pylint: disable=invalid-name +def _add_abs_path_assertion(klass, method_name, key): + """ + Set method_name of method_klass to a new method which checks that the + device paths...
Update to Prometheus 2.13.1 [BUGFIX] Fix panic in ARM builds of Prometheus. [BUGFIX] promql: fix potential panic in the query logger. [BUGFIX] Multiple errors of http: superfluous response.WriteHeader call in the logs.
%define debug_package %{nil} Name: prometheus2 -Version: 2.13.0 +Version: 2.13.1 Release: 1%{?dist} Summary: The Prometheus 2.x monitoring system and time series database. License: ASL 2.0
client2: rendering: refactor show_html This patch moves all patch related code into `_apply_patch` to make the code more readable. This patch does not contain any functional changes.
@@ -589,7 +589,10 @@ export class LonaRenderingEngine { _apply_patch(patch) { var patch_type = patch[1]; - if(patch_type == Lona.protocol.PATCH_TYPE.NODES) { + if(patch_type == Lona.protocol.PATCH_TYPE.WIDGET_DATA) { + this._apply_patch_to_widget_data(patch); + + } else if(patch_type == Lona.protocol.PATCH_TYPE.NODES) ...
Update __init__.py Clean logging details
@@ -10,9 +10,6 @@ except Exception: import logging log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) -# log.info("Welcome ! this is a INFO msg") -# log.debug("Welcome ! this is a DEBUG msg") -# log.warning("Welcome ! this is a WARNING msg") # Import facades: from .fetchers import ArgoDataFetcher a...
Patches MapForwardSimulator.create_layout to work when max_cache_size is None. An oversight in the logic in nested `approx_cache_mem_estimate` caused an exception to be raised with max_cache_size is None. Fixed now.
@@ -142,7 +142,9 @@ class MapForwardSimulator(_DistributableForwardSimulator, SimpleMapForwardSimula return _cache_mem(max_cache_size, blk1, blk2) def approx_cache_mem_estimate(nc, np1, np2, n_comms): - approx_cache_size = min((len(circuits) / nc) * 0.7, self._max_cache_size) + approx_cache_size = (len(circuits) / nc) ...
Last few Flake8 complaints Finished cleaning up the last few flake8 complaints in profile.py
@@ -8,6 +8,7 @@ from naomi import paths import os from . import populate import re +import shutil import yaml _profile = {} @@ -40,8 +41,12 @@ def get_profile(command=""): try: os.makedirs(paths.SUB_PATH) except OSError: - _logger.error("Could not create .naomi dir: '%s'", - paths.SUB_PATH, exc_info=True) + _logger.err...
Update build.sh cudnn7 folder is no available
@@ -143,7 +143,7 @@ build_local(){ elif [[ ${build_ver} == "gpu" ]]; then echo "building ESPnet GPU Image with ubuntu:${ubuntu_ver} and cuda:${cuda_ver}" if [ "${build_base_image}" = true ] ; then - docker build -f prebuilt/devel/gpu/${ver}/cudnn7/Dockerfile -t espnet/espnet:cuda${ver}-cudnn7 . || exit 1 + docker build...
add removing 'on_return' handler on channel close (fix memory leak) Because aiormq Channel keeps reference to the 'on_return' method of the aio-pika Channel, the Garbage Collector cannot free the Channel object which causes memory leakage.
@@ -184,6 +184,9 @@ class Channel(ChannelContext): async def _on_close(self, closing: asyncio.Future) -> None: await self.close_callbacks(closing.exception()) + if self._channel and self._channel.channel: + self._channel.channel.on_return_callbacks.discard(self._on_return) + async def _on_initialized(self) -> None: sel...
add juju debug output for bootstrap if --debug exists Fixes
@@ -175,7 +175,11 @@ def bootstrap(controller, cloud, series="xenial", credential=None): cmd += "--bootstrap-series={} ".format(series) if cloud != "localhost": cmd += "--credential {} ".format(credential) + + if app.argv.debug: + cmd += "--debug" app.log.debug("bootstrap cmd: {}".format(cmd)) + try: pathbase = os.path...
[LongT5] Remove duplicate encoder_attention_mask default value check Remove duplicate encoder_attention_mask default value assignment
@@ -1449,11 +1449,6 @@ class LongT5Stack(LongT5PreTrainedModel): if attention_mask is None: attention_mask = torch.ones(batch_size, mask_seq_length, device=inputs_embeds.device) - if self.is_decoder and encoder_attention_mask is None and encoder_hidden_states is not None: - encoder_seq_length = encoder_hidden_states.sh...
Add missing dependencies for travis and fix X11 error The travis build lacks of some dependencies needed to perform all the tests: gdata and feedparser. Also fix X11 error when trying to import gstreamer.
@@ -15,6 +15,13 @@ before_install: - sudo apt-get install --yes gstreamer1.0-alsa gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-libav # Dependencies for gi.repository: Gst, GObject, Cairo - sudo apt-get install -y libgi...
add format fields 'compiler', 'hostname', 'user' in buildtest report command. Alphabetize format fields so that buildtest report --helpformat will show that by field name
@@ -21,22 +21,25 @@ class Report: # all format fields available for --helpformat format_fields = [ "buildspec", - "name", - "id", - "full_id", - "testroot", - "testpath", "command", - "outfile", + "compiler", + "endtime", "errfile", - "schemafile", "executor", - "tags", - "starttime", - "endtime", + "full_id", + "hostn...
Update field.html template Change position of help_texts and errors for all form fields. Additionally move around (add margins and what-not) to subfields.
{% include 'bootstrap4/layout/field_file.html' %} {% else %} <div class="{{ field_class }}"> - {% crispy_field field %} {% include 'bootstrap4/layout/help_text_and_errors.html' %} + {% crispy_field field %} {% if field.field.widget.subfield %} {% with subfield=field.field.widget.subfield %} + {% if field.help_text %} +...
Improve PrintableErrorField formatting clarity Minor reordering, and make the format method return its result (rather than changing an attribute in place).
@@ -13,29 +13,29 @@ class PrintableErrorField(object): TEXT_PREFIX = 'Globus CLI Error:' def __init__(self, name, value, multiline=False): + self.multiline = multiline self.name = safe_stringify(name) self.raw_value = safe_stringify(value) - self.value = self.raw_value - self.multiline = multiline - self._format_value(...
ebd/eapi/2/src_configure.bash: Fix typo in econf --libdir logic Fixes
@@ -26,7 +26,7 @@ econf() { [[ ${CONF_PREFIX} != /* ]] && CONF_PREFIX=/${CONF_PREFIX} elif [[ $* == *"--prefix="* ]]; then local args=$(echo $*) - local -a pref=( $(echo ${args/*--prefix[= ]}) ) + local -a prefix=( $(echo ${args/*--prefix[= ]}) ) CONF_PREFIX=${prefix/--*} [[ ${CONF_PREFIX} != /* ]] && CONF_PREFIX=/${CO...
TrainingRequestUpdateForm: Disable `score_auto` field Admins won't be able to alter field's score calculated by AMY.
@@ -1362,6 +1362,12 @@ class TrainingRequestUpdateForm(forms.ModelForm): widget=ModelSelect2(url='person-lookup') ) + score_auto = forms.IntegerField( + disabled=True, + label=TrainingRequest._meta.get_field('score_auto').verbose_name, + help_text=TrainingRequest._meta.get_field('score_auto').help_text, + ) + helper = ...
issue refactor Connection to support reset() Now the tests pass.
@@ -550,7 +550,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): self.host_vars = task_vars['hostvars'] self.delegate_to_hostname = delegate_to_hostname self.loader_basedir = loader_basedir - self.close(new_task=True) + self._reset(mode='put') def get_task_var(self, key, default=None): if self._task_var...
Update evoked.py Including the hint to the appropriate file ending to the docstring of save definition. Matches to
@@ -171,7 +171,8 @@ class Evoked(ProjMixin, ContainsMixin, UpdateChannelsMixin, Parameters ---------- fname : string - Name of the file where to save the data. + The name of the file, which should end with -ave.fif or + -ave.fif.gz. Notes -----
fail longpolling endpoint after 45 seconds. this should fix a possible bug in which connections are left open forever or worse.
@@ -32,6 +32,24 @@ async def api_public_payment_longpolling(payment_hash): print("adding standalone invoice listener", payment_hash, send_payment) api_invoice_listeners.append(send_payment) + response = None + + async def payment_info_receiver(cancel_scope): async for payment in receive_payment: if payment.payment_hash...
Fixing formatting for timedelta. Now it will only show the amount of days. Quality of Life: Also show `day` instead of `days` when it's just 1 day.
@@ -205,8 +205,8 @@ class Defcon(Cog): msg = f"{Emojis.defcon_disabled} DEFCON disabled.\n\n" elif action is Action.UPDATED: msg = ( - f"{Emojis.defcon_updated} DEFCON days updated; accounts must be {self.days} " - "days old to join the server.\n\n" + f"{Emojis.defcon_updated} DEFCON days updated; accounts must be {sel...
UPDATE API route create all the database tables seed_db : Create Default roles
@@ -7,6 +7,10 @@ from sqlalchemy.orm import Session from app import crud, models, schemas from app.api import deps +from app.db.session import engine,SessionLocal + +from syft.core.node.common.tables import Base +from syft.core.node.common.tables.utils import seed_db router = APIRouter() @@ -17,8 +21,9 @@ from syft.cor...
Add a default onnx opset function for tf exports Test Plan: `tests/tensorflow/utils` passes, running tensorflow tests as well async Reviewers: mark.kurtz, dhuang, tuan, kevinaer, mgoin, alexm Subscribers: #core
@@ -6,6 +6,7 @@ from typing import List, Dict, Union import os from collections import OrderedDict import numpy +import onnx from neuralmagicML.utils import ( clean_path, @@ -17,7 +18,11 @@ from neuralmagicML.tensorflow.utils.helpers import tf_compat, tensors_export from neuralmagicML.tensorflow.utils.variable import c...
build_scripts: Only copy `win_code_sign_cert.p12` if we have secrets PRs from forked `chia-blockchain` repos don't have the cert available which leads to the installer step to fail, see Follow-up for
@@ -89,7 +89,9 @@ Write-Output " ---" Copy-Item "dist\daemon" -Destination "..\chia-blockchain-gui\packages\gui\" -Recurse Set-Location -Path "..\chia-blockchain-gui" -PassThru # We need the code sign cert in the gui subdirectory so we can actually sign the UI package +If ($env:HAS_SECRET) { Copy-Item "win_code_sign_ce...
fix: dont pass doc to tooltip formatter on reportview This just doesn't exist. Also filtering doc by value makes no sense, it's bound to be incorrect or misleading.
@@ -536,7 +536,6 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView { this.last_chart_type = args.chart_type; const get_df = (field) => this.columns_map[field].docfield; - const get_doc = (value, field) => this.data.find((d) => d[field] === value); this.$charts_wrapper.removeClass("hidden"); @@...
fix: allow devices with notification capability Added capability check for TIMERS_AND_ALARMS and REMINDERS. Include_devices will also override the capability check. closes
@@ -406,10 +406,15 @@ async def setup_alexa(hass, config_entry, login_obj: AlexaLogin): continue if ( - device.get("capabilities") - and "MUSIC_SKILL" not in device["capabilities"] + dev_name not in include_filter + and device.get("capabilities") + and not any( + x in device["capabilities"] + for x in ["MUSIC_SKILL", "...
explictly specify version in docker-compose.yaml docker-compose will re-use old builds rather than rebuilding, so be explicit about what version you want.
@@ -38,7 +38,7 @@ services: build: context: . dockerfile: Dockerfile.gauge - image: 'faucet/gauge:latest' + image: 'faucet/gauge:1.5.3' environment: - GAUGE_CONFIG=/etc/ryu/faucet/gauge.yaml volumes: @@ -55,11 +55,10 @@ services: build: context: . dockerfile: Dockerfile - image: 'faucet/faucet:latest' + image: 'faucet/...
Move add new default stream box to top. Fixes
<p>{{#tr this}}Configure the default streams new users are subscribed to when joining your organization.{{/tr}}</p> </div> + {{#if is_admin}} + <form class="form-horizontal default-stream-form"> + <div class="add-new-default-stream-box grey-bg"> + <div class="new-default-stream-section-title">{{t "Add new default strea...
AC: callback for getting annotation and prediction for visualization * AC: remove deprecated pipelined mode * Revert "AC: remove deprecated pipelined mode" This reverts commit * AC: callback for getting annotation and prediction for visualizatio n
@@ -208,15 +208,12 @@ class ModelEvaluator(BaseEvaluator): if self.dataset.batch is None: self.dataset.batch = self.launcher.batch - raw_outputs_callback = kwargs.get('output_callback') + output_callback = kwargs.get('output_callback') predictions_to_store = [] for batch_id, (batch_input_ids, batch_annotation) in enume...