text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
import os import unittest import json from enum import Enum import time from mlagents.trainers.training_status import ( StatusType, StatusMetaData, GlobalTrainingStatus, ) from mlagents.trainers.policy.checkpoint_manager import ( ModelCheckpointManager, ModelCheckpoint, ) def test_globaltrainingst...
ml-agents/ml-agents/mlagents/trainers/tests/test_training_status.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_training_status.py", "repo_id": "ml-agents", "token_count": 1743 }
1,991
import attr import pytest from mlagents.trainers.tests.simple_test_envs import ( SimpleEnvironment, MemoryEnvironment, ) from mlagents.trainers.settings import NetworkSettings from mlagents.trainers.tests.dummy_config import ppo_dummy_config, sac_dummy_config from mlagents.trainers.tests.check_env_trains im...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_hybrid.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_hybrid.py", "repo_id": "ml-agents", "token_count": 1949 }
1,992
from typing import List from mlagents.torch_utils import torch from mlagents_envs.base_env import ActionSpec from mlagents.trainers.torch_entities.agent_action import AgentAction from mlagents.trainers.torch_entities.utils import ModelUtils class ActionFlattener: def __init__(self, action_spec: ActionSpec): ...
ml-agents/ml-agents/mlagents/trainers/torch_entities/action_flattener.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/action_flattener.py", "repo_id": "ml-agents", "token_count": 701 }
1,993
from typing import List, Dict from mlagents.torch_utils import torch, nn from mlagents.trainers.torch_entities.layers import linear_layer class ValueHeads(nn.Module): def __init__(self, stream_names: List[str], input_size: int, output_size: int = 1): super().__init__() self.stream_names = stream_...
ml-agents/ml-agents/mlagents/trainers/torch_entities/decoders.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/decoders.py", "repo_id": "ml-agents", "token_count": 328 }
1,994
from typing import Dict, Any from enum import Enum from collections import defaultdict import json import attr import cattr from mlagents.torch_utils import torch from mlagents_envs.logging_util import get_logger from mlagents.trainers import __version__ from mlagents.trainers.exception import TrainerError logger = g...
ml-agents/ml-agents/mlagents/trainers/training_status.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/training_status.py", "repo_id": "ml-agents", "token_count": 1668 }
1,995
import os import sys import argparse from .yamato_utils import get_base_path, run_standalone_build def main(scene_path, build_target): base_path = get_base_path() print(f"Running in base path {base_path}") executable_name = "testPlayer" if scene_path is not None: executable_name = os.path.sp...
ml-agents/ml-agents/tests/yamato/standalone_build_tests.py/0
{ "file_path": "ml-agents/ml-agents/tests/yamato/standalone_build_tests.py", "repo_id": "ml-agents", "token_count": 484 }
1,996
syntax = "proto3"; option csharp_namespace = "Unity.MLAgents.CommunicatorObjects"; package communicator_objects; enum CompressionTypeProto { NONE = 0; PNG = 1; } enum ObservationTypeProto { DEFAULT = 0; GOAL_SIGNAL = 1; reserved 2; // Reserved for potential "reward" type reserved 3; // Reserv...
ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/observation.proto/0
{ "file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/observation.proto", "repo_id": "ml-agents", "token_count": 336 }
1,997
fileFormatVersion: 2 guid: 1e2eb0ecfd63eea4f820ff8575288639 folderAsset: yes DefaultImporter: userData:
xLua/Assets/XLua/Examples/05_NoGc.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/05_NoGc.meta", "repo_id": "xLua", "token_count": 45 }
1,998
fileFormatVersion: 2 guid: 4f3d9471c4ae0aa47957ff35c0df972e timeCreated: 1463555211 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/06_Coroutine/Resources/cs_coroutine.lua.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/06_Coroutine/Resources/cs_coroutine.lua.txt.meta", "repo_id": "xLua", "token_count": 73 }
1,999
fileFormatVersion: 2 guid: dceaef6c0e4f511489f2a9d6d198afa7 timeCreated: 1489370693 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/10_SignatureLoader/signatured2.lua.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/signatured2.lua.meta", "repo_id": "xLua", "token_count": 73 }
2,000
fileFormatVersion: 2 guid: 1fd3fcc7509943c45af11f63df13d137 timeCreated: 1531790057 licenseType: Free MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs.meta", "repo_id": "xLua", "token_count": 106 }
2,001
fileFormatVersion: 2 guid: 4397ec772c2d41e46a9766cf46b8bec6 timeCreated: 1463477791 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Resources/xlua/util.lua.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Resources/xlua/util.lua.txt.meta", "repo_id": "xLua", "token_count": 72 }
2,002
fileFormatVersion: 2 guid: ea84a5ee7abf8e347a810eb7848add46 timeCreated: 1501232428 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta", "repo_id": "xLua", "token_count": 72 }
2,003
fileFormatVersion: 2 guid: 4455254bac5b6644893ae8183b9eb87c timeCreated: 1452509750 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/GenAttributes.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/GenAttributes.cs.meta", "repo_id": "xLua", "token_count": 101 }
2,004
fileFormatVersion: 2 guid: 3a4d72d338110544b8538c1a5fd33c11 MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData:
xLua/Assets/XLua/Src/LuaTable.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/LuaTable.cs.meta", "repo_id": "xLua", "token_count": 72 }
2,005
fileFormatVersion: 2 guid: 300ed412007935e45a1546a984b89059 timeCreated: 1469175028 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/StaticLuaCallbacks.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/StaticLuaCallbacks.cs.meta", "repo_id": "xLua", "token_count": 99 }
2,006
fileFormatVersion: 2 guid: d51c6b9168a36a24fa5817d79e1277f0 timeCreated: 1455708953 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Tutorial/LoadLuaScript/Loader/CustomLoader.unity.meta/0
{ "file_path": "xLua/Assets/XLua/Tutorial/LoadLuaScript/Loader/CustomLoader.unity.meta", "repo_id": "xLua", "token_count": 72 }
2,007
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
xLua/General/Src/XLuaTemplates.Designer.cs/0
{ "file_path": "xLua/General/Src/XLuaTemplates.Designer.cs", "repo_id": "xLua", "token_count": 5395 }
2,008
Tencent is pleased to support the open source community by making xLua available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. If you have downloaded a copy of the xLua binary from Tencent, please note that the xLua binary is licensed under the MIT License. If you have downloaded a cop...
xLua/LICENSE.TXT/0
{ "file_path": "xLua/LICENSE.TXT", "repo_id": "xLua", "token_count": 1023 }
2,009
require("ltest.init") -- for test case CMyTestCaseGenCode = TestCase:new() function CMyTestCaseGenCode:new(oo) local o = oo or {} o.count = 1 setmetatable(o, self) self.__index = self return o end function CMyTestCaseGenCode.SetUpTestCase(self) self.count = 1 + self.count print("CMyTestC...
xLua/Test/UnitTest/StreamingAssets/genCode.lua/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/genCode.lua", "repo_id": "xLua", "token_count": 566 }
2,010
fileFormatVersion: 2 guid: 6614b2ace2f43764b9e587155b572200 timeCreated: 1483528414 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/StreamingAssets/main.lua.meta/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/main.lua.meta", "repo_id": "xLua", "token_count": 68 }
2,011
<?xml version="1.0" ?> <metalib name="net" version="3" > <include file="non_tlv_net_msg_type.xml" /> <struct name="PkgHead" version="1" id="3" desc="package header" > <entry name="magic" type="smallint" id="1" defaultvalue="13124" /> <entry name="msgid" type="biguint" id="2" /> <entry na...
xLua/Test/UnitTest/xLuaTest/Resources/non_tlv_net_protocol.xml/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/Resources/non_tlv_net_protocol.xml", "repo_id": "xLua", "token_count": 1480 }
2,012
/* ** $Id: luaconf.h,v 1.259 2016/12/22 13:08:50 roberto Exp $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ #ifndef luaconf_h #define luaconf_h #include <limits.h> #include <stddef.h> /* ** =================================================================== ** Search for "@@" to find all confi...
xLua/WebGLPlugins/luaconf.h/0
{ "file_path": "xLua/WebGLPlugins/luaconf.h", "repo_id": "xLua", "token_count": 7490 }
2,013
/* *Tencent is pleased to support the open source community by making xLua available. *Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. *Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
xLua/build/i64lib.c/0
{ "file_path": "xLua/build/i64lib.c", "repo_id": "xLua", "token_count": 6710 }
2,014
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Lua 5.1 Reference Manual</title> <link rel="stylesheet" type="text/css" href="lua.css"> <link rel="stylesheet" type="text/css" href="manual.css"> <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1"> </head> <body>...
xLua/build/lua-5.1.5/doc/manual.html/0
{ "file_path": "xLua/build/lua-5.1.5/doc/manual.html", "repo_id": "xLua", "token_count": 91180 }
2,015
/* ** $Id: llex.c,v 2.20.1.2 2009/11/23 14:58:22 roberto Exp $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ #include <ctype.h> #include <locale.h> #include <string.h> #define llex_c #define LUA_CORE #include "lua.h" #include "ldo.h" #include "llex.h" #include "lobject.h" #include "lparser.h" #include "l...
xLua/build/lua-5.1.5/src/llex.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/llex.c", "repo_id": "xLua", "token_count": 6171 }
2,016
/* ** $Id: lstring.c,v 2.8.1.1 2007/12/27 13:02:25 roberto Exp $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ #include <string.h> #define lstring_c #define LUA_CORE #include "lua.h" #include "lmem.h" #include "lobject.h" #include "lstate.h" #include "lstring.h" void lua...
xLua/build/lua-5.1.5/src/lstring.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lstring.c", "repo_id": "xLua", "token_count": 1487 }
2,017
/* ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $ ** Lua virtual machine ** See Copyright Notice in lua.h */ #ifndef lvm_h #define lvm_h #include "ldo.h" #include "lobject.h" #include "ltm.h" #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) #define tonumber(o,n) (ttype(o) == L...
xLua/build/lua-5.1.5/src/lvm.h/0
{ "file_path": "xLua/build/lua-5.1.5/src/lvm.h", "repo_id": "xLua", "token_count": 599 }
2,018
html { background-color: #F8F8F8 ; } body { background-color: #FFFFFF ; color: #000000 ; font-family: Helvetica, Arial, sans-serif ; text-align: justify ; line-height: 1.25 ; margin: 16px auto ; padding: 32px ; border: solid #a0a0a0 1px ; border-radius: 20px ; max-width: 70em ; width: 90% ; } h1, h2, h3, ...
xLua/build/lua-5.3.3/doc/lua.css/0
{ "file_path": "xLua/build/lua-5.3.3/doc/lua.css", "repo_id": "xLua", "token_count": 1020 }
2,019
/* ** $Id: lcorolib.c,v 1.10 2016/04/11 19:19:55 roberto Exp $ ** Coroutine Library ** See Copyright Notice in lua.h */ #define lcorolib_c #define LUA_LIB #include "lprefix.h" #include <stdlib.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" static lua_State *getco (lua_State *L) { lua_State *co =...
xLua/build/lua-5.3.4/src/lcorolib.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lcorolib.c", "repo_id": "xLua", "token_count": 1755 }
2,020
/* ** $Id: lstring.c,v 2.56 2015/11/23 11:32:51 roberto Exp $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ #define lstring_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lmem.h" #include "lobject...
xLua/build/lua-5.3.4/src/lstring.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lstring.c", "repo_id": "xLua", "token_count": 2864 }
2,021
/* ** $Id: lutf8lib.c,v 1.16 2016/12/22 13:08:50 roberto Exp $ ** Standard library for UTF-8 manipulation ** See Copyright Notice in lua.h */ #define lutf8lib_c #define LUA_LIB #include "lprefix.h" #include <assert.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lauxlib.h...
xLua/build/lua-5.3.4/src/lutf8lib.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lutf8lib.c", "repo_id": "xLua", "token_count": 3038 }
2,022
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Lua 5.3 readme</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="lua.css"> <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1"> <STYLE TYPE="text/css"> blockquote, .display { border: solid #a0a0a0 2px ; border-...
xLua/build/lua-5.3.5/doc/readme.html/0
{ "file_path": "xLua/build/lua-5.3.5/doc/readme.html", "repo_id": "xLua", "token_count": 3905 }
2,023
/* ** $Id: ldo.c,v 2.157.1.1 2017/04/19 17:20:42 roberto Exp $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ #define ldo_c #define LUA_CORE #include "lprefix.h" #include <setjmp.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "ldebug.h" #include "ldo...
xLua/build/lua-5.3.5/src/ldo.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/ldo.c", "repo_id": "xLua", "token_count": 10468 }
2,024
/* ** $Id: lobject.c,v 2.113.1.1 2017/04/19 17:29:57 roberto Exp $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ #define lobject_c #define LUA_CORE #include "lprefix.h" #include <locale.h> #include <math.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string....
xLua/build/lua-5.3.5/src/lobject.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/lobject.c", "repo_id": "xLua", "token_count": 7649 }
2,025
/* ** $Id: ltm.c,v 2.38.1.1 2017/04/19 17:39:34 roberto Exp $ ** Tag methods ** See Copyright Notice in lua.h */ #define ltm_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lobject.h" #include "lstate.h" #include "lstring.h" #include "lta...
xLua/build/lua-5.3.5/src/ltm.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/ltm.c", "repo_id": "xLua", "token_count": 2174 }
2,026
This is Lua 5.4.1, released on 30 Sep 2020. For installation instructions, license details, and further information about Lua, see doc/readme.html.
xLua/build/lua-5.4.1/README/0
{ "file_path": "xLua/build/lua-5.4.1/README", "repo_id": "xLua", "token_count": 42 }
2,027
/* ** $Id: lbaselib.c $ ** Basic library ** See Copyright Notice in lua.h */ #define lbaselib_c #define LUA_LIB #include "lprefix.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" static int luaB_print (lua_State *L) { in...
xLua/build/lua-5.4.1/src/lbaselib.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lbaselib.c", "repo_id": "xLua", "token_count": 6369 }
2,028
/* ** $Id: lparser.c $ ** Lua Parser ** See Copyright Notice in lua.h */ #define lparser_c #define LUA_CORE #include "lprefix.h" #include <limits.h> #include <string.h> #include "lua.h" #include "lcode.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "llex.h" #include "lmem.h" #include "lobject...
xLua/build/lua-5.4.1/src/lparser.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lparser.c", "repo_id": "xLua", "token_count": 24141 }
2,029
/* ** $Id: luac.c $ ** Lua compiler (saves bytecodes to files; also lists bytecodes) ** See Copyright Notice in lua.h */ #define luac_c #define LUA_CORE #include "lprefix.h" #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lauxlib.h" #inclu...
xLua/build/lua-5.4.1/src/luac.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/luac.c", "repo_id": "xLua", "token_count": 7338 }
2,030
README for LuaJIT 2.1.0-beta2 ----------------------------- LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. Project Homepage: http://luajit.org/ LuaJIT is Copyright (C) 2005-2016 Mike Pall. LuaJIT is free software, released under the MIT license. See full Copyright Notice in the COPYRIGHT f...
xLua/build/luajit-2.1.0b2/README/0
{ "file_path": "xLua/build/luajit-2.1.0b2/README", "repo_id": "xLua", "token_count": 133 }
2,031
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>LuaJIT</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Author" content="Mike Pall"> <meta name="Copyright" content="Copyright (C) 2005-2016, Mike Pall"> <meta name...
xLua/build/luajit-2.1.0b2/doc/luajit.html/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/luajit.html", "repo_id": "xLua", "token_count": 3183 }
2,032
.TH luajit 1 "" "" "LuaJIT documentation" .SH NAME luajit \- Just-In-Time Compiler for the Lua Language \fB .SH SYNOPSIS .B luajit [\fIoptions\fR]... [\fIscript\fR [\fIargs\fR]...] .SH "WEB SITE" .IR http://luajit.org .SH DESCRIPTION .PP This is the command-line program to run Lua programs with \fBLuaJIT\fR. .PP \fBLua...
xLua/build/luajit-2.1.0b2/etc/luajit.1/0
{ "file_path": "xLua/build/luajit-2.1.0b2/etc/luajit.1", "repo_id": "xLua", "token_count": 858 }
2,033
/* ** FFI library. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lib_ffi_c #define LUA_LIB #include <errno.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab....
xLua/build/luajit-2.1.0b2/src/lib_ffi.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lib_ffi.c", "repo_id": "xLua", "token_count": 11811 }
2,034
/* ** ARM IR assembler (SSA IR -> machine code). ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ /* -- Register allocator extensions --------------------------------------- */ /* Allocate a register with a hint. */ static Reg ra_hintalloc(ASMState *as, IRRef ref, Reg hint, RegSet allow) { ...
xLua/build/luajit-2.1.0b2/src/lj_asm_arm.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_asm_arm.h", "repo_id": "xLua", "token_count": 35036 }
2,035
/* ** FFI C callback handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_CCALLBACK_H #define _LJ_CCALLBACK_H #include "lj_obj.h" #include "lj_ctype.h" #if LJ_HASFFI /* Really belongs to lj_vm.h. */ LJ_ASMF void lj_vm_ffi_callback(void); LJ_FUNC MSize lj_ccallback_ptr2slo...
xLua/build/luajit-2.1.0b2/src/lj_ccallback.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_ccallback.h", "repo_id": "xLua", "token_count": 297 }
2,036
/* ** Debugging and introspection. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_DEBUG_H #define _LJ_DEBUG_H #include "lj_obj.h" typedef struct lj_Debug { /* Common fields. Must be in the same order as in lua.h. */ int event; const char *name; const char *namewhat; c...
xLua/build/luajit-2.1.0b2/src/lj_debug.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_debug.h", "repo_id": "xLua", "token_count": 837 }
2,037
/* ** Function handling (prototypes, functions and upvalues). ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_FUNC_H #define _LJ_FUNC_H #include "lj_obj.h" /* Prototypes. */ LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); /* Upvalues. */ LJ_FUNCA void ...
xLua/build/luajit-2.1.0b2/src/lj_func.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_func.h", "repo_id": "xLua", "token_count": 345 }
2,038
/* ** Machine code management. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_MCODE_H #define _LJ_MCODE_H #include "lj_obj.h" #if LJ_HASJIT || LJ_HASFFI LJ_FUNC void lj_mcode_sync(void *start, void *end); #endif #if LJ_HASJIT #include "lj_jit.h" LJ_FUNC void lj_mcode_free(ji...
xLua/build/luajit-2.1.0b2/src/lj_mcode.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_mcode.h", "repo_id": "xLua", "token_count": 333 }
2,039
/* ** Trace recorder (bytecode -> SSA IR). ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_record_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_meta.h" #include "lj_frame.h" #if LJ_HASFFI #include "l...
xLua/build/luajit-2.1.0b2/src/lj_record.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_record.c", "repo_id": "xLua", "token_count": 39701 }
2,040
/* ** Definitions for ARM CPUs. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_TARGET_ARM_H #define _LJ_TARGET_ARM_H /* -- Registers IDs ------------------------------------------------------- */ #define GPRDEF(_) \ _(R0) _(R1) _(R2) _(R3) _(R4) _(R5) _(R6) _(R7) \ _(R8) _(...
xLua/build/luajit-2.1.0b2/src/lj_target_arm.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_target_arm.h", "repo_id": "xLua", "token_count": 3609 }
2,041
@rem Script to build LuaJIT with the Xbox One SDK. @rem Donated to the public domain. @rem @rem Open a "Visual Studio .NET Command Prompt" (64 bit host compiler) @rem Then cd to this directory and run this script. @if not defined INCLUDE goto :FAIL @if not defined DurangoXDK goto :FAIL @setlocal @echo ---- Host compi...
xLua/build/luajit-2.1.0b2/src/xb1build.bat/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/xb1build.bat", "repo_id": "xLua", "token_count": 1311 }
2,042
<!DOCTYPE html> <html> <head> <title>jit.* Library</title> <meta charset="utf-8"> <meta name="Copyright" content="Copyright (C) 2005-2021"> <meta name="Language" content="en"> <link rel="stylesheet" type="text/css" href="bluequad.css" media="screen"> <link rel="stylesheet" type="text/css" href="bluequad-print.css" medi...
xLua/build/luajit-2.1.0b3/doc/ext_jit.html/0
{ "file_path": "xLua/build/luajit-2.1.0b3/doc/ext_jit.html", "repo_id": "xLua", "token_count": 2144 }
2,043
------------------------------------------------------------------------------ -- DynASM MIPS32/MIPS64 module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local mips64 = mips64 ...
xLua/build/luajit-2.1.0b3/dynasm/dasm_mips.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/dynasm/dasm_mips.lua", "repo_id": "xLua", "token_count": 17369 }
2,044
---------------------------------------------------------------------------- -- LuaJIT ARM64 disassembler module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -- -- Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com. -- S...
xLua/build/luajit-2.1.0b3/src/jit/dis_arm64.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/dis_arm64.lua", "repo_id": "xLua", "token_count": 15873 }
2,045
/* ** Auxiliary library for the Lua/C API. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h ** ** Major parts taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #include <errno.h> #include <stdarg.h> #include <stdio.h>...
xLua/build/luajit-2.1.0b3/src/lib_aux.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lib_aux.c", "repo_id": "xLua", "token_count": 4217 }
2,046
/* ** Bundled memory allocator. ** Donated to the public domain. */ #ifndef _LJ_ALLOC_H #define _LJ_ALLOC_H #include "lj_def.h" #ifndef LUAJIT_USE_SYSMALLOC LJ_FUNC void *lj_alloc_create(PRNGState *rs); LJ_FUNC void lj_alloc_setprng(void *msp, PRNGState *rs); LJ_FUNC void lj_alloc_destroy(void *msp); LJ_FUNC void *l...
xLua/build/luajit-2.1.0b3/src/lj_alloc.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_alloc.h", "repo_id": "xLua", "token_count": 185 }
2,047
/* ** Buffer handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_buf_c #define LUA_CORE #include "lj_obj.h" #include "lj_gc.h" #include "lj_err.h" #include "lj_buf.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_strfmt.h" /* -- Buffer management --------------------...
xLua/build/luajit-2.1.0b3/src/lj_buf.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_buf.c", "repo_id": "xLua", "token_count": 3944 }
2,048
/* ** C declaration parser. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_buf.h" #include "lj_ctype.h" #include "lj_cparse.h" #include "lj_frame.h" #include "lj_vm.h" #include "lj_char.h" #include "lj_st...
xLua/build/luajit-2.1.0b3/src/lj_cparse.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_cparse.c", "repo_id": "xLua", "token_count": 27217 }
2,049
/* ** Error handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_err_c #define LUA_CORE #include "lj_obj.h" #include "lj_err.h" #include "lj_debug.h" #include "lj_str.h" #include "lj_func.h" #include "lj_state.h" #include "lj_frame.h" #include "lj_ff.h" #include "lj_trace.h" ...
xLua/build/luajit-2.1.0b3/src/lj_err.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_err.c", "repo_id": "xLua", "token_count": 14407 }
2,050
/* ** Common header for IR emitter and optimizations. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_IROPT_H #define _LJ_IROPT_H #include <stdarg.h> #include "lj_obj.h" #include "lj_jit.h" #if LJ_HASJIT /* IR emitter. */ LJ_FUNC void LJ_FASTCALL lj_ir_growtop(jit_State *J); LJ...
xLua/build/luajit-2.1.0b3/src/lj_iropt.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_iropt.h", "repo_id": "xLua", "token_count": 3024 }
2,051
/* ** Memory access optimizations. ** AA: Alias Analysis using high-level semantic disambiguation. ** FWD: Load Forwarding (L2L) + Store Forwarding (S2L). ** DSE: Dead-Store Elimination. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_opt_mem_c #define LUA_CORE #include "lj_obj.h"...
xLua/build/luajit-2.1.0b3/src/lj_opt_mem.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_opt_mem.c", "repo_id": "xLua", "token_count": 13846 }
2,052
/* ** State and stack handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h ** ** Portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #define lj_state_c #define LUA_CORE #include "lj_obj.h" #include "lj_g...
xLua/build/luajit-2.1.0b3/src/lj_state.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_state.c", "repo_id": "xLua", "token_count": 4683 }
2,053
/* ** Definitions for IBM z/Architecture (s390x) CPUs. ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_TARGET_S390X_H #define _LJ_TARGET_S390X_H /* -- Registers IDs ------------------------------------------------------- */ #define GPRDEF(_) \ _(R0) _(R1) _(R2) _(R3) _(R4) _(R...
xLua/build/luajit-2.1.0b3/src/lj_target_s390x.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_target_s390x.h", "repo_id": "xLua", "token_count": 983 }
2,054
/* ** LuaJIT -- a Just-In-Time Compiler for Lua. https://luajit.org/ ** ** Copyright (C) 2005-2021 Mike Pall. All rights reserved. ** ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software and associated documentation files (the ** "Software"), to deal in the Software withou...
xLua/build/luajit-2.1.0b3/src/luajit.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/luajit.h", "repo_id": "xLua", "token_count": 1070 }
2,055
.PHONY: default test benchmark default: test benchmark COMMON_OBJ := test_util.o TEST_PROGRAM := ht_test BENCHMARK_PROGRAM := ht_benchmark TEST_PROGRAM_OBJ := $(COMMON_OBJ) test.o BENCHMARK_PROGRAM_OBJ := $(COMMON_OBJ) benchmark.o ifeq ($(WITH_VALGRIND), 1) VALGRIND := valgrind --leak-check=full else VALGR...
xLua/build/luajit-2.1.0b3/src/x64/test/Makefile/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/Makefile", "repo_id": "xLua", "token_count": 508 }
2,056
#ifndef BUF_H #define BUF_H /*=========================================================================*\ * Input/Output interface for Lua programs * LuaSocket toolkit * * Line patterns require buffering. Reading one character at a time involves * too many system calls and is very slow. This module implements the * Lu...
xLua/build/luasocket/buffer.h/0
{ "file_path": "xLua/build/luasocket/buffer.h", "repo_id": "xLua", "token_count": 541 }
2,057
#ifndef SELECT_H #define SELECT_H /*=========================================================================*\ * Select implementation * LuaSocket toolkit * * Each object that can be passed to the select function has to export * method getfd() which returns the descriptor to be passed to the * underlying select funct...
xLua/build/luasocket/select.h/0
{ "file_path": "xLua/build/luasocket/select.h", "repo_id": "xLua", "token_count": 124 }
2,058
source ./make_android_lua53.sh build android-16 arm64-v8a aarch64-linux-android-4.9
xLua/build/make_android_lua53_arm64.sh/0
{ "file_path": "xLua/build/make_android_lua53_arm64.sh", "repo_id": "xLua", "token_count": 34 }
2,059
mkdir -p build_lj_osx && cd build_lj_osx cmake -DUSING_LUAJIT=ON -GXcode ../ cd .. cmake --build build_lj_osx --config Release mkdir -p plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/ cp build_lj_osx/Release/xlua.bundle/Contents/MacOS/xlua plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/xlua
xLua/build/make_osx_luajit.sh/0
{ "file_path": "xLua/build/make_osx_luajit.sh", "repo_id": "xLua", "token_count": 130 }
2,060
@echo off if exist "%VS140COMNTOOLS%" ( set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" goto build ) else (goto missing) :build @set ENV32="%VCVARS%vcvars32.bat" call "%ENV32%" echo Swtich to x86 build env cd %~dp0\luajit-2.1.0b3\src call msvcbuild_mt.bat static cd ..\.. goto :buildxlua :missing echo Can't find V...
xLua/build/vs2015/make_win32_luajit.bat/0
{ "file_path": "xLua/build/vs2015/make_win32_luajit.bat", "repo_id": "xLua", "token_count": 299 }
2,061
--- title: GC优化指南 type: guide order: 102 --- ## GC优化指南 > Todo:请在此处输入内容
xLua/docs/source/src/v1/guide/gc-optimization.md/0
{ "file_path": "xLua/docs/source/src/v1/guide/gc-optimization.md", "repo_id": "xLua", "token_count": 60 }
2,062
// font faces $body-font = 'Source Sans Pro', 'Helvetica Neue', "微软雅黑", "黑体", serif , Arial, sans-serif $code-font = 'Roboto Mono', Monaco, courier, monospace // font sizes $body-font-size = 15px // colors $main-color = #3d9cff $contrast-color = #ffffff $main-bg-color = #fafafa $main-font-color = #2c3e50 $su...
xLua/docs/source/themes/catlib/source/css/_settings.styl/0
{ "file_path": "xLua/docs/source/themes/catlib/source/css/_settings.styl", "repo_id": "xLua", "token_count": 182 }
2,063
/* (C) 2020 David Lettier lettier.com */ #version 150 uniform sampler2D colorTexture; uniform vec2 parameters; out vec4 fragColor; void main() { int size = int(parameters.x); float separation = parameters.y; float minThreshold = 0.2; float maxThreshold = 0.5; vec2 texSize = texture...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/dilation.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/dilation.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 622 }
0
/* (C) 2019 David Lettier lettier.com */ #version 150 uniform float osg_FrameTime; uniform sampler2D p3d_Texture1; uniform sampler2D flowTexture; uniform vec2 normalMapsEnabled; uniform vec2 flowMapsEnabled; in vec3 vertexNormal; in vec3 binormal; in vec3 tangent; in vec2 normalCoord; out vec4 fragColor; vo...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/normal.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/normal.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 596 }
1
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi...
3d-game-shaders-for-beginners/docs/film-grain.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/film-grain.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 7964 }
2
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi...
3d-game-shaders-for-beginners/docs/render-to-texture.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/render-to-texture.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1941 }
3
[:arrow_backward:](normal-mapping.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](fog.md) # 3D Game Shaders For Beginners ## Deferred Rendering <p align="center"> <img src="https://i.imgur.com/rxTYLGv.png" alt="Deferred vs Forward" title="Deferred vs For...
3d-game-shaders-for-beginners/sections/deferred-rendering.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/deferred-rendering.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 831 }
4
[:arrow_backward:](depth-of-field.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](pixelization.md) # 3D Game Shaders For Beginners ## Posterization <p align="center"> <img src="https://i.imgur.com/hpP5G9z.gif" alt="Posterization" title="Posterization"> <...
3d-game-shaders-for-beginners/sections/posterization.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/posterization.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1095 }
5
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_CancelToken_hpp #define air_CancelToken_hpp #include <mutex> #include <atomic> #include "common/Common.hpp" #include "common/common_utils/Utils.hpp" namespace msr { namespace airlib { class CancelToken ...
AirSim/AirLib/include/common/CancelToken.hpp/0
{ "file_path": "AirSim/AirLib/include/common/CancelToken.hpp", "repo_id": "AirSim", "token_count": 1254 }
6
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_settings_hpp #define msr_airlib_settings_hpp #include "common_utils/Utils.hpp" STRICT_MODE_OFF // this json library is not strict clean //TODO: HACK!! below are added temporariliy because something is ...
AirSim/AirLib/include/common/Settings.hpp/0
{ "file_path": "AirSim/AirLib/include/common/Settings.hpp", "repo_id": "AirSim", "token_count": 3742 }
7
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef common_utils_OnlineStats_hpp #define common_utils_OnlineStats_hpp #include <cmath> namespace common_utils { class OnlineStats { public: OnlineStats() { clear(); } void clear() { ...
AirSim/AirLib/include/common/common_utils/OnlineStats.hpp/0
{ "file_path": "AirSim/AirLib/include/common/common_utils/OnlineStats.hpp", "repo_id": "AirSim", "token_count": 1348 }
8
// Copyright Louis Delacroix 2010 - 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // A pretty printing library for C++ // // Usage: // Include this header, and operator<< will "jus...
AirSim/AirLib/include/common/common_utils/prettyprint.hpp/0
{ "file_path": "AirSim/AirLib/include/common/common_utils/prettyprint.hpp", "repo_id": "AirSim", "token_count": 7226 }
9
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef air_SafetyEval_hpp #define air_SafetyEval_hpp #include <functional> #include <array> #include <memory> #include "ObstacleMap.hpp" #include "common/common_utils/Utils.hpp" #include "IGeoFence.hpp" #include "common/C...
AirSim/AirLib/include/safety/SafetyEval.hpp/0
{ "file_path": "AirSim/AirLib/include/safety/SafetyEval.hpp", "repo_id": "AirSim", "token_count": 2586 }
10
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_SimpleImuParams_hpp #define msr_airlib_SimpleImuParams_hpp #include "common/Common.hpp" #include "common/EarthUtils.hpp" #include "common/AirSimSettings.hpp" #include <cmath> namespace msr { namespace a...
AirSim/AirLib/include/sensors/imu/ImuSimpleParams.hpp/0
{ "file_path": "AirSim/AirLib/include/sensors/imu/ImuSimpleParams.hpp", "repo_id": "AirSim", "token_count": 1512 }
11
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_multirotorphysicsbody_hpp #define msr_airlib_multirotorphysicsbody_hpp #include "common/Common.hpp" #include "common/CommonStructs.hpp" #include "RotorActuator.hpp" #include "api/VehicleApiBase.hpp" #inc...
AirSim/AirLib/include/vehicles/multirotor/MultiRotorPhysicsBody.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/MultiRotorPhysicsBody.hpp", "repo_id": "AirSim", "token_count": 3983 }
12
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_AirSimSimpleFlightCommon_hpp #define msr_airlib_AirSimSimpleFlightCommon_hpp #include "physics/Kinematics.hpp" #include "common/Common.hpp" namespace msr { namespace airlib { class AirSimSimpleFlig...
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/AirSimSimpleFlightCommon.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/AirSimSimpleFlightCommon.hpp", "repo_id": "AirSim", "token_count": 1505 }
13
#pragma once #include <vector> #include <cstdint> #include "interfaces/IBoardClock.hpp" #include "interfaces/IBoardInputPins.hpp" #include "interfaces/IGoal.hpp" #include "interfaces/CommonStructs.hpp" namespace simple_flight { class RemoteControl : public IGoal , public IUpdatable { public: RemoteControl(co...
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/RemoteControl.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/RemoteControl.hpp", "repo_id": "AirSim", "token_count": 4260 }
14
#pragma once #include "CommonStructs.hpp" #include <algorithm> namespace simple_flight { template <typename T> class IPidIntegrator { public: virtual ~IPidIntegrator() {} virtual void reset() = 0; virtual void set(T val) = 0; virtual void update(float dt, T error, uint64_t last_time) = 0; virtual...
AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IPidIntegrator.hpp/0
{ "file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IPidIntegrator.hpp", "repo_id": "AirSim", "token_count": 136 }
15
#ifndef msr_AirLibUnitTests_CelestialTest_hpp #define msr_AirLibUnitTests_CelestialTest_hpp #include "TestBase.hpp" #include "common/EarthCelestial.hpp" namespace msr { namespace airlib { class CelestialTest : public TestBase { public: virtual void run() override { auto t = st...
AirSim/AirLibUnitTests/CelestialTests.hpp/0
{ "file_path": "AirSim/AirLibUnitTests/CelestialTests.hpp", "repo_id": "AirSim", "token_count": 454 }
16
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <iostream> #include <string> #include "vehicles/multirotor/api/MultirotorRpcLibServer.hpp" #include "vehicles/multirotor/firmwares/mavlink/MavLinkMultirotorApi.hpp" #include "common/Settings.hpp" using namespace m...
AirSim/DroneServer/main.cpp/0
{ "file_path": "AirSim/DroneServer/main.cpp", "repo_id": "AirSim", "token_count": 2192 }
17
#pragma once #include "common/Common.hpp" #include "common/common_utils/FileSystem.hpp" #include "common/common_utils/bitmap_image.hpp" #include "common/common_utils/ColorUtils.hpp" namespace msr { namespace airlib { class DepthNavOptAStar { public: struct Params { //Camera FO...
AirSim/Examples/DepthNav/DepthNavOptAStar.hpp/0
{ "file_path": "AirSim/Examples/DepthNav/DepthNavOptAStar.hpp", "repo_id": "AirSim", "token_count": 5774 }
18
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "common/common_utils/StrictMode.hpp" STRICT_MODE_OFF #ifndef RPCLIB_MSGPACK #define RPCLIB_MSGPACK clmdep_msgpack #endif // !RPCLIB_MSGPACK #include "rpc/rpc_error.h" STRICT_MODE_ON #include "vehicles/multirotor/a...
AirSim/HelloDrone/main.cpp/0
{ "file_path": "AirSim/HelloDrone/main.cpp", "repo_id": "AirSim", "token_count": 3222 }
19
<Grid x:Class="LogViewer.Controls.ChartStack" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.micr...
AirSim/LogViewer/LogViewer/Controls/ChartStack.xaml/0
{ "file_path": "AirSim/LogViewer/LogViewer/Controls/ChartStack.xaml", "repo_id": "AirSim", "token_count": 323 }
20
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Media3D; namespace LogViewer.Gestures { static class Extensions3D { public static Vector3D ToVector3D(this Point3D pt) { return new Vector3...
AirSim/LogViewer/LogViewer/Gestures/Extensions3D.cs/0
{ "file_path": "AirSim/LogViewer/LogViewer/Gestures/Extensions3D.cs", "repo_id": "AirSim", "token_count": 229 }
21
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
AirSim/LogViewer/LogViewer/Properties/AssemblyInfo.cs/0
{ "file_path": "AirSim/LogViewer/LogViewer/Properties/AssemblyInfo.cs", "repo_id": "AirSim", "token_count": 758 }
22
using Microsoft.Storage; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace LogViewer.Utilities { public enum AppTheme { Light, ...
AirSim/LogViewer/LogViewer/Utilities/Settings.cs/0
{ "file_path": "AirSim/LogViewer/LogViewer/Utilities/Settings.cs", "repo_id": "AirSim", "token_count": 2009 }
23
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <ClCompile Include="src\MavLinkConnection.cpp"> <Filter>src</Filter> </ClCompile> <ClCompile Include="src\impl\MavLinkConnectionImpl.cpp"> <Filter>src\im...
AirSim/MavLinkCom/MavLinkCom.vcxproj.filters/0
{ "file_path": "AirSim/MavLinkCom/MavLinkCom.vcxproj.filters", "repo_id": "AirSim", "token_count": 4081 }
24
// stdafx.cpp : source file that includes just the standard includes // MavlinkMoCap.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
AirSim/MavLinkCom/MavLinkMoCap/stdafx.cpp/0
{ "file_path": "AirSim/MavLinkCom/MavLinkMoCap/stdafx.cpp", "repo_id": "AirSim", "token_count": 86 }
25
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef CommonUtils_EnumFlags_hpp #define CommonUtils_EnumFlags_hpp namespace mavlink_utils { template <class TEnum, class TUnderlying = typename std::underlying_type<TEnum>::type> class EnumFlags { protected: TUnderl...
AirSim/MavLinkCom/common_utils/EnumFlags.hpp/0
{ "file_path": "AirSim/MavLinkCom/common_utils/EnumFlags.hpp", "repo_id": "AirSim", "token_count": 955 }
26