<commit_before><!doctype html>
<%
    from time import (strftime, gmtime)
    import json

    vers = pageargs.get('version', 1)
    land = pageargs.get('landing', '/author/%s/' % vers)
    config = pageargs.get('config', {})
    announcements = pageargs.get('announcements', [])
    author = pageargs.get('author', 'UNKNOWN')

%>
<html>
<head>
<title>Welcome ${author}</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/tabzilla/media/css/tabzilla.css" />
</head>
<body>
<!-- This had <blank>ing better not be user facing, so skipping tabzilla -->
<!--a href="http://www.mozilla.org/" id="tabzilla">mozilla</a--!>
<header>
<h1>Campaign Admin Panel</h1>
<div class="control">
<button class="button logout">Log out</button>
<!-- yep, this should be a REST get and display call. -->
</header>
<form id="new_item" action="${land}" method="POST">
<h2>New Item</h2>
<input type="hidden" name="author" value="${author}" />
<fieldset class="times">
<legend>When to show?</legend>
<label for="priority">Priority(0=lowest):</label><input type="number" name="priority" value="0" />
<label for="start_time">Start time:</label><input type="datetime-local" name="start_time" value="" />
<label for="end_time">End time:</label><input type="datetime-local" name="end_time" value="" />
<label for="idle_time">Idle time(days):</label><input type="number" name="idle_time" value="0" />
</fieldset>
<fieldset class="note">
<legend>What should they see?</legend>
<label for="title">Title:</label><input type="text" name="title" />
<label for="dest_url">Destination URL:</label><input type="text" name="dest_url" />
<label for="note">Note:</label><input type="text" name="note" />
</fieldset>
<fieldset class="locale">
<legend>Who should see?</legend>
<label for="lang">Language:</label><input type="text" name="lang" length="2" value="en" />-
<label for="locale">Locale:</label><input type="text" name="locale" length="2" value="US" />
</fieldset>
<fieldset class="platform">
<legend>On what?</legend>
<label for="product">Product</label><input type="text" name="product" value="android" />
<label for="platform">Platform:</label><input type="text" name="platform" />
<label for="channel">Channel:</label><input type="text" name="channel" />
<label for="version">Version:</label><input type="text" name="version" />
</fieldset>
<button class="button" type="submit">Create</button>
<button class="button" type="clear">Clear</button>
</form>
<div id="existing">
<h2>Existing Records</h2>
<div class="control">
<button class="button" id="select_all" name="select_all">Select all</button>
<button class="button" id="clear" name="clear_all">Clear selected</button>
<button class="button" id="delete" name="delete">Delete Selected</button>
</div>
<div id="data">
<div class="head row">
<div class="delete">Delete?</div>
<div class="id">ID</div>
<div class="priority">Priority</div>
<div class="created">Created</div>
<div class="start_time">Start Time</div>
<div class="end_time">End Time</div>
<div class="idle_time">Idle Time</div>
<div class="lang">Language</div>
<div class="locale">Locale</div>
<div class="product">Product</div>
<div class="channel">Channel</div>
<div class="version">Version</div>
<div class="platform">Platform</div>
<div class="author">Author</div>
<div class="note">Note</div>
<div class="dest_url">Destination URL</div>
</div>
<%
    time_format = '%Y %b %d - %H:%M:%S UTC'
    %>
    <!-- Wanna guess what ougth to be done as a rest call? hint: -->
%for note in announcements:
<%<commit_msg>Fix to the main page time formatting string<commit_after><!doctype html>
<%
    from time import (strftime, gmtime)
    import json

    vers = pageargs.get('version', 1)
    land = pageargs.get('landing', '/author/%s/' % vers)
    config = pageargs.get('config', {})
    announcements = pageargs.get('announcements', [])
    author = pageargs.get('author', 'UNKNOWN')

%>
<html>
<head>
<title>Welcome ${author}</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/tabzilla/media/css/tabzilla.css" />
</head>
<body>
<!-- This had <blank>ing better not be user facing, so skipping tabzilla -->
<!--a href="http://www.mozilla.org/" id="tabzilla">mozilla</a--!>
<header>
<h1>Campaign Admin Panel</h1>
<div class="control">
<button class="button logout">Log out</button>
<!-- yep, this should be a REST get and display call. -->
</header>
<form id="new_item" action="${land}" method="POST">
<h2>New Item</h2>
<input type="hidden" name="author" value="${author}" />
<fieldset class="times">
<legend>When to show?</legend>
<label for="priority">Priority(0=lowest):</label><input type="number" name="priority" value="0" />
<label for="start_time">Start time:</label><input type="datetime-local" name="start_time" value="" />
<label for="end_time">End time:</label><input type="datetime-local" name="end_time" value="" />
<label for="idle_time">Idle time(days):</label><input type="number" name="idle_time" value="0" />
</fieldset>
<fieldset class="note">
<legend>What should they see?</legend>
<label for="title">Title:</label><input type="text" name="title" />
<label for="dest_url">Destination URL:</label><input type="text" name="dest_url" />
<label for="note">Note:</label><input type="text" name="note" />
</fieldset>
<fieldset class="locale">
<legend>Who should see?</legend>
<label for="lang">Language:</label><input type="text" name="lang" length="2" value="en" />-
<label for="locale">Locale:</label><input type="text" name="locale" length="2" value="US" />
</fieldset>
<fieldset class="platform">
<legend>On what?</legend>
<label for="product">Product</label><input type="text" name="product" value="android" />
<label for="platform">Platform:</label><input type="text" name="platform" />
<label for="channel">Channel:</label><input type="text" name="channel" />
<label for="version">Version:</label><input type="text" name="version" />
</fieldset>
<button class="button" type="submit">Create</button>
<button class="button" type="clear">Clear</button>
</form>
<div id="existing">
<h2>Existing Records</h2>
<div class="control">
<button class="button" id="select_all" name="select_all">Select all</button>
<button class="button" id="clear" name="clear_all">Clear selected</button>
<button class="button" id="delete" name="delete">Delete Selected</button>
</div>
<div id="data">
<div class="head row">
<div class="delete">Delete?</div>
<div class="id">ID</div>
<div class="priority">Priority</div>
<div class="created">Created</div>
<div class="start_time">Start Time</div>
<div class="end_time">End Time</div>
<div class="idle_time">Idle Time</div>
<div class="lang">Language</div>
<div class="locale">Locale</div>
<div class="product">Product</div>
<div class="channel">Channel</div>
<div class="version">Version</div>
<div class="platform">Platform</div>
<div class="author">Author</div>
<div class="note">Note</div>
<div class="dest_url">Destination URL</div>
</div>
<%
    time_format = '%a, %d %b %Y - %H:%M:%S GMT'
    %>
    <!-- Wanna guess what ougth to be done as a rest call? hint: -->
%for note in announcements:
<%
{'fraction_non_alphanumeric': 0.22135706340378197, 'fraction_numerical': 0.0033370411568409346, 'mean_word_length': 6.776216216216216, 'pattern_counts': {'":': 0, '<': 273, '<?xml version=': 0, '>': 271, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3922824', 'n_tokens_mistral': 2407, 'n_tokens_neox': 2366, 'n_words': 538}