text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
fileFormatVersion: 2
guid: f94355fa6eab94c2d8529747b92ca3e1
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/link.xml.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/link.xml.meta",
"repo_id": "ml-agents",
"token_count": 66
} | 1,930 |
using UnityEngine;
namespace Unity.MLAgents.Actuators
{
/// <summary>
/// Editor components for creating Actuators. Generally an IActuator component should
/// have a corresponding ActuatorComponent.
/// </summary>
public abstract class ActuatorComponent : MonoBehaviour
{
/// <summary>
... | ml-agents/com.unity.ml-agents/Runtime/Actuators/ActuatorComponent.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Actuators/ActuatorComponent.cs",
"repo_id": "ml-agents",
"token_count": 331
} | 1,931 |
using UnityEngine.Profiling;
namespace Unity.MLAgents.Actuators
{
/// <summary>
/// IActuator implementation that forwards calls to an <see cref="IActionReceiver"/> and an <see cref="IHeuristicProvider"/>.
/// </summary>
internal class VectorActuator : IActuator, IBuiltInActuator
{
IActionR... | ml-agents/com.unity.ml-agents/Runtime/Actuators/VectorActuator.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Actuators/VectorActuator.cs",
"repo_id": "ml-agents",
"token_count": 1781
} | 1,932 |
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Unity.ML-Agents.Editor.Tests")]
[assembly: InternalsVisibleTo("Unity.ML-Agents.Tests")]
[assembly: InternalsVisibleTo("Unity.ML-Agents.Runtime.Sensor.Tests")]
[assembly: InternalsVisibleTo("Unity.ML-Agents.Runtime.Utils.Tests")]
[assembly: Internals... | ml-agents/com.unity.ml-agents/Runtime/AssemblyInfo.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/AssemblyInfo.cs",
"repo_id": "ml-agents",
"token_count": 281
} | 1,933 |
fileFormatVersion: 2
guid: 3a5c9d521e5ef4759a8246a07d52221e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Runtime/DecisionRequester.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/DecisionRequester.cs.meta",
"repo_id": "ml-agents",
"token_count": 97
} | 1,934 |
fileFormatVersion: 2
guid: 54959ce8e2e574f09b91f80a516acee3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Runtime/Grpc/AssemblyInfo.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/AssemblyInfo.cs.meta",
"repo_id": "ml-agents",
"token_count": 95
} | 1,935 |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mlagents_envs/communicator_objects/demonstration_meta.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Pro... | ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/DemonstrationMeta.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/DemonstrationMeta.cs",
"repo_id": "ml-agents",
"token_count": 4244
} | 1,936 |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mlagents_envs/communicator_objects/unity_output.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/UnityOutput.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityOutput.cs",
"repo_id": "ml-agents",
"token_count": 3661
} | 1,937 |
namespace Unity.MLAgents
{
/// <summary>
/// MultiAgentGroup interface for grouping agents to support multi-agent training.
/// </summary>
public interface IMultiAgentGroup
{
/// <summary>
/// Get the ID of MultiAgentGroup.
/// </summary>
/// <returns>
/// Mul... | ml-agents/com.unity.ml-agents/Runtime/IMultiAgentGroup.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/IMultiAgentGroup.cs",
"repo_id": "ml-agents",
"token_count": 320
} | 1,938 |
fileFormatVersion: 2
guid: f8f4fd0bc35f4e8f9867228591f663e3
timeCreated: 1618359419 | ml-agents/com.unity.ml-agents/Runtime/Integrations.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Integrations.meta",
"repo_id": "ml-agents",
"token_count": 42
} | 1,939 |
using System;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#else
using System.Linq;
#endif
namespace Unity.MLAgents
{
#if UNITY_EDITOR
[InitializeOnLoad]
#endif
internal static class MLAgentsSettingsManager
{
internal static event Action OnSettingsChange;
internal const string Edi... | ml-agents/com.unity.ml-agents/Runtime/MLAgentsSettingsManager.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/MLAgentsSettingsManager.cs",
"repo_id": "ml-agents",
"token_count": 1154
} | 1,940 |
fileFormatVersion: 2
guid: 8eb047b11855142d2be2cc458bef3264
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Runtime/Policies/SentisPolicy.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Policies/SentisPolicy.cs.meta",
"repo_id": "ml-agents",
"token_count": 92
} | 1,941 |
using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace Unity.MLAgents.Sensors
{
/// <summary>
/// A SensorComponent that creates a <see cref="CameraSensor"/>.
/// </summary>
[AddComponentMenu("ML Agents/Camera Sensor", (int)MenuGroup.Sensors)]
public class CameraSensorComponent... | ml-agents/com.unity.ml-agents/Runtime/Sensors/CameraSensorComponent.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/CameraSensorComponent.cs",
"repo_id": "ml-agents",
"token_count": 2483
} | 1,942 |
using System;
using System.Collections.Generic;
using Unity.Sentis;
using Unity.MLAgents.Inference;
using UnityEngine;
using DeviceType = Unity.Sentis.DeviceType;
namespace Unity.MLAgents.Sensors
{
/// <summary>
/// Allows sensors to write to both TensorProxy and float arrays/lists.
/// </summary>
publ... | ml-agents/com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs",
"repo_id": "ml-agents",
"token_count": 7336
} | 1,943 |
using System;
using UnityEngine;
namespace Unity.MLAgents.SideChannels
{
/// <summary>
/// Side channel that supports modifying attributes specific to the Unity Engine.
/// </summary>
internal class EngineConfigurationChannel : SideChannel
{
internal enum ConfigurationType : int
{
... | ml-agents/com.unity.ml-agents/Runtime/SideChannels/EngineConfigurationChannel.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/SideChannels/EngineConfigurationChannel.cs",
"repo_id": "ml-agents",
"token_count": 1370
} | 1,944 |
using System;
namespace Unity.MLAgents.SideChannels
{
/// <summary>
/// A Side Channel for sending <see cref="StatsRecorder"/> data.
/// </summary>
internal class StatsSideChannel : SideChannel
{
const string k_StatsSideChannelDefaultId = "a1d8f7b7-cec8-50f9-b78b-d3e165a78520";
/// ... | ml-agents/com.unity.ml-agents/Runtime/SideChannels/StatsSideChannel.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Runtime/SideChannels/StatsSideChannel.cs",
"repo_id": "ml-agents",
"token_count": 627
} | 1,945 |
fileFormatVersion: 2
guid: df09abf155607462ebf9ac4697220357
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Samples.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Samples.meta",
"repo_id": "ml-agents",
"token_count": 65
} | 1,946 |
fileFormatVersion: 2
guid: b9f5f87049d04d8bba39d193a3ab2f5a
timeCreated: 1596491682 | ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActuatorDiscreteActionMaskTests.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Actuators/ActuatorDiscreteActionMaskTests.cs.meta",
"repo_id": "ml-agents",
"token_count": 43
} | 1,947 |
fileFormatVersion: 2
guid: 877266b9e1bfe4330a68ab5f2da1836b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Tests/Editor/BehaviorParameterTests.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/BehaviorParameterTests.cs.meta",
"repo_id": "ml-agents",
"token_count": 96
} | 1,948 |
fileFormatVersion: 2
guid: dfe94a9d6e994f408cb97d07dd44c994
timeCreated: 1603493723 | ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/Match3SensorTests.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/Integrations/Match3/Match3SensorTests.cs.meta",
"repo_id": "ml-agents",
"token_count": 39
} | 1,949 |
fileFormatVersion: 2
guid: 016a3ac45b0345e3ab95f14ecaabdb11
timeCreated: 1583858370 | ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs.meta",
"repo_id": "ml-agents",
"token_count": 39
} | 1,950 |
fileFormatVersion: 2
guid: 589f475debcdb479295a24799777b5e5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Tests/Editor/SideChannels/SideChannelTests.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Editor/SideChannels/SideChannelTests.cs.meta",
"repo_id": "ml-agents",
"token_count": 92
} | 1,951 |
fileFormatVersion: 2
guid: fec0f6b603d3046f086e09ea2a44ed1f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ml-agents/com.unity.ml-agents/Tests/Runtime.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime.meta",
"repo_id": "ml-agents",
"token_count": 71
} | 1,952 |
using NUnit.Framework;
using System;
using System.Linq;
namespace Unity.MLAgents.Tests
{
public static class GridObsTestUtils
{
/// <summary>
/// Utility function to duplicate an array into an array of arrays
/// </summary>
/// <param name="array">array to duplicate</param>
... | ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/GridSensorTestUtils.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/GridSensorTestUtils.cs",
"repo_id": "ml-agents",
"token_count": 2030
} | 1,953 |
using NUnit.Framework;
using Unity.MLAgents.Sensors;
namespace Unity.MLAgents.Tests
{
public static class SensorTestHelper
{
public static void CompareObservation(ISensor sensor, float[] expected)
{
string errorMessage;
bool isOK = SensorHelper.CompareObservation(sensor,... | ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/SensorTestHelper.cs/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Sensor/SensorTestHelper.cs",
"repo_id": "ml-agents",
"token_count": 284
} | 1,954 |
fileFormatVersion: 2
guid: 329ca71a721948a9a64a7b3b48604058
timeCreated: 1616137640 | ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/TestClasses.cs.meta/0 | {
"file_path": "ml-agents/com.unity.ml-agents/Tests/Runtime/Utils/TestClasses.cs.meta",
"repo_id": "ml-agents",
"token_count": 41
} | 1,955 |
behaviors:
Visual3DBall:
trainer_type: ppo
hyperparameters:
batch_size: 256
buffer_size: 2560
learning_rate: 0.0003
beta: 0.005
epsilon: 0.2
lambd: 0.95
num_epoch: 3
learning_rate_schedule: linear
network_settings:
normalize: false
hidden_units: ... | ml-agents/config/ppo/Visual3DBall.yaml/0 | {
"file_path": "ml-agents/config/ppo/Visual3DBall.yaml",
"repo_id": "ml-agents",
"token_count": 270
} | 1,956 |
behaviors:
BigWallJump:
trainer_type: sac
hyperparameters:
learning_rate: 0.0003
learning_rate_schedule: constant
batch_size: 128
buffer_size: 200000
buffer_init_steps: 0
tau: 0.005
steps_per_update: 20.0
save_replay_buffer: false
init_entcoef: 0.1
r... | ml-agents/config/sac/WallJump.yaml/0 | {
"file_path": "ml-agents/config/sac/WallJump.yaml",
"repo_id": "ml-agents",
"token_count": 613
} | 1,957 |
# Installation
The ML-Agents Toolkit contains several components:
- Unity package ([`com.unity.ml-agents`](../com.unity.ml-agents/)) contains the
Unity C# SDK that will be integrated into your Unity project. This package contains
a sample to help you get started with ML-Agents.
- Unity package
([`com.unity.ml-... | ml-agents/docs/Installation.md/0 | {
"file_path": "ml-agents/docs/Installation.md",
"repo_id": "ml-agents",
"token_count": 2937
} | 1,958 |
# Profiling in Python
As part of the ML-Agents Toolkit, we provide a lightweight profiling system, in
order to identity hotspots in the training process and help spot regressions
from changes.
Timers are hierarchical, meaning that the time tracked in a block of code can be
further split into other blocks if desired. ... | ml-agents/docs/Profiling-Python.md/0 | {
"file_path": "ml-agents/docs/Profiling-Python.md",
"repo_id": "ml-agents",
"token_count": 700
} | 1,959 |
# Training on Microsoft Azure (works with ML-Agents Toolkit v0.3)
:warning: **Note:** We no longer use this guide ourselves and so it may not work
correctly. We've decided to keep it up just in case it is helpful to you.
This page contains instructions for setting up training on Microsoft Azure
through either
[Azure ... | ml-agents/docs/Training-on-Microsoft-Azure.md/0 | {
"file_path": "ml-agents/docs/Training-on-Microsoft-Azure.md",
"repo_id": "ml-agents",
"token_count": 2507
} | 1,960 |
# Начало работы
В данной статье мы разберем шаг за шагом один из [наших примеров](https://github.com/Unity-Technologies/ml-agents/blob/main/docs/Learning-Environment-Examples.md),
обучим в нем искусственный интеллект (агента - Agent) и применим
полученную модель в Unity сцене (scene). После прочтения статьи, вы сможет... | ml-agents/localized_docs/RU/docs/Начало работы.md/0 | {
"file_path": "ml-agents/localized_docs/RU/docs/Начало работы.md",
"repo_id": "ml-agents",
"token_count": 11733
} | 1,961 |
# 安装和设置
为了安装和使用 ML-Agents,您需要安装 Unity,克隆这个代码仓库,
并安装 Python 以及其他所依赖的库。下面的每个小节
都会概述每个步骤,此外还会介绍尚在测试阶段的 Docker 的配置方法。
## 安装 **Unity 2017.1** 或更高版本
[下载](https://store.unity.com/download) 并安装 Unity。如果您想
使用我们的 Docker 设置(稍后介绍),请确保在安装 Unity 时选择
_Linux Build Support_ 组件。
<p align="center">
<img src="images/unity_linux_bu... | ml-agents/localized_docs/zh-CN/docs/Installation.md/0 | {
"file_path": "ml-agents/localized_docs/zh-CN/docs/Installation.md",
"repo_id": "ml-agents",
"token_count": 1390
} | 1,962 |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mlagents_envs/communicator_objects/agent_info.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 googl... | ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.py",
"repo_id": "ml-agents",
"token_count": 2420
} | 1,963 |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mlagents_envs/communicator_objects/unity_rl_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 _message
from g... | ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.py",
"repo_id": "ml-agents",
"token_count": 3140
} | 1,964 |
class UnityException(Exception):
"""
Any error related to ml-agents environment.
"""
pass
class UnityEnvironmentException(UnityException):
"""
Related to errors starting and closing environment.
"""
pass
class UnityCommunicationException(UnityException):
"""
Related to erro... | ml-agents/ml-agents-envs/mlagents_envs/exception.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/exception.py",
"repo_id": "ml-agents",
"token_count": 520
} | 1,965 |
from typing import List
import struct
from mlagents_envs.logging_util import get_logger
logger = get_logger(__name__)
class OutgoingMessage:
"""
Utility class for forming the message that is written to a SideChannel.
All data is written in little-endian format using the struct module.
"""
def _... | ml-agents/ml-agents-envs/mlagents_envs/side_channel/outgoing_message.py/0 | {
"file_path": "ml-agents/ml-agents-envs/mlagents_envs/side_channel/outgoing_message.py",
"repo_id": "ml-agents",
"token_count": 840
} | 1,966 |
import io
import numpy as np
import pytest
from typing import List, Tuple, Any
from mlagents_envs.communicator_objects.agent_info_pb2 import AgentInfoProto
from mlagents_envs.communicator_objects.observation_pb2 import (
ObservationProto,
NONE,
PNG,
)
from mlagents_envs.communicator_objects.brain_parameter... | ml-agents/ml-agents-envs/tests/test_rpc_utils.py/0 | {
"file_path": "ml-agents/ml-agents-envs/tests/test_rpc_utils.py",
"repo_id": "ml-agents",
"token_count": 8464
} | 1,967 |
import sys
import numpy as np
from typing import List, Dict, TypeVar, Generic, Tuple, Any, Union
from collections import defaultdict, Counter
import queue
from mlagents.torch_utils import torch
from mlagents_envs.base_env import (
ActionTuple,
DecisionSteps,
DecisionStep,
TerminalSteps,
TerminalSte... | ml-agents/ml-agents/mlagents/trainers/agent_processor.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/agent_processor.py",
"repo_id": "ml-agents",
"token_count": 8833
} | 1,968 |
from mlagents.trainers.optimizer.optimizer import Optimizer # noqa
| ml-agents/ml-agents/mlagents/trainers/optimizer/__init__.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/optimizer/__init__.py",
"repo_id": "ml-agents",
"token_count": 20
} | 1,969 |
# ## ML-Agent Learning (SAC)
# Contains an implementation of SAC as described in https://arxiv.org/abs/1801.01290
# and implemented in https://github.com/hill-a/stable-baselines
from typing import cast
import numpy as np
from mlagents_envs.logging_util import get_logger
from mlagents_envs.base_env import BehaviorSpe... | ml-agents/ml-agents/mlagents/trainers/sac/trainer.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/sac/trainer.py",
"repo_id": "ml-agents",
"token_count": 2740
} | 1,970 |
import numpy as np
from mlagents.trainers.tests.mock_brain import make_fake_trajectory
from mlagents.trainers.tests.dummy_config import create_observation_specs_with_shapes
from mlagents.trainers.trajectory import GroupObsUtil
from mlagents_envs.base_env import ActionSpec
from mlagents.trainers.buffer import AgentBuff... | ml-agents/ml-agents/mlagents/trainers/tests/test_trajectory.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/test_trajectory.py",
"repo_id": "ml-agents",
"token_count": 1372
} | 1,971 |
from mlagents.torch_utils import torch
from mlagents.trainers.torch_entities.layers import (
Swish,
linear_layer,
lstm_layer,
Initialization,
LSTM,
LayerNorm,
)
def test_swish():
layer = Swish()
input_tensor = torch.Tensor([[1, 2, 3], [4, 5, 6]])
target_tensor = torch.mul(input_te... | ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_layers.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/tests/torch_entities/test_layers.py",
"repo_id": "ml-agents",
"token_count": 1127
} | 1,972 |
from typing import List, Optional, NamedTuple
from mlagents.torch_utils import torch
import numpy as np
from mlagents.trainers.torch_entities.utils import ModelUtils
from mlagents.trainers.buffer import AgentBuffer, BufferKey
from mlagents_envs.base_env import _ActionTupleBase
class LogProbsTuple(_ActionTupleBase):
... | ml-agents/ml-agents/mlagents/trainers/torch_entities/action_log_probs.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/action_log_probs.py",
"repo_id": "ml-agents",
"token_count": 1832
} | 1,973 |
import abc
from typing import List
from mlagents.torch_utils import torch, nn
import numpy as np
import math
from mlagents.trainers.torch_entities.layers import linear_layer, Initialization
EPSILON = 1e-7 # Small value to avoid divide by zero
class DistInstance(nn.Module, abc.ABC):
@abc.abstractmethod
def s... | ml-agents/ml-agents/mlagents/trainers/torch_entities/distributions.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/torch_entities/distributions.py",
"repo_id": "ml-agents",
"token_count": 3706
} | 1,974 |
from typing import List, NamedTuple
import numpy as np
from mlagents.trainers.buffer import (
AgentBuffer,
ObservationKeyPrefix,
AgentBufferKey,
BufferKey,
)
from mlagents_envs.base_env import ActionTuple
from mlagents.trainers.torch_entities.action_log_probs import LogProbsTuple
class AgentStatus(Na... | ml-agents/ml-agents/mlagents/trainers/trajectory.py/0 | {
"file_path": "ml-agents/ml-agents/mlagents/trainers/trajectory.py",
"repo_id": "ml-agents",
"token_count": 5401
} | 1,975 |
import argparse
import json
import os
import shutil
import sys
import subprocess
import time
from .yamato_utils import (
find_executables,
get_base_path,
get_base_output_path,
run_standalone_build,
init_venv,
override_config_file,
checkout_csharp_version,
undo_git_checkout,
)
def run_... | ml-agents/ml-agents/tests/yamato/training_int_tests.py/0 | {
"file_path": "ml-agents/ml-agents/tests/yamato/training_int_tests.py",
"repo_id": "ml-agents",
"token_count": 2777
} | 1,976 |
syntax = "proto3";
option csharp_namespace = "Unity.MLAgents.CommunicatorObjects";
package communicator_objects;
enum SpaceTypeProto {
discrete = 0;
continuous = 1;
}
| ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/space_type.proto/0 | {
"file_path": "ml-agents/protobuf-definitions/proto/mlagents_envs/communicator_objects/space_type.proto",
"repo_id": "ml-agents",
"token_count": 63
} | 1,977 |
#!/usr/bin/env python3
import os
import subprocess
import sys
import yaml
import argparse
import hashlib
# pydoc-markdown -I . -m module_name --render_toc > doc.md
def hash_file(filename):
"""
Calculate the md5 hash of a file. Used to check for stale files.
:param filename: The name of the file to chec... | ml-agents/utils/generate_markdown_docs.py/0 | {
"file_path": "ml-agents/utils/generate_markdown_docs.py",
"repo_id": "ml-agents",
"token_count": 1482
} | 1,978 |
fileFormatVersion: 2
guid: 038a89637b659e346a7a712ce0c9271b
timeCreated: 1451443249
licenseType: Pro
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Android:
enabled: 1
settings:
CPU: x86
Any:
enabled: 0
settings: {}
... | xLua/Assets/Plugins/Android/libs/x86/libxlua.so.meta/0 | {
"file_path": "xLua/Assets/Plugins/Android/libs/x86/libxlua.so.meta",
"repo_id": "xLua",
"token_count": 196
} | 1,979 |
fileFormatVersion: 2
guid: 27cd65c4cc42b42f49caa94f462466de
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
... | xLua/Assets/Plugins/arm64/libxlua.dylib.meta/0 | {
"file_path": "xLua/Assets/Plugins/arm64/libxlua.dylib.meta",
"repo_id": "xLua",
"token_count": 550
} | 1,980 |
fileFormatVersion: 2
guid: e6a34038df77e48438826b6ff94aa69e
folderAsset: yes
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Android:
enabled: 0
settings:
CPU: AnyCPU
Any:
enabled: 0
settings: {}
Editor:
enabled... | xLua/Assets/Plugins/xlua.bundle.meta/0 | {
"file_path": "xLua/Assets/Plugins/xlua.bundle.meta",
"repo_id": "xLua",
"token_count": 517
} | 1,981 |
fileFormatVersion: 2
guid: b9173d38911503c4a9a371b0760bdd15
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
| xLua/Assets/XLua/Examples/02_U3DScripting/LuaBehaviour.cs.meta/0 | {
"file_path": "xLua/Assets/XLua/Examples/02_U3DScripting/LuaBehaviour.cs.meta",
"repo_id": "xLua",
"token_count": 70
} | 1,982 |
/*
* 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/05_NoGc/NoGc.cs/0 | {
"file_path": "xLua/Assets/XLua/Examples/05_NoGc/NoGc.cs",
"repo_id": "xLua",
"token_count": 3878
} | 1,983 |
fileFormatVersion: 2
guid: 7bf24e9d2076ecd4ba65687e9d238c34
DefaultImporter:
userData:
| xLua/Assets/XLua/Examples/10_SignatureLoader/SignatureLoaderTest.unity.meta/0 | {
"file_path": "xLua/Assets/XLua/Examples/10_SignatureLoader/SignatureLoaderTest.unity.meta",
"repo_id": "xLua",
"token_count": 40
} | 1,984 |
fileFormatVersion: 2
guid: ac2f50d02ed9ec24b8fcc1921bfb244c
folderAsset: yes
DefaultImporter:
userData:
| xLua/Assets/XLua/Src.meta/0 | {
"file_path": "xLua/Assets/XLua/Src.meta",
"repo_id": "xLua",
"token_count": 46
} | 1,985 |
fileFormatVersion: 2
guid: 384feb229d259f549bbbac9e910b782b
timeCreated: 1481621844
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:
| xLua/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta/0 | {
"file_path": "xLua/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta",
"repo_id": "xLua",
"token_count": 69
} | 1,986 |
/*
* 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/GenericDelegateBridge.cs/0 | {
"file_path": "xLua/Assets/XLua/Src/GenericDelegateBridge.cs",
"repo_id": "xLua",
"token_count": 3955
} | 1,987 |
fileFormatVersion: 2
guid: 058caabe60eee6042957d66b04c9a634
folderAsset: yes
timeCreated: 1456111197
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| xLua/Assets/XLua/Tutorial/LuaCallCSharp.meta/0 | {
"file_path": "xLua/Assets/XLua/Tutorial/LuaCallCSharp.meta",
"repo_id": "xLua",
"token_count": 75
} | 1,988 |

[](https://github.com/Tencent/xLua/blob/master/LICENSE.TXT)
[](https://github.com/Tencent/xLua/releases)
[ 2016 THL A29 Limited, a Tencent company. All rights reserved.
*Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
... | xLua/build/i64lib.h/0 | {
"file_path": "xLua/build/i64lib.h",
"repo_id": "xLua",
"token_count": 433
} | 1,995 |
<HTML>
<HEAD>
<TITLE>Lua documentation</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="lua.css">
</HEAD>
<BODY>
<HR>
<H1>
<A HREF="http://www.lua.org/"><IMG SRC="logo.gif" ALT="Lua" BORDER=0></A>
Documentation
</H1>
This is the documentation included in the source distribution of Lua 5.1.5.
<UL>
<LI><A HREF="c... | xLua/build/lua-5.1.5/doc/readme.html/0 | {
"file_path": "xLua/build/lua-5.1.5/doc/readme.html",
"repo_id": "xLua",
"token_count": 363
} | 1,996 |
/*
** $Id: lbaselib.c,v 1.191.1.6 2008/02/14 16:46:22 roberto Exp $
** Basic library
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lbaselib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
/*
** If your syst... | xLua/build/lua-5.1.5/src/lbaselib.c/0 | {
"file_path": "xLua/build/lua-5.1.5/src/lbaselib.c",
"repo_id": "xLua",
"token_count": 7672
} | 1,997 |
/*
** $Id: llex.h,v 1.58.1.1 2007/12/27 13:02:25 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
#ifndef llex_h
#define llex_h
#include "lobject.h"
#include "lzio.h"
#define FIRST_RESERVED 257
/* maximum length of a reserved word */
#define TOKEN_LEN (sizeof("function")/sizeof(char))
/*
* W... | xLua/build/lua-5.1.5/src/llex.h/0 | {
"file_path": "xLua/build/lua-5.1.5/src/llex.h",
"repo_id": "xLua",
"token_count": 901
} | 1,998 |
/*
** $Id: lstring.h,v 1.43.1.1 2007/12/27 13:02:25 roberto Exp $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/
#ifndef lstring_h
#define lstring_h
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"
#define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char... | xLua/build/lua-5.1.5/src/lstring.h/0 | {
"file_path": "xLua/build/lua-5.1.5/src/lstring.h",
"repo_id": "xLua",
"token_count": 392
} | 1,999 |
/*
** $Id: lzio.c,v 1.31.1.1 2007/12/27 13:02:25 roberto Exp $
** a generic input stream interface
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lzio_c
#define LUA_CORE
#include "lua.h"
#include "llimits.h"
#include "lmem.h"
#include "lstate.h"
#include "lzio.h"
int luaZ_fill (ZIO *z) {
size_... | xLua/build/lua-5.1.5/src/lzio.c/0 | {
"file_path": "xLua/build/lua-5.1.5/src/lzio.c",
"repo_id": "xLua",
"token_count": 731
} | 2,000 |
.\" $Id: luac.man,v 1.29 2011/11/16 13:53:40 lhf Exp $
.TH LUAC 1 "$Date: 2011/11/16 13:53:40 $"
.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 containing pre... | xLua/build/lua-5.3.3/doc/luac.1/0 | {
"file_path": "xLua/build/lua-5.3.3/doc/luac.1",
"repo_id": "xLua",
"token_count": 888
} | 2,001 |
/*
** $Id: lctype.c,v 1.12 2014/11/02 19:19:04 roberto Exp $
** 'ctype' functions for Lua
** See Copyright Notice in lua.h
*/
#define lctype_c
#define LUA_CORE
#include "lprefix.h"
#include "lctype.h"
#if !LUA_USE_CTYPE /* { */
#include <limits.h>
LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
0x00, /... | xLua/build/lua-5.3.4/src/lctype.c/0 | {
"file_path": "xLua/build/lua-5.3.4/src/lctype.c",
"repo_id": "xLua",
"token_count": 1562
} | 2,002 |
/*
** $Id: llimits.h,v 1.141 2015/11/19 19:16:22 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"
/*
** 'lu_mem' and 'l_mem' are unsigned/signed... | xLua/build/lua-5.3.4/src/llimits.h/0 | {
"file_path": "xLua/build/lua-5.3.4/src/llimits.h",
"repo_id": "xLua",
"token_count": 3103
} | 2,003 |
/*
** $Id: lstring.h,v 1.61 2015/11/03 15:36:01 roberto Exp $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/
#ifndef lstring_h
#define lstring_h
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"
#define sizelstring(l) (sizeof(union UTString) + ((l) + 1) * sizeof(char)... | xLua/build/lua-5.3.4/src/lstring.h/0 | {
"file_path": "xLua/build/lua-5.3.4/src/lstring.h",
"repo_id": "xLua",
"token_count": 635
} | 2,004 |
/*
** $Id: lvm.c,v 2.268 2016/02/05 19:59:14 roberto Exp $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#define lvm_c
#define LUA_CORE
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ld... | xLua/build/lua-5.3.4/src/lvm.c/0 | {
"file_path": "xLua/build/lua-5.3.4/src/lvm.c",
"repo_id": "xLua",
"token_count": 21427
} | 2,005 |
# Makefile for building Lua
# See ../doc/readme.html for installation and customization instructions.
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
# Your platform. See PLATS for possible values.
PLAT= none
CC= gcc -std=gnu99
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $... | xLua/build/lua-5.3.5/src/Makefile/0 | {
"file_path": "xLua/build/lua-5.3.5/src/Makefile",
"repo_id": "xLua",
"token_count": 3625
} | 2,006 |
/*
** $Id: ldo.h,v 2.29.1.1 2017/04/19 17:20:42 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#ifndef ldo_h
#define ldo_h
#include "lobject.h"
#include "lstate.h"
#include "lzio.h"
/*
** Macro to check stack size and grow stack if needed. Parameters
** 'pre'/'pos' allow the ... | xLua/build/lua-5.3.5/src/ldo.h/0 | {
"file_path": "xLua/build/lua-5.3.5/src/ldo.h",
"repo_id": "xLua",
"token_count": 910
} | 2,007 |
/*
** $Id: lobject.h,v 2.117.1.1 2017/04/19 17:39:34 roberto Exp $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
#ifndef lobject_h
#define lobject_h
#include <stdarg.h>
#include "llimits.h"
#include "lua.h"
/*
** Extra tags for non-values
*/
#define LUA_TPROTO LUA_NUMTAGS /* function ... | xLua/build/lua-5.3.5/src/lobject.h/0 | {
"file_path": "xLua/build/lua-5.3.5/src/lobject.h",
"repo_id": "xLua",
"token_count": 5903
} | 2,008 |
/*
** $Id: ltm.h,v 2.22.1.1 2017/04/19 17:20:42 roberto Exp $
** Tag methods
** See Copyright Notice in lua.h
*/
#ifndef ltm_h
#define ltm_h
#include "lobject.h"
/*
* WARNING: if you change the order of this enumeration,
* grep "ORDER TM" and "ORDER OP"
*/
typedef enum {
TM_INDEX,
TM_NEWINDEX,
TM_GC,
TM_MO... | xLua/build/lua-5.3.5/src/ltm.h/0 | {
"file_path": "xLua/build/lua-5.3.5/src/ltm.h",
"repo_id": "xLua",
"token_count": 937
} | 2,009 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Lua 5.4 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.4.1/doc/contents.html/0 | {
"file_path": "xLua/build/lua-5.4.1/doc/contents.html",
"repo_id": "xLua",
"token_count": 15397
} | 2,010 |
/*
** $Id: lcode.c $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
#define lcode_c
#define LUA_CORE
#include "lprefix.h"
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include "lua.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "llex.h"
#include "l... | xLua/build/lua-5.4.1/src/lcode.c/0 | {
"file_path": "xLua/build/lua-5.4.1/src/lcode.c",
"repo_id": "xLua",
"token_count": 21928
} | 2,011 |
/*
** $Id: lparser.h $
** Lua Parser
** See Copyright Notice in lua.h
*/
#ifndef lparser_h
#define lparser_h
#include "llimits.h"
#include "lobject.h"
#include "lzio.h"
/*
** Expression and variable descriptor.
** Code generation for variables and expressions can be delayed to allow
** optimizations; An 'expdesc' s... | xLua/build/lua-5.4.1/src/lparser.h/0 | {
"file_path": "xLua/build/lua-5.4.1/src/lparser.h",
"repo_id": "xLua",
"token_count": 2129
} | 2,012 |
/*
** $Id: luaconf.h $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
#ifndef luaconf_h
#define luaconf_h
#include <limits.h>
#include <stddef.h>
/*
** ===================================================================
** General Configuration File for Lua
**
** Some definitions here can be cha... | xLua/build/lua-5.4.1/src/luaconf.h.in/0 | {
"file_path": "xLua/build/lua-5.4.1/src/luaconf.h.in",
"repo_id": "xLua",
"token_count": 7328
} | 2,013 |
/* 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.
*/
body {
font-family: serif;
font-size: 11pt;
margin: 0 3em;
padding: 0;
border: none;
}
a:link, a:visited, a:hov... | xLua/build/luajit-2.1.0b2/doc/bluequad-print.css/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/doc/bluequad-print.css",
"repo_id": "xLua",
"token_count": 1063
} | 2,014 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Running LuaJIT</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Mike Pall">
<meta name="Copyright" content="Copyright (C) 2005-2016, Mike Pall">
<m... | xLua/build/luajit-2.1.0b2/doc/running.html/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/doc/running.html",
"repo_id": "xLua",
"token_count": 4960
} | 2,015 |
# Package information for LuaJIT to be used by pkg-config.
majver=2
minver=1
relver=0
version=${majver}.${minver}.${relver}-beta2
abiver=5.1
prefix=/usr/local
multilib=lib
exec_prefix=${prefix}
libdir=${exec_prefix}/${multilib}
libname=luajit-${abiver}
includedir=${prefix}/include/luajit-${majver}.${minver}
INSTALL_L... | xLua/build/luajit-2.1.0b2/etc/luajit.pc/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/etc/luajit.pc",
"repo_id": "xLua",
"token_count": 249
} | 2,016 |
/*
** Library initialization.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
**
** Major parts taken verbatim from the Lua interpreter.
** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h
*/
#define lib_init_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"
#includ... | xLua/build/luajit-2.1.0b2/src/lib_init.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lib_init.c",
"repo_id": "xLua",
"token_count": 616
} | 2,017 |
/*
** MIPS 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_mips.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_asm_mips.h",
"repo_id": "xLua",
"token_count": 34038
} | 2,018 |
/*
** C type conversions.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#include "lj_obj.h"
#if LJ_HASFFI
#include "lj_err.h"
#include "lj_tab.h"
#include "lj_ctype.h"
#include "lj_cdata.h"
#include "lj_cconv.h"
#include "lj_ccallback.h"
/* -- Conversion errors --------------------------... | xLua/build/luajit-2.1.0b2/src/lj_cconv.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_cconv.c",
"repo_id": "xLua",
"token_count": 11317
} | 2,019 |
/*
** LuaJIT common internal definitions.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#ifndef _LJ_DEF_H
#define _LJ_DEF_H
#include "lua.h"
#if defined(_MSC_VER)
/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
typedef __int8 int8_t;
typedef __int16 int16_t;
typed... | xLua/build/luajit-2.1.0b2/src/lj_def.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_def.h",
"repo_id": "xLua",
"token_count": 4850
} | 2,020 |
/*
** Garbage collector.
** 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-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h
*/
#define lj_gc_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_gc.h"... | xLua/build/luajit-2.1.0b2/src/lj_gc.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_gc.c",
"repo_id": "xLua",
"token_count": 11908
} | 2,021 |
/*
** Metamethod handling.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
**
** Portions taken verbatim or adapted from the Lua interpreter.
** Copyright (C) 1994-2008 Lua.org, PUC-Rio. See Copyright Notice in lua.h
*/
#define lj_meta_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_gc.h"
#... | xLua/build/luajit-2.1.0b2/src/lj_meta.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_meta.c",
"repo_id": "xLua",
"token_count": 7706
} | 2,022 |
/*
** Trace recorder (bytecode -> SSA IR).
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#ifndef _LJ_RECORD_H
#define _LJ_RECORD_H
#include "lj_obj.h"
#include "lj_jit.h"
#if LJ_HASJIT
/* Context for recording an indexed load/store. */
typedef struct RecordIndex {
TValue tabv; /* Runti... | xLua/build/luajit-2.1.0b2/src/lj_record.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_record.h",
"repo_id": "xLua",
"token_count": 661
} | 2,023 |
/*
** Definitions for ARM64 CPUs.
** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h
*/
#ifndef _LJ_TARGET_ARM64_H
#define _LJ_TARGET_ARM64_H
/* -- Registers IDs ------------------------------------------------------- */
#define GPRDEF(_) \
_(X0) _(X1) _(X2) _(X3) _(X4) _(X5) _(X6) _(X7) \
_(... | xLua/build/luajit-2.1.0b2/src/lj_target_arm64.h/0 | {
"file_path": "xLua/build/luajit-2.1.0b2/src/lj_target_arm64.h",
"repo_id": "xLua",
"token_count": 1567
} | 2,024 |
<!DOCTYPE html>
<html>
<head>
<title>Profiler</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="pr... | xLua/build/luajit-2.1.0b3/doc/ext_profiler.html/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/doc/ext_profiler.html",
"repo_id": "xLua",
"token_count": 4547
} | 2,025 |
------------------------------------------------------------------------------
-- DynASM MIPS64 module.
--
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- This module just sets 64 bi... | xLua/build/luajit-2.1.0b3/dynasm/dasm_mips64.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/dynasm/dasm_mips64.lua",
"repo_id": "xLua",
"token_count": 108
} | 2,026 |
The files in this directory are only used during the build process of LuaJIT.
For cross-compilation, they must be executed on the host, not on the target.
These files should NOT be installed!
| xLua/build/luajit-2.1.0b3/src/host/README/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/host/README",
"repo_id": "xLua",
"token_count": 47
} | 2,027 |
----------------------------------------------------------------------------
-- LuaJIT ARM64BE 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_arm64be.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/jit/dis_arm64be.lua",
"repo_id": "xLua",
"token_count": 119
} | 2,028 |
/*
** Public Lua/C API.
** 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_api_c
#define LUA_CORE
#include "lj_obj.h"
#include "lj_gc.h"... | xLua/build/luajit-2.1.0b3/src/lj_api.c/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/lj_api.c",
"repo_id": "xLua",
"token_count": 16055
} | 2,029 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.