<commit_before>function initCategoryFilter() {
  var cin = document.getElementById("category-input");
  var currentCategoryId = cin.value;
  var chi = document.getElementById("hidden-category-input");
  var options = document.getElementsByTagName("option");

  for (var i = 0; i < options.length; i++) {
    if (options[i].value === currentCategoryId) {<commit_msg>Extract current category id from the correct element.<commit_after>function initCategoryFilter() {
  var cin = document.getElementById("category-input");
  var chi = document.getElementById("hidden-category-input");
  var options = document.getElementsByTagName("option");

  var currentCategoryId = chi.value;
  for (var i = 0; i < options.length; i++) {
    if (options[i].value === currentCategoryId) {
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.0025974025974025974, 'mean_word_length': 5.2682926829268295, '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': '4119439', 'n_tokens_mistral': 214, 'n_tokens_neox': 210, 'n_words': 55}