<commit_before>#include "markdowneditorfactory.h"
#include "constants.h"

#include "markdowntextedit.h"

#include <texteditor/normalindenter.h>
#include <texteditor/textdocument.h>

namespace QtcMarkview {
  namespace Internal {

    MarkdownEditorFactory::MarkdownEditorFactory (QObject *parent) :
      TextEditor::TextEditorFactory (parent) {
      setId (Constants::MARKDOWN_EDITOR_ID);
      setDisplayName (QCoreApplication::translate ("OpenWith::Editors",
                                                   Constants::MARKDOWN_EDITOR_NAME));
      addMimeType ("text/plain");
      addMimeType ("text/markdown");

      setDocumentCreator ([]() {
        return new TextEditor::TextDocument (Constants::MARKDOWN_EDITOR_ID);
      });
      setEditorCreator ([]() {
        return new TextEditor::BaseTextEditor;
      });
      setEditorWidgetCreator ([]() {
        return new QMarkdownTextEdit;
      });
      setIndenterCreator ([]() {
        return new TextEditor::NormalIndenter;
      });
      //      setSyntaxHighlighterCreator()
    }

  } // namespace Internal
} // namespace QtcMarkview<commit_msg>Qtc 4.9.0<commit_after>#include "markdowneditorfactory.h"
#include "constants.h"

#include "markdowntextedit.h"

#include <texteditor/normalindenter.h>
#include <texteditor/textdocument.h>

namespace QtcMarkview {
  namespace Internal {

    MarkdownEditorFactory::MarkdownEditorFactory (QObject *parent) :
      TextEditor::TextEditorFactory (parent) {
      setId (Constants::MARKDOWN_EDITOR_ID);
      setDisplayName (QCoreApplication::translate ("OpenWith::Editors",
                                                   Constants::MARKDOWN_EDITOR_NAME));
      addMimeType ("text/plain");
      addMimeType ("text/markdown");

      setDocumentCreator ([]() {
        return new TextEditor::TextDocument (Constants::MARKDOWN_EDITOR_ID);
      });
      setEditorCreator ([]() {
        return new TextEditor::BaseTextEditor;
      });
      setEditorWidgetCreator ([]() {
        return new QMarkdownTextEdit;
      });
      setIndenterCreator ([](QTextDocument *doc) {
        return new TextEditor::NormalIndenter (doc);
      });
      //      setSyntaxHighlighterCreator()
    }

  } // namespace Internal
} // namespace QtcMarkview
{'fraction_non_alphanumeric': 0.11736049601417184, 'fraction_numerical': 0.001328609388839681, 'mean_word_length': 3.0339285714285715, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2463929', 'n_tokens_mistral': 642, 'n_tokens_neox': 629, 'n_words': 105}