<commit_before>{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns      #-}

-- | Parameter parsing/template haskell code.

module DataAnalysis.Application.Params where

import           Control.Applicative
import           Control.Monad.Error ()
import           Data.Char
import           Data.Data
import           Data.List
import           Data.Map (Map)
import qualified Data.Map as M
import           Data.Maybe
import           Data.Monoid
import           Data.Text (Text)
import qualified Data.Text as T
import           Language.Haskell.TH
import           Language.Haskell.TH.Lift
import           Language.Haskell.TH.Quote
import           Language.Haskell.TH.Syntax

-- | A parameter specification.
data Parameter = Parameter
  { paramName :: !String
  , paramType :: !String
  , paramMin  :: !(Maybe String)<commit_msg>Remove th-lift<commit_after>{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns      #-}

-- | Parameter parsing/template haskell code.

module DataAnalysis.Application.Params where

import           Control.Applicative
import           Control.Monad.Error ()
import           Data.Char
import           Data.Maybe
import           Data.Monoid
import           Data.Text (Text)
import qualified Data.Text as T

-- | A parameter specification.
data Parameter = Parameter
  { paramName :: !String
  , paramType :: !String
  , paramMin  :: !(Maybe String)
{'fraction_non_alphanumeric': 0.09950248756218906, 'fraction_numerical': 0.0, 'mean_word_length': 2.559734513274336, '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': '2646070', 'n_tokens_mistral': 476, 'n_tokens_neox': 462, 'n_words': 118}