X-zcer / PIT-with-RTS

0 stars 0 forks source link

(六)得到版本数最多的50个projects #6

Open X-zcer opened 6 years ago

X-zcer commented 6 years ago

1、由(五)中第4步注释可知,(五)中第2步已经得到每个project的历史版本号,并保存在txt文件中,在这些txt文件中使用命令 wc -l *.txt 在命令行窗口得到每一个文件的行数,对应着每个project的所有版本数

2、使用表格工具(例如excel、libreoffice calc)得到版本数最多的50个projects,存储在文件choose projects.txt中,如下所示: chooseprojects.txt

3、使用如下脚本: `#! /bin/bash inputname=$1 outputname=$2

echo > $outputname

while read line do echo $line echo ${line#*_} >> $outputname done < $inputname`

执行得到文件chooseprojects_new.txt如下所示: chooseprojects_new.txt

继续使用如下脚本: `#! /bin/bash inputname=$1 outputname=$2

echo > $outputname

while read line do echo $line echo ${line%_log*} >> $outputname done < $inputname`

执行得到chooseprojects_new_new.txt如下所示: chooseprojects_new_new.txt

4、使用得到的projects,依次执行mvn test、pitest、pitest after ekstazi、pitest after starts脚本命令

X-zcer commented 6 years ago
编号 版本数 project名称
1 3572 AuthMeReloaded
2 3275 CommandHelper
3 3247 fb-contrib
4 2797 fess
5 1858 fast-classpath-scanner
6 1725 Bukkit-JavaDoc
7 1718 docker-java
8 1675 asterisk-java
9 1636 artifactory-plugin
10 1568 extdirectspring
11 1494 CFLint
12 1416 gerrit-trigger-plugin
13 1294 datanucleus-rdbms
14 1272 braintree_java
15 1213 equalsverifier
16 1204 BKCommonLib
17 1064 CoCoViLa
18 1060 flex-poker
19 1009 dune2themaker4j
20 1006 delivery-pipeline-plugin
21 883 depgraph-maven-plugin
22 879 grapht
23 814 biweekly
24 792 gitlab4j-api
25 774 data-algorithms-book
26 726 abra
27 712 BlossomsPokemonGoManager
28 705 datasource-proxy
29 701 addon-administration
30 672 getdown
31 630 gerrit-events
32 622 ChestShop-3
33 614 branch-api-plugin
34 596 fscrawler
35 593 github-plugin
36 583 ci-sauce
37 569 config-file-provider-plugin
38 557 contentful.java
39 538 gerrit-rest-java-client
40 481 copyartifact-plugin
41 436 gauge-java
42 432 datanucleus-api-jdo
43 425 grammarviz2_src
44 394 fat32-lib
45 366 graph-maven-plugin
46 361 fb-botmill
47 355 exec-maven-plugin
48 351 embedded-jmxtrans
49 349 aspectj-maven-plugin
50 347 geopackage-core-java