[cig-commits] r5607 - in cs: . stats stats/trunk

sue at geodynamics.org sue at geodynamics.org
Wed Dec 20 11:52:44 PST 2006


Author: sue
Date: 2006-12-20 11:52:44 -0800 (Wed, 20 Dec 2006)
New Revision: 5607

Added:
   cs/stats/
   cs/stats/trunk/
   cs/stats/trunk/get_all_names
   cs/stats/trunk/get_all_times
   cs/stats/trunk/get_names
   cs/stats/trunk/get_users
   cs/stats/trunk/make_plots
   cs/stats/trunk/master_control
   cs/stats/trunk/months
   cs/stats/trunk/years
Log:
First cut at automated statistics

Added: cs/stats/trunk/get_all_names
===================================================================
--- cs/stats/trunk/get_all_names	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/get_all_names	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,36 @@
+./get_all_times MAG-1.0.0.tar.gz MAG-1.0.0
+
+
+./get_all_times Gale-1.0.0.tar.gz Gale-1.0.0
+./get_all_times Gale-Linux-1.0.0.tar.gz Gale-Linux-1.0.0
+./get_all_times Gale-Mac-1_0_0.dmg Gale-Mac-1_0_0
+./get_all_times Gale-Win32-1_0_0.zip Gale-Win32-1_0_0
+./get_all_times Gale-0.9.0.tar.gz Gale-0.9.0
+./get_all_times Gale-0.2.0.tar.gz Gale-0.2.0
+./get_all_times Gale-0.1.0.tar.gz Gale-0.1.0
+./get_all_times Gale-Linux.tar.gz Gale-Linux
+./get_all_times Gale-Mac.dmg Gale-Mac
+./get_all_times Gale-Win32.zip Gale-Win32
+
+./get_all_times plasti-1.0.0.tar.gz plasti-1.0.0
+
+./get_all_times lithomop3d-1.0.0.tar.gz lithomop3d-1.0.0
+./get_all_times lithomop3d-0.7.2.tar.gz lithomop3d-0.7.2
+
+./get_all_times pylith3d-0.8.1.tar.gz pylith3d-0.8.1
+./get_all_times pylith3d-0.8.0.tar.gz pylith3d-0.8.0
+./get_all_times PyLith-0.8p1.dmg PyLith-0.8p1-Mac
+./get_all_times setup.exe Pylith-Win32
+./get_all_times pylith-0.8.1-linux-x86.tar.gz Pylith-Linux
+
+./get_all_times ellipsis3D-1.0.1.tar.gz ellipsis3D-1.0.1
+./get_all_times ellipsis3D-1.0.0.tar.gz ellipsis3D-1.0.0
+
+./get_all_times CitcomS-2.1.0.tar.gz CitcomS-2.1.0
+./get_all_times CitcomS-2.0.2.tar.gz CitcomS-2.0.2
+./get_all_times CitcomS-2.0.1.tar.gz CitcomS-2.0.1
+./get_all_times CitcomS-2.0.0.tar.gz CitcomS-2.0.0
+
+./get_all_times CitcomCU-1.0.0.tar.gz CitcomCU-1.0.0
+./get_all_times CitcomCU-1.0.1.tar.gz CitcomCU-1.0.1
+./get_all_times CitcomCU-1.0.2.tar.gz CitcomCU-1.0.2


Property changes on: cs/stats/trunk/get_all_names
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/get_all_times
===================================================================
--- cs/stats/trunk/get_all_times	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/get_all_times	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,5 @@
+for month in `cat months`; do
+    for year in `cat years`; do
+    	./get_names $1 $month $year > $2_$month_$year
+    done
+done


Property changes on: cs/stats/trunk/get_all_times
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/get_names
===================================================================
--- cs/stats/trunk/get_names	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/get_names	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1 @@
+zgrep -h $2 /var/lib/zope2.7/instance/plone/log/Z2.log* | grep $3 | grep $1 | grep -v bot | grep -v spider | grep -v "Yahoo! Slurp" | grep -v "^131\.215" | awk '{print $1}' | sort | uniq


Property changes on: cs/stats/trunk/get_names
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/get_users
===================================================================
--- cs/stats/trunk/get_users	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/get_users	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,27 @@
+rm -f users
+rm -f institutions
+for p in `ls *_Jan`; do
+    project=`echo $p | cut -d _ -f 1`
+    rm -f ${project}_users ${project}_institutions ${project}_total_users
+    for month in `cat months`; do
+	for year in `cat years`; do
+		wc -l ${project}_$month_$year | cut -f 1 -d " " >> ${project}_users
+		rm -f users
+		for f in `cat ${project}_$month_$year`; do
+			whois $f >> ${project}_institutions_raw
+			echo "-------------------------------------------" >> ${project}_institutions_raw
+			whois $f | md5sum >> users
+		done
+		sort users | uniq | wc -l >> ${project}_institutions
+    	done
+    done
+
+    cat ${project}_[A-Z][a-z][a-z] | sort | uniq | wc -l >> ${project}_total_users
+done
+
+cat *_[A-Z][a-z][a-z] | sort | uniq > users
+rm -f institutions_tmp
+for f in `cat users`; do
+    whois $f | md5sum >> institutions_tmp
+done
+sort institutions_tmp | uniq > institutions


Property changes on: cs/stats/trunk/get_users
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/make_plots
===================================================================
--- cs/stats/trunk/make_plots	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/make_plots	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,9 @@
+for users in `ls *_users *_institutions | grep -v total_users | grep -v get_users`; do
+    rm -f plot
+    echo "set term png" > plot
+    ttmp="set output \"${users}.png\""
+    echo $ttmp >> plot
+    ttmp="plot \"${users}\" using (\$0+1):(\$1) w l title \"${users}\"" >> plot
+    echo $ttmp >> plot
+    gnuplot < plot
+done


Property changes on: cs/stats/trunk/make_plots
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/master_control
===================================================================
--- cs/stats/trunk/master_control	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/master_control	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,7 @@
+./get_all_names
+./get_users
+./make_plots
+mkdir -p /home/sue/public_html/stats/plots
+cp *_users /home/sue/public_html/stats
+cp *_institutions /home/sue/public_html/stats
+cp *.png /home/sue/public_html/stats/plots


Property changes on: cs/stats/trunk/master_control
___________________________________________________________________
Name: svn:executable
   + 

Added: cs/stats/trunk/months
===================================================================
--- cs/stats/trunk/months	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/months	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,12 @@
+Jan
+Feb
+Mar
+Apr
+May
+Jun
+Jul
+Aug
+Sep
+Oct
+Nov
+Dec

Added: cs/stats/trunk/years
===================================================================
--- cs/stats/trunk/years	2006-12-17 08:30:41 UTC (rev 5606)
+++ cs/stats/trunk/years	2006-12-20 19:52:44 UTC (rev 5607)
@@ -0,0 +1,2 @@
+2006
+2007



More information about the cig-commits mailing list