2024-11-25 20:44:33 +01:00
|
|
|
all: build sync export_dataset export_stats merge_images export_statistics export_mentions
|
feat: scaffold drstats project with setuptools build, gitignore, and utro CLI entry point
Initialize the dRStats repository with core project structure: add .gitignore excluding dist and venv directories, create Makefile for pip-based build and editable install, write README.md describing the devrant health monitoring purpose, define pyproject.toml using setuptools build backend, configure setup.cfg with metadata (name drstats, version 0.1.1, MIT license, aiohttp dependency) and console_scripts entry point mapping 'utro' to drstats.statistics:rant_stats, and include generated egg-info metadata files.
2024-11-23 19:56:52 +01:00
|
|
|
|
|
|
|
|
build:
|
2024-11-23 20:18:21 +01:00
|
|
|
pip install build
|
|
|
|
|
python -m build .
|
|
|
|
|
pip install -e .
|
2024-11-23 19:56:52 +01:00
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
|
|
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
sync:
|
2024-11-25 20:15:31 +01:00
|
|
|
./venv/bin/dr.sync
|
2024-11-23 19:56:52 +01:00
|
|
|
|
2024-11-23 20:07:19 +01:00
|
|
|
clean:
|
|
|
|
|
-@rm -r export
|
|
|
|
|
mkdir -p export
|
|
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
sync_excempt:
|
|
|
|
|
@echo "Sync is not executed because it's a lengthy process ending with timeout error."
|
|
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
export_stats:
|
2024-11-23 19:56:52 +01:00
|
|
|
@echo "Make sure you have ran 'make sync' first. Results will be in ./export/"
|
2024-11-23 19:56:52 +01:00
|
|
|
@echo "Exporting statisticts."
|
2024-11-25 20:15:31 +01:00
|
|
|
./venv/bin/dr.stats_all
|
2024-11-23 19:56:52 +01:00
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
export_dataset:
|
2024-11-23 19:56:52 +01:00
|
|
|
@echo "Make sure you have ran 'make sync' first."
|
|
|
|
|
@echo "Exporting dataset to be used for LLM embedding. Result will be ./export/0_dataset.txt"
|
2024-11-25 20:15:31 +01:00
|
|
|
./venv/bin/dr.dataset > export/0_dataset.txt
|
2024-11-23 19:56:52 +01:00
|
|
|
|
2024-11-24 07:09:50 +01:00
|
|
|
export_statistics:
|
|
|
|
|
@echo "Exporting statisticts. Result will be ./export/2_statistics.txt"
|
|
|
|
|
cat export/dataset.txt | grep "Statistics: "
|
|
|
|
|
cat export/dataset.txt | grep "Statistics: " > export/2_statistics.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export_mentions:
|
|
|
|
|
@echo "Exporting mentions. Result will be ./export/3_mentions.txt"
|
|
|
|
|
cat export/dataset.txt | grep "times ment"
|
|
|
|
|
cat export/dataset.txt | grep "times ment" > export/3_mentions.txt
|
|
|
|
|
|
|
|
|
|
|
2024-11-23 19:56:52 +01:00
|
|
|
merge_images:
|
|
|
|
|
@echo "Merging images to one big image. Result will be ./export/1_graphs_compliation.png."
|
2024-11-25 20:15:31 +01:00
|
|
|
./venv/bin/python merge_images.py
|
2024-11-24 07:09:50 +01:00
|
|
|
|
|
|
|
|
|