<commit_before><?php

namespace EasyMinerCenter\Model\Preprocessing\Databases;

use EasyMinerCenter\Model\Data\Entities\DbConnection;
use EasyMinerCenter\Model\Preprocessing\Entities\PpConnection;
use EasyMinerCenter\Model\EasyMiner\Entities\User;

/**
 * Class DatabaseFactory - Factory třída pro vytváření připojení k DB
 *
*@package EasyMinerCenter\Model\Data\Databases
 */
class PreprocessingFactory {
  private static $ppTypeClasses=[
    PpConnection::TYPE_MYSQL=>'\EasyMinerCenter\Model\Preprocessing\Databases\MySQL\MySQLDatabase',
    PpConnection::TYPE_LIMITED=>'\EasyMinerCenter\Model\Preprocessing\Databases\DataService\LimitedDatabase',
    PpConnection::TYPE_UNLIMITED=>'\EasyMinerCenter\Model\Preprocessing\Databases\DataService\UnlimitedDatabase',
  ];
  private static $dbPpTypesMapping=[
    DbConnection::TYPE_MYSQL=>PpConnection::TYPE_MYSQL,
    DbConnection::TYPE_LIMITED=>PpConnection::TYPE_LIMITED,
    DbConnection::TYPE_UNLIMITED=>PpConnection::TYPE_UNLIMITED,
  ];
  /** @var  array $preprocessingDatabasesConfig - pole s konfigurací přístupů k jednotlivým typům databází*/
  private $preprocessingDatabasesConfig;

  /**
   * @param array $databasesConfig
   */
  public function __construct($databasesConfig) {
    $this->preprocessingDatabasesConfig=$databasesConfig;
  }

  /**
   * Funkce vracející informace o nakonfigurovaných databázích
   * @return string[]<commit_msg>oprava názvu tříd pro preprocessing<commit_after><?php

namespace EasyMinerCenter\Model\Preprocessing\Databases;

use EasyMinerCenter\Model\Data\Entities\DbConnection;
use EasyMinerCenter\Model\Preprocessing\Entities\PpConnection;
use EasyMinerCenter\Model\EasyMiner\Entities\User;

/**
 * Class DatabaseFactory - Factory třída pro vytváření připojení k DB
 *
*@package EasyMinerCenter\Model\Data\Databases
 */
class PreprocessingFactory {
  private static $ppTypeClasses=[
    PpConnection::TYPE_MYSQL=>'\EasyMinerCenter\Model\Preprocessing\Databases\MySQL\MySQLDatabase',
    PpConnection::TYPE_LIMITED=>'\EasyMinerCenter\Model\Preprocessing\Databases\PreprocessingService\LimitedDatabase',
    PpConnection::TYPE_UNLIMITED=>'\EasyMinerCenter\Model\Preprocessing\Databases\PreprocessingService\UnlimitedDatabase',
  ];
  private static $dbPpTypesMapping=[
    DbConnection::TYPE_MYSQL=>PpConnection::TYPE_MYSQL,
    DbConnection::TYPE_LIMITED=>PpConnection::TYPE_LIMITED,
    DbConnection::TYPE_UNLIMITED=>PpConnection::TYPE_UNLIMITED,
  ];
  /** @var  array $preprocessingDatabasesConfig - pole s konfigurací přístupů k jednotlivým typům databází*/
  private $preprocessingDatabasesConfig;

  /**
   * @param array $databasesConfig
   */
  public function __construct($databasesConfig) {
    $this->preprocessingDatabasesConfig=$databasesConfig;
  }

  /**
   * Funkce vracející informace o nakonfigurovaných databázích
   * @return string[]
{'fraction_non_alphanumeric': 0.10182584269662921, 'fraction_numerical': 0.0, 'mean_word_length': 6.249363867684479, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5709865', 'n_tokens_mistral': 909, 'n_tokens_neox': 908, 'n_words': 127}