<commit_before>/**
 @file SuccessScene.cpp
*/
#include "LevelInfo.h"
#include "SaveData.h"
#include "Scene.h"
#include "../Menu.h"
#include "../../OpenGLESApp2/OpenGLESApp2.Android.NativeActivity/Renderer.h"
#include <vector>
#include <random>

namespace SunnySideUp {

  using namespace Mai;

  /** Show the success event.
  */
  class SuccessScene : public Scene {
  public:
	SuccessScene();
	virtual ~SuccessScene() {}
	virtual int Update(Engine&, float);
	virtual bool Load(Engine&);
	virtual bool Unload(Engine&);
	virtual void Draw(Engine&);
	virtual void ProcessWindowEvent(Engine&, const Event&);

  private:
	static const int eventTime = 60;
	static const int enableInputTime = eventTime - 5;

	int DoUpdate(Engine&, float);
	int DoFadeOut(Engine&, float);
	int(SuccessScene::*updateFunc)(Engine&, float);

	std::vector<ObjectPtr> objList;
	bool loaded;
	bool hasFinishRequest;
	bool hasNewRecord;
	float timer;
	float cameraRotation;
	Menu::Menu  rootMenu;
  };

  SuccessScene::SuccessScene()
	: updateFunc(&SuccessScene::DoUpdate)
	, objList()
	, loaded(false)
	, hasFinishRequest(false)
	, hasNewRecord(false)<commit_msg>Reduce the time to ignore input.<commit_after>/**
 @file SuccessScene.cpp
*/
#include "LevelInfo.h"
#include "SaveData.h"
#include "Scene.h"
#include "../Menu.h"
#include "../../OpenGLESApp2/OpenGLESApp2.Android.NativeActivity/Renderer.h"
#include <vector>
#include <random>

namespace SunnySideUp {

  using namespace Mai;

  /** Show the success event.
  */
  class SuccessScene : public Scene {
  public:
	SuccessScene();
	virtual ~SuccessScene() {}
	virtual int Update(Engine&, float);
	virtual bool Load(Engine&);
	virtual bool Unload(Engine&);
	virtual void Draw(Engine&);
	virtual void ProcessWindowEvent(Engine&, const Event&);

  private:
	static const int eventTime = 30;
	static const int enableInputTime = eventTime - 5;

	int DoUpdate(Engine&, float);
	int DoFadeOut(Engine&, float);
	int(SuccessScene::*updateFunc)(Engine&, float);

	std::vector<ObjectPtr> objList;
	bool loaded;
	bool hasFinishRequest;
	bool hasNewRecord;
	float timer;
	float cameraRotation;
	Menu::Menu  rootMenu;
  };

  SuccessScene::SuccessScene()
	: updateFunc(&SuccessScene::DoUpdate)
	, objList()
	, loaded(false)
	, hasFinishRequest(false)
	, hasNewRecord(false)
{'fraction_non_alphanumeric': 0.135111499781373, 'fraction_numerical': 0.004372540445999125, 'mean_word_length': 5.200542005420054, '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': '1184057', 'n_tokens_mistral': 765, 'n_tokens_neox': 739, 'n_words': 188}