<commit_before><?xml version='1.0' encoding='UTF-8'?>
<?python
from mint import userlevels
from mint.mint import upstream
?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://purl.org/kid/ns#"
      py:extends="'layout.kid'">
<!--
    Copyright (c) 2005-2006 rPath, Inc.
    All Rights Reserved
-->
    <?python
        isOwner = (userLevel == userlevels.OWNER or auth.admin)
        isDeveloper = userLevel == userlevels.DEVELOPER
        memberList = project.getMembers()

        releases = project.getReleases(showUnpublished = False)
        commits = project.getCommits()
    ?>

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

    <head>
        <title>${formatTitle("Project Page: %s"%project.getNameForDisplay())}</title>
        <link py:if="releases" rel="alternate" type="application/rss+xml"
              title="${project.getName()} Releases" href="${basePath}rss" />

    </head>
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${projectResourcesMenu()}
                ${releasesMenu(releases, isOwner)}
                ${commitsMenu(commits)}
                ${browseMenu(display='none')}
                ${searchMenu(display='none')}
            </div>
        </td>
        <td id="main">
            <div class="pad">

                <h2>${project.getNameForDisplay(maxWordLen = 50)} <span id="editProject" py:if="isOwner"><a href="${basePath}editProject">edit project</a></span></h2>

                <p class="help" py:if="not commits and cfg.hideFledgling">
                    This is a fledgling project. The developers of this project
                    have not yet committed software into the project's repository.
                    To give the project's developers time to get started before
                    becoming fully visible to the rest of the rBuilder Online
                    community, fledgling projects do not appear on "Browse Projects"
                    pages (but will appear in search results). When software has been
                    committed into this project's repository, it will no longer be
                    considered fledgling, and will appear on "Browse Projects" pages.
                </p>

                <h3 py:if="project.getProjectUrl()">Project Home Page &#160;</h3>
                <p py:if="project.getProjectUrl()"><a href="${project.getProjectUrl()}" py:content="project.getProjectUrl()" />
                </p>
                <h3>Description</h3>
                <p py:for="line in project.getDesc().splitlines()">
                    ${line}
                </p>
                <p py:if="not project.getDesc()">The project owner has not entered a description.</p>
                <hr />
                <h3>What can I do with this project?</h3>

                <p>This is ${isOwner and "your" or "the"} project's home page.
                        <span py:strip="True" py:if="isOwner">Here, you can communicate
                        to your users the description or goal for your project.
                        Do this by clicking on the "Edit Project" link next to the
                        project name.</span>
                        <span py:strip="True" py:if="not isOwner">Here, you can read the
                        description or goal for this project.</span>
                </p>

                <p>From here you can use the left-hand tabs to:
                        <ul>
                                <li py:if="isOwner">Create, edit, and publish a project release</li>
                                <li py:if="not isOwner">Download an official project release</li>
                                <li>Browse the packages included in ${isOwner and "your" or "this"} project</li>
                                <li py:if="isOwner">Add or remove developers working on your project</li>
                                <li py:if="not isOwner">List the developers working on this project <span py:strip="True" py:if="not (isOwner or isDeveloper)">and request to join them</span></li>
                                <li py:if="isOwner">Create and manage your project's mailing lists</li>
                                <li py:if="not isOwner">Join the mailing lists for this project or browse their archives</li>
                        </ul>
                </p>

                <p>For detailed information on building or installing software
                        for ${isOwner and "your" or "this"} project, check out:
                        <ul>
                                <li py:if="isOwner or isDeveloper"><a href="${basePath}conaryDevelCfg">Setting up ${isOwner and "your" or "the"} project build environment</a></li>
                                <li><a href="${basePath}conaryUserCfg">Installing packages from ${isOwner and "your" or "this"} project</a></li>
                        </ul>
                    </p>

        <!-- XXX: get rid of this when it's been moved elsewhere ... -->
        <!--            <li py:if="auth.authorized and userLevel == userlevels.NONMEMBER">
                        <a href="${basePath}watch">Watch this project</a>
                    </li>
                    <li py:if="userLevel == userlevels.USER">
                        <a href="${basePath}unwatch">Stop watching this project</a>
                    </li>
                    <div py:strip="True" py:if="not project.external">
                        <li py:if="isDeveloper"><a href="${basePath}resign">Resign from this project</a></li>
                        <li py:if="auth.authorized and not isOwner and not isDeveloper and True in [ x[2] not in userlevels.READERS for x in memberList]">
                            <a py:if="not userHasReq" href="${basePath}joinRequest">Request to join this project</a>
                            <a py:if="userHasReq" href="${basePath}joinRequest">Modify your comments to a pending join request</a>
                        </li>
                        <li py:if="True not in [ x[2] not in userlevels.READERS for x in memberList]">
                            <a py:if="auth.authorized" href="${basePath}adopt">Adopt this project</a>
                            <span py:strip="True" py:if="not auth.authorized">Log in to adopt this project</span>
                        </li>
                        <li py:if="not auth.authorized">
                            Log in to:
                                <li>Watch this project</li>
                                <li>Request to join this project</li>
                        </li>
                    </div>
                </ul> -->
            </div>
        </td>
        <td id="right" class="projects">
            ${projectsPane()}
            <div class="pad">
                ${groupTroveBuilder()}
            </div>
        </td>
    </body>
