<commit_before>var boxContainer = document.getElementById('kasten-container');
var lastClass = '';
var allClassNames = [];

function updateBox(klasse, raum, fach, stunde, hinweis, art) {
  if (allClassNames.indexOf(klasse) === -1) {
    allClassNames.push(klasse);
  }

  if (!classShouldBeShown(klasse)) {
    return;
  }

  checkIfNewClass(klasse);

  var box = '<div class="kasten';
  box += '">                    \
            <div class="top">                                                           \
                <div class="kasten-fach">                                        \
                    ' +
    fach +
    '                  \
                </div>                                                           \
                <div class="kasten-raum">';
                  if (raum.indexOf('---') === -1) {
                      box += raum;
                  }

  box +='                \
                </div>                                                           \
                <div class="kasten-stunde">                                      \
                    ' +
    stunde +
    '             \
                </div>                                                \
            </div>';
            if (hinweis.length > 2) {
              box += '\
              <div class="middle">                                         \
                '+ hinweis +'                                                \
              </div>';
            }
            box += '\
            <div class="bottom">                          \
              <div class="kasten-art ';
              if (art.indexOf('Ausfall') !== -1) {
                box += ' ausfall';
              }
              box += '">                                     \
                  ' +
    art +
    '           \
              </div>                                                           \
            </div>                                         \
        </div>                                                               \
        ';

  boxContainer.innerHTML += box;
}

function updateBoxClass(schoolClass) {
  var box = '\
    <div class="kasten klasse">\
      <p>' +
    schoolClass +
    '</p>\
    </div>\
  ';

  boxContainer.innerHTML += box;
}

function updateBoxDate(date) {
  var box = '\
    <div class="kasten date">\
      <p>' +
    date +
    '</p>\
    </div>\
  ';

  boxContainer.innerHTML += box;
}

function classShouldBeShown(schoolClass) {
  return parameters['klasse'] == undefined ||
    parameters['klasse'] == '' ||
    parameters['klasse'] === schoolClass;
}

function checkIfNewClass(schoolClass) {
  if (schoolClass != lastClass) {
    updateBoxClass(schoolClass);
  }

  lastClass = schoolClass;
}
//updateKasten("11a", "2.209", "BIO", "5", "Ausfall", "Ausfall");
<commit_msg>different text color for vertretung<commit_after>var boxContainer = document.getElementById('kasten-container');
var lastClass = '';
var allClassNames = [];

function updateBox(klasse, raum, fach, stunde, hinweis, art) {
  if (allClassNames.indexOf(klasse) === -1) {
    allClassNames.push(klasse);
  }

  if (!classShouldBeShown(klasse)) {
    return;
  }

  checkIfNewClass(klasse);

  var box = '<div class="kasten';
  box += '">                    \
            <div class="top">                                                           \
                <div class="kasten-fach">                                        \
                    ' +
    fach +
    '                  \
                </div>                                                           \
                <div class="kasten-raum">';
                  if (raum.indexOf('---') === -1) {
                      box += raum;
                  }

  box +='                \
                </div>                                                           \
                <div class="kasten-stunde">                                      \
                    ' +
    stunde +
    '             \
                </div>                                                \
            </div>';
            if (hinweis.length > 2) {
              box += '\
              <div class="middle">                                         \
                '+ hinweis +'                                                \
              </div>';
            }
            box += '\
            <div class="bottom">                          \
              <div class="kasten-art ';
              if (art.indexOf('Ausfall') !== -1) {
                box += ' ausfall';
              } else if (art.indexOf('Vertretung') !== -1) {
                box += ' vertretung';
              }
              box += '">                                     \
                  ' +
    art +
    '           \
              </div>                                                           \
            </div>                                         \
        </div>                                                               \
        ';

  boxContainer.innerHTML += box;
}

function updateBoxClass(schoolClass) {
  var box = '\
    <div class="kasten klasse">\
      <p>' +
    schoolClass +
    '</p>\
    </div>\
  ';

  boxContainer.innerHTML += box;
}

function updateBoxDate(date) {
  var box = '\
    <div class="kasten date">\
      <p>' +
    date +
    '</p>\
    </div>\
  ';

  boxContainer.innerHTML += box;
}

function classShouldBeShown(schoolClass) {
  return parameters['klasse'] == undefined ||
    parameters['klasse'] == '' ||
    parameters['klasse'] === schoolClass;
}

function checkIfNewClass(schoolClass) {
  if (schoolClass != lastClass) {
    updateBoxClass(schoolClass);
  }

  lastClass = schoolClass;
}
//updateKasten("11a", "2.209", "BIO", "5", "Ausfall", "Ausfall");

{'fraction_non_alphanumeric': 0.13051756967284056, 'fraction_numerical': 0.003981305175696728, 'mean_word_length': 0.8296390120329322, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '169763', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1418, 'n_words': 250}