Module Expr Str Import alias Import alias Import alias Import alias Import 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 ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpSub Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpSub Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Assign NameStore BinOpMult Str NameLoad If CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd Str NameLoad orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMult Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad BinOpSub NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num BinOpDiv NameLoad Num Num BinOpDiv NameLoad Num keyword TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num BinOpDiv NameLoad Num NameLoad Print BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return Num Return BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return Num Return BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd NameLoad Num BinOpSub NameLoad Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad Num Num Num orelse Assign NameStore BinOpMult Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore BinOpSub NameLoad BinOpDiv BinOpAdd NameLoad NameLoad Num Assign NameStore BinOpAdd NameLoad BinOpDiv BinOpAdd NameLoad NameLoad Num Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad BinOpDiv NameLoad Num NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num keyword TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad BinOpDiv NameLoad Num BinOpAdd NameLoad NameLoad BinOpAdd NameLoad BinOpDiv NameLoad Num keyword TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num BinOpAdd NameLoad NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num keyword TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad BinOpAdd NameLoad BinOpDiv NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad BinOpSub NameLoad BinOpDiv NameLoad Num 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 decorator_list
N/A N/A 
Created on Aug 19, 2011

@organization: cert.org
 N/A sys N/A os N/A numpy N/A hcluster N/A logging N/A logger N/A N/A logging getLogger __name__ N/A N/A N/A logger setLevel N/A logging DEBUG DistanceMatrixError N/A Exception N/A N/A N/A DistanceMatrix N/A object N/A __init__ N/A N/A self similarity_dict N/A N/A N/A N/A self sim similarity_dict N/A N/A self keys N/A N/A N/A N/A self get_keys N/A N/A N/A self calculate_distance_matrix N/A N/A self cluster_method N/A N/A self get_cluster_method N/A N/A self Z N/A N/A self cluster_method N/A self distance_matrix N/A N/A self node N/A N/A hcluster to_tree N/A self Z N/A N/A N/A self print_node N/A self node N/A self keys N/A N/A self image_file None N/A get_keys N/A N/A self N/A N/A N/A pairs N/A N/A N/A self sim keys N/A p1 N/A set N/A p2 N/A set N/A N/A x y pairs N/A N/A N/A N/A p1 add x N/A N/A N/A p2 add y N/A N/A self keys N/A list N/A N/A p1 union p2 N/A calculate_distance_matrix N/A N/A self N/A N/A N/A key_count N/A len N/A self keys N/A Y N/A N/A numpy zeros N/A key_count key_count N/A i N/A range key_count N/A N/A N/A N/A Y N/A i N/A i 0.0 N/A a N/A N/A self keys N/A i N/A j N/A range i N/A N/A b N/A N/A self keys N/A j N/A k1 N/A a b N/A k2 N/A b a N/A N/A N/A N/A self sim get k1 N/A N/A N/A N/A Y N/A i N/A j N/A 1.0 N/A N/A self sim N/A k1 N/A N/A N/A Y N/A j N/A i N/A N/A Y N/A i N/A j N/A N/A N/A N/A N/A self sim get k2 N/A N/A N/A N/A Y N/A j N/A i N/A 1.0 N/A N/A self sim N/A k2 N/A N/A N/A Y N/A i N/A j N/A N/A Y N/A j N/A i N/A N/A N/A N/A logger warning Key not found in either direction: %s k1 N/A N/A N/A logger debug Y N/A N/A self distance_matrix Y N/A get_cluster_method N/A N/A self algorithm N/A average N/A N/A N/A N/A logger debug Alg = %s algorithm N/A N/A algorithm average N/A N/A N/A hcluster average N/A N/A N/A algorithm single N/A N/A N/A hcluster single N/A N/A N/A algorithm complete N/A N/A N/A hcluster complete N/A N/A N/A algorithm weighted N/A N/A N/A hcluster weighted N/A N/A N/A algorithm centroid N/A N/A N/A hcluster centroid N/A N/A N/A algorithm median N/A N/A N/A hcluster median N/A N/A N/A algorithm ward N/A N/A N/A hcluster ward N/A N/A N/A N/A sys exit Alg must be one of (average, single, complete, weighted, centroid, median, ward) N/A print_node N/A N/A self node labels depth N/A 0 N/A N/A prefix N/A depth N/A N/A N/A node id N/A len labels N/A N/A filepath N/A labels N/A N/A node id N/A p N/A N/A N/A os path dirname filepath N/A crash_id N/A N/A N/A os path basename p N/A label N/A |-  crash_id N/A N/A label N/A %d, %f N/A N/A node id N/A node dist N/A N/A %s%s N/A prefix label N/A N/A node left N/A N/A N/A N/A self print_node N/A node left labels N/A depth 1 N/A N/A node right N/A N/A N/A N/A self print_node N/A node right labels N/A depth 1 N/A to_image N/A N/A self filename N/A N/A N/A N/A self image_file filename N/A N/A N/A self drawdendrogram N/A drawdendrogram N/A N/A self N/A N/A N/A N/A PIL Image ImageDraw N/A N/A N/A ImportError N/A N/A N/A DistanceMatrixError PIL not available N/A h N/A N/A N/A self getheight N/A self node 20 N/A w 1900 N/A depth N/A N/A self getdepth N/A self node N/A scaling N/A N/A float N/A w 250 depth N/A img N/A N/A Image new RGB N/A w h N/A 255 255 255 N/A draw N/A N/A ImageDraw Draw img N/A N/A N/A draw line N/A 0 N/A h 2 10 N/A h 2 fill N/A 255 0 0 N/A N/A N/A self drawnode draw N/A self node 10 N/A h 2 scaling N/A N/A Saving image to %s N/A self image_file N/A N/A N/A img save N/A self image_file N/A getheight N/A N/A self clust N/A N/A N/A N/A N/A N/A clust left None N/A N/A clust right None N/A N/A 1 N/A N/A N/A N/A self getheight N/A clust left N/A N/A self getheight N/A clust right N/A getdepth N/A N/A self clust N/A N/A N/A N/A N/A N/A clust left None N/A N/A clust right None N/A N/A 0 N/A N/A N/A max N/A N/A self getdepth N/A clust left N/A N/A self getdepth N/A clust right N/A clust dist N/A is_leaf N/A N/A self node N/A N/A N/A N/A node left N/A N/A False N/A N/A node right N/A N/A False N/A True N/A drawnode N/A N/A self draw clust x y scaling N/A N/A N/A N/A N/A self is_leaf clust N/A N/A N/A N/A draw text N/A N/A x 5 N/A y 7 N/A N/A self _crash_id_from_path N/A N/A self keys N/A N/A clust id N/A 0 0 0 N/A N/A h1 N/A N/A N/A self getheight N/A clust left 20 N/A h2 N/A N/A N/A self getheight N/A clust right 20 N/A top N/A y N/A N/A h1 h2 2 N/A bottom N/A y N/A N/A h1 h2 2 N/A ll N/A N/A clust dist scaling N/A N/A N/A draw line N/A x N/A top N/A h1 2 x N/A bottom N/A h2 2 fill N/A 255 0 0 N/A N/A N/A draw line N/A x N/A top N/A h1 2 N/A x ll N/A top N/A h1 2 fill N/A 255 0 0 N/A N/A N/A draw line N/A x N/A bottom N/A h2 2 N/A x ll N/A bottom N/A h2 2 fill N/A 255 0 0 N/A N/A N/A self drawnode draw N/A clust left N/A x ll N/A top N/A h1 2 scaling N/A N/A N/A self drawnode draw N/A clust right N/A x ll N/A bottom N/A h2 2 scaling 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 N/A