<commit_before>xquery version "1.0";
import module namespace request="http://exist-db.org/xquery/request";
import module namespace session="http://exist-db.org/xquery/session";

declare option exist:serialize "method=html media-type=text/html";

let $exceptionMessage := session:get-attribute("betterform.exception")
let $message1 := substring-before($exceptionMessage,"::")

let $message2 := if ( string-length(substring-after($exceptionMessage,"::")) != 0)
                then substring-after($exceptionMessage,"::")
                else "unknown"

return
<html>
<head>
	<title>betterFORM Error Page</title>
	<style>
	<!--
	body{
        font-family:Tahoma;
        font-size:14pt;
        background:url('resources/images/bgOne.gif') repeat-x scroll;<commit_msg>betterFORM-extension: - fixed typo in xferror.xql<commit_after>xquery version "1.0";
import module namespace request="http://exist-db.org/xquery/request";
import module namespace session="http://exist-db.org/xquery/session";

declare option exist:serialize "method=html media-type=text/html";

let $exceptionMessage := session:get-attribute("betterform.exception.message")
let $message1 := substring-before($exceptionMessage,"::")

let $message2 := if ( string-length(substring-after($exceptionMessage,"::")) != 0)
                then substring-after($exceptionMessage,"::")
                else "unknown"

return
<html>
<head>
	<title>betterFORM Error Page</title>
	<style>
	<!--
	body{
        font-family:Tahoma;
        font-size:14pt;
        background:url('resources/images/bgOne.gif') repeat-x scroll;
{'fraction_non_alphanumeric': 0.1567258883248731, 'fraction_numerical': 0.008883248730964468, 'mean_word_length': 4.327702702702703, 'pattern_counts': {'":': 6, '<': 15, '<?xml version=': 0, '>': 13, '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': '413240', 'n_tokens_mistral': 481, 'n_tokens_neox': 464, 'n_words': 91}