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

#pragma once

#include <memory>
#include <cstdint>
#include "Types.h"
#include "Noncopyable.h"
#include "Vector2.h"
#include "Rectangle.h"

namespace ouzel
{
    class Engine;
    class Camera;
    class Node;
    class Scene;
    
    class SceneManager: public Noncopyable
    {
        friend Engine;
    public:
        virtual ~SceneManager();
        
        void draw();
        
        void setScene(const ScenePtr& scene);
        const ScenePtr& getScene() const { return _scene; }
        
        virtual void recalculateProjection();
        
    protected:
        SceneManager();
        
        void lock();
        void unlock();
        
        ScenePtr _scene;
        
        ScenePtr _newScene;
        int32_t _locked = false;
    };
}<commit_msg>Init lock to 0, not false<commit_after>// Copyright (C) 2016 <NAME>
// This file is part of the Ouzel engine.

#pragma once

#include <memory>
#include <cstdint>
#include "Types.h"
#include "Noncopyable.h"
#include "Vector2.h"
#include "Rectangle.h"

namespace ouzel
{
    class Engine;
    class Camera;
    class Node;
    class Scene;
    
    class SceneManager: public Noncopyable
    {
        friend Engine;
    public:
        virtual ~SceneManager();
        
        void draw();
        
        void setScene(const ScenePtr& scene);
        const ScenePtr& getScene() const { return _scene; }
        
        virtual void recalculateProjection();
        
    protected:
        SceneManager();
        
        void lock();
        void unlock();
        
        ScenePtr _scene;
        
        ScenePtr _newScene;
        int32_t _locked = 0;
    };
}
{'fraction_non_alphanumeric': 0.09421965317919075, 'fraction_numerical': 0.009248554913294798, 'mean_word_length': 1.9239864864864864, 'pattern_counts': {'":': 0, '<': 9, '<?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': '73517', 'n_tokens_mistral': 535, 'n_tokens_neox': 507, 'n_words': 153}