<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'">
<!--
    Copyright 2005 rpath, Inc.
    All Rights Reserved
-->
    <div py:def="breadcrumb()" py:strip="True">
        <a href="#">${user.getFullName()}</a>
    </div>

    <head/> 
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${browseMenu()}
            ${searchMenu()}
            </div>
        </td>

        <td id="main">
          <span style="float:left;">
            <div class="pad">
                <h3>${user.getFullName()} (${user.getUsername()})</h3>
                <div py:for="line in user.getDisplayEmail().splitlines()" py:strip="True">
                    ${line}<br/>
                </div>
                <div py:if="not user.getDisplayEmail()">User has not entered any contact information.</div>
            </div>
          </span>
          <span syle="float:right">
            <div class="pad">
                <p py:for="line in user.getBlurb().splitlines()">
                    ${line}
                </p>
                <p py:if="not user.getBlurb()">User has not entered any about text.</p>
            </div>
          </span>
        </td>
        <td id="right" class="projects">
            <div class="pad">
                <h3>${user.getUsername()}'s projects:</h3>
                <ul py:if="userProjects">
                    <li py:for="project, level in userProjects">
                        <a href="http://${project.getFQDN()}/">${project.getName()}</a>
                        (${userlevels. names[level]})
                    </li>
                </ul>
                <p py:if="not userProjects">This user is not a member of any projects.</p>
                <div class="palette">
                    <h3>add ${user.getUsername()} to your project</h3>
                    <form method="post" action="addMemberById">
                        <p>
                            <label>Select a project:</label><br/>
                            <select name="projectId">
                                <option py:for="project, level in sorted(projectList, key = lambda x: x[0].getName())"
                                        py:if="level == userlevels.OWNER"
                                        value="${project.getId()}"
                                        py:content="project.getName()"/>
                            </select>
                        </p>
                        <p>
                            <label>Level:</label><br/>
                            <select name="level">
                                <option py:for="level, levelName in sorted(userlevels.names.items(), reverse = True)"<commit_msg>don't show the 'add foo to your project' palette if not logged in<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'">
<!--
    Copyright 2005 rpath, Inc.
    All Rights Reserved
-->
    <div py:def="breadcrumb()" py:strip="True">
        <a href="#">${user.getFullName()}</a>
    </div>

    <head/> 
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${browseMenu()}
            ${searchMenu()}
            </div>
        </td>

        <td id="main">
          <span style="float:left;">
            <div class="pad">
                <h3>${user.getFullName()} (${user.getUsername()})</h3>
                <div py:for="line in user.getDisplayEmail().splitlines()" py:strip="True">
                    ${line}<br/>
                </div>
                <div py:if="not user.getDisplayEmail()">User has not entered any contact information.</div>
            </div>
          </span>
          <span syle="float:right">
            <div class="pad">
                <p py:for="line in user.getBlurb().splitlines()">
                    ${line}
                </p>
                <p py:if="not user.getBlurb()">User has not entered any about text.</p>
            </div>
          </span>
        </td>
        <td id="right" class="projects">
            <div class="pad">
                <h3>${user.getUsername()}'s projects:</h3>
                <ul py:if="userProjects">
                    <li py:for="project, level in userProjects">
                        <a href="http://${project.getFQDN()}/">${project.getName()}</a>
                        (${userlevels. names[level]})
                    </li>
                </ul>
                <p py:if="not userProjects">This user is not a member of any projects.</p>
                <div class="palette" py:if="auth.authorized">
                    <h3>add ${user.getUsername()} to your project</h3>
                    <form method="post" action="addMemberById">
                        <p>
                            <label>Select a project:</label><br/>
                            <select name="projectId">
                                <option py:for="project, level in sorted(projectList, key = lambda x: x[0].getName())"
                                        py:if="level == userlevels.OWNER"
                                        value="${project.getId()}"
                                        py:content="project.getName()"/>
                            </select>
                        </p>
                        <p>
                            <label>Level:</label><br/>
                            <select name="level">
                                <option py:for="level, levelName in sorted(userlevels.names.items(), reverse = True)"
{'fraction_non_alphanumeric': 0.1608560579910252, 'fraction_numerical': 0.006558508802209182, 'mean_word_length': 1.335751713018944, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 2, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3287007', 'n_tokens_mistral': 1628, 'n_tokens_neox': 1523, 'n_words': 328}