<commit_before>/**
 * Copyright (C) 2011 Orbeon, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either version
 * 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
 */
package org.orbeon.oxf.fr

import org.orbeon.oxf.properties.Properties
import org.orbeon.oxf.xml._
import org.orbeon.scaxon.XML._
import scala.collection.JavaConverters._
import org.orbeon.oxf.common.OXFException
import org.orbeon.oxf.util.ScalaUtils._
import org.orbeon.saxon.om.{Item, NodeInfo}
import org.orbeon.oxf.xforms.function.xxforms.{XXFormsProperty, XXFormsPropertiesStartsWith}
import java.util.{Map ⇒ JMap, List ⇒ JList}
import org.orbeon.oxf.xforms.control.controls.XFormsUploadControl
import org.orbeon.oxf.xforms.function.Random
import org.orbeon.oxf.util.{SecureUtils, NetUtils, XPathCache}
import org.apache.commons.lang.StringUtils
import org.orbeon.oxf.pipeline.api.ExternalContext.Request
import org.orbeon.oxf.xforms.XFormsConstants._
import org.orbeon.oxf.webapp.HttpStatusCodeException

object FormRunner {

    val NS = "http://orbeon.org/oxf/xml/form-runner"
    val XF = XFORMS_NAMESPACE_URI

    val propertyPrefix = "oxf.fr.authentication."

    val methodPropertyName = propertyPrefix + "method"
    val containerRolesPropertyName = propertyPrefix + "container.roles" // NOTE: this could be inferred from form-builder-permissions.xml, right?
    val headerUsernamePropertyName = propertyPrefix + "header.username"
    val headerRolesPropertyName = propertyPrefix + "header.roles"
    val headerRolesPropertyNamePropertyName = propertyPrefix + "header.roles.property-name"
<commit_msg>Minor<commit_after>/**
 * Copyright (C) 2011 Orbeon, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either version
 * 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
 */
package org.orbeon.oxf.fr

import org.orbeon.oxf.properties.Properties
import org.orbeon.oxf.xml._
import org.orbeon.scaxon.XML._
import scala.collection.JavaConverters._
import org.orbeon.oxf.common.OXFException
import org.orbeon.oxf.util.ScalaUtils._
import org.orbeon.saxon.om.{Item, NodeInfo}
import org.orbeon.oxf.xforms.function.xxforms.{XXFormsProperty, XXFormsPropertiesStartsWith}
import java.util.{Map ⇒ JMap, List ⇒ JList}
import org.orbeon.oxf.xforms.control.controls.XFormsUploadControl
import org.orbeon.oxf.util.{SecureUtils, NetUtils, XPathCache}
import org.apache.commons.lang.StringUtils
import org.orbeon.oxf.pipeline.api.ExternalContext.Request
import org.orbeon.oxf.xforms.XFormsConstants._
import org.orbeon.oxf.webapp.HttpStatusCodeException

object FormRunner {

    val NS = "http://orbeon.org/oxf/xml/form-runner"
    val XF = XFORMS_NAMESPACE_URI

    val propertyPrefix = "oxf.fr.authentication."

    val methodPropertyName = propertyPrefix + "method"
    val containerRolesPropertyName = propertyPrefix + "container.roles" // NOTE: this could be inferred from form-builder-permissions.xml, right?
    val headerUsernamePropertyName = propertyPrefix + "header.username"
    val headerRolesPropertyName = propertyPrefix + "header.roles"
    val headerRolesPropertyNamePropertyName = propertyPrefix + "header.roles.property-name"

{'fraction_non_alphanumeric': 0.08855818492315198, 'fraction_numerical': 0.002927543303244694, 'mean_word_length': 4.678670360110804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '7579867', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1248, 'n_words': 356}