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": "cpp/Demo_2020-02-15/Client/PacketProcessForm.cs",
"retrieved_chunk": " responsePkt.FromBytes(bodyData);\n AddRoomChatMessageList(responsePkt.UserID, responsePkt.Message);\n }\n void AddRoomChatMessageList(string userID, string msgssage)\n ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace csharp_test_client
{
public partial c... |
if (Network.IsConnected() == false)
{
DevLog.Write("์๋ฒ ์ฐ๊ฒฐ์ด ๋์ด ์์ง ์์ต๋๋ค", LOG_LEVEL.ERROR);
return;
}
Int16 bodyDataSize = 0;
if (bodyData != null)
{
bodyDataSize = (Int16)bodyData.Length;
... | {
"context_start_lineno": 0,
"file": "cpp/Demo_2020-02-15/Client/mainForm.cs",
"groundtruth_start_lineno": 269,
"repository": "jacking75-how_to_use_redis_lib-d3accba",
"right_context_start_lineno": 271,
"task_id": "project_cc_csharp/2162"
} | {
"list": [
{
"filename": "cpp/Demo_2020-02-15/Client/PacketProcessForm.cs",
"retrieved_chunk": " listBoxRoomChatMsg.Items.Add(msg);\n listBoxRoomChatMsg.SelectedIndex = listBoxRoomChatMsg.Items.Count - 1;\n }\n void PacketProcess_RoomRelayNotify(byte[] bodyData)\n ... | PACKET_ID packetID, byte[] bodyData)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StackStateMachine.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nusing System.Collections.Generic;\nusing System.Threading;\nusing Cysharp.Threading.Tasks;\nusing Mochineko.Relent.Result;\nnamespace Mochineko.RelentStateMachine\... | #nullable enable
using System.Collections.Generic;
using Mochineko.Relent.Result;
namespace Mochineko.RelentStateMachine
{
internal sealed class TransitionMap<TEvent, TContext>
: |
private readonly IState<TEvent, TContext> initialState;
private readonly IReadOnlyList<IState<TEvent, TContext>> states;
private readonly IReadOnlyDictionary<
IState<TEvent, TContext>,
IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>
transition... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"groundtruth_start_lineno": 7,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/2188"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StackStateMachine.cs",
"retrieved_chunk": " {\n private readonly IStateStore<TContext> stateStore;\n public TContext Context { get; }\n private readonly Stack<IStackState<TContext>> stack = new();\n public bo... | ITransitionMap<TEvent, TContext>
{ |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfield.cs",
"retrieved_chunk": "using osu.Game.Rulesets.Gengo.UI.Cursor;\nusing osu.Game.Rulesets.Gengo.UI.Translation;\nusing osu.Game.Rulesets.Gengo.Configuration;\nusing osu.Game.Rulesets.Gengo.Anki;\nusing osuTK;\nnamespace osu.Game.Rul... | // 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 const double time_preempt = 600;
private const double time_fadein = 400;
public override bool HandlePositionalInput => true;
public DrawableGengoHitObject(GengoHitObject hitObject)
: base(hitObject)
{
Size = new Vector2(80);
Origin = A... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"groundtruth_start_lineno": 32,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 34,
"task_id": "project_cc_csharp/2216"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfield.cs",
"retrieved_chunk": " protected override GameplayCursorContainer CreateCursor() => new GengoCursorContainer();\n public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);\n private FillFlowContainer p... | GengoHitObject>, IKeyBindingHandler<GengoAction>
{ |
{
"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<bool,Action> ADD"
};
[SerializeField] private Marker _m_store_string_remove = new Marker()
{
K = "store<string,Action> REMOVE"
};
[SerializeField] private Marker _m_store_int_remove = new Marker()
{
K = "store<int,Action> RE... | {
"context_start_lineno": 0,
"file": "Benchmark/General/Benchmark_UniFlux.cs",
"groundtruth_start_lineno": 41,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 43,
"task_id": "project_cc_csharp/2141"
} | {
"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_bool_add = new Marker()
{ |
{
"list": [
{
"filename": "src/SKernel/Factory/SemanticSkillsImporter.cs",
"retrieved_chunk": "๏ปฟusing Microsoft.Extensions.Logging;\nusing Microsoft.SemanticKernel;\nusing SKernel.Factory.Config;\nusing System.Collections.Generic;\nnamespace SKernel.Factory\n{\n public class SemanticSkillsImporter ... | 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;
... |
_native = native;
_semantic = semantic;
_config = config;
_memoryStore = memoryStore;
_logger = logger.CreateLogger<SemanticKernelFactory>();
}
public IKernel Create(ApiKey key, IList<string>? skills = null)
{
var selected... | {
"context_start_lineno": 0,
"file": "src/SKernel/Factory/SemanticKernelFactory.cs",
"groundtruth_start_lineno": 17,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/2235"
} | {
"list": [
{
"filename": "src/SKernel/Factory/SemanticSkillsImporter.cs",
"retrieved_chunk": " public SemanticSkillsImporter(SkillOptions skillOptions, ILoggerFactory logger)\n {\n _folders = skillOptions.SemanticSkillsFolders;\n _logger = logger.CreateLogger<Seman... | SemanticSkillsImporter semantic, SKConfig config,
IMemoryStore memoryStore, ILoggerFactory logger)
{ |
{
"list": [
{
"filename": "Source/TreeifyTask/TaskTree/TaskNode.cs",
"retrieved_chunk": " public ActionReport(ITaskNode task)\n {\n this.Id = task.Id;\n this.TaskStatus = task.TaskStatus;\n this.ProgressState = task.ProgressState;\n ... | using System;
using System.Runtime.Serialization;
namespace TreeifyTask
{
[Serializable]
public class TaskNodeCycleDetectedException : Exception
{
public ITaskNode NewTask { get; }
public ITaskNode ParentTask { get; }
public string MessageStr { get; private set; }
public T... | newTask?.Id}' was already added as a child to task tree of '{parentTask?.Id}'.")
{
this.NewTask = newTask;
this.ParentTask = parentTask;
}
public TaskNodeCycleDetectedException(string message) : base(message)
{
}
public TaskNodeCycleDetectedExcep... | {
"context_start_lineno": 0,
"file": "Source/TreeifyTask/TaskTree/TaskNodeCycleDetectedException.cs",
"groundtruth_start_lineno": 18,
"repository": "intuit-TreeifyTask-4b124d4",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/2232"
} | {
"list": [
{
"filename": "Source/TreeifyTask/TaskTree/TaskNode.cs",
"retrieved_chunk": " public object ProgressState { get; set; }\n public override string ToString()\n {\n return $\"Id={Id},({TaskStatus}, {ProgressValue}, {ProgressState})\";\n ... | ITaskNode newTask, ITaskNode parentTask)
: base($"Task '{ |
{
"list": [
{
"filename": "Ultrapain/Patches/SwordsMachine.cs",
"retrieved_chunk": "๏ปฟusing HarmonyLib;\nusing System.Security.Cryptography;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class SwordsMachineFlag : MonoBehaviour\n {\n public SwordsMachine sm;\n public Animator... | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Ultrapain.Patches
{
class SomethingWickedFlag : MonoBehaviour
{
public GameObject spear;
public MassSpear spearComp;
public EnemyIdentifier eid;
pub... |
public Rigidbody spearRb;
public static float SpearTriggerDistance = 80f;
public static LayerMask envMask = new LayerMask() { value = (1 << 8) | (1 << 24) };
void Awake()
{
if (eid == null)
eid = GetComponent<EnemyIdentifier>();
if (spea... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/SomethingWicked.cs",
"groundtruth_start_lineno": 13,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/2108"
} | {
"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... | Transform spearOrigin; |
{
"list": [
{
"filename": "Microsoft.Build.Shared/EscapingUtilities.cs",
"retrieved_chunk": " private static readonly char[] s_charsToEscape = new char[9] { '%', '*', '?', '@', '$', '(', ')', ';', '\\'' };\n private static bool TryDecodeHexDigit(char character, out int value)\n {\... | 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>
{
... | get; } = new Dictionary<string, DependencyTableCacheEntry>(StringComparer.OrdinalIgnoreCase);
private static bool DependencyTableIsUpToDate(DependencyTableCacheEntry dependencyTable)
{
DateTime tableTime = dependencyTable.TableTime;
ITaskItem[] tlogFiles = dependencyTable.Tlog... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.Utilities/DependencyTableCache.cs",
"groundtruth_start_lineno": 39,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/2039"
} | {
"list": [
{
"filename": "Microsoft.Build.Shared/EscapingUtilities.cs",
"retrieved_chunk": " value = character - 65 + 10;\n return true;\n }\n if (character >= 'a' && character <= 'f')\n {\n value = character - 97 + 10;\n ... | DependencyTableCacheEntry> DependencyTable { |
{
"list": [
{
"filename": "Views/Pages/SyncPage.xaml.cs",
"retrieved_chunk": "๏ปฟusing Wpf.Ui.Common.Interfaces;\nnamespace SupernoteDesktopClient.Views.Pages\n{\n /// <summary>\n /// Interaction logic for SyncPage.xaml\n /// </summary>\n public partial class SyncPage : INavigableView<ViewMo... | using Wpf.Ui.Common.Interfaces;
namespace SupernoteDesktopClient.Views.Pages
{
/// <summary>
/// Interaction logic for SettingsPage.xaml
/// </summary>
public partial class SettingsPage : INavigableView<ViewModels.SettingsViewModel>
{
public ViewModels. |
get;
}
public SettingsPage(ViewModels.SettingsViewModel viewModel)
{
ViewModel = viewModel;
InitializeComponent();
}
}
} | {
"context_start_lineno": 0,
"file": "Views/Pages/SettingsPage.xaml.cs",
"groundtruth_start_lineno": 9,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/2159"
} | {
"list": [
{
"filename": "Views/Pages/SyncPage.xaml.cs",
"retrieved_chunk": " get;\n }\n public SyncPage(ViewModels.SyncViewModel viewModel)\n {\n ViewModel = viewModel;\n InitializeComponent();\n }\n }\n}",
"score": 57.77206583071... | SettingsViewModel ViewModel
{ |
{
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/IHandlesClosingEvent.cs",
"retrieved_chunk": " void OnClose(CancelEventArgs args);\n }\n}",
"score": 19.486086845556734
},
{
"filename": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"retrieved_chunk... | // Kaplan Copyright (c) DragonFruit Network <inbox@dragonfruit.network>
// Licensed under Apache-2. Refer to the LICENSE file for more info
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
u... |
args.Cancel = Status == OperationState.Running;
}
async Task IExecutesTaskPostLoad.Perform()
{
_logger.LogInformation("Removal process started");
_logger.LogDebug("Waiting for lock access");
using (await _lock.LockAsync(_cancellation.Token).Conf... | {
"context_start_lineno": 0,
"file": "DragonFruit.Kaplan/ViewModels/RemovalProgressViewModel.cs",
"groundtruth_start_lineno": 92,
"repository": "dragonfruitnetwork-kaplan-13bdb39",
"right_context_start_lineno": 94,
"task_id": "project_cc_csharp/2273"
} | {
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"retrieved_chunk": " private async Task RefreshPackagesImpl()\n {\n IEnumerable<Package> packages;\n switch (PackageMode)\n {\n case PackageInstallationMode.U... | IHandlesClosingEvent.OnClose(CancelEventArgs args)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Screwdriver.cs",
"retrieved_chunk": " eid.DeliverDamage(__0.gameObject, __instance.transform.forward, __instance.transform.position, ConfigManager.screwDriverHomePierceDamage.value, false, 0, null, false);\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;
... |
public bool isOrbitalStrike = false;
public float activasionDistance;
}
class Punch_BlastCheck
{
[HarmonyBefore(new string[] { "tempy.fastpunch" })]
static bool Prefix(Punch __instance)
{
__instance.blastWave = GameObject.Instantiate(Plugin.explosionWave... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 28,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/2128"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " public static List<HealthBarTracker> instances = new List<HealthBarTracker>();\n private HealthBar hb;\n private void Awake()\n {\n if (hb == null)\n hb = GetCo... | Coin> chainList = new List<Coin>(); |
{
"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": 27,
"repository": "Azure-Samples-vs-apim-cuscon-powerfx-500a170",
"right_context_start_lineno": 30,
"task_id": "project_cc_csharp/2198"
} | {
"list": [
{
"filename": "src/IssueSummaryApi/Controllers/GitHubController.cs",
"retrieved_chunk": " [HttpGet(\"issues\", Name = \"Issues\")]\n [ProducesResponseType(typeof(GitHubIssueCollectionResponse), StatusCodes.Status200OK)]\n [ProducesResponseType(typeof(ErrorResponse), St... | ErrorResponse), StatusCodes.Status403Forbidden)]
public async Task<IActionResult> Post([FromBody] ChatCompletionRequest req)
{ |
{
"list": [
{
"filename": "src/SKernel/Factory/IPlanExecutor.cs",
"retrieved_chunk": "๏ปฟusing Microsoft.SemanticKernel.Orchestration;\nusing Microsoft.SemanticKernel;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace SKer... | using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Orchestration;
using System.Threading.Tasks;
namespace SKernel.Factory
{
public class DefaultPlanExecutor : IPlanExecutor
{
public async Task<SKContext> Execute(IKernel kernel, |
SKContext plan = await kernel.RunAsync(message.Variables.ToContext(), kernel.CreatePlan());
var iteration = 0;
var executePlan = kernel.ExecutePlan();
var result = await kernel.RunAsync(plan.Variables, executePlan);
while (!result.Variables.ToPlan().IsCompl... | {
"context_start_lineno": 0,
"file": "src/SKernel/Factory/DefaultPlanExecutor.cs",
"groundtruth_start_lineno": 8,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/2260"
} | {
"list": [
{
"filename": "src/SKernel/Factory/IPlanExecutor.cs",
"retrieved_chunk": " {\n Task<SKContext> Execute(IKernel kernel, Message message, int iterations);\n }\n}",
"score": 34.97374089269217
},
{
"filename": "src/SKernel.Services/Extensions.cs",
"retrie... | Message message, int iterations)
{ |
{
"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 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 true;
if (flag.shootCountRemaining > 0)
{
RevolverBeam revolverBeam = GameObject.Instantiate<RevolverBeam>(___beam, new Vector3(__instance.transform.positio... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Turret.cs",
"groundtruth_start_lineno": 20,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/2132"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Stray.cs",
"retrieved_chunk": " {\n if (___eid.enemyType != EnemyType.Stray)\n return true;\n StrayFlag flag = __instance.gameObject.GetComponent<StrayFlag>();\n if (flag == null)\n retur... | Transform ___shootPoint,
ref float ___aimTime, ref float ___maxAimTime, ref float ___nextBeepTime, ref float ___flashTime)
{ |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/JXLExtractedData/JXLWorkbookData.cs",
"retrieved_chunk": "๏ปฟusing System.Collections.Generic;\nnamespace JdeJabali.JXLDataTableExtractor.JXLExtractedData\n{\n public class JXLWorkbookData\n {\n public string WorkbookPath { get; set... | using System.Collections.Generic;
namespace JdeJabali.JXLDataTableExtractor.JXLExtractedData
{
public class JXLWorksheetData
{
public string WorksheetName { get; set; } = string.Empty;
public List< | get; set; } = new List<JXLExtractedRow>();
}
} | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/JXLExtractedData/JXLWorksheetData.cs",
"groundtruth_start_lineno": 8,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/2278"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/JXLExtractedData/JXLWorkbookData.cs",
"retrieved_chunk": "๏ปฟusing System.Collections.Generic;\nnamespace JdeJabali.JXLDataTableExtractor.JXLExtractedData\n{\n public class JXLWorkbookData\n {\n public string WorkbookPath { get; set... | JXLExtractedRow> Rows { |
{
"list": [
{
"filename": "src/TasksSummarizer/TasksSummarizer.Functions/Functions/GenerateAdaptiveCardHttpTrigger.cs",
"retrieved_chunk": " var deploymentId = config.GetValue<string>(\"AzureOpenAI:DeploymentId\");\n var baseUrl = config.GetValue<string>(\"AzureOpenAI:BaseUrl\");... | using Newtonsoft.Json;
using TaskSummarizer.Shared.Models;
namespace TaskSummarizer.Shared.Helpers
{
public static class OpenAiHelpers
{
/// <summary>
/// Get the system message
/// </summary>
/// <param name="baseSystemMessage"></param>
/// <returns></returns>
... |
var tasks = JsonConvert.SerializeObject(taskItems, Formatting.Indented);
var systemMessage = GetSystemMessage(baseSystemMessage);
const string intro = "Here are the tasks done, generate the summary in 2-4 bullet points, in prose format:";
var serializedTasks = JsonConv... | {
"context_start_lineno": 0,
"file": "src/TasksSummarizer/TaskSummarizer.Shared/Helpers/OpenAiHelpers.cs",
"groundtruth_start_lineno": 38,
"repository": "Jcardif-DailyTaskSummary-5d3f785",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/2290"
} | {
"list": [
{
"filename": "src/TasksSummarizer/TaskSummarizer.Shared/Services/OpenAiChatService.cs",
"retrieved_chunk": " MaxTokens = 1000,\n TopP = 0.95\n };\n var content = await HttpDataService.PostAsJsonAsync<OpenAiCompletion>(\"\", completion, A... | TaskItem> taskItems, string baseSystemMessage)
{ |
{
"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... | using System.Xml.Linq;
using LibreDteDotNet.RestRequest.Interfaces;
namespace LibreDteDotNet.RestRequest.Extensions
{
public static class FolioCafExtension
{
private static CancellationToken CancellationToken { get; set; }
public static |
return instance.SetCookieCertificado().Result;
}
public static async Task<XDocument> Descargar(this Task<IFolioCaf> instance)
{
return await (await instance).Descargar();
}
public static async Task<IFolioCaf> Confirmar(this Task<IFolioCaf> instance)
... | {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Extensions/FolioCafExtension.cs",
"groundtruth_start_lineno": 10,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/2186"
} | {
"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 Conectar(this IFolioCaf instance)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " {\n GameObject.Destroy(__instance.blastWave);\n __instance.blastWave = Plugin.explosionWaveKnuckleblaster;\n }\n }\n class Explosion_Collide\n {\n static bool Prefix... | using HarmonyLib;
using UnityEngine;
namespace Ultrapain.Patches
{
class GrenadeParriedFlag : MonoBehaviour
{
public int parryCount = 1;
public bool registeredStyle = false;
public bool bigExplosionOverride = false;
public GameObject temporaryExplosion;
public GameObject... |
GrenadeParriedFlag flag = __instance.GetComponent<GrenadeParriedFlag>();
if (flag == null)
return true;
//if (!Plugin.ultrapainDifficulty || !ConfigManager.playerTweakToggle.value || !ConfigManager.grenadeBoostToggle.value)
// return true;
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Parry.cs",
"groundtruth_start_lineno": 172,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 174,
"task_id": "project_cc_csharp/2143"
} | {
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " isOrbitalRay = true;\n orbitalBeam = __instance;\n orbitalBeamFlag = flag;\n }\n return true;\n }\n static void Postfix()\n {\n ... | Grenade __instance, Collider __0)
{ |
{
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"retrieved_chunk": " var packagesSelected = SelectedPackages.ToObservableChangeSet()\n .ToCollection()\n .ObserveOn(RxApp.MainThreadScheduler)\n .Select(x => x.Any(... | // Kaplan Copyright (c) DragonFruit Network <inbox@dragonfruit.network>
// Licensed under Apache-2. Refer to the LICENSE file for more info
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
u... |
get => _current;
private set => this.RaiseAndSetIfChanged(ref _current, value);
}
public int CurrentPackageNumber
{
get => _currentPackageNumber;
private set => this.RaiseAndSetIfChanged(ref _currentPackageNumber, value);
}
publi... | {
"context_start_lineno": 0,
"file": "DragonFruit.Kaplan/ViewModels/RemovalProgressViewModel.cs",
"groundtruth_start_lineno": 60,
"repository": "dragonfruitnetwork-kaplan-13bdb39",
"right_context_start_lineno": 62,
"task_id": "project_cc_csharp/2285"
} | {
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"retrieved_chunk": " var matches = q.Item1.ToLookup(x => x.IsSearchMatch(q.Item2));\n return matches[true].Concat(matches[false]);\n })\n .ToProperty(th... | PackageRemovalTask Current
{ |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Models/Response/ResLibroDetalle.cs",
"retrieved_chunk": "๏ปฟusing System.Text.Json.Serialization;\nnamespace LibreDteDotNet.RestRequest.Models.Response\n{\n public class ResLibroDetalle\n {\n [JsonPropertyName(\"data\")]\n public ... | using System.Text.Json.Serialization;
namespace LibreDteDotNet.RestRequest.Models.Response
{
public class DataResp
{
[JsonPropertyName("detalles")]
public List< | get; set; }
[JsonPropertyName("totMntExe")]
public long TotMntExe { get; set; }
[JsonPropertyName("totMntNeto")]
public long TotMntNeto { get; set; }
[JsonPropertyName("totMntIVA")]
public long TotMntIVA { get; set; }
[JsonPropertyName("totMntTotal")]
... | {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Models/Response/DataResp.cs",
"groundtruth_start_lineno": 7,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/2202"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Models/Response/ResLibroDetalle.cs",
"retrieved_chunk": " public object DataReferencias { get; set; }\n [JsonPropertyName(\"dataReferenciados\")]\n public object DataReferenciados { get; set; }\n [JsonPropertyName(\"repa... | Detalle>? Detalles { |
{
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " __state.templateExplosion = GameObject.Instantiate(__instance.superExplosion, new Vector3(1000000, 1000000, 1000000), Quaternion.identity);\n __instance.superExplosion = _... | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Audio;
namespace Ultrapain.Patches
{
class DruidKnight_FullBurst
{
public static AudioMixer mixer;
public static float offset = 0.205f;
class StateInfo
{
public G... |
__instance.fullAutoProjectile = __state.oldProj;
if (__state.tempProj != null)
GameObject.Destroy(__state.tempProj);
}
}
class DruidKnight_FullerBurst
{
public static float offset = 0.5f;
static bool Prefix(Mandalore __instance, int ___shots... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/DruidKnight.cs",
"groundtruth_start_lineno": 38,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/2140"
} | {
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " aud.clip = Plugin.cannonBallChargeAudio;\n }\n void Update()\n {\n if (altFireCharging)\n {\n if (!aud.isPlaying)\n {\n ... | Mandalore __instance, StateInfo __state)
{ |
{
"list": [
{
"filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/ConversationManager.cs",
"retrieved_chunk": "{\n public class ConversationManager\n {\n private const string CONVERSATION_STORE_KEY = \"conversations\";\n private const int CHAR_LIMIT = 8... | 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... |
// Task source for piping incremental updates.
private volatile TaskCompletionSource<string> _sentenceUpdate;
public Bot(ConversationManager conversationManager)
{
_conversationManager = conversationManager;
_sentenceUpdate = new TaskCompletionSource<string>();... | {
"context_start_lineno": 0,
"file": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Bots/Bot.cs",
"groundtruth_start_lineno": 16,
"repository": "microsoft-NonprofitVirtualAssistant-be69e9b",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/2284"
} | {
"list": [
{
"filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/ConversationManager.cs",
"retrieved_chunk": " \"Sorry, your response exceeded the maximum character limit. Could you please try again with a shorter version?\",\n \"We love your enthusi... | ConversationManager _conversationManager; |
{
"list": [
{
"filename": "Ultrapain/Plugin.cs",
"retrieved_chunk": " if(ConfigManager.streetCleanerCoinsIgnoreWeakPointToggle.value)\n harmonyTweaks.Patch(GetMethod<Streetcleaner>(\"Start\"), postfix: GetHarmonyMethod(GetMethod<StreetCleaner_Start_Patch>(\"Postfix\")));\n ... | using HarmonyLib;
using System.Security.Cryptography;
using UnityEngine;
namespace Ultrapain.Patches
{
class SwordsMachineFlag : MonoBehaviour
{
public SwordsMachine sm;
public Animator anim;
public EnemyIdentifier eid;
public bool speedingUp = false;
private void Reset... |
if (ConfigManager.swordsMachineSecondPhaseMode.value != ConfigManager.SwordsMachineSecondPhase.SpeedUp || __instance.secondPhasePosTarget != null)
return;
SwordsMachineFlag flag = __instance.GetComponent<SwordsMachineFlag>();
if (flag == null)
{
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/SwordsMachine.cs",
"groundtruth_start_lineno": 81,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 83,
"task_id": "project_cc_csharp/2146"
} | {
"list": [
{
"filename": "Ultrapain/Plugin.cs",
"retrieved_chunk": " harmonyTweaks.Patch(GetMethod<SwordsMachine>(\"EndFirstPhase\"), postfix: GetHarmonyMethod(GetMethod<SwordsMachine_EndFirstPhase_Patch>(\"Postfix\")), prefix: GetHarmonyMethod(GetMethod<SwordsMachine_EndFirstPhase_Pat... | SwordsMachine __instance, Animator ___anim, EnemyIdentifier ___eid)
{ |
{
"list": [
{
"filename": "Source/TreeifyTask.WpfSample/MainWindow.xaml.cs",
"retrieved_chunk": " }\n if (!error && !token.IsCancellationRequested)\n {\n progressReporter.Report(TaskStatus.Completed, 100, $\"{progressMessage}: 100%\");\n }\n ... | 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... |
this.Reporting?.Invoke(sender, args);
}
private void ResetChildrenProgressValues()
{
taskObjects.Clear();
foreach (var task in childTasks)
{
task.ResetStatus();
}
}
/// <summary>
/// Throws <se... | {
"context_start_lineno": 0,
"file": "Source/TreeifyTask/TaskTree/TaskNode.cs",
"groundtruth_start_lineno": 219,
"repository": "intuit-TreeifyTask-4b124d4",
"right_context_start_lineno": 221,
"task_id": "project_cc_csharp/2257"
} | {
"list": [
{
"filename": "Source/TreeifyTask.WpfSample/MainWindow.xaml.cs",
"retrieved_chunk": " btnStart.IsEnabled = false;\n btnCancel.IsEnabled = true;\n try\n {\n tokenSource = new CancellationTokenSource();\n var token = t... | ProgressReportingEventArgs args)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/DemoOperatorUI.cs",
"retrieved_chunk": " [SerializeField] private DemoOperator? demoOperator = null;\n [SerializeField] private TMPro.TMP_InputField? messageInput = null;\n [SerializeField] private Button? sendButton =... | #nullable enable
using System.Collections.Generic;
using System.Linq;
using Mochineko.ChatGPT_API;
using Mochineko.LLMAgent.Summarization;
using Newtonsoft.Json;
using UnityEditor;
using UnityEngine;
namespace Mochineko.LLMAgent.Operation.Editor
{
internal sealed class LongTermMemoryEditor : EditorWindow
{
... |
private Vector2 totalScrollPosition;
private Vector2 promptsScrollPosition;
private Vector2 shortTermMemoriesScrollPosition;
private Vector2 bufferMemoriesScrollPosition;
private Vector2 summaryScrollPosition;
private void OnGUI()
{
demoOperator = Ed... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/Editor/LongTermMemoryEditor.cs",
"groundtruth_start_lineno": 19,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/2176"
} | {
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/AgentSpeakingState.cs",
"retrieved_chunk": " CancellationToken cancellationToken)\n {\n if (!context.SpeechQueue.Any())\n {\n return UniTask.FromResult<IResult<IEventRequest<AgentEvent... | DemoOperator? demoOperator; |
{
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " public float harmlessSize = 1f;\n public float harmlessSpeed = 1f;\n public float harmlessDamage = 1f;\n public int harmlessPlayerDamageOverride = -1;\n public bool normalMod = fa... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
using UnityEngine;
namespace Ultrapain.Patches
{
class Drone_Start_Patch
{
static void Postfix(Drone __instance, ref EnemyIdentifier ___eid)
{... |
Rigidbody rb;
private void Update()
{
if(homingTowardsPlayer)
{
if(target == null)
target = PlayerTracker.Instance.GetTarget();
if (rb == null)
rb = GetComponent<Rigidbody>();
Quate... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Drone.cs",
"groundtruth_start_lineno": 228,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 229,
"task_id": "project_cc_csharp/2151"
} | {
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " public float superSize = 1f;\n public float superSpeed = 1f;\n public float superDamage = 1f;\n public int superPlayerDamageOverride = -1;\n struct StateInfo\n {\n ... | Transform target; |
{
"list": [
{
"filename": "Common.cs",
"retrieved_chunk": " return fun.Invoke(aToken);\n }\n /// <summary>\n /// ่ฟ่ก\n /// </summary>\n /// <typeparam name=\"T\">ๅฏน่ฑก</typeparam>\n /// <param name=\"path\">่ฏทๆฑ่ทฏๅพ</param>\n /// <param name=\"data\"... | 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=$"htt... | {
"context_start_lineno": 0,
"file": "OfficialAccount/Template.cs",
"groundtruth_start_lineno": 60,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 62,
"task_id": "project_cc_csharp/2201"
} | {
"list": [
{
"filename": "Applets/Applets.cs",
"retrieved_chunk": " public UserPhoneData GetUserPhone(string code)\n {\n var config = this.Config.GetConfig(WeChatType.Applets);\n return Common.Execute(config.AppID, config.AppSecret, token =>\n {\n ... | BaseResult SetIndustry(Industry industry1,Industry industry2)
{ |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Cards/Card.cs",
"retrieved_chunk": "using System;\nnamespace osu.Game.Rulesets.Gengo.Cards \n{\n public class Card : IEquatable<Card> {\n public string foreignText { get; set; }\n public string translatedText { get; set; }\n pu... | #nullable disable
using System;
using System.Text;
using System.Collections.Generic;
using System.Net.Http;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Extensions;
using osu.Framework.Logging;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Screens.Play;
using osu... |
private HttpClient httpClient;
[Resolved]
protected GengoRulesetConfigManager config { get; set; }
[Resolved]
protected IBeatmap beatmap { get; set; }
[Resolved]
protected IDialogOverlay dialogOverlay { get; set; }
private Random hitObjectRando... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/Anki/Anki.cs",
"groundtruth_start_lineno": 29,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 30,
"task_id": "project_cc_csharp/2261"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Cards/Card.cs",
"retrieved_chunk": " this.cardID = cardID;\n }\n public override bool Equals(object? obj)\n {\n return this.Equals(obj as Card);\n }\n public override int GetHashCode()\n ... | Card> dueCards = new List<Card>(); |
{
"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 Material gabrielFakeMat;
public static Sprite blueRevolverSprite;
public static Sprite greenRevolverSprite;
public static Sprite redRevolverSprite;
public static Sprite blueShotgunSprite;
public static Sprite greenShotgunSprite;
public static Sprit... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 107,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 108,
"task_id": "project_cc_csharp/2156"
} | {
"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 ... | AudioClip cannonBallChargeAudio; |
{
"list": [
{
"filename": "csharp/redisTest/mainForm.cs",
"retrieved_chunk": "using System.Threading.Tasks;\nusing System.Windows.Forms;\nnamespace csharp_test_client\n{\n public partial class mainForm : Form\n {\n bool IsBackGroundProcessRunning = false;\n System.Windows.Forms.Tim... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace csharp_test_client
{
public partial c... |
Queue<PacketData> RecvPacketQueue = new Queue<PacketData>();
Queue<byte[]> SendPacketQueue = new Queue<byte[]>();
System.Windows.Threading.DispatcherTimer dispatcherUITimer;
public mainForm()
{
InitializeComponent();
}
private void mainForm_Load(o... | {
"context_start_lineno": 0,
"file": "cpp/Demo_2020-02-15/Client/mainForm.cs",
"groundtruth_start_lineno": 24,
"repository": "jacking75-how_to_use_redis_lib-d3accba",
"right_context_start_lineno": 25,
"task_id": "project_cc_csharp/2214"
} | {
"list": [
{
"filename": "csharp/redisTest/mainForm.cs",
"retrieved_chunk": " InitializeComponent();\n }\n private void mainForm_Load(object sender, EventArgs e)\n { \n IsBackGroundProcessRunning = true;\n dispatcherUITimer.Tick += new ... | PacketBufferManager PacketBuffer = new PacketBufferManager(); |
{
"list": [
{
"filename": "Ultrapain/Patches/CustomProgress.cs",
"retrieved_chunk": " __0 = 100;\n return true;\n }\n }\n [HarmonyPatch(typeof(RankData), MethodType.Constructor, new Type[] { typeof(StatsManager) })]\n class CustomProgress_RankDataCTOR\n {\n... | using HarmonyLib;
using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
/*
u = initial, f = final, d = delta, s = speed multiplier
u = 40f * Time.deltaT... |
__state = __instance.antiHp;
return true;
}
static void Postfix(NewMovement __instance, float __state)
{
float deltaAnti = __instance.antiHp - __state;
if (deltaAnti <= 0)
return;
deltaAnti *= ConfigManager.hardDamage... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/PlayerStatTweaks.cs",
"groundtruth_start_lineno": 565,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 567,
"task_id": "project_cc_csharp/2164"
} | {
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " }\n altFireCharge += Time.deltaTime;\n }\n }\n void OnDisable()\n {\n altFireCharging = false;\n }\n void PrepareFire()\n {",
... | NewMovement __instance, out float __state)
{ |
{
"list": [
{
"filename": "Assets/SceneTools/Editor/Common/Utils/Utils.cs",
"retrieved_chunk": " return entry != null;\n }\n Debug.LogError($\"No valid asset path found: {guid}\");\n return false;\n#else\n return false;\n#endif\n }\n ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Sandland.SceneTool.Editor.Common.Data;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
using Object = UnityEngine.Object;
namespace Sandland.SceneTool.Editor.Common.Utils
{
... |
var typeName = typeof(T).Name;
var query = string.IsNullOrEmpty(name) ? $"t:{typeName}" : $"{name} t:{typeName}";
var guids = AssetDatabase.FindAssets(query);
if (guids.Length == 0)
{
return Array.Empty<AssetFileInfo>();
}
... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Common/Utils/AssetDatabaseUtils.cs",
"groundtruth_start_lineno": 119,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 121,
"task_id": "project_cc_csharp/2237"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Common/Utils/Utils.cs",
"retrieved_chunk": " public static Dictionary<string, string> GetAssetsInBundles() =>\n AssetDatabase\n .GetAllAssetBundleNames()\n .SelectMany(AssetDatabase.GetAssetPathsFromAss... | AssetFileInfo[] FindAssets<T>(string name = null)
{ |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public string Username { get; set; }\n [JsonProperty(\"name\")]\n public string Name { get; set; }\n [JsonProperty(\"avatar_template\")]\n public string AvatarTemp... | using Newtonsoft.Json;
namespace DotNetDevBadgeWeb.Model
{
public class UserSummary
{
[JsonProperty("likes_given")]
public int LikesGiven { get; set; }
[JsonProperty("likes_received")]
public int LikesReceived { get; set; }
[JsonProperty("topics_entered")]
publ... | get; set; }
[JsonProperty("solved_count")]
public int SolvedCount { get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"groundtruth_start_lineno": 36,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 38,
"task_id": "project_cc_csharp/2300"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public bool? Admin { get; set; }\n [JsonProperty(\"moderator\")]\n public bool? Moderator { get; set; }\n public ELevel Level => TrustLevel switch\n {\n ... | JsonProperty("can_see_summary_stats")]
public bool CanSeeSummaryStats { |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Endpoints/Badge/BadgeEndpoints.cs",
"retrieved_chunk": " context.Response.SetCacheControl(TimeSpan.FromDays(1).TotalSeconds);\n return Results.Content(response, \"image/svg+xml\");\n });\n ... | using DotNetDevBadgeWeb.Common;
using DotNetDevBadgeWeb.Interfaces;
using DotNetDevBadgeWeb.Model;
namespace DotNetDevBadgeWeb.Core.Badge
{
internal class BadgeCreatorV1 : IBadgeV1
{
private const float MAX_WIDTH = 193f;
private const float LOGO_X = 164.5f;
private const float T... |
(byte[] avatar, UserSummary summary, User user) = await _forumProvider.GetUserInfoWithAvatarAsync(id, token);
(int gold, int silver, int bronze) = await _forumProvider.GetBadgeCountAsync(id, token);
ColorSet colorSet = Palette.GetColorSet(theme);
string trustColor = Pal... | {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Core/Badge/BadgeCreatorV1.cs",
"groundtruth_start_lineno": 67,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 69,
"task_id": "project_cc_csharp/2309"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Endpoints/Badge/BadgeEndpoints.cs",
"retrieved_chunk": " context.Response.SetCacheControl(TimeSpan.FromDays(1).TotalSeconds);\n return Results.Content(response, \"image/svg+xml\");\n });\n ... | Task<string> GetMediumBadge(string id, ETheme theme, CancellationToken token)
{ |
{
"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 response = await Rest.GetAsync(GetUrl($"imagine/requests/{id}"), parameters: new RestParameters(client.DefaultRequestHeaders), cancellationToken);
response.Validate();
return JsonConvert.DeserializeObject<SkyboxInfoRequest>(response.Body, client.JsonSerializationOptions).SkyboxI... | {
"context_start_lineno": 0,
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxEndpoint.cs",
"groundtruth_start_lineno": 164,
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"right_context_start_lineno": 166,
"task_id": "project_cc_csharp/2287"
} | {
"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... | SkyboxInfo> GetSkyboxInfoAsync(int id, CancellationToken cancellationToken = default)
{ |
{
"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.Drawing;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
public class OrbitalStrikeFlag : MonoBehaviour
{
public CoinChainList chainList;
public bool isOrbitalRay = false;
... |
}
static bool Prefix(Grenade __instance, ref float __3, out StateInfo __state,
bool __1, bool __2)
{
__state = new StateInfo();
if((Coin_ReflectRevolver.coinIsShooting && Coin_ReflectRevolver.shootingCoin != null) || (Time.time - Coin_ReflectRevolver.lastCo... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 211,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 212,
"task_id": "project_cc_csharp/2185"
} | {
"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... | GameObject templateExplosion; |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/Configuration/IDataTableExtractorSearchConfiguration.cs",
"retrieved_chunk": " /// <exception cref=\"ArgumentException\"/>\n IDataTableExtractorSearchConfiguration Worksheets(string[] worksheets);\n /// <summary>\n ... | using JdeJabali.JXLDataTableExtractor.Configuration;
using JdeJabali.JXLDataTableExtractor.DataExtraction;
using JdeJabali.JXLDataTableExtractor.Exceptions;
using JdeJabali.JXLDataTableExtractor.JXLExtractedData;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace JdeJabali.... |
_readAllWorksheets = false;
if (_worksheetIndexes.Count == 0 && _worksheets.Count == 0)
{
throw new InvalidOperationException("No worksheets selected.");
}
return this;
}
public IDataTableExtractorWorksheetConfiguration Read... | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataTableExtractor.cs",
"groundtruth_start_lineno": 142,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 144,
"task_id": "project_cc_csharp/2317"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/Configuration/IDataTableExtractorSearchConfiguration.cs",
"retrieved_chunk": " /// <exception cref=\"ArgumentException\"/>\n IDataTableExtractorSearchConfiguration Worksheets(string[] worksheets);\n /// <summary>\n ... | IDataTableExtractorWorksheetConfiguration ReadOnlyTheIndicatedSheets()
{ |
{
"list": [
{
"filename": "Assets/ZimGui/Core/UiMesh.cs",
"retrieved_chunk": " quad.V1.UV.x = centerUV.x;\n quad.V1.UV.y = uv.w + uv.y;\n if (fillAmount <= 0.125f) {\n var t = FastTan2PI(fillAmount);\n quad.V3.Position = quad.V2.Positi... | using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
namespace ZimGui.Core {
[StructLayout(LayoutKind.Sequential)]
public struct Options {
public byte Size;
public byte Padding0; //TODO use padding... |
var size = (byte) Mathf.Clamp((int) scale.x, 0, 255);
quad.V0.Write(position + new Vector2(0, scale.y), size, leftColor, uv);
quad.V1.Write(position + scale, size, rightColor, uv);
quad.V2.Write(position + new Vector2(scale.x, 0), size, rightColor, uv);
quad.... | {
"context_start_lineno": 0,
"file": "Assets/ZimGui/Core/Quad.cs",
"groundtruth_start_lineno": 243,
"repository": "Akeit0-ZimGui-Unity-cc82fb9",
"right_context_start_lineno": 244,
"task_id": "project_cc_csharp/2205"
} | {
"list": [
{
"filename": "Assets/ZimGui/Core/UiMesh.cs",
"retrieved_chunk": " public void AddRadialFilledSquare(Vector2 center, float size, UiColor color,float fillAmount) {\n AddRadialFilledUnScaledUV(new Vector4(0,0,CircleCenter.x,CircleCenter.y), center, size, color, fillAmount);... | UiColor rightColor, Vector2 uv) { |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"retrieved_chunk": " return Results.Succeed(nextState);\n }\n }\n if (anyTransitionMap.TryGetValue(@event, out var nextStateFromAny))\n {\n ... | #nullable enable
using System;
using System.Collections.Generic;
namespace Mochineko.RelentStateMachine
{
public sealed class TransitionMapBuilder<TEvent, TContext>
: ITransitionMapBuilder<TEvent, TContext>
{
private readonly IState<TEvent, TContext> initialState;
private readonly List<... |
if (disposed)
{
throw new ObjectDisposedException(nameof(TransitionMapBuilder<TEvent, TContext>));
}
var result = new TransitionMap<TEvent, TContext>(
initialState,
states,
BuildReadonlyTransitionMap(),
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"groundtruth_start_lineno": 96,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 98,
"task_id": "project_cc_csharp/2276"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"retrieved_chunk": " public void Dispose()\n {\n foreach (var state in states)\n {\n state.Dispose();\n }\n }\n }\n}",
"score": 32.65067341622... | ITransitionMap<TEvent, TContext> Build()
{ |
{
"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... | 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... |
get
{
if (_lighningBoltSFX == null)
_lighningBoltSFX = ferryman.gameObject.transform.Find("LightningBoltChimes").gameObject;
return _lighningBoltSFX;
}
}
private static bool loadedPrefabs = false;
public v... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 133,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 135,
"task_id": "project_cc_csharp/2203"
} | {
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " return true;\n }\n static void Postfix(Coin __instance)\n {\n coinIsShooting = false;\n }\n }\n class RevolverBeam_Start\n {\n static bool Prefix(Revol... | GameObject lighningBoltSFX
{ |
{
"list": [
{
"filename": "ClientBase/UI/Notification/NotificationManager.cs",
"retrieved_chunk": "using Client.ClientBase.Fonts;\nnamespace Client.ClientBase.UI.Notification\n{\n public static class NotificationManager\n {\n public static Form overlay = null!;\n public static List... | namespace Client.ClientBase
{
public static class ModuleManager
{
public static List< |
public static void AddModule(Module module)
{
modules.Add(module);
}
public static void RemoveModule(Module module)
{
modules.Remove(module);
}
public static void Init()
{
Console.WriteLine("Initializing modules...")... | {
"context_start_lineno": 0,
"file": "ClientBase/ModuleManager.cs",
"groundtruth_start_lineno": 4,
"repository": "R1ck404-External-Cheat-Base-65a7014",
"right_context_start_lineno": 5,
"task_id": "project_cc_csharp/2322"
} | {
"list": [
{
"filename": "ClientBase/UI/Notification/NotificationManager.cs",
"retrieved_chunk": " }\n public static void AddNotification(string text, Color lineColor)\n {\n int x = notifications.Count > 0 ? notifications[0]._boxRect.X : 0;\n int y = notific... | Module> modules = new List<Module>(); |
{
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/Handlers/SceneClassGenerationUiHandler.cs",
"retrieved_chunk": " private const string ScriptDefine = \"SANDLAND_SCENE_CLASS_GEN\";\n private const string AddressablesSupportDefine = \"SANDLAND_ADDRESSABLES\";... | using System;
using Sandland.SceneTool.Editor.Common.Data;
using Sandland.SceneTool.Editor.Common.Utils;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.UIElements;
namespace Sandland.SceneTool.Editor.Views
{
internal class SceneItemView : VisualElement, IDisposable
{... |
public SceneItemView()
{
var visualTree = AssetDatabaseUtils.FindAndLoadVisualTreeAsset("SceneItemView");
visualTree.CloneTree(this);
_iconImage = this.Q<Image>("scene-icon");
_button = this.Q<Label>("scene-button");
_favoritesButton = this.... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneListItem/SceneItemView.cs",
"groundtruth_start_lineno": 21,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/2270"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/Handlers/SceneClassGenerationUiHandler.cs",
"retrieved_chunk": " public SceneClassGenerationUiHandler(VisualElement root)\n {\n _mainToggle = root.Q<Toggle>(\"scene-class-generation-toggle\");\n ... | AssetFileInfo _sceneInfo; |
{
"list": [
{
"filename": "ChatUI/MainWindow.xaml.cs",
"retrieved_chunk": "using ChatUI.MVVM.ViewModel;\nusing System.ComponentModel;\nusing System.Runtime.CompilerServices;\nusing ChatGPTConnection;\nnamespace ChatUI\n{\n\tpublic partial class MainWindow : Window\n\t{\n\t\tpublic static string DllDir... | 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 string _message = "";
public string Message
{
get { return _message; }
set
{
_message = value;
OnPropertyChanged();
}
}
private string CatIconPath => Path.Combine(MainWindow.DllDirectory, "Icons/cat.jpeg");
public MainViewModel()
{
Messages = new ObservableCo... | {
"context_start_lineno": 0,
"file": "ChatUI/MVVM/ViewModel/MainViewModel.cs",
"groundtruth_start_lineno": 19,
"repository": "4kk11-ChatGPTforRhino-382323e",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/2303"
} | {
"list": [
{
"filename": "ChatUI/MainWindow.xaml.cs",
"retrieved_chunk": "\t\t\tget \n\t\t\t{\n\t\t\t\tstring dllPath = System.IO.Path.Combine(System.Reflection.Assembly.GetExecutingAssembly().Location);\n\t\t\t\tstring dllDirectory = System.IO.Directory.GetParent(dllPath).FullName;\n\t\t\t\treturn d... | RelayCommand SendCommand { |
{
"list": [
{
"filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs",
"retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractColorValueControlTrack))]\n public class AbstractColorValueControlTrackCustomEditor : TrackEdi... | 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... |
Dictionary<AbstractBoolValueControlClip, Texture2D> textures = new();
public override ClipDrawOptions GetClipOptions(TimelineClip clip)
{
var clipOptions = base.GetClipOptions(clip);
clipOptions.icons = null;
clipOptions.highlightColor = AbstractBool... | {
"context_start_lineno": 0,
"file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractBoolValueControlTrackCustomEditor.cs",
"groundtruth_start_lineno": 28,
"repository": "nmxi-Unity_AbstractTimelineExtention-b518049",
"right_context_start_lineno": 31,
"task_id": "project_cc_csharp/2... | {
"list": [
{
"filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs",
"retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractIntValueControlClip))]\n public class AbstractIntValueControlCustomEditor : ClipEditor\n {\... | AbstractBoolValueControlClip))]
public class AbstractBoolValueControlCustomEditor : ClipEditor
{ |
{
"list": [
{
"filename": "src/Services/EpicAccountClient.cs",
"retrieved_chunk": " var response = await httpClient.GetAsync(url);\n var str = await response.Content.ReadAsStringAsync();\n if (Serialization.TryFromJson<ErrorResponse>(str, out var error) && ... | using LegendaryLibraryNS.Models;
using Playnite.SDK.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace LegendaryLibraryNS.Services
{
public class WebStoreClient : IDisposable
{
priv... |
var slugUri = productSlug.Split('/').First();
var productUrl = string.Format(ProductUrlBase, slugUri);
var str = await httpClient.GetStringAsync(productUrl);
return Serialization.FromJson<WebStoreModels.ProductResponse>(str);
}
}
}
| {
"context_start_lineno": 0,
"file": "src/Services/WebStoreClient.cs",
"groundtruth_start_lineno": 39,
"repository": "hawkeye116477-playnite-legendary-plugin-d7af6b2",
"right_context_start_lineno": 41,
"task_id": "project_cc_csharp/2241"
} | {
"list": [
{
"filename": "src/Services/EpicAccountClient.cs",
"retrieved_chunk": " return new Tuple<string, T>(str, Serialization.FromJson<T>(str));\n }\n catch\n {\n // For cases like #134, where t... | WebStoreModels.ProductResponse> GetProductInfo(string productSlug)
{ |
{
"list": [
{
"filename": "Assets/ZimGui/RayCaster.cs",
"retrieved_chunk": "๏ปฟusing System;\nusing UnityEngine;\nnamespace ZimGui {\n public struct RayCaster {\n public Rect[] Rects;\n public int[] TargetID;\n public int Count;\n public RayCaster(int capacity) {\n ... | using UnityEngine;
namespace ZimGui {
public enum FocusState {
NotFocus,
NewFocus,
Focus,
}
public static class IMInput {
public struct ModalWindowData {
public bool IsActive;
public bool Activated;
public Vector2 BasePoint;
p... |
public static void Add(int id, Rect rect) => _rayCaster.Add(id, rect);
public static void Add(Rect rect) => _rayCaster.Add(CurrentID, rect);
public static void Init() {
ModalWindow = default;
_rayCaster.Clear();
}
public static string InputString {
... | {
"context_start_lineno": 0,
"file": "Assets/ZimGui/IMInput.cs",
"groundtruth_start_lineno": 18,
"repository": "Akeit0-ZimGui-Unity-cc82fb9",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/2229"
} | {
"list": [
{
"filename": "Assets/ZimGui/WindowState.cs",
"retrieved_chunk": " IsActive = state.IsActive;\n }\n public bool Current => true;\n public bool MoveNext() {\n if (!DoOnce) return false;\n DoOnce = false;\n ... | RayCaster _rayCaster = new RayCaster(16); |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"retrieved_chunk": " private readonly IReadOnlyDictionary<\n IState<TEvent, TContext>,\n IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>\n transitionMap;\n pr... | #nullable enable
using System;
using System.Collections.Generic;
namespace Mochineko.RelentStateMachine
{
public sealed class TransitionMapBuilder<TEvent, TContext>
: ITransitionMapBuilder<TEvent, TContext>
{
private readonly IState<TEvent, TContext> initialState;
private readonly List<... |
private bool disposed = false;
public static TransitionMapBuilder<TEvent, TContext> Create<TInitialState>()
where TInitialState : IState<TEvent, TContext>, new()
{
var initialState = new TInitialState();
return new TransitionMapBuilder<TEvent, TContext>(ini... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"groundtruth_start_lineno": 15,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/2288"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"retrieved_chunk": " IState<TEvent, TContext>,\n IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>\n transitionMap,\n IReadOnlyDictionary<TEvent, IStat... | IState<TEvent, TContext>>
anyTransitionMap = new(); |
{
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphSaveUtility.cs",
"retrieved_chunk": " private void LinkNodes(Port outpor, Port inport)\n {\n var tempEdge = new Edge\n {\n output = outpor,\n input = inport\n };\n ... | 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... |
return node.InstantiatePort(Orientation.Horizontal, direction, capacity, typeof(float));
}
public NodeQuestGraph GenerateEntryPointNode()
{
var node = new NodeQuestGraph
{
title = "Start",
GUID = Guid.NewGuid().ToString(),
... | {
"context_start_lineno": 0,
"file": "Editor/GraphEditor/QuestGraphView.cs",
"groundtruth_start_lineno": 72,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 74,
"task_id": "project_cc_csharp/2337"
} | {
"list": [
{
"filename": "Editor/GraphEditor/QuestNodeSearchWindow.cs",
"retrieved_chunk": " public List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)\n {\n var tree = new List<SearchTreeEntry>\n {\n new SearchTreeGroupEntry(new GUIC... | NodeQuestGraph node, Direction direction, Port.Capacity capacity = Port.Capacity.Single)
{ |
{
"list": [
{
"filename": "WAGIapp/AI/ActionList.cs",
"retrieved_chunk": "๏ปฟnamespace WAGIapp.AI\n{\n public class ActionList\n {\n private readonly object dataLock = new object(); \n private List<LogAction> Actions;\n private int MaxActions;\n public ActionList(int ma... | 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 string FormatedNotes
{
get
{
string output = "";
for (int i = 0; i < Notes.Count; i++)
{
output += (i + 1) + ". " + Notes[i] + "\n";
}
return output;
}
... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/Master.cs",
"groundtruth_start_lineno": 36,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 37,
"task_id": "project_cc_csharp/2375"
} | {
"list": [
{
"filename": "WAGIapp/AI/ActionList.cs",
"retrieved_chunk": " MaxActions = maxActions;\n }\n public LogAction AddAction(string action, string icon = LogAction.InfoIcon)\n {\n LogAction a = new LogAction() { Title = action, Icon = icon };\n ... | ChatMessage> LastCommand = new List<ChatMessage>(); |
{
"list": [
{
"filename": "ServiceSelf/NamedPipeLoggerProvider.cs",
"retrieved_chunk": "๏ปฟusing Microsoft.Extensions.Logging;\nusing System;\nnamespace ServiceSelf\n{\n /// <summary>\n /// ๅฝๅ็ฎก้ๆฅๅฟๆไพ่
\n /// </summary>\n sealed class NamedPipeLoggerProvider : ILoggerProvider\n {\n pr... | using Microsoft.Extensions.Logging;
using System;
namespace ServiceSelf
{
/// <summary>
/// ๅฝๅ็ฎก้ๆฅๅฟ
/// </summary>
sealed class NamedPipeLogger : ILogger
{
private readonly string categoryName;
private readonly |
public NamedPipeLogger(string categoryName, NamedPipeClient pipeClient)
{
this.categoryName = categoryName;
this.pipeClient = pipeClient;
}
public IDisposable BeginScope<TState>(TState state)
{
return NullScope.Instance;
}
p... | {
"context_start_lineno": 0,
"file": "ServiceSelf/NamedPipeLogger.cs",
"groundtruth_start_lineno": 11,
"repository": "xljiulang-ServiceSelf-7f8604b",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/2376"
} | {
"list": [
{
"filename": "App/AppHostedService.cs",
"retrieved_chunk": " public AppHostedService(ILogger<AppHostedService> logger)\n {\n this.logger = logger;\n }\n protected override async Task ExecuteAsync(CancellationToken stoppingToken)\n {\n ... | NamedPipeClient pipeClient; |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Emotion/EmotionSample.cs",
"retrieved_chunk": " public readonly struct EmotionSample<TEmotion>\n : IEquatable<EmotionSample<TEmotion>>\n where TEmotion : Enum\n {\n /// <summary>\n /// Target emotion.\n ... | #nullable enable
using System;
using System.Runtime.InteropServices;
namespace Mochineko.FacialExpressions.Emotion
{
/// <summary>
/// Frame of emotion animation.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public readonly struct EmotionAnimationFrame<TEmotion>
: IEquatable<Emotion... |
/// <summary>
/// Duration of this frame in seconds.
/// </summary>
public readonly float durationSeconds;
/// <summary>
/// Creates a new instance of <see cref="EmotionAnimationFrame{TEmotion}"/>.
/// </summary>
/// <param name="sample">Sample of emoti... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/Emotion/EmotionAnimationFrame.cs",
"groundtruth_start_lineno": 17,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 18,
"task_id": "project_cc_csharp/2252"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Emotion/EmotionSample.cs",
"retrieved_chunk": " /// </summary>\n public readonly float weight;\n /// <summary>\n /// Creates a new instance of <see cref=\"EmotionSample{TEmotion}\"/>.\n /// </summary>\n ... | EmotionSample<TEmotion> sample; |
{
"list": [
{
"filename": "Runtime/SaveData/QuestSaveDataSurrogate.cs",
"retrieved_chunk": " public object SetObjectData(object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)\n {\n Quest q = (Quest)obj;\n q.firtsNode = (NodeQuest... | using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using UnityEngine;
namespace QuestSystem.SaveSystem
{
public class QuestLogSaveDataSurrogate : ISerializationSurrogate
{
public void GetObjectData(object obj, SerializationInfo info, StreamingContext context... |
public List<QuestSaveData> doneQuestSave;
public List<QuestSaveData> failedQuestSave;
public int dia;
public QuestLogSaveData(QuestLog ql)
{
//Manage current quest
currentQuestSave = new List<QuestSaveData>();
doneQuestSave = new List<QuestS... | {
"context_start_lineno": 0,
"file": "Runtime/SaveData/QuestLogSaveDataSurrogate.cs",
"groundtruth_start_lineno": 38,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 39,
"task_id": "project_cc_csharp/2371"
} | {
"list": [
{
"filename": "Runtime/SaveData/QuestSaveDataSurrogate.cs",
"retrieved_chunk": " return obj;\n }\n }\n [System.Serializable]\n public class QuestSaveData\n {\n public List<int> states;\n public string name;\n public NodeQuestSaveData actua... | QuestSaveData> currentQuestSave; |
{
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": " public readonly RoboStats jobStats;\n public readonly GameCacheViewModel gameCache;\n public readonly GameCacheManagerViewModel cacheManager;\n public readonly InstallProgressViewModel p... | using NowPlaying.Utils;
using NowPlaying.Models;
using Playnite.SDK.Data;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Threading;
using static NowPlaying.Models.GameCacheManager;
using Playnite.SDK;... |
private readonly Action<GameCacheJob> InstallCancelled;
private bool cancelOnMaxFill;
public InstallCallbacks
(
GameCacheManager manager,
GameCacheViewModel gameCache,
Action<GameCacheJob> installDone,
... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheManagerViewModel.cs",
"groundtruth_start_lineno": 503,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 504,
"task_id": "project_cc_csharp/2234"
} | {
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": " : base(nowPlayingGame)\n {\n this.plugin = plugin;\n this.settings = plugin.Settings;\n this.PlayniteApi = plugin.PlayniteApi;\n this.cacheManager = plu... | GameCacheJob> InstallDone; |
{
"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... | #nullable disable
using System;
using System.Text;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Logging;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Game.Beatmaps;
us... |
private List<Card> fakesLine = new List<Card>();
public OsuSpriteText leftWordText;
public OsuSpriteText rightWordText;
[Resolved]
protected IBeatmap beatmap { get; set; }
private Random leftRightOrderRandom;
/// <summary>
/// Function to update the t... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/UI/Translation/TranslationContainer.cs",
"groundtruth_start_lineno": 22,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/2356"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"retrieved_chunk": " {\n private const double time_preempt = 600;\n private const double time_fadein = 400;\n public override bool HandlePositionalInput => true;\n public Dra... | Card> translationsLine = new List<Card>(); |
{
"list": [
{
"filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractFloatValueControlTrackCustomEditor.cs",
"retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractColorValueControlTrack))]\n public class AbstractColorValueControlTrackCustomEditor : TrackE... | using UnityEditor;
using UnityEditor.Timeline;
using UnityEngine;
using UnityEngine.Timeline;
namespace dev.kemomimi.TimelineExtension.AbstractValueControlTrack.Editor
{
internal static class AbstractIntValueControlTrackEditorUtility
{
internal static Color PrimaryColor = new(1f, 1f, 0.5f);
}
... |
public override ClipDrawOptions GetClipOptions(TimelineClip clip)
{
var clipOptions = base.GetClipOptions(clip);
clipOptions.icons = null;
clipOptions.highlightColor = AbstractIntValueControlTrackEditorUtility.PrimaryColor;
return clipOptions;
}
... | {
"context_start_lineno": 0,
"file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs",
"groundtruth_start_lineno": 25,
"repository": "nmxi-Unity_AbstractTimelineExtention-b518049",
"right_context_start_lineno": 28,
"task_id": "project_cc_csharp/23... | {
"list": [
{
"filename": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractFloatValueControlTrackCustomEditor.cs",
"retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractFloatValueControlClip))]\n public class AbstractFloatValueControlCustomEditor : ClipEditor\n... | AbstractIntValueControlClip))]
public class AbstractIntValueControlCustomEditor : ClipEditor
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/ITransitionMap.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nusing Mochineko.Relent.Result;\nnamespace Mochineko.RelentStateMachine\n{\n public interface ITransitionMap<TEvent, TContext> : IDisposable\n {\n interna... | #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 ... |
if (transitionMap.TryGetValue(currentState, out var candidates))
{
if (candidates.TryGetValue(@event, out var nextState))
{
return Results.Succeed(nextState);
}
}
if (anyTransitionMap.TryGetValue(@event... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"groundtruth_start_lineno": 38,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 42,
"task_id": "project_cc_csharp/2335"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"retrieved_chunk": " throw new ObjectDisposedException(nameof(TransitionMapBuilder<TEvent, TContext>));\n }\n disposed = true;\n }\n public void RegisterTransitio... | ITransitionMap<TEvent, TContext>.AllowedToTransit(
IState<TEvent, TContext> currentState,
TEvent @event)
{ |
{
"list": [
{
"filename": "App.xaml.cs",
"retrieved_chunk": " {\n _ = services\n // Services\n .AddSingleton<IGlobalHotkeyService, GlobalHotkeyService>()\n .AddSingleton<ILoggingService, LoggingServi... | using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Windows.Media.Core;
using Windows.Media.Playback;
using wingman.Helpers;
using wingman.Interfaces;
using wingman.ViewModels;
namespace wingman.Ser... |
this.globalHotkeyService = globalHotkeyService;
this.micService = micService;
this.stdInService = stdInService;
this.settingsService = settingsService;
Logger = loggingService;
this.windowingService = windowingService;
mediaPlayer = ne... | {
"context_start_lineno": 0,
"file": "Services/EventHandlerService.cs",
"groundtruth_start_lineno": 36,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 39,
"task_id": "project_cc_csharp/2299"
} | {
"list": [
{
"filename": "ViewModels/OpenAIControlViewModel.cs",
"retrieved_chunk": " Modal_Hotkey = _settingsService.Load<string>(WingmanSettings.Modal_Hotkey);\n Trim_Newlines = _settingsService.Load<bool>(WingmanSettings.Trim_Newlines);\n Trim_Whitespaces = _settin... | IWindowingService windowingService
)
{ |
{
"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... | // -------------------------------------------------------------
// 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... |
try
{
return returningStatusDetailsFunction();
}
catch (JsonReaderException jsonReaderException)
{
var failedStatusDetailStorageException =
new FailedStatusDetailStorageException(jsonReaderException);
... | {
"context_start_lineno": 0,
"file": "Standard.REST.RESTFulSense/Services/Foundations/StatusDetails/StatusDetailService.Exceptions.cs",
"groundtruth_start_lineno": 19,
"repository": "The-Standard-Organization-Standard.REST.RESTFulSense-7598bbe",
"right_context_start_lineno": 21,
"task_id": "project_cc_cshar... | {
"list": [
{
"filename": "Standard.REST.RESTFulSense/Services/Foundations/StatusDetails/StatusDetailService.Validations.cs",
"retrieved_chunk": " {\n if (maybeStatusDetail is null)\n {\n throw new NotFoundStatusDetailException(statusCode);\n }\n ... | StatusDetail> TryCatch(ReturningStatusDetailsFunction returningStatusDetailsFunction)
{ |
{
"list": [
{
"filename": "Microsoft.Build.Shared/FileUtilities.cs",
"retrieved_chunk": " internal static string ToSlash(this string s)\n {\n return s.Replace('\\\\', '/');\n }\n internal static bool FileExistsNoThrow(string fullPath, IFileSystem fileSystem = nul... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.IO.Enumeration;
using System.Linq;
using System.Security;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.Build.Shared;
using Microsoft.Build.Shared.F... |
if (/*Traits.Instance.MSBuildCacheFileEnumerations*/false)
{
_cachedGlobExpansions = s_cachedGlobExpansions.Value;
_cachedGlobExpansionsLock = s_cachedGlobExpansionsLock;
}
else
{
_cachedGlobExpansions = getFile... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.Shared/FileMatcher.cs",
"groundtruth_start_lineno": 150,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 152,
"task_id": "project_cc_csharp/2166"
} | {
"list": [
{
"filename": "Microsoft.Build.Shared/FileUtilities.cs",
"retrieved_chunk": " internal static string TrimTrailingSlashes(this string s)\n {\n return s.TrimEnd(Slashes);\n }\n internal static string FixFilePath(string path)\n {\n if (... | IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null)
{ |
{
"list": [
{
"filename": "Ultrapain/ConfigManager.cs",
"retrieved_chunk": " public Sprite sprite;\n public Color color;\n public ConfigField field;\n private GameObject currentUI;\n private Image currentImage;\n private static FieldInfo f_IntField_currentUi =... | using HarmonyLib;
using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
/*
u = initial, f = final, d = delta, s = speed multiplier
u = 40f * Time.deltaT... |
Nail comp = nail.GetComponent<Nail>();
if (inst.altVersion)
{
// Blue saw launcher
if (inst.variation == 1)
{
comp.damage = ConfigManager.sawBlueDamage.value;
comp.hitAmount = ConfigManager.sawB... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/PlayerStatTweaks.cs",
"groundtruth_start_lineno": 363,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 365,
"task_id": "project_cc_csharp/2250"
} | {
"list": [
{
"filename": "Ultrapain/ConfigManager.cs",
"retrieved_chunk": " private const float fieldAnchorY = -30f;\n private const float fieldSizeX = 270f;\n public ImageInputField(ConfigField field, Sprite sprite, Color color) : base(field.parentPanel, 0, 0)\n {\n ... | Nailgun inst, GameObject nail)
{ |
{
"list": [
{
"filename": "JWLSLMerge.Data/Models/Note.cs",
"retrieved_chunk": "๏ปฟusing JWLSLMerge.Data.Attributes;\nnamespace JWLSLMerge.Data.Models\n{\n public class Note\n {\n [Ignore]\n public int NoteId { get; set; }\n public string Guid { get; set; } = null!;\n p... | using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class UserMark
{
[ | get; set; }
public int ColorIndex { get; set; }
public int LocationId { get; set; }
public int StyleIndex { get; set; }
public string UserMarkGuid { get; set; } = null!;
public int Version { get; set; }
[Ignore]
public int NewUserMarkId { get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "JWLSLMerge.Data/Models/UserMark.cs",
"groundtruth_start_lineno": 6,
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/2426"
} | {
"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 UserMarkId { |
{
"list": [
{
"filename": "LootingBots/components/LootingBrain.cs",
"retrieved_chunk": " public InventoryController InventoryController;\n // Current container that the bot will try to loot\n public LootableContainer ActiveContainer;\n // Current loose item that the bot wil... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Comfort.Common;
using EFT;
using EFT.InventoryLogic;
using LootingBots.Patch.Util;
using UnityEngine;
namespace LootingBots.Patch.Components
{
public class GearValu... |
Item helmet = _botInventoryController.Inventory.Equipment
.GetSlot(EquipmentSlot.Headwear)
.ContainedItem;
Item chest = _botInventoryController.Inventory.Equipment
.GetSlot(EquipmentSlot.ArmorVest)
.ContainedItem;
Item ... | {
"context_start_lineno": 0,
"file": "LootingBots/components/InventoryController.cs",
"groundtruth_start_lineno": 443,
"repository": "Skwizzy-SPT-LootingBots-76279a3",
"right_context_start_lineno": 445,
"task_id": "project_cc_csharp/2238"
} | {
"list": [
{
"filename": "LootingBots/components/LootingBrain.cs",
"retrieved_chunk": " public Vector3 LootObjectPosition;\n // Object ids that the bot has looted\n public List<string> IgnoredLootIds;\n // Object ids that were not able to be reached even though a valid pat... | TransactionController.EquipAction GetEquipAction(Item lootItem)
{ |
{
"list": [
{
"filename": "NodeBot/Command/Op.cs",
"retrieved_chunk": " sender.GetNodeBot().Permissions[num] = sender.GetNodeBot().OpPermission;\n sender.SendMessage($\"ๅฐ{num}่ฎพไธบop\");\n }\n catch { }\n }\n sender... | 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... |
if (sender is IQQSender QQSender)
{
return HasPermission(command, QQSender.GetNumber());
}
if (sender is ConsoleCommandSender)
{
return true;
}
return false;
}
public void RunTask(Task ta... | {
"context_start_lineno": 0,
"file": "NodeBot/NodeBot.cs",
"groundtruth_start_lineno": 192,
"repository": "Blessing-Studio-NodeBot-ca9921f",
"right_context_start_lineno": 194,
"task_id": "project_cc_csharp/2388"
} | {
"list": [
{
"filename": "NodeBot/Classes/IQQSender.cs",
"retrieved_chunk": " {\n throw new NotImplementedException();\n }\n public long GetNumber()\n {\n return QQNumber;\n }\n public CqWsSession GetSession()\n {\n ret... | ICommandSender sender)
{ |
{
"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... | using LibreDteDotNet.RestRequest.Interfaces;
namespace LibreDteDotNet.RestRequest.Extensions
{
public static class BoletaExtension
{
public static IBoleta Conectar(this |
IBoleta instance = folioService;
return instance.SetCookieCertificado().Result;
}
}
}
| {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Extensions/BoletaExtension.cs",
"groundtruth_start_lineno": 6,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/2330"
} | {
"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 folioService)
{ |
{
"list": [
{
"filename": "src/Gum/InnerThoughts/Line.cs",
"retrieved_chunk": " public readonly string? Portrait = null;\n /// <summary>\n /// If the caption has a text, this will be the information.\n /// </summary>\n public readonly string? Text = null;\n //... | using System;
using System.Diagnostics;
using System.Text;
namespace Gum.InnerThoughts
{
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
public class Block
{
public readonly int Id = 0;
/// <summary>
/// Stop playing this dialog until this number.
/// If -1, this will play fore... |
public List<DialogAction>? Actions = null;
/// <summary>
/// Go to another dialog with a specified id.
/// If this is -1, it will immediately exit the dialog interaction.
/// </summary>
public int? GoTo = null;
public bool NonLinearNode = false;
publi... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/Block.cs",
"groundtruth_start_lineno": 19,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/2342"
} | {
"list": [
{
"filename": "src/Gum/InnerThoughts/Situation.cs",
"retrieved_chunk": " /// This points\n /// [ Node Id -> Parent ]\n /// If parent is empty, this is at the top.\n /// </summary>\n public readonly Dictionary<int, HashSet<int>> ParentOf = new();\n ... | Line> Lines = new(); |
{
"list": [
{
"filename": "Microsoft.Build.CPPTasks/Helpers.cs",
"retrieved_chunk": "๏ปฟusing System;\nusing System.Collections.Generic;\nusing System.Text;\nnamespace Microsoft.Build.CPPTasks\n{\n public sealed class Helpers\n {\n private Helpers()\n {\n }",
"score": 55... | using Microsoft.Build.Framework;
using Microsoft.Build.Shared;
using Microsoft.Build.Utilities;
using Microsoft.Win32.SafeHandles;
using System;
using System.Collections.Generic;
using System.Security;
using System.Text;
using System.Text.RegularExpressions;
namespace Microsoft.Build.CPPTasks
{
public abstract cla... |
private bool trackFileAccess;
private bool trackCommandLines = true;
private bool minimalRebuildFromTracking;
private bool deleteOutputBeforeExecute;
private string rootSource;
private ITaskItem[] tlogReadFiles;
private ITaskItem[] tlogWriteFiles;
... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.CPPTasks/TrackedVCToolTask.cs",
"groundtruth_start_lineno": 18,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/2178"
} | {
"list": [
{
"filename": "Microsoft.Build.CPPTasks/Helpers.cs",
"retrieved_chunk": " public static string GetOutputFileName(string sourceFile, string outputFileOrDir, string outputExtension)\n {\n string text;\n if (string.IsNullOrEmpty(outputFileOrDir))\n ... | CanonicalTrackedOutputFiles sourceOutputs; |
{
"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/2265"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Turret.cs",
"retrieved_chunk": " TurretFlag flag = __instance.GetComponent<TurretFlag>();\n if (flag == null)\n return true;\n if (flag.shootCountRemaining > 0)\n {\n RevolverBeam rev... | EnemyIdentifier ___eid, ref LayerMask ___environmentMask, ref bool ___enraged)
{ |
{
"list": [
{
"filename": "Source/TreeifyTask.WpfSample/MainWindow.xaml.cs",
"retrieved_chunk": "๏ปฟusing TreeifyTask;\nusing System;\nusing System.Collections.ObjectModel;\nusing System.Linq;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing System.Windows;\nusing TaskStatus = TreeifyTask.... | using TreeifyTask;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace TreeifyTask.Sample
{
public class TaskNodeViewModel : INotifyPropertyChanged
{
private readonly ITaskNode baseTaskNode;
private ObservableCollection<TaskNodeViewModel> _childTasks;
private |
public TaskNodeViewModel(ITaskNode baseTaskNode)
{
this.baseTaskNode = baseTaskNode;
PopulateChild(baseTaskNode);
baseTaskNode.Reporting += BaseTaskNode_Reporting;
}
private void PopulateChild(ITaskNode baseTaskNode)
{
this._chil... | {
"context_start_lineno": 0,
"file": "Source/TreeifyTask.WpfSample/TaskNodeViewModel.cs",
"groundtruth_start_lineno": 10,
"repository": "intuit-TreeifyTask-4b124d4",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/2425"
} | {
"list": [
{
"filename": "Source/TreeifyTask.WpfSample/MainWindow.xaml.cs",
"retrieved_chunk": " /// <summary>\n /// Interaction logic for MainWindow.xaml\n /// </summary>\n public partial class MainWindow : Window\n {\n ITaskNode rootTask;\n public MainWindow()\n ... | TaskStatus _taskStatus; |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/CodeCoverage.cs",
"retrieved_chunk": " _database = new DatabaseGateway(connectionString, databaseName);\n _source = new DatabaseSourceGateway(_database);\n }\n public bool Start(int timeOut = 30)\n {\n ... | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using SQLServerCoverage.Gateway;
using SQLServerCoverage.Objects;
using SQLServerCoverage.Parsers;
namespace SQLServerCoverage.Source
{
public class DatabaseSourceGateway :... |
var compatibilityString = _databaseGateway.GetString("select compatibility_level from sys.databases where database_id = db_id();");
SqlServerVersion res;
if (Enum.TryParse(string.Format("Sql{0}", compatibilityString), out res))
{
return res;
}... | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/Gateway/DatabaseSourceGateway.cs",
"groundtruth_start_lineno": 21,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/2403"
} | {
"list": [
{
"filename": "src/SQLServerCoverageLib/Trace/TraceControllerBuilder.cs",
"retrieved_chunk": " switch(type)\n {\n case TraceControllerType.Azure:\n return new AzureTraceController(gateway, databaseName);\n case TraceCon... | SqlServerVersion GetVersion()
{ |
{
"list": [
{
"filename": "Services/WindowingService.cs",
"retrieved_chunk": "๏ปฟusing Microsoft.UI.Xaml;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Threading.Tasks;\nusing wingman.Views;\nnamespace wingman.Interfaces\n{\n public class WindowingService ... | using System;
using System.Diagnostics;
using wingman.Interfaces;
using wingman.Views;
namespace wingman.Services
{
public class AppActivationService : IAppActivationService, IDisposable
{
private readonly |
private readonly ISettingsService _settingsService;
public AppActivationService(
MainWindow mainWindow,
ISettingsService settingsService)
{
_mainWindow = mainWindow;
_settingsService = settingsService;
}
public void Activate(obje... | {
"context_start_lineno": 0,
"file": "Services/AppActivationService.cs",
"groundtruth_start_lineno": 9,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/2328"
} | {
"list": [
{
"filename": "Services/WindowingService.cs",
"retrieved_chunk": " private readonly List<ModalWindow> openWindows = new List<ModalWindow>();\n ILoggingService Logger;\n private bool _disposed = false;\n private bool _disposing = false;\n public WindowingS... | MainWindow _mainWindow; |
{
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoItem.cs",
"retrieved_chunk": " public string Etag { get; private set; } = string.Empty;\n [JsonProperty(\"id\"), JsonRequired]\n public string Id { get; private set; } = string.Empty;\n [J... | #nullable enable
using Newtonsoft.Json;
namespace Mochineko.YouTubeLiveStreamingClient.Responses
{
[JsonObject]
public sealed class LiveChatMessageItem
{
[JsonProperty("kind"), JsonRequired]
public string Kind { get; private set; } = string.Empty;
[JsonProperty("etag"), Jso... | get; private set; } = new();
}
} | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/LiveChatMessageItem.cs",
"groundtruth_start_lineno": 21,
"repository": "mochi-neko-youtube-live-streaming-client-unity-b712d77",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/2392"
} | {
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoItem.cs",
"retrieved_chunk": " public string Etag { get; private set; } = string.Empty;\n [JsonProperty(\"id\"), JsonRequired]\n public string Id { get; private set; } = string.Empty;\n [J... | AuthorDetails AuthorDetails { |
{
"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 revolverBullet;
public static GameObject maliciousCannonBeam;
public static GameObject lightningBoltSFX;
public static GameObject revolverBeam;
public static GameObject blastwave;
public static GameObject cannonBall;
public static GameObj... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 77,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 78,
"task_id": "project_cc_csharp/2283"
} | {
"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 rocket; |
{
"list": [
{
"filename": "godot-project/Scripts/DataManagement/FileHelper.cs",
"retrieved_chunk": "\t{\n\t\tGD.Print(\"*********** Delete file!\");\n\t}\n\tprivate static void CreateDirectoryForUser(string directory)\n\t{\n\t\tvar path = Path.Combine(BasePath, directory);\n\t\tif (!DirAccess.DirExist... | //#define PRINT_DEBUG
using System;
using System.IO;
using Godot;
using Mono.Unix;
using Directory = System.IO.Directory;
using Environment = System.Environment;
using File = System.IO.File;
using Path = System.IO.Path;
namespace GodotLauncher
{
public class DataPaths
{
static string AppDataPath => Environment.Ge... |
string path = GetExecutablePath(installerEntryData);
#if PRINT_DEBUG
GD.Print("Launching: " + path);
#endif
if (!OS.GetName().Equals("Windows"))
{
var unixFile = new UnixFileInfo(path);
unixFile.FileAccessPermissions |= FileAccessPermissions.UserExecute
| FileAccessPermissions.G... | {
"context_start_lineno": 0,
"file": "godot-project/Scripts/DataManagement/DataPaths.cs",
"groundtruth_start_lineno": 120,
"repository": "NathanWarden-ready-to-launch-58eba6d",
"right_context_start_lineno": 122,
"task_id": "project_cc_csharp/2460"
} | {
"list": [
{
"filename": "godot-project/Scripts/DataManagement/FileHelper.cs",
"retrieved_chunk": "\t{\n\t\tGD.Print(\"*********** Delete file!\");\n\t}\n\tprivate static void CreateDirectoryForUser(string directory)\n\t{\n\t\tvar path = Path.Combine(BasePath, directory);\n\t\tif (!DirAccess.DirExist... | InstallerEntryData installerEntryData, string arguments = "")
{ |
{
"list": [
{
"filename": "Runtime/Core/Internal/FluxParam_T_T2.cs",
"retrieved_chunk": "{\n ///<summary>\n /// Flux<T> Action<T2>\n ///</summary>\n internal static class FluxParam<T,T2> // (T, Action<T2>)\n {\n ///<summary>\n /// Defines a static instance of ActionFluxPar... | /*
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, ... |
internal static void Store(in T key, in Action<T2> action, in bool condition) => flux_action_param.Store(in condition, key, action);
internal static void Dispatch(in T key,in T2 @param) => flux_action_param.Dispatch(key, @param);
internal static bool Get(in T key, out T2 _state)
{
... | {
"context_start_lineno": 0,
"file": "Runtime/Core/Internal/FluxState.cs",
"groundtruth_start_lineno": 26,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/2341"
} | {
"list": [
{
"filename": "Runtime/Core/Internal/Flux_T.cs",
"retrieved_chunk": "{\n ///<summary>\n /// Flux Action\n ///</summary>\n internal static class Flux<T> //(T, Action)\n {\n ///<summary>\n /// Defines a static instance of ActionFlux<T>\n ///</summary>\n ... | IFluxParam<T, T2, Action<T2>> flux_action_param = new StateFlux<T,T2>(); |
{
"list": [
{
"filename": "src/Models/DownloadManagerData.cs",
"retrieved_chunk": " public string installPath { get; set; } = \"\";\n public int downloadAction { get; set; }\n public bool enableReordering { get; set; }\n public int maxWorkers { get; set; }\n public i... | using LegendaryLibraryNS.Enums;
using LegendaryLibraryNS.Services;
using Playnite;
using Playnite.Commands;
using Playnite.SDK;
using Playnite.SDK.Data;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
u... |
public bool IsUserLoggedIn
{
get
{
return new EpicAccountClient(PlayniteApi, LegendaryLauncher.TokensPath).GetIsUserLoggedIn();
}
}
public RelayCommand<object> LoginCommand
{
get => new RelayCommand<object>(async (... | {
"context_start_lineno": 0,
"file": "src/LegendaryLibrarySettingsViewModel.cs",
"groundtruth_start_lineno": 40,
"repository": "hawkeye116477-playnite-legendary-plugin-d7af6b2",
"right_context_start_lineno": 42,
"task_id": "project_cc_csharp/2366"
} | {
"list": [
{
"filename": "src/Models/DownloadManagerData.cs",
"retrieved_chunk": " public string installPath { get; set; } = \"\";\n public int downloadAction { get; set; }\n public bool enableReordering { get; set; }\n public int maxWorkers { get; set; }\n public i... | LegendaryLibrary>
{ |
{
"list": [
{
"filename": "Samples/UniFlux.Sample.3/Sample_3.cs",
"retrieved_chunk": " \"OnChange_Life\".Dispatch(value);\n }\n }\n private void Start() \n {\n \"Set_Life\".Dispatch(10);\n }\n private void Update()\n {\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, ... |
_shots++;
"LogShot".Dispatch((frameCount, _shots));
}
[Flux("LogShot")] private void LogShot((int frameCount, int shots) data)
{
Debug.Log(data);
}
}
} | {
"context_start_lineno": 0,
"file": "Samples/UniFlux.Sample.4/Sample_4.cs",
"groundtruth_start_lineno": 38,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/2361"
} | {
"list": [
{
"filename": "Samples/UniFlux.Sample.3/Sample_3.cs",
"retrieved_chunk": " }\n [Flux(0)] private void OnUpdate() \n {\n if(\"Get_Life\".Dispatch<int>() > 0)\n {\n \"Set_Life\".Dispatch(\"Get_Life\".Dispatch<int>()-1);\n }... | Flux("Shot")] private void Shot(int frameCount)
{ |
{
"list": [
{
"filename": "source/Utils/RollingAverage.cs",
"retrieved_chunk": "๏ปฟusing System;\nnamespace NowPlaying.Utils\n{\n public class RollingAvgLong : RollingAverage<long>\n {\n public RollingAvgLong(int depth, long initValue) : base(depth, initValue, (a, b) => a + b, (n, d) => n /... | using NowPlaying.Models;
using NowPlaying.Utils;
using Playnite.SDK;
using System;
using System.Timers;
using System.Windows.Controls;
namespace NowPlaying.ViewModels
{
public class InstallProgressViewModel : ViewModelBase
{
private readonly NowPlaying plugin;
private readonly NowPlayingInstall... |
private readonly int currSpeedRollAvgDepth = 32; // current speed โ 16 second rolling average
private readonly int averageSpeedRollAvgDepth = 256; // average speed โ approx 4 minute rolling average
public string ProgressPanelTitle =>
(
speedLimitIpg > 0 ? plugin.Forma... | {
"context_start_lineno": 0,
"file": "source/ViewModels/InstallProgressViewModel.cs",
"groundtruth_start_lineno": 89,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 90,
"task_id": "project_cc_csharp/2321"
} | {
"list": [
{
"filename": "source/ViewModels/TopPanelViewModel.cs",
"retrieved_chunk": " private long totalBytesInstalled;\n private TimeSpan queuedInstallEta;\n private LinkedList<string> processingMessage;\n public bool IsProcessing { get; private set; }\n public d... | RollingAvgLong averageSpeedRollAvgBps; |
{
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " rocket.transform.LookAt(PlayerTracker.Instance.GetTarget());\n rocket.transform.position += rocket.transform.forward * 2f;\n SetRocketRotation(rocket.transform);\n Grenade compon... | using HarmonyLib;
using System.Collections.Generic;
using System.Reflection;
using System;
using System.Linq;
using System.Xml.Linq;
using UnityEngine;
namespace Ultrapain
{
public static class UnityUtils
{
public static LayerMask envLayer = new LayerMask() { value = (1 << 8) | (1 << 24) };
pu... |
foreach(Transform t in parent)
{
if (t.name == name)
return t;
Transform child = GetChildByNameRecursively(t, name);
if (child != null)
return child;
}
return null;
}
... | {
"context_start_lineno": 0,
"file": "Ultrapain/UnityUtils.cs",
"groundtruth_start_lineno": 72,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 74,
"task_id": "project_cc_csharp/2297"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Stalker.cs",
"retrieved_chunk": " eid.SpeedBuff(__instance.speedBuff);\n if (eid.healthBuffModifier < __instance.healthBuff)\n eid.HealthBuff(__instance.healthBuff);\n }\n ... | Transform GetChildByNameRecursively(Transform parent, string name)
{ |
{
"list": [
{
"filename": "Magic.IndexedDb/Factories/MagicDbFactory.cs",
"retrieved_chunk": " readonly IJSRuntime _jsRuntime;\n readonly IServiceProvider _serviceProvider;\n readonly IDictionary<string, IndexedDbManager> _dbs = new Dictionary<string, IndexedDbManager>();\n ... | 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;
... |
private IJSObjectReference? _module { get; set; }
/// <summary>
/// A notification event that is raised when an action is completed
/// </summary>
public event EventHandler<BlazorDbEvent> ActionCompleted;
/// <summary>
/// Ctor
/// </summary>
//... | {
"context_start_lineno": 0,
"file": "Magic.IndexedDb/IndexDbManager.cs",
"groundtruth_start_lineno": 31,
"repository": "magiccodingman-Magic.IndexedDb-a279d6d",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/2424"
} | {
"list": [
{
"filename": "Magic.IndexedDb/Factories/MagicDbFactory.cs",
"retrieved_chunk": " //{\n // var manager = new IndexedDbManager(dbStore, _jsRuntime);\n // var importedManager = await _jsRuntime.InvokeAsync<IJSObjectReference>(\"import\", \"./_content/Magic.IndexedD... | BlazorDbEvent>> _taskTransactions = new Dictionary<Guid, TaskCompletionSource<BlazorDbEvent>>(); |
{
"list": [
{
"filename": "Runtime/QuestObjectiveUpdater.cs",
"retrieved_chunk": "๏ปฟusing System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing UnityEngine.Events;\nnamespace QuestSystem\n{\n public class QuestObjectiveUpdater : MonoBehaviour, IQuestInteraction\n {\n ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace QuestSystem
{
public class QuestGiver : MonoBehaviour , IQuestInteraction
{
public |
public TextAsset extraText;
private bool ableToGive = false;
private bool questAlreadyGiven;
private QuestManager questManagerRef;
// Start is called before the first frame update
void Start()
{
questManagerRef = QuestManager.GetInstance();
... | {
"context_start_lineno": 0,
"file": "Runtime/QuestGiver.cs",
"groundtruth_start_lineno": 8,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/2449"
} | {
"list": [
{
"filename": "Runtime/QuestObjectiveUpdater.cs",
"retrieved_chunk": " [HideInInspector] public string keyObjectiveSelected;\n public int adder = 1;\n public int exit = 0;\n public TextAsset extraText;\n public UnityEvent eventsOnUpdate;\n public U... | Quest questToGive; |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMLipMorpher.cs",
"retrieved_chunk": " public sealed class VRMLipMorpher : ILipMorpher\n {\n private readonly Vrm10RuntimeExpression expression;\n private static readonly IReadOnlyDictionary<Viseme, Expre... | #nullable enable
using System.Collections.Generic;
using Mochineko.FacialExpressions.Blink;
using UniVRM10;
namespace Mochineko.FacialExpressions.Extensions.VRM
{
/// <summary>
/// An eyelid morpher for VRM models.
/// </summary>
// ReSharper disable once InconsistentNaming
public sealed class VRME... |
[Eyelid.Both] = ExpressionKey.Blink,
[Eyelid.Left] = ExpressionKey.BlinkLeft,
[Eyelid.Right] = ExpressionKey.BlinkRight,
};
/// <summary>
/// Create an eyelid morpher for VRM models.
/// </summary>
/// <param name="expression"... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs",
"groundtruth_start_lineno": 15,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 18,
"task_id": "project_cc_csharp/2364"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMLipMorpher.cs",
"retrieved_chunk": " public sealed class VRMLipMorpher : ILipMorpher\n {\n private readonly Vrm10RuntimeExpression expression;\n private static readonly IReadOnlyDictionary<Viseme, Expre... | Eyelid, ExpressionKey> KeyMap
= new Dictionary<Eyelid, ExpressionKey>
{ |
{
"list": [
{
"filename": "src/OGXbdmDumper/Connection.cs",
"retrieved_chunk": " /// <summary>\n /// Connects to the specified host and port.\n /// </summary>\n /// <param name=\"host\">The host to connect to.</param>\n /// <param name=\"port\">The port the host is l... | using Iced.Intel;
using System.Collections;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
namespace OGXbdmDumper
{
public static class Extensions
{
#region Misc
/// <summary>
/// Converts an Int32 into a Version.
/// </summary>
/// <p... |
// store the pushret hook to the cave
// TODO: combine writes!
target.Memory.Position = hookAaddress;
target.Memory.Write((byte)0x68); // push
target.Memory.Write(caveAddress); // cave address
target.Memory.Write((byte)0xC3); // ret
... | {
"context_start_lineno": 0,
"file": "src/OGXbdmDumper/Extensions.cs",
"groundtruth_start_lineno": 171,
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"right_context_start_lineno": 173,
"task_id": "project_cc_csharp/2478"
} | {
"list": [
{
"filename": "src/OGXbdmDumper/Connection.cs",
"retrieved_chunk": " /// <exception cref=\"SocketException\"></exception>\n /// <exception cref=\"ObjectDisposedException\"></exception>\n /// <exception cref=\"InvalidDataException\"></exception>\n /// <exception ... | Xbox target, long hookAaddress, long caveAddress)
{ |
{
"list": [
{
"filename": "RT_Customer_MyFirstRegressionTest_1/TestCases/TestCaseExample.cs",
"retrieved_chunk": "\tpublic class TestCaseExample : ITestCase\n\t{\n\t\tpublic TestCaseExample(string name)\n\t\t{\n\t\t\tif (String.IsNullOrWhiteSpace(name))\n\t\t\t{\n\t\t\t\tthrow new ArgumentNullExceptio... | namespace Library.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library.Consts;
using Library.Tests.TestCases;
using QAPortalAPI.Models.ReportingModels;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.Messages;
internal class Test : ITe... |
foreach (var testCase in newTestCases)
{
if (testCase == null || String.IsNullOrWhiteSpace(testCase.Name))
{
// We should not do anything
}
else if (this.testCases.FirstOrDefault(x => x.Name.Equals(testCase.Name)) != null)
{
// Name has to be unique
testCase.Name += " - copy";
... | {
"context_start_lineno": 0,
"file": "Library/Tests/Test.cs",
"groundtruth_start_lineno": 30,
"repository": "SkylineCommunications-Skyline.DataMiner.GithubTemplate.RegressionTest-bb57db1",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/2467"
} | {
"list": [
{
"filename": "RT_Customer_MyFirstRegressionTest_1/TestCases/TestCaseExample.cs",
"retrieved_chunk": "\t\tpublic string Name { get; set; }\n\t\tpublic TestCaseReport TestCaseReport { get; private set; }\n\t\tpublic PerformanceTestCaseReport PerformanceTestCaseReport { get; private set; }\n... | ITestCase[] newTestCases)
{ |
{
"list": [
{
"filename": "Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindow.cs",
"retrieved_chunk": "using UnityEngine;\nusing UnityEngine.UIElements;\nusing VRC.PackageManagement.Core.Types.Packages;\nusing YamlDotNet.Serialization.NodeTypeResolvers;\nnamespace VRC.Package... | using System.IO;
using UnityEditor;
using UnityEngine;
using VRC.PackageManagement.PackageMaker;
public class PackageMakerWindowData : ScriptableObject
{
public static string defaultAssetPath = Path.Combine("Assets", "PackageMakerWindowData.asset");
public string targetAssetFolder;
public string packageID;... |
public static PackageMakerWindowData GetOrCreate()
{
var existingData = AssetDatabase.AssetPathToGUID(defaultAssetPath);
if (string.IsNullOrWhiteSpace(existingData))
{
return Create();
}
else
{
var saveData = AssetDatabase.LoadAssetAtPath... | {
"context_start_lineno": 0,
"file": "Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindowData.cs",
"groundtruth_start_lineno": 10,
"repository": "koyashiro-generic-data-container-1aef372",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/2444"
} | {
"list": [
{
"filename": "Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/ResolverWindow.cs",
"retrieved_chunk": "using Version = VRC.PackageManagement.Core.Types.VPMVersion.Version;\nnamespace VRC.PackageManagement.Resolver\n{\n public class ResolverWindow : EditorWindow\n {\n // ... | PackageMakerWindow.VRCPackageEnum relatedPackage; |
{
"list": [
{
"filename": "Moadian.cs",
"retrieved_chunk": " throw new ArgumentException(\"Set token before sending invoice!\");\n }\n var headers = new Dictionary<string, string>\n {\n { \"Authorization\", \"Bearer \" + this.token.Token }... | using Moadian.Dto;
using Moadian.Services;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace Moadian.API
{
public class Api
{
private TokenModel? token = null;
private re... |
this.token = token;
return this;
}
public dynamic InquiryByReferenceNumber(string referenceNumber)
{
var inquiryByReferenceNumberDto = new InquiryByReferenceNumberDto();
inquiryByReferenceNumberDto.SetReferenceNumber(referenceNumber);
... | {
"context_start_lineno": 0,
"file": "API/API.cs",
"groundtruth_start_lineno": 115,
"repository": "Torabi-srh-Moadian-482c806",
"right_context_start_lineno": 117,
"task_id": "project_cc_csharp/2466"
} | {
"list": [
{
"filename": "Moadian.cs",
"retrieved_chunk": " return response;\n }\n public async Task<TokenModel> GetToken()\n {\n var api = new Api(this.Username, httpClient);\n var token = await api.GetToken();\n return token;\n ... | TokenModel? token)
{ |
{
"list": [
{
"filename": "Runtime/Scripts/AASEmulator.cs",
"retrieved_chunk": " public delegate void AddTopComponent(Component component);\n public static AddTopComponent addTopComponentDelegate;\n public delegate void RuntimeInitialized(AASEmulatorRuntime runtime);\n publ... | using ABI.CCK.Scripts;
using NAK.AASEmulator.Runtime.SubSystems;
using System.Collections.Generic;
using UnityEngine;
using static ABI.CCK.Scripts.CVRAdvancedSettingsEntry;
namespace NAK.AASEmulator.Runtime
{
[AddComponentMenu("")]
public class AASMenu : EditorOnlyMonoBehaviour
{
#region Static Ini... |
private AASEmulatorRuntime runtime;
#endregion Variables
#region Menu Setup
private void Start() => SetupAASMenus();
private void SetupAASMenus()
{
entries.Clear();
if (runtime == null)
{
SimpleLogger.LogError("Una... | {
"context_start_lineno": 0,
"file": "Runtime/Scripts/AASMenu.cs",
"groundtruth_start_lineno": 33,
"repository": "NotAKidOnSteam-AASEmulator-aacd289",
"right_context_start_lineno": 34,
"task_id": "project_cc_csharp/2497"
} | {
"list": [
{
"filename": "Runtime/Scripts/AASEmulator.cs",
"retrieved_chunk": " [HideInInspector]\n public RuntimeAnimatorController defaultRuntimeController;\n private string controllerGUID = \"ff926e022d914b84e8975ba6188a26f0\";\n private string controllerPath = \"Assets... | AnimatorManager AnimatorManager => runtime.AnimatorManager; |
{
"list": [
{
"filename": "Editor/MonoFluxEditor.cs",
"retrieved_chunk": " private Dictionary<MethodInfo, object[]> dic_method_parameters;\n private static bool showBox = true;\n private void OnEnable()\n {\n Type type = target.GetType();\n var methods... | /*
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 (!m_monofluxes.ContainsKey(monoflux))
{
m_monofluxes.Add(
monoflux,
monoflux.gameObject.GetComponent(m_type_monoflux).GetType().GetMethods(m_bindingflag_all).Where(method =>
{
if(System.Attr... | {
"context_start_lineno": 0,
"file": "Runtime/MonoFluxExtension.cs",
"groundtruth_start_lineno": 68,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 70,
"task_id": "project_cc_csharp/2385"
} | {
"list": [
{
"filename": "Editor/MonoFluxEditor.cs",
"retrieved_chunk": " {\n DrawDefaultInspector();\n if(methods_subscribeAttrb.Length.Equals(0))\n {\n showBox = false;\n }\n else\n {\n if(GUILayo... | MonoFlux monoflux, in bool condition)
{ |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public string Username { get; set; }\n [JsonProperty(\"name\")]\n public string Name { get; set; }\n [JsonProperty(\"avatar_template\")]\n public string AvatarTemp... | using Newtonsoft.Json;
namespace DotNetDevBadgeWeb.Model
{
public class UserSummary
{
[JsonProperty("likes_given")]
public int LikesGiven { get; set; }
[JsonProperty("likes_received")]
public int LikesReceived { get; set; }
[JsonProperty("topics_entered")]
publ... | get; set; }
[JsonProperty("recent_time_read")]
public int RecentTimeRead { get; set; }
[JsonProperty("bookmark_count")]
public int BookmarkCount { get; set; }
[JsonProperty("can_see_summary_stats")]
public bool CanSeeSummaryStats { get; set; }
[JsonProperty("... | {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"groundtruth_start_lineno": 27,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/2477"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public bool? Admin { get; set; }\n [JsonProperty(\"moderator\")]\n public bool? Moderator { get; set; }\n public ELevel Level => TrustLevel switch\n {\n ... | JsonProperty("time_read")]
public int TimeRead { |
{
"list": [
{
"filename": "Ultrapain/Patches/Mindflayer.cs",
"retrieved_chunk": " static FieldInfo goForward = typeof(Mindflayer).GetField(\"goForward\", BindingFlags.NonPublic | BindingFlags.Instance);\n static MethodInfo meleeAttack = typeof(Mindflayer).GetMethod(\"MeleeAttack\", Bindi... | using HarmonyLib;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using ULTRAKILL.Cheats;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Ultrapain.Patches
{
public class V2SecondFlag : MonoBehaviour
{
public V2RocketL... |
if (!__instance.secondEncounter)
return;
V2SecondFlag flag = __instance.gameObject.AddComponent<V2SecondFlag>();
flag.v2collider = __instance.GetComponent<Collider>();
/*___eid.enemyType = EnemyType.V2Second;
___eid.UpdateBuffs();
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/V2Second.cs",
"groundtruth_start_lineno": 440,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 442,
"task_id": "project_cc_csharp/2349"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Mindflayer.cs",
"retrieved_chunk": " Debug.Log($\"Collision with {__0.name} with tag {__0.tag} and layer {__state}\");\n if (__0.gameObject.tag != \"Player\" || __state == 15)\n return;\n if (__instance.tr... | V2 __instance, EnemyIdentifier ___eid)
{ |
{
"list": [
{
"filename": "ForceConnect/frm_network.cs",
"retrieved_chunk": "๏ปฟusing ForceConnect.Interfaces;\nusing ForceConnect.Services;\nusing System;\nusing System.Threading.Tasks;\nusing System.Windows.Forms;\nnamespace ForceConnect\n{\n public partial class frm_network : Form\n {\n ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using ForceConnect.Interfaces;
namespace ForceConnect.Services
{
internal class NetworkInformation
{
publi... |
NetworkInterface activeInterface = NetworkInterface.GetAllNetworkInterfaces().FirstOrDefault(
a => a.OperationalStatus == OperationalStatus.Up &&
(a.NetworkInterfaceType == NetworkInterfaceType.Wireless80211 || a.NetworkInterfaceType == NetworkInterfaceType.Ethernet) &&
... | {
"context_start_lineno": 0,
"file": "ForceConnect/Services/NetworkInformation.cs",
"groundtruth_start_lineno": 14,
"repository": "Mxqius-ForceConnect-059bd9e",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/2416"
} | {
"list": [
{
"filename": "ForceConnect/frm_network.cs",
"retrieved_chunk": " {\n InitializeComponent();\n }\n private void btn_close_Click(object sender, EventArgs e)\n {\n this.Close();\n }\n private async Task loadInformation()\n ... | NetworkInterfaceInfo GetActiveNetworkInterfaceInfo()
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/CompositeLipMorpher.cs",
"retrieved_chunk": " foreach (var morpher in morphers)\n {\n morpher.MorphInto(sample);\n }\n }\n float ILipMorpher.GetWeightOf(Viseme viseme)\n ... | #nullable enable
using System.Collections.Generic;
namespace Mochineko.FacialExpressions.Blink
{
/// <summary>
/// Composition of some <see cref="IEyelidMorpher"/>s.
/// </summary>
public sealed class CompositeEyelidMorpher : IEyelidMorpher
{
private readonly IReadOnlyList<IEyelidMorpher> m... |
foreach (var morpher in morphers)
{
morpher.Reset();
}
}
}
}
| {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/Blink/CompositeEyelidMorpher.cs",
"groundtruth_start_lineno": 34,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 36,
"task_id": "project_cc_csharp/2396"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/CompositeLipMorpher.cs",
"retrieved_chunk": " {\n foreach (var morpher in morphers)\n {\n morpher.Reset();\n }\n }\n }\n}",
"score": 44.98126730769735
},
... | IEyelidMorpher.Reset()
{ |
{
"list": [
{
"filename": "VSIntelliSenseTweaks/CompletionItemManager.cs",
"retrieved_chunk": " {\n // We penalize items that have any inactive blacklist filters.\n // The current filter settings allow these items to be shown... | using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.VisualStudio.Shell.Interop;
using System.Diagnostics;
using Task = System.Threading.Tasks.Task;
using Microsoft;
namespace VSIntelliSenseTweaks
{
/// <summary>
/// This is the class t... |
get
{
Debug.Assert(Instance != null);
return (GeneralSettings)Instance.GetDialogPage(typeof(GeneralSettings));
}
}
public static void EnsurePackageLoaded()
{
ThreadHelper.ThrowIfNotOnUIThread();
if (Ins... | {
"context_start_lineno": 0,
"file": "VSIntelliSenseTweaks/VSIntelliSenseTweaksPackage.cs",
"groundtruth_start_lineno": 59,
"repository": "cfognom-VSIntelliSenseTweaks-4099741",
"right_context_start_lineno": 61,
"task_id": "project_cc_csharp/2528"
} | {
"list": [
{
"filename": "VSIntelliSenseTweaks/Properties/AssemblyInfo.cs",
"retrieved_chunk": "// Minor Version \n// Build Number\n// Revision\n//\n// You can specify all the values or you can default the Build and Revision Numbers \n// by using the '*' as shown below:\n// [assembly: ... | GeneralSettings Settings
{ |
{
"list": [
{
"filename": "Ultrapain/ConfigManager.cs",
"retrieved_chunk": " sisyInstJumpShockwaveDiv.interactable = e.value;\n dirtyField = true;\n };\n sisyInstJumpShockwave.TriggerValueChangeEvent();\n sisyInstJumpShockwaveSize = new Fl... | using HarmonyLib;
using MonoMod.Utils;
using System.Collections.Generic;
using UnityEngine;
namespace Ultrapain.Patches
{
/*public class SisyphusInstructionistFlag : MonoBehaviour
{
}
[HarmonyPatch(typeof(Sisyphus), nameof(Sisyphus.Knockdown))]
public class SisyphusInstructionist_Knockdown_Patch
... |
get {
if(_shockwave == null && Plugin.shockwave != null)
{
_shockwave = GameObject.Instantiate(Plugin.shockwave);
CommonActivator activator = _shockwave.AddComponent<CommonActivator>();
//ObjectActivator objectActiv... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/SisyphusInstructionist.cs",
"groundtruth_start_lineno": 35,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 37,
"task_id": "project_cc_csharp/2365"
} | {
"list": [
{
"filename": "Ultrapain/Plugin.cs",
"retrieved_chunk": " public static Sprite blueRevolverSprite;\n public static Sprite greenRevolverSprite;\n public static Sprite redRevolverSprite;\n public static Sprite blueShotgunSprite;\n public static Sprite green... | GameObject shockwave
{ |
{
"list": [
{
"filename": "cpp/Demo_2020-02-15/Client/PacketDefine.cs",
"retrieved_chunk": " ROOM_ENTER_REQ = 206,\n ROOM_ENTER_RES = 207, \n ROOM_NEW_USER_NTF = 208,\n ROOM_USER_LIST_NTF = 209,\n ROOM_LEAVE_REQ = 215,\n ROOM_LEAVE_RES = 216,\n R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace csharp_test_client
{
public partial class mainForm
{
Dictionary<PACKET_ID, Action<byte[]>> PacketFuncDic = new Dictionary<PACKET_ID, Action<byte[]>>();
void SetPacketHa... |
var packetType = (PACKET_ID)packet.PacketID;
//DevLog.Write("Packet Error: PacketID:{packet.PacketID.ToString()}, Error: {(ERROR_CODE)packet.Result}");
//DevLog.Write("RawPacket: " + packet.PacketID.ToString() + ", " + PacketDump.Bytes(packet.BodyData));
if (PacketFun... | {
"context_start_lineno": 0,
"file": "cpp/Demo_2020-02-15/Client/PacketProcessForm.cs",
"groundtruth_start_lineno": 25,
"repository": "jacking75-how_to_use_redis_lib-d3accba",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/2413"
} | {
"list": [
{
"filename": "cpp/Demo_2020-02-15/Client/PacketDefine.cs",
"retrieved_chunk": " }\n public enum ERROR_CODE : Int16\n {\n ERROR_NONE = 0,\n ERROR_CODE_USER_MGR_INVALID_USER_UNIQUEID = 112,\n ERROR_CODE_PUBLIC_CHANNEL_IN_USER = 114,\n ERROR_CODE_PUBLIC_C... | PacketData packet)
{ |
{
"list": [
{
"filename": "src/FunctionApp/Models/ClientPrincipal.cs",
"retrieved_chunk": "using Newtonsoft.Json;\nnamespace FunctionApp.Models\n{\n /// <summary>\n /// This represents the entity for the client principal.\n /// </summary>\n public class ClientPrincipal\n {\n /// ... | using System.Text.Json.Serialization;
namespace BlazorApp.Models
{
/// <summary>
/// This represents the entity for authentication details.
/// </summary>
public class AuthenticationDetails
{
/// <summary>
/// Gets or sets the <see cref="Models.ClientPrincipal"/> instance.
/... | get; set; }
}
} | {
"context_start_lineno": 0,
"file": "src/BlazorApp/Models/AuthenticationDetails.cs",
"groundtruth_start_lineno": 13,
"repository": "justinyoo-ms-graph-on-aswa-83b3f54",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/2488"
} | {
"list": [
{
"filename": "src/FunctionApp/Models/ClientPrincipal.cs",
"retrieved_chunk": " /// </summary>\n [JsonProperty(\"identityProvider\")]\n public string? IdentityProvider { get; set; }\n /// <summary>\n /// Gets or sets the user ID.\n /// </summary>\n... | ClientPrincipal? ClientPrincipal { |
{
"list": [
{
"filename": "Editor/MonoFluxEditor.cs",
"retrieved_chunk": " private Dictionary<MethodInfo, object[]> dic_method_parameters;\n private static bool showBox = true;\n private void OnEnable()\n {\n Type type = target.GetType();\n var methods... | /*
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>
/// Allows subscribe methods using `FluxAttribute` by reflection
/// ~ where magic happens ~
///</summary>
internal static void Subscribe(this MonoFlux monoflux, in bool condition)
{
if (!m_monofluxes.ContainsKey(monoflux))
{
... | {
"context_start_lineno": 0,
"file": "Runtime/MonoFluxExtension.cs",
"groundtruth_start_lineno": 63,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 64,
"task_id": "project_cc_csharp/2406"
} | {
"list": [
{
"filename": "Runtime/Core/Internal/FuncFlux.cs",
"retrieved_chunk": " if(dictionary.TryGetValue(key, out var values))\n {\n if (condition) dictionary[key] += func;\n else\n {\n values -= func;\n ... | FluxAttribute> m_methods = new Dictionary<MethodInfo, FluxAttribute>(); |
{
"list": [
{
"filename": "src/LegendaryGameController.cs",
"retrieved_chunk": " }\n }));\n }\n }\n }\n public class LegendaryUninstallController : UninstallController\n {\n private IPlayniteAPI playniteAPI = API.Instance;\n pr... | using CliWrap;
using CliWrap.EventStream;
using LegendaryLibraryNS.Enums;
using LegendaryLibraryNS.Models;
using LegendaryLibraryNS.Services;
using Playnite.Common;
using Playnite.SDK;
using Playnite.SDK.Data;
using Playnite.SDK.Events;
using Playnite.SDK.Models;
using Playnite.SDK.Plugins;
using System;
using System.C... | get; set; }
public LegendaryLibrary(IPlayniteAPI api) : base(
"Legendary (Epic)",
Guid.Parse("EAD65C3B-2F8F-4E37-B4E6-B3DE6BE540C6"),
new LibraryPluginProperties { CanShutdownClient = true, HasSettings = true },
new LegendaryClient(),
LegendaryLaunch... | {
"context_start_lineno": 0,
"file": "src/LegendaryLibrary.cs",
"groundtruth_start_lineno": 30,
"repository": "hawkeye116477-playnite-legendary-plugin-d7af6b2",
"right_context_start_lineno": 31,
"task_id": "project_cc_csharp/2432"
} | {
"list": [
{
"filename": "src/LegendaryGameController.cs",
"retrieved_chunk": " {\n Name = \"Uninstall\";\n }\n public override async void Uninstall(UninstallActionArgs args)\n {\n if (!LegendaryLauncher.IsInstalled)\n {\n th... | LegendaryDownloadManager LegendaryDownloadManager { |
{
"list": [
{
"filename": "Ultrapain/Patches/Cerberus.cs",
"retrieved_chunk": "๏ปฟusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class CerberusFlag : MonoBehaviour\n {\n public int extraDashesRemaining = ConfigManager.cerberusTotalDashCount.value - 1;\n public Transform head;\n... | 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;
}
}... |
public void Awake()
{
eid = GetComponent<EnemyIdentifier>();
ligtningBoltAud = Instantiate(Plugin.lighningBoltSFX, transform);
lighningBoltSFX = ligtningBoltAud.GetComponent<AudioSource>();
}
public void SpawnLightningBolt()
{
Li... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Virtue.cs",
"groundtruth_start_lineno": 32,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/2369"
} | {
"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... | Drone virtue; |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/AddNoteCommand.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 AddNoteCommand : Command\n {\n ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class RemoveNoteCommand : Command
{
public override string Name => "remove-note";
public override string Description => "Removes a note... |
public override async Task<string> Execute(Master caller, string[] args)
{
if (args.Length < 2)
return "error! not enough parameters";
if (!int.TryParse(args[1], out int number))
return "error! number could not be parsed";
if (numbe... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/RemoveNoteCommand.cs",
"groundtruth_start_lineno": 14,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/2514"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/AddNoteCommand.cs",
"retrieved_chunk": " public override string Description => \"Adds a note to the list\"; \n public override string Format => \"add-note | text to add to the list\";\n public override async Task<string> Execute(Mas... | Format => "remove-note | number of the note to remove"; |
{
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": "using System.Threading;\nnamespace NowPlaying\n{\n public class NowPlayingInstallController : InstallController\n {\n private readonly ILogger logger = NowPlaying.logger;\n private readonly NowPl... | using NowPlaying.Models;
using NowPlaying.ViewModels;
using Playnite.SDK;
using Playnite.SDK.Models;
using Playnite.SDK.Plugins;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using static NowPlaying.Models.GameCacheManager;
namespace NowPlaying
{
public class NowPlayingUninstallController ... |
this.plugin = plugin;
this.settings = plugin.Settings;
this.PlayniteApi = plugin.PlayniteApi;
this.cacheManager = plugin.cacheManager;
this.nowPlayingGame = nowPlayingGame;
this.gameCache = gameCache;
this.cacheDir = gameCache.CacheDir... | {
"context_start_lineno": 0,
"file": "source/NowPlayingUninstallController.cs",
"groundtruth_start_lineno": 25,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 28,
"task_id": "project_cc_csharp/2378"
} | {
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": " public readonly RoboStats jobStats;\n public readonly GameCacheViewModel gameCache;\n public readonly GameCacheManagerViewModel cacheManager;\n public readonly InstallProgressViewModel p... | GameCacheViewModel gameCache)
: base(nowPlayingGame)
{ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.