message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
BUG: added tag to Instrument repr
Added a 'tag' output to the Instrument `__repr__`. | @@ -563,7 +563,8 @@ class Instrument(object):
# Create string for other parts Instrument instantiation
out_str = "".join(["pysat.Instrument(platform='", self.platform,
- "', name='", self.name, "', inst_id='", self.inst_id,
+ "', name='", self.name, "', tag='", self.tag,
+ "', inst_id='", self.inst_id,
"', clean_level=... |
Log ODCS request ID after creation
For easier identification of the request in logs | @@ -130,8 +130,10 @@ class ODCSClient(object):
response = self.session.post('{}/composes/'.format(self.url.rstrip('/')),
json=body)
response.raise_for_status()
+ odcs_resp = response.json()
+ logger.info("Started compose: %s", odcs_resp['id'])
- return response.json()
+ return odcs_resp
def renew_compose(self, compose_... |
validate: remove objectstore from osd options schema
objectstore is not a valid option, it's osd_objectstore and it's already
validated in install_options | @@ -212,7 +212,6 @@ rados_options = (
osd_options = (
(optional("dmcrypt"), types.boolean),
("osd_scenario", validate_osd_scenarios),
- (optional("objectstore"), validate_objectstore),
)
collocated_osd_scenario = ("devices", iterables.AllItems(types.string))
|
Add Windows Beep.
Force include of windows beep if sending a beep. | +import os
import time
from threading import Thread, Lock
@@ -356,6 +357,10 @@ class Interpreter(Module):
elif command == COMMAND_WAIT_FINISH:
self.wait_finish()
elif command == COMMAND_BEEP:
+ if os.name == 'nt':
+ import winsound
+ winsound.Beep(900, 500)
+ else:
print('\a') # Beep.
elif command == COMMAND_FUNCTION:
... |
Switch ASGI task order
This has had some positive affect to mitigate the Uvicorn race
condition issue but only
on a Linux system. As it shouldn't really make any difference it is
worth trying whilst Uvicorn is worked on. | @@ -17,8 +17,8 @@ class ASGIHTTPConnection:
async def __call__(self, receive: Callable, send: Callable) -> None:
request = self._create_request_from_scope()
- handler_task = asyncio.ensure_future(self.handle_request(request, send))
receiver_task = asyncio.ensure_future(self.handle_messages(request, receive))
+ handler_... |
add documentation for auto skills
Added SUSI Smart Speaker Workflow
Update issue templates
Update issue templates
Delete ISSUE_TEMPLATE.md
Delete PULL_REQUEST_TEMPLATE.md
Update issue templates
folder path updated | @@ -6,6 +6,11 @@ The Media Discovery Daemon is the daemon that we are using to detect whether a U
If a new USB connection is detected, the python script `auto_skills.py` is triggered which creates a custom skill in the SUSI server and allows the user to play music from the USB device. But if the USB device is removed, ... |
README.md - add color to code block
Since other markdown files are tutorials linked to the document website, I will only change the README.md file. | AutoGluon automates machine learning tasks enabling you to easily achieve strong predictive performance in your applications. With just a few lines of code, you can train and deploy high-accuracy deep learning models on image, text, and tabular data. Get started with:
-```
+```python
# First install package from termin... |
Add socket enum classes from py3.4+
* Add socket enum classes from py3.4+
Adds four IntEnum classes in the socket module that mirror the
AF_, AI_, MSG_, and SOCK_ sets of constants.
* Update socket AddressInfo/MsgFlag to use IntFlag type
* IntFlag, AddressInfo, and MsgFlag are py 3.6+ | # see: http://hg.python.org/cpython/file/3d0686d90f55/Lib/socket.py
# see: http://nullege.com/codes/search/socket
+import sys
from typing import Any, Tuple, List, Optional, Union, overload
# ----- variables and constants -----
@@ -250,6 +251,73 @@ TIPC_WITHDRAWN = 0
TIPC_ZONE_SCOPE = 0
+# enum versions of above flags p... |
integ-tests: update Slurm test to be compatible with EnforcePartLimits=ALL
Partition limits are now enforced by the scheduler at submission time | @@ -17,7 +17,7 @@ import pytest
from assertpy import assert_that
from remote_command_executor import RemoteCommandExecutionError, RemoteCommandExecutor
-from tests.common.assertions import assert_asg_desired_capacity, assert_no_errors_in_logs, assert_scaling_worked
+from tests.common.assertions import assert_no_errors_... |
UI: Rename option to disable progressbar for clarity.
* Also avoid using different aliases of "no_site" Python flag in
help outputs. | @@ -140,7 +140,7 @@ parser.add_option(
help="""\
Python flags to use. Default is what you are using to run Nuitka, this
enforces a specific mode. These are options that also exist to standard
-Python executable. Currently supported: "-S" (alias "nosite"),
+Python executable. Currently supported: "-S" (alias "no_site"),... |
[Doc] Some functions used in the tutorial are deprecated
* Some functions used in the tutorial are deprecated
I'm receiving register_message_func and register_reduce_func are deprecated error. I have updated the code such that message and reduce functions are passed to g.send and g.recv
* Update 3_pagerank.py.bak | @@ -96,12 +96,6 @@ def pagerank_reduce_func(nodes):
#
# .. image:: https://i.imgur.com/kIMiuFb.png
#
-# Register the message function and reduce function, which will be called
-# later by DGL.
-
-g.register_message_func(pagerank_message_func)
-g.register_reduce_func(pagerank_reduce_func)
-
#############################... |
Add some spacing
[#OSF-7253] | @@ -428,7 +428,6 @@ var renderWeeklyUserGainChart = function (results) {
}
userGainChart.parseRawData({result: data}).render();
});
-
};
@@ -604,7 +603,6 @@ var UserGainMetrics = function() {
renderPreviousWeekOfUsersByStatus();
NodeLogsPerUser();
-
};
@@ -792,7 +790,6 @@ var ActiveUserMetrics = function() {
// Average... |
tools: Include `test_core.py` to be checked by mypy.
This commit adds `test_core.py` to the `type_consistent_testfiles`
list to check for type consistency with mypy. | @@ -77,7 +77,7 @@ repo_python_files['zulipterminal'] = []
repo_python_files['tests'] = []
# Added incrementally as newer test files are type-annotated.
-type_consistent_testfiles = ["test_run.py"]
+type_consistent_testfiles = ["test_run.py", "test_core.py"]
for file_path in python_files:
repo = PurePath(file_path).part... |
Improve timeout in delete
Improved error handling | @@ -1357,16 +1357,20 @@ def delete(name, timeout=90):
handle_scm, name, win32service.SERVICE_ALL_ACCESS)
except pywintypes.error as exc:
raise CommandExecutionError(
- 'Failed To Open {0}: {1}'.format(name, exc[2]))
+ 'Failed to open {0}. {1}'.format(name, exc.strerror))
+ try:
win32service.DeleteService(handle_svc)
-
... |
Update plaso.mappings
* Update plaso.mappings
Closes
* Update data/plaso.mappings | "version": {
"type": "text",
"fields": {"keyword": {"type": "keyword"}}
+ },
+ "http_response_bytes": {
+ "type": "text",
+ "fields": {"keyword": {"type": "keyword"}}
}
}
}
|
Fix downloading ftp artifacts
callback was set incorrectly | @@ -121,4 +121,4 @@ class FTPArtifactRepository(ArtifactRepository):
if remote_file_path else self.path
with self.get_ftp_client() as ftp:
with open(local_path, 'wb') as f:
- ftp.retrbinary('RETR ' + remote_full_path, f)
+ ftp.retrbinary('RETR ' + remote_full_path, f.write)
|
Fix metadata links
Fixes | @@ -75,7 +75,7 @@ metadata in an efficient schema-defined binary format using {func}`python:struct
### JSON
When `json` is specified as the `codec` in the schema the metadata is encoded in
-the human readable `JSON <https://www.json.org/json-en.html>`_ format. As this format
+the human readable [JSON](https://www.json.... |
Toyota: add missing engine and esp FW for Corolla Cross Hybrid
add missing engine and esp FW for CorollaCross Hybrid
DongleId | @@ -783,6 +783,7 @@ FW_VERSIONS = {
b'\x01896637626000\x00\x00\x00\x00',
b'\x01896637648000\x00\x00\x00\x00',
b'\x01896637643000\x00\x00\x00\x00',
+ b'\x02896630A21000\x00\x00\x00\x008966A4703000\x00\x00\x00\x00',
b'\x02896630ZJ5000\x00\x00\x00\x008966A4703000\x00\x00\x00\x00',
b'\x02896630ZN8000\x00\x00\x00\x008966A47... |
added bruggeman values for electrodes
after fixing the solid tortuosities these new values are needed to run the notebook | " 'Negative electrode active material volume fraction': 0.75,\n",
" 'Negative particle radius [m]': 5.86e-06,\n",
" 'Negative electrode Bruggeman coefficient (electrolyte)': 1.5,\n",
+ " 'Negative electrode Bruggeman coefficient (electrode)': 1.5,\n",
" 'Negative electrode electrons in reaction': 1.0,\n",
" 'Negative e... |
Add StackName to instance Name tags
Make it easier to find instance belonging to a particular parallel cluster.
Ran `tox -e cfn-format` | },
{
"Key": "Name",
- "Value": "Master"
+ "Value": {
+ "Fn::Sub": "${AWS::StackName} Master"
+ }
},
{
"Key": "aws-parallelcluster-attributes",
"Tags": [
{
"Key": "Name",
- "Value": "Compute",
+ "Value": {
+ "Fn::Sub": "${AWS::StackName} Compute"
+ },
"PropagateAtLaunch": true
},
{
|
Tests: AsyncMock is now in the standard library!
The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section. | @@ -114,7 +114,7 @@ class BotCogTests(unittest.TestCase):
### Mocking coroutines
-By default, the `unittest.mock.Mock` and `unittest.mock.MagicMock` classes cannot mock coroutines, since the `__call__` method they provide is synchronous. In anticipation of the `AsyncMock` that will be [introduced in Python 3.8](https:/... |
Only show duel stats if the user has dueled before
duel_stats used to be None if the user hadn't dueled before, now we check duels_total instead
Fixes | </tbody>
</table>
- {% if user.duel_stats %}
+ {% if user.duel_stats.duels_total > 0 %}
<h3>Duel stats</h3>
<table class="ui very basic table celled">
<tbody>
|
More verbose windows test run
Why does it hang on the collect step? | @@ -5,4 +5,5 @@ set -e
export PYTEST_ADDOPTS="--doctest-modules --junitxml=junit/test-results.xml"
export PY_IGNORE_IMPORTMISMATCH=1
-poetry run pytest
\ No newline at end of file
+poetry run pytest --collect-only -vvv
+poetry run pytest -vvv
\ No newline at end of file
|
Add repo yaml directory to python path in dagster-graphql cli
Test Plan:
Run `dagster-graphql` from a different directory targeting a `repository.yaml`
`dagster-graphql -p startPipelineExecution -v ... -y "/Users/sashankthupukari/projects/dagster-playground/repository.yaml"`
Reviewers: #ft, natekupp | @@ -62,8 +62,13 @@ def perform_load(self):
@staticmethod
def from_file_target(python_file, fn_name, from_handle=None):
+ file_directory = os.path.dirname(python_file)
+ if file_directory not in sys.path:
+ sys.path.append(file_directory)
+
module_name = os.path.splitext(os.path.basename(python_file))[0]
module = imp.lo... |
test(stats): verify incorrect current response time percentile result
test case test_get_current_response_time_percentile_outside_cache_window
verifies incorrect behaviour returning None instead of 0 when time is outside
window of cached times.
Issue: | @@ -580,6 +580,12 @@ class TestStatsEntryResponseTimesCache(unittest.TestCase):
self.assertEqual(95, s.get_current_response_time_percentile(0.95))
+ def test_get_current_response_time_percentile_outside_cache_window(self):
+ s = StatsEntry(self.stats, "/", "GET", use_response_times_cache=True)
+ # an empty response tim... |
chore(pubsub): add subscriber role test for streaming
Pulling the messages using a streaming pull should work with accounts
having only the pubsub.subscriber role. This commits add a test that
covers this aspect. | @@ -17,6 +17,7 @@ from __future__ import absolute_import
import datetime
import itertools
import operator as op
+import os
import threading
import time
@@ -488,6 +489,45 @@ class TestStreamingPull(object):
finally:
subscription_future.cancel() # trigger clean shutdown
+ @pytest.mark.skipif(
+ "KOKORO_GFILE_DIR" not in ... |
login: Re-raise the export compliance exception on RHSSO (prod)
Pass the correct arg quay_username | @@ -268,7 +268,7 @@ def _register_service(login_service):
except ExportComplianceException as ece:
logger.exception("Export compliance exception", ece)
return _render_export_compliance_error(
- login_service.service_name(), ece.sso_username, ece.email, ece.message
+ login_service.service_name(), ece.sso_username, ece.e... |
Set default for consul_pillar to None
If these do not default to None, they will default to an empty string,
which could cause the pillar tree to leak to minions it should't.
Also, allow role and environment to be pulled from pillars or minion
config by using config.get
Fixes | @@ -189,8 +189,8 @@ def ext_pillar(minion_id,
client = get_conn(__opts__, opts['profile'])
- role = __salt__['grains.get']('role')
- environment = __salt__['grains.get']('environment')
+ role = __salt__['grains.get']('role', None)
+ environment = __salt__['grains.get']('environment', None)
# put the minion's ID in the ... |
Run oe2_wms_configure with no shapefile_bucket when not provided.
Apparently a blank env var isn't recognized with parallel | echo "[$(date)] Beginning WMS endpoint configuration..." >> /var/log/onearth/config.log
+if [ -z "$SHAPEFILE_BUCKET" ]
+then
+ grep -l mapserver /etc/onearth/config/endpoint/*.yaml | parallel -j 4 python3.6 /usr/bin/oe2_wms_configure.py {} >> /var/log/onearth/config.log 2>&1
+else
grep -l mapserver /etc/onearth/config/... |
Env switch to hide warning when --run-dir is specified
Using this for remote runs to suppress message when we control the run
dir. | @@ -374,6 +374,7 @@ def _op_run_dir(args, ctx):
% click_util.cmd_help(ctx))
if args.run_dir:
run_dir = os.path.abspath(args.run_dir)
+ if os.getenv("NO_WARN_RUNDIR") != "1":
cli.note(
"Run directory is '%s' (results will not be visible to Guild)"
% run_dir)
|
update documentation
The Spearman correlation should be 1 or -1 if the relation is monotonic, not only linear | @@ -423,7 +423,7 @@ def spearmanr(x, y, use_ties=True):
Spearman correlation does not assume that both datasets are normally
distributed. Like other correlation coefficients, this one varies
between -1 and +1 with 0 implying no correlation. Correlations of -1 or
- +1 imply an exact linear relationship. Positive correla... |
Warn about bindings used while supposed to be ignored
TN: | @@ -809,6 +809,14 @@ class AbstractVariable(AbstractExpression):
if self.abstract_var and self.abstract_var.source_name else
None)
+ @property
+ def ignored(self):
+ """
+ If this comes from the language specification, return whether it is
+ supposed to be ignored. Return False otherwise.
+ """
+ return self.abstract_v... |
Update spideybot_stealer.txt
Aliases field is added. | # Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/)
# See the file 'LICENSE' for copying permission
+# Aliases: blueface, spideybot
+
# Reference: https://twitter.com/malwrhunterteam/status/1182010489938857993
# Reference: https://twitter.com/VK_Intel/status/1182142320466186241
# Refer... |
ima: Remove 'main' function from ima.py
Remove the 'main' function from ima.py. This looks like some old
test case that probably nobody has used in a long time. | @@ -701,43 +701,3 @@ def read_excllist(exclude_path: Optional[str] = None) -> List[str]:
logger.debug("Loaded exclusion list from %s: %s", exclude_path, excl_list)
return excl_list
-
-
-def main() -> None:
- allowlist_path = "allowlist.txt"
- print(f"reading allowlist from {allowlist_path}")
-
- exclude_path = "exclude... |
Update warning message for autograd issue + XLA backend
Summary: Pull Request resolved: | @@ -392,9 +392,12 @@ void handle_view_on_rebase(DifferentiableViewMeta* diff_view_meta, bool indirect
} else {
msg = "This view requires gradients and it's being modified inplace. ";
}
- msg = c10::str(msg, "Backward through inplace update on view tensors is WIP for XLA backwend. "
- "Gradient might be wrong in certain... |
Fill in notBefore/notAfter in X509 _PKeyInteractionTestsMixin tests
While the tests currently pass without it, this is because OpenSSL's
encoder doesn't notice that it is emitting garbage. See
Fill in a placeholder validity period so the tests both better mirror
real X.509 signing code and do not rely on this bug. | @@ -1468,7 +1468,7 @@ class _PKeyInteractionTestsMixin:
def signable(self):
"""
- Return something with a `set_pubkey`, `set_pubkey`, and `sign` method.
+ Return something with `set_pubkey` and `sign` methods.
"""
raise NotImplementedError()
@@ -1715,7 +1715,12 @@ class TestX509(_PKeyInteractionTestsMixin):
"""
Create ... |
Django 1.10+, is_authenticated is a property
Minor update:
Does work as a property and a method up until Django 2.0 | @@ -50,7 +50,7 @@ The base view for this is :py:class:`~dal_select2.views.Select2QuerySetView`.
class CountryAutocomplete(autocomplete.Select2QuerySetView):
def get_queryset(self):
# Don't forget to filter out results depending on the visitor !
- if not self.request.user.is_authenticated():
+ if not self.request.user.i... |
fix: Depend on replica details being there for Replica ConnectionPool
This logic mirror how replica connections are handled | @@ -102,19 +102,18 @@ class MariaDBConnectionUtil:
If frappe.conf.disable_database_connection_pooling is set, return a new connection
object and close existing pool if exists. Else, return a connection from the pool.
"""
- # get pooled connection
global _SITE_POOLS
if frappe.conf.disable_database_connection_pooling:
se... |
Add date header testing
This compliments ensuring the
functionality is tested. | +from datetime import datetime, timezone
+
+import hypothesis.strategies as strategies
import pytest
+from hypothesis import given
from quart.wrappers.response import Response
@@ -17,3 +21,17 @@ def test_response_cache_control() -> None:
assert response.headers['Cache-Control'] == 'max-age=2'
response.cache_control.no_... |
Fix scheduler image in helm chart
Summary: Reimplement D5830 since it was lost because of my bad rebase
Test Plan: bk
Reviewers: catherinewu, nate, dgibson | @@ -242,7 +242,7 @@ scheduler:
# (to call `dagster api launch_scheduled_execution`) and instance yaml
# but does not need access to user code.
image:
- repository: "dagster/k8s-dagster"
+ repository: "dagster/k8s-dagit"
tag: "latest"
pullPolicy: Always
|
Bump LCB major version for Linux
Tested-by: Build Bot
Tested-by: Ellis Breen | @@ -177,7 +177,7 @@ class CBuildInfo:
plat = get_plat_code()
print("Got platform {}".format(plat))
- default = ['libcouchbase.so.5']
+ default = ['libcouchbase.so.6']
return {'darwin': ['libcouchbase.2.dylib', 'libcouchbase.dylib'], 'linux': default,
'win': ['libcouchbase_d.dll','libcouchbase.dll']}.get(get_plat_code()... |
Move p4d tests on PDX (us-west-2)
Move half p4d tests on PDX (us-west-2) | @@ -535,7 +535,7 @@ multiple_nics:
instances: ["p4d.24xlarge"]
oss: ["alinux2", "ubuntu1604", "centos8"]
schedulers: ["slurm"]
- - regions: ["us-east-1"]
+ - regions: ["us-west-2"]
instances: ["p4d.24xlarge"]
oss: ["alinux", "ubuntu1804", "centos7"]
schedulers: ["slurm"]
|
Add NOSIGNAL=1 option
Required when using pycurl from multiple threads [1]. Not sure if
we are but better safe than sorry.
[1] | @@ -101,6 +101,7 @@ def request(method: str, url: str, **kwargs) -> Response:
"""
c = pycurl.Curl()
+ c.setopt(pycurl.NOSIGNAL, 1)
c.setopt(pycurl.PROTOCOLS, pycurl.PROTO_HTTP | pycurl.PROTO_HTTPS)
c.setopt(pycurl.OPENSOCKETFUNCTION, _opensocket)
c.setopt(pycurl.FOLLOWLOCATION, True) # Allow redirects
|
Only collect "*.conf" for nginx
* Some unused files have syntax error, as a result, it won't be hit
even there is a hit for the used files. | @@ -475,9 +475,9 @@ class DefaultSpecs(Specs):
nfs_exports = simple_file("/etc/exports")
nfs_exports_d = glob_file("/etc/exports.d/*.exports")
nginx_conf = glob_file([
- "/etc/nginx/*.conf", "/etc/nginx/conf.d/*", "/etc/nginx/default.d/*",
- "/opt/rh/nginx*/root/etc/nginx/*.conf", "/opt/rh/nginx*/root/etc/nginx/conf.d/... |
Fix for nightly builds
Summary:
Being tested on nightlies manually.
Pull Request resolved: | @@ -1654,7 +1654,7 @@ void addGlobalMethods(py::module& m) {
&pred_net,
external_inputs,
tensor_shapes,
- {});
+ std::unordered_set<int>());
std::string pred_net_str2;
pred_net.SerializeToString(&pred_net_str2);
return py::bytes(pred_net_str2);
|
Simplify AjaxCreateView
Screams in reading the documentation | @@ -150,23 +150,24 @@ class AjaxCreateView(AjaxMixin, CreateView):
"""
def get(self, request, *args, **kwargs):
+ """ Creates form with initial data, and renders JSON response """
- response = super(CreateView, self).get(request, *args, **kwargs)
-
- if request.is_ajax():
- # Initialize a a new form
- form = self.form_... |
Update attacked_text.py
add words_diff_num | @@ -237,22 +237,9 @@ class AttackedText:
indices = set()
w1 = self.words
w2 = other_attacked_text.words
- idx1 = 0
- idx2 = 0
- flag = False
- while (idx1 < len(w1) and idx2 < len(w2)):
- if w1[idx1] == w2[idx2]:
- flag = False
- idx1 += 1
- idx2 += 1
- elif flag == False:
- flag = True
- indices.add(idx1)
- idx1 += 1
... |
Update user_manual.md
Adding packages to be installed to support Infiniband | @@ -686,13 +686,27 @@ Openib and libibverbs need to be install to compile Open MPI over Infiniband. Fo
install the epel repository on the container. This step is not required if running using
TCP/IP is enough.
+To install the Infiniband drivers one needs to install the epel repository.
```
yum install -y epel-release
-... |
Update labels in segment_path_length
Found a typo where segment_path_length debugging image was plotting segment ID's rather than the segment lengths because it used to write out both. | @@ -40,7 +40,7 @@ def segment_path_length(segmented_img, objects):
# Put labels of length
for c, value in enumerate(segment_lengths):
- text = "{:.2f}".format(c, value)
+ text = "{:.2f}".format(value)
w = label_coord_x[c]
h = label_coord_y[c]
cv2.putText(img=labeled_img, text=text, org=(w, h), fontFace=cv2.FONT_HERSHEY... |
DOC: Add extlink extension
Links to github issues | @@ -45,6 +45,7 @@ sys.path.insert(0, os.path.abspath('.'))
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
+ 'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
@@ -401,6 +402,10 @@ intersphinx_mapping = {
autodoc_member_order = 'bysource'
autosummary_generate = True
+e... |
BLD: Replace source files with lib
Use lib to find symbols rather than object files | @@ -930,7 +930,7 @@ def generate_umath_c(ext, build_dir):
config.add_extension('_multiarray_umath',
sources=multiarray_src + umath_src +
- npymath_sources + common_src +
+ common_src +
[generate_config_h,
generate_numpyconfig_h,
generate_numpy_api,
@@ -941,7 +941,7 @@ def generate_umath_c(ext, build_dir):
],
depends=de... |
Only filter out datasets when statistics are disabled in Transform.
Previously, if cache covers an entire dataset, it wouldn't be included in the statistics computation, this change means it will be included. | @@ -614,12 +614,6 @@ class Executor(base_executor.BaseExecutor):
tft_beam.analysis_graph_builder.get_analysis_dataset_keys(
preprocessing_fn, feature_spec,
list(analysis_key_to_dataset.keys()), input_cache))
- if len(filtered_analysis_dataset_keys) < len(analysis_key_to_dataset):
- tf.logging.info('Not reading the foll... |
fixed query
modified query to use NOT instead of != | name: Windows Non-System Account Targeting Lsass
id: b1ce9a72-73cf-11ec-981b-acde48001122
-version: 1
-date: '2022-01-12'
+version: 2
+date: '2022-07-30'
author: Michael Haag, Splunk
type: TTP
datamodel: []
@@ -10,7 +10,7 @@ description: The following analytic identifies non SYSTEM accounts requesting ac
requiring acce... |
Fix flake8 config
Having the `select` meant that flake8 was only checking the `B901` rule
and ignoring all others. | @@ -3,7 +3,7 @@ xfail_strict=true
[flake8]
-exclude = venv*,__pycache__,node_modules,cache,migrations,build
+exclude = venv*,__pycache__,node_modules,cache,migrations,build,sample_cap_xml_documents.py
+max-line-length = 120
# W504 line break after binary operator
extend_ignore=B306, W504
-select=B901
|
Update welcome_email.rst
Fixed typos | @@ -19,7 +19,7 @@ Subject: New Communication Platform - Mattermost
Hi all,
-As some of you already know, we are moving to Mattermost as our communication platform. Mattermost is a messaging app where you can talk, share files, and collaborate on projects or initiatives. Mattermost also integrate with many of the apps t... |
Integ-tests: only use simple protocol when running NCCL test
This change is done to fix test_efa test on p4d. It is done according to the doc: | @@ -13,5 +13,6 @@ mpirun \
-x RDMAV_FORK_SAFE=1 \
-x NCCL_ALGO=ring \
-x NCCL_DEBUG=WARNING \
+-x NCCL_PROTO=simple \
--mca pml ^cm --mca btl tcp,self --mca btl_tcp_if_exclude lo,docker0 --bind-to none \
/shared/openmpi/nccl-tests-2.10.0/build/all_reduce_perf -b 8 -e 1G -f 2 -g 1 -c 1 -n 100 > /shared/nccl_tests.out
|
portico: Move carousel forward on clicking inside tour container.
Fixes: | @@ -241,6 +241,14 @@ var load = function () {
interval: false,
});
+ // Move to the next slide on clicking inside the carousel container
+ $(".carousel-inner .item-container").click(function (e) {
+ // We don't want to trigger this event if user clicks on a link
+ if (e.target.tagName.toLowerCase() !== "a") {
+ $("#myC... |
Fix perspective change in setData
The condition `perspective != self._perspective` was always False (attribute alreday updated when reaching this code) | @@ -488,7 +488,9 @@ class StackView(qt.QMainWindow):
self._stack = stack
self.__createTransposedView()
+ perspective_changed = False
if perspective != self._perspective:
+ perspective_changed = True
self.__setPerspective(perspective)
# This call to setColormap redefines the meaning of autoscale
@@ -513,11 +515,10 @@ cl... |
[isolate] limit expired cron job to 9 minutes
Otherwise on prod it exceeds its 10 minute hard limit and this causes a 500. | @@ -243,13 +243,17 @@ class CronCleanupExpiredHandler(webapp2.RequestHandler):
"""Triggers taskqueues to delete 500 items at a time."""
@decorators.require_cronjob
def get(self):
+ # Do not run for more than 9 minutes. Exceeding 10min hard limit causes 500.
+ end = time.time() + 9*60
triggered = 0
total = 0
q = model.C... |
Fix MetaMainHasInfoRule when running from meta dir
When ansible-lint is run directly from the meta directory for meta/main.yml, file.path is simply 'main.yml' and fails the `str(file.path).endswith('/main.yml')` test.
We can instead compare the name attribute of the Path object to 'main.yml'. | @@ -70,7 +70,7 @@ class MetaMainHasInfoRule(AnsibleLintRule):
# since Ansible 2.10 we can add a meta/requirements.yml but
# we only want to match on meta/main.yml
- if not str(file.path).endswith('/main.yml'):
+ if file.path.name != 'main.yml':
return []
galaxy_info = data.get('galaxy_info', False)
|
Discard seconds and microseconds when determining scheduled target_size changes
Review-Url: | @@ -278,6 +278,8 @@ def ensure_entities_exist(max_concurrent=50):
max_concurrent: Maximum number of concurrent asynchronous requests.
"""
now = utils.utcnow()
+ # Seconds and microseconds are too granular for determining scheduling.
+ now = datetime.datetime(now.year, now.month, now.day, now.hour, now.minute)
# Generat... |
Update erddap_data.py
solve and close | @@ -582,25 +582,15 @@ class Fetch_wmo(ErddapArgoDataFetcher):
list(str)
"""
if not self.parallel:
- if len(self.WMO) <= 5: # todo: This max WMO number should be parameterized somewhere else
- # Retrieve all WMOs in a single request
- return [self.get_url()]
- else:
- # Retrieve one WMO by URL sequentially (same behavio... |
<fix>[vm]: fix vnuma bug when open vnuma
change memory size type
Resolves: | @@ -3461,7 +3461,7 @@ class Vm(object):
if numa_nodes:
numa = e(cpu, 'numa')
for _, numa_node in enumerate(numa_nodes):
- e(numa,'cell', attrib={'id': str(numa_node.nodeID), 'cpus': str(numa_node.cpus), 'memory': str(numa_node.memorySize/1024), 'unit': 'KiB'})
+ e(numa,'cell', attrib={'id': str(numa_node.nodeID), 'cpus... |
Use --lockfile in place of --collections-lock
+label: docsite_pr | @@ -224,11 +224,11 @@ Mazer supports specifying a list of collections to be installed
from a file (a 'collections lockfile').
To install collections specified in a lockfile, use the
-``--collections-lock`` option of the ``install`` subcommand:
+``--lockfile`` option of the ``install`` subcommand:
.. code-block:: bash
-... |
[Jira] Issues for Backlog updated URL
Issues for backlog is using the incorrect URL according to this documentation:
*
*
resulting in HTTP 404 | @@ -4221,7 +4221,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
"""
:param board_id: int, str
"""
- url = "rest/agile/1.0/{board_id}/backlog".format(board_id=board_id)
+ url = "rest/agile/1.0/board/{board_id}/backlog".format(board_id=board_id)
return self.get(url)
def get_issues_for_board(self, board_id,... |
Update pyproject.toml
Bump version to 0.4.2 | [tool.poetry]
name = "autogoal"
-version = "0.4.1"
+version = "0.4.2"
authors = ["Suilan Estevez-Velarde <suilanestevez@gmail.com>", "Alejandro Piad-Morffis <apiad@apiad.net>"]
description = "Automatic Generation Optimization And Learning"
license = "MIT"
|
Modified time.sleep(1) delay amount
Modified time.sleep(1) delay amount to give glowscript more time to launch before opening up Comm channel. Also modified code for VPython on JupyterHub | @@ -58,10 +58,15 @@ else:
if jupyterlab.__version__ >= '0.35.0':
from os.path import join
labextensions_dir = join(jupyterlab.commands.get_app_dir(), u'static')
+ try:
notebook.nbextensions.install_nbextension(path=package_dir + "/vpython_data",
nbextensions_dir=labextensions_dir,
overwrite=False,
verbose=0)
+ except P... |
(trivial) kivy: add missing import
follow-up | @@ -12,6 +12,7 @@ from decimal import Decimal
from electrum.simple_config import FEERATE_WARNING_HIGH_FEE, FEE_RATIO_HIGH_WARNING
from electrum.gui.kivy.i18n import _
from electrum.plugin import run_hook
+from electrum.util import NotEnoughFunds
from .fee_dialog import FeeSliderDialog, FeeDialog
|
Ensure that resource arg vals are strings
Unlike flags, which may be numeric, resource spec vals are always
strings. | @@ -190,7 +190,7 @@ def _split_flag_args(args, opdef):
resource_vals = {}
for name, val in parsed.items():
if _is_resource(name, opdef, parsed):
- resource_vals[name] = val
+ resource_vals[name] = str(val)
else:
flag_vals[name] = val
return flag_vals, resource_vals
|
Make exceptions loading extension schemas non-fatal.
* Make exceptions loading extension schemas non-fatal.
Also cache results of check_exists(). | @@ -120,7 +120,7 @@ class Fetcher(object):
class DefaultFetcher(Fetcher):
def __init__(self,
- cache, # type: Dict[Text, Text]
+ cache, # type: Dict[Text, Union[Text, bool]]
session # type: Optional[requests.sessions.Session]
): # type: (...) -> None
self.cache = cache
@@ -128,8 +128,10 @@ class DefaultFetcher(Fetcher)... |
BioStruct-X --> Wellcome Trust
BSX website no longer exists | @@ -44,7 +44,7 @@ list.
Funding
=======
-DIALS development at `Diamond Light Source`_ is supported by the `BioStruct-X`_ EU grant,
+DIALS development at `Diamond Light Source`_ is supported by the `Wellcome Trust`_,
`Diamond Light Source`_, and `CCP4`_.
DIALS development at `Lawrence Berkeley National Laboratory`_ is
@... |
Added new category `python_news` to config, that hold mail lists, channel and webhook.
This use local dev environment IDs. | @@ -122,6 +122,7 @@ guild:
channels:
announcements: 354619224620138496
user_event_announcements: &USER_EVENT_A 592000283102674944
+ python_news: &PYNEWS_CHANNEL 701667765102051398
# Development
dev_contrib: &DEV_CONTRIB 635950537262759947
@@ -236,6 +237,7 @@ guild:
reddit: 635408384794951680
duck_pond: 6378214753273119... |
Add `kedro install` to Iris example docs
Update to the Iris example documentation page to clarify the order of project creation, installation of dependencies and project run
Minor fix to contributing.md as per discussion | @@ -63,10 +63,7 @@ make test
make build-docs
```
-> *Note:* If the tests in `tests/extras/datasets/spark` are failing, and you are
-> not planning to work on Spark related features, then you can run a reduced
-> test suite that excludes them. Do this by executing the following command:
-> `make test-no-spark`.
+> *Note... |
Update desktop-app-deployment.rst
Fix missing echo lines | @@ -105,8 +105,8 @@ You can distribute the official Windows Desktop App silently to end users, pre-c
echo "minimizeToTray": false,
echo "notifications": {
echo "flashWindow": 0,
- "bounceIcon": false,
- "bounceIconType": 'informational',
+ echo "bounceIcon": false,
+ echo "bounceIconType": 'informational',
echo },
echo... |
concat KJTs
Summary:
Pull Request resolved:
X-link:
Add a static function to concat a list of KJTs | @@ -333,12 +333,12 @@ class SingleStepSyntheticSparseArchRewardNet(nn.Module):
)
sparse_data_per_step = [
KeyedJaggedTensor.concat(
- KeyedJaggedTensor.concat(
- state_id_list_per_step[i], action_id_list_per_step[i]
- ),
- KeyedJaggedTensor.concat(
- state_id_score_list_per_step[i], action_id_score_list_per_step[i]
- )... |
Verification: improve confirmation message handling
Suppress errors coming from Discord when changing the confirmation
message in case it gets deleted, or something else goes wrong.
This commit also adds either the ok hand or the warning emoji to
the edited message content, as with the guild syncer confirmation. | @@ -213,15 +213,21 @@ class Verification(Cog):
log.debug("Staff prompt not answered, aborting operation")
return False
finally:
+ with suppress(discord.HTTPException):
await confirmation_msg.clear_reactions()
result = str(choice) == constants.Emojis.incident_actioned
log.debug(f"Received answer: {choice}, result: {resu... |
Fix `readonlinesnovel` chapter body download
The source removed `<div class=reading_area><div>` from chapter body | @@ -61,6 +61,6 @@ class ReadOnlineNovelsCrawler(Crawler):
def download_chapter_body(self, chapter):
soup = self.get_soup(chapter['url'])
- contents = soup.select_one('.read-context .reading_area')
+ contents = soup.select_one('.read-context')
assert contents, 'No chapter contents found'
return self.cleaner.extract_cont... |
Remove assert that verifies if tables were marked
A summary of this would be that having multiple workers and multiple
insert/select on the same table causes a lot of issues. Please refer
yourself to the issue below to have a better understanding.
fixes | @@ -162,9 +162,6 @@ class PostgresTarget(luigi.Target):
(self.update_id, self.table,
datetime.datetime.now()))
- # make sure update is properly marked
- assert self.exists(connection)
-
def exists(self, connection=None):
if connection is None:
connection = self.connect()
|
Disable time_pxd test in Python 3.4
It uses features that are unavailable thus always fails
Test was introduced in | @@ -438,6 +438,7 @@ VER_DEP_MODULES = {
'run.mod__spec__',
'run.pep526_variable_annotations', # typing module
'run.test_exceptions', # copied from Py3.7+
+ 'run.time_pxd', # _PyTime_GetSystemClock doesn't exist in 3.4
]),
}
|
Refactor `geothermal.py`
Change .ix (deprecated) to .loc
Simplify `material_properties` import to one line | @@ -30,11 +30,11 @@ def calc_ground_temperature(locator, config, T_ambient_C, depth_m):
..[Kusuda, T. et al., 1965] Kusuda, T. and P.R. Achenbach (1965). Earth Temperatures and Thermal Diffusivity at
Selected Stations in the United States. ASHRAE Transactions. 71(1):61-74
"""
- material_properties = pd.read_excel(locat... |
Update ffmpeg.py
bitrate correction adjustment | @@ -238,7 +238,10 @@ class MediaStreamInfo(object):
elif key == 'DISPOSITION:default':
self.default = self.parse_bool(self.parse_int(val))
elif key.lower().startswith('tag:bps'):
- self.bitrate = self.bitrate or (self.parse_int(val) * (1000 if self.parse_int(val) < 1000 else 1))
+ self.bitrate = self.bitrate or self.pa... |
BUG: fixed typo in variable
Fixed typo in variable name. | @@ -481,7 +481,10 @@ class Instrument(object):
in_kwargs[meth_key] = self.kwargs[sort_key][meth_key]
# Get the inst_module string
- istr = "None" if self.inst_module is None else self.inst_module.__name_
+ if self.inst_module is None:
+ istr = "None"
+ else:
+ istr = getattr(self.inst_module, "__name__")
# Create strin... |
Create function for encoding string values
Makes it easier to unit test | @@ -5728,6 +5728,14 @@ def _checkValueItemParent(policy_element, policy_name, policy_key,
return False
+def _encode_string(value):
+ encoded_null = chr(0).encode('utf-16-le')
+ if value is None:
+ return encoded_null
+ else:
+ return b''.join([value.encode('utf-16-le'), encoded_null])
+
+
def _buildKnownDataSearchStrin... |
Force $.ads and $-debug.ads to be part of the binding closure
TN: | @@ -19,9 +19,9 @@ with Langkit_Support.Slocs; use Langkit_Support.Slocs;
with Langkit_Support.Symbols; use Langkit_Support.Symbols;
with Langkit_Support.Text; use Langkit_Support.Text;
-private with ${ada_lib_name}.Implementation;
with ${ada_lib_name}.Common; use ${ada_lib_name}.Common;
-
+private with ${ada_lib_name}.... |
Update upgrading-to-3.0.rst
Fixing broken link | Upgrading to version 3.0
========================
-Use these instructions if you are upgrading from 2.0.0, 2.1.0, or 2.2.0. If you are upgrading from a version earlier than 2.0.0, you must first `upgrade to version 2.0 <../upgrading-to-2.0.html>`_.
+Use these instructions if you are upgrading from 2.0.0, 2.1.0, or 2.2.... |
Backfill cl/470082513
* Backfill cl/470082513
Centralize the discussion of sliced object downloads in the webpage
* Update cp.py | @@ -363,26 +363,11 @@ _STREAMING_TRANSFERS_TEXT = """
_SLICED_OBJECT_DOWNLOADS_TEXT = """
<B>SLICED OBJECT DOWNLOADS</B>
- gsutil uses HTTP Range GET requests to perform "sliced" downloads in parallel
- when downloading large objects from Cloud Storage. This means that disk
- space for the temporary download destinatio... |
(from AES) Update error-response-overrides.md
removed `json_format` from first Known Limitations section | @@ -113,7 +113,7 @@ spec:
## Known Limitations
-- `text_format`, `text_format_source`, and `json_format` perform no string
+- `text_format`and `text_format_source` perform no string
escaping on expanded variables. This may break the structural integrity of your
response body if, for example, the variable contains HTML ... |
release(testnet): initFile uses new BT/LTE logic
Until /json and /initFile are unified, we need
to remember to make updates in both places. | @@ -8,7 +8,7 @@ services:
- dbus-session
- diagnostics
environment:
- - FIRMWARE_VERSION=2021.12.14.0-1
+ - FIRMWARE_VERSION=2021.12.14.0-2
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
- DBUS_SESSION_BUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
privileged: true
@@ -58,9 +58,9 @@ servic... |
Update mapping_tests.py
Make output of gradient check verbose to diagnose error | @@ -48,7 +48,7 @@ class MappingTests(unittest.TestCase):
for activation in ['tanh', 'relu', 'sigmoid']:
mapping = GPy.mappings.MLPext(input_dim=3, hidden_dims=[5,5,5], output_dim=2, activation=activation)
X = np.random.randn(100,3)
- self.assertTrue(MappingGradChecker(mapping, X).checkgrad())
+ self.assertTrue(MappingG... |
Fixed error on chr function when decrypt
On line 23 when make the operations returns a float and chr function doesn't permit float values as parameters. | @@ -20,7 +20,7 @@ class Onepad:
'''Function to decrypt text using psedo-random numbers.'''
plain = []
for i in range(len(key)):
- p = (cipher[i]-(key[i])**2)/key[i]
+ p = int((cipher[i]-(key[i])**2)/key[i])
plain.append(chr(p))
plain = ''.join([i for i in plain])
return plain
|
Avoid NULL dereference in __Pyx_KwValues_FASTCALL
Simpler follow up to
I don't think we need to be worried null args and non-zero nargs,
but null args and 0 nargs is quite common and valid I think.
This PR just avoids a dereference in that case (which is probably dubious). | @@ -422,7 +422,7 @@ bad:
#if CYTHON_METH_FASTCALL
#define __Pyx_Arg_FASTCALL(args, i) args[i]
#define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds)
- #define __Pyx_KwValues_FASTCALL(args, nargs) (&args[nargs])
+ #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
static CYTHON_INLINE PyObject * __Py... |
Support callbacks when parsing process graphs, use it to implement 'apply' process
dimensions parameter is not yet used: | @@ -36,6 +36,18 @@ class ImageCollection(ABC):
"""
pass
+ def apply(self,process:str,dimensions = []) -> 'ImageCollection':
+ """
+ Applies a unary process (a local operation) to each value of the specified or all dimensions in the data cube.
+ https://open-eo.github.io/openeo-api/v/0.4.0/processreference/#apply
+
+ :p... |
ceph-validate: fail on CentOS 7
The Ceph Octopus release is only supported on CentOS 8
Closes: | msg: "Distribution not supported {{ ansible_os_family }}"
when: ansible_os_family not in ['Debian', 'RedHat', 'ClearLinux', 'Suse']
+- name: fail on unsupported CentOS release
+ fail:
+ msg: "CentOS release not supported {{ ansible_distribution_major_version }}"
+ when:
+ - ansible_distribution == 'CentOS'
+ - ansible_... |
Add warn in validate_ip
Refer to issue | @@ -5,6 +5,7 @@ import functools
import ipaddress
import itertools
import typing
+import logging
from typing import Dict, List, Optional, Union
from aiohttp import web
@@ -35,6 +36,8 @@ TELEGRAM_SUBNET_2 = ipaddress.IPv4Network('91.108.4.0/22')
allowed_ips = set()
+log = logging.getLogger(__name__)
+
def _check_ip(ip: ... |
Fix, was using builtin names that were not really needed.
* In some cases, "__debug__" was added as a constant because the
integer 1 was used in a tuple, e.g. and that was not used at
all though. | @@ -1077,6 +1077,8 @@ def allocateNestedConstants(module_context):
considerForDeferral(constant_value.start)
considerForDeferral(constant_value.step)
considerForDeferral(constant_value.stop)
+ elif constant_type in (str, NoneType, int, long):
+ pass
elif constant_value in builtin_named_values_list:
considerForDeferral(... |
Update codeowners test following
Update codeowners test following | @@ -55,6 +55,7 @@ def _vendor_module_testcases(mod_name, expected_group):
("in/any/dir/any_file.py", BASE_MAINTAINERS),
("cirq/contrib/bla.py", BASE_MAINTAINERS),
("cirq/experiments/bla.py", QCVV_MAINTAINERS),
+ ("cirq/docs/qcvv/my_fancy_notebook.ipynb", QCVV_MAINTAINERS),
*_vendor_module_testcases("aqt", AQT_MAINTAINE... |
dnf: enable fastestmirror by default
Enabling the fastestmirror plugin allows dnf to choose the fastest
(also usually the closest) mirror to the instance of osbuild. It
has no effect on builds that force the use of a specific server
or mirror. | @@ -22,6 +22,7 @@ arguments generated from the stage options:
* `--forcearch {basearch}`
* `--releasever {releasever}`
* `--setopt install_weak_deps={install_weak_deps}`
+* `--setopt fastestmirror={fastestmirror}`
* `--config /tmp/dnf.conf`
* `--exclude {pkg}` for each item in `exclude_packages`
@@ -123,6 +124,11 @@ ST... |
Update bug report template
add maria to bug report | @@ -43,7 +43,7 @@ body:
- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam
- Documentation: @sgugger and @stevhliu
+ Documentation: @sgugger, @stevhliu and @MKhalusova
Model hub:
|
README: fix typo
Closes | @@ -111,13 +111,13 @@ Consult the `Changelog <https://docs.pytest.org/en/latest/changelog.html>`__ pag
Support pytest
--------------
-You can support pytest by obtaining a `Tideflift subscription`_.
+You can support pytest by obtaining a `Tidelift subscription`_.
Tidelift gives software development teams a single sourc... |
[testing] download idna 2.7 directly
* [testing] download idna 2.7 directly
This package was removed from pypi. We still need it for python2, so
we'll download it directly via git.
* [testing] fix pycparser package | @@ -21,8 +21,8 @@ pipeline {
sh """
virtualenv .testenv
source .testenv/bin/activate
- pip install "idna<=2.7"
- pip install "pycparser<=2.18"
+ pip install https://github.com/kjd/idna/archive/refs/tags/v2.7.zip
+ pip install https://github.com/eliben/pycparser/archive/refs/tags/release_v2.18.zip
pip install -e .[testi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.