<commit_before><!DOCTYPE html>
<html>

<head>
    <title>Bishop Configuration</title>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css"></link>
    <link rel="stylesheet" type="text/css" href="../css/alert.css"></link>
</head>

<body>
    <div class="container">
        <h2><img src="../img/bishop38.png"> Bishop</h2>
        <div id="notifications"></div>
        <hr />
        <div class="row">
            <div class="col-md-12">
                <h3><i class="glyphicon glyphicon-screenshot"></i> Vulnerable Sites</h3>
		<div role="tabpanel">
		    <ul class="nav nav-tabs" role="tablist">
			<li role="presentation" class="active"><a href="#main" aria-controls="home" role="tab" data-toggle="tab">Main</a></li>
			<li role="presentation"><a href="#queue" aria-controls="profile" role="tab" data-toggle="tab">Queue</a></li>
		    </ul>
		    <div class="tab-content">
			<br />
			<div role="tabpanel" class="tab-pane active" id="main">
			    <div class="btn-group">
				<button type="button" class="btn btn-sm btn-warning" id="clearSites"><i class="glyphicon glyphicon-trash"></i> Clear Vulnerable Sites</button>
				<button type="button" class="btn btn-sm btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
				    <span class="caret"></span>
				    <span class="sr-only">Toggle Dropdown</span>
				</button>
				<ul class="dropdown-menu" role="menu">
				    <li><a href="#" id="dedupSites">Remove Duplicate Sites</a></li>
				</ul>
			    </div>
			    <button id="exportSites" class="btn btn-sm btn-primary pull-right"><i class="glyphicon glyphicon-transfer"></i> Import/Export Vulnerable Sites</button>
			    <div class="clearfix"></div>
			    <div style="height: 200px; overflow: auto;">
				<table class="table table-striped" id="siteTable">
				    <thead>
					<tr>
					    <th>Location</th>
					    <th>Matched Rule</th>
					    <th>Delete</th>
					</tr>
				    </thead>
				    <tbody id="siteTableBody">
				    </tbody>
				</table>
			    </div>
			</div>
			<div role="tabpanel" class="tab-pane" id="queue">
			    <p id="queueCount"></p>
			    <button type="button" class="btn btn-sm btn-warning" id="clearQueue"><i class="glyphicon glyphicon-trash"></i> Clear Queue</button>
			    <button type="button" class="btn btn-sm btn-primary pull-right" id="processQueue"><i class="glyphicon glyphicon-tasks"></i> Process Queue</button>
			    <div class="clearfix"></div>
			    <div style="height: 200px; overflow: auto;">
				<table class="table table-striped" id="queueTable">
				    <thead>
					<tr>
					    <th>URL</th>
					</tr>
				    </thead>
				    <tbody id="queueTableBody">
				    </tbody>
				</table>
			    </div>
			</div>
		    </div>
		</div>

            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
		<h3>
		    <i class="glyphicon glyphicon-th-list"></i>
		    Rules
		</h3>
		<span id="ruleCount"></span><br />
		<div class="btn-group">
		    <button type="button" class="btn btn-success" id="bulkEnableAll"><i class="glyphicon glyphicon-ok-circle"></i>  Enable All</button>
		    <button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
			<span class="caret"></span>
			<span class="sr-only">Toggle Dropdown</span>
		    </button>
		    <ul class="dropdown-menu" role="menu">
			<li><a href="#" id="bulkEnableLow">Enable Low Risk</a></li>
			<li><a href="#" id="bulkEnableMedium">Enable Medium Risk</a></li>
			<li><a href="#" id="bulkEnableHigh">Enable High Risk</a></li>
		    </ul>
		</div>
		<div class="btn-group">
		    <button type="button" class="btn btn-warning" id="bulkDisableAll"><i class="glyphicon glyphicon-remove-circle"></i> Disable All</button>
		    <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
			<span class="caret"></span>
			<span class="sr-only">Toggle Dropdown</span>
		    </button>
		    <ul class="dropdown-menu" role="menu">
			<li><a href="#" id="bulkDisableLow">Disable Low Risk</a></li>
			<li><a href="#" id="bulkDisableMedium">Disable Medium Risk</a></li>
			<li><a href="#" id="bulkDisableHigh">Disable High Risk</a></li>
		    </ul>
		</div>
		<button type="button" class="btn btn-danger" id="deleteAllRules"><i class="glyphicon glyphicon-trash"></i> Delete All Rules</button>
                <a href="#" id="addDemoRules" class="btn btn-sm btn-primary pull-right"><i class="glyphicon glyphicon-gift"></i> Add Demo Rules</a>
                <a href="#" id="addRule" class="btn btn-sm btn-success pull-right" style="margin-right: 5px;"><i class="glyphicon glyphicon-plus"></i> Add Rule</a>
                <div class="clearfix"></div>
                <div style="height: 200px; overflow: auto;">
                    <table class="table table-striped" id="ruleTable">
                        <thead>
                            <tr>
				<th>Enabled</th>
                                <th>Risk</th>
                                <th>Rule</th>
                                <th>Description</th>
                                <th>URL</th>
                                <th>Regex String</th>
                                <th>Delete</th>
                            </tr>
                        </thead>
                        <tbody id="rulesTableBody"><commit_msg>fixed button sizing<commit_after><!DOCTYPE html>
<html>

<head>
    <title>Bishop Configuration</title>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css"></link>
    <link rel="stylesheet" type="text/css" href="../css/alert.css"></link>
</head>

