<commit_before>HB.ModalsEditAnimeController = Ember.ObjectController.extend(HB.ModalControllerMixin, {
  canSave: Ember.computed.not('isDirty'),
  actions: {
    save: function () {
      Messenger().expectPromise(function() {
        return this.get('content').save();
      }.bind(this), {
        progressMessage: 'Contacting server...',<commit_msg>escape urls added to edit form<commit_after>HB.ModalsEditAnimeController = Ember.ObjectController.extend(HB.ModalControllerMixin, {
  canSave: Ember.computed.not('isDirty'),

  escapeURIs: function() {
    this.get('content').setProperties({
      'posterImage': encodeURI(this.get('content.posterImage')),
      'coverImage': encodeURI(this.get('content.coverImage'))
    });
  },

  actions: {
    save: function () {
      this.escapeURIs();
      Messenger().expectPromise(function() {
        return this.get('content').save();
      }.bind(this), {
        progressMessage: 'Contacting server...',
{'fraction_non_alphanumeric': 0.15916230366492146, 'fraction_numerical': 0.0, 'mean_word_length': 3.9278350515463916, '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': '1083112', 'n_tokens_mistral': 294, 'n_tokens_neox': 285, 'n_words': 40}