<commit_before>import XCTest

// NOTE: This file is not intended to be included in the Xcode project or CocoaPods.
//       It is picked up by the Swift Package Manager during its build process.

open class QuickSpec: XCTestCase {
    open func spec() {}

#if os(Linux)
    public required init() {
        super.init(name: "", testClosure: { _ in })
    }
    public required init(name: String, testClosure: @escaping (XCTestCase) throws -> Swift.Void) {
        super.init(name: name, testClosure: testClosure)
    }
#else
    public required override init() {
        super.init()
    }
#endif

    static var allTestsCache = [String : [(String, (XCTestCase) -> () throws -> Void)]]()

    public class var allTests: [(String, (XCTestCase) -> () throws -> Void)] {
        if let cached = allTestsCache[String(describing: self)] {
            return cached
        }

        gatherExamplesIfNeeded()

        let examples = World.sharedWorld.examples(self)
        let result = examples.map { example -> (String, (XCTestCase) -> () throws -> Void) in
            return (example.name, { _ in { example.run() } })
        }
        allTestsCache[String(describing: self)] = result
        return result
    }

    internal static func gatherExamplesIfNeeded() {
        let world = World.sharedWorld
        let rootExampleGroup = world.rootExampleGroupForSpecClass(self)
        if rootExampleGroup.examples.isEmpty {
            world.currentExampleGroup =  rootExampleGroup
            self.init().spec()
            world.currentExampleGroup = nil
        }
    }
}<commit_msg>[SwiftLint] Suppress colon violation<commit_after>import XCTest

// NOTE: This file is not intended to be included in the Xcode project or CocoaPods.
//       It is picked up by the Swift Package Manager during its build process.

open class QuickSpec: XCTestCase {
    open func spec() {}

#if os(Linux)
    public required init() {
        super.init(name: "", testClosure: { _ in })
    }
    public required init(name: String, testClosure: @escaping (XCTestCase) throws -> Swift.Void) {
        super.init(name: name, testClosure: testClosure)
    }
#else
    public required override init() {
        super.init()
    }
#endif

    static var allTestsCache = [String: [(String, (XCTestCase) -> () throws -> Void)]]()

    public class var allTests: [(String, (XCTestCase) -> () throws -> Void)] {
        if let cached = allTestsCache[String(describing: self)] {
            return cached
        }

        gatherExamplesIfNeeded()

        let examples = World.sharedWorld.examples(self)
        let result = examples.map { example -> (String, (XCTestCase) -> () throws -> Void) in
            return (example.name, { _ in { example.run() } })
        }
        allTestsCache[String(describing: self)] = result
        return result
    }

    internal static func gatherExamplesIfNeeded() {
        let world = World.sharedWorld
        let rootExampleGroup = world.rootExampleGroupForSpecClass(self)
        if rootExampleGroup.examples.isEmpty {
            world.currentExampleGroup =  rootExampleGroup
            self.init().spec()
            world.currentExampleGroup = nil
        }
    }
}
{'fraction_non_alphanumeric': 0.10721003134796238, 'fraction_numerical': 0.0, 'mean_word_length': 2.525966850828729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '943339', 'n_tokens_mistral': 934, 'n_tokens_neox': 884, 'n_words': 257}