<commit_before>.landing-container
  .landing-header
    %h2
      Explore the data.

    %p.lead
      Drill down and view over
      = pluralize(number_with_delimiter(Variable.where(dataset_id: Dataset.current.where(public: true).pluck(:id)).count), 'covariate')
      across
      = succeed '.' do
        = link_to pluralize(Dataset.current.where(public: true).count, 'public dataset'), datasets_path

  .landing-body
    %table.table
      %col
      %col
      %col{ width: '50px' }

      - @variables.each do |variable|
        %tr
          %td= link_to variable.name, dataset_variable_path(variable.dataset, variable)
          %td= variable.display_name
          %td= render 'datasets/mini', dataset: variable.dataset<commit_msg>Fixed variable count on landing page<commit_after>.landing-container
  .landing-header
    %h2
      Explore the data.

    %p.lead
      Drill down and view over
      - public_variable_count = Variable.joins(:dataset).where("variables.dataset_version_id = datasets.dataset_version_id").merge(Dataset.current.where(public: true)).count
      = pluralize(number_with_delimiter(public_variable_count), 'covariate')
      across
      = succeed '.' do
        = link_to pluralize(Dataset.current.where(public: true).count, 'public dataset'), datasets_path

  .landing-body
    %table.table
      %col
      %col
      %col{ width: '50px' }

      - @variables.each do |variable|
        %tr
          %td= link_to variable.name, dataset_variable_path(variable.dataset, variable)
          %td= variable.display_name
          %td= render 'datasets/mini', dataset: variable.dataset
{'fraction_non_alphanumeric': 0.11310259579728059, 'fraction_numerical': 0.003708281829419036, 'mean_word_length': 2.9012048192771083, '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': '4997388', 'n_tokens_mistral': 498, 'n_tokens_neox': 487, 'n_words': 102}