<commit_before><?php
/**
 * Unit test class for FunctionCommentSniff.
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */

/**
 * Unit test class for FunctionCommentSniff.
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 * @version   Release: @package_version@
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */
class Squiz_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest
{


    /**
     * Returns the lines where errors should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of errors that should occur on that line.
     *
     * @param string $testFile The name of the file being tested.
     *
     * @return array<int, int>
     */
    public function getErrorList($testFile='FunctionCommentUnitTest.inc')
    {
        switch ($testFile) {
        case 'FunctionCommentUnitTest.inc':
            $errors = array(
                       5   => 1,
                       10  => 3,
                       12  => 2,
                       13  => 2,
                       14  => 1,
                       15  => 1,
                       17  => 2,
                       28  => 1,
                       43  => 1,
                       76  => 1,
                       87  => 1,
                       103 => 1,
                       109 => 1,
                       112 => 1,
                       122 => 1,
                       123 => 3,
                       124 => 2,
                       125 => 1,
                       126 => 1,
                       128 => 1,
                       137 => 4,
                       138 => 4,
                       139 => 4,
                       143 => 2,
                       152 => 1,
                       155 => 2,
                       159 => 1,
                       166 => 1,
                       173 => 1,
                       183 => 1,
                       190 => 2,
                       193 => 2,
                       196 => 1,
                       199 => 2,
                       210 => 1,
                       211 => 1,
                       222 => 1,
                       223 => 1,
                       224 => 1,
                       225 => 1,
                       226 => 1,
                       227 => 1,
                       230 => 2,
                       232 => 7,
                       246 => 1,
                       248 => 4,
                       261 => 1,
                       263 => 1,
                       276 => 1,
                       277 => 1,
                       278 => 1,
                       279 => 1,
                       280 => 1,
                       281 => 1,
                       284 => 1,
                       286 => 7,
                       294 => 1,
                       302 => 1,
                       312 => 1,
                       358 => 1,
                       359 => 2,
                       372 => 1,
                       373 => 1,
                       387 => 1,
                       407 => 1,
                       441 => 1,
                       500 => 1,
                       526 => 1,
                       548 => 1,
                       641 => 1,
                       669 => 1,
                       744 => 1,
                       748 => 1,
                       767 => 1,
                       789 => 1,
                       792 => 1,
                       794 => 1,
                       797 => 1,
                       801 => 1,
                       828 => 1,
                       840 => 1,
                       852 => 1,
                       864 => 1,
                      );

            // The yield tests will only work in PHP versions where yield exists and
            // will throw errors in earlier versions.
            if (PHP_VERSION_ID < 50500) {
                $errors[676] = 1;
            } else {
                $errors[688] = 1;
            }

            // Scalar type hints only work from PHP 7 onwards.
            if (PHP_VERSION_ID >= 70000) {
                $errors[17]  = 3;
                $errors[143] = 3;
                $errors[161] = 2;
                $errors[201] = 1;
                $errors[363] = 3;
                $errors[377] = 1;
                $errors[575] = 2;
                $errors[627] = 1;
            } else {
                $errors[729] = 4;
                $errors[740] = 2;
                $errors[752] = 2;
            }

            return $errors;

        case 'FunctionCommentUnitTest.1.inc':
            return array(
                    9  => 1,
                    21 => 1,
                    33 => 1,
                    45 => 1,
                   );

        default:
            return array();
        }

    }//end getErrorList()


    /**
     * Returns the lines where warnings should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of warnings that should occur on that line.
     *
     * @return array<int, int>
     */
    public function getWarningList()
    {
        return array();

    }//end getWarningList()


}//end class<commit_msg>Remove test lines for old test file<commit_after><?php
/**
 * Unit test class for FunctionCommentSniff.
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */

/**
 * Unit test class for FunctionCommentSniff.
 *
 * @category  PHP
 * @package   PHP_CodeSniffer
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
 * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
 * @version   Release: @package_version@
 * @link      http://pear.php.net/package/PHP_CodeSniffer
 */
class Squiz_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest
{


    /**
     * Returns the lines where errors should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of errors that should occur on that line.
     *
     * @return array<int, int>
     */
    public function getErrorList()
    {
        $errors = array(
                   5   => 1,
                   10  => 3,
                   12  => 2,
                   13  => 2,
                   14  => 1,
                   15  => 1,
                   17  => 2,
                   28  => 1,
                   43  => 1,
                   76  => 1,
                   87  => 1,
                   103 => 1,
                   109 => 1,
                   112 => 1,
                   122 => 1,
                   123 => 3,
                   124 => 2,
                   125 => 1,
                   126 => 1,
                   128 => 1,
                   137 => 4,
                   138 => 4,
                   139 => 4,
                   143 => 2,
                   152 => 1,
                   155 => 2,
                   159 => 1,
                   166 => 1,
                   173 => 1,
                   183 => 1,
                   190 => 2,
                   193 => 2,
                   196 => 1,
                   199 => 2,
                   210 => 1,
                   211 => 1,
                   222 => 1,
                   223 => 1,
                   224 => 1,
                   225 => 1,
                   226 => 1,
                   227 => 1,
                   230 => 2,
                   232 => 7,
                   246 => 1,
                   248 => 4,
                   261 => 1,
                   263 => 1,
                   276 => 1,
                   277 => 1,
                   278 => 1,
                   279 => 1,
                   280 => 1,
                   281 => 1,
                   284 => 1,
                   286 => 7,
                   294 => 1,
                   302 => 1,
                   312 => 1,
                   358 => 1,
                   359 => 2,
                   372 => 1,
                   373 => 1,
                   387 => 1,
                   407 => 1,
                   441 => 1,
                   500 => 1,
                   526 => 1,
                   548 => 1,
                   641 => 1,
                   669 => 1,
                   744 => 1,
                   748 => 1,
                   767 => 1,
                   789 => 1,
                   792 => 1,
                   794 => 1,
                   797 => 1,
                   801 => 1,
                   828 => 1,
                   840 => 1,
                   852 => 1,
                   864 => 1,
                  );

        // The yield tests will only work in PHP versions where yield exists and
        // will throw errors in earlier versions.
        if (PHP_VERSION_ID < 50500) {
            $errors[676] = 1;
        } else {
            $errors[688] = 1;
        }

        // Scalar type hints only work from PHP 7 onwards.
        if (PHP_VERSION_ID >= 70000) {
            $errors[17]  = 3;
            $errors[143] = 3;
            $errors[161] = 2;
            $errors[201] = 1;
            $errors[363] = 3;
            $errors[377] = 1;
            $errors[575] = 2;
            $errors[627] = 1;
        } else {
            $errors[729] = 4;
            $errors[740] = 2;
            $errors[752] = 2;
        }

        return $errors;

    }//end getErrorList()


    /**
     * Returns the lines where warnings should occur.
     *
     * The key of the array should represent the line number and the value
     * should represent the number of warnings that should occur on that line.
     *
     * @return array<int, int>
     */
    public function getWarningList()
    {
        return array();

    }//end getWarningList()


}//end class
{'fraction_non_alphanumeric': 0.1024358006042296, 'fraction_numerical': 0.08062688821752266, 'mean_word_length': 0.7875464056699292, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 203, 'https://': 4, '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': '5760117', 'n_tokens_mistral': 3457, 'n_tokens_neox': 2603, 'n_words': 812}