<commit_before>import XCTest
@testable import Fluent

class ModelTests: XCTestCase {
    static let allTests = [
        ("testManualPreparation", testManualPreparation),
    ]

    var lqd: LastQueryDriver!
    var db: Database!

    override func setUp() {
        lqd = LastQueryDriver()
        db = Database(lqd)
    }

    func testManualPreparation() throws {
        Atom.database = db
        var atom = Atom(name: "test")

        atom.id = 5
        print(atom.exists)
        try! atom.save()

        let (sql, _) = GeneralSQLSerializer(sql: lqd.lastQuery!).serialize()
        print(sql)<commit_msg>test updates<commit_after>import XCTest
@testable import Fluent

class ModelTests: XCTestCase {
    static let allTests = [
        ("testExamples", testExamples),
    ]

    var lqd: LastQueryDriver!
    var db: Database!

    override func setUp() {
        lqd = LastQueryDriver()
        db = Database(lqd)
    }

    func testExamples() throws {
        Atom.database = db
        var atom = Atom(name: "test")

        atom.id = 5
        print(atom.exists)
        try! atom.save()

        let (sql, _) = GeneralSQLSerializer(sql: lqd.lastQuery!).serialize()
        print(sql)
{'fraction_non_alphanumeric': 0.10517529215358931, 'fraction_numerical': 0.001669449081803005, 'mean_word_length': 2.3491620111731844, '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': '6593184', 'n_tokens_mistral': 393, 'n_tokens_neox': 371, 'n_words': 90}