<commit_before>/**
 * Legend module.
 *
 * @return singleton instance of the legend class (extends Widget).
 */
define([
  'underscore',
  'handlebars',
  'map/presenters/LegendPresenter',
  'text!map/templates/legend/legend.handlebars',
  'text!map/templates/legend/loss.handlebars',
  'text!map/templates/legend/imazon.handlebars',
  'text!map/templates/legend/fires.handlebars',
  'text!map/templates/legend/forest2000.handlebars',
  'text!map/templates/legend/pantropical.handlebars',
  'text!map/templates/legend/idnPrimary.handlebars',
  'text!map/templates/legend/intact2013.handlebars',
  'text!map/templates/legend/grump.handlebars',
  'text!map/templates/legend/stories.handlebars',
  'text!map/templates/legend/terra_i.handlebars',
  'text!map/templates/legend/concesiones_forestales.handlebars',
  'text!map/templates/legend/concesiones_forestalesType.handlebars',
  'text!map/templates/legend/hondurasForest.handlebars',
  'text!map/templates/legend/colombiaForestChange.handlebars',
  'text!map/templates/legend/tigers.handlebars',
  'text!map/templates/legend/dam_hotspots.handlebars',
  'text!map/templates/legend/us_land_cover.handlebars',
  'text!map/templates/legend/global_land_cover.handlebars',
  'text!map/templates/legend/forma.handlebars',
  'text!map/templates/legend/bra_biomes.handlebars',
  'text!map/templates/legend/plantations_by_type.handlebars',
  'text!map/templates/legend/plantations_by_species.handlebars',
  'text!map/templates/legend/oil_palm.handlebars',
  'text!map/templates/legend/gtm_forest_change.handlebars',
  'text!map/templates/legend/gtm_forest_cover.handlebars',
  'text!map/templates/legend/gtm_forest_density.handlebars',
  'text!map/templates/legend/khm_eco_land_conc.handlebars',
  'text!map/templates/legend/usa_forest_ownership.handlebars',
  'text!map/templates/legend/guyra_deforestation.handlebars',
  'text!map/templates/legend/logging_roads.handlebars',
  'text!map/templates/legend/rus_hrv.handlebars',
  'text!map/templates/legend/raisg_land_rights.handlebars',
  'text!map/templates/legend/mysPA.handlebars',
  'text!map/templates/legend/idn_peat.handlebars',
  'text!map/templates/legend/mys_peat.handlebars',
  'text!map/templates/legend/raisg_mining.handlebars',
  'text!map/templates/legend/per_mining.handlebars',
  'text!map/templates/legend/glad.handlebars',
  'text!map/templates/legend/urthecast.handlebars',
  'text!map/templates/legend/mex_forest_cat.handlebars',
  'text!map/templates/legend/mex_forest_subcat.handlebars',
  'text!map/templates/legend/pa.handlebars',
  'text!map/templates/legend/places2watch.handlebars',
  'text!map/templates/legend/mex_landrights.handlebars',
  'text!map/templates/legend/mexPA.handlebars',
  'text!map/templates/legend/perPA.handlebars',
  'text!map/templates/legend/mex_land_cover.handlebars',
  'text!map/templates/legend/mex_forest_conserv.handlebars',
  'text!map/templates/legend/mex_forest_prod.handlebars',
  'text!map/templates/legend/mex_forest_rest.handlebars',
  
], function(_, Handlebars, Presenter, tpl, lossTpl, imazonTpl, firesTpl,
    forest2000Tpl, pantropicalTpl, idnPrimaryTpl, intact2013Tpl, grumpTpl, storiesTpl, terra_iTpl, concesionesTpl,
    concesionesTypeTpl, hondurasForestTPL,colombiaForestChangeTPL, tigersTPL, dam_hotspotsTPL, us_land_coverTPL,
    global_land_coverTPL, formaTPL,bra_biomesTPL, gfwPlantationByTypeTpl, gfwPlantationBySpeciesTpl, oil_palmTpl,
    gtm_forest_changeTpl,gtm_forest_coverTpl,gtm_forest_densityTpl,khm_eco_land_concTpl,usa_forest_ownershipTpl,guyra_deforestationTpl,logging_roadsTpl,
    rus_hrvTpl, raisg_land_rightsTpl, mysPATpl, idn_peatTpl, mys_peatTpl,raisg_miningTpl, per_miningTpl, gladTpl, urtheTpl,mex_forest_catTpl,mex_forest_subcatTpl, paTpl, places2watchTPL, mex_landrightsTpl, mexPATpl, perPATpl,mex_land_coverTpl,mex_forest_conservTPL,mex_forest_prodTPL,mex_forest_restTPL) {

  'use strict';

  var LegendView = Backbone.View.extend({

    el: '#module-legend',

    template: Handlebars.compile(tpl),

    /**
     * Optional layers detail templates.<commit_msg>Legend: model just disappeared. Now it is back<commit_after>/**
 * Legend module.
 *
 * @return singleton instance of the legend class (extends Widget).
 */
define([
  'underscore',
  'handlebars',
  'map/presenters/LegendPresenter',
  'text!map/templates/legend/legend.handlebars',
  'text!map/templates/legend/loss.handlebars',
  'text!map/templates/legend/imazon.handlebars',
  'text!map/templates/legend/fires.handlebars',
  'text!map/templates/legend/forest2000.handlebars',
  'text!map/templates/legend/pantropical.handlebars',
  'text!map/templates/legend/idnPrimary.handlebars',
  'text!map/templates/legend/intact2013.handlebars',
  'text!map/templates/legend/grump.handlebars',
  'text!map/templates/legend/stories.handlebars',
  'text!map/templates/legend/terra_i.handlebars',
  'text!map/templates/legend/concesiones_forestales.handlebars',
  'text!map/templates/legend/concesiones_forestalesType.handlebars',
  'text!map/templates/legend/hondurasForest.handlebars',
  'text!map/templates/legend/colombiaForestChange.handlebars',
  'text!map/templates/legend/tigers.handlebars',
  'text!map/templates/legend/dam_hotspots.handlebars',
  'text!map/templates/legend/us_land_cover.handlebars',
  'text!map/templates/legend/global_land_cover.handlebars',
  'text!map/templates/legend/forma.handlebars',
  'text!map/templates/legend/bra_biomes.handlebars',
  'text!map/templates/legend/plantations_by_type.handlebars',
  'text!map/templates/legend/plantations_by_species.handlebars',
  'text!map/templates/legend/oil_palm.handlebars',
  'text!map/templates/legend/gtm_forest_change.handlebars',
  'text!map/templates/legend/gtm_forest_cover.handlebars',
  'text!map/templates/legend/gtm_forest_density.handlebars',
  'text!map/templates/legend/khm_eco_land_conc.handlebars',
  'text!map/templates/legend/usa_forest_ownership.handlebars',
  'text!map/templates/legend/guyra_deforestation.handlebars',
  'text!map/templates/legend/logging_roads.handlebars',
  'text!map/templates/legend/rus_hrv.handlebars',
  'text!map/templates/legend/raisg_land_rights.handlebars',
  'text!map/templates/legend/mysPA.handlebars',
  'text!map/templates/legend/idn_peat.handlebars',
  'text!map/templates/legend/mys_peat.handlebars',
  'text!map/templates/legend/raisg_mining.handlebars',
  'text!map/templates/legend/per_mining.handlebars',
  'text!map/templates/legend/glad.handlebars',
  'text!map/templates/legend/urthecast.handlebars',
  'text!map/templates/legend/mex_forest_cat.handlebars',
  'text!map/templates/legend/mex_forest_subcat.handlebars',
  'text!map/templates/legend/pa.handlebars',
  'text!map/templates/legend/places2watch.handlebars',
  'text!map/templates/legend/mex_landrights.handlebars',
  'text!map/templates/legend/mexPA.handlebars',
  'text!map/templates/legend/perPA.handlebars',
  'text!map/templates/legend/mex_land_cover.handlebars',
  'text!map/templates/legend/mex_forest_conserv.handlebars',
  'text!map/templates/legend/mex_forest_prod.handlebars',
  'text!map/templates/legend/mex_forest_rest.handlebars',
  
], function(_, Handlebars, Presenter, tpl, lossTpl, imazonTpl, firesTpl,
    forest2000Tpl, pantropicalTpl, idnPrimaryTpl, intact2013Tpl, grumpTpl, storiesTpl, terra_iTpl, concesionesTpl,
    concesionesTypeTpl, hondurasForestTPL,colombiaForestChangeTPL, tigersTPL, dam_hotspotsTPL, us_land_coverTPL,
    global_land_coverTPL, formaTPL,bra_biomesTPL, gfwPlantationByTypeTpl, gfwPlantationBySpeciesTpl, oil_palmTpl,
    gtm_forest_changeTpl,gtm_forest_coverTpl,gtm_forest_densityTpl,khm_eco_land_concTpl,usa_forest_ownershipTpl,guyra_deforestationTpl,logging_roadsTpl,
    rus_hrvTpl, raisg_land_rightsTpl, mysPATpl, idn_peatTpl, mys_peatTpl,raisg_miningTpl, per_miningTpl, gladTpl, urtheTpl,mex_forest_catTpl,mex_forest_subcatTpl, paTpl, places2watchTPL, mex_landrightsTpl, mexPATpl, perPATpl,mex_land_coverTpl,mex_forest_conservTPL,mex_forest_prodTPL,mex_forest_restTPL) {

  'use strict';

  var LegendView = Backbone.View.extend({

    el: '#module-legend',

    template: Handlebars.compile(tpl),

    model: new (Backbone.Model.extend({
      defaults:{
        hidden: true,
        categories_status: [],
      }
    })),

    /**
     * Optional layers detail templates.
{'fraction_non_alphanumeric': 0.12809967340026612, 'fraction_numerical': 0.004354663118422644, 'mean_word_length': 6.7560975609756095, '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': '1780870', 'n_tokens_mistral': 3212, 'n_tokens_neox': 2982, 'n_words': 251}