<commit_before><?php

/**
 * PluginServerTable
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class PluginServerTable extends Doctrine_Table
{

    /**
     * Returns an instance of this class.
     *
     * @return object PluginServerTable
     */
    public static function getInstance()
    {
        return Doctrine_Core::getTable('PluginServer');
    }

    public static function getOrCreateOneByName($name)
    {
        $server = self::getInstance()->findOneBy('name', $name);
        if (!$server)
        {
            // create new server
            $server = new Server();
            $server->setName($name);
            $server->save();
        }

        return $server;
    }

}<commit_msg>- fixed getorcreate method<commit_after><?php

/**
 * PluginServerTable
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class PluginServerTable extends Doctrine_Table
{

    /**
     * Returns an instance of this class.
     *
     * @return object PluginServerTable
     */
    public static function getInstance()
    {
        return Doctrine_Core::getTable('PluginServer');
    }

    public static function getOrCreateOneByName($name, $ip = null)
    {
        if (!$server = self::getInstance()->getOneByName($name))
        {
            $server = new Server();
            $server->setName($name);
            $server->setIp($ip);
            $server->save();
        }

        return $server;
    }

}
{'fraction_non_alphanumeric': 0.11284046692607004, 'fraction_numerical': 0.0, 'mean_word_length': 1.9058380414312617, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '2881894', 'n_tokens_mistral': 434, 'n_tokens_neox': 405, 'n_words': 101}