<commit_before>import Debugging
import Foundation

/// Errors that can be thrown while working with Fluent.
public struct FluentError: Debuggable {
    public static let readableName = "Fluent Error"
    public let identifier: String
    public var reason: String
    public var sourceLocation: SourceLocation?
    public var stackTrace: [String]
    public var suggestedFixes: [String]
    public var possibleCauses: [String]

    init(
        identifier: String,
        reason: String,
        suggestedFixes: [String] = [],
        possibleCauses: [String] = [],
        source: SourceLocation
    ) {
        self.identifier = identifier
        self.reason = reason
        self.suggestedFixes = suggestedFixes
        self.possibleCauses = possibleCauses
        self.sourceLocation = source
        self.stackTrace = FluentError.makeStackTrace()
    }
}<commit_msg>Made FluentError init method public<commit_after>import Debugging
import Foundation

/// Errors that can be thrown while working with Fluent.
public struct FluentError: Debuggable {
    public static let readableName = "Fluent Error"
    public let identifier: String
    public var reason: String
    public var sourceLocation: SourceLocation?
    public var stackTrace: [String]
    public var suggestedFixes: [String]
    public var possibleCauses: [String]

    public init(
        identifier: String,
        reason: String,
        suggestedFixes: [String] = [],
        possibleCauses: [String] = [],
        source: SourceLocation
    ) {
        self.identifier = identifier
        self.reason = reason
        self.suggestedFixes = suggestedFixes
        self.possibleCauses = possibleCauses
        self.sourceLocation = source
        self.stackTrace = FluentError.makeStackTrace()
    }
}
{'fraction_non_alphanumeric': 0.07203151378728194, 'fraction_numerical': 0.0, 'mean_word_length': 2.865217391304348, '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': '3199916', 'n_tokens_mistral': 457, 'n_tokens_neox': 450, 'n_words': 145}