text
stringlengths
7
35.3M
id
stringlengths
11
185
metadata
dict
__index_level_0__
int64
0
2.14k
fileFormatVersion: 2 guid: cbf24ddeec4054edc9ad4c8295556878 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: : Any second: ...
ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/Grpc.Core.dll.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/Grpc.Core.dll.meta", "repo_id": "ml-agents", "token_count": 1061 }
2,000
fileFormatVersion: 2 guid: a961485c3484a4002ac4961a8481f6cc folderAsset: yes timeCreated: 1521595360 licenseType: Free DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/win.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/win.meta", "repo_id": "ml-agents", "token_count": 82 }
2,001
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Unity.MLAgents.Actuators { /// <summary> /// ActionSegment{T} is a data structure that allows access to a segment of an underlying array /// in order to avoid the copying and all...
ml-agents/com.unity.ml-agents/Runtime/Actuators/ActionSegment.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Actuators/ActionSegment.cs", "repo_id": "ml-agents", "token_count": 3939 }
2,002
namespace Unity.MLAgents.Actuators { /// <summary> /// Interface for writing a mask to disable discrete actions for agents for the next decision. /// </summary> public interface IDiscreteActionMask { /// <summary> /// Set whether or not the action index for the given branch is allowe...
ml-agents/com.unity.ml-agents/Runtime/Actuators/IDiscreteActionMask.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Actuators/IDiscreteActionMask.cs", "repo_id": "ml-agents", "token_count": 437 }
2,003
fileFormatVersion: 2 guid: 5ad0bc6b45614bb7929d25dd59d5ac38 timeCreated: 1608168600
ml-agents/com.unity.ml-agents/Runtime/Analytics/TrainingAnalytics.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Analytics/TrainingAnalytics.cs.meta", "repo_id": "ml-agents", "token_count": 40 }
2,004
fileFormatVersion: 2 guid: f95d271af72d4b75aa94d308222f79d8 timeCreated: 1587670989
ml-agents/com.unity.ml-agents/Runtime/Communicator/UnityRLCapabilities.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Communicator/UnityRLCapabilities.cs.meta", "repo_id": "ml-agents", "token_count": 39 }
2,005
namespace Unity.MLAgents { internal static class EpisodeIdCounter { static int s_Counter; public static int GetEpisodeId() { return s_Counter++; } } }
ml-agents/com.unity.ml-agents/Runtime/EpisodeIdCounter.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/EpisodeIdCounter.cs", "repo_id": "ml-agents", "token_count": 96 }
2,006
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/command.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Colle...
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/Command.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/Command.cs", "repo_id": "ml-agents", "token_count": 755 }
2,007
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/unity_input.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.C...
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityInput.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityInput.cs", "repo_id": "ml-agents", "token_count": 3662 }
2,008
#if UNITY_EDITOR || UNITY_STANDALONE #define MLA_SUPPORTED_TRAINING_PLATFORM #endif #if MLA_SUPPORTED_TRAINING_PLATFORM // <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mlagents_envs/communicator_objects/unity_to_external.proto // </auto-generated> #pragma warning disab...
ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityToExternalGrpc.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityToExternalGrpc.cs", "repo_id": "ml-agents", "token_count": 2464 }
2,009
fileFormatVersion: 2 guid: 399c5e92395a1484cb2808ac397745e1 timeCreated: 1539197357
ml-agents/com.unity.ml-agents/Runtime/Inference/SentisModelParamLoader.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Inference/SentisModelParamLoader.cs.meta", "repo_id": "ml-agents", "token_count": 39 }
2,010
using System; namespace Unity.MLAgents.Inference.Utils { /// <summary> /// RandomNormal - A random number generator that produces normally distributed random /// numbers using the Marsaglia polar method: /// https://en.wikipedia.org/wiki/Marsaglia_polar_method /// TODO: worth overriding System.Rand...
ml-agents/com.unity.ml-agents/Runtime/Inference/Utils/RandomNormal.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Inference/Utils/RandomNormal.cs", "repo_id": "ml-agents", "token_count": 831 }
2,011
using System; using UnityEngine; namespace Unity.MLAgents.Integrations.Match3 { /// <summary> /// Directions for a Move. /// </summary> public enum Direction { /// <summary> /// Move up (increasing row direction). /// </summary> Up, /// <summary> ///...
ml-agents/com.unity.ml-agents/Runtime/Integrations/Match3/Move.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Integrations/Match3/Move.cs", "repo_id": "ml-agents", "token_count": 4583 }
2,012
using UnityEngine; namespace Unity.MLAgents.Sensors { /// <summary> /// A SensorComponent that creates a <see cref="BufferSensor"/>. /// </summary> [AddComponentMenu("ML Agents/Buffer Sensor", (int)MenuGroup.Sensors)] public class BufferSensorComponent : SensorComponent { /// <summary> ...
ml-agents/com.unity.ml-agents/Runtime/Sensors/BufferSensorComponent.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/BufferSensorComponent.cs", "repo_id": "ml-agents", "token_count": 959 }
2,013
using System; using System.Collections.Generic; namespace Unity.MLAgents.Sensors { /// <summary> /// The Dimension property flags of the observations /// </summary> [Flags] public enum DimensionProperty { /// <summary> /// No properties specified. /// </summary> ...
ml-agents/com.unity.ml-agents/Runtime/Sensors/ISensor.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/ISensor.cs", "repo_id": "ml-agents", "token_count": 1784 }
2,014
fileFormatVersion: 2 guid: 08ece3d7e9bb94089a9d59c6f269ab0a folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Runtime/Sensors/Reflection.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/Reflection.meta", "repo_id": "ml-agents", "token_count": 72 }
2,015
fileFormatVersion: 2 guid: e3966c9961b343108808d91a4d140a68 timeCreated: 1572300800
ml-agents/com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs.meta", "repo_id": "ml-agents", "token_count": 38 }
2,016
using System.Collections.Generic; using System; using UnityEngine; namespace Unity.MLAgents.SideChannels { /// <summary> /// Side channels provide an alternative mechanism of sending/receiving data from Unity /// to Python that is outside of the traditional machine learning loop. ML-Agents provides ///...
ml-agents/com.unity.ml-agents/Runtime/SideChannels/SideChannel.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/SideChannels/SideChannel.cs", "repo_id": "ml-agents", "token_count": 1055 }
2,017
using System; namespace Unity.MLAgents { /// <summary> /// Contains exceptions specific to ML-Agents. /// </summary> [Serializable] public class UnityAgentsException : Exception { /// <summary> /// When a UnityAgentsException is called, the timeScale is set to 0. /// The...
ml-agents/com.unity.ml-agents/Runtime/UnityAgentsException.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Runtime/UnityAgentsException.cs", "repo_id": "ml-agents", "token_count": 407 }
2,018
fileFormatVersion: 2 guid: 18cb6d052fba43a2b7437d87c0d9abad timeCreated: 1596486604
ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActionSegmentTests.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActionSegmentTests.cs.meta", "repo_id": "ml-agents", "token_count": 40 }
2,019
fileFormatVersion: 2 guid: d32a102dc1f004c33b05a30190a9d039 timeCreated: 1632841906
ml-agents/com.unity.ml-agents/Tests/Editor/Areas.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Areas.meta", "repo_id": "ml-agents", "token_count": 40 }
2,020
fileFormatVersion: 2 guid: aa4c4ceac5f246a0b341958724ecd752 MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
ml-agents/com.unity.ml-agents/Tests/Editor/Inference/DiscreteActionOutputApplierTest.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Inference/DiscreteActionOutputApplierTest.cs.meta", "repo_id": "ml-agents", "token_count": 94 }
2,021
fileFormatVersion: 2 guid: a6d0404471364cd5b0b86ef72e6fe653 timeCreated: 1601332740
ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/AbstractBoardTests.cs.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/AbstractBoardTests.cs.meta", "repo_id": "ml-agents", "token_count": 40 }
2,022
using NUnit.Framework; using Unity.MLAgents.Actuators; using Unity.MLAgents.Policies; using UnityEngine; namespace Unity.MLAgents.Tests.Policies { [TestFixture] public class HeuristicPolicyTest { [SetUp] public void SetUp() { if (Academy.IsInitialized) { ...
ml-agents/com.unity.ml-agents/Tests/Editor/Policies/HeuristicPolicyTest.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Policies/HeuristicPolicyTest.cs", "repo_id": "ml-agents", "token_count": 1923 }
2,023
fileFormatVersion: 2 guid: 1228f198ceee45a38c7d9ff50425b65d timeCreated: 1610760867
ml-agents/com.unity.ml-agents/Tests/Editor/SideChannels.meta/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/SideChannels.meta", "repo_id": "ml-agents", "token_count": 39 }
2,024
{ "name": "Unity.ML-Agents.Editor.Tests", "rootNamespace": "", "references": [ "Unity.ML-Agents.Editor", "Unity.ML-Agents", "Unity.Mathematics", "Unity.ML-Agents.CommunicatorObjects", "Unity.ML-Agents.Runtime.Utils.Tests", "Unity.ML-Agents.Runtime.Sensor.Tests...
ml-agents/com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef", "repo_id": "ml-agents", "token_count": 746 }
2,025
using NUnit.Framework; using Unity.MLAgents.Sensors; namespace Unity.MLAgents.Tests { [TestFixture] public class CompressionSpecTests { [Test] public void TestIsTrivialMapping() { Assert.IsTrue(CompressionSpec.Default().IsTrivialMapping()); var spec = new Co...
ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/CompressionSpecTests.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/CompressionSpecTests.cs", "repo_id": "ml-agents", "token_count": 486 }
2,026
using System; using NUnit.Framework; using UnityEngine; using Unity.MLAgents.Sensors; namespace Unity.MLAgents.Tests { [TestFixture] public class RenderTextureSensorTests { [Test] public void TestRenderTextureSensor() { foreach (var grayscale in new[] { true, false }) ...
ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/RenderTextureSensorTests.cs/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/RenderTextureSensorTests.cs", "repo_id": "ml-agents", "token_count": 946 }
2,027
{ "name": "Unity.ML-Agents.Runtime.Tests", "rootNamespace": "", "references": [ "Unity.ML-Agents", "Unity.ML-Agents.CommunicatorObjects", "Unity.ML-Agents.Editor", "UnityEngine.TestRunner", "UnityEditor.TestRunner", "Unity.Sentis" ], "includePlatforms"...
ml-agents/com.unity.ml-agents/Tests/Runtime/Unity.ML-Agents.Runtime.Tests.asmdef/0
{ "file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Unity.ML-Agents.Runtime.Tests.asmdef", "repo_id": "ml-agents", "token_count": 572 }
2,028
behaviors: Hallway: trainer_type: ppo hyperparameters: batch_size: 128 buffer_size: 1024 learning_rate: 0.0003 beta: 0.01 epsilon: 0.2 lambd: 0.95 num_epoch: 3 learning_rate_schedule: linear network_settings: normalize: false hidden_units: 128 ...
ml-agents/config/imitation/Hallway.yaml/0
{ "file_path": "ml-agents/config/imitation/Hallway.yaml", "repo_id": "ml-agents", "token_count": 415 }
2,029
behaviors: PushBlock: trainer_type: ppo hyperparameters: batch_size: 128 buffer_size: 2048 learning_rate: 0.0003 beta: 0.01 epsilon: 0.2 lambd: 0.95 num_epoch: 3 learning_rate_schedule: linear network_settings: normalize: false hidden_units: 256 ...
ml-agents/config/ppo/PushBlock.yaml/0
{ "file_path": "ml-agents/config/ppo/PushBlock.yaml", "repo_id": "ml-agents", "token_count": 267 }
2,030
behaviors: Hallway: trainer_type: sac hyperparameters: learning_rate: 0.0003 learning_rate_schedule: constant batch_size: 512 buffer_size: 200000 buffer_init_steps: 0 tau: 0.005 steps_per_update: 10.0 save_replay_buffer: false init_entcoef: 0.1 rewar...
ml-agents/config/sac/Hallway.yaml/0
{ "file_path": "ml-agents/config/sac/Hallway.yaml", "repo_id": "ml-agents", "token_count": 341 }
2,031
# Getting Started Guide This guide walks through the end-to-end process of opening one of our [example environments](Learning-Environment-Examples.md) in Unity, training an Agent in it, and embedding the trained model into the Unity environment. After reading this tutorial, you should be able to train any of the examp...
ml-agents/docs/Getting-Started.md/0
{ "file_path": "ml-agents/docs/Getting-Started.md", "repo_id": "ml-agents", "token_count": 3776 }
2,032
{!../ml-agents/README.md!}
ml-agents/docs/ML-Agents-README.md/0
{ "file_path": "ml-agents/docs/ML-Agents-README.md", "repo_id": "ml-agents", "token_count": 14 }
2,033
<!-- HTML footer for doxygen 1.8.14--> <!-- start footer part --> <!--BEGIN GENERATE_TREEVIEW--> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> $navpath </ul> </div> <!--END GENERATE_TREEVIEW--> <!--BEGIN !GENERATE_TREEVIEW--> <hr class="footer"/> <!--END !GENERATE_TREEVIEW...
ml-agents/docs/doxygen/footer.html/0
{ "file_path": "ml-agents/docs/doxygen/footer.html", "repo_id": "ml-agents", "token_count": 137 }
2,034
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/agent_action.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 goo...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.py", "repo_id": "ml-agents", "token_count": 1479 }
2,035
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/engine_configuration.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 ...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.py", "repo_id": "ml-agents", "token_count": 1785 }
2,036
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents_envs/communicator_objects/unity_rl_initialization_input.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 ...
ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.py", "repo_id": "ml-agents", "token_count": 1865 }
2,037
from typing import Any, Optional from gym import error from mlagents_envs.base_env import BaseEnv from pettingzoo import AECEnv from mlagents_envs.envs.unity_pettingzoo_base_env import UnityPettingzooBaseEnv class UnityAECEnv(UnityPettingzooBaseEnv, AECEnv): """ Unity AEC (PettingZoo) environment wrapper. ...
ml-agents/ml-agents-envs/mlagents_envs/envs/unity_aec_env.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/envs/unity_aec_env.py", "repo_id": "ml-agents", "token_count": 1021 }
2,038
from mlagents_envs.side_channel import SideChannel, OutgoingMessage, IncomingMessage from mlagents_envs.exception import ( UnityCommunicationException, UnitySideChannelException, ) import uuid from typing import NamedTuple, Optional from enum import IntEnum class EngineConfig(NamedTuple): width: Optional[...
ml-agents/ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py/0
{ "file_path": "ml-agents/ml-agents-envs/mlagents_envs/side_channel/engine_configuration_channel.py", "repo_id": "ml-agents", "token_count": 1978 }
2,039
from unittest import mock import pytest import numpy as np from gym import spaces from mlagents_envs.envs.unity_gym_env import UnityToGymWrapper from mlagents_envs.base_env import ( BehaviorSpec, ActionSpec, DecisionSteps, TerminalSteps, BehaviorMapping, ) from dummy_config import create_observati...
ml-agents/ml-agents-envs/tests/test_gym.py/0
{ "file_path": "ml-agents/ml-agents-envs/tests/test_gym.py", "repo_id": "ml-agents", "token_count": 4128 }
2,040
from typing import Optional _rank: Optional[int] = None def get_rank() -> Optional[int]: """ Returns the rank (in the MPI sense) of the current node. For local training, this will always be None. If this needs to be used, it should be done from outside ml-agents. :return: """ return _rank...
ml-agents/ml-agents/mlagents/torch_utils/globals.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/torch_utils/globals.py", "repo_id": "ml-agents", "token_count": 106 }
2,041
# # Unity ML-Agents Toolkit from mlagents import torch_utils import yaml import os import numpy as np import json from typing import Callable, Optional, List import mlagents.trainers import mlagents_envs from mlagents.trainers.trainer_controller import TrainerController from mlagents.trainers.environment_parameter_m...
ml-agents/ml-agents/mlagents/trainers/learn.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/learn.py", "repo_id": "ml-agents", "token_count": 4724 }
2,042
# # Unity ML-Agents Toolkit # ## ML-Agent Learning (PPO) # Contains an implementation of PPO as described in: https://arxiv.org/abs/1707.06347 from typing import cast, Type, Union, Dict, Any import numpy as np from mlagents_envs.base_env import BehaviorSpec from mlagents_envs.logging_util import get_logger from mlag...
ml-agents/ml-agents/mlagents/trainers/ppo/trainer.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/ppo/trainer.py", "repo_id": "ml-agents", "token_count": 3600 }
2,043
from unittest import mock import pytest from typing import List import mlagents.trainers.tests.mock_brain as mb import numpy as np from mlagents.trainers.agent_processor import ( AgentProcessor, AgentManager, AgentManagerQueue, ) from mlagents.trainers.action_info import ActionInfo from mlagents.trainers.to...
ml-agents/ml-agents/mlagents/trainers/tests/test_agent_processor.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_agent_processor.py", "repo_id": "ml-agents", "token_count": 6009 }
2,044
import pytest import io import os import yaml from unittest.mock import patch from mlagents.trainers.trainer import TrainerFactory from mlagents.trainers.cli_utils import load_config, _load_config from mlagents.trainers.ppo.trainer import PPOTrainer from mlagents.trainers.exception import TrainerConfigError, UnityTrai...
ml-agents/ml-agents/mlagents/trainers/tests/test_trainer_util.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_trainer_util.py", "repo_id": "ml-agents", "token_count": 2515 }
2,045
import pytest from mlagents.torch_utils import torch from mlagents.trainers.torch_entities.distributions import ( GaussianDistribution, MultiCategoricalDistribution, GaussianDistInstance, TanhGaussianDistInstance, CategoricalDistInstance, ) @pytest.mark.parametrize("tanh_squash", [True, False]) @...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_distributions.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_distributions.py", "repo_id": "ml-agents", "token_count": 2222 }
2,046
import pytest from mlagents.torch_utils import torch import numpy as np from mlagents.trainers.settings import EncoderType, ScheduleType from mlagents.trainers.torch_entities.utils import ModelUtils from mlagents.trainers.exception import UnityTrainerException from mlagents.trainers.torch_entities.encoders import Vect...
ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_utils.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_utils.py", "repo_id": "ml-agents", "token_count": 3433 }
2,047
from typing import Dict, Type from mlagents.trainers.exception import UnityTrainerException from mlagents.trainers.settings import RewardSignalSettings, RewardSignalType from mlagents.trainers.torch_entities.components.reward_providers.base_reward_provider import ( BaseRewardProvider, ) from mlagents.trainers.tor...
ml-agents/ml-agents/mlagents/trainers/torch_entities/components/reward_providers/reward_provider_factory.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/components/reward_providers/reward_provider_factory.py", "repo_id": "ml-agents", "token_count": 589 }
2,048
import numpy as np def discount_rewards(r, gamma=0.99, value_next=0.0): """ Computes discounted sum of future rewards for use in updating value estimate. :param r: List of rewards. :param gamma: Discount factor. :param value_next: T+1 value estimate for returns calculation. :return: discounted...
ml-agents/ml-agents/mlagents/trainers/trainer/trainer_utils.py/0
{ "file_path": "ml-agents/ml-agents/mlagents/trainers/trainer/trainer_utils.py", "repo_id": "ml-agents", "token_count": 649 }
2,049
import argparse from mlagents_envs.environment import UnityEnvironment from mlagents_envs.envs.unity_gym_env import UnityToGymWrapper def test_run_environment(env_name): """ Run the gym test using the specified environment :param env_name: Name of the Unity environment binary to launch """ u_env ...
ml-agents/ml-agents/tests/yamato/scripts/run_gym.py/0
{ "file_path": "ml-agents/ml-agents/tests/yamato/scripts/run_gym.py", "repo_id": "ml-agents", "token_count": 860 }
2,050
syntax = "proto3"; option csharp_namespace = "Unity.MLAgents.CommunicatorObjects"; package communicator_objects; message DemonstrationMetaProto { int32 api_version = 1; string demonstration_name = 2; int32 number_steps = 3; int32 number_episodes = 4; float mean_reward = 5; }
ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/demonstration_meta.proto/0
{ "file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/demonstration_meta.proto", "repo_id": "ml-agents", "token_count": 108 }
2,051
fileFormatVersion: 2 guid: e7f3a5adb034d684cb13cb257c29a1c3 folderAsset: yes timeCreated: 1504062948 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/Plugins/WebGL.meta/0
{ "file_path": "xLua/Assets/Plugins/WebGL.meta", "repo_id": "xLua", "token_count": 77 }
2,052
fileFormatVersion: 2 guid: 0ae08314c9c889249bbd484254109060 timeCreated: 1529661499 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Doc/Add_Remove_Lua_Lib.md.meta/0
{ "file_path": "xLua/Assets/XLua/Doc/Add_Remove_Lua_Lib.md.meta", "repo_id": "xLua", "token_count": 68 }
2,053
## C# APIs ### LuaEnv type #### object[] DoString(string chunk, string chunkName = "chuck", LuaTable env = null) Description: Executes a code block. Parameter: chunk: Lua code string; chunkName: This is used in the debug message when an error occurs, indicating a certain line in a certain code block ...
xLua/Assets/XLua/Doc/XLua_API_EN.md/0
{ "file_path": "xLua/Assets/XLua/Doc/XLua_API_EN.md", "repo_id": "xLua", "token_count": 2526 }
2,054
## 使用方式 1、打开该特性 添加HOTFIX_ENABLE宏,(在Unity3D的File->Build Setting->Scripting Define Symbols下添加)。编辑器、各手机平台这个宏要分别设置!如果是自动化打包,要注意在代码里头用API设置的宏是不生效的,需要在编辑器设置。 (建议平时开发业务代码不打开HOTFIX_ENABLE,只在build手机版本或者要在编译器下开发补丁时打开HOTFIX_ENABLE) 2、执行XLua/Generate Code菜单。 3、注入,构建手机包这个步骤会在构建时自动进行,编辑器下开发补丁需要手动执行"XLua/Hotfix Inject In Editor"...
xLua/Assets/XLua/Doc/hotfix.md/0
{ "file_path": "xLua/Assets/XLua/Doc/hotfix.md", "repo_id": "xLua", "token_count": 7355 }
2,055
fileFormatVersion: 2 guid: 2e190b5ef59b7a84dbb262cfd11f9107 timeCreated: 1478591887 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.cs.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/04_LuaObjectOrented/InvokeLua.cs.meta", "repo_id": "xLua", "token_count": 102 }
2,056
using UnityEngine; namespace XLuaTest { [XLua.Hotfix] public class StatefullTest { public StatefullTest() { } public StatefullTest(int a, int b) { if (a > 0) { return; } Debug.Log("a=" + a); ...
xLua/Assets/XLua/Examples/08_Hotfix/StatefullTest.cs/0
{ "file_path": "xLua/Assets/XLua/Examples/08_Hotfix/StatefullTest.cs", "repo_id": "xLua", "token_count": 839 }
2,057
fileFormatVersion: 2 guid: 25beaf0816ae33a43b715f68010bbfdd timeCreated: 1489377018 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/10_SignatureLoader/Resources/signatured3.lua.bytes.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/Resources/signatured3.lua.bytes.meta", "repo_id": "xLua", "token_count": 70 }
2,058
fileFormatVersion: 2 guid: 7ea057dec6022624fa54a0ccc12648ee folderAsset: yes timeCreated: 1531790017 licenseType: Free DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Examples/13_BuildFromCLI.meta/0
{ "file_path": "xLua/Assets/XLua/Examples/13_BuildFromCLI.meta", "repo_id": "xLua", "token_count": 79 }
2,059
fileFormatVersion: 2 guid: 9e05f05f4a331bc45a04832062650a9e timeCreated: 1458812943 licenseType: Pro TextScriptImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Resources/tdr/tdr.lua.txt.meta/0
{ "file_path": "xLua/Assets/XLua/Resources/tdr/tdr.lua.txt.meta", "repo_id": "xLua", "token_count": 71 }
2,060
fileFormatVersion: 2 guid: 9f94464b9267f9b4cbf2f98681e22880 folderAsset: yes timeCreated: 1479105499 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Src/Editor/LinkXmlGen.meta/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/LinkXmlGen.meta", "repo_id": "xLua", "token_count": 78 }
2,061
using UnityEngine; using System.Collections; namespace XLua { public class TemplateRef : ScriptableObject { public TextAsset LuaClassWrap; public TextAsset LuaClassWrapGCM; public TextAsset LuaDelegateBridge; public TextAsset LuaDelegateWrap; public TextAsset LuaEnumWrap...
xLua/Assets/XLua/Src/Editor/TemplateRef.cs/0
{ "file_path": "xLua/Assets/XLua/Src/Editor/TemplateRef.cs", "repo_id": "xLua", "token_count": 240 }
2,062
/* * 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/LuaFunction.cs/0
{ "file_path": "xLua/Assets/XLua/Src/LuaFunction.cs", "repo_id": "xLua", "token_count": 4322 }
2,063
#if !UNITY_WSA || UNITY_EDITOR using System.Security.Cryptography; #else using Windows.Security.Cryptography; using Windows.Security.Cryptography.Core; #endif using System; namespace XLua { public class SignatureLoader { private LuaEnv.CustomLoader userLoader; #if !UNITY_WSA || UNITY_EDITOR RS...
xLua/Assets/XLua/Src/SignatureLoader.cs/0
{ "file_path": "xLua/Assets/XLua/Src/SignatureLoader.cs", "repo_id": "xLua", "token_count": 1037 }
2,064
fileFormatVersion: 2 guid: 0b0cb24da8f1e8746b57219f9cb3d794 timeCreated: 1455872284 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Assets/XLua/Tutorial/CSharpCallLua/CSCallLua.unity.meta/0
{ "file_path": "xLua/Assets/XLua/Tutorial/CSharpCallLua/CSCallLua.unity.meta", "repo_id": "xLua", "token_count": 73 }
2,065
/* * 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/LoadLuaScript/Loader/CustomLoader.cs/0
{ "file_path": "xLua/Assets/XLua/Tutorial/LoadLuaScript/Loader/CustomLoader.cs", "repo_id": "xLua", "token_count": 678 }
2,066
using System; using System.IO; using System.Security.Cryptography; namespace XLua { public class KeyPairsGen { public static void Main(string[] args) { if (File.Exists("key_ras") || File.Exists("key_ras.pub")) { Console.WriteLine("key pairs exist...
xLua/General/Src/KeyPairsGen.cs/0
{ "file_path": "xLua/General/Src/KeyPairsGen.cs", "repo_id": "xLua", "token_count": 278 }
2,067
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft...
xLua/General/vs2013/XLuaTestGenCode.csproj/0
{ "file_path": "xLua/General/vs2013/XLuaTestGenCode.csproj", "repo_id": "xLua", "token_count": 2776 }
2,068
fileFormatVersion: 2 guid: af3706b030ae190448b7feef19dbe395 timeCreated: 1483528414 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/StreamingAssets/D.lua.meta/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/D.lua.meta", "repo_id": "xLua", "token_count": 67 }
2,069
require("ltest.init") require "libtdrlua" pkg_table = { head = { magic = 0x7FFF, msgid = 10000001, cmd = 1, version = 0, bodyLen = 0, datetime = libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"), srcIp = libtdrlua.str2tdrip("127.0.0.1"), }, body =...
xLua/Test/UnitTest/StreamingAssets/luaTdrTest.lua/0
{ "file_path": "xLua/Test/UnitTest/StreamingAssets/luaTdrTest.lua", "repo_id": "xLua", "token_count": 28881 }
2,070
#if !XLUA_GENERAL using UnityEngine; #endif using System.Collections; using System.Collections.Generic; using XLua; using System; using System.IO; public class tableValue1ClassEqual{ public int key1; public int key2; public bool key3; public List<int> tableValueInclude; } public class tableValue1ClassLess{ publ...
xLua/Test/UnitTest/xLuaTest/CSharpCallLua/CSObjectForTestCSCallLua.cs/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/CSharpCallLua/CSObjectForTestCSCallLua.cs", "repo_id": "xLua", "token_count": 1460 }
2,071
fileFormatVersion: 2 guid: 76dffed6dedc93a4a93f70367637ac20 timeCreated: 1483528414 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/CSharpCallLua/TCForTestCSCallLua.cs.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/CSharpCallLua/TCForTestCSCallLua.cs.meta", "repo_id": "xLua", "token_count": 100 }
2,072
fileFormatVersion: 2 guid: 9331fb732c3f3e34aa1642e545db60f4 folderAsset: yes timeCreated: 1483527547 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
xLua/Test/UnitTest/xLuaTest/Resources.meta/0
{ "file_path": "xLua/Test/UnitTest/xLuaTest/Resources.meta", "repo_id": "xLua", "token_count": 76 }
2,073
/* ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ ** Auxiliary functions from Lua API ** See Copyright Notice in lua.h */ #ifndef lapi_h #define lapi_h #include "llimits.h" #include "lstate.h" #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ "stack overflow");} #define adjustre...
xLua/WebGLPlugins/lapi.h/0
{ "file_path": "xLua/WebGLPlugins/lapi.h", "repo_id": "xLua", "token_count": 241 }
2,074
/* ** $Id: lfunc.c,v 2.45 2014/11/02 19:19:04 roberto Exp $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ #define lfunc_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include "lua.h" #include "lfunc.h" #include "lgc.h" #include "lmem.h" #include "lo...
xLua/WebGLPlugins/lfunc.c/0
{ "file_path": "xLua/WebGLPlugins/lfunc.c", "repo_id": "xLua", "token_count": 1688 }
2,075
/* ** $Id: lopcodes.h,v 1.149 2016/07/19 17:12:21 roberto Exp $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ #ifndef lopcodes_h #define lopcodes_h #include "llimits.h" /*=========================================================================== We assume that instructions are unsigned n...
xLua/WebGLPlugins/lopcodes.h/0
{ "file_path": "xLua/WebGLPlugins/lopcodes.h", "repo_id": "xLua", "token_count": 4249 }
2,076
/* ** $Id: lua.h,v 1.332 2016/12/22 15:51:20 roberto Exp $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file */ #ifndef lua_h #define lua_h #include <stdarg.h> #include <stddef.h> #include "luaconf.h" #define LUA_VERSION_MAJOR "5" #defi...
xLua/WebGLPlugins/lua.h/0
{ "file_path": "xLua/WebGLPlugins/lua.h", "repo_id": "xLua", "token_count": 6238 }
2,077
cmake_minimum_required(VERSION 3.6) macro(Highlight_Error error_msg) message("==================") message("Error: ${error_msg}") message("==================") message(FATAL_ERROR "") endmacro() if(NOT DEFINED ENV{ANDROID_NDK}) Highlight_Error("not defined environment variable %ANDROID_NDK%") else() set(ANDROID...
xLua/build/cmake/android.windows.toolchain.cmake/0
{ "file_path": "xLua/build/cmake/android.windows.toolchain.cmake", "repo_id": "xLua", "token_count": 10103 }
2,078
.\" $Id: luac.man,v 1.28 2006/01/06 16:03:34 lhf Exp $ .TH LUAC 1 "$Date: 2006/01/06 16:03:34 $" .SH NAME luac \- Lua compiler .SH SYNOPSIS .B luac [ .I options ] [ .I filenames ] .SH DESCRIPTION .B luac is the Lua compiler. It translates programs written in the Lua programming language into binary files that can be la...
xLua/build/lua-5.1.5/doc/luac.1/0
{ "file_path": "xLua/build/lua-5.1.5/doc/luac.1", "repo_id": "xLua", "token_count": 1041 }
2,079
/* ** $Id: lapi.c,v 2.55.1.5 2008/07/04 18:41:18 roberto Exp $ ** Lua API ** See Copyright Notice in lua.h */ #include <assert.h> #include <math.h> #include <stdarg.h> #include <string.h> #define lapi_c #define LUA_CORE #include "lua.h" #include "lapi.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #inc...
xLua/build/lua-5.1.5/src/lapi.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lapi.c", "repo_id": "xLua", "token_count": 11127 }
2,080
/* ** $Id: lgc.h,v 2.15.1.1 2007/12/27 13:02:25 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ #ifndef lgc_h #define lgc_h #include "lobject.h" /* ** Possible states of the Garbage Collector */ #define GCSpause 0 #define GCSpropagate 1 #define GCSsweepstring 2 #define GCSsweep 3 #define GCS...
xLua/build/lua-5.1.5/src/lgc.h/0
{ "file_path": "xLua/build/lua-5.1.5/src/lgc.h", "repo_id": "xLua", "token_count": 1421 }
2,081
/* ** $Id: lparser.h,v 1.57.1.1 2007/12/27 13:02:25 roberto Exp $ ** Lua Parser ** See Copyright Notice in lua.h */ #ifndef lparser_h #define lparser_h #include "llimits.h" #include "lobject.h" #include "lzio.h" /* ** Expression descriptor */ typedef enum { VVOID, /* no value */ VNIL, VTRUE, VFALSE, VK, ...
xLua/build/lua-5.1.5/src/lparser.h/0
{ "file_path": "xLua/build/lua-5.1.5/src/lparser.h", "repo_id": "xLua", "token_count": 860 }
2,082
/* ** $Id: lundump.c,v 2.7.1.4 2008/04/04 19:51:41 roberto Exp $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ #include <string.h> #define lundump_c #define LUA_CORE #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lmem.h" #include "lobject.h" #include "lstring...
xLua/build/lua-5.1.5/src/lundump.c/0
{ "file_path": "xLua/build/lua-5.1.5/src/lundump.c", "repo_id": "xLua", "token_count": 2192 }
2,083
ul { list-style-type: none ; } ul.contents { padding: 0 ; } table { border: none ; border-spacing: 0 ; border-collapse: collapse ; } td { vertical-align: top ; padding: 0 ; text-align: left ; line-height: 1.25 ; width: 15% ; }
xLua/build/lua-5.3.3/doc/index.css/0
{ "file_path": "xLua/build/lua-5.3.3/doc/index.css", "repo_id": "xLua", "token_count": 106 }
2,084
/* ** $Id: lauxlib.h,v 1.129 2015/11/23 11:29:43 roberto Exp $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ #ifndef lauxlib_h #define lauxlib_h #include <stddef.h> #include <stdio.h> #include "lua.h" /* extra error code for 'luaL_load' */ #define LUA_ERRFILE (LUA_ERR...
xLua/build/lua-5.3.3/src/lauxlib.h/0
{ "file_path": "xLua/build/lua-5.3.3/src/lauxlib.h", "repo_id": "xLua", "token_count": 3595 }
2,085
/* ** $Id: lgc.c,v 2.212 2016/03/31 19:02:03 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ #define lgc_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #include "lmem.h" #include "lobject....
xLua/build/lua-5.3.3/src/lgc.c/0
{ "file_path": "xLua/build/lua-5.3.3/src/lgc.c", "repo_id": "xLua", "token_count": 14303 }
2,086
/* ** $Id: loslib.c,v 1.64 2016/04/18 13:06:55 roberto Exp $ ** Standard Operating System library ** See Copyright Notice in lua.h */ #define loslib_c #define LUA_LIB #include "lprefix.h" #include <errno.h> #include <locale.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "lua.h" #include "la...
xLua/build/lua-5.3.3/src/loslib.c/0
{ "file_path": "xLua/build/lua-5.3.3/src/loslib.c", "repo_id": "xLua", "token_count": 4507 }
2,087
// lua.hpp // Lua header files for C++ // <<extern "C">> not supplied automatically because Lua also compiles as C++ extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" }
xLua/build/lua-5.3.3/src/lua.hpp/0
{ "file_path": "xLua/build/lua-5.3.3/src/lua.hpp", "repo_id": "xLua", "token_count": 73 }
2,088
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Lua 5.3 Reference Manual - contents</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="lua.css"> <LINK REL="stylesheet" TYPE="text/css" HREF="index.css"> <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1"> </HEAD...
xLua/build/lua-5.3.4/doc/contents.html/0
{ "file_path": "xLua/build/lua-5.3.4/doc/contents.html", "repo_id": "xLua", "token_count": 14093 }
2,089
/* ** $Id: lbitlib.c,v 1.30 2015/11/11 19:08:09 roberto Exp $ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ #define lbitlib_c #define LUA_LIB #include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #if defined(LUA_COMPAT_BITLIB) /* { */ #define pushunsig...
xLua/build/lua-5.3.4/src/lbitlib.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/lbitlib.c", "repo_id": "xLua", "token_count": 2163 }
2,090
/* ** $Id: linit.c,v 1.39 2016/12/04 20:17:24 roberto Exp $ ** Initialization of libraries for lua.c and other clients ** See Copyright Notice in lua.h */ #define linit_c #define LUA_LIB /* ** If you embed Lua in your program and need to open the standard ** libraries, call luaL_openlibs in your program. If you need...
xLua/build/lua-5.3.4/src/linit.c/0
{ "file_path": "xLua/build/lua-5.3.4/src/linit.c", "repo_id": "xLua", "token_count": 684 }
2,091
/* ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ ** Definitions for Lua code that must come before any other header file ** See Copyright Notice in lua.h */ #ifndef lprefix_h #define lprefix_h /* ** Allows POSIX/XSI stuff */ #if !defined(LUA_USE_C89) /* { */ #if !defined(_XOPEN_SOURCE) #define _XOPEN_SO...
xLua/build/lua-5.3.4/src/lprefix.h/0
{ "file_path": "xLua/build/lua-5.3.4/src/lprefix.h", "repo_id": "xLua", "token_count": 355 }
2,092
/* ** $Id: lualib.h,v 1.45 2017/01/12 17:14:26 roberto Exp $ ** Lua standard libraries ** See Copyright Notice in lua.h */ #ifndef lualib_h #define lualib_h #include "lua.h" /* version suffix for environment variable names */ #define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR LUAMOD_API i...
xLua/build/lua-5.3.4/src/lualib.h/0
{ "file_path": "xLua/build/lua-5.3.4/src/lualib.h", "repo_id": "xLua", "token_count": 561 }
2,093
h3 code { font-family: inherit ; font-size: inherit ; } pre, code { font-size: 12pt ; } span.apii { color: gray ; float: right ; font-family: inherit ; font-style: normal ; font-size: small ; } h2:before { content: "" ; padding-right: 0em ; }
xLua/build/lua-5.3.5/doc/manual.css/0
{ "file_path": "xLua/build/lua-5.3.5/doc/manual.css", "repo_id": "xLua", "token_count": 109 }
2,094
/* ** $Id: ldblib.c,v 1.151.1.1 2017/04/19 17:20:42 roberto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ #define ldblib_c #define LUA_LIB #include "lprefix.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" ...
xLua/build/lua-5.3.5/src/ldblib.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/ldblib.c", "repo_id": "xLua", "token_count": 5451 }
2,095
/* ** $Id: lmem.c,v 1.91.1.1 2017/04/19 17:20:42 roberto Exp $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ #define lmem_c #define LUA_CORE #include "lprefix.h" #include <stddef.h> #include "lua.h" #include "ldebug.h" #include "ldo.h" #include "lgc.h" #include "lmem.h" #include "lobject.h" #...
xLua/build/lua-5.3.5/src/lmem.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/lmem.c", "repo_id": "xLua", "token_count": 1065 }
2,096
/* ** $Id: ltable.c,v 2.118.1.4 2018/06/08 16:22:51 roberto Exp $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ #define ltable_c #define LUA_CORE #include "lprefix.h" /* ** Implementation of tables (aka arrays, objects, or hash tables). ** Tables keep its elements in two parts: an array part and a hash p...
xLua/build/lua-5.3.5/src/ltable.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/ltable.c", "repo_id": "xLua", "token_count": 8303 }
2,097
/* ** $Id: lzio.c,v 1.37.1.1 2017/04/19 17:20:42 roberto Exp $ ** Buffered streams ** See Copyright Notice in lua.h */ #define lzio_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "llimits.h" #include "lmem.h" #include "lstate.h" #include "lzio.h" int luaZ_fill (ZIO *z) { ...
xLua/build/lua-5.3.5/src/lzio.c/0
{ "file_path": "xLua/build/lua-5.3.5/src/lzio.c", "repo_id": "xLua", "token_count": 628 }
2,098
/* ** $Id: lapi.h $ ** Auxiliary functions from Lua API ** See Copyright Notice in lua.h */ #ifndef lapi_h #define lapi_h #include "llimits.h" #include "lstate.h" /* Increments 'L->top', checking for stack overflows */ #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ "stack overflow");...
xLua/build/lua-5.4.1/src/lapi.h/0
{ "file_path": "xLua/build/lua-5.4.1/src/lapi.h", "repo_id": "xLua", "token_count": 445 }
2,099