<commit_before>xquery version "1.0" encoding "utf-8";

import module namespace calli = "http://callimachusproject.org/rdf/2009/framework#" at "/callimachus/layout-functions.xq";

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<head>
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,target-densityDpi=device-dpi"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="icon" href="/favicon.ico" />
    {calli:styles-href(<link rel="stylesheet" />)}
    {calli:scripts-src(<script type="text/javascript" />)}
    <!--[if lt IE 9]>
        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {calli:head-nodes()}
</head>
<body>
    {calli:body-attributes()}
    <nav class="navbar navbar-default navbar-static-top hidden-iframe">
        <div class="container">
            <header class="navbar-header">
                <div class="row">
                    <div class="col-xs-8 col-sm-6 col-md-8">
                        {calli:home-href(<a class="navbar-brand">Callimachus</a>)}
                    </div>
                    <div class="col-xs-4 col-sm-6 col-md-4 hidden-login hidden-print">
                        {calli:login-href(<a class="pull-right btn btn-default navbar-btn">Sign in <span class="glyphicon glyphicon-log-in"></span></a>)}
                    </div>
                    <div class="hidden-xs col-sm-4 col-md-3 hidden-logout hidden-print">
                        <div class="pull-right">{calli:lookup-form('Lookup...')}</div>
                    </div>
                    <div class="col-xs-4 col-sm-2 col-md-1 hidden-logout hidden-print">
                        <div class="btn-group pull-right">
                            <button type="button" class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown">
                                <span class="sr-only">Main menu</span>
                                <span class="glyphicon glyphicon-align-justify"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu">
                                <li>{calli:folder-href(<a>Home folder</a>)}</li>
                                <li>{calli:changes-href(<a>Recent changes</a>)}</li>
                                <li class="visible-xs">{calli:lookup-href(<a>Lookup resources</a>)}</li>
                                <li class="divider"></li>
                                <li>{calli:callimachus-about-href(<a>About Callimachus</a>)}</li>
                                <li>{calli:callimachus-getting-started-href(<a>Getting started</a>)}</li>
                                <li>{calli:callimachus-feedback-href(<a>Send feedback</a>)}</li>
                                <li class="divider"></li>
                                {calli:head-links(<li><a /></li>,<li class="divider" />)}
                                <li>{calli:whatlinkshere-href(<a>What links here</a>)}</li>
                                <li>{calli:relatedchanges-href(<a>Related changes</a>)}</li>
                                <li>{calli:permissions-href(<a>Permissions</a>)}</li>
                                <li>{calli:introspect-href(<a>Introspect resource</a>)}</li>
                                <li><a href="javascript:print()">Print this page</a></li>
                                <li class="divider"></li>
                                <li>{calli:profile-href(<a>Account</a>)}</li>
                                <li>{calli:logout-href(<a>Sign out</a>)}</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </header>
        </div>
    </nav>
    <div class="container">
        <ol class="breadcrumb navbar-left hidden-iframe">{calli:breadcrumb-links(<li><a/></li>, <li class="active"/>)}</ol>
        {calli:activate-nav(<nav class="hidden-logout hidden-iframe hidden-print">
            <div class="nav nav-tabs clearfix">
                <ul class="nav nav-tabs navbar-right" style="border-bottom:none">
                    <li>{calli:view-href(<a tabindex="1" onclick="location.replace(href);return false">View</a>)}</li>
                    <li>{calli:edit-href(<a tabindex="2" onclick="location.replace(href);return false">Edit</a>)}</li>
                    <li>{calli:discussion-href(<a tabindex="3" onclick="location.replace(href);return false">Discussion</a>)}</li>
                    <li>{calli:describe-href(<a tabindex="4" onclick="location.replace(href);return false">Describe</a>)}</li>
                    <li>{calli:history-href(<a tabindex="5" onclick="location.replace(href);return false">History</a>)}</li>
                </ul>
            </div>
            <br />
        </nav>)}
        {calli:error-alert(<div class="alert alert-danger alert-dismissable alert-block">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h4>Oops!</h4>
        </div>)}
    </div>
    {calli:body-nodes()}

    <div class="navbar navbar-default navbar-large navbar-relative-bottom hidden-iframe">
        <footer class="navbar-inner">
            <div class="container">
                {calli:generator-p(<p class="navbar-right navbar-text" />)}
                {calli:lastmod-time(<p class="navbar-text">This resource was last modified at <time class="datetime-local"/></p>)}
            </div>
        </footer>
    </div><commit_msg>Fix #144 Flash Error Message Overlaps with Breadcrumbs When Action Tabs are Hidden<commit_after>xquery version "1.0" encoding "utf-8";

