I hereby claim:
- I am blu3r4y on github.
- I am blu3r4y (https://keybase.io/blu3r4y) on keybase.
- I have a public key ASAaCd4yddilhaf1QEv9GI40ZdcfMICJMpPkklewor035Ao
To claim this, I am signing this object:
| from functools import lru_cache | |
| from typing import Sequence | |
| class LazySequence(Sequence): | |
| """ | |
| A sequence object that is backed by a function for retrieving elements | |
| """ | |
| @lru_cache(maxsize=None) |
I hereby claim:
To claim this, I am signing this object:
| from circus import get_arbiter | |
| alice = dict( | |
| name="alice", | |
| cmd="python -m flask run --port=81", | |
| env={"FLASK_APP": "flask_alice.py"}, | |
| copy_env=True, | |
| copy_path=True, | |
| ) |
| import numpy as np | |
| def majority_vote(*arrays: np.array, n_classes: int = None) -> np.array: | |
| """ | |
| Given an arbitrary number of integer-based, one-dimensional input vectors | |
| that represent class labels, compute a new vector that will take the majority | |
| label of the input vectors. Ties are broken randomly for each observation. | |
| If you omit the `n_classes` argument, it will be inferred by counting |
| import re, sys | |
| REGEX_ATTACHMENT = {"de": r"\u200E(.*?) \(Datei angehängt\)"} | |
| SUB_ATTACHMENT = r"<attached: \g<1>>" | |
| def convert(file: str, locale="de"): | |
| """ | |
| Convert the locale of attachments to the english one. | |
| The output is written to a file in the same location. |
| # Copyright 2021 | |
| # Dynatrace Research | |
| # SAL Silicon Austria Labs | |
| # LIT Artificial Intelligence Lab | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # Copyright 2021 | |
| # Dynatrace Research | |
| # SAL Silicon Austria Labs | |
| # LIT Artificial Intelligence Lab | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # Copyright 2021 | |
| # Dynatrace Research | |
| # SAL Silicon Austria Labs | |
| # LIT Artificial Intelligence Lab | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| name: setup-poetry | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 |