<commit_before><?php

/**
 * DinProjectConfiguration
 * 
 * @package     lib.config
 * @signed      5
 * @signer      relo_san
 * @author      relo_san [http://relo-san.com/]
 * @since       december 25, 2009
 * @version     SVN: $Id$
 */
class DinProjectConfiguration extends sfProjectConfiguration
{

    /**
     * Load plugins
     * 
     * @return  void
     * @author  relo_san
     * @since   december 25, 2009
     */
    public function loadPlugins()
    {

        $configDir = $this->getRootDir() . '/lib/config';
        require_once $configDir . '/DinPluginConfiguration.class.php';
        foreach ( $this->getPluginPaths() as $path )
        {

            if ( false === $plugin = array_search( $path, $this->overriddenPluginPaths ) )
            {
                $plugin = basename( $path );
            }
            $class = ucfirst( $oldClass = $plugin . 'Configuration' );

            $file = sprintf( '%s/%s/%s.class.php', $configDir, $plugin, $class );
            $oldFile = sprintf( '%s/config/%s.class.php', $path, $oldClass );
            $pluginFile = sprintf( '%s/config/%s.class.php', $path, 'Plugin' . $class );
            if ( is_readable( $pluginFile ) )<commit_msg>Fix changed paths<commit_after><?php

/**
 * DinProjectConfiguration
 * 
 * @package     lib.config
 * @signed      5
 * @signer      relo_san
 * @author      relo_san [http://relo-san.com/]
 * @since       december 25, 2009
 * @version     SVN: $Id$
 */
class DinProjectConfiguration extends sfProjectConfiguration
{

    /**
     * Load plugins
     * 
     * @return  void
     * @author  relo_san
     * @since   december 25, 2009
     */
    public function loadPlugins()
    {

        $rootDir = $this->getRootDir();
        require_once $rootDir . '/plugins/dinSymfonyExtraPlugin/lib/config/DinPluginConfiguration.class.php';
        foreach ( $this->getPluginPaths() as $path )
        {

            if ( false === $plugin = array_search( $path, $this->overriddenPluginPaths ) )
            {
                $plugin = basename( $path );
            }
            $class = ucfirst( $oldClass = $plugin . 'Configuration' );

            $file = sprintf( '%s/%s/%s.class.php', $rootDir . '/lib/config', $plugin, $class );
            $oldFile = sprintf( '%s/config/%s.class.php', $path, $oldClass );
            $pluginFile = sprintf( '%s/config/%s.class.php', $path, 'Plugin' . $class );
            if ( is_readable( $pluginFile ) )
{'fraction_non_alphanumeric': 0.1488752556237219, 'fraction_numerical': 0.01063394683026585, 'mean_word_length': 2.06900878293601, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1568248', 'n_tokens_mistral': 781, 'n_tokens_neox': 749, 'n_words': 160}