<commit_before><?php

/**
 * Created by PhpStorm.
 * User: melon
 * Date: 6/4/15
 * Time: 12:53 PM
 */
class Config
{

    /**
     * @return array
     */
    public static function getSQLConf()
    {
        return array(
            'db_name' => 'universal_user_data',
            'db_user' => 'uudapi',
            'db_pass' => '<PASSWORD>',
            'db_host' => 'localhost',
            'db_user_table' => 'user_info',
            'db_building_table' => 'building_info',
            'db_role_table' => 'role_info',
            'db_campus_table' => 'campus_info',
            'db_program_table' => 'program_info',
            'db_department_table' => 'department_info',
            'db_api_key_table' => 'api_keys',
        );
    }

    /**
     * @return array
     */
    public static function getProtectedAttributes()
    {
        return array('id', 'sageid', 'code');
    }

    /**
     * @return array
     */
    public static function getUserAttributes()
    {
        return array(
            'sageid' => true,
            'username' => true,
            'name_first' => true,
            'name_middle' => false,
            'name_last' => true,
            'email' => true,
            'email2' => false,
            'building' => false,
            'role' => true,
            'active' => true,
            'phone' => false,
            'room' => false
        );
    }

    /**
     * @return array
     */
    public static function getRoleAttributes()
    {
        return array(
            'code' => true,
            'name' => true
        );
    }

    /**
     * @return array
     */
    public static function getCampusAttributes()
    {
        return array(
            'code' => true,
            'name' => true
        );
    }

    /**
     * @return array
     */
    public static function getBuildingAttributes()
    {
        return array(
            'code' => true,
            'campus' => true,
            'name' => true
        );
    }

    public static function getDepartmentAttributes()
    {
        return array(
            'code' => true,
            'name' => true,
            'academic' => true
        );

    }

    public static function getAcademicProgramsAttributes()
    {
        return array(
            'code' => true,
            'name' => true,
            'department' => false
        );
    }

}<commit_msg>updated config for future improvments<commit_after><?php

/**
 * Created by PhpStorm.
 * User: melon
 * Date: 6/4/15
 * Time: 12:53 PM
 */
class Config
{

    /**
     * @return array
     */
    public static function getSQLConf()
    {
        return array(
            'db_name' => 'universal_user_data',
            'db_user' => 'uudapi',
            'db_pass' => '<PASSWORD>',
            'db_host' => 'localhost',
            'db_user_table' => 'user_info',
            'db_building_table' => 'building_info',
            'db_role_table' => 'role_info',
            'db_campus_table' => 'campus_info',
            'db_program_table' => 'program_info',
            'db_department_table' => 'department_info',
            'db_api_key_table' => 'api_keys',
            'db_user_dept' => 'user_departments',
            'db_user_prog' => 'user_programs',
            'db_user_role' => 'user_roles'
        );
    }

    /**
     * @return array
     */
    public static function getProtectedAttributes()
    {
        return array('id', 'sageid', 'code');
    }

    /**
     * @return array
     */
    public static function getUserAttributes()
    {
        return array(
            'sageid' => true,
            'username' => true,
            'name_first' => true,
            'name_middle' => false,
            'name_last' => true,
            'email' => true,
            'email2' => false,
            'building' => false,
            'role' => true,
            'active' => true,
            'phone' => false,
            'room' => false
        );
    }

    /**
     * @return array
     */
    public static function getRoleAttributes()
    {
        return array(
            'code' => true,
            'name' => true
        );
    }

    /**
     * @return array
     */
    public static function getCampusAttributes()
    {
        return array(
            'code' => true,
            'name' => true
        );
    }

    /**
     * @return array
     */
    public static function getBuildingAttributes()
    {
        return array(
            'code' => true,
            'campus' => true,
            'name' => true
        );
    }

    public static function getDepartmentAttributes()
    {
        return array(
            'code' => true,
            'name' => true,
            'academic' => true
        );

    }

    public static function getAcademicProgramsAttributes()
    {
        return array(
            'code' => true,
            'name' => true,
            'department' => false
        );
    }

}
{'fraction_non_alphanumeric': 0.13688058489033306, 'fraction_numerical': 0.0036555645816409425, 'mean_word_length': 1.4118511263467188, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 80, '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': '588161', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1438, 'n_words': 304}