You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/06/30 17:21:24 UTC

svn commit: r1688472 - in /comdev/reporter.apache.org/data: pmcs.json projects.json reformat.py

Author: sebb
Date: Tue Jun 30 15:21:24 2015
New Revision: 1688472

URL: http://svn.apache.org/r1688472
Log:
Reformat to make differencing possible

Added:
    comdev/reporter.apache.org/data/reformat.py
Modified:
    comdev/reporter.apache.org/data/pmcs.json
    comdev/reporter.apache.org/data/projects.json

Modified: comdev/reporter.apache.org/data/pmcs.json
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/data/pmcs.json?rev=1688472&r1=1688471&r2=1688472&view=diff
==============================================================================
--- comdev/reporter.apache.org/data/pmcs.json (original)
+++ comdev/reporter.apache.org/data/pmcs.json Tue Jun 30 15:21:24 2015
@@ -1 +1,12666 @@

[... 12670 lines stripped ...]
Modified: comdev/reporter.apache.org/data/projects.json
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/data/projects.json?rev=1688472&r1=1688471&r2=1688472&view=diff
==============================================================================
--- comdev/reporter.apache.org/data/projects.json (original)
+++ comdev/reporter.apache.org/data/projects.json Tue Jun 30 15:21:24 2015
@@ -1 +1,46334 @@

[... 46338 lines stripped ...]
Added: comdev/reporter.apache.org/data/reformat.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/data/reformat.py?rev=1688472&view=auto
==============================================================================
--- comdev/reporter.apache.org/data/reformat.py (added)
+++ comdev/reporter.apache.org/data/reformat.py Tue Jun 30 15:21:24 2015
@@ -0,0 +1,27 @@
+# Reformat json files to make differencing possible
+import json
+pmcs = {}
+try:
+    with open("pmcs.json", "r") as f:
+        pmcs = json.loads(f.read())
+        f.close()
+except:
+    pass
+
+projects = {}
+try:
+    with open("projects.json", "r") as f:
+        projects = json.loads(f.read())
+        f.close()
+except:
+    pass
+
+print("Writing pmcs.json")
+with open("pmcs.json", "w") as f:
+    f.write(json.dumps(pmcs, indent=1, sort_keys=True))
+    f.close()
+
+print("Writing projects.json")
+with open("projects.json", "w") as f:
+    f.write(json.dumps(projects, indent=1, sort_keys=True))
+    f.close()