message
stringlengths
13
484
diff
stringlengths
38
4.63k
Adds date format on `get_companies()` Necessary for irregular companies classifier
@@ -47,4 +47,6 @@ class Dataset: dtype={'cnpj': np.str}, low_memory=False) dataset['cnpj'] = dataset['cnpj'].str.replace(r'\D', '') + dataset['situation_date'] = pd.to_datetime(dataset['situation_date'], + errors='coerce') return dataset
satellite: update tests to v2.0.0 Fixes as renames were done in a different commit.
@@ -3,7 +3,7 @@ import unittest from satellite import tree_from_traversals -# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0 +# Tests adapted from `problem-specifications//canonical-data.json` @ v2.0.0 class SatelliteTest(unittest.TestCase): def test_empty_tree(self):
allergies: Update test cases Updates the tests according to the canonical test data and stores the test data version.
@@ -2,8 +2,14 @@ import unittest from allergies import Allergies +# Python 2/3 compatibility +if not hasattr(unittest.TestCase, 'assertCountEqual'): + unittest.TestCase.assertCountEqual = unittest.TestCase.assertItemsEqual -class AllergiesTests(unittest.TestCase): + +# test cases adapted from `x-common//canonical-data....
[Triggers] Fix running openstack actions via triggers Closes-Bug:
@@ -64,10 +64,18 @@ def create_context(trust_id, project_id): if CONF.pecan.auth_enable: client = keystone.client_for_trusts(trust_id) + if client.session: + # Method get_token is deprecated, using get_auth_headers. + token = client.session.get_auth_headers().get('X-Auth-Token') + user_id = client.session.get_user_id()...
Use extras when running the test server Make sure that `travis_moto_server.sh` script actually installs `all` and `server` extras.
#!/usr/bin/env bash set -e -pip install flask # TravisCI on bionic dist uses old version of Docker Engine # which is incompatibile with newer docker-py # See https://github.com/docker/docker-py/issues/2639 pip install "docker>=2.5.1,<=4.2.2" -pip install /moto/dist/moto*.gz +pip install $(ls /moto/dist/moto*.gz)[server...
Fix range description in `suggest_float` docstring Also fixes the same piece of docstring in deprecated `suggest` APIs as those point to `suggest_float` now
@@ -127,12 +127,7 @@ class Trial(BaseTrial): low: Lower endpoint of the range of suggested values. ``low`` is included in the range. high: - Upper endpoint of the range of suggested values. ``high`` is excluded from the - range. - - .. note:: - If ``step`` is specified, ``high`` is included as well as ``low``. - + Uppe...
Tests: Output command that failed during coverage taking * This makes it unnecessary to attempt to reconstruct what happened from flags given.
@@ -641,6 +641,8 @@ Taking coverage of '{filename}' using '{python}' with flags {args} ...""".format nuitka_cmd1 ) + python_path_used = os.environ["PYTHONPATH"] + if exit_nuitka1 != 0: if ( not expect_failure @@ -649,12 +651,12 @@ Taking coverage of '{filename}' using '{python}' with flags {args} ...""".format ): sys.e...
Update README.md clear explanation for running clusters on testnet/private net
@@ -58,6 +58,7 @@ To activate the virtual environment ```bash source ~/virtualenv/qc/bin/activate +# the rest of the tutorial assumes virtual environment ``` Install rocksdb which is required by the `python-rocksdb` module in the next step @@ -78,7 +79,7 @@ pip install -e . Once all the modules are installed, try runni...
Make "practice" the default org type for location endpoint This was the behaviour under the old API and we are still getting requests which expect this.
@@ -11,7 +11,9 @@ import api.view_utils as utils @api_view(['GET']) def org_location(request, format=None): - org_type = request.GET.get('org_type', '') + # We make practice the default org type for compatibility with the previous + # API + org_type = request.GET.get('org_type', 'practice') centroids = request.GET.get(...
children_crossing: process /watch?=xxx&list=xxx as playlists Resolves
@@ -1370,8 +1370,13 @@ class MusicBot(discord.Client): linksRegex = '((http(s)*:[/][/]|www.)([a-z]|[A-Z]|[0-9]|[/.]|[~])*)' pattern = re.compile(linksRegex) matchUrl = pattern.match(song_url) - if matchUrl is None: - song_url = song_url.replace('/', '%2F') + song_url = song_url.replace('/', '%2F') if matchUrl is None e...
Added mention of collections keywords to list of API keywords I'm not sure if I should includre 'Generate Test Data', since it doesn't directly call the salesforce API. However, its main use is to create data to be passed to the collection keywords.
@@ -286,6 +286,10 @@ API Keywords In addition to browser interactions, the Salesforce Library also provides the following keywords for interacting with the Salesforce REST API: +* **Salesforce Collection Insert**: used for bulk creation of objects + based on a template +* **Salesforce Collection Update**: used for the ...
update conditions to run disconnected_buildings_heating_main only run it when space heating is presented in a district
@@ -29,13 +29,13 @@ def disconnected_building_main(locator, total_demand, config, prices, lca): """ # local variables - #TODO: This will do it in Singapore too, so watch-out... buildings_name_with_heating = get_building_names_with_load(total_demand, load_name='QH_sys_MWhyr') + buildings_name_with_space_heating = get_bu...
virt.init: move enable_qcow to disks parameter enable_qcow is rather badly named since it doesn't tell the user what that actually does. Thanks to the new disks parameter, this option can now be set on a per-disk basis in the disks structure using a new overlay_image property. enable_qcow is now marked as deprecated
@@ -743,7 +743,7 @@ def _qemu_image_create(vm_name, disk_image=None, disk_size=None, disk_type='qcow2', - enable_qcow=False, + create_overlay=False, saltenv='base'): ''' Create the image file using specified disk_size or/and disk_image @@ -782,7 +782,7 @@ def _qemu_image_create(vm_name, imageinfo = salt.utils.yaml.safe...
Mark complex cycle grpc server watch tests as skipped Summary: Title Test Plan: none Reviewers: prha
import time +import pytest from dagster.grpc.client import DagsterGrpcClient from dagster.grpc.server import open_server_process from dagster.grpc.server_watcher import create_grpc_watch_thread @@ -154,6 +155,7 @@ def should_not_be_called(*args, **kwargs): assert called["on_error"] +@pytest.mark.skip def test_grpc_watc...
Remove line that calls get_tags() method The tags have now been shifted from the database to being static files and hence the get_tags() method has undergone changes. It now dosen't fetch from the database but looks at the local files and we need not call it more than once.
@@ -97,8 +97,6 @@ class Tags(Cog): `predicate` will be the built-in any, all, or a custom callable. Must return a bool. """ - await self._get_tags() - keywords_processed: List[str] = [] for keyword in keywords.split(','): keyword_sanitized = keyword.strip().casefold()
Make log about queue management duplicate thread be an error If this case is firing, then something is wrong.
@@ -499,7 +499,7 @@ class HighThroughputExecutor(BlockProviderExecutor, RepresentationMixin): logger.debug("Started queue management thread") else: - logger.debug("Management thread already exists, returning") + logger.error("Management thread already exists, returning") def hold_worker(self, worker_id): """Puts a work...
Adjust video frame control flow to not require `with gil`. This breaks subinterpreters. See
@@ -83,6 +83,9 @@ cdef class VideoFrame(Frame): self._init(c_format, width, height) cdef _init(self, lib.AVPixelFormat format, unsigned int width, unsigned int height): + + cdef int res = 0 + with nogil: self.ptr.width = width self.ptr.height = height @@ -93,17 +96,18 @@ cdef class VideoFrame(Frame): # We enforce align...
Update import path for get_package_repo_data. refactored this function out of common but this script didn't get the updated import path.
@@ -27,10 +27,10 @@ from ros_buildfarm.argument import add_argument_os_code_name from ros_buildfarm.argument import add_argument_os_name from ros_buildfarm.argument import add_argument_rosdistro_name from ros_buildfarm.common import get_os_package_name -from ros_buildfarm.common import get_package_repo_data from ros_bu...
BoolWidget : Fix unwanted horizontal expansion This could cause fixed-width value widgets to be right-aligned in NameValuePlugValueWidget. This was made apparent by which made the OpenGLAttributes `maxTextureResolution` widget fixed-width. Fixes BoolWidget : Fixed unwanted horizontal expansion.
@@ -148,6 +148,10 @@ class _CheckBox( QtWidgets.QCheckBox ) : self.__hitMode = self.HitMode.CheckBox + self.setSizePolicy( QtWidgets.QSizePolicy( + QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed + ) ) + def setHitMode( self, hitMode ) : self.__hitMode = hitMode
Fixes testing 11.5.4 in daemon log settings Issues: Fixes Problem: Daemon log settings were incorrectly testing 11.5.4 Analysis: This adds a skipif Tests: functional
# limitations under the License. # +import pytest +from distutils.version import LooseVersion + def setup_daemon_log_settings_clusterd_test(request, mgmt_root): def teardown(): @@ -103,6 +106,10 @@ class TestDaemon_Log_Settings(object): daemon2.refresh() assert daemon1.logLevel == daemon2.logLevel + @pytest.mark.skipif...
click signal did not work, replace it with MousePressEvent Probably a problem with context menu blocking signal
@@ -338,9 +338,8 @@ class CopySingleCellAction(qt.QAction): """QAction to copy text from a single cell in a modified :class:`QTableWidget`. - This action relies on the fact that the row and column coordinates - of the last click are stored in :attr:`_last_cell_clicked` of the - modified widget. + This action relies on ...
Release: Added classifiers to setup. * Seems that "landscape.io" might use these to derive the supported Python versions, so let's have that. * Also might give Nuitka better description on PyPI.
@@ -206,6 +206,53 @@ setup( name = project_name, license = "Apache License, Version 2.0", version = version, + classifiers = [ + # Nuitka is mature even + "5 - Production/Stable", + + # Indicate who Nuitka is for + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + + # Nuitka is a compiler ...
Permission to read new CRD, Hosts and LogService Added newly added CRD to CRD rbac
@@ -29,6 +29,8 @@ rules: - filters.getambassador.io - filterpolicies.getambassador.io - ratelimits.getambassador.io + - hosts.getambassador.io + - logservices.getambassador.io verbs: ["get", "list", "watch", "delete"] --- apiVersion: rbac.authorization.k8s.io/v1beta1
fix iteration over column dict in table Currently, iterating over a Row in a Table with columns that aren't labeled '0', '1', '2', etc., will fail, making it appear as if every Row is empty. This is fixed here, so that the actual OrderedDict of column names will be iterated over.
@@ -61,10 +61,8 @@ class Table(awkward.array.base.AwkwardArray): def __iter__(self, checkiter=True): if checkiter: self._table._checkiter() - i = 0 - while str(i) in self._table._contents: - yield self._table._contents[str(i)][self._index] - i += 1 + for i in self._table._contents: + yield self._table._contents[i][self...
ENH: added `data_dir` attribute Added a data directory attribute that makes it possible to specify an absolute path for files not included in the local pysat data directories.
@@ -390,7 +390,13 @@ class Instrument(object): # Assign an absolute path for files that may not be part of the # standard pysat directory structure - self.data_dir = data_dir if os.path.isdir(data_dir) else None + if os.path.isdir(data_dir): + self.data_dir = data_dir + else: + if len(data_dir) > 0: + logger.warning("d...
Minor style correction no-tn-check
@@ -28,7 +28,9 @@ package body Langkit_Support.Adalog.Abstract_Relation is Put_Line ("Press enter to continue .."); declare Dummy : String := Ada.Text_IO.Get_Line; - begin null; end; + begin + null; + end; end if; end Wait;
Remove date handling function We never call the bubble endpoint without supplying a date so there's no need to support this.
-import datetime - from django.db import connection from django.shortcuts import get_object_or_404 @@ -8,7 +6,6 @@ from rest_framework.response import Response from rest_framework.exceptions import APIException from common.utils import nhs_titlecase -from frontend.models import ImportLog from frontend.models import Pra...
[MetaSchedule] Fix typo of compare between GlobalVar and str fix typo of compare between GlobalVar and str
@@ -53,7 +53,7 @@ def mod(mod: Union[PrimFunc, IRModule]) -> IRModule: # pylint: disable=redefine raise TypeError(f"Expected `mod` to be PrimFunc or IRModule, but gets: {mod}") func_names = mod.get_global_vars() (func_name,) = func_names - if len(func_names) == 1 and func_name != "main": + if len(func_names) == 1 and f...
Actually address a comment made in I made a small change addressing a nit in the PR mentioned in the commit title but forgot to actually push the commit before clicking merge, whoops.
@@ -193,9 +193,8 @@ class FileUploaderMixin: ) ctx = get_report_ctx() - if ctx is not None and widget_value: serialized = serialize_file_uploader(widget_value) - + if ctx is not None and len(serialized) != 0: # The first number in the serialized widget_value list is the id # of the most recently uploaded file. newest_f...
Url conversion test case addition for converting garbled url's into actuals
@@ -468,6 +468,8 @@ def test_slack_message_sanitization(): target_message_1 = "You can sit here if you want" target_message_2 = "Hey, you can sit here if you want !" target_message_3 = "Hey, you can sit here if you want!" + target_message_4 = "convert garbled url to vicdb-f.net" + target_message_5 = "convert multiple g...
Remove the local file in `test_download_dataset` before download The local created file in `test_download_dataset`, which gets uploaded, is not removed before the download. This results in a failing test, since it is cached and thus does not need to be downloaded.
@@ -1039,6 +1039,9 @@ class TestBinRucio: print(self.marker + cmd) exitcode, out, err = execute(cmd) print(out, err) + + os.remove(tmp_file1) + # download dataset cmd = 'rucio -v download --dir /tmp {0}'.format(tmp_dataset) # triming '/tmp/' from filename print(self.marker + cmd)
Fix responsive issue with stream filter search. This fixes the search input collapsing to a second line in between 1024px and 1033px width views.
@@ -955,13 +955,11 @@ form#add_new_subscription { } } -@media (max-width: 1024px) { +@media (max-width: 1033px) { #search_stream_name { display: none; } -} -@media (max-width: 1000px) { .search-container { text-align: center; }
remove legacy APIs from dagster_shell_tests ### Summary & Motivation ### How I Tested These Changes
from contextlib import contextmanager import psutil -from dagster import repository +from dagster import job, op, repository from dagster._core.storage.pipeline_run import DagsterRunStatus from dagster._core.test_utils import instance_for_test, poll_for_finished_run, poll_for_step_start from dagster._core.workspace.con...
Update advanced.rst fix typo
@@ -179,7 +179,7 @@ Pipenv allows you to open any Python module that is installed (including ones in $ pipenv open background Opening '/Users/kennethreitz/.local/share/virtualenvs/hmm-mGOawwm_/src/background/background.py' in your EDITOR. -This allows you to easily read the code your consuming, instead of looking it up...
Change default value for Activity.meta so it's easier to manipulate it in the decider With this, we can have meta parameters assigned like that directly: def foo(): pass class MyWorkflow(Workflow): def run(self): foo.meta["a_key"] = "a_value" self.submit(foo)
@@ -102,7 +102,7 @@ class Activity(object): self.task_schedule_to_close_timeout = schedule_to_close_timeout self.task_schedule_to_start_timeout = schedule_to_start_timeout self.task_heartbeat_timeout = heartbeat_timeout - self.meta = meta + self.meta = meta if meta is not None else {} self.register()
Harmon to Deadline - fix for non alpha last character on write node Number or non alpha (._) last characters in write node create problems. Remove them as this value is internal and not used in final publish either way
@@ -77,11 +77,11 @@ class CollectFarmRender(pype.lib.abstract_collect_render. # is sequence start node on write node offsetting whole sequence? expected_files = [] - # add '.' if last character of file prefix is a number + # remove last char if last character of file prefix is a number file_prefix = info[0] - last_char...
update resilience_stats/views.py top level functions in views are meant to be endpoints
@@ -49,19 +49,6 @@ class ScenarioErrored(Exception): pass -def parse_system_sizes(site): - size_dict = dict() - if "Generator" in site: - size_dict["Generator"] = site["Generator"]["size_kw"] - if "Storage" in site: - size_dict["Storage_kw"] = site["Storage"]["size_kw"] - size_dict["Storage_kwh"] = site["Storage"]["siz...
Eliminate self.tasks[id] from app done callback see
@@ -384,7 +384,7 @@ class DataFlowKernel(object): self._send_task_log_info(task_record) - def handle_app_update(self, task_id, future): + def handle_app_update(self, task_record, future): """This function is called as a callback when an AppFuture is in its final state. @@ -397,12 +397,14 @@ class DataFlowKernel(object)...
SDK - Compiler - Add optional Argo validation argo CLI tool must be in path for this feature to work
@@ -898,12 +898,6 @@ class Compiler(object): yaml.Dumper.ignore_aliases = lambda *args : True yaml_text = yaml.dump(workflow, default_flow_style=False, default_style='|') - if '{{pipelineparam' in yaml_text: - raise RuntimeError( - 'Internal compiler error: Found unresolved PipelineParam. ' - 'Please create a new issue...
Removes superfluous packages. The apt package texlive-full already includes texlive-latex-base and texlive-fonts-extra, so they don't have to installed separately.
@@ -27,9 +27,7 @@ RUN apt-get install -qqy ffmpeg ENV TZ=America/Los_Angeles RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get install -qqy apt-transport-https -RUN apt-get install -qqy texlive-latex-base RUN apt-get install -qqy texlive-full -RUN apt-get install -qqy texlive-fo...
tests/scheduler_conditions: Sanitize Disable 'PTXExec' variant, it hits the same problem as 'LLVMExec'. Drop leftover debug print. Use more targeted result shape workaround. Codestyle.
@@ -4079,14 +4079,15 @@ class TestSystemComposition: class TestSchedulerConditions: @pytest.mark.composition @pytest.mark.parametrize("mode", ['Python', - # pytest.param('LLVM', marks=pytest.mark.llvm), #FIXME: Fails for `LLVM` and `LLVMExec` modes? + #FIXME: "Exec" versions see different shape of previous_value parame...
Add Cast Op Summary: Pull Request resolved:
@@ -203,32 +203,20 @@ NetDef TvmTransformer::applyTvmTransform( const std::unordered_set<int>& blacklisted_ops, const ShapeInfoMap& shape_hints) { auto profiling_based_jit = opts_.profiling_based_jit; - auto tvm_supports = [&blacklisted_ops, - &shape_hints, - &profiling_based_jit]( + auto tvm_supports = [&blacklisted_o...
Enable torch_speed_benchmark to accept different memory formats. Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -37,6 +37,10 @@ C10_DEFINE_string( "semicolon to separate the dimension of different " "tensors."); C10_DEFINE_string(input_type, "", "Input type (uint8_t/float)"); +C10_DEFINE_string( + input_memory_format, + "contiguous_format", + "Input memory format (contiguous_format/channels_last)"); C10_DEFINE_bool( no_inputs...
node.status for vm_workload_consolidation The primary usage of "node.state" is wrong, it should be 'node.status'. So correct it and refactor the method 'get_state_str'.
@@ -169,20 +169,36 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy): choices=["ceilometer", "gnocchi"]) ] - def get_state_str(self, state): - """Get resource state in string format. + def get_instance_state_str(self, instance): + """Get instance state in string format. - :param state: resource sta...
improvements to ccl transmon add measure_flipping(), todo: call correct analysis small typos corrected
@@ -695,7 +695,7 @@ class CCLight_Transmon(Qubit): self.ro_pulse_down_phi1()) ro_lm.acquisition_delay(self.ro_acq_delay()) - ro_lm.load_DIO_triggered_sequence_onto_UHFQC(hardcode_cases=[]) + ro_lm.load_DIO_triggered_sequence_onto_UHFQC() UHFQC.sigouts_0_offset(self.ro_pulse_mixer_offs_I()) UHFQC.sigouts_1_offset(self.r...
Make DFK shutdown wait for app futures, not exec futures This was my original intended behaviour of A task does not always have an exec_fu, and in some cases in testing, the final wait was failing rather than waiting, because it could not find an exec_fu to wait for.
@@ -724,7 +724,7 @@ class DataFlowKernel(object): for task_id in self.tasks: # .exception() is a less exception throwing way of # waiting for completion than .result() - fut = self.tasks[task_id]['exec_fu'] + fut = self.tasks[task_id]['app_fu'] if not fut.done(): logger.debug("Waiting for task {} to complete".format(ta...
Changed ice ring masking width to 1/d**2 to avoid having massive mask areas at high resolution.
.type = space_group .help = "The space group used to generate d_spacings for powder rings." .expert_level = 1 - width = 0.06 + width = 0.002 .type = float(value_min=0.0) - .help = "The width of an ice ring (in d-spacing)." + .help = "The width of an ice ring (in 1/d^2)." .expert_level = 1 d_min = None .type = float(val...
gdb_helpers: always expect [New Thread ...] messages It seems that all control-flow commands may print this message before returning on Windows, even though when this occurs is random. Extend expected patterns to always accept it. TN:
@@ -38,6 +38,13 @@ dsl_break_map: Dict[str, int] = {} Mapping from breakpoint labels in "test.py" to the corresponding line numbers. """ +thread_notif_pattern = r"@/(\[New Thread .*\])?/ @/(Thread \d+ hit )?/" +""" +"quotemeta" pattern for thread-related messages from GDB after a control-flow +command has returned. +""...
(hello) make more mac friendly Originally-Committed-To: Originally-Committed-As:
@@ -43,17 +43,28 @@ func main() { } var profile = flag.String("profile", "dev", "profile") - var output = flag.String("output", "/dev/stdout", "output file") - var input = flag.String("input", "/dev/stdin", "input file") + var output = flag.String("output", "", "output file") + var input = flag.String("input", "", "inp...
Fix dictionary changed size during iteration error with Python 3 In Python 2, dict.keys() would return a copy of the keys as a list which could be modified. In Python 3 it is returned as an iterator which can't be modified, so simply cast it as a list.
@@ -212,7 +212,7 @@ def clear_forms_data(func): LOG.debug('Clearing forms data for application {0}.'.format(fqn)) services.get_apps_data(request)[app_id] = {} LOG.debug('Clearing any leftover wizard step data.') - for key in request.session.keys(): + for key in list(request.session.keys()): # TODO(tsufiev): unhardcode ...
Use psutil to check Windows Service status Closes
@@ -4,13 +4,16 @@ import os import platform import re import subprocess -import sys import time from typing import Any, List, Tuple, cast -from ..util import MonitorConfigurationError from .monitor import Monitor, register +try: + import psutil +except ImportError: + psutil = None + try: import pydbus except ImportErro...
Update apt_pegasus.txt Added addresses from [0] minus duplications. Deleted ```track-your-fedex-package.org``` from ```proofpoint``` is a dup. Deleted ```adjust-local-settings.com``` from ```proofpoint``` is a dup.
@@ -32,7 +32,6 @@ pickuchu.com aalaan.tv accounts.mx -adjust-local-settings.com alawaeltech.com alljazeera.co asrararabiya.co @@ -60,7 +59,6 @@ smser.net sms.webadv.co topcontactco.com tpcontact.co.uk -track-your-fedex-package.org turkeynewsupdates.com turkishairines.info uaenews.online @@ -87,3 +85,18 @@ social-life.i...
testsuite/python_support/utils.py: fix a minor coding style issue TN:
@@ -7,6 +7,7 @@ from langkit.compiled_types import StructMetaclass, T from langkit.diagnostics import DiagnosticError from langkit.expressions import Self from langkit.libmanage import ManageScript +from langkit.utils import reset_memoized def prepare_context(grammar, @@ -140,5 +141,4 @@ def reset_langkit(): T._type_di...
test(test_access_denied_notexist_username): update the error message Apparently the error message has changed slightly in MW 1.34.0-wmf.13, however I was not able to locate the change that has caused this.
@@ -1022,6 +1022,9 @@ class TestLazyLoginNotExistUsername(TestLazyLoginBase): self.assertRaises(pywikibot.NoUsername, req.submit) # FIXME: T100965 self.assertRaises(api.APIError, req.submit) + try: + error.assert_called_with('Login failed (readapidenied).') + except AssertionError: # MW version is older than 1.34.0-wmf...
Update pyTorchDockerImageTag Corresponds to
@@ -122,7 +122,7 @@ pytorch_tutorial_build_defaults: &pytorch_tutorial_build_defaults command: | set -e - export pyTorchDockerImageTag=9de29bef4a5dc0dd1dd19428d83e5a66a44a1ed2 + export pyTorchDockerImageTag=27360e99acec34d1c78f70ba15ac2c28ed96c182 echo "PyTorchDockerImageTag: "${pyTorchDockerImageTag} cat >/home/circle...
Fixing upload_binary_htmls again Summary: Pull Request resolved:
@@ -4,28 +4,29 @@ set -eux -o pipefail # This step runs on multiple executors with different envfile locations if [[ "$(uname)" == Darwin ]]; then - source "/Users/distiller/project/env" + envfile="/Users/distiller/project/env" elif [[ -d "/home/circleci/project" ]]; then # machine executor (binary tests) - source "/ho...
remove duplicate-ish freespace is already handled, in a more robust way, by the bbox method that stretch them by 20%
@@ -110,7 +110,6 @@ class FigureManager: requiredSpacing = boxA.x1 - boxB.x0 else: requiredSpacing = boxA.x0 - boxB.x1 - requiredSpacing *= 1.2 self.translateLabel(labels[a], boxA, dx=-requiredSpacing/2) self.translateLabel(labels[b], boxB, dx=requiredSpacing/2)
Extract out dumping params into a function. Then it can be used from pdb interactively and in other places if need be.
@@ -137,6 +137,21 @@ def optimizer_fun(net_params, step_size=1e-3): return opt_state, opt_update +def log_params(params, name="params"): + """Dumps the params with `logging.error`.""" + for i, param in enumerate(params): + if not param: + # Empty tuple. + continue + if not isinstance(param, tuple): + logging.error( + "...
scripts: Fix pylint issue W1514 in scripts/convert_config.py scripts/convert_config.py:123:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) scripts/convert_config.py:130:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) scripts/convert_config.py:...
@@ -120,14 +120,14 @@ def output_component(component, config, template, outfile): print(f"Writing {component} configuration to {outfile}") - with open(template, "r") as tf: + with open(template, "r", encoding="utf-8") as tf: t = tf.read() j2 = Template(t) r = j2.render(config) - with open(outfile, "w") as o: + with ope...
re-order the __getattribute__ call this call is expected to work in most cases, so it should be attempted first, before looking in the list of alternateNames
@@ -167,13 +167,13 @@ class PropertySet(object): def __getattribute__(self, name): try: + return object.__getattribute__(self, name) + except AttributeError as exc: alternateNames = object.__getattribute__(self, '_alternateNames') if name in alternateNames: return object.__getattribute__(self, 'getProperty')(alternateN...
fix: Ignore ImportError for Notification Settings During migrate, Notification Settings are fetched which doesn't exist yet. It is safe to ignore it because Notification Settings are not created anyway for any user.
@@ -44,7 +44,7 @@ def get_subscribed_documents(): try: doc = frappe.get_doc('Notification Settings', frappe.session.user) subscribed_documents = [item.document for item in doc.subscribed_documents] - except frappe.DoesNotExistError: + except (frappe.DoesNotExistError, ImportError): subscribed_documents = [] return subs...
correct rounding errors in sequence length computation caused crashes with cuda kernels
@@ -187,7 +187,7 @@ class Reshape(Module): input = input.permute(perm) o = input.reshape(input.shape[:dest] + (input.shape[dest] * input.shape[dest + 1],) + input.shape[dest + 2:]) if seq_len is not None: - seq_len = (seq_len * float(initial_len)/o.shape[3]).int() + seq_len = (seq_len * (float(initial_len)/o.shape[3]))...
Improve AppendDims: Use expand_dims when ndims == 1 Use tf.shape instead of GetShape (latter also calls tf.shape, plus a set of tf.slice and tf.pack).
@@ -6397,7 +6397,10 @@ def SequencePaddings(seqlen, maxlen=None): def AppendDims(x, ndims): - return tf.reshape(x, GetShape(x) + [1] * ndims) + if ndims == 1: + return tf.expand_dims(x, -1) + else: + return tf.reshape(x, tf.concat([tf.shape(x), [1] * ndims], axis=0)) def MaybeSoftCapLogits(x, cap=0.0):
tests: reformat test_trim_eviction This commit doesn't introduce any changes to the flow of the tests.
@@ -38,11 +38,11 @@ def test_trim_eviction(cache_mode, cache_line_size, filesystem, cleaning): test_file_path = os.path.join(mount_point, "test_file") with TestRun.step("Prepare devices."): - cache_disk = TestRun.disks['cache'] + cache_disk = TestRun.disks["cache"] cache_disk.create_partitions([Size(1, Unit.GibiByte)])...
Fix center alignment of dagster logo in readme Test Plan: docs only
-<span style="display: block; text-align: center"><img align="center" src="https://user-images.githubusercontent.com/609349/57987382-7e294500-7a35-11e9-9c6a-f73e0f1d3a1c.png" /> +<p align="center"> +<img src="https://user-images.githubusercontent.com/609349/57987382-7e294500-7a35-11e9-9c6a-f73e0f1d3a1c.png" /> <br /><b...
[compiler] Stop calling `Thread.getStackTrace` in `cb.fatal` Leave old code commented out for debugging
@@ -354,9 +354,10 @@ object Code { } private def getEmitLineNum: Int = { - val st = Thread.currentThread().getStackTrace - val i = st.indexWhere(ste => ste.getFileName == "Emit.scala") - if (i == -1) 0 else st(i).getLineNumber +// val st = Thread.currentThread().getStackTrace +// val i = st.indexWhere(ste => ste.getFil...
fix(reportview): use .pop instead of del use .pop() instead of del to avoid KeyError
@@ -27,8 +27,8 @@ def get_form_params(): """Stringify GET request parameters.""" data = frappe._dict(frappe.local.form_dict) - del data["cmd"] - del data["data"] + data.pop('cmd', None) + data.pop('data', None) if "csrf_token" in data: del data["csrf_token"]
Fix Report Disocvery Problem profile_name HG-- branch : feature/microservices
@@ -17,6 +17,8 @@ from noc.lib.nosql import get_db from pymongo import ReadPreference from noc.main.models.pool import Pool from noc.sa.models.managedobject import ManagedObject +from noc.sa.models.profile import Profile +from noc.sa.models.profile import GENERIC_PROFILE from noc.sa.models.managedobjectprofile import M...
faq: add ERROR 1148 (42000) * faq: add ERROR 1148 (42000) Via: * faq: fix a typo
@@ -825,3 +825,9 @@ update mysql.tidb set variable_value='30m' where variable_name='tikv_gc_life_tim #### ERROR 1105 (HY000): other error: unknown error Wire Error(InvalidEnumValue(4004)) This error usually occurs when the version of TiDB does not match with the version of TiKV. To avoid version mismatch, upgrade all c...
Testing/Ethernet: add SCHED_FIFO API call SCHED_FIFO is more desirable than SCHED_DEADLINE as it has no timeout, and we can tune the priority as needed.
@@ -71,10 +71,11 @@ BUFFER_SIZE = 4096 # Size in bytes of buffer for PC to receive message TCP_RECEIVE_BUFFER_SIZE = 16 # Scheduling parameters -SCHEDDL_SETTING = "" +SCHEDDL_SETTING = "fifo" SCHEDDL_RUNTIME = 300000000000 SCHEDDL_DEADLINE = 600000000000 SCHEDDL_PERIOD = 600000000000 +SCHEDDL_PRIORITY = 1 ETH_ECHO_TEST...
Update setup_mac.md Clarification on what hardware tensorflow-gpu operates
@@ -40,7 +40,7 @@ pip install -e .[pc] * Tensorflow GPU -Currently there is no gpu support for [tensorflow on mac](https://www.tensorflow.org/install#install-tensorflow). +Currently there is no NVidia gpu support for [tensorflow on mac](https://www.tensorflow.org/install#install-tensorflow). * Create your local working...
[modules/title] fixed runtime exception From i3ipc the find_focused().name can return a None instead of a string, this will casue a runtime exception
@@ -23,6 +23,8 @@ import bumblebee.engine from bumblebee.output import scrollable +no_title = "n/a" + class Module(bumblebee.engine.Module): """Window title module.""" @@ -36,7 +38,7 @@ class Module(bumblebee.engine.Module): self._i3 = i3ipc.Connection() self._full_title = self._i3.get_tree().find_focused().name except...
Replace FA pro issue icon with the regular icon We stopped using FA pro, as we wanted it was using an ex-admin's person FA pro subscription, which we didn't control.
@@ -27,7 +27,7 @@ Our projects on Python Discord are open source and [available on Github](https:/ </div> </div> <div class="card-footer"> - <a href="https://github.com/python-discord/sir-lancebot/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc" class="card-footer-item"><i class="far fa-exclamation-circle"></i>&ensp;...
Temporarily disable fluentd from scenario001-multinode-containers Mixing containers and BM is currently not working. Once the master promotion will take place we will have a fluentd container and can readd fluentd as a container and the problem should not re-occurr. Related-Bug:
@@ -29,7 +29,9 @@ resource_registry: # FIXME(mandre) fluentd container image missing from tripleomaster registry # https://bugs.launchpad.net/tripleo/+bug/1721723 # OS::TripleO::Services::FluentdClient: ../../docker/services/fluentd-client.yaml - OS::TripleO::Services::FluentdClient: ../../puppet/services/logging/fluen...
Update typo in instructions.md Corrected "a adjective" to "an adjective"
@@ -77,7 +77,7 @@ Implement the `remove_suffix_ness(<word>)` function that takes in a word `str`, ## 4. Extract and transform a word Suffixes are often used to change the part of speech a word has. - A common practice in English is "verbing" or "verbifying" -- where a adjective _becomes_ a verb by adding an `en` suffix...
BUG: Fix in memory fx rate lookups in py3. Convert from S3 -> U3 before doing lookup.
+"""Interface and definitions for foreign exchange rate readers. """ -""" +import six from interface import implements, Interface @@ -47,6 +48,11 @@ class InMemoryFXRateReader(implements(FXRateReader)): self._data = data def get_rates(self, field, quote, bases, dates): + if six.PY3: + # DataFrames in self._data should ...
Create faq.html * Create faq.html * Add route for FAQ page * Update faq.html Updated based on feedback & have made other fixes after looking at staging site * Update faq.html * Update faq.html Changed page title
@@ -12,6 +12,8 @@ urlpatterns = [ url(r'^api/$', TemplateView.as_view(template_name='api.html'), name="api"), url(r'^about/$', TemplateView.as_view(template_name='about.html'), name="about"), + url(r'^faq/$', TemplateView.as_view(template_name='faq.html'), + name="faq"), url(r'^caution/$', TemplateView.as_view(template...
Added Arch Linux (ARM) Adding Arch Linux ARM
@@ -91,6 +91,48 @@ Manual installation (On Raspbian Wheezy) echo "export PYTHONPATH=$(pwd):\$PYTHONPATH" >> ~/.profile source ~/.profile +Manual installation (On Arch Linux ARM) +------------------------------------------------ + +#. Install the dependencies:: + + sudo pacman -Syu + sudo pacman -S sdl2 sdl2_gfx sdl2_im...
update exp. family doc Summary: sphinx doesn't understand hyphen. it does not merge the two halves together in html. Pull Request resolved:
@@ -18,8 +18,8 @@ class ExponentialFamily(Distribution): Note: This class is an intermediary between the `Distribution` class and distributions which belong to an exponential family mainly to check the correctness of the `.entropy()` and analytic KL - divergence methods. We use this class to compute the entropy and KL ...
Update options.py Remove Ifremer path to gdac ftp
@@ -20,7 +20,7 @@ USER_LEVEL = 'mode' # Define the list of available options and default values: OPTIONS = {DATA_SOURCE: 'erddap', - LOCAL_FTP: '/home/ref-argo/gdac', # default Argo data set on Ifremer/Datarmor network + LOCAL_FTP: '.', DATASET: 'phy', DATA_CACHE: os.path.expanduser(os.path.sep.join(["~", ".cache", "ar...
Fix for Python 3.6 Take asynccontextmanager from `prompt_toolkit.eventloop.async_context_manager`.
""" Implementation for async generators. """ -from contextlib import asynccontextmanager from queue import Empty, Full, Queue from threading import Event from typing import ( @@ -14,6 +13,7 @@ from typing import ( Union, ) +from .async_context_manager import asynccontextmanager from .utils import get_event_loop, run_in...
Travis CI: use e3-testsuite's --failure-exit-code option TN:
@@ -15,14 +15,12 @@ which gprbuild gcc -v gprbuild -v -# Duplicate output of testsuite in file TESTSUITE_OUT. +# Exit with an error if there is a test failure/error. # # TODO: adjust the Travis CI setup to provide a viable OCaml environment and # enable the corresponding testcases. ./scripts/interactive_testsuite \ --n...
Improve error message One arguments it not sufficient and three arguments would be inconsistent, so the error message asks for exactly two arguments.
@@ -62,7 +62,7 @@ class Material: given_args.append(arg) if len(given_args) != 2: raise ValueError( - "At least 2 arguments from E, G_s" "and Poisson should be provided " + "Exactly 2 arguments from E, G_s and Poisson should be provided" ) self.name = name self.rho = rho
Removing Anaconda install suggestion Due to various issues that seem to be limited to the Anaconda package manager. Use pip (and virtual environments!)
@@ -50,18 +50,6 @@ pySPEDAS supports Windows, macOS and Linux. To get started, install the `pyspeda pip install pyspedas --upgrade ``` -### Anaconda - -```bash -conda install -c spedas pyspedas -``` - -You can upgrade to the latest version using: - -```bash -conda update -c spedas pyspedas -``` - ## Usage To get starte...
Fixes bug in usage of custom LM opt for gauge optimization. Because the minSol solution object returned by scipy is *not* the same as the what is returned by our custom LM routine! This commit adds a little plumbing to call the custom LM optimizer correctly.
@@ -483,26 +483,29 @@ def gaugeopt_custom(gateset, objective_fn, gauge_group=None, minSol = _opt.minimize(call_objective_fn, x0, method=method, maxiter=maxiter, maxfev=maxfev, tol=tol, callback = print_obj_func if bToStdout else None) + solnX = minSol.x + solnF = minSol.fun elif algorithm == 'ls': jacobian = calculate_...
lint pyflakes: Pull out our error-suppression patterns as data. This makes the list much cleaner to understand and edit.
@@ -7,6 +7,27 @@ from .printer import print_err, colors from typing import Any, Dict, List +suppress_patterns = [ + (b'', b'imported but unused'), + (b'', b'redefinition of unused'), + + # Our ipython startup pythonrc file intentionally imports * + (b"scripts/lib/pythonrc.py", + b" import *' used; unable to detect unde...
llvm: Remove incorrect comment LLVM IR doesn't have void* type.
@@ -732,7 +732,6 @@ def _convert_llvm_ir_to_ctype(t:ir.Type): elif type_t is ir.FloatType: return ctypes.c_float elif type_t is ir.PointerType: - # FIXME: Can this handle void*? Do we care? pointee = _convert_llvm_ir_to_ctype(t.pointee) ret_t = ctypes.POINTER(pointee) elif type_t is ir.ArrayType:
Update index.rst Changed Elasticsearch typo '6.0' to 7.0.
@@ -30,7 +30,7 @@ Compatibility The library is compatible with all Elasticsearch versions since ``2.x`` but you **have to use a matching major version**: -For **Elasticsearch 6.0** and later, use the major version 7 (``7.x.y``) of the +For **Elasticsearch 7.0** and later, use the major version 7 (``7.x.y``) of the libr...
Add temp CoolingLoad test in test_job_endpoint May be temporary just to debug CoolingLoad inputs and outputs
@@ -159,3 +159,35 @@ class TestJobEndpoint(ResourceTestCaseMixin, TestCase): self.assertAlmostEqual(results["ElectricLoad"]["offgrid_load_met_fraction"], 0.99999, places=-2) self.assertAlmostEqual(sum(results["ElectricLoad"]["offgrid_load_met_series_kw"]), 8760.0, places=-1) self.assertAlmostEqual(results["Financial"][...
Remove mention of --file-store from tracking docs Fixing based on feedback from mlflow slack
@@ -358,11 +358,7 @@ backend as ``./path_to_store`` or ``file:/path_to_store`` and a *database-backed `SQLAlchemy database URI <https://docs.sqlalchemy.org/en/latest/core/engines .html#database-urls>`_. The database URI typically takes the format ``<dialect>+<driver>://<username>:<password>@<host>:<port>/<database>``. ...
add --to-mp4 argument to resize_videos.py * Update resize_videos.py To support resizeing .webm videos * correct error * change back, but add one line * add --to-mp4 argument * Add comment
@@ -17,6 +17,11 @@ def resize_videos(vid_item): bool: Whether generate video cache successfully. """ full_path, vid_path = vid_item + # Change the output video extension to .mp4 if '--to-mp4' flag is set + if args.to_mp4: + vid_path = vid_path.split('.') + assert len(vid_path) == 2, f"Video path '{vid_path}' contain mo...
Code block: return code blocks with valid ticks but no lang Such code block will be useful down the road for sending information on including a language specified if the content successfully parses as valid Python.
@@ -227,26 +227,23 @@ class CodeBlockCog(Cog, name="Code Block"): log.trace("The code consists only of expressions, not sending instructions") @staticmethod - def find_invalid_code_blocks(message: str) -> Sequence[CodeBlock]: + def find_code_blocks(message: str) -> Sequence[CodeBlock]: """ - Find and return all invalid...
Remove redundant comment We no longer have a noop client
@@ -365,8 +365,6 @@ class Config(object): AWS_REGION = 'eu-west-1' - # CBC Proxy - # if the access keys are empty then noop client is used CBC_PROXY_AWS_ACCESS_KEY_ID = os.environ.get('CBC_PROXY_AWS_ACCESS_KEY_ID', '') CBC_PROXY_AWS_SECRET_ACCESS_KEY = os.environ.get('CBC_PROXY_AWS_SECRET_ACCESS_KEY', '')
Update tests/test_server.py fix test fail
@@ -694,7 +694,8 @@ def test_load_model_from_model_server(rasa_app, trained_core_model): assert old_fingerprint != response.json["fingerprint"] - + import rasa.core.jobs + rasa.core.jobs.__scheduler = None def test_load_model_invalid_request_body(rasa_app): _, response = rasa_app.put("/model")
Updating regional account ids for af-south-1 and eu-south-1 Adding Debugger Repo Account IDs for `af-south-1` (Cape Town) and `eu-south-1` (Milan)
@@ -16,6 +16,7 @@ from sagemaker import image_uris from tests.unit.sagemaker.image_uris import expected_uris, regions ACCOUNTS = { + "af-south-1": "314341159256", "ap-east-1": "199566480951", "ap-northeast-1": "430734990657", "ap-northeast-2": "578805364391", @@ -27,6 +28,7 @@ ACCOUNTS = { "cn-northwest-1": "6587577092...
[App Service] az staticwebapp hostname show: Fix dns-txt-token validation command to show command az staticwebapp hostname get does not exist. Instead users should use hostname show
@@ -134,7 +134,7 @@ def set_staticsite_domain(cmd, name, hostname, resource_group_name=None, no_wait name, hostname, domain_envelope) if validation_method.lower() == "dns-txt-token": - validation_cmd = ("az staticwebapp hostname get -n {} -g {} " + validation_cmd = ("az staticwebapp hostname show -n {} -g {} " "--hostn...
Update training.rst Added Sales: General Questions channel to channel list
@@ -81,6 +81,7 @@ Whenever possible, we share key updates and have discussions in Mattermost. Some - `Marketing Website <https://community.mattermost.com/private-core/channels/marketing-website-priv>`_ - Website bugs, release notes, and web discussions - `Product Management <https://community.mattermost.com/core/channe...
catch deprecated basis specification Some devices would return a basis of the form 'SU2+CNOT'. If there are no commas in basis string it will be replaced with u1,u2,u3,cx.id and a warning will be logged.
@@ -996,6 +996,11 @@ class QuantumProgram(object): if not basis_gates: if 'basis_gates' in backend_conf: basis_gates = backend_conf['basis_gates'] + elif len(basis_gates.split(',')) < 2: + # catches deprecated basis specification like 'SU2+CNOT' + logger.warn('encountered deprecated basis specification: ' + '"{}" subst...
Fix variable name for stackhpc.os-networks upper constraints Upper constraints should be defined using os_networks_upper_constraints_file rather than os_openstacksdk_upper_constraints_file because of [1]. 1. TrivialFix
- role: stackhpc.os-networks os_openstacksdk_install_epel: "{{ dnf_install_epel }}" os_openstacksdk_state: latest - os_openstacksdk_upper_constraints_file: "{{ pip_upper_constraints_file }}" + os_networks_upper_constraints_file: "{{ pip_upper_constraints_file }}" os_networks_venv: "{{ venv }}" os_networks_auth_type: "{...
Fix documentation docker Readme Updated Docker Readme with info about `Dockerfile.Alpine`
This directory contains various Docker related utilities. -* `Dockerfile.master` -- a Dockerfile to build neo-python's master branch -* `Dockerfile.dev` -- a Dockerfile to build neo-python's development branch +* `Dockerfile` -- a Dockerfile to build neo-python's (Ubuntu Linux distribution) +* `Dockerfile.Alpine` -- a ...