<commit_before>{-# LANGUAGE FlexibleContexts #-}
-- | This modules provides a way to convert document identifiers, such
--  as DOIs, ISBNs, arXiv IDs to bibliographic references.
--
--  Each type of identifiers will be converted via internet services
--  to a bibliographic record of type 'Text.CSL.Reference' , which in
--  turn can be rendered in various format using @citeproc-hs@ package
--  <hackage.haskell.org/package/citeproc-hs> .
--
--  Moreover, the server responses are cached in a local database,
--  making the server load as little as possible.

module Text.CSL.Input.Identifier
       (resolveEither, resolve, withDatabaseFile, Database(..), database, databaseMap, HasDatabase(..),
        resolveDef, 
        toBibTeXItem)
       where

import qualified Control.Lens as Lens
import           Control.Monad.IO.Class<commit_msg>forgot to export resolveEitherDef<commit_after>{-# LANGUAGE FlexibleContexts #-}
-- | This modules provides a way to convert document identifiers, such
--  as DOIs, ISBNs, arXiv IDs to bibliographic references.
--
--  Each type of identifiers will be converted via internet services
--  to a bibliographic record of type 'Text.CSL.Reference' , which in
--  turn can be rendered in various format using @citeproc-hs@ package
--  <hackage.haskell.org/package/citeproc-hs> .
--
--  Moreover, the server responses are cached in a local database,
--  making the server load as little as possible.

module Text.CSL.Input.Identifier
       (resolveEither, resolve, withDatabaseFile, Database(..), database, databaseMap, HasDatabase(..),
        resolveDef, resolveEitherDef, 
        toBibTeXItem)
       where

import qualified Control.Lens as Lens
import           Control.Monad.IO.Class
{'fraction_non_alphanumeric': 0.09096176129779837, 'fraction_numerical': 0.0, 'mean_word_length': 3.3721518987341774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1986342', 'n_tokens_mistral': 495, 'n_tokens_neox': 474, 'n_words': 179}