message
stringlengths
13
484
diff
stringlengths
38
4.63k
fix: to_tensor applied on a jt.Var Allow jt.transform.to_tensor applied on a jt.Var (do nothing but return the inputs).
@@ -408,6 +408,9 @@ def to_tensor(pic): img = Image.open(...) img_ = transform.to_tensor(img) """ + if isinstance(pic, jt.Var): + return pic + if isinstance(pic, tuple): # try convert ten crop tuple pic = ( to_tensor(pic) for p in pic )
Add -ate words (Issue As mentioned, following words added: Authenticate Automate Assimilate Associate Followed separate parts-of-speech guidlines for Associate. Assimilate had tailing semicolon removed as it messes up with JSON parsing.
"word": "Assimilate", "definitions": [ "To take in (information, ideas, or culture) and understand fully." - "To cause (something) to resemble; liken." + "To cause (something) to resemble." ], "parts-of-speech": "Verb" }
Update default size to 20 Tib Now in managed service provider add-on of stagging and production the only available storage cluster size is 20 TiB .
@@ -206,7 +206,7 @@ ENV_DATA: deploy_acm_hub_cluster: false #Managed service - Managed StorageCluster size in TiB - size: '4' + size: '20' # This section is related to upgrade UPGRADE:
Python API: enhance array bindings to ease refactoring In particular, isolate what can be shared code-generation-wise from what cannot. TN:
% if cls.element_type()._exposed or ctx.library_fields_all_public: <% type_name = cls.name().camel - element_type = pyapi.type_internal_name(cls.element_type()) + c_element_type = pyapi.type_internal_name(cls.element_type()) %> @@ -18,7 +18,7 @@ class ${type_name}(object): self._length = c_value.contents.n items_addr =...
readd the BOM stripping from source for docutils The case is tested with the testing/examples/good/bom.rst file.
@@ -170,6 +170,12 @@ def check_source( string_io = io.StringIO() + # This is a hack to avoid false positive from docutils (#23). docutils mistakes BOMs for actual + # visible letters. This results in the "underline too short" warning firing. + # This is tested in the CLI integration tests with the `testing/examples/goo...
Change missing memcache chunk error to warning Review-Url:
@@ -265,14 +265,14 @@ def get_cached_swarming_bot_zip(version): for idx, f in enumerate(futures): chunk = f.get_result() if chunk is None: - logging.debug('bot code %s was missing chunk %d/%d', - version, idx, len(futures)) + logging.debug( + 'bot code %s was missing chunk %d/%d', version, idx, len(futures)) missing +=...
port ge changes from bert/pytorch_fusion Summary: Pull Request resolved:
-#include <memory> -#include <torch/csrc/jit/runtime/graph_executor.h> -#include <torch/csrc/jit/jit_log.h> #include <torch/csrc/jit/ir/alias_analysis.h> +#include <torch/csrc/jit/jit_log.h> #include <torch/csrc/jit/passes/constant_propagation.h> #include <torch/csrc/jit/passes/guard_elimination.h> #include <torch/csrc...
Update localftp.py Improve perf for float and profile localftp index fetchers
@@ -651,7 +651,8 @@ class IndexFetcher_wmo(LocalFTPArgoIndexFetcher): il_read, il_loaded, il_this = 0, 0, 0 for line in index: il_this = il_loaded - if re.search("/%i/" % wmo, line.split(',')[0]): + # if re.search("/%i/" % wmo, line.split(',')[0]): + if "/%i/" % wmo in line: # much faster than re # Search for the wmo a...
Update malicious_php.txt ```/assets/images/accesson.php``` is the main sign of compromised MODX. ```/assets/images/customizer.php``` is the secondary one.
@@ -499,3 +499,9 @@ westflies.com/api/api.php # Reference: https://twitter.com/MalwarePatrol/status/1159617579469742082 /835pnjmr1w4p5ypvgcymfkkx.php + +# Reference: https://forums.modx.com/thread/102644/evo-1-2-1-hacked-again-and-again +# Generic trails for compromised MODX CMS-es + +/assets/images/accesson.php +/asse...
Fix container priority for docker compose recipe Cache must be running *before* the server Server must be running *before* the worker
@@ -57,6 +57,18 @@ services: - inventree_data:/var/lib/postgresql/data/ restart: unless-stopped + # redis acts as database cache manager + inventree-cache: + container_name: inventree-cache + image: redis:7.0 + depends_on: + - inventree-db + env_file: + - .env + ports: + - ${INVENTREE_CACHE_PORT:-6379}:6379 + restart: ...
Add extra split identifier Added an extra split identifier to make sure presence of extras does not influence determining whether clearml is included in requirements.
@@ -255,7 +255,7 @@ class CreateAndPopulate(object): for line in reqs: if line.strip().startswith('#'): continue - package = reduce(lambda a, b: a.split(b)[0], "#;@=~<>", line).strip() + package = reduce(lambda a, b: a.split(b)[0], "#;@=~<>[", line).strip() if package == 'clearml': clearml_found = True break
Fix exception when using non-device parameters in DeviceCommands This happens e.g. when starting udiskie with: udiskie -ANT --notify-command "echo {event}" Regression introduced by: Commit: Subject: Remove deprecated syntax for positional parameter in format strings
@@ -192,6 +192,7 @@ class DeviceCommand: for text, kwd, spec, conv in formatter.parse(arg): if kwd is None: continue + if kwd in DeviceFilter.VALID_PARAMETERS: self.used_attrs.add(kwd) if kwd not in DeviceFilter.VALID_PARAMETERS and \ kwd not in self.extra:
ExamplesIterable fixes ex iterable fixes
@@ -108,10 +108,10 @@ class ExamplesIterable(_BaseExamplesIterable): def shuffle_data_sources(self, generator: np.random.Generator) -> "ExamplesIterable": return ShardShuffledExamplesIterable(self.generate_examples_fn, self.kwargs, generator) - def shard_data_sources(self, shard_idx: int) -> "MappedExamplesIterable": +...
Windows: Fix, bist_nuitka for nested namespaces was broken * The fixup for the filename was no longer necessary after the usage of "asPath" on the module name and even causing an issue with copying the file to itself, which doesn't work on Windows.
@@ -28,7 +28,6 @@ import wheel.bdist_wheel # pylint: disable=I0021,import-error,no-name-in-module from nuitka.tools.testing.Common import my_print from nuitka.utils.Execution import check_call -from nuitka.utils.FileOperations import copyTree, removeDirectory def setupNuitkaDistutilsCommands(dist, keyword, value): @@ -...
Fix the bug when using gdbserver If we execute the `monitor` command in `is_debug_probe()`, the GDB with normal GDBserver will stuck after first `continue`. To avoid this, we check if `monitor help` showed that we are using GDBserver.
@@ -25,6 +25,21 @@ def is_debug_probe(): Returns True if the target is a debug probe for an embedded device. Currently detects the Black Magic Probe and the SEGGER J-Link GDB Server. """ + try: + help_output = gdb.execute("monitor help", to_string=True) + if ( + "GDBserver" in help_output + and "Black Magic Probe" not ...
Fix BQL error on holdings by account page Commit ("Use better default order for holdings") introduced a BQL error on the "Holdings by Account" page.
cost(sum(position)) as book_value, value(sum(position)) as market_value WHERE account_sortkey(account) ~ "^[01]" - GROUP BY account, cost_currency, account_sortkey(account) + GROUP BY account, cost_currency, account_sortkey(account), currency ORDER BY account_sortkey(account), currency', 'currency': 'SELECT units(sum(p...
Update README.md Add a "note" on font awesome usage.
@@ -30,6 +30,8 @@ Supported FontAwesome version: 4 (free version of 5 doesn't include some of the Explicitly unsupported Python versions: 3.2 (missing unicode literals) +:information_source: The ![Font Awesome](https://fontawesome.com/) is required for all themes that contain icons (because that is the font that includ...
Delete some unused variables. Summary: Pull Request resolved:
@@ -72,11 +72,10 @@ Tensor prelu_cuda(const Tensor& self, const Tensor& weight_) { AT_CHECK(input_ndim > 0, "Not allow zero-dim input tensor."); int64_t channel_size = 1; // channel_size default to 1 - int64_t input_dim0_size = 1, input_stride0 = 1, input_stride1 = 1; + int64_t input_stride0 = 1, input_stride1 = 1; if ...
add filter for boolean values in dict2string so "no_rot=True" works (issue
@@ -33,6 +33,9 @@ def _dict2string(projparams): # convert a dict to a proj4 string. pjargs = [] for key, value in projparams.items(): + if type(value) == bool and value == True: + pjargs.append("+" + key + " ") + else: pjargs.append("+" + key + "=" + str(value) + " ") return "".join(pjargs)
Stats app : Fix bugs with `-preCache` argument Use script context Respect `-frames` argument
@@ -385,17 +385,21 @@ class stats( Gaffer.Application ) : IECore.msg( IECore.Msg.Level.Error, "stats", "Scene \"%s\" does not exist" % args["scene"].value ) return - if args["preCache"].value : - GafferSceneTest.traverseScene( scene ) + def computeScene() : - memory = _Memory.maxRSS() - with _Timer() as sceneTimer : - ...
Listing S3 bucket objects returns Object instead of ObjectSummary. Fixes
@@ -830,9 +830,7 @@ class AWSBucketContainer(BaseBucketContainer): else: # pylint:disable=protected-access boto_objs = self.bucket._bucket.objects.all() - objects = [AWSBucketObject(self._provider, obj) - for obj in boto_objs] - + objects = [self.get(obj.key) for obj in boto_objs] return ClientPagedResultList(self._pro...
Pay attention to function substitution done by output staging Prior to this, staging providers were given the opportunity to replace the app function with a staging wrapper for stageout, but that staging wrapper was then discarded.
@@ -686,7 +686,7 @@ class DataFlowKernel(object): # Transform remote input files to data futures args, kwargs, func = self._add_input_deps(executor, args, kwargs, func) - self._add_output_deps(executor, args, kwargs, app_fu, func) + func = self._add_output_deps(executor, args, kwargs, app_fu, func) task_def.update({ 'a...
Fix test_get_field to not depend on platform-specific path handling This test was failing on Windows due to either abspath() or expanduser() normalizing paths by changing slashes to backslashes (and sometimes adding a drive letter): E AssertionError: 'D:\\path\\to\\image.jpg' != '/path/to/image.jpg'
@@ -768,13 +768,13 @@ class SampleTests(unittest.TestCase): @drop_datasets def test_get_field(self): - filepath = "/path/to/image.jpg" - sample = fo.Sample(filepath=filepath) + field_value = "custom_value" + sample = fo.Sample(filepath="/path/to/image.jpg", field1=field_value) # get valid - self.assertEqual(sample.get_...
put back the method all_modules even if no longer used by `_read_aliases` it is still needed in other parts of the program.
@@ -16,6 +16,16 @@ try: except ImportError: from configparser import RawConfigParser +def all_modules(): + """Return a list of available modules""" + result = [] + path = os.path.dirname(bumblebee.modules.__file__) + for mod in [name for _, name, _ in pkgutil.iter_modules([path])]: + result.append({ + "name": mod + }) ...
Adapt bindep ubuntu-jammy This is needed to make openstack-tox-py310 job to install deps properly.
@@ -39,7 +39,6 @@ postgresql postgresql-client [platform:dpkg] postgresql-devel [platform:rpm test] postgresql-server [platform:rpm] -python-dev [platform:dpkg test] python3-all [platform:dpkg] python3-all-dev [platform:dpkg] python3 [platform:rpm test]
Fix history's marker event * now that the event-as-dict is part of the public API, normalize its "event_id" key * fix failed state name
@@ -453,11 +453,11 @@ class History(object): 'name': event.marker_name, 'state': event.state, 'details': getattr(event, 'details', None), - 'recorded_event_id': event.id, - 'recorded_event_timestamp': event.timestamp, + 'event_id': event.id, + 'timestamp': event.timestamp, } self._markers.setdefault(event.marker_name, ...
http: Handle responses when no receiver exists If a request was made with HttpConnection and cancelled before the response was received, a response could be received with no apparent receiver yielding an exception. This commit fixes that.
@@ -330,11 +330,10 @@ class HttpConnection(asyncio.Protocol): # Dispatch message to first receiver self._responses.put(parsed) - event = self._requests.pop() - if event: - event.set() + if self._requests: + self._requests.pop().set() else: - _LOGGER.warning("Got response without having a request") + _LOGGER.warning("Go...
Update common/chromium/blink_fix_prototype_assert.patch The Great Blink mv for source files, part 2.
-diff --git a/third_party/WebKit/Source/platform/bindings/V8ObjectConstructor.cpp b/third_party/WebKit/Source/platform/bindings/V8ObjectConstructor.cpp +cdiff --git a/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc b/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc index aedc8...
Use consistent capitilazation for OAuth(2) Requested by:
@@ -237,7 +237,7 @@ Development callback (redirect) URL Doximity -------- -Doximity Oauth2 implementation documentation +Doximity OAuth2 implementation documentation https://www.doximity.com/developers/documentation#oauth Request API keys here @@ -760,7 +760,7 @@ fetching the access token:: App registration (get your k...
issue / [stream-refactor]: fix close/poller deregister crash on OSX See source comment.
@@ -1628,12 +1628,17 @@ class Protocol(object): self.stream.on_disconnect(broker) def on_disconnect(self, broker): + # Normally both sides an FD, so it is important that tranmit_side is + # deregistered from Poller before closing the receive side, as pollers + # like epoll and kqueue unregister all events on FD close, ...
DX Beta Changes force:open:display (used to be :describe) updated JSON response parsing
@@ -616,8 +616,8 @@ class ScratchOrgConfig(OrgConfig): self.logger.info('Getting scratch org info from Salesforce DX') - # Call force:org:open and parse output to get instance_url and access_token - command = 'sfdx force:org:describe -u {} --json'.format(self.username) + # Call force:org:display and parse output to get...
CompileCtx.struct_types: minor refactoring TN:
@@ -888,10 +888,17 @@ class CompileCtx(object): # generated code. We're also putting env_metadata and env_element in # the beginning and in the right dependency order (the metadata type # before the env element type). + # # TODO: Using a dependency order topological sort wouldn't hurt at # some point. - from langkit.co...
Documentation for postgresql default port * Documentation for postgresql default port A port is necessary for postgresql config. Add postgresql default port 5432 in documentation for LNBITS_DATABASE_URL config * Update docs/guide/installation.md
@@ -220,8 +220,8 @@ You need to edit the `.env` file. ```sh # add the database connection string to .env 'nano .env' LNBITS_DATABASE_URL= -# postgres://<user>:<myPassword>@<host>/<lnbits> - alter line bellow with your user, password and db name -LNBITS_DATABASE_URL="postgres://postgres:postgres@localhost/lnbits" +# pos...
HA: fix injection of certificate in haproxy container Injection of certificate in pacemaker-managed haproxy [1] is never exercised due to a bad parsing of container name vs container id. Closes-Bug: [1]
@@ -175,7 +175,7 @@ outputs: - name: copy certificate, chgrp, restart haproxy shell: | set -e - if echo {{ item }} | grep -q "^haproxy-bundle"; then + if {{ container_cli }} ps -f "id={{ item }}" --format "{{ '{{' }}.Names{{ '}}' }}" | grep -q "^haproxy-bundle"; then tar -c {{ cert_path }} | {{container_cli}} exec -i {...
Remove an import hack from the base Dockerfile. No longer needed as App Engine SDK is removed.
@@ -67,10 +67,6 @@ RUN curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh && \ sed -i 's/flush_interval 5s/flush_interval 60s/' /etc/google-fluentd/google-fluentd.conf COPY clusterfuzz-fluentd.conf /etc/google-fluentd/config.d/clusterfuzz.conf -# Hack to force google to be a namespace package. -# http...
update kpt and action data collector; test=document_fix
@@ -86,9 +86,10 @@ class DataCollector(object): if attr_res: self.collector[ids]["attrs"].append(attr_res['output'][idx]) if kpt_res: - self.collector[ids]["kpts"].append(kpt_res['keypoint'][idx]) + self.collector[ids]["kpts"].append( + [kpt_res['keypoint'][0][idx], kpt_res['keypoint'][1][idx]]) if action_res: - self.c...
Nuke: removing obsolete code fixing family to families as Write is stored there in avalon data on node
@@ -836,29 +836,6 @@ def check_subsetname_exists(nodes, subset_name): if subset_name in read_avalon_data(n).get("subset", "")), False) - -def get_render_path(node): - ''' Generate Render path from presets regarding avalon knob data - ''' - avalon_knob_data = read_avalon_data(node) - data = {'avalon': avalon_knob_data} ...
Completing functionality for enum.auto Full context: Closes python/mypy#3434.
@@ -32,7 +32,8 @@ def unique(enumeration: _S) -> _S: ... if sys.version_info >= (3, 6): _auto_null = ... # type: Any - class auto: + # subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of enum.auto() + class auto(IntFlag): value = ... # type: Any class Flag(Enum):
[Core] update grpc to 1.46.6 Upgrade to a version of gRPC that GHSA-cfmr-vrgj-vqwv in Zlib 1.46.6 has this patch: grpc/grpc#31845
@@ -238,8 +238,8 @@ def ray_deps_setup(): auto_http_archive( name = "com_github_grpc_grpc", # NOTE: If you update this, also update @boringssl's hash. - url = "https://github.com/grpc/grpc/archive/refs/tags/v1.45.2.tar.gz", - sha256 = "e18b16f7976aab9a36c14c38180f042bb0fd196b75c9fd6a20a2b5f934876ad6", + url = "https://...
fixed orbital correction method2 implementation TODO: mpi tests
@@ -98,7 +98,8 @@ def orbital_correction(ifgs_or_ifg_paths, params, mlooked=None, offset=True, if method == NETWORK_METHOD: if mlooked is None: network_correction(ifgs_or_ifg_paths, degree, offset, - preread_ifgs) + m_ifgs=mlooked, + preread_ifgs=preread_ifgs) else: _validate_mlooked(mlooked, ifgs_or_ifg_paths) network...
Devex 3 upload agent resume message * Fix log message if file 100% uploaded If remote file is 100% complete, inform user "Will not upload it" * Change log message to 'not resume'
@@ -152,11 +152,20 @@ void File::init(const bool tryResuming) { isRemoteFileOpen = true; } DXLOG(logINFO) << "A resume target is found .. " << endl; + if (isRemoteFileOpen) { DXLOG(logUSERINFO) << "Signature of file " << localFile << " matches remote file " << findResult[0]["describe"]["name"].get<string>() << " (" << ...
langkit.compiled_types: fix a typo TN:
@@ -737,7 +737,7 @@ class CompiledType(object): @property def memoization_kind(self): """ - Return the enumerator name that correspond to this type for the + Return the enumerator name that corresponds to this type for the discriminated record to materialize memoization keys/values. :rtype: str
validating pipeline output required fields minor change
@@ -9,7 +9,7 @@ DUMB_PIPELINE_INPUT = '| from read_text("/")' \ '| select from_json_object(value) as input_event' \ '| eval timestamp=parse_long(ucast(map_get(input_event, "_time"), "string", null))' -DUMB_PIPELINE_OUTPUT = ';' +DUMB_PIPELINE_OUTPUT = '| select start_time, end_time, entities, body;' def main(args): @@ ...
Update makeplots.py corrected the noon-midnight line only when the current UTC is set to be after 12:00 of the day.
@@ -170,8 +170,8 @@ def noon_midnight_meridian(dtime=None, delta=0.25): lons_latmax = 0 + 15 * diff_in_hours # longitude for noon line lons_latmin = lons_latmax - 180 # longitude for midnight line elif diff_in_hours < 0: - lons_latmax = 0 - 15 * diff_in_hours # longitude for noon line - lons_latmin = lons_latmax + 180 ...
alvalidators.py allow outage_start_time_step = outage_end_time_step need to allow this in order to allow users to model an outage that lasts an entire year. in other words the end time step is inclusive, such that modeling a single outage time step requires having equal values for start and end time steps.
@@ -924,8 +924,8 @@ class ValidateNestedInput: self.input_data_errors.append('LoadProfile outage_end_hour must be larger than outage_end_hour and these inputs cannot be equal') if real_values.get('outage_start_time_step') is not None and real_values.get('outage_end_time_step') is not None: - if real_values.get('outage_...
Ignore matplotlib objects output lines Contains code inspired by (MIT license)
import pytest import numpy import matplotlib +import doctest matplotlib.use('agg', force=True) +# Ignore matplotlib output such as `<matplotlib.image.AxesImage at +# 0x7f956908c280>`. doctest monkeypatching inspired by +# https://github.com/wooyek/pytest-doctest-ellipsis-markers (MIT license) +OutputChecker = doctest.O...
Add Mockaroo API to Test Data Fix apiKey syntax highlighting
@@ -1222,6 +1222,7 @@ API | Description | Auth | HTTPS | CORS | | [Loripsum](http://loripsum.net/) | The "lorem ipsum" generator that doesn't suck | No | No | Unknown | | [Mailsac](https://mailsac.com/docs/api) | Disposable Email | `apiKey` | Yes | Unknown | | [Metaphorsum](http://metaphorpsum.com/) | Generate demo par...
update tests/test_poly_spaces.py for simplex Bernstein basis update _gen_common_data(), test_partition_of_unity()
@@ -92,7 +92,7 @@ def _gen_common_data(orders, gels, report): ['lagrange', 'serendipity', 'bernstein', 'lobatto']])] + [ii for ii in combine([['2_3', '3_4'], - ['lagrange']])]) + ['lagrange', 'bernstein']])]) for geom, poly_space_base in bases: order = orders[geom] if (geom == '3_8') and (poly_space_base == 'serendipit...
Update EPS_Screen.kv Adjusted Value/Unit definition laout.
font_size: 20 Label: id: current_label - pos_hint: {"center_x": 0.5, "center_y": 0.10} + pos_hint: {"center_x": 0.5, "center_y": 0.12} text: 'Current = A' markup: True color: 1,1,1 font_size: 20 Label: id: voltage_label - pos_hint: {"center_x": 0.5, "center_y": 0.03} + pos_hint: {"center_x": 0.5, "center_y": 0.05} text...
change: re-enable pylint's no-member check in .backends re-enable pylint's no-member check in .backends as it should not be warned any more.
# Copyright (C) 2011 - 2018 Satoru SATOH <ssato @ redhat.com> # License: MIT # -# Suppress: -# - false-positive warn at '... pkg_resources ...' line -# - import positions after some globals are defined -# pylint: disable=no-member,wrong-import-position +# Suppress: import positions after some globals are defined +# pyl...
sso: Fix debug statement Fix debug statement to print stringified json
@@ -30,7 +30,7 @@ class RHSSOOAuthService(OIDCLoginService): json={"user": {"login": lusername}, "account": {"primary": True}}, timeout=5, ) - logger.debug("Got result from export compliance service: " + result.json()) + logger.debug("Got result from export compliance service: " + str(result.json())) if result.status_c...
slack: Skip reactions for deleted users. Fixes
@@ -1146,6 +1146,10 @@ def build_reactions( continue for slack_user_id in slack_reaction["users"]: + if slack_user_id not in slack_user_id_to_zulip_user_id: + # Deleted users still have reaction references but no profile, so we skip + continue + reaction_id = NEXT_ID("reaction") reaction = Reaction( id=reaction_id,
docs(python): document adding Python 3.9 support, dropping 3.5 support Closes
@@ -21,8 +21,8 @@ In order to add a feature: - The feature must be documented in both the API and narrative documentation. -- The feature must work fully on the following CPython versions: 2.7, - 3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows. +- The feature must work fully on the following CPython versions: + 3.6, 3.7...
datacube/drivers/s3/index.py - commented problem line writing to dataset.local_uri - Todo - adapt for dataset.uris
@@ -51,8 +51,8 @@ class Index(datacube.index._api.Index): dataset_refs = [] n = 0 for dataset in datasets.values: - if dataset.local_uri: - dataset.local_uri = '%s:%s' % (self.uri_scheme, dataset.local_uri.split(':', 1)[1]) + # if dataset.local_uri: + # dataset.local_uri = '%s:%s' % (self.uri_scheme, dataset.local_uri....
Also support POST requests for case seach We're anticipating USH cases exceeding the maximum URL length and will switch formplayer to use POST requests.
@@ -93,6 +93,7 @@ def restore(request, domain, app_id=None): @location_safe_bypass +@csrf_exempt @mobile_auth @check_domain_migration def search(request, domain): @@ -100,6 +101,7 @@ def search(request, domain): @location_safe_bypass +@csrf_exempt @mobile_auth @check_domain_migration def app_aware_search(request, domai...
tests: correct the url_str_to_user_pk test to correctly assert that a UUID field is returned
@@ -1100,7 +1100,7 @@ class UtilsTests(TestCase): with patch('allauth.account.utils.get_user_model') as mocked_gum: mocked_gum.return_value = UUIDUser self.assertEqual(url_str_to_user_pk(self.user_id), - self.user_id) + uuid.UUID(self.user_id)) def test_pk_to_url_string_identifies_UUID_as_stringlike(self): user = UUIDU...
[Stress Tester XFails] Remove They have been fixed
], "issueUrl" : "https://bugs.swift.org/browse/SR-14328" }, - { - "path" : "*\/ACHNBrowserUI\/ACHNBrowserUI\/ACHNBrowserUI\/packages\/Backend\/Sources\/Backend\/environments\/Items.swift", - "issueDetail" : { - "kind" : "codeComplete", - "offset" : 1277 - }, - "applicableConfigs" : [], - "issueUrl" : "https://bugs.swif...
Run layout.show() when restoring them from state This ensures layouts that are visible following a restart have set themselves properly. Fixes
@@ -162,6 +162,7 @@ class Qtile(CommandObject): if self._state: for screen in self.screens: + screen.group.layout.show(screen.get_rect()) screen.group.layout_all() self._state = None self.update_desktops()
Fix import bug from cosmology/parameters... This manifests itself during the test collection phase of pytest (when invoked directly from the command line). It seems like during test collection 'locals' gets polluted and so it is not a reliable way to load the parameters into the module's namespace.
@@ -42,12 +42,6 @@ doi: 10.1088/0067-0049/180/2/330. Table 1 (WMAP + BAO + SN ML). """ from __future__ import (absolute_import, division, print_function, unicode_literals) -# delete these things from the namespace so we can automatically find -# all of the parameter dictionaries below. -del absolute_import -del divisio...
cas_disk: handle allocation error properly In case of error `blk_mq_init_queue()` does not return NULL, but `ERR_PTR(error_code)` instead. `IS_ERR_OR_NULL()` should be used to check if `blk_mq_init_queue()` actually failed.
@@ -557,8 +557,8 @@ int casdsk_exp_obj_create(struct casdsk_disk *dsk, const char *dev_name, } queue = blk_mq_init_queue(&dsk->tag_set); - if (!queue) { - result = -ENOMEM; + if (IS_ERR_OR_NULL(queue)) { + result = queue ? PTR_ERR(queue) : -ENOMEM; goto error_init_queue; }
Pathfix for Windows Path fix for windows that contains no syntax errors
@@ -150,7 +150,7 @@ class DataService: return new_ability_file def _check_uuid(self, _filename): - uuid_string = os.path.basename(_filename).split(',')[0] + uuid_string = os.path.basename(_filename).split('.')[0] try: val = UUID(uuid_string, version=4) return _filename
Replaced the JSONDecodeError with a ValueError as it was failing on Jenkins.
@@ -995,7 +995,7 @@ def test_preview_letter_template_precompiled_png_file_type( file_type='png' ) - with pytest.raises(json.decoder.JSONDecodeError): + with pytest.raises(ValueError): mock_post.last_request.json() assert mock_get_letter_pdf.called_once_with(notification) assert base64.b64decode(resp['content']) == png_...
[logger] log packet_dropped with reason header_parse_error Some servers add all zero padding to UDP datagrams during the handshake.
@@ -730,6 +730,15 @@ class QuicConnection: buf, host_cid_length=self._configuration.connection_id_length ) except ValueError: + if self._quic_logger is not None: + self._quic_logger.log_event( + category="transport", + event="packet_dropped", + data={ + "trigger": "header_parse_error", + "raw": {"length": buf.capacity ...
Update EPS_Screen.kv Last adjustment to Value/Units definition position? Hopefully...
##---------------------------------------------------------------------- Label: id: angle_label - pos_hint: {"center_x": 0.5, "center_y": 0.19} + pos_hint: {"center_x": 0.5, "center_y": 0.14} text: 'Angle = deg' markup: True color: 1,1,1 font_size: 20 Label: id: current_label - pos_hint: {"center_x": 0.5, "center_y": 0...
Added autorefresh for video_list_id in case no video_list_id was given. This makes it possible for skinners to create a container with contents of the addons f.e. widgets. Used parts of im85288's pull request but made a few corrections.
@@ -415,6 +415,9 @@ class Navigation(object): user_data = self._check_response(self.call_netflix_service({ 'method': 'get_user_data'})) if user_data: + user_list = ['queue', 'topTen', 'netflixOriginals', 'trendingNow', 'newRelease', 'popularTitles'] + if str(type) in user_list and video_list_id == None: + video_list_id...
Update Variables.md Correct spelling mistakes and removed undesired and confusing space in float
@@ -75,10 +75,10 @@ Tutorial Code func main() { name := "Chris Mien" age := 29 - weigth := 200.21 + weight := 200.21 fmt.Println(name) fmt.Println(age) - fmt.Println(weigth) + fmt.Println(weight) } @@ -98,8 +98,8 @@ Solution func main() { name := "John Doe" age := 24 - weigth := 154.61 + weight := 154.61 fmt.Println(na...
Handle cloudflare bans on webhook requests Fixes
@@ -222,6 +222,10 @@ class AsyncWebhookAdapter(WebhookAdapter): # we are being rate limited if r.status == 429: + if not r.headers.get('Via'): + # Banned by Cloudflare more than likely. + raise HTTPException(r, data) + retry_after = response['retry_after'] / 1000.0 log.warning('Webhook ID %s is rate limited. Retrying i...
STY: removed unreachable line Removed an unreachable line in `MetaHeader.__setattr__`.
@@ -1929,13 +1929,10 @@ class MetaHeader(object): """ # If this is a new attribute, update the `global_attrs` list if not hasattr(self, name) and name != 'global_attrs': - if hasattr(self, 'global_attrs'): # Only need to expand the global attributes if the new name # is not present in the list if name not in self.globa...
DOC: updated docstring to incude raises Updated docstring to include raises info and added missing description of instruments.
@@ -44,6 +44,12 @@ class Constellation(object): const_module : string Name of a pysat constellation module instruments : list-like + A list of pysat Instruments to include in the Constellation + + Raises + ------ + ValueError + When `instruments` is not list-like Note ----
[docs] fix bad emphasize on presets Summary: `startLines` also all messed up but seems like worth a systemic approach ie drop them all Test Plan: `yarn dev` Reviewers: sashank, yuhan
@@ -176,7 +176,7 @@ variables. Dagster calls this a config preset: -```python literalinclude showLines startLine=133 emphasize-lines=10-27 caption=presets.py +```python literalinclude showLines startLine=133 emphasize-lines=14-37 caption=presets.py file:/docs_snippets/docs_snippets/intro_tutorial/advanced/pipelines/pre...
2018 Lexus NX300: Add missing EPS & engine f/w 2018 Lexus NX300 ICE DongleID
@@ -1244,6 +1244,7 @@ FW_VERSIONS = { CAR.LEXUS_NX: { (Ecu.engine, 0x700, None): [ b'\x01896637851000\x00\x00\x00\x00', + b'\x01896637852000\x00\x00\x00\x00', ], (Ecu.esp, 0x7b0, None): [ b'F152678140\x00\x00\x00\x00\x00\x00', @@ -1253,6 +1254,7 @@ FW_VERSIONS = { ], (Ecu.eps, 0x7a1, None): [ b'8965B78060\x00\x00\x00\x...
Use HTTP API for `paasta metastatus` by default Switch `paasta metastatus` to use the HTTP API endpoint by default. It can be forced to use the old ssh-based method by specifying a false value for `USE_API_ENDPOINT` environment variable, e.g.: ``` $ USE_API_ENDPOINT=0 paasta metastatus -c somecluster -vv -a ```
@@ -221,7 +221,7 @@ def paasta_metastatus( if 'USE_API_ENDPOINT' in os.environ: use_api_endpoint = strtobool(os.environ['USE_API_ENDPOINT']) else: - use_api_endpoint = False + use_api_endpoint = True all_clusters = list_clusters(soa_dir=soa_dir) clusters_to_inspect = figure_out_clusters_to_inspect(args, all_clusters)
Add missing packages to test dependencies The tests are failing when running on Centos due to lack of qemu-img package and python3-devel. This patch is adding the missing packages to bindep.txt. Closes-Bug:
@@ -20,6 +20,9 @@ postgresql postgresql-client [platform:dpkg] postgresql-devel [platform:rpm] postgresql-server [platform:rpm] +libpython3-dev [platform:dpkg] +python3-devel [platform:rpm] qemu [platform:dpkg devstack build-image-dib] qemu-utils [platform:dpkg devstack build-image-dib] +qemu-img [platform:rpm] libpq-d...
Link update Changed link destination from ``download`` to ``deploy``.
@@ -9,7 +9,7 @@ Assume that the IP address of this server is 10.10.10.2. 1. Log in to the server that will host Mattermost Server and open a terminal window. -2. Download `the latest version of the Mattermost Server <https://mattermost.com/download/>`__. In the following command, replace ``X.X.X`` with the version that...
Update elf_coinminer.txt New Reference links.
@@ -200,6 +200,8 @@ xfer.abcxyz.stream # Reference: https://www.virustotal.com/gui/file/2d9fb5ea6356fba9734673ba4ed1653ff7e887875cc3bfc9da7669c80a53a93b/detection # Reference: https://twitter.com/luc4m/status/1202311106187821056 (Note: not perl ircbot) +# Reference: https://yoroi.company/research/outlaw-is-back-a-new-c...
Apply suggestions from code review fix typo add non-POSIX support in path
@@ -12,7 +12,7 @@ def main(): # Command line options parser parser = argparse.ArgumentParser(description='Simple SDFG command-line compiler.') - # Required argument for SDGF file path + # Required argument for SDFG file path parser.add_argument('SDFGfilepath', help='<PATH TO SDFG FILE>', type=str) # Optional argument f...
Test nqn successfully provided If we can provide a correct NQN then it should be set on the host, and result should be True.
@@ -90,3 +90,20 @@ def test_when_nqn_is_not_then_host_update_should_not_call_set_host(fake_set_host for call in fake_set_host.mock_calls: assert "addnqnlist" not in call.kwargs + + +def test_when_nqn_is_correctly_provided_it_should_be_set_on_the_host(fake_set_host): + purefa._get_host.return_value = True + expected_cal...
Update New York.md Buffalo > Police shove elderly man. Adding details about cops involved and more source links
@@ -9,11 +9,16 @@ Three police officers run over to and tackle man with hands raised giving an int ### Police shove elderly man, causing him to fall on the back of his head | June 4th -Two police officers shove an unarmed, elderly man, who falls backwards and strikes his head on the concrete sidewalk. He appears to be ...
Windows: Retry replace clcache entry after a delay * Apply decoratorRetries to os.replace to overcome random "access denied" errors tied to anti-virus.
@@ -31,6 +31,9 @@ from tempfile import TemporaryFile from atomicwrites import atomic_write from io import open +from nuitka.utils.Utils import decoratorRetries +from nuitka.Tracing import general + VERSION = "5.0.0-dev" HashAlgorithm = hashlib.md5 @@ -452,7 +455,15 @@ class CompilerArtifactsSection(object): artifacts.s...
Remove nagging test This test accomplishes nothing that isn't already checked by another test and it invokes platform-specific behavior (newline chars in terminal commands) that we don't care about here.
@@ -194,7 +194,3 @@ Syntax errors: >>> filter("(") guild: syntax error in filter - unexpected end of expresion <exit 1> - - >>> filter("foo = \n 123") - guild: syntax error in filter - unexpected end of expresion - <exit 1>
Delete python bytecode including pyo TrivialFix
@@ -103,7 +103,7 @@ passenv = KMIP_PLUGIN_ENABLED deps = -r{toxinidir}/test-requirements.txt setenv = OS_TEST_PATH={toxinidir}/barbican/cmd/functionaltests commands = - /usr/bin/find . -type f -name "*.pyc" -delete + /usr/bin/find . -type f -name "*.py[c|o]" -delete /bin/bash {toxinidir}/functionaltests/pretty_tox.sh '...
test: Don't reseed python random for every test Nothing should use it
import pytest -import random -# import time import numpy as np from psyneulink.core.llvm import ptx_enabled @@ -48,7 +46,6 @@ def pytest_runtest_setup(item): def pytest_runtest_call(item): # seed = int(item.config.getoption('--pnl-seed')) seed = 0 - random.seed(seed) np.random.seed(seed) from psyneulink.core.globals.ut...
Spin wheel Error removed version
from plugin import plugin import random - ''' -This code pics one of the random inputs given by the user like spin wheel +'''This code picks one of the random inputs given by the user like spin wheel''' - ''' @alias("wheel spin") @plugin("spin wheel") def spin(jarvis, s):
Updated notebook code and docs as HTML render Updated code and documentation as HTML rendered output from Jupyter Notebooks for faster loading.
@@ -22,8 +22,8 @@ DataAtWork: URL: https://aws.amazon.com/blogs/big-data/build-a-real-time-stream-processing-pipeline-with-apache-flink-on-aws/ AuthorName: Steffen Hausmann - Title: Exploring data with Python and Amazon S3 Select - URL: https://github.com/manavsehgal/CloudStory/blob/master/open-data-analytics/exploring...
fix(zh_stock_a_sina.py): exchange open and close exchange open and close
@@ -186,7 +186,7 @@ def stock_zh_a_daily(symbol="sh600000", factor=""): temp_df = temp_df.astype(float) temp_df["amount"] = temp_df["amount"] * 10000 temp_df["turnover"] = temp_df["volume"] / temp_df["amount"] - temp_df.columns = ['open', 'high', 'low', 'close', 'volume', 'outstanding_share', 'turnover'] + temp_df.colu...
Fix, must not cache parent package in modules * It could happen that this parent was demoted and as a consequence this was still used, but broken.
@@ -52,7 +52,7 @@ from .NodeBases import ( class PythonModuleBase(NodeBase): # Base classes can be abstract, pylint: disable=abstract-method - __slots__ = "module_name", "package" + __slots__ = ("module_name",) def __init__(self, module_name, source_ref): assert type(module_name) is ModuleName, module_name @@ -60,7 +60...
Pass block to new BlockPublisher Unwrap the blockWrapper passed to the BlockPublisher, before passing it to the rust layer.
@@ -28,6 +28,7 @@ from sawtooth_validator.ffi import OwnedPointer from sawtooth_validator.consensus.handlers import BlockEmpty from sawtooth_validator.consensus.handlers import BlockInProgress from sawtooth_validator.consensus.handlers import BlockNotInitialized +from sawtooth_validator.journal.block_wrapper import Blo...
Move TenantResponse from premium to manager rest's responses As it is needed in community version as well
@@ -70,3 +70,18 @@ class UserResponse(object): self.role = kwargs.get('role') self.active = kwargs.get('active') self.last_login_at = kwargs.get('last_login_at') + + +@swagger.model +class TenantResponse(object): + + resource_fields = { + 'name': fields.String, + 'groups': fields.Raw, + 'users': fields.Raw, + } + + def...
Adapt to SQLAlchemy 1.4 This patch makes the necessary change to adapt to the SQLAlchemy 1.4 release in a way that is still compatible with the currently pinned 1.3 versions. This is related to the overall effort to bump SQLAlchemy to 1.4 Closes-Bug:
@@ -706,7 +706,16 @@ class CellV2Commands(object): # worry about parsing and splitting a URL which could have special # characters in the password, which makes parsing a nightmare. url = sqla_url.make_url(connection) + + # TODO(gibi): remove hasattr() conditional in favor of "url.set()" + # when SQLAlchemy 1.4 is the m...
BUG: fixed variable name Fixed the variable name in the error message.
@@ -325,7 +325,7 @@ class Instrument(object): # Check if required keys present in input. if req_key not in cust: estr = ''.join(('Input dict to custom is missing the ', - 'required key: ', rkey)) + 'required key: ', req_key)) raise ValueError(estr) # Check if optional arguments present. If not, provide
adding nODE tutorial to readme The notebook Introducing_JaxModel_and_PINNModel.ipynb is not there in readme, so I've added that too
@@ -54,7 +54,9 @@ tutorials discuss about using DeepChem for specific applications. * [15 Training a Generative Adversarial Network on MNIST](Training_a_Generative_Adversarial_Network_on_MNIST.ipynb) * [16 Distributed Multi-GPU Training of DeepChem Models with LitMatter](https://github.com/ncfrey/litmatter/blob/main/Li...
Change type of num_children array in docstring Docstring did not reflect the changes in
@@ -1185,7 +1185,7 @@ class Tree: @property def num_children_array(self): """ - A numpy array (dtype=np.uint64) encoding the number of children of + A numpy array (dtype=np.int32) encoding the number of children of each node in this tree, such that ``tree.num_children_array[u] == tree.num_children(u)`` for all ``0 <= u...
Give PauliStringPhasor nonzero default atol (Fixes last broken Windows tests) Fixes The issue was that a default value of 0 for atol in PauliStringPhasor meant that some machines didn't failed to recognize gate sequence simplifications. Feel free to verify in your Windows build PR.
@@ -40,7 +40,7 @@ class ConvertToPauliStringPhasors(PointOptimizer): def __init__(self, ignore_failures: bool = False, keep_clifford: bool = False, - atol: float = 0) -> None: + atol: float = 1e-14) -> None: """ Args: ignore_failures: If set, gates that fail to convert are forwarded
Typo fixing and formatting change Typo fixing and formatting change in autograd tutorial
@@ -127,8 +127,8 @@ y.backward(gradients) print(x.grad) ############################################################### -# You can also stops autograd from tracking history on Tensors -# with requires_grad=True by wrapping the code block in +# You can also stop autograd from tracking history on Tensors +# with ``.requi...
Touchring fixes Bug fix: Ghost touch removed. Bug fix: if mtdev reconnecting _touchmove might occur before _tocuhdow (person is touching touchscreen while it gots reconnected)
@@ -41,7 +41,6 @@ pointer_alpha = 0.7 def _touch_down(win, touch): ud = touch.ud - touch.scale_for_screen(win.width, win.height) with win.canvas.after: ud['tr.color'] = Color(1, 1, 1, pointer_alpha) iw, ih = pointer_image.size @@ -59,6 +58,8 @@ def _touch_down(win, touch): def _touch_move(win, touch): ud = touch.ud + i...
Do not mark SMTP relays as sinkholes We received SMTP traffic from these IP addresses. They are not likely to be sinkholes.
195.22.26.208 195.22.26.209 195.22.26.210 -195.22.26.211 -195.22.26.212 -195.22.26.213 -195.22.26.214 +# 195.22.26.211 # relay.net.vodafone.pt +# 195.22.26.212 # relay2.net.vodafone.pt +# 195.22.26.213 # relay3.net.vodafone.pt +# 195.22.26.214 # relay4.net.vodafone.pt 195.22.26.215 195.22.26.216 # 195.22.26.217 # anubi...
tools/downloader: read the config files in binary mode This ensures that decoding is done with YAML rules (i.e. by default) instead of Python rules (i.e. the locale encoding by default).
@@ -320,7 +320,7 @@ def load_topologies(args): for config_path in sorted(model_root.glob('**/model.yml')): subdirectory = config_path.parent.relative_to(model_root) - with config_path.open() as config_file, \ + with config_path.open('rb') as config_file, \ deserialization_context('In config "{}"'.format(config_path)): ...
Add tuple memoization Fixes
@@ -62,6 +62,19 @@ def id_for_memo_list(denormalized_list, output_ref=False): return serialize(normalized_list) +@id_for_memo.register(tuple) +def id_for_memo_tuple(denormalized_tuple, output_ref=False): + if type(denormalized_tuple) != tuple: + raise ValueError("id_for_memo_tuple cannot work on subclasses of tuple") +...
Moved GPIO Set Code GPIO pins have to be set in a while loop, in contrast with the pwm pins
@@ -134,6 +134,24 @@ int main(void) { do { status = HAL_UART_Receive(&huart2, (unsigned char *) rx_pwm_buf, 4, 1000); + + switch(motor1_dir) { + case MOTOR_FORWARD: + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET); + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_1, GPIO_PIN_RESET); + break; + case MOTOR_BACKWARD: + HAL_GPIO_Wr...
Make add_inferred_export_properties not use pickle serializer Safe because all its arguments are strings (or list of strings)
@@ -151,7 +151,7 @@ def get_saved_export_task_status(export_instance_id): return get_task_status(download_data.task) -@serial_task('{domain}-{case_type}', queue='background_queue', serializer='pickle') +@serial_task('{domain}-{case_type}', queue='background_queue') def add_inferred_export_properties(sender, domain, cas...