Module Import alias alias alias alias FunctionDef arguments args NameParam defaults body Assert CompareIs Call NameLoad NameLoad NameLoad Str Assert NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIs Call NameLoad NameLoad NameLoad Str With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIs Call NameLoad NameLoad NameLoad Str Assert CompareNotEq NameLoad ListLoad Str Assign NameStore Dict For NameStore NameLoad body If CompareIn NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num orelse Assign SubscriptStore NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIs Call NameLoad NameLoad NameLoad Str Assert CompareNotEq NameLoad Dict Str Return Call NameLoad Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num keyword NameLoad decorator_list TryExcept body Assert CompareGt Call NameLoad AttributeLoad NameLoad attr Num Str Assign NameStore Call NameLoad Call NameLoad Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareGt Call NameLoad NameLoad Num Str For NameStore SubscriptLoad NameLoad Slice Num Num body Print SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad name NameStore body Print Call AttributeLoad Str attr NameLoad
N/A N/A sys re operator string extract_words N/A N/A path_to_file N/A N/A N/A N/A N/A type path_to_file str I need a string! I quit! N/A path_to_file I need a non-empty string! I quit! N/A N/A open path_to_file f N/A N/A data N/A N/A f read N/A pattern N/A N/A re compile [\W_]+ N/A word_list N/A N/A N/A N/A N/A N/A pattern sub data lower split N/A word_list N/A remove_stop_words N/A N/A word_list N/A N/A N/A N/A N/A type word_list list I need a list! I quit! N/A N/A open ../stop_words.txt f N/A N/A stop_words N/A N/A N/A N/A f read split , N/A N/A N/A stop_words extend N/A list N/A string ascii_lowercase N/A N/A w N/A w word_list N/A N/A w stop_words N/A frequencies N/A N/A word_list N/A N/A N/A N/A N/A type word_list list I need a list! I quit! N/A N/A word_list N/A I need a non-empty list! I quit! N/A word_freqs N/A N/A w word_list N/A N/A N/A w word_freqs N/A N/A N/A word_freqs N/A w 1 N/A N/A N/A word_freqs N/A w 1 N/A word_freqs N/A sort N/A N/A word_freqs N/A N/A N/A N/A N/A type word_freqs dict I need a dictionary! I quit! N/A N/A word_freqs N/A I need a non-empty dictionary! I quit! N/A N/A sorted N/A N/A word_freqs iteritems key N/A N/A operator itemgetter 1 reverse True N/A N/A N/A N/A N/A N/A len N/A sys argv 1 You idiot! I need an input file! I quit! N/A word_freqs N/A sort N/A frequencies N/A remove_stop_words N/A extract_words N/A N/A sys argv N/A 1 N/A N/A N/A len word_freqs 25 OMG! Less than 25 words! I QUIT! N/A tf N/A word_freqs N/A 0 25 N/A N/A N/A tf N/A 0  -  N/A tf N/A 1 N/A N/A N/A Exception N/A e N/A N/A N/A N/A Something wrong: {0} format e