<commit_before>'use strict';
const config = require('config');
const escapeHTML = require('escape-html');
const md = require('../../util/md');
const urlUtils = require('../../util/url-utils');

// Used for field names in forms that support UUID wildcards
const uuidRegex = '([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})';

let forms = {

  parseSubmission(req, options) {
    options = Object.assign({
      // A form schema that tells us what to do with specific fields
      formDef: undefined,
      // A globally unique key for this form that we can use to trigger
      // certain configured actions, like adding a CAPTCHA to some forms
      formKey: undefined,
      // The language of content that is being processed. Currently we expect
      // that a submission has exactly one language (i.e. not multiple
      // languages being edited at the sam etime)
      language: undefined,
      // An array of field names that scan be skipped entirely. This is useful
      // when a required field has been provided from a source outsied the form.
      skipRequiredCheck: []
    }, options);


    // Do not manipulate original form definition
    let formDef = Object.assign([], options.formDef);
    let formKey = options.formKey;

    let hasRequiredFields = true;
    let hasUnknownFields = false;
    let hasCorrectCaptcha = null;<commit_msg>fix typo<commit_after>'use strict';
const config = require('config');
const escapeHTML = require('escape-html');
const md = require('../../util/md');
const urlUtils = require('../../util/url-utils');

// Used for field names in forms that support UUID wildcards
const uuidRegex = '([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})';

let forms = {

  parseSubmission(req, options) {
    options = Object.assign({
      // A form schema that tells us what to do with specific fields
      formDef: undefined,
      // A globally unique key for this form that we can use to trigger
      // certain configured actions, like adding a CAPTCHA to some forms
      formKey: undefined,
      // The language of content that is being processed. Currently we expect
      // that a submission has exactly one language (i.e. not multiple
      // languages being edited at the sam etime)
      language: undefined,
      // An array of field names that scan be skipped entirely. This is useful
      // when a required field has been provided from a source outside the form.
      skipRequiredCheck: []
    }, options);


    // Do not manipulate original form definition
    let formDef = Object.assign([], options.formDef);
    let formKey = options.formKey;

    let hasRequiredFields = true;
    let hasUnknownFields = false;
    let hasCorrectCaptcha = null;
{'fraction_non_alphanumeric': 0.11397459165154265, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 2.9484240687679084, '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': '6238964', 'n_tokens_mistral': 786, 'n_tokens_neox': 762, 'n_words': 304}