message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Speed up initial mib sync performance
Store the onu omci mib in memory only.
This speeds up onu activation considerably especially on hardware
constrained systems.
Future plans are to re-introduce mib persistence along with the
use of the 2.0 core and per adapter processes. | @@ -40,8 +40,8 @@ from voltha.extensions.omci.tasks.omci_sw_image_upgrade_task import OmciSwImageU
OpenOmciAgentDefaults = {
'mib-synchronizer': {
'state-machine': MibSynchronizer, # Implements the MIB synchronization state machine
- # 'database': MibDbVolatileDict, # Implements volatile ME MIB database
- 'database': M... |
Filter out None matches in match queries
Can happen if a race condition occurs when deleting matches | @@ -28,7 +28,7 @@ class EventMatchesQuery(DatabaseQuery):
event_key = self._query_args[0]
match_keys = yield Match.query(Match.event == ndb.Key(Event, event_key)).fetch_async(keys_only=True)
matches = yield ndb.get_multi_async(match_keys)
- raise ndb.Return(matches)
+ raise ndb.Return(filter(None, matches))
class TeamE... |
Adding additional logging of the root exception.
Helps to track down issues with underlying rendering. | @@ -17,6 +17,7 @@ class RenderedController(controllers.BaseController):
def __init__(self, view=None, doc=None, path=None, _pod=None):
self.view = view
self.path = path
+ self._pod = _pod
if doc:
self._pod_path = doc.pod_path
self._locale = str(doc.locale)
@@ -99,6 +100,8 @@ class RenderedController(controllers.BaseCon... |
Added instructions for emulating terminal PyCharm
Updated instructions for emulating terminal in PyCharm Professional | @@ -156,8 +156,7 @@ asciimatics will not work. There are 2 workarounds.
1. The simplest is just to run asciimatics inside a real terminal or window - i.e. not inside
PyCharm/the IDE.
-2. If you must run inside PyCharm, the only option I've got working so far is the tests but even
- some of them need to skip where they ... |
Update README.md
Crossed out completed milestones and added new module | @@ -38,7 +38,7 @@ If you're interested in writing your own modules for Pacu, check out our [Module
* 0.1 - Beta release (June 26th, 2018)
* 0.2 - 0.X - Beta releases
- * Proxy+Stager for routing Pacu activity through a compromised host.
+ * ~~Proxy+Stager for routing Pacu activity through a compromised host.~~
* Easy-i... |
[Datasets] Improve `batch_format` error message
To improve the batch_format error message. | @@ -147,8 +147,8 @@ def _format_batch(batch: Block, batch_format: str) -> BatchType:
batch = BlockAccessor.for_block(batch).to_numpy()
else:
raise ValueError(
- f"The given batch format: {batch_format} "
- f"is invalid. Supported batch type: {BatchType}"
+ f"The given batch format '{batch_format}' is invalid. Supported... |
fix the building and installing doc of inference lib
The building and installing documentation should be updated because that the code of inference lib has changed. The current bug is that most of files under the inference library path are missed. | * *CUDA Toolkit 8.0/9.0 with cuDNN v7.3+*
* *GPU's computing capability exceeds 1.0*
+Note: currently, the official Windows installation package only support CUDA 8.0/9.0 with single GPU, and don't support CUDA 9.1/9.2/10.0/10.1. if you need to use, please compile by yourself through the source code.
+
Please refer to ... |
Update documented default value for SendPushNotifications
* Update documented default value for SendPushNotifications
* Update config-settings.rst
Fixed formatting. | @@ -838,7 +838,7 @@ Enable Push Notifications
**False**: Mobile push notifications are disabled.
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| This feature's ``config.json`` setting is ``"SendPu... |
tests: Do not download Django from Git
This test takes a very long time, because it downloads Django from
GitHub. There should be no reason to do that, since we can use local
packages as well. | @@ -324,10 +324,13 @@ def test_upgrade_packages_option(tmpdir):
def test_generate_hashes_with_editable():
+ small_fake_package_dir = os.path.join(
+ os.path.split(__file__)[0], 'fixtures', 'small_fake_package')
+ small_fake_package_url = 'file:' + pathname2url(small_fake_package_dir)
runner = CliRunner()
with runner.is... |
fix(device): add next/previous source for deCONZ and ZHA for E1810MediaPlayerController
related | @@ -105,6 +105,8 @@ class E1810MediaPlayerController(MediaPlayerController):
2003: MediaPlayer.RELEASE,
3001: MediaPlayer.HOLD_VOLUME_DOWN,
3003: MediaPlayer.RELEASE,
+ 4001: MediaPlayer.PREVIOUS_SOURCE,
+ 5001: MediaPlayer.NEXT_SOURCE,
}
def get_zha_actions_mapping(self) -> TypeActionsMapping:
@@ -119,6 +121,8 @@ clas... |
revert: server script errors
added a change where all exceptions are caught when a server
script is executed, which makes validation errors useless. reverting this
for now, until we find a better solution. | @@ -34,19 +34,7 @@ def run_server_script_for_doc_event(doc, event):
if scripts:
# run all scripts for this doctype + event
for script_name in scripts:
- try:
frappe.get_doc('Server Script', script_name).execute_doc(doc)
- except Exception as e:
- message = frappe._('Error executing Server Script {0}. Open Browser Conso... |
fix markdown for links in README
Some links were not displaying properly | @@ -280,7 +280,7 @@ to be atleast 224.
The images have to be loaded in to a range of [0, 1] and then
normalized using `mean=[0.485, 0.456, 0.406]` and `std=[0.229, 0.224, 0.225]`
-An example of such normalization can be found in `the imagenet example here` <https://github.com/pytorch/examples/blob/42e5b996718797e45c46a... |
tests: UnconfiguredTree: fix path_restrict() tests due to missing SLOT
Create pkg objs while iterating over a repo now checks for valid SLOTs
otherwise the pkgs are added to the related masked repo. | @@ -100,11 +100,16 @@ class TestUnconfiguredTree(TempDirMixin):
ensure_dirs(pjoin(repo_dir, 'cat', 'bar'))
ensure_dirs(pjoin(repo_dir, 'tac', 'oof'))
touch(pjoin(repo_dir, 'skel.ebuild'))
- touch(pjoin(repo_dir, 'cat', 'foo', 'foo-1.ebuild'))
- touch(pjoin(repo_dir, 'cat', 'foo', 'foo-2.ebuild'))
touch(pjoin(repo_dir, ... |
Followup to commit
Use '~' as sed separator to avoid escaping filepaths | @@ -135,7 +135,7 @@ endif
GIT_TOOLKIT_VERSION_SHORT := $(shell git describe --abbrev=0)
# IF upload agent is built, dlls will be placed here, can be overriden with argument
# e.g. `make DLL_DEPS_FOLDER=C:\\toolkit-deps\\ pynsist_installer`
-DLL_DEPS_FOLDER = '..\/..\/src\/ua\/dist\/'
+DLL_DEPS_FOLDER = '../../src/ua/di... |
[Docs] Add documentation for FeatureSet.plot
* [Doc] Add documentation for FeatureSet.plot
Add missing documentation for FeatureSet.plot
* missing one param
* solved comments | @@ -1073,11 +1073,11 @@ class FlowStep(BaseStep):
def plot(self, filename=None, format=None, source=None, targets=None, **kw):
"""plot/save graph using graphviz
- :param filename: target filepath for the image (None for the notebook)
- :param format: The output format used for rendering (``'pdf'``, ``'png'``, etc.)
- :... |
$.Debug.Sym_Matches: use symbol canonicalizer if available
TN: | ## vim: filetype=makoada
+<%namespace name="exts" file="extensions.mako" />
+
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Conversion;
@@ -8,6 +10,11 @@ with Langkit_Support.Text; use Langkit_Support.Text;
with ${ada_lib_name}.Lexer; use ${ada_lib_name}.Lexer;
+${(exts.with_clauses(with_clauses + [
+ ((ctx.sym... |
Update magentocore.txt
Dup of Merging Reference section. | @@ -1035,6 +1035,7 @@ cloudservice.tw
silver-statistics.com
# Reference: https://twitter.com/felixaime/status/1219175480303202307
+# Reference: https://twitter.com/matr0cks/status/1220418827751763969
jqueryextplugin.com
@@ -1064,7 +1065,3 @@ sagepay-live.com
# Reference: https://www.bleepingcomputer.com/news/security/e... |
Typo
Test Plan: N/A
Reviewers: #ft, natekupp | @@ -89,7 +89,7 @@ def index_view(_path):
except seven.FileNotFoundError:
text = '''<p>Can't find webapp files. Probably webapp isn't built. If you are using
dagit, then probably it's a corrupted installation or a bug. However, if you are
- developing dagit locally, you problem can be fixed as follows:</p>
+ developing ... |
Add lsof, which is useful for cleaning up dead tmp files, to the
pipeline install | @@ -14,7 +14,7 @@ Quick install, for Debian and Debian-esque systems:
sudo apt-get install build-essential python3-dev python3-pip \
libxml2-dev libxslt-dev zlib1g-dev libssl-dev libsqlite3-dev \
libffi-dev git tmux fontconfig-config fonts-dejavu-core \
- libfontconfig1 libjpeg-turbo8 libjpeg8
+ libfontconfig1 libjpeg-... |
Update book reference in ETS example
Update link to Ch 8 "Exponential smoothing" in Hyndman & Athanasopoulos forecasting book (3rd ed)
to fix to 404 error | "\n",
"However, not all of these methods are stable. Refer to [1] and references therein for more info about model stability.\n",
"\n",
- "[1] Hyndman, Rob J., and George Athanasopoulos. *Forecasting: principles and practice*, 3rd edition, OTexts, 2019. https://www.otexts.org/fpp3/7"
+ "[1] Hyndman, Rob J., and Athanas... |
remove debug prints
whoops | @@ -1120,12 +1120,9 @@ class H265Codec(VideoCodec):
if 'params' in safe:
params = safe['params']
if 'framedata' in safe:
- print("framedata is in safe")
- print(safe['framedata'])
if params:
params = params + ":"
params = params + self.safe_framedata(safe['framedata'])
- print(params)
if params:
optlist.extend(['-%s' %... |
Update README.md
minor pos clarification | # QRL
Quantum Resistant Ledger
-Python-based blockchain ledger utilising hash-based one-time merkle tree signature scheme (XMSS) instead of ECDSA. Proof-of-stake block selection via HMAC_DRBG PRF and a signed iterative hash chain reveal scheme.
+Python-based blockchain ledger utilising hash-based one-time merkle tree s... |
Upgrade to pytest v4.6.5
Our CI build failures are related to pytest-dev/pytest#5903. We initially restricted pytest up to v4.1 in because pytest_twisted wasn't behaving well with the latest version of pytest at the time. | @@ -27,7 +27,7 @@ extras_require = {
# Twisted 19.7.0 dropped py3.4 support
"twisted:python_version == '3.4'": "twisted<=19.2.1",
"typing": ["typing>=3.6.4"],
- "tests": ["pytest<4.1", "pytest-mock", "pytest-cov", "pytest-twisted"],
+ "tests": ["pytest==4.6.5", "pytest-mock", "pytest-cov", "pytest-twisted"],
}
metadata... |
puppeteer_test: Change browser default viewport to allow Firefox.
When we run puppeteer with Firefox,
the `--window-size` option does not work,
which makes the bottom part of
the page cut off.
This commit fixes this issue
by setting the screen default viewport
to the maximum size of the window. | @@ -65,7 +65,10 @@ class CommonUtils {
"--no-sandbox",
"--disable-setuid-sandbox",
],
- defaultViewport: {width: 1280, height: 1024},
+ // TODO: Change defaultViewport to 1280x1024 when puppeteer fixes the window size issue with firefox.
+ // Here is link to the issue that is tracking the above problem https://github.c... |
Clear cache between test runs
This avoids any potential issue of caches persisting between runs | @@ -15,6 +15,12 @@ from wagtail.test.testapp.models import SimplePage
class TestPageUrlTags(TestCase):
fixtures = ["test.json"]
+ def setUp(self):
+ super().setUp()
+
+ # Clear caches
+ cache.clear()
+
def test_pageurl_tag(self):
response = self.client.get("/events/")
self.assertEqual(response.status_code, 200)
|
Add Rejax
Squashs:
* Add Rejax API to Development
* added `ticks` | @@ -413,6 +413,7 @@ API | Description | Auth | HTTPS | CORS |
| [QR code](http://qrtag.net/api/) | Create an easy to read QR code and URL shortener | No | Yes | Yes |
| [QR code](http://goqr.me/api/) | Generate and decode / read QR code graphics | No | Yes | Unknown |
| [QuickChart](https://quickchart.io/) | Generate c... |
Update Kentucky.md
changed the date | @@ -34,7 +34,7 @@ A young woman was injured by a rubber bullet she took to the head.
* [Video](https://twitter.com/shannynsharyse/status/1267015577266249728)
* [Photo of Victim](https://twitter.com/shannynsharyse/status/1266631722239766528)
-### Police shoot at cars in traffic from overpass | June 1st?
+### Police shoo... |
Re-add in pylint plugin
The `undefined-variable` pylint plugin can now be re-added in, as it was removed until [an underlying issue](https://github.com/PyCQA/pylint/issues/3791) had been fixed. | @@ -45,8 +45,7 @@ enable=
syntax-error,
too-many-function-args,
trailing-whitespace,
- # Disabling until https://github.com/PyCQA/pylint/issues/3791 is fixed
- # undefined-variable,
+ undefined-variable,
unexpected-keyword-arg,
unhashable-dict-key,
unnecessary-pass,
|
update list of releasers within MAINTAINERS.md
This adds David and Hamzah who are engineers at Ambassador Labs.
They will be contributing to the project and assisting with releases.
Once they have met the governance guidelines they will be nominated
to become maintainers. | @@ -8,7 +8,7 @@ describes governance guidelines and maintainer responsibilities.
Maintainers are listed in alphabetical order.
| Maintainer | GitHub ID | Affiliation |
-| ---------- | --------- | ----------- |
+| ---------------- | --------------------------------------------- | ----------------------------------------... |
swarming: clear cache in main_test.py
This is to fix flaky test failure in | @@ -21,8 +21,9 @@ from depot_tools import auto_stub
from depot_tools import fix_encoding
# client/
-from utils import subprocess42
from utils import file_path
+from utils import subprocess42
+from utils import tools
import swarmingserver_bot_fake
from bot_code import bot_main
@@ -31,6 +32,7 @@ from bot_code import bot_... |
stream_edit: Replace -1 with settings_config.retain_message_forever.
This commit replaces -1 with settings_config.retain_message_forever
for the message retention days setting. | @@ -58,13 +58,14 @@ exports.get_retention_policy_text_for_subscription_type = function (sub) {
let message_retention_days = sub.message_retention_days;
// If both this stream and the organization-level policy are to retain forever,
// there's no need to comment on retention policies when describing the stream.
- if (pa... |
Support downloading the gocaves binary on ARM
Tested-by: Build Bot | @@ -18,6 +18,7 @@ from __future__ import annotations
import json
import os
import pathlib
+import platform
import select
import socket
import sys
@@ -266,7 +267,7 @@ class CavesMockServer(MockServer):
self._caves_version = caves_version
if self._caves_version is None:
- self._caves_version = 'v0.0.1-69'
+ self._caves_v... |
Update gcp_managed_relational_db.py
Fix _ParseEndpoint (should have been in last PR) | @@ -245,7 +245,7 @@ class GCPManagedRelationalDb(managed_relational_db.BaseManagedRelationalDb):
resource URI (string)
"""
try:
- selflink = describe_instance_json[0]['selfLink']
+ selflink = describe_instance_json['selfLink']
except:
selflink = ''
logging.exception('Error attempting to read stdout. Creation failure.')... |
Update Node Exporter to 1.1.0
Release notes: | @@ -29,9 +29,8 @@ packages:
<<: *default_context
static:
<<: *default_static_context
- version: 1.0.1
+ version: 1.1.0
license: ASL 2.0
- release: 2
URL: https://github.com/prometheus/node_exporter
summary: Prometheus exporter for machine metrics, written in Go with pluggable metric collectors.
description: |
|
Release 4.5.1
adapt release notes | @@ -3,6 +3,9 @@ The released versions correspond to PyPi releases.
## Version 4.6.0 (as yet unreleased)
+## [Version 4.5.1](https://pypi.python.org/pypi/pyfakefs/4.5.1) (2021-08-29)
+This is a bugfix release.
+
### Fixes
* added handling of path-like where missing
* improved handling of `str`/`bytes` paths
|
GDB helpers: fix pretty-printers after recent internal structs renamings
TN: | @@ -48,12 +48,14 @@ class Context(object):
corresponding entity records.
"""
return {
- '{}__implementation__entity_{}'.format(
+ '{}__implementation__internal_entity_{}'.format(
self.lib_name,
Name.from_camel_with_underscores(name).lower
) for name in self.astnode_names
- } | {'{}__implementation__ast_envs__entity'
- ... |
[swarming] Enable stream BotEvent, TaskRequest and TaskResult to BigQuery
Update cron.yaml to enable the cron jobs that do the stream of the three tables;
swarming.bot_events, swarming.task_requests and swarming.task_results. | @@ -30,6 +30,16 @@ cron:
schedule: every 5 minutes synchronized
target: backend
+- description: Send task requests to BigQuery
+ target: backend
+ url: /internal/cron/tasks/send_requests_to_bq
+ schedule: every 1 minutes
+
+- description: Send task results to BigQuery
+ target: backend
+ url: /internal/cron/tasks/send_... |
reports spliter adjustments.
Also replace ';' separator with '|' | @@ -1191,7 +1191,6 @@ class DialogReportCodes(QtWidgets.QDialog):
pass
coder = self.ui.comboBox_coders.currentText()
- #self.html_results = ""
self.html_links = [] # For html file output with media
search_text = self.ui.lineEdit.text()
@@ -1658,12 +1657,11 @@ class DialogReportCodes(QtWidgets.QDialog):
self.eventFilter... |
add test cases for Noneable(Permissive())
Summary: didnt find any problems but additional test coverage cant hurt
Test Plan: all tests
Reviewers: sashank, prha, schrockn | @@ -155,3 +155,12 @@ def test_post_process_config():
'bar': 'baz',
'mau': 'mau',
}
+
+ noneable_permissive_config_type = resolve_to_config_type(
+ {'args': Field(Noneable(Permissive()), is_required=False, default_value=None)}
+ )
+ assert post_process_config(
+ noneable_permissive_config_type, {'args': {'foo': 'wow', '... |
DOC: signal: Refer to fs instead of nyq in the firwin docstring.
The nyq argument is deprecated, so the descriptions of the other
arguments should refer to fs instead of nyq. | @@ -279,14 +279,14 @@ def firwin(numtaps, cutoff, width=None, window='hamming', pass_zero=True,
order + 1). `numtaps` must be odd if a passband includes the
Nyquist frequency.
cutoff : float or 1D array_like
- Cutoff frequency of filter (expressed in the same units as `nyq`)
+ Cutoff frequency of filter (expressed in t... |
Fixed error in documentation
The renamed_file function contains the following which ends up on readthedocs:
:note: This property is deprecated, please use ``renamed_file`` instead.
Removed the line | @@ -384,7 +384,6 @@ class Diff(object):
@property
def renamed_file(self):
""":returns: True if the blob of our diff has been renamed
- :note: This property is deprecated, please use ``renamed_file`` instead.
"""
return self.rename_from != self.rename_to
|
Fix network-isolation.j2.yaml to ignore VIPs for disabled networks
This change modifies network-isolation.j2.yaml to ignore VIPs for
networks that are disabled. This fixes a bug where VIPs would be
created in network-isolation.yaml even if a network was disabled. | @@ -17,7 +17,7 @@ resource_registry:
{%- endfor %}
# Port assignments for the VIPs
- {%- for network in networks if network.vip %}
+ {%- for network in networks if network.vip and network.enabled|default(true) %}
OS::TripleO::Network::Ports::{{network.name}}VipPort: ../network/ports/{{network.name_lower|default(network... |
ENH: print a warning when assuming 0 for the position
closes | @@ -948,6 +948,8 @@ def __read_and_stash_a_motor(obj, initial_positions, coupled_parents):
reading = yield Msg('read', obj)
if reading is None:
# this plan may be being list-ified
+ print("*** all positions for {m.name} are "
+ "relative to current position ***".format(m=obj))
cur_pos = 0
else:
fields = getattr(obj, 'h... |
Working Oven Driver
I noticed that wait time is needed after writing anything to the oven (run/stop command, setpoint command). The wait time required appeared to be around 800+ms. I suggested to wait for 1000ms in the docstrings. Queries do not seem to require this wait time. | @@ -26,6 +26,7 @@ from pymeasure.instruments.validators import strict_discrete_set, strict_range
class Thermotron3800(Instrument):
""" Represents the Thermotron 3800 Oven.
+ For now, this driver only supports using Control Channel 1.
"""
def __init__(self, resourceName, **kwargs):
@@ -36,24 +37,93 @@ class Thermotron38... |
Update howto.rst
silly footnote | @@ -167,7 +167,7 @@ The output still warns us about something:
WARNING:phys2bids.physio_obj:Found 158 timepoints less than expected!
WARNING:phys2bids.physio_obj:Correcting time offset, assuming missing timepoints are at the beginning (try again with a more liberal thr)
-How come?!? We know there are exactly 158 timepo... |
Allow ports in k8s service urls for s3 mock
If there is a port in the host for the request, then this if statement
is not tripped. | @@ -168,7 +168,7 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
or host.startswith("localhost")
or host.startswith("localstack")
or re.match(r"^[^.]+$", host)
- or re.match(r"^.*\.svc\.cluster\.local$", host)
+ or re.match(r"^.*\.svc\.cluster\.local:?\d*$", host)
):
# Default to path-base... |
framework/getters: Ignore connection errors with HTTP getter
If the http getter is used but a connection is not avalible, when
attempting to fetch the resource index an error will be raised. Now we
ignore the error allowing for the remaining getters to be used. | @@ -203,7 +203,7 @@ class Http(ResourceGetter):
def __init__(self, **kwargs):
super(Http, self).__init__(**kwargs)
self.logger = logger
- self.index = None
+ self.index = {}
def register(self, resolver):
resolver.register(self.get, SourcePriority.remote)
@@ -212,7 +212,12 @@ class Http(ResourceGetter):
if not resource.... |
STY: matrix to jobs
Switched from matrix to jobs. | language: python
dist: xenial
-matrix:
+jobs:
include:
- name: 'docs'
python: '3.6'
@@ -14,6 +14,9 @@ matrix:
script: pytest --cov=pysat/
- python: '3.8'
script: pytest --cov=pysat/
+ allow_failures:
+ - name: 'docs'
+ python: '3.6'
services: xvfb
cache: pip
@@ -49,7 +52,3 @@ install:
after_success:
- coveralls --rcfil... |
fix a bug of calling averager.get()
Before any update is performed, calling get() will return NaN originally. It should return instead, regardless of self._mass==0 | @@ -180,8 +180,10 @@ class EMAverager(tf.Module):
Tensor: the current average
"""
return tf.nest.map_structure(
- lambda average: (average / tf.cast(
- self._mass, dtype=average.dtype)), self._average)
+ lambda average: (average / tf.maximum(
+ tf.cast(self._mass, dtype=average.dtype),
+ tf.cast(self._update_rate, dtyp... |
Make human readable date representation consistent
Django humanize and moment libraries use slightly different
logic for representing dates. This commit is to make
representations as similar as possible. | mod.factory('fromQueryParams', [_fromQueryParams]);
mod.factory('getCSRFToken', [_getToken]);
+ // Configure moment.js tresholds
+ moment.relativeTimeRounding(Math.floor);
+ moment.relativeTimeThreshold('s', 60);
+ // NOTE(cutwater): Setting 'ss' treshhold before 's' overrides
+ // it's value to 's' - 1
+ moment.relati... |
Display correct error message for missing imports
Resolves
When a missing import is found in a script, this changes the error
message displayed to indicate that there's a missing import, rather than
giving a generic error message similar to the one raised when the script
does not exist | @@ -107,7 +107,7 @@ class Command(EmailNotificationCommand):
finally:
exc_traceback = None
- if verbosity > 1:
+ if verbosity > 0 and not silent:
if verbosity > 2:
traceback.print_exc()
print(ERROR("Cannot import module '%s': %s." % (mod, e)))
|
Update README.md
Point to the branch with bug fixes, not the tag ! | @@ -43,7 +43,7 @@ The ``argopy`` library should work under all OS (Linux, Mac and Windows) and wit
## Usage
-[](https://binder.pangeo.io/v2/gh/euroargodev/argopy/v0.1.6... |
Updating the framework to include the app package data
As part of our continous integration system it has become
clear that gathering the app package data as well as the
version name can provide useful.
Adding this functionality to mainline as it could prove
useful to other developers. | @@ -727,6 +727,7 @@ class PackageHandler(object):
def setup(self, context):
context.update_metadata('app_version', self.apk_info.version_name)
+ context.update_metadata('app_name', self.apk_info.package)
self.initialize_package(context)
self.start_activity()
self.target.execute('am kill-all') # kill all *background* ac... |
Work on byte level when parsing markdown
Reasoning: instead encoding every character one by one as we
encounter them to use half their length as the correct offset,
we can simply encode the whole string at once as utf-16le and
work with that directly. | @@ -11,8 +11,6 @@ from ..tl.types import (
MessageEntityPre, MessageEntityTextUrl
)
-def tg_string_len(s):
- return len(s.encode('utf-16le')) // 2
class Mode(Enum):
"""Different modes supported by Telegram's Markdown"""
@@ -31,7 +29,10 @@ DEFAULT_DELIMITERS = {
'```': Mode.PRE
}
-DEFAULT_URL_RE = re.compile(r'\[(.+?)\]... |
update API CTA
quick change to just make it a bit more clear what we offer with eMap API if you're coming from eMap.org | "electricityorigin24h": "Origin of electricity in the last 24 hours",
"electricityproduction24h": "Electricity production in the last 24 hours",
"electricityprices24h": "Electricity prices in the last 24 hours",
- "Getdata": "Get historical data, marginal and forecast API"
+ "Getdata": "Get hourly historical, live, and... |
Removed trailing comma in function arguments
This prevented the game from running with python3.5. | @@ -62,7 +62,7 @@ def sample_sequence(
context=None,
temperature=1,
top_k=0,
- top_p=1,
+ top_p=1
):
if start_token is None:
assert context is not None, "Specify exactly one of start_token and context!"
|
llvm, function/SoftMax: Remove dead code generation
Add assert to check the invariant | @@ -4036,13 +4036,8 @@ class SoftMax(NormalizingFunction):
def __gen_llvm_exp_div(self, builder, index, ctx, vi, vo, gain, exp_sum):
- output_type = self.params[OUTPUT_TYPE]
+ assert self.get_current_function_param(OUTPUT_TYPE) == ALL
ptro = builder.gep(vo, [ctx.int32_ty(0), index])
-
- if output_type in (MAX_VAL, MAX_... |
Add missing methods to Python 2 concurrent.futures
* Add missing methods to Python 2 concurrent.futures
Future.exception_info() and Future.set_exception_info() are methods
present only in the Python 2 backport of concurrent.futures.
* Mark timeout args as optional | +# Stubs for concurrent.futures (Python 2)
+
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Optional, Set, Tuple, Union
+from types import TracebackType
_T = TypeVar('_T')
@@ -11,17 +14,19 @@ class Future(Generic[_T]):
def cancelled(self) -> bool: ...
def running(self) -> bool: ...
def done(sel... |
Update README.rst
Added link to Quartznet developer blog | @@ -49,6 +49,8 @@ NeMo consists of:
* Read NVIDIA `Developer Blog for example applications <https://devblogs.nvidia.com/how-to-build-domain-specific-automatic-speech-recognition-models-on-gpus/>`_
+* Read NVIDIA `Developer Blog for Quartznet ASR model <https://devblogs.nvidia.com/develop-smaller-speech-recognition-mode... |
Type the constructor of IntEnum and IntFlag
These should only accept integers or enum members. | @@ -45,6 +45,7 @@ class Enum(metaclass=EnumMeta):
class IntEnum(int, Enum):
value: int
+ def __new__(cls: Type[_T], value: Union[int, _T]) -> _T: ...
def unique(enumeration: _S) -> _S: ...
@@ -53,6 +54,7 @@ _auto_null: Any
# subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of en... |
api/nxtdevices: Update color method.
This shares the implementation with the PUP color sensors, so update accordingly. | @@ -81,9 +81,8 @@ class ColorSensor:
:returns:
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``,
- ``Color.RED``, ``Color.WHITE`` or ``None``.
- :rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is
- detected.
+ ``Color.RED``, ``Color.WHITE`` or ``Color.NONE``.
+ :rtype: :class:`Colo... |
Store HilbertIndex in DirectMatrixWrapper
The HilbertInidex class performs some computation during initialization,
so it should be stored between calls to DirectMatrixWrapper::Apply. | @@ -33,22 +33,23 @@ namespace netket {
template <class Operator, class WfType = Eigen::VectorXcd>
class DirectMatrixWrapper : public AbstractMatrixWrapper<Operator, WfType> {
const Operator& operator_;
+ HilbertIndex hilbert_index_;
size_t dim_;
public:
explicit DirectMatrixWrapper(const Operator& the_operator)
: opera... |
add few comments on java setting
add few comments on java jdtls setting sample. Clarify the fields that need to be changed based on the user env. | @@ -398,11 +398,11 @@ npm install -g flow-language-server
"-XX:+UseG1GC",
"-XX:+UseStringDeduplication",
"-jar",
- "PATH/TO/jdt-language-server-latest/plugins/org.eclipse.equinox.launcher_*.jar"
+ "PATH/TO/jdt-language-server-latest/plugins/org.eclipse.equinox.launcher_*.jar" // 1. replace the PATH/TO with your own 2. ... |
Fix missing screenshots bug in docs build
When building the docs, our sphinx code looks for a json file which
indexes the available screenshots.
The only avaiable error handling was for a decode error but the build
would crash if no json file was found at all.
Fixes | @@ -163,7 +163,7 @@ class QtileClass(SimpleDirectiveMixin, Directive):
try:
with open(index, "r") as f:
shots = json.load(f)
- except json.JSONDecodeError:
+ except (json.JSONDecodeError, FileNotFoundError):
shots = {}
widget_shots = shots.get(class_name.lower(), dict())
|
Update apt_oceanlotus.txt
Alias from discussion. | # Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/)
# See the file 'LICENSE' for copying permission
-# Aliases: apt32, apt-c-32, oceanlotus
+# Aliases: apt32, apt-c-32, oceanlotus, SectorF01
# Reference: https://www.fireeye.com/blog/threat-research/2017/05/cyber-espionage-apt32.html
|
Modify the group types date
Modify the group types date to the correct value | @@ -22,10 +22,13 @@ from tempest.tests.lib.services import base
class TestGroupTypesClient(base.BaseServiceTest):
FAKE_CREATE_GROUP_TYPE = {
"group_type": {
- "name": "group-type-001",
- "description": "Test group type 1",
- "group_specs": {},
+ "id": "6685584b-1eac-4da6-b5c3-555430cf68ff",
+ "name": "grp-type-001",
+ ... |
objectstore: get returns object not path
Change objectstore.get to return an object or None instead of a path. | @@ -264,12 +264,12 @@ class ObjectStore(contextlib.AbstractContextManager):
prefix=prefix,
suffix=suffix)
- @contextlib.contextmanager
def get(self, object_id):
- with Object(self) as obj:
- obj.base = object_id
- with obj.read() as path:
- yield path
+ if not self.contains(object_id):
+ return None
+
+ obj = self.new(... |
Update release instructions to include Zenodo citation update
Fixes: | @@ -227,6 +227,19 @@ Be sure to include the whl file as an attachment.
If there are unreleased notebooks, that are under testing (`NOTEBOOKS_DEPENDING_ON_UNRELEASED_FEATURES` is not empty in [dev_tools/notebooks/isolated_notebook_test.py](dev_tools/notebooks/isolated_notebook_test.py)), follow the steps in our [noteboo... |
Add iter method to BlockStore trait
The iter method Iterates through the BlockStore from the chainhead back,
returning references to Blocks. | @@ -31,11 +31,15 @@ pub trait BlockStore {
fn delete(&mut self, block_ids: Vec<String>) -> Result<Vec<Block>, BlockStoreError>;
fn put(&mut self, blocks: Vec<Block>) -> Result<(), BlockStoreError>;
+
+ fn iter<'a>(&'a self) -> Box<Iterator<Item = &'a Block> + 'a>;
}
#[derive(Default)]
pub struct InMemoryBlockStore {
bl... |
use propagate_names instead of propagate_names_for_reduction for cumsum and cumprod
Summary: Pull Request resolved: | @@ -168,7 +168,7 @@ Tensor cumsum(const Tensor& self, int64_t dim, c10::optional<ScalarType> dtype)
NoNamesGuard guard;
return at::_cumsum(integer_upcast(self, dtype), dim);
}();
- namedinference::propagate_names_for_reduction(result, self, dim, /*keepdim=*/true);
+ namedinference::propagate_names(result, self);
return... |
settings: Enable or disable delete limit setting before saving.
We enable or disable the delete limit setting immediately on
changing the "Who can delete their own message" dropdown
before saving the changes. | @@ -1197,6 +1197,22 @@ export function build_page() {
update_message_edit_sub_settings(is_checked);
});
+ $("#id_realm_delete_own_message_policy").on("change", (e) => {
+ const setting_value = Number.parseInt($(e.target).val(), 10);
+ const disable_limit_setting =
+ setting_value === settings_config.common_message_poli... |
Added the argument transform_input in docs of InceptionV3
Including the `transform_input` argument in the docs of inceptionV3 | @@ -23,6 +23,8 @@ def inception_v3(pretrained=False, **kwargs):
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
+ transform_input (bool): If True, preprocesses the input according to the method with which it
+ was trained on ImageNet. Default: *False*
"""
if pretrained:
if 'transform_input' no... |
Update tutorial.rst
Github link fixed for version 1.6.0 | @@ -4,4 +4,4 @@ Tutorial
The agate tutorial is now available in new-and-improved Jupyter Notebook format.
-Find it `on Github <https://github.com/wireservice/agate/blob/1.5.6/tutorial.ipynb>`_!
+Find it `on Github <https://github.com/wireservice/agate/blob/1.6.0/tutorial.ipynb>`_!
|
Fixed import error in environments __init__
Failing to import atari failed also to import Gym
Now atari and gym are independent | @@ -3,19 +3,25 @@ __extras__ = []
from .environment import Environment, MDPInfo
try:
Atari = None
- Gym = None
from .atari import Atari
__extras__.append('Atari')
+except ImportError:
+ pass
+
+try:
+ Gym = None
from .gym_env import Gym
__extras__.append('Gym')
except ImportError:
pass
+
try:
Mujoco = None
from .mujoco... |
Update device.py
Black tool related formatting | @@ -1110,6 +1110,7 @@ class Device(_Connection):
or kwargs.get("cs_user") is not None
):
from jnpr.junos.console import Console
+
if kwargs.get("conn_open_timeout", None):
# Console already supports timeout while opening connections
# via `timeout` parameter. Refer `Console` documentation
|
travis v2
Attempting to get build to work. | language: python
-# Setting sudo to false opts in to Travis-CI container-based builds.
-sudo: false
-
python:
- 2.7
- 3.6
@@ -22,6 +19,7 @@ install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- pip install coveralls
+ - pip install -U pip
- python setup.py install
script: $CMD
|
Downloader middleware: raise _InvalidOutput
Instead of AssertionError, to make it consistent with spider middleware | @@ -7,6 +7,7 @@ import six
from twisted.internet import defer
+from scrapy.exceptions import _InvalidOutput
from scrapy.http import Request, Response
from scrapy.middleware import MiddlewareManager
from scrapy.utils.defer import mustbe_deferred
@@ -35,9 +36,9 @@ class DownloaderMiddlewareManager(MiddlewareManager):
def... |
swarming: update setup_bigquery.sh
completed_time was renamed to end_time, and created_time never existed.
Tested by running against a dummy Swarming instance. | @@ -84,7 +84,7 @@ fi
if ! (bqschemaupdater -force \
-message swarming.v1.TaskRequest \
-table ${APPID}.swarming.task_requests \
- -partitioning-field created_time); then
+ -partitioning-field create_time); then
echo ""
echo ""
echo "Oh no! You may need to restart from scratch. You can do so with:"
@@ -97,7 +97,7 @@ fi
... |
TST: added download date range unit test
Added a unit test for download date requests that
result in empty date ranges. | @@ -560,13 +560,26 @@ class TestBasics():
def test_download_recent_data(self, caplog):
with caplog.at_level(logging.INFO, logger='pysat'):
self.testInst.download()
- # Tells user that recent data will be downloaded
+
+ # Ensure user was told that recent data will be downloaded
assert "most recent data by default" in ca... |
[tests/brightness] Disable failing test
Honestly: I don't know why Travis is failing on this test, it works fine
on my machine with Python 2.7. Therefore, I will disable this test until
I can get to the bottom of it. | @@ -44,15 +44,15 @@ class TestBrightnessModule(unittest.TestCase):
mocks.mouseEvent(stdin=self.stdin, button=WHEEL_DOWN, inp=self.input, module=module)
self.popen.assert_call("xbacklight -10%")
- @mock.patch('bumblebee.modules.brightness.open', create=True)
- def test_update(self, mock_open):
- mock_open.side_effect = ... |
[internal] fix starts_with -> startswith
[ci skip-rust]
[ci skip-build-wheels] | @@ -108,7 +108,7 @@ class RunTracker:
return [
backend
for backend in self._all_options.for_global_scope().backend_packages
- if backend.starts_with("pants.backend.")
+ if backend.startswith("pants.backend.")
]
def start(self, run_start_time: float, specs: list[str]) -> None:
|
Update http to https
modify http link to https link | @@ -59,6 +59,6 @@ Search Trove Documentation
.. _Trove Wiki: https://wiki.openstack.org/wiki/Trove
.. _Trove: https://git.openstack.org/cgit/openstack/trove
.. _Trove Client: https://git.openstack.org/cgit/openstack/python-troveclient
-.. _Trove API Documentation: http://developer.openstack.org/api-ref/database/
+.. _T... |
apparently .min() .max() methods are faster than np.min()
that speeds up unit_check which is sometimes in a tight loop,
so the speed up can be ~ 25% | @@ -331,7 +331,7 @@ def unitcheck(u, nonbounded=None):
if nonbounded is None:
# No periodic boundary conditions provided.
- return np.min(u) > 0 and np.max(u) < 1
+ return u.min() > 0 and u.max() < 1
else:
# Alternating periodic and non-periodic boundary conditions.
unb = u[nonbounded]
|
Update README.md
fix links in readme | @@ -8,13 +8,13 @@ Sample histology images from a trained histology image model.
This examples generates 32 images (256px) combined into one output file.
-
+
## Model
The code is from a PyTorch implementation of VQ-VAE-2:... |
fix(mediation): grant handler exceptions
Raise HandlerException on record missing | from .....messaging.base_handler import (
BaseHandler, BaseResponder, HandlerException, RequestContext
)
+from .....storage.error import StorageNotFoundError
from ..manager import MediationManager
from ..messages.mediate_grant import MediationGrant
from ..models.mediation_record import MediationRecord
@@ -19,10 +20,16 ... |
Update Max9744.py
Fixed some spelling errors | -# Script to change the voulme of the Max8744
+# Script to change the volume of the Max9744
# It's similar to the pcf8574 in that it only writes a single byte
-# The voume is controlled by writing a value between 0 and 63
+# The volume is controlled by writing a value between 0 and 63
volume = 16
arduino = Runtime.star... |
client: fix an incorrect title in a task
This task would be run on both containerized *and* non containerized
deployment.
Let's have a proper title to avoid confusion. | ---
-- name: copy ceph admin keyring when non containerized deployment
+- name: copy ceph admin keyring
copy:
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
dest: "/etc/ceph/"
|
Do Python version check in init
* Do Python version check in init
This does the Python version check in a similar manner as NumPy and SciPy equivilent checks.
* Fix pylint issues
* Pylint 10/10 | # -*- coding: utf-8 -*-
# pylint: disable=wrong-import-order
+# pylint: disable=wrong-import-position
# Copyright 2017 IBM RESEARCH. All Rights Reserved.
#
# =============================================================================
"""Main QISKit public functionality."""
+
+import sys
+# Check for Python version 3.... |
buildCompileCommands.py : Fix for Python 3
And remove hardcoded path. | @@ -16,7 +16,7 @@ import subprocess
# Make SCons tell us everything it would do to build Gaffer
subprocess.check_call( [ "scons", "--clean" ] )
-sconsOutput = subprocess.check_output( [ "scons", "build", "--dry-run", "--no-cache" ] )
+sconsOutput = subprocess.check_output( [ "scons", "build", "--dry-run", "--no-cache" ... |
fix: ironic_console group is optional
Without '|d' it fails at haproxy configuration | @@ -382,7 +382,7 @@ haproxy_nova_console_http_mode: "{{ not (nova_console_user_ssl_cert is defined
and nova_console_user_ssl_key is defined) }}"
haproxy_nova_console_service:
haproxy_service_name: nova_console
- haproxy_backend_nodes: "{{ groups['nova_console'] | default([]) + ((ironic_console_type == nova_console_type... |
Conditionally reconnect RobustConnection
RobustConnection was reconnecting whenever the connection was lost,
even if the connection had been closed on pupose by invoking
`connection.close()`. The reconnect code now tests if a reconnect
attempt should be made at all by consulting `self._closed`. | @@ -75,6 +75,9 @@ class RobustConnection(Connection):
super()._on_connection_close(connection, closing)
+ if self._closed:
+ return
+
log.info(
"Connection to %s closed. Reconnecting after %r seconds.",
self,
|
reexport names in 3/dateutil.tz
This was missed in and should completely fix | -from .tz import tzutc, tzoffset, tzlocal, tzfile, tzrange, tzstr, tzical, gettz, datetime_exists, datetime_ambiguous
+from .tz import (
+ tzutc as tzutc,
+ tzoffset as tzoffset,
+ tzlocal as tzlocal,
+ tzfile as tzfile,
+ tzrange as tzrange,
+ tzstr as tzstr,
+ tzical as tzical,
+ gettz as gettz,
+ datetime_exists as ... |
Update dependencies.rst
typos etc. | Install Python dependencies
---------------------------
-After you cloned the RDMO repository, change to the created directory, create a ``virtualenv <https://virtualenv.readthedocs.org>``_ and install the required dependencies:
+After you have cloned the RDMO repository, change to the created directory, create a ``vir... |
Adding two incidents in Orlando
Couldn't find date for first incident, not entirely sure if second one belongs. | @@ -7,3 +7,22 @@ It is seen in the video that while the people were protesting, a few cops tried
**Links**
* https://twitter.com/thickliljawn/status/1267239498083110913
+
+
+## Orlando
+
+### Police fire on protesters outside city hall | Date unknown
+
+Police open fire on protesters outside of city hall with teargas, ... |
Update faq.rst
Fixed grammar | @@ -195,7 +195,7 @@ How can I create an open source derivative work of Mattermost?
If you're looking to customize the look and feel of Mattermost, see `documentation on customization <https://github.com/mattermost/docs/issues/1006>`_. For advanced customization, the user experience of the system is available in differe... |
encode unicode data
This partially reverts | @@ -224,6 +224,8 @@ def simple_post(domain, url, data, *, headers, auth, verify,
POST with a cleaner API, and return the actual HTTPResponse object, so
that error codes can be interpreted.
"""
+ if isinstance(data, str):
+ data = data.encode('utf-8') # can't pass unicode to http request posts
default_headers = CaseInse... |
Simplify code to set region and partition values
Validate the partition arg using the `choices` kwarg in `add_argument`.
Select the main region for the given partition using the dict defined in
the common module. | import json
import re
-import sys
from collections import OrderedDict
import argparse
import boto3
from botocore.exceptions import ClientError
+from common import PARTITION_TO_MAIN_REGION, PARTITIONS
+
DISTROS = OrderedDict(
[
("alinux", "amzn"),
@@ -341,7 +342,9 @@ def parse_args():
"--json-regions", type=str, help="p... |
Skip noobaa health check for OCP 4.10 + ODF 4.9 Live deploy
Reason: Due to bug
noobaa-default-backing-store and noobaa-default-bucket-class in rejected state | @@ -26,6 +26,7 @@ from ocs_ci.ocs.resources import ocs, storage_cluster
import ocs_ci.ocs.constants as constant
from ocs_ci.ocs import defaults
from ocs_ci.ocs.resources.mcg import MCG
+from ocs_ci.utility import version
from ocs_ci.utility.retry import retry
from ocs_ci.utility.utils import (
TimeoutSampler,
@@ -308,6... |
Fix min and max functions
remove | @@ -177,11 +177,7 @@ class BaseFunctions(ABC):
series = self.to_float(series)
if string or str(series.dtype) in self.constants.STRING_TYPES:
- series.dropna(inplace=True)
- try:
- return series.min()
- except:
- return self.to_string(series).min()
+ return self.to_string(series.dropna()).min()
else:
return series.min()... |
Use match rt. cast+then
In SimpleTypeRef.check_correctness_pre. Also add some comments. | @@ -2098,11 +2098,17 @@ class SimpleTypeRef(TypeRef):
@langkit_property(return_type=T.SemanticResult.array)
def check_correctness_pre():
+
d = Var(Entity.type_name.referenced_decl)
+
return d.result_ref.then(
- lambda d: d.cast(T.TypeDecl).then(
- lambda _: No(T.SemanticResult.array),
- default_val=Entity.error(S("Inva... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.