Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Dict Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad BinOpMult NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Num Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr Num For TupleStore TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print NameLoad BinOpMod NameLoad TupleLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Created on Aug 19, 2011

@organization: cert.org
 N/A logging N/A math N/A collections N/A sys N/A operator fuzztools.filetools all_files_nonzero_length fuzztools.vectors compare analyzers.callgrind.annotation_file AnnotationFile N/A logger N/A N/A logging getLogger __name__ N/A N/A N/A logger setLevel N/A logging DEBUG SimilarityMatrixError N/A Exception N/A N/A N/A SimilarityMatrix N/A object N/A __init__ N/A N/A self dirs N/A N/A N/A N/A self dirs dirs N/A N/A self pattern *.annotated N/A N/A self precision 3 N/A N/A self files N/A N/A N/A self coverage N/A N/A N/A self docfreq N/A N/A collections defaultdict int N/A N/A self idf N/A N/A N/A self tf_idf N/A N/A N/A self sim N/A N/A N/A N/A self find_files N/A N/A N/A len N/A self files 2 N/A N/A N/A SimilarityMatrixError Must have at least 2 files to compare N/A N/A N/A self read_coverage N/A N/A N/A self measure_doc_count_by_term N/A N/A N/A self calculate_idf N/A N/A N/A self calculate_tf_idf N/A N/A N/A self build_matrix N/A find_files N/A N/A self N/A N/A N/A d N/A self dirs N/A N/A N/A N/A logger info Find files in dir: %s d N/A N/A N/A N/A self files extend N/A list N/A all_files_nonzero_length d N/A self pattern N/A read_coverage N/A N/A self N/A N/A N/A N/A N/A logger info Read coverage from files: N/A f N/A self files N/A N/A N/A N/A logger info ...processing file: %s f N/A annotation N/A AnnotationFile f N/A N/A N/A self coverage N/A f N/A annotation coverage N/A measure_doc_count_by_term N/A N/A self N/A N/A N/A N/A N/A logger info Measuring document count by term N/A cov N/A N/A N/A self coverage values N/A N/A term N/A N/A cov keys N/A N/A N/A N/A self docfreq N/A term 1 N/A calculate_idf N/A N/A self N/A N/A N/A N/A N/A logger info Calculating Inverse Document Frequency N/A term N/A N/A N/A self docfreq keys N/A N/A numerator N/A float N/A len N/A self files N/A denominator N/A 1.0 N/A float N/A N/A self docfreq N/A term N/A N/A N/A self idf N/A term N/A N/A math log N/A numerator denominator N/A calculate_tf_idf N/A N/A self N/A N/A N/A N/A N/A logger info Calculating Term Frequency - Inverse Document Frequency scores N/A f N/A self files N/A N/A tf_idf N/A N/A cov N/A N/A self coverage N/A f N/A N/A term termfreq N/A N/A cov iteritems N/A N/A N/A tf_idf N/A term N/A termfreq N/A N/A self idf N/A term N/A N/A N/A self tf_idf N/A f tf_idf N/A build_matrix N/A N/A self N/A N/A N/A N/A N/A logger info Building similarity matrix N/A i N/A range N/A len N/A self files N/A N/A j N/A range i N/A N/A f N/A N/A self files N/A i N/A g N/A N/A self files N/A j N/A N/A N/A self sim N/A N/A f g N/A compare N/A N/A self tf_idf N/A f N/A N/A self tf_idf N/A g N/A _crash_id_from_path N/A N/A self path N/A N/A N/A parts N/A N/A path split / N/A idx N/A N/A N/A parts index crashers 1 N/A N/A parts N/A idx N/A print_to N/A N/A self target N/A None N/A N/A fmt N/A N/A %0. N/A self precision f	%s	%s N/A target N/A N/A output N/A open target w N/A N/A output N/A sys stdout N/A sorted_similarity N/A sorted N/A N/A N/A self sim iteritems key N/A N/A operator itemgetter 1 N/A N/A N/A k1 k2 v sorted_similarity N/A N/A crash_id1 N/A N/A self _crash_id_from_path k1 N/A crash_id2 N/A N/A self _crash_id_from_path k2 N/A output N/A fmt N/A v crash_id1 crash_id2 N/A target N/A N/A N/A N/A output close N/A N/A