@validate_call fails when class method returns an instance of the class

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Let's say you have a simple class that has a method that returns an instance of the same class (see code below). This causes an error in Pydantic on import, even when validate_return is set to False.
This is a case that both python (and mypy) can handle this (due to from __future__ import annotations) and is impacting a planned deployment (since it affects our ability to provide accurate intellisense for users while also allowing us to use pydantic's validation features).
Full error below:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[1], [line 6](vscode-notebook-cell:?execution_count=1&line=6)
      [1](vscode-notebook-cell:?execution_count=1&line=1) from __future__ import annotations
      [3](vscode-notebook-cell:?execution_count=1&line=3) from pydantic import validate_call
----> [6](vscode-notebook-cell:?execution_count=1&line=6) class A:
      [7](vscode-notebook-cell:?execution_count=1&line=7)     def __init__(self, a: int):
      [8](vscode-notebook-cell:?execution_count=1&line=8)         self.a = a

Cell In[1], [line 10](vscode-notebook-cell:?execution_count=1&line=10)
      [7](vscode-notebook-cell:?execution_count=1&line=7) def __init__(self, a: int):
      [8](vscode-notebook-cell:?execution_count=1&line=8)     self.a = a
---> [10](vscode-notebook-cell:?execution_count=1&line=10) @validate_call
     [11](vscode-notebook-cell:?execution_count=1&line=11) def new_a(self, a: int) -> A:
     [12](vscode-notebook-cell:?execution_count=1&line=12)     return A(a)

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:65](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:65), in validate_call(__func, config, validate_return)
     [62](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:62)     return wrapper_function  # type: ignore
     [64](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:64) if __func:
---> [65](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:65)     return validate(__func)
     [66](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:66) else:
     [67](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:67)     return validate

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:54](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:54), in validate_call.<locals>.validate(function)
     [52](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:52)     name = type(function).__name__
     [53](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:53)     raise TypeError(f'The `@{name}` decorator should be applied after `@validate_call` (put `@{name}` on top)')
---> [54](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:54) validate_call_wrapper = _validate_call.ValidateCallWrapper(function, config, validate_return)
     [56](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:56) @functools.wraps(function)
     [57](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:57) def wrapper_function(*args, **kwargs):
     [58](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/validate_call_decorator.py:58)     return validate_call_wrapper(*args, **kwargs)

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:42](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:42), in ValidateCallWrapper.__init__(self, function, config, validate_return)
     [40](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:40) config_wrapper = ConfigWrapper(config)
     [41](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:41) gen_schema = _generate_schema.GenerateSchema(config_wrapper, namespace)
---> [42](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:42) schema = gen_schema.clean_schema(gen_schema.generate_schema(function))
     [43](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:43) core_config = config_wrapper.core_config(self)
     [45](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:45) self.__pydantic_validator__ = create_schema_validator(
     [46](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:46)     schema,
     [47](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:47)     schema_type,
   (...)
     [52](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:52)     config_wrapper.plugin_settings,
     [53](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:53) )

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:499](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:499), in GenerateSchema.generate_schema(self, obj, from_dunder_get_core_schema)
    [496](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:496)         schema = from_property
    [498](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:498) if schema is None:
--> [499](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:499)     schema = self._generate_schema(obj)
    [501](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:501) metadata_js_function = _extract_get_pydantic_json_schema(obj, schema)
    [502](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:502) if metadata_js_function is not None:

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:737](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:737), in GenerateSchema._generate_schema(self, obj)
    [735](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:735) needs_apply_discriminated_union = self._needs_apply_discriminated_union
    [736](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:736) self._needs_apply_discriminated_union = False
--> [737](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:737) schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    [738](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:738) self._has_invalid_schema = self._has_invalid_schema or has_invalid_schema
    [739](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:739) self._needs_apply_discriminated_union = self._needs_apply_discriminated_union or needs_apply_discriminated_union

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:764](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:764), in GenerateSchema._generate_schema_inner(self, obj)
    [761](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:761) if isinstance(obj, PydanticRecursiveRef):
    [762](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:762)     return core_schema.definition_reference_schema(schema_ref=obj.type_ref)
--> [764](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:764) return self.match_type(obj)

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:831](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:831), in GenerateSchema.match_type(self, obj)
    [827](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:827)     return self.generate_schema(
    [828](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:828)         self._get_first_arg_or_any(obj),
    [829](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:829)     )
    [830](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:830) elif isinstance(obj, (FunctionType, LambdaType, MethodType, partial)):
--> [831](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:831)     return self._callable_schema(obj)
    [832](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:832) elif inspect.isclass(obj) and issubclass(obj, Enum):
    [833](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:833)     from ._std_types_schema import get_enum_core_schema

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1530](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1530), in GenerateSchema._callable_schema(self, function)
   [1524](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1524) """Generate schema for a Callable.
   [1525](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1525)
   [1526](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1526) TODO support functional validators once we support them in Config
   [1527](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1527) """
   [1528](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1528) sig = signature(function)
-> [1530](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1530) type_hints = _typing_extra.get_function_type_hints(function)
   [1532](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1532) mode_lookup: dict[_ParameterKind, Literal['positional_only', 'positional_or_keyword', 'keyword_only']] = {
   [1533](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1533)     Parameter.POSITIONAL_ONLY: 'positional_only',
   [1534](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1534)     Parameter.POSITIONAL_OR_KEYWORD: 'positional_or_keyword',
   [1535](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1535)     Parameter.KEYWORD_ONLY: 'keyword_only',
   [1536](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1536) }
   [1538](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:1538) arguments_list: list[core_schema.ArgumentsParameter] = []

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:285](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:285), in get_function_type_hints(function, include_keys, types_namespace)
    [282](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:282)     elif isinstance(value, str):
    [283](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:283)         value = _make_forward_ref(value)
--> [285](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:285)     type_hints[name] = eval_type_backport(value, globalns, types_namespace)
    [287](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:287) return type_hints

File [~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:240](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:240), in eval_type_backport(value, globalns, localns)
    [233](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:233) """Like `typing._eval_type`, but falls back to the `eval_type_backport` package if it's
    [234](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:234) installed to let older Python versions use newer typing features.
    [235](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:235) Specifically, this transforms `X | Y` into `typing.Union[X, Y]`
    [236](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:236) and `list[X]` into `typing.List[X]` etc. (for all the types made generic in PEP 585)
    [237](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:237) if the original syntax is not supported in the current Python version.
    [238](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:238) """
    [239](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:239) try:
--> [240](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:240)     return typing._eval_type(  # type: ignore
    [241](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:241)         value, globalns, localns
    [242](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:242)     )
    [243](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:243) except TypeError as e:
    [244](https://file+.vscode-resource.vscode-cdn.net/Users/justin/Documents/GitHub/vinyl/vinyl/lib/~/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py:244)     if not (isinstance(value, typing.ForwardRef) and is_backport_fixable_error(e)):

File [/opt/homebrew/Cellar/python](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python)@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:381, in _eval_type(t, globalns, localns, recursive_guard)
    [374](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:374) """Evaluate all forward references in the given type t.
    [375](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:375)
    [376](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:376) For use of globalns and localns see the docstring for get_type_hints().
    [377](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:377) recursive_guard is used to prevent infinite recursion with a recursive
    [378](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:378) ForwardRef.
    [379](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:379) """
    [380](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:380) if isinstance(t, ForwardRef):
--> [381](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:381)     return t._evaluate(globalns, localns, recursive_guard)
    [382](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:382) if isinstance(t, (_GenericAlias, GenericAlias, types.UnionType)):
    [383](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:383)     if isinstance(t, GenericAlias):

File [/opt/homebrew/Cellar/python](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python)@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:891, in ForwardRef._evaluate(self, globalns, localns, recursive_guard)
    [886](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:886) if self.__forward_module__ is not None:
    [887](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:887)     globalns = getattr(
    [888](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:888)         sys.modules.get(self.__forward_module__, None), '__dict__', globalns
    [889](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:889)     )
    [890](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:890) type_ = _type_check(
--> [891](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:891)     eval(self.__forward_code__, globalns, localns),
    [892](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:892)     "Forward references must evaluate to types.",
    [893](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:893)     is_argument=self.__forward_is_argument__,
    [894](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:894)     allow_special_forms=self.__forward_is_class__,
    [895](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:895) )
    [896](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:896) self.__forward_value__ = _eval_type(
    [897](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:897)     type_, globalns, localns, recursive_guard | {self.__forward_arg__}
    [898](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:898) )
    [899](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/typing.py:899) self.__forward_evaluated__ = True

File <string>:1

NameError: name 'A' is not defined

Example Code
from __future__ import annotations

from pydantic import validate_call

class A:
    def __init__(self, a: int):
        self.a = a

    @validate_call
    def new_a(self, a: int) -> A:
        return A(a)

Python, Pydantic & OS Version
pydantic version: 2.6.1
        pydantic-core version: 2.16.2
          pydantic-core build: profile=release pgo=true
                 install path: /Users/justin/Library/Caches/pypoetry/virtualenvs/vinyl-cwr2Pa_2-py3.11/lib/python3.11/site-packages/pydantic
               python version: 3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-15<IP_ADDRESS>.5)]
                     platform: macOS-14.3-arm64-arm-64bit
             related packages: typing_extensions-4.9.0 mypy-1.8.0
                       commit: unknown

