<commit_before>/** poliedro/grid/generator */

// Poliedro Coun abstraction
@mixin abstract-column{
	display: inline-block;

	// Borrowed from Twitter Bootstrap
	position: relative;
	min-height: 1px;
	
	// Can be variable if RTL support is needed
	float: left;
}

%poliedro-column{
	@include abstract-column;
}



@function get_column_width($size, $gutter, $columnNumber: 12, $precision: 0){
	$gutterTotal: ($columnNumber - 1) * $gutter;
	$columnWidth: ((100 - ($gutterTotal * 100)) / $columnNumber) / 100;

	$result: ($columnWidth * $size) + (($size - 1) * $gutter);

	@return percentage($result) - ($precision / 10);
}
 
@mixin poliedro-column($size, $gutter, $columnNumber){
	width: get_column_width($size, $gutter, $columnNumber);

	@if($gutter){
		margin-right:percentage($gutter);
	}
}

@mixin poliedro-omega{
	// To fit 100% width, regarless $precition value
	right:0;
	
	clear:right;
	margin-right:0;
}


@mixin poliedro-grid($prefix, $gutter, $columns: 12, $padding: 0){
	
	$abstract-column: #{$prefix}-abstract-column;

	// Abstract column
	#{$abstract-column}{
		@include abstract-column;
	}

	// Base columns
	@for $i from 1 through $columns{
		#{$prefix}-#{$i}{
			@extend #{$abstract-column};
			@include poliedro-column($i, $gutter / 100, $columns);
		}
	}

	// Omega column
	#{$prefix}-omega{
		@include poliedro-omega();
	}
}<commit_msg>offset placeholder added to poliedro-grid mixin<commit_after>/** poliedro/grid/generator */

// Poliedro Coun abstraction
@mixin abstract-column{
	display: inline-block;

	// Borrowed from Twitter Bootstrap
	position: relative;
	min-height: 1px;
	
	// Can be variable if RTL support is needed
	float: left;
}

%poliedro-column{
	@include abstract-column;
}



@function get_column_width($size, $gutter, $columnNumber: 12, $precision: 0){
	$gutterTotal: ($columnNumber - 1) * $gutter;
	$columnWidth: ((100 - ($gutterTotal * 100)) / $columnNumber) / 100;

	$result: ($columnWidth * $size) + (($size - 1) * $gutter);

	@return percentage($result) - ($precision / 10);
}
 
@mixin poliedro-column($size, $gutter, $columnNumber){
	width: get_column_width($size, $gutter, $columnNumber);

	@if($gutter){
		margin-right:percentage($gutter);
	}
}

@mixin poliedro-omega{
	// To fit 100% width, regarless $precition value
	right:0;
	
	clear:right;
	margin-right:0;
}


$offset-prefix: 'offset' !default;


@mixin poliedro-grid($prefix, $gutter, $columns: 12, $padding: 0){
	
	$abstract-column: #{$prefix}-abstract-column;

	// Abstract column
	#{$abstract-column}{
		@include abstract-column;
	}

	// Base columns
	@for $i from 1 through $columns{
		#{$prefix}-#{$i}{
			@extend #{$abstract-column};
			@include poliedro-column($i, $gutter / 100, $columns);
		}

		// Offset helper
		#{$prefix}-#{$offset-prefix}-#{$i}{
			margin-left: get_column_width($i, $gutter / 100, $columns);
		}
	}

	// Omega column
	#{$prefix}-omega{
		@include poliedro-omega();
	}

}
{'fraction_non_alphanumeric': 0.17624784853700518, 'fraction_numerical': 0.02099827882960413, 'mean_word_length': 4.207885304659499, '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': '6803675', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1031, 'n_words': 244}