text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
{ "name": "Unity.ML-Agents.Editor.Tests.PublicAPI", "rootNamespace": "", "references": [ "Unity.ML-Agents.Editor", "Unity.ML-Agents", "Unity.ML-Agents.CommunicatorObjects", "UnityEngine.TestRunner", "UnityEditor.TestRunner", "Unity.Sentis" ], "includeP...
ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/Unity.ML-Agents.Editor.Tests.PublicAPI.asmdef/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/Unity.ML-Agents.Editor.Tests.PublicAPI.asmdef", "repo_id": "ml-agents", "token_count": 374 }
1,927
fileFormatVersion: 2 guid: 95997790219c547e584c3cb50122a95f folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Tests/Editor/TestModels.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/TestModels.meta", "repo_id": "ml-agents", "token_count": 68 }
1,928
using System.Collections; using System.Collections.Generic; using Unity.MLAgents; using Unity.MLAgents.Policies; using Unity.MLAgents.Sensors; using Unity.MLAgents.Sensors.Reflection; using NUnit.Framework; using Unity.MLAgents.Actuators; using UnityEngine; using UnityEngine.TestTools; namespace Tests { public cla...
ml-agents/com.unity.ml-agents/Tests/Runtime/RuntimeAPITest.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/RuntimeAPITest.cs", "repo_id": "ml-agents", "token_count": 2089 }
1,929
{ "name": "Unity.ML-Agents.Runtime.Utils.Tests", "rootNamespace": "", "references": [ "Unity.ML-Agents", "Unity.ML-Agents.CommunicatorObjects", "UnityEngine.TestRunner", "UnityEditor.TestRunner", "Unity.Sentis" ], "includePlatforms": [], "excludePlatforms"...
ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/Unity.ML-Agents.Runtime.Utils.Tests.asmdef/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/Unity.ML-Agents.Runtime.Utils.Tests.asmdef", "repo_id": "ml-agents", "token_count": 361 }
1,930
behaviors: SoccerTwos: trainer_type: poca hyperparameters: batch_size: 2048 buffer_size: 20480 learning_rate: 0.0003 beta: 0.005 epsilon: 0.2 lambd: 0.95 num_epoch: 3 learning_rate_schedule: constant network_settings: normalize: false hidden_unit...
ml-agents/config/poca/SoccerTwos.yaml/0
{ "file_path": "ml-agents/config/poca/SoccerTwos.yaml", "repo_id": "ml-agents", "token_count": 353 }
1,931
behaviors: VisualFoodCollector: trainer_type: ppo hyperparameters: batch_size: 1024 buffer_size: 10240 learning_rate: 0.0003 beta: 0.005 epsilon: 0.2 lambd: 0.95 num_epoch: 3 learning_rate_schedule: linear network_settings: normalize: false hidde...
ml-agents/config/ppo/VisualFoodCollector.yaml/0
{ "file_path": "ml-agents/config/ppo/VisualFoodCollector.yaml", "repo_id": "ml-agents", "token_count": 270 }
1,932
behaviors: Worm: trainer_type: sac hyperparameters: learning_rate: 0.0003 learning_rate_schedule: constant batch_size: 256 buffer_size: 500000 buffer_init_steps: 0 tau: 0.005 steps_per_update: 20.0 save_replay_buffer: false init_entcoef: 1.0 reward_s...
ml-agents/config/sac/Worm.yaml/0
{ "file_path": "ml-agents/config/sac/Worm.yaml", "repo_id": "ml-agents", "token_count": 307 }
1,933
# Match-3 with ML-Agents <img src="images/match3.png" align="center" width="3000"/> ## Getting started The C# code for Match-3 exists inside of the Unity package (`com.unity.ml-agents`). The good first step would be to take a look at how we have implemented the C# code in the example Match-3 scene (located under /Pro...
ml-agents/docs/Integrations-Match3.md/0
{ "file_path": "ml-agents/docs/Integrations-Match3.md", "repo_id": "ml-agents", "token_count": 1517 }
1,934
# Unity Ml-Agents Custom trainers Plugin As an attempt to bring a wider variety of reinforcement learning algorithms to our users, we have added custom trainers capabilities. we introduce an extensible plugin system to define new trainers based on the High level trainer API in `Ml-agents` Package. This will allow rero...
ml-agents/docs/Python-Custom-Trainer-Plugin.md/0
{ "file_path": "ml-agents/docs/Python-Custom-Trainer-Plugin.md", "repo_id": "ml-agents", "token_count": 926 }
1,935
# Custom Trainer Plugin ## How to write a custom trainer plugin ### Step 1: Write your custom trainer class Before you start writing your code, make sure to use your favorite environment management tool(e.g. `venv` or `conda`) to create and activate a Python virtual environment. The following command uses `conda`, bu...
ml-agents/docs/Tutorial-Custom-Trainer-Plugin.md/0
{ "file_path": "ml-agents/docs/Tutorial-Custom-Trainer-Plugin.md", "repo_id": "ml-agents", "token_count": 3816 }
1,936
/* ==================================================== * Company: Unity Technologies * Author: Rickard Andersson, rickard@unity3d.com ======================================================= */ /*************************************** ==== Doxygen Style overides ****************************************/ #titleare...
ml-agents/docs/doxygen/unity.css/0
{ "file_path": "ml-agents/docs/doxygen/unity.css", "repo_id": "ml-agents", "token_count": 9665 }
1,937
# Установка ML-Agents Toolkit состоит из нескольких компонентов: - Специальный пакет Unity ([`com.unity.ml-agents`](https://github.com/Unity-Technologies/ml-agents/tree/main/com.unity.ml-agents)) с Unity C# SDK, который будет интегрирован в Unity сцену. - Три Python пакета: - ([`mlagents`](https://github.com/Unity...
ml-agents/localized_docs/RU/docs/Установка.md/0
{ "file_path": "ml-agents/localized_docs/RU/docs/Установка.md", "repo_id": "ml-agents", "token_count": 6236 }
1,938
# 创建新的学习环境 本教程将介绍创建 Unity 环境的过程。Unity 环境是用 Unity 引擎构建的应用程序,可用于训练 Reinforcement Learning(强化学习)agent。 ![简单的 ML-Agents 环境](images/mlagents-NewTutSplash.png) 在此示例中,我们将训练一个球滚动到一个随机放置的立方体。这个球还要学习避免从平台上掉落。 ## 概述 在 Unity 项目中使用 ML-Agents 涉及以下基本步骤: 1. 创建一个容纳 agent 的环境。从包含少量对象的简单物理模拟环境到整个游戏或生态系统,环境的形式可以多种多样。 2. 实现一个 Academy...
ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Create-New.md/0
{ "file_path": "ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Create-New.md", "repo_id": "ml-agents", "token_count": 12709 }
1,939
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.pyi", "repo_id": "ml-agents", "token_count": 1110 }
1,940
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, ) from google.protobuf.internal.containers import ( RepeatedScalarFie...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/observation_pb2.pyi", "repo_id": "ml-agents", "token_count": 2271 }
1,941
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.pyi/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.pyi", "repo_id": "ml-agents", "token_count": 1826 }
1,942
import logging # noqa I251 import sys CRITICAL = logging.CRITICAL FATAL = logging.FATAL ERROR = logging.ERROR WARNING = logging.WARNING INFO = logging.INFO DEBUG = logging.DEBUG NOTSET = logging.NOTSET _loggers = set() _log_level = NOTSET DATE_FORMAT = "%Y-%m-%d %H:%M:%S" DEBUG_LOG_FORMAT = "%(asctime)s %(levelname)...
ml-agents/ml-agents-envs/mlagents_envs/logging_util.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/logging_util.py", "repo_id": "ml-agents", "token_count": 727 }
1,943
from mlagents_envs.side_channel import SideChannel, IncomingMessage, OutgoingMessage from typing import List import uuid class RawBytesChannel(SideChannel): """ This is an example of what the SideChannel for raw bytes exchange would look like. Is meant to be used for general research purpose. """ ...
ml-agents/ml-agents-envs/mlagents_envs/side_channel/raw_bytes_channel.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/side_channel/raw_bytes_channel.py", "repo_id": "ml-agents", "token_count": 495 }
1,944
import pytest from mlagents_envs.registry import default_registry from mlagents_envs.side_channel.engine_configuration_channel import ( EngineConfigurationChannel, ) from mlagents_envs.base_env import ActionTuple import numpy as np BALL_ID = "3DBall" @pytest.mark.parametrize("n_ports", [1]) def test_set_action_...
ml-agents/ml-agents-envs/tests/test_set_action.py/0
{ "file_path": "ml-agents/ml-agents-envs/tests/test_set_action.py", "repo_id": "ml-agents", "token_count": 921 }
1,945
behaviors: Basic: trainer_type: dqn hyperparameters: learning_rate: 0.0003 learning_rate_schedule: constant batch_size: 64 buffer_size: 50000 tau: 0.005 steps_per_update: 10.0 save_replay_buffer: false exploration_schedule: linear exploration_initial_eps: ...
ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_basic.yaml/0
{ "file_path": "ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_basic.yaml", "repo_id": "ml-agents", "token_count": 302 }
1,946
from typing import NamedTuple from urllib.parse import urlparse, parse_qs from mlagents_envs.base_env import AgentId, GroupId GlobalGroupId = str GlobalAgentId = str class BehaviorIdentifiers(NamedTuple): """ BehaviorIdentifiers is a named tuple of the identifiers that uniquely distinguish an agent encou...
ml-agents/ml-agents/mlagents/trainers/behavior_id_utils.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/behavior_id_utils.py", "repo_id": "ml-agents", "token_count": 773 }
1,947
import abc from typing import Dict from mlagents.trainers.buffer import AgentBuffer class Optimizer(abc.ABC): """ Creates loss functions and auxillary networks (e.g. Q or Value) needed for training. Provides methods to update the Policy. """ def __init__(self): self.reward_signals = {} ...
ml-agents/ml-agents/mlagents/trainers/optimizer/optimizer.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/optimizer/optimizer.py", "repo_id": "ml-agents", "token_count": 277 }
1,948
import os.path import warnings import attr import cattr from typing import ( Dict, Optional, List, Any, DefaultDict, Mapping, Tuple, Union, ClassVar, ) from enum import Enum import collections import argparse import abc import numpy as np import math import copy from mlagents.train...
ml-agents/ml-agents/mlagents/trainers/settings.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/settings.py", "repo_id": "ml-agents", "token_count": 15582 }
1,949
import pytest from mlagents.torch_utils import torch from mlagents.trainers.torch_entities.agent_action import AgentAction from mlagents.trainers.torch_entities.networks import ( NetworkBody, MultiAgentNetworkBody, ValueNetwork, SimpleActor, SharedActorCritic, ) from mlagents.trainers.settings impo...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_networks.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_networks.py", "repo_id": "ml-agents", "token_count": 6333 }
1,950
from typing import List, Tuple, NamedTuple, Optional from mlagents.torch_utils import torch, nn from mlagents.trainers.torch_entities.distributions import ( DistInstance, DiscreteDistInstance, GaussianDistribution, MultiCategoricalDistribution, ) from mlagents.trainers.torch_entities.agent_action import...
ml-agents/ml-agents/mlagents/trainers/torch_entities/action_model.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/action_model.py", "repo_id": "ml-agents", "token_count": 4312 }
1,951
from typing import Tuple, Optional, Union from mlagents.torch_utils import torch, nn from mlagents.trainers.torch_entities.layers import linear_layer, Initialization, Swish class Normalizer(nn.Module): def __init__(self, vec_obs_size: int): super().__init__() self.register_buffer("normalization_s...
ml-agents/ml-agents/mlagents/trainers/torch_entities/encoders.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/encoders.py", "repo_id": "ml-agents", "token_count": 4934 }
1,952
# NOTE: This upgrade script is a temporary measure for the transition between the old-format # configuration file and the new format. It will be marked for deprecation once the # Python CLI and configuration files are finalized, and removed the following release. import attr import cattr import yaml from typing import...
ml-agents/ml-agents/mlagents/trainers/upgrade_config.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/upgrade_config.py", "repo_id": "ml-agents", "token_count": 4663 }
1,953
import os import shutil import subprocess import yaml from sys import platform from typing import List, Optional, Mapping def get_unity_executable_path(): if platform == "darwin": downloader_install_path = "./.Editor/Unity.app/Contents/MacOS/Unity" else: # if platform == "linux": downloader_i...
ml-agents/ml-agents/tests/yamato/yamato_utils.py/0
{ "file_path": "ml-agents/ml-agents/tests/yamato/yamato_utils.py", "repo_id": "ml-agents", "token_count": 3212 }
1,954
syntax = "proto3"; option csharp_namespace = "Unity.MLAgents.CommunicatorObjects"; package communicator_objects; message TrainingEnvironmentInitialized { string mlagents_version = 1; string mlagents_envs_version = 2; string python_version = 3; string torch_version = 4; string torch_device_type = 5...
ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/training_analytics.proto/0
{ "file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/training_analytics.proto", "repo_id": "ml-agents", "token_count": 352 }
1,955
""" Generate the "Releases" table on the main readme. Update the versions lists, run this script, and copy the output into the markdown file. """ from distutils.version import LooseVersion, StrictVersion from datetime import datetime from typing import NamedTuple from collections import Counter MAX_DAYS = 150 # do no...
ml-agents/utils/make_readme_table.py/0
{ "file_path": "ml-agents/utils/make_readme_table.py", "repo_id": "ml-agents", "token_count": 2905 }
1,956
fileFormatVersion: 2 guid: b8c5688e381fddc4eb22e6f96f69541c folderAsset: yes timeCreated: 1489995541 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/Plugins/WSA.meta/0
{ "file_path": "xLua/Assets/Plugins/WSA.meta", "repo_id": "xLua", "token_count": 77 }
1,957
fileFormatVersion: 2 guid: 5a4ab2e5e00054b03a7bf96d03e5b4e1 folderAsset: yes DefaultImporter: userData:
xLua/Assets/Plugins/iOS.meta/0
{ "file_path": "xLua/Assets/Plugins/iOS.meta", "repo_id": "xLua", "token_count": 50 }
1,958
fileFormatVersion: 2 guid: 7e4b7549f5e4a4e71806e3ec8e428b15 folderAsset: yes timeCreated: 1457422691 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/Plugins/xlua.bundle/Contents.meta/0
{ "file_path": "xLua/Assets/Plugins/xlua.bundle/Contents.meta", "repo_id": "xLua", "token_count": 79 }
1,959
fileFormatVersion: 2 guid: 577a670e2d7ad5e4691e30c9249edf3e MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData:
xLua/Assets/XLua/Examples/05_NoGc/NoGc.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/05_NoGc/NoGc.cs.meta", "repo_id": "xLua", "token_count": 73 }
1,960
fileFormatVersion: 2 guid: 2def16135c9e7644bae2869109a0b48e folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/08_Hotfix/Editor.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/08_Hotfix/Editor.meta", "repo_id": "xLua", "token_count": 69 }
1,961
fileFormatVersion: 2 guid: 41c79b0f7edf32d48a7a81664f1e96ec folderAsset: yes timeCreated: 1489371190 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/otherfiles.meta", "repo_id": "xLua", "token_count": 80 }
1,962
fileFormatVersion: 2 guid: 4ee183ed57618894dab4d3b9a68790cf timeCreated: 1489370693 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/10_SignatureLoader/signatured3.lua.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/signatured3.lua.meta", "repo_id": "xLua", "token_count": 70 }
1,963
fileFormatVersion: 2 guid: 165d35780a78009469ee772b2ab15e81 timeCreated: 1531791711 licenseType: Free DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/13_BuildFromCLI/build.bat.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/13_BuildFromCLI/build.bat.meta", "repo_id": "xLua", "token_count": 75 }
1,964
/* * 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...
xLua/Assets/XLua/Src/CodeEmit.cs/0
{ "file_path": "xLua/Assets/XLua/Src/CodeEmit.cs", "repo_id": "xLua", "token_count": 47383 }
1,965
fileFormatVersion: 2 guid: 7165d08e91378494dadeb10e5338accb timeCreated: 1481620508 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta", "repo_id": "xLua", "token_count": 70 }
1,966
fileFormatVersion: 2 guid: 1bd0a3260371756449c4f642cc7ead00 timeCreated: 1537950363 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/GenericDelegateBridge.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/GenericDelegateBridge.cs.meta", "repo_id": "xLua", "token_count": 99 }
1,967
/* * 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...
xLua/Assets/XLua/Tutorial/LuaCallCSharp/LuaCallCs.cs/0
{ "file_path": "xLua/Assets/XLua/Tutorial/LuaCallCSharp/LuaCallCs.cs", "repo_id": "xLua", "token_count": 4010 }
1,968
![](Assets/XLua/Doc/xLua.png) [![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Tencent/xLua/blob/master/LICENSE.TXT) [![release](https://img.shields.io/badge/release-v2.1.15-blue.svg)](https://github.com/Tencent/xLua/releases) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-bl...
xLua/README_EN.md/0
{ "file_path": "xLua/README_EN.md", "repo_id": "xLua", "token_count": 1694 }
1,969
fileFormatVersion: 2 guid: 5c751f31fa1d4664a8a162241f8a7812 folderAsset: yes timeCreated: 1483528414 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/StreamingAssets/ltest.meta/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/ltest.meta", "repo_id": "xLua", "token_count": 77 }
1,970
tableValue1 = { key1 = 100000, key2 = 10, key3 = true, 'red', 'yellow', 'green', sub = function(self, a, b) print('tableValue1.sub called') return a - b end, tableValueInclude = { 1,2,3,4,5,6,7,8,9,0 }, tableVarInclude = {ikey1 = 10, ikey2 = 12} } tableValue2 = { kv1 = true, kv2 = 'monday', kv3 = 1 } t...
xLua/Test/UnitTest/StreamingAssets/testlua/B.lua/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/testlua/B.lua", "repo_id": "xLua", "token_count": 269 }
1,971
fileFormatVersion: 2 guid: c1cb3557274d1344983c4ef8c8cda643 folderAsset: yes timeCreated: 1483527547 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/LuaCallCS.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/LuaCallCS.meta", "repo_id": "xLua", "token_count": 76 }
1,972
# makefile for Lua etc TOP= .. LIB= $(TOP)/src INC= $(TOP)/src BIN= $(TOP)/src SRC= $(TOP)/src TST= $(TOP)/test CC= gcc CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS) MYCFLAGS= MYLDFLAGS= -Wl,-E MYLIBS= -lm #MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses RM= rm -f default: @echo 'Please choose a target: min nopars...
xLua/build/lua-5.1.5/etc/Makefile/0
{ "file_path": "xLua/build/lua-5.1.5/etc/Makefile", "repo_id": "xLua", "token_count": 459 }
1,973
/* ** $Id: lcode.c,v 2.25.1.5 2011/01/31 14:53:16 roberto Exp $ ** Code generator for Lua ** See Copyright Notice in lua.h */ #include <stdlib.h> #define lcode_c #define LUA_CORE #include "lua.h" #include "lcode.h" #include "ldebug.h" #include "ldo.h" #include "lgc.h" #include "llex.h" #include "lmem.h" #include "...
xLua/build/lua-5.1.5/src/lcode.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lcode.c", "repo_id": "xLua", "token_count": 10439 }
1,974
/* ** $Id: llimits.h,v 1.69.1.1 2007/12/27 13:02:25 roberto Exp $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ #ifndef llimits_h #define llimits_h #include <limits.h> #include <stddef.h> #include "lua.h" typedef LUAI_UINT32 lu_int32; typedef LUA...
xLua/build/lua-5.1.5/src/llimits.h/0
{ "file_path": "xLua/build/lua-5.1.5/src/llimits.h", "repo_id": "xLua", "token_count": 931 }
1,975
/* ** $Id: lstrlib.c,v 1.132.1.5 2010/05/14 15:34:19 roberto Exp $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ #include <ctype.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define lstrlib_c #define LUA_LIB #include "lua.h" ...
xLua/build/lua-5.1.5/src/lstrlib.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lstrlib.c", "repo_id": "xLua", "token_count": 11252 }
1,976
/* ** $Id: lctype.h,v 1.12 2011/07/15 12:50:29 roberto Exp $ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ #ifndef lctype_h #define lctype_h #include "lua.h" /* ** WARNING: the functions defined here do not necessarily correspond ** to the similar functions in the standard C ctype.h. They are ** ...
xLua/build/lua-5.3.4/src/lctype.h/0
{ "file_path": "xLua/build/lua-5.3.4/src/lctype.h", "repo_id": "xLua", "token_count": 812 }
1,977
/* ** $Id: lmathlib.c,v 1.119 2016/12/22 13:08:50 roberto Exp $ ** Standard mathematical library ** See Copyright Notice in lua.h */ #define lmathlib_c #define LUA_LIB #include "lprefix.h" #include <stdlib.h> #include <math.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" #undef PI #define PI (l_mat...
xLua/build/lua-5.3.4/src/lmathlib.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lmathlib.c", "repo_id": "xLua", "token_count": 4316 }
1,978
/* ** $Id: lstrlib.c,v 1.254 2016/12/22 13:08:50 roberto Exp $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ #define lstrlib_c #define LUA_LIB #include "lprefix.h" #include <ctype.h> #include <float.h> #include <limits.h> #include <locale.h> #include <stddef.h> #...
xLua/build/lua-5.3.4/src/lstrlib.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lstrlib.c", "repo_id": "xLua", "token_count": 21197 }
1,979
/* ** $Id: lvm.h,v 2.41 2016/12/22 13:08:50 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" #if !defined(LUA_NOCVTN2S) #define cvt2str(o) ttisnumber(o) #else #define cvt2str(o) 0 /* no conversion from number...
xLua/build/lua-5.3.4/src/lvm.h/0
{ "file_path": "xLua/build/lua-5.3.4/src/lvm.h", "repo_id": "xLua", "token_count": 1652 }
1,980
/* ** $Id: lapi.c,v 2.259.1.2 2017/12/06 18:35:12 roberto Exp $ ** Lua API ** See Copyright Notice in lua.h */ #define lapi_c #define LUA_CORE #include "lprefix.h" #include <stdarg.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #i...
xLua/build/lua-5.3.5/src/lapi.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/lapi.c", "repo_id": "xLua", "token_count": 14649 }
1,981
/* ** $Id: ldump.c,v 2.37.1.1 2017/04/19 17:20:42 roberto Exp $ ** save precompiled Lua chunks ** See Copyright Notice in lua.h */ #define ldump_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include "lua.h" #include "lobject.h" #include "lstate.h" #include "lundump.h" #if LUAC_COMPATIBLE_FORMAT #i...
xLua/build/lua-5.3.5/src/ldump.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/ldump.c", "repo_id": "xLua", "token_count": 2170 }
1,982
/* ** $Id: lopcodes.c,v 1.55.1.1 2017/04/19 17:20:42 roberto Exp $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ #define lopcodes_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include "lopcodes.h" /* ORDER OP */ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { ...
xLua/build/lua-5.3.5/src/lopcodes.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/lopcodes.c", "repo_id": "xLua", "token_count": 1908 }
1,983
/* ** $Id: lcode.h $ ** Code generator for Lua ** See Copyright Notice in lua.h */ #ifndef lcode_h #define lcode_h #include "llex.h" #include "lobject.h" #include "lopcodes.h" #include "lparser.h" /* ** Marks the end of a patch list. It is an invalid value both as an absolute ** address, and as a list link (would l...
xLua/build/lua-5.4.1/src/lcode.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lcode.h", "repo_id": "xLua", "token_count": 1726 }
1,984
/* ** $Id: ljumptab.h $ ** Jump Table for the Lua interpreter ** See Copyright Notice in lua.h */ #undef vmdispatch #undef vmcase #undef vmbreak #define vmdispatch(x) goto *disptab[x]; #define vmcase(l) L_##l: #define vmbreak vmfetch(); vmdispatch(GET_OPCODE(i)); static const void *const disptab[NUM_OPC...
xLua/build/lua-5.4.1/src/ljumptab.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/ljumptab.h", "repo_id": "xLua", "token_count": 1011 }
1,985
/* Copyright (C) 2004-2016 Mike Pall. * * You are welcome to use the general ideas of this design for your own sites. * But please do not steal the stylesheet, the layout or the color scheme. */ /* colorscheme: * * site | head #4162bf/white | #6078bf/#e6ecff * ------+------ ----------------+-------------...
xLua/build/luajit-2.1.0b2/doc/bluequad.css/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/bluequad.css", "repo_id": "xLua", "token_count": 2387 }
1,986
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Status</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/status.html/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/status.html", "repo_id": "xLua", "token_count": 1362 }
1,987
---------------------------------------------------------------------------- -- LuaJIT MIPS disassembler module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------...
xLua/build/luajit-2.1.0b2/src/jit/dis_mips.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/jit/dis_mips.lua", "repo_id": "xLua", "token_count": 6516 }
1,988
/* ** I/O library. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h ** ** Major portions taken verbatim or adapted from the Lua interpreter. ** Copyright (C) 1994-2011 Lua.org, PUC-Rio. See Copyright Notice in lua.h */ #include <errno.h> #include <stdio.h> #define lib_io_c #define LUA_LIB #incl...
xLua/build/luajit-2.1.0b2/src/lib_io.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lib_io.c", "repo_id": "xLua", "token_count": 6580 }
1,989
/* ** PPC 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_ppc.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_asm_ppc.h", "repo_id": "xLua", "token_count": 32743 }
1,990
/* ** C type conversions. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_CCONV_H #define _LJ_CCONV_H #include "lj_obj.h" #include "lj_ctype.h" #if LJ_HASFFI /* Compressed C type index. ORDER CCX. */ enum { CCX_B, /* Bool. */ CCX_I, /* Integer. */ CCX_F, /* Floating-point...
xLua/build/luajit-2.1.0b2/src/lj_cconv.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_cconv.h", "repo_id": "xLua", "token_count": 1011 }
1,991
/* ** Instruction dispatch handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_dispatch_c #define LUA_CORE #include "lj_obj.h" #include "lj_err.h" #include "lj_buf.h" #include "lj_func.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_meta.h" #include "lj_debug.h" #inc...
xLua/build/luajit-2.1.0b2/src/lj_dispatch.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_dispatch.c", "repo_id": "xLua", "token_count": 7751 }
1,992
/* ** Garbage collector. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_GC_H #define _LJ_GC_H #include "lj_obj.h" /* Garbage collector states. Order matters. */ enum { GCSpause, GCSpropagate, GCSatomic, GCSsweepstring, GCSsweep, GCSfinalize }; /* Bitmasks for marked field of...
xLua/build/luajit-2.1.0b2/src/lj_gc.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_gc.h", "repo_id": "xLua", "token_count": 2431 }
1,993
/* ** Metamethod handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_META_H #define _LJ_META_H #include "lj_obj.h" /* Metamethod handling */ LJ_FUNC void lj_meta_init(lua_State *L); LJ_FUNC cTValue *lj_meta_cache(GCtab *mt, MMS mm, GCstr *name); LJ_FUNC cTValue *lj_meta_lo...
xLua/build/luajit-2.1.0b2/src/lj_meta.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_meta.h", "repo_id": "xLua", "token_count": 747 }
1,994
/* ** Snapshot handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_snap_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_gc.h" #include "lj_tab.h" #include "lj_state.h" #include "lj_frame.h" #include "lj_bc.h" #include "lj_ir.h" #include "lj_jit.h" #includ...
xLua/build/luajit-2.1.0b2/src/lj_snap.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_snap.c", "repo_id": "xLua", "token_count": 13486 }
1,995
/* ** Definitions for MIPS CPUs. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_TARGET_MIPS_H #define _LJ_TARGET_MIPS_H /* -- Registers IDs ------------------------------------------------------- */ #define GPRDEF(_) \ _(R0) _(R1) _(R2) _(R3) _(R4) _(R5) _(R6) _(R7) \ _(R8)...
xLua/build/luajit-2.1.0b2/src/lj_target_mips.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_target_mips.h", "repo_id": "xLua", "token_count": 4112 }
1,996
<!DOCTYPE html> <html> <head> <title>Extensions</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" media="...
xLua/build/luajit-2.1.0b3/doc/extensions.html/0
{ "file_path": "xLua/build/luajit-2.1.0b3/doc/extensions.html", "repo_id": "xLua", "token_count": 6379 }
1,997
/* ** LuaJIT VM builder. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h ** ** This is a tool to build the hand-tuned assembler code required for ** LuaJIT's bytecode interpreter. It supports a variety of output formats ** to feed different toolchains (see usage() below). ** ** This tool is not p...
xLua/build/luajit-2.1.0b3/src/host/buildvm.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/host/buildvm.c", "repo_id": "xLua", "token_count": 5659 }
1,998
---------------------------------------------------------------------------- -- LuaJIT MIPS disassembler module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------...
xLua/build/luajit-2.1.0b3/src/jit/dis_mips.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/dis_mips.lua", "repo_id": "xLua", "token_count": 11340 }
1,999
/* ** C data arithmetic. ** 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_tab.h" #include "lj_meta.h" #include "lj_ir.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" #include "lj_carith...
xLua/build/luajit-2.1.0b3/src/lj_carith.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_carith.c", "repo_id": "xLua", "token_count": 6487 }
2,000
/* ** Trace recorder for C data operations. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_ffrecord_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT && LJ_HASFFI #include "lj_err.h" #include "lj_tab.h" #include "lj_frame.h" #include "lj_ctype.h" #include "lj_cdata.h" #inclu...
xLua/build/luajit-2.1.0b3/src/lj_crecord.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_crecord.c", "repo_id": "xLua", "token_count": 32055 }
2,001
/* ** VM error messages. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ /* This file may be included multiple times with different ERRDEF macros. */ /* Basic error handling. */ ERRDEF(ERRMEM, "not enough memory") ERRDEF(ERRERR, "error in error handling") ERRDEF(ERRCPP, "C++ exception") /* ...
xLua/build/luajit-2.1.0b3/src/lj_errmsg.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_errmsg.h", "repo_id": "xLua", "token_count": 3494 }
2,002
/* ** Lexical analyzer. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h ** ** Major 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_lex_c #define LUA_CORE #include "lj_obj.h" #include "lj_gc.h"...
xLua/build/luajit-2.1.0b3/src/lj_lex.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_lex.c", "repo_id": "xLua", "token_count": 6583 }
2,003
/* ** SINK: Allocation Sinking and Store Sinking. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_opt_sink_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_ir.h" #include "lj_jit.h" #include "lj_iropt.h" #include "lj_target.h" /* Some local macros to save typin...
xLua/build/luajit-2.1.0b3/src/lj_opt_sink.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_opt_sink.c", "repo_id": "xLua", "token_count": 3437 }
2,004
/* ** String handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_str_c #define LUA_CORE #include "lj_obj.h" #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_char.h" #include "lj_prng.h" /* -- String helpers --------------------------------------------...
xLua/build/luajit-2.1.0b3/src/lj_str.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_str.c", "repo_id": "xLua", "token_count": 5005 }
2,005
/* ** Trace management. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_trace_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_gc.h" #include "lj_err.h" #include "lj_debug.h" #include "lj_str.h" #include "lj_frame.h" #include "lj_state.h" #include "lj_bc.h" #inc...
xLua/build/luajit-2.1.0b3/src/lj_trace.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_trace.c", "repo_id": "xLua", "token_count": 13462 }
2,006
@rem Script to build LuaJIT with MSVC. @rem Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h @rem @rem Open a "Visual Studio Command Prompt" (either x86 or x64). @rem Then cd to this directory and run this script. Use the following @rem options (in order), if needed. The default is a dynamic release ...
xLua/build/luajit-2.1.0b3/src/msvcbuild.bat/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/msvcbuild.bat", "repo_id": "xLua", "token_count": 1776 }
2,007
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <map> #include "test_util.hpp" #include "lj_str_hash_x64.h" using namespace std; static bool smoke_test() { fprintf(stdout, "running smoke tests...\n"); char buf[1024]; char c = getpid() % 'a'; for (int i = 0; i < (int)sizeof(buf); i++) { ...
xLua/build/luajit-2.1.0b3/src/x64/test/test.cpp/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/test.cpp", "repo_id": "xLua", "token_count": 826 }
2,008
#ifndef EXCEPT_H #define EXCEPT_H /*=========================================================================*\ * Exception control * LuaSocket toolkit (but completely independent from other modules) * * This provides support for simple exceptions in Lua. During the * development of the HTTP/FTP/SMTP support, it became...
xLua/build/luasocket/except.h/0
{ "file_path": "xLua/build/luasocket/except.h", "repo_id": "xLua", "token_count": 326 }
2,009
#ifndef SOCKET_H #define SOCKET_H /*=========================================================================*\ * Socket compatibilization module * LuaSocket toolkit * * BSD Sockets and WinSock are similar, but there are a few irritating * differences. Also, not all *nix platforms behave the same. This module * (and th...
xLua/build/luasocket/socket.h/0
{ "file_path": "xLua/build/luasocket/socket.h", "repo_id": "xLua", "token_count": 975 }
2,010
if [ -z "$ANDROID_NDK" ]; then export ANDROID_NDK=~/android-ndk-r10e fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SRCDIR=$DIR/luajit-2.1.0b3 # ANDROID_NDK=~/android-ndk-r10e OS=`uname -s` PREBUILT_PLATFORM=linux-x86_64 if [[ "$OS" == "Darwin" ]]; then PREBUILT_PLATFORM=darwin-x86_64 fi echo "Bu...
xLua/build/make_android_luajit.sh/0
{ "file_path": "xLua/build/make_android_luajit.sh", "repo_id": "xLua", "token_count": 941 }
2,011
mkdir -p build_osx_54_silicon && cd build_osx_54_silicon cmake -DBUILD_SILICON=ON -DLUA_VERSION=5.4.1 -GXcode ../ cd .. cmake --build build_osx_54_silicon --config Release mkdir -p plugin_lua54/Plugins/arm64 cp build_osx_54_silicon/Release/libxlua.dylib plugin_lua54/Plugins/arm64/
xLua/build/make_osx_silicon_lua54.sh/0
{ "file_path": "xLua/build/make_osx_silicon_lua54.sh", "repo_id": "xLua", "token_count": 121 }
2,012
@echo off if exist "%VS140COMNTOOLS%" ( set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" goto build ) else (goto missing) :build @set ENV64="%VCVARS%amd64\vcvars64.bat" call "%ENV64%" echo Swtich to x64 build env cd %~dp0\luajit-2.1.0b3\src call msvcbuild_mt.bat static cd ..\.. goto :buildxlua :missing echo Can't ...
xLua/build/vs2015/make_win64_luajit.bat/0
{ "file_path": "xLua/build/vs2015/make_win64_luajit.bat", "repo_id": "xLua", "token_count": 310 }
2,013
.DS_Store Thumbs.db db.json *.log node_modules/ public/ .deploy*/
xLua/docs/source/.npmignore/0
{ "file_path": "xLua/docs/source/.npmignore", "repo_id": "xLua", "token_count": 29 }
2,014
--- title: 介绍 type: guide order: 0 --- ## XLua [![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Tencent/xLua/blob/master/LICENSE.TXT) [![release](https://img.shields.io/badge/release-v2.1.8-blue.svg)](https://github.com/Tencent/xLua/releases) [![PRs Welcome](https://img.shields.io/bad...
xLua/docs/source/src/v1/guide/index.md/0
{ "file_path": "xLua/docs/source/src/v1/guide/index.md", "repo_id": "xLua", "token_count": 3354 }
2,015
@import "_common" #footer color rgb(125,125,125) background-color #171f26 text-align center font-size 14px padding 85px p padding-top 5px a color rgb(125,125,125) #mobile-header display none #header background-color: $main-color; height: $header-height ...
xLua/docs/source/themes/catlib/source/css/index.styl/0
{ "file_path": "xLua/docs/source/themes/catlib/source/css/index.styl", "repo_id": "xLua", "token_count": 2023 }
2,016
/* (C) 2019 David Lettier lettier.com */ #version 150 uniform vec2 pi; uniform vec2 gamma; uniform mat4 viewWorldMat; uniform sampler2D maskTexture; uniform sampler2D positionFromTexture; uniform sampler2D positionToTexture; uniform vec2 foamDepth; uniform vec2 sunPosition; out vec4 fragColor; void main() { ...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/foam.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/foam.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 516 }
0
/* (C) 2019 David Lettier lettier.com */ #version 150 uniform vec2 gamma; uniform sampler2D colorTexture; uniform sampler2D positionTexture; uniform vec2 enabled; out vec4 fragColor; void main() { float levels = 6.0; vec2 texSize = textureSize(colorTexture, 0).xy; vec2 texCoord = gl_FragCoord.xy / tex...
3d-game-shaders-for-beginners/demonstration/shaders/fragment/posterize.frag/0
{ "file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/posterize.frag", "repo_id": "3d-game-shaders-for-beginners", "token_count": 390 }
1
#!/usr/bin/env bash SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd -P)" MAIN_TITLE="3D Game Shaders For Beginners" REPO_URL="https://github.com/lettier/3d-game-shaders-for-beginners" AUTHOR="David Lettier" CSS="style.css" for f in $SCRIPT_PATH/../sections/* do echo "$f" file=$(basename -- "$f") file_name="${file%.*}"...
3d-game-shaders-for-beginners/docs/_build-docs.sh/0
{ "file_path": "3d-game-shaders-for-beginners/docs/_build-docs.sh", "repo_id": "3d-game-shaders-for-beginners", "token_count": 747 }
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/fresnel-factor.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/fresnel-factor.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 5394 }
3
<!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/screen-space-refraction.html/0
{ "file_path": "3d-game-shaders-for-beginners/docs/screen-space-refraction.html", "repo_id": "3d-game-shaders-for-beginners", "token_count": 9417 }
4
[:arrow_backward:](foam.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](outlining.md) # 3D Game Shaders For Beginners ## Flow Mapping <p align="center"> <img src="https://i.imgur.com/3WDO9xW.gif" alt="Flow Mapping" title="Flow Mapping"> </p> Flow mappin...
3d-game-shaders-for-beginners/sections/flow-mapping.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/flow-mapping.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1346 }
5
[:arrow_backward:](building-the-demo.md) [:arrow_double_up:](../README.md) [:arrow_up_small:](#) [:arrow_down_small:](#copyright) [:arrow_forward:](reference-frames.md) # 3D Game Shaders For Beginners ## Running The Demo <p align="center"> <img src="https://i.imgur.com/y5XcReP.gif" alt="Running The Demo" title="Runn...
3d-game-shaders-for-beginners/sections/running-the-demo.md/0
{ "file_path": "3d-game-shaders-for-beginners/sections/running-the-demo.md", "repo_id": "3d-game-shaders-for-beginners", "token_count": 1435 }
6
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef msr_airlib_CommonStructs_hpp #define msr_airlib_CommonStructs_hpp #include "common/Common.hpp" #include <ostream> namespace msr { namespace airlib { //velocity struct Twist { Vector3r linear, ...
AirSim/AirLib/include/common/CommonStructs.hpp/0
{ "file_path": "AirSim/AirLib/include/common/CommonStructs.hpp", "repo_id": "AirSim", "token_count": 5688 }
7
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef airsim_core_UpdatableContainer_hpp #define airsim_core_UpdatableContainer_hpp #include "UpdatableObject.hpp" #include "common/Common.hpp" namespace msr { namespace airlib { template <typename TUpdatableObject...
AirSim/AirLib/include/common/UpdatableContainer.hpp/0
{ "file_path": "AirSim/AirLib/include/common/UpdatableContainer.hpp", "repo_id": "AirSim", "token_count": 1034 }
8
#ifndef common_utils_Signal_hpp #define common_utils_Signal_hpp #include <functional> #include <map> // A signal object may call multiple slots with the // same signature. You can connect functions to the signal // which will be called when the emit() method on the // signal object is invoked. Any argument passed to ...
AirSim/AirLib/include/common/common_utils/Signal.hpp/0
{ "file_path": "AirSim/AirLib/include/common/common_utils/Signal.hpp", "repo_id": "AirSim", "token_count": 895 }
9