<commit_before>local assetHelper = asset.require('util/asset_helper')
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
local mercuryTransforms = asset.require('scene/solarsystem/planets/mercury/transforms')


local models = asset.syncedResource({
    Name = "Messenger Models",
    Type = "HttpSynchronization",
    Identifier = "messenger_model",
    Version = 1
})

local kernels = asset.syncedResource({
    Name = "Messenger Kernels",
    Type = "HttpSynchronization",
    Identifier = "messenger_spice",
    Version = 1
})


local LocalKernels = {
    kernels .. '/messenger_2548.tsc',

    kernels .. '/de405.bsp',
    kernels .. '/msgr_040803_150430_150430_od431sc_2.bsp',
    kernels .. '/msgr_antenna_v000.bsp',
    kernels .. '/msgr_de405_de423s.bsp',

    kernels .. '/msgr_epps_v100.ti',
    kernels .. '/msgr_grns_v110.ti',
    kernels .. '/msgr_mag_v021.ti',
    kernels .. '/msgr_mascs_v100.ti',
    kernels .. '/msgr_mdis_v160.ti',
    kernels .. '/msgr_mla_v010.ti',
    kernels .. '/msgr_rs_v111.ti',
    kernels .. '/msgr_xrs_v001.ti',
    
    kernels .. '/msgr_1103_v02.bc',
    kernels .. '/msgr_1104_v02.bc',
    kernels .. '/msgr_1105_v02.bc',
    kernels .. '/msgr_1106_v02.bc',

    kernels .. '/pck00008.tpc',
    kernels .. '/pck00008_msgr.tpc',
    kernels .. '/pck00009_msgr_v10.tpc',
    kernels .. '/pck00010_msgr_v10.tpc',
    kernels .. '/pck00010_msgr_v23.tpc',
    kernels .. '/pck00010.tpc'
}


local RotationMatrix = {
    0, 1, 0,
    0, 0, 1,
    1, 0, 0
}

local LightSources = {
    {
        Type = "SceneGraphLightSource",
        Identifier = "Sun",
        Node = sunTransforms.SolarSystemBarycenter.Identifier,
        Intensity = 1.0
    },
    {
        Identifier = "Camera",
        Type = "CameraLightSource",
        Intensity = 0.5
    }
}

local Messenger = {
    Identifier = "Messenger",
    Parent = sunTransforms.SolarSystemBarycenter.Identifier,
    Transform = {
        Translation = {
            Type = "SpiceTranslation",
            Target = "MESSENGER",
            Observer = "SUN",
            Kernels = LocalKernels
        },
        Rotation = {
            Type = "SpiceRotation",
            SourceFrame = "MSGR_SPACECRAFT",
            DestinationFrame = "GALACTIC",
        },
    },
    GUI = {
        Name = "Messenger",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeBlack = {
    Identifier = "MessengerProbe_black",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_black.obj"
        },
        ColorTexture = models .. "/Tex_black.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe Black",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeFoil = {
    Identifier = "MessengerProbe_foil",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_foil.obj"
        },
        ColorTexture = models .. "/foil_n2.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe foil",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeHeatShield = {
    Identifier = "MessengerProbe_heatShield",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_heatShield.obj"
        },
        ColorTexture = models .. "/AO_heatshield4.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe Heat Sheild",
        Path = "/Solar System/Missions/Messenger"
    }
}


local MessengerProbeMetal = {
    Identifier = "MessengerProbe_Metal",
    Parent = Messenger.Identifier,
    Renderable = {<commit_msg>updated messenger asset to fix pointing, add timerange, and use new default light sources<commit_after>local assetHelper = asset.require('util/asset_helper')
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
local mercuryTransforms = asset.require('scene/solarsystem/planets/mercury/transforms')


local models = asset.syncedResource({
    Name = "Messenger Models",
    Type = "HttpSynchronization",
    Identifier = "messenger_model",
    Version = 1
})

local kernels = asset.syncedResource({
    Name = "Messenger Kernels",
    Type = "HttpSynchronization",
    Identifier = "messenger_spice",
    Version = 1
})


local LocalKernels = {
    kernels .. '/messenger_2548.tsc',
    kernels .. '/msgr_v231.tf',

    kernels .. '/de405.bsp',
    kernels .. '/msgr_040803_150430_150430_od431sc_2.bsp',
    kernels .. '/msgr_antenna_v000.bsp',
    kernels .. '/msgr_de405_de423s.bsp',

    kernels .. '/msgr_epps_v100.ti',
    kernels .. '/msgr_grns_v110.ti',
    kernels .. '/msgr_mag_v021.ti',
    kernels .. '/msgr_mascs_v100.ti',
    kernels .. '/msgr_mdis_v160.ti',
    kernels .. '/msgr_mla_v010.ti',
    kernels .. '/msgr_rs_v111.ti',
    kernels .. '/msgr_xrs_v001.ti',


    kernels .. '/pck00008.tpc',
    kernels .. '/pck00008_msgr.tpc',
    kernels .. '/pck00009_msgr_v10.tpc',
    kernels .. '/pck00010_msgr_v10.tpc',
    kernels .. '/pck00010_msgr_v23.tpc',
    kernels .. '/pck00010.tpc',

    kernels .. '/msgr_1103_v02.bc',
    kernels .. '/msgr_1104_v02.bc',
    kernels .. '/msgr_1105_v02.bc',
    kernels .. '/msgr_1106_v02.bc',
}


local RotationMatrix = {
    1, 0, 0,
    0, 0, -1,
    0, 1, 0
}


local LightSources = assetHelper.getDefaultLightSources(sunTransforms.SolarSystemBarycenter.Identifier)

local Messenger = {
    Identifier = "Messenger",
    Parent = sunTransforms.SolarSystemBarycenter.Identifier,
    Transform = {
        Translation = {
            Type = "SpiceTranslation",
            Target = "MESSENGER",
            Observer = "SUN",
            Kernels = LocalKernels
        },
        Rotation = {
            Type = "SpiceRotation",
            SourceFrame = "MSGR_SPACECRAFT",
            DestinationFrame = "GALACTIC",
        },
    },
    TimeFrame = {
            Type = "TimeFrameInterval",
            Start = "2011-03-01",
            End = "2011-06-30"
    },
    GUI = {
        Name = "Messenger",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeBlack = {
    Identifier = "MessengerProbe_black",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_black.obj"
        },
        ColorTexture = models .. "/Tex_black.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe Black",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeFoil = {
    Identifier = "MessengerProbe_foil",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_foil.obj"
        },
        ColorTexture = models .. "/foil_n2.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe foil",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeHeatShield = {
    Identifier = "MessengerProbe_heatShield",
    Parent = Messenger.Identifier,
    Renderable = {
        Type = "RenderableModel",
        Geometry = {
            Type = "MultiModelGeometry",
            GeometryFile = models .. "/MessengerProbe_heatShield.obj"
        },
        ColorTexture = models .. "/AO_heatshield4.png",
        ModelTransform = RotationMatrix,
        LightSources = LightSources
    },
    GUI = {
        Name = "MessengerProbe Heat Sheild",
        Path = "/Solar System/Missions/Messenger"
    }
}

local MessengerProbeMetal = {
    Identifier = "MessengerProbe_Metal",
    Parent = Messenger.Identifier,
    Renderable = {
{'fraction_non_alphanumeric': 0.12370149253731343, 'fraction_numerical': 0.03498507462686567, 'mean_word_length': 2.2963400236127507, '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': '4555452', 'n_tokens_mistral': 3074, 'n_tokens_neox': 2709, 'n_words': 473}