def DrillURL(urlstats):
 drill = Drill()
 drill.reqsummary = Summary(urlstats)
 drill.rpcsummaries = SortedRPCSummaries(urlstats, 0.9)
 drill.rpc_variation = RPCVariation(drill.reqsummary, drill.rpcsummaries)
 groupcounts = urlstats.EntityGroupCount()
 (drill.groupcounts, drill.maxgroupcount) = SplitByKind(groupcounts)
 entitycounts = urlstats.EntityCount()
 (drill.entitycounts, drill.maxentitycount) = SplitByKind(entitycounts)
 drill_json = drill._ToJsonDrill()
 return drill_json

def DrillURL ( urlstats ) : drill = Drill ( ) drill . reqsummary = Summary ( urlstats ) drill . rpcsummaries = SortedRPCSummaries ( urlstats , 0.9 ) drill . rpc_variation = RPCVariation ( drill . reqsummary , drill . rpcsummaries ) groupcounts = urlstats . EntityGroupCount ( ) ( drill . groupcounts , drill . maxgroupcount ) = SplitByKind ( groupcounts ) entitycounts = urlstats . EntityCount ( ) ( drill . entitycounts , drill . maxentitycount ) = SplitByKind ( entitycounts ) drill_json = drill . _ToJsonDrill ( ) return drill_json
analyzes url statistics and generates data for drill page .