Re: wonder pull-request age report

Ray Kiddy <[email protected]> Tue, 29 Apr 2014 10:56:41 -0700
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <20140429105641.4f258808@raysus>
Arg! Must ... stop ... using ... 30-year old scripting language!
Anyway....

Thanks for this. What is amusing is that I had asked about this before.
It turns out that if one asks, one may not get a response, but if one
builds something ugly, people chime in with suggestions.

But it helps and it is all good.

thanx - ray


On Tue, 29 Apr 2014 14:09:57 +0200
Fabian Peters <[email protected]> wrote:

> Hi Ray,
> 
> They have a public API, so:
> 
> #!/bin/python
> import requests
> import json
> import datetime
> from itertools import groupby
> from collections import Counter
> 
> r =
> requests.get('https://api.github.com/repos/wocommunity/wonder/pulls?sort=created')
> 
> if(r.ok):
>   pulls = json.loads(r.text or r.content)
>   dates = []
>   for pr in pulls:
>     date_created = datetime.datetime.strptime(pr['created_at'],
> '%Y-%m-%dT%H:%M:%SZ') dates.append(date_created.strftime('%Y-%m'))
>   
>   counts = Counter(dates)
>   for key in sorted(counts):
>     print "%s => %s" % (key, counts[key])
> 
> 
> Fabian
> 
> Am 29.04.2014 um 01:16 schrieb Ray Kiddy <[email protected]>:
> 
> > 
> > If anyone knows how to get a report like this out of github without
> > scraping the site, please give a holler.
> > 
> > cheers - ray
> > 
> > How Many Months?
> > 
> > 2013-10 => 5
> > 2013-11 => 1
> > 2013-12 => 1
> > 2014-01 => 1
> > 2014-02 => 2
> > 2014-03 => 2
> > 2014-04 => 7
> > 
> > lastDate: 2013-10-06
> > url: https://github.com/wocommunity/wonder/pull/491
> > desc: "ERMailUtils.emailsFromBulkList translates too many
> > characters"
> > 
> > lastDate: 2013-10-10
> > url: https://github.com/wocommunity/wonder/pull/493
> > desc: "Enabling checkHashCodes on object repetitions in ERModern"
> > 
> > lastDate: 2013-10-11
> > url: https://github.com/wocommunity/wonder/pull/496
> > desc: "Prevent NSKeyValueCoding$UnknownKeyException when ERModern
> > attempts to ..."
> > 
> > lastDate: 2013-10-11
> > url: https://github.com/wocommunity/wonder/pull/498
> > desc: "Fix for wonder-89: Don&#39;t attempt to save the parent EC
> > of a new EO as no..."
> > 
> > lastDate: 2013-10-11
> > url: https://github.com/wocommunity/wonder/pull/500
> > desc: "Reset tabSectionContents key on d2w context to prevent stale
> > tab section..."
> > 
> > lastDate: 2013-11-06
> > url: https://github.com/wocommunity/wonder/pull/506
> > desc: "use long instead of int in AjaxFileUpload classes"
> > 
> > lastDate: 2014-01-28
> > url: https://github.com/wocommunity/wonder/pull/533
> > desc: "Get correct host info"
> > 
> > lastDate: 2014-02-20
> > url: https://github.com/wocommunity/wonder/pull/547
> > desc: "Fix incorrect use of URLDecoder"
> > 
> > lastDate: 2014-02-26
> > url: https://github.com/wocommunity/wonder/pull/548
> > desc: "Connection validation, auto reconnect"
> > 
> > lastDate: 2014-03-10
> > url: https://github.com/wocommunity/wonder/pull/550
> > desc: "CookieParser fails when json object is in the cookie."
> > 
> > lastDate: 2014-03-25
> > url: https://github.com/wocommunity/wonder/pull/518
> > desc: "Avoid deadlock when more than one OSC is active"
> > 
> > lastDate: 2014-04-20
> > url: https://github.com/wocommunity/wonder/pull/566
> > desc: "Restore of the switch to EOSchemaSynchronizationFactory.
> > Warning: "
> > 
> > lastDate: 2014-04-20
> > url: https://github.com/wocommunity/wonder/pull/567
> > desc: "ERXKey.Type and NSArray#valueForKey(ERXKey) additions"
> > 
> > lastDate: 2014-04-24
> > url: https://github.com/wocommunity/wonder/pull/569
> > desc: "Fix for false security exception"
> > 
> > lastDate: 2014-04-25
> > url: https://github.com/wocommunity/wonder/pull/570
> > desc: "WOStart rework"
> > 
> > lastDate: 2014-04-25
> > url: https://github.com/wocommunity/wonder/pull/571
> > desc: "JavaMonitorFramework dead time calculation"
> > 
> > 
> > ------------------------------------------------------------------------------
> > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For
> > FREE Instantly run your Selenium tests across 300+ browser/OS
> > combos.  Get unparalleled scalability from the best Selenium
> > testing platform available. Simple to use. Nothing to install. Get
> > started now for free." http://p.sf.net/sfu/SauceLabs
> > _______________________________________________
> > Wonder-disc mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wonder-disc
> 
> 


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs