<commit_before>'use strict';

starChat.User = (function () {
    var User = function (name) {
        this.name_ = name;
        this.keywords_ = [];
    };
    User.prototype.name = function () {
        return this.name_;
    };
    User.prototype.keywords = function (value) {
        if (value !== void(0)) {
            if (!$.isArray(value)) {
                throw 'Invalid assignment: value is not an array';
            }
            this.keywords_ = value;
            return this;
        } else {
            return this.keywords_;
        }
    };
    User.prototype.load = function (session, callback) {
        var url = '/users/' + encodeURIComponent(this.name_);
        var self = this;
        starChat.ajaxRequest(session, url, 'GET', null, function (sessionId, url, method, data) {
            self.keywords_ = data.keywords;
            if (callback !== void(0)) {
                callback(sessionId, url, method, data);
            }
        });
    };
    User.prototype.save = function (session, callback) {
        var url = '/users/' + encodeURIComponent(this.name_);
        starChat.ajaxRequest(session, url, 'PUT', {<commit_msg>Changed the variable's name<commit_after>'use strict';

starChat.User = (function () {
    var User = function (name) {
        this.name_ = name;
        this.keywords_ = [];
    };
    User.prototype.name = function () {
        return this.name_;
    };
    User.prototype.keywords = function (keywords) {
        if (keywords !== void(0)) {
            if (!$.isArray(keywords)) {
                throw 'Invalid assignment: keywords is not an array';
            }
            this.keywords_ = keywords;
            return this;
        } else {
            return this.keywords_;
        }
    };
    User.prototype.load = function (session, callback) {
        var url = '/users/' + encodeURIComponent(this.name_);
        var self = this;
        starChat.ajaxRequest(session, url, 'GET', null, function (sessionId, url, method, data) {
            self.keywords_ = data.keywords;
            if (callback !== void(0)) {
                callback(sessionId, url, method, data);
            }
        });
    };
    User.prototype.save = function (session, callback) {
        var url = '/users/' + encodeURIComponent(this.name_);
        starChat.ajaxRequest(session, url, 'PUT', {
{'fraction_non_alphanumeric': 0.13347547974413645, 'fraction_numerical': 0.0017057569296375266, 'mean_word_length': 1.8891625615763548, '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': '5433242', 'n_tokens_mistral': 655, 'n_tokens_neox': 644, 'n_words': 159}