import module namespace calli = "http://callimachusproject.org/rdf/2009/framework#" at "/callimachus/layout-functions.xq";

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<head>
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,target-densityDpi=device-dpi"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="icon" href="/favicon.ico" />
    {calli:styles-href(<link rel="stylesheet" />)}
    {calli:scripts-src(<script type="text/javascript" />)}
    <!--[if lt IE 9]>
        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {calli:head-nodes()}
</head>
<body>
    {calli:body-attributes()}
    <nav class="navbar navbar-default navbar-static-top hidden-iframe">
        <header class="container">
            <div class="row">
                <div class="col-xs-8 col-sm-6 col-md-8">
                    {calli:home-href(<a class="navbar-brand">Callimachus</a>)}
                </div>
                <div class="col-xs-4 col-sm-6 col-md-4 hidden-login hidden-print">
                    {calli:login-href(<a class="pull-right btn btn-default navbar-btn">Sign in <span class="glyphicon glyphicon-log-in"></span></a>)}
                </div>
                <div class="hidden-xs col-sm-4 col-md-3 hidden-logout hidden-print">
                    <div class="pull-right">{calli:lookup-form('Lookup...')}</div>
                </div>
                <div class="col-xs-4 col-sm-2 col-md-1 hidden-logout hidden-print">
                    <div class="btn-group pull-right">
                        <button type="button" class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown">
                            <span class="sr-only">Main menu</span>
                            <span class="glyphicon glyphicon-align-justify"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li>{calli:folder-href(<a>Home folder</a>)}</li>
                            <li>{calli:changes-href(<a>Recent changes</a>)}</li>
                            <li class="visible-xs">{calli:lookup-href(<a>Lookup resources</a>)}</li>
                            <li class="divider"></li>
                            <li>{calli:callimachus-about-href(<a>About Callimachus</a>)}</li>
                            <li>{calli:callimachus-getting-started-href(<a>Getting started</a>)}</li>
                            <li>{calli:callimachus-feedback-href(<a>Send feedback</a>)}</li>
                            <li class="divider"></li>
                            {calli:head-links(<li><a /></li>,<li class="divider" />)}
                            <li>{calli:whatlinkshere-href(<a>What links here</a>)}</li>
                            <li>{calli:relatedchanges-href(<a>Related changes</a>)}</li>
                            <li>{calli:permissions-href(<a>Permissions</a>)}</li>
                            <li>{calli:introspect-href(<a>Introspect resource</a>)}</li>
                            <li><a href="javascript:print()">Print this page</a></li>
                            <li class="divider"></li>
                            <li>{calli:profile-href(<a>Account</a>)}</li>
                            <li>{calli:logout-href(<a>Sign out</a>)}</li>
                        </ul>
                    </div>
                </div>
            </div>
        </header>
    </nav>
    <div class="container">
        <ol class="breadcrumb navbar-left hidden-iframe">{calli:breadcrumb-links(<li><a/></li>, <li class="active"/>)}</ol>
        {calli:activate-nav(<nav class="hidden-logout hidden-iframe hidden-print">
            <div class="nav nav-tabs clearfix">
                <ul class="nav nav-tabs navbar-right" style="border-bottom:none">
                    <li>{calli:view-href(<a tabindex="1" onclick="location.replace(href);return false">View</a>)}</li>
                    <li>{calli:edit-href(<a tabindex="2" onclick="location.replace(href);return false">Edit</a>)}</li>
                    <li>{calli:discussion-href(<a tabindex="3" onclick="location.replace(href);return false">Discussion</a>)}</li>
                    <li>{calli:describe-href(<a tabindex="4" onclick="location.replace(href);return false">Describe</a>)}</li>
                    <li>{calli:history-href(<a tabindex="5" onclick="location.replace(href);return false">History</a>)}</li>
                </ul>
            </div>
            <br />
        </nav>)}
        <div class="clearfix"></div>
        {calli:error-alert(<div class="alert alert-danger alert-dismissable alert-block">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h4>Oops!</h4>
        </div>)}
    </div>
    {calli:body-nodes()}

    <div class="navbar navbar-default navbar-large navbar-relative-bottom hidden-iframe">
        <footer class="navbar-inner">
            <div class="container">
                {calli:generator-p(<p class="navbar-right navbar-text" />)}
                {calli:lastmod-time(<p class="navbar-text">This resource was last modified at <time class="datetime-local"/></p>)}
            </div>
        </footer>
    </div>
{'fraction_non_alphanumeric': 0.18052938537460744, 'fraction_numerical': 0.01031852848811126, 'mean_word_length': 1.949457528446679, 'pattern_counts': {'":': 0, '<': 323, '<?xml version=': 0, '>': 323, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5508087', 'n_tokens_mistral': 3590, 'n_tokens_neox': 3340, 'n_words': 486}