<commit_before>.visualisation nav {
  ul, ol {

    margin-top: 14px;
    border-bottom: 1px solid $grey-2;
    padding-left: 0;

    li {
      @include bold-16() ;
      border: 3px solid $white;
      background-color: $grey-3;
      list-style: none;
      float: left;
      cursor: pointer;
      min-width: 8em;
      &:hover {
        text-decoration: underline;
      }
      &.active {
        margin-bottom: -1px;
        background-color: $white;
        border: 1px solid $grey-2;
        margin-left: 2px;
        margin-right: 2px;
        border-bottom: 0;
        cursor: default;
        &:hover {
          text-decoration: none;
        }
        a {
          color: $text-colour;
          padding: 9px 16px 7px 16px;
        }
      }
      a {
        padding: 6px 16px 2px 13px;
        text-decoration: none;
        display:block;
      }
    }
    &:after {
      display: block;
      clear: left;
      content: '.';
      height: 0;
      overflow: hidden;
    }
  }
}

#content .visualisation section {
  display: none;
  border-top: 0;
  margin-top: 0;
  &.active {
    display: block;
  }
  h2 {
    display: none;
  }
}<commit_msg>Only hide tab sections when js is enabled<commit_after>.visualisation nav {
  ul, ol {

    margin-top: 14px;
    border-bottom: 1px solid $grey-2;
    padding-left: 0;

    li {
      @include bold-16() ;
      border: 3px solid $white;
      background-color: $grey-3;
      list-style: none;
      float: left;
      cursor: pointer;
      min-width: 8em;
      &:hover {
        text-decoration: underline;
      }
      &.active {
        margin-bottom: -1px;
        background-color: $white;
        border: 1px solid $grey-2;
        margin-left: 2px;
        margin-right: 2px;
        border-bottom: 0;
        cursor: default;
        &:hover {
          text-decoration: none;
        }
        a {
          color: $text-colour;
          padding: 9px 16px 7px 16px;
        }
      }
      a {
        padding: 6px 16px 2px 13px;
        text-decoration: none;
        display:block;
      }
    }
    &:after {
      display: block;
      clear: left;
      content: '.';
      height: 0;
      overflow: hidden;
    }
  }
}

#content .visualisation section {
  border-top: 0;
  margin-top: 0;
  .js & {
    display: none;
    h2 {
      display: none;
    }
  }
  &.active {
    display: block;
  }
}
{'fraction_non_alphanumeric': 0.12090680100755667, 'fraction_numerical': 0.02686817800167926, 'mean_word_length': 1.5163674762407604, 'pattern_counts': {'":': 0, '<': 3, '<?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': '777802', 'n_tokens_mistral': 873, 'n_tokens_neox': 799, 'n_words': 196}