message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Fix and clarify upgrade process
Fix package name to remove and clarify upgrade process | @@ -261,7 +261,8 @@ This project was forked from bread-and-pepper/django-userena v2.0.1.
To migrate from this project you just need to install the package
and update a key which was changed in django-guardian:
-1. Remove django-userena-ce from your installation
+1. Remove `django-userena` from your installation `pip un... |
Update dynamic_domain.txt
Due to ```Subdomains```section of VT-link, this seems as dyn. | @@ -1945,3 +1945,9 @@ x443.pw
# Reference: https://www.virustotal.com/gui/domain/dnsabr.com/relations
dnsabr.com
+
+# Reference: https://twitter.com/P3pperP0tts/status/1133897358402564096
+# Reference: https://app.any.run/tasks/6306d7be-e338-4838-a863-9cd58c880c07/
+# Reference: https://www.virustotal.com/gui/domain/ya... |
[CI] Install xgboost in Hexagon image
Needed for
cc | @@ -83,3 +83,7 @@ RUN bash /install/ubuntu_install_tflite.sh
# Install ONNX
COPY install/ubuntu_install_onnx.sh /install/ubuntu_install_onnx.sh
RUN bash /install/ubuntu_install_onnx.sh
+
+# xgboost (for tuning)
+COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh
+RUN bash /install/ubuntu_install_redi... |
MAINT: Improve error message dtype appearance
This changes the string conversion of an expected
dtype in an error message from e.g.
"<class 'numpy.float64'>" to "float64". | raise ValueError('Supplied output array is not contiguous, writable or aligned.')
if out_array.dtype != dtype:
raise TypeError('Supplied output array has the wrong type. '
- 'Expected {0}, got {1}'.format(dtype, out_array.dtype))
+ 'Expected {0}, got {1}'.format(np.dtype(dtype), out_array.dtype))
if size is not None:
t... |
Fixes Use LDAP groups to find permissions
When AUTH_LDAP_FIND_GROUP_PERMS is set to true the filter to find the
users permissions is extended to search for all permissions assigned to
groups in which the LDAP user is. | @@ -11,7 +11,7 @@ from users.models import ObjectPermission
from utilities.permissions import permission_is_exempt, resolve_permission, resolve_permission_ct
-class ObjectPermissionBackend(ModelBackend):
+class ObjectPermissionMixin():
def get_all_permissions(self, user_obj, obj=None):
if not user_obj.is_active or user... |
Redundant word in error message
original error message: Result type can only be one of or an array of one of the following types **types**...
proposed error message: Result type can only be one of or an array of one of the following types... | @@ -812,7 +812,7 @@ def spark_udf(spark, model_uri, result_type="double"):
if not any([isinstance(elem_type, x) for x in supported_types]):
raise MlflowException(
message="Invalid result_type '{}'. Result type can only be one of or an array of one "
- "of the following types types: {}".format(str(elem_type), str(suppor... |
Fix test_raising_repr test
Closes
Python <3.11 versions depend on `exceptiongroup>=1.0.0rc8`, and they released version `1.0.1`
6 days ago (2022/11/03) that as a side-effect changed the output of exceptions. | @@ -1664,15 +1664,7 @@ def test_raise_assertion_error_raising_repr(pytester: Pytester) -> None:
"""
)
result = pytester.runpytest()
- if sys.version_info >= (3, 11):
- # python 3.11 has native support for un-str-able exceptions
- result.stdout.fnmatch_lines(
- ["E AssertionError: <exception str() failed>"]
- )
- else:
... |
Update model.py
Fix lint indentation | @@ -1798,12 +1798,10 @@ class Model:
metadata = utils.get_local_charm_metadata(charm_dir)
charm_series = charm_series or await get_charm_series(metadata,
self)
- charm_origin.base = utils.get_local_charm_base(charm_series, channel, metadata, charm_dir, client.Base)
- base = utils.get_local_charm_base(charm_series,
- ch... |
Fixed Typo in Code.gov description
Corrected the description from "Open Sourse" to "Open Source. | @@ -497,7 +497,7 @@ API | Description | Auth | HTTPS | CORS |
| [City, Lyon Opendata](https://data.beta.grandlyon.com/fr/accueil) | Lyon(FR) City Open Data | `apiKey` | Yes | Unknown |
| [City, Nantes Opendata](https://data.nantesmetropole.fr/pages/home/) | Nantes(FR) City Open Data | `apiKey` | Yes | Unknown |
| [City... |
Add `bytes` as legal type for `RawConfigParser.read`.
Add `bytes` as legal type for `RawConfigParser.read` in 3.7.
Closes | @@ -18,7 +18,9 @@ _converter = Callable[[str], Any]
_converters = Dict[str, _converter]
_T = TypeVar('_T')
-if sys.version_info >= (3, 6):
+if sys.version_info >= (3, 7):
+ _Path = Union[str, bytes, PathLike[str]]
+elif sys.version_info >= (3, 6):
_Path = Union[str, PathLike[str]]
else:
_Path = str
|
Don't always subscript venv names when searching
Causes a bug on windows (verbally reported to me at work)
/cc if you can provide a log when you get a sec | @@ -263,17 +263,17 @@ class Project(object):
# Check for different capitalization of the same project.
from pipenv.patched.pew.pew import lsenvs
for env in lsenvs():
- env_name = env[:-9]
- if not (env[-9] != '-' and
- env[-8:].isalpha() and
- env_name.lower() != name.lower()):
+ try:
+ env_name, hash_ = env.rsplit('-'... |
Hide the source code upload form by default
Fixes | @@ -82,6 +82,11 @@ ol.submit-addon-progress.unlisted {
margin-bottom: 1em;
}
+.addon-submission-process #option_yes_source,
+.addon-submission-process #option_no_source {
+ display: none;
+}
+
div.done-next-steps {
p {
margin-bottom: .3em;
|
Update javascript-env.yaml
Fix FP | @@ -2,7 +2,7 @@ id: javascript-env
info:
name: JavaScript Environment Config
- author: pdp
+ author: pdp,geeknik
severity: low
description: Detects common JavaScript environment configuration files.
tags: javascript,config,exposure
@@ -42,3 +42,12 @@ requests:
- "PASSWORD"
- "VERSION"
condition: or
+
+ - type: word
+ p... |
Update README.md
replace non working link | @@ -69,7 +69,7 @@ Or to configure an ESP32 to run as a Wifi access point:
meshtastic --set wifi_ap_mode true --set wifi_ssid mywifissid --set wifi_password mywifipsw
```
-For a full list of preferences which can be set (and their documentation) see [here](https://github.com/meshtastic/Meshtastic-protobufs/blob/master/d... |
Cell metadata from ipynb on markdown cells as well
Compare cell content up to blank lines, and restore markdown cell metadata from ipynb | """Combine source and outputs from two notebooks
"""
+import re
from .cell_metadata import _IGNORE_METADATA
+_BLANK_LINE = re.compile(r'^\s*$')
+
+
+def same_content(ref, test):
+ """Is the content of two cells the same, except for blank lines?"""
+ ref = [line for line in ref.splitlines() if not _BLANK_LINE.match(line... |
Adding Fedora instructions
Updated to include Fedora Linux instructions | @@ -68,6 +68,32 @@ Ubuntu
3. When docker is done fetching the image, open ``http://localhost:8065/``
in your browser.
+Fedora
+^^^^^^
+
+1. Install and run the image in Docker using the following commands or use the full documentation here for extensive
+ installation instructions https://docs.docker.com/engine/install... |
Fixed "create_attach_volumes" salt-cloud action for GCP
Fixes
- "create_attach_volumes" salt-cloud works with mandatory and
default arguments as mentioned in docstring of the function. | @@ -2400,9 +2400,10 @@ def create_attach_volumes(name, kwargs, call=None):
'-a or --action.'
)
- volumes = kwargs['volumes']
+ volumes = literal_eval(kwargs['volumes'])
node = kwargs['node']
- node_data = _expand_node(node)
+ conn = get_conn()
+ node_data = _expand_node(conn.ex_get_node(node))
letter = ord('a') - 1
for... |
fix random plot styles for plot styles not in dictionary
random was not imported, so plot generation was failing for new models.
additionally, I made the randomly chosen plot style deterministic based on the model family name, so that it will be consistent across plots. | @@ -13,6 +13,7 @@ from bigbench.api import results
import numpy as np
import dataclasses
import os
+import random
sns.set(font_scale=1.2)
sns.set_style("whitegrid")
@@ -99,9 +100,12 @@ def plot_task(
model_plot_settings = plot_settings.get(model_family, DEFAULT_PLOT_SETTINGS)
- palette = model_plot_settings.palette or ... |
Add a marker to the generated C code if the NumPy declarations came from Cython/Includes/numpy/.
See | @@ -23,6 +23,15 @@ from cpython.object cimport PyObject, PyTypeObject
from cpython.type cimport type
cimport libc.stdio as stdio
+
+cdef extern from *:
+ # Leave a marker that the NumPy declarations came from Cython and not from NumPy itself.
+ # See https://github.com/cython/cython/issues/3573
+ """
+ /* Using NumPy A... |
removing comment 'generated on' comment
Since the file is not auto-generated and we're changing it in PRs, I found this comment misleading. | // Karma configuration
-// Generated on Thu Feb 11 2016 12:59:11 GMT-0800 (PST)
var RewirePlugin = require("rewire-webpack");
var _ = require("lodash");
var webpack_config = _.clone(require("../frontend_build/src/webpack.config.base"));
|
BUG: distutils, place fortranobject files in subfolder
Placing them all under the same name in the top level folder breaks when
using the parallel extension compilation option of python 3.5. | @@ -569,14 +569,14 @@ def f2py_sources(self, sources, extension):
if not os.path.isfile(target_file):
raise DistutilsError("f2py target file %r not generated" % (target_file,))
- target_c = os.path.join(self.build_src, 'fortranobject.c')
- target_h = os.path.join(self.build_src, 'fortranobject.h')
+ build_dir = os.path... |
Switch to raw urls on Readme
In hopes they will show up on package control | @@ -20,11 +20,11 @@ Tested against language servers for javascript/typescript, python, c/c++ (clangd
Rich hover support from js/ts language server
-
+
da.loc[:, ind] # same as da.sel(y=ind)
-These methods may and also be applied to ``Dataset`` objects
+These methods may also be applied to ``Dataset`` objects
.. ipython:... |
[Fix]: Improve documentation
Fix an error in training_step_end() documentation | @@ -273,8 +273,8 @@ In this case, implement the `training_step_end` method
return {'loss': loss, 'pred': pred}
def training_step_end(self, batch_parts):
- gpu_0_prediction = batch_parts.pred[0]['pred']
- gpu_1_prediction = batch_parts.pred[1]['pred']
+ gpu_0_prediction = batch_parts[0]['pred']
+ gpu_1_prediction = batc... |
Update changelog entry for
Per | @@ -21,7 +21,7 @@ Features
Bugfixes
--------
-- Prevent device names from appearing in device list updates when `allow_device_name_lookup_over_federation` is `false`. ([\#10015](https://github.com/matrix-org/synapse/issues/10015))
+- Prevent device names from appearing in device list updates in some situations when `al... |
Add logic to ensure the working dir is not a subdir of imagery dir.
This is to make sure that when we do the traversal to find the NTF
imagery we don't include output files from the computation pipeline, if
the script is restarted after some of these files are already present. | @@ -18,16 +18,28 @@ import fit_dtm
import orthorectify
-def create_working_dir(working_dir):
+def create_working_dir(working_dir, imagery_dir):
"""
Create working directory for running algorithms
All files generated by the system are written to this directory.
+
+ :param working_dir: Directory to create for work. Canno... |
Bind: enforce logic variable operands for left operands
For GitHub issue
TN: | @@ -36,8 +36,8 @@ def untyped_literal_expr(expr_str, operands=[]):
@dsl_document
class Bind(AbstractExpression):
"""
- Bind the two logic variables `from_expr` and `to_expr`, through a property
- call.
+ Bind the two logic variables `from_expr` and `to_expr`, or one logic
+ variable `from_expr` and an entity `to_expr`,... |
[ENH] Proximity forest faster test param settings
This PR changes test parameters of `ProximityForest` and `ProximityTree` to faster settings (reduced recursion depth), for lower runtime.
It leaves the special "unit test" parameters unchanged. | @@ -1251,7 +1251,7 @@ class ProximityTree(BaseClassifier):
`MyClass(**params)` or `MyClass(**params[i])` creates a valid test instance.
`create_test_instance` uses the first (or only) dictionary in `params`.
"""
- return {"max_depth": 2, "n_stump_evaluations": 1}
+ return {"max_depth": 1, "n_stump_evaluations": 1}
clas... |
Fix `search` when the result is empty
Return an empty result instead of raising | @@ -828,6 +828,9 @@ class Client(object):
)
result = j["payload"]["search_snippets"][query]
+ if not result:
+ return {}
+
if fetch_messages:
search_method = self.searchForMessages
else:
|
BUG: Complex input gives complex result(fix
Complex input for either the matrix A or the vector b should give
a complex vector as a result. This fixes | @@ -108,6 +108,11 @@ def spsolve(A, b, permc_spec=None, use_umfpack=True):
A.sort_indices()
A = A.asfptype() # upcast to a floating point format
+ result_dtype = np.promote_types(A.dtype, b.dtype)
+ if A.dtype != result_dtype:
+ A = A.astype(result_dtype)
+ if b.dtype != result_dtype:
+ b = b.astype(result_dtype)
# val... |
fix introduced VAR-related error
Error was introduced by changing a signature in var_model.py. (Errors started to show up in test_var.py) Now the signature has been changed again to support not only the parameters needed by the VECM framework, but to also work again with the tests for VAR. | @@ -194,7 +194,7 @@ def mse(ma_coefs, sigma_u, steps):
return forc_covs
-def forecast(y, coefs, trend_coefs, steps, exog):
+def forecast(y, coefs, trend_coefs, steps, exog=None):
"""
Produce linear minimum MSE forecast
|
templates/pkg_analysis_body_ada.mako: minor reformatting
TN: | @@ -470,9 +470,7 @@ package body ${ada_lib_name}.Analysis is
-- Remove --
------------
- procedure Remove (Context : Analysis_Context;
- File_Name : String)
- is
+ procedure Remove (Context : Analysis_Context; File_Name : String) is
use Units_Maps;
Cur : Cursor := Context.Units.Find
|
Add test for do_deactivate_realm exit if deactivated.
Rename existing test_do_deactivate_realm to indicate test purpose
is to confirm user realm cache clears when a realm is deactivated. | @@ -128,7 +128,7 @@ class RealmTest(ZulipTestCase):
# Since the setting fails silently, no message is returned
self.assert_in_response("", result)
- def test_do_deactivate_realm(self):
+ def test_do_deactivate_realm_clears_user_realm_cache(self):
# type: () -> None
"""The main complicated thing about deactivating realm... |
A couple of LSF fixes
- bsub needs to have input piped from file
- `-n` seems to be more supported than --nnodes | import functools
import re
+import subprocess
import time
import reframe.core.runtime as rt
@@ -31,14 +32,11 @@ class LsfJobScheduler(PbsJobScheduler):
)
def emit_preamble(self, job):
- num_tasks_per_node = job.num_tasks_per_node or 1
- num_nodes = job.num_tasks // num_tasks_per_node
-
preamble = [
self._format_option(... |
todo_tools_1,3:
[x] todo_tools_1: provide example for `tools.get_full_data_path`
[x] todo_tools_3: provide examples for `tools.get_pythainlp_path` | @@ -50,6 +50,16 @@ def get_pythainlp_data_path() -> str:
def get_pythainlp_path() -> str:
"""
- Return full path of PyThaiNLP code
+ This function returns full path of PyThaiNLP code
+
+ :return: full path of :mod:`pythainlp` code
+ :rtype: str
+
+ :Example:
+
+ >>> from pythainlp.tools import get_pythainlp_path
+ >>>
... |
Don't check /dev/kvm access, only check existence
This avoid race condition between swarming_bot and udev which is responsible
for setting the correct ACL of /dev/kvm. | @@ -215,9 +215,13 @@ def get_ssd():
return ()
+@tools.cached
def get_kvm():
- """Check whether KVM is supported."""
- return os.path.exists('/dev/kvm') and os.access("/dev/kvm", os.R_OK|os.W_OK)
+ """Check whether KVM is available."""
+ # We only check the file existence, not whether we can access it. This avoids
+ # t... |
use conda/environment.yml when building the package
test the package in a new environment after the upload | @@ -23,6 +23,7 @@ jobs:
python-version: ${{ matrix.python-version }}
activate-environment: matchms
auto-activate-base: false
+ environment-file: conda/environment.yml
channels: conda-forge,bioconda,nlesc
- name: Install required packages
shell: bash -l {0}
@@ -48,3 +49,22 @@ jobs:
run: |
export BUILD_FOLDER=./output
an... |
add more cache-control headers to gcs
Make sure cache-control is private, so there are no intervening downstream caches. | @@ -111,7 +111,7 @@ class GoogleCloudStorage(Storage):
# set a max-age of 5 if we're uploading to content/databases
if self.is_database_file(name):
- blob.cache_control = 'public, max-age={}'.format(CONTENT_DATABASES_MAX_AGE)
+ blob.cache_control = 'private, max-age={}, no-transform'.format(CONTENT_DATABASES_MAX_AGE)
b... |
Fix writing LP to file
Before, the conversion to a byte string was performed twice. This caused a Python error. | @@ -3919,7 +3919,7 @@ cdef class Model:
:param filename: file name (Default value = "LP.lp")
"""
absfile = str_conversion(abspath(filename))
- PY_SCIP_CALL( SCIPwriteLP(self._scip, str_conversion(absfile)) )
+ PY_SCIP_CALL( SCIPwriteLP(self._scip, absfile) )
def createSol(self, Heur heur = None):
"""Create a new primal... |
Use minio server again
* Revert "Run minio in nas mode (#2026)"
This reverts commit
* Use latest minio release | @@ -29,7 +29,7 @@ services:
command: >-
-c "
mkdir -p /data/grand-challenge-private/
- && minio --compat gateway nas /data
+ && minio --compat server /data
"
restart: always
@@ -46,7 +46,7 @@ services:
command: >-
-c "
mkdir -p /data/grand-challenge-protected/
- && minio --compat gateway nas --address :9081 /data
+ && ... |
portico: Hide realm details when registering new realm.
If there was a realm on the base URL, its logo and name were being
displayed when registering a new realm (i.e. the page where realm details
are entered, after confirming email). This commit prevents the realm
details from being displayed.
Fixes | @@ -27,7 +27,7 @@ Form is validated both client-side using jquery-validate (see signup.js) and ser
{{ csrf_input }}
<section class="user-registration">
- {% if realm_name %}
+ {% if realm_name and not creating_new_team %}
<img class="avatar inline-block" src="{{ realm_icon }}" alt="" />
<div class="info-box inline-bloc... |
Fix tutorial completion
Set tutorial_state to an empty list if it's not found. | @@ -229,7 +229,7 @@ class Worker:
raise ex.BannedAccountException
player_data = get_player['player_data']
- tutorial_state = player_data['tutorial_state']
+ tutorial_state = player_data.get('tutorial_state', [])
self.item_capacity = player_data['max_item_storage']
if 'created' not in self.account:
self.account['created... |
[plot][CurveStatsWidget] Manage the case we try to set a dict of ROI.
Was missing, needing to have coherent getRois / setRois | @@ -572,6 +572,9 @@ class ROITable(TableWidget):
# backward compatibility since 0.10.0
if isinstance(rois, dict):
for roiName, roi in rois.items():
+ if isinstance(roi, ROI):
+ _roi = roi
+ else:
roi['name'] = roiName
_roi = ROI._fromDict(roi)
self.addRoi(_roi)
|
Let's store job storage in a file again!
Avoids a bug where we have race conditions with an in-memory DB. | @@ -15,6 +15,7 @@ import requests
from django.core.management import call_command
from django.http import Http404
from django.utils.translation import ugettext as _
+from django.conf import settings
from kolibri.content.models import ChannelMetadataCache
from kolibri.content.utils.channels import get_mounted_drives_wit... |
integrations: Use phrase_match instead of fuzzysearch.
Fixes
fuzzysearch matched query if the query letters appeared in sequence.
Here we use the extracted phrase_match to match query with the prefixes
of words. | -import fuzzysearch from 'fuzzysearch';
import blueslip from './../blueslip';
import { path_parts } from './landing-page';
@@ -117,8 +116,9 @@ var update_integrations = _.debounce(function () {
}
if (!$integration.hasClass('integration-create-your-own')) {
+ var display_name = INTEGRATIONS[$integration.data('name')];
v... |
SDK - Client - Fixed client on Windows
Also fixed the client for systems that do not have $HOME env var. | @@ -28,7 +28,7 @@ import json
IAM_SCOPE = 'https://www.googleapis.com/auth/iam'
OAUTH_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'
-LOCAL_KFP_CREDENTIAL = os.path.join(os.environ['HOME'], '.config/kfp/credentials.json')
+LOCAL_KFP_CREDENTIAL = os.path.expanduser('~/.config/kfp/credentials.json')
def get_gcp... |
addresses: Add IPAddr.is_broadcast
This is sort of completes the picture that .is_multicast starts. We
should probably add a similar property for EthAddr and IPv6 addresses. | @@ -364,6 +364,10 @@ class IPAddr (object):
netmask = cidr_to_netmask(prefix).unsigned_h
return (IPAddr(self.unsigned_h & netmask, networkOrder=False),prefix)
+ @property
+ def is_broadcast (self):
+ return self == IP_BROADCAST
+
@property
def is_multicast (self):
return ((self.toSigned(networkOrder = False) >> 24) & 0... |
[Test] Fix flaky OSX shuffle
Seems like the last RPC is failing after shuffle succeeds. Adding retry to fix the issue. | @@ -311,7 +311,17 @@ def run(
time.sleep(0.5)
print()
- print(ray._private.internal_api.memory_summary(stats_only=True))
+
+ summary = None
+ for i in range(5):
+ try:
+ summary = ray._private.internal_api.memory_summary(stats_only=True)
+ except Exception:
+ time.sleep(1)
+ pass
+ if summary:
+ break
+ print(summary)
... |
fix the description of create_shared
The type of parameter options should be a str list. | @@ -22,8 +22,8 @@ def create_shared(output,
objects : list
List of object files.
- options : str
- The additional options.
+ options : list
+ The list of additional options string.
cc : str, optional
The compile string.
|
Loosen type annotations around hook decorators
Summary: Mypy 0.812 breaks our hook decorator type annotations. This is because mypy cannot infer that pipeline defs are only used with hooks when the hook being invoked is already a hook definition.
Test Plan: mypy
Reviewers: alangenfeld, max | @@ -36,7 +36,7 @@ def __init__(
required_resource_keys, "required_resource_keys"
)
- def __call__(self, fn: Callable[["HookContext", List["DagsterEvent"]], Any]) -> HookDefinition:
+ def __call__(self, fn) -> HookDefinition:
check.callable_param(fn, "fn")
@@ -48,7 +48,7 @@ def __call__(self, fn: Callable[["HookContext"... |
hv: Use hv_write_hcr() for initial configuration
This might make things work if GXF is already enabled, maybe. | @@ -31,7 +31,7 @@ void hv_init(void)
hv_pt_init();
// Configure hypervisor defaults
- msr(HCR_EL2, HCR_API | // Allow PAuth instructions
+ hv_write_hcr(HCR_API | // Allow PAuth instructions
HCR_APK | // Allow PAuth key registers
HCR_TEA | // Trap external aborts
HCR_E2H | // VHE mode (forced)
|
Update code owners of gcs and workflow
Update the code owners to include people working on this module. | # ==== Ray core ====
# API compatibility
-/src/ray/protobuf/common.proto @wuisawesome @ericl @ameerhajali @robertnishihara @pcmoritz @raulchen
-/src/ray/protobuf/gcs.proto @wuisawesome @ericl @ameerhajali @robertnishihara @pcmoritz @raulchen
-/src/ray/protobuf/gcs_service.proto @wuisawesome @ericl @ameerhajali @robertn... |
Fix pre-commit hook for python 3.x.
sh() return value is a string due to Popen(universal_newlines=True).
Traceback (most recent call last):
File ".git/hooks/pre-commit", line 118, in <module>
main()
File ".git/hooks/pre-commit", line 78, in main
py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and
TypeErro... | @@ -75,7 +75,7 @@ def sh(cmd):
def main():
out = sh("git diff --cached --name-only")
- py_files = [x for x in out.split(b'\n') if x.endswith(b'.py') and
+ py_files = [x for x in out.split('\n') if x.endswith('.py') and
os.path.exists(x)]
lineno = 0
|
Make new epoch after block sync. And Allow add complain when my epoch
has same height with complain message. If the epoch height is lower than
the message, execute block sync. | @@ -603,9 +603,13 @@ class BlockManager:
util.logger.debug(f"block_manager:block_height_sync is complete.")
next_leader = self.__current_last_block().header.next_leader
leader_peer = self.__channel_service.peer_manager.get_peer(next_leader.hex_hx()) if next_leader else None
+
+ if self.__channel_service.block_manager.e... |
Disable cuda_distributions_test and converter_nomigraph_test on Windows.
Summary:
Pull Request resolved:
See and
Test Plan: Imported from OSS | @@ -6,17 +6,22 @@ test_api.exe --gtest_filter="-IntegrationTest.MNIST*"
if errorlevel 1 exit /b 1
-cd %TMP_DIR_WIN%\build\torch\test
for /r "." %%a in (*.exe) do (
- echo Running "%%~fa"
- if "%%~na" == "c10_Metaprogramming_test" (
- echo Skipping "%%~fa" because it is broken
- ) else (
- if "%%~na" == "module_test" (
... |
Fix Buildkite integration tests
Test Plan: integration
Reviewers: alangenfeld, dgibson, johann | @@ -39,7 +39,7 @@ def integration_steps():
).get_tox_build_steps()
integration_suites_root = os.path.join(
- SCRIPT_PATH, "..", "..", "..", "integration_tests", "test_suites"
+ SCRIPT_PATH, "..", "..", "..", "..", "integration_tests", "test_suites"
)
integration_suites = [
os.path.join("integration_tests", "test_suites... |
[Java] Shade jackson to avoid conflict.
Jackson is a widely-used utility. User from Ant reports the jackson class is conflicted between Ray jar and user's jar.
This PR shade the jackson in Ray jar to avoid the conflict. | rule com.google.common.** io.ray.shaded.com.google.common.@1
rule com.google.protobuf.** io.ray.shaded.com.google.protobuf.@1
rule com.google.thirdparty.** io.ray.shaded.com.google.thirdparty.@1
+# jackson jar is introduced in `de.ruedigermoeller:fst`. It's easy to be
+# conflict with users'.
+rule com.fasterxml.jackso... |
Update build_hardware.md
fix roll your own link | @@ -48,7 +48,7 @@ For more detail and other options, follow the link to: [supported cars](/support
## Roll Your Own Car
-Alternatively If you know RC or need something the standard Donkey does not support, you can roll your own. Here is a quick reference to help you along the way. [Roll Your Own](/roll_your_own/)
+Alte... |
Add schema migration for uri search changes
See commit for original additions
This also retires the enforced check for unification changes. | @@ -124,12 +124,12 @@ def schema_is_latest(engine):
"""
Is the schema up-to-date?
"""
- is_unification = _pg_exists(engine, schema_qualified('dataset_type'))
- is_updated = not _pg_exists(engine, schema_qualified('uq_dataset_source_dataset_ref'))
-
# We may have versioned schema in the future.
- # For now, we know upda... |
Updating mkdocs to automatically adjust theme
Automatically adjusts documentation theme between default/slate based on users preference for dark mode. | @@ -8,11 +8,13 @@ theme:
icon:
repo: fontawesome/brands/github
palette:
- - scheme: default
+ - media: "(prefers-color-scheme: light)"
+ scheme: default
toggle:
icon: material/lightbulb-outline
name: Switch to Dark Mode
- - scheme: slate
+ - media: "(prefers-color-scheme: dark)"
+ scheme: slate
toggle:
icon: material/l... |
Attempt to stream text/html content-types
Somewhat fixes | @@ -85,8 +85,8 @@ class Playlist(EventEmitter, Serializable):
raise ExtractionError("Invalid content type \"%s\" for url %s" % (content_type, song_url))
elif content_type.startswith('text/html'):
- log.warning("Got text/html for content-type, this might be a stream")
- pass # TODO: Check for shoutcast/icecast
+ log.war... |
Apply suggestions from code review
minor nit | @@ -161,13 +161,13 @@ class Snapshot(models.Model):
class ArchiveResult(models.Model):
snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE)
cmd = models.CharField(max_length=500)
- pwd = models.CharField(max_length=200)
+ pwd = models.CharField(max_length=256)
cmd_version = models.CharField(max_length=32)
-... |
version="4.3.25"
version="4.3.25" | @@ -24,7 +24,7 @@ with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='donkeycar',
- version="4.3.24",
+ version="4.3.25",
long_description=long_description,
description='Self driving library for python.',
url='https://github.com/autorope/donkeycar',
|
Fix default Tiberius icon load in GTK
The default icon is not loading because it is missing the extension.
This leads to an error when trying to run toga_demo from local clone.
This patch fixes the icon filename adding the default extension from
the GTK icon class. | +import os
+
from gi.repository import Gtk, GdkPixbuf
@@ -17,8 +19,14 @@ class Icon:
try:
return self.native[size]
except KeyError:
+ valid_icon_extensions = ('.png', '.ico', self.EXTENSION)
+ file_path, file_extension = os.path.splitext(self.interface.filename)
+ if file_extension not in valid_icon_extensions:
+ file_... |
Update scalyr query utility script so the query can be passed in either
as a single string argument or as multiple arguments.
This allows us to split long queries over multiple lines without too
much bash / string concatination. | @@ -26,7 +26,15 @@ SLEEP_DELAY=${SLEEP_DELAY:-"15"}
# Script will fail if query doesn't return at least this number of results / lines
MINIMUM_RESULTS=${MINIMUM_RESULTS:-"1"}
+if [ $# -eq 1 ]; then
+ # Query passed in as a single string argument
+ echo "Query passed in as a single string argument"
SCALYR_TOOL_QUERY=$1
... |
Re-enabling Airflow integration tests.
Airflow's (very quick!) fix: | @@ -8,8 +8,6 @@ Having your project tested here is the most sure way to keep those regressions f
"""
from subprocess import check_call
-import pytest
-
from isort.main import main
@@ -96,9 +94,6 @@ def test_websockets(tmpdir):
)
-# TODO Re-enable when airflow updates their isort config
-# Reference: https://github.com/... |
Fix `reset_parameters` in `DimeNet`
I've fixed the duplicated for-loop by specifying the correct variable
(see issue | @@ -275,7 +275,7 @@ class InteractionPPBlock(torch.nn.Module):
res_layer.reset_parameters()
glorot_orthogonal(self.lin.weight, scale=2.0)
self.lin.bias.data.fill_(0)
- for res_layer in self.layers_before_skip:
+ for res_layer in self.layers_after_skip:
res_layer.reset_parameters()
def forward(self, x: Tensor, rbf: Tens... |
Add transfer capacties for Norway
Values are based on max reported to ENTSOE and will obviously be lower in summer due to thermal limits. | "rotation": 0
},
"NO-NO1->NO-NO2": {
+ "capacity": [
+ -2200,
+ 3500
+ ],
"lonlat": [
9.3,
59.844429
"rotation": -110
},
"NO-NO1->NO-NO3": {
+ "capacity": [
+ -500,
+ 500
+ ],
"lonlat": [
9.533218,
61.731596
"rotation": -45
},
"NO-NO1->NO-NO5": {
+ "capacity": [
+ -600,
+ 3900
+ ],
"lonlat": [
8.3,
61.132896
"rotation"... |
Delete validatingwebhookconfigurations and mutatingwebhookconfiguration
in make undeploy and make undeploy-dev | @@ -33,9 +33,13 @@ deploy-dev: manifests
undeploy:
kustomize build config/default | kubectl delete -f -
+ kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io kfservice.serving.kubeflow.org
+ kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io kfservice.serving.kubeflow.org
... |
shutdown haproxy conn on check failed
HG--
branch : feature/dcs | @@ -21,7 +21,7 @@ backend postgres-patroni
http-check expect status 200
default-server inter 3s fall 3 rise 2
{% for n in groups['svc-patroni'] %}
- server cluster-pgsql-{{loop.index}} {{hostvars[n].ansible_host}}:5432 maxconn {{postgres_max_connections}} check port {{patroni_listen}}
+ server cluster-pgsql-{{loop.inde... |
tests/function/LinearCombination: Run dummy benchmark in skipped configurations
Fixes unused benchmark fixture warnings | @@ -85,6 +85,8 @@ RAND3_S = np.random.rand()
def linear_combination_function(variable, operation, exponents, weights, scale, offset, bin_execute, benchmark):
if weights is not None and not np.isscalar(weights) and len(variable) != len(weights):
+ benchmark.disabled = True
+ benchmark(lambda _:0,0)
pytest.skip("variable... |
Fix escaping for special charaters
Issue | @@ -584,7 +584,7 @@ def quote_identifier(identifier, for_grants=False):
'''
if for_grants:
return '`' + identifier.replace('`', '``').replace('_', r'\_') \
- .replace('%', r'\%%') + '`'
+ .replace('%', r'%%') + '`'
else:
return '`' + identifier.replace('`', '``').replace('%', '%%') + '`'
|
fix: remove non-existing user from CODEOWNERS
Removes user that does not exist, or seems to have been renamed to | # /data_structures/ @cclauss # TODO: Uncomment this line after Hacktoberfest
-/digital_image_processing/ @mateuszz0000
+# /digital_image_processing/
# /divide_and_conquer/
# /searches/
-/sorts/ @mateuszz0000
+# /sorts/
# /strings/ @cclauss # TODO: Uncomment this line after Hacktoberfest
|
Modifying the parameters
Interface has changed in zun/image/driver.py:
delete_image(context, img_id, image_driver=None) | @@ -908,7 +908,7 @@ class Manager(periodic_task.PeriodicTasks):
LOG.exception("Unexpected exception while uploading image: %s",
six.text_type(e))
image_driver.delete_image(context, snapshot_image.id,
- glance.GlanceDriver())
+ 'glance')
self.driver.delete_image(container_image_id)
raise
@@ -935,7 +935,7 @@ class Manage... |
cuDNN 7.1 fix.
Output from cudnnGetFilterNdDescriptor has changed in cuDNN 7.1 this fix will be forward and backward compatible. | @@ -443,11 +443,10 @@ namespace {
// (same for the hh weights, and the ih and hh biases).
// Since we're storing all the weights in a single tensor anyway,
// might as well merge the CUDNN ones into a single tensor as well
+ int mat_numel = *filter_dim_a.prod().data<int>();
if (linear_id == 0 || linear_id == num_linear... |
Switch doc to NGO rather than 1+1
* switch doc to Shiwa rather than 1+1
* Shiwa --> NGO
ok then I switch to NGO which is already quite better than OnePlusOne and which is supposed to stay for eternity.
* fix typo | @@ -15,7 +15,7 @@ More installation options, including windows installation, and complete instruct
You can join Nevergrad users Facebook group [here](https://www.facebook.com/groups/nevergradusers/).
-Minimizing a function using an optimizer (here `OnePlusOne`) is straightforward:
+Minimizing a function using an optimi... |
Forcing error file download on link click.
Rather than opening file in new window.
Adding optional prop to k-external-link.
Adding default file name. | <template>
<!-- no extra whitespace inside link -->
- <a :class="buttonClasses" :href="href">{{ text }}</a>
+ <a
+ :class="buttonClasses"
+ :href="href"
+ :download="download"
+ >
+ {{ text }}
+ </a>
</template>
type: String,
required: true,
},
+ /**
+ * URL string
+ */
+ href: {
+ type: String,
+ required: true,
+ },
... |
Remove pass keyword
Pass keyword is not brought up in tutorial so far and would therefor be confusing to new students, replaced with empty returns. | @@ -81,11 +81,11 @@ Tutorial Code
# Modify this function to return a list of strings as defined above
def list_benefits():
- pass
+ return []
# Modify this function to concatenate to each benefit - " is a benefit of functions!"
def build_sentence(benefit):
- pass
+ return ""
def name_the_benefits_of_functions():
list_o... |
Update _params.py
Fix typo, specify Compute Gallery instead of Image Gallery. | @@ -163,7 +163,7 @@ def load_arguments(self, _):
c.argument('disk_mbps_read_only', type=int, help='The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10')
c.argument('image_reference'... |
synctl warns when no process is stopped and avoids start
* If an error occurs when stopping a process synctl now logs a warning.
* During a restart, synctl will avoid attempting to start Synapse if an error
occurs during stopping Synapse. | @@ -142,12 +142,23 @@ def start_worker(app: str, configfile: str, worker_configfile: str) -> bool:
return False
-def stop(pidfile, app):
+def stop(pidfile: str, app: str) -> bool:
+ """Attempts to kill a synapse worker from the pidfile.
+ Args:
+ pidfile: path to file containing worker's pid
+ app: name of the worker's... |
On-the-fly gamma alteration
Fix | @@ -272,7 +272,8 @@ def get_channel_value(color, channel, space='hsl'):
def Colormap(*args, extend='both',
xi=None, xf=None, # optionally truncate color range by these indices
ratios=1, resample=True, reverse=False,
- name=None, register=True, save=False, N=None, **kwargs):
+ gamma=None, gamma1=None, gamma2=None,
+ nam... |
help: Rename back button text.
Renamed back button text to Zulip instead of Home. | <div class="content">
<h1><a href="{{ doc_root }}" class="no-underline">Index</a></h1>
{{ render_markdown_path(sidebar_index, api_uri_context) }}
- <h1 class="home-link"><a href="/" class="no-underline">Back to Home</a></h1>
+ <h1 class="home-link"><a href="/" class="no-underline">Back to Zulip</a></h1>
</div>
</div>
|
Update sentinel-2-l2a-cogs.yaml
Hi! I just added my beginner tutorial on how to access Landsat and Sentinel data on AWS with Python. Many of the other tutorials are outdated and not working, btw. | @@ -51,6 +51,9 @@ Resources:
Type: SNS Topic
DataAtWork:
Tutorials:
+ - Title: How to Work with Landsat and Sentinel-2 on AWS with Python
+ URL: https://www.matecdev.com/posts/landsat-sentinel-aws-s3-python.html
+ AuthorName: Martin D. Maas
- Title: Intake-STAC with sat-search
URL: https://github.com/intake/intake-stac... |
textlib_tests.py: split test_regexes
Divide test_regexes() in:
test_etp_regex()
test_nested_template_regex() | @@ -587,8 +587,8 @@ class TestTemplateParams(TestCase):
self.assertEqual(func('{{a|{{c|{{d|{{e|}}}} }} }} foo {{b}}'),
[(None, OrderedDict())])
- def test_regexes(self):
- """Test _ETP_REGEX and NESTED_TEMPLATE_REGEX."""
+ def test_etp_regex(self):
+ """Test _ETP_REGEX."""
func = textlib._ETP_REGEX.search
self.assertIs... |
Fix "NoneType object is not callable" exception when using a tracing function that returns None
CPython uses the return value of tracing function to assign it to frame.f_trace field and then it uses it for the frame instead of tstate.c_tracefunc. If it is None, the context shouldn't be traced line by line. | PyThreadState *tstate; \
PyGILState_STATE state = PyGILState_Ensure(); \
tstate = PyThreadState_GET(); \
- if (unlikely(tstate->use_tracing && tstate->c_tracefunc)) { \
+ if (unlikely(tstate->use_tracing && __pyx_frame->f_trace != Py_None)) { \
ret = __Pyx_call_line_trace_func(tstate, $frame_cname, lineno); \
} \
PyGIL... |
feat: minor disclaimer on nfs server role readme
* feat: minor disclaimer on nfs server role readme
Add a note in nfs-server readme about exported directories that must be created before applying the role
* Update readme.rst | @@ -27,6 +27,8 @@ All configuration is done in *group_vars/all/general_settings/nfs.yml*:
This role will not modify default nfs server configuration (number of threads, nfs v4.2 force, etc).
+Note that exported paths will not be created by the role. They must be created by the administrator before running this role.
+
... |
Bubbles up "algorithm" arg to create_nqubit_sequences.
So now you can specify "greedy" (the default) or "sequential" (if
you don't have time to wait for greedy). | @@ -1530,7 +1530,7 @@ def get_candidates_for_core(gateset, core_qubits, candidate_counts, seedStart):
def create_nqubit_sequences(nQubits, maxLengths, geometry, cnot_edges, maxIdleWeight=1, maxhops=0,
extraWeight1Hops=0, extraGateWeight=0, sparse=False, verbosity=0,
- cache=None, idleOnly=False):
+ cache=None, idleOnly... |
Prepare the 1.24.1rc1 release.
Work towards
[ci skip-rust-tests]
[ci skip-jvm-tests] | This document describes releases leading up to the ``1.24.x`` ``stable`` series.
+1.24.1rc1 (6/16/2020)
+---------------------
+
+N.B.: No further releases are expected in the ``1.24.x`` ``stable`` series. This ``.1rc1``
+release is for those upgrading through stable versions who wish to retain pytest console
+coverage... |
Move property to enable Intel HPC in the right level of the dna.json
In the cookbook recipes we are searching for the "enable_intel_hpc_platform"
key in the "cfncluster" dictionary of the dna.json file. | ]
}
]
- }
},
"enable_intel_hpc_platform": {
"Ref": "IntelHPCPlatform"
+ }
},
"run_list": {
"Fn::Sub": "recipe[aws-parallelcluster::${Scheduler}_config]"
|
Lexical envs: reword Is_Cache_Valid's comment
For AdaCore/libadalang#45
(no-tn-check) | @@ -11,7 +11,7 @@ with Langkit_Support.Images; use Langkit_Support.Images;
package body Langkit_Support.Lexical_Env is
function Is_Cache_Valid (Env : Lexical_Env) return Boolean;
- -- Returns whether Env's cache is valid or not. This will check every
+ -- Return whether Env's lookup cache is valid. This will check ever... |
devstack: redis on opensuse needs to have default config
this patch adds a default config and uses template version of
unit-file to restart redis | @@ -96,8 +96,15 @@ function _ceilometer_install_redis {
else
# This will fail (correctly) where a redis package is unavailable
install_package redis
+ if is_suse; then
+ # opensuse intsall multi-instance version of redis
+ # and admin is expected to install the required conf
+ cp /etc/redis/default.conf.example /etc/re... |
Fix Dataset add single file
Fix get project name from parent dataset if not specified | @@ -589,15 +589,16 @@ class Dataset(object):
return [f.relative_path for f in matching_errors if f is not None]
@classmethod
- def create(cls, dataset_project, dataset_name, parent_datasets=None):
- # type: (str, str, Optional[Sequence[Union[str, Dataset]]]) -> Dataset
+ def create(cls, dataset_name, dataset_project=No... |
python_api/module_py.mako: fix Unicode handling in get_from_provider
TN: | @@ -515,8 +515,7 @@ class AnalysisContext(object):
def get_from_provider(self, name, kind, charset=None, reparse=False):
${py_doc('langkit.get_unit_from_provider', 8)}
- name = _py2to3.text_to_bytes(name)
- name_text = _py2to3.bytes_to_text(name)
+ name = _py2to3.bytes_to_text(name)
charset = _py2to3.text_to_bytes(char... |
Restore use of Version constructor with defined constants
packaging does not allow extracting minor versions, so use regular old
string parsing there. | """
General constants.
"""
+# isort: THIRDPARTY
+from packaging.specifiers import Version
+
SERVICE = "org.storage.stratis3"
TOP_OBJECT = "/org/storage/stratis3"
@@ -21,6 +24,7 @@ SECTOR_SIZE = 512
MAXIMUM_STRATISD_VERSION = "4.0.0"
MINIMUM_STRATISD_VERSION = "3.0.0"
+assert Version(MINIMUM_STRATISD_VERSION) < Version(... |
update command line scripts
the command "configure" has been split into "set-dir" and "set-excluded"
configuration management has been renamed from "env" to "config" | @@ -81,11 +81,21 @@ def gui():
@main.command()
@with_config_opt
-def configure():
- """Runs the command line configuration wizard."""
+def set_dir():
+ """Set or change the location of your Dropbox folder."""
+ if is_linked():
from maestral.main import Maestral
m = Maestral(run=False)
m.move_dropbox_directory()
+
+
+@m... |
simplify loops of length one
An `evaluable.LoopSum` or `evaluable.LoopConcatenate` can be omitted if the
length of the loop is one. This patch makes this happen by letting the
`evaluable.LoopIndex` simplify to a constant if the loop has length one. | @@ -3457,6 +3457,10 @@ class _LoopIndex(Argument):
lower_length, upper_length = self.length._intbounds
return 0, max(0, upper_length - 1)
+ def _simplified(self):
+ if equalindex(self.length, 1):
+ return Zeros((), int)
+
class LoopSum(Array):
__cache__ = '_serialized'
|
[C2] Optimize MulGradient Operator when inner_size is 1
Summary:
Pull Request resolved:
Add a simpler implementation of the MulGradient cuda kernel for when inner_size==1, inner loop is eliminated. | @@ -63,7 +63,43 @@ __global__ void ComputeMulGradientCUDAKernel(
__syncthreads();
}
}
-
+template <typename TGrad, typename TIn, int D>
+__global__ void ComputeMulGradientOuterCUDAKernel(
+ const int outer_size,
+ const SimpleArray<FixedDivisor<int>, D> Y_dims,
+ const SimpleArray<int, D> Y_strides,
+ const SimpleArray... |
Update show.py
Correctly show up/down for all types of nodes | @@ -229,7 +229,7 @@ async def show_async(args, parser):
f"{con['peer_port']:5}/{con['peer_server_port']:<5}"
f" {con['node_id'].hex()[:8]}... "
f"{last_connect} "
- f"{mb_down:7.1f}|{mb_up:<7.1f}"
+ f"{mb_up:7.1f}|{mb_down:<7.1f}"
)
print(con_str)
# if called together with state, leave a blank line
|
Fall back when consensus is not set
When the on-chain consensus settings aren't set: fall back to PoET if
PoET is configured, otherwise fall back to devmode. | @@ -374,4 +374,18 @@ def get_configured_engine(block, settings_view_factory):
conf_version = settings_view.get_setting(
'sawtooth.consensus.algorithm.version')
- return conf_name, conf_version
+ # Fallback to devmode if nothing else is set
+ name = "Devmode"
+ version = "0.1"
+
+ # If name and version settings aren't s... |
ui: fix extra newline in dvc version
Additionally don't try to detect cache fs type unless cache dir exists. | @@ -27,23 +27,13 @@ class CmdVersion(CmdBaseNoRepo):
def run(self):
from dvc.repo import Repo
- dvc_version = __version__
- python_version = platform.python_version()
- platform_type = platform.platform()
- binary = is_binary()
- info = (
- "DVC version: {dvc_version}\n"
- "Python version: {python_version}\n"
- "Platfo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.