Command-line filter for GitHub repositories that contain "samples", instead of real project or framework or library
Project description
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 rf
(the default one), or
transformer
.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for samples_filter-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0bd6514509b426685a0964443d98bb5b160d896b674994f9b4ea2233081c5f |
|
MD5 | 70acacd7c64fe82b0d5fbe2243a10a48 |
|
BLAKE2b-256 | 6dd8c9f3d60458f2495a13ccdbbba953a39fc4e4052268ef58c9ae17e32b0401 |