<commit_before>﻿@page
@model APIViewWeb.Pages.Assemblies.IndexPageModel
@using APIViewWeb
@{
    ViewData["Title"] = "Reviews";
}

<div class="row">
    <div class="col my-2">
        <div class="float-left mb-2">
            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#uploadModel">Create review</button>
        </div>

        <div class="btn-group float-right">
            <a class="btn btn-secondary" active-if="!@Model.Closed" asp-route-closed="false">Open</a>
            <a class="btn btn-secondary" active-if="@Model.Closed" asp-route-closed="true">Closed</a>
        </div>
    </div>
</div>


<div class="modal fade" id="uploadModel" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form asp-page-handler="Upload" method="post" enctype="multipart/form-data">
                <div class="modal-header">
                    <h5 class="modal-title">Create review</h5>
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <ul class="nav nav-pills mb-3">
                        <li class="nav-item">
                            <a class="nav-link active" id="home-tab" data-toggle="tab" href="#csharp-help">C#</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#java-help">Java</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#c-help">C</a>
                        </li>
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content mb-4">
                        <div class="tab-pane active" id="csharp-help">Upload the .dll file for your assembly.</div>
                        <div class="tab-pane" id="java-help">Run a <code>mvn package</code> build on your project, which will generate a number of build artifacts in the <code>/target</code> directory. In there, find the file ending <code>sources.jar</code>, and select it.</div>
                        <div class="tab-pane" id="c-help">
                            <ol>
                                <li>
                                    Install clang 10 or later.
                                </li>
                                <li>
                                    Run
                                    <code>clang [inputs like az_*.h] -Xclang -ast-dump=json -I ..\..\..\core\core\inc -I "c:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.26.28801\include\" > az_core.ast</code>
                                </li>
                                <li>
                                    Archive the file <code>Compress-Archive az_core.ast -DestinationPath az_core.zip</code>
                                </li>
                                <li>
                                    Upload the resulting archive.
                                </li>
                            </ol>
                        </div>
                    </div>

                    <div class="form-group"><commit_msg>Add create review help link for python (#763)<commit_after>﻿@page
@model APIViewWeb.Pages.Assemblies.IndexPageModel
@using APIViewWeb
@{
    ViewData["Title"] = "Reviews";
}

<div class="row">
    <div class="col my-2">
        <div class="float-left mb-2">
            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#uploadModel">Create review</button>
        </div>

        <div class="btn-group float-right">
            <a class="btn btn-secondary" active-if="!@Model.Closed" asp-route-closed="false">Open</a>
            <a class="btn btn-secondary" active-if="@Model.Closed" asp-route-closed="true">Closed</a>
        </div>
    </div>
</div>


<div class="modal fade" id="uploadModel" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form asp-page-handler="Upload" method="post" enctype="multipart/form-data">
                <div class="modal-header">
                    <h5 class="modal-title">Create review</h5>
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <ul class="nav nav-pills mb-3">
                        <li class="nav-item">
                            <a class="nav-link active" id="home-tab" data-toggle="tab" href="#csharp-help">C#</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#java-help">Java</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#c-help">C</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#python-help">Python</a>
                        </li>
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content mb-4">
                        <div class="tab-pane active" id="csharp-help">Upload the .dll file for your assembly.</div>
                        <div class="tab-pane" id="java-help">Run a <code>mvn package</code> build on your project, which will generate a number of build artifacts in the <code>/target</code> directory. In there, find the file ending <code>sources.jar</code>, and select it.</div>
                        <div class="tab-pane" id="c-help">
                            <ol>
                                <li>
                                    Install clang 10 or later.
                                </li>
                                <li>
                                    Run
                                    <code>clang [inputs like az_*.h] -Xclang -ast-dump=json -I ..\..\..\core\core\inc -I "c:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.26.28801\include\" > az_core.ast</code>
                                </li>
                                <li>
                                    Archive the file <code>Compress-Archive az_core.ast -DestinationPath az_core.zip</code>
                                </li>
                                <li>
                                    Upload the resulting archive.
                                </li>
                            </ol>
                        </div>
                        <div class="tab-pane" id="python-help">
                            <ol>
                                <li>
                                    Install apistubgen.
                                    <code>pip install git+"https://github.com/Azure/azure-sdk-tools.git#subdirectory=packages/python-packages/api-stub-generator&egg=api-stub-generator"</code>
                                </li>
                                <li>
                                    Run apistubgen command with source repo or whl package as parameter to generate a json file with tokens
                                    <code>apistubgen --pkg-path [path to package root]</code>
                                </li>
                                <li>
                                    Upload generated json file
                                </li>
                            </ol>
                        </div>
                    </div>

                    <div class="form-group">
{'fraction_non_alphanumeric': 0.1348848848848849, 'fraction_numerical': 0.0063813813813813815, 'mean_word_length': 1.1731919521479064, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 165, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2766719', 'n_tokens_mistral': 2161, 'n_tokens_neox': 2006, 'n_words': 449}