<commit_before>class DictionaryController < ApplicationController
  def show
    @schema_diagram=ClinicalTrials::FileManager.schema_diagram
    @data_dictionary=ClinicalTrials::FileManager.data_dictionary
    @table_dictionary=ClinicalTrials::FileManager.table_dictionary
    @tables = []
    tabs=get_dictionary
    header = tabs.first
    (2..tabs.last_row).each do |i|
      row = Hash[[header, tabs.row(i)].transpose]
      if !row['table'].nil?
        @tables << fix_attribs(row)
      end
    end<commit_msg>aact-368:  Dictionary controller needs to define url for the Admin Schema diagram<commit_after>class DictionaryController < ApplicationController
  def show
    @admin_schema_diagram=ClinicalTrials::FileManager.admin_schema_diagram
    @schema_diagram=ClinicalTrials::FileManager.schema_diagram
    @data_dictionary=ClinicalTrials::FileManager.data_dictionary
    @table_dictionary=ClinicalTrials::FileManager.table_dictionary
    @tables = []
    tabs=get_dictionary
    header = tabs.first
    (2..tabs.last_row).each do |i|
      row = Hash[[header, tabs.row(i)].transpose]
      if !row['table'].nil?
        @tables << fix_attribs(row)
      end
    end
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.004262574595055414, 'mean_word_length': 4.336363636363636, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4726226', 'n_tokens_mistral': 380, 'n_tokens_neox': 345, 'n_words': 59}