<commit_before>// Foundation by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source


// IMPORT ONCE
// We use this to prevent styles from being loaded multiple times for compenents that rely on other components. 
$modules: () !default;
@mixin exports($name) {
  @if not index($modules, $name) {
    $modules: append($modules, $name);
    @content;
  }
}

// RANGES
// We use these functions to define ranges for various things, like media queries. 
@function lower-bound($range){
  @if length($range) <= 0 {
    @return 0;
  }
  @return nth($range,1);
}

@function upper-bound($range) {
  @if length($range) < 2 {
    @return 999999999999;
  }
  @return nth($range, 2);
}

//
// Grid Functions
//

// @FUNCTION
// $colNumber - Found in settings file
// $totalColumns - Found in settings file
@function grid-calc-pct($colNumber, $totalColumns) {
  @return floor(percentage(($colNumber / $totalColumns)) * 1000000) / 1000000;
}

@function grid-calc-px($columnNumber, $totalColumns, $containerWidth) {
  @return ($containerWidth / $totalColumns * $columnNumber - $grid-column-gutter);
}<commit_msg>Prune unused utility functions and add SassDoc comments to the remaining ones<commit_after>// Foundation by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

/// Calculates a percentage value for a grid column width.
/// @private
/// @param {number} $colNumber - Column count of the column.
/// @param {number} $totalColumns - Column count of the entire row.
/// @returns {number} A percentage width value.
@function grid-calc-pct($colNumber, $totalColumns) {
  @return floor(percentage(($colNumber / $totalColumns)) * 1000000) / 1000000;
}

/// Calculates a pixel value for a grid column width.
/// @private
/// @param {number} $columnNumber - Column count of the column.
/// @param {number} $totalColumns - Column count of the entire row.
/// @param {number} $containerWidth - Width of the surrounding container, in pixels.
/// @returns {number} A pixel width value.
@function grid-calc-px($columnNumber, $totalColumns, $containerWidth) {
  @return ($containerWidth / $totalColumns * $columnNumber - $grid-column-gutter);
}
{'fraction_non_alphanumeric': 0.13852611940298507, 'fraction_numerical': 0.020988805970149255, 'mean_word_length': 3.831081081081081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '5279537', 'n_tokens_mistral': 680, 'n_tokens_neox': 633, 'n_words': 219}