<commit_before><?php

namespace App\Helpers;

use Toyota\Component\Ldap\Core\Manager;
use Toyota\Component\Ldap\Core\Node;
use Toyota\Component\Ldap\Platform\Native\Driver;
use Toyota\Component\Ldap\Exception\BindException;
use Toyota\Component\Ldap\Exception\ConnectionException;
use Toyota\Component\Ldap\Exception\OptionException;

use App\Exception\WrongCredentialsException;
use App\Exception\LdapConnectException;

use Nette\Utils\Arrays;
use Nette\Utils\Strings;


class LdapUserUtils {

  const ERROR_TOO_MANY_UNSUCCESSFUL_TRIES = 19;
  const ERROR_INAPPROPRIATE_AUTHENTICATION = 48;
  const ERROR_WRONG_CREDENTIALS = 49;
  const ERROR_NO_SUCH_OBJECT = 32;

  /**
   * Configuration for initial connection to LDAP server. Requires
   * 'hostname' and 'base_dn', optionally 'port' and 'security'. For
   * more info see https://github.com/mrdm-nl/ldap.
   */
  private $ldapConfig;<commit_msg>Last try to fix the bloody exception namespace<commit_after><?php

namespace App\Helpers;

use Toyota\Component\Ldap\Core\Manager;
use Toyota\Component\Ldap\Core\Node;
use Toyota\Component\Ldap\Platform\Native\Driver;
use Toyota\Component\Ldap\Exception\BindException;
use Toyota\Component\Ldap\Exception\ConnectionException;
use Toyota\Component\Ldap\Exception\OptionException;

use App\Exceptions\WrongCredentialsException;
use App\Exceptions\LdapConnectException;

use Nette\Utils\Arrays;
use Nette\Utils\Strings;


class LdapUserUtils {

  const ERROR_TOO_MANY_UNSUCCESSFUL_TRIES = 19;
  const ERROR_INAPPROPRIATE_AUTHENTICATION = 48;
  const ERROR_WRONG_CREDENTIALS = 49;
  const ERROR_NO_SUCH_OBJECT = 32;

  /**
   * Configuration for initial connection to LDAP server. Requires
   * 'hostname' and 'base_dn', optionally 'port' and 'security'. For
   * more info see https://github.com/mrdm-nl/ldap.
   */
  private $ldapConfig;
{'fraction_non_alphanumeric': 0.09591280653950954, 'fraction_numerical': 0.008719346049046322, 'mean_word_length': 5.1610738255033555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '96774', 'n_tokens_mistral': 620, 'n_tokens_neox': 608, 'n_words': 124}