<commit_before>{-# LANGUAGE CPP #-}

---------------------------------------------------------
--
-- Module        : Network.Wai.Handler.Warp
-- Copyright     : <NAME>
-- License       : BSD3
--
-- Maintainer    : <NAME> <<EMAIL>>
-- Stability     : Stable
-- Portability   : portable
--
-- A fast, light-weight HTTP server handler for WAI.
--
---------------------------------------------------------

-- | A fast, light-weight HTTP server handler for WAI.
module Network.Wai.Handler.Warp (
    -- * Run a Warp server
    run
  , runSettings
  , runSettingsSocket
    -- * Settings
  , Settings
  , defaultSettings
  , settingsPort
  , settingsHost
  , settingsOnException
  , settingsOnOpen
  , settingsOnClose
  , settingsTimeout
  , settingsIntercept
  , settingsManager
  , settingsFdCacheDuration
  , settingsResourceTPerRequest
  , settingsBeforeMainLoop
  , settingsServerName
    -- ** Data types
  , HostPreference (..)
    -- * Connection
  , Connection (..)
  , runSettingsConnection
  , runSettingsConnectionMaker
    -- * Datatypes
  , Port
  , InvalidRequest (..)
    -- * Internal (Manager)
  , Manager
  , Handle
  , initialize
  , withManager
  , register
  , registerKillThread
  , pause
  , resume
  , cancel
    -- * Internal
  , parseRequest
  , sendResponse
  , dummyCleaner
  , socketConnection
#if TEST
  , takeHeaders
  , parseFirst
  , readInt
#endif
    -- * Misc
  , warpVersion
  ) where

import Network.Wai.Handler.Warp.Request
import Network.Wai.Handler.Warp.Response
import Network.Wai.Handler.Warp.Run
import Network.Wai.Handler.Warp.Settings
import Network.Wai.Handler.Warp.Types
import Network.Wai.Handler.Warp.Timeout
import Data.Conduit.Network (HostPreference(..))<commit_msg>sectioning.<commit_after>{-# LANGUAGE CPP #-}

---------------------------------------------------------
--
-- Module        : Network.Wai.Handler.Warp
-- Copyright     : <NAME>
-- License       : BSD3
--
-- Maintainer    : <NAME> <<EMAIL>>
-- Stability     : Stable
-- Portability   : portable
--
-- A fast, light-weight HTTP server handler for WAI.
--
---------------------------------------------------------

-- | A fast, light-weight HTTP server handler for WAI.
module Network.Wai.Handler.Warp (
    -- * Run a Warp server
    run
  , runSettings
  , runSettingsSocket
    -- * Settings
  , Settings
  , defaultSettings
  , settingsPort
  , settingsHost
  , settingsOnException
  , settingsOnOpen
  , settingsOnClose
  , settingsTimeout
  , settingsIntercept
  , settingsManager
  , settingsFdCacheDuration
  , settingsResourceTPerRequest
  , settingsBeforeMainLoop
  , settingsServerName
    -- ** Data types
  , HostPreference (..)
    -- * Connection
  , Connection (..)
  , runSettingsConnection
  , runSettingsConnectionMaker
    -- * Datatypes
  , Port
  , InvalidRequest (..)
    -- * Internal
    -- ** Time out manager
  , Manager
  , Handle
  , initialize
  , withManager
  , register
  , registerKillThread
  , pause
  , resume
  , cancel
    -- ** Cleaner
  , Cleaner
  , dummyCleaner
    -- ** Request and response
  , parseRequest
  , sendResponse
  , socketConnection
#if TEST
  , takeHeaders
  , parseFirst
  , readInt
#endif
    -- ** Version
  , warpVersion
  ) where

import Network.Wai.Handler.Warp.Request
import Network.Wai.Handler.Warp.Response
import Network.Wai.Handler.Warp.Run
import Network.Wai.Handler.Warp.Settings
import Network.Wai.Handler.Warp.Types
import Network.Wai.Handler.Warp.Timeout
import Data.Conduit.Network (HostPreference(..))
{'fraction_non_alphanumeric': 0.16781214203894615, 'fraction_numerical': 0.000572737686139748, 'mean_word_length': 2.2016498625114576, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5265124', 'n_tokens_mistral': 1040, 'n_tokens_neox': 1037, 'n_words': 217}