<commit_before>export default function ProfileResource({apiHandler}) {
    return {
        async get() {
            return await apiHandler.get(`profile`);
        },

        async update({data}) {
            return await apiHandler.put(`profile`, data);
        },

        async resetTotp() {
            return await apiHandler.post(`profile/totp-reset`);
        }
    };
};
<commit_msg>Added profile resource updatePassword method<commit_after>export default function ProfileResource({apiHandler}) {
    return {
        async get() {
            return await apiHandler.get(`profile`);
        },

        async update({data}) {
            return await apiHandler.put(`profile`, data);
        },

        async updatePassword({data}) {
            return await apiHandler.post(`profile/password`, data);
        },

        async resetTotp() {
            return await apiHandler.post(`profile/totp-reset`);
        }
    };
};

{'fraction_non_alphanumeric': 0.12234042553191489, 'fraction_numerical': 0.0, 'mean_word_length': 2.0953947368421053, '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': '5811260', 'n_tokens_mistral': 238, 'n_tokens_neox': 234, 'n_words': 52}