<commit_before><div class="round" ng-if="!$ctrl.error && $ctrl.round.status === 'active'"
     infinite-scroll="$ctrl.loadMore()" infinite-scroll-disabled="$ctrl.loadingMore" infinite-scroll-distance="1">
    <div class="spinner__container" layout="row" layout-align="center center"
         ng-show="$ctrl.loading">
        <md-progress-circular md-diameter="40"></md-progress-circular>
    </div>
    <div class="round__title" layout="row" layout-align="start center"
         ng-hide="$ctrl.error || $ctrl.round.status !== 'active' || ($ctrl.images && !$ctrl.images.length)">
        <h2 class="md-headline">
            {{$ctrl.round.name}}<br />
            <small class="muted">part of {{$ctrl.round.campaign.name}}</small>
        </h2>
        <span flex></span>
        <!--
        <md-button class="md-icon-button" aria-label="Sort">
            <md-icon>filter_list</md-icon>
        </md-button>
        <span>|</span>
        -->
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 3}"
                   ng-click="$ctrl.setGallerySize(3)">
            <md-tooltip>Big thumbnails size</md-tooltip>
            <md-icon>photo_size_select_actual</md-icon>
        </md-button>
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 2}"
                   ng-click="$ctrl.setGallerySize(2)">
            <md-tooltip>Medium thumbnails size</md-tooltip>
            <md-icon>photo_size_select_large</md-icon>
        </md-button>
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 1}"
                   ng-click="$ctrl.setGallerySize(1)">
            <md-tooltip>Small thumbnails size</md-tooltip>
            <md-icon>photo_size_select_small</md-icon>
        </md-button>
        <span>&nbsp;</span>
        <md-button class="md-primary"
                   ng-disabled="!$ctrl.edits.length"
                   ng-click="$ctrl.save()">
            <md-icon>save</md-icon>
            Save Changes ({{$ctrl.edits.length}})
        </md-button>
    </div>

    <grid-list class="gallery" sv-root sv-part="$ctrl.images">
        <grid-tile class="gallery__image"
                   ng-class="'gallery__image--size-'+$ctrl.size"
                   ng-repeat="image in $ctrl.images" sv-element>
            <md-button class="md-icon-button gallery__drag-icon"
                       ng-show="$ctrl.isVoting('ranking')" sv-handle>
                <md-icon>drag_handle</md-icon>
            </md-button>
            <div class="gallery__image-containter" layout="column" layout-align="center center">
                <img ng-src="{{$ctrl.getImageName(image)}}">
            </div>
            <grid-tile-footer class="gallery__footer" ng-hide="true">
                <h3 class="gallery__footer-name">
                    <div>
                        <strong ng-show="$ctrl.isVoting('ranking')">{{$index+1 | ordinal}} place</strong>
                        <strong ng-show="!$ctrl.isVoting('ranking')">{{image.value}}</strong>
                    </div>
                    <span>Image #{{image.id}}</span>
                </h3>
            </grid-tile-footer>
            <div class="gallery__rating" ng-if="$ctrl.isVoting('rating')">
                <md-button class="md-icon-button"
                            ng-repeat="rate in $ctrl.rating.rates"
                            ng-click="$ctrl.setRate(image, rate)"
                            ng-class="{'md-primary': image.value >= rate, 'md-edited': image.value >= rate && image.edited }">
                    <md-icon>
                        star_rate
                        <md-tooltip>Rate {{rate}}/5</md-tooltip>
                    </md-icon>
                </md-button>
            </div>
            <div class="gallery__rating" ng-if="$ctrl.isVoting('yesno')">
                <md-button class="md-icon-button" flex="25"
                        ng-click="$ctrl.setRate(image, 5)"
                        ng-class="{'md-primary': image.value === 5, 'md-edited': image.value === 5 && image.edited }">
                    <md-icon>
                        thumb_up
                        <md-tooltip>Accept</md-tooltip>
                    </md-icon>
                </md-button>
                <md-button class="md-icon-button" flex="25"
                        ng-click="$ctrl.setRate(image, 1)"
                        ng-class="{'md-primary': image.value === 1, 'md-warn': image.value === 1 && image.edited }">
                    <md-icon>
                        thumb_down
                        <md-tooltip>Decline</md-tooltip>
                    </md-icon>
                </md-button>
            </div>
        </grid-tile>
    </grid-list>
    <div ng-show='$ctrl.loadingMore'></div>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.error">
    <h2 class="md-display-1">{{$ctrl.error.message}}</h2>
    <h2 class="md-headline">{{$ctrl.error.detail}}</h2>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.round.status !== 'active' && !$ctrl.error">
    <h2 class="md-headline">this round is {{$ctrl.round.status}}</h2>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.images && !$ctrl.images.length">
    <h2 class="md-headline" ng-hide="$ctrl.isVoting('ranking')">you haven't voted on any image this round</h2>
