<commit_before>-- Standard code to make a table of symbols.
module Drasil.Sections.TableOfSymbols 
  (table) where

import Language.Drasil
import qualified Data.Drasil.Concepts.Math as CM
import Data.Drasil.Concepts.Documentation
 
--Removed SymbolForm Constraint and filtered non-symbol'd chunks 
-- | table of symbols creation function
table :: (Quantity s) => Stage -> [s] -> (s -> Sentence) -> Contents
table st ls f = Table 
  [at_start symbol_, at_start description, at_start' CM.unit_]
  (mkTable [P . (flip symbol st), f, unitHidingUnitless]
  (filter (\q -> hasStageSymbol q st) ls))
  (titleize tOfSymb) False "ToS"

-- ^. defn
<commit_msg>Improved imports for Sections/TableOfSymbols.hs (#613)<commit_after>-- Standard code to make a table of symbols.
module Drasil.Sections.TableOfSymbols 
  (table) where

import Language.Drasil
import qualified Data.Drasil.Concepts.Math as CM
import Data.Drasil.Concepts.Documentation (symbol_, description, tOfSymb)
 
--Removed SymbolForm Constraint and filtered non-symbol'd chunks 
-- | table of symbols creation function
table :: (Quantity s) => Stage -> [s] -> (s -> Sentence) -> Contents
table st ls f = Table 
  [at_start symbol_, at_start description, at_start' CM.unit_]
  (mkTable [P . (flip symbol st), f, unitHidingUnitless]
  (filter (\q -> hasStageSymbol q st) ls))
  (titleize tOfSymb) False "ToS"

-- ^. defn

{'fraction_non_alphanumeric': 0.11289147851420248, 'fraction_numerical': 0.0021849963583394027, 'mean_word_length': 4.126865671641791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3392195', 'n_tokens_mistral': 470, 'n_tokens_neox': 443, 'n_words': 149}