Module Expr Str Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type TupleLoad NameLoad NameLoad body Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad NameLoad BoolOpOr UnaryOpNot NameLoad CompareGt NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body Pass If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Pass If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad Str attr Call NameLoad NameLoad Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad Str attr Call NameLoad NameLoad Call NameLoad Str body Return Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call NameLoad Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareIn Str NameLoad body Return Str If CompareIn Str NameLoad body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num TryExcept body With Call NameLoad NameLoad Str keyword Str NameStore body For NameStore NameLoad body AugAssignAdd NameStore Num handlers ExceptHandler body TryExcept body With Call NameLoad NameLoad Str keyword Call AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body AugAssignAdd NameStore Num handlers ExceptHandler body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad body If CompareNotEq NameLoad Str body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIs NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Index Num attr Str Index Num Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad Str If CompareIsNot NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str attr Call AttributeLoad NameLoad attr TryExcept body With Call NameLoad NameLoad Str keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn NameLoad Call AttributeLoad NameLoad attr body Return NameLoad If Call AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body With Call NameLoad NameLoad Str keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Num handlers ExceptHandler body TryExcept body With Call NameLoad NameLoad Str keyword Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Num handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list
N/A N/A 
    wakatime.stats
    ~~~~~~~~~~~~~~

    Stats about files

    :copyright: (c) 2013 Alan Hamlett.
    :license: BSD, see LICENSE for more details.
 N/A logging N/A os N/A sys compat u open dependencies DependencyParser packages get_lexer_by_name guess_lexer_for_filename get_filetype_from_buffer ClassNotFound N/A N/A packages simplejson json N/A N/A N/A N/A ImportError SyntaxError N/A N/A json N/A log N/A N/A logging getLogger WakaTime guess_language N/A N/A file_name N/A N/A N/A Guess lexer and language for a file.

    Returns (language, lexer) tuple where language is a unicode string.
     N/A language N/A get_language_from_extension file_name N/A lexer N/A smart_guess_lexer file_name N/A N/A N/A language None N/A lexer None N/A N/A language N/A u N/A lexer name N/A N/A language lexer N/A smart_guess_lexer N/A N/A file_name N/A N/A N/A Guess Pygments lexer for a file.

    Looks for a vim modeline in file contents, then compares the accuracy
    of that lexer with a second guess. The second guess looks up all lexers
    matching the file name, then runs a text analysis for the best choice.
     N/A lexer None N/A text N/A get_file_head file_name N/A N/A lexer1 accuracy1 N/A guess_lexer_using_filename file_name text N/A N/A lexer2 accuracy2 N/A guess_lexer_using_modeline text N/A lexer1 N/A N/A lexer lexer1 N/A N/A lexer2 accuracy2 N/A N/A accuracy1 N/A accuracy2 accuracy1 N/A N/A lexer lexer2 N/A lexer N/A guess_lexer_using_filename N/A N/A file_name text N/A N/A N/A Guess lexer for given text, limited to lexers for this file's extension.

    Returns a tuple of (lexer, accuracy).
     N/A N/A lexer accuracy N/A None None N/A N/A N/A lexer N/A guess_lexer_for_filename file_name text N/A N/A N/A N/A N/A N/A lexer None N/A N/A N/A N/A accuracy N/A N/A lexer analyse_text text N/A N/A N/A N/A N/A N/A lexer accuracy N/A guess_lexer_using_modeline N/A N/A text N/A N/A N/A Guess lexer for given text using Vim modeline.

    Returns a tuple of (lexer, accuracy).
     N/A N/A lexer accuracy N/A None None N/A file_type None N/A N/A N/A file_type N/A get_filetype_from_buffer text N/A N/A N/A N/A N/A N/A file_type None N/A N/A N/A N/A lexer N/A get_lexer_by_name file_type N/A N/A N/A ClassNotFound N/A N/A N/A N/A lexer None N/A N/A N/A N/A accuracy N/A N/A lexer analyse_text text N/A N/A N/A N/A N/A N/A lexer accuracy N/A get_language_from_extension N/A N/A file_name N/A N/A N/A Returns a matching language for the given file extension.
     N/A N/A filepart extension N/A N/A N/A os path splitext file_name N/A N/A N/A N/A N/A os path exists N/A N/A N/A u {0}{1} format N/A u filepart N/A u .c N/A N/A N/A os path exists N/A N/A N/A u {0}{1} format N/A u filepart N/A u .C N/A N/A C N/A extension N/A N/A extension lower N/A N/A extension .h N/A N/A directory N/A N/A N/A os path dirname file_name N/A available_files N/A N/A os listdir directory N/A available_extensions N/A N/A list N/A zip N/A map N/A N/A os path splitext available_files N/A 1 N/A available_extensions N/A N/A N/A ext lower N/A ext available_extensions N/A N/A .cpp available_extensions N/A N/A C++ N/A N/A .c available_extensions N/A N/A C N/A None N/A number_lines_in_file N/A N/A file_name N/A N/A N/A lines 0 N/A N/A N/A N/A open file_name r encoding utf-8 fh N/A N/A line fh N/A N/A lines 1 N/A N/A N/A N/A N/A N/A N/A open file_name r encoding N/A N/A sys getfilesystemencoding fh N/A N/A line fh N/A N/A lines 1 N/A N/A N/A N/A None N/A lines N/A get_file_stats N/A N/A file_name entity_type lineno cursorpos plugin alternate_language N/A file None None None None N/A N/A N/A entity_type file N/A N/A stats N/A language dependencies lines lineno cursorpos None N/A None lineno cursorpos N/A N/A N/A language lexer N/A guess_language file_name N/A parser N/A DependencyParser file_name lexer N/A dependencies N/A N/A parser parse N/A N/A N/A language None alternate_language N/A N/A language N/A standardize_language alternate_language plugin N/A stats N/A language dependencies lines lineno cursorpos language dependencies N/A number_lines_in_file file_name lineno cursorpos N/A stats N/A standardize_language N/A N/A language plugin N/A N/A N/A Maps a string to the equivalent Pygments language. N/A plugin N/A N/A plugin N/A N/A N/A N/A N/A N/A N/A N/A N/A plugin split N/A -1 split / N/A 0 split - N/A 0 N/A standardized N/A get_language_from_json language plugin N/A N/A standardized None N/A N/A standardized N/A standardized N/A get_language_from_json language default N/A N/A standardized None N/A N/A standardized N/A None N/A get_language_from_json N/A N/A language key N/A N/A N/A Finds the given language in a json file. N/A file_name N/A N/A N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ languages {0}.json format N/A N/A key lower N/A N/A N/A N/A open file_name r encoding utf-8 fh N/A N/A languages N/A N/A json loads N/A N/A fh read N/A N/A language N/A N/A languages values N/A N/A language N/A N/A N/A languages get language N/A N/A N/A languages N/A language N/A N/A N/A N/A N/A None N/A get_file_head N/A N/A file_name N/A N/A N/A Returns the first 512000 bytes of the file's contents. N/A text None N/A N/A N/A N/A open file_name r encoding utf-8 fh N/A N/A text N/A N/A fh read 512000 N/A N/A N/A N/A N/A N/A N/A open file_name r encoding N/A N/A sys getfilesystemencoding fh N/A N/A text N/A N/A fh read 512000 N/A N/A N/A N/A N/A N/A log traceback debug N/A text N/A