<commit_before>require 'nmap/sequence'

module Nmap
  class TcpSequence < Sequence

    #
    # @return [Numeric]
    #   The difficulty index from nmap
    #
    # @since 0.5.0
    #   
    def index
      if idx = @node['index']
        idx.to_i
      end
    end

    #<commit_msg>Cache the numeric index.<commit_after>require 'nmap/sequence'

module Nmap
  class TcpSequence < Sequence

    #
    # @return [Numeric]
    #   The difficulty index from nmap
    #
    # @since 0.5.0
    #   
    def index
      @index ||= if (index_string = @node['index'])
                   index_string.to_i
                 end
    end

    #
{'fraction_non_alphanumeric': 0.09651898734177215, 'fraction_numerical': 0.00949367088607595, 'mean_word_length': 1.7167381974248928, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2229957', 'n_tokens_mistral': 217, 'n_tokens_neox': 206, 'n_words': 52}