<commit_before>using System;
using Qyoto;
using Kimono;

public class Editor
{
    public static int Main(String[] args) {
        KAboutData about = new KAboutData("editor", "Text Editor Example", KDE.Ki18n(""), "0.1");
        KCmdLineArgs.Init(args, about);
        KApplication a = new KApplication();

        KParts.MainWindow w = new KParts.MainWindow(null, 0);

//      This doesn't compile, not sure why:
//      KTextEditor.Editor editor = KTextEditor.Editor("katepart");

        KTextEditor.Editor editor = KTextEditor.EditorChooser.Editor();
        editor.SetSimpleMode(true);
        KTextEditor.Document doc = editor.CreateDocument(w);
        KTextEditor.View view = doc.CreateView(w);
        w.SetCentralWidget(view);
        doc.SetText("Here is some text..");
        w.Show();

        return KApplication.Exec();
    }
}
<commit_msg>* Use KTextEditor.Global.Editor() instead of KTextEditor.Editor,   which is actually a class.<commit_after>using System;
using Qyoto;
using Kimono;

public class Editor
{
    public static int Main(String[] args) {
        KAboutData about = new KAboutData("editor", "Text Editor Example", KDE.Ki18n(""), "0.1");
        KCmdLineArgs.Init(args, about);
        KApplication a = new KApplication();

        KParts.MainWindow w = new KParts.MainWindow(null, 0);

        KTextEditor.Editor editor = KTextEditor.Global.Editor("katepart");

//      other possibility
//      KTextEditor.Editor editor = KTextEditor.EditorChooser.Editor();
        editor.SetSimpleMode(true);
        KTextEditor.Document doc = editor.CreateDocument(w);
        KTextEditor.View view = doc.CreateView(w);
        w.SetCentralWidget(view);
        doc.SetText("Here is some text..");
        w.Show();

        return KApplication.Exec();
    }
}

{'fraction_non_alphanumeric': 0.12352610892756878, 'fraction_numerical': 0.005614823133071308, 'mean_word_length': 2.96, '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': '4107935', 'n_tokens_mistral': 542, 'n_tokens_neox': 522, 'n_words': 128}