<commit_before>import {QueryTermInterface} from "./interfaces/query-term.interface";
import {QueryTermType} from "./interfaces/query-term-type.interface";


export class ImageQueryTerm implements QueryTermInterface {

    /** Base64 encoded image data. */
    public data : string;

    /** The active categories for the findSimilar-term. */
    public categories : string[] = ['globalcolor', 'localcolor'];


    /** Type of findSimilar-term. Defaults to 'IMAGE'. */
    public readonly type: QueryTermType = "IMAGE";

    /**
     * Updates the feature-categories for this ImageQueryTerm based on a linear, numerical setting.
     *
     * @param setting Linear, numerical setting value.
     */
    public setting(setting : number) {
        switch (setting) {
            case 0:
                this.categories = ['globalcolor', 'quantized'];
                break;
            case 1:
                this.categories = ['globalcolor', 'localcolor'];
                break;
            case 2:
                this.categories = ['globalcolor', 'localcolor', 'edge'];
                break;
            case 3:
                this.categories = ['globalcolor', 'localcolor', 'localfeatures', 'edge'];
                break;
            case 4:
                this.categories = ['localcolor', 'localfeatures', 'edge'];
                break;
            case 100:
                this.categories = ['lightfield'];
                break;
            default:
                this.categories = ['globalcolor', 'localcolor'];
                break;
        }
    }
}<commit_msg>CHANGED: Updated default query categories.<commit_after>import {QueryTermInterface} from "./interfaces/query-term.interface";
import {QueryTermType} from "./interfaces/query-term-type.interface";


export class ImageQueryTerm implements QueryTermInterface {

    /** Base64 encoded image data. */
    public data : string;

    /** The active categories for the findSimilar-term. */
    public categories : string[] = ['globalcolor', 'localcolor', 'quantized', 'edge'];


    /** Type of findSimilar-term. Defaults to 'IMAGE'. */
    public readonly type: QueryTermType = "IMAGE";

    /**
     * Updates the feature-categories for this ImageQueryTerm based on a linear, numerical setting.
     *
     * @param setting Linear, numerical setting value.
     */
    public setting(setting : number) {
        switch (setting) {
            case 0:
                this.categories = ['globalcolor', 'localcolor'];
                break;
            case 1:
                this.categories = ['globalcolor', 'localcolor', 'quantized'];
                break;
            case 2:
                this.categories = ['globalcolor', 'localcolor', 'quantized', 'edge'];
                break;
            case 3:
                this.categories = ['quantized', 'localcolor', 'localfeatures', 'edge'];
                break;
            case 4:
                this.categories = ['localcolor', 'localfeatures', 'edge'];
                break;
            case 100:
                this.categories = ['lightfield'];
                break;
            default:
                this.categories = ['globalcolor', 'localcolor', 'quantized', 'edge'];
                break;
        }
    }
}
{'fraction_non_alphanumeric': 0.11923786109403811, 'fraction_numerical': 0.006146281499692686, 'mean_word_length': 1.8805309734513274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6536921', 'n_tokens_mistral': 836, 'n_tokens_neox': 770, 'n_words': 228}