├── .idea ├── .name ├── sonarlint │ ├── issuestore │ │ ├── 0 │ │ │ └── b │ │ │ │ └── 0b9e907059c1c0769dadd25da507b0d7b9c6412c │ │ ├── 4 │ │ │ └── 1 │ │ │ │ └── 419ad2a11afced6a68d9746501279da8314131ae │ │ ├── 6 │ │ │ └── 8 │ │ │ │ └── 682a50d19e416195436708e48c7761923b8d6651 │ │ ├── 7 │ │ │ ├── 9 │ │ │ │ └── 797b27af03a05cbdffc6bb37887639c60859cd62 │ │ │ └── f │ │ │ │ └── 7f913e169ad9d5f82b59d62944c01b78fb3b7587 │ │ ├── 8 │ │ │ ├── 0 │ │ │ │ └── 80f2581eb38b017d8b02241cda6ab6d6098b3a04 │ │ │ └── e │ │ │ │ ├── 8e8b97b7a96c5a14c3efc98cdaa493a3cbff9323 │ │ │ │ └── 8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d │ │ ├── 9 │ │ │ ├── a │ │ │ │ └── 9a2aa4db38d3115ed60da621e012c0efc0172aae │ │ │ └── b │ │ │ │ └── 9b09d6b8583bdca9204d53fa34136530831aa653 │ │ ├── a │ │ │ ├── 7 │ │ │ │ └── a73efb24e04e8d3f62a96b1c5b41a708fbc3373b │ │ │ └── d │ │ │ │ └── ad16b893e36379cc17e7924bdc14c53b433d4467 │ │ ├── b │ │ │ └── 1 │ │ │ │ └── b130d9617e9f6a3ab04c5a73ef91b93ff26a6d46 │ │ ├── f │ │ │ └── c │ │ │ │ └── fc8a86f6633fd0026647eae96f54ce60b14a1da1 │ │ ├── c │ │ │ ├── 8 │ │ │ │ └── c8e76ac458d7869b0ee598f448c6d91bad339248 │ │ │ └── c │ │ │ │ └── cc9be8f4de8a28d94196764c64ecd16f6d52405d │ │ └── d │ │ │ └── f │ │ │ └── dfeffd3f67be0c4d6230343667202e050235e331 │ └── securityhotspotstore │ │ ├── 0 │ │ └── b │ │ │ └── 0b9e907059c1c0769dadd25da507b0d7b9c6412c │ │ ├── 4 │ │ └── 1 │ │ │ └── 419ad2a11afced6a68d9746501279da8314131ae │ │ ├── 6 │ │ └── 8 │ │ │ └── 682a50d19e416195436708e48c7761923b8d6651 │ │ ├── 7 │ │ ├── 9 │ │ │ └── 797b27af03a05cbdffc6bb37887639c60859cd62 │ │ └── f │ │ │ └── 7f913e169ad9d5f82b59d62944c01b78fb3b7587 │ │ ├── 8 │ │ ├── 0 │ │ │ └── 80f2581eb38b017d8b02241cda6ab6d6098b3a04 │ │ └── e │ │ │ ├── 8e8b97b7a96c5a14c3efc98cdaa493a3cbff9323 │ │ │ └── 8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d │ │ ├── 9 │ │ ├── a │ │ │ └── 9a2aa4db38d3115ed60da621e012c0efc0172aae │ │ └── b │ │ │ └── 9b09d6b8583bdca9204d53fa34136530831aa653 │ │ ├── a │ │ ├── 7 │ │ │ └── a73efb24e04e8d3f62a96b1c5b41a708fbc3373b │ │ └── d │ │ │ └── ad16b893e36379cc17e7924bdc14c53b433d4467 │ │ ├── b │ │ └── 1 │ │ │ └── b130d9617e9f6a3ab04c5a73ef91b93ff26a6d46 │ │ ├── c │ │ ├── 8 │ │ │ └── c8e76ac458d7869b0ee598f448c6d91bad339248 │ │ └── c │ │ │ └── cc9be8f4de8a28d94196764c64ecd16f6d52405d │ │ ├── d │ │ └── f │ │ │ └── dfeffd3f67be0c4d6230343667202e050235e331 │ │ └── f │ │ └── c │ │ └── fc8a86f6633fd0026647eae96f54ce60b14a1da1 ├── StudioExecutor.iml ├── codeStyles │ └── codeStyleConfig.xml ├── vcs.xml ├── .gitignore ├── jsLibraryMappings.xml ├── misc.xml └── modules.xml ├── .gitignore ├── Dependencies ├── IXWebSocket │ ├── Dockerfile │ ├── test │ │ ├── data │ │ │ └── foo.txt │ │ ├── compatibility │ │ │ ├── python │ │ │ │ └── websockets │ │ │ │ │ ├── empty_file │ │ │ │ │ ├── localhost.pem │ │ │ │ │ ├── DOCKER_VERSION │ │ │ │ │ ├── small_file │ │ │ │ │ ├── Procfile │ │ │ │ │ ├── Dockerfile │ │ │ │ │ ├── entrypoint.sh │ │ │ │ │ ├── echo_server.py │ │ │ │ │ ├── echo_server_serve_once.py │ │ │ │ │ ├── echo_client.py │ │ │ │ │ ├── echo_server_interactive.py │ │ │ │ │ ├── echo_server_ssl.py │ │ │ │ │ └── nginx.conf │ │ │ ├── csharp │ │ │ │ ├── .gitignore │ │ │ │ └── devnull_client.csproj │ │ │ ├── ruby │ │ │ │ └── README.md │ │ │ └── node │ │ │ │ ├── echo_server.js │ │ │ │ └── echo_server_permessagedeflate.js │ │ ├── .certs │ │ │ ├── trusted-ca-crt.srl │ │ │ └── untrusted-ca-crt.srl │ │ ├── run.sh │ │ ├── .gitignore │ │ ├── appsConfig.json │ │ ├── test_runner.cpp │ │ └── broadcast-server.js │ ├── mkdocs.yml │ ├── ws │ │ ├── .gitignore │ │ ├── cobraMetricsSample.json │ │ ├── proxyConfig.json │ │ ├── test_ws_redis.sh │ │ ├── broadcast-server.py │ │ ├── package-lock.json │ │ └── broadcast-server.js │ ├── third_party │ │ ├── .clang-format │ │ ├── cpp-linenoise │ │ │ ├── example │ │ │ │ └── CMakeLists.txt │ │ │ └── .gitignore │ │ ├── remote_trailing_whitespaces.sh │ │ └── README.md │ ├── .dockerignore │ ├── tools │ │ ├── extract_latest_change.sh │ │ ├── extract_version.sh │ │ └── trim_repo_for_docker.sh │ ├── .gitignore │ ├── ixwebsocket-config.cmake.in │ ├── ixwebsocket │ │ ├── IXWebSocketVersion.h │ │ ├── IXGetFreePort.h │ │ ├── IXSetThreadName.h │ │ ├── IXUserAgent.h │ │ ├── IXUuid.h │ │ ├── IXGzipCodec.h │ │ ├── IXProgressCallback.h │ │ ├── IXSelectInterruptFactory.h │ │ ├── IXUniquePtr.h │ │ ├── IXWebSocketMessageType.h │ │ ├── IXCancellationRequest.h │ │ ├── IXExponentialBackoff.h │ │ ├── IXWebSocketErrorInfo.h │ │ ├── IXSocketFactory.h │ │ ├── IXSelectInterruptFactory.cpp │ │ ├── IXWebSocketHttpHeaders.h │ │ ├── IXWebSocketCloseInfo.h │ │ ├── IXStrCaseCompare.h │ │ ├── IXWebSocketSendInfo.h │ │ ├── IXBench.h │ │ ├── IXWebSocketOpenInfo.h │ │ └── IXWebSocketProxyServer.h │ ├── docker-compose.yml │ ├── SECURITY.md │ ├── .github │ │ └── workflows │ │ │ ├── unittest_linux.yml │ │ │ ├── unittest_linux_asan.yml │ │ │ ├── unittest_mac_tsan_sectransport.yml │ │ │ ├── unittest_mac_tsan_mbedtls.yml │ │ │ ├── unittest_mac_tsan_openssl.yml │ │ │ ├── mkdocs.yml │ │ │ └── unittest_windows_gcc.yml │ ├── .pre-commit-config.yaml │ ├── ixwebsocket.pc.in │ ├── CMake │ │ ├── FindSpdLog.cmake │ │ ├── FindDeflate.cmake │ │ └── FindMbedTLS.cmake │ └── docker │ │ ├── Dockerfile.ubuntu_groovy │ │ ├── Dockerfile.ubuntu_trusty │ │ ├── Dockerfile.ubuntu_bionic │ │ ├── Dockerfile.ubuntu_disco │ │ ├── Dockerfile.ubuntu_xenial │ │ ├── Dockerfile.centos7 │ │ └── Dockerfile.ubuntu_precise ├── cpr │ ├── package-build │ │ ├── debian-libcpr │ │ │ ├── source │ │ │ │ └── format │ │ │ ├── libcpr1.install │ │ │ ├── libcpr-dev.install │ │ │ ├── README.Debian │ │ │ ├── changelog │ │ │ └── rules │ │ └── build-package.sh │ ├── CppCheckSuppressions.txt │ ├── cpr │ │ ├── payload.cpp │ │ ├── parameters.cpp │ │ ├── async.cpp │ │ ├── unix_socket.cpp │ │ ├── multipart.cpp │ │ ├── curlmultiholder.cpp │ │ ├── cprtypes.cpp │ │ ├── auth.cpp │ │ ├── bearer.cpp │ │ ├── callback.cpp │ │ ├── proxies.cpp │ │ └── proxyauth.cpp │ ├── nuget │ │ ├── resources │ │ │ └── cpr.png │ │ └── build │ │ │ └── native │ │ │ └── libcpr.targets │ ├── test │ │ ├── data │ │ │ ├── keys │ │ │ │ ├── server.pub │ │ │ │ ├── client.key │ │ │ │ ├── server.key │ │ │ │ └── root-ca.key │ │ │ ├── client.cnf │ │ │ ├── server.cnf │ │ │ └── certificates │ │ │ │ ├── server.crt │ │ │ │ ├── client.crt │ │ │ │ └── root-ca.crt │ │ ├── multiasync_tests.hpp │ │ └── encoded_auth_tests.cpp │ ├── cmake │ │ ├── cprConfig.cmake.in │ │ ├── cppcheck.cmake │ │ ├── mongoose.CMakeLists.txt │ │ ├── clear_variable.cmake │ │ ├── clang-tidy.cmake │ │ ├── FindMbedTLS.cmake │ │ ├── cprver.h.in │ │ └── zlib_external.cmake │ ├── include │ │ └── cpr │ │ │ ├── reserve_size.h │ │ │ ├── curlmultiholder.h │ │ │ ├── low_speed.h │ │ │ ├── limit_rate.h │ │ │ ├── verbose.h │ │ │ ├── parameters.h │ │ │ ├── local_port.h │ │ │ ├── unix_socket.h │ │ │ ├── local_port_range.h │ │ │ ├── payload.h │ │ │ ├── connect_timeout.h │ │ │ ├── proxies.h │ │ │ ├── resolve.h │ │ │ ├── ssl_ctx.h │ │ │ └── filesystem.h │ └── .gitignore ├── Luau │ ├── extern │ │ ├── .clang-format │ │ └── isocline │ │ │ └── .gitignore │ ├── tests │ │ ├── require │ │ │ ├── without_config │ │ │ │ ├── luau │ │ │ │ │ ├── init.lua │ │ │ │ │ └── init.luau │ │ │ │ ├── lua │ │ │ │ │ └── init.lua │ │ │ │ ├── dependency.luau │ │ │ │ ├── lua_dependency.lua │ │ │ │ └── module.luau │ │ │ └── with_config │ │ │ │ ├── src │ │ │ │ ├── alias_requirer.luau │ │ │ │ ├── dependency.luau │ │ │ │ ├── parent_alias_requirer.luau │ │ │ │ ├── other_dependency.luau │ │ │ │ ├── requirer.luau │ │ │ │ ├── fail_requirer.luau │ │ │ │ ├── .luaurc │ │ │ │ └── global_library_requirer.luau │ │ │ │ ├── ProjectLuauLibraries │ │ │ │ └── library.luau │ │ │ │ ├── GlobalLuauLibraries │ │ │ │ └── global_library.luau │ │ │ │ └── .luaurc │ │ ├── conformance │ │ │ ├── pm.lua │ │ │ ├── sort.lua │ │ │ ├── strings.lua │ │ │ ├── literals.lua │ │ │ ├── ndebug_upvalues.lua │ │ │ ├── safeenv.lua │ │ │ └── apicalls.lua │ │ ├── ClassFixture.h │ │ ├── RegisterCallbacks.cpp │ │ ├── DiffAsserts.cpp │ │ └── RegisterCallbacks.h │ ├── tools │ │ ├── fuzz │ │ │ └── requirements.txt │ │ ├── gdb_printers.py │ │ └── natvis │ │ │ └── Common.natvis │ ├── bench │ │ ├── install.sh │ │ ├── install.bat │ │ ├── micro_tests │ │ │ ├── test_Assert.lua │ │ │ ├── test_TableCreate_nil.lua │ │ │ ├── test_TableCreate_number.lua │ │ │ ├── test_SqrtSum_exponent.lua │ │ │ ├── test_AbsSum_math_abs.lua │ │ │ ├── test_SqrtSum_math_sqrt.lua │ │ │ ├── test_AbsSum_and_or.lua │ │ │ ├── test_Pcall_call_return.lua │ │ │ ├── test_Pcall_pcall_return.lua │ │ │ ├── test_AbsSum_abs.lua │ │ │ ├── test_Failure_pcall_a_bar.lua │ │ │ ├── test_SqrtSum_sqrt.lua │ │ │ ├── test_LargeTableCtor_hash.lua │ │ │ ├── test_Pcall_xpcall_return.lua │ │ │ ├── test_TableCreate_zerofill.lua │ │ │ ├── test_Failure_pcall_game_Foo.lua │ │ │ ├── test_UpvalueCapture.lua │ │ │ ├── test_SqrtSum_sqrt_getfenv.lua │ │ │ ├── test_TableFind_table_find.lua │ │ │ ├── test_Failure_xpcall_a_bar.lua │ │ │ ├── test_Failure_xpcall_game_Foo.lua │ │ │ ├── test_LargeTableSum_loop_index.lua │ │ │ ├── test_SqrtSum_sqrt_roundabout.lua │ │ │ ├── test_TableInsertion_index_cached.lua │ │ │ ├── test_LargeTableSum_loop_iter.lua │ │ │ ├── test_TableInsertion_index_len.lua │ │ │ ├── test_LargeTableSum_loop_ipairs.lua │ │ │ ├── test_LargeTableSum_loop_pairs.lua │ │ │ ├── test_TableInsertion_table_insert.lua │ │ │ ├── test_TableIteration.lua │ │ │ ├── test_TableMarshal_varargs.lua │ │ │ ├── test_TableMarshal_table_pack.lua │ │ │ ├── test_TableMarshal_select.lua │ │ │ ├── test_TableMarshal_table_unpack_array.lua │ │ │ ├── test_TableMarshal_table_unpack_range.lua │ │ │ ├── test_Pcall_pcall_yield.lua │ │ │ ├── test_TableRemoval_table_remove.lua │ │ │ ├── test_TableMove_empty_table.lua │ │ │ ├── test_ToNumberString.lua │ │ │ ├── test_Factorial.lua │ │ │ ├── test_TableMove_same_table.lua │ │ │ ├── test_VariadicSelect.lua │ │ │ ├── test_TableMove_table_create.lua │ │ │ ├── test_TableFind_loop_ipairs.lua │ │ │ ├── test_OOP_constructor.lua │ │ │ ├── test_OOP_virtual_constructor.lua │ │ │ ├── test_OOP_method_call.lua │ │ │ └── test_TableInsertion_table_insert_index.lua │ │ └── gc │ │ │ ├── test_TableCreate_nil.lua │ │ │ ├── test_TableCreate_number.lua │ │ │ ├── test_LargeTableCtor_hash.lua │ │ │ ├── test_TableCreate_zerofill.lua │ │ │ ├── test_TableMarshal_varargs.lua │ │ │ ├── test_TableMarshal_table_pack.lua │ │ │ ├── test_TableMarshal_select.lua │ │ │ ├── test_Pcall_pcall_yield.lua │ │ │ └── test_GC_hashtable_Keyval.lua │ ├── fuzz │ │ ├── basic.lua │ │ ├── syntax.dict │ │ ├── compiler.cpp │ │ ├── transpiler.cpp │ │ ├── libprotobuf-mutator-patch.patch │ │ ├── parser.cpp │ │ ├── prototest.cpp │ │ ├── format.cpp │ │ └── number.cpp │ ├── .github │ │ ├── codecov.yml │ │ └── ISSUE_TEMPLATE │ │ │ ├── bug_report.md │ │ │ ├── feature_request.md │ │ │ └── config.yml │ ├── Analysis │ │ ├── src │ │ │ ├── Set.cpp │ │ │ ├── Unifiable.cpp │ │ │ └── TypeOrPack.cpp │ │ └── include │ │ │ └── Luau │ │ │ ├── AstJsonEncoder.h │ │ │ ├── Cancellation.h │ │ │ ├── TopoSortStatements.h │ │ │ ├── TypeAttach.h │ │ │ ├── TypeChecker2.h │ │ │ ├── NonStrictTypeChecker.h │ │ │ ├── GlobalTypes.h │ │ │ ├── TableLiteralInference.h │ │ │ ├── RequireTracer.h │ │ │ ├── ToDot.h │ │ │ ├── ControlFlow.h │ │ │ ├── Clone.h │ │ │ └── Transpiler.h │ ├── CLI │ │ ├── Flags.h │ │ ├── ReplEntry.cpp │ │ ├── Profiler.h │ │ ├── Coverage.h │ │ └── Repl.h │ ├── .gitignore │ ├── Ast │ │ └── include │ │ │ └── Luau │ │ │ ├── Confusables.h │ │ │ └── ParseOptions.h │ ├── VM │ │ └── src │ │ │ ├── lbytecode.h │ │ │ ├── lbuiltins.h │ │ │ ├── lapi.h │ │ │ ├── lbuffer.h │ │ │ ├── lbuffer.cpp │ │ │ └── ludata.h │ ├── CodeGen │ │ ├── include │ │ │ ├── Luau │ │ │ │ ├── OptimizeFinalX64.h │ │ │ │ ├── Label.h │ │ │ │ ├── OptimizeDeadStore.h │ │ │ │ ├── OptimizeConstProp.h │ │ │ │ ├── CodeBlockUnwind.h │ │ │ │ ├── BytecodeAnalysis.h │ │ │ │ └── CodeGenCommon.h │ │ │ └── luacodegen.h │ │ └── src │ │ │ ├── lcodegen.cpp │ │ │ ├── EmitBuiltinsX64.h │ │ │ ├── CodeGenA64.h │ │ │ ├── CodeGenX64.h │ │ │ ├── IrTranslateBuiltins.h │ │ │ └── EmitInstructionX64.h │ ├── Compiler │ │ └── src │ │ │ ├── BuiltinFolding.h │ │ │ └── TableShape.h │ └── .clang-format ├── Imgui │ ├── .github │ │ ├── FUNDING.yml │ │ ├── pull_request_template.md │ │ └── workflows │ │ │ └── scheduled.yml │ ├── misc │ │ ├── fonts │ │ │ ├── DroidSans.ttf │ │ │ ├── ProggyClean.ttf │ │ │ ├── ProggyTiny.ttf │ │ │ ├── Karla-Regular.ttf │ │ │ ├── Roboto-Medium.ttf │ │ │ └── Cousine-Regular.ttf │ │ ├── debuggers │ │ │ ├── README.txt │ │ │ └── imgui.gdb │ │ └── cpp │ │ │ └── README.txt │ ├── backends │ │ └── vulkan │ │ │ ├── generate_spv.sh │ │ │ ├── glsl_shader.frag │ │ │ └── glsl_shader.vert │ ├── CMakeLists.txt │ └── .gitattributes ├── cryptopp-cmake │ ├── cmake │ │ └── cmake_minimum_required.cmake │ ├── .commitlintrc.json │ ├── .husky │ │ └── commit-msg │ ├── .gitignore │ ├── .github │ │ ├── workflows │ │ │ └── commitlint.yml │ │ └── dependabot.yml │ ├── .vscode │ │ ├── extensions.json │ │ └── launch.json │ ├── cryptopp │ │ └── config.pc.in │ ├── .gitattributes │ └── test │ │ ├── integration │ │ ├── cmake │ │ │ └── CheckFileExists.cmake │ │ └── int-install-prefix │ │ │ └── main.cpp │ │ ├── unit │ │ └── include-prefix │ │ │ └── main.cpp │ │ ├── CMakeLists.txt │ │ └── example-src │ │ └── main.cpp ├── oxorany │ ├── CMakeLists.txt │ └── include │ │ └── oxorany.hpp └── Minhook │ ├── AUTHORS.txt │ ├── build │ └── MinGW │ │ └── make.bat │ ├── dll_resources │ └── MinHook.def │ ├── .editorconfig │ └── .gitignore ├── RBXScheduler.cpp ├── Environment ├── EnvironmentLibrary.cpp ├── ClosureLibrary.hpp ├── CryptLibrary.hpp ├── DebugLibrary.hpp ├── EnvironmentLibrary.hpp ├── Environment.hpp └── FilesystemLibrary.hpp ├── Scanner.hpp ├── vcpkg.json ├── Execution.hpp └── Communication.hpp /.idea/.name: -------------------------------------------------------------------------------- 1 | Module -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | cmake-*/ 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/Dockerfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/data/foo.txt: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: IXWebSocket 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | node_modules 3 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/8/0/80f2581eb38b017d8b02241cda6ab6d6098b3a04: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/8/e/8e8b97b7a96c5a14c3efc98cdaa493a3cbff9323: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/9/a/9a2aa4db38d3115ed60da621e012c0efc0172aae: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/a/7/a73efb24e04e8d3f62a96b1c5b41a708fbc3373b: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/b/1/b130d9617e9f6a3ab04c5a73ef91b93ff26a6d46: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/f/c/fc8a86f6633fd0026647eae96f54ce60b14a1da1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/empty_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/csharp/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/localhost.pem: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/0/b/0b9e907059c1c0769dadd25da507b0d7b9c6412c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/4/1/419ad2a11afced6a68d9746501279da8314131ae: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/6/8/682a50d19e416195436708e48c7761923b8d6651: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/7/9/797b27af03a05cbdffc6bb37887639c60859cd62: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/7/f/7f913e169ad9d5f82b59d62944c01b78fb3b7587: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/8/0/80f2581eb38b017d8b02241cda6ab6d6098b3a04: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/8/e/8e8b97b7a96c5a14c3efc98cdaa493a3cbff9323: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/9/a/9a2aa4db38d3115ed60da621e012c0efc0172aae: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/9/b/9b09d6b8583bdca9204d53fa34136530831aa653: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/a/7/a73efb24e04e8d3f62a96b1c5b41a708fbc3373b: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/a/d/ad16b893e36379cc17e7924bdc14c53b433d4467: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/b/1/b130d9617e9f6a3ab04c5a73ef91b93ff26a6d46: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/c/8/c8e76ac458d7869b0ee598f448c6d91bad339248: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/c/c/cc9be8f4de8a28d94196764c64ecd16f6d52405d: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/d/f/dfeffd3f67be0c4d6230343667202e050235e331: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/sonarlint/securityhotspotstore/f/c/fc8a86f6633fd0026647eae96f54ce60b14a1da1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/cobraMetricsSample.json: -------------------------------------------------------------------------------- 1 | {"foo": "bar", "baz": 123} 2 | -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/libcpr1.install: -------------------------------------------------------------------------------- 1 | usr/lib/*/*.so.* 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/DOCKER_VERSION: -------------------------------------------------------------------------------- 1 | 0.0.1 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/extern/.clang-format: -------------------------------------------------------------------------------- 1 | DisableFormat: true 2 | SortIncludes: false 3 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/luau/init.lua: -------------------------------------------------------------------------------- 1 | return {"wrong file"} 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tools/fuzz/requirements.txt: -------------------------------------------------------------------------------- 1 | Jinja2==3.1.2 2 | MarkupSafe==2.1.3 3 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/small_file: -------------------------------------------------------------------------------- 1 | not much in here 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/third_party/.clang-format: -------------------------------------------------------------------------------- 1 | DisableFormat: true 2 | SortIncludes: false 3 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/alias_requirer.luau: -------------------------------------------------------------------------------- 1 | return require("@dep") 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/lua/init.lua: -------------------------------------------------------------------------------- 1 | return {"result from init.lua"} 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/luau/init.luau: -------------------------------------------------------------------------------- 1 | return {"result from init.luau"} 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/.certs/trusted-ca-crt.srl: -------------------------------------------------------------------------------- 1 | 297E3BFAD1F1F96A60A2AF0F48B092E705C0C68A 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/.certs/untrusted-ca-crt.srl: -------------------------------------------------------------------------------- 1 | 5CB637D0B24622D344F4C956FE5930B22CF87221 2 | -------------------------------------------------------------------------------- /Dependencies/Imgui/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: ['https://github.com/ocornut/imgui/wiki/Sponsors'] 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/dependency.luau: -------------------------------------------------------------------------------- 1 | return {"result from dependency"} 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/dependency.luau: -------------------------------------------------------------------------------- 1 | return {"result from dependency"} 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/parent_alias_requirer.luau: -------------------------------------------------------------------------------- 1 | return require("@otherdep") 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/lua_dependency.lua: -------------------------------------------------------------------------------- 1 | return {"result from lua_dependency"} 2 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/cmake/cmake_minimum_required.cmake: -------------------------------------------------------------------------------- 1 | set(CRYPTOPP_MINIMUM_CMAKE_VERSION 3.20) 2 | -------------------------------------------------------------------------------- /RBXScheduler.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 13/4/2024. 3 | // 4 | 5 | #include "RBXScheduler.h" 6 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/ProjectLuauLibraries/library.luau: -------------------------------------------------------------------------------- 1 | return {"result from library"} 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/other_dependency.luau: -------------------------------------------------------------------------------- 1 | return {"result from other_dependency"} 2 | -------------------------------------------------------------------------------- /Dependencies/cpr/CppCheckSuppressions.txt: -------------------------------------------------------------------------------- 1 | noExplicitConstructor 2 | ConfigurationNotChecked 3 | passedByValue 4 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/payload.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/payload.h" 2 | 3 | namespace cpr { 4 | } // namespace cpr 5 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.dockerignore: -------------------------------------------------------------------------------- 1 | build 2 | CMakeCache.txt 3 | ws/CMakeCache.txt 4 | test/build 5 | makefile 6 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/parameters.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/parameters.h" 2 | 3 | namespace cpr { 4 | } // namespace cpr 5 | -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/libcpr-dev.install: -------------------------------------------------------------------------------- 1 | usr/include 2 | usr/lib/*/*.so 3 | usr/lib/*/cmake 4 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.commitlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "@commitlint/config-conventional" 4 | ] 5 | } -------------------------------------------------------------------------------- /.idea/StudioExecutor.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/GlobalLuauLibraries/global_library.luau: -------------------------------------------------------------------------------- 1 | return {"result from global_library"} 2 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/tools/extract_latest_change.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | grep -A 3 '^##' docs/CHANGELOG.md | head -n 3 | tail -n 1 4 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/install.sh: -------------------------------------------------------------------------------- 1 | python -m pip install matplotlib 2 | python -m pip install scipy 3 | python -m pip install requests 4 | -------------------------------------------------------------------------------- /Dependencies/cpr/nuget/resources/cpr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/cpr/nuget/resources/cpr.png -------------------------------------------------------------------------------- /Dependencies/Luau/bench/install.bat: -------------------------------------------------------------------------------- 1 | python -m pip install matplotlib 2 | python -m pip install scipy 3 | python -m pip install requests 4 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/pm.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Luau/tests/conformance/pm.lua -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/tools/extract_version.sh: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | 3 | grep VERSION ixwebsocket/IXWebSocketVersion.h | awk '{print $3}' | tr -d \" 4 | -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/DroidSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/DroidSans.ttf -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/ProggyClean.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/ProggyClean.ttf -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/ProggyTiny.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/ProggyTiny.ttf -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/basic.lua: -------------------------------------------------------------------------------- 1 | local function test(t) 2 | for k,v in pairs(t) do 3 | print(k,v) 4 | end 5 | end 6 | 7 | test({a = 1}) 8 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/sort.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Luau/tests/conformance/sort.lua -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/Karla-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/Karla-Regular.ttf -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/Roboto-Medium.ttf -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/strings.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Luau/tests/conformance/strings.lua -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/requirer.luau: -------------------------------------------------------------------------------- 1 | -- should be required using the paths array in .luaurc 2 | return require("library") 3 | -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/fonts/Cousine-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Imgui/misc/fonts/Cousine-Regular.ttf -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/literals.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/Dependencies/Luau/tests/conformance/literals.lua -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/fail_requirer.luau: -------------------------------------------------------------------------------- 1 | -- shouldn't attempt to search paths array because of "./" prefix 2 | return require("./library") 3 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/without_config/module.luau: -------------------------------------------------------------------------------- 1 | local result = require("dependency") 2 | result[#result+1] = "required into module" 3 | return result 4 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/keys/server.pub: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MCowBQYDK2VwAyEAjrglTlGN90QbUpAzFLkNBaSIaUohA7vJ7iY0Wr1CV5M= 3 | -----END PUBLIC KEY----- 4 | -------------------------------------------------------------------------------- /Dependencies/Luau/.github/codecov.yml: -------------------------------------------------------------------------------- 1 | comment: false 2 | coverage: 3 | status: 4 | patch: false 5 | project: 6 | default: 7 | informational: true 8 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/keys/client.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MC4CAQAwBQYDK2VwBCIEIPTCPxm8reXOE2aIrafTcibvg4f6Rg1/F2LVk12EILzJ 3 | -----END PRIVATE KEY----- 4 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/keys/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MC4CAQAwBQYDK2VwBCIEIGVXwKYyi/u52mmDVC56TSorC/GGNqgyiW4+jsDno81i 3 | -----END PRIVATE KEY----- 4 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/.luaurc: -------------------------------------------------------------------------------- 1 | { 2 | "paths": ["../ProjectLuauLibraries"], 3 | "aliases": { 4 | "dep": "dependency" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/keys/root-ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MC4CAQAwBQYDK2VwBCIEIHbCvDGMRz5Ky+7gJvQYZ5t+5sZyHI+UcAKWvS20CoLU 3 | -----END PRIVATE KEY----- 4 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir build 4 | cd build 5 | cmake -DCMAKE_BUILD_TYPE=Debug .. || exit 1 6 | make || exit 1 7 | 8 | ./ixwebsocket_unittest ${TEST} 9 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/proxyConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "remote_urls": { 3 | "echo.localhost:8008": "ws://localhost:8009", 4 | "cobra.localhost:8008": "ws://localhost:5678" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Dependencies/Luau/.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install commitlint -x $(npm root -g)/@commitlint/config-conventional --edit $1 5 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/src/global_library_requirer.luau: -------------------------------------------------------------------------------- 1 | -- should be required using the paths array in the parent directory's .luaurc 2 | return require("global_library") 3 | -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/0/b/0b9e907059c1c0769dadd25da507b0d7b9c6412c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/0/b/0b9e907059c1c0769dadd25da507b0d7b9c6412c -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/4/1/419ad2a11afced6a68d9746501279da8314131ae: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/4/1/419ad2a11afced6a68d9746501279da8314131ae -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/6/8/682a50d19e416195436708e48c7761923b8d6651: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/6/8/682a50d19e416195436708e48c7761923b8d6651 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/7/9/797b27af03a05cbdffc6bb37887639c60859cd62: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/7/9/797b27af03a05cbdffc6bb37887639c60859cd62 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/7/f/7f913e169ad9d5f82b59d62944c01b78fb3b7587: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/7/f/7f913e169ad9d5f82b59d62944c01b78fb3b7587 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/9/b/9b09d6b8583bdca9204d53fa34136530831aa653: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/9/b/9b09d6b8583bdca9204d53fa34136530831aa653 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/a/d/ad16b893e36379cc17e7924bdc14c53b433d4467: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/a/d/ad16b893e36379cc17e7924bdc14c53b433d4467 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/c/8/c8e76ac458d7869b0ee598f448c6d91bad339248: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/c/8/c8e76ac458d7869b0ee598f448c6d91bad339248 -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/c/c/cc9be8f4de8a28d94196764c64ecd16f6d52405d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/c/c/cc9be8f4de8a28d94196764c64ecd16f6d52405d -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/d/f/dfeffd3f67be0c4d6230343667202e050235e331: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SecondNewtonLaw/RbxStu/HEAD/.idea/sonarlint/issuestore/d/f/dfeffd3f67be0c4d6230343667202e050235e331 -------------------------------------------------------------------------------- /Dependencies/Luau/.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | *.pyc 3 | venv 4 | ixsnake/ixsnake/.certs/ 5 | site/ 6 | ws/.certs/ 7 | ws/.srl 8 | ixhttpd 9 | makefile 10 | a.out 11 | .idea/ 12 | cmake-build-debug/ 13 | -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/README.Debian: -------------------------------------------------------------------------------- 1 | libcpr for Debian 2 | 3 | A package of the libcpr library. 4 | 5 | -- Philip Saendig Tue, 24 May 2022 10:37:24 +0200 6 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/third_party/cpp-linenoise/example/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | include_directories(.) 3 | add_definitions("-std=c++1y") 4 | 5 | add_executable(example example.cpp) 6 | -------------------------------------------------------------------------------- /Environment/EnvironmentLibrary.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 25/11/2023. 3 | // 4 | 5 | #include "EnvironmentLibrary.hpp" 6 | 7 | void EnvironmentLibrary::register_environment(lua_State *L) { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/ruby/README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | export GEM_HOME=$HOME/local/gems 3 | bundle install faye-websocket 4 | ``` 5 | 6 | https://stackoverflow.com/questions/486995/ruby-equivalent-of-virtualenv 7 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/tools/trim_repo_for_docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Used to clean up some non essential folders to make the ws container 3 | 4 | rm -rf build 5 | rm -rf third_party/zlib 6 | rm -rf third_party/mbedtls 7 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/async.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/async.h" 2 | 3 | namespace cpr { 4 | 5 | // NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables) 6 | CPR_SINGLETON_IMPL(GlobalThreadPool) 7 | 8 | } // namespace cpr 9 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/unix_socket.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "cpr/unix_socket.h" 3 | 4 | namespace cpr { 5 | const char* UnixSocket::GetUnixSocketString() const noexcept { 6 | return unix_socket_.data(); 7 | } 8 | } // namespace cpr 9 | -------------------------------------------------------------------------------- /.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/Procfile: -------------------------------------------------------------------------------- 1 | nginx: nginx -p . -c nginx.conf 2 | websocket_server: python echo_server.py 3 | send: sleep 1 ; ws send -x --verify_none wss://localhost:8765 /usr/local/bin/ws 4 | -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/cprConfig.cmake.in: -------------------------------------------------------------------------------- 1 | include(CMakeFindDependencyMacro) 2 | @PACKAGE_INIT@ 3 | 4 | find_dependency(CURL REQUIRED) 5 | 6 | include(${CMAKE_CURRENT_LIST_DIR}/cprTargets.cmake) 7 | 8 | check_required_components(cpr) -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/changelog: -------------------------------------------------------------------------------- 1 | libcpr (%VERSION-1) UNRELEASED; urgency=low 2 | 3 | [ Philip Saendig ] 4 | * First package of libcpr %VERSION for debian. 5 | 6 | -- Philip Saendig %DATE 7 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/.gitignore: -------------------------------------------------------------------------------- 1 | CMakeCache.txt 2 | package-lock.json 3 | CMakeFiles 4 | ixwebsocket_unittest 5 | cmake_install.cmake 6 | node_modules 7 | ixwebsocket 8 | Makefile 9 | build 10 | ixwebsocket_unittest.xml 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/src/Set.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #include "Luau/Common.h" 4 | 5 | LUAU_FASTFLAGVARIABLE(LuauFixSetIter, false) 6 | -------------------------------------------------------------------------------- /Dependencies/Luau/CLI/Flags.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | void setLuauFlagsDefault(); 5 | void setLuauFlags(const char* list); 6 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/require/with_config/.luaurc: -------------------------------------------------------------------------------- 1 | { 2 | "paths": ["GlobalLuauLibraries"], 3 | "aliases": { 4 | "dep": "this_should_be_overwritten_by_child_luaurc", 5 | "otherdep": "src/other_dependency" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Dependencies/Luau/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /build[.-]*/ 3 | /coverage/ 4 | /.vs/ 5 | /.vscode/ 6 | /fuzz/luau.pb.* 7 | /crash-* 8 | /default.prof* 9 | /fuzz-* 10 | /luau 11 | /luau-tests 12 | /luau-analyze 13 | /luau-compile 14 | __pycache__ 15 | -------------------------------------------------------------------------------- /Dependencies/Luau/extern/isocline/.gitignore: -------------------------------------------------------------------------------- 1 | out/ 2 | build/ 3 | dist/ 4 | doc/html/ 5 | .vs/ 6 | .vscode/ 7 | .stack-work/ 8 | .DS_Store 9 | *.user 10 | *.exe 11 | *.hi 12 | *.o 13 | *_stub.h 14 | *.lock 15 | history.txt 16 | isocline.debug.txt -------------------------------------------------------------------------------- /Dependencies/oxorany/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.26) 2 | project(oxorany) 3 | 4 | set(CMAKE_CXX_STANDARD 23) 5 | 6 | add_library(oxorany STATIC oxorany.cpp oxorany.h) 7 | target_include_directories(oxorany PUBLIC "include/") 8 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket-config.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include(CMakeFindDependencyMacro) 4 | 5 | if (@USE_ZLIB@) 6 | find_dependency(ZLIB) 7 | endif() 8 | 9 | include("${CMAKE_CURRENT_LIST_DIR}/ixwebsocket-targets.cmake") 10 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/client.cnf: -------------------------------------------------------------------------------- 1 | # Based on https://www.feistyduck.com/library/openssl-cookbook/online/openssl-command-line/private-ca-create-subordinate.html 2 | [req] 3 | prompt = no 4 | distinguished_name = dn 5 | 6 | [dn] 7 | CN = test-client 8 | 9 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/csharp/devnull_client.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | netcoreapp3.1 5 | 6 | 7 | -------------------------------------------------------------------------------- /Dependencies/Luau/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Questions 4 | url: https://github.com/luau-lang/luau/discussions 5 | about: Please use GitHub Discussions if you have questions or need help. 6 | -------------------------------------------------------------------------------- /Dependencies/Luau/CLI/ReplEntry.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "Repl.h" 3 | 4 | int main(int argc, char** argv) 5 | { 6 | return replMain(argc, argv); 7 | } 8 | -------------------------------------------------------------------------------- /Dependencies/Minhook/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | Tsuda Kageyu 2 | Creator, maintainer 3 | 4 | Michael Maltsev 5 | Added "Queue" functions. A lot of bug fixes. 6 | 7 | Andrey Unis 8 | Rewrote the hook engine in plain C. 9 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.gitignore: -------------------------------------------------------------------------------- 1 | # Visual Studio 2015/2017 cache/options directory 2 | .vs/ 3 | .idea/ 4 | 5 | # Build directories 6 | build/ 7 | _build/ 8 | cmake-build*/ 9 | out 10 | 11 | # Mac garbage 12 | .DS_Store 13 | 14 | #vagrant 15 | .vagrant 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketVersion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketVersion.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #define IX_WEBSOCKET_VERSION "11.4.6" 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/third_party/remote_trailing_whitespaces.sh: -------------------------------------------------------------------------------- 1 | find . -type f -name '*.cpp' -exec sed -i '' 's/[[:space:]]*$//' {} \+ 2 | find . -type f -name '*.h' -exec sed -i '' 's/[[:space:]]*$//' {} \+ 3 | find . -type f -name '*.md' -exec sed -i '' 's/[[:space:]]*$//' {} \+ 4 | -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/syntax.dict: -------------------------------------------------------------------------------- 1 | "and" 2 | "break" 3 | "do" 4 | "else" 5 | "elseif" 6 | "end" 7 | "false" 8 | "for" 9 | "function" 10 | "if" 11 | "in" 12 | "local" 13 | "nil" 14 | "not" 15 | "or" 16 | "repeat" 17 | "return" 18 | "then" 19 | "true" 20 | "until" 21 | "while" 22 | -------------------------------------------------------------------------------- /Scanner.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 1/5/2024. 3 | // 4 | #pragma once 5 | 6 | class Scanner { 7 | private: 8 | static Scanner *m_pSingleton; 9 | Scanner() {} 10 | 11 | public: 12 | Scanner *get_singleton(); 13 | 14 | void scan_for_addresses(); 15 | }; 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXGetFreePort.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXGetFreePort.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | namespace ix 10 | { 11 | int getFreePort(); 12 | } // namespace ix 13 | -------------------------------------------------------------------------------- /Dependencies/Imgui/.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | (Click "Preview" to turn any http URL into a clickable link) 2 | 3 | 1. PLEASE CAREFULLY READ: [Contributing Guidelines](https://github.com/ocornut/imgui/blob/master/docs/CONTRIBUTING.md) 4 | 5 | 2. Clear this template before submitting your PR. 6 | 7 | -------------------------------------------------------------------------------- /Dependencies/Luau/Ast/include/Luau/Confusables.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | const char* findConfusable(uint32_t codepoint); 9 | } 10 | -------------------------------------------------------------------------------- /Dependencies/Luau/CLI/Profiler.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | struct lua_State; 5 | 6 | void profilerStart(lua_State* L, int frequency); 7 | void profilerStop(); 8 | void profilerDump(const char* path); 9 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.github/workflows/commitlint.yml: -------------------------------------------------------------------------------- 1 | name: Run commitlint on PR 2 | 3 | on: 4 | pull_request: 5 | 6 | jobs: 7 | run-commitlint-on-pr: 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v3 12 | - uses: wagoid/commitlint-github-action@v5 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Dependencies/Imgui/backends/vulkan/generate_spv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ## -V: create SPIR-V binary 3 | ## -x: save binary output as text-based 32-bit hexadecimal numbers 4 | ## -o: output file 5 | glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag 6 | glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert 7 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.3" 2 | services: 3 | push: 4 | entrypoint: ws push_server --host 0.0.0.0 5 | image: ${DOCKER_REPO}/ws:build 6 | 7 | autoroute: 8 | entrypoint: ws autoroute ws://push:8008 9 | image: ${DOCKER_REPO}/ws:build 10 | depends_on: 11 | - push 12 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXSetThreadName.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXSetThreadName.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | #pragma once 7 | #include 8 | 9 | namespace ix 10 | { 11 | void setThreadName(const std::string& name); 12 | } 13 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXUserAgent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXUserAgent.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | std::string userAgent(); 14 | } // namespace ix 15 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ------- | ------------------ | 7 | | 7.x.x | :white_check_mark: | 8 | 9 | ## Reporting a Vulnerability 10 | 11 | Users should send an email to bsergean@gmail.com to report a vulnerability. 12 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/reserve_size.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_RESERVE_SIZE_H 2 | #define CPR_RESERVE_SIZE_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class ReserveSize { 9 | public: 10 | ReserveSize(const size_t _size) : size(_size) {} 11 | 12 | size_t size = 0; 13 | }; 14 | 15 | } // namespace cpr 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /Environment/ClosureLibrary.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 25/11/2023. 3 | // 4 | 5 | #pragma once 6 | 7 | #include "EnvironmentLibrary.hpp" 8 | 9 | class ClosureLibrary final : public EnvironmentLibrary { 10 | public: 11 | virtual ~ClosureLibrary() = default; 12 | 13 | void register_environment(lua_State *L) override; 14 | }; 15 | -------------------------------------------------------------------------------- /Environment/CryptLibrary.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 28/4/2024. 3 | // 4 | #pragma once 5 | 6 | #include "EnvironmentLibrary.hpp" 7 | 8 | class CryptoLibrary final : public EnvironmentLibrary { 9 | protected: 10 | ~CryptoLibrary() = default; 11 | 12 | public: 13 | void register_environment(lua_State *L) override; 14 | }; 15 | -------------------------------------------------------------------------------- /Dependencies/Minhook/build/MinGW/make.bat: -------------------------------------------------------------------------------- 1 | windres -i ../../dll_resources/MinHook.rc -o MinHook_rc.o && dllwrap --driver-name g++ -o MinHook.dll -masm=intel --def ../../dll_resources/MinHook.def -Wl,-enable-stdcall-fixup -Wall MinHook_rc.o ../../src/*.c ../../src/HDE/*.c -I../../include -I../../src -Werror -std=c++11 -s -static-libgcc -static-libstdc++|| pause -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/multipart.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/multipart.h" 2 | 3 | namespace cpr { 4 | Multipart::Multipart(const std::initializer_list& p_parts) : parts{p_parts} {} 5 | Multipart::Multipart(const std::vector& p_parts) : parts{p_parts} {} 6 | Multipart::Multipart(const std::vector&& p_parts) : parts{p_parts} {} 7 | } // namespace cpr 8 | -------------------------------------------------------------------------------- /Environment/DebugLibrary.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 25/11/2023. 3 | // 4 | #pragma once 5 | 6 | 7 | #include "EnvironmentLibrary.hpp" 8 | 9 | class DebugLibrary final : public EnvironmentLibrary { 10 | protected: 11 | ~DebugLibrary() = default; 12 | 13 | public: 14 | void register_environment(lua_State *L) override; 15 | }; 16 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/curlmultiholder.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/curlmultiholder.h" 2 | 3 | #include 4 | 5 | namespace cpr { 6 | 7 | CurlMultiHolder::CurlMultiHolder() : handle{curl_multi_init()} { 8 | assert(handle); 9 | } 10 | 11 | CurlMultiHolder::~CurlMultiHolder() { 12 | curl_multi_cleanup(handle); 13 | } 14 | 15 | } // namespace cpr 16 | -------------------------------------------------------------------------------- /Dependencies/Imgui/backends/vulkan/glsl_shader.frag: -------------------------------------------------------------------------------- 1 | #version 450 core 2 | layout(location = 0) out vec4 fColor; 3 | 4 | layout(set=0, binding=0) uniform sampler2D sTexture; 5 | 6 | layout(location = 0) in struct { 7 | vec4 Color; 8 | vec2 UV; 9 | } In; 10 | 11 | void main() 12 | { 13 | fColor = In.Color * texture(sTexture, In.UV.st); 14 | } 15 | -------------------------------------------------------------------------------- /Dependencies/Minhook/dll_resources/MinHook.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | MH_Initialize 3 | MH_Uninitialize 4 | 5 | MH_CreateHook 6 | MH_CreateHookApi 7 | MH_CreateHookApiEx 8 | MH_RemoveHook 9 | MH_EnableHook 10 | MH_DisableHook 11 | MH_QueueEnableHook 12 | MH_QueueDisableHook 13 | MH_ApplyQueued 14 | MH_StatusToString 15 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/server.cnf: -------------------------------------------------------------------------------- 1 | # Based on https://www.feistyduck.com/library/openssl-cookbook/online/openssl-command-line/private-ca-create-subordinate.html 2 | [req] 3 | prompt = no 4 | distinguished_name = dn 5 | req_extensions = ext 6 | 7 | [dn] 8 | CN = test-server 9 | 10 | [ext] 11 | subjectAltName = DNS:localhost,IP:127.0.0.1,IP:::1 12 | 13 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXUuid.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXUuid.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017 Machine Zone. All rights reserved. 5 | */ 6 | #pragma once 7 | 8 | #include 9 | 10 | namespace ix 11 | { 12 | /** 13 | * Generate a random uuid 14 | */ 15 | std::string uuid4(); 16 | 17 | } // namespace ix 18 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/appsConfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "apps": { 3 | "FC2F10139A2BAc53BB72D9db967b024f": { 4 | "roles": { 5 | "_sub": { 6 | "secret": "66B1dA3ED5fA074EB5AE84Dd8CE3b5ba" 7 | }, 8 | "_pub": { 9 | "secret": "1c04DB8fFe76A4EeFE3E318C72d771db" 10 | } 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/node/echo_server.js: -------------------------------------------------------------------------------- 1 | const WebSocket = require('ws'); 2 | 3 | const wss = new WebSocket.Server({ port: 8080 }); 4 | 5 | wss.on('connection', function connection(ws) { 6 | ws.on('message', function incoming(message) { 7 | console.log('received: %s', message); 8 | }); 9 | 10 | ws.send('something'); 11 | }); 12 | -------------------------------------------------------------------------------- /Dependencies/Luau/CLI/Coverage.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | struct lua_State; 5 | 6 | void coverageInit(lua_State* L); 7 | bool coverageActive(); 8 | 9 | void coverageTrack(lua_State* L, int funcindex); 10 | void coverageDump(const char* path); 11 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/curlmultiholder.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_CURLMULTIHOLDER_H 2 | #define CPR_CURLMULTIHOLDER_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class CurlMultiHolder { 9 | public: 10 | CurlMultiHolder(); 11 | ~CurlMultiHolder(); 12 | 13 | CURLM* handle{nullptr}; 14 | }; 15 | 16 | } // namespace cpr 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "cheshirekow.cmake-format", 4 | "donjayamanne.githistory", 5 | "editorconfig.editorconfig", 6 | "ms-vscode.cmake-tools", 7 | "redhat.vscode-yaml", 8 | "stkb.rewrap", 9 | "streetsidesoftware.code-spell-checker", 10 | ] 11 | } -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/lbytecode.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | // This code is based on Lua 5.x implementation licensed under MIT License; see lua_LICENSE.txt for details 3 | #pragma once 4 | 5 | // This is a forwarding header for Luau bytecode definition 6 | #include "Luau/Bytecode.h" 7 | -------------------------------------------------------------------------------- /Dependencies/Imgui/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(Imgui LANGUAGES CXX) 4 | 5 | set(PROJECT Imgui) 6 | set(CMAKE_CXX_STANDARD 23) 7 | 8 | file(GLOB IMGUI_SOURCES *.cpp *.h *.hpp) 9 | 10 | add_library(${PROJECT} STATIC 11 | ${IMGUI_SOURCES} 12 | ) 13 | 14 | target_include_directories(${PROJECT} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_linux.yml: -------------------------------------------------------------------------------- 1 | name: linux 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | linux: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - name: make test 15 | run: make -f makefile.dev test 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | repos: 2 | - repo: https://github.com/pre-commit/pre-commit-hooks 3 | rev: v2.5.0 4 | hooks: 5 | - id: check-yaml 6 | - id: end-of-file-fixer 7 | - id: trailing-whitespace 8 | - repo: https://github.com/pocc/pre-commit-hooks 9 | rev: v1.1.1 10 | hooks: 11 | - id: clang-format 12 | args: [-i, -style=file] 13 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: ixwebsocket 7 | Description: websocket and http client and server library, with TLS support and very few dependencies 8 | Version: @CMAKE_PROJECT_VERSION@ 9 | Libs: -L${libdir} -lixwebsocket 10 | Cflags: -I${includedir} 11 | Requires: @requires@ 12 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/node/echo_server_permessagedeflate.js: -------------------------------------------------------------------------------- 1 | const WebSocket = require('ws'); 2 | 3 | const wss = new WebSocket.Server({ port: 8080, perMessageDeflate: true }); 4 | 5 | wss.on('connection', function connection(ws) { 6 | ws.on('message', function incoming(message) { 7 | console.log('received: %s', message); 8 | }); 9 | 10 | ws.send('something'); 11 | }); 12 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/OptimizeFinalX64.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/IrData.h" 5 | 6 | namespace Luau 7 | { 8 | namespace CodeGen 9 | { 10 | 11 | void optimizeMemoryOperandsX64(IrFunction& function); 12 | 13 | } // namespace CodeGen 14 | } // namespace Luau 15 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_linux_asan.yml: -------------------------------------------------------------------------------- 1 | name: linux_asan 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | linux: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - name: make test_asan 15 | run: make -f makefile.dev test_asan 16 | -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/cppcheck.cmake: -------------------------------------------------------------------------------- 1 | find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck) 2 | if(CMAKE_CXX_CPPCHECK) 3 | list(APPEND CMAKE_CXX_CPPCHECK 4 | "--error-exitcode=1" 5 | "--enable=warning,style" 6 | "--force" 7 | "--inline-suppr" 8 | "--std=c++${CMAKE_CXX_STANDARD}" 9 | "--suppressions-list=${CMAKE_SOURCE_DIR}/CppCheckSuppressions.txt") 10 | endif() 11 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/low_speed.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_LOW_SPEED_H 2 | #define CPR_LOW_SPEED_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class LowSpeed { 9 | public: 10 | LowSpeed(const std::int32_t p_limit, const std::int32_t p_time) : limit(p_limit), time(p_time) {} 11 | 12 | std::int32_t limit; 13 | std::int32_t time; 14 | }; 15 | 16 | } // namespace cpr 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXGzipCodec.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXGzipCodec.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | std::string gzipCompress(const std::string& str); 14 | bool gzipDecompress(const std::string& in, std::string& out); 15 | } // namespace ix 16 | -------------------------------------------------------------------------------- /vcpkg.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", 3 | "dependencies": [ 4 | { 5 | "name": "openssl", 6 | "platform": "(windows & x64)" 7 | }, 8 | { 9 | "name": "zlib", 10 | "platform": "(windows & x64)" 11 | }, 12 | { 13 | "name": "lz4", 14 | "platform": "(windows & x64)" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/third_party/README.md: -------------------------------------------------------------------------------- 1 | # Note 2 | 3 | Except *zlib* and *mbedtls* on Windows, all dependencies here are for the ws command line tools, not for the IXWebSockets library which is standalone. 4 | 5 | ## MbedTLS 6 | 7 | A small CMakeLists.txt fix had to be done so that the library can be included with "include_directory" in the top level CMakeLists.txt file. See https://github.com/ARMmbed/mbedtls/issues/2609 8 | -------------------------------------------------------------------------------- /Dependencies/Imgui/.github/workflows/scheduled.yml: -------------------------------------------------------------------------------- 1 | # 2 | # This is a dummy workflow used to trigger scheduled builds. Forked repositories most likely should disable this 3 | # workflow to avoid daily builds of inactive repositories. 4 | # 5 | name: scheduled 6 | 7 | on: 8 | schedule: 9 | - cron: '0 9 * * *' 10 | 11 | jobs: 12 | scheduled: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - run: exit 0 16 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/ClassFixture.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Fixture.h" 5 | 6 | namespace Luau 7 | { 8 | 9 | struct ClassFixture : BuiltinsFixture 10 | { 11 | ClassFixture(); 12 | 13 | TypeId vector2Type; 14 | TypeId vector2InstanceType; 15 | }; 16 | 17 | } // namespace Luau 18 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/Label.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | namespace CodeGen 9 | { 10 | 11 | struct Label 12 | { 13 | uint32_t id = 0; 14 | uint32_t location = ~0u; 15 | }; 16 | 17 | } // namespace CodeGen 18 | } // namespace Luau 19 | -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/compiler.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include 3 | #include "Luau/Compiler.h" 4 | #include "Luau/Common.h" 5 | 6 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) 7 | { 8 | Luau::compile(std::string(reinterpret_cast(Data), Size)); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/OptimizeDeadStore.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/IrData.h" 5 | 6 | namespace Luau 7 | { 8 | namespace CodeGen 9 | { 10 | 11 | struct IrBuilder; 12 | 13 | void markDeadStoresInBlockChains(IrBuilder& build); 14 | 15 | } // namespace CodeGen 16 | } // namespace Luau 17 | -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/transpiler.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include 3 | #include "Luau/Transpiler.h" 4 | #include "Luau/Common.h" 5 | 6 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) 7 | { 8 | Luau::transpile(std::string_view(reinterpret_cast(Data), Size)); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /Environment/EnvironmentLibrary.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 25/11/2023. 3 | // 4 | #pragma once 5 | 6 | 7 | #include "lstate.h" 8 | 9 | /* 10 | * This class defines the contract required to export environment functions as a "library". 11 | */ 12 | class EnvironmentLibrary { 13 | protected: 14 | ~EnvironmentLibrary() = default; 15 | 16 | public: 17 | virtual void register_environment(lua_State *L); 18 | }; 19 | 20 | -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/mongoose.CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | project(mongoose C) 3 | 4 | 5 | add_library(mongoose STATIC mongoose.c) 6 | target_include_directories(mongoose PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | if(ENABLE_SSL_TESTS) 9 | # Enable mongoose SSL 10 | target_compile_definitions(mongoose PUBLIC MG_ENABLE_OPENSSL) 11 | target_link_libraries(mongoose PRIVATE OpenSSL::SSL) 12 | endif() 13 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/cprtypes.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/cprtypes.h" 2 | 3 | #include 4 | #include 5 | 6 | namespace cpr { 7 | bool CaseInsensitiveCompare::operator()(const std::string& a, const std::string& b) const noexcept { 8 | return std::lexicographical_compare(a.begin(), a.end(), b.begin(), b.end(), [](unsigned char ac, unsigned char bc) { return std::tolower(ac) < std::tolower(bc); }); 9 | } 10 | } // namespace cpr 11 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/auth.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/auth.h" 2 | #include "cpr/util.h" 3 | 4 | namespace cpr { 5 | Authentication::~Authentication() noexcept { 6 | util::secureStringClear(auth_string_); 7 | } 8 | 9 | const char* Authentication::GetAuthString() const noexcept { 10 | return auth_string_.c_str(); 11 | } 12 | 13 | AuthMode Authentication::GetAuthMode() const noexcept { 14 | return auth_mode_; 15 | } 16 | } // namespace cpr 17 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/limit_rate.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_SPEED_LIMIT_H 2 | #define CPR_SPEED_LIMIT_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class LimitRate { 9 | public: 10 | LimitRate(const std::int64_t p_downrate, const std::int64_t p_uprate) : downrate(p_downrate), uprate(p_uprate) {} 11 | 12 | std::int64_t downrate = 0; 13 | std::int64_t uprate = 0; 14 | }; 15 | 16 | } // namespace cpr 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/verbose.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_VERBOSE_H_ 2 | #define CPR_VERBOSE_H_ 3 | 4 | namespace cpr { 5 | 6 | class Verbose { 7 | public: 8 | Verbose() = default; 9 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) 10 | Verbose(const bool p_verbose) : verbose{p_verbose} {} 11 | 12 | bool verbose = true; 13 | }; 14 | 15 | } // namespace cpr 16 | 17 | 18 | #endif /* CPR_VERBOSE_H_ */ 19 | -------------------------------------------------------------------------------- /Dependencies/Luau/Compiler/src/BuiltinFolding.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "ConstantFolding.h" 5 | 6 | namespace Luau 7 | { 8 | namespace Compile 9 | { 10 | 11 | Constant foldBuiltin(int bfid, const Constant* args, size_t count); 12 | Constant foldBuiltinMath(AstName index); 13 | 14 | } // namespace Compile 15 | } // namespace Luau 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXProgressCallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXProgressCallback.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | namespace ix 13 | { 14 | using OnProgressCallback = std::function; 15 | using OnChunkCallback = std::function; 16 | } 17 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXSelectInterruptFactory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXSelectInterruptFactory.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | class SelectInterrupt; 14 | using SelectInterruptPtr = std::unique_ptr; 15 | SelectInterruptPtr createSelectInterrupt(); 16 | } // namespace ix 17 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.8.0-alpine3.10 2 | 3 | RUN pip install websockets 4 | 5 | COPY vendor/protocol.py /usr/local/lib/python3.8/site-packages/websockets/protocol.py 6 | 7 | COPY *.py /usr/bin/ 8 | COPY entrypoint.sh /usr/bin/ 9 | RUN chmod +x /usr/bin/*.py 10 | 11 | RUN mkdir /certs 12 | COPY *.pem /certs/ 13 | 14 | WORKDIR /certs 15 | 16 | EXPOSE 8765 8766 17 | CMD ["sh", "/usr/bin/entrypoint.sh"] 18 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_mac_tsan_sectransport.yml: -------------------------------------------------------------------------------- 1 | name: mac_tsan_sectransport 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | mac_tsan_sectransport: 10 | runs-on: macOS-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - name: make test_tsan_sectransport 15 | run: make -f makefile.dev test_tsan_sectransport 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case $MODE in 4 | echo_server) 5 | python /usr/bin/echo_server.py 6 | ;; 7 | echo_server_ssl) 8 | python /usr/bin/echo_server_ssl.py 9 | ;; 10 | broadcast_server) 11 | python /usr/bin/broadcast_server.py 12 | ;; 13 | broadcast_server_ssl) 14 | python /usr/bin/broadcast_server_ssl.py 15 | ;; 16 | esac 17 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/AstJsonEncoder.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | #include 6 | 7 | namespace Luau 8 | { 9 | 10 | class AstNode; 11 | struct Comment; 12 | 13 | std::string toJson(AstNode* node); 14 | std::string toJson(AstNode* node, const std::vector& commentLocations); 15 | 16 | } // namespace Luau 17 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/parameters.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_PARAMETERS_H 2 | #define CPR_PARAMETERS_H 3 | 4 | #include 5 | 6 | #include "cpr/curl_container.h" 7 | 8 | namespace cpr { 9 | 10 | class Parameters : public CurlContainer { 11 | public: 12 | Parameters() = default; 13 | Parameters(const std::initializer_list& parameters) : CurlContainer(parameters) {} 14 | }; 15 | 16 | } // namespace cpr 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXUniquePtr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXUniquePtr.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | template 14 | std::unique_ptr make_unique(Args&&... args) 15 | { 16 | return std::unique_ptr(new T(std::forward(args)...)); 17 | } 18 | } // namespace ix 19 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/bearer.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/bearer.h" 2 | #include "cpr/util.h" 3 | 4 | namespace cpr { 5 | // Only supported with libcurl >= 7.61.0. 6 | // As an alternative use SetHeader and add the token manually. 7 | #if LIBCURL_VERSION_NUM >= 0x073D00 8 | Bearer::~Bearer() noexcept { 9 | util::secureStringClear(token_string_); 10 | } 11 | 12 | const char* Bearer::GetToken() const noexcept { 13 | return token_string_.c_str(); 14 | } 15 | #endif 16 | } // namespace cpr 17 | -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/lbuiltins.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | // This code is based on Lua 5.x implementation licensed under MIT License; see lua_LICENSE.txt for details 3 | #pragma once 4 | 5 | #include "lobject.h" 6 | 7 | typedef int (*luau_FastFunction)(lua_State* L, StkId res, TValue* arg0, int nresults, StkId args, int nparams); 8 | 9 | extern const luau_FastFunction luauF_table[256]; 10 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketMessageType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketMessageType.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | namespace ix 10 | { 11 | enum class WebSocketMessageType 12 | { 13 | Message = 0, 14 | Open = 1, 15 | Close = 2, 16 | Error = 3, 17 | Ping = 4, 18 | Pong = 5, 19 | Fragment = 6 20 | }; 21 | } 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/ndebug_upvalues.lua: -------------------------------------------------------------------------------- 1 | -- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | -- This tests that the lua_*upval() APIs work correctly even with debug info disabled 3 | local foo = 5 4 | function clo_test() 5 | -- so `foo` gets captured as an upval 6 | print(foo) 7 | -- yield so we can look at clo_test's upvalues 8 | coroutine.yield() 9 | end 10 | 11 | clo_test() 12 | 13 | return 'OK' 14 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/multiasync_tests.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | class TestSynchronizationEnv : public testing::Environment { 8 | public: 9 | std::atomic_size_t counter{0}; 10 | std::atomic_bool fn_called{false}; 11 | std::condition_variable test_cv{}; 12 | std::mutex test_cv_mutex{}; 13 | 14 | void Reset() { 15 | counter = 0; 16 | fn_called = false; 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_mac_tsan_mbedtls.yml: -------------------------------------------------------------------------------- 1 | name: mac_tsan_mbedtls 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | mac_tsan_mbedtls: 10 | runs-on: macOS-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - name: install mbedtls 15 | run: brew install mbedtls 16 | - name: make test 17 | run: make -f makefile.dev test_tsan_mbedtls 18 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Assert.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=-500000,500000 do assert(i) end 8 | local ts1 = os.clock() 9 | 10 | return ts1-ts0 11 | end 12 | 13 | bench.runCode(test, "Assert") -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/libprotobuf-mutator-patch.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index 4805c82..9f0df5c 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -149,7 +149,6 @@ add_subdirectory(src) 6 | 7 | if (NOT "${LIB_PROTO_MUTATOR_FUZZER_LIBRARIES}" STREQUAL "" OR 8 | NOT "${FUZZING_FLAGS}" STREQUAL "") 9 | - add_subdirectory(examples EXCLUDE_FROM_ALL) 10 | endif() 11 | 12 | install(EXPORT libprotobuf-mutatorTargets FILE libprotobuf-mutatorTargets.cmake 13 | -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/clear_variable.cmake: -------------------------------------------------------------------------------- 1 | macro(clear_variable) 2 | cmake_parse_arguments(CLEAR_VAR "" "DESTINATION;BACKUP;REPLACE" "" ${ARGN}) 3 | set(${CLEAR_VAR_BACKUP} ${${CLEAR_VAR_DESTINATION}}) 4 | set(${CLEAR_VAR_DESTINATION} ${CLEAR_VAR_REPLACE}) 5 | endmacro() 6 | 7 | macro(restore_variable) 8 | cmake_parse_arguments(CLEAR_VAR "" "DESTINATION;BACKUP" "" ${ARGN}) 9 | set(${CLEAR_VAR_DESTINATION} ${${CLEAR_VAR_BACKUP}}) 10 | unset(${CLEAR_VAR_BACKUP}) 11 | endmacro() 12 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_mac_tsan_openssl.yml: -------------------------------------------------------------------------------- 1 | name: mac_tsan_openssl 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | mac_tsan_openssl: 10 | runs-on: macOS-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - name: install openssl 15 | run: brew install openssl@1.1 16 | - name: make test 17 | run: make -f makefile.dev test_tsan_openssl 18 | -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/debian-libcpr/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | export DH_VERBOSE = 1 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all 4 | export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 5 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 6 | 7 | %: 8 | dh $@ 9 | 10 | override_dh_auto_configure: 11 | dh_auto_configure -- \ 12 | -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)" -DCMAKE_BUILD_TYPE=Release \ 13 | -DCPR_USE_SYSTEM_CURL=ON -DCURL_ZLIB=OFF -DBUILD_SHARED_LIBS=ON 14 | 15 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableCreate_nil.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do table.create(100) end 8 | local ts1 = os.clock() 9 | 10 | return ts1-ts0 11 | end 12 | 13 | bench.runCode(test, "TableCreate: nil") -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/cryptopp/config.pc.in: -------------------------------------------------------------------------------- 1 | # Crypto++ package configuration file 2 | 3 | prefix=@CMAKE_INSTALL_PREFIX@ 4 | libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ 5 | includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ 6 | datadir=${prefix}/@CMAKE_INSTALL_DATAROOTDIR@/cryptopp 7 | 8 | Name: Crypto++ 9 | URL: https://cryptopp.com/ 10 | Description: Crypto++ cryptographic library (built with CMake) 11 | Version: @cryptopp-cmake_VERSION@ 12 | 13 | Cflags: -I${includedir} 14 | Libs: -L${libdir} @MODULE_LINK_LIBS@ 15 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/src/Unifiable.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "Luau/Unifiable.h" 3 | 4 | namespace Luau 5 | { 6 | namespace Unifiable 7 | { 8 | 9 | static int nextIndex = 0; 10 | 11 | int freshIndex() 12 | { 13 | return ++nextIndex; 14 | } 15 | 16 | Error::Error() 17 | : index(++nextIndex) 18 | { 19 | } 20 | 21 | int Error::nextIndex = 0; 22 | 23 | } // namespace Unifiable 24 | } // namespace Luau 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/OptimizeConstProp.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/IrData.h" 5 | 6 | namespace Luau 7 | { 8 | namespace CodeGen 9 | { 10 | 11 | struct IrBuilder; 12 | 13 | void constPropInBlockChains(IrBuilder& build, bool useValueNumbering); 14 | void createLinearBlocks(IrBuilder& build, bool useValueNumbering); 15 | 16 | } // namespace CodeGen 17 | } // namespace Luau 18 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableCreate_number.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do table.create(100,0) end 8 | local ts1 = os.clock() 9 | 10 | return ts1-ts0 11 | end 12 | 13 | bench.runCode(test, "TableCreate: number") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableCreate_nil.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do table.create(100) end 8 | local ts1 = os.clock() 9 | 10 | return ts1-ts0 11 | end 12 | 13 | bench.runCode(test, "TableCreate: nil") -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/local_port.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_LOCAL_PORT_H 2 | #define CPR_LOCAL_PORT_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class LocalPort { 9 | public: 10 | // NOLINTNEXTLINE(google-explicit-constructor) 11 | LocalPort(const std::uint16_t p_localport) : localport_(p_localport) {} 12 | 13 | operator std::uint16_t() const { 14 | return localport_; 15 | } 16 | 17 | private: 18 | std::uint16_t localport_ = 0; 19 | }; 20 | 21 | } // namespace cpr 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXCancellationRequest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXCancellationRequest.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | namespace ix 13 | { 14 | using CancellationRequest = std::function; 15 | 16 | CancellationRequest makeCancellationRequestWithTimeout( 17 | int seconds, std::atomic& requestInitCancellation); 18 | } // namespace ix 19 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableCreate_number.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do table.create(100,0) end 8 | local ts1 = os.clock() 9 | 10 | return ts1-ts0 11 | end 12 | 13 | bench.runCode(test, "TableCreate: number") -------------------------------------------------------------------------------- /Dependencies/Minhook/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Windows-style newlines with a newline ending every file 7 | [*] 8 | end_of_line = crlf 9 | insert_final_newline = true 10 | 11 | # 4 space indentation 12 | [*.{c,h,def}] 13 | indent_style = space 14 | indent_size = 4 15 | 16 | # Trim trailing whitespaces 17 | [*.{c,h,def,txt}] 18 | trim_trailing_whitespace = true 19 | 20 | # UTF-8 with BOM 21 | [*.{c,h,def,txt}] 22 | charset=utf-8-bom 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_SqrtSum_exponent.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | local sum = 0 8 | for i=0,500000 do sum = sum + i^0.5 end 9 | local ts1 = os.clock() 10 | 11 | return ts1-ts0 12 | end 13 | 14 | bench.runCode(test, "SqrtSum: ^0.5") -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/unix_socket.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_UNIX_SOCKET_H 2 | #define CPR_UNIX_SOCKET_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class UnixSocket { 9 | public: 10 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) 11 | UnixSocket(std::string unix_socket) : unix_socket_(std::move(unix_socket)) {} 12 | 13 | const char* GetUnixSocketString() const noexcept; 14 | 15 | private: 16 | const std::string unix_socket_; 17 | }; 18 | 19 | } // namespace cpr 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/Cancellation.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | 9 | struct FrontendCancellationToken 10 | { 11 | void cancel() 12 | { 13 | cancelled.store(true); 14 | } 15 | 16 | bool requested() 17 | { 18 | return cancelled.load(); 19 | } 20 | 21 | std::atomic cancelled; 22 | }; 23 | 24 | } // namespace Luau 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/RegisterCallbacks.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #include "RegisterCallbacks.h" 4 | 5 | namespace Luau 6 | { 7 | 8 | std::unordered_set& getRegisterCallbacks() 9 | { 10 | static std::unordered_set cbs; 11 | return cbs; 12 | } 13 | 14 | int addTestCallback(RegisterCallback cb) 15 | { 16 | getRegisterCallbacks().insert(cb); 17 | return 0; 18 | } 19 | 20 | } // namespace Luau 21 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/lcodegen.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "luacodegen.h" 3 | 4 | #include "Luau/CodeGen.h" 5 | 6 | #include "lapi.h" 7 | 8 | int luau_codegen_supported() 9 | { 10 | return Luau::CodeGen::isSupported(); 11 | } 12 | 13 | void luau_codegen_create(lua_State* L) 14 | { 15 | Luau::CodeGen::create(L); 16 | } 17 | 18 | void luau_codegen_compile(lua_State* L, int idx) 19 | { 20 | Luau::CodeGen::compile(L, idx); 21 | } 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/lapi.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | // This code is based on Lua 5.x implementation licensed under MIT License; see lua_LICENSE.txt for details 3 | #pragma once 4 | 5 | #include "lobject.h" 6 | 7 | LUAI_FUNC const TValue* luaA_toobject(lua_State* L, int idx); 8 | LUAI_FUNC void luaA_pushobject(lua_State* L, const TValue* o); 9 | 10 | #define lua_toclosure(L, idx) const_cast(reinterpret_cast(lua_topointer(L, idx))) 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_AbsSum_math_abs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | local sum = 0 8 | for i=-500000,500000 do sum = sum + math.abs(i) end 9 | local ts1 = os.clock() 10 | 11 | return ts1-ts0 12 | end 13 | 14 | bench.runCode(test, "AbsSum: math.abs") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_SqrtSum_math_sqrt.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | local sum = 0 8 | for i=0,500000 do sum = sum + math.sqrt(i) end 9 | local ts1 = os.clock() 10 | 11 | return ts1-ts0 12 | end 13 | 14 | bench.runCode(test, "SqrtSum: math.sqrt") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXExponentialBackoff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXExponentialBackoff.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | uint32_t calculateRetryWaitMilliseconds(uint32_t retryCount, 14 | uint32_t maxWaitBetweenReconnectionRetries, 15 | uint32_t minWaitBetweenReconnectionRetries); 16 | } // namespace ix 17 | -------------------------------------------------------------------------------- /Dependencies/Imgui/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.c text 4 | *.cpp text 5 | *.h text 6 | *.m text 7 | *.mm text 8 | *.md text 9 | *.txt text 10 | *.html text 11 | *.bat text 12 | *.frag text 13 | *.vert text 14 | *.mkb text 15 | *.icf text 16 | 17 | *.sln text eol=crlf 18 | *.vcxproj text eol=crlf 19 | *.vcxproj.filters text eol=crlf 20 | *.natvis text eol=crlf 21 | 22 | Makefile text eol=lf 23 | *.sh text eol=lf 24 | *.pbxproj text eol=lf 25 | *.storyboard text eol=lf 26 | *.plist text eol=lf 27 | 28 | *.png binary 29 | *.ttf binary 30 | *.lib binary 31 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_AbsSum_and_or.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | local sum = 0 8 | for i=-500000,500000 do sum = sum + (i < 0 and -i or i) end 9 | local ts1 = os.clock() 10 | 11 | return ts1-ts0 12 | end 13 | 14 | bench.runCode(test, "AbsSum: and/or") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Pcall_call_return.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() return 1 end 7 | 8 | local ts0 = os.clock() 9 | for i=0,100000 do test() end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "Pcall: call return") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/CMake/FindSpdLog.cmake: -------------------------------------------------------------------------------- 1 | # Find package structure taken from libcurl 2 | 3 | include(FindPackageHandleStandardArgs) 4 | 5 | find_path(SPDLOG_INCLUDE_DIRS spdlog/spdlog.h) 6 | find_library(JSONCPP_LIBRARY spdlog) 7 | 8 | find_package_handle_standard_args(SPDLOG 9 | FOUND_VAR 10 | SPDLOG_FOUND 11 | REQUIRED_VARS 12 | SPDLOG_LIBRARY 13 | SPDLOG_INCLUDE_DIRS 14 | FAIL_MESSAGE 15 | "Could NOT find spdlog" 16 | ) 17 | 18 | set(SPDLOG_INCLUDE_DIRS ${SPDLOG_INCLUDE_DIRS}) 19 | set(SPDLOG_LIBRARIES ${SPDLOG_LIBRARY}) 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/TopoSortStatements.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | 9 | template 10 | struct AstArray; 11 | 12 | class AstStat; 13 | 14 | bool containsFunctionCall(const AstStat& stat); 15 | bool containsFunctionCallOrReturn(const AstStat& stat); 16 | bool isFunction(const AstStat& stat); 17 | void toposort(std::vector& stats); 18 | 19 | } // namespace Luau 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_LargeTableCtor_hash.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do 8 | local t = { a = 1, b = 2, c = 3, d = 4, e = 5, f = 6 } 9 | end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "LargeTableCtor: hash") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Pcall_pcall_return.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() return 1 end 7 | 8 | local ts0 = os.clock() 9 | for i=0,100000 do pcall(test) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "Pcall: pcall return") -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/parser.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include 3 | #include "Luau/Parser.h" 4 | #include "Luau/Common.h" 5 | 6 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) 7 | { 8 | Luau::ParseOptions options; 9 | 10 | Luau::Allocator allocator; 11 | Luau::AstNameTable names(allocator); 12 | 13 | Luau::Parser::parse(reinterpret_cast(Data), Size, names, allocator, options); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketErrorInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketErrorInfo.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | namespace ix 13 | { 14 | struct WebSocketErrorInfo 15 | { 16 | uint32_t retries = 0; 17 | double wait_time = 0; 18 | int http_status = 0; 19 | std::string reason; 20 | bool decompressionError = false; 21 | }; 22 | } // namespace ix 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/Compiler/src/TableShape.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Ast.h" 5 | #include "Luau/DenseHash.h" 6 | 7 | namespace Luau 8 | { 9 | namespace Compile 10 | { 11 | 12 | struct TableShape 13 | { 14 | unsigned int arraySize = 0; 15 | unsigned int hashSize = 0; 16 | }; 17 | 18 | void predictTableShapes(DenseHashMap& shapes, AstNode* root); 19 | 20 | } // namespace Compile 21 | } // namespace Luau 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableCreate_zerofill.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do 8 | local t = table.create(100) 9 | for j=1,100 do t[j] = 0 end 10 | end 11 | local ts1 = os.clock() 12 | 13 | return ts1-ts0 14 | end 15 | 16 | bench.runCode(test, "TableCreate: zerofill") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_AbsSum_abs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local abs = math.abs 7 | local ts0 = os.clock() 8 | local sum = 0 9 | for i=-500000,500000 do sum = sum + abs(i) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "AbsSum: abs") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Failure_pcall_a_bar.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test(a) return a.bar end 7 | 8 | local ts0 = os.clock() 9 | for i=0,10000 do pcall(test) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "Failure: pcall a.bar") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_SqrtSum_sqrt.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local sqrt = math.sqrt 7 | local ts0 = os.clock() 8 | local sum = 0 9 | for i=0,500000 do sum = sum + sqrt(i) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "SqrtSum: sqrt") -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/clang-tidy.cmake: -------------------------------------------------------------------------------- 1 | if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 2 | find_program(CLANG_TIDY_EXECUTABLE NAMES clang-tidy) 3 | mark_as_advanced(CLANG_TIDY_EXECUTABLE) 4 | 5 | if (${CLANG_TIDY_EXECUTABLE}) 6 | message(FATAL_ERROR "Clang-tidy not found") 7 | else() 8 | message(STATUS "Enabling clang-tidy") 9 | set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE};-warnings-as-errors=*") 10 | endif() 11 | else() 12 | message(FATAL_ERROR "Clang-tidy is not supported when building for windows") 13 | endif() 14 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_LargeTableCtor_hash.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do 8 | local t = { a = 1, b = 2, c = 3, d = 4, e = 5, f = 6 } 9 | end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "LargeTableCtor: hash") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Pcall_xpcall_return.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() return 1 end 7 | 8 | local ts0 = os.clock() 9 | for i=0,100000 do xpcall(test, error) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "Pcall: xpcall return") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableCreate_zerofill.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | for i=1,100000 do 8 | local t = table.create(100) 9 | for j=1,100 do t[j] = 0 end 10 | end 11 | local ts1 = os.clock() 12 | 13 | return ts1-ts0 14 | end 15 | 16 | bench.runCode(test, "TableCreate: zerofill") -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behavior to automatically normalize line endings. 2 | * text=auto eol=lf 3 | 4 | # Force batch scripts to always use CRLF line endings so that if a repo is accessed 5 | # in Windows via a file share from Linux, the scripts will work. 6 | *.{cmd,[cC][mM][dD]} text eol=crlf 7 | *.{bat,[bB][aA][tT]} text eol=crlf 8 | 9 | # Force bash scripts to always use LF line endings so that if a repo is accessed 10 | # in Unix via a file share from Windows, the scripts will work. 11 | *.sh text eol=lf 12 | .husky/commit-msg eol=lf 13 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/CMake/FindDeflate.cmake: -------------------------------------------------------------------------------- 1 | # Find package structure taken from libcurl 2 | 3 | include(FindPackageHandleStandardArgs) 4 | 5 | find_path(DEFLATE_INCLUDE_DIRS libdeflate.h) 6 | find_library(DEFLATE_LIBRARY deflate) 7 | 8 | find_package_handle_standard_args(Deflate 9 | FOUND_VAR 10 | DEFLATE_FOUND 11 | REQUIRED_VARS 12 | DEFLATE_LIBRARY 13 | DEFLATE_INCLUDE_DIRS 14 | FAIL_MESSAGE 15 | "Could NOT find deflate" 16 | ) 17 | 18 | set(DEFLATE_INCLUDE_DIRS ${DEFLATE_INCLUDE_DIRS}) 19 | set(DEFLATE_LIBRARIES ${DEFLATE_LIBRARY}) 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Failure_pcall_game_Foo.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() return game.Foo end 7 | 8 | local ts0 = os.clock() 9 | for i=0,10000 do pcall(test) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "Failure: pcall game.Foo") -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/local_port_range.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_LOCAL_PORT_RANGE_H 2 | #define CPR_LOCAL_PORT_RANGE_H 3 | 4 | #include 5 | 6 | namespace cpr { 7 | 8 | class LocalPortRange { 9 | public: 10 | // NOLINTNEXTLINE(google-explicit-constructor) 11 | LocalPortRange(const std::uint16_t p_localportrange) : localportrange_(p_localportrange) {} 12 | 13 | operator std::uint16_t() const { 14 | return localportrange_; 15 | } 16 | 17 | private: 18 | std::uint16_t localportrange_ = 0; 19 | }; 20 | 21 | } // namespace cpr 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Environment/Environment.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 14/11/2023. 3 | // 4 | 5 | #pragma once 6 | 7 | // Lua 8 | #include "Dependencies/Luau/VM/include/lua.h" 9 | 10 | 11 | class Environment { 12 | static Environment *sm_pSingleton; 13 | 14 | bool m_bInstrumentEnvironment = false; 15 | 16 | public: 17 | static Environment *get_singleton(); 18 | 19 | [[nodiscard]] bool get_instrumentation_status() const; 20 | void set_instrumentation_status(bool bState); 21 | int register_env(lua_State *L, bool useInitScript, _In_ _Out_ int *schedulerKey); 22 | }; 23 | -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/debuggers/README.txt: -------------------------------------------------------------------------------- 1 | 2 | HELPER FILES FOR POPULAR DEBUGGERS 3 | 4 | imgui.gdb 5 | GDB: disable stepping into trivial functions. 6 | (read comments inside file for details) 7 | 8 | imgui.natstepfilter 9 | Visual Studio Debugger: disable stepping into trivial functions. 10 | (read comments inside file for details) 11 | 12 | imgui.natvis 13 | Visual Studio Debugger: describe Dear ImGui types for better display. 14 | With this, types like ImVector<> will be displayed nicely in the debugger. 15 | (read comments inside file for details) 16 | 17 | -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/lbuffer.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "lobject.h" 5 | 6 | // buffer size limit 7 | #define MAX_BUFFER_SIZE (1 << 30) 8 | 9 | // GCObject size has to be at least 16 bytes, so a minimum of 8 bytes is always reserved 10 | #define sizebuffer(len) (offsetof(Buffer, data) + ((len) < 8 ? 8 : (len))) 11 | 12 | LUAI_FUNC Buffer* luaB_newbuffer(lua_State* L, size_t s); 13 | LUAI_FUNC void luaB_freebuffer(lua_State* L, Buffer* u, struct lua_Page* page); 14 | -------------------------------------------------------------------------------- /Dependencies/Minhook/.gitignore: -------------------------------------------------------------------------------- 1 | #OS junk files 2 | [Tt]humbs.db 3 | *.DS_Store 4 | 5 | #Visual Studio files 6 | *.[Oo]bj 7 | *.user 8 | *.aps 9 | *.pch 10 | *.vspscc 11 | *.vssscc 12 | *_i.c 13 | *_p.c 14 | *.ncb 15 | *.suo 16 | *.tlb 17 | *.tlh 18 | *.bak 19 | *.[Cc]ache 20 | *.ilk 21 | *.log 22 | *.sbr 23 | *.sdf 24 | *.opensdf 25 | *.unsuccessfulbuild 26 | ipch/ 27 | obj/ 28 | [Ll]ib 29 | [Bb]in 30 | [Dd]ebug*/ 31 | [Rr]elease*/ 32 | Ankh.NoLoad 33 | *.VC.db 34 | .vs/ 35 | 36 | #GCC files 37 | *.o 38 | *.d 39 | *.res 40 | *.dll 41 | *.a 42 | 43 | #Visual Studio Code files 44 | .vscode/ 45 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/payload.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_PAYLOAD_H 2 | #define CPR_PAYLOAD_H 3 | 4 | #include 5 | 6 | #include "cpr/curl_container.h" 7 | 8 | 9 | namespace cpr { 10 | class Payload : public CurlContainer { 11 | public: 12 | template 13 | Payload(const It begin, const It end) { 14 | for (It pair = begin; pair != end; ++pair) { 15 | Add(*pair); 16 | } 17 | } 18 | Payload(const std::initializer_list& pairs) : CurlContainer(pairs) {} 19 | }; 20 | 21 | } // namespace cpr 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_UpvalueCapture.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local tab = {} 7 | 8 | local ts0 = os.clock() 9 | 10 | for i=1, 1_000_000 do 11 | local j = i + 1 12 | tab[i] = function() return i,j end 13 | end 14 | 15 | local ts1 = os.clock() 16 | 17 | return ts1-ts0 18 | end 19 | 20 | bench.runCode(test, "UpvalueCapture") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_SqrtSum_sqrt_getfenv.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local sqrt = math.sqrt 7 | getfenv() 8 | local ts0 = os.clock() 9 | local sum = 0 10 | for i=0,500000 do sum = sum + sqrt(i) end 11 | local ts1 = os.clock() 12 | 13 | return ts1-ts0 14 | end 15 | 16 | bench.runCode(test, "SqrtSum: sqrt getfenv") -------------------------------------------------------------------------------- /Dependencies/cpr/test/encoded_auth_tests.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | #include "cpr/cpr.h" 6 | 7 | using namespace cpr; 8 | 9 | TEST(EncodedAuthenticationTests, UnicodeEncoderTest) { 10 | std::string user = "一二三"; 11 | std::string pass = "Hello World!"; 12 | EncodedAuthentication pa{user, pass}; 13 | EXPECT_EQ(pa.GetUsername(), "%E4%B8%80%E4%BA%8C%E4%B8%89"); 14 | EXPECT_EQ(pa.GetPassword(), "Hello%20World%21"); 15 | } 16 | 17 | int main(int argc, char** argv) { 18 | ::testing::InitGoogleTest(&argc, argv); 19 | return RUN_ALL_TESTS(); 20 | } 21 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: ".github" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /Dependencies/Imgui/backends/vulkan/glsl_shader.vert: -------------------------------------------------------------------------------- 1 | #version 450 core 2 | layout(location = 0) in vec2 aPos; 3 | layout(location = 1) in vec2 aUV; 4 | layout(location = 2) in vec4 aColor; 5 | 6 | layout(push_constant) uniform uPushConstant { 7 | vec2 uScale; 8 | vec2 uTranslate; 9 | } pc; 10 | 11 | out gl_PerVertex { 12 | vec4 gl_Position; 13 | }; 14 | 15 | layout(location = 0) out struct { 16 | vec4 Color; 17 | vec2 UV; 18 | } Out; 19 | 20 | void main() 21 | { 22 | Out.Color = aColor; 23 | Out.UV = aUV; 24 | gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); 25 | } 26 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/CodeBlockUnwind.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | #include 6 | 7 | namespace Luau 8 | { 9 | namespace CodeGen 10 | { 11 | 12 | // context must be an UnwindBuilder 13 | void* createBlockUnwindInfo(void* context, uint8_t* block, size_t blockSize, size_t& startOffset); 14 | void destroyBlockUnwindInfo(void* context, void* unwindData); 15 | 16 | bool isUnwindSupported(); 17 | 18 | } // namespace CodeGen 19 | } // namespace Luau 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableFind_table_find.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} 7 | 8 | local ts0 = os.clock() 9 | for i=1,100000 do table.find(t,15) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "TableFind: table.find") -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/callback.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/callback.h" 2 | #include 3 | #include 4 | 5 | namespace cpr { 6 | 7 | void CancellationCallback::SetProgressCallback(ProgressCallback& u_cb) { 8 | user_cb.emplace(std::reference_wrapper{u_cb}); 9 | } 10 | bool CancellationCallback::operator()(cpr_pf_arg_t dltotal, cpr_pf_arg_t dlnow, cpr_pf_arg_t ultotal, cpr_pf_arg_t ulnow) const { 11 | const bool cont_operation{!cancellation_state->load()}; 12 | return user_cb ? (cont_operation && (*user_cb)(dltotal, dlnow, ultotal, ulnow)) : cont_operation; 13 | } 14 | } // namespace cpr 15 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Failure_xpcall_a_bar.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test(a) return a.bar end 7 | function err(e) return e end 8 | 9 | local ts0 = os.clock() 10 | for i=0,10000 do xpcall(test, err) end 11 | local ts1 = os.clock() 12 | 13 | return ts1-ts0 14 | end 15 | 16 | bench.runCode(test, "Failure: xpcall a.bar") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_groovy: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:groovy as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | 7 | RUN apt-get -y install g++ libssl-dev libz-dev make python ninja-build 8 | RUN apt-get -y install cmake 9 | RUN apt-get -y install gdb 10 | 11 | COPY . /opt 12 | WORKDIR /opt 13 | 14 | # 15 | # To use the container interactively for debugging/building 16 | # 1. Build with 17 | # CMD ["ls"] 18 | # 2. Run with 19 | # docker run --entrypoint sh -it docker-game-eng-dev.addsrv.com/ws:9.10.6 20 | # 21 | 22 | RUN ["make", "test"] 23 | # CMD ["ls"] 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/EmitBuiltinsX64.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | namespace Luau 5 | { 6 | namespace CodeGen 7 | { 8 | 9 | struct Label; 10 | struct IrOp; 11 | 12 | namespace X64 13 | { 14 | 15 | class AssemblyBuilderX64; 16 | struct OperandX64; 17 | struct IrRegAllocX64; 18 | 19 | void emitBuiltin(IrRegAllocX64& regs, AssemblyBuilderX64& build, int bfid, int ra, int arg, OperandX64 arg2, int nparams, int nresults); 20 | 21 | } // namespace X64 22 | } // namespace CodeGen 23 | } // namespace Luau 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Failure_xpcall_game_Foo.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() return game.Foo end 7 | function err(e) return e end 8 | 9 | local ts0 = os.clock() 10 | for i=0,10000 do xpcall(test, err) end 11 | local ts1 = os.clock() 12 | 13 | return ts1-ts0 14 | end 15 | 16 | bench.runCode(test, "Failure: xpcall game.Foo") -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/prototest.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "src/libfuzzer/libfuzzer_macro.h" 3 | #include "luau.pb.h" 4 | 5 | std::vector protoprint(const luau::ModuleSet& stat, bool types); 6 | 7 | DEFINE_PROTO_FUZZER(const luau::ModuleSet& message) 8 | { 9 | std::vector sources = protoprint(message, true); 10 | 11 | for (size_t i = 0; i < sources.size(); i++) 12 | { 13 | printf("Module 'l%d':\n", int(i)); 14 | printf("%s\n", sources[i].c_str()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/connect_timeout.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_CONNECT_TIMEOUT_H 2 | #define CPR_CONNECT_TIMEOUT_H 3 | 4 | #include "cpr/timeout.h" 5 | 6 | namespace cpr { 7 | 8 | class ConnectTimeout : public Timeout { 9 | public: 10 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) 11 | ConnectTimeout(const std::chrono::milliseconds& duration) : Timeout{duration} {} 12 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) 13 | ConnectTimeout(const std::int32_t& milliseconds) : Timeout{milliseconds} {} 14 | }; 15 | 16 | } // namespace cpr 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/test_ws_redis.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Handle Ctrl-C by killing all sub-processing AND exiting 4 | trap cleanup INT 5 | 6 | function cleanup { 7 | kill `cat /tmp/pidfile.subscribe` 8 | exit 1 9 | } 10 | 11 | REDIS_HOST=${REDIS_HOST:=localhost} 12 | 13 | ws redis_subscribe --pidfile /tmp/pidfile.subscribe --host $REDIS_HOST foo & 14 | 15 | # Wait for the subscriber to be ready 16 | sleep 0.5 17 | 18 | # Now publish messages 19 | ws redis_publish -c 100000 --host ${REDIS_HOST} foo bar 20 | 21 | # Wait a little for all messages to be received 22 | sleep 1.5 23 | 24 | # Cleanup 25 | cleanup 26 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_LargeTableSum_loop_index.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {} 7 | 8 | for i=1,1000000 do t[i] = i end 9 | 10 | local ts0 = os.clock() 11 | local sum = 0 12 | for i=1,#t do sum = sum + t[i] end 13 | local ts1 = os.clock() 14 | 15 | return ts1-ts0 16 | end 17 | 18 | bench.runCode(test, "LargeTableSum: for i=1,#t") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_SqrtSum_sqrt_roundabout.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local sqrt = nil or math.sqrt -- breaks fastcall analysis 7 | local ts0 = os.clock() 8 | local sum = 0 9 | for i=0,500000 do sum = sum + sqrt(i) end 10 | local ts1 = os.clock() 11 | 12 | return ts1-ts0 13 | end 14 | 15 | bench.runCode(test, "SqrtSum: sqrt roundabout") -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/BytecodeAnalysis.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Common.h" 5 | 6 | #include 7 | 8 | #include 9 | 10 | namespace Luau 11 | { 12 | namespace CodeGen 13 | { 14 | 15 | struct IrFunction; 16 | 17 | void loadBytecodeTypeInfo(IrFunction& function); 18 | void buildBytecodeBlocks(IrFunction& function, const std::vector& jumpTargets); 19 | void analyzeBytecodeTypes(IrFunction& function); 20 | 21 | } // namespace CodeGen 22 | } // namespace Luau 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableInsertion_index_cached.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | 8 | for i=1,300 do 9 | local t = {} 10 | for j=1,1000 do 11 | t[j] = j 12 | end 13 | end 14 | 15 | local ts1 = os.clock() 16 | 17 | return ts1-ts0 18 | end 19 | 20 | bench.runCode(test, "TableInsertion: t[i]") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXSocketFactory.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * IXSocketFactory.h 4 | * Author: Benjamin Sergeant 5 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. 6 | */ 7 | 8 | #pragma once 9 | 10 | #include "IXSocketTLSOptions.h" 11 | #include 12 | #include 13 | 14 | namespace ix 15 | { 16 | class Socket; 17 | std::unique_ptr createSocket(bool tls, 18 | int fd, 19 | std::string& errorMsg, 20 | const SocketTLSOptions& tlsOptions); 21 | } // namespace ix 22 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/third_party/cpp-linenoise/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | 19 | # Compiled Static libraries 20 | *.lai 21 | *.la 22 | *.a 23 | *.lib 24 | 25 | # Executables 26 | *.exe 27 | *.out 28 | *.app 29 | 30 | # Others 31 | *.dSYM 32 | *.swp 33 | Debug 34 | Release 35 | *.suo 36 | *.sdf 37 | *.user 38 | xcuserdata 39 | *.xcworkspace 40 | Makefile 41 | CMakeFiles 42 | CMakeCache.txt 43 | *.cmake 44 | history.txt 45 | -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/debuggers/imgui.gdb: -------------------------------------------------------------------------------- 1 | # GDB configuration to aid debugging experience 2 | 3 | # To enable these customizations edit $HOME/.gdbinit (or ./.gdbinit if local gdbinit is enabled) and add: 4 | # add-auto-load-safe-path /path/to/imgui.gdb 5 | # source /path/to/imgui.gdb 6 | # 7 | # More Information at: 8 | # * https://sourceware.org/gdb/current/onlinedocs/gdb/gdbinit-man.html 9 | # * https://sourceware.org/gdb/current/onlinedocs/gdb/Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory 10 | 11 | # Disable stepping into trivial functions 12 | skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+ 13 | -------------------------------------------------------------------------------- /Dependencies/Luau/Ast/include/Luau/ParseOptions.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | namespace Luau 5 | { 6 | 7 | enum class Mode 8 | { 9 | NoCheck, // Do not perform any inference 10 | Nonstrict, // Unannotated symbols are any 11 | Strict, // Unannotated symbols are inferred 12 | Definition, // Type definition module, has special parsing rules 13 | }; 14 | 15 | struct ParseOptions 16 | { 17 | bool allowDeclarationSyntax = false; 18 | bool captureComments = false; 19 | }; 20 | 21 | } // namespace Luau 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_LargeTableSum_loop_iter.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {} 7 | 8 | for i=1,1000000 do t[i] = i end 9 | 10 | local ts0 = os.clock() 11 | local sum = 0 12 | for k,v in t do sum = sum + v end 13 | local ts1 = os.clock() 14 | 15 | return ts1-ts0 16 | end 17 | 18 | bench.runCode(test, "LargeTableSum: for k,v in {}") 19 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableInsertion_index_len.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | 8 | for i=1,300 do 9 | local t = {} 10 | for j=1,1000 do 11 | t[#t+1] = j 12 | end 13 | end 14 | 15 | local ts1 = os.clock() 16 | 17 | return ts1-ts0 18 | end 19 | 20 | bench.runCode(test, "TableInsertion: t[#t+1]") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_LargeTableSum_loop_ipairs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {} 7 | 8 | for i=1,1000000 do t[i] = i end 9 | 10 | local ts0 = os.clock() 11 | local sum = 0 12 | for k,v in ipairs(t) do sum = sum + v end 13 | local ts1 = os.clock() 14 | 15 | return ts1-ts0 16 | end 17 | 18 | bench.runCode(test, "LargeTableSum: for k,v in ipairs") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_LargeTableSum_loop_pairs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {} 7 | 8 | for i=1,1000000 do t[i] = i end 9 | 10 | local ts0 = os.clock() 11 | local sum = 0 12 | for k,v in pairs(t) do sum = sum + v end 13 | local ts1 = os.clock() 14 | 15 | return ts1-ts0 16 | end 17 | 18 | bench.runCode(test, "LargeTableSum: for k,v in pairs") -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/certificates/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBdTCCASegAwIBAgIQKMJShx7GKmJqmABrC/KIjzAFBgMrZXAwMTELMAkGA1UE 3 | BhMCR0IxEDAOBgNVBAoMB0V4YW1wbGUxEDAOBgNVBAMMB1Jvb3QgQ0EwHhcNMjIw 4 | NjI5MTEzMzA3WhcNMjcwNjI4MTEzMzA3WjAWMRQwEgYDVQQDDAt0ZXN0LXNlcnZl 5 | cjAqMAUGAytlcAMhAI64JU5RjfdEG1KQMxS5DQWkiGlKIQO7ye4mNFq9QleTo3Aw 6 | bjAsBgNVHREEJTAjgglsb2NhbGhvc3SHBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAEw 7 | HQYDVR0OBBYEFDnBgTgB3FU45S9OetBMhHu3J9OvMB8GA1UdIwQYMBaAFOTy84UO 8 | t4V1hHbjQ9G2nRS44qS3MAUGAytlcANBAC4NoQ31kHfp64R9gGNjTYrr2SNXHyEq 9 | 7YG0qFi5ABvLXJAbM2v27EIgY1TWYO43FBsclQsz6mcp1MzZfjT9RwQ= 10 | -----END CERTIFICATE----- 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/TypeAttach.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Module.h" 5 | 6 | #include 7 | 8 | namespace Luau 9 | { 10 | 11 | struct TypeRehydrationOptions 12 | { 13 | std::unordered_set bannedNames; 14 | bool expandClassProps = false; 15 | }; 16 | 17 | void attachTypeData(SourceModule& source, Module& result); 18 | 19 | AstType* rehydrateAnnotation(TypeId type, Allocator* allocator, const TypeRehydrationOptions& options = {}); 20 | 21 | } // namespace Luau 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableMarshal_varargs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return {...} 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: {...}") -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/TypeChecker2.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #pragma once 4 | 5 | #include "Luau/NotNull.h" 6 | 7 | namespace Luau 8 | { 9 | 10 | struct BuiltinTypes; 11 | struct DcrLogger; 12 | struct TypeCheckLimits; 13 | struct UnifierSharedState; 14 | struct SourceModule; 15 | struct Module; 16 | 17 | void check(NotNull builtinTypes, NotNull sharedState, NotNull limits, DcrLogger* logger, 18 | const SourceModule& sourceModule, Module* module); 19 | 20 | } // namespace Luau 21 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/Luau/CodeGenCommon.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Common.h" 5 | 6 | #if defined(LUAU_ASSERTENABLED) 7 | #define CODEGEN_ASSERT(expr) ((void)(!!(expr) || (Luau::assertCallHandler(#expr, __FILE__, __LINE__, __FUNCTION__) && (LUAU_DEBUGBREAK(), 0)))) 8 | #elif defined(CODEGEN_ENABLE_ASSERT_HANDLER) 9 | #define CODEGEN_ASSERT(expr) ((void)(!!(expr) || Luau::assertCallHandler(#expr, __FILE__, __LINE__, __FUNCTION__))) 10 | #else 11 | #define CODEGEN_ASSERT(expr) (void)sizeof(!!(expr)) 12 | #endif 13 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableInsertion_table_insert.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | 8 | for i=1,300 do 9 | local t = {} 10 | for j=1,1000 do 11 | table.insert(t, j) 12 | end 13 | end 14 | 15 | local ts1 = os.clock() 16 | 17 | return ts1-ts0 18 | end 19 | 20 | bench.runCode(test, "TableInsertion: table.insert") -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/certificates/client.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBejCCASygAwIBAgIQKMJShx7GKmJqmABrC/KIkDAFBgMrZXAwMTELMAkGA1UE 3 | BhMCR0IxEDAOBgNVBAoMB0V4YW1wbGUxEDAOBgNVBAMMB1Jvb3QgQ0EwHhcNMjIw 4 | NjI5MTEzMzA3WhcNMjcwNjI4MTEzMzA3WjAWMRQwEgYDVQQDDAt0ZXN0LWNsaWVu 5 | dDAqMAUGAytlcAMhAOGArRN1SIicY6uB/2CRB668fBEDTQb1oLcCoTsYQetho3Uw 6 | czAfBgNVHSMEGDAWgBTk8vOFDreFdYR240PRtp0UuOKktzAMBgNVHRMBAf8EAjAA 7 | MBMGA1UdJQQMMAoGCCsGAQUFBwMCMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQU 8 | a5RqAAt7DpJN8iHcLvTjH2TIKtowBQYDK2VwA0EApzcNlIuTMToyqyWZ0FhxikP/ 9 | c2TS6u5qkP+YHgcJJkvJ0rRTXs164k4LpvlMG0gNxle4zfoAJQ8mAAMZcQKyAg== 10 | -----END CERTIFICATE----- 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableIteration.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local t = {} 7 | 8 | for i=1,100 do t[tostring(i)] = i end 9 | 10 | local ts0 = os.clock() 11 | local sum = 0 12 | for i=1,10000 do 13 | for k,v in pairs(t) do sum = sum + v end 14 | end 15 | local ts1 = os.clock() 16 | 17 | return ts1-ts0 18 | end 19 | 20 | bench.runCode(test, "TableIteration") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMarshal_varargs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return {...} 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: {...}") -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/proxies.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/proxies.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace cpr { 9 | 10 | Proxies::Proxies(const std::initializer_list>& hosts) : hosts_{hosts} {} 11 | Proxies::Proxies(const std::map& hosts) : hosts_{hosts} {} 12 | 13 | bool Proxies::has(const std::string& protocol) const { 14 | return hosts_.count(protocol) > 0; 15 | } 16 | 17 | const std::string& Proxies::operator[](const std::string& protocol) { 18 | return hosts_[protocol]; 19 | } 20 | 21 | } // namespace cpr 22 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "cppvsdbg", 9 | "request": "launch", 10 | "name": "cryptest", 11 | "program": "${workspaceFolder}/build/cryptopp/cryptest", 12 | "args": [ 13 | "v" 14 | ], 15 | "cwd": "${workspaceFolder}/build" 16 | } 17 | ] 18 | } -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/echo_server.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # WS server example 4 | 5 | import asyncio 6 | import os 7 | import websockets 8 | 9 | 10 | async def echo(websocket, path): 11 | while True: 12 | msg = await websocket.recv() 13 | # print(f'Received {len(msg)} bytes') 14 | await websocket.send(msg) 15 | 16 | host = os.getenv('BIND_HOST', 'localhost') 17 | print(f'Serving on {host}:8766') 18 | 19 | start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30) 20 | 21 | asyncio.get_event_loop().run_until_complete(start_server) 22 | asyncio.get_event_loop().run_forever() 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/CodeGenA64.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | namespace Luau 5 | { 6 | namespace CodeGen 7 | { 8 | 9 | class BaseCodeGenContext; 10 | struct NativeState; 11 | struct ModuleHelpers; 12 | 13 | namespace A64 14 | { 15 | 16 | class AssemblyBuilderA64; 17 | 18 | bool initHeaderFunctions(NativeState& data); 19 | bool initHeaderFunctions(BaseCodeGenContext& codeGenContext); 20 | void assembleHelpers(AssemblyBuilderA64& build, ModuleHelpers& helpers); 21 | 22 | } // namespace A64 23 | } // namespace CodeGen 24 | } // namespace Luau 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/CodeGenX64.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | namespace Luau 5 | { 6 | namespace CodeGen 7 | { 8 | 9 | class BaseCodeGenContext; 10 | struct NativeState; 11 | struct ModuleHelpers; 12 | 13 | namespace X64 14 | { 15 | 16 | class AssemblyBuilderX64; 17 | 18 | bool initHeaderFunctions(NativeState& data); 19 | bool initHeaderFunctions(BaseCodeGenContext& codeGenContext); 20 | void assembleHelpers(AssemblyBuilderX64& build, ModuleHelpers& helpers); 21 | 22 | } // namespace X64 23 | } // namespace CodeGen 24 | } // namespace Luau 25 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/proxies.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_PROXIES_H 2 | #define CPR_PROXIES_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace cpr { 9 | class Proxies { 10 | public: 11 | Proxies() = default; 12 | Proxies(const std::initializer_list>& hosts); 13 | Proxies(const std::map& hosts); 14 | 15 | bool has(const std::string& protocol) const; 16 | const std::string& operator[](const std::string& protocol); 17 | 18 | private: 19 | std::map hosts_; 20 | }; 21 | } // namespace cpr 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Dependencies/Imgui/misc/cpp/README.txt: -------------------------------------------------------------------------------- 1 | 2 | imgui_stdlib.h + imgui_stdlib.cpp 3 | InputText() wrappers for C++ standard library (STL) type: std::string. 4 | This is also an example of how you may wrap your own similar types. 5 | 6 | imgui_scoped.h 7 | [Experimental, not currently in main repository] 8 | Additional header file with some RAII-style wrappers for common Dear ImGui functions. 9 | Try by merging: https://github.com/ocornut/imgui/pull/2197 10 | Discuss at: https://github.com/ocornut/imgui/issues/2096 11 | 12 | See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: 13 | https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness 14 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableMarshal_table_pack.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return table.pack(...) 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: table.pack") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/echo_server_serve_once.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # WS server example 4 | 5 | import asyncio 6 | import os 7 | import websockets 8 | 9 | 10 | async def echo(websocket, path): 11 | while True: 12 | msg = await websocket.recv() 13 | print(f'Received {len(msg)} bytes') 14 | await websocket.send(msg) 15 | 16 | host = os.getenv('BIND_HOST', 'localhost') 17 | print(f'Serving on {host}:8766') 18 | 19 | start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30) 20 | 21 | asyncio.get_event_loop().run_until_complete(start_server) 22 | asyncio.get_event_loop().run_forever() 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/format.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "Luau/Common.h" 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace Luau 9 | { 10 | void fuzzFormatString(const char* data, size_t size); 11 | } // namespace Luau 12 | 13 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) 14 | { 15 | // copy data to heap to make sure ASAN can catch out of bounds access 16 | std::vector str(Data, Data + Size); 17 | 18 | Luau::fuzzFormatString(str.data(), str.size()); 19 | 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/safeenv.lua: -------------------------------------------------------------------------------- 1 | -- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | print("safeenv reset") 3 | 4 | local function envChangeInMetamethod() 5 | -- declare constant so that at O2 this test doesn't interfere with constant folding which we can't deoptimize 6 | local ten 7 | ten = 10 8 | 9 | local a = setmetatable({}, { 10 | __index = function() 11 | getfenv().math = { abs = function(n) return n*n end } 12 | return 2 13 | end 14 | }) 15 | 16 | local b = a.x 17 | 18 | assert(math.abs(ten) == 100) 19 | end 20 | 21 | envChangeInMetamethod() 22 | 23 | return"OK" 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_TableMarshal_select.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return {n = select('#', ...), ...} 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: {n=select,...}") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMarshal_table_pack.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return table.pack(...) 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: table.pack") -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/test/integration/cmake/CheckFileExists.cmake: -------------------------------------------------------------------------------- 1 | # ===-----------------------------------------------------------------------===# 2 | # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or 3 | # copy at https://opensource.org/licenses/BSD-3-Clause). 4 | # SPDX-License-Identifier: BSD-3-Clause 5 | # ===-----------------------------------------------------------------------===# 6 | 7 | # Helper script to check if a file exists at build time 8 | 9 | message(STATUS "Checking if installed file \"${FILE_TO_CHECK}\" exists") 10 | if(NOT EXISTS ${FILE_TO_CHECK}) 11 | message(FATAL_ERROR "\"${FILE_TO_CHECK}\" doesn't exist.") 12 | endif() 13 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMarshal_select.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function pack(...) 7 | return {n = select('#', ...), ...} 8 | end 9 | 10 | local ts0 = os.clock() 11 | 12 | for i=1,100000 do 13 | local t = pack(1,2,3,4,5,6,7,8,9,10) 14 | end 15 | 16 | local ts1 = os.clock() 17 | 18 | return ts1-ts0 19 | end 20 | 21 | bench.runCode(test, "TableMarshal: {n=select,...}") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMarshal_table_unpack_array.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function consume(...) 7 | end 8 | 9 | local t = {1,2,3,4,5,6,7,8,9,10} 10 | 11 | local ts0 = os.clock() 12 | 13 | for i=1,1000000 do 14 | consume(table.unpack(t)) 15 | end 16 | 17 | local ts1 = os.clock() 18 | 19 | return ts1-ts0 20 | end 21 | 22 | bench.runCode(test, "TableMarshal: table.unpack") -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/FindMbedTLS.cmake: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/curl/curl/blob/curl-7_82_0/CMake/FindMbedTLS.cmake 2 | find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h) 3 | 4 | find_library(MBEDTLS_LIBRARY mbedtls) 5 | find_library(MBEDX509_LIBRARY mbedx509) 6 | find_library(MBEDCRYPTO_LIBRARY mbedcrypto) 7 | 8 | set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}") 9 | 10 | include(FindPackageHandleStandardArgs) 11 | find_package_handle_standard_args(MbedTLS DEFAULT_MSG 12 | MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) 13 | 14 | mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) 15 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXSelectInterruptFactory.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * IXSelectInterruptFactory.cpp 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #include "IXSelectInterruptFactory.h" 8 | 9 | #include "IXUniquePtr.h" 10 | #if _WIN32 11 | #include "IXSelectInterruptEvent.h" 12 | #else 13 | #include "IXSelectInterruptPipe.h" 14 | #endif 15 | 16 | namespace ix 17 | { 18 | SelectInterruptPtr createSelectInterrupt() 19 | { 20 | #ifdef _WIN32 21 | return ix::make_unique(); 22 | #else 23 | return ix::make_unique(); 24 | #endif 25 | } 26 | } // namespace ix 27 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/test_runner.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * test_runner.cpp 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2018 Machine Zone. All rights reserved. 5 | */ 6 | 7 | #define CATCH_CONFIG_RUNNER 8 | #include "catch.hpp" 9 | #include 10 | #include 11 | 12 | #ifndef _WIN32 13 | #include 14 | #endif 15 | 16 | int main(int argc, char* argv[]) 17 | { 18 | ix::initNetSystem(); 19 | 20 | #ifndef _WIN32 21 | signal(SIGPIPE, SIG_IGN); 22 | #endif 23 | spdlog::set_level(spdlog::level::debug); 24 | 25 | int result = Catch::Session().run(argc, argv); 26 | 27 | ix::uninitNetSystem(); 28 | return result; 29 | } 30 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMarshal_table_unpack_range.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function consume(...) 7 | end 8 | 9 | local t = {n=10,1,2,3,4,5,6,7,8,9,10} 10 | 11 | local ts0 = os.clock() 12 | 13 | for i=1,1000000 do 14 | consume(table.unpack(t, 1, t.n)) 15 | end 16 | 17 | local ts1 = os.clock() 18 | 19 | return ts1-ts0 20 | end 21 | 22 | bench.runCode(test, "TableMarshal: table.unpack/n") -------------------------------------------------------------------------------- /Dependencies/cpr/package-build/build-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_DIR=$1 4 | 5 | LIB='libcpr' 6 | 7 | LIB_DIR="${LIB}_${VERSION}" 8 | DEBIAN_DIR="${LIB_DIR}/debian" 9 | 10 | ARCHIVE_NAME="$LIB_DIR.orig.tar.gz" 11 | 12 | echo -e "Preparing tar archive and directory\n" 13 | cp -r $SRC_DIR $LIB_DIR 14 | 15 | tar --exclude-vcs -czf $ARCHIVE_NAME $LIB_DIR 16 | tar -xzf $ARCHIVE_NAME 17 | 18 | cd $LIB_DIR 19 | 20 | echo -e "\n\nCopying prepared debian files to directory\n" 21 | mkdir debian 22 | cp -r package-build/debian-libcpr/* debian/ 23 | sed -i "s/\%VERSION/$VERSION/g" debian/changelog 24 | sed -i "s/\%DATE/$(date -R)/g" debian/changelog 25 | 26 | echo -e "\n\nCalling debuild\n" 27 | debuild 28 | -------------------------------------------------------------------------------- /Environment/FilesystemLibrary.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by nhisoka on 21/4/2024. 3 | // 4 | 5 | #pragma once 6 | #include 7 | #include 8 | 9 | 10 | #include "EnvironmentLibrary.hpp" 11 | 12 | class FilesystemLibrary final : public EnvironmentLibrary { 13 | static FilesystemLibrary *m_singleton; 14 | std::string location; 15 | 16 | public: 17 | ~FilesystemLibrary() = default; 18 | static FilesystemLibrary *get_singleton(); 19 | 20 | void set_workspace_path(const std::string &path) { this->location = path; } 21 | [[nodiscard]] std::string get_workspace_path() const { return this->location; } 22 | 23 | void register_environment(lua_State *L) override; 24 | }; 25 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketHttpHeaders.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketHttpHeaders.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include "IXCancellationRequest.h" 10 | #include "IXStrCaseCompare.h" 11 | #include 12 | #include 13 | #include 14 | 15 | namespace ix 16 | { 17 | class Socket; 18 | 19 | using WebSocketHttpHeaders = std::map; 20 | 21 | std::pair parseHttpHeaders( 22 | std::unique_ptr& socket, const CancellationRequest& isCancellationRequested); 23 | } // namespace ix 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_Pcall_pcall_yield.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() coroutine.yield() return 1 end 7 | 8 | local ts0 = os.clock() 9 | for i=0,100000 do 10 | local co = coroutine.create(function() return pcall(test) end) 11 | coroutine.resume(co) 12 | coroutine.resume(co) 13 | end 14 | local ts1 = os.clock() 15 | 16 | return ts1-ts0 17 | end 18 | 19 | bench.runCode(test, "Pcall: pcall yield") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_trusty: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:trusty as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | RUN apt-get -y install wget 7 | RUN mkdir -p /tmp/cmake 8 | WORKDIR /tmp/cmake 9 | RUN wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz 10 | RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz 11 | 12 | RUN apt-get -y install g++ libssl-dev libz-dev make python git 13 | 14 | COPY . . 15 | 16 | ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin 17 | ENV PATH="${CMAKE_BIN_PATH}:${PATH}" 18 | 19 | RUN ["make", "ws_no_python"] 20 | 21 | ENTRYPOINT ["ws"] 22 | CMD ["--help"] 23 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketCloseInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketCloseInfo.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | #include 11 | 12 | namespace ix 13 | { 14 | struct WebSocketCloseInfo 15 | { 16 | uint16_t code; 17 | std::string reason; 18 | bool remote; 19 | 20 | WebSocketCloseInfo(uint16_t c = 0, const std::string& r = std::string(), bool rem = false) 21 | : code(c) 22 | , reason(r) 23 | , remote(rem) 24 | { 25 | ; 26 | } 27 | }; 28 | } // namespace ix 29 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/broadcast-server.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os 4 | import asyncio 5 | import websockets 6 | 7 | connections = set() 8 | 9 | async def echo(websocket, path): 10 | 11 | connections.add(websocket) 12 | 13 | try: 14 | async for message in websocket: 15 | print(message) 16 | 17 | for ws in connections: 18 | if ws != websocket: 19 | await ws.send(message) 20 | except: 21 | raise 22 | finally: 23 | connections.remove(websocket) 24 | 25 | 26 | asyncio.get_event_loop().run_until_complete( 27 | websockets.serve(echo, 'localhost', 8080)) 28 | asyncio.get_event_loop().run_forever() 29 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/NonStrictTypeChecker.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Module.h" 5 | #include "Luau/NotNull.h" 6 | #include "Luau/DataFlowGraph.h" 7 | 8 | namespace Luau 9 | { 10 | 11 | struct BuiltinTypes; 12 | struct UnifierSharedState; 13 | struct TypeCheckLimits; 14 | 15 | void checkNonStrict(NotNull builtinTypes, NotNull ice, NotNull unifierState, 16 | NotNull dfg, NotNull limits, const SourceModule& sourceModule, Module* module); 17 | 18 | 19 | } // namespace Luau 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Pcall_pcall_yield.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function test() coroutine.yield() return 1 end 7 | 8 | local ts0 = os.clock() 9 | for i=0,100000 do 10 | local co = coroutine.create(function() return pcall(test) end) 11 | coroutine.resume(co) 12 | coroutine.resume(co) 13 | end 14 | local ts1 = os.clock() 15 | 16 | return ts1-ts0 17 | end 18 | 19 | bench.runCode(test, "Pcall: pcall yield") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableRemoval_table_remove.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | 8 | local iterations = 25000 9 | 10 | local t = table.create(iterations, 100) 11 | 12 | for j=1,100 do 13 | table.remove(t, 1) 14 | end 15 | 16 | assert(#t == (iterations - 100)) 17 | 18 | local ts1 = os.clock() 19 | 20 | return ts1-ts0 21 | end 22 | 23 | bench.runCode(test, "TableRemoval: table.remove") 24 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/broadcast-server.js: -------------------------------------------------------------------------------- 1 | const WebSocket = require('ws'); 2 | 3 | const wss = new WebSocket.Server({ port: 8080 }); 4 | 5 | // Broadcast to all. 6 | wss.broadcast = function broadcast(data) { 7 | wss.clients.forEach(function each(client) { 8 | if (client.readyState === WebSocket.OPEN) { 9 | client.send(data); 10 | } 11 | }); 12 | }; 13 | 14 | wss.on('connection', function connection(ws) { 15 | ws.on('message', function incoming(data) { 16 | // Broadcast to everyone else. 17 | wss.clients.forEach(function each(client) { 18 | if (client !== ws && client.readyState === WebSocket.OPEN) { 19 | client.send(data); 20 | } 21 | }); 22 | }); 23 | }); 24 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXStrCaseCompare.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXStrCaseCompare.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2020 Machine Zone. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include 10 | 11 | namespace ix 12 | { 13 | struct CaseInsensitiveLess 14 | { 15 | // Case Insensitive compare_less binary function 16 | struct NocaseCompare 17 | { 18 | bool operator()(const unsigned char& c1, const unsigned char& c2) const; 19 | }; 20 | 21 | static bool cmp(const std::string& s1, const std::string& s2); 22 | 23 | bool operator()(const std::string& s1, const std::string& s2) const; 24 | }; 25 | } // namespace ix 26 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketSendInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketSendInfo.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | namespace ix 10 | { 11 | struct WebSocketSendInfo 12 | { 13 | bool success; 14 | bool compressionError; 15 | size_t payloadSize; 16 | size_t wireSize; 17 | 18 | WebSocketSendInfo(bool s = false, bool c = false, size_t p = 0, size_t w = 0) 19 | : success(s) 20 | , compressionError(c) 21 | , payloadSize(p) 22 | , wireSize(w) 23 | { 24 | ; 25 | } 26 | }; 27 | } // namespace ix 28 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/conformance/apicalls.lua: -------------------------------------------------------------------------------- 1 | -- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | print('testing function calls through API') 3 | 4 | function add(a, b) 5 | return a + b 6 | end 7 | 8 | local m = { __eq = function(a, b) return a.a == b.a end } 9 | 10 | function create_with_tm(x) 11 | return setmetatable({ a = x }, m) 12 | end 13 | 14 | local gen = 0 15 | function incuv() 16 | gen += 1 17 | return gen 18 | end 19 | 20 | pi = 3.1415926 21 | function getpi() 22 | return pi 23 | end 24 | 25 | function largealloc() 26 | table.create(1000000) 27 | end 28 | 29 | function oops() 30 | return "oops" 31 | end 32 | 33 | return('OK') 34 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/resolve.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_RESOLVE_H 2 | #define CPR_RESOLVE_H 3 | 4 | #include 5 | #include 6 | 7 | namespace cpr { 8 | class Resolve { 9 | public: 10 | std::string host; 11 | std::string addr; 12 | std::set ports; 13 | 14 | Resolve(const std::string& host_param, const std::string& addr_param, const std::set& ports_param = std::set{80U, 443U}): host(host_param), addr(addr_param), ports(ports_param) { 15 | if (this->ports.empty()) { 16 | this->ports.insert(80U); 17 | this->ports.insert(443U); 18 | } 19 | } 20 | }; 21 | } // namespace cpr 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /Dependencies/cpr/test/data/certificates/root-ca.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIBrjCCAWCgAwIBAgIQKMJShx7GKmJqmABrC/KIjjAFBgMrZXAwMTELMAkGA1UE 3 | BhMCR0IxEDAOBgNVBAoMB0V4YW1wbGUxEDAOBgNVBAMMB1Jvb3QgQ0EwHhcNMjIw 4 | NjI5MTEzMzA3WhcNMzIwNjI2MTEzMzA3WjAxMQswCQYDVQQGEwJHQjEQMA4GA1UE 5 | CgwHRXhhbXBsZTEQMA4GA1UEAwwHUm9vdCBDQTAqMAUGAytlcAMhAJqzaumMKuMm 6 | htBGbS+UCrCmXbGb+lRcuO71mPRey7HXo4GNMIGKMA8GA1UdEwEB/wQFMAMBAf8w 7 | DgYDVR0PAQH/BAQDAgIEMB0GA1UdDgQWBBTk8vOFDreFdYR240PRtp0UuOKktzBI 8 | BgNVHR4EQTA/oD0wC4IJbG9jYWxob3N0MAqHCH8AAAH/AAAAMCKHIAAAAAAAAAAA 9 | AAAAAAAAAAH/////////////////////MAUGAytlcANBAESQBu1/oyaeYouu3q+h 10 | VbIDkQiyZT4sPRYautZZ+xrN4MkNWDtwLeVJ+a9N0YU9vDpOviJpvXN4H/EEBwBF 11 | 3AA= 12 | -----END CERTIFICATE----- 13 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMove_empty_table.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | local t = table.create(250001, 0) 6 | 7 | for i=1,250000 do 8 | t[i] = i 9 | end 10 | 11 | local t2 = {} 12 | 13 | local ts0 = os.clock() 14 | table.move(t, 1, 250000, 1, t2) 15 | local ts1 = os.clock() 16 | 17 | for i=1,250000-1 do 18 | assert(t2[i] == i) 19 | end 20 | 21 | return ts1-ts0 22 | end 23 | 24 | bench.runCode(test, "TableMove: {}") 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_ToNumberString.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | bench.runCode(function() 5 | for j=1,1e6 do 6 | tonumber("42") 7 | tonumber(42) 8 | end 9 | end, "tonumber") 10 | 11 | bench.runCode(function() 12 | for j=1,1e6 do 13 | tostring(nil) 14 | tostring("test") 15 | tostring(42) 16 | end 17 | end, "tostring") 18 | 19 | bench.runCode(function() 20 | for j=1,1e6 do 21 | tostring(j) 22 | end 23 | end, "tostring-gc") 24 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_bionic: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:bionic as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | RUN apt-get -y install wget 7 | RUN mkdir -p /tmp/cmake 8 | WORKDIR /tmp/cmake 9 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz 10 | RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz 11 | 12 | RUN apt-get -y install g++ 13 | RUN apt-get -y install libssl-dev 14 | RUN apt-get -y install libz-dev 15 | RUN apt-get -y install make 16 | RUN apt-get -y install python 17 | 18 | COPY . . 19 | 20 | ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin 21 | ENV PATH="${CMAKE_BIN_PATH}:${PATH}" 22 | 23 | RUN ["make", "ws"] 24 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "async-limiter": { 6 | "version": "1.0.0", 7 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", 8 | "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" 9 | }, 10 | "ws": { 11 | "version": ">=6.2.2", 12 | "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.0.tgz", 13 | "integrity": "sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==", 14 | "requires": { 15 | "async-limiter": "1.0.0" 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/lbuffer.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "lbuffer.h" 3 | 4 | #include "lgc.h" 5 | #include "lmem.h" 6 | 7 | #include 8 | 9 | Buffer* luaB_newbuffer(lua_State* L, size_t s) 10 | { 11 | if (s > MAX_BUFFER_SIZE) 12 | luaM_toobig(L); 13 | 14 | Buffer* b = luaM_newgco(L, Buffer, sizebuffer(s), L->activememcat); 15 | luaC_init(L, b, LUA_TBUFFER); 16 | b->len = unsigned(s); 17 | memset(b->data, 0, b->len); 18 | return b; 19 | } 20 | 21 | void luaB_freebuffer(lua_State* L, Buffer* b, lua_Page* page) 22 | { 23 | luaM_freegco(L, b, sizebuffer(b->len), b->memcat, page); 24 | } 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_Factorial.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function fact (n) 7 | if n == 0 then 8 | return 1 9 | else 10 | return n * fact(n-1) 11 | end 12 | end 13 | 14 | local ts0 = os.clock() 15 | for loops=1,500 do 16 | for i=1,100 do 17 | fact(i) 18 | end 19 | end 20 | local ts1 = os.clock() 21 | 22 | return ts1 - ts0 23 | end 24 | 25 | bench.runCode(test, "Factorial") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMove_same_table.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | local t = table.create(5000001, 0) 6 | 7 | for i=0,5000000 do 8 | t[i] = i 9 | end 10 | 11 | local ts0 = os.clock() 12 | table.move(t, 1, 250000, 250001, t) 13 | local ts1 = os.clock() 14 | 15 | for i=250001,(500000-1) do 16 | assert(t[i] == (i - 250001) + 1) 17 | end 18 | 19 | return ts1-ts0 20 | end 21 | 22 | bench.runCode(test, "TableMove: same table") 23 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_disco: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:disco as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | RUN apt-get -y install wget 7 | RUN mkdir -p /tmp/cmake 8 | WORKDIR /tmp/cmake 9 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz 10 | RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz 11 | 12 | RUN apt-get -y install g++ 13 | RUN apt-get -y install libssl-dev 14 | RUN apt-get -y install libz-dev 15 | RUN apt-get -y install make 16 | RUN apt-get -y install python 17 | 18 | COPY . . 19 | 20 | ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin 21 | ENV PATH="${CMAKE_BIN_PATH}:${PATH}" 22 | 23 | # RUN ["make", "test"] 24 | CMD ["sh"] 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/CLI/Repl.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "lua.h" 5 | 6 | #include 7 | #include 8 | 9 | using AddCompletionCallback = std::function; 10 | 11 | // Note: These are internal functions which are being exposed in a header 12 | // so they can be included by unit tests. 13 | void setupState(lua_State* L); 14 | std::string runCode(lua_State* L, const std::string& source); 15 | void getCompletions(lua_State* L, const std::string& editBuffer, const AddCompletionCallback& addCompletionCallback); 16 | 17 | int replMain(int argc, char** argv); 18 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_xenial: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:xenial as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | RUN apt-get -y install wget 7 | RUN mkdir -p /tmp/cmake 8 | WORKDIR /tmp/cmake 9 | RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz 10 | RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz 11 | 12 | RUN apt-get -y install g++ 13 | RUN apt-get -y install libssl-dev 14 | RUN apt-get -y install libz-dev 15 | RUN apt-get -y install make 16 | RUN apt-get -y install python 17 | 18 | COPY . . 19 | 20 | ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin 21 | ENV PATH="${CMAKE_BIN_PATH}:${PATH}" 22 | 23 | # RUN ["make"] 24 | RUN ["make", "test"] 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/DiffAsserts.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #include "DiffAsserts.h" 4 | 5 | #include 6 | 7 | namespace Luau 8 | { 9 | 10 | 11 | std::string toString(const DifferResult& result) 12 | { 13 | if (result.diffError) 14 | return result.diffError->toString(); 15 | else 16 | return ""; 17 | } 18 | 19 | template<> 20 | std::string diff(TypeId l, TypeId r) 21 | { 22 | return toString(diff(l, r)); 23 | } 24 | 25 | template<> 26 | std::string diff(const Type& l, const Type& r) 27 | { 28 | return toString(diff(&l, &r)); 29 | } 30 | 31 | } // namespace Luau 32 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/CMake/FindMbedTLS.cmake: -------------------------------------------------------------------------------- 1 | find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h) 2 | 3 | # mbedtls-3.0 changed headers files, and we need to ifdef'out a few things 4 | find_path(MBEDTLS_VERSION_GREATER_THAN_3 mbedtls/build_info.h) 5 | 6 | find_library(MBEDTLS_LIBRARY mbedtls) 7 | find_library(MBEDX509_LIBRARY mbedx509) 8 | find_library(MBEDCRYPTO_LIBRARY mbedcrypto) 9 | 10 | set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}") 11 | 12 | include(FindPackageHandleStandardArgs) 13 | find_package_handle_standard_args(MbedTLS DEFAULT_MSG 14 | MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) 15 | 16 | mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY) 17 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/gc/test_GC_hashtable_Keyval.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | local t = {} 6 | 7 | local max = 10000 8 | local iters = 50000 9 | 10 | for i = 1,iters do 11 | local is = tostring(i) 12 | local input = string.rep(is, 1000 / #is) 13 | 14 | t[is] = input 15 | 16 | -- remove old entries 17 | if i > max then 18 | t[tostring(i - max)] = nil 19 | end 20 | end 21 | end 22 | 23 | bench.runCode(test, "GC: hashtable keys and values") 24 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_VariadicSelect.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | function sum(...) 7 | local res = 0 8 | local length = select("#", ...) 9 | for i = 1, length do 10 | local item = select(i, ...) 11 | res += item 12 | end 13 | return res 14 | end 15 | 16 | local ts0 = os.clock() 17 | 18 | for i=1, 100_000 do 19 | sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) 20 | end 21 | 22 | local ts1 = os.clock() 23 | 24 | return ts1-ts0 25 | end 26 | 27 | bench.runCode(test, "VariadicSelect") 28 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/test/unit/include-prefix/main.cpp: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or 3 | // copy at https://opensource.org/licenses/BSD-3-Clause). 4 | // SPDX-License-Identifier: BSD-3-Clause 5 | //===----------------------------------------------------------------------===// 6 | 7 | #include 8 | #include 9 | 10 | #include // for random number generation 11 | 12 | int main(int argc, char **argv) { 13 | constexpr size_t c_buffer_size = 16; 14 | std::array output; 15 | CryptoPP::AutoSeededRandomPool rng; 16 | rng.GenerateBlock(output.data(), c_buffer_size); 17 | } -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableMove_table_create.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | local t = table.create(250001, 0) 6 | 7 | for i=1,250000 do 8 | t[i] = i 9 | end 10 | 11 | local t2 = table.create(250001, 100) 12 | 13 | local ts0 = os.clock() 14 | table.move(t, 1, 250000, 1, t2) 15 | local ts1 = os.clock() 16 | 17 | for i=1,250000-1 do 18 | assert(t2[i] == i) 19 | end 20 | 21 | return ts1-ts0 22 | end 23 | 24 | bench.runCode(test, "TableMove: table.create") 25 | -------------------------------------------------------------------------------- /Dependencies/Luau/tools/gdb_printers.py: -------------------------------------------------------------------------------- 1 | # This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | class VariantPrinter: 4 | def __init__(self, val): 5 | self.val = val 6 | 7 | def to_string(self): 8 | typeId = int(self.val['typeId']) 9 | type = self.val.type.template_argument(typeId) 10 | value = self.val['storage'].reinterpret_cast(type.pointer()).dereference() 11 | return type.name + " [" + str(value) + "]" 12 | 13 | def match_printer(val): 14 | type = val.type.strip_typedefs() 15 | if type.name and type.name.startswith('Luau::Variant<'): 16 | return VariantPrinter(val) 17 | return None 18 | 19 | gdb.pretty_printers.append(match_printer) 20 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/test/integration/int-install-prefix/main.cpp: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or 3 | // copy at https://opensource.org/licenses/BSD-3-Clause). 4 | // SPDX-License-Identifier: BSD-3-Clause 5 | //===----------------------------------------------------------------------===// 6 | 7 | #include 8 | #include 9 | 10 | #include // for random number generation 11 | 12 | int main(int argc, char **argv) { 13 | constexpr size_t c_buffer_size = 16; 14 | std::array output; 15 | CryptoPP::AutoSeededRandomPool rng; 16 | rng.GenerateBlock(output.data(), c_buffer_size); 17 | } -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/mkdocs.yml: -------------------------------------------------------------------------------- 1 | name: mkdocs 2 | on: 3 | push: 4 | branches: 5 | - master 6 | paths: 7 | - 'docs/**' 8 | 9 | jobs: 10 | linux: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v2 14 | - name: Set up Python 3.8 15 | uses: actions/setup-python@v1 16 | with: 17 | python-version: 3.8 18 | - name: Install dependencies 19 | run: | 20 | python -m pip install --upgrade pip 21 | pip install mkdocs 22 | pip install mkdocs-material 23 | pip install pygments 24 | - name: Build doc 25 | run: | 26 | git checkout master 27 | git clean -dfx . 28 | git fetch 29 | git pull 30 | mkdocs gh-deploy 31 | -------------------------------------------------------------------------------- /Dependencies/Luau/tests/RegisterCallbacks.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | #include 6 | 7 | namespace Luau 8 | { 9 | 10 | using RegisterCallback = void (*)(); 11 | 12 | /// Gets a set of callbacks to run immediately before running tests, intended 13 | /// for registering new tests at runtime. 14 | std::unordered_set& getRegisterCallbacks(); 15 | 16 | /// Adds a new callback to be ran immediately before running tests. 17 | /// 18 | /// @param cb the callback to add. 19 | /// @returns a dummy integer to satisfy a doctest internal contract. 20 | int addTestCallback(RegisterCallback cb); 21 | 22 | } // namespace Luau 23 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/GlobalTypes.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #pragma once 4 | 5 | #include "Luau/Module.h" 6 | #include "Luau/NotNull.h" 7 | #include "Luau/Scope.h" 8 | #include "Luau/TypeArena.h" 9 | #include "Luau/TypeFwd.h" 10 | 11 | namespace Luau 12 | { 13 | 14 | struct GlobalTypes 15 | { 16 | explicit GlobalTypes(NotNull builtinTypes); 17 | 18 | NotNull builtinTypes; // Global types are based on builtin types 19 | 20 | TypeArena globalTypes; 21 | SourceModule globalNames; // names for symbols entered into globalScope 22 | ScopePtr globalScope; // shared by all modules 23 | }; 24 | 25 | } // namespace Luau 26 | -------------------------------------------------------------------------------- /Dependencies/cpr/nuget/build/native/libcpr.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | $(MSBuildThisFileDirectory)\$(Platform)\$(Configuration)\include\;%(AdditionalIncludeDirectories) 9 | 10 | 11 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/TableLiteralInference.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #pragma once 4 | 5 | #include "Luau/DenseHash.h" 6 | #include "Luau/NotNull.h" 7 | #include "Luau/TypeFwd.h" 8 | 9 | namespace Luau 10 | { 11 | 12 | struct TypeArena; 13 | struct BuiltinTypes; 14 | struct Unifier2; 15 | class AstExpr; 16 | 17 | TypeId matchLiteralType(NotNull> astTypes, NotNull> astExpectedTypes, 18 | NotNull builtinTypes, NotNull arena, NotNull unifier, TypeId expectedType, TypeId exprType, 19 | const AstExpr* expr, std::vector& toBlock); 20 | } // namespace Luau 21 | -------------------------------------------------------------------------------- /Dependencies/Luau/VM/src/ludata.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | // This code is based on Lua 5.x implementation licensed under MIT License; see lua_LICENSE.txt for details 3 | #pragma once 4 | 5 | #include "lobject.h" 6 | 7 | // special tag value is used for user data with inline dtors 8 | #define UTAG_IDTOR LUA_UTAG_LIMIT 9 | 10 | // special tag value is used for newproxy-created user data (all other user data objects are host-exposed) 11 | #define UTAG_PROXY (LUA_UTAG_LIMIT + 1) 12 | 13 | #define sizeudata(len) (offsetof(Udata, data) + len) 14 | 15 | LUAI_FUNC Udata* luaU_newudata(lua_State* L, size_t s, int tag); 16 | LUAI_FUNC void luaU_freeudata(lua_State* L, Udata* u, struct lua_Page* page); 17 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.centos7: -------------------------------------------------------------------------------- 1 | FROM centos:7 as build 2 | 3 | RUN yum install -y gcc-c++ make zlib-devel openssl-devel redhat-rpm-config 4 | 5 | RUN groupadd app && useradd -g app app 6 | RUN chown -R app:app /opt 7 | RUN chown -R app:app /usr/local 8 | 9 | WORKDIR /tmp 10 | RUN curl -O https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.tar.gz 11 | RUN tar zxvf cmake-3.14.0-Linux-x86_64.tar.gz 12 | RUN cp -rf cmake-3.14.0-Linux-x86_64/* /usr/ 13 | 14 | RUN yum install -y git 15 | 16 | # There is a bug in CMake where we cannot build from the root top folder 17 | # So we build from /opt 18 | COPY --chown=app:app . /opt 19 | WORKDIR /opt 20 | 21 | USER app 22 | RUN [ "make", "ws_no_python" ] 23 | RUN [ "rm", "-rf", "build" ] 24 | 25 | ENTRYPOINT ["ws"] 26 | CMD ["--help"] 27 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/RequireTracer.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/DenseHash.h" 5 | #include "Luau/FileResolver.h" 6 | #include "Luau/Location.h" 7 | 8 | #include 9 | #include 10 | 11 | namespace Luau 12 | { 13 | 14 | class AstStat; 15 | class AstExpr; 16 | class AstStatBlock; 17 | struct AstLocal; 18 | 19 | struct RequireTraceResult 20 | { 21 | DenseHashMap exprs{nullptr}; 22 | 23 | std::vector> requireList; 24 | }; 25 | 26 | RequireTraceResult traceRequires(FileResolver* fileResolver, AstStatBlock* root, const ModuleName& currentModuleName); 27 | 28 | } // namespace Luau 29 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/IrTranslateBuiltins.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | namespace Luau 5 | { 6 | namespace CodeGen 7 | { 8 | 9 | struct IrBuilder; 10 | struct IrOp; 11 | 12 | enum class BuiltinImplType 13 | { 14 | None, 15 | UsesFallback, // Uses fallback for unsupported cases 16 | Full, // Is either implemented in full, or exits to VM 17 | }; 18 | 19 | struct BuiltinImplResult 20 | { 21 | BuiltinImplType type; 22 | int actualResultCount; 23 | }; 24 | 25 | BuiltinImplResult translateBuiltin(IrBuilder& build, int bfid, int ra, int arg, IrOp args, int nparams, int nresults, IrOp fallback, int pcpos); 26 | 27 | } // namespace CodeGen 28 | } // namespace Luau 29 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/include/luacodegen.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | // Can be used to reconfigure visibility/exports for public APIs 5 | #ifndef LUACODEGEN_API 6 | #define LUACODEGEN_API extern 7 | #endif 8 | 9 | typedef struct lua_State lua_State; 10 | 11 | // returns 1 if Luau code generator is supported, 0 otherwise 12 | LUACODEGEN_API int luau_codegen_supported(void); 13 | 14 | // create an instance of Luau code generator. you must check that this feature is supported using luau_codegen_supported(). 15 | LUACODEGEN_API void luau_codegen_create(lua_State* L); 16 | 17 | // build target function and all inner functions 18 | LUACODEGEN_API void luau_codegen_compile(lua_State* L, int idx); 19 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXBench.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXBench.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2020 Machine Zone, Inc. All rights reserved. 5 | */ 6 | #pragma once 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | namespace ix 13 | { 14 | class Bench 15 | { 16 | public: 17 | Bench(const std::string& description); 18 | ~Bench(); 19 | 20 | void reset(); 21 | void record(); 22 | void report(); 23 | void setReported(); 24 | uint64_t getDuration() const; 25 | 26 | private: 27 | std::string _description; 28 | std::chrono::time_point _start; 29 | uint64_t _duration; 30 | bool _reported; 31 | }; 32 | } // namespace ix 33 | -------------------------------------------------------------------------------- /Dependencies/Luau/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | 3 | AccessModifierOffset: -4 4 | AllowShortBlocksOnASingleLine: Never 5 | AllowShortCaseLabelsOnASingleLine: false 6 | AllowShortFunctionsOnASingleLine: Empty 7 | AllowShortLambdasOnASingleLine: Empty 8 | AllowShortIfStatementsOnASingleLine: Never 9 | AllowShortLoopsOnASingleLine: false 10 | BreakBeforeBraces: Allman 11 | BreakConstructorInitializers: BeforeComma 12 | BreakInheritanceList: BeforeComma 13 | ColumnLimit: 150 14 | IndentCaseLabels: false 15 | SortIncludes: false 16 | IndentWidth: 4 17 | TabWidth: 4 18 | ObjCBlockIndentWidth: 4 19 | AlignAfterOpenBracket: DontAlign 20 | UseTab: Never 21 | PointerAlignment: Left 22 | SpaceAfterTemplateKeyword: false 23 | AlignEscapedNewlines: DontAlign 24 | AlwaysBreakTemplateDeclarations: Yes 25 | MaxEmptyLinesToKeep: 10 26 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableFind_loop_ipairs.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local function find(t, v) 7 | for i,e in ipairs(t) do 8 | if e == v then 9 | return i 10 | end 11 | end 12 | 13 | return nil 14 | end 15 | 16 | local t = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} 17 | 18 | local ts0 = os.clock() 19 | for i=1,100000 do find(t,15) end 20 | local ts1 = os.clock() 21 | 22 | return ts1-ts0 23 | end 24 | 25 | bench.runCode(test, "TableFind: for+ipairs") -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/echo_client.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # websocket send client 4 | 5 | import argparse 6 | import asyncio 7 | import websockets 8 | 9 | 10 | async def send(url): 11 | async with websockets.connect(url) as ws: 12 | while True: 13 | message = input('> ') 14 | print('Sending message...') 15 | await ws.send(message) 16 | print('Message sent.') 17 | 18 | 19 | if __name__ == '__main__': 20 | parser = argparse.ArgumentParser(description='websocket proxy.') 21 | parser.add_argument('--url', help='Remote websocket url', 22 | default='wss://echo.websocket.org') 23 | args = parser.parse_args() 24 | 25 | asyncio.get_event_loop().run_until_complete(send(args.url)) 26 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/ToDot.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Common.h" 5 | #include "Luau/TypeFwd.h" 6 | 7 | #include 8 | 9 | namespace Luau 10 | { 11 | 12 | struct ToDotOptions 13 | { 14 | bool showPointers = true; // Show pointer value in the node label 15 | bool duplicatePrimitives = true; // Display primitive types and 'any' as separate nodes 16 | }; 17 | 18 | std::string toDot(TypeId ty, const ToDotOptions& opts); 19 | std::string toDot(TypePackId tp, const ToDotOptions& opts); 20 | 21 | std::string toDot(TypeId ty); 22 | std::string toDot(TypePackId tp); 23 | 24 | void dumpDot(TypeId ty); 25 | void dumpDot(TypePackId tp); 26 | 27 | } // namespace Luau 28 | -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/ssl_ctx.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_SSL_CTX_H 2 | #define CPR_SSL_CTX_H 3 | 4 | #include "cpr/ssl_options.h" 5 | #include 6 | 7 | #if SUPPORT_CURLOPT_SSL_CTX_FUNCTION 8 | 9 | namespace cpr { 10 | 11 | /** 12 | * This callback function loads a CA certificate from raw_cert_buf and gets called by libcurl 13 | * just before the initialization of an SSL connection. 14 | * The raw_cert_buf argument is set with the CURLOPT_SSL_CTX_DATA option and has to be a nul 15 | * terminated buffer. 16 | * 17 | * Sources: https://curl.se/libcurl/c/CURLOPT_SSL_CTX_FUNCTION.html 18 | * https://curl.se/libcurl/c/CURLOPT_SSL_CTX_DATA.html 19 | */ 20 | CURLcode sslctx_function_load_ca_cert_from_buffer(CURL* curl, void* sslctx, void* raw_cert_buf); 21 | 22 | } // Namespace cpr 23 | 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /Execution.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 14/11/2023. 3 | // 4 | #pragma once 5 | 6 | // C 7 | #include 8 | #include 9 | 10 | // C++ 11 | #include 12 | #include 13 | #include "Security.hpp" 14 | 15 | // This class dictates the way execution is performed. It contains many utilities and required functions to Execute luau 16 | // bytecode. 17 | class [[maybe_unused]] Execution { 18 | private: 19 | static Execution *singleton; 20 | 21 | public: 22 | static Execution *get_singleton(); 23 | 24 | int register_environment(lua_State *L, bool useInitScript, _In_ _Out_ int *schedulerKey); 25 | 26 | int lua_loadstring(lua_State *L, const std::string &code, std::string chunkName, RBX::Identity identity); 27 | 28 | std::string compile_to_bytecode(const std::string &code); 29 | }; 30 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/echo_server_interactive.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # WS server example 4 | 5 | import asyncio 6 | import websockets 7 | 8 | async def hello(websocket, path): 9 | await websocket.send(f"> Welcome !") 10 | 11 | name = await websocket.recv() 12 | print(f"< {name}") 13 | 14 | greeting = f"Hello {name}!" 15 | 16 | await websocket.send(greeting) 17 | print(f"> {greeting}") 18 | 19 | async def echo(websocket, path): 20 | msg = await websocket.recv() 21 | print(f'Received {len(msg)} bytes') 22 | await websocket.send(msg) 23 | 24 | print('Serving on localhost:8766') 25 | start_server = websockets.serve(echo, 'localhost', 8766) 26 | 27 | asyncio.get_event_loop().run_until_complete(start_server) 28 | asyncio.get_event_loop().run_forever() 29 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/.github/workflows/unittest_windows_gcc.yml: -------------------------------------------------------------------------------- 1 | name: windows_gcc 2 | on: 3 | push: 4 | paths-ignore: 5 | - 'docs/**' 6 | pull_request: 7 | 8 | jobs: 9 | windows: 10 | runs-on: windows-latest 11 | steps: 12 | - uses: actions/checkout@v1 13 | - uses: seanmiddleditch/gha-setup-ninja@master 14 | - uses: bsergean/setup-mingw@d79ce405bac9edef3a1726ef00554a56f0bafe66 15 | - run: | 16 | mkdir build 17 | cd build 18 | cmake -GNinja -DCMAKE_CXX_COMPILER=c++ -DCMAKE_C_COMPILER=cc -DUSE_WS=1 -DUSE_TEST=1 -DUSE_ZLIB=0 -DCMAKE_UNITY_BUILD=ON .. 19 | - run: | 20 | cd build 21 | ninja 22 | - run: | 23 | cd build 24 | ctest -V 25 | # ninja test 26 | 27 | #- run: ../build/test/ixwebsocket_unittest.exe 28 | # working-directory: test 29 | -------------------------------------------------------------------------------- /Dependencies/Luau/tools/natvis/Common.natvis: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | count 7 | capacity 8 | 9 | capacity 10 | data 11 | 12 | 13 | 14 | 15 | 16 | 17 | impl 18 | 19 | 20 | 21 | 22 | 23 | impl 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/docker/Dockerfile.ubuntu_precise: -------------------------------------------------------------------------------- 1 | # Build time 2 | FROM ubuntu:precise as build 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | RUN apt-get update 6 | RUN apt-get -y install wget 7 | RUN mkdir -p /tmp/cmake 8 | WORKDIR /tmp/cmake 9 | RUN wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz 10 | RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz 11 | 12 | RUN apt-get -y install g++ 13 | RUN apt-get -y install libssl-dev 14 | RUN apt-get -y install libz-dev 15 | RUN apt-get -y install make 16 | RUN apt-get -y install python 17 | RUN apt-get -y install git 18 | 19 | COPY . . 20 | 21 | ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin 22 | ENV PATH="${CMAKE_BIN_PATH}:${PATH}" 23 | 24 | RUN ["make", "ws_no_python"] 25 | 26 | ENTRYPOINT ["ws"] 27 | CMD ["--help"] 28 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/src/TypeOrPack.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | 3 | #include "Luau/TypeOrPack.h" 4 | #include "Luau/Common.h" 5 | 6 | namespace Luau 7 | { 8 | 9 | const void* ptr(TypeOrPack tyOrTp) 10 | { 11 | if (auto ty = get(tyOrTp)) 12 | return static_cast(*ty); 13 | else if (auto tp = get(tyOrTp)) 14 | return static_cast(*tp); 15 | else 16 | LUAU_UNREACHABLE(); 17 | } 18 | 19 | TypeOrPack follow(TypeOrPack tyOrTp) 20 | { 21 | if (auto ty = get(tyOrTp)) 22 | return follow(*ty); 23 | else if (auto tp = get(tyOrTp)) 24 | return follow(*tp); 25 | else 26 | LUAU_UNREACHABLE(); 27 | } 28 | 29 | } // namespace Luau 30 | -------------------------------------------------------------------------------- /Dependencies/Luau/fuzz/number.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #include "Luau/Common.h" 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #define LUAI_MAXNUM2STR 48 10 | 11 | char* luai_num2str(char* buf, double n); 12 | 13 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) 14 | { 15 | if (Size < 8) 16 | return 0; 17 | 18 | double num; 19 | memcpy(&num, Data, 8); 20 | 21 | char buf[LUAI_MAXNUM2STR]; 22 | char* end = luai_num2str(buf, num); 23 | LUAU_ASSERT(end < buf + sizeof(buf)); 24 | 25 | *end = 0; 26 | 27 | double rec = strtod(buf, nullptr); 28 | 29 | LUAU_ASSERT(rec == num || (rec != rec && num != num)); 30 | return 0; 31 | } 32 | -------------------------------------------------------------------------------- /Dependencies/oxorany/include/oxorany.hpp: -------------------------------------------------------------------------------- 1 | #ifndef OXORANY_INCLUDE_H 2 | #define OXORANY_INCLUDE_H 3 | 4 | //disable /GL for warning C4307 in msvc 5 | #define OXORANY_DISABLE_OBFUSCATION 6 | //use OXORANY_USE_BIT_CAST for remove float double src data 7 | #define OXORANY_USE_BIT_CAST 8 | 9 | #include "../oxorany.h" 10 | 11 | //to change Marco in a easy way 12 | #define WRAPPER_MARCO oxorany 13 | #define WRAPPER_MARCO_FLT oxorany_flt 14 | 15 | template 16 | static OXORANY_FORCEINLINE void copy_string_without_return(T *target, const T *source) { 17 | while (*source) { 18 | *target = *source; 19 | ++source; 20 | ++target; 21 | } 22 | *target = 0; 23 | } 24 | 25 | #define WRAPPER_MARCO_DEFINE_STRING_ARRAY(type, name, s) type name[sizeof(s)/sizeof(type)]; copy_string_without_return(name, WRAPPER_MARCO(s)) 26 | 27 | #endif -------------------------------------------------------------------------------- /Communication.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Dottik on 21/4/2024. 3 | // 4 | 5 | #pragma once 6 | #include "ixwebsocket/IXWebSocket.h" 7 | 8 | 9 | class Communication final { 10 | ix::WebSocket *m_pWebsocket; 11 | 12 | void handshake(); 13 | 14 | public: 15 | enum OpCodes : unsigned char { 16 | /* 17 | Obtains the workspace used for the Filesystem library. Provided by the external GUI. 18 | */ 19 | GetWorkspace = 0x0, 20 | /* 21 | Used to enqueue a script into the modules' task scheduler. 22 | */ 23 | ExecuteScript = 0x4, 24 | /* 25 | Used to signal the module to reinitialize and grab a new lua_State *. 26 | */ 27 | Reinitialize = 0x8, 28 | }; 29 | explicit Communication(const std::string &websocketUrl); 30 | void connect(); 31 | }; 32 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/echo_server_ssl.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # WS server example 4 | 5 | import asyncio 6 | import os 7 | import pathlib 8 | import ssl 9 | import websockets 10 | 11 | 12 | async def echo(websocket, path): 13 | msg = await websocket.recv() 14 | print(f'Received {len(msg)} bytes') 15 | await websocket.send(msg) 16 | 17 | ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) 18 | ssl_context.load_cert_chain('trusted-server-crt.pem', 19 | 'trusted-server-key.pem') 20 | 21 | host = os.getenv('BIND_HOST', 'localhost') 22 | print(f'Serving on {host}:8766') 23 | 24 | start_server = websockets.serve(echo, host, 8766, max_size=2 ** 30, ssl=ssl_context) 25 | 26 | asyncio.get_event_loop().run_until_complete(start_server) 27 | asyncio.get_event_loop().run_forever() 28 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_OOP_constructor.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local Number = {} 7 | Number.__index = Number 8 | 9 | function Number.new(v) 10 | local self = { 11 | value = v 12 | } 13 | setmetatable(self, Number) 14 | return self 15 | end 16 | 17 | function Number:Get() 18 | return self.value 19 | end 20 | 21 | local ts0 = os.clock() 22 | for i=1,100000 do 23 | local n = Number.new(42) 24 | end 25 | local ts1 = os.clock() 26 | 27 | return ts1-ts0 28 | end 29 | 30 | bench.runCode(test, "OOP: constructor") -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # ===-----------------------------------------------------------------------===# 2 | # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or 3 | # copy at https://opensource.org/licenses/BSD-3-Clause). 4 | # SPDX-License-Identifier: BSD-3-Clause 5 | # ===-----------------------------------------------------------------------===# 6 | 7 | set(TEST_CMAKE_FILES_DIR ${CMAKE_SOURCE_DIR}/cmake) 8 | set(TEST_EXAMPLE_SOURCES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/example-src) 9 | 10 | # set(FETCHCONTENT_BASE_DIR ${CMAKE_CURRENT_BINARY_DIR}) cmake_path(APPEND 11 | # FETCHCONTENT_BASE_DIR _deps) 12 | 13 | add_subdirectory(unit) 14 | add_subdirectory(integration) 15 | 16 | add_custom_target( 17 | test-verbose 18 | WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." 19 | COMMAND ${CMAKE_CTEST_COMMAND} --verbose --output-on-failure) 20 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketOpenInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketOpenInfo.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved. 5 | */ 6 | 7 | #pragma once 8 | 9 | #include "IXWebSocketHttpHeaders.h" 10 | #include 11 | #include 12 | 13 | namespace ix 14 | { 15 | struct WebSocketOpenInfo 16 | { 17 | std::string uri; 18 | WebSocketHttpHeaders headers; 19 | std::string protocol; 20 | 21 | WebSocketOpenInfo(const std::string& u = std::string(), 22 | const WebSocketHttpHeaders& h = WebSocketHttpHeaders(), 23 | const std::string& p = std::string()) 24 | : uri(u) 25 | , headers(h) 26 | , protocol(p) 27 | { 28 | ; 29 | } 30 | }; 31 | } // namespace ix 32 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ixwebsocket/IXWebSocketProxyServer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IXWebSocketProxyServer.h 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2019-2020 Machine Zone, Inc. All rights reserved. 5 | */ 6 | #pragma once 7 | 8 | #include "IXSocketTLSOptions.h" 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | namespace ix 15 | { 16 | using RemoteUrlsMapping = std::map; 17 | 18 | int websocket_proxy_server_main(int port, 19 | const std::string& hostname, 20 | const ix::SocketTLSOptions& tlsOptions, 21 | const std::string& remoteUrl, 22 | const RemoteUrlsMapping& remoteUrlsMapping, 23 | bool verbose); 24 | } // namespace ix 25 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/ws/broadcast-server.js: -------------------------------------------------------------------------------- 1 | /* 2 | * broadcast-server.js 3 | * Author: Benjamin Sergeant 4 | * Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved. 5 | */ 6 | const WebSocket = require('ws'); 7 | 8 | const wss = new WebSocket.Server({ port: 8080, perMessageDeflate: true }); 9 | 10 | // Broadcast to all. 11 | wss.broadcast = function broadcast(data) { 12 | wss.clients.forEach(function each(client) { 13 | if (client.readyState === WebSocket.OPEN) { 14 | client.send(data); 15 | } 16 | }); 17 | }; 18 | 19 | wss.on('connection', function connection(ws) { 20 | ws.on('message', function incoming(data) { 21 | // Broadcast to everyone else. 22 | wss.clients.forEach(function each(client) { 23 | if (client !== ws && client.readyState === WebSocket.OPEN) { 24 | client.send(data); 25 | } 26 | }); 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/ControlFlow.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | 9 | struct Scope; 10 | using ScopePtr = std::shared_ptr; 11 | 12 | enum class ControlFlow 13 | { 14 | None = 0b00001, 15 | Returns = 0b00010, 16 | Throws = 0b00100, 17 | Breaks = 0b01000, 18 | Continues = 0b10000, 19 | }; 20 | 21 | inline ControlFlow operator&(ControlFlow a, ControlFlow b) 22 | { 23 | return ControlFlow(int(a) & int(b)); 24 | } 25 | 26 | inline ControlFlow operator|(ControlFlow a, ControlFlow b) 27 | { 28 | return ControlFlow(int(a) | int(b)); 29 | } 30 | 31 | inline bool matches(ControlFlow a, ControlFlow b) 32 | { 33 | return (a & b) != ControlFlow(0); 34 | } 35 | 36 | } // namespace Luau 37 | -------------------------------------------------------------------------------- /Dependencies/cpr/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | 19 | # Compiled Static libraries 20 | *.lai 21 | *.la 22 | *.a 23 | *.lib 24 | 25 | # Executables 26 | *.exe 27 | *.out 28 | *.app 29 | 30 | # CMake 31 | CMakeCache.txt 32 | CMakeFiles 33 | Makefile 34 | cmake_install.cmake 35 | install_manifest.txt 36 | 37 | # Custom 38 | build/ 39 | !nuget/build 40 | 41 | # Jekyll stuff 42 | _includes/ 43 | _site/ 44 | 45 | # Vim 46 | .ycm_extra_conf.py* 47 | *.swp 48 | 49 | # VSCode 50 | .vscode/ 51 | .vs/ 52 | 53 | # clangd 54 | .cache/ 55 | 56 | # compilation database 57 | # used in various editor configurations, such as vim & YcM 58 | compile_commands.json 59 | 60 | # macOS 61 | .DS_Store 62 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_OOP_virtual_constructor.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local Number = {} 7 | Number.__index = Number 8 | 9 | function Number:new(class, v) 10 | local self = { 11 | value = v 12 | } 13 | setmetatable(self, Number) 14 | return self 15 | end 16 | 17 | function Number:Get() 18 | return self.value 19 | end 20 | 21 | local ts0 = os.clock() 22 | for i=1,100000 do 23 | local n = Number:new(42) 24 | end 25 | local ts1 = os.clock() 26 | 27 | return ts1-ts0 28 | end 29 | 30 | bench.runCode(test, "OOP: virtual constructor") -------------------------------------------------------------------------------- /Dependencies/cpr/include/cpr/filesystem.h: -------------------------------------------------------------------------------- 1 | #ifndef CPR_FILESYSTEM_H 2 | #define CPR_FILESYSTEM_H 3 | 4 | // Include filesystem into the namespace "fs" from either "filesystem" or "experimental/filesystem" or "boost/filesystem" 5 | #ifdef CPR_USE_BOOST_FILESYSTEM 6 | #define BOOST_FILESYSTEM_VERSION 4 // Use the latest, with the closest behavior to std::filesystem. 7 | #include 8 | namespace cpr { 9 | namespace fs = boost::filesystem; 10 | } 11 | // cppcheck-suppress preprocessorErrorDirective 12 | #elif __has_include() 13 | #include 14 | namespace cpr { 15 | namespace fs = std::filesystem; 16 | } 17 | #elif __has_include("experimental/filesystem") 18 | #include 19 | namespace cpr { 20 | namespace fs = std::experimental::filesystem; 21 | } 22 | #else 23 | #error "Failed to include header!" 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_OOP_method_call.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local Number = {} 7 | Number.__index = Number 8 | 9 | function Number.new(v) 10 | local self = { 11 | value = v 12 | } 13 | setmetatable(self, Number) 14 | return self 15 | end 16 | 17 | function Number:Get() 18 | return self.value 19 | end 20 | 21 | local n = Number.new(42) 22 | 23 | local ts0 = os.clock() 24 | for i=1,1000000 do 25 | local nv = n:Get() 26 | end 27 | local ts1 = os.clock() 28 | 29 | return ts1-ts0 30 | end 31 | 32 | bench.runCode(test, "OOP: method call") -------------------------------------------------------------------------------- /Dependencies/Luau/bench/micro_tests/test_TableInsertion_table_insert_index.lua: -------------------------------------------------------------------------------- 1 | local function prequire(name) local success, result = pcall(require, name); return if success then result else nil end 2 | local bench = script and require(script.Parent.bench_support) or prequire("bench_support") or require("../bench_support") 3 | 4 | function test() 5 | 6 | local ts0 = os.clock() 7 | 8 | for i=1,5 do 9 | local t = {} 10 | for j=1,1000 do 11 | table.insert(t, 1, j) 12 | end 13 | end 14 | 15 | local ts1 = os.clock() 16 | 17 | for i=1,5 do 18 | local t = {} 19 | for j=1,1000 do 20 | table.insert(t, 1, j) 21 | end 22 | 23 | for j=1,1000 do 24 | assert(t[j] == (1000- (j - 1) ) ) 25 | end 26 | end 27 | 28 | return ts1-ts0 29 | end 30 | 31 | bench.runCode(test, "TableInsertion: table.insert(pos)") -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/cprver.h.in: -------------------------------------------------------------------------------- 1 | #ifndef CPR_CPRVER_H 2 | #define CPR_CPRVER_H 3 | 4 | /** 5 | * CPR version as a string. 6 | **/ 7 | #define CPR_VERSION "${cpr_VERSION}" 8 | 9 | /** 10 | * CPR version split up into parts. 11 | **/ 12 | #define CPR_VERSION_MAJOR ${cpr_VERSION_MAJOR} 13 | #define CPR_VERSION_MINOR ${cpr_VERSION_MINOR} 14 | #define CPR_VERSION_PATCH ${cpr_VERSION_PATCH} 15 | 16 | /** 17 | * CPR version as a single hex digit. 18 | * it can be split up into three parts: 19 | * 0xAABBCC 20 | * AA: The current CPR major version number in a hex format. 21 | * BB: The current CPR minor version number in a hex format. 22 | * CC: The current CPR patch version number in a hex format. 23 | * 24 | * Examples: 25 | * '0x010702' -> 01.07.02 -> CPR_VERSION: 1.7.2 26 | * '0xA13722' -> A1.37.22 -> CPR_VERSION: 161.55.34 27 | **/ 28 | #define CPR_VERSION_NUM ${cpr_VERSION_NUM} 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Dependencies/cryptopp-cmake/test/example-src/main.cpp: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or 3 | // copy at https://opensource.org/licenses/BSD-3-Clause). 4 | // SPDX-License-Identifier: BSD-3-Clause 5 | //===----------------------------------------------------------------------===// 6 | 7 | #include 8 | #include 9 | 10 | #ifdef CRYPTOPP_INCLUDE_PREFIX 11 | #define CRYPTOPP_HEADER(hdr) 12 | #include CRYPTOPP_HEADER(osrng.h) 13 | #else 14 | #include // for random number generation 15 | #endif 16 | 17 | int main(int argc, char **argv) { 18 | constexpr size_t c_buffer_size = 16; 19 | std::array output; 20 | CryptoPP::AutoSeededRandomPool rng; 21 | rng.GenerateBlock(output.data(), c_buffer_size); 22 | } -------------------------------------------------------------------------------- /Dependencies/cpr/cmake/zlib_external.cmake: -------------------------------------------------------------------------------- 1 | # ZLIB 2 | 3 | # Fix Windows missing "zlib.dll": 4 | if(WIN32 AND (${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})) 5 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/$ CACHE INTERNAL "" FORCE) 6 | endif() 7 | 8 | set(ZLIB_COMPAT ON CACHE INTERNAL "" FORCE) 9 | set(ZLIB_ENABLE_TESTS OFF CACHE INTERNAL "" FORCE) 10 | 11 | FetchContent_Declare(zlib 12 | GIT_REPOSITORY https://github.com/zlib-ng/zlib-ng 13 | GIT_TAG 2.1.3 14 | USES_TERMINAL_DOWNLOAD TRUE) 15 | FetchContent_MakeAvailable(zlib) 16 | 17 | # Fix Windows zlib dll names from "zlibd1.dll" to "zlib.dll": 18 | if(WIN32 AND BUILD_SHARED_LIBS) 19 | set_target_properties(zlib PROPERTIES OUTPUT_NAME "zlib") 20 | set_target_properties(zlib PROPERTIES DEBUG_POSTFIX "") 21 | set_target_properties(zlib PROPERTIES SUFFIX ".dll") 22 | endif() 23 | -------------------------------------------------------------------------------- /Dependencies/cpr/cpr/proxyauth.cpp: -------------------------------------------------------------------------------- 1 | #include "cpr/proxyauth.h" 2 | #include "cpr/util.h" 3 | 4 | namespace cpr { 5 | EncodedAuthentication::~EncodedAuthentication() noexcept { 6 | util::secureStringClear(username); 7 | util::secureStringClear(password); 8 | } 9 | 10 | const std::string& EncodedAuthentication::GetUsername() const { 11 | return username; 12 | } 13 | 14 | const std::string& EncodedAuthentication::GetPassword() const { 15 | return password; 16 | } 17 | 18 | bool ProxyAuthentication::has(const std::string& protocol) const { 19 | return proxyAuth_.count(protocol) > 0; 20 | } 21 | 22 | const char* ProxyAuthentication::GetUsername(const std::string& protocol) { 23 | return proxyAuth_[protocol].username.c_str(); 24 | } 25 | 26 | const char* ProxyAuthentication::GetPassword(const std::string& protocol) { 27 | return proxyAuth_[protocol].password.c_str(); 28 | } 29 | 30 | } // namespace cpr 31 | -------------------------------------------------------------------------------- /Dependencies/IXWebSocket/test/compatibility/python/websockets/nginx.conf: -------------------------------------------------------------------------------- 1 | 2 | error_log stderr warn; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 32; 8 | } 9 | 10 | http { 11 | 12 | map $http_upgrade $connection_upgrade { 13 | default upgrade; 14 | '' close; 15 | } 16 | 17 | upstream websocket { 18 | server localhost:8766; 19 | } 20 | 21 | server { 22 | listen 8765 ssl; 23 | 24 | ssl_certificate trusted-client-crt.pem; 25 | ssl_certificate_key trusted-client-key.pem; 26 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 27 | ssl_ciphers HIGH:!aNULL:!MD5; 28 | 29 | location / { 30 | proxy_pass http://websocket; 31 | proxy_http_version 1.1; 32 | proxy_set_header Upgrade $http_upgrade; 33 | proxy_set_header Connection $connection_upgrade; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/Clone.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | #include "Luau/TypeArena.h" 6 | #include "Luau/Type.h" 7 | 8 | #include 9 | 10 | namespace Luau 11 | { 12 | 13 | // Only exposed so they can be unit tested. 14 | using SeenTypes = std::unordered_map; 15 | using SeenTypePacks = std::unordered_map; 16 | 17 | struct CloneState 18 | { 19 | NotNull builtinTypes; 20 | 21 | SeenTypes seenTypes; 22 | SeenTypePacks seenTypePacks; 23 | }; 24 | 25 | TypePackId clone(TypePackId tp, TypeArena& dest, CloneState& cloneState); 26 | TypeId clone(TypeId tp, TypeArena& dest, CloneState& cloneState); 27 | TypeFun clone(const TypeFun& typeFun, TypeArena& dest, CloneState& cloneState); 28 | 29 | } // namespace Luau 30 | -------------------------------------------------------------------------------- /Dependencies/Luau/Analysis/include/Luau/Transpiler.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include "Luau/Location.h" 5 | #include "Luau/ParseOptions.h" 6 | 7 | #include 8 | 9 | namespace Luau 10 | { 11 | class AstNode; 12 | class AstStatBlock; 13 | 14 | struct TranspileResult 15 | { 16 | std::string code; 17 | Location errorLocation; 18 | std::string parseError; // Nonempty if the transpile failed 19 | }; 20 | 21 | std::string toString(AstNode* node); 22 | void dump(AstNode* node); 23 | 24 | // Never fails on a well-formed AST 25 | std::string transpile(AstStatBlock& ast); 26 | std::string transpileWithTypes(AstStatBlock& block); 27 | 28 | // Only fails when parsing fails 29 | TranspileResult transpile(std::string_view source, ParseOptions options = ParseOptions{}, bool withTypes = false); 30 | 31 | } // namespace Luau 32 | -------------------------------------------------------------------------------- /Dependencies/Luau/CodeGen/src/EmitInstructionX64.h: -------------------------------------------------------------------------------- 1 | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details 2 | #pragma once 3 | 4 | #include 5 | 6 | namespace Luau 7 | { 8 | namespace CodeGen 9 | { 10 | 11 | struct Label; 12 | struct ModuleHelpers; 13 | 14 | namespace X64 15 | { 16 | 17 | class AssemblyBuilderX64; 18 | struct IrRegAllocX64; 19 | 20 | void emitInstCall(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int nparams, int nresults); 21 | void emitInstReturn(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int actualResults, bool functionVariadic); 22 | void emitInstSetList(IrRegAllocX64& regs, AssemblyBuilderX64& build, int ra, int rb, int count, uint32_t index, int knownSize); 23 | void emitInstForGLoop(AssemblyBuilderX64& build, int ra, int aux, Label& loopRepeat); 24 | 25 | } // namespace X64 26 | } // namespace CodeGen 27 | } // namespace Luau 28 | --------------------------------------------------------------------------------