<commit_before>// CodeMirror, copyright (c) by <NAME> and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
  "use strict";
  if (typeof exports === "object" && typeof module === "object") {// CommonJS
    mod(require("../../lib/codemirror"),
        require("../xml/xml"),
        require("../javascript/javascript"),
        require("../coffeescript/coffeescript"),
        require("../css/css"),
        require("../sass/sass"),
        require("../stylus/stylus"),
        require("../jade/jade"));
  } else if (typeof define === "function" && define.amd) { // AMD
    define(["../../lib/codemirror",
            "../xml/xml",
            "../javascript/javascript",
            "../coffeescript/coffeescript",
            "../css/css",
            "../sass/sass",
            "../stylus/stylus",
            "../jade/jade"], mod);
  } else { // Plain browser env
    mod(CodeMirror);
  }
})(function (CodeMirror) {


 CodeMirror.defineMode("vue-template", function(config, parserConfig) {
  "use strict";
  var mustacheOverlay = {
    token: function (stream, state) {
      var ch;
      if (stream.match("{{")) {
        while ((ch = stream.next()) != null)
          if (ch == "}" && stream.next() == "}") {
            stream.eat("}");
            return "mustache";
          }
      }
      while (stream.next() != null && !stream.match("{{", false)) {}
      return null;
    }
  };
  return CodeMirror.overlayMode(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), mustacheOverlay);
});

  CodeMirror.defineMode("vue", function (config) {
    function maybeBackup(stream, pat, style) {
      var cur = stream.current(), close = cur.search(pat);
      if (close > -1) {
        stream.backUp(cur.length - close);
      } else if (cur.match(/<\/?$/)) {
        stream.backUp(cur.length);
        if (!stream.match(pat, false)) {
          stream.match(cur);
        }
      }
      return style;
    }
    var htmlMode = CodeMirror.getMode(config, 'htmlmixed'),
      html = null,
      supported = {
        script: {
          lang: {
            javascript: CodeMirror.getMode(config, 'javascript'),
            coffee: CodeMirror.getMode(config, 'coffeescript'),
            coffeescript: CodeMirror.getMode(config, 'coffeescript'),
            babel: CodeMirror.getMode(config, 'javascript')
          },
          type: {
            'text/javascript': CodeMirror.getMode(config, 'javascript'),
            'coffeescript': CodeMirror.getMode(config, 'coffeescript'),
            'text/coffeescript': CodeMirror.getMode(config, 'coffeescript'),
            'text/x-coffeescript': CodeMirror.getMode(config, 'coffeescript')
          },
          'default': CodeMirror.getMode(config, 'javascript')
        },
        style:  {
          lang: {
            css: CodeMirror.getMode(config, 'css'),
            stylus: CodeMirror.getMode(config, 'stylus'),
            sass: CodeMirror.getMode(config, 'sass')
          },
          type: {
            'text/stylesheet': CodeMirror.getMode(config, 'css'),
            'text/x-styl': CodeMirror.getMode(config, 'stylus'),
            'stylus': CodeMirror.getMode(config, 'stylus')
          },
          'default': CodeMirror.getMode(config, 'css'),
        },
        template: {
          lang: {
            vue: CodeMirror.getMode(config, 'vue-template'),
            jade: CodeMirror.getMode(config, 'jade')
          },
          type: {
            'text/x-jade': CodeMirror.getMode(config, 'jade')
          },
          'default': CodeMirror.getMode(config, 'vue-template')<commit_msg>Code style cleanup<commit_after>// CodeMirror, copyright (c) by <NAME> and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function (mod) {
  "use strict";
  if (typeof exports === "object" && typeof module === "object") {// CommonJS
    mod(require("../../lib/codemirror"),
        require("../xml/xml"),
        require("../javascript/javascript"),
        require("../coffeescript/coffeescript"),
        require("../css/css"),
        require("../sass/sass"),
        require("../stylus/stylus"),
        require("../jade/jade"));
  } else if (typeof define === "function" && define.amd) { // AMD
    define(["../../lib/codemirror",
            "../xml/xml",
            "../javascript/javascript",
            "../coffeescript/coffeescript",
            "../css/css",
            "../sass/sass",
            "../stylus/stylus",
            "../jade/jade"], mod);
  } else { // Plain browser env
    mod(CodeMirror);
  }
})(function (CodeMirror) {


 CodeMirror.defineMode("vue-template", function(config, parserConfig) {
  "use strict";
  var mustacheOverlay = {
    token: function (stream) {
      var ch;
      if (stream.match("{{")) {
        while ((ch = stream.next()) != null)
          if (ch == "}" && stream.next() == "}") {
            stream.eat("}");
            return "mustache";
          }
      }
      while (stream.next() != null && !stream.match("{{", false)) {}
      return null;
    }
  };
  return CodeMirror.overlayMode(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), mustacheOverlay);
});

  CodeMirror.defineMode("vue", function (config) {
    function maybeBackup(stream, pat, style) {
      var cur = stream.current(), close = cur.search(pat);
      if (close > -1) {
        stream.backUp(cur.length - close);
      } else if (cur.match(/<\/?$/)) {
        stream.backUp(cur.length);
        if (!stream.match(pat, false)) {
          stream.match(cur);
        }
      }
      return style;
    }
    var htmlMode = CodeMirror.getMode(config, 'htmlmixed'),
      html = null,
      supported = {
        script: {
          lang: {
            javascript: CodeMirror.getMode(config, 'javascript'),
            coffee: CodeMirror.getMode(config, 'coffeescript'),
            coffeescript: CodeMirror.getMode(config, 'coffeescript'),
            babel: CodeMirror.getMode(config, 'javascript')
          },
          type: {
            'text/javascript': CodeMirror.getMode(config, 'javascript'),
            'coffeescript': CodeMirror.getMode(config, 'coffeescript'),
            'text/coffeescript': CodeMirror.getMode(config, 'coffeescript'),
            'text/x-coffeescript': CodeMirror.getMode(config, 'coffeescript')
          },
          'default': CodeMirror.getMode(config, 'javascript')
        },
        style:  {
          lang: {
            css: CodeMirror.getMode(config, 'css'),
            stylus: CodeMirror.getMode(config, 'stylus'),
            sass: CodeMirror.getMode(config, 'sass')
          },
          type: {
            'text/stylesheet': CodeMirror.getMode(config, 'css'),
            'text/x-styl': CodeMirror.getMode(config, 'stylus'),
            'stylus': CodeMirror.getMode(config, 'stylus')
          },
          'default': CodeMirror.getMode(config, 'css')
        },
        template: {
          lang: {
            vue: CodeMirror.getMode(config, 'vue-template'),
            jade: CodeMirror.getMode(config, 'jade')
          },
          type: {
            'text/x-jade': CodeMirror.getMode(config, 'jade')
          },
          'default': CodeMirror.getMode(config, 'vue-template')
{'fraction_non_alphanumeric': 0.17236132245123806, 'fraction_numerical': 0.00027666343892654584, 'mean_word_length': 2.0844709897610922, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2706064', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2176, 'n_words': 394}