<commit_before>// Shared styles
.btn {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  color: #333;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-color: #eee;
  background-image: linear-gradient(#fcfcfc, #eee);
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  user-select: none;
  -webkit-appearance: none; // Corrects inability to style clickable `input` types in iOS.

  i {
    font-style: normal;
    font-weight: 500;
    opacity: 0.6;
  }

  .octicon {
    vertical-align: text-top;
  }

  // Darken for just a tad more contrast against the button background
  .counter {
    text-shadow: none;
    background-color: #e5e5e5;
  }

  &:focus {
    text-decoration: none;
    border-color: #51a7e8;
    outline: none;
    box-shadow: 0 0 5px rgba(81, 167, 232, 0.5);
  }

  &:focus:hover,
  &.selected:focus {
    border-color: #51a7e8;
  }

  &:hover,
  &:active,
  &.zeroclipboard-is-hover,
  &.zeroclipboard-is-active {
    text-decoration: none;
    background-color: #ddd;
    background-image: linear-gradient(#eee, #ddd);
    border-color: #ccc;
  }

  &:active,
  &.selected,
  &.zeroclipboard-is-active {
    background-color: #dcdcdc;
    background-image: none;
    border-color: #b5b5b5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  &.selected:hover {
    background-color: darken(#dcdcdc, 5%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: rgba(102, 102, 102, 0.5);
      cursor: default;
      background-color: rgba(229, 229, 229, 0.5);
      background-image: none;
      border-color: rgba(197, 197, 197, 0.5);
      box-shadow: none;
    }
  }
}

// Green primary button
.btn-primary {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
  background-color: #60b044;
  background-image: linear-gradient(#8add6d, #60b044);
  border-color: darken(#60b044, 2%);

  .counter {
    color: #60b044;
    background-color: #fff;
  }

  &:hover {
    color: #fff;
    background-color: darken(#60b044, 5%);
    background-image: linear-gradient(darken(#8add6d, 5%), darken(#60b044, 5%));
    border-color: #4a993e;
  }

  &:active,
  &.selected {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
    background-color: darken(#60b044, 5%);
    background-image: none;
    border-color: darken(#4a993e, 5%);
  }

  &.selected:hover {
    background-color: darken(#60b044, 10%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: #fefefe;
      background-color: #add39f;
      background-image: linear-gradient(#c3ecb4, #add39f);
      border-color: #b9dcac #b9dcac #a7c89b;
    }
  }
}

// Red danger button
.btn-danger {
  color: #900;

  &:hover {
    color: #fff;
    background-color: #b33630;
    background-image: linear-gradient(#dc5f59, #b33630);
    border-color: #cd504a;
  }

  &:active,
  &.selected {
    color: #fff;
    background-color: #b33630;
    background-image: none;
    border-color: darken(#cd504a, 15%);
  }

  &.selected:hover {
    background-color: darken(#b33630, 5%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: #cb7f7f;
      background-color: #efefef;
      background-image: linear-gradient(#fefefe, #efefef);
      border-color: #e1e1e1;
    }
  }

  &:hover,
  &:active,
  &.selected {
    .counter {
      color: #b33630;
      background-color: #fff;
    }
  }
}

// Outline button
//
// For when we need a linky-action that's not too heavy in busier
// areas like conversation timelines.
.btn-outline {
  color: $brand-blue;
  background-color: #fff; // Reset default gradient backgrounds and colors
  background-image: none;
  border: 1px solid #e5e5e5;

  .counter {
    background-color: #eee;
  }

  &:hover,
  &:active,
  &.selected,
  &.zeroclipboard-is-hover,
  &.zeroclipboard-is-active {
    color: #fff;
    background-color: $brand-blue;
    background-image: none;
    border-color: $brand-blue;

    .counter {
      color: $brand-blue;
      background-color: #fff;
    }
  }

  &.selected:hover {
    background-color: darken($brand-blue, 5%);
  }

  &:disabled,
  &.disabled {<commit_msg>Adding btn support for active<commit_after>// Shared styles
.btn {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  color: #333;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-color: #eee;
  background-image: linear-gradient(#fcfcfc, #eee);
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  user-select: none;
  -webkit-appearance: none; // Corrects inability to style clickable `input` types in iOS.

  i {
    font-style: normal;
    font-weight: 500;
    opacity: 0.6;
  }

  .octicon {
    vertical-align: text-top;
  }

  // Darken for just a tad more contrast against the button background
  .counter {
    text-shadow: none;
    background-color: #e5e5e5;
  }

  &:focus {
    text-decoration: none;
    border-color: #51a7e8;
    outline: none;
    box-shadow: 0 0 5px rgba(81, 167, 232, 0.5);
  }

  &:focus:hover,
  &.selected:focus {
    border-color: #51a7e8;
  }

  &:hover,
  &:active,
  &.zeroclipboard-is-hover,
  &.zeroclipboard-is-active {
    text-decoration: none;
    background-color: #ddd;
    background-image: linear-gradient(#eee, #ddd);
    border-color: #ccc;
  }

  &:active,
  &.active,
  &.selected,
  &.zeroclipboard-is-active {
    background-color: #dcdcdc;
    background-image: none;
    border-color: #b5b5b5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  &.selected:hover,
  &.active:hover {
    background-color: darken(#dcdcdc, 5%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: rgba(102, 102, 102, 0.5);
      cursor: default;
      background-color: rgba(229, 229, 229, 0.5);
      background-image: none;
      border-color: rgba(197, 197, 197, 0.5);
      box-shadow: none;
    }
  }
}

// Green primary button
.btn-primary {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
  background-color: #60b044;
  background-image: linear-gradient(#8add6d, #60b044);
  border-color: darken(#60b044, 2%);

  .counter {
    color: #60b044;
    background-color: #fff;
  }

  &:hover {
    color: #fff;
    background-color: darken(#60b044, 5%);
    background-image: linear-gradient(darken(#8add6d, 5%), darken(#60b044, 5%));
    border-color: #4a993e;
  }

  &:active,
  &.active,
  &.selected {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
    background-color: darken(#60b044, 5%);
    background-image: none;
    border-color: darken(#4a993e, 5%);
  }

  &.selected:hover,
  &.active:hover {
    background-color: darken(#60b044, 10%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: #fefefe;
      background-color: #add39f;
      background-image: linear-gradient(#c3ecb4, #add39f);
      border-color: #b9dcac #b9dcac #a7c89b;
    }
  }
}

// Red danger button
.btn-danger {
  color: #900;

  &:hover {
    color: #fff;
    background-color: #b33630;
    background-image: linear-gradient(#dc5f59, #b33630);
    border-color: #cd504a;
  }

  &:active,
  &.active,
  &.selected {
    color: #fff;
    background-color: #b33630;
    background-image: none;
    border-color: darken(#cd504a, 15%);
  }

  &.selected:hover,
  &.active:hover {
    background-color: darken(#b33630, 5%);
  }

  &:disabled,
  &.disabled {
    &,
    &:hover {
      color: #cb7f7f;
      background-color: #efefef;
      background-image: linear-gradient(#fefefe, #efefef);
      border-color: #e1e1e1;
    }
  }

  &:hover,
  &:active,
  &.selected {
    .counter {
      color: #b33630;
      background-color: #fff;
    }
  }
}

// Outline button
//
// For when we need a linky-action that's not too heavy in busier
// areas like conversation timelines.
.btn-outline {
  color: $brand-blue;
  background-color: #fff; // Reset default gradient backgrounds and colors
  background-image: none;
  border: 1px solid #e5e5e5;

  .counter {
    background-color: #eee;
  }

  &:hover,
  &:active,
  &.active,
  &.selected,
  &.zeroclipboard-is-hover,
  &.zeroclipboard-is-active {
    color: #fff;
    background-color: $brand-blue;
    background-image: none;
    border-color: $brand-blue;

    .counter {
      color: $brand-blue;
      background-color: #fff;
    }
  }

  &.selected:hover {
    background-color: darken($brand-blue, 5%);
  }

  &:disabled,
  &.disabled {
{'fraction_non_alphanumeric': 0.1585683811329699, 'fraction_numerical': 0.0542782649917042, 'mean_word_length': 2.7061923583662715, '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': '7347308', 'n_tokens_mistral': 3706, 'n_tokens_neox': 3240, 'n_words': 695}