</html>
<commit_msg>cleanup crufty old commented out text<commit_after><?xml version='1.0' encoding='UTF-8'?>
<?python
from mint import userlevels
from mint.mint import upstream
?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://purl.org/kid/ns#"
      py:extends="'layout.kid'">
<!--
    Copyright (c) 2005-2006 rPath, Inc.
    All Rights Reserved
-->
    <?python
        isOwner = (userLevel == userlevels.OWNER or auth.admin)
        isDeveloper = userLevel == userlevels.DEVELOPER
        memberList = project.getMembers()

        releases = project.getReleases(showUnpublished = False)
        commits = project.getCommits()
    ?>

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

    <head>
        <title>${formatTitle("Project Page: %s"%project.getNameForDisplay())}</title>
        <link py:if="releases" rel="alternate" type="application/rss+xml"
              title="${project.getName()} Releases" href="${basePath}rss" />

    </head>
    <body>
        <td id="left" class="side">
            <div class="pad">
                ${projectResourcesMenu()}
                ${releasesMenu(releases, isOwner)}
                ${commitsMenu(commits)}
                ${browseMenu(display='none')}
                ${searchMenu(display='none')}
            </div>
        </td>
        <td id="main">
            <div class="pad">

                <h2>${project.getNameForDisplay(maxWordLen = 50)} <span id="editProject" py:if="isOwner"><a href="${basePath}editProject">edit project</a></span></h2>

                <p class="help" py:if="not commits and cfg.hideFledgling">
                    This is a fledgling project. The developers of this project
                    have not yet committed software into the project's repository.
                    To give the project's developers time to get started before
                    becoming fully visible to the rest of the rBuilder Online
                    community, fledgling projects do not appear on "Browse Projects"
                    pages (but will appear in search results). When software has been
                    committed into this project's repository, it will no longer be
                    considered fledgling, and will appear on "Browse Projects" pages.
                </p>

                <h3 py:if="project.getProjectUrl()">Project Home Page &#160;</h3>
                <p py:if="project.getProjectUrl()"><a href="${project.getProjectUrl()}" py:content="project.getProjectUrl()" />
                </p>
                <h3>Description</h3>
                <p py:for="line in project.getDesc().splitlines()">
                    ${line}
                </p>
                <p py:if="not project.getDesc()">The project owner has not entered a description.</p>
                <hr />
                <h3>What can I do with this project?</h3>

                <p>This is ${isOwner and "your" or "the"} project's home page.
                        <span py:strip="True" py:if="isOwner">Here, you can communicate
                        to your users the description or goal for your project.
                        Do this by clicking on the "Edit Project" link next to the
                        project name.</span>
                        <span py:strip="True" py:if="not isOwner">Here, you can read the
                        description or goal for this project.</span>
                </p>

                <p>From here you can use the left-hand tabs to:
                        <ul>
                                <li py:if="isOwner">Create, edit, and publish a project release</li>
                                <li py:if="not isOwner">Download an official project release</li>
                                <li>Browse the packages included in ${isOwner and "your" or "this"} project</li>
                                <li py:if="isOwner">Add or remove developers working on your project</li>
                                <li py:if="not isOwner">List the developers working on this project <span py:strip="True" py:if="not (isOwner or isDeveloper)">and request to join them</span></li>
                                <li py:if="isOwner">Create and manage your project's mailing lists</li>
                                <li py:if="not isOwner">Join the mailing lists for this project or browse their archives</li>
                        </ul>
                </p>

                <p>For detailed information on building or installing software
                        for ${isOwner and "your" or "this"} project, check out:
                    <ul>
                            <li py:if="isOwner or isDeveloper"><a href="${basePath}conaryDevelCfg">Setting up ${isOwner and "your" or "the"} project build environment</a></li>
                            <li><a href="${basePath}conaryUserCfg">Installing packages from ${isOwner and "your" or "this"} project</a></li>
                    </ul>
                </p>
            </div>
        </td>
        <td id="right" class="projects">
            ${projectsPane()}
            <div class="pad">
                ${groupTroveBuilder()}
            </div>
        </td>
    </body>
</html>

{'fraction_non_alphanumeric': 0.12367141797808355, 'fraction_numerical': 0.004943561011782153, 'mean_word_length': 1.6818382677861246, 'pattern_counts': {'":': 0, '<': 216, '<?xml version=': 2, '>': 216, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '108594', 'n_tokens_mistral': 3297, 'n_tokens_neox': 3047, 'n_words': 930}