<commit_before>@charset "UTF-8";

/// Sets a value to/from a configuration path
///
/// @param {String} $key     The configuration key
/// @param {*}      $value   The value to set
/// @param {Bool}   $default Whether the configuration is default
///
/// @return         {*}      The value of the configuration path
@function config-set($key, $value, $default: false) {
  $key: $config-namespace + $key;

  @if $default {
    @if config-map-has($config-default, $key) {
      $value: config-map-get($config-default, $key);
    } @else {
      $config-default: config-map-set($config-default, $key, $value) !global;
    }
  } @else {
    $config-attr: config-map-set($config-attr, $key, $value) !global;
  }

  @return $value;
}<commit_msg>Update config-set() to respect $config-manger-variables<commit_after>@charset "UTF-8";

/// Sets a value to/from a configuration path
///
/// @param {String} $key     The configuration key
/// @param {*}      $value   The value to set
/// @param {Bool}   $default Whether the configuration is default
///
/// @return         {*}      The value of the configuration path
@function config-set($key, $value, $default: false) {
  $key: $config-namespace + $key;

  @if $default {
    @if config-map-has($config-default, $key) {
      $value: config-map-get($config-default, $key);
    } @else {
      @if ($config-manger-variables == 'global') {
        $config-default: config-map-set($config-default, $key, $value) !global;
      } @else {
        $config-default: config-map-set($config-default, $key, $value);
      }
    }
  } @else {
    @if ($config-manger-variables == 'global') {
      $config-attr: config-map-set($config-attr, $key, $value) !global;
    } @else {
      $config-attr: config-map-set($config-attr, $key, $value);
    }
  }

  @return $value;
}
{'fraction_non_alphanumeric': 0.18070953436807094, 'fraction_numerical': 0.0011086474501108647, 'mean_word_length': 2.792016806722689, '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': '5611242', 'n_tokens_mistral': 594, 'n_tokens_neox': 588, 'n_words': 152}