message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
cabs -> abs
cabs is automatically emitted by loopy for a c99 target | @@ -501,7 +501,7 @@ def test_complex_support(ctx_factory, target):
euler1_imag[i] = imag(euler1[i])
real_times_complex[i] = in1[i]*(in2[i]*1j)
real_plus_complex[i] = in1[i] + (in2[i]*1j)
- abs_complex[i] = cabs(real_plus_complex[i])
+ abs_complex[i] = abs(real_plus_complex[i])
complex_div_complex[i] = (2jf + 7*in1[i])/... |
fixed TypeError
`shift` variable was defined as a `list`, which breaks line 490:
```
midpt_index = np.argmin(np.abs(shifts-midval))
```
Simple solution implemented here is to change it to a `numpy.ndarray` . | @@ -472,9 +472,9 @@ class Specfit(interactive.Interactive):
midpt = self.Spectrum.xarr[midpt_pixel].value
elif midpt_location == 'fitted':
try:
- shifts = [self.Spectrum.specfit.parinfo[x].value
+ shifts = np.array([self.Spectrum.specfit.parinfo[x].value
for x in self.Spectrum.specfit.parinfo.keys()
- if 'SHIFT' in x]
... |
Update installation-osx.rst
Remove extraneous backticks. | @@ -142,7 +142,7 @@ To install the Kivy virtualenv, you must:
3. In the GUI copy the Kivy.app to /Applications by dragging the folder icon to the right.
4. Optionally create a symlink by running the following command::
- ``ln -s /Applications/Kivy.app/Contents/Resources/script /usr/local/bin/kivy``
+ ln -s /Application... |
Update apt_barium.txt
```If it is unable to communicate with the domain above, Speculoos will attempt to use a backup C2 at 119.28.139[.]20, also over TCP/443. ``` | @@ -81,6 +81,10 @@ exchange.dumb1.com
# Reference: https://unit42.paloaltonetworks.com/apt41-using-new-speculoos-backdoor-to-target-organizations-globally/
# Reference: https://otx.alienvault.com/pulse/5e95c0d3d12068d29f538338
+# Reference: https://www.virustotal.com/gui/ip-address/66.42.98.220/relations
+http://66.42.... |
Add check calls for configurable class
Summary: A little seatbelt
Test Plan: Unit
Reviewers: prha, alangenfeld, dgibson | @@ -26,9 +26,9 @@ def _schedule_directory(base):
def configurable_class_data(config_field):
return ConfigurableClassData(
- config_field["module"],
- config_field["class"],
- yaml.dump(config_field.get("config") or {}, default_flow_style=False),
+ check.str_elem(config_field, "module"),
+ check.str_elem(config_field, "... |
Fix Kubeflow ingress issues
Allows setting a hostname during `microk8s.enable kubeflow`, in case a
user wants something other than localhost, and also manually creates an
Ingress vs using `juju expose`, due to issues with cluster restart. | @@ -19,7 +19,7 @@ def run(*args, die=True, debug=False):
env["PATH"] += ":%s" % os.environ["SNAP"]
if debug:
- print("Running `%s`" % ' '.join(args))
+ print("Running `%s`" % " ".join(args))
result = subprocess.run(
args,
@@ -51,7 +51,7 @@ def get_random_pass():
def juju(*args, **kwargs):
- if strtobool(os.environ.get(... |
Don't show signature help if user has continued typing
When opened after server reply, the hover fights with the completion menu. | @@ -101,6 +101,7 @@ class SignatureHelpListener(sublime_plugin.ViewEventListener):
self.view.hide_popup()
def request_signature_help(self, point: int) -> None:
+ self.requested_position = point
client = client_from_session(session_for_view(self.view, 'signatureHelpProvider', point))
if client:
global_events.publish("vi... |
Don't show token with decimals=None
Closes | @@ -98,7 +98,7 @@ class BalanceService:
:param exclude_spam:
:return: ERC20 tokens filtered by spam or trusted
"""
- base_queryset = Token.objects.filter(
+ base_queryset = Token.objects.erc20().filter(
address__in=erc20_addresses
).values_list(
'address', flat=True
|
Fix phishing playbook
1. Set sender properly into context
2. Use the sender from incident label instead of context, since context can contain many other emails as well | @@ -3,6 +3,7 @@ version: -1
system: true
fromversion: 2.5.0
name: Phishing Playbook - Automated
+releaseNotes: "-"
description: |-
This is an automated playbook to investigate suspected Phishing attempts.
It picks up the required information from the incident metadata as created by the mail listener.
@@ -86,7 +87,7 @@ ... |
Fix a typo in tutorials docs
Fix a typo in tutorials docs (double parenthesis: "))" ) | @@ -58,7 +58,7 @@ inversion problems.
<http://nbviewer.jupyter.org/github/opesci/devito/blob/master/examples/seismic/tutorials/03_fwi.ipynb>`_
* `04 - Distributed FWI with Dask
<http://nbviewer.jupyter.org/github/opesci/devito/blob/master/examples/seismic/tutorials/04_dask.ipynb>`_
-* `05 - FWI with total variation (TV... |
auto_attr_custom: forward the documentation to generated class
TN: | @@ -713,6 +713,7 @@ def auto_attr_custom(name, *partial_args, **partial_kwargs):
'__init__': __init__,
'__repr__': __repr__,
'sub_expressions': sub_expressions,
+ '__doc__': fn.__doc__,
}
))
|
Fix documentation for repo cloning
To clone the GitHub repository into /opt/peering-manager, the dot has to be removed. If you don't remove the dot, the repository will be cloned into /opt | @@ -21,13 +21,14 @@ Clone the Git repository from the base directory. This will create the
`peering-manager` application directory and extract the repository into it.
```no-highlight
-# git clone https://github.com/respawner/peering-manager.git .
-Cloning into '.'...
-remote: Counting objects: 431, done.
-remote: Compr... |
Correct definition to match output in document.
Code was malformed, with un-even brackets and output was not matching. | @@ -26,7 +26,7 @@ Add definitions to your spec using `definition <apispec.APISpec.definition>`.
spec.definition('Gist', properties={
'id': {'type': 'integer', 'format': 'int64'},
- 'content': 'type': 'string'},
+ 'name': {'type': 'string'}
})
|
STY: updated flake8 in unit tests
Made flake8 suggested style changes in unit tests. | @@ -64,7 +64,6 @@ class TestTestingUtils():
"""
assert testing.nan_equal(val1, val2)
-
@pytest.mark.parametrize("val1, val2", [(0.0, 1.0), (np.nan, np.inf),
('one', 'One'), (None, False),
(True, 'true'), (False, 'F'),
|
Update gcloud_setup.rst
rst -> html | @@ -77,7 +77,7 @@ In the config file (the one that you use with --config flag, or, if you
use default, in the ``studio/default_config.yaml``), go to the ``cloud``
section. Change projectId to the project id of the google project that
you enabled cloud computing under. You can also modify default instance
-parameters (s... |
Update android_bankbot.txt
Deleting some orphan strings | @@ -2040,13 +2040,11 @@ hir-san.tk
ili-oori.tk
internet-bankmellat-ir.tk
internet-mellatbank-ir.tk
-ir-idpax-tk
+ir-idpax-iran.tk
lnternet-bankmellat-ir.tk
lsp-pey.cf
mellatbank-iran-com.ga
mylicense.cf
-ns1.p-vps.tk
-ns2.p-vps.tk
og-req.tk
op-seq.tk
p-coin.tk
|
svtplay: dont download related videos with -A
fixes: | @@ -205,7 +205,7 @@ class Svtplay(Service, MetadataThumbMixin):
if tab == i["id"]:
collections.append(i)
else:
- if i["id"] == "upcoming":
+ if i["id"] == "upcoming" or i["id"] == "related":
continue
elif self.config.get("include_clips") and "clips" in i["id"]:
collections.append(i)
|
Fix string in header
Commit changed
sha1 to sha256.
Need to change string correspondingly
Related-Bug: | @@ -185,7 +185,7 @@ def http_log_req(_logger, args, kwargs):
v = value.encode('utf-8')
h = hashlib.sha256(v)
d = h.hexdigest()
- value = "{SHA1}%s" % d
+ value = "{SHA256}%s" % d
header = ' -H "%s: %s"' % (key, value)
string_parts.append(header)
|
CircularDmaBuffer: get udp_if from test fixture
Was not breaking tests before, but see | @@ -38,7 +38,6 @@ namespace {
// Variables
// ----------------------------------------------------------------------------
constexpr size_t BUFFER_SIZE_TEST = 100;
-MockUartInterface uart_if;
// Classes & structs
// ----------------------------------------------------------------------------
@@ -57,11 +56,12 @@ protect... |
Fix inventory_dns
Dnsmasq does not re-read its config files on SIGHUP ([1]). Since
a config directive (host-record) is used, a service restart is
required in order for the record to be available.
[1]
"Notes
[...] SIGHUP does NOT re-read the configuration file." | mode: 0644
when: inventory_dns | bool == true
become: yes
-- name: "Sending dnsmasq HUP"
- # Note(TheJulia): We need to actually to send a hup signal directly as
- # Ansible's reloaded state does not pass through to the init script.
- command: killall -HUP dnsmasq
+- name: "Restarting dnsmasq"
+ service:
+ name: dnsmas... |
Fix logging statements
went unnoticed because logging exceptions wont interrupt
the main thread so you actually have to view the logs to notice | @@ -87,9 +87,9 @@ def test_signal_service(dcos_api_session):
if enabled == 'false':
pytest.skip('Telemetry disabled in /opt/mesosphere/etc/dcos-signal-config.json... skipping test')
- logging.info("Version: ", dcos_version)
- logging.info("Customer Key: ", customer_key)
- logging.info("Cluster ID: ", cluster_id)
+ logg... |
Reduce code duplication in AddElementwise
This patch decreases code duplication in the
parameter parsing of
augmenters.arithmetic.AddElementwise by using
the parameter handling functions
in parameters.py. | @@ -150,13 +150,15 @@ class AddElementwise(Augmenter):
Parameters
----------
- value : int or iterable of two ints or StochasticParameter, optional(default=0)
+ value : int or tuple of two int or list of int or StochasticParameter, optional(default=0)
Value to add to the
pixels.
* If an int, then that value will be use... |
Bug fix for FrechetSort
Summary:
noise should be sample independently
default length is the last dim of scores | @@ -74,7 +74,7 @@ class FrechetSort(Sampler):
number of items and it can be difficult to enumerate them."""
assert scores.dim() == 2, "sample_action only accepts batches"
log_scores = scores if self.log_scores else torch.log(scores)
- perturbed = log_scores + self.gumbel_noise.sample((scores.shape[1],))
+ perturbed = l... |
fix: Remove opening file object when validating S3 parquet source
* Remove opening the file object
Let pyarrow handle opening the path using the filesystem.
* fix: linting error | @@ -160,9 +160,7 @@ class FileSource(DataSource):
if filesystem is None:
schema = ParquetDataset(path).schema.to_arrow_schema()
else:
- schema = ParquetDataset(
- filesystem.open_input_file(path), filesystem=filesystem
- ).schema
+ schema = ParquetDataset(path, filesystem=filesystem).schema
return zip(schema.names, map... |
Fix proxy documentation
Make user and password documentation identical | @@ -53,7 +53,7 @@ def managed(name, port, services=None, user=None, password=None, bypass_domains=
The username to use for the proxy server if required
password
- The password to use if required by the server
+ The password to use for the proxy server if required
bypass_domains
An array of the domains that should bypas... |
Prepare `2.11.1rc3`.
[ci skip-rust]
[ci skip-build-wheels] | # 2.11.x Release Series
+## 2.11.1rc3 (Jun 23, 2022)
+
+### Bug fixes
+
+* Fix `[python-infer].inits` and `[python-infer].conftests` to consider `resolve` field (Cherry-pick of #15787) ([#15794](https://github.com/pantsbuild/pants/pull/15794))
+
+### Documentation
+
+* Fix broken links to `tailor` documentation ([#1584... |
Fix inconsistent credential precedence for ebcli
The cli was not setting the correct profile when multiple profiles
were being used back and forth during multiple init calls. This
was due to an update on botocore. The CLI now correctly sets the
profile tag if used during init.
SIM
CR | @@ -168,6 +168,7 @@ def _get_botocore_session():
'profile': (None, _profile_env_var, _profile, None),
})
session.set_config_variable('region', _region_name)
+ session.set_config_variable('profile', _profile)
session.register_component('data_loader', _get_data_loader())
_set_user_agent_for_session(session)
_get_botocore... |
EditScopeAlgo : Improve TransformEdits UI
Make row names wider, to better accomodate long location names.
Hide default row. It is never used because every location in the PathFilter has a dedicated row in the spreadsheet. | #include "GafferScene/Transform.h"
#include "Gaffer/EditScope.h"
+#include "Gaffer/Metadata.h"
#include "Gaffer/PlugAlgo.h"
#include "Gaffer/Spreadsheet.h"
#include "Gaffer/StringPlug.h"
@@ -165,7 +166,10 @@ SceneProcessorPtr transformProcessor()
plug->setInput( spreadsheet->outPlug()->getChild<Plug>( name ) );
}
- Plu... |
fix nginx ngstat access lists
HG--
branch : feature/microservices | @@ -135,9 +135,14 @@ server {
location /ng_stats {
stub_status;
-{% for ip in ansible_all_ipv4_addresses %}
+{% for host in groups["svc-nginx"] %}
+ {% for ip in hostvars[host].ansible_all_ipv4_addresses %}
allow {{ ip }};
{% endfor %}
+{% endfor %}
+{% if keepalived_nginx_virtual_ip %}
+ allow {{ keepalived_nginx_virt... |
docs: warn about darglint perf issues
darglint has a known performance issue with NumPy and Google styles.
The best solution so far is to use it seldomly, manually and through CI | @@ -73,6 +73,17 @@ following settings:
Our `darglint.toml <https://github.com/wemake-services/wemake-python-styleguide/blob/master/styles/darglint.toml>`_
file is available with the core settings for ``isort``.
+.. warning::
+
+ There is a `known issue <https://github.com/terrencepreilly/darglint/issues/186>`_
+ with `... |
workloads/rt_app: Remove timeout in file transfer
Remove the explict timeout when pushing to the device.
Allow the polling mechanims to monitor the transfer if required. | @@ -162,7 +162,7 @@ class RtApp(Workload):
self.host_json_config = self._load_json_config(context)
self.config_file_on_target = self.target.path.join(self.target_working_directory,
os.path.basename(self.host_json_config))
- self.target.push(self.host_json_config, self.config_file_on_target, timeout=60)
+ self.target.pu... |
[config-service] fix string formatting
TBR=tandrii@chromium.org | @@ -468,7 +468,7 @@ class ConfigApi(remote.Service):
if not acl.can_reimport(request.config_set):
raise endpoints.ForbiddenException(
'%s is now allowed to reimport %r' % (
- auth.get_current_identity().to_bytes()), request.config_set)
+ auth.get_current_identity().to_bytes(), request.config_set))
# Assume it is Gitile... |
Separate the geometry description into a new
function | @@ -283,6 +283,7 @@ class FluidFlow:
self.yp = 0
self.p_mat_analytical = np.zeros([self.nz, self.ntheta])
self.p_mat_numerical = np.zeros([self.nz, self.ntheta])
+ self.geometry_description()
self.analytical_pressure_matrix_available = False
self.numerical_pressure_matrix_available = False
self.calculate_pressure_matri... |
Fix regression from
Forgot that the default setting for use-qsv-decoder-with-encoder was True
Fixes | @@ -661,7 +661,7 @@ class MkvtoMp4:
options['preopts'].extend(['-hwaccel', 'dxva2'])
elif info.video.codec.lower() == "hevc" and self.hevc_qsv_decoder:
options['preopts'].extend(['-vcodec', 'hevc_qsv'])
- elif info.video.codec.lower() == "h264" and self.qsv_decoder and (info.video.video_level / 10) < 5:
+ elif vcodec =... |
Fix taking address of temporary array
Error was:
dtype_transfer.c:2979:28: error: taking address of temporary array
2979 | (char *[2]){main_src, main_dst}, &block_size,
| ^~~~~~~~~~~~~~~~~~~~ | @@ -2951,9 +2951,11 @@ _strided_to_strided_multistep_cast(
if (castdata->from.func != NULL) {
npy_intp out_stride = castdata->from.descriptors[1]->elsize;
+ char *const data[2] = {src, castdata->from_buffer};
+ npy_intp strides[2] = {src_stride, out_stride};
if (castdata->from.func(&castdata->from.context,
- (char *[2]... |
Document location of frontend code on docker
Mention the location of the frontend code in docker | @@ -23,7 +23,7 @@ Install Node.js and Yarn
$ apt-get update && apt-get install nodejs yarn
-Cd to timesketch repository root (folder that contains `package.json`)
+Cd to timesketch repository root (folder that contains `package.json` - on docker it is: `/usr/local/src/timesketch/timesketch/frontend`)
and install Node.j... |
Translated using Weblate (English)
Currently translated at 100.0% (22 of 22 strings)
Translate-URL:
Translation: Couchers/Web app - Donations | "donations_info": "Your donation goes to <1>{{ legal_name }}</1>, a U.S. 501(c)(3) non-profit that operates the Couchers.org service and supports the project. Donations are tax exempt in the USA, our EIN is 87-1734577.",
"benefactor_contact": "If you wish to contribute over $1000, please contact us at <1>{{email}}</1> ... |
Update jax2tf_test.py
Fix the type of np.zeros to be float32.
Also, replaced `jnp.zeros` with `np.zeros` because technically the argument to `f_tf` should be a TF value, not a JAX value. | @@ -522,7 +522,7 @@ class Jax2TfTest(tf_test_util.JaxToTfTestCase):
return jnp.sum(x)
f_tf = jax2tf.convert(f_jax)
self.assertAllClose(
- f_tf(x=jnp.zeros(3)), # Call with kwargs.
+ f_tf(x=np.zeros(3, dtype=np.float32)), # Call with kwargs.
np.zeros((), dtype=np.float32))
|
Fix LVM state documentation
Capitalise the right words
Add clarification to lv_absent on vgname | @@ -42,7 +42,7 @@ def __virtual__():
def pv_present(name, **kwargs):
'''
- Set a physical device to be used as an LVM physical volume
+ Set a Physical Device to be used as an LVM Physical Volume
name
The device name to initialize.
@@ -106,13 +106,13 @@ def pv_absent(name):
def vg_present(name, devices=None, **kwargs):
... |
Fix flaky test
Summary:
Set random seed
Pull Request resolved: | import json
import logging
+import random
import unittest
from typing import Dict, List
+import numpy as np
import torch
from ml.rl.test.gym.world_model.mdnrnn_gym import mdnrnn_gym
@@ -18,6 +20,9 @@ MDNRNN_CARTPOLE_JSON = "ml/rl/test/configs/mdnrnn_cartpole_v0.json"
class TestMDNRNNGym(unittest.TestCase):
def setUp(se... |
Ryu's parser is too clever, trying to parse down to the application.
Have it drop the packet if the Ryu parser crashes. | import ipaddress
from ryu.lib import mac
-from ryu.lib.packet import arp, ethernet, icmp, icmpv6, ipv4, ipv6, packet, vlan
+from ryu.lib.packet import arp, ethernet, icmp, icmpv6, ipv4, ipv6, stream_parser, packet, vlan
from ryu.ofproto import ether
from ryu.ofproto import inet
@@ -57,11 +57,16 @@ def parse_pkt(pkt):
d... |
bugfix: tests: core: Assign ThemeSpec instance to `controller` theme.
This commit replaces the previous assignment of a `str` value to the
theme attribute of the `controller` pytest fixture with a ThemeSpec
instance generated by the `generate_theme` helper method. | @@ -5,6 +5,7 @@ from typing import Any
import pytest
+from zulipterminal.config.themes import generate_theme
from zulipterminal.core import Controller
from zulipterminal.version import ZT_VERSION
@@ -37,7 +38,7 @@ class TestController:
self.config_file = "path/to/zuliprc"
self.theme_name = "zt_dark"
- self.theme = "def... |
stm32h7: correct PLL2DIVR field names
Now agrees with RM0433 | @@ -402,6 +402,16 @@ RCC:
name: BDRST
RTCSRC:
name: RTCSEL
+ PLL2DIVR:
+ _modify:
+ DIVP1:
+ name: DIVP2
+ DIVQ1:
+ name: DIVQ2
+ DIVR1:
+ name: DIVR2
+ DIVN1:
+ name: DIVN2
APB1LRSTR:
_modify:
USART7RST:
|
docs: Remove mentions of some ldap features being added in 2.0.
2.0 is old enough that explicitly mentioning when these features were
implemented isn't particularly useful and adds clutter. | @@ -194,14 +194,14 @@ run of `manage.py sync_ldap_user_data`.
#### Synchronizing avatars
-Starting with Zulip 2.0, Zulip supports syncing LDAP / Active
+Zulip supports syncing LDAP / Active
Directory profile pictures (usually available in the `thumbnailPhoto`
or `jpegPhoto` attribute in LDAP) by configuring the `avatar... |
remove the reference to a bug
as the bug has been fixed in the public client lib | "\n",
"The AutoML Tables logs the errors in the `errors.csv` file.\n",
"\n",
- "**NOTE:** The client library has a bug. If the following cell returns a `TypeError: Could not convert Any to BatchPredictResult` error, ignore it. The batch prediction output file(s) will be updated to the GCS bucket that you set in the pre... |
fix wrong http method,
update should use PATCH method instead of POST | @@ -127,7 +127,7 @@ class ScanZoneAPI(SCEndpoint):
... ips=['127.0.0.1'], scanner_ids=[1])
'''
payload = self._constructor(**kw)
- return self._api.post('zone', json=payload).json()['response']
+ return self._api.patch('zone/{}'.format(id), json=payload).json()['response']
def list(self, fields=None):
|
Reinitializes LS gauge opt algo alongside minimize
LS gauge opt (on its own), runs in .136 seconds on my machine.
Previously, it took 16.45 seconds | @@ -208,8 +208,6 @@ def gaugeopt_to_target(gateset, targetGateset, itemWeights=None,
found, gaugeMx is the gauge matrix used to transform the gateset, and gateset is the
final gauge-transformed gateset.
"""
-
-
if CPpenalty == 0 and \
TPpenalty == 0 and \
validSpamPenalty == 0 and \
@@ -405,24 +403,28 @@ def gaugeopt_c... |
Update Redis Exporter to 1.15.0
PR Support for memory usage aggregation by key groups (thanks )
PR Bump prometheus/client_golang library from 1.8.0 to 1.9.0 | @@ -58,7 +58,7 @@ packages:
context:
static:
<<: *default_static_context
- version: 1.14.0
+ version: 1.15.0
license: MIT
summary: Prometheus exporter for Redis server metrics.
description: Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, 5.x and 6.x
|
Fix errors where we use an invalid metaclass name
Be more lenient on the check. | @@ -90,7 +90,7 @@ class SanitizerService(Service):
if isinstance(p, UML.ExtensionEnd):
p, ext = ext, p
st = ext.type
- meta = p.type and getattr(UML, p.type.name)
+ meta = p.type and getattr(UML, p.type.name, None)
self.perform_unlink_for_instances(st, meta)
@event_handler(AssociationSetEvent)
@@ -107,7 +107,7 @@ class... |
Update visualize.py
match prediction_statistics -> test_statistics to have the same parameter name within functions | @@ -1448,7 +1448,7 @@ def calibration_multiclass(
def confusion_matrix(
- prediction_statistics,
+ test_statistics,
ground_truth_metadata,
field,
top_n_classes,
@@ -1456,27 +1456,27 @@ def confusion_matrix(
model_names=None,
**kwargs
):
- if len(prediction_statistics) < 1:
- logging.error('No prediction_statistics prov... |
doc: add downloads badge
PR-URL: | # `node-gyp` - Node.js native addon build tool
[](https://github.com/nodejs/node-gyp/actions?query=workflow%3ATests+branch%3Amaster)
+
`node-gyp` is a cross-platform command-line tool... |
Police shoot woman in the face | May 31st
updated main link, longer video | @@ -18,7 +18,7 @@ It is clearly seen that the woman was shot in the face, and was bleeding profuse
**Links**
-* https://mobile.twitter.com/etpartipredsct1/status/1266935860865298432
+* https://mobile.twitter.com/MarajYikes/status/1267030131563827200
## Long Beach
|
models: Remove redundant check for POLICY_EVERYONE.
We check whether policy value is POLICY_EVERYONE in
has_permission itself so there is no need to handle
that in can_edit_topic_of_any_message. | @@ -1897,8 +1897,6 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings):
return self.has_permission("user_group_edit_policy")
def can_edit_topic_of_any_message(self) -> bool:
- if self.realm.edit_topic_policy == Realm.POLICY_EVERYONE:
- return True
return self.has_permission("edit_topic_policy")
d... |
Fix nn threshold test
Summary: Pull Request resolved: | @@ -1304,14 +1304,15 @@ _modules_containing_builtins = (torch, torch.nn.functional, torch._C._nn)
# TODO: delete this list, _should_skip(), and remove torch.nn.functional from
# builtins list once everything in it has been converted to weak script
_builtin_blacklist = {
- 'tanhshrink',
- 'softsign',
- 'pairwise_distanc... |
Fix a link that wouldn't display properly.
`https://rich.readthedocs.io/en/latest/style.html` was hyperlinked to `docs` and would not display on VSCode's Terminal or the MacOS Terminal. This expands it out. | @@ -47,7 +47,7 @@ def main():
"[red]The default colour is shown as input Statement.\nIf left empty default value will be assigned.[/red]"
)
console.print(
- "[magenta]Please follow the link for available styles.[/magenta][link=https://rich.readthedocs.io/en/latest/style.html]docs[/link]"
+ "[magenta] For a full list of... |
update cea-dev-workflow
minor change | @@ -60,7 +60,7 @@ Git push and remote pull request
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#. When ready to update team members with your changes, ensure latest changes are committed.
-#. Select *Push changes*.
+#. Select *Push origin*.
- **git push**: pushes your local commits to the remote respoitory.
#. Open the remote rep... |
Removed early clamping
This caused leaf variable errors | @@ -108,17 +108,16 @@ class OverTheAirFlickeringTorch(EvasionAttack):
epoch_print_str = f"{num_epochs}:"
delta = torch.nn.parameter.Parameter(
- torch.zeros(x[0].shape[1], 3, 1, 1).normal_(mean=0.0, std=0.2).to(torch.device("cuda")), requires_grad=True
+ torch.zeros(x[0].shape[1], 3, 1, 1, requires_grad=True).normal_(m... |
chore: update dependency
No functional changes, just dropping old node versions from engines,
linting, and fixing CI. | "glob": "^7.1.4",
"graceful-fs": "^4.2.6",
"make-fetch-happen": "^10.0.3",
- "nopt": "^5.0.0",
+ "nopt": "^6.0.0",
"npmlog": "^6.0.0",
"rimraf": "^3.0.2",
"semver": "^7.3.5",
|
Update CODEOWNERS
Updates Batch code owners | /src/azure-cli/azure/cli/command_modules/appconfig/ @shenmuxiaosen @avanigupta @bim-msft
/src/azure-cli/azure/cli/command_modules/appservice/ @qwordy @Juliehzl
/src/azure-cli/azure/cli/command_modules/backup/ @dragonfly91 @fengzhou-msft
-/src/azure-cli/azure/cli/command_modules/batch/ @bgklein
+/src/azure-cli/azure/cli... |
Add retries for container push
ECR Public and GitHub Actions are a little flaky, so retry pushes. | @@ -106,11 +106,13 @@ jobs:
aws-region: us-east-1
- name: Push to ECR
run: |
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/diag-nijmegen/grand-challenge/web-base
- make push_web_base
- aws ecr-public get-login-password --region us-east-1 | docker lo... |
Update elf_mirai.txt
Added main names for ```mirai``` ([0] https://www.hindawi.com/journals/scn/2018/7178164/lst16/) | /sora.m68k
/sora.arc
/sora.sh4
+
+# Reference: https://www.hindawi.com/journals/scn/2018/7178164/lst16/
+
+/mirai.arm
+/mirai.arm5n
+/mirai.arm7
+/mirai.dbg
+/mirai.m68k
+/mirai.mips
+/mirai.mipsl
+/mirai.ppc
+/mirai.sh4
+/mirai.spc
+/mirai.x86
|
logging method call in ml2 driver
logging for post commit method is being done in following patch | # under the License.
from oslo_config import cfg
+from oslo_log import helpers as log_helpers
from oslo_log import log as logging
from neutron.db.models import securitygroup
@@ -83,34 +84,42 @@ class OpenDaylightMechanismDriver(api.MechanismDriver):
context.current['id'], operation, data,
ml2_context=context)
+ @log_he... |
Get rid of skipped test
Summary: Got a task about this one consistently skipping. Getting rid of `unittest.skip` for now. | # LICENSE file in the root directory of this source tree.
import itertools
-import unittest
import torch
from botorch.exceptions import UnsupportedError
@@ -221,6 +220,6 @@ class TestLinearTruncatedFidelityKernel(BotorchTestCase, BaseKernelTestCase):
self.assertTrue(isinstance(kernel2.covar_module_unbiased, RBFKernel))... |
commands: Fix handling of keyword arguments in `query_ldap` command.
This bug seems to be introduced by me while doing the refactoring
in `94649f58f2fe0ed78d84e597ad6676522cfef9be`.
Fixes: | @@ -12,6 +12,7 @@ class Command(BaseCommand):
help="email of user to query")
def handle(self, *args: Any, **options: str) -> None:
- values = query_ldap(**options)
+ email = options['email']
+ values = query_ldap(email)
for value in values:
print(value)
|
Update GUI.py
remove old code from JS telemetry workflow to make status icon work | @@ -3273,24 +3273,22 @@ class MainApp(App):
##-------------------Signal Status Check-------------------##
- if client_status.split(":")[0] == "CONNECTED":
+ #if client_status.split(":")[0] == "CONNECTED": we dont check client status anymore in the python lightstreamer script
if sub_status == "Subscribed":
#client conne... |
[utils.serializer] serialize to OrderedDict...
... for better performance | @@ -15,7 +15,7 @@ import traceback
from typing import Dict, Union, Any, Sequence
# external imports
-from dropbox.stone_serializers import json_encode # type: ignore
+from dropbox.stone_serializers import json_compat_obj_encode # type: ignore
from dropbox.stone_validators import Struct # type: ignore
@@ -26,12 +26,11 @... |
Remove command definition in Vim autoload script
It seems that commands can't be defined in autoload scripts of Vim 8. | " map <C-P> :call yapf#YAPF()<cr>
" imap <C-P> <c-o>:call yapf#YAPF()<cr>
"
-" Alternatively, you can call the command YAPF. If you omit the range,
-" it will reformat the whole buffer.
-"
-" example:
-" :YAPF " formats whole buffer
-" :'<,'>YAPF " formats lines selected in visual mode
-"
function! yapf#YAPF() range
" ... |
Add BG-MK and BG-TR Interchange Capacities
* Add BG-MK and BG-TR Capacities
source from
* Update README.md | "rotation": 180
},
"BG->MK": {
+ "capacity": [
+ -950,
+ 950
+ ],
"lonlat": [
22.912615,
41.86784
"rotation": -90
},
"BG->TR": {
+ "capacity": [
+ -2485,
+ 2485
+ ],
"lonlat": [
26.89864,
42.002181
|
update aea.skills.base.py on skill loading
Fix 'not declared in configuration file' warning for 'tac_controller_contract' agent | @@ -900,15 +900,19 @@ class _SkillComponentLoader:
- the class must be a subclass of "SkillComponent";
- its __module__ attribute must not start with 'aea.' (we exclude classes provided by the framework)
- its __module__ attribute starts with the expected dotted path of this skill.
+ In particular, it should not be imp... |
Quick unit test using flask's method view view creation.
Make sure easy to use | @@ -29,6 +29,7 @@ from flask_security.forms import (
email_validator,
valid_user_email,
)
+from flask_security import auth_required
from flask_security.utils import (
capture_reset_password_requests,
encode_string,
@@ -498,3 +499,29 @@ def test_json_error_response_typeerror():
error_msg = ("tuple",)
with pytest.raises(... |
Update ug017_storm_ref_stats.rst
Clarify operator definition.
Fix typos.
Clarify what happens if you try to embed stat() in a Storm query. | Storm Reference - Statistical Operator
======================================
-The statistical operator is used to generate data about data in Synapse.
+The statistical operator is used to calculate statistics about data in Synapse.
``stat()`` is defined in common.py_ as opposed to storm.py_.
@@ -9,9 +9,9 @@ The statis... |
Replace np.concatenate with np.union1d in statesp._remove_useless_states method
This ensures that all elements in the array of state indices to be removed are unique. | @@ -202,7 +202,7 @@ class StateSpace(LTI):
ax0_C = np.where(~self.C.any(axis=0))[1]
useless_1 = np.intersect1d(ax1_A, ax1_B, assume_unique=True)
useless_2 = np.intersect1d(ax0_A, ax0_C, assume_unique=True)
- useless = np.concatenate((useless_1, useless_2))
+ useless = np.union1d(useless_1, useless_2)
# Remove the usele... |
Fix Eltex get_version
HG--
branch : Eltex.MES.New | @@ -42,7 +42,8 @@ class Script(BaseScript):
"41": "MES-3224F",
"42": "MES-1024",
"43": "MES-2124",
- "52": "MES-1124"
+ "52": "MES-1124",
+ "54": "MES-5248"
}
def execute(self):
|
Update test_instruments.py
made pep8 changes to import order,
removed some unused imporrts
added prelim f107 data to excludes | """
tests the pysat meta object and code
"""
-import pysat
-import pandas as pds
-from nose.tools import assert_raises, raises
-import nose.tools
+import importlib
from functools import partial
-import tempfile
-
-
-import pysat.instruments.pysat_testing
-# import pysat.instruments as instruments
import numpy as np
-# ... |
2.6.9 Hotfixes
* Fix for
* Fixes launch crash loop
Fixes launch crash loop caused by the new copy destintaion of abcde.conf | @@ -98,6 +98,9 @@ function install_arm_requirements() {
libdvd-pkg lsdvd
sudo dpkg-reconfigure libdvd-pkg
+
+ # create folders required to run the ARM service
+ sudo -u arm mkdir -p /home/arm/logs
}
function remove_existing_arm() {
@@ -182,6 +185,8 @@ function setup_config_files() {
# abcde.conf is expected in /etc by ... |
Remove settings about SGX in config.cmake
removed settings about SGX since SGX is removed from TVM core | @@ -87,17 +87,6 @@ set(USE_OPENGL OFF)
# Whether enable MicroTVM runtime
set(USE_MICRO OFF)
-# Whether to enable SGX runtime
-#
-# Possible values for USE_SGX:
-# - /path/to/sgxsdk: path to Intel SGX SDK
-# - OFF: disable SGX
-#
-# SGX_MODE := HW|SIM
-set(USE_SGX OFF)
-set(SGX_MODE "SIM")
-set(RUST_SGX_SDK "/path/to/ru... |
Set pg_isready user and password
We know these settings are going to be true because the environment
variables five lines up say so. | @@ -71,7 +71,7 @@ services:
expose:
- "5432"
healthcheck:
- test: pg_isready
+ test: pg_isready -d postgresql://commcarehq:commcarehq@postgres
interval: 10s
retries: 10
volumes:
|
Add running python setup.py test to CI tests
may catch additional problems, see | @@ -16,7 +16,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install linter
- run: python -m pip install flake8
+ run: |
+ uname -a
+ python -m pip install flake8
- name: Check syntax and style
run: flake8 . --exclude get-pip.py --max-complexity=13 --statistics
@@ -57,16 +59,16 @@ jobs:
run: |
pip... |
Filter availableFiles by what is renderable.
Resolves | return undefined;
},
availableFiles() {
- return this.files.filter(file => !file.thumbnail && !file.supplementary && file.available);
+ return this.files.filter(
+ file =>
+ !file.thumbnail &&
+ !file.supplementary &&
+ file.available &&
+ this.Kolibri.canRenderContent(this.kind, file.extension)
+ );
},
defaultFile() {... |
Process replay: Fix subtest diff
Fix subtest diff | @@ -71,7 +71,7 @@ def run_test_process(data):
assert os.path.exists(cur_log_fn), f"Cannot find log to upload: {cur_log_fn}"
upload_file(cur_log_fn, os.path.basename(cur_log_fn))
os.remove(cur_log_fn)
- return (segment, cfg.proc_name, res)
+ return (segment, cfg.proc_name, cfg.subtest_name, res)
def get_log_data(segment... |
qt swap dialog: fix enabling OK button
fixes | @@ -34,7 +34,7 @@ class SwapDialog(WindowModalDialog):
self.lnworker = self.window.wallet.lnworker
self.swap_manager = self.lnworker.swap_manager
self.network = window.network
- self.tx = None
+ self.tx = None # for the forward-swap only
self.is_reverse = True
vbox = QVBoxLayout(self)
self.description_label = WWLabel(s... |
GDB helpers: fix pretty-printing of synthetic nodes
TN: | @@ -142,7 +142,23 @@ class ASTNodePrinter(BasePrinter):
def unit(self):
return AnalysisUnit(tagged_field(self.value, 'unit'))
+ @property
+ def synthetic(self):
+ """
+ Return whether this node is synthetic.
+
+ :rtype: bool
+ """
+ return int(tagged_field(self.value, 'token_start_index')) == 0
+
def sloc(self, with_en... |
Fix two bugs in printing bytes instance
Bug 1:
When `value` is None, trying to call `len(None)` throws an exception.
Bug 2:
When len(`value`) <= 100, the code currently prints b'' rather than
`value`. | @@ -100,7 +100,7 @@ class Bytes(AbstractType):
@classmethod
def repr(cls, value):
- return repr(value[:100] + b'...' if len(value) > 100 else b'')
+ return repr(value[:100] + b'...' if value is not None and len(value) > 100 else value)
class Boolean(AbstractType):
|
Fixes terminal size not being set properly
See at the documentation
of interact. I include here for easy reference
| Note that if you change the window size of the parent the SIGWINCH
| signal will not be passed through to the child. | @@ -3,6 +3,8 @@ import json
import os
import sys
import distutils.spawn
+import shutil
+import signal
import click
import crayons
@@ -420,11 +422,32 @@ def shell():
shell = os.environ['SHELL']
click.echo(crayons.yellow('Spawning environment shell ({0}).'.format(crayons.red(shell))))
- c = pexpect.spawn("{0} -c '. {1}; ... |
Fix preserve third dimension for grayscale images after cv2.warpPerspective
cv2.warpPerspective apparentely does not preserve third dimension when
the image is grayscale (single channel). This code should fix the
warped image afterwards. | @@ -991,6 +991,8 @@ class PerspectiveTransform(Augmenter):
# cv2.warpPerspective only supports <=4 channels
assert images[i].shape[2] <= 4, "PerspectiveTransform is currently limited to images with 4 or less channels."
warped = cv2.warpPerspective(images[i], M, (max_width, max_height))
+ if warped.ndim == 2 and images[... |
(from AES) Update irambassador.py
Bump the default validation timeout to 60 seconds. | @@ -80,8 +80,13 @@ class IRAmbassador (IRResource):
"rewrite": "/ambassador/v0/",
}
- # Set up the default Envoy validation timeout.
- default_validation_timeout: ClassVar[int] = 10
+ # Set up the default Envoy validation timeout. This is deliberately chosen to be very large
+ # because the consequences of this timeout... |
lexer: use langkit.compiled_types.render
This makes "capi" available to templates.
TN: | @@ -5,10 +5,10 @@ from itertools import count
import re
from langkit.compile_context import get_context
+from langkit.compiled_types import render
from langkit.diagnostics import (Context, check_source_language,
extract_library_location)
from langkit.names import Name
-from langkit.template_utils import common_renderer... |
Do not delete CW logs for endpoints.
Keep the logs for failed tests only. | @@ -58,12 +58,17 @@ def timeout(seconds=0, minutes=0, hours=0):
@contextmanager
def timeout_and_delete_endpoint_by_name(endpoint_name, sagemaker_session, seconds=0, minutes=35, hours=0):
with timeout(seconds=seconds, minutes=minutes, hours=hours) as t:
+ no_errors = False
try:
yield [t]
+ no_errors = True
finally:
try:... |
autoscale site
* autoscale site
* fix site deploy
remove explicit namespace
* bump
* bump | -apiVersion: apps/v1beta2
+apiVersion: apps/v1
kind: Deployment
metadata:
name: site-deployment
@@ -9,7 +9,7 @@ spec:
selector:
matchLabels:
app: site
- replicas: 1
+ replicas: 2
template:
metadata:
labels:
@@ -19,9 +19,26 @@ spec:
{% if deploy %}
priorityClassName: production
{% endif %}
+ affinity:
+ podAntiAffinity:... |
[bugfix] Bugfixes for the conversion scripts/maintenance/compat2core.py
remove complete version line
escape dot | @@ -42,7 +42,7 @@ import pywikibot
# be careful with replacement order!
replacements = (
# doc strings
- ('#\r?\n__version__',
+ ('#\r?\n__version__.*\r?\n',
'#\n'
'# Automatically ported from compat branch by compat2core.py script\n'),
('Pywikipedia bot team', 'Pywikibot team'),
@@ -60,7 +60,7 @@ replacements = (
# si... |
Closes Fix adding session from PeeringDB
If a session was already created for a PeeringDB record, trying to add
the other one (attached to the same record) would fail. | @@ -1189,7 +1189,7 @@ class InternetExchangePeeringSession(BGPSession):
# Try to get the session, in case it already exists
try:
- InternetExchangePeeringSession.objects.get(
+ session = InternetExchangePeeringSession.objects.get(
autonomous_system=autonomous_system,
internet_exchange=internet_exchange,
ip_address=ip_a... |
Update kmeans.py
Change "memoizatiion" to "memoization" | @@ -101,7 +101,7 @@ class KMeans(object):
Extracts centroids
:param model: Local KMeans instance
:param dfs: List of cudf.Dataframes to use
- :param r: Stops memoizatiion caching
+ :param r: Stops memoization caching
:return: The fit model
"""
|
One more fix for
Summary: Pull Request resolved: | @@ -39,6 +39,7 @@ macro(custom_protobuf_find)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if (MSVC)
+ if(MSVC_Z7_OVERRIDE)
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
@@ -46,6 +47,7 @@ macro(custom_protobuf_find)
string(REGEX REPL... |
Add proxied websocket support
Add websocket support through a proxied server. | @@ -14,7 +14,7 @@ import {
NotebookPanel, INotebookModel
} from '@jupyterlab/notebook';
-
+import { PageConfig } from '@jupyterlab/coreutils';
/**
* The plugin registration information.
@@ -47,8 +47,13 @@ class VPythonExtension implements DocumentRegistry.IWidgetExtension<NotebookPane
glowcommlab.comm = vp_comm
vp_comm... |
Add better error message for call_stats error mode
* Add better error message for call_stats error mode
fixes
* fix | @@ -26,15 +26,22 @@ class CallStatsCombiner(val nAlleles: Int) extends Serializable {
var alleleCount = new Array[Int](nAlleles)
var homozygoteCount = new Array[Int](nAlleles)
+ @inline def increment(idx: Int): Unit = {
+ if (idx >= nAlleles)
+ fatal(s"call_stats: expected alleles with maximum index ${nAlleles - 1}, fo... |
add example multiprocess code
Summary: fixes | @@ -27,15 +27,57 @@ a ``spawn`` or ``forkserver`` start methods. :mod:`python:multiprocessing` in
Python 2 can only create subprocesses using ``fork``, and it's not supported
by the CUDA runtime.
-.. warning::
-
- CUDA API requires that the allocation exported to other processes remains
- valid as long as it's used by ... |
Tag bootstrap_javascript use settings include_jquery for now
Update docs about `include_jquery` variable | @@ -32,7 +32,8 @@ The ``BOOTSTRAP4`` dict variable contains these settings and defaults:
# Put JavaScript in the HEAD section of the HTML document (only relevant if you use bootstrap4.html)
'javascript_in_head': False,
- # Include jQuery with Bootstrap JavaScript (affects django-bootstrap4 template tags)
+ # Include jQ... |
Correct coordinate data variable finding code
Corrects code which finds coordinate data variables to include both NUG
coordinate variables (variables with one dimension where the name of the
dimension and variable are the same) and existing variables in the
dataset which are referred to by other variables' "coordinates... | @@ -78,6 +78,23 @@ class TestCF1_6(BaseTestCase):
self.addCleanup(nc.close)
return nc
+ def test_coord_data_vars(self):
+ """Check that coordinate data variables are properly handled"""
+ ds = MockTimeSeries()
+ ds.createDimension('siglev', 20)
+
+ temp = ds.createVariable("temp", np.float64, dimensions=("time",),
+ fi... |
Fix `unit.test_spm` for Windows
This only fixes the test... I don't think it fixes SPM on Windows | @@ -14,9 +14,12 @@ import shutil
import msgpack
import hashlib
import logging
+import sys
+try:
import pwd
import grp
-import sys
+except ImportError:
+ pass
# Import Salt libs
import salt.client
@@ -491,6 +494,16 @@ class SPMClient(object):
# No defaults for this in config.py; default to the current running
# user and... |
Add _remove_invalid_and_duplicate_signatures
to pylintrc's exclude-protected setting. | @@ -344,7 +344,7 @@ defining-attr-methods=__init__,__new__,setUp
# List of member names, which should be excluded from the protected access
# warning.
-exclude-protected=_asdict, _fields, _replace, _source, _make, _generate_and_write_metadata, _delete_obsolete_metadata, _log_status_of_top_level_roles, _load_top_level_m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.