Lines Matching full:entries
50 help='Dump all filtered entries.')
65 def summarize_entries(entries, skip=set()): argument
66 """Summarize a list of entries."""
75 'COUNT': len(entries),
77 summary.update({key: summarize_tags(entries, key) for key in TAG_KEYS
79 summary.update({key: summarize_values(entries, key) for key in VALUE_KEYS
83 def summarize_tags(entries, key): argument
85 tags = {str(entry[key]) for entry in entries}
88 def summarize_values(entries, key): argument
90 if entries is None or len(entries) == 0:
93 values = [entry[key] for entry in entries if key in entry]
100 num_skipped = len(entries) - num_values
106 def group_entries(keys, entries): argument
107 """Group entries based on different values of given keys.
110 @param entries: A list of entries to split into groups.
112 @return A list of list of entries, where each list has a different key
116 return [entries]
120 for entry in entries:
136 # Read entries from the specified file.
141 # Filter entries:
145 entries = filter(lambda x: x['name'] != 'Runner', all_entries)
148 entries = filter(lambda x: x[arg] in
150 entries)
152 entries = filter(lambda x: eval(options.filter, {'re': re}, x), entries)
154 # Group the entries based on specified keys.
156 entries)
158 # Dump all filtered entries as groups, including their parents.
161 # Dump all entries, tracking needed parents.
172 # Summarize the entries, group by group.