<commit_before>var complex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

function () {
  var re = /a/;

  if (!/b/) {}
  if (!!/b/) {}
  if (!!!/b/) {}
  if (!!!!/b/) {}

  if (+/b/) {}
  if (-/b/) {}
 
  if (+ /b/) {}
  if (- /b/) {}
 

  return /c/;

}

var a = 1;
a++;
++a;
a--;
--a;

a += 1;
a -= 1;

a = a + 100;
a = a + /* comment */ 100;

a+++; // expect to see invalid red
a---; // expect to see invalid red

<commit_msg>Regexp flags<commit_after>var complex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

function () {
  var re = /a/;

  if (!/b/) {}
  if (!!/b/) {}
  if (!!!/b/) {}
  if (!!!!/b/) {}

  if (+/b/) {}
  if (-/b/) {}
 
  if (+ /b/) {}
  if (- /b/) {}
 

  return /c/;

}

/d/g
/d/i
/d/m
/d/u
/d/y
/d/gimuy

var a = 1;
a++;
++a;
a--;
--a;

a += 1;
a -= 1;

a = a + 100;
a = a + /* comment */ 100;

a+++; // expect to see invalid red
a---; // expect to see invalid red


{'fraction_non_alphanumeric': 0.45, 'fraction_numerical': 0.05, 'mean_word_length': 1.781637717121588, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2047791', 'n_tokens_mistral': 644, 'n_tokens_neox': 602, 'n_words': 117}