<commit_before>var locastyle = locastyle || {};
locastyle.general = (function() {
  'use strict';

  function init() {

    // $(config.selector).each(function(i, collapse){
    //   console.log(collapse);
    // });

    showSidebar();

  }

  function showSidebar() {
    var $showHide = $('.show-sidebar');
    var $html = $('html');

    $showHide.on('touchstart click', function(evt){
      $html.toggleClass('sidebar-visible');
      evt.preventDefault();
    });
  }

  return {
    init:init
  };
<commit_msg>funcao pra exibir/esconder submenu<commit_after>var locastyle = locastyle || {};
locastyle.general = (function() {
  'use strict';

  function init() {
    showSidebar();
    subMenu();
  }

  function showSidebar() {
    var $showHide = $('.show-sidebar');
    var $html = $('html');

    $showHide.on('touchstart click', function(evt){
      $html.toggleClass('sidebar-visible');
      evt.preventDefault();
    });
  }

  function subMenu() {
    $('.ls-submenu > a').on('click', function(evt){
      $(this).parent().toggleClass('active');
      evt.preventDefault();
    })
  }

  return {
    init:init
  };

{'fraction_non_alphanumeric': 0.1900972590627763, 'fraction_numerical': 0.0, 'mean_word_length': 2.9719298245614034, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6712229', 'n_tokens_mistral': 378, 'n_tokens_neox': 369, 'n_words': 64}