<body>
    <div class="container">
        <h2><img src="../img/bishop38.png"> Bishop</h2>
        <div id="notifications"></div>
        <hr />
        <div class="row">
            <div class="col-md-12">
                <h3><i class="glyphicon glyphicon-screenshot"></i> Vulnerable Sites</h3>
		<div role="tabpanel">
		    <ul class="nav nav-tabs" role="tablist">
			<li role="presentation" class="active"><a href="#main" aria-controls="home" role="tab" data-toggle="tab">Main</a></li>
			<li role="presentation"><a href="#queue" aria-controls="profile" role="tab" data-toggle="tab">Queue</a></li>
		    </ul>
		    <div class="tab-content">
			<br />
			<div role="tabpanel" class="tab-pane active" id="main">
			    <div class="btn-group">
				<button type="button" class="btn btn-sm btn-warning" id="clearSites"><i class="glyphicon glyphicon-trash"></i> Clear Vulnerable Sites</button>
				<button type="button" class="btn btn-sm btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
				    <span class="caret"></span>
				    <span class="sr-only">Toggle Dropdown</span>
				</button>
				<ul class="dropdown-menu" role="menu">
				    <li><a href="#" id="dedupSites">Remove Duplicate Sites</a></li>
				</ul>
			    </div>
			    <button id="exportSites" class="btn btn-sm btn-primary pull-right"><i class="glyphicon glyphicon-transfer"></i> Import/Export Vulnerable Sites</button>
			    <div class="clearfix"></div>
			    <div style="height: 200px; overflow: auto;">
				<table class="table table-striped" id="siteTable">
				    <thead>
					<tr>
					    <th>Location</th>
					    <th>Matched Rule</th>
					    <th>Delete</th>
					</tr>
				    </thead>
				    <tbody id="siteTableBody">
				    </tbody>
				</table>
			    </div>
			</div>
			<div role="tabpanel" class="tab-pane" id="queue">
			    <p id="queueCount"></p>
			    <button type="button" class="btn btn-sm btn-warning" id="clearQueue"><i class="glyphicon glyphicon-trash"></i> Clear Queue</button>
			    <button type="button" class="btn btn-sm btn-primary pull-right" id="processQueue"><i class="glyphicon glyphicon-tasks"></i> Process Queue</button>
			    <div class="clearfix"></div>
			    <div style="height: 200px; overflow: auto;">
				<table class="table table-striped" id="queueTable">
				    <thead>
					<tr>
					    <th>URL</th>
					</tr>
				    </thead>
				    <tbody id="queueTableBody">
				    </tbody>
				</table>
			    </div>
			</div>
		    </div>
		</div>

            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
		<h3>
		    <i class="glyphicon glyphicon-th-list"></i>
		    Rules
		</h3>
		<span id="ruleCount"></span><br />
		<div class="btn-group">
		    <button type="button" class="btn btn-sm btn-success" id="bulkEnableAll"><i class="glyphicon glyphicon-ok-circle"></i>  Enable All</button>
		    <button type="button" class="btn btn-sm btn-success dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
			<span class="caret"></span>
			<span class="sr-only">Toggle Dropdown</span>
		    </button>
		    <ul class="dropdown-menu" role="menu">
			<li><a href="#" id="bulkEnableLow">Enable Low Risk</a></li>
			<li><a href="#" id="bulkEnableMedium">Enable Medium Risk</a></li>
			<li><a href="#" id="bulkEnableHigh">Enable High Risk</a></li>
		    </ul>
		</div>
		<div class="btn-group">
		    <button type="button" class="btn btn-sm btn-warning" id="bulkDisableAll"><i class="glyphicon glyphicon-remove-circle"></i> Disable All</button>
		    <button type="button" class="btn btn-sm btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
			<span class="caret"></span>
			<span class="sr-only">Toggle Dropdown</span>
		    </button>
		    <ul class="dropdown-menu" role="menu">
			<li><a href="#" id="bulkDisableLow">Disable Low Risk</a></li>
			<li><a href="#" id="bulkDisableMedium">Disable Medium Risk</a></li>
			<li><a href="#" id="bulkDisableHigh">Disable High Risk</a></li>
		    </ul>
		</div>
		<button type="button" class="btn btn-sm btn-danger" id="deleteAllRules"><i class="glyphicon glyphicon-trash"></i> Delete All Rules</button>
                <a href="#" id="addDemoRules" class="btn btn-sm btn-primary pull-right"><i class="glyphicon glyphicon-gift"></i> Add Demo Rules</a>
                <a href="#" id="addRule" class="btn btn-sm btn-success pull-right" style="margin-right: 5px;"><i class="glyphicon glyphicon-plus"></i> Add Rule</a>
                <div class="clearfix"></div>
                <div style="height: 200px; overflow: auto;">
                    <table class="table table-striped" id="ruleTable">
                        <thead>
                            <tr>
				<th>Enabled</th>
                                <th>Risk</th>
                                <th>Rule</th>
                                <th>Description</th>
                                <th>URL</th>
                                <th>Regex String</th>
                                <th>Delete</th>
                            </tr>
                        </thead>
                        <tbody id="rulesTableBody">
{'fraction_non_alphanumeric': 0.18934966137860654, 'fraction_numerical': 0.00408201131830411, 'mean_word_length': 2.584968407050216, 'pattern_counts': {'":': 0, '<': 413, '<?xml version=': 0, '>': 413, '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': '3910520', 'n_tokens_mistral': 3978, 'n_tokens_neox': 3357, 'n_words': 700}