<commit_before>/*******************************************************************************
 * Copyright 2015, Medidata Solutions, Inc., All Rights Reserved. The program
 * and the accompanying materials are made under the terms of MIT license.
 * Author: <NAME>, <EMAIL>
 ******************************************************************************/
package com.mdsol.skyfire.util;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class JavaSupporterIT {

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testRemoveSemiColon() {
        String string = "vm.getCredit() == 0;;;;";
        assertEquals("vm.getCredit() == 0", JavaSupporter.removeSemiColon(string));
    }

    @Test
    public void testReturnPakcages() {
        assertEquals("edu/gmu/", JavaSupporter.returnPackages("package    edu.gmu;"));
    }

    @Test
    public void testCleanUpPackageName() {
        assertEquals("edu.gmu", JavaSupporter.cleanUpPackageName("package    edu.gmu;;"));
    }
}
<commit_msg>Fix critical issues reported by SonarQube in JavaSupporterIT<commit_after>/*******************************************************************************
 * Copyright 2015, Medidata Solutions, Inc., All Rights Reserved. The program
 * and the accompanying materials are made under the terms of MIT license.
 * Author: <NAME>, <EMAIL>
 ******************************************************************************/
package com.mdsol.skyfire.util;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class JavaSupporterIT {

    @Test
    public void testRemoveSemiColon() {
        String string = "vm.getCredit() == 0;;;;";
        assertEquals("vm.getCredit() == 0", JavaSupporter.removeSemiColon(string));
    }

    @Test
    public void testReturnPakcages() {
        assertEquals("edu/gmu/", JavaSupporter.returnPackages("package    edu.gmu;"));
    }

    @Test
    public void testCleanUpPackageName() {
        assertEquals("edu.gmu", JavaSupporter.cleanUpPackageName("package    edu.gmu;;"));
    }
}

{'fraction_non_alphanumeric': 0.24500907441016334, 'fraction_numerical': 0.0054446460980036296, 'mean_word_length': 4.2004716981132075, 'pattern_counts': {'":': 0, '<': 7, '<?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': '830260', 'n_tokens_mistral': 606, 'n_tokens_neox': 565, 'n_words': 145}