<commit_before>import Canvas from "./canvas"
import NumberLabel from "./number_label"
import Sprite from "./sprite"

class HexTile extends Sprite {
    /*

    this depicts the top one of the six equilateral triangles which fit inside
    a hexagon. point O is the center of the hexagon. the hexagon is (2 * c)
    wide and (2 * a) tall.

         |        c        |
         |   b    |    b   |
         ___________________
     -   \        |        /   -
          \       |       /
           \      | <- a /
            \     |     /
         c   \    |    /   c
              \   |   /
               \  |  /
                \ | /
             -   \|/   -
                  O

     */
    public static c = 30
    public static b = HexTile.c / 2
    public static a = HexTile.b * Math.sqrt(3)

    public constructor(protected fill: string, private label: NumberLabel) {
        super()
    }

    // draw a hexagon tile, centered at (x, y), and its label, if it has one<commit_msg>cbg/hex_tile: use non-block comments<commit_after>import Canvas from "./canvas"
import NumberLabel from "./number_label"
import Sprite from "./sprite"

class HexTile extends Sprite {
    // this depicts the top one of the six equilateral triangles which fit
    // inside a hexagon. point O is the center of the hexagon. the hexagon is
    // (2 * c) wide and (2 * a) tall.
    //
    //      |        c        |
    //      |   b    |    b   |
    //      ___________________
    //  -   \        |        /   -
    //       \       |       /
    //        \      | <- a /
    //         \     |     /
    //      c   \    |    /   c
    //           \   |   /
    //            \  |  /
    //             \ | /
    //          -   \|/   -
    //               O

    public static c = 30
    public static b = HexTile.c / 2
    public static a = HexTile.b * Math.sqrt(3)

    public constructor(protected fill: string, private label: NumberLabel) {
        super()
    }

    // draw a hexagon tile, centered at (x, y), and its label, if it has one
{'fraction_non_alphanumeric': 0.1083864639529181, 'fraction_numerical': 0.005885237861696911, 'mean_word_length': 1.04, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1495080', 'n_tokens_mistral': 628, 'n_tokens_neox': 597, 'n_words': 188}