<commit_before>module Compass
  module Fontcustom
    # Declares extensions for the Sass interpreter
    module SassExtensions

      # Sass function extensions
      module Functions

        # Font type format mappings used in css font-face declarations.
        # @see #glyph_font_sources
        FONT_TYPE_FORMATS = {
          'eot?#iefix'       => 'embedded-opentype',
          'woff'             => 'woff',
          'ttf'              => 'truetype',
          "svg#%{font_name}" => 'svg'
        }

        # Returns `:before` pseudo class styles for the letter at `index` of the font.
        #
        # @param index [FixNum] the font's index
        # @return [Sass::Script::String]
        def glyph(index)
          idx = (61696+index.value-1).to_s(16)
          css = %Q[&:before { content: "\\#{idx}"; }]
          Sass::Script::String.new %Q["\\#{idx}"]
        end
        Sass::Script::Functions.declare :letter, [:index]<commit_msg>fixing font index calculation -- may be related to #10<commit_after>module Compass
  module Fontcustom
    # Declares extensions for the Sass interpreter
    module SassExtensions

      # Sass function extensions
      module Functions

        # Font type format mappings used in css font-face declarations.
        # @see #glyph_font_sources
        FONT_TYPE_FORMATS = {
          'eot?#iefix'       => 'embedded-opentype',
          'woff'             => 'woff',
          'ttf'              => 'truetype',
          "svg#%{font_name}" => 'svg'
        }

        # Returns `:before` pseudo class styles for the letter at `index` of the font.
        #
        # @param index [FixNum] the font's index
        # @return [Sass::Script::String]
        def glyph(index)
          idx = (61696+index.value).to_s(16)
          css = %Q[&:before { content: "\\#{idx}"; }]
          Sass::Script::String.new %Q["\\#{idx}"]
        end
        Sass::Script::Functions.declare :letter, [:index]
{'fraction_non_alphanumeric': 0.12660833762223367, 'fraction_numerical': 0.008749356664951106, 'mean_word_length': 2.013953488372093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1998982', 'n_tokens_mistral': 606, 'n_tokens_neox': 568, 'n_words': 151}