<commit_before>import analysisKeys from 'constants/AnalysisConstants';

const analysisImageService = 'https://gis-gfw.wri.org/arcgis/rest/services/image_services/analysis/ImageServer';

const config = {
  map: {
    options: {
      navigationMode: 'css-transforms',
      force3DTransforms: true,
      // showAttribution: false,
      fadeOnZoom: true,
      slider: false,
      logo: false
    }
  },

  corsServers: [
    'gis-gfw.wri.org',
    'gis-potico.wri.org',
    'gis-treecover.wri.org',
    'api.globalforestwatch.org',
    'alpha.blueraster.io',
    'staging.blueraster.io',
    'stg.blueraster.com.s3.amazonaws.com',
    'production-api.globalforestwatch.org',
    'production-api.globalforestwatch.org/v1/ogr',
    'production-api.globalforestwatch.org/v1/ogr/convert',
    'api.resourcewatch.org',
    'gis.wri.org'
  ],

  urls: {
    metadataApi: 'https://gis-gfw.wri.org/metadata',
    metadataXmlEndpoint: (itemId) => `https://www.arcgis.com/sharing/rest/content/items/${itemId}/info/metadata/metadata.xml`,
    agolItemEndpoint: (itemId) => `https://www.arcgis.com/sharing/rest/content/items/${itemId}`,
    cartoMetaEndpoint: (cartoUser, cartoLayerId, cartoApiKey) => `https://${cartoUser}.carto.com/api/v1/viz/${cartoLayerId}?api_key=${cartoApiKey}`,
    cartoDataEndpoint: (cartoUser, queryString, cartoApiKey) => `//${cartoUser}.cartodb.com/api/v2/sql?format=TopoJSON&q=${queryString}&api_key=${cartoApiKey}`,
    cartoTemplateEndpoint: (cartoUser, cartoTemplateId, cartoApiKey) => `https://${cartoUser}.carto.com/api/v1/map/named/${cartoTemplateId}?api_key=${cartoApiKey}`,
    esriLegendService: 'https://gis-gfw.wri.org/arcgis/rest/services/legends/MapServer'
  },

  upload: {
    portal: 'https://www.arcgis.com/sharing/rest/content/features/generate',
    shapefileParams: (name, spatialReference, extentWidth, mapWidth) => {
      return {
        'name': name,
        'generalize': true,
        'targetSr': spatialReference,
        'maxRecordCount': 1000,
        'reducePrecision': true,
        'numberOfDigitsAfterDecimal': 0,
        'enforceInputFileSizeLimit': true,
        'enforceOutputJsonSizeLimit': true,
        'maxAllowableOffset': extentWidth / mapWidth
      };
    },
    shapefileContent: (params, filetype) => {
      return {
        'publishParameters': params,
        'callback.html': 'textarea',
        'filetype': filetype,
        'f': 'json'
      };
    }
  },

  layerPanel: {
    landCoverDynamics: 'Land Cover Dynamics',
    landCover: 'Land Cover',
    waterStressLegend: {
      min: 'Low',
      max: 'High',
      arid: 'Arid',
      nodata: 'No Data'
    },
    sedimentLegend: {
      min: 'Low',
      max: 'Extreme'
    },
    firesOptions: [
      {label: 'Past Week', value: 7},
      {label: 'Past 72 hours', value: 3},
      {label: 'Past 48 hours', value: 2},
      {label: 'Past 24 hours', value: 1}
    ],
    lossOptions: [
      {label: '2001', value: 1},
      {label: '2002', value: 2},
      {label: '2003', value: 3},
      {label: '2004', value: 4},
      {label: '2005', value: 5},
      {label: '2006', value: 6},
      {label: '2007', value: 7},
      {label: '2008', value: 8},
      {label: '2009', value: 9},
      {label: '2010', value: 10},
      {label: '2011', value: 11},
      {label: '2012', value: 12},
      {label: '2013', value: 13},
      {label: '2014', value: 14},
      {label: '2015', value: 15},
      {label: '2016', value: 16},
      {label: '2017', value: 17}
    ]
  },
  errors: {
    missingLayerConfig: 'You provided a layer config containing a url but not a type, please specify the layer type in the layer config.',
    incorrectLayerConfig: type => `You provided an invalid type, the application is not configured for type: ${type}. Please use the correct type or implement it in the LayerFactory.`,
    geolocationUnavailable: 'Sorry, it looks like your browser does not support geolocation, please try the latest versions of Safari, Chrome, or Firefox.',
    geolocationFailure: message => `Error retrieving location at this time. ${message}`,
    featureNotFound: 'We could not find a feature available at this point. Please try again.'
  },
  modals: {<commit_msg>Removed unused lossOptions config<commit_after>import analysisKeys from 'constants/AnalysisConstants';

const analysisImageService = 'https://gis-gfw.wri.org/arcgis/rest/services/image_services/analysis/ImageServer';

const config = {
  map: {
    options: {
      navigationMode: 'css-transforms',
      force3DTransforms: true,
      // showAttribution: false,
      fadeOnZoom: true,
      slider: false,
      logo: false
    }
  },

  corsServers: [
    'gis-gfw.wri.org',
    'gis-potico.wri.org',
    'gis-treecover.wri.org',
    'api.globalforestwatch.org',
    'alpha.blueraster.io',
    'staging.blueraster.io',
    'stg.blueraster.com.s3.amazonaws.com',
    'production-api.globalforestwatch.org',
    'production-api.globalforestwatch.org/v1/ogr',
    'production-api.globalforestwatch.org/v1/ogr/convert',
    'api.resourcewatch.org',
    'gis.wri.org'
  ],

  urls: {
    metadataApi: 'https://gis-gfw.wri.org/metadata',
    metadataXmlEndpoint: (itemId) => `https://www.arcgis.com/sharing/rest/content/items/${itemId}/info/metadata/metadata.xml`,
    agolItemEndpoint: (itemId) => `https://www.arcgis.com/sharing/rest/content/items/${itemId}`,
    cartoMetaEndpoint: (cartoUser, cartoLayerId, cartoApiKey) => `https://${cartoUser}.carto.com/api/v1/viz/${cartoLayerId}?api_key=${cartoApiKey}`,
    cartoDataEndpoint: (cartoUser, queryString, cartoApiKey) => `//${cartoUser}.cartodb.com/api/v2/sql?format=TopoJSON&q=${queryString}&api_key=${cartoApiKey}`,
    cartoTemplateEndpoint: (cartoUser, cartoTemplateId, cartoApiKey) => `https://${cartoUser}.carto.com/api/v1/map/named/${cartoTemplateId}?api_key=${cartoApiKey}`,
    esriLegendService: 'https://gis-gfw.wri.org/arcgis/rest/services/legends/MapServer'
  },

  upload: {
    portal: 'https://www.arcgis.com/sharing/rest/content/features/generate',
    shapefileParams: (name, spatialReference, extentWidth, mapWidth) => {
      return {
        'name': name,
        'generalize': true,
        'targetSr': spatialReference,
        'maxRecordCount': 1000,
        'reducePrecision': true,
        'numberOfDigitsAfterDecimal': 0,
        'enforceInputFileSizeLimit': true,
        'enforceOutputJsonSizeLimit': true,
        'maxAllowableOffset': extentWidth / mapWidth
      };
    },
    shapefileContent: (params, filetype) => {
      return {
        'publishParameters': params,
        'callback.html': 'textarea',
        'filetype': filetype,
        'f': 'json'
      };
    }
  },

  layerPanel: {
    landCoverDynamics: 'Land Cover Dynamics',
    landCover: 'Land Cover',
    waterStressLegend: {
      min: 'Low',
      max: 'High',
      arid: 'Arid',
      nodata: 'No Data'
    },
    sedimentLegend: {
      min: 'Low',
      max: 'Extreme'
    },
    firesOptions: [
      {label: 'Past Week', value: 7},
      {label: 'Past 72 hours', value: 3},
      {label: 'Past 48 hours', value: 2},
      {label: 'Past 24 hours', value: 1}
    ],
  },
  errors: {
    missingLayerConfig: 'You provided a layer config containing a url but not a type, please specify the layer type in the layer config.',
    incorrectLayerConfig: type => `You provided an invalid type, the application is not configured for type: ${type}. Please use the correct type or implement it in the LayerFactory.`,
    geolocationUnavailable: 'Sorry, it looks like your browser does not support geolocation, please try the latest versions of Safari, Chrome, or Firefox.',
    geolocationFailure: message => `Error retrieving location at this time. ${message}`,
    featureNotFound: 'We could not find a feature available at this point. Please try again.'
  },
  modals: {
{'fraction_non_alphanumeric': 0.15022392834293027, 'fraction_numerical': 0.017530390275111964, 'mean_word_length': 3.2363143631436313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 16, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '62007', 'n_tokens_mistral': 2729, 'n_tokens_neox': 2570, 'n_words': 558}