The problem is that the class A doesn't exist at the time that the decorator is called. This could maybe be resolved if schema generation was deferred until the first time the function was called, but I think that's unlikely to happen. https://github.com/pydantic/pydantic/issues/5992 could also help but that's an old issue.
In the meantime you can decorate the method after defining the class:
from __future__ import annotations

from pydantic import validate_call

class A:
    def __init__(self, a: int):
        self.a = a

    def new_a(self, a: int) -> A:
        return A(a)

A.new_a = validate_call(
    config=dict(arbitrary_types_allowed=True),
    validate_return=True,
)(A.new_a)

print(A(1).new_a(2).a)

Ok perfect thank you!

Thanks for the answer @alexmojaki. Closing this as resolved, given that there's a viable workaround, and this is a pretty specific use case!


cmd: use INSTANCES env var

in spirit of keeping manifest files same across different projects,
it'd be good to pass some config options via environment variables.
with this change, one can pass either flag -instances or INSTANCES
environment variable to get same results

gentle nudge for this, please let me know if there is anything we can do to get this merged.

:+1: from me.


⚠ UdeS website (prod) has degraded performance

In 08c8dde, UdeS website (prod) (https://www.usherbrooke.ca/) experienced degraded performance:

HTTP code: 200
Response time: 5907 ms

Resolved: UdeS website (prod) performance has improved in 4998d7f.


Don't do public accessor workarounds if not needed

Some public accessor hacks are now hidden behind preprocessor macros. This will serve as a reminder to remove these workarounds in the far future when combine doesn't support old ROOT versions anymore.

@guitargeek - I don't think we have any specific checks other than compilation in the CI. Did you try running combine on a tutorial datacard to make sure nothing breaks with this?

Hi Nick, thanks for you comment!
I think the CI actually does more checks other than compilation:
https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/actions/runs/7085197338/job/19280967946?pr=875
If you expand the logs for the "Run tests" step, you can see what it does.
It this enough to validate the changes in this PR, or you want me to do something else?

Ah right, these have been added now - that was the kind of thing I was after - thanks!

Shall we merge this?

Yes, thanks!


added bouncing ball code in html and css

connect with me -
Github : https://github.com/Durgesh4993
LinkedIn : https://www.linkedin.com/in/durgesh4993/

Done


[FEATURE REQUEST] Allow AHK script execution

At first, I thought about create a pie to expand some texts (as a text expander)
Then, thought about modifying or reusing things I copy (as a clipboard manager)
In general I think we can do lots more thing if we can execute AHK script - maybe leave it for intermediate/advanced users so the beginners won't be bothered

At first, I thought about create a pie to expand some texts (as a text expander) Then, thought about modifying or reusing things I copy (as a clipboard manager) In general I think we can do lots more thing if we can execute AHK script - maybe leave it for intermediate/advanced users so the beginners won't be bothered

You can already run AHK scripts: Choose Functions > More Functions... then Run File and choose your AHK script.

@Fjr3  So I do actually have a future plan for this.  However!  There are some nifty AHK features I didn't know about that might be useful to you.
You can pass paramters from AHP to AHK scripts:
MsgBox, %1%, %2%
exitapp

To further demonstrate this, here's a terrible graphic:

Slice 1 and 2 are calling the same script, but showing a different msgbox due to the script parameter typed in the AHP Run File field.


[Bug]: cannot import name 'Response' from 'llama_index.core' (unknown location) when running upgrade script

Bug Description
I am trying to run the upgrade script for the massive refactoring and it fails:
Traceback (most recent call last):
File ".... /.venv/bin/llamaindex-cli", line 5, in
from llama_index.core.command_line.command_line import main
File "... /.venv/lib/python3.11/site-packages/llama_index/core/command_line/command_line.py", line 4, in
from llama_index.core.command_line.rag import RagCLI, default_ragcli_persist_dir
File "... /.venv/lib/python3.11/site-packages/llama_index/core/command_line/rag.py", line 9, in
from llama_index.core import (
ImportError: cannot import name 'Response' from 'llama_index.core' (unknown location)
(.venv)
Version
0.10.1
Steps to Reproduce

upgrade llamaindex to 0.10.1:
run: llamaindex-cli upgrade YOUR_SRC_DIR

Relevant Logs/Tracbacks
No response

The import should look like this:
from llama_index.core import Response
I think there could be some issue in the cli though

Conflicts error with leftover packages ...

I am having a version issue with index-storage-index-store-mongodb which only exists in 0.1.1 but llama-index-storage-docstore-mongodb only exists in 0.1.0 which makes it impossible to migrate to either 0.10.0 or 0.10.1

@benbenz That issue should be fixed now, we had to patch+publish some versions in the pyproject.toml this morning. Let me know if you still run into issues.
I confirmed this install works in google colab: https://colab.research.google.com/drive/1e4pGlv86tdOCIROqlfxtOJv_Twizdme0?usp=sharing

No more conflicts ! Thanks !!
After a fresh clean of my .env, running the CLI and importing the extra packages (v0.1.1) .. everythying worked fine.
I now have to refactor some stuff it seems but at least it installed fine.


Add configurability of VS Code Output channel verbosity

Currently the logging of YANG Language Server is limited e.g., errors and yangPath based external file handling. It is beneficial for troubleshooting to have full LSP protocol logs in addition with option if not globally enabled.

Following settings.json content can be used debug LSP interaction
{
    "yangLanguageServer.trace.server": "verbose"
}

https://code.visualstudio.com/api/language-extensions/language-server-extension-guide#logging-support-for-language-server

@dhuebner could be documented for future


Feature request: Ctrl+Backspace to delete whole words

Ctrl+Backspace is supported in most text entry fields and also other typing trainers such as monkeytype.

We support this behavior in terminal'esque fashion – with ctrl+w keystroke.
That being said, handling delete/backspace in terminals is a known problem, as there is no standard way. More info here and here.
Although, I think most modern terminal emulators map ctrl+backspace keystroke as ctrl+h, so we could add the "delete-previous-word" binding on that. But for example, xterm has this reversed – it sends ctrl+h on backspace press and backspace on ctrl+backspace keystroke.. So in order to allow xterm users to use backspace properly we perform simple delete on ctrl+h -> code.
One way to solve this would be to add a configuration menu and have this [ctrl+h deletes a word] behavior on by default, but allow users to disable it.


SEO: Check if old design system (patternlab) is  removed from google search

Remove this: https://altinn.github.io/DesignSystem/ from google search.
Add a PR to https://github.com/Altinn/DesignSystem
metatag i header som gjør at den ikke indekseres i søkemotorer:
<meta name="robots" content="noindex">

Done: https://github.com/Altinn/altinn-design-system/pull/273

this should now be done as we unpublished patternlab


Support deleting / setting to undefined variables in hooks

hooks.pre('cook', function () { new Promise(resolve => {
  this = undefined // obviously doesn't work
  resolve()
})})

function() {
  return new Promise(resolve => {
    resolve()
  });
});

var obj = { exists: true };

hooks.execPre('cook', obj, function(error) {
  assert.equal(null, error);
  assert.equal(undefined, obj);
});

At the moment you can alter objects passed through kareem hooks, but you're unable to remove them / set them to undefined.  Is there any chance it could be changed so that we could?  One suggestion would be to allow the returned value from the hook to be an array which match the arguments returned.

Our use case is in Mongoose, which allows you to set pre/post hooks on Database lookups (https://github.com/Automattic/mongoose/issues/11426).  The intention is to do authorisation checks within Mongoose hooks in order to ensure users cannot see documents they are not supposed even if app developers forget to do authorisation checks, as they're all done at the ORM level (https://github.com/gchq/Bailo/pull/37).  We can already splice arrays to remove them from find() lookups, but find() return objects which we cannot set to undefined.


Component stopped rendering ngFor in Angular 11.1.x (works in 11.0.x)

🐞 bug report
Affected Package
Unfortunately I'm not sure which exact package is causing the issue. The issue doesn't happen when my project is on<EMAIL_ADDRESS>The issue happens when the project is upgraded to<EMAIL_ADDRESS>Is this a regression?
Yes, the previous version in which this bug was not present was: 11.0.9
Description
ngFor seemingly stopped working and doesn't render anything.
🔬 Minimal Reproduction
The working version with reproduction steps: https://github.com/dezsiszabi/ng11-bug-report-1-working
The non-working version with reproduction steps: https://github.com/dezsiszabi/ng11-bug-report-1-not-working
The only difference between the repositories is the version of angular used.
If you don't have access, please let me know. I think you should though.
🔥 Exception or Error
No exception or error is thrown.
I noticed that if I run ng build angular-tour-of-heroes instead of ng build angular-tour-of-heroes --prod, then it works even with the Angular 11.1.x (non-working) repo above.

Yeah the problem he is that we are differentiating between an AOT and JIT build using skipTemplateCodegen. This is mainly a View Engine option and when true, does not emit .ngfactory.js and .ngstyle.js files. This option is mainly intended to be used by libraries since .ngfactory.js and .ngstyle.js files that cannot be distributed to npm which still use VE to be built.
It think that we shouldn't rely on this option to determine if a build is AOT or JIT, Possibly re-introduce a dedicate options as per the deprecated plugin skipCodeGeneration?


Use Bazel container as container generation base.

This PR always includes few other changes:

Standardize cloudbuild.yaml to use double quatation.
Remove use of --loading_phase_threads=1 flag as
https://github.com/GoogleContainerTools/base-images-docker/pull/311 is
merged.
Remove ubuntu1604 and ubuntu1804 folders as they are migrated to
base-images-docker repo.
https://github.com/GoogleCloudPlatform/base-images-docker

/gcbrun

/gcbrun

Ready for review now.
Merge after l.gcr.io/google/bazel is updated with the one that has docker installed.

Presubmit failed as the one with docker hasn't synced to l.gcr.io/google/bazel yet.

/gcbrun


Maximum number of threads ignored

Hello dear sparkians
I think i found a problem with spark: I configured the server to use a maximum of 100 Threads:
service.threadPool(100, -1, 10000);
My customer got back on me and reported that the server is no longer responding. I picked up the log file and discovered that the server created well over 100 threads. The counter was somewhere between 1300 and 1400. A service restart fixed the issue but i do not think that is the holy grail.
I am using spark-core in Version 2.7.1 and noticed that there is already a version 2.9.0. If the problem is already fixed in the newer version let me know.
Best regards and many thanks for this awesome project!
Michael

I noticed same problem. Is there any workaround?


Update README for live captions demo install

The package numba is needed explicitly to mitigate failing to download and build llvmlite package.  Add README test notes and fix links in table of contents.

Thank you for the review Manjunath.


Memory exhausted issues

So, in the last 3-4 hours i was searching for a memory leak in my app. After a complete code-review of my application code i decided to make a new simple app built on Ratchet WS server and see, if the problem persists. And it did!
The problem was, that whenever i created a WS connection, the connection class instances built in the background of the Ratchet were not destroyed! So on every new connection was created a new connection class with event listeners and by dropping this connection on the client side, this background instance still exists. Because of this, my memory usage was something like this:
(i was running a PHP Ratchet WS server and testing from a JS client in the browser)
New connection
Memory usage: 2.00 MB | Max. memory: 3.00 MB
Connection dropped by client
New connection
Memory usage: 2.05 MB | Max. memory: 3.00 MB
Connection dropped by client
New connection
Memory usage: 2.10 MB | Max. memory: 3.00 MB
Connection dropped by client
New connection
Memory usage: 2.15 MB | Max. memory: 3.00 MB
Connection dropped by client
...
and so on, you get thw idea.
Then, of course, the PHP script throwed a "Max memory limit exceeded" error.
The fix for this is quite simple:
OLD
Ratchet/src/Ratchet/Server/IoServer.php
    public function handleEnd($conn) {
        try {
            $this->app->onClose($conn->decor);
        } catch (\Exception $e) {
            $this->handleError($e, $conn);
        }
        unset($conn->decor);
    }

NEW
Ratchet/src/Ratchet/Server/IoServer.php
    public function handleEnd($conn) {
        try {
            $this->app->onClose($conn->decor);
        } catch (\Exception $e) {
            $this->handleError($e, $conn);
        }

        unset($conn->decor);

        $conn->removeAllListeners();
        gc_collect_cycles();
    }

I think, you can even skip the $conn->removeAllListeners(); line, because the $conn class has no more instances at this time anyway.
So, now it seems to work pretty nice, no memory leak whatsoever.
But there is one thing i don't get, why isn't the garbage collector collecting things automatically when the memory limit is so near?

I've noticed this memory leak as well, i hope this will be merged with master.

@CodiMech25 @rleroi @curtiskelsey - I would like to locate the source of the problem if there is one. I run Ratchet in production and do not see these issues. Is it possible that you are taking a reference to $conn somewhere and not releasing?
There is also no need to remove listeners if there are no references to $conn itself as they will not prevent garbage collection of $conn.

@mbonneau I had no references of the $conn object at all. It was a pure Ratchet use-case. In fact, i tested this on a Ratchet example defined in the docs with no custom modifications. Still same behavior.
Maybe this isn't a Ratchet problem, but a PHP problem. When i will have more time, i will test this on the latest PHP 7.3 and report then.

Hello !
This problem is still present in the new versions.
Do you have any news regarding this topic @mbonneau ?
Thanks !

@moafred The way to deal with this right now is here: https://github.com/ratchetphp/Ratchet/issues/662#issuecomment-454886034
I am still looking to see if I can dereference things so the memory can be cleared immediately but have been too busy to track down what that needs. Will let you know if I figure it out.


Cannot read property 'nativeElement' of undefined

Calling this method, which finds the node, but causes the below exception...
setTimeout(() => {
	let node = this.tree.treeModel.getNodeById(this.report.folderId);

	if (node) {
		node.toggleActivated();
	}
}, 0);

core.umd.js:3468 TypeError: Cannot read property 'nativeElement' of undefined
at TreeNode.scrollIntoView (tree-node.model.js:213)
at TreeNode.focus (tree-node.model.js:219)
at TreeNode.setIsActive (tree-node.model.js:201)
at TreeNode.toggleActivated (tree-node.model.js:209)
at save.component.ts:49
at ZoneDelegate.invokeTask (zone.js:225)
at Object.onInvokeTask (core.umd.js:6233)
at ZoneDelegate.invokeTask (zone.js:224)
at Zone.runTask (zone.js:125)
at ZoneTask.invoke (zone.js:293)

Tihs exception doesnt happen if it is the top level node, only when it is a child node within another...
I have even tried to increase the timeout to 1500, but still the same thing.
I am using 1.2.1

This now seems to be fixed in the latest version... but using toggleActivated doesnt seem to focus on the node when it is a child node??  How do you expand all the nodes so you can see the activated one @500tech-user

You can either call toggleActivated() && ensureVisible(),
or call setActiveAndVisible() which activates the node, expands all parents, and scrolls the view to make sure it's visible.


Improve 0036-valid-sudoku.go

File(s) Modified: go/0036-valid-sudoku.go
Language(s) Used: Go
Submission URL: https://leetcode.com/problems/valid-sudoku/submissions/1421082466/

The previous solution did not match the video explanation.
The new solution has been adjusted to align with the video, but it uses arrays instead of maps. Here’s why:
Since Go does not have a set structure, we would typically use a map, specifically map[int]map[byte]bool. However, if the inner map is not initialized with the make function, attempting to insert values into a nil map will result in a panic. Therefore, in each iteration, we must check whether map[byte]bool is nil and create it if necessary.
This issue can be resolved by using arrays, which is why I decided to adjust the solution to use arrays instead of map[int]map[byte]bool.
The map-based solution would require three additional if statements, as shown in this submission: https://leetcode.com/problems/valid-sudoku/submissions/1421056544/.

@obaibula Good refactoring, Thanks for your contribution 👍


Update scm section for future releases

@sschuberth, please, take a look

Basically looks good to me, but I'd prefer to have the second commit squashed into the first one. Either you squash them locally, force-push, and merge, or you use "Squash and merge" straight from the green merge button's drop-down menu here in the web UI.


Possible crash in bad connection scenario

Crash: http://crashes.to/s/17d597fd68a
Dig further into this issue but it appears there is a crash when an error condition is returned from some of the remote calls. It is quite possible the error object is not being interrogated at the local service level causing a crash when a nil object is added to a collection.
Verify, repair.

Closing issue and migrating to new repo.


Update for Bioconductor 3.1 release.

@mbookman Please see the updated instructions.  The first call to biocLite will prompt the user to update other packages, but its not followed by any other commands so copy/paste is not interrupted.
@siddharthab Since this codelab is compatible with the version of GoogleGenomics in the Bioconductor 3.1 release, I just kept the install instructions simple.  I'm guessing that on https://github.com/googlegenomics/api-client-r you'll mention bioc-devel, etc...

LGTM. I will put instructions for devel package install in the other repo.

Want to verify something.
I have R 3.1.2 installed.  When I run:
biocLite("GoogleGenomics")
I see...
Bioconductor version 3.0 (BiocInstaller 1.16.4), ?biocLite for help
A new version of Bioconductor is available after installing the most recent version of R; see
http://bioconductor.org/install
"A new version" here means Bioconductor 3.1.  So to get Bioconductor 3.1, I need to move to R 3.2.
If someone were to be stuck on R 3.1 (perhaps they don't control their client?) is there somewhere they can go for the Google Genomics install instructions that apply to R 3.1?

@wbrockman, to be safe perform the following tests - which is what I usually do:

Have multiple versions of R that are clean.
Test on the earliest and progress to the newest.
Check that the tests all output the same answers.  If not, then adjust the minimum version requirement to the package that ensures equality among the tests.

~p

Good question.  The answer is "not currently".  If we want to cover that case, its restoring the devtools install instructions.  We could leave them somewhere (e.g. on api-client-r) and link to them for those that cannot upgrade.
But I think the right answer going forward for those situations is to virtualize: http://master.bioconductor.org/help/docker/
Its next on my list to incorporate the Docker instructions.


Uavsar tutorial sections

Split tutorial into sections

Is this replacing #57 ? Should we close that one and focus here?

Great! I'd prefer not to add the data folder here since it's 50+MB. I made a copy of those files in /home/jovyan/shared/uavsar-tutorial-data, but you could also create a separate repository (like snowex/uavsar-tutorial-data) and add them there (then the first step in your tutorial could be cd /tmp; git clone https://github.com/snowex/uavsar-tutorial-data.git

Hey @scottyhq  created that github repo and am cloning the data to tmp now.

this looks great! Happy to merge whenever @ZachKeskinen

from uavsar_pytools.uavsar_tools import create_netrc see https://github.com/snowex-hackweek/website2022/issues/60#issuecomment-1168790387 for an alternative,

adding %config InlineBackend.figure_format='retina' to your imports generally makes the tick labels and titles look better on most modern screens

Hey @scottyhq can we pull this in?


[CHANGE ME] Re-generated to pick up changes from synthtool.

This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/60509ebc-f39f-4fe4-a3a4-011b4fee86f6/targets

[ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/043cc620d6a6111816d9e09f2a97208565fde958
Source-Link: https://github.com/googleapis/synthtool/commit/721339ab60a6eb63b889978b3d9b295dcb3be370

Superseded by #130


Nodegroup messages are too low a priority

I noted this in a tram-replacement experiment, with histogram code from bale suite. Nodegroup messages carrying boatload of data were arriving on the node but not being processed as all PEs were busy cycling through there own locally generated work. (Although the work generation method was broken down using CThYield() every x iterations). @nilsdeppe also seconded this request on slack.
What is happening: scheduler's function for finding next message always processes non-local (i.e. messages from others but meant for my PE) and local (from my pe) messages, so nodeGroup messages, although they can be processed by any PE, get delayed.
The request is to allow nodegroup messages to execute earlier.. somehow.

A nuance of intent: Do we want to think of nodegroup messages as a within-node load balancing mechanism also? If used for that purpose, it should be low priority. "Finish all your local work assigned to you and then pay attention to nodegroup messages" makes sense for this scenario. However we do have task queue for that purpose. And nodegroup messages have another purpose: to quickly  process data arriving from outside the node. (Basically saying: any pe, please execute this, it is urgent so I don't want to wait for any particular PE to become available). The common use case appears to be the latter, so its worth fixing.

I have tested a fix in my copy, which works, but can sometimes slow things down. (I think because checking the nodeq, which is accessed via lock/fence, has a cost.. But also because changing order in which things happen can have unexpected consequences). But mostly it does what we expect. I will work on making a good branch with that fix and push a PR. (The idea is to check nodegroup messages with highest priority once in every K iterations of the scheduler.)

If you want a nodegroup entry method to be executed urgently upon arrival, isn't that what [immediate] is for?

Immediate will execute on commthread, which we don't want in this case. (comm thread will become a bottleneck).


Txpool: implement block builder task

### Tasks
- [ ] https://github.com/0xPolygonMiden/miden-node/issues/66
- [ ] https://github.com/0xPolygonMiden/miden-node/issues/67
- [ ] https://github.com/0xPolygonMiden/miden-node/issues/68
- [ ] https://github.com/0xPolygonMiden/miden-node/issues/69

Closing this as the only thing remaining is handling of nullifiers for which I'll create a separate issue.


Maths / custom css support

Hi there, looking at the code I understand this could be a long and complicated task but I am just wondering the possibility of supporting maths rendering (like katex) or at least custom css rules which I presume would be the main speed bumb.

Hello @laclance !
Well, supporting math formulas is indeed a complicated task. At least if we are talking about rendering them natively. Surprisingly there are a lot of implementations for the web, but none that I can find for Android without usage of WebView (not so far from most markdown editors/viewers). I did find an interesting project for editing LaTeX in Java (TeXlipse), from which we could extract the actual parsing and creation of LaTeX AST, but it's hard as it sounds and goes even further because after parsing the AST must be laid out (aka rendered).
And adding custom CSS rules won't do any good as we do not deal with HTML at all (we do support small subset of HTML, but introducing complete HTML/CSS parser and renderer is IMO not-desired, as let's say it honestly, if you need Web technology, maybe using a Web tool for example WebView will have more positive effect as in, you know, pick the tool for the job).
As always I'm linking the project that Markwon is based on: commonmark-java. Currently it doesn't support LaTeX (as many other things that take over the Web), as it tries to follow the CommonMark specification, which keeps this functionality not covered. But who knows, maybe some day it will.
Still, if you have enough motivation and spare time we can discuss how to try to implement this functionality. I'm leaning to extracting actual rendering to a standalone Drawable, which might be at help for some other projects too (shaping it as an independent library, like MathDrawable, or even LatexDrawable if we are going the hard way). But how much effort it will require I do not have even slightest idea.
Anyway, thanks for the issue, I'm keeping it open so there is no confusion about the functionality covered by this library 🙌

Thank you very much for your detailed response, unfortunate i do not have too much spare time so will probably use a webview implementation for the moment. I am not sure if I agree with you though that an HTML/CSS parser and renderer is not-desired. There is the Html class added Android's API level 1 and some libraries with extended capabilities but they lack the CSS support to display maths. I am far from an expert so maybe I am wrong but the webview component is rather slow and cumbersome due to the range of functionality available and maybe just a little over board if you just want to render some html and css, which is all that markdown and maths is once it has been parsed.

Hey @laclance !
Well,
everyone knows it ;) It's hard to master even for browsers developers. Take a look at specs.
But I have one idea for you. There is a service which allows export of math formulas as an SVG.
For example: x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + a_4}}} would become:
.
Then, we could do this:
@NonNull
public static String processMathFormulas(@NonNull String markdown) {

    // for example we will be using <math></math> as delimiters

    final String open = "<math>";
    final String close = "</math>";

    int index = markdown.indexOf(open);

    if (index < 0) {
        // return untouched
        return markdown;
    }

    int last = 0;
    int end;

    final StringBuilder builder = new StringBuilder();

    while (index > -1) {

        end = markdown.indexOf(close, index);
        if (end < 0) {
            throw new IllegalStateException("Unexpected state, math tag is not closed");
        }

        builder
                .append(markdown.substring(last, index))
                .append("![math](")
                .append(encodeUrl("http://latex.codecogs.com/svg.latex?" + markdown.substring(index + open.length(), end)))
                .append(")");

        last = end + close.length();
        index = markdown.indexOf(open, last);
    }

    return builder.toString();
}

@NonNull
private static String encodeUrl(@NonNull String rawUrl) {

    // https://stackoverflow.com/a/25735202/6745174
    try {
        final URL url = new URL(rawUrl);
        final URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(), url.getPath(), url.getQuery(), url.getRef());
        return uri.toASCIIString();
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}

then
final String markdown = processMathFormulas(rawMarkdown);
Markwon.setMarkdown(textView, markdown);

This solution will require network connection though. And the linked service has free tier, but otherwise is a paid service. But as a quick solution this might work.

Yeah been looking into svg options but might not be worth it considering the development time performance difference between just using a webview and I also require offline use but thank you again for your response, maybe a possibility in the future.

@laclance you can look this repository https://github.com/vsch/flexmark-java

@webserveis Flexmark is a great library and in fact is a fork of Commonmark-java (on which this Markwon library is based). But I do not see how it can help with math support as I cannot find any extension/module in Flexmark that adds support for math formulas. Am I missing something?

Well, if you're right, Looking deeper into the library, I see that they only refer to mathml
https://github.com/vsch/flexmark-java/issues/193
Maybe, combined with that library you could get a svg
https://github.com/mathjax/mathjax

If someone is interested I have added a sample module that shows how to add LaTeX math to your markdown: https://github.com/noties/Markwon/tree/v2.0.0/sample-latex-math. It's still in development branch, but soon it will be released

It's been released and now can be found here: sample-latex-math


Bugfix/cpanfile mojo 101

Requirements

Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion;
Review the contributing guidelines for this repository; remember in particular:

do not modify code without testing for regression
provide simple unit tests to test the changes
the PR must not fail unit testing
if you're adding/updating documentation of an endpoint, make sure you add/update the necessary parameters to the (template) configuration files in the ensembl-rest_private repo

Description
Pin Mojolicious to version 8.43 or earlier in the cpanfile. Mojolicious is no longer compatible with Perl 5.14 after version 8.43. See https://metacpan.org/changes/distribution/Mojolicious
This is a stopgap measure until a decision is made to no longer support Perl 5.14
Use case
Allows this software to run under Perl 5.14. Allows the test suite to run under 5.14.
Benefits
See use case
Possible Drawbacks
This prevents the code from taking advantage of any improvements or bugfixes in Mojolicious post version 8.34
Testing
This change allows Perl 5.14 unit tests to run
Changelog
N/A

Coverage remained the same at 44.438% when pulling 74afd2a1eacc4ce1e42c4a08e407195a7fb1340d on bugfix/cpanfile_mojo_101 into ca01370bbc3ddcf74542ac167d341e0749863986 on release/101.


add OSS LC widgets

/Users/me/Documents/git/public/LC/livecode/extensions

would submoduling them be better?


[Bug]:  Token Selectors show fallback token icons on load

What happened?

actual token icons appear for half a second and then are replaced by the fallback token icon (even when the proper icon exists)

How?

close any windows with the following url https://develop--ambient-finance.netlify.app/trade/market/chain=0x5&tokenA=0x0000000000000000000000000000000000000000&tokenB=0x630f8b9d8f517af8f5b8670e6a167b6c0240d583
open up this url (try incognito) https://develop--ambient-finance.netlify.app/trade/market/chain=0x5&tokenA=0x0000000000000000000000000000000000000000&tokenB=0x630f8b9d8f517af8f5b8670e6a167b6c0240d583

What was Expected?
correct token icons
Relevant log output
No response
What browser(s) are you seeing the problem on?
No response
What wallet are you seeing the problem on?
No response

The app loads token logos with react suspense and the <NoTokenIcon /> element is used as a placeholder until the fetch completes. This helps the DOM load more quickly and content doesn't "jump" as fetch requests complete and the resultant images are patched into the DOM by react's differencing library.
We can change the placeholder icon to something else if desired but the functionality as described is intentional.

is the behaviour on an incognito window

Unable to reproduce


Inference takes 45 minutes on a 2070 RTX GPU

I've run TTS inference several times and it consistently takes about 45 minutes to generate output. This happens for both models, F5-TTS and E2-TTS. Is there a way to check if the app is running on CPU instead of GPU? My setup: Windows 10, NVidia RTX 2070, CUDA 11.8, torch==2.3.0.

If you use inference-cli.py, you can check device https://github.com/SWivid/F5-TTS/blob/1a09b8048202232c30f32be5fbc4f0d5765bbbdd/inference-cli.py#L96

Problem solved. I had  the CPU version of PyTorch installed. Thanks a lot.


Uploaded EPW needs to be reloaded after a while

Describe the bug
I was making some analysis with an uploaded EPW I already had on my PC. I noticed that if I left the Clima tool in background while working on other applications, the link to my EPW got lost and I needed to upload it again when I went back to the Clima tool.
Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Version: 108.0.5359.125

All the best
Marcello

This issue could be caused by the fact that the connection with the Google Cloud Run server times out and the Google Cloud Instance shuts off after a certain time. However, I am not 100% about this and I will need to look into it.


Sign up flow broken on location field

Per https://rollbar.com/lale-help-stg/lale-help-stg/items/72/ we currently cannot have a new person sign up for Lale (which we need for the very first admin user to start the whole thing).

@phil-monroe @kristysnet
Looks like there is a glitch on location. Note that we should not require an address necessarily as user should be able to sign up 'light' with email / password. In order to find an existing circle, we should have them enter a search string in the location field to show existing circles on the map.
When they create a new circle, they must specify a full address as a required set of fields. However, the individual helper is not required to enter their address.
Note also that the sign up is not yet wrapped in a transaction as mistakes in the first form already lock up the user email address. But we are working on correction the unit of work here.

Should be fixed now. Feel free to reopen with steps to reproduce if there is another way this fails.


Add issues link to CurseForge projects

The link sections of your CurseForge projects currently only contain a link to the source code, none directly to the issues:

It should be added for the sake of clarity:

Done!


Patch vulnerabilities found in dependencies

gjson

Bluemonday

No PR to master :notlikethis:

Well it should be master since it's pretty much EVERY SINGLE yag instance out there. Mine is already secured.

Fair enough - Jonas should be the judge of that I guess.
(Also just came to my mind that vulnerabilities should be fixed ASAP)

Fixed these myself


[ECOM-1017] Expands on warning support to cover all cases of a bad config.

@conor-pappas says "Approved". I say "meh".


Something wrong with selected object.

like this. It runs well without a selected object. But it crashed when I selected an object.
Is there any issue with the Object files?
Thanks.

simulation

Yes I'm afraid during refactoring this got broken. Will fix it at some point this month. Thanks for reporting!


Make WalSegment start & endtime string

This is what I am thinking :
walGStats:
  totalFailedCount: <int64>
  lastFailedStats:
  - start: <string>
    end: <string>
    error: <string>
  totalSuccededCount: <int64>
  lastSuccededStats:
  - start: <string>
    end: <string>

# Output: removed, dont see any use case.
# Phase: 'succeded' / 'failed' themselves covering this field.
# Duration: start + end is enough
# Lsn: Is it really needed here? It is under walSegment already.


Change icon and lauchscreen

Update icons for Android and iOS with thinkerview black swan. Also add the icon to the lauchscreen in iOS.

Done in v1.2


Support xcelium in top-level

Currently we only run VCS in top-level. We should make xcelium work in top-level too, which can enable more partners to work on top-level DV.
We probably need similar update as #4222 to meet following requirement at link

A C++14 capable compiler. GCC 5 or Clang 3.5 should meet this requirement.

@weicaiyang I can take a stab at this early next week.
shouldn't be a huge problem
just for simplicity can you list the command to run the top level sim?

@weicaiyang I can take a stab at this early next week.
shouldn't be a huge problem
just for simplicity can you list the command to run the top level sim?

Thanks @rasmus-madsen for taking this.

need to set up RISCV toolchain if you haven't done that. Link

$ cd $REPO_TOP
$ ./util/get-toolchain.py

The command to run top-level is the same as IP,

cd hw/top_earlgrey/dv
path/to/dvsim.py chip_sim_cfg.hjson -i sanity (will be smoke later) -t xcelium

Perhaps you can try to run vcs first to make sure toolchain is right

@weicaiyang
great thanks I will give you some feedback Monday

@weicaiyang Sorry I have not gotten back to you.
I am battling permissions - we don't have SU permissions so I can't install the toolchain at this point in time.
I am doing my best to resolve this and will keep you updated

@weicaiyang Sorry I have not gotten back to you.
I am battling permissions - we don't have SU permissions so I can't install the toolchain at this point in time.
I am doing my best to resolve this and will keep you updated

@rasmus-madsen No worries. This is not urgent. And thanks for the update

@rasmus-madsen not sure if you have some progress on this one?
Added @NigelScales

@weicaiyang I have not looked at this for a long time. honestly forgot all about it.
i will see if I can find some time soon to get this done

Thanks @rasmus-madsen

FYI: This is becoming more important as there are contractors who are looking to use Xcelium.

I was able to fix one compilation error with Xcelium (#9679), but there is now an issue during elaboration.
Specifically, these $assertcontrol lines (first instance & second instance) in the ast_supply_if.sv file are causing issues.

Thoughts?

I think I figured it out. I added -abv_lrmcompliant_asrtctrl to the build_opts in thexcelium.hjson dvsim config file, and the design seems to elaborate now. #9679 should fix this issue (would like to confirm with others though too).
CC @davebwil

@timothytrippel the compile and elobration works for WDC - there are some sim errors though but I think those are being the scope of this issue!

Thanks everyone!

@timothytrippel the compile and elobration works for WDC - there are some sim errors though but I think those are being the scope of this issue!

Glad the compile/elab works now! Regarding the sim issue, I think I am experiencing the same thing, the simulation seems to never be kicked off by dvsim, even them the sim.tcl script issues a run command. I will file a separate issue on this matter.


Update readme

Fix #34

@Chesterwongz can you help to review this, thanks!

Merge conflicts need to be resolved @lingshanng

Codecov Report

Merging #35 (01de15d) into master (f72dd54) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #35   +/-   ##
=========================================
  Coverage     72.41%   72.41%
  Complexity      408      408
=========================================
  Files            71       71
  Lines          1265     1265
  Branches        130      130
=========================================
  Hits            916      916
  Misses          313      313
  Partials         36       36

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f72dd54...01de15d. Read the comment docs.

@Chesterwongz  can check if ok


♻ Moving cached objects to a cache object

For example
# current
Client.guilds
# With cache
Client.cache.guilds

Hikari and Serenity do this. I think it's a much better decision over all since I think it'll simplify storing voice states once we get to that.

I currently am working on this

Instead of just a dictionary, I'm using a custom object which wraps around a deque mainly so I can have a max length and automatically remove the oldest item.

🚀 🚀 🚀

Closed due to depreciation, thank you for your effort ♥


Example for calling methods with a block as a param?

I'm working on a project that interops with Objective C and got stuck on figuring out how to pass a block [0] as a param to a method. As the comment in cocoa-rs mentions, I am "unsure how to bind to blocks" [1]. I think the next step is looking at how PyObjC implements this and finding a solution for rust. I got as far as reading through the Objective C docs to realize it is an object, but unclear how it is constructed, or invoked. Any ideas or things I should read to try and implement this?
[0] https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html
[1] https://github.com/servo/cocoa-rs/blob/master/src/appkit.rs#L2265

Sorry I just found the rust-blocks crate. Closing!

Hey @alexkehayias, yep the block crate should help here :) If you want an example, you can see how I used it to create and pass a block to -[NSData initWithBytesNoCopy:length:deallocator:] in the objc-foundation crate: https://github.com/SSheldon/rust-objc-foundation/blob/0.1.1/src/data.rs#L42-L47


ETL mermaid diagram is missing link text

Description

The ETL documentation page is missing a link: https://docs.openverse.org/meta/media_properties/etls.html
Clicking on the box does jump to the appropriate session, but we should figure out why the text isn't rendering.
Screenshots

The text is rendering correctly for me.

Interesting!! It seems to be only rendering incorrectly for me in Firefox (including in-private browsing) 🤔 I'll have to look into this!

Here's what I'm seeing on Firefox:

The HTML looks different between that and Chrome too.
Chrome
<g id="flowchart-ESF-15" class="node default ETL clickable">
    <rect height="78" width="230" y="-39" x="-115" ry="5" data-et="node" data-id="abc" rx="5" style="fill:#fa7def !important" class="basic label-container"></rect>
    <g transform="translate(-100, -24)" style="" class="label">
        <rect></rect>
        <foreignObject height="48" width="200">

Index creation & deleted media filtering

        </foreignObject>
    </g>
</g>

Firefox
<g id="flowchart-ESF-15" class="node default ETL clickable">
    <rect height="30" width="30" y="-15" x="-15" ry="5" data-et="node" data-id="abc" rx="5" style="fill:#fa7def !important" class="basic label-container"></rect>
    <g transform="translate(0, 0)" style="" class="label">
        <rect></rect>
        <foreignObject height="0" width="0">

Index creation & deleted media filtering

        </foreignObject>
    </g>
</g>

I was also able to reproduce the bug on Firefox, but only on the docs site. The same diagram, copied into Mermaid's live editor, renders correctly on Firefox.

I wonder if it's part of our CSS or perhaps the way Sphinx is rendering things?

Unfortunately I think this either has to do with the Mermaid extension for Sphinx or some other aspect upstream 😞 - I'll close this for now.


implement deletion vector handling in index scan

closes #916
Implement deletion vector handling in PQIndex, where all vector index are stored.
TODO:

[ ] add tests
[ ] add TODO comments in places we could have potential performance gains

TL;DR:

Seems to have very little latency impact
We should also test query throughput than just latency.

after picking in #960 the difference of index scan performance pre/post this PR is negligible. Any perf impact introduced is smaller in magnitude than noise.
The impact maybe become more pronunciated in a environment where IO latency is high, say, EC2 instance with EBS, which is a remote disk.
Since this change introduces more IO, I'd hypothesis that there could be a hit to the query throughput

Seems to have very little latency impact

is this for scanning or the ANN search?

is this for scanning or the ANN search?
ann search. The bench mark uses nearest.


task: allow checkpoint on pause state

task.Checkpoint should check status of container before handle
checkpoint. If the container has been paused, task.Checkpoint should
handle checkpoint and leave it paused.
Signed-off-by: Wei Fu<EMAIL_ADDRESS>Signed-off-by: Baijia<EMAIL_ADDRESS>

2021-03-24T06:18:00.6511161Z     convert_test.go:50: failed to copy: stream error: stream ID 11; HTTP_1_1_REQUIRED

fail case in windows-2019

Reasonable to check status before pause, LGTM


Send state diff in binary

As mentioned in issue #10

The encoding/decoding works good with more than one player, but with diffOnly set to true, I get an error: "Cannot read property 0 of undefined at applyOperation" (and I have compression off). I have a feeling it has something to do with the players array (because something like: players/0/lastInputSeq becomes a path for a patch). Have you ever experienced this?


Adds events and webshop payment redirects

Just a draft for now, we haven't fully worked out what the URLs will be like, or what information we need to send along.

Merging this branch into a different one to have the stripe-stuff gathered


Minimal  example

Is there some kind of "minimal example" using an  element?

@adelriosantiago only example that I know is this https://github.com/widmogrod/notepad-app which for capturing changes and rendering collaborative cursor use https://github.com/quilljs/quill
For minimal <input> you should be wary,  If you consider witting it by yourself you would need to implement

input changes capturing (diffs)
multiple collaborative cursors

Maybe quill, can work on input?
That would simplify this.


Error while running R arcbinding script

Hi there,
I am now having the same error message  in calling rarcproxy as in https://github.com/R-ArcGIS/r-bridge-install/issues/3,
I was following the instructioins in the course
"_Part 1 of a two-part webinar series on integrating the statistical programming language R with Esri's ArcGIS for Desktop.
Cameron Plouffe of the Esri Canada Education and Research group covers several basic R programming concepts and manipulating data frames using Hadley Wickham's "dplyr" package, and then demonstrates how you can use the new R-ArcGIS bridge to interface directly to ArcGIS geodatabases within R.
Slide deck:http://slides.com/camplouffe/integrating-r-with-arcgis
Webinar materials: https://github.com/cplouffe/r-arcgis-webinar
Integrating R with ArcGIS (Part 2): https://www.youtube.com/watch?v=TNnCgQ-jG2I
Categoría
    Gente y blogs
Licencia
    Licencia de YouTube estándar_ "

When going through the Part 1 video of the course, everything seemed to go ok. It is when I tried to add the R script as a tool in arctoolbox (Part 2 of the course after performing the ANOVA analysis) that I had the message:
Executing: Script toronto_crime Drug_Arrests Population 4 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script2 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script3
Start Time: Mon Jul 18 10:34:08 2016
Running script Script...
Error in .Call("arc_error", msg, PACKAGE = "rarcproxy") :
"arc_error" not available for .Call() for package "rarcproxy"
Completed script Script...
Succeeded at Mon Jul 18 10:34:09 2016 (Elapsed Time: 1,07 seconds)
I tried running ArcMAP as Administrator but to no avail...

running the script RVversion, I get this:
Executing: RVersion
Start Time: Mon Jul 18 12:31:47 2016
Running script RVersion...
R.exe --version
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Completed script RVersion...
Succeeded at Mon Jul 18 12:31:48 2016 (Elapsed Time: 1,26 seconds)

Hello @josesevilla,
We just released a new version of the library, v121. Could you see if installing this resolves your issue?
Thanks, Shaun

Hello @josesevilla, it's been sometime since you filed this issue, and we've released a number of new versions in the interim. If you're still having problems with the current release, let us know and we can take a look.


prism sudennly stopped working

I have been using prism on my website for several years. Suddenly I found that it is failing to highlight syntax from today morning. I was using a version 1.15 and I upgraded it wth 1.22; still it is not working. I found one strange thing; when I pasted the js code within script tag, I found that the closing script tag is grey as if there is an error in the script inside. Anybody else facing the same issue? How to fix it?

So, now the syntax highlighting is coming properly but no line numbering.

...when I pasted the js code within script tag, I found that the closing script tag is grey as if there is an error in the script inside.

Could you please show us the JS code, the tags, and the error message?
How do you include Prism?

@rtwk As @edukisto said, we need a way to reproduce your issue or else there nothing we can do.

I included css code within a style tag. JS file is invoked in a script tag now, instead of including that inline. now the syntax highlighting is coming properly but no line numbering and copy option. There is also a space on the left hand side.

@rtwk I'm sorry but this is not enough to reproduce your issue.
Could you please provide a working example of your issue in action? Anything that I can run on my machine is fine (e.g. JSFiddle, or a small example project attached as a .zip file).

It is seems it is working now. I am attaching a zip file for your reference. Thank you for your support.
prism_test.zip

There is one issue with your file: the spaces between the pre and code tags.
Replacing

def find_longest_word(words_list):
    ...

with

def find_longest_word(words_list):
    ...

will fix the issue with Coy. Some plugins like Line numbers and Toolbar also have have problems with these spaces, so please make sure to remove them all.
Apart from the spaces, everything seems to be alright. I'm closing this issue now.


[BUG] New engine doesn't support duplicated identifiers in the SELECT clause

What is the bug?
New engine doesn't support duplicated identifiers in the SELECT clause. This causes a legacy IT to fail when it runs on the new engine. https://github.com/opensearch-project/sql/blob/main/integ-test/src/test/java/org/opensearch/sql/legacy/QueryIT.java#:~:text=selectAllWithFieldReturnsAll
How can one reproduce the bug?
Steps to reproduce the behavior:

Query SELECT *, int0 from calcs
See error

  "error": {
    "reason": "Invalid SQL query",
    "details": "Multiple entries with same key: int0=1 and int0=1",
    "type": "IllegalArgumentException"
  },
  "status": 400
}

