<commit_before>// go.apps.dialogue.actions
// ========================

(function(exports) {
  var actions = go.components.actions,
      SaveActionView = actions.SaveActionView;

  var DialogueActionsView = Backbone.View.extend({
    initialize: function(options) {
      this.diagram = options.diagram;
      this.model = this.diagram.model;

      this.save = new SaveActionView({
        el: this.$('[data-action=save]'),
        sessionId: options.sessionId,
        model: this.model
      });

      this.listenTo(this.save, 'error', function() {
        bootbox.alert("Something bad happened, changes couldn't be saved.");
      });

      this.listenTo(this.save, 'success', function() {
        bootbox.alert("Something bad happened, changes couldn't be saved.");

        // send user to conversation show page<commit_msg>Successful dialogue edit saves shouldn't show an error message (woops :)<commit_after>// go.apps.dialogue.actions
// ========================

(function(exports) {
  var actions = go.components.actions,
      SaveActionView = actions.SaveActionView;

  var DialogueActionsView = Backbone.View.extend({
    initialize: function(options) {
      this.diagram = options.diagram;
      this.model = this.diagram.model;

      this.save = new SaveActionView({
        el: this.$('[data-action=save]'),
        sessionId: options.sessionId,
        model: this.model
      });

      this.listenTo(this.save, 'error', function() {
        bootbox.alert("Something bad happened, changes couldn't be saved.");
      });

      this.listenTo(this.save, 'success', function() {
        // send user to conversation show page
{'fraction_non_alphanumeric': 0.15482695810564662, 'fraction_numerical': 0.0, 'mean_word_length': 3.0293398533007334, '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': '2971249', 'n_tokens_mistral': 469, 'n_tokens_neox': 451, 'n_words': 106}