<commit_before><md-dialog aria-label="Result dialog">
    <md-content>
        <md-tabs md-selected="selectedTab" style="min-width: 1000px; min-height: 400px;">
            <md-tab label="Text Results">
                <md-content>
                    <md-list>
                        <md-list-item ng-repeat="result in results | resultFilter: {'TEXT': true} | orderBy: '-score'" ng-mouseleave="showDetailDialog = false">
                            <div class="result-image-container" layout="row" layout-align="start center" ng-mouseenter="showDetailDialog = true"
                                 ng-class="{'result-image-container-small': !showDetailDialog, 'result-image-container-big': showDetailDialog}">
                                <a href="{{result.guid}}" target="_blank" >
                                    <img ng-src="{{result.edmPreview[0] || textFallback}}" class="preview-icon"
                                         ng-class="{'preview-icon-small': !showDetailDialog, 'preview-icon-big': showDetailDialog}">
                                </a>
                            </div>

                            <div layout="column" layout-align="start start" layout-fill layout-padding>

                                <div class="result-dialog-text" layout="column" layout-align="center start">
                                    <div class="result-dialog-header" layout="column" layout-align="center start">
                                        <a href="{{result.guid}}" target="_blank">
                                            {{result.title[0]}}
                                        </a>
                                    </div>
                                </div>

                                <div ng-show="showDetailDialog" layout-fill>
                                    <md-list class="detailed-list">
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Data Provider:</span>
                                            </div>
                                            <div flex>{{result.provider[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Language:</span>
                                            </div>
                                            <div flex>{{result.language[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Rights:</span>
                                            </div>
                                            <div flex><a href="{{result.rights[0]}}" target="_blank">{{result.rights[0]}}</a>
                                            </div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Score:</span>
                                            </div>
                                            <div flex>{{result.score}}</div>
                                        </md-list-item>

                                    </md-list>
                                </div>
                            </div>
                            <md-divider ng-show="!$last"></md-divider>
                        </md-list-item>
                    </md-list>
                </md-content>
            </md-tab>

            <md-tab label="Image Results">
                <md-content>
                    <md-grid-list md-cols="6" md-row-height="1:1" md-gutter="5px">
                        <md-grid-tile
                                ng-repeat="result in results | resultFilter: {'IMAGE': true, '3D': true} | orderBy: '-score'">
                            <a href="{{result.guid}}" target="_blank">
                                <img ng-src="{{result.edmPreview[0] || imageFallback}}" class="image-result">


                                <md-grid-tile-footer>
                                    <div>{{result.title[0]}}</div>
                                </md-grid-tile-footer>
                            </a>
                        </md-grid-tile>
                    </md-grid-list>
                </md-content>
            </md-tab>

            <md-tab label="Audio and Video Results">
                <md-content>
                    <md-list>
                        <md-list-item ng-repeat="result in results | resultFilter: {'VIDEO': true, 'SOUND': true} | orderBy: '-score'" ng-mouseleave="showDetailDialog = false">
                            <div class="result-image-container" layout="row" layout-align="start center" ng-mouseenter="showDetailDialog = true"
                                 ng-class="{'result-image-container-small': !showDetailDialog, 'result-image-container-big': showDetailDialog}">
                                <a href="{{result.guid}}" target="_blank" >
                                    <img ng-src="{{result.edmPreview[0] || videoFallback}}" class="preview-icon"
                                         ng-class="{'preview-icon-small': !showDetailDialog, 'preview-icon-big': showDetailDialog}">
                                </a>
                            </div>

                            <div layout="column" layout-align="start start" layout-fill layout-padding>

                                <div class="" layout="column" layout-align="center start">
                                    <div class="result-dialog-text" layout="column" layout-align="center start">
                                        <a href="{{result.guid}}" target="_blank">
                                            {{result.title[0]}}
                                        </a>
                                    </div>
                                </div>

                                <div ng-show="showDetailDialog" layout-fill>
                                    <md-list class="detailed-list">
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Data Provider:</span>
                                            </div>
                                            <div flex>{{result.provider[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Language:</span>
                                            </div>
                                            <div flex>{{result.language[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Rights:</span>
                                            </div>
                                            <div flex><a href="{{result.rights[0]}}" target="_blank">{{result.rights[0]}}</a>
                                            </div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Score:</span>
                                            </div>
                                            <div flex>{{result.score}}</div>
                                        </md-list-item>

                                    </md-list>
                                </div>
                            </div>
                            <md-divider ng-show="!$last"></md-divider>
                        </md-list-item>
                    </md-list>
                </md-content>
            </md-tab>
        </md-tabs>
    </md-content>


    <div class="md-actions" layout="row">
        <md-button class="md-primary" ng-click="hide()">
            Close
        </md-button>
    </div>

</md-dialog><commit_msg>added type attribute to av results<commit_after><md-dialog aria-label="Result dialog">
    <md-content>
        <md-tabs md-selected="selectedTab" style="min-width: 1000px; min-height: 400px;">
            <md-tab label="Text Results">
                <md-content>
                    <md-list>
                        <md-list-item ng-repeat="result in results | resultFilter: {'TEXT': true} | orderBy: '-score'" ng-mouseleave="showDetailDialog = false">
                            <div class="result-image-container" layout="row" layout-align="start center" ng-mouseenter="showDetailDialog = true"
                                 ng-class="{'result-image-container-small': !showDetailDialog, 'result-image-container-big': showDetailDialog}">
                                <a href="{{result.guid}}" target="_blank" >
                                    <img ng-src="{{result.edmPreview[0] || textFallback}}" class="preview-icon"
                                         ng-class="{'preview-icon-small': !showDetailDialog, 'preview-icon-big': showDetailDialog}">
                                </a>
                            </div>

                            <div layout="column" layout-align="start start" layout-fill layout-padding>

                                <div class="result-dialog-text" layout="column" layout-align="center start">
                                    <div class="result-dialog-header" layout="column" layout-align="center start">
                                        <a href="{{result.guid}}" target="_blank">
                                            {{result.title[0]}}
                                        </a>
                                    </div>
                                </div>

                                <div ng-show="showDetailDialog" layout-fill>
                                    <md-list class="detailed-list">
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Data Provider:</span>
                                            </div>
                                            <div flex>{{result.provider[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Language:</span>
                                            </div>
                                            <div flex>{{result.language[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Rights:</span>
                                            </div>
                                            <div flex><a href="{{result.rights[0]}}" target="_blank">{{result.rights[0]}}</a>
                                            </div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Score:</span>
                                            </div>
                                            <div flex>{{result.score}}</div>
                                        </md-list-item>

                                    </md-list>
                                </div>
                            </div>
                            <md-divider ng-show="!$last"></md-divider>
                        </md-list-item>
                    </md-list>
                </md-content>
            </md-tab>

            <md-tab label="Image Results">
                <md-content>
                    <md-grid-list md-cols="6" md-row-height="1:1" md-gutter="5px">
                        <md-grid-tile
                                ng-repeat="result in results | resultFilter: {'IMAGE': true, '3D': true} | orderBy: '-score'">
                            <a href="{{result.guid}}" target="_blank">
                                <img ng-src="{{result.edmPreview[0] || imageFallback}}" class="image-result">


                                <md-grid-tile-footer>
                                    <div>{{result.title[0]}}</div>
                                </md-grid-tile-footer>
                            </a>
                        </md-grid-tile>
                    </md-grid-list>
                </md-content>
            </md-tab>

            <md-tab label="Audio and Video Results">
                <md-content>
                    <md-list>
                        <md-list-item ng-repeat="result in results | resultFilter: {'VIDEO': true, 'SOUND': true} | orderBy: '-score'" ng-mouseleave="showDetailDialog = false">
                            <div class="result-image-container" layout="row" layout-align="start center" ng-mouseenter="showDetailDialog = true"
                                 ng-class="{'result-image-container-small': !showDetailDialog, 'result-image-container-big': showDetailDialog}">
                                <a href="{{result.guid}}" target="_blank" >
                                    <img ng-src="{{result.edmPreview[0] || videoFallback}}" class="preview-icon"
                                         ng-class="{'preview-icon-small': !showDetailDialog, 'preview-icon-big': showDetailDialog}">
                                </a>
                            </div>

                            <div layout="column" layout-align="start start" layout-fill layout-padding>

                                <div class="" layout="column" layout-align="center start">
                                    <div class="result-dialog-text" layout="column" layout-align="center start">
                                        <a href="{{result.guid}}" target="_blank">
                                            {{result.title[0]}}
                                        </a>
                                    </div>
                                </div>

                                <div ng-show="showDetailDialog" layout-fill>
                                    <md-list class="detailed-list">
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Type:</span>
                                            </div>
                                            <div flex>{{result.type}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Data Provider:</span>
                                            </div>
                                            <div flex>{{result.provider[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Language:</span>
                                            </div>
                                            <div flex>{{result.language[0]}}</div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Rights:</span>
                                            </div>
                                            <div flex><a href="{{result.rights[0]}}" target="_blank">{{result.rights[0]}}</a>
                                            </div>
                                        </md-list-item>
                                        <md-list-item class="detailed-item" layout="row" layout-align="start center">
                                            <div flex="25" layout-align="start start">
                                                <span class="name">Score:</span>
                                            </div>
                                            <div flex>{{result.score}}</div>
                                        </md-list-item>

                                    </md-list>
                                </div>
                            </div>
                            <md-divider ng-show="!$last"></md-divider>
                        </md-list-item>
                    </md-list>
                </md-content>
            </md-tab>
        </md-tabs>
    </md-content>


    <div class="md-actions" layout="row">
        <md-button class="md-primary" ng-click="hide()">
            Close
        </md-button>
    </div>

</md-dialog>
{'fraction_non_alphanumeric': 0.12512501973995893, 'fraction_numerical': 0.004527030583776385, 'mean_word_length': 0.8620013721454474, 'pattern_counts': {'":': 0, '<': 305, '<?xml version=': 0, '>': 305, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 244, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2387515', 'n_tokens_mistral': 3987, 'n_tokens_neox': 3787, 'n_words': 703}