<commit_before>{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}

module Network.Wai.Handler.Warp.IO where

import Data.ByteString.Internal (ByteString(..))
import Foreign.ForeignPtr (newForeignPtr_)
import Network.Wai.Handler.Warp.Buffer

#if MIN_VERSION_blaze_builder(0,4,0)

import Blaze.ByteString.Builder (Builder)<commit_msg>Attempt to fix doctest on Travis<commit_after>{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}

module Network.Wai.Handler.Warp.IO where

import Data.ByteString.Internal (ByteString(..))
import Foreign.ForeignPtr (newForeignPtr_)
import Network.Wai.Handler.Warp.Buffer

-- Support for doctest, where cabal macros are not available
#ifndef MIN_VERSION_blaze_builder
#define MIN_VERSION_blaze_builder(x, y, z) 1
#endif

#if MIN_VERSION_blaze_builder(0,4,0)

import Blaze.ByteString.Builder (Builder)
{'fraction_non_alphanumeric': 0.11552346570397112, 'fraction_numerical': 0.00842358604091456, 'mean_word_length': 5.991596638655462, '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': '7302588', 'n_tokens_mistral': 297, 'n_tokens_neox': 289, 'n_words': 63}