<commit_before>openerp.process = function (instance) {
var QWeb = instance.web.qweb,
      _t = instance.web._t;
instance.web.ViewManager.include({
    start: function() {
        var self = this;
        var _super = this._super();
        this.process_help = this.action ? this.action.help : '';
        self.process_help = $(this.process_help).text();
        if(this.action) {
            this.process_model = this.action.res_model;
        } else {
            this.process_model = this.dataset.model;
        }
        this.$el.on('click', '.oe_process', function(ev) { self.initialize_process_view(ev);});
        return _super;
    },
    initialize_process_view: function(ev) {
        var self = this;
        this.record_id = false;
        if(this.active_view == 'form') {
            this.record_id = this.views[this.active_view].controller.datarecord.id;
        }
        this.process_get_object().pipe(function(process) {<commit_msg>[FIX] Fixed process.js, unuseful code.<commit_after>openerp.process = function (instance) {
var QWeb = instance.web.qweb,
      _t = instance.web._t;
instance.web.ViewManager.include({
    start: function() {
        var self = this;
        var _super = this._super();
        this.process_help = this.action ? this.action.help : '';
        if(this.action) {
            this.process_model = this.action.res_model;
        } else {
            this.process_model = this.dataset.model;
        }
        this.$el.on('click', '.oe_process', function(ev) { self.initialize_process_view(ev);});
        return _super;
    },
    initialize_process_view: function(ev) {
        var self = this;
        this.record_id = false;
        if(this.active_view == 'form') {
            this.record_id = this.views[this.active_view].controller.datarecord.id;
        }
        this.process_get_object().pipe(function(process) {
{'fraction_non_alphanumeric': 0.13558413719185422, 'fraction_numerical': 0.0, 'mean_word_length': 2.4256880733944954, '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': '7234780', 'n_tokens_mistral': 574, 'n_tokens_neox': 570, 'n_words': 94}