<commit_before>import Fluent
import Submissions
import Sugar
import Validation
import Vapor

extension AdminPanelUser: Submittable {
    public static func makeFields(
        for submission: Submission?,
        given user: AdminPanelUser?
    ) throws -> [Field] {
        return try [
            Field(
                keyPath: \.email,
                instance: submission,
                label: "Email",
                validators: [.email],
                asyncValidators: [{ req, _ in
                    guard let submission = submission else { return req.future([]) }
                    validateThat(
                        only: user,
                        has: submission.email,
                        for: \.email,
                        on: req
                    )
                }]
            )
        ]<commit_msg>Fix name of static fields function<commit_after>import Fluent
import Submissions
import Sugar
import Validation
import Vapor

extension AdminPanelUser: Submittable {
    public static func makeAdditionalFields(
        for submission: Submission?,
        given user: AdminPanelUser?
    ) throws -> [Field] {
        return try [
            Field(
                keyPath: \.email,
                instance: submission,
                label: "Email",
                validators: [.email],
                asyncValidators: [{ req, _ in
                    guard let submission = submission else { return req.future([]) }
                    validateThat(
                        only: user,
                        has: submission.email,
                        for: \.email,
                        on: req
                    )
                }]
            )
        ]
{'fraction_non_alphanumeric': 0.0722189866045428, 'fraction_numerical': 0.0, 'mean_word_length': 1.1691919191919191, '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': '2019590', 'n_tokens_mistral': 402, 'n_tokens_neox': 367, 'n_words': 115}