<commit_before>module TypeStation
  module Helpers
    module Utilities

      def ts_page(name)
        PagePresenter.new(TypeStation::Page.find_by_name(name), self)
      end<commit_msg>added a method to find similar named pages<commit_after>module TypeStation
  module Helpers
    module Utilities

      def ts_page(name)
        PagePresenter.new(TypeStation::Page.find_by_name(name), self)
      end

      def ts_pages(name, parent = nil)
        context = self
        criteria = TypeStation::Page.where(name: name)
        criteria = criteria.where(parent_id: parent.to_param) if parent
        criteria.map {|p| PagePresenter.new(p, context) }
      end
{'fraction_non_alphanumeric': 0.08295625942684766, 'fraction_numerical': 0.0, 'mean_word_length': 3.15, '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': '4316538', 'n_tokens_mistral': 199, 'n_tokens_neox': 198, 'n_words': 47}