<commit_before>export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', function(Rest, $q, GetBasePath, Wait, ProcessErrors, $log) {
    var that = this;
    // parse the field config object to return
    // one of the searchTypes (for the left dropdown)
    this.buildType = function (field, key, id) {
        var obj = {};
        // build the value (key)
        var value;
        console.log(field)
        if (field.searchField && field.filterBySearchField === true){
            value = field.searchField;
        }
        else if (field.sourceModel && field.sourceField) {
            console.log('condition met 2')
            value = field.sourceModel + '__' + field.sourceField;
            obj.related = true;
        } else if (typeof(field.key) === String) {
            value = field.key;
        } else {
            value = key;
        }

        // build the label
        var label = field.searchLabel || field.label;

        // build the search type
        var type, typeOptions;
        if (field.searchType === 'select') {
            type = 'select';
            typeOptions = field.searchOptions || [];
        } else if (field.searchType === 'boolean') {
            type = 'select';
            typeOptions = field.typeOptions || [{label: "Yes", value: true},
                {label: "No", value: false}];
        } else {
            type = 'text';
        }

        obj.id = id;
        obj.value = value;
        obj.label = label;
        obj.type = type;
        obj.basePath = field.basePath || null;<commit_msg>Removing console.logs<commit_after>export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', function(Rest, $q, GetBasePath, Wait, ProcessErrors, $log) {
    var that = this;
    // parse the field config object to return
    // one of the searchTypes (for the left dropdown)
    this.buildType = function (field, key, id) {
        var obj = {};
        // build the value (key)
        var value;
        if (field.searchField && field.filterBySearchField === true){
            value = field.searchField;
        }
        else if (field.sourceModel && field.sourceField) {
            value = field.sourceModel + '__' + field.sourceField;
            obj.related = true;
        } else if (typeof(field.key) === String) {
            value = field.key;
        } else {
            value = key;
        }

        // build the label
        var label = field.searchLabel || field.label;

        // build the search type
        var type, typeOptions;
        if (field.searchType === 'select') {
            type = 'select';
            typeOptions = field.searchOptions || [];
        } else if (field.searchType === 'boolean') {
            type = 'select';
            typeOptions = field.typeOptions || [{label: "Yes", value: true},
                {label: "No", value: false}];
        } else {
            type = 'text';
        }

        obj.id = id;
        obj.value = value;
        obj.label = label;
        obj.type = type;
        obj.basePath = field.basePath || null;
{'fraction_non_alphanumeric': 0.13344155844155844, 'fraction_numerical': 0.0003246753246753247, 'mean_word_length': 1.7932910244786944, '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': '1552181', 'n_tokens_mistral': 854, 'n_tokens_neox': 841, 'n_words': 244}