Lines Matching defs:mg
119 def count_catalog(mg, d):
126 catalog_by_ip[mg["ip"]] += 1
128 catalog_by_ip[mg["ip"]] = 1
132 if not d in catalog_by_ip_active[mg["ip"]]:
133 catalog_by_ip_active[mg["ip"]].append(d)
135 catalog_by_ip_active[mg["ip"]] = [d]
138 catalog_by_raw_agent[mg["agent"]] += 1
140 catalog_by_raw_agent[mg["agent"]] = 1
144 agent = pkg_agent_pat.search(mg["agent"])
187 mg = m.groupdict()
191 if lastdatetime and mg["date"] == lastdate:
194 d = datetime.datetime(*(time.strptime(mg["date"], "%d/%b/%Y")[0:6]))
195 lastdate = mg["date"]
201 count_catalog(mg, d)