<commit_before>
let MapConversationTextSourceController = MapConversationSourceController.createComponent("MapConversationTextSourceController");

MapConversationTextSourceController.createViewFragment = function () {
  return cloneTemplate("#template-map-conversation-textsource");
};

MapConversationTextSourceController.defineMethod("initView", function initView() {
  if (!this.view) return;

  this.quill = new Quill(this.view.querySelector(".text"), {
    readOnly: true
  });
});

MapConversationTextSourceController.defineMethod("updateView", function updateView() {
  if (!this.view) return;

  this.quill.setText(this.source.content);
});<commit_msg>Review and annotate MapConversationTextSourceController<commit_after>
/**
 * MapConversationTextSourceController
 * Concrete view controller to display a text source.
 * @constructor
 */
let MapConversationTextSourceController = MapConversationSourceController.createComponent("MapConversationTextSourceController");

MapConversationTextSourceController.createViewFragment = function () {
  return cloneTemplate("#template-map-conversation-textsource");
};

// View

MapConversationTextSourceController.defineMethod("initView", function initView() {
  if (!this.view) return;

  this.quill = new Quill(this.view.querySelector(".text"), {
    readOnly: true
  });

});

MapConversationTextSourceController.defineMethod("updateView", function updateView() {
  if (!this.view) return;

  this.quill.setText(this.source.content);

});

MapConversationTextSourceController.defineMethod("uninitView", function unitView() {
  if (!this.view) return;

  delete this.quill;

});
{'fraction_non_alphanumeric': 0.11786372007366483, 'fraction_numerical': 0.0, 'mean_word_length': 7.029556650246305, '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': '3515371', 'n_tokens_mistral': 442, 'n_tokens_neox': 437, 'n_words': 74}