samples-filter
Samples-filter is a command-line filter
for GitHub repositories that contain samples,
instead of real project or framework or library.
E.g. leeowenowen/rxjava-examples,
streaming-with-flink/examples-java,
redisson/redisson-examples.
Motivation. During the work on CaM project, where we're building datasets with open source Java programs, we discovered the need for filtering repositories that contain not a real code, but rather samples, tutorials or examples. This repository is portable command-line tool that filters those sample repositories.
How to use
First, install it from PyPI like that:
pip install samples-filter
then, execute:
samples-filter filter --repositories=repos.csv --out=filtered.csv
For --repositories you should provide a name of existing CSV dataset
with GitHub repositories, and name for the output file in --out
(it will be created automatically). If you feel missed, try --help and tool
will explain to you what you should do.
Optionally, you can decide which model to use for
filtering via --model. You can pass either transformer (the default one), or
rf.
How to contribute
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the master branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full build:
make install cov check
To set up virtual environment use this set of commands:
python3 -m venv venv
source $(pwd)/venv/bin/activate
You will need Python 3.11+ installed.
Metadata
Release files for samples-filter 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| samples-filter-0.5.1.tar.gz | 7.9 kB | Without provenance | Details for samples-filter-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| samples_filter-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for samples_filter-0.5.1-py3-none-any.whl |
Total release size: 26.0 kB
Release files / samples-filter-0.5.1.tar.gz
| Download URL | samples-filter-0.5.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
647b12ba07f2cd890916d4722591f528ec8e94672f52073a7236d7023211ddf7
|
|
BLAKE2b-256 checksum How to use checksums |
3c2ea4c4e313d2c7534afed024a861a9209b797fcd02bb4021bfcfdaadd1e35e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / samples_filter-0.5.1-py3-none-any.whl
| Download URL | samples_filter-0.5.1-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b14e8f4257c2a63efe96d5c974c5dbda216e20aa526925fbda514d1eb0d98e
|
|
BLAKE2b-256 checksum How to use checksums |
d3240f81fadef407105967f13a5d79f7d8498ddb45c974fbc462f7400fd43d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for samples-filter 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.