What is the expected behavior?
The output should be similar to Legacy where all columns are included in the result
What is your host/environment?

OpenSearch version 2.x

A duplicate of https://github.com/opensearch-project/sql/issues/785?

A duplicate of #785?

Yes, closing this issue. Thanks!


enhance the resource owner object

Fixes #41.

@heddn can you please rebase your branch on last master. thank you

rebased


Install codewind 0.11.0 for Kabanero 0.9.0

Just waiting for 0.11.0 to become available, and for someone (@johnmcollier ?) to build the image that we pull in.

@johnmcollier -  Any idea at what date would the build image become available?

@marikaj123 The devfile registry image can be ready by tomorrow


PdfDocEncoding of 0xAD

0xAD should not decode to U+00AD as QPDF currently does for PdfDocEncoding; it should also be undefined or I suppose U+FFFD. Surprisingly Table D.2 in the reference manual has this with no explanation.
0x7F, 0x9F and 0xAD are all defined to have no Unicode equivalent.

Good catch. Searching for Undefined in D.3 of the latest ISO spec (which I purchased as a gift for myself recently), it seems that 0xAD is the only one I still missed. In the notes for D.2 (Latin character set and encodings):

The hyphen (U+002D) character is also encoded as 255 (octal) in WinAnsiEncoding. Windows
Code Page 1252 associates this character code with the soft hyphen (U+00AD) character. If the
PDF producer intends to map this character code to the "softhyphen" character from the Adobe
Glyph List, this may be specified using a Differences array in the encoding dictionary as shown
in the example below.

