text stringlengths 7 35.3M | id stringlengths 11 185 | metadata dict | __index_level_0__ int64 0 2.14k |
|---|---|---|---|
|// Low-level VM code for ARM64 CPUs.
|// Bytecode interpreter, fast functions and helper functions.
|// Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
|
|.arch arm64
|.section code_op, code_sub
|
|.actionlist build_actionlist
|.globals GLOB_
|.globalnames globnames
|.externnames extnames
|
|// Not... | xLua/build/luajit-2.1.0b3/src/vm_arm64.dasc/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/vm_arm64.dasc",
"repo_id": "xLua",
"token_count": 60887
} | 1,983 |
local x = [=[
local ffi = require "ffi"
ffi.cdef [[
#line 100
typedef Int xxx
]]
]=]
local function foo()
loadstring(x)()
end
local r, e = pcall(foo)
assert(string.find(e, "declaration specifier expected near 'Int' at line 100") ~= nil)
| xLua/build/luajit-2.1.0b3/src/x64/test/unit/ffi/test_line_directive.lua/0 | {
"file_path": "xLua/build/luajit-2.1.0b3/src/x64/test/unit/ffi/test_line_directive.lua",
"repo_id": "xLua",
"token_count": 102
} | 1,984 |
/*=========================================================================*\
* LuaSocket toolkit
* Networking support for the Lua language
* Diego Nehab
* 26/11/1999
*
* This library is part of an effort to progressively increase the network
* connectivity of the Lua language. The Lua interface to networking
*... | xLua/build/luasocket/luasocket.c/0 | {
"file_path": "xLua/build/luasocket/luasocket.c",
"repo_id": "xLua",
"token_count": 1284
} | 1,985 |
/*=========================================================================*\
* UDP object
* LuaSocket toolkit
\*=========================================================================*/
#include <string.h>
#include <stdlib.h>
#include "lua.h"
#include "lauxlib.h"
#include "auxiliar.h"
#include "socket.h"
#include ... | xLua/build/luasocket/udp.c/0 | {
"file_path": "xLua/build/luasocket/udp.c",
"repo_id": "xLua",
"token_count": 6129
} | 1,986 |
mkdir -p build_linux32 && cd build_linux32
cmake -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32 ../
cd ..
cmake --build build_linux32 --config Release
| xLua/build/make_linux32_lua53.sh/0 | {
"file_path": "xLua/build/make_linux32_lua53.sh",
"repo_id": "xLua",
"token_count": 78
} | 1,987 |
mkdir build64 & pushd build64
cmake -G "Visual Studio 16 2019" -A x64 ..
popd
cmake --build build64 --config Release
md plugin_lua53\Plugins\x86_64
copy /Y build64\Release\xlua.dll plugin_lua53\Plugins\x86_64\xlua.dll
pause | xLua/build/make_win64_lua53.bat/0 | {
"file_path": "xLua/build/make_win64_lua53.bat",
"repo_id": "xLua",
"token_count": 84
} | 1,988 |
body,
footer,
header,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
text-align center {
-webkit-text-size-adjust: none;
color: #3d9cff;
}
body,
button,
input,
select,
textarea,
ol,
p,
blockquote,
dl,
dt,
dd,
... | xLua/docs/public/css/index.css/0 | {
"file_path": "xLua/docs/public/css/index.css",
"repo_id": "xLua",
"token_count": 2130
} | 1,989 |
$path = Split-Path -Parent $MyInvocation.MyCommand.Definition
rm $path/node_modules/highlight.js/lib/languages/cs.js
cp $path/patch/highlight.js/lib/languages/cs.js $path/node_modules/highlight.js/lib/languages/cs.js | xLua/docs/source/patch.ps1/0 | {
"file_path": "xLua/docs/source/patch.ps1",
"repo_id": "xLua",
"token_count": 79
} | 1,990 |
---
title: 更新记录
type: guide
order: 1
---
## 更新记录
> 这份文档等待您进行完善 | xLua/docs/source/src/v1/guide/version.md/0 | {
"file_path": "xLua/docs/source/src/v1/guide/version.md",
"repo_id": "xLua",
"token_count": 67
} | 1,991 |
/*
(C) 2021 David Lettier
lettier.com
*/
#version 150
uniform sampler2D colorTexture;
uniform vec2 enabled;
uniform vec2 mouseFocusPoint;
out vec4 fragColor;
void main() {
float redOffset = 0.009;
float greenOffset = 0.006;
float blueOffset = -0.006;
vec2 texSize = textureSize(colorTexture, 0).x... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/chromatic-aberration.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/chromatic-aberration.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 269
} | 0 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
#define MAX_SIZE 4
#define MAX_KERNEL_SIZE ((MAX_SIZE * 2 + 1) * (MAX_SIZE * 2 + 1))
#define MAX_BINS_SIZE 10
uniform sampler2D colorTexture;
uniform vec2 parameters;
out vec4 fragColor;
void main() {
vec2 texSize = textureSize(colorTexture, 0)... | 3d-game-shaders-for-beginners/demonstration/shaders/fragment/median-filter.frag/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/fragment/median-filter.frag",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 886
} | 1 |
/*
(C) 2019 David Lettier
lettier.com
*/
#version 150
uniform mat4 p3d_ModelViewProjectionMatrix;
in vec4 p3d_Vertex;
void main()
{
gl_Position = p3d_ModelViewProjectionMatrix * p3d_Vertex;
}
| 3d-game-shaders-for-beginners/demonstration/shaders/vertex/basic.vert/0 | {
"file_path": "3d-game-shaders-for-beginners/demonstration/shaders/vertex/basic.vert",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 85
} | 2 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/dilation.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/dilation.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 6318
} | 3 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="description" content="Interested in adding textures, lighting, shadows, normal maps, glowi... | 3d-game-shaders-for-beginners/docs/posterization.html/0 | {
"file_path": "3d-game-shaders-for-beginners/docs/posterization.html",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 4927
} | 4 |
[:arrow_backward:](rim-lighting.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](normal-mapping.md)
# 3D Game Shaders For Beginners
## Cel Shading
<p align="center">
<img src="https://i.imgur.com/W80Ke1y.gif" alt="Cel Shaded" title="Cel Shaded">
</p>
Cel... | 3d-game-shaders-for-beginners/sections/cel-shading.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/cel-shading.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 1068
} | 5 |
[:arrow_backward:](flow-mapping.md)
[:arrow_double_up:](../README.md)
[:arrow_up_small:](#)
[:arrow_down_small:](#copyright)
[:arrow_forward:](depth-of-field.md)
# 3D Game Shaders For Beginners
## Outlining
<p align="center">
<img src="https://i.imgur.com/EKaZRkR.gif" alt="Outlined Scene" title="Outlined Scene">
</p... | 3d-game-shaders-for-beginners/sections/outlining.md/0 | {
"file_path": "3d-game-shaders-for-beginners/sections/outlining.md",
"repo_id": "3d-game-shaders-for-beginners",
"token_count": 2827
} | 6 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_WorldSimApiBase_hpp
#define air_WorldSimApiBase_hpp
#include "common/CommonStructs.hpp"
#include "common/ImageCaptureBase.hpp"
namespace msr
{
namespace airlib
{
class WorldSimApiBase
{
public:
... | AirSim/AirLib/include/api/WorldSimApiBase.hpp/0 | {
"file_path": "AirSim/AirLib/include/api/WorldSimApiBase.hpp",
"repo_id": "AirSim",
"token_count": 3027
} | 7 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib__PidController_hpp
#define msr_airlib__PidController_hpp
#include <chrono>
namespace msr
{
namespace airlib
{
// This class implements a pid controller.
// First call setPoint to set the desire... | AirSim/AirLib/include/common/PidController.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/PidController.hpp",
"repo_id": "AirSim",
"token_count": 1211
} | 8 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef common_utils_MedianFilter_hpp
#define common_utils_MedianFilter_hpp
#include <vector>
#include <algorithm>
#include <tuple>
namespace common_utils
{
template <typename T>
class MedianFilter
{
private:
std::ve... | AirSim/AirLib/include/common/common_utils/MedianFilter.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/common_utils/MedianFilter.hpp",
"repo_id": "AirSim",
"token_count": 1199
} | 9 |
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 3.10.5
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2022 Niels Lohmann <http:... | AirSim/AirLib/include/common/common_utils/json.hpp/0 | {
"file_path": "AirSim/AirLib/include/common/common_utils/json.hpp",
"repo_id": "AirSim",
"token_count": 397411
} | 10 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef air_IGeoFence_hpp
#define air_IGeoFence_hpp
#include "common/Common.hpp"
namespace msr
{
namespace airlib
{
class IGeoFence
{
public:
virtual void setBoundry(const Vector3r& origin, float xy_l... | AirSim/AirLib/include/safety/IGeoFence.hpp/0 | {
"file_path": "AirSim/AirLib/include/safety/IGeoFence.hpp",
"repo_id": "AirSim",
"token_count": 265
} | 11 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_ImuBase_hpp
#define msr_airlib_ImuBase_hpp
#include "sensors/SensorBase.hpp"
namespace msr
{
namespace airlib
{
class ImuBase : public SensorBase
{
public:
ImuBase(const std::string... | AirSim/AirLib/include/sensors/imu/ImuBase.hpp/0 | {
"file_path": "AirSim/AirLib/include/sensors/imu/ImuBase.hpp",
"repo_id": "AirSim",
"token_count": 602
} | 12 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_MultiRotorParameters_hpp
#define msr_airlib_MultiRotorParameters_hpp
#include "common/Common.hpp"
#include "RotorParams.hpp"
#include "sensors/SensorCollection.hpp"
#include "sensors/SensorFactory.hpp"
#... | AirSim/AirLib/include/vehicles/multirotor/MultiRotorParams.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/MultiRotorParams.hpp",
"repo_id": "AirSim",
"token_count": 13913
} | 13 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef msr_airlib_AirSimSimpleFlightBoard_hpp
#define msr_airlib_AirSimSimpleFlightBoard_hpp
#include <exception>
#include <vector>
#include "firmware/interfaces/IBoard.hpp"
#include "firmware/Params.hpp"
#include "common... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/AirSimSimpleFlightBoard.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/AirSimSimpleFlightBoard.hpp",
"repo_id": "AirSim",
"token_count": 1900
} | 14 |
#pragma once
#include <cstdlib>
#include <algorithm>
#include "interfaces/CommonStructs.hpp"
#include "interfaces/IPidIntegrator.hpp"
#include "StdPidIntegrator.hpp"
#include "RungKuttaPidIntegrator.hpp"
namespace simple_flight
{
template <class T>
class PidController : public IUpdatable
{
public:
PidController(... | AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/PidController.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/PidController.hpp",
"repo_id": "AirSim",
"token_count": 1470
} | 15 |
#pragma once
#include "IUpdatable.hpp"
#include "CommonStructs.hpp"
namespace simple_flight
{
class IGoal
{
public:
virtual const Axis4r& getGoalValue() const = 0;
virtual const GoalMode& getGoalMode() const = 0;
virtual ~IGoal() = default;
};
} //namespace
| AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IGoal.hpp/0 | {
"file_path": "AirSim/AirLib/include/vehicles/multirotor/firmwares/simple_flight/firmware/interfaces/IGoal.hpp",
"repo_id": "AirSim",
"token_count": 105
} | 16 |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AirSim.props))\AirSim.props" />
<PropertyGroup>
<ShowAllFiles>true</Show... | AirSim/AirLibUnitTests/AirLibUnitTests.vcxproj/0 | {
"file_path": "AirSim/AirLibUnitTests/AirLibUnitTests.vcxproj",
"repo_id": "AirSim",
"token_count": 6130
} | 17 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
// includes needed to call RPC APIs
#include "common/common_utils/StrictMode.hpp"
STRICT_MODE_OFF
#ifndef RPCLIB_MSGPACK
#define RPCLIB_MSGPACK clmdep_msgpack
#endif // !RPCLIB_MSGPACK
#include "rpc/rpc_error.... | AirSim/Examples/DepthNav/DepthNav.hpp/0 | {
"file_path": "AirSim/Examples/DepthNav/DepthNav.hpp",
"repo_id": "AirSim",
"token_count": 8195
} | 18 |
using LogViewer.Utilities;
using Microsoft.Networking;
using Microsoft.Networking.Mavlink;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Ta... | AirSim/LogViewer/LogViewer/Controls/ChannelSelector.xaml.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/ChannelSelector.xaml.cs",
"repo_id": "AirSim",
"token_count": 10902
} | 19 |
<UserControl x:Class="LogViewer.Controls.SimpleLineChart"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://... | AirSim/LogViewer/LogViewer/Controls/SimpleLineChart.xaml/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Controls/SimpleLineChart.xaml",
"repo_id": "AirSim",
"token_count": 1475
} | 20 |
using LogViewer.Controls;
using LogViewer.Utilities;
using MissionPlanner.Log;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace LogViewer.Model
{
p... | AirSim/LogViewer/LogViewer/Model/Px4DataLog.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Model/Px4DataLog.cs",
"repo_id": "AirSim",
"token_count": 16474
} | 21 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Threading;
namespace LogViewer.Utilities
{
class ProgressUtility
{
ProgressBar bar;
DispatcherTimer prog... | AirSim/LogViewer/LogViewer/Utilities/ProgressUtility.cs/0 | {
"file_path": "AirSim/LogViewer/LogViewer/Utilities/ProgressUtility.cs",
"repo_id": "AirSim",
"token_count": 1302
} | 22 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MavLinkCom", "MavLinkCom.vcxproj", "{8510C7A4-BF63-41D2-94F6-D8731D137A5A}"
EndProject
Project("{8BC9CEB8-8B... | AirSim/MavLinkCom/MavLinkCom.sln/0 | {
"file_path": "AirSim/MavLinkCom/MavLinkCom.sln",
"repo_id": "AirSim",
"token_count": 1585
} | 23 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef MavLinkCom_AsyncResult_hpp
#define MavLinkCom_AsyncResult_hpp
#include "Semaphore.hpp"
#include <functional>
#include <chrono>
#include <memory>
#include <string>
#include <future>
namespace mavlinkcom
{
template... | AirSim/MavLinkCom/include/AsyncResult.hpp/0 | {
"file_path": "AirSim/MavLinkCom/include/AsyncResult.hpp",
"repo_id": "AirSim",
"token_count": 1651
} | 24 |
/** @file
* @brief MAVLink comm protocol built from common.xml
* @see http://mavlink.org
*/
#pragma once
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_IDX 1
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
#endif
#ifndef MAVLINK_ENDIAN
#define MAVLINK_ENDIAN MAVLINK_LITTLE_ENDIAN
#endif
#ifndef MA... | AirSim/MavLinkCom/mavlink/common/mavlink.h/0 | {
"file_path": "AirSim/MavLinkCom/mavlink/common/mavlink.h",
"repo_id": "AirSim",
"token_count": 261
} | 25 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkNode.hpp"
#include "impl/MavLinkNodeImpl.hpp"
#include "AsyncResult.hpp"
using namespace mavlinkcom;
using namespace mavlinkcom_impl;
MavLinkNode::MavLinkNode(int localSystemId, int localComponentId)
... | AirSim/MavLinkCom/src/MavLinkNode.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/MavLinkNode.cpp",
"repo_id": "AirSim",
"token_count": 969
} | 26 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "Utils.hpp"
#include "MavLinkVehicleImpl.hpp"
#include "MavLinkConnection.hpp"
#include "../serial_com/SerialPort.hpp"
#include "../serial_com/UdpClientPort.hpp"
#include <exception>
#include <cstring>
using namesp... | AirSim/MavLinkCom/src/impl/MavLinkVehicleImpl.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/impl/MavLinkVehicleImpl.cpp",
"repo_id": "AirSim",
"token_count": 16320
} | 27 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "Utils.hpp"
#include "UdpClientPort.hpp"
#include <stdio.h>
#include <string.h>
#include "SocketInit.hpp"
#include "wifi.h"
using namespace mavlink_utils;
#ifdef _WIN32
// windows
#ifndef WIN32_LEAN_AND_MEAN
#def... | AirSim/MavLinkCom/src/serial_com/UdpClientPort.cpp/0 | {
"file_path": "AirSim/MavLinkCom/src/serial_com/UdpClientPort.cpp",
"repo_id": "AirSim",
"token_count": 5106
} | 28 |
import setup_path
import airsim
import pprint
import time
# connect to the AirSim simulator
client = airsim.CarClient()
client.confirmConnection()
client.enableApiControl(True)
car_controls = airsim.CarControls()
client.reset()
client.simPrintLogMessage("Hello", "345", 2)
# go forward
car_controls.throttle = 0.5... | AirSim/PythonClient/car/car_collision.py/0 | {
"file_path": "AirSim/PythonClient/car/car_collision.py",
"repo_id": "AirSim",
"token_count": 407
} | 29 |
# In settings.json first activate computer vision mode:
# https://github.com/Microsoft/AirSim/blob/main/docs/image_apis.md#computer-vision-mode
import setup_path
import airsim
import pprint
import tempfile
import os
import time
pp = pprint.PrettyPrinter(indent=4)
client = airsim.VehicleClient()
airsim.wait_key('... | AirSim/PythonClient/computer_vision/cv_capture.py/0 | {
"file_path": "AirSim/PythonClient/computer_vision/cv_capture.py",
"repo_id": "AirSim",
"token_count": 872
} | 30 |
.. airsim documentation master file, created by
sphinx-quickstart on Sun Aug 4 14:58:26 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
airsim
=========================================
This page documents `airsim`_, the python package to be... | AirSim/PythonClient/docs/index.rst/0 | {
"file_path": "AirSim/PythonClient/docs/index.rst",
"repo_id": "AirSim",
"token_count": 379
} | 31 |
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
from keras.models import load_model
import sys
import time
import numpy as np
import airsim
import keras.backend as K
from keras.preprocessing import image
from PIL import Image, ImageDraw
import matplotlib.pyplot as plt
# Trained model path
MO... | AirSim/PythonClient/imitation_learning/drive_model.py/0 | {
"file_path": "AirSim/PythonClient/imitation_learning/drive_model.py",
"repo_id": "AirSim",
"token_count": 803
} | 32 |
import setup_path
import airsim
client = airsim.MultirotorClient()
client.confirmConnection()
client.enableApiControl(True)
client.armDisarm(True)
landed = client.getMultirotorState().landed_state
if landed == airsim.LandedState.Landed:
print("already landed...")
else:
print("landing...")
client.landAsyn... | AirSim/PythonClient/multirotor/land.py/0 | {
"file_path": "AirSim/PythonClient/multirotor/land.py",
"repo_id": "AirSim",
"token_count": 134
} | 33 |
# Support
This page has moved [here](https://github.com/microsoft/AirSim/blob/main/docs/SUPPORT.md).
| AirSim/SUPPORT.md/0 | {
"file_path": "AirSim/SUPPORT.md",
"repo_id": "AirSim",
"token_count": 35
} | 34 |
#include "SimModeBase.h"
#include "common/ScalableClock.hpp"
#include "common/SteppableClock.hpp"
#include "common/EarthCelestial.hpp"
#include "../PInvokeWrapper.h"
#include "../WorldSimApi.h"
SimModeBase::SimModeBase(int port_number)
: port_number_(port_number)
{
}
void SimModeBase::BeginPlay()
{
debug_repo... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/SimMode/SimModeBase.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/SimMode/SimModeBase.cpp",
"repo_id": "AirSim",
"token_count": 3424
} | 35 |
#include "CarPawnApi.h"
#include "../../PInvokeWrapper.h"
CarPawnApi::CarPawnApi(const msr::airlib::Kinematics::State* pawn_kinematics,
const std::string car_name, msr::airlib::CarApiBase* vehicle_api)
: pawn_kinematics_(pawn_kinematics), car_name_(car_name), vehicle_api_(vehicle_api)
{
}
v... | AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Car/CarPawnApi.cpp/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/Source/Vehicles/Car/CarPawnApi.cpp",
"repo_id": "AirSim",
"token_count": 583
} | 36 |
macro(BuildAirLib)
include_directories(
${AIRSIM_ROOT}/AirLib/
${AIRSIM_ROOT}/AirLib/include
${AIRSIM_ROOT}/MavLinkCom/include
${RPC_LIB_INCLUDES}
)
file(GLOB_RECURSE AIRLIB_LIBRARY_SOURCE_FILES
${AIRSIM_ROOT}/AirLib/src/api/*.cpp
${AIRSIM_ROOT}/AirLib/src/common/common_utils/*.cpp
${AIRSIM_ROOT}/AirLib/... | AirSim/Unity/AirLibWrapper/AirsimWrapper/cmake/airlib-setup.cmake/0 | {
"file_path": "AirSim/Unity/AirLibWrapper/AirsimWrapper/cmake/airlib-setup.cmake",
"repo_id": "AirSim",
"token_count": 210
} | 37 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Window1RenderTexture
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/RenderTexture/Window1RenderTexture.renderTexture/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Materials/RenderTexture/Window1RenderTexture.renderTexture",
"repo_id": "AirSim",
"token_count": 312
} | 38 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1486571770885466}
m_IsPrefabParent: ... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/CaptureCameras.prefab/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Prefabs/CaptureCameras.prefab",
"repo_id": "AirSim",
"token_count": 6156
} | 39 |
fileFormatVersion: 2
guid: 4f94f1489f5742c4ca7028300be3e3be
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/AirSimGlobal.cs.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/AirSimGlobal.cs.meta",
"repo_id": "AirSim",
"token_count": 95
} | 40 |
fileFormatVersion: 2
guid: 139ec25cc0cda5c4c871c24dd32fb56c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities.meta",
"repo_id": "AirSim",
"token_count": 70
} | 41 |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using AirSimUnity.DroneStructs;
using AirSimUnity.CarStructs;
using UnityEngine;
namespace AirSimUnity {
/*
* An implementation of IAirSimInterface, facilitating calls from Unity to AirLib.
* And also a bridge for the ... | AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Vehicles/VehicleCompanion.cs/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Vehicles/VehicleCompanion.cs",
"repo_id": "AirSim",
"token_count": 4107
} | 42 |
fileFormatVersion: 2
guid: 3f62a4352612bbe4cae5c3510fc88dfb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather/WeatherFX.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/AirSimAssets/Weather/WeatherFX.meta",
"repo_id": "AirSim",
"token_count": 70
} | 43 |
fileFormatVersion: 2
guid: 48447221fb4a8864dbedfeed703bf275
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| AirSim/Unity/UnityDemo/Assets/Scenes/CarDemo.unity.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Scenes/CarDemo.unity.meta",
"repo_id": "AirSim",
"token_count": 59
} | 44 |
fileFormatVersion: 2
guid: 6ec41f7c0e0d3fb40933551a4124b211
NativeFormatImporter:
userData:
assetBundleName:
| AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials/SkyCarBodyWhite.mat.meta/0 | {
"file_path": "AirSim/Unity/UnityDemo/Assets/Standard Assets/Vehicles/Car/Materials/SkyCarBodyWhite.mat.meta",
"repo_id": "AirSim",
"token_count": 50
} | 45 |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!13 &1
InputManager:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Axes:
- serializedVersion: 3
m_Name: Horizontal
descriptiveName:
descriptiveNegativeName:
negativeButton: left
positiveButton: right
altNegativeButton: a
altPositiveButto... | AirSim/Unity/UnityDemo/ProjectSettings/InputManager.asset/0 | {
"file_path": "AirSim/Unity/UnityDemo/ProjectSettings/InputManager.asset",
"repo_id": "AirSim",
"token_count": 2978
} | 46 |
#! /bin/bash
# get path of current script: https://stackoverflow.com/a/39340259/207661
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null
set -e
set +x
rm -rf linux-build
popd >/dev/null
| AirSim/Unity/clean.sh/0 | {
"file_path": "AirSim/Unity/clean.sh",
"repo_id": "AirSim",
"token_count": 102
} | 47 |
setlocal
del /q gen_temp.txt
powershell -command "& { (Get-ItemProperty 'Registry::HKEY_CLASSES_ROOT\Unreal.ProjectFile\shell\rungenproj' -Name 'Icon' ).'Icon' } > gen_temp.tmp"
type gen_temp.tmp > gen_temp.txt
set /p gen_bin=<gen_temp.txt
del /q gen_temp.tmp
del /q gen_temp.txt
for %%f in (*.uproject) do (
echo Gene... | AirSim/Unreal/Environments/Blocks/GenerateProjectFiles.bat/0 | {
"file_path": "AirSim/Unreal/Environments/Blocks/GenerateProjectFiles.bat",
"repo_id": "AirSim",
"token_count": 157
} | 48 |
#pragma once
#include "CoreMinimal.h"
#include "Kismet/KismetMathLibrary.h"
#include "GameFramework/Actor.h"
#include "common/Common.hpp"
/*
Note on coordinate system
-------------------------
We have following coordinate systems:
(1) UU or Unreal Units or Unreal Coordinate system
(2) Global NED: ... | AirSim/Unreal/Plugins/AirSim/Source/NedTransform.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/NedTransform.h",
"repo_id": "AirSim",
"token_count": 899
} | 49 |
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "SimHUDWidget.h"
#include "SimMode/SimModeBase.h"
#include "PIPCamera.h"
#include "api/ApiServerBase.hpp"
#include <memory>
#include "SimHUD.generated.h"
UENUM(BlueprintType)
enum class ESimulatorMode : uint8
{
SIM_MODE_HIL UMETA(Displa... | AirSim/Unreal/Plugins/AirSim/Source/SimHUD/SimHUD.h/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/SimHUD/SimHUD.h",
"repo_id": "AirSim",
"token_count": 747
} | 50 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "UnrealDistanceSensor.h"
#include "AirBlueprintLib.h"
#include "common/Common.hpp"
#include "NedTransform.h"
UnrealDistanceSensor::UnrealDistanceSensor(const AirSimSettings::DistanceSetting& setting,
... | AirSim/Unreal/Plugins/AirSim/Source/UnrealSensors/UnrealDistanceSensor.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/UnrealSensors/UnrealDistanceSensor.cpp",
"repo_id": "AirSim",
"token_count": 476
} | 51 |
#include "SimModeCar.h"
#include "UObject/ConstructorHelpers.h"
#include "AirBlueprintLib.h"
#include "common/AirSimSettings.hpp"
#include "CarPawnSimApi.h"
#include "AirBlueprintLib.h"
#include "common/Common.hpp"
#include "common/EarthUtils.hpp"
#include "vehicles/car/api/CarRpcLibServer.hpp"
extern CORE_API uint32... | AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/SimModeCar.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/Vehicles/Car/SimModeCar.cpp",
"repo_id": "AirSim",
"token_count": 1739
} | 52 |
#include "WorldSimApi.h"
#include "common/common_utils/Utils.hpp"
#include "AirBlueprintLib.h"
#include "TextureShuffleActor.h"
#include "common/common_utils/Utils.hpp"
#include "Weather/WeatherLib.h"
#include "DrawDebugHelpers.h"
#include "Runtime/Engine/Classes/Components/LineBatchComponent.h"
#include "Runtime/Engin... | AirSim/Unreal/Plugins/AirSim/Source/WorldSimApi.cpp/0 | {
"file_path": "AirSim/Unreal/Plugins/AirSim/Source/WorldSimApi.cpp",
"repo_id": "AirSim",
"token_count": 19948
} | 53 |
@echo off
REM //---------- set up variable ----------
setlocal
set ROOT_DIR=%~dp0
REM // Check command line arguments
set "noFullPolyCar="
set "buildMode="
REM //check VS version
if "%VisualStudioVersion%" == "" (
echo(
echo oh oh... You need to run this command from x64 Native Tools Command Prompt for VS 202... | AirSim/build.cmd/0 | {
"file_path": "AirSim/build.cmd",
"repo_id": "AirSim",
"token_count": 3491
} | 54 |
# Support
We highly recommend to take a look at source code and contribute to the project. Due to large number of incoming feature request we may not be able to get to your request in your desired timeframe. So please [contribute](CONTRIBUTING.md) :).
* [Ask in Discussions](https://github.com/microsoft/AirSim/discuss... | AirSim/docs/SUPPORT.md/0 | {
"file_path": "AirSim/docs/SUPPORT.md",
"repo_id": "AirSim",
"token_count": 132
} | 55 |
# How to Create Issue or Ask Question Effectively
AirSim is open source project and contributors like you keeps it going. It is important to respect contributors time and effort when you are asking a question or filing an issue. Your chances of receiving helpful response would increase if you follow below guidelines:
... | AirSim/docs/create_issue.md/0 | {
"file_path": "AirSim/docs/create_issue.md",
"repo_id": "AirSim",
"token_count": 308
} | 56 |
# pfm Format
Pfm (or Portable FloatMap) image format stores image as floating point pixels and hence are not restricted to usual 0-255 pixel value range. This is useful for HDR images or images that describes something other than colors like depth.
One of the good viewer to view this file format is [PfmPad](https://... | AirSim/docs/pfm.md/0 | {
"file_path": "AirSim/docs/pfm.md",
"repo_id": "AirSim",
"token_count": 198
} | 57 |
# simple_flight
If you don't know what the flight controller does, see [What is Flight Controller?](flight_controller.md).
AirSim has a built-in flight controller called simple_flight and it is used by default. You don't need to do anything to use or configure it. AirSim also supports [PX4](px4_setup.md) as another... | AirSim/docs/simple_flight.md/0 | {
"file_path": "AirSim/docs/simple_flight.md",
"repo_id": "AirSim",
"token_count": 1306
} | 58 |
#! /bin/bash
# get path of current script: https://stackoverflow.com/a/39340259/207661
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null
set -e
set -x
#confirm unreal install directory
UnrealDir=$1
if [[ !(-z "UnrealDir") ]]; then
UnrealDir="$SCRIPT_DIR/UnrealEngine"
fi
... | AirSim/install_unreal.sh/0 | {
"file_path": "AirSim/install_unreal.sh",
"repo_id": "AirSim",
"token_count": 334
} | 59 |
<launch>
<!-- global params -->
<!-- PID position controller node -->
<node name="pid_position_node" pkg="airsim_ros_pkgs" type="pd_position_controller_simple_node" output="screen">
<param name="update_control_every_n_sec" type="double" value="0.01" /> <!-- this needs to be in sync with airsim_ros_wrapper? ... | AirSim/ros/src/airsim_ros_pkgs/launch/position_controller_simple.launch/0 | {
"file_path": "AirSim/ros/src/airsim_ros_pkgs/launch/position_controller_simple.launch",
"repo_id": "AirSim",
"token_count": 409
} | 60 |
#include <airsim_ros_wrapper.h>
#include <boost/make_shared.hpp>
// #include <pluginlib/class_list_macros.h>
// PLUGINLIB_EXPORT_CLASS(AirsimROSWrapper, nodelet::Nodelet)
#include "common/AirSimSettings.hpp"
#include <tf2_sensor_msgs/tf2_sensor_msgs.h>
constexpr char AirsimROSWrapper::CAM_YML_NAME[];
constexpr char Ai... | AirSim/ros/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp/0 | {
"file_path": "AirSim/ros/src/airsim_ros_pkgs/src/airsim_ros_wrapper.cpp",
"repo_id": "AirSim",
"token_count": 32660
} | 61 |
<launch>
<node type="rviz" name="rviz" pkg="rviz" args="-d $(find airsim_tutorial_pkgs)/launch/front_stereo_and_center_mono/default.rviz" />
</launch> | AirSim/ros/src/airsim_tutorial_pkgs/launch/front_stereo_and_center_mono/rviz.launch/0 | {
"file_path": "AirSim/ros/src/airsim_tutorial_pkgs/launch/front_stereo_and_center_mono/rviz.launch",
"repo_id": "AirSim",
"token_count": 66
} | 62 |
geometry_msgs/Twist twist | AirSim/ros2/src/airsim_interfaces/msg/VelCmd.msg/0 | {
"file_path": "AirSim/ros2/src/airsim_interfaces/msg/VelCmd.msg",
"repo_id": "AirSim",
"token_count": 9
} | 63 |
#ifndef _PID_POSITION_CONTROLLER_SIMPLE_H_
#define _PID_POSITION_CONTROLLER_SIMPLE_H_
#include "common/common_utils/StrictMode.hpp"
STRICT_MODE_OFF //todo what does this do?
#ifndef RPCLIB_MSGPACK
#define RPCLIB_MSGPACK clmdep_msgpack
#endif // !RPCLIB_MSGPACK
#include "rpc/rpc_error.h"
STRICT_MODE_ON
#include "c... | AirSim/ros2/src/airsim_ros_pkgs/include/pd_position_controller_simple.h/0 | {
"file_path": "AirSim/ros2/src/airsim_ros_pkgs/include/pd_position_controller_simple.h",
"repo_id": "AirSim",
"token_count": 1952
} | 64 |
#!/usr/bin/env bash
set -x
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd "$SCRIPT_DIR" >/dev/null
downloadHighPolySuv=true
MIN_CMAKE_VERSION=3.10.0
# On macOS, make sure we have a CMake that will support CMAKE_APPLE_SILICON_PROCESSOR.
if [ "$(uname)" == "Darwin" ]; then
MIN_CMAKE_VE... | AirSim/setup.sh/0 | {
"file_path": "AirSim/setup.sh",
"repo_id": "AirSim",
"token_count": 2880
} | 65 |
// LzBinTree.cs
using System;
namespace SevenZip.Compression.LZ
{
public class BinTree : InWindow, IMatchFinder
{
UInt32 _cyclicBufferPos;
UInt32 _cyclicBufferSize = 0;
UInt32 _matchMaxLen;
UInt32[] _son;
UInt32[] _hash;
UInt32 _cutValue = 0xFF;
UInt32 _hashMask;
UInt32 _hashSizeSum = 0;
bool H... | AssetStudio/AssetStudio/7zip/Compress/LZ/LzBinTree.cs/0 | {
"file_path": "AssetStudio/AssetStudio/7zip/Compress/LZ/LzBinTree.cs",
"repo_id": "AssetStudio",
"token_count": 4397
} | 66 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public sealed class Animation : Behaviour
{
public PPtr<AnimationClip>[] m_Animations;
public Animation(ObjectReader reader) : base(reader)
{
var m_Animation = new... | AssetStudio/AssetStudio/Classes/Animation.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/Animation.cs",
"repo_id": "AssetStudio",
"token_count": 286
} | 67 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public sealed class MeshFilter : Component
{
public PPtr<Mesh> m_Mesh;
public MeshFilter(ObjectReader reader) : base(reader)
{
m_Mesh = new PPtr<Mesh>(reader);
... | AssetStudio/AssetStudio/Classes/MeshFilter.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/MeshFilter.cs",
"repo_id": "AssetStudio",
"token_count": 141
} | 68 |
using System;
using System.Collections.Generic;
namespace AssetStudio
{
public class SpriteAtlasData
{
public PPtr<Texture2D> texture;
public PPtr<Texture2D> alphaTexture;
public Rectf textureRect;
public Vector2 textureRectOffset;
public Vector2 atlasRectOffset;
... | AssetStudio/AssetStudio/Classes/SpriteAtlas.cs/0 | {
"file_path": "AssetStudio/AssetStudio/Classes/SpriteAtlas.cs",
"repo_id": "AssetStudio",
"token_count": 1372
} | 69 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
{
public enum LoggerEvent
{
Verbose,
Debug,
Info,
Warning,
Error,
}
public interface ILogger
{
void Log(LoggerEvent loggerEvent, string messa... | AssetStudio/AssetStudio/ILogger.cs/0 | {
"file_path": "AssetStudio/AssetStudio/ILogger.cs",
"repo_id": "AssetStudio",
"token_count": 196
} | 70 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace AssetStudio
{
public class SerializedFile
{
public AssetsManager assetsManager;
public FileReader reader;
public string fullName;
public string or... | AssetStudio/AssetStudio/SerializedFile.cs/0 | {
"file_path": "AssetStudio/AssetStudio/SerializedFile.cs",
"repo_id": "AssetStudio",
"token_count": 8014
} | 71 |
#pragma once
#include <fbxsdk.h>
#include "bool32_t.h"
struct AsFbxAnimContext
{
FbxAnimCurveFilterUnroll* lFilter;
FbxAnimStack* lAnimStack;
FbxAnimLayer* lAnimLayer;
FbxAnimCurve* lCurveSX;
FbxAnimCurve* lCurveSY;
FbxAnimCurve* lCurveSZ;
FbxAnimCurve* lCurveRX;
FbxAnimCurve* lCurveRY;
FbxAnimCurve* lCu... | AssetStudio/AssetStudioFBXNative/asfbx_anim_context.h/0 | {
"file_path": "AssetStudio/AssetStudioFBXNative/asfbx_anim_context.h",
"repo_id": "AssetStudio",
"token_count": 282
} | 72 |
namespace AssetStudio.FbxInterop
{
internal static class FbxDll
{
internal const string DllName = "AssetStudioFBXNative";
internal const string FbxsdkDllName = "libfbxsdk";
}
}
| AssetStudio/AssetStudioFBXWrapper/FbxDll.cs/0 | {
"file_path": "AssetStudio/AssetStudioFBXWrapper/FbxDll.cs",
"repo_id": "AssetStudio",
"token_count": 89
} | 73 |
using FMOD;
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace AssetStudio
{
public class AudioClipConverter
{
private AudioClip m_AudioClip;
public AudioClipConverter(AudioClip audioClip)
{
m_AudioClip = audioClip;
}
public b... | AssetStudio/AssetStudioUtility/AudioClipConverter.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/AudioClipConverter.cs",
"repo_id": "AssetStudio",
"token_count": 4284
} | 74 |
namespace AssetStudio
{
public enum ImageFormat
{
Jpeg,
Png,
Bmp,
Tga
}
}
| AssetStudio/AssetStudioUtility/ImageFormat.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/ImageFormat.cs",
"repo_id": "AssetStudio",
"token_count": 73
} | 75 |
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using Mono.Cecil;
namespace Unity.CecilTools
{
static public class ElementType
{
public static TypeReference For(TypeReference byRefT... | AssetStudio/AssetStudioUtility/Unity.CecilTools/ElementType.cs/0 | {
"file_path": "AssetStudio/AssetStudioUtility/Unity.CecilTools/ElementType.cs",
"repo_id": "AssetStudio",
"token_count": 231
} | 76 |
#include "bcn.h"
#include <stdint.h>
#include <assert.h>
#include <algorithm>
#include "color.h"
#include "fp16.h"
static inline void decode_bc1_block(const uint8_t* data, uint32_t* outbuf) {
uint8_t r0, g0, b0, r1, g1, b1;
int q0 = *(uint16_t*)(data);
int q1 = *(uint16_t*)(data + 2);
rgb565_le(q0, &r0, &g0, &b0);... | AssetStudio/Texture2DDecoderNative/bcn.cpp/0 | {
"file_path": "AssetStudio/Texture2DDecoderNative/bcn.cpp",
"repo_id": "AssetStudio",
"token_count": 20811
} | 77 |
#pragma once
#ifndef FP16_FP16_H
#define FP16_FP16_H
#if defined(__cplusplus) && (__cplusplus >= 201103L)
#include <cstdint>
#include <cmath>
#elif !defined(__OPENCL_VERSION__)
#include <stdint.h>
#include <math.h>
#endif
#ifdef _MSC_VER
#include <intrin.h>
#endif
#include "fp16/bitcasts.h"
/*
* Convert a 16... | AssetStudio/Texture2DDecoderNative/fp16/fp16.h/0 | {
"file_path": "AssetStudio/Texture2DDecoderNative/fp16/fp16.h",
"repo_id": "AssetStudio",
"token_count": 7654
} | 78 |
# Single-threaded asynchronous
The previous examples are multi-threaded implementations of asynchrony, but asynchrony is obviously not just multi-threaded. We used Sleep in the previous examples to achieve time waiting, each timer needs to use a thread, which will lead to frequent thread switching, this implementation ... | ET/Book/2.3Single-threaded asynchronous.md/0 | {
"file_path": "ET/Book/2.3Single-threaded asynchronous.md",
"repo_id": "ET",
"token_count": 2333
} | 79 |
using System;
using System.Threading;
using CommandLine;
namespace ET
{
public class Init
{
public void Start()
{
try
{
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
{
Log.Error(e.ExceptionObject.ToString());
};
// 命令行参数
Parser.Default.ParseArguments<Options>(S... | ET/DotNet/Loader/Init.cs/0 | {
"file_path": "ET/DotNet/Loader/Init.cs",
"repo_id": "ET",
"token_count": 451
} | 80 |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace ET.Analyzer
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class DisableNormalClassDeclaratonInModelAssembl... | ET/Share/Analyzer/Analyzer/DisableNormalClassDeclaratonInModelAssemblyAnalyzer.cs/0 | {
"file_path": "ET/Share/Analyzer/Analyzer/DisableNormalClassDeclaratonInModelAssemblyAnalyzer.cs",
"repo_id": "ET",
"token_count": 937
} | 81 |
using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp... | ET/Share/Analyzer/CodeFixer/EntityFiledAccessCodeFixProvider.cs/0 | {
"file_path": "ET/Share/Analyzer/CodeFixer/EntityFiledAccessCodeFixProvider.cs",
"repo_id": "ET",
"token_count": 1577
} | 82 |
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
<IncludeBuildOutput>false</IncludeBuildOutput>
<DevelopmentDep... | ET/Share/Share.SourceGenerator/Share.SourceGenerator.csproj/0 | {
"file_path": "ET/Share/Share.SourceGenerator/Share.SourceGenerator.csproj",
"repo_id": "ET",
"token_count": 670
} | 83 |
vbell off
escape ^Zz
startup_message off
# define a bigger scrollback, default is 100 lines, I like large scrollback
defscrollback 10000
# another way to show window list
caption always "%{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w %=%M%d 0c %{g}%H%{-}"
| ET/Tools/Config/.screenrc/0 | {
"file_path": "ET/Tools/Config/.screenrc",
"repo_id": "ET",
"token_count": 110
} | 84 |
fileFormatVersion: 2
guid: f29d435e196cd421aa7a7700402942f3
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Bundles/UI/LockStep/UILSLogin.prefab.meta/0 | {
"file_path": "ET/Unity/Assets/Bundles/UI/LockStep/UILSLogin.prefab.meta",
"repo_id": "ET",
"token_count": 64
} | 85 |
fileFormatVersion: 2
guid: d307532fe7ed9c747a769ac01933093b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Config/Excel/UnitConfig.xlsx.meta/0 | {
"file_path": "ET/Unity/Assets/Config/Excel/UnitConfig.xlsx.meta",
"repo_id": "ET",
"token_count": 64
} | 86 |
fileFormatVersion: 2
guid: de67d260a82e87742b9c3c297379ffb3
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
... | ET/Unity/Assets/Plugins/ICSharpCode.SharpZipLib.dll.meta/0 | {
"file_path": "ET/Unity/Assets/Plugins/ICSharpCode.SharpZipLib.dll.meta",
"repo_id": "ET",
"token_count": 1022
} | 87 |
fileFormatVersion: 2
guid: 1a4ed9e455d57c148ac6d12d8bde24c7
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
... | ET/Unity/Assets/Plugins/MongoDB/runtimes/osx/native/libmongocrypt.dylib.meta/0 | {
"file_path": "ET/Unity/Assets/Plugins/MongoDB/runtimes/osx/native/libmongocrypt.dylib.meta",
"repo_id": "ET",
"token_count": 551
} | 88 |
fileFormatVersion: 2
guid: 7d6d48cbd71222d499380e924ece197a
folderAsset: yes
timeCreated: 1506157957
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| ET/Unity/Assets/Res/Unit/Skeleton/Character/Materials.meta/0 | {
"file_path": "ET/Unity/Assets/Res/Unit/Skeleton/Character/Materials.meta",
"repo_id": "ET",
"token_count": 75
} | 89 |
fileFormatVersion: 2
guid: 5bc88e9029901a240abad149b39bbf6b
folderAsset: yes
DefaultImporter:
userData:
| ET/Unity/Assets/Resources.meta/0 | {
"file_path": "ET/Unity/Assets/Resources.meta",
"repo_id": "ET",
"token_count": 43
} | 90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.