<commit_before>module System.Linux.Btrfs.UUID
    ( UUID(..)
    , toString
    , fromString
    ) where

import Data.Word (Word64)
import Data.Word.Endian (BE64(..))
import Data.Bits ((.&.), unsafeShiftR)
import Text.Printf (printf)

import Foreign.Storable (Storable(..))
import Foreign.Ptr (castPtr)
import Foreign.C.Types (CInt)

-- | A @UUID@ is stored as two big-endian 'Word64's.
data UUID = UUID Word64 Word64
  deriving (Eq, Ord)

instance Show UUID where
    showsPrec p u =
        showParen (p > 9) $
            showString "fromString " . shows (toString u)

instance Storable UUID where
    sizeOf _ = 16
    alignment _ = alignment (undefined :: CInt)<commit_msg>update documentation regarding the Storable UUID instance<commit_after>module System.Linux.Btrfs.UUID
    ( UUID(..)
    , toString
    , fromString
    ) where

import Data.Word (Word64)
import Data.Word.Endian (BE64(..))
import Data.Bits ((.&.), unsafeShiftR)
import Text.Printf (printf)

import Foreign.Storable (Storable(..))
import Foreign.Ptr (castPtr)
import Foreign.C.Types (CInt)

data UUID = UUID Word64 Word64
  deriving (Eq, Ord)

instance Show UUID where
    showsPrec p u =
        showParen (p > 9) $
            showString "fromString " . shows (toString u)

-- | A @UUID@ is stored as two big-endian 'Word64's.
instance Storable UUID where
    sizeOf _ = 16
    alignment _ = alignment (undefined :: CInt)
{'fraction_non_alphanumeric': 0.11428571428571428, 'fraction_numerical': 0.018571428571428572, 'mean_word_length': 3.1572700296735907, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4480742', 'n_tokens_mistral': 477, 'n_tokens_neox': 463, 'n_words': 141}