<commit_before>local colorLayersPath = "./layers/colorlayers"
local heightLayersPath = "./layers/heightlayers"
local nightLayersPath = "./layers/nightlayers"
local overlaysPath = "./layers/overlays"
local waterMasksPath = "./layers/watermasks"

-- Color layers
local colorLayer = asset.require(colorLayersPath .. "/esri_viirs_combo")
asset.require(colorLayersPath .. "/esri_world_imagery") 
asset.require(colorLayersPath .. "/esri_imagery_world_2d")
asset.require(colorLayersPath .. "/viirs_snpp_temporal")
asset.require(colorLayersPath .. "/aqua_modis_temporal")
asset.require(colorLayersPath .. "/terra_modis_temporal")
asset.require(colorLayersPath .. "/bmng_utah")
asset.require(colorLayersPath .. "/bmng_sweden")
asset.require(colorLayersPath .. "/amsr2_gcom_w1_sea_ice_concentration_temporal") 
asset.require(colorLayersPath .. "/modis_terra_chlorophyll_a_temporal")
asset.require(colorLayersPath .. "/ghrsst_l4_g1sst_sea_surface_temperature_temporal")
asset.require(colorLayersPath .. "/ghrsst_l4_mur_sea_surface_temperature_temporal")

-- Height layers
local heightLayer = asset.require(heightLayersPath .. "/terrain_tileset")

-- Night layers
local nightLayer = asset.require(nightLayersPath .. "/earth_at_night_2012")
asset.require(nightLayersPath .. "/earth_at_night_temporal")

-- Overlays
asset.require(overlaysPath .. "/coastlines")
asset.require(overlaysPath .. "/reference_features")
asset.require(overlaysPath .. "/reference_labels")
asset.require(overlaysPath .. "/tile_indices")
asset.require(overlaysPath .. "/size_reference")

-- Watermasks
asset.require(waterMasksPath .. "/gebco_sweden")
asset.require(waterMasksPath .. "/gebco_utah") 
local watermask = asset.require(waterMasksPath .. "/modis_water_mask")

-- Set enabled layers (temporary solution)
-- @TODO: do this using a boolean that's passed to the 'asset.require' instead 
asset.onInitialize(function () 
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.ColorLayers." .. colorLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.HeightLayers." .. heightLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.NightLayers." .. nightLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.WaterMasks." .. watermask.layer.Identifier .. ".Enabled", true)
end)
<commit_msg>Fixed layer name on Linux.<commit_after>local colorLayersPath = "./layers/colorlayers"
local heightLayersPath = "./layers/heightlayers"
local nightLayersPath = "./layers/nightlayers"
local overlaysPath = "./layers/overlays"
local waterMasksPath = "./layers/watermasks"

-- Color layers
local colorLayer = asset.require(colorLayersPath .. "/esri_viirs_combo")
asset.require(colorLayersPath .. "/esri_world_imagery") 
asset.require(colorLayersPath .. "/esri_imagery_world_2D")
asset.require(colorLayersPath .. "/viirs_snpp_temporal")
asset.require(colorLayersPath .. "/aqua_modis_temporal")
asset.require(colorLayersPath .. "/terra_modis_temporal")
asset.require(colorLayersPath .. "/bmng_utah")
asset.require(colorLayersPath .. "/bmng_sweden")
asset.require(colorLayersPath .. "/amsr2_gcom_w1_sea_ice_concentration_temporal") 
asset.require(colorLayersPath .. "/modis_terra_chlorophyll_a_temporal")
asset.require(colorLayersPath .. "/ghrsst_l4_g1sst_sea_surface_temperature_temporal")
asset.require(colorLayersPath .. "/ghrsst_l4_mur_sea_surface_temperature_temporal")

-- Height layers
local heightLayer = asset.require(heightLayersPath .. "/terrain_tileset")

-- Night layers
local nightLayer = asset.require(nightLayersPath .. "/earth_at_night_2012")
asset.require(nightLayersPath .. "/earth_at_night_temporal")

-- Overlays
asset.require(overlaysPath .. "/coastlines")
asset.require(overlaysPath .. "/reference_features")
asset.require(overlaysPath .. "/reference_labels")
asset.require(overlaysPath .. "/tile_indices")
asset.require(overlaysPath .. "/size_reference")

-- Watermasks
asset.require(waterMasksPath .. "/gebco_sweden")
asset.require(waterMasksPath .. "/gebco_utah") 
local watermask = asset.require(waterMasksPath .. "/modis_water_mask")

-- Set enabled layers (temporary solution)
-- @TODO: do this using a boolean that's passed to the 'asset.require' instead 
asset.onInitialize(function () 
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.ColorLayers." .. colorLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.HeightLayers." .. heightLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.NightLayers." .. nightLayer.layer.Identifier .. ".Enabled", true)
    openspace.setPropertyValueSingle("Scene.Earth.Renderable.Layers.WaterMasks." .. watermask.layer.Identifier .. ".Enabled", true)
end)

{'fraction_non_alphanumeric': 0.13432835820895522, 'fraction_numerical': 0.004089143324473523, 'mean_word_length': 5.701369863013698, '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': '1462634', 'n_tokens_mistral': 1647, 'n_tokens_neox': 1532, 'n_words': 228}