<commit_before><script type="text/javascript">
$(document).ready(function()
{
	$('.project_link').popover();
});

function revokeGitHub(){
    $.get("{{ path("AceUserBundle_set_access_token") }}", {}, function (data) {
        $("#li_auth_revoke").html("\<a href=\"authorizeGitHub();\"><i class=\"icon-exclamation-sign\"></i>Authorize GitHub Access</a>");
    });
}

function authorizeGitHub(){

}

function warnDeleteProject(deletion_path)
{
	$("#deleteProjectButton").attr("href", deletion_path);
	$("#deleteProjectModal").modal("show");
}
</script>
<div class="well">
<ul class="nav nav-list" id="sidebar-list-header">
    <li><a href="{{ path('AceGenericBundle_index') }}"><i class="icon-home"></i>Home</a></li>
</ul>
<ul class="nav nav-list" id="sidebar-list-main" style="max-height:600px; overflow:auto;">
	<li class="nav-header">Projects</li>
    {% if files%}
        {% for file in files %}
            <li>
                <a rel="popover" data-delay=1500 class="project_link" data-trigger="hover" data-html="true"
                   style="overflow: hidden; text-overflow: ellipsis; width: 60%; width: -moz-calc(100% - 59px);
				   width: -webkit-calc(100% - 59px); width: calc(100% - 59px);"
                   data-placement="right" data-content="
<h6>Description:</h6>
<p>{% render "AceUtilitiesBundle:Default:getDescription" with {'id':file['id']} %}</p>
<h6>Files:</h6>
<p>{% render "AceUtilitiesBundle:Default:listFilenames" with {'id':file['id'], 'show_ino':1} %}</p>"
                   data-original-title="{{ file['name'] }}" href="{{ path('AceGenericBundle_edit', { 'project_id': file['id'], 'fpath': file['name'] ~ '_app.cpp' }) }}">
                    {{ file['name'] }}
                </a>
                <button style=" float: right; margin-top: -25px; margin-right: 22px; padding: 0px;"
                        onclick="location.href='{{ path('AceUtilitiesBundle_download', { 'id' : file['id'] }) }}'"
                        class="btn btn-link">
                    <i class="icon-download-alt"></i>
                </button>
                <button style=" float: right; margin-top: -25px; padding: 0px; padding-right: 15px; margin-right: -15px"
                        onClick="warnDeleteProject('{{ path('AceUtilitiesBundle_deleteproject', {'id':file['id']}) }}')"
                        class="btn btn-link">
                    <i class="icon-trash"></i>
                </button>
            </li>
        {% endfor %}
    {% endif %}
</ul>

<ul class="nav nav-list" id="sidebar-list-footer">

	<!-- <li class="active"><a href="#">Link</a></li> -->
	<li class="nav-header" id="Links">Links</li>
	<!--<li><a href="{{ path('AceGenericBundle_libraries') }}"><i class="icon-book"></i>Examples &amp; Libraries</a></li>-->
	<!--<li><a href="{{ path('AceGenericBundle_boards') }}"><i class="icon-hdd"></i>Supported Boards</a></li>-->
    <li><a href="{{ path('AceUtilitiesBundle_wiselib_clone') }}"><i class="icon-hdd"></i>Clone Wiselib Source</a></li>
	<li><a href="{{ path("AceStaticBundle_walkthrough", {"page":1}) }}"><i class="icon-exclamation-sign"></i>Getting Started</a></li>
    <li id="li_auth_revoke">
    {% if access_token is defined and access_token!= '' %}
        <a href="javascript:revokeGitHub();"><i class="icon-exclamation-sign"></i>Revoke GitHub Access</a>
    {% else %}
        <a href="javascript:authorizeGitHub();"><i class="icon-exclamation-sign"></i>Authorize GitHub Access</a>
    {% endif %}
    </li>
	<!--<li><a href="{{ path('AceStaticBundle_upload_bootloader') }}"><i class="icon-upload"></i>Upload Bootloader</a></li>-->
	<!--<li><a href="{{ path('AceStaticBundle_tutorials') }}"><i class="icon-facetime-video"></i>Tutorials</a></li>-->

</ul>
</div>
<div class="modal hide fade" id="deleteProjectModal">
  <div class="modal-header">
    <button class="close" data-dismiss="modal">&#215;</button>
    <h3>Are you sure you want to delete your project?</h3>
  </div><commit_msg>Commented out sidebar for now<commit_after><script type="text/javascript">
$(document).ready(function()
{
	$('.project_link').popover();
});

