<commit_before>{
  // session
  // holds a reference to a Monaco editor instance (.me)
  // and processes some of its commands (e.g. .ED(), .ER(), ...)
  function Se(ide) { // constructor
    const se = this;
    se.ide = ide;
    se.hist = [''];
    se.histIdx = 0;
    se.focusTS = 0;
    se.id = 0;
    se.decorations = [];
    // modified lines: lineNumber→originalContent
    // inserted lines: lineNumber→0 (also used in syn.js)
    se.dirty = {};
    se.isReadOnly = !1;

    se.dom = document.createElement('div');
    se.dom.className = 'ride_win';
    se.$e = $(se.dom);
    D.createContextMenu(se.dom, se);
    const fs = D.zoom2fs[D.prf.zoom() + 10];
    const me = monaco.editor.create(se.dom, {
      acceptSuggestionOnCommitCharacter: true,
      acceptSuggestionOnEnter: 'off',
      autoClosingBrackets: !!D.prf.autoCloseBrackets(),
      automaticLayout: false,
      autoIndent: false,
      contextmenu: false,
      cursorStyle: D.prf.blockCursor() ? 'block' : 'line',
      cursorBlinking: D.prf.cursorBlinking(),
      emptySelectionClipboard: false,
      folding: false,
      fontFamily: 'apl',
      fontSize: fs,
      glyphMargin: se.breakpoints,
      iconsInSuggestions: false,
      language: 'apl-session',
      lineHeight: fs + 2,
      lineNumbers: 'off',
      matchBrackets: !!D.prf.matchBrackets(),
      minimap: {
        enabled: D.prf.minimapEnabled(),
        renderCharacters: D.prf.minimapRenderCharacters(),
        showSlider: D.prf.minimapShowSlider(),
      },
      mouseWheelZoom: false,
      quickSuggestions: D.prf.autocompletion() === 'classic',
      quickSuggestionsDelay: D.prf.autocompletionDelay(),
      renderIndentGuides: false,
      renderLineHighlight: D.prf.renderLineHighlight(),
      selectionHighlight: D.prf.selectionHighlight(),
      snippetSuggestions: D.prf.snippetSuggestions(),
      suggestOnTriggerCharacters: D.prf.autocompletion() === 'classic',
      useTabStops: false,
      wordBasedSuggestions: false,
      wordSeparators: D.wordSeparators,
      wordWrap: D.prf.wrap() ? 'on' : 'off',
      unusualLineTerminators: 'off',  // iss646: Prevent message prompt about unusual line endings
    });
    se.me = me;
    se.me_ready = new Promise((resolve) => {
      // ugly hack as monaco doesn't have a built in event for when the editor is ready?!<commit_msg>allow autocomplete to overflow outside session (#670)<commit_after>{
  // session
  // holds a reference to a Monaco editor instance (.me)
  // and processes some of its commands (e.g. .ED(), .ER(), ...)
  function Se(ide) { // constructor
    const se = this;
    se.ide = ide;
    se.hist = [''];
    se.histIdx = 0;
    se.focusTS = 0;
    se.id = 0;
    se.decorations = [];
    // modified lines: lineNumber→originalContent
    // inserted lines: lineNumber→0 (also used in syn.js)
    se.dirty = {};
    se.isReadOnly = !1;

    se.dom = document.createElement('div');
    se.dom.className = 'ride_win';
    se.$e = $(se.dom);
    D.createContextMenu(se.dom, se);
    const fs = D.zoom2fs[D.prf.zoom() + 10];
    const me = monaco.editor.create(se.dom, {
      acceptSuggestionOnCommitCharacter: true,
      acceptSuggestionOnEnter: 'off',
      autoClosingBrackets: !!D.prf.autoCloseBrackets(),
      automaticLayout: false,
      autoIndent: false,
      contextmenu: false,
      cursorStyle: D.prf.blockCursor() ? 'block' : 'line',
      cursorBlinking: D.prf.cursorBlinking(),
      emptySelectionClipboard: false,
      folding: false,
      fontFamily: 'apl',
      fontSize: fs,
      fixedOverflowWidgets: true,
      glyphMargin: se.breakpoints,
      iconsInSuggestions: false,
      language: 'apl-session',
      lineHeight: fs + 2,
      lineNumbers: 'off',
      matchBrackets: !!D.prf.matchBrackets(),
      minimap: {
        enabled: D.prf.minimapEnabled(),
        renderCharacters: D.prf.minimapRenderCharacters(),
        showSlider: D.prf.minimapShowSlider(),
      },
      mouseWheelZoom: false,
      quickSuggestions: D.prf.autocompletion() === 'classic',
      quickSuggestionsDelay: D.prf.autocompletionDelay(),
      renderIndentGuides: false,
      renderLineHighlight: D.prf.renderLineHighlight(),
      selectionHighlight: D.prf.selectionHighlight(),
      snippetSuggestions: D.prf.snippetSuggestions(),
      suggestOnTriggerCharacters: D.prf.autocompletion() === 'classic',
      useTabStops: false,
      wordBasedSuggestions: false,
      wordSeparators: D.wordSeparators,
      wordWrap: D.prf.wrap() ? 'on' : 'off',
      unusualLineTerminators: 'off',  // iss646: Prevent message prompt about unusual line endings
    });
    se.me = me;
    se.me_ready = new Promise((resolve) => {
      // ugly hack as monaco doesn't have a built in event for when the editor is ready?!
{'fraction_non_alphanumeric': 0.13292734145317095, 'fraction_numerical': 0.005669886602267955, 'mean_word_length': 2.8629359286293594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3036080', 'n_tokens_mistral': 1581, 'n_tokens_neox': 1519, 'n_words': 345}