<commit_before>import {Injectable} from '@angular/core';
import {ConfigLoader} from '../../core/configuration/config-loader';
import {IdaiFieldConfigurationValidator} from './idai-field-configuration-validator';
import {ProjectConfiguration} from '../../core/configuration/project-configuration';
import {IdaiFieldPrePreprocessConfigurationValidator} from '../../core/configuration/idai-field-pre-preprocess-configuration-validator';
import {TypeDefinition} from '../../core/configuration/type-definition';
import {FieldDefinition} from '../../core/configuration/field-definition';


@Injectable()
/**
 * @author <NAME>
 * @author <NAME>
 */
export class IdaiFieldAppConfigurator {

    private defaultTypes = {
        Place: {
            fields: {
                hasGazId: {
                    inputType: 'unsignedInt'
                }
            }
        } as TypeDefinition,
        Operation: {
            fields: {},
            abstract: true
        } as TypeDefinition,
        Feature: {
            fields: {}
        } as TypeDefinition,
        Image: {
            fields: {
                height: {
                    editable: false,
                    label: 'Höhe'
                },
                width: {
                    editable: false,
                    label: 'Breite'
                },
                originalFilename: {
                    visible: false,
                    editable: false
                },
                // TODO Delete the fields 'filename' and 'hasFilename' as soon as existing data has been migrated.
                filename: {
                    visible: false,
                    editable: false
                },<commit_msg>Hardcode hasDating on Feature<commit_after>import {Injectable} from '@angular/core';
import {ConfigLoader} from '../../core/configuration/config-loader';
import {IdaiFieldConfigurationValidator} from './idai-field-configuration-validator';
import {ProjectConfiguration} from '../../core/configuration/project-configuration';
import {IdaiFieldPrePreprocessConfigurationValidator} from '../../core/configuration/idai-field-pre-preprocess-configuration-validator';
import {TypeDefinition} from '../../core/configuration/type-definition';
import {FieldDefinition} from '../../core/configuration/field-definition';


@Injectable()
/**
 * @author <NAME>
 * @author <NAME>
 */
export class IdaiFieldAppConfigurator {

    private defaultTypes = {
        Place: {
            fields: {
                hasGazId: {
                    inputType: 'unsignedInt'
                }
            }
        } as TypeDefinition,
        Operation: {
            fields: {},
            abstract: true
        } as TypeDefinition,
        Feature: {
            fields: {
                hasDating: {
                    inputType: "dating"
                }
            }
        } as TypeDefinition,
        Image: {
            fields: {
                height: {
                    editable: false,
                    label: 'Höhe'
                },
                width: {
                    editable: false,
                    label: 'Breite'
                },
                originalFilename: {
                    visible: false,
                    editable: false
                },
                // TODO Delete the fields 'filename' and 'hasFilename' as soon as existing data has been migrated.
                filename: {
                    visible: false,
                    editable: false
                },
{'fraction_non_alphanumeric': 0.106878908470722, 'fraction_numerical': 0.0, 'mean_word_length': 1.4712078651685394, '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': '666960', 'n_tokens_mistral': 835, 'n_tokens_neox': 807, 'n_words': 190}