<commit_before><?xml version='1.0' encoding='UTF-8'?>
<?python
from mint import userlevels
?>
<html xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:py="http://purl.org/kid/ns#"
      py:extends="'library.kid', 'layout.kid', 'project.kid'">
<!--
    Copyright 2005 rpath, Inc.
    All Rights Reserved
-->

    <?python
        isOwner = userLevel == userlevels.OWNER
        memberList = project.getMembers()
    ?>

    <div py:def="breadcrumb()" py:strip="True">
        <a href="/">${project.getName()}</a>
        <a href="#">Members</a>
    </div>

    <head/>
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${projectResourcesMenu()}
                <div class="palette" py:if="isOwner">

                    <h3>Add New Member</h3>
                    <form method="post" action="addMember">
                        <p>
                            <label>Username:</label><br/>
                            <input type="text" name="username" value="" />
                        </p>
                        <p>
                            <label>Membership Type:</label><br/>

                            <select name="level">
                                <option py:for="level, levelName in userlevels.names.items()"
                                        py:content="levelName"
                                        value="${level}" />
                            </select>
                        </p>
                        <p><button type="submit">Submit</button></p>
                    </form><commit_msg>sort user levels so developer shows first in the list<commit_after><?xml version='1.0' encoding='UTF-8'?>
<?python
from mint import userlevels
?>
<html xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:py="http://purl.org/kid/ns#"
      py:extends="'library.kid', 'layout.kid', 'project.kid'">
<!--
    Copyright 2005 rpath, Inc.
    All Rights Reserved
-->

    <?python
        isOwner = userLevel == userlevels.OWNER
        memberList = project.getMembers()
    ?>

    <div py:def="breadcrumb()" py:strip="True">
        <a href="/">${project.getName()}</a>
        <a href="#">Members</a>
    </div>

    <head/>
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${projectResourcesMenu()}
                <div class="palette" py:if="isOwner">

                    <h3>Add New Member</h3>
                    <form method="post" action="addMember">
                        <p>
                            <label>Username:</label><br/>
                            <input type="text" name="username" value="" />
                        </p>
                        <p>
                            <label>Membership Type:</label><br/>

                            <select name="level">
                                <option py:for="level, levelName in sorted(userlevels.names.items(), reverse=True)"
                                        py:content="levelName"
                                        value="${level}" />
                            </select>
                        </p>
                        <p><button type="submit">Submit</button></p>
                    </form>
{'fraction_non_alphanumeric': 0.15628891656288915, 'fraction_numerical': 0.008717310087173101, 'mean_word_length': 1.2999284180386543, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '3078325', 'n_tokens_mistral': 892, 'n_tokens_neox': 820, 'n_words': 161}