-
Notifications
You must be signed in to change notification settings - Fork 1
/
analyze.sh
executable file
·35 lines (31 loc) · 1.46 KB
/
analyze.sh
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
#!/bin/sh
index=$1
sources=$2
data=$3
mkdir -p data
# First extract features
echo "\n# extracting package deps\n"
./extract_package_deps.py $index | tee $data/package_deps.txt
echo "\n# extracting features\n"
./extract_features_from_world.sh $sources | tee $data/features.txt
#echo "\n# extracting deps\n"
#./extract_deps_from_world.sh $sources | tee $data/deps.txt
#echo "\n# extracting deps sources\n"
#./extract_deps_sources_from_world.sh $sources | tee $data/deps_sources.txt
echo "\n# extracting package_names\n"
./extract_package_names_from_world.sh $sources | tee $data/package_names.txt
echo "\n# generating package features\n"
./gen_package_features.sh $data/package_names.txt $data/features.txt | tee $data/package_features.txt
#echo "\n# generating package deps\n"
#./gen_package_deps.sh $data/package_names.txt $data/deps.txt | tee $data/package_deps.txt
echo "\n generating transitive features\n"
./gen_transitive_features.sh $data/package_deps.txt $data/package_features.txt | tee $data/package_transitive_features.txt
echo "\n# ranking deps\n"
./rank_deps.sh $data/package_deps.txt | tee $data/ranked_deps.txt
#echo "\n# finding new sources\n"
#./find_new_sources.sh $data/deps_sources.txt | tee $data/new_sources.txt
echo "\n# analyzing features\n"
./analyze_features.sh $data/features.txt | tee $data/analysis_features.txt
echo "\n# analyzing deps\n"
./analyze_deps.sh $data/ranked_deps.txt $data/package_transitive_features.txt | tee $data/analysis_deps.txt
echo "\n# done\n"