<commit_before>
// Dimensions
@mixin dimensions($square, $height: -1px) {
	width: $square;
	@if $height < 0 { height: $square; }
	@else { height: $height; }  
}

// Fill parent's shape --> TODO: make these Jeet-style functions, with optional offsets?
@mixin fill() {
  // display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

// Cover parent entirely
@mixin cover() {
  // display: block;
  position: absolute; 
  top: 0; 
  right: 0;
  bottom: 0;
  left: 0;
}

// Cover the viewport entirely
@mixin cover-viewport() {
  // display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

// Corners
@mixin corner-nw() { display: block; position: absolute; top: 0; left: 0; }
@mixin corner-ne() { display: block; position: absolute; top: 0; right: 0; }
@mixin corner-sw() { display: block; position: absolute; bottom: 0; left: 0;}
@mixin corner-se() { display: block; position: absolute; bottom: 0; right: 0; }

// Edges
@mixin edge-top() { display: block; position: absolute; top: 0; left: 0; right: 0; }
@mixin edge-right() { display: block; position: absolute; top: 0; bottom: 0; right: 0; }
@mixin edge-bottom() { display: block; position: absolute; bottom: 0; left: 0; right: 0; }
@mixin edge-left() { display: block; position: absolute; top: 0; left: 0; bottom: 0; }

// Panels
@mixin panel-top() { display: block; position: fixed; top: 0; left: 0; right: 0; }
@mixin panel-right() { display: block; position: fixed; top: 0; bottom: 0; right: 0; }
@mixin panel-bottom() { display: block; position: fixed; bottom: 0; left: 0; right: 0; }
@mixin panel-left() { display: block; position: fixed; top: 0; left: 0; bottom: 0; }

<commit_msg>vertical centering mixin<commit_after>
// Dimensions
@mixin dimensions($square, $height: -1px) {
	width: $square;
	@if $height < 0 { height: $square; }
	@else { height: $height; }  
}

// Fill parent's shape --> TODO: make these Jeet-style functions, with optional offsets?
@mixin fill() {
  // display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

// Cover parent entirely
@mixin cover() {
  // display: block;
  position: absolute; 
  top: 0; 
  right: 0;
  bottom: 0;
  left: 0;
}

// Cover the viewport entirely
@mixin cover-viewport() {
  // display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

// Corners
@mixin corner-nw() { display: block; position: absolute; top: 0; left: 0; }
@mixin corner-ne() { display: block; position: absolute; top: 0; right: 0; }
@mixin corner-sw() { display: block; position: absolute; bottom: 0; left: 0;}
@mixin corner-se() { display: block; position: absolute; bottom: 0; right: 0; }

// Edges
@mixin edge-top() { display: block; position: absolute; top: 0; left: 0; right: 0; }
@mixin edge-right() { display: block; position: absolute; top: 0; bottom: 0; right: 0; }
@mixin edge-bottom() { display: block; position: absolute; bottom: 0; left: 0; right: 0; }
@mixin edge-left() { display: block; position: absolute; top: 0; left: 0; bottom: 0; }

// Panels
@mixin panel-top() { display: block; position: fixed; top: 0; left: 0; right: 0; }
@mixin panel-right() { display: block; position: fixed; top: 0; bottom: 0; right: 0; }
@mixin panel-bottom() { display: block; position: fixed; bottom: 0; left: 0; right: 0; }
@mixin panel-left() { display: block; position: fixed; top: 0; left: 0; bottom: 0; }


// Vertical centering
@mixin vertical-align-middle {
  position: relative;
  top: 50%;
  @include transform(translateY(-50%));
  // -webkit-transform: translateY(-50%);
  // -ms-transform: translateY(-50%);
  // transform: translateY(-50%);
}

{'fraction_non_alphanumeric': 0.17622610141313383, 'fraction_numerical': 0.030479357162648935, 'mean_word_length': 3.839142091152815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6638119', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1271, 'n_words': 444}