message
stringlengths
13
484
diff
stringlengths
38
4.63k
Fail hard with tracebacks if pytest-expect isn't working Fixes
+from __future__ import print_function import os.path +import sys import pkg_resources import pytest @@ -15,6 +17,26 @@ _tokenizer = os.path.join(_testdata, "tokenizer") _sanitizer_testdata = os.path.join(_dir, "sanitizer-testdata") +def fail_if_missing_pytest_expect(): + """Throws an exception halting pytest if pytest...
[Fix] Oauth2 fix for handling multiple scopes Replaced "+" in scopes with space " " in case of Guest is redirected
@@ -59,7 +59,7 @@ def authorize(*args, **kwargs): if frappe.session['user']=='Guest': #Force login, redirect to preauth again. frappe.local.response["type"] = "redirect" - frappe.local.response["location"] = "/login?redirect-to=/api/method/frappe.integration_broker.oauth2.authorize?" + quote(params) + frappe.local.resp...
Update octodns/provider/mythicbeasts.py Seems fair to me! I think a lot of the suggestions you've mentioned are obvious ones that have been lost on me from being very confused trying to understand the available objects
@@ -339,7 +339,7 @@ class MythicBeastsProvider(BaseProvider): base = '{} {} {} {}'.format(action, hostname, ttl, _type) - if re.match('[A]{1,4}', _type) is not None: + if _type in ('A', 'AAAA'): for value in values: commands.append('{} {}'.format(base, value))
Fix time constraint on reprocess_archive_stubs The logic was wrong so it was not terminating after 4 minutes
@@ -300,7 +300,7 @@ def reprocess_archive_stubs(): cutoff = start + timedelta(minutes=4).total_seconds() for stub in stubs: # Exit this task after 4 minutes so that the same stub isn't ever processed in multiple queues. - if time.time() - start > cutoff: + if time.time() > cutoff: return xform = FormAccessors(stub.doma...
Update randomtemp on Windows Summary: Introduce max retry times to the flaky CUDA build command. Changes: Targets Pull Request resolved:
@@ -131,7 +131,7 @@ if not "%USE_CUDA%"=="0" ( :: in PATH, and then pass the arguments to it. :: Currently, randomtemp is placed before sccache (%TMP_DIR_WIN%\bin\nvcc) :: so we are actually pretending sccache instead of nvcc itself. - curl -kL https://github.com/peterjc123/randomtemp/releases/download/v0.2/randomtemp....
Remove extraneous raise in the integrate step. Introduced in
@@ -468,7 +468,6 @@ def process_datablock(self, tag, datablock): try: integrated = self.integrate(experiments, indexed) except Exception, e: - raise print "Error integrating", tag, str(e) if not self.params.dispatch.squash_errors: raise return
Fix broken link Removed period from URL
@@ -68,7 +68,7 @@ Hosting Recommendation for 100,000+ users The following matrix presents key features for a successful multi-region Mattermost implementation that scales to 100,000 users with support for high availability and geographically based traffic routing in on premises, AWS, and Azure deployments. -To scale to...
[tests] inspect.getargspec is still available with Python 3.9.0a2 remove skipping TestPythonArgSpec for Python 3.6+ because it is still available test DeprecationWarning for all Python 3 versions because tests runs on Python 3.5+ only
@@ -749,7 +749,6 @@ class TestArgSpec(DeprecationTestCase): return tools.getargspec(method) -@unittest.skipIf(tools.PYTHON_VERSION >= (3, 6), 'removed in Python 3.6') class TestPythonArgSpec(TestArgSpec): """Test the same tests using Python's implementation.""" @@ -759,7 +758,7 @@ class TestPythonArgSpec(TestArgSpec): ...
There seems to be a UTC time bug around the dao_get_uploads_by_service_id function. To fix the build tonight I'm putting freezing the time for the test. But will investigate further tomorrow.
@@ -189,6 +189,7 @@ def test_get_uploads_orders_by_processing_started_desc(sample_template): assert results[1].id == upload_2.id +@freeze_time("2020-10-27 16:15") # GMT time def test_get_uploads_orders_by_processing_started_and_created_at_desc(sample_template): letter_template = create_uploaded_template(sample_template...
Reserve IDs inline, not async This fixes a long standing sporadic issue when running the tests, may also have affected live!
@@ -816,7 +816,7 @@ class FlushCommand(object): def reserve_id(kind, id_or_name, namespace): from google.appengine.api.datastore import _GetConnection key = datastore.Key.from_path(kind, id_or_name, namespace=namespace) - _GetConnection()._async_reserve_keys(None, [key]) + _GetConnection()._reserve_keys([key]) class Bu...
babel branch babel branch
@@ -7,7 +7,7 @@ TOKEN_ATTR="circle-token=$SERVER_CI_TOKEN" echo "Getting latest build num" -ARTIFACT_BUILD_NUM=$(curl -s -H "$ACCEPT_TYPE" "$SERVER_API_URI/tree/master?limit=1&filter=successful&$TOKEN_ATTR" | jq '.[0].build_num') +ARTIFACT_BUILD_NUM=$(curl -s -H "$ACCEPT_TYPE" "$SERVER_API_URI/tree/goja-babel?limit=1&f...
Update integration-MISP.yml update misp integration descriptions
@@ -443,11 +443,11 @@ script: type: javascript commands: - name: internal-misp-upload-sample - description: "-" + description: Internal function, do not use it directly arguments: - name: filename required: true - description: "-" + description: File name - name: fileContent required: true description: File Content in ...
doc note on deterministic/non-deterministic gradient for min/max/median Summary: An update on the note that the subgradients for min/max are not deterministic. Pull Request resolved:
@@ -3293,6 +3293,9 @@ add_docstr(torch.max, Returns the maximum value of all elements in the ``input`` tensor. +.. warning:: + This function produces deterministic (sub)gradients unlike ``max(dim=0)`` + Args: {input} @@ -3316,6 +3319,7 @@ value of each row of the :attr:`input` tensor in the given dimension maximal valu...
Minor reformatting/error message rewording TN:
@@ -2692,13 +2692,13 @@ class PropertyDef(AbstractNodeData): if self.external: check_source_language( uses_entity_info is not None, - "Need to specify uses_entity_info for external properties" + 'uses_entity_info is required for external properties' ) self._uses_entity_info = uses_entity_info else: check_source_languag...
Change docker instructions on README.md Change all refernces of INPUT_DIR to INPUT_PATH change all references of OUTPUT_DIR to OUTPUT_PATH change a paragraph
@@ -74,23 +74,25 @@ python3 -m manim example_scenes.py SquareToCircle -pl ### Using Docker Since it's a bit tricky to get all the dependencies set up just right, there is a Dockerfile and Compose file provided in this repo as well as [a premade image on Docker Hub](https://hub.docker.com/r/eulertour/manim/tags/). The D...
Remove ignore invalid-name flag Conform to pylint naming requirments
@@ -10,7 +10,6 @@ arg_map = { "--reports=no", "--disable=I", "--disable=duplicate-code", - "--disable=invalid-name", "--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'", ], "tests/blackbox/stratisd_cert.py": [
cosmetic_changes.py: Do not convert text to byte string This may cause UnicodeEncodeError on Python 2. See
@@ -659,7 +659,8 @@ class CosmeticChangesToolkit(object): for template in skip_templates[self.site.code]: skip_regexes.append( re.compile(r'\{\{\s*%s\s*\}\}' % template, re.I)) - stripped_text = str(text) + + stripped_text = text for reg in skip_regexes: stripped_text = reg.sub(r'', stripped_text)
Channel tweaks 1. Fix buffer length bug (always 10 less than stated buffer_size) 2. Use `deque` instead of `list` for buffer because it is quicker (and this is exactly what it was designed for) 3. Avoid double application of indent or timestamp on `channel open`
@@ -5,6 +5,7 @@ import os import re import threading import time +from collections import deque from threading import Lock, Thread from typing import Any, Callable, Dict, Generator, Optional, Tuple, Union @@ -2668,7 +2669,7 @@ class Channel: if buffer_size == 0: self.buffer = None else: - self.buffer = list() + self.bu...
Update README.md right-hand drive vehicles are supported
@@ -240,7 +240,6 @@ Many factors can impact the performance of openpilot DM, causing it to be unable * Low light conditions, such as driving at night or in dark tunnels. * Bright light (due to oncoming headlights, direct sunlight, etc.). * The driver's face is partially or completely outside field of view of the driver...
api: note get_url doesn't chekc file existence per
@@ -58,6 +58,7 @@ def get_url(path, repo=None, rev=None, remote=None): """ Returns the full URL to the data artifact specified by its `path` in a `repo`. + NOTE: There is no guarantee that the file actually exists in that location. """ try: with _make_repo(repo, rev=rev) as _repo:
Hypothesis tests is not a matrix test Remove test strategy.
@@ -11,9 +11,6 @@ jobs: hypothesis: runs-on: ubuntu-20.04 timeout-minutes: 60 - strategy: - matrix: - python_version: ["3.10"] steps: - uses: actions/checkout@v3.0.2 with: @@ -23,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4.0.0 with: - python-version: ${{ matrix.python_version }} + python-versio...
fw/job: add missing log indents Add "with indentcontext():" to Job stages that were missing them.
@@ -108,15 +108,18 @@ class Job(object): def configure_target(self, context): self.logger.info('Configuring target for job {}'.format(self)) + with indentcontext(): context.tm.commit_runtime_parameters(self.spec.runtime_parameters) def setup(self, context): self.logger.info('Setting up job {}'.format(self)) + with inde...
Change the character length Fix the wrong column data size for bot_token in the built-in SQLAlchemy data model
@@ -89,7 +89,7 @@ class SQLAlchemyInstallationStore(InstallationStore): Column("enterprise_name", String(200)), Column("team_id", String(32)), Column("team_name", String(200)), - Column("bot_token", String(32)), + Column("bot_token", String(200)), Column("bot_id", String(32)), Column("bot_user_id", String(32)), Column(...
Backport Fix typo perkissive to permissive
@@ -105,7 +105,8 @@ class AutoKeyTest(TestCase): @patch_check_permissions() def test_check_permissions_group_can_write_not_permissive(self): """ - Assert that a file is accepted, when group can write to it and perkissive_pki_access=False + Assert that a file is accepted, when group can write to it and + permissive_pki_...
Adding TDP for Intel Xeon Gold 6230N TDP, see Relates to
@@ -2047,6 +2047,7 @@ Intel Xeon E7-8890 v3,165 Intel Xeon E7-8891 v3,165 Intel Xeon E7-8893 v3,140 Intel Xeon Gold 6154,200 +Intel Xeon Gold 6230N,125 Intel Xeon L5506,60 Intel Xeon L5508,38 Intel Xeon L5518,60
client: run chown if file is not owned by swarming user This is to make file/dir movable to local cache directory.
@@ -955,6 +955,14 @@ class NamedCache(Cache): abs_cache = os.path.join(self.cache_dir, rel_cache) logging.info('- Moving to %r', rel_cache) file_path.ensure_tree(os.path.dirname(abs_cache)) + + if sys.platform != 'win32': + uid = os.getuid() + if os.stat(src).st_uid != uid: + # Maybe owner of |src| is different from ru...
Show env vars on form only when env vars are in use Stop env var header from showing when there are no env vars
@@ -301,6 +301,7 @@ export class SubmitNotebook extends Widget implements Dialog.IBodyWidget<ISubmit let td_colspan4 = '<td style="padding: 1px;" colspan=4>'; let subtitle = '<div style="font-size: var(--jp-ui-font-size3)">Environmental Variables</div>' + if (this._envVars.length > 0) { let html = '' + tr + td_colspan4...
Add macOS tests to Travis Add initial support for CI with macOS, and deploy to GitHub and PyPI
language: python -dist: xenial cache: pip +python: 3.7.2 stages: - lint @@ -8,11 +8,42 @@ stages: jobs: include: - - python: 3.7.2 + - os: linux + dist: xenial env: PYTEST_ADDOPTS="--doctest-modules" sudo: true + before_install: + - sudo apt-get update -q + - sudo apt-get install --no-install-recommends -y xvfb python3...
remove line from docstring seems to be a mistake?
@@ -31,7 +31,6 @@ def signal_filter( ---------- signal : Union[list, np.array, pd.Series] The signal (i.e., a time series) in the form of a vector of values. - or ``"bandstop"``. sampling_rate : int The sampling frequency of the signal (in Hz, i.e., samples/second). lowcut : float
Do not log call parameters on info level Currently, when logging Glacier actions (e.g. upload), logging at info level is unusable, as entire file content gets logged (this can be many gigabytes).
@@ -146,7 +146,7 @@ class BatchAction(ServiceAction): params.update(kwargs) - logger.info('Calling %s:%s with %r', + logger.debug('Calling %s:%s with %r', service_name, operation_name, params) response = getattr(client, operation_name)(**params) @@ -193,7 +193,7 @@ class WaiterAction(object): params = create_request_pa...
Update whatsnew include new component PiecewiseLinearTransformer in whatsnew for v0.4.2
@@ -16,7 +16,7 @@ New features New components/constraints ^^^^^^^^^^^^^^^^^^^^^^^^^^ -* something +* Custom component: oemof.solph.custom.PiecewiseLinearTransformer. A transformer model with one input and one output and an arbitrary piecewise linear conversion function. On how to use the component, refer to the `test s...
update ContactTerm.get_fargs() to return gap function in evaluation mode update .call_function(), .eval_real() rename .function() -> .function_weak() new .integrate(), .function(), .get_eval_shape()
@@ -109,9 +109,9 @@ class ContactTerm(Term): return self.ci - def call_function(self, fargs): + def call_function(self, out, fargs): try: - out, status = self.function(*fargs) + out, status = self.function(out, *fargs) except (RuntimeError, ValueError): terms.errclear() @@ -125,16 +125,34 @@ class ContactTerm(Term): de...
Always use sns.set in API docs Closes
@@ -2295,7 +2295,7 @@ boxplot.__doc__ = dedent("""\ :context: close-figs >>> import seaborn as sns - >>> sns.set_style("whitegrid") + >>> sns.set(style="whitegrid") >>> tips = sns.load_dataset("tips") >>> ax = sns.boxplot(x=tips["total_bill"]) @@ -2473,7 +2473,7 @@ violinplot.__doc__ = dedent("""\ :context: close-figs ...
update ecg_period calculation in ecg_hrv can you confirm this change? ecg_period should be 1/ecg_rate(in milisecs) right?
@@ -2,6 +2,7 @@ import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.patches +import scipy from .ecg_rate import ecg_rate as nk_ecg_rate from ..signal.signal_formatpeaks import _signal_formatpeaks_sanitize @@ -95,8 +96,9 @@ def ecg_hrv(ecg_rate, rpeaks=None, sampling_rate=1000, show=...
Update README.md Update install instructions for conjure-up
@@ -24,10 +24,7 @@ knowledge. It is comprised of the following components and features: Installation has been automated via [conjure-up](http://conjure-up.io/): - sudo apt-add-repository ppa:juju/stable - sudo apt-add-repository ppa:conjure-up/next - sudo apt update - sudo apt install conjure-up + sudo snap install con...
Run git diff in a subshell to ensure correct parsing Also drop unneeded xargs invocation
@@ -22,8 +22,8 @@ yarn --cwd "frontend" pretty-quick --staged # "--diff-filter=ACMR" only lists files that are [A]dded, [C]opied, [M]odified, # or [R]enamed; we don't want to try to format files that have been deleted. if command -v "black" > /dev/null; then - changed_files=git diff --diff-filter=ACMR --name-only --cac...
Handle matrix warnings in test_interconnect_unused_{input,output} Ignore warnings with match string from conftest.py's `matrixfilter` warning filter.
@@ -9,6 +9,7 @@ created for that purpose. """ from __future__ import print_function +import re import numpy as np import pytest @@ -1437,7 +1438,13 @@ def test_interconnect_unused_input(): connections=False) #https://docs.pytest.org/en/6.2.x/warnings.html#recwarn - assert not record + for r in record: + # strip out mat...
Prevent `profile_observer_test` from being run by CPU test Summary: Fix CMakeLists.txt, so the test for CPU won't run profile_observer_test.cc, as currently it only supports GPU Pull Request resolved:
if(USE_OBSERVERS) message(STATUS "Include Observer library") + set(GLOB profile_observer_files profile_observer_*.cc) set(Caffe2_CONTRIB_OBSERVERS_CPU_SRC "${CMAKE_CURRENT_SOURCE_DIR}/time_observer.cc" "${CMAKE_CURRENT_SOURCE_DIR}/runcnt_observer.cc" ) + set(Caffe2_CONTRIB_OBSERVERS_GPU_SRC + "${CMAKE_CURRENT_SOURCE_DI...
4.6 changelog update about Zoom plugin Move note about supporting the on-prem version of Zoom to v4.7
@@ -30,7 +30,6 @@ Release date: 2017-01-16 #### Plugins (Beta) - Plugins now support slash commands. -- Zoom plugin now supports an on-premise Zoom server. #### Notifications @@ -138,6 +137,7 @@ Multiple setting options were added to `config.json`. Below is a list of the add - Letters are skipped in a few dialogs when ...
Allow Moving Observer to Cuda Summary: Allow for moving observer to cuda in emulate_int8_{method} functions in order to make it compatible with pytext trainers.
@@ -20,6 +20,7 @@ def quantize(w, scale, zero_point): def emulate_int8_histogram(w, scale=None, zero_point=None): if scale is None: obs = torch.quantization.observer.HistogramObserver() + obs.to(device=w.device) _ = obs(w.float()) scale, zero_point = obs.calculate_qparams() scale = scale.cuda().type_as(w) @@ -32,6 +33,...
Ignore errors finding the partition with the shortest backlog falling back instead to the default partitioner
@@ -3,6 +3,7 @@ from memoized import memoized from corehq.apps.change_feed import topics from corehq.apps.change_feed.connection import get_kafka_consumer from corehq.util.quickcache import quickcache +from dimagi.utils.logging import notify_exception from pillowtop import get_pillow_by_name, get_all_pillow_configs @@ ...
Escape caracheter in manf# Now interpret the scape caracter in the `manf#` code and in the distributors code. Before was only in `manf#`. Discussion with and other user about the `,`in the `manf#`.
@@ -351,13 +351,6 @@ def subpart_split(components): except KeyError: continue - # Remove any escape backslashes preceding PART_SEPRTR. - for c in split_components.values(): - try: - c['manf#'] = re.sub(ESC_FIND, r'\1', c['manf#']) - except KeyError: - pass - return split_components @@ -411,6 +404,7 @@ def subpart_qtypa...
Replace decodestring for decodebytes from base64 module decodestring has been removed from py39
@@ -87,10 +87,6 @@ XSD = "xs" NS_SOAP_ENC = "http://schemas.xmlsoap.org/soap/encoding/" -_b64_decode_fn = getattr(base64, 'decodebytes', base64.decodestring) -_b64_encode_fn = getattr(base64, 'encodebytes', base64.encodestring) - - class AttributeValueBase(SamlBase): def __init__(self, text=None, @@ -232,10 +228,9 @@ c...
Keep cfnlint import function-local (~1s) Saves about 1s of startup time.
@@ -6,7 +6,6 @@ import yaml import os import string -from cfnlint import decode, core from moto.core import ACCOUNT_ID @@ -62,6 +61,8 @@ def yaml_tag_constructor(loader, tag, node): def validate_template_cfn_lint(template): + # Importing cfnlint adds a significant overhead, so we keep it local + from cfnlint import dec...
feat(monitoring): trace and tag push events Fixes
@@ -160,6 +160,14 @@ async def push( data: github_types.GitHubEvent, score: typing.Optional[str] = None, ) -> None: + with tracer.trace( + "push event", + span_type="worker", + resource=f"{owner_login}/{repo_name}/{pull_number}", + ) as span: + span.set_tags( + {"gh_owner": owner_login, "gh_repo": repo_name, "gh_pull":...
Update Hyundai firmware in values.py for 2021 Sonata * Update Hyundai values.py for 2021 Sonata Added firmware versions from a 2021 Hyundai Sonata bought in Southern California * Update selfdrive/car/hyundai/values.py * Update values.py
@@ -164,16 +164,19 @@ FW_VERSIONS = { b'\xf1\x00DN8_ SCC FHCUP 1.00 1.01 99110-L1000 ', b'\xf1\x00DN8_ SCC FHCUP 1.00 1.00 99110-L0000 ', b'\xf1\x00DN8_ SCC F-CU- 1.00 1.00 99110-L0000 ', + b'\xf1\x00DN8_ SCC F-CUP 1.00 1.00 99110-L0000 ', ], (Ecu.esp, 0x7d1, None): [ b'\xf1\x00DN ESC \x01 102\x19\x04\x13 58910-L1300\x...
Removed SAX classes from xml/__init__.pyi Removed class definitions from `xml/__init__.pyi` as they were merely outdated duplicates of the definitions from the correct file (`xml/sax/__init__.pyi`) Left file intact as it is necessary for the module
-class SAXException(Exception): - def __init__(self, msg, exception=None): ... - def getMessage(self): ... - def getException(self): ... - def __getitem__(self, ix): ... - -class SAXParseException(SAXException): - def __init__(self, msg, exception, locator): ... - def getColumnNumber(self): ... - def getLineNumber(self...
llvm: Cache generated argument structures This reduces compilation times by ~15%.
@@ -59,6 +59,23 @@ class _node_wrapper(): def _gen_llvm_function(self, *, ctx, tags:frozenset): return codegen.gen_node_wrapper(ctx, self._comp, self._node, tags=tags) +def _comp_cached(func): + @functools.wraps(func) + def wrapper(bctx, obj): + try: + obj_cache = bctx._cache.setdefault(obj, dict()) + except TypeError:...
Fix: Use state machine and state at correct slot to import block
@@ -388,16 +388,26 @@ class BeaconChain(BaseBeaconChain): ) ) - head_state_slot = self.chaindb.get_head_state_slot() - if head_state_slot >= block.slot: - # Importing a block older than the head state. Hence head state can not be used to - # perform state transition. - prev_state_slot = parent_block.slot + # Default to...
Seeds : Use IECore::MeshAlgo::distributePoints() This is Cortex 10's replacement for the PointDistributionOp.
// ////////////////////////////////////////////////////////////////////////// -#include "IECore/PointDistributionOp.h" -#include "IECore/CompoundParameter.h" +#include "IECore/MeshAlgo.h" #include "Gaffer/StringPlug.h" @@ -185,12 +184,12 @@ IECore::ConstObjectPtr Seeds::computeBranchObject( const ScenePath &parentPath,...
[hailgenetics/hail] add dill to the image * [hailgenetics/hail] add dill to the image This allows this to be used with PythonJob. * remove conflict with pandas
@@ -17,8 +17,8 @@ RUN hail-pip-install \ ipython \ matplotlib \ numpy \ - pandas \ scikit-learn \ + dill \ scipy \ && rm -rf hail-*-py3-none-any.whl RUN export SPARK_HOME=$(find_spark_home.py) && \
pkg_implementation_body_ada.mako: minor refactoring TN:
@@ -2239,14 +2239,12 @@ package body ${ada_lib_name}.Implementation is -- Is_Rebindable -- ------------------- - pragma Warnings (Off, "referenced"); - function Is_Rebindable (Node : ${T.root_node.name}) return Boolean - is - pragma Warnings (On, "referenced"); + function Is_Rebindable (Node : ${T.root_node.name}) retu...
ENH: added Dendrogram.line_width property [NEW] controls thickness of dendrogram edges
@@ -701,3 +701,12 @@ class Dendrogram(Drawable): self._tips_as_text = value self._traces = [] self.layout.annotations = () + + @property + def line_width(self): + """width of dendrogram lines""" + return self._line_width + + @line_width.setter + def line_width(self, width): + self._line_width = width
Ignore ChannelParticipantLeft during iter_participants Closes
@@ -155,7 +155,10 @@ class _ParticipantsIter(RequestIter): users = {user.id: user for user in full.users} for participant in full.full_chat.participants.participants: - if isinstance(participant, types.ChannelParticipantBanned): + if isinstance(participant, types.ChannelParticipantLeft): + # See issue #3231 to learn wh...
Added some padding around functions for API Summary: Let me know if this looks OK and we can adjust. Pull Request resolved:
@@ -217,7 +217,12 @@ table.modindextable td { div.body { min-width: 450px; - max-width: 800px; + max-width: 900px; +} + +dd { + padding-top: 10px; + padding-bottom: 5px; } div.body p, div.body dd, div.body li, div.body blockquote {
Always run accumulate_answers right before submitting a form to prevent submitting data from a stale form that has since been updated.
@@ -486,7 +486,6 @@ WebFormSession.prototype.switchLanguage = function (lang) { WebFormSession.prototype.submitForm = function (form) { var self = this, - answers, accumulate_answers, prevalidated = true; @@ -514,17 +513,18 @@ WebFormSession.prototype.submitForm = function (form) { _accumulate_answers(o); return _answe...
Switched arguments to django app + class name Save user from looking up which database to use.
@@ -4,8 +4,10 @@ import logging from django.core.management.base import BaseCommand -from corehq.dbaccessors.couchapps.all_docs import get_all_docs_with_doc_types, get_doc_count_by_type -from corehq.util.couchdb_management import couch_config +from dimagi.utils.couch.database import iter_docs +from dimagi.utils.modules...
Fixes bug in simulation of circuits with CircuitLabels. When operators for CircuitLabel labels were created, model._init_virtual_obj(op) was never called, leaving the operator's .gpindices set to None. This causes parameter-number AssertionError failures downstream when the model's .from_vector(...) calls obj.from_vec...
@@ -88,6 +88,8 @@ class LayerRules(object): finalOp = _op.ExponentiatedOp(subCircuitOp, circuitlbl.reps, evotype=model.evotype) else: finalOp = subCircuitOp + + model._init_virtual_obj(finalOp) # so ret's gpindices get set, essential for being in cache return finalOp def prep_layer_operator(self, model, layerlbl, cache...
Update Adafruit16CServoDriver.py Merged and added examples for Arduino, RasPi and Esp8266_01
-# PLEASE MERGE THIS FILE - SHOULD SHOW HOW TO USE ARDUINO OR RASPI BOTH ! -<<<<<<< HEAD +# This example shows how to use the Adafruit16CServoDriver +# It can be used with Arduino, RasPi or Esp8266_01 # From version 1.0.2316 use attach instead of setController -# Start the Adafruit16CSe#rvodriver that can be used for a...
ffu: Introduce prep workarounds for FFU We make sure is_bootstrap_node is always set and we reset hiera hierarchy on first run. Resolves: rhbz#1535406 Clodes-Bug:
@@ -372,6 +372,7 @@ outputs: global_vars: deploy_steps_max: {{deploy_steps_max}} common_deploy_steps_tasks: {get_file: deploy-steps-tasks.yaml} + docker_puppet_script: {get_file: ../docker/docker-puppet.py} deploy_steps_playbook: str_replace: params: @@ -571,6 +572,34 @@ outputs: - include_tasks: fast_forward_upgrade_p...
Logging stuffs Summary: Pull Request resolved: Add more logging and flag.
@@ -498,6 +498,9 @@ NetDef OnnxifiTransformer::SubnetToOnnxifiOpViaC2( // Debugging stuff if (opts_.debug) { + WriteProtoToTextFile( + net, + "debug_original_net_" + c10::to_string(onnxifi_op_id_) + ".pb_txt"); WriteProtoToTextFile( onnxifi_net, "debug_onnxifi_net_" + c10::to_string(onnxifi_op_id_) + ".pb_txt"); @@ -90...
Update __init__.py Deleted redudant line 29 "from pyquil.api.compiler import CompilerConnection"
@@ -26,7 +26,6 @@ from pyquil.api.job import Job from pyquil.api.compiler import CompilerConnection from pyquil.api.qvm import QVMConnection, QVM from pyquil.api.qpu import QPUConnection, get_devices, QPU -from pyquil.api.compiler import CompilerConnection from pyquil.device import Device from pyquil.api.wavefunction_s...
Deseasonify: guard bot nickname setter Previously we'd always set the nickname, as the BaseSeason class provides a default. However, it feels cleaner to also guard this, in case a specific season decides to override the attr to something falsey.
@@ -292,6 +292,7 @@ class BrandingManager(commands.Cog): # await self.bot.set_avatar(self.avatar.download_url) log.info(f"Applying avatar: {self.avatar.download_url}") + if self.current_season.bot_name: # await self.bot.set_nickname(self.current_season.bot_name) log.info(f"Applying nickname: {self.current_season.bot_na...
replaceCategoryLinks: prevent failing on dewiki with {{Personendaten}} The script involving replaceCategoryLinks should not break but instead should skip the page on German Wikipedia with {{Personendaten}} template
@@ -1227,11 +1227,12 @@ def replaceCategoryLinks(oldtext, new, site=None, addOnly=False): if site is None: site = pywikibot.Site() if site.sitename == 'wikipedia:de' and '{{Personendaten' in oldtext: - raise pywikibot.Error( + pywikibot.error( 'The Pywikibot is no longer allowed to touch categories on the ' 'German\nWi...
Enhance user documentation for .env_group TN:
@@ -275,14 +275,13 @@ def env_group(self, env_array, with_md=None): """ Return a new lexical environment that logically groups together multiple environments. `env_array` must be an array that contains the environments - to be grouped. + to be grouped. If it is empty, the empty environment is returned. - :param Abstrac...
Simplify init container env var assert, update order python3 dicts are ordered so some tests relying on this fails
@@ -355,10 +355,12 @@ class TestStrongboxSecrets(object): init_container = deployment.spec.template.spec.initContainers[0] assert init_container is not None - assert 3 == len(init_container.env) - self._assert_env_var(init_container.env[0], "K8S_DEPLOYMENT", app_spec.name) - self._assert_env_var(init_container.env[1], ...
Add scikit-hep reference Add scikit-hep reference
@@ -24,7 +24,7 @@ zfit: scalable pythonic fitting zfit is a highly scalable and customizable model manipulation and fitting library. It uses `TensorFlow <https://www.tensorflow.org/>`_ as its computational backend -and is optimised for simple and direct manipulation of probability density functions. +and is optimised f...
fixing typos I just randomly find these by the way. Good work on the framework!
@@ -30,7 +30,7 @@ class BaseStrategy: Parameters ----------- - score_series : pd.Seires + score_series : pd.Series stock_id , score. current : Position() current state of position.
Fix property 'disable_auto_refresh' TypeError: Cannot read property 'disable_auto_refresh' of undefined
@@ -1044,7 +1044,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { } setup_realtime_updates() { - if (this.list_view_settings.disable_auto_refresh) { + if (this.list_view_settings && this.list_view_settings.disable_auto_refresh) { return; } frappe.realtime.on('list_update', data => {
Fix, tidy, re-enable outputs= related test The test was previously not waiting for tasks to finish, which was a race condition.
import argparse import os +import pytest import shutil -import pytest +from concurrent.futures import wait -from parsl.app.app import python_app +from parsl import File, python_app from parsl.tests.configs.local_threads import config @@ -21,8 +22,7 @@ def double(x, outputs=[]): whitelist = os.path.join(os.path.dirname(...
tests/report: Drop redundant calls to clear_registry All registries are cleared after every test.
@@ -14,8 +14,6 @@ class TestReport(): def test_reportOutputPref_true(self): - pnl.clear_registry(pnl.FunctionRegistry) - t = pnl.TransferMechanism() t.reportOutputPref = ReportOutput.FULL @@ -30,8 +28,6 @@ class TestReport(): def test_reportOutputPref_params(self): - pnl.clear_registry(pnl.FunctionRegistry) - t = pnl.T...
Additional user information Specify users call 'method = full_template' when using the manual wavelength calibration output of `pypeit_identify`. modified: pypeit/core/gui/identify.py
@@ -725,8 +725,9 @@ class Identify: msgs.info("Your arxiv solution has been written to ./wvarxiv.fits\n") msgs.info(f"Your arxiv solution has been cached.{msgs.newline()}" - f"Use 'reid_arxiv = {cachename}' in your{msgs.newline()}" - "PypeIt Reduction File to utilize this wavelength solution.") + f"Use 'reid_arxiv = {c...
Update avcodecs.py fix codec name
@@ -856,7 +856,7 @@ class H265VAAPI(H265Codec): H.265/AVC VAAPI ideo codec. """ codec_name = 'h265vaapi' - ffmpeg_codec_name = 'h265_vaapi' + ffmpeg_codec_name = 'hevc_vaapi' def _codec_specific_produce_ffmpeg_list(self, safe, stream=0): optlist = super(H265VAAPI, self)._codec_specific_produce_ffmpeg_list(safe, stream)...
Fixed minor bug in standard deviation policy std jacobian at least 2d
@@ -232,7 +232,7 @@ class MultivariateStateStdGaussianPolicy: # Compute variance derivative w = (delta**2 - diag_sigma) * std / diag_sigma**2 - j_sigma = self._std_approximator.diff(state).T + j_sigma = np.atleast_2d(self._std_approximator.diff(state).T) g_sigma = np.atleast_1d(w.dot(j_sigma)) return np.concatenate((g_...
Update __init__.py # BUGFIX: remove_fields_space() function will drop Feature object field
@@ -518,7 +518,7 @@ def remove_fields_space(fields: [list, str, tuple]): """ if isinstance(fields, str): return fields.replace(" ", "") - return [i.replace(" ", "") for i in fields if isinstance(i, str)] + return [i.replace(" ", "") if isinstance(i, str) else str(i) for i in fields] def normalize_cache_fields(fields: [...
Free up some disk space on the runner for update_combined_federal data
@@ -12,6 +12,14 @@ jobs: run: runs-on: ubuntu-latest steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions/cache@v2 with:
Update Jenkinsfile-undeploy try adding primaryBranch: "master" argument to tadaUndeployEachBranch
@@ -19,7 +19,7 @@ pipeline { booleanParam( name: "UNDEPLOY_MERGED_BRANCHES", defaultValue: true, - description: "Undeploy branches that have been merged into the main branch (but not deleted) from staging.", + description: "Undeploy branches that have been merged into the master branch (but not deleted) from staging.",...
updated gan readme includes pictures
@@ -39,3 +39,37 @@ to copy kaggle.json into a folder first. ``` python run.py -config ./configs/dcgan.yaml ``` +## Results + +| Model | Paper | Samples | +|------------------------------------------------------------------------|--------------------------------------------------|---------| +| GAN ([Code][dcgan_code], [...
fix: Use ImportError instead of ModuleNotFoundError ModuleNotFoundError is available in python 3.6 This should have been included in Frappe PR
@@ -18,7 +18,7 @@ class PrintSettings(Document): printer_list = [] try: import cups - except ModuleNotFoundError: + except ImportError: frappe.throw("You need to install pycups to use this feature!") return try:
Add `try/except` to allow for cases where a database file is irrelevant This is necessary in order to pass `tests/test_cli_parsing.py`
@@ -116,6 +116,7 @@ def run_main(argv: Optional[List[str]] = None) -> int: add_log_headers() # Check the database file exists, if one is given + try: if args.dbpath: logger.info("Checking for database file: {args.dbpath}") if not os.path.isfile(args.dbpath): @@ -123,6 +124,8 @@ def run_main(argv: Optional[List[str]] = ...
ENH: simplify low_0_bit function for Sobol * ENH: simplify low_0_bit function for Sobol This patch simplify the low_0_bit function which finds an index of the rightmost zero bit. Consequently it obtains a slight performance improvement. * Apply suggestions from code review
@@ -138,14 +138,10 @@ cdef int low_0_bit(const int x) nogil: Position of the right-most 0 bit. """ - cdef int z = x cdef int i = 0 - while True: + while x & (1 << i) != 0: i += 1 - if z % 2 == 0: - break - z = z // 2 - return i + return i + 1 @cython.boundscheck(False)
ebd/ebuild.bash: avoid writing env to fs during pkg_pretend phase Alleviates some race issues with file permissions when running threaded sanity checks.
@@ -231,7 +231,7 @@ __generate_initial_ebuild_environ() { fi __ensure_PATH "${PKGCORE_EXISTING_PATH}" - if [[ -n ${T} ]]; then + if [[ -n ${T} && ${EBUILD_PHASE} != "pretend" ]]; then # Use a file if possible; faster since bash does this lovely byte by # byte reading if it's a pipe. Having the file around is useful for...
Closes: Fix to interpret subsequent points of absolute MoveTo (M) command as absolute LineTo (L).
@@ -298,7 +298,7 @@ class SVGMobject(VMobject): if not isinstance(element, minidom.Element): return if element.hasAttribute('id'): - return element + return [element] for e in element.childNodes: all_childNodes_have_id.append(self.get_all_childNodes_have_id(e)) return self.flatten([e for e in all_childNodes_have_id if ...
Fixes bug in build_explicit_model (qubit dim check in state space labels was 2 and should have been 4).
@@ -531,8 +531,9 @@ def basis_build_explicit_model(stateSpaceLabels, basis, effects = [] if ELbls == "standard": + qubit_dim = 4 # 2 if evotype in ('statevec', 'stabilizer') else 4 if stateSpaceLabels.num_tensor_prod_blocks() == 1 and \ - all([ldim == 2 for ldim in stateSpaceLabels.tensor_product_block_dims(0)]): + all...
[bugfix] Add plural support to archivebot-older-than Depends-On:
@@ -380,23 +380,22 @@ class DiscussionThread(object): """ Check whether thread has to be archived. - @return: archiving reason i18n string or empty string. - @rtype: str + @return: the archivation reason as a dict of localization args + @rtype: dict """ + # Archived by timestamp algo = archiver.get_attr('algo') re_t = ...
Define seperate target for proxy minions Proxy minions require a lot more to reload than regular minions do. Provide a seperate _target for proxy minions so that the `__proxy__` dictionary gets reloaded by windows proxy minions.
@@ -3242,3 +3242,62 @@ class ProxyMinion(Minion): self.functions['saltutil.sync_grains'](saltenv='base') self.grains_cache = self.opts['grains'] self.ready = True + + @classmethod + def _target(cls, minion_instance, opts, data, connected): + if not minion_instance: + minion_instance = cls(opts) + minion_instance.connec...
Fix processing `ChangedMasterCopy` event `ChangedMasterCopy` event was supposed to generate an argument `_masterCopy` instead of `masterCopy`. Due to a typo, it was not.
@@ -318,8 +318,8 @@ class SafeEventsIndexer(EventsIndexer): internal_tx_decoded = None elif event_name == "ChangedMasterCopy": internal_tx_decoded.function_name = "changeMasterCopy" - internal_tx.arguments = { - "_masterCopy": args.get("singleton") or args.get("masterCopy") + internal_tx_decoded.arguments = { + "_maste...
Set GUI binary name to chia-blockchain in the Ubuntu DEB set gui binary name to chia-blockchain
@@ -83,17 +83,21 @@ if [ "$PLATFORM" = "arm64" ]; then sudo gem install public_suffix -v 4.0.7 sudo gem install fpm echo USE_SYSTEM_FPM=true electron-builder build --linux deb --arm64 \ + --config.extraMetadata.name=chia-blockchain \ --config.productName="$PRODUCT_NAME" --config.linux.desktop.Name="Chia Blockchain" \ -...
Remove test string in pillow checkpoint id This no longer needs the string test because it does not write to a test ES index.
"LedgerToElasticsearchPillow": { "advertised_name": "LedgerToElasticsearchPillow", "change_feed_type": "KafkaChangeFeed", - "checkpoint_id": "LedgerToElasticsearchPillow-test_ledgers_2016-03-15", + "checkpoint_id": "LedgerToElasticsearchPillow-ledgers_2016-03-15", "full_class_name": "pillowtop.pillow.interface.Construc...
Fixed problems with "fit_windows" not None in Measurement_analysis If fit_windows is not None the hanger analysis crashes returining an error due to different dimensions for x and y data. This commit solves the problem
@@ -3850,7 +3850,7 @@ class Homodyne_Analysis(MeasurementAnalysis): self.save_fig(fig, figname='complex', **kw) self.save_fig(fig2, xlabel='Mag', **kw) else: - ax.plot(self.sweep_points, fit_res.best_fit, 'r-') + ax.plot(data_x, fit_res.best_fit, 'r-') f0 = self.fit_results.values['f0'] plt.plot(f0, fit_res.eval(f=f0),...
Update Pack README Done.
-# Azure DevOps Pack Use the Azure DevOps pack to manage Git repositories in Azure DevOps services. Microsoft Azure DevOps Server provides version control, reporting, requirements management, project management, automated builds, testing and release management capabilities. It covers the entire application lifecycle, a...
format fix fixing formatting (line too long)
@@ -275,7 +275,10 @@ class SceneWidget(glooey.Widget): self.vertex_list[geometry_name].delete() # convert geometry to constructor args - args = rendering.convert_to_vertexlist(geometry, group=mesh_group, smooth=self._smooth) + args = rendering.convert_to_vertexlist( + geometry, + group=mesh_group, + smooth=self._smooth...
Add select_prefetch_join() to bench. [skip ci]
@@ -117,6 +117,14 @@ def select_prefetch(i): for i in c.items: pass +@timed +def select_prefetch_join(i): + query = prefetch(Collection.select(), Item, + prefetch_type=PREFETCH_TYPE.JOIN) + for c in query: + for i in c.items: + pass + if __name__ == '__main__': db.create_tables([Register, Collection, Item]) @@ -138,4 +...
Fix lint on master Test Plan: N/A Reviewers: schrockn, max
from dagster import check, PipelineDefinition from dagster.core.execution.api import create_execution_plan -from dagster.utils.indenting_printer import IndentingStringIoPrinter from .operators import DagsterDockerOperator, DagsterOperator, DagsterPythonOperator from .compile import coalesce_execution_steps
Remove unnecessary comment cr
@@ -57,7 +57,6 @@ class InitController(AbstractBaseController): epilog = strings['init.epilog'] def do_command(self): - # get arguments interactive = self.app.pargs.interactive region_name = self.app.pargs.region noverify = self.app.pargs.no_verify_ssl
Update data_load.py Add more mapping
import numpy as np +from ..datasets.amazon import AmazonInstantVideo from ..datasets.dunnhumby import Dunnhumby from ..datasets.epinions import Epinions from ..datasets.instacart import Instacart, Instacart_25 from ..datasets.last_fm import LastFM -from ..datasets.movielens import Movielens_1m, Movielens_25m, Movielens...
Update metadata.py SMA prefix instead of MDH
@@ -197,9 +197,9 @@ class Metadata: video["covr"] = [MP4Cover(cover, MP4Cover.FORMAT_JPEG)] # jpeg poster if self.original: - video["\xa9too"] = "MDH:" + os.path.basename(self.original) + video["\xa9too"] = "SMA:" + os.path.basename(self.original) else: - video["\xa9too"] = "MDH:" + os.path.basename(path) + video["\xa9...
fix Space Race reset overwrites $100 eventually
;license:MIT -;(c) 2022 by qkumba +;(c) 2022 by qkumba, Frank M. !cpu 6502 !to "build/PRELAUNCH.INDEXED/SPACE.RACE",plain !source "src/prelaunch/common.a" +ENABLE_ACCEL + +NEW_RESET_VECTOR $300 lda #$60 sta $1621 jsr $1600 ; decompress
Update logstash.conf-template missed some '++'
@@ -17,14 +17,14 @@ filter { if [@metadata][DEBUG] != 'true' { ruby { init => "@ordernum = 0" - code => "@ordernum += 1; tag_items = event['program'].split('++'); event['scale_order_num'] = @ordernum; event['scale_task'] = tag_items[0].sub(%r{^docker/}, ''); event['scale_job_exe'] = event['scale_task'].sub(%r{_[^_]*$},...
Cleanup Pods in Error state based on time scheduled It's possible for a Pod to be in an Error state and not have a ContainersReady transition time, so lets go off of PodScheduled since that should always exist.
@@ -60,14 +60,26 @@ def setup_logging(verbose): logging.getLogger("kubernetes.client.rest").setLevel(logging.ERROR) -def _completed_longer_than_threshold(pod: V1Pod, threshold: int) -> bool: - time_finished = get_pod_condition(pod, "ContainersReady").last_transition_time +def __condition_transition_longer_than_threshol...