<commit_before><div class="card panel-default mainpanel">
    <div class="card-header" translate>Legend
        <button type="button" class="close" ng-click="Core.closePanel(this)">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
    </div>
    <div class="card-body">
        <p><input type="text" class="form-control" placeholder="Filter:" ng-model="query.title"></p>
        <ul class="list-group">
            <li ng-repeat="layer in layers | filter:query" class="list-group-item" ng-show="hasLegend(layer, 'wms')">
                {{layer.title}}
                <img ng-repeat="sublayer in layer.sub_layers" ng-src="{{sublayer}}"
                    onerror=" this.parentNode.removeChild(this); "
                    onload="if(this.height<6) { this.parentNode.removeChild(this); }" />
            </li>
            <li ng-repeat="layer in layers | filter:query" class="list-group-item" ng-show="hasLegend(layer, 'vector')">
                {{layer.title}}
                <p ng-repeat="category in layer.lyr.getSource().legend_categories | orderBy:'name'"><span
                        style="background-color: {{category.color}};">&nbsp;&nbsp;&nbsp;</span>&nbsp;{{category.name}}
                </p>
            </li>
        </ul>
        <div class="row justify-content-center">
            <div class="col col-md-2">
                <button type="button" class="btn btn-light btn-outline ng-scope" title="{{'Reload'|translate}}"
                    ng-click="refresh()">
                    <i class="glyphicon icon-refresh"></i>
                </button>
            </div>
        </div>
    </div>
</div><commit_msg>Ugly placement of refresh button for legends<commit_after><div class="card panel-default mainpanel">
    <div class="card-header" translate>Legend
        <button type="button" class="close" ng-click="Core.closePanel(this)">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
    </div>
    <div class="card-body">
        <p><input type="text" class="form-control" placeholder="Filter:" ng-model="query.title"></p>
        <ul class="list-group">
            <li ng-repeat="layer in layers | filter:query" class="list-group-item" ng-show="hasLegend(layer, 'wms')">
                {{layer.title}}
                <img ng-repeat="sublayer in layer.sub_layers" ng-src="{{sublayer}}"
                    onerror=" this.parentNode.removeChild(this); "
                    onload="if(this.height<6) { this.parentNode.removeChild(this); }" />
            </li>
            <li ng-repeat="layer in layers | filter:query" class="list-group-item" ng-show="hasLegend(layer, 'vector')">
                {{layer.title}}
                <p ng-repeat="category in layer.lyr.getSource().legend_categories | orderBy:'name'"><span
                        style="background-color: {{category.color}};">&nbsp;&nbsp;&nbsp;</span>&nbsp;{{category.name}}
                </p>
            </li>
        </ul>
        <div class="container">
            <div class="row justify-content-center">
                <div class="col col-md-2"> 
                    <button type="button" class="btn btn-light btn-outline ng-scope" title="{{'Reload'|translate}}" ng-click="refresh()">
                        <i class="glyphicon icon-refresh"></i>
                    </button>
                </div>
            </div>
        </div>
        
    </div>
</div>
{'fraction_non_alphanumeric': 0.17623421354764637, 'fraction_numerical': 0.001148105625717566, 'mean_word_length': 2.1088314005352364, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '656829', 'n_tokens_mistral': 1021, 'n_tokens_neox': 993, 'n_words': 180}