<commit_before>TileMill = {};
TileMill.addLayer = function(classes, id, status) {
  var layerName = '';
  if (id) {
    layerName = '#' + id + ' ';
  }
  if (classes) {
    layerName += '.' + classes.join(', .');
  }
  $('<li>')
    .append($('<input type="checkbox" />').attr('checked', status ? 'checked' : ''))
    .append(layerName)
    .append($('<a href="#">Edit</a>'))
    .append($('<a href="#">Inspect</a>'))
    .appendTo($('ul.sidebar-content'));
};

$(function() {
  $(mml).find('Layer').each(function() {
    status = $(this).attr('status') == 'on';
    TileMill.addLayer($(this).attr('class').split(' '), $(this).attr('id'), !status || $(this).attr('status') == 'on');
  });
});<commit_msg>Adding dummy click handlers to editor.js<commit_after>TileMill = {};
TileMill.addLayer = function(classes, id, status) {
  var layerName = '';
  if (id) {
    layerName = '#' + id + ' ';
  }
  if (classes) {
    layerName += '.' + classes.join(', .');
  }
  $('<li>')
    .append($('<input type="checkbox" />').attr('checked', status ? 'checked' : ''))
    .append(layerName)
    .append($('<a class="layer-edit" href="#">Edit</a>'))
    .append($('<a class="layer-inspect" href="#">Inspect</a>'))
    .appendTo($('#layers ul.sidebar-content'));
};

$(function() {
  $(mml).find('Layer').each(function() {
    status = $(this).attr('status') == 'on';
    TileMill.addLayer($(this).attr('class').split(' '), $(this).attr('id'), !status || $(this).attr('status') == 'on');
  });

  $('a.layer-inspect').click(function() {
    $('#layers').hide();
    $('#inspector').show();
  });

  $('a.inspector-close').click(function() {
    $('#layers').show();
    $('#inspector').hide();
  });
});
{'fraction_non_alphanumeric': 0.2982248520710059, 'fraction_numerical': 0.0, 'mean_word_length': 3.8591954022988504, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7433912', 'n_tokens_mistral': 599, 'n_tokens_neox': 589, 'n_words': 88}