<commit_before>/* global angular */
;(function () {
  angular.module('resilienzManager')
    .controller('resilienzManager-Finalize', ['$rootScope', 'resilienzManagerDataProvider', function ($rootScope, resilienzManagerDataProvider) {
      var self = this
      self.isLoading = true
      self.final = false
      resilienzManagerDataProvider.action($rootScope.id).then(function (action) {
        self.final = action.data.finalized
        self.isLoading = false
      }, function (error) {
        console.error(error)
      })
      self.finalize = function () {
        self.isLoading = true
        resilienzManagerDataProvider.actionMakeFinal($rootScope.action).then(function () {
          self.final = true
          self.isLoading = false
        }, function (error) {
          console.error(error)
        })
      }
    }])
}())
<commit_msg>final fix<commit_after>/* global angular */
;(function () {
  angular.module('resilienzManager')
    .controller('resilienzManager-Finalize', ['$rootScope', 'resilienzManagerDataProvider', function ($rootScope, resilienzManagerDataProvider) {
      var self = this
      self.isLoading = true
      self.final = false
      resilienzManagerDataProvider.action($rootScope.id).then(function (action) {
        self.final = (action.data.finalized === 1)
        self.isLoading = false
      }, function (error) {
        console.error(error)
      })
      self.finalize = function () {
        self.isLoading = true
        resilienzManagerDataProvider.actionMakeFinal($rootScope.action).then(function () {
          self.final = true
          self.isLoading = false
        }, function (error) {
          console.error(error)
        })
      }
    }])
}())

{'fraction_non_alphanumeric': 0.1266044340723454, 'fraction_numerical': 0.0005834305717619603, 'mean_word_length': 2.648936170212766, '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': '6530551', 'n_tokens_mistral': 493, 'n_tokens_neox': 489, 'n_words': 80}