<commit_before>//
// Mixins
// --------------------------------------------------

// Color methods
// --------------------------------------------------

// Implementation of the mix method
// See: https://github.com/LearnBoost/stylus/issues/549

mix(a, b, m)
  require-color a
  require-color b
  if unit(m) is '%'
    m = unit((m / 100), '')
  n = 1 - m
  return a * m +  b * n

spin(color, degs)
  color + degs

// UTILITY MIXINS
// --------------------------------------------------

// Clearfix
// --------
// For clearing floats like a boss h5bp.com/q
clearfix() {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
    // Fixes Opera/contenteditable bug:
    // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}

// Webkit-style focus
// ------------------
tab-focus() {
  // Default
  outline: thin dotted #333;
  // Webkit
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

// Center-align a block level element
// ----------------------------------
center-block() {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

// IE7 inline-block
// ----------------
ie7-inline-block() {
  *display: inline; // IE7 inline-block hack
  *zoom: 1;
}

// IE7 likes to collapse whitespace on either side of the inline-block elements.
// Ems because we're attempting to match the width of a space character. Left
// version is for form buttons, which typically come after other elements, and
// right version is for icons, which come before. Applying both is ok, but it will
// mean that space between those elements will be .6em (~2 space characters) in IE7,
// instead of the 1 space in other browsers.
ie7-restore-left-whitespace() {
  *margin-left: .3em;

  &:first-child {
    *margin-left: 0;
  }
}

ie7-restore-right-whitespace() {
  *margin-right: .3em;
}

// Sizing shortcuts
// -------------------------
size(height, width) {
  width: width;
  height: height;
}
square(size) {
  size(size, size);
}

// Placeholder text
// -------------------------
placeholder(color = $placeholderText) {
  &:-moz-placeholder {
    color: color;
  }
  &:-ms-input-placeholder {
    color: color;
  }
  &::-webkit-input-placeholder {
    color: color;
  }
}

// Text overflow
// -------------------------
// Requires inline-block or block for proper styling
text-overflow() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// CSS image replacement
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
hide-text() {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}


// FONTS
// --------------------------------------------------



fontFamilySerif() {
  font-family: $serifFontFamily;
}
fontFamilySans-serif() {
  font-family: $sansFontFamily;
}
fontFamilyMonospace() {
  font-family: $monoFontFamily;
}

fontShorthand(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  font-size: size;
  font-weight: weight;
  line-height: lineHeight;
}
fontSerif(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilySerif()
  fontShorthand(size, weight, lineHeight);
}
fontSans-serif(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilySans-serif()
  fontShorthand(size, weight, lineHeight);
}
fontMonospace(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilyMonospace()
  fontShorthand(size, weight, lineHeight);
}



// FORMS
// --------------------------------------------------

// Block level inputs
input-block-level() {
  display: block;
  width: 100%;
  min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
  box-sizing(border-box); // Makes inputs behave like true block-level elements
}


<commit_msg>mixins without brackets should be able to used as a class<commit_after>//
// Mixins
// --------------------------------------------------

// Color methods
// --------------------------------------------------

// Implementation of the mix method
// See: https://github.com/LearnBoost/stylus/issues/549

mix(a, b, m)
  require-color a
  require-color b
  if unit(m) is '%'
    m = unit((m / 100), '')
  n = 1 - m
  return a * m +  b * n

spin(color, degs)
  color + degs

// UTILITY MIXINS
// --------------------------------------------------

// Clearfix
// --------
// For clearing floats like a boss h5bp.com/q
clearfix() {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
    // Fixes Opera/contenteditable bug:
    // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}

.clearfix {
  clearfix();
}

// Webkit-style focus
// ------------------
tab-focus() {
  // Default
  outline: thin dotted #333;
  // Webkit
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

// Center-align a block level element
// ----------------------------------
center-block() {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

// IE7 inline-block
// ----------------
ie7-inline-block() {
  *display: inline; // IE7 inline-block hack
  *zoom: 1;
}

// IE7 likes to collapse whitespace on either side of the inline-block elements.
// Ems because we're attempting to match the width of a space character. Left
// version is for form buttons, which typically come after other elements, and
// right version is for icons, which come before. Applying both is ok, but it will
// mean that space between those elements will be .6em (~2 space characters) in IE7,
// instead of the 1 space in other browsers.
ie7-restore-left-whitespace() {
  *margin-left: .3em;

  &:first-child {
    *margin-left: 0;
  }
}

ie7-restore-right-whitespace() {
  *margin-right: .3em;
}

// Sizing shortcuts
// -------------------------
size(height, width) {
  width: width;
  height: height;
}
square(size) {
  size(size, size);
}

// Placeholder text
// -------------------------
placeholder(color = $placeholderText) {
  &:-moz-placeholder {
    color: color;
  }
  &:-ms-input-placeholder {
    color: color;
  }
  &::-webkit-input-placeholder {
    color: color;
  }
}

// Text overflow
// -------------------------
// Requires inline-block or block for proper styling
text-overflow() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// CSS image replacement
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
hide-text() {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.hide-text {
  hide-text();
}

// FONTS
// --------------------------------------------------



fontFamilySerif() {
  font-family: $serifFontFamily;
}
fontFamilySans-serif() {
  font-family: $sansFontFamily;
}
fontFamilyMonospace() {
  font-family: $monoFontFamily;
}

fontShorthand(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  font-size: size;
  font-weight: weight;
  line-height: lineHeight;
}
fontSerif(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilySerif()
  fontShorthand(size, weight, lineHeight);
}
fontSans-serif(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilySans-serif()
  fontShorthand(size, weight, lineHeight);
}
fontMonospace(size = $baseFontSize, weight = normal, lineHeight = $baseLineHeight) {
  fontFamilyMonospace()
  fontShorthand(size, weight, lineHeight);
}



// FORMS
// --------------------------------------------------

// Block level inputs
input-block-level() {
  display: block;
  width: 100%;
  min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
  box-sizing(border-box); // Makes inputs behave like true block-level elements
}

.input-block-level {
  input-block-level();
}

{'fraction_non_alphanumeric': 0.23147917186330755, 'fraction_numerical': 0.012222499376403092, 'mean_word_length': 2.1226635514018692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3697845', 'n_tokens_mistral': 2626, 'n_tokens_neox': 2509, 'n_words': 666}