I'll fix this for 10.6, which I release as soon as this gets through CI.


Update-BasicSQLDataSourceCredentials: handle multiple SQL sources

For which extension would you like to add a feature request?
Update-BasicSQLDataSourceCredentials
Is your feature request related to a problem? Please describe.
In the moment, the Power BI action task "Update SQL credentials" has no option for specifying which SQL source credentials should be updated. If the dataset has two or more datasources attached there will be multiple "Data source credentials" to update.
Describe the solution you'd like
The "Update SQL credentials" should have an option for specifying which SQL data source should have updated the credentials.

I too would like to have this feature enabled.

This would be a great thing to have


ENH:

Is your feature request related to a problem? Please describe.
In scipy.stats.chisquare, we are given the option to pass in a ddof. However, I see that the function internally calculates the degrees of freedom as it relates to generating the test statistic. However, when we want to generate the critical value, we must calculate the degrees of freedom ourselves.
Describe the solution you'd like.
It would be nice to synchronize these two functions to make the degrees of freedom a bit more manageable. Maybe have an option to perform the comparison between the two in order to return a boolean would be nice.
Describe alternatives you've considered.
Maybe have the internally calculate chisquare degrees of freedom as a returned value, so that it could be fed directly into the critical value calculation.
Additional context (e.g. screenshots, GIFs)
N/A

