<commit_before>@import "ui-variables";

.icon-gen( @extension: ''; @type: ''; @icon: ''; ) {

  tabs-bar tabs-tab .title[data-name$="@{extension}"],
  .tab-bar .tab .title[data-name$="@{extension}"] {
    padding: 0;

    &:before {
      content: "";
      width: 16px;
      height: 16px;
      float: left;
      margin: 11px 6px 0 0;
      background: url('@{icon}') 0 0 no-repeat;
      opacity: 0.4;
    }
  }

  tabs-bar tabs-tab.active .title[data-name$="@{extension}"],
  tab-bar .tab.active .title[data-name$="@{extension}"] {
    padding: 0;

    &:before {
      opacity: 1.0 !important;
    }
  }

  .name.icon[data-name$="@{extension}"] {

    &.icon-file-text,
    &.icon-file-media,
    &.icon-book {
      &:before {
        content: "";
        width: 16px;
        height: 16px;
        float: left;
        margin: 4px 6px 0 0;
        background: url('@{icon}') 0 0 no-repeat;
        opacity: 0.4;
      }
    }

  }

}

.list-group li:not(.list-nested-item).selected > span,
.list-tree li:not(.list-nested-item).selected > span,
.list-group li.list-nested-item.selected > .list-item > span,
.list-tree li.list-nested-item.selected > .list-item > span {
 &:before {
   opacity: 1.0 !important;
 }
}


// Pattern matching; ish is cray.
// http://lesscss.org/#-pattern-matching-and-guard-expressions
.text(normal) {
  font-weight: normal;<commit_msg>fix bug where active tab opacity is wrong<commit_after>@import "ui-variables";

.icon-gen( @extension: ''; @type: ''; @icon: ''; ) {

  tabs-bar tabs-tab .title[data-name$="@{extension}"],
  .tab-bar .tab .title[data-name$="@{extension}"] {
    padding: 0;

    &:before {
      content: "";
      width: 16px;
      height: 16px;
      float: left;
      margin: 11px 6px 0 0;
      background: url('@{icon}') 0 0 no-repeat;
      opacity: 0.4;
    }
  }

  tabs-bar tabs-tab.active .title:before,
  tab-bar .tab.active .title:before {
    opacity: 1.0 !important;
  }

  .name.icon[data-name$="@{extension}"] {

    &.icon-file-text,
    &.icon-file-media,
    &.icon-book {
      &:before {
        content: "";
        width: 16px;
        height: 16px;
        float: left;
        margin: 4px 6px 0 0;
        background: url('@{icon}') 0 0 no-repeat;
        opacity: 0.4;
      }
    }

  }

}


.list-group li:not(.list-nested-item).selected > span,
.list-tree li:not(.list-nested-item).selected > span,
.list-group li.list-nested-item.selected > .list-item > span,
.list-tree li.list-nested-item.selected > .list-item > span {
 &:before {
   opacity: 1.0 !important;
 }
}


// Pattern matching; ish is cray.
// http://lesscss.org/#-pattern-matching-and-guard-expressions
.text(normal) {
  font-weight: normal;
{'fraction_non_alphanumeric': 0.18891781331349944, 'fraction_numerical': 0.022685013015991073, 'mean_word_length': 2.3751568381430364, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4587579', 'n_tokens_mistral': 1057, 'n_tokens_neox': 974, 'n_words': 197}