<commit_before>module XYZ
  class DevtestController < Controller
    def list(*uri_array)
      error_405 unless request.get?
      uri = "/" + uri_array.join("/")
      opts = ret_parsed_query_string()
      opts[:no_hrefs] ||= true
      opts[:depth] ||= :deep
      opts[:no_null_cols] = true
      href_prefix = "http://" + http_host() + "/list" 
      c = ret_session_context_id()
      @title = uri
      id_handle = IDHandle[:c => c,:uri => uri]
      objs = Object.get_instance_or_factory(IDHandle[:c => c,:uri => uri],href_prefix,opts)
require 'pp'; pp objs
      #TBD: use [:normalized_attrs_only]
      @results = objs
    end
  end
end<commit_msg>notes about how to factor in logic for federated objects/attributes<commit_after>module XYZ
  class DevtestController < Controller
    def list(*uri_array)
      error_405 unless request.get?
      uri = "/" + uri_array.join("/")
      opts = ret_parsed_query_string()
      opts[:no_hrefs] ||= true
      opts[:depth] ||= :deep
      opts[:no_null_cols] = true
      href_prefix = "http://" + http_host() + "/list" 
      c = ret_session_context_id()
      @title = uri
      id_handle = IDHandle[:c => c,:uri => uri]
      objs = Object.get_instance_or_factory(IDHandle[:c => c,:uri => uri],href_prefix,opts)
require 'pp'; pp objs
      #TBD: implement :normalized_attrs_only flag
      #if federated then have object modle return the stored (inventory key variables) and
      #then make a call to bring in the federated variables
      #TBD: look at changing federated field to be a list so one can indicate only certain vars are federated
      @results = objs
    end
  end
end
{'fraction_non_alphanumeric': 0.11632155907429964, 'fraction_numerical': 0.0036540803897685747, 'mean_word_length': 3.0668316831683167, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2993641', 'n_tokens_mistral': 531, 'n_tokens_neox': 524, 'n_words': 147}