Module ImportFrom alias Import alias FunctionDef arguments args NameParam defaults body If CompareNotEq Call NameLoad NameLoad Num body Expr Call NameLoad Str Return Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore Str Assign NameStore Str orelse Expr Call NameLoad Str Return Assign NameStore NameStore NameStore Num With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body AugAssignAdd NameStore Num orelse If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num orelse If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num orelse If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Num orelse If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Num orelse If BoolOpAnd CompareEq NameLoad Str NameLoad body AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num Expr Call NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A __future__ print_function N/A sys main N/A N/A argv N/A N/A N/A N/A N/A len argv 2 N/A N/A N/A print Usage: ./countLoc.py <file_to_count.[py | c] N/A N/A file N/A argv N/A 1 N/A mode N/A N/A N/A file split . N/A 1 N/A N/A mode py N/A N/A cKey # N/A N/A N/A mode c N/A N/A cKey // N/A sKey /* N/A eKey */ N/A N/A N/A print Invalid extension, please input a Python or C code file N/A N/A comment loc blank 0 N/A N/A open file r f N/A N/A line N/A N/A f readlines N/A N/A line N/A N/A line strip N/A N/A line N/A N/A blank 1 N/A N/A N/A N/A line startswith cKey N/A N/A comment 1 N/A N/A N/A N/A mode c N/A N/A line startswith sKey N/A N/A line endswith eKey N/A N/A comment 1 N/A N/A N/A N/A mode c N/A N/A line startswith sKey N/A N/A cFlag True N/A comment 1 N/A N/A N/A N/A mode c N/A N/A line endswith eKey N/A N/A cFlag False N/A comment 1 N/A N/A N/A N/A mode c cFlag N/A N/A comment 1 N/A N/A loc 1 N/A N/A print N/A N/A print File:  file N/A N/A print LoC:  loc N/A N/A print Comments:  comment N/A N/A print Blank:  blank N/A N/A print N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys argv