SVN: toys/cvsstats/web/data: full.xml top-bottom.xml
pawelz
pawelz at pld-linux.org
Mon Apr 12 23:22:39 CEST 2010
Author: pawelz
Date: Mon Apr 12 23:22:39 2010
New Revision: 11331
Modified:
toys/cvsstats/web/data/full.xml
toys/cvsstats/web/data/top-bottom.xml
Log:
- More queries in default configuration
Modified: toys/cvsstats/web/data/full.xml
==============================================================================
--- toys/cvsstats/web/data/full.xml (original)
+++ toys/cvsstats/web/data/full.xml Mon Apr 12 23:22:39 2010
@@ -3,6 +3,19 @@
<title>Full stats</title>
<queries>
<query id="1">
+ <title>Commits lines per deveoper</title>
+ <description>
+ Number of commits per developer.
+ </description>
+ <sql>
+ SELECT author, count(*) AS `Number of commits`
+ FROM commits
+ @WHERE@
+ GROUP BY author
+ ORDER BY 2 DESC
+ </sql>
+ </query>
+ <query id="2">
<title>Modified lines per deveoper</title>
<description>
Number of changed lines per developer. Each added or removed line
@@ -13,7 +26,35 @@
FROM commits
@WHERE@
GROUP BY author
- ORDER BY `Number of changed lines` DESC
+ ORDER BY 2 DESC
+ </sql>
+ </query>
+ <query id="3">
+ <title>Most actively developed files</title>
+ <description>
+ Most actively developed files in terms of number of commits.
+ </description>
+ <sql>
+ SELECT filename, count(*) AS `Number of commits`
+ FROM files
+ @WHERE@
+ GROUP BY filename
+ ORDER BY 2 DESC
+ LIMIT 20
+ </sql>
+ </query>
+ <query id="4">
+ <title>Most changed files</title>
+ <description>
+ Most actively developed files in terms of number of changed lines.
+ </description>
+ <sql>
+ SELECT filename, sum(added)+sum(removed) AS `Number of changed lines, sum(added), sum(removed)`
+ FROM files
+ @WHERE@
+ GROUP BY filename
+ ORDER BY 2 DESC
+ LIMIT 20
</sql>
</query>
</queries>
Modified: toys/cvsstats/web/data/top-bottom.xml
==============================================================================
--- toys/cvsstats/web/data/top-bottom.xml (original)
+++ toys/cvsstats/web/data/top-bottom.xml Mon Apr 12 23:22:39 2010
@@ -3,17 +3,30 @@
<title>Top/bottom</title>
<queries>
<query id="1">
+ <title>Most active deveopers</title>
+ <description>
+ Most active developers in terms of number of commits.
+ </description>
+ <sql>
+ SELECT author, count(*) AS `Number of commits`
+ FROM commits
+ @WHERE@
+ GROUP BY author
+ ORDER BY 2 DESC
+ LIMIT 3
+ </sql>
+ </query>
+ <query id="2">
<title>Most hard-working developers</title>
<description>
- Most hard-working developers, i.e. developers that scored most number of
- added/removed lines.
+ Most active developers in terms of number of changed lines.
</description>
<sql>
SELECT author, sum(added)+sum(removed) AS `Number of changed lines`, sum(added), sum(removed)
FROM commits
@WHERE@
GROUP BY author
- ORDER BY `Number of changed lines` DESC
+ ORDER BY 2 DESC
LIMIT 3
</sql>
</query>
More information about the pld-cvs-commit
mailing list