<commit_before><?php

namespace League\Evangelist\Test;

use League\Evangelist\FetchGitData;

class FetchGitTest extends \PHPUnit_Framework_TestCase
{

    /**
     * Test that the returned result by FetchGitData::FetchDate() is of type array
     */
    public function test_git_api_result()
    {
        $this->assertEquals(gettype(array()), gettype(FetchGitData::fetchData('dzpo')));
    }

    /**
     * Test for inexistent Github user
     */
    public function test_for_inexistent_user()
    {
        $this->assertEquals("User cannot be found on Github.", FetchGitData::returnGithubDetails('kzjk'));
    }

    /**
     * Test for Null input
     */
    public function test_for_null_user()
    {
        $this->assertEquals("Github username cannot be null. Please enter a valid username.", FetchGitData::returnGithubDetails(null));
    }

    /**
     * Test if function getNoOfRepos returns an integer
     */
    public function test_if_integer_returns()
    {
        $this->assertTrue(is_integer(FetchGitData::getNoOfRepos('andela-oisola')));
    }
}
<commit_msg>Modify FetchGitDataTest.php<commit_after><?php

namespace League\Evangelist\Test;

use League\Evangelist\FetchGitData;

class FetchGitTest extends \PHPUnit_Framework_TestCase
{

    /**
     * Test that the returned result by FetchGitData::FetchDate() is of type array
     */
    public function test_git_api_result()
    {
        $this->assertInternalType('array', FetchGitData::fetchData('dzpo'));
    }

    /**
     * Test for inexistent Github user
     */
    public function test_for_inexistent_user()
    {
        $this->assertEquals("User cannot be found on Github.", FetchGitData::returnGithubDetails('kzjk'));
    }

    /**
     * Test for Null input
     */
    public function test_for_null_user()
    {
        $this->assertEquals("Github username cannot be null. Please enter a valid username.", FetchGitData::returnGithubDetails(null));
    }

    /**
     * Test if function getNoOfRepos returns an integer
     */
    public function test_if_integer_returns()
    {
        $this->assertTrue(is_integer(FetchGitData::getNoOfRepos('andela-oisola')));
    }
}

{'fraction_non_alphanumeric': 0.11260426320667284, 'fraction_numerical': 0.0, 'mean_word_length': 3.2085769980506824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6582731', 'n_tokens_mistral': 666, 'n_tokens_neox': 644, 'n_words': 143}