<commit_before>{-# LANGUAGE DeriveDataTypeable #-}
{-# OPTIONS_GHC -fno-warn-missing-fields -fno-cse #-}

module Action.CmdLine(CmdLine(..), getCmdLine) where

import System.Console.CmdArgs
import System.Directory
import System.FilePath
import Data.Version
import Paths_hoogle(version)


data CmdLine
    = Search
        {color :: Maybe Bool
        ,link :: Bool
        ,info :: Bool
        ,database :: FilePath
        ,count :: Int
        ,query :: [String]
        ,repeat_ :: Int
        }
    | Generate
        {hackage :: String
        ,download :: Maybe Bool
        ,database :: FilePath
        ,include :: [String]
        ,debug :: Bool
        }
    | Server
        {port :: Int
        ,database :: FilePath
        ,cdn :: String<commit_msg>Export whenLoud and whenNormal from CmdLine<commit_after>{-# LANGUAGE DeriveDataTypeable #-}
{-# OPTIONS_GHC -fno-warn-missing-fields -fno-cse #-}

module Action.CmdLine(
    CmdLine(..), getCmdLine,
    whenLoud, whenNormal
    ) where

import System.Console.CmdArgs
import System.Directory
import System.FilePath
import Data.Version
import Paths_hoogle(version)


data CmdLine
    = Search
        {color :: Maybe Bool
        ,link :: Bool
        ,info :: Bool
        ,database :: FilePath
        ,count :: Int
        ,query :: [String]
        ,repeat_ :: Int
        }
    | Generate
        {hackage :: String
        ,download :: Maybe Bool
        ,database :: FilePath
        ,include :: [String]
        ,debug :: Bool
        }
    | Server
        {port :: Int
        ,database :: FilePath
        ,cdn :: String
{'fraction_non_alphanumeric': 0.11417816813048934, 'fraction_numerical': 0.0, 'mean_word_length': 2.0673076923076925, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2187021', 'n_tokens_mistral': 491, 'n_tokens_neox': 473, 'n_words': 121}