semvec/pypi-packages huggingface dataset:
Q-snippets-Qing25 0.0.8
My working code snippets
Requires Python: >=3.8

# Q-snippets
https://pypi.org/project/Q-snippets-Qing25/0.0.7/


My working code snippets

```python
.
├── q_snippets
│   ├── adversarial.py
│   ├── data.py
│   ├── __init__.py
│   ├── metrics.py
│   ├── object.py
│   ├── optim.py
│   ├── pretrains.py
│   └── tensor_ops.py
```

### adversarial

- FGM
- PGD

### objects

- RoPE
- CircleLoss
- FocalLoss
- TrainerProcess
- Config
- RNNWrapper
- MultiHeadAttnWrapper

### data

- timeit
- save_json
- load_json
- load_yaml
- BaseData
- MRCSample
- MRCBatch
- load_data
- MRCDataset
- span_decode
- DataProcessor
- gen_uid
- `sequence_padding`
- `dict2list`
- `SegmentUtility`
- `prepare_inputs`
- `prepare_batch_inputs`

### optim

pass

### metrics

pass

### tensor_ops

- safesoftmax
- feature_transform
- select_span_rep
- select_func
- get_max_startend
- label_smoothing
- mean_pooling( seq_vecs, attention_mask)

### Pretrains

- get_model_url     获得本地路径，本地没有则保存到本地后返回
- save_pretrains    查看模型列表中保存到本地的情况
installcmd 0.4.7
Print correct command for installing a package.
Requires Python: >=3.6

# `installcmd`

> Cross platform package install commands.

I use a lot of cross platform software. One annoying thing about it is that every platform has its own package manager with a unique install command. What's even worse is that sometimes the packages themselves are listed under slightly different names in different repositories. Installcmd solves this by detecting your platform and providing the correct command.  

## Installation
Install with: `pip install installcmd`

## Usage

* `installcmd` prints the install command, eg.: `apt-get install`
* `installcmd refresh` prints the package cache update command, eg.: `apt-get update`
* `installcmd noninteractive` prints the non-interactive install command, eg.: `apt-get install --assume-yes`
* `installcmd pkgspec foo.yml` prints the correct name of the package for that platform, based on information in the `foo.yml`.

Installcmd just prints the command, but it's easy to make your shell execute it:
 ```
# Without spec
$ $(installcmd) package-name

# With spec
$ $(installcmd pkgspec docker.yaml)
```

It's not magic. It searches through a built-in list of commands for various platforms (see [contribution guide](doc/contributing.md)). The package name specs have to be provided by you (see [package specs](doc/pkgspec.md)).

The main use of this is writing portable installation scripts, such as in your dotfiles repo or Dockerfiles. You can let installcmd handle the platform detection logic instead of having to reimplement it again and again, which makes the scripts a lot cleaner.