<commit_before>/*
Language: LiveScript
Author: <NAME> <<EMAIL>>
Contributors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
Description: LiveScript is a programming language that transcompiles to JavaScript. For info about language see http://livescript.net/
*/

function(hljs) {
  var KEYWORDS = {
    keyword:
      // JS keywords
      'in if for while finally new do return else break catch instanceof throw try this ' +
      'switch continue typeof delete debugger super case default function var with ' +
      // LiveScript keywords
      'then unless until loop of by when and or is isnt not let fallthrough otherwise from to til',
    literal:
      // JS literals
      'true false null undefined ' +
      // LiveScript literals
      'yes no on off it that void',
    reserved:
      'const enum export import native ' +
      '__hasProp __extends __slice __bind __indexOf',
    built_in:
      'npm require console print module global window document'
  };
  var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_\-]*';
  var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: JS_IDENT_RE});
  var SUBST = {
    className: 'subst',
    begin: /#\{/, end: /}/,
    keywords: KEYWORDS
  };
  var EXPRESSIONS = [
    hljs.BINARY_NUMBER_MODE,
    {
      className: 'number',
      variants: [
        {
          begin: '(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?)([eE][-+]?\\d+)?)',
          end: '(\\s*/)?', // a number tries to eat the following slash to prevent treating it as a regexp
          relevance: 0
        }
      ]
    },
    {
      className: 'string',
      variants: [
        {
          begin: /'''/, end: /'''/,
          contains: [hljs.BACKSLASH_ESCAPE]
        },
        {
          begin: /'/, end: /'/,
          contains: [hljs.BACKSLASH_ESCAPE]
        },
        {
          begin: /"""/, end: /"""/,
          contains: [hljs.BACKSLASH_ESCAPE, SUBST]
        },
        {
          begin: /"/, end: /"/,
          contains: [hljs.BACKSLASH_ESCAPE, SUBST]
        },
        {
          begin: /\\/, end: /[^,\]\}\n\r]+/,
          contains: [hljs.BACKSLASH_ESCAPE],
          relevance: 10
        }
      ]
    },
    {
      className: 'regexp',
      variants: [
        {
          begin: '//', end: '//',
          contains: [SUBST, hljs.HASH_COMMENT_MODE],
          relevance: 5
        },
        {
          begin: '//[gim]*',
          relevance: 0
        },
        {
          begin: '/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)' // \S is required to parse x / 2 / 3 as two divisions
        }
      ]
    },
    {
      className: 'property',
      begin: '@' + JS_IDENT_RE
    },
    {<commit_msg>Add support for no-bracket string substitution identification<commit_after>/*
Language: LiveScript
Author: <NAME> <<EMAIL>>
Contributors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
Description: LiveScript is a programming language that transcompiles to JavaScript. For info about language see http://livescript.net/
*/

function(hljs) {
  var KEYWORDS = {
    keyword:
      // JS keywords
      'in if for while finally new do return else break catch instanceof throw try this ' +
      'switch continue typeof delete debugger super case default function var with ' +
      // LiveScript keywords
      'then unless until loop of by when and or is isnt not let fallthrough otherwise from to til',
    literal:
      // JS literals
      'true false null undefined ' +
      // LiveScript literals
      'yes no on off it that void',
    reserved:
      'const enum export import native ' +
      '__hasProp __extends __slice __bind __indexOf',
    built_in:
      'npm require console print module global window document'
  };
  var JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_\-]*';
  var TITLE = hljs.inherit(hljs.TITLE_MODE, {begin: JS_IDENT_RE});
  var SUBST = {
    className: 'subst',
    begin: /#\{/, end: /\}/,
    keywords: KEYWORDS
  };
  var SUBST_SIMPLE = {
    className: 'subst',
    begin: /#[A-Za-z$_]/, end: /(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,
    keywords: KEYWORDS
  }
  var EXPRESSIONS = [
    hljs.BINARY_NUMBER_MODE,
    {
      className: 'number',
      variants: [
        {
          begin: '(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?)([eE][-+]?\\d+)?)',
          end: '(\\s*/)?', // a number tries to eat the following slash to prevent treating it as a regexp
          relevance: 0
        }
      ]
    },
    {
      className: 'string',
      variants: [
        {
          begin: /'''/, end: /'''/,
          contains: [hljs.BACKSLASH_ESCAPE]
        },
        {
          begin: /'/, end: /'/,
          contains: [hljs.BACKSLASH_ESCAPE]
        },
        {
          begin: /"""/, end: /"""/,
          contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE]
        },
        {
          begin: /"/, end: /"/,
          contains: [hljs.BACKSLASH_ESCAPE, SUBST, SUBST_SIMPLE]
        },
        {
          begin: /\\/, end: /[^,\]\}\n\r]+/,
          contains: [hljs.BACKSLASH_ESCAPE],
          relevance: 10
        }
      ]
    },
    {
      className: 'regexp',
      variants: [
        {
          begin: '//', end: '//',
          contains: [SUBST, hljs.HASH_COMMENT_MODE],
          relevance: 5
        },
        {
          begin: '//[gim]*',
          relevance: 0
        },
        {
          begin: '/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)' // \S is required to parse x / 2 / 3 as two divisions
        }
      ]
    },
    {
      className: 'property',
      begin: '@' + JS_IDENT_RE
    },
    {
{'fraction_non_alphanumeric': 0.16394038531443111, 'fraction_numerical': 0.005089058524173028, 'mean_word_length': 1.7625502008032128, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '6172439', 'n_tokens_mistral': 1890, 'n_tokens_neox': 1825, 'n_words': 456}