I will note now that this may be redundant since the p-value is returned, which can be compared to whatever confidence level you have, which leaves the degrees of freedom as an intrinsic variable.

It would be nice to synchronize these two functions to make the degrees of freedom a bit more manageable. Maybe have an option to perform the comparison between the two in order to return a boolean would be nice.

Only one function, scipy.stats.chisquare, is mentioned explicitly. What is the other function? Do you mean the sf method of the chi2 distribution?

Maybe have the internally calculate chisquare degrees of freedom as a returned value, so that it could be fed directly into the critical value calculation.

We could return the number of degrees of freedom, and if you still want to see this, please email the mailing list because it would require changing the public API. We do this for some other statistical tests, e.g. ttest_1samp returns df. However, the calculation for chisquare is trivial: $n - 1 - \delta$, where $n$ is the number of categories (e.g. len(f_exp) if f_exp is 1D and not masked) and $\delta$ is ddof, which is provided by the user. So personally, I don't feel that it's missing if we're trying to strike a balance between API complexity and meeting all possible needs.

I will note now that this may be redundant since the p-value is returned, which can be compared to whatever confidence level you have,

Yes. We don't typically provide special support for computing critical values of a statistic because the p-value is typically sufficient to assess the significance of a test, and it does not require the user to provide their threshold for significance.

