<commit_before>PANDA.views.User = Backbone.View.extend({
    el: $("#content"),

    user: null,
    datasets: null,

    edit_view: null,
    change_password_view: null,

    initialize: function(options) {
        _.bindAll(this);
        
        this.edit_view = new PANDA.views.UserEdit();
        this.change_password_view = new PANDA.views.UserChangePassword();
    },

    reset: function(id) {
        this.user = new PANDA.models.User({ resource_uri: PANDA.API + "/user/" + id + "/" });
        this.datasets = new PANDA.collections.Datasets();

        this.user.fetch({
            async: false,
            success: _.bind(function(model, response) {
                this.datasets.fetch({
                    data: {
                        creater_email: this.user.get("email"),
                        simple: true,
                        limit: 1000
                    },
                    success: _.bind(function(model, response) {
                        this.render();
                    }, this),
                    error: _.bind(function(model, response) {
                        if (response.status == 404) {
                            Redd.goto_not_found(); 
                        } else {
                            Redd.goto_server_error();<commit_msg>Fix stupid typo breaking user dataset list.<commit_after>PANDA.views.User = Backbone.View.extend({
    el: $("#content"),

    user: null,
    datasets: null,

    edit_view: null,
    change_password_view: null,

    initialize: function(options) {
        _.bindAll(this);
        
        this.edit_view = new PANDA.views.UserEdit();
        this.change_password_view = new PANDA.views.UserChangePassword();
    },

    reset: function(id) {
        this.user = new PANDA.models.User({ resource_uri: PANDA.API + "/user/" + id + "/" });
        this.datasets = new PANDA.collections.Datasets();

        this.user.fetch({
            async: false,
            success: _.bind(function(model, response) {
                this.datasets.fetch({
                    data: {
                        creator_email: this.user.get("email"),
                        simple: true,
                        limit: 1000
                    },
                    success: _.bind(function(model, response) {
                        this.render();
                    }, this),
                    error: _.bind(function(model, response) {
                        if (response.status == 404) {
                            Redd.goto_not_found(); 
                        } else {
                            Redd.goto_server_error();
{'fraction_non_alphanumeric': 0.1169478527607362, 'fraction_numerical': 0.005368098159509203, 'mean_word_length': 1.3462230215827338, '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': '1758547', 'n_tokens_mistral': 721, 'n_tokens_neox': 665, 'n_words': 127}