<commit_before><!DOCTYPE html>
<html class="production">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="<?php echo url::base() ?>css/screen.css?v=1.7.6" rel="stylesheet" type="text/css" media="screen" />
    <link href="<?php echo url::base() ?>favicon.ico" rel="icon" type="image/png" />
    <?php 
    	echo html::script(
    	    array(
    	        'js/__utm.js',
                'js/jquery/jquery-1.3.2.min.js',
                'js/jquery/plugins/jquery.cookies.2.2.0.js',
                'js/socorro/nav.js?v=1.7.6'
            )
        ); // Global Javascript includes
    	if (isset($js)) echo $js; // Javascript includes from Controller 
    	if (isset($css)) echo $css; // CSS includes from Controller
        slot::output('head');
    ?>
</head>

<body>
    <div class="page-header">
    	<h1>
    		<a href="<?= url::site(); ?>">
    			<span class="icon"></span>
    			<span class="title">Mozilla Crash Reports</span>
    		</a>
    	</h1>

        <form method="get" action="<?= url::base() ?>query/query">
            <input type="hidden" name="query_type" value="simple" />
            <input type="hidden" name="do_query" value="1">
            <input type="text" id="q" name="query" value="Find Crash ID or Signature" />
            <input type="submit" class="hidden" />
        </form>
    </div>


	<h1>Product Navigation</h1>	

	<div class="version-nav">

		<input type="hidden" id="url_base" name="url_base" value="<?php if (isset($url_nav)) out::H($url_nav); else out::H(url::site()); ?>" />
		<input type="hidden" id="url_site" name="url_site" value="<?php out::H(url::site()); ?>" />

		<ul class="filter">
    		<li>
			Product:
			<select id="products_select">
			<?php foreach ($current_products as $product) { ?>
				<option <?php if ($product == $chosen_version['product']) echo 'SELECTED'; ?> value="<?php out::H($product); ?>"><?php out::H($product); ?></option>
			<?php } ?>
			</select>
			</li>
		
			<select id="product_version_select" <?php if (isset($error) && $error == 1) echo 'disabled'?>>
				<optgroup>
					<option value="Current Versions">Current Versions</option>
				</optgroup>
                <?php if (isset($featured_versions) && !empty($featured_versions)) { ?>
				    <optgroup>
				    	<?php foreach ($featured_versions as $featured_version) { ?>
                            <option value="<?php out::H($featured_version->version); ?>"
                            	<?php if ($featured_version->version == $chosen_version['version']) echo 'SELECTED'; ?>
                            ><?php out::H($featured_version->version); ?></option>
                        <?php } ?>
				    </optgroup>
			    <?php } ?>
			    <?php if (isset($unfeatured_versions) && !empty($unfeatured_versions)) { ?><commit_msg>Bug 584281 - Improving the way urls are constructed for searching for products, allowing us to inspect for additional elements before resolving to the default.<commit_after><!DOCTYPE html>
<html class="production">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="<?php echo url::base() ?>css/screen.css?v=1.7.6" rel="stylesheet" type="text/css" media="screen" />
    <link href="<?php echo url::base() ?>favicon.ico" rel="icon" type="image/png" />
    <?php 
    	echo html::script(
    	    array(
    	        'js/__utm.js',
                'js/jquery/jquery-1.3.2.min.js',
                'js/jquery/plugins/jquery.cookies.2.2.0.js',
                'js/socorro/nav.js?v=1.7.6'
            )
        ); // Global Javascript includes
    	if (isset($js)) echo $js; // Javascript includes from Controller 
    	if (isset($css)) echo $css; // CSS includes from Controller
        slot::output('head');
    ?>
</head>

<body>
    <div class="page-header">
    	<h1>
    		<a href="<?= url::site(); ?>">
    			<span class="icon"></span>
    			<span class="title">Mozilla Crash Reports</span>
    		</a>
    	</h1>

        <form method="get" action="<?= url::base() ?>query/query">
            <input type="hidden" name="query_type" value="simple" />
            <input type="hidden" name="do_query" value="1">
            <input type="text" id="q" name="query" value="Find Crash ID or Signature" />
            <input type="submit" class="hidden" />
        </form>
    </div>


	<h1>Product Navigation</h1>	

	<div class="version-nav">

		<input type="hidden" id="url_base" name="url_base" value="<?php if (isset($url_nav)) out::H($url_nav); else if ($chosen_version['product']) out::H('/products/' . $chosen_version['product']); else out::H(url::site()); ?>" />
		<input type="hidden" id="url_site" name="url_site" value="<?php out::H(url::site()); ?>" />

		<ul class="filter">
    		<li>
			Product:
			<select id="products_select">
			<?php foreach ($current_products as $product) { ?>
				<option <?php if ($product == $chosen_version['product']) echo 'SELECTED'; ?> value="<?php out::H($product); ?>"><?php out::H($product); ?></option>
			<?php } ?>
			</select>
			</li>
		
			<select id="product_version_select" <?php if (isset($error) && $error == 1) echo 'disabled'?>>
				<optgroup>
					<option value="Current Versions">Current Versions</option>
				</optgroup>
                <?php if (isset($featured_versions) && !empty($featured_versions)) { ?>
				    <optgroup>
				    	<?php foreach ($featured_versions as $featured_version) { ?>
                            <option value="<?php out::H($featured_version->version); ?>"
                            	<?php if ($featured_version->version == $chosen_version['version']) echo 'SELECTED'; ?>
                            ><?php out::H($featured_version->version); ?></option>
                        <?php } ?>
				    </optgroup>
			    <?php } ?>
			    <?php if (isset($unfeatured_versions) && !empty($unfeatured_versions)) { ?>
{'fraction_non_alphanumeric': 0.19914675767918089, 'fraction_numerical': 0.007508532423208191, 'mean_word_length': 2.757051282051282, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 141, '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': '1774281', 'n_tokens_mistral': 2013, 'n_tokens_neox': 1870, 'n_words': 398}