<commit_before>-- | Contains the types associated to references
module Language.Drasil.RefTypes(RefAdd, RefType(..), DType(..), ReqType(..)) where

import Language.Drasil.UID (UID)

--import Language.Drasil.Document.Core (DType(..)) cannot be imported due to importcycles

-- | Types of definitions
data DType = General
           | Instance
           | TM
           | DD

type RefAdd = String

-- | What type of requirement are we dealing with?
data ReqType = FR  -- ^ Functional Requirement
             | NFR -- ^ Non-Functional Requirement

instance Show ReqType where
  show FR  = "FR"
  show NFR = "NFR"

-- | For building references. Defines the possible type of reference.
data RefType = Tab    -- ^ Table
             | Lst   -- ^ List
             | Fig    -- ^ Figure
             | Sect   -- ^ Section
             | Def DType  -- ^ Definition (includes theoretical models) (DType used to set shortnames)
             | Mod    -- ^ Module
             | Req ReqType -- ^ Requirement
             | Assump -- ^ Assumption
             | LCh     -- ^ Likely Change
             | UnCh     -- ^ Unlikely Change
             | EqnB   -- ^ Equation Block
             | Cite   -- ^ Citation
             | Goal   -- ^ Goal Statement
             | PSD    -- ^ Physical System Description
             | Label RefType    -- ^ Label --FIXME: hack (#971)
             | Blank  -- ^ Prefix filler for ConceptInstance
             | DeferredCC UID  -- ^ For ConceptInstances --FIXME: Used by References to create a Deferred ShortName (#562)
             | Link -- ^ URI

instance Show RefType where
  show Tab    = "Table"
  show Lst    = "List"
  show Fig    = "Figure"
  show Sect   = "Section"
  show (Label x) = show x --FIXME: hack (#971)<commit_msg>no need for a Show instance of ReqType either.<commit_after>-- | Contains the types associated to references
module Language.Drasil.RefTypes(RefAdd, RefType(..), DType(..), ReqType(..)) where

import Language.Drasil.UID (UID)

--import Language.Drasil.Document.Core (DType(..)) cannot be imported due to importcycles

-- | Types of definitions
data DType = General
           | Instance
           | TM
           | DD

type RefAdd = String

-- | What type of requirement are we dealing with?
data ReqType = FR  -- ^ Functional Requirement
             | NFR -- ^ Non-Functional Requirement

-- | For building references. Defines the possible type of reference.
data RefType = Tab    -- ^ Table
             | Lst   -- ^ List
             | Fig    -- ^ Figure
             | Sect   -- ^ Section
             | Def DType  -- ^ Definition (includes theoretical models) (DType used to set shortnames)
             | Mod    -- ^ Module
             | Req ReqType -- ^ Requirement
             | Assump -- ^ Assumption
             | LCh     -- ^ Likely Change
             | UnCh     -- ^ Unlikely Change
             | EqnB   -- ^ Equation Block
             | Cite   -- ^ Citation
             | Goal   -- ^ Goal Statement
             | PSD    -- ^ Physical System Description
             | Label RefType    -- ^ Label --FIXME: hack (#971)
             | Blank  -- ^ Prefix filler for ConceptInstance
             | DeferredCC UID  -- ^ For ConceptInstances --FIXME: Used by References to create a Deferred ShortName (#562)
             | Link -- ^ URI

instance Show RefType where
  show Tab    = "Table"
  show Lst    = "List"
  show Fig    = "Figure"
  show Sect   = "Section"
  show (Label x) = show x --FIXME: hack (#971)
{'fraction_non_alphanumeric': 0.1024390243902439, 'fraction_numerical': 0.005164992826398852, 'mean_word_length': 1.6610687022900763, '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': '967521', 'n_tokens_mistral': 1002, 'n_tokens_neox': 956, 'n_words': 337}