<commit_before>/**
 * Parse profile.
 *
 * @param {object|string} json
 * @return {object}
 * @access public
 */
exports.parse = function(json) {
    if ('string' == typeof json) {
        json = JSON.parse(json);
    }
    var profile = {};
    profile.id = json.User.Id;
    profile.realName = {
        FirstName: json.User.FirstName,
        MidName: json.User.MidName,
        LastName: json.User.LastName
    }
    profile.emails = [{ value: json.User.Account }];

    return profile;

};<commit_msg>update -: receive all profile from oauth2 tool<commit_after>/**
 * Parse profile.
 *
 * @param {object|string} json
 * @return {object}
 * @access public
 */
exports.parse = function(json) {
    if ('string' == typeof json) {
        json = JSON.parse(json);
    }
    // receive all properties
    var profile = Object.assign({}, json.User);

    profile.id = json.User.Id;
    profile.realName = {
        FirstName: json.User.FirstName,
        MidName: json.User.MidName,
        LastName: json.User.LastName
    }
    profile.emails = [{ value: json.User.Account }];

    return profile;

};
{'fraction_non_alphanumeric': 0.14791288566243194, 'fraction_numerical': 0.0009074410163339383, 'mean_word_length': 2.523961661341853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5140058', 'n_tokens_mistral': 356, 'n_tokens_neox': 350, 'n_words': 79}