crossfile_context_retrievalwref
dict
prompt
stringlengths
82
26.2k
right_context
stringlengths
19
68.4k
metadata
dict
crossfile_context_retrieval
dict
groundtruth
stringlengths
8
297
{ "list": [ { "filename": "AssemblyCacheExplorer/AssemblyCacheExplorer.cs", "retrieved_chunk": "using System.Configuration;\nusing System.Reflection;\nusing System.IO;\nusing AssemblyCacheHelper;\nusing AssemblyCacheHelper.DTO;\nusing AssemblyCacheExplorer.ListView;\nnamespace AssemblyCacheExplorer\n{...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using AssemblyCacheHelper.DTO; namespace AssemblyCacheExplorer { public partial class AssemblyProperties : Form ...
get; set; } public AssemblyProperties() { InitializeComponent(); } private void AssemblyProperties_Load(object sender, EventArgs e) { string imageRuntimeVersion = AssemblyCacheHelper.NetAssemblies.GetImageRuntimeVersion(NetAssemblyProperties.AssemblyFil...
{ "context_start_lineno": 0, "file": "AssemblyCacheExplorer/AssemblyProperties.cs", "groundtruth_start_lineno": 15, "repository": "peterbaccaro-assembly-cache-explorer-a5dae15", "right_context_start_lineno": 16, "task_id": "project_cc_csharp/2469" }
{ "list": [ { "filename": "AssemblyCacheExplorer/AssemblyCacheExplorer.cs", "retrieved_chunk": " const string _AssemblyFolderCLR2 = \"AssemblyFolderCLR2\";\n const string _AssemblyFolderCLR4 = \"AssemblyFolderCLR4\";\n const string _BackupAssemblies = \"BackupAssemblies\";\n ...
NetAssembly NetAssemblyProperties {
{ "list": [ { "filename": "Runtime/Core/Internal/FuncFluxParam.cs", "retrieved_chunk": "namespace Kingdox.UniFlux.Core.Internal\n{\n /// <summary>\n /// The `FuncFluxParam` class represents a flux that stores functions with one parameter of type `TParam` and a return value of type `TReturn`.\n ...
/* Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox') Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
/// <summary> /// A dictionary that stores functions with no parameters and a return value of type `TReturn`. /// </summary> internal readonly Dictionary<TKey, Func<TReturn>> dictionary = new Dictionary<TKey, Func<TReturn>>(); /// <summary> /// Subscribes the provided fu...
{ "context_start_lineno": 0, "file": "Runtime/Core/Internal/FuncFlux.cs", "groundtruth_start_lineno": 31, "repository": "xavierarpa-UniFlux-a2d46de", "right_context_start_lineno": 33, "task_id": "project_cc_csharp/2419" }
{ "list": [ { "filename": "Runtime/Core/Internal/FuncFluxParam.cs", "retrieved_chunk": " {\n /// <summary>\n /// A dictionary that stores functions with one parameter of type `TParam` and a return value of type `TReturn`.\n /// </summary>\n internal readonly Dictionary<T...
IFluxReturn<TKey, TReturn, Func<TReturn>> {
{ "list": [ { "filename": "Ultrapain/Patches/V2Second.cs", "retrieved_chunk": " }\n class V2SecondFastCoin\n {\n static MethodInfo switchWeapon = typeof(V2).GetMethod(\"SwitchWeapon\", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);\n static bool Prefix(V2...
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { class Virtue_Start_Patch { static void Postfix(Drone __instance, ref EnemyIdentifier ___eid) { VirtueFlag flag = __instance.gameObject.AddComponent<VirtueFlag>(); flag.virtue = __instance; } }...
if (___eid.enemyType != EnemyType.Virtue) return true; GameObject createInsignia(Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, int damage, float lastMultiplier) { GameObject gameObject = GameObject.Inst...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Virtue.cs", "groundtruth_start_lineno": 62, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 64, "task_id": "project_cc_csharp/2374" }
{ "list": [ { "filename": "Ultrapain/Patches/Parry.cs", "retrieved_chunk": " {\n GrenadeParriedFlag flag = __instance.GetComponent<GrenadeParriedFlag>();\n if (flag == null)\n return true;\n //if (!Plugin.ultrapainDifficulty || !ConfigManager.play...
Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, ref int ___usedAttacks) {
{ "list": [ { "filename": "src/server.cs", "retrieved_chunk": " // Assembles a packet from the received data and returns it.\n public Packet AssembleReceivedDataIntoPacket(int userID)\n {\n byte[] data = _clients[userID].GetDataAs<byte[]>();\n ...
// Copyright (c) 2023, João Matos // Check the end of the file for extended copyright notice. using System.Net.Sockets; using System.Text; using System.IO; using System.Linq; using System.Collections.Generic; using System; using ProtoIP.Common; using static ProtoIP.Packet; namespace ProtoIP { public class Prot...
int bytesWritten = 0; while (bytesWritten < data.Length && tries > 0) { try { if (this._stream.CanWrite) { this._stream....
{ "context_start_lineno": 0, "file": "src/protoStream.cs", "groundtruth_start_lineno": 311, "repository": "JoaoAJMatos-ProtoIP-84f8797", "right_context_start_lineno": 313, "task_id": "project_cc_csharp/2496" }
{ "list": [ { "filename": "src/crypto.cs", "retrieved_chunk": " public byte[] _key { get; private set; }\n // Constructors\n public AES() { }\n public AES(byte[] key) { this._key = key; }\n // Generate a random AES ke...
Network.MAX_TRIES) {
{ "list": [ { "filename": "Ultrapain/Patches/DruidKnight.cs", "retrieved_chunk": " public static float offset = 0.205f;\n class StateInfo\n {\n public GameObject oldProj;\n public GameObject tempProj;\n }\n static bool Prefix(Mandalore __instanc...
using HarmonyLib; using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace Ultrapain.Patches { /*public class ObjectActivator : MonoBehaviour { public int originalInstanceID = 0; public MonoBehaviour activator; void Start() { i...
tempHarmless = tempNormal = tempSuper = null; } } [HarmonyBefore] static bool Prefix(Grenade __instance, out StateInfo __state) { __state = new StateInfo(); GrenadeExplosionOverride flag = __instance.GetComponent<GrenadeExplosionOver...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/CommonComponents.cs", "groundtruth_start_lineno": 124, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 126, "task_id": "project_cc_csharp/2407" }
{ "list": [ { "filename": "Ultrapain/Patches/Stray.cs", "retrieved_chunk": " public AttackMode currentMode = AttackMode.ProjectileCombo;\n public void Awake()\n {\n anim = GetComponent<Animator>();\n eid = GetComponent<EnemyIdentifier>();\n }\n ...
StateInfo() {
{ "list": [ { "filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs", "retrieved_chunk": " private readonly Dictionary<IState<TEvent, TContext>, Dictionary<TEvent, IState<TEvent, TContext>>>\n transitionMap = new();\n private readonly Dictionary<TEvent, ISta...
#nullable enable using System; using System.Collections.Generic; namespace Mochineko.RelentStateMachine { public sealed class StateStoreBuilder<TContext> : IStateStoreBuilder<TContext> { private readonly IStackState<TContext> initialState; private readonly List<IStackState<TContext>> st...
var initialState = new TInitialState(); return new StateStoreBuilder<TContext>(initialState); } private StateStoreBuilder(IStackState<TContext> initialState) { this.initialState = initialState; states.Add(this.initialState); } pu...
{ "context_start_lineno": 0, "file": "Assets/Mochineko/RelentStateMachine/StateStoreBuilder.cs", "groundtruth_start_lineno": 15, "repository": "mochi-neko-RelentStateMachine-64762eb", "right_context_start_lineno": 17, "task_id": "project_cc_csharp/2465" }
{ "list": [ { "filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs", "retrieved_chunk": " }\n private TransitionMapBuilder(IState<TEvent, TContext> initialState)\n {\n this.initialState = initialState;\n states.Add(this.initialState);\n ...
IStackState<TContext>, new() {
{ "list": [ { "filename": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "retrieved_chunk": " {\n var tempNode = _targetGraphView.CreateNodeQuest(node.name, Vector2.zero, node.extraText, node.isFinal);\n //Load node variables\n tempNode.GUID = no...
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...
var generatetPort = GeneratePort(node, Direction.Output); int nPorts = node.outputContainer.Query("connector").ToList().Count; //generatetPort.portName = "NextNode " + nPorts; string choicePortName = string.IsNullOrEmpty(overrideName) ? "NextNode " + nPorts : overrideN...
{ "context_start_lineno": 0, "file": "Editor/GraphEditor/QuestGraphView.cs", "groundtruth_start_lineno": 282, "repository": "lluispalerm-QuestSystem-cd836cc", "right_context_start_lineno": 284, "task_id": "project_cc_csharp/2527" }
{ "list": [ { "filename": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "retrieved_chunk": " //CreateObjectives\n QuestObjectiveGraph objtemp = new QuestObjectiveGraph(qObjective.keyName, qObjective.maxItems, qObjective.actualItems,\n ...
NodeQuestGraph node, string overrideName = "") {
{ "list": [ { "filename": "OfficialAccount/QRCode.cs", "retrieved_chunk": " {\n }\n #endregion\n #region 属性\n #endregion\n #region 方法\n /// <summary>\n /// 创建二维码\n /// </summary>\n /// <param name=\"accessToken\">网页授权接口调用凭证</param>"...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using XiaoFeng; using XiaoFeng.Http; using FayElf.Plugins.WeChat.OfficialAccount.Model; /**************************************************************** * Copyright © (2022) www.fayelf.com All Rights Re...
var result = HttpHelper.GetHtml(new HttpRequest { Method = HttpMethod.Get, Address = $"https://api.weixin.qq.com/sns/userinfo?access_token={accessToken}&openid={openId}&lang={lang}" }); if (result.StatusCode == System.Net.HttpStatusCode.OK...
{ "context_start_lineno": 0, "file": "OfficialAccount/OAuthAPI.cs", "groundtruth_start_lineno": 118, "repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e", "right_context_start_lineno": 120, "task_id": "project_cc_csharp/2434" }
{ "list": [ { "filename": "OfficialAccount/QRCode.cs", "retrieved_chunk": " /// <param name=\"qrcodeType\">二维码类型</param>\n /// <param name=\"scene_id\">开发者自行设定的参数</param>\n /// <param name=\"seconds\">该二维码有效时间,以秒为单位。 最大不超过2592000(即30天),此字段如果不填,则默认有效期为60秒。</param>\n /// <ret...
UserInfoModel GetUserInfo(string accessToken, string openId, string lang = "zh_CN") {
{ "list": [ { "filename": "Ultrapain/Patches/V2Second.cs", "retrieved_chunk": " }\n class V2SecondFastCoin\n {\n static MethodInfo switchWeapon = typeof(V2).GetMethod(\"SwitchWeapon\", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);\n static bool Prefix(V2...
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { class Virtue_Start_Patch { static void Postfix(Drone __instance, ref EnemyIdentifier ___eid) { VirtueFlag flag = __instance.gameObject.AddComponent<VirtueFlag>(); flag.virtue = __instance; } }...
if (___eid.enemyType != EnemyType.Virtue) return true; GameObject createInsignia(Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, int damage, float lastMultiplier) { GameObject gameObject = GameObject.Inst...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Virtue.cs", "groundtruth_start_lineno": 62, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 64, "task_id": "project_cc_csharp/2429" }
{ "list": [ { "filename": "Ultrapain/Patches/Drone.cs", "retrieved_chunk": " static FieldInfo antennaFlashField = typeof(Turret).GetField(\"antennaFlash\", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);\n static ParticleSystem antennaFlash;\n public static ...
EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, ref int ___usedAttacks) {
{ "list": [ { "filename": "JWLSLMerge.Data/Models/Tag.cs", "retrieved_chunk": "using JWLSLMerge.Data.Attributes;\nnamespace JWLSLMerge.Data.Models\n{\n public class Tag\n {\n [Ignore]\n public int TagId { get; set; }\n public int Type { get; set; }\n public string Na...
using JWLSLMerge.Data.Attributes; namespace JWLSLMerge.Data.Models { public class BlockRange { [
get; set; } public int BlockType { get; set; } public int Identifier { get; set; } public int? StartToken { get; set; } public int? EndToken { get; set; } public int UserMarkId { get; set; } } }
{ "context_start_lineno": 0, "file": "JWLSLMerge.Data/Models/BlockRange.cs", "groundtruth_start_lineno": 6, "repository": "pliniobrunelli-JWLSLMerge-7fe66dc", "right_context_start_lineno": 8, "task_id": "project_cc_csharp/2549" }
{ "list": [ { "filename": "JWLSLMerge.Data/JWDal.cs", "retrieved_chunk": " {\n connectionString = $\"Data Source={dbPath}\";\n }\n public IEnumerable<T> TableList<T>()\n {\n using (IDbConnection cnn = new SQLiteConnection(connectionString))\n ...
Ignore] public int BlockRangeId {
{ "list": [ { "filename": "source/ViewModels/NowPlayingPanelViewModel.cs", "retrieved_chunk": " public ICommand AddGameCachesCommand { get; private set; }\n public ICommand InstallCachesCommand { get; private set; }\n public ICommand UninstallCachesCommand { get; private set; }\n ...
using NowPlaying.Utils; using NowPlaying.Views; using Playnite.SDK; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Windows; using System.Windows.Input; using static NowPlaying.ViewModels.CacheRootsViewModel; namespace NowPlaying.ViewModels { publi...
get; set; } public string EmptyRootsVisible => CacheRoots.Count > 0 ? "Collapsed" : "Visible"; public string NonEmptyRootsVisible => CacheRoots.Count > 0 ? "Visible" : "Collapsed"; public CacheRootsViewModel(NowPlaying plugin) { this.plugin = plugin; this.Custo...
{ "context_start_lineno": 0, "file": "source/ViewModels/CacheRootsViewModel.cs", "groundtruth_start_lineno": 22, "repository": "gittromney-Playnite-NowPlaying-23eec41", "right_context_start_lineno": 23, "task_id": "project_cc_csharp/2418" }
{ "list": [ { "filename": "source/ViewModels/NowPlayingPanelViewModel.cs", "retrieved_chunk": " public bool MultipleCacheRoots => plugin.cacheManager.CacheRoots.Count > 1;\n public string GameCachesVisibility => AreCacheRootsNonEmpty ? \"Visible\" : \"Collapsed\";\n public string ...
CacheRootViewModel SelectedCacheRoot {
{ "list": [ { "filename": "Canvas.MAUI/ViewModels/MainViewModel.cs", "retrieved_chunk": " if(SelectedStudent == null)\n {\n return;\n }\n StudentService.Current.Delete(SelectedStudent);\n NotifyPropertyChanged(\"Students\");\n ...
using Canvas.CLI.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Canvas.Library.Services { public class StudentService { private static StudentService? instance; private static object _lock = new object(); ...
private StudentService() { enrollments = new List<Student> { new Student{Id = 1, Name = "John Smith"}, new Student{Id = 2, Name = "Bob Smith"}, new Student{Id = 3, Name = "Sue Smith"} }; } public List<S...
{ "context_start_lineno": 0, "file": "Canvas.Library/Services/StudentService.cs", "groundtruth_start_lineno": 28, "repository": "crmillsfsu-Canvas_Su2023-bcfeccd", "right_context_start_lineno": 29, "task_id": "project_cc_csharp/2544" }
{ "list": [ { "filename": "Canvas.MAUI/ViewModels/MainViewModel.cs", "retrieved_chunk": " {\n PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));\n }\n }\n}", "score": 8.785321644335642 }, { "filename": "Canvas.MAUI/ViewModels/Main...
Student> enrollments;
{ "list": [ { "filename": "ChatGPTforRhino/RhinoCommand.cs", "retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Rhino;\nnamespace ChatGPTforRhino\n{\n\tpublic class RhinoCommands\n\t{", "score": 25.3...
using ChatGPTConnection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChatUI { public delegate void ChatGPTResponseEventHandler(object sender, ChatGPTResponseEventArgs e); public class ChatGPTResponseEventArgs : EventArgs { public
get; private set; } public ChatGPTResponseEventArgs(ChatGPTResponseModel response) { Response = response; } } }
{ "context_start_lineno": 0, "file": "ChatUI/ChatGPTResponseEvent.cs", "groundtruth_start_lineno": 13, "repository": "4kk11-ChatGPTforRhino-382323e", "right_context_start_lineno": 14, "task_id": "project_cc_csharp/2535" }
{ "list": [ { "filename": "ChatGPTforRhino/RhinoCommand.cs", "retrieved_chunk": "\t\tstring[] Commands;\n\t\tpublic RhinoCommands(string[] commands) \n\t\t{\n\t\t\tif (commands == null || commands.Length == 0) throw new Exception(\"command is null or has no content\");\n\t\t\tthis.Commands = commands;...
ChatGPTResponseModel Response {
{ "list": [ { "filename": "Ultrapain/Patches/FleshPrison.cs", "retrieved_chunk": " }\n class FleshPrisonRotatingInsignia : MonoBehaviour\n {\n List<VirtueInsignia> insignias = new List<VirtueInsignia>();\n public FleshPrison prison;\n public float damageMod = 1f;\n ...
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { public class HideousMassProjectile : MonoBehaviour { public float damageBuf = 1f; public float speedBuf = 1f; } public class Projectile_Explode_Patch { static void Postfix(
HideousMassProjectile flag = __instance.gameObject.GetComponent<HideousMassProjectile>(); if (flag == null) return; GameObject createInsignia(float size, int damage) { GameObject insignia = GameObject.Instantiate(Plugin.virtueInsignia, __...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/HideousMass.cs", "groundtruth_start_lineno": 13, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 15, "task_id": "project_cc_csharp/2420" }
{ "list": [ { "filename": "Ultrapain/Patches/Cerberus.cs", "retrieved_chunk": " {\n eid = GetComponent<EnemyIdentifier>();\n head = transform.Find(\"Armature/Control/Waist/Chest/Chest_001/Head\");\n if (head == null)\n head = UnityUtils.GetChildBy...
Projectile __instance) {
{ "list": [ { "filename": "src/OGXbdmDumper/Connection.cs", "retrieved_chunk": " /// <summary>\n /// The time in milliseconds to wait while sending data before throwing a TimeoutException.\n /// </summary>\n public int SendTimeout { get => _client.SendTimeout; set => _clien...
using System.Text; using System.Net; using Microsoft.Extensions.Caching.Memory; using Serilog; using Serilog.Events; using Iced.Intel; using static Iced.Intel.AssemblerRegisters; namespace OGXbdmDumper { public class Xbox : IDisposable { #region Properties private bool _disposed; priv...
get; private set; } public Kernel Kernel { get; private set; } public List<Module> Modules => GetModules(); public List<Thread> Threads => GetThreads(); public Version Version => GetVersion(); #endregion #region Connection public void Connect(string host, ...
{ "context_start_lineno": 0, "file": "src/OGXbdmDumper/Xbox.cs", "groundtruth_start_lineno": 69, "repository": "Ernegien-OGXbdmDumper-07a1e82", "right_context_start_lineno": 70, "task_id": "project_cc_csharp/2575" }
{ "list": [ { "filename": "src/OGXbdmDumper/Connection.cs", "retrieved_chunk": " /// <summary>\n /// Initializes the session.\n /// </summary>\n public Connection()\n {\n // initialize defaults\n Reader = new BinaryReader(this);\n Wri...
XboxMemoryStream Memory {
{ "list": [ { "filename": "Standard.REST.RESTFulSense/Services/Foundations/StatusDetails/StatusDetailService.Validations.cs", "retrieved_chunk": "// -------------------------------------------------------------\n// Copyright (c) - The Standard Community - All rights reserved.\n// --------------------...
// ------------------------------------------------------------- // Copyright (c) - The Standard Community - All rights reserved. // ------------------------------------------------------------- using System; using System.IO; using System.Linq; using Newtonsoft.Json; using Standard.REST.RESTFulSense.Models.Foundations...
private delegate StatusDetail ReturningStatusDetailFunction(); private IQueryable<StatusDetail> TryCatch(ReturningStatusDetailsFunction returningStatusDetailsFunction) { try { return returningStatusDetailsFunction(); } catch (Json...
{ "context_start_lineno": 0, "file": "Standard.REST.RESTFulSense/Services/Foundations/StatusDetails/StatusDetailService.Exceptions.cs", "groundtruth_start_lineno": 16, "repository": "The-Standard-Organization-Standard.REST.RESTFulSense-7598bbe", "right_context_start_lineno": 17, "task_id": "project_cc_cshar...
{ "list": [ { "filename": "Standard.REST.RESTFulSense/Services/Foundations/StatusDetails/StatusDetailService.cs", "retrieved_chunk": " private readonly IStorageBroker storageBroker;\n public StatusDetailService(IStorageBroker storageBroker) =>\n this.storageBroker = storageBro...
StatusDetail> ReturningStatusDetailsFunction();
{ "list": [ { "filename": "Magic.IndexedDb/Models/MagicQuery.cs", "retrieved_chunk": " JsonQueries = new List<string>();\n }\n public List<StoredMagicQuery> storedMagicQueries { get; set; } = new List<StoredMagicQuery>();\n public bool ResultsUnique { get; set; } = true...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using System.Linq.Expressions; using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Text.Json; using System.Threading.Tasks; using Magic.IndexedDb.Helpers; using Magic.IndexedDb.Models; ...
var trans = GenerateTransaction(); try { await CallJavascriptVoid(IndexedDbFunctions.BULKADD_ITEM, trans.trans, DbName, storeName, recordsToBulkAdd); } catch (JSException e) { RaiseEvent(trans.trans, true, e.Message...
{ "context_start_lineno": 0, "file": "Magic.IndexedDb/IndexDbManager.cs", "groundtruth_start_lineno": 325, "repository": "magiccodingman-Magic.IndexedDb-a279d6d", "right_context_start_lineno": 327, "task_id": "project_cc_csharp/2493" }
{ "list": [ { "filename": "Magic.IndexedDb/Models/MagicQuery.cs", "retrieved_chunk": " public MagicQuery<T> ResultsNotUnique()\n {\n ResultsUnique = false;\n return this;\n }\n public MagicQuery<T> Take(int amount)\n {\n StoredMagicQu...
BlazorDbEvent> BulkAddRecordAsync<T>(string storeName, IEnumerable<T> recordsToBulkAdd) {
{ "list": [ { "filename": "Samples/UniFlux.Sample.2/Sample_2.cs", "retrieved_chunk": "{\n public sealed class Sample_2 : MonoFlux\n {\n protected override void OnFlux(in bool condition)\n {\n \"Sample_2\".Store(Method, condition);\n }\n private void Start()...
using System; using UnityEngine; namespace Kingdox.UniFlux.Benchmark { public sealed class Benchmark_Nest_UniFlux : MonoFlux { [SerializeField] private Marker _mark_fluxAttribute = new Marker() { K = "NestedModel Flux Attribute" }; [SerializeField] private Marker _mar...
[Flux("B")] private void B() => "C".Dispatch(); [Flux("C")] private void C() => "D".Dispatch(); [Flux("D")] private void D() => "E".Dispatch(); [Flux("E")] private void E() {} private void Store_1() => "2".Dispatch(); private void Store_2() => "3".Dispatch(); pri...
{ "context_start_lineno": 0, "file": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs", "groundtruth_start_lineno": 35, "repository": "xavierarpa-UniFlux-a2d46de", "right_context_start_lineno": 36, "task_id": "project_cc_csharp/2458" }
{ "list": [ { "filename": "Samples/UniFlux.Sample.2/Sample_2.cs", "retrieved_chunk": " }\n private void Method() \n {\n Debug.Log(\"Sample_2 !\");\n }\n }\n}", "score": 22.29461282751156 }, { "filename": "Samples/UniFlux.Sample.Experimental...
Flux("A")] private void A() => "B".Dispatch();
{ "list": [ { "filename": "Editor/GraphEditor/QuestGraphView.cs", "retrieved_chunk": " }\n private void RemovePort(NodeQuestGraph node, Port p)\n {\n var targetEdge = edges.ToList().Where(x => x.output.portName == p.portName && x.output.node == p.node);\n if ...
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; using UnityEditor.Experimental.GraphView; using UnityEditor; using UnityEngine.Windows; using System; namespace QuestSystem.QuestEditor { public class QuestG...
List<QuestObjective> Listaux = new List<QuestObjective>(); foreach (QuestObjectiveGraph obj in qog) { QuestObjective aux = new QuestObjective { keyName = obj.keyName, maxItems = obj.maxItems, ...
{ "context_start_lineno": 0, "file": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "groundtruth_start_lineno": 318, "repository": "lluispalerm-QuestSystem-cd836cc", "right_context_start_lineno": 320, "task_id": "project_cc_csharp/2572" }
{ "list": [ { "filename": "Editor/GraphEditor/QuestGraphView.cs", "retrieved_chunk": " node.outputContainer.Remove(p);\n node.RefreshPorts();\n node.RefreshExpandedState();\n }\n public void removeQuestObjective(NodeQuestGraph nodes, QuestObjectiveGraph o...
QuestObjective[] createObjectivesFromGraph(List<QuestObjectiveGraph> qog) {
{ "list": [ { "filename": "ChatUI/MVVM/ViewModel/MainViewModel.cs", "retrieved_chunk": "\t\tpublic string Message\n\t\t{\n\t\t\tget { return _message; }\n\t\t\tset\n\t\t\t{\n\t\t\t\t_message = value;\n\t\t\t\tOnPropertyChanged();\n\t\t\t}\n\t\t}\n\t\tprivate string CatIconPath => Path.Combine(MainWind...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Window...
public MainWindow() { InitializeComponent(); var vm = this.DataContext as MainViewModel; } private void Border_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { DragMove(); } } private void MinimizeButton_Click(object sender, Routed...
{ "context_start_lineno": 0, "file": "ChatUI/MainWindow.xaml.cs", "groundtruth_start_lineno": 39, "repository": "4kk11-ChatGPTforRhino-382323e", "right_context_start_lineno": 40, "task_id": "project_cc_csharp/2587" }
{ "list": [ { "filename": "ChatUI/MVVM/ViewModel/MainViewModel.cs", "retrieved_chunk": "\t\tpublic MainViewModel()\n\t\t{\n\t\t\tMessages = new ObservableCollection<MessageModel>();\n\t\t\t//ビュー(?)を取得\n\t\t\tvar window = Application.Current.Windows.OfType<Window>().FirstOrDefault(x => x is MainWindow)...
ChatGPTResponseEventHandler ResponseReceived;
{ "list": [ { "filename": "src/Models/Resource.cs", "retrieved_chunk": "using System.Text.Json.Serialization;\nnamespace Beeching.Models\n{\n internal class Resource\n {\n [JsonPropertyName(\"id\")]\n public string Id { get; set; }\n [JsonPropertyName(\"name\")]\n pu...
namespace Beeching.Models { internal class AxeStatus { public List<
get; set; } public bool Status { get; set; } public AxeStatus() { AxeList = new(); Status = true; } } }
{ "context_start_lineno": 0, "file": "src/Models/AxeStatus.cs", "groundtruth_start_lineno": 4, "repository": "irarainey-beeching-e846af0", "right_context_start_lineno": 5, "task_id": "project_cc_csharp/2593" }
{ "list": [ { "filename": "src/Models/RoleDefinitionPermissions.cs", "retrieved_chunk": " public List<string> DataActions { get; set; }\n [JsonPropertyName(\"notDataActions\")]\n public List<string> NotDataActions { get; set; }\n public RoleDefinitionPermission()\n {...
Resource> AxeList {
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Extensions/FolioCafExtension.cs", "retrieved_chunk": " }\n public static async Task<XDocument> Descargar(this Task<IFolioCaf> instance)\n {\n return await (await instance).Descargar();\n }\n public stat...
using System.Xml.Linq; using EnumsNET; using LibreDteDotNet.Common; using LibreDteDotNet.RestRequest.Help; using LibreDteDotNet.RestRequest.Infraestructure; using LibreDteDotNet.RestRequest.Interfaces; namespace LibreDteDotNet.RestRequest.Services { internal class FolioCafService : ComunEnum, IFolioCaf { ...
using HttpResponseMessage? msg = await repositoryWeb.Send( new HttpRequestMessage(HttpMethod.Post, Properties.Resources.UrlCafConfirmaFile) { Content = new FormUrlEncodedContent( new List<KeyValuePair<string, string>>() ...
{ "context_start_lineno": 0, "file": "LibreDteDotNet.RestRequest/Services/FolioCafService.cs", "groundtruth_start_lineno": 202, "repository": "sergiokml-LibreDteDotNet.RestRequest-6843109", "right_context_start_lineno": 204, "task_id": "project_cc_csharp/2508" }
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Services/ContribuyenteService.cs", "retrieved_chunk": " }\n )\n }\n )!;\n return await msg.Content.ReadAsStringAsync();\n }\n public async Task<IContribuye...
IFolioCaf> Confirmar() {
{ "list": [ { "filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractColorValueControlTrackCustomEditor.cs", "retrieved_chunk": " }\n else\n {\n textures.Add(customClip, tex); \n }\n return tex;\n ...
using System.Collections.Generic; using UnityEditor; using UnityEditor.Timeline; using UnityEngine; using UnityEngine.Timeline; namespace dev.kemomimi.TimelineExtension.AbstractValueControlTrack.Editor { internal static class AbstractBoolValueControlTrackEditorUtility { internal static Color PrimaryCol...
public override void OnInspectorGUI() { DrawDefaultInspector(); } } }
{ "context_start_lineno": 0, "file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractBoolValueControlTrackCustomEditor.cs", "groundtruth_start_lineno": 87, "repository": "nmxi-Unity_AbstractTimelineExtention-b518049", "right_context_start_lineno": 90, "task_id": "project_cc_csharp/2...
{ "list": [ { "filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractColorValueControlTrackCustomEditor.cs", "retrieved_chunk": " public class AbstractColorValueControlClipEditor : UnityEditor.Editor\n {\n public override void OnInspectorGUI()\n {\n ...
AbstractBoolValueControlClip))] public class AbstractBoolValueControlClipEditor : UnityEditor.Editor {
{ "list": [ { "filename": "src/IssueSummaryApi/Helpers/OpenAIHelper.cs", "retrieved_chunk": "using Azure.AI.OpenAI;\nusing Azure;\nusing WebApi.Configurations;\nusing WebApi.Models;\nnamespace WebApi.Helpers\n{\n public interface IOpenAIHelper\n {\n Task<ChatCompletionResponse> GetChatCom...
using Octokit; using WebApi.Configurations; using WebApi.Helpers; using WebApi.Models; namespace WebApi.Services { public interface IGitHubService { Task<GitHubIssueCollectionResponse> GetIssuesAsync(GitHubApiRequestHeaders headers, GitHubApiRequestQueries req); Task<
Task<GitHubIssueItemSummaryResponse> GetIssueSummaryAsync(int id, GitHubApiRequestHeaders headers, GitHubApiRequestQueries req); } public class GitHubService : IGitHubService { private readonly GitHubSettings _settings; private readonly IOpenAIHelper _helper; public GitHu...
{ "context_start_lineno": 0, "file": "src/IssueSummaryApi/Services/GitHubService.cs", "groundtruth_start_lineno": 12, "repository": "Azure-Samples-vs-apim-cuscon-powerfx-500a170", "right_context_start_lineno": 13, "task_id": "project_cc_csharp/2556" }
{ "list": [ { "filename": "src/IssueSummaryApi/Helpers/OpenAIHelper.cs", "retrieved_chunk": " public class OpenAIHelper : IOpenAIHelper\n {\n private readonly AzureOpenAISettings _settings;\n public OpenAIHelper(AzureOpenAISettings settings)\n {\n this._settings =...
GitHubIssueItemResponse> GetIssueAsync(int id, GitHubApiRequestHeaders headers, GitHubApiRequestQueries req);
{ "list": [ { "filename": "src/SKernel/KernelExtensions.cs", "retrieved_chunk": " _.AddOpenAITextCompletionService(\"text\", config.Models.Text, api.Text);\n if (api.Embedding != null)\n _.AddOpenAIEmbeddingGenerationService(\"embedding\", config.Models.Embedding, api.E...
using Microsoft.SemanticKernel.Orchestration; using Microsoft.SemanticKernel; using SKernel.Factory.Config; using SKernel.Factory; using Microsoft.AspNetCore.Http; namespace SKernel.Service { public static class Extensions { public static ApiKey ToApiKeyConfig(this HttpRequest request) { ...
var api = request.ToApiKeyConfig(); kernel = api is { Text: { }, Embedding: { } } ? factory.Create(api, selected) : null; return kernel != null; } public static IResult ToResult(this SKContext result, IList<string>? skills) => (result.ErrorOccurred) ? Re...
{ "context_start_lineno": 0, "file": "src/SKernel.Services/Extensions.cs", "groundtruth_start_lineno": 27, "repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be", "right_context_start_lineno": 30, "task_id": "project_cc_csharp/2609" }
{ "list": [ { "filename": "src/SKernel/Headers.cs", "retrieved_chunk": "namespace SKernel\n{\n public static class Headers\n {\n public const string TextCompletionKey = \"x-sk-text-completion-key\";\n public const string ChatCompletionKey = \"x-sk-chat-completion-key\";\n p...
SemanticKernelFactory factory, out IKernel? kernel, IList<string>? selected = null) {
{ "list": [ { "filename": "Ultrapain/Plugin.cs", "retrieved_chunk": " public static void UpdateID(string id, string newName)\n {\n if (!registered || StyleHUD.Instance == null)\n return;\n (idNameDict.GetValue(StyleHUD.Instance) as...
using HarmonyLib; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using UnityEngine; namespace Ultrapain.Patches { public class OrbitalStrikeFlag : MonoBehaviour { public CoinChainList chainList; public bool isOrbitalRay = false; ...
class StateInfo { public bool canPostStyle = false; public OrbitalExplosionInfo info = null; } static bool Prefix(EnemyIdentifier __instance, out StateInfo __state, Vector3 __2, ref float __3) { //if (Coin_ReflectRevolver.shootingCoin == las...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/OrbitalStrike.cs", "groundtruth_start_lineno": 480, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 481, "task_id": "project_cc_csharp/2442" }
{ "list": [ { "filename": "Ultrapain/Plugin.cs", "retrieved_chunk": " {\n return typeof(T).GetMethod(name, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);\n }\n private static Dictionary<MethodInfo, HarmonyMethod> methodCache...
Coin lastExplosiveCoin = null;
{ "list": [ { "filename": "Runtime/Core/Internal/IStore.cs", "retrieved_chunk": " ///<summary>\n /// Flux Storage Interface\n ///</summary>\n internal interface IStore<in TKey, in TStorage>\n {\n ///<summary>\n /// Store TStorage with TKey\n ///</summary>\n v...
/* Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox') Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
/// <summary> /// Dispatch the TKey and return TReturn /// </summary> TReturn Dispatch(TKey key); } /// <summary> /// TKey TParam TReturn /// </summary> internal interface IFluxParamReturn<in TKey, in TParam, out TReturn, in TStorage> : IStore<TKey, TStorage> ...
{ "context_start_lineno": 0, "file": "Runtime/Core/Internal/IFlux.cs", "groundtruth_start_lineno": 46, "repository": "xavierarpa-UniFlux-a2d46de", "right_context_start_lineno": 48, "task_id": "project_cc_csharp/2495" }
{ "list": [ { "filename": "Runtime/Core/Internal/FuncFluxParam.cs", "retrieved_chunk": " {\n if(dictionary.TryGetValue(key, out var values))\n {\n if (condition) dictionary[key] += func;\n else\n {\n values -=...
TKey, out TReturn, in TStorage> : IStore<TKey, TStorage> {
{ "list": [ { "filename": "Assets/SimplestarGame/Network/Scripts/Scene/SceneContext.cs", "retrieved_chunk": "using UnityEngine;\nnamespace SimplestarGame\n{\n public class SceneContext : MonoBehaviour\n {\n [SerializeField] internal NetworkPlayerInput PlayerInput;\n [SerializeField...
using UnityEngine; namespace SimplestarGame { public class TemplateTexts : MonoBehaviour { [SerializeField]
[SerializeField] ButtonPressDetection buttonHello; [SerializeField] ButtonPressDetection buttonGood; [SerializeField] ButtonPressDetection buttonOK; [SerializeField] TMPro.TMP_InputField inputField; void Start() { this.buttonHi.onReleased += this.OnClickHi; ...
{ "context_start_lineno": 0, "file": "Assets/SimplestarGame/Network/Scripts/Sample/TemplateTexts.cs", "groundtruth_start_lineno": 6, "repository": "simplestargame-SimpleChatPhoton-4ebfbd5", "right_context_start_lineno": 7, "task_id": "project_cc_csharp/2625" }
{ "list": [ { "filename": "Assets/SimplestarGame/Network/Scripts/Tools/SimpleCameraController.cs", "retrieved_chunk": " {\n public float yaw;\n public float pitch;\n public float roll;\n public float x;\n public float y;\n public...
ButtonPressDetection buttonHi;
{ "list": [ { "filename": "Ultrapain/Patches/Stalker.cs", "retrieved_chunk": "using HarmonyLib;\nusing ULTRAKILL.Cheats;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n public class Stalker_SandExplode_Patch\n {\n static bool Prefix(Stalker __instance, ref int ___difficulty, ref En...
using HarmonyLib; using System.Collections.Generic; using UnityEngine; namespace Ultrapain.Patches { class HookArm_FixedUpdate_Patch { static bool Prefix(HookArm __instance, ref Grenade ___caughtGrenade, ref
if (___caughtGrenade != null && ___caughtGrenade.rocket && !___caughtGrenade.playerRiding && MonoSingleton<WeaponCharges>.Instance.rocketFrozen) { if (__instance.state == HookState.Throwing) { if (!MonoSingleton<InputManager>.Instance.InputSou...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Whiplash.cs", "groundtruth_start_lineno": 8, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 10, "task_id": "project_cc_csharp/2446" }
{ "list": [ { "filename": "Ultrapain/Patches/FleshPrison.cs", "retrieved_chunk": " {\n if (__instance.altVersion)\n return true;\n if (__instance.eid == null)\n __instance.eid = __instance.GetComponent<EnemyIdentifier>();\n __instan...
Vector3 ___caughtPoint, ref Vector3 ___hookPoint, ref float ___cooldown, ref List<Rigidbody> ___caughtObjects) {
{ "list": [ { "filename": "source/Views/TopPanelView.xaml.cs", "retrieved_chunk": "using NowPlaying.ViewModels;\nusing System.Windows.Controls;\nnamespace NowPlaying.Views\n{\n /// <summary>\n /// Interaction logic for PercentDone.xaml\n /// </summary>\n public partial class TopPanelView ...
using NowPlaying.Utils; using NowPlaying.ViewModels; using System.Collections.Generic; using System.Linq; using System.Windows.Controls; using System.Windows.Input; namespace NowPlaying.Views { /// <summary> /// Interaction logic for AddGameCachesView.xaml /// </summary> public partial class AddGameCac...
public AddGameCachesView(AddGameCachesViewModel viewModel) { InitializeComponent(); DataContext = viewModel; this.viewModel = viewModel; } public void EligibleGames_OnMouseUp(object sender, MouseButtonEventArgs e) { viewModel.Sel...
{ "context_start_lineno": 0, "file": "source/Views/AddGameCachesView.xaml.cs", "groundtruth_start_lineno": 14, "repository": "gittromney-Playnite-NowPlaying-23eec41", "right_context_start_lineno": 15, "task_id": "project_cc_csharp/2464" }
{ "list": [ { "filename": "source/Views/InstallProgressView.xaml.cs", "retrieved_chunk": " public InstallProgressView(InstallProgressViewModel progressViewModel)\n {\n InitializeComponent();\n DataContext = progressViewModel;\n }\n }\n}", "score": 78...
AddGameCachesViewModel viewModel;
{ "list": [ { "filename": "src/IssueSummaryApi/Controllers/GitHubController.cs", "retrieved_chunk": " private readonly IGitHubService _github;\n private readonly IOpenAIService _openai;\n private readonly ILogger<GitHubController> _logger;\n public GitHubController(IValidat...
using Microsoft.AspNetCore.Mvc; using WebApi.Models; using WebApi.Services; namespace WebApi.Controllers { [Route("api/[controller]")] [ApiController] [Consumes("application/json")] [Produces("application/json")] public class ChatController : ControllerBase { private readonly IValidati...
var validation = this._validation.ValidateHeaders<ChatCompletionRequestHeaders>(this.Request.Headers); if (validation.Validated != true) { return await Task.FromResult(validation.ActionResult); } var pvr = this._validation.ValidatePayload(req...
{ "context_start_lineno": 0, "file": "src/IssueSummaryApi/Controllers/ChatController.cs", "groundtruth_start_lineno": 28, "repository": "Azure-Samples-vs-apim-cuscon-powerfx-500a170", "right_context_start_lineno": 30, "task_id": "project_cc_csharp/2561" }
{ "list": [ { "filename": "src/IssueSummaryApi/Controllers/GitHubController.cs", "retrieved_chunk": " [HttpGet(\"issues\", Name = \"Issues\")]\n [ProducesResponseType(typeof(GitHubIssueCollectionResponse), StatusCodes.Status200OK)]\n [ProducesResponseType(typeof(ErrorResponse), St...
ChatCompletionRequest req) {
{ "list": [ { "filename": "Microsoft.Build.Shared/FileMatcher.cs", "retrieved_chunk": " private static readonly string s_directorySeparator = new string(Path.DirectorySeparatorChar, 1);\n private static readonly string s_thisDirectory = \".\" + s_directorySeparator;\n public stati...
using Microsoft.Build.Framework; using Microsoft.Build.Shared; using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Build.Utilities { internal static class DependencyTableCache { private class TaskItemItemSpecIgnoreCaseComparer : IEqualityComparer<ITaskItem> { ...
DateTime tableTime = dependencyTable.TableTime; ITaskItem[] tlogFiles = dependencyTable.TlogFiles; for (int i = 0; i < tlogFiles.Length; i++) { if (NativeMethods.GetLastWriteFileUtcTime(FileUtilities.NormalizePath(tlogFiles[i].ItemSpec)) > tableTime) ...
{ "context_start_lineno": 0, "file": "Microsoft.Build.Utilities/DependencyTableCache.cs", "groundtruth_start_lineno": 42, "repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69", "right_context_start_lineno": 44, "task_id": "project_cc_csharp/2377" }
{ "list": [ { "filename": "Microsoft.Build.Shared/FileMatcher.cs", "retrieved_chunk": " private readonly GetFileSystemEntries _getFileSystemEntries;\n internal static readonly char[] directorySeparatorCharacters = FileUtilities.Slashes;\n private static readonly char[] s_invalidPa...
DependencyTableCacheEntry dependencyTable) {
{ "list": [ { "filename": "Ultrapain/Patches/Parry.cs", "retrieved_chunk": " exp.speed *= ConfigManager.grenadeBoostSizeMultiplier.value;\n }\n __instance.superExplosion = explosion;\n flag.temporaryBigExplosion = explosio...
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { class TurretFlag : MonoBehaviour { public int shootCountRemaining = ConfigManager.turretBurstFireCount.value; } class TurretStart { static void Postfix(Turret __instance) { __instance.gameObject....
TurretFlag flag = __instance.GetComponent<TurretFlag>(); if (flag == null) return; flag.shootCountRemaining = ConfigManager.turretBurstFireCount.value; } } }
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Turret.cs", "groundtruth_start_lineno": 55, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 57, "task_id": "project_cc_csharp/2459" }
{ "list": [ { "filename": "Ultrapain/Patches/Cerberus.cs", "retrieved_chunk": " if (flag == null)\n return;\n if (flag.extraDashesRemaining > 0)\n {\n flag.extraDashesRemaining -= 1;\n __instance.SendMessage(\"Tackle\");\n ...
Turret __instance) {
{ "list": [ { "filename": "WAGIapp/AI/AICommands/RemoveNoteCommand.cs", "retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace WAGIapp.AI.AICommands\n{\n internal class RemoveNoteCommand : Command\n ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WAGIapp.AI.AICommands { internal class AddNoteCommand : Command { public override string
public override string Description => "Adds a note to the list"; public override string Format => "add-note | text to add to the list"; public override async Task<string> Execute(Master caller, string[] args) { if (args.Length < 2) return "error! not eno...
{ "context_start_lineno": 0, "file": "WAGIapp/AI/AICommands/AddNoteCommand.cs", "groundtruth_start_lineno": 10, "repository": "Woltvint-WAGI-d808927", "right_context_start_lineno": 11, "task_id": "project_cc_csharp/2629" }
{ "list": [ { "filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs", "retrieved_chunk": " public override string Description => \"Searches the web and returns a list of links and descriptions\";\n public override string Format => \"search-web | querry\";\n public override async ...
Name => "add-note";
{ "list": [ { "filename": "Assets/SimplestarGame/Network/Scripts/Scene/SceneContext.cs", "retrieved_chunk": "using UnityEngine;\nnamespace SimplestarGame\n{\n public class SceneContext : MonoBehaviour\n {\n [SerializeField] internal NetworkPlayerInput PlayerInput;\n [SerializeField...
using UnityEngine; namespace SimplestarGame { public class TemplateTexts : MonoBehaviour { [SerializeField] ButtonPressDetection buttonHi; [SerializeField] ButtonPressDetection buttonHello; [SerializeField] ButtonPressDetection buttonGood; [SerializeField]
[SerializeField] TMPro.TMP_InputField inputField; void Start() { this.buttonHi.onReleased += this.OnClickHi; this.buttonHello.onReleased += this.OnClickHello; this.buttonGood.onReleased += this.OnClickGood; this.buttonOK.onReleased += this.OnClic...
{ "context_start_lineno": 0, "file": "Assets/SimplestarGame/Network/Scripts/Sample/TemplateTexts.cs", "groundtruth_start_lineno": 9, "repository": "simplestargame-SimpleChatPhoton-4ebfbd5", "right_context_start_lineno": 10, "task_id": "project_cc_csharp/2614" }
{ "list": [ { "filename": "Assets/SimplestarGame/Network/Scripts/Scene/SceneContext.cs", "retrieved_chunk": " [SerializeField] internal ButtonPressDetection buttonLeft;\n [SerializeField] internal ButtonPressDetection buttonRight;\n [SerializeField] internal TMPro.TMP_InputField i...
ButtonPressDetection buttonOK;
{ "list": [ { "filename": "Ultrapain/Patches/Stray.cs", "retrieved_chunk": "using HarmonyLib;\nusing UnityEngine;\nusing UnityEngine.AI;\nnamespace Ultrapain.Patches\n{\n public class StrayFlag : MonoBehaviour\n {\n //public int extraShotsRemaining = 6;\n private Animator anim;\n ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UIElements; using UnityEngine.UIElements.UIR; namespace Ultrapain.Patches { class DrillFlag : MonoBehaviour { public Harpoon drill; public Rigidbody rb; public List...
public List<EnemyIdentifier> piercedEids = new List<EnemyIdentifier>(); public Transform currentTargetTrans; public Collider currentTargetCol; public EnemyIdentifier currentTargetEid; void Awake() { if (drill == null) drill = GetComponent<Har...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Screwdriver.cs", "groundtruth_start_lineno": 14, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 15, "task_id": "project_cc_csharp/2461" }
{ "list": [ { "filename": "Ultrapain/Patches/SomethingWicked.cs", "retrieved_chunk": " public MassSpear spearComp;\n public EnemyIdentifier eid;\n public Transform spearOrigin;\n public Rigidbody spearRb;\n public static float SpearTriggerDistance = 80f;\n pub...
EnemyIdentifier, float>> targetEids = new List<Tuple<EnemyIdentifier, float>>();
{ "list": [ { "filename": "Model/Config.cs", "retrieved_chunk": " public WeChatConfig GetConfig(WeChatType weChatType = WeChatType.OfficeAccount)\n {\n var config = this[weChatType.ToString()] as WeChatConfig;\n if (config == null) return new WeChatConfig\n ...
using FayElf.Plugins.WeChat.Applets; using FayElf.Plugins.WeChat.Applets.Model; using FayElf.Plugins.WeChat.OfficialAccount; using System; using System.Collections.Generic; using System.Text; using XiaoFeng; using XiaoFeng.Http; /**************************************************************** * Copyright © (2021) ww...
#endregion #region 运行 /// <summary> /// 运行 /// </summary> /// <typeparam name="T">类型</typeparam> /// <param name="appID">appid</param> /// <param name="appSecret">密钥</param> /// <param name="fun">委托</param> /// <returns></returns> ...
{ "context_start_lineno": 0, "file": "Common.cs", "groundtruth_start_lineno": 79, "repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e", "right_context_start_lineno": 80, "task_id": "project_cc_csharp/2536" }
{ "list": [ { "filename": "OfficialAccount/Template.cs", "retrieved_chunk": " {\n var response = HttpHelper.GetHtml(new HttpRequest\n {\n Method= HttpMethod.Post,\n Address=$\"https://api.weixin.qq.com/cgi-bin/template/api_...
AccessTokenData GetAccessToken(WeChatType weChatType = WeChatType.OfficeAccount) => GetAccessToken(new Config().GetConfig(weChatType));
{ "list": [ { "filename": "Source/TreeifyTask/TaskTree/ITaskNode.cs", "retrieved_chunk": " object ProgressState { get; }\n ITaskNode Parent { get; set; }\n IEnumerable<ITaskNode> ChildTasks { get; }\n TaskStatus TaskStatus { get; }\n void SetAction(Func<IProgressRepo...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace TreeifyTask { public class TaskNode : ITaskNode { private static Random rnd = new Random(); private readonly List<Task> taskObjects = n...
public event ProgressReportingEventHandler Reporting; private bool seriesRunnerIsBusy; private bool concurrentRunnerIsBusy; public TaskNode() { this.Id = rnd.Next() + string.Empty; this.Reporting += OnSelfReporting; } public TaskNode(str...
{ "context_start_lineno": 0, "file": "Source/TreeifyTask/TaskTree/TaskNode.cs", "groundtruth_start_lineno": 15, "repository": "intuit-TreeifyTask-4b124d4", "right_context_start_lineno": 17, "task_id": "project_cc_csharp/2611" }
{ "list": [ { "filename": "Source/TreeifyTask.WpfSample/TaskNodeViewModel.cs", "retrieved_chunk": " public TaskNodeViewModel(ITaskNode baseTaskNode)\n {\n this.baseTaskNode = baseTaskNode;\n PopulateChild(baseTaskNode);\n baseTaskNode.Reporting += BaseTas...
IProgressReporter, CancellationToken, Task> action = async (rep, tok) => await Task.Yield();
{ "list": [ { "filename": "CalloutInterfaceAPI/Records/PedRecord.cs", "retrieved_chunk": "namespace CalloutInterfaceAPI.Records\n{\n using System;\n using LSPD_First_Response.Engine.Scripting.Entities;\n /// <summary>\n /// Represents a ped record.\n /// </summary>\n public class Pe...
namespace CalloutInterfaceAPI.Records { using LSPD_First_Response.Engine.Scripting.Entities; /// <summary> /// Represents a vehicle record looked up on the computer. /// </summary> public class VehicleRecord :
/// <summary> /// Initializes a new instance of the <see cref="VehicleRecord"/> class. /// </summary> /// <param name="vehicle">The Rage.Vehicle to base the record on.</param> public VehicleRecord(Rage.Vehicle vehicle) : base(vehicle) { } ///...
{ "context_start_lineno": 0, "file": "CalloutInterfaceAPI/Records/VehicleRecord.cs", "groundtruth_start_lineno": 7, "repository": "Immersive-Plugins-Team-CalloutInterfaceAPI-2c5a303", "right_context_start_lineno": 9, "task_id": "project_cc_csharp/2651" }
{ "list": [ { "filename": "CalloutInterfaceAPI/Records/PedRecord.cs", "retrieved_chunk": " /// Initializes a new instance of the <see cref=\"PedRecord\"/> class.\n /// </summary>\n /// <param name=\"ped\">The underlying ped.</param>\n public PedRecord(Rage.Ped ped)\n ...
EntityRecord<Rage.Vehicle> {
{ "list": [ { "filename": "Ultrapain/Plugin.cs", "retrieved_chunk": " return raycastHit.point;\n }\n else {\n Vector3 projectedPlayerPos = target.position + MonoSingleton<PlayerTracker>.Instance.GetPlayerVelocity() * 0.35f / speedMod;\n ...
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Ultrapain.Patches { public static class V2Utils { public static Transform GetClosestGrenade() { Transform closestTransform = null; float closestDistance = 1000000; ...
// Calculate the direction vector from the center to the target Vector3 direction = target - center; // Set the Y component of the direction vector to 0 direction.y = 0; // Normalize the direction vector direction.Normalize(); // Re...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/V2Common.cs", "groundtruth_start_lineno": 37, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 39, "task_id": "project_cc_csharp/2474" }
{ "list": [ { "filename": "Ultrapain/Patches/V2Second.cs", "retrieved_chunk": " Vector3 predictedPosition = MonoSingleton<PlayerTracker>.Instance.PredictPlayerPosition(1.0f);\n float velocity = Mathf.Clamp(distance, Mathf.Max(magnitude - 5.0f, 0), magnitude + 5);\n roc...
Vector3 center, Vector3 target) {
{ "list": [ { "filename": "Applets/Applets.cs", "retrieved_chunk": " }\n });\n }\n #endregion\n #region 获取用户手机号\n /// <summary>\n /// 获取用户手机号\n /// </summary>\n /// <param name=\"code\">手机号获取凭证</param>\n /// <returns></r...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using XiaoFeng; using FayElf.Plugins.WeChat.OfficialAccount.Model; /**************************************************************** * Copyright © (2022) www.fayelf.com All Rights Reserved. * * Au...
if (buttons == null || buttons.Count == 0) return new BaseResult { ErrCode = 500, ErrMsg = "数据不能为空." }; var config = this.Config.GetConfig(WeChatType.OfficeAccount); return Common.Execute(config....
{ "context_start_lineno": 0, "file": "OfficialAccount/Menu.cs", "groundtruth_start_lineno": 49, "repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e", "right_context_start_lineno": 51, "task_id": "project_cc_csharp/2555" }
{ "list": [ { "filename": "OfficialAccount/Subscribe.cs", "retrieved_chunk": " return Common.Execute(config.AppID, config.AppSecret, token =>\n {\n var response = HttpHelper.GetHtml(new HttpRequest\n {\n Method = HttpMethod.Post,\n...
ButtonModel> buttons) {
{ "list": [ { "filename": "Assets/Mochineko/YouTubeLiveStreamingClient.Samples/LiveChatMessagesCollectionDemo.cs", "retrieved_chunk": " {\n [SerializeField]\n private string apiKeyPath = string.Empty;\n [SerializeField]\n private string videoIDOrURL = string.Empty;\n ...
#nullable enable using System; using System.Net.Http; using System.Threading; using Cysharp.Threading.Tasks; using Mochineko.Relent.UncertainResult; using Mochineko.YouTubeLiveStreamingClient.Responses; using UniRx; using UnityEngine; namespace Mochineko.YouTubeLiveStreamingClient { /// <summary> /// Collects ...
public IObservable<VideosAPIResponse> OnVideoInformationUpdated => onVideoInformationUpdated; private readonly Subject<LiveChatMessageItem> onMessageCollected = new(); public IObservable<LiveChatMessageItem> OnMessageCollected => onMessageCollected; private bool isCollecting = false; ...
{ "context_start_lineno": 0, "file": "Assets/Mochineko/YouTubeLiveStreamingClient/LiveChatMessagesCollector.cs", "groundtruth_start_lineno": 25, "repository": "mochi-neko-youtube-live-streaming-client-unity-b712d77", "right_context_start_lineno": 26, "task_id": "project_cc_csharp/2591" }
{ "list": [ { "filename": "Assets/Mochineko/YouTubeLiveStreamingClient.Samples/LiveChatMessagesCollectionDemo.cs", "retrieved_chunk": " private LiveChatMessagesCollector? collector;\n private async void Start()\n {\n // Get YouTube API key from file.\n var ap...
VideosAPIResponse> onVideoInformationUpdated = new();
{ "list": [ { "filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs", "retrieved_chunk": " [CustomTimelineEditor(typeof(AbstractIntValueControlTrack))]\n public class AbstractIntValueControlTrackCustomEditor : TrackEditor\n {\...
using System.Collections.Generic; using UnityEditor; using UnityEditor.Timeline; using UnityEngine; using UnityEngine.Timeline; namespace dev.kemomimi.TimelineExtension.AbstractValueControlTrack.Editor { internal static class AbstractColorValueControlTrackEditorUtility { internal static Color PrimaryCo...
public override ClipDrawOptions GetClipOptions(TimelineClip clip) { var clipOptions = base.GetClipOptions(clip); clipOptions.icons = null; clipOptions.highlightColor = AbstractColorValueControlTrackEditorUtility.PrimaryColor; return clipOptions; ...
{ "context_start_lineno": 0, "file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractColorValueControlTrackCustomEditor.cs", "groundtruth_start_lineno": 30, "repository": "nmxi-Unity_AbstractTimelineExtention-b518049", "right_context_start_lineno": 31, "task_id": "project_cc_csharp/...
{ "list": [ { "filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs", "retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractIntValueControlClip))]\n public class AbstractIntValueControlCustomEditor : ClipEditor\n {\...
AbstractColorValueControlClip, Texture2D> textures = new();
{ "list": [ { "filename": "Ultrapain/Patches/Turret.cs", "retrieved_chunk": " static void Postfix(Turret __instance)\n {\n __instance.gameObject.AddComponent<TurretFlag>();\n }\n }\n class TurretShoot\n {\n static bool Prefix(Turret __instance, ref Enemy...
using HarmonyLib; using System.Reflection; using UnityEngine; namespace Ultrapain.Patches { class Mindflayer_Start_Patch { static void Postfix(Mindflayer __instance, ref EnemyIdentifier ___eid) { __instance.gameObject.AddComponent<MindflayerPatch>(); //___eid.SpeedBuff()...
/*for(int i = 0; i < 20; i++) { Quaternion randomRotation = Quaternion.LookRotation(MonoSingleton<PlayerTracker>.Instance.GetTarget().position - __instance.transform.position); randomRotation.eulerAngles += new Vector3(UnityEngine.Random.Range(-15.0f, 15.0f), Uni...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Mindflayer.cs", "groundtruth_start_lineno": 21, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 23, "task_id": "project_cc_csharp/2492" }
{ "list": [ { "filename": "Ultrapain/Plugin.cs", "retrieved_chunk": " get\n {\n if (_lighningBoltSFX == null)\n _lighningBoltSFX = ferryman.gameObject.transform.Find(\"LightningBoltChimes\").gameObject;\n return _lighningBoltSFX;\n...
Mindflayer __instance, ref EnemyIdentifier ___eid, ref LayerMask ___environmentMask, ref bool ___enraged) {
{ "list": [ { "filename": "Runtime/Core/Internal/FuncFlux.cs", "retrieved_chunk": " else if (condition) dictionary.Add(key, func);\n }\n // <summary>\n /// Triggers the function stored in the dictionary with the specified key and returns its return value. \n /// ...
/* Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox') Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
if(dictionary.TryGetValue(key, out var _actions)) { return _actions.Invoke(param); } return default; } } }
{ "context_start_lineno": 0, "file": "Runtime/Core/Internal/FuncFluxParam.cs", "groundtruth_start_lineno": 60, "repository": "xavierarpa-UniFlux-a2d46de", "right_context_start_lineno": 62, "task_id": "project_cc_csharp/2534" }
{ "list": [ { "filename": "Runtime/Core/Internal/FuncFlux.cs", "retrieved_chunk": " return _actions.Invoke();\n }\n return default;\n }\n }\n}", "score": 164.50449202431417 }, { "filename": "Runtime/Core/Internal/FuncFlux.cs", "r...
IFluxParamReturn<TKey, TParam, TReturn, Func<TParam, TReturn>>.Dispatch(TKey key, TParam param) {
{ "list": [ { "filename": "Services/CertificateService.cs", "retrieved_chunk": "namespace GraphNotifications.Services\n{\n /// <summary>\n /// Implements methods to retrieve certificates from Azure Key Vault\n /// </summary>\n public class CertificateService : ICertificateService\n {\n ...
using GraphNotifications.Models; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; using StackExchange.Redis; using System; using System.Text; using System.Threading; namespace GraphNotifications.Services { /// <summary> /// Implements connection to Redis /// ...
private static readonly Encoding encoding = Encoding.UTF8; public CacheService(IRedisFactory redisFactory, ILogger<CacheService> logger) { _redisFactory = redisFactory; _logger = logger; } public async Task<bool> AddAsync<T>(string key, T value,...
{ "context_start_lineno": 0, "file": "Services/CacheService.cs", "groundtruth_start_lineno": 19, "repository": "microsoft-GraphNotificationBroker-b1564aa", "right_context_start_lineno": 20, "task_id": "project_cc_csharp/2644" }
{ "list": [ { "filename": "Services/RedisFactory.cs", "retrieved_chunk": " /// </summary> \n public class RedisFactory : IRedisFactory\n {\n private static Lazy<IConnectionMultiplexer> _multiplexer;\n private static Lazy<IDatabase> _cache;\n private bool _disposed = false...
IRedisFactory _redisFactory;
{ "list": [ { "filename": "Ultrapain/Patches/Stray.cs", "retrieved_chunk": " public GameObject standardProjectile;\n public GameObject standardDecorativeProjectile;\n public int comboRemaining = ConfigManager.strayShootCount.value;\n public bool inCombo = false;\n pu...
using HarmonyLib; using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace Ultrapain.Patches { /*public class ObjectActivator : MonoBehaviour { public int originalInstanceID = 0; public MonoBehaviour activator; void Start() { i...
public GameObject tempNormal; public GameObject tempSuper; public StateInfo() { tempHarmless = tempNormal = tempSuper = null; } } [HarmonyBefore] static bool Prefix(Grenade __instance, out StateInfo __state) {...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/CommonComponents.cs", "groundtruth_start_lineno": 120, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 121, "task_id": "project_cc_csharp/2485" }
{ "list": [ { "filename": "Ultrapain/Patches/Stray.cs", "retrieved_chunk": " public AttackMode currentMode = AttackMode.ProjectileCombo;\n public void Awake()\n {\n anim = GetComponent<Animator>();\n eid = GetComponent<EnemyIdentifier>();\n }\n ...
GameObject tempHarmless;
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/EmotionalCubesGenerator.cs", "retrieved_chunk": " PostPrompt = @\"\"\" .Please generate the prompts only that are coherent with this mood. Write No examples, no explanations.\"\n };\n /// ...
/* * Copyright (C) Antony Vitillo (aka Skarredghost), Perpetual eMotion 2023. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ using RoslynCSharp; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading....
/// <summary> /// The list of cube groups managed by this object. /// Every group contains a list of cubes to which logic can be added at runtime /// </summary> private List<ObjectsGroupLogicHandler> m_managedCubeGroups; /// <inheritdoc /> public AiPromptTempla...
{ "context_start_lineno": 0, "file": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/CubesManager.cs", "groundtruth_start_lineno": 61, "repository": "Perpetual-eMotion-DynaimicApps-46c94e0", "right_context_start_lineno": 62, "task_id": "project_cc_csharp/2582" }
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/EmotionalCubesGenerator.cs", "retrieved_chunk": " /// <inheritdoc />\n public AiPromptTemplate PromptTemplate => s_promptTemplateForUnityScripts;\n /// <summary>\n /// Start\n //...
GenerativeLogicManager m_generativeLogicManager;
{ "list": [ { "filename": "Editor/GraphEditor/QuestGraphEditor.cs", "retrieved_chunk": " NodeQuestGraph entryNode = _questGraph.GetEntryPointNode();\n newQuest.misionName = entryNode.misionName;\n newQuest.isMain = entryNode.isMain;\n newQuest.startDay = ent...
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; using UnityEditor.Experimental.GraphView; using UnityEditor; using UnityEngine.Windows; using System; namespace QuestSystem.QuestEditor { public class QuestG...
var connectedPorts = Edges.Where(x => x.input.node != null).ToArray(); Q.ResetNodeLinksGraph(); foreach (NodeQuest currentNode in nodesInGraph) { currentNode.nextNode.Clear(); } for (int i = 0; i < connectedPorts.Length; i++) ...
{ "context_start_lineno": 0, "file": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "groundtruth_start_lineno": 113, "repository": "lluispalerm-QuestSystem-cd836cc", "right_context_start_lineno": 115, "task_id": "project_cc_csharp/2633" }
{ "list": [ { "filename": "Runtime/QuestManager.cs", "retrieved_chunk": " else\n {\n data = aux;\n misionLog.LoadUpdate(data);\n }\n }\n public void AddMisionToCurrent(Quest q)\n {\n q.nodeActual = q.firtsNo...
NodeQuest> nodesInGraph) {
{ "list": [ { "filename": "src/RosettaStone.Core/Services/CodecMetadataService.cs", "retrieved_chunk": " Expr expr = new Expr(\n _ORM.GetColumnName<CodecMetadata>(nameof(CodecMetadata.GUID)),\n OperatorEnum.Equals,\n guid);\n expr.Prep...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExpressionTree; using FindClosestString; using SyslogLogging; using Watson.ORM; namespace RosettaStone.Core.Services { public class VendorMetadataService { #region Public-Members ...
if (expr == null) throw new ArgumentNullException(nameof(expr)); if (startIndex < 0) throw new ArgumentOutOfRangeException(nameof(startIndex)); if (maxResults > 1000) throw new ArgumentOutOfRangeException(nameof(maxResults)); return _ORM.SelectMany<VendorMetadata>(start...
{ "context_start_lineno": 0, "file": "src/RosettaStone.Core/Services/VendorMetadataService.cs", "groundtruth_start_lineno": 128, "repository": "jchristn-RosettaStone-898982c", "right_context_start_lineno": 130, "task_id": "project_cc_csharp/2681" }
{ "list": [ { "filename": "src/RosettaStone.Core/Services/CodecMetadataService.cs", "retrieved_chunk": " public List<CodecMetadata> Search(Expr expr, int startIndex, int maxResults)\n {\n if (expr == null) throw new ArgumentNullException(nameof(expr));\n if (startIn...
VendorMetadata> Search(Expr expr, int startIndex = 0, int maxResults = 1000) {
{ "list": [ { "filename": "API/API.cs", "retrieved_chunk": "using Moadian.Dto;\nusing Moadian.Services;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Sockets;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace Moadian.API", ...
using Moadian.API; using Moadian.Dto; using Moadian.Services; using Newtonsoft.Json.Linq; namespace Moadian { public class Moadian { private
protected readonly string publicKey; protected readonly string privateKey; protected readonly string orgKeyId; protected readonly string username; protected readonly string baseURL; protected readonly HttpClientService httpClient; public Moadian(string publicKey...
{ "context_start_lineno": 0, "file": "Moadian.cs", "groundtruth_start_lineno": 9, "repository": "Torabi-srh-Moadian-482c806", "right_context_start_lineno": 10, "task_id": "project_cc_csharp/2649" }
{ "list": [ { "filename": "API/API.cs", "retrieved_chunk": "{\n public class Api\n {\n private TokenModel? token = null;\n private readonly string username;\n private readonly HttpClientService httpClient;\n public Api(string username, HttpClientService httpClient)\n ...
TokenModel token;
{ "list": [ { "filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilder.cs", "retrieved_chunk": " /// <inheritdoc/>\n public virtual IEnumerable<EntityExpressionVisitor> GetExpressionVisitors()\n {\n return Visitors.Select(x => x());...
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...
Apply(x => x.Year); } } }
{ "context_start_lineno": 0, "file": "test/Ryan.EntityFrameworkCore.Shard.Tests/EntityFrameworkCore/ModelBuilders/MEntityModelBuilder.cs", "groundtruth_start_lineno": 26, "repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c", "right_context_start_lineno": 28, "task_id": "project_cc_csharp/2581" }
{ "list": [ { "filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilder.cs", "retrieved_chunk": " public abstract void Build<TImplementation>(ModelBuilder modelBuilder, string tableName) where TImplementation : TEntity;\n }\n}", "score": 40.52351094...
EntityConfiguration() {
{ "list": [ { "filename": "src/Nebula.Caching.InMemory/Extensions/InMemoryExtensions/InMemoryExtensions.cs", "retrieved_chunk": "using Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions.DependencyInjection;\nusing Nebula.Caching.Common.Constants;\nusing Nebula.Caching.InMemory.Settings;\n...
using Microsoft.Extensions.DependencyInjection; using Nebula.Caching.InMemory.Extensions.InMemoryExtensions; using Nebula.Caching.InMemory.Extensions.InterceptorExtensions; using Nebula.Caching.InMemory.Extensions.ManagerExtensions; using Nebula.Caching.InMemory.Settings; using Nebula.Caching.InMemory.UtilsExtensions; ...
return services .AddInMemoryInterceptor() .AddInMemoryExtensions(configs) .AddManagerExtensions() .AddUtilsExtensions(); } } }
{ "context_start_lineno": 0, "file": "src/Nebula.Caching.InMemory/Extensions/Extensions.cs", "groundtruth_start_lineno": 11, "repository": "Nebula-Software-Systems-Nebula.Caching-1f3bb62", "right_context_start_lineno": 13, "task_id": "project_cc_csharp/2494" }
{ "list": [ { "filename": "src/Nebula.Caching.InMemory/Extensions/InMemoryExtensions/InMemoryExtensions.cs", "retrieved_chunk": " // CreateDefaultInMemoryConfigurationsIfNull(inMemoryConfigs);\n // SetDefaultValuesBasedOnInMemoryConfigurations(inMemoryConfigs);\n // In...
InMemoryConfigurations configs = null) {
{ "list": [ { "filename": "Ultrapain/Patches/V2Second.cs", "retrieved_chunk": " public class V2SecondFlag : MonoBehaviour\n {\n public V2RocketLauncher rocketLauncher;\n public V2MaliciousCannon maliciousCannon;\n public Collider v2collider;\n public Transform targetG...
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Ultrapain.Patches { public static class V2Utils { public static Transform GetClosestGrenade() { Transform closestTransform = null; float closestDistance = 1000000; ...
public RaycastHit targetHit; public bool alreadyHitPlayer = false; public bool alreadyReflected = false; private void Awake() { proj = GetComponent<Projectile>(); proj.speed = 0; GetComponent<Rigidbody>().isKinematic = true; } ...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/V2Common.cs", "groundtruth_start_lineno": 122, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 123, "task_id": "project_cc_csharp/2511" }
{ "list": [ { "filename": "Ultrapain/Patches/V2Second.cs", "retrieved_chunk": " public Collider v2collider;\n AudioSource aud;\n float altFireCharge = 0f;\n bool altFireCharging = false;\n void Awake()\n {\n aud = GetComponent<AudioSource>();\n ...
Vector3 targetPoint;
{ "list": [ { "filename": "Ultrapain/ConfigManager.cs", "retrieved_chunk": " cerberusPanel = new ConfigPanel(enemyPanel, \"Cerberus\", \"cerberusPanel\", ConfigPanel.PanelFieldType.StandardWithIcon);\n cerberusPanel.icon = Plugin.LoadObject<Sprite>(\"Assets/Textures/UI/Spawn Menu...
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...
public void OnSceneChange(Scene before, Scene after) { StyleIDs.RegisterIDs(); ScenePatchCheck(); string mainMenuSceneName = "b3e7f2f8052488a45b35549efb98d902"; string bootSequenceSceneName = "4f8ecffaa98c2614f89922daf31fa22d"; string current...
{ "context_start_lineno": 0, "file": "Ultrapain/Plugin.cs", "groundtruth_start_lineno": 261, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 262, "task_id": "project_cc_csharp/2553" }
{ "list": [ { "filename": "Ultrapain/ConfigManager.cs", "retrieved_chunk": "\t\t\tturretPanel = new ConfigPanel(enemyPanel, \"Sentry\", \"turretPanel\", ConfigPanel.PanelFieldType.StandardWithIcon);\n turretPanel.icon = Plugin.LoadObject<Sprite>(\"Assets/Textures/UI/Spawn Menu/Turret.png\")...
Text currentDifficultyInfoText;
{ "list": [ { "filename": "Ultrapain/Patches/Leviathan.cs", "retrieved_chunk": " {\n private LeviathanHead comp;\n private Animator anim;\n //private Collider col;\n private LayerMask envMask = new LayerMask() { value = 1 << 8 | 1 << 24 };\n public float playerRoc...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UIElements; using UnityEngine.UIElements.UIR; namespace Ultrapain.Patches { class DrillFlag : MonoBehaviour { public Harpoon drill; public Rigidbody rb; public List...
static bool Prefix(Harpoon __instance, Collider __0) { if (!__instance.drill) return true; if(__0.TryGetComponent(out EnemyIdentifierIdentifier eii)) { if (eii.eid == null) return true; EnemyIdentif...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Screwdriver.cs", "groundtruth_start_lineno": 117, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 118, "task_id": "project_cc_csharp/2517" }
{ "list": [ { "filename": "Ultrapain/Patches/Leviathan.cs", "retrieved_chunk": " public float beamChargeRate = 12f / 1f;\n public int beamRemaining = 0;\n public int projectilesRemaining = 0;\n public float projectileDelayRemaining = 0f;\n private static FieldInfo __...
Harpoon lastHarpoon;
{ "list": [ { "filename": "Assets/EcsDamageBubbles/Runtime/Scripts/DamageBubble/DamageBubbleMovementSystem.cs", "retrieved_chunk": " new MoveJob\n {\n ElapsedTime = (float)SystemAPI.Time.ElapsedTime,\n DeltaTime = SystemAPI.Time.DeltaTime,\n ...
using EcsDamageBubbles.Config; using Unity.Burst; using Unity.Collections; using Unity.Entities; using Unity.Mathematics; using Unity.Transforms; namespace EcsDamageBubbles { /// <summary> /// Replace DamageRequest tag with DamageBubble text /// </summary> public partial struct DamageBubbleSpawnSys...
public EntityCommandBuffer.ParallelWriter Ecb; [ReadOnly] public Entity GlyphEntity; [ReadOnly] public float ElapsedTime; [ReadOnly] public float GlyphZOffset; [ReadOnly] public float GlyphWidth; [ReadOnly] public NativeArray<float4> ColorConfig; ...
{ "context_start_lineno": 0, "file": "Assets/EcsDamageBubbles/Runtime/Scripts/DamageBubbleSpawnSystem.cs", "groundtruth_start_lineno": 57, "repository": "nicloay-ecs-damage-bubbles-8ca1fd7", "right_context_start_lineno": 60, "task_id": "project_cc_csharp/2623" }
{ "list": [ { "filename": "Assets/EcsDamageBubbles/Runtime/Scripts/DamageBubble/DamageBubbleMovementSystem.cs", "retrieved_chunk": " [BurstCompile]\n public partial struct MoveJob : IJobEntity\n {\n public float ElapsedTime;\n public float DeltaTime;\n ...
DamageBubble))] public partial struct ApplyGlyphsJob : IJobEntity {
{ "list": [ { "filename": "IndexDb.Example/Models/Person.cs", "retrieved_chunk": "using Magic.IndexedDb;\nusing Magic.IndexedDb.SchemaAnnotations;\nnamespace IndexDb.Example\n{\n [MagicTable(\"Person\", DbNames.Client)]\n public class Person\n {\n [MagicPrimaryKey(\"id\")]\n pu...
using Magic.IndexedDb.Models; using System; namespace IndexDb.Example.Pages { public partial class Index { private List<
get; set; } = new List<Person>(); private IEnumerable<Person> WhereExample { get; set; } = Enumerable.Empty<Person>(); private double storageQuota { get; set; } private double storageUsage { get; set; } protected override async Task OnAfterRenderAsync(bool firstRender) { ...
{ "context_start_lineno": 0, "file": "IndexDb.Example/Pages/Index.razor.cs", "groundtruth_start_lineno": 7, "repository": "magiccodingman-Magic.IndexedDb-a279d6d", "right_context_start_lineno": 8, "task_id": "project_cc_csharp/2607" }
{ "list": [ { "filename": "IndexDb.Example/Models/Person.cs", "retrieved_chunk": " public string Name { get; set; }\n [MagicIndex(\"Age\")]\n public int _Age { get; set; }\n [MagicIndex]\n public int TestInt { get; set; }\n [MagicUniqueIndex(\"guid\")]\n ...
Person> allPeople {
{ "list": [ { "filename": "NodeBot/github/WebhookService.cs", "retrieved_chunk": " MessageType = messageType;\n }\n }\n public class WebhookService : IService\n {\n public static Thread ListenerThread = new(new ParameterizedThreadStart(Listening));\n public sta...
using EleCho.GoCqHttpSdk; using EleCho.GoCqHttpSdk.Message; using EleCho.GoCqHttpSdk.Post; using NodeBot.Classes; using NodeBot.Command; using NodeBot.Event; using NodeBot.Service; using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata; using System.Text; using System.Thread...
public List<ICommand> Commands = new List<ICommand>(); public List<IService> Services = new List<IService>(); public Queue<Task> ToDoQueue = new Queue<Task>(); public NodeBot(string ip) { session = new(new() { BaseUri = new Uri("ws://" + i...
{ "context_start_lineno": 0, "file": "NodeBot/NodeBot.cs", "groundtruth_start_lineno": 22, "repository": "Blessing-Studio-NodeBot-ca9921f", "right_context_start_lineno": 23, "task_id": "project_cc_csharp/2637" }
{ "list": [ { "filename": "NodeBot/github/WebhookService.cs", "retrieved_chunk": " {\n MessageEvent += (_, e) =>\n {\n if(e.MessageType == \"push\")\n {\n PushEvent pushEvent = Newtonsoft.Json.JsonConvert.DeserializeObject<P...
ReceiveMessageEvent>? ReceiveMessageEvent;
{ "list": [ { "filename": "Ultrapain/Patches/Solider.cs", "retrieved_chunk": " {\n static void Postfix(ZombieProjectiles __instance, ref GameObject ___currentProjectile, ref EnemyIdentifier ___eid, ref GameObject ___player, ref Animator ___anim, ref float ___coolDown)\n {\n ...
using HarmonyLib; using UnityEngine; using UnityEngine.AI; namespace Ultrapain.Patches { public class StrayFlag : MonoBehaviour { //public int extraShotsRemaining = 6; private Animator anim; private EnemyIdentifier eid; public GameObject standardProjectile; public GameO...
if (___eid.enemyType != EnemyType.Stray) return; StrayFlag flag = __instance.gameObject.GetComponent<StrayFlag>(); if (flag == null) return; if (flag.currentMode == StrayFlag.AttackMode.FastHoming) { Projectil...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Stray.cs", "groundtruth_start_lineno": 79, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 81, "task_id": "project_cc_csharp/2537" }
{ "list": [ { "filename": "Ultrapain/Patches/Solider.cs", "retrieved_chunk": " counter.remainingShots -= 1;\n if (counter.remainingShots != 0)\n {\n ___anim.Play(\"Shoot\", 0, Plugin.SoliderShootAnimationStart / 2f);\n ...
NavMeshAgent ___nma, ref Zombie ___zmb) {
{ "list": [ { "filename": "src/Gum/Reader.cs", "retrieved_chunk": " return result;\n }\n /// <summary>\n /// This will parse all the documents in <paramref name=\"inputPath\"/>.\n /// </summary>\n private static CharacterScript[] ParseImplementation(string...
using System; using System.Data.Common; using System.Reflection; using System.Text.RegularExpressions; using Gum.InnerThoughts; using Gum.Utilities; namespace Gum { /// <summary> /// These are the directives used to parse the current line instruction. /// </summary> internal enum TokenChar { ...
string[] lines = File.ReadAllLines(file); Parser parser = new(name: Path.GetFileNameWithoutExtension(file), lines); return parser.Start(); } internal Parser(string name, string[] lines) { _script = new(name); _lines = lines; ...
{ "context_start_lineno": 0, "file": "src/Gum/Parser.cs", "groundtruth_start_lineno": 111, "repository": "isadorasophia-gum-032cb2d", "right_context_start_lineno": 113, "task_id": "project_cc_csharp/2618" }
{ "list": [ { "filename": "src/Gum/Reader.cs", "retrieved_chunk": " IEnumerable<string> files = GetAllLibrariesInPath(inputPath, lastModified);\n foreach (string file in files)\n {\n OutputHelpers.Log($\"✨ Compiling {Path.GetFileName(file)}...\");\n ...
CharacterScript? Parse(string file) {
{ "list": [ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0...
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...
public static GameObject lightningStrikeExplosive; public static GameObject lighningStrikeWindup; public static GameObject explosion; public static GameObject bigExplosion; public static GameObject sandExplosion; public static GameObject virtueInsignia; public st...
{ "context_start_lineno": 0, "file": "Ultrapain/Plugin.cs", "groundtruth_start_lineno": 70, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 71, "task_id": "project_cc_csharp/2559" }
{ "list": [ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " {\n get {\n if(_shockwave == null && Plugin.shockwave != null)\n {\n _shockwave = GameObject.Instantiate(Plugin.shockwave);\n ...
GameObject lightningStrikeExplosiveSetup;
{ "list": [ { "filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/ConversationManager.cs", "retrieved_chunk": " if (await _oaiService.CheckModeration(question.Content, cancellationToken))\n {\n return new ConversationRespons...
using Microsoft.Bot.Builder; using Microsoft.Bot.Schema; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NVA.Enums; using NVA.Models; using NVA.Services; namespace NVA.Bots { public class Bot : ActivityHandler { // Seconds to wait before starting to do incremental updates. private cons...
var task = _sentenceUpdate.Task; if (withDelay) { await Task.WhenAll(task, Task.Delay(UPDATE_INITIAL_DELAY_SECS)).ConfigureAwait(false); } else { await task.ConfigureAwait(false); } return ne...
{ "context_start_lineno": 0, "file": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Bots/Bot.cs", "groundtruth_start_lineno": 110, "repository": "microsoft-NonprofitVirtualAssistant-be69e9b", "right_context_start_lineno": 112, "task_id": "project_cc_csharp/2685" }
{ "list": [ { "filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/ConversationManager.cs", "retrieved_chunk": " await foreach (var message in _oaiService.GetCompletion(completionsOptions, cancellationToken))\n {\n // we don'...
ConversationResponse> WaitSentenceUpdate(bool withDelay = false) {
{ "list": [ { "filename": "src/OGXbdmDumper/XboxMemoryStream.cs", "retrieved_chunk": " public void Write(long position, double value) { Position = position; Write(value); }\n public void WriteAscii(string value) => _writer.Write(Encoding.ASCII.GetBytes(value));\n public void Write...
using Serilog; using System.Diagnostics; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; using System.Text; using System.Text.RegularExpressions; namespace OGXbdmDumper { public class Connection : Stream { #region Properties private bool _disposed; pri...
// argument checks if (host == null) throw new ArgumentNullException(nameof(host)); if (port <= 0 || port > ushort.MaxValue) throw new ArgumentOutOfRangeException(nameof(port)); if (timeout < 0) throw new ArgumentOutOfRangeException(nameof(timeout)); if (_dis...
{ "context_start_lineno": 0, "file": "src/OGXbdmDumper/Connection.cs", "groundtruth_start_lineno": 113, "repository": "Ernegien-OGXbdmDumper-07a1e82", "right_context_start_lineno": 115, "task_id": "project_cc_csharp/2682" }
{ "list": [ { "filename": "src/OGXbdmDumper/XboxMemoryStream.cs", "retrieved_chunk": " public override void Flush() { throw new NotSupportedException(); }\n /// <summary>\n /// TODO: description. possibly return total memory size\n /// </summary>\n public override lo...
ConnectionInfo Connect(string host, int port, int timeout = 500) {
{ "list": [ { "filename": "ProcessManager/Managers/LassoManager.cs", "retrieved_chunk": "using LassoProcessManager.Models.Rules;\nusing ProcessManager.Models.Configs;\nusing ProcessManager.Providers;\nusing System.Diagnostics;\nusing System.Management;\nnamespace ProcessManager.Managers\n{\n publi...
using LassoProcessManager.Models.Rules; using Newtonsoft.Json; using ProcessManager.Models.Configs; using System.Reflection; namespace ProcessManager.Providers { public class ConfigProvider : IConfigProvider { private const string ConfigFileName = "Config.json"; private
private ILogProvider LogProvider { get; set; } public ConfigProvider(ILogProvider logProvider) => this.LogProvider = logProvider; public ManagerConfig GetManagerConfig() { if (managerConfig != null) return managerConfig; string con...
{ "context_start_lineno": 0, "file": "ProcessManager/Providers/ConfigProvider.cs", "groundtruth_start_lineno": 10, "repository": "kenshinakh1-LassoProcessManager-bcc481f", "right_context_start_lineno": 11, "task_id": "project_cc_csharp/2734" }
{ "list": [ { "filename": "ProcessManager/Managers/LassoManager.cs", "retrieved_chunk": " private List<BaseRule> rules;\n private ManagerConfig config;\n private ManagementEventWatcher processStartEvent;\n private IConfigProvider ConfigProvider { get; set; }\n privat...
ManagerConfig managerConfig;
{ "list": [ { "filename": "Editor/AASMenuEditor.cs", "retrieved_chunk": "using NAK.AASEmulator.Runtime;\nusing UnityEditor;\nusing UnityEngine;\nusing static ABI.CCK.Scripts.CVRAdvancedSettingsEntry;\nusing static NAK.AASEmulator.Runtime.AASEmulatorRuntime;\nusing static NAK.AASEmulator.Runtime.AASMe...
using System; using NAK.AASEmulator.Runtime; using UnityEditor; using UnityEngine; using static NAK.AASEmulator.Editor.EditorExtensions; using static NAK.AASEmulator.Runtime.AASEmulatorRuntime; namespace NAK.AASEmulator.Editor { [CustomEditor(typeof(AASEmulatorRuntime))] public class AASEmulatorRuntimeEditor :...
#endregion #region Unity / GUI Methods private void OnEnable() { OnRequestRepaint -= Repaint; OnRequestRepaint += Repaint; _boldFoldoutStyle = new GUIStyle(EditorStyles.foldout) { fontStyle = FontStyle.Bold }; // Initialize...
{ "context_start_lineno": 0, "file": "Editor/AASEmulatorRuntimeEditor.cs", "groundtruth_start_lineno": 15, "repository": "NotAKidOnSteam-AASEmulator-aacd289", "right_context_start_lineno": 16, "task_id": "project_cc_csharp/2724" }
{ "list": [ { "filename": "Editor/AASMenuEditor.cs", "retrieved_chunk": " {\n #region Variables\n private AASMenu _targetScript;\n #endregion\n #region Unity / GUI Methods\n private void OnEnable()\n {\n OnRequestRepaint -= Repaint;\n ...
AASEmulatorRuntime _targetScript;
{ "list": [ { "filename": "OfficialAccount/Model/IndustryTemplateResult.cs", "retrieved_chunk": " }\n #endregion\n #region 属性\n /// <summary>\n /// 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式\n /// </summary>\n [Description(\"模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式\")]...
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...
var config = this.Config.GetConfig(WeChatType.Applets); return Common.Execute(config.AppID, config.AppSecret, token => { var response = HttpHelper.GetHtml(new HttpRequest { Method = HttpMethod.Post, Address = $"...
{ "context_start_lineno": 0, "file": "OfficialAccount/Template.cs", "groundtruth_start_lineno": 130, "repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e", "right_context_start_lineno": 132, "task_id": "project_cc_csharp/2605" }
{ "list": [ { "filename": "OfficialAccount/Model/IndustryTemplateResult.cs", "retrieved_chunk": " #region 方法\n #endregion\n }\n}", "score": 54.63533945637993 }, { "filename": "Applets/Applets.cs", "retrieved_chunk": " public UserPhoneData GetUserPhone(...
IndustryTemplateResult AddTemplate(string templateId) {
{ "list": [ { "filename": "CloudDistributedLock/CloudDistributedLockProvider.cs", "retrieved_chunk": " private readonly CosmosLockClient cosmosLockClient;\n public CloudDistributedLockProvider(CloudDistributedLockProviderOptions options)\n {\n this.options = options;\n ...
using Microsoft.Azure.Cosmos; using System.Net; namespace CloudDistributedLock { public class CosmosLockClient { private readonly CloudDistributedLockProviderOptions options; private readonly Container container; public CosmosLockClient(CloudDistributedLockProviderOptions options) ...
try { /* This will successfully insert the document if no other process is currently holding a lock. * The collection is set with a TTL so that the record will be deleted automatically, * releasing the lock in the event that it is not released ...
{ "context_start_lineno": 0, "file": "CloudDistributedLock/CosmosLockClient.cs", "groundtruth_start_lineno": 16, "repository": "briandunnington-CloudDistributedLock-04f72e6", "right_context_start_lineno": 18, "task_id": "project_cc_csharp/2747" }
{ "list": [ { "filename": "CloudDistributedLock/CloudDistributedLockProvider.cs", "retrieved_chunk": " }\n public async Task<CloudDistributedLock> TryAquireLockAsync(string name)\n {\n var item = await cosmosLockClient.TryAquireLockAsync(name);\n if (item != ...
LockRecord>?> TryAquireLockAsync(string name) {
{ "list": [ { "filename": "HikariEditor/Preview/PDFPageInfo.cs", "retrieved_chunk": "namespace HikariEditor\n{\n internal class PDFPageInfo\n {\n public MainWindow? mainWindow;\n public FileItem? fileItem;\n }\n}", "score": 22.379636986453992 }, { "filename"...
using System.Diagnostics; namespace HikariEditor { internal class LaTeX { async public static Task<bool> Compile(MainWindow mainWindow, FileItem fileItem,
bool tex_compile_error = false; try { using (Process process = new()) { process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "C:\\texlive\\2022\\bin\\win32\\ptex2pdf.exe"; ...
{ "context_start_lineno": 0, "file": "HikariEditor/LaTeX.cs", "groundtruth_start_lineno": 6, "repository": "Himeyama-HikariEditor-c37f978", "right_context_start_lineno": 8, "task_id": "project_cc_csharp/2690" }
{ "list": [ { "filename": "HikariEditor/Preview/PDFPageInfo.cs", "retrieved_chunk": "namespace HikariEditor\n{\n internal class PDFPageInfo\n {\n public MainWindow? mainWindow;\n public FileItem? fileItem;\n }\n}", "score": 22.379636986453992 }, { "filename"...
Editor editor) {
{ "list": [ { "filename": "Ultrapain/ConfigManager.cs", "retrieved_chunk": " v2SecondPanel.icon = Plugin.LoadObject<Sprite>(\"Assets/Textures/UI/Spawn Menu/V2 2nd.png\");\n\t\t\tleviathanPanel = new ConfigPanel(enemyPanel, \"Leviathan\", \"leviathanPanel\", ConfigPanel.PanelFieldType.Standa...
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...
public static GameObject currentDifficultyPanel; public static Text currentDifficultyInfoText; public void OnSceneChange(Scene before, Scene after) { StyleIDs.RegisterIDs(); ScenePatchCheck(); string mainMenuSceneName = "b3e7f2f8052488a45b35549efb98d...
{ "context_start_lineno": 0, "file": "Ultrapain/Plugin.cs", "groundtruth_start_lineno": 259, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 260, "task_id": "project_cc_csharp/2578" }
{ "list": [ { "filename": "Ultrapain/ConfigManager.cs", "retrieved_chunk": "\t\t\t// GLOBAL ENEMY TWEAKS\n\t\t\teidStatEditorPanel = new ConfigPanel(globalEnemyPanel, \"Enemy stat editor\", \"eidStatEditorPanel\");\n eidStatEditorSelector = new EnumField<EnemyType>(eidStatEditorPanel, \"Sel...
GameObject currentDifficultyButton;
{ "list": [ { "filename": "Ultrapain/Patches/Schism.cs", "retrieved_chunk": "using HarmonyLib;\nusing System.ComponentModel;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class ZombieProjectile_ShootProjectile_Patch\n {\n static void Postfix(ZombieProjectiles __instance, ref Game...
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { class Solider_Start_Patch { static void Postfix(ZombieProjectiles __instance, ref
if (___eid.enemyType != EnemyType.Soldier) return; /*___projectile = Plugin.soliderBullet; if (Plugin.decorativeProjectile2.gameObject != null) ___decProjectile = Plugin.decorativeProjectile2.gameObject;*/ __instance.gameObject.AddCompo...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Solider.cs", "groundtruth_start_lineno": 7, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 9, "task_id": "project_cc_csharp/2579" }
{ "list": [ { "filename": "Ultrapain/Patches/Schism.cs", "retrieved_chunk": " proj.target = MonoSingleton<PlayerTracker>.Instance.GetTarget();\n proj.speed *= speedMultiplier;\n proj.turningSpeedMultiplier = turningSpeedMultiplier;\n proj.damage = damage;*/\...
GameObject ___decProjectile, ref GameObject ___projectile, ref EnemyIdentifier ___eid, ref Animator ___anim) {
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Extensions/BoletaExtension.cs", "retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class BoletaExtension\n {\n public static IBoleta Conectar(this IBole...
using LibreDteDotNet.RestRequest.Interfaces; namespace LibreDteDotNet.RestRequest.Infraestructure { public class RestRequest { public ILibro Libro { get; } public IContribuyente Contribuyente { get; } public IFolioCaf FolioCaf { get; } public IBoleta Boleta { get; } publ...
Libro = libroService; Contribuyente = contribuyenteService; FolioCaf = folioCafService; Boleta = boletaService; DocumentoTributario = dTEService; } } }
{ "context_start_lineno": 0, "file": "LibreDteDotNet.RestRequest/Infraestructure/RestRequest.cs", "groundtruth_start_lineno": 15, "repository": "sergiokml-LibreDteDotNet.RestRequest-6843109", "right_context_start_lineno": 20, "task_id": "project_cc_csharp/2610" }
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs", "retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent...
IFolioCaf folioCafService, IBoleta boletaService, IDTE dTEService ) {
{ "list": [ { "filename": "src/RedisCache/CacheService.cs", "retrieved_chunk": "using StackExchange.Redis;\nusing System;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nnamespace RedisCache\n{\n public class CacheService : ICacheService\n {\n private IDatabase _db;\n pub...
using BenchmarkDotNet.Attributes; using HybridRedisCache; using Microsoft.Extensions.Caching.Memory; using StackExchange.Redis; using System; using System.Linq; using System.Text.Json; using System.Threading.Tasks; namespace RedisCache.Benchmark { //[MemoryDiagnoser] [Orderer(BenchmarkDotNet.Order.SummaryOrder...
EasyHybridCache _easyHybridCache; HybridCache _hybridCache; const int redisPort = 6379; const string redisIP = "127.0.0.1"; // "172.23.44.11" "127.0.0.1" const string KeyPrefix = "test_"; const string ReadKeyPrefix = "test_x"; const int ExpireDurationSecond =...
{ "context_start_lineno": 0, "file": "src/RedisCache.Benchmark/BenchmarkManager.cs", "groundtruth_start_lineno": 16, "repository": "bezzad-RedisCache.NetDemo-655b311", "right_context_start_lineno": 17, "task_id": "project_cc_csharp/2767" }
{ "list": [ { "filename": "src/RedisCache/CacheService.cs", "retrieved_chunk": " {\n _db = connection.GetDatabase();\n }\n public async Task<T> GetAsync<T>(string key, Func<Task<T>> acquire, int expireAfterSeconds)\n {\n if (TryGetValue(key, out T valu...
ICacheService _redisCache;
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Extensions/BoletaExtension.cs", "retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class BoletaExtension\n {\n public static IBoleta Conectar(this IBole...
using LibreDteDotNet.RestRequest.Interfaces; namespace LibreDteDotNet.RestRequest.Infraestructure { public class RestRequest { public ILibro Libro { get; } public IContribuyente Contribuyente { get; } public IFolioCaf FolioCaf { get; } public IBoleta Boleta { get; } publ...
Libro = libroService; Contribuyente = contribuyenteService; FolioCaf = folioCafService; Boleta = boletaService; DocumentoTributario = dTEService; } } }
{ "context_start_lineno": 0, "file": "LibreDteDotNet.RestRequest/Infraestructure/RestRequest.cs", "groundtruth_start_lineno": 16, "repository": "sergiokml-LibreDteDotNet.RestRequest-6843109", "right_context_start_lineno": 20, "task_id": "project_cc_csharp/2652" }
{ "list": [ { "filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs", "retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent...
IBoleta boletaService, IDTE dTEService ) {
{ "list": [ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0...
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...
public static GameObject enrageEffect; public static GameObject v2flashUnparryable; public static GameObject ricochetSfx; public static GameObject parryableFlash; public static AudioClip cannonBallChargeAudio; public static Material gabrielFakeMat; public stati...
{ "context_start_lineno": 0, "file": "Ultrapain/Plugin.cs", "groundtruth_start_lineno": 101, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 102, "task_id": "project_cc_csharp/2595" }
{ "list": [ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " {\n get {\n if(_shockwave == null && Plugin.shockwave != null)\n {\n _shockwave = GameObject.Instantiate(Plugin.shockwave);\n ...
GameObject turretFinalFlash;
{ "list": [ { "filename": "QuizGenerator.UI/FormQuizGenerator.cs", "retrieved_chunk": "\t\t\tstring outputFolder = Path.Combine(startupFolder, @\"../../../../output\");\n\t\t\tthis.textBoxOutputFolder.Text = Path.GetFullPath(outputFolder);\n\t\t\tthis.ActiveControl = this.buttonGenerate;\n\t\t}\n\t\tp...
using static QuizGenerator.Core.StringUtils; using Word = Microsoft.Office.Interop.Word; using System.Diagnostics; using Microsoft.Office.Interop.Word; namespace QuizGenerator.Core { public class RandomizedQuizGenerator { private ILogger logger; private Word.Application wordApp; public RandomizedQuizGenerator...
// Initialize the output folder (create it and ensure it is empty) this.logger.Log($"Initializing output folder: {outputFolderPath}"); if (Directory.Exists(outputFolderPath)) { Directory.Delete(outputFolderPath, true); } Directory.CreateDirectory(outputFolderPath); // Prepare the answer sheet...
{ "context_start_lineno": 0, "file": "QuizGenerator.Core/QuizGenerator.cs", "groundtruth_start_lineno": 64, "repository": "SoftUni-SoftUni-Quiz-Generator-b071448", "right_context_start_lineno": 66, "task_id": "project_cc_csharp/2766" }
{ "list": [ { "filename": "QuizGenerator.UI/FormQuizGenerator.cs", "retrieved_chunk": "\t\t\tstring outputFolder = Path.Combine(startupFolder, @\"../../../../output\");\n\t\t\tthis.textBoxOutputFolder.Text = Path.GetFullPath(outputFolder);\n\t\t\tthis.ActiveControl = this.buttonGenerate;\n\t\t}\n\t\tp...
QuizDocument quiz, string inputFilePath, string outputFolderPath) {
{ "list": [ { "filename": "src/Gum/InnerThoughts/Situation.cs", "retrieved_chunk": "using Gum.Utilities;\nusing Newtonsoft.Json;\nusing System.Diagnostics;\nnamespace Gum.InnerThoughts\n{\n [DebuggerDisplay(\"{Name}\")]\n public class Situation\n {\n [JsonProperty]\n public rea...
using Gum.InnerThoughts; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using System.Text.RegularExpressions; namespace Gum.Tests { [TestClass] public class Bungee { private
string[] lines = Regex.Split(input, @"\r?\n|\r"); Parser parser = new("Test", lines); return parser.Start(); } [TestMethod] public void TestSerialization() { const string path = "./resources"; CharacterScript[] results = Rea...
{ "context_start_lineno": 0, "file": "src/Gum.Tests/Bungee.cs", "groundtruth_start_lineno": 10, "repository": "isadorasophia-gum-032cb2d", "right_context_start_lineno": 12, "task_id": "project_cc_csharp/2704" }
{ "list": [ { "filename": "src/Gum/Reader.cs", "retrieved_chunk": " /// </summary>\n public class Reader\n {\n /// <param name=\"arguments\">\n /// This expects the following arguments:\n /// `.\\Gum <input-path> <output-path>`\n /// <input-path> can be the pat...
CharacterScript? Read(string input) {
{ "list": [ { "filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs", "retrieved_chunk": " /// Class for connecting to the anki API. \n /// </summary>\n public partial class AnkiAPI : Component {\n public string URL { get; set; } \n public string ankiDeck{ get; set; }\n publi...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Gr...
private Card baitCard; private Box cardDesign; private OsuSpriteText cardText; [BackgroundDependencyLoader] private void load(TextureStore textures) { assignedCard = anki.FetchRandomCard(); baitCard = anki.FetchRandomCard(); ...
{ "context_start_lineno": 0, "file": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs", "groundtruth_start_lineno": 50, "repository": "0xdeadbeer-gengo-dd4f78d", "right_context_start_lineno": 51, "task_id": "project_cc_csharp/2711" }
{ "list": [ { "filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs", "retrieved_chunk": " protected GengoRulesetConfigManager config { get; set; }\n [Resolved]\n protected IBeatmap beatmap { get; set; }\n [Resolved] \n protected IDialogOverlay dialogOverlay { get; set; ...
Card assignedCard;
{ "list": [ { "filename": "Ultrapain/Patches/Virtue.cs", "retrieved_chunk": " class Virtue_SpawnInsignia_Patch\n {\n static bool Prefix(Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, ref int ___usedAttacks)\n {\n if (___eid....
using HarmonyLib; using ULTRAKILL.Cheats; using UnityEngine; namespace Ultrapain.Patches { public class Stalker_SandExplode_Patch { static bool Prefix(Stalker __instance, ref int ___difficulty, ref EnemyIdentifier ___eid, int __0, ref bool ___exploding, ref float ___countDownAmount, ref flo...
bool removeStalker = true; if (!(StockMapInfo.Instance != null && StockMapInfo.Instance.levelName == "GOD DAMN THE SUN" && __instance.transform.parent != null && __instance.transform.parent.name == "Wave 1" && __instance.transform.parent.parent != null && __insta...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Stalker.cs", "groundtruth_start_lineno": 11, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 13, "task_id": "project_cc_csharp/2585" }
{ "list": [ { "filename": "Ultrapain/Patches/Whiplash.cs", "retrieved_chunk": " {\n if (__instance.state == HookState.Throwing)\n {\n if (!MonoSingleton<InputManager>.Instance.InputSource.Hook.IsPressed && (___cooldown <= 0.1f || ___caughtObj...
Machine ___mach, ref bool ___exploded, Transform ___target) {
{ "list": [ { "filename": "EF012.CodeFirstMigration/Entities/Section.cs", "retrieved_chunk": " public int ScheduleId { get; set; }\n public Schedule Schedule { get; set; }\n public TimeSlot TimeSlot { get; set; }\n public ICollection<Student> Students { get; set; } = new Li...
using EF012.CodeFirstMigration.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; namespace EF012.CodeFirstMigration.Data { public class AppDbContext : DbContext { public DbSet<Course> Courses { get; set; } public DbSet<Instructor> Instructors { get; set; }...
get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); var config = new ConfigurationBuilder().AddJsonFile("appsettings.json") .Build(); var connectionString = config.GetSectio...
{ "context_start_lineno": 0, "file": "EF012.CodeFirstMigration/Data/AppDbContext.cs", "groundtruth_start_lineno": 14, "repository": "metigator-EF012-054d65d", "right_context_start_lineno": 15, "task_id": "project_cc_csharp/2719" }
{ "list": [ { "filename": "EF012.CodeFirstMigration/Entities/Section.cs", "retrieved_chunk": " {\n return $\"{StartTime.ToString(\"hh\\\\:mm\")} - {EndTime.ToString(\"hh\\\\:mm\")}\";\n }\n }\n}", "score": 98.70816718340124 }, { "filename": "EF012.CodeFi...
Enrollment> Enrollments {
{ "list": [ { "filename": "src/SKernel/Factory/SemanticKernelFactory.cs", "retrieved_chunk": " private readonly NativeSkillsImporter _native;\n private readonly SemanticSkillsImporter _semantic;\n private readonly SKConfig _config;\n private readonly IMemoryStore _memorySto...
using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel; using SKernel.Factory.Config; using System.Collections.Generic; namespace SKernel.Factory { public class SemanticSkillsImporter : ISkillsImporter { private readonly string[] _folders; private readonly ILogger<SemanticSkillsImpo...
_folders = skillOptions.SemanticSkillsFolders; _logger = logger.CreateLogger<SemanticSkillsImporter>(); } public void ImportSkills(IKernel kernel, IList<string> skills) { foreach (var folder in _folders) kernel.RegisterSemanticSkills(folder, ...
{ "context_start_lineno": 0, "file": "src/SKernel/Factory/SemanticSkillsImporter.cs", "groundtruth_start_lineno": 12, "repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be", "right_context_start_lineno": 14, "task_id": "project_cc_csharp/2750" }
{ "list": [ { "filename": "src/SKernel/Factory/NativeSkillsImporter.cs", "retrieved_chunk": " public NativeSkillsImporter(SkillOptions skillOptions, IServiceProvider provider)\n {\n _skills = skillOptions.NativeSkillTypes;\n _provider = provider;\n }\n ...
SkillOptions skillOptions, ILoggerFactory logger) {
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/EmotionalCubesGenerator.cs", "retrieved_chunk": " await ExecuteInstructions(instructions);\n Debug.Log($\"[Emotional Cubes Generator] Cubes generation completed\");\n }\n /// <s...
/* * Copyright (C) Antony Vitillo (aka Skarredghost), Perpetual eMotion 2023. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ using System; using System.Threading; using System.Threading.Tasks; using UnityEngine; using vrroom.Dynaimic.GenerativeLogic; namespace vrr...
get; } /// <summary> /// Generate logic for a group of objects from a text prompt /// </summary> /// <param name="prompt">The text prompt of the behaviour to implement</param> /// <param name="cancellationToken">Cancellation token</param> Task GenerateLogicForGroupFromT...
{ "context_start_lineno": 0, "file": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/ICreatesLogicFromPrompt.cs", "groundtruth_start_lineno": 22, "repository": "Perpetual-eMotion-DynaimicApps-46c94e0", "right_context_start_lineno": 23, "task_id": "project_cc_csharp/2670" }
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/EmotionalCubesGenerator.cs", "retrieved_chunk": " /// <summary>\n /// The prompt template to generate Unity scripts that can be added to the cubes at runtime without requiring\n /// the setup ...
AiPromptTemplate PromptTemplate {
{ "list": [ { "filename": "Tokenizer/TokenType.cs", "retrieved_chunk": " /// Gets the name of the current <see cref=\"TokenType\"/>.\n /// </summary>\n public string Name { get; }\n /// <summary>\n /// Gets the regex object to match tokens with the current <see cref=...
using Tokenizer; namespace Parser.SymbolTableUtil { /// <summary> /// Represents type of an <see cref="ISymbol"/>. /// </summary> public class SymbolType { /// <summary> /// Gets name of the type. /// </summary> public string Name { get; } /// <summary> ...
get; } /// <summary> /// Initializes new instance of the <see cref="SymbolType"/> class. /// </summary> /// <param name="name">Name of the type.</param> /// <param name="type">A <see cref="Tokenizer.TokenType"/> representing keyword associated with this type.</param> pu...
{ "context_start_lineno": 0, "file": "Parser/SymbolTableUtil/SymbolType.cs", "groundtruth_start_lineno": 17, "repository": "amirsina-mashayekh-TSLang-Compiler-3a68caf", "right_context_start_lineno": 18, "task_id": "project_cc_csharp/2780" }
{ "list": [ { "filename": "Parser/SymbolTableUtil/ISymbol.cs", "retrieved_chunk": " public string Identifier { get; }\n /// <summary>\n /// Gets type of the symbol.\n /// </summary>\n public SymbolType Type { get; }\n }\n}", "score": 29.023733968848532 }...
TokenType TokenType {
{ "list": [ { "filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs", "retrieved_chunk": " }\n private TransitionMapBuilder(IState<TEvent, TContext> initialState)\n {\n this.initialState = initialState;\n states.Add(this.initialState);\n ...
#nullable enable using System.Collections.Generic; using Mochineko.Relent.Result; namespace Mochineko.RelentStateMachine { internal sealed class TransitionMap<TEvent, TContext> : ITransitionMap<TEvent, TContext> { private readonly IState<TEvent, TContext> initialState; private readonly ...
IResult<IState<TEvent, TContext>> ITransitionMap<TEvent, TContext>.AllowedToTransit( IState<TEvent, TContext> currentState, TEvent @event) { if (transitionMap.TryGetValue(currentState, out var candidates)) { if (candidates.TryGetValue(@ev...
{ "context_start_lineno": 0, "file": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs", "groundtruth_start_lineno": 35, "repository": "mochi-neko-RelentStateMachine-64762eb", "right_context_start_lineno": 37, "task_id": "project_cc_csharp/2683" }
{ "list": [ { "filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs", "retrieved_chunk": " {\n var result = new Dictionary<\n IState<TEvent, TContext>,\n IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>();\n foreach (v...
IState<TEvent, TContext> ITransitionMap<TEvent, TContext>.InitialState => initialState;
{ "list": [ { "filename": "CloudDistributedLock/CloudDistributedLockProviderFactory.cs", "retrieved_chunk": "using Microsoft.Extensions.Options;\nusing System.Collections.Concurrent;\nnamespace CloudDistributedLock\n{\n public interface ICloudDistributedLockProviderFactory\n {\n ICloudDi...
namespace CloudDistributedLock { public interface ICloudDistributedLockProvider { Task<CloudDistributedLock> TryAquireLockAsync(string name); Task<
} public class CloudDistributedLockProvider : ICloudDistributedLockProvider { private readonly CloudDistributedLockProviderOptions options; private readonly CosmosLockClient cosmosLockClient; public CloudDistributedLockProvider(CloudDistributedLockProviderOptions options) ...
{ "context_start_lineno": 0, "file": "CloudDistributedLock/CloudDistributedLockProvider.cs", "groundtruth_start_lineno": 6, "repository": "briandunnington-CloudDistributedLock-04f72e6", "right_context_start_lineno": 7, "task_id": "project_cc_csharp/2788" }
{ "list": [ { "filename": "CloudDistributedLock/CloudDistributedLockProviderFactory.cs", "retrieved_chunk": " {\n internal const string DefaultName = \"__DEFAULT\";\n private readonly ConcurrentDictionary<string, ICloudDistributedLockProvider> clients = new();\n public CloudDis...
CloudDistributedLock> AcquireLockAsync(string name, TimeSpan? timeout = default);
{ "list": [ { "filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs", "retrieved_chunk": "using System;\nusing UnityEngine;\nnamespace Kingdox.UniFlux.Benchmark\n{\n public sealed class Benchmark_Nest_UniFlux : MonoFlux\n {\n [SerializeField] private Marker _mark_fluxAttribute = new Marke...
/* Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox') Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
K = "store<string,Action> ADD" }; [SerializeField] private Marker _m_store_int_add = new Marker() { K = "store<int,Action> ADD" }; [SerializeField] private Marker _m_store_byte_add = new Marker() { K = "store<byte,Action> ADD" ...
{ "context_start_lineno": 0, "file": "Benchmark/General/Benchmark_UniFlux.cs", "groundtruth_start_lineno": 29, "repository": "xavierarpa-UniFlux-a2d46de", "right_context_start_lineno": 31, "task_id": "project_cc_csharp/2665" }
{ "list": [ { "filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs", "retrieved_chunk": " [SerializeField] private Marker _mark_store = new Marker()\n {\n K = \"NestedModel Store\"\n };\n private readonly Lazy<GUIStyle> _style = new Lazy<GUIStyle>(() => new GUIS...
Marker _m_store_string_add = new Marker() {
{ "list": [ { "filename": "Functions/GraphNotificationsHub.cs", "retrieved_chunk": " private readonly ICertificateService _certificateService;\n private readonly ICacheService _cacheService;\n private readonly ILogger _logger;\n private readonly AppSettings _settings;\n ...
using GraphNotifications.Models; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Graph; namespace GraphNotifications.Services { public class GraphNotificationService : IGraphNotificationService { private readonly ILogger _logger; private readonly string _...
_graphClientService = graphClientService; _certificateService = certificateService ?? throw new ArgumentException(nameof(certificateService)); _logger = logger; _notificationUrl = settings.Value.NotificationUrl ?? throw new ArgumentException(nameof(settings.Value.Notific...
{ "context_start_lineno": 0, "file": "Services/GraphNotificationService.cs", "groundtruth_start_lineno": 15, "repository": "microsoft-GraphNotificationBroker-b1564aa", "right_context_start_lineno": 17, "task_id": "project_cc_csharp/2759" }
{ "list": [ { "filename": "Functions/GraphNotificationsHub.cs", "retrieved_chunk": " ILogger<GraphNotificationsHub> logger,\n IOptions<AppSettings> options)\n {\n _tokenValidationService = tokenValidationService;\n _graphNotificationService = graphNot...
ICertificateService certificateService, IOptions<AppSettings> settings, ILogger<GraphNotificationService> logger) {
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/Input/Scripts/FlyMovement.cs", "retrieved_chunk": " /// </summary>\n [SerializeField]\n private InputActionReference m_upDownMovementAction;\n /// <summary>\n /// Action for activating/deactivating the ...
/* * Copyright (C) Antony Vitillo (aka Skarredghost), Perpetual eMotion 2023. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ using System; using System.Collections; using System.Collections.Generic; using System.Threading; using TMPro; using UnityEngine; using Unit...
/// <summary> /// Cancellation token /// </summary> private CancellationTokenSource m_cancellationTokenSource; /// <summary> /// Awake /// </summary> private void Awake() { m_cancellationTokenSource = new CancellationTokenSou...
{ "context_start_lineno": 0, "file": "CubicMusic/Assets/_CubicMusic/Runtime/UI/Scripts/UserQueryCreationCanvas.cs", "groundtruth_start_lineno": 52, "repository": "Perpetual-eMotion-DynaimicApps-46c94e0", "right_context_start_lineno": 53, "task_id": "project_cc_csharp/2668" }
{ "list": [ { "filename": "CubicMusic/Assets/_CubicMusic/Runtime/Input/Scripts/FlyMovement.cs", "retrieved_chunk": " /// </summary>\n [SerializeField]\n private bool m_requireModeOn = true;\n /// <summary>\n /// Movement speed\n /// </summary>\n [Serial...
ICreatesLogicFromPrompt m_logicFromPromptCreator;
{ "list": [ { "filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxInfo.cs", "retrieved_chunk": " [JsonProperty(\"error_message\")]\n public string ErrorMessage { get; set; }\n public override string ToString() => JsonConvert.SerializeObject(this, Format...
// Licensed under the MIT License. See LICENSE in the project root for license information. using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; using UnityEngine; using UnityEngine.Scripting; using Utilities.WebRequestRest; name...
var formData = new WWWForm(); formData.AddField("prompt", skyboxRequest.Prompt); if (!string.IsNullOrWhiteSpace(skyboxRequest.NegativeText)) { formData.AddField("negative_text", skyboxRequest.NegativeText); } if (skyboxRequest.Se...
{ "context_start_lineno": 0, "file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxEndpoint.cs", "groundtruth_start_lineno": 76, "repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f", "right_context_start_lineno": 78, "task_id": "project_cc_csharp/2728" }
{ "list": [ { "filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxInfo.cs", "retrieved_chunk": " var downloadTasks = new List<Task>(2)\n {\n Task.Run(async () =>\n {\n if (!string.IsNullOrWhiteSpace(Thum...
SkyboxRequest skyboxRequest, int? pollingInterval = null, CancellationToken cancellationToken = default) {
{ "list": [ { "filename": "ChatUI/Core/ObservableObject.cs", "retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\nusing System.Runtime.CompilerServices;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace ChatUI.Core\n{\n\ti...
using ChatGPTConnection; using ChatUI.Core; using ChatUI.MVVM.Model; using System; using System.Linq; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows; namespace ChatUI.M...
get; set; } private MainWindow MainWindow { get; set; } public RelayCommand SendCommand { get; set; } private string _message = ""; public string Message { get { return _message; } set { _message = value; OnPropertyChanged(); } } private string CatIconPath => Path.Combine(MainWindow...
{ "context_start_lineno": 0, "file": "ChatUI/MVVM/ViewModel/MainViewModel.cs", "groundtruth_start_lineno": 17, "repository": "4kk11-ChatGPTforRhino-382323e", "right_context_start_lineno": 18, "task_id": "project_cc_csharp/2761" }
{ "list": [ { "filename": "ChatUI/Core/ObservableObject.cs", "retrieved_chunk": "\t{\n\t\tpublic event PropertyChangedEventHandler PropertyChanged;\n\t\tpublic void OnPropertyChanged([CallerMemberName] string propertyName = null)\n\t\t{\n\t\t\tPropertyChanged?.Invoke(this, new PropertyChangedEventArgs...
MessageModel> Messages {
{ "list": [ { "filename": "src/LogDashboard.Authorization/Authorization/LogdashboardAccountAuthorizeFilter.cs", "retrieved_chunk": " public class LogdashboardAccountAuthorizeFilter : ILogDashboardAuthorizationFilter\n {\n public string UserName { get; set; }\n public string Passwor...
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Reflection; using DapperExtensions.Sql; using LogDashboard.Authorization; using LogDashboard.Extensions; using LogDashboard.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; namesp...
get; set; } public LogDashboardCookieOptions() { Expire = TimeSpan.FromDays(1); TokenKey = "LogDashboard.CookieKey"; TimestampKey = "LogDashboard.Timestamp"; Secure = (filter) => $"{filter.UserName}&&{filter.Password}"; } } }
{ "context_start_lineno": 0, "file": "src/LogDashboard.Authorization/LogDashboardCookieOptions.cs", "groundtruth_start_lineno": 22, "repository": "Bryan-Cyf-LogDashboard.Authorization-14d4540", "right_context_start_lineno": 23, "task_id": "project_cc_csharp/2775" }
{ "list": [ { "filename": "src/LogDashboard.Authorization/Models/LoginInput.cs", "retrieved_chunk": "using System;\nnamespace LogDashboard.Models\n{\n public class LoginInput\n {\n public string Name { get; set; }\n public string Password { get; set; }\n }\n}", "score": 4...
LogdashboardAccountAuthorizeFilter, string> Secure {
{ "list": [ { "filename": "ChatGPTInterface/CompletionResponse.cs", "retrieved_chunk": " [JsonProperty(\"id\")]\n public string Id { get; set; }\n [JsonProperty(\"object\")]\n public string ObjectType { get; set; }\n [JsonProperty(\"created\")]\n public int Cr...
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChatGPTInterface { public class EmbeddingResponse { [JsonProperty("object")] public string ObjectType { get; set; } [JsonProperty("data")]...
get; set; } } }
{ "context_start_lineno": 0, "file": "ChatGPTInterface/EmbeddingResponse.cs", "groundtruth_start_lineno": 18, "repository": "TaxAIExamples-semantic-search-using-chatgpt-a90ef71", "right_context_start_lineno": 19, "task_id": "project_cc_csharp/2744" }
{ "list": [ { "filename": "ChatGPTInterface/CompletionResponse.cs", "retrieved_chunk": " [JsonProperty(\"id\")]\n public string Id { get; set; }\n [JsonProperty(\"object\")]\n public string ObjectType { get; set; }\n [JsonProperty(\"created\")]\n public int Cr...
EmbeddingUsage Usage {
{ "list": [ { "filename": "Ultrapain/Patches/FleshPrison.cs", "retrieved_chunk": " }\n class FleshPrisonRotatingInsignia : MonoBehaviour\n {\n List<VirtueInsignia> insignias = new List<VirtueInsignia>();\n public FleshPrison prison;\n public float damageMod = 1f;\n ...
using HarmonyLib; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using UnityEngine; namespace Ultrapain.Patches { public class OrbitalStrikeFlag : MonoBehaviour { public CoinChainList chainList; public bool isOrbitalRay = false; ...
"tempy.fastpunch" })] static bool Prefix(Punch __instance) { __instance.blastWave = GameObject.Instantiate(Plugin.explosionWaveKnuckleblaster, new Vector3(1000000, 1000000, 1000000), Quaternion.identity); __instance.blastWave.AddComponent<OrbitalStrikeFlag>(); return...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/OrbitalStrike.cs", "groundtruth_start_lineno": 35, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 36, "task_id": "project_cc_csharp/2627" }
{ "list": [ { "filename": "Ultrapain/Patches/FleshPrison.cs", "retrieved_chunk": " int projectileCount = (prison.altVersion ? ConfigManager.panopticonSpinAttackCount.value : ConfigManager.fleshPrisonSpinAttackCount.value);\n float anglePerProjectile = 360f / projectileCount;\n ...
HarmonyBefore(new string[] {
{ "list": [ { "filename": "source/ViewModels/CacheRootViewModel.cs", "retrieved_chunk": "using NowPlaying.Utils;\nusing NowPlaying.Models;\nusing System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing System.Linq;\nnamespace NowPlaying.ViewModels\n{\n public class CacheRootViewM...
using NowPlaying.Utils; using System.Collections.Generic; using System.Threading; namespace NowPlaying.Models { public class GameCacheJob { public readonly GameCacheEntry entry; public readonly
public readonly CancellationTokenSource tokenSource; public readonly CancellationToken token; public PartialFileResumeOpts pfrOpts; public long? partialFileResumeThresh; public int interPacketGap; public bool cancelledOnDiskFull; public bool cancelledOnMaxFill; ...
{ "context_start_lineno": 0, "file": "source/Models/GameCacheJob.cs", "groundtruth_start_lineno": 9, "repository": "gittromney-Playnite-NowPlaying-23eec41", "right_context_start_lineno": 10, "task_id": "project_cc_csharp/2622" }
{ "list": [ { "filename": "source/ViewModels/CacheRootViewModel.cs", "retrieved_chunk": " public readonly NowPlaying plugin;\n public CacheRoot root;\n public string Directory => root.Directory;\n public string Device => System.IO.Directory.GetDirectoryRoot(Directory);\n ...
RoboStats stats;
{ "list": [ { "filename": "src/SKernel/Factory/NativeSkillsImporter.cs", "retrieved_chunk": "using Microsoft.SemanticKernel;\nusing SKernel.Factory.Config;\nusing System;\nusing System.Collections.Generic;\nnamespace SKernel.Factory\n{\n public class NativeSkillsImporter : ISkillsImporter\n {\n...
using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Memory; using SKernel.Factory.Config; using System.Collections.Generic; using System.Linq; namespace SKernel.Factory { public class SemanticKernelFactory { private readonly NativeSkillsImporter _native; ...
private readonly IMemoryStore _memoryStore; private readonly ILogger _logger; public SemanticKernelFactory(NativeSkillsImporter native, SemanticSkillsImporter semantic, SKConfig config, IMemoryStore memoryStore, ILoggerFactory logger) { _native = native; ...
{ "context_start_lineno": 0, "file": "src/SKernel/Factory/SemanticKernelFactory.cs", "groundtruth_start_lineno": 13, "repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be", "right_context_start_lineno": 14, "task_id": "project_cc_csharp/2774" }
{ "list": [ { "filename": "src/SKernel/Factory/NativeSkillsImporter.cs", "retrieved_chunk": " public NativeSkillsImporter(SkillOptions skillOptions, IServiceProvider provider)\n {\n _skills = skillOptions.NativeSkillTypes;\n _provider = provider;\n }\n ...
SKConfig _config;
{ "list": [ { "filename": "Ultrapain/Patches/Solider.cs", "retrieved_chunk": "using HarmonyLib;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class Solider_Start_Patch\n {\n static void Postfix(ZombieProjectiles __instance, ref GameObject ___decProjectile, ref GameObject ___proje...
using HarmonyLib; using System.ComponentModel; using UnityEngine; namespace Ultrapain.Patches { class ZombieProjectile_ShootProjectile_Patch { static void Postfix(
/*Projectile proj = ___currentProjectile.GetComponent<Projectile>(); proj.target = MonoSingleton<PlayerTracker>.Instance.GetTarget(); proj.speed *= speedMultiplier; proj.turningSpeedMultiplier = turningSpeedMultiplier; proj.damage = damage;*/ boo...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/Schism.cs", "groundtruth_start_lineno": 8, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 10, "task_id": "project_cc_csharp/2626" }
{ "list": [ { "filename": "Ultrapain/Patches/MaliciousFace.cs", "retrieved_chunk": " class MaliciousFace_Start_Patch\n {\n static void Postfix(SpiderBody __instance, ref GameObject ___proj, ref int ___maxBurst)\n {\n __instance.gameObject.AddComponent<MaliciousFaceFlag>(...
ZombieProjectiles __instance, ref GameObject ___currentProjectile, Animator ___anim, EnemyIdentifier ___eid) {
{ "list": [ { "filename": "WAGIapp/AI/LongTermMemory.cs", "retrieved_chunk": " {\n Memory memory = new Memory(Utils.GetObjectFromJson<OutputMemoryAI>(mem));\n memories.Add(memory);\n foreach (var tag in memory.Tags)\n {\n ...
using System.Text.Json; namespace WAGIapp.AI { internal class Master { private static Master singleton; public static Master Singleton { get { if (singleton == null) { Console.WriteLine("Create master"); ...
public ActionList Actions; public ScriptFile scriptFile; public bool Done = true; private string nextMemoryPrompt = ""; private string lastCommandOuput = ""; public List<string> Notes; private List<ChatMessage> LastMessages = new List<ChatMessage>(); ...
{ "context_start_lineno": 0, "file": "WAGIapp/AI/Master.cs", "groundtruth_start_lineno": 23, "repository": "Woltvint-WAGI-d808927", "right_context_start_lineno": 24, "task_id": "project_cc_csharp/2782" }
{ "list": [ { "filename": "WAGIapp/AI/Utils.cs", "retrieved_chunk": " {\n AllowTrailingCommas = true,\n });\n }\n public static IEnumerable<string> CleanInput(IEnumerable<string> input)\n {\n var list = input.ToArray();\n ...
LongTermMemory Memory;
{ "list": [ { "filename": "Ultrapain/Patches/SteamFriends.cs", "retrieved_chunk": "using HarmonyLib;\nusing Steamworks;\nusing System.Text.RegularExpressions;\nnamespace Ultrapain.Patches\n{\n class SteamFriends_SetRichPresence_Patch\n {\n static bool Prefix(string __0, ref string __1)\n ...
using Discord; using HarmonyLib; using System.Text.RegularExpressions; namespace Ultrapain.Patches { class DiscordController_SendActivity_Patch { static bool Prefix(
if (___cachedActivity.State != null && ___cachedActivity.State == "DIFFICULTY: UKMD") { Regex rich = new Regex(@"<[^>]*>"); string text = $"DIFFICULTY: {ConfigManager.pluginName.value}"; if (rich.IsMatch(text)) { ...
{ "context_start_lineno": 0, "file": "Ultrapain/Patches/DiscordController.cs", "groundtruth_start_lineno": 9, "repository": "eternalUnion-UltraPain-ad924af", "right_context_start_lineno": 11, "task_id": "project_cc_csharp/2630" }
{ "list": [ { "filename": "Ultrapain/Patches/SteamFriends.cs", "retrieved_chunk": " return true;\n Regex rich = new Regex(@\"<[^>]*>\");\n string text = ConfigManager.pluginName.value;\n if (rich.IsMatch(text))\n {\n __1 = rich....
DiscordController __instance, ref Activity ___cachedActivity) {
{ "list": [ { "filename": "CloudDistributedLock/CosmosLockClient.cs", "retrieved_chunk": "using Microsoft.Azure.Cosmos;\nusing System.Net;\nnamespace CloudDistributedLock\n{\n public class CosmosLockClient\n {\n private readonly CloudDistributedLockProviderOptions options;\n priva...
namespace CloudDistributedLock { public interface ICloudDistributedLockProvider { Task<CloudDistributedLock> TryAquireLockAsync(string name); Task<CloudDistributedLock> AcquireLockAsync(string name, TimeSpan? timeout = default); } public class CloudDistributedLockProvider : ICloudDistr...
using var cancellationTokenSource = timeout.HasValue ? new CancellationTokenSource(timeout.Value) : new CancellationTokenSource(); return await ContinuallyTryAquireLockAsync(name, cancellationTokenSource.Token); } public async Task<CloudDistributedLock> TryAquireLockAsync(strin...
{ "context_start_lineno": 0, "file": "CloudDistributedLock/CloudDistributedLockProvider.cs", "groundtruth_start_lineno": 20, "repository": "briandunnington-CloudDistributedLock-04f72e6", "right_context_start_lineno": 22, "task_id": "project_cc_csharp/2827" }
{ "list": [ { "filename": "CloudDistributedLock/CosmosLockClient.cs", "retrieved_chunk": " this.options = options;\n this.container = options.CosmosClient!.GetContainer(options.DatabaseName, options.ContainerName);\n }\n public async Task<ItemResponse<LockRecord>?> ...
CloudDistributedLock> AcquireLockAsync(string name, TimeSpan? timeout = null) {
{ "list": [ { "filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/EntityProxy.cs", "retrieved_chunk": " /// <summary>\n /// 上下文\n /// </summary>\n public DbContext DbContext { get; }\n /// <summary>\n /// 创建实体代理\n /// </summary>\n ...
using Microsoft.EntityFrameworkCore; using System.Collections.Generic; namespace Ryan.EntityFrameworkCore.Proxy { /// <summary> /// 上下文实体代理 /// </summary> public class DbContextEntityProxy { /// <summary> /// 上下文 /// </summary> public DbContext Context { get; } ...
get; } /// <summary> /// 创建上下文实体代理 /// </summary> public DbContextEntityProxy(DbContext context) { Context = context; EntityProxies = new List<EntityProxy>(); } } }
{ "context_start_lineno": 0, "file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/DbContextEntityProxy.cs", "groundtruth_start_lineno": 18, "repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c", "right_context_start_lineno": 19, "task_id": "project_cc_csharp/2691" }
{ "list": [ { "filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/EntityProxy.cs", "retrieved_chunk": " Implementation = implementation;\n Type = type;\n DbContext = dbContext;\n }\n /// <summary>\n /// 是否已被状态管理\n /// <...
EntityProxy> EntityProxies {