<commit_before>{-# LANGUAGE RecordWildCards #-}

-- | Module implementing the CPIO format (used by Linux initramfs)
module ViperVM.Format.CPIO
   ( FileDesc(..)
   , putFile
   , putFiles
   , getFile
   , getFiles
   )
where

import Data.Word
import Data.Binary.Put
import Data.Binary.Get
import Data.ByteString (ByteString)
import Data.ByteString.UTF8 (fromString,toString)
import qualified Data.ByteString as BS
import Control.Applicative ((<$>))
import Control.Monad (when)
import Data.Foldable (forM_)
import Numeric (showHex,readHex)

<commit_msg>Add comment<commit_after>{-# LANGUAGE RecordWildCards #-}

-- | Module implementing the CPIO format (used by Linux initramfs)
--
-- FIXME: we use ByteStrings, but their size ("length") is only an Int, not a
-- Word64.
module ViperVM.Format.CPIO
   ( FileDesc(..)
   , putFile
   , putFiles
   , getFile
   , getFiles
   )
where

import Data.Word
import Data.Binary.Put
import Data.Binary.Get
import Data.ByteString (ByteString)
import Data.ByteString.UTF8 (fromString,toString)
import qualified Data.ByteString as BS
import Control.Applicative ((<$>))
import Control.Monad (when)
import Data.Foldable (forM_)
import Numeric (showHex,readHex)


{'fraction_non_alphanumeric': 0.10702341137123746, 'fraction_numerical': 0.0033444816053511705, 'mean_word_length': 4.32, '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': '6935548', 'n_tokens_mistral': 396, 'n_tokens_neox': 392, 'n_words': 112}