semvec/pypi-packages huggingface dataset:
flake8-loopy 1.1.0
flake8 plugin to check code quality in loops
License: MIT
Keywords: flake8

# flake8_loopy
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) ![GitHub](https://img.shields.io/github/license/bdscharf/flake8_loopy) [![Build Status](https://www.travis-ci.com/bdscharf/flake8_loopy.svg?branch=main)](https://www.travis-ci.com/bdscharf/flake8_loopy) [![codecov](https://codecov.io/gh/bdscharf/flake8_loopy/branch/main/graph/badge.svg?token=NKEANWPS8P)](https://codecov.io/gh/bdscharf/flake8_loopy)

basic code quality checks in loops

```pip install flake8_loopy```

## checks
| error code      | description |
| ----------- | ----------- |
| LPY100      | unused variable created by ```enumerate()```: you probably do not need ```enumerate()```, or you should use ```range(len())``` instead      |
| LPY101      | variable created by for loop shadows a variable in its outer context                                                                        |

## future
- iteration with index where index is only used to get an item (should iterate directly over items)


## notes
please report false positives / errors if found! contributions welcome.
clustercheck 0.1.2
check a cluster of services
License: MIT
Requires Python: >=3.6,<4.0

# clustercheck

Check a cluster before it goes live.

## Usage:

```
clustercheck -c my.config
```


Example of config:

```
dns_map:
    www.blah.com: kube.aws.longthing.com
    www.bar.com: 12.34.56.7

plugin:
    - lib: myplugin.py
      name: MyCheck

checks:
    - url: "wss://dev-site.example.io"
      plugin: MyCheck
    - url: "wss://prod-site.example.io"
      plugin: MyCheck
    - url: "https://prod-site.example.io"
      expect: 
        contains: some-string
      args:
        verify: False
```

This will run 3 checks, 2 of them will re-use the same plugin (MyCheck), and the 3rd, will just hit the url with requests() lib.


Example of plugin:

```
class MyCheck(clustercheck.Plugin):
    def check(self, url, args):
        return True

```

Args are "anything in the args yml".   They are not checked, so plugins must verify these values.


# Check Execution
    - dns map is applied first, it monkey-patches the socket library
    - dns map is not inherited by subprocesses, it is python in-process only
    - each check is executed in order
    - if a plugin is not specified, the url must be valid
    - plugsin can be named as "module.name" or as "/path/to/file.py"
     

# Generic checks
    - urls are checked for status 200, unless expect: status: is changes.
    - websockets are only checked for a ping
    - args, if any, are passed to the `requests.request()` or `websocket.create_connection()` calls directly
    - default "method" for requests is "GET"

# Output format
    - output is recorded internally as (PASS/FAIL, time, message, check_config)
    - default output format is: "{ok} [{time}] {message} {config.url}"
    - passing results are not output unless --verbose is set
mad-fw 0.1.12
Multitask Aggression Detection (MAD)
License: MIT

# MAD: Multi-task Aggression Detection Framework

### A Multi-Task Learning Framework for Aggression Detection using Transformers


Create a Pyhton 3.7 virtual environment
```
virtualenv --python=python3.7 .
source bin/activate
pip install --upgrade pip
pip install -r requirements.txt
```

## Language Modeler
```cd language-modeler```

Change the language modeling parameters in ```example_config.yaml``` file.

Run the language modeler ```python language_modeler.py --config_yaml example_config.yaml```

To be updated!

## Model Training
```cd model-training```

Change the transformer modeling parameters in ```example_config.yaml``` file.

Training and test transformer modeles ```python model_training.py --config_yaml example_config.yaml```

### Requirement Notes: TBU