message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
argparse: various fixes
add_subparsers uses keyword-only args
required parameter is new in py37 | @@ -135,7 +135,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
def parse_args(self, *, namespace: _N) -> _N: ...
if sys.version_info >= (3, 7):
- def add_subparsers(self, title: str = ...,
+ def add_subparsers(self, *, title: str = ...,
description: Optional[str] = ...,
prog: str = ...,
parser_class: Ty... |
Update opennms-log4j-jndi-rce.yaml
Resolve conflict | @@ -53,4 +53,4 @@ requests:
regex:
- '([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print extracted ${hostName} in output
-# Enhanced by cs on 2022/10/06
+# Enhanced by cs on 2022/10/24
|
Build manylinux2010 wheels instead of older manylinux1
See | @@ -4,8 +4,8 @@ TESTOPTS?=
REPO = git://github.com/cython/cython.git
VERSION?=$(shell sed -ne 's|^__version__\s*=\s*"\([^"]*\)".*|\1|p' Cython/Shadow.py)
-MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux1_x86_64
-MANYLINUX_IMAGE_686=quay.io/pypa/manylinux1_i686
+MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux2010_x86_64
+MA... |
Remove redundant log option
This option is included in edalize after its update so it's not necessary here | @@ -510,8 +510,6 @@ class NextPnrInterchangeNoSynth(Toolchain):
self.fasm2bels = False
self.tool_options = dict()
- self.nextpnr_log = 'nextpnr.log'
-
def get_share_data(self):
out = subprocess.run(
['find', '.', '-name', self.toolchain_bin], stdout=subprocess.PIPE
@@ -597,9 +595,7 @@ class NextPnrInterchangeNoSynth(To... |
fix: Resolves ValueError when calling "manim cfg write -l user"
Percent signs added to parser needed to be re-escaped before writing
back to the parser. | @@ -201,11 +201,13 @@ modify write_cfg_subcmd_input to account for it.""",
)
temp = input()
- default[key] = temp
+ default[key] = temp.replace("%", "%%")
default = replace_keys(default) if category == "logger" else default
- parser[category] = dict(default)
+ parser[category] = {
+ i: v.replace("%", "%%") for i, v in ... |
VectorDataWidget : Support Quaternions
Quatf and Quatd | @@ -1038,6 +1038,31 @@ _DataAccessor.registerType( IECore.V3iVectorData.staticTypeId(), _CompoundDataAc
_DataAccessor.registerType( IECore.V3fVectorData.staticTypeId(), _CompoundDataAccessor )
_DataAccessor.registerType( IECore.V3dVectorData.staticTypeId(), _CompoundDataAccessor )
+class _QuatDataAccessor( _CompoundDat... |
Remove eta from list of packages installed by fiftyone
This would cause uninstalling fiftyone to uninstall eta, but leave behind its metadata, causing pip to think eta was still installed | @@ -41,8 +41,7 @@ setup(
author_email="info@voxel51.com",
url="https://github.com/voxel51/fiftyone",
license="",
- packages=find_packages() + ["eta"],
- package_dir={"eta": "eta/eta"},
+ packages=find_packages(),
include_package_data=True,
classifiers=[
"Operating System :: MacOS :: MacOS X",
|
Better flexbox sizing for metadata entries
Summary: Fixes (compromise solution)
Test Plan:
Manual
{F34647}
{F34646}
{F34645}
Reviewers: #ft, schrockn, bengotow | @@ -16,8 +16,8 @@ export const MetadataEntries: React.FunctionComponent<{
<tr key={idx} style={{ display: "flex" }}>
<td
style={{
- flex: "0 0 auto",
- width: "max-content"
+ flex: 1,
+ maxWidth: "max-content"
}}
>
{item.label}
@@ -141,4 +141,5 @@ const MetadataEntriesTable = styled.table`
border-right: 1px solid #dbc5... |
Update Minnesota.md
Closes
Closes
Closes
Closes | @@ -175,6 +175,68 @@ geolocation: 45.0766155, -93.3004313
* https://twitter.com/BGOnTheScene/status/1382521300065849344
+### Police throw stun grenades at protesters | 2021-04-16
+
+Police behind a chain link fence throw stun grenades over the fence into a crowd of gathered protesters who appear to be standing around c... |
Update local setup docs
Remove dependency on python-venv and python-pip
update how to run test | Make sure you have these things installed on your system:
* Git
-* Python 3.9.x
- * python3-venv \(to setup virtual enviroment\)
- * python3-pip \(to install python packages\)
+* Python 3.10.x
* PostgreSQL 12.x
- * libpq-dev \(on Linux at least\)
+ * libpq-dev (on Linux at least)
* Apache or Nginx
* Node 16.x
@@ -76,7 ... |
Arithmetic: for symbol inputs, make sure the operation is concatenation
TN: minor | @@ -3240,6 +3240,7 @@ class Arithmetic(AbstractExpression):
r = construct(self.r)
if l.type == Symbol and r.type == Symbol:
+ assert self.op == '&'
return BasicExpr(
'Find (Self.Unit.TDH.Symbols, ({}.all & {}.all))',
Symbol,
|
support the lnurl fallback scheme.
completing | @@ -329,9 +329,10 @@ new Vue({
if (this.parse.data.request.startsWith('lightning:')) {
this.parse.data.request = this.parse.data.request.slice(10)
- }
- if (this.parse.data.request.startsWith('lnurl:')) {
+ } else if (this.parse.data.request.startsWith('lnurl:')) {
this.parse.data.request = this.parse.data.request.slic... |
Updated contributing.rst
Rectified grammatical errors | @@ -6,7 +6,7 @@ Contributing to Scrapy
.. important::
- Double check you are reading the most recent version of this document at
+ Double check that you are reading the most recent version of this document at
https://doc.scrapy.org/en/master/contributing.html
There are many ways to contribute to Scrapy. Here are some o... |
Add etcd_volume_size parameter in coreos template
Without those fixes new cluster fails with message:
ERROR: The Parameter (etcd_volume_size) was not defined in template.
Task:
Story: 20337 | @@ -294,6 +294,12 @@ parameters:
domain name for cluster DNS
default: "cluster.local"
+ etcd_volume_size:
+ type: number
+ description: >
+ size of the cinder volume for etcd storage
+ default: 0
+
openstack_ca:
type: string
hidden: true
|
test_runner: Fix incorrect type for enforce_timely_test_completion.
Our TestResult objects are always actually TextTestResults. | @@ -96,7 +96,7 @@ def report_slow_tests() -> None:
print(' This may no longer be true: %s' % (slowness_reason,))
def enforce_timely_test_completion(test_method: Any, test_name: str,
- delay: float, result: TestResult) -> None:
+ delay: float, result: "TextTestResult") -> None:
if hasattr(test_method, 'slowness_reason')... |
Load tags in docker-run-dev
Fix | @@ -20,6 +20,7 @@ run-uvicorn: ## Runs uvicorn (ASGI) server in managed mode
docker-run-dev: ## Runs dev server in docker
python ./utils/wait_for_postgres.py
python manage.py migrate
+ python manage.py update_tags
python manage.py runserver 0.0.0.0:8000
docker-run-production: ## Runs production server in docker
|
Fix exception.
time_string -> time_data | @@ -78,11 +78,11 @@ def _format_24h(h: int, m: int, s: int) -> str:
return text
-def thai_time(time_string: Union[time, datetime, str], fmt: str = "24h") -> str:
+def thai_time(time_data: Union[time, datetime, str], fmt: str = "24h") -> str:
"""
Convert time to Thai words.
- :param str time_string: time input, can be a... |
cirrus ci: change cache key for pip dependencies
the cache should be considered stale if requirements.txt changes | @@ -30,7 +30,7 @@ task:
ELECTRUM_PYTHON_NAME: pypy3
pip_cache:
folder: ~/.cache/pip
- fingerprint_script: echo $ELECTRUM_IMAGE && cat $ELECTRUM_REQUIREMENTS
+ fingerprint_script: echo $ELECTRUM_IMAGE && cat $ELECTRUM_REQUIREMENTS_CI && cat $ELECTRUM_REQUIREMENTS
populate_script: mkdir -p ~/.cache/pip
electrum_cache:
fo... |
core: fix profiling
* SIGTERM safety net prevents profiler from writing results, so disable
it when profiling is active.
* fix warning corrupting stream when profiling=True | @@ -43,8 +43,13 @@ import sys
import threading
import time
import traceback
+import warnings
import zlib
+# TODO: usage of 'import' after setting __name__, but before fixing up
+# sys.modules generates a warning. This happens when profiling = True.
+warnings.filterwarnings('ignore',
+ "Parent module 'mitogen' not found... |
emoji.js: Add `active_realm_emojis` dict.
This dict will hold all the realm emojis which have not been deactivated. | @@ -4,6 +4,7 @@ var exports = {};
exports.emojis = [];
exports.realm_emojis = {};
+exports.active_realm_emojis = {};
exports.emojis_by_name = {};
exports.emojis_name_to_css_class = {};
exports.emojis_by_unicode = {};
@@ -15,6 +16,7 @@ var zulip_emoji = {
emoji_name: 'zulip',
emoji_url: '/static/generated/emoji/images/e... |
Update README.md
Updated for Boltcard NFC Card Creator v0.1.1 | @@ -21,10 +21,7 @@ The key #00, K0 (also know as auth key) is skipped to be used as authentificatio
***Always backup all keys that you're trying to write on the card. Without them you may not be able to change them in the future!***
## Setting the card - Boltcard NFC Card Creator (easy way)
-
-- Read the card with the ... |
Create a dedicated ResolvedExpression subclass for .is_visible_from
TN: | @@ -295,10 +295,17 @@ def is_visible_from(self, referenced_env, base_env):
:param AbstractExpression referenced_env: The environment referenced
from base_env, for which we want to check visibility.
"""
- return CallExpr('Is_Visible', 'Is_Visible_From', T.BoolType,
+ return IsVisibleFromExpr(referenced_env, base_env, ab... |
Fix typo in error message
"The package_file '+ package_file + ' should ends with..." replaced by "The package_file '+ package_file + ' should end with..." | @@ -381,7 +381,7 @@ class Client(object):
with open(package_file, 'r') as f:
return yaml.safe_load(f)
else:
- raise ValueError('The package_file '+ package_file + ' should ends with one of the following formats: [.tar.gz, .tgz, .zip, .yaml, .yml]')
+ raise ValueError('The package_file '+ package_file + ' should end wit... |
SceneInspector : Make inheritance/history views more discoverable
This is another useful feature that users often don't know about. | @@ -785,7 +785,13 @@ class DiffRow( Row ) :
diffWidget.contextMenuSignal().connect( Gaffer.WeakMethod( self.__contextMenu ) ),
] )
- GafferUI.Spacer( IECore.V2i( 0 ), parenting = { "expand" : True } )
+ GafferUI.Spacer( IECore.V2i( 1, 20 ), parenting = { "expand" : True } )
+
+ GafferUI.MenuButton(
+ image = "gear.png"... |
Disables TestNN.test_CTCLoss_1d_target
Summary:
A variant of this test is flaky in CI. See
This disables the entire test until a fix is determined.
Pull Request resolved: | @@ -3277,19 +3277,21 @@ new_criterion_tests = [
check_gradgrad=False,
check_half=False,
),
- dict(
- module_name='CTCLoss',
- desc='1d_target',
- constructor_args=(14,), # blank=14
- extra_args=([50, 50, 50], [30, 25, 20]), # input_lengths, target_lengths
- input_fn=lambda: torch.randn(50, 3, 15).log_softmax(2),
- targ... |
Add experimental GPUTreeSHAP to API doc
Authors:
- Philip Hyunsu Cho (https://github.com/hcho3)
Approvers:
- Dante Gama Dessavre (https://github.com/dantegd)
URL: | @@ -584,3 +584,8 @@ Linear Models
-------------
.. autoclass:: cuml.experimental.linear_model.Lars
:members:
+
+Model Explainability
+--------------------
+.. autoclass:: cuml.experimental.explainer.TreeExplainer
+ :members:
|
Modified get_total_followers_or_followings
Use `with StringIO` if `to_file` is `None` | @@ -586,6 +586,8 @@ class API(object):
usernames=False,
to_file=None,
overwrite=False):
+ from io import StringIO
+
if which == 'followers':
key = 'follower_count'
get = self.get_user_followers
@@ -624,8 +626,7 @@ class API(object):
get(user_id, next_max_id)
last_json = self.last_json
try:
- if to_file is not None:
- f... |
Fixed name of global variable
Changed the name ssl_port to DD_PORT | @@ -36,12 +36,6 @@ metadata = {
"ddsourcecategory": "aws",
}
-
-try:
- ssl_port = os.environ['DD_PORT']
-except Exception:
- ssl_port = 10516
-
cloudtrail_regex = re.compile('\d+_CloudTrail_\w{2}-\w{4,9}-\d_\d{8}T\d{4}Z.+.json.gz$', re.I)
@@ -49,6 +43,10 @@ DD_SOURCE = "ddsource"
DD_CUSTOM_TAGS = "ddtags"
DD_SERVICE = ... |
Update android_roamingmantis.txt
Too similar. | @@ -12446,9 +12446,9 @@ www\.[a-z]{1}\-[a-z]{1,3}\.top$
www\.[a-z]{2}\-[a-z]{2,3}\.(top|club)$
apple\-icloud\.[a-z]{3}\-japan\.com
\b(au|cat|cloudsbox|epos|jibun|jnb|jppost|
-kinggate|kuroneko|mailsa|mizuho|myau|mydocomo|mufg|jibun|netbk|nittsu|nttdocomo|post|poste|rakuten|nzpost|sagawa|samurai|sasekr|smbc|softbank|sta... |
Image: Catch glance image not found exception
If we run a container from a glance image uuid, zun will fail as 500
error.
Fix this by catching NotFound exception while try to get image by uuid
Closes-Bug: | # See the License for the specific language governing permissions and
# limitations under the License.
+from glanceclient.common import exceptions as glance_exceptions
from oslo_utils import uuidutils
from zun.common import clients
@@ -45,9 +46,13 @@ def find_images(context, image_ident, exact_match):
glance = create_g... |
fix line mode for circle model
mode='line' was not working before and it made the example fail. | @@ -13,7 +13,7 @@ class Circle(Mesh):
self.vertices.append(point.world_position)
if mode == 'line': # add the first point to make the circle whole
- self.vertices.append(verts[0])
+ self.vertices.append(self.vertices[0])
destroy(origin)
super().__init__(vertices=self.vertices, mode=mode, **kwargs)
|
Fix formatting of the changelog
RTD didn't render it properly previously.
Refs | Changelog
=========
+===========
Development
===========
- (Fill this out as you fix issues and develop your features).
@@ -19,16 +20,19 @@ Development
- ``ListField`` now accepts an optional ``max_length`` parameter. #2110
- The codebase is now formatted using ``black``. #2109
+=================
Changes in 0.18.2
====... |
(new-config-parsing-9) Fix Alex's bash bug
Summary:
This PR confirms that config mapping
bug is fixed by this stack.
Depends on D1674
Test Plan: BK
Reviewers: alangenfeld, nate
Subscribers: alangenfeld | import pytest
from dagster_bash import bash_command_solid, bash_script_solid
-from dagster import DagsterExecutionStepExecutionError, execute_solid
+from dagster import DagsterExecutionStepExecutionError, composite_solid, execute_solid
def test_bash_command_solid():
@@ -47,3 +47,22 @@ def test_bash_script_solid():
envi... |
Updated windows.py message when Wix is not found.
Added recommendation to set environment variable when Wix Toolset is installed but not found. | @@ -171,11 +171,11 @@ class windows(app):
print(" * Looking for WiX Toolset...")
wix_path = os.getenv('WIX')
if not wix_path:
- print("Couldn't find WiX Toolset. Please visit:")
+ print("Couldn't find WiX Toolset. Please install the latest stable release from:")
print()
print(" http://wixtoolset.org/releases/")
print()... |
[contrib] Skip peer_memory test if world_size is not a multiple of 2
when world_size < 1 or world_size is odd | @@ -284,6 +284,11 @@ class TestPeerMemory(NcclDistributedTestBase):
def world_size(self) -> int:
return min(torch.cuda.device_count(), 2)
+ # TODO(crcrpar): Check if `world_size` being multiple of 2 is must.
+ def _check_world_size_and_may_skip(self) -> None:
+ if not (self.world_size >= 2 and self.world_size % 2 == 0)... |
Catch TypeError when not all required arguments are passed to a runner. Display error and usage.
Conflicts:
* salt/client/mixins.py | @@ -383,7 +383,11 @@ class SyncClientMixin(object):
# Initialize a context for executing the method.
with tornado.stack_context.StackContext(self.functions.context_dict.clone):
- data['return'] = self.functions[fun](*args, **kwargs)
+ func = self.functions[fun]
+ try:
+ data['return'] = func(*args, **kwargs)
+ except T... |
Add issues to backlog method added
Implemented similar to the add issue to sprint method. | @@ -3588,6 +3588,21 @@ api-group-workflows/#api-rest-api-2-workflow-search-get)
# Agile(Formerly Greenhopper) REST API implements
# Resource: https://docs.atlassian.com/jira-software/REST/7.3.1/
#######################################################################
+ def add_issues_to_backlog(self, sprint_id, issues):... |
Improve efficiency of storage cleaning in mixed media envs -
documentation
Change
improved efficiency of storage cleaning in hybrid NVMe + HDD
environments by adding `erase_devices_express` clean step. This is a
follow up change adding the documentation for this feature.
Story:
Task: 43498 | @@ -73,6 +73,60 @@ cleaning steps.
See `How do I change the priority of a cleaning step?`_ for more information.
+Storage cleaning options
+------------------------
+
+Clean steps specific to storage are ``erase_devices``,
+``erase_devices_metadata`` and (added in Yoga) ``erase_devices_express``.
+
+``erase_devices`` a... |
copy to __deepcopy__
Change from overriding `copy` to `__deepcopy__` as deepcopy is used in
link `chainer/link.py:435` | @@ -9,6 +9,7 @@ from chainermn.functions import batch_normalization as \
chainermn_batch_normalization
import numpy
+import copy
class MultiNodeBatchNormalization(link.Link):
@@ -130,14 +131,14 @@ class MultiNodeBatchNormalization(link.Link):
"""
self.N = 0
- def copy(self, mode='share'):
+ def __deepcopy__(self, memo)... |
2021 Hyundai Sonata N Line: Fingerprint
* 2021 Hyundai Sonata N Line: Fingerprint
* Force FPv2: 2021 Hyundai Sonata N Line
* Revert "Force FPv2: 2021 Hyundai Sonata N Line"
This reverts commit
* remove too short fw versions | @@ -220,6 +220,7 @@ FW_VERSIONS = {
b'\xf1\x00DN8_ SCC FHCUP 1.00 1.01 99110-L1000 ',
b'\xf1\x00DN89110-L0000 \xaa\xaa\xaa\xaa\xaa\xaa\xaa \xf1\xa01.00\xaa\xaa\xaa\xaa\xaa\xaa\xaa\x00\x00\x00',
b'\xf1\x00DN8 1.00 99110-L0000 \xaa\xaa\xaa\xaa\xaa\xaa\xaa \xf1\xa01.00\xaa\xaa\xaa',
+ b'\xf1\x00DN8 1.00 99110-L0000 \xaa\x... |
inte-tests: enable external ssl
In cloudify-cosmo/cloudify-manager-install#1323 we made docker managers
don't use external ssl by default. But in these tests, we do expect
the client to be using ssl. So let's enable it. | @@ -12,6 +12,7 @@ def run_manager(image, service_management, resource_mapping=None,):
manager:
security:
admin_password: admin
+ ssl_enabled: true
validations:
skip_validations: true
sanity:
|
Update avcodecs.py
could it be that easy | @@ -404,7 +404,7 @@ class VideoCodec(BaseCodec):
vfstring = ""
for line in vf:
- vfstring = "%s;%s" % (vfstring, line)
+ vfstring = "%s,%s" % (vfstring, line)
optlist.extend(['-vf', vfstring[1:]])
|
Added jupyter-server-proxy to install_requires
Need jupyter-server-proxy to setup websocket connections on JupyterHub and Binder. | @@ -18,7 +18,7 @@ except ImportError:
import versioneer
-install_requires = ['jupyter', 'numpy', 'ipykernel',
+install_requires = ['jupyter', 'jupyter-server-proxy', 'numpy', 'ipykernel',
'autobahn>=18.8.2']
if sys.version_info.major == 3 and sys.version_info.minor >= 5:
|
Increase timeout for taskcat version check
Set timeout 5 seconds
Fixes: | @@ -147,7 +147,7 @@ def get_pip_version(url):
"""
Given the url to PypI package info url returns the current live version
"""
- return requests.get(url, timeout=0.1).json()["info"]["version"]
+ return requests.get(url, timeout=5.0).json()["info"]["version"]
def get_installed_version():
|
Prepare 2.0.1rc4 (again).
The release of `2.0.1rc4` was paused while some broken windows were fixed. It can now be resumed.
[ci skip-rust] | @@ -6,12 +6,24 @@ This document describes releases leading up to the ``2.0.x`` ``stable`` series.
See https://www.pantsbuild.org/v2.0/docs/release-notes-2-0 for an overview of the changes in this release, and
https://www.pantsbuild.org/docs/plugin-upgrade-guide for a plugin upgrade guide.
-2.0.1rc4 (12/09/2020)
+2.0.1r... |
Update README.md
Added 2020 Honda Accord Hybrid | @@ -67,7 +67,7 @@ Supported Cars
| Acura | ILX 2016-18 | AcuraWatch Plus | openpilot | 25mph<sup>1</sup> | 25mph |
| Acura | RDX 2016-18 | AcuraWatch Plus | openpilot | 25mph<sup>1</sup> | 12mph |
| Honda | Accord 2018-19 | All | Stock | 0mph | 3mph |
-| Honda | Accord Hybrid 2018-19 | All | Stock | 0mph | 3mph |
+| Ho... |
feat: better error message for missing mesh manifests
Now prints when using vol.save_mesh(...):
Segment ID(s) $SEGIDS are missing corresponding mesh manifests.
Aborted. | @@ -1029,13 +1029,17 @@ class CloudVolume(object):
yield chunkimg, spt, ept
+ def _mesh_manifest_path(self, segid):
+ mesh_dir = self.info['mesh']
+ mesh_json_file_name = str(segid) + ':0'
+ return os.path.join(mesh_dir, mesh_json_file_name)
+
def get_mesh(self, segid):
"""Download the raw mesh fragments for this seg I... |
Standalone: Fixup QML path for at least Linux
* Was working on Windows, but we better enforce the path, because on some Linux
platforms, this wasn't working. | @@ -452,6 +452,12 @@ QCoreApplication.setLibraryPaths(
)
]
)
+
+os.environ["QML2_IMPORT_PATH"] = os.path.join(
+ os.path.dirname(__file__),
+ "qml"
+)
+
""" % {
"package_name": full_name
}
|
left_sidebar: Move "Recent topics" higher in the sidebar.
This should increase its visual priority in the UI. We plan to move
"Private messages" to a different component more similar to STREAMS
soon.
Fixes | </a>
<span class="arrow all-messages-sidebar-menu-icon hidden-for-spectators"><i class="zulip-icon zulip-icon-ellipsis-v-solid" aria-hidden="true"></i></span>
</li>
+ <li class="top_left_recent_topics top_left_row" title="{{t 'Recent topics' }} (t)">
+ <a href="#recent_topics">
+ <span class="filter-icon">
+ <i class="... |
Update conf.json
fixed azure WAF test's instance | },
{
"integrations": "AzureWAF",
+ "instance_names": "azure_waf_prod",
"playbookID": "Azure WAF - Test",
"fromversion": "5.0.0"
},
|
UI: Data files are an option also for module mode
* This is for commercial users only, since it will require embedding
them, but the description was misleading to them. | @@ -389,7 +389,7 @@ times. Default empty.""",
parser.add_option_group(follow_group)
-data_group = OptionGroup(parser, "Data files for standalone/onefile mode")
+data_group = OptionGroup(parser, "Data files")
data_group.add_option(
"--include-package-data",
|
[dagit] Correct Runs top nav icon
Summary: I accidentally had the wrong icon in place for the top nav on `/instance/runs`.
Test Plan: View page, verify proper icon.
Reviewers: catherinewu | @@ -45,7 +45,7 @@ export const RunsRoot: React.FunctionComponent<RouteComponentProps> = () => {
return (
<RunsQueryRefetchContext.Provider value={{refetch: queryResult.refetch}}>
<ScrollContainer>
- <TopNav breadcrumbs={[{icon: 'outdated', text: 'Runs'}]} />
+ <TopNav breadcrumbs={[{icon: 'history', text: 'Runs'}]} />
... |
Markdown edit
[ci skip] | [](https://travis-ci.org/urschrei/pyzotero) [](https://coveralls.io/github/urschrei/pyzotero?branch=dev) [:
repository.writeall()
- # Copying metadata to live repository not done here, as it is not tested
- # or worked with further in the tutorial (so we'd just copy and then
- # delete.)
+ # Simulate the following shell command:
+ ## $ cp -r "repository/metadata.sta... |
update development docs to only recommend fnm
this works better for windows, is faster and avoids confusion by recommending one thing only | @@ -14,7 +14,7 @@ If you'd prefer to set up all the components manually, read on. These instructio
## Setting up the Wagtail codebase
-The preferred way to install the correct version of Node is to use [Node Version Manager (nvm)](https://github.com/nvm-sh/nvm) or [Fast Node Manager (fnm)](https://github.com/Schniz/fnm... |
Fix 'ia' locale.
This unblocks our docker and travis builds. | @@ -2539,7 +2539,7 @@ msgid "%s responded with %s (%s)."
msgstr "%s ha respondite con %s (%s)."
#, python-format
-msgid "Connection to \"%s\" timed out."
+msgid "Connection to \"%s\" timed out.\n"
msgstr "Connexion a \"%s\" foras tempore limite.\n"
#, python-format
|
Better defaults values in thrift spec
Summary: title | @@ -7,7 +7,7 @@ struct AdditionalFeatureTypes {
struct RLParameters {
1: double gamma = 0.9,
2: double epsilon = 0.1,
- 3: double target_update_rate = 0.01,
+ 3: double target_update_rate = 0.001,
4: i32 reward_burnin = 1,
5: bool maxq_learning = true,
6: map<string, double> reward_boost,
@@ -28,7 +28,7 @@ struct RLPar... |
org settings: Add typeahead to user group member inputs.
Fixes | @@ -59,6 +59,39 @@ exports.populate_user_groups = function () {
}
}
+ var input = pill_container.children('.input');
+
+ input.typeahead({
+ items: 5,
+ fixed: true,
+ dropup: true,
+ source: people.get_realm_persons,
+ highlighter: function (item) {
+ return typeahead_helper.render_person(item);
+ },
+ matcher: functi... |
Add 'IF NOT EXISTS' to prevent duplicate table exception
PR for issue Avoid exception handling for PostgresTarget.create_marker_table() with "CREATE TABLE IF NOT EXISTS" | @@ -207,24 +207,19 @@ class PostgresTarget(luigi.Target):
connection.autocommit = True
cursor = connection.cursor()
if self.use_db_timestamps:
- sql = """ CREATE TABLE {marker_table} (
+ sql = """ CREATE TABLE IF NOT EXISTS {marker_table} (
update_id TEXT PRIMARY KEY,
target_table TEXT,
inserted TIMESTAMP DEFAULT NOW()... |
Fix usage of deprecated suffix argument in doc2path
Replace call to doc2path with os.path.join as Sphinx did with their
embedded builders. | @@ -434,7 +434,7 @@ class PDFBuilder(Builder):
if docname not in self.env.all_docs:
yield docname
continue
- targetname = self.env.doc2path(docname, self.outdir, self.out_suffix)
+ targetname = os.path.join(self.outdir, docname + self.out_suffix)
try:
targetmtime = os.path.getmtime(targetname)
except Exception:
|
Update writing.rst
We identified this issue, which was very difficult to track down. Don't think it's really a bug, and likely state names should never contain a hyphen anyways. But basically it renders the name as (first - second) = function(). (first-second.py), and you get a "can't assign to operator" exception. | @@ -153,6 +153,9 @@ distributed manually to minions by running :mod:`saltutil.sync_states
<salt.modules.saltutil.sync_all>`. Alternatively, when running a
:ref:`highstate <running-highstate>` custom types will automatically be synced.
+NOTE: Writing state modules with hyphens in the filename will cause issues
+with !py... |
Remove errant create_reloaded_repository_location re-implementation
Summary: This was moved to the base class in so we don't need these re-implementations now.
Test Plan: BK
Reviewers: alangenfeld | @@ -399,9 +399,6 @@ def __init__(self, repository_location_handle):
self.external_repositories = {repo.name: repo for repo in external_repositories_list}
- def create_reloaded_repository_location(self):
- return GrpcServerRepositoryLocation(self._handle)
-
@property
def is_reload_supported(self):
return True
@@ -556,9 ... |
Zero out all observations if we get any NaNs.
Now we are NaN-proof! | @@ -25,9 +25,14 @@ import numpy as np
def historical_metric_values(history, metric):
"""Converts a metric stream from a trax History object into a numpy array."""
metric_sequence = history.get(*metric)
- return np.array([
+ metric_values = np.array([
metric_value for (_, metric_value) in metric_sequence
])
+ if np.any(... |
File manager context not always active in windows explorer
add Windows-Explorer as application name | @@ -9,6 +9,8 @@ apps.windows_explorer = """
os: windows
and app.name: Windows Explorer
os: windows
+and app.name: Windows-Explorer
+os: windows
and app.exe: explorer.exe
"""
@@ -84,14 +86,17 @@ if app.platform == "windows":
]
-@ctx.action_class('user')
+@ctx.action_class("user")
class UserActions:
def file_manager_go_b... |
Fix a little typo in engine docstring
Closes | @@ -31,7 +31,7 @@ class Engine(Serializable):
last_event_name: last event name triggered by the engine.
Note:
- :class:`~ignite.engine.engine.Engine` implementation has changed in v0.4.10 with "interrupt/resume" feature.
+ :class:`~ignite.engine.engine.Engine` implementation has changed in v0.5.0 with "interrupt/resume... |
Update configuration.rst
Added a couple of sentences to explain that creation of a queue is a prerequisite for automatically creating tickets from e-mail. | @@ -19,6 +19,8 @@ Before django-helpdesk will be much use, you need to do some basic configuration
**IMPORTANT NOTE**: Any tickets created via POP3 or IMAP mailboxes will DELETE the original e-mail from the mail server.
+ You will need to create a support queue, and associated login/host values, in the Django admin int... |
Add support for FusedBatchNormV3
No changes seem to be needed to _fused_batch_norm. It just works. | @@ -1561,6 +1561,7 @@ _convert_map = {
'FloorMod' : _floormod(),
'FusedBatchNorm' : _fused_batch_norm(),
'FusedBatchNormV2' : _fused_batch_norm(),
+ 'FusedBatchNormV3' : _fused_batch_norm(),
'Gather' : _gather(),
'GatherNd' : _gather_nd(),
'GatherV2' : _gather(),
|
Add information on downloading historical results
Adds documentation to engine docs on how to get previous
results using the program and job id. | @@ -191,3 +191,62 @@ for b in range(num_circuits_in_batch):
idx+=1
```
+
+## Downloading historical results
+
+Results from previous computations are archived and can be downloaded later
+by those in the same cloud project. You must use the same project id to
+access historical results or your request will be denied.
+... |
`requests`: improve `_Data` type
requests: improve _Data type
This allows to pass an Iterable[bytes] for streaming request data. | from _typeshed import Self, SupportsItems, SupportsRead
from collections.abc import Callable, Iterable, Mapping, MutableMapping
-from typing import IO, Any, Union
+from typing import Any, Union
from typing_extensions import TypeAlias, TypedDict
from urllib3._collections import RecentlyUsedContainer
@@ -45,7 +45,25 @@ c... |
Complete the mlqa dataset card
* Added more details to dataset card of mlqa dataset
* added license and other required details to mlqa
* Modified dataset card of mlqa dataset
Changed language creators tag in dataset card of mlqa dataset to crowdsourced. | pretty_name: MLQA (MultiLingual Question Answering)
language:
- en
+- de
+- es
+- ar
+- zh
+- vi
+- hi
+license:
+- cc-by-sa-3.0
+source_datasets:
+- original
+size_categories:
+- 10K<n<100K
+language_creators:
+- crowdsourced
+annotations_creators:
+- crowdsourced
+multilinguality:
+- multilingual
+task_categories:
+-... |
Update elf_mirai.txt
[0]
Standatd row of ```{ext}```. | @@ -281,3 +281,22 @@ ukrainianhorseriding.com
/spc.yakuza
/srv.yakuza
/x86.yakuza
+
+# Reference: https://twitter.com/VessOnSecurity/status/1051226957118103560
+
+/gemini.arm
+/gemini.arm5
+/gemini.arm6
+/gemini.arm7
+/gemini.dbg
+/gemini.i586
+/gemini.i686
+/gemini.m68k
+/gemini.mips
+/gemini.mpsl
+/gemini.ppc
+/gemin... |
Parse infraction search reason as regex before calling site
Previously this would raise an error within site due to the invalid regexp. | +import re
import textwrap
import typing as t
@@ -275,6 +276,11 @@ class ModManagement(commands.Cog):
@infraction_search_group.command(name="reason", aliases=("match", "regex", "re"))
async def search_reason(self, ctx: Context, reason: str) -> None:
"""Search for infractions by their reason. Use Re2 for matching."""
+ ... |
Make `get_default_exporters` a static method of runner class
* the function `get_default_exporters` is only used by `TestRunner`
and its sub classes. Make it a member method of runner class so
the sub classes can overwrite it and accept new config options
which is related to command line arguments. | @@ -37,27 +37,6 @@ from testplan.testing import listing, filtering, ordering, tagging
from testplan.testing.base import TestResult
-def get_default_exporters(config):
- """
- Instantiate certain exporters if related cmdline argument (e.g. --pdf)
- is passed but there aren't any exporter declarations.
- """
- result = [... |
Adding a unit test for the new changes.
Thanks | @@ -200,3 +200,41 @@ def test_version_check_remote_true_not_available():
expected = {"ack": {"installed": ["3.1.1"]}}
result = chocolatey.version("ack", check_remote=True)
assert result == expected
+
+
+def test_add_source(choco_path):
+ """
+ Test add_source when remote is False
+ """
+ cmd_run_all_mock = MagicMock(re... |
Update common-single-facility-sign-in.feature
Slight wording changes | Feature: Single facility sign in
- Kolibri users should see their facility name when they sign in
+ Kolibri users need to see the name of the facility they are signing into
Background:
Given there is only one facility on the device
And I am on the sign in page
-
- Scenario: Learner signs in
+ Scenario: Sign in to facil... |
Use npm package for running several subcommands
This approach has the advantage of capturing STDOUT of all the
subcommands | "build-css": "lessc ../css/index.less > ../../static/css/index.css",
"build-config": "browserify src/config.js --standalone config -t envify | uglifyjs > ../../static/js/config.min.js",
"build-clipboardjs": "cp node_modules/clipboard/dist/clipboard.min.js ../../static/js/",
- "build": "npm run build-config | npm run bu... |
Tweak coveralls configuration
coveralls.io is throwing 422 and breaking CI,
this may or may not help.
Related: | @@ -50,6 +50,6 @@ jobs:
coverage run --omit=*/tests/* --source=hc manage.py test
- name: Coveralls
if: matrix.db == 'postgres' && matrix.python-version == '3.8'
- run: coveralls
+ run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
|
tooltips: Fix doubling of keyboard-icon.
This fixes a bug where the default fade-in animation of bootstrap tool
tips caused the tool tip over the keyboard-icon to change shape slightly
while fading away.
Fixes | @@ -266,7 +266,9 @@ exports.initialize_kitchen_sink_stuff = function () {
$('.copy_message[data-toggle="tooltip"]').tooltip();
- $('#keyboard-icon').tooltip();
+ // We disable animations here because they can cause the tooltip
+ // to change shape while fading away in weird way.
+ $('#keyboard-icon').tooltip({animation... |
Fix passed value in wrong type
BuildResult.logs accepts None or List[str], but in the source_container
plugin, a str is passed. | @@ -124,7 +124,7 @@ class SourceContainerPlugin(BuildStepPlugin):
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)
except subprocess.CalledProcessError as e:
self.log.error("BSI failed with output:\n%s", e.output)
- return BuildResult(logs=e.output, fail_reason='BSI utility failed build source... |
Bulk add people tests: rename "Instructor" -> "intructor" (role)
Lowercased name goes on-par with what actual spelling is. | @@ -103,7 +103,7 @@ class CSVBulkUploadTestBase(TestBase):
test_host = Organization.objects.create(domain='example.com',
fullname='Test Organization')
- Role.objects.create(name='Instructor')
+ Role.objects.create(name='instructor')
Role.objects.create(name='learner')
Event.objects.create(start=datetime.date.today(),
h... |
Add metavar for name parameter in subnet create
Closes-Bug: | @@ -247,6 +247,7 @@ class CreateSubnet(command.ShowOne):
parser = super(CreateSubnet, self).get_parser(prog_name)
parser.add_argument(
'name',
+ metavar='<name>',
help=_("New subnet name")
)
parser.add_argument(
|
[swarming] fix test only regression from
TBR=qyearsley@chromium.org | @@ -692,7 +692,7 @@ class TestTaskRunner(TestTaskRunnerBase):
policies = local_caching.CachePolicies(0, 0, 0, 0)
# Inject file 'bar' in the named cache 'foo'.
- with local_caching.NamedCache(cache_dir, policies) as cache:
+ cache = local_caching.NamedCache(cache_dir, policies)
cache.install(dest_dir, 'foo')
with open(o... |
output_processors/postgres: Move logging message
Print the debug message warning about writing a large object to the
database before writing the object. | @@ -394,10 +394,10 @@ class PostgresqlResultProcessor(OutputProcessor):
self.current_large_object_uuid = uuid.uuid4()
with open(os.path.join(output_object.basepath, artifact.path)) as lobj_file:
lobj_data = lobj_file.read()
- lo_len = self.current_lobj.write(lobj_data)
- if lo_len > 50000000: # Notify if LO inserts lar... |
Fixing typos
modified: pypeit/core/flexure.py | @@ -288,7 +288,7 @@ def spec_flex_shift(obj_skyspec, arx_skyspec, arx_lines, mxshft=20, excess_shft=
msgs.error(f"Flexure compensation failed for one of your{msgs.newline()}"
f"objects. Either adjust the \"spec_maxshift\"{msgs.newline()}"
f"FlexurePar Keyword, or see the flexure documentation{msgs.newline()}"
- f"for i... |
CoinZoom: Document order not found on order cancels
Finished the TODO in previous commit, there is no error reported by CoinZoom if an order is not found. | @@ -533,7 +533,7 @@ class CoinzoomExchange(ExchangeBase):
except CoinzoomAPIError as e:
err = e.error_payload.get('error', e.error_payload)
self.logger().error(f"Order Cancel API Error: {err}")
- # TODO: Still need to handle order cancel errors.
+ # CoinZoom doesn't report any error if the order wasn't found so we can ... |
Render items via a group
So we can "gray out" elements that an element can not connected to. | @@ -27,8 +27,10 @@ class ItemPainter:
def paint_item(self, item, cairo):
selection = self.selection
diagram = item.diagram
- cairo.save()
+ style = diagram.style(StyledItem(item, selection))
+ cairo.push_group()
try:
+ cairo.set_source_rgba(*style["color"])
cairo.transform(item.matrix_i2c.to_cairo())
selection = self.s... |
Add dashboard search placeholder to describe search patterns
Since ^ and $ for searching from start and to end is supported, let's
tell the user about it. | $(id).DataTable({
"paging" : true,
"lengthChange" : true,
+ language: {
+ searchPlaceholder: "Use ^ and $ for start and end",
+ },
"searching" : true,
"ordering" : true,
"columnDefs": [
|
Update test_util_functions.py
Fixed the same error in two more spots. | @@ -521,12 +521,12 @@ def test_process_cache():
process_cache(cache, kernel_options, tuning_options, runner)
assert "kernel" in str(excep.value)
- with pytest.raises(ValueError) as excp:
+ with pytest.raises(ValueError) as excep:
runner.dev.name = "wrong_device"
process_cache(cache, kernel_options, tuning_options, runn... |
Step Size Crash Correction
Low level fix. | @@ -26,7 +26,7 @@ class LaserSettings:
self.acceleration_custom = False
self.acceleration = 1
- self.raster_step = 0
+ self.raster_step = 1
self.raster_direction = 0
self.raster_swing = False # False = bidirectional, True = Unidirectional
self.raster_preference_top = 0
@@ -258,6 +258,8 @@ class RasterCut(CutObject):
de... |
[setup] Synchronize pypi package 1.2 with 2.1
Parser for requirements are different in Python 2 and Python 3.
Enforce the same result in these 3 conditions. | @@ -36,7 +36,7 @@ if not python_is_supported():
# ------- setup extra_requires ------- #
extra_deps = {
# Core library dependencies
- 'eventstreams': ['sseclient>=0.0.18,!=0.0.23,!=0.0.24'],
+ 'eventstreams': ['sseclient!=0.0.23,!=0.0.24,>=0.0.18'],
'isbn': ['python-stdnum'],
'Graphviz': ['pydot>=1.2'],
'Google': ['goo... |
Updated tests due to changes from 4.3 -> 4.4
RequestHandler._headers[<header_name>] returns a byte string in 4.3
but a string in 4.4. This affects tests where we had to do byte-str
conversion before comparison, which is no longer needed now. | @@ -29,7 +29,7 @@ class TestProviderHandler:
await handler.prepare()
# check that X-WATERBUTLER-REQUEST-ID is valid UUID
- assert UUID(handler._headers['X-WATERBUTLER-REQUEST-ID'].decode('utf-8'), version=4)
+ assert UUID(handler._headers['X-WATERBUTLER-REQUEST-ID'], version=4)
@pytest.mark.asyncio
async def test_prepa... |
Update transform_segmentation_label.py
fix segmentation label transform localization label bug. | @@ -26,9 +26,8 @@ def generate_mapping_list_txt(action_dict, out_path):
f.close()
-def segmentation_convert_localization_label(prefix_data_path, out_path,
- action_dict, fps):
- label_path = os.path.join(prefix_data_path, "train")
+def segmentation_convert_localization_label(prefix_data_path, out_path, action_dict, fps... |
Simplify s3.get_object_info wrapper code
SIM:
cr | @@ -42,24 +42,31 @@ def upload_file(bucket, key, file_path):
Body=fp)
+def __raise_if_bucket_is_empty(result):
+ if not result.get('Contents'):
+ raise NotFoundError('Object not found.')
+
+
def get_object_info(bucket, object_key):
- result = _make_api_call('list_objects',
+ result = _make_api_call(
+ 'list_objects',
B... |
Use '_' prefix instead of disabling pylint unused-argument lint
It is more precise to mark the unused parameters this way. | @@ -28,18 +28,16 @@ class StratisActions():
"""
@staticmethod
- def list_stratisd_redundancy(namespace):
+ def list_stratisd_redundancy(_namespace):
"""
List the stratisd redundancy designations.
"""
- # pylint: disable=unused-argument
for code in RedundancyCodes:
print("%s: %d" % (code.name, code.value))
@staticmethod... |
Allow visit_type to be empty
OpenMRS Encounters don't need to be associated with a Visit | @@ -278,6 +278,7 @@ class CreateVisitTask(WorkflowTask):
def run(self):
subtasks = []
start_datetime = to_timestamp(self.visit_datetime)
+ if self.visit_type:
stop_datetime = to_timestamp(
self.visit_datetime + timedelta(days=1) - timedelta(seconds=1)
)
@@ -327,8 +328,9 @@ class CreateEncounterTask(WorkflowTask):
'pati... |
Share the same entity_info struct subclass for all AST node subclasses
TN: | @@ -1240,6 +1240,13 @@ class StructMetaclass(CompiledTypeMetaclass):
:type: Struct
"""
+ entity_info = None
+ """
+ Struct subclass to contain all entity information, except the node itself.
+
+ :type: Struct
+ """
+
def __new__(mcs, name, bases, dct):
# The two following booleans are mutually exclusive and at least on... |
ColorSwatch : Improve drawing for non-zero based origins
Extract paint implementation to a separate method so it can be used by other widgets.
Don't snap starting point to multiples of `checkSize`.
Don't draw outside the bounds of `rect`. | @@ -166,41 +166,67 @@ class _Checker( QtWidgets.QWidget ) :
def paintEvent( self, event ) :
- painter = QtGui.QPainter( self )
- rect = event.rect()
-
- if self.color0 != self.color1 :
+ _Checker._paintRectangle(
+ QtGui.QPainter( self ),
+ event.rect(),
+ self.color0,
+ self.color1,
+ self.borderColor,
+ self.__border... |
configure: expand discovered vdirs and set default
Before we would show the to be discoverd folders which are not valid
vdirs themselves. This would lead to configure creating a broken config
file (default_calendar set wrongly).
fix | @@ -34,7 +34,7 @@ import xdg
from click import Choice, UsageError, confirm, prompt
from .exceptions import FatalError
-from .settings import find_configuration_file
+from .settings import find_configuration_file, utils
logger = logging.getLogger('khal')
@@ -123,7 +123,14 @@ def choose_time_format():
def choose_default_... |
Refactor --pw
The password prompt is handled outside of the add_argument(); the type=callable wasn't working as expected | @@ -133,7 +133,7 @@ def write_to_live_repo():
-def get_password(prompt='Password: ', confirm=True):
+def get_password(prompt='Password: ', confirm=False):
"""
Return the password entered by the user. If 'confirm' is True, the user is
asked to enter the previously entered password once again. If they match,
@@ -174,13 +... |
Always look up the session name for lsp_execute
Resolves | @@ -27,7 +27,7 @@ class LspExecuteCommand(LspTextCommand):
listener.do_signature_help_async(manual=False)
return sublime.set_timeout_async(run_async)
- session = self.session_by_name(session_name) if session_name else self.best_session(self.capability)
+ session = self.session_by_name(session_name if session_name else ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.