Hristo Georgiev

Results 11 issues of Hristo Georgiev

This PR proposes more Pythonic comparisons between boolean values, in the cases where we know and expect the corresponding data types to be booleans (e.g., `0 is False` is `False`,...

As per the [`QuantumDevice` interface](https://github.com/crazy4pi314/learn-qc-with-python-and-qsharp/blob/7ffb0119e4f223ff9ab6e2dad0fa381923d2538e/ch03/interface.py#L45), the qubit `reset()` operation already takes place upon exiting from the `using_device` context manager, and this PR proposes removal of a couple of places where...

- Closes: https://github.com/dask/dask-ml/issues/734. - Tests/`black`/`pyflakes` passing: Yes. - Tests added to the following files:** - `tests/test_pca.py` - `tests/test_incremental_pca.py` - tl;dr of design choices made: - `IncrementalPCA` doesn't get affected by...

Updates, associated with this PR: - The original intention was to only pin code checking-related versions to their [dask](https://github.com/dask/dask/blob/main/.pre-commit-config.yaml) and [distributed](https://github.com/dask/distributed/blob/main/.pre-commit-config.yaml) equivalents (as per https://github.com/dask/dask/pull/7256 and https://github.com/dask/distributed/pull/4533). - However, `isort`...

This PR proposes the introduction of a PR template, following the same structure as those in [dask](https://github.com/dask/dask/blob/main/.github/PULL_REQUEST_TEMPLATE.md) and [distributed](https://github.com/dask/distributed/blob/main/.github/PULL_REQUEST_TEMPLATE.md).

## Description tl;dr This PR proposes utilising [`rustyline`](https://github.com/kkawakam/rustyline)'s history loading and saving capabilities to enable preserving Roc REPL history across sessions (e.g., in the event of a REPL crash). This...

## Description I've run into the following odd case of a segmentation fault. ## A minimal reproducible example The original segmentation fault occurred in a wider scope (and much more...

bug
expect

## Description I've been experiencing some odd `Str` to `F64` parsing bugs in the Roc REPL (`old_linux_x86_64`). The same functionality is working as expected if executed as part of a...

An example of a possible abuse can be found here: [d7c34a7](https://github.com/hristog/PythonTrainingExercises/commit/d7c34a7d203c592c4dc7151eb5021ae9b1b7b32d). **Note:** - Quite a bit more elegant bulletproofing could be achieved via employing _metaclasses_ and _descriptors_ (thus, avoiding the...

**tl;dr:** - Introduces a `safer_eval` function to replace `eval` (the former still relies on the latter, as `ast.literal_eval` is not suitable enough). - Applies `isort==4.3.21` to all files that have...