<commit_before># frozen_string_literal: true

require_relative 'composite'

module AutomationObject
  module BluePrint
    module PageObjectAdapter
      # CustomMethod composite
      class CustomMethod < Composite
        def element_method
          element_method = get_property(:element_method)

          case element_method
            when Symbol, String
              return element_method.to_sym
            else
              return nil
          end
        end

        def evaluate<commit_msg>Fix bug<commit_after># frozen_string_literal: true

require_relative 'composite'

module AutomationObject
  module BluePrint
    module PageObjectAdapter
      # CustomMethod composite
      class CustomMethod < Composite
        def element_method
          element_method = get_property(:element_method)

          case element_method
          when Symbol, String
            return element_method.to_sym
          else
            return nil
          end
        end

        def evaluate
{'fraction_non_alphanumeric': 0.03, 'fraction_numerical': 0.0, 'mean_word_length': 2.0895061728395063, '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': '1116823', 'n_tokens_mistral': 236, 'n_tokens_neox': 231, 'n_words': 68}