<commit_before>define([
    'jquery',
    'knockout',
    'underscore',
    'arches',
    'dropzone',
    'uuid',
    'viewmodels/file-widget',
    'bindings/dropzone'
], function($, ko, _, arches, Dropzone, uuid, FileWidgetViewModel) {
    /**
     * A viewmodel used for viewing and uploading external resource data 
     *
     * @constructor
     * @name ExternalResourceDataPreviewViewModel
     *
     * @param  {string} params - a configuration object
     */


    OBSERVATIONS_GRAPH_ID = "d41455df-033e-11eb-9978-02e99e44e93e";

    OBSERVATIONS_CSV_COLUMN_NAME_TO_NODE_IDS = {
        'ObservationDate*': { 
            node_id: "d7628ae4-3f2f-11eb-a2e2-73ab08a728ea",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
            visible: true,
        }, 
        'SpeciesName*': { 
            node_id: "fca0475a-04fc-11eb-9978-02e99e44e93e",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
            visible: true,
         }, 
         'ObserverName*': { 
            node_id: "0da1fe5e-04fd-11eb-9978-02e99e44e93e",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
         }, 
        'ObserverContact*': { 
            node_id: "12bd77bb-04fd-11eb-9978-02e99e44e93e",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
        }, 
        'ObserverAffiliation': { 
            node_id: "21f08600-04fd-11eb-9978-02e99e44e93e",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
        }, 
        'Detection Status': { 
            node_id: "abdaf060-37ef-11eb-a206-acde48001122",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
         }, 
        'SpDetermine': { 
            node_id: ""
         }, 
        'ID_Confidence': { 
            node_id: ""
         }, 
        'NoPlantsObsvd*': { 
            node_id: "347a1450-3be2-11eb-8a94-acde48001122",
            nodegroup_id: "347a10fe-3be2-11eb-8a94-acde48001122",
         }, 
        'Phenology': { 
            node_id: "347a1388-3be2-11eb-8a94-acde48001122",
            nodegroup_id: "347a10fe-3be2-11eb-8a94-acde48001122",
         }, 
        'Collection': { 
            node_id: ""
         }, 
        'NoAnimalsObs': { 
            node_id: "fd0dd8bc-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "fd0dd2a4-3be1-11eb-8a94-acde48001122",
         }, 
        'AnimalAgeClass': { 
            node_id: "fd0dd812-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "fd0dd2a4-3be1-11eb-8a94-acde48001122",
         }, 
        'AnimalSiteUse*': { 
            node_id: "fd0dd6b4-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "fd0dd2a4-3be1-11eb-8a94-acde48001122",
         }, 
        'AnimalBehavior*': { 
            node_id: "fd0dd5c4-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "fd0dd2a4-3be1-11eb-8a94-acde48001122",
        }, 
        'AnimalDetectionMethod*': { 
            node_id: "fd0dd768-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "fd0dd2a4-3be1-11eb-8a94-acde48001122",
         }, 
        'LocationDescription': { 
            node_id: "e9f6767e-033f-11eb-9978-02e99e44e93e",
            nodegroup_id: "b959d86c-033f-11eb-9978-02e99e44e93e",
         }, 
        'X_Coordinate*': {
            flag: 'format_location', 
            args: ['x'], 
            node_id: 'df79c02a-033f-11eb-9978-02e99e44e93e',
            nodegroup_id: "b959d86c-033f-11eb-9978-02e99e44e93e",
        }, 
        'Y_Coordinate*': {
            flag: 'format_location', 
            args: ['y'], 
            node_id: 'df79c02a-033f-11eb-9978-02e99e44e93e',
            nodegroup_id: "b959d86c-033f-11eb-9978-02e99e44e93e",
        }, 
        'CoordSource*': { 
            node_id: "fc55d878-033f-11eb-9978-02e99e44e93e",
            nodegroup_id: "b959d86c-033f-11eb-9978-02e99e44e93e",
         }, 
        'CoordAccuracy': { 
            node_id: "084ba470-050a-11eb-9978-02e99e44e93e",
            nodegroup_id: "b959d86c-033f-11eb-9978-02e99e44e93e",
         }, 
        'SurveyEffort*': { 
            node_id: "cd7dac4e-3be1-11eb-8a94-acde48001122",
            nodegroup_id: "f56cd124-04fc-11eb-9978-02e99e44e93e",
         }, 
        'HabitatDesc': { 
            node_id: "a9cb687e-0340-11eb-9978-02e99e44e93e",
            nodegroup_id: "9b047be6-0340-11eb-9978-02e99e44e93e",
         }, 
        'SiteQuality': { 
            node_id: "b08729f0-0340-11eb-9978-02e99e44e93e",
            nodegroup_id: "9b047be6-0340-11eb-9978-02e99e44e93e",
         }, 
        'LandUse': { 
            node_id: "b94ac2ae-0340-11eb-9978-02e99e44e93e",
            nodegroup_id: "9b047be6-0340-11eb-9978-02e99e44e93e",
         }, 
        'Disturbances': { 
            node_id: "bffb3b10-0340-11eb-9978-02e99e44e93e",
            nodegroup_id: "9b047be6-0340-11eb-9978-02e99e44e93e",
        }, 
        'Threats': { 
            node_id: "c8b1ce90-0340-11eb-9978-02e99e44e93e",
            nodegroup_id: "9b047be6-0340-11eb-9978-02e99e44e93e",
         }, 
        'Comments': { 
            node_id: "40417046-0341-11eb-9978-02e99e44e93e",
            nodegroup_id: "40417046-0341-11eb-9978-02e99e44e93e",
        }
    }

<commit_msg>move CNDDB json to CNDDB #7087<commit_after>define([
    'jquery',
    'knockout',
    'underscore',
    'arches',
    'dropzone',
    'uuid',
    'viewmodels/file-widget',
    'bindings/dropzone'
], function($, ko, _, arches, Dropzone, uuid, FileWidgetViewModel) {
    /**
     * A viewmodel used for viewing and uploading external resource data 
     *
     * @constructor
     * @name ExternalResourceDataPreviewViewModel
     *
     * @param  {string} params - a configuration object
     */
{'fraction_non_alphanumeric': 0.13126323218066338, 'fraction_numerical': 0.18860268172194777, 'mean_word_length': 1.9541427826993225, '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': '4554789', 'n_tokens_mistral': 2900, 'n_tokens_neox': 2284, 'n_words': 220}