<commit_before>/**
 * This is the default configuration file for the Superdesk application. By default,
 * the app will use the file with the name 'superdesk.config.js' found in the current
 * working directory, but other files may also be specified using relative paths with
 * the SUPERDESK_CONFIG environment variable or the grunt --config flag.
 */
module.exports = function(grunt) {
    return {
        bodyClass: {
            'indent-article': 1
        },

        defaultTimezone: 'Europe/Oslo',

        shortTimeFormat: 'HH:mm, DD.MM.YYYY',
        shortDateFormat: 'HH:mm, DD.MM.YYYY',
        shortWeekFormat: 'HH:mm, DD.MM.YYYY',

        startingDay: '1',

        view: {
            timeformat: 'HH:mm',
            dateformat: 'DD.MM.YYYY'
        },

        features: {
            preview: 1,
            alchemy: 1,
            customAuthoringTopbar: true,
            useTansaProofing: true,
            editFeaturedImage: 0,
            hideCreatePackage: true,
            customMonitoringWidget: true,
            scanpixSearchShortcut: true
        },

        user: {
            'sign_off_mapping': 'email'
        },

        monitoring: {
            'scheduled': true
        },

        workspace: {
            ingest: 0,
            content: 0,
            tasks: 0
        },

        ui: {
            publishEmbargo: false,
            publishSendAdnContinue: false,
            italicAbstract: false
        },

        search_cvs: [
            {id: 'anpa_category', name:'Service', field: 'anpa_category', list: 'categories'},
            {id: 'category', name:'Category', field: 'subject', list: 'category'},
            {id: 'genre', name:'Genre', field: 'genre', list: 'genre_custom'},
            {id: 'subject', name:'Subject', field: 'subject', list: 'subject_custom'},
            {id: 'priority', name:'Priority', field: 'priority', list: 'priority'},
            {id: 'urgency', name:'Urgency', field: 'urgency', list: 'urgency'}
        ],

        search: {
            'slugline': 1,
            'headline': 1,
            'unique_name': 1,
            'story_text': 1,
            'byline': 1,
            'keywords': 0,
            'creator': 1,
            'from_desk': 1,
            'to_desk': 1
        },

        list: {
            priority: ['urgency'],
            firstLine: [
                'slugline',
                'takekey',
                'highlights',
                'headline',
                'provider',
                'update',
                'updated',
                'state',
                'versioncreated'
            ]
        },

        item_profile: {
            change_profile: 1
        },

        editor: {
            imageDragging: true
        },

        defaultRoute: '/workspace/monitoring',

        langOverride: {
            'de': {'My Profile': 'DE - My profile'}
        }
    };
};<commit_msg>chore(NTB config): add default required media metatadata fields<commit_after>/**
 * This is the default configuration file for the Superdesk application. By default,
 * the app will use the file with the name 'superdesk.config.js' found in the current
 * working directory, but other files may also be specified using relative paths with
 * the SUPERDESK_CONFIG environment variable or the grunt --config flag.
 */
module.exports = function(grunt) {
    return {
        bodyClass: {
            'indent-article': 1
        },

        defaultTimezone: 'Europe/Oslo',

        shortTimeFormat: 'HH:mm, DD.MM.YYYY',
        shortDateFormat: 'HH:mm, DD.MM.YYYY',
        shortWeekFormat: 'HH:mm, DD.MM.YYYY',

        startingDay: '1',

        view: {
            timeformat: 'HH:mm',
            dateformat: 'DD.MM.YYYY'
        },

        features: {
            preview: 1,
            alchemy: 1,
            customAuthoringTopbar: true,
            useTansaProofing: true,
            editFeaturedImage: 0,
            hideCreatePackage: true,
            customMonitoringWidget: true,
            scanpixSearchShortcut: true
        },

        user: {
            'sign_off_mapping': 'email'
        },

        monitoring: {
            'scheduled': true
        },

        workspace: {
            ingest: 0,
            content: 0,
            tasks: 0
        },

        ui: {
            publishEmbargo: false,
            publishSendAdnContinue: false,
            italicAbstract: false
        },

        search_cvs: [
            {id: 'anpa_category', name:'Service', field: 'anpa_category', list: 'categories'},
            {id: 'category', name:'Category', field: 'subject', list: 'category'},
            {id: 'genre', name:'Genre', field: 'genre', list: 'genre_custom'},
            {id: 'subject', name:'Subject', field: 'subject', list: 'subject_custom'},
            {id: 'priority', name:'Priority', field: 'priority', list: 'priority'},
            {id: 'urgency', name:'Urgency', field: 'urgency', list: 'urgency'}
        ],

        search: {
            'slugline': 1,
            'headline': 1,
            'unique_name': 1,
            'story_text': 1,
            'byline': 1,
            'keywords': 0,
            'creator': 1,
            'from_desk': 1,
            'to_desk': 1
        },

        list: {
            priority: ['urgency'],
            firstLine: [
                'slugline',
                'takekey',
                'highlights',
                'headline',
                'provider',
                'update',
                'updated',
                'state',
                'versioncreated'
            ]
        },

        item_profile: {
            change_profile: 1
        },

        editor: {
            imageDragging: true
        },

        defaultRoute: '/workspace/monitoring',

        langOverride: {
            'de': {'My Profile': 'DE - My profile'}
        },

        requiredMediaMetadata: ['headline', 'description_text', 'alt_text']
    };
};
{'fraction_non_alphanumeric': 0.12348382749326145, 'fraction_numerical': 0.006064690026954178, 'mean_word_length': 1.516744383213226, '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': '4196329', 'n_tokens_mistral': 1714, 'n_tokens_neox': 1628, 'n_words': 411}