Correct, I was referring to the sf chi2 function. I believe that this was just a problem unique to my scenario where I was doing chi2 testing after normalizing histogram bins [0,1], so it suddenly became non-trivial to know what exactly happened to the degrees of freedom. For my particular case, I have found a satisfactory solution.

If anyone runs into the same problem, either use the p_value directly to compare against your alpha value or in a scenario where you really want to directly compare the test statistic from chisquare and the critical value from the chi2.ppf, then make sure that you use the relative counts for each class rather than trying to normalize [0,1]. This will require you to make sure that your observed and expected counts are equal, unless your dataset is massive. From there, you have to manually calculate the degrees of freedom as @mdhaber described above with n-1-ddof.


OTP logic added

Fixes #10
Otp based registration is added
Please find attachment for the reference
https://github.com/user-attachments/assets/fef25a5b-6eac-4156-a429-813e0269f517
@ChandelAnish please review this and if you find any issue,kindly revert back to me

-->you need to change the package.json file too -->do the similar changes in /auth/signup/index.html too do these changes and I'll merge

these changes are still not implemented

package.json is changed !!

also in auth/signup/index.js do you want frontend onnly or with this backend code?

doesn't show error message for already exixting user

i will have a look at it

also in auth/signup/index.js do you want frontend onnly or with this backend code?

