<commit_before>var width = window.innerWidth;
var height = window.innerHeight;

setup();
draw();
// drawEnd()

function setup() {
    var canvas = document.createElement('canvas');
    canvas.width = width;
    canvas.height = height;

    document.body.appendChild(canvas)

    context = canvas.getContext('2d');

    word = 'SEVENTYFIVE'

    titleHeight = width * .125 //context.measureText(word).width  
    titleBottomMargin = titleHeight * .1;
    captionHeight = width * .015 
    if(captionHeight <= 12)
          captionHeight = 12
    captionLineHeight = captionHeight + captionHeight * .5;
    context.font = 'bold ' + titleHeight + 'px Helvetica Neue, Helvetica, Arial, sans-serif';

    words = [
        'UNITED STATES',
        'MEXICO',
        'BRAZIL',
        'IRAN',
        'ISLAMIC REPUBLIC',
        'TURKEY',
        'EGYPT',
        'NIGERIA',
        'CONGO',
        // 'DEMOCRATIC REPUBLIC',
        'ETHIOPIA',
        'TANZANIA',
        'CHINA',<commit_msg>changed max caption height to 14px<commit_after>var width = window.innerWidth;
var height = window.innerHeight;

setup();
draw();
// drawEnd()

function setup() {
    var canvas = document.createElement('canvas');
    canvas.width = width;
    canvas.height = height;

    document.body.appendChild(canvas)

    context = canvas.getContext('2d');

    word = 'SEVENTYFIVE'

    titleHeight = width * .125 //context.measureText(word).width  
    titleBottomMargin = titleHeight * .1;
    captionHeight = width * .015 
    if(captionHeight <= 14)
          captionHeight = 14
    captionLineHeight = captionHeight + captionHeight * .5;
    context.font = 'bold ' + titleHeight + 'px Helvetica Neue, Helvetica, Arial, sans-serif';

    words = [
        'UNITED STATES',
        'MEXICO',
        'BRAZIL',
        'IRAN',
        'ISLAMIC REPUBLIC',
        'TURKEY',
        'EGYPT',
        'NIGERIA',
        'CONGO',
        // 'DEMOCRATIC REPUBLIC',
        'ETHIOPIA',
        'TANZANIA',
        'CHINA',
{'fraction_non_alphanumeric': 0.13119679519278918, 'fraction_numerical': 0.014021031547320982, 'mean_word_length': 2.3979591836734695, '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': '1728967', 'n_tokens_mistral': 688, 'n_tokens_neox': 630, 'n_words': 138}