<commit_before>var _ = require('underscore');
var camshaftReference = require('camshaft-reference');
var latestCamshaftReference = camshaftReference.getVersion('latest');
var GeneratedAnalysisOptionModel = require('./analysis-option-models/generated-analysis-option-model');
var MergeAnalysisOptionModel = require('./analysis-option-models/merge-analysis-option-model');

/**
 * Analysis definitions, organized in buckets per top-level category
 * @param {Bool} [alsoGenerateFromCamshaftReference = false]
 */
module.exports = function (alsoGenerateFromCamshaftReference) {
  var categories = {
    create_clean: {
      title: _t('analysis-category.create-clean'),
      analyses: [
        {
          nodeAttrs: {
            type: 'georeference-long-lat'
          },
          title: _t('components.modals.add-analysis.option-types.georeference.title'),
          desc: _t('components.modals.add-analysis.option-types.georeference.desc')
        }, {
          nodeAttrs: {
            type: 'data-observatory-measure'
          },
          title: _t('components.modals.add-analysis.option-types.data-observatory-measure.title'),
          desc: _t('components.modals.add-analysis.option-types.data-observatory-measure.desc')
        }, {
          nodeAttrs: {
            type: 'merge'
          },
          Model: MergeAnalysisOptionModel,
          title: _t('components.modals.add-analysis.option-types.merge.title'),
          desc: _t('components.modals.add-analysis.option-types.merge.desc')
        }
      ]
    },

    data_transformation: {
      title: _t('analysis-category.data-transformation'),
      analyses: [
        {
          nodeAttrs: {
            type: 'centroid'
          },
          title: _t('components.modals.add-analysis.option-types.centroid.title'),
          desc: _t('components.modals.add-analysis.option-types.centroid.desc')
        }, {
          nodeAttrs: {
            type: 'buffer',
            radius: 100
          },
          title: _t('components.modals.add-analysis.option-types.area-of-influence.title'),
          desc: _t('components.modals.add-analysis.option-types.area-of-influence.desc')
        }, {
          nodeAttrs: {
            type: 'intersection'
          },
          title: _t('components.modals.add-analysis.option-types.intersection.title'),
          desc: _t('components.modals.add-analysis.option-types.intersection.desc')
        }
      ]
    },

    analyze_predict: {
      title: _t('analysis-category.analyze-predict'),
      analyses: [
        {
          nodeAttrs: {
            type: 'filter-by-node-column'
          },
          title: _t('components.modals.add-analysis.option-types.filter-by-node-column.title'),
          desc: _t('components.modals.add-analysis.option-types.filter-by-node-column.desc')
        }, {
          nodeAttrs: {
            type: 'filter-range'
          },
          title: _t('components.modals.add-analysis.option-types.filter.title'),
          desc: _t('components.modals.add-analysis.option-types.filter.desc')
        }, {
          nodeAttrs: {
            type: 'sampling'
          },
          title: _t('components.modals.add-analysis.option-types.sampling.title'),
          desc: _t('components.modals.add-analysis.option-types.sampling.desc')
        }, {
          nodeAttrs: {
            type: 'kmeans'
          },
          title: _t('components.modals.add-analysis.option-types.kmeans.title'),
          desc: _t('components.modals.add-analysis.option-types.kmeans.desc')
        }, {
          nodeAttrs: {
            type: 'moran'
          },
          title: _t('components.modals.add-analysis.option-types.moran-cluster.title'),
          desc: _t('components.modals.add-analysis.option-types.moran-cluster.desc')
        }, {
          nodeAttrs: {
            type: 'spatial-markov-trend'
          },
          title: _t('components.modals.add-analysis.option-types.spatial-markov-trend.title'),
          desc: _t('components.modals.add-analysis.option-types.spatial-markov-trend.desc')
        }
      ]<commit_msg>found Link to layer method and moved<commit_after>var _ = require('underscore');
var camshaftReference = require('camshaft-reference');
var latestCamshaftReference = camshaftReference.getVersion('latest');
var GeneratedAnalysisOptionModel = require('./analysis-option-models/generated-analysis-option-model');
var MergeAnalysisOptionModel = require('./analysis-option-models/merge-analysis-option-model');

/**
 * Analysis definitions, organized in buckets per top-level category
 * @param {Bool} [alsoGenerateFromCamshaftReference = false]
 */
module.exports = function (alsoGenerateFromCamshaftReference) {
  var categories = {
    create_clean: {
      title: _t('analysis-category.create-clean'),
      analyses: [
        {
          nodeAttrs: {
            type: 'georeference-long-lat'
          },
          title: _t('components.modals.add-analysis.option-types.georeference.title'),
          desc: _t('components.modals.add-analysis.option-types.georeference.desc')
        }, {
          nodeAttrs: {
            type: 'data-observatory-measure'
          },
          title: _t('components.modals.add-analysis.option-types.data-observatory-measure.title'),
          desc: _t('components.modals.add-analysis.option-types.data-observatory-measure.desc')
        }, {
          nodeAttrs: {
            type: 'merge'
          },
          Model: MergeAnalysisOptionModel,
          title: _t('components.modals.add-analysis.option-types.merge.title'),
          desc: _t('components.modals.add-analysis.option-types.merge.desc')
        }, {
          nodeAttrs: {
            type: 'filter-by-node-column'
          },
          title: _t('components.modals.add-analysis.option-types.filter-by-node-column.title'),
          desc: _t('components.modals.add-analysis.option-types.filter-by-node-column.desc')
        }
      ]
    },

    data_transformation: {
      title: _t('analysis-category.data-transformation'),
      analyses: [
        {
          nodeAttrs: {
            type: 'centroid'
          },
          title: _t('components.modals.add-analysis.option-types.centroid.title'),
          desc: _t('components.modals.add-analysis.option-types.centroid.desc')
        }, {
          nodeAttrs: {
            type: 'buffer',
            radius: 100
          },
          title: _t('components.modals.add-analysis.option-types.area-of-influence.title'),
          desc: _t('components.modals.add-analysis.option-types.area-of-influence.desc')
        }, {
          nodeAttrs: {
            type: 'intersection'
          },
          title: _t('components.modals.add-analysis.option-types.intersection.title'),
          desc: _t('components.modals.add-analysis.option-types.intersection.desc')
        }
      ]
    },

    analyze_predict: {
      title: _t('analysis-category.analyze-predict'),
      analyses: [
        {
          nodeAttrs: {
            type: 'filter-range'
          },
          title: _t('components.modals.add-analysis.option-types.filter.title'),
          desc: _t('components.modals.add-analysis.option-types.filter.desc')
        }, {
          nodeAttrs: {
            type: 'sampling'
          },
          title: _t('components.modals.add-analysis.option-types.sampling.title'),
          desc: _t('components.modals.add-analysis.option-types.sampling.desc')
        }, {
          nodeAttrs: {
            type: 'kmeans'
          },
          title: _t('components.modals.add-analysis.option-types.kmeans.title'),
          desc: _t('components.modals.add-analysis.option-types.kmeans.desc')
        }, {
          nodeAttrs: {
            type: 'moran'
          },
          title: _t('components.modals.add-analysis.option-types.moran-cluster.title'),
          desc: _t('components.modals.add-analysis.option-types.moran-cluster.desc')
        }, {
          nodeAttrs: {
            type: 'spatial-markov-trend'
          },
          title: _t('components.modals.add-analysis.option-types.spatial-markov-trend.title'),
          desc: _t('components.modals.add-analysis.option-types.spatial-markov-trend.desc')
        }
      ]
{'fraction_non_alphanumeric': 0.13938134246240372, 'fraction_numerical': 0.0007335860129600196, 'mean_word_length': 2.184118333982094, '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': '5650236', 'n_tokens_mistral': 2439, 'n_tokens_neox': 2395, 'n_words': 268}