</div><commit_msg>fix(vote-edit): fix stars position, add link to round<commit_after><div class="round" ng-if="!$ctrl.error && $ctrl.round.status === 'active'"
     infinite-scroll="$ctrl.loadMore()" infinite-scroll-disabled="$ctrl.loadingMore" infinite-scroll-distance="1">
    <div class="spinner__container" layout="row" layout-align="center center"
         ng-show="$ctrl.loading">
        <md-progress-circular md-diameter="40"></md-progress-circular>
    </div>
    <div class="round__title" layout="row" layout-align="start center"
         ng-hide="$ctrl.error || $ctrl.round.status !== 'active' || ($ctrl.images && !$ctrl.images.length)">
        <h2 class="md-headline">
            Edit votes for <a href="" ui-sref="main.juror.round({id: $ctrl.round.id})">{{$ctrl.round.name}}</a><br />
            <small class="muted">part of {{$ctrl.round.campaign.name}}</small>
        </h2>
        <span flex></span>
        <!--
        <md-button class="md-icon-button" aria-label="Sort">
            <md-icon>filter_list</md-icon>
        </md-button>
        <span>|</span>
        -->
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 3}"
                   ng-click="$ctrl.setGallerySize(3)">
            <md-tooltip>Big thumbnails size</md-tooltip>
            <md-icon>photo_size_select_actual</md-icon>
        </md-button>
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 2}"
                   ng-click="$ctrl.setGallerySize(2)">
            <md-tooltip>Medium thumbnails size</md-tooltip>
            <md-icon>photo_size_select_large</md-icon>
        </md-button>
        <md-button class="md-icon-button" aria-label="Grid size"
                   ng-class="{'md-primary': $ctrl.size === 1}"
                   ng-click="$ctrl.setGallerySize(1)">
            <md-tooltip>Small thumbnails size</md-tooltip>
            <md-icon>photo_size_select_small</md-icon>
        </md-button>
        <span>&nbsp;</span>
        <md-button class="md-primary"
                   ng-disabled="!$ctrl.edits.length"
                   ng-click="$ctrl.save()">
            <md-icon>save</md-icon>
            Save Changes ({{$ctrl.edits.length}})
        </md-button>
    </div>

    <grid-list class="gallery" sv-root sv-part="$ctrl.images">
        <grid-tile class="gallery__image"
                   ng-class="'gallery__image--size-'+$ctrl.size"
                   ng-repeat="image in $ctrl.images" sv-element>
            <md-button class="md-icon-button gallery__drag-icon"
                       ng-show="$ctrl.isVoting('ranking')" sv-handle>
                <md-icon>drag_handle</md-icon>
            </md-button>
            <div class="gallery__image-containter" layout="column" layout-align="center center">
                <img ng-src="{{$ctrl.getImageName(image)}}">
            </div>
            <grid-tile-footer class="gallery__footer" ng-hide="true">
                <h3 class="gallery__footer-name">
                    <div>
                        <strong ng-show="$ctrl.isVoting('ranking')">{{$index+1 | ordinal}} place</strong>
                        <strong ng-show="!$ctrl.isVoting('ranking')">{{image.value}}</strong>
                    </div>
                    <span>Image #{{image.id}}</span>
                </h3>
            </grid-tile-footer>
            <div class="gallery__rating"
                 layout="row" layout-align="center center"
                 ng-if="$ctrl.isVoting('rating')">
                <md-button class="md-icon-button"
                            ng-repeat="rate in $ctrl.rating.rates"
                            ng-click="$ctrl.setRate(image, rate)"
                            ng-class="{'md-primary': image.value >= rate, 'md-edited': image.value >= rate && image.edited }">
                    <md-icon>
                        star_rate
                        <md-tooltip>Rate {{rate}}/5</md-tooltip>
                    </md-icon>
                </md-button>
            </div>
            <div class="gallery__rating" ng-if="$ctrl.isVoting('yesno')">
                <md-button class="md-icon-button" flex="25"
                        ng-click="$ctrl.setRate(image, 5)"
                        ng-class="{'md-primary': image.value === 5, 'md-edited': image.value === 5 && image.edited }">
                    <md-icon>
                        thumb_up
                        <md-tooltip>Accept</md-tooltip>
                    </md-icon>
                </md-button>
                <md-button class="md-icon-button" flex="25"
                        ng-click="$ctrl.setRate(image, 1)"
                        ng-class="{'md-primary': image.value === 1, 'md-warn': image.value === 1 && image.edited }">
                    <md-icon>
                        thumb_down
                        <md-tooltip>Decline</md-tooltip>
                    </md-icon>
                </md-button>
            </div>
        </grid-tile>
    </grid-list>
    <div ng-show='$ctrl.loadingMore'></div>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.error">
    <h2 class="md-display-1">{{$ctrl.error.message}}</h2>
    <h2 class="md-headline">{{$ctrl.error.detail}}</h2>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.round.status !== 'active' && !$ctrl.error">
    <h2 class="md-headline">this round is {{$ctrl.round.status}}</h2>
</div>
<div class="central-error" layout="column" layout-align="center center"
     ng-show="$ctrl.images && !$ctrl.images.length">
    <h2 class="md-headline" ng-hide="$ctrl.isVoting('ranking')">you haven't voted on any image this round</h2>
</div>
{'fraction_non_alphanumeric': 0.17904661203630276, 'fraction_numerical': 0.005991717331923518, 'mean_word_length': 1.8353734698975768, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 223, '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': '4369998', 'n_tokens_mistral': 3520, 'n_tokens_neox': 3327, 'n_words': 507}