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": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneSelectorWindow.cs",
"retrieved_chunk": " internal class SceneSelectorWindow : SceneToolsWindowBase\n {\n private const string WindowNameInternal = \"Scene Selector\";\n private const string KeyboardS... | using System.Collections.Generic;
using System.Threading.Tasks;
using Sandland.SceneTool.Editor.Common.Utils;
using Sandland.SceneTool.Editor.Views.Base;
using Sandland.SceneTool.Editor.Views.Handlers;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace Sandland.SceneTool.Editor.Views
{
i... |
private readonly List<ISceneToolsSetupUiHandler> _uiHandlers = new();
private Button _saveAllButton;
[MenuItem(WindowMenuItem, priority = 0)]
public static void ShowWindow()
{
var window = GetWindow<SceneToolsSetupWindow>();
window.InitWindow();
... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/SceneToolsSetupWindow.cs",
"groundtruth_start_lineno": 19,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/3218"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneSelectorWindow.cs",
"retrieved_chunk": " private SceneInfo[] _sceneInfos;\n private SceneInfo[] _filteredSceneInfos;\n private ListView _sceneList;\n private TextField _searchField;\n ... | StyleSheetName => nameof(SceneToolsSetupWindow); |
{
"list": [
{
"filename": "Runtime/MonoFluxExtension.cs",
"retrieved_chunk": "using System.Linq;\nusing System.Reflection;\nnamespace Kingdox.UniFlux\n{\n ///<summary>\n /// static class that ensure to handle the FluxAttribute\n ///</summary>\n internal static class MonoFluxExtension\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, ... |
private MethodInfo[] methods_subscribeAttrb;
private Dictionary<MethodInfo, object[]> dic_method_parameters;
private static bool showBox = true;
private void OnEnable()
{
Type type = target.GetType();
var methods = type.GetMethods((BindingFlags)(-1));
... | {
"context_start_lineno": 0,
"file": "Editor/MonoFluxEditor.cs",
"groundtruth_start_lineno": 29,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/3174"
} | {
"list": [
{
"filename": "Tests/EditMode/EditMode_Test_1.cs",
"retrieved_chunk": " [Test] public void _0_EntireWorkFlow()\n {\n //Subscribe\n SubscribeAction();\n SubscribeActionParam();\n SubscribeFunc();\n SubscribeFuncParam();\n ... | MonoFlux), true)]
public partial class MonoFluxEditor : UnityEditor.Editor
{ |
{
"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 System;
using System.Collections.Generic;
using System.Text;
using TaskSummarizer.Shared.Models;
using Newtonsoft.Json;
using static TaskSummarizer.Shared.Helpers.OpenAiHelpers;
namespace TaskSummarizer.Shared.Services
{
public class OpenAiChatService
{
private string ApiKey { get; }
pri... |
var completion = new OpenAiCompletion()
{
Prompt = prompt,
Temperature = 1,
FrequencyPenalty = 0,
PresencePenalty = 0,
MaxTokens = 1000,
TopP = 0.95
};
var content = await Ht... | {
"context_start_lineno": 0,
"file": "src/TasksSummarizer/TaskSummarizer.Shared/Services/OpenAiChatService.cs",
"groundtruth_start_lineno": 28,
"repository": "Jcardif-DailyTaskSummary-5d3f785",
"right_context_start_lineno": 30,
"task_id": "project_cc_csharp/3325"
} | {
"list": [
{
"filename": "src/TasksSummarizer/TasksSummarizer.Functions/Functions/SummarizeTasksHttpTrigger.cs",
"retrieved_chunk": " var openAiResponse = await chatService.CreateCompletionAsync(prompt);\n var summary = new { taskSummary = openAiResponse?.Choices?.FirstOrDefault... | OpenAiResponse?> CreateCompletionAsync(string prompt)
{ |
{
"list": [
{
"filename": "Dto/GetTokenDto.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace Moadian.Dto\n{\n public class GetTokenDto : PrimitiveDto\n {\n public string username { g... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Moadian.Dto
{
public class InvoiceDto : PrimitiveDto
{
public InvoiceHeaderDto header { get; set; }
public List<InvoiceBodyDto> body { get; set; }
public Lis... | get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "Dto/InvoiceDto.cs",
"groundtruth_start_lineno": 12,
"repository": "Torabi-srh-Moadian-482c806",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3275"
} | {
"list": [
{
"filename": "Dto/GetTokenDto.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace Moadian.Dto\n{\n public class GetTokenDto : PrimitiveDto\n {\n public string username { g... | InvoicePaymentDto> payments { |
{
"list": [
{
"filename": "src/OGXbdmDumper/Connection.cs",
"retrieved_chunk": " /// <summary>\n /// The time in milliseconds to wait while sending data before throwing a TimeoutException.\n /// </summary>\n public int SendTimeout { get => _client.SendTimeout; set => _clien... | using System.Text;
using System.Net;
using Microsoft.Extensions.Caching.Memory;
using Serilog;
using Serilog.Events;
using Iced.Intel;
using static Iced.Intel.AssemblerRegisters;
namespace OGXbdmDumper
{
public class Xbox : IDisposable
{
#region Properties
private bool _disposed;
priv... | get; private set; }
public List<Module> Modules => GetModules();
public List<Thread> Threads => GetThreads();
public Version Version => GetVersion();
#endregion
#region Connection
public void Connect(string host, int port = 731)
{
_cache.Clear()... | {
"context_start_lineno": 0,
"file": "src/OGXbdmDumper/Xbox.cs",
"groundtruth_start_lineno": 71,
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"right_context_start_lineno": 72,
"task_id": "project_cc_csharp/3297"
} | {
"list": [
{
"filename": "src/OGXbdmDumper/Connection.cs",
"retrieved_chunk": " /// <summary>\n /// Initializes the session.\n /// </summary>\n public Connection()\n {\n // initialize defaults\n Reader = new BinaryReader(this);\n Wri... | Kernel Kernel { |
{
"list": [
{
"filename": "Runtime/Core/Internal/ActionFluxParam.cs",
"retrieved_chunk": " internal readonly Dictionary<TKey, HashSet<Action<TValue>>> dictionary = new Dictionary<TKey, HashSet<Action<TValue>>>();\n ///<summary>\n /// Subscribes an event to the action dictionary if... | /*
Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox')
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... |
if(dictionary.TryGetValue(key, out var values))
{
if (condition) values.Add(action);
else values.Remove(action);
}
else if (condition) dictionary.Add(key, new HashSet<Action>(){action});
}
///<summary>
/// Triggers ... | {
"context_start_lineno": 0,
"file": "Runtime/Core/Internal/ActionFlux.cs",
"groundtruth_start_lineno": 40,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 42,
"task_id": "project_cc_csharp/3189"
} | {
"list": [
{
"filename": "Runtime/Core/Internal/ActionFluxParam.cs",
"retrieved_chunk": " {\n if (condition) values.Add(action);\n else values.Remove(action);\n }\n else if (condition) dictionary.Add(key, new HashSet<Action<TValue>>(){act... | IStore<TKey, Action>.Store(in bool condition, TKey key, Action action)
{ |
{
"list": [
{
"filename": "source/ViewModels/TopPanelViewModel.cs",
"retrieved_chunk": " break;\n case Mode.Uninstall:\n Status = plugin.GetResourceString(\"LOCNowPlayingTermsUninstalling\") + \" \";\n Status += st... | using NowPlaying.Utils;
using NowPlaying.Models;
using System;
using System.Collections.Generic;
using System.IO;
namespace NowPlaying.ViewModels
{
public class GameCacheViewModel : ObservableObject
{
private readonly NowPlaying plugin;
public readonly GameCacheManagerViewModel manager;
... |
bool notInstalled = entry.State == GameCacheState.Empty || entry.State == GameCacheState.InProgress;
if (notInstalled)
{
if (averageBps > 0)
{
long bytesLeftToInstall = entry.InstallSize - entry.CacheSize;
retur... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheViewModel.cs",
"groundtruth_start_lineno": 242,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 244,
"task_id": "project_cc_csharp/3173"
} | {
"list": [
{
"filename": "source/ViewModels/TopPanelViewModel.cs",
"retrieved_chunk": " Status = plugin.GetResourceString(\"LOCNowPlayingTermsInstalling\") + \" \";\n Status += string.Format(formatStringXofY, cachesInstalled + 1, cachesToInstall) + \", \"... | GameCacheEntry entry, long averageBps)
{ |
{
"list": [
{
"filename": "src/LogDashboard.Authorization/Authorization/LogdashboardAccountAuthorizeFilter.cs",
"retrieved_chunk": "using LogDashboard.Authorization;\nusing LogDashboard.Extensions;\nusing LogDashboard.Route;\nusing Microsoft.AspNetCore.Http;\nusing System;\nusing System.Collections.G... | using System;
using LogDashboard.LogDashboardBuilder;
using LogDashboard.Handle;
using LogDashboard.Route;
using Microsoft.Extensions.DependencyInjection;
using LogDashboard.Views.Dashboard;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using LogDashboard;
namespace LogDashboard
{
public ... |
LogDashboardRoutes.Routes.AddRoute(new LogDashboardRoute(LogDashboardAuthorizationConsts.LoginRoute, typeof(Login)));
services.AddSingleton(filter);
services.AddSingleton<IStartupFilter, LogDashboardLoginStartupFilter>();
services.AddTransient<AuthorizationHandle>();
... | {
"context_start_lineno": 0,
"file": "src/LogDashboard.Authorization/LogDashboardServiceCollectionExtensions.cs",
"groundtruth_start_lineno": 14,
"repository": "Bryan-Cyf-LogDashboard.Authorization-14d4540",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/3332"
} | {
"list": [
{
"filename": "src/LogDashboard.Authorization/LogDashboardAuthorizationMiddleware.cs",
"retrieved_chunk": " private readonly RequestDelegate _next;\n public LogDashboardAuthorizationMiddleware(RequestDelegate next)\n {\n _next = next;\n }\n pub... | LogdashboardAccountAuthorizeFilter filter, Action<LogDashboardOptions> func = null)
{ |
{
"list": [
{
"filename": "Microsoft.Build.Utilities/TrackedDependencies.cs",
"retrieved_chunk": "using System.Collections.Generic;\nusing System.IO;\nusing Microsoft.Build.Framework;\nusing Microsoft.Build.Shared;\nusing Microsoft.Build.Shared.FileSystem;\nusing Microsoft.Build.Utilities;\nnamespace... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using Microsoft.Build.Shared;
using Mi... |
internal static readonly char[] Slashes = new char[2] { '/', '\\' };
// Linux大小写敏感
private static readonly ConcurrentDictionary<string, bool> FileExistenceCache = new ConcurrentDictionary<string, bool>(StringComparer.Ordinal);
internal static bool IsSlash(char c)
{
... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.Shared/FileUtilities.cs",
"groundtruth_start_lineno": 20,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 21,
"task_id": "project_cc_csharp/3106"
} | {
"list": [
{
"filename": "Microsoft.Build.Utilities/TrackedDependencies.cs",
"retrieved_chunk": " public static ITaskItem[] ExpandWildcards(ITaskItem[] expand)\n {\n if (expand == null)\n {\n return null;\n }\n List<ITaskItem> l... | IFileSystem DefaultFileSystem = FileSystems.Default; |
{
"list": [
{
"filename": "src/WebSocketHub/Core/src/WebSocketHubBuilder.cs",
"retrieved_chunk": " /// </summary>\n /// <param name=\"services\">The collection of services to use for the WebSocketHub.</param>\n /// <remarks>\n /// This constructor initializes a new instance... | using Microsoft.Extensions.DependencyInjection;
namespace TraTech.WebSocketHub
{
public static class WebSocketHubServiceCollectionExtensions
{
/// <summary>
/// Adds the WebSocketHub to the service collection with the specified key type.
/// </summary>
/// <typeparam name="TKey"... |
if (services == null)
{
throw new ArgumentNullException(nameof(services));
}
services.AddOptions();
services.AddSingleton<WebSocketHub<TKey>>();
return new WebSocketHubBuilder(services);
}
}
}
| {
"context_start_lineno": 0,
"file": "src/WebSocketHub/Core/src/WebSocketHubServiceCollectionExtensions.cs",
"groundtruth_start_lineno": 16,
"repository": "TRA-Tech-dotnet-websocket-9049854",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/3301"
} | {
"list": [
{
"filename": "src/WebSocketHub/Core/src/WebSocketHubBuilder.cs",
"retrieved_chunk": " /// This method adds a WebSocket request handler of type THandler for the specified message type to the WebSocketHubOptions. The THandler type must implement the IWebSocketRequestHandler interface... | WebSocketHubBuilder AddWebSocketHub<TKey>(this IServiceCollection services)
where TKey : notnull
{ |
{
"list": [
{
"filename": "HttpMessageHandlerFactory/Implementations/NameRegistration.cs",
"retrieved_chunk": "using System.Collections.Generic;\nnamespace HttpMessageHandlerFactory.Implementations\n{\n /// <summary>\n /// 别登记\n /// </summary>\n sealed class NameRegistration : HashSet<str... | using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Net.Http;
using System.Threading;
namespace HttpMessageHandlerFactory.Implementations
{
/// <summary>
/// 默认的Http消息处理者工厂
/// </summary>
sealed class DefaultHttpMessa... |
private readonly IServiceScopeFactory serviceScopeFactory;
private readonly ExpiredHandlerEntryCleaner expiredHandlerEntryCleaner;
/// <summary>
/// 过期回调
/// </summary>
private readonly TimerCallback expiryCallback;
/// <summary>
/// LazyOf(ActiveHandle... | {
"context_start_lineno": 0,
"file": "HttpMessageHandlerFactory/Implementations/DefaultHttpMessageHandlerFactory.cs",
"groundtruth_start_lineno": 14,
"repository": "xljiulang-HttpMessageHandlerFactory-4b1d13b",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/3318"
} | {
"list": [
{
"filename": "HttpMessageHandlerFactory/CookieHttpHandler.cs",
"retrieved_chunk": " sealed class CookieHttpHandler : DelegatingHandler\n {\n private const string COOKIE_HEADER = \"Cookie\";\n private const string SET_COOKIE_HEADER = \"Set-Cookie\";\n private rea... | NameRegistration nameRegistration; |
{
"list": [
{
"filename": "OfficialAccount/Template.cs",
"retrieved_chunk": " return result.ErrCode == 0;\n }\n #endregion\n #region 发送模板消息\n /// <summary>\n /// 发送模板消息\n /// </summary>\n /// <param name=\"data\">发送数据</param>\n /// <re... | using FayElf.Plugins.WeChat.Applets.Model;
using FayElf.Plugins.WeChat.Model;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Text;
using XiaoFeng;
using XiaoFeng.Http;
/****************************************************************
* Copyright © (2021) www.fayelf... |
var config = this.Config.GetConfig(WeChatType.Applets);
return Common.Execute(config.AppID, config.AppSecret, token =>
{
var response = HttpHelper.GetHtml(new HttpRequest
{
Method = HttpMethod.Post,
Address = $"... | {
"context_start_lineno": 0,
"file": "Applets/Applets.cs",
"groundtruth_start_lineno": 184,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 186,
"task_id": "project_cc_csharp/3213"
} | {
"list": [
{
"filename": "OfficialAccount/Template.cs",
"retrieved_chunk": " {\n var config = this.Config.GetConfig(WeChatType.Applets);\n return Common.Execute(config.AppID, config.AppSecret, token =>\n {\n var response = HttpHelper.GetHtml(new ... | UserEncryptKeyData GetUserEncryptKey(JsCodeSessionData session)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Blink/SkinnedMeshEyelidMorpher.cs",
"retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nusing UnityEngine;\nnamespace Mochineko.FacialExpressions.Blink\n{\n /// <summary>\n /// A simple implementation of <see cref... | #nullable enable
using System.Collections.Generic;
using UnityEngine;
namespace Mochineko.FacialExpressions.Blink
{
/// <summary>
/// A simple implementation of <see cref="IEyelidMorpher"/> for <see cref="Animator"/>.
/// </summary>
public sealed class AnimatorEyelidMorpher : IEyelidMorpher
{
... |
/// <summary>
/// Creates a new instance of <see cref="AnimatorEyelidMorpher"/>.
/// </summary>
/// <param name="animator">Target animator.</param>
/// <param name="idMap">Map of eyelid to animator float key.</param>
public AnimatorEyelidMorpher(
Animator an... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/Blink/AnimatorEyelidMorpher.cs",
"groundtruth_start_lineno": 12,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3203"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Blink/SkinnedMeshEyelidMorpher.cs",
"retrieved_chunk": " private readonly SkinnedMeshRenderer skinnedMeshRenderer;\n private readonly IReadOnlyDictionary<Eyelid, int> indexMap;\n private readonly bool separateBoth;\n ... | Eyelid, int> idMap; |
{
"list": [
{
"filename": "JWLSLMerge.Data/Models/Note.cs",
"retrieved_chunk": " public string? Title { get; set; }\n public string? Content { get; set; }\n public string LastModified { get; set; } = null!;\n public string Created { get; set; } = null!;\n public int ... | using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class Location
{
[Ignore]
public int LocationId { get; set; }
public int? BookNumber { get; set; }
public int? ChapterNumber { get; set; }
public int? DocumentId { get; set; }
public int?... | get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "JWLSLMerge.Data/Models/Location.cs",
"groundtruth_start_lineno": 18,
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/3315"
} | {
"list": [
{
"filename": "JWLSLMerge.Data/Models/Bookmark.cs",
"retrieved_chunk": " public string Title { get; set; } = null!;\n public string? Snippet { get; set; }\n public int BlockType { get; set; }\n public int? BlockIdentifier { get; set; }\n }\n}",
"score":... | Ignore]
public int NewLocationId { |
{
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Trail.cs",
"retrieved_chunk": " public Trail(Vector2 position)\n {\n Joints = new List<Vector2>();\n for (int i = 0; i < 5; i++)\n Joints.Add(position);\n SegmentLength = 10f;\n ... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using VeilsClaim.Classes.Managers;
using VeilsClaim.Classes.Objects.Particles;
using VeilsClaim.Classes.Utilities;
namespace VeilsClaim.Classes.Objects.Projectiles
{
public class Bolt : Projectile
{
... |
public override List<Vector2> CreateShape()
{
return new List<Vector2>();
}
public override void Destroy()
{
// for (int i = 0; i < (int)(Velocity.Length() / 100); i++)
// ParticleManager.particles.Add(new SparkParticle()
// ... | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Projectiles/Bolt.cs",
"groundtruth_start_lineno": 38,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 39,
"task_id": "project_cc_csharp/3251"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Trail.cs",
"retrieved_chunk": " Joints.Add(position);\n SegmentLength = length;\n StartThickness = thickness;\n EndThickness = thickness;\n AllowShrinking = true;\n StartColour =... | Trail Trail; |
{
"list": [
{
"filename": "Ultrapain/Patches/Stray.cs",
"retrieved_chunk": " public static int projectileDamage = 10;\n public static int explosionDamage = 20;\n public static float coreSpeed = 110f;\n static void Postfix(ZombieProjectiles __instance, ref EnemyIdentifier __... | using HarmonyLib;
using UnityEngine;
namespace Ultrapain.Patches
{
class Solider_Start_Patch
{
static void Postfix(ZombieProjectiles __instance, ref GameObject ___decProjectile, ref GameObject ___projectile, ref EnemyIdentifier ___eid, ref Animator ___anim)
{
if (___eid.enemyType !=... |
if (___eid.enemyType != EnemyType.Soldier)
return;
___currentProjectile.GetComponent<ProjectileSpread>().spreadAmount = 10;
___currentProjectile.SetActive(true);
SoliderShootCounter counter = __instance.gameObject.GetComponent<SoliderShootCounter>();
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Solider.cs",
"groundtruth_start_lineno": 39,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 41,
"task_id": "project_cc_csharp/3183"
} | {
"list": [
{
"filename": "Ultrapain/Patches/StreetCleaner.cs",
"retrieved_chunk": " }\n /*[HarmonyPatch(typeof(Streetcleaner))]\n [HarmonyPatch(\"StartFire\")]\n class StreetCleaner_StartFire_Patch\n {\n static void Postfix(Streetcleaner __instance, ref EnemyIdentifier ___eid)\n... | ZombieProjectiles __instance, ref GameObject ___currentProjectile, ref EnemyIdentifier ___eid, ref GameObject ___player, ref Animator ___anim, ref float ___coolDown)
{ |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.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 SearchWebCommand : Command\n {\... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class NoActionCommand : Command
{
public override string |
public override string Description => "does nothing";
public override string Format => "no-action";
public override async Task<string> Execute(Master caller, string[] args)
{
return "command did nothing";
}
}
}
| {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/NoActionCommand.cs",
"groundtruth_start_lineno": 11,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/3343"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": " public override string Description => \"Searches the web and returns a list of links and descriptions\";\n public override string Format => \"search-web | querry\";\n public override async ... | Name => "no-action"; |
{
"list": [
{
"filename": "CloudDistributedLock/CloudDistributedLockProvider.cs",
"retrieved_chunk": "namespace CloudDistributedLock\n{\n public interface ICloudDistributedLockProvider\n {\n Task<CloudDistributedLock> TryAquireLockAsync(string name);\n Task<CloudDistributedLock> A... | using Microsoft.Extensions.Options;
using System.Collections.Concurrent;
namespace CloudDistributedLock
{
public interface ICloudDistributedLockProviderFactory
{
ICloudDistributedLockProvider GetLockProvider();
ICloudDistributedLockProvider GetLockProvider(string name);
}
public class ... |
this.OptionsMonitor = optionsMonitor;
}
protected IOptionsMonitor<CloudDistributedLockProviderOptions> OptionsMonitor { get; }
public ICloudDistributedLockProvider GetLockProvider(string name)
{
return clients.GetOrAdd(name, n => CreateClient(n));
}
... | {
"context_start_lineno": 0,
"file": "CloudDistributedLock/CloudDistributedLockProviderFactory.cs",
"groundtruth_start_lineno": 18,
"repository": "briandunnington-CloudDistributedLock-04f72e6",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/3393"
} | {
"list": [
{
"filename": "CloudDistributedLock/CloudDistributedLockProvider.cs",
"retrieved_chunk": " private readonly CosmosLockClient cosmosLockClient;\n public CloudDistributedLockProvider(CloudDistributedLockProviderOptions options)\n {\n this.options = options;\n ... | CloudDistributedLockProviderOptions> optionsMonitor)
{ |
{
"list": [
{
"filename": "Junkctrl/Helpers/ErrorHelper.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Windows.Forms;\nnamespace Junkctrl\n{\n internal class ErrorHelper\n {\n private static CheckedListBox target = null;\n private static Er... | using Features.Feature;
using HelperTool;
using Junkctrl.ITreeNode;
using Junkctrl.Theming;
using Junkctrl.Views;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using... |
private int progression = 0;
private int progressionIncrease = 0;
public MainForm()
{
InitializeComponent();
pluginBase = new PluginBase(lnkStatus, progressBar, checkResults);
}
private void MainForm_Shown(object sender, EventArgs e)
{
... | {
"context_start_lineno": 0,
"file": "Junkctrl/MainForm.cs",
"groundtruth_start_lineno": 23,
"repository": "builtbybel-JunkCtrl-5be1955",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/3306"
} | {
"list": [
{
"filename": "Junkctrl/Helpers/ErrorHelper.cs",
"retrieved_chunk": " // Errorlogger to target richLog\n public void SetTarget(CheckedListBox listBox)\n {\n target = listBox;\n }\n public void Log(string format, params object[] args)\n {... | PluginBase pluginBase; |
{
"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 sisyphiusPrimeExplosion;
public static GameObject explosionWaveKnuckleblaster;
public static GameObject chargeEffect;
public static GameObject maliciousFaceProjectile;
public static GameObject hideousMassSpear;
public static GameObject coin;
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 85,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 86,
"task_id": "project_cc_csharp/3192"
} | {
"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 sisyphiusExplosion; |
{
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/PackageRemovalTask.cs",
"retrieved_chunk": "namespace DragonFruit.Kaplan.ViewModels\n{\n public class PackageRemovalTask : ReactiveObject\n {\n private readonly ObservableAsPropertyHelper<string> _statusString;\n private read... | // 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.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Linq;
using System.Security.Principal;
using System.... |
public MainWindowViewModel()
{
_packageManager = new PackageManager();
_currentUser = WindowsIdentity.GetCurrent();
_logger = App.GetLogger<MainWindowViewModel>();
AvailablePackageModes = _currentUser.User != null
? Enum.GetValues<Packa... | {
"context_start_lineno": 0,
"file": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"groundtruth_start_lineno": 34,
"repository": "dragonfruitnetwork-kaplan-13bdb39",
"right_context_start_lineno": 35,
"task_id": "project_cc_csharp/3360"
} | {
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/PackageRemovalTask.cs",
"retrieved_chunk": " Package = new PackageViewModel(package);\n _mode = mode;\n _manager = manager;\n _statusString = this.WhenAnyValue(x => x.Progress)\n .Select... | PackageViewModel> _discoveredPackages = Array.Empty<PackageViewModel>(); |
{
"list": [
{
"filename": "src/Models/EffectiveRole.cs",
"retrieved_chunk": "namespace Beeching.Models\n{\n internal class EffectiveRole\n {\n public string Name { get; set; }\n public string Type { get; set; }\n public string Scope { get; set; }\n public string Scop... | using System.Text.Json.Serialization;
namespace Beeching.Models
{
internal class Resource
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("type")]
public string Type { get; ... | get; set; }
public Resource()
{
ResourceLocks = new();
Roles = new();
}
}
}
| {
"context_start_lineno": 0,
"file": "src/Models/Resource.cs",
"groundtruth_start_lineno": 33,
"repository": "irarainey-beeching-e846af0",
"right_context_start_lineno": 34,
"task_id": "project_cc_csharp/3344"
} | {
"list": [
{
"filename": "src/Models/ApiVersion.cs",
"retrieved_chunk": " public List<string> ApiVersions { get; set; }\n [JsonPropertyName(\"defaultApiVersion\")]\n public string DefaultApiVersion { get; set; }\n [JsonPropertyName(\"apiProfiles\")]\n public List<Ap... | EffectiveRole> Roles { |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/ShardDbContext.cs",
"retrieved_chunk": " public ShardDbContext(IShardDependency shardDependency)\n {\n InitShardConfiguration();\n Dependencies = shardDependency;\n }\n /... | using Microsoft.EntityFrameworkCore;
using Ryan.DependencyInjection;
using Ryan.Models;
namespace Ryan.EntityFrameworkCore
{
[Shard(typeof(M))]
public class SqlServerShardDbContext : ShardDbContext
{
public SqlServerShardDbContext( |
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Server=(local);Database=M;User Id=sa;Password=sa;");
}
}
}
| {
"context_start_lineno": 0,
"file": "test/Ryan.EntityFrameworkCore.Shard.Tests/EntityFrameworkCore/SqlServerShardDbContext.cs",
"groundtruth_start_lineno": 9,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/3256"
} | {
"list": [
{
"filename": "test/Ryan.EntityFrameworkCore.Shard.Tests/EntityFrameworkCore/ModelBuilders/MEntityModelBuilder.cs",
"retrieved_chunk": " modelBuilder.Entity<TImplementation>(b => \n {\n b.ToTable(tableName).HasKey(x => x.Id).IsClustered(false);\n ... | IShardDependency shardDependency) : base(shardDependency)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/StreetCleaner.cs",
"retrieved_chunk": "using HarmonyLib;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class StreetCleaner_Start_Patch\n {\n static void Postfix(Streetcleaner __instance, ref EnemyIdentifier ___eid)\n {\n ... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using static Ultrapain.ConfigManager;
namespace Ultrapain.Patches
{
// EID
class EnemyIdentifier_UpdateModifiers
{
static void Postfix( |
EidStatContainer container = ConfigManager.enemyStats[__instance.enemyType];
if(__instance.enemyType == EnemyType.V2)
{
V2 comp = __instance.GetComponent<V2>();
if(comp != null && comp.secondEncounter)
{
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/GlobalEnemyTweaks.cs",
"groundtruth_start_lineno": 12,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/3191"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Idol.cs",
"retrieved_chunk": " if(ConfigManager.idolExplodionType.value == ConfigManager.IdolExplosionType.Sand)\n {\n GameObject.Instantiate(Plugin.sandExplosion, __instance.transform.position, Quaternion.identity);\n ... | EnemyIdentifier __instance)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/AnimatorLipMorpher.cs",
"retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nusing UnityEngine;\nnamespace Mochineko.FacialExpressions.LipSync\n{\n /// <summary>\n /// An implementation of <see cref=\"ILipM... | #nullable enable
using System.Collections.Generic;
using UnityEngine;
namespace Mochineko.FacialExpressions.LipSync
{
/// <summary>
/// An implementation of <see cref="ILipMorpher"/> to morph lip by <see cref="SkinnedMeshRenderer"/>.
/// </summary>
public sealed class SkinnedMeshLipMorpher : ILipMorphe... |
/// <summary>
/// Creates a new instance of <see cref="SkinnedMeshLipMorpher"/>.
/// </summary>
/// <param name="skinnedMeshRenderer">Target renderer.</param>
/// <param name="indexMap">Map of viseme to blend shape index.</param>
public SkinnedMeshLipMorpher(
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/LipSync/SkinnedMeshLipMorpher.cs",
"groundtruth_start_lineno": 12,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3232"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/AnimatorLipMorpher.cs",
"retrieved_chunk": " private readonly Animator animator;\n private readonly IReadOnlyDictionary<Viseme, int> idMap;\n /// <summary>\n /// Creates a new instance of <see cref=\"Anim... | Viseme, int> indexMap; |
{
"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 System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
/*public class ObjectActivator : MonoBehaviour
{
public int originalInstanceID = 0;
public MonoBehaviour activator;
void Start()
{
i... |
public Rigidbody rb;
public bool kinematic;
public bool colDetect;
public Collider col;
public AudioSource aud;
public List<MonoBehaviour> comps = new List<MonoBehaviour>();
void Awake()
{
if (originalId == gameObject.GetInstanceID())
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/CommonComponents.cs",
"groundtruth_start_lineno": 58,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 59,
"task_id": "project_cc_csharp/3186"
} | {
"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... | Renderer rend; |
{
"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; }
[ | get; set; }
[JsonProperty("posts_read_count")]
public int PostsReadCount { get; set; }
[JsonProperty("days_visited")]
public int DaysVisited { get; set; }
[JsonProperty("topic_count")]
public int TopicCount { get; set; }
[JsonProperty("post_count")]
p... | {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"groundtruth_start_lineno": 12,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/3352"
} | {
"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... | JsonProperty("topics_entered")]
public int TopicsEntered { |
{
"list": [
{
"filename": "Assets/Mochineko/KoeiromapAPI.Samples/KoeiromapAPISample.cs",
"retrieved_chunk": "using UnityEngine.Assertions;\nnamespace Mochineko.KoeiromapAPI.Samples\n{\n internal sealed class KoeiromapAPISample : MonoBehaviour\n {\n [SerializeField, Range(-3f, 3f)] private... | #nullable enable
using System;
using System.IO;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.ChatGPT_API;
using Mochineko.FacialExpressions.Blink;
using Mochineko.FacialExpressions.Emotion;
using Mochineko.FacialExpressions.Extensions.VRM;
using Mochineko.FacialExpressions.LipSync;
using Mochi... |
private LongTermChatMemory? memory;
internal LongTermChatMemory? Memory => memory;
private ChatCompletion? chatCompletion;
private ChatCompletion? stateCompletion;
private VoiceVoxSpeechSynthesis? speechSynthesis;
private IFiniteStateMachine<AgentEvent, AgentContext>? ag... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/DemoOperator.cs",
"groundtruth_start_lineno": 39,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/3248"
} | {
"list": [
{
"filename": "Assets/Mochineko/KoeiromapAPI.Samples/KoeiromapAPISample.cs",
"retrieved_chunk": " [SerializeField] private Style style;\n [SerializeField] private AudioSource? audioSource;\n private static readonly HttpClient HttpClient = new();\n private IPolic... | IChatMemoryStore? store; |
{
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " string stateName = ___anim.GetCurrentAnimatorClipInfo(0)[0].clip.name;\n MinosPrimeFlag flag = __instance.GetComponent<MinosPrimeFlag>();\n if (stateName == \"Combo\" || (flag != null && ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
using ULTRAKILL.Cheats;
using UnityEngine;
namespace Ultrapain.Patches
{
class Leviathan_Flag : MonoBehaviour
{
private LeviathanHead comp;
private Animator anim;
//p... |
private void Shoot()
{
Debug.Log("Attempting to shoot projectile for leviathan");
GameObject proj = GameObject.Instantiate(Plugin.maliciousFaceProjectile, shootPoint.transform.position, Quaternion.identity);
if (targetGrenade == null)
targetGrenade =... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Leviathan.cs",
"groundtruth_start_lineno": 121,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 122,
"task_id": "project_cc_csharp/3200"
} | {
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " Ray ray = new Ray(player.position, unitSphere);\n LayerMask mask = new LayerMask();\n mask.value |= 256 | 16777216;\n if (Physics.Raycast(ray, out RaycastHit hit, max, mask, Qu... | Vector3 targetShootPoint; |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/RemoveLineCommand.cs",
"retrieved_chunk": "namespace WAGIapp.AI.AICommands\n{\n internal class RemoveLineCommand : Command\n {\n public override string Name => \"remove-line\";\n public override string Description => \"deletes a lin... | namespace WAGIapp.AI.AICommands
{
internal class WriteLineCommand : Command
{
public override string |
public override string Description => "writes the given text to the line number";
public override string Format => "write-line | line number | text";
public override async Task<string> Execute(Master caller, string[] args)
{
if (args.Length < 3)
return "er... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/WriteLineCommand.cs",
"groundtruth_start_lineno": 4,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 5,
"task_id": "project_cc_csharp/3359"
} | {
"list": [
{
"filename": "WAGIapp/AI/Commands.cs",
"retrieved_chunk": " c = new NoActionCommand();\n commands.Add(c.Name, c);\n c = new GoalReachedCommand();\n commands.Add(c.Name, c);\n c = new AddNoteCommand();\n commands.Add(c.Name,... | Name => "write-line"; |
{
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " exp.speed *= flag.superSize * flag.superSpeed;\n exp.playerDamageOverride = flag.superPlayerDamageOverride;\n }\n }\n return true;\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;
... |
if (__state.templateExplosion != null)
GameObject.Destroy(__state.templateExplosion);
if (!__state.state)
return;
}
}
class Cannonball_Explode
{
static bool Prefix(Cannonball __instance, GameObject ___interruptionExplosion, ref GameO... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 336,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 338,
"task_id": "project_cc_csharp/3201"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " static MethodInfo m_GameObject_GetComponent_Projectile = typeof(GameObject).GetMethod(\"GetComponent\", new Type[0], new ParameterModifier[0]).MakeGenericMethod(new Type[1] { typeof(Projectile) });\n ... | Grenade __instance, StateInfo __state)
{ |
{
"list": [
{
"filename": "src/CsvParsing/CsvDictionaryReader.cs",
"retrieved_chunk": "// ReSharper disable once RedundantUsingDirective\nusing System.Collections.Generic; // can't alias\nnamespace CsvParsing\n{\n public class CsvDictionaryReader\n {\n private readonly CsvReader _reader;... | // ReSharper disable once RedundantUsingDirective
using System.Collections.Generic; // can't alias
namespace CsvParsing
{
public class CsvReader
{
private readonly |
public CsvReader(System.IO.TextReader reader)
{
_reader = new TextReaderWhichIgnoresReturnCarrier(reader);
}
private (string?, string?) ReadQuotedCell()
{
// Pre-condition
if (_reader.Peek() != '"')
{
throw new Sy... | {
"context_start_lineno": 0,
"file": "src/CsvParsing/CsvReader.cs",
"groundtruth_start_lineno": 7,
"repository": "aas-core-works-aas-core3.0-cli-swiss-knife-eb9a3ef",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/3143"
} | {
"list": [
{
"filename": "src/CsvParsing/CsvDictionaryReader.cs",
"retrieved_chunk": " {\n _reader = reader;\n }\n /**\n * <summary>Read the header from the reader.</summary>\n * <returns>Error, if any.</returns>\n */\n public string? Rea... | TextReaderWhichIgnoresReturnCarrier _reader; |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/Trace/SqlLocalDbTraceController.cs",
"retrieved_chunk": "using SQLServerCoverage.Gateway;\nusing System.IO;\nnamespace SQLServerCoverage.Trace\n{\n class SqlLocalDbTraceController : SqlTraceController\n {\n public SqlLocalDbTraceControl... | using System;
using System.Collections.Generic;
using SQLServerCoverage.Gateway;
namespace SQLServerCoverage.Trace
{
abstract class TraceController
{
protected readonly string DatabaseId;
protected readonly DatabaseGateway Gateway;
protected string FileName;
protected r... |
Gateway = gateway;
DatabaseId = gateway.GetString(string.Format("select db_id('{0}')", databaseName));
Name = string.Format($"SQLServerCoverage-Trace-{Guid.NewGuid().ToString()}");
}
public abstract void Start();
public abstract void Stop();
public a... | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/Trace/TraceController.cs",
"groundtruth_start_lineno": 14,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/3295"
} | {
"list": [
{
"filename": "src/SQLServerCoverageLib/Trace/SqlTraceController.cs",
"retrieved_chunk": "ADD EVENT sqlserver.sp_statement_starting(action (sqlserver.plan_handle, sqlserver.tsql_stack) where ([sqlserver].[database_id]=({1})))\nADD TARGET package0.asynchronous_file_target(\n SET filenam... | DatabaseGateway gateway, string databaseName)
{ |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Dynamic/DynamicTypeGenerator.cs",
"retrieved_chunk": " public class DynamicTypeGenerator : IDynamicTypeGenerator\n {\n /// <summary>\n /// 动态源码生成器\n /// </summary>\n public IDynamicSourc... | using Ryan.EntityFrameworkCore.Dynamic;
using System;
namespace Ryan.EntityFrameworkCore.Builder
{
/// <inheritdoc cref="IEntityShardConfiguration"/>
public class EntityShardConfiguration : IEntityShardConfiguration
{
/// <inheritdoc cref="IEntityImplementationDictionaryGenerator"/>
public ... |
EntityImplementationDictionaryGenerator = entityImplementationDictionaryGenerator;
DynamicTypeGenerator = dynamicTypeGenerator;
}
/// <inheritdoc/>
public Type AddShard<TEntity>(string tableName) where TEntity : class
{
var implementationType = Dynam... | {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityShardConfiguration.cs",
"groundtruth_start_lineno": 20,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/3265"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/EntityProxyGenerator.cs",
"retrieved_chunk": " {\n EntityModelBuilderGenerator = entityModelBuilderGenerator;\n EntityImplementationDictionaryGenerator = entityImplementationDictionaryG... | IEntityImplementationDictionaryGenerator entityImplementationDictionaryGenerator
, IDynamicTypeGenerator dynamicTypeGenerator)
{ |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"retrieved_chunk": " /// </summary>\n bool CorrectActionCheck() {\n if (pressedAction == GengoAction.LeftButton) \n return translationContainer.leftWordText.Text == ... | #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... |
translationsLine.Add(translationCard);
fakesLine.Add(fakeCard);
if (translationsLine.Count == 1)
UpdateWordTexts();
}
/// <summary>
/// Function to remove the first card (translation + fake) from their lines
/// </summary>
pub... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/UI/Translation/TranslationContainer.cs",
"groundtruth_start_lineno": 51,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 52,
"task_id": "project_cc_csharp/3333"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"retrieved_chunk": " if (!userTriggered)\n {\n if (!HitObject.HitWindows.CanBeHit(timeOffset)) {\n translationContainer.RemoveCard();\n ... | Card translationCard, Card fakeCard) { |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/Parsers/EventsParser.cs",
"retrieved_chunk": " value = Get2008StyleString(\"offsetStart\");\n }\n return int.Parse(value);\n }\n private int GetOffsetEnd()\n {\n var value = GetStri... | using SQLServerCoverage.Objects;
namespace SQLServerCoverage
{
public class StatementChecker
{
public bool Overlaps(Statement statement, CoveredStatement coveredStatement)
{
var coveredOffsetStart = coveredStatement.Offset / 2;
var coveredOffsetEnd = coveredStatement.Off... |
var statementStart = statement.Offset;
var statementEnd = statementStart + statement.Length;
if (statementStart >= offsetStart && statementEnd <= offsetEnd)
{
return true;
}
return false;
}
}
} | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/StatementChecker.cs",
"groundtruth_start_lineno": 45,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 47,
"task_id": "project_cc_csharp/3322"
} | {
"list": [
{
"filename": "src/SQLServerCoverageLib/Trace/AzureTraceController.cs",
"retrieved_chunk": " RunScript(DropTraceFormat, \"Error dropping the extended events trace, error: {0}\");\n }\n }\n}",
"score": 25.054287330723906
},
{
"filename": "src/SQLServ... | Statement statement, int offsetStart, int offsetEnd)
{ |
{
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Weapons/Weapon.cs",
"retrieved_chunk": " public Point ShotCount;\n public FireMode FireMode;\n protected int barrelIndex;\n protected float lastFired;\n protected float lastReloaded;\n public virtual void F... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using VeilsClaim.Classes.Managers;
using VeilsClaim.Classes.Objects.Entities;
using VeilsClaim.Classes.Objects.Particles;
namespace VeilsClaim.Classes.Objects.Effects
{
public class Overdrive : EntityEffect
{
public Ov... |
((Vehicle)target).ThrustStrength /= Strength;
((Vehicle)target).ThrustStartColour = oldThrustStartColour;
((Vehicle)target).ThrustEndColour = oldThrustEndColour;
((Vehicle)target).ThrustSparkStartColour = oldThrustSparkStartColour;
((Vehicle)target).ThrustSpa... | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Effects/Overdrive.cs",
"groundtruth_start_lineno": 23,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 25,
"task_id": "project_cc_csharp/3288"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Weapons/Weapon.cs",
"retrieved_chunk": " int count = Main.Random.Next(ShotCount.X, ShotCount.Y);\n if (Loaded >= count)\n {\n lastReloaded = 0f;\n Loaded -= count;\n for ... | Remove(Entity target)
{ |
{
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Sample/TemplateTexts.cs",
"retrieved_chunk": "using UnityEngine;\nnamespace SimplestarGame\n{\n public class TemplateTexts : MonoBehaviour\n {\n [SerializeField] ButtonPressDetection buttonHi;\n [SerializeField] Butto... | using UnityEngine;
namespace SimplestarGame
{
public class SceneContext : MonoBehaviour
{
[SerializeField] internal NetworkPlayerInput PlayerInput;
[SerializeField] internal TMPro.TextMeshProUGUI fpsText;
[SerializeField] internal TMPro.TextMeshProUGUI hostClientText;
[Serialize... |
void Awake()
{
SceneContext.instance = this;
}
static SceneContext instance;
}
} | {
"context_start_lineno": 0,
"file": "Assets/SimplestarGame/Network/Scripts/Scene/SceneContext.cs",
"groundtruth_start_lineno": 18,
"repository": "simplestargame-SimpleChatPhoton-4ebfbd5",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/3372"
} | {
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Sample/TemplateTexts.cs",
"retrieved_chunk": " void Start()\n {\n this.buttonHi.onReleased += this.OnClickHi;\n this.buttonHello.onReleased += this.OnClickHello;\n this.buttonGood.onReleased... | NetworkGame Game; |
{
"list": [
{
"filename": "source/Models/RoboCacher.cs",
"retrieved_chunk": " entry.State = GameCacheState.Empty;\n entry.CacheSize = 0;\n entry.CacheSizeOnDisk = 0;\n }\n else if (DirectoryUtils.IsEmptyDirectory(ca... | using NowPlaying.Utils;
using NowPlaying.Models;
using System;
using System.Collections.Generic;
using System.IO;
namespace NowPlaying.ViewModels
{
public class GameCacheViewModel : ObservableObject
{
private readonly NowPlaying plugin;
public readonly GameCacheManagerViewModel manager;
... |
private string installQueueStatus;
private string uninstallQueueStatus;
private bool nowInstalling;
private bool nowUninstalling;
private string formatStringXofY;
private int bytesScale;
private string bytesToCopy;
private string cacheInstalledSize;
... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheViewModel.cs",
"groundtruth_start_lineno": 29,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 30,
"task_id": "project_cc_csharp/3226"
} | {
"list": [
{
"filename": "source/Models/RoboCacher.cs",
"retrieved_chunk": " else\n {\n // Non-empty directory:\n //\n // . Use Robocopy.exe to compare install vs cache folders.\n // . Expectatio... | GameCachePlatform Platform => entry.Platform; |
{
"list": [
{
"filename": "Ultrapain/UnityUtils.cs",
"retrieved_chunk": " component = child.gameObject.GetComponent<T>();\n if (component != null)\n yield return component;\n foreach (T childComp in GetComponentsInChildrenRecursively<T>(c... | 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... |
Transform target = MonoSingleton<PlayerTracker>.Instance.GetTarget();
if (MonoSingleton<PlayerTracker>.Instance.GetPlayerVelocity().magnitude == 0f)
return target.position;
RaycastHit raycastHit;
if (Physics.Raycast(target.position, MonoSingleton<Playe... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 45,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 47,
"task_id": "project_cc_csharp/3228"
} | {
"list": [
{
"filename": "Ultrapain/UnityUtils.cs",
"retrieved_chunk": " T component;\n foreach (Transform child in obj)\n {\n component = child.gameObject.GetComponent<T>();\n if (component != null)\n return component;... | Collider safeCollider, float speedMod)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/CustomProgress.cs",
"retrieved_chunk": " if (Plugin.ultrapainDifficulty)\n {\n __state = MonoSingleton<PrefsManager>.Instance.GetInt(\"difficulty\", 0);\n MonoSingleton<PrefsManager>.Instance.SetInt(\"diff... | using HarmonyLib;
using System;
using System.ComponentModel;
using UnityEngine;
namespace Ultrapain.Patches
{
class MaliciousFaceFlag : MonoBehaviour
{
public bool charging = false;
}
class MaliciousFace_Start_Patch
{
static void Postfix(SpiderBody __instance, ref GameObject ___pro... |
/*if (!__state)
return;*/
Projectile proj = ___currentProj.GetComponent<Projectile>();
proj.target = MonoSingleton<PlayerTracker>.Instance.GetTarget();
proj.speed = ConfigManager.maliciousFaceHomingProjectileSpeed.value;
proj.turningSpeedMult... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/MaliciousFace.cs",
"groundtruth_start_lineno": 67,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 69,
"task_id": "project_cc_csharp/3208"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " return;\n deltaAnti *= ConfigManager.hardDamagePercent.normalizedValue;\n __instance.antiHp = __state + deltaAnti;\n }\n static FieldInfo hpField = typeof(NewMovem... | GameObject ___currentProj, EnemyIdentifier ___eid/*, bool __state*/)
{ |
{
"list": [
{
"filename": "src/apphost-extract/apphost-extract-v2/Models/ApphostFile7.cs",
"retrieved_chunk": " {\n private readonly byte[] HEADER_OFFSET_SIG = { 0xE8, 0x0, 0x0, 0x0, 0x0, 0x48, 0x8B, 0x05, 0x0, 0x0, 0x0, 0x0, 0x48, 0x85, 0xC0 };\n private const string HEADER_OFFSET_MA... | using apphost_extract_v2.General;
using apphost_extract_v2.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
using static apphost_extract_v2.Util;
namespace apphost_extract_v2
{
public... |
var textSegment = PEHeader.GetSegment(".text");
var sw = Stopwatch.StartNew();
Log.Info("Scanning for version string pointer...");
var sigscanResults = PatternScan(File,
textSegment.PointerToRawData, textSegment.SizeOfRawData,... | {
"context_start_lineno": 0,
"file": "src/apphost-extract/apphost-extract-v2/Analyzer.cs",
"groundtruth_start_lineno": 27,
"repository": "VollRagm-apphost-extract-739a585",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/3376"
} | {
"list": [
{
"filename": "src/apphost-extract/apphost-extract-v2/Models/ApphostFile7.cs",
"retrieved_chunk": " {\n Log.Error(\"Unable to located bundle header :/\");\n var headerOffset = uint.Parse(Log.QueryString(\"Please enter the Header offset \\n(parse pdb... | IApphostFile Open()
{ |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Models/Request/ReqLibroResumenCsv.cs",
"retrieved_chunk": "using System.Text.Json.Serialization;\nusing LibreDteDotNet.RestRequest.Models.Response;\nnamespace LibreDteDotNet.RestRequest.Models.Request\n{\n public class ReqLibroResumenCsv\n {... | using System.Text.Json.Serialization;
namespace LibreDteDotNet.RestRequest.Models.Request
{
internal class ReqLibroResumen
{
// Root myDeserializedClass = JsonSerializer.Deserialize<Root>(myJsonResponse);
[JsonPropertyName("metaData")]
public | get; set; }
[JsonPropertyName("data")]
public ReqDataLibroResumen? Data { get; set; }
public ReqLibroResumen(ReqMetaDataLibroResumen? metaData, ReqDataLibroResumen? data)
{
MetaData = metaData;
Data = data;
}
}
}
| {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Models/Request/ReqLibroResumen.cs",
"groundtruth_start_lineno": 9,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/3290"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Models/Request/ReqLibroResumenCsv.cs",
"retrieved_chunk": " [JsonPropertyName(\"respEstado\")]\n public RespEstado? RespEstado { get; set; }\n [JsonPropertyName(\"nombreArchivo\")]\n public string? NombreArchivo { get; s... | ReqMetaDataLibroResumen? MetaData { |
{
"list": [
{
"filename": "OfficialAccount/OAuthAPI.cs",
"retrieved_chunk": " /// </summary>\n /// <param name=\"appID\">公众号的唯一标识</param>\n /// <param name=\"appSecret\">公众号的appsecret</param>\n /// <param name=\"code\">填写第一步获取的code参数</param>\n /// <returns></returns>... | using FayElf.Plugins.WeChat.Applets.Model;
using FayElf.Plugins.WeChat.Model;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Text;
using XiaoFeng;
using XiaoFeng.Http;
/****************************************************************
* Copyright © (2021) www.fayelf... |
var session = new JsCodeSessionData();
var config = this.Config.GetConfig(WeChatType.Applets);
var result = HttpHelper.GetHtml(new HttpRequest
{
Method = HttpMethod.Get,
Address = $"{HttpApi.HOST}/sns/jscode2session?appid={config.AppID}&se... | {
"context_start_lineno": 0,
"file": "Applets/Applets.cs",
"groundtruth_start_lineno": 70,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 72,
"task_id": "project_cc_csharp/3289"
} | {
"list": [
{
"filename": "OfficialAccount/Subscribe.cs",
"retrieved_chunk": " /// </summary>\n /// <param name=\"tid\">模板标题 id,可通过getPubTemplateTitleList接口获取,也可登录公众号后台查看获取</param>\n /// <param name=\"kidList\">开发者自行组合好的模板关键词列表,关键词顺序可以自由搭配(例如 [3,5,4] 或 [4,5,3]),最多支持5个,最少2个关键词组合</p... | JsCodeSessionData JsCode2Session(string code)
{ |
{
"list": [
{
"filename": "src/Nebula.Caching.Redis/Interceptors/RedisCacheInterceptor.cs",
"retrieved_chunk": "using Nebula.Caching.Redis.Attributes;\nusing Newtonsoft.Json;\nusing StackExchange.Redis;\nnamespace Nebula.Caching.Redis.Interceptors\n{\n public class RedisCacheInterceptor : AbstractI... | using System.Collections.Generic;
using System.Reflection;
using AspectCore.DynamicProxy;
using AspectCore.DynamicProxy.Parameters;
using Common.Settings;
using Microsoft.Extensions.Configuration;
using Nebula.Caching.Common.Attributes;
using Nebula.Caching.Common.KeyManager;
namespace Nebula.Caching.Common.Utils
{
... |
public ContextUtils(IKeyManager keyManager, IConfiguration configuration, BaseOptions baseOptions)
{
_keyManager = keyManager;
_configuration = configuration;
_baseOptions = baseOptions;
}
public int GetCacheDuration<T>(string key, AspectContext con... | {
"context_start_lineno": 0,
"file": "src/Nebula.Caching.Common/Utils/ContextUtils.cs",
"groundtruth_start_lineno": 16,
"repository": "Nebula-Software-Systems-Nebula.Caching-1f3bb62",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/3230"
} | {
"list": [
{
"filename": "src/Nebula.Caching.InMemory/UtilsExtensions/UtilsExtensions.cs",
"retrieved_chunk": " public static IServiceCollection AddUtilsExtensions(this IServiceCollection services)\n {\n services.AddScoped<IContextUtils>(serviceProvider =>\n {\n ... | BaseOptions _baseOptions; |
{
"list": [
{
"filename": "Magic.IndexedDb/IndexDbManager.cs",
"retrieved_chunk": " AddConditionInternal(rightMember, leftConstant, operation, inOrBranch);\n }\n }\n else if (expression is MethodCallExpression methodCallExpression... | using Magic.IndexedDb.SchemaAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Magic.IndexedDb.Helpers
{
public static class SchemaHelper
{
public const string... |
List<StoreSchema> schemas = new List<StoreSchema>();
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach (var assembly in assemblies)
{
var types = assembly.GetTypes();
foreach (var type in types)
{
... | {
"context_start_lineno": 0,
"file": "Magic.IndexedDb/Helpers/SchemaHelper.cs",
"groundtruth_start_lineno": 53,
"repository": "magiccodingman-Magic.IndexedDb-a279d6d",
"right_context_start_lineno": 55,
"task_id": "project_cc_csharp/3302"
} | {
"list": [
{
"filename": "Magic.IndexedDb/IndexDbManager.cs",
"retrieved_chunk": " var operation = methodCallExpression.Method.Name;\n var caseSensitive = true;\n if (methodCallExpression.Arguments.Count > 1)\n ... | StoreSchema> GetAllSchemas(string databaseName = null)
{ |
{
"list": [
{
"filename": "Standard.REST.RESTFulSense/Brokers/Storages/StorageBroker.StatusDetails.cs",
"retrieved_chunk": "// -------------------------------------------------------------\n// Copyright (c) - The Standard Community - All rights reserved.\n// ------------------------------------------... | // -------------------------------------------------------------
// Copyright (c) - The Standard Community - All rights reserved.
// -------------------------------------------------------------
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Standard.REST.RESTFulSens... |
string path = Path.Combine(Directory.GetCurrentDirectory(), "Data\\StatusCodes.json");
string json = File.ReadAllText(path);
return JsonConvert.DeserializeObject<List<StatusDetail>>(json).AsQueryable();
}
}
}
| {
"context_start_lineno": 0,
"file": "Standard.REST.RESTFulSense/Brokers/Storages/StorageBroker.cs",
"groundtruth_start_lineno": 17,
"repository": "The-Standard-Organization-Standard.REST.RESTFulSense-7598bbe",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/3375"
} | {
"list": [
{
"filename": "Standard.REST.RESTFulSense/Brokers/Storages/StorageBroker.StatusDetails.cs",
"retrieved_chunk": " public IQueryable<StatusDetail> SelectAllStatusDetails() =>\n statusDetails;\n }\n}",
"score": 38.675736962300306
},
{
"filename": "Stan... | StatusDetail> InitialiseStatusCodes()
{ |
{
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Runner/Game/NetworkGame.cs",
"retrieved_chunk": "using Fusion;\nusing System;\nusing System.Linq;\nusing UnityEngine;\nnamespace SimplestarGame\n{\n public class NetworkGame : NetworkBehaviour\n {\n [SerializeField] Vector3[... | using Fusion;
using System.Collections.Generic;
using UnityEngine;
namespace SimplestarGame
{
[RequireComponent(typeof(NetworkRunner))]
public class NetworkGameManager : SimulationBehaviour, IPlayerJoined, IPlayerLeft
{
[SerializeField] NetworkGame networkGame;
[SerializeField] |
Dictionary<PlayerRef, NetworkPlayer> NetworkPlayers { get; set; } = new Dictionary<PlayerRef, NetworkPlayer>(200);
void IPlayerJoined.PlayerJoined(PlayerRef playerRef)
{
if (!Runner.IsServer)
{
return;
}
if (0 == FindObjectsOfTyp... | {
"context_start_lineno": 0,
"file": "Assets/SimplestarGame/Network/Scripts/Runner/NetworkGameManager.cs",
"groundtruth_start_lineno": 10,
"repository": "simplestargame-SimpleChatPhoton-4ebfbd5",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/3412"
} | {
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Runner/Game/NetworkGame.cs",
"retrieved_chunk": " [SerializeField] PlayerAgent agentPrefab;\n [Networked] int TotalPlayerCount { get; set; }\n public void Join(NetworkPlayer player)\n {\n if (!HasSt... | NetworkPlayer networkPlayer; |
{
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphEditor.cs",
"retrieved_chunk": "{\n public class QuestGraphEditor : GraphViewEditorWindow\n {\n public static Quest questForGraph;\n private QuestGraphView _questGraph;\n private bool mouseClicked;\n [MenuItem(\"... | 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... |
questRef = q;
editorWindow = (QuestGraphEditor)_editorWindow;
styleSheets.Add(Resources.Load<StyleSheet>("QuestGraph"));
SetupZoom(ContentZoomer.DefaultMinScale, ContentZoomer.DefaultMaxScale);
this.AddManipulator(new ContentDragger());
this.AddM... | {
"context_start_lineno": 0,
"file": "Editor/GraphEditor/QuestGraphView.cs",
"groundtruth_start_lineno": 21,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/3384"
} | {
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphEditor.cs",
"retrieved_chunk": " var window = GetWindow<QuestGraphEditor>();\n window.titleContent = new GUIContent(\"QuestGraph\");\n }\n private void OnEnable()\n {\n ConstructGraphView();\n... | Quest q = null)
{ |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataExtraction/DataReaderHelpers.cs",
"retrieved_chunk": " throw new IndexOutOfRangeException($@\"Worksheet index not found: \"\"{index}\"\" in \"\"{workbook}\"\".\");\n }\n return worksheet;\n }\n public static ... | using JdeJabali.JXLDataTableExtractor.JXLExtractedData;
using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
namespace JdeJabali.JXLDataTableExtractor.DataExtraction
{
internal class DataReader
{
public List<string> Workbooks { get;... |
List<JXLWorksheetData> worksheetsData = new List<JXLWorksheetData>();
JXLWorksheetData worksheetData;
foreach (string worksheetName in Worksheets)
{
try
{
ExcelWorksheet sheet = DataReaderHelpers.GetWorksheetByName(wor... | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataExtraction/DataReader.cs",
"groundtruth_start_lineno": 141,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 143,
"task_id": "project_cc_csharp/3418"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataTableExtractor.cs",
"retrieved_chunk": " }\n public IDataTableExtractorWorksheetConfiguration ReadAllWorksheets()\n {\n _readAllWorksheets = true;\n return this;\n }\n IDataTableExtr... | JXLWorksheetData> GetWorksheetsDataByName(string workbook, ExcelPackage excel)
{ |
{
"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;
... |
__state = new StateInfo();
if((Coin_ReflectRevolver.coinIsShooting && Coin_ReflectRevolver.shootingCoin != null) || (Time.time - Coin_ReflectRevolver.lastCoinTime <= 0.1f))
{
CoinChainList list = null;
if (Coin_ReflectRevolver.shootingAltBeam != null... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 214,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 217,
"task_id": "project_cc_csharp/3252"
} | {
"list": [
{
"filename": "Ultrapain/Patches/DruidKnight.cs",
"retrieved_chunk": " obj.transform.position = __instance.transform.position;\n AudioSource aud = obj.AddComponent<AudioSource>();\n aud.playOnAwake = false;\n aud.clip = Plugin.druidKnightFullAuto... | Grenade __instance, ref float __3, out StateInfo __state,
bool __1, bool __2)
{ |
{
"list": [
{
"filename": "ViewModels/AudioInputControlViewModel.cs",
"retrieved_chunk": "using Windows.Media.Devices;\nusing wingman.Interfaces;\nnamespace wingman.ViewModels\n{\n public class AudioInputControlViewModel : ObservableObject, IDisposable\n {\n private readonly IMicrophoneDe... | using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Input;
using wingman.Interfaces;
using wingman.Services;
namespace wingman.ViewModels
{
public class MainP... |
private readonly ISettingsService _settingsService;
private readonly ILoggingService _loggingService;
private List<string> _stdInTargetOptions = new List<string>();
private List<Process> _runningProcesses;
// Selected values
private string _selectedStdInTarget;
... | {
"context_start_lineno": 0,
"file": "ViewModels/MainPageViewModel.cs",
"groundtruth_start_lineno": 15,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/3299"
} | {
"list": [
{
"filename": "Services/EditorService.cs",
"retrieved_chunk": " {\n public async Task<IReadOnlyList<Process>> GetRunningEditorsAsync()\n {\n var processes = await Task.Run(() => Process.GetProcesses());\n var editorProcesses = processes.Where(p => IsK... | IStdInService _stdinService; |
{
"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 explosion;
public static GameObject bigExplosion;
public static GameObject sandExplosion;
public static GameObject virtueInsignia;
public static GameObject rocket;
public static GameObject revolverBullet;
public static GameObject maliciou... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 72,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 73,
"task_id": "project_cc_csharp/3270"
} | {
"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 lighningStrikeWindup; |
{
"list": [
{
"filename": "src/server.cs",
"retrieved_chunk": "// Copyright (c) 2023, João Matos\n// Check the end of the file for extended copyright notice.\nusing System.Text;\nusing System.Threading;\nusing System.Net.Sockets;\nusing System.Collections.Generic;\nusing System;\nusing ProtoIP;\nusing... | // Copyright (c) 2023, João Matos
// Check the end of the file for extended copyright notice.
using System.Text;
using System;
using ProtoIP;
using ProtoIP.Common;
namespace ProtoIP
{
public class ProtoClient
{
protected |
protected ProtoStream _protoStream;
public ProtoClient() {}
// Connect to the remote host and create a new ProtoStream object.
//
// Call the OnConnect() method if the connection was successful,
// otherwise call OnConnectFailed().
... | {
"context_start_lineno": 0,
"file": "src/client.cs",
"groundtruth_start_lineno": 13,
"repository": "JoaoAJMatos-ProtoIP-84f8797",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/3401"
} | {
"list": [
{
"filename": "src/packet.cs",
"retrieved_chunk": " public enum Type\n {\n ACK = 1,\n HANDSHAKE_REQ,\n HANDSHAKE_RES,\n PUBLIC_KEY,\n AES_KEY,\n BYTES,\n ... | Common.Network.Connection _serverConnection; |
{
"list": [
{
"filename": "Ultrapain/Plugin.cs",
"retrieved_chunk": " harmonyTweaks.Patch(GetMethod<Explosion>(\"Collide\"), prefix: GetHarmonyMethod(GetMethod<Explosion_Collide>(\"Prefix\")));\n harmonyTweaks.Patch(GetMethod<Coin>(\"DelayedReflectRevolver\"), postfix: Ge... | 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 static OrbitalStrikeFlag orbitalBeamFlag = null;
static bool Prefix(RevolverBeam __instance)
{
OrbitalStrikeFlag flag = __instance.GetComponent<OrbitalStrikeFlag>();
if (flag != null && flag.isOrbitalRay)
{
isOrbitalRay = true;
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 174,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 175,
"task_id": "project_cc_csharp/3264"
} | {
"list": [
{
"filename": "Ultrapain/Plugin.cs",
"retrieved_chunk": " }\n if(ConfigManager.chargedRevRegSpeedMulti.value != 1)\n harmonyTweaks.Patch(GetMethod<Revolver>(\"Update\"), prefix: GetHarmonyMethod(GetMethod<Revolver_Update>(\"Prefix\")));\n if(... | RevolverBeam orbitalBeam = null; |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.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 SearchWebCommand : Command\n {\... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class GoalReachedCommand : Command
{
public override string |
public override string Description => "Command that you must call when you reach the main goal";
public override string Format => "goal-reached";
public override async Task<string> Execute(Master caller, string[] args)
{
caller.Done = true;
return "done.";
... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/GoalReachedCommand.cs",
"groundtruth_start_lineno": 10,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/3455"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": " public override string Description => \"Searches the web and returns a list of links and descriptions\";\n public override string Format => \"search-web | querry\";\n public override async ... | Name => "goal-reached"; |
{
"list": [
{
"filename": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataDictionary.cs",
"retrieved_chunk": " return (DataDictionary<TKey, TValue>)(object)new DataDictionary();\n }\n }\n}",
"score": 123.60813706752685
},
{
"filename": "Packages/net.ko... | using VRC.SDK3.Data;
using Koyashiro.GenericDataContainer.Internal;
namespace Koyashiro.GenericDataContainer
{
public static class DataDictionaryExt
{
public static int Count<TKey, TValue>(this DataDictionary<TKey, TValue> dictionary)
{
var dataDictionary = (DataDictionary)(object)(... |
var dataDictionary = (DataDictionary)(object)(dictionary);
return (DataList<TKey>)(object)dataDictionary.GetKeys();
}
public static DataList<TValue> GetValues<TKey, TValue>(this DataDictionary<TKey, TValue> dictionary)
{
var dataDictionary = (DataDictionary)... | {
"context_start_lineno": 0,
"file": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataDictionaryExt.cs",
"groundtruth_start_lineno": 47,
"repository": "koyashiro-generic-data-container-1aef372",
"right_context_start_lineno": 49,
"task_id": "project_cc_csharp/3405"
} | {
"list": [
{
"filename": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataDictionary.cs",
"retrieved_chunk": " return (DataDictionary<TKey, TValue>)(object)new DataDictionary();\n }\n }\n}",
"score": 92.40207429955068
},
{
"filename": "Packages/net.koy... | DataList<TKey> GetKeys<TKey, TValue>(this DataDictionary<TKey, TValue> dictionary)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Emotion/LoopEmotionAnimator.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nusing System.Collections.Generic;\nusing System.Threading;\nusing Cysharp.Threading.Tasks;\nnamespace Mochineko.FacialExpressions.Emotion\n{\n /// <sum... | #nullable enable
using System;
using System.Collections.Generic;
using System.Threading;
using Cysharp.Threading.Tasks;
namespace Mochineko.FacialExpressions.Blink
{
/// <summary>
/// Loops animation of eyelid for any <see cref="ISequentialEyelidAnimator"/>.
/// </summary>
public sealed class LoopEyeli... |
private readonly IEnumerable<EyelidAnimationFrame> frames;
private readonly CancellationTokenSource cancellationTokenSource = new();
/// <summary>
/// Creates a new instance of <see cref="LoopEyelidAnimator"/>.
/// </summary>
/// <param name="animator">Target animator.<... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/Blink/LoopEyelidAnimator.cs",
"groundtruth_start_lineno": 13,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/3307"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Emotion/LoopEmotionAnimator.cs",
"retrieved_chunk": " public sealed class LoopEmotionAnimator<TEmotion>\n : IDisposable\n where TEmotion : Enum\n {\n private readonly ISequentialEmotionAnimator<TEmotion> animator;... | ISequentialEyelidAnimator animator; |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMLipMorpher.cs",
"retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nusing Mochineko.FacialExpressions.LipSync;\nusing UniVRM10;\nnamespace Mochineko.FacialExpressions.Extensions.VRM\n{\n /// <summar... | #nullable enable
using System;
using System.Collections.Generic;
using Mochineko.FacialExpressions.Emotion;
using UniVRM10;
namespace Mochineko.FacialExpressions.Samples
{
/// <summary>
/// A sample of emotion morpher for VRM models.
/// </summary>
// ReSharper disable once InconsistentNaming
publi... |
private readonly Vrm10RuntimeExpression expression;
private readonly IReadOnlyDictionary<TEmotion, ExpressionKey> keyMap;
/// <summary>
/// Creates a new instance of <see cref="VRMEmotionMorpher"/>.
/// </summary>
/// <param name="expression">Target expression of VRM in... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEmotionMorpher.cs",
"groundtruth_start_lineno": 13,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/3324"
} | {
"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... | IEmotionMorpher<TEmotion>
where TEmotion: Enum
{ |
{
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoThumbnail.cs",
"retrieved_chunk": "#nullable enable\nusing Newtonsoft.Json;\nnamespace Mochineko.YouTubeLiveStreamingClient.Responses\n{\n [JsonObject]\n public sealed class VideoThumbnail\n {\n [Json... | #nullable enable
using Newtonsoft.Json;
namespace Mochineko.YouTubeLiveStreamingClient.Responses
{
[JsonObject]
public sealed class VideoThumbnails
{
[JsonProperty("default"), JsonRequired]
public VideoThumbnail Default { get; private set; } = new();
[JsonProperty("medium"), JsonRe... | get; private set; }
}
} | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoThumbnails.cs",
"groundtruth_start_lineno": 21,
"repository": "mochi-neko-youtube-live-streaming-client-unity-b712d77",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/3402"
} | {
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoThumbnail.cs",
"retrieved_chunk": " public uint Width { get; private set; }\n [JsonProperty(\"height\"), JsonRequired]\n public uint Height { get; private set; }\n }\n}",
"score": 35.416... | VideoThumbnail? Maxres { |
{
"list": [
{
"filename": "OfficialAccount/OAuthAPI.cs",
"retrieved_chunk": " }\n #endregion\n #region 检验授权凭证(access_token)是否有效\n /// <summary>\n /// 检验授权凭证(access_token)是否有效\n /// </summary>\n /// <param name=\"accessToken\">网页授权接口调用凭证,注意:此access_token... | using FayElf.Plugins.WeChat.OfficialAccount.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using XiaoFeng.Http;
using System.Text;
using System.Threading.Tasks;
using XiaoFeng;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Re... |
var result = HttpHelper.GetHtml(new HttpRequest
{
Method = HttpMethod.Post,
Address = $"https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={accessToken}",
BodyData = $@"{{{(qrcodeType == QrcodeType.QR_STR_SCENE ? ($@"""expire_seconds"":{... | {
"context_start_lineno": 0,
"file": "OfficialAccount/QRCode.cs",
"groundtruth_start_lineno": 48,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 50,
"task_id": "project_cc_csharp/3347"
} | {
"list": [
{
"filename": "OfficialAccount/OAuthAPI.cs",
"retrieved_chunk": " {\n var result = HttpHelper.GetHtml(new HttpRequest\n {\n Method = HttpMethod.Get,\n Address = $\" https://api.weixin.qq.com/sns/auth?access_token={accessToken}&open... | QRCodeResult CreateParameterQRCode(string accessToken, QrcodeType qrcodeType, int scene_id, int seconds = 60)
{ |
{
"list": [
{
"filename": "Assets/TimelineExtension/Editor/CustomActivationTrackEditor/CustomActivationTrackCustomEditor.cs",
"retrieved_chunk": "using UnityEditor.Timeline;\nusing UnityEngine;\nusing UnityEngine.Timeline;\nnamespace dev.kemomimi.TimelineExtension.CustomActivationTrack.Editor\n{\n ... | using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Timeline;
using UnityEngine;
using UnityEngine.Timeline;
namespace dev.kemomimi.TimelineExtension.AbstractValueControlTrack.Editor
{
internal static class AbstractColorValueControlTrackEditorUtility
{
internal static Color PrimaryCo... |
public override TrackDrawOptions GetTrackOptions(TrackAsset track, Object binding)
{
track.name = "CustomTrack";
var options = base.GetTrackOptions(track, binding);
options.trackColor = AbstractColorValueControlTrackEditorUtility.PrimaryColor;
... | {
"context_start_lineno": 0,
"file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractColorValueControlTrackCustomEditor.cs",
"groundtruth_start_lineno": 13,
"repository": "nmxi-Unity_AbstractTimelineExtention-b518049",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/... | {
"list": [
{
"filename": "Assets/TimelineExtension/Editor/CustomActivationTrackEditor/CustomActivationTrackCustomEditor.cs",
"retrieved_chunk": " public class CustomActivationTrackCustomEditor : TrackEditor\n {\n public override TrackDrawOptions GetTrackOptions(TrackAsset track, Object b... | AbstractColorValueControlTrack))]
public class AbstractColorValueControlTrackCustomEditor : TrackEditor
{ |
{
"list": [
{
"filename": "source/Models/GameCacheEntry.cs",
"retrieved_chunk": " private long installFiles;\n private long installSize;\n private long cacheSizeOnDisk;\n public long InstallFiles => installFiles;\n public long InstallSize => installSize;\n pub... | using NowPlaying.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
namespace NowPlaying.ViewModels
{
public class TopPanelViewModel : ViewModelBase
{
public enum Mode { Processing, Enable, Uninstall, Install, SlowInstall };
private readonly NowPlaying plugin;
... |
nowInstallingCache = gameCache;
queuedInstallEta -= gameCache.InstallEtaTimeSpan;
isSlowInstall = isSpeedLimited;
plugin.cacheManager.gameCacheManager.eJobStatsUpdated += OnJobStatsUpdated;
UpdateStatus();
}
public void InstallQueuePaused()
... | {
"context_start_lineno": 0,
"file": "source/ViewModels/TopPanelViewModel.cs",
"groundtruth_start_lineno": 211,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 213,
"task_id": "project_cc_csharp/3276"
} | {
"list": [
{
"filename": "source/Models/GameCacheEntry.cs",
"retrieved_chunk": " }\n /// <summary>\n /// Constructs a new Game Cache specification entry and reads the installation folder to\n /// get cacheInstalledSize statistics. System.IO will throw exceptions for cases ... | GameCacheViewModel gameCache, bool isSpeedLimited = false)
{ |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/JXLExtractedData/JXLWorksheetData.cs",
"retrieved_chunk": "using System.Collections.Generic;\nnamespace JdeJabali.JXLDataTableExtractor.JXLExtractedData\n{\n public class JXLWorksheetData\n {\n public string WorksheetName { get; ... | using JdeJabali.JXLDataTableExtractor.JXLExtractedData;
using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
namespace JdeJabali.JXLDataTableExtractor.DataExtraction
{
internal class DataReader
{
public List<string> Workbooks { get;... |
List<JXLWorkbookData> data = GetWorkbooksData();
List<JXLExtractedRow> extractedRows = data
.SelectMany(workbookData => workbookData.WorksheetsData
.SelectMany(worksheetData => worksheetData.Rows))
.ToList();
return extractedRows;
... | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataExtraction/DataReader.cs",
"groundtruth_start_lineno": 79,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 81,
"task_id": "project_cc_csharp/3476"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/Helpers/ConditionalsToExtractRow.cs",
"retrieved_chunk": " {\n return false;\n }\n _ = decimal.TryParse(value, out decimal result);\n return result > 0;\n }\n }\n}",
"s... | JXLExtractedRow> GetJXLExtractedRows()
{ |
{
"list": [
{
"filename": "Assets/Scripts/ScrollViewContentInitializer.cs",
"retrieved_chunk": "using ECS.ComponentsAndTags;\nusing UnityEngine;\n/// <summary>\n/// This class generates TeamButtons for ScrollViews \n/// </summary>\npublic class ScrollViewContentInitializer : MonoBehaviour\n{\n [Ser... | using System;
using System.Collections.Generic;
using ECS.ComponentsAndTags;
using UnityEngine;
/// <summary>
/// A struct to give better inputs on inspector
/// </summary>
[Serializable]
public struct TeamSpawnTransformsData
{
public Team team;
public Transform[] spawnTransforms;
}
/// <summary>
/// This Manager b... | get; private set; }
public static Dictionary<Team, List<TeamData>> TeamsData { get; private set; }
/// <summary>
/// Clear static values on destroy
/// </summary>
private void OnDestroy()
{
TeamsSpawnPoints = null;
TeamsData = null;
}
private void Awake()
{
Init();
}
private void Init()... | {
"context_start_lineno": 0,
"file": "Assets/Scripts/DataManager.cs",
"groundtruth_start_lineno": 23,
"repository": "aknkrstozkn-BattleSimulator-DOTS-48e9e68",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/3437"
} | {
"list": [
{
"filename": "Assets/Scripts/TeamData.cs",
"retrieved_chunk": "\t[SerializeField] private Team team;\n\t[SerializeField] private UnitSlotData[] unitsSlotsData;\n\tpublic string TeamName => teamName;\n\tpublic Team Team => team;\n\tpublic Dictionary<int, UnitData> GetSlotIndexUnitDic()\n\t... | Team, Vector3[]> TeamsSpawnPoints { |
{
"list": [
{
"filename": "src/LegendaryDownloadManager.xaml.cs",
"retrieved_chunk": " break;\n default:\n break;\n }\n }\n }\n catch (OperationCanceledException)\n ... | using CliWrap;
using CliWrap.Buffered;
using CliWrap.EventStream;
using LegendaryLibraryNS.Models;
using Playnite.Common;
using Playnite.SDK;
using Playnite.SDK.Data;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
us... |
using (var httpClient = new HttpClient())
{
httpClient.DefaultRequestHeaders.Clear();
httpClient.DefaultRequestHeaders.Add("Authorization", tokens.token_type + " " + tokens.access_token);
var response = await httpClient.GetAsync(url);
... | {
"context_start_lineno": 0,
"file": "src/Services/EpicAccountClient.cs",
"groundtruth_start_lineno": 258,
"repository": "hawkeye116477-playnite-legendary-plugin-d7af6b2",
"right_context_start_lineno": 260,
"task_id": "project_cc_csharp/3399"
} | {
"list": [
{
"filename": "src/LegendaryDownloadManager.xaml.cs",
"retrieved_chunk": " }\n private void PauseBtn_Click(object sender, RoutedEventArgs e)\n {\n if (DownloadsDG.SelectedIndex != -1)\n {\n foreach (var selectedRow in DownloadsDG.Se... | OauthResponse tokens) where T : class
{ |
{
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/BlockadeLabsBaseEndpoint.cs",
"retrieved_chunk": "// Licensed under the MIT License. See LICENSE in the project root for license information.\nusing Utilities.WebRequestRest;\nnamespace BlockadeLabs\n{\n public abstract ... | // Licensed under the MIT License. See LICENSE in the project root for license information.
using BlockadeLabs.Skyboxes;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Security.Authentication;
using Utilities.WebRequestRest;
namespace BlockadeLabs
{
public sealed class BlockadeLabsClient : ... |
JsonSerializationOptions = new JsonSerializerSettings
{
DefaultValueHandling = DefaultValueHandling.Ignore
};
SkyboxEndpoint = new SkyboxEndpoint(this);
}
protected override void ValidateAuthentication()
{
if (!HasVal... | {
"context_start_lineno": 0,
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/BlockadeLabsClient.cs",
"groundtruth_start_lineno": 12,
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/3443"
} | {
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxInfo.cs",
"retrieved_chunk": "{\n public sealed class SkyboxInfo\n {\n [JsonConstructor]\n public SkyboxInfo(\n [JsonProperty(\"id\")] int id,\n [JsonProperty(\"skybo... | BlockadeLabsAuthentication authentication = null, BlockadeLabsSettings settings = null)
: base(authentication ?? BlockadeLabsAuthentication.Default, settings ?? BlockadeLabsSettings.Default)
{ |
{
"list": [
{
"filename": "src/Program.cs",
"retrieved_chunk": " AnsiConsole.WriteLine(installedVersion);\n return 0;\n}\nAnsiConsole.Markup($\"[green]{Constants.Header}[/]\\n\");\nAnsiConsole.Markup($\"[green]=> Version: {VersionHelper.GetVersion()}[/]\\n\");\nif (args.Contains(\"--ignore-updat... | using Beeching.Commands.Interfaces;
using Beeching.Helpers;
using Beeching.Models;
using Newtonsoft.Json;
using Polly;
using Spectre.Console;
using System.Net.Http.Headers;
using System.Text;
namespace Beeching.Commands
{
internal class Axe : IAxe
{
private readonly HttpClient _client;
public ... |
AxeStatus axeStatus = new();
foreach (var resource in axeUriList)
{
bool skipAxe = false;
if (resource.IsLocked && settings.Force)
{
foreach (var resourceLock in resource.ResourceLocks)
{
... | {
"context_start_lineno": 0,
"file": "src/Commands/Axe.cs",
"groundtruth_start_lineno": 220,
"repository": "irarainey-beeching-e846af0",
"right_context_start_lineno": 222,
"task_id": "project_cc_csharp/3477"
} | {
"list": [
{
"filename": "src/Program.cs",
"retrieved_chunk": " if (VersionHelper.IsUpdateAvailable(installedVersion, latestVersion))\n {\n AnsiConsole.Markup(\n $\"[cyan]=> An update is available {latestVersion}. Update using: dotnet tool update -g {Constants.... | AxeSettings settings, List<Resource> axeUriList)
{ |
{
"list": [
{
"filename": "VeilsClaim/Classes/Objects/GameObject.cs",
"retrieved_chunk": "using Microsoft.Xna.Framework;\nusing Microsoft.Xna.Framework.Graphics;\nusing System;\nusing System.Collections.Generic;\nusing VeilsClaim.Classes.Utilities;\nnamespace VeilsClaim.Classes.Objects\n{\n public... | using Microsoft.Xna.Framework.Graphics;
namespace VeilsClaim.Classes.Objects
{
public abstract class Constraint
{
public bool Visible;
public GameObject Anchor;
public abstract void Update(GameObject connected, float delta);
public virtual void Draw(SpriteBatch spriteBatch, |
if (!Visible) return;
}
}
} | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Constraint.cs",
"groundtruth_start_lineno": 10,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/3426"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Objects/GameObject.cs",
"retrieved_chunk": " {\n Position = new Vector2(copy.Position.X, copy.Position.Y);\n Velocity = new Vector2(copy.Velocity.X, copy.Velocity.Y);\n Acceloration = new Vector2(copy.Acceloration.X,... | GameObject connected)
{ |
{
"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 |
public override string Format => "remove-note | number of the note to remove";
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 num... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/RemoveNoteCommand.cs",
"groundtruth_start_lineno": 12,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3483"
} | {
"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... | Description => "Removes a note from the list"; |
{
"list": [
{
"filename": "source/NowPlaying.cs",
"retrieved_chunk": " }\n }\n public bool CacheHasInstallerQueued(string cacheId)\n {\n return cacheInstallQueue.Where(c => c.gameCache.Id == cacheId).Count() > 0;\n }\n public bool CacheHasUninst... | 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;... |
if (gameCache.IsUninstalled() && gameCache.cacheRoot != newCacheRoot)
{
var oldCacheRoot = gameCache.cacheRoot;
gameCacheManager.ChangeGameCacheRoot(gameCache.Id, newCacheRoot.Directory);
gameCache.cacheRoot = newCacheRoot;
gameCac... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheManagerViewModel.cs",
"groundtruth_start_lineno": 469,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 471,
"task_id": "project_cc_csharp/3328"
} | {
"list": [
{
"filename": "source/NowPlaying.cs",
"retrieved_chunk": " gameCache.entry.CacheSize = gameCache.entry.CacheSizeOnDisk;\n gameCache.UpdateCacheSize();\n return true;\n }\n else\n {\n ... | CacheRootViewModel newCacheRoot)
{ |
{
"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/3423"
} | {
"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... | IState<TEvent, TContext>> ITransitionMap<TEvent, TContext>.AllowedToTransit(
IState<TEvent, TContext> currentState,
TEvent @event)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Ferryman.cs",
"retrieved_chunk": "using HarmonyLib;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\nusing UnityEngine;\nusing UnityEngine.AI;\nnamespace Ultrapain.Patches\n{\n class FerrymanFlag : MonoBehaviour\n {",... | using HarmonyLib;
using Sandbox;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.AI;
namespace Ultrapain.Patches
{
class MinosPrimeCharge
{
static |
public static void CreateDecoy()
{
if (decoy != null || Plugin.minosPrime == null)
return;
decoy = GameObject.Instantiate(Plugin.minosPrime, Vector3.zero, Quaternion.identity);
decoy.SetActive(false);
GameObject.Destroy(decoy.GetCompone... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/MinosPrime.cs",
"groundtruth_start_lineno": 12,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3312"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Ferryman.cs",
"retrieved_chunk": " private int currentCombo = 0;\n public List<int> randomComboPattern = new List<int>();\n public int remainingCombo = ConfigManager.ferrymanComboCount.value;\n void Start()\n {\n ... | GameObject decoy; |
{
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " {\n public bool state = false;\n public string id;\n public int points;\n public GameObject templateExplosion;\n }\n static bool Prefix(Grenade __instan... | 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 (__instance.rocket)
{
bool rocketParried = flag != null;
bool rocketHitGround = __1;
flag.temporar... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Parry.cs",
"groundtruth_start_lineno": 74,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 76,
"task_id": "project_cc_csharp/3335"
} | {
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " {\n if (___eid.health <= 0)\n return true;\n MinosPrimeFlag flag = __instance.GetComponent<MinosPrimeFlag>();\n if (flag == null)\n return true;\n ... | Grenade __instance, ref bool __2, ref bool __1, ref bool ___exploded)
{ |
{
"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 Sprite greenRevolverSprite;
public static Sprite redRevolverSprite;
public static Sprite blueShotgunSprite;
public static Sprite greenShotgunSprite;
public static Sprite blueNailgunSprite;
public static Sprite greenNailgunSprite;
public static Sprit... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 110,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 111,
"task_id": "project_cc_csharp/3334"
} | {
"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 ... | Sprite blueRevolverSprite; |
{
"list": [
{
"filename": "src/RedisCache.Demo/WeatherForecast.cs",
"retrieved_chunk": "using System.Text.Json.Serialization;\nnamespace RedisCacheDemo\n{\n public class WeatherForecast\n {\n public int Id { get; set; } = DateTime.Now.GetHashCode();\n public DateTime Date { get; se... | using Microsoft.AspNetCore.Mvc;
using RedisCache;
namespace RedisCacheDemo.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "C... |
var cacheData = GetKeyValues();
cacheData[WeatherForecast.Id] = WeatherForecast;
await Save(cacheData.Values).ConfigureAwait(false);
}
[HttpDelete("deleteWeatherForecast")]
public async Task Delete(int id)
{
var cacheData = GetKeyValues()... | {
"context_start_lineno": 0,
"file": "src/RedisCache.Demo/Controllers/WeatherForecastController.cs",
"groundtruth_start_lineno": 75,
"repository": "bezzad-RedisCache.NetDemo-655b311",
"right_context_start_lineno": 77,
"task_id": "project_cc_csharp/3513"
} | {
"list": [
{
"filename": "src/RedisCache.Benchmark/EasyHybridCache.cs",
"retrieved_chunk": " _provider.Set(key, value, expiration);\n }\n public async Task SetAsync<T>(string key, T value, TimeSpan expiration)\n {\n await _provider.SetAsync(key, value, expir... | WeatherForecast WeatherForecast)
{ |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilderGenerator.cs",
"retrieved_chunk": " public virtual object CreateEntityModelBuilder(Type entityType)\n {\n var entityModelBuilderType = typeof(EntityModelBuilder<>).MakeG... | using Microsoft.Extensions.Caching.Memory;
using Ryan.EntityFrameworkCore.Infrastructure;
using System;
namespace Ryan.EntityFrameworkCore.Builder
{
/// <inheritdoc cref="IEntityImplementationDictionaryGenerator" />
public class EntityImplementationDictionaryGenerator : IEntityImplementationDictionaryGenerator... |
return (MemoryCache.GetOrCreate(entityType, (entry) =>
{
return entry.SetSize(1).SetValue(
new EntityImplementationDictionary(entityType)
).Value;
}) as EntityImplementationDictionary)!;
}
}
}
| {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityImplementationDictionaryGenerator.cs",
"groundtruth_start_lineno": 21,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/3428... | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilderAccessorGenerator.cs",
"retrieved_chunk": " /// <summary>\n /// 创建实体模型构建访问器\n /// </summary>\n public EntityModelBuilderAccessorGenerator(\n IEntityModelBu... | EntityImplementationDictionary Create(Type entityType)
{ |
{
"list": [
{
"filename": "OfficialAccount/Model/IndustryTemplateSendData.cs",
"retrieved_chunk": " [Description(\"模板跳转链接(海外帐号没有跳转能力)\"), JsonElement(\"url\"), OmitEmptyNode]\n public string Url { get; set; }\n /// <summary>\n /// 跳小程序所需数据,不需跳小程序可不用传该数据\n /// </summa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiaoFeng;
using XiaoFeng.Json;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Reserved. *
* Author : jacky ... | get; set; }
/// <summary>
/// 按扭名称
/// </summary>
[JsonElement("name")]
public string Name { get; set; }
/// <summary>
/// key
/// </summary>
[JsonElement("key"), OmitEmptyNode]
public string Key { get; set; }
/// <summary>
... | {
"context_start_lineno": 0,
"file": "OfficialAccount/Model/ButtonModel.cs",
"groundtruth_start_lineno": 39,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 40,
"task_id": "project_cc_csharp/3407"
} | {
"list": [
{
"filename": "OfficialAccount/Model/IndustryTemplateSendData.cs",
"retrieved_chunk": " [Description(\"模板数据\"), JsonElement(\"data\")] \n public Dictionary<string, ValueColor> Data { get; set; }\n #endregion\n #region 方法\n #endregion\n }\n /// <summ... | ButtonType? Type { |
{
"list": [
{
"filename": "Core/FileSystemManager.cs",
"retrieved_chunk": " }\n public static string GetApplicationFolder()\n {\n return AppDomain.CurrentDomain.BaseDirectory;\n }\n public static string GetApplicationDeviceFolder()\n {\n ... | using System;
using System.Collections.ObjectModel;
using System.IO;
using System.IO.Compression;
using System.Linq;
namespace SupernoteDesktopClient.Core
{
public static class ArchiveManager
{
public static void Archive(string backupFolder, string archiveFolder, int maxArchivesToKeep)
{
... |
ObservableCollection<Models.ArchiveFileAttributes> archiveFiles = new ObservableCollection<Models.ArchiveFileAttributes>();
if (String.IsNullOrWhiteSpace(archiveFolder) == false && Directory.Exists(archiveFolder) == true)
{
var directory = new DirectoryInfo(archiveF... | {
"context_start_lineno": 0,
"file": "Core/ArchiveManager.cs",
"groundtruth_start_lineno": 19,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 21,
"task_id": "project_cc_csharp/3390"
} | {
"list": [
{
"filename": "Core/FileSystemManager.cs",
"retrieved_chunk": " {\n DateTime? returnResult = null;\n if (String.IsNullOrWhiteSpace(folder) == false && Directory.Exists(folder) == true)\n returnResult = Directory.GetCreationTime(folder);\n ... | ArchiveFileAttributes> GetArchivesList(string archiveFolder)
{ |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/ContribuyenteService.cs",
"retrieved_chunk": " }\n )\n }\n )!;\n return await msg.Content.ReadAsStringAsync();\n }\n public async Task<IContribuye... | using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Net;
using System.Net.Http.Headers;
using System.Net.Mime;
using System.Text;
using System.Web;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Schema;
using LibreDteDotNet.Common;
using LibreDteDotNet.Common.Mode... |
HttpStatCode = await repositoryWeb.Conectar(url);
return this;
}
private void ValidationEventHandler(object sender, ValidationEventArgs e)
{
if (e.Severity == XmlSeverityType.Warning)
{
MensajeWarning!.Add(e.Message);
... | {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Services/DTEService.cs",
"groundtruth_start_lineno": 186,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 188,
"task_id": "project_cc_csharp/3420"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/FolioCafService.cs",
"retrieved_chunk": " InputsText.GetValueOrDefault(\"NOMUSU\")!\n ),\n new KeyValuePair<string, string>(\n ... | IDTE> SetCookieCertificado(string url)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/KoeiromapAPI.Samples/KoeiromapAPISample.cs",
"retrieved_chunk": "using UnityEngine.Assertions;\nnamespace Mochineko.KoeiromapAPI.Samples\n{\n internal sealed class KoeiromapAPISample : MonoBehaviour\n {\n [SerializeField, Range(-3f, 3f)] private... | #nullable enable
using System;
using System.IO;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.ChatGPT_API;
using Mochineko.FacialExpressions.Blink;
using Mochineko.FacialExpressions.Emotion;
using Mochineko.FacialExpressions.Extensions.VRM;
using Mochineko.FacialExpressions.LipSync;
using Mochi... |
private ChatCompletion? stateCompletion;
private VoiceVoxSpeechSynthesis? speechSynthesis;
private IFiniteStateMachine<AgentEvent, AgentContext>? agentStateMachine;
private async void Start()
{
await SetupAgentAsync(this.GetCancellationTokenOnDestroy());
}
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/DemoOperator.cs",
"groundtruth_start_lineno": 42,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 43,
"task_id": "project_cc_csharp/3389"
} | {
"list": [
{
"filename": "Assets/Mochineko/KoeiromapAPI.Samples/KoeiromapAPISample.cs",
"retrieved_chunk": " [SerializeField] private Style style;\n [SerializeField] private AudioSource? audioSource;\n private static readonly HttpClient HttpClient = new();\n private IPolic... | ChatCompletion? chatCompletion; |
{
"list": [
{
"filename": "source/NowPlayingUninstallController.cs",
"retrieved_chunk": "{\n public class NowPlayingUninstallController : UninstallController\n {\n private readonly ILogger logger = NowPlaying.logger;\n private readonly NowPlaying plugin;\n private readonly N... | using NowPlaying.Utils;
using NowPlaying.Models;
using NowPlaying.ViewModels;
using NowPlaying.Views;
using Playnite.SDK;
using Playnite.SDK.Models;
using Playnite.SDK.Plugins;
using System.Linq;
using System.Threading.Tasks;
using System;
using System.Threading;
namespace NowPlaying
{
public class NowPlayingInsta... |
private Action onPausedAction;
public int speedLimitIpg;
private bool deleteCacheOnJobCancelled { get; set; } = false;
private bool pauseOnPlayniteExit { get; set; } = false;
public NowPlayingInstallController(NowPlaying plugin, Game nowPlayingGame, GameCacheViewModel gameCach... | {
"context_start_lineno": 0,
"file": "source/NowPlayingInstallController.cs",
"groundtruth_start_lineno": 26,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/3351"
} | {
"list": [
{
"filename": "source/NowPlayingUninstallController.cs",
"retrieved_chunk": " private readonly string installDir;\n public readonly GameCacheViewModel gameCache;\n public NowPlayingUninstallController(NowPlaying plugin, Game nowPlayingGame, GameCacheViewModel gameCache... | InstallProgressView progressView; |
{
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " {\n if (UnityEngine.Random.Range(0, 99.9f) > ConfigManager.minosPrimeCrushAttackChance.value)\n return true;\n ___previouslyRiderKicked = true;\n Vector3 vector = Mo... | 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 homingProjectile;
public static GameObject hideousMassProjectile;
public static GameObject decorativeProjectile2;
public static GameObject shotgunGrenade;
public static GameObject beam;
public static GameObject turretBeam;
public static G... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 63,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 64,
"task_id": "project_cc_csharp/3366"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Leviathan.cs",
"retrieved_chunk": " }\n else */if (Physics.Raycast(player.transform.position, targetShootPoint - player.transform.position, out raycastHit, Vector3.Distance(targetShootPoint, player.transform.position), LayerMaskDefault... | GameObject projectileSpread; |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/DTEService.cs",
"retrieved_chunk": " HttpMethod.Get,\n $\"{Properties.Resources.UrlEstadoDte}?{query}\"\n )\n )!;\n Dispose();\n return await msg.Content... | using System.Net;
using LibreDteDotNet.Common;
using LibreDteDotNet.RestRequest.Infraestructure;
using LibreDteDotNet.RestRequest.Interfaces;
using Microsoft.Extensions.Configuration;
namespace LibreDteDotNet.RestRequest.Services
{
internal class BoletaService : ComunEnum, IBoleta
{
private readonly ... |
HttpStatCode = await repositoryWeb.Conectar(Properties.Resources.UrlBasePalena);
return this;
}
}
}
| {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Services/BoletaService.cs",
"groundtruth_start_lineno": 63,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 65,
"task_id": "project_cc_csharp/3434"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/FolioCafService.cs",
"retrieved_chunk": " string rut,\n string dv,\n string cant,\n string dia,\n string mes,\n string year,\n string folioini,\n strin... | IBoleta> SetCookieCertificado()
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/FiniteStateMachine.cs",
"retrieved_chunk": " return instance;;\n default:\n throw new ArgumentOutOfRangeException(nameof(enterResult));\n }\n }\n private FiniteS... | #nullable enable
using System;
using System.Collections.Generic;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.Relent.Result;
namespace Mochineko.RelentStateMachine
{
public sealed class StackStateMachine<TContext>
: IStackStateMachine<TContext>
{
private readonly IStat... |
this.stateStore = stateStore;
this.Context = context;
this.stack.Push(this.stateStore.InitialState);
this.semaphoreTimeout =
semaphoreTimeout
?? TimeSpan.FromSeconds(DefaultSemaphoreTimeoutSeconds);
}
public void Dispose(... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/StackStateMachine.cs",
"groundtruth_start_lineno": 45,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 49,
"task_id": "project_cc_csharp/3469"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/FiniteStateMachine.cs",
"retrieved_chunk": " return instance;;\n default:\n throw new ArgumentOutOfRangeException(nameof(enterResult));\n }\n }\n private FiniteS... | IStateStore<TContext> stateStore,
TContext context,
TimeSpan? semaphoreTimeout = null)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " List<CodeInstruction> code = new List<CodeInstruction>(instructions);\n for (int i = 0; i < code.Count; i++)\n {\n if (code[i].opcode == OpCodes.Ldfld && (FieldInfo)c... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Reflection.Emit;
using System.Text;
using UnityEngine;
namespace Ultrapain
{
public static class ILUtils
{
public static string TurnInstToString(CodeInstruction inst)
{
return $"{inst.opcode}{(inst.operan... |
if (index + seq.Count > code.Count)
return false;
for (int i = 0; i < seq.Count; i++)
{
if (seq[i].opcode != code[i + index].opcode)
return false;
else if (code[i + index].operand != null && !code[i + index].Operan... | {
"context_start_lineno": 0,
"file": "Ultrapain/ILUtils.cs",
"groundtruth_start_lineno": 179,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 181,
"task_id": "project_cc_csharp/3377"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " }\n else if (code[i].opcode == OpCodes.Ldarg_1)\n {\n i += 2;\n if (i < code.Count && code[i].opcode == OpCodes.Ldc_R4 && (Single)c... | CodeInstruction> seq)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Screwdriver.cs",
"retrieved_chunk": " {\n public Harpoon drill;\n public Rigidbody rb;\n public List<Tuple<EnemyIdentifier, float>> targetEids = new List<Tuple<EnemyIdentifier, float>>();\n public List<EnemyIdentifier> pierced... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
/*public class ObjectActivator : MonoBehaviour
{
public int originalInstanceID = 0;
public MonoBehaviour activator;
void Start()
{
i... |
void Awake()
{
if (originalId == gameObject.GetInstanceID())
return;
if (rend != null)
rend.enabled = true;
if (rb != null)
{
rb.isKinematic = kinematic;
rb.detectCollisions = colDetect;
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/CommonComponents.cs",
"groundtruth_start_lineno": 68,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 69,
"task_id": "project_cc_csharp/3383"
} | {
"list": [
{
"filename": "Ultrapain/Patches/SisyphusInstructionist.cs",
"retrieved_chunk": " rb.isKinematic = true;\n AudioSource aud = _shockwave.GetComponent<AudioSource>();\n activator.aud = aud;\n aud.enabled = false;\n ... | MonoBehaviour> comps = new List<MonoBehaviour>(); |
{
"list": [
{
"filename": "EF012.CodeFirstMigration/Entities/Section.cs",
"retrieved_chunk": "namespace EF012.CodeFirstMigration.Entities\n{\n public class Section\n {\n public int Id { get; set; }\n public string SectionName { get; set; }\n public int CourseId { get; set; ... | using EF012.CodeFirstMigration.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
namespace EF012.CodeFirstMigration.Data
{
public class AppDbContext : DbContext
{
public DbSet<Course> Courses { get; set; }
public DbSet<Instructor> Instructors { get; set; }... | get; set; }
public DbSet<Student> Students { get; set; }
public DbSet<Enrollment> Enrollments { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
var config = new ConfigurationBuilder(... | {
"context_start_lineno": 0,
"file": "EF012.CodeFirstMigration/Data/AppDbContext.cs",
"groundtruth_start_lineno": 12,
"repository": "metigator-EF012-054d65d",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/3509"
} | {
"list": [
{
"filename": "EF012.CodeFirstMigration/Entities/Section.cs",
"retrieved_chunk": " public int ScheduleId { get; set; }\n public Schedule Schedule { get; set; }\n public TimeSlot TimeSlot { get; set; }\n public ICollection<Student> Students { get; set; } = new Li... | Schedule> Schedules { |
{
"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 readonly Dictionary<TEvent, IState<TEvent, TContext>>
anyTransitionMap = new();
private bool disposed = false;
public static TransitionMapBuilder<TEvent, TContext> Create<TInitialState>()
where TInitialState : IState<TEvent, TContext>, new()
{
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"groundtruth_start_lineno": 12,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/3478"
} | {
"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... | IState<TEvent, TContext>, Dictionary<TEvent, IState<TEvent, TContext>>>
transitionMap = new(); |
{
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Weapons/Weapon.cs",
"retrieved_chunk": " public int Capacity;\n public float FireRate;\n public float ReloadTime;\n public float MuzzleVelocity;\n /// <summary>\n /// Randomised projectile spread (in radian... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using VeilsClaim.Classes.Utilities;
namespace VeilsClaim.Classes.Objects
{
public abstract class GameObject
{
public GameObject(GameObject copy)
{
Position = new Ve... |
private Rectangle _hitbox;
public Rectangle Hitbox
{
get
{
return new Rectangle(
(int)(Position.X + _hitbox.X),
(int)(Position.Y + _hitbox.Y),
_hitbox.Width,
_hitbox.Height);... | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/GameObject.cs",
"groundtruth_start_lineno": 175,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 176,
"task_id": "project_cc_csharp/3470"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Weapons/Weapon.cs",
"retrieved_chunk": " public Point ShotCount;\n public FireMode FireMode;\n protected int barrelIndex;\n protected float lastFired;\n protected float lastReloaded;\n public virtual void F... | Polygon Polygon; |
{
"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;
using System.IO;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.ChatGPT_API;
using Mochineko.FacialExpressions.Blink;
using Mochineko.FacialExpressions.Emotion;
using Mochineko.FacialExpressions.Extensions.VRM;
using Mochineko.FacialExpressions.LipSync;
using Mochi... |
private IFiniteStateMachine<AgentEvent, AgentContext>? agentStateMachine;
private async void Start()
{
await SetupAgentAsync(this.GetCancellationTokenOnDestroy());
}
private async void Update()
{
if (agentStateMachine == null)
{
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/DemoOperator.cs",
"groundtruth_start_lineno": 44,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 45,
"task_id": "project_cc_csharp/3441"
} | {
"list": [
{
"filename": "Assets/Mochineko/KoeiromapAPI.Samples/KoeiromapAPISample.cs",
"retrieved_chunk": " [SerializeField] private Style style;\n [SerializeField] private AudioSource? audioSource;\n private static readonly HttpClient HttpClient = new();\n private IPolic... | VoiceVoxSpeechSynthesis? speechSynthesis; |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/DbContextEntityProxyLookup.cs",
"retrieved_chunk": " private readonly IDbContextEntityProxyGenerator _dbContextEntityProxyGenerator;\n public DbContextEntityProxyLookup(IDbContextEntityProxyGenerator ... | using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
using Ryan.EntityFrameworkCore.Infrastructure;
namespace Ryan.EntityFrameworkCore.Proxy
{
/// <inheritdoc cref="IDbContextEntityProxyLookupGenerator"/>
public class DbContextEntityProxyLookupGenerator : IDbContextEntityProxyLookupG... |
return (MemoryCache.GetOrCreate(dbContext.ContextId, (entry) =>
{
return entry.SetSize(1).SetValue(
new DbContextEntityProxyLookup(DbContextEntityProxyGenerator)
);
}).Value as DbContextEntityProxyLookup)!;
}
/// <... | {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/DbContextEntityProxyLookupGenerator.cs",
"groundtruth_start_lineno": 29,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 31,
"task_id": "project_cc_csharp/3468"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/DbContextEntityProxyLookup.cs",
"retrieved_chunk": " {\n foreach (var context in Values)\n {\n for (int i = context.EntityProxies.Count - 1; i >= 0; i--)\n ... | DbContextEntityProxyLookup Create(DbContext dbContext)
{ |
{
"list": [
{
"filename": "Services/GraphNotificationService.cs",
"retrieved_chunk": " {\n ExpirationDateTime = expirationTime\n };\n _logger.LogInformation(\"Getting GraphService with accesstoken for Graph onbehalf of user\");\n var graphUser... | using Microsoft.Extensions.Logging;
using GraphNotifications.Services;
using Microsoft.Azure.WebJobs.Extensions.SignalRService;
using Microsoft.AspNetCore.Http;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using GraphNotifications.Models;
using Microsoft.AspNetCore.SignalR;
using Micros... |
_logger.LogInformation($"Fetching subscription");
try
{
var graphSubscription = await _graphNotificationService.GetSubscriptionAsync(accessToken, subscription.SubscriptionId);
if (!graphSubscription.ExpirationDateTime.HasValue)
{
... | {
"context_start_lineno": 0,
"file": "Functions/GraphNotificationsHub.cs",
"groundtruth_start_lineno": 323,
"repository": "microsoft-GraphNotificationBroker-b1564aa",
"right_context_start_lineno": 325,
"task_id": "project_cc_csharp/3530"
} | {
"list": [
{
"filename": "Services/GraphNotificationService.cs",
"retrieved_chunk": " _logger.LogInformation(\"Getting GraphService with accesstoken for Graph onbehalf of user\");\n var graphUserClient = _graphClientService.GetUserGraphClient(userAccessToken);\n _logg... | SubscriptionRecord subscription)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " }\n }\n // aka JUDGEMENT\n class MinosPrime_Dropkick\n {\n static bool Prefix(MinosPrime __instance, EnemyIdentifier ___eid, ref bool ___inAction, Animator ___anim)\n {\n Minos... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
using ULTRAKILL.Cheats;
using UnityEngine;
namespace Ultrapain.Patches
{
class Leviathan_Flag : MonoBehaviour
{
private LeviathanHead comp;
private Animator anim;
//p... |
Leviathan_Flag flag = __instance.GetComponent<Leviathan_Flag>();
if (flag == null)
return true;
if (flag.projectileAttack)
{
if(flag.projectilesRemaining <= 0)
{
flag.projectilesRemaining = ConfigManager... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Leviathan.cs",
"groundtruth_start_lineno": 397,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 399,
"task_id": "project_cc_csharp/3421"
} | {
"list": [
{
"filename": "Ultrapain/Patches/MinosPrime.cs",
"retrieved_chunk": " if (!flag.throwingProjectile)\n {\n if (ConfigManager.minosPrimeExplosionToggle.value\n && UnityEngine.Random.Range(0, 99.9f) < ConfigManager.minosPrimeExplosionCha... | LeviathanHead __instance, Transform ___shootPoint)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Emotion/Emotion.cs",
"retrieved_chunk": " public float Sadness { get; }\n [JsonProperty(\"anger\"), JsonRequired]\n public float Anger { get; }\n [JsonProperty(\"fear\"), JsonRequired]\n public float Fear { get; }\... | #nullable enable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Mochineko.FacialExpressions.Blink;
using Mochineko.FacialExpressions.Emotion;
using Mochineko.FacialExpressions.LipSync;
using UnityEngine;
namespace Mochineko.LLMAgent.Operation
{
internal sealed class Agen... | get; } = new();
public AgentContext(
IEyelidAnimator eyelidAnimator,
IEnumerable<EyelidAnimationFrame> eyelidAnimationFrames,
ILipMorpher lipMorpher,
ILipAnimator lipAnimator,
AudioSource audioSource, ExclusiveFollowingEmotionAnimator<FacialExpressio... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/AgentContext.cs",
"groundtruth_start_lineno": 23,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/3449"
} | {
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Emotion/Emotion.cs",
"retrieved_chunk": " float happiness,\n float sadness,\n float anger,\n float fear,\n float surprise,\n float disgust)\n {\n Happiness = happine... | SpeechCommand> SpeechQueue { |
{
"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/3533"
} | {
"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... | SKConfig config,
IMemoryStore memoryStore, ILoggerFactory logger)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Leviathan.cs",
"retrieved_chunk": " public static float targetEndNormalized = 0.7344f;\n public static float targetStartNormalized = 0.41f;\n static bool Prefix(LeviathanTail __instance, Animator ___anim)\n {\n Leviath... | 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 static float lastCoinTime = 0;
static bool Prefix(Coin __instance, GameObject ___altBeam)
{
coinIsShooting = true;
shootingCoin = __instance;
lastCoinTime = Time.time;
shootingAltBeam = ___altBeam;
return true;
}
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 137,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 138,
"task_id": "project_cc_csharp/3424"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Leviathan.cs",
"retrieved_chunk": " flag.Invoke(\"SwingAgain\", Mathf.Max(0f, 5.3333f * (0.88f - targetEndNormalized) * (1f / ___anim.speed)));\n return false;\n }\n }\n}",
"score": 25.472563087030878
},
{
... | GameObject shootingAltBeam; |
{
"list": [
{
"filename": "src/Gum/InnerThoughts/Criterion.cs",
"retrieved_chunk": "using System.Text;\nusing System.Diagnostics;\nusing Gum.Utilities;\nnamespace Gum.InnerThoughts\n{\n [DebuggerDisplay(\"{DebuggerDisplay(),nq}\")]\n public readonly struct Criterion\n {\n public reado... | using System.Diagnostics;
using Gum.Utilities;
namespace Gum.InnerThoughts
{
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
public readonly struct CriterionNode
{
public readonly Criterion Criterion = new();
public readonly |
public CriterionNode() { }
public CriterionNode(Criterion criterion) =>
Criterion = criterion;
public CriterionNode(Criterion criterion, CriterionNodeKind kind) =>
(Criterion, Kind) = (criterion, kind);
public CriterionNode WithCriterion(Criterion criterion) ... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/CriterionNode.cs",
"groundtruth_start_lineno": 9,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/3487"
} | {
"list": [
{
"filename": "src/Gum/InnerThoughts/Criterion.cs",
"retrieved_chunk": " public readonly string? StrValue = null;\n public readonly int? IntValue = null;\n public readonly bool? BoolValue = null;\n public Criterion() { }\n /// <summary>\n /// Creat... | CriterionNodeKind Kind = CriterionNodeKind.And; |
{
"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 turretFinalFlash;
public static GameObject enrageEffect;
public static GameObject v2flashUnparryable;
public static GameObject ricochetSfx;
public static GameObject parryableFlash;
public static AudioClip cannonBallChargeAudio;
public s... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 99,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 100,
"task_id": "project_cc_csharp/3439"
} | {
"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 ... | Turret turret; |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"retrieved_chunk": " public int TimeRead { get; set; }\n [JsonProperty(\"recent_time_read\")]\n public int RecentTimeRead { get; set; }\n [JsonProperty(\"bookmark_count\")]\n pu... | using DotNetDevBadgeWeb.Common;
using Newtonsoft.Json;
namespace DotNetDevBadgeWeb.Model
{
public class User
{
private const int AVATAR_SIZE = 128;
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("username")]
public string Username { get; set; }
... | get; set; }
[JsonProperty("moderator")]
public bool? Moderator { get; set; }
public ELevel Level => TrustLevel switch
{
3 => ELevel.Silver,
4 => ELevel.Gold,
_ => ELevel.Bronze,
};
public string AvatarEndPoint => AvatarTemplate?.Rep... | {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"groundtruth_start_lineno": 28,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 30,
"task_id": "project_cc_csharp/3552"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"retrieved_chunk": " public int TimeRead { get; set; }\n [JsonProperty(\"recent_time_read\")]\n public int RecentTimeRead { get; set; }\n [JsonProperty(\"bookmark_count\")]\n pu... | JsonProperty("admin")]
public bool? Admin { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.