prefix
stringlengths
82
32.6k
middle
stringlengths
5
470
suffix
stringlengths
0
81.2k
file_path
stringlengths
6
168
repo_name
stringlengths
16
77
context
listlengths
5
5
lang
stringclasses
4 values
ground_truth
stringlengths
5
470
using JWLSLMerge.Data.Attributes; namespace JWLSLMerge.Data.Models { public class PlaylistItemMarker { [
Ignore] public int PlaylistItemMarkerId {
get; set; } public int PlaylistItemId { get; set; } public string Label { get; set; } = null!; public long StartTimeTicks { get; set; } public long DurationTicks { get; set; } public long EndTransitionDurationTicks { get; set; } [Ignore] public int NewPlaylistIt...
JWLSLMerge.Data/Models/PlaylistItemMarker.cs
pliniobrunelli-JWLSLMerge-7fe66dc
[ { "filename": "JWLSLMerge.Data/Attributes/Ignore.cs", "retrieved_chunk": "namespace JWLSLMerge.Data.Attributes\n{\n [AttributeUsage(AttributeTargets.Property)]\n public class IgnoreAttribute : Attribute { }\n}", "score": 0.814720630645752 }, { "filename": "JWLSLMerge.Data/Models/PlaylistI...
csharp
Ignore] public int PlaylistItemMarkerId {
using System.Collections.Generic; using System.Threading.Tasks; using Sandland.SceneTool.Editor.Common.Utils; using Sandland.SceneTool.Editor.Views.Base; using Sandland.SceneTool.Editor.Views.Handlers; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace Sandland.SceneTool.Editor.Views { i...
MenuItems.Tools.Root + "Setup Scene Tools";
public override float MinWidth => 600; public override float MinHeight => 600; public override string WindowName => "Scene Tools Setup"; public override string VisualTreeName => nameof(SceneToolsSetupWindow); public override string StyleSheetName => nameof(SceneToolsSetupWindow...
Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/SceneToolsSetupWindow.cs
migus88-Sandland.SceneTools-64e9f8c
[ { "filename": "Assets/SceneTools/Editor/Views/Base/SceneToolsWindowBase.cs", "retrieved_chunk": "using Sandland.SceneTool.Editor.Common.Utils;\nusing Sandland.SceneTool.Editor.Services;\nusing UnityEditor;\nusing UnityEngine;\nusing UnityEngine.UIElements;\nnamespace Sandland.SceneTool.Editor.Views.Base\n{\...
csharp
MenuItems.Tools.Root + "Setup Scene Tools";
using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Text; using ULTRAKILL.Cheats; using UnityEngine; namespace Ultrapain.Patches { class Leviathan_Flag : MonoBehaviour { private LeviathanHead comp; private Animator anim; //p...
Animator ___anim, ref int ___previousAttack) {
if (!__instance.active) { return false; } Leviathan_Flag flag = __instance.GetComponent<Leviathan_Flag>(); if (flag == null) return true; if (___projectileBursting && flag.projectileAttack) { ...
Ultrapain/Patches/Leviathan.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Mindflayer.cs", "retrieved_chunk": " //___eid.SpeedBuff();\n }\n }\n class Mindflayer_ShootProjectiles_Patch\n {\n public static float maxProjDistance = 5;\n public static float initialProjectileDistance = -1f;\n public static ...
csharp
Animator ___anim, ref int ___previousAttack) {
using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Text; using ULTRAKILL.Cheats; using UnityEngine; namespace Ultrapain.Patches { class Leviathan_Flag : MonoBehaviour { private LeviathanHead comp; private Animator anim; //p...
Vector3 RandomVector(float min, float max) {
return new Vector3(UnityEngine.Random.Range(min, max), UnityEngine.Random.Range(min, max), UnityEngine.Random.Range(min, max)); } public Vector3 targetShootPoint; private void Shoot() { Debug.Log("Attempting to shoot projectile for leviathan"); GameO...
Ultrapain/Patches/Leviathan.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Mindflayer.cs", "retrieved_chunk": " if (___eid.drillers.Count > 0)\n return false;\n Vector3 targetPosition = MonoSingleton<PlayerTracker>.Instance.PredictPlayerPosition(0.9f) + deltaPosition;\n float distance = Vector3.Distan...
csharp
Vector3 RandomVector(float min, float max) {
using Microsoft.EntityFrameworkCore; using Ryan.EntityFrameworkCore.Builder; using Ryan.Models; using System.Collections.Generic; namespace Ryan.EntityFrameworkCore.ModelBuilders { public class MEntityModelBuilder : EntityModelBuilder<M> { public override void Build<TImplementation>(ModelBuilder modelB...
GetTableName(Dictionary<string, string> value) {
return $"M_{value["Year"]}"; } protected override void EntityConfiguration() { Apply(x => x.Year); } } }
test/Ryan.EntityFrameworkCore.Shard.Tests/EntityFrameworkCore/ModelBuilders/MEntityModelBuilder.cs
c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c
[ { "filename": "test/Ryan.EntityFrameworkCore.Shard.Tests/SqlServerShardDbContextTests.cs", "retrieved_chunk": " var context = ServiceProvider.GetRequiredService<SqlServerShardDbContext>();\n var years = new[] { 2022, 2023 };\n var collection = context.AsQueryable<M>(x => yea...
csharp
GetTableName(Dictionary<string, string> value) {
using System; using System.Collections.Generic; using System.Linq; using UnityEditor.Experimental.GraphView; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; namespace QuestSystem.QuestEditor { public class QuestGraphView : GraphView { public string misi...
NodeQuestGraph node, Port p) {
var targetEdge = edges.ToList().Where(x => x.output.portName == p.portName && x.output.node == p.node); if (targetEdge.Any()) { var edge = targetEdge.First(); edge.input.Disconnect(edge); RemoveElement(targetEdge.First()); ...
Editor/GraphEditor/QuestGraphView.cs
lluispalerm-QuestSystem-cd836cc
[ { "filename": "Editor/GraphEditor/QuestGraphEditor.cs", "retrieved_chunk": " };\n if (questForGraph != null)\n _questGraph.misionName = questForGraph.misionName;\n _questGraph.StretchToParentSize();\n rootVisualElement.Add(_questGraph);\n }\n...
csharp
NodeQuestGraph node, Port p) {
namespace WAGIapp.AI.AICommands { internal class WriteLineCommand : Command { public override string Name => "write-line"; public override string
Description => "writes the given text to the line number";
public override string Format => "write-line | line number | text"; public override async Task<string> Execute(Master caller, string[] args) { if (args.Length < 3) return "error! not enough parameters"; int line; try { ...
WAGIapp/AI/AICommands/WriteLineCommand.cs
Woltvint-WAGI-d808927
[ { "filename": "WAGIapp/AI/AICommands/RemoveLineCommand.cs", "retrieved_chunk": "namespace WAGIapp.AI.AICommands\n{\n internal class RemoveLineCommand : Command\n {\n public override string Name => \"remove-line\";\n public override string Description => \"deletes a line from the script\...
csharp
Description => "writes the given text to the line number";
using SandBox.Conversation.MissionLogics; using SandBox.View.Missions; using System; using TaleWorlds.CampaignSystem.Conversation; using TaleWorlds.CampaignSystem; using TaleWorlds.Core; using TaleWorlds.Engine.GauntletUI; using TaleWorlds.Engine.Screens; using TaleWorlds.InputSystem; using TaleWorlds.Library; using Ta...
InworldMissionChatVM _dataSource;
private GauntletLayer _gauntletLayer; private ConversationManager _conversationManager; private MissionConversationCameraView _conversationCameraView; private MissionGauntletEscapeMenuBase _escapeView; private SpriteCategory _conversationCategory; public MissionConversa...
Bannerlord/Code/Inworld/Inworld/InworldView/InworldMissionConversationView.cs
BlocTheWorker-Inworld-Bannerlord-Mod-75242ae
[ { "filename": "Bannerlord/Code/Inworld/Inworld/InworldView/InworldMissionChatVM.cs", "retrieved_chunk": "using Inworld.InMission;\nusing Inworld.Engine;\nusing TaleWorlds.Engine.Options;\nusing TaleWorlds.InputSystem;\nnamespace Inworld.InworldView\n{\n public class InworldMissionChatVM : ViewModel\n ...
csharp
InworldMissionChatVM _dataSource;
using System; using System.Collections.Generic; using System.Linq; using UnityEditor.Experimental.GraphView; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; namespace QuestSystem.QuestEditor { public class QuestGraphView : GraphView { public string misi...
NodeQuestGraph nodes, QuestObjectiveGraph objective) {
nodes.objectivesRef.Remove(objective); nodes.questObjectives.Remove(objective); nodes.RefreshExpandedState(); } private void AddNextQuestObjective(NodeQuestGraph node) { var Q = new QuestObjectiveGraph(); var deleteButton = new Butto...
Editor/GraphEditor/QuestGraphView.cs
lluispalerm-QuestSystem-cd836cc
[ { "filename": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "retrieved_chunk": " }\n //Remove edges\n Edges.Where(x => x.input.node == node).ToList().ForEach(edge => _targetGraphView.RemoveElement(edge));\n //Remove Node\n _targetGr...
csharp
NodeQuestGraph nodes, QuestObjectiveGraph objective) {
using Magic.IndexedDb.Helpers; using Magic.IndexedDb.SchemaAnnotations; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Magic.IndexedDb.Models { public class MagicQuery<T> where T :...
StoredMagicQuery> storedMagicQueries {
get; set; } = new List<StoredMagicQuery>(); public bool ResultsUnique { get; set; } = true; /// <summary> /// Return a list of items in which the items do not have to be unique. Therefore, you can get /// duplicate instances of an object depending on how you write your query. ...
Magic.IndexedDb/Models/MagicQuery.cs
magiccodingman-Magic.IndexedDb-a279d6d
[ { "filename": "Magic.IndexedDb/Models/StoreRecord.cs", "retrieved_chunk": "namespace Magic.IndexedDb\n{ \n public class StoreRecord<T>\n {\n public string? DbName { get; set; }\n public string? StoreName { get; set; }\n public T? Record { get; set; }\n }\n}", "score": 0.839...
csharp
StoredMagicQuery> storedMagicQueries {
using BepInEx; using BepInEx.Configuration; using Comfort.Common; using EFT; using LootingBots.Patch.Components; using LootingBots.Patch.Util; using LootingBots.Patch; using LootingBots.Brain; using DrakiaXYZ.BigBrain.Brains; using System.Collections.Generic; using HandbookClass = GClass2775; namespace LootingBot...
Log LootLog;
// Loot Settings public static ConfigEntry<bool> UseMarketPrices; public static ConfigEntry<bool> ValueFromMods; public static ConfigEntry<bool> CanStripAttachments; public static ConfigEntry<float> PMCLootThreshold; public static ConfigEntry<float> ScavLootThreshold; ...
LootingBots/LootingBots.cs
Skwizzy-SPT-LootingBots-76279a3
[ { "filename": "LootingBots/logics/FindLootLogic.cs", "retrieved_chunk": " {\n private readonly LootingBrain _lootingBrain;\n private readonly BotLog _log;\n private float DetectCorpseDistance\n {\n get { return Mathf.Pow(LootingBots.DetectCorpseDistance.Value, 2); }...
csharp
Log LootLog;
using System; using System.ComponentModel; using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; namespace dev.kemomimi.TimelineExtension.CustomActivationTrack { [DisplayName("Custom Activation Clip")] [Serializable] public class CustomActivationClip : PlayableAsset, ITimelineClipAs...
CustomActivationPlayableBehavior data = new ();
public ClipCaps clipCaps { get { return ClipCaps.None; } } public override Playable CreatePlayable(PlayableGraph graph, GameObject go) { data.TrackIndex = TrackIndexPassingThrough; data.ClipIndex = ClipIndexPassingThrough; da...
Assets/TimelineExtension/Scripts/CustomActivationTrack/CustomActivationClip.cs
nmxi-Unity_AbstractTimelineExtention-b518049
[ { "filename": "Assets/TimelineExtension/Scripts/CustomActivationTrack/CustomActivationPlayableBehavior.cs", "retrieved_chunk": " [HideInInspector] public int TrackIndex;\n [HideInInspector] public int ClipIndex;\n [HideInInspector] public double StartTiming;\n [HideInInspector] p...
csharp
CustomActivationPlayableBehavior data = new ();
using HarmonyLib; using Mono.Cecil; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Text; using UnityEngine; namespace Ultrapain.Patches { /* u = initial, f = final, d = delta, s = speed multiplier u = 40f * Time.deltaT...
GameObject core) {
GrenadeExplosionOverride ovr = core.AddComponent<GrenadeExplosionOverride>(); ovr.normalMod = true; ovr.normalDamage = (float)ConfigManager.shotgunCoreExplosionDamage.value / 35f; ovr.normalSize = (float)ConfigManager.shotgunCoreExplosionSize.value / 6f * ConfigManager....
Ultrapain/Patches/PlayerStatTweaks.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Parry.cs", "retrieved_chunk": " public GameObject temporaryBigExplosion;\n public GameObject weapon;\n public enum GrenadeType\n {\n Core,\n Rocket,\n }\n public GrenadeType grenadeType;\n }\n class Punch_...
csharp
GameObject core) {
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.WinUI; using Microsoft.UI.Dispatching; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using System.Windows.Input; using Windows.Media.Devices;...
IMicrophoneDeviceService _microphoneDeviceService;
private readonly ISettingsService _settingsService; private List<MicrophoneDevice> _micDevices; private readonly DispatcherQueue _dispatcherQueue; private readonly TimeSpan _updateInterval = TimeSpan.FromMilliseconds(100); private readonly Stopwatch _stopwatch; private ...
ViewModels/AudioInputControlViewModel.cs
dannyr-git-wingman-41103f3
[ { "filename": "Interfaces/IMicrophoneDeviceService.cs", "retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Windows.Devices.Enumeration;\nusing Windows.Storage;\nnamespace wingman.Interfaces\n{\n public interface IMicrophoneDeviceService\n {\n ...
csharp
IMicrophoneDeviceService _microphoneDeviceService;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; using Microsoft.Toolkit.Uwp.Notifications; using SupernoteDesktopClient.Core; using SupernoteDesktopClient.Extensions; using SupernoteDesktopClient.Messages; using SupernoteDesktopClient.Services.Contra...
IMediaDeviceService mediaDeviceService, ISyncService syncService) {
// services _mediaDeviceService = mediaDeviceService; _syncService = syncService; // Register a message subscriber WeakReferenceMessenger.Default.Register<MediaDeviceChangedMessage>(this, (r, m) => { UpdateSync(m.Value); }); } [RelayCommand]...
ViewModels/SyncViewModel.cs
nelinory-SupernoteDesktopClient-e527602
[ { "filename": "ViewModels/DashboardViewModel.cs", "retrieved_chunk": " UpdateDashboard();\n RefreshUpdateStatus(false).Await();\n }\n public void OnNavigatedFrom()\n {\n }\n public DashboardViewModel(IMediaDeviceService mediaDeviceService)\n {\...
csharp
IMediaDeviceService mediaDeviceService, ISyncService syncService) {
using HarmonyLib; using Sandbox; using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.AI; namespace Ultrapain.Patches { class MinosPrimeCharge { static GameObject decoy; public static void CreateDecoy() { if (decoy != null ...
Vector3 targetPosition) {
if(decoy == null) { CreateDecoy(); return; } targetPosition = Vector3.MoveTowards(targetPosition, startPosition, 5f); Vector3 currentPosition = startPosition; float distance = Vector3.Distance(startPosition, target...
Ultrapain/Patches/MinosPrime.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Mindflayer.cs", "retrieved_chunk": " MonoSingleton<HookArm>.Instance.StopThrow(1f, true);\n __instance.transform.position = targetPosition;\n ___goingLeft = !___goingLeft;\n GameObject.Instantiate<GameObject>(__instance.teleportSou...
csharp
Vector3 targetPosition) {
using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; using System; using HarmonyLib; using System.IO; using Ultrapain.Patches; using System.Linq; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Reflection; using Steamworks; using Unity.Audio; using System.Text; using System.Collection...
GameObject sisyphusDestroyExplosion;
//public static GameObject idol; public static GameObject ferryman; public static GameObject minosPrime; //public static GameObject maliciousFace; public static GameObject somethingWicked; public static Turret turret; public static GameObject turretFinalFlash; ...
Ultrapain/Plugin.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/ConfigManager.cs", "retrieved_chunk": " public static ConfigPanel leviathanPanel;\n public static ConfigPanel somethingWickedPanel;\n public static ConfigPanel panopticonPanel;\n public static ConfigPanel idolPanel;\n // GLOBAL ENEMY CONFIG\n ...
csharp
GameObject sisyphusDestroyExplosion;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using Jamesnet.Wpf.Controls; using Jamesnet.Wpf.Mvvm; using Microsoft.Win32; using Newtonsoft.Json; using objective.Core; using objective.Core.Events; using objective.Forms.Local.Models; using objective.Models; using objective.SampleData; us...
PageModel> pages;
[ObservableProperty] ObservableCollection<ReportObject> multiObject = new (); [ObservableProperty] private List<ToolItem> _subTools; private readonly IEventAggregator _eh; public MainContentViewModel(IEventAggregator eh) { _eh = eh; Tools = GetTools (); SubTools = GetSub...
objective/objective/objective.Forms/Local/ViewModels/MainContentViewModel.cs
jamesnet214-objective-0e60b6f
[ { "filename": "objective/objective/objective.Forms/Local/Models/PageModel.cs", "retrieved_chunk": "namespace objective.Forms.Local.Models\n{\n\t\tpublic partial class PageModel : ObservableBase\n\t\t{\n\t\t\t\t[ObservableProperty]\n\t\t\t\tprivate ObservableCollection<ReportObject> _reportSource;\n\t\t\t\tp...
csharp
PageModel> pages;
using FayElf.Plugins.WeChat.OfficialAccount.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using XiaoFeng; using XiaoFeng.Http; /**************************************************************** * Copyright © (2022) www.fayelf.com All Rights R...
IndustryTemplateListResult GetAllPrivateTemplate() {
var config = this.Config.GetConfig(WeChatType.Applets); return Common.Execute(config.AppID, config.AppSecret, token => { var response = HttpHelper.GetHtml(new HttpRequest { Method = HttpMethod.Get, Address = $"h...
OfficialAccount/Template.cs
zhuovi-FayElf.Plugins.WeChat-5725d1e
[ { "filename": "OfficialAccount/Subscribe.cs", "retrieved_chunk": " }\n });\n }\n #endregion\n #region 获取公众号类目\n /// <summary>\n /// 获取公众号类目\n /// </summary>\n /// <returns></returns>\n public TemplateCategoryResult GetCategory...
csharp
IndustryTemplateListResult GetAllPrivateTemplate() {
using HarmonyLib; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.ConstrainedExecution; using UnityEngine; namespace Ultrapain.Patches { class Drone_Start_Patch { static void Postfix(Drone __instance, ref EnemyIdentifier ___eid) {...
EnemyIdentifier ___eid, ref float ___attackCooldown, int ___difficulty) {
if (___eid.enemyType != EnemyType.Drone) return; DroneFlag flag = __instance.GetComponent<DroneFlag>(); if (flag == null || flag.attackDelay < 0) return; float attackSpeedDecay = (float)(___difficulty / 2); if (___difficulty ...
Ultrapain/Patches/Drone.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/MinosPrime.cs", "retrieved_chunk": " flag.explosionAttack = false;\n flag.BigExplosion();\n __instance.Invoke(\"Uppercut\", 0.5f);\n return false;\n }\n }\n class MinosPrime_Death\n {\n static bool Prefix(Min...
csharp
EnemyIdentifier ___eid, ref float ___attackCooldown, int ___difficulty) {
#nullable enable using System.Collections.Generic; using UnityEngine; namespace Mochineko.FacialExpressions.Blink { /// <summary> /// A simple implementation of <see cref="IEyelidMorpher"/> for <see cref="skinnedMeshRenderer"/>. /// </summary> public sealed class SkinnedMeshEyelidMorpher : IEyelidMorph...
Eyelid, int> indexMap;
private readonly bool separateBoth; /// <summary> /// Creates a new instance of <see cref="SkinnedMeshEyelidMorpher"/>. /// </summary> /// <param name="skinnedMeshRenderer">Target renderer.</param> /// <param name="indexMap">Map of eyelid and blend shape index.</param> ...
Assets/Mochineko/FacialExpressions/Blink/SkinnedMeshEyelidMorpher.cs
mochi-neko-facial-expressions-unity-ab0d020
[ { "filename": "Assets/Mochineko/FacialExpressions/Blink/CompositeEyelidMorpher.cs", "retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nnamespace Mochineko.FacialExpressions.Blink\n{\n /// <summary>\n /// Composition of some <see cref=\"IEyelidMorpher\"/>s.\n /// </summary>\n ...
csharp
Eyelid, int> indexMap;
using HarmonyLib; using System.Security.Cryptography; using UnityEngine; namespace Ultrapain.Patches { class SwordsMachineFlag : MonoBehaviour { public SwordsMachine sm; public Animator anim; public EnemyIdentifier eid; public bool speedingUp = false; private void Reset...
SwordsMachine __instance, bool __0) {
__instance.Enrage(); if (!__0) __instance.SwordCatch(); return false; } } class SwordsMachine_Down_Patch { static bool Prefix(SwordsMachine __instance) { if (ConfigManager.swordsMachineSecondPhaseMode.value == ConfigM...
Ultrapain/Patches/SwordsMachine.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Stalker.cs", "retrieved_chunk": " }\n }\n __instance.gameObject.SetActive(false);\n Object.Destroy(__instance.gameObject);\n return false;\n }\n }\n public class SandificationZone_Enter_Patch\n {\n ...
csharp
SwordsMachine __instance, bool __0) {
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using WindowsHook; using wingman.Interfaces; using static wingman.Helpers.KeyConverter; namespace wingman.Services { public class KeyCombination { public Keys KeyCode { get; } ...
WingmanSettings, EventHandler> _hotkeyUpHandlers;
private readonly Dictionary<WingmanSettings, EventHandler> _hotkeyDownHandlers; private readonly ISettingsService _settingsService; private readonly Dictionary<HotkeyType, KeyCombination> _cachedValidHotkeys; private readonly HashSet<KeyCombination> _currentlyPressedCombinations; ...
Services/GlobalHotkeyService.cs
dannyr-git-wingman-41103f3
[ { "filename": "Services/EventHandlerService.cs", "retrieved_chunk": "namespace wingman.Services\n{\n public class EventHandlerService : IEventHandlerService, IDisposable\n {\n private readonly IGlobalHotkeyService globalHotkeyService;\n private readonly IMicrophoneDeviceService micServic...
csharp
WingmanSettings, EventHandler> _hotkeyUpHandlers;
#nullable enable using System; using System.Collections.Generic; using Random = UnityEngine.Random; namespace Mochineko.FacialExpressions.Blink { /// <summary> /// A generator of <see cref="EyelidAnimationFrame"/> for linear eyelid animation. /// </summary> public static class LinearEyelidAnimationGene...
Eyelid eyelid, int framesPerSecond, float duration, float closingRate) {
if (framesPerSecond <= 0) { throw new ArgumentOutOfRangeException(nameof(framesPerSecond)); } if (duration <= 0f) { throw new ArgumentOutOfRangeException(nameof(duration)); } if (closingRate is <= 0f o...
Assets/Mochineko/FacialExpressions/Blink/LinearEyelidAnimationGenerator.cs
mochi-neko-facial-expressions-unity-ab0d020
[ { "filename": "Assets/Mochineko/FacialExpressions/Blink/ProbabilisticEyelidAnimationGenerator.cs", "retrieved_chunk": " /// </summary>\n /// <param name=\"eyelid\"></param>\n /// <param name=\"framesPerSecond\"></param>\n /// <param name=\"duration\"></param>\n /// <param ...
csharp
Eyelid eyelid, int framesPerSecond, float duration, float closingRate) {
using BepInEx; using BepInEx.Configuration; using Comfort.Common; using EFT; using LootingBots.Patch.Components; using LootingBots.Patch.Util; using LootingBots.Patch; using LootingBots.Brain; using DrakiaXYZ.BigBrain.Brains; using System.Collections.Generic; using HandbookClass = GClass2775; namespace LootingBot...
BotType> LooseItemLootingEnabled;
public static ConfigEntry<float> TimeToWaitBetweenLoot; public static ConfigEntry<float> DetectItemDistance; public static ConfigEntry<float> DetectContainerDistance; public static ConfigEntry<float> DetectCorpseDistance; public static ConfigEntry<bool> DebugLootNavigation; ...
LootingBots/LootingBots.cs
Skwizzy-SPT-LootingBots-76279a3
[ { "filename": "LootingBots/utils/BotTypes.cs", "retrieved_chunk": "using System;\nusing EFT;\nnamespace LootingBots.Patch.Util\n{\n [Flags]\n public enum BotType\n {\n Scav = 1,\n Pmc = 2,\n Raider = 4,", "score": 0.8254965543746948 }, { "filename": "LootingBots/com...
csharp
BotType> LooseItemLootingEnabled;
using System; using System.Collections.Generic; using System.Text; using XiaoFeng.Xml; using System.Xml; using System.Xml.Serialization; using XiaoFeng; using XiaoFeng.IO; using XiaoFeng.Cryptography; using System.Linq; using FayElf.Plugins.WeChat.Model; using FayElf.Plugins.WeChat.Cryptotraphy; /**********************...
NewsModel news) => this.ReplayContent(MessageType.news, fromUserName, toUserName, () => {
if (news == null || news.Item == null || news.Item.Count == 0) return ""; return $"<ArticleCount>{news.Item.Count}</ArticleCount>{news.EntityToXml(OmitXmlDeclaration: true, OmitComment: true, Indented: false)}"; }); #endregion #endregion } }
OfficialAccount/Receive.cs
zhuovi-FayElf.Plugins.WeChat-5725d1e
[ { "filename": "OfficialAccount/Subscribe.cs", "retrieved_chunk": " /// <param name=\"touser\">接收者(用户)的 openid</param>\n /// <param name=\"template_id\">所需下发的订阅模板id</param>\n /// <param name=\"page\">跳转网页时填写</param>\n /// <param name=\"miniprogram\">跳转小程序时填写,格式如{ \"appid\": \"\", ...
csharp
NewsModel news) => this.ReplayContent(MessageType.news, fromUserName, toUserName, () => {
using System; using System.Collections.Generic; using TMPro; using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using UnityEngine; using UnityEngine.Profiling; using UnityEngine.Rendering; using UnityEngine.TextCore; using static ZimGui.Core.MathHelper; namespace ZimGui.Core { public sealed unsafe cl...
Quad* ptr, int count) {
CheckAddLength(count); _quads.AddRange(ptr, count); } public ref Quad Next() { var last = _quads.Length; if (_quads.Capacity <= last + 1) EnsureCapacity(last + 1); _quads.Length = last + 1; return ref _quads.Ptr[last]; } ...
Assets/ZimGui/Core/UiMesh.cs
Akeit0-ZimGui-Unity-cc82fb9
[ { "filename": "Assets/ZimGui/Core/Quad.cs", "retrieved_chunk": " public static unsafe void SetUpQuadUV(Span<Quad> span, Vector2 quadUV) {\n fixed (Quad* p = span) {\n *p = default;\n p->SetSize(255);\n p->SetUV(quadUV);\n UnsafeUt...
csharp
Quad* ptr, int count) {
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using Microsoft.Build.Shared; using Mi...
IFileSystem fileSystem = null) {
fullPath = AttemptToShortenPath(fullPath); try { if (fileSystem == null) { fileSystem = DefaultFileSystem; } return /*Traits.Instance.CacheFileExistence*/true ? FileExistenceCache.GetOrAdd(fullPath, ...
Microsoft.Build.Shared/FileUtilities.cs
Chuyu-Team-MSBuildCppCrossToolset-6c84a69
[ { "filename": "Microsoft.Build.Shared/FileMatcher.cs", "retrieved_chunk": " filenamePart = filespec.Substring(num + 1);\n }\n }\n internal string GetLongPathName(string path)\n {\n return GetLongPathName(path, _getFileSystemEntries);\n }\n ...
csharp
IFileSystem fileSystem = null) {