<commit_before>module Drasil.Sections.TraceabilityMandGs
  ( traceMGF,
    traceGIntro
   ) where

import Data.Drasil.SentenceStructures
import Language.Drasil
import Data.Drasil.Concepts.Documentation
import Data.Drasil.Concepts.Math (matrix, graph)
import qualified Drasil.SRS as SRS

-- wrapper for traceMGIntro
traceMGF :: [Contents] -> [Sentence] -> [Contents] -> [Section] -> Section
traceMGF refs trailing otherContents subSec = SRS.traceyMandG ((traceMIntro refs trailing):otherContents) subSec

-- generalized traceability matrix and graph introduction: variables are references to the three tables
-- generally found in this section (in order of being mentioned)
traceMIntro :: [Contents] -> [Sentence] -> Contents
traceMIntro refs trailings = Paragraph $ foldlSent [(phrase purpose) `ofThe'` (plural traceyMatrix),<commit_msg>Improved imports in Sections/TraceabilityMandGs.hs (#616)<commit_after>module Drasil.Sections.TraceabilityMandGs
  ( traceMGF,
    traceGIntro
   ) where

import Data.Drasil.SentenceStructures (ofThe, ofThe', foldlSent, tableShows)
import Language.Drasil
import Data.Drasil.Concepts.Documentation (purpose, component, column, label, reference,
  traceyGraph, traceyMatrix, item, dependency)
import Data.Drasil.Concepts.Math (matrix, graph)
import qualified Drasil.SRS as SRS

-- wrapper for traceMGIntro
traceMGF :: [Contents] -> [Sentence] -> [Contents] -> [Section] -> Section
traceMGF refs trailing otherContents subSec = SRS.traceyMandG ((traceMIntro refs trailing):otherContents) subSec

-- generalized traceability matrix and graph introduction: variables are references to the three tables
-- generally found in this section (in order of being mentioned)
traceMIntro :: [Contents] -> [Sentence] -> Contents
traceMIntro refs trailings = Paragraph $ foldlSent [(phrase purpose) `ofThe'` (plural traceyMatrix),
{'fraction_non_alphanumeric': 0.09346299297676931, 'fraction_numerical': 0.0016207455429497568, 'mean_word_length': 5.661870503597123, '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': '6433412', 'n_tokens_mistral': 567, 'n_tokens_neox': 550, 'n_words': 168}