<commit_before>
(function(){

this.mdlParser = function( text ){};
this.mdl2vexflow = function( mdl, canvas ){};
this.mdl2vextab = function( mdl ){};
this.mdl2mml = function( mdl ){};

var LENGTH_RANGE = 6720;

var kor2eng = function(kor){
  return {
    '\ub3c4': 'C',
    '\ub808': 'D',
    '\ubbf8': 'E',
    '\ud30c': 'F',
    '\uc194': 'G',
    '\ub77c': 'A',
    '\uc2dc': 'B'
  }[kor] || kor;
};

var keyConfig = {
  'C': [''],
  'C#': ['+', /[CDEFGAB]/],
  'Db': ['-', /[DEGAB]/],
  'D': ['+', /[FC]/],
  'Eb': ['-', /[EAB]/],
  'E': ['+', /[FGCD]/],
  'F': ['-', /[B]/],
  'F#': ['+', /[FGACDE]/],
  'Gb': ['-', /[GABCDE]/],
  'G': ['+', /[F]/],
  'Ab': ['-', /[ABDE]/],
  'A': ['+', /[CFG]/],
  'Bb': ['-', /[BE]/],
  'B': ['+', /[CDFGA]/],
};

var convertLength = (function(){
  var l = LENGTH_RANGE;
  var dic = {
    '64t':l/64 /3*2,
    '64f':l/64 /5*4,
    '64':l/64,
    '32t':l/32 /5*4,
    '32f':l/32 /3*2,
    '32s':l/32 /7*8,
    '32':l/32,
    '32d':l/32 + l/32/2,
    '16t':l/16 /3*2,
    '16f':l/16 /5*4,
    '16s':l/16 /7*8,
    '16':l/16,
    '16d':l/16 + l/16/2,
    '8t':l/8 /3*2,
    '8f':l/8 /5*4,
    '8s':l/8 /7*8,
    '8':l/8,
    '8d':l/8 + l/8/2,
    '4t':l/4 /3*2,
    '4f':l/4 /5*4,
    '4':l/4,
    '4d':l/4 + l/4/2,
    '2t':l/2 /3*2,
    '2':l/2,
    '2d':l/2 + l/2/2,
    '1':l
  };
  return function(length){
    if((typeof length) == 'string'){
      return dic[length];
    }
    else if((typeof length) == 'number'){
      for(var i in dic){
        if(dic[i]==length) return i;
      }
    }
  }
})();

var error = function(type, text, point){
  var errorText = 'error: ' + type + '\n\n';
  errorText += text + '\n';
  for(var i=0; i<point; i++){
    errorText += ' ';
  }
  //errorText += '^';
  console.log(errorText);
};

this.mdlParser = function(text){

  var rows = [],            // code rows
      staffs = [],          // staff rows
      timeline = [];        // parsed score

  // split rows, type check
  (function(){
    text = text.replace(/ /g,'');
    text = text.replace(/\n+/g,';');
    // auto enter
    text = text.replace(/(\'[a-z]+:.*?\')/g,"$1;");
    // coment
    text = text.replace(/\/\*.*?\*\//g,'');
    text = text.split(/;+/);

    for(var i in text){
      var row = {
        type: '',<commit_msg>event uppercase enable<commit_after>
(function(){

this.mdlParser = function( text ){};
this.mdl2vexflow = function( mdl, canvas ){};
this.mdl2vextab = function( mdl ){};
this.mdl2mml = function( mdl ){};

var LENGTH_RANGE = 6720;

var kor2eng = function(kor){
  return {
    '\ub3c4': 'C',
    '\ub808': 'D',
    '\ubbf8': 'E',
    '\ud30c': 'F',
    '\uc194': 'G',
    '\ub77c': 'A',
    '\uc2dc': 'B'
  }[kor] || kor;
};

var keyConfig = {
  'C': [''],
  'C#': ['+', /[CDEFGAB]/],
  'Db': ['-', /[DEGAB]/],
  'D': ['+', /[FC]/],
  'Eb': ['-', /[EAB]/],
  'E': ['+', /[FGCD]/],
  'F': ['-', /[B]/],
  'F#': ['+', /[FGACDE]/],
  'Gb': ['-', /[GABCDE]/],
  'G': ['+', /[F]/],
  'Ab': ['-', /[ABDE]/],
  'A': ['+', /[CFG]/],
  'Bb': ['-', /[BE]/],
  'B': ['+', /[CDFGA]/],
};

var convertLength = (function(){
  var l = LENGTH_RANGE;
  var dic = {
    '64t':l/64 /3*2,
    '64f':l/64 /5*4,
    '64':l/64,
    '32t':l/32 /5*4,
    '32f':l/32 /3*2,
    '32s':l/32 /7*8,
    '32':l/32,
    '32d':l/32 + l/32/2,
    '16t':l/16 /3*2,
    '16f':l/16 /5*4,
    '16s':l/16 /7*8,
    '16':l/16,
    '16d':l/16 + l/16/2,
    '8t':l/8 /3*2,
    '8f':l/8 /5*4,
    '8s':l/8 /7*8,
    '8':l/8,
    '8d':l/8 + l/8/2,
    '4t':l/4 /3*2,
    '4f':l/4 /5*4,
    '4':l/4,
    '4d':l/4 + l/4/2,
    '2t':l/2 /3*2,
    '2':l/2,
    '2d':l/2 + l/2/2,
    '1':l
  };
  return function(length){
    if((typeof length) == 'string'){
      return dic[length];
    }
    else if((typeof length) == 'number'){
      for(var i in dic){
        if(dic[i]==length) return i;
      }
    }
  }
})();

var error = function(type, text, point){
  var errorText = 'error: ' + type + '\n\n';
  errorText += text + '\n';
  for(var i=0; i<point; i++){
    errorText += ' ';
  }
  //errorText += '^';
  console.log(errorText);
};

this.mdlParser = function(text){

  var rows = [],            // code rows
      staffs = [],          // staff rows
      timeline = [];        // parsed score

  // split rows, type check
  (function(){
    text = text.replace(/ /g,'');
    text = text.replace(/\n+/g,';');
    // auto enter
    text = text.replace(/(\'[a-zA-Z]+:.*?\')/g,"$1;");
    // coment
    text = text.replace(/\/\*.*?\*\//g,'');
    text = text.split(/;+/);

    for(var i in text){
      var row = {
        type: '',
{'fraction_non_alphanumeric': 0.30491012713722054, 'fraction_numerical': 0.06181499342393687, 'mean_word_length': 2.042, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3268020', 'n_tokens_mistral': 2267, 'n_tokens_neox': 2177, 'n_words': 394}