<commit_before><form id="camo">
    <div class="row">
        <div class="col-lg-9">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="panel-title">
                        Camo Plugin Settings
                    </div>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label" for="key">
                            Camo Host
                        </label>
                        <input type="text" class="form-control" data-key="host" id="host" placeholder="https://camo.example.tld/"></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="key">
                            Camo Key
                        </label>
                        <input type="text" class="form-control" data-key="key" id="key" placeholder=""></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="type">
                            URL Type
                        </label>
                        <select class="form-control" data-key="type" id="type">
                            <option value="path" selected="selected">Encoded Path</option>
                            <option value="query">Query String</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <div class="checkbox">
                            <label for="https">
                                <input data-key="https" id="https" type="checkbox">
                                Proxy https images.
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="panel-title">
                        Internal Camo Proxy
                    </div>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <div class="checkbox">
                            <label for="useCamoProxy">
                                <input data-key="useCamoProxy" id="useCamoProxy" type="checkbox">
                                Use internal Camo proxy.
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="port">
                            Camo Port
                        </label>
                        <input type="number" class="form-control" data-key="port" id="port" placeholder="8082"></input>
                    </div>
                </div>
            </div>
            <div class="panel panel-primary">
                <div class="panel-heading">
                    NGINX Server Block Generation
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label" for="sslCert">
                            SSL Certificate Location
                        </label>
                        <input type="text" class="form-control" data-key="sslCert" id="sslCert" placeholder="/etc/letsencrypt/live/example.com/fullchain.pem"></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="sslKey">
                            SSL Certificate Key Location
                        </label>
                        <input type="text" class="form-control" data-key="sslKey" id="sslKey" placeholder="/etc/letsencrypt/live/example.com/privkey.pem"></input>
                    </div>
                    <button type="button" class="btn btn-success nginx">Copy NGINX Server Block</button>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    Action Panel
                </div>
                <div class="panel-body">
                    <button type="button" class="btn btn-success form-control" accesskey="s" id="save">
                        <i class="fa fa-fw fa-save"></i> Save Settings<commit_msg>:cherry_blossom: Add some help.<commit_after><form id="camo">
    <div class="row">
        <div class="col-lg-9">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="panel-title">
                        Camo Plugin Settings
                    </div>
                </div>
                <div class="panel-body">
                    <div class="alert alert-warning">
                        For assistance setting up this plugin, please view <a href="https://community.nodebb.org/topic/8297/nodebb-plugin-camo-make-embedded-images-look-secure">the guide here</a>.
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="key">
                            Camo Host
                        </label>
                        <input type="text" class="form-control" data-key="host" id="host" placeholder="https://camo.example.tld/"></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="key">
                            Camo Key
                        </label>
                        <input type="text" class="form-control" data-key="key" id="key" placeholder=""></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="type">
                            URL Type
                        </label>
                        <select class="form-control" data-key="type" id="type">
                            <option value="path" selected="selected">Encoded Path</option>
                            <option value="query">Query String</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <div class="checkbox">
                            <label for="https">
                                <input data-key="https" id="https" type="checkbox">
                                Proxy https images.
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="panel-title">
                        Internal Camo Proxy
                    </div>
                </div>
                <div class="panel-body">
                    <div class="alert alert-warning">
                        This plugin has the Camo Proxy embedded into it. If enabled, it will use the settings above and below. Saving these settings will start the proxy, no restart is required. The proxy will run in a seperate process from NodeBB on the port below.
                    </div>
                    <div class="form-group">
                        <div class="checkbox">
                            <label for="useCamoProxy">
                                <input data-key="useCamoProxy" id="useCamoProxy" type="checkbox">
                                Use internal Camo proxy.
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="port">
                            Camo Port
                        </label>
                        <input type="number" class="form-control" data-key="port" id="port" placeholder="8082"></input>
                    </div>
                </div>
            </div>
            <div class="panel panel-primary">
                <div class="panel-heading">
                    NGINX Server Block Generation
                </div>
                <div class="panel-body">
                    <div class="alert alert-warning">
                        If you are using NGINX, this plugin can copy a correctly formatted server block to your clipboard for you to paste it into your config file.
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="sslCert">
                            SSL Certificate Location
                        </label>
                        <input type="text" class="form-control" data-key="sslCert" id="sslCert" placeholder="/etc/letsencrypt/live/example.com/fullchain.pem"></input>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="sslKey">
                            SSL Certificate Key Location
                        </label>
                        <input type="text" class="form-control" data-key="sslKey" id="sslKey" placeholder="/etc/letsencrypt/live/example.com/privkey.pem"></input>
                    </div>
                    <button type="button" class="btn btn-success nginx">Copy NGINX Server Block</button>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    Action Panel
                </div>
                <div class="panel-body">
                    <button type="button" class="btn btn-success form-control" accesskey="s" id="save">
                        <i class="fa fa-fw fa-save"></i> Save Settings
{'fraction_non_alphanumeric': 0.11834140435835351, 'fraction_numerical': 0.0016142050040355124, 'mean_word_length': 1.0574927355749273, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2964448', 'n_tokens_mistral': 2358, 'n_tokens_neox': 2190, 'n_words': 532}