<commit_before>$.extend(view, {
  topMusic10: function (lower_limit, upper_limit) {
    $.ajax({
      data:{
        group_by:'`<?=$type?>_id`',
        limit:10,
        lower_limit:lower_limit,
        order_by:'`count` DESC, <?=TBL_artist?>.`artist_name` ASC',
        tag_id:'<?=$tag_id?>',
        tag_type:'<?=$tag_type?>',
        upper_limit:upper_limit,
        username:'<?=!empty($_GET['u']) ? $_GET['u'] : ''?>'
      },
      dataType:'json',
      statusCode:{
        200: function (data) {
          $.ajax({
            data:{
              json_data:data
            },
            success: function (data) {
              $('#topMusic10Loader').hide();
              $('#topMusic10').html(data);
            },
            type:'POST',
            url:'/ajax/<?=$type?>List/124',
          });
        },
        204: function () { // 204 No Content
          $('#topMusic10Loader').hide();
          $('#topMusic10').html('<?=ERR_NO_RESULTS?>');
        }
      },
      type:'GET',
      url:'/api/tag/get'
    });
  },
  topMusic: function (lower_limit, upper_limit, vars) {
    $.ajax({
      data:{
        group_by:'`<?=$type?>_id`',
        limit:vars.limit,
        lower_limit:lower_limit,
        order_by:'`count` DESC, <?=TBL_artist?>.`artist_name` ASC',
        tag_id:'<?=$tag_id?>',
        tag_type:'<?=$tag_type?>',
        upper_limit:upper_limit,
        username:'<?=!empty($_GET['u']) ? $_GET['u'] : ''?>'
      },
      dataType:'json',
      statusCode:{
        200: function (data) {
          $.ajax({
            data:{
              hide:vars.hide,
              json_data:data,
              rank:11,
              size:32
            },
            success: function (data) {
              $(vars.container + 'Loader').hide();
              $(vars.container).html(data);
            },
            type:'POST',
            url:vars.template
          });
        },
        204: function () { // 204 No Content
          $('#topMusicLoader').hide();
          $('#topMusic').html('<?=ERR_NO_RESULTS?>');
        }
      },
      type:'GET',
      url:'/api/tag/get'
    });
  },
  topMusicYearly: function () {
    for (var year = <?=CUR_YEAR?>; year >= 2003; year--) {
      $('<div class="container"><h2 class="number">' + year + '</h2><img src="/media/img/ajax-loader-bar.gif" alt="" class="loader" id="topMusic' + year + 'Loader"/><table id="topMusic' + year + '" class="side_table"></table><div class="more"><a href="/artist/' + year + '" title="Browse more">More <span class="number">' + year + '</span></a></div></div><div class="container"><hr /></div>').appendTo($('#years'));
      var vars = {
        container:'#topMusic' + year,
        hide:{
          <?=$hide?>,
          calendar:true,
          date:true,
          spotify:true
        },
        limit:5,
        template:'/ajax/sideTable'
      }
      view.topMusic(year + '-00-00', year + '-12-31', vars);
    }
  },
  initTagEvents: function () {
  
  }
});
<commit_msg>Fixed container reference on Tags view.<commit_after>$.extend(view, {
  topMusic10: function (lower_limit, upper_limit) {
    $.ajax({
      data:{
        group_by:'`<?=$type?>_id`',
        limit:10,
        lower_limit:lower_limit,
        order_by:'`count` DESC, <?=TBL_artist?>.`artist_name` ASC',
        tag_id:'<?=$tag_id?>',
        tag_type:'<?=$tag_type?>',
        upper_limit:upper_limit,
        username:'<?=!empty($_GET['u']) ? $_GET['u'] : ''?>'
      },
      dataType:'json',
      statusCode:{
        200: function (data) {
          $.ajax({
            data:{
              json_data:data
            },
            success: function (data) {
              $('#topMusic10Loader').hide();
              $('#topMusic10').html(data);
            },
            type:'POST',
            url:'/ajax/<?=$type?>List/124',
          });
        },
        204: function () { // 204 No Content
          $('#topMusic10Loader').hide();
          $('#topMusic10').html('<?=ERR_NO_RESULTS?>');
        }
      },
      type:'GET',
      url:'/api/tag/get'
    });
  },
  topMusic: function (lower_limit, upper_limit, vars) {
    $.ajax({
      data:{
        group_by:'`<?=$type?>_id`',
        limit:vars.limit,
        lower_limit:lower_limit,
        order_by:'`count` DESC, <?=TBL_artist?>.`artist_name` ASC',
        tag_id:'<?=$tag_id?>',
        tag_type:'<?=$tag_type?>',
        upper_limit:upper_limit,
        username:'<?=!empty($_GET['u']) ? $_GET['u'] : ''?>'
      },
      dataType:'json',
      statusCode:{
        200: function (data) {
          $.ajax({
            data:{
              hide:vars.hide,
              json_data:data,
              rank:11,
              size:32
            },
            success: function (data) {
              $(vars.container + 'Loader').hide();
              $(vars.container).html(data);
            },
            type:'POST',
            url:vars.template
          });
        },
        204: function () { // 204 No Content
          $(vars.container + 'Loader').hide();
          $(vars.container).html('<?=ERR_NO_RESULTS?>');
        }
      },
      type:'GET',
      url:'/api/tag/get'
    });
  },
  topMusicYearly: function () {
    for (var year = <?=CUR_YEAR?>; year >= 2003; year--) {
      $('<div class="container"><h2 class="number">' + year + '</h2><img src="/media/img/ajax-loader-bar.gif" alt="" class="loader" id="topMusic' + year + 'Loader"/><table id="topMusic' + year + '" class="side_table"></table><div class="more"><a href="/artist/' + year + '" title="Browse more">More <span class="number">' + year + '</span></a></div></div><div class="container"><hr /></div>').appendTo($('#years'));
      var vars = {
        container:'#topMusic' + year,
        hide:{
          <?=$hide?>,
          calendar:true,
          date:true,
          spotify:true
        },
        limit:5,
        template:'/ajax/sideTable'
      }
      view.topMusic(year + '-00-00', year + '-12-31', vars);
    }
  },
  initTagEvents: function () {
  
  }
});

{'fraction_non_alphanumeric': 0.2069995024050423, 'fraction_numerical': 0.017249958533753523, 'mean_word_length': 1.8755364806866952, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 67, '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': '3575273', 'n_tokens_mistral': 1965, 'n_tokens_neox': 1900, 'n_words': 290}