<commit_before>{
  // Default options
  'functions': true
}

{{#items}}
${{name}} = (
  x: {{px.x}},
  y: {{px.y}},
  offset_x: {{px.offset_x}},
  offset_y: {{px.offset_y}},
  width: {{px.width}},
  height: {{px.height}},
  total_width: {{px.total_width}},
  total_height: {{px.total_height}},
  image: '{{{escaped_image}}}'
);

@function sprite($sprite, $attribute) {
  @return map-get(map-get($sprites, $sprite), $attribute),
}

@mixin sprite-width($sprite) {
  width: sprite($sprite, 'width');
}

@mixin sprite-height($sprite) {
  height: sprite($sprite, 'height');
}

@mixin sprite-position($sprite) {
  background-position: sprite($sprite, 'offset_x') sprite($sprite, 'offset_y');
}

@mixin sprite-image($sprite) {
  background-image: url(sprite($sprite, 'image'));
}

@mixin sprite($sprite) {
  @include sprite-image($sprite);
  @include sprite-position($sprite);
  @include sprite-width($sprite);
  @include sprite-height($sprite);
}<commit_msg>Moved off of `sprite` function to map-get since they were acting as aliases<commit_after>{
  // Default options
  'functions': true
}

{{#items}}
${{name}} = (
  x: {{px.x}},
  y: {{px.y}},
  offset_x: {{px.offset_x}},
  offset_y: {{px.offset_y}},
  width: {{px.width}},
  height: {{px.height}},
  total_width: {{px.total_width}},
  total_height: {{px.total_height}},
  image: '{{{escaped_image}}}'
);
{{/items}}

@mixin sprite-width($sprite) {
  width: map-get($sprite, 'width');
}

@mixin sprite-height($sprite) {
  height: map-get($sprite, 'height');
}

@mixin sprite-position($map-get) {
  background-position: map-get($sprite, 'offset_x') map-get($sprite, 'offset_y');
}

@mixin sprite-image($sprite) {
  background-image: url(map-get($sprite, 'image'));
}

@mixin sprite($sprite) {
  @include sprite-image($sprite);
  @include sprite-position($sprite);
  @include sprite-width($sprite);
  @include sprite-height($sprite);
}
{'fraction_non_alphanumeric': 0.21956406166932482, 'fraction_numerical': 0.0, 'mean_word_length': 5.150326797385621, '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': '5888175', 'n_tokens_mistral': 739, 'n_tokens_neox': 712, 'n_words': 134}