<commit_before>// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Game.Scoring;

namespace osu.Game.Screens.Play
{
    public class ReplayPlayerLoader : PlayerLoader
    {
        private readonly ScoreInfo scoreInfo;

        public ReplayPlayerLoader(Score score)
            : base(() => new ReplayPlayer(score))
        {
            scoreInfo = score.ScoreInfo;
        }

        protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
        {
            var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));

            // Overwrite the global mods here for use in the mod hud.
            Mods.Value = scoreInfo.Mods;
            Ruleset.Value = scoreInfo.Ruleset;<commit_msg>remove new container and comment<commit_after>// Copyright (c) p<NAME> Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Game.Scoring;

namespace osu.Game.Screens.Play
{
    public class ReplayPlayerLoader : PlayerLoader
    {
        private readonly ScoreInfo scoreInfo;

        public ReplayPlayerLoader(Score score)
            : base(() => new ReplayPlayer(score))
        {
            scoreInfo = score.ScoreInfo;
        }

        protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
        {
            var dependencies = base.CreateChildDependencies(parent);

            Mods.Value = scoreInfo.Mods;
            Ruleset.Value = scoreInfo.Ruleset;
{'fraction_non_alphanumeric': 0.07456647398843931, 'fraction_numerical': 0.0, 'mean_word_length': 2.8127753303964758, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '116', 'n_tokens_mistral': 453, 'n_tokens_neox': 440, 'n_words': 130}