text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
fileFormatVersion: 2 guid: 432bb08962b3944c6964c0db6af43669 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Runtime/Communicator.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Communicator.meta", "repo_id": "ml-agents", "token_count": 68 }
1,941
using System; using UnityEngine.Serialization; namespace Unity.MLAgents.Demonstrations { /// <summary> /// Demonstration meta-data. /// Kept in a struct for easy serialization and deserialization. /// </summary> [Serializable] internal class DemonstrationMetaData { [FormerlySerializ...
ml-agents/com.unity.ml-agents/Runtime/Demonstrations/DemonstrationMetaData.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Demonstrations/DemonstrationMetaData.cs", "repo_id": "ml-agents", "token_count": 194 }
1,942
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/agent_action.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf....
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/AgentAction.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/AgentAction.cs", "repo_id": "ml-agents", "token_count": 3829 }
1,943
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/engine_configuration.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.P...
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/EngineConfiguration.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/EngineConfiguration.cs", "repo_id": "ml-agents", "token_count": 4487 }
1,944
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/unity_rl_initialization_input.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global:...
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityRlInitializationInput.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityRlInitializationInput.cs", "repo_id": "ml-agents", "token_count": 4782 }
1,945
fileFormatVersion: 2 guid: ccb5b186c34bc48d8bd81e9d9bd5cd95 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Runtime/Inference.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Inference.meta", "repo_id": "ml-agents", "token_count": 71 }
1,946
fileFormatVersion: 2 guid: b396b8e1651f4cfcac84bfe7a167f49b timeCreated: 1680799703
ml-agents/com.unity.ml-agents/Runtime/Inference/TensorExtensions.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Inference/TensorExtensions.cs.meta", "repo_id": "ml-agents", "token_count": 38 }
1,947
using System; using System.Collections.Generic; using System.Diagnostics; using UnityEngine; using Debug = UnityEngine.Debug; namespace Unity.MLAgents.Integrations.Match3 { /// <summary> /// Representation of the AbstractBoard dimensions, and number of cell and special types. /// </summary> public stru...
ml-agents/com.unity.ml-agents/Runtime/Integrations/Match3/AbstractBoard.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Integrations/Match3/AbstractBoard.cs", "repo_id": "ml-agents", "token_count": 5321 }
1,948
using System.Threading; namespace Unity.MLAgents { internal static class MultiAgentGroupIdCounter { static int s_Counter; public static int GetGroupId() { return Interlocked.Increment(ref s_Counter); } } }
ml-agents/com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs", "repo_id": "ml-agents", "token_count": 113 }
1,949
fileFormatVersion: 2 guid: 49ebd06532b24078a6edda823aeff5d2 timeCreated: 1602731302
ml-agents/com.unity.ml-agents/Runtime/RecursionChecker.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/RecursionChecker.cs.meta", "repo_id": "ml-agents", "token_count": 41 }
1,950
using System.Linq; namespace Unity.MLAgents.Sensors { /// <summary> /// The compression setting for visual/camera observations. /// </summary> public enum SensorCompressionType { /// <summary> /// No compression. Data is preserved as float arrays. /// </summary> None,...
ml-agents/com.unity.ml-agents/Runtime/Sensors/CompressionSpec.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/CompressionSpec.cs", "repo_id": "ml-agents", "token_count": 1683 }
1,951
using UnityEngine; namespace Unity.MLAgents.Sensors { /// <summary> /// Grid-based sensor with one-hot observations. /// </summary> public class OneHotGridSensor : GridSensorBase { /// <summary> /// Create a OneHotGridSensor with the specified configuration. /// </summary> ...
ml-agents/com.unity.ml-agents/Runtime/Sensors/OneHotGridSensor.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/OneHotGridSensor.cs", "repo_id": "ml-agents", "token_count": 860 }
1,952
fileFormatVersion: 2 guid: 51ed837d5b7cd44349287ac8066120fc MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Runtime/Sensors/Reflection/FloatReflectionSensor.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/Reflection/FloatReflectionSensor.cs.meta", "repo_id": "ml-agents", "token_count": 92 }
1,953
using System.Collections.Generic; using System; using UnityEngine; namespace Unity.MLAgents.SideChannels { /// <summary> /// Lists the different data types supported. /// </summary> internal enum EnvironmentDataTypes { Float = 0, Sampler = 1 } /// <summary> /// The type...
ml-agents/com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs", "repo_id": "ml-agents", "token_count": 2223 }
1,954
using System; using Unity.MLAgents.Analytics; using Unity.MLAgents.CommunicatorObjects; namespace Unity.MLAgents.SideChannels { /// <summary> /// Side Channel implementation for recording which training features are being used. /// </summary> internal class TrainingAnalyticsSideChannel : SideChannel ...
ml-agents/com.unity.ml-agents/Runtime/SideChannels/TrainingAnalyticsSideChannel.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/SideChannels/TrainingAnalyticsSideChannel.cs", "repo_id": "ml-agents", "token_count": 872 }
1,955
{"displayName":"3D Ball","description":"The 3D Ball sample is a simple environment that is a great for jumping into ML-Agents to see how things work."}
ml-agents/com.unity.ml-agents/Samples/3DBall/.sample.json/0
{ "file_path": "ml-agents/com.unity.ml-agents/Samples/3DBall/.sample.json", "repo_id": "ml-agents", "token_count": 38 }
1,956
fileFormatVersion: 2 guid: d48ba72f0ac64d7db0af22c9d82b11d8 timeCreated: 1596494279
ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActuatorManagerTests.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActuatorManagerTests.cs.meta", "repo_id": "ml-agents", "token_count": 42 }
1,957
using System; using System.Text.RegularExpressions; using Google.Protobuf; using NUnit.Framework; using Unity.MLAgents.Actuators; using Unity.MLAgents.Demonstrations; using Unity.MLAgents.Policies; using Unity.MLAgents.Sensors; using Unity.MLAgents.Analytics; using Unity.MLAgents.CommunicatorObjects; using UnityEngine...
ml-agents/com.unity.ml-agents/Tests/Editor/Communicator/GrpcExtensionsTests.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Communicator/GrpcExtensionsTests.cs", "repo_id": "ml-agents", "token_count": 4872 }
1,958
fileFormatVersion: 2 guid: 42981032af6f4241ae20fe24e898f60b timeCreated: 1601336681
ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/MoveTests.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/MoveTests.cs.meta", "repo_id": "ml-agents", "token_count": 40 }
1,959
fileFormatVersion: 2 guid: 38254a2538c8f42fb9f2057d17fd0e70 AssemblyDefinitionImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/Unity.ML-Agents.Editor.Tests.PublicAPI.asmdef.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/Unity.ML-Agents.Editor.Tests.PublicAPI.asmdef.meta", "repo_id": "ml-agents", "token_count": 66 }
1,960
#if MLA_UNITY_PHYSICS_MODULE using System.Collections.Generic; using System.Collections; using System.Reflection; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; using Unity.MLAgents.Sensors; namespace Unity.MLAgents.Tests { public class GridSensorTests { GameObject testGo; ...
ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/GridSensorTests.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/GridSensorTests.cs", "repo_id": "ml-agents", "token_count": 3639 }
1,961
using System; using System.Collections.Generic; using System.Globalization; using NUnit.Framework; using Unity.MLAgents.Sensors; using Unity.MLAgents.Utils.Tests; namespace Unity.MLAgents.Tests { [TestFixture] public class SensorUtilTests { internal class TempCulture : IDisposable { ...
ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/SensorUtilTests.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/SensorUtilTests.cs", "repo_id": "ml-agents", "token_count": 781 }
1,962
fileFormatVersion: 2 guid: daaa01096d9848a38185ee08fa7321c0 timeCreated: 1616137694
ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/Unity.ML-Agents.Runtime.Utils.Tests.asmdef.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/Unity.ML-Agents.Runtime.Utils.Tests.asmdef.meta", "repo_id": "ml-agents", "token_count": 38 }
1,963
behaviors: Goalie: 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_units: 5...
ml-agents/config/poca/StrikersVsGoalie.yaml/0
{ "file_path": "ml-agents/config/poca/StrikersVsGoalie.yaml", "repo_id": "ml-agents", "token_count": 699 }
1,964
behaviors: Walker: trainer_type: ppo 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: linear network_settings: normalize: true hidden_units: 256 ...
ml-agents/config/ppo/Walker.yaml/0
{ "file_path": "ml-agents/config/ppo/Walker.yaml", "repo_id": "ml-agents", "token_count": 267 }
1,965
""" This module provides the 'base_port' pytest fixture for mlagents tests. This is useful because each mlagents environment requires a unique port to communicate over and will fail on collisions. Normally this would prevent tests from being run in parallel but with the help of this fixture we can guarantee every test...
ml-agents/conftest.py/0
{ "file_path": "ml-agents/conftest.py", "repo_id": "ml-agents", "token_count": 1101 }
1,966
# Game Integrations ML-Agents provides some utilities to make it easier to integrate with some common genres of games. ## Match-3 The [Match-3 integration](Integrations-Match3.md) provides an abstraction of a match-3 game board and moves, along with a sensor to observe the game state, and an actuator to translate the ...
ml-agents/docs/Integrations.md/0
{ "file_path": "ml-agents/docs/Integrations.md", "repo_id": "ml-agents", "token_count": 155 }
1,967
# Table of Contents * [mlagents\_envs.envs.unity\_gym\_env](#mlagents_envs.envs.unity_gym_env) * [UnityGymException](#mlagents_envs.envs.unity_gym_env.UnityGymException) * [UnityToGymWrapper](#mlagents_envs.envs.unity_gym_env.UnityToGymWrapper) * [\_\_init\_\_](#mlagents_envs.envs.unity_gym_env.UnityToGymWrapp...
ml-agents/docs/Python-Gym-API-Documentation.md/0
{ "file_path": "ml-agents/docs/Python-Gym-API-Documentation.md", "repo_id": "ml-agents", "token_count": 1828 }
1,968
# Unity Environment Registry [Experimental] The Unity Environment Registry is a database of pre-built Unity environments that can be easily used without having to install the Unity Editor. It is a great way to get started with our [UnityEnvironment API](Python-LLAPI.md). ## Loading an Environment from the Registry T...
ml-agents/docs/Unity-Environment-Registry.md/0
{ "file_path": "ml-agents/docs/Unity-Environment-Registry.md", "repo_id": "ml-agents", "token_count": 774 }
1,969
.wy-nav-top, .wy-side-nav-search { background: #439b47; } .md-typeset__scrollwrap { margin: 1em -.8rem; overflow-x: visible; touch-action: auto; }
ml-agents/docs/extra.css/0
{ "file_path": "ml-agents/docs/extra.css", "repo_id": "ml-agents", "token_count": 76 }
1,970
<img src="docs/images/image-banner.png" align="middle" width="3000"/> # Unity ML-Agents Toolkit(Release 8) Türkçe Dokümantasyon Sayfası [![docs badge](https://img.shields.io/badge/docs-reference-blue.svg)](https://github.com/Unity-Technologies/ml-agents/tree/release_7_docs/docs/) [![license badge](https://img.shield...
ml-agents/localized_docs/TR/README.md/0
{ "file_path": "ml-agents/localized_docs/TR/README.md", "repo_id": "ml-agents", "token_count": 1966 }
1,971
# Unity 中的 Reinforcement Learning(强化学习) Reinforcement learning(强化学习)是一种人工智能技术,通过奖励期望的行为来训练 _agent_ 执行任务。在 reinforcement learning(强化学习)过程中,agent 会探索自己所处的环境,观测事物的状态,并根据这些观测结果采取相应动作。如果该动作带来了更好的状态,agent 会得到正奖励。如果该动作带来的状态不太理想,则 agent 不会得到奖励或会得到负奖励(惩罚)。随着 agent 在训练期间不断学习,它会优化自己的决策能力,以便随着时间的推移获得最高奖励。 ML-Agents 使用一种称为 [Proxi...
ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Design.md/0
{ "file_path": "ml-agents/localized_docs/zh-CN/docs/Learning-Environment-Design.md", "repo_id": "ml-agents", "token_count": 6486 }
1,972
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/brain_parameters.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.py", "repo_id": "ml-agents", "token_count": 3193 }
1,973
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/space_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor fro...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.py", "repo_id": "ml-agents", "token_count": 757 }
1,974
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/unity_rl_output.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.py", "repo_id": "ml-agents", "token_count": 2843 }
1,975
from typing import Optional from .communicator import Communicator, PollCallback from .environment import UnityEnvironment from mlagents_envs.communicator_objects.unity_rl_output_pb2 import UnityRLOutputProto from mlagents_envs.communicator_objects.brain_parameters_pb2 import ( BrainParametersProto, ActionSpec...
ml-agents/ml-agents-envs/mlagents_envs/mock_communicator.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/mock_communicator.py", "repo_id": "ml-agents", "token_count": 1774 }
1,976
from abc import ABC, abstractmethod from typing import List import uuid from mlagents_envs.side_channel import IncomingMessage, OutgoingMessage from mlagents_envs.logging_util import get_logger logger = get_logger(__name__) class SideChannel(ABC): """ The side channel just get access to a bytes buffer that ...
ml-agents/ml-agents-envs/mlagents_envs/side_channel/side_channel.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/side_channel/side_channel.py", "repo_id": "ml-agents", "token_count": 541 }
1,977
import uuid import pytest from mlagents_envs.side_channel import SideChannel, IncomingMessage, OutgoingMessage from mlagents_envs.side_channel.side_channel_manager import SideChannelManager from mlagents_envs.side_channel.float_properties_channel import FloatPropertiesChannel from mlagents_envs.side_channel.raw_bytes_c...
ml-agents/ml-agents-envs/tests/test_side_channel.py/0
{ "file_path": "ml-agents/ml-agents-envs/tests/test_side_channel.py", "repo_id": "ml-agents", "token_count": 3079 }
1,978
from typing import cast from mlagents.torch_utils import torch, nn, default_device from mlagents.trainers.optimizer.torch_optimizer import TorchOptimizer from mlagents.trainers.policy.torch_policy import TorchPolicy from mlagents.trainers.buffer import AgentBuffer, BufferKey, RewardSignalUtil from mlagents_envs.timers ...
ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_optimizer.py/0
{ "file_path": "ml-agents/ml-agents-trainer-plugin/mlagents_trainer_plugin/dqn/dqn_optimizer.py", "repo_id": "ml-agents", "token_count": 5012 }
1,979
from collections import defaultdict from collections.abc import MutableMapping import enum import itertools from typing import BinaryIO, DefaultDict, List, Tuple, Union, Optional import numpy as np import h5py from mlagents_envs.exception import UnityException # Elements in the buffer can be np.ndarray, or in the ca...
ml-agents/ml-agents/mlagents/trainers/buffer.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/buffer.py", "repo_id": "ml-agents", "token_count": 8494 }
1,980
from typing import Dict, Optional, Tuple, List from mlagents.torch_utils import torch import numpy as np from collections import defaultdict from mlagents.trainers.buffer import AgentBuffer, AgentBufferField from mlagents.trainers.trajectory import ObsUtil from mlagents.trainers.torch_entities.components.bc.module imp...
ml-agents/ml-agents/mlagents/trainers/optimizer/torch_optimizer.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/optimizer/torch_optimizer.py", "repo_id": "ml-agents", "token_count": 4018 }
1,981
from typing import Dict, List from mlagents_envs.base_env import BaseEnv, BehaviorName, BehaviorSpec from mlagents.trainers.env_manager import EnvManager, EnvironmentStep, AllStepResult from mlagents_envs.timers import timed from mlagents.trainers.action_info import ActionInfo from mlagents.trainers.settings import Pa...
ml-agents/ml-agents/mlagents/trainers/simple_env_manager.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/simple_env_manager.py", "repo_id": "ml-agents", "token_count": 1364 }
1,982
import io import os from unittest import mock import numpy as np import pytest import tempfile from mlagents_envs.communicator_objects.demonstration_meta_pb2 import ( DemonstrationMetaProto, ) from mlagents.trainers.tests.mock_brain import ( create_mock_3dball_behavior_specs, setup_test_behavior_specs, ) f...
ml-agents/ml-agents/mlagents/trainers/tests/test_demo_loader.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_demo_loader.py", "repo_id": "ml-agents", "token_count": 2025 }
1,983
from mlagents.trainers.behavior_id_utils import BehaviorIdentifiers import pytest from typing import Dict, Any import numpy as np import attr # Import to avoid circular import from mlagents.trainers.trainer.trainer_factory import TrainerFactory # noqa F401 from mlagents.trainers.poca.optimizer_torch import TorchPOCA...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_poca.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_poca.py", "repo_id": "ml-agents", "token_count": 5136 }
1,984
from typing import List, Optional, NamedTuple import itertools import numpy as np from mlagents.torch_utils import torch from mlagents.trainers.buffer import AgentBuffer, BufferKey from mlagents.trainers.torch_entities.utils import ModelUtils from mlagents_envs.base_env import ActionTuple class AgentAction(NamedTupl...
ml-agents/ml-agents/mlagents/trainers/torch_entities/agent_action.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/agent_action.py", "repo_id": "ml-agents", "token_count": 2855 }
1,985
from mlagents.torch_utils import torch import abc from typing import Tuple from enum import Enum from mlagents.trainers.torch_entities.model_serialization import exporting_to_onnx class Swish(torch.nn.Module): def forward(self, data: torch.Tensor) -> torch.Tensor: return torch.mul(data, torch.sigmoid(data...
ml-agents/ml-agents/mlagents/trainers/torch_entities/layers.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/layers.py", "repo_id": "ml-agents", "token_count": 3379 }
1,986
# Unity ML-Agents Protobuf Definitions Contains relevant definitions needed to generate probobuf files used in [ML-Agents Toolkit](https://github.com/Unity-Technologies/ml-agents). ## Requirements * protobuf 3.19.6 * grpcio-tools 1.48.2 * Grpc.Tools 1.14.1 ## Set-up & Installation First we will follow these steps ...
ml-agents/protobuf-definitions/README.md/0
{ "file_path": "ml-agents/protobuf-definitions/README.md", "repo_id": "ml-agents", "token_count": 761 }
1,987
syntax = "proto3"; import "mlagents_envs/communicator_objects/unity_rl_input.proto"; import "mlagents_envs/communicator_objects/unity_rl_initialization_input.proto"; option csharp_namespace = "Unity.MLAgents.CommunicatorObjects"; package communicator_objects; message UnityInputProto { UnityRLInputProto rl_input ...
ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_input.proto/0
{ "file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_input.proto", "repo_id": "ml-agents", "token_count": 145 }
1,988
#!/usr/bin/env python3 import argparse import subprocess if __name__ == "__main__": # markdown-link-check doesn't support multiple files on the commandline, so this hacks around that. # Note that you must install the package separately via npm. For example: # brew install npm; npm install -g markdown-lin...
ml-agents/utils/run_markdown_link_check.py/0
{ "file_path": "ml-agents/utils/run_markdown_link_check.py", "repo_id": "ml-agents", "token_count": 293 }
1,989
fileFormatVersion: 2 guid: e6375603a0a1e2647b0c426b27646eb7 folderAsset: yes timeCreated: 1490146877 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/Plugins/WSA/ARM.meta/0
{ "file_path": "xLua/Assets/Plugins/WSA/ARM.meta", "repo_id": "xLua", "token_count": 76 }
1,990
#include <stddef.h> #include <stdlib.h> int* xlua_hotfix_flags = NULL; int xlua_hotfix_flags_len = 0; extern "C" { int xlua_get_hotfix_flag(int idx) { if (idx >= xlua_hotfix_flags_len) { return 0; } else { return xlua_hotfix_flags[idx]; } } void xlua_set_hotfix_flag(int idx, int flag) { int i = 0; i...
xLua/Assets/Plugins/iOS/HotfixFlags.cpp/0
{ "file_path": "xLua/Assets/Plugins/iOS/HotfixFlags.cpp", "repo_id": "xLua", "token_count": 515 }
1,991
fileFormatVersion: 2 guid: 7cfed86298c2da543b693ffd8436367a TextScriptImporter: userData:
xLua/Assets/XLua/Examples/02_U3DScripting/LuaTestScript.lua.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/02_U3DScripting/LuaTestScript.lua.txt.meta", "repo_id": "xLua", "token_count": 40 }
1,992
using System; using System.Collections.Generic; using XLua; namespace XLuaTest.Editor { public static class HotfixTestCfg { [Hotfix] public static List<Type> by_field = new List<Type>() { typeof(HotfixTest), typeof(HotfixCalc), typeof(GenericClass<>)...
xLua/Assets/XLua/Examples/08_Hotfix/Editor/HotfixTestCfg.cs/0
{ "file_path": "xLua/Assets/XLua/Examples/08_Hotfix/Editor/HotfixTestCfg.cs", "repo_id": "xLua", "token_count": 263 }
1,993
fileFormatVersion: 2 guid: 7e8c24c5719ad6b4b8b2d9ecf19cfec7 folderAsset: yes timeCreated: 1498116676 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/11_RawObject.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/11_RawObject.meta", "repo_id": "xLua", "token_count": 81 }
1,994
/* * 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/Examples/ExampleGenConfig.cs/0
{ "file_path": "xLua/Assets/XLua/Examples/ExampleGenConfig.cs", "repo_id": "xLua", "token_count": 2338 }
1,995
fileFormatVersion: 2 guid: 93ce5fd372271b04199841c920eb0268 timeCreated: 1470883945 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/CodeEmit.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Src/CodeEmit.cs.meta", "repo_id": "xLua", "token_count": 98 }
1,996
/* * 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/InternalGlobals.cs/0
{ "file_path": "xLua/Assets/XLua/Src/InternalGlobals.cs", "repo_id": "xLua", "token_count": 1075 }
1,997
fileFormatVersion: 2 guid: 567af7ecaa3d5994c97448357665421b timeCreated: 1456111221 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Tutorial/LuaCallCSharp/LuaCallCs.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Tutorial/LuaCallCSharp/LuaCallCs.cs.meta", "repo_id": "xLua", "token_count": 100 }
1,998
using XLua; using System.Collections.Generic; using System; public class XLuaUnitTest { public static void Main() { LuaEnv luaenv = LuaEnvSingleton.Instance; luaenv.DoString("require 'main'"); } }
xLua/General/Src/XLuaUnitTest.cs/0
{ "file_path": "xLua/General/Src/XLuaUnitTest.cs", "repo_id": "xLua", "token_count": 91 }
1,999
fileFormatVersion: 2 guid: 1f7ef963c7bf8eb4db37942e665f8fd0 timeCreated: 1483528414 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/StreamingAssets/testlua/B.lua.meta/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/testlua/B.lua.meta", "repo_id": "xLua", "token_count": 72 }
2,000
fileFormatVersion: 2 guid: 383779e020c98e545b46bcffb0e8eb6b timeCreated: 1483527551 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/CSharpCallLua/Resources/D.lua.txt.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/CSharpCallLua/Resources/D.lua.txt.meta", "repo_id": "xLua", "token_count": 72 }
2,001
#if !XLUA_GENERAL using UnityEngine; #endif using System.Collections; using System.Collections.Generic; using XLua; using System; using System.IO; [LuaCallCSharp] public class NoContClass{ public int key1; public int key2; public bool key3; public int add (int a, int b) { return a + b; } public static int d;...
xLua/Test/UnitTest/xLuaTest/LuaCallCS/CSObjectForLuaCallCS.cs/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/LuaCallCS/CSObjectForLuaCallCS.cs", "repo_id": "xLua", "token_count": 1307 }
2,002
fileFormatVersion: 2 guid: 657558324b4147b42b960f741e98d671 timeCreated: 1483527551 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/Resources/non_tlv_net_protocol_v4.xml.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/Resources/non_tlv_net_protocol_v4.xml.meta", "repo_id": "xLua", "token_count": 70 }
2,003
HISTORY for Lua 5.1 * Changes from version 5.0 to 5.1 ------------------------------- Language: + new module system. + new semantics for control variables of fors. + new semantics for setn/getn. + new syntax/semantics for varargs. + new long strings and comments. + new `mod' operator (`%') + new leng...
xLua/build/lua-5.1.5/HISTORY/0
{ "file_path": "xLua/build/lua-5.1.5/HISTORY", "repo_id": "xLua", "token_count": 2188 }
2,004
This directory contains some useful files and code. Unlike the code in ../src, everything here is in the public domain. If any of the makes fail, you're probably not using the same libraries used to build Lua. Set MYLIBS in Makefile accordingly. all.c Full Lua interpreter in a single file. Do "make one" for a demo....
xLua/build/lua-5.1.5/etc/README/0
{ "file_path": "xLua/build/lua-5.1.5/etc/README", "repo_id": "xLua", "token_count": 316 }
2,005
/* ** $Id: lmathlib.c,v 1.67.1.1 2007/12/27 13:02:25 roberto Exp $ ** Standard mathematical library ** See Copyright Notice in lua.h */ #include <stdlib.h> #include <math.h> #define lmathlib_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #undef PI #define PI (3.14159265358979323846) ...
xLua/build/lua-5.1.5/src/lmathlib.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lmathlib.c", "repo_id": "xLua", "token_count": 2648 }
2,006
/* ** $Id: ltable.c,v 2.32.1.2 2007/12/28 15:32:23 roberto Exp $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ /* ** Implementation of tables (aka arrays, objects, or hash tables). ** Tables keep its elements in two parts: an array part and a hash part. ** Non-negative integer keys are all candidates to be...
xLua/build/lua-5.1.5/src/ltable.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/ltable.c", "repo_id": "xLua", "token_count": 6826 }
2,007
/* ** $Id: print.c,v 1.55a 2006/05/31 13:30:05 lhf Exp $ ** print bytecodes ** See Copyright Notice in lua.h */ #include <ctype.h> #include <stdio.h> #define luac_c #define LUA_CORE #include "ldebug.h" #include "lobject.h" #include "lopcodes.h" #include "lundump.h" #define PrintFunction luaU_print #define Sizeof(x...
xLua/build/lua-5.1.5/src/print.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/print.c", "repo_id": "xLua", "token_count": 2422 }
2,008
/* ** $Id: lcorolib.c $ ** 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 = lua_tothread(L, 1); luaL_argexpected...
xLua/build/lua-5.4.1/src/lcorolib.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lcorolib.c", "repo_id": "xLua", "token_count": 2144 }
2,009
/* ** $Id: lstate.c $ ** Global State ** See Copyright Notice in lua.h */ #define lstate_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include <string.h> #include "lua.h" #include "lapi.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #include "llex.h" #include "lmem.h" #...
xLua/build/lua-5.4.1/src/lstate.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lstate.c", "repo_id": "xLua", "token_count": 5331 }
2,010
/* ** $Id: lundump.c $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ #define lundump_c #define LUA_CORE #include "lprefix.h" #include <limits.h> #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lmem.h" #include "lobject.h" #include "lstrin...
xLua/build/lua-5.4.1/src/lundump.c/0
{ "file_path": "xLua/build/lua-5.4.1/src/lundump.c", "repo_id": "xLua", "token_count": 3425 }
2,011
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>LuaJIT Change History</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 Pa...
xLua/build/luajit-2.1.0b2/doc/changes.html/0
{ "file_path": "xLua/build/luajit-2.1.0b2/doc/changes.html", "repo_id": "xLua", "token_count": 14415 }
2,012
/* ** JIT library. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lib_jit_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "lj_obj.h" #include "lj_gc.h" #include "lj_err.h" #include "lj_debug.h" #include "lj_str.h" #include "lj_tab.h" #include "l...
xLua/build/luajit-2.1.0b2/src/lib_jit.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lib_jit.c", "repo_id": "xLua", "token_count": 9869 }
2,013
/* ** x86/x64 IR assembler (SSA IR -> machine code). ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ /* -- Guard handling ------------------------------------------------------ */ /* Generate an exit stub group at the bottom of the reserved MCode memory. */ static MCode *asm_exitstub_gen(ASM...
xLua/build/luajit-2.1.0b2/src/lj_asm_x86.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_asm_x86.h", "repo_id": "xLua", "token_count": 43378 }
2,014
/* ** C data management. ** Copyright (C) 2005-2016 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_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" /* -- C data allocation ----------------------------------...
xLua/build/luajit-2.1.0b2/src/lj_cdata.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_cdata.c", "repo_id": "xLua", "token_count": 4223 }
2,015
/* ** Instruction dispatch handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_DISPATCH_H #define _LJ_DISPATCH_H #include "lj_obj.h" #include "lj_bc.h" #if LJ_HASJIT #include "lj_jit.h" #endif #if LJ_TARGET_MIPS /* Need our own global offset table for the dreaded MIPS call...
xLua/build/luajit-2.1.0b2/src/lj_dispatch.h/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_dispatch.h", "repo_id": "xLua", "token_count": 2367 }
2,016
/* ** Client for the GDB JIT API. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_gdbjit_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_frame.h" #include "lj_buf.h" #include "lj_strfmt.h" #include "l...
xLua/build/luajit-2.1.0b2/src/lj_gdbjit.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_gdbjit.c", "repo_id": "xLua", "token_count": 9688 }
2,017
/* ** Miscellaneous object handling. ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h */ #define lj_obj_c #define LUA_CORE #include "lj_obj.h" /* Object type names. */ LJ_DATADEF const char *const lj_obj_typename[] = { /* ORDER LUA_T */ "no value", "nil", "boolean", "userdata", "number", "st...
xLua/build/luajit-2.1.0b2/src/lj_obj.c/0
{ "file_path": "xLua/build/luajit-2.1.0b2/src/lj_obj.c", "repo_id": "xLua", "token_count": 573 }
2,018
<!DOCTYPE html> <html> <head> <title>Frequently Asked Questions (FAQ)</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="blueq...
xLua/build/luajit-2.1.0b3/doc/faq.html/0
{ "file_path": "xLua/build/luajit-2.1.0b3/doc/faq.html", "repo_id": "xLua", "token_count": 2911 }
2,019
------------------------------------------------------------------------------ -- DynASM PPC/PPC64 module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. -- -- Support for various extensions contributed by Caio Souza Oliveira. ---------------------------------...
xLua/build/luajit-2.1.0b3/dynasm/dasm_ppc.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/dynasm/dasm_ppc.lua", "repo_id": "xLua", "token_count": 29949 }
2,020
/* ** LuaJIT VM builder. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _BUILDVM_H #define _BUILDVM_H #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "lj_def.h" #include "lj_arch.h" /* Hardcoded limits. Increase as need...
xLua/build/luajit-2.1.0b3/src/host/buildvm.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/host/buildvm.h", "repo_id": "xLua", "token_count": 1058 }
2,021
---------------------------------------------------------------------------- -- LuaJIT MIPS64 disassembler wrapper module. -- -- Copyright (C) 2005-2021 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------...
xLua/build/luajit-2.1.0b3/src/jit/dis_mips64.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/jit/dis_mips64.lua", "repo_id": "xLua", "token_count": 161 }
2,022
/* ** Buffer library. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lib_buffer_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "lj_obj.h" #if LJ_HASBUFFER #include "lj_gc.h" #include "lj_err.h" #include "lj_buf.h" #include "lj_str.h" #include ...
xLua/build/luajit-2.1.0b3/src/lib_buffer.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lib_buffer.c", "repo_id": "xLua", "token_count": 4490 }
2,023
/* ** IR assembler (SSA IR -> machine code). ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_asm_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT #include "lj_gc.h" #include "lj_buf.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_frame.h" #if LJ_HASFFI #include "lj_c...
xLua/build/luajit-2.1.0b3/src/lj_asm.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_asm.c", "repo_id": "xLua", "token_count": 35806 }
2,024
/* ** C data arithmetic. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_CARITH_H #define _LJ_CARITH_H #include "lj_obj.h" #if LJ_HASFFI LJ_FUNC int lj_carith_op(lua_State *L, MMS mm); #if LJ_32 LJ_FUNC uint64_t lj_carith_shl64(uint64_t x, int32_t sh); LJ_FUNC uint64_t lj_cari...
xLua/build/luajit-2.1.0b3/src/lj_carith.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_carith.h", "repo_id": "xLua", "token_count": 597 }
2,025
/* ** Trace recorder for C data operations. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_CRECORD_H #define _LJ_CRECORD_H #include "lj_obj.h" #include "lj_jit.h" #include "lj_ffrecord.h" #if LJ_HASJIT && LJ_HASFFI LJ_FUNC void LJ_FASTCALL recff_cdata_index(jit_State *J, Record...
xLua/build/luajit-2.1.0b3/src/lj_crecord.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_crecord.h", "repo_id": "xLua", "token_count": 931 }
2,026
/* ** Fast function IDs. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_FF_H #define _LJ_FF_H /* Fast function ID. */ typedef enum { FF_LUA_ = FF_LUA, /* Lua function (must be 0). */ FF_C_ = FF_C, /* Regular C function (must be 1). */ #define FFDEF(name) FF_##name, #include...
xLua/build/luajit-2.1.0b3/src/lj_ff.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_ff.h", "repo_id": "xLua", "token_count": 157 }
2,027
/* ** Lexical analyzer. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_LEX_H #define _LJ_LEX_H #include <stdarg.h> #include "lj_obj.h" #include "lj_err.h" /* Lua lexer tokens. */ #define TKDEF(_, __) \ _(and) _(break) _(do) _(else) _(elseif) _(end) _(false) \ _(for) _(func...
xLua/build/luajit-2.1.0b3/src/lj_lex.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_lex.h", "repo_id": "xLua", "token_count": 1316 }
2,028
/* ** SPLIT: Split 64 bit IR instructions into 32 bit IR instructions. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #define lj_opt_split_c #define LUA_CORE #include "lj_obj.h" #if LJ_HASJIT && (LJ_SOFTFP32 || (LJ_32 && LJ_HASFFI)) #include "lj_err.h" #include "lj_buf.h" #include "lj_ir....
xLua/build/luajit-2.1.0b3/src/lj_opt_split.c/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_opt_split.c", "repo_id": "xLua", "token_count": 12783 }
2,029
/* ** String handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_STR_H #define _LJ_STR_H #include <stdarg.h> #include "lj_obj.h" /* String helpers. */ LJ_FUNC int32_t LJ_FASTCALL lj_str_cmp(GCstr *a, GCstr *b); LJ_FUNC const char *lj_str_find(const char *s, const char *f,...
xLua/build/luajit-2.1.0b3/src/lj_str.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_str.h", "repo_id": "xLua", "token_count": 459 }
2,030
/* ** Trace management. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #ifndef _LJ_TRACE_H #define _LJ_TRACE_H #include "lj_obj.h" #if LJ_HASJIT #include "lj_jit.h" #include "lj_dispatch.h" /* Trace errors. */ typedef enum { #define TREDEF(name, msg) LJ_TRERR_##name, #include "lj_traceerr...
xLua/build/luajit-2.1.0b3/src/lj_trace.h/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/lj_trace.h", "repo_id": "xLua", "token_count": 814 }
2,031
@rem Script to build LuaJIT with MSVC. @rem Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h @rem @rem Either open a "Visual Studio .NET Command Prompt" @rem (Note that the Express Edition does not contain an x64 compiler) @rem -or- @rem Open a "Windows SDK Command Shell" and set the compiler environ...
xLua/build/luajit-2.1.0b3/src/msvcbuild_mt.bat/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/msvcbuild_mt.bat", "repo_id": "xLua", "token_count": 1698 }
2,032
--[[ Given two content-idental string s1, s2, test if they end up to be the same string object. The purpose of this test is to make sure hash function do not accidently include extraneous bytes before and after the string in question. ]] local ffi = require("ffi") local C = ffi.C ffi.cdef[[ void free(void*); ...
xLua/build/luajit-2.1.0b3/src/x64/test/test_str_comp.lua/0
{ "file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/test_str_comp.lua", "repo_id": "xLua", "token_count": 698 }
2,033
/*=========================================================================*\ * Internet domain functions * LuaSocket toolkit \*=========================================================================*/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lauxlib.h" #include "inet.h"...
xLua/build/luasocket/inet.c/0
{ "file_path": "xLua/build/luasocket/inet.c", "repo_id": "xLua", "token_count": 7239 }
2,034
#include <string.h> #include "lua.h" #include "lauxlib.h" #include "auxiliar.h" #include "socket.h" #include "inet.h" #include "options.h" #include "tcp.h" #include "buffer.h" static int global_create(lua_State *L); static int global_create6(lua_State *L); static int global_connect(lua_State *L); static int meth_c...
xLua/build/luasocket/tcp.c/0
{ "file_path": "xLua/build/luasocket/tcp.c", "repo_id": "xLua", "token_count": 6656 }
2,035
#if [ -z "$ANDROID_NDK" ]; then export ANDROID_NDK=~/android-ndk-r15c #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 NDKABI...
xLua/build/make_android_luajit_arm64.sh/0
{ "file_path": "xLua/build/make_android_luajit_arm64.sh", "repo_id": "xLua", "token_count": 1316 }
2,036
mkdir build_uwp & pushd build_uwp cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 .. popd cmake --build build_uwp --config Release md plugin_lua53\Plugins\WSA\x86 copy /Y build_uwp\Release\xlua.dll plugin_lua53\Plugins\WSA\x86\xlua.dll mkdir build_uwp64 & pushd bu...
xLua/build/make_uwp.bat/0
{ "file_path": "xLua/build/make_uwp.bat", "repo_id": "xLua", "token_count": 499 }
2,037
@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 gc64 static cd ..\.. goto :buildxlua :missing echo C...
xLua/build/vs2015/make_win64_luajit_gc64.bat/0
{ "file_path": "xLua/build/vs2015/make_win64_luajit_gc64.bat", "repo_id": "xLua", "token_count": 325 }
2,038
# XLua 教程文档 这是XLua的教程文档网站,文档是使用[hexo](http://hexo.io/)构建的。 文档内容在[src](src)文件夹中,使用Markdown格式编写。 ## 搭建本地文档环境 * 首先您必须安装[nodejs](http://nodejs.cn/)及[npm](https://www.npmjs.com/) * 安装hexo,在docs/source下执行 ``` $ npm install -g hexo-cli $ npm install ``` * 如下指令在 `localhost:4000` 启动文档网站: ``` $ hexo server ``` ## 修改Mark...
xLua/docs/source/README.md/0
{ "file_path": "xLua/docs/source/README.md", "repo_id": "xLua", "token_count": 352 }
2,039
--- title: 性能分析工具 type: guide order: 103 --- ## 性能分析工具 > Todo:请在此处输入内容
xLua/docs/source/src/v1/guide/performance-analysis.md/0
{ "file_path": "xLua/docs/source/src/v1/guide/performance-analysis.md", "repo_id": "xLua", "token_count": 68 }
2,040