-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproject2.sh
More file actions
executable file
·49 lines (43 loc) · 1.73 KB
/
project2.sh
File metadata and controls
executable file
·49 lines (43 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
set -e
clear
# Performance: disable pip version check (~4-8s saved)
export PIP_DISABLE_PIP_VERSION_CHECK=1
VENV="venv"
PIP="$VENV/bin/pip"
if [ ! -f "$PIP" ]; then
echo "Creating virtual environment..."
python3 -m venv "$VENV"
fi
$PIP install sumd --upgrade --quiet
$PIP install doql --upgrade --quiet
$PIP install regix --upgrade --quiet
#$PIP install pyqual --upgrade --quiet
$PIP install prefact --upgrade --quiet
$PIP install vallm --upgrade --quiet
$PIP install redup --upgrade --quiet
$PIP install glon --upgrade --quiet
$PIP install goal --upgrade --quiet
$PIP install code2logic --upgrade --quiet
$PIP install code2llm --upgrade --quiet
#$VENV/bin/code2llm ./ -f toon,evolution,code2logic,project-yaml -o ./project --no-chunk
$VENV/bin/code2llm ./ -f all -o ./project --no-chunk
#$VENV/bin/code2llm report --format all # → all views
rm -f project/analysis.json
rm -f project/analysis.yaml
$PIP install code2docs --upgrade --quiet
$VENV/bin/code2docs ./ --readme-only
# Fix 3: Skip redup for non-Python projects (saves ~8s when no .py files)
if find . -name "*.py" -not -path "./.git/*" -not -path "./$VENV/*" -print -quit 2>/dev/null | grep -q .; then
$VENV/bin/redup scan . --format toon --output ./project
else
echo "# redup/duplication | 0 groups | skip (non-python project)" > ./project/duplication.toon.yaml
fi
#$VENV/bin/redup scan . --functions-only -f toon --output ./project
#$VENV/bin/vallm batch ./src --recursive --semantic --model qwen2.5-coder:7b
#$VENV/bin/vallm batch --parallel .
$VENV/bin/vallm batch . --recursive --format toon --output ./project --exclude "CHANGELOG.md" --exclude "*.md"
$VENV/bin/prefact -a -e "examples/**"
$PIP install sumd --upgrade --quiet
$VENV/bin/sumd .
$VENV/bin/sumr .