<commit_before><?php
/**
 * Litus is a project by a group of students from the K.U.Leuven. The goal is to create
 * various applications to support the IT needs of student unions.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @license http://litus.cc/LICENSE
 */

//if ('production' == getenv('APPLICATION_ENV')) {
    if (!file_exists(__DIR__ . '/../ldap.config.php')) {
        throw new RuntimeException(
            'The LDAP configuration file (' . (__DIR__ . '/../ldap.config.php') . ') was not found'
        );
    }

    return array(
        'service_manager' => array(
            'factories' => array(
                'ldap' => function ($serviceManager) {
                    $ldapConfig = include __DIR__ . '/../ldap.config.php';

                    $ldap = new Zend\Ldap\Ldap(
                        array(
                            'host'           => $ldapConfig['host'],
                            'username'       => $ldapConfig['username'],
                            'password'       => $ldapConfig['password'],
                            'bindRequiresDn' => $ldapConfig['bindRequiresDn'],
                            'baseDn'         => $ldapConfig['baseDn'],
                        )
                    );
                    return $ldap;
                },
            ),
        ),
    );
//}

return array();<commit_msg>Tower missed a file...<commit_after><?php
/**
 * Litus is a project by a group of students from the K.U.Leuven. The goal is to create
 * various applications to support the IT needs of student unions.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>us.cc>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 *
 * @license http://litus.cc/LICENSE
 */

if ('production' == getenv('APPLICATION_ENV')) {
    if (!file_exists(__DIR__ . '/../ldap.config.php')) {
        throw new RuntimeException(
            'The LDAP configuration file (' . (__DIR__ . '/../ldap.config.php') . ') was not found'
        );
    }

    return array(
        'service_manager' => array(
            'factories' => array(
                'ldap' => function ($serviceManager) {
                    $ldapConfig = include __DIR__ . '/../ldap.config.php';

                    $ldap = new Zend\Ldap\Ldap(
                        array(
                            'host'           => $ldapConfig['host'],
                            'username'       => $ldapConfig['username'],
                            'password'       => $ldapConfig['password'],
                            'bindRequiresDn' => $ldapConfig['bindRequiresDn'],
                            'baseDn'         => $ldapConfig['baseDn'],
                        )
                    );
                    return $ldap;
                },
            ),
        ),
    );
}

return array();
{'fraction_non_alphanumeric': 0.15163934426229508, 'fraction_numerical': 0.0, 'mean_word_length': 1.4206611570247933, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 49, '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': '2112225', 'n_tokens_mistral': 834, 'n_tokens_neox': 813, 'n_words': 190}