<commit_before><div class="modal fade" id="manage-access">
    <div class="modal-dialog">
        <div class="modal-content" :style="{'pointer-events': isProcessing ? 'none' : 'auto' }">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title">Manage access</h4>
            </div>

            <div class="modal-body">
                <div class="alert alert-info" role="alert">
                    <p><span class="glyphicon glyphicon-info-sign" aria-hidden="true" data-toggle="collapse"
                             data-target="#usage-info">&nbsp;</span>
                        Use this window to share your resource with specific HydroShare users. You can give other
                        users the ability to view or edit this resource. You can also add additional owners who
                        will have full permissions.</p>
                    <br>

                    <div id="usage-info" class="collapse">
                        <ul>
                            <li>
                                <p><strong>Owners</strong> can perform all operations on a resource and set whether
                                    a resource is Public,
                                    Discoverable, or Private and Shareable. Resources that are Public have all their
                                    content
                                    visible to all users. Resources that are Discoverable have only their metadata
                                    public.
                                    Resources that are private are only accessible to specific users or groups that
                                    they have been shared with.</p>
                            </li>
                            <li>
                                <p><strong>Editors</strong> can edit resource metadata and add and delete resource
                                    content files. If the resource
                                    is Shareable editors can use manage access to extend editing or viewing access
                                    to other users.</p>
                            </li>
                            <li><p><strong>Viewers</strong> can view resource metadata and download resource content
                                files. If the resource is
                                Shareable viewers can use manage access to extend viewing access to other users.</p>
                            </li>
                        </ul>
                    </div>
                    <div data-toggle="collapse" data-target="#usage-info"
                       class="btn-show-more btn btn-default btn-xs">Show More</div>
                    <br>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Who has access</h3>
                    </div>
                    <div class="panel-body panel-access ">
                        <table class="table access-table" :style="{'pointer-events': isProcessing ? 'none' : 'auto' }">
                            <tbody>
                                {% include "includes/access-row.html" %}
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Give access</h3>
                    </div>
                    <div id="div-invite-people" class="panel-body">
                        <div id="invite-flag" class="btn-group space-bottom" role="group"
                             aria-label="Share with users or groups">
                            <button type="button"
                                    :class="{btn: true, 'btn-primary': isInviteUsers, 'btn-default': !isInviteUsers}"
                                    @click="isInviteUsers = true"
                                    data-value="users">Users</button>
                            <button type="button"
                                    :class="{btn: true, 'btn-primary': !isInviteUsers, 'btn-default': isInviteUsers}"
                                    @click="isInviteUsers = false"
                                    data-value="groups">Groups</button>
                        </div>

                        <form id="add-access-form"
                              :action="'/hsapi/_internal/' + resShortId + '/share-resource-with-' + (isInviteUsers ? 'user' : 'group') + '/'"
                              method="POST">
                            {% csrf_token %}

                            <div class="row">
                                <div v-show="isInviteUsers" class="add-view-user-form col-xs-12">
                                    {{ add_view_invite_user_form.user }}
                                </div>

                                <div v-show="!isInviteUsers" class="add-view-group-form col-xs-12">
                                    {{ add_view_group_form.group }}
                                </div>

                                <div class="col-xs-12">
                                    <div class="row">
                                        <div class="col-xs-6"><commit_msg>Disable 'owner' option in Invite dropdown when adding access to a Group<commit_after><div class="modal fade" id="manage-access">
    <div class="modal-dialog">
        <div class="modal-content" :style="{'pointer-events': isProcessing ? 'none' : 'auto' }">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title">Manage access</h4>
            </div>

            <div class="modal-body">
                <div class="alert alert-info" role="alert">
                    <p><span class="glyphicon glyphicon-info-sign" aria-hidden="true" data-toggle="collapse"
                             data-target="#usage-info">&nbsp;</span>
                        Use this window to share your resource with specific HydroShare users. You can give other
                        users the ability to view or edit this resource. You can also add additional owners who
                        will have full permissions.</p>
                    <br>

                    <div id="usage-info" class="collapse">
                        <ul>
                            <li>
                                <p><strong>Owners</strong> can perform all operations on a resource and set whether
                                    a resource is Public,
                                    Discoverable, or Private and Shareable. Resources that are Public have all their
                                    content
                                    visible to all users. Resources that are Discoverable have only their metadata
                                    public.
                                    Resources that are private are only accessible to specific users or groups that
                                    they have been shared with.</p>
                            </li>
                            <li>
                                <p><strong>Editors</strong> can edit resource metadata and add and delete resource
                                    content files. If the resource
                                    is Shareable editors can use manage access to extend editing or viewing access
                                    to other users.</p>
                            </li>
                            <li><p><strong>Viewers</strong> can view resource metadata and download resource content
                                files. If the resource is
                                Shareable viewers can use manage access to extend viewing access to other users.</p>
                            </li>
                        </ul>
                    </div>
                    <div data-toggle="collapse" data-target="#usage-info"
                       class="btn-show-more btn btn-default btn-xs">Show More</div>
                    <br>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Who has access</h3>
                    </div>
                    <div class="panel-body panel-access ">
                        <table class="table access-table" :style="{'pointer-events': isProcessing ? 'none' : 'auto' }">
                            <tbody>
                                {% include "includes/access-row.html" %}
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Give access</h3>
                    </div>
                    <div id="div-invite-people" class="panel-body">
                        <div id="invite-flag" class="btn-group space-bottom" role="group"
                             aria-label="Share with users or groups">
                            <button type="button"
                                    :class="{btn: true, 'btn-primary': isInviteUsers, 'btn-default': !isInviteUsers}"
                                    @click="isInviteUsers = true"
                                    data-value="users">Users</button>
                            <button type="button"
                                    :class="{btn: true, 'btn-primary': !isInviteUsers, 'btn-default': isInviteUsers}"
                                    @click="isInviteUsers = false; if (selectedAccess === 'owner') {selectedAccess = 'view'}"
                                    data-value="groups">Groups</button>
                        </div>

                        <form id="add-access-form"
                              :action="'/hsapi/_internal/' + resShortId + '/share-resource-with-' + (isInviteUsers ? 'user' : 'group') + '/'"
                              method="POST">
                            {% csrf_token %}

                            <div class="row">
                                <div v-show="isInviteUsers" class="add-view-user-form col-xs-12">
                                    {{ add_view_invite_user_form.user }}
                                </div>

                                <div v-show="!isInviteUsers" class="add-view-group-form col-xs-12">
                                    {{ add_view_group_form.group }}
                                </div>

                                <div class="col-xs-12">
                                    <div class="row">
                                        <div class="col-xs-6">
{'fraction_non_alphanumeric': 0.09993657696837908, 'fraction_numerical': 0.002355712603062426, 'mean_word_length': 1.025692787667462, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3311944', 'n_tokens_mistral': 2503, 'n_tokens_neox': 2321, 'n_words': 637}