message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Update the amount of solves shown on the chal window when solves are listed
Closes | @@ -189,6 +189,7 @@ function updatesolves(cb){
function getsolves(id){
$.get(script_root + '/chal/'+id+'/solves', function (data) {
var teams = data['teams'];
+ $('.chal-solves').text((parseInt(teams.length) + " Solves"));
var box = $('#chal-solves-names');
box.empty();
for (var i = 0; i < teams.length; i++) {
|
gtk3: change editable to a widget in the header
Now it's similar to the GTK4 solution. This saves some custom code,
and allows to do some more code cleanup. | @@ -182,7 +182,6 @@ class MainWindow(Service, ActionProvider):
)
self.title = builder.get_object("title")
- if Gtk.get_major_version() != 3:
self.modified = builder.get_object("modified")
self.subtitle = builder.get_object("subtitle")
self.set_title()
@@ -210,7 +209,7 @@ class MainWindow(Service, ActionProvider):
self.... |
Document that token-based upload is supported
Closes | @@ -208,6 +208,10 @@ Environment variables
See :ref:`uploading packages with environment variables <upload_envvars>`
for more information.
+ Token-based upload to PyPI is supported. To upload using PyPI token,
+ set the ``FLIT_USERNAME`` value to ``__token__``, and the ``FLIT_PASSWORD``
+ to the token value.
+
.. envva... |
Specification of BPE in tutorial
I have forgot that also running script need to specify the BPE block and does not take it from the main config | @@ -278,6 +278,10 @@ As for the evaluation, you need to create ``translation_run.ini``:
[main]
test_datasets=[<eval_data>]
+ [bpe_preprocess]
+ class=processors.bpe.BPEPreprocessor
+ merge_file="exp-nm-mt/data/merge_file.bpe"
+
[eval_data]
class=dataset.load_dataset_from_files
s_source="exp-nm-mt/data/test/Batch3a_en.t... |
Add __enter__, __exit__ to IMAP4, make __init__ arguments optional
Fixes | @@ -29,7 +29,7 @@ class IMAP4:
welcome: bytes = ...
capabilities: Tuple[str] = ...
PROTOCOL_VERSION: str = ...
- def __init__(self, host: str, port: int) -> None: ...
+ def __init__(self, host: str = ..., port: int = ...) -> None: ...
def __getattr__(self, attr: str) -> Any: ...
host: str = ...
port: int = ...
@@ -54,6... |
Update Mixcloud oembed pattern, add https support.
As per docs at | @@ -139,8 +139,8 @@ OEMBED_ENDPOINTS = {
"http://video.yandex.ru/oembed.{format}": [
"^http://video\\.yandex\\.ru/users/[^#?/]+/view/.+$"
],
- "http://www.mixcloud.com/oembed/": [
- "^http://www\\.mixcloud\\.com/oembed/[^#?/]+/.+$"
+ "https://www.mixcloud.com/oembed/": [
+ "^https?://www\\.mixcloud\\.com/.+$"
],
"http:... |
[test] Reduction sum test on macOS passes
Possibly due to some differences of computation between macOS and other in
Eigen library, the tolerance of backward test of sum had to be relaxed. | @@ -37,4 +37,8 @@ def test_reduction_forward_backward(op, seed, axis, keepdims, ctx, func_name):
func_args=[axis],
func_kwargs=dict(keepdims=keepdims),
ctx=ctx, func_name=func_name,
- atol_b=3e-3)
+ # The backward test on macOS doesn't pass with this torelance.
+ # Does Eigen library used in CPU computatation backend p... |
Ignore endpoint updates from kube-system
kube-scheduler and kube-controller-manager endpoints are
updated almost every second, leading to terrible noise,
and hence constant listener invokation. So, here we
ignore endpoint updates from kube-system namespace. More: | @@ -157,6 +157,18 @@ func (w *Watcher) WatchNamespace(namespace, resources string, listener func(*Wat
// assume this means we made the
// change to them
if oldUn.GetResourceVersion() != newUn.GetResourceVersion() {
+ // kube-scheduler and kube-controller-manager endpoints are
+ // updated almost every second, leading t... |
Allow retrying passed buildkite steps
Summary:
Plenty of times this is useful (trying to repro flakes, for example). I'm surprised it isn't the default | @@ -34,7 +34,8 @@ def __init__(self, label, key=None, timeout_in_minutes=None):
"automatic": [
{"exit_status": -1, "limit": 2}, # agent lost
{"exit_status": 255, "limit": 2}, # agent forced shut down
- ]
+ ],
+ "manual": {"permit_on_passed": True},
},
}
if key is not None:
|
Implemented suggestions by terminalmage
Rephrasing and better linkage to the documentation | @@ -1772,7 +1772,7 @@ def upgrade(name=None,
.. _`systemd.kill(5)`: https://www.freedesktop.org/software/systemd/man/systemd.kill.html
.. versionchanged:: Fluorine
- Added obsoletes and minimal arguments
+ Added ``obsoletes`` and ``minimal`` arguments
Returns a dictionary containing the changes:
@@ -1867,9 +1867,9 @@ d... |
Docs: update the path of "meters.yaml" and its new feature
The file has been moved from ceilometer/meter/data/meters.yaml to
ceilometer/data/meters.d/meters.yaml, in order to support loading
multiple meter definition files.
So I think it is necessary to update the info in doc.
Related-Bug: | @@ -205,7 +205,7 @@ Meter definitions
The Telemetry service collects a subset of the meters by filtering
notifications emitted by other OpenStack services. You can find the meter
definitions in a separate configuration file, called
-``ceilometer/meter/data/meters.yaml``. This enables
+``ceilometer/data/meters.d/meters.... |
add pillow>=6.2.0 to fix rtd error & remove comments
rtd error: Pillow 5.4.1 is installed but pillow>=6.2.0 is required by {'matplotlib'} | +# Sorted
--find-links https://download.pytorch.org/whl/torch_stable.html
-# Needed only for torch-geometric
-#torch-cluster==1.5.4
-#torch-scatter==2.0.4
-#torch-sparse==0.6.5
-#torch-spline-conv==1.2.0
-#torch-geometric==1.5.0
-
-# Documentation packages
nbsphinx
nbsphinx-link
-# scikit-image
numpy
-# Needed only for... |
fw/exec: context: add write_job_specs
Add a method to encapsulate the writing of ConfigManager's job specs
into run_output. | @@ -188,6 +188,9 @@ class ExecutionContext(object):
self.run_output.write_state()
self.run_output.write_result()
+ def write_job_specs(self):
+ self.run_output.write_job_specs(self.cm.job_specs)
+
def get_resource(self, resource, strict=True):
result = self.resolver.get(resource, strict)
if result is None:
|
Deprecate `Request.is_xhr`
The `X-Requested-With` header is not reliable because is not standard,
so it's safe to deprecate this property | """
from functools import update_wrapper
from datetime import datetime, timedelta
+from warnings import warn
from werkzeug.http import HTTP_STATUS_CODES, \
parse_accept_header, parse_cache_control_header, parse_etags, \
@@ -62,7 +63,6 @@ def _warn_if_string(iterable):
to the WSGI server is not a string.
"""
if isinstan... |
DOC: updated changelog
Updated changelog with new enhancement information. | @@ -21,6 +21,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Replace `season_date_range` with `create_date_range`, old version is deprecated
- Added deprecation warnings to stat functions
- Removed `pysat_sgp4` instrument
+ - Added cleaning steps to the C/NOFS IVM ion fraction data
- Bug fix
-... |
Add Alcatel.7302 interface type
HG--
branch : feature/microservices | @@ -44,6 +44,8 @@ class Script(BaseScript):
"xdsl-channel": "physical",
"atm-bonding": "physical",
"atm": "physical",
+ "atm-ima": "physical",
+ "shdsl": "physical",
"sw-loopback": "loopback",
"bonding": "other"
}
|
* Modify override behavior to search original params instead of template
file. Fixes | @@ -321,10 +321,8 @@ class TaskCat(object):
if key in param_index.keys():
idx = param_index[key]
original_keys[idx] = override_pd
- elif key in template_params:
- original_keys.append(override_pd)
else:
- print(PrintMsg.INFO + "Cannot override [{}]! It's not present within the template!".format(key))
+ print(PrintMsg.I... |
Update README.md
Mozilla Observatory ordered alphabetically | @@ -749,9 +749,9 @@ API | Description | Auth | HTTPS | CORS |
| [FilterLists](https://filterlists.com) | Lists of filters for adblockers and firewalls | No | Yes | Unknown |
| [FraudLabs Pro](https://www.fraudlabspro.com/developer/api/screen-order) | Screen order information using AI to detect frauds | `apiKey` | Yes |... |
issue make CallError inherit from object for 2.4/2.5.
Otherwise cPickle will not call __reduce__(). | @@ -250,11 +250,14 @@ class Kwargs(dict):
return (Kwargs, (dict(self),))
-class CallError(Error):
- """Serializable :class:`Error` subclass raised when
- :meth:`Context.call() <mitogen.parent.Context.call>` fails. A copy of
- the traceback from the external context is appended to the exception
- message."""
+class Call... |
build_emoji: Remove now unused `MissingGlyphError` exception.
This exception was raised if there was no glyph available for a
codepoint. We no longer need this. | @@ -90,10 +90,6 @@ if 'TRAVIS' in os.environ:
# In Travis CI, we don't have root access
EMOJI_CACHE_PATH = "/home/travis/zulip-emoji-cache"
-class MissingGlyphError(Exception):
- pass
-
-
def main():
# type: () -> None
# ttx is in the fonttools pacakge, the -z option is only on master
|
BUG: Actually show the "cvxopt not found" error message
ValueError to match the "Unknown fit method l1_cvxopt_cp"
previously raised by statsmodels/base/optimizer.py _check_method | @@ -356,7 +356,7 @@ class DiscreteModel(base.LikelihoodModel):
from statsmodels.base.l1_cvxopt import fit_l1_cvxopt_cp
extra_fit_funcs['l1_cvxopt_cp'] = fit_l1_cvxopt_cp
elif method.lower() == 'l1_cvxopt_cp':
- message = ("Attempt to use l1_cvxopt_cp failed since cvxopt "
+ raise ValueError("Attempt to use l1_cvxopt_cp... |
Deploy to pypi only once when using build matrix
Makes use of TravisCI build stages. Note that this feature is still
in beta. | @@ -29,9 +29,10 @@ install:
script:
- pytest -v --cov=donkeycar donkeycar/tests
-after_success:
-- codecov
-
+jobs:
+ include:
+ - stage: deploy
+ script: skip
deploy:
provider: pypi
user: wroscoe
@@ -40,3 +41,6 @@ deploy:
on:
tags: true
branch: master
+
+after_success:
+- codecov
\ No newline at end of file
|
MAINT: Quiet the anaconda uploads.
The nightly uploads of the aarch64 wheels built on TravisCI are failing
due to the maximum log length being exceeded. This quiets the anaconda
output for that operation. Long term, we will probably want to shorten
the test output also. | @@ -45,10 +45,10 @@ upload_wheels() {
# sdists are located under dist folder when built through setup.py
if compgen -G "./dist/*.gz"; then
echo "Found sdist"
- anaconda -t ${TOKEN} upload --skip -u ${ANACONDA_ORG} ./dist/*.gz
+ anaconda -q -t ${TOKEN} upload --skip -u ${ANACONDA_ORG} ./dist/*.gz
elif compgen -G "./whee... |
docs: Add translation policy on API error messages.
Record Zulip's translation policy on API error messages. | @@ -101,6 +101,11 @@ Some useful tips for your translating journey:
- Take advantage of the hotkeys the Transifex Web Editor provides, such as
`Tab` for saving and going to the next string.
+- While one should definitely prioritize translating
+ `translations.json`, since the most prominent user-facing strings
+ are th... |
Update tables.md
tables.md: Updating info as per release 0.10 | @@ -5,22 +5,23 @@ is the BGP data
that the bgp service collects from routers. To see what information is collected for each table, you can use the ```table describe table=<table name>``` via suzieq-cli to get the details. To see the list of tables, you can type ```help``` in suzieq-cli or run ```suzieq-cli --help```.
-... |
add reasoning for the scale update of rwalk
and somewhat update the eqn | @@ -148,18 +148,37 @@ class SuperSampler(Sampler):
def update_rwalk(self, blob):
"""Update the random walk proposal scale based on the current
- number of accepted/rejected steps."""
-
+ number of accepted/rejected steps.
+ For rwalk the scale is important because it
+ determines the speed of diffusion of points.
+ I.e... |
Simplify cost_func caching
Now only cache snapped values, since those correspond to results for an actual
instance of the kernel. | @@ -64,10 +64,6 @@ def _cost_func(x, kernel_options, tuning_options, runner, results, cache):
logging.debug('_cost_func called')
logging.debug('x: ' + str(x))
- x_key = ",".join([str(i) for i in x])
- if x_key in cache:
- return cache[x_key]
-
#snap values in x to nearest actual value for each parameter unscale x if ne... |
Update dataset_api.py
Replace Exception for a print in dataset.purge mthod | @@ -184,7 +184,8 @@ class DatasetRequestAPI(RequestAPI):
while pref != "y" and pref != "n":
pref = input("Invalid input '" + pref + "', please specify 'y' or 'n'.")
if pref == "n":
- raise Exception("Datasets deletion is cancelled.")
+ print("Datasets deletion is cancelled.")
+ return None
for dataset in self.all():
se... |
fix - use failed as class variable
failed must be used as class variable. Test classes cannot have __init__, so this weird approach used for now. | @@ -51,6 +51,8 @@ class ModuleUnitTest(BaseTest):
TEST_DATA_FOLDER = None
+ failed = False
+
@pytest.fixture(scope='session')
def monkeypatch_session(self):
"""Monkeypatch couldn't be used with module or session fixtures."""
|
Replaced FIXME with proper docstring.
All of the issues have been addressed or determined they weren't an issue | @@ -74,22 +74,7 @@ def plan_list(runtime, print_json):
@pass_runtime(require_project=True, require_keychain=True)
def plan_info(runtime, plan_name, messages_only):
"""
- plan_info FIXME:
- - the original RFC lists a "recommended" column for steps; I don't know
- where that data comes from
- - I don't know if the step p... |
typo
fixed a typo
+label: docsite_pr | @@ -206,7 +206,7 @@ The following shows an example ``meta/main.yml`` file with dependent roles:
If the source of a role is Galaxy, specify the role in the format *namespace.role_name*, as shown in the
-above example. The more complex format used in *requirements.yml* is also supported, as deomonstrated by
+above exampl... |
Add class SummaryResults
* Class used to store results and provide plots rotor summary.
* This class aims to present a summary of the main parameters and attributes
from a rotor model. The data is presented in a table format. | @@ -1712,6 +1712,98 @@ class StaticResults:
return fig
+class SummaryResults:
+ """Class used to store results and provide plots rotor summary.
+
+ This class aims to present a summary of the main parameters and attributes
+ from a rotor model. The data is presented in a table format.
+
+ Parameters
+ ----------
+ df_s... |
[IMPR] Removing poetry from travis
**Is backwards compatible**: yes
Removed poetry install from travis since we do not use poetry
anymore. | @@ -32,7 +32,6 @@ addons:
install:
- pip install --upgrade pip
- - pip install poetry
- cd $TRAVIS_BUILD_DIR && make setup
- pip install coveralls
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
|
Fix bug spotted by tedsta@
Thanks! | @@ -675,7 +675,7 @@ class SampleCollector(object):
else:
self.metadata_providers = DEFAULT_METADATA_PROVIDERS
- self.publishers = publishers.copy()
+ self.publishers = publishers[:]
if publishers_from_flags:
publishers.extend(SampleCollector._PublishersFromFlags())
if add_default_publishers:
|
[cleanup] pywikibot/site.py: simplify test
The form using a tuple, isinstance(x, (A, B, ...)), is a shortcut for
isinstance(x, A) or isinstance(x, B) or ... (etc.). | @@ -5814,9 +5814,9 @@ class APISite(BaseSite):
if all(_ is None for _ in [rcid, revid, revision]):
raise Error('No rcid, revid or revision provided.')
- if isinstance(rcid, int) or isinstance(rcid, basestring):
+ if isinstance(rcid, (int, basestring)):
rcid = {rcid}
- if isinstance(revid, int) or isinstance(revid, base... |
fix: ensure string type for configflow
closes | "issue_tracker": "https://github.com/custom-components/alexa_media_player/issues",
"dependencies": ["persistent_notification"],
"codeowners": ["@keatontaylor", "@alandtse"],
- "requirements": ["alexapy==1.20.0", "packaging~=20.3", "wrapt~=1.12.1"]
+ "requirements": ["alexapy==1.20.1", "packaging~=20.3", "wrapt~=1.12.1"... |
allow null content in migration
because existing rows won't have any content populated yet. | @@ -14,7 +14,7 @@ down_revision = '0334_broadcast_message_number'
def upgrade():
- op.add_column('broadcast_message', sa.Column('content', sa.Text(), nullable=False))
+ op.add_column('broadcast_message', sa.Column('content', sa.Text(), nullable=True))
op.alter_column('broadcast_message', 'template_id', nullable=True)
o... |
[Salt-cloud] Allow to ignore ssl with Xen provider
Allow to ignore ssl verification for xen providers
# /etc/salt/cloud.providers.d/xentest.conf
xentest:
ignore_ssl: True
driver: xen
Require a recent XenAPI.py which can be found here: | @@ -150,7 +150,14 @@ def _get_session():
__opts__,
search_global=False
)
- session = XenAPI.Session(url)
+ ignore_ssl = config.get_cloud_config_value(
+ 'ignore_ssl',
+ get_configured_provider(),
+ __opts__,
+ default=False,
+ search_global=False
+ )
+ session = XenAPI.Session(url,ignore_ssl=ignore_ssl)
log.debug('url:... |
Grammar+rephrasing
Grammar and phrasing changes after review | # Create an SLO for availability for the custom service.
# Example SLO is defined as following:
-# 90% of all non-4XX requests within the past 30 day windowed period
-# return with 200 OK status
+# 90% of HTTP requests are successful within the past 30 day windowed period
+
resource "google_monitoring_slo" "custom_serv... |
/integrations/: Focus search bar on page load.
This focuses the search bar on initial page load. | @@ -370,7 +370,11 @@ function integration_events() {
return false;
});
- $(".integrations .searchbar input[type='text']").on('input', function (e) {
+ // combine selector use for both focusing the integrations searchbar and adding
+ // the input event.
+ $(".integrations .searchbar input[type='text']")
+ .focus()
+ .on... |
Use async_forward_entry_setups instead of async_setup_platforms
Replaces current async_setup_platforms function with async_forward_entry_setups, which will prevent the integration from failing to start in Home Assistant 2023.3+ | @@ -174,7 +174,7 @@ async def async_initialize_integration(
hacs.log.info("Update entities are only supported when using UI configuration")
else:
- hass.config_entries.async_setup_platforms(
+ await hass.config_entries.async_forward_entry_setups(
config_entry,
[Platform.SENSOR, Platform.UPDATE]
if hacs.configuration.ex... |
Update MEETING_SCHEDULE.md
change to new schedule and link that allows for multiple other users to start the meeting | @@ -9,8 +9,10 @@ We hold troubleshooting sessions once a week on Thursdays, at 2:30 pm Eastern.
## Monthly Contributors Meeting
-The Emissary-ingress Contributors Meeting is held on the first Wednesday of every month at 1pm Eastern. The focus of this meeting is discussion of technical issues related to development of E... |
Fix mobile build
Summary:
Pull Request resolved:
This was broken by but only showed up in master CI builds
ghstack-source-id:
Test Plan: CI | @@ -100,9 +100,9 @@ c10::OperatorOptions atenOperatorOptions() {
return result;
}
-int (*DUMMY_OPERATION)(Stack&) = [](Stack& stack) -> int {
+KernelFunction::InternalBoxedKernelFunction *DUMMY_OPERATION =
+ [](c10::OperatorKernel *, const c10::OperatorHandle &, std::vector<c10::IValue> *) -> void {
TORCH_CHECK(false, ... |
Don't check dependencies in setup.py
no one would hardly notice anyway
checking runtime dependencies at packaging time is waste of effort
adds lot of code | @@ -13,30 +13,6 @@ from glob import glob
import io
-# check availability of runtime dependencies
-def check_dependency(package, version):
- """Issue a warning if the package is not available."""
- try:
- import gi
- gi.require_version(package.rsplit('.')[-1], version)
- __import__(package)
- except ImportError as e:
- ... |
fix(sw_index_daily_indicator): fix sw_index_daily_indicator interface
fix sw_index_daily_indicator interface | @@ -182,9 +182,9 @@ def sw_index_daily(
def sw_index_daily_indicator(
- index_code: str = "801010",
+ index_code: str = "801003",
start_date: str = "2019-12-01",
- end_date: str = "2019-12-07",
+ end_date: str = "2021-09-07",
data_type: str = "Day",
) -> pd.DataFrame:
"""
@@ -249,6 +249,7 @@ def sw_index_daily_indicato... |
Fix get_spent mongodb-based query
fixes | @@ -153,14 +153,22 @@ def get_spent(conn, transaction_id, output):
cursor = conn.run(
conn.collection('bigchain').aggregate([
{'$match': {
- 'block.transactions.inputs.fulfills.txid': transaction_id,
- 'block.transactions.inputs.fulfills.output': output
+ 'block.transactions.inputs': {
+ '$elemMatch': {
+ 'fulfills.txi... |
Update test_tasks.py
Fixed edge test case where wrong text encodings fail to parse canary file. | @@ -118,7 +118,7 @@ def verify_canary(task_path):
files = [os.path.join(task_path, f) for f in files]
for canary_file in files:
- with open(canary_file, "r") as f:
+ with open(canary_file, "r", errors='ignore') as f:
lines = f.readlines()
is_canary = np.array([CANARY in l for l in lines])
is_empty = lines == []
|
Update conf.py
Added redirect for partner program. | @@ -96,7 +96,7 @@ redirects = {
"process/accepting-pull-request": "https://handbook.mattermost.com/contributors/contributors/help-wanted",
"process/pm-faq": "https://handbook.mattermost.com/operations/research-and-development/product/product-management-team-handbook#frequently-asked-questions-faq",
"process/product-man... |
readme: changed doxs to point stable
Instead to latest. | @@ -14,7 +14,7 @@ It has powerful and intuitive scheduling syntax that is easy to extend with cust
It allows various levels of parallelization and various ways to parametrize tasks. It is suitable
for simple to moderately sized projects from process automatization to IOT.
-Read more from the documentations: [Red Engine... |
Fix snippets showing use of 'error_reporting.HTTPContext'.
Closes | @@ -75,8 +75,9 @@ be used by Stackdriver Error Reporting to help group exceptions.
>>> from google.cloud import error_reporting
>>> client = error_reporting.Client()
>>> user = 'example@gmail.com'
- >>> http_context = HTTPContext(method='GET', url='/', userAgent='test agent',
- ... referrer='example.com', responseStatu... |
rm use of deprecated `contextlib.nested` [ci skip]
This could almost certainly be simplified further | @@ -28,10 +28,10 @@ from __future__ import absolute_import, print_function, unicode_literals
from gevent import monkey
monkey.patch_all()
-import contextlib
import os
import re
import sys
+from contextlib import ExitStack
import gevent
import jsonobject
@@ -185,9 +185,9 @@ def rebuild_staging(config, print_details=True... |
removed tests for ACF feature generation
The tests where removed as the featurizer is removed. | Tests for ConvMolFeaturizer.
"""
import unittest
-import os
import numpy as np
-import pytest
-
-from deepchem.feat.graph_features import ConvMolFeaturizer, AtomicConvFeaturizer
+from deepchem.feat.graph_features import ConvMolFeaturizer
class TestConvMolFeaturizer(unittest.TestCase):
@@ -98,38 +95,3 @@ class TestConvM... |
check existing case before variant loading
always check for old case id | @@ -207,6 +207,19 @@ class CaseHandler(object):
# Build the case object
case_obj = build_case(parsed_case, self)
+ # Check if case exists with old case id
+ old_caseid = '-'.join([case_obj['owner'], case_obj['display_name']])
+ old_case = self.case(old_caseid)
+ if old_case:
+ logger.info("Update case id for existing c... |
Update README.rst
update code | @@ -168,6 +168,7 @@ In pipeline, you can build NN structures in a keras style. Take Homo-NN as an ex
Firstly, import keras and define your nn structures:
.. code:: python
+
from tensorflow.keras import optimizers
from tensorflow.keras.layers import Dense
@@ -178,6 +179,7 @@ Then, add nn layers into Homo-NN model like u... |
Fixes log formatiing string.
Closes-Bug: | @@ -1167,7 +1167,7 @@ class IPMIManagement(base.ManagementInterface):
LOG.info('For node %(node_uuid)s, '
'driver_info[\'ipmi_disable_boot_timeout\'] is set '
'to False, so not sending ipmi boot-timeout-disable',
- {'node_uuid', task.node.uuid})
+ {'node_uuid': task.node.uuid})
ifbd = task.node.driver_info.get('ipmi_fo... |
refactor: Use placeholder instead of additional option in select
Additional options were still selectable which could have got through
Minor formatting changes | @@ -397,14 +397,19 @@ frappe.setup.slides_settings = [
},
{ fieldtype: "Section Break" },
{
- fieldname: "timezone", label: __("Time Zone"), reqd: 1,
+ fieldname: "timezone",
+ label: __("Time Zone"),
+ placeholder: __('Select Time Zone'),
+ reqd: 1,
fieldtype: "Select",
-
},
{ fieldtype: "Column Break" },
{
- fieldnam... |
doc: attaching virtual persistent memory to guests
Add a document for virtual persistent memory
Partially-Implements: blueprint virtual-persistent-memory | @@ -31,3 +31,4 @@ instance for these kind of workloads.
virtual-gpu
file-backed-memory
port_with_resource_request
+ virtual-persistent-memory
|
Can_Reach: protect against null input AST nodes
TN: | @@ -2957,14 +2957,13 @@ package body ${ada_lib_name}.Analysis is
-- Can_Reach --
---------------
- function Can_Reach (El, From : ${root_node_type_name}) return Boolean
- is
+ function Can_Reach (El, From : ${root_node_type_name}) return Boolean is
begin
-- Since this function is only used to implement sequential seman... |
Detect PHP before HTML
Closes
Related
This change assumes you have Prettier PHP installed. | @@ -470,10 +470,10 @@ class JsPrettierCommand(sublime_plugin.TextCommand):
return True
if self.is_yaml(view) is True:
return True
- if self.is_html(view) is True:
- return True
if self.is_php(view) is True:
return True
+ if self.is_html(view) is True:
+ return True
if is_file_auto_formattable(view) is True:
return True... |
[core] Cleanly abort on ctrl+c
During debugging, being able to cleanly (i.e. without backtrace) exit
using ctrl+c is a very welcome functionality :) | @@ -38,6 +38,9 @@ def main():
inp=inp,
)
engine.run()
+ except KeyboardInterrupt as error:
+ inp.stop()
+ sys.exit(0)
except BaseException as e:
logging.exception(e)
if output.started():
@@ -56,18 +59,6 @@ def main():
output.flush()
output.end()
time.sleep(1)
-# try:
-# except KeyboardInterrupt as error:
-# inp.stop()
... |
Update user_guide.md
* Update user_guide.md
fix typo | @@ -684,7 +684,7 @@ Model Definition
The model definition is the core of Ludwig.
It is a dictionary that contains all the information needed to build and train a Ludwig model.
-I mixes ease of use, by means of reasonable defaults, with flexibility, by means of detailed control over the parameters of your model.
+It mix... |
Update v3 identity domain negative tests to work w/ pre-prov
I don't see any limitations by using pre-provisioned
credentials for these tests:
* test_create_domain_with_empty_name
* test_create_domain_with_name_length_over_64
* test_delete_active_domain
* test_delete_non_existent_domain
* test_domain_create_duplicate | @@ -20,6 +20,10 @@ from tempest.lib import exceptions as lib_exc
class DomainsNegativeTestJSON(base.BaseIdentityV3AdminTest):
+ # NOTE: force_tenant_isolation is true in the base class by default but
+ # overridden to false here to allow test execution for clouds using the
+ # pre-provisioned credentials provider.
+ fo... |
add more parser cases
fix function parameter parsing
remove extraneous type annotations | @@ -109,8 +109,53 @@ def test_modifiers():
]
+def test_structures():
+ assert eval(str(fully_parse("[1 1+|`nice`"))) == [
+ [
+ "if_stmt",
+ [
+ [
+ ["none", ["number", "1"]],
+ ["none", ["number", "1"]],
+ ["none", ["general", "+"]],
+ ],
+ [["none", ["string", "nice"]]],
+ ],
+ ]
+ ]
+
+ assert eval(str(fully_parse("... |
speed up sameAsReferenceImplementation
This takes ~15 minutes right now | @@ -279,8 +279,8 @@ class BinaryHeapSuite {
import Gen._
val ops = for {
- maxOrExtract <- buildableOfN(1024, oneOfGen(const(Max()), const(ExtractMax())))
- ranks <- distinctBuildableOfN(1024, arbitrary[Long])
+ maxOrExtract <- buildableOfN(64, oneOfGen(const(Max()), const(ExtractMax())))
+ ranks <- distinctBuildableOf... |
[hotfix] remove setup fail message
Else it also appears for non-cloud users, where we don't receive an email: | @@ -217,12 +217,6 @@ frappe.setup.SetupWizard = class SetupWizard extends frappe.ui.Slides {
this.$working_state.find('.state-icon-container').html('');
fail_msg = fail_msg ? fail_msg : __("Failed to complete setup");
- if(error && !frappe.boot.developer_mode) {
- frappe.msgprint(`Don't worry. It's not you, it's us. We... |
feat(fund_em_aum_hist): add fund_em_aum_hist interface
add fund_em_aum_hist interface | @@ -141,7 +141,7 @@ def stock_sina_lhb_jgzz(recent_day: str = "5") -> pd.DataFrame:
except:
last_page_num = 1
big_df = pd.DataFrame()
- for page in tqdm(range(1, last_page_num + 1), leave=False,):
+ for page in tqdm(range(1, last_page_num + 1), leave=False):
params = {
"last": recent_day,
"p": page,
@@ -196,13 +196,13 ... |
docs: fix unescaped html tag
If the description of the method contains any HTML tag, it will
break the HTML rendering.
This commit escapes the html tag to prevent this problem.
* Use html standard lib when using python3
* Use cgi standard lib when using python2
Refs
Release-As: 1.8.2 | @@ -247,6 +247,12 @@ def method(name, doc):
"""
params = method_params(doc)
+ if sys.version_info.major >= 3:
+ import html
+ doc = html.escape(doc)
+ else:
+ import cgi
+ doc = cgi.escape(doc)
return string.Template(METHOD_TEMPLATE).substitute(
name=name, params=params, doc=doc
)
|
Use cached guildfiles when loading from dir
Fixes essentially a typo. | @@ -824,7 +824,7 @@ def from_dir(path, filenames=None):
model_file = os.path.abspath(os.path.join(path, name))
if os.path.isfile(model_file):
log.debug("found model source '%s'", model_file)
- return _load_guildfile(model_file)
+ return from_file(model_file)
raise NoModels(path)
def is_guildfile_dir(path):
|
what to do with `X`?
either continue/break has been suggested | @@ -153,7 +153,7 @@ T (a: any) = truthy indices in a
U (a: any) = uniquifed(a) # uniquify, unique items, remove duplicates
V (a: any, b: any, c: any) = a.replace(needle=b, replacement=c) # replace
W = [stack] # wrap stack, lisitfy whole stack
-X = * context level down
+X =
Y (a: any, b: any) = interleave(a, b) # Interl... |
fix Adobe ID users may not have username or domain fields.
For Adobe IDs, all we can rely on is email. | @@ -875,6 +875,9 @@ class RuleProcessor(object):
:type umapi_user: dict
"""
id_type = self.get_identity_type_from_umapi_user(umapi_user)
+ if id_type == user_sync.identity_type.ADOBEID_IDENTITY_TYPE:
+ return self.get_user_key(id_type, '', '', umapi_user['email'])
+ else:
return self.get_user_key(id_type, umapi_user['u... |
Unquieten make_dev_install by default
Summary: Adds make_dev_install_quiet for those who want that.
Test Plan: Manual
Reviewers: schrockn, nate | @@ -85,7 +85,9 @@ sanity_check:
rebuild_dagit: sanity_check
cd js_modules/dagit/; yarn install --offline && yarn build-for-python
-dev_install: install_dev_python_modules rebuild_dagit
+dev_install: install_dev_python_modules_verbose rebuild_dagit
+
+dev_install_quiet: install_dev_python_modules rebuild_dagit
graphql_t... |
PathModel : Remove unneeded `Item::State::Requested` enum value
This was necessary before we introduced the asynchronous updates, but serves no purpose now. | @@ -1097,7 +1097,7 @@ class PathModel : public QAbstractItemModel
// responsible for caching the results of these queries internally.
QVariant data( int column, int role, const PathModel *model )
{
- if( requestIfUnrequested( m_dataState ) )
+ if( dirtyIfUnrequested( m_dataState ) )
{
const_cast<PathModel *>( model )->... |
Fix EMA GPU test
Summary: The GPU test was broken after (https://github.com/pytorch/fairseq/commit/1b61bbad327d2bf32502b3b9a770b57714cc43dc) | @@ -36,6 +36,7 @@ class EMAConfig(object):
ema_start_update: int = 0
ema_fp32: bool = False
ema_seed_model: Optional[str] = None
+ ema_update_freq: int = 1
@unittest.skipIf(not torch.cuda.is_available(), "test requires a GPU")
|
Use a smaller scroll page size to avoid timeouts
(Looks like a repeat of https://manage.dimagi.com/default.asp?248384) | @@ -336,7 +336,8 @@ def get_export_documents(export_instance, filters):
# We believe we can occasionally hit the 5m limit to process a single scroll window
# with a window size of 1000 (https://manage.dimagi.com/default.asp?248384).
# Thus, smaller window size is intentional
- return query.size(500).scroll()
+ # Anothe... |
fix: remove CONF_OAUTH_LOGIN calls
closes | @@ -150,7 +150,6 @@ async def async_setup(hass, config, discovery_info=None):
].total_seconds(),
CONF_OAUTH: account.get(CONF_OAUTH, {}),
CONF_OTPSECRET: account.get(CONF_OTPSECRET, ""),
- CONF_OAUTH_LOGIN: account.get(CONF_OAUTH_LOGIN, True),
},
)
entry_found = True
@@ -171,7 +170,6 @@ async def async_setup(hass, conf... |
Source: Refactoring pre-defined sources to include `GaborSource`
We now use a baseclass `WaveletSource` that can be arbitrarily subclassed
to provide further source presets. | @@ -5,7 +5,7 @@ from devito.logger import error
import numpy as np
import matplotlib.pyplot as plt
-__all__ = ['PointSource', 'Receiver', 'Shot', 'RickerSource']
+__all__ = ['PointSource', 'Receiver', 'Shot', 'RickerSource', 'GaborSource']
class PointSource(PointData):
@@ -54,12 +54,12 @@ Receiver = PointSource
Shot = ... |
circleci: Store XUnit test results.
Fixes part of | @@ -113,6 +113,9 @@ jobs:
path: ../../../tmp/zulip-test-event-log/
destination: test-reports
+ - store_test_results:
+ path: ./var/xunit-test-results/casper/
+
"bionic-backend-python3.6":
docker:
# This is built from tools/circleci/images/bionic/Dockerfile .
|
Update sc2reader/scripts/sc2json.py
Fixed type - Committed suggestion from PR review | @@ -34,6 +34,11 @@ def main():
args = parser.parse_args()
factory = sc2reader.factories.SC2Factory()
+ try:
+ factory.register_plugin(
+ "Replay", toJSON(encoding=args.encoding, indent=args.indent)
+ ) # legacy Python
+ except TypeError:
factory.register_plugin("Replay", toJSON(indent=args.indent))
replay_json = factor... |
fix: inject direct response for sidecar acme-challenge
This was accidently reverted and so this just replacing the logic from | @@ -892,32 +892,22 @@ class V3Listener:
# If we're on Edge Stack and we don't already have an ACME route, add one.
if self.config.ir.edge_stack_allowed and not found_acme:
- # The target cluster doesn't actually matter -- the auth service grabs the
- # challenge and does the right thing. But we do need a cluster that a... |
[bugfix] use provided edit summary
This solves regression of | @@ -948,7 +948,7 @@ def main(*args):
elif arg.startswith('-addcat:'):
options['addcat'] = arg[8:]
elif arg.startswith('-summary:'):
- options['summary'] = arg[9:]
+ edit_summary = arg[9:]
elif arg.startswith('-automaticsummary'):
edit_summary = True
elif arg.startswith('-manualinput'):
@@ -1156,7 +1156,8 @@ LIMIT 200""... |
tools: Allow optional arguments after file arguments in test_backend.
Fixes
Uses nargs='*' instead of nargs='argparse.REMAINDER'.
nargs='argparse.REMAINDER' gathers remaining terms as arguments
even if it is an option e.g --coverage, while '*' gathers all the
command-line arguments until the next option is encountered. | @@ -234,7 +234,7 @@ if __name__ == "__main__":
default=False,
help=("Run the tests which failed the last time "
"test-backend was run. Implies --nonfatal-errors."))
- parser.add_argument('args', nargs=argparse.REMAINDER)
+ parser.add_argument('args', nargs='*')
options = parser.parse_args()
args = options.args
|
fix RSA Netwitness SA integration
Was missing break in switch. And it cause all the commands run one after another | @@ -1074,48 +1074,63 @@ script:
switch (command) {
case 'fetch-incidents':
results = fetchIncidents(sessionId, args, incidentManagementId);
+ break;
case 'test-module':
results = 'ok';
+ break;
case 'nw-login':
results = sessionId;
+ break;
case 'nw-list-incidents':
var incidents = listIncidents(sessionId, args, incide... |
Converted DigikeyError exceptions to KiCostError ones
They are known errors. | @@ -30,7 +30,7 @@ __company__ = 'Instituto Nacional de Tecnologia Industrial - Argentina'
import pprint
# KiCost definitions.
-from ..global_vars import DEBUG_OVERVIEW, DEBUG_DETAILED, DEBUG_OBSESSIVE, W_NOINFO
+from ..global_vars import DEBUG_OVERVIEW, DEBUG_DETAILED, DEBUG_OBSESSIVE, W_NOINFO, KiCostError, ERR_SCRAPE... |
Cleanup gtk/ProgressBar - remove redundant `rehint()`
remove `rehint()`
remove unused `if/else` from `start()` | @@ -24,9 +24,6 @@ class ProgressBar(Widget):
self._render_disabled()
def start(self):
- if self.interface.max:
- pass # GTK has no 'working' animation
- else:
GObject.timeout_add(60, self._pulse, None)
def stop(self):
@@ -38,10 +35,3 @@ class ProgressBar(Widget):
self.set_value(None)
else:
self._render_disabled()
-
- d... |
fixed bug `residual_before_ln` - second missed the `not`
fixed bug `enable_adapters(adapter_type, True, True)` | @@ -17,6 +17,7 @@ class BertSelfOutputAdaptersMixin:
self.attention_adapters_fusion = nn.ModuleDict(dict())
self.attention_text_lang_adapters = nn.ModuleDict(dict())
self.language_attention_adapters_fusion = nn.ModuleDict(dict())
+ self.language_adapter_attention = nn.ModuleDict(dict())
def add_adapter(self, adapter_na... |
Remove Exception on _default_verify_function failure
This makes it match the verify function documentation. | @@ -123,12 +123,15 @@ class DeviceInterface(object):
#if the user has specified a custom verify function, then call it, else use default based on numpy allclose
if verify:
try:
- return verify(answer, result_host, atol=atol)
+ correct = verify(answer, result_host, atol=atol)
except TypeError:
- return verify(answer, re... |
Move callback calling at very end of teardown
Fixes | @@ -299,9 +299,11 @@ def teardown(close_frame=None):
self.sock.close()
close_status_code, close_reason = self._get_close_args(
close_frame if close_frame else None)
- self._callback(self.on_close, close_status_code, close_reason)
self.sock = None
+ # Finally call the callback AFTER all teardown is complete
+ self._call... |
[ENH] set default for forecaster tag `ignores-exogeneous-X` to `False`
This PR sets the default for the forecaster tag `ignores-exogeneous-X` to `False`.
This is the safer default, or otherwise exogeneous `X` will be inored under the default setting, and this might be accidental and unexpected for an implementer.
See b... | @@ -88,7 +88,7 @@ class BaseForecaster(BaseEstimator):
# default tag values - these typically make the "safest" assumption
_tags = {
"scitype:y": "univariate", # which y are fine? univariate/multivariate/both
- "ignores-exogeneous-X": True, # does estimator ignore the exogeneous X?
+ "ignores-exogeneous-X": False, # do... |
Added inital values for pulse parameters
This was needed such that the martinis pulse does not have any poles or
discontinuities when calculated with the initial values. | @@ -137,9 +137,11 @@ class QWG_FluxLookuptableManager(Instrument):
self.add_parameter('F_kernel_instr',
parameter_class=InstrumentParameter)
- self.add_parameter('F_amp', unit='V', parameter_class=ManualParameter)
+ self.add_parameter('F_amp', unit='V', parameter_class=ManualParameter,
+ initial_value=0)
self.add_param... |
Create `join_role_stats` function in helpers
Add `join_role_stats` function that joins the relevant information (number of members) of the given roles into one group under a pre-specified `name` | from abc import ABCMeta
-from typing import Optional
+from types import List
+from typing import Dict, Optional
+from discord import Guild
from discord.ext.commands import CogMeta
@@ -30,3 +32,11 @@ def has_lines(string: str, count: int) -> bool:
def pad_base64(data: str) -> str:
"""Return base64 `data` with padding ch... |
Update lxd init message to remove auto setup
Fixes | @@ -55,10 +55,7 @@ class CloudView(WidgetWrap):
" $ sudo snap install lxd\n"
" $ sudo usermod -a -G lxd <youruser>\n"
" $ newgrp lxd\n"
- " $ /snap/bin/lxd init --auto\n"
- " $ /snap/bin/lxc network create lxdbr0 "
- "ipv4.address=auto ipv4.nat=true "
- "ipv6.address=none ipv6.nat=false ")
+ " $ /snap/bin/lxd init")
de... |
change isShellBuiltin
change isShellBuiltin to have each builtin as a different token in a set and lookup cmd to be an element of the set instead of a sequence of characters in a string (tested only on Python 3.6.7). Corrected according to comments. | @@ -181,7 +181,7 @@ def which(cmd, **kwargs ):
def isShellBuiltin( cmd ):
"Return True if cmd is a bash builtin."
if isShellBuiltin.builtIns is None:
- isShellBuiltin.builtIns = quietRun( 'bash -c enable' )
+ isShellBuiltin.builtIns = set(quietRun( 'bash -c enable' ).split())
space = cmd.find( ' ' )
if space > 0:
cmd =... |
Fix eigenvalue_band_properties check
Fix eigenvalue_band_properties check for separate_spins (index error) | @@ -721,7 +721,7 @@ class VasprunTest(PymatgenTest):
self.assertAlmostEqual(props[1][1], 1.6225, places=4)
self.assertAlmostEqual(props[2][0], 0.7969, places=4)
self.assertAlmostEqual(props[2][1], 0.3415, places=4)
- self.assertAlmostEqual(props2[0], np.min(props[1]) - np.max(props[1]), places=4)
+ self.assertAlmostEqu... |
tests: delete journal partitions in lvm_setup.yml
Delete these before creating them incase they are left around in a purge
cluster testing scenario. The purge-cluster.yml playbook does not
currently remove partitions used for journals. | command: lvcreate --yes -l 50%FREE -n data-lv2 test_group
failed_when: false
+ # purge-cluster.yml does not properly destroy partitions
+ # used for lvm osd journals, this ensures they are removed
+ # for that testing scenario
+ - name: remove /dev/sdc1 if it exists
+ parted:
+ device: /dev/sdc
+ number: 1
+ state: abs... |
Closed a very small race window in addRows, added a passthrough version
of lru_cache for legacy python. | @@ -2,9 +2,8 @@ from __future__ import absolute_import
import sys
import struct
-from binascii import hexlify, unhexlify
+from binascii import unhexlify
from contextlib import contextmanager
-from functools import lru_cache
import xxhash
@@ -16,6 +15,9 @@ import synapse.lib.threads as s_threads
import lmdb
+if sys.vers... |
[IMPR] make Family.langs property more robust
Don't include closed wikis to family files with wikimedia_sites.py.
code is used as a local variable but assigning to cls.codes
may cause side effects and cls.codes could be be overwritten.
Use a copy of cls.codes instead. | @@ -1568,7 +1568,7 @@ class SubdomainFamily(Family):
@classproperty
def langs(cls):
"""Property listing family languages."""
- codes = cls.codes
+ codes = cls.codes[:]
if hasattr(cls, 'test_codes'):
codes += cls.test_codes
|
[celery] Make celery backend configurable
Also only use eager using testing, even if it is not recommended | @@ -269,7 +269,8 @@ logging.basicConfig(
# set up celery
-CELERY_BROKER_URL = 'amqp://localhost'
+CELERY_BROKER_URL = get_from_env('CELERY_BROKER_URL', 'amqp://localhost')
+if TESTING:
CELERY_TASK_ALWAYS_EAGER = True
#database_url = DATABASES['default']
|
Update docker.md
simple path fix | @@ -47,5 +47,5 @@ curl https://raw.githubusercontent.com/keras-team/autokeras/master/examples/mnis
Run the mnist example :
```
-docker run -it -v "$(pwd)":/app --shm-size 2G haifengjin/autokeras python mnist.py
+docker run -it -v "$(pwd)":/app --shm-size 2G haifengjin/autokeras python /app/mnist.py
```
|
Add logging in Populate_Lexical_Env
TN: | @@ -698,6 +698,10 @@ package body ${ada_lib_name}.Analysis is
if Unit.AST_Root = null then
return;
end if;
+
+ Traces.Trace (Main_Trace, "Populating lexical envs for unit: "
+ & Basename (Unit));
+
Unit.Context.In_Populate_Lexical_Env := True;
declare
Has_Errors : constant Boolean := Populate_Lexical_Env
|
Update README.md
Default pip version was sometimes resulting in segmentation fault when installing requirements. The newest version seems to work well. | @@ -67,7 +67,7 @@ Install dependencies
```bash
sudo apt update
sudo apt -y install swig3.0 python3-dev build-essential cmake ninja-build libboost-random-dev libssl-dev libffi-dev
-sudo pip3 install -U setuptools
+sudo pip3 install -U setuptools pip
```
To get the source and start the node, use the following:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.