We provide the related code of UltraViCo, including:

* The code for attention pattern statistics and plotting in Sec. 3.2.1 and Fig. 3 (`repetition_analysis`)
* The code for NoRepeat Score in Sec. 4 (`no_repeat_score`)
* The illustrative code of the UltraViCo method (`UltraViCo_attention`)

Detailed explanations can be found in the code comments.
