<commit_before>module Canvas {
    const el = document.querySelector("canvas") as HTMLCanvasElement
    export const cx = el.getContext("2d")

    const pxRatio = devicePixelRatio || 1

    export let w: number
    export let h: number

    // resize this and set some text properties
    export function reset(): void {
        resize()
        Canvas.cx.textAlign = "center"
        Canvas.cx.textBaseline = "middle"
    }

    // resize the canvas to be the size of the window
    function resize(): void {
        w = innerWidth
        h = innerHeight
        el.width = w * pxRatio<commit_msg>src/rut/Canvas: remove unnecessary Canvas<commit_after>module Canvas {
    const el = document.querySelector("canvas") as HTMLCanvasElement
    export const cx = el.getContext("2d")

    const pxRatio = devicePixelRatio || 1

    export let w: number
    export let h: number

    // resize this and set some text properties
    export function reset(): void {
        resize()
        cx.textAlign = "center"
        cx.textBaseline = "middle"
    }

    // resize the canvas to be the size of the window
    function resize(): void {
        w = innerWidth
        h = innerHeight
        el.width = w * pxRatio
{'fraction_non_alphanumeric': 0.08498349834983498, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 2.388268156424581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4466571', 'n_tokens_mistral': 341, 'n_tokens_neox': 325, 'n_words': 120}