yeah only frontend

@ChandelAnish can you please merge it as of now I will create another PR for the frontend part.


Update README.md

Special notes for your reviewer:
Readme fixes as reported by helm lint (image changed to repository)

/ok-to-test
/assign
/lgtm


code style suggestion

I am tempted to have some suggestions on code style in the repo.
A very easy way to do this would be to use the miss_hit package that can format code automatically to a certain extend and flag things that it cannot fix (like using a certain type of case for the functions, classes). Pretty much like a black or pep8 for matlab.
It can also help enforcing a certain level of code quality (flags functions that are too complex, with too many nested blocks...)
I am using it on several repos and added as part of the CI to ensure consistency.
It is quite tweakable so we could decide on what features to implement.
how do people feel about this?
@gllmflndn @robertoostenveld @apjanke @tanguyduval

Note:

if we decided to enforce a consistent way to name functions (I guess snake_case would win) we might have to rename some functions (example: jsonencode) and thus possibly have some backward compatibility issues (well we don't have a release but I suspect we could create one before doing that).

I didn't know about miss_hit, looks great! Displaying a report for each commit would probably be useful - could you share a link to an example from one of your repos where you use it?
(not sure I would rename jsonencode given it's the MATLAB function name and it is also now available in Octave :tada:).

We have started using it on a couple of repos in my lab:

https://github.com/cpp-lln-lab/CPP_BIDS
https://github.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline

What do you mean by a report for each commit? I am not sure I follow.
You mean by using some git hook or using pre-commit to run the linter  on every commit?

(not sure I would rename jsonencode given it's the MATLAB function name and it is also now available in Octave tada).

Woohoo !!!

Will start a PR to work on this as this should not affect functionality.


Different variable with same name mistakenly highlighted

Environment data

Language Server version: 2022.11.30 (pyright 04a10583)
OS and version: Windows 11 22000.1281 WSL Ubuntu 20.04
Python version (& distribution if applicable, e.g. Anaconda): 3.10.6 (pyenv)

Code Snippet
import argparse

class Report(object):
    report = "foo"

    def write(self, report):
        print(report)

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("report")
    args = parser.parse_args()
    # report
    report = Report()
    report.write(args.report)
    print(report.report)

Repro Steps

Click the variable report in report = MyReport() and see only references of that variable get highlighted
Click the property report in args.report and see all tokens with name report get hightlighted

Expected behavior
When the property report in args.report is clicked, only that token gets highlighted
Actual behavior

This is because args.report is dynamic. We can't determine if it's a symbol, so it does a text search instead.
You can verify this by hovering over args.report. If it says unbound, or any, this is the designed behavior. Anything that we don't know what the type is, we do a text search instead.


test review analyzer, refactor exports

Codecov Report

Merging #20 into master will increase coverage by 1.39%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   87.08%   88.47%   +1.39%
==========================================
  Files           6        9       +3
  Lines         209      269      +60
==========================================
+ Hits          182      238      +56
- Misses         27       31       +4

Impacted Files
Coverage Δ

lib/reviews.js
94.44% <100%> (ø)

lib/collaborators.js
78.43% <100%> (+0.43%)
:arrow_up:

lib/comp.js
75% <0%> (ø)

lib/review_state.js
100% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b300fa...f375478. Read the comment docs.


Created branch to add welcome page

This branch is created to add a welcome page to my web application
Things Added:
Markup (HTML)
Bootstrap
gitignore (.gitignore)
Linters

In this branch we are working on our first Bootstrap project. We practiced and used the following elements:

navbar and nav
scrollspy
cards
buttons
badges
modals
forms components
grid system

👍


[FR] Multiple redundant detectors

I’m actually using Frigate (on Coral USB) + Deepstack (on CPU) + HA to get mobile notifications with snapshot&video of detected people on my cameras. I combine Frigate with Deepstack because TFlite models raise too many false positives. Coral is great to keep CPU load negligible but is very limited on detector capability/tuning: to use the CPU just to confirm the coral detections is fine to keep low CPU usage. The idea to combine (as a pipe) multiple detectors makes false positives disappear for me.
At some point you speak of “multiple detectors” on the future of Viseron: would be possible to run multiple detectors on the same event/image to confirm its goodness?

I'm interested in learning more about how you use the models in this way - can you give some more detail about how you go about doing this? I'm a newb at TF but I catch on fast.

I totally missed replying to this, sorry about that.
This should be quite easy to implement, i will get to it as soon as i am done with zones in 1.4.0

I'm interested in learning more about how you use the models in this way - can you give some more detail about how you go about doing this? I'm a newb at TF but I catch on fast.

I use HA to manage most of the automatism: when Frigate signals an event (new event-based mqtt system in v0.6.0-rc1) I get a snapshot from frigate and send it to Deepstack. If Deepstack confirm a person detection I send a notification on the mobile phone with picture and video links (Frigate saves video too). It's not a clean solution but at least it works for me. I hope Viseron could natively  support a better and direct solution.

Is Deepstack integration a deal-breaker for you? Or would you be satisfied with EdgeTPU > Darknet.
In my experience Darknet is much more accurate than EdgeTPU and is state-of-the-art

Is Deepstack integration a deal-breaker for you? Or would you be satisfied with EdgeTPU > Darknet.
In my experience Darknet is much more accurate than EdgeTPU and is state-of-the-art

I guess that to cut false positives it would be enough to use Darknet (never tested it!) on CPU (I just got Intel GPU of an i3). I don't care to use Deepstack: I used it just because it was my first attempt before Frigate&Coral. A fully internal management of the double-check by Viseron would be great for simplicity. The on-second-check activation of Darknet on CPU, I guess, would be negligible: the most work load would be endorsed by Coral EdgeTPU.

Great, then i should be able to deliver on this! Hopefully in the coming weekend, atleast as a beta for you to try out.
A bonus of using OpenCVs implementation of Darknet is that OpenCV has support for OpenCL, which means the object detection will run on your integrated GPU.

I'm testing the new Frigate heuristic against false positive and, working on multiple measuring along the "detection event", it is very effective to sieve false positives.


86b1tvmtu

86b1tvmtu: i have created reset password UI design

i made the changes, please review code

@s92068606 fix merge conflicts


⚠ Bofrost.fr has degraded performance

In 1065ea2, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1292 ms

Resolved: Bofrost.fr performance has improved in 003e55e.


checkstyle: Update license to "GPL-2.0-or-later" for the script

Use the original authorship licence of the checkstyle.py script file. It was
erroneously set to the default of "BSD-2-Clause" for this repository.
Signed-off-by: Naushir Patuck<EMAIL_ADDRESS>

@davidplowman and @kbingham
Here is a fix-up to the checkstyle.py license.

I don't know where this file originated, but do we need to include anyone else's copyright here?

I don't know where this file originated, but do we need to include anyone else's copyright here?

No, Laurent is the original author of this.

I think the only thing missing is the original file's license.

OK, well I'll push the big green button in an hour or so if no one has any further objections!


[0.9.3-HEAD] Duplicates in query results after restarting and updating a point

Running head (using brew install influxdb --HEAD) on osx 10.10.2
At revision 4098de881b
Steps to reproduce
create database testcase

Insert value:

curl -i -XPOST 'http://localhost:8086/write?db=testcase&precision=s' --data-binary 'temperature value=100<PHONE_NUMBER>'

HTTP/1.1 204 No Content
Request-Id: 7c813dd5-3bd8-11e5-8014-000000000000
X-Influxdb-Version: 0.9.3-HEAD
Date: Thu, 06 Aug 2015 01:14:29 GMT

Query results are correct

Restart InfluxDB

Update value

$ curl -i -XPOST 'http://localhost:8086/write?db=testcase&precision=s' --data-binary 'temperature value=200<PHONE_NUMBER>'

HTTP/1.1 204 No Content
Request-Id: d42ecc4b-3bd8-11e5-8018-000000000000
X-Influxdb-Version: 0.9.3-HEAD
Date: Thu, 06 Aug 2015 01:16:56 GMT

Both old and new values are returned from query

Restart InfluxDB again

Query results are correct again

@otoolep @benbjohnson I thought this was patched with Ben's latest WAL changes?

I too thought all duplicate points issues had been addressed.

Fixed with https://github.com/influxdb/influxdb/pull/3626.