<commit_before>// Copyright (C) 2016 <NAME>
// This file is part of the Ouzel engine.

#include "SceneManager.h"
#include "Scene.h"

namespace ouzel
{
    namespace scene
    {
        SceneManager::SceneManager()
        {

        }

        SceneManager::~SceneManager()
        {

        }

        void SceneManager::setScene(const ScenePtr& newScene)
        {
            if (scene != newScene)
            {
                if (locked)
                {
                    nextScene = scene;
                }
                else
                {
                    scene = newScene;

                    if (scene)
                    {
                        scene->recalculateProjection();
                    }
                }
            }
        }

        void SceneManager::draw()
        {
            if (scene)
            {
                lock();

                scene->draw();
<commit_msg>Fix scene replace<commit_after>// Copyright (C) 2016 <NAME>
// This file is part of the Ouzel engine.

#include "SceneManager.h"
#include "Scene.h"

namespace ouzel
{
    namespace scene
    {
        SceneManager::SceneManager()
        {

        }

        SceneManager::~SceneManager()
        {

        }

        void SceneManager::setScene(const ScenePtr& newScene)
        {
            if (scene != newScene)
            {
                if (locked)
                {
                    nextScene = newScene;
                }
                else
                {
                    scene = newScene;

                    if (scene)
                    {
                        scene->recalculateProjection();
                    }
                }
            }
        }

        void SceneManager::draw()
        {
            if (scene)
            {
                lock();

                scene->draw();

{'fraction_non_alphanumeric': 0.0897782585181179, 'fraction_numerical': 0.004326663061114116, 'mean_word_length': 0.8668012108980827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7622383', 'n_tokens_mistral': 494, 'n_tokens_neox': 437, 'n_words': 94}