<commit_before>/**
 * Component Constructor
 *
 * Used to provide a means for overriding default styles without redundant output
 * Allows for the component to be package managed with a tool like bower
 * without being tied to its predefined styles/settings for unit testing
 *
 * Sass v3.3.2 (Maptastic Maple)
 * Compass (v1.0.0.alpha.19)
 *
 * 1. Component Constructor takes arguments, $map, and $key(s)
 * 2. Loop over $map and find properties and values
 * 3. Output 'property: value;'
 * 4. Account for nested maps
 *
 */
@mixin componentConstructor($map, $keys...){    /* 1 */
  $i: 1;
  $length: length($keys);
  @while $length >= $i  {
    $map: map-get($mapnth($keys$i));    /* 4 */
    $i: $i + 1;
  }
 
  @each $p, $v in $map {    /* 2 */
    @if type-of($v) != map {      /* 4 */
      #{$p}: $v;    /* 3 */<commit_msg>add support for nested maps<commit_after>/**
 * Component Constructor
 *
 * Used to provide a means for overriding default styles without redundant output
 * Allows for the component to be package managed with a tool like bower
 * without being tied to its predefined styles/settings for unit testing
 *
 * Sass v3.3.2 (Maptastic Maple)
 * Compass (v1.0.0.alpha.19)
 *
 * 1. Component Constructor takes arguments, $map, and $key(s)
 * 2. Loop over $map and find properties and values
 * 3. Output 'property: value;'
 * 4. Account for nested maps
 *
 */
@mixin componentConstructor($map, $keys...){    /* 1 */
  $i: 1;
  $length: length($keys);
  @while $length >= $i  {
    $map: map-get($map, nth($keys, $i));    /* 4 */
    $i: $i + 1;
  }
  @each $p, $v in $map {    /* 2 */
    @if type-of($v) != map {      /* 4 */
      #{$p}: $v;    /* 3 */
{'fraction_non_alphanumeric': 0.1573301549463647, 'fraction_numerical': 0.02264600715137068, 'mean_word_length': 2.739420935412027, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1525882', 'n_tokens_mistral': 601, 'n_tokens_neox': 558, 'n_words': 206}