<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright 2009-2015 European Molecular Biology Laboratory
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:fn="http://www.w3.org/2005/xpath-functions"
                xmlns:ae="http://www.ebi.ac.uk/arrayexpress/XSLT/Extension"
                xmlns:html="http://www.w3.org/1999/xhtml"
                extension-element-prefixes="html xs fn ae"
                exclude-result-prefixes="html xs fn ae"
                version="2.0">

    <xsl:param name="host"/>
    <xsl:param name="context-path"/>
    <xsl:param name="original-request-uri"/>
    <xsl:param name="referer"/>
    <xsl:param name="query-string"/>
    <xsl:param name="userid"/>
    <xsl:param name="username"/>

    <xsl:output omit-xml-declaration="yes" method="html" indent="no" encoding="UTF-8"/>

    <xsl:variable name="relative-uri" select="fn:substring-after($original-request-uri, $context-path)"/>
    <xsl:variable name="relative-referer" select="if (fn:starts-with($referer, '/')) then fn:substring-after($referer, $context-path) else ''"/>

    <xsl:variable name="secure-host" select="if (fn:matches($host, '^http[:]//www(dev)?[.]ebi[.]ac[.]uk$')) then fn:replace($host, '^http[:]//', 'https://') else ''"/>

    <xsl:template name="ae-page">
        <xsl:param name="pIsSearchVisible" as="xs:boolean"/>
        <xsl:param name="pSearchInputValue" as="xs:string"/>
        <xsl:param name="pExtraSearchFields"/>
        <xsl:param name="pTitleTrail" as="xs:string"/>
        <xsl:param name="pBreadcrumbTrail"/>
        <xsl:param name="pEBISearchWidget"/>
        <xsl:param name="pExtraCSS"/>
        <xsl:param name="pExtraJS"/>
        <xsl:param name="pExtraBodyClasses" as="xs:string"/>

        <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
        <!-- http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
        <xsl:comment>[if lt IE 7]>&lt;html class="no-js ie6 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if IE 7]>&lt;html class="no-js ie7 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if IE 8]>&lt;html class="no-js ie8 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if gt IE 8]>&lt;!</xsl:comment>
        <html class="no-js" lang="en">
            <xsl:comment>&lt;![endif]</xsl:comment>
            <xsl:call-template name="ae-page-head">
                <xsl:with-param name="pTitleTrail" select="$pTitleTrail"/>
                <xsl:with-param name="pExtraCode" select="$pExtraCSS"/>
            </xsl:call-template>
            <xsl:call-template name="ae-page-body">
                <xsl:with-param name="pIsSearchVisible" select="$pIsSearchVisible"/>
                <xsl:with-param name="pSearchInputValue" select="$pSearchInputValue"/>
                <xsl:with-param name="pExtraSearchFields" select="$pExtraSearchFields"/>
                <xsl:with-param name="pBreadcrumbTrail" select="$pBreadcrumbTrail"/>
                <xsl:with-param name="pEBISearchWidget" select="$pEBISearchWidget"/>
                <xsl:with-param name="pExtraCode" select="$pExtraJS"/>
                <xsl:with-param name="pExtraBodyClasses" select="$pExtraBodyClasses"/>
            </xsl:call-template>
        </html>
    </xsl:template>

    <xsl:template name="ae-page-head">
        <xsl:param name="pTitleTrail"/>
        <xsl:param name="pExtraCode"/>
        <head>
            <meta charset="utf-8"/>

            <title>
                <xsl:if test="$pTitleTrail"><xsl:value-of select="$pTitleTrail"/> &lt; </xsl:if>
                <xsl:text>BioStudies &lt; EMBL-EBI</xsl:text>
            </title>
            <meta name="description" content="EMBL-EBI"/>   <!-- Describe what this page is about -->
            <meta name="keywords" content="bioinformatics, europe, institute"/> <!-- A few keywords that relate to the content of THIS PAGE (not the whol project) -->
            <meta name="author" content="EMBL-EBI"/>        <!-- Your [project-name] here -->

            <!-- Mobile viewport optimized: http://j.mp/bplateviewport -->
            <meta name="viewport" content="width=device-width,initial-scale=1"/>

            <!-- Place favicon.ico and apple-touch-icon.png in the root directory: http://mathiasbynens.be/notes/touch-icons -->

            <!-- CSS: implied media=all -->
            <!-- CSS concatenated and minified via ant build script-->
            <link rel="stylesheet" href="//www.ebi.ac.uk/web_guidelines/css/compliance/mini/ebi-fluid-embl.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/biostudies-colours.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/font-awesome.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/common-1.0.150217.css" type="text/css"/>
            <xsl:copy-of select="$pExtraCode"/>
            <!-- end CSS-->

            <!-- All JavaScript at the bottom, except for Modernizr / Respond.
                Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
                For optimal performance, use a custom Modernizr build: http://www.modernizr.com/download/ -->

            <!-- Full build -->
            <!-- <script src="../js/libs/modernizr.minified.2.1.6.js"></script> -->

            <!-- custom build (lacks most of the "advanced" HTML5 support -->
            <script src="//www.ebi.ac.uk/web_guidelines/js/libs/modernizr.custom.49274.js"/>
        </head>
    </xsl:template>

    <xsl:template name="ae-page-body">
        <xsl:param name="pIsSearchVisible"/>
        <xsl:param name="pSearchInputValue"/>
        <xsl:param name="pExtraSearchFields"/>
        <xsl:param name="pBreadcrumbTrail"/>
        <xsl:param name="pEBISearchWidget"/>
        <xsl:param name="pExtraCode"/>
        <xsl:param name="pExtraBodyClasses"/>

        <body>   <!-- add any of your classes or IDs -->
            <xsl:attribute name="class">
                <xsl:text>level2</xsl:text>
                <xsl:if test="$pExtraBodyClasses != ''">
                    <xsl:text> </xsl:text><xsl:value-of select="$pExtraBodyClasses"/>
                </xsl:if>
            </xsl:attribute>

            <div id="skip-to">
                <ul>
                    <li><a href="#content" title="">Skip to main content</a></li>
                    <li><a href="#local-nav" title="">Skip to local navigation</a></li>
                    <li><a href="#global-nav" title="">Skip to EBI global navigation menu</a></li>
                    <li><a href="#global-nav-expanded" title="">Skip to expanded EBI global navigation menu (includes all sub-sections)</a></li>
                </ul>
            </div>

            <div id="wrapper" class="container_24">
                <header>
                    <div id="global-masthead" class="masthead grid_24">
                        <!--This has to be one line and no newline characters-->
                        <a href="//www.ebi.ac.uk/" title="Go to the EMBL-EBI homepage"><img src="//www.ebi.ac.uk/web_guidelines/images/logos/EMBL-EBI/EMBL_EBI_Logo_white.png" alt="EMBL European Bioinformatics Institute"/></a>

                        <nav>
                            <ul id="global-nav">
                                <!-- set active class as appropriate -->
                                <li class="first active" id="services"><a href="//www.ebi.ac.uk/services">Services</a></li>
                                <li id="research"><a href="//www.ebi.ac.uk/research">Research</a></li>
                                <li id="training"><a href="//www.ebi.ac.uk/training">Training</a></li>
                                <li id="industry"><a href="//www.ebi.ac.uk/industry">Industry</a></li>
                                <li id="about" class="last"><a href="//www.ebi.ac.uk/about">About us</a></li>
                            </ul>
                        </nav>

                    </div>
                    <div id="local-masthead" class="masthead grid_24 nomenu">
                        <!-- local-title -->
                        <div id="local-title">
                            <xsl:attribute name="class">logo-title<xsl:if test="$pIsSearchVisible"> grid_12 alpha</xsl:if></xsl:attribute>
                            <!-- <img class="svg" src="{$context-path}/assets/images/ae-logo-64.svg" width="64" height="64" alt="AE"/> -->
                            <span>
                                <h1>
                                    <a href="{$context-path}/" title="Back to BioStudies homepage">BioStudies</a>
                                </h1>
                            </span>
                        </div>
                        <!-- /local-title -->
                        <!-- local-search -->
                        <!-- NB: if you do not have a local-search, delete the following div, and drop the class="grid_12 alpha" class from local-title above -->
                        <xsl:if test="$pIsSearchVisible">
                            <div class="grid_12 omega">
                                <form id="local-search" name="local-search" action="{$context-path}/search" method="get">
                                    <fieldset>
                                        <div class="left">
                                            <label>
                                                <input type="text" name="query" id="local-searchbox">
                                                    <xsl:if test="$pSearchInputValue != ''">
                                                        <xsl:attribute name="value" select="$pSearchInputValue"/>
                                                    </xsl:if>
                                                </input>
                                            </label>
                                            <!-- Include some example searchterms - keep them short and few! -->
                                            <span class="examples">Examples:<a
                                                    href="{$context-path}/search?query=cancer">cancer</a>,
                                                <a href="{$context-path}/search?query=p53">p53</a>
                                            </span>
                                        </div>
                                        <div class="right">
                                            <input type="submit" value="Search" class="submit"/>
                                            <!-- If your search is more complex than just a keyword search, you can link to an Advanced Search,
                                           with whatever features you want available -->
                                            <!--
                                            <span class="adv"><a href="{$context-path}/help/how_to_search.html#AdvancedSearchExperiment" id="adv-search" title="Advanced">Advanced</a></span>
                                            -->
                                        </div>
                                    </fieldset>
                                    <xsl:copy-of select="$pExtraSearchFields"/>
                                </form>
                            </div><commit_msg>Hidden search for now<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright 2009-2015 European Molecular Biology Laboratory
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:fn="http://www.w3.org/2005/xpath-functions"
                xmlns:ae="http://www.ebi.ac.uk/arrayexpress/XSLT/Extension"
                xmlns:html="http://www.w3.org/1999/xhtml"
                extension-element-prefixes="html xs fn ae"
                exclude-result-prefixes="html xs fn ae"
                version="2.0">

    <xsl:param name="host"/>
    <xsl:param name="context-path"/>
    <xsl:param name="original-request-uri"/>
    <xsl:param name="referer"/>
    <xsl:param name="query-string"/>
    <xsl:param name="userid"/>
    <xsl:param name="username"/>

    <xsl:output omit-xml-declaration="yes" method="html" indent="no" encoding="UTF-8"/>

    <xsl:variable name="relative-uri" select="fn:substring-after($original-request-uri, $context-path)"/>
    <xsl:variable name="relative-referer" select="if (fn:starts-with($referer, '/')) then fn:substring-after($referer, $context-path) else ''"/>

    <xsl:variable name="secure-host" select="if (fn:matches($host, '^http[:]//www(dev)?[.]ebi[.]ac[.]uk$')) then fn:replace($host, '^http[:]//', 'https://') else ''"/>

    <xsl:template name="ae-page">
        <xsl:param name="pIsSearchVisible" as="xs:boolean"/>
        <xsl:param name="pSearchInputValue" as="xs:string"/>
        <xsl:param name="pExtraSearchFields"/>
        <xsl:param name="pTitleTrail" as="xs:string"/>
        <xsl:param name="pBreadcrumbTrail"/>
        <xsl:param name="pEBISearchWidget"/>
        <xsl:param name="pExtraCSS"/>
        <xsl:param name="pExtraJS"/>
        <xsl:param name="pExtraBodyClasses" as="xs:string"/>

        <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
        <!-- http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
        <xsl:comment>[if lt IE 7]>&lt;html class="no-js ie6 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if IE 7]>&lt;html class="no-js ie7 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if IE 8]>&lt;html class="no-js ie8 oldie" lang="en">&lt;![endif]</xsl:comment>
        <xsl:comment>[if gt IE 8]>&lt;!</xsl:comment>
        <html class="no-js" lang="en">
            <xsl:comment>&lt;![endif]</xsl:comment>
            <xsl:call-template name="ae-page-head">
                <xsl:with-param name="pTitleTrail" select="$pTitleTrail"/>
                <xsl:with-param name="pExtraCode" select="$pExtraCSS"/>
            </xsl:call-template>
            <xsl:call-template name="ae-page-body">
                <xsl:with-param name="pIsSearchVisible" select="$pIsSearchVisible"/>
                <xsl:with-param name="pSearchInputValue" select="$pSearchInputValue"/>
                <xsl:with-param name="pExtraSearchFields" select="$pExtraSearchFields"/>
                <xsl:with-param name="pBreadcrumbTrail" select="$pBreadcrumbTrail"/>
                <xsl:with-param name="pEBISearchWidget" select="$pEBISearchWidget"/>
                <xsl:with-param name="pExtraCode" select="$pExtraJS"/>
                <xsl:with-param name="pExtraBodyClasses" select="$pExtraBodyClasses"/>
            </xsl:call-template>
        </html>
    </xsl:template>

    <xsl:template name="ae-page-head">
        <xsl:param name="pTitleTrail"/>
        <xsl:param name="pExtraCode"/>
        <head>
            <meta charset="utf-8"/>

            <title>
                <xsl:if test="$pTitleTrail"><xsl:value-of select="$pTitleTrail"/> &lt; </xsl:if>
                <xsl:text>BioStudies &lt; EMBL-EBI</xsl:text>
            </title>
            <meta name="description" content="EMBL-EBI"/>   <!-- Describe what this page is about -->
            <meta name="keywords" content="bioinformatics, europe, institute"/> <!-- A few keywords that relate to the content of THIS PAGE (not the whol project) -->
            <meta name="author" content="EMBL-EBI"/>        <!-- Your [project-name] here -->

            <!-- Mobile viewport optimized: http://j.mp/bplateviewport -->
            <meta name="viewport" content="width=device-width,initial-scale=1"/>

            <!-- Place favicon.ico and apple-touch-icon.png in the root directory: http://mathiasbynens.be/notes/touch-icons -->

            <!-- CSS: implied media=all -->
            <!-- CSS concatenated and minified via ant build script-->
            <link rel="stylesheet" href="//www.ebi.ac.uk/web_guidelines/css/compliance/mini/ebi-fluid-embl.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/biostudies-colours.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/font-awesome.css" type="text/css"/>
            <link rel="stylesheet" href="{$context-path}/assets/stylesheets/common-1.0.150217.css" type="text/css"/>
            <xsl:copy-of select="$pExtraCode"/>
            <!-- end CSS-->

            <!-- All JavaScript at the bottom, except for Modernizr / Respond.
                Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
                For optimal performance, use a custom Modernizr build: http://www.modernizr.com/download/ -->

            <!-- Full build -->
            <!-- <script src="../js/libs/modernizr.minified.2.1.6.js"></script> -->

            <!-- custom build (lacks most of the "advanced" HTML5 support -->
            <script src="//www.ebi.ac.uk/web_guidelines/js/libs/modernizr.custom.49274.js"/>
        </head>
    </xsl:template>

    <xsl:template name="ae-page-body">
        <xsl:param name="pIsSearchVisible"/>
        <xsl:param name="pSearchInputValue"/>
        <xsl:param name="pExtraSearchFields"/>
        <xsl:param name="pBreadcrumbTrail"/>
        <xsl:param name="pEBISearchWidget"/>
        <xsl:param name="pExtraCode"/>
        <xsl:param name="pExtraBodyClasses"/>

        <body>   <!-- add any of your classes or IDs -->
            <xsl:attribute name="class">
                <xsl:text>level2</xsl:text>
                <xsl:if test="$pExtraBodyClasses != ''">
                    <xsl:text> </xsl:text><xsl:value-of select="$pExtraBodyClasses"/>
                </xsl:if>
            </xsl:attribute>

            <div id="skip-to">
                <ul>
                    <li><a href="#content" title="">Skip to main content</a></li>
                    <li><a href="#local-nav" title="">Skip to local navigation</a></li>
                    <li><a href="#global-nav" title="">Skip to EBI global navigation menu</a></li>
                    <li><a href="#global-nav-expanded" title="">Skip to expanded EBI global navigation menu (includes all sub-sections)</a></li>
                </ul>
            </div>

            <div id="wrapper" class="container_24">
                <header>
                    <div id="global-masthead" class="masthead grid_24">
                        <!--This has to be one line and no newline characters-->
                        <a href="//www.ebi.ac.uk/" title="Go to the EMBL-EBI homepage"><img src="//www.ebi.ac.uk/web_guidelines/images/logos/EMBL-EBI/EMBL_EBI_Logo_white.png" alt="EMBL European Bioinformatics Institute"/></a>

                        <nav>
                            <ul id="global-nav">
                                <!-- set active class as appropriate -->
                                <li class="first active" id="services"><a href="//www.ebi.ac.uk/services">Services</a></li>
                                <li id="research"><a href="//www.ebi.ac.uk/research">Research</a></li>
                                <li id="training"><a href="//www.ebi.ac.uk/training">Training</a></li>
                                <li id="industry"><a href="//www.ebi.ac.uk/industry">Industry</a></li>
                                <li id="about" class="last"><a href="//www.ebi.ac.uk/about">About us</a></li>
                            </ul>
                        </nav>

                    </div>
                    <div id="local-masthead" class="masthead grid_24 nomenu">
                        <!-- local-title -->
                        <div id="local-title">
                            <xsl:attribute name="class">logo-title<xsl:if test="$pIsSearchVisible"> grid_12 alpha</xsl:if></xsl:attribute>
                            <!-- <img class="svg" src="{$context-path}/assets/images/ae-logo-64.svg" width="64" height="64" alt="AE"/> -->
                            <span>
                                <h1>
                                    <a href="{$context-path}/" title="Back to BioStudies homepage">BioStudies</a>
                                </h1>
                            </span>
                        </div>
                        <!-- /local-title -->
                        <!-- local-search -->
                        <!-- NB: if you do not have a local-search, delete the following div, and drop the class="grid_12 alpha" class from local-title above -->
                        <xsl:if test="fn:false()"> <!-- $pIsSearchVisible -->
                            <div class="grid_12 omega">
                                <form id="local-search" name="local-search" action="{$context-path}/search" method="get">
                                    <fieldset>
                                        <div class="left">
                                            <label>
                                                <input type="text" name="query" id="local-searchbox">
                                                    <xsl:if test="$pSearchInputValue != ''">
                                                        <xsl:attribute name="value" select="$pSearchInputValue"/>
                                                    </xsl:if>
                                                </input>
                                            </label>
                                            <!-- Include some example searchterms - keep them short and few! -->
                                            <span class="examples">Examples:<a
                                                    href="{$context-path}/search?query=cancer">cancer</a>,
                                                <a href="{$context-path}/search?query=p53">p53</a>
                                            </span>
                                        </div>
                                        <div class="right">
                                            <input type="submit" value="Search" class="submit"/>
                                            <!-- If your search is more complex than just a keyword search, you can link to an Advanced Search,
                                           with whatever features you want available -->
                                            <!--
                                            <span class="adv"><a href="{$context-path}/help/how_to_search.html#AdvancedSearchExperiment" id="adv-search" title="Advanced">Advanced</a></span>
                                            -->
                                        </div>
                                    </fieldset>
                                    <xsl:copy-of select="$pExtraSearchFields"/>
                                </form>
                            </div>
{'fraction_non_alphanumeric': 0.15424164524421594, 'fraction_numerical': 0.00787793349365619, 'mean_word_length': 1.6760235215799402, 'pattern_counts': {'":': 0, '<': 434, '<?xml version=': 2, '>': 450, 'https://': 2, 'lorem ipsum': 0, 'www.': 34, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 104, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7061496', 'n_tokens_mistral': 6854, 'n_tokens_neox': 6288, 'n_words': 1311}