Skip to main content

Module utils

Module utils 

Source

Functionsยง

apply_heatmap_color_to_token
calculate_token_similarity
Calculate a similarity score between an individual token and the raw query text. Whitespace and punctuation tokens are ignored and score 0.0.
find_repo_root
score_to_color
split_into_tokens
Split text into meaningful tokens for heatmap highlighting, preserving spacing and punctuation as discrete tokens so coloured output lines up with the original input.
syntax_set
theme_set