<commit_before><commit_msg>Hmac creation test<commit_after>package org.abstractj.cuckootp.api;

import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class HmacTest {

    private Base32 base32 = new Base32();

    @Test
    public void testDigest() throws Exception {
        byte[] hash = new Hmac(Hash.SHA1, base32.decode(base32.random()), new Clock().getCurrentInterval()).digest();
        assertEquals(20, hash.length);
    }
}
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.02813852813852814, 'mean_word_length': 4.202247191011236, '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': '5896733', 'n_tokens_mistral': 147, 'n_tokens_neox': 137, 'n_words': 32}