<commit_before>#ifndef _WTF_ENGINE_HPP
#define _WTF_ENGINE_HPP

#include <cstdint>
#include "WTF_API.h"

namespace WTFDanmaku {

    class Controller;

    WTF_API enum Type : int {
        Scrolling = 1,
        Bottom = 4,
        Top = 5,
        Reverse = 6,
        Position = 7,
        Advanced = 8
    };

    class WTF_API WTFEngine {
    public:
        explicit WTFEngine();
        ~WTFEngine();
        void Initialize(void* hwnd);
        void LoadBilibiliFile(const char* filePath);
        void LoadBilibiliXml(const char* str);
        void AddDanmaku(Type type, time_t time, const wchar_t* comment, int fontSize, int fontColor, time_t timestamp = 0, int danmakuId = 0);
        void AddLiveDanmaku(Type type, time_t time, const wchar_t* comment, int fontSize, int fontColor, time_t timestamp = 0, int danmakuId = 0);
        void Start();
        void Pause();
        void Resume();
        void Stop();
        void SeekTo(time_t milliseconds);
        time_t GetCurrentPosition();
        bool IsRunning();<commit_msg>WTFEngine.hpp: Fix a compile warning under MSVC 2015<commit_after>#ifndef _WTF_ENGINE_HPP
#define _WTF_ENGINE_HPP

#include <cstdint>
#include "WTF_API.h"

namespace WTFDanmaku {

    class Controller;

    enum Type : int {
        Scrolling = 1,
        Bottom = 4,
        Top = 5,
        Reverse = 6,
        Position = 7,
        Advanced = 8
    };

    class WTF_API WTFEngine {
    public:
        explicit WTFEngine();
        ~WTFEngine();
        void Initialize(void* hwnd);
        void LoadBilibiliFile(const char* filePath);
        void LoadBilibiliXml(const char* str);
        void AddDanmaku(Type type, time_t time, const wchar_t* comment, int fontSize, int fontColor, time_t timestamp = 0, int danmakuId = 0);
        void AddLiveDanmaku(Type type, time_t time, const wchar_t* comment, int fontSize, int fontColor, time_t timestamp = 0, int danmakuId = 0);
        void Start();
        void Pause();
        void Resume();
        void Stop();
        void SeekTo(time_t milliseconds);
        time_t GetCurrentPosition();
        bool IsRunning();
{'fraction_non_alphanumeric': 0.09103840682788052, 'fraction_numerical': 0.011379800853485065, 'mean_word_length': 2.504983388704319, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2186327', 'n_tokens_mistral': 717, 'n_tokens_neox': 665, 'n_words': 199}