<commit_before><?php

class QuoteMediaConst {

    const URL_ROOT = 'http://app.quotemedia.com/data/';
    
    /* Function Identifiers */
    const GET_QUOTES = 0; ///< function identifier for getQuotes
    const GET_PROFILES = 1; ///< function identifier for getProfiles
    const GET_FUNDAMENTALS = 2; ///< function identifier for getFundamentals

    /**
     * Convert a function ID to string
     * @param integer $id function integer id
     * @return string function name
     */
    public static function functIdToStr($id) {
        switch ($id) {
            case GET_QUOTES:
                return "getQuotes";
            case GET_PROFILES:
                return "getProfiles";
            case GET_FUNDAMENTALS:
                return "getFundamentals";
            default:
                die('functIdToStr passed invalid $id ' . $id);
        }
    }

    /* Constants */
    const GET_QUOTES_MAX_SYMBOLS = 100; ///< maximum symbols per getQuotes call
    const GET_PROFILES_MAX_SYMBOLS = 50; ///< maximum symbols per getProfiles call
    const GET_FUNDAMENTALS_MAX_SYMBOLS = 50; ///< maximum symbols per getFundamentals call

}

?><commit_msg>bugfix<commit_after><?php

class QuoteMediaConst {

    const URL_ROOT = 'http://app.quotemedia.com/data/';
    
    /* Function Identifiers */
    const GET_QUOTES = 0; ///< function identifier for getQuotes
    const GET_PROFILES = 1; ///< function identifier for getProfiles
    const GET_FUNDAMENTALS = 2; ///< function identifier for getFundamentals

    /**
     * Convert a function ID to string
     * @param integer $id function integer id
     * @return string function name
     */
    public static function functIdToStr($id) {
        switch ($id) {
            case QuoteMediaConst::GET_QUOTES:
                return "getQuotes";
            case QuoteMediaConst::GET_PROFILES:
                return "getProfiles";
            case QuoteMediaConst::GET_FUNDAMENTALS:
                return "getFundamentals";
            default:
                die('functIdToStr passed invalid $id ' . $id);
        }
    }

    /* Constants */
    const GET_QUOTES_MAX_SYMBOLS = 100; ///< maximum symbols per getQuotes call
    const GET_PROFILES_MAX_SYMBOLS = 50; ///< maximum symbols per getProfiles call
    const GET_FUNDAMENTALS_MAX_SYMBOLS = 50; ///< maximum symbols per getFundamentals call

}

?>
{'fraction_non_alphanumeric': 0.09206081081081081, 'fraction_numerical': 0.008445945945945946, 'mean_word_length': 2.2675862068965515, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 5, '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': '777676', 'n_tokens_mistral': 731, 'n_tokens_neox': 680, 'n_words': 188}