message
stringlengths
13
484
diff
stringlengths
38
4.63k
forms: Mark a bunch of error strings for translation. These error messages weren't marked for translation. DEACTIVATED_ACCOUNT_ERROR and PASSWORD_TOO_WEAK_ERROR are used in several places and imported, so we can't move them to be in-line errors and we keep them at top-level, marked with gettext_lazy.
@@ -14,6 +14,7 @@ from django.http import HttpRequest from django.urls import reverse from django.utils.http import urlsafe_base64_encode from django.utils.translation import gettext as _ +from django.utils.translation import gettext_lazy from markupsafe import Markup as mark_safe from two_factor.forms import Authentic...
Port appears twice for localhost * Port appears twice for localhost Minor fix for bug that shows during start, which may confuse student developers. * Minor fixes
@@ -28,6 +28,8 @@ from qiita_core.qiita_settings import qiita_config, r_client from qiita_ware.ebi import EBISubmission from qiita_ware.commands import submit_EBI as _submit_EBI +from re import search + try: conn = qdb.sql_connection.SQLConnectionHandler() @@ -306,7 +308,14 @@ def start(port, master): else: raise base_...
Changelog entry for PR Reference Jenkins CI tests and set development status to Beta.
# Pending additions - [#717](https://github.com/helmholtz-analytics/heat/pull/717) Switch CPU CI over to Jenkins and pre-commit to GitHub action. - [#720](https://github.com/helmholtz-analytics/heat/pull/720) Ignore test files in codecov report and allow drops in code coverage. +- [#736](https://github.com/helmholtz-an...
fix: calculate ex ratio correctly We had lost a negative sign accidentally in
@@ -781,7 +781,7 @@ def character_ratio(style, character): ink_extents = ffi.new('PangoRectangle *') pango.pango_layout_line_get_extents(line, ink_extents, ffi.NULL) if character == 'x': - measure = units_to_double(ink_extents.y) + measure = -units_to_double(ink_extents.y) else: measure = units_to_double(ink_extents.wi...
Selection Rectangle Works. Missing the left directional cross select.
@@ -816,10 +816,32 @@ class RectSelectWidget(Widget): return RESPONSE_CONSUME elif event_type == 'move': self.end_location = space_pos + elements.validate_bounds() for obj in elements.elems(): - # r = Rect(self.start_location, self.end_location) - # q = Rect(obj.bounds) - pass + sx = self.start_location[0] + sy = self....
fix flake8 issues unexpected spaces around keyword / parameter equals continuation line unaligned for hanging indent max line length 79 are incompatible with very long variable names...
@@ -94,11 +94,11 @@ def async_add_entities_config(hass, config, async_add_entities): group_address_tunable_white = None group_address_tunable_white_state = None - group_address_color_temperature = None - group_address_color_temperature_state = None + group_address_color_temp = None + group_address_color_temp_state = No...
WebUI: Fix RSE expression syntax Additionally, the flow was modified so that the page may be correctly loaded, even if either of the two requests fails.
* - Thomas Beermann, <thomas.beermann@cern.ch>, 2014-2015 * - Stefan Prenner, <stefan.prenner@cern.ch>, 2017-2018 * - Hannes Hansen, <hannes.jakob.hansen@cern.ch>, 2018 + * - Dimitrios Christidis, <dimitrios.christidis@cern.ch>, 2019 */ html_replicas_base = '<div id="t_replicas" class="columns panel">' + @@ -877,33 +87...
DOC: added display tutorial Added an instrument display tutorial, removed 2.x specific text and replaced it with a link to the pysat ecosystem wiki page.
@@ -35,45 +35,43 @@ up to four parameters =============== =================================== **Identifier** **Description** --------------- ----------------------------------- - platform General platform instrument is on + platform Name of the platform supporting the instrument name Name of the instrument - tag Label ...
Update subscriber example in README to current patterns. Closes
@@ -90,9 +90,9 @@ messages to it .. code-block:: python import os - from google.cloud import pubsub + from google.cloud import pubsub_v1 - publisher = pubsub.PublisherClient() + publisher = pubsub_v1.PublisherClient() topic_name = 'projects/{project_id}/topics/{topic}'.format( project_id=os.getenv('GOOGLE_CLOUD_PROJECT...
Update apt_gamaredon.txt Chinese APT instead:
@@ -7637,16 +7637,6 @@ film.plazma.nagaimo.ru luckily7.freebsdo.ru released.luckily7.freebsdo.ru -# Reference: https://twitter.com/ShadowChasing1/status/1506573766456864770 -# Reference: https://www.virustotal.com/gui/file/3001f0a05df31eee89d1bb3721b9cd060c1f20088d4e91bc1d0b243ba73e36f8/detection - -microtreely.com - -...
stdlib/selectors: change timeout argument type to float The Selector's code internally uses select.select and passes the timeout argument to it. The documentation explicitly states the timeout is a floating point number:
@@ -37,7 +37,7 @@ class BaseSelector(metaclass=ABCMeta): def modify(self, fileobj: _FileObject, events: _EventMask, data: Any = ...) -> SelectorKey: ... @abstractmethod - def select(self, timeout: Optional[int] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ... + def select(self, timeout: Optional[float] = ...) -> Lis...
library/projections/associativeprojection: Explicitly set type of np.full This used to always return array of np.float, but starting in numpy-1.12[0] it returns the same type as fill value. Set the type explicitly to preserve behaviour and avoid the warning. [0]
@@ -519,11 +519,11 @@ def get_hetero_matrix(raw_hetero, size): # similar to get_hetero_matrix() above def get_auto_matrix(raw_auto, size): if isinstance(raw_auto, numbers.Number): - return np.diag(np.full(size, raw_auto)) + return np.diag(np.full(size, raw_auto, dtype=np.float)) elif ((isinstance(raw_auto, np.ndarray) ...
fix: more proper exception raised if TaskAdapter missing readable handler. Also better warning.
@@ -32,7 +32,7 @@ class TaskAdapter(logging.LoggerAdapter): ) is_process_dummy = logger.name.endswith("_process") if not is_readable and not is_process_dummy: - warnings.warn("Task logger does not have ability to be read. Past history of the task cannot be utilized.") + warnings.warn(f"Logger '{logger.name}' for task '...
Raise more specific errors when SSL handshake fails Always raise CertificateError directly.
@@ -29,6 +29,12 @@ except ImportError: class SSLError(socket.error): pass +try: + from ssl import CertificateError as _SSLCertificateError +except ImportError: + class _SSLCertificateError(ValueError): + pass + from bson import DEFAULT_CODEC_OPTIONS from bson.py3compat import imap, itervalues, _unicode, integer_types @...
IECoreArnoldPreview : Remove unused lambda captures Fixes OSX build: src/GafferArnold/IECoreArnoldPreview/Renderer.cpp:2530:4: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
@@ -2527,7 +2527,7 @@ void LightFilterConnections::update() parallel_for( m_connections.range(), - [this, &deregistered]( ConnectionsMap::range_type &range ) + [&deregistered]( ConnectionsMap::range_type &range ) { for( auto it = range.begin(); it != range.end(); ++it ) {
Predicate: minor refactoring TN:
@@ -446,10 +446,10 @@ class Predicate(AbstractExpression): ]) # Append the debug image for the predicate - closure_exprs.append(LiteralExpr('"{}.{}"'.format( + closure_exprs.append(untyped_literal_expr('"{}.{}"'.format( self.pred_property.name.camel_with_underscores, self.pred_property.struct.name().camel_with_undersco...
Update setup-remote.md Fixed link towards mumbai polygon scan
@@ -119,7 +119,7 @@ To get free (fake) MATIC on Mumbai: 2. Request funds for ADDRESS1 3. Request funds for ADDRESS2 -You can confirm receiving funds by going to the following url, and seeing your reported MATIC balance: `https://mumbai.polygonscan.com/<ADDRESS1 or ADDRESS2>` +You can confirm receiving funds by going to...
Fix direct patches of methods in test_versionhandler.py Direct patches of methods in unit test may cause errors in other tests. I use the form of decorators to fix them.
import mock import six -from sahara.plugins.vanilla.hadoop2 import run_scripts as run -from sahara.plugins.vanilla.hadoop2 import starting_scripts as s_scripts from sahara.plugins.vanilla.v2_7_1.edp_engine import EdpOozieEngine from sahara.plugins.vanilla.v2_7_1.edp_engine import EdpSparkEngine from sahara.plugins.vani...
Added possibility to propagate collected variant context.data["variant"] might be filled only by collect_batch_data, which should take precedence
@@ -22,9 +22,11 @@ class CollectWorkfile(pyblish.api.ContextPlugin): break family = "workfile" + # context.data["variant"] might come only from collect_batch_data + variant = context.data.get("variant") or self.default_variant subset = get_subset_name_with_asset_doc( family, - self.default_variant, + variant, context.d...
fix bbox format in flip_bbox bbox is in range of [0, H] or [0, W]
@@ -26,13 +26,13 @@ def flip_bbox(bbox, size, y_flip=False, x_flip=False): H, W = size bbox = bbox.copy() if y_flip: - y_max = H - 1 - bbox[:, 0] - y_min = H - 1 - bbox[:, 2] + y_max = H - bbox[:, 0] + y_min = H - bbox[:, 2] bbox[:, 0] = y_min bbox[:, 2] = y_max if x_flip: - x_max = W - 1 - bbox[:, 1] - x_min = W - 1 -...
fix typo in 05_laplace.ipynb fix typo in 05_laplace.ipynb
"metadata": {}, "source": [ "Ok, nice. Now, to re-create this example in Devito we need to look a little bit further under the hood. There are two things that make this different to the examples we covered so far:\n", - "* We have no time dependence in the `p` field, but we still need to advance the state of p in betwe...
Fix git sha detection in gunicorn_start This script doesn't run within the git directory so we need to specify the git path.
@@ -34,7 +34,7 @@ export PYTHONPATH=$APPS_ROOT:$PYTHONPATH export NEW_RELIC_CONFIG_FILE="$REPO_ROOT/newrelic.ini" export NEW_RELIC_ENVIRONMENT=$ENV -export SOURCE_COMMIT_ID="$(git rev-parse HEAD)" +export SOURCE_COMMIT_ID="$(git --git-dir="$REPO_ROOT/.git" rev-parse HEAD)" echo "Starting $NAME" echo "whoami: $(whoami)"...
TreeSource: test removing another child to confirm that we get a different index in the notification callback
@@ -666,7 +666,7 @@ class TreeSourceTests(TestCase): listener = Mock() source.add_listener(listener) - # Remove the child element + # Remove "third.two" node = source.remove(source[2][1]) self.assertEqual(len(source), 3) @@ -674,6 +674,14 @@ class TreeSourceTests(TestCase): listener.remove.assert_called_once_with(item=...
Fixed getter for zoom sensitivity There was a copy paste error with the zoom sensitivity
@@ -561,7 +561,7 @@ class OrbitCamera(Camera): This property can also be set:: camera.zoom_sensitivity = 2.5 """ - return self._mouse_sensitivity + return self._zoom_sensitivity @zoom_sensitivity.setter def zoom_sensitivity(self, value: float):
Unparsers: reject inconsistent postfix parsers for regular nodes TN:
@@ -812,6 +812,11 @@ class RegularNodeUnparser(NodeUnparser): other_inter ) + self.post_tokens.check_equivalence( + 'postfix tokens for {}'.format(self.node.dsl_name), + other.post_tokens + ) + result = RegularNodeUnparser(self.node) result.pre_tokens = self.pre_tokens result.post_tokens = self.post_tokens
Added autospec=True to test_disks.py unit test Added autospec=True to "patch" instructions Extracted patches from "with" block and pre-defined them to improve the code readability
@@ -117,9 +117,13 @@ class DisksGrainsTestCase(TestCase, LoaderModuleMockMixin): "1", "1", ] - with patch("glob.glob", MagicMock(return_value=files)), patch( - "salt.utils.path.readlink", MagicMock(side_effect=links) - ), patch("salt.utils.files.fopen", mock_open(read_data=contents)): + + patch_glob = patch("glob.glob"...
Updated README.md: Small Changes
@@ -4,7 +4,7 @@ Analyze FPGA tool performance (MHz, resources, runtime, etc) ## Setup environment -fpga-tool-perf uses the Anaconda/Miniconda (conda) package manager to install and get all the required tools. +fpga-tool-perf uses the Miniconda (conda) package manager to install and get all the required tools. Currently...
osd: validate devices variable input Fail with a sane message if the devices or raw_journal_devices variables are strings instead of lists during manual device assignment.
- not osd_auto_discovery - devices|length == 0 +- name: make sure the devices variable is a list + fail: + msg: "devices: must be a list, not a string, i.e. [ \"/dev/sda\" ]" + when: + - osd_group_name is defined + - osd_group_name in group_names + - not osd_auto_discovery + - devices is string + - name: verify journal...
Pin pytest-django to <3.2.0 while we're still not on Django 1.11 * pytest-django 3.2.0 dropped Django 1.8 support Refs
@@ -33,7 +33,7 @@ pytest-cache==1.0 \ --hash=sha256:be7468edd4d3d83f1e844959fd6e3fd28e77a481440a7118d430130ea31b07a9 pytest-django==3.1.2 \ --hash=sha256:038ccc5a9daa1b1b0eb739ab7dce54e495811eca5ea3af4815a2a3ac45152309 \ - --hash=sha256:00995c2999b884a38ae9cd30a8c00ed32b3d38c1041250ea84caf18085589662 + --hash=sha256:00...
Additional information 1. Link to details on what and how to include information in a .env file 2. Clarify how to activate the FORWARDED_ALLOW_IPS environment variable for those situations where the proxy is not at the default 127.0.0.1 (most often inside a Docker container.
+#For more information on .env files, their content and format: https://pypi.org/project/python-dotenv/ + HOST=127.0.0.1 PORT=5000 -# uvicorn variable, allow https behind a proxy +# uvicorn variable, uncomment to allow https behind a proxy # FORWARDED_ALLOW_IPS="*" DEBUG=false
bug fix - step selection query in tags Summary: fix `!(tag.key in ["dagster/is_resume_retry", "dagster/step_selection"])` in D3065 it would always be false Test Plan: `dagster/step_selection` doesn't get passed to a child run e.g. a full pipeline run {F146367} Reviewers: max, bengotow, prha
@@ -169,10 +169,14 @@ function getExecutionMetadata( parentRunId: run.runId, rootRunId: run.rootRunId ? run.rootRunId : run.runId, tags: [ + // Clean up tags related to run grouping once we decide its persistence + // https://github.com/dagster-io/dagster/issues/2495 ...run.tags .filter( tag => - !(tag.key in ["dagster...
Update calix_b6.py Moved def __init__(self, *args, **kwargs): super(CalixB6SSH, self).__init__(*args, **kwargs) from CalixB6Base to CalixB6SSH
@@ -21,7 +21,6 @@ class CalixB6Base(CiscoSSHConnection): def __init__(self, *args, **kwargs): default_enter = kwargs.get('default_enter') kwargs['default_enter'] = '\r\n' if default_enter is None else default_enter - super(CalixB6SSH, self).__init__(*args, **kwargs) def session_preparation(self): """Prepare the session...
fix: add cloudvolume.datasource.graphene to packages docs: add Windows 10 Trove classifier
@@ -30,6 +30,7 @@ setuptools.setup( 'cloudvolume', 'cloudvolume.datasource', 'cloudvolume.datasource.boss', + 'cloudvolume.datasource.graphene', 'cloudvolume.datasource.precomputed', 'cloudvolume.frontends', 'cloudvolume.storage', @@ -61,6 +62,7 @@ setuptools.setup( "Intended Audience :: Science/Research", "Operating S...
doc: Path not provided for "check_message" and "do_send_message". In the documentation of the "Sending messages," path for the `check_message` and `do_send_message` function is not provided. So, I added the path of both for future contributors.
@@ -70,12 +70,12 @@ number of purposes: `apply_markdown` and `client_gravatar` features in our [events API docs](https://zulip.com/api/register-queue)). * Following our standard naming convention, input validation is done - inside the `check_message` function, which is responsible for + inside the `check_message` funct...
Don't confirm overwrite when appending to a .h5 file For this, we need to use a Qt dialog, because the native does not seem to emit filterSelected
@@ -146,6 +146,9 @@ class SaveAction(PlotAction): SCATTER_FILTER_NXDATA = 'Scatter as NXdata (%s)' % _NEXUS_HDF5_EXT_STR DEFAULT_SCATTER_FILTERS = (SCATTER_FILTER_NXDATA,) + DEFAULT_ALL_NXDATA_FILTERS = (CURVE_FILTER_NXDATA, IMAGE_FILTER_NXDATA, + SCATTER_FILTER_NXDATA) + def __init__(self, plot, parent=None): self._fi...
Update README.md add `Known Issues` to the TOC.
@@ -10,6 +10,7 @@ This project consists of documentation, example files, a Python-based test harne * [Prerequisites](#prerequisites) * [Get Help](#get-help) * [FAQ](#faq) +* [Known Issues](#known-issues) * [Contributions](#contributions) # Why Connectors?
[ci] Always assume num executors == 1 This is true now and we've seen problems like This could have arisen from the EC2 user data script that is supposed to set up this env variable failing or something, but we don't really need it in the first place.
@@ -63,9 +63,6 @@ if __name__ == "__main__": logging.info("===== sccache stats =====") sh.run("sccache --show-stats") - if "CI" in os.environ: - executors = int(os.environ["CI_NUM_EXECUTORS"]) - else: executors = int(os.environ.get("CI_NUM_EXECUTORS", 1)) nproc = multiprocessing.cpu_count()
Lexus: add FW for 2020 Lexus RX Hybrid add: fingerprint for lexus rxh h 2020
@@ -1823,15 +1823,18 @@ FW_VERSIONS = { b'\x02348Y3000\x00\x00\x00\x00\x00\x00\x00\x00A4802000\x00\x00\x00\x00\x00\x00\x00\x00', b'\x0234D14000\x00\x00\x00\x00\x00\x00\x00\x00A4802000\x00\x00\x00\x00\x00\x00\x00\x00', b'\x0234D16000\x00\x00\x00\x00\x00\x00\x00\x00A4802000\x00\x00\x00\x00\x00\x00\x00\x00', + b'\x02348X4...
translates .c code ops_translator running and generating CUDA
@@ -27,5 +27,6 @@ class CompilerOPS(configuration['compiler'].__class__): c_file.close() h_file.close() + # Calling OPS Translator translator = '%s/../ops_translator/c/ops.py' % (self._ops_install_path) - subprocess.run([translator,c_file.name]) \ No newline at end of file + subprocess.run([translator, c_file.name], cw...
Update Dictionaries.md Organizing the layout of the sections and updating the code.
@@ -58,43 +58,32 @@ Add "Jake" to the phonebook with the phone number 938273443, and remove Jill fro Tutorial Code ------------- +# write your code here phonebook = { "John" : 938477566, "Jack" : 938377264, "Jill" : 947662781 } -# write your code here - - -# testing code -if "Jake" in phonebook: - print("Jake is listed...
Update hist_scipy.py example It seems like normed=True argument is no longer accepted.
@@ -18,7 +18,7 @@ def display_histogram_scipy(bench, mean, bins): pylab.plot(values, fit, '-o', label='mean-stdev') plt.legend(loc='upper right', shadow=True, fontsize='x-large') - pylab.hist(values, bins=bins, normed=True) + pylab.hist(values, bins=bins) pylab.show()
Add test for vertical bars This was one of the suggestions in We just replicate the init and configure test for widgets that support vertical bars.
@@ -27,7 +27,7 @@ import libqtile.config import libqtile.confreader import libqtile.layout import libqtile.widget as widgets -from libqtile.widget.base import ORIENTATION_VERTICAL +from libqtile.widget.base import ORIENTATION_BOTH, ORIENTATION_VERTICAL from libqtile.widget.clock import Clock from libqtile.widget.crashm...
Correction: File solv01.py Identifier 'max' changed in 'maxNumber' , since 'max' is a function.
@@ -17,7 +17,7 @@ def isprime(no): return False return True -max=0 +maxNumber = 0 n=int(input()) if(isprime(n)): print n @@ -31,8 +31,8 @@ else: for i in range(3,n1,2): if(n%i==0): if(isprime(n/i)): - max=n/i + maxNumber = n/i break elif(isprime(i)): - max=i - print max + maxNumber = i + print maxNumber
API documentation for mango execution stats Adds basic documentation for the execution stats parameter in Mango/Query.
*Optional* :<json number skip: Skip the first 'n' results, where 'n' is the value specified. *Optional* - :<json array sort: JSON array following :ref:`sort syntax <find/sort>`. + :<json json sort: JSON array following :ref:`sort syntax <find/sort>`. *Optional* :<json array fields: JSON array specifying which fields of...
Update terminology in element list Subject to change
@@ -186,7 +186,7 @@ i (a: any, b: number) = a[b] # index (a: any, b: [x, y, m]) = a[x:y:m] # index, xth to yth item step m items, needs wrapping index j (a: any, b: any) = a.join(b) # join k = * constant digraphs (see near the end of docs) -l (a: any, b: number) = n-wise_group(a, b) # Cummulative grouping/pairing +l (a...
Fix testLossLearnerDifferentDistStratDQN on GPUs. Add 4 logical GPU devices for one physical GPU to test MirroredStrategy on 4 mini-batches.
@@ -43,14 +43,24 @@ class LearnerTest(test_utils.TestCase, parameterized.TestCase): def setUp(self): super(LearnerTest, self).setUp() - devices = tf.config.list_physical_devices('CPU') + devices_cpu = tf.config.list_physical_devices('CPU') + devices_gpu = tf.config.list_physical_devices('GPU') tf.config.experimental.se...
Serve static in production mode This change is requried to deliver a Galaxy application as a standalone container, which does not requre by default any additional web server (e.g. nginx) to serve static, so it can run autonomously.
# along with Galaxy. If not, see <http://www.apache.org/licenses/>. from django.conf.urls import patterns, url -from galaxy.main.views import RoleListView, RoleDetailView, NamespaceListView from django.conf import settings -from django.contrib.staticfiles.views import serve as serve_static from django.views.decorators....
tests: replace unecessary `map()` call in test_live caught by flake8
@@ -184,14 +184,10 @@ def checkpoints_metric(show_results, metric_file, metric_name): tmp.pop("workspace") tmp = first(tmp.values()) tmp.pop("baseline") - return list( - map( - lambda exp: exp["data"]["metrics"][metric_file]["data"][ - metric_name - ], - list(tmp.values()), - ) - ) + return [ + exp["data"]["metrics"][m...
Disambiguate which executor blocks are launched on Elaborate on x->y notation to be clear what the x and y values are in the log message
@@ -177,7 +177,7 @@ class BlockProviderExecutor(ParslExecutor): launch_cmd = self._get_launch_command(block_id) job_id = self.provider.submit(launch_cmd, 1) if job_id: - logger.debug("Launched block {}->{}".format(block_id, job_id)) + logger.debug(f"Launched block {block_id} on executor {self.label} with job ID {job_id...
Add example for scipy stats.trim1 under docstring initialize a as np.arange(20), apply trim, 50%, to the left, assign result to b and print b
@@ -3324,6 +3324,14 @@ def trim1(a, proportiontocut, tail='right', axis=0): Trimmed version of array `a`. The order of the trimmed content is undefined. + Examples + -------- + >>> from scipy import stats + >>> a = np.arange(20) + >>> b = stats.trim1(a, 0.5, 'left') + >>> b + array([10, 11, 12, 13, 14, 16, 15, 17, 18, ...
ebuild.profiles: _load_and_invoke(): don't catch/rethrow all exceptions as ProfileErrors Since non-ProfileError exceptions are generally internal errors and should dump a traceback so as not to look like regular error cases.
@@ -113,12 +113,7 @@ def _load_and_invoke(func, filename, handler, fallback, read_func, if handler: data = handler(data) return func(self, data) - except IGNORED_EXCEPTIONS: - raise - except ProfileError: - # no point in wrapping/throwing.. - raise - except Exception as e: + except (ValueError, IndexError) as e: raise ...
Add more temporary logging to Swarming to debug /poll timeouts. Review-Url:
@@ -267,10 +267,7 @@ class _BotBaseHandler(_BotApiHandler): REQUIRED_STATE_KEYS = {u'running_time', u'sleep_streak'} def _process(self): - """Returns True if the bot has invalid parameter and should be automatically - quarantined. - - Does one DB synchronous GET. + """Fetches bot info and settings, does authorization a...
Update release notes generator Tested-by: Build Bot Tested-by: Ellis Breen
@@ -25,7 +25,7 @@ soup = BeautifulSoup(relnotes_raw.text, 'html.parser') content = soup.find("section", class_="aui-page-panel-content") outputdir = os.path.join("build") -date = datetime.date.today().strftime("%B {day} %Y").format(day=datetime.date.today().day) +date = datetime.date.today().strftime("{day} %B %Y").for...
chore(dcos-ui): update package to 1.10.0-rc.8 Update the DC/OS UI package to include the latest fixes and improvements. #close
"single_source" : { "kind": "git", "git": "https://github.com/dcos/dcos-ui.git", - "ref": "8702cc371a8773a151ba4ab1545a763c0c24af93", - "ref_origin": "v1.10.0-rc.7" + "ref": "03ba84aac9ac5a93f641e7bf54993ab6d76f4791", + "ref_origin": "v1.10.0-rc.8" } }
remove dependency on qtconsole for debian8: Apparently this is not needed with recent ipython (>2)
@@ -25,7 +25,6 @@ Build-Depends: cython, python-pyopencl-dbg, python-mako, ipython, - ipython-qtconsole, python-matplotlib, python-matplotlib-dbg, python-opengl, @@ -50,7 +49,6 @@ Build-Depends: cython, python3-pyopencl-dbg, python3-mako, ipython3, - ipython3-qtconsole, python3-matplotlib, python3-matplotlib-dbg, pytho...
Add --nvidia command line option to spark-run This will have the effect of running Spark driver docker container with extra parameters `--runtime=nvidia --env NVIDIA_VISIBLE_DEVICES=all`, which will allow deep learning libraries such as tensorflow-gpu running inside Spark driver to work.
@@ -164,6 +164,13 @@ def add_subparser(subparsers): 'spark.executor.cores=4".', ) + list_parser.add_argument( + '--nvidia', + help='Use nvidia docker runtime for Spark driver process (requires GPU)', + action='store_true', + default=False, + ) + list_parser.add_argument( '--mrjob', help='Pass Spark arguments to invoked...
Add a flag in SAC to control backprop through log-prob Summary: This detaches log_prob to be backward compatible.
@@ -84,6 +84,7 @@ class SACTrainer(RLTrainerMixin, ReAgentLightningModule): action_embedding_mean: Optional[List[float]] = None, action_embedding_variance: Optional[List[float]] = None, crr_config: Optional[CRRWeightFn] = None, + backprop_through_log_prob: bool = True, ) -> None: """ Args: @@ -94,6 +95,9 @@ class SACTr...
Add "just docker-build-doc" to justfile This can be used to run the document build using docker in a manner similar to Jenkinsfile.
@@ -35,6 +35,10 @@ features := '\ --no-default-features \ ' +docker-build-doc: + docker build . -f ci/sawtooth-build-docs -t sawtooth-build-docs + docker run --rm -v $(pwd):/project/sawtooth-core sawtooth-build-docs + build: #!/usr/bin/env sh set -e
Python API: override all comparison operators for Token TN:
@@ -975,6 +975,15 @@ class Token(ctypes.Structure): self._check_same_unit(other) return self._identity_tuple < other._identity_tuple + def __le__(self, other): + return self == other or self < other + + def __gt__(self, other): + return not (self <= other) + + def __ge__(self, other): + return not (self < other) + def ...
nun error fix / name std_result Thank you for your suggestion. "np.nan_to_num" is very effective because nan means zero mathematically in this calculation. To avoid confusion, new name "std_result" is defined instead of avg. Since avg is return value, avg = std_result is added.
@@ -157,8 +157,8 @@ def _forward(args, index, config, data, variables, output_image=True): elif e.repeat_evaluation_type == "std": mux = np.array([s / e.num_evaluations for s in sum_mux]) muy = np.array([(s / e.num_evaluations)**2 for s in sum]) - val = mux - muy - avg = np.sqrt(val) + std_result = [np.nan_to_num(np.sq...
Update slot-filling docs Adds a subsection in the documentation on maintaining values for slots in the same session.
@@ -606,7 +606,7 @@ This decorator replaces the need to define the ``@app.handle`` decorator. MindMe - ``role`` (str, optional): The role of the entity. - ``responses`` (list or str, optional): Message for prompting the user for missing entities. - ``retry_response`` (list or str, optional): Message for re-prompting us...
GradientOptimization: combine current_step_size and step_size parameter - step_size now correctly updates
@@ -712,16 +712,16 @@ class GradientOptimization(OptimizationFunction): return variable # Update step_size - if sample_num == 0: - _current_step_size = self.parameters.step_size.get(execution_id) - elif self.annealing_function: - _current_step_size = call_with_pruned_args(self.annealing_function, self._current_step_siz...
Fix for form rendering of "required" fields with a default value Force the "required" parameter to be set
@@ -153,6 +153,11 @@ class InvenTreeMetadata(SimpleMetadata): if 'default' not in field_info and not field.default == empty: field_info['default'] = field.get_default() + # Force non-nullable fields to read as "required" + # (even if there is a default value!) + if not field.allow_null and not (hasattr(field, 'allow_bl...
fw/output: expose metadata Expose result.metadata as a property of the output.
@@ -81,6 +81,12 @@ class Output(object): return [] return self.result.events + @property + def metadata(self): + if self.result is None: + return {} + return self.result.metadata + def __init__(self, path): self.basepath = path self.result = None
better unauthorized handler unauthorized_handler now displays the correct error message for login required vs admin required. Closes
-from flask import Flask +from flask import Flask, flash, render_template, redirect, url_for, request from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate -from flask_login import LoginManager, AnonymousUserMixin +from flask_login import LoginManager, AnonymousUserMixin, current_user from flask_mai...
tools: Include `test_ui.py` to be checked by mypy. This commit adds `test_ui.py` to the `type_consistent_testfiles` list to check for type consistency with mypy.
@@ -79,7 +79,7 @@ repo_python_files['tests'] = [] # Added incrementally as newer test files are type-annotated. type_consistent_testfiles = [ "test_run.py", "test_core.py", "test_emoji_data.py", "test_helper.py", - "test_server_url.py" + "test_server_url.py", "test_ui.py" ] for file_path in python_files:
sql: add feedback-probability configuration Via:
@@ -31,7 +31,7 @@ ANALYZE TABLE TableName INDEX [IndexNameList] For the `INSERT`, `DELETE`, or `UPDATE` statements, TiDB automatically updates the number of rows and updated rows. TiDB persists this information regularly and the update cycle is 5 * `stats-lease`. The default value of `stats-lease` is `3s`. If you speci...
Update setup-remote.md Tweak: prettier printing of private key & address
@@ -89,11 +89,10 @@ from eth_account.account import Account account1 = Account.create() account2 = Account.create() -print(f"REMOTE_TEST_PRIVATE_KEY1={account1.key.hex()}") -print(f"REMOTE_TEST_PRIVATE_KEY2={account2.key.hex()}") - -print(f"ADDRESS1={account1.address}") -print(f"ADDRESS2={account2.address}") +print(f""...
smoke test: fix meaning of bool values. The reboot_in_platform means reboot in platform, not in node. So it should use the feature to reboot node. Change the logic to match the purpose.
@@ -165,7 +165,7 @@ class Provisioning(TestSuite): def verify_reboot_in_platform( self, log: Logger, node: RemoteNode, log_path: Path ) -> None: - self._smoke_test(log, node, log_path, reboot_in_platform=False) + self._smoke_test(log, node, log_path, reboot_in_platform=True) @TestCaseMetadata( description=""" @@ -186,7...
Make util.py consistent with deploy.py Don't ban 1025 if included in range elsewhere.
@@ -65,10 +65,10 @@ default_config = ConfigDict({ False, # list of port ranges that should not be assigned to any instances - # this bans the first ports 0-1025 and 4242 for shellinaboxd + # this bans the first ports 0-1024 and 4242 for shellinaboxd "banned_ports": [{ "start": 0, - "end": 1025 + "end": 1024 }, { "start...
Enable post-copy by setting unprivileged_userfaultfd The setting vm.unprivileged_userfaultfd = 1 is required to make post-copy working for containerised libvirt. Related: rhbz#2110556
@@ -199,6 +199,8 @@ outputs: value: {get_param: BridgeNfCallIp6Tables} fs.inotify.max_user_instances: value: {get_param: InotifyInstancesMax} + vm.unprivileged_userfaultfd: + value: 1 - if: - fs_aio_max_number_set - fs.aio-max-nr:
Handle project_data returning non-dict objects Seen when enabling language servers per windows with no project loaded
@@ -54,25 +54,35 @@ def is_in_workspace(window: 'Any', file_path: str) -> bool: def enable_in_project(window, config_name: str) -> None: - project_data = window.project_data() or dict() + project_data = window.project_data() + if isinstance(project_data, dict): project_settings = project_data.setdefault('settings', dic...
Correct the msg ipv6 enable in system net.ipv6.conf.default.disable_ipv6 = 1 means disable ipv6. We should correct it in the same with code logic.
@@ -48,7 +48,7 @@ def is_enabled_and_bind_by_default(): LOG.info(_LI("IPv6 not present or configured not to bind to new " "interfaces on this system. Please ensure IPv6 is " "enabled and /proc/sys/net/ipv6/conf/default/" - "disable_ipv6 is set to 1 to enable IPv6.")) + "disable_ipv6 is set to 0 to enable IPv6.")) retur...
Update aqara.py Change from 'click' to 'action' payload key.
@@ -51,7 +51,7 @@ class WXKG01LMLightController(LightController): """ Different states reported from the controller: single, double, triple, quadruple, - many, long, long_release + many, hold, release """ def get_z2m_actions_mapping(self) -> TypeActionsMapping: @@ -61,8 +61,8 @@ class WXKG01LMLightController(LightContr...
Fix //examples/text_embeddings_v2. During refactor to public APIs, it ended up using the wrong filename.
@@ -127,7 +127,8 @@ class TextEmbeddingModel(tf.train.Checkpoint): # Assign the table initializer to this instance to ensure the asset # it depends on is saved with the SavedModel. self._table_initializer = tf.lookup.TextFileInitializer( - vocab_file_path, tf.string, tf.lookup.TextFileIndex.WHOLE_LINE, + write_vocabula...
Allow to always have play callbacks also with playlists Fix broken addon action_controller services
@@ -94,6 +94,8 @@ def get_inputstream_listitem(videoid): list_item.setContentLookup(False) list_item.setMimeType('application/xml+dash') list_item.setProperty('IsPlayable', 'true') + # Allows the add-on to always have play callbacks also when using the playlist (Kodi versions >= 20) + list_item.setProperty('ForceResolv...
[dagit] Fix "Open in Playground" on schedule row Summary: Just a path that I overlooked when changing to workspace URL namespacing. Test Plan: View schedule, use flyout menu to open it in the playground. Verify successful navigation. Reviewers: prha, dgibson
@@ -358,11 +358,14 @@ export const ScheduleRow: React.FC<{ icon="edit" target="_blank" disabled={!runConfigYaml} - href={`/pipelines/${pipelineName}/playground/setup?${qs.stringify({ + href={workspacePathFromAddress( + repoAddress, + `/pipelines/${pipelineName}/playground/setup?${qs.stringify({ mode, solidSelection, co...
Update task.py Adds new kwarg functionality to example task
@@ -47,7 +47,16 @@ class ArithmeticTask(task.Task): max_queries=5000, ) - def evaluate_model(self, model): + def evaluate_model(self, model, max_examples=None, random_seed=None): + if random_seed: + np.random.seed(seed) + if max_examples: + trials = int(max_examples / 5) + if trials < 1: + raise Indexerror(f"max_exampl...
Use new secrets file for k8s endpoint Existing users will need to do a user-environment login and then transcribe the new tokens into a k8s secret like this: kubectl delete secret funcx-sdk-tokens kubectl create secret generic funcx-sdk-tokens --from-file /root/.funcx/storage.db
@@ -4,7 +4,7 @@ mkdir ~/.funcx/$1 mkdir ~/.funcx/credentials cp /funcx/config/config.py ~/.funcx cp /funcx/$1/* ~/.funcx/$1 -cp /funcx/credentials/* ~/.funcx/credentials +cp /funcx/credentials/storage.db ~/.funcx/ if [ -z "$2" ]; then funcx-endpoint start $1 else
show container image in repo location display metadata Summary: Forgot that the image is only available if you pull it from the location (not the origin) Test Plan: test_workspace in BK, view docker example and see image Reviewers: prha, sashank
@@ -190,7 +190,9 @@ def _load_location(self, origin): repository_location=location, load_error=error, load_status=WorkspaceLocationLoadStatus.LOADED, - display_metadata=origin.get_display_metadata() if origin else {}, + display_metadata=location.get_display_metadata() + if location + else origin.get_display_metadata(),...
wallet: fix dscancel for "not all inputs ismine" case fixes
@@ -1516,7 +1516,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC): # grab all ismine inputs inputs = [txin for txin in tx.inputs() if self.is_mine(self.get_txin_address(txin))] - value = sum([txin.value_sats() for txin in tx.inputs()]) + value = sum([txin.value_sats() for txin in inputs]) # figure out output addres...
DEV: updated azure pipeline [NEW] build source distribution for upload to pypi [CHANGED] just test on 3.7 on Windows, it's soo slow otherwise
@@ -50,13 +50,10 @@ jobs: steps: - {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}} - {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}} - - {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}} - - {task: UsePythonVersion@0, inputs: {versionSpec...
fluor_fdark_fail add a line that will hit a missing if statement in the fluor_fvfm function
@@ -933,6 +933,7 @@ def test_plantcv_fluor_fvfm(): pcv.params.debug = "print" outfile = os.path.join(cache_dir, TEST_INPUT_FMAX) _ = pcv.fluor_fvfm(fdark=fdark, fmin=fmin, fmax=fmax, mask=fmask, filename=outfile, bins=1000) + _ = pcv.fluor_fvfm(fdark=fdark+3000, fmin=fmin, fmax=fmax, mask=fmask, filename=outfile, bins=...
Update mekotio.txt > lampion
@@ -394,12 +394,6 @@ http://185.101.92.241 51.120.2.28:3030 gamesstrond2.servebeer.com -# Reference: https://twitter.com/noexceptcpp/status/1615832526466990080 - -http://5.199.162.122 -anydeskkapdo.info -casadosoftware.net - # Generic trail /amorplus/brume.php
Update gcloud_setup.rst rtd -> docs.studio.ml
@@ -77,7 +77,7 @@ In the config file (the one that you use with the ``--config`` flag, or, if you use the default, in the ``studio/default_config.yaml``), go to the ``cloud`` section. Change projectId to the project id of the Google project for which you enabled cloud computing. You can also modify the default instance...
ebuild.domain: find_repo(): don't depend on a sane ROOT value Previously if ROOT was set in the environment to the empty string this would infinitely loop.
@@ -652,12 +652,15 @@ class domain(config_domain): repo = None path = os.path.abspath(path) with suppress_logging(): - while path != self.root: + while True: try: repo = self.add_repo(path, config=config, configure=configure) break except repo_errors.InvalidRepo: - path = os.path.dirname(path) + parent = os.path.dirnam...
Update `isconnected` utility isconnected function now try several times to connect to a remote host before calling it NOT connected. This allows for a more robust check and more reliable tests
@@ -670,24 +670,28 @@ def show_options(file=sys.stdout): # noqa: C901 print(f"{k}: {v}", file=file) -def isconnected(host="https://www.ifremer.fr"): +def isconnected(host="https://www.ifremer.fr", maxtry=10): """ check if we have a live internet connection Parameters ---------- host: str URL to use, 'https://www.ifreme...
message_feed: Remove unnecessary "user-select: none". There is a "user-select: none" (cross-browser) that was put on the #bottom_whitespace div, but the div doesn't actually have any content that can be selected, and it also makes it difficult to deselect selected text because when clicked over it will save the current...
@@ -1961,12 +1961,6 @@ div.floating_recipient { #bottom_whitespace { display: block; height: 300px; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } .loading_indicator_spinner {
Add bugzilla decorator to add_mds test case Bug
@@ -7,7 +7,7 @@ import pytest from ocs_ci.ocs import constants, defaults, ocp from ocs_ci.framework import config -from ocs_ci.framework.testlib import tier1, ManageTest +from ocs_ci.framework.testlib import tier1, ManageTest, bugzilla from ocs_ci.ocs.resources.ocs import OCS log = logging.getLogger(__name__) @@ -69,6 ...
Fix - Mumbai: ocean.create_data_nft() fails getting token_address from tx_receipt Fix
@@ -45,7 +45,6 @@ def test_nonocean_tx(tmp_path): assert bob_eth_after > bob_eth_before -@pytest.mark.skip(reason="Don't skip once fixed #921") def test_ocean_tx(tmp_path): """Do a (simple) Ocean tx on Mumbai""" @@ -100,6 +99,7 @@ def _remote_config(tmp_path): """ [eth-network] network = https://rpc-mumbai.maticvigil.c...
display: Also prefer <4K modes in the vertical dimension Apparently 2:1 scaled modes like 1920x2160 are a thing?
@@ -26,6 +26,7 @@ static void display_choose_timing_mode(dcp_timing_mode_t *modes, int cnt, dcp_ti for (int i = 1; i < cnt; i++) { COMPARE(modes[i].valid, best->valid); COMPARE(modes[i].width <= 1920, best->width <= 1920); + COMPARE(modes[i].height <= 1200, best->height <= 1200); COMPARE(modes[i].fps <= 60 << 16, best-...
docs: add peer-to-peer communication describe behaviour of the 'RouteEnvelope' function
@@ -114,6 +114,9 @@ It contains: - `envelope`: the envelope to be forwarded, in byte representation; - an `AgentRecord` (see above). +## Overview of ACN + +TODO: add picture from paper ## ACN with direct connection @@ -178,18 +181,98 @@ by an AEA's skill passes through: In this section, we describe the interaction betw...
Use rbt to expand the right-sizer review group. This prevents spamming everyone in two big groups, and tailors the tickets to people who opt-in. It also prevents review-board from overriding any default groups attached to files.
@@ -127,6 +127,22 @@ def commit(filename, serv): subprocess.check_call(('git', 'commit', '-n', '-m', message)) +def get_reviewers_in_group(group_name): + """Using rbt's target-groups argument overrides our configured default review groups. + So we'll expand the group into usernames and pass those users in the group ind...
Use correct function on list At some point I guess we should add a test covering this code? I managed to trigger it!
@@ -54,7 +54,7 @@ class LocalExiter(Exiter): # Log the unrecognized exit code to the fatal exception log. ExceptionSink.log_exception(run_tracker_msg) # Ensure the unrecognized exit code message is also logged to the terminal. - additional_messages.push(run_tracker_msg) + additional_messages.append(run_tracker_msg) out...
Added ReceitaWS for CNPJ consultation in Brazil Adicionado ReceitaWS para consulta de CNPJ no Brasil
@@ -730,6 +730,7 @@ API | Description | Auth | HTTPS | CORS | | [BCLaws](http://www.bclaws.ca/civix/template/complete/api/index.html) | Access to the laws of British Columbia | No | No | Unknown | | [Brazil](https://brasilapi.com.br/) | Community driven API for Brazil Public Data | No | Yes | Yes | | [Brazil Central Ba...
realm logo: Fix realm logo unsupported file upload bug. Unable to upload a realm logo once we encounter file input error bug was fixed by clearing `get_file_input()` after file input error with `get_file_input().val('')`. The previous .clone() logic was preserved over many years but apparently was also just wrong. Fixe...
@@ -136,8 +136,7 @@ exports.build_direct_upload_widget = function ( function clear() { const control = get_file_input(); - const new_control = control.clone(true); - control.replaceWith(new_control); + control.val(''); } upload_button.on('drop', function (e) {
Trying to add js again This one follows this suggestion:
@@ -106,6 +106,15 @@ try: nbsphinx_execute = os.environ["NBSPHINX_EXECUTE"] except KeyError: nbsphinx_execute = "always" +html_js_files = [] +nbsphinx_prolog = r""" +.. raw:: html + + <script src='http://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js'></script> + <script>require=requirejs;</script> + + ...
Scons: Make sure we can always decode the compiler output. * Worst case fall back to bashslash replace, which is still readable and contains all the information. * Without this, my German MSVC 2019 could crash failing the other guesses we make.
@@ -48,7 +48,10 @@ def _decode(data): except UnicodeDecodeError: import locale + try: return data.decode(locale.getpreferredencoding()) + except UnicodeDecodeError: + return data.decode("utf8", "backslashreplace") def getArguments():
fix invalid exit code (for This problem occurs when the in-place option and the exit-code option are specified and the result of modifying W391 is only blank lines.
@@ -3436,7 +3436,7 @@ def fix_file(filename, options=None, output=None, apply_config=False): with open_with_encoding(filename, 'w', encoding=encoding) as fp: fp.write(fixed_source) return fixed_source - return '' + return None else: if output: output.write(fixed_source) @@ -4060,9 +4060,11 @@ def fix_multiple_files(fil...
Fixed the HTTPS row sorry, forgot to change the HTTPS column
@@ -224,9 +224,9 @@ API | Description | Auth | HTTPS | Link | | Barchart OnDemand | Stock, Futures, and Forex Market Data | `apiKey` | Yes | [Go!](https://www.barchartondemand.com/free) | | Blockchain | Bitcoin Payment, Wallet & Transaction Data | No | Yes | [Go!](https://www.blockchain.info/api) | | CoinDesk | Bitcoin...