community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1855264 - in /comdev/projects.apache.org/trunk: scripts/cronjobs/parsecommitters.py site/js/projects.js site/json/foundation/accounts-evolution2.json site/timelines2.html
Date Mon, 11 Mar 2019 20:41:07 GMT
Author: sebb
Date: Mon Mar 11 20:41:07 2019
New Revision: 1855264

URL: http://svn.apache.org/viewvc?rev=1855264&view=rev
Log:
Alternate version of committer timeline display for evaluation

Added:
    comdev/projects.apache.org/trunk/site/json/foundation/accounts-evolution2.json
    comdev/projects.apache.org/trunk/site/timelines2.html   (with props)
Modified:
    comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py
    comdev/projects.apache.org/trunk/site/js/projects.js

Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py?rev=1855264&r1=1855263&r2=1855264&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py Mon Mar 11 20:41:07
2019
@@ -106,4 +106,35 @@ with open("../../site/json/foundation/gr
     json.dump(groups, f, sort_keys=True, indent=0, ensure_ascii=False)
     f.close()
 
+###### Test of alternate account evolution counting - start #####
+from datetime import datetime
+accounts = {} # key: yyyy-mm value: number of accounts created
+now = datetime.now() # fetch time once
+currentMonth = now.month
+currentYear = now.year
+
+# gather the accounts data:
+#firstYear=1996 # earliest year in Whimsy data so far
+firstYear=1999 # earliest date in existing data
+firstKey="%04u-%02u" % (firstYear, 1) # catch all earlier entries
+for y in range(firstYear,currentYear+1):
+	for m in range(1,13): # end is exclusive
+		ym = "%04u-%02u" % (y, m)
+		accounts[ym]=0
+		if y == currentYear and m == currentMonth:
+			break
+
+for p in ldappeople:
+    stamp = ldappeople[p]['createTimestamp']
+    ym = stamp[0:4]+'-'+stamp[4:6] # pick up year and month (end index is exclusive)
+    try:
+        accounts[ym] += 1
+    except KeyError:
+        accounts[firstKey] += 1
+
+print("writing accounts-evolution2.json")
+with open("../../site/json/foundation/accounts-evolution2.json", "w", encoding='utf-8') as
f:
+    json.dump(accounts, f, sort_keys=True, indent=0, ensure_ascii=False)
+###### Test of alternate account evolution counting - end #####
+
 print("All done!")
\ No newline at end of file

Modified: comdev/projects.apache.org/trunk/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/js/projects.js?rev=1855264&r1=1855263&r2=1855264&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/site/js/projects.js (original)
+++ comdev/projects.apache.org/trunk/site/js/projects.js Mon Mar 11 20:41:07 2019
@@ -1488,6 +1488,13 @@ function buildTimelines() {
 }
 
 
+// called by timelines2.html
+
+function buildTimelines2() {
+    GetAsyncJSON("json/foundation/accounts-evolution2.json", null, drawAccountCreation);
+}
+
+
 // ------------ Search feature for the site ------------\\
 
 function searchProjects(str) {

Added: comdev/projects.apache.org/trunk/site/json/foundation/accounts-evolution2.json
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/json/foundation/accounts-evolution2.json?rev=1855264&view=auto
==============================================================================
--- comdev/projects.apache.org/trunk/site/json/foundation/accounts-evolution2.json (added)
+++ comdev/projects.apache.org/trunk/site/json/foundation/accounts-evolution2.json Mon Mar
11 20:41:07 2019
@@ -0,0 +1,245 @@
+{
+"1999-01": 23,
+"1999-02": 0,
+"1999-03": 2,
+"1999-04": 3,
+"1999-05": 0,
+"1999-06": 2,
+"1999-07": 1,
+"1999-08": 1,
+"1999-09": 0,
+"1999-10": 9,
+"1999-11": 5,
+"1999-12": 5,
+"2000-01": 4,
+"2000-02": 3,
+"2000-03": 4,
+"2000-04": 4,
+"2000-05": 2,
+"2000-06": 7,
+"2000-07": 8,
+"2000-08": 7,
+"2000-09": 7,
+"2000-10": 9,
+"2000-11": 14,
+"2000-12": 6,
+"2001-01": 12,
+"2001-02": 9,
+"2001-03": 19,
+"2001-04": 11,
+"2001-05": 5,
+"2001-06": 12,
+"2001-07": 8,
+"2001-08": 14,
+"2001-09": 12,
+"2001-10": 7,
+"2001-11": 13,
+"2001-12": 8,
+"2002-01": 9,
+"2002-02": 16,
+"2002-03": 6,
+"2002-04": 9,
+"2002-05": 12,
+"2002-06": 24,
+"2002-07": 11,
+"2002-08": 14,
+"2002-09": 13,
+"2002-10": 10,
+"2002-11": 12,
+"2002-12": 2,
+"2003-01": 12,
+"2003-02": 14,
+"2003-03": 17,
+"2003-04": 20,
+"2003-05": 6,
+"2003-06": 18,
+"2003-07": 6,
+"2003-08": 21,
+"2003-09": 27,
+"2003-10": 9,
+"2003-11": 16,
+"2003-12": 20,
+"2004-01": 11,
+"2004-02": 16,
+"2004-03": 8,
+"2004-04": 15,
+"2004-05": 11,
+"2004-06": 13,
+"2004-07": 94,
+"2004-08": 9,
+"2004-09": 24,
+"2004-10": 12,
+"2004-11": 20,
+"2004-12": 23,
+"2005-01": 12,
+"2005-02": 11,
+"2005-03": 17,
+"2005-04": 18,
+"2005-05": 11,
+"2005-06": 25,
+"2005-07": 34,
+"2005-08": 14,
+"2005-09": 20,
+"2005-10": 25,
+"2005-11": 14,
+"2005-12": 29,
+"2006-01": 22,
+"2006-02": 21,
+"2006-03": 37,
+"2006-04": 26,
+"2006-05": 15,
+"2006-06": 25,
+"2006-07": 18,
+"2006-08": 52,
+"2006-09": 50,
+"2006-10": 20,
+"2006-11": 45,
+"2006-12": 8,
+"2007-01": 14,
+"2007-02": 20,
+"2007-03": 19,
+"2007-04": 26,
+"2007-05": 18,
+"2007-06": 28,
+"2007-07": 17,
+"2007-08": 12,
+"2007-09": 18,
+"2007-10": 23,
+"2007-11": 11,
+"2007-12": 17,
+"2008-01": 39,
+"2008-02": 17,
+"2008-03": 22,
+"2008-04": 19,
+"2008-05": 35,
+"2008-06": 26,
+"2008-07": 21,
+"2008-08": 10,
+"2008-09": 21,
+"2008-10": 23,
+"2008-11": 27,
+"2008-12": 17,
+"2009-01": 19,
+"2009-02": 22,
+"2009-03": 17,
+"2009-04": 14,
+"2009-05": 11,
+"2009-06": 33,
+"2009-07": 19,
+"2009-08": 37,
+"2009-09": 10,
+"2009-10": 27,
+"2009-11": 49,
+"2009-12": 49,
+"2010-01": 25,
+"2010-02": 32,
+"2010-03": 22,
+"2010-04": 6,
+"2010-05": 14,
+"2010-06": 31,
+"2010-07": 17,
+"2010-08": 11,
+"2010-09": 37,
+"2010-10": 21,
+"2010-11": 23,
+"2010-12": 42,
+"2011-01": 22,
+"2011-02": 26,
+"2011-03": 42,
+"2011-04": 5,
+"2011-05": 20,
+"2011-06": 73,
+"2011-07": 14,
+"2011-08": 71,
+"2011-09": 18,
+"2011-10": 57,
+"2011-11": 23,
+"2011-12": 27,
+"2012-01": 69,
+"2012-02": 41,
+"2012-03": 30,
+"2012-04": 15,
+"2012-05": 51,
+"2012-06": 30,
+"2012-07": 34,
+"2012-08": 37,
+"2012-09": 48,
+"2012-10": 36,
+"2012-11": 35,
+"2012-12": 28,
+"2013-01": 34,
+"2013-02": 39,
+"2013-03": 64,
+"2013-04": 36,
+"2013-05": 40,
+"2013-06": 49,
+"2013-07": 41,
+"2013-08": 47,
+"2013-09": 34,
+"2013-10": 37,
+"2013-11": 20,
+"2013-12": 40,
+"2014-01": 32,
+"2014-02": 36,
+"2014-03": 27,
+"2014-04": 40,
+"2014-05": 30,
+"2014-06": 34,
+"2014-07": 33,
+"2014-08": 43,
+"2014-09": 45,
+"2014-10": 39,
+"2014-11": 53,
+"2014-12": 27,
+"2015-01": 47,
+"2015-02": 25,
+"2015-03": 56,
+"2015-04": 48,
+"2015-05": 100,
+"2015-06": 61,
+"2015-07": 35,
+"2015-08": 64,
+"2015-09": 76,
+"2015-10": 63,
+"2015-11": 39,
+"2015-12": 68,
+"2016-01": 42,
+"2016-02": 54,
+"2016-03": 55,
+"2016-04": 41,
+"2016-05": 33,
+"2016-06": 55,
+"2016-07": 45,
+"2016-08": 65,
+"2016-09": 45,
+"2016-10": 105,
+"2016-11": 47,
+"2016-12": 63,
+"2017-01": 44,
+"2017-02": 78,
+"2017-03": 55,
+"2017-04": 33,
+"2017-05": 35,
+"2017-06": 56,
+"2017-07": 31,
+"2017-08": 45,
+"2017-09": 47,
+"2017-10": 59,
+"2017-11": 42,
+"2017-12": 49,
+"2018-01": 37,
+"2018-02": 44,
+"2018-03": 52,
+"2018-04": 36,
+"2018-05": 28,
+"2018-06": 36,
+"2018-07": 33,
+"2018-08": 38,
+"2018-09": 52,
+"2018-10": 33,
+"2018-11": 77,
+"2018-12": 55,
+"2019-01": 49,
+"2019-02": 43,
+"2019-03": 21
+}
\ No newline at end of file

Added: comdev/projects.apache.org/trunk/site/timelines2.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/timelines2.html?rev=1855264&view=auto
==============================================================================
--- comdev/projects.apache.org/trunk/site/timelines2.html (added)
+++ comdev/projects.apache.org/trunk/site/timelines2.html Mon Mar 11 20:41:07 2019
@@ -0,0 +1,52 @@
+<!doctype html>
+<html lang=''>
+<head>
+   <meta charset='utf-8'>
+   <meta http-equiv="X-UA-Compatible" content="IE=edge">
+   <meta name="viewport" content="width=device-width, initial-scale=1">
+   <link rel="stylesheet" href="styles.css">
+   <script src="js/jquery.js" type="text/javascript"></script>
+   <script type="text/javascript" src="https://www.google.com/jsapi"></script>
+   <script src="script.js"></script>
+   <script src="js/projects.js"></script>
+   
+   <title>Apache Timelines</title>
+</head>
+<body>
+
+<div id="logo"><h1><div style="padding-top: 30px;">Project Timelines (v2)
using LDAP data only</div></h1>
+<p>N.B. Jan 2004 is the default if the start date is unknown, hence the spike</p>
+</div>
+<div id='cssmenu'>
+<ul>
+   <li><a href='.'><span>Home</span></a></li>
+   <li><a href='committees.html'><span>Committees</span></a></li>
+   <li><a href='projects.html'><span>Projects</span></a></li>
+   <li><a href='releases.html'><span>Releases</span></a></li>
+   <li><a href='statistics.html'><span>Statistics</span></a></li>
+   <li class='active' class='last'><a href='timelines.html'><span>Timelines</span></a></li>
+   <li style="background: none !important"><input type="text" style="margin-top:
20px;" onkeypress="checkKeyPress(event, this);" placeholder="Search..."/></li>
+   <li style="float: right;"><a href='about.html'><span>About</span></a></li>
+   <!--li style="background: none; float: right;"><a href="edit/"><img title="Edit
project data" style="vertical-align: middle; margin-top: -5px; height: 24px; width: 24px;"
src="images/edit.png"/></a></li-->
+</ul>
+</div>
+
+<div id="contents" style="width: 1160px;">
+   <h1>Timelines</h1>
+   <p style="text-align: center;">
+      Loading data, please wait...<br/>
+      <img src="images/loader.gif"/>
+   </p>
+   <p id="progress" style="text-align: center;"></p>
+</div>
+<div id="footer">
+   Managed by the <a href="http://community.apache.org">Apache Community Development
Project</a>.<br/>
+   Copyright&copy; 2019, the Apache Software Foundation. Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
License, Version 2.0</a><br/>
+   Apache&reg; and the Apache feather logo are trademarks of The Apache Software Foundation.
+</div>
+<script type="text/javascript">
+   google.load("visualization", "1", {packages:["corechart"]});
+   google.setOnLoadCallback(function() { buildTimelines2(); });
+</script>
+</body>
+</html>

Propchange: comdev/projects.apache.org/trunk/site/timelines2.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message