<commit_before>$(document).ready(function() {
    generateButtons();
    
    $('#letters button').click(function() {
        console.log($(this).attr('value'));
    });
});

function generateButtons() {
    var snippet = "";
    
    for (var i = 0; i < 26; i++) {
        snippet += '<button type="button" class="btn btn-default" value="' + String.fromCharCode(65 + i) + '">' + String.fromCharCode(65 + i) + '</button>'
    }
    
    $('#letters').html(snippet);
}<commit_msg>Added guess method.<commit_after>var word = "BUTT";

$(document).ready(function() {
    generateButtons();
    
    $('#letters button').click(function() {
        var guess = $(this).attr('value');
        
        guessLetter(guess);
    });
});

function generateButtons() {
    var snippet = "";
    
    for (var i = 0; i < 26; i++) {
        snippet += '<button type="button" class="btn btn-default" value="' + String.fromCharCode(65 + i) + '">' + String.fromCharCode(65 + i) + '</button>'
    }
    
    $('#letters').html(snippet);
};

function guessLetter(guess) {
    if (word.indexOf(guess) !== -1) {
        console.log(true);
    } else {
        
    }
};
{'fraction_non_alphanumeric': 0.20993031358885017, 'fraction_numerical': 0.013066202090592335, 'mean_word_length': 2.7305194805194803, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '6554629', 'n_tokens_mistral': 387, 'n_tokens_neox': 374, 'n_words': 71}