<commit_before>package net.ohloh.ohcount4j;

import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import static org.testng.AssertJUnit.assertEquals;

import org.testng.annotations.Test;

public class LanguageTest {

    @Test
    void unameTest() {
        assertEquals("c", Language.C.uname());
        assertEquals("ruby", Language.RUBY.uname());

        // GoLang
        assertEquals("GoLang", Language.GOLANG.uname());
    }

    @Test
    void extensionsTest() {
        assertTrue(Language.RUBY.getExtensions().contains("rb"));
        assertTrue(Language.RUBY.getExtensions().contains("ru"));
        assertFalse(Language.RUBY.getExtensions().contains("c"));

        // GoLang
        assertEquals(Language.GOLANG.getExtensions().size(), 1);
        assertEquals(Language.GOLANG.getExtensions().get(0), "go");
    }

    @Test
    void filenamesTest() {
        assertTrue(Language.RUBY.getFilenames().contains("Rakefile"));<commit_msg>[OHCOUNT-38] Fixed the tests<commit_after>package net.ohloh.ohcount4j;

import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import static org.testng.AssertJUnit.assertEquals;

import org.testng.annotations.Test;

public class LanguageTest {

    @Test
    public void unameTest() {
        assertEquals("c", Language.C.uname());
        assertEquals("ruby", Language.RUBY.uname());

        // GoLang
        assertEquals("golang", Language.GOLANG.uname());
    }

    @Test
    public void extensionsTest() {
        assertTrue(Language.RUBY.getExtensions().contains("rb"));
        assertTrue(Language.RUBY.getExtensions().contains("ru"));
        assertFalse(Language.RUBY.getExtensions().contains("c"));

        // GoLang
        assertEquals(Language.GOLANG.getExtensions().size(), 1);
        assertEquals(Language.GOLANG.getExtensions().get(0), "go");
    }

    @Test
    public void filenamesTest() {
        assertTrue(Language.RUBY.getFilenames().contains("Rakefile"));
{'fraction_non_alphanumeric': 0.1445, 'fraction_numerical': 0.004, 'mean_word_length': 3.5067567567567566, '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': '4148050', 'n_tokens_mistral': 600, 'n_tokens_neox': 575, 'n_words': 87}