<commit_before><div class="page-buttonbar clearfix">
    <h1 class="page-header pull-left">{-"Filesharing"|translate}</h1>
    <button class="btn btn-primary pull-right" data-toggle="modal" data-target="#newfiles_modal" id="newfiles"><i
                class="fa fa-plus"></i>&nbsp;{-"New file"|translate}</button>
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-default dropdown-toggle tooltip-trigger" id="filter-dropdown"
                data-toggle="dropdown" data-title="{-"Filter the files you want to see"|translate}"><i
                    class="fa fa-filter"></i></button>
        <ul class="dropdown-menu dropdown-checkbox-menu" role="menu" style="left:0;right:auto">
            <li class="dropdown-header">{-"Filter the files you want to see"|translate}</li>
            <li>
                <label>
                    <input type="checkbox" class="filess-filter" value="own">&nbsp;{-"My files"|translate}
                </label>
            </li>
            <li>
                <label>
                    <input type="checkbox" class="filess-filter" value="foreign">&nbsp;{-"Friends files"|translate}
                </label>
            </li>
            <li>
                <button class="btn btn-primary btn-xs btn-block"
                        onclick="applyFilter();">{-"Apply filter"|translate}</button>
            </li>
        </ul>
    </div>
</div>
<div id="fileslist">
    <div class="filesharing-loader block-loader loader"></div>
    <div class="filesharing-list clearfix"></div>
    <div class="alert alert-block alert-danger"><p>{-"There are no files to show!"|translate}</p></div>
</div>
<div class="modal fade" id="newfiles_modal" tabindex="-1" role="dialog" aria-labelledby="newfiles_modal"
     aria-hidden="true" data-moveto="body">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">{-"Create new fle"|translate}</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal ajaxform" action="{-"index.php?m=ilesharing&action=create"|URL}" role="form"
                      id="newfiles_form" method="POST">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Title"|translate}</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="title" placeholder="{-"Title"|translate}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Description"|translate}</label>

                        <div class="col-sm-10">
                            <textarea class="form-control" rows="3" name="description"
                                      placeholder="{-"Enter a short description for your files. Optional you can leave that blank!"|translate}"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Privacy"|translate}</label>

                        <div class="col-sm-10">
                            <div class="btn-group" data-toggle="buttons" style="width:100%">
                                <label class="btn btn-default tooltip-trigger"
                                       data-title="{-"You can choose friends who are allowed to see this files"|translate}"
                                       data-container="#newfiles_modal" style="width:33.3333%">
                                    <input type="radio" name="privacy" value="0" id="newfiles_shared"><i
                                            class="fa fa-check-square-o"></i>&nbsp;{-"Shared"|translate}
                                </label>
                                <label class="btn btn-default tooltip-trigger"
                                       data-title="{-"Only your friends can see the images"|translate}"
                                       data-container="#newfiles_modal" style="width:33.3333%">
                                    <input type="radio" name="privacy" value="1"><i
                                            class="fa fa-group"></i>&nbsp;{-"Friends"|translate}
                                </label>
                                <label class="btn btn-default tooltip-trigger active"
                                       data-title="{-"Every user can see the images"|translate}"
                                       data-container="#newfiles_modal" style="width:33.3333%">
                                    <input type="radio" name="privacy" value="2" checked><i class="fa fa-globe"></i>&nbsp;{-"Public"|translate}
                                </label>
                            </div>
                        </div>
                    </div><commit_msg>add privacy options for filesharing<commit_after><div class="page-buttonbar clearfix">
    <h1 class="page-header pull-left">{-"Filesharing"|translate}</h1>
    <button class="btn btn-primary pull-right" data-toggle="modal" data-target="#newfiles_modal" id="newfiles"><i
                class="fa fa-plus"></i>&nbsp;{-"New file"|translate}</button>
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-default dropdown-toggle tooltip-trigger" id="filter-dropdown"
                data-toggle="dropdown" data-title="{-"Filter the files you want to see"|translate}"><i
                    class="fa fa-filter"></i></button>
        <ul class="dropdown-menu dropdown-checkbox-menu" role="menu" style="left:0;right:auto">
            <li class="dropdown-header">{-"Filter the files you want to see"|translate}</li>
            <li>
                <label>
                    <input type="checkbox" class="filess-filter" value="own">&nbsp;{-"My files"|translate}
                </label>
            </li>
            <li>
                <label>
                    <input type="checkbox" class="filess-filter" value="foreign">&nbsp;{-"Friends files"|translate}
                </label>
            </li>
            <li>
                <button class="btn btn-primary btn-xs btn-block"
                        onclick="applyFilter();">{-"Apply filter"|translate}</button>
            </li>
        </ul>
    </div>
</div>
<div id="fileslist">
    <div class="filesharing-loader block-loader loader"></div>
    <div class="filesharing-list clearfix"></div>
    <div class="alert alert-block alert-danger"><p>{-"There are no files to show!"|translate}</p></div>
</div>
<div class="modal fade" id="newfiles_modal" tabindex="-1" role="dialog" aria-labelledby="newfiles_modal"
     aria-hidden="true" data-moveto="body">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">{-"Create new file"|translate}</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal ajaxform" action="{-"index.php?m=ilesharing&action=create"|URL}" role="form"
                      id="newfiles_form" method="POST">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Title"|translate}</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="title" placeholder="{-"Title"|translate}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Description"|translate}</label>

                        <div class="col-sm-10">
                            <textarea class="form-control" rows="3" name="description"
                                      placeholder="{-"Enter a short description for your files. Optional you can leave that blank!"|translate}"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{-"Privacy"|translate}</label>

                        <div class="col-sm-10">
                            <div class="btn-group" data-toggle="buttons" style="width:100%">
                                <label class="btn btn-default tooltip-trigger"
                                       data-title="{-"Only your friends can see the images"|translate}"
                                       data-container="#newfiles_modal" style="width:33.3333%">
                                    <input type="checkbox" name="privacy" value="1"><i
                                            class="fa fa-group"></i>&nbsp;{-"Friends"|translate}
                                </label>&nbsp;or&nbsp;
                                <label class="tooltip-trigger"
                                       data-title="{-"Users"|translate}"
                                       data-container="#newfiles_modal" style="width:33.3333%">
                                    <select name="friends"></select>
                                </label>
                            </div>
                        </div>
                    </div>
{'fraction_non_alphanumeric': 0.15167714884696018, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 1.606830601092896, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6430982', 'n_tokens_mistral': 2526, 'n_tokens_neox': 2350, 'n_words': 469}