<commit_before>
var j_forms = require('j-forms');

module.exports = j_forms.forms.AdminForm.extend({
    get_fields: function() {
        this._super();
        if(this.fields['num_of_given_mandates'])
            this.fields['num_of_given_mandates'].widget.attrs['readonly'] = 'readonly';
        if(this.fields['tokens'])
            this.fields['tokens'].widget.attrs['readonly'] = 'readonly';
        if(this.fields['num_of_extra_tokens'])
            this.fields['num_of_extra_tokens'].widget.attrs['readonly'] = 'readonly';
    },
    actual_save : function(callback)
    {
        var self = this;<commit_msg>the option to add tokens for admin<commit_after>
var j_forms = require('j-forms');

module.exports = j_forms.forms.AdminForm.extend({
    get_fields: function() {
        this._super();
        if(this.fields['num_of_given_mandates'])
            this.fields['num_of_given_mandates'].widget.attrs['readonly'] = 'readonly';
        if(this.fields['num_of_extra_tokens'])
            this.fields['num_of_extra_tokens'].widget.attrs['readonly'] = 'readonly';
    },
    actual_save : function(callback)
    {
        var self = this;
{'fraction_non_alphanumeric': 0.15357766143106458, 'fraction_numerical': 0.0, 'mean_word_length': 3.328301886792453, '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': '4686991', 'n_tokens_mistral': 363, 'n_tokens_neox': 347, 'n_words': 48}