message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
update ContactTerm to return sparse vector and matrix with active DOFs
new .call_function(), .eval_real()
update .function(), .get_fargs()
TODO: return sparse Gc directly from ccontres | @@ -2,6 +2,7 @@ import numpy as nm
from sfepy.base.base import Struct
from sfepy.terms.terms import Term
+from sfepy.terms.extmods import terms
class ContactInfo(Struct):
"""
@@ -23,13 +24,31 @@ class ContactTerm(Term):
self.ci = None
- @staticmethod
- def function(out, geo, fmode):
- out_qp = nm.zeros((out.shape[0], g... |
set halt level to none/5 for docutils parse function
This results in all errors being accumulated and not only one
fixes | @@ -219,7 +219,7 @@ def check( # noqa: CCR001
writer=writer,
source_path=filename,
settings_overrides={
- "halt_level": report_level,
+ "halt_level": 5,
"report_level": report_level,
"warning_stream": string_io,
},
|
CodeSnippets: don't send snippets if the original message was deleted
Fixes BOT-13B | @@ -4,8 +4,8 @@ import textwrap
from typing import Any
from urllib.parse import quote_plus
+import discord
from aiohttp import ClientResponseError
-from discord import Message
from discord.ext.commands import Cog
from bot.bot import Bot
@@ -240,7 +240,7 @@ class CodeSnippets(Cog):
return '\n'.join(map(lambda x: x[1], s... |
timezone: Fix {set/get}_zone for legacy NILinuxRT
On legacy version of NILinuxRT, /etc/localtime is a
symlink to /etc/natinst/share/localtime.
On this systems, {set/get}_zone must work directly on
/ect/natinst/share/localtime, instead of default file.
Conflicts:
salt/modules/timezone.py | @@ -98,7 +98,7 @@ def _get_zone_sysconfig():
def _get_zone_etc_localtime():
- tzfile = '/etc/localtime'
+ tzfile = _get_localtime_path()
tzdir = '/usr/share/zoneinfo/'
tzdir_len = len(tzdir)
try:
@@ -281,8 +281,9 @@ def set_zone(timezone):
if not os.path.exists(zonepath) and 'AIX' not in __grains__['os_family']:
return... |
Update super-admin-downgrade-from-super-content-import-permission.feature
Some changes in the UI texts. | @@ -10,7 +10,7 @@ Background:
And I uncheck the *Make super admin* checkbox
Then I see that all checkboxes are unchecked and active
And I see that the *Save changes* button is active
- When I check the *Can import and export content channels* checkbox under *Device permissions*
+ When I check the *Can manage content on... |
fix typo in `torch.sum` documentation
Summary:
Notice that an extra colon was added to `:attr:`, so in , `dim` shows up as ":attr::_dim_". This patch fixes the issue.
Pull Request resolved: | @@ -4487,7 +4487,7 @@ Example::
.. function:: sum(input, dim, keepdim=False, dtype=None) -> Tensor
Returns the sum of each row of the :attr:`input` tensor in the given
-dimension :attr:`dim`. If :attr::`dim` is a list of dimensions,
+dimension :attr:`dim`. If :attr:`dim` is a list of dimensions,
reduce over all of them... |
Startup script uses COUCHDB_ARGS_FILE for vm.args path
This seems to be a discrepancy from the start, see original pull requests:
* (code)
* (docs)
Note also the script seems unhappy with relative paths, so I've also snuck a wording change alongside the main fix here. | @@ -66,10 +66,10 @@ is the same as setting the ``ERL_FLAGS`` environment variable.
If there is a need to use different ``vm.args`` or ``sys.config`` files, for
example, in different locations to the ones provided by CouchDB, or you don't
want to edit the original files, the default locations may be changed by
-setting ... |
Fix geom_text when used with other stats
The problem was, in the draw method the input dataframe
can have other columns computed by stats. It is best not
to reuse it to hold the parameters to be plotted by
matplotlib. | from __future__ import (absolute_import, division, print_function,
unicode_literals)
+import pandas as pd
from matplotlib.text import Text
from ..utils import to_rgba, suppress
@@ -72,17 +73,15 @@ class geom_text(geom):
def setup_data(self, data):
parse = self.params['parse']
- format_string = self.params['format_strin... |
mesos-dns: bump to
Last commit is
commit
Author: kevin xu
Date: Tue Mar 28 17:25:44 2017 +0800
fix typo | "single_source" : {
"kind": "git",
"git": "https://github.com/mesosphere/mesos-dns.git",
- "ref": "bf08ab7017207b7d7924462cfbaf7b952155a53e",
+ "ref": "af6ebc7a70f722b219f79f433b242e22667cfd4c",
"ref_origin": "master"
},
"username": "dcos_mesos_dns"
|
Raise `read_delim` exception with different msgs
Separate `len(msg_bytes) == 0` and `msg_bytes[-1:] != b"\n"`, to raise
`ParseError` with different messages. | @@ -73,8 +73,12 @@ def encode_delim(msg: bytes) -> bytes:
async def read_delim(reader: Reader) -> bytes:
msg_bytes = await read_varint_prefixed_bytes(reader)
- if len(msg_bytes) == 0 or msg_bytes[-1:] != b"\n":
- raise ParseError(f'msg_bytes is not delimited by b"\\n": msg_bytes={msg_bytes}')
+ if len(msg_bytes) == 0:
... |
removed bahanceAPI
This URL no longer accepting new clients | @@ -108,7 +108,6 @@ API | Description | Auth | HTTPS | CORS |
API | Description | Auth | HTTPS | CORS |
|---|---|---|---|---|
| [Art Institute of Chicago](https://api.artic.edu/docs/) | Art | No | Yes | Yes |
-| [Behance](https://www.behance.net/dev) | Design | `apiKey` | Yes | Unknown |
| [ColourLovers](http://www.col... |
Use user key for genesis and proposal poet
This kubernetes poet file previously used the validator key for genesis
and proposal. | @@ -115,13 +115,16 @@ items:
echo 'waiting for poet.batch'; \
sleep 1; \
done && \
+ if [ ! -e /root/.sawtooth/keys/my_key.priv ]; then \
+ sawtooth keygen my_key; \
+ fi && \
cp /poet-shared/poet.batch / && \
if [ ! -e config-genesis.batch ]; then \
- sawset genesis -k /etc/sawtooth/keys/validator.priv -o config-genes... |
Fixed a rare error of StreamContinuityManager
message: StreamContinuityManager disabled due to exception: 'NoneType' object is not subscriptable | @@ -96,6 +96,12 @@ class StreamContinuityManager(PlaybackActionManager):
# otherwise Kodi reacts strangely if only one value of these is restored
current_stream = self.current_streams['subtitle']
player_stream = player_state.get(STREAMS['subtitle']['current'])
+ if player_stream is None:
+ # I don't know the cause:
+ #... |
Fix docs error
Reference `django_q/conf.py` | @@ -92,7 +92,7 @@ retry
~~~~~
The number of seconds a broker will wait for a cluster to finish a task, before it's presented again.
-Only works with brokers that support delivery receipts. Defaults to ``None``.
+Only works with brokers that support delivery receipts. Defaults to 60.
The value must be bigger than the ti... |
Update LICENSE
To 2019 | The MIT License (MIT)
-Copyright (c) 2013-2017 SimPEG Developers
+Copyright (c) 2013-2019 SimPEG Developers
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
|
Sync: only update in_guild field when a member leaves
The member and user update listeners should already be detecting and
updating other fields so by the time a user leaves, the rest of the
fields should be up-to-date.
* Dedent condition which was indented too far | @@ -120,18 +120,8 @@ class Sync(Cog):
@Cog.listener()
async def on_member_remove(self, member: Member) -> None:
- """Updates the user information when a member leaves the guild."""
- await self.bot.api_client.put(
- f'bot/users/{member.id}',
- json={
- 'avatar_hash': member.avatar,
- 'discriminator': int(member.discrim... |
New peer nodes for Feathercoin
* Change of hard coded peer servers for Feathercoin
The domain of the peer server hard coded in coins.py for Feathercoin has expired.
Two new peers added. | @@ -1950,7 +1950,9 @@ class Feathercoin(Coin):
RPC_PORT = 9337
REORG_LIMIT = 2000
PEERS = [
- 'electrumx-ch-1.feathercoin.ch s t',
+ 'electrumx-gb-1.feathercoin.network s t',
+ 'electrumx-gb-2.feathercoin.network s t',
+ 'electrumx-de-1.feathercoin.network s t',
]
|
Fix, "hasattr" didn't raise exceptions.
* The C-API used "PyObject_HasAttr" never raises an exception, but of
course the built-in should, so inline the "hasattr" built-in code. | @@ -586,14 +586,53 @@ NUITKA_MAY_BE_UNUSED static PyObject *BUILTIN_HASATTR( PyObject *source, PyObjec
CHECK_OBJECT( source );
CHECK_OBJECT( attr_name );
- int res = PyObject_HasAttr( source, attr_name );
+#if PYTHON_VERSION < 300
+
+ if ( PyUnicode_Check( attr_name ) )
+ {
+ attr_name = _PyUnicode_AsDefaultEncodedStri... |
Separating out the process of rendering from determining paths.
Also updating imports to not conflict with argument and variable names. | @@ -24,9 +24,9 @@ from . import locales
from . import messages
from . import podcache
from . import podspec
-from . import routes
-from . import static
-from . import storage
+from . import routes as grow_routes
+from . import static as grow_static
+from . import storage as grow_storage
from . import tags
@@ -52,7 +52,... |
Update README.md
Correct some typos | @@ -108,11 +108,11 @@ We define a set of running arguments in SpeechBrain, these arguments can be set
- `nonfinite_patience`: 3, Number of times to ignore non-finite losses before stopping.
- `progressbar`: default True, Whether to display a progressbar when training.
-All these args allow you to run a Multigpu experim... |
Don't add LD_LIBRARY_PATH default for android auto
* Don't add LD_LIBRARY_PATH default for android auto
Adding default value for LD_LIBRARY_PATH caused fuzzer libraries to not
be used properly that were already packaged with the targets.
* Update libfuzzer.py | @@ -1247,6 +1247,9 @@ class AndroidLibFuzzerRunner(new_process.UnicodeProcessRunner, LibFuzzerCommon):
# Add directory containing libclang_rt.ubsan_standalone-aarch64-android.so
# to LD_LIBRARY_PATH.
+ ld_library_path = ''
+ if not android.settings.is_automotive():
+ # TODO(MHA3): Remove this auto check.
ld_library_pat... |
test: now test_parse_from_package uses more unique
name of the imported test package. Hopefully won't
collide with anything. | @@ -9,7 +9,7 @@ def test_parse_from_package(session, tmpdir):
with tmpdir.as_cwd() as old_dir:
sys.path.append(str(tmpdir))
- task_dir = tmpdir.mkdir("tasks")
+ task_dir = tmpdir.mkdir("funcs_test_parse_pkg") # This should be unique so other test imports won't interfere
task_dir.join("__init__.py")
task_dir.join("mytas... |
Proper function parameter default
Change `protocol_version` default to `None` because `protocol_version`
is determined below and has the same default.
ZD | @@ -194,7 +194,7 @@ def _get_ssl_opts():
def _connect(contact_points=None, port=None, cql_user=None, cql_pass=None,
- protocol_version=4):
+ protocol_version=None):
'''
Connect to a Cassandra cluster.
|
fix: added null check for locals in frappe.get_meta
Since locals object is not populated for website, frappe.get_meta would throw an exception.
This would break grid row in web forms. | @@ -8,6 +8,7 @@ frappe.provide('frappe.meta.doctypes');
frappe.provide("frappe.meta.precision_map");
frappe.get_meta = function(doctype) {
+ if(Object.keys(locals).length === 0 && locals.constructor === Object) return null
return locals["DocType"][doctype];
}
|
Update Cross version tests on spark to include allowlist suite.
Update Cross version tests on spark to include allowlist suite. | @@ -296,4 +296,4 @@ spark:
maximum: "3.1.1"
run: |
# TODO: Add datasource autologging tests
- pytest --verbose tests/spark_autologging/ml/test_pyspark_ml_autologging.py --large
+ find tests/spark_autologging/ml -name 'test*.py' | xargs -L 1 pytest --verbose --large
|
Fix linting error.
Suppress mypy.
Suppress mypy error.
Suppress mypy error. | @@ -9,6 +9,8 @@ from functools import update_wrapper
from operator import attrgetter
from threading import Lock
from threading import Thread
+from typing import Any
+from typing import TYPE_CHECKING
import click
from werkzeug.utils import import_string
@@ -36,7 +38,12 @@ else:
# We technically have importlib.metadata o... |
ValuePlug: Added support for Houdini17.5
Compiler options for Houdini17.5 makes it complain about
the const qualifier already in the declaration and not necessary in the
definition. | @@ -99,7 +99,7 @@ struct HashCacheKey
{
}
- const bool operator == ( const HashCacheKey &other ) const
+ bool operator == ( const HashCacheKey &other ) const
{
return other.plug == plug && other.contextHash == contextHash;
}
|
bug:AWG start order
* fix AWG start order bug for 5014
# Conflicts:
# pycqed/measurement/waveform_control/pulsar.py
* comment on the logic of starting multiple AWGs | @@ -31,7 +31,8 @@ class Pulsar(Instrument):
A meta-instrument responsible for all communication with the AWGs.
Contains information about all the available awg-channels in the setup.
Starting, stopping and programming and changing the parameters of the AWGs
- should be done through Pulsar. Supports Tektronix AWG5014 an... |
Added LectServe to Calendar
LectServe is a Protestant lectionary featuring the Revised Common
Lectionary and the ACNA Lectionary | @@ -97,6 +97,7 @@ For information on contributing to this project, please see the [contributing gu
| Church Calendar | Catholic liturgical calendar | No | No | [Go!](http://calapi.inadiutorium.cz/) |
| Date and Time | Global Date and Time | No | No | [Go!](http://www.timeanddate.com/services/api/) |
| Holidays | Free A... |
Updates match_aov_pattern() logic to handle empty regex
Using `is not None` to simplify code and handle empty regex cases. | @@ -19,9 +19,6 @@ def match_aov_pattern(host_name, aov_patterns, render_file_name):
bool: Review state for rendered file (render_file_name).
"""
aov_pattern = aov_patterns.get(host_name, [])
- if aov_pattern:
- if re.match(aov_pattern, render_file_name):
- preview = True
- return preview
- else:
+ if not aov_pattern:
r... |
unpin metasv
pinning causes installation issues | @@ -94,7 +94,7 @@ bio_nextgen:
- manta;env=python2
- maxentscan
- mbuffer
- - metasv=0.4.0;env=python2
+ - metasv;env=python2
- minimap2
- mintmap
- mirdeep2=2.0.0.7
|
FAQ: add processing time of DDL
* FAQ: add processing time of DDL
Via:
* FAQ: address comments
* FAQ: udpate wording | @@ -386,13 +386,23 @@ The offline node usually indicates the TiKV node. You can determine whether the
The lease parameter (`--lease=60`) is set from the command line when starting a TiDB server. The value of the lease parameter impacts the Database Schema Changes (DDL) speed of the current session. In the testing envir... |
Fix bug in get_between_ngrams
Closes | @@ -40,7 +40,7 @@ def get_between_ngrams(c, attrib="words", n_min=1, n_max=1, lower=True):
):
yield ngram
else: # span0.get_word_start_index() > span1.get_word_start_index()
- for ngram in get_left_ngrams(
+ for ngram in get_right_ngrams(
span1,
window=distance - 1,
attrib=attrib,
|
dplay: add name of the episode in the filename
fixes: | @@ -62,11 +62,12 @@ class Dplay(Service):
show = match.group(1)
season = jsondata["data"]["attributes"]["seasonNumber"]
episode = jsondata["data"]["attributes"]["episodeNumber"]
+ name = jsondata["data"]["attributes"]["name"]
if is_py2:
show = filenamify(show).encode("latin1")
else:
show = filenamify(show)
- return fil... |
Add libncurses5-dev to apt install line
We need libncurses5-dev installed, otherwise the built python
won't be able to build in support for curses which is what we
need for populate.py | @@ -15,7 +15,7 @@ echo "Updating apt, preparing to install libssl-dev, gettext, portaudio19-dev an
# install dependencies
sudo apt-get update
# libssl-dev required to get the python _ssl module working
-sudo apt-get install libssl-dev gettext portaudio19-dev libasound2-dev -y
+sudo apt-get install libssl-dev gettext li... |
Update tune_relay_vta.py to support single board
support single pynq board run, change is credited to 'https://github.com/i24361's change,
fixes the save fail
issues and changes are discussed in | @@ -340,18 +340,6 @@ def register_vta_tuning_tasks():
def tune_and_evaluate(tuning_opt):
- if env.TARGET != "sim":
- # Get remote from fleet node
- remote = autotvm.measure.request_remote(
- env.TARGET, tracker_host, tracker_port, timeout=10000
- )
- # Reconfigure the JIT runtime and FPGA.
- vta.reconfig_runtime(remote... |
[client] Update default value to be of the right type.
In optparse, if you use type='float', default=0, the default value type will be
int. That's cute. | @@ -1176,7 +1176,7 @@ class TaskOutputStdoutOption(optparse.Option):
def add_collect_options(parser):
parser.server_group.add_option(
- '-t', '--timeout', type='float', default=0,
+ '-t', '--timeout', type='float', default=0.,
help='Timeout to wait for result, set to -1 for no timeout and get '
'current state; defaults... |
Simplify test so that it only concerns one epoch
Rather than testing multiple redundantly | @@ -200,20 +200,13 @@ def test_only_process_eth1_data_votes_per_period(sample_beacon_state_params, con
@pytest.mark.parametrize(
"total_balance,"
"current_epoch_boundary_attesting_balance,"
- "previous_epoch_boundary_attesting_balance,"
"expected,",
(
(
- 1500 * GWEI_PER_ETH, 1000 * GWEI_PER_ETH, 1000 * GWEI_PER_ETH, (... |
Add ScrapingAnt API to the Development category
I've added the ScrapingAnt API in the README.md file. It's a great API with the availability of free usage. | @@ -286,6 +286,7 @@ API | Description | Auth | HTTPS | CORS |
| [ReqRes](https://reqres.in/ ) | A hosted REST-API ready to respond to your AJAX requests | No | Yes | Unknown |
| [Scraper.AI](https://docs.scraper.ai/#/) | Extract and monitor data from any website | `apiKey` | Yes | Unknown |
| [ScraperApi](https://www.s... |
Don't reimplement signal size
no need to support super-old h5py | @@ -1245,9 +1245,9 @@ class _NXdataXYVScatterView(DataView):
x_axis, y_axis = nxd.axes[-2:]
if x_axis is None:
- x_axis = numpy.arange(nxd.signal_size)
+ x_axis = numpy.arange(nxd.signal.size)
if y_axis is None:
- y_axis = numpy.arange(nxd.signal_size)
+ y_axis = numpy.arange(nxd.signal.size)
x_label, y_label = nxd.axe... |
refactor(minor): frappe.has_permission
The throw block was very clearly broken. Referencing frappe.throw inside
__init__.py rip. Added drop in replacement msgprint call | @@ -740,17 +740,26 @@ def has_permission(doctype=None, ptype="read", doc=None, user=None, verbose=Fals
:param doc: [optional] Checks User permissions for given doc.
:param user: [optional] Check for given user. Default: current user.
:param parent_doctype: Required when checking permission for a child DocType (unless d... |
fix_sub_duration
Only add this flag is subtitle streams are present | @@ -593,10 +593,12 @@ class MkvtoMp4:
},
'audio': audio_settings,
'subtitle': subtitle_settings,
- 'preopts': ['-fix_sub_duration'],
'postopts': ['-threads', self.threads]
}
+ if len(options['subtitle']) > 0:
+ option['preopts'] = ['-fix_sub_duration']
+
# If using h264qsv, add the codec in front of the input for decod... |
Fixed selecting using handles bug
Fixed enormously large cursor_x returned by get_cursor_from_xy when touch is righter then the last symbol of the line | @@ -1349,8 +1349,10 @@ class TextInput(FocusBehavior, Widget):
):
cursor_x = i
break
+ else:
+ cursor_x = len(lines[cursor_y])
- return int(cursor_x), int(cursor_y)
+ return cursor_x, cursor_y
#
# Selection control
|
[cleanup] Remove WikimediaSiteTestCase class
The wmf flag was never used | @@ -1137,14 +1137,7 @@ class DefaultDrySiteTestCase(DefaultSiteTestCase):
dry = True
-class WikimediaSiteTestCase(TestCase):
-
- """Test class uses only WMF sites."""
-
- wmf = True
-
-
-class WikimediaDefaultSiteTestCase(DefaultSiteTestCase, WikimediaSiteTestCase):
+class WikimediaDefaultSiteTestCase(DefaultSiteTestCa... |
Bug Store FTL translations with trailing newline
That's because we need to serialize translations consistently with the
python-fluent serializer. Otherwise translations get re-imported. | @@ -277,7 +277,7 @@ var Pontoon = (function (my) {
translation = ' = ' + translation;
}
- return entity.key + translation;
+ return entity.key + translation + '\n';
},
|
[NV] - Curr. Hosp, Curr. ICU, and Curr. Vent
Quaternary and quinary screenshots for NV now pull from their Hospitalizations by County tab and hover over their respective metrics. For Curr. Hosp., the hover over only reveals the confirmed value. The suspected value may require a separate screenshot. | @@ -433,6 +433,16 @@ quaternary:
message: clicking on 'Antibody Tests - Test Based'.
+ NV:
+ overseerScript: >
+ page.manualWait();
+ await page.waitForDelay(10000);
+ page.mouse.move(920, 406);
+ page.mouse.click(920, 406);
+ await page.waitForDelay(8000);
+ page.done();
+ message: hospitalizations for NV quaternary
+... |
pkg_implementation_spec_ada.mako: minor reformatting
TN: | @@ -526,6 +526,7 @@ package ${ada_lib_name}.Analysis.Implementation is
type ${root_node_value_type} is abstract tagged record
Parent : ${root_node_type_name} := null;
+ -- Reference to the parent node, or null if this is the root one
Unit : Analysis_Unit := No_Analysis_Unit;
-- Reference to the analysis unit that owns ... |
Fix a bad docstring in provisioning blocks module
Docstring title had the opposite callback behavior of what
actually happens.
TrivialFix | @@ -80,7 +80,7 @@ def add_provisioning_component(context, object_id, object_type, entity):
@db_api.retry_if_session_inactive()
def remove_provisioning_component(context, object_id, object_type, entity,
standard_attr_id=None):
- """Removes a provisioning block for an object with triggering a callback.
+ """Remove a prov... |
Raise floor version of botocore
Needed for the ``ResourceInUseException``. | @@ -8,7 +8,7 @@ with open('README.rst') as readme_file:
install_requires = [
'click>=6.6,<7.0',
- 'botocore>=1.5.40,<2.0.0',
+ 'botocore>=1.10.48,<2.0.0',
'typing==3.6.4',
'six>=1.10.0,<2.0.0',
'pip>=9,<11',
|
Change "target" to "file"
The open_file command expects "file". | @@ -90,7 +90,7 @@ TEMPLATES = dict(
{ "caption": "README",
"command": "open_file",
"args": {
- "target": "\${packages}/$1/README.md"
+ "file": "\${packages}/$1/README.md"
}
},
{ "caption": "-" },
|
Add linecache module to skipped modules for pytest plugin
see
fixes the problem under Python 3, but not under Python 2 | @@ -8,11 +8,14 @@ def my_fakefs_test(fs):
fs.create_file('/var/data/xx1.txt')
assert os.path.exists('/var/data/xx1.txt')
"""
+import linecache
+
import py
import pytest
from pyfakefs.fake_filesystem_unittest import Patcher
Patcher.SKIPMODULES.add(py) # Ignore pytest components when faking filesystem
+Patcher.SKIPMODULE... |
Added lock param to the issuance
Now a token can be issued, locked and transferred in one tx | "value":">QQ??If"
},
"753000":{
- "value":">QQ???If"
+ "value":">QQ????If"
}
},
"testnet":{
},
"2288000":{
"value":">QQ???If"
+ },
+ "2342000":{
+ "value":">QQ????If"
}
}
},
"value":26
},
"753000":{
- "value":27
+ "value":28
}
},
"testnet":{
},
"2288000":{
"value":27
+ },
+ "2342000":{
+ "value":28
}
}
},
"value":">QQ?... |
project: Ignore failure to remove the sample hooks
Removing the sample hooks is just clean up, so if repo cannot remove a
sample hook that should not cause it to fail. | @@ -2554,7 +2554,10 @@ class Project(object):
# Delete sample hooks. They're noise.
for hook in glob.glob(os.path.join(hooks, '*.sample')):
+ try:
platform_utils.remove(hook, missing_ok=True)
+ except PermissionError:
+ pass
for stock_hook in _ProjectHooks():
name = os.path.basename(stock_hook)
|
Update __init__.py
update version for nccl & mpi uint8 | # file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
-__version__ = '1.2.3.103'
+__version__ = '1.2.3.104'
from jittor_utils import lock
with lock.lock_scope():
ori_int = int
|
Update setup.py to use marathon >= 0.9.2
Jenkins doesnt seem to be respecting requirements.txt , its still using 0.9.0 | @@ -46,7 +46,7 @@ setup(
'isodate >= 0.5.0',
'jsonschema[format]',
'kazoo >= 2.0.0',
- 'marathon >= 0.9.0',
+ 'marathon >= 0.9.2',
'progressbar2 >= 3.10.0',
'pyramid >= 1.8',
'pymesos >= 0.2.0',
|
Updated Skype for Business information
* Updated Skype for Business information
Included the link to the the plugin that is developed by Mattermost itself instead of korgz.
* Update video-and-audio-calling.rst | @@ -34,13 +34,13 @@ BigBlueButton
- Supports a self-hosted on-prem solution, and a vendor-hosted cloud solution.
- Source code and docs available at: https://github.com/blindsidenetworks/mattermost-plugin-bigbluebutton.
-Skype for Business
-~~~~~~~~~~~~~~~~~~~~
+Skype for Business (Beta)
+~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ... |
Introduce decorator
and use on collect_inactive_awws | @@ -179,6 +179,15 @@ SQL_FUNCTION_PATHS = [
]
+# Tasks that are only to be run on ICDS_ENVS should be marked
+# with @only_icds_periodic_task rather than @periodic_task
+if settings.SERVER_ENVIRONMENT in settings.ICDS_ENVS:
+ only_icds_periodic_task = periodic_task
+else:
+ def only_icds_periodic_task(**kwargs):
+ retu... |
Added local logging handler and using it instead of global
Fixes | @@ -21,6 +21,8 @@ from abc import ABCMeta
import logging
import warnings
import re
+import sys
+
from ..compat import add_metaclass
from ..exceptions import XMLSchemaTypeError, XMLSchemaURLError, XMLSchemaKeyError, \
@@ -56,7 +58,10 @@ from .wildcards import XsdAnyElement, XsdAnyAttribute, Xsd11AnyElement, \
from .glob... |
Fix oc group get
Fixes | @@ -1522,7 +1522,7 @@ class OCGroup(OpenShiftCLI):
result = self._get(self.kind, self.config.name)
if result['returncode'] == 0:
self.group = Group(content=result['results'][0])
- elif 'groups \"{}\" not found'.format(self.config.name) in result['stderr']:
+ elif 'groups.user.openshift.io \"{}\" not found'.format(self.... |
2.10.4
Automatically generated by python-semantic-release | @@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers
"""
from datetime import timedelta
-__version__ = "2.10.3"
+__version__ = "2.10.4"
PROJECT_URL = "https://github.com/custom-components/alexa_media_player/"
ISSUE_URL = "{}issues".format(PROJECT_URL)
|
Cleanup, avoid code duplication
* This is most probably a remainder of previous re-factorings that
introduced a single method to define the entries. | @@ -77,50 +77,19 @@ def getMetapathLoaderBodyCode(other_modules):
metapath_module_decls = []
for other_module in other_modules:
- if other_module.isUncompiledPythonModule():
- code_data = other_module.getByteCode()
- is_package = other_module.isUncompiledPythonPackage()
-
- flags = ["NUITKA_BYTECODE_FLAG"]
- if is_pack... |
In addition to the fix, I propose a solution for the
meta class selection of a model element to determine the object
processor with (hopefully) minimal performance impact... | @@ -564,20 +564,41 @@ def parse_tree_to_objgraph(parser, parse_tree, file_name=None,
if result is not None:
setattr(model_obj, metaattr.name, result)
- # find obj_proc of rule found in grammar
- # (this obj_processor dominates of a processor for the current
- # meta class of the object being processed)
- obj_processor ... |
dmap: Add missing tags aelb and casa
Relates to | @@ -22,6 +22,7 @@ def _read_unknown(data, start, length):
# These are the tags that we know about so far
_TAGS = {
+ "aelb": DmapTag(read_bool, "com.apple.itunes.like-button"),
"aels": DmapTag(read_uint, "com.apple.itunes.liked-state"),
"aeFP": DmapTag(read_uint, "com.apple.itunes.req-fplay"),
"aeGs": DmapTag(read_bool... |
Correct the instance migration link
1. Update the instance migration link
2. remove the unnecessary install-guide link
configure and install Ceilometer by
is enough
remove the other link. | @@ -366,7 +366,7 @@ Configure Nova compute
Please check your hypervisor configuration to correctly handle
`instance migration`_.
-.. _`instance migration`: http://docs.openstack.org/admin-guide/compute-live-migration-usage.html
+.. _`instance migration`: https://docs.openstack.org/nova/latest/admin/migration.html
Confi... |
IndexedData: Allow `Ellipsis` operator in low-level indexing expressions
This allows us to use neat short-cuts such as `a.indexed[t + 1, ...]` to
substitute the time dimension in low-level notation. | @@ -602,6 +602,30 @@ class IndexedData(IndexedBase):
obj.function = self.function
return obj
+ def __getitem__(self, idx):
+ """Allow the use of `Ellipsis` to derive default indices from
+ the original `SymbolicData` (`sympy.Function`) symbol in indexed
+ notation. This provides notational short-cuts, such as:
+
+ In >... |
Fix bugs introduced by merge from dev.
- Somehow I lost the **kwargs in Nested _deserialize.
- Added **kwargs to Pluck(Nested) _deserialize. | @@ -470,9 +470,9 @@ class Nested(Field):
raise ValidationError(exc.messages, data=data, valid_data=exc.valid_data)
return valid_data
- def _deserialize(self, value, attr, data):
+ def _deserialize(self, value, attr, data, **kwargs):
self._test_collection(value)
- return self._load(value, data)
+ return self._load(value... |
sidekick works, robot gets to a nice position to get up to standing
stance. Not quite done | -time,0.5,1.5,2,3
-left_leg_motor_0,0,0,0,0
-left_leg_motor_1,0.1,0.1,0.1,0.1
-left_leg_motor_2,0.25,0.25,0.25,0.25
-left_leg_motor_3,-0.4,-0.4,-0.4,-0.4
-left_leg_motor_4,0.2,0.2,0.2,0.2
-left_leg_motor_5,-0.1,-0.1,-0.1,-0.1
-left_arm_motor_0,0,0,0,0
-left_arm_motor_1,2,2,2,2
-right_leg_motor_0,0,0,0,0
-right_leg_moto... |
Add links to the NumPy Testing Guidelines.
[skip actions]
[skip travis]
[skip azp] | @@ -7,7 +7,10 @@ are not explicitly stated in the existing guidelines and standards, including
* `PEP-8 <https://www.python.org/dev/peps/pep-0008>`_ Style Guide for Python Code
* `PEP-257 <https://www.python.org/dev/peps/pep-0257>`_ Docstring Conventions
-* `NumPy docstring standard <https://numpydoc.readthedocs.io/en/... |
Update plot_defaults.py
prevent defaults from overwriting user 'ylim' kwarg | @@ -112,6 +112,7 @@ def matelem_vs_paramvals(specdata):
def dressed_spectrum(sweep, **kwargs):
"""Plot defaults for sweep_plotting.dressed_spectrum"""
+ if 'ylim' not in kwargs:
kwargs['ymax'] = kwargs.get('ymax') or min(15, (np.max(sweep.dressed_specdata.energy_table) -
np.min(sweep.dressed_specdata.energy_table)))
kw... |
rename variable according to cocoa OptionContainer
fix import | from toga.interface import OptionContainer as OptionContainerInterface
-from src.android.toga_android.widgets.base import WidgetMixin
+from ..container import Container
from ..libs import WinForms
+from .base import WidgetMixin
from System import Drawing
@@ -12,18 +13,22 @@ class TogaOptionContainer(WinForms.TabControl... |
Update installation.md
Added missing \ in line 70 | @@ -67,7 +67,7 @@ docker run -d \
--restart=unless-stopped \
--mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 \
--device /dev/bus/usb:/dev/bus/usb \
- --device /dev/dri/renderD128
+ --device /dev/dri/renderD128 \
-v <path_to_directory_for_media>:/media/frigate \
-v <path_to_config_file>:/config/config.yml:ro ... |
DOC: Added missing example to stats.mstats.variation
DOC: add example to stats.mstats.variation | @@ -2157,6 +2157,21 @@ def variation(a, axis=0):
-----
For more details about `variation`, see `stats.variation`.
+ Examples
+ --------
+ >>> from scipy.stats.mstats import variation
+ >>> a = np.array([2,8,4])
+ >>> variation(a)
+ 0.5345224838248487
+ >>> b = np.array([2,8,3,4])
+ >>> c = np.ma.masked_array(b, mask=[0... |
Update tdvt.py
type hints
add more detail to the cl test summary | @@ -18,7 +18,7 @@ import threading
import time
import zipfile
from pathlib import Path
-from typing import List, Tuple, Union
+from typing import List, Optional, Tuple, Union
from .config_gen.datasource_list import print_ds, print_configurations, print_logical_configurations
from .config_gen.tdvtconfig import TdvtInvoc... |
Fix isort
Summary: builds failing - isort 5, released today, is not compatible w/ current pylint
Test Plan: buildkite
Reviewers: schrockn, max, alangenfeld, sashank | @@ -2,7 +2,7 @@ black==19.10b0; python_version >= '3.6'
coverage==4.5.4 # 5.0 release on 12/19 broke everything
flake8>=3.7.8
grpcio-tools==1.30.0
-isort>=4.3.21
+isort<5,>=4.3.21
mock==3.0.5
pytest-mock==2.0.0
nbsphinx==0.4.2
|
Restores test_parquet in http
Closes This test is not failing anymore. Parameterizes the test on
the two engines, pyarrow and fastparquet. Pyarrow was not available when
the test was originally written but has since become available. | @@ -171,17 +171,18 @@ def test_open_glob(dir_server):
@pytest.mark.network
-@pytest.mark.xfail(reason="https://github.com/dask/dask/issues/5042", strict=False)
-def test_parquet():
+@pytest.mark.parametrize("engine", ("pyarrow", "fastparquet"))
+def test_parquet(engine):
pytest.importorskip("requests", minversion="2.21... |
Fixed following on flowlist
Fixed a focus_follow was missed when options were cleaned up. | @@ -396,7 +396,7 @@ class FlowListBox(urwid.ListBox):
)
elif key == "F":
o = self.master.options
- o.focus_follow = not o.focus_follow
+ o.console_focus_follow = not o.console_focus_follow
elif key == "v":
val = not self.master.options.console_order_reversed
self.master.options.console_order_reversed = val
|
DOC: fix documentation for typedescr argument of PyArray_AsCArray
The PyArray_AsCArray API does not conform to the documentation and
document that the call steals a reference to the PyArray_Descr argument. | @@ -2176,8 +2176,8 @@ Array Functions
^^^^^^^^^^^^^^^
.. c:function:: int PyArray_AsCArray( \
- PyObject** op, void* ptr, npy_intp* dims, int nd, int typenum, \
- int itemsize)
+ PyObject** op, void* ptr, npy_intp* dims, int nd, \
+ PyArray_Descr* typedescr)
Sometimes it is useful to access a multidimensional array as ... |
fix test regexp
On OpenBSD the output is
sh: <filename>: cannot execute - Is a directory | @@ -64,7 +64,7 @@ scons: \\*\\*\\* \\[%s\\] Error 1
"""
cannot_execute = """\
-(sh: )*.+: cannot execute( \\[Is a directory\\])?
+(sh: )*.+: cannot execute(( -)? \\[?Is a directory\\]?)?
scons: \\*\\*\\* \\[%s\\] Error %s
"""
|
Handle non-user bans when iterating banned participants
Closes | @@ -233,6 +233,9 @@ class _ParticipantsIter(RequestIter):
for participant in participants.participants:
if isinstance(participant, types.ChannelParticipantBanned):
+ if not isinstance(participant.peer, types.PeerUser):
+ # May have the entire channel banned. See #3105.
+ continue
user_id = participant.peer.user_id
else... |
Guard against extraneous axes in Hist.fill
Fixes | @@ -875,7 +875,7 @@ class Hist(AccumulatorABC):
Note
----
The reserved keyword ``weight``, if specified, will increment sum of weights
- by the given column values, which must have the same dimension as all other
+ by the given column values, which must be broadcastable to the same dimension as all other
columns. Upon ... |
Update speech_model_adaptation_beta_test.py
chore: shorten the ids. | @@ -40,7 +40,8 @@ def test_model_adaptation_beta(custom_class_id, phrase_set_id, capsys):
@pytest.fixture
def custom_class_id():
- custom_class_id = f"customClassId{uuid.uuid4()}"
+ # The custom class id can't be too long
+ custom_class_id = f"customClassId{str(uuid.uuid4())[:8]}"
yield custom_class_id
# clean up resou... |
[docs] mention IO manager docs in the migration guide
Summary:
Test Plan: NA
Reviewers: sandyryza, cdecarolis | @@ -37,7 +37,8 @@ into any problems with new new scheduler.
We have deprecated "intermediate storage". Loading inputs and storing outputs are now handled by
"IO managers", which serve the same purpose as intermediate storages but offer you better
-control over how inputs are loaded and outputs are handled.
+control ove... |
operations.regen: collapse repo pkgs to list before regen starts
To avoid threading issues arising from scanning for matches inside
various threads since the iterator isn't thread-safe. | @@ -32,8 +32,11 @@ def regen_repository(repo, observer, threads=1, pkg_attr='keywords', **kwargs):
helpers.append(helper)
return helper
- # force usage of unfiltered repo to include pkgs with metadata issues
- pkgs = repo.itermatch(packages.AlwaysTrue, pkg_filter=None)
+ # Force usage of unfiltered repo to include pkgs... |
fix tests
due to changes in the loading mechansim they need to be fethced now | @@ -19,6 +19,7 @@ from .templatetags import inventree_extras
import part.settings
from common.models import InvenTreeSetting, NotificationEntry, NotificationMessage
+from common.notifications import storage
class TemplateTagTest(TestCase):
@@ -494,6 +495,9 @@ class BaseNotificationIntegrationTest(TestCase):
self.part =... |
remove requests package install in tests
We're only interested in testing if the virtual environment can be
successfully created. | @@ -59,7 +59,7 @@ def test_venv_file_with_name(PipenvInstance, pypi):
if 'PIPENV_VENV_IN_PROJECT' in os.environ:
del os.environ['PIPENV_VENV_IN_PROJECT']
- c = p.pipenv('install requests')
+ c = p.pipenv('install')
assert c.return_code == 0
venv_loc = Path(p.pipenv('--venv').out.strip())
@@ -80,7 +80,7 @@ def test_venv... |
Update the changes made to _request method
Forgot to include 'return' | @@ -47,7 +47,7 @@ def _request(blink, url='http://google.com', data=None, headers=None,
(response.json()['code'], response.json()['message']))
else:
headers = _attempt_reauthorization(blink)
- _request(blink, url=url, data=data, headers=headers,
+ return _request(blink, url=url, data=data, headers=headers,
reqtype=reqt... |
SSYNC: log body of errors in SSYNC subrequests
It helps an operator to understand why an SSYNC replication is not
progressing on a specific partition. | @@ -478,8 +478,8 @@ class Receiver(object):
successes += 1
else:
self.app.logger.warning(
- 'ssync subrequest failed with %s: %s %s' %
- (resp.status_int, method, subreq.path))
+ 'ssync subrequest failed with %s: %s %s (%s)' %
+ (resp.status_int, method, subreq.path, resp.body))
failures += 1
if failures >= self.app.re... |
LandBOSSE second integration
Set all lift heights to be equal to the hub height. | @@ -661,12 +661,17 @@ class LandBOSSE_API(om.ExplicitComponent):
# Make the hub
hub_mass_kg = inputs['hub_mass'][0]
hub = input_components[input_components['Component'].str.startswith('Hub')].iloc[0].copy()
+ hub['Lift height m'] = hub_height_meters
if hub_mass_kg != use_default_component_data:
hub['Mass tonne'] = hub_... |
Update README.rst
Fix logo spacing that was accidentally committed to main. :/ | @@ -28,7 +28,7 @@ on existing infrastructure including clouds, clusters, and supercomputers.
.. image:: docs/img/funcx-logo.png
:target: https://www.funcx.org
- :width: 400
+ :width: 200
Website: https://www.funcx.org
|
CI: Remove multiple hashFiles instances in a single step.
hashFiles supports passing multiple filenames, and using this feature results in
much cleaner keys.
Fixes: | @@ -69,7 +69,7 @@ jobs:
uses: actions/cache@v3
with:
path: /srv/zulip-npm-cache
- key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
+ key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json', 'yarn.lock') }}
restore-keys: v1-yarn-deps-${{ matrix.os }}
- name: Resto... |
output_padding argument for ConvTranspose2D
Sometime it is necessary to use it in order to make the ConvTraspose2D
to recover the original input size of the corresponding Conv2D. | @@ -1277,6 +1277,7 @@ class ConvTranspose2D(nn.Module):
activation=torch.relu_,
strides=1,
padding=0,
+ output_padding=0,
use_bias=None,
use_bn=False,
kernel_initializer=None,
@@ -1295,6 +1296,9 @@ class ConvTranspose2D(nn.Module):
activation (torch.nn.functional):
strides (int or tuple):
padding (int or tuple):
+ outp... |
Adds SPARSE DATA print stmt and commented-out logl-term checks.
(added to core.py, used in debugging) | @@ -1207,6 +1207,7 @@ def do_mc2gst(dataset, startModel, circuitsToUse,
firsts = _np.array(firsts, 'i')
indicesOfCircuitsWithOmittedData = _np.array(indicesOfCircuitsWithOmittedData, 'i')
dprobs_omitted_rowsum = _np.empty((len(firsts), vec_gs_len), 'd')
+ printer.log("SPARSE DATA: %d of %d rows have sparse data" % (len... |
Update unscanned_table_summary.sql
added type to number of nodes, changed storage size calculations | @@ -16,20 +16,29 @@ truely unscanned over longer periods of time.
History:
2016-01-18 chriz-bigdata created
+2020-11-17 marynap chnaged storage calculation
**********************************************************************************************/
+
WITH
- nodes AS (SELECT COUNT(DISTINCT node) nodenum FROM stv_slic... |
Unlink the BIT-Vehicle dataset
Its webpage has been down for a couple of weeks now, and it's breaking our
link checking job. We'll have to remove the link, at least for now. | @@ -25,7 +25,7 @@ the "Barrier" use case.
Average Precision (AP) is defined as an area under the
[precision/recall](https://en.wikipedia.org/wiki/Precision_and_recall)
-curve. Validation dataset is [BIT-Vehicle](http://iitlab.bit.edu.cn/mcislab/vehicledb/).
+curve. Validation dataset is BIT-Vehicle.
## Performance
|
Modify incorrect registry test cases
Registry object has no attributes 'cpuset' and 'cpu_policy' | @@ -26,9 +26,7 @@ class TestRegistryObject(base.DbTestCase):
def setUp(self):
super(TestRegistryObject, self).setUp()
- self.fake_cpuset = utils.get_cpuset_dict()
- self.fake_registry = utils.get_test_registry(
- cpuset=self.fake_cpuset, cpu_policy='dedicated')
+ self.fake_registry = utils.get_test_registry()
def test_... |
Update kubernetes authentication example
to use the current API call rather than the deprecated one. | @@ -9,4 +9,4 @@ Authentication
# Kubernetes (from k8s pod)
f = open('/var/run/secrets/kubernetes.io/serviceaccount/token')
jwt = f.read()
- client.auth_kubernetes("example", jwt)
+ client.auth.kubernetes.login("example", jwt)
|
fix code example for pyspark_resource
Test Plan: bk
Reviewers: nate, max | @@ -34,8 +34,19 @@ def pyspark_resource(init_context):
Example:
- .. literalinclude:: ../../../../../examples/basic_pyspark/repo.py
- :language: python
+ .. code-block:: python
+ @solid(required_resource_keys={"pyspark"})
+ def my_solid(context):
+ spark_session = context.pyspark.spark_session
+ dataframe = spark_sessi... |
Fix datasourceproviders to deserialize as text
* Fix 2970 issue with datasources where the DatasourceProvider output
was being deserialized as raw instead of text | @@ -1076,4 +1076,4 @@ def serialize_datasource_provider(obj, root):
@deserializer(DatasourceProvider)
def deserialize_datasource_provider(_type, data, root):
- return SerializedRawOutputProvider(data["relative_path"], root)
+ return SerializedOutputProvider(data["relative_path"], root)
|
WordPress exclusion profile improvements
rule should skip over the WP rules in phase:2 when inactive
add more wp_http_referer FP exclusions
nav-menus should also be excluded on edit
add more exclusions to nav-menus | @@ -270,7 +270,7 @@ SecRule REQUEST_FILENAME "!@contains /wp-admin/" \
SecRule REQUEST_FILENAME "!@contains /wp-admin/" \
"id:9002401,\
- phase:1,\
+ phase:2,\
pass,\
t:none,\
nolog,\
@@ -411,21 +411,23 @@ SecAction \
nolog,\
ctl:ruleRemoveTargetById=920230;ARGS:_wp_http_referer,\
ctl:ruleRemoveTargetById=931130;ARGS:_... |
Update mkvtomp4.py
fix case sensitivity issues | @@ -845,7 +845,7 @@ class MkvtoMp4:
x, lang = os.path.splitext(subname)
while '.forced' in lang or '.default' in lang or lang.replace('.', "").isdigit():
x, lang = os.path.splitext(x)
- lang = lang[1:]
+ lang = lang[1:].lower()
# Using bablefish to convert a 2 language code to a 3 language code
if len(lang) == 2:
try:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.