<commit_before>// Copyright (c) 2017 <NAME>
// Licensed under MIT License
//
// See LICENSE for license information

import Foundation

/**
 Represents an error, which happened during unarchiving XZ archive.
 It may indicate that either archive is damaged or it might not be XZ archive at all.
 */
public enum XZError: Error {
    /// Either 'magic' number in header or footer isn't equal to a predefined value.
    case wrongMagic
    /**
     One of the special fields in archive has an incorrect value,
     which can mean both damaged archive or that archive uses a newer version of XZ format.
     */
    case wrongField
    /// Checksum of one of the fields of archive doesn't match the value stored in archive.
    case wrongInfoCRC
    /// Filter used in archvie is unsupported.
    case wrongFilterID
    /// Archive uses SHA-256 checksum which is unsupported.
    case checkTypeSHA256
    /**
     Either size of decompressed data isn't equal to the one specified in archive or
     amount of compressed data read is different from the one stored in archive.
     */
    case wrongDataSize
    /**
     Computed checksum of uncompressed data doesn't match the value stored in the archive.
     Associated value of the error contains already decompressed data.
     */
    case wrongCheck(Data)<commit_msg>Array of Data as associated values for XZ wrongCheck error<commit_after>// Copyright (c) 2017 <NAME>
// Licensed under MIT License
//
// See LICENSE for license information

import Foundation

/**
 Represents an error, which happened during unarchiving XZ archive.
 It may indicate that either archive is damaged or it might not be XZ archive at all.
 */
public enum XZError: Error {
    /// Either 'magic' number in header or footer isn't equal to a predefined value.
    case wrongMagic
    /**
     One of the special fields in archive has an incorrect value,
     which can mean both damaged archive or that archive uses a newer version of XZ format.
     */
    case wrongField
    /// Checksum of one of the fields of archive doesn't match the value stored in archive.
    case wrongInfoCRC
    /// Filter used in archvie is unsupported.
    case wrongFilterID
    /// Archive uses SHA-256 checksum which is unsupported.
    case checkTypeSHA256
    /**
     Either size of decompressed data isn't equal to the one specified in archive or
     amount of compressed data read is different from the one stored in archive.
     */
    case wrongDataSize
    /**
     Computed checksum of uncompressed data doesn't match the value stored in the archive.
     Associated value of the error contains already decompressed data.
     */
    case wrongCheck([Data])
{'fraction_non_alphanumeric': 0.05304445274561076, 'fraction_numerical': 0.007471049682480389, 'mean_word_length': 2.915204678362573, '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': '2064949', 'n_tokens_mistral': 688, 'n_tokens_neox': 642, 'n_words': 362}