function revokeGitHub(){
    $.get("{{ path("AceUserBundle_set_access_token") }}", {}, function (data) {
        $("#li_auth_revoke").html("\<a href=\"authorizeGitHub();\"><i class=\"icon-exclamation-sign\"></i>Authorize GitHub Access</a>");
    });
}

function authorizeGitHub(){

}

function warnDeleteProject(deletion_path)
{
	$("#deleteProjectButton").attr("href", deletion_path);
	$("#deleteProjectModal").modal("show");
}
</script>
<div class="well">
<ul class="nav nav-list" id="sidebar-list-header">
    <li><a href="{{ path('AceGenericBundle_index') }}"><i class="icon-home"></i>Home</a></li>
</ul>
<ul class="nav nav-list" id="sidebar-list-main" style="max-height:600px; overflow:auto;">
	<li class="nav-header">Projects</li>
    {% if files%}
        {% for file in files %}
            <li>
                <a rel="popover" data-delay=1500 class="project_link" data-trigger="hover" data-html="true"
                   style="overflow: hidden; text-overflow: ellipsis; width: 60%; width: -moz-calc(100% - 59px);
				   width: -webkit-calc(100% - 59px); width: calc(100% - 59px);"
                   data-placement="right" data-content="
<h6>Description:</h6>
<p>{% render "AceUtilitiesBundle:Default:getDescription" with {'id':file['id']} %}</p>
<h6>Files:</h6>
<p>{% render "AceUtilitiesBundle:Default:listFilenames" with {'id':file['id'], 'show_ino':1} %}</p>"
                   data-original-title="{{ file['name'] }}" href="{{ path('AceGenericBundle_edit', { 'project_id': file['id'], 'fpath': file['name'] ~ '_app.cpp' }) }}">
                    {{ file['name'] }}
                </a>
                <button style=" float: right; margin-top: -25px; margin-right: 22px; padding: 0px;"
                        onclick="location.href='{{ path('AceUtilitiesBundle_download', { 'id' : file['id'] }) }}'"
                        class="btn btn-link">
                    <i class="icon-download-alt"></i>
                </button>
                <button style=" float: right; margin-top: -25px; padding: 0px; padding-right: 15px; margin-right: -15px"
                        onClick="warnDeleteProject('{{ path('AceUtilitiesBundle_deleteproject', {'id':file['id']}) }}')"
                        class="btn btn-link">
                    <i class="icon-trash"></i>
                </button>
            </li>
        {% endfor %}
    {% endif %}
</ul>

<ul class="nav nav-list" id="sidebar-list-footer">

	<!-- <li class="active"><a href="#">Link</a></li> -->
	<li class="nav-header" id="Links">Links</li>
	<!--<li><a href="{{ path('AceGenericBundle_libraries') }}"><i class="icon-book"></i>Examples &amp; Libraries</a></li>-->
	<!--<li><a href="{{ path('AceGenericBundle_boards') }}"><i class="icon-hdd"></i>Supported Boards</a></li>-->
    <li><a href="{{ path('AceUtilitiesBundle_wiselib_clone') }}"><i class="icon-hdd"></i>Clone Wiselib Source</a></li>
	<li><a href="{{ path("AceStaticBundle_walkthrough", {"page":1}) }}"><i class="icon-exclamation-sign"></i>Getting Started</a></li>
    <!--<li id="li_auth_revoke">
    {% if access_token is defined and access_token!= '' %}
        <a href="javascript:revokeGitHub();"><i class="icon-exclamation-sign"></i>Revoke GitHub Access</a>
    {% else %}
        <a href="javascript:authorizeGitHub();"><i class="icon-exclamation-sign"></i>Authorize GitHub Access</a>
    {% endif %}
    </li>-->
	<!--<li><a href="{{ path('AceStaticBundle_upload_bootloader') }}"><i class="icon-upload"></i>Upload Bootloader</a></li>-->
	<!--<li><a href="{{ path('AceStaticBundle_tutorials') }}"><i class="icon-facetime-video"></i>Tutorials</a></li>-->

</ul>
</div>
<div class="modal hide fade" id="deleteProjectModal">
  <div class="modal-header">
    <button class="close" data-dismiss="modal">&#215;</button>
    <h3>Are you sure you want to delete your project?</h3>
  </div>
{'fraction_non_alphanumeric': 0.2291166434980412, 'fraction_numerical': 0.011879186149374447, 'mean_word_length': 3.5300515168860906, 'pattern_counts': {'":': 2, '<': 216, '<?xml version=': 0, '>': 216, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '831319', 'n_tokens_mistral': 2712, 'n_tokens_neox': 2554, 'n_words': 469}