<commit_before>import {MediaType} from "../../media/media-type.model";
import {WeightFunction} from "../weighting/weight-function.interface";
import {DefaultWeightFunction} from "../weighting/default-weight-function.model";
import {MediaObjectScoreContainer} from "./media-object-score-container.model";
import {SegmentScoreContainer} from "./segment-score-container.model";
import {Feature} from "../feature.model";
import {ObjectQueryResult} from "../../messages/interfaces/query-result-object.interface";
import {SegmentQueryResult} from "../../messages/interfaces/query-result-segment.interface";
import {SimilarityQueryResult} from "../../messages/interfaces/query-result-similarty.interface";
import {isUndefined} from "util";
import {Subject} from "rxjs/Subject";

export class ResultsContainer extends Subject<boolean> {
    /**
     * Map of all MediaTypes that have been returned by the current query. Empty map indicates, that no
     * results have been returned yet OR that no query is running.
     *
     * Boolean indicates whether the query type is active (i.e. should be returned) or inactive (i.e. should
     * be filtered).
     */
    private _mediatypes: Map<MediaType,boolean> = new Map();<commit_msg>FIXED: Removed erroneous import<commit_after>import {MediaType} from "../../media/media-type.model";
import {WeightFunction} from "../weighting/weight-function.interface";
import {DefaultWeightFunction} from "../weighting/default-weight-function.model";
import {MediaObjectScoreContainer} from "./media-object-score-container.model";
import {SegmentScoreContainer} from "./segment-score-container.model";
import {Feature} from "../feature.model";
import {ObjectQueryResult} from "../../messages/interfaces/query-result-object.interface";
import {SegmentQueryResult} from "../../messages/interfaces/query-result-segment.interface";
import {SimilarityQueryResult} from "../../messages/interfaces/query-result-similarty.interface";
import {Subject} from "rxjs/Subject";

export class ResultsContainer extends Subject<boolean> {
    /**
     * Map of all MediaTypes that have been returned by the current query. Empty map indicates, that no
     * results have been returned yet OR that no query is running.
     *
     * Boolean indicates whether the query type is active (i.e. should be returned) or inactive (i.e. should
     * be filtered).
     */
    private _mediatypes: Map<MediaType,boolean> = new Map();
{'fraction_non_alphanumeric': 0.1314708299096138, 'fraction_numerical': 0.0, 'mean_word_length': 4.363436123348017, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6815527', 'n_tokens_mistral': 630, 'n_tokens_neox': 629, 'n_words': 198}