semvec/pypi-packages huggingface dataset:
hllama 0.0.7
hllama provides some useful utility functions for LLM.
Requires Python: >=3.8
Keywords: LLM, Large Language Model, Verification, Utility

# hllama

<img src="assets/hllama-logo.png" style="display: block; margin-left: auto; margin-right: auto;">

`hllama == Harness LLaMA`. `hllama` is a library which aims to provide a set of utility tools for large language models. 

## Install

```console
$ pip install hllama
```

## Usage

Test if JSON matches target structure

```python
from hllama import json_utils

A = {"key1": str, "key2": {"key3": str, "key4": int, "key5": list}}
B = {"key1": "hello", "key2": {"key3": "world", "key4": 100, "key5": [1, 2, 3]}}

result = json_utils.match_structure(A, B)
assert result is True
```

Test if there is JSON part in a string

```python
raw_string = "..."
result = json_utils.parse_json_snippet(raw_string)
assert isinstance(result, dict)
assert result is not None
```
vs-colabi 1.1.6
Run vs code tunnel inside colab notebook

# vs-colabi



## Getting started

a library allow to use vs code tunnel in google colab 
## Installation

```bash
pip install vs-colabi
```

## Example

```python
from vscolabi import configure

configure()
# configure(clear = True, mount = False  , tab = False ) : 
#   clear : True to clear the colab output 
#   mount : True to mount google drive 
#   tab   : True to open vscode in new tab 

```

Steps  : 
*   a button will be display it --> click .
*   this button once is clicked will show pop frame , paste the code inside input , (code is copy the code to clipboard automaitcly ).
*   after contunue the steps in the pop up , it will display a buttons with text open vscode
correlation-analysis 0.1.0
High order correlation analysis of error models.
Requires Python: >=3.7

# correlation
High order correlation analysis of detector error models

## Installation

```shell
pip install correlation_analysis
```

## Usage

```python
import stim

import correlation

circuit = stim.Circuit.generated(
    code_task='surface_code:rotated_memory_z',
    distance=3,
    rounds=2,
    after_clifford_depolarization=0.01,
    after_reset_flip_probability=0.01,
    before_measure_flip_probability=0.01,
    before_round_data_depolarization=0.01,
)
dets = circuit.compile_detector_sampler().sample(shots=1_000_000)
dem = circuit.detector_error_model(decompose_errors=True)
graph = correlation.TannerGraph(dem)
result = correlation.cal_high_order_correlations(dets, graph.hyperedges, num_workers=16)
prob_from_dem = []
prob_from_correlation = []
for hyperedge, prob in graph.hyperedge_probs.items():
    prob_from_dem.append(prob)
    prob_from_correlation.append(result.get(hyperedge))

print("Probabilities from detector error model:")
print(prob_from_dem)
print("Probabilities from correlation analysis:")
print(prob_from_correlation)
```
hypickle 1.1.5
A script that outputs realtime stats for custom lists of friends you create.
Requires Python: >=3.8
Keywords: hypickle, hypixel, pit, bedwars, friends, stats, api

# hypickle

A script that outputs realtime stats for custom lists of friends you create.

### Installation:

To install, run the following command:

`pip install hypickle`

Besides installing the script, this will also automatically install its dependencies (the libraries `requests`,
`rich`, `mplcursors`, `deepdiff`, and any of their own dependencies).

Then, create a new folder that will be used to store persistent information (such as friends lists you create).
In this folder, make a textfile called 'api-key.txt', and paste your hypixel api key as the first line.
  - To get this api key, make a [hypixel developer account](https://developer.hypixel.net/).
    The first part of [this](https://gist.github.com/camnwalter/c0156c68b1e2a21ec0b084c6f04b63f0#how-to-get-a-new-api-key-after-the-hypixel-api-changes)
    guide is helpful to do this.

After setting this up, you will be able to open a terminal window in this directory and run various commands
with the `hypickle` script (explained below).

### Main features:

- Basic usage is to run with `hypickle *username/uuid*`
  - This will output stats for the specified player, and then output any friends for them.
  - Since the `friends` endpoint of hypixel's API was deprecated, you must manually add any friends for them you want.
    To do this, run `hypickle addfriends *username/uuid*`
- If there's a player you run the program on often, consider making an alias for their uuid:
  - Run `hypickle updateuuidaliases *username*`
  - Then when running `hypickle *username*`, the program will automatically substitute the username for the uuid.
    This is useful when running the program in quick succession for the same player, since the hypixel api forces a cooldown
    when sending in a username instead of a uuid.
- You can also add an optional argument called 'all', if you'd like to output all friends (not just those currently online).
  - E.g., `hypickle *username/uuid* all`

### Developer commands:

Open the root directory of the project in the terminal, and then:
  - `python3 main.py *args*` allows you to test any local changes you've made to the project.
  - `vulture .` will find unused code.
  - `mypy .` will typecheck.
  - `pylint *.py` will review the code for style.
  - `pydeps hypickle` will output a dependency graph of the project's modules.
  - `python my-linter.py` is a basic script I wrote that mainly attempts to find functions which are never/rarely used.
  - `pytest tests.py` runs a few basic automated tests. To run manual tests (output to
    the screen needs to be judged by the tester), run `python tests.py`.
  - `vermin hypickle` deduces the oldest version of python that works to run the project. The expected output is 3.8, corresponding with `requires-python = ">= 3.8"` in `pyproject.toml`.

### Acknowledgements:

The `hypixel.py` and `leveling.py` files were originally from [Snuggle's repo](https://github.com/Snuggle/hypixel.py/). Since then I have made a number of modifications to them.