<commit_before>/**
* This file is dynamically generated by gulp-compass-imagehelper
* Do NOT edit!
**/

@if not(function_exists('inline-image')) {
  // Embeds the contents of an image directly inside your stylesheet, eliminating the need for another HTTP request. For small images, this can be a performance
  // benefit at the cost of a larger generated CSS file.
  @function inline-image($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      @return unquote(nth($list, 3));
    }
    @return null;
  }

  // Returns the width of the image found at the path supplied by $image relative to your project's images directory.
  @function image-width($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      $width: unquote(nth($list, 1));
      @if ($width and str_length($width) > 0) {
        @return number($width) * 1px;
      }
    }
    @return null;
  }

  // Returns the height of the image found at the path supplied by $image relative to your project's images directory.
  @function image-height($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      $height: unquote(nth($list, 2));
      @if ($height and str_length($height)>0) {
        @return number($height) * 1px;
      }
    }
    @return null;
  }

  // Generates a path to an asset found relative to the project's images directory.
  // Passing a true value as the second argument will cause only the path to be returned instead of a url() function
  // The third argument is used to control the cache buster on a per-use basis. When set to false no cache buster will be used.
  // When true a md5-hash of the file is appended to the url. When a string, that value will be used as the cache buster.
  @function image-url($image, $only-path: false, $cache-buster: false) {
    $result: "../images/" + $image;

    @if ($cache-buster == true) {
      @if not (image-exists($image)) {
        @warn "Image '#{$image}' not found. Cache-busting failed";
      } @else {
        @if map-has-key($compass_imagehelper_imagesmap, $image) {
          $list: map-get($compass_imagehelper_imagesmap, $image);
          $hash: nth($list, 4);
          $result: $result + '?' + $hash;
        }
      }
    } @else if ($cache-buster == false) {
    } @else {
      // probably a string
      $result: $result + '?' + $cache-buster;
    }
    $result: quote($result);
    @if ($only-path == false) {
      $result: url($result);
    }
    @return $result;
  }

  // Returns if the image is accessible for these image-helpers<commit_msg>Use defined Path in Mustache Template<commit_after>/**
* This file is dynamically generated by gulp-compass-imagehelper
* Do NOT edit!
**/

@if not(function_exists('inline-image')) {
  // Embeds the contents of an image directly inside your stylesheet, eliminating the need for another HTTP request. For small images, this can be a performance
  // benefit at the cost of a larger generated CSS file.
  @function inline-image($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      @return unquote(nth($list, 3));
    }
    @return null;
  }

  // Returns the width of the image found at the path supplied by $image relative to your project's images directory.
  @function image-width($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      $width: unquote(nth($list, 1));
      @if ($width and str_length($width) > 0) {
        @return number($width) * 1px;
      }
    }
    @return null;
  }

  // Returns the height of the image found at the path supplied by $image relative to your project's images directory.
  @function image-height($image) {
    @if map-has-key($compass_imagehelper_imagesmap, $image) {
      $list: map-get($compass_imagehelper_imagesmap, $image);
      $height: unquote(nth($list, 2));
      @if ($height and str_length($height)>0) {
        @return number($height) * 1px;
      }
    }
    @return null;
  }

  // Generates a path to an asset found relative to the project's images directory.
  // Passing a true value as the second argument will cause only the path to be returned instead of a url() function
  // The third argument is used to control the cache buster on a per-use basis. When set to false no cache buster will be used.
  // When true a md5-hash of the file is appended to the url. When a string, that value will be used as the cache buster.
  @function image-url($image, $only-path: false, $cache-buster: false) {
    $result: "{{{path_prefix}}}" + $image;

    @if ($cache-buster == true) {
      @if not (image-exists($image)) {
        @warn "Image '#{$image}' not found. Cache-busting failed";
      } @else {
        @if map-has-key($compass_imagehelper_imagesmap, $image) {
          $list: map-get($compass_imagehelper_imagesmap, $image);
          $hash: nth($list, 4);
          $result: $result + '?' + $hash;
        }
      }
    } @else if ($cache-buster == false) {
    } @else {
      // probably a string
      $result: $result + '?' + $cache-buster;
    }
    $result: quote($result);
    @if ($only-path == false) {
      $result: url($result);
    }
    @return $result;
  }

  // Returns if the image is accessible for these image-helpers
{'fraction_non_alphanumeric': 0.12692656391659113, 'fraction_numerical': 0.0032638259292837716, 'mean_word_length': 3.0029027576197387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4525698', 'n_tokens_mistral': 1700, 'n_tokens_neox': 1667, 'n_words': 576}