Package dak :: Module stats
[hide private]
[frames] | no frames]

Module stats

source code

Various statistical pr0nography fun and games

Functions [hide private]
 
usage(exit_code=0) source code
 
per_arch_space_use() source code
 
daily_install_stats() source code
 
output_format(suite) source code
 
number_of_packages() source code
 
parse_new_uploads(data) source code
 
parse_actions(data, logdate) source code
 
parse_prod(logdate) source code
 
parse_timestamp(timestamp) source code
 
new_stats(logdir, yaml) source code
 
main() source code
Variables [hide private]
  Cnf = None
  stats = {}
  users = {}
  buffer = 0
  FORMAT_SWITCH = '2009-08'
  blacklisted = 'dak', 'katie'
  NEW = r'^(\d{14})\|(?:jennifer|process-unchecked|.*?\|dak)' r'...
  new_ACTIONS = r'^(\d{14})\|[^\|]*\|(\S+)\|NEW (\S+)[:\|]'
  old_ACTIONS = r'(?:lisa|process-new)\|program start\|(.*?)\|' ...
  old_ACTION = r'^(\d{14})\|(?:lisa|process-new)\|(Accepting cha...

Imports: subprocess, sys, tempfile, apt_pkg, datetime, mktime_tz, parsedate_tz, mbox, listdir, isfile, join, splitext, findall, DOTALL, MULTILINE, stderr, safe_load, safe_dump, utils, DBConn, get_suite_architectures, Suite, Architecture


Variables Details [hide private]

NEW

Value:
r'^(\d{14})\|(?:jennifer|process-unchecked|.*?\|dak)' r'\|(Moving to n\
ew|ACCEPT-TO-NEW)'

old_ACTIONS

Value:
r'(?:lisa|process-new)\|program start\|(.*?)\|' r'(?:lisa|process-new)\
\|program end'

old_ACTION

Value:
r'^(\d{14})\|(?:lisa|process-new)\|(Accepting changes|rejected)\|'