<commit_before><?php
/**
 * @title            Suggestion Class
 * @desc             Suggestion Service.
 *
 * @author           <NAME> <<EMAIL>>
 * @copyright        (c) 2012-2013, <NAME>. All Rights Reserved.
 * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package          PH7 / Framework / Service
 * @version          1.0
 */

namespace PH7\Framework\Service;
defined('PH7') or exit('Restricted access');

class Suggestion
{

    const
    DIR = 'suggestions/',
    EMAIL_FILE = 'email.txt';

    private static $_sFile;

    /**
     * Private constructor to prevent instantiation of class since it is a private class.
     *
     * @access private
     */
    private function __construct() {}

    /**
     * @static
     * @return string Suggestion email address.
     */
    public static function email()
    {
        static::$_sFile = static::EMAIL_FILE;
        return static::_gets();
    }

   /**
    * Generic method to to pick and translate words.
    *
    * @access private
    * @static
    * @return string The transform words.
    */
   private static function _gets()
   {
       $aSuggestions = file(PH7_PATH_APP_CONFIG . static::DIR . static::$_sFile);

       // It removes all spaces, line breaks, ...
       $aSuggestions = array_map('trim', $aSuggestions);
       return implode('\',\'', $aSuggestions);
   }

    /**
     * Block cloning.
     *
     * @access private
     */
    private function __clone() {}

}
<commit_msg>Code cleaning<commit_after><?php
/**
 * @title            Suggestion Class
 * @desc             Suggestion Service.
 *
 * @author           <NAME> <<EMAIL>>
 * @copyright        (c) 2012-2013, <NAME>. All Rights Reserved.
 * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package          PH7 / Framework / Service
 * @version          1.0
 */

namespace PH7\Framework\Service;
defined('PH7') or exit('Restricted access');

class Suggestion
{

    const
    DIR = 'suggestions/',
    EMAIL_FILE = 'email.txt';

    private static $_sFile;

    /**
     * Private constructor to prevent instantiation of class since it is a private class.
     *
     * @access private
     */
    private function __construct() {}

    /**
     * @static
     * @return string Suggestion email address.
     */
    public static function email()
    {
        static::$_sFile = static::EMAIL_FILE;
        return static::_gets();
    }

   /**
    * Generic method to to pick and translate words.
    *
    * @access private
    * @static
    * @return string The transform words.
    */
   private static function _gets()
   {
       $aSuggestions = file(PH7_PATH_APP_CONFIG . static::DIR . static::$_sFile);

       // It removes all spaces, line breaks, ...
       $aSuggestions = array_map('trim', $aSuggestions);

       return implode('\',\'', $aSuggestions);
   }

    /**
     * Block cloning.
     *
     * @access private
     */
    private function __clone() {}

}

{'fraction_non_alphanumeric': 0.12307692307692308, 'fraction_numerical': 0.010474631751227497, 'mean_word_length': 2.134358974358974, 'pattern_counts': {'":': 0, '<': 13, '<?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': '3947980', 'n_tokens_mistral': 927, 'n_tokens_neox': 877, 'n_words': 255}