Module Import alias Import alias Import alias ImportFrom alias identifier Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Import alias ImportFrom alias alias If CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Slice Num body FunctionDef arguments args defaults body Import alias Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad orelse Import alias ImportFrom alias ImportFrom alias Import alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore IfExp CompareNotIn Str NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore BinOpMult BinOpMult BinOpMult Num Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body If CompareEq Call NameLoad NameLoad Num body For NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore BinOpSub NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str CompareIn SubscriptLoad NameLoad Slice Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str TupleLoad BinOpAdd NameLoad SubscriptLoad NameLoad Slice Num If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num orelse If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str CompareIn SubscriptLoad NameLoad Slice Num Num AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str TupleLoad BinOpAdd NameLoad SubscriptLoad NameLoad Slice Num AugAssignAdd NameStore Num orelse If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad NameLoad If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad
N/A N/A sys N/A os N/A time subprocess Popen process N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 .. N/A background.utils textutils json_decode json_encode N/A N/A --json-job N/A N/A sys argv N/A 1 N/A perform_job N/A N/A N/A N/A N/A syntaxhighlight.generate N/A request N/A json_decode N/A N/A N/A sys stdin read N/A N/A request N/A highlighted N/A N/A N/A syntaxhighlight generate generateHighlight repository_path N/A request N/A repository_path sha1 N/A request N/A sha1 language N/A request N/A language N/A N/A N/A N/A sys stdout write N/A json_encode request N/A N/A N/A N/A N/A background utils call highlight_job perform_job N/A N/A background.utils syntaxhighlight isHighlighted syntaxhighlight.context importCodeContexts N/A configuration N/A dbutils HighlightServer N/A N/A N/A background utils JSONJobServer N/A __init__ N/A N/A self N/A N/A N/A service N/A N/A configuration services HIGHLIGHT N/A N/A N/A N/A super HighlightServer self __init__ service N/A N/A self db N/A N/A dbutils Database N/A N/A compact_at service N/A N/A N/A hour minute N/A service N/A compact_at N/A N/A N/A self register_maintenance hour hour minute minute callback N/A self __compact N/A request_result N/A N/A self request N/A N/A N/A N/A isHighlighted N/A request N/A sha1 N/A request N/A language N/A N/A result N/A N/A request copy N/A N/A result N/A highlighted True N/A result N/A request_started N/A N/A self job request N/A N/A N/A N/A N/A N/A super HighlightServer self request_started job request N/A N/A N/A self debug N/A started: %s:%s (%s) in %s [pid=%d] N/A N/A request N/A path N/A N/A request N/A sha1 N/A 8 N/A request N/A language N/A request N/A repository_path N/A job pid N/A request_finished N/A N/A self job request result N/A N/A N/A N/A N/A N/A super HighlightServer self request_finished job request result N/A failed N/A N/A error result  (failed!) N/A N/A N/A self info N/A finished: %s:%s (%s) in %s [pid=%d]%s N/A N/A request N/A path N/A N/A request N/A sha1 N/A 8 N/A request N/A language N/A request N/A repository_path N/A job pid failed N/A ncontexts N/A importCodeContexts N/A self db N/A request N/A sha1 N/A request N/A language N/A ncontexts N/A N/A N/A N/A self debug N/A   added %d code contexts ncontexts N/A N/A N/A N/A self debug   no code contexts added N/A execute_command N/A N/A self client command N/A N/A N/A N/A N/A command N/A command compact N/A N/A N/A uncompressed_count compressed_count purged_files_count purged_contexts_count N/A N/A self __compact N/A N/A N/A client write N/A json_encode N/A status uncompressed compressed purged_files purged_contexts ok uncompressed_count compressed_count purged_files_count purged_contexts_count N/A N/A N/A client close N/A N/A N/A N/A N/A super HighlightServer self execute_command client command N/A __compact N/A N/A self N/A N/A N/A syntaxhighlight N/A cache_dir N/A N/A N/A configuration services HIGHLIGHT N/A cache_dir N/A N/A N/A N/A N/A os path isdir cache_dir N/A N/A N/A 0 0 0 0 N/A N/A N/A self info cache compacting started N/A now N/A N/A time time N/A max_age_uncompressed N/A N/A N/A 7 24 60 60 N/A max_age_compressed N/A N/A N/A 90 24 60 60 N/A uncompressed_count 0 N/A compressed_count 0 N/A purged_paths N/A N/A db N/A N/A dbutils Database N/A cursor N/A N/A db cursor N/A N/A N/A cursor execute CREATE TEMPORARY TABLE purged (sha1 CHAR(40) PRIMARY KEY) N/A N/A N/A cursor execute INSERT INTO purged (sha1) SELECT DISTINCT sha1 FROM codecontexts N/A section N/A sorted N/A N/A os listdir cache_dir N/A N/A N/A N/A len section 2 N/A N/A filename N/A N/A os listdir N/A %s/%s N/A cache_dir section N/A N/A fullname N/A %s/%s/%s N/A cache_dir section filename N/A age N/A now N/A N/A N/A os stat fullname st_mtime N/A N/A N/A N/A len filename 38 N/A N/A filename N/A 38 . N/A N/A filename N/A 39 N/A syntaxhighlight LANGUAGES N/A N/A N/A N/A cursor execute DELETE FROM purged WHERE sha1=%s N/A N/A section N/A filename N/A 38 N/A N/A age max_age_uncompressed N/A N/A N/A N/A self debug N/A compressing: %s/%s N/A section filename N/A worker N/A process N/A /bin/bzip2 fullname N/A N/A N/A worker wait N/A compressed_count 1 N/A N/A uncompressed_count 1 N/A N/A N/A N/A N/A len filename 41 N/A N/A filename N/A 38 . N/A N/A filename N/A -4 . N/A N/A filename N/A 39 -4 N/A syntaxhighlight LANGUAGES N/A N/A N/A N/A filename endswith .bz2 N/A N/A N/A age max_age_compressed N/A N/A N/A N/A self debug N/A purging: %s/%s N/A section filename N/A N/A N/A purged_paths append fullname N/A N/A N/A N/A cursor execute DELETE FROM purged WHERE sha1=%s N/A N/A section N/A filename N/A 38 N/A compressed_count 1 N/A N/A N/A N/A filename endswith .ctx N/A N/A N/A N/A self debug N/A deleting context file: %s/%s N/A section filename N/A N/A N/A os unlink fullname N/A N/A N/A N/A os unlink fullname N/A N/A N/A self info N/A cache compacting finished: uncompressed=%d / compressed=%d / purged=%d N/A uncompressed_count compressed_count N/A len purged_paths N/A purged_paths N/A N/A path purged_paths N/A N/A N/A N/A os unlink path N/A N/A N/A cursor execute SELECT COUNT(*) FROM purged N/A purged_contexts N/A N/A N/A cursor fetchone N/A 0 N/A N/A N/A cursor execute DELETE FROM codecontexts
                                    WHERE sha1 IN (SELECT sha1
                                                     FROM purged) N/A N/A N/A db commit N/A N/A N/A db close N/A N/A uncompressed_count compressed_count N/A len purged_paths purged_contexts N/A N/A start_service N/A N/A N/A N/A N/A server N/A HighlightServer N/A N/A N/A server start N/A N/A N/A N/A N/A background utils call highlight start_service