<commit_before>import Ember from 'ember';

const previewAttributes = {
    localitySelector: [{
        key: 'localityName',
        title: 'component.locality-selector.locality-name',
    }, {
        key: 'geography.displayName',
        title: 'definitions.geography',
    }, {
        key: 'uncertaintyRadius',
        title: 'component.locality-selector.uncertainty-radius',
    }, {
        key: 'location',
        title: 'definitions.coordinates',
    }],
    collectingEvent: [{
        key: 'givenName',
        title: 'component.collecting-event.given-name',
    }, {
        key: 'startDate',
        title: 'fields.labels.collecting-event.start-date.name',
        date: {
            precision: 'startDatePrecision',
        },
    }, {
        key: 'endDate',
        title: 'fields.labels.collecting-event.end-date.name',
        date: {
            precision: 'endDatePrecision',
        },
    }, {
        key: 'method',
        title: 'fields.labels.collecting-event.method',
    }, {
        key: 'locality.localityName',
        title: 'component.locality-selector.locality-name',
    }, {
        key: 'locality.geography.displayName',
        title: 'definitions.geography',
    }, {
        key: 'locality.location',
        title: 'definitions.coordinates',
    }, {
        arrayKey: 'collectors',
        class: 'label label-default',
        title: 'fields.labels.collector',
        key: 'agent.fullName',
    }],
};

const CONFIGURATIONS = {
    1: {
        type: 'zoology-mammals',
        components: {
            'form-component-basic-data': 'form-component/basic-data',
            'form-component-determination': 'form-component/determination',
            'form-component-collecting-event': 'form-component/collecting-event',
            'form-component-preparation': 'form-component/preparation',
        },
        component: {
            collectingEvent: {
                enableCreate: true,
                preview: {
                    attributes: previewAttributes.collectingEvent,
                },
            },
            locality: {
                hide: {
                    elevation: true,
                    paleoContext: true,
                },
            },
            localitySelector: {
                preview: {
                    attributes: previewAttributes.localitySelector,
                },
            },
        },
    },
    2: {
        type: 'zoology-entomology',
        components: {
            'form-component-basic-data': 'form-component/basic-data',
            'form-component-determination': 'form-component/determination',
            'form-component-collecting-event': 'form-component/collecting-event',
            'form-component-preparation': 'form-component/preparation',
        },
        component: {
            determination: {
                hide: {
                    confidence: true,
                },
            },
            locality: {
                hide: {
                    paleoContext: true,
                },
            },
            localitySelector: {
                preview: {
                    attributes: previewAttributes.localitySelector,
                },
            },
            collectingEvent: {
                enableCreate: true,
                preview: {
                    attributes: previewAttributes.collectingEvent,
                },
            },
            singlePreparation: {
                hide: {
                    partCount: true,
                },
            },
        },<commit_msg>Change method for confidence for entomology<commit_after>import Ember from 'ember';

const previewAttributes = {
    localitySelector: [{
        key: 'localityName',
        title: 'component.locality-selector.locality-name',
    }, {
        key: 'geography.displayName',
        title: 'definitions.geography',
    }, {
        key: 'uncertaintyRadius',
        title: 'component.locality-selector.uncertainty-radius',
    }, {
        key: 'location',
        title: 'definitions.coordinates',
    }],
    collectingEvent: [{
        key: 'givenName',
        title: 'component.collecting-event.given-name',
    }, {
        key: 'startDate',
        title: 'fields.labels.collecting-event.start-date.name',
        date: {
            precision: 'startDatePrecision',
        },
    }, {
        key: 'endDate',
        title: 'fields.labels.collecting-event.end-date.name',
        date: {
            precision: 'endDatePrecision',
        },
    }, {
        key: 'method',
        title: 'fields.labels.collecting-event.method',
    }, {
        key: 'locality.localityName',
        title: 'component.locality-selector.locality-name',
    }, {
        key: 'locality.geography.displayName',
        title: 'definitions.geography',
    }, {
        key: 'locality.location',
        title: 'definitions.coordinates',
    }, {
        arrayKey: 'collectors',
        class: 'label label-default',
        title: 'fields.labels.collector',
        key: 'agent.fullName',
    }],
};

const CONFIGURATIONS = {
    1: {
        type: 'zoology-mammals',
        components: {
            'form-component-basic-data': 'form-component/basic-data',
            'form-component-determination': 'form-component/determination',
            'form-component-collecting-event': 'form-component/collecting-event',
            'form-component-preparation': 'form-component/preparation',
        },
        component: {
            collectingEvent: {
                enableCreate: true,
                preview: {
                    attributes: previewAttributes.collectingEvent,
                },
            },
            locality: {
                hide: {
                    elevation: true,
                    paleoContext: true,
                },
            },
            localitySelector: {
                preview: {
                    attributes: previewAttributes.localitySelector,
                },
            },
        },
    },
    2: {
        type: 'zoology-entomology',
        components: {
            'form-component-basic-data': 'form-component/basic-data',
            'form-component-determination': 'form-component/determination',
            'form-component-collecting-event': 'form-component/collecting-event',
            'form-component-preparation': 'form-component/preparation',
        },
        component: {
            determination: {
                hide: {
                    method: true,
                },
            },
            locality: {
                hide: {
                    paleoContext: true,
                },
            },
            localitySelector: {
                preview: {
                    attributes: previewAttributes.localitySelector,
                },
            },
            collectingEvent: {
                enableCreate: true,
                preview: {
                    attributes: previewAttributes.collectingEvent,
                },
            },
            singlePreparation: {
                hide: {
                    partCount: true,
                },
            },
        },
{'fraction_non_alphanumeric': 0.12026913372582002, 'fraction_numerical': 0.000560695262125035, 'mean_word_length': 1.4235733695652173, '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': '3203257', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1804, 'n_words': 271}