<commit_before>{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances, FlexibleInstances, FlexibleContexts #-}
{-# LANGUAGE TypeOperators, DefaultSignatures, ScopedTypeVariables #-}
module Database.Selda.SqlResult
  ( SqlResult (..), ResultReader
  , runResultReader, next
  ) where
import Database.Selda.SqlType
import Control.Monad.State
import GHC.Generics
<commit_msg>Use strict state monad for result reader.<commit_after>{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances, FlexibleInstances, FlexibleContexts #-}
{-# LANGUAGE TypeOperators, DefaultSignatures, ScopedTypeVariables #-}
module Database.Selda.SqlResult
  ( SqlResult (..), ResultReader
  , runResultReader, next
  ) where
import Database.Selda.SqlType
import Control.Monad.State.Strict
import GHC.Generics

{'fraction_non_alphanumeric': 0.09873708381171067, 'fraction_numerical': 0.0, 'mean_word_length': 6.3277310924369745, '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': '6597399', 'n_tokens_mistral': 283, 'n_tokens_neox': 